// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,M,ea,fa,ha,P,ia,ka,la,ma,pa,qa,R,sa,ua,va,wa,xa,ya,za,Aa,Ba,Ca,U,Da,Ea,Fa,Ga,Ha,Ia,Ka,La,Ma,Na,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,V,Yb,Zb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(n){return n.__proto__}:function(n){return n.constructor.prototype});
(function(){function n(e,m,d,a){this.set(e,m,d,a)}function h(){this.sb=this.rb=this.ub=this.tb=this.Eb=this.Db=this.Za=this.Ya=0}function f(e,m,d,a){e<m?d<a?(r=e<d?e:d,s=m>a?m:a):(r=e<a?e:a,s=m>d?m:d):d<a?(r=m<d?m:d,s=e>a?e:a):(r=m<a?m:a,s=e>d?e:d)}function p(){this.items=this.Mc=null;this.vf=0;D&&(this.Mc=new Set);this.Xf=[];this.Od=!0}function q(e){A[S++]=e}function c(){this.J=this.ij=this.y=this.Kj=0}function a(e){this.Jf=[];this.Im=this.Km=this.Lm=this.Jm=0;this.kh(e)}function b(e,m){this.Pj=
e;this.Oj=m;this.cells={}}function v(e,m){this.Pj=e;this.Oj=m;this.cells={}}function g(e,m,d){var a;return Q.length?(a=Q.pop(),a.wk=e,a.x=m,a.y=d,a):new aa(e,m,d)}function d(e,m,d){this.wk=e;this.x=m;this.y=d;this.Ta=new ba}function l(e,m,d){var a;return N.length?(a=N.pop(),a.wk=e,a.x=m,a.y=d,a):new ca(e,m,d)}function u(e,m,d){this.wk=e;this.x=m;this.y=d;this.Ta=[];this.uf=!0;this.$c=new ba;this.ag=!1}function k(e,m){return e.Pc-m.Pc}M=function(e){window.console&&window.console.log&&window.console.log(e)};
ea=function(e){window.console&&window.console.error&&window.console.error(e)};fa=function(e){return"undefined"===typeof e};ha=function(e){return"number"===typeof e};P=function(e){return"string"===typeof e};ia=function(e){return 0<e&&0===(e-1&e)};ka=function(e){--e;for(var m=1;32>m;m<<=1)e|=e>>m;return e+1};la=function(e){return 0>e?-e:e};ma=function(e,m){return e>m?e:m};pa=function(e,m){return e<m?e:m};qa=Math.PI;R=function(e){return 0<=e?e|0:(e|0)-1};sa=function(e){var m=e|0;return m===e?m:m+1};
ua=function(e,m,d,a,w,b,c,k){var z,l,A,r;e<d?(l=e,z=d):(l=d,z=e);w<c?(r=w,A=c):(r=c,A=w);if(z<r||l>A)return!1;m<a?(l=m,z=a):(l=a,z=m);b<k?(r=b,A=k):(r=k,A=b);if(z<r||l>A)return!1;z=w-e+c-d;l=b-m+k-a;e=d-e;m=a-m;w=c-w;b=k-b;k=la(m*w-b*e);return la(w*l-b*z)>k?!1:la(e*l-m*z)<=k};n.prototype.set=function(e,m,d,a){this.left=e;this.top=m;this.right=d;this.bottom=a};n.prototype.Jh=function(e){this.left=e.left;this.top=e.top;this.right=e.right;this.bottom=e.bottom};n.prototype.width=function(){return this.right-
this.left};n.prototype.height=function(){return this.bottom-this.top};n.prototype.offset=function(e,m){this.left+=e;this.top+=m;this.right+=e;this.bottom+=m;return this};n.prototype.normalize=function(){var e=0;this.left>this.right&&(e=this.left,this.left=this.right,this.right=e);this.top>this.bottom&&(e=this.top,this.top=this.bottom,this.bottom=e)};n.prototype.gc=function(e,m){return e>=this.left&&e<=this.right&&m>=this.top&&m<=this.bottom};n.prototype.Sh=function(e){return this.left===e.left&&this.top===
e.top&&this.right===e.right&&this.bottom===e.bottom};va=n;h.prototype.jh=function(e){this.Ya=e.left;this.Za=e.top;this.Db=e.right;this.Eb=e.top;this.tb=e.right;this.ub=e.bottom;this.rb=e.left;this.sb=e.bottom};h.prototype.ep=function(e,m){if(0===m)this.jh(e);else{var d=Math.sin(m),a=Math.cos(m),w=e.left*d,b=e.top*d,c=e.right*d,d=e.bottom*d,k=e.left*a,z=e.top*a,l=e.right*a,a=e.bottom*a;this.Ya=k-b;this.Za=z+w;this.Db=l-b;this.Eb=z+c;this.tb=l-d;this.ub=a+c;this.rb=k-d;this.sb=a+w}};h.prototype.offset=
function(e,m){this.Ya+=e;this.Za+=m;this.Db+=e;this.Eb+=m;this.tb+=e;this.ub+=m;this.rb+=e;this.sb+=m;return this};var r=0,s=0;h.prototype.Nm=function(e){f(this.Ya,this.Db,this.tb,this.rb);e.left=r;e.right=s;f(this.Za,this.Eb,this.ub,this.sb);e.top=r;e.bottom=s};h.prototype.gc=function(e,m){var d=this.Db-this.Ya,a=this.Eb-this.Za,w=this.tb-this.Ya,b=this.ub-this.Za,c=e-this.Ya,k=m-this.Za,z=d*d+a*a,l=d*w+a*b,a=d*c+a*k,A=w*w+b*b,r=w*c+b*k,g=1/(z*A-l*l),d=(A*a-l*r)*g,z=(z*r-l*a)*g;if(0<=d&&0<z&&1>d+
z)return!0;d=this.rb-this.Ya;a=this.sb-this.Za;z=d*d+a*a;l=d*w+a*b;a=d*c+a*k;g=1/(z*A-l*l);d=(A*a-l*r)*g;z=(z*r-l*a)*g;return 0<=d&&0<z&&1>d+z};wa=h;xa=function(e,m){for(var d in m)m.hasOwnProperty(d)&&(e[d]=m[d]);return e};ya=function(e,m){var d,a;m=R(m);if(!(0>m||m>=e.length)){d=m;for(a=e.length-1;d<a;d++)e[d]=e[d+1];e.length=a}};za=function(e,m){e.length=m.length;var d,a;d=0;for(a=m.length;d<a;d++)e[d]=m[d]};Aa=function(e,m){e.push.apply(e,m)};Ba=function(e,m){var d,a;d=0;for(a=e.length;d<a;++d)if(e[d]===
m)return d;return-1};Ca=function(e,m){var d=Ba(e,m);-1!==d&&ya(e,d)};U=function(e){return e/(180/qa)};Da=function(e){return 180/qa*e};Ea=function(e){e%=360;0>e&&(e+=360);return e};Fa=function(e){e%=2*qa;0>e&&(e+=2*qa);return e};Ga=function(e){return Ea(Da(e))};Ha=function(e){return Fa(U(e))};Ia=function(e,m,d,a){return Math.atan2(a-m,d-e)};Ka=function(e,m){if(e===m)return 0;var d=Math.sin(e),a=Math.cos(e),w=Math.sin(m),b=Math.cos(m),d=d*w+a*b;return 1<=d?0:-1>=d?qa:Math.acos(d)};La=function(e,m,d){var a=
Math.sin(e),w=Math.cos(e),b=Math.sin(m),c=Math.cos(m);return Math.acos(a*b+w*c)>d?0<w*b-a*c?Fa(e+d):Fa(e-d):Fa(m)};Ma=function(e,m){var d=Math.sin(e),a=Math.cos(e),w=Math.sin(m),b=Math.cos(m);return 0>=a*w-d*b};Na=function(e,m,d,a,w,b){if(0===d)return b?e:m;var c=Math.sin(d);d=Math.cos(d);e-=a;m-=w;var k=e*c;e=e*d-m*c;m=m*d+k;return b?e+a:m+w};Sa=function(e,m,d,a){e=d-e;m=a-m;return Math.sqrt(e*e+m*m)};Ta=function(e,m){return!e!==!m};Ua=function(e){for(var m in e)if(e.hasOwnProperty(m))return!0;return!1};
Va=function(e){for(var m in e)e.hasOwnProperty(m)&&delete e[m]};var e=+new Date;Wa=function(){if("undefined"!==typeof window.performance){var m=window.performance;if("undefined"!==typeof m.now)return m.now();if("undefined"!==typeof m.webkitNow)return m.webkitNow();if("undefined"!==typeof m.mozNow)return m.mozNow();if("undefined"!==typeof m.msNow)return m.msNow()}return Date.now()-e};var m=!1,w=m=!1,z=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
m=!m&&/safari/i.test(navigator.userAgent),w=/(iphone|ipod|ipad)/i.test(navigator.userAgent),z=window.c2ejecta);var D=!m&&!z&&!w&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(e){return this.sd()?!1:D?this.Mc.has(e):this.items&&this.items.hasOwnProperty(e)};p.prototype.add=function(e){if(D)this.Mc.has(e)||(this.Mc.add(e),this.Od=!1);else{var m=e.toString(),d=this.items;d?d.hasOwnProperty(m)||(d[m]=e,this.vf++,this.Od=!1):(this.items={},this.items[m]=
e,this.vf=1,this.Od=!1)}};p.prototype.remove=function(e){if(!this.sd())if(D)this.Mc.has(e)&&(this.Mc["delete"](e),this.Od=!1);else if(this.items){e=e.toString();var m=this.items;m.hasOwnProperty(e)&&(delete m[e],this.vf--,this.Od=!1)}};p.prototype.clear=function(){this.sd()||(D?this.Mc.clear():(this.items=null,this.vf=0),this.Xf.length=0,this.Od=!0)};p.prototype.sd=function(){return 0===this.count()};p.prototype.count=function(){return D?this.Mc.size:this.vf};var A=null,S=0;p.prototype.ku=function(){if(!this.Od){if(D)this.Xf.length=
this.Mc.size,A=this.Xf,S=0,this.Mc.forEach(q),A=null,S=0;else{var e=this.Xf;e.length=this.vf;var m,d=0,a=this.items;if(a)for(m in a)a.hasOwnProperty(m)&&(e[d++]=a[m])}this.Od=!0}};p.prototype.oe=function(){this.ku();return this.Xf};ba=p;new ba;Xa=function(e,m){D?Ya(e,m.Mc):Za(e,m.oe())};Ya=function(e,m){var d,a,w,b;a=d=0;for(w=e.length;d<w;++d)b=e[d],m.has(b)||(e[a++]=b);e.length=a};Za=function(e,m){var d,a,w,b;a=d=0;for(w=e.length;d<w;++d)b=e[d],-1===Ba(m,b)&&(e[a++]=b);e.length=a};c.prototype.add=
function(e){this.y=e-this.Kj;this.ij=this.J+this.y;this.Kj=this.ij-this.J-this.y;this.J=this.ij};c.prototype.reset=function(){this.J=this.ij=this.y=this.Kj=0};$a=c;ab=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.kh=function(e){this.Po=e;this.Vi=e.length/2;this.Jf.length=e.length;this.Lj=this.Mj=-1;this.Qm=0};a.prototype.bt=function(){return!this.Po.length};a.prototype.ib=function(){for(var e=this.Jf,m=e[0],d=m,a=e[1],w=a,b,c,k=1,z=this.Vi;k<z;++k)c=2*k,b=e[c],c=e[c+
1],b<m&&(m=b),b>d&&(d=b),c<a&&(a=c),c>w&&(w=c);this.Jm=m;this.Km=d;this.Lm=a;this.Im=w};a.prototype.jh=function(e,m,d){this.Jf.length=8;this.Vi=4;var a=this.Jf;a[0]=e.left-m;a[1]=e.top-d;a[2]=e.right-m;a[3]=e.top-d;a[4]=e.right-m;a[5]=e.bottom-d;a[6]=e.left-m;a[7]=e.bottom-d;this.Mj=e.right-e.left;this.Lj=e.bottom-e.top;this.ib()};a.prototype.Yq=function(e,m,d){if(this.Mj!==e||this.Lj!==m||this.Qm!==d){this.Mj=e;this.Lj=m;this.Qm=d;var a,w,b,c,k,z=0,l=1,A=this.Po,r=this.Jf;0!==d&&(z=Math.sin(d),l=
Math.cos(d));d=0;for(b=this.Vi;d<b;d++)a=2*d,w=a+1,c=A[a]*e,k=A[w]*m,r[a]=c*l-k*z,r[w]=k*l+c*z;this.ib()}};a.prototype.gc=function(e,m){var d=this.Jf;if(e===d[0]&&m===d[1])return!0;var a,w,b,c=this.Vi,k=this.Jm-110,z=this.Lm-101,l=this.Km+131,A=this.Im+120,r,g,D=0,S=0;for(a=0;a<c;a++)w=2*a,b=(a+1)%c*2,r=d[w],w=d[w+1],g=d[b],b=d[b+1],ua(k,z,e,m,r,w,g,b)&&D++,ua(l,A,e,m,r,w,g,b)&&S++;return 1===D%2||1===S%2};bb=a;b.prototype.Yd=function(e,m,d){var a;a=this.cells[e];return a?(a=a[m])?a:d?(a=g(this,e,
m),this.cells[e][m]=a):null:d?(a=g(this,e,m),this.cells[e]={},this.cells[e][m]=a):null};b.prototype.Tb=function(e){return R(e/this.Pj)};b.prototype.Ub=function(e){return R(e/this.Oj)};b.prototype.update=function(e,m,d){var a,w,b,c,k;if(m)for(a=m.left,w=m.right;a<=w;++a)for(b=m.top,c=m.bottom;b<=c;++b)if(!d||!d.gc(a,b))if(k=this.Yd(a,b,!1))k.remove(e),k.sd()&&(k.Ta.clear(),1E3>Q.length&&Q.push(k),this.cells[a][b]=null);if(d)for(a=d.left,w=d.right;a<=w;++a)for(b=d.top,c=d.bottom;b<=c;++b)m&&m.gc(a,
b)||this.Yd(a,b,!0).Jk(e)};b.prototype.Ro=function(e,m){var d,a,w,b,c,k;d=this.Tb(e.left);w=this.Ub(e.top);a=this.Tb(e.right);for(c=this.Ub(e.bottom);d<=a;++d)for(b=w;b<=c;++b)(k=this.Yd(d,b,!1))&&k.dump(m)};cb=b;v.prototype.Yd=function(e,m,d){var a;a=this.cells[e];return a?(a=a[m])?a:d?(a=l(this,e,m),this.cells[e][m]=a):null:d?(a=l(this,e,m),this.cells[e]={},this.cells[e][m]=a):null};v.prototype.Tb=function(e){return R(e/this.Pj)};v.prototype.Ub=function(e){return R(e/this.Oj)};v.prototype.update=
function(e,m,d){var a,w,b,c,k;if(m)for(a=m.left,w=m.right;a<=w;++a)for(b=m.top,c=m.bottom;b<=c;++b)if(!d||!d.gc(a,b))if(k=this.Yd(a,b,!1))k.remove(e),k.sd()&&(k.reset(),1E3>N.length&&N.push(k),this.cells[a][b]=null);if(d)for(a=d.left,w=d.right;a<=w;++a)for(b=d.top,c=d.bottom;b<=c;++b)m&&m.gc(a,b)||this.Yd(a,b,!0).Jk(e)};v.prototype.Ro=function(e,m,d,a,w){var b,c;e=this.Tb(e);m=this.Ub(m);d=this.Tb(d);for(b=this.Ub(a);e<=d;++e)for(a=m;a<=b;++a)(c=this.Yd(e,a,!1))&&c.dump(w)};v.prototype.it=function(e){var m,
d,a,w,b;m=e.left;a=e.top;d=e.right;for(w=e.bottom;m<=d;++m)for(e=a;e<=w;++e)if(b=this.Yd(m,e,!1))b.uf=!1};db=v;var Q=[];d.prototype.sd=function(){return this.Ta.sd()};d.prototype.Jk=function(e){this.Ta.add(e)};d.prototype.remove=function(e){this.Ta.remove(e)};d.prototype.dump=function(e){Aa(e,this.Ta.oe())};aa=d;var N=[];u.prototype.sd=function(){if(!this.Ta.length)return!0;if(this.Ta.length>this.$c.count())return!1;this.gk();return!0};u.prototype.Jk=function(e){this.$c.contains(e)?(this.$c.remove(e),
this.$c.sd()&&(this.ag=!1)):this.Ta.length?(this.Ta[this.Ta.length-1].Wc()>e.Wc()&&(this.uf=!1),this.Ta.push(e)):(this.Ta.push(e),this.uf=!0)};u.prototype.remove=function(e){this.$c.add(e);this.ag=!0;30<=this.$c.count()&&this.gk()};u.prototype.gk=function(){this.ag&&(this.$c.count()===this.Ta.length?this.reset():(Xa(this.Ta,this.$c),this.$c.clear(),this.ag=!1))};u.prototype.Gr=function(){this.uf||(this.Ta.sort(k),this.uf=!0)};u.prototype.reset=function(){this.Ta.length=0;this.uf=!0;this.$c.clear();
this.ag=!1};u.prototype.dump=function(e){this.gk();this.Gr();this.Ta.length&&e.push(this.Ta)};ca=u;var x="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");eb=function(e){return 0>=e||11<=e?"source-over":x[e-1]};fb=function(e,m,d){if(d)switch(e.mb=d.ONE,e.lb=d.ONE_MINUS_SRC_ALPHA,m){case 1:e.mb=d.ONE;e.lb=d.ONE;break;case 3:e.mb=d.ONE;e.lb=d.ZERO;break;case 4:e.mb=d.ONE_MINUS_DST_ALPHA;e.lb=d.ONE;break;case 5:e.mb=d.DST_ALPHA;
e.lb=d.ZERO;break;case 6:e.mb=d.ZERO;e.lb=d.SRC_ALPHA;break;case 7:e.mb=d.ONE_MINUS_DST_ALPHA;e.lb=d.ZERO;break;case 8:e.mb=d.ZERO;e.lb=d.ONE_MINUS_SRC_ALPHA;break;case 9:e.mb=d.DST_ALPHA;e.lb=d.ONE_MINUS_SRC_ALPHA;break;case 10:e.mb=d.ONE_MINUS_DST_ALPHA,e.lb=d.SRC_ALPHA}};gb=function(e){return Math.round(1E6*e)/1E6};hb=function(e,m){return"string"!==typeof e||"string"!==typeof m||e.length!==m.length?!1:e===m?!0:e.toLowerCase()===m.toLowerCase()};ib=function(e){e=e.target;return!e||e===document||
e===window||document&&document.body&&e===document.body||hb(e.tagName,"canvas")?!0:!1}})();var $b="undefined"!==typeof Float32Array?Float32Array:Array;function ac(n){var h=new $b(3);n&&(h[0]=n[0],h[1]=n[1],h[2]=n[2]);return h}function bc(n){var h=new $b(16);n&&(h[0]=n[0],h[1]=n[1],h[2]=n[2],h[3]=n[3],h[4]=n[4],h[5]=n[5],h[6]=n[6],h[7]=n[7],h[8]=n[8],h[9]=n[9],h[10]=n[10],h[11]=n[11],h[12]=n[12],h[13]=n[13],h[14]=n[14],h[15]=n[15]);return h}
function cc(n,h){h[0]=n[0];h[1]=n[1];h[2]=n[2];h[3]=n[3];h[4]=n[4];h[5]=n[5];h[6]=n[6];h[7]=n[7];h[8]=n[8];h[9]=n[9];h[10]=n[10];h[11]=n[11];h[12]=n[12];h[13]=n[13];h[14]=n[14];h[15]=n[15]}function dc(n,h){var f=h[0],p=h[1];h=h[2];n[0]*=f;n[1]*=f;n[2]*=f;n[3]*=f;n[4]*=p;n[5]*=p;n[6]*=p;n[7]*=p;n[8]*=h;n[9]*=h;n[10]*=h;n[11]*=h}
function ec(n,h,f,p){p||(p=bc());var q,c,a,b,v,g,d,l,u=n[0],k=n[1];n=n[2];c=f[0];a=f[1];q=f[2];f=h[1];g=h[2];u===h[0]&&k===f&&n===g?(n=p,n[0]=1,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=1,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1):(f=u-h[0],g=k-h[1],d=n-h[2],l=1/Math.sqrt(f*f+g*g+d*d),f*=l,g*=l,d*=l,h=a*d-q*g,q=q*f-c*d,c=c*g-a*f,(l=Math.sqrt(h*h+q*q+c*c))?(l=1/l,h*=l,q*=l,c*=l):c=q=h=0,a=g*c-d*q,b=d*h-f*c,v=f*q-g*h,(l=Math.sqrt(a*a+b*b+v*v))?(l=1/l,a*=l,b*=l,v*=l):v=b=a=0,
p[0]=h,p[1]=a,p[2]=f,p[3]=0,p[4]=q,p[5]=b,p[6]=g,p[7]=0,p[8]=c,p[9]=v,p[10]=d,p[11]=0,p[12]=-(h*u+q*k+c*n),p[13]=-(a*u+b*k+v*n),p[14]=-(f*u+g*k+d*n),p[15]=1)}
(function(){function n(c){this.Ge=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Rm=ac([0,0,100]);this.Tn=ac([0,0,0]);this.yp=ac([0,1,0]);this.im=ac([1,1,1]);this.an=!0;this.bl=bc();this.vc=bc();this.Ln=bc();this.Wj=bc();this.n=c;this.zn()}function h(c,a,b){this.n=c;this.mh=a;this.name=b;this.uc=c.getAttribLocation(a,"aPos");this.de=c.getAttribLocation(a,"aTex");this.Rn=c.getUniformLocation(a,"matP");this.Bi=c.getUniformLocation(a,"matMV");this.Af=
c.getUniformLocation(a,"opacity");this.Sn=c.getUniformLocation(a,"samplerFront");this.Qg=c.getUniformLocation(a,"samplerBack");this.Oe=c.getUniformLocation(a,"destStart");this.Ne=c.getUniformLocation(a,"destEnd");this.Zk=c.getUniformLocation(a,"seconds");this.Yk=c.getUniformLocation(a,"pixelWidth");this.Xk=c.getUniformLocation(a,"pixelHeight");this.Pg=c.getUniformLocation(a,"layerScale");this.Og=c.getUniformLocation(a,"layerAngle");this.Sg=c.getUniformLocation(a,"viewOrigin");this.Rg=c.getUniformLocation(a,
"scrollPos");this.Os=!!(this.Yk||this.Xk||this.Zk||this.Qg||this.Oe||this.Ne||this.Pg||this.Og||this.Sg||this.Rg);this.ao=this.bo=-999;this.Di=1;this.Xn=this.Wn=0;this.Zn=this.Vn=this.Un=1;this.eo=this.co=this.ho=this.fo=this.Yn=0;this.Sk=[];this.$n=bc();this.Af&&c.uniform1f(this.Af,1);this.Sn&&c.uniform1i(this.Sn,0);this.Qg&&c.uniform1i(this.Qg,1);this.Oe&&c.uniform2f(this.Oe,0,0);this.Ne&&c.uniform2f(this.Ne,1,1);this.Pg&&c.uniform1f(this.Pg,1);this.Og&&c.uniform1f(this.Og,0);this.Sg&&c.uniform2f(this.Sg,
0,0);this.Rg&&c.uniform2f(this.Rg,0,0);this.Be=!1}function f(c,a){this.type=c;this.u=a;this.n=a.n;this.nc=this.ac=this.zo=0;this.ba=this.Nc=null;this.fp=[]}n.prototype.zn=function(){var c=this.n,a;this.Mn=1;this.Je=this.Ie=null;this.Nh=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.Nn=c.ONE;this.Kn=c.ONE_MINUS_SRC_ALPHA;this.ul=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.ul);this.yh=
Array(4);this.qh=Array(4);for(a=0;4>a;a++)this.yh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.yh[a]),this.qh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.qh[a]);this.kd=0;this.Rs=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Rs);this.em=new Float32Array(16E3);this.Rl=new Float32Array(16E3);this.Lo=new Float32Array(32E3);for(var b=new Uint16Array(12E3),f=a=0;12E3>a;)b[a++]=f,b[a++]=f+1,b[a++]=f+2,b[a++]=f,b[a++]=f+2,b[a++]=f+3,f+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,b,
c.STATIC_DRAW);this.Hf=this.fd=0;this.Pa=[];a=this.Vj({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");
this.Pa.push(a);a=this.Vj({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.Pa.push(a);for(var g in fc)fc.hasOwnProperty(g)&&this.Pa.push(this.Vj(fc[g],
"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}",g));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.jd=[];this.Rc=0;this.Kb=this.yb=!1;this.Xm=this.Gg=-1;this.kg=null;this.gs=c.createFramebuffer();this.Uo=null;this.me=ac([0,0,0]);c=c.getParameter(c.ALIASED_POINT_SIZE_RANGE);this.lt=c[0];this.cl=
c[1];2048<this.cl&&(this.cl=2048);this.cd(0)};h.prototype.Zl=function(c){var a=this.$n;if(a[0]!==c[0]||a[1]!==c[1]||a[2]!==c[2]||a[3]!==c[3]||a[4]!==c[4]||a[5]!==c[5]||a[6]!==c[6]||a[7]!==c[7]||a[8]!==c[8]||a[9]!==c[9]||a[10]!==c[10]||a[11]!==c[11]||a[12]!==c[12]||a[13]!==c[13]||a[14]!==c[14]||a[15]!==c[15])cc(c,this.$n),this.n.uniformMatrix4fv(this.Bi,!1,c)};n.prototype.Vj=function(c,a,b){var f=this.n,g=f.createShader(f.FRAGMENT_SHADER);f.shaderSource(g,c.src);f.compileShader(g);if(!f.getShaderParameter(g,
f.COMPILE_STATUS))return f.deleteShader(g),null;var d=f.createShader(f.VERTEX_SHADER);f.shaderSource(d,a);f.compileShader(d);if(!f.getShaderParameter(d,f.COMPILE_STATUS))return f.deleteShader(g),f.deleteShader(d),null;a=f.createProgram();f.attachShader(a,g);f.attachShader(a,d);f.linkProgram(a);if(!f.getProgramParameter(a,f.LINK_STATUS))return f.deleteShader(g),f.deleteShader(d),f.deleteProgram(a),null;f.useProgram(a);f.deleteShader(g);f.deleteShader(d);b=new h(f,a,b);b.ck=c.ck||0;b.dk=c.dk||0;b.Wm=
!!c.Wm;b.Em=!!c.Em;b.M=c.M||[];c=0;for(g=b.M.length;c<g;c++)b.M[c][1]=f.getUniformLocation(a,b.M[c][0]),b.Sk.push(0),f.uniform1f(b.M[c][1],0);return b};n.prototype.tk=function(c){var a,b;a=0;for(b=this.Pa.length;a<b;a++)if(this.Pa[a].name===c)return a;return-1};n.prototype.Oo=function(c,a,b){var f=this.vc,g=this.bl,d=[0,0,0,0,0,0,0,0];d[0]=f[0]*c+f[4]*a+f[12];d[1]=f[1]*c+f[5]*a+f[13];d[2]=f[2]*c+f[6]*a+f[14];d[3]=f[3]*c+f[7]*a+f[15];d[4]=g[0]*d[0]+g[4]*d[1]+g[8]*d[2]+g[12]*d[3];d[5]=g[1]*d[0]+g[5]*
d[1]+g[9]*d[2]+g[13]*d[3];d[6]=g[2]*d[0]+g[6]*d[1]+g[10]*d[2]+g[14]*d[3];d[7]=-d[2];0!==d[7]&&(d[7]=1/d[7],d[4]*=d[7],d[5]*=d[7],d[6]*=d[7],b[0]=(.5*d[4]+.5)*this.width,b[1]=(.5*d[5]+.5)*this.height)};n.prototype.Nf=function(c,a,b){if(this.width!==c||this.height!==a||b){this.Wd();this.width=c;this.height=a;this.n.viewport(0,0,c,a);a=c/a;var f=this.bl,g;g=1*Math.tan(45*Math.PI/360);a*=g;c=-a;b=-g;f||(f=bc());var d=a-c,l=g-b;f[0]=2/d;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/l;f[6]=0;f[7]=0;f[8]=(a+c)/d;f[9]=
(g+b)/l;f[10]=-1001/999;f[11]=-1;f[12]=0;f[13]=0;f[14]=-2E3/999;f[15]=0;ec(this.Rm,this.Tn,this.yp,this.vc);c=[0,0];a=[0,0];this.Oo(0,0,c);this.Oo(1,1,a);this.im[0]=1/(a[0]-c[0]);this.im[1]=-1/(a[1]-c[1]);c=0;for(a=this.Pa.length;c<a;c++)b=this.Pa[c],b.Be=!1,b.Rn&&(this.n.useProgram(b.mh),this.n.uniformMatrix4fv(b.Rn,!1,this.bl));this.n.useProgram(this.Pa[this.Gg].mh);this.n.bindTexture(this.n.TEXTURE_2D,null);this.n.activeTexture(this.n.TEXTURE1);this.n.bindTexture(this.n.TEXTURE_2D,null);this.n.activeTexture(this.n.TEXTURE0);
this.Je=this.Ie=null}};n.prototype.he=function(){ec(this.Rm,this.Tn,this.yp,this.vc);dc(this.vc,this.im)};n.prototype.translate=function(c,a){if(0!==c||0!==a){this.me[0]=c;this.me[1]=a;this.me[2]=0;var b=this.vc,f=this.me,g=f[0],d=f[1],f=f[2];b[12]=b[0]*g+b[4]*d+b[8]*f+b[12];b[13]=b[1]*g+b[5]*d+b[9]*f+b[13];b[14]=b[2]*g+b[6]*d+b[10]*f+b[14];b[15]=b[3]*g+b[7]*d+b[11]*f+b[15]}};n.prototype.scale=function(c,a){if(1!==c||1!==a)this.me[0]=c,this.me[1]=a,this.me[2]=1,dc(this.vc,this.me)};n.prototype.Vo=
function(c){if(0!==c){var a=this.vc,b,f=Math.sin(c);c=Math.cos(c);var g=a[0],d=a[1],l=a[2],u=a[3],k=a[4],r=a[5],s=a[6],e=a[7];b?a!==b&&(b[8]=a[8],b[9]=a[9],b[10]=a[10],b[11]=a[11],b[12]=a[12],b[13]=a[13],b[14]=a[14],b[15]=a[15]):b=a;b[0]=g*c+k*f;b[1]=d*c+r*f;b[2]=l*c+s*f;b[3]=u*c+e*f;b[4]=g*-f+k*c;b[5]=d*-f+r*c;b[6]=l*-f+s*c;b[7]=u*-f+e*c}};n.prototype.ne=function(){for(var c=!1,a=0;16>a;a++)if(this.Ln[a]!==this.vc[a]){c=!0;break}c&&(c=this.yc(),c.type=5,c.ba?cc(this.vc,c.ba):c.ba=bc(this.vc),cc(this.vc,
this.Ln),this.Kb=this.yb=!1)};f.prototype.sr=function(){this.n.bindTexture(this.n.TEXTURE_2D,this.Nc)};f.prototype.tr=function(){var c=this.n;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.Nc);c.activeTexture(c.TEXTURE0)};f.prototype.pr=function(){var c=this.zo,a=this.u;a.Nh=c;a=a.kg;a.Af&&a.Di!==c&&(a.Di=c,this.n.uniform1f(a.Af,c))};f.prototype.mr=function(){this.n.drawElements(this.n.TRIANGLES,this.nc,this.n.UNSIGNED_SHORT,2*this.ac)};f.prototype.or=function(){this.n.blendFunc(this.ac,
this.nc)};f.prototype.ur=function(){var c,a,b,f=this.u.Pa,g=this.u.Xm;c=0;for(a=f.length;c<a;c++)b=f[c],c===g&&b.Bi?(b.Zl(this.ba),b.Be=!0):b.Be=!1;cc(this.ba,this.u.Wj)};f.prototype.nr=function(){var c=this.n,a=this.u;this.Nc?(a.Je===this.Nc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),a.Je=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,a.gs),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Nc,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,
c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};f.prototype.kr=function(){var c=this.n;0===this.ac?(c.clearColor(this.ba[0],this.ba[1],this.ba[2],this.ba[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.ba[0],this.ba[1],this.ba[2],this.ba[3]),c.clearColor(0,0,0,0),c.clear(this.n.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};f.prototype.lr=function(){var c=this.n,a=this.u,b=a.Pa[1];c.useProgram(b.mh);!b.Be&&b.Bi&&(b.Zl(a.Wj),b.Be=!0);c.enableVertexAttribArray(b.uc);
c.bindBuffer(c.ARRAY_BUFFER,a.ul);c.vertexAttribPointer(b.uc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.ac/4,this.nc);b=a.kg;c.useProgram(b.mh);0<=b.uc&&(c.enableVertexAttribArray(b.uc),c.bindBuffer(c.ARRAY_BUFFER,a.yh[a.kd]),c.vertexAttribPointer(b.uc,2,c.FLOAT,!1,0,0));0<=b.de&&(c.enableVertexAttribArray(b.de),c.bindBuffer(c.ARRAY_BUFFER,a.qh[a.kd]),c.vertexAttribPointer(b.de,2,c.FLOAT,!1,0,0))};f.prototype.qr=function(){var c=this.n,a=this.u,b=a.Pa[this.ac];a.Xm=this.ac;a.kg=b;c.useProgram(b.mh);
!b.Be&&b.Bi&&(b.Zl(a.Wj),b.Be=!0);b.Af&&b.Di!==a.Nh&&(b.Di=a.Nh,c.uniform1f(b.Af,a.Nh));0<=b.uc&&(c.enableVertexAttribArray(b.uc),c.bindBuffer(c.ARRAY_BUFFER,a.yh[a.kd]),c.vertexAttribPointer(b.uc,2,c.FLOAT,!1,0,0));0<=b.de&&(c.enableVertexAttribArray(b.de),c.bindBuffer(c.ARRAY_BUFFER,a.qh[a.kd]),c.vertexAttribPointer(b.de,2,c.FLOAT,!1,0,0))};f.prototype.rr=function(){var c,a,b=this.u.kg,f=this.n;c=this.ba;b.Qg&&this.u.Je!==this.Nc&&(f.activeTexture(f.TEXTURE1),f.bindTexture(f.TEXTURE_2D,this.Nc),
this.u.Je=this.Nc,f.activeTexture(f.TEXTURE0));var g=c[0];b.Yk&&g!==b.bo&&(b.bo=g,f.uniform1f(b.Yk,g));g=c[1];b.Xk&&g!==b.ao&&(b.ao=g,f.uniform1f(b.Xk,g));g=c[2];a=c[3];!b.Oe||g===b.Wn&&a===b.Xn||(b.Wn=g,b.Xn=a,f.uniform2f(b.Oe,g,a));g=c[4];a=c[5];!b.Ne||g===b.Un&&a===b.Vn||(b.Un=g,b.Vn=g,f.uniform2f(b.Ne,g,a));g=c[6];b.Pg&&g!==b.Zn&&(b.Zn=g,f.uniform1f(b.Pg,g));g=c[7];b.Og&&g!==b.Yn&&(b.Yn=g,f.uniform1f(b.Og,g));g=c[8];a=c[9];!b.Sg||g===b.fo&&a===b.ho||(b.fo=g,b.ho=a,f.uniform2f(b.Sg,g,a));g=c[10];
a=c[11];!b.Rg||g===b.co&&a===b.eo||(b.co=g,b.eo=a,f.uniform2f(b.Rg,g,a));b.Zk&&f.uniform1f(b.Zk,Wa()/1E3);if(b.M.length)for(c=0,a=b.M.length;c<a;c++)g=this.fp[c],g!==b.Sk[c]&&(b.Sk[c]=g,f.uniform1f(b.M[c][1],g))};n.prototype.yc=function(){this.Rc===this.jd.length&&this.jd.push(new f(0,this));return this.jd[this.Rc++]};n.prototype.Wd=function(){if(0!==this.Rc&&!this.n.isContextLost()){var c=this.n;0<this.Hf&&(c.bindBuffer(c.ARRAY_BUFFER,this.ul),c.bufferData(c.ARRAY_BUFFER,this.Lo.subarray(0,this.Hf),
c.STREAM_DRAW),a&&0<=a.uc&&"<point>"===a.name&&c.vertexAttribPointer(a.uc,4,c.FLOAT,!1,0,0));if(0<this.fd){var a=this.kg;c.bindBuffer(c.ARRAY_BUFFER,this.yh[this.kd]);c.bufferData(c.ARRAY_BUFFER,this.em.subarray(0,this.fd),c.STREAM_DRAW);a&&0<=a.uc&&"<point>"!==a.name&&c.vertexAttribPointer(a.uc,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.qh[this.kd]);c.bufferData(c.ARRAY_BUFFER,this.Rl.subarray(0,this.fd),c.STREAM_DRAW);a&&0<=a.de&&"<point>"!==a.name&&c.vertexAttribPointer(a.de,2,c.FLOAT,
!1,0,0)}for(var b,c=0,a=this.Rc;c<a;c++)switch(b=this.jd[c],b.type){case 1:b.mr();break;case 2:b.sr();break;case 3:b.pr();break;case 4:b.or();break;case 5:b.ur();break;case 6:b.nr();break;case 7:b.kr();break;case 8:b.lr();break;case 9:b.qr();break;case 10:b.rr();break;case 11:b.tr()}this.Hf=this.fd=this.Rc=0;this.Kb=this.yb=!1;this.kd++;4<=this.kd&&(this.kd=0)}};n.prototype.Te=function(c){if(c!==this.Mn){var a=this.yc();a.type=3;this.Mn=a.zo=c;this.Kb=this.yb=!1}};n.prototype.Pb=function(c){if(c!==
this.Ie){var a=this.yc();a.type=2;this.Ie=a.Nc=c;this.Kb=this.yb=!1}};n.prototype.ie=function(c,a){if(c!==this.Nn||a!==this.Kn){var b=this.yc();b.type=4;b.ac=c;b.nc=a;this.Nn=c;this.Kn=a;this.Kb=this.yb=!1}};n.prototype.$o=function(){this.ie(this.n.ONE,this.n.ONE_MINUS_SRC_ALPHA)};n.prototype.eh=function(c,a,b,f,g,d,l,u){15992<=this.fd&&this.Wd();var k=this.fd,r=this.em,s=this.Rl;if(this.yb)this.jd[this.Rc-1].nc+=6;else{var e=this.yc();e.type=1;e.ac=k/4*3;e.nc=6;this.yb=!0;this.Kb=!1}r[k]=c;s[k++]=
0;r[k]=a;s[k++]=0;r[k]=b;s[k++]=1;r[k]=f;s[k++]=0;r[k]=g;s[k++]=1;r[k]=d;s[k++]=1;r[k]=l;s[k++]=0;r[k]=u;s[k++]=1;this.fd=k};n.prototype.fe=function(c,a,b,f,g,d,l,u,k){15992<=this.fd&&this.Wd();var r=this.fd,s=this.em,e=this.Rl;if(this.yb)this.jd[this.Rc-1].nc+=6;else{var m=this.yc();m.type=1;m.ac=r/4*3;m.nc=6;this.yb=!0;this.Kb=!1}var m=k.left,w=k.top,z=k.right;k=k.bottom;s[r]=c;e[r++]=m;s[r]=a;e[r++]=w;s[r]=b;e[r++]=z;s[r]=f;e[r++]=w;s[r]=g;e[r++]=z;s[r]=d;e[r++]=k;s[r]=l;e[r++]=m;s[r]=u;e[r++]=
k;this.fd=r};n.prototype.At=function(c,a,b,f){7996<=this.Hf&&this.Wd();var g=this.Hf,d=this.Lo;if(this.Kb)this.jd[this.Rc-1].nc++;else{var l=this.yc();l.type=8;l.ac=g;l.nc=1;this.Kb=!0;this.yb=!1}d[g++]=c;d[g++]=a;d[g++]=b;d[g++]=f;this.Hf=g};n.prototype.cd=function(c){if(this.Gg!==c){if(!this.Pa[c]){if(0===this.Gg)return;c=0}var a=this.yc();a.type=9;this.Gg=a.ac=c;this.Kb=this.yb=!1}};n.prototype.bh=function(c){c=this.Pa[c];return!(!c.Oe&&!c.Ne)};n.prototype.wl=function(c){c=this.Pa[c];return!!(c.Oe||
c.Ne||c.Wm)};n.prototype.Ht=function(c){c=this.Pa[c];return 0!==c.ck||0!==c.dk};n.prototype.ws=function(c){return this.Pa[c].ck};n.prototype.xs=function(c){return this.Pa[c].dk};n.prototype.ys=function(c,a){return this.Pa[c].M[a][2]};n.prototype.Ui=function(c){return this.Pa[c].Em};n.prototype.Mf=function(c,a,b,f,g,d,l,u,k,r,s,e,m,w){var z=this.Pa[this.Gg],D,A;if(z.Os||w.length){D=this.yc();D.type=10;D.ba?cc(this.vc,D.ba):D.ba=bc();A=D.ba;A[0]=a;A[1]=b;A[2]=f;A[3]=g;A[4]=d;A[5]=l;A[6]=u;A[7]=k;A[8]=
r;A[9]=s;A[10]=e;A[11]=m;D.Nc=z.Qg?c:null;if(w.length)for(b=D.fp,b.length=w.length,c=0,a=w.length;c<a;c++)b[c]=w[c];this.Kb=this.yb=!1}};n.prototype.clear=function(c,a,b,f){var g=this.yc();g.type=7;g.ac=0;g.ba||(g.ba=bc());g.ba[0]=c;g.ba[1]=a;g.ba[2]=b;g.ba[3]=f;this.Kb=this.yb=!1};n.prototype.clearRect=function(c,a,b,f){if(!(0>b||0>f)){var g=this.yc();g.type=7;g.ac=1;g.ba||(g.ba=bc());g.ba[0]=c;g.ba[1]=a;g.ba[2]=b;g.ba[3]=f;this.Kb=this.yb=!1}};n.prototype.Gt=function(){this.Wd();this.n.flush()};
var p=[],q={};n.prototype.cr=function(){p.length=0;q={}};n.prototype.xf=function(c,a,b,f){a=!!a;b=!!b;var g=c.src+","+a+","+b+(a?",undefined":""),d=null;if("undefined"!==typeof c.src&&q.hasOwnProperty(g))return d=q[g],d.Ch++,d;this.Wd();var l=this.n,u=ia(c.width)&&ia(c.height),d=l.createTexture();l.bindTexture(l.TEXTURE_2D,d);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var k=l.RGBA,r=l.RGBA,s=l.UNSIGNED_BYTE;if(f&&!this.Ge)switch(f){case 1:r=k=l.RGB;break;case 2:s=l.UNSIGNED_SHORT_4_4_4_4;
break;case 3:s=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:r=k=l.RGB,s=l.UNSIGNED_SHORT_5_6_5}if(!u&&a){f=document.createElement("canvas");f.width=ka(c.width);f.height=ka(c.height);var e=f.getContext("2d");e.webkitImageSmoothingEnabled=b;e.mozImageSmoothingEnabled=b;e.msImageSmoothingEnabled=b;e.imageSmoothingEnabled=b;e.drawImage(c,0,0,c.width,c.height,0,0,f.width,f.height);l.texImage2D(l.TEXTURE_2D,0,k,r,s,f)}else l.texImage2D(l.TEXTURE_2D,0,k,r,s,c);a?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),
l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));b?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),u&&this.an?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,
l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.Ie=null;d.fg=c.width;d.eg=c.height;d.Ch=1;d.Pm=g;p.push(d);return q[g]=d};n.prototype.Td=function(c,a,b){var f;this.Wd();var g=this.n;this.Ge&&(f=!1);var d=g.createTexture();g.bindTexture(g.TEXTURE_2D,d);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,c,a,0,g.RGBA,f?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);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);g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_MAG_FILTER,b?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,b?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.Ie=null;d.fg=c;d.eg=a;p.push(d);return d};n.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.Ch&&1<c.Ch?c.Ch--:(this.Wd(),c===this.Ie&&(this.n.bindTexture(this.n.TEXTURE_2D,null),this.Ie=null),c===this.Je&&(this.n.activeTexture(this.n.TEXTURE1),this.n.bindTexture(this.n.TEXTURE_2D,null),this.n.activeTexture(this.n.TEXTURE0),this.Je=
null),Ca(p,c),"undefined"!==typeof c.Pm&&delete q[c.Pm],this.n.deleteTexture(c)))};n.prototype.bd=function(c){if(c!==this.Uo){var a=this.yc();a.type=6;this.Uo=a.Nc=c;this.Kb=this.yb=!1}};jb=n})();
(function(){function n(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function h(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function f(e){if(e&&(e.getContext||e.dc)&&!e.c2runtime){e.c2runtime=this;var m=this;this.pc=(this.Ag=/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.cb=!!e.dc;this.of="undefined"!==typeof window.AppMobi||this.cb;this.oc=!!window.c2cocoonjs;this.Ic=!!window.c2ejecta;this.oc&&(CocoonJS.App.onSuspended.addEventListener(function(){m.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){m.setSuspended(!1)}));this.Ic&&(document.addEventListener("pagehide",function(){m.setSuspended(!0)}),document.addEventListener("pageshow",
function(){m.setSuspended(!1)}),document.addEventListener("resize",function(){m.setSize(window.innerWidth,window.innerHeight)}));this.ma=this.cb||this.oc||this.Ic;this.Ge=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Fn=/tizen/i.test(navigator.userAgent);this.ii=/android/i.test(navigator.userAgent)&&!this.Fn&&!this.Ge;this.Rk=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Ge;this.Jn=/ipad/i.test(navigator.userAgent);this.oi=this.Rk||this.Jn||this.Ic;this.ct=this.Rk&&/os\s6/i.test(navigator.userAgent);this.zg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Ge;this.Lk=/amazonwebappplatform/i.test(navigator.userAgent);this.Vs=/firefox/i.test(navigator.userAgent);this.En=/safari/i.test(navigator.userAgent)&&!this.zg&&!this.Ge;this.Ys=/windows/i.test(navigator.userAgent);this.ae="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Hn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.$s=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.rf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.ki=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Gn=this.Hn||this.$s||this.ki;this.Us=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.ji=this.ii&&!this.zg&&!this.Ag&&!this.Vs&&!this.Lk&&!this.ma;this.devicePixelRatio=1;this.td=this.pc||this.Ag||this.of||this.oc||this.ii||this.oi||this.rf||this.ki||this.Us||this.Fn||this.Ic;this.td||(this.td=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.ae||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.ae=!0);this.canvas=e;this.Sm=document.getElementById("c2canvasdiv");this.ga=this.u=this.n=null;this.jk="";this.Xh=!1;this.so=this.uo=0;this.canvas.oncontextmenu=function(e){e.preventDefault&&e.preventDefault();return!1};this.canvas.onselectstart=function(e){e.preventDefault&&e.preventDefault();return!1};this.cb&&(window.c2runtime=this);this.ae&&(window.ondragover=function(e){e.preventDefault();return!1},window.ondrop=function(e){e.preventDefault();return!1},require("nw.gui").App.clearCache());
this.ji&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=e.width;this.height=e.height;this.O=this.width;this.N=this.height;this.Lh=this.width;this.Kh=this.height;this.Ig=window.innerWidth;this.Hg=window.innerHeight;this.js=!1;this.da=!0;this.Cg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.q=[];this.Ea=[];this.Vk={};this.Lc=[];this.bk={};this.od=[];this.Zf=[];this.qj=[];this.Rq=[];this.Sq=[];this.ue={};this.Mk=
this.Zd=!1;this.Jc=0;this.Ok=!1;this.Tc=[];this.ud=this.ob=this.wi=this.Kl="";this.oh=this.jp=!1;this.Uj=this.Tg=this.Vd=this.we=0;this.Tf=1;this.Zb=new $a;this.gd=new $a;this.Gi=this.Zh=this.Uh=this.uh=this.Le=this.ik=this.si=0;this.gg=null;this.Zj=[];this.ak=[];this.Th=-1;this.$k=[[]];this.Wl=this.Ci=0;this.yl(null);this.ng=this.no=this.Wg=0;this.ph=[];this.Tl=this.zl=-1;this.Fg=!0;this.zf=0;this.Bg=!1;this.au=0;this.cf=null;this.eb=this.nf=!1;this.ro=new ba;this.jl=new ba;this.kl=new ba;this.Kt=
[];new bb([]);new bb([]);this.bf=[];this.ug={};this.ff={};this.$e={};this.Yf={};this.Mm={};this.Qn=this.vi=this.Lb=this.$b=this.Pn=this.ti=this.ka=null;this.Wf=this.Qk=!1;this.kk=[null,null];this.ze=0;this.fk="";this.yd={};this.cj=this.yf=null;this.Fi=[];this.Lt()}}function p(e){e.target.result.createObjectStore("saves",{keyPath:"slot"})}function q(e,m,d,a){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=p;b.onerror=a;b.onsuccess=function(b){b=b.target.result;b.onerror=a;b.transaction(["saves"],
"readwrite").objectStore("saves").put({slot:e,data:m}).onsuccess=d}}function c(e,m,d){var a=indexedDB.open("_C2SaveStates");a.onupgradeneeded=p;a.onerror=d;a.onsuccess=function(a){a=a.target.result;a.onerror=d;var b=a.transaction(["saves"]).objectStore("saves").get(e);b.onsuccess=function(){b.result?m(b.result.data):m(null)}}}function a(){M("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+=
"?continuous"}function b(e){var m,d={};for(m in e)!e.hasOwnProperty(m)||e[m]instanceof ba||e[m]&&"undefined"!==typeof e[m].vv||(d[m]=e[m]);return d}f.prototype.Lt=function(){var e=this,m;m=this.rf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var d="data.js";if(this.Hn||this.rf||this.ki)d="data.json";m.open("GET",d,!0);var a=!1;if(!this.ma&&"response"in m&&"responseType"in m)try{m.responseType="json",a="json"===m.responseType}catch(b){a=!1}if(!a&&"responseType"in m)try{m.responseType=
"text"}catch(c){}if("overrideMimeType"in m)try{m.overrideMimeType("application/json; charset=utf-8")}catch(k){}this.rf?m.onreadystatechange=function(){4===m.readyState&&e.yi(JSON.parse(m.responseText))}:(m.onload=function(){if(a)e.yi(m.response);else if(e.Ic){var d=m.responseText,d=d.substr(d.indexOf("{"));e.yi(JSON.parse(d))}else e.yi(JSON.parse(m.responseText))},m.onerror=function(e){ea("Error requesting "+d+":");ea(e)});m.send()};f.prototype.Ss=function(){var e=this,m,d,a,b,c,k,l,f,r;this.devicePixelRatio=
(this.qf=(!this.ma||this.Ic)&&this.nu&&!this.ji)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.jb();d=!(!this.js&&(!this.Fj||this.ae||this.Gn||this.rf||this.Ag||this.pc||this.Lk));0<this.xb&&this.setSize(n(),h(),!0);try{this.Er&&(this.oc||this.Ic||!this.ma)&&(m={alpha:d,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.n=this.canvas.getContext("webgl",m)||this.canvas.getContext("experimental-webgl",m))}catch(g){}if(this.n){this.ma||
(this.fb=document.createElement("canvas"),jQuery(this.fb).appendTo(this.canvas.parentNode),this.fb.oncontextmenu=function(){return!1},this.fb.onselectstart=function(){return!1},this.fb.width=this.Lh,this.fb.height=this.Kh,jQuery(this.fb).css({width:this.Lh+"px",height:this.Kh+"px"}),this.No(),this.tl=this.fb.getContext("2d"));this.u=new jb(this.n,this.td);this.u.Nf(this.canvas.width,this.canvas.height);this.u.an=0!==this.wr;this.ga=null;this.canvas.addEventListener("webglcontextlost",function(m){m.preventDefault();
e.ot();M("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){e.u.zn();e.u.Nf(e.u.width,e.u.height,!0);e.$b=null;e.Lb=null;e.kk[0]=null;e.kk[1]=null;e.pt();e.da=!0;M("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);m=0;for(d=this.q.length;m<d;m++)for(c=this.q[m],a=0,b=c.H.length;a<b;a++)l=c.H[a],l.hb=this.u.tk(l.id),this.Wf=this.Wf||this.u.bh(l.hb);m=0;for(d=this.Lc.length;m<d;m++){f=this.Lc[m];a=
0;for(b=f.H.length;a<b;a++)l=f.H[a],l.hb=this.u.tk(l.id);a=0;for(b=f.L.length;a<b;a++)for(r=f.L[a],c=0,k=r.H.length;c<k;c++)l=r.H[c],l.hb=this.u.tk(l.id),this.Wf=this.Wf||this.u.bh(l.hb)}}else{if(0<this.xb&&this.cb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ga=AppMobi.canvas.getContext("2d");try{this.ga.samplingMode=this.T?"smooth":"sharp",this.ga.globalScale=1,this.ga.HTML5CompatibilityMode=!0,this.ga.imageSmoothingEnabled=this.T}catch(u){}0!==
this.width&&0!==this.height&&(this.ga.width=this.width,this.ga.height=this.height)}this.ga||(m=this.oc?{antialias:!!this.T,alpha:d}:{alpha:d},this.ga=this.canvas.getContext("2d",m),this.ga.webkitImageSmoothingEnabled=this.T,this.ga.mozImageSmoothingEnabled=this.T,this.ga.msImageSmoothingEnabled=this.T,this.ga.imageSmoothingEnabled=this.T);this.tl=this.fb=null}this.pp=function(m){e.Wa(!1,m)};window==window.top||this.ma||this.Gn||this.rf||(document.addEventListener("mousedown",function(){window.focus()},
!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.oc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(M("Reloading for continuous preview"),this.wi="__c2_continuouspreview",this.oh=!0),this.yt&&!this.td&&(jQuery(window).focus(function(){e.setSuspended(!1)}),jQuery(window).blur(function(){e.setSuspended(!0)})));this.ma||(m=function(e){if(ib(e)&&document.activeElement&&
document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(m){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",m):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",m):document.addEventListener("touchstart",m),document.addEventListener("mousedown",m));0===this.xb&&this.qf&&1<this.devicePixelRatio&&this.setSize(this.Ma,this.La,!0);this.up();this.Ls();this.go();this.Y={}};f.prototype.setSize=
function(e,m,d){var a=0,b=0,c=0,k=0,k=0,l=this.ct&&this.En&&!navigator.standalone&&!this.ma&&!this.pc;l&&(m+=60);if(this.Ig!==e||this.Hg!==m||d){this.Ig=e;this.Hg=m;var f=this.xb,r=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Bg)&&!this.pc;if(r||0!==this.xb||d)r&&0<this.ze&&(f=this.ze),d=this.devicePixelRatio,4<=f?(c=this.Ma/this.La,e/m>c?(c*=m,5===f?(k=c*d/this.Ma,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),c=this.Ma*k/d,k=this.La*
k/d,a=(e-c)/2,b=(m-k)/2,e=c,m=k):(a=(e-c)/2,e=c)):(k=e/c,5===f?(k=k*d/this.La,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),c=this.Ma*k/d,k=this.La*k/d,a=(e-c)/2,b=(m-k)/2,e=c):b=(m-k)/2,m=k),r&&!this.ae&&(b=a=0)):this.ae&&this.Bg&&0===this.hn&&(a=Math.floor((e-this.Ma)/2),b=Math.floor((m-this.La)/2),e=this.Ma,m=this.La),2>f&&(this.dg=d),this.qf&&this.Jn&&1<d&&(1024<=e&&(e=1023),1024<=m&&(m=1023)),this.Lh=Math.round(e),this.Kh=Math.round(m),this.width=Math.round(e*d),this.height=Math.round(m*d),this.da=
!0,this.Hp?(this.O=this.width,this.N=this.height,this.lc=!0):this.width<this.Ma&&this.height<this.La||1===f?(this.O=this.width,this.N=this.height,this.lc=!0):(this.O=this.Ma,this.N=this.La,this.lc=!1,2===f?(c=this.Ma/this.La,f=this.Ig/this.Hg,f<c?this.O=this.N*f:f>c&&(this.N=this.O/f)):3===f&&(c=this.Ma/this.La,f=this.Ig/this.Hg,f>c?this.O=this.N*f:f<c&&(this.N=this.O/f))),this.Sm&&!this.ma&&(jQuery(this.Sm).css({width:Math.round(e)+"px",height:Math.round(m)+"px","margin-left":Math.floor(a)+"px",
"margin-top":Math.floor(b)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(e)+"px",height:Math.round(m)+"px"})),this.canvas&&(this.canvas.width=Math.round(e*d),this.canvas.height=Math.round(m*d),this.Ic?(this.canvas.style.left=Math.floor(a)+"px",this.canvas.style.top=Math.floor(b)+"px",this.canvas.style.width=Math.round(e)+"px",this.canvas.style.height=Math.round(m)+"px"):this.qf&&!this.ma&&jQuery(this.canvas).css({width:Math.round(e)+"px",height:Math.round(m)+
"px"})),this.fb&&(this.fb.width=Math.round(e),this.fb.height=Math.round(m),jQuery(this.fb).css({width:Math.round(e)+"px",height:Math.round(m)+"px"})),this.u&&this.u.Nf(Math.round(e*d),Math.round(m*d)),this.cb&&this.ga&&(this.ga.width=Math.round(e),this.ga.height=Math.round(m)),this.ga&&(this.ga.webkitImageSmoothingEnabled=this.T,this.ga.mozImageSmoothingEnabled=this.T,this.ga.msImageSmoothingEnabled=this.T,this.ga.imageSmoothingEnabled=this.T),this.up(),this.ma||!l&&!this.Rk||window.setTimeout(function(){window.scrollTo(0,
1)},100)}};f.prototype.up=function(){if(this.Uq&&0!==this.rl){var e="portrait";2===this.rl&&(e="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(e):screen.lockOrientation?screen.lockOrientation(e):screen.webkitLockOrientation?screen.webkitLockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):screen.msLockOrientation&&screen.msLockOrientation(e)}};f.prototype.ot=function(){this.u.cr();this.Qk=!0;var e,m,d;e=0;for(m=this.q.length;e<m;e++)d=this.q[e],
d.Hi&&d.Hi()};f.prototype.pt=function(){this.Qk=!1;var e,m,d;e=0;for(m=this.q.length;e<m;e++)d=this.q[e],d.Ji&&d.Ji()};f.prototype.No=function(){if(!this.ma){var e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Bg)&&!this.pc?jQuery(this.canvas).offset():jQuery(this.canvas).position();e.position="absolute";jQuery(this.fb).css(e)}};var v=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||
window.oCancelAnimationFrame;f.prototype.setSuspended=function(e){var m;if(e&&!this.Cg)for(M("[Construct 2] Suspending"),this.Cg=!0,-1!==this.zl&&v&&v(this.zl),-1!==this.Tl&&clearTimeout(this.Tl),e=0,m=this.ph.length;e<m;e++)this.ph[e](!0);else if(!e&&this.Cg){M("[Construct 2] Resuming");this.Cg=!1;this.si=Wa();this.Le=Wa();e=this.Tg=this.Zh=0;for(m=this.ph.length;e<m;e++)this.ph[e](!1);this.Wa(!1)}};f.prototype.Bm=function(e){this.ph.push(e)};f.prototype.Id=function(e){return this.Fi[e]};f.prototype.yi=
function(e){e&&e.project||ea("Project model unavailable");e=e.project;this.name=e[0];this.gn=e[1];this.xb=e[12];this.hn=e[12];this.Ma=e[10];this.La=e[11];this.Go=this.Ma/2;this.Ho=this.La/2;this.ma&&!this.Ic&&(4<=e[12]||0===e[12])&&(M("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.hn=this.xb=3);this.cm=e[18];this.Ng=e[19];0===this.Ng&&(this.yf=new Image,this.yf.src="loading-logo.png");this.Wg=e[21];this.Fi=gc();this.dd=new W(this);
var m,d,a,b,c,k,l,f,r;m=0;for(d=e[2].length;m<d;m++)l=e[2][m],a=this.Id(l[0]),kb(l,a.prototype),r=new a(this),r.aj=l[1],r.be=l[2],r.lo=l[9],r.Z&&r.Z(),this.plugins.push(r);this.Fi=gc();m=0;for(d=e[3].length;m<d;m++){l=e[3][m];c=this.Id(l[1]);r=null;a=0;for(b=this.plugins.length;a<b;a++)if(this.plugins[a]instanceof c){r=this.plugins[a];break}var g=new r.Da(r);g.name=l[0];g.C=l[2];g.Kk=l[3].slice(0);g.pu=l[3].length;g.Vq=l[4];g.ls=l[5];g.P=l[11];g.C?(g.Ei=[],g.pd=this.ng++,g.ta=null):(g.Ei=null,g.pd=
-1,g.ta=[]);g.Vh=null;g.hf=null;g.bn=null;g.Yb=!1;g.Hb=null;l[6]?(g.jj=l[6][0],g.Sl=l[6][1],g.sh=l[6][2]):(g.jj=null,g.Sl=0,g.sh=0);g.Gb=l[7]?l[7]:null;g.index=m;g.e=[];g.Ph=[];g.ke=[new lb(g)];g.nd=0;g.jc=null;g.ir=0;g.Qf=!0;g.sj=mb;g.ps=nb;g.us=ob;g.ha=pb;g.dh=qb;g.xl=sb;g.If=tb;g.ai=ub;g.mk=vb;g.qk=wb;g.Md=xb;g.nn=yb;g.Sj=new cb(this.Ma,this.La);g.Fm=!0;g.Gm=!1;g.Y={};g.toString=zb;g.Ea=[];a=0;for(b=l[8].length;a<b;a++){f=l[8][a];var u=this.Id(f[1]),s=null;c=0;for(k=this.Ea.length;c<k;c++)if(this.Ea[c]instanceof
u){s=this.Ea[c];break}s||(s=new u(this),s.mo=[],s.hl=new ba,s.Z&&s.Z(),this.Ea.push(s));-1===s.mo.indexOf(g)&&s.mo.push(g);c=new s.Da(s,g);c.name=f[0];c.P=f[2];c.Z();g.Ea.push(c)}g.global=l[9];g.Nk=l[10];g.H=[];a=0;for(b=l[12].length;a<b;a++)g.H.push({id:l[12][a][0],name:l[12][a][1],hb:-1,Qa:!0,index:a});g.Hv=l[13];this.cm&&!g.C&&!g.Nk&&r.be||g.Z();g.name&&(this.types[g.name]=g);this.q.push(g);r.aj&&(a=new r.ra(g),a.uid=this.Wg++,a.Qo=this.no++,a.De=0,a.sg=Ab,a.toString=Bb,a.ca=l[14],a.Z(),g.e.push(a),
this.yd[a.uid.toString()]=a)}m=0;for(d=e[4].length;m<d;m++)for(c=e[4][m],k=this.q[c[0]],a=1,b=c.length;a<b;a++)l=this.q[c[a]],l.ta.push(k),k.Ei.push(l);m=0;for(d=e[27].length;m<d;m++){c=e[27][m];k=[];a=0;for(b=c.length;a<b;a++)k.push(this.q[c[a]]);a=0;for(b=k.length;a<b;a++)k[a].Yb=!0,k[a].Hb=k}if(0<this.ng)for(m=0,d=this.q.length;m<d;m++)if(l=this.q[m],!l.C&&l.ta.length){l.Vh=Array(this.ng);l.hf=Array(this.ng);l.bn=Array(this.ng);g=[];a=s=u=f=0;for(b=l.ta.length;a<b;a++)for(r=l.ta[a],l.Vh[r.pd]=
f,f+=r.pu,l.hf[r.pd]=u,u+=r.Vq,l.bn[r.pd]=s,s+=r.ls,c=0,k=r.H.length;c<k;c++)g.push(xa({},r.H[c]));l.H=g.concat(l.H);a=0;for(b=l.H.length;a<b;a++)l.H[a].index=a}m=0;for(d=e[5].length;m<d;m++)l=e[5][m],a=new Cb(this,l),this.Vk[a.name]=a,this.Lc.push(a);m=0;for(d=e[6].length;m<d;m++)l=e[6][m],a=new Db(this,l),this.bk[a.name]=a,this.od.push(a);m=0;for(d=this.od.length;m<d;m++)this.od[m].Ba();m=0;for(d=this.od.length;m<d;m++)this.od[m].Yl();m=0;for(d=this.qj.length;m<d;m++)this.qj[m].Ba();this.qj.length=
0;this.Tq=e[7];this.fk=e[8];this.ad=e[9];this.dg=1;this.Er=e[13];this.T=e[14];this.Fj=e[15];this.nu=e[17];this.rl=e[20];this.Uq=0<this.rl;this.yt=e[22];this.lc=this.Hp=e[23];this.wr=e[24];this.Et=e[25];this.fj=Date.now();this.Fi.length=0;this.Ss()};var g=!1;f.prototype.gm=function(e,m){e.cocoonLazyLoad=!0;e.onerror=function(m){g=e.Om=!0;console&&console.error&&console.error("Error loading image '"+e.src+"': ",m)};this.Ic?e.src=m:e.src||("undefined"!==typeof XAPKReader?XAPKReader.get(m,function(m){e.src=
m},function(d){g=e.Om=!0;console&&console.error&&console.error("Error extracting image '"+m+"' from expansion file: ",d)}):e.src=m);this.Zf.push(e)};f.prototype.hs=function(e){var m,d;m=0;for(d=this.Zf.length;m<d;m++)if(this.Zf[m].dr===e)return this.Zf[m];return null};var d=0,l=!1;f.prototype.Ls=function(){this.cf&&(d=this.cf.Yt(this.Tq))};f.prototype.Hm=function(){var e=d,m=0,a=0,b=!0,c,k,a=0;for(c=this.Zf.length;a<c;a++){k=this.Zf[a];var g=k.Um;if(!g||0>=g)g=5E4;e+=g;k.src&&(k.complete||k.loaded)&&
!k.Om?m+=g:b=!1}b&&this.Et&&this.cf&&(l||(this.cf.bu(),l=!0),a=this.cf.vs(),m+=a,a<d&&(b=!1));this.Se=0==e?0:m/e;return b};f.prototype.go=function(){if(this.ga||this.u){var e=this.ga||this.tl;this.fb&&this.No();this.Se=0;this.On=-1;if(this.Hm())this.Ms();else{var m=Date.now()-this.fj;if(e){var d=this.width,a=this.height,b=this.devicePixelRatio;this.fb&&(d=this.Lh,a=this.Kh,b=1);if(3!==this.Ng&&(this.oc||500<=m&&this.On!=this.Se)){e.clearRect(0,0,d,a);var m=d/2,a=a/2,d=0===this.Ng&&this.yf.complete,
c=40*b,k=0,l=80*b,f;d&&(l=this.yf.width*b,f=this.yf.height*b,c=l/2,k=f/2,e.drawImage(this.yf,R(m-c),R(a-k),l,f));1>=this.Ng?(m=R(m-c)+.5,a=R(a+(k+(d?12*b:0)))+.5,e.fillStyle=g?"red":"DodgerBlue",e.fillRect(m,a,Math.floor(l*this.Se),6*b),e.strokeStyle="black",e.strokeRect(m,a,l,6*b),e.strokeStyle="white",e.strokeRect(m-1*b,a-1*b,l+2*b,8*b)):2===this.Ng&&(e.font=this.Ic?"12pt ArialMT":"12pt Arial",e.fillStyle=g?"#f00":"#999",e.Gv="middle",b=Math.round(100*this.Se)+"%",d=e.measureText?e.measureText(b):
null,e.fillText(b,m-(d?d.width:0)/2,a))}this.On=this.Se}setTimeout(function(e){return function(){e.go()}}(this),this.oc?10:100)}}};f.prototype.Ms=function(){this.fb&&(this.canvas.parentNode.removeChild(this.fb),this.fb=this.tl=null);this.fj=Date.now();this.Le=Wa();var e,m,d;if(this.cm)for(e=0,m=this.q.length;e<m;e++)d=this.q[e],d.C||d.Nk||!d.ja.be||d.Z();else this.Fg=!1;e=0;for(m=this.Lc.length;e<m;e++)this.Lc[e].er();2<=this.xb&&(e=this.Ma/this.La,m=this.width/this.height,this.dg=2!==this.xb&&m>
e||2===this.xb&&m<e?this.height/this.La:this.width/this.Ma);this.gn?this.Vk[this.gn].Pl():this.Lc[0].Pl();this.cm||(this.zf=1,this.trigger(W.prototype.i.nm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();e=0;for(m=this.q.length;e<m;e++)d=this.q[e],d.nt&&d.nt();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Wa(!1);this.cb&&AppMobi.webview.execute("onGameReady();")};var u=window.requestAnimationFrame||
window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.Wa=function(e,m,d){if(this.ka){var a=Wa();if(d||!this.Cg||e){e||(u?this.zl=u(this.pp):this.Tl=setTimeout(this.pp,this.td?1:16));m=m||a;var b=this.xb;((d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.pc)||this.Bg)&&0<this.ze&&(b=this.ze);0<b&&(!this.oi||window.self!==window.top)&&(b=window.innerHeight,
this.Ig===window.innerWidth&&this.Hg===b||this.setSize(n(),h()));this.ma||(d?(this.Xh||(this.jk=jQuery(this.canvas).css("margin")||"0",this.Xh=!0),this.zg||this.ae||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.Xh?(this.zg||this.ae||jQuery(this.canvas).css("margin",this.jk),this.jk="",this.Xh=!1,0===this.xb&&this.setSize(Math.round(this.uo/this.devicePixelRatio),
Math.round(this.so/this.devicePixelRatio),!0)):(this.uo=this.width,this.so=this.height));this.Fg&&(d=this.Hm(),this.zf=this.Se,d&&(this.Fg=!1,this.Se=1,this.trigger(W.prototype.i.nm,null)));this.ht(m);!this.da&&!this.oc||this.Qk||this.oh||e||(this.da=!1,this.u?this.Ib():this.Gc(),this.cj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.cj[0],this.cj[1]),this.trigger(W.prototype.i.bq,null)),this.cj=null));this.Bv||(this.uh++,this.Uh++,this.Zh++);this.Tg+=Wa()-a}}};f.prototype.ht=function(e){var m,
d,a,b,c,k,l,g;1E3<=e-this.Le&&(this.Le+=1E3,1E3<=e-this.Le&&(this.Le=e),this.ik=this.Zh,this.Zh=0,this.Uj=this.Tg,this.Tg=0);0!==this.si&&(m=e-this.si,0>m&&(m=0),this.Vd=m/1E3,.5<this.Vd?this.Vd=0:.1<this.Vd&&(this.Vd=.1));this.si=e;this.we=this.Vd*this.Tf;this.Zb.add(this.we);this.gd.add(this.Vd);e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Bg)&&!this.pc;2<=this.xb||e&&0<this.ze?(m=this.Ma/this.La,d=this.width/this.height,a=this.xb,
e&&0<this.ze&&(a=this.ze),this.dg=2!==a&&d>m||2===a&&d<m?this.height/this.La:this.width/this.Ma,this.ka&&(this.ka.Yo(this.ka.scrollX),this.ka.Zo(this.ka.scrollY))):this.dg=this.qf?this.devicePixelRatio:1;this.jb();this.Jc++;this.dd.Ot();this.Jc--;this.jb();this.Jc++;d=this.ro.oe();e=0;for(m=d.length;e<m;e++)d[e].Dv();e=0;for(m=this.q.length;e<m;e++)if(k=this.q[e],!k.C&&(k.Ea.length||k.ta.length))for(d=0,a=k.e.length;d<a;d++)for(l=k.e[d],b=0,c=l.K.length;b<c;b++)l.K[b].Wa();e=0;for(m=this.q.length;e<
m;e++)if(k=this.q[e],!k.C&&(k.Ea.length||k.ta.length))for(d=0,a=k.e.length;d<a;d++)for(l=k.e[d],b=0,c=l.K.length;b<c;b++)g=l.K[b],g.Dt&&g.Dt();d=this.jl.oe();e=0;for(m=d.length;e<m;e++)d[e].Wa();this.Jc--;this.Ns();for(e=0;this.gg&&10>e++;)this.$m(this.gg);e=0;for(m=this.od.length;e<m;e++)this.od[e].Ak=!1;this.ka.xe&&this.ka.xe.Na();this.Kt.length=0;this.Jc++;e=0;for(m=this.q.length;e<m;e++)if(k=this.q[e],!k.C&&(k.Ea.length||k.ta.length))for(d=0,a=k.e.length;d<a;d++)for(l=k.e[d],b=0,c=l.K.length;b<
c;b++)g=l.K[b],g.lj&&g.lj();d=this.kl.oe();e=0;for(m=d.length;e<m;e++)d[e].lj();this.Jc--};f.prototype.$m=function(e){var d=this.ka;this.ka.cu();var a,b,c,k,l,g,f;if(this.u)for(a=0,b=this.q.length;a<b;a++)l=this.q[a],l.C||!l.rj||l.global&&0!==l.e.length||-1!==e.xg.indexOf(l)||l.rj();d==e&&(this.dd.Sb.length=0);e.Pl();a=0;for(b=this.q.length;a<b;a++)if(l=this.q[a],l.global||l.ja.aj)for(e=0,d=l.e.length;e<d;e++)if(g=l.e[e],g.ml&&g.ml(),g.K)for(c=0,k=g.K.length;c<k;c++)f=g.K[c],f.ml&&f.ml();this.da=
!0;this.jb()};f.prototype.mj=function(e){this.jl.add(e)};f.prototype.eu=function(e){this.kl.add(e)};f.prototype.bi=function(e){return e&&-1!==e.Vg?this.Vd*e.Vg:this.we};f.prototype.Gc=function(){this.ka.Gc(this.ga);this.cb&&this.ga.present()};f.prototype.Ib=function(){this.ka.Ib(this.u);this.u.Gt()};f.prototype.Oq=function(e){e&&this.Zj.push(e)};f.prototype.di=function(e){e=e.toString();return this.yd.hasOwnProperty(e)?this.yd[e]:null};var k=[];f.prototype.Hd=function(e){var d,a;d=e.type.name;var b=
null;if(this.ue.hasOwnProperty(d)){if(b=this.ue[d],b.contains(e))return}else b=k.length?k.pop():new ba,this.ue[d]=b;b.add(e);this.Zd=!0;if(e.Yb)for(d=0,a=e.siblings.length;d<a;d++)this.Hd(e.siblings[d]);this.Mk&&b.Xf.push(e);this.Jc++;this.trigger(Object.getPrototypeOf(e.type.ja).i.cq,e);this.Jc--};f.prototype.jb=function(){if(this.Zd){var e,d,a,b,c,k;this.Mk=!0;a=0;for(c=this.Tc.length;a<c;++a)for(e=this.Tc[a],d=e.type,d.e.push(e),b=0,k=d.ta.length;b<k;++b)d.ta[b].e.push(e),d.ta[b].Qf=!0;this.Tc.length=
0;this.Xp();Va(this.ue);this.Zd=this.Mk=!1}};f.prototype.Xp=function(){for(var e in this.ue)this.ue.hasOwnProperty(e)&&this.Lp(this.ue[e])};f.prototype.Lp=function(e){var d=e.oe(),a=d[0].type,b,c,l,g,f,r;Xa(a.e,e);a.Qf=!0;0===a.e.length&&(a.Gm=!1);b=0;for(c=a.ta.length;b<c;++b)r=a.ta[b],Xa(r.e,e),r.Qf=!0;b=0;for(c=this.dd.Sb.length;b<c;++b)if(f=this.dd.Sb[b],f.Qb.hasOwnProperty(a.index)&&Xa(f.Qb[a.index].Fe,e),!a.C)for(l=0,g=a.ta.length;l<g;++l)r=a.ta[l],f.Qb.hasOwnProperty(r.index)&&Xa(f.Qb[r.index].Fe,
e);if(f=d[0].k){if(f.Oc)for(l=f.e,b=0,c=l.length;b<c;++b)g=l[b],e.contains(g)&&(g.ib(),f.Nb.update(g,g.Bb,null),g.Bb.set(0,0,-1,-1));Xa(f.e,e);f.ih(0)}for(b=0;b<d.length;++b)this.Kp(d[b],a);e.clear();k.push(e);this.da=!0};f.prototype.Kp=function(e,d){var a,b,c;a=0;for(b=this.Zj.length;a<b;++a)this.Zj[a](e);e.ec&&d.Sj.update(e,e.ec,null);(a=e.k)&&a.Kf(e,!0);if(e.K)for(a=0,b=e.K.length;a<b;++a)c=e.K[a],c.Ff&&c.Ff(),c.behavior.hl.remove(e);this.ro.remove(e);this.jl.remove(e);this.kl.remove(e);e.Ff&&
e.Ff();this.yd.hasOwnProperty(e.uid.toString())&&delete this.yd[e.uid.toString()];this.Gi--;100>d.Ph.length&&d.Ph.push(e)};f.prototype.Vm=function(e,d,a,b){if(e.C){var c=R(Math.random()*e.Ei.length);return this.Vm(e.Ei[c],d,a,b)}return e.jc?this.Ud(e.jc,d,!1,a,b,!1):null};var r=[];f.prototype.Ud=function(e,d,a,b,c,k){var l,g,f,u;if(!e)return null;var s=this.q[e[1]],n=s.ja.be;if(this.Fg&&n&&!s.Nk||n&&!this.u&&11===e[0][11])return null;var q=d;n||(d=null);var h;s.Ph.length?(h=s.Ph.pop(),h.zc=!0,s.ja.ra.call(h,
s)):(h=new s.ja.ra(s),h.zc=!1);h.uid=!a||k||this.yd.hasOwnProperty(e[2].toString())?this.Wg++:e[2];this.yd[h.uid.toString()]=h;h.Qo=this.no++;h.De=s.e.length;l=0;for(g=this.Tc.length;l<g;++l)this.Tc[l].type===s&&h.De++;h.sg=Ab;h.toString=Bb;f=e[3];if(h.zc)Va(h.Y);else{h.Y={};if("undefined"!==typeof cr_is_preview)for(h.Cn=[],h.Cn.length=f.length,l=0,g=f.length;l<g;l++)h.Cn[l]=f[l][1];h.Ja=[];h.Ja.length=f.length}l=0;for(g=f.length;l<g;l++)h.Ja[l]=f[l][0];if(n){var p=e[0];h.x=fa(b)?p[0]:b;h.y=fa(c)?
p[1]:c;h.z=p[2];h.width=p[3];h.height=p[4];h.depth=p[5];h.m=p[6];h.opacity=p[7];h.zb=p[8];h.Ab=p[9];h.qb=p[10];l=p[11];!this.u&&s.H.length&&(h.qb=l);h.hg=eb(h.qb);this.n&&fb(h,h.qb,this.n);if(h.zc){l=0;for(g=p[12].length;l<g;l++)for(f=0,u=p[12][l].length;f<u;f++)h.va[l][f]=p[12][l][f];h.$a.set(0,0,0,0);h.ec.set(0,0,-1,-1);h.Bb.set(0,0,-1,-1);h.df.jh(h.$a);h.Ij.length=0}else{h.va=p[12].slice(0);l=0;for(g=h.va.length;l<g;l++)h.va[l]=p[12][l].slice(0);h.W=[];h.Jd=[];h.Jd.length=s.H.length;h.$a=new va(0,
0,0,0);h.ec=new va(0,0,-1,-1);h.Bb=new va(0,0,-1,-1);h.df=new wa;h.Ij=[];h.Ha=Eb;h.Qq=Fb;h.gc=Gb;h.ib=Hb;h.mu=Ib;h.lu=Jb;h.Wc=Kb}h.gu=!1;h.iu=0;h.hu=0;h.fu=null;14===p.length&&(h.gu=!0,h.iu=p[13][0],h.hu=p[13][1],h.fu=p[13][2]);l=0;for(g=s.H.length;l<g;l++)h.Jd[l]=!0;h.Fd=Lb;h.Fd();h.Cp=!!h.W.length;h.Bh=!0;h.Nj=!0;s.Fm=!0;h.visible=!0;h.Vg=-1;h.k=d;h.Pc=d.e.length;"undefined"===typeof h.Sc&&(h.Sc=null);this.da=h.Sd=!0}var v;l=r.length=0;for(g=s.ta.length;l<g;l++)r.push.apply(r,s.ta[l].Ea);r.push.apply(r,
s.Ea);if(h.zc)for(l=0,g=r.length;l<g;l++){var H=r[l];v=h.K[l];v.zc=!0;H.behavior.ra.call(v,H,h);p=e[4][l];f=0;for(u=p.length;f<u;f++)v.ca[f]=p[f];v.Z();H.behavior.hl.add(h)}else for(h.K=[],l=0,g=r.length;l<g;l++)H=r[l],v=new H.behavior.ra(H,h),v.zc=!1,v.ca=e[4][l].slice(0),v.Z(),h.K.push(v),H.behavior.hl.add(h);p=e[5];if(h.zc)for(l=0,g=p.length;l<g;l++)h.ca[l]=p[l];else h.ca=p.slice(0);this.Tc.push(h);this.Zd=!0;d&&(d.bg(h,!0),1!==d.wc||1!==d.xc)&&(s.Gm=!0);this.Gi++;if(s.Yb){if(h.Yb=!0,h.zc?h.siblings.length=
0:h.siblings=[],!a&&!k){l=0;for(g=s.Hb.length;l<g;l++)if(s.Hb[l]!==s){if(!s.Hb[l].jc)return null;h.siblings.push(this.Ud(s.Hb[l].jc,q,!1,n?h.x:b,n?h.y:c,!0))}l=0;for(g=h.siblings.length;l<g;l++)for(h.siblings[l].siblings.push(h),f=0;f<g;f++)l!==f&&h.siblings[l].siblings.push(h.siblings[f])}}else h.Yb=!1,h.siblings=null;h.Z();l=0;for(g=h.K.length;l<g;l++)h.K[l].Ct&&h.K[l].Ct();return h};f.prototype.qg=function(e){var d,a;d=0;for(a=this.ka.L.length;d<a;d++){var b=this.ka.L[d];if(hb(b.name,e))return b}return null};
f.prototype.rd=function(e){e=R(e);0>e&&(e=0);e>=this.ka.L.length&&(e=this.ka.L.length-1);return this.ka.L[e]};f.prototype.Rj=function(e){var d,a;d=0;for(a=e.length;d<a;d++)e[d].ha().na=!0};f.prototype.dh=function(e){var d,a;d=0;for(a=e.length;d<a;d++)e[d].dh()};f.prototype.xl=function(e){var d,a;d=0;for(a=e.length;d<a;d++)e[d].xl()};f.prototype.If=function(e){var d,a;d=0;for(a=e.length;d<a;d++)e[d].If()};f.prototype.Rf=function(e,d,a,b){var l=e.ha(),c,k,g,f,r,u;if(l.na)for(b||(l.na=!1,l.e.length=
0),c=0,f=e.e.length;c<f;c++){if(g=e.e[c],g.ib(),r=g.k.ab(d,a,!0),u=g.k.ab(d,a,!1),g.gc(r,u)){if(b)return!1;l.e.push(g)}}else{c=k=0;for(f=l.e.length;c<f;c++)if(g=l.e[c],g.ib(),r=g.k.ab(d,a,!0),u=g.k.ab(d,a,!1),g.gc(r,u)){if(b)return!1;l.e[k]=l.e[c];k++}b||(l.e.length=k)}e.Md();return b?!0:l.zk()};new wa;new va(0,0,0,0);f.prototype.vp=function(e,d){if(!d)return!1;var a,b,l,c,k;a=0;for(b=e.Ea.length;a<b;a++)if(e.Ea[a].behavior instanceof d)return!0;if(!e.C)for(a=0,b=e.ta.length;a<b;a++)for(k=e.ta[a],
l=0,c=k.Ea.length;l<c;l++)if(k.Ea[l].behavior instanceof d)return!0;return!1};f.prototype.wp=function(e){return this.vp(e,Zb.Ru)};f.prototype.Xl=function(e){return this.vp(e,Zb.Su)};var s=-1;f.prototype.trigger=function(e,d,a){if(!this.ka)return!1;var b=this.ka.xe;if(!b)return!1;var l=!1,c,k,g;s++;var f=b.Yj;k=0;for(g=f.length;k<g;++k)c=this.sp(e,d,f[k],a),l=l||c;c=this.sp(e,d,b,a);s--;return l||c};f.prototype.sp=function(e,d,a,b){var l=!1,c,k,g,f;if(d)for(g=this.Vl(e,d,d.type.name,a,b),l=l||g,f=
d.type.ta,c=0,k=f.length;c<k;++c)g=this.Vl(e,d,f[c].name,a,b),l=l||g;else g=this.Vl(e,d,"system",a,b),l=l||g;return l};f.prototype.Vl=function(e,d,a,b,l){var c,k=!1,g=!1,g="undefined"!==typeof l,f=(g?b.dn:b.tp)[a];if(!f)return k;var r=null;b=0;for(c=f.length;b<c;++b)if(f[b].method==e){r=f[b].mg;break}if(!r)return k;e=g?r[l]:r;if(!e)return null;b=0;for(c=e.length;b<c;b++)l=e[b][0],g=e[b][1],g=this.es(d,a,l,g),k=k||g;return k};f.prototype.es=function(e,d,a,b){var l,c,k=!1;this.Wl++;var g=this.Jb().Fc;
g&&this.dh(g.je);var f=1<this.Wl;this.dh(a.je);f&&this.It();var r=this.yl(a);r.Fc=a;e&&(l=this.types[d].ha(),l.na=!1,l.e.length=1,l.e[0]=e,this.types[d].Md());e=!0;if(a.parent){d=r.np;for(l=a.parent;l;)d.push(l),l=l.parent;d.reverse();l=0;for(c=d.length;l<c;l++)if(!d[l].Qt()){e=!1;break}}e&&(this.Uh++,a.Yc?a.Pt(b):a.Na(),k=k||r.Ke);this.Mo();f&&this.Bt();this.If(a.je);g&&this.If(g.je);this.Zd&&0===this.Jc&&0===s&&!this.Ok&&this.jb();this.Wl--;return k};f.prototype.ok=function(){var e=this.Jb();return e.Fc.kb[e.wb]};
f.prototype.It=function(){this.Ci++;this.Ci>=this.$k.length&&this.$k.push([])};f.prototype.Bt=function(){this.Ci--};f.prototype.ln=function(){return this.$k[this.Ci]};f.prototype.yl=function(e){this.Th++;this.Th>=this.ak.length&&this.ak.push(new Mb);var d=this.Jb();d.reset(e);return d};f.prototype.Mo=function(){this.Th--};f.prototype.Jb=function(){return this.ak[this.Th]};f.prototype.mn=function(e,d){for(var a,b,l,c,k,g;d;){a=0;for(b=d.Ac.length;a<b;a++)if(g=d.Ac[a],g instanceof Nb&&hb(e,g.name))return g;
d=d.parent}a=0;for(b=this.od.length;a<b;a++)for(k=this.od[a],l=0,c=k.Xd.length;l<c;l++)if(g=k.Xd[l],g instanceof Nb&&hb(e,g.name))return g;return null};f.prototype.pn=function(e){var d,a;d=0;for(a=this.Lc.length;d<a;d++)if(this.Lc[d].P===e)return this.Lc[d];return null};f.prototype.ei=function(e){var d,a;d=0;for(a=this.q.length;d<a;d++)if(this.q[d].P===e)return this.q[d];return null};f.prototype.qs=function(e){var d,a;d=0;for(a=this.bf.length;d<a;d++)if(this.bf[d].P===e)return this.bf[d];return null};
f.prototype.Ns=function(){var e=this,d=this.Kl,b=this.ud,l=this.wi,k=!1;this.jp&&(k=!0,d="__c2_continuouspreview",this.jp=!1);if(d.length){this.jb();b=this.Ut();if(window.indexedDB&&!this.oc)q(d,b,function(){M("Saved state to IndexedDB storage ("+b.length+" bytes)");e.ud=b;e.trigger(W.prototype.i.zj,null);e.ud="";k&&a()},function(l){try{localStorage.setItem("__c2save_"+d,b),M("Saved state to WebStorage ("+b.length+" bytes)"),e.ud=b,e.trigger(W.prototype.i.zj,null),e.ud="",k&&a()}catch(c){M("Failed to save game state: "+
l+"; "+c)}});else try{localStorage.setItem("__c2save_"+d,b),M("Saved state to WebStorage ("+b.length+" bytes)"),e.ud=b,this.trigger(W.prototype.i.zj,null),e.ud="",k&&a()}catch(g){M("Error saving to WebStorage: "+g)}this.ob=this.wi=this.Kl=""}l.length&&(window.indexedDB&&!this.oc?c(l,function(d){d?(e.ob=d,M("Loaded state from IndexedDB storage ("+e.ob.length+" bytes)")):(e.ob=localStorage.getItem("__c2save_"+l)||"",M("Loaded state from WebStorage ("+e.ob.length+" bytes)"));e.oh=!1;e.ob.length||e.trigger(W.prototype.i.yj,
null)},function(){e.ob=localStorage.getItem("__c2save_"+l)||"";M("Loaded state from WebStorage ("+e.ob.length+" bytes)");e.oh=!1;e.ob.length||e.trigger(W.prototype.i.yj,null)}):(this.ob=localStorage.getItem("__c2save_"+l)||"",M("Loaded state from WebStorage ("+this.ob.length+" bytes)"),this.oh=!1,e.ob.length||e.trigger(W.prototype.i.yj,null)),this.Kl=this.wi="");this.ob.length&&(this.jb(),this.gt(this.ob),this.ud=this.ob,this.trigger(W.prototype.i.jq,null),this.ob=this.ud="")};f.prototype.Ut=function(){var e,
d,a,l,c,k,g,f={c2save:!0,version:1,rt:{time:this.Zb.J,walltime:this.gd.J,timescale:this.Tf,tickcount:this.uh,execcount:this.Uh,next_uid:this.Wg,running_layout:this.ka.P,start_time_offset:Date.now()-this.fj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};e=0;for(d=this.q.length;e<d;e++)if(c=this.q[e],!c.C&&!this.wp(c)){k={instances:[]};Ua(c.Y)&&(k.ex=b(c.Y));a=0;for(l=c.e.length;a<l;a++)k.instances.push(this.Jl(c.e[a]));f.types[c.P.toString()]=k}e=0;for(d=this.Lc.length;e<d;e++)a=
this.Lc[e],f.layouts[a.P.toString()]=a.Ob();l=f.events.groups;e=0;for(d=this.bf.length;e<d;e++)a=this.bf[e],l[a.P.toString()]=this.ug[a.tg].lf;d=f.events.cnds;for(g in this.ff)this.ff.hasOwnProperty(g)&&(e=this.ff[g],Ua(e.Y)&&(d[g]={ex:b(e.Y)}));d=f.events.acts;for(g in this.$e)this.$e.hasOwnProperty(g)&&(e=this.$e[g],Ua(e.Y)&&(d[g]={ex:e.Y}));d=f.events.vars;for(g in this.Yf)this.Yf.hasOwnProperty(g)&&(e=this.Yf[g],e.li||e.parent&&!e.Eg||(d[g]=e.data));f.system=this.dd.Ob();return JSON.stringify(f)};
f.prototype.To=function(){var e,d,a,b,l,c;this.yd={};e=0;for(d=this.q.length;e<d;e++)if(a=this.q[e],!a.C)for(b=0,l=a.e.length;b<l;b++)c=a.e[b],this.yd[c.uid.toString()]=c};f.prototype.gt=function(e){e=JSON.parse(e);if(e.c2save&&!(1<e.version)){var d=e.rt;this.Zb.reset();this.Zb.J=d.time;this.gd.reset();this.gd.J=d.walltime||0;this.Tf=d.timescale;this.uh=d.tickcount;this.Uh=d.execcount;this.fj=Date.now()-d.start_time_offset;var a=d.running_layout;if(a!==this.ka.P)if(a=this.pn(a))this.$m(a);else return;
var b,l,c,k,g,f,r;f=e.types;for(l in f)if(f.hasOwnProperty(l)&&(k=this.ei(parseInt(l,10)))&&!k.C&&!this.wp(k)){f[l].ex?k.Y=f[l].ex:Va(k.Y);g=k.e;c=f[l].instances;a=0;for(b=pa(g.length,c.length);a<b;a++)this.xi(g[a],c[a]);a=c.length;for(b=g.length;a<b;a++)this.Hd(g[a]);a=g.length;for(b=c.length;a<b;a++){g=null;if(k.ja.be&&(g=this.ka.ci(c[a].w.l),!g))continue;g=this.Ud(k.jc,g,!1,0,0,!0);this.xi(g,c[a])}k.Qf=!0}this.jb();this.To();b=e.layouts;for(l in b)b.hasOwnProperty(l)&&(a=this.pn(parseInt(l,10)))&&
a.tc(b[l]);b=e.events.groups;for(l in b)b.hasOwnProperty(l)&&(a=this.qs(parseInt(l,10)))&&this.ug[a.tg]&&this.ug[a.tg].Wt(b[l]);a=e.events.cnds;for(l in a)a.hasOwnProperty(l)&&this.ff.hasOwnProperty(l)&&(this.ff[l].Y=a[l].ex);a=e.events.acts;for(l in a)a.hasOwnProperty(l)&&this.$e.hasOwnProperty(l)&&(this.$e[l].Y=a[l].ex);a=e.events.vars;for(l in a)a.hasOwnProperty(l)&&this.Yf.hasOwnProperty(l)&&(this.Yf[l].data=a[l]);this.Wg=d.next_uid;this.dd.tc(e.system);a=0;for(b=this.q.length;a<b;a++)if(k=this.q[a],
!k.C)for(l=0,e=k.e.length;l<e;l++){g=k.e[l];if(k.Yb)for(f=g.sg(),d=g.siblings.length=0,c=k.Hb.length;d<c;d++)r=k.Hb[d],k!==r&&g.siblings.push(r.e[f]);g.Kd&&g.Kd();if(g.K)for(d=0,c=g.K.length;d<c;d++)f=g.K[d],f.Kd&&f.Kd()}this.da=!0}};f.prototype.Jl=function(d,a){var l,c,k,g,f;g=d.type;k=g.ja;var r={};a?r.c2=!0:r.uid=d.uid;Ua(d.Y)&&(r.ex=b(d.Y));if(d.Ja&&d.Ja.length)for(r.ivs={},l=0,c=d.Ja.length;l<c;l++)r.ivs[d.type.Kk[l].toString()]=d.Ja[l];if(k.be){k={x:d.x,y:d.y,w:d.width,h:d.height,l:d.k.P,zi:d.Wc()};
0!==d.m&&(k.a=d.m);1!==d.opacity&&(k.o=d.opacity);.5!==d.zb&&(k.hX=d.zb);.5!==d.Ab&&(k.hY=d.Ab);0!==d.qb&&(k.bm=d.qb);d.visible||(k.v=d.visible);d.Sd||(k.ce=d.Sd);-1!==d.Vg&&(k.mts=d.Vg);if(g.H.length)for(k.fx=[],l=0,c=g.H.length;l<c;l++)f=g.H[l],k.fx.push({name:f.name,active:d.Jd[f.index],params:d.va[f.index]});r.w=k}if(d.K&&d.K.length)for(r.behs={},l=0,c=d.K.length;l<c;l++)g=d.K[l],g.Ob&&(r.behs[g.type.P.toString()]=g.Ob());d.Ob&&(r.data=d.Ob());return r};f.prototype.ss=function(d,a){var b,l;b=
0;for(l=d.Kk.length;b<l;b++)if(d.Kk[b]===a)return b;return-1};f.prototype.os=function(d,a){var b,l;b=0;for(l=d.K.length;b<l;b++)if(d.K[b].type.P===a)return b;return-1};f.prototype.xi=function(d,a,b){var l,c,k,g,f;f=d.type;k=f.ja;if(b){if(!a.c2)return}else d.uid=a.uid;a.ex?d.Y=a.ex:Va(d.Y);if(c=a.ivs)for(l in c)c.hasOwnProperty(l)&&(b=this.ss(f,parseInt(l,10)),0>b||b>=d.Ja.length||(d.Ja[b]=c[l]));if(k.be){k=a.w;d.k.P!==k.l&&(b=d.k,d.k=this.ka.ci(k.l),d.k?(b.Kf(d,!0),d.k.bg(d,!0),d.Ha(),d.k.ih(0)):
(d.k=b,this.Hd(d)));d.x=k.x;d.y=k.y;d.width=k.w;d.height=k.h;d.Pc=k.zi;d.m=k.hasOwnProperty("a")?k.a:0;d.opacity=k.hasOwnProperty("o")?k.o:1;d.zb=k.hasOwnProperty("hX")?k.hX:.5;d.Ab=k.hasOwnProperty("hY")?k.hY:.5;d.visible=k.hasOwnProperty("v")?k.v:!0;d.Sd=k.hasOwnProperty("ce")?k.ce:!0;d.Vg=k.hasOwnProperty("mts")?k.mts:-1;d.qb=k.hasOwnProperty("bm")?k.bm:0;d.hg=eb(d.qb);this.n&&fb(d,d.qb,this.n);d.Ha();if(k.hasOwnProperty("fx"))for(b=0,c=k.fx.length;b<c;b++)g=f.qk(k.fx[b].name),0>g||(d.Jd[g]=k.fx[b].active,
d.va[g]=k.fx[b].params);d.Fd()}if(f=a.behs)for(l in f)f.hasOwnProperty(l)&&(k=this.os(d,parseInt(l,10)),0>k||d.K[k].tc(f[l]));a.data&&d.tc(a.data)};Ob=function(d){return new f(document.getElementById(d))};Pb=function(d,a){return new f({dc:!0,width:d,height:a})};window.cr_createRuntime=Ob;window.cr_createDCRuntime=Pb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var d=document.createElement("screencanvas")||document.createElement("canvas");d.Fv=!0;document.body.appendChild(d);d=new f(d);
window.c2runtime=d;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d};window.createEjectaRuntime=function(){var d=new f(document.getElementById("canvas"));window.c2runtime=d;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d}})();
window.cr_getC2Runtime=function(){var n=document.getElementById("c2canvas");return n?n.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(n,h){if(0!==n&&0!==h){var f=window.cr_getC2Runtime();f&&f.setSize(n,h)}};window.cr_setSuspended=function(n){var h=window.cr_getC2Runtime();h&&h.setSuspended(n)};
(function(){function n(d,a){this.b=d;this.xe=null;this.scrollX=this.b.Ma/2;this.scrollY=this.b.La/2;this.scale=1;this.m=0;this.jf=!0;this.name=a[0];this.width=a[1];this.height=a[2];this.xp=a[3];this.gp=a[4];this.P=a[5];var b=a[6],c,g;this.L=[];this.xg=[];c=0;for(g=b.length;c<g;c++){var f=new Qb(this,b[c]);f.po=c;this.L.push(f)}b=a[7];this.Ee=[];c=0;for(g=b.length;c<g;c++){var f=b[c],e=this.b.q[f[1]];e.jc||(e.jc=f);this.Ee.push(f);-1===this.xg.indexOf(e)&&this.xg.push(e)}this.H=[];this.W=[];this.va=
[];c=0;for(g=a[8].length;c<g;c++)this.H.push({id:a[8][c][0],name:a[8][c][1],hb:-1,Qa:!0,index:c}),this.va.push(a[8][c][2].slice(0));this.Fd();this.Al=new va(0,0,1,1);this.Bl=new va(0,0,1,1);this.ee={}}function h(d,a){return d.Pc-a.Pc}function f(d,a){this.Sa=d;this.b=d.b;this.e=[];this.scale=1;this.m=0;this.ve=!1;this.Dd=new va(0,0,0,0);this.qp=new wa;this.xa=this.qa=this.ya=this.pa=0;this.We=!1;this.Gd=-1;this.name=a[0];this.index=a[1];this.P=a[2];this.visible=a[3];this.Nd=a[4];this.Ed=a[5];this.wc=
a[6];this.xc=a[7];this.opacity=a[8];this.hk=a[9];this.Oc=a[10];this.Fb=a[11];this.qb=a[12];this.Dr=a[13];this.hg="source-over";this.lb=this.mb=0;this.Nb=null;this.wf=p();this.zd=!0;this.ri=new va(0,0,-1,-1);this.ic=new va(0,0,-1,-1);this.Oc&&(this.Nb=new db(this.b.Ma,this.b.La));this.ge=!1;var b=a[14],c,g;this.lp=[];this.Xb=[];this.ig=[];c=0;for(g=b.length;c<g;c++){var f=b[c],e=this.b.q[f[1]];e.jc||(e.jc=f,e.ir=this.index);this.Xb.push(f);-1===this.Sa.xg.indexOf(e)&&this.Sa.xg.push(e)}za(this.lp,
this.Xb);this.H=[];this.W=[];this.va=[];c=0;for(g=a[15].length;c<g;c++)this.H.push({id:a[15][c][0],name:a[15][c][1],hb:-1,Qa:!0,index:c}),this.va.push(a[15][c][2].slice(0));this.Fd();this.Al=new va(0,0,1,1);this.Bl=new va(0,0,1,1)}function p(){return b.length?b.pop():[]}function q(d){d.length=0;b.push(d)}n.prototype.Tt=function(d){var a=d.type.P.toString();this.ee.hasOwnProperty(a)||(this.ee[a]=[]);this.ee[a].push(this.b.Jl(d))};n.prototype.wn=function(){var d=this.L[0];return!d.Ed&&1===d.opacity&&
!d.hk&&d.visible};n.prototype.Fd=function(){this.W.length=0;var d,a,b;d=0;for(a=this.H.length;d<a;d++)b=this.H[d],b.Qa&&this.W.push(b)};n.prototype.pk=function(d){var a,b,c;a=0;for(b=this.H.length;a<b;a++)if(c=this.H[a],c.name===d)return c;return null};var c=[],a=!0;n.prototype.Pl=function(){this.gp&&(this.xe=this.b.bk[this.gp],this.xe.Yl());this.b.ka=this;this.scrollX=this.b.Ma/2;this.scrollY=this.b.La/2;var d,b,g,k,f,s,e;d=0;for(g=this.b.q.length;d<g;d++)if(b=this.b.q[d],!b.C)for(f=b.e,b=0,k=f.length;b<
k;b++)if(s=f[b],s.k){var m=s.k.po;m>=this.L.length&&(m=this.L.length-1);s.k=this.L[m];-1===s.k.e.indexOf(s)&&s.k.e.push(s);s.k.We=!0}if(!a)for(d=0,g=this.L.length;d<g;++d)this.L[d].e.sort(h);c.length=0;this.Wq();d=0;for(g=this.L.length;d<g;d++)s=this.L[d],s.fr(),s.$l();f=!1;if(!this.jf){for(e in this.ee)if(this.ee.hasOwnProperty(e)&&(b=this.b.ei(parseInt(e,10)))&&!b.C&&this.b.Xl(b)){k=this.ee[e];d=0;for(g=k.length;d<g;d++){s=null;if(b.ja.be&&(s=this.ci(k[d].w.l),!s))continue;s=this.b.Ud(b.jc,s,!1,
0,0,!0);this.b.xi(s,k[d]);f=!0;c.push(s)}k.length=0}d=0;for(g=this.L.length;d<g;d++)this.L[d].e.sort(h),this.L[d].We=!0}f&&(this.b.jb(),this.b.To());for(d=0;d<c.length;d++)if(s=c[d],s.type.Yb)for(g=s.sg(),b=0,k=s.type.Hb.length;b<k;b++)e=s.type.Hb[b],s.type!==e&&(e.e.length>g?s.siblings.push(e.e[g]):e.jc&&(f=this.b.Ud(e.jc,s.k,!0,s.x,s.y,!0),this.b.jb(),e.sj(),s.siblings.push(f),c.push(f)));d=0;for(g=this.Ee.length;d<g;d++)this.b.Ud(this.Ee[d],null,!0);this.b.gg=null;this.b.jb();if(this.b.ga&&!this.b.ma)for(d=
0,g=this.b.q.length;d<g;d++)e=this.b.q[d],!e.C&&e.e.length&&e.Ti&&e.Ti(this.b.ga);d=0;for(g=c.length;d<g;d++)s=c[d],this.b.trigger(Object.getPrototypeOf(s.type.ja).i.zh,s);c.length=0;this.b.trigger(W.prototype.i.mm,null);this.jf=!1};n.prototype.er=function(){var d,a,b,c,g;a=d=0;for(b=this.Ee.length;d<b;d++)c=this.Ee[d],g=this.b.q[c[1]],g.global?this.b.Ud(c,null,!0):(this.Ee[a]=c,a++);this.Ee.length=a};n.prototype.cu=function(){this.b.trigger(W.prototype.i.iq,null);this.b.dd.Sb.length=0;var d,b,c,
k,g,f;if(!this.jf)for(d=0,b=this.L.length;d<b;d++)for(this.L[d].am(),g=this.L[d].e,c=0,k=g.length;c<k;c++)f=g[c],f.type.global||this.b.Xl(f.type)&&this.Tt(f);d=0;for(b=this.L.length;d<b;d++){g=this.L[d].e;c=0;for(k=g.length;c<k;c++)f=g[c],f.type.global||this.b.Hd(f);this.b.jb();g.length=0;this.L[d].We=!0}d=0;for(b=this.b.q.length;d<b;d++)if(g=this.b.q[d],!(g.global||g.ja.be||g.ja.aj||g.C)){c=0;for(k=g.e.length;c<k;c++)this.b.Hd(g.e[c]);this.b.jb()}a=!1};new va(0,0,0,0);n.prototype.Gc=function(d){var a,
b=d,c=!1,g=!this.b.lc;g&&(this.b.vi||(this.b.vi=document.createElement("canvas"),a=this.b.vi,a.width=this.b.O,a.height=this.b.N,this.b.Qn=a.getContext("2d"),c=!0),a=this.b.vi,b=this.b.Qn,a.width!==this.b.O&&(a.width=this.b.O,c=!0),a.height!==this.b.N&&(a.height=this.b.N,c=!0),c&&(b.webkitImageSmoothingEnabled=this.b.T,b.mozImageSmoothingEnabled=this.b.T,b.msImageSmoothingEnabled=this.b.T,b.imageSmoothingEnabled=this.b.T));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.Fj&&!this.wn()&&
b.clearRect(0,0,this.b.O,this.b.N);var f,e,c=0;for(f=this.L.length;c<f;c++)e=this.L[c],e.visible&&0<e.opacity&&11!==e.qb&&(e.e.length||!e.Ed)?e.Gc(b):e.$l();g&&d.drawImage(a,0,0,this.b.width,this.b.height)};n.prototype.Ib=function(d){var a=0<this.W.length||this.b.Wf||!this.b.lc;if(a){this.b.Lb||(this.b.Lb=d.Td(this.b.O,this.b.N,this.b.T));if(this.b.Lb.fg!==this.b.O||this.b.Lb.eg!==this.b.N)d.deleteTexture(this.b.Lb),this.b.Lb=d.Td(this.b.O,this.b.N,this.b.T);d.bd(this.b.Lb);this.b.lc||d.Nf(this.b.O,
this.b.N)}else this.b.Lb&&(d.bd(null),d.deleteTexture(this.b.Lb),this.b.Lb=null);this.b.Fj&&!this.wn()&&d.clear(0,0,0,0);var b,c,g;b=0;for(c=this.L.length;b<c;b++)g=this.L[b],g.visible&&0<g.opacity&&(g.e.length||!g.Ed)?g.Ib(d):g.$l();a&&(0===this.W.length||1===this.W.length&&this.b.lc?(1===this.W.length?(a=this.W[0].index,d.cd(this.W[0].hb),d.Mf(null,1/this.b.O,1/this.b.N,0,0,1,1,this.scale,this.m,0,0,this.b.O/2,this.b.N/2,this.va[a]),d.Ui(this.W[0].hb)&&(this.b.da=!0)):d.cd(0),this.b.lc||d.Nf(this.b.width,
this.b.height),d.bd(null),d.Te(1),d.Pb(this.b.Lb),d.$o(),d.he(),d.ne(),a=this.b.width/2,b=this.b.height/2,d.eh(-a,b,a,b,a,-b,-a,-b),d.Pb(null)):this.Dl(d,null,null,null))};n.prototype.rg=function(){return 0<this.W.length||this.b.Wf||!this.b.lc?this.b.Lb:null};n.prototype.qn=function(){var d=this.L[0].mc(),a,b,c;a=1;for(b=this.L.length;a<b;a++)c=this.L[a],(0!==c.wc||0!==c.xc)&&c.mc()<d&&(d=c.mc());return d};n.prototype.Yo=function(d){if(!this.xp){var a=1/this.qn()*this.b.O/2;d>this.width-a&&(d=this.width-
a);d<a&&(d=a)}this.scrollX!==d&&(this.scrollX=d,this.b.da=!0)};n.prototype.Zo=function(d){if(!this.xp){var a=1/this.qn()*this.b.N/2;d>this.height-a&&(d=this.height-a);d<a&&(d=a)}this.scrollY!==d&&(this.scrollY=d,this.b.da=!0)};n.prototype.Wq=function(){this.Yo(this.scrollX);this.Zo(this.scrollY)};n.prototype.Dl=function(d,a,b,c){var g=b?b.W:a?a.W:this.W,f=1,e=0,m=0,w=0,h=this.b.O,n=this.b.N;b?(f=b.k.mc(),e=b.k.Ra(),m=b.k.pa,w=b.k.qa,h=b.k.ya,n=b.k.xa):a&&(f=a.mc(),e=a.Ra(),m=a.pa,w=a.qa,h=a.ya,n=
a.xa);var A=this.b.kk,q,p,v,x,F=0,ja=1,K,C=this.b.O,t=this.b.N,Z=C/2,H=t/2,J=a?a.Al:this.Al,y=a?a.Bl:this.Bl,B=0,L=0,E=0,I=0,G=C,na=C,O=t,ra=t,ga=v=0,ta=b?b.k.Ra():0;if(b){q=0;for(p=g.length;q<p;q++)v+=d.ws(g[q].hb),ga+=d.xs(g[q].hb);x=b.$a;B=a.rc(x.left,x.top,!0);E=a.rc(x.left,x.top,!1);G=a.rc(x.right,x.bottom,!0);O=a.rc(x.right,x.bottom,!1);0!==ta&&(q=a.rc(x.right,x.top,!0),p=a.rc(x.right,x.top,!1),L=a.rc(x.left,x.bottom,!0),I=a.rc(x.left,x.bottom,!1),x=Math.min(B,G,q,L),G=Math.max(B,G,q,L),B=x,
x=Math.min(E,O,p,I),O=Math.max(E,O,p,I),E=x);B-=v;E-=ga;G+=v;O+=ga;y.left=B/C;y.top=1-E/t;y.right=G/C;y.bottom=1-O/t;L=B=R(B);I=E=R(E);na=G=sa(G);ra=O=sa(O);L-=v;I-=ga;na+=v;ra+=ga;0>B&&(B=0);0>E&&(E=0);G>C&&(G=C);O>t&&(O=t);0>L&&(L=0);0>I&&(I=0);na>C&&(na=C);ra>t&&(ra=t);J.left=B/C;J.top=1-E/t;J.right=G/C;J.bottom=1-O/t}else J.left=y.left=0,J.top=y.top=0,J.right=y.right=1,J.bottom=y.bottom=1;ga=b&&((b.m||ta)&&d.bh(g[0].hb)||0!==v||0!==ga||1!==b.opacity||b.type.ja.lo)||a&&!b&&1!==a.opacity;d.$o();
if(ga){A[F]||(A[F]=d.Td(C,t,this.b.T));if(A[F].fg!==C||A[F].eg!==t)d.deleteTexture(A[F]),A[F]=d.Td(C,t,this.b.T);d.cd(0);d.bd(A[F]);K=ra-I;d.clearRect(L,t-I-K,na-L,K);b?b.Ib(d):(d.Pb(this.b.$b),d.Te(a.opacity),d.he(),d.translate(-Z,-H),d.ne(),d.fe(B,O,G,O,G,E,B,E,J));y.left=y.top=0;y.right=y.bottom=1;b&&(x=J.top,J.top=J.bottom,J.bottom=x);F=1;ja=0}d.Te(1);v=g.length-1;var ta=d.wl(g[v].hb)||!a&&!b&&!this.b.lc,da=0;q=0;for(p=g.length;q<p;q++){A[F]||(A[F]=d.Td(C,t,this.b.T));if(A[F].fg!==C||A[F].eg!==
t)d.deleteTexture(A[F]),A[F]=d.Td(C,t,this.b.T);d.cd(g[q].hb);da=g[q].index;d.Ui(g[q].hb)&&(this.b.da=!0);0!=q||ga?(d.Mf(c,1/C,1/t,y.left,y.top,y.right,y.bottom,f,e,m,w,(m+h)/2,(w+n)/2,b?b.va[da]:a?a.va[da]:this.va[da]),d.Pb(null),q!==v||ta?(d.bd(A[F]),K=ra-I,x=t-I-K,d.clearRect(L,x,na-L,K)):(b?d.ie(b.mb,b.lb):a&&d.ie(a.mb,a.lb),d.bd(c)),d.Pb(A[ja]),d.he(),d.translate(-Z,-H),d.ne(),d.fe(B,O,G,O,G,E,B,E,J),q!==v||ta||d.Pb(null)):(d.bd(A[F]),K=ra-I,x=t-I-K,d.clearRect(L,x,na-L,K),b?(d.Mf(c,1/b.width,
1/b.height,y.left,y.top,y.right,y.bottom,f,e,m,w,(m+h)/2,(w+n)/2,b.va[da]),b.Ib(d)):(d.Mf(c,1/C,1/t,0,0,1,1,f,e,m,w,(m+h)/2,(w+n)/2,a?a.va[da]:this.va[da]),d.Pb(a?this.b.$b:this.b.Lb),d.he(),d.translate(-Z,-H),d.ne(),d.fe(B,O,G,O,G,E,B,E,J)),y.left=y.top=0,y.right=y.bottom=1,b&&!ta&&(x=O,O=E,E=x));F=0===F?1:0;ja=0===F?1:0}ta&&(d.cd(0),b?d.ie(b.mb,b.lb):a?d.ie(a.mb,a.lb):this.b.lc||(d.Nf(this.b.width,this.b.height),Z=this.b.width/2,H=this.b.height/2,E=B=0,G=this.b.width,O=this.b.height),d.bd(c),d.Pb(A[ja]),
d.he(),d.translate(-Z,-H),d.ne(),b&&1===g.length&&!ga?d.fe(B,E,G,E,G,O,B,O,J):d.fe(B,O,G,O,G,E,B,E,J),d.Pb(null))};n.prototype.ci=function(a){var b,c;b=0;for(c=this.L.length;b<c;b++)if(this.L[b].P===a)return this.L[b];return null};n.prototype.Ob=function(){var a,b,c,k={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.m,w:this.width,h:this.height,fv:this.jf,persist:this.ee,fx:[],layers:{}};a=0;for(b=this.H.length;a<b;a++)c=this.H[a],k.fx.push({name:c.name,active:c.Qa,params:this.va[c.index]});a=
0;for(b=this.L.length;a<b;a++)c=this.L[a],k.layers[c.P.toString()]=c.Ob();return k};n.prototype.tc=function(a){var b,c,k,g;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.ee=a.persist;"undefined"!==typeof a.fv&&(this.jf=a.fv);var f=a.fx;b=0;for(c=f.length;b<c;b++)if(k=this.pk(f[b].name))k.Qa=f[b].active,this.va[k.index]=f[b].params;this.Fd();b=a.layers;for(g in b)b.hasOwnProperty(g)&&(a=this.ci(parseInt(g,10)))&&a.tc(b[g])};Cb=n;f.prototype.Fd=function(){this.W.length=
0;var a,b,c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.Qa&&this.W.push(c)};f.prototype.pk=function(a){var b,c,k;b=0;for(c=this.H.length;b<c;b++)if(k=this.H[b],k.name===a)return k;return null};f.prototype.fr=function(){var a,b,g,k,f,h;b=a=0;for(g=this.Xb.length;a<g;a++){k=this.Xb[a];f=this.b.q[k[1]];h=this.b.Xl(f);f=!0;if(!h||this.Sa.jf)k=this.b.Ud(k,this,!0),c.push(k),k.type.global&&(f=!1,this.ig.push(k.uid));f&&(this.Xb[b]=this.Xb[a],b++)}this.Xb.length=b;this.b.jb();!this.b.u&&this.H.length&&
(this.qb=this.Dr);this.hg=eb(this.qb);this.b.n&&fb(this,this.qb,this.b.n);this.zd=!0};f.prototype.Kf=function(a,b){var c=Ba(this.e,a);0>c||(b&&this.Oc&&a.Bb&&a.Bb.right>=a.Bb.left&&(a.ib(),this.Nb.update(a,a.Bb,null),a.Bb.set(0,0,-1,-1)),c===this.e.length-1?this.e.pop():(ya(this.e,c),this.ih(c)),this.zd=!0)};f.prototype.bg=function(a,b){a.Pc=this.e.length;this.e.push(a);b&&this.Oc&&a.Bb&&a.Ha();this.zd=!0};f.prototype.Ft=function(a){this.e.unshift(a);this.ih(0)};f.prototype.mt=function(a,b,c){var k=
a.Wc();b=b.Wc();ya(this.e,k);k<b&&b--;c&&b++;b===this.e.length?this.e.push(a):this.e.splice(b,0,a);this.ih(k<b?k:b)};f.prototype.ih=function(a){-1===this.Gd?this.Gd=a:a<this.Gd&&(this.Gd=a);this.zd=this.We=!0};f.prototype.am=function(){if(this.We){-1===this.Gd&&(this.Gd=0);var a,b,c;if(this.Oc)for(a=this.Gd,b=this.e.length;a<b;++a)c=this.e[a],c.Pc=a,this.Nb.it(c.Bb);else for(a=this.Gd,b=this.e.length;a<b;++a)this.e[a].Pc=a;this.We=!1;this.Gd=-1}};f.prototype.mc=function(a){return this.ts()*(this.b.lc||
a?this.b.dg:1)};f.prototype.ts=function(){return(this.scale*this.Sa.scale-1)*this.Fb+1};f.prototype.Ra=function(){return this.ve?0:Fa(this.Sa.m+this.m)};var b=[],v=[],g=[];f.prototype.rn=function(){this.am();this.Nb.Ro(this.pa,this.qa,this.ya,this.xa,g);if(!g.length)return p();if(1===g.length){var a=p();za(a,g[0]);g.length=0;return a}for(var b=!0;1<g.length;){for(var a=g,c=void 0,k=void 0,f=void 0,h=void 0,e=void 0,c=0,k=a.length;c<k-1;c+=2){var f=a[c],h=a[c+1],e=p(),m=f,w=h,z=e,n=0,A=0,S=0,Q=m.length,
N=w.length,x=void 0,F=void 0;for(z.length=Q+N;n<Q&&A<N;++S)x=m[n],F=w[A],x.Pc<F.Pc?(z[S]=x,++n):(z[S]=F,++A);for(;n<Q;++n,++S)z[S]=m[n];for(;A<N;++A,++S)z[S]=w[A];b||(q(f),q(h));v.push(e)}1===k%2&&(b?(f=p(),za(f,a[k-1]),v.push(f)):v.push(a[k-1]));za(a,v);v.length=0;b=!1}a=g[0];g.length=0;return a};f.prototype.Gc=function(a){this.ge=this.hk||1!==this.opacity||0!==this.qb;var b=this.b.canvas,c=a,k=!1;this.ge&&(this.b.ti||(this.b.ti=document.createElement("canvas"),b=this.b.ti,b.width=this.b.O,b.height=
this.b.N,this.b.Pn=b.getContext("2d"),k=!0),b=this.b.ti,c=this.b.Pn,b.width!==this.b.O&&(b.width=this.b.O,k=!0),b.height!==this.b.N&&(b.height=this.b.N,k=!0),k&&(c.webkitImageSmoothingEnabled=this.b.T,c.mozImageSmoothingEnabled=this.b.T,c.msImageSmoothingEnabled=this.b.T,c.imageSmoothingEnabled=this.b.T),this.Ed&&c.clearRect(0,0,this.b.O,this.b.N));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Ed||(c.fillStyle="rgb("+this.Nd[0]+","+this.Nd[1]+","+this.Nd[2]+")",c.fillRect(0,0,this.b.O,
this.b.N));c.save();this.ve=!0;var k=this.ab(0,0,!0,!0),g=this.ab(0,0,!1,!0);this.ve=!1;this.b.ad&&(k=Math.round(k),g=Math.round(g));this.Fl(k,g,c);var f=this.mc();c.scale(f,f);c.translate(-k,-g);this.Oc?(this.ic.left=this.Nb.Tb(this.pa),this.ic.top=this.Nb.Ub(this.qa),this.ic.right=this.Nb.Tb(this.ya),this.ic.bottom=this.Nb.Ub(this.xa),this.zd||!this.ic.Sh(this.ri)?(q(this.wf),k=this.rn(),this.zd=!1,this.ri.Jh(this.ic)):k=this.wf):k=this.e;for(var e,m=null,g=0,f=k.length;g<f;++g)e=k[g],e!==m&&(this.Ar(e,
c),m=e);this.Oc&&(this.wf=k);c.restore();this.ge&&(a.globalCompositeOperation=this.hg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};f.prototype.Ar=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ib();var c=a.$a;c.right<this.pa||c.bottom<this.qa||c.left>this.ya||c.top>this.xa||(b.globalCompositeOperation=a.hg,a.Gc(b))}};f.prototype.$l=function(){this.ve=!0;var a=this.ab(0,0,!0,!0),b=this.ab(0,0,!1,!0);this.ve=!1;this.b.ad&&(a=Math.round(a),b=Math.round(b));this.Fl(a,b,null)};f.prototype.Fl=
function(a,b,c){var k=this.mc();this.pa=a;this.qa=b;this.ya=a+1/k*this.b.O;this.xa=b+1/k*this.b.N;a=this.Ra();0!==a&&(c&&(c.translate(this.b.O/2,this.b.N/2),c.rotate(-a),c.translate(this.b.O/-2,this.b.N/-2)),this.Dd.set(this.pa,this.qa,this.ya,this.xa),this.Dd.offset((this.pa+this.ya)/-2,(this.qa+this.xa)/-2),this.qp.ep(this.Dd,a),this.qp.Nm(this.Dd),this.Dd.offset((this.pa+this.ya)/2,(this.qa+this.xa)/2),this.pa=this.Dd.left,this.qa=this.Dd.top,this.ya=this.Dd.right,this.xa=this.Dd.bottom)};f.prototype.Ib=
function(a){var b=0,c=0;if(this.ge=this.hk||1!==this.opacity||0<this.W.length||0!==this.qb){this.b.$b||(this.b.$b=a.Td(this.b.O,this.b.N,this.b.T));if(this.b.$b.fg!==this.b.O||this.b.$b.eg!==this.b.N)a.deleteTexture(this.b.$b),this.b.$b=a.Td(this.b.O,this.b.N,this.b.T);a.bd(this.b.$b);this.Ed&&a.clear(0,0,0,0)}this.Ed||a.clear(this.Nd[0]/255,this.Nd[1]/255,this.Nd[2]/255,1);this.ve=!0;var k=this.ab(0,0,!0,!0),b=this.ab(0,0,!1,!0);this.ve=!1;this.b.ad&&(k=Math.round(k),b=Math.round(b));this.Fl(k,b,
null);k=this.mc();a.he();a.scale(k,k);a.Vo(-this.Ra());a.translate((this.pa+this.ya)/-2,(this.qa+this.xa)/-2);a.ne();this.Oc?(this.ic.left=this.Nb.Tb(this.pa),this.ic.top=this.Nb.Ub(this.qa),this.ic.right=this.Nb.Tb(this.ya),this.ic.bottom=this.Nb.Ub(this.xa),this.zd||!this.ic.Sh(this.ri)?(q(this.wf),b=this.rn(),this.zd=!1,this.ri.Jh(this.ic)):b=this.wf):b=this.e;var g,f,e=null,c=0;for(g=b.length;c<g;++c)f=b[c],f!==e&&(this.Br(b[c],a),e=f);this.Oc&&(this.wf=b);this.ge&&(b=this.W.length?this.W[0].hb:
0,c=this.W.length?this.W[0].index:0,0===this.W.length||1===this.W.length&&!a.wl(b)&&1===this.opacity?(1===this.W.length?(a.cd(b),a.Mf(this.Sa.rg(),1/this.b.O,1/this.b.N,0,0,1,1,k,this.Ra(),this.pa,this.qa,(this.pa+this.ya)/2,(this.qa+this.xa)/2,this.va[c]),a.Ui(b)&&(this.b.da=!0)):a.cd(0),a.bd(this.Sa.rg()),a.Te(this.opacity),a.Pb(this.b.$b),a.ie(this.mb,this.lb),a.he(),a.ne(),k=this.b.O/2,b=this.b.N/2,a.eh(-k,b,k,b,k,-b,-k,-b),a.Pb(null)):this.Sa.Dl(a,this,null,this.Sa.rg()))};f.prototype.Br=function(a,
b){if(a.visible&&0!==a.width&&0!==a.height){a.ib();var c=a.$a;c.right<this.pa||c.bottom<this.qa||c.left>this.ya||c.top>this.xa||(a.Cp?this.Cr(a,b):(b.cd(0),b.ie(a.mb,a.lb),a.Ib(b)))}};f.prototype.Cr=function(a,b){var c=a.W[0].hb,k=a.W[0].index,g=this.mc();if(1!==a.W.length||b.wl(c)||b.Ht(c)||(a.m||a.k.Ra())&&b.bh(c)||1!==a.opacity||a.type.ja.lo)this.Sa.Dl(b,this,a,this.ge?this.b.$b:this.Sa.rg()),b.he(),b.scale(g,g),b.Vo(-this.Ra()),b.translate((this.pa+this.ya)/-2,(this.qa+this.xa)/-2),b.ne();else{b.cd(c);
b.ie(a.mb,a.lb);b.Ui(c)&&(this.b.da=!0);var f=0,e=0,m=0,w=0;b.bh(c)&&(c=a.$a,f=this.rc(c.left,c.top,!0),e=this.rc(c.left,c.top,!1),m=this.rc(c.right,c.bottom,!0),c=this.rc(c.right,c.bottom,!1),f/=windowWidth,e=1-e/windowHeight,m/=windowWidth,w=1-c/windowHeight);b.Mf(this.ge?this.b.$b:this.Sa.rg(),1/a.width,1/a.height,f,e,m,w,g,this.Ra(),this.pa,this.qa,(this.pa+this.ya)/2,(this.qa+this.xa)/2,a.va[k]);a.Ib(b)}};f.prototype.ab=function(a,b,c,k){var g=this.b.devicePixelRatio;this.b.qf&&(a*=g,b*=g);var g=
this.b.Go,f=this.b.Ho,g=(this.Sa.scrollX-g)*this.wc+g,f=(this.Sa.scrollY-f)*this.xc+f,e=g,m=f,w=1/this.mc(!k);k?(e-=this.b.O*w/2,m-=this.b.N*w/2):(e-=this.b.width*w/2,m-=this.b.height*w/2);e+=a*w;m+=b*w;b=this.Ra();0!==b&&(e-=g,m-=f,a=Math.cos(b),b=Math.sin(b),k=e*a-m*b,m=m*a+e*b,e=k+g,m+=f);return c?e:m};f.prototype.rc=function(a,b,c){var k=this.b.Go,g=this.b.Ho,k=(this.Sa.scrollX-k)*this.wc+k,f=(this.Sa.scrollY-g)*this.xc+g,g=k,e=f,m=this.Ra();if(0!==m){a-=k;b-=f;var w=Math.cos(-m),m=Math.sin(-m),
h=a*w-b*m;b=b*w+a*m;a=h+k;b+=f}k=1/this.mc(!1);g-=this.b.O*k/2;e-=this.b.N*k/2;g=(a-g)/k;return c?g:(b-e)/k};f.prototype.Ob=function(){var a,b,c,k={s:this.scale,a:this.m,vl:this.pa,vt:this.qa,vr:this.ya,vb:this.xa,v:this.visible,bc:this.Nd,t:this.Ed,px:this.wc,py:this.xc,o:this.opacity,zr:this.Fb,fx:[],cg:this.ig,instances:[]};a=0;for(b=this.H.length;a<b;a++)c=this.H[a],k.fx.push({name:c.name,active:c.Qa,params:this.va[c.index]});return k};f.prototype.tc=function(a){var b,c,k;this.scale=a.s;this.m=
a.a;this.pa=a.vl;this.qa=a.vt;this.ya=a.vr;this.xa=a.vb;this.visible=a.v;this.Nd=a.bc;this.Ed=a.t;this.wc=a.px;this.xc=a.py;this.opacity=a.o;this.Fb=a.zr;this.ig=a.cg||[];za(this.Xb,this.lp);var g=new ba;b=0;for(k=this.ig.length;b<k;++b)g.add(this.ig[b]);c=b=0;for(k=this.Xb.length;b<k;++b)g.contains(this.Xb[b][2])||(this.Xb[c]=this.Xb[b],++c);this.Xb.length=c;c=a.fx;b=0;for(k=c.length;b<k;b++)if(a=this.pk(c[b].name))a.Qa=c[b].active,this.va[a.index]=c[b].params;this.Fd();this.e.sort(h);this.We=!0};
Qb=f})();
(function(){function n(a,b){var d,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<e;d++)if(a[d]!==b[d])return!1;return!0}}function h(a,b){return a.index-b.index}function f(a){var b,d,e,c;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(h);a.length>=r.length&&(r.length=a.length+1);r[a.length]||(r[a.length]=[]);c=r[a.length];b=0;for(d=c.length;b<d;b++)if(e=c[b],n(a,e))return e;c.push(a);return a}
function p(a,b){this.b=a;this.tp={};this.dn={};this.Ak=!1;this.yn=new ba;this.Yj=[];this.Gj=[];this.name=b[0];var d=b[1];this.Xd=[];var e,c;e=0;for(c=d.length;e<c;e++)this.An(d[e],null,this.Xd)}function q(a){this.type=a;this.e=[];this.S=[];this.na=!0}function c(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Ca=[];this.je=[];this.xn=this.nj=this.Ul=this.Fk=this.group=this.kp=!1;this.kb=[];this.Cc=[];this.Ac=[];this.tg="";this.lf=this.Fk=this.group=!1;this.Hh=null;d[1]&&(this.tg=d[1][1].toLowerCase(),
this.group=!0,this.Fk=!!d[1][0],this.Hh=[],this.lf=this.Fk,this.b.bf.push(this),this.b.ug[this.tg]=this);this.Yc=d[2];this.P=d[4];this.group||(this.b.Mm[this.P.toString()]=this);var e=d[5];a=0;for(b=e.length;a<b;a++){var c=new Rb(this,e[a]);c.index=a;this.kb.push(c);this.Am(c.type)}e=d[6];a=0;for(b=e.length;a<b;a++)c=new Sb(this,e[a]),c.index=a,this.Cc.push(c);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.An(d[a],this,this.Ac);this.mi=!1;this.kb.length&&(this.mi=null==this.kb[0].type&&
this.kb[0].bb==W.prototype.i.km)}function a(a,b){var d,e,c;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Yb))for(d=0,e=a.Hb.length;d<e;d++)c=a.Hb[d],a!==c&&-1===b.indexOf(c)&&b.push(c)}function b(a,b){this.Vb=a;this.sheet=a.sheet;this.b=a.b;this.M=[];this.wa=[];this.Y={};this.index=-1;this.$f=!1;this.bb=this.b.Id(b[1]);this.trigger=0<b[3];this.cn=2===b[3];this.Xc=b[4];this.yg=b[5];this.dt=b[6];this.P=b[7];this.b.ff[this.P.toString()]=this;-1===b[0]?(this.type=null,this.Na=this.Il,this.se=null,this.Ec=-1):
(this.type=this.b.q[b[0]],this.Na=this.dt?this.Rt:this.Hl,b[2]?(this.se=this.type.ai(b[2]),this.Ec=this.type.mk(b[2])):(this.se=null,this.Ec=-1),this.Vb.parent&&this.Vb.parent.Zi());this.cn&&(this.Na=this.St);if(10===b.length){var d,e,c=b[9];d=0;for(e=c.length;d<e;d++){var k=new Tb(this,c[d]);this.M.push(k)}this.wa.length=c.length}}function v(a,b){this.Vb=a;this.sheet=a.sheet;this.b=a.b;this.M=[];this.wa=[];this.Y={};this.index=-1;this.$f=!1;this.bb=this.b.Id(b[1]);-1===b[0]?(this.type=null,this.Na=
this.Il,this.se=null,this.Ec=-1):(this.type=this.b.q[b[0]],this.Na=this.Hl,b[2]?(this.se=this.type.ai(b[2]),this.Ec=this.type.mk(b[2])):(this.se=null,this.Ec=-1));this.P=b[3];this.b.$e[this.P.toString()]=this;if(6===b.length){var d,e,c=b[5];d=0;for(e=c.length;d<e;d++){var k=new Tb(this,c[d]);this.M.push(k)}this.wa.length=c.length}}function g(){e++;s.length===e&&s.push(new Ub);return s[e]}function d(a,b){this.la=a;this.Vb=a.Vb;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Uc=null;this.Cd=0;this.get=
null;this.Tm=0;this.Sa=null;this.key=0;this.object=null;this.index=0;this.wh=this.Ue=this.wh=this.Ue=this.en=this.ye=this.xh=null;this.Bc=!1;var d,e,c;switch(b[0]){case 0:case 7:this.Uc=new Vb(this,b[1]);this.Cd=0;this.get=this.Cs;break;case 1:this.Uc=new Vb(this,b[1]);this.Cd=0;this.get=this.Ds;break;case 5:this.Uc=new Vb(this,b[1]);this.Cd=0;this.get=this.Hs;break;case 3:case 8:this.Tm=b[1];this.get=this.As;break;case 6:this.Sa=this.b.Vk[b[1]];this.get=this.Is;break;case 9:this.key=b[1];this.get=
this.Gs;break;case 4:this.object=this.b.q[b[1]];this.get=this.Js;this.Vb.Am(this.object);this.la instanceof Sb?this.Vb.Zi():this.Vb.parent&&this.Vb.parent.Zi();break;case 10:this.index=b[1];a.type.C?(this.get=this.Es,this.Bc=!0):this.get=this.Fs;break;case 11:this.xh=b[1];this.ye=null;this.get=this.Bs;break;case 2:case 12:this.en=b[1];this.get=this.zs;break;case 13:for(this.get=this.Ks,this.Ue=[],this.wh=[],d=1,e=b.length;d<e;d++)c=new Tb(this.la,b[d]),this.Ue.push(c),this.wh.push(0)}}function l(a,
b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Ca=[];this.name=d[1];this.Fp=d[2];this.Ek=d[3];this.Eg=!!d[4];this.li=!!d[5];this.P=d[6];this.b.Yf[this.P.toString()]=this;this.data=this.Ek;this.parent?(this.Pe=this.Eg||this.li?-1:this.b.au++,this.b.Sq.push(this)):(this.Pe=-1,this.b.Rq.push(this))}function u(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Ca=[];this.wg=null;this.Qs=d[1];this.Qa=!0}function k(){this.np=[];this.reset(null)}var r=[];p.prototype.toString=function(){return this.name};
p.prototype.An=function(a,b,d){switch(a[0]){case 0:a=new Wb(this,b,a);if(a.Yc)for(d.push(a),d=0,b=a.kb.length;d<b;d++)a.kb[d].trigger&&this.Bn(a,d);else a.In()?this.Bn(a,0):d.push(a);break;case 1:a=new Nb(this,b,a);d.push(a);break;case 2:a=new Xb(this,b,a),d.push(a)}};p.prototype.Ba=function(){var a,b;a=0;for(b=this.Xd.length;a<b;a++)this.Xd[a].Ba(a<b-1&&this.Xd[a+1].mi)};p.prototype.Yl=function(){this.Yj.length=0;this.Gj.length=0;this.zm(this);this.Gj.length=0};p.prototype.zm=function(a){var b,d,
e,c,k=a.Yj,g=a.Gj,f=this.yn.oe();b=0;for(d=f.length;b<d;++b)e=f[b],c=e.wg,!e.Qa||a===c||-1<g.indexOf(c)||(g.push(c),c.zm(a),k.push(c))};p.prototype.Na=function(a){this.b.Ev||(this.Ak=!0,a||(this.b.Ok=!0));var b,d;b=0;for(d=this.Xd.length;b<d;b++){var e=this.Xd[b];e.Na();this.b.Rj(e.Ca);this.b.Zd&&this.b.jb()}a||(this.b.Ok=!1)};p.prototype.Bn=function(a,b){a.Yc||this.b.qj.push(a);var d,e,c=a.kb[b],k;k=c.type?c.type.name:"system";var g=(d=c.cn)?this.dn:this.tp;g[k]||(g[k]=[]);k=g[k];g=c.bb;if(d){if(c.M.length&&
(c=c.M[0],1===c.type&&2===c.Uc.type)){c=c.Uc.value.toLowerCase();d=0;for(e=k.length;d<e;d++)if(k[d].method==g){d=k[d].mg;d[c]?d[c].push([a,b]):d[c]=[[a,b]];return}d={};d[c]=[[a,b]];k.push({method:g,mg:d})}}else{d=0;for(e=k.length;d<e;d++)if(k[d].method==g){k[d].mg.push([a,b]);return}X&&g===X.prototype.i.Ze?k.unshift({method:g,mg:[[a,b]]}):k.push({method:g,mg:[[a,b]]})}};Db=p;q.prototype.zk=function(){return this.na?this.type.e.length:this.e.length};q.prototype.Hc=function(){return this.na?this.type.e:
this.e};q.prototype.ah=function(a){a&&(a.b.Jb().Fc.Yc?(this.na&&(this.e.length=0,za(this.S,a.type.e),this.na=!1),a=this.S.indexOf(a),-1!==a&&(this.e.push(this.S[a]),this.S.splice(a,1))):(this.na=!1,this.e.length=1,this.e[0]=a))};lb=q;window._c2hh_="595E09B44298EB3B8CBCAEB682CEB86C9AE43304";c.prototype.Ba=function(a){var b,d=this.parent;if(this.group)for(this.nj=!0;d;){if(!d.group){this.nj=!1;break}d=d.parent}this.Ul=!this.In()&&(!this.parent||this.parent.group&&this.parent.nj);this.xn=!!a;this.je=
this.Ca.slice(0);for(d=this.parent;d;){a=0;for(b=d.Ca.length;a<b;a++)this.Pq(d.Ca[a]);d=d.parent}this.Ca=f(this.Ca);this.je=f(this.je);a=0;for(b=this.kb.length;a<b;a++)this.kb[a].Ba();a=0;for(b=this.Cc.length;a<b;a++)this.Cc[a].Ba();a=0;for(b=this.Ac.length;a<b;a++)this.Ac[a].Ba(a<b-1&&this.Ac[a+1].mi)};c.prototype.Wt=function(a){if(this.lf!==!!a){this.lf=!!a;var b;a=0;for(b=this.Hh.length;a<b;++a)this.Hh[a].zp();0<b&&this.b.ka.xe&&this.b.ka.xe.Yl()}};c.prototype.Am=function(b){a(b,this.Ca)};c.prototype.Pq=
function(b){a(b,this.je)};c.prototype.Zi=function(){this.kp=!0;this.parent&&this.parent.Zi()};c.prototype.In=function(){return this.kb.length?this.kb[0].trigger:!1};c.prototype.Na=function(){var a,b=!1,d,e=this.b,c=this.b.Jb();c.Fc=this;var k=this.kb;this.mi||(c.$j=!1);if(this.Yc){0===k.length&&(b=!0);c.wb=0;for(a=k.length;c.wb<a;c.wb++)k[c.wb].trigger||(d=k[c.wb].Na())&&(b=!0);(c.Ke=b)&&this.Gl()}else{c.wb=0;for(a=k.length;c.wb<a;c.wb++)if(d=k[c.wb].Na(),!d){c.Ke=!1;this.Ul&&e.Zd&&e.jb();return}c.Ke=
!0;this.Gl()}this.Fr(c)};c.prototype.Fr=function(a){a.Ke&&this.xn&&(a.$j=!0);this.Ul&&this.b.Zd&&this.b.jb()};c.prototype.Pt=function(a){this.b.Jb().Fc=this;this.kb[a].Na()&&(this.Gl(),this.b.Jb().Ke=!0)};c.prototype.Gl=function(){var a=this.b.Jb(),b;a.cc=0;for(b=this.Cc.length;a.cc<b;a.cc++)if(this.Cc[a.cc].Na())return;this.Wo()};c.prototype.Nt=function(){var a=this.b.Jb(),b;for(b=this.Cc.length;a.cc<b;a.cc++)if(this.Cc[a.cc].Na())return;this.Wo()};c.prototype.Wo=function(){if(this.Ac.length){var a,
b,d,e,c=this.Ac.length-1;this.b.yl(this);if(this.kp)for(a=0,b=this.Ac.length;a<b;a++)d=this.Ac[a],(e=!this.nj||!this.group&&a<c)&&this.b.xl(d.Ca),d.Na(),e?this.b.If(d.Ca):this.b.Rj(d.Ca);else for(a=0,b=this.Ac.length;a<b;a++)this.Ac[a].Na();this.b.Mo()}};c.prototype.Qt=function(){var a=this.b.Jb();a.Fc=this;var b=!1,d;a.wb=0;for(d=this.kb.length;a.wb<d;a.wb++)if(this.kb[a.wb].Na())b=!0;else if(!this.Yc)return!1;return this.Yc?b:!0};c.prototype.Ws=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=
b;--b)if(this.kb[b].type===a.type)return!1;return!0};Wb=c;b.prototype.Ba=function(){var a,b,d;a=0;for(b=this.M.length;a<b;a++)d=this.M[a],d.Ba(),d.Bc&&(this.$f=!0)};b.prototype.St=function(){return!0};b.prototype.Il=function(){var a,b;a=0;for(b=this.M.length;a<b;a++)this.wa[a]=this.M[a].get();return Ta(this.bb.apply(this.b.dd,this.wa),this.yg)};b.prototype.Rt=function(){var a,b;a=0;for(b=this.M.length;a<b;a++)this.wa[a]=this.M[a].get();a=this.bb.apply(this.se?this.se:this.type,this.wa);this.type.Md();
return a};b.prototype.Hl=function(){var a,b,d,e,c,k,g,f,l=this.type,r=l.ha(),h=this.Vb.Yc&&!this.trigger;b=0;var n=l.Yb,s=l.C,q=l.pd,p=this.Ec,v=-1<p,u=this.$f,y=this.M,B=this.wa,L=this.yg,E=this.bb,I;if(u)for(b=0,c=y.length;b<c;++b)k=y[b],k.Bc||(B[b]=k.get(0));else for(b=0,c=y.length;b<c;++b)B[b]=y[b].get(0);if(r.na){r.e.length=0;r.S.length=0;I=l.e;a=0;for(e=I.length;a<e;++a){f=I[a];if(u)for(b=0,c=y.length;b<c;++b)k=y[b],k.Bc&&(B[b]=k.get(a));v?(b=0,s&&(b=f.type.hf[q]),b=E.apply(f.K[p+b],B)):b=E.apply(f,
B);(g=Ta(b,L))?r.e.push(f):h&&r.S.push(f)}l.finish&&l.finish(!0);r.na=!1;l.Md();return r.zk()}d=0;I=(g=h&&!this.Vb.Ws(this))?r.S:r.e;var G=!1;a=0;for(e=I.length;a<e;++a){f=I[a];if(u)for(b=0,c=y.length;b<c;++b)k=y[b],k.Bc&&(B[b]=k.get(a));v?(b=0,s&&(b=f.type.hf[q]),b=E.apply(f.K[p+b],B)):b=E.apply(f,B);if(Ta(b,L))if(G=!0,g){if(r.e.push(f),n)for(b=0,c=f.siblings.length;b<c;b++)k=f.siblings[b],k.type.ha().e.push(k)}else{I[d]=f;if(n)for(b=0,c=f.siblings.length;b<c;b++)k=f.siblings[b],k.type.ha().e[d]=
k;d++}else if(g){I[d]=f;if(n)for(b=0,c=f.siblings.length;b<c;b++)k=f.siblings[b],k.type.ha().S[d]=k;d++}else if(h&&(r.S.push(f),n))for(b=0,c=f.siblings.length;b<c;b++)k=f.siblings[b],k.type.ha().S.push(k)}I.length=d;if(n)for(s=l.Hb,a=0,e=s.length;a<e;a++)f=s[a].ha(),g?f.S.length=d:f.e.length=d;d=G;if(g&&!G)for(a=0,e=r.e.length;a<e;a++){f=r.e[a];if(u)for(b=0,c=y.length;b<c;b++)k=y[b],k.Bc&&(B[b]=k.get(a));b=v?E.apply(f.K[p],B):E.apply(f,B);if(Ta(b,L)){G=!0;break}}l.finish&&l.finish(d||h);return h?
G:r.zk()};Rb=b;v.prototype.Ba=function(){var a,b,d;a=0;for(b=this.M.length;a<b;a++)d=this.M[a],d.Ba(),d.Bc&&(this.$f=!0)};v.prototype.Il=function(){var a=this.b,b,d,e=this.M,c=this.wa;b=0;for(d=e.length;b<d;++b)c[b]=e[b].get();return this.bb.apply(a.dd,c)};v.prototype.Hl=function(){var a=this.type,b=this.Ec,d=a.pd,e=this.$f,c=this.M,k=this.wa,g=this.bb,f=a.ha().Hc(),a=a.C,l=-1<b,r,h,n,s,q,p;if(e)for(h=0,s=c.length;h<s;++h)q=c[h],q.Bc||(k[h]=q.get(0));else for(h=0,s=c.length;h<s;++h)k[h]=c[h].get(0);
r=0;for(n=f.length;r<n;++r){p=f[r];if(e)for(h=0,s=c.length;h<s;++h)q=c[h],q.Bc&&(k[h]=q.get(r));l?(h=0,a&&(h=p.type.hf[d]),g.apply(p.K[b+h],k)):g.apply(p,k)}return!1};Sb=v;var s=[],e=-1;d.prototype.Ba=function(){var a,b;if(11===this.type)this.ye=this.b.mn(this.xh,this.Vb.parent);else if(13===this.type)for(a=0,b=this.Ue.length;a<b;a++)this.Ue[a].Ba();this.Uc&&this.Uc.Ba()};d.prototype.kt=function(a){this.Bc||!a||a.ja.aj||(this.Bc=!0)};d.prototype.cp=function(){this.Bc=!0};d.prototype.Cs=function(a){this.Cd=
a||0;a=g();this.Uc.get(a);e--;return a.data};d.prototype.Ds=function(a){this.Cd=a||0;a=g();this.Uc.get(a);e--;return P(a.data)?a.data:""};d.prototype.Js=function(){return this.object};d.prototype.As=function(){return this.Tm};d.prototype.Hs=function(a){this.Cd=a||0;a=g();this.Uc.get(a);e--;return a.Ka()?this.b.rd(a.data):this.b.qg(a.data)};d.prototype.Is=function(){return this.Sa};d.prototype.Gs=function(){return this.key};d.prototype.Fs=function(){return this.index};d.prototype.Es=function(a){a=
a||0;var b=this.la.type,d=null,d=b.ha(),e=d.Hc();if(e.length)d=e[a%e.length].type;else if(d.S.length)d=d.S[a%d.S.length].type;else if(b.e.length)d=b.e[a%b.e.length].type;else return 0;return this.index+d.Vh[b.pd]};d.prototype.Bs=function(){return this.ye};d.prototype.zs=function(){return this.en};d.prototype.Ks=function(){var a,b;a=0;for(b=this.Ue.length;a<b;a++)this.wh[a]=this.Ue[a].get();return this.wh};Tb=d;l.prototype.Ba=function(){this.Ca=f(this.Ca)};l.prototype.$i=function(a){var b=this.b.ln();
this.parent&&!this.Eg&&b?(this.Pe>=b.length&&(b.length=this.Pe+1),b[this.Pe]=a):this.data=a};l.prototype.tn=function(){var a=this.b.ln();return!this.parent||this.Eg||!a||this.li?this.data:this.Pe>=a.length||"undefined"===typeof a[this.Pe]?this.Ek:a[this.Pe]};l.prototype.Na=function(){!this.parent||this.Eg||this.li||this.$i(this.Ek)};Nb=l;u.prototype.toString=function(){return"include:"+this.wg.toString()};u.prototype.Ba=function(){this.wg=this.b.bk[this.Qs];this.sheet.yn.add(this);this.Ca=f(this.Ca);
for(var a=this.parent;a;)a.group&&a.Hh.push(this),a=a.parent;this.zp()};u.prototype.Na=function(){this.parent&&this.b.dh(this.b.q);this.wg.Ak||this.wg.Na(!0);this.parent&&this.b.If(this.b.q)};u.prototype.zp=function(){for(var a=this.parent;a;){if(a.group&&!a.lf){this.Qa=!1;return}a=a.parent}this.Qa=!0};Xb=u;k.prototype.reset=function(a){this.Fc=a;this.cc=this.wb=0;this.np.length=0;this.$j=this.Ke=!1};Mb=k})();
(function(){function n(a,b){this.la=a;this.b=a.b;this.type=b[0];this.get=[this.Sr,this.Or,this.as,this.ds,this.Hr,this.bs,this.Wr,this.Lr,this.Vr,this.$r,this.Ir,this.Zr,this.Mr,this.Xr,this.Tr,this.Ur,this.Pr,this.Qr,this.Kr,this.cs,this.Yr,this.Rr,this.Jr,this.Nr][this.type];var c=null;this.xd=this.M=this.wa=this.bb=this.kj=this.Va=this.first=this.value=null;this.Ec=-1;this.$d=null;this.Ep=-1;this.ye=this.xh=null;this.Lf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Vb(a,b[1]);break;case 18:this.first=new Vb(a,b[1]);this.Va=new Vb(a,b[2]);this.kj=new Vb(a,b[3]);break;case 19:this.bb=this.b.Id(b[1]);this.bb!==W.prototype.Fa.random&&this.bb!==W.prototype.Fa.br||this.la.cp();this.wa=[];this.M=[];3===b.length?(c=b[2],this.wa.length=c.length+1):this.wa.length=1;break;case 20:this.xd=this.b.q[b[1]];this.Ec=-1;this.bb=this.b.Id(b[2]);this.Lf=b[3];hc&&this.bb===hc.prototype.Fa.Jp&&this.la.cp();this.$d=b[4]?new Vb(a,b[4]):null;this.wa=[];this.M=[];6===b.length?(c=
b[5],this.wa.length=c.length+1):this.wa.length=1;break;case 21:this.xd=this.b.q[b[1]];this.Lf=b[2];this.$d=b[3]?new Vb(a,b[3]):null;this.Ep=b[4];break;case 22:this.xd=this.b.q[b[1]];this.xd.ai(b[2]);this.Ec=this.xd.mk(b[2]);this.bb=this.b.Id(b[3]);this.Lf=b[4];this.$d=b[5]?new Vb(a,b[5]):null;this.wa=[];this.M=[];7===b.length?(c=b[6],this.wa.length=c.length+1):this.wa.length=1;break;case 23:this.xh=b[1],this.ye=null}this.la.kt(this.xd);4<=this.type&&17>=this.type&&(this.first=new Vb(a,b[1]),this.Va=
new Vb(a,b[2]));if(c){var g,d;g=0;for(d=c.length;g<d;g++)this.M.push(new Vb(a,c[g]))}}function h(){++c;q.length===c&&q.push(new Ub);return q[c]}function f(a,b,c){var g,d;g=0;for(d=a.length;g<d;++g)a[g].get(c),b[g+1]=c.data}function p(a,b){this.type=a||V.Ye;this.data=b||0;this.Qe=null;this.type==V.Ye&&(this.data=Math.floor(this.data))}n.prototype.Ba=function(){23===this.type&&(this.ye=this.la.b.mn(this.xh,this.la.Vb.parent));this.first&&this.first.Ba();this.Va&&this.Va.Ba();this.kj&&this.kj.Ba();this.$d&&
this.$d.Ba();if(this.M){var a,b;a=0;for(b=this.M.length;a<b;a++)this.M[a].Ba()}};var q=[],c=-1;n.prototype.cs=function(a){var b=this.M,n=this.wa;n[0]=a;a=h();f(b,n,a);--c;this.bb.apply(this.b.dd,n)};n.prototype.Yr=function(a){var b=this.xd,n=this.wa,g=this.M,d=this.$d,l=this.bb,q=this.la.Cd,k=b.ha(),r=k.Hc();if(!r.length)if(k.S.length)r=k.S;else{this.Lf?a.Oa(""):a.ea(0);return}n[0]=a;a.Qe=b;a=h();f(g,n,a);d&&(d.get(a),a.Ka()&&(q=a.data,r=b.e));--c;b=r.length;if(q>=b||q<=-b)q%=b;0>q&&(q+=b);l.apply(r[q],
n)};n.prototype.Jr=function(a){var b=this.xd,n=this.wa,g=this.M,d=this.$d,l=this.Ec,q=this.bb,k=this.la.Cd,r=b.ha(),s=r.Hc();if(!s.length)if(r.S.length)s=r.S;else{this.Lf?a.Oa(""):a.ea(0);return}n[0]=a;a.Qe=b;a=h();f(g,n,a);d&&(d.get(a),a.Ka()&&(k=a.data,s=b.e));--c;g=s.length;if(k>=g||k<=-g)k%=g;0>k&&(k+=g);k=s[k];s=0;b.C&&(s=k.type.hf[b.pd]);q.apply(k.K[l+s],n)};n.prototype.Rr=function(a){var b=this.$d,f=this.xd,g=this.Ep,d=this.la.Cd,l=f.ha(),n=l.Hc();if(!n.length)if(l.S.length)n=l.S;else{this.Lf?
a.Oa(""):a.ea(0);return}if(b){l=h();b.get(l);if(l.Ka()){d=l.data;f=f.e;d%=f.length;0>d&&(d+=f.length);g=f[d].Ja[g];P(g)?a.Oa(g):a.A(g);--c;return}--c}b=n.length;if(d>=b||d<=-b)d%=b;0>d&&(d+=b);d=n[d];n=0;f.C&&(n=d.type.Vh[f.pd]);g=d.Ja[g+n];P(g)?a.Oa(g):a.A(g)};n.prototype.Sr=function(a){a.type=V.Ye;a.data=this.value};n.prototype.Or=function(a){a.type=V.Xe;a.data=this.value};n.prototype.as=function(a){a.type=V.String;a.data=this.value};n.prototype.ds=function(a){this.first.get(a);a.Ka()&&(a.data=
-a.data)};n.prototype.Hr=function(a){this.first.get(a);var b=h();this.Va.get(b);a.Ka()&&b.Ka()&&(a.data+=b.data,b.sf()&&a.Bf());--c};n.prototype.bs=function(a){this.first.get(a);var b=h();this.Va.get(b);a.Ka()&&b.Ka()&&(a.data-=b.data,b.sf()&&a.Bf());--c};n.prototype.Wr=function(a){this.first.get(a);var b=h();this.Va.get(b);a.Ka()&&b.Ka()&&(a.data*=b.data,b.sf()&&a.Bf());--c};n.prototype.Lr=function(a){this.first.get(a);var b=h();this.Va.get(b);a.Ka()&&b.Ka()&&(a.data/=b.data,a.Bf());--c};n.prototype.Vr=
function(a){this.first.get(a);var b=h();this.Va.get(b);a.Ka()&&b.Ka()&&(a.data%=b.data,b.sf()&&a.Bf());--c};n.prototype.$r=function(a){this.first.get(a);var b=h();this.Va.get(b);a.Ka()&&b.Ka()&&(a.data=Math.pow(a.data,b.data),b.sf()&&a.Bf());--c};n.prototype.Ir=function(a){this.first.get(a);var b=h();this.Va.get(b);a.Ka()?b.ni()?a.Oa(a.data.toString()+b.data):a.data&&b.data?a.ea(1):a.ea(0):a.ni()&&(a.data=b.ni()?a.data+b.data:a.data+(Math.round(1E10*b.data)/1E10).toString());--c};n.prototype.Zr=function(a){this.first.get(a);
var b=h();this.Va.get(b);a.Ka()&&b.Ka()&&(a.data||b.data?a.ea(1):a.ea(0));--c};n.prototype.Kr=function(a){this.first.get(a);a.data?this.Va.get(a):this.kj.get(a)};n.prototype.Mr=function(a){this.first.get(a);var b=h();this.Va.get(b);a.ea(a.data===b.data?1:0);--c};n.prototype.Xr=function(a){this.first.get(a);var b=h();this.Va.get(b);a.ea(a.data!==b.data?1:0);--c};n.prototype.Tr=function(a){this.first.get(a);var b=h();this.Va.get(b);a.ea(a.data<b.data?1:0);--c};n.prototype.Ur=function(a){this.first.get(a);
var b=h();this.Va.get(b);a.ea(a.data<=b.data?1:0);--c};n.prototype.Pr=function(a){this.first.get(a);var b=h();this.Va.get(b);a.ea(a.data>b.data?1:0);--c};n.prototype.Qr=function(a){this.first.get(a);var b=h();this.Va.get(b);a.ea(a.data>=b.data?1:0);--c};n.prototype.Nr=function(a){var b=this.ye.tn();ha(b)?a.A(b):a.Oa(b)};Vb=n;p.prototype.sf=function(){return this.type===V.Xe};p.prototype.Ka=function(){return this.type===V.Ye||this.type===V.Xe};p.prototype.ni=function(){return this.type===V.String};
p.prototype.Bf=function(){this.sf()||(this.ni()&&(this.data=parseFloat(this.data)),this.type=V.Xe)};p.prototype.ea=function(a){this.type=V.Ye;this.data=Math.floor(a)};p.prototype.A=function(a){this.type=V.Xe;this.data=a};p.prototype.Oa=function(a){this.type=V.String;this.data=a};p.prototype.dp=function(a){ha(a)?(this.type=V.Xe,this.data=a):P(a)?(this.type=V.String,this.data=a.toString()):(this.type=V.Ye,this.data=0)};Ub=p;V={Ye:0,Xe:1,String:2}})();function W(n){this.b=n;this.Sb=[]}
W.prototype.Ob=function(){var n={},h,f,p,q,c,a,b,v;n.waits=[];var g=n.waits,d;h=0;for(f=this.Sb.length;h<f;h++){a=this.Sb[h];d={t:a.time,st:a.$t,s:a.ip,ev:a.lg.P,sm:[],sols:{}};a.lg.Cc[a.cc]&&(d.act=a.lg.Cc[a.cc].P);p=0;for(q=a.Ca.length;p<q;p++)d.sm.push(a.Ca[p].P);for(c in a.Qb)if(a.Qb.hasOwnProperty(c)){b=this.b.q[parseInt(c,10)];v={sa:a.Qb[c].Xo,insts:[]};p=0;for(q=a.Qb[c].Fe.length;p<q;p++)v.insts.push(a.Qb[c].Fe[p].uid);d.sols[b.P.toString()]=v}g.push(d)}return n};
W.prototype.tc=function(n){n=n.waits;var h,f,p,q,c,a,b,v,g,d,l;h=this.Sb.length=0;for(f=n.length;h<f;h++)if(a=n[h],v=this.b.Mm[a.ev.toString()]){g=-1;p=0;for(q=v.Cc.length;p<q;p++)if(v.Cc[p].P===a.act){g=p;break}if(-1!==g){b={Qb:{},Ca:[],Ym:!1};b.time=a.t;b.$t=a.st||"";b.ip=!!a.s;b.lg=v;b.cc=g;p=0;for(q=a.sm.length;p<q;p++)(v=this.b.ei(a.sm[p]))&&b.Ca.push(v);for(c in a.sols)if(a.sols.hasOwnProperty(c)&&(v=this.b.ei(parseInt(c,10)))){g=a.sols[c];d={Xo:g.sa,Fe:[]};p=0;for(q=g.insts.length;p<q;p++)(l=
this.b.di(g.insts[p]))&&d.Fe.push(l);b.Qb[v.index.toString()]=d}this.Sb.push(b)}}};
(function(){function n(){}function h(){}function f(){}var p=W.prototype;n.prototype.mm=function(){return!0};n.prototype.iq=function(){return!0};n.prototype.Mp=function(a,b,c){return Yb(a,b,c)};n.prototype.Rp=function(a){var b=this.b.ok(),c=b.Y.Every_lastTime||0,g=this.b.Zb.J;"undefined"===typeof b.Y.Every_seconds&&(b.Y.Every_seconds=a);var d=b.Y.Every_seconds;if(g>=c+d)return b.Y.Every_lastTime=c+d,g>=b.Y.Every_lastTime+.04&&(b.Y.Every_lastTime=g),b.Y.Every_seconds=a,!0;g<c-.1&&(b.Y.Every_lastTime=
g);return!1};n.prototype.Np=function(a,b,c){return Yb(a.tn(),b,c)};n.prototype.Vp=function(a){return(a=this.b.ug[a.toLowerCase()])&&a.lf};n.prototype.km=function(){var a=this.b.Jb();return a.$j?!1:!a.Ke};n.prototype.nm=function(){return!0};n.prototype.bq=function(){return!0};n.prototype.zj=function(){return!0};n.prototype.jq=function(){return!0};n.prototype.yj=function(){return!0};n.prototype.Ip=function(a,b,c){return Ka(U(a),U(c))<=U(b)};n.prototype.Up=function(a,b){return Ma(U(a),U(b))};n.prototype.Tp=
function(a,b,c){a=Ha(a);b=Ha(b);c=Ha(c);return Ma(c,b)?Ma(a,b)&&!Ma(a,c):!(!Ma(a,b)&&Ma(a,c))};p.i=new n;h.prototype.Sp=function(a){this.b.Fg||this.b.gg||(this.b.gg=a)};h.prototype.Pp=function(a,b,c,g){if(b&&a&&(b=this.b.Vm(a,b,c,g))){this.b.Jc++;var d;this.b.trigger(Object.getPrototypeOf(a.ja).i.zh,b);if(b.Yb)for(c=0,g=b.siblings.length;c<g;c++)d=b.siblings[c],this.b.trigger(Object.getPrototypeOf(d.type.ja).i.zh,d);this.b.Jc--;a=a.ha();a.na=!1;a.e.length=1;a.e[0]=b;if(b.Yb)for(c=0,g=b.siblings.length;c<
g;c++)d=b.siblings[c],a=d.type.ha(),a.na=!1,a.e.length=1,a.e[0]=d}};h.prototype.zq=function(a,b){0===a.Fp?ha(b)?a.$i(b):a.$i(parseFloat(b)):1===a.Fp&&a.$i(b.toString())};var q=[],c=[];p.fa=new h;f.prototype["int"]=function(a,b){P(b)?(a.ea(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ea(b)};f.prototype["float"]=function(a,b){P(b)?(a.A(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.A(b)};f.prototype.du=function(a,b){P(b)?a.Oa(b):a.Oa(b.toString())};f.prototype.random=function(a,b,c){void 0===c?a.A(Math.random()*
b):a.A(Math.random()*(c-b)+b)};f.prototype.sqrt=function(a,b){a.A(Math.sqrt(b))};f.prototype.abs=function(a,b){a.A(Math.abs(b))};f.prototype.round=function(a,b){a.ea(Math.round(b))};f.prototype.floor=function(a,b){a.ea(Math.floor(b))};f.prototype.ceil=function(a,b){a.ea(Math.ceil(b))};f.prototype.sin=function(a,b){a.A(Math.sin(U(b)))};f.prototype.cos=function(a,b){a.A(Math.cos(U(b)))};f.prototype.tan=function(a,b){a.A(Math.tan(U(b)))};f.prototype.asin=function(a,b){a.A(Da(Math.asin(b)))};f.prototype.acos=
function(a,b){a.A(Da(Math.acos(b)))};f.prototype.atan=function(a,b){a.A(Da(Math.atan(b)))};f.prototype.exp=function(a,b){a.A(Math.exp(b))};f.prototype.log10=function(a,b){a.A(Math.log(b)/Math.LN10)};f.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,g,d;c=2;for(g=arguments.length;c<g;c++)d=arguments[c],"number"===typeof d&&b<d&&(b=d);a.A(b)};f.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,g,d;c=2;for(g=arguments.length;c<g;c++)d=arguments[c],
"number"===typeof d&&b>d&&(b=d);a.A(b)};f.prototype.we=function(a){a.A(this.b.we)};f.prototype.Tf=function(a){a.A(this.b.Tf)};f.prototype.time=function(a){a.A(this.b.Zb.J)};f.prototype.uh=function(a){a.ea(this.b.uh)};f.prototype.Gi=function(a){a.ea(this.b.Gi)};f.prototype.ik=function(a){a.ea(this.b.ik)};f.prototype.m=function(a,b,c,g,d){a.A(Da(Ia(b,c,g,d)))};f.prototype.find=function(a,b,c){P(b)&&P(c)?a.ea(b.search(new RegExp(ab(c),"i"))):a.ea(-1)};f.prototype.left=function(a,b,c){a.Oa(P(b)?b.substr(0,
c):"")};f.prototype.right=function(a,b,c){a.Oa(P(b)?b.substr(b.length-c):"")};f.prototype.replace=function(a,b,c,g){P(b)&&P(c)&&P(g)?a.Oa(b.replace(new RegExp(ab(c),"gi"),g)):a.Oa(P(b)?b:"")};f.prototype.trim=function(a,b){a.Oa(P(b)?b.trim():"")};f.prototype.br=function(a){var b=R(Math.random()*(arguments.length-1));a.dp(arguments[b+1])};f.prototype.Uj=function(a){a.A(this.b.Uj/1E3)};f.prototype.zf=function(a){a.A(this.b.zf)};p.Fa=new f;p.Ot=function(){var a,b,f,g,d,l,h=this.b.Jb();a=0;for(f=this.Sb.length;a<
f;a++){g=this.Sb[a];if(-1===g.time){if(!g.ip)continue}else if(g.time>this.b.Zb.J)continue;h.Fc=g.lg;h.cc=g.cc;h.wb=0;for(b in g.Qb)g.Qb.hasOwnProperty(b)&&(d=this.b.q[parseInt(b,10)].ha(),l=g.Qb[b],d.na=l.Xo,za(d.e,l.Fe),d=l,d.Fe.length=0,c.push(d));g.lg.Nt();this.b.Rj(g.Ca);g.Ym=!0}b=a=0;for(f=this.Sb.length;a<f;a++)g=this.Sb[a],this.Sb[b]=g,g.Ym?(Va(g.Qb),g.Ca.length=0,q.push(g)):b++;this.Sb.length=b}})();
(function(){kb=function(h,f){var n=h[1],q=h[3],c=h[4],a=h[5],b=h[6],v=h[7],g=h[8];f.i||(f.i={});f.fa||(f.fa={});f.Fa||(f.Fa={});var d=f.i,l=f.fa,u=f.Fa;q&&(d.Op=function(a,b){return Yb(this.x,a,b)},d.Bu=function(a,b){return Yb(this.y,a,b)},d.Hu=function(){var a=this.k;this.ib();var b=this.$a;return!(b.right<a.pa||b.bottom<a.qa||b.left>a.ya||b.top>a.xa)},d.Iu=function(){this.ib();var a=this.$a,b=this.b.ka;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.Uu=function(a,b,d){var c=this.ha(),
g=c.Hc();if(!g.length)return!1;var f=g[0],l=f,h=Sa(f.x,f.y,b,d),n,q,p;n=1;for(q=g.length;n<q;n++)if(f=g[n],p=Sa(f.x,f.y,b,d),0===a&&p<h||1===a&&p>h)h=p,l=f;c.ah(l);return!0},l.Bq=function(a){this.x!==a&&(this.x=a,this.Ha())},l.Cq=function(a){this.y!==a&&(this.y=a,this.Ha())},l.kv=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Ha()},l.lv=function(a,b){var d=a.us(this);if(d){var c;d.rk?(c=d.rk(b,!0),d=d.rk(b,!1)):(c=d.x,d=d.y);if(this.x!==c||this.y!==d)this.x=c,this.y=d,this.Ha()}},
l.Nu=function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.Ha())},l.Mu=function(a,b){0!==b&&(this.x+=Math.cos(U(a))*b,this.y+=Math.sin(U(a))*b,this.Ha())},u.Bj=function(a){a.A(this.x)},u.Cj=function(a){a.A(this.y)},u.we=function(a){a.A(this.b.bi(this))});c&&(d.Au=function(a,b){return Yb(this.width,a,b)},d.xu=function(a,b){return Yb(this.height,a,b)},l.ov=function(a){this.width!==a&&(this.width=a,this.Ha())},l.iv=function(a){this.height!==a&&(this.height=a,this.Ha())},l.mv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Ha()},u.sv=function(a){a.A(this.width)},u.Du=function(a){a.A(this.height)},u.uu=function(a){this.ib();a.A(this.$a.left)},u.wu=function(a){this.ib();a.A(this.$a.top)},u.vu=function(a){this.ib();a.A(this.$a.right)},u.tu=function(a){this.ib();a.A(this.$a.bottom)});a&&(d.Ip=function(a,b){return Ka(this.m,U(b))<=U(a)},d.Up=function(a){return Ma(this.m,U(a))},d.Tp=function(a,b){var d=Ha(a),c=Ha(b),g=Fa(this.m);return Ma(c,
d)?Ma(g,d)&&!Ma(g,c):!(!Ma(g,d)&&Ma(g,c))},l.bv=function(a){a=U(Ea(a));isNaN(a)||this.m===a||(this.m=a,this.Ha())},l.Yu=function(a){0===a||isNaN(a)||(this.m+=U(a),this.m=Fa(this.m),this.Ha())},l.Zu=function(a){0===a||isNaN(a)||(this.m-=U(a),this.m=Fa(this.m),this.Ha())},l.$u=function(a,b){var d=La(this.m,U(b),U(a));isNaN(d)||this.m===d||(this.m=d,this.Ha())},l.av=function(a,b,d){a=La(this.m,Math.atan2(d-this.y,b-this.x),U(a));isNaN(a)||this.m===a||(this.m=a,this.Ha())},l.nv=function(a,b){var d=Math.atan2(b-
this.y,a-this.x);isNaN(d)||this.m===d||(this.m=d,this.Ha())},u.su=function(a){a.A(Ga(this.m))});n||(d.yu=function(a,b,d){return Yb(this.Ja[a],b,d)},d.Fu=function(a){return this.Ja[a]},d.Vu=function(a,b){var d=this.ha(),c=d.Hc();if(!c.length)return!1;var g=c[0],f=g,l=g.Ja[b],h,n,q;h=1;for(n=c.length;h<n;h++)if(g=c[h],q=g.Ja[b],0===a&&q<l||1===a&&q>l)l=q,f=g;d.ah(f);return!0},d.Tu=function(a){var b,d,c,g,f;if(this.b.ok().yg){f=this.ha();if(f.na)for(f.na=!1,f.e.length=0,f.S.length=0,c=this.e,b=0,d=c.length;b<
d;b++)g=c[b],g.uid===a?f.S.push(g):f.e.push(g);else{c=b=0;for(d=f.e.length;b<d;b++)g=f.e[b],f.e[c]=g,g.uid===a?f.S.push(g):c++;f.e.length=c}this.Md();return!!f.e.length}g=this.b.di(a);if(!g)return!1;f=this.ha();if(!f.na&&-1===f.e.indexOf(g))return!1;if(this.C)for(a=g.type.ta,b=0,d=a.length;b<d;b++){if(a[b]===this)return f.ah(g),this.Md(),!0}else if(g.type===this)return f.ah(g),this.Md(),!0;return!1},d.zh=function(){return!0},d.cq=function(){return!0},l.xq=function(a,b){var d=this.Ja;ha(d[a])?d[a]=
ha(b)?b:parseFloat(b):P(d[a])&&(d[a]=P(b)?b:b.toString())},l.ru=function(a,b){var d=this.Ja;ha(d[a])?d[a]=ha(b)?d[a]+b:d[a]+parseFloat(b):P(d[a])&&(d[a]=P(b)?d[a]+b:d[a]+b.toString())},l.pv=function(a,b){var d=this.Ja;ha(d[a])&&(d[a]=ha(b)?d[a]-b:d[a]-parseFloat(b))},l.cv=function(a,b){this.Ja[a]=b?1:0},l.qv=function(a){this.Ja[a]=1-this.Ja[a]},l.Qp=function(){this.b.Hd(this)},l.Yp||(l.Yp=function(a){var b,d;try{b=JSON.parse(a)}catch(c){return}this.b.xi(this,b,!0);this.Kd&&this.Kd();if(this.K)for(a=
0,b=this.K.length;a<b;++a)d=this.K[a],d.Kd&&d.Kd()}),u.Cu=function(a){var b=a.Qe.e.length,d,c,g;d=0;for(c=this.b.Tc.length;d<c;d++)g=this.b.Tc[d],a.Qe.C?0<=g.type.ta.indexOf(a.Qe)&&b++:g.type===a.Qe&&b++;a.ea(b)},u.Xu=function(a){a.ea(a.Qe.ha().Hc().length)},u.rv=function(a){a.ea(this.uid)},u.Eu=function(a){a.ea(this.sg())},u.jm||(u.jm=function(a){a.Oa(JSON.stringify(this.b.Jl(this,!0)))}));b&&(d.Ju=function(){return this.visible},l.Aq=function(a){!a!==!this.visible&&(this.visible=a,this.b.da=!0)},
d.zu=function(a,b){return Yb(gb(100*this.opacity),a,b)},l.jv=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.da=!0)},u.Opacity=function(a){a.A(gb(100*this.opacity))});v&&(d.Gu=function(a){return a?this.k===a:!1},d.Wu=function(a){var b=this.ha(),d=b.Hc();if(!d.length)return!1;var c=d[0],g=c,f,l;f=1;for(l=d.length;f<l;f++)if(c=d[f],0===a){if(c.k.index>g.k.index||c.k.index===g.k.index&&c.Wc()>g.Wc())g=c}else if(c.k.index<g.k.index||c.k.index===g.k.index&&c.Wc()<g.Wc())g=
c;b.ah(g);return!0},l.Qu=function(){var a=this.k,b=a.e;b.length&&b[b.length-1]===this||(a.Kf(this,!1),a.bg(this,!1),this.b.da=!0)},l.Ou=function(){var a=this.k,b=a.e;b.length&&b[0]===this||(a.Kf(this,!1),a.Ft(this),this.b.da=!0)},l.Pu=function(a){a&&a!=this.k&&(this.k.Kf(this,!0),this.k=a,a.bg(this,!0),this.b.da=!0)},l.uv=function(a,b){var d=0===a;if(b){var c=b.ps(this);c&&c.uid!==this.uid&&(this.k.index!==c.k.index&&(this.k.Kf(this,!0),this.k=c.k,c.k.bg(this,!0)),this.k.mt(this,c,d),this.b.da=!0)}},
u.Lu=function(a){a.ea(this.k.po)},u.Ku=function(a){a.Oa(this.k.name)},u.tv=function(a){a.ea(this.Wc())});g&&(l.gv=function(a,b){if(this.b.u){var d=this.type.qk(b);if(!(0>d)){var c=1===a;this.Jd[d]!==c&&(this.Jd[d]=c,this.Fd(),this.b.da=!0)}}},l.hv=function(a,b,d){if(this.b.u){var c=this.type.qk(a);0>c||(a=this.type.H[c],c=this.va[c],b=Math.floor(b),0>b||b>=c.length||(1===this.b.u.ys(a.hb,b)&&(d/=100),c[b]!==d&&(c[b]=d,a.Qa&&(this.b.da=!0))))}})};Eb=function(){this.Nj=this.Bh=!0;this.type.Fm=!0;this.b.da=
!0;var h,f,n=this.Ij;h=0;for(f=n.length;h<f;++h)n[h](this);this.k.Oc&&this.ib()};Fb=function(h){h&&this.Ij.push(h)};Hb=function(){if(this.Bh){var h=this.$a,f=this.df;h.set(this.x,this.y,this.x+this.width,this.y+this.height);h.offset(-this.zb*this.width,-this.Ab*this.height);this.m?(h.offset(-this.x,-this.y),f.ep(h,this.m),f.offset(this.x,this.y),f.Nm(h)):f.jh(h);h.normalize();this.Bh=!1;this.mu()}};var n=new va(0,0,0,0);Ib=function(){if(this.k.Oc){var h=this.k.Nb,f=this.$a;n.set(h.Tb(f.left),h.Ub(f.top),
h.Tb(f.right),h.Ub(f.bottom));this.Bb.Sh(n)||(this.Bb.right<this.Bb.left?h.update(this,null,n):h.update(this,this.Bb,n),this.Bb.Jh(n),this.k.zd=!0)}};Jb=function(){if(this.Nj&&this.Sd){this.ib();var h=this.type.Sj,f=this.$a;n.set(h.Tb(f.left),h.Ub(f.top),h.Tb(f.right),h.Ub(f.bottom));this.ec.Sh(n)||(this.ec.right<this.ec.left?h.update(this,null,n):h.update(this,this.ec,n),this.ec.Jh(n),this.Nj=!1)}};Gb=function(h,f){return this.$a.gc(h,f)&&this.df.gc(h,f)?this.Sc&&!this.Sc.bt()?(this.Sc.Yq(this.width,
this.height,this.m),this.Sc.gc(h-this.x,f-this.y)):!0:!1};Ab=function(){this.type.sj();return this.De};Kb=function(){this.k.am();return this.Pc};Lb=function(){this.W.length=0;var h,f;h=0;for(f=this.Jd.length;h<f;h++)this.Jd[h]&&this.W.push(this.type.H[h]);this.Cp=!!this.W.length};Bb=function(){return"Inst"+this.Qo};nb=function(h){if(h&&h.Yb&&h.type!=this){var f,n,q;f=0;for(n=h.siblings.length;f<n;f++)if(q=h.siblings[f],q.type==this)return q}h=this.ha().Hc();return h.length?h[0]:null};ob=function(h){var f=
this.ha().Hc();return f.length?f[h.sg()%f.length]:null};mb=function(){if(this.Qf&&!this.C){var h,f;h=0;for(f=this.e.length;h<f;h++)this.e[h].De=h;var n=h,q=this.b.Tc;h=0;for(f=q.length;h<f;++h)q[h].type===this&&(q[h].De=n++);this.Qf=!1}};yb=function(h){if(h<this.e.length)return this.e[h];h-=this.e.length;var f=this.b.Tc,n,q;n=0;for(q=f.length;n<q;++n)if(f[n].type===this){if(0===h)return f[n];--h}return null};pb=function(){return this.ke[this.nd]};qb=function(){this.nd++;this.nd===this.ke.length?this.ke.push(new lb(this)):
this.ke[this.nd].na=!0};sb=function(){this.nd++;this.nd===this.ke.length&&this.ke.push(new lb(this));var h=this.ke[this.nd],f=this.ke[this.nd-1];f.na?h.na=!0:(h.na=!1,za(h.e,f.e),za(h.S,f.S))};tb=function(){this.nd--};ub=function(h){var f,n,q,c,a,b=0;if(!this.C)for(f=0,n=this.ta.length;f<n;f++)for(a=this.ta[f],q=0,c=a.Ea.length;q<c;q++){if(h===a.Ea[q].name)return this.Y.lastBehIndex=b,a.Ea[q];b++}f=0;for(n=this.Ea.length;f<n;f++){if(h===this.Ea[f].name)return this.Y.lastBehIndex=b,this.Ea[f];b++}return null};
vb=function(h){return this.ai(h)?this.Y.lastBehIndex:-1};wb=function(h){var f,n;f=0;for(n=this.H.length;f<n;f++)if(this.H[f].name===h)return f;return-1};xb=function(){if(this.Yb&&!this.C){var h,f,n,q,c,a,b;this.sj();a=this.ha();var v=a.na,g=(h=this.b.Jb())&&h.Fc&&h.Fc.Yc;h=0;for(f=this.Hb.length;h<f;h++)if(c=this.Hb[h],c!==this&&(c.sj(),b=c.ha(),b.na=v,!v)){b.e.length=a.e.length;n=0;for(q=a.e.length;n<q;n++)b.e[n]=c.nn(a.e[n].De);if(g)for(b.S.length=a.S.length,n=0,q=a.S.length;n<q;n++)b.S[n]=c.nn(a.S[n].De)}}};
zb=function(){return"Type"+this.P};Yb=function(h,f,n){if("undefined"===typeof h||"undefined"===typeof n)return!1;switch(f){case 0:return h===n;case 1:return h!==n;case 2:return h<n;case 3:return h<=n;case 4:return h>n;case 5:return h>=n;default:return!1}}})();var fc={};function ic(n){this.b=n}
(function(){function n(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function h(a){a=a.toLowerCase();return T.hasOwnProperty(a)&&T[a].length?T[a][0].Wb():t.destination}function f(){return t.createGain?t.createGain():t.createGainNode()}function p(a){return t.createDelay?t.createDelay(a):t.createDelayNode(a)}function q(a){a.start?a.start(0):a.noteOn(0)}function c(a,b,d){a.start?a.start(0,b):a.noteGrainOn(0,b,d-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function b(a,
b,d,c,e,g){this.type="filter";this.gb=[a,b,d,c,e,g];this.R=f();this.G=f();this.G.gain.value=g;this.D=f();this.D.gain.value=1-g;this.Ga=t.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?a:qc[a];this.Ga.frequency.value=b;this.Ga.detune&&(this.Ga.detune.value=d);this.Ga.Q.value=c;this.Ga.gain.value=e;this.R.connect(this.Ga);this.R.connect(this.D);this.Ga.connect(this.G)}function v(a,b,d){this.type="delay";this.gb=[a,b,d];this.R=f();this.G=f();this.G.gain.value=d;this.D=f();this.D.gain.value=
1-d;this.Ug=f();this.kc=p(a);this.kc.delayTime.value=a;this.Qh=f();this.Qh.gain.value=b;this.R.connect(this.Ug);this.R.connect(this.D);this.Ug.connect(this.G);this.Ug.connect(this.kc);this.kc.connect(this.Qh);this.Qh.connect(this.Ug)}function g(a,b,d,c){this.type="convolve";this.gb=[b,d,c];this.R=f();this.G=f();this.G.gain.value=d;this.D=f();this.D.gain.value=1-d;this.te=t.createConvolver();a&&(this.te.normalize=b,this.te.buffer=a);this.R.connect(this.te);this.R.connect(this.D);this.te.connect(this.G)}
function d(a,b,d,c,e){this.type="flanger";this.gb=[a,b,d,c,e];this.R=f();this.D=f();this.D.gain.value=1-e/2;this.G=f();this.G.gain.value=e/2;this.Wh=f();this.Wh.gain.value=c;this.kc=p(a+b);this.kc.delayTime.value=a;this.Ua=t.createOscillator();this.Ua.frequency.value=d;this.Mb=f();this.Mb.gain.value=b;this.R.connect(this.kc);this.R.connect(this.D);this.kc.connect(this.G);this.kc.connect(this.Wh);this.Wh.connect(this.kc);this.Ua.connect(this.Mb);this.Mb.connect(this.kc.delayTime);q(this.Ua)}function l(a,
b,d,c,e,g){this.type="phaser";this.gb=[a,b,d,c,e,g];this.R=f();this.D=f();this.D.gain.value=1-g/2;this.G=f();this.G.gain.value=g/2;this.Ga=t.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?7:"allpass";this.Ga.frequency.value=a;this.Ga.detune&&(this.Ga.detune.value=b);this.Ga.Q.value=d;this.Ua=t.createOscillator();this.Ua.frequency.value=e;this.Mb=f();this.Mb.gain.value=c;this.R.connect(this.Ga);this.R.connect(this.D);this.Ga.connect(this.G);this.Ua.connect(this.Mb);this.Mb.connect(this.Ga.frequency);
q(this.Ua)}function u(a){this.type="gain";this.gb=[a];this.U=f();this.U.gain.value=a}function k(a,b){this.type="tremolo";this.gb=[a,b];this.U=f();this.U.gain.value=1-b/2;this.Ua=t.createOscillator();this.Ua.frequency.value=a;this.Mb=f();this.Mb.gain.value=b/2;this.Ua.connect(this.Mb);this.Mb.connect(this.U.gain);q(this.Ua)}function r(a,b){this.type="ringmod";this.gb=[a,b];this.R=f();this.G=f();this.G.gain.value=b;this.D=f();this.D.gain.value=1-b;this.gh=f();this.gh.gain.value=0;this.Ua=t.createOscillator();
this.Ua.frequency.value=a;this.Ua.connect(this.gh.gain);q(this.Ua);this.R.connect(this.gh);this.R.connect(this.D);this.gh.connect(this.G)}function s(a,b,d,c,e){this.type="distortion";this.gb=[a,b,d,c,e];this.R=f();this.Si=f();this.Ri=f();this.Vt(d,Math.pow(10,c/20));this.G=f();this.G.gain.value=e;this.D=f();this.D.gain.value=1-e;this.tj=t.createWaveShaper();this.Oh=new Float32Array(65536);this.ms(a,b);this.tj.Oh=this.Oh;this.R.connect(this.Si);this.R.connect(this.D);this.Si.connect(this.tj);this.tj.connect(this.Ri);
this.Ri.connect(this.G)}function e(a,b,d,c,e){this.type="compressor";this.gb=[a,b,d,c,e];this.U=t.createDynamicsCompressor();try{this.U.threshold.value=a,this.U.knee.value=b,this.U.ratio.value=d,this.U.attack.value=c,this.U.release.value=e}catch(g){}}function m(a,b){this.type="analyser";this.gb=[a,b];this.U=t.createAnalyser();this.U.fftSize=a;this.U.smoothingTimeConstant=b;this.ks=new Float32Array(this.U.frequencyBinCount);this.hp=new Uint8Array(a);this.$g=0}function w(){this.F=null;this.Ai=0;this.le=
[];this.gl=this.qi=this.pi=0}function z(a,b){this.src=a;this.I=C;this.Kc=b;this.Cm=!1;var d=this;this.el=this.sl=null;this.Gf=[];this.Yi=0;this.hm=this.ek=this.mp=this.Oi=!1;1===C&&b&&(this.I=0,this.sl=f());this.re=this.aa=null;var c;switch(this.I){case 0:this.aa=new Audio;this.aa.addEventListener("canplaythrough",function(){d.hm=!0});1===C&&t.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.mp=!0,this.aa.addEventListener("canplay",function(){d.el||(d.el=t.createMediaElementSource(d.aa),
d.el.connect(d.sl))}));this.aa.autoplay=!1;this.aa.Cv="auto";this.aa.src=a;break;case 1:c=new XMLHttpRequest;c.open("GET",a,!0);c.responseType="arraybuffer";c.onload=function(){d.re=c.response;d.hr()};c.onerror=function(){d.ek=!0};c.send();break;case 2:this.aa=!0;break;case 3:this.aa=!0}}function D(a,b){var d=this;this.tag=b;this.Rb=this.Vc=!0;this.src=a.src;this.buffer=a;this.I=C;this.Kc=a.Kc;this.playbackRate=1;this.Tj=!0;this.qc=this.Ad=!1;this.Cb=0;this.Dg=this.tf=this.Xc=!1;this.volume=1;this.He=
1===B&&!this.Kc||2===B;this.Cf=1;this.startTime=this.He?x.Zb.J:x.gd.J;this.Aa=this.Ia=null;this.Zc=!1;this.za=null;this.Do=this.Co=this.Bo=this.Ao=this.Fo=this.Eo=0;this.j=null;var c=!1;1!==this.I||0!==this.buffer.I||this.buffer.mp||(this.I=0);switch(this.I){case 0:this.Kc?(this.j=a.aa,c=!a.Cm,a.Cm=!0):(this.j=new Audio,this.j.autoplay=!1,this.j.src=a.aa.src,c=!0);c&&this.j.addEventListener("ended",function(){ja=d.tag;d.Rb=!0;x.trigger(ic.prototype.i.xj,F)});break;case 1:this.Ia=f();this.Ia.connect(h(b));
1===this.buffer.I?a.aa&&(this.j=t.createBufferSource(),this.j.buffer=a.aa,this.j.connect(this.Ia)):(this.j=this.buffer.aa,this.buffer.sl.connect(this.Ia));break;case 2:this.j=new window.Media(K+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.Tj=!0,d.Rb=!0,ja=d.tag,x.trigger(ic.prototype.i.xj,F))});break;case 3:this.j=!0}}function A(a,b){T.hasOwnProperty(a)?T[a].push(b):T[a]=[b];var d,c,e,g,f=t.destination;if(T.hasOwnProperty(a)&&(e=T[a],e.length))for(f=e[0].Wb(),d=0,c=e.length;d<
c;d++)g=e[d],d+1===c?g.fc(t.destination):g.fc(e[d+1].Wb());Ja.length=0;if(a.length)for(d=0,c=H.length;d<c;d++)e=H[d],hb(a,e.tag)&&Ja.push(e);else J&&!J.Ce()&&(Ja.length=1,Ja[0]=J);d=0;for(c=Ja.length;d<c;d++)Ja[d].Jt(f);da&&rb===a&&(da.disconnect(),da.connect(f))}function S(){}function Q(){}var N=ic.prototype;N.Da=function(a){this.ja=a;this.b=a.b};N.Da.prototype.Z=function(){};var x=null,F=null,ja="",K="",C=0,t=null,Z=[],H=[],J=null,y=!1,B=0,L=!1,E=1,I=0,G=0,na=1,O=1,ra=10,ga=1E4,ta=1,da=null,rb=
"",Oa=!1,Pa=[],T={},qc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.fc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};b.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.G.disconnect();this.D.disconnect()};b.prototype.Wb=function(){return this.R};v.prototype.fc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};v.prototype.remove=function(){this.R.disconnect();
this.Ug.disconnect();this.kc.disconnect();this.Qh.disconnect();this.G.disconnect();this.D.disconnect()};v.prototype.Wb=function(){return this.R};g.prototype.fc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};g.prototype.remove=function(){this.R.disconnect();this.te.disconnect();this.G.disconnect();this.D.disconnect()};g.prototype.Wb=function(){return this.R};d.prototype.fc=function(a){this.D.disconnect();this.D.connect(a);this.G.disconnect();this.G.connect(a)};
d.prototype.remove=function(){this.R.disconnect();this.kc.disconnect();this.Ua.disconnect();this.Mb.disconnect();this.D.disconnect();this.G.disconnect();this.Wh.disconnect()};d.prototype.Wb=function(){return this.R};l.prototype.fc=function(a){this.D.disconnect();this.D.connect(a);this.G.disconnect();this.G.connect(a)};l.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.Ua.disconnect();this.Mb.disconnect();this.D.disconnect();this.G.disconnect()};l.prototype.Wb=function(){return this.R};
u.prototype.fc=function(a){this.U.disconnect();this.U.connect(a)};u.prototype.remove=function(){this.U.disconnect()};u.prototype.Wb=function(){return this.U};k.prototype.fc=function(a){this.U.disconnect();this.U.connect(a)};k.prototype.remove=function(){this.Ua.disconnect();this.Mb.disconnect();this.U.disconnect()};k.prototype.Wb=function(){return this.U};r.prototype.fc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};r.prototype.remove=function(){this.Ua.disconnect();
this.gh.disconnect();this.R.disconnect();this.G.disconnect();this.D.disconnect()};r.prototype.Wb=function(){return this.R};s.prototype.Vt=function(a,b){.01>a&&(a=.01);this.Si.gain.value=a;this.Ri.gain.value=Math.pow(1/a,.6)*b};s.prototype.shape=function(a,b,d){var c=1.05*d*b-b;d=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+c*(1-Math.exp(-(1/c)*(a-b)));return b*d};s.prototype.ms=function(a,b){for(var d=Math.pow(10,a/20),c=Math.pow(10,b/20),e=0,g=0;32768>g;++g)e=g/32768,e=this.shape(e,d,c),this.Oh[32768+g]=e,this.Oh[32768-
g-1]=-e};s.prototype.fc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};s.prototype.remove=function(){this.R.disconnect();this.Si.disconnect();this.tj.disconnect();this.Ri.disconnect();this.G.disconnect();this.D.disconnect()};s.prototype.Wb=function(){return this.R};e.prototype.fc=function(a){this.U.disconnect();this.U.connect(a)};e.prototype.remove=function(){this.U.disconnect()};e.prototype.Wb=function(){return this.U};m.prototype.Wa=function(){this.U.getFloatFrequencyData(this.ks);
this.U.getByteTimeDomainData(this.hp);for(var a=this.U.fftSize,b=0,d=this.$g=0,c=0;b<a;b++)c=(this.hp[b]-128)/128,0>c&&(c=-c),this.$g<c&&(this.$g=c),d+=c*c;this.$g=n(this.$g);n(Math.sqrt(d/a))};m.prototype.fc=function(a){this.U.disconnect();this.U.connect(a)};m.prototype.remove=function(){this.U.disconnect()};m.prototype.Wb=function(){return this.U};w.prototype.hh=function(a){if(this.F=a)this.pi=this.F.x,this.qi=this.F.y;this.le.length=0};w.prototype.hi=function(){return!!this.F};w.prototype.Wa=function(a){this.F&&
0!==a&&(this.gl=Ia(this.pi,this.qi,this.F.x,this.F.y),a=Sa(this.pi,this.qi,this.F.x,this.F.y)/a,4>this.le.length||this.le.shift(),this.le.push(a),this.pi=this.F.x,this.qi=this.F.y)};w.prototype.sn=function(){if(!this.le.length)return 0;var a,b,d=0;a=0;for(b=this.le.length;a<b;a++)d+=this.le[a];return d/this.le.length};w.prototype.uk=function(){return Math.cos(this.gl)*this.sn()};w.prototype.vk=function(){return Math.sin(this.gl)*this.sn()};var nc=!1;z.prototype.hr=function(){if(!this.aa&&this.re){var a=
this;if(t.decodeAudioData)t.decodeAudioData(this.re,function(b){a.aa=b;a.re=null;var d,c,e;if(fa(a.Pi)||L)fa(a.Ih)||(d=a.Ih.te,d.normalize=a.oo,d.buffer=b);else if(a.Gf.length){d=0;for(c=a.Gf.length;d<c;d++){b=a.Gf[d];e=new D(a,b.op);e.Ml(!0);if("undefined"!==typeof b.qo&&(b.F=x.di(b.qo),!b.F))continue;if(b.F){var g=Na(b.F.x,b.F.y,-b.F.k.Ra(),I,G,!0),f=Na(b.F.x,b.F.y,-b.F.k.Ra(),I,G,!1);e.Ll(g,f,Da(b.F.m-b.F.k.Ra()),b.Bk,b.il,b.ll);e.hh(b.F)}else e.Ll(b.x,b.y,b.Kq,b.Bk,b.il,b.ll);e.play(a.al,a.fm,
a.Yi);a.Oi&&e.pause();H.push(e)}a.Gf.length=0}else e=new D(a,a.Pi),e.play(a.al,a.fm,a.Yi),a.Oi&&e.pause(),H.push(e)},function(){a.ek=!0});else if(this.aa=t.createBuffer(this.re,!1),this.re=null,fa(this.Pi)||L)fa(this.Ih)||(b=this.Ih.te,b.normalize=this.oo,b.buffer=this.aa);else{var b=new D(this,this.Pi);b.play(this.al,this.fm,this.Yi);this.Oi&&b.pause();H.push(b)}}};z.prototype.Dn=function(){switch(this.I){case 0:var a=4<=this.aa.readyState;a&&(this.hm=!0);return a||this.hm;case 1:return!!this.re||
!!this.aa;case 2:return!0;case 3:return!0}return!1};z.prototype.Xs=function(){switch(this.I){case 0:return this.Dn();case 1:return!!this.aa;case 2:return!0;case 3:return!0}return!1};z.prototype.Ps=function(){switch(this.I){case 0:return!!this.aa.error;case 1:return this.ek}return!1};D.prototype.Ce=function(){var a;switch(this.I){case 0:return this.j.ended;case 1:if(1===this.buffer.I){if(!this.Vc&&!this.Rb&&this.j.loop||this.qc)return!1;a=this.He?x.Zb.J:x.gd.J;var b=this.playbackRate;0===b&&(b=1E-6);
return a-this.startTime>this.buffer.aa.duration/b}return this.j.ended;case 2:return this.Tj;case 3:!0}return!0};D.prototype.Zq=function(){return this.Vc||this.Rb?!0:this.Ce()};D.prototype.Ml=function(a){1===C&&(!this.Zc&&a?this.Ia&&(this.Aa||(this.Aa=t.createPanner(),this.Aa.panningModel="number"===typeof this.Aa.panningModel?na:["equalpower","HRTF","soundfield"][na],this.Aa.distanceModel="number"===typeof this.Aa.distanceModel?O:["linear","inverse","exponential"][O],this.Aa.refDistance=ra,this.Aa.maxDistance=
ga,this.Aa.rolloffFactor=ta),this.Ia.disconnect(),this.Ia.connect(this.Aa),this.Aa.connect(h(this.tag)),this.Zc=!0):this.Zc&&!a&&this.Ia&&(this.Aa.disconnect(),this.Ia.disconnect(),this.Ia.connect(h(this.tag)),this.Zc=!1))};D.prototype.Ll=function(a,b,d,c,e,g){this.Zc&&1===C&&(this.Aa.setPosition(a,b,0),this.Aa.setOrientation(Math.cos(U(d)),Math.sin(U(d)),0),this.Aa.coneInnerAngle=c,this.Aa.coneOuterAngle=e,this.Aa.coneOuterGain=g,this.Eo=a,this.Fo=b,this.Ao=d,this.Bo=c,this.Co=e,this.Do=g)};D.prototype.hh=
function(a){this.Zc&&1===C&&(this.za||(this.za=new w),this.za.hh(a))};D.prototype.Wa=function(a){if(this.Zc&&1===C&&this.za&&this.za.hi()&&this.pf()){this.za.Wa(a);a=this.za.F;var b=Na(a.x,a.y,-a.k.Ra(),I,G,!0),d=Na(a.x,a.y,-a.k.Ra(),I,G,!1);this.Aa.setPosition(b,d,0);b=0;"undefined"!==typeof this.za.F.m&&(b=a.m-a.k.Ra(),this.Aa.setOrientation(Math.cos(b),Math.sin(b),0));b=Na(this.za.uk(),this.za.vk(),-a.k.Ra(),0,0,!0);d=Na(this.za.uk(),this.za.vk(),-a.k.Ra(),0,0,!1);this.Aa.setVelocity(b,d,0)}};
D.prototype.play=function(a,b,d){var e=this.j;this.Xc=a;this.volume=b;d=d||0;switch(this.I){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*E&&(e.volume=b*E);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==d)try{e.currentTime=d}catch(g){}if(this.Kc&&Oa&&!x.eb)Pa.push(this);else try{this.j.play()}catch(f){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",f)}break;case 1:this.muted=!1;this.Cf=1;if(1===this.buffer.I)this.Ia.gain.value=
b*E,this.Vc||(this.j=t.createBufferSource(),this.j.buffer=this.buffer.aa,this.j.connect(this.Ia)),this.j.loop=a,0===d?q(this.j):c(this.j,d,this.Ae());else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=b*E;if(e.currentTime!==d)try{e.currentTime=d}catch(k){}this.Kc&&Oa&&!x.eb?Pa.push(this):e.play()}break;case 2:(!this.Vc&&this.Rb||0!==d)&&e.seekTo(d);e.play();this.Tj=!1;break;case 3:x.cb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.He?x.Zb.J:x.gd.J)-d;this.qc=this.Rb=this.Vc=!1};D.prototype.stop=function(){switch(this.I){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.I?a(this.j):this.j.paused||this.j.pause();break;case 2:this.j.stop();break;case 3:x.cb&&AppMobi.context.stopSound(this.src)}this.Rb=!0;this.qc=!1};D.prototype.pause=function(){if(!(this.Vc||this.Rb||this.Ce()||this.qc)){switch(this.I){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.I?(this.Cb=this.sk(),
this.Xc&&(this.Cb%=this.Ae()),a(this.j)):this.j.paused||this.j.pause();break;case 2:this.j.pause();break;case 3:x.cb&&AppMobi.context.stopSound(this.src)}this.qc=!0}};D.prototype.Mt=function(){if(!(this.Vc||this.Rb||this.Ce())&&this.qc){switch(this.I){case 0:this.j.play();break;case 1:1===this.buffer.I?(this.j=t.createBufferSource(),this.j.buffer=this.buffer.aa,this.j.connect(this.Ia),this.j.loop=this.Xc,this.Ia.gain.value=E*this.volume*this.Cf,this.startTime=(this.He?x.Zb.J:x.gd.J)-this.Cb,c(this.j,
this.Cb,this.Ae())):this.j.play();break;case 2:this.j.play();break;case 3:x.cb&&AppMobi.context.resumeSound(this.src)}this.qc=!1}};D.prototype.seek=function(a){if(!(this.Vc||this.Rb||this.Ce()))switch(this.I){case 0:try{this.j.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.I)this.qc?this.Cb=a:(this.pause(),this.Cb=a,this.Mt());else try{this.j.currentTime=a}catch(d){}break;case 3:x.cb&&AppMobi.context.seekSound(this.src,a)}};D.prototype.Jt=function(a){1===this.I&&(this.Zc?(this.Aa.disconnect(),
this.Aa.connect(a)):(this.Ia.disconnect(),this.Ia.connect(a)))};D.prototype.Ae=function(){switch(this.I){case 0:if("undefined"!==typeof this.j.duration)return this.j.duration;break;case 1:return this.buffer.aa.duration;case 2:return this.j.getDuration();case 3:if(x.cb)return AppMobi.context.getDurationSound(this.src)}return 0};D.prototype.sk=function(){var a=this.Ae(),b=0;switch(this.I){case 0:"undefined"!==typeof this.j.currentTime&&(b=this.j.currentTime);break;case 1:if(1===this.buffer.I){if(this.qc)return this.Cb;
b=(this.He?x.Zb.J:x.gd.J)-this.startTime}else"undefined"!==typeof this.j.currentTime&&(b=this.j.currentTime);break;case 3:x.cb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Xc&&b>a&&(b=a);return b};D.prototype.pf=function(){return!this.qc&&!this.Vc&&!this.Rb&&!this.Ce()};D.prototype.ju=function(){var a=this.volume*E;switch(this.I){case 0:"undefined"!==typeof this.j.volume&&this.j.volume!==a&&(this.j.volume=a);break;case 1:1===this.buffer.I?this.Ia.gain.value=a*this.Cf:"undefined"!==typeof this.j.volume&&
this.j.volume!==a&&(this.j.volume=a)}};D.prototype.Rh=function(a){switch(this.I){case 0:this.j.muted!==!!a&&(this.j.muted=!!a);break;case 1:1===this.buffer.I?(this.Cf=a?0:1,this.Ia.gain.value=E*this.volume*this.Cf):this.j.muted!==!!a&&(this.j.muted=!!a)}};D.prototype.Xt=function(){this.tf=!0;this.Rh(this.tf||this.Dg)};D.prototype.bp=function(a){this.Dg=!!a;this.Rh(this.tf||this.Dg)};D.prototype.Bp=function(){var a=this.playbackRate;this.He&&(a*=x.Tf);switch(this.I){case 0:this.j.playbackRate!==a&&
(this.j.playbackRate=a);break;case 1:1===this.buffer.I?this.j.playbackRate.value!==a&&(this.j.playbackRate.value=a):this.j.playbackRate!==a&&(this.j.playbackRate=a)}};D.prototype.Zt=function(b){switch(this.I){case 0:b?this.pf()?(this.j.pause(),this.Ad=!0):this.Ad=!1:this.Ad&&this.j.play();break;case 1:b?this.pf()?(1===this.buffer.I?(this.Cb=this.sk(),this.Xc&&(this.Cb%=this.Ae()),a(this.j)):this.j.pause(),this.Ad=!0):this.Ad=!1:this.Ad&&(1===this.buffer.I?(this.j=t.createBufferSource(),this.j.buffer=
this.buffer.aa,this.j.connect(this.Ia),this.j.loop=this.Xc,this.Ia.gain.value=E*this.volume*this.Cf,this.startTime=(this.He?x.Zb.J:x.gd.J)-this.Cb,c(this.j,this.Cb,this.Ae())):this.j.play());break;case 2:b?this.pf()?(this.j.pause(),this.Ad=!0):this.Ad=!1:this.Ad&&this.j.play()}};N.ra=function(a){this.type=a;x=this.b=a.b;F=this;this.nb=null;this.Mg=-600;!(this.b.oi||this.b.ii&&(this.b.zg||this.b.ji))||this.b.Ag||this.b.ma||this.b.Lk||(Oa=!0);t=null;"undefined"!==typeof AudioContext?(C=1,t=new AudioContext):
"undefined"!==typeof webkitAudioContext&&(C=1,t=new webkitAudioContext);(this.b.oi&&1===C||Oa)&&document.addEventListener("touchstart",function(){var a,b,d;!nc&&t&&(a=t.createBuffer(1,1,22050),b=t.createBufferSource(),b.buffer=a,b.connect(t.destination),q(b),nc=!0);if(Oa){if(!L)for(a=0,b=Pa.length;a<b;++a)d=Pa[a],d.Rb||d.qc||d.j.play();Pa.length=0}},!0);1!==C&&(this.b.pc&&"undefined"!==typeof window.Media?C=2:this.b.of&&(C=3));2===C&&(K=location.href,a=K.lastIndexOf("/"),-1<a&&(K=K.substr(0,a+1)),
K=K.replace("file://",""));if(this.b.En&&this.b.Ys&&"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.Hd(this);else{if(this.b.cb)y=this.b.ii;else try{y=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){y=!1}this.b.mj(this)}};var oa=N.ra.prototype;oa.Z=function(){this.b.cf=this;B=this.ca[0];this.Bd=this.ca[1];this.zt=0!==this.ca[2];na=this.ca[3];O=this.ca[4];this.Mg=-this.ca[5];
ra=this.ca[6];ga=this.ca[7];ta=this.ca[8];this.nb=new w;var a=this.b.O||this.b.width,b=this.b.N||this.b.height;1===C&&("undefined"!==typeof t.listener.dopplerFactor&&(t.listener.dopplerFactor=0),t.listener.setPosition(a/2,b/2,this.Mg),t.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){da&&da.disconnect();rb=b.toLowerCase();da=t.createMediaStreamSource(a);da.connect(h(rb))});this.b.Bm(function(a){F.wt(a)});var d=this;this.b.Oq(function(a){d.tt(a)})};oa.tt=function(a){var b,
d,c;b=0;for(d=H.length;b<d;b++)c=H[b],c.za&&c.za.F===a&&(c.za.F=null,c.Zc&&c.pf()&&c.Xc&&c.stop());this.nb.F===a&&(this.nb.F=null)};oa.Ob=function(){var a={silent:L,masterVolume:E,listenerZ:this.Mg,listenerUid:this.nb.hi()?this.nb.F.uid:-1,playing:[],effects:{}},b=a.playing,d,c,e,g,f,k;d=0;for(c=H.length;d<c;d++)e=H[d],!e.pf()||3===this.Bd||e.Kc&&1===this.Bd||!e.Kc&&2===this.Bd||(g=e.sk(),e.Xc&&(g%=e.Ae()),g={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Kc,playbackTime:g,volume:e.volume,looping:e.Xc,
muted:e.tf,playbackRate:e.playbackRate,paused:e.qc,resume_position:e.Cb},e.Zc&&(g.pan={},k=g.pan,e.za&&e.za.hi()?k.objUid=e.za.F.uid:(k.x=e.Eo,k.y=e.Fo,k.a=e.Ao),k.ia=e.Bo,k.oa=e.Co,k.og=e.Do),b.push(g));b=a.effects;for(f in T)if(T.hasOwnProperty(f)){e=[];d=0;for(c=T[f].length;d<c;d++)e.push({type:T[f][d].type,params:T[f][d].gb});b[f]=e}return a};var Qa=[];oa.tc=function(a){var c=a.silent;E=a.masterVolume;this.Mg=a.listenerZ;this.nb.hh(null);var f=a.listenerUid;-1!==f&&(this.nb.Ai=f,Qa.push(this.nb));
var f=a.playing,h,n,q,p,z,D,F,S,x,t,Q;if(3!==this.Bd)for(h=0,n=H.length;h<n;h++)x=H[h],x.Kc&&1===this.Bd||(x.Kc||2!==this.Bd)&&x.stop();for(z in T)if(T.hasOwnProperty(z))for(h=0,n=T[z].length;h<n;h++)T[z][h].remove();Va(T);for(z in a.effects)if(a.effects.hasOwnProperty(z))for(D=a.effects[z],h=0,n=D.length;h<n;h++)switch(q=D[h].type,t=D[h].params,q){case "filter":A(z,new b(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "delay":A(z,new v(t[0],t[1],t[2]));break;case "convolve":q=t[2];x=this.$h(q,!1);x.aa?
q=new g(x.aa,t[0],t[1],q):(q=new g(null,t[0],t[1],q),x.oo=t[0],x.Ih=q);A(z,q);break;case "flanger":A(z,new d(t[0],t[1],t[2],t[3],t[4]));break;case "phaser":A(z,new l(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "gain":A(z,new u(t[0]));break;case "tremolo":A(z,new k(t[0],t[1]));break;case "ringmod":A(z,new r(t[0],t[1]));break;case "distortion":A(z,new s(t[0],t[1],t[2],t[3],t[4]));break;case "compressor":A(z,new e(t[0],t[1],t[2],t[3],t[4]));break;case "analyser":A(z,new m(t[0],t[1]))}h=0;for(n=f.length;h<
n;h++)3===this.Bd||(a=f[h],q=a.buffersrc,p=a.is_music,z=a.tag,D=a.playbackTime,F=a.looping,S=a.volume,Q=(t=a.pan)&&t.hasOwnProperty("objUid")?t.objUid:-1,p&&1===this.Bd)||!p&&2===this.Bd||((x=this.kn(q,z,p,F,S))?(x.Cb=a.resume_position,x.Ml(!!t),x.play(F,S,D),x.Bp(),x.ju(),x.Rh(x.tf||x.Dg),a.paused&&x.pause(),a.muted&&x.Xt(),x.Rh(x.tf||x.Dg),t&&(-1!==Q?(x.za=x.za||new w,x.za.Ai=Q,Qa.push(x.za)):x.Ll(t.x,t.y,t.a,t.ia,t.oa,t.og))):(x=this.$h(q,p),x.Yi=D,x.Oi=a.paused,t&&(-1!==Q?x.Gf.push({qo:Q,Bk:t.ia,
il:t.oa,ll:t.og,op:z}):x.Gf.push({x:t.x,y:t.y,Kq:t.a,Bk:t.ia,il:t.oa,ll:t.og,op:z}))));if(c&&!L){h=0;for(n=H.length;h<n;h++)H[h].bp(!0);L=!0}else if(!c&&L){h=0;for(n=H.length;h<n;h++)H[h].bp(!1);L=!1}};oa.Kd=function(){var a,b,d,c;a=0;for(b=Qa.length;a<b;a++)d=Qa[a],c=this.b.di(d.Ai),d.hh(c),d.Ai=-1,c&&(I=c.x,G=c.y);Qa.length=0};oa.wt=function(a){if(!this.zt){!a&&t&&t.resume&&t.resume();var b,d;b=0;for(d=H.length;b<d;b++)H[b].Zt(a);a&&t&&t.suspend&&t.suspend()}};oa.Wa=function(){var a=this.b.we,b,
d,c;b=0;for(d=H.length;b<d;b++)c=H[b],c.Wa(a),0===c.I||3===c.I||c.Vc||c.Rb||!c.Ce()||(c.Rb=!0,ja=c.tag,x.trigger(ic.prototype.i.xj,F)),0!==B&&c.Bp();var e,g;for(e in T)if(T.hasOwnProperty(e))for(c=T[e],b=0,d=c.length;b<d;b++)g=c[b],g.Wa&&g.Wa();1===C&&this.nb.hi()&&(this.nb.Wa(a),I=this.nb.F.x,G=this.nb.F.y,t.listener.setPosition(this.nb.F.x,this.nb.F.y,this.Mg),t.listener.setVelocity(this.nb.uk(),this.nb.vk(),0))};var Ra=[];oa.Yt=function(a){var b,d,c,e,g,f=0;b=0;for(d=a.length;b<d;++b)if(c=a[b],
e=c[0],c=2*c[1],(g=4<e.length&&".ogg"===e.substr(e.length-4))&&y||!g&&!y)Ra.push({filename:e,size:c,F:null}),f+=c;return f};oa.bu=function(){var a,b,d,c;a=0;for(b=Ra.length;a<b;++a)d=Ra[a],c=this.b.fk+d.filename,d.F=this.$h(c,!1)};oa.vs=function(){var a=0,b,d,c;b=0;for(d=Ra.length;b<d;++b)c=Ra[b],c.F.Xs()||c.F.Ps()||this.b.ma||this.b.ji?a+=c.size:c.F.Dn()&&(a+=Math.floor(c.size/2));return a};oa.$h=function(a,b){var d,c,e,g=null;d=0;for(c=Z.length;d<c;d++)if(e=Z[d],e.src===a){g=e;break}g||(g=new z(a,
b),Z.push(g));return g};oa.kn=function(a,b,d,c,e){var g,f,k;g=0;for(f=H.length;g<f;g++)if(k=H[g],k.src===a&&(k.Zq()||d))return k.tag=b,k;a=this.$h(a,d);if(!a.aa)return"<preload>"!==b&&(a.Pi=b,a.al=c,a.fm=e),null;k=new D(a,b);H.push(k);return k};var Ja=[];S.prototype.xj=function(a){return hb(ja,a)};N.i=new S;Q.prototype.Play=function(a,b,d,c){!L&&(d=Math.pow(10,d/20),0>d&&(d=0),1<d&&(d=1),J=this.kn(this.b.fk+a[0]+(y?".ogg":".m4a"),c,a[1],0!==b,d))&&(J.Ml(!1),J.play(0!==b,d))};Q.prototype.Fq=function(){var a,
b;a=0;for(b=H.length;a<b;a++)H[a].stop()};N.fa=new Q;N.Fa=new function(){}})();function jc(n){this.b=n}
(function(){function n(){}function h(){}var f=jc.prototype;f.Da=function(f){this.ja=f;this.b=f.b};f.Da.prototype.Z=function(){};f.ra=function(f){this.type=f;this.b=f.b};f.ra.prototype.Z=function(){var f=this;window.addEventListener("resize",function(){f.b.trigger(jc.prototype.i.pq,f)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){f.b.trigger(jc.prototype.i.lq,f)}),window.addEventListener("offline",function(){f.b.trigger(jc.prototype.i.kq,f)}));"undefined"!==
typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){f.b.zf=1;f.b.trigger(jc.prototype.i.vm,f)}),window.applicationCache.addEventListener("progress",function(h){f.b.zf=h.loaded/h.total}));this.b.cb||(document.addEventListener("appMobi.device.update.available",function(){f.b.trigger(jc.prototype.i.vm,f)}),document.addEventListener("backbutton",function(){f.b.trigger(jc.prototype.i.wj,f)}),document.addEventListener("menubutton",function(){f.b.trigger(jc.prototype.i.om,
f)}),document.addEventListener("searchbutton",function(){f.b.trigger(jc.prototype.i.qq,f)}),document.addEventListener("tizenhwkey",function(h){var c;switch(h.keyName){case "back":c=f.b.trigger(jc.prototype.i.wj,f);!c&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=f.b.trigger(jc.prototype.i.om,f))||h.preventDefault()}}));this.b.ki&&(WinJS.Application.onbackclick=function(){return!!f.b.trigger(jc.prototype.i.wj,f)});this.b.Bm(function(h){h?f.b.trigger(jc.prototype.i.mq,
f):f.b.trigger(jc.prototype.i.nq,f)})};n.prototype.lq=function(){return!0};n.prototype.kq=function(){return!0};n.prototype.vm=function(){return!0};n.prototype.nq=function(){return!0};n.prototype.mq=function(){return!0};n.prototype.pq=function(){return!0};n.prototype.wj=function(){return!0};n.prototype.om=function(){return!0};n.prototype.qq=function(){return!0};f.i=new n;f.fa=new function(){};h.prototype.URL=function(f){f.Oa(this.b.ma?"":window.location.toString())};f.Fa=new h})();
function hc(n){this.b=n}
(function(){function n(){this.name="";this.fh=0;this.gb=[]}function h(){b++;b===a.length&&a.push(new n);return a[b]}function f(){}function p(){}function q(){}var c=hc.prototype;c.Da=function(a){this.ja=a;this.b=a.b};c.Da.prototype.Z=function(){};c.ra=function(a){this.type=a;this.b=a.b};var a=[],b=-1;c.ra.prototype.Z=function(){var a=this;window.c2_callFunction=function(c,d){var f,n,k,q=h();q.name=c.toLowerCase();q.fh=0;if(d)for(q.gb.length=d.length,f=0,n=d.length;f<n;++f)k=d[f],q.gb[f]="number"===
typeof k||"string"===typeof k?k:"boolean"===typeof k?k?1:0:0;else q.gb.length=0;a.b.trigger(hc.prototype.i.Ah,a,q.name);b--;return q.fh}};f.prototype.Ah=function(c){var g=0>b?null:a[b];return g?hb(c,g.name):!1};c.i=new f;p.prototype.CallFunction=function(a,c){var d=h();d.name=a.toLowerCase();d.fh=0;za(d.gb,c);this.b.trigger(hc.prototype.i.Ah,this,d.name);b--};c.fa=new p;q.prototype.Jp=function(a,c){var d=h();d.name=c.toLowerCase();d.fh=0;d.gb.length=0;var f,n;f=2;for(n=arguments.length;f<n;f++)d.gb.push(arguments[f]);
this.b.trigger(hc.prototype.i.Ah,this,d.name);b--;a.dp(d.fh)};c.Fa=new q})();function kc(n){this.b=n}
(function(){function n(){}function h(){}var f=kc.prototype;f.Da=function(c){this.ja=c;this.b=c.b};f.Da.prototype.Z=function(){};f.ra=function(c){this.type=c;this.b=c.b;this.Jj=Array(4);this.rp=this.oj=this.Uf=this.wd=this.vd=0;this.yk=!1};var p=f.ra.prototype;p.Z=function(){var c=this;if(!this.b.ma){jQuery(document).mousemove(function(a){c.ol(a)});jQuery(document).mousedown(function(a){c.nl(a)});jQuery(document).mouseup(function(a){c.pl(a)});jQuery(document).dblclick(function(a){c.qt(a)});var a=function(a){c.xt(a)};
document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var q={left:0,top:0};p.ol=function(c){var a=this.b.ma?q:jQuery(this.b.canvas).offset();this.vd=c.pageX-a.left;this.wd=c.pageY-a.top};p.ko=function(){return 0<this.b.xb?!0:0<=this.vd&&0<=this.wd&&this.vd<this.b.width&&this.wd<this.b.height};p.nl=function(c){this.ko()&&(this.b.nf&&!this.b.td&&c.preventDefault(),this.Jj[c.which]=!0,this.b.eb=!0,this.b.trigger(kc.prototype.i.aq,this),this.Uf=c.which-1,this.oj=
0,this.b.trigger(kc.prototype.i.lm,this),this.b.trigger(kc.prototype.i.rm,this),this.b.eb=!1)};p.pl=function(c){this.Jj[c.which]&&(this.b.nf&&!this.b.td&&c.preventDefault(),this.b.nf=!0,this.Jj[c.which]=!1,this.b.eb=!0,this.Uf=c.which-1,this.b.trigger(kc.prototype.i.oq,this),this.b.eb=!1)};p.qt=function(c){this.ko()&&(c.preventDefault(),this.b.eb=!0,this.Uf=c.which-1,this.oj=1,this.b.trigger(kc.prototype.i.lm,this),this.b.trigger(kc.prototype.i.rm,this),this.b.eb=!1)};p.xt=function(c){this.rp=0>(c.wheelDelta?
c.wheelDelta:c.detail?-c.detail:0)?0:1;this.yk=!1;this.b.eb=!0;this.b.trigger(kc.prototype.i.uq,this);this.b.eb=!1;this.yk&&ib(c)&&c.preventDefault()};n.prototype.lm=function(c,a){return c===this.Uf&&a===this.oj};n.prototype.aq=function(){return!0};n.prototype.oq=function(c){return c===this.Uf};n.prototype.Wp=function(c){var a=this.b.ok();return Ta(this.b.Rf(c,this.vd,this.wd,a.yg),a.yg)};n.prototype.rm=function(c,a,b){return c!==this.Uf||a!==this.oj?!1:this.b.Rf(b,this.vd,this.wd,!1)};n.prototype.uq=
function(c){this.yk=!0;return c===this.rp};f.i=new n;f.fa=new function(){};h.prototype.Bj=function(c,a){var b,f,g,d,l;fa(a)?(b=this.b.rd(0),f=b.scale,g=b.Fb,d=b.wc,l=b.m,b.scale=1,b.Fb=1,b.wc=1,b.m=0,c.A(b.ab(this.vd,this.wd,!0)),b.scale=f,b.Fb=g,b.wc=d,b.m=l):(b=ha(a)?this.b.rd(a):this.b.qg(a))?c.A(b.ab(this.vd,this.wd,!0)):c.A(0)};h.prototype.Cj=function(c,a){var b,f,g,d,l;fa(a)?(b=this.b.rd(0),f=b.scale,g=b.Fb,d=b.xc,l=b.m,b.scale=1,b.Fb=1,b.xc=1,b.m=0,c.A(b.ab(this.vd,this.wd,!1)),b.scale=f,b.Fb=
g,b.xc=d,b.m=l):(b=ha(a)?this.b.rd(a):this.b.qg(a))?c.A(b.ab(this.vd,this.wd,!1)):c.A(0)};f.Fa=new h})();function lc(n){this.b=n}
(function(){function n(f){this.la=f;this.Qa=!1;this.m=this.speed=this.y=this.x=0;this.opacity=1;this.Ld=this.mf=this.size=this.fi=0}var h=lc.prototype;h.Da=function(f){this.ja=f;this.b=f.b};var f=h.Da.prototype;f.Z=function(){this.C||(this.X=new Image,this.X.Um=this.Sl,this.V=null,this.b.gm(this.X,this.jj))};f.Hi=function(){this.C||(this.V=null)};f.Ji=function(){this.C||!this.e.length||this.V||(this.V=this.b.u.xf(this.X,!0,this.b.T,this.sh))};f.Wk=function(){this.C||this.V||!this.b.u||(this.V=this.b.u.xf(this.X,
!0,this.b.T,this.sh))};f.rj=function(){this.C||this.e.length||!this.V||(this.b.u.deleteTexture(this.V),this.V=null)};f.Ti=function(f){f.drawImage(this.X,0,0)};n.prototype.init=function(){var f=this.la;this.x=f.x-f.uj/2+Math.random()*f.uj;this.y=f.y-f.vj/2+Math.random()*f.vj;this.speed=f.Ik-f.dj/2+Math.random()*f.dj;this.m=f.m-f.ej/2+Math.random()*f.ej;this.opacity=f.Gk;this.size=f.Hk-f.bj/2+Math.random()*f.bj;this.fi=f.xk-f.gi/2+Math.random()*f.gi;this.Ld=this.mf=0};n.prototype.Wa=function(f){var c=
this.la;this.x+=Math.cos(this.m)*this.speed*f;this.y+=Math.sin(this.m)*this.speed*f;this.y+=this.mf*f;this.speed+=c.Dj*f;this.size+=this.fi*f;this.mf+=c.lk*f;this.Ld+=f;1>this.size?this.Qa=!1:(0!==c.Jg&&(this.m+=Math.random()*c.Jg*f-c.Jg*f/2),0!==c.Lg&&(this.speed+=Math.random()*c.Lg*f-c.Lg*f/2),0!==c.Kg&&(this.opacity+=Math.random()*c.Kg*f-c.Kg*f/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=c.gf&&this.Ld>=c.timeout&&(this.Qa=!1),2===c.gf&&0>=this.speed&&(this.Qa=!1))};n.prototype.Gc=
function(f){var c=this.la.opacity*this.opacity;if(0!==c){0===this.la.gf&&(c*=1-this.Ld/this.la.timeout);f.globalAlpha=c;var c=this.x-this.size/2,a=this.y-this.size/2;this.la.b.ad&&(c=c+.5|0,a=a+.5|0);f.drawImage(this.la.type.X,c,a,this.size,this.size)}};n.prototype.Ib=function(f){var c=this.la.opacity*this.opacity;0===this.la.gf&&(c*=1-this.Ld/this.la.timeout);var a=this.size,b=a*this.la.Io,h=this.x-a/2,g=this.y-a/2;this.la.b.ad&&(h=h+.5|0,g=g+.5|0);1>b||0===c||(b<f.lt||b>f.cl?(f.Te(c),f.eh(h,g,h+
a,g,h+a,g+a,h,g+a)):f.At(this.x,this.y,b,c))};n.prototype.left=function(){return this.x-this.size/2};n.prototype.right=function(){return this.x+this.size/2};n.prototype.top=function(){return this.y-this.size/2};n.prototype.bottom=function(){return this.y+this.size/2};h.ra=function(f){this.type=f;this.b=f.b};var f=h.ra.prototype,p=[];f.Z=function(){var f=this.ca;this.Wi=f[0];this.ej=U(f[1]);this.Of=f[2];this.Ol=!0;this.Ik=f[3];this.Hk=f[4];this.Gk=f[5]/100;this.xk=f[6];this.uj=f[7];this.vj=f[8];this.dj=
f[9];this.bj=f[10];this.gi=f[11];this.Dj=f[12];this.lk=f[13];this.Jg=f[14];this.Lg=f[15];this.Kg=f[16];this.gf=f[17];this.timeout=f[18];this.Re=0;this.Io=1;this.Li=this.x;this.Ni=this.y;this.Mi=this.x;this.Ki=this.y;this.Qq(function(c){c.$a.set(c.Li,c.Ni,c.Mi,c.Ki);c.df.jh(c.$a);c.Bh=!1;c.lu()});this.zc||(this.pb=[]);this.b.mj(this);this.type.Wk();if(1===this.Of)for(f=0;f<this.Wi;f++)this.Ej().opacity=0;this.Yh=!0};f.Ob=function(){var f={r:this.Wi,sc:this.ej,st:this.Of,s:this.Ol,isp:this.Ik,isz:this.Hk,
io:this.Gk,gr:this.xk,xr:this.uj,yr:this.vj,spr:this.dj,szr:this.bj,grnd:this.gi,acc:this.Dj,g:this.lk,lar:this.Jg,lsr:this.Lg,lor:this.Kg,dm:this.gf,to:this.timeout,pcc:this.Re,ft:this.Yh,p:[]},c,a,b,h=f.p;c=0;for(a=this.pb.length;c<a;c++)b=this.pb[c],h.push([b.x,b.y,b.speed,b.m,b.opacity,b.fi,b.size,b.mf,b.Ld]);return f};f.tc=function(f){this.Wi=f.r;this.ej=f.sc;this.Of=f.st;this.Ol=f.s;this.Ik=f.isp;this.Hk=f.isz;this.Gk=f.io;this.xk=f.gr;this.uj=f.xr;this.vj=f.yr;this.dj=f.spr;this.bj=f.szr;this.gi=
f.grnd;this.Dj=f.acc;this.lk=f.g;this.Jg=f.lar;this.Lg=f.lsr;this.Kg=f.lor;this.gf=f.dm;this.timeout=f.to;this.Re=f.pcc;this.Yh=f.ft;p.push.apply(p,this.pb);this.pb.length=0;var c,a,b,h=f.p;f=0;for(c=h.length;f<c;f++)a=this.Ej(),b=h[f],a.x=b[0],a.y=b[1],a.speed=b[2],a.m=b[3],a.opacity=b[4],a.fi=b[5],a.size=b[6],a.mf=b[7],a.Ld=b[8]};f.Ff=function(){p.push.apply(p,this.pb);this.pb.length=0};f.Ej=function(){var f;p.length?(f=p.pop(),f.la=this):f=new n(this);this.pb.push(f);f.Qa=!0;return f};f.Wa=function(){var f=
this.b.bi(this),c,a,b,h;if(0===this.Of&&this.Ol)for(this.Re+=f*this.Wi,a=R(this.Re),this.Re-=a,c=0;c<a;c++)b=this.Ej(),b.init();this.Li=this.x;this.Ni=this.y;this.Mi=this.x;this.Ki=this.y;h=c=0;for(a=this.pb.length;c<a;c++)b=this.pb[c],this.pb[h]=b,this.b.da=!0,1===this.Of&&this.Yh&&b.init(),b.Wa(f),b.Qa?(b.left()<this.Li&&(this.Li=b.left()),b.right()>this.Mi&&(this.Mi=b.right()),b.top()<this.Ni&&(this.Ni=b.top()),b.bottom()>this.Ki&&(this.Ki=b.bottom()),h++):p.push(b);this.pb.length=h;this.Ha();
this.Yh=!1;1===this.Of&&0===this.pb.length&&this.b.Hd(this)};f.Gc=function(f){var c,a,b,h=this.k;c=0;for(a=this.pb.length;c<a;c++)b=this.pb[c],b.right()>=h.pa&&b.bottom()>=h.qa&&b.left()<=h.ya&&b.top()<=h.xa&&b.Gc(f)};f.Ib=function(f){this.Io=this.k.mc();f.Pb(this.type.V);var c,a,b,h=this.k;c=0;for(a=this.pb.length;c<a;c++)b=this.pb[c],b.right()>=h.pa&&b.bottom()>=h.qa&&b.left()<=h.ya&&b.top()<=h.xa&&b.Ib(f)};h.i=new function(){};h.fa=new function(){};h.Fa=new function(){}})();
function X(n){this.b=n}
(function(){function n(){if(0===this.Xj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Pf?b.drawImage(this.X,this.Df,this.Ef,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.X,0,0,this.width,this.height);this.Xj=a.toDataURL("image/png")}return this.Xj}function h(){}function f(){}var p=X.prototype;p.Da=function(a){this.ja=a;this.b=a.b};var q=p.Da.prototype;q.Z=function(){if(!this.C){var a,b,c,f,k,h,s,e,m;this.Dc=
[];this.vg=!1;a=0;for(b=this.Gb.length;a<b;a++){k=this.Gb[a];s={};s.name=k[0];s.speed=k[1];s.loop=k[2];s.El=k[3];s.Xi=k[4];s.Jo=k[5];s.P=k[6];s.frames=[];c=0;for(f=k[7].length;c<f;c++)h=k[7][c],e={},e.jj=h[0],e.Sl=h[1],e.Df=h[2],e.Ef=h[3],e.width=h[4],e.height=h[5],e.duration=h[6],e.zb=h[7],e.Ab=h[8],e.Ck=h[9],e.Qi=h[10],e.Ko=h[11],e.Pf=0!==e.width,e.Xj="",e.yv=n,m={left:0,top:0,right:1,bottom:1},e.Nl=m,e.V=null,(m=this.b.hs(h[0]))?e.X=m:(e.X=new Image,e.X.dr=h[0],e.X.Um=h[1],e.X.Xq=null,this.b.gm(e.X,
h[0])),s.frames.push(e),this.Dc.push(e);this.Gb[a]=s}}};q.Ap=function(){var a,b,c;a=0;for(b=this.e.length;a<b;a++)c=this.e[a],c.Mh=c.hc.V};q.Hi=function(){if(!this.C){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],c.X.Xq=null,c.V=null;this.vg=!1;this.Ap()}};q.Ji=function(){if(!this.C&&this.e.length){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],c.V=this.b.u.xf(c.X,!1,this.b.T,c.Ko);this.Ap()}};q.Wk=function(){if(!this.C&&!this.vg&&this.b.u){var a,b,c;a=0;for(b=this.Dc.length;a<
b;++a)c=this.Dc[a],c.V=this.b.u.xf(c.X,!1,this.b.T,c.Ko);this.vg=!0}};q.rj=function(){if(!this.C&&!this.e.length&&this.vg){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],this.b.u.deleteTexture(c.V),c.V=null;this.vg=!1}};var c=[];q.Ti=function(a){var b,f,h;b=c.length=0;for(f=this.Dc.length;b<f;++b)h=this.Dc[b].X,-1===c.indexOf(h)&&(a.drawImage(h,0,0),c.push(h))};p.ra=function(a){this.type=a;this.b=a.b;a=this.type.Gb[0].frames[0].Qi;this.zc?this.Sc.kh(a):this.Sc=new bb(a)};var a=p.ra.prototype;
a.Z=function(){this.visible=0===this.ca[0];this.Dk=this.Pk=!1;this.Sd=0!==this.ca[3];1===this.type.Gb.length&&1===this.type.Gb[0].frames.length||0===this.type.Gb[0].speed||(this.b.mj(this),this.Pk=!0);this.ua=this.jn(this.ca[1])||this.type.Gb[0];this.B=this.ca[2];0>this.B&&(this.B=0);this.B>=this.ua.frames.length&&(this.B=this.ua.frames.length-1);var a=this.ua.frames[this.B];this.Sc.kh(a.Qi);this.zb=a.zb;this.Ab=a.Ab;this.jg=this.ua.speed;this.zc?this.Qc.reset():this.Qc=new $a;this.qd=this.Qc.J;this.qe=
!0;this.hd=0;this.pe=!0;this.Qj=this.Dm="";this.$q=0;this.Dh=-1;this.type.Wk();var b,c,f,k,h,n,e,a=0;for(b=this.type.Gb.length;a<b;a++)for(k=this.type.Gb[a],c=0,f=k.frames.length;c<f;c++)h=k.frames[c],0===h.width&&(h.width=h.X.width,h.height=h.X.height),h.Pf&&(e=h.X,n=h.Nl,n.left=h.Df/e.width,n.top=h.Ef/e.height,n.right=(h.Df+h.width)/e.width,n.bottom=(h.Ef+h.height)/e.height,0===h.Df&&0===h.Ef&&h.width===e.width&&h.height===e.height&&(h.Pf=!1));this.hc=this.ua.frames[this.B];this.Mh=this.hc.V};a.Ob=
function(){var a={a:this.ua.P,f:this.B,cas:this.jg,fs:this.qd,ar:this.hd,at:this.Qc.J};this.qe||(a.ap=this.qe);this.pe||(a.af=this.pe);return a};a.tc=function(a){var b=this.ns(a.a);b&&(this.ua=b);this.B=a.f;0>this.B&&(this.B=0);this.B>=this.ua.frames.length&&(this.B=this.ua.frames.length-1);this.jg=a.cas;this.qd=a.fs;this.hd=a.ar;this.Qc.reset();this.Qc.J=a.at;this.qe=a.hasOwnProperty("ap")?a.ap:!0;this.pe=a.hasOwnProperty("af")?a.af:!0;this.hc=this.ua.frames[this.B];this.Mh=this.hc.V;this.Sc.kh(this.hc.Qi);
this.zb=this.hc.zb;this.Ab=this.hc.Ab};a.Hj=function(a){this.B=a?0:this.ua.frames.length-1;this.qe=!1;this.Dm=this.ua.name;this.Dk=!0;this.b.trigger(X.prototype.i.$p,this);this.b.trigger(X.prototype.i.Zp,this);this.Dk=!1;this.hd=0};a.Av=function(){return this.Qc.J};a.Wa=function(){this.Qc.add(this.b.bi(this));this.Qj.length&&this.jr();0<=this.Dh&&this.Zm();var a=this.Qc.J,b=this.ua,c=b.frames[this.B],f=c.duration/this.jg;this.qe&&a>=this.qd+f&&(this.pe?this.B++:this.B--,this.qd+=f,this.B>=b.frames.length&&
(b.Jo?(this.pe=!1,this.B=b.frames.length-2):b.loop?this.B=b.Xi:(this.hd++,this.hd>=b.El?this.Hj(!1):this.B=b.Xi)),0>this.B&&(b.Jo?(this.B=1,this.pe=!0,b.loop||(this.hd++,this.hd>=b.El&&this.Hj(!0))):b.loop?this.B=b.Xi:(this.hd++,this.hd>=b.El?this.Hj(!0):this.B=b.Xi)),0>this.B?this.B=0:this.B>=b.frames.length&&(this.B=b.frames.length-1),a>this.qd+b.frames[this.B].duration/this.jg&&(this.qd=a),a=b.frames[this.B],this.Ze(c,a),this.b.da=!0)};a.jn=function(a){var b,c,f;b=0;for(c=this.type.Gb.length;b<
c;b++)if(f=this.type.Gb[b],hb(f.name,a))return f;return null};a.ns=function(a){var b,c,f;b=0;for(c=this.type.Gb.length;b<c;b++)if(f=this.type.Gb[b],f.P===a)return f;return null};a.jr=function(){var a=this.ua.frames[this.B],b=this.jn(this.Qj);this.Qj="";!b||hb(b.name,this.ua.name)&&this.qe||(this.ua=b,this.jg=b.speed,0>this.B&&(this.B=0),this.B>=this.ua.frames.length&&(this.B=this.ua.frames.length-1),1===this.$q&&(this.B=0),this.qe=!0,this.qd=this.Qc.J,this.pe=!0,this.Ze(a,this.ua.frames[this.B]),
this.b.da=!0)};a.Zm=function(){var a=this.ua.frames[this.B],b=this.B;this.B=R(this.Dh);0>this.B&&(this.B=0);this.B>=this.ua.frames.length&&(this.B=this.ua.frames.length-1);b!==this.B&&(this.Ze(a,this.ua.frames[this.B]),this.qd=this.Qc.J,this.b.da=!0);this.Dh=-1};a.Ze=function(a,b){var c=a.width,f=a.height,k=b.width,h=b.height;c!=k&&(this.width*=k/c);f!=h&&(this.height*=h/f);this.zb=b.zb;this.Ab=b.Ab;this.Sc.kh(b.Qi);this.Ha();this.hc=b;this.Mh=b.V;c=0;for(f=this.K.length;c<f;c++)k=this.K[c],k.ut&&
k.ut(a,b);this.b.trigger(X.prototype.i.Ze,this)};a.Gc=function(a){a.globalAlpha=this.opacity;var b=this.hc,c=b.Pf,f=b.X,k=this.x,h=this.y,n=this.width,e=this.height;if(0===this.m&&0<=n&&0<=e)k-=this.zb*n,h-=this.Ab*e,this.b.ad&&(k=Math.round(k),h=Math.round(h)),c?a.drawImage(f,b.Df,b.Ef,b.width,b.height,k,h,n,e):a.drawImage(f,k,h,n,e);else{this.b.ad&&(k=Math.round(k),h=Math.round(h));a.save();var m=0<n?1:-1,q=0<e?1:-1;a.translate(k,h);1===m&&1===q||a.scale(m,q);a.rotate(this.m*m*q);k=0-this.zb*la(n);
h=0-this.Ab*la(e);c?a.drawImage(f,b.Df,b.Ef,b.width,b.height,k,h,la(n),la(e)):a.drawImage(f,k,h,la(n),la(e));a.restore()}};a.Ib=function(a){a.Pb(this.Mh);a.Te(this.opacity);var b=this.hc,c=this.df;if(this.b.ad){var f=Math.round(this.x)-this.x,k=Math.round(this.y)-this.y;b.Pf?a.fe(c.Ya+f,c.Za+k,c.Db+f,c.Eb+k,c.tb+f,c.ub+k,c.rb+f,c.sb+k,b.Nl):a.eh(c.Ya+f,c.Za+k,c.Db+f,c.Eb+k,c.tb+f,c.ub+k,c.rb+f,c.sb+k)}else b.Pf?a.fe(c.Ya,c.Za,c.Db,c.Eb,c.tb,c.ub,c.rb,c.sb,b.Nl):a.eh(c.Ya,c.Za,c.Db,c.Eb,c.tb,c.ub,
c.rb,c.sb)};a.rs=function(a){var b=this.hc,c,f;c=0;for(f=b.Ck.length;c<f;c++)if(hb(a,b.Ck[c][0]))return c;return-1};a.rk=function(a,b){var c=this.hc,f=c.Ck,k;k=P(a)?this.rs(a):a-1;k=R(k);if(0>k||k>=f.length)return b?this.x:this.y;var h=(f[k][1]-c.zb)*this.width,f=f[k][2],f=(f-c.Ab)*this.height,c=Math.cos(this.m);k=Math.sin(this.m);var n=h*c-f*k,f=f*c+h*k,h=n+this.x,f=f+this.y;return b?h:f};var b=new ba,v=!1;new va(0,0,0,0);q.finish=function(a){if(v){if(a){var c=this.b.Jb().Fc.Yc;a=null.ha();var f=
b.oe(),h,k;if(a.na){a.na=!1;a.e.length=f.length;h=0;for(k=f.length;h<k;h++)a.e[h]=f[h];if(c)for(h=a.S.length=0,k=null.e.length;h<k;h++)f=null.e[h],b.contains(f)||a.S.push(f)}else if(c)for(c=a.e.length,a.e.length=c+f.length,h=0,k=f.length;h<k;h++)a.e[c+h]=f[h],Ca(a.S,f[h]);else za(a.e,f);null.Md()}b.clear();v=!1}};h.prototype.Zp=function(a){return hb(this.Dm,a)};h.prototype.$p=function(){return!0};h.prototype.Ze=function(){return!0};p.i=new h;f.prototype.vq=function(a){this.Dh=a;this.Pk||(this.b.mj(this),
this.Pk=!0);this.Dk||this.Zm()};f.prototype.wq=function(a){this.Sd!==(0!==a)&&((this.Sd=0!==a)?this.Ha():(this.ec.right>=this.ec.left&&this.type.Sj.update(this,this.ec,null),this.ec.set(0,0,-1,-1)))};p.fa=new f;p.Fa=new function(){}})();function mc(n){this.b=n}
(function(){function n(a,b){return a.length?a.pop():new b}function h(a,c,d){if(d){var e;d=0;for(e=c.length;d<e;d++)a.length<b&&a.push(c[d]);c.length=0}else for(e in c)Object.prototype.hasOwnProperty.call(c,e)&&(a.length<b&&a.push(c[e]),delete c[e])}function f(a,b,c){var d=a.Me;c=c.replace(/\s\s*$/,"");b>=d.length&&d.push(n(v,Object));b=d[b];b.text=c;b.width=a.dl(c);a.Sf=ma(a.Sf,b.width)}function p(){}function q(){}var c=mc.prototype;c.Z=function(){};c.Da=function(a){this.ja=a;this.b=a.b};var a=c.Da.prototype;
a.Z=function(){this.C||(this.X=new Image,this.b.gm(this.X,this.jj),this.V=null)};a.Hi=function(){this.C||(this.V=null)};a.Ji=function(){if(!this.C&&this.e.length){this.V||(this.V=this.b.u.xf(this.X,!1,this.b.T,this.sh));var a,b;a=0;for(b=this.e.length;a<b;a++)this.e[a].V=this.V}};a.rj=function(){this.C||this.e.length||!this.V||(this.b.u.deleteTexture(this.V),this.V=null)};a.Ti=function(a){a.drawImage(this.X,0,0)};c.ra=function(a){this.type=a;this.b=a.b};a=c.ra.prototype;a.Ff=function(){h(v,this.Me,
!0);h(g,this.Fh,!1);h(d,this.Gh,!1);Va(this.Rd)};a.Z=function(){this.X=this.type.X;this.Eh=this.ca[0];this.Pd=this.ca[1];this.characterSet=this.ca[2];this.text=this.ca[3];this.Qd=this.ca[4];this.visible=0===this.ca[5];this.vn=this.ca[6]/2;this.Dp=this.ca[7]/2;this.qu=0===this.ca[9];this.ef=this.ca[10];this.lineHeight=this.ca[11];this.Ve=this.Sf=0;this.zc?(this.Me.length=0,Va(this.Fh),Va(this.Gh),Va(this.Rd)):(this.Me=[],this.Fh={},this.Gh={},this.Rd={});this.rh=!0;this.Uk=this.width;this.b.u&&(this.type.V||
(this.type.V=this.b.u.xf(this.type.X,!1,this.b.T,this.type.sh)),this.V=this.type.V);this.Dq()};a.Ob=function(){var a={t:this.text,csc:this.Qd,csp:this.ef,lh:this.lineHeight,tw:this.Sf,th:this.Ve,lrt:this.et,cw:{}},b;for(b in this.Rd)a.cw[b]=this.Rd[b];return a};a.tc=function(a){this.text=a.t;this.Qd=a.csc;this.ef=a.csp;this.lineHeight=a.lh;this.Sf=a.tw;this.Ve=a.th;this.et=a.lrt;for(var b in a.cw)this.Rd[b]=a.cw[b];this.rh=!0;this.Uk=this.width};var b=1E3,v=[],g=[],d=[];a.Dq=function(){for(var a=
this.X,b=a.width,c=a.height,a=this.Eh,e=this.Pd,f=a/b,h=e/c,l=this.characterSet,b=Math.floor(b/a),c=Math.floor(c/e),q=0;q<l.length&&!(q>=b*c);q++){var p=q%b,u=Math.floor(q/b),v=l.charAt(q);if(this.b.u){var N=this.Gh,x=p*f,F=u*h,p=(p+1)*f,u=(u+1)*h;void 0===N[v]&&(N[v]=n(d,va));N[v].left=x;N[v].top=F;N[v].right=p;N[v].bottom=u}else N=this.Fh,p*=a,u*=e,x=a,F=e,void 0===N[v]&&(N[v]=n(g,Object)),N[v].x=p,N[v].y=u,N[v].Gp=x,N[v].un=F}};var l=[];c.Hq=function(a){l.length=0;for(var b="",c,d=0;d<a.length;)if(c=
a.charAt(d),"\n"===c)b.length&&(l.push(b),b=""),l.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)));l.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&l.push(b)};c.Iq=function(a){var b=a.text,c=a.Me;if(b&&b.length){var d=a.width;if(2>=d)h(v,c,!0);else{var f=a.Qd,g=a.ef;if(b.length*(a.Eh*f+g)-g<=d&&-1===b.indexOf("\n")&&(g=a.dl(b),g<=d)){h(v,c,!0);c.push(n(v,Object));c[0].text=b;c[0].width=g;a.Sf=g;a.Ve=a.Pd*f+a.lineHeight;
return}this.Jq(a);a.Ve=c.length*(a.Pd*f+a.lineHeight)}}else h(v,c,!0)};c.Jq=function(a){var c=a.qu,d=a.text,e=a.Me,g=a.width;c&&(this.Hq(d),d=l);var h="",n,q,p,u=0,Q=!1;for(p=0;p<d.length;p++)"\n"===d[p]?(!0===Q?Q=!1:(f(a,u,h),u++),h=""):(Q=!1,n=h,h+=d[p],q=a.dl(h.replace(/\s\s*$/,"")),q>g&&(""===n?(f(a,u,h),h="",Q=!0):(f(a,u,n),h=d[p]),u++,c||" "!==h||(h="")));h.replace(/\s\s*$/,"").length&&(f(a,u,h),u++);for(p=u;p<e.length;p++)v.length<b&&v.push(e[p]);e.length=u};a.dl=function(a){for(var b=this.ef,
c=a.length,d=0,f=0;f<c;f++)d+=this.nk(a.charAt(f))*this.Qd+b;return d-(0<d?b:0)};a.nk=function(a){var b=this.Rd;return void 0!==b[a]?b[a]:this.Eh};a.So=function(){if(this.rh||this.width!==this.Uk)this.Ve=this.Sf=0,this.type.ja.Iq(this),this.rh=!1,this.Uk=this.width};a.Gc=function(a){var b=this.X;if(""!==this.text&&null!=b&&(this.So(),!(this.height<this.Pd*this.Qd+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.ad&&(b=Math.round(b),c=Math.round(c));var d=this.k.pa,f=this.k.qa,
g=this.k.ya,h=this.k.xa;a.save();a.translate(b,c);a.rotate(this.m);for(var l=this.vn,n=this.Qd,q=this.Pd*n,p=this.lineHeight,u=this.ef,x=this.Me,F,v=-(this.zb*this.width),K=-(this.Ab*this.height),K=K+this.Dp*ma(0,this.height-this.Ve),C,t,Z,H=0;H<x.length;H++){var J=x[H].text;F=l*ma(0,this.width-x[H].width);C=v+F;K+=p;if(c+K+q<f)K+=q;else{for(var y=0;y<J.length;y++){t=J.charAt(y);F=this.nk(t);var B=this.Fh[t];if(b+C+F*n+u<d)C+=F*n+u;else{if(C+F*n>this.width+1E-5)break;void 0!==B&&(t=C,Z=K,0===this.m&&
(t=Math.round(t),Z=Math.round(Z)),a.drawImage(this.X,B.x,B.y,B.Gp,B.un,t,Z,B.Gp*n,B.un*n));C+=F*n+u;if(b+C>g)break}}K+=q;if(K+q+p>this.height||c+K>h)break}}a.restore()}};var u=new wa;a.Ib=function(a){a.Pb(this.V);a.Te(this.opacity);if(this.text&&(this.So(),!(this.height<this.Pd*this.Qd+this.lineHeight))){this.ib();var b=this.df,c=0,d=0;this.b.ad&&(c=Math.round(this.x)-this.x,d=Math.round(this.y)-this.y);var f=this.k.pa,g=this.k.qa,h=this.k.ya,l=this.k.xa,n=this.m,q=this.vn,p=this.Dp,v=this.Qd,x=this.Pd*
v,F=this.lineHeight,ja=this.ef,K=this.Me,C=this.Ve,t,Z,H;0!==n&&(Z=Math.cos(n),H=Math.sin(n));for(var c=b.Ya+c,b=b.Za+d,J,p=p*ma(0,this.height-C),y,B,C=0;C<K.length;C++)if(d=K[C].text,J=t=q*ma(0,this.width-K[C].width),p+=F,0===n&&b+p+x<g)p+=x;else{for(var L=0;L<d.length;L++){var E=d.charAt(L);t=this.nk(E);E=this.Gh[E];if(c+J+t*v+ja<f)J+=t*v+ja;else{if(J+t*v>this.width+1E-5)break;if(void 0!==E){var I=this.Eh*v,G=this.Pd*v;y=J;B=p;0===n&&(y=Math.round(y),B=Math.round(B));u.Ya=y;u.Za=B;u.Db=y+I;u.Eb=
B;u.rb=y;u.sb=B+G;u.tb=y+I;u.ub=B+G;0!==n&&(y=u,B=Z,I=H,G=void 0,G=y.Ya*B-y.Za*I,y.Za=y.Za*B+y.Ya*I,y.Ya=G,G=y.Db*B-y.Eb*I,y.Eb=y.Eb*B+y.Db*I,y.Db=G,G=y.rb*B-y.sb*I,y.sb=y.sb*B+y.rb*I,y.rb=G,G=y.tb*B-y.ub*I,y.ub=y.ub*B+y.tb*I,y.tb=G);u.offset(c,b);a.fe(u.Ya,u.Za,u.Db,u.Eb,u.tb,u.ub,u.rb,u.sb,E)}J+=t*v+ja;if(0===n&&c+J>h)break}}p+=x;if(p+x+F>this.height||b+p>l)break}}};c.i=new function(){};p.prototype.yq=function(a){ha(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=
a,this.rh=!0,this.b.da=!0)};a.dv=function(a,b){var c=parseInt(b,10);this.Rd[a]!==c&&(this.Rd[a]=c,this.rh=!0,this.b.da=!0)};c.fa=new p;q.prototype.Text=function(a){a.Oa(this.text)};c.Fa=new q})();function Y(n){this.b=n}
(function(){function n(a){g=a.x;d=a.y;l=a.z}function h(a){u=a.x;k=a.y;r=a.z}function f(a,b,c,d){var e;e=s.length?s.pop():new p;e.init(a,b,c,d);return e}function p(){this.nh=this.id=this.y=this.x=this.hj=this.gj=this.Tk=this.time=this.Ql=0;this.vh=this.pj=!1}function q(){}function c(){}var a=Y.prototype;a.Da=function(a){this.ja=a;this.b=a.b};a.Da.prototype.Z=function(){};a.ra=function(a){this.type=a;this.b=a.b;this.touches=[];this.fl=!1};var b=a.ra.prototype,v={left:0,top:0};b.pg=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 g=0,d=0,l=0,u=0,k=0,r=0,s=[];p.prototype.init=function(a,b,c,d){var e=Wa();this.Ql=this.Tk=this.time=e;this.gj=a;this.hj=b;this.x=a;this.y=b;this.id=c;this.nh=d;this.vh=this.pj=!1};p.prototype.update=function(a,b,c){this.Tk=this.time;this.time=a;this.x=b;this.y=c;!this.vh&&15<=Sa(this.gj,this.hj,this.x,this.y)&&(this.vh=!0)};p.prototype.jt=function(a,b){!this.pj&&500<=Wa()-this.Ql&&!this.vh&&15>Sa(this.gj,this.hj,
this.x,this.y)&&(this.pj=!0,a.ed=this.nh,a.Vf=this.id,a.kf=b,a.b.trigger(Y.prototype.i.gq,a),a.ld=this.x,a.md=this.y,a.b.trigger(Y.prototype.i.hq,a),a.kf=0)};var e=-1E3,m=-1E3,w=-1E4;p.prototype.jo=function(a,b){if(!this.pj){var c=Wa();333>=c-this.Ql&&!this.vh&&15>Sa(this.gj,this.hj,this.x,this.y)&&(a.ed=this.nh,a.Vf=this.id,a.kf=b,666>=c-w&&25>Sa(e,m,this.x,this.y)?(a.b.trigger(Y.prototype.i.dq,a),a.ld=this.x,a.md=this.y,a.b.trigger(Y.prototype.i.fq,a),m=e=-1E3,w=-1E4):(a.b.trigger(Y.prototype.i.rq,
a),a.ld=this.x,a.md=this.y,a.b.trigger(Y.prototype.i.sq,a),e=this.x,m=this.y,w=c),a.kf=0)}};b.Z=function(){this.Zs=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.kf=this.Vf=this.ed=this.md=this.ld=this.ym=this.xm=this.wm=this.Nq=this.Mq=this.Lq=this.Zg=this.Yg=this.Xg=0;this.ou=0!==this.ca[0];var a=0<this.b.xb?document:this.b.canvas,b=document;this.b.cb?b=a=window.Canvas:this.b.oc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.wo(a)},
!1),a.addEventListener("pointermove",function(a){c.vo(a)},!1),b.addEventListener("pointerup",function(a){c.Ii(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Ii(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.wo(a)},!1),a.addEventListener("MSPointerMove",function(a){c.vo(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Ii(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Ii(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.yo(a)},
!1),a.addEventListener("touchmove",function(a){c.xo(a)},!1),b.addEventListener("touchend",function(a){c.ql(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.ql(a,!0)},!1));if(this.Zs){var d=function(a){a=a.reading;c.wm=a.accelerationX;c.xm=a.accelerationY;c.ym=a.accelerationZ},e=function(a){a=a.reading;c.Xg=a.yawDegrees;c.Yg=a.pitchDegrees;c.Zg=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var g=Windows.Devices.Sensors.Inclinometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),g&&g.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),g&&g.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.Xg=a.alpha||
0;c.Yg=a.beta||0;c.Zg=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Lq=a.accelerationIncludingGravity.x||0,c.Mq=a.accelerationIncludingGravity.y||0,c.Nq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.wm=a.acceleration.x||0,c.xm=a.acceleration.y||0,c.ym=a.acceleration.z||0)},!1);this.ou&&!this.b.ma&&(jQuery(document).mousemove(function(a){c.ol(a)}),jQuery(document).mousedown(function(a){c.nl(a)}),jQuery(document).mouseup(function(a){c.pl(a)}));
this.b.of&&!this.b.cb&&AppMobi.accelerometer.watchAcceleration(n,{frequency:40,adjustForRotation:!0});this.b.pc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(h,null,{frequency:40});this.b.eu(this)};b.vo=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.pg(a.pointerId),c=Wa();if(0<=b){var d=this.b.ma?v:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};b.wo=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ib(a)&&a.preventDefault();var b=this.b.ma?v:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Wa();this.ed=this.touches.length;this.Vf=a.pointerId;this.touches.push(f(c,b,a.pointerId,this.ed));this.b.eb=!0;this.b.trigger(Y.prototype.i.qm,this);this.b.trigger(Y.prototype.i.um,this);this.ld=c;this.md=b;this.b.trigger(Y.prototype.i.Aj,this);
this.b.eb=!1}};b.Ii=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ib(a)&&a.preventDefault();var c=this.pg(a.pointerId);this.ed=0<=c?this.touches[c].nh:-1;this.Vf=0<=c?this.touches[c].id:-1;this.b.eb=!0;this.b.trigger(Y.prototype.i.pm,this);this.b.trigger(Y.prototype.i.tm,this);0<=c&&(b||this.touches[c].jo(this,c),100>s.length&&s.push(this.touches[c]),this.touches.splice(c,1));this.b.eb=!1}};b.xo=function(a){a.preventDefault&&a.preventDefault();
var b=Wa(),c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.pg(e.identifier),0<=f){var g=this.b.ma?v:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};b.yo=function(a){a.preventDefault&&ib(a)&&a.preventDefault();var b=this.b.ma?v:jQuery(this.b.canvas).offset();Wa();this.b.eb=!0;var c,d,e,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],g=this.pg(e.identifier),-1===g){g=e.pageX-b.left;var h=e.pageY-
b.top;this.ed=this.touches.length;this.Vf=e.identifier;this.touches.push(f(g,h,e.identifier,this.ed));this.b.trigger(Y.prototype.i.qm,this);this.b.trigger(Y.prototype.i.um,this);this.ld=g;this.md=h;this.b.trigger(Y.prototype.i.Aj,this)}this.b.eb=!1};b.ql=function(a,b){a.preventDefault&&ib(a)&&a.preventDefault();this.b.eb=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.pg(e.identifier),0<=e&&(this.ed=this.touches[e].nh,this.Vf=this.touches[e].id,this.b.trigger(Y.prototype.i.pm,
this),this.b.trigger(Y.prototype.i.tm,this),b||this.touches[e].jo(this,e),100>s.length&&s.push(this.touches[e]),this.touches.splice(e,1));this.b.eb=!1};b.wv=function(){return this.b.of&&0===this.Xg&&0!==l?90*l:this.b.pc&&0===this.Xg&&0!==r?90*r:this.Xg};b.xv=function(){return this.b.of&&0===this.Yg&&0!==d?-90*d:this.b.pc&&0===this.Yg&&0!==k?90*k:this.Yg};b.zv=function(){return this.b.of&&0===this.Zg&&0!==g?90*g:this.b.pc&&0===this.Zg&&0!==u?90*u:this.Zg};b.nl=function(a){a.preventDefault&&this.b.nf&&
!this.b.td&&a.preventDefault();this.yo({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.fl=!0};b.ol=function(a){this.fl&&this.xo({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.pl=function(a){a.preventDefault&&this.b.nf&&!this.b.td&&a.preventDefault();this.b.nf=!0;this.ql({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.fl=!1};b.lj=function(){var a,b,c,d=Wa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Tk=d),c.jt(this,
a)};q.prototype.um=function(){return!0};q.prototype.tm=function(){return!0};q.prototype.Aj=function(a){return a?this.b.Rf(a,this.ld,this.md,!1):!1};q.prototype.qm=function(a){a=Math.floor(a);return a===this.ed};q.prototype.pm=function(a){a=Math.floor(a);return a===this.ed};q.prototype.gq=function(){return!0};q.prototype.rq=function(){return!0};q.prototype.dq=function(){return!0};q.prototype.hq=function(a){return a?this.b.Rf(a,this.ld,this.md,!1):!1};q.prototype.sq=function(a){return a?this.b.Rf(a,
this.ld,this.md,!1):!1};q.prototype.fq=function(a){return a?this.b.Rf(a,this.ld,this.md,!1):!1};a.i=new q;c.prototype.Bj=function(a,b){var c=this.kf;if(0>c||c>=this.touches.length)a.A(0);else{var d,e,f,g,h;fa(b)?(d=this.b.rd(0),e=d.scale,f=d.Fb,g=d.wc,h=d.m,d.scale=1,d.Fb=1,d.wc=1,d.m=0,a.A(d.ab(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Fb=f,d.wc=g,d.m=h):(d=ha(b)?this.b.rd(b):this.b.qg(b))?a.A(d.ab(this.touches[c].x,this.touches[c].y,!0)):a.A(0)}};c.prototype.Cj=function(a,b){var c=this.kf;
if(0>c||c>=this.touches.length)a.A(0);else{var d,e,f,g,h;fa(b)?(d=this.b.rd(0),e=d.scale,f=d.Fb,g=d.xc,h=d.m,d.scale=1,d.Fb=1,d.xc=1,d.m=0,a.A(d.ab(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Fb=f,d.xc=g,d.m=h):(d=ha(b)?this.b.rd(b):this.b.qg(b))?a.A(d.ab(this.touches[c].x,this.touches[c].y,!1)):a.A(0)}};a.Fa=new c})();function oc(n){this.b=n}
(function(){function n(){}var h=oc.prototype;h.Da=function(c){this.ja=c;this.b=c.b};h.Da.prototype.Z=function(){};h.ra=function(c){this.type=c;this.b=c.b};var f=h.ra.prototype,p="",q="undefined"!==typeof window.is_scirra_arcade;q&&(p="arcade"+window.scirra_arcade_id);f.Z=function(){"undefined"===typeof localStorage&&M("[Construct 2] Webstorage plugin: local storage is not supported on this platform.");"undefined"===typeof sessionStorage&&M("[Construct 2] Webstorage plugin: session storage is not supported on this platform.")};
h.i=new function(){};h.fa=new function(){};n.prototype.jm=function(c){if("undefined"===typeof localStorage)c.Oa("");else{var a={},b,f,g;b=0;for(f=localStorage.length;b<f;b++)g=localStorage.key(b),q?g.substr(0,p.length)===p&&(a[g.substr(p.length)]=localStorage.getItem(g)):a[g]=localStorage.getItem(g);c.Oa(JSON.stringify({c2dictionary:!0,data:a}))}};h.Fa=new n})();function pc(n){this.b=n}
(function(){function n(){}function h(){}var f=pc.prototype;f.Da=function(f){this.behavior=f;this.b=f.b};f.Da.prototype.Z=function(){};f.ra=function(f,c){this.type=f;this.behavior=f.behavior;this.Ts=c;this.b=f.b};var p=f.ra.prototype;p.Z=function(){this.Xa={}};p.Ff=function(){Va(this.Xa)};p.Ob=function(){var f={},c,a;for(c in this.Xa)this.Xa.hasOwnProperty(c)&&(a=this.Xa[c],f[c]={c:a.current.J,t:a.total.J,d:a.duration,r:a.Cl});return f};p.tc=function(f){this.Xa={};for(var c in f)f.hasOwnProperty(c)&&
(this.Xa[c]={current:new $a,total:new $a,duration:f[c].d,Cl:f[c].r},this.Xa[c].current.J=f[c].c,this.Xa[c].total.J=f[c].t)};p.Wa=function(){var f=this.b.bi(this.Ts),c,a;for(c in this.Xa)this.Xa.hasOwnProperty(c)&&(a=this.Xa[c],a.current.add(f),a.total.add(f))};p.lj=function(){var f,c;for(f in this.Xa)this.Xa.hasOwnProperty(f)&&(c=this.Xa[f],c.current.J>=c.duration&&(c.Cl?c.current.J-=c.duration:delete this.Xa[f]))};n.prototype.tq=function(f){f=f.toLowerCase();return(f=this.Xa[f])?f.current.J>=f.duration:
!1};f.i=new n;h.prototype.Eq=function(f,c,a){this.Xa[a.toLowerCase()]={current:new $a,total:new $a,duration:f,Cl:1===c}};h.prototype.Gq=function(f){f=f.toLowerCase();this.Xa.hasOwnProperty(f)&&delete this.Xa[f]};f.fa=new h;f.Fa=new function(){}})();
function gc(){return[ic,jc,hc,kc,lc,X,mc,Y,oc,pc,kc.prototype.i.Wp,X.prototype.fa.vq,W.prototype.i.km,Y.prototype.i.Aj,W.prototype.fa.Sp,W.prototype.i.Np,ic.prototype.fa.Play,ic.prototype.fa.Fq,W.prototype.fa.zq,X.prototype.fa.Aq,X.prototype.fa.wq,W.prototype.i.mm,pc.prototype.fa.Eq,W.prototype.Fa.floor,W.prototype.Fa.random,hc.prototype.fa.CallFunction,mc.prototype.fa.yq,W.prototype.Fa.du,X.prototype.i.zh,X.prototype.fa.Bq,X.prototype.fa.xq,pc.prototype.i.tq,X.prototype.Fa.Bj,X.prototype.i.Op,W.prototype.fa.Pp,
X.prototype.fa.Qp,hc.prototype.i.Ah,W.prototype.i.Vp,X.prototype.Fa.Cj,X.prototype.fa.Cq,W.prototype.i.Rp,pc.prototype.fa.Gq,W.prototype.i.Mp]};
