// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var aa,ca,da,ga,ha,ia,ja,ka,ma,na,oa,pa,qa,ra,sa,ua,va,wa,xa,ya,za,Aa,D,Ca,Da,Ea,Ga,Ha,M,Ia,Ja,Ka,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc={},ic={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(a,c,k,h){this.set(a,c,k,h)}function l(){this.eb=this.cb=this.gb=this.fb=this.sb=this.rb=this.Na=this.Ma=0}function p(a,c,k,h){a<c?k<h?(C=a<k?a:k,N=c>h?c:h):(C=a<h?a:h,N=c>k?c:k):k<h?(C=c<k?c:k,N=a>h?a:h):(C=c<h?c:h,N=a>k?a:k)}function e(){this.items=this.Sd=null;this.ai=0;U&&(this.Sd=new Set);this.mh=[];this.Re=!0}function q(a){Y[H++]=a}function t(){this.J=this.$k=this.y=this.Bl=0}function b(a){this.qb=[];this.lj=this.nj=this.oj=this.mj=0;this.Fi(a)}function a(a,c){this.Il=
a;this.Hl=c;this.cells={}}function u(a,c){this.Il=a;this.Hl=c;this.cells={}}function d(a,c,k){var h;return F.length?(h=F.pop(),h.pm=a,h.x=c,h.y=k,h):new aa(a,c,k)}function c(a,c,k){this.pm=a;this.x=c;this.y=k;this.Ab=new ca}function h(a,c,k){var h;return G.length?(h=G.pop(),h.pm=a,h.x=c,h.y=k,h):new da(a,c,k)}function m(a,c,k){this.pm=a;this.x=c;this.y=k;this.Ab=[];this.Kg=!0;this.Qd=new ca;this.uh=!1}function g(a,c){return a.zd-c.zd}ga=function(a){window.console&&window.console.log&&window.console.log(a)};
ha=function(a){window.console&&window.console.error&&window.console.error(a)};ia=function(a){return"undefined"===typeof a};ja=function(a){return"number"===typeof a};ka=function(a){return"string"===typeof a};ma=function(a){return 0<a&&0===(a-1&a)};na=function(a){--a;for(var c=1;32>c;c<<=1)a=a|a>>c;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,c){return a>c?a:c};qa=function(a,c){return a<c?a:c};ra=Math.PI;sa=function(a){return 0<=a?a|0:(a|0)-1};ua=function(a){var c=a|0;return c===a?c:c+
1};va=function(a,c,k,h,n,g,b,z){var y,d,m,e;a<k?(d=a,y=k):(d=k,y=a);n<b?(e=n,m=b):(e=b,m=n);if(y<e||d>m)return!1;c<h?(d=c,y=h):(d=h,y=c);g<z?(e=g,m=z):(e=z,m=g);if(y<e||d>m)return!1;y=n-a+b-k;d=g-c+z-h;a=k-a;c=h-c;n=b-n;g=z-g;z=oa(c*n-g*a);return oa(n*d-g*y)>z?!1:oa(a*d-c*y)<=z};f.prototype.set=function(a,c,k,h){this.left=a;this.top=c;this.right=k;this.bottom=h};f.prototype.Ah=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};f.prototype.width=function(){return this.right-
this.left};f.prototype.height=function(){return this.bottom-this.top};f.prototype.offset=function(a,c){this.left+=a;this.top+=c;this.right+=a;this.bottom+=c;return this};f.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};f.prototype.iw=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};f.prototype.jw=function(a,c,k){return!(a.right+
c<this.left||a.bottom+k<this.top||a.left+c>this.right||a.top+k>this.bottom)};f.prototype.Vb=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};f.prototype.Eh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};wa=f;l.prototype.Ei=function(a){this.Ma=a.left;this.Na=a.top;this.rb=a.right;this.sb=a.top;this.fb=a.right;this.gb=a.bottom;this.cb=a.left;this.eb=a.bottom};l.prototype.Br=function(a,c){if(0===c)this.Ei(a);else{var k=
Math.sin(c),h=Math.cos(c),n=a.left*k,g=a.top*k,b=a.right*k,k=a.bottom*k,z=a.left*h,y=a.top*h,d=a.right*h,h=a.bottom*h;this.Ma=z-g;this.Na=y+n;this.rb=d-g;this.sb=y+b;this.fb=d-k;this.gb=h+b;this.cb=z-k;this.eb=h+n}};l.prototype.offset=function(a,c){this.Ma+=a;this.Na+=c;this.rb+=a;this.sb+=c;this.fb+=a;this.gb+=c;this.cb+=a;this.eb+=c;return this};var C=0,N=0;l.prototype.Io=function(a){p(this.Ma,this.rb,this.fb,this.cb);a.left=C;a.right=N;p(this.Na,this.sb,this.gb,this.eb);a.top=C;a.bottom=N};l.prototype.Vb=
function(a,c){var k=this.Ma,h=this.Na,n=this.rb-k,g=this.sb-h,b=this.fb-k,z=this.gb-h,y=a-k,d=c-h,m=n*n+g*g,e=n*b+g*z,g=n*y+g*d,u=b*b+z*z,f=b*y+z*d,r=1/(m*u-e*e),n=(u*g-e*f)*r,m=(m*f-e*g)*r;if(0<=n&&0<m&&1>n+m)return!0;n=this.cb-k;g=this.eb-h;m=n*n+g*g;e=n*b+g*z;g=n*y+g*d;r=1/(m*u-e*e);n=(u*g-e*f)*r;m=(m*f-e*g)*r;return 0<=n&&0<m&&1>n+m};l.prototype.Pe=function(a,c){if(c)switch(a){case 0:return this.Ma;case 1:return this.rb;case 2:return this.fb;case 3:return this.cb;case 4:return this.Ma;default:return this.Ma}else switch(a){case 0:return this.Na;
case 1:return this.sb;case 2:return this.gb;case 3:return this.eb;case 4:return this.Na;default:return this.Na}};l.prototype.zq=function(){return(this.Ma+this.rb+this.fb+this.cb)/4};l.prototype.Aq=function(){return(this.Na+this.sb+this.gb+this.eb)/4};l.prototype.Jp=function(a){var c=a.zq(),k=a.Aq();if(this.Vb(c,k))return!0;c=this.zq();k=this.Aq();if(a.Vb(c,k))return!0;var h,n,g,b,z,y,d,m;for(d=0;4>d;d++)for(m=0;4>m;m++)if(c=this.Pe(d,!0),k=this.Pe(d,!1),h=this.Pe(d+1,!0),n=this.Pe(d+1,!1),g=a.Pe(m,
!0),b=a.Pe(m,!1),z=a.Pe(m+1,!0),y=a.Pe(m+1,!1),va(c,k,h,n,g,b,z,y))return!0;return!1};xa=l;ya=function(a,c){for(var k in c)c.hasOwnProperty(k)&&(a[k]=c[k]);return a};za=function(a,c){var k,h;c=sa(c);if(!(0>c||c>=a.length)){k=c;for(h=a.length-1;k<h;k++)a[k]=a[k+1];Aa(a,h)}};Aa=function(a,c){a.length=c};D=function(a){Aa(a,0)};Ca=function(a,c){D(a);var k,h;k=0;for(h=c.length;k<h;++k)a[k]=c[k]};Da=function(a,c){a.push.apply(a,c)};Ea=function(a,c){var k,h;k=0;for(h=a.length;k<h;++k)if(a[k]===c)return k;
return-1};Ga=function(a,c){var k=Ea(a,c);-1!==k&&za(a,k)};Ha=function(a,c,k){return a<c?c:a>k?k:a};M=function(a){return a/(180/ra)};Ia=function(a){return 180/ra*a};Ja=function(a){a%=360;0>a&&(a+=360);return a};Ka=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};Ma=function(a){return Ja(Ia(a))};Na=function(a){return Ka(M(a))};Oa=function(a,c,k,h){return Math.atan2(h-c,k-a)};Pa=function(a,c){if(a===c)return 0;var k=Math.sin(a),h=Math.cos(a),n=Math.sin(c),g=Math.cos(c),k=k*n+h*g;return 1<=k?0:-1>=k?ra:Math.acos(k)};
Qa=function(a,c,k){var h=Math.sin(a),n=Math.cos(a),g=Math.sin(c),b=Math.cos(c);return Math.acos(h*g+n*b)>k?0<n*g-h*b?Ka(a+k):Ka(a-k):Ka(c)};Ra=function(a,c){var k=Math.sin(a),h=Math.cos(a),n=Math.sin(c),g=Math.cos(c);return 0>=h*n-k*g};Sa=function(a,c,k,h,n,g){if(0===k)return g?a:c;var b=Math.sin(k);k=Math.cos(k);a-=h;c-=n;var z=a*b;a=a*k-c*b;c=c*k+z;return g?a+h:c+n};Ta=function(a,c,k,h){a=k-a;c=h-c;return Math.sqrt(a*a+c*c)};Ua=function(a,c){return!a!==!c};Va=function(a,c,k){return a+(c-a)*k};Wa=
function(a){for(var c in a)if(a.hasOwnProperty(c))return!0;return!1};Za=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var r=+new Date;$a=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-r};var k=!1,n=k=!1,v=!1;"undefined"!==typeof window&&
(k=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),k=!k&&/safari/i.test(navigator.userAgent),n=/(iphone|ipod|ipad)/i.test(navigator.userAgent),v=window.c2ejecta);var U=!k&&!v&&!n&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;e.prototype.contains=function(a){return this.ne()?!1:U?this.Sd.has(a):this.items&&this.items.hasOwnProperty(a)};e.prototype.add=function(a){if(U)this.Sd.has(a)||(this.Sd.add(a),this.Re=!1);else{var c=a.toString(),k=this.items;
k?k.hasOwnProperty(c)||(k[c]=a,this.ai++,this.Re=!1):(this.items={},this.items[c]=a,this.ai=1,this.Re=!1)}};e.prototype.remove=function(a){if(!this.ne())if(U)this.Sd.has(a)&&(this.Sd["delete"](a),this.Re=!1);else if(this.items){a=a.toString();var c=this.items;c.hasOwnProperty(a)&&(delete c[a],this.ai--,this.Re=!1)}};e.prototype.clear=function(){this.ne()||(U?this.Sd.clear():(this.items=null,this.ai=0),D(this.mh),this.Re=!0)};e.prototype.ne=function(){return 0===this.count()};e.prototype.count=function(){return U?
this.Sd.size:this.ai};var Y=null,H=0;e.prototype.Qx=function(){if(!this.Re){if(U)D(this.mh),Y=this.mh,H=0,this.Sd.forEach(q),Y=null,H=0;else{var a=this.mh;D(a);var c,k=0,h=this.items;if(h)for(c in h)h.hasOwnProperty(c)&&(a[k++]=h[c])}this.Re=!0}};e.prototype.qf=function(){this.Qx();return this.mh};ca=e;new ca;ab=function(a,c){U?bb(a,c.Sd):cb(a,c.qf())};bb=function(a,c){var k,h,n,g;h=k=0;for(n=a.length;k<n;++k)g=a[k],c.has(g)||(a[h++]=g);Aa(a,h)};cb=function(a,c){var k,h,n,g;h=k=0;for(n=a.length;k<
n;++k)g=a[k],-1===Ea(c,g)&&(a[h++]=g);Aa(a,h)};t.prototype.add=function(a){this.y=a-this.Bl;this.$k=this.J+this.y;this.Bl=this.$k-this.J-this.y;this.J=this.$k};t.prototype.reset=function(){this.J=this.$k=this.y=this.Bl=0};db=t;eb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.Fi=function(a){this.ir=a;this.ud=a.length/2;this.qb.length=a.length;this.qj=this.rj=-1;this.Lo=0};b.prototype.Hg=function(){return!this.ir.length};b.prototype.Fa=function(){for(var a=this.qb,c=a[0],
k=c,h=a[1],n=h,g,b,z=1,y=this.ud;z<y;++z)b=2*z,g=a[b],b=a[b+1],g<c&&(c=g),g>k&&(k=g),b<h&&(h=b),b>n&&(n=b);this.mj=c;this.nj=k;this.oj=h;this.lj=n};b.prototype.Ei=function(a,c,k){this.qb.length=8;this.ud=4;var h=this.qb;h[0]=a.left-c;h[1]=a.top-k;h[2]=a.right-c;h[3]=a.top-k;h[4]=a.right-c;h[5]=a.bottom-k;h[6]=a.left-c;h[7]=a.bottom-k;this.rj=a.right-a.left;this.qj=a.bottom-a.top;this.Fa()};b.prototype.eh=function(a,c,k,h,n){this.qb.length=8;this.ud=4;var g=this.qb;g[0]=a.Ma-c;g[1]=a.Na-k;g[2]=a.rb-
c;g[3]=a.sb-k;g[4]=a.fb-c;g[5]=a.gb-k;g[6]=a.cb-c;g[7]=a.eb-k;this.rj=h;this.qj=n;this.Fa()};b.prototype.Ar=function(a){this.ud=a.ud;Ca(this.qb,a.qb);this.mj=a.mj;this.oj-a.oj;this.nj=a.nj;this.lj=a.lj};b.prototype.rg=function(a,c,k){if(this.rj!==a||this.qj!==c||this.Lo!==k){this.rj=a;this.qj=c;this.Lo=k;var h,n,g,b,z,y=0,d=1,m=this.ir,e=this.qb;0!==k&&(y=Math.sin(k),d=Math.cos(k));k=0;for(g=this.ud;k<g;k++)h=2*k,n=h+1,b=m[h]*a,z=m[n]*c,e[h]=b*d-z*y,e[n]=z*d+b*y;this.Fa()}};b.prototype.Vb=function(a,
c){var k=this.qb;if(a===k[0]&&c===k[1])return!0;var h,n,g,b=this.ud,z=this.mj-110,y=this.oj-101,d=this.nj+131,m=this.lj+120,e,u,f=0,r=0;for(h=0;h<b;h++)n=2*h,g=(h+1)%b*2,e=k[n],n=k[n+1],u=k[g],g=k[g+1],va(z,y,a,c,e,n,u,g)&&f++,va(d,m,a,c,e,n,u,g)&&r++;return 1===f%2||1===r%2};b.prototype.Rh=function(a,c,k){var h=a.qb,n=this.qb;if(this.Vb(h[0]+c,h[1]+k)||a.Vb(n[0]-c,n[1]-k))return!0;var g,b,z,y,d,m,e,u,f,r,C,v;g=0;for(y=this.ud;g<y;g++)for(b=2*g,z=(g+1)%y*2,u=n[b],b=n[b+1],f=n[z],r=n[z+1],z=0,e=a.ud;z<
e;z++)if(d=2*z,m=(z+1)%e*2,C=h[d]+c,d=h[d+1]+k,v=h[m]+c,m=h[m+1]+k,va(u,b,f,r,C,d,v,m))return!0;return!1};fb=b;a.prototype.$e=function(a,c,k){var h;h=this.cells[a];return h?(h=h[c])?h:k?(h=d(this,a,c),this.cells[a][c]=h):null:k?(h=d(this,a,c),this.cells[a]={},this.cells[a][c]=h):null};a.prototype.fc=function(a){return sa(a/this.Il)};a.prototype.gc=function(a){return sa(a/this.Hl)};a.prototype.update=function(a,c,k){var h,n,g,b,z;if(c)for(h=c.left,n=c.right;h<=n;++h)for(g=c.top,b=c.bottom;g<=b;++g)if(!k||
!k.Vb(h,g))if(z=this.$e(h,g,!1))z.remove(a),z.ne()&&(z.Ab.clear(),1E3>F.length&&F.push(z),this.cells[h][g]=null);if(k)for(h=k.left,n=k.right;h<=n;++h)for(g=k.top,b=k.bottom;g<=b;++g)c&&c.Vb(h,g)||this.$e(h,g,!0).zm(a)};a.prototype.Kk=function(a,c){var k,h,n,g,b,z;k=this.fc(a.left);n=this.gc(a.top);h=this.fc(a.right);for(b=this.gc(a.bottom);k<=h;++k)for(g=n;g<=b;++g)(z=this.$e(k,g,!1))&&z.dump(c)};gb=a;u.prototype.$e=function(a,c,k){var n;n=this.cells[a];return n?(n=n[c])?n:k?(n=h(this,a,c),this.cells[a][c]=
n):null:k?(n=h(this,a,c),this.cells[a]={},this.cells[a][c]=n):null};u.prototype.fc=function(a){return sa(a/this.Il)};u.prototype.gc=function(a){return sa(a/this.Hl)};u.prototype.update=function(a,c,k){var h,n,g,b,z;if(c)for(h=c.left,n=c.right;h<=n;++h)for(g=c.top,b=c.bottom;g<=b;++g)if(!k||!k.Vb(h,g))if(z=this.$e(h,g,!1))z.remove(a),z.ne()&&(z.reset(),1E3>G.length&&G.push(z),this.cells[h][g]=null);if(k)for(h=k.left,n=k.right;h<=n;++h)for(g=k.top,b=k.bottom;g<=b;++g)c&&c.Vb(h,g)||this.$e(h,g,!0).zm(a)};
u.prototype.Kk=function(a,c,k,h,n){var g,b;a=this.fc(a);c=this.gc(c);k=this.fc(k);for(g=this.gc(h);a<=k;++a)for(h=c;h<=g;++h)(b=this.$e(a,h,!1))&&b.dump(n)};u.prototype.Ew=function(a){var c,k,h,n,g;c=a.left;h=a.top;k=a.right;for(n=a.bottom;c<=k;++c)for(a=h;a<=n;++a)if(g=this.$e(c,a,!1))g.Kg=!1};hb=u;var F=[];c.prototype.ne=function(){return this.Ab.ne()};c.prototype.zm=function(a){this.Ab.add(a)};c.prototype.remove=function(a){this.Ab.remove(a)};c.prototype.dump=function(a){Da(a,this.Ab.qf())};aa=
c;var G=[];m.prototype.ne=function(){if(!this.Ab.length)return!0;if(this.Ab.length>this.Qd.count())return!1;this.am();return!0};m.prototype.zm=function(a){this.Qd.contains(a)?(this.Qd.remove(a),this.Qd.ne()&&(this.uh=!1)):this.Ab.length?(this.Ab[this.Ab.length-1].Jd()>a.Jd()&&(this.Kg=!1),this.Ab.push(a)):(this.Ab.push(a),this.Kg=!0)};m.prototype.remove=function(a){this.Qd.add(a);this.uh=!0;30<=this.Qd.count()&&this.am()};m.prototype.am=function(){this.uh&&(this.Qd.count()===this.Ab.length?this.reset():
(ab(this.Ab,this.Qd),this.Qd.clear(),this.uh=!1))};m.prototype.Mu=function(){this.Kg||(this.Ab.sort(g),this.Kg=!0)};m.prototype.reset=function(){D(this.Ab);this.Kg=!0;this.Qd.clear();this.uh=!1};m.prototype.dump=function(a){this.am();this.Mu();this.Ab.length&&a.push(this.Ab)};da=m;var w="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");ib=function(a){return 0>=a||11<=a?"source-over":w[a-1]};lb=function(a,c,k){if(k)switch(a.Rb=
k.ONE,a.Ob=k.ONE_MINUS_SRC_ALPHA,c){case 1:a.Rb=k.ONE;a.Ob=k.ONE;break;case 3:a.Rb=k.ONE;a.Ob=k.ZERO;break;case 4:a.Rb=k.ONE_MINUS_DST_ALPHA;a.Ob=k.ONE;break;case 5:a.Rb=k.DST_ALPHA;a.Ob=k.ZERO;break;case 6:a.Rb=k.ZERO;a.Ob=k.SRC_ALPHA;break;case 7:a.Rb=k.ONE_MINUS_DST_ALPHA;a.Ob=k.ZERO;break;case 8:a.Rb=k.ZERO;a.Ob=k.ONE_MINUS_SRC_ALPHA;break;case 9:a.Rb=k.DST_ALPHA;a.Ob=k.ONE_MINUS_SRC_ALPHA;break;case 10:a.Rb=k.ONE_MINUS_DST_ALPHA,a.Ob=k.SRC_ALPHA}};mb=function(a){return Math.round(1E6*a)/1E6};
nb=function(a,c){return"string"!==typeof a||"string"!==typeof c||a.length!==c.length?!1:a===c?!0:a.toLowerCase()===c.toLowerCase()};ob=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||nb(a.tagName,"canvas")?!0:!1}})();var jc="undefined"!==typeof Float32Array?Float32Array:Array;function kc(f){var l=new jc(3);f&&(l[0]=f[0],l[1]=f[1],l[2]=f[2]);return l}
function lc(f){var l=new jc(16);f&&(l[0]=f[0],l[1]=f[1],l[2]=f[2],l[3]=f[3],l[4]=f[4],l[5]=f[5],l[6]=f[6],l[7]=f[7],l[8]=f[8],l[9]=f[9],l[10]=f[10],l[11]=f[11],l[12]=f[12],l[13]=f[13],l[14]=f[14],l[15]=f[15]);return l}function mc(f,l){l[0]=f[0];l[1]=f[1];l[2]=f[2];l[3]=f[3];l[4]=f[4];l[5]=f[5];l[6]=f[6];l[7]=f[7];l[8]=f[8];l[9]=f[9];l[10]=f[10];l[11]=f[11];l[12]=f[12];l[13]=f[13];l[14]=f[14];l[15]=f[15]}
function nc(f,l){var p=l[0],e=l[1];l=l[2];f[0]*=p;f[1]*=p;f[2]*=p;f[3]*=p;f[4]*=e;f[5]*=e;f[6]*=e;f[7]*=e;f[8]*=l;f[9]*=l;f[10]*=l;f[11]*=l}
function oc(f,l,p,e){e||(e=lc());var q,t,b,a,u,d,c,h,m=f[0],g=f[1];f=f[2];t=p[0];b=p[1];q=p[2];p=l[1];d=l[2];m===l[0]&&g===p&&f===d?(f=e,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(p=m-l[0],d=g-l[1],c=f-l[2],h=1/Math.sqrt(p*p+d*d+c*c),p*=h,d*=h,c*=h,l=b*c-q*d,q=q*p-t*c,t=t*d-b*p,(h=Math.sqrt(l*l+q*q+t*t))?(h=1/h,l*=h,q*=h,t*=h):t=q=l=0,b=d*t-c*q,a=c*l-p*t,u=p*q-d*l,(h=Math.sqrt(b*b+a*a+u*u))?(h=1/h,b*=h,a*=h,u*=h):u=a=b=0,
e[0]=l,e[1]=b,e[2]=p,e[3]=0,e[4]=q,e[5]=a,e[6]=d,e[7]=0,e[8]=t,e[9]=u,e[10]=c,e[11]=0,e[12]=-(l*m+q*g+t*f),e[13]=-(b*m+a*g+u*f),e[14]=-(p*m+d*g+c*f),e[15]=1)}
(function(){function f(a,b,d){this.oe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ga=!!d;this.Yj=this.Th=!1;this.Pl=0;this.ml=1;this.Zn=1E3;this.Yx=(this.Zn-this.ml)/32768;this.Cl=kc([0,0,100]);this.hq=kc([0,0,0]);this.Xr=kc([0,1,0]);this.Ti=kc([1,1,1]);this.kp=!0;this.tk=lc();this.Oc=lc();this.Lm=lc();this.Ol=lc();this.C=a;this.version=0===this.C.getParameter(this.C.VERSION).indexOf("WebGL 2")?2:1;this.Fp()}function l(a,b,d){this.C=a;this.Gi=
b;this.name=d;this.Zc=a.getAttribLocation(b,"aPos");this.jf=a.getAttribLocation(b,"aTex");this.fq=a.getUniformLocation(b,"matP");this.pk=a.getUniformLocation(b,"matMV");this.Qg=a.getUniformLocation(b,"opacity");this.Pm=a.getUniformLocation(b,"colorFill");this.gq=a.getUniformLocation(b,"samplerFront");this.ii=a.getUniformLocation(b,"samplerBack");this.Tf=a.getUniformLocation(b,"destStart");this.Sf=a.getUniformLocation(b,"destEnd");this.ki=a.getUniformLocation(b,"seconds");this.Rm=a.getUniformLocation(b,
"pixelWidth");this.Qm=a.getUniformLocation(b,"pixelHeight");this.hi=a.getUniformLocation(b,"layerScale");this.gi=a.getUniformLocation(b,"layerAngle");this.li=a.getUniformLocation(b,"viewOrigin");this.ji=a.getUniformLocation(b,"scrollPos");this.bw=!!(this.Rm||this.Qm||this.ki||this.ii||this.Tf||this.Sf||this.hi||this.gi||this.li||this.ji);this.pq=this.qq=-999;this.sk=1;this.lq=this.kq=0;this.nq=this.jq=this.iq=1;this.tq=this.sq=this.rq=this.vq=this.uq=this.mq=0;this.Km=[];this.oq=lc();this.Qg&&a.uniform1f(this.Qg,
1);this.Pm&&a.uniform4f(this.Pm,1,1,1,1);this.gq&&a.uniform1i(this.gq,0);this.ii&&a.uniform1i(this.ii,1);this.Tf&&a.uniform2f(this.Tf,0,0);this.Sf&&a.uniform2f(this.Sf,1,1);this.hi&&a.uniform1f(this.hi,1);this.gi&&a.uniform1f(this.gi,0);this.li&&a.uniform2f(this.li,0,0);this.ji&&a.uniform2f(this.ji,0,0);this.ki&&a.uniform1f(this.ki,0);this.If=!1}function p(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]&&a[4]===b[4]&&a[5]===b[5]&&a[6]===b[6]&&a[7]===b[7]&&a[8]===b[8]&&a[9]===b[9]&&
a[10]===b[10]&&a[11]===b[11]&&a[12]===b[12]&&a[13]===b[13]&&a[14]===b[14]&&a[15]===b[15]}function e(a,b){this.type=a;this.D=b;this.C=b.C;this.Kd=this.cc=this.Uq=0;this.W=this.ed=null;this.Cr=[]}var q=lc();f.prototype.Fp=function(){var a=this.C,b;this.Wp=1;this.Nf=this.ff=null;this.Bj=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Ga?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Yp=a.ONE;this.Up=a.ONE_MINUS_SRC_ALPHA;this.kl=new Float32Array(8E3*(this.Ga?3:2));this.al=new Float32Array(16E3);this.fr=new Float32Array(32E3);this.ln=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.ln);a.bufferData(a.ARRAY_BUFFER,this.fr.byteLength,a.DYNAMIC_DRAW);this.Si=Array(4);this.Mi=Array(4);for(b=0;4>b;b++)this.Si[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Si[b]),a.bufferData(a.ARRAY_BUFFER,this.kl.byteLength,a.DYNAMIC_DRAW),this.Mi[b]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Mi[b]),a.bufferData(a.ARRAY_BUFFER,this.al.byteLength,a.DYNAMIC_DRAW);this.ae=0;this.gw=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.gw);for(var d=new Uint16Array(12E3),c=b=0;12E3>b;)d[b++]=c,d[b++]=c+1,d[b++]=c+2,d[b++]=c,d[b++]=c+2,d[b++]=c+3,c+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,d,a.STATIC_DRAW);this.mn=this.hh=this.Fe=0;this.Sa=[];b=this.Ga?"attribute highp vec3 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, aPos.z, 1.0);\n\tvTex = aTex;\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}";d=this.Bh({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}"},b,"<default>");this.Sa.push(d);d=this.Bh({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.Sa.push(d);d=this.Bh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"<earlyz>");this.Sa.push(d);d=this.Bh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.Sa.push(d);for(var h in pc)pc.hasOwnProperty(h)&&this.Sa.push(this.Bh(pc[h],b,h));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Qe=[];this.$d=0;this.Pb=!1;this.fp=this.di=-1;this.vg=null;this.Zl=a.createFramebuffer();this.Fj=this.Lk=null;this.Go=!1;this.Ga&&(this.Fj=a.createRenderbuffer());this.pf=kc([0,0,0]);this.wq=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.wq&&(this.wq=2048);this.rc(0)};l.prototype.Un=function(a){p(this.oq,a)||(mc(a,this.oq),this.C.uniformMatrix4fv(this.pk,
!1,a))};f.prototype.Bh=function(a,b,d){var c=this.C,h=c.createShader(c.FRAGMENT_SHADER);c.shaderSource(h,a.src);c.compileShader(h);if(!c.getShaderParameter(h,c.COMPILE_STATUS))throw a=c.getShaderInfoLog(h),c.deleteShader(h),Error("error compiling fragment shader: "+a);var m=c.createShader(c.VERTEX_SHADER);c.shaderSource(m,b);c.compileShader(m);if(!c.getShaderParameter(m,c.COMPILE_STATUS))throw a=c.getShaderInfoLog(m),c.deleteShader(h),c.deleteShader(m),Error("error compiling vertex shader: "+a);b=
c.createProgram();c.attachShader(b,h);c.attachShader(b,m);c.linkProgram(b);if(!c.getProgramParameter(b,c.LINK_STATUS))throw a=c.getProgramInfoLog(b),c.deleteShader(h),c.deleteShader(m),c.deleteProgram(b),Error("error linking shader program: "+a);c.useProgram(b);c.deleteShader(h);c.deleteShader(m);h=new l(c,b,d);h.Xl=a.Xl||0;h.Yl=a.Yl||0;h.ep=!!a.ep;h.td=!!a.td;h.Eo=!!a.Eo;h.X=a.X||[];a=0;for(m=h.X.length;a<m;a++)h.X[a][1]=c.getUniformLocation(b,h.X[a][0]),h.Km.push(0),c.uniform1f(h.X[a][1],0);return h};
f.prototype.nm=function(a){var b,d;b=0;for(d=this.Sa.length;b<d;b++)if(this.Sa[b].name===a)return b;return-1};f.prototype.hr=function(a,b,d){var c=this.Oc,h=this.tk,m=[0,0,0,0,0,0,0,0];m[0]=c[0]*a+c[4]*b+c[12];m[1]=c[1]*a+c[5]*b+c[13];m[2]=c[2]*a+c[6]*b+c[14];m[3]=c[3]*a+c[7]*b+c[15];m[4]=h[0]*m[0]+h[4]*m[1]+h[8]*m[2]+h[12]*m[3];m[5]=h[1]*m[0]+h[5]*m[1]+h[9]*m[2]+h[13]*m[3];m[6]=h[2]*m[0]+h[6]*m[1]+h[10]*m[2]+h[14]*m[3];m[7]=-m[2];0!==m[7]&&(m[7]=1/m[7],m[4]*=m[7],m[5]*=m[7],m[6]*=m[7],d[0]=(.5*m[4]+
.5)*this.width,d[1]=(.5*m[5]+.5)*this.height)};f.prototype.bg=function(a,b,d){if(this.width!==a||this.height!==b||d){this.Ye();d=this.C;this.width=a;this.height=b;d.viewport(0,0,a,b);oc(this.Cl,this.hq,this.Xr,this.Oc);if(this.Ga){var c=-a/2;a=a/2;var h=b/2;b=-b/2;var m=this.ml,g=this.Zn,e=this.tk;e||(e=lc());var f=a-c,r=b-h,k=g-m;e[0]=2/f;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/r;e[6]=0;e[7]=0;e[8]=0;e[9]=0;e[10]=-2/k;e[11]=0;e[12]=-(c+a)/f;e[13]=-(b+h)/r;e[14]=-(g+m)/k;e[15]=1;this.Ti[0]=1;this.Ti[1]=
1}else b=a/b,c=this.ml,a=this.Zn,e=this.tk,g=c*Math.tan(45*Math.PI/360),b*=g,h=-b,m=-g,e||(e=lc()),f=b-h,r=g-m,k=a-c,e[0]=2*c/f,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*c/r,e[6]=0,e[7]=0,e[8]=(b+h)/f,e[9]=(g+m)/r,e[10]=-(a+c)/k,e[11]=-1,e[12]=0,e[13]=0,e[14]=-(a*c*2)/k,e[15]=0,c=[0,0],a=[0,0],this.hr(0,0,c),this.hr(1,1,a),this.Ti[0]=1/(a[0]-c[0]),this.Ti[1]=-1/(a[1]-c[1]);c=0;for(a=this.Sa.length;c<a;c++)h=this.Sa[c],h.If=!1,h.fq&&(d.useProgram(h.Gi),d.uniformMatrix4fv(h.fq,!1,this.tk));d.useProgram(this.Sa[this.di].Gi);
d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE0);this.Nf=this.ff=null;this.Fj&&(d.bindFramebuffer(d.FRAMEBUFFER,this.Zl),d.bindRenderbuffer(d.RENDERBUFFER,this.Fj),d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_COMPONENT16,this.width,this.height),this.Go||(d.framebufferRenderbuffer(d.FRAMEBUFFER,d.DEPTH_ATTACHMENT,d.RENDERBUFFER,this.Fj),this.Go=!0),d.bindRenderbuffer(d.RENDERBUFFER,null),d.bindFramebuffer(d.FRAMEBUFFER,null),
this.Lk=null)}};f.prototype.bd=function(){oc(this.Cl,this.hq,this.Xr,this.Oc);nc(this.Oc,this.Ti)};f.prototype.translate=function(a,b){if(0!==a||0!==b){this.pf[0]=a;this.pf[1]=b;this.pf[2]=0;var d=this.Oc,c=this.pf,h=c[0],e=c[1],c=c[2];d[12]=d[0]*h+d[4]*e+d[8]*c+d[12];d[13]=d[1]*h+d[5]*e+d[9]*c+d[13];d[14]=d[2]*h+d[6]*e+d[10]*c+d[14];d[15]=d[3]*h+d[7]*e+d[11]*c+d[15]}};f.prototype.scale=function(a,b){if(1!==a||1!==b)this.pf[0]=a,this.pf[1]=b,this.pf[2]=1,nc(this.Oc,this.pf)};f.prototype.Nk=function(a){if(0!==
a){var b=this.Oc,d,c=Math.sin(a);a=Math.cos(a);var h=b[0],e=b[1],g=b[2],f=b[3],l=b[4],r=b[5],k=b[6],n=b[7];d?b!==d&&(d[8]=b[8],d[9]=b[9],d[10]=b[10],d[11]=b[11],d[12]=b[12],d[13]=b[13],d[14]=b[14],d[15]=b[15]):d=b;d[0]=h*a+l*c;d[1]=e*a+r*c;d[2]=g*a+k*c;d[3]=f*a+n*c;d[4]=h*-c+l*a;d[5]=e*-c+r*a;d[6]=g*-c+k*a;d[7]=f*-c+n*a}};f.prototype.Rc=function(){if(!p(this.Lm,this.Oc)){var a=this.Bc();a.type=5;a.W?mc(this.Oc,a.W):a.W=lc(this.Oc);mc(this.Oc,this.Lm);this.Pb=!1}};f.prototype.Sk=function(a){this.Ga&&
(32760<a&&(a=32760),this.Pl=this.Cl[2]-this.ml-a*this.Yx)};e.prototype.wu=function(){var a=this.C,b=this.D;0!==this.cc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,b.Zl),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.Yj=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.Yj=!1)};e.prototype.Au=function(){this.C.bindTexture(this.C.TEXTURE_2D,
this.ed)};e.prototype.Bu=function(){var a=this.C;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.ed);a.activeTexture(a.TEXTURE0)};e.prototype.xu=function(){var a=this.Uq,b=this.D;b.Bj=a;b=b.vg;b.Qg&&b.sk!==a&&(b.sk=a,this.C.uniform1f(b.Qg,a))};e.prototype.ru=function(){this.C.drawElements(this.C.TRIANGLES,this.Kd,this.C.UNSIGNED_SHORT,this.cc)};e.prototype.tu=function(){this.C.blendFunc(this.cc,this.Kd)};e.prototype.Cu=function(){var a,b,d,c=this.D.Sa,h=this.D.fp;a=0;for(b=c.length;a<
b;a++)d=c[a],a===h&&d.pk?(d.Un(this.W),d.If=!0):d.If=!1;mc(this.W,this.D.Ol)};e.prototype.su=function(){var a=this.C,b=this.D;this.ed?(b.Nf===this.ed&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.Nf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.Zl),b.Yj||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.ed,0)):(b.Ga||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};
e.prototype.ou=function(){var a=this.C,b=this.cc;0===b?(a.clearColor(this.W[0],this.W[1],this.W[2],this.W[3]),a.clear(a.COLOR_BUFFER_BIT)):1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.W[0],this.W[1],this.W[2],this.W[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};e.prototype.vu=function(){var a=this.C;0!==this.cc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};e.prototype.qu=function(){var a=this.C,b=this.D;b.Ga&&a.disable(a.DEPTH_TEST);
var d=b.Sa[1];a.useProgram(d.Gi);!d.If&&d.pk&&(d.Un(b.Ol),d.If=!0);a.enableVertexAttribArray(d.Zc);a.bindBuffer(a.ARRAY_BUFFER,b.ln);a.vertexAttribPointer(d.Zc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.cc/4,this.Kd);d=b.vg;a.useProgram(d.Gi);0<=d.Zc&&(a.enableVertexAttribArray(d.Zc),a.bindBuffer(a.ARRAY_BUFFER,b.Si[b.ae]),a.vertexAttribPointer(d.Zc,b.Ga?3:2,a.FLOAT,!1,0,0));0<=d.jf&&(a.enableVertexAttribArray(d.jf),a.bindBuffer(a.ARRAY_BUFFER,b.Mi[b.ae]),a.vertexAttribPointer(d.jf,2,a.FLOAT,!1,
0,0));b.Ga&&a.enable(a.DEPTH_TEST)};e.prototype.yu=function(){var a=this.C,b=this.D,d=b.Sa[this.cc];b.fp=this.cc;b.vg=d;a.useProgram(d.Gi);!d.If&&d.pk&&(d.Un(b.Ol),d.If=!0);d.Qg&&d.sk!==b.Bj&&(d.sk=b.Bj,a.uniform1f(d.Qg,b.Bj));0<=d.Zc&&(a.enableVertexAttribArray(d.Zc),a.bindBuffer(a.ARRAY_BUFFER,b.Si[b.ae]),a.vertexAttribPointer(d.Zc,b.Ga?3:2,a.FLOAT,!1,0,0));0<=d.jf&&(a.enableVertexAttribArray(d.jf),a.bindBuffer(a.ARRAY_BUFFER,b.Mi[b.ae]),a.vertexAttribPointer(d.jf,2,a.FLOAT,!1,0,0))};e.prototype.uu=
function(){var a=this.W;this.C.uniform4f(this.D.vg.Pm,a[0],a[1],a[2],a[3])};e.prototype.zu=function(){var a,b,d=this.D.vg,c=this.C;a=this.W;d.ii&&this.D.Nf!==this.ed&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,this.ed),this.D.Nf=this.ed,c.activeTexture(c.TEXTURE0));var h=a[0];d.Rm&&h!==d.qq&&(d.qq=h,c.uniform1f(d.Rm,h));h=a[1];d.Qm&&h!==d.pq&&(d.pq=h,c.uniform1f(d.Qm,h));h=a[2];b=a[3];!d.Tf||h===d.kq&&b===d.lq||(d.kq=h,d.lq=b,c.uniform2f(d.Tf,h,b));h=a[4];b=a[5];!d.Sf||h===d.iq&&b===
d.jq||(d.iq=h,d.jq=b,c.uniform2f(d.Sf,h,b));h=a[6];d.hi&&h!==d.nq&&(d.nq=h,c.uniform1f(d.hi,h));h=a[7];d.gi&&h!==d.mq&&(d.mq=h,c.uniform1f(d.gi,h));h=a[8];b=a[9];!d.li||h===d.uq&&b===d.vq||(d.uq=h,d.vq=b,c.uniform2f(d.li,h,b));h=a[10];b=a[11];!d.ji||h===d.rq&&b===d.sq||(d.rq=h,d.sq=b,c.uniform2f(d.ji,h,b));h=a[12];d.ki&&h!==d.tq&&(d.tq=h,c.uniform1f(d.ki,h));if(d.X.length)for(a=0,b=d.X.length;a<b;a++)h=this.Cr[a],h!==d.Km[a]&&(d.Km[a]=h,c.uniform1f(d.X[a][1],h))};f.prototype.Bc=function(){this.$d===
this.Qe.length&&this.Qe.push(new e(0,this));return this.Qe[this.$d++]};f.prototype.Ye=function(){if(0!==this.$d&&!this.C.isContextLost()){var a=this.C;0<this.mn&&(a.bindBuffer(a.ARRAY_BUFFER,this.ln),a.bufferSubData(a.ARRAY_BUFFER,0,this.fr.subarray(0,this.mn)),b&&0<=b.Zc&&"<point>"===b.name&&a.vertexAttribPointer(b.Zc,4,a.FLOAT,!1,0,0));if(0<this.Fe){var b=this.vg;a.bindBuffer(a.ARRAY_BUFFER,this.Si[this.ae]);a.bufferSubData(a.ARRAY_BUFFER,0,this.kl.subarray(0,this.Fe));b&&0<=b.Zc&&"<point>"!==b.name&&
a.vertexAttribPointer(b.Zc,this.Ga?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Mi[this.ae]);a.bufferSubData(a.ARRAY_BUFFER,0,this.al.subarray(0,this.hh));b&&0<=b.jf&&"<point>"!==b.name&&a.vertexAttribPointer(b.jf,2,a.FLOAT,!1,0,0)}for(var d,a=0,b=this.$d;a<b;a++)switch(d=this.Qe[a],d.type){case 1:d.ru();break;case 2:d.Au();break;case 3:d.xu();break;case 4:d.tu();break;case 5:d.Cu();break;case 6:d.su();break;case 7:d.ou();break;case 8:d.qu();break;case 9:d.yu();break;case 10:d.zu();break;
case 11:d.Bu();break;case 12:d.uu();break;case 13:d.vu();break;case 14:d.wu()}this.mn=this.hh=this.Fe=this.$d=0;this.Yj=this.Pb=!1;this.ae++;4<=this.ae&&(this.ae=0)}};f.prototype.ag=function(a){if(a!==this.Wp&&!this.Th){var b=this.Bc();b.type=3;this.Wp=b.Uq=a;this.Pb=!1}};f.prototype.Cc=function(a){if(a!==this.ff){var b=this.Bc();b.type=2;this.ff=b.ed=a;this.Pb=!1}};f.prototype.nf=function(a,b){if((a!==this.Yp||b!==this.Up)&&!this.Th){var d=this.Bc();d.type=4;d.cc=a;d.Kd=b;this.Yp=a;this.Up=b;this.Pb=
!1}};f.prototype.qr=function(){this.nf(this.C.ONE,this.C.ONE_MINUS_SRC_ALPHA)};f.prototype.yi=function(a,b,d,c,h,e,g,f){15992<=this.Fe&&this.Ye();var l=this.Fe,r=this.hh,k=this.kl,n=this.al,v=this.Pl;if(this.Pb)this.Qe[this.$d-1].Kd+=6;else{var q=this.Bc();q.type=1;q.cc=this.Ga?l:l/2*3;q.Kd=6;this.Pb=!0}this.Ga?(k[l++]=a,k[l++]=b,k[l++]=v,k[l++]=d,k[l++]=c,k[l++]=v,k[l++]=h,k[l++]=e,k[l++]=v,k[l++]=g,k[l++]=f,k[l++]=v):(k[l++]=a,k[l++]=b,k[l++]=d,k[l++]=c,k[l++]=h,k[l++]=e,k[l++]=g,k[l++]=f);n[r++]=
0;n[r++]=0;n[r++]=1;n[r++]=0;n[r++]=1;n[r++]=1;n[r++]=0;n[r++]=1;this.Fe=l;this.hh=r};f.prototype.we=function(a,b,d,c,h,e,g,f,l){15992<=this.Fe&&this.Ye();var r=this.Fe,k=this.hh,n=this.kl,v=this.al,q=this.Pl;if(this.Pb)this.Qe[this.$d-1].Kd+=6;else{var p=this.Bc();p.type=1;p.cc=this.Ga?r:r/2*3;p.Kd=6;this.Pb=!0}var p=l.left,t=l.top,F=l.right;l=l.bottom;this.Ga?(n[r++]=a,n[r++]=b,n[r++]=q,n[r++]=d,n[r++]=c,n[r++]=q,n[r++]=h,n[r++]=e,n[r++]=q,n[r++]=g,n[r++]=f,n[r++]=q):(n[r++]=a,n[r++]=b,n[r++]=d,
n[r++]=c,n[r++]=h,n[r++]=e,n[r++]=g,n[r++]=f);v[k++]=p;v[k++]=t;v[k++]=F;v[k++]=t;v[k++]=F;v[k++]=l;v[k++]=p;v[k++]=l;this.Fe=r;this.hh=k};f.prototype.rc=function(a){if(this.di!==a){if(!this.Sa[a]){if(0===this.di)return;a=0}var b=this.Bc();b.type=9;this.di=b.cc=a;this.Pb=!1}};f.prototype.vi=function(a){a=this.Sa[a];return!(!a.Tf&&!a.Sf)};f.prototype.rn=function(a){a=this.Sa[a];return!!(a.Tf||a.Sf||a.ep)};f.prototype.qn=function(a){return this.Sa[a].td};f.prototype.cx=function(a){a=this.Sa[a];return 0!==
a.Xl||0!==a.Yl};f.prototype.Kv=function(a){return this.Sa[a].Xl};f.prototype.Lv=function(a){return this.Sa[a].Yl};f.prototype.Mv=function(a,b){return this.Sa[a].X[b][2]};f.prototype.Hk=function(a){return this.Sa[a].Eo};f.prototype.dh=function(a,b,d,c,h,e,g,f,l,r,k,n,v,q,p){var t=this.Sa[this.di],F,G;if(t.bw||p.length){F=this.Bc();F.type=10;F.W?mc(this.Oc,F.W):F.W=lc();G=F.W;G[0]=b;G[1]=d;G[2]=c;G[3]=h;G[4]=e;G[5]=g;G[6]=f;G[7]=l;G[8]=r;G[9]=k;G[10]=n;G[11]=v;G[12]=q;t.ii?F.ed=a:F.ed=null;if(p.length)for(d=
F.Cr,d.length=p.length,a=0,b=p.length;a<b;a++)d[a]=p[a];this.Pb=!1}};f.prototype.clear=function(a,b,d,c){var h=this.Bc();h.type=7;h.cc=0;h.W||(h.W=lc());h.W[0]=a;h.W[1]=b;h.W[2]=d;h.W[3]=c;this.Pb=!1};f.prototype.clearRect=function(a,b,d,c){if(!(0>d||0>c)){var h=this.Bc();h.type=7;h.cc=1;h.W||(h.W=lc());h.W[0]=a;h.W[1]=b;h.W[2]=d;h.W[3]=c;this.Pb=!1}};f.prototype.tr=function(a){if(this.Ga&&(a=!!a,this.Th!==a)){var b=this.Bc();b.type=14;b.cc=a?1:0;this.Pb=!1;this.Th=a;this.Lk=null;this.Th?this.rc(2):
this.rc(0)}};f.prototype.sr=function(a){if(this.Ga){var b=this.Bc();b.type=13;b.cc=a?1:0;this.Pb=!1}};f.prototype.tp=function(){mc(this.Lm,q);this.bd();this.Rc();var a=this.width/2,b=this.height/2;this.yi(-a,b,a,b,a,-b,-a,-b);mc(q,this.Oc);this.Rc()};f.prototype.rr=function(a,b,d){this.rc(3);var c=this.Bc();c.type=12;c.W||(c.W=lc());c.W[0]=a;c.W[1]=b;c.W[2]=d;c.W[3]=1;this.Pb=!1};f.prototype.Cx=function(){this.rc(0)};f.prototype.lx=function(){this.rc(2)};f.prototype.bx=function(){this.Ye();this.C.flush()};
var t=[],b={};f.prototype.gu=function(){D(t);b={}};f.prototype.mk=function(a,e,d){var c;c=!1;e=!!e;var h=a.src+","+c+","+e+(c?",undefined":""),m=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(h))return m=b[h],m.pj++,m;this.Ye();var g=this.C,f=ma(a.width)&&ma(a.height),m=g.createTexture();g.bindTexture(g.TEXTURE_2D,m);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var l=g.RGBA,r=g.RGBA,k=g.UNSIGNED_BYTE;if(d&&!this.oe)switch(d){case 1:r=l=g.RGB;break;case 2:k=g.UNSIGNED_SHORT_4_4_4_4;break;
case 3:k=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:r=l=g.RGB,k=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!f&&c){d=document.createElement("canvas");d.width=na(a.width);d.height=na(a.height);var n=d.getContext("2d");"undefined"!==typeof n.imageSmoothingEnabled?n.imageSmoothingEnabled=e:(n.webkitImageSmoothingEnabled=e,n.mozImageSmoothingEnabled=e,n.msImageSmoothingEnabled=e);n.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);g.texImage2D(g.TEXTURE_2D,0,l,r,k,d)}else g.texImage2D(g.TEXTURE_2D,0,
l,r,k,a);c?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));e?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(f||2<=this.version)&&this.kp?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,
g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.ff=null;m.xf=a.width;m.wf=a.height;m.pj=1;m.Ko=h;t.push(m);return b[h]=m};f.prototype.Fc=function(a,b,d,c){this.Ye();var h=this.C;this.oe&&(c=!1);var e=h.createTexture();h.bindTexture(h.TEXTURE_2D,e);h.texImage2D(h.TEXTURE_2D,0,h.RGBA,a,b,0,h.RGBA,c?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,null);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,
h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,d?h.LINEAR:h.NEAREST);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,d?h.LINEAR:h.NEAREST);h.bindTexture(h.TEXTURE_2D,null);this.ff=null;e.xf=a;e.wf=b;t.push(e);return e};f.prototype.Wx=function(a,b,d){this.Ye();var c=this.C;this.oe&&(d=!1);c.bindTexture(c.TEXTURE_2D,b);c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,
d?c.UNSIGNED_SHORT_4_4_4_4:c.UNSIGNED_BYTE,a)}catch(h){console&&console.error&&console.error("Error updating WebGL texture: ",h)}c.bindTexture(c.TEXTURE_2D,null);this.ff=null};f.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.pj&&1<a.pj?a.pj--:(this.Ye(),a===this.ff&&(this.C.bindTexture(this.C.TEXTURE_2D,null),this.ff=null),a===this.Nf&&(this.C.activeTexture(this.C.TEXTURE1),this.C.bindTexture(this.C.TEXTURE_2D,null),this.C.activeTexture(this.C.TEXTURE0),this.Nf=null),Ga(t,a),"undefined"!==
typeof a.Ko&&delete b[a.Ko],this.C.deleteTexture(a)))};f.prototype.cd=function(a){if(a!==this.Lk){var b=this.Bc();b.type=6;this.Lk=b.ed=a;this.Pb=!1}};pb=f})();
(function(){function f(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var c=this;this.Mc=(this.Zj=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.Gb=!!a.dc;this.Mp="undefined"!==typeof window.AppMobi||
this.Gb;this.Yc=!!window.c2cocoonjs;this.pd=!!window.c2ejecta;this.Yc&&(CocoonJS.App.onSuspended.addEventListener(function(){c.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){c.setSuspended(!1)}));this.pd&&(document.addEventListener("pagehide",function(){c.setSuspended(!0)}),document.addEventListener("pageshow",function(){c.setSuspended(!1)}),document.addEventListener("resize",function(){c.setSize(window.innerWidth,window.innerHeight)}));this.wa=this.Gb||this.Yc||this.pd;this.Vh=
/edge\//i.test(navigator.userAgent);this.oe=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Vh;this.Op=/tizen/i.test(navigator.userAgent);this.Sh=/android/i.test(navigator.userAgent)&&!this.Op&&!this.oe&&!this.Vh;this.Sp=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.oe&&!this.Vh;this.uw=/ipad/i.test(navigator.userAgent);this.Mg=this.Sp||this.uw||this.pd;this.Cm=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.oe&&!this.Vh;this.Lp=/amazonwebappplatform/i.test(navigator.userAgent);this.lw=/firefox/i.test(navigator.userAgent);this.pw=/safari/i.test(navigator.userAgent)&&!this.Cm&&!this.oe&&!this.Vh;this.qw=/windows/i.test(navigator.userAgent);this.$j="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Qp=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.sw=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.df=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Im=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.bk=!!window.cr_windows10;this.Pp=this.Qp||this.sw||this.Im||this.bk;this.kw=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Xj=this.Sh&&!this.Cm&&!this.Zj&&!this.lw&&!this.Lp&&!this.wa;this.devicePixelRatio=
1;this.pe=this.Mc||this.Zj||this.Mp||this.Yc||this.Sh||this.Mg||this.df||this.Im||this.kw||this.Op||this.pd;this.pe||(this.pe=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Xh=!!(this.Mg&&this.Mc&&window.webkit);"undefined"===typeof cr_is_preview||this.$j||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.$j=!0);this.canvas=a;this.sj=document.getElementById("c2canvasdiv");
this.D=this.C=null;this.om="(unavailable)";this.Ga=!1;this.Bf=0;this.Pa=null;this.Mj=!1;this.Mq=this.Nq=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Gb&&(window.c2runtime=this);this.$j&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();
return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.Xj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.M=this.width;this.L=this.height;this.zj=this.width;this.Dh=this.height;this.Og=window.innerWidth;this.Ng=window.innerHeight;this.na=!0;this.Wh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.B=[];this.Oa=[];this.Nm={};this.qd=[];this.Wl={};
this.ge=[];this.oh=[];this.fl=[];this.St=[];this.Tt=[];this.zf={};this.Em=this.bf=!1;this.Nc=0;this.Dm=this.Gm=!1;this.nd=[];this.Uh=!1;this.kk=this.Bn="";this.nb=null;this.qe="";this.Ji=this.Fr=!1;this.Lj=[];this.Af=this.Xe=0;this.Bq=30;this.Ml=this.mi=0;this.eg=1;this.xa=new db;this.Ge=new db;this.vk=this.Pj=this.Ff=this.Vd=this.Pf=this.cm=this.fk=0;this.sg=null;this.Tl=[];this.Vl=[];this.Hj=-1;this.Sm=[[]];this.Pn=this.qk=0;this.Jk(null);this.Gh=this.Hq=this.pi=0;this.Ki=[];this.Mn=this.tn=-1;
this.$h=!0;this.ok=0;this.ak=!1;this.Fx=0;this.pg=null;this.Ya=this.Vj=!1;this.Lq=new ca;this.Zm=new ca;this.$m=new ca;this.$g=[];this.wd=new fb([]);this.In=new fb([]);this.ng=[];this.Dg={};this.Ue={};this.Me={};this.nh={};this.Ho={};this.dq=this.jk=this.Za=this.mb=this.cq=this.ik=this.Da=null;this.kh=this.Jm=!1;this.dm=[null,null];this.Bg=0;this.$l="";this.ue={};this.Hi=this.gf=null;this.Hr="";this.uk=[];this.kx()}}function l(a,c){return 128>=c?a[3]:256>=c?a[2]:512>=c?a[1]:a[0]}function p(){try{return!!window.indexedDB}catch(a){return!1}}
function e(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function q(a,c,k,b){try{var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=e;h.onerror=b;h.onsuccess=function(h){h=h.target.result;h.onerror=b;h.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:c}).onsuccess=k}}catch(n){b(n)}}function t(a,c,k){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=e;b.onerror=k;b.onsuccess=function(b){b=b.target.result;b.onerror=k;var h=b.transaction(["saves"]).objectStore("saves").get(a);
h.onsuccess=function(){h.result?c(h.result.data):c(null)}}}catch(h){k(h)}}function b(){ga("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var c,k={};for(c in a)!a.hasOwnProperty(c)||a[c]instanceof ca||a[c]&&"undefined"!==typeof a[c].CA||"spriteCreatedDestroyCallback"!==c&&(k[c]=a[c]);return k}var u=window.requestAnimationFrame||window.mozRequestAnimationFrame||
window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.kx=function(){var a=this;if(this.Xh)this.qp("data.js",function(c){a.fi(JSON.parse(c))},function(){alert("Error fetching data.js")});else{var c;this.df?c=new ActiveXObject("Microsoft.XMLHTTP"):c=new XMLHttpRequest;var k="data.js";if(this.Qp||this.df||this.Im||this.bk)k="data.json";c.open("GET",k,!0);var b=!1;if(!this.wa&&"response"in c&&"responseType"in c)try{c.responseType="json",b="json"===
c.responseType}catch(h){b=!1}if(!b&&"responseType"in c)try{c.responseType="text"}catch(n){}if("overrideMimeType"in c)try{c.overrideMimeType("application/json; charset=utf-8")}catch(g){}this.df?c.onreadystatechange=function(){4===c.readyState&&a.fi(JSON.parse(c.responseText))}:(c.onload=function(){if(b)a.fi(c.response);else if(a.pd){var k=c.responseText,k=k.substr(k.indexOf("{"));a.fi(JSON.parse(k))}else a.fi(JSON.parse(c.responseText))},c.onerror=function(a){ha("Error requesting "+k+":");ha(a)});
c.send()}};f.prototype.hw=function(){var a=this,c,k,b,h,n,g,d,e,m;this.Mf=(!this.wa||this.pd||this.Mc)&&this.Sx&&!this.Xj;0===this.Yb&&this.Mg&&(this.Mf=!1);this.devicePixelRatio=this.Mf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&window.StatusBar.hide();this.Mb();0<this.Yb&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(c){c.preventDefault();
a.Iw();ga("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.D.Fp();a.D.bg(a.D.width,a.D.height,!0);a.mb=null;a.Za=null;a.dm[0]=null;a.dm[1]=null;a.Jw();a.na=!0;ga("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Ku&&(this.Yc||this.pd||!this.wa)&&(c={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.Sh||(this.C=this.canvas.getContext("webgl2",
c)),this.C||(this.C=this.canvas.getContext("webgl",c)||this.canvas.getContext("experimental-webgl",c)))}catch(f){}if(this.C){if(c=this.C.getExtension("WEBGL_debug_renderer_info"))this.om=this.C.getParameter(c.UNMASKED_RENDERER_WEBGL)+" ["+this.C.getParameter(c.UNMASKED_VENDOR_WEBGL)+"]";this.Ga&&(this.om+=" [front-to-back enabled]");this.wa||(this.Ib=document.createElement("canvas"),jQuery(this.Ib).appendTo(this.canvas.parentNode),this.Ib.oncontextmenu=function(){return!1},this.Ib.onselectstart=function(){return!1},
this.Ib.width=Math.round(this.zj*this.devicePixelRatio),this.Ib.height=Math.round(this.Dh*this.devicePixelRatio),jQuery(this.Ib).css({width:this.zj+"px",height:this.Dh+"px"}),this.gr(),this.kn=this.Ib.getContext("2d"));this.D=new pb(this.C,this.pe,this.Ga);this.D.bg(this.canvas.width,this.canvas.height);this.D.kp=0!==this.Du;this.Pa=null;c=0;for(k=this.B.length;c<k;c++)for(n=this.B[c],b=0,h=n.T.length;b<h;b++)d=n.T[b],d.bb=this.D.nm(d.id),d.td=this.D.qn(d.bb),this.kh=this.kh||this.D.vi(d.bb);c=0;
for(k=this.qd.length;c<k;c++){e=this.qd[c];b=0;for(h=e.T.length;b<h;b++)d=e.T[b],d.bb=this.D.nm(d.id),d.td=this.D.qn(d.bb);e.yd();b=0;for(h=e.V.length;b<h;b++){m=e.V[b];n=0;for(g=m.T.length;n<g;n++)d=m.T[n],d.bb=this.D.nm(d.id),d.td=this.D.qn(d.bb),this.kh=this.kh||this.D.vi(d.bb);m.yd()}}}else{if(0<this.Yb&&this.Gb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Pa=AppMobi.canvas.getContext("2d");try{this.Pa.samplingMode=this.Ka?"smooth":
"sharp",this.Pa.globalScale=1,this.Pa.HTML5CompatibilityMode=!0,this.Pa.imageSmoothingEnabled=this.Ka}catch(r){}0!==this.width&&0!==this.height&&(this.Pa.width=this.width,this.Pa.height=this.height)}this.Pa||(this.Yc?(c={antialias:!!this.Ka,alpha:!0},this.Pa=this.canvas.getContext("2d",c)):(c={alpha:!0},this.Pa=this.canvas.getContext("2d",c)),this.Rk(this.Pa,this.Ka));this.kn=this.Ib=null}this.Pr=function(c){a.Lb(!1,c)};window==window.top||this.wa||this.Pp||this.df||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Yc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ga("Reloading for continuous preview"),this.kk="__c2_continuouspreview",this.Ji=!0),this.Uw&&!this.pe&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var c=window.parent;c&&c.document.hasFocus()||a.setSuspended(!0)})));
window.addEventListener("blur",function(){a.Zf()});this.wa||(c=function(a){if(ob(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(c){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",c):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",c):document.addEventListener("touchstart",c),document.addEventListener("mousedown",c));0===this.Yb&&
this.Mf&&1<this.devicePixelRatio&&this.setSize(this.pb,this.ob,!0);this.Ur();this.Zv();this.go();this.N={}};f.prototype.setSize=function(a,c,k){var b=0,h=0,n=0,g=0,g=0;if(this.Og!==a||this.Ng!==c||k){this.Og=a;this.Ng=c;var d=this.Yb;if((n=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.ak)&&!this.Mc)||0!==this.Yb||k)n&&(d=this.Bg),k=this.devicePixelRatio,4<=d?(5===d&&1!==k&&(a+=1,c+=1),n=this.pb/this.ob,a/c>n?(n*=c,5===d?(g=n*k/this.pb,
1<g?g=Math.floor(g):1>g&&(g=1/Math.ceil(1/g)),n=this.pb*g/k,g=this.ob*g/k,b=(a-n)/2,h=(c-g)/2,a=n,c=g):(b=(a-n)/2,a=n)):(g=a/n,5===d?(g=g*k/this.ob,1<g?g=Math.floor(g):1>g&&(g=1/Math.ceil(1/g)),n=this.pb*g/k,g=this.ob*g/k,b=(a-n)/2,h=(c-g)/2,a=n):h=(c-g)/2,c=g)):n&&0===d&&(b=Math.floor((a-this.pb)/2),h=Math.floor((c-this.ob)/2),a=this.pb,c=this.ob),2>d&&(this.wh=k),this.zj=Math.round(a),this.Dh=Math.round(c),this.width=Math.round(a*k),this.height=Math.round(c*k),this.na=!0,this.js?(this.M=this.width,
this.L=this.height,this.Ic=!0):this.width<this.pb&&this.height<this.ob||1===d?(this.M=this.width,this.L=this.height,this.Ic=!0):(this.M=this.pb,this.L=this.ob,this.Ic=!1,2===d?(n=this.pb/this.ob,d=this.Og/this.Ng,d<n?this.M=this.L*d:d>n&&(this.L=this.M/d)):3===d&&(n=this.pb/this.ob,d=this.Og/this.Ng,d>n?this.M=this.L*d:d<n&&(this.L=this.M/d))),this.sj&&!this.wa&&(jQuery(this.sj).css({width:Math.round(a)+"px",height:Math.round(c)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(h)+"px"}),
"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*k),this.canvas.height=Math.round(c*k),this.pd?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(h)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px"):this.Mf&&!this.wa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px")),this.Ib&&(this.Ib.width=
Math.round(a*k),this.Ib.height=Math.round(c*k),this.Ib.style.width=this.zj+"px",this.Ib.style.height=this.Dh+"px"),this.D&&this.D.bg(Math.round(a*k),Math.round(c*k)),this.Gb&&this.Pa&&(this.Pa.width=Math.round(a),this.Pa.height=Math.round(c)),this.Pa&&this.Rk(this.Pa,this.Ka),this.Ur(),this.Sp&&!this.Mc&&window.scrollTo(0,0)}};f.prototype.Ur=function(){if(this.Wt&&0!==this.jn){var a="portrait";2===this.jn&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):
screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(c){console&&console.warn&&console.warn("Failed to lock orientation: ",c)}}};f.prototype.Iw=function(){this.D.gu();this.Jm=!0;var a,c,k;a=0;for(c=this.B.length;a<c;a++)k=this.B[a],k.wk&&k.wk()};f.prototype.Jw=function(){this.Jm=!1;var a,c,k;a=0;for(c=this.B.length;a<c;a++)k=this.B[a],
k.en&&k.en()};f.prototype.gr=function(){if(!this.wa){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.ak)&&!this.Mc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Ib).css(a)}};var d=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;f.prototype.setSuspended=function(a){var c;if(a&&
!this.Wh)for(ga("[Construct 2] Suspending"),this.Wh=!0,-1!==this.tn&&d&&d(this.tn),-1!==this.Mn&&clearTimeout(this.Mn),a=0,c=this.Ki.length;a<c;a++)this.Ki[a](!0);else if(!a&&this.Wh){ga("[Construct 2] Resuming");this.Wh=!1;this.fk=$a();this.Pf=$a();a=this.mi=this.Pj=0;for(c=this.Ki.length;a<c;a++)this.Ki[a](!1);this.Lb(!1)}};f.prototype.Co=function(a){this.Ki.push(a)};f.prototype.Je=function(a){return this.uk[a]};f.prototype.fi=function(a){a&&a.project||ha("Project model unavailable");a=a.project;
this.name=a[0];this.sp=a[1];this.Yb=a[12];this.pb=a[10];this.ob=a[11];this.br=this.pb/2;this.cr=this.ob/2;this.wa&&!this.pd&&(4<=a[12]||0===a[12])&&(ga("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Yb=3);this.jl=a[18];this.hf=a[19];if(0===this.hf){var c=new Image;c.crossOrigin="anonymous";this.ur(c,"loading-logo.png");this.gf={rk:c}}else if(4===this.hf){c=new Image;c.src="";var k=new Image;k.src="";var b=new Image;b.src="";
var h=new Image;h.src="";var n=new Image;n.src="";var g=new Image;g.src="";var d=new Image;d.src="";var e=new Image;e.src="";var m=new Image;m.src="";var f=new Image;f.src="";var r=new Image;r.src="";var l=new Image;l.src="";this.gf={rk:[c,k,b,h],Zw:[n,g,d,e],Xx:[m,f,r,l]}}this.pi=a[21];this.uk=qc();this.Td=new Q(this);c=0;for(k=a[2].length;c<k;c++)d=a[2][c],b=this.Je(d[0]),qb(d,b.prototype),e=new b(this),e.Wk=d[1],e.ef=d[2],e.bB=d[5],e.Dq=d[9],e.U&&e.U(),this.plugins.push(e);this.uk=qc();c=0;for(k=
a[3].length;c<k;c++){d=a[3][c];n=this.Je(d[1]);e=null;b=0;for(h=this.plugins.length;b<h;b++)if(this.plugins[b]instanceof n){e=this.plugins[b];break}m=new e.ya(e);m.name=d[0];m.O=d[2];m.Am=d[3].slice(0);m.Vx=d[3].length;m.Xt=d[4];m.xv=d[5];m.ca=d[11];m.O?(m.Vf=[],m.he=this.Gh++,m.Ja=null):(m.Vf=null,m.he=-1,m.Ja=[]);m.Jj=null;m.zg=null;m.lp=null;m.Qb=!1;m.vc=null;d[6]?(m.Jn=d[6][0],m.Nr=d[6][1],m.Kn=d[6][2]):(m.Jn=null,m.Nr=0,m.Kn=0);d[7]?m.tc=d[7]:m.tc=null;m.index=c;m.g=[];m.Dj=[];m.Ae=[new rb(m)];
m.Fd=0;m.Wc=null;m.lu=0;m.gh=!0;m.gl=sb;m.Dv=tb;m.Iv=ub;m.aa=vb;m.xi=wb;m.Ik=xb;m.$f=yb;m.Rj=zb;m.em=Db;m.jm=Eb;m.kd=Fb;m.km=Gb;m.yh=new gb(this.pb,this.ob);m.jj=!0;m.kj=!1;m.N={};m.toString=Hb;m.Oa=[];b=0;for(h=d[8].length;b<h;b++){f=d[8][b];r=this.Je(f[1]);l=null;n=0;for(g=this.Oa.length;n<g;n++)if(this.Oa[n]instanceof r){l=this.Oa[n];break}l||(l=new r(this),l.Eq=[],l.Xm=new ca,l.U&&l.U(),this.Oa.push(l));-1===l.Eq.indexOf(m)&&l.Eq.push(m);n=new l.ya(l,m);n.name=f[0];n.ca=f[2];n.U();m.Oa.push(n)}m.global=
d[9];m.Fm=d[10];m.T=[];b=0;for(h=d[12].length;b<h;b++)m.T.push({id:d[12][b][0],name:d[12][b][1],bb:-1,td:!1,Db:!0,index:b});m.HB=d[13];this.jl&&!m.O&&!m.Fm&&e.ef||m.U();m.name&&(this.types[m.name]=m);this.B.push(m);e.Wk&&(b=new e.la(m),b.uid=this.pi++,b.jr=this.Hq++,b.Kf=0,b.Mh=Ib,b.toString=Jb,b.q=d[14],b.U(),m.g.push(b),this.ue[b.uid.toString()]=b)}c=0;for(k=a[4].length;c<k;c++)for(n=a[4][c],g=this.B[n[0]],b=1,h=n.length;b<h;b++)d=this.B[n[b]],d.Ja.push(g),g.Vf.push(d);c=0;for(k=a[28].length;c<
k;c++){n=a[28][c];g=[];b=0;for(h=n.length;b<h;b++)g.push(this.B[n[b]]);b=0;for(h=g.length;b<h;b++)g[b].Qb=!0,g[b].vc=g}if(0<this.Gh)for(c=0,k=this.B.length;c<k;c++)if(d=this.B[c],!d.O&&d.Ja.length){d.Jj=Array(this.Gh);d.zg=Array(this.Gh);d.lp=Array(this.Gh);m=[];b=l=r=f=0;for(h=d.Ja.length;b<h;b++)for(e=d.Ja[b],d.Jj[e.he]=f,f+=e.Vx,d.zg[e.he]=r,r+=e.Xt,d.lp[e.he]=l,l+=e.xv,n=0,g=e.T.length;n<g;n++)m.push(ya({},e.T[n]));d.T=m.concat(d.T);b=0;for(h=d.T.length;b<h;b++)d.T[b].index=b}c=0;for(k=a[5].length;c<
k;c++)d=a[5][c],b=new Kb(this,d),this.Nm[b.name]=b,this.qd.push(b);c=0;for(k=a[6].length;c<k;c++)d=a[6][c],b=new Lb(this,d),this.Wl[b.name]=b,this.ge.push(b);c=0;for(k=this.ge.length;c<k;c++)this.ge[c].Wa();c=0;for(k=this.ge.length;c<k;c++)this.ge[c].Tn();c=0;for(k=this.fl.length;c<k;c++)this.fl[c].Wa();D(this.fl);this.Ut=a[7];this.$l=a[8];this.sd=a[9];this.wh=1;this.Ku=a[13];this.Ka=a[14];this.cp=a[15];this.Sx=a[17];this.jn=a[20];this.Wt=0<this.jn;this.Uw=a[22];this.Ic=this.js=a[23];this.Du=a[24];
this.$w=a[25];this.Ga=a[27]&&!this.oe;this.Xk=Date.now();D(this.uk);this.hw()};var c=!1,h=0,m=[];f.prototype.gx=function(a,c){function b(){h--;k.xq()}var k=this;a.addEventListener("load",b);a.addEventListener("error",b);m.push([a,c]);this.xq()};f.prototype.xq=function(){for(var a;m.length&&100>h;)h++,a=m.shift(),this.ur(a[0],a[1])};f.prototype.hs=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){c=a.Jo=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.pd?
a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(c){a.src=c},function(k){c=a.Jo=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",k)}):(a.crossOrigin="anonymous",this.gx(a,b)));this.oh.push(a)};f.prototype.vv=function(a){var c,b;c=0;for(b=this.oh.length;c<b;c++)if(this.oh[c].iu===a)return this.oh[c];return null};var g=0,C=!1;f.prototype.Zv=function(){this.pg&&(g=this.pg.Ax(this.Ut))};f.prototype.Fo=function(){var a=g,c=0,b=0,k=
!0,h,n,b=0;for(h=this.oh.length;b<h;b++){n=this.oh[b];var d=n.hu;if(!d||0>=d)d=5E4;a+=d;n.src&&(n.complete||n.loaded)&&!n.Jo?c+=d:k=!1}k&&this.$w&&this.pg&&(C||(this.pg.Gx(),C=!0),b=this.pg.Jv(),c+=b,b<g&&(k=!1));this.Cb=0==a?1:c/a;return k};var N=!1;f.prototype.go=function(){if(this.Pa||this.D){var a=this.Pa||this.kn;this.Ib&&this.gr();var b=window.innerWidth,k=window.innerHeight;this.Og===b&&this.Ng===k||this.setSize(b,k);this.Cb=0;this.bq=-1;var h=this;if(this.Fo()&&(4!==this.hf||N))this.$v();
else{k=Date.now()-this.Xk;if(a){var n=this.width,g=this.height,b=this.devicePixelRatio;if(3>this.hf&&(this.Yc||500<=k&&this.bq!=this.Cb)){a.clearRect(0,0,n,g);var k=n/2,g=g/2,n=0===this.hf&&this.gf.rk.complete,d=40*b,e=0,m=80*b,f;if(n){var r=this.gf.rk,m=r.width*b;f=r.height*b;d=m/2;e=f/2;a.drawImage(r,sa(k-d),sa(g-e),m,f)}1>=this.hf?(k=sa(k-d)+.5,g=sa(g+(e+(n?12*b:0)))+.5,a.fillStyle=c?"red":"DodgerBlue",a.fillRect(k,g,Math.floor(m*this.Cb),6*b),a.strokeStyle="black",a.strokeRect(k,g,m,6*b),a.strokeStyle=
"white",a.strokeRect(k-1*b,g-1*b,m+2*b,8*b)):2===this.hf&&(a.font=this.pd?"12pt ArialMT":"12pt Arial",a.fillStyle=c?"#f00":"#999",a.GB="middle",b=Math.round(100*this.Cb)+"%",n=a.measureText?a.measureText(b):null,a.fillText(b,k-(n?n.width:0)/2,g));this.bq=this.Cb}else if(4===this.hf){this.Iu(a);u?u(function(){h.go()}):setTimeout(function(){h.go()},16);return}}setTimeout(function(){h.go()},this.Yc?10:100)}}};var r=-1,k="undefined"===typeof cr_is_preview?200:0,n=!0,v=!1,U=0,Y=0,H="undefined"===typeof cr_is_preview?
3E3:0,F=null,G=null,w=0;f.prototype.Iu=function(a){if(!N){for(var b=Math.ceil(this.width),h=Math.ceil(this.height),g=this.gf.rk,d=this.gf.Zw,e=this.gf.Xx,m=0;4>m;++m)if(!g[m].complete||!d[m].complete||!e[m].complete)return;0===w&&(r=Date.now());var m=Date.now(),f=!1,C=a,q,A;n||v?(a.clearRect(0,0,b,h),F&&F.width===b&&F.height===h||(F=document.createElement("canvas"),F.width=b,F.height=h,G=F.getContext("2d")),C=G,f=!0,n&&1===w&&(r=Date.now())):a.globalAlpha=1;C.fillStyle="#333333";C.fillRect(0,0,b,
h);256<this.Dh?(q=Ha(.22*h,105,.6*b),A=.25*q,C.drawImage(l(d,q),.5*b-q/2,.2*h-A/2,q,A),A=q=Math.min(.395*h,.95*b),C.drawImage(l(g,q),.5*b-q/2,.485*h-A/2,q,A),q=Ha(.22*h,105,.6*b),A=.25*q,C.drawImage(l(e,q),.5*b-q/2,.868*h-A/2,q,A),C.fillStyle="#3C3C3C",q=b,A=Math.max(.005*h,2),C.fillRect(0,.8*h-A/2,q,A),C.fillStyle=c?"red":"#E0FF65",q=b*this.Cb,C.fillRect(.5*b-q/2,.8*h-A/2,q,A)):(A=q=.55*h,C.drawImage(l(g,q),.5*b-q/2,.45*h-A/2,q,A),C.fillStyle="#3C3C3C",q=b,A=Math.max(.005*h,2),C.fillRect(0,.85*h-
A/2,q,A),C.fillStyle=c?"red":"#E0FF65",q=b*this.Cb,C.fillRect(.5*b-q/2,.85*h-A/2,q,A));f&&(n?a.globalAlpha=0===w?0:Math.min((m-r)/300,1):v&&(a.globalAlpha=Math.max(1-(m-Y)/300,0)),a.drawImage(F,0,0,b,h));n&&300<=m-r&&2<=w&&(n=!1,U=m);!n&&m-U>=H&&!v&&1<=this.Cb&&(v=!0,Y=m);if(v&&m-Y>=300+k||"undefined"!==typeof cr_is_preview&&1<=this.Cb&&500>Date.now()-r)N=!0,v=n=!1,this.gf=G=F=null;++w}};f.prototype.$v=function(){this.Ib&&(this.canvas.parentNode.removeChild(this.Ib),this.Ib=this.kn=null);this.Xk=
Date.now();this.Pf=$a();var a,c,b;if(this.jl)for(a=0,c=this.B.length;a<c;a++)b=this.B[a],b.O||b.Fm||!b.ba.ef||b.U();else this.$h=!1;a=0;for(c=this.qd.length;a<c;a++)this.qd[a].ju();2<=this.Yb&&(a=this.pb/this.ob,c=this.width/this.height,this.wh=2!==this.Yb&&c>a||2===this.Yb&&c<a?this.height/this.ob:this.width/this.pb);this.sp?this.Nm[this.sp].Gn():this.qd[0].Gn();this.jl||(this.ok=1,this.trigger(Q.prototype.d.jo,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();a=0;for(c=this.B.length;a<c;a++)b=this.B[a],b.Oq&&b.Oq();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Lb(!1);this.Gb&&AppMobi.webview.execute("onGameReady();")};f.prototype.Lb=function(a,c,b){if(this.Da){var k=$a();if(b||!this.Wh||a){a||(u?this.tn=u(this.Pr):this.Mn=setTimeout(this.Pr,this.pe?1:16));c=c||k;var h=this.Yb;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.Mc)||this.ak)&&0<this.Bg&&(h=this.Bg);if(0<h){var h=window.innerWidth,n=window.innerHeight;this.Og===h&&this.Ng===n||this.setSize(h,n)}this.wa||(b?this.Mj||(this.Mj=!0):this.Mj?(this.Mj=!1,0===this.Yb&&this.setSize(Math.round(this.Nq/this.devicePixelRatio),Math.round(this.Mq/this.devicePixelRatio),!0)):(this.Nq=this.width,this.Mq=this.height));this.$h&&(b=this.Fo(),this.ok=this.Cb,b&&(this.$h=!1,this.Cb=1,this.trigger(Q.prototype.d.jo,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Dw(c);
!this.na&&!this.Yc||this.Jm||this.Ji||a||(this.na=!1,this.D?this.Xb():this.Hc(),this.Hi&&(this.canvas&&this.canvas.toDataURL&&(this.Hr=this.canvas.toDataURL(this.Hi[0],this.Hi[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Hr),this.trigger(Q.prototype.d.Ms,null)),this.Hi=null));this.$A||(this.Vd++,this.Ff++,this.Pj++);this.mi+=$a()-k}}};f.prototype.Dw=function(a){var c,b,k,h,n,g,d,m;1E3<=a-this.Pf&&(this.Pf+=1E3,1E3<=a-this.Pf&&(this.Pf=a),this.cm=this.Pj,this.Pj=0,this.Ml=this.mi,this.mi=0);
c=0;0!==this.fk&&(c=a-this.fk,0>c&&(c=0),this.Af=c/=1E3,.5<this.Af?this.Af=0:this.Af>1/this.Bq&&(this.Af=1/this.Bq));this.fk=a;this.Xe=this.Af*this.eg;this.xa.add(this.Xe);this.Ge.add(c);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.ak)&&!this.Mc;2<=this.Yb||a&&0<this.Bg?(c=this.pb/this.ob,b=this.width/this.height,k=this.Yb,a&&0<this.Bg&&(k=this.Bg),this.wh=2!==k&&b>c||2===k&&b<c?this.height/this.ob:this.width/this.pb,this.Da&&(this.Da.or(this.Da.scrollX),
this.Da.pr(this.Da.scrollY))):this.wh=this.Mf?this.devicePixelRatio:1;this.Mb();this.Nc++;this.Td.qx();this.Nc--;this.Mb();this.Nc++;b=this.Lq.qf();a=0;for(c=b.length;a<c;a++)b[a].tB();a=0;for(c=this.B.length;a<c;a++)if(g=this.B[a],!g.O&&(g.Oa.length||g.Ja.length))for(b=0,k=g.g.length;b<k;b++)for(d=g.g[b],h=0,n=d.S.length;h<n;h++)d.S[h].Lb();a=0;for(c=this.B.length;a<c;a++)if(g=this.B[a],!g.O&&(g.Oa.length||g.Ja.length))for(b=0,k=g.g.length;b<k;b++)for(d=g.g[b],h=0,n=d.S.length;h<n;h++)m=d.S[h],m.Yw&&
m.Yw();b=this.Zm.qf();a=0;for(c=b.length;a<c;a++)b[a].Lb();this.Nc--;this.aw();for(a=0;this.sg&&10>a++;)this.ip(this.sg);a=0;for(c=this.ge.length;a<c;a++)this.ge[a].tm=!1;this.Da.Df&&this.Da.Df.ab();D(this.$g);this.Nc++;a=0;for(c=this.B.length;a<c;a++)if(g=this.B[a],!g.O&&(g.Oa.length||g.Ja.length))for(b=0,k=g.g.length;b<k;b++)for(d=g.g[b],h=0,n=d.S.length;h<n;h++)m=d.S[h],m.Ln&&m.Ln();b=this.$m.qf();a=0;for(c=b.length;a<c;a++)b[a].Ln();this.Nc--};f.prototype.Zf=function(){var a,c,b,k,h,n,g,d,m;a=
0;for(c=this.B.length;a<c;a++)if(g=this.B[a],!g.O)for(b=0,k=g.g.length;b<k;b++)if(d=g.g[b],d.Zf&&d.Zf(),d.S)for(h=0,n=d.S.length;h<n;h++)m=d.S[h],m.Zf&&m.Zf()};f.prototype.ip=function(a){var c=this.Da;this.Da.Hx();var b,k,h;if(this.D)for(b=0,k=this.B.length;b<k;b++)h=this.B[b],h.O||!h.Sn||h.global&&0!==h.g.length||-1!==a.Qh.indexOf(h)||h.Sn();c==a&&D(this.Td.sc);D(this.$g);this.mr(!0);a.Gn();this.mr(!1);this.na=!0;this.Mb()};f.prototype.mr=function(a){var c,b,k,h,n,g,d,m,e;c=0;for(b=this.Oa.length;c<
b;c++)k=this.Oa[c],a?k.qi&&k.qi():k.ri&&k.ri();c=0;for(b=this.B.length;c<b;c++)if(k=this.B[c],k.global||k.ba.Wk)for(h=0,n=k.g.length;h<n;h++)if(g=k.g[h],a?g.qi&&g.qi():g.ri&&g.ri(),g.S)for(d=0,m=g.S.length;d<m;d++)e=g.S[d],a?e.qi&&e.qi():e.ri&&e.ri()};f.prototype.Ni=function(a){this.Zm.add(a)};f.prototype.Kx=function(a){this.$m.add(a)};f.prototype.hm=function(a){return a&&-1!==a.oi?this.Af*a.oi:this.Xe};f.prototype.Hc=function(){this.Da.Hc(this.Pa);this.Gb&&this.Pa.present()};f.prototype.Xb=function(){this.Ga&&
(this.Bf=1,this.Da.wg(this.D));this.Da.Xb(this.D);this.D.bx()};f.prototype.Ao=function(a){a&&this.Tl.push(a)};f.prototype.Tj=function(a){a=a.toString();return this.ue.hasOwnProperty(a)?this.ue[a]:null};var A=[];f.prototype.sf=function(a){var c,b;c=a.type.name;var k=null;if(this.zf.hasOwnProperty(c)){if(k=this.zf[c],k.contains(a))return}else k=A.length?A.pop():new ca,this.zf[c]=k;k.add(a);this.bf=!0;if(a.Qb)for(c=0,b=a.siblings.length;c<b;c++)this.sf(a.siblings[c]);this.Em&&k.mh.push(a);this.Dm||(this.Nc++,
this.trigger(Object.getPrototypeOf(a.type.ba).d.Ps,a),this.Nc--)};f.prototype.Mb=function(){if(this.bf){var a,c,b,k,h,n;this.Em=!0;b=0;for(h=this.nd.length;b<h;++b)for(a=this.nd[b],c=a.type,c.g.push(a),k=0,n=c.Ja.length;k<n;++k)c.Ja[k].g.push(a),c.Ja[k].gh=!0;D(this.nd);this.Bs();Za(this.zf);this.bf=this.Em=!1}};f.prototype.Bs=function(){for(var a in this.zf)this.zf.hasOwnProperty(a)&&this.ms(this.zf[a])};f.prototype.ms=function(a){var c=a.qf(),b=c[0].type,k,h,n,g,d,m;ab(b.g,a);b.gh=!0;0===b.g.length&&
(b.kj=!1);k=0;for(h=b.Ja.length;k<h;++k)m=b.Ja[k],ab(m.g,a),m.gh=!0;k=0;for(h=this.Td.sc.length;k<h;++k)if(d=this.Td.sc[k],d.ac.hasOwnProperty(b.index)&&ab(d.ac[b.index].le,a),!b.O)for(n=0,g=b.Ja.length;n<g;++n)m=b.Ja[n],d.ac.hasOwnProperty(m.index)&&ab(d.ac[m.index].le,a);if(d=c[0].j){if(d.Sc)for(n=d.g,k=0,h=n.length;k<h;++k)g=n[k],a.contains(g)&&(g.Fa(),d.Jb.update(g,g.oc,null),g.oc.set(0,0,-1,-1));ab(d.g,a);d.Di(0)}for(k=0;k<c.length;++k)this.ls(c[k],b);a.clear();A.push(a);this.na=!0};f.prototype.ls=
function(a,c){var b,k,h;b=0;for(k=this.Tl.length;b<k;++b)this.Tl[b](a);a.Uc&&c.yh.update(a,a.Uc,null);(b=a.j)&&b.ah(a,!0);if(a.S)for(b=0,k=a.S.length;b<k;++b)h=a.S[b],h.Yf&&h.Yf(),h.behavior.Xm.remove(a);this.Lq.remove(a);this.Zm.remove(a);this.$m.remove(a);a.Yf&&a.Yf();this.ue.hasOwnProperty(a.uid.toString())&&delete this.ue[a.uid.toString()];this.vk--;100>c.Dj.length&&c.Dj.push(a)};f.prototype.Nl=function(a,c,b,k){if(a.O){var h=sa(Math.random()*a.Vf.length);return this.Nl(a.Vf[h],c,b,k)}return a.Wc?
this.Ve(a.Wc,c,!1,b,k,!1):null};var B=[];f.prototype.Ve=function(a,c,b,k,h,n){var g,d,m,e;if(!a)return null;var f=this.B[a[1]],r=f.ba.ef;if(this.$h&&r&&!f.Fm||r&&!this.D&&11===a[0][11])return null;var l=c;r||(c=null);var v;f.Dj.length?(v=f.Dj.pop(),v.Pc=!0,f.ba.la.call(v,f)):(v=new f.ba.la(f),v.Pc=!1);!b||n||this.ue.hasOwnProperty(a[2].toString())?v.uid=this.pi++:v.uid=a[2];this.ue[v.uid.toString()]=v;v.jr=this.Hq++;v.Kf=f.g.length;g=0;for(d=this.nd.length;g<d;++g)this.nd[g].type===f&&v.Kf++;v.Mh=
Ib;v.toString=Jb;m=a[3];if(v.Pc)Za(v.N);else{v.N={};if("undefined"!==typeof cr_is_preview)for(v.Ip=[],v.Ip.length=m.length,g=0,d=m.length;g<d;g++)v.Ip[g]=m[g][1];v.lb=[];v.lb.length=m.length}g=0;for(d=m.length;g<d;g++)v.lb[g]=m[g][0];if(r){var q=a[0];v.x=ia(k)?q[0]:k;v.y=ia(h)?q[1]:h;v.z=q[2];v.width=q[3];v.height=q[4];v.depth=q[5];v.m=q[6];v.opacity=q[7];v.jc=q[8];v.kc=q[9];v.Nb=q[10];g=q[11];!this.D&&f.T.length&&(v.Nb=g);v.zh=ib(v.Nb);this.C&&lb(v,v.Nb,this.C);if(v.Pc){g=0;for(d=q[12].length;g<
d;g++)for(m=0,e=q[12][g].length;m<e;m++)v.Qa[g][m]=q[12][g][m];v.Va.set(0,0,0,0);v.Uc.set(0,0,-1,-1);v.oc.set(0,0,-1,-1);v.Ub.Ei(v.Va);D(v.Al)}else{v.Qa=q[12].slice(0);g=0;for(d=v.Qa.length;g<d;g++)v.Qa[g]=q[12][g].slice(0);v.ma=[];v.Le=[];v.Le.length=f.T.length;v.Va=new wa(0,0,0,0);v.Uc=new wa(0,0,-1,-1);v.oc=new wa(0,0,-1,-1);v.Ub=new xa;v.Al=[];v.La=Mb;v.BA=Nb;v.Vb=Ob;v.Fa=Pb;v.Rx=Qb;v.bs=Rb;v.Jd=Sb}v.ih=!1;v.Nx=0;v.Mx=0;v.Lx=null;14===q.length&&(v.ih=!0,v.Nx=q[13][0],v.Mx=q[13][1],v.Lx=q[13][2]);
g=0;for(d=f.T.length;g<d;g++)v.Le[g]=!0;v.ye=!0;v.yd=Tb;v.yd();v.cs=!!v.ma.length;v.zl=!0;v.Gl=!0;f.jj=!0;v.visible=!0;v.oi=-1;v.j=c;v.zd=c.g.length;v.Bf=0;"undefined"===typeof v.qa&&(v.qa=null);this.na=v.Ed=!0}var C;D(B);g=0;for(d=f.Ja.length;g<d;g++)B.push.apply(B,f.Ja[g].Oa);B.push.apply(B,f.Oa);if(v.Pc)for(g=0,d=B.length;g<d;g++){var A=B[g];C=v.S[g];C.Pc=!0;A.behavior.la.call(C,A,v);q=a[4][g];m=0;for(e=q.length;m<e;m++)C.q[m]=q[m];C.U();A.behavior.Xm.add(v)}else for(v.S=[],g=0,d=B.length;g<d;g++)A=
B[g],C=new A.behavior.la(A,v),C.Pc=!1,C.q=a[4][g].slice(0),C.U(),v.S.push(C),A.behavior.Xm.add(v);q=a[5];if(v.Pc)for(g=0,d=q.length;g<d;g++)v.q[g]=q[g];else v.q=q.slice(0);this.nd.push(v);this.bf=!0;c&&(c.vh(v,!0),1!==c.mc||1!==c.nc)&&(f.kj=!0);this.vk++;if(f.Qb){if(v.Qb=!0,v.Pc?D(v.siblings):v.siblings=[],!b&&!n){g=0;for(d=f.vc.length;g<d;g++)if(f.vc[g]!==f){if(!f.vc[g].Wc)return null;v.siblings.push(this.Ve(f.vc[g].Wc,l,!1,r?v.x:k,r?v.y:h,!0))}g=0;for(d=v.siblings.length;g<d;g++)for(v.siblings[g].siblings.push(v),
m=0;m<d;m++)g!==m&&v.siblings[g].siblings.push(v.siblings[m])}}else v.Qb=!1,v.siblings=null;v.U();g=0;for(d=v.S.length;g<d;g++)v.S[g].Xw&&v.S[g].Xw();return v};f.prototype.Kh=function(a){var c,b;c=0;for(b=this.Da.V.length;c<b;c++){var k=this.Da.V[c];if(nb(k.name,a))return k}return null};f.prototype.je=function(a){a=sa(a);0>a&&(a=0);a>=this.Da.V.length&&(a=this.Da.V.length-1);return this.Da.V[a]};f.prototype.Kl=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].aa().pa=!0};f.prototype.xi=function(a){var c,
b;c=0;for(b=a.length;c<b;c++)a[c].xi()};f.prototype.Ik=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].Ik()};f.prototype.$f=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].$f()};f.prototype.Zr=function(a){if(a.jj){var c,b,k=a.g;c=0;for(b=k.length;c<b;++c)k[c].bs();k=this.nd;c=0;for(b=k.length;c<b;++c)k[c].type===a&&k[c].bs();a.jj=!1}};f.prototype.Bv=function(a,c,b,k){var h,g,n=a?1!==a.mc||1!==a.nc:!1;if(c.O)for(a=0,h=c.Vf.length;a<h;++a)g=c.Vf[a],n||g.kj?Da(k,g.g):(this.Zr(g),g.yh.Kk(b,k));
else n||c.kj?Da(k,c.g):(this.Zr(c),c.yh.Kk(b,k))};f.prototype.Li=function(a,c,b){var k=a.aa(),h,g,n,d,m=this.xb().Wb.$c,e,v,f;if(k.pa)for(k.pa=!1,D(k.g),h=0,d=a.g.length;h<d;h++)n=a.g[h],n.Fa(),e=n.j.hb(c,b,!0),v=n.j.hb(c,b,!1),n.Vb(e,v)?k.g.push(n):m&&k.da.push(n);else{g=0;f=m?k.da:k.g;h=0;for(d=f.length;h<d;h++)n=f[h],n.Fa(),e=n.j.hb(c,b,!0),v=n.j.hb(c,b,!1),n.Vb(e,v)&&(m?k.g.push(n):(k.g[g]=k.g[h],g++));f.length=g}a.kd();return k.rm()};f.prototype.Jx=function(a,c){if(!(a&&c&&a!==c&&a.Ed&&c.Ed))return!1;
a.Fa();c.Fa();var b=a.j,k=c.j,h,g,n,d,m,e,v,f;if(b===k||b.mc===k.mc&&k.nc===k.nc&&b.scale===k.scale&&b.m===k.m&&b.Sb===k.Sb){if(!a.Va.iw(c.Va)||!a.Ub.Jp(c.Ub)||a.ih&&c.ih)return!1;if(a.ih)return this.Mr(a,c);if(c.ih)return this.Mr(c,a);v=a.qa&&!a.qa.Hg();h=c.qa&&!c.qa.Hg();if(!v&&!h)return!0;v?(a.qa.rg(a.width,a.height,a.m),v=a.qa):(this.wd.eh(a.Ub,a.x,a.y,a.width,a.height),v=this.wd);h?(c.qa.rg(c.width,c.height,c.m),f=c.qa):(this.wd.eh(c.Ub,c.x,c.y,c.width,c.height),f=this.wd);return v.Rh(f,c.x-
a.x,c.y-a.y)}v=a.qa&&!a.qa.Hg();h=c.qa&&!c.qa.Hg();v?(a.qa.rg(a.width,a.height,a.m),this.wd.Ar(a.qa)):this.wd.eh(a.Ub,a.x,a.y,a.width,a.height);v=this.wd;h?(c.qa.rg(c.width,c.height,c.m),this.In.Ar(c.qa)):this.In.eh(c.Ub,c.x,c.y,c.width,c.height);f=this.In;h=0;for(g=v.ud;h<g;h++)n=2*h,d=n+1,m=v.qb[n],e=v.qb[d],v.qb[n]=b.Ca(m+a.x,e+a.y,!0),v.qb[d]=b.Ca(m+a.x,e+a.y,!1);v.Fa();h=0;for(g=f.ud;h<g;h++)n=2*h,d=n+1,m=f.qb[n],e=f.qb[d],f.qb[n]=k.Ca(m+c.x,e+c.y,!0),f.qb[d]=k.Ca(m+c.x,e+c.y,!1);f.Fa();return v.Rh(f,
0,0)};var S=new xa;new wa(0,0,0,0);var I=[];f.prototype.Mr=function(a,c){var b,k,h,g,n=c.Va,d=a.x,m=a.y;a.YA(n,I);var e=c.qa&&!c.qa.Hg();b=0;for(k=I.length;b<k;++b)if(h=I[b],g=h.yB,n.jw(g,d,m)&&(S.Ei(g),S.offset(d,m),S.Jp(c.Ub)))if(e)if(c.qa.rg(c.width,c.height,c.m),h.nn){if(h.nn.Rh(c.qa,c.x-(d+g.left),c.y-(m+g.top)))return D(I),!0}else{if(this.wd.eh(S,0,0,g.right-g.left,g.bottom-g.top),this.wd.Rh(c.qa,c.x,c.y))return D(I),!0}else if(h.nn){if(this.wd.eh(c.Ub,0,0,c.width,c.height),h.nn.Rh(this.wd,
-(d+g.left),-(m+g.top)))return D(I),!0}else return D(I),!0;D(I);return!1};f.prototype.Vr=function(a,c){if(!c)return!1;var b,k,h,g,n;b=0;for(k=a.Oa.length;b<k;b++)if(a.Oa[b].behavior instanceof c)return!0;if(!a.O)for(b=0,k=a.Ja.length;b<k;b++)for(n=a.Ja[b],h=0,g=n.Oa.length;h<g;h++)if(n.Oa[h].behavior instanceof c)return!0;return!1};f.prototype.Qn=function(a){return this.Vr(a,ic.Fz)};f.prototype.Rn=function(a){return this.Vr(a,ic.Iz)};f.prototype.Rt=function(a,c,b){var k,h,g;k=0;for(h=this.$g.length;k<
h;++k){g=this.$g[k];if(g[0]===a)g=g[1];else if(g[1]===a)g=g[0];else continue;if(c.O){if(-1===c.Vf.indexOf(c))continue}else if(g.type!==c)continue;-1===b.indexOf(g)&&b.push(g)}};f.prototype.du=function(a,c){var b,k,h;b=0;for(k=this.$g.length;b<k;b++)if(h=this.$g[b],h[0]===a&&h[1]===c||h[0]===c&&h[1]===a)return!0;return!1};var E=-1;f.prototype.trigger=function(a,c,b){if(!this.Da)return!1;var k=this.Da.Df;if(!k)return!1;var h=!1,g,n,d;E++;var m=k.Rl;n=0;for(d=m.length;n<d;++n)g=this.Sr(a,c,m[n],b),h=
h||g;g=this.Sr(a,c,k,b);E--;return h||g};f.prototype.Sr=function(a,c,b,k){var h=!1,g,n,d,m;if(c)for(d=this.On(a,c,c.type.name,b,k),h=h||d,m=c.type.Ja,g=0,n=m.length;g<n;++g)d=this.On(a,c,m[g].name,b,k),h=h||d;else d=this.On(a,c,"system",b,k),h=h||d;return h};f.prototype.On=function(a,c,b,k,h){var g,n=!1,d=!1,d="undefined"!==typeof h,m=(d?k.np:k.Tr)[b];if(!m)return n;var e=null;k=0;for(g=m.length;k<g;++k)if(m[k].method==a){e=m[k].Fh;break}if(!e)return n;var v;d?v=e[h]:v=e;if(!v)return null;k=0;for(g=
v.length;k<g;k++)a=v[k][0],h=v[k][1],d=this.tv(c,b,a,h),n=n||d;return n};f.prototype.tv=function(a,c,b,k){var h,g,n=!1;this.Pn++;var d=this.xb().Wb;d&&this.xi(d.of);var m=1<this.Pn;this.xi(b.of);m&&this.dx();var e=this.Jk(b);e.Wb=b;a&&(h=this.types[c].aa(),h.pa=!1,D(h.g),h.g[0]=a,this.types[c].kd());a=!0;if(b.parent){c=e.Lr;for(h=b.parent;h;)c.push(h),h=h.parent;c.reverse();h=0;for(g=c.length;h<g;h++)if(!c[h].tx()){a=!1;break}}a&&(this.Ff++,b.$c?b.rx(k):b.ab(),n=n||e.Of);this.Ek();m&&this.Ww();this.$f(b.of);
d&&this.$f(d.of);this.bf&&0===this.Nc&&0===E&&!this.Gm&&this.Mb();this.Pn--;return n};f.prototype.gm=function(){var a=this.xb();return a.Wb.ub[a.tb]};f.prototype.Cv=function(){var a=this.xb();return a.Wb.Tc[a.hc]};f.prototype.dx=function(){this.qk++;this.qk>=this.Sm.length&&this.Sm.push([])};f.prototype.Ww=function(){this.qk--};f.prototype.wp=function(){return this.Sm[this.qk]};f.prototype.Jk=function(a){this.Hj++;this.Hj>=this.Vl.length&&this.Vl.push(new Ub);var c=this.xb();c.reset(a);return c};
f.prototype.Ek=function(){this.Hj--};f.prototype.xb=function(){return this.Vl[this.Hj]};f.prototype.xp=function(a,c){for(var b,k,h,g,n,d;c;){b=0;for(k=c.dd.length;b<k;b++)if(d=c.dd[b],d instanceof Vb&&nb(a,d.name))return d;c=c.parent}b=0;for(k=this.ge.length;b<k;b++)for(n=this.ge[b],h=0,g=n.Ze.length;h<g;h++)if(d=n.Ze[h],d instanceof Vb&&nb(a,d.name))return d;return null};f.prototype.yp=function(a){var c,b;c=0;for(b=this.qd.length;c<b;c++)if(this.qd[c].ca===a)return this.qd[c];return null};f.prototype.Uj=
function(a){var c,b;c=0;for(b=this.B.length;c<b;c++)if(this.B[c].ca===a)return this.B[c];return null};f.prototype.Ev=function(a){var c,b;c=0;for(b=this.ng.length;c<b;c++)if(this.ng[c].ca===a)return this.ng[c];return null};f.prototype.mu=function(a,c){this.Hi=[a,c];this.na=!0};f.prototype.aw=function(){var a=this,c=this.Bn,k=this.qe,h=this.kk,g=!1;this.Fr&&(g=!0,c="__c2_continuouspreview",this.Fr=!1);if(c.length){this.Mb();k=this.xx();if(p()&&!this.Yc)q(c,k,function(){ga("Saved state to IndexedDB storage ("+
k.length+" bytes)");a.qe=k;a.trigger(Q.prototype.d.ol,null);k=a.qe="";g&&b()},function(h){try{localStorage.setItem("__c2save_"+c,k),ga("Saved state to WebStorage ("+k.length+" bytes)"),a.qe=k,a.trigger(Q.prototype.d.ol,null),k=a.qe="",g&&b()}catch(n){ga("Failed to save game state: "+h+"; "+n),a.trigger(Q.prototype.d.qo,null)}});else try{localStorage.setItem("__c2save_"+c,k),ga("Saved state to WebStorage ("+k.length+" bytes)"),a.qe=k,this.trigger(Q.prototype.d.ol,null),k=a.qe="",g&&b()}catch(n){ga("Error saving to WebStorage: "+
n),a.trigger(Q.prototype.d.qo,null)}this.kk=this.Bn="";this.nb=null}if(h.length){if(p()&&!this.Yc)t(h,function(c){c?(a.nb=c,ga("Loaded state from IndexedDB storage ("+a.nb.length+" bytes)")):(a.nb=localStorage.getItem("__c2save_"+h)||"",ga("Loaded state from WebStorage ("+a.nb.length+" bytes)"));a.Ji=!1;a.nb||(a.nb=null,a.trigger(Q.prototype.d.aj,null))},function(){a.nb=localStorage.getItem("__c2save_"+h)||"";ga("Loaded state from WebStorage ("+a.nb.length+" bytes)");a.Ji=!1;a.nb||(a.nb=null,a.trigger(Q.prototype.d.aj,
null))});else{try{this.nb=localStorage.getItem("__c2save_"+h)||"",ga("Loaded state from WebStorage ("+this.nb.length+" bytes)")}catch(d){this.nb=null}this.Ji=!1;a.nb||(a.nb=null,a.trigger(Q.prototype.d.aj,null))}this.Bn=this.kk=""}null!==this.nb&&(this.Mb(),this.Aw(this.nb)?(this.qe=this.nb,this.trigger(Q.prototype.d.Zs,null),this.qe=""):a.trigger(Q.prototype.d.aj,null),this.nb=null)};f.prototype.xx=function(){var c,b,k,h,g,n,d,m={c2save:!0,version:1,rt:{time:this.xa.J,walltime:this.Ge.J,timescale:this.eg,
tickcount:this.Vd,execcount:this.Ff,next_uid:this.pi,running_layout:this.Da.ca,start_time_offset:Date.now()-this.Xk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};c=0;for(b=this.B.length;c<b;c++)if(g=this.B[c],!g.O&&!this.Qn(g)){n={instances:[]};Wa(g.N)&&(n.ex=a(g.N));k=0;for(h=g.g.length;k<h;k++)n.instances.push(this.An(g.g[k]));m.types[g.ca.toString()]=n}c=0;for(b=this.qd.length;c<b;c++)k=this.qd[c],m.layouts[k.ca.toString()]=k.Kb();h=m.events.groups;c=0;for(b=this.ng.length;c<
b;c++)k=this.ng[c],h[k.ca.toString()]=this.Dg[k.Nh].Hf;b=m.events.cnds;for(d in this.Ue)this.Ue.hasOwnProperty(d)&&(c=this.Ue[d],Wa(c.N)&&(b[d]={ex:a(c.N)}));b=m.events.acts;for(d in this.Me)this.Me.hasOwnProperty(d)&&(c=this.Me[d],Wa(c.N)&&(b[d]={ex:a(c.N)}));b=m.events.vars;for(d in this.nh)this.nh.hasOwnProperty(d)&&(c=this.nh[d],c.ck||c.parent&&!c.Zh||(b[d]=c.data));m.system=this.Td.Kb();return JSON.stringify(m)};f.prototype.lr=function(){var a,c,b,k,h,g;this.ue={};a=0;for(c=this.B.length;a<c;a++)if(b=
this.B[a],!b.O)for(k=0,h=b.g.length;k<h;k++)g=b.g[k],this.ue[g.uid.toString()]=g};f.prototype.Aw=function(a){var c;try{c=JSON.parse(a)}catch(b){return!1}if(!c.c2save||1<c.version)return!1;this.Uh=!0;a=c.rt;this.xa.reset();this.xa.J=a.time;this.Ge.reset();this.Ge.J=a.walltime||0;this.eg=a.timescale;this.Vd=a.tickcount;this.Ff=a.execcount;this.Xk=Date.now()-a.start_time_offset;var k=a.running_layout;if(k!==this.Da.ca)if(k=this.yp(k))this.ip(k);else return;var h,g,n,d,m,e,v;e=c.types;for(g in e)if(e.hasOwnProperty(g)&&
(d=this.Uj(parseInt(g,10)))&&!d.O&&!this.Qn(d)){e[g].ex?d.N=e[g].ex:Za(d.N);m=d.g;n=e[g].instances;k=0;for(h=qa(m.length,n.length);k<h;k++)this.lk(m[k],n[k]);k=n.length;for(h=m.length;k<h;k++)this.sf(m[k]);k=m.length;for(h=n.length;k<h;k++){m=null;if(d.ba.ef&&(m=this.Da.Sj(n[k].w.l),!m))continue;m=this.Ve(d.Wc,m,!1,0,0,!0);this.lk(m,n[k])}d.gh=!0}this.Mb();this.lr();h=c.layouts;for(g in h)h.hasOwnProperty(g)&&(k=this.yp(parseInt(g,10)))&&k.$b(h[g]);h=c.events.groups;for(g in h)h.hasOwnProperty(g)&&
(k=this.Ev(parseInt(g,10)))&&this.Dg[k.Nh]&&this.Dg[k.Nh].Tk(h[g]);k=c.events.cnds;for(g in this.Ue)this.Ue.hasOwnProperty(g)&&(k.hasOwnProperty(g)?this.Ue[g].N=k[g].ex:this.Ue[g].N={});k=c.events.acts;for(g in this.Me)this.Me.hasOwnProperty(g)&&(k.hasOwnProperty(g)?this.Me[g].N=k[g].ex:this.Me[g].N={});k=c.events.vars;for(g in k)k.hasOwnProperty(g)&&this.nh.hasOwnProperty(g)&&(this.nh[g].data=k[g]);this.pi=a.next_uid;this.Uh=!1;k=0;for(h=this.Lj.length;k<h;++k)m=this.Lj[k],this.trigger(Object.getPrototypeOf(m.type.ba).d.kg,
m);D(this.Lj);this.Td.$b(c.system);k=0;for(h=this.B.length;k<h;k++)if(d=this.B[k],!d.O&&!this.Qn(d))for(c=0,g=d.g.length;c<g;c++){m=d.g[c];if(d.Qb)for(e=m.Mh(),D(m.siblings),a=0,n=d.vc.length;a<n;a++)v=d.vc[a],d!==v&&m.siblings.push(v.g[e]);m.Ne&&m.Ne();if(m.S)for(a=0,n=m.S.length;a<n;a++)e=m.S[a],e.Ne&&e.Ne()}return this.na=!0};f.prototype.An=function(c,b){var k,h,g,n,d;n=c.type;g=n.ba;var m={};b?m.c2=!0:m.uid=c.uid;Wa(c.N)&&(m.ex=a(c.N));if(c.lb&&c.lb.length)for(m.ivs={},k=0,h=c.lb.length;k<h;k++)m.ivs[c.type.Am[k].toString()]=
c.lb[k];if(g.ef){g={x:c.x,y:c.y,w:c.width,h:c.height,l:c.j.ca,zi:c.Jd()};0!==c.m&&(g.a=c.m);1!==c.opacity&&(g.o=c.opacity);.5!==c.jc&&(g.hX=c.jc);.5!==c.kc&&(g.hY=c.kc);0!==c.Nb&&(g.bm=c.Nb);c.visible||(g.v=c.visible);c.Ed||(g.ce=c.Ed);-1!==c.oi&&(g.mts=c.oi);if(n.T.length)for(g.fx=[],k=0,h=n.T.length;k<h;k++)d=n.T[k],g.fx.push({name:d.name,active:c.Le[d.index],params:c.Qa[d.index]});m.w=g}if(c.S&&c.S.length)for(m.behs={},k=0,h=c.S.length;k<h;k++)n=c.S[k],n.Kb&&(m.behs[n.type.ca.toString()]=n.Kb());
c.Kb&&(m.data=c.Kb());return m};f.prototype.Gv=function(a,c){var b,k;b=0;for(k=a.Am.length;b<k;b++)if(a.Am[b]===c)return b;return-1};f.prototype.Av=function(a,c){var b,k;b=0;for(k=a.S.length;b<k;b++)if(a.S[b].type.ca===c)return b;return-1};f.prototype.lk=function(a,c,b){var k,h,g,n,d;d=a.type;var m=d.ba;if(b){if(!c.c2)return}else a.uid=c.uid;c.ex?a.N=c.ex:Za(a.N);if(h=c.ivs)for(k in h)h.hasOwnProperty(k)&&(g=this.Gv(d,parseInt(k,10)),0>g||g>=a.lb.length||(n=h[k],null===n&&(n=NaN),a.lb[g]=n));if(m.ef){g=
c.w;a.j.ca!==g.l&&(h=a.j,a.j=this.Da.Sj(g.l),a.j?(h.ah(a,!0),a.j.vh(a,!0),a.La(),a.j.Di(0)):(a.j=h,b||this.sf(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.zd=g.zi;a.m=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.jc=g.hasOwnProperty("hX")?g.hX:.5;a.kc=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.Ed=g.hasOwnProperty("ce")?g.ce:!0;a.oi=g.hasOwnProperty("mts")?g.mts:-1;a.Nb=g.hasOwnProperty("bm")?g.bm:0;a.zh=ib(a.Nb);this.C&&lb(a,a.Nb,this.C);a.La();
if(g.hasOwnProperty("fx"))for(b=0,h=g.fx.length;b<h;b++)n=d.jm(g.fx[b].name),0>n||(a.Le[n]=g.fx[b].active,a.Qa[n]=g.fx[b].params);a.yd()}if(d=c.behs)for(k in d)d.hasOwnProperty(k)&&(b=this.Av(a,parseInt(k,10)),0>b||a.S[b].$b(d[k]));c.data&&a.$b(c.data)};f.prototype.op=function(a,c,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(c,b)},b)};f.prototype.qp=function(a,c,b){this.op(a,function(a){var k=new FileReader;k.onload=function(a){c(a.target.result)};
k.onerror=b;k.readAsText(a)},b)};var O=[],V=0;f.prototype.Um=function(){if(O.length&&!(8<=V)){V++;var a=O.shift();this.pu(a.filename,a.Ix,a.Nu)}};f.prototype.pp=function(a,c,b){var k=this;O.push({filename:a,Ix:function(a){V--;k.Um();c(a)},Nu:function(a){V--;k.Um();b(a)}});this.Um()};f.prototype.pu=function(a,c,b){this.op(a,function(a){var b=new FileReader;b.onload=function(a){c(a.target.result)};b.readAsArrayBuffer(a)},b)};f.prototype.uv=function(a,c,b){var k="",h=a.toLowerCase(),g=h.substr(h.length-
4),h=h.substr(h.length-5);".mp4"===g?k="video/mp4":".webm"===h?k="video/webm":".m4a"===g?k="audio/mp4":".mp3"===g&&(k="audio/mpeg");this.pp(a,function(a){a=URL.createObjectURL(new Blob([a],{type:k}));c(a)},b)};f.prototype.Kp=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};f.prototype.ur=function(a,c){this.Xh&&!this.Kp(c)?this.uv(c,function(c){a.src=c},function(a){alert("Failed to load image: "+a)}):a.src=c};f.prototype.Rk=function(a,c){"undefined"!==
typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=c:(a.webkitImageSmoothingEnabled=c,a.mozImageSmoothingEnabled=c,a.msImageSmoothingEnabled=c)};Wb=function(a){return new f(document.getElementById(a))};Xb=function(a,c){return new f({dc:!0,width:a,height:c})};window.cr_createRuntime=Wb;window.cr_createDCRuntime=Xb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.uc=!0;document.body.appendChild(a);a=new f(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.createEjectaRuntime=function(){var a=new f(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(f,l){var p=window.cr_getC2Runtime();p&&p.mu(f,l)};window.cr_sizeCanvas=function(f,l){if(0!==f&&0!==l){var p=window.cr_getC2Runtime();p&&p.setSize(f,l)}};window.cr_setSuspended=function(f){var l=window.cr_getC2Runtime();l&&l.setSuspended(f)};
(function(){function f(a,b){this.b=a;this.Df=null;this.scrollX=this.b.pb/2;this.scrollY=this.b.ob/2;this.scale=1;this.m=0;this.Ag=!0;this.name=b[0];this.Sw=b[1];this.Rw=b[2];this.width=b[1];this.height=b[2];this.Wr=b[3];this.Dr=b[4];this.ca=b[5];var d=b[6],g,e;this.V=[];this.Qh=[];g=0;for(e=d.length;g<e;g++){var f=new Yb(this,d[g]);f.Jq=g;this.V.push(f)}d=b[7];this.cf=[];g=0;for(e=d.length;g<e;g++){var f=d[g],r=this.b.B[f[1]];r.Wc||(r.Wc=f);this.cf.push(f);-1===this.Qh.indexOf(r)&&this.Qh.push(r)}this.T=
[];this.ma=[];this.ye=!0;this.Qa=[];g=0;for(e=b[8].length;g<e;g++)this.T.push({id:b[8][g][0],name:b[8][g][1],bb:-1,td:!1,Db:!0,index:g}),this.Qa.push(b[8][g][2].slice(0));this.yd();this.Zg=new wa(0,0,1,1);this.un=new wa(0,0,1,1);this.mf={}}function l(a,b){return a.zd-b.zd}function p(a,b){this.zb=a;this.b=a.b;this.g=[];this.scale=1;this.m=0;this.ee=!1;this.Ce=new wa(0,0,0,0);this.Qr=new xa;this.Aa=this.ua=this.Ba=this.ta=0;this.gg=!1;this.Ie=-1;this.Ll=0;this.name=b[0];this.index=b[1];this.ca=b[2];
this.visible=b[3];this.ld=b[4];this.xd=b[5];this.mc=b[6];this.nc=b[7];this.opacity=b[8];this.Oj=b[9];this.Sc=b[10];this.Sb=b[11];this.Nb=b[12];this.Ju=b[13];this.zh="source-over";this.Ob=this.Rb=0;this.Jb=null;this.re=e();this.vd=!0;this.Pg=new wa(0,0,-1,-1);this.Eb=new wa(0,0,-1,-1);this.Sc&&(this.Jb=new hb(this.b.pb,this.b.ob));this.Rd=!1;var d=b[14],g,f;this.Jr=[];this.Lc=[];this.Ch=[];g=0;for(f=d.length;g<f;g++){var l=d[g],r=this.b.B[l[1]];r.Wc||(r.Wc=l,r.lu=this.index);this.Lc.push(l);-1===this.zb.Qh.indexOf(r)&&
this.zb.Qh.push(r)}Ca(this.Jr,this.Lc);this.T=[];this.ma=[];this.ye=!0;this.Qa=[];g=0;for(f=b[15].length;g<f;g++)this.T.push({id:b[15][g][0],name:b[15][g][1],bb:-1,td:!1,Db:!0,index:g}),this.Qa.push(b[15][g][2].slice(0));this.yd();this.Zg=new wa(0,0,1,1);this.un=new wa(0,0,1,1)}function e(){return a.length?a.pop():[]}function q(c){D(c);a.push(c)}f.prototype.wx=function(a){var b=a.type.ca.toString();this.mf.hasOwnProperty(b)||(this.mf[b]=[]);this.mf[b].push(this.b.An(a))};f.prototype.Cp=function(){var a=
this.V[0];return!a.xd&&1===a.opacity&&!a.Oj&&a.visible};f.prototype.yd=function(){D(this.ma);this.ye=!0;var a,b,d;a=0;for(b=this.T.length;a<b;a++)d=this.T[a],d.Db&&(this.ma.push(d),d.td||(this.ye=!1))};f.prototype.im=function(a){var b,d,g;b=0;for(d=this.T.length;b<d;b++)if(g=this.T[b],g.name===a)return g;return null};var t=[],b=!0;f.prototype.Gn=function(){this.Dr&&(this.Df=this.b.Wl[this.Dr],this.Df.Tn());this.b.Da=this;this.width=this.Sw;this.height=this.Rw;this.scrollX=this.b.pb/2;this.scrollY=
this.b.ob/2;var a,h,d,g,e,f,r;a=0;for(d=this.b.B.length;a<d;a++)if(h=this.b.B[a],!h.O)for(e=h.g,h=0,g=e.length;h<g;h++)if(f=e[h],f.j){var k=f.j.Jq;k>=this.V.length&&(k=this.V.length-1);f.j=this.V[k];-1===f.j.g.indexOf(f)&&f.j.g.push(f);f.j.gg=!0}if(!b)for(a=0,d=this.V.length;a<d;++a)this.V[a].g.sort(l);D(t);this.Yt();a=0;for(d=this.V.length;a<d;a++)f=this.V[a],f.ku(),f.il();e=!1;if(!this.Ag){for(r in this.mf)if(this.mf.hasOwnProperty(r)&&(h=this.b.Uj(parseInt(r,10)))&&!h.O&&this.b.Rn(h)){g=this.mf[r];
a=0;for(d=g.length;a<d;a++){f=null;if(h.ba.ef&&(f=this.Sj(g[a].w.l),!f))continue;f=this.b.Ve(h.Wc,f,!1,0,0,!0);this.b.lk(f,g[a]);e=!0;t.push(f)}D(g)}a=0;for(d=this.V.length;a<d;a++)this.V[a].g.sort(l),this.V[a].gg=!0}e&&(this.b.Mb(),this.b.lr());for(a=0;a<t.length;a++)if(f=t[a],f.type.Qb)for(d=f.Mh(),h=0,g=f.type.vc.length;h<g;h++)r=f.type.vc[h],f.type!==r&&(r.g.length>d?f.siblings.push(r.g[d]):r.Wc&&(e=this.b.Ve(r.Wc,f.j,!0,f.x,f.y,!0),this.b.Mb(),r.gl(),f.siblings.push(e),t.push(e)));a=0;for(d=
this.cf.length;a<d;a++)f=this.cf[a],h=this.b.B[f[1]],h.Qb||this.b.Ve(this.cf[a],null,!0);this.b.sg=null;this.b.Mb();if(this.b.Pa&&!this.b.wa)for(a=0,d=this.b.B.length;a<d;a++)r=this.b.B[a],!r.O&&r.g.length&&r.pn&&r.pn(this.b.Pa);if(this.b.Uh)Ca(this.b.Lj,t);else for(a=0,d=t.length;a<d;a++)f=t[a],this.b.trigger(Object.getPrototypeOf(f.type.ba).d.kg,f);D(t);this.b.Uh||this.b.trigger(Q.prototype.d.io,null);this.Ag=!1};f.prototype.ju=function(){var a,b,d,g,e;b=a=0;for(d=this.cf.length;a<d;a++)g=this.cf[a],
e=this.b.B[g[1]],e.global?e.Qb||this.b.Ve(g,null,!0):(this.cf[b]=g,b++);Aa(this.cf,b)};f.prototype.Hx=function(){this.b.Uh||this.b.trigger(Q.prototype.d.ho,null);this.b.Dm=!0;D(this.b.Td.sc);var a,h,d,g,e,f;if(!this.Ag)for(a=0,h=this.V.length;a<h;a++)for(this.V[a].Vn(),e=this.V[a].g,d=0,g=e.length;d<g;d++)f=e[d],f.type.global||this.b.Rn(f.type)&&this.wx(f);a=0;for(h=this.V.length;a<h;a++){e=this.V[a].g;d=0;for(g=e.length;d<g;d++)f=e[d],f.type.global||this.b.sf(f);this.b.Mb();D(e);this.V[a].gg=!0}a=
0;for(h=this.b.B.length;a<h;a++)if(e=this.b.B[a],!(e.global||e.ba.ef||e.ba.Wk||e.O)){d=0;for(g=e.g.length;d<g;d++)this.b.sf(e.g[d]);this.b.Mb()}b=!1;this.b.Dm=!1};new wa(0,0,0,0);f.prototype.Hc=function(a){var b,d=a,g=!1,e=!this.b.Ic;e&&(this.b.jk||(this.b.jk=document.createElement("canvas"),b=this.b.jk,b.width=this.b.M,b.height=this.b.L,this.b.dq=b.getContext("2d"),g=!0),b=this.b.jk,d=this.b.dq,b.width!==this.b.M&&(b.width=this.b.M,g=!0),b.height!==this.b.L&&(b.height=this.b.L,g=!0),g&&this.b.Rk(d,
this.b.Ka));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.cp&&!this.Cp()&&d.clearRect(0,0,this.b.M,this.b.L);var f,r,g=0;for(f=this.V.length;g<f;g++)r=this.V[g],r.visible&&0<r.opacity&&11!==r.Nb&&(r.g.length||!r.xd)?r.Hc(d):r.il();e&&a.drawImage(b,0,0,this.b.width,this.b.height)};f.prototype.wg=function(a){a.tr(!0);this.b.Za||(this.b.Za=a.Fc(this.b.M,this.b.L,this.b.Ka));if(this.b.Za.xf!==this.b.M||this.b.Za.wf!==this.b.L)a.deleteTexture(this.b.Za),this.b.Za=a.Fc(this.b.M,this.b.L,
this.b.Ka);a.cd(this.b.Za);this.b.Ic||a.bg(this.b.M,this.b.L);var b,d;for(b=this.V.length-1;0<=b;--b)d=this.V[b],d.visible&&1===d.opacity&&d.ye&&0===d.Nb&&(d.g.length||!d.xd)?d.wg(a):d.il();a.tr(!1)};f.prototype.Xb=function(a){var b=0<this.ma.length||this.b.kh||!this.b.Ic||this.b.Ga;if(b){this.b.Za||(this.b.Za=a.Fc(this.b.M,this.b.L,this.b.Ka));if(this.b.Za.xf!==this.b.M||this.b.Za.wf!==this.b.L)a.deleteTexture(this.b.Za),this.b.Za=a.Fc(this.b.M,this.b.L,this.b.Ka);a.cd(this.b.Za);this.b.Ic||a.bg(this.b.M,
this.b.L)}else this.b.Za&&(a.cd(null),a.deleteTexture(this.b.Za),this.b.Za=null);this.b.cp&&!this.Cp()&&a.clear(0,0,0,0);var d,g,e;d=0;for(g=this.V.length;d<g;d++)e=this.V[d],e.visible&&0<e.opacity&&(e.g.length||!e.xd)?e.Xb(a):e.il();b&&(0===this.ma.length||1===this.ma.length&&this.b.Ic?(1===this.ma.length?(b=this.ma[0].index,a.rc(this.ma[0].bb),a.dh(null,1/this.b.M,1/this.b.L,0,0,1,1,this.scale,this.m,0,0,this.b.M/2,this.b.L/2,this.b.xa.J,this.Qa[b]),a.Hk(this.ma[0].bb)&&(this.b.na=!0)):a.rc(0),
this.b.Ic||a.bg(this.b.width,this.b.height),a.cd(null),a.sr(!1),a.ag(1),a.Cc(this.b.Za),a.qr(),a.bd(),a.Rc(),b=this.b.width/2,d=this.b.height/2,a.yi(-b,d,b,d,b,-d,-b,-d),a.Cc(null),a.sr(!0)):this.vn(a,null,null,null))};f.prototype.Lh=function(){return 0<this.ma.length||this.b.kh||!this.b.Ic||this.b.Ga?this.b.Za:null};f.prototype.zp=function(){var a=this.V[0].ic(),b,d,g;b=1;for(d=this.V.length;b<d;b++)g=this.V[b],(0!==g.mc||0!==g.nc)&&g.ic()<a&&(a=g.ic());return a};f.prototype.or=function(a){if(!this.Wr){var b=
1/this.zp()*this.b.M/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.na=!0)};f.prototype.pr=function(a){if(!this.Wr){var b=1/this.zp()*this.b.L/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.na=!0)};f.prototype.Yt=function(){this.or(this.scrollX);this.pr(this.scrollY)};f.prototype.vn=function(a,b,d,g){var e=d?d.ma:b?b.ma:this.ma,f=1,r=0,k=0,n=0,v=this.b.M,l=this.b.L;d?(f=d.j.ic(),r=d.j.jb(),k=d.j.ta,n=d.j.ua,v=d.j.Ba,
l=d.j.Aa):b&&(f=b.ic(),r=b.jb(),k=b.ta,n=b.ua,v=b.Ba,l=b.Aa);var q=this.b.dm,p,t,u,w,A=0,B=1,S,I,E=this.b.M,O=this.b.L,V=E/2,z=O/2,y=b?b.Zg:this.Zg,x=b?b.un:this.un,P=0,K=0,L=0,J=0,T=E,ea=E,R=O,la=O,fa=u=0;w=d?d.j.jb():0;if(d){p=0;for(t=e.length;p<t;p++)u+=a.Kv(e[p].bb),fa+=a.Lv(e[p].bb);J=d.Va;P=b.Ca(J.left,J.top,!0,!0);L=b.Ca(J.left,J.top,!1,!0);T=b.Ca(J.right,J.bottom,!0,!0);R=b.Ca(J.right,J.bottom,!1,!0);0!==w&&(p=b.Ca(J.right,J.top,!0,!0),t=b.Ca(J.right,J.top,!1,!0),K=b.Ca(J.left,J.bottom,!0,
!0),J=b.Ca(J.left,J.bottom,!1,!0),w=Math.min(P,T,p,K),T=Math.max(P,T,p,K),P=w,w=Math.min(L,R,t,J),R=Math.max(L,R,t,J),L=w);P-=u;L-=fa;T+=u;R+=fa;x.left=P/E;x.top=1-L/O;x.right=T/E;x.bottom=1-R/O;K=P=sa(P);J=L=sa(L);ea=T=ua(T);la=R=ua(R);K-=u;J-=fa;ea+=u;la+=fa;0>P&&(P=0);0>L&&(L=0);T>E&&(T=E);R>O&&(R=O);0>K&&(K=0);0>J&&(J=0);ea>E&&(ea=E);la>O&&(la=O);y.left=P/E;y.top=1-L/O;y.right=T/E;y.bottom=1-R/O}else y.left=x.left=0,y.top=x.top=0,y.right=x.right=1,y.bottom=x.bottom=1;fa=d&&(a.vi(e[0].bb)||0!==
u||0!==fa||1!==d.opacity||d.type.ba.Dq)||b&&!d&&1!==b.opacity;a.qr();if(fa){q[A]||(q[A]=a.Fc(E,O,this.b.Ka));if(q[A].xf!==E||q[A].wf!==O)a.deleteTexture(q[A]),q[A]=a.Fc(E,O,this.b.Ka);a.rc(0);a.cd(q[A]);I=la-J;a.clearRect(K,O-J-I,ea-K,I);d?d.Xb(a):(a.Cc(this.b.mb),a.ag(b.opacity),a.bd(),a.translate(-V,-z),a.Rc(),a.we(P,R,T,R,T,L,P,L,y));x.left=x.top=0;x.right=x.bottom=1;d&&(w=y.top,y.top=y.bottom,y.bottom=w);A=1;B=0}a.ag(1);u=e.length-1;var Fa=a.rn(e[u].bb)||!b&&!d&&!this.b.Ic;p=w=0;for(t=e.length;p<
t;p++){q[A]||(q[A]=a.Fc(E,O,this.b.Ka));if(q[A].xf!==E||q[A].wf!==O)a.deleteTexture(q[A]),q[A]=a.Fc(E,O,this.b.Ka);a.rc(e[p].bb);w=e[p].index;a.Hk(e[p].bb)&&(this.b.na=!0);0!=p||fa?(a.dh(g,1/E,1/O,x.left,x.top,x.right,x.bottom,f,r,k,n,(k+v)/2,(n+l)/2,this.b.xa.J,d?d.Qa[w]:b?b.Qa[w]:this.Qa[w]),a.Cc(null),p!==u||Fa?(a.cd(q[A]),I=la-J,S=O-J-I,a.clearRect(K,S,ea-K,I)):(d?a.nf(d.Rb,d.Ob):b&&a.nf(b.Rb,b.Ob),a.cd(g)),a.Cc(q[B]),a.bd(),a.translate(-V,-z),a.Rc(),a.we(P,R,T,R,T,L,P,L,y),p!==u||Fa||a.Cc(null)):
(a.cd(q[A]),I=la-J,S=O-J-I,a.clearRect(K,S,ea-K,I),d?(d.wb&&d.wb.za?(S=d.wb.za,B=1/S.width,S=1/S.height):(B=1/d.width,S=1/d.height),a.dh(g,B,S,x.left,x.top,x.right,x.bottom,f,r,k,n,(k+v)/2,(n+l)/2,this.b.xa.J,d.Qa[w]),d.Xb(a)):(a.dh(g,1/E,1/O,0,0,1,1,f,r,k,n,(k+v)/2,(n+l)/2,this.b.xa.J,b?b.Qa[w]:this.Qa[w]),a.Cc(b?this.b.mb:this.b.Za),a.bd(),a.translate(-V,-z),a.Rc(),a.we(P,R,T,R,T,L,P,L,y)),x.left=x.top=0,x.right=x.bottom=1,d&&!Fa&&(w=R,R=L,L=w));A=0===A?1:0;B=0===A?1:0}Fa&&(a.rc(0),d?a.nf(d.Rb,
d.Ob):b?a.nf(b.Rb,b.Ob):this.b.Ic||(a.bg(this.b.width,this.b.height),V=this.b.width/2,z=this.b.height/2,L=P=0,T=this.b.width,R=this.b.height),a.cd(g),a.Cc(q[B]),a.bd(),a.translate(-V,-z),a.Rc(),d&&1===e.length&&!fa?a.we(P,L,T,L,T,R,P,R,y):a.we(P,R,T,R,T,L,P,L,y),a.Cc(null))};f.prototype.Sj=function(a){var b,d;b=0;for(d=this.V.length;b<d;b++)if(this.V[b].ca===a)return this.V[b];return null};f.prototype.Kb=function(){var a,b,d,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.m,w:this.width,h:this.height,
fv:this.Ag,persist:this.mf,fx:[],layers:{}};a=0;for(b=this.T.length;a<b;a++)d=this.T[a],g.fx.push({name:d.name,active:d.Db,params:this.Qa[d.index]});a=0;for(b=this.V.length;a<b;a++)d=this.V[a],g.layers[d.ca.toString()]=d.Kb();return g};f.prototype.$b=function(a){var b,d,g,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.m=a.a;this.width=a.w;this.height=a.h;this.mf=a.persist;"undefined"!==typeof a.fv&&(this.Ag=a.fv);var f=a.fx;b=0;for(d=f.length;b<d;b++)if(g=this.im(f[b].name))g.Db=f[b].active,
this.Qa[g.index]=f[b].params;this.yd();b=a.layers;for(e in b)b.hasOwnProperty(e)&&(a=this.Sj(parseInt(e,10)))&&a.$b(b[e])};Kb=f;p.prototype.yd=function(){D(this.ma);this.ye=!0;var a,b,d;a=0;for(b=this.T.length;a<b;a++)d=this.T[a],d.Db&&(this.ma.push(d),d.td||(this.ye=!1))};p.prototype.im=function(a){var b,d,g;b=0;for(d=this.T.length;b<d;b++)if(g=this.T[b],g.name===a)return g;return null};p.prototype.ku=function(){var a,b,d,g,e,f;b=a=0;for(d=this.Lc.length;a<d;a++){g=this.Lc[a];e=this.b.B[g[1]];f=
this.b.Rn(e);e=!0;if(!f||this.zb.Ag){g=this.b.Ve(g,this,!0);if(!g)continue;t.push(g);g.type.global&&(e=!1,this.Ch.push(g.uid))}e&&(this.Lc[b]=this.Lc[a],b++)}this.Lc.length=b;this.b.Mb();!this.b.D&&this.T.length&&(this.Nb=this.Ju);this.zh=ib(this.Nb);this.b.C&&lb(this,this.Nb,this.b.C);this.vd=!0};p.prototype.ah=function(a,b){var d=Ea(this.g,a);0>d||(b&&this.Sc&&a.oc&&a.oc.right>=a.oc.left&&(a.Fa(),this.Jb.update(a,a.oc,null),a.oc.set(0,0,-1,-1)),d===this.g.length-1?this.g.pop():(za(this.g,d),this.Di(d)),
this.vd=!0)};p.prototype.vh=function(a,b){a.zd=this.g.length;this.g.push(a);b&&this.Sc&&a.oc&&a.La();this.vd=!0};p.prototype.ax=function(a){this.g.unshift(a);this.Di(0)};p.prototype.Hw=function(a,b,d){var g=a.Jd();b=b.Jd();za(this.g,g);g<b&&b--;d&&b++;b===this.g.length?this.g.push(a):this.g.splice(b,0,a);this.Di(g<b?g:b)};p.prototype.Di=function(a){-1===this.Ie?this.Ie=a:a<this.Ie&&(this.Ie=a);this.vd=this.gg=!0};p.prototype.Vn=function(){if(this.gg){-1===this.Ie&&(this.Ie=0);var a,b,d;if(this.Sc)for(a=
this.Ie,b=this.g.length;a<b;++a)d=this.g[a],d.zd=a,this.Jb.Ew(d.oc);else for(a=this.Ie,b=this.g.length;a<b;++a)this.g[a].zd=a;this.gg=!1;this.Ie=-1}};p.prototype.ic=function(a){return this.Hv()*(this.b.Ic||a?this.b.wh:1)};p.prototype.Hv=function(){return(this.scale*this.zb.scale-1)*this.Sb+1};p.prototype.jb=function(){return this.ee?0:Ka(this.zb.m+this.m)};var a=[],u=[],d=[];p.prototype.mm=function(){this.Vn();this.Jb.Kk(this.ta,this.ua,this.Ba,this.Aa,d);if(!d.length)return e();if(1===d.length){var a=
e();Ca(a,d[0]);D(d);return a}for(var b=!0;1<d.length;){for(var a=d,f=void 0,g=void 0,l=void 0,p=void 0,r=void 0,f=0,g=a.length;f<g-1;f+=2){var l=a[f],p=a[f+1],r=e(),k=l,n=p,v=r,t=0,Y=0,H=0,F=k.length,G=n.length,w=void 0,A=void 0;for(v.length=F+G;t<F&&Y<G;++H)w=k[t],A=n[Y],w.zd<A.zd?(v[H]=w,++t):(v[H]=A,++Y);for(;t<F;++t,++H)v[H]=k[t];for(;Y<G;++Y,++H)v[H]=n[Y];b||(q(l),q(p));u.push(r)}1===g%2&&(b?(l=e(),Ca(l,a[g-1]),u.push(l)):u.push(a[g-1]));Ca(a,u);D(u);b=!1}a=d[0];D(d);return a};p.prototype.Hc=
function(a){this.Rd=this.Oj||1!==this.opacity||0!==this.Nb;var b=this.b.canvas,d=a,g=!1;this.Rd&&(this.b.ik||(this.b.ik=document.createElement("canvas"),b=this.b.ik,b.width=this.b.M,b.height=this.b.L,this.b.cq=b.getContext("2d"),g=!0),b=this.b.ik,d=this.b.cq,b.width!==this.b.M&&(b.width=this.b.M,g=!0),b.height!==this.b.L&&(b.height=this.b.L,g=!0),g&&this.b.Rk(d,this.b.Ka),this.xd&&d.clearRect(0,0,this.b.M,this.b.L));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.xd||(d.fillStyle="rgb("+
this.ld[0]+","+this.ld[1]+","+this.ld[2]+")",d.fillRect(0,0,this.b.M,this.b.L));d.save();this.ee=!0;var g=this.hb(0,0,!0,!0),e=this.hb(0,0,!1,!0);this.ee=!1;this.b.sd&&(g=Math.round(g),e=Math.round(e));this.Mk(g,e,d);var f=this.ic();d.scale(f,f);d.translate(-g,-e);this.Sc?(this.Eb.left=this.Jb.fc(this.ta),this.Eb.top=this.Jb.gc(this.ua),this.Eb.right=this.Jb.fc(this.Ba),this.Eb.bottom=this.Jb.gc(this.Aa),this.vd||!this.Eb.Eh(this.Pg)?(q(this.re),g=this.mm(),this.vd=!1,this.Pg.Ah(this.Eb)):g=this.re):
g=this.g;for(var r,k=null,e=0,f=g.length;e<f;++e)r=g[e],r!==k&&(this.Eu(r,d),k=r);this.Sc&&(this.re=g);d.restore();this.Rd&&(a.globalCompositeOperation=this.zh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};p.prototype.Eu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Fa();var d=a.Va;d.right<this.ta||d.bottom<this.ua||d.left>this.Ba||d.top>this.Aa||(b.globalCompositeOperation=a.zh,a.Hc(b))}};p.prototype.il=function(){this.ee=!0;var a=this.hb(0,0,!0,!0),b=this.hb(0,0,!1,!0);this.ee=!1;this.b.sd&&
(a=Math.round(a),b=Math.round(b));this.Mk(a,b,null)};p.prototype.Mk=function(a,b,d){var g=this.ic();this.ta=a;this.ua=b;this.Ba=a+1/g*this.b.M;this.Aa=b+1/g*this.b.L;this.ta>this.Ba&&(a=this.ta,this.ta=this.Ba,this.Ba=a);this.ua>this.Aa&&(a=this.ua,this.ua=this.Aa,this.Aa=a);a=this.jb();0!==a&&(d&&(d.translate(this.b.M/2,this.b.L/2),d.rotate(-a),d.translate(this.b.M/-2,this.b.L/-2)),this.Ce.set(this.ta,this.ua,this.Ba,this.Aa),this.Ce.offset((this.ta+this.Ba)/-2,(this.ua+this.Aa)/-2),this.Qr.Br(this.Ce,
a),this.Qr.Io(this.Ce),this.Ce.offset((this.ta+this.Ba)/2,(this.ua+this.Aa)/2),this.ta=this.Ce.left,this.ua=this.Ce.top,this.Ba=this.Ce.right,this.Aa=this.Ce.bottom)};p.prototype.wg=function(a){if(this.Rd=this.Oj){this.b.mb||(this.b.mb=a.Fc(this.b.M,this.b.L,this.b.Ka));if(this.b.mb.xf!==this.b.M||this.b.mb.wf!==this.b.L)a.deleteTexture(this.b.mb),this.b.mb=a.Fc(this.b.M,this.b.L,this.b.Ka);a.cd(this.b.mb)}this.ee=!0;var b=this.hb(0,0,!0,!0),d=this.hb(0,0,!1,!0);this.ee=!1;this.b.sd&&(b=Math.round(b),
d=Math.round(d));this.Mk(b,d,null);b=this.ic();a.bd();a.scale(b,b);a.Nk(-this.jb());a.translate((this.ta+this.Ba)/-2,(this.ua+this.Aa)/-2);a.Rc();this.Sc?(this.Eb.left=this.Jb.fc(this.ta),this.Eb.top=this.Jb.gc(this.ua),this.Eb.right=this.Jb.fc(this.Ba),this.Eb.bottom=this.Jb.gc(this.Aa),this.vd||!this.Eb.Eh(this.Pg)?(q(this.re),b=this.mm(),this.vd=!1,this.Pg.Ah(this.Eb)):b=this.re):b=this.g;for(var g,e=null,d=b.length-1;0<=d;--d)g=b[d],g!==e&&(this.Gu(b[d],a),e=g);this.Sc&&(this.re=b);this.xd||(this.Ll=
this.b.Bf++,a.Sk(this.Ll),a.rr(1,1,1),a.tp(),a.lx())};p.prototype.Xb=function(a){var b=0,d=0;if(this.Rd=this.Oj||1!==this.opacity||0<this.ma.length||0!==this.Nb){this.b.mb||(this.b.mb=a.Fc(this.b.M,this.b.L,this.b.Ka));if(this.b.mb.xf!==this.b.M||this.b.mb.wf!==this.b.L)a.deleteTexture(this.b.mb),this.b.mb=a.Fc(this.b.M,this.b.L,this.b.Ka);a.cd(this.b.mb);this.xd&&a.clear(0,0,0,0)}this.xd||(this.b.Ga?(a.Sk(this.Ll),a.rr(this.ld[0]/255,this.ld[1]/255,this.ld[2]/255),a.tp(),a.Cx()):a.clear(this.ld[0]/
255,this.ld[1]/255,this.ld[2]/255,1));this.ee=!0;var g=this.hb(0,0,!0,!0),b=this.hb(0,0,!1,!0);this.ee=!1;this.b.sd&&(g=Math.round(g),b=Math.round(b));this.Mk(g,b,null);g=this.ic();a.bd();a.scale(g,g);a.Nk(-this.jb());a.translate((this.ta+this.Ba)/-2,(this.ua+this.Aa)/-2);a.Rc();this.Sc?(this.Eb.left=this.Jb.fc(this.ta),this.Eb.top=this.Jb.gc(this.ua),this.Eb.right=this.Jb.fc(this.Ba),this.Eb.bottom=this.Jb.gc(this.Aa),this.vd||!this.Eb.Eh(this.Pg)?(q(this.re),b=this.mm(),this.vd=!1,this.Pg.Ah(this.Eb)):
b=this.re):b=this.g;var e,f,r=null,d=0;for(e=b.length;d<e;++d)f=b[d],f!==r&&(this.Fu(b[d],a),r=f);this.Sc&&(this.re=b);this.Rd&&(b=this.ma.length?this.ma[0].bb:0,d=this.ma.length?this.ma[0].index:0,0===this.ma.length||1===this.ma.length&&!a.rn(b)&&1===this.opacity?(1===this.ma.length?(a.rc(b),a.dh(this.zb.Lh(),1/this.b.M,1/this.b.L,0,0,1,1,g,this.jb(),this.ta,this.ua,(this.ta+this.Ba)/2,(this.ua+this.Aa)/2,this.b.xa.J,this.Qa[d]),a.Hk(b)&&(this.b.na=!0)):a.rc(0),a.cd(this.zb.Lh()),a.ag(this.opacity),
a.Cc(this.b.mb),a.nf(this.Rb,this.Ob),a.bd(),a.Rc(),g=this.b.M/2,b=this.b.L/2,a.yi(-g,b,g,b,g,-b,-g,-b),a.Cc(null)):this.zb.vn(a,this,null,this.zb.Lh()))};p.prototype.Fu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Fa();var d=a.Va;d.right<this.ta||d.bottom<this.ua||d.left>this.Ba||d.top>this.Aa||(b.Sk(a.Bf),a.cs?this.Hu(a,b):(b.rc(0),b.nf(a.Rb,a.Ob),a.Xb(b)))}};p.prototype.Gu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Fa();var d=a.Va;d.right<this.ta||d.bottom<this.ua||d.left>
this.Ba||d.top>this.Aa||(a.Bf=this.b.Bf++,0===a.Nb&&1===a.opacity&&a.ye&&a.wg&&(b.Sk(a.Bf),a.wg(b)))}};p.prototype.Hu=function(a,b){var d=a.ma[0].bb,g=a.ma[0].index,e=this.ic();if(1!==a.ma.length||b.rn(d)||b.cx(d)||(a.m||a.j.jb())&&b.vi(d)||1!==a.opacity||a.type.ba.Dq)this.zb.vn(b,this,a,this.Rd?this.b.mb:this.zb.Lh()),b.bd(),b.scale(e,e),b.Nk(-this.jb()),b.translate((this.ta+this.Ba)/-2,(this.ua+this.Aa)/-2),b.Rc();else{b.rc(d);b.nf(a.Rb,a.Ob);b.Hk(d)&&(this.b.na=!0);var f=0,r=0,k=0,n=0;b.vi(d)&&
(n=a.Va,f=this.Ca(n.left,n.top,!0,!0),r=this.Ca(n.left,n.top,!1,!0),k=this.Ca(n.right,n.bottom,!0,!0),n=this.Ca(n.right,n.bottom,!1,!0),f=f/windowWidth,r=1-r/windowHeight,k=k/windowWidth,n=1-n/windowHeight);var v;a.wb&&a.wb.za?(v=a.wb.za,d=1/v.width,v=1/v.height):(d=1/a.width,v=1/a.height);b.dh(this.Rd?this.b.mb:this.zb.Lh(),d,v,f,r,k,n,e,this.jb(),this.ta,this.ua,(this.ta+this.Ba)/2,(this.ua+this.Aa)/2,this.b.xa.J,a.Qa[g]);a.Xb(b)}};p.prototype.hb=function(a,b,d,g){var e=this.b.devicePixelRatio;
this.b.Mf&&(a*=e,b*=e);var e=this.b.br,f=this.b.cr,e=(this.zb.scrollX-e)*this.mc+e,f=(this.zb.scrollY-f)*this.nc+f,r=e,k=f,n=1/this.ic(!g);g?(r-=this.b.M*n/2,k-=this.b.L*n/2):(r-=this.b.width*n/2,k-=this.b.height*n/2);r+=a*n;k+=b*n;b=this.jb();0!==b&&(r-=e,k-=f,a=Math.cos(b),b=Math.sin(b),g=r*a-k*b,k=k*a+r*b,r=g+e,k+=f);return d?r:k};p.prototype.Ca=function(a,b,d,g){var e=this.b.br,f=this.b.cr,r=(this.zb.scrollX-e)*this.mc+e,k=(this.zb.scrollY-f)*this.nc+f,f=r,e=k,n=this.jb();if(0!==n){a-=r;b-=k;
var v=Math.cos(-n),n=Math.sin(-n),l=a*v-b*n;b=b*v+a*n;a=l+r;b+=k}r=1/this.ic(!g);g?(f-=this.b.M*r/2,e-=this.b.L*r/2):(f-=this.b.width*r/2,e-=this.b.height*r/2);f=(a-f)/r;e=(b-e)/r;a=this.b.devicePixelRatio;this.b.Mf&&!g&&(f/=a,e/=a);return d?f:e};p.prototype.Kb=function(){var a,b,d,g={s:this.scale,a:this.m,vl:this.ta,vt:this.ua,vr:this.Ba,vb:this.Aa,v:this.visible,bc:this.ld,t:this.xd,px:this.mc,py:this.nc,o:this.opacity,zr:this.Sb,fx:[],cg:this.Ch,instances:[]};a=0;for(b=this.T.length;a<b;a++)d=
this.T[a],g.fx.push({name:d.name,active:d.Db,params:this.Qa[d.index]});return g};p.prototype.$b=function(a){var b,d,g;this.scale=a.s;this.m=a.a;this.ta=a.vl;this.ua=a.vt;this.Ba=a.vr;this.Aa=a.vb;this.visible=a.v;this.ld=a.bc;this.xd=a.t;this.mc=a.px;this.nc=a.py;this.opacity=a.o;this.Sb=a.zr;this.Ch=a.cg||[];Ca(this.Lc,this.Jr);var e=new ca;b=0;for(g=this.Ch.length;b<g;++b)e.add(this.Ch[b]);d=b=0;for(g=this.Lc.length;b<g;++b)e.contains(this.Lc[b][2])||(this.Lc[d]=this.Lc[b],++d);Aa(this.Lc,d);d=
a.fx;b=0;for(g=d.length;b<g;b++)if(a=this.im(d[b].name))a.Db=d[b].active,this.Qa[a.index]=d[b].params;this.yd();this.g.sort(l);this.gg=!0};Yb=p})();
(function(){function f(a,b){var c,d=a.length;switch(d){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<d;c++)if(a[c]!==b[c])return!1;return!0}}function l(a,b){return a.index-b.index}function p(a){var b,c,d,g;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(l);a.length>=C.length&&(C.length=a.length+1);C[a.length]||(C[a.length]=[]);g=C[a.length];b=0;for(c=g.length;b<c;b++)if(d=g[b],f(a,d))return d;g.push(a);return a}
function e(a,b){this.b=a;this.Tr={};this.np={};this.tm=!1;this.Ep=new ca;this.Rl=[];this.xl=[];this.name=b[0];var c=b[1];this.Ze=[];var d,g;d=0;for(g=c.length;d<g;d++)this.Gp(c[d],null,this.Ze)}function q(a){this.type=a;this.g=[];this.da=[];this.pa=!0}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ea=[];this.of=[];this.Dp=this.cl=this.Nn=this.ym=this.group=this.Ir=!1;this.ub=[];this.Tc=[];this.dd=[];this.Nh="";this.Hf=this.ym=this.group=!1;this.xj=null;c[1]&&(this.Nh=c[1][1].toLowerCase(),
this.group=!0,this.ym=!!c[1][0],this.xj=[],this.Hf=this.ym,this.b.ng.push(this),this.b.Dg[this.Nh]=this);this.$c=c[2];this.ca=c[4];this.group||(this.b.Ho[this.ca.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var g=new Zb(this,d[a]);g.index=a;this.ub.push(g);this.Bo(g.type)}d=c[6];a=0;for(b=d.length;a<b;a++)g=new $b(this,d[a]),g.index=a,this.Tc.push(g);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Gp(c[a],this,this.dd);this.dk=!1;this.ub.length&&(this.dk=null==this.ub[0].type&&
this.ub[0].Fb==Q.prototype.d.ao)}function b(a,b){var c,d,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Qb))for(c=0,d=a.vc.length;c<d;c++)g=a.vc[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function a(a,b){this.Ec=a;this.sheet=a.sheet;this.b=a.b;this.X=[];this.Ra=[];this.N={};this.index=-1;this.sh=!1;this.Fb=this.b.Je(b[1]);this.trigger=0<b[3];this.mp=2===b[3];this.Nd=b[4];this.Bm=b[5];this.vw=b[6];this.ca=b[7];this.b.Ue[this.ca.toString()]=this;-1===b[0]?(this.type=null,this.ab=this.zn,this.vf=null,this.md=-1):
(this.type=this.b.B[b[0]],this.ab=this.vw?this.ux:this.yn,b[2]?(this.vf=this.type.Rj(b[2]),this.md=this.type.em(b[2])):(this.vf=null,this.md=-1),this.Ec.parent&&this.Ec.parent.Uk());this.mp&&(this.ab=this.vx);if(10===b.length){var c,d,g=b[9];c=0;for(d=g.length;c<d;c++){var h=new ac(this,g[c]);this.X.push(h)}this.Ra.length=g.length}}function u(a,b){this.Ec=a;this.sheet=a.sheet;this.b=a.b;this.X=[];this.Ra=[];this.N={};this.index=-1;this.sh=!1;this.Fb=this.b.Je(b[1]);-1===b[0]?(this.type=null,this.ab=
this.zn,this.vf=null,this.md=-1):(this.type=this.b.B[b[0]],this.ab=this.yn,b[2]?(this.vf=this.type.Rj(b[2]),this.md=this.type.em(b[2])):(this.vf=null,this.md=-1));this.ca=b[3];this.b.Me[this.ca.toString()]=this;if(6===b.length){var c,d,g=b[5];c=0;for(d=g.length;c<d;c++){var h=new ac(this,g[c]);this.X.push(h)}this.Ra.length=g.length}}function d(){r++;N.length===r&&N.push(new bc);return N[r]}function c(a,b){this.ad=a;this.Ec=a.Ec;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Hd=null;this.ze=0;this.get=
null;this.dp=0;this.zb=null;this.key=0;this.object=null;this.index=0;this.Qi=this.dg=this.Qi=this.dg=this.rp=this.Ef=this.Ri=null;this.fd=!1;var c,d,g;switch(b[0]){case 0:case 7:this.Hd=new cc(this,b[1]);this.ze=0;this.get=this.Qv;break;case 1:this.Hd=new cc(this,b[1]);this.ze=0;this.get=this.Rv;break;case 5:this.Hd=new cc(this,b[1]);this.ze=0;this.get=this.Vv;break;case 3:case 8:this.dp=b[1];this.get=this.Ov;break;case 6:this.zb=this.b.Nm[b[1]];this.get=this.Wv;break;case 9:this.key=b[1];this.get=
this.Uv;break;case 4:this.object=this.b.B[b[1]];this.get=this.Xv;this.Ec.Bo(this.object);this.ad instanceof $b?this.Ec.Uk():this.Ec.parent&&this.Ec.parent.Uk();break;case 10:this.index=b[1];a.type&&a.type.O?(this.get=this.Sv,this.fd=!0):this.get=this.Tv;break;case 11:this.Ri=b[1];this.Ef=null;this.get=this.Pv;break;case 2:case 12:this.rp=b[1];this.get=this.Nv;break;case 13:for(this.get=this.Yv,this.dg=[],this.Qi=[],c=1,d=b.length;c<d;c++)g=new ac(this.ad,b[c]),this.dg.push(g),this.Qi.push(0)}}function h(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ea=[];this.name=c[1];this.es=c[2];this.xm=c[3];this.Zh=!!c[4];this.ck=!!c[5];this.ca=c[6];this.b.nh[this.ca.toString()]=this;this.data=this.xm;this.parent?(this.Uf=this.Zh||this.ck?-1:this.b.Fx++,this.b.Tt.push(this)):(this.Uf=-1,this.b.St.push(this))}function m(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ea=[];this.Ph=null;this.fw=c[1];this.Db=!0}function g(){this.Lr=[];this.reset(null)}var C=[];e.prototype.toString=function(){return this.name};
e.prototype.Gp=function(a,b,c){switch(a[0]){case 0:a=new dc(this,b,a);if(a.$c)for(c.push(a),c=0,b=a.ub.length;c<b;c++)a.ub[c].trigger&&this.Hp(a,c);else a.Rp()?this.Hp(a,0):c.push(a);break;case 1:a=new Vb(this,b,a);c.push(a);break;case 2:a=new ec(this,b,a),c.push(a)}};e.prototype.Wa=function(){var a,b;a=0;for(b=this.Ze.length;a<b;a++)this.Ze[a].Wa(a<b-1&&this.Ze[a+1].dk)};e.prototype.Tn=function(){D(this.Rl);D(this.xl);this.zo(this);D(this.xl)};e.prototype.zo=function(a){var b,c,d,g,h=a.Rl,e=a.xl,
f=this.Ep.qf();b=0;for(c=f.length;b<c;++b)d=f[b],g=d.Ph,!d.Db||a===g||-1<e.indexOf(g)||(e.push(g),g.zo(a),h.push(g))};e.prototype.ab=function(a){this.b.zB||(this.tm=!0,a||(this.b.Gm=!0));var b,c;b=0;for(c=this.Ze.length;b<c;b++){var g=this.Ze[b];g.ab();this.b.Kl(g.Ea);this.b.bf&&this.b.Mb()}a||(this.b.Gm=!1)};e.prototype.Hp=function(a,b){a.$c||this.b.fl.push(a);var c,g,d=a.ub[b],h;d.type?h=d.type.name:h="system";var e=(c=d.mp)?this.np:this.Tr;e[h]||(e[h]=[]);h=e[h];e=d.Fb;if(c){if(d.X.length&&(d=
d.X[0],1===d.type&&2===d.Hd.type)){d=d.Hd.value.toLowerCase();c=0;for(g=h.length;c<g;c++)if(h[c].method==e){c=h[c].Fh;c[d]?c[d].push([a,b]):c[d]=[[a,b]];return}c={};c[d]=[[a,b]];h.push({method:e,Fh:c})}}else{c=0;for(g=h.length;c<g;c++)if(h[c].method==e){h[c].Fh.push([a,b]);return}W&&e===W.prototype.d.lg?h.unshift({method:e,Fh:[[a,b]]}):h.push({method:e,Fh:[[a,b]]})}};Lb=e;q.prototype.rm=function(){return this.pa?this.type.g.length:this.g.length};q.prototype.Kc=function(){return this.pa?this.type.g:
this.g};q.prototype.ti=function(a){a&&(a.b.xb().Wb.$c?(this.pa&&(D(this.g),Ca(this.da,a.type.g),this.pa=!1),a=this.da.indexOf(a),-1!==a&&(this.g.push(this.da[a]),this.da.splice(a,1))):(this.pa=!1,D(this.g),this.g[0]=a))};rb=q;window._c2hh_="3456979AD7B7212F8A7ADFAE3EDE2ACA61174C6E";t.prototype.Wa=function(a){var b,c=this.parent;if(this.group)for(this.cl=!0;c;){if(!c.group){this.cl=!1;break}c=c.parent}this.Nn=!this.Rp()&&(!this.parent||this.parent.group&&this.parent.cl);this.Dp=!!a;this.of=this.Ea.slice(0);
for(c=this.parent;c;){a=0;for(b=c.Ea.length;a<b;a++)this.Qt(c.Ea[a]);c=c.parent}this.Ea=p(this.Ea);this.of=p(this.of);a=0;for(b=this.ub.length;a<b;a++)this.ub[a].Wa();a=0;for(b=this.Tc.length;a<b;a++)this.Tc[a].Wa();a=0;for(b=this.dd.length;a<b;a++)this.dd[a].Wa(a<b-1&&this.dd[a+1].dk)};t.prototype.Tk=function(a){if(this.Hf!==!!a){this.Hf=!!a;var b;a=0;for(b=this.xj.length;a<b;++a)this.xj[a].Yr();0<b&&this.b.Da.Df&&this.b.Da.Df.Tn()}};t.prototype.Bo=function(a){b(a,this.Ea)};t.prototype.Qt=function(a){b(a,
this.of)};t.prototype.Uk=function(){this.Ir=!0;this.parent&&this.parent.Uk()};t.prototype.Rp=function(){return this.ub.length?this.ub[0].trigger:!1};t.prototype.ab=function(){var a,b,c=!1,d=this.b,g=this.b.xb();g.Wb=this;var h=this.ub;this.dk||(g.Ul=!1);if(this.$c){0===h.length&&(c=!0);g.tb=0;for(a=h.length;g.tb<a;g.tb++)b=h[g.tb],b.trigger||(b=b.ab())&&(c=!0);(g.Of=c)&&this.Ok()}else{g.tb=0;for(a=h.length;g.tb<a;g.tb++)if(b=h[g.tb].ab(),!b){g.Of=!1;this.Nn&&d.bf&&d.Mb();return}g.Of=!0;this.Ok()}this.Lu(g)};
t.prototype.Lu=function(a){a.Of&&this.Dp&&(a.Ul=!0);this.Nn&&this.b.bf&&this.b.Mb()};t.prototype.rx=function(a){this.b.xb().Wb=this;this.ub[a].ab()&&(this.Ok(),this.b.xb().Of=!0)};t.prototype.Ok=function(){var a=this.b.xb(),b;a.hc=0;for(b=this.Tc.length;a.hc<b;a.hc++)if(this.Tc[a.hc].ab())return;this.nr()};t.prototype.nx=function(){var a=this.b.xb(),b;for(b=this.Tc.length;a.hc<b;a.hc++)if(this.Tc[a.hc].ab())return;this.nr()};t.prototype.nr=function(){if(this.dd.length){var a,b,c,g,d=this.dd.length-
1;this.b.Jk(this);if(this.Ir)for(a=0,b=this.dd.length;a<b;a++)c=this.dd[a],(g=!this.cl||!this.group&&a<d)&&this.b.Ik(c.Ea),c.ab(),g?this.b.$f(c.Ea):this.b.Kl(c.Ea);else for(a=0,b=this.dd.length;a<b;a++)this.dd[a].ab();this.b.Ek()}};t.prototype.tx=function(){var a=this.b.xb();a.Wb=this;var b=!1,c;a.tb=0;for(c=this.ub.length;a.tb<c;a.tb++)if(this.ub[a.tb].ab())b=!0;else if(!this.$c)return!1;return this.$c?b:!0};t.prototype.ox=function(){this.b.Ff++;var a=this.b.xb().tb,b=this.b.Jk(this);if(!this.$c)for(b.tb=
a+1,a=this.ub.length;b.tb<a;b.tb++)if(!this.ub[b.tb].ab()){this.b.Ek();return}this.Ok();this.b.Ek()};t.prototype.mw=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.ub[b].type===a.type)return!1;return!0};dc=t;a.prototype.Wa=function(){var a,b,c;a=0;for(b=this.X.length;a<b;a++)c=this.X[a],c.Wa(),c.fd&&(this.sh=!0)};a.prototype.vx=function(){return!0};a.prototype.zn=function(){var a,b;a=0;for(b=this.X.length;a<b;a++)this.Ra[a]=this.X[a].get();return Ua(this.Fb.apply(this.b.Td,this.Ra),
this.Bm)};a.prototype.ux=function(){var a,b;a=0;for(b=this.X.length;a<b;a++)this.Ra[a]=this.X[a].get();a=this.Fb.apply(this.vf?this.vf:this.type,this.Ra);this.type.kd();return a};a.prototype.yn=function(){var a,b,c,g,d,h,e,f,m=this.type,r=m.aa(),l=this.Ec.$c&&!this.trigger;b=0;var q=m.Qb,p=m.O,C=m.he,t=this.md,u=-1<t,N=this.sh,y=this.X,x=this.Ra,P=this.Bm,K=this.Fb,L;if(N)for(b=0,d=y.length;b<d;++b)h=y[b],h.fd||(x[b]=h.get(0));else for(b=0,d=y.length;b<d;++b)x[b]=y[b].get(0);if(r.pa){D(r.g);D(r.da);
L=m.g;a=0;for(g=L.length;a<g;++a){f=L[a];if(N)for(b=0,d=y.length;b<d;++b)h=y[b],h.fd&&(x[b]=h.get(a));u?(b=0,p&&(b=f.type.zg[C]),b=K.apply(f.S[t+b],x)):b=K.apply(f,x);(e=Ua(b,P))?r.g.push(f):l&&r.da.push(f)}m.finish&&m.finish(!0);r.pa=!1;m.kd();return r.rm()}c=0;L=(e=l&&!this.Ec.mw(this))?r.da:r.g;var J=!1;a=0;for(g=L.length;a<g;++a){f=L[a];if(N)for(b=0,d=y.length;b<d;++b)h=y[b],h.fd&&(x[b]=h.get(a));u?(b=0,p&&(b=f.type.zg[C]),b=K.apply(f.S[t+b],x)):b=K.apply(f,x);if(Ua(b,P))if(J=!0,e){if(r.g.push(f),
q)for(b=0,d=f.siblings.length;b<d;b++)h=f.siblings[b],h.type.aa().g.push(h)}else{L[c]=f;if(q)for(b=0,d=f.siblings.length;b<d;b++)h=f.siblings[b],h.type.aa().g[c]=h;c++}else if(e){L[c]=f;if(q)for(b=0,d=f.siblings.length;b<d;b++)h=f.siblings[b],h.type.aa().da[c]=h;c++}else if(l&&(r.da.push(f),q))for(b=0,d=f.siblings.length;b<d;b++)h=f.siblings[b],h.type.aa().da.push(h)}Aa(L,c);if(q)for(p=m.vc,a=0,g=p.length;a<g;a++)f=p[a].aa(),e?Aa(f.da,c):Aa(f.g,c);c=J;if(e&&!J)for(a=0,g=r.g.length;a<g;a++){f=r.g[a];
if(N)for(b=0,d=y.length;b<d;b++)h=y[b],h.fd&&(x[b]=h.get(a));b=u?K.apply(f.S[t],x):K.apply(f,x);if(Ua(b,P)){J=!0;break}}m.finish&&m.finish(c||l);return l?J:r.rm()};Zb=a;u.prototype.Wa=function(){var a,b,c;a=0;for(b=this.X.length;a<b;a++)c=this.X[a],c.Wa(),c.fd&&(this.sh=!0)};u.prototype.zn=function(){var a=this.b,b,c,d=this.X,g=this.Ra;b=0;for(c=d.length;b<c;++b)g[b]=d[b].get();return this.Fb.apply(a.Td,g)};u.prototype.yn=function(){var a=this.type,b=this.md,c=a.he,d=this.sh,g=this.X,h=this.Ra,e=
this.Fb,f=a.aa().Kc(),a=a.O,m=-1<b,r,l,q,p,C,t;if(d)for(l=0,p=g.length;l<p;++l)C=g[l],C.fd||(h[l]=C.get(0));else for(l=0,p=g.length;l<p;++l)h[l]=g[l].get(0);r=0;for(q=f.length;r<q;++r){t=f[r];if(d)for(l=0,p=g.length;l<p;++l)C=g[l],C.fd&&(h[l]=C.get(r));m?(l=0,a&&(l=t.type.zg[c]),e.apply(t.S[b+l],h)):e.apply(t,h)}return!1};$b=u;var N=[],r=-1;c.prototype.Wa=function(){var a,b;if(11===this.type)this.Ef=this.b.xp(this.Ri,this.Ec.parent);else if(13===this.type)for(a=0,b=this.dg.length;a<b;a++)this.dg[a].Wa();
this.Hd&&this.Hd.Wa()};c.prototype.Gw=function(a){this.fd||!a||a.ba.Wk||(this.fd=!0)};c.prototype.yr=function(){this.fd=!0};c.prototype.Qv=function(a){this.ze=a||0;a=d();this.Hd.get(a);r--;return a.data};c.prototype.Rv=function(a){this.ze=a||0;a=d();this.Hd.get(a);r--;return ka(a.data)?a.data:""};c.prototype.Xv=function(){return this.object};c.prototype.Ov=function(){return this.dp};c.prototype.Vv=function(a){this.ze=a||0;a=d();this.Hd.get(a);r--;return a.yb()?this.b.je(a.data):this.b.Kh(a.data)};
c.prototype.Wv=function(){return this.zb};c.prototype.Uv=function(){return this.key};c.prototype.Tv=function(){return this.index};c.prototype.Sv=function(a){a=a||0;var b=this.ad.type,c=null,c=b.aa(),d=c.Kc();if(d.length)c=d[a%d.length].type;else if(c.da.length)c=c.da[a%c.da.length].type;else if(b.g.length)c=b.g[a%b.g.length].type;else return 0;return this.index+c.Jj[b.he]};c.prototype.Pv=function(){return this.Ef};c.prototype.Nv=function(){return this.rp};c.prototype.Yv=function(){var a,b;a=0;for(b=
this.dg.length;a<b;a++)this.Qi[a]=this.dg[a].get();return this.Qi};ac=c;h.prototype.Wa=function(){this.Ea=p(this.Ea)};h.prototype.Vk=function(a){var b=this.b.wp();this.parent&&!this.Zh&&b?(this.Uf>=b.length&&(b.length=this.Uf+1),b[this.Uf]=a):this.data=a};h.prototype.Ap=function(){var a=this.b.wp();return!this.parent||this.Zh||!a||this.ck?this.data:this.Uf>=a.length||"undefined"===typeof a[this.Uf]?this.xm:a[this.Uf]};h.prototype.ab=function(){!this.parent||this.Zh||this.ck||this.Vk(this.xm)};Vb=
h;m.prototype.toString=function(){return"include:"+this.Ph.toString()};m.prototype.Wa=function(){this.Ph=this.b.Wl[this.fw];this.sheet.Ep.add(this);this.Ea=p(this.Ea);for(var a=this.parent;a;)a.group&&a.xj.push(this),a=a.parent;this.Yr()};m.prototype.ab=function(){this.parent&&this.b.xi(this.b.B);this.Ph.tm||this.Ph.ab(!0);this.parent&&this.b.$f(this.b.B)};m.prototype.Yr=function(){for(var a=this.parent;a;){if(a.group&&!a.Hf){this.Db=!1;return}a=a.parent}this.Db=!0};ec=m;g.prototype.reset=function(a){this.Wb=
a;this.hc=this.tb=0;D(this.Lr);this.Ul=this.Of=!1};Ub=g})();
(function(){function f(b,a){this.ad=b;this.b=b.b;this.type=a[0];this.get=[this.cv,this.Zu,this.pv,this.sv,this.Ou,this.qv,this.jv,this.Wu,this.hv,this.ov,this.Pu,this.nv,this.Xu,this.kv,this.dv,this.gv,this.$u,this.av,this.Vu,this.rv,this.lv,this.bv,this.Uu,this.Yu][this.type];var e=null;this.te=this.X=this.Ra=this.Fb=this.bl=this.second=this.first=this.value=null;this.md=-1;this.od=null;this.ds=-1;this.Ef=this.Ri=null;this.bh=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new cc(b,a[1]);break;case 18:this.first=new cc(b,a[1]);this.second=new cc(b,a[2]);this.bl=new cc(b,a[3]);break;case 19:this.Fb=this.b.Je(a[1]);this.Fb!==Q.prototype.Z.random&&this.Fb!==Q.prototype.Z.eu||this.ad.yr();this.Ra=[];this.X=[];3===a.length?(e=a[2],this.Ra.length=e.length+1):this.Ra.length=1;break;case 20:this.te=this.b.B[a[1]];this.md=-1;this.Fb=this.b.Je(a[2]);this.bh=a[3];hc.Function&&this.Fb===hc.Function.prototype.Z.iy&&this.ad.yr();a[4]?this.od=new cc(b,a[4]):this.od=null;this.Ra=[];
this.X=[];6===a.length?(e=a[5],this.Ra.length=e.length+1):this.Ra.length=1;break;case 21:this.te=this.b.B[a[1]];this.bh=a[2];a[3]?this.od=new cc(b,a[3]):this.od=null;this.ds=a[4];break;case 22:this.te=this.b.B[a[1]];this.te.Rj(a[2]);this.md=this.te.em(a[2]);this.Fb=this.b.Je(a[3]);this.bh=a[4];a[5]?this.od=new cc(b,a[5]):this.od=null;this.Ra=[];this.X=[];7===a.length?(e=a[6],this.Ra.length=e.length+1):this.Ra.length=1;break;case 23:this.Ri=a[1],this.Ef=null}this.ad.Gw(this.te);4<=this.type&&17>=this.type&&
(this.first=new cc(b,a[1]),this.second=new cc(b,a[2]));if(e){var d,c;d=0;for(c=e.length;d<c;d++)this.X.push(new cc(b,e[d]))}}function l(){++t;q.length===t&&q.push(new bc);return q[t]}function p(b,a,e){var d,c;d=0;for(c=b.length;d<c;++d)b[d].get(e),a[d+1]=e.data}function e(b,a){this.type=b||fc.jg;this.data=a||0;this.Xf=null;this.type==fc.jg&&(this.data=Math.floor(this.data))}f.prototype.Wa=function(){23===this.type&&(this.Ef=this.ad.b.xp(this.Ri,this.ad.Ec.parent));this.first&&this.first.Wa();this.second&&
this.second.Wa();this.bl&&this.bl.Wa();this.od&&this.od.Wa();if(this.X){var b,a;b=0;for(a=this.X.length;b<a;b++)this.X[b].Wa()}};var q=[],t=-1;f.prototype.rv=function(b){var a=this.X,e=this.Ra;e[0]=b;b=l();p(a,e,b);--t;this.Fb.apply(this.b.Td,e)};f.prototype.lv=function(b){var a=this.te,e=this.Ra,d=this.X,c=this.od,h=this.Fb,f=this.ad.ze,g=a.aa(),q=g.Kc();if(!q.length)if(g.da.length)q=g.da;else{this.bh?b.k(""):b.G(0);return}e[0]=b;b.Xf=a;b=l();p(d,e,b);c&&(c.get(b),b.yb()&&(f=b.data,q=a.g));--t;a=
q.length;if(f>=a||f<=-a)f%=a;0>f&&(f+=a);h.apply(q[f],e)};f.prototype.Uu=function(b){var a=this.te,e=this.Ra,d=this.X,c=this.od,h=this.md,f=this.Fb,g=this.ad.ze,q=a.aa(),N=q.Kc();if(!N.length)if(q.da.length)N=q.da;else{this.bh?b.k(""):b.G(0);return}e[0]=b;b.Xf=a;b=l();p(d,e,b);c&&(c.get(b),b.yb()&&(g=b.data,N=a.g));--t;d=N.length;if(g>=d||g<=-d)g%=d;0>g&&(g+=d);g=N[g];N=0;a.O&&(N=g.type.zg[a.he]);f.apply(g.S[h+N],e)};f.prototype.bv=function(b){var a=this.od,e=this.te,d=this.ds,c=this.ad.ze,h=e.aa(),
f=h.Kc();if(!f.length)if(h.da.length)f=h.da;else{this.bh?b.k(""):b.G(0);return}if(a){h=l();a.get(h);if(h.yb()){c=h.data;f=e.g;0!==f.length&&(c%=f.length,0>c&&(c+=f.length));c=e.km(c);e=c.lb[d];ka(e)?b.k(e):b.H(e);--t;return}--t}a=f.length;if(c>=a||c<=-a)c%=a;0>c&&(c+=a);c=f[c];f=0;e.O&&(f=c.type.Jj[e.he]);e=c.lb[d+f];ka(e)?b.k(e):b.H(e)};f.prototype.cv=function(b){b.type=fc.jg;b.data=this.value};f.prototype.Zu=function(b){b.type=fc.ig;b.data=this.value};f.prototype.pv=function(b){b.type=fc.String;
b.data=this.value};f.prototype.sv=function(b){this.first.get(b);b.yb()&&(b.data=-b.data)};f.prototype.Ou=function(b){this.first.get(b);var a=l();this.second.get(a);b.yb()&&a.yb()&&(b.data+=a.data,a.Ig()&&b.Rg());--t};f.prototype.qv=function(b){this.first.get(b);var a=l();this.second.get(a);b.yb()&&a.yb()&&(b.data-=a.data,a.Ig()&&b.Rg());--t};f.prototype.jv=function(b){this.first.get(b);var a=l();this.second.get(a);b.yb()&&a.yb()&&(b.data*=a.data,a.Ig()&&b.Rg());--t};f.prototype.Wu=function(b){this.first.get(b);
var a=l();this.second.get(a);b.yb()&&a.yb()&&(b.data/=a.data,b.Rg());--t};f.prototype.hv=function(b){this.first.get(b);var a=l();this.second.get(a);b.yb()&&a.yb()&&(b.data%=a.data,a.Ig()&&b.Rg());--t};f.prototype.ov=function(b){this.first.get(b);var a=l();this.second.get(a);b.yb()&&a.yb()&&(b.data=Math.pow(b.data,a.data),a.Ig()&&b.Rg());--t};f.prototype.Pu=function(b){this.first.get(b);var a=l();this.second.get(a);a.Lg()||b.Lg()?this.Ru(b,a):this.Qu(b,a);--t};f.prototype.Ru=function(b,a){b.Lg()&&
a.Lg()?this.Tu(b,a):this.Su(b,a)};f.prototype.Tu=function(b,a){b.data+=a.data};f.prototype.Su=function(b,a){b.Lg()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.k(b.data.toString()+a.data)};f.prototype.Qu=function(b,a){b.G(b.data&&a.data?1:0)};f.prototype.nv=function(b){this.first.get(b);var a=l();this.second.get(a);b.yb()&&a.yb()&&(b.data||a.data?b.G(1):b.G(0));--t};f.prototype.Vu=function(b){this.first.get(b);b.data?this.second.get(b):this.bl.get(b)};f.prototype.Xu=function(b){this.first.get(b);
var a=l();this.second.get(a);b.G(b.data===a.data?1:0);--t};f.prototype.kv=function(b){this.first.get(b);var a=l();this.second.get(a);b.G(b.data!==a.data?1:0);--t};f.prototype.dv=function(b){this.first.get(b);var a=l();this.second.get(a);b.G(b.data<a.data?1:0);--t};f.prototype.gv=function(b){this.first.get(b);var a=l();this.second.get(a);b.G(b.data<=a.data?1:0);--t};f.prototype.$u=function(b){this.first.get(b);var a=l();this.second.get(a);b.G(b.data>a.data?1:0);--t};f.prototype.av=function(b){this.first.get(b);
var a=l();this.second.get(a);b.G(b.data>=a.data?1:0);--t};f.prototype.Yu=function(b){var a=this.Ef.Ap();ja(a)?b.H(a):b.k(a)};cc=f;e.prototype.Ig=function(){return this.type===fc.ig};e.prototype.yb=function(){return this.type===fc.jg||this.type===fc.ig};e.prototype.Lg=function(){return this.type===fc.String};e.prototype.Rg=function(){this.Ig()||(this.Lg()&&(this.data=parseFloat(this.data)),this.type=fc.ig)};e.prototype.G=function(b){this.type=fc.jg;this.data=Math.floor(b)};e.prototype.H=function(b){this.type=
fc.ig;this.data=b};e.prototype.k=function(b){this.type=fc.String;this.data=b};e.prototype.Dx=function(b){ja(b)?(this.type=fc.ig,this.data=b):ka(b)?(this.type=fc.String,this.data=b.toString()):(this.type=fc.jg,this.data=0)};bc=e;fc={jg:0,ig:1,String:2}})();function Q(f){this.b=f;this.sc=[]}
Q.prototype.Kb=function(){var f={},l,p,e,q,t,b,a,u;f.waits=[];var d=f.waits,c;l=0;for(p=this.sc.length;l<p;l++){b=this.sc[l];c={t:b.time,st:b.Gr,s:b.Fn,ev:b.xg.ca,sm:[],sols:{}};b.xg.Tc[b.hc]&&(c.act=b.xg.Tc[b.hc].ca);e=0;for(q=b.Ea.length;e<q;e++)c.sm.push(b.Ea[e].ca);for(t in b.ac)if(b.ac.hasOwnProperty(t)){a=this.b.B[parseInt(t,10)];u={sa:b.ac[t].Pk,insts:[]};e=0;for(q=b.ac[t].le.length;e<q;e++)u.insts.push(b.ac[t].le[e].uid);c.sols[a.ca.toString()]=u}d.push(c)}return f};
Q.prototype.$b=function(f){f=f.waits;var l,p,e,q,t,b,a,u,d,c,h;D(this.sc);l=0;for(p=f.length;l<p;l++)if(b=f[l],u=this.b.Ho[b.ev.toString()]){d=-1;e=0;for(q=u.Tc.length;e<q;e++)if(u.Tc[e].ca===b.act){d=e;break}if(-1!==d){a={ac:{},Ea:[],Sl:!1};a.time=b.t;a.Gr=b.st||"";a.Fn=!!b.s;a.xg=u;a.hc=d;e=0;for(q=b.sm.length;e<q;e++)(u=this.b.Uj(b.sm[e]))&&a.Ea.push(u);for(t in b.sols)if(b.sols.hasOwnProperty(t)&&(u=this.b.Uj(parseInt(t,10)))){d=b.sols[t];c={Pk:d.sa,le:[]};e=0;for(q=d.insts.length;e<q;e++)(h=
this.b.Tj(d.insts[e]))&&c.le.push(h);a.ac[u.index.toString()]=c}this.sc.push(a)}}};
(function(){function f(){}function l(){}function p(){}var e=Q.prototype;f.prototype.io=function(){return!0};f.prototype.ho=function(){return!0};f.prototype.ns=function(b,a,e){return gc(b,a,e)};f.prototype.ts=function(b){var a=this.b.gm(),e=a.N.Every_lastTime||0,d=this.b.xa.J;"undefined"===typeof a.N.Every_seconds&&(a.N.Every_seconds=b);var c=a.N.Every_seconds;if(d>=e+c)return a.N.Every_lastTime=e+c,d>=a.N.Every_lastTime+.04&&(a.N.Every_lastTime=d),a.N.Every_seconds=b,!0;d<e-.1&&(a.N.Every_lastTime=
d);return!1};f.prototype.qs=function(b,a,e){return gc(b.Ap(),a,e)};f.prototype.ys=function(b){return(b=this.b.Dg[b.toLowerCase()])&&b.Hf};f.prototype.ao=function(){var b=this.b.xb();return b.Ul?!1:!b.Of};f.prototype.jo=function(){return!0};f.prototype.Ms=function(){return!0};f.prototype.ol=function(){return!0};f.prototype.qo=function(){return!0};f.prototype.Zs=function(){return!0};f.prototype.aj=function(){return!0};f.prototype.ks=function(b,a,e){return Pa(M(b),M(e))<=M(a)};f.prototype.xs=function(b,
a){return Ra(M(b),M(a))};f.prototype.ws=function(b,a,e){b=Na(b);a=Na(a);e=Na(e);return Ra(e,a)?Ra(b,a)&&!Ra(b,e):!(!Ra(b,a)&&Ra(b,e))};e.d=new f;l.prototype.vs=function(b){this.b.$h||this.b.sg||(this.b.sg=b)};l.prototype.rs=function(b,a,e,d){if(a&&b&&(a=this.b.Nl(b,a,e,d))){this.b.Nc++;var c;this.b.trigger(Object.getPrototypeOf(b.ba).d.kg,a);if(a.Qb)for(e=0,d=a.siblings.length;e<d;e++)c=a.siblings[e],this.b.trigger(Object.getPrototypeOf(c.type.ba).d.kg,c);this.b.Nc--;b=b.aa();b.pa=!1;D(b.g);b.g[0]=
a;if(a.Qb)for(e=0,d=a.siblings.length;e<d;e++)c=a.siblings[e],b=c.type.aa(),b.pa=!1,D(b.g),b.g[0]=c}};l.prototype.Bt=function(b,a){0===b.es?ja(a)?b.Vk(a):b.Vk(parseFloat(a)):1===b.es&&b.Vk(a.toString())};l.prototype.yt=function(b,a){var e=this.b.Dg[b.toLowerCase()];if(e)switch(a){case 0:e.Tk(!1);break;case 1:e.Tk(!0);break;case 2:e.Tk(!e.Hf)}};l.prototype.At=function(b){0>b&&(b=0);this.b.eg=b};var q=[],t=[];l.prototype.Lt=function(b){if(!(0>b)){var a,e,d,c=this.b.xb(),h;q.length?h=q.pop():h={ac:{},
Ea:[]};h.Sl=!1;h.time=this.b.xa.J+b;h.Gr="";h.Fn=!1;h.xg=c.Wb;h.hc=c.hc+1;b=0;for(a=this.b.B.length;b<a;b++)d=this.b.B[b],e=d.aa(),e.pa&&-1===c.Wb.Ea.indexOf(d)||(h.Ea.push(d),d=void 0,t.length?d=t.pop():d={le:[]},d.Pk=!1,d.Pk=e.pa,Ca(d.le,e.g),h.ac[b.toString()]=d);this.sc.push(h);return!0}};e.F=new l;p.prototype["int"]=function(b,a){ka(a)?(b.G(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.G(a)};p.prototype["float"]=function(b,a){ka(a)?(b.H(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.H(a)};p.prototype.random=
function(b,a,e){void 0===e?b.H(Math.random()*a):b.H(Math.random()*(e-a)+a)};p.prototype.sqrt=function(b,a){b.H(Math.sqrt(a))};p.prototype.abs=function(b,a){b.H(Math.abs(a))};p.prototype.round=function(b,a){b.G(Math.round(a))};p.prototype.floor=function(b,a){b.G(Math.floor(a))};p.prototype.ceil=function(b,a){b.G(Math.ceil(a))};p.prototype.sin=function(b,a){b.H(Math.sin(M(a)))};p.prototype.cos=function(b,a){b.H(Math.cos(M(a)))};p.prototype.tan=function(b,a){b.H(Math.tan(M(a)))};p.prototype.asin=function(b,
a){b.H(Ia(Math.asin(a)))};p.prototype.acos=function(b,a){b.H(Ia(Math.acos(a)))};p.prototype.atan=function(b,a){b.H(Ia(Math.atan(a)))};p.prototype.exp=function(b,a){b.H(Math.exp(a))};p.prototype.log10=function(b,a){b.H(Math.log(a)/Math.LN10)};p.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var e,d,c;e=2;for(d=arguments.length;e<d;e++)c=arguments[e],"number"===typeof c&&a<c&&(a=c);b.H(a)};p.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var e,d,c;e=
2;for(d=arguments.length;e<d;e++)c=arguments[e],"number"===typeof c&&a>c&&(a=c);b.H(a)};p.prototype.Xe=function(b){b.H(this.b.Xe)};p.prototype.eg=function(b){b.H(this.b.eg)};p.prototype.time=function(b){b.H(this.b.xa.J)};p.prototype.Vd=function(b){b.G(this.b.Vd)};p.prototype.vk=function(b){b.G(this.b.vk)};p.prototype.cm=function(b){b.G(this.b.cm)};p.prototype.m=function(b,a,e,d,c){b.H(Ia(Oa(a,e,d,c)))};p.prototype.zw=function(b,a,e,d){b.H(Va(a,e,d))};p.prototype.left=function(b,a,e){b.k(ka(a)?a.substr(0,
e):"")};p.prototype.right=function(b,a,e){b.k(ka(a)?a.substr(a.length-e):"")};p.prototype.replace=function(b,a,e,d){ka(a)&&ka(e)&&ka(d)?b.k(a.replace(new RegExp(eb(e),"gi"),d)):b.k(ka(a)?a:"")};p.prototype.trim=function(b,a){b.k(ka(a)?a.trim():"")};p.prototype.eu=function(b){var a=sa(Math.random()*(arguments.length-1));b.Dx(arguments[a+1])};p.prototype.Ml=function(b){b.H(this.b.Ml/1E3)};p.prototype.ok=function(b){b.H(this.b.ok)};e.Z=new p;e.qx=function(){var b,a,e,d,c,h,f=this.b.xb();b=0;for(e=this.sc.length;b<
e;b++){d=this.sc[b];if(-1===d.time){if(!d.Fn)continue}else if(d.time>this.b.xa.J)continue;f.Wb=d.xg;f.hc=d.hc;f.tb=0;for(a in d.ac)d.ac.hasOwnProperty(a)&&(c=this.b.B[parseInt(a,10)].aa(),h=d.ac[a],c.pa=h.Pk,Ca(c.g,h.le),c=h,D(c.le),t.push(c));d.xg.nx();this.b.Kl(d.Ea);d.Sl=!0}a=b=0;for(e=this.sc.length;b<e;b++)d=this.sc[b],this.sc[a]=d,d.Sl?(Za(d.ac),D(d.Ea),q.push(d)):a++;Aa(this.sc,a)}})();
(function(){qb=function(f,p){var e=f[1],q=f[3],t=f[4],b=f[5],a=f[6],u=f[7],d=f[8];p.d||(p.d={});p.F||(p.F={});p.Z||(p.Z={});var c=p.d,h=p.F,m=p.Z;q&&(c.oy=function(a,b){return gc(this.x,a,b)},c.qy=function(a,b){return gc(this.y,a,b)},c.kz=function(){var a=this.j;this.Fa();var b=this.Va;return!(b.right<a.ta||b.bottom<a.ua||b.left>a.Ba||b.top>a.Aa)},c.lz=function(){this.Fa();var a=this.Va,b=this.b.Da;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},c.Kz=function(a,b,c){var d=this.aa(),
k=d.Kc();if(!k.length)return!1;var e=k[0],h=e,f=Ta(e.x,e.y,b,c),l,m,q;l=1;for(m=k.length;l<m;l++)if(e=k[l],q=Ta(e.x,e.y,b,c),0===a&&q<f||1===a&&q>f)f=q,h=e;d.ti(h);return!0},h.Dt=function(a){this.x!==a&&(this.x=a,this.La())},h.Et=function(a){this.y!==a&&(this.y=a,this.La())},h.sl=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.La()},h.hA=function(a,b){var c=a.Iv(this);if(c){var d;c.Jh?(d=c.Jh(b,!0),c=c.Jh(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.La()}},
h.Hs=function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.La())},h.Gs=function(a,b){0!==b&&(this.x+=Math.cos(M(a))*b,this.y+=Math.sin(M(a))*b,this.La())},m.fj=function(a){a.H(this.x)},m.gj=function(a){a.H(this.y)},m.Xe=function(a){a.H(this.b.hm(this))});t&&(c.ny=function(a,b){return gc(this.width,a,b)},c.ly=function(a,b){return gc(this.height,a,b)},h.Ct=function(a){this.width!==a&&(this.width=a,this.La())},h.dA=function(a){this.height!==a&&(this.height=a,this.La())},h.jA=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.La()},m.uA=function(a){a.H(this.width)},m.cz=function(a){a.H(this.height)},m.ey=function(a){this.Fa();a.H(this.Va.left)},m.gy=function(a){this.Fa();a.H(this.Va.top)},m.fy=function(a){this.Fa();a.H(this.Va.right)},m.dy=function(a){this.Fa();a.H(this.Va.bottom)});b&&(c.ks=function(a,b){return Pa(this.m,M(b))<=M(a)},c.xs=function(a){return Ra(this.m,M(a))},c.ws=function(a,b){var c=Na(a),d=Na(b),k=Ka(this.m);return Ra(d,
c)?Ra(k,c)&&!Ra(k,d):!(!Ra(k,c)&&Ra(k,d))},h.$z=function(a){a=M(Ja(a));isNaN(a)||this.m===a||(this.m=a,this.La())},h.Uz=function(a){0===a||isNaN(a)||(this.m+=M(a),this.m=Ka(this.m),this.La())},h.Vz=function(a){0===a||isNaN(a)||(this.m-=M(a),this.m=Ka(this.m),this.La())},h.Wz=function(a,b){var c=Qa(this.m,M(b),M(a));isNaN(c)||this.m===c||(this.m=c,this.La())},h.tt=function(a,b,c){a=Qa(this.m,Math.atan2(c-this.y,b-this.x),M(a));isNaN(a)||this.m===a||(this.m=a,this.La())},h.kA=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.m===c||(this.m=c,this.La())},m.$x=function(a){a.H(Ma(this.m))});e||(c.os=function(a,b,c){return gc(this.lb[a],b,c)},c.ez=function(a){return this.lb[a]},c.Lz=function(a,b){var c=this.aa(),d=c.Kc();if(!d.length)return!1;var k=d[0],e=k,h=k.lb[b],f,l,m;f=1;for(l=d.length;f<l;f++)if(k=d[f],m=k.lb[b],0===a&&m<h||1===a&&m>h)h=m,e=k;c.ti(e);return!0},c.Jz=function(a){var b,c,d,k,e;if(this.b.gm().Bm){e=this.aa();if(e.pa)for(e.pa=!1,D(e.g),D(e.da),d=this.g,b=0,c=d.length;b<c;b++)k=
d[b],k.uid===a?e.da.push(k):e.g.push(k);else{d=b=0;for(c=e.g.length;b<c;b++)k=e.g[b],e.g[d]=k,k.uid===a?e.da.push(k):d++;Aa(e.g,d)}this.kd();return!!e.g.length}k=this.b.Tj(a);if(!k)return!1;e=this.aa();if(!e.pa&&-1===e.g.indexOf(k))return!1;if(this.O)for(a=k.type.Ja,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.ti(k),this.kd(),!0}else if(k.type===this)return e.ti(k),this.kd(),!0;return!1},c.kg=function(){return!0},c.Ps=function(){return!0},h.eA=function(a,b){var c=this.lb;ja(c[a])?c[a]=ja(b)?b:
parseFloat(b):ka(c[a])&&(c[a]=ka(b)?b:b.toString())},h.Zx=function(a,b){var c=this.lb;ja(c[a])?c[a]=ja(b)?c[a]+b:c[a]+parseFloat(b):ka(c[a])&&(c[a]=ka(b)?c[a]+b:c[a]+b.toString())},h.oA=function(a,b){var c=this.lb;ja(c[a])&&(c[a]=ja(b)?c[a]-b:c[a]-parseFloat(b))},h.aA=function(a,b){this.lb[a]=b?1:0},h.sA=function(a){this.lb[a]=1-this.lb[a]},h.ss=function(){this.b.sf(this)},h.Ds||(h.Ds=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.lk(this,b,!0);this.Ne&&this.Ne();if(this.S)for(a=0,
b=this.S.length;a<b;++a)c=this.S[a],c.Ne&&c.Ne()}),m.By=function(a){var b=a.Xf.g.length,c,d,k;c=0;for(d=this.b.nd.length;c<d;c++)k=this.b.nd[c],a.Xf.O?0<=k.type.Ja.indexOf(a.Xf)&&b++:k.type===a.Xf&&b++;a.G(b)},m.Nz=function(a){a.G(a.Xf.aa().Kc().length)},m.tA=function(a){a.G(this.uid)},m.dz=function(a){a.G(this.Mh())},m.$n||(m.$n=function(a){a.k(JSON.stringify(this.b.An(this,!0)))}));a&&(c.mz=function(){return this.visible},h.uo=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.na=!0)},c.my=
function(a,b){return gc(mb(100*this.opacity),a,b)},h.zt=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.na=!0)},m.Opacity=function(a){a.H(mb(100*this.opacity))});u&&(c.jz=function(a){return a?this.j===a:!1},c.Mz=function(a){var b=this.aa(),c=b.Kc();if(!c.length)return!1;var d=c[0],k=d,e,h;e=1;for(h=c.length;e<h;e++)if(d=c[e],0===a){if(d.j.index>k.j.index||d.j.index===k.j.index&&d.Jd()>k.Jd())k=d}else if(d.j.index<k.j.index||d.j.index===k.j.index&&d.Jd()<k.Jd())k=d;
b.ti(k);return!0},h.Ez=function(){var a=this.j,b=a.g;b.length&&b[b.length-1]===this||(a.ah(this,!1),a.vh(this,!1),this.b.na=!0)},h.Cz=function(){var a=this.j,b=a.g;b.length&&b[0]===this||(a.ah(this,!1),a.ax(this),this.b.na=!0)},h.Dz=function(a){a&&a!=this.j&&(this.j.ah(this,!0),this.j=a,a.vh(this,!0),this.b.na=!0)},h.wA=function(a,b){var c=0===a;if(b){var d=b.Dv(this);d&&d.uid!==this.uid&&(this.j.index!==d.j.index&&(this.j.ah(this,!0),this.j=d.j,d.j.vh(this,!0)),this.j.Hw(this,d,c),this.b.na=!0)}},
m.oz=function(a){a.G(this.j.Jq)},m.nz=function(a){a.k(this.j.name)},m.vA=function(a){a.G(this.Jd())});d&&(h.bA=function(a,b){if(this.b.D){var c=this.type.jm(b);if(!(0>c)){var d=1===a;this.Le[c]!==d&&(this.Le[c]=d,this.yd(),this.b.na=!0)}}},h.cA=function(a,b,c){if(this.b.D){var d=this.type.jm(a);0>d||(a=this.type.T[d],d=this.Qa[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.D.Mv(a.bb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Db&&(this.b.na=!0))))}})};Mb=function(){this.Gl=this.zl=!0;this.type.jj=!0;this.b.na=
!0;var f,p,e=this.Al;f=0;for(p=e.length;f<p;++f)e[f](this);this.j.Sc&&this.Fa()};Nb=function(f){f&&this.Al.push(f)};Pb=function(){if(this.zl){var f=this.Va,p=this.Ub;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.jc*this.width,-this.kc*this.height);this.m?(f.offset(-this.x,-this.y),p.Br(f,this.m),p.offset(this.x,this.y),p.Io(f)):p.Ei(f);f.normalize();this.zl=!1;this.Rx()}};var f=new wa(0,0,0,0);Qb=function(){if(this.j.Sc){var l=this.j.Jb,p=this.Va;f.set(l.fc(p.left),l.gc(p.top),
l.fc(p.right),l.gc(p.bottom));this.oc.Eh(f)||(this.oc.right<this.oc.left?l.update(this,null,f):l.update(this,this.oc,f),this.oc.Ah(f),this.j.vd=!0)}};Rb=function(){if(this.Gl&&this.Ed){this.Fa();var l=this.type.yh,p=this.Va;f.set(l.fc(p.left),l.gc(p.top),l.fc(p.right),l.gc(p.bottom));this.Uc.Eh(f)||(this.Uc.right<this.Uc.left?l.update(this,null,f):l.update(this,this.Uc,f),this.Uc.Ah(f),this.Gl=!1)}};Ob=function(f,p){return this.Va.Vb(f,p)&&this.Ub.Vb(f,p)?this.ih?this.EB(f,p):this.qa&&!this.qa.Hg()?
(this.qa.rg(this.width,this.height,this.m),this.qa.Vb(f-this.x,p-this.y)):!0:!1};Ib=function(){this.type.gl();return this.Kf};Sb=function(){this.j.Vn();return this.zd};Tb=function(){D(this.ma);var f,p,e,q=!0;f=0;for(p=this.Le.length;f<p;f++)this.Le[f]&&(e=this.type.T[f],this.ma.push(e),e.td||(q=!1));this.cs=!!this.ma.length;this.ye=q};Jb=function(){return"Inst"+this.jr};tb=function(f){if(f&&f.Qb&&f.type!=this){var p,e,q;p=0;for(e=f.siblings.length;p<e;p++)if(q=f.siblings[p],q.type==this)return q}f=
this.aa().Kc();return f.length?f[0]:null};ub=function(f){var p=this.aa().Kc();return p.length?p[f.Mh()%p.length]:null};sb=function(){if(this.gh&&!this.O){var f,p;f=0;for(p=this.g.length;f<p;f++)this.g[f].Kf=f;var e=f,q=this.b.nd;f=0;for(p=q.length;f<p;++f)q[f].type===this&&(q[f].Kf=e++);this.gh=!1}};Gb=function(f){if(f<this.g.length)return this.g[f];f-=this.g.length;var p=this.b.nd,e,q;e=0;for(q=p.length;e<q;++e)if(p[e].type===this){if(0===f)return p[e];--f}return null};vb=function(){return this.Ae[this.Fd]};
wb=function(){this.Fd++;this.Fd===this.Ae.length?this.Ae.push(new rb(this)):(this.Ae[this.Fd].pa=!0,D(this.Ae[this.Fd].da))};xb=function(){this.Fd++;this.Fd===this.Ae.length&&this.Ae.push(new rb(this));var f=this.Ae[this.Fd],p=this.Ae[this.Fd-1];p.pa?f.pa=!0:(f.pa=!1,Ca(f.g,p.g));D(f.da)};yb=function(){this.Fd--};zb=function(f){var p,e,q,t,b,a=0;if(!this.O)for(p=0,e=this.Ja.length;p<e;p++)for(b=this.Ja[p],q=0,t=b.Oa.length;q<t;q++){if(f===b.Oa[q].name)return this.N.lastBehIndex=a,b.Oa[q];a++}p=0;
for(e=this.Oa.length;p<e;p++){if(f===this.Oa[p].name)return this.N.lastBehIndex=a,this.Oa[p];a++}return null};Db=function(f){return this.Rj(f)?this.N.lastBehIndex:-1};Eb=function(f){var p,e;p=0;for(e=this.T.length;p<e;p++)if(this.T[p].name===f)return p;return-1};Fb=function(){if(this.Qb&&!this.O){var f,p,e,q,t,b,a;this.gl();b=this.aa();var u=b.pa,d=(f=this.b.xb())&&f.Wb&&f.Wb.$c;f=0;for(p=this.vc.length;f<p;f++)if(t=this.vc[f],t!==this&&(t.gl(),a=t.aa(),a.pa=u,!u)){D(a.g);e=0;for(q=b.g.length;e<q;++e)a.g[e]=
t.km(b.g[e].Kf);if(d)for(D(a.da),e=0,q=b.da.length;e<q;++e)a.da[e]=t.km(b.da[e].Kf)}}};Hb=function(){return"Type"+this.ca};gc=function(f,p,e){if("undefined"===typeof f||"undefined"===typeof e)return!1;switch(p){case 0:return f===e;case 1:return f!==e;case 2:return f<e;case 3:return f<=e;case 4:return f>e;case 5:return f>=e;default:return!1}}})();var pc={};function X(f){this.b=f}
(function(){function f(){}function l(){}function p(){}var e=!1,q=null,t=null,b="",a=X.prototype;a.ya=function(a){this.ba=a;this.b=a.b};a.ya.prototype.U=function(){};a.la=function(a){this.type=a;this.b=a.b;this.Gc=this.Md="";this.Cb=0;this.timeout=-1;if(e=this.b.$j)q=require("path"),t=require("fs"),b=q.dirname((window.process||nw.process).execPath)+"\\"};var u=a.la.prototype,d=null;window.C2_AJAX_DCSide=function(a,b,c){d&&("success"===a?(d.Gc=b,d.Md=c,d.b.trigger(X.prototype.d.Wi,d),d.b.trigger(X.prototype.d.ph,
d)):"error"===a?(d.Gc=b,d.b.trigger(X.prototype.d.Xi,d),d.b.trigger(X.prototype.d.$i,d)):"progress"===a&&(d.Cb=c,d.Gc=b,d.b.trigger(X.prototype.d.oo,d)))};u.U=function(){d=this};u.Kb=function(){return{lastData:this.Md}};u.$b=function(a){this.Md=a.lastData;this.Gc="";this.Cb=0};var c={},h="";u.jp=function(a,d,f,q){if(this.b.Gb)AppMobi.webview.execute('C2_AJAX_WebSide("'+a+'", "'+d+'", "'+f+'", '+(q?'"'+q+'"':"null")+");");else{var r=this,k=null,n=function(){r.Gc=a;r.b.trigger(X.prototype.d.Xi,r);r.b.trigger(X.prototype.d.$i,
r)},v=function(){if(e){var c=b+d;t.existsSync(c)?t.readFile(c,{encoding:"utf8"},function(b,c){b?n():(r.Gc=a,r.Md=c.replace(/\r\n/g,"\n"),r.b.trigger(X.prototype.d.Wi,r),r.b.trigger(X.prototype.d.ph,r))}):n()}else n()},l=function(b){b.lengthComputable&&(r.Cb=b.loaded/b.total,r.Gc=a,r.b.trigger(X.prototype.d.oo,r))};try{this.b.df?k=new ActiveXObject("Microsoft.XMLHTTP"):k=new XMLHttpRequest;k.onreadystatechange=function(){4===k.readyState&&(r.Gc=a,k.responseText?r.Md=k.responseText.replace(/\r\n/g,
"\n"):r.Md="",400<=k.status?(r.b.trigger(X.prototype.d.Xi,r),r.b.trigger(X.prototype.d.$i,r)):e&&!r.Md.length||!e&&0===k.status&&!r.Md.length||(r.b.trigger(X.prototype.d.Wi,r),r.b.trigger(X.prototype.d.ph,r)))};this.b.df||(k.onerror=v,k.ontimeout=v,k.onabort=v,k.onprogress=l);k.open(f,d);!this.b.df&&0<=this.timeout&&"undefined"!==typeof k.timeout&&(k.timeout=this.timeout);try{k.responseType="text"}catch(p){}q&&k.setRequestHeader&&!c.hasOwnProperty("Content-Type")&&k.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");if(k.setRequestHeader){for(var H in c)if(c.hasOwnProperty(H))try{k.setRequestHeader(H,c[H])}catch(F){}c={}}if(h&&k.overrideMimeType){try{k.overrideMimeType(h)}catch(u){}h=""}q?k.send(q):k.send()}catch(w){v()}}};f.prototype.ph=function(a){return nb(a,this.Gc)};f.prototype.Wi=function(){return!0};f.prototype.$i=function(a){return nb(a,this.Gc)};f.prototype.Xi=function(){return!0};f.prototype.oo=function(a){return nb(a,this.Gc)};a.d=new f;l.prototype.pt=function(a,
b){var c=this;this.b.Xh&&!this.b.Kp(b)?this.b.qp(b,function(b){c.Gc=a;c.Md=b.replace(/\r\n/g,"\n");c.b.trigger(X.prototype.d.Wi,c);c.b.trigger(X.prototype.d.ph,c)},function(){c.Gc=a;c.b.trigger(X.prototype.d.Xi,c);c.b.trigger(X.prototype.d.$i,c)}):this.jp(a,b,"GET")};l.prototype.ot=function(a,b,c,d){this.jp(a,b,d,c)};a.F=new l;p.prototype.Cs=function(a){a.k(this.Md)};a.Z=new p})();function rc(f){this.b=f}
(function(){function f(){}function l(){}function p(){}var e=rc.prototype;e.ya=function(b){this.ba=b;this.b=b.b};e.ya.prototype.U=function(){};e.la=function(b){this.type=b;this.b=b.b};var q=e.la.prototype,t="text password email number tel url".split(" ");-1<navigator.userAgent.indexOf("MSIE 9")&&(t[2]="text",t[3]="text",t[4]="text",t[5]="text");q.U=function(){if(this.b.wa)ga("[Construct 2] Textbox plugin not supported on this platform - the object will not be created");else{6===this.q[7]?(this.u=document.createElement("textarea"),
jQuery(this.u).css("resize","none")):(this.u=document.createElement("input"),this.u.type=t[this.q[7]]);this.u.id=this.q[9];jQuery(this.u).appendTo(this.b.sj?this.b.sj:"body");this.u.autocomplete="off";this.u.value=this.q[0];this.u.placeholder=this.q[1];this.u.title=this.q[2];this.u.disabled=0===this.q[4];this.u.readOnly=1===this.q[5];this.u.spellcheck=1===this.q[6];this.Vt=0!==this.q[8];this.Cf=!1;1===this.q[11]?this.u.style.backgroundColor="transparent":this.u.style.backgroundColor=this.q[10];var b=
this.q[12].split(" "),a;for(a=0;a<b.length;a++)if("pt"===b[a].substr(b[a].length-2,2)){this.u.style.fontSize=parseInt(b[a].substr(0,b[a].length-2))+"pt";var e,d="";for(e=a+1;e<b.length;e++)d=""!==d?d+" "+b[e]:b[e];this.u.style.fontFamily=d;0<a&&("bold"===b[0]?this.u.style.fontWeight="bold":this.u.style.fontStyle=b[0],1<a&&(this.u.style.fontStyle=b[1]));break}this.u.style.color=this.q[13];this.u.style.border=["1","0"][this.q[14]];1===this.q[14]&&jQuery(this.u).css("outline","none");this.u.style.paddingTop=
this.q[15]+"px";this.u.style.paddingBottom=this.q[16]+"px";this.u.style.paddingLeft=this.q[17]+"px";this.u.style.paddingRight=this.q[18]+"px";switch(this.q[19]){case 0:this.u.style.textAlign="left";break;case 1:this.u.style.textAlign="center";break;case 2:this.u.style.textAlign="right"}0===this.q[3]&&(jQuery(this.u).hide(),this.visible=!1,this.Cf=!0);b=function(a){return function(){a.b.trigger(rc.prototype.d.kt,a)}}(this);this.u.oninput=b;-1!==navigator.userAgent.indexOf("MSIE")&&(this.u.oncut=b);
this.u.onclick=function(a){return function(b){b.stopPropagation();a.b.trigger(rc.prototype.d.Ns,a)}}(this);this.u.ondblclick=function(a){return function(b){b.stopPropagation();a.b.trigger(rc.prototype.d.Qs,a)}}(this);this.u.onblur=function(a){return function(){a.b.sg||a.b.trigger(rc.prototype.d.Us,a)}}(this);this.u.onfocus=function(a){return function(){1===a.q[20]&&a.u.select();a.b.trigger(rc.prototype.d.Ts,a)}}(this);this.u.addEventListener("touchstart",function(a){a.stopPropagation()},!1);this.u.addEventListener("touchmove",
function(a){a.stopPropagation()},!1);this.u.addEventListener("touchend",function(a){a.stopPropagation()},!1);jQuery(this.u).mousedown(function(a){a.stopPropagation()});jQuery(this.u).mouseup(function(a){a.stopPropagation()});jQuery(this.u).keydown(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});jQuery(this.u).keyup(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});this.$p=this.aq=this.Tp=this.Xp=this.Zp=this.Vp=0;this.as(!0);this.b.Ni(this)}};q.Kb=function(){return{text:this.u.value,
placeholder:this.u.placeholder,tooltip:this.u.title,disabled:!!this.u.disabled,readonly:!!this.u.readOnly,spellcheck:!!this.u.spellcheck}};q.$b=function(b){this.u.value=b.text;this.u.placeholder=b.placeholder;this.u.title=b.tooltip;this.u.disabled=b.disabled;this.u.readOnly=b.readonly;this.u.spellcheck=b.spellcheck};q.Yf=function(){this.b.wa||(jQuery(this.u).remove(),this.u=null)};q.Lb=function(){this.as()};q.as=function(b){if(!this.b.wa){var a=this.j.Ca(this.x,this.y,!0),e=this.j.Ca(this.x,this.y,
!1),d=this.j.Ca(this.x+this.width,this.y+this.height,!0),c=this.j.Ca(this.x+this.width,this.y+this.height,!1);if(!this.visible||!this.j.visible||0>=d||0>=c||a>=this.b.width||e>=this.b.height)this.Cf||jQuery(this.u).hide(),this.Cf=!0;else{1>a&&(a=1);1>e&&(e=1);d>=this.b.width&&(d=this.b.width-1);c>=this.b.height&&(c=this.b.height-1);var h=window.innerWidth,f=window.innerHeight;b||this.Vp!==a||this.Zp!==e||this.Xp!==d||this.Tp!==c||this.aq!==h||this.$p!==f?(this.Vp=a,this.Zp=e,this.Xp=d,this.Tp=c,this.aq=
h,this.$p=f,this.Cf&&(jQuery(this.u).show(),this.Cf=!1),b=Math.round(a)+jQuery(this.b.canvas).offset().left,h=Math.round(e)+jQuery(this.b.canvas).offset().top,jQuery(this.u).css("position","absolute"),jQuery(this.u).offset({left:b,top:h}),jQuery(this.u).width(Math.round(d-a)),jQuery(this.u).height(Math.round(c-e)),this.Vt&&jQuery(this.u).css("font-size",this.j.ic()/this.b.devicePixelRatio-.2+"em")):this.Cf&&(jQuery(this.u).show(),this.Cf=!1)}}};q.Hc=function(){};q.Xb=function(){};f.prototype.kt=function(){return!0};
f.prototype.Ns=function(){return!0};f.prototype.Qs=function(){return!0};f.prototype.Us=function(){return!0};f.prototype.Ts=function(){return!0};e.d=new f;l.prototype.rh=function(b){this.b.wa||(this.u.value=b)};l.prototype.uo=function(b){this.b.wa||(this.visible=0!==b)};l.prototype.xt=function(b){this.b.wa||(this.u.disabled=0===b)};e.F=new l;p.prototype.Text=function(b){this.b.wa?b.k(""):b.k(this.u.value)};e.Z=new p})();function sc(f){this.b=f}
(function(){function f(a){-1===jb.indexOf(a)&&jb.push(a)}function l(a){var b=a.n,c;try{c=b.play()}catch(d){f(a);return}c?c.catch(function(){f(a)}):Dc&&!E.Ya&&f(a)}function p(){var a,b,c,d;Ec||Fa||!x||(e(),"running"===x.state&&(Ec=!0));var k=jb.slice(0);D(jb);if(!ea)for(a=0,b=k.length;a<b;++a)c=k[a],c.qc||c.wc||(d=c.n.play())&&d.catch(function(){f(c)})}function e(){"suspended"===x.state&&x.resume&&x.resume();if(x.createBuffer){var a=x.createBuffer(1,220,22050),b=x.createBufferSource();b.buffer=a;b.connect(x.destination);
u(b)}}function q(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function t(a){a=a.toLowerCase();return ba.hasOwnProperty(a)&&ba[a].length?ba[a][0].Jc():x.destination}function b(){return x.createGain?x.createGain():x.createGainNode()}function a(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function u(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function d(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||0,b,c-b)}function c(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function h(a,c,d,k,g,e){this.type="filter";this.rd=[a,c,d,k,g,e];this.fa=b();this.R=b();this.R.gain.value=e;this.P=b();this.P.gain.value=1-e;this.Xa=x.createBiquadFilter();this.Xa.type="number"===typeof this.Xa.type?a:Hc[a];this.Xa.frequency.value=c;this.Xa.detune&&(this.Xa.detune.value=d);this.Xa.Q.value=k;this.Xa.gain.value=g;this.fa.connect(this.Xa);this.fa.connect(this.P);this.Xa.connect(this.R)}function m(c,d,k){this.type="delay";this.rd=[c,d,k];this.fa=b();this.R=b();this.R.gain.value=k;this.P=
b();this.P.gain.value=1-k;this.ni=b();this.Xc=a(c);this.Xc.delayTime.value=c;this.Ej=b();this.Ej.gain.value=d;this.fa.connect(this.ni);this.fa.connect(this.P);this.ni.connect(this.R);this.ni.connect(this.Xc);this.Xc.connect(this.Ej);this.Ej.connect(this.ni)}function g(a,c,d,k){this.type="convolve";this.rd=[c,d,k];this.fa=b();this.R=b();this.R.gain.value=d;this.P=b();this.P.gain.value=1-d;this.yf=x.createConvolver();a&&(this.yf.normalize=c,this.yf.buffer=a);this.fa.connect(this.yf);this.fa.connect(this.P);
this.yf.connect(this.R)}function C(c,d,k,g,e){this.type="flanger";this.rd=[c,d,k,g,e];this.fa=b();this.P=b();this.P.gain.value=1-e/2;this.R=b();this.R.gain.value=e/2;this.Kj=b();this.Kj.gain.value=g;this.Xc=a(c+d);this.Xc.delayTime.value=c;this.Bb=x.createOscillator();this.Bb.frequency.value=k;this.Ac=b();this.Ac.gain.value=d;this.fa.connect(this.Xc);this.fa.connect(this.P);this.Xc.connect(this.R);this.Xc.connect(this.Kj);this.Kj.connect(this.Xc);this.Bb.connect(this.Ac);this.Ac.connect(this.Xc.delayTime);
u(this.Bb)}function N(a,c,d,k,e,g){this.type="phaser";this.rd=[a,c,d,k,e,g];this.fa=b();this.P=b();this.P.gain.value=1-g/2;this.R=b();this.R.gain.value=g/2;this.Xa=x.createBiquadFilter();this.Xa.type="number"===typeof this.Xa.type?7:"allpass";this.Xa.frequency.value=a;this.Xa.detune&&(this.Xa.detune.value=c);this.Xa.Q.value=d;this.Bb=x.createOscillator();this.Bb.frequency.value=e;this.Ac=b();this.Ac.gain.value=k;this.fa.connect(this.Xa);this.fa.connect(this.P);this.Xa.connect(this.R);this.Bb.connect(this.Ac);
this.Ac.connect(this.Xa.frequency);u(this.Bb)}function r(a){this.type="gain";this.rd=[a];this.ja=b();this.ja.gain.value=a}function k(a,c){this.type="tremolo";this.rd=[a,c];this.ja=b();this.ja.gain.value=1-c/2;this.Bb=x.createOscillator();this.Bb.frequency.value=a;this.Ac=b();this.Ac.gain.value=c/2;this.Bb.connect(this.Ac);this.Ac.connect(this.ja.gain);u(this.Bb)}function n(a,c){this.type="ringmod";this.rd=[a,c];this.fa=b();this.R=b();this.R.gain.value=c;this.P=b();this.P.gain.value=1-c;this.Bi=b();
this.Bi.gain.value=0;this.Bb=x.createOscillator();this.Bb.frequency.value=a;this.Bb.connect(this.Bi.gain);u(this.Bb);this.fa.connect(this.Bi);this.fa.connect(this.P);this.Bi.connect(this.R)}function v(a,c,d,k,g){this.type="distortion";this.rd=[a,c,d,k,g];this.fa=b();this.Gk=b();this.Fk=b();this.yx(d,Math.pow(10,k/20));this.R=b();this.R.gain.value=g;this.P=b();this.P.gain.value=1-g;this.ll=x.createWaveShaper();this.Cj=new Float32Array(65536);this.yv(a,c);this.ll.Cj=this.Cj;this.fa.connect(this.Gk);
this.fa.connect(this.P);this.Gk.connect(this.ll);this.ll.connect(this.Fk);this.Fk.connect(this.R)}function U(a,b,c,d,k){this.type="compressor";this.rd=[a,b,c,d,k];this.ja=x.createDynamicsCompressor();try{this.ja.threshold.value=a,this.ja.knee.value=b,this.ja.ratio.value=c,this.ja.attack.value=d,this.ja.release.value=k}catch(g){}}function Y(a,b){this.type="analyser";this.rd=[a,b];this.ja=x.createAnalyser();this.ja.fftSize=a;this.ja.smoothingTimeConstant=b;this.wv=new Float32Array(this.ja.frequencyBinCount);
this.Er=new Uint8Array(a);this.si=0}function H(){this.ra=null;this.nk=0}function F(a,c){this.src=a;this.Y=y;this.Ld=c;this.ij=!1;var d=this;this.Sg=this.Xg=null;this.Yg=[];this.Qk=0;this.Xn=this.Ij=this.Kr=this.Bk=!1;1===y&&c&&!kb&&(this.Y=0,this.Xg=b());this.Zd=this.ga=null;var k;switch(this.Y){case 0:this.ga=new Audio;this.ga.crossOrigin="anonymous";this.ga.addEventListener("canplaythrough",function(){d.Xn=!0});1===y&&x.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Kr=!0,this.ga.addEventListener("canplay",
function(){!d.Sg&&d.ga&&(d.Sg=x.createMediaElementSource(d.ga),d.Sg.connect(d.Xg))}));this.ga.autoplay=!1;this.ga.sB="auto";this.ga.src=a;break;case 1:E.Xh?E.pp(a,function(a){d.Zd=a;d.gp()},function(){d.Ij=!0}):(k=new XMLHttpRequest,k.open("GET",a,!0),k.responseType="arraybuffer",k.onload=function(){d.Zd=k.response;d.gp()},k.onerror=function(){d.Ij=!0},k.send());break;case 2:this.ga=!0;break;case 3:this.ga=!0}}function G(a,c){var d=this;this.tag=c;this.qc=this.Id=!0;this.src=a.src;this.buffer=a;this.Y=
y;this.Ld=a.Ld;this.playbackRate=1;this.Eg=!0;this.wc=this.Qc=!1;this.pc=0;this.Yh=this.Jg=this.Nd=!1;this.volume=1;this.hn=function(a){if(!d.wc&&!d.Qc){var b=this;b||(b=a.target);b===d.hj&&(d.Eg=!0,d.qc=!0,V=d.tag,E.trigger(sc.prototype.d.Zi,O))}};this.hj=null;this.Gg=1===T&&!this.Ld||2===T;this.Ug=1;this.startTime=this.Gg?E.xa.J:E.Ge.J;this.$a=this.ib=null;this.Pd=!1;this.Hb=null;this.Yq=this.Xq=this.Wq=this.Vq=this.$q=this.Zq=0;this.n=null;var k=!1;1!==this.Y||0!==this.buffer.Y||this.buffer.Kr||
(this.Y=0);switch(this.Y){case 0:this.Ld?(this.n=a.ga,k=!a.ij,a.ij=!0):(this.n=new Audio,this.n.crossOrigin="anonymous",this.n.autoplay=!1,this.n.src=a.ga.src,k=!0);k&&this.n.addEventListener("ended",function(){V=d.tag;d.qc=!0;E.trigger(sc.prototype.d.Zi,O)});break;case 1:this.ib=b();this.ib.connect(t(c));1===this.buffer.Y?a.ga&&(this.n=x.createBufferSource(),this.n.buffer=a.ga,this.n.connect(this.ib)):(this.n=this.buffer.ga,this.buffer.Xg.connect(this.ib),this.buffer.ij||(this.buffer.ij=!0,this.buffer.ga.addEventListener("ended",
function(){V=d.tag;d.qc=!0;E.trigger(sc.prototype.d.Zi,O)})));break;case 2:this.n=new window.Media(z+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.Eg=!0,d.qc=!0,V=d.tag,E.trigger(sc.prototype.d.Zi,O))});break;case 3:this.n=!0}}function w(a){D(Ba);if(a.length){var b,c,d;b=0;for(c=K.length;b<c;b++)d=K[b],nb(a,d.tag)&&Ba.push(d)}else L&&!L.Jf()&&(D(Ba),Ba[0]=L)}function A(a,b){ba.hasOwnProperty(a)?ba[a].push(b):ba[a]=[b];var c,d,k,g,e=x.destination;if(ba.hasOwnProperty(a)&&(k=ba[a],
k.length))for(e=k[0].Jc(),c=0,d=k.length;c<d;c++)g=k[c],c+1===d?g.Vc(x.destination):g.Vc(k[c+1].Jc());w(a);c=0;for(d=Ba.length;c<d;c++)Ba[c].hx(e);La&&Cb===a&&(La.disconnect(),La.connect(e))}function B(){}function S(){}var I=sc.prototype;I.ya=function(a){this.ba=a;this.b=a.b};I.ya.prototype.U=function(){};var E=null,O=null,V="",z="",y=0,x=null,P=[],K=[],L=null,J=!1,T=0,ea=!1,R=1,la=0,fa=0,Fa=!1,Ab=1,Bb=1,Bc=10,Cc=1E4,Fc=1,La=null,Cb="",Dc=!1,jb=[],kb=!1,Ec=!1;document.addEventListener("pointerup",
p,!0);document.addEventListener("touchend",p,!0);document.addEventListener("click",p,!0);document.addEventListener("keydown",p,!0);document.addEventListener("gamepadconnected",p,!0);var ba={},Hc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");h.prototype.Vc=function(a){this.R.disconnect();this.R.connect(a);this.P.disconnect();this.P.connect(a)};h.prototype.remove=function(){this.fa.disconnect();this.Xa.disconnect();this.R.disconnect();this.P.disconnect()};h.prototype.Jc=
function(){return this.fa};m.prototype.Vc=function(a){this.R.disconnect();this.R.connect(a);this.P.disconnect();this.P.connect(a)};m.prototype.remove=function(){this.fa.disconnect();this.ni.disconnect();this.Xc.disconnect();this.Ej.disconnect();this.R.disconnect();this.P.disconnect()};m.prototype.Jc=function(){return this.fa};g.prototype.Vc=function(a){this.R.disconnect();this.R.connect(a);this.P.disconnect();this.P.connect(a)};g.prototype.remove=function(){this.fa.disconnect();this.yf.disconnect();
this.R.disconnect();this.P.disconnect()};g.prototype.Jc=function(){return this.fa};C.prototype.Vc=function(a){this.P.disconnect();this.P.connect(a);this.R.disconnect();this.R.connect(a)};C.prototype.remove=function(){this.fa.disconnect();this.Xc.disconnect();this.Bb.disconnect();this.Ac.disconnect();this.P.disconnect();this.R.disconnect();this.Kj.disconnect()};C.prototype.Jc=function(){return this.fa};N.prototype.Vc=function(a){this.P.disconnect();this.P.connect(a);this.R.disconnect();this.R.connect(a)};
N.prototype.remove=function(){this.fa.disconnect();this.Xa.disconnect();this.Bb.disconnect();this.Ac.disconnect();this.P.disconnect();this.R.disconnect()};N.prototype.Jc=function(){return this.fa};r.prototype.Vc=function(a){this.ja.disconnect();this.ja.connect(a)};r.prototype.remove=function(){this.ja.disconnect()};r.prototype.Jc=function(){return this.ja};k.prototype.Vc=function(a){this.ja.disconnect();this.ja.connect(a)};k.prototype.remove=function(){this.Bb.disconnect();this.Ac.disconnect();this.ja.disconnect()};
k.prototype.Jc=function(){return this.ja};n.prototype.Vc=function(a){this.R.disconnect();this.R.connect(a);this.P.disconnect();this.P.connect(a)};n.prototype.remove=function(){this.Bb.disconnect();this.Bi.disconnect();this.fa.disconnect();this.R.disconnect();this.P.disconnect()};n.prototype.Jc=function(){return this.fa};v.prototype.yx=function(a,b){.01>a&&(a=.01);this.Gk.gain.value=a;this.Fk.gain.value=Math.pow(1/a,.6)*b};v.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=
a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};v.prototype.yv=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),k=0,g=0;32768>g;++g)k=g/32768,k=this.shape(k,c,d),this.Cj[32768+g]=k,this.Cj[32768-g-1]=-k};v.prototype.Vc=function(a){this.R.disconnect();this.R.connect(a);this.P.disconnect();this.P.connect(a)};v.prototype.remove=function(){this.fa.disconnect();this.Gk.disconnect();this.ll.disconnect();this.Fk.disconnect();this.R.disconnect();this.P.disconnect()};v.prototype.Jc=function(){return this.fa};
U.prototype.Vc=function(a){this.ja.disconnect();this.ja.connect(a)};U.prototype.remove=function(){this.ja.disconnect()};U.prototype.Jc=function(){return this.ja};Y.prototype.Lb=function(){this.ja.getFloatFrequencyData(this.wv);this.ja.getByteTimeDomainData(this.Er);for(var a=this.ja.fftSize,b=0,c=this.si=0,d=0;b<a;b++)d=(this.Er[b]-128)/128,0>d&&(d=-d),this.si<d&&(this.si=d),c+=d*d;this.si=q(this.si);q(Math.sqrt(c/a))};Y.prototype.Vc=function(a){this.ja.disconnect();this.ja.connect(a)};Y.prototype.remove=
function(){this.ja.disconnect()};Y.prototype.Jc=function(){return this.ja};H.prototype.Ci=function(a){this.ra=a};H.prototype.Wj=function(){return!!this.ra};H.prototype.Lb=function(){};F.prototype.ix=function(){var a,b,c,d;c=a=0;for(b=K.length;a<b;++a)d=K[a],K[c]=d,d.buffer===this?d.stop():++c;K.length=c;this.Sg&&(this.Sg.disconnect(),this.Sg=null);this.Xg&&(this.Xg.disconnect(),this.Xg=null);this.Zd=this.ga=null};F.prototype.gp=function(){if(!this.ga&&this.Zd){var a=this;if(x.decodeAudioData)x.decodeAudioData(this.Zd,
function(b){a.ga=b;a.Zd=null;var c,d,k;if(ia(a.Ck)||ea)ia(a.yj)||(c=a.yj.yf,c.normalize=a.Iq,c.buffer=b);else if(a.Yg.length){c=0;for(d=a.Yg.length;c<d;c++){b=a.Yg[c];k=new G(a,b.Or);k.Dn(!0);if("undefined"!==typeof b.Kq&&(b.ra=E.Tj(b.Kq),!b.ra))continue;if(b.ra){var g=Sa(b.ra.x,b.ra.y,-b.ra.j.jb(),la,fa,!0),e=Sa(b.ra.x,b.ra.y,-b.ra.j.jb(),la,fa,!1);k.Cn(g,e,Ia(b.ra.m-b.ra.j.jb()),b.um,b.Ym,b.an);k.Ci(b.ra)}else k.Cn(b.x,b.y,b.Mt,b.um,b.Ym,b.an);k.play(a.Tm,a.Wn,a.Qk);a.Bk&&k.pause();K.push(k)}D(a.Yg)}else k=
new G(a,a.Ck||""),k.play(a.Tm,a.Wn,a.Qk),a.Bk&&k.pause(),K.push(k)},function(){a.Ij=!0});else if(this.ga=x.createBuffer(this.Zd,!1),this.Zd=null,ia(this.Ck)||ea)ia(this.yj)||(b=this.yj.yf,b.normalize=this.Iq,b.buffer=this.ga);else{var b=new G(this,this.Ck);b.play(this.Tm,this.Wn,this.Qk);this.Bk&&b.pause();K.push(b)}}};F.prototype.Np=function(){switch(this.Y){case 0:var a=4<=this.ga.readyState;a&&(this.Xn=!0);return a||this.Xn;case 1:return!!this.Zd||!!this.ga;case 2:return!0;case 3:return!0}return!1};
F.prototype.ow=function(){switch(this.Y){case 0:return this.Np();case 1:return!!this.ga;case 2:return!0;case 3:return!0}return!1};F.prototype.dw=function(){switch(this.Y){case 0:return!!this.ga.error;case 1:return this.Ij}return!1};G.prototype.Jf=function(){switch(this.Y){case 0:return this.n.ended;case 1:return 1===this.buffer.Y?!this.Id&&!this.qc&&this.n.loop||this.wc?!1:this.Eg:this.n.ended;case 2:return this.Eg;case 3:!0}return!0};G.prototype.$t=function(){return this.Id||this.qc?!0:this.Jf()};
G.prototype.Dn=function(a){1===y&&(!this.Pd&&a?this.ib&&(this.$a||(this.$a=x.createPanner(),this.$a.panningModel="number"===typeof this.$a.panningModel?Ab:["equalpower","HRTF","soundfield"][Ab],this.$a.distanceModel="number"===typeof this.$a.distanceModel?Bb:["linear","inverse","exponential"][Bb],this.$a.refDistance=Bc,this.$a.maxDistance=Cc,this.$a.rolloffFactor=Fc),this.ib.disconnect(),this.ib.connect(this.$a),this.$a.connect(t(this.tag)),this.Pd=!0):this.Pd&&!a&&this.ib&&(this.$a.disconnect(),
this.ib.disconnect(),this.ib.connect(t(this.tag)),this.Pd=!1))};G.prototype.Cn=function(a,b,c,d,k,g){this.Pd&&1===y&&(this.$a.setPosition(a,b,0),this.$a.setOrientation(Math.cos(M(c)),Math.sin(M(c)),0),this.$a.coneInnerAngle=d,this.$a.coneOuterAngle=k,this.$a.coneOuterGain=g,this.Zq=a,this.$q=b,this.Vq=c,this.Wq=d,this.Xq=k,this.Yq=g)};G.prototype.Ci=function(a){this.Pd&&1===y&&(this.Hb||(this.Hb=new H),this.Hb.Ci(a))};G.prototype.Lb=function(a){if(this.Pd&&1===y&&this.Hb&&this.Hb.Wj()&&this.Fg()){this.Hb.Lb(a);
a=this.Hb.ra;var b=Sa(a.x,a.y,-a.j.jb(),la,fa,!0),c=Sa(a.x,a.y,-a.j.jb(),la,fa,!1);this.$a.setPosition(b,c,0);b=0;"undefined"!==typeof this.Hb.ra.m&&(b=a.m-a.j.jb(),this.$a.setOrientation(Math.cos(b),Math.sin(b),0))}};G.prototype.play=function(a,b,c,k){var g=this.n;this.Nd=a;this.volume=b;c=c||0;k=k||0;switch(this.Y){case 0:1!==g.playbackRate&&(g.playbackRate=1);g.volume!==b*R&&(g.volume=b*R);g.loop!==a&&(g.loop=a);g.muted&&(g.muted=!1);if(g.currentTime!==c)try{g.currentTime=c}catch(e){}l(this);break;
case 1:this.muted=!1;this.Ug=1;if(1===this.buffer.Y)this.ib.gain.value=b*R,this.Id||(this.n=x.createBufferSource(),this.n.buffer=this.buffer.ga,this.n.connect(this.ib)),this.n.onended=this.hn,this.hj=this.n,this.n.loop=a,this.Eg=!1,0===c?u(this.n,k):d(this.n,c,this.Gf(),k);else{1!==g.playbackRate&&(g.playbackRate=1);g.loop!==a&&(g.loop=a);g.volume=b*R;if(g.currentTime!==c)try{g.currentTime=c}catch(h){}l(this)}break;case 2:(!this.Id&&this.qc||0!==c)&&g.seekTo(c);g.play();this.Eg=!1;break;case 3:E.Gb?
AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Gg?E.xa.J:E.Ge.J)-c;this.wc=this.qc=this.Id=!1};G.prototype.stop=function(){switch(this.Y){case 0:this.n.paused||this.n.pause();break;case 1:1===this.buffer.Y?c(this.n):this.n.paused||this.n.pause();break;case 2:this.n.stop();break;case 3:E.Gb&&AppMobi.context.stopSound(this.src)}this.qc=!0;this.wc=!1};G.prototype.pause=function(){if(!(this.Id||this.qc||this.Jf()||this.wc)){switch(this.Y){case 0:this.n.paused||
this.n.pause();break;case 1:1===this.buffer.Y?(this.pc=this.lm(!0),this.Nd&&(this.pc=this.pc%this.Gf()),this.wc=!0,c(this.n)):this.n.paused||this.n.pause();break;case 2:this.n.pause();break;case 3:E.Gb&&AppMobi.context.stopSound(this.src)}this.wc=!0}};G.prototype.mx=function(){if(!(this.Id||this.qc||this.Jf())&&this.wc){switch(this.Y){case 0:l(this);break;case 1:1===this.buffer.Y?(this.n=x.createBufferSource(),this.n.buffer=this.buffer.ga,this.n.connect(this.ib),this.n.onended=this.hn,this.hj=this.n,
this.n.loop=this.Nd,this.ib.gain.value=R*this.volume*this.Ug,this.hl(),this.startTime=(this.Gg?E.xa.J:E.Ge.J)-this.pc/(this.playbackRate||.001),d(this.n,this.pc,this.Gf())):l(this);break;case 2:this.n.play();break;case 3:E.Gb&&AppMobi.context.resumeSound(this.src)}this.wc=!1}};G.prototype.seek=function(a){if(!(this.Id||this.qc||this.Jf()))switch(this.Y){case 0:try{this.n.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.Y)this.wc?this.pc=a:(this.pause(),this.pc=a,this.mx());else try{this.n.currentTime=
a}catch(c){}break;case 3:E.Gb&&AppMobi.context.seekSound(this.src,a)}};G.prototype.hx=function(a){1===this.Y&&(this.Pd?(this.$a.disconnect(),this.$a.connect(a)):(this.ib.disconnect(),this.ib.connect(a)))};G.prototype.Gf=function(){var a=0;switch(this.Y){case 0:"undefined"!==typeof this.n.duration&&(a=this.n.duration);break;case 1:a=this.buffer.ga.duration;break;case 2:a=this.n.getDuration();break;case 3:E.Gb&&(a=AppMobi.context.getDurationSound(this.src))}return a};G.prototype.lm=function(a){var b=
this.Gf(),c=0;switch(this.Y){case 0:"undefined"!==typeof this.n.currentTime&&(c=this.n.currentTime);break;case 1:if(1===this.buffer.Y){if(this.wc)return this.pc;c=(this.Gg?E.xa.J:E.Ge.J)-this.startTime}else"undefined"!==typeof this.n.currentTime&&(c=this.n.currentTime);break;case 3:E.Gb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Nd&&c>b&&(c=b);return c};G.prototype.Fg=function(){return!this.wc&&!this.Id&&!this.qc&&!this.Jf()};G.prototype.Ex=function(){return!this.Id&&
!this.qc&&!this.Jf()};G.prototype.Px=function(){var a=this.volume*R;isFinite(a)||(a=0);switch(this.Y){case 0:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a);break;case 1:1===this.buffer.Y?this.ib.gain.value=a*this.Ug:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a)}};G.prototype.Gj=function(a){switch(this.Y){case 0:this.n.muted!==!!a&&(this.n.muted=!!a);break;case 1:1===this.buffer.Y?(this.Ug=a?0:1,this.ib.gain.value=R*this.volume*this.Ug):this.n.muted!==
!!a&&(this.n.muted=!!a)}};G.prototype.zx=function(){this.Jg=!0;this.Gj(this.Jg||this.Yh)};G.prototype.xr=function(a){this.Yh=!!a;this.Gj(this.Jg||this.Yh)};G.prototype.hl=function(){var a=this.playbackRate;this.Gg&&(a*=E.eg);switch(this.Y){case 0:this.n.playbackRate!==a&&(this.n.playbackRate=a);break;case 1:1===this.buffer.Y?this.n.playbackRate.value!==a&&(this.n.playbackRate.value=a):this.n.playbackRate!==a&&(this.n.playbackRate=a)}};G.prototype.Bx=function(a){switch(this.Y){case 0:a?this.Fg()?(this.Qc=
!0,this.n.pause()):this.Qc=!1:this.Qc&&(this.n.play(),this.Qc=!1);break;case 1:a?this.Fg()?(this.Qc=!0,1===this.buffer.Y?(this.pc=this.lm(!0),this.Nd&&(this.pc=this.pc%this.Gf()),c(this.n)):this.n.pause()):this.Qc=!1:this.Qc&&(1===this.buffer.Y?(this.n=x.createBufferSource(),this.n.buffer=this.buffer.ga,this.n.connect(this.ib),this.n.onended=this.hn,this.hj=this.n,this.n.loop=this.Nd,this.ib.gain.value=R*this.volume*this.Ug,this.hl(),this.startTime=(this.Gg?E.xa.J:E.Ge.J)-this.pc/(this.playbackRate||
.001),d(this.n,this.pc,this.Gf())):this.n.play(),this.Qc=!1);break;case 2:a?this.Fg()?(this.n.pause(),this.Qc=!0):this.Qc=!1:this.Qc&&(this.Qc=!1,this.n.play())}};I.la=function(a){this.type=a;E=this.b=a.b;O=this;this.yc=null;this.ei=-600;this.b.Xh&&(kb=!0);!(this.b.Mg||this.b.Sh&&(this.b.Cm||this.b.Xj))||this.b.Zj||this.b.wa||this.b.Lp||kb||(Dc=!0);x=null;"undefined"!==typeof AudioContext?(y=1,x=new AudioContext):"undefined"!==typeof webkitAudioContext&&(y=1,x=new webkitAudioContext);this.b.Mg&&x&&
(x.close&&x.close(),"undefined"!==typeof AudioContext?x=new AudioContext:"undefined"!==typeof webkitAudioContext&&(x=new webkitAudioContext));1!==y&&(this.b.Mc&&"undefined"!==typeof window.Media?y=2:this.b.Mp&&(y=3));2===y&&(z=location.href,a=z.lastIndexOf("/"),-1<a&&(z=z.substr(0,a+1)),z=z.replace("file://",""));if(this.b.pw&&this.b.qw&&"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.sf(this);
else{if(this.b.Gb)J=this.b.Sh;else try{J=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.bk}catch(b){J=!1}this.b.Ni(this)}};var ta=I.la.prototype;ta.U=function(){this.b.pg=this;T=this.q[0];this.xe=this.q[1];this.Vw=0!==this.q[2];this.Gq=0;Ab=this.q[3];Bb=this.q[4];this.ei=-this.q[5];Bc=this.q[6];Cc=this.q[7];Fc=this.q[8];this.yc=new H;var a=this.b.M||this.b.width,b=this.b.L||this.b.height;1===y&&(x.listener.setPosition(a/2,b/2,this.ei),x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=
function(a,b){La&&La.disconnect();Cb=b.toLowerCase();La=x.createMediaStreamSource(a);La.connect(t(Cb))});this.b.Co(function(a){O.Pw(a)});var c=this;this.b.Ao(function(a){c.Lw(a)})};ta.Lw=function(a){var b,c,d;b=0;for(c=K.length;b<c;b++)d=K[b],d.Hb&&d.Hb.ra===a&&(d.Hb.ra=null,d.Pd&&d.Fg()&&d.Nd&&d.stop());this.yc.ra===a&&(this.yc.ra=null)};ta.Kb=function(){var a={silent:ea,masterVolume:R,listenerZ:this.ei,listenerUid:this.yc.Wj()?this.yc.ra.uid:-1,playing:[],effects:{}},b=a.playing,c,d,k,g,e,h;c=0;
for(d=K.length;c<d;c++)k=K[c],!k.Ex()||3===this.xe||k.Ld&&1===this.xe||!k.Ld&&2===this.xe||(g=k.lm(),k.Nd&&(g=g%k.Gf()),g={tag:k.tag,buffersrc:k.buffer.src,is_music:k.Ld,playbackTime:g,volume:k.volume,looping:k.Nd,muted:k.Jg,playbackRate:k.playbackRate,paused:k.wc,resume_position:k.pc},k.Pd&&(g.pan={},h=g.pan,k.Hb&&k.Hb.Wj()?h.objUid=k.Hb.ra.uid:(h.x=k.Zq,h.y=k.$q,h.a=k.Vq),h.ia=k.Wq,h.oa=k.Xq,h.og=k.Yq),b.push(g));b=a.effects;for(e in ba)if(ba.hasOwnProperty(e)){k=[];c=0;for(d=ba[e].length;c<d;c++)k.push({type:ba[e][c].type,
params:ba[e][c].rd});b[e]=k}return a};var Xa=[];ta.$b=function(a){var b=a.silent;R=a.masterVolume;this.ei=a.listenerZ;this.yc.Ci(null);var c=a.listenerUid;-1!==c&&(this.yc.nk=c,Xa.push(this.yc));var c=a.playing,d,e,f,q,l,p,t,F,B,u,G;if(3!==this.xe)for(d=0,e=K.length;d<e;d++)B=K[d],B.Ld&&1===this.xe||(B.Ld||2!==this.xe)&&B.stop();for(l in ba)if(ba.hasOwnProperty(l))for(d=0,e=ba[l].length;d<e;d++)ba[l][d].remove();Za(ba);for(l in a.effects)if(a.effects.hasOwnProperty(l))for(p=a.effects[l],d=0,e=p.length;d<
e;d++)switch(f=p[d].type,u=p[d].params,f){case "filter":A(l,new h(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "delay":A(l,new m(u[0],u[1],u[2]));break;case "convolve":f=u[2];B=this.Qj(f,!1);B.ga?f=new g(B.ga,u[0],u[1],f):(f=new g(null,u[0],u[1],f),B.Iq=u[0],B.yj=f);A(l,f);break;case "flanger":A(l,new C(u[0],u[1],u[2],u[3],u[4]));break;case "phaser":A(l,new N(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "gain":A(l,new r(u[0]));break;case "tremolo":A(l,new k(u[0],u[1]));break;case "ringmod":A(l,new n(u[0],
u[1]));break;case "distortion":A(l,new v(u[0],u[1],u[2],u[3],u[4]));break;case "compressor":A(l,new U(u[0],u[1],u[2],u[3],u[4]));break;case "analyser":A(l,new Y(u[0],u[1]))}d=0;for(e=c.length;d<e;d++)3===this.xe||(a=c[d],f=a.buffersrc,q=a.is_music,l=a.tag,p=a.playbackTime,t=a.looping,F=a.volume,G=(u=a.pan)&&u.hasOwnProperty("objUid")?u.objUid:-1,q&&1===this.xe)||!q&&2===this.xe||((B=this.vp(f,l,q,t,F))?(B.pc=a.resume_position,B.Dn(!!u),B.play(t,F,p),B.hl(),B.Px(),B.Gj(B.Jg||B.Yh),a.paused&&B.pause(),
a.muted&&B.zx(),B.Gj(B.Jg||B.Yh),u&&(-1!==G?(B.Hb=B.Hb||new H,B.Hb.nk=G,Xa.push(B.Hb)):B.Cn(u.x,u.y,u.a,u.ia,u.oa,u.og))):(B=this.Qj(f,q),B.Qk=p,B.Bk=a.paused,u&&(-1!==G?B.Yg.push({Kq:G,um:u.ia,Ym:u.oa,an:u.og,Or:l}):B.Yg.push({x:u.x,y:u.y,Mt:u.a,um:u.ia,Ym:u.oa,an:u.og,Or:l}))));if(b&&!ea){d=0;for(e=K.length;d<e;d++)K[d].xr(!0);ea=!0}else if(!b&&ea){d=0;for(e=K.length;d<e;d++)K[d].xr(!1);ea=!1}};ta.Ne=function(){var a,b,c,d;a=0;for(b=Xa.length;a<b;a++)c=Xa[a],d=this.b.Tj(c.nk),c.Ci(d),c.nk=-1,d&&
(la=d.x,fa=d.y);D(Xa)};ta.Pw=function(a){if(!this.Vw){!a&&x&&x.resume&&(x.resume(),Fa=!1);var b,c;b=0;for(c=K.length;b<c;b++)K[b].Bx(a);a&&x&&x.suspend&&(x.suspend(),Fa=!0)}};ta.Lb=function(){var a=this.b.Xe,b,c,d;b=0;for(c=K.length;b<c;b++)d=K[b],d.Lb(a),0!==T&&d.hl();var k,g;for(k in ba)if(ba.hasOwnProperty(k))for(d=ba[k],b=0,c=d.length;b<c;b++)g=d[b],g.Lb&&g.Lb();1===y&&this.yc.Wj()&&(this.yc.Lb(a),la=this.yc.ra.x,fa=this.yc.ra.y,x.listener.setPosition(this.yc.ra.x,this.yc.ra.y,this.ei))};var Ya=
[];ta.Ax=function(a){var b,c,d,k,g,e=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],k=d[0],d=2*d[1],(g=4<k.length&&".ogg"===k.substr(k.length-4))&&J||!g&&!J)Ya.push({filename:k,size:d,ra:null}),e+=d;return e};ta.Gx=function(){var a,b,c,d;a=0;for(b=Ya.length;a<b;++a)c=Ya[a],d=this.b.$l+c.filename,c.ra=this.Qj(d,!1)};ta.Jv=function(){var a=0,b,c,d;b=0;for(c=Ya.length;b<c;++b)d=Ya[b],d.ra.ow()||d.ra.dw()||this.b.wa||this.b.Xj?a+=d.size:d.ra.Np()&&(a+=Math.floor(d.size/2));return a};ta.jx=function(){var a,b,
c,d;c=a=0;for(b=P.length;a<b;++a)d=P[a],P[c]=d,d.Ld?d.ix():++c;P.length=c};ta.Qj=function(a,b){var c,d,k,g=null;c=0;for(d=P.length;c<d;c++)if(k=P[c],k.src===a){g=k;break}g||(kb&&b&&this.jx(),g=new F(a,b),P.push(g));return g};ta.vp=function(a,b,c,d,k){var g,e,h;g=0;for(e=K.length;g<e;g++)if(h=K[g],h.src===a&&(h.$t()||c))return h.tag=b,h;a=this.Qj(a,c);if(!a.ga)return"<preload>"!==b&&(a.Ck=b,a.Tm=d,a.Wn=k),null;h=new G(a,b);K.push(h);return h};var Ba=[];B.prototype.Zi=function(a){return nb(V,a)};B.prototype.As=
function(a){w(a);var b;a=0;for(b=Ba.length;a<b;a++)if(Ba[a].Fg())return!0;return!1};I.d=new B;S.prototype.Play=function(a,b,c,d){!ea&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),L=this.vp(this.b.$l+a[0]+(J?".ogg":".m4a"),d,a[1],0!==b,c))&&(L.Dn(!1),L.play(0!==b,c,0,this.Gq),this.Gq=0)};S.prototype.Ht=function(a){w(a);var b;a=0;for(b=Ba.length;a<b;a++)Ba[a].stop()};I.F=new S;I.Z=new function(){}})();function tc(f){this.b=f}
(function(){function f(){q&&t&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(a){b.Ow(a)})}function l(){}var p=tc.prototype;p.ya=function(a){this.ba=a;this.b=a.b};var e=p.ya.prototype;e.U=function(){};var q=!1,t=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var a=document.createElement("script");a.onload=function(){q=!0;f()};a.src="offlineClient.js";document.head.appendChild(a)}});var b=null;e.Oq=function(){t=
!0;f()};p.la=function(a){this.type=a;this.b=a.b};e=p.la.prototype;e.U=function(){var a=this;window.addEventListener("resize",function(){a.b.trigger(tc.prototype.d.gt,a)});b=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(tc.prototype.d.ct,a)}),window.addEventListener("offline",function(){a.b.trigger(tc.prototype.d.$s,a)}));this.b.Gb||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(tc.prototype.d.ql,a)}),document.addEventListener("backbutton",
function(){a.b.trigger(tc.prototype.d.Yi,a)}),document.addEventListener("menubutton",function(){a.b.trigger(tc.prototype.d.ko,a)}),document.addEventListener("searchbutton",function(){a.b.trigger(tc.prototype.d.ht,a)}),document.addEventListener("tizenhwkey",function(b){var d;switch(b.keyName){case "back":d=a.b.trigger(tc.prototype.d.Yi,a);!d&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(d=a.b.trigger(tc.prototype.d.ko,a))||b.preventDefault()}}));this.b.bk&&
"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){a.b.trigger(tc.prototype.d.Yi,a)&&(b.handled=!0)}):this.b.Pp&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(tc.prototype.d.Yi,a)});this.b.Co(function(b){b?a.b.trigger(tc.prototype.d.dt,a):a.b.trigger(tc.prototype.d.et,a)})};e.Ow=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(tc.prototype.d.lt,this):"update-ready"===
a||"update-pending"===a?this.b.trigger(tc.prototype.d.ql,this):"offline-ready"===a&&this.b.trigger(tc.prototype.d.bt,this)};l.prototype.ct=function(){return!0};l.prototype.$s=function(){return!0};l.prototype.ql=function(){return!0};l.prototype.et=function(){return!0};l.prototype.dt=function(){return!0};l.prototype.gt=function(){return!0};l.prototype.Yi=function(){return!0};l.prototype.ko=function(){return!0};l.prototype.ht=function(){return!0};l.prototype.lt=function(){return!0};l.prototype.ql=function(){return!0};
l.prototype.bt=function(){return!0};p.d=new l;p.F=new function(){};p.Z=new function(){}})();function uc(f){this.b=f}
(function(){var f=uc.prototype;f.ya=function(e){this.ba=e;this.b=e.b};f.ya.prototype.U=function(){};f.la=function(e){this.type=e;this.b=e.b};var l=f.la.prototype;l.U=function(){this.e=null;this.se=0;this.Ia=[]};l.Yf=function(){};l.Kb=function(){return{TimerList:this.Ia}};l.$b=function(e){this.Ia=e.TimerList};l.Hc=function(){};l.Xb=function(){};l.fe=function(e,f){var l="",b=parseInt(e/6E4/60%60);0>b&&(b=0);10>b&&f&&(l+="0");return l+b};l.uc=function(e,f){var l="",b=parseInt(e/6E4%60);0>b&&(b=0);10>
b&&f&&(l+="0");return l+b};l.Gd=function(e,f){var l="",b=parseInt(e/1E3%60);0>b&&(b=0);10>b&&f&&(l+="0");return l+b};l.Ih=function(e){var f="";e=parseInt(e%1E3);0>e&&(e=0);100>e&&(f+="0");return f+e};l.tf=function(e,f){var l="",b=parseInt(e/(1E3*this.e.cj)/this.e.Vi%this.e.Vi);0>b&&(b=0);10>b&&f&&(l+="0");return l+b};l.hd=function(e,f){var l="",b=parseInt(e/(1E3*this.e.cj)%this.e.Vi);0>b&&(b=0);10>b&&f&&(l+="0");return l+b};l.Tb=function(e,f){var l="",b=parseInt(e/this.e.nl%this.e.cj);0>b&&(b=0);
10>b&&f&&(l+="0");return l+b};l.gd=function(e){var f="";e=parseInt(e%this.e.nl);0>e&&(e=0);100>e&&(f+="0");return f+e};l.Ua=function(e){if(1==e.Bd)e.qh=0;else if(0==e.Ad)e.qh=1E3*this.b.xa.J-e.rl;else{var f=1E3*this.b.xa.J-e.bj;1==e.hg&&(e.A=e.ec-f,0>=e.A&&(e.A=0));1==e.rf&&(e.A=f-e.Xd,e.A>=e.ec&&0!=e.ec&&(e.A=e.ec))}};l.ka=function(e){this.e=null;for(var f=0;f<this.Ia.length;f++)if(this.Ia[f].mg==e){this.e=this.Ia[f];return}this.e=null};l.Ke=function(e){if(null!=e){if(1==e.hg){var f=e.vo;e.Xd=1E3*
this.b.xa.J-e.ej;e.ec=f+e.Xd;e.A=f}1==e.rf&&0==e.ec&&(e.Xd=1E3*this.b.xa.J-e.ej,e.ec=0,e.A=0);1==e.rf&&0!=e.ec&&(e.Xd=1E3*this.b.xa.J-e.ej,e.ec=e.vo,e.A=0);e.qh=0;e.bj=0;e.rl=1E3*this.b.xa.J-e.ej}};l.dj=function(e,f,l,b,a){this.mg=e;this.Xd=f;this.ec=l;this.ej=a;this.rf=this.hg=!1;this.Ad=!0;this.Bd=!1;this.A=0;this.vo=b;this.bj=this.qh=this.rl=0;this.cj=this.Vi=60;this.nl=1E3};f.d={};var p=f.d;p.hz=function(e){this.ka(e);return null==this.e?!1:0==this.e.Bd?!0:!1};p.gz=function(e){this.ka(e);return null==
this.e||1==this.e.Ad?!1:!0};p.fz=function(e){this.ka(e);if(null==this.e||1==this.e.Bd||0==this.e.Ad)return!1;this.Ua(this.e);return 1==this.e.hg&&0>=this.e.A||1==this.e.rf&&0!=this.e.ec&&this.e.A>=this.e.ec?!0:!1};p.iz=function(e){this.ka(e);return null==this.e?!1:this.e.Bd};p.jy=function(e,f,l,b,a,p){this.ka(e);if(null==this.e)return!1;e=36E5*l+6E4*b+1E3*a+p;this.Ua(this.e);switch(f){case 0:if(this.e.A<e)return this.se=e,!0;break;case 1:if(this.e.A>e)return this.se=e,!0;break;case 2:if(this.e.A!=
e)return this.se=e,!0;break;case 3:if(this.e.A==e||this.e.A>this.se&&this.e.A>e)return this.se=e,!0;break;case 4:if(this.e.A<=e)return this.se=e,!0;break;case 5:if(this.e.A>=e)return this.se=e,!0}this.se=e;return!1};f.F={};p=f.F;p.gA=function(e,f){this.ka(e);null!=this.e&&(this.e.Vi=f)};p.iA=function(e,f){this.ka(e);null!=this.e&&(this.e.cj=f)};p.fA=function(e,f){this.ka(e);null!=this.e&&(this.e.nl=f)};p.nA=function(e){this.ka(e);null!=this.e&&(this.Ke(this.e),this.e.Ad=!0,this.e.Bd=!0)};p.mA=function(e){this.e=
null;this.ka(e);null!=this.e&&(this.Ke(this.e),this.e.Ad=!0,this.e.Bd=!1)};p.Dy=function(){this.Ia.length=0};p.nt=function(e,f){this.ka(e);null!=this.e&&(0==f&&1==this.e.Ad?(this.e.Ad=!1,this.e.rl=1E3*this.b.xa.J):1==f&&0==this.e.Ad&&(this.e.Ad=!0,this.e.bj+=this.e.qh),this.e.qh=0)};p.qt=function(e){this.ka(e);null!=this.e&&this.Ke(this.e)};p.pA=function(e,f,l){for(var b=0;b<this.Ia.length;b++)if(this.Ia[b].mg==f){this.Ia.splice(b,1);break}b=1E3*this.b.xa.J;e=new this.dj(f,b,e+b,e,0);e.hg=!0;e.Bd=
l;this.Ke(e);this.Ia.push(e)};p.Kt=function(e,f){for(var l=0;l<this.Ia.length;l++)if(this.Ia[l].mg==e){this.Ia.splice(l,1);break}l=new this.dj(e,1E3*this.b.xa.J,0,0,0);l.rf=!0;l.Bd=f;this.Ke(l);this.Ia.push(l)};p.rA=function(e,f,l){for(var b=0;b<this.Ia.length;b++)if(this.Ia[b].mg==e){this.Ia.splice(b,1);break}e=new this.dj(e,1E3*this.b.xa.J-l,0,0,l);e.rf=!0;e.Bd=f;this.Ke(e);this.Ia.push(e)};p.qA=function(e,f,l){for(var b=0;b<this.Ia.length;b++)if(this.Ia[b].mg==f){this.Ia.splice(b,1);break}e=new this.dj(f,
1E3*this.b.xa.J,e,e,0);e.rf=!0;e.Bd=l;this.Ke(e);this.Ia.push(e)};p.Rz=function(e){for(var f=0;f<this.Ia.length;f++)if(this.Ia[f].mg==e){this.Ia.splice(f,1);break}};p.hy=function(e,f,l){this.ka(e);if(null!=this.e)switch(f){case 0:1==this.e.hg?this.e.ec+=l:this.e.Xd-=l;break;case 1:1==this.e.hg?this.e.ec-=l:(this.e.Xd+=l,this.Ua(this.e),0>this.e.A&&this.Ke(this.e))}};f.Z={};f=f.Z;f.$y=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.tf(this.e.A,!1)+":"+this.hd(this.e.A,
!1)+":"+this.Tb(this.e.A,!1)+":"+this.gd(this.e.A))};f.az=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.tf(this.e.A,!1)+":"+this.hd(this.e.A,!1)+":"+this.Tb(this.e.A,!0)+":"+this.gd(this.e.A))};f.Zy=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.tf(this.e.A,!1)+":"+this.hd(this.e.A,!0)+":"+this.Tb(this.e.A,!0)+":"+this.gd(this.e.A))};f.Yy=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.tf(this.e.A,
!0)+":"+this.hd(this.e.A,!0)+":"+this.Tb(this.e.A,!0)+":"+this.gd(this.e.A))};f.Xy=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.tf(this.e.A,!0)+":"+this.hd(this.e.A,!0)+":"+this.Tb(this.e.A,!0))};f.zz=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.hd(this.e.A,!0)+":"+this.Tb(this.e.A,!0)+":"+this.gd(this.e.A))};f.Xz=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.Tb(this.e.A,
!0)+":"+this.gd(this.e.A))};f.yz=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.hd(this.e.A,!0)+":"+this.Tb(this.e.A,!0))};f.Zz=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.Tb(this.e.A,!0))};f.lA=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.Tb(this.e.A,!1))};f.Az=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.gd(this.e.A))};f.us=function(e,
f){this.ka(f);if(null==this.e)return e.G(0);this.Ua(this.e);return e.G(this.e.A)};f.Qy=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.tf(this.e.A,!1)+":"+this.hd(this.e.A,!0)+":"+this.Tb(this.e.A,!0)+":"+this.gd(this.e.A))};f.Ry=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.tf(this.e.A,!0)+":"+this.hd(this.e.A,!0)+":"+this.Tb(this.e.A,!0))};f.Sy=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);
return e.k(this.hd(this.e.A,!0)+":"+this.Tb(this.e.A,!0)+":"+this.gd(this.e.A))};f.Vy=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.Tb(this.e.A,!0)+":"+this.gd(this.e.A))};f.Ty=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.hd(this.e.A,!0)+":"+this.Tb(this.e.A,!0))};f.Wy=function(e,f){this.ka(f);if(null==this.e)return e.k("");this.Ua(this.e);return e.k(this.Tb(this.e.A,!0))};f.Uy=function(e,f){this.ka(f);if(null==this.e)return e.k("");
this.Ua(this.e);return e.k(this.gd(this.e.A))};f.ty=function(e,f){e.k(l.fe(f,!0)+":"+l.uc(f,!0)+":"+l.Gd(f,!0)+":"+l.Ih(f))};f.vy=function(e,f){e.k(l.fe(f,!1)+":"+l.uc(f,!0)+":"+l.Gd(f,!0)+":"+l.Ih(f))};f.zy=function(e,f){e.k(l.fe(f,!1)+":"+l.uc(f,!1)+":"+l.Gd(f,!0)+":"+l.Ih(f))};f.xy=function(e,f){e.k(l.fe(f,!0)+":"+l.uc(f,!1)+":"+l.Gd(f,!1)+":"+l.Ih(f))};f.ry=function(e,f){e.k(l.fe(f,!0)+":"+l.uc(f,!0)+":"+l.Gd(f,!0))};f.uy=function(e,f){e.k(l.fe(f,!1)+":"+l.uc(f,!0)+":"+l.Gd(f,!0))};f.yy=function(e,
f){e.k(l.fe(f,!1)+":"+l.uc(f,!1)+":"+l.Gd(f,!0))};f.wy=function(e,f){e.k(l.fe(f,!1)+":"+l.uc(f,!1)+":"+l.Gd(f,!1))};f.Ay=function(e,f){e.k(l.uc(f,!0)+":"+l.Gd(f,!0)+":"+l.Ih(f))}})();function Z(f){this.b=f}
(function(){function f(){if(!cr_getC2Runtime().jl){var a=cr_getC2Runtime(),b=a&&a.Cb?a.Cb:0,c,d,k,g,e,f,h,n,l,m,r=document.getElementById("c2canvas");c=document.createElement("canvas");c.style.background="#000";d=c.getContext("2d");document.getElementById("c2canvasdiv").appendChild(c);var v=new Image;v.src="http://clay.io/images/full-logo-free-games.svg";var p=new Image;p.src="http://clay.io/images/docs/c2.svg";var q=a.iB,t=function(){function b(){var a=100*m;d.drawImage(p,650*l,h,p.width/p.height*
a,a)}function t(){var a=100*m,b=v.width/v.height*a,k=450*l-b,g=h;d.drawImage(v,k,g,b,a);var e=!1;c.onmousemove=function(d){var f=d.pageX||d.clientX;d=d.pageY||d.clientY;f-=c.offsetLeft;d-=c.offsetTop;f>=k&&f<=k+b&&d>=g&&d<=g+a?(e=!0,c.style.cursor="pointer"):e&&(e=!1,c.style.cursor="default")};c.onclick=function(){e&&window.open("http://clay.io/play")}}function F(){var a=q.width/q.height*u;d.drawImage(q,500*l-a/2,U,a,u)}q.onload=v.onload=p.onload=function(){};c.width=a.width;c.height=a.height;c.style.position=
"absolute";c.style.zIndex="5";c.style.left=r.offsetLeft+"px";c.style.top=r.offsetTop+"px";c.setAttribute("style",c.getAttribute("style")+" -ms-touch-action: none;");l=c.width/1E3;m=c.height/1E3;h=0;var u=200*m,U=h+=50*m;q&&q.complete?F():q&&(q.onload=function(){F()});h+=u;k=750*l;g=100*m;e=125*l;f=30*m;n=h+=f;var B=d.createLinearGradient(0,n,0,n+g);B.addColorStop(0,"#fff");B.addColorStop(1,"#ccc");d.fillStyle=B;d.strokeStyle="#777";d.lineWidth=4*l;h+=30*m;B=30*m;d.font=B+"px sans-serif, Verdana, Arial";
var C=500*l-d.measureText("Powered By").width/2;h+=g+B;d.fillText("Powered By",C,h);h+=10*m;v&&v.complete?t():v&&(v.onload=function(){t()});p&&p.complete?b():p&&(p.onload=function(){b()})},F=r.width,u=r.height,U=function(){if(F!=r.width||u!=r.height)t(),F=r.width,u=r.height;var f=a&&a.Cb?a.Cb:0;b<f&&(b+=.01);1<=f&&(b=1);d.fillRect(e,n,b*k,g);d.strokeRect(e,n,k,g);1>f?setTimeout(U,32):c.parentNode.removeChild(c)};U()}}var l=Z.prototype;l.ya=function(a){this.ba=a;this.b=a.b};var p=null,e=null,q,t,b,
a=!1,u=!1,d={},c,h="",m,g=0,C=0,N=0,r="",k=0,n=0,v=0,U,Y="",H,F,G=0;l.ya.prototype.U=function(){};l.la=function(a){this.type=a;this.b=a.b};var w=l.la.prototype;w.U=function(){0==this.q[3]&&f();p=this.b;e=this;var b=0==this.q[1],c=0==this.q[2]?!1:"c2canvasdiv";if(window.c2cocoonjs){var d=this,k=!1;"undefined"===typeof window.Clay&&(window.Clay={});q=window.Clay;q.UI={lB:function(){return G}};CocoonJS.App.onLoadInTheWebViewSucceed.addEventListener(function(){k||(k=!0,CocoonJS.App.forwardAsync("CocoonJS['App']['hide']();"),
CocoonJS.App.forwardAsync("load_clay( '"+d.q[0]+"', "+b+" );"))});CocoonJS.App.loadInTheWebView("webview/webview.html")}else"undefined"===typeof window.Clay&&(window.Clay={}),q=window.Clay,q.options=q.options||{},q.options.debug=b,q.options.DOMid=c,q.options.fail=function(){u=!0},q.gameKey=this.q[0],q.readyFunctions=q.readyFunctions||[],q.ready=function(a){q.readyFunctions.push(a)},q.documentReadyFunctions=q.documentReadyFunctions||[],q.documentReady=function(a){q.documentReadyFunctions.push(a)},
q.Stats=q.Stats||{},q.Stats.level=q.Stats.level||function(){},q.PROTOCOL="chrome-extension:"==document.location.protocol||"file:"==document.location.protocol?"https://":"ms-appx:"==document.location.protocol?"http://":document.location.protocol+"//",q.source||function(){var a=document.createElement("script");a.src=window.Clay.PROTOCOL+"clay.io/api/api.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}(),q.ready(function(){a=!0;t=new q.Payment})};w.Hc=function(){};
w.Xb=function(){};l.d={};w=l.d;w.SA=function(){var b=a;b&&(a=!1);return b};w.DA=function(){var a=u;a&&(u=!1);return a};w.Fl=function(){return!0};w.Zo=function(){return!0};w.Dl=function(){return!0};w.Mo=function(){return!0};w.$o=function(){return!0};w.Yo=function(){return!0};w.Xo=function(){return!0};w.bp=function(){return!0};w.Qo=function(){return!0};w.bu=function(){return!0};w.No=function(){return!0};w.xh=function(){return!0};w.El=function(){return!0};w.Uo=function(){return!0};w.To=function(){return!0};
w.Oo=function(){return!0};w.Vo=function(){return!0};w.Ro=function(){return!0};w.So=function(){return!0};w.Po=function(){return!0};w.Wo=function(){return!0};l.F={};w=l.F;window.clay_from_cocoon_ready=function(b,c,d,k,g){q.isReady=!0;q.Player={identifier:b,data:{Ux:c},Cw:d,fu:k,ew:function(){return g}};a=!0};window.clay_from_cocoon_user_ready=function(a,b,c,d,k){q.Player={identifier:a,data:{Ux:b},Cw:c,fu:d,ew:function(){return k}}};window.clay_from_cocoon_fail=function(){u=!0};window.clay_modal_count=
function(a){G=parseInt(a)};w.jB=function(){q.Stats.logStat({name:"Plays"})};w.kB=function(a,b){window.c2cocoonjs?CocoonJS.App.forwardAsync("Clay['Stats']['logStat']( { name: '"+a+"', quantity: "+b+" } );"):q.Stats.logStat({name:a,quantity:b})};w.gB=function(a){window.c2cocoonjs?CocoonJS.App.forwardAsync("Clay['Stats']['level']( { action: 'start', level: level } );"):q.Stats.level({action:"start",level:a})};w.hB=function(a){window.c2cocoonjs?CocoonJS.App.forwardAsync("Clay['Stats']['level']( { action: 'pass', level: level } );"):
q.Stats.level({action:"pass",level:a})};w.fB=function(a){window.c2cocoonjs?CocoonJS.App.forwardAsync("Clay['Stats']['level']( { action: 'fail', level: level } );"):q.Stats.level({action:"fail",level:a})};w.xw=function(a,b,c,d){if(window.c2cocoonjs){var k="";"string"==typeof c&&(k+="'");k+=c;"string"==typeof c&&(k+="'");CocoonJS.App.forwardAsync("leaderboards_post( '"+a+"', '"+b+"', "+k+", '"+d+"' );")}else a={name:a},a.score=b?b:0,0!=d&&(a.hideUI=!0),(new q.Leaderboard({id:c})).post(a,function(){p.trigger(Z.prototype.d.Fl,
e)})};window.clay_from_cocoon_leaderboards_post=function(){p.trigger(Z.prototype.d.Fl,e)};w.eB=function(a,b){if(window.c2cocoonjs){var c="";"string"==typeof a&&(c+="'");c+=a;"string"==typeof a&&(c+="'");CocoonJS.App.forwardAsync("leaderboards_post_encrypted( "+c+", '"+b+"' );")}else(new q.Leaderboard({id:a})).post(b,function(){p.trigger(Z.prototype.d.Fl,e)})};w.yw=function(a,b,c,d,k,g){if(window.c2cocoonjs){var e="";"string"==typeof a&&(e+="'");e+=a;"string"==typeof a&&(e+="'");CocoonJS.App.forwardAsync("leaderboards_show( "+
e+", "+b+", "+c+", "+d+", "+k+", "+g+" );")}else{e=0;g||(g=10);switch(b){case 0:e=0;break;case 1:e=2592E3;break;case 2:e=604800;break;case 3:e=86400;break;default:e=0}b={cumulative:1===c,best:2===c,self:1===k?!0:!1,friends:2===k?!0:!1,recent:e,sort:1===d?"asc":"desc",limit:g};(new q.Leaderboard({id:a})).show(b)}};w.cB=function(a,b,c,d,k,f){if(window.c2cocoonjs){var h="";"string"==typeof a&&(h+="'");h+=a;"string"==typeof a&&(h+="'");CocoonJS.App.forwardAsync("leaderboards_fetch( "+h+", "+b+", "+c+
", "+d+", "+k+", "+f+" );")}else{h=0;f||(f=10);switch(b){case 0:h=0;break;case 1:h=2592E3;break;case 2:h=604800;break;case 3:h=86400;break;default:h=0}b={cumulative:1===c,best:2===c,self:1===k?!0:!1,friends:2===k?!0:!1,recent:h,sort:1===d?"asc":"desc",limit:f,getRank:!0};(new q.Leaderboard({id:a})).fetch(b,function(b){m=b.data||[];b.rank.rank&&(C=b.rank.rank,N=b.rank.row.score,r=b.rank.row.name);g=b&&b.data?b.data.length-1:-1;0>g&&(g=0);H=a;p.trigger(Z.prototype.d.Zo,e)})}};window.clay_from_cocoon_leaderboards_fetch=
function(a,b,c,d,k,f){m=JSON.parse(b);g=c;C=d;N=k;r=f;H=a;p.trigger(Z.prototype.d.Zo,e)};w.dB=function(){window.c2cocoonjs?CocoonJS.App.forwardAsync("Clay['UI']['closeModal']( 'clay-leaderboard-wrapper' );"):q.UI.closeModal("clay-leaderboard-wrapper")};w.TA=function(a){window.c2cocoonjs?a?CocoonJS.App.forwardAsync("Clay['UI']['closeModal']( 'clay-"+a+"-wrapper' );"):CocoonJS.App.forwardAsync("Clay['UI']['closeModal']();"):a?q.UI.closeModal("clay-"+a+"-wrapper"):q.UI.closeModal()};w.xA=function(a,
b){if(window.c2cocoonjs){var c="";"string"==typeof a&&(c+="'");c+=a;"string"==typeof a&&(c+="'");CocoonJS.App.forwardAsync("achievements_award( "+c+", "+b+" );")}else c={id:a},0!=b&&(c.hideUI=!0),(new q.Achievement(c)).award(function(b){b.success&&(d[a]=b,p.trigger(Z.prototype.d.Dl,e))})};window.clay_from_cocoon_achievements_award=function(a,b){d[a]=JSON.parse(b);p.trigger(Z.prototype.d.Dl,e)};w.zA=function(){window.c2cocoonjs?CocoonJS.App.forwardAsync("achievements_fetch_all();"):q.Achievement.fetchAll({},
function(a){c=a.data;p.trigger(Z.prototype.d.Mo,e)})};window.clay_from_cocoon_achievements_fetch=function(a){c=JSON.parse(a);p.trigger(Z.prototype.d.Mo,e)};w.yA=function(a){window.c2cocoonjs?CocoonJS.App.forwardAsync("achievements_award_encrypted( '"+a+"' );"):(new q.Achievement({ek:a})).award(function(a){a.success&&p.trigger(Z.prototype.d.Dl,e)})};w.AA=function(){window.c2cocoonjs?CocoonJS.App.forwardAsync("achievements_show_all();"):q.Achievement.showAll()};w.AB=function(a,b){if(window.c2cocoonjs)CocoonJS.App.forwardAsync("screenshot_show( '"+
a+"', "+b+" );");else{var c=new q.Screenshot({prompt:!1});c.data=a;var d={};0!=b&&(d.hideUI=!0);c.save(d,function(a){a.success&&(h=a.aB,p.trigger(Z.prototype.d.$o,e))})}};window.clay_from_cocoon_screenshot_show=function(a){h=a;p.trigger(Z.prototype.d.$o,e)};w.DB=function(){window.c2cocoonjs?CocoonJS.App.forwardAsync("new Clay['Suggestions']();"):new q.Suggestions};w.CB=function(){window.c2cocoonjs?CocoonJS.App.forwardAsync("Clay['UI']['closeModal']( 'clay-suggestions-wrapper' );"):q.UI.closeModal("clay-suggestions-wrapper")};
w.xB=function(){window.c2cocoonjs?CocoonJS.App.forwardAsync("new Clay['Ratings']();"):new q.Ratings};w.wB=function(){window.c2cocoonjs?CocoonJS.App.forwardAsync("Clay['UI']['closeModal']( 'clay-ratings-wrapper' );"):q.UI.closeModal("clay-ratings-wrapper")};w.WA=function(a,b,c,d){window.c2cocoonjs?CocoonJS.App.forwardAsync("facebook_post( '"+a+"', '"+b+"', '"+c+"', "+d+" );"):(a={message:a},""!=b&&(a.link=b),""!=c&&(a.picture=c),0!=d&&(a.hideUI=!0),q.Facebook.post(a,function(a){a.success&&p.trigger(Z.prototype.d.Yo,
e)}))};window.clay_from_cocoon_facebook_post=function(){p.trigger(Z.prototype.d.Yo,e)};w.VA=function(a){if(window.c2cocoonjs)CocoonJS.App.forwardAsync("facebook_invite( '"+a+"' );");else{var b={};""!==a&&(b.caption=a);q.Facebook.invite(b,function(a){a.success&&p.trigger(Z.prototype.d.Xo,e)})}};window.clay_from_cocoon_facebook_invite=function(){p.trigger(Z.prototype.d.Xo,e)};w.IB=function(a,b){if(window.c2cocoonjs)CocoonJS.App.forwardAsync("twitter_post( '"+a.replace("'","'")+"', "+b+" );");else{var c=
{message:a};0!=b&&(c.hideUI=!0);q.Twitter.post(c,function(a){a.success&&p.trigger(Z.prototype.d.bp,e)})}};window.clay_from_cocoon_twitter_post=function(){p.trigger(Z.prototype.d.bp,e)};w.IA=function(a,b){if(window.c2cocoonjs)CocoonJS.App.forwardAsync("clay_post( '"+a.replace("'","'")+"', "+b+" );");else{var c={message:a};0!=b&&(c.hideUI=!0);q.Stream.post(c,function(a){a.success&&p.trigger(Z.prototype.d.Qo,e)})}};window.clay_from_cocoon_clay_post=function(){p.trigger(Z.prototype.d.Qo,e)};w.BB=function(a){q.Social.share({message:a},
function(a){a.success&&p.trigger(Z.prototype.d.bu,e)})};w.EA=function(a){window.c2cocoonjs?CocoonJS.App.forwardAsync("add_payment_item( "+a+" );"):t.addItem({id:a},function(a){a.success&&p.trigger(Z.prototype.d.No,e)})};window.clay_from_cocoon_add_payment_item=function(){p.trigger(Z.prototype.d.No,e)};w.MA=function(a){window.c2cocoonjs?CocoonJS.App.forwardAsync("ClayPay['removeItem']( { id: "+a+" } );"):t.removeItem({id:a})};w.FA=function(){window.c2cocoonjs?CocoonJS.App.forwardAsync("clay_checkout();"):
t.checkout(function(a){a.success?(k=a.ww,p.trigger(Z.prototype.d.xh,e)):a.ek?(k=a.ek,p.trigger(Z.prototype.d.xh,e)):p.trigger(Z.prototype.d.El,e)})};window.clay_from_cocoon_clay_checkout=function(a){k=a;p.trigger(Z.prototype.d.xh,e)};window.clay_from_cocoon_clay_checkout_fail=function(){p.trigger(Z.prototype.d.El,e)};w.HA=function(){window.c2cocoonjs?CocoonJS.App.forwardAsync("clay_fetch_items();"):q.Player.fetchItems(function(a){F=a;p.trigger(Z.prototype.d.Po,e)})};window.clay_from_cocoon_clay_fetch_items=
function(a){F=JSON.parse(a);p.trigger(Z.prototype.d.Po,e)};w.LA=function(){window.c2cocoonjs?CocoonJS.App.forwardAsync("clay_purchase_game();"):q.Player.purchaseGame(function(a){a.success?(k=a.ww,p.trigger(Z.prototype.d.xh,e)):a.ek?(k=a.ek,p.trigger(Z.prototype.d.xh,e)):p.trigger(Z.prototype.d.El,e)})};w.NA=function(a){window.c2cocoonjs?CocoonJS.App.forwardAsync("clay_remove_player_item( "+a+" );"):q.Player.removeItem({id:a},function(){p.trigger(Z.prototype.d.au,e)})};window.clay_from_cocoon_remove_player_item=
function(){p.trigger(Z.prototype.d.au,e)};w.OA=function(){window.c2cocoonjs?CocoonJS.App.forwardAsync("clay_rooms();"):(b||(b=new q.Rooms(function(a){n=a.count;v=a.id;p.trigger(Z.prototype.d.To,e)})),b.show(function(){p.trigger(Z.prototype.d.Uo,e)}))};window.clay_from_cocoon_clay_rooms_show=function(){F=JSON.parse(items);p.trigger(Z.prototype.d.Uo,e)};window.clay_from_cocoon_clay_rooms_full=function(){F=JSON.parse(items);p.trigger(Z.prototype.d.To,e)};w.PA=function(){window.c2cocoonjs?CocoonJS.App.forwardAsync("ClayRooms['leaveRoom']();"):
b.leaveRoom()};w.GA=function(a){window.c2cocoonjs?CocoonJS.App.forwardAsync("clay_fetch_data( '"+a.replace("'","'")+"' );"):q.Player.fetchUserData(a,function(b){U=b.data;Y=a;p.trigger(Z.prototype.d.Oo,e)})};window.clay_from_cocoon_clay_fetch_data=function(a,b){U=JSON.parse(a);Y=b;p.trigger(Z.prototype.d.Oo,e)};w.QA=function(a,b){window.c2cocoonjs?CocoonJS.App.forwardAsync("clay_save_data( '"+a.replace("'","'")+"', '"+b.replace("'","'")+"' );"):q.Player.saveUserData(a,b,function(a){a.success?p.trigger(Z.prototype.d.Vo,
e):q.log(a.error)})};window.clay_from_cocoon_clay_save_data=function(){p.trigger(Z.prototype.d.Vo,e)};w.JA=function(){window.c2cocoonjs?CocoonJS.App.forwardAsync("clay_prompt_login();"):q.Player.signup(function(a){a.success&&p.trigger(Z.prototype.d.Ro,e)})};window.clay_from_cocoon_clay_prompt_login=function(){p.trigger(Z.prototype.d.Ro,e)};w.KA=function(){window.c2cocoonjs?CocoonJS.App.forwardAsync("clay_prompt_logout();"):q.Player.logout({},function(a){a.success&&p.trigger(Z.prototype.d.So,e)})};
window.clay_from_cocoon_clay_prompt_logout=function(){p.trigger(Z.prototype.d.So,e);q.Player.clearance="site";q.Player.data={};q.Player.identifier=0};w.RA=function(a){window.c2cocoonjs?CocoonJS.App.forwardAsync("clay_set_game_key( '"+a+"' );"):q.Game.set({key:a,options:{debug:0==this.q[1]}},function(){p.trigger(Z.prototype.d.Wo,e)})};window.clay_from_cocoon_clay_set_game_key=function(){p.trigger(Z.prototype.d.Wo,e)};w.UA=function(a){window.c2cocoonjs?CocoonJS.App.openURL(a):window.open(a)};l.Z={};
l=l.Z;l.Qz=function(a){a.G(q&&q.isReady?1:0)};l.Yz=function(a){a.k(h)};l.cy=function(a,b){d[b]&&d[b].title?a.k(d[b].title):a.k("")};l.ay=function(a,b){d[b]&&d[b].description?a.k(d[b].description):a.k("")};l.by=function(a,b){d[b]&&d[b].icon?a.k(d[b].icon):a.k("")};l.Ky=function(a,b){c[b]&&c[b].title?a.k(c[b].title):a.k("")};l.Hy=function(a,b){c[b]&&c[b].description?a.k(c[b].description):a.k("")};l.Jy=function(a,b){c[b]&&c[b].icon?a.k(c[b].icon):a.k("")};l.Iy=function(a,b){c[b]?a.G(c[b].earned?1:0):
a.G(0)};l.Gy=function(a){a.G(0<c.length?c.length-1:-1)};l.vz=function(a){a.G(g)};l.pz=function(a,b){"object"!==typeof m||"undefined"===typeof m[b]?a.k(""):a.k(m[b].name)};l.uz=function(a,b){"object"!==typeof m||"undefined"===typeof m[b]?a.G(0):a.G(m[b].score)};l.wz=function(a,b){"object"!==typeof m||"undefined"===typeof m[b]?a.G(0):a.G(m[b].me?1:0)};l.qz=function(a){a.G(C)};l.rz=function(a){a.k(r)};l.sz=function(a){a.G(N)};l.Py=function(a){a.k(H)};l.Gz=function(a){a.G(k.length-1)};l.Hz=function(a,
b){"undefined"===typeof k[b]?a.G(0):a.G(k[b])};l.Fy=function(a){a.k(k)};l.Sz=function(a){a.G(n)};l.Tz=function(a){a.G(v)};l.Cy=function(a,b){var c;c="undefined"!==typeof b&&null!==b?U[b]:U;"undefined"===typeof c||null==c?a.k(""):"number"===typeof c&&parseInt(c)==c?a.G(c):"number"===typeof c?a.H(c):"string"===typeof c&&a.k(c)};l.Oy=function(a){a.k(Y)};l.Oz=function(a){a.k(q.Player&&q.Player.identifier?q.Player.identifier:"")};l.Pz=function(a){a.k(q.Player&&q.Player.data&&q.Player.data.username?q.Player.data.username:
"Anonymous")};l.xz=function(a){a.G(q.Player?q.Player.loggedIn?1:0:0)};l.ky=function(a){a.k(q.Player?q.Player.clearance:"none")};l.Ly=function(a){a.G(F?F.length-1:-1)};l.My=function(a,b){"undefined"===typeof F[b]?a.G(0):a.G(F[b].id)};l.Ny=function(a,b){"undefined"===typeof F[b]?a.G(0):a.G(F[b].quantity)};l.Ey=function(a){a.k(F)};l.bz=function(a){a.G(q.Player?q.Player.hasInstalled()?1:0:0)};l.Bz=function(a){a.G(q.UI&&q.UI.modalsOpen?parseInt(q.UI.modalsOpen()):0)}})();function vc(f){this.b=f}
(function(){function f(){}var l=vc.prototype;l.ya=function(e){this.ba=e;this.b=e.b};l.ya.prototype.U=function(){};l.la=function(e){this.type=e;this.b=e.b;this.bi=Array(256);this.Pi=Array(256);this.De=0};var p=l.la.prototype;p.U=function(){var e=this;this.b.wa||(jQuery(document).keydown(function(f){e.Mw(f)}),jQuery(document).keyup(function(f){e.Nw(f)}))};var e=[32,33,34,35,36,37,38,39,40,44];p.Mw=function(f){var l=!1;window!=window.top&&-1<e.indexOf(f.which)&&(f.preventDefault(),l=!0,f.stopPropagation());
if(this.bi[f.which])this.Pi[f.which]&&!l&&f.preventDefault();else{this.bi[f.which]=!0;this.De=f.which;this.b.Ya=!0;this.b.trigger(vc.prototype.d.Ls,this);var b=this.b.trigger(vc.prototype.d.Xs,this),a=this.b.trigger(vc.prototype.d.Ys,this);this.b.Ya=!1;if(b||a)this.Pi[f.which]=!0,l||f.preventDefault()}};p.Nw=function(e){this.bi[e.which]=!1;this.De=e.which;this.b.Ya=!0;this.b.trigger(vc.prototype.d.bo,this);var f=this.b.trigger(vc.prototype.d.fo,this),b=this.b.trigger(vc.prototype.d.eo,this);this.b.Ya=
!1;if(f||b||this.Pi[e.which])this.Pi[e.which]=!0,e.preventDefault()};p.Zf=function(){var e;for(e=0;256>e;++e)if(this.bi[e]){this.bi[e]=!1;this.De=e;this.b.trigger(vc.prototype.d.bo,this);var f=this.b.trigger(vc.prototype.d.fo,this),b=this.b.trigger(vc.prototype.d.eo,this);if(f||b)this.Pi[e]=!0}};p.Kb=function(){return{triggerKey:this.De}};p.$b=function(e){this.De=e.triggerKey};f.prototype.Xs=function(e){return e===this.De};f.prototype.Ls=function(){return!0};f.prototype.bo=function(){return!0};f.prototype.fo=
function(e){return e===this.De};f.prototype.Ys=function(e){return e===this.De};f.prototype.eo=function(e){return e===this.De};l.d=new f;l.F=new function(){};l.Z=new function(){}})();function wc(f){this.b=f}
(function(){function f(){}function l(){}var p=wc.prototype;p.ya=function(e){this.ba=e;this.b=e.b};p.ya.prototype.U=function(){};p.la=function(e){this.type=e;this.b=e.b;this.qg=Array(4);this.Rr=this.dl=this.fg=this.lf=this.kf=0;this.qm=!1};var e=p.la.prototype;e.U=function(){var e=this;if(!this.b.wa){jQuery(document).mousemove(function(a){e.cn(a)});jQuery(document).mousedown(function(a){e.bn(a)});jQuery(document).mouseup(function(a){e.dn(a)});jQuery(document).dblclick(function(a){e.Kw(a)});var b=function(a){e.Qw(a)};
document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var q={left:0,top:0};e.cn=function(e){var b=this.b.wa?q:jQuery(this.b.canvas).offset();this.kf=e.pageX-b.left;this.lf=e.pageY-b.top};e.Cq=function(){return 0<this.b.Yb?!0:0<=this.kf&&0<=this.lf&&this.kf<this.b.width&&this.lf<this.b.height};e.bn=function(e){this.Cq()&&(this.qg[e.which]=!0,this.b.Ya=!0,this.b.trigger(wc.prototype.d.Ks,this),this.fg=e.which-1,this.dl=0,this.b.trigger(wc.prototype.d.co,this),
this.b.trigger(wc.prototype.d.no,this),this.b.Ya=!1)};e.dn=function(e){this.qg[e.which]&&(this.b.Vj&&!this.b.pe&&e.preventDefault(),this.b.Vj=!0,this.qg[e.which]=!1,this.b.Ya=!0,this.fg=e.which-1,this.b.trigger(wc.prototype.d.po,this),this.b.Ya=!1)};e.Kw=function(e){this.Cq()&&(e.preventDefault(),this.b.Ya=!0,this.fg=e.which-1,this.dl=1,this.b.trigger(wc.prototype.d.co,this),this.b.trigger(wc.prototype.d.no,this),this.b.Ya=!1)};e.Qw=function(e){this.Rr=0>(e.wheelDelta?e.wheelDelta:e.detail?-e.detail:
0)?0:1;this.qm=!1;this.b.Ya=!0;this.b.trigger(wc.prototype.d.mt,this);this.b.Ya=!1;this.qm&&ob(e)&&e.preventDefault()};e.Zf=function(){var e,b;e=0;for(b=this.qg.length;e<b;++e)this.qg[e]&&(this.qg[e]=!1,this.fg=e-1,this.b.trigger(wc.prototype.d.po,this))};f.prototype.co=function(e,b){return e===this.fg&&b===this.dl};f.prototype.Ks=function(){return!0};f.prototype.po=function(e){return e===this.fg};f.prototype.no=function(e,b,a){return e!==this.fg||b!==this.dl?!1:this.b.Li(a,this.kf,this.lf)};f.prototype.mt=
function(e){this.qm=!0;return e===this.Rr};p.d=new f;p.F=new function(){};l.prototype.fj=function(e,b){var a,f,d,c,h;ia(b)?(a=this.b.je(0),f=a.scale,d=a.Sb,c=a.mc,h=a.m,a.scale=1,a.Sb=1,a.mc=1,a.m=0,e.H(a.hb(this.kf,this.lf,!0)),a.scale=f,a.Sb=d,a.mc=c,a.m=h):(a=ja(b)?this.b.je(b):this.b.Kh(b))?e.H(a.hb(this.kf,this.lf,!0)):e.H(0)};l.prototype.gj=function(e,b){var a,f,d,c,h;ia(b)?(a=this.b.je(0),f=a.scale,d=a.Sb,c=a.nc,h=a.m,a.scale=1,a.Sb=1,a.nc=1,a.m=0,e.H(a.hb(this.kf,this.lf,!1)),a.scale=f,a.Sb=
d,a.nc=c,a.m=h):(a=ja(b)?this.b.je(b):this.b.Kh(b))?e.H(a.hb(this.kf,this.lf,!1)):e.H(0)};p.Z=new l})();function W(f){this.b=f}
(function(){function f(){if(0===this.Ql.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.fh?b.drawImage(this.za,this.Vg,this.Wg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.za,0,0,this.width,this.height);this.Ql=a.toDataURL("image/png")}return this.Ql}function l(){}function p(a){a[0]=0;a[1]=0;a[2]=0;m.push(a)}function e(a,b){return a<b?""+a+","+b:""+b+","+a}function q(a,b,c,d){b=b.uid;c=c.uid;var g=e(b,c);if(a.hasOwnProperty(g))a[g][2]=
d;else{var f=m.length?m.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[g]=f}}function t(a,b,c){b=e(b.uid,c.uid);a.hasOwnProperty(b)&&(p(a[b]),delete a[b])}function b(a,b,c){b=e(b.uid,c.uid);if(a.hasOwnProperty(b))return g=a[b][2],!0;g=-2;return!1}function a(){}var u=W.prototype;u.ya=function(a){this.ba=a;this.b=a.b};var d=u.ya.prototype;d.U=function(){if(!this.O){var a,b,c,d,e,g,h,l,m;this.jd=[];this.Oh=!1;a=0;for(b=this.tc.length;a<b;a++){e=this.tc[a];h={};h.name=e[0];h.speed=e[1];h.loop=e[2];h.wn=e[3];h.xn=
e[4];h.dr=e[5];h.ca=e[6];h.frames=[];c=0;for(d=e[7].length;c<d;c++)g=e[7][c],l={},l.Jn=g[0],l.Nr=g[1],l.Vg=g[2],l.Wg=g[3],l.width=g[4],l.height=g[5],l.duration=g[6],l.jc=g[7],l.kc=g[8],l.vm=g[9],l.Dk=g[10],l.er=g[11],l.fh=0!==l.width,l.Ql="",l.ZA=f,m={left:0,top:0,right:1,bottom:1},l.En=m,l.Ta=null,(m=this.b.vv(g[0]))?l.za=m:(l.za=new Image,l.za.iu=g[0],l.za.hu=g[1],l.za.Zt=null,this.b.hs(l.za,g[0])),h.frames.push(l),this.jd.push(l);this.tc[a]=h}}};d.$r=function(){var a,b,c;a=0;for(b=this.g.length;a<
b;a++)c=this.g[a],c.Aj=c.wb.Ta};d.wk=function(){if(!this.O){var a,b,c;a=0;for(b=this.jd.length;a<b;++a)c=this.jd[a],c.za.Zt=null,c.Ta=null;this.Oh=!1;this.$r()}};d.en=function(){if(!this.O&&this.g.length){var a,b,c;a=0;for(b=this.jd.length;a<b;++a)c=this.jd[a],c.Ta=this.b.D.mk(c.za,this.b.Ka,c.er);this.$r()}};d.Bw=function(){if(!this.O&&!this.Oh&&this.b.D){var a,b,c;a=0;for(b=this.jd.length;a<b;++a)c=this.jd[a],c.Ta=this.b.D.mk(c.za,this.b.Ka,c.er);this.Oh=!0}};d.Sn=function(){if(!this.O&&!this.g.length&&
this.Oh){var a,b,c;a=0;for(b=this.jd.length;a<b;++a)c=this.jd[a],this.b.D.deleteTexture(c.Ta),c.Ta=null;this.Oh=!1}};var c=[];d.pn=function(a){var b,d,e;D(c);b=0;for(d=this.jd.length;b<d;++b)e=this.jd[b].za,-1===c.indexOf(e)&&(a.drawImage(e,0,0),c.push(e))};u.la=function(a){this.type=a;this.b=a.b;a=this.type.tc[0].frames[0].Dk;this.Pc?this.qa.Fi(a):this.qa=new fb(a)};var h=u.la.prototype;h.U=function(){this.visible=0===this.q[0];this.wm=this.Hm=!1;this.Ed=0!==this.q[3];this.Ha=this.up(this.q[1])||
this.type.tc[0];this.I=this.q[2];0>this.I&&(this.I=0);this.I>=this.Ha.frames.length&&(this.I=this.Ha.frames.length-1);var a=this.Ha.frames[this.I];this.qa.Fi(a.Dk);this.jc=a.jc;this.kc=a.kc;this.ug=this.Ha.speed;this.We=this.Ha.xn;1===this.type.tc.length&&1===this.type.tc[0].frames.length||0===this.ug||(this.b.Ni(this),this.Hm=!0);this.Pc?this.Cd.reset():this.Cd=new db;this.ie=this.Cd.J;this.Oe=!0;this.Yd=0;this.uf=!0;this.Jl=this.Do="";this.cu=0;this.tj=-1;this.type.Bw();var b,c,d,e,g,f,h,a=0;for(b=
this.type.tc.length;a<b;a++)for(e=this.type.tc[a],c=0,d=e.frames.length;c<d;c++)g=e.frames[c],0===g.width&&(g.width=g.za.width,g.height=g.za.height),g.fh&&(h=g.za,f=g.En,f.left=g.Vg/h.width,f.top=g.Wg/h.height,f.right=(g.Vg+g.width)/h.width,f.bottom=(g.Wg+g.height)/h.height,0===g.Vg&&0===g.Wg&&g.width===h.width&&g.height===h.height&&(g.fh=!1));this.wb=this.Ha.frames[this.I];this.Aj=this.wb.Ta};h.Kb=function(){var a={a:this.Ha.ca,f:this.I,cas:this.ug,fs:this.ie,ar:this.Yd,at:this.Cd.J,rt:this.We};
this.Oe||(a.ap=this.Oe);this.uf||(a.af=this.uf);return a};h.$b=function(a){var b=this.zv(a.a);b&&(this.Ha=b);this.I=a.f;0>this.I&&(this.I=0);this.I>=this.Ha.frames.length&&(this.I=this.Ha.frames.length-1);this.ug=a.cas;this.ie=a.fs;this.Yd=a.ar;this.Cd.reset();this.Cd.J=a.at;this.Oe=a.hasOwnProperty("ap")?a.ap:!0;this.uf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.We=a.rt:this.We=this.Ha.xn;this.wb=this.Ha.frames[this.I];this.Aj=this.wb.Ta;this.qa.Fi(this.wb.Dk);this.jc=this.wb.jc;
this.kc=this.wb.kc};h.yl=function(a){this.I=a?0:this.Ha.frames.length-1;this.Oe=!1;this.Do=this.Ha.name;this.wm=!0;this.b.trigger(W.prototype.d.Js,this);this.b.trigger(W.prototype.d.Is,this);this.wm=!1;this.Yd=0};h.uc=function(){return this.Cd.J};h.Lb=function(){this.Cd.add(this.b.hm(this));this.Jl.length&&this.nu();0<=this.tj&&this.hp();var a=this.Cd.J,b=this.Ha,c=b.frames[this.I],d=c.duration/this.ug;this.Oe&&a>=this.ie+d&&(this.uf?this.I++:this.I--,this.ie+=d,this.I>=b.frames.length&&(b.dr?(this.uf=
!1,this.I=b.frames.length-2):b.loop?this.I=this.We:(this.Yd++,this.Yd>=b.wn?this.yl(!1):this.I=this.We)),0>this.I&&(b.dr?(this.I=1,this.uf=!0,b.loop||(this.Yd++,this.Yd>=b.wn&&this.yl(!0))):b.loop?this.I=this.We:(this.Yd++,this.Yd>=b.wn?this.yl(!0):this.I=this.We)),0>this.I?this.I=0:this.I>=b.frames.length&&(this.I=b.frames.length-1),a>this.ie+b.frames[this.I].duration/this.ug&&(this.ie=a),a=b.frames[this.I],this.lg(c,a),this.b.na=!0)};h.up=function(a){var b,c,d;b=0;for(c=this.type.tc.length;b<c;b++)if(d=
this.type.tc[b],nb(d.name,a))return d;return null};h.zv=function(a){var b,c,d;b=0;for(c=this.type.tc.length;b<c;b++)if(d=this.type.tc[b],d.ca===a)return d;return null};h.nu=function(){var a=this.Ha.frames[this.I],b=this.up(this.Jl);this.Jl="";!b||nb(b.name,this.Ha.name)&&this.Oe||(this.Ha=b,this.ug=b.speed,this.We=b.xn,0>this.I&&(this.I=0),this.I>=this.Ha.frames.length&&(this.I=this.Ha.frames.length-1),1===this.cu&&(this.I=0),this.Oe=!0,this.ie=this.Cd.J,this.uf=!0,this.lg(a,this.Ha.frames[this.I]),
this.b.na=!0)};h.hp=function(){var a=this.Ha.frames[this.I],b=this.I;this.I=sa(this.tj);0>this.I&&(this.I=0);this.I>=this.Ha.frames.length&&(this.I=this.Ha.frames.length-1);b!==this.I&&(this.lg(a,this.Ha.frames[this.I]),this.ie=this.Cd.J,this.b.na=!0);this.tj=-1};h.lg=function(a,b){var c=a.width,d=a.height,e=b.width,g=b.height;c!=e&&(this.width*=e/c);d!=g&&(this.height*=g/d);this.jc=b.jc;this.kc=b.kc;this.qa.Fi(b.Dk);this.La();this.wb=b;this.Aj=b.Ta;c=0;for(d=this.S.length;c<d;c++)e=this.S[c],e.Rq&&
e.Rq(a,b);this.b.trigger(W.prototype.d.lg,this)};h.Hc=function(a){a.globalAlpha=this.opacity;var b=this.wb,c=b.fh,d=b.za,e=this.x,g=this.y,f=this.width,h=this.height;if(0===this.m&&0<=f&&0<=h)e-=this.jc*f,g-=this.kc*h,this.b.sd&&(e=Math.round(e),g=Math.round(g)),c?a.drawImage(d,b.Vg,b.Wg,b.width,b.height,e,g,f,h):a.drawImage(d,e,g,f,h);else{this.b.sd&&(e=Math.round(e),g=Math.round(g));a.save();var l=0<f?1:-1,m=0<h?1:-1;a.translate(e,g);1===l&&1===m||a.scale(l,m);a.rotate(this.m*l*m);e=0-this.jc*oa(f);
g=0-this.kc*oa(h);c?a.drawImage(d,b.Vg,b.Wg,b.width,b.height,e,g,oa(f),oa(h)):a.drawImage(d,e,g,oa(f),oa(h));a.restore()}};h.wg=function(a){this.Xb(a)};h.Xb=function(a){a.Cc(this.Aj);a.ag(this.opacity);var b=this.wb,c=this.Ub;if(this.b.sd){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.fh?a.we(c.Ma+d,c.Na+e,c.rb+d,c.sb+e,c.fb+d,c.gb+e,c.cb+d,c.eb+e,b.En):a.yi(c.Ma+d,c.Na+e,c.rb+d,c.sb+e,c.fb+d,c.gb+e,c.cb+d,c.eb+e)}else b.fh?a.we(c.Ma,c.Na,c.rb,c.sb,c.fb,c.gb,c.cb,c.eb,b.En):a.yi(c.Ma,
c.Na,c.rb,c.sb,c.fb,c.gb,c.cb,c.eb)};h.Fv=function(a){var b=this.wb,c,d;c=0;for(d=b.vm.length;c<d;c++)if(nb(a,b.vm[c][0]))return c;return-1};h.Jh=function(a,b){var c=this.wb,d=c.vm,e;ka(a)?e=this.Fv(a):e=a-1;e=sa(e);if(0>e||e>=d.length)return b?this.x:this.y;var g=(d[e][1]-c.jc)*this.width,d=d[e][2],d=(d-c.kc)*this.height,c=Math.cos(this.m);e=Math.sin(this.m);var f=g*c-d*e,d=d*c+g*e,g=f+this.x,d=d+this.y;return b?g:d};var m=[],g=-2,C=[];l.prototype.Os=function(a){if(!a)return!1;var c=this.b,d=c.gm(),
e=d.type,f=null;d.N.collmemory?f=d.N.collmemory:(f={},d.N.collmemory=f);d.N.spriteCreatedDestroyCallback||(d.N.spriteCreatedDestroyCallback=!0,c.Ao(function(a){var b=d.N.collmemory;a=a.uid;var c,e;for(c in b)b.hasOwnProperty(c)&&(e=b[c],e[0]===a||e[1]===a)&&(p(b[c]),delete b[c])}));var h=e.aa(),l=a.aa(),h=h.Kc(),m,r,u,N,S,I,E,O=this.b.Vd,V=O-1,z=c.xb().Wb;for(r=0;r<h.length;r++){u=h[r];l.pa?(u.Fa(),this.b.Bv(u.j,a,u.Va,C),m=C,this.b.Rt(u,a,m)):m=l.Kc();for(N=0;N<m.length;N++)S=m[N],c.Jx(u,S)||c.du(u,
S)?(I=b(f,u,S),I=!I||g<V,q(f,u,S,O),I&&(c.Ik(z.Ea),I=e.aa(),E=a.aa(),I.pa=!1,E.pa=!1,e===a?(I.g.length=2,I.g[0]=u,I.g[1]=S,e.kd()):(I.g.length=1,E.g.length=1,I.g[0]=u,E.g[0]=S,e.kd(),a.kd()),z.ox(),c.$f(z.Ea))):t(f,u,S);D(C)}return!1};var N=new ca,r=!1;new wa(0,0,0,0);d.finish=function(a){if(r){if(a){var b=this.b.xb().Wb.$c;a=null.aa();var c=N.qf(),d,e;if(a.pa){a.pa=!1;D(a.g);d=0;for(e=c.length;d<e;++d)a.g[d]=c[d];if(b)for(D(a.da),d=0,e=null.g.length;d<e;++d)c=null.g[d],N.contains(c)||a.da.push(c)}else if(b)for(b=
a.g.length,d=0,e=c.length;d<e;++d)a.g[b+d]=c[d],Ga(a.da,c[d]);else Ca(a.g,c);null.kd()}N.clear();r=!1}};l.prototype.Is=function(a){return nb(this.Do,a)};l.prototype.Js=function(){return!0};l.prototype.lg=function(){return!0};u.d=new l;a.prototype.Ft=function(a,b,c){if(a&&b&&(b=this.b.Nl(a,b,this.Jh(c,!0),this.Jh(c,!1)))){"undefined"!==typeof b.m&&(b.m=this.m,b.La());this.b.Nc++;var d,e,g;this.b.trigger(Object.getPrototypeOf(a.ba).d.kg,b);if(b.Qb)for(d=0,e=b.siblings.length;d<e;d++)g=b.siblings[d],
this.b.trigger(Object.getPrototypeOf(g.type.ba).d.kg,g);this.b.Nc--;d=this.b.Cv();c=!1;if(ia(d.N.Spawn_LastExec)||d.N.Spawn_LastExec<this.b.Ff)c=!0,d.N.Spawn_LastExec=this.b.Ff;if(a!=this.type&&(a=a.aa(),a.pa=!1,c?(D(a.g),a.g[0]=b):a.g.push(b),b.Qb))for(d=0,e=b.siblings.length;d<e;d++)g=b.siblings[d],a=g.type.aa(),a.pa=!1,c?(D(a.g),a.g[0]=g):a.g.push(g)}};a.prototype.It=function(){this.Oe=!1};a.prototype.ut=function(a){this.tj=a;this.Hm||(this.b.Ni(this),this.Hm=!0);this.wm||this.hp()};a.prototype.to=
function(a){var b=this.wb,c=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width=c,this.height=a,this.La()};a.prototype.wt=function(a){this.Ed!==(0!==a)&&((this.Ed=0!==a)?this.La():(this.Uc.right>=this.Uc.left&&this.type.yh.update(this,this.Uc,null),this.Uc.set(0,0,-1,-1)))};u.F=new a;u.Z=new function(){}})();function xc(f){this.b=f}
(function(){function f(a,b){return a.length?a.pop():new b}function l(b,c,d){if(d){var e;d=0;for(e=c.length;d<e;d++)b.length<a&&b.push(c[d]);D(c)}else for(e in c)Object.prototype.hasOwnProperty.call(c,e)&&(b.length<a&&b.push(c[e]),delete c[e])}function p(a,b,c){var d=a.Zb;c=c.replace(/\s\s*$/,"");b>=d.length&&d.push(f(u,Object));b=d[b];b.text=c;b.width=a.Vm(c);a.Be=pa(a.Be,b.width)}function e(){}function q(){}var t=xc.prototype;t.U=function(){};t.ya=function(a){this.ba=a;this.b=a.b};var b=t.ya.prototype;
b.U=function(){this.O||(this.za=new Image,this.b.hs(this.za,this.Jn),this.Ta=null)};b.wk=function(){this.O||(this.Ta=null)};b.en=function(){if(!this.O&&this.g.length){this.Ta||(this.Ta=this.b.D.mk(this.za,this.b.Ka,this.Kn));var a,b;a=0;for(b=this.g.length;a<b;a++)this.g[a].Ta=this.Ta}};b.Sn=function(){this.O||this.g.length||!this.Ta||(this.b.D.deleteTexture(this.Ta),this.Ta=null)};b.pn=function(a){a.drawImage(this.za,0,0)};t.la=function(a){this.type=a;this.b=a.b};b=t.la.prototype;b.Yf=function(){l(u,
this.Zb,!0);l(d,this.vj,!1);l(c,this.wj,!1);Za(this.Te)};b.U=function(){this.za=this.type.za;this.uj=this.q[0];this.Se=this.q[1];this.characterSet=this.q[2];this.text=this.q[3];this.Dd=this.q[4];this.visible=0===this.q[5];this.ke=this.q[6]/2;this.Ee=this.q[7]/2;this.Ui=0===this.q[9];this.tg=this.q[10];this.lineHeight=this.q[11];this.Ud=this.Be=0;this.Pc?(D(this.Zb),Za(this.vj),Za(this.wj),Za(this.Te)):(this.Zb=[],this.vj={},this.wj={},this.Te={});this.Dc=!0;this.Rf=this.width;this.b.D&&(this.type.Ta||
(this.type.Ta=this.b.D.mk(this.type.za,this.b.Ka,this.type.Kn)),this.Ta=this.type.Ta);this.Gt()};b.Kb=function(){var a={t:this.text,csc:this.Dd,csp:this.tg,lh:this.lineHeight,tw:this.Be,th:this.Ud,lrt:this.Qf,ha:this.ke,va:this.Ee,cw:{}},b;for(b in this.Te)a.cw[b]=this.Te[b];return a};b.$b=function(a){this.text=a.t;this.Dd=a.csc;this.tg=a.csp;this.lineHeight=a.lh;this.Be=a.tw;this.Ud=a.th;this.Qf=a.lrt;a.hasOwnProperty("ha")&&(this.ke=a.ha);a.hasOwnProperty("va")&&(this.Ee=a.va);for(var b in a.cw)this.Te[b]=
a.cw[b];this.Dc=!0;this.Rf=this.width};var a=1E3,u=[],d=[],c=[];b.Gt=function(){for(var a=this.za,b=a.width,e=a.height,a=this.uj,h=this.Se,k=a/b,n=h/e,l=this.characterSet,b=Math.floor(b/a),e=Math.floor(e/h),m=0;m<l.length&&!(m>=b*e);m++){var p=m%b,q=Math.floor(m/b),u=l.charAt(m);if(this.b.D){var t=this.wj,w=p*k,A=q*n,p=(p+1)*k,q=(q+1)*n;void 0===t[u]&&(t[u]=f(c,wa));t[u].left=w;t[u].top=A;t[u].right=p;t[u].bottom=q}else t=this.vj,p=p*a,q=q*h,w=a,A=h,void 0===t[u]&&(t[u]=f(d,Object)),t[u].x=p,t[u].y=
q,t[u].gs=w,t[u].Bp=A}};var h=[];t.tl=function(a){D(h);for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(h.push(b),b=""),h.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));h.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&h.push(b)};t.ul=function(a){var b=a.text,c=a.Zb;if(b&&b.length){var d=a.width;if(2>=d)l(u,c,!0);else{var e=a.Dd,h=a.tg;if(b.length*(a.uj*e+h)-h<=d&&-1===b.indexOf("\n")&&(h=a.Vm(b),
h<=d)){l(u,c,!0);c.push(f(u,Object));c[0].text=b;c[0].width=h;a.Be=h;a.Ud=a.Se*e+a.lineHeight;return}this.wl(a);a.Ud=c.length*(a.Se*e+a.lineHeight)}}else l(u,c,!0)};t.wl=function(b){var c=b.Ui,d=b.text,e=b.Zb,f=b.width;c&&(this.tl(d),d=h);var l="",m,q,t,H=0,F=!1;for(t=0;t<d.length;t++)"\n"===d[t]?(!0===F?F=!1:(p(b,H,l),H++),l=""):(F=!1,m=l,l+=d[t],q=b.Vm(l.replace(/\s\s*$/,"")),q>f&&(""===m?(p(b,H,l),l="",F=!0):(p(b,H,m),l=d[t]),H++,c||" "!==l||(l="")));l.replace(/\s\s*$/,"").length&&(p(b,H,l),H++);
for(t=H;t<e.length;t++)u.length<a&&u.push(e[t]);e.length=H};b.Vm=function(a){for(var b=this.tg,c=a.length,d=0,e=0;e<c;e++)d+=this.fm(a.charAt(e))*this.Dd+b;return d-(0<d?b:0)};b.fm=function(a){var b=this.Te;return void 0!==b[a]?b[a]:this.uj};b.kr=function(){if(this.Dc||this.width!==this.Rf)this.Ud=this.Be=0,this.type.ba.ul(this),this.Dc=!1,this.Rf=this.width};b.Hc=function(a){var b=this.za;if(""!==this.text&&null!=b&&(this.kr(),!(this.height<this.Se*this.Dd+this.lineHeight))){a.globalAlpha=this.opacity;
var b=this.x,c=this.y;this.b.sd&&(b=Math.round(b),c=Math.round(c));var d=this.j.ta,e=this.j.ua,f=this.j.Ba,h=this.j.Aa;a.save();a.translate(b,c);a.rotate(this.m);for(var l=this.m,m=this.ke,p=this.Dd,q=this.Se*p,t=this.lineHeight,u=this.tg,A=this.Zb,B,S=-(this.jc*this.width),I=-(this.kc*this.height),I=I+this.Ee*pa(0,this.height-this.Ud),E,O,V,z=0;z<A.length;z++){var y=A[z].text;B=m*pa(0,this.width-A[z].width);E=S+B;I+=t;if(0===l&&c+I+q<e)I+=q;else{for(var x=0;x<y.length;x++){O=y.charAt(x);B=this.fm(O);
var P=this.vj[O];if(0===l&&b+E+B*p+u<d)E+=B*p+u;else{if(E+B*p>this.width+1E-5)break;void 0!==P&&(O=E,V=I,0===l&&1===p&&(O=Math.round(O),V=Math.round(V)),a.drawImage(this.za,P.x,P.y,P.gs,P.Bp,O,V,P.gs*p,P.Bp*p));E+=B*p+u;if(0===l&&b+E>f)break}}I+=q;if(0===l&&(I+q+t>this.height||c+I>h))break}}a.restore()}};var m=new xa;b.Xb=function(a){a.Cc(this.Ta);a.ag(this.opacity);if(this.text&&(this.kr(),!(this.height<this.Se*this.Dd+this.lineHeight))){this.Fa();var b=this.Ub,c=0,d=0;this.b.sd&&(c=Math.round(this.x)-
this.x,d=Math.round(this.y)-this.y);var e=this.j.ta,f=this.j.ua,h=this.j.Ba,l=this.j.Aa,p=this.m,q=this.ke,t=this.Ee,u=this.Dd,w=this.Se*u,A=this.lineHeight,B=this.tg,S=this.Zb,I=this.Ud,E,O,V;0!==p&&(O=Math.cos(p),V=Math.sin(p));for(var c=b.Ma+c,b=b.Na+d,z,t=t*pa(0,this.height-I),y,x,I=0;I<S.length;I++)if(d=S[I].text,z=E=q*pa(0,this.width-S[I].width),t+=A,0===p&&b+t+w<f)t+=w;else{for(var P=0;P<d.length;P++){var K=d.charAt(P);E=this.fm(K);K=this.wj[K];if(0===p&&c+z+E*u+B<e)z+=E*u+B;else{if(z+E*u>
this.width+1E-5)break;if(void 0!==K){var L=this.uj*u,J=this.Se*u;y=z;x=t;0===p&&1===u&&(y=Math.round(y),x=Math.round(x));m.Ma=y;m.Na=x;m.rb=y+L;m.sb=x;m.cb=y;m.eb=x+J;m.fb=y+L;m.gb=x+J;0!==p&&(y=m,x=O,L=V,J=void 0,J=y.Ma*x-y.Na*L,y.Na=y.Na*x+y.Ma*L,y.Ma=J,J=y.rb*x-y.sb*L,y.sb=y.sb*x+y.rb*L,y.rb=J,J=y.cb*x-y.eb*L,y.eb=y.eb*x+y.cb*L,y.cb=J,J=y.fb*x-y.gb*L,y.gb=y.gb*x+y.fb*L,y.fb=J);m.offset(c,b);a.we(m.Ma,m.Na,m.rb,m.sb,m.fb,m.gb,m.cb,m.eb,K)}z+=E*u+B;if(0===p&&c+z>h)break}}t+=w;if(0===p&&(t+w+A>this.height||
b+t>l))break}}};t.d=new function(){};e.prototype.rh=function(a){ja(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Dc=!0,this.b.na=!0)};e.prototype.to=function(a){a!==this.Dd&&(this.Dd=a,this.Dc=!0,this.b.na=!0)};b.uc=function(a,b){var c=parseInt(b,10);this.Te[a]!==c&&(this.Te[a]=c,this.Dc=!0,this.b.na=!0)};t.F=new e;q.prototype.Text=function(a){a.k(this.text)};t.Z=new q})();function yc(f){this.b=f}
(function(){function f(){return u.length?u.pop():{}}function l(a){var b,e;b=0;for(e=a.length;b<e;b++)u.push(a[b]);D(a)}function p(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function e(){}function q(){}var t=yc.prototype;t.U=function(){t.F.Ct=function(a){this.width!==a&&(this.width=a,this.Dc=!0,this.La())}};t.ya=function(a){this.ba=a;this.b=a.b};var b=t.ya.prototype;b.U=function(){};b.wk=function(){if(!this.O){var a,b,e;a=0;for(b=this.g.length;a<b;a++)e=this.g[a],e.Od=
null,e.Wf=null,e.zc=null}};t.la=function(a){this.type=a;this.b=a.b;this.Pc?D(this.Zb):this.Zb=[];this.Dc=!0};b=t.la.prototype;b.U=function(){this.text=this.q[0];this.visible=0===this.q[1];this.font=this.q[2];this.color=this.q[3];this.ke=this.q[4];this.Ee=this.q[5];this.Ui=0===this.q[7];this.Rf=this.hk=this.width;this.gk=this.height;this.Om=this.q[8];this.Nj=this.yg="";this.Ud=this.Be=this.wi=0;this.Tw();this.zc=this.Wf=this.Od=null;this.Fq=!1;this.Qf=this.b.Vd;this.Pc?this.Zg.set(0,0,1,1):this.Zg=
new wa(0,0,1,1);this.b.D&&this.b.Ni(this)};b.Tw=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.wi=parseInt(a[b].substr(0,a[b].length-2));this.sn=Math.ceil(this.wi/72*96)+4;0<b&&(this.Nj=a[b-1]);this.yg=a[b+1];for(b+=2;b<a.length;b++)this.yg+=" "+a[b];break}};b.Kb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.ke,va:this.Ee,wr:this.Ui,lho:this.Om,fn:this.yg,fs:this.Nj,ps:this.wi,pxh:this.sn,tw:this.Be,th:this.Ud,lrt:this.Qf}};
b.$b=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.ke=a.ha;this.Ee=a.va;this.Ui=a.wr;this.Om=a.lho;this.yg=a.fn;this.Nj=a.fs;this.wi=a.ps;this.sn=a.pxh;this.Be=a.tw;this.Ud=a.th;this.Qf=a.lrt;this.Dc=!0;this.Rf=this.hk=this.width;this.gk=this.height};b.Lb=function(){if(this.b.D&&this.zc&&300<=this.b.Vd-this.Qf){var a=this.j;this.Fa();var b=this.Va;if(b.right<a.ta||b.bottom<a.ua||b.left>a.Ba||b.top>a.Aa)this.b.D.deleteTexture(this.zc),this.Od=this.Wf=this.zc=null}};b.Yf=function(){this.Od=
this.Wf=null;this.b.D&&this.zc&&this.b.D.deleteTexture(this.zc);this.zc=null};b.uc=function(){this.font=this.Nj+" "+this.wi.toString()+"pt "+this.yg;this.Dc=!0;this.b.na=!0};b.Hc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var e=1;b&&(e=Math.abs(this.j.ic()),a.save(),a.scale(e,e));if(this.Dc||this.width!==this.Rf)this.type.ba.ul(this.text,this.Zb,a,this.width,this.Ui),this.Dc=!1,this.Rf=this.width;this.Fa();var e=b?0:this.Ub.Ma,f=b?0:this.Ub.Na;
this.b.sd&&(e=e+.5|0,f=f+.5|0);0===this.m||b||(a.save(),a.translate(e,f),a.rotate(this.m),f=e=0);var g=f+this.height,l=this.sn,l=l+this.Om,p,r;1===this.Ee?f+=Math.max(this.height/2-this.Zb.length*l/2,0):2===this.Ee&&(f+=Math.max(this.height-this.Zb.length*l-2,0));for(r=0;r<this.Zb.length&&!(p=e,1===this.ke?p=e+(this.width-this.Zb[r].width)/2:2===this.ke&&(p=e+(this.width-this.Zb[r].width)),a.fillText(this.Zb[r].text,p,f),f+=l,f>=g-l);r++);(0!==this.m||b)&&a.restore();this.Qf=this.b.Vd};b.Xb=function(a){if(!(1>
this.width||1>this.height)){var b=this.Dc||this.Fq;this.Fq=!1;var e=this.j.ic(),f=this.j.jb(),g=this.Zg,l=e*this.width,p=e*this.height,r=Math.ceil(l),k=Math.ceil(p),n=Math.abs(r),q=Math.abs(k),t=this.b.M/2,u=this.b.L/2;this.Wf||(this.Od=document.createElement("canvas"),this.Od.width=n,this.Od.height=q,this.hk=n,this.gk=q,b=!0,this.Wf=this.Od.getContext("2d"));if(n!==this.hk||q!==this.gk)this.Od.width=n,this.Od.height=q,this.zc&&(a.deleteTexture(this.zc),this.zc=null),b=!0;b&&(this.Wf.clearRect(0,
0,n,q),this.Hc(this.Wf,!0),this.zc||(this.zc=a.Fc(n,q,this.b.Ka,this.b.pe)),a.Wx(this.Od,this.zc,this.b.pe));this.hk=n;this.gk=q;a.Cc(this.zc);a.ag(this.opacity);a.bd();a.translate(-t,-u);a.Rc();var H=this.Ub,b=this.j.Ca(H.Ma,H.Na,!0,!0),n=this.j.Ca(H.Ma,H.Na,!1,!0),q=this.j.Ca(H.rb,H.sb,!0,!0),t=this.j.Ca(H.rb,H.sb,!1,!0),u=this.j.Ca(H.fb,H.gb,!0,!0),F=this.j.Ca(H.fb,H.gb,!1,!0),G=this.j.Ca(H.cb,H.eb,!0,!0),H=this.j.Ca(H.cb,H.eb,!1,!0);if(this.b.sd||0===this.m&&0===f)var w=(b+.5|0)-b,A=(n+.5|0)-
n,b=b+w,n=n+A,q=q+w,t=t+A,u=u+w,F=F+A,G=G+w,H=H+A;0===this.m&&0===f?(q=b+r,t=n,u=q,F=n+k,G=b,H=F,g.right=1,g.bottom=1):(g.right=l/r,g.bottom=p/k);a.we(b,n,q,t,u,F,G,H,g);a.bd();a.scale(e,e);a.Nk(-this.j.jb());a.translate((this.j.ta+this.j.Ba)/-2,(this.j.ua+this.j.Aa)/-2);a.Rc();this.Qf=this.b.Vd}};var a=[];t.tl=function(b){D(a);for(var c="",e,f=0;f<b.length;)if(e=b.charAt(f),"\n"===e)c.length&&(a.push(c),c=""),a.push("\n"),++f;else if(" "===e||"\t"===e||"-"===e){do c+=b.charAt(f),f++;while(f<b.length&&
(" "===b.charAt(f)||"\t"===b.charAt(f)));a.push(c);c=""}else f<b.length&&(c+=e,f++);c.length&&a.push(c)};var u=[];t.ul=function(a,b,e,m,g){if(a&&a.length)if(2>=m)l(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var p=e.measureText(a).width;if(p<=m){l(b);b.push(f());b[0].text=a;b[0].width=p;return}}this.wl(a,b,e,m,g)}else l(b)};t.wl=function(b,c,e,l,g){g&&(this.tl(b),b=a);var q="",t,r,k,n=0;for(k=0;k<b.length;k++)"\n"===b[k]?(n>=c.length&&c.push(f()),q=p(q),r=c[n],r.text=q,r.width=e.measureText(q).width,
n++,q=""):(t=q,q+=b[k],r=e.measureText(q).width,r>=l&&(n>=c.length&&c.push(f()),t=p(t),r=c[n],r.text=t,r.width=e.measureText(t).width,n++,q=b[k],g||" "!==q||(q="")));q.length&&(n>=c.length&&c.push(f()),q=p(q),r=c[n],r.text=q,r.width=e.measureText(q).width,n++);for(k=n;k<c.length;k++)u.push(c[k]);c.length=n};t.d=new function(){};e.prototype.rh=function(a){ja(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Dc=!0,this.b.na=!0)};t.F=new e;q.prototype.Text=function(a){a.k(this.text)};
t.Z=new q})();function zc(f){this.b=f}
(function(){function f(a){d=a.x;c=a.y;h=a.z}function l(a,b,c,d){var e;e=m.length?m.pop():new p;e.init(a,b,c,d);return e}function p(){this.Ii=this.id=this.y=this.x=this.Zk=this.Yk=this.Mm=this.time=this.Hn=0;this.Oi=this.el=!1}function e(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function q(){}function t(){}var b=zc.prototype;b.ya=function(a){this.ba=a;this.b=a.b};b.ya.prototype.U=
function(){};b.la=function(a){this.type=a;this.b=a.b;this.touches=[];this.Wm=!1};var a=b.la.prototype,u={left:0,top:0};a.Hh=function(a){var b,c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var d=0,c=0,h=0,m=[];p.prototype.init=function(a,b,c,d){var e=$a();this.Hn=this.Mm=this.time=e;this.Yk=a;this.Zk=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.Ii=d;this.Oi=this.el=!1};p.prototype.update=function(a,b,c,d,e,f){this.Mm=this.time;this.time=
a;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.Oi&&15<=Ta(this.Yk,this.Zk,this.x,this.y)&&(this.Oi=!0)};p.prototype.Fw=function(a,b){!this.el&&500<=$a()-this.Hn&&!this.Oi&&15>Ta(this.Yk,this.Zk,this.x,this.y)&&(this.el=!0,a.Wd=this.Ii,a.jh=this.id,a.Cg=b,a.b.trigger(zc.prototype.d.Vs,a),a.be=this.x,a.de=this.y,a.b.trigger(zc.prototype.d.Ws,a),a.Cg=0)};var g=-1E3,C=-1E3,N=-1E4;p.prototype.yq=function(a,b){if(!this.el){var c=$a();333>=c-this.Hn&&!this.Oi&&15>Ta(this.Yk,this.Zk,
this.x,this.y)&&(a.Wd=this.Ii,a.jh=this.id,a.Cg=b,666>=c-N&&25>Ta(g,C,this.x,this.y)?(a.b.trigger(zc.prototype.d.Rs,a),a.be=this.x,a.de=this.y,a.b.trigger(zc.prototype.d.Ss,a),C=g=-1E3,N=-1E4):(a.b.trigger(zc.prototype.d.it,a),a.be=this.x,a.de=this.y,a.b.trigger(zc.prototype.d.jt,a),g=this.x,C=this.y,N=c),a.Cg=0)}};a.U=function(){this.rw=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Cg=this.jh=this.Wd=this.de=this.be=this.yo=this.xo=this.wo=this.Pt=this.Ot=this.Nt=this.Ak=
this.zk=this.yk=0;this.Tx=0!==this.q[0];var a=0<this.b.Yb?document:this.b.canvas,b=document;this.b.Gb?b=a=window.Canvas:this.b.Yc&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Qq(a)},!1),a.addEventListener("pointermove",function(a){c.Pq(a)},!1),b.addEventListener("pointerup",function(a){c.xk(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.xk(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},
!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.Qq(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Pq(a)},!1),b.addEventListener("MSPointerUp",function(a){c.xk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.xk(a,
!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Tq(a)},!1),a.addEventListener("touchmove",function(a){c.Sq(a)},!1),b.addEventListener("touchend",function(a){c.gn(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.gn(a,!0)},!1));if(this.rw){var d=function(a){a=a.reading;c.wo=a.accelerationX;c.xo=a.accelerationY;
c.yo=a.accelerationZ},e=function(a){a=a.reading;c.yk=a.yawDegrees;c.zk=a.pitchDegrees;c.Ak=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?
(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.yk=a.alpha||0;c.zk=a.beta||0;c.Ak=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Nt=a.accelerationIncludingGravity.x||0,c.Ot=a.accelerationIncludingGravity.y||0,c.Pt=a.accelerationIncludingGravity.z||
0);a.acceleration&&(c.wo=a.acceleration.x||0,c.xo=a.acceleration.y||0,c.yo=a.acceleration.z||0)},!1);this.Tx&&!this.b.wa&&(jQuery(document).mousemove(function(a){c.cn(a)}),jQuery(document).mousedown(function(a){c.bn(a)}),jQuery(document).mouseup(function(a){c.dn(a)}));!this.b.Mg&&this.b.Mc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(f,null,{frequency:40});this.b.Kx(this)};a.Pq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Hh(a.pointerId),c=$a();if(0<=b){var d=this.b.wa?u:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||b.update(c,a.pageX-d.left,a.pageY-d.top,a.width||0,a.height||0,a.pressure||0)}}};a.Qq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ob(a)&&a.preventDefault();var b=this.b.wa?u:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;$a();this.Wd=this.touches.length;
this.jh=a.pointerId;this.touches.push(l(c,b,a.pointerId,this.Wd));this.b.Ya=!0;this.b.trigger(zc.prototype.d.mo,this);this.b.trigger(zc.prototype.d.so,this);this.be=c;this.de=b;this.b.trigger(zc.prototype.d.pl,this);this.b.Ya=!1}};a.xk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ob(a)&&a.preventDefault();var c=this.Hh(a.pointerId);this.Wd=0<=c?this.touches[c].Ii:-1;this.jh=0<=c?this.touches[c].id:-1;this.b.Ya=!0;this.b.trigger(zc.prototype.d.lo,
this);this.b.trigger(zc.prototype.d.ro,this);0<=c&&(b||this.touches[c].yq(this,c),100>m.length&&m.push(this.touches[c]),this.touches.splice(c,1));this.b.Ya=!1}};a.Sq=function(a){a.preventDefault&&a.preventDefault();var b=$a(),c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.Hh(e.identifier),0<=f){var g=this.b.wa?u:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top,2*(e.uB||e.KB||e.nB||e.qB||0),2*(e.vB||e.LB||e.oB||
e.rB||0),e.XA||e.JB||e.mB||e.pB||0)}};a.Tq=function(a){a.preventDefault&&ob(a)&&a.preventDefault();var b=this.b.wa?u:jQuery(this.b.canvas).offset();$a();this.b.Ya=!0;var c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.Hh(e.identifier),-1===f){f=e.pageX-b.left;var g=e.pageY-b.top;this.Wd=this.touches.length;this.jh=e.identifier;this.touches.push(l(f,g,e.identifier,this.Wd));this.b.trigger(zc.prototype.d.mo,this);this.b.trigger(zc.prototype.d.so,this);this.be=f;this.de=
g;this.b.trigger(zc.prototype.d.pl,this)}this.b.Ya=!1};a.gn=function(a,b){a.preventDefault&&ob(a)&&a.preventDefault();this.b.Ya=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Hh(e.identifier),0<=e&&(this.Wd=this.touches[e].Ii,this.jh=this.touches[e].id,this.b.trigger(zc.prototype.d.lo,this),this.b.trigger(zc.prototype.d.ro,this),b||this.touches[e].yq(this,e),100>m.length&&m.push(this.touches[e]),this.touches.splice(e,1));this.b.Ya=!1};a.uc=function(){return this.b.Mc&&
0===this.yk&&0!==h?90*h:this.yk};a.Gd=function(){return this.b.Mc&&0===this.zk&&0!==c?90*c:this.zk};a.fe=function(){return this.b.Mc&&0===this.Ak&&0!==d?90*d:this.Ak};a.bn=function(a){e(a)||(this.Tq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.Wm=!0)};a.cn=function(a){this.Wm&&!e(a)&&this.Sq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.dn=function(a){a.preventDefault&&this.b.Vj&&!this.b.pe&&a.preventDefault();this.b.Vj=!0;e(a)||(this.gn({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]}),this.Wm=!1)};a.Ln=function(){var a,b,c,d=$a();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Mm=d),c.Fw(this,a)};q.prototype.so=function(){return!0};q.prototype.ro=function(){return!0};q.prototype.zs=function(){return this.touches.length};q.prototype.pl=function(a){return a?this.b.Li(a,this.be,this.de):!1};q.prototype.mo=function(a){a=Math.floor(a);return a===this.Wd};q.prototype.lo=function(a){a=Math.floor(a);return a===this.Wd};q.prototype.Vs=
function(){return!0};q.prototype.it=function(){return!0};q.prototype.Rs=function(){return!0};q.prototype.Ws=function(a){return a?this.b.Li(a,this.be,this.de):!1};q.prototype.jt=function(a){return a?this.b.Li(a,this.be,this.de):!1};q.prototype.Ss=function(a){return a?this.b.Li(a,this.be,this.de):!1};b.d=new q;b.F=new function(){};t.prototype.fj=function(a,b){var c=this.Cg;if(0>c||c>=this.touches.length)a.H(0);else{var d,e,f,g,h;ia(b)?(d=this.b.je(0),e=d.scale,f=d.Sb,g=d.mc,h=d.m,d.scale=1,d.Sb=1,d.mc=
1,d.m=0,a.H(d.hb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Sb=f,d.mc=g,d.m=h):(d=ja(b)?this.b.je(b):this.b.Kh(b))?a.H(d.hb(this.touches[c].x,this.touches[c].y,!0)):a.H(0)}};t.prototype.gj=function(a,b){var c=this.Cg;if(0>c||c>=this.touches.length)a.H(0);else{var d,e,f,g,h;ia(b)?(d=this.b.je(0),e=d.scale,f=d.Sb,g=d.nc,h=d.m,d.scale=1,d.Sb=1,d.nc=1,d.m=0,a.H(d.hb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Sb=f,d.nc=g,d.m=h):(d=ja(b)?this.b.je(b):this.b.Kh(b))?a.H(d.hb(this.touches[c].x,
this.touches[c].y,!1)):a.H(0)}};b.Z=new t})();function Ac(f){this.b=f}
(function(){function f(){}function l(){}function p(){}var e=Ac.prototype;e.ya=function(a){this.ba=a;this.b=a.b};e.ya.prototype.U=function(){};e.la=function(a){this.type=a;this.b=a.b};var q=e.la.prototype,t="",b="undefined"!==typeof window.is_scirra_arcade;b&&(t="arcade"+window.scirra_arcade_id);var a=!1;try{localStorage.getItem("test"),a=!0}catch(u){a=!1}q.U=function(){a||ga("[Construct 2] Webstorage plugin: local storage is not supported on this platform.")};f.prototype.Es=function(b){return a?null!=
localStorage.getItem(t+b):!1};f.prototype.ft=function(){return!0};e.d=new f;l.prototype.Jt=function(b,c){if(a)try{localStorage.setItem(t+b,c)}catch(e){this.b.trigger(Ac.prototype.d.ft,this)}};e.F=new l;p.prototype.Fs=function(b,c){a?b.k(localStorage.getItem(t+c)||""):b.k("")};p.prototype.$n=function(d){if(a){var c={},e,f,g;e=0;for(f=localStorage.length;e<f;e++)g=localStorage.key(e),b?g.substr(0,t.length)===t&&(c[g.substr(t.length)]=localStorage.getItem(g)):c[g]=localStorage.getItem(g);d.k(JSON.stringify({c2dictionary:!0,
data:c}))}else d.k("")};e.Z=new p})();function Gc(f){this.b=f}
(function(){function f(){}var l=Gc.prototype;l.ya=function(b){this.behavior=b;this.b=b.b};l.ya.prototype.U=function(){};l.la=function(b,a){this.type=b;this.behavior=b.behavior;this.K=a;this.b=b.b;this.kb=0};var p=l.la.prototype,e=2*Math.PI,q=Math.PI/2,t=3*Math.PI/2;p.U=function(){this.Db=1===this.q[0];this.Tg=this.q[1];this.Yn=this.q[2];this.ve=this.q[3];this.ve+=Math.random()*this.q[4];0===this.ve?this.kb=0:(this.kb=this.q[5]/this.ve*e,this.kb+=Math.random()*this.q[6]/this.ve*e);this.lc=this.q[7];
this.lc+=Math.random()*this.q[8];this.Ai=this.Lf=this.ea=0;5===this.Tg&&(this.lc=M(this.lc));this.init()};p.Kb=function(){return{i:this.kb,a:this.Db,mv:this.Tg,w:this.Yn,p:this.ve,mag:this.lc,iv:this.ea,iv2:this.Lf,r:this.Ai,lkv:this.xc,lkv2:this.ci}};p.$b=function(b){this.kb=b.i;this.Db=b.a;this.Tg=b.mv;this.Yn=b.w;this.ve=b.p;this.lc=b.mag;this.ea=b.iv;this.Lf=b.iv2||0;this.Ai=b.r;this.xc=b.lkv;this.ci=b.lkv2||0};p.init=function(){switch(this.Tg){case 0:this.ea=this.K.x;break;case 1:this.ea=this.K.y;
break;case 2:this.ea=this.K.width;this.Ai=this.K.height/this.K.width;break;case 3:this.ea=this.K.width;break;case 4:this.ea=this.K.height;break;case 5:this.ea=this.K.m;break;case 6:this.ea=this.K.opacity;break;case 7:this.ea=0;break;case 8:this.ea=this.K.x,this.Lf=this.K.y}this.xc=this.ea;this.ci=this.Lf};p.He=function(b){b=b%e;switch(this.Yn){case 0:return Math.sin(b);case 1:return b<=q?b/q:b<=t?1-2*(b-q)/Math.PI:(b-t)/q-1;case 2:return 2*b/e-1;case 3:return-2*b/e+1;case 4:return b<Math.PI?-1:1}return 0};
p.Lb=function(){var b=this.b.hm(this.K);this.Db&&0!==b&&(0===this.ve?this.kb=0:(this.kb+=b/this.ve*e,this.kb=this.kb%e),this.Ox())};p.Ox=function(){switch(this.Tg){case 0:this.K.x!==this.xc&&(this.ea+=this.K.x-this.xc);this.K.x=this.ea+this.He(this.kb)*this.lc;this.xc=this.K.x;break;case 1:this.K.y!==this.xc&&(this.ea+=this.K.y-this.xc);this.K.y=this.ea+this.He(this.kb)*this.lc;this.xc=this.K.y;break;case 2:this.K.width=this.ea+this.He(this.kb)*this.lc;this.K.height=this.K.width*this.Ai;break;case 3:this.K.width=
this.ea+this.He(this.kb)*this.lc;break;case 4:this.K.height=this.ea+this.He(this.kb)*this.lc;break;case 5:this.K.m!==this.xc&&(this.ea=Ka(this.ea+(this.K.m-this.xc)));this.K.m=Ka(this.ea+this.He(this.kb)*this.lc);this.xc=this.K.m;break;case 6:this.K.opacity=this.ea+this.He(this.kb)*this.lc/100;0>this.K.opacity?this.K.opacity=0:1<this.K.opacity&&(this.K.opacity=1);break;case 8:this.K.x!==this.xc&&(this.ea+=this.K.x-this.xc),this.K.y!==this.ci&&(this.Lf+=this.K.y-this.ci),this.K.x=this.ea+Math.cos(this.K.m)*
this.He(this.kb)*this.lc,this.K.y=this.Lf+Math.sin(this.K.m)*this.He(this.kb)*this.lc,this.xc=this.K.x,this.ci=this.K.y}this.K.La()};p.Rq=function(b,a){switch(this.Tg){case 2:this.ea*=a.width/b.width;this.Ai=a.height/a.width;break;case 3:this.ea*=a.width/b.width;break;case 4:this.ea*=a.height/b.height}};f.prototype.Ad=function(){return this.Db};l.d=new f;l.F=new function(){};l.Z=new function(){}})();
function qc(){return[rc,X,sc,Z,tc,wc,vc,xc,zc,W,Ac,yc,uc,Gc,Q.prototype.d.ys,Q.prototype.d.io,Q.prototype.F.At,Q.prototype.F.yt,uc.prototype.F.Kt,W.prototype.F.ss,Q.prototype.F.rs,Q.prototype.F.Bt,W.prototype.F.It,W.prototype.F.wt,Ac.prototype.d.Es,Ac.prototype.Z.Fs,yc.prototype.F.rh,Q.prototype.d.ao,Q.prototype.d.qs,sc.prototype.F.Play,W.prototype.F.ut,sc.prototype.F.Ht,uc.prototype.Z.us,rc.prototype.Z.Text,zc.prototype.d.pl,Q.prototype.d.ns,W.prototype.Z.fj,W.prototype.F.Dt,W.prototype.Z.gj,W.prototype.F.Et,
zc.prototype.d.zs,Q.prototype.Z.zw,zc.prototype.Z.fj,Q.prototype.Z.Xe,zc.prototype.Z.gj,W.prototype.F.tt,W.prototype.F.Hs,W.prototype.F.to,Q.prototype.Z.random,Q.prototype.d.ts,Q.prototype.F.Lt,W.prototype.F.Ft,Q.prototype.Z["int"],W.prototype.F.Gs,W.prototype.F.zt,W.prototype.Z.Opacity,W.prototype.d.Os,X.prototype.F.ot,uc.prototype.F.nt,Q.prototype.F.vs,W.prototype.F.sl,yc.prototype.F.sl,Ac.prototype.F.Jt,rc.prototype.F.xt,rc.prototype.F.sl,uc.prototype.F.qt,sc.prototype.d.As,Z.prototype.F.xw,Z.prototype.F.yw,
rc.prototype.F.rh,Q.prototype.d.ho,xc.prototype.F.rh,X.prototype.F.pt,X.prototype.d.ph,X.prototype.Z.Cs,W.prototype.F.uo,W.prototype.d.os]};
