// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,da,I,ea,fa,K,M,ga,ha,ka,ma,na,O,oa,pa,qa,ra,sa,ta,ua,va,wa,ya,Q,za,Aa,Ba,Ca,Ea,Fa,Ga,Ha,R,Ia,Na,Oa,Pa,Qa,T,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,U,Nb,Ob,Pb,V,Qb,Rb={},Sb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(k){return k.__proto__}:function(k){return k.constructor.prototype});
(function(){function k(a,p,b,d){this.set(a,p,b,d)}function g(){this.wb=this.ub=this.yb=this.xb=this.Jb=this.Ib=this.Oa=this.Na=0}function c(a,p,b,d){a<p?b<d?(u=a<b?a:b,h=p>d?p:d):(u=a<d?a:d,h=p>b?p:b):b<d?(u=p<b?p:b,h=a>d?a:d):(u=p<d?p:d,h=a>b?a:b)}function f(){this.items=this.Mc=null;this.mf=0;m&&(this.Mc=new Set);this.Mf=[];this.Md=!0}function s(a){n[p++]=a}function a(){this.aa=this.dj=this.y=this.Gj=0}function b(a){this.Ja=[];this.th=this.vh=this.wh=this.uh=0;this.bh(a)}function d(a,p){this.uq=
a;this.tq=p;this.cells={}}function q(a,p,b){var d;return t.length?(d=t.pop(),d.es=a,d.x=p,d.y=b,d):new aa(a,p,b)}function e(a,p,b){this.es=a;this.x=p;this.y=b;this.Jg=new da}I=function(a){window.console&&window.console.log&&window.console.log(a)};ea=function(a){window.console&&window.console.error&&window.console.error(a)};fa=function(a){return"undefined"===typeof a};K=function(a){return"number"===typeof a};M=function(a){return"string"===typeof a};ga=function(a){return 0<a&&0===(a-1&a)};ha=function(a){--a;
for(var p=1;32>p;p<<=1)a|=a>>p;return a+1};ka=function(a){return 0>a?-a:a};ma=function(a,p){return a<p?a:p};na=Math.PI;O=function(a){return 0<=a?a|0:(a|0)-1};oa=function(a){var p=a|0;return p===a?p:p+1};pa=function(a,p,b,d,r,t,c,m){var q,e,l,h;a<b?(e=a,q=b):(e=b,q=a);r<c?(h=r,l=c):(h=c,l=r);if(q<h||e>l)return!1;p<d?(e=p,q=d):(e=d,q=p);t<m?(h=t,l=m):(h=m,l=t);if(q<h||e>l)return!1;q=r-a+c-b;e=t-p+m-d;a=b-a;p=d-p;r=c-r;t=m-t;m=ka(p*r-t*a);return ka(r*e-t*q)>m?!1:ka(a*e-p*q)<=m};k.prototype.set=function(a,
p,b,d){this.left=a;this.top=p;this.right=b;this.bottom=d};k.prototype.yq=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};k.prototype.width=function(){return this.right-this.left};k.prototype.height=function(){return this.bottom-this.top};k.prototype.offset=function(a,p){this.left+=a;this.top+=p;this.right+=a;this.bottom+=p;return this};k.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&
(a=this.top,this.top=this.bottom,this.bottom=a)};k.prototype.ps=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};k.prototype.qs=function(a,p,b){return!(a.right+p<this.left||a.bottom+b<this.top||a.left+p>this.right||a.top+b>this.bottom)};k.prototype.lb=function(a,p){return a>=this.left&&a<=this.right&&p>=this.top&&p<=this.bottom};k.prototype.Vq=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};qa=k;
g.prototype.Df=function(a){this.Na=a.left;this.Oa=a.top;this.Ib=a.right;this.Jb=a.top;this.xb=a.right;this.yb=a.bottom;this.ub=a.left;this.wb=a.bottom};g.prototype.Do=function(a,p){if(0===p)this.Df(a);else{var b=Math.sin(p),d=Math.cos(p),r=a.left*b,t=a.top*b,c=a.right*b,b=a.bottom*b,m=a.left*d,q=a.top*d,e=a.right*d,d=a.bottom*d;this.Na=m-t;this.Oa=q+r;this.Ib=e-t;this.Jb=q+c;this.xb=e-b;this.yb=d+c;this.ub=m-b;this.wb=d+r}};g.prototype.offset=function(a,p){this.Na+=a;this.Oa+=p;this.Ib+=a;this.Jb+=
p;this.xb+=a;this.yb+=p;this.ub+=a;this.wb+=p;return this};var u=0,h=0;g.prototype.qm=function(a){c(this.Na,this.Ib,this.xb,this.ub);a.left=u;a.right=h;c(this.Oa,this.Jb,this.yb,this.wb);a.top=u;a.bottom=h};g.prototype.lb=function(a,p){var b=this.Ib-this.Na,d=this.Jb-this.Oa,r=this.xb-this.Na,t=this.yb-this.Oa,c=a-this.Na,m=p-this.Oa,q=b*b+d*d,e=b*r+d*t,d=b*c+d*m,l=r*r+t*t,h=r*c+t*m,n=1/(q*l-e*e),b=(l*d-e*h)*n,q=(q*h-e*d)*n;if(0<=b&&0<q&&1>b+q)return!0;b=this.ub-this.Na;d=this.wb-this.Oa;q=b*b+d*
d;e=b*r+d*t;d=b*c+d*m;n=1/(q*l-e*e);b=(l*d-e*h)*n;q=(q*h-e*d)*n;return 0<=b&&0<q&&1>b+q};g.prototype.Kd=function(a,p){if(p)switch(a){case 0:return this.Na;case 1:return this.Ib;case 2:return this.xb;case 3:return this.ub;case 4:return this.Na;default:return this.Na}else switch(a){case 0:return this.Oa;case 1:return this.Jb;case 2:return this.yb;case 3:return this.wb;case 4:return this.Oa;default:return this.Oa}};g.prototype.Ln=function(){return(this.Na+this.Ib+this.xb+this.ub)/4};g.prototype.Mn=function(){return(this.Oa+
this.Jb+this.yb+this.wb)/4};g.prototype.bn=function(a){var p=a.Ln(),b=a.Mn();if(this.lb(p,b))return!0;p=this.Ln();b=this.Mn();if(a.lb(p,b))return!0;var d,r,t,c,m,q,e,l;for(e=0;4>e;e++)for(l=0;4>l;l++)if(p=this.Kd(e,!0),b=this.Kd(e,!1),d=this.Kd(e+1,!0),r=this.Kd(e+1,!1),t=a.Kd(l,!0),c=a.Kd(l,!1),m=a.Kd(l+1,!0),q=a.Kd(l+1,!1),pa(p,b,d,r,t,c,m,q))return!0;return!1};ra=g;sa=function(a,p){for(var b in p)p.hasOwnProperty(b)&&(a[b]=p[b]);return a};ta=function(a,p){var b,d;p=O(p);if(!(0>p||p>=a.length)){b=
p;for(d=a.length-1;b<d;b++)a[b]=a[b+1];a.length=d}};ua=function(a,p){a.length=p.length;var b,d;b=0;for(d=p.length;b<d;b++)a[b]=p[b]};va=function(a,p){a.push.apply(a,p)};wa=function(a,p){var b,d;b=0;for(d=a.length;b<d;++b)if(a[b]===p)return b;return-1};ya=function(a,p){var b=wa(a,p);-1!==b&&ta(a,b)};Q=function(a){return a/(180/na)};za=function(a){return 180/na*a};Aa=function(a){a%=360;0>a&&(a+=360);return a};Ba=function(a){a%=2*na;0>a&&(a+=2*na);return a};Ca=function(a){return Aa(za(a))};Ea=function(a){return Ba(Q(a))};
Fa=function(a,p,b,d){return Math.atan2(d-p,b-a)};Ga=function(a,p){if(a===p)return 0;var b=Math.sin(a),d=Math.cos(a),r=Math.sin(p),t=Math.cos(p),b=b*r+d*t;return 1<=b?0:-1>=b?na:Math.acos(b)};Ha=function(a,p,b){var d=Math.sin(a),r=Math.cos(a),t=Math.sin(p),c=Math.cos(p);return Math.acos(d*t+r*c)>b?0<r*t-d*c?Ba(a+b):Ba(a-b):Ba(p)};R=function(a,p){var b=Math.sin(a),d=Math.cos(a),r=Math.sin(p),t=Math.cos(p);return 0>=d*r-b*t};Ia=function(a,p,b,d,r,t){if(0===b)return t?a:p;var c=Math.sin(b);b=Math.cos(b);
a-=d;p-=r;var m=a*c;a=a*b-p*c;p=p*b+m;return t?a+d:p+r};Na=function(a,p,b,d){a=b-a;p=d-p;return Math.sqrt(a*a+p*p)};Oa=function(a,p){return!a!==!p};Pa=function(a){for(var p in a)if(a.hasOwnProperty(p))return!0;return!1};Qa=function(a){for(var p in a)a.hasOwnProperty(p)&&delete a[p]};var y=+new Date;T=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==
typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-y};var l=!1,A=l=!1,z=!1;"undefined"!==typeof window&&(l=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),l=!l&&/safari/i.test(navigator.userAgent),A=/(iphone|ipod|ipad)/i.test(navigator.userAgent),z=window.c2ejecta);var m=!l&&!z&&!A&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;f.prototype.contains=function(a){return this.ef()?!1:m?this.Mc.has(a):this.items&&
this.items.hasOwnProperty(a)};f.prototype.add=function(a){if(m)this.Mc.has(a)||(this.Mc.add(a),this.Md=!1);else{var p=a.toString(),b=this.items;b?b.hasOwnProperty(p)||(b[p]=a,this.mf++,this.Md=!1):(this.items={},this.items[p]=a,this.mf=1,this.Md=!1)}};f.prototype.remove=function(a){if(!this.ef())if(m)this.Mc.has(a)&&(this.Mc["delete"](a),this.Md=!1);else if(this.items){a=a.toString();var p=this.items;p.hasOwnProperty(a)&&(delete p[a],this.mf--,this.Md=!1)}};f.prototype.clear=function(){this.ef()||
(m?this.Mc.clear():(this.items=null,this.mf=0),this.Mf.length=0,this.Md=!0)};f.prototype.ef=function(){return 0===this.count()};f.prototype.count=function(){return m?this.Mc.size:this.mf};var n=null,p=0;f.prototype.Jt=function(){if(!this.Md){if(m)this.Mf.length=this.Mc.size,n=this.Mf,p=0,this.Mc.forEach(s),n=null,p=0;else{var a=this.Mf;a.length=this.mf;var b,d=0,r=this.items;if(r)for(b in r)r.hasOwnProperty(b)&&(a[d++]=r[b])}this.Md=!0}};f.prototype.Pc=function(){this.Jt();return this.Mf};da=f;new da;
Ta=function(a,p){m?Ra(a,p.Mc):Sa(a,p.Pc())};Ra=function(a,p){var b,d,r,t;d=b=0;for(r=a.length;b<r;++b)t=a[b],p.has(t)||(a[d++]=t);a.length=d};Sa=function(a,p){var b,d,r,t;d=b=0;for(r=a.length;b<r;++b)t=a[b],-1===wa(p,t)&&(a[d++]=t);a.length=d};a.prototype.add=function(a){this.y=a-this.Gj;this.dj=this.aa+this.y;this.Gj=this.dj-this.aa-this.y;this.aa=this.dj};a.prototype.reset=function(){this.aa=this.dj=this.y=this.Gj=0};Ua=a;Va=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.bh=
function(a){this.po=a;this.Kc=a.length/2;this.Ja.length=a.length;this.Ah=this.Bh=-1;this.um=0};b.prototype.hf=function(){return!this.po.length};b.prototype.Ba=function(){for(var a=this.Ja,p=a[0],b=p,d=a[1],r=d,t,c,m=1,q=this.Kc;m<q;++m)c=2*m,t=a[c],c=a[c+1],t<p&&(p=t),t>b&&(b=t),c<d&&(d=c),c>r&&(r=c);this.uh=p;this.vh=b;this.wh=d;this.th=r};b.prototype.Df=function(a,p,b){this.Ja.length=8;this.Kc=4;var d=this.Ja;d[0]=a.left-p;d[1]=a.top-b;d[2]=a.right-p;d[3]=a.top-b;d[4]=a.right-p;d[5]=a.bottom-b;
d[6]=a.left-p;d[7]=a.bottom-b;this.Bh=a.right-a.left;this.Ah=a.bottom-a.top;this.Ba()};b.prototype.Cf=function(a,p,b,d,r){this.Ja.length=8;this.Kc=4;var t=this.Ja;t[0]=a.Na-p;t[1]=a.Oa-b;t[2]=a.Ib-p;t[3]=a.Jb-b;t[4]=a.xb-p;t[5]=a.yb-b;t[6]=a.ub-p;t[7]=a.wb-b;this.Bh=d;this.Ah=r;this.Ba()};b.prototype.Co=function(a){this.Kc=a.Kc;ua(this.Ja,a.Ja);this.uh=a.uh;this.wh-a.wh;this.vh=a.vh;this.th=a.th};b.prototype.Se=function(a,p,b){if(this.Bh!==a||this.Ah!==p||this.um!==b){this.Bh=a;this.Ah=p;this.um=
b;var d,r,t,c,m,q=0,e=1,l=this.po,h=this.Ja;0!==b&&(q=Math.sin(b),e=Math.cos(b));b=0;for(t=this.Kc;b<t;b++)d=2*b,r=d+1,c=l[d]*a,m=l[r]*p,h[d]=c*e-m*q,h[r]=m*e+c*q;this.Ba()}};b.prototype.lb=function(a,p){var b=this.Ja;if(a===b[0]&&p===b[1])return!0;var d,r,t,c=this.Kc,m=this.uh-110,q=this.wh-101,e=this.vh+131,l=this.th+120,h,n,f=0,u=0;for(d=0;d<c;d++)r=2*d,t=(d+1)%c*2,h=b[r],r=b[r+1],n=b[t],t=b[t+1],pa(m,q,a,p,h,r,n,t)&&f++,pa(e,l,a,p,h,r,n,t)&&u++;return 1===f%2||1===u%2};b.prototype.hg=function(a,
p,b){var d=a.Ja,r=this.Ja;if(this.lb(d[0]+p,d[1]+b)||a.lb(r[0]-p,r[1]-b))return!0;var t,c,m,q,e,l,h,n,f,u,s,k;t=0;for(q=this.Kc;t<q;t++)for(c=2*t,m=(t+1)%q*2,n=r[c],c=r[c+1],f=r[m],u=r[m+1],m=0,h=a.Kc;m<h;m++)if(e=2*m,l=(m+1)%h*2,s=d[e]+p,e=d[e+1]+b,k=d[l]+p,l=d[l+1]+b,pa(n,c,f,u,s,e,k,l))return!0;return!1};Wa=b;d.prototype.hk=function(a,p,b){var d;d=this.cells[a];return d?(d=d[p])?d:b?(d=q(this,a,p),this.cells[a][p]=d):null:b?(d=q(this,a,p),this.cells[a]={},this.cells[a][p]=d):null};d.prototype.ph=
function(a){return O(a/this.uq)};d.prototype.qh=function(a){return O(a/this.tq)};d.prototype.update=function(a,p,b){var d,r,c,m,q;if(p)for(d=p.left,r=p.right;d<=r;++d)for(c=p.top,m=p.bottom;c<=m;++c)if(!b||!b.lb(d,c))if(q=this.hk(d,c,!1))q.remove(a),q.ef()&&(q.Jg.clear(),1E3>t.length&&t.push(q),this.cells[d][c]=null);if(b)for(d=b.left,r=b.right;d<=r;++d)for(c=b.top,m=b.bottom;c<=m;++c)p&&p.lb(d,c)||this.hk(d,c,!0).os(a)};d.prototype.ro=function(a,p){var b,d,r,t,c,m;b=this.ph(a.left);r=this.qh(a.top);
d=this.ph(a.right);for(c=this.qh(a.bottom);b<=d;++b)for(t=r;t<=c;++t)(m=this.hk(b,t,!1))&&m.dump(p)};Xa=d;var t=[];e.prototype.ef=function(){return this.Jg.ef()};e.prototype.os=function(a){this.Jg.add(a)};e.prototype.remove=function(a){this.Jg.remove(a)};e.prototype.dump=function(a){va(a,this.Jg.Pc())};aa=e;var r="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Ya=function(a){return 0>=a||11<=a?"source-over":r[a-1]};Za=
function(a,p,b){if(b)switch(a.jb=b.ONE,a.ib=b.ONE_MINUS_SRC_ALPHA,p){case 1:a.jb=b.ONE;a.ib=b.ONE;break;case 3:a.jb=b.ONE;a.ib=b.ZERO;break;case 4:a.jb=b.ONE_MINUS_DST_ALPHA;a.ib=b.ONE;break;case 5:a.jb=b.DST_ALPHA;a.ib=b.ZERO;break;case 6:a.jb=b.ZERO;a.ib=b.SRC_ALPHA;break;case 7:a.jb=b.ONE_MINUS_DST_ALPHA;a.ib=b.ZERO;break;case 8:a.jb=b.ZERO;a.ib=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.jb=b.DST_ALPHA;a.ib=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.jb=b.ONE_MINUS_DST_ALPHA,a.ib=b.SRC_ALPHA}};$a=function(a){return Math.round(1E6*
a)/1E6};ab=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};bb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||ab(a.tagName,"canvas")?!0:!1}})();var Tb="undefined"!==typeof Float32Array?Float32Array:Array;function Ub(k){var g=new Tb(3);k&&(g[0]=k[0],g[1]=k[1],g[2]=k[2]);return g}
function Vb(k){var g=new Tb(16);k&&(g[0]=k[0],g[1]=k[1],g[2]=k[2],g[3]=k[3],g[4]=k[4],g[5]=k[5],g[6]=k[6],g[7]=k[7],g[8]=k[8],g[9]=k[9],g[10]=k[10],g[11]=k[11],g[12]=k[12],g[13]=k[13],g[14]=k[14],g[15]=k[15]);return g}function Wb(k,g){g[0]=k[0];g[1]=k[1];g[2]=k[2];g[3]=k[3];g[4]=k[4];g[5]=k[5];g[6]=k[6];g[7]=k[7];g[8]=k[8];g[9]=k[9];g[10]=k[10];g[11]=k[11];g[12]=k[12];g[13]=k[13];g[14]=k[14];g[15]=k[15]}
function Xb(k,g){var c=g[0],f=g[1];g=g[2];k[0]*=c;k[1]*=c;k[2]*=c;k[3]*=c;k[4]*=f;k[5]*=f;k[6]*=f;k[7]*=f;k[8]*=g;k[9]*=g;k[10]*=g;k[11]*=g}
function Yb(k,g,c,f){f||(f=Vb());var s,a,b,d,q,e,u,h,y=k[0],l=k[1];k=k[2];a=c[0];b=c[1];s=c[2];c=g[1];e=g[2];y===g[0]&&l===c&&k===e?(k=f,k[0]=1,k[1]=0,k[2]=0,k[3]=0,k[4]=0,k[5]=1,k[6]=0,k[7]=0,k[8]=0,k[9]=0,k[10]=1,k[11]=0,k[12]=0,k[13]=0,k[14]=0,k[15]=1):(c=y-g[0],e=l-g[1],u=k-g[2],h=1/Math.sqrt(c*c+e*e+u*u),c*=h,e*=h,u*=h,g=b*u-s*e,s=s*c-a*u,a=a*e-b*c,(h=Math.sqrt(g*g+s*s+a*a))?(h=1/h,g*=h,s*=h,a*=h):a=s=g=0,b=e*a-u*s,d=u*g-c*a,q=c*s-e*g,(h=Math.sqrt(b*b+d*d+q*q))?(h=1/h,b*=h,d*=h,q*=h):q=d=b=0,
f[0]=g,f[1]=b,f[2]=c,f[3]=0,f[4]=s,f[5]=d,f[6]=e,f[7]=0,f[8]=a,f[9]=q,f[10]=u,f[11]=0,f[12]=-(g*y+s*l+a*k),f[13]=-(b*y+d*l+q*k),f[14]=-(c*y+e*l+u*k),f[15]=1)}
(function(){function k(a){this.ff=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.vm=Ub([0,0,100]);this.vn=Ub([0,0,0]);this.Wo=Ub([0,1,0]);this.Vl=Ub([1,1,1]);this.Dm=!0;this.Rk=Vb();this.vc=Vb();this.nn=Vb();this.Oj=Vb();this.m=a;this.Ym()}function g(a,b,d){this.m=a;this.dh=b;this.name=d;this.uc=a.getAttribLocation(b,"aPos");this.Vd=a.getAttribLocation(b,"aTex");this.tn=a.getUniformLocation(b,"matP");this.ri=a.getUniformLocation(b,"matMV");this.pf=
a.getUniformLocation(b,"opacity");this.un=a.getUniformLocation(b,"samplerFront");this.Cg=a.getUniformLocation(b,"samplerBack");this.Ge=a.getUniformLocation(b,"destStart");this.Fe=a.getUniformLocation(b,"destEnd");this.Ok=a.getUniformLocation(b,"seconds");this.Nk=a.getUniformLocation(b,"pixelWidth");this.Mk=a.getUniformLocation(b,"pixelHeight");this.Bg=a.getUniformLocation(b,"layerScale");this.Ag=a.getUniformLocation(b,"layerAngle");this.Eg=a.getUniformLocation(b,"viewOrigin");this.Dg=a.getUniformLocation(b,
"scrollPos");this.js=!!(this.Nk||this.Mk||this.Ok||this.Cg||this.Ge||this.Fe||this.Bg||this.Ag||this.Eg||this.Dg);this.Dn=this.En=-999;this.ti=1;this.zn=this.yn=0;this.Bn=this.xn=this.wn=1;this.Gn=this.Fn=this.In=this.Hn=this.An=0;this.Hk=[];this.Cn=Vb();this.pf&&a.uniform1f(this.pf,1);this.un&&a.uniform1i(this.un,0);this.Cg&&a.uniform1i(this.Cg,1);this.Ge&&a.uniform2f(this.Ge,0,0);this.Fe&&a.uniform2f(this.Fe,1,1);this.Bg&&a.uniform1f(this.Bg,1);this.Ag&&a.uniform1f(this.Ag,0);this.Eg&&a.uniform2f(this.Eg,
0,0);this.Dg&&a.uniform2f(this.Dg,0,0);this.we=!1}function c(a,b){this.type=a;this.q=b;this.m=b.m;this.pc=this.jc=this.Xn=0;this.Y=this.Oc=null;this.Eo=[]}k.prototype.Ym=function(){var a=this.m,b;this.on=1;this.De=this.Ce=null;this.Hh=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.DEPTH_TEST);this.pn=a.ONE;this.mn=a.ONE_MINUS_SRC_ALPHA;this.hl=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.hl);this.oh=
Array(4);this.hh=Array(4);for(b=0;4>b;b++)this.oh[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.oh[b]),this.hh[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.hh[b]);this.jd=0;this.ms=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.ms);this.Rl=new Float32Array(16E3);this.El=new Float32Array(16E3);this.lo=new Float32Array(32E3);for(var d=new Uint16Array(12E3),c=b=0;12E3>b;)d[b++]=c,d[b++]=c+1,d[b++]=c+2,d[b++]=c,d[b++]=c+2,d[b++]=c+3,c+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,d,
a.STATIC_DRAW);this.yf=this.cd=0;this.Ma=[];b=this.Nj({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.Ma.push(b);b=this.Nj({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.Ma.push(b);for(var e in Zb)Zb.hasOwnProperty(e)&&this.Ma.push(this.Nj(Zb[e],
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}",e));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.hd=[];this.Rc=0;this.Tb=this.Ab=!1;this.zm=this.pg=-1;this.Wf=null;this.ur=a.createFramebuffer();this.uo=null;this.fe=Ub([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Gs=a[0];this.Sk=
a[1];2048<this.Sk&&(this.Sk=2048);this.$c(0)};g.prototype.Ml=function(a){var b=this.Cn;if(b[0]!==a[0]||b[1]!==a[1]||b[2]!==a[2]||b[3]!==a[3]||b[4]!==a[4]||b[5]!==a[5]||b[6]!==a[6]||b[7]!==a[7]||b[8]!==a[8]||b[9]!==a[9]||b[10]!==a[10]||b[11]!==a[11]||b[12]!==a[12]||b[13]!==a[13]||b[14]!==a[14]||b[15]!==a[15])Wb(a,this.Cn),this.m.uniformMatrix4fv(this.ri,!1,a)};k.prototype.Nj=function(a,b,d){var c=this.m,e=c.createShader(c.FRAGMENT_SHADER);c.shaderSource(e,a.src);c.compileShader(e);if(!c.getShaderParameter(e,
c.COMPILE_STATUS))return c.deleteShader(e),null;var f=c.createShader(c.VERTEX_SHADER);c.shaderSource(f,b);c.compileShader(f);if(!c.getShaderParameter(f,c.COMPILE_STATUS))return c.deleteShader(e),c.deleteShader(f),null;b=c.createProgram();c.attachShader(b,e);c.attachShader(b,f);c.linkProgram(b);if(!c.getProgramParameter(b,c.LINK_STATUS))return c.deleteShader(e),c.deleteShader(f),c.deleteProgram(b),null;c.useProgram(b);c.deleteShader(e);c.deleteShader(f);d=new g(c,b,d);d.Yj=a.Yj||0;d.Zj=a.Zj||0;d.ym=
!!a.ym;d.nm=!!a.nm;d.I=a.I||[];a=0;for(e=d.I.length;a<e;a++)d.I[a][1]=c.getUniformLocation(b,d.I[a][0]),d.Hk.push(0),c.uniform1f(d.I[a][1],0);return d};k.prototype.ok=function(a){var b,d;b=0;for(d=this.Ma.length;b<d;b++)if(this.Ma[b].name===a)return b;return-1};k.prototype.oo=function(a,b,d){var c=this.vc,e=this.Rk,f=[0,0,0,0,0,0,0,0];f[0]=c[0]*a+c[4]*b+c[12];f[1]=c[1]*a+c[5]*b+c[13];f[2]=c[2]*a+c[6]*b+c[14];f[3]=c[3]*a+c[7]*b+c[15];f[4]=e[0]*f[0]+e[4]*f[1]+e[8]*f[2]+e[12]*f[3];f[5]=e[1]*f[0]+e[5]*
f[1]+e[9]*f[2]+e[13]*f[3];f[6]=e[2]*f[0]+e[6]*f[1]+e[10]*f[2]+e[14]*f[3];f[7]=-f[2];0!==f[7]&&(f[7]=1/f[7],f[4]*=f[7],f[5]*=f[7],f[6]*=f[7],d[0]=(.5*f[4]+.5)*this.width,d[1]=(.5*f[5]+.5)*this.height)};k.prototype.Bf=function(a,b,d){if(this.width!==a||this.height!==b||d){this.Qd();this.width=a;this.height=b;this.m.viewport(0,0,a,b);b=a/b;var c=this.Rk,e;e=1*Math.tan(45*Math.PI/360);b*=e;a=-b;d=-e;c||(c=Vb());var f=b-a,h=e-d;c[0]=2/f;c[1]=0;c[2]=0;c[3]=0;c[4]=0;c[5]=2/h;c[6]=0;c[7]=0;c[8]=(b+a)/f;c[9]=
(e+d)/h;c[10]=-1001/999;c[11]=-1;c[12]=0;c[13]=0;c[14]=-2E3/999;c[15]=0;Yb(this.vm,this.vn,this.Wo,this.vc);a=[0,0];b=[0,0];this.oo(0,0,a);this.oo(1,1,b);this.Vl[0]=1/(b[0]-a[0]);this.Vl[1]=-1/(b[1]-a[1]);a=0;for(b=this.Ma.length;a<b;a++)d=this.Ma[a],d.we=!1,d.tn&&(this.m.useProgram(d.dh),this.m.uniformMatrix4fv(d.tn,!1,this.Rk));this.m.useProgram(this.Ma[this.pg].dh);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE1);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE0);
this.De=this.Ce=null}};k.prototype.Zd=function(){Yb(this.vm,this.vn,this.Wo,this.vc);Xb(this.vc,this.Vl)};k.prototype.translate=function(a,b){if(0!==a||0!==b){this.fe[0]=a;this.fe[1]=b;this.fe[2]=0;var d=this.vc,c=this.fe,e=c[0],f=c[1],c=c[2];d[12]=d[0]*e+d[4]*f+d[8]*c+d[12];d[13]=d[1]*e+d[5]*f+d[9]*c+d[13];d[14]=d[2]*e+d[6]*f+d[10]*c+d[14];d[15]=d[3]*e+d[7]*f+d[11]*c+d[15]}};k.prototype.scale=function(a,b){if(1!==a||1!==b)this.fe[0]=a,this.fe[1]=b,this.fe[2]=1,Xb(this.vc,this.fe)};k.prototype.vo=
function(a){if(0!==a){var b=this.vc,d,c=Math.sin(a);a=Math.cos(a);var e=b[0],f=b[1],h=b[2],s=b[3],l=b[4],k=b[5],g=b[6],m=b[7];d?b!==d&&(d[8]=b[8],d[9]=b[9],d[10]=b[10],d[11]=b[11],d[12]=b[12],d[13]=b[13],d[14]=b[14],d[15]=b[15]):d=b;d[0]=e*a+l*c;d[1]=f*a+k*c;d[2]=h*a+g*c;d[3]=s*a+m*c;d[4]=e*-c+l*a;d[5]=f*-c+k*a;d[6]=h*-c+g*a;d[7]=s*-c+m*a}};k.prototype.he=function(){for(var a=!1,b=0;16>b;b++)if(this.nn[b]!==this.vc[b]){a=!0;break}a&&(a=this.wc(),a.type=5,a.Y?Wb(this.vc,a.Y):a.Y=Vb(this.vc),Wb(this.vc,
this.nn),this.Tb=this.Ab=!1)};c.prototype.Oq=function(){this.m.bindTexture(this.m.TEXTURE_2D,this.Oc)};c.prototype.Pq=function(){var a=this.m;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Oc);a.activeTexture(a.TEXTURE0)};c.prototype.Lq=function(){var a=this.Xn,b=this.q;b.Hh=a;b=b.Wf;b.pf&&b.ti!==a&&(b.ti=a,this.m.uniform1f(b.pf,a))};c.prototype.Iq=function(){this.m.drawElements(this.m.TRIANGLES,this.pc,this.m.UNSIGNED_SHORT,2*this.jc)};c.prototype.Kq=function(){this.m.blendFunc(this.jc,
this.pc)};c.prototype.Qq=function(){var a,b,d,c=this.q.Ma,e=this.q.zm;a=0;for(b=c.length;a<b;a++)d=c[a],a===e&&d.ri?(d.Ml(this.Y),d.we=!0):d.we=!1;Wb(this.Y,this.q.Oj)};c.prototype.Jq=function(){var a=this.m,b=this.q;this.Oc?(b.De===this.Oc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.De=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.ur),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Oc,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,
a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};c.prototype.Gq=function(){var a=this.m;0===this.jc?(a.clearColor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),a.scissor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),a.clearColor(0,0,0,0),a.clear(this.m.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};c.prototype.Hq=function(){var a=this.m,b=this.q,d=b.Ma[1];a.useProgram(d.dh);!d.we&&d.ri&&(d.Ml(b.Oj),d.we=!0);a.enableVertexAttribArray(d.uc);
a.bindBuffer(a.ARRAY_BUFFER,b.hl);a.vertexAttribPointer(d.uc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.jc/4,this.pc);d=b.Wf;a.useProgram(d.dh);0<=d.uc&&(a.enableVertexAttribArray(d.uc),a.bindBuffer(a.ARRAY_BUFFER,b.oh[b.jd]),a.vertexAttribPointer(d.uc,2,a.FLOAT,!1,0,0));0<=d.Vd&&(a.enableVertexAttribArray(d.Vd),a.bindBuffer(a.ARRAY_BUFFER,b.hh[b.jd]),a.vertexAttribPointer(d.Vd,2,a.FLOAT,!1,0,0))};c.prototype.Mq=function(){var a=this.m,b=this.q,d=b.Ma[this.jc];b.zm=this.jc;b.Wf=d;a.useProgram(d.dh);
!d.we&&d.ri&&(d.Ml(b.Oj),d.we=!0);d.pf&&d.ti!==b.Hh&&(d.ti=b.Hh,a.uniform1f(d.pf,b.Hh));0<=d.uc&&(a.enableVertexAttribArray(d.uc),a.bindBuffer(a.ARRAY_BUFFER,b.oh[b.jd]),a.vertexAttribPointer(d.uc,2,a.FLOAT,!1,0,0));0<=d.Vd&&(a.enableVertexAttribArray(d.Vd),a.bindBuffer(a.ARRAY_BUFFER,b.hh[b.jd]),a.vertexAttribPointer(d.Vd,2,a.FLOAT,!1,0,0))};c.prototype.Nq=function(){var a,b,d=this.q.Wf,c=this.m;a=this.Y;d.Cg&&this.q.De!==this.Oc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,this.Oc),
this.q.De=this.Oc,c.activeTexture(c.TEXTURE0));var e=a[0];d.Nk&&e!==d.En&&(d.En=e,c.uniform1f(d.Nk,e));e=a[1];d.Mk&&e!==d.Dn&&(d.Dn=e,c.uniform1f(d.Mk,e));e=a[2];b=a[3];!d.Ge||e===d.yn&&b===d.zn||(d.yn=e,d.zn=b,c.uniform2f(d.Ge,e,b));e=a[4];b=a[5];!d.Fe||e===d.wn&&b===d.xn||(d.wn=e,d.xn=e,c.uniform2f(d.Fe,e,b));e=a[6];d.Bg&&e!==d.Bn&&(d.Bn=e,c.uniform1f(d.Bg,e));e=a[7];d.Ag&&e!==d.An&&(d.An=e,c.uniform1f(d.Ag,e));e=a[8];b=a[9];!d.Eg||e===d.Hn&&b===d.In||(d.Hn=e,d.In=b,c.uniform2f(d.Eg,e,b));e=a[10];
b=a[11];!d.Dg||e===d.Fn&&b===d.Gn||(d.Fn=e,d.Gn=b,c.uniform2f(d.Dg,e,b));d.Ok&&c.uniform1f(d.Ok,T()/1E3);if(d.I.length)for(a=0,b=d.I.length;a<b;a++)e=this.Eo[a],e!==d.Hk[a]&&(d.Hk[a]=e,c.uniform1f(d.I[a][1],e))};k.prototype.wc=function(){this.Rc===this.hd.length&&this.hd.push(new c(0,this));return this.hd[this.Rc++]};k.prototype.Qd=function(){if(0!==this.Rc&&!this.m.isContextLost()){var a=this.m;0<this.yf&&(a.bindBuffer(a.ARRAY_BUFFER,this.hl),a.bufferData(a.ARRAY_BUFFER,this.lo.subarray(0,this.yf),
a.STREAM_DRAW),b&&0<=b.uc&&"<point>"===b.name&&a.vertexAttribPointer(b.uc,4,a.FLOAT,!1,0,0));if(0<this.cd){var b=this.Wf;a.bindBuffer(a.ARRAY_BUFFER,this.oh[this.jd]);a.bufferData(a.ARRAY_BUFFER,this.Rl.subarray(0,this.cd),a.STREAM_DRAW);b&&0<=b.uc&&"<point>"!==b.name&&a.vertexAttribPointer(b.uc,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.hh[this.jd]);a.bufferData(a.ARRAY_BUFFER,this.El.subarray(0,this.cd),a.STREAM_DRAW);b&&0<=b.Vd&&"<point>"!==b.name&&a.vertexAttribPointer(b.Vd,2,a.FLOAT,
!1,0,0)}for(var d,a=0,b=this.Rc;a<b;a++)switch(d=this.hd[a],d.type){case 1:d.Iq();break;case 2:d.Oq();break;case 3:d.Lq();break;case 4:d.Kq();break;case 5:d.Qq();break;case 6:d.Jq();break;case 7:d.Gq();break;case 8:d.Hq();break;case 9:d.Mq();break;case 10:d.Nq();break;case 11:d.Pq()}this.yf=this.cd=this.Rc=0;this.Tb=this.Ab=!1;this.jd++;4<=this.jd&&(this.jd=0)}};k.prototype.Ke=function(a){if(a!==this.on){var b=this.wc();b.type=3;this.on=b.Xn=a;this.Tb=this.Ab=!1}};k.prototype.Yb=function(a){if(a!==
this.Ce){var b=this.wc();b.type=2;this.Ce=b.Oc=a;this.Tb=this.Ab=!1}};k.prototype.$d=function(a,b){if(a!==this.pn||b!==this.mn){var d=this.wc();d.type=4;d.jc=a;d.pc=b;this.pn=a;this.mn=b;this.Tb=this.Ab=!1}};k.prototype.zo=function(){this.$d(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};k.prototype.Xg=function(a,b,d,c,e,f,h,s){15992<=this.cd&&this.Qd();var l=this.cd,k=this.Rl,g=this.El;if(this.Ab)this.hd[this.Rc-1].pc+=6;else{var m=this.wc();m.type=1;m.jc=l/4*3;m.pc=6;this.Ab=!0;this.Tb=!1}k[l]=a;g[l++]=
0;k[l]=b;g[l++]=0;k[l]=d;g[l++]=1;k[l]=c;g[l++]=0;k[l]=e;g[l++]=1;k[l]=f;g[l++]=1;k[l]=h;g[l++]=0;k[l]=s;g[l++]=1;this.cd=l};k.prototype.zd=function(a,b,d,c,e,f,h,s,l){15992<=this.cd&&this.Qd();var k=this.cd,g=this.Rl,m=this.El;if(this.Ab)this.hd[this.Rc-1].pc+=6;else{var n=this.wc();n.type=1;n.jc=k/4*3;n.pc=6;this.Ab=!0;this.Tb=!1}var n=l.left,p=l.top,t=l.right;l=l.bottom;g[k]=a;m[k++]=n;g[k]=b;m[k++]=p;g[k]=d;m[k++]=t;g[k]=c;m[k++]=p;g[k]=e;m[k++]=t;g[k]=f;m[k++]=l;g[k]=h;m[k++]=n;g[k]=s;m[k++]=
l;this.cd=k};k.prototype.Ws=function(a,b,d,c){7996<=this.yf&&this.Qd();var e=this.yf,f=this.lo;if(this.Tb)this.hd[this.Rc-1].pc++;else{var h=this.wc();h.type=8;h.jc=e;h.pc=1;this.Tb=!0;this.Ab=!1}f[e++]=a;f[e++]=b;f[e++]=d;f[e++]=c;this.yf=e};k.prototype.$c=function(a){if(this.pg!==a){if(!this.Ma[a]){if(0===this.pg)return;a=0}var b=this.wc();b.type=9;this.pg=b.jc=a;this.Tb=this.Ab=!1}};k.prototype.Vg=function(a){a=this.Ma[a];return!(!a.Ge&&!a.Fe)};k.prototype.jl=function(a){a=this.Ma[a];return!!(a.Ge||
a.Fe||a.ym)};k.prototype.ct=function(a){a=this.Ma[a];return 0!==a.Yj||0!==a.Zj};k.prototype.Or=function(a){return this.Ma[a].Yj};k.prototype.Pr=function(a){return this.Ma[a].Zj};k.prototype.Qr=function(a,b){return this.Ma[a].I[b][2]};k.prototype.Ni=function(a){return this.Ma[a].nm};k.prototype.Af=function(a,b,d,c,e,f,h,k,l,s,g,m,n,p){var t=this.Ma[this.pg],r,C;if(t.js||p.length){r=this.wc();r.type=10;r.Y?Wb(this.vc,r.Y):r.Y=Vb();C=r.Y;C[0]=b;C[1]=d;C[2]=c;C[3]=e;C[4]=f;C[5]=h;C[6]=k;C[7]=l;C[8]=s;
C[9]=g;C[10]=m;C[11]=n;r.Oc=t.Cg?a:null;if(p.length)for(d=r.Eo,d.length=p.length,a=0,b=p.length;a<b;a++)d[a]=p[a];this.Tb=this.Ab=!1}};k.prototype.clear=function(a,b,d,c){var e=this.wc();e.type=7;e.jc=0;e.Y||(e.Y=Vb());e.Y[0]=a;e.Y[1]=b;e.Y[2]=d;e.Y[3]=c;this.Tb=this.Ab=!1};k.prototype.clearRect=function(a,b,d,c){if(!(0>d||0>c)){var e=this.wc();e.type=7;e.jc=1;e.Y||(e.Y=Vb());e.Y[0]=a;e.Y[1]=b;e.Y[2]=d;e.Y[3]=c;this.Tb=this.Ab=!1}};k.prototype.bt=function(){this.Qd();this.m.flush()};var f=[],s={};
k.prototype.xq=function(){f.length=0;s={}};k.prototype.nf=function(a,b,d,c){b=!!b;d=!!d;var e=a.src+","+b+","+d+(b?",undefined":""),k=null;if("undefined"!==typeof a.src&&s.hasOwnProperty(e))return k=s[e],k.zh++,k;this.Qd();var h=this.m,g=ga(a.width)&&ga(a.height),k=h.createTexture();h.bindTexture(h.TEXTURE_2D,k);h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var l=h.RGBA,A=h.RGBA,z=h.UNSIGNED_BYTE;if(c&&!this.ff)switch(c){case 1:A=l=h.RGB;break;case 2:z=h.UNSIGNED_SHORT_4_4_4_4;break;case 3:z=
h.UNSIGNED_SHORT_5_5_5_1;break;case 4:A=l=h.RGB,z=h.UNSIGNED_SHORT_5_6_5}if(!g&&b){c=document.createElement("canvas");c.width=ha(a.width);c.height=ha(a.height);var m=c.getContext("2d");m.webkitImageSmoothingEnabled=d;m.mozImageSmoothingEnabled=d;m.msImageSmoothingEnabled=d;m.imageSmoothingEnabled=d;m.drawImage(a,0,0,a.width,a.height,0,0,c.width,c.height);h.texImage2D(h.TEXTURE_2D,0,l,A,z,c)}else h.texImage2D(h.TEXTURE_2D,0,l,A,z,a);b?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_WRAP_T,h.REPEAT)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE));d?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR),g&&this.Dm?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR_MIPMAP_LINEAR),h.generateMipmap(h.TEXTURE_2D)):h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.NEAREST),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,
h.NEAREST));h.bindTexture(h.TEXTURE_2D,null);this.Ce=null;k.Sf=a.width;k.Rf=a.height;k.zh=1;k.tm=e;f.push(k);return s[e]=k};k.prototype.Od=function(a,b,d){var c;this.Qd();var e=this.m;this.ff&&(c=!1);var k=e.createTexture();e.bindTexture(e.TEXTURE_2D,k);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,a,b,0,e.RGBA,c?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,
e.TEXTURE_MAG_FILTER,d?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,d?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.Ce=null;k.Sf=a;k.Rf=b;f.push(k);return k};k.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.zh&&1<a.zh?a.zh--:(this.Qd(),a===this.Ce&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.Ce=null),a===this.De&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.De=
null),ya(f,a),"undefined"!==typeof a.tm&&delete s[a.tm],this.m.deleteTexture(a)))};k.prototype.Zc=function(a){if(a!==this.uo){var b=this.wc();b.type=6;this.uo=b.Oc=a;this.Tb=this.Ab=!1}};cb=k})();
(function(){function k(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function g(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function c(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.qc=(this.jg=/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.c2isphonegap&&window.c2isphonegap;this.$a=!!a.dc;this.df="undefined"!==typeof window.AppMobi||this.$a;this.fc=!!window.c2cocoonjs;this.Fc=!!window.c2ejecta;this.fc&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.Fc&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",
function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.da=this.$a||this.fc||this.Fc;this.ff=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent);this.gn=/tizen/i.test(navigator.userAgent);this.ci=/android/i.test(navigator.userAgent)&&!this.gn&&!this.ff;this.Fk=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.ff;this.ln=/ipad/i.test(navigator.userAgent);
this.ii=this.Fk||this.ln||this.Fc;this.As=this.Fk&&/os\s6/i.test(navigator.userAgent);this.ig=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent);this.cn=/amazonwebappplatform/i.test(navigator.userAgent);this.ts=/firefox/i.test(navigator.userAgent);this.en=/safari/i.test(navigator.userAgent)&&!this.ig&&!this.ff;this.ws=/windows/i.test(navigator.userAgent);this.Td="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);this.ys=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.zs=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.ei=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.jn=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.hn=this.ys||this.zs||this.jn;this.rs=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.di=this.ci&&!this.ig&&!this.jg&&!this.ts&&!this.cn&&!this.da;this.devicePixelRatio=1;this.Vc=this.qc||
this.jg||this.df||this.fc||this.ci||this.ii||this.ei||this.jn||this.rs||this.gn||this.Fc;this.Vc||(this.Vc=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Td||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.Td=!0);this.ss="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.wm=document.getElementById("c2canvasdiv");
this.ba=this.q=this.m=null;this.dk="";this.Ph=!1;this.Vn=this.Wn=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.$a&&(window.c2runtime=this);this.Td&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},require("nw.gui").App.clearCache());this.di&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow",
"visible");this.width=a.width;this.height=a.height;this.L=this.width;this.K=this.height;this.Fh=this.width;this.Eh=this.height;this.rg=window.innerWidth;this.qg=window.innerHeight;this.Ar=!1;this.ha=!0;this.lg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Ea=[];this.Kk={};this.Vb=[];this.Wj={};this.od=[];this.Of=[];this.mj=[];this.zj=[];this.mq=[];this.pe={};this.Bk=this.Sd=!1;this.ud=0;this.Dk=!1;this.Cc=[];this.vd=this.qb=this.xg=this.Si="";this.fh=
this.Ho=!1;this.Lj=this.Fg=this.nd=this.re=0;this.If=1;this.gc=new Ua;this.dd=new Ua;this.li=0;this.Kn=!0;this.xi=this.Rh=this.Xj=this.jh=this.sg=this.ck=0;this.me=null;this.Sj=[];this.Vj=[];this.Mh=-1;this.Pk=[[]];this.Jl=this.si=0;this.ll(null);this.Yf=this.Qn=this.Ig=0;this.gh=[];this.ij=this.Oi=-1;this.lf=!0;this.qi=0;this.kg=!1;this.At=0;this.Re=null;this.gs=!1;this.Ik=0;this.ka=this.$e=this.ml=!1;this.Un=new da;this.Xk=new da;this.Yk=new da;this.gt=[];this.Nc=new Wa([]);this.Dl=new Wa([]);this.Jd=
[];this.Xh={};this.Te={};this.Qe={};this.Nf={};this.pm={};this.sn=this.ni=this.Ub=this.hc=this.rn=this.mi=this.Z=null;this.Lf=this.Ek=!1;this.ek=[null,null];this.ue=0;this.ak="";this.Wd={};this.Yi=this.of=null;this.wi=[];this.ht()}}function f(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function s(a,b,d,c){var m=indexedDB.open("_C2SaveStates");m.onupgradeneeded=f;m.onerror=c;m.onsuccess=function(m){m=m.target.result;m.onerror=c;m.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,
data:b}).onsuccess=d}}function a(a,b,d){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=f;c.onerror=d;c.onsuccess=function(c){c=c.target.result;c.onerror=d;var m=c.transaction(["saves"]).objectStore("saves").get(a);m.onsuccess=function(){m.result?b(m.result.data):b(null)}}}function b(){I("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+="?continuous"}function d(a){var b,d=
{};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof da||a[b]&&"undefined"!==typeof a[b].Su||(d[b]=a[b]);return d}c.prototype.ht=function(){var a=this,b;b=this.ei?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;b.open("GET","data.js",!0);var d=!1;if(!this.da&&"response"in b&&"responseType"in b)try{b.responseType="json",d="json"===b.responseType}catch(c){d=!1}if(!d&&"responseType"in b)try{b.responseType="text"}catch(m){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(e){}b.onload=
function(){if(d)a.Lk(b.response);else if(a.Fc){var c=b.responseText,c=c.substr(c.indexOf("{"));a.Lk(JSON.parse(c))}else a.Lk(JSON.parse(b.responseText))};b.onerror=function(a){ea("Error requesting data.js:");ea(a)};b.send()};c.prototype.ns=function(){var a=this,b,d,c,m,e,l,f,h,q;this.devicePixelRatio=(this.Ae=(!this.da||this.Fc)&&this.Kt&&!this.di)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.fb();d=!(!this.Ar&&(!this.Bj||
this.Td||this.hn||this.ei||this.jg||this.qc||this.cn));0<this.mb&&this.setSize(k(),g(),!0);try{this.Tq&&(this.fc||this.Fc||!this.da)&&(b={alpha:d,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.m=this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(n){}if(this.m){this.da||(this.ab=document.createElement("canvas"),jQuery(this.ab).appendTo(this.canvas.parentNode),this.ab.oncontextmenu=function(){return!1},this.ab.onselectstart=function(){return!1},this.ab.width=
this.Fh,this.ab.height=this.Eh,jQuery(this.ab).css({width:this.Fh+"px",height:this.Eh+"px"}),this.no(),this.fl=this.ab.getContext("2d"));this.q=new cb(this.m,this.Vc);this.q.Bf(this.canvas.width,this.canvas.height);this.q.Dm=0!==this.Rq;this.ba=null;this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.Is();I("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.q.Ym();a.q.Bf(a.q.width,a.q.height,
!0);a.hc=null;a.Ub=null;a.ek[0]=null;a.ek[1]=null;a.Js();a.ha=!0;I("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);b=0;for(d=this.n.length;b<d;b++)for(e=this.n[b],c=0,m=e.H.length;c<m;c++)f=e.H[c],f.bb=this.q.ok(f.id),this.Lf=this.Lf||this.q.Vg(f.bb);b=0;for(d=this.Vb.length;b<d;b++){h=this.Vb[b];c=0;for(m=h.H.length;c<m;c++)f=h.H[c],f.bb=this.q.ok(f.id);c=0;for(m=h.M.length;c<m;c++)for(q=h.M[c],e=0,l=q.H.length;e<l;e++)f=q.H[e],f.bb=this.q.ok(f.id),this.Lf=this.Lf||this.q.Vg(f.bb)}}else{if(0<
this.mb&&this.$a){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ba=AppMobi.canvas.getContext("2d");try{this.ba.samplingMode=this.S?"smooth":"sharp",this.ba.globalScale=1,this.ba.HTML5CompatibilityMode=!0,this.ba.imageSmoothingEnabled=this.S}catch(s){}0!==this.width&&0!==this.height&&(this.ba.width=this.width,this.ba.height=this.height)}this.ba||(b=this.fc?{antialias:!!this.S,alpha:d}:{alpha:d},this.ba=this.canvas.getContext("2d",b),this.ba.webkitImageSmoothingEnabled=
this.S,this.ba.mozImageSmoothingEnabled=this.S,this.ba.msImageSmoothingEnabled=this.S,this.ba.imageSmoothingEnabled=this.S);this.fl=this.ab=null}this.hj=function(){a.Ya(!1)};window==window.top||this.da||this.hn||this.ei||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.fc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&
(I("Reloading for continuous preview"),this.xg="__c2_continuouspreview",this.fh=!0),this.Us&&!this.Vc&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));this.da||(b=function(a){bb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur&&document.activeElement.blur()},window.navigator.pointerEnabled?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?
document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.mb&&this.Ae&&1<this.devicePixelRatio&&this.setSize(this.Va,this.Ua,!0);this.So();this.cs();this.go();this.va={}};c.prototype.setSize=function(a,b,d){var c=0,m=0,e=0,l=0,l=0,f=this.As&&this.en&&!navigator.standalone&&!this.da&&!this.qc;f&&(b+=60);if(this.rg!==a||this.qg!==b||d){this.rg=a;this.qg=b;var h=this.mb,q=(document.mozFullScreen||document.webkitIsFullScreen||
!!document.msFullscreenElement||document.fullScreen||this.kg)&&!this.qc;if(q||0!==this.mb||d)q&&0<this.ue&&(h=this.ue),d=this.devicePixelRatio,4<=h?(e=this.Va/this.Ua,a/b>e?(e*=b,5===h?(l=e*d/this.Va,1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),e=this.Va*l/d,l=this.Ua*l/d,c=(a-e)/2,m=(b-l)/2,a=e,b=l):(c=(a-e)/2,a=e)):(l=a/e,5===h?(l=l*d/this.Ua,1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),e=this.Va*l/d,l=this.Ua*l/d,c=(a-e)/2,m=(b-l)/2,a=e):m=(b-l)/2,b=l),q&&!this.Td&&(m=c=0)):this.Td&&this.kg&&
0===this.Km&&(c=Math.floor((a-this.Va)/2),m=Math.floor((b-this.Ua)/2),a=this.Va,b=this.Ua),2>h&&(this.Qf=d),this.Ae&&this.ln&&1<d&&(1024<=a&&(a=1023),1024<=b&&(b=1023)),this.Fh=Math.round(a),this.Eh=Math.round(b),this.width=Math.round(a*d),this.height=Math.round(b*d),this.ha=!0,this.ep?(this.L=this.width,this.K=this.height,this.oc=!0):this.width<this.Va&&this.height<this.Ua||1===h?(this.L=this.width,this.K=this.height,this.oc=!0):(this.L=this.Va,this.K=this.Ua,this.oc=!1,2===h?(e=this.Va/this.Ua,
h=this.rg/this.qg,h<e?this.L=this.K*h:h>e&&(this.K=this.L/h)):3===h&&(e=this.Va/this.Ua,h=this.rg/this.qg,h>e?this.L=this.K*h:h<e&&(this.K=this.L/h))),this.wm&&!this.da&&(jQuery(this.wm).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(m)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*d),this.canvas.height=Math.round(b*
d),this.Fc?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(m)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.Ae&&!this.da&&jQuery(this.canvas).css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.ab&&(this.ab.width=Math.round(a),this.ab.height=Math.round(b),jQuery(this.ab).css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.q&&this.q.Bf(Math.round(a*d),Math.round(b*d)),this.$a&&this.ba&&(this.ba.width=
Math.round(a),this.ba.height=Math.round(b)),this.ba&&(this.ba.webkitImageSmoothingEnabled=this.S,this.ba.mozImageSmoothingEnabled=this.S,this.ba.msImageSmoothingEnabled=this.S,this.ba.imageSmoothingEnabled=this.S),this.So(),this.da||!f&&!this.Fk||window.setTimeout(function(){window.scrollTo(0,1)},100)}};c.prototype.So=function(){if(this.oq&&0!==this.dl){var a="portrait";2===this.dl&&(a="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):
screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}};c.prototype.Is=function(){this.q.xq();this.Ek=!0;var a,b,d;a=0;for(b=this.n.length;a<b;a++)d=this.n[a],d.yi&&d.yi()};c.prototype.Js=function(){this.Ek=!1;var a,b,d;a=0;for(b=this.n.length;a<b;a++)d=this.n[a],d.Ai&&d.Ai()};c.prototype.no=function(){if(!this.da){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||
document.msFullscreenElement||this.kg)&&!this.qc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.ab).css(a)}};var q=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;c.prototype.setSuspended=function(a){var b;if(a&&!this.lg)for(I("[Construct 2] Suspending"),this.lg=!0,-1!==this.Oi&&q&&q(this.Oi),-1!==this.ij&&clearTimeout(this.ij),a=0,b=this.gh.length;a<
b;a++)this.gh[a](!0);else if(!a&&this.lg){I("[Construct 2] Resuming");this.lg=!1;this.li=T();this.sg=T();a=this.Fg=this.Rh=0;for(b=this.gh.length;a<b;a++)this.gh[a](!1);this.Ya(!1)}};c.prototype.kq=function(a){this.gh.push(a)};c.prototype.Gd=function(a){return this.wi[a]};c.prototype.Lk=function(a){a&&a.project||ea("Project model unavailable");a=a.project;this.name=a[0];this.Jm=a[1];this.mb=a[12];this.Km=a[12];this.Va=a[10];this.Ua=a[11];this.eo=this.Va/2;this.fo=this.Ua/2;this.da&&!this.Fc&&(4<=
a[12]||0===a[12])&&(I("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Km=this.mb=3);this.Pl=a[18];this.zg=a[19];0===this.zg&&(this.of=new Image,this.of.src="loading-logo.png");this.Ig=a[21];this.wi=$b();this.ad=new W(this);var b,d,c,m,e,l,h,f,q;b=0;for(d=a[2].length;b<d;b++)h=a[2][b],c=this.Gd(h[0]),db(h,c.prototype),q=new c(this),q.Wi=h[1],q.Ud=h[2],q.On=h[9],q.la&&q.la(),this.plugins.push(q);this.wi=$b();b=0;for(d=a[3].length;b<
d;b++){h=a[3][b];e=this.Gd(h[1]);q=null;c=0;for(m=this.plugins.length;c<m;c++)if(this.plugins[c]instanceof e){q=this.plugins[c];break}var n=new q.gb(q);n.name=h[0];n.B=h[2];n.Ak=h[3].slice(0);n.Mt=h[3].length;n.pq=h[4];n.Cr=h[5];n.P=h[11];n.B?(n.vi=[],n.pd=this.Yf++,n.pa=null):(n.vi=null,n.pd=-1,n.pa=[]);n.Nh=null;n.We=null;n.Fm=null;n.Gc=!1;n.Ob=null;h[6]?(n.ej=h[6][0],n.fj=h[6][1],n.ih=h[6][2]):(n.ej=null,n.fj=0,n.ih=0);n.Mb=h[7]?h[7]:null;n.index=b;n.c=[];n.Jh=[];n.de=[new eb(n)];n.md=0;n.Sc=null;
n.Dq=0;n.Gf=!0;n.oj=fb;n.Hr=gb;n.Mr=hb;n.ca=ib;n.Wg=jb;n.kl=kb;n.zf=nb;n.Th=ob;n.gk=pb;n.lk=qb;n.gd=rb;n.Pm=sb;n.Tf=new Xa(this.Va,this.Ua);n.rh=!0;n.sh=!1;n.va={};n.toString=tb;n.Ea=[];c=0;for(m=h[8].length;c<m;c++){f=h[8][c];var k=this.Gd(f[1]),s=null;e=0;for(l=this.Ea.length;e<l;e++)if(this.Ea[e]instanceof k){s=this.Ea[e];break}s||(s=new k(this),s.Pn=[],s.sf=new da,s.la&&s.la(),this.Ea.push(s));-1===s.Pn.indexOf(n)&&s.Pn.push(n);e=new s.gb(s,n);e.name=f[0];e.P=f[2];e.la();n.Ea.push(e)}n.global=
h[9];n.Ck=h[10];n.H=[];c=0;for(m=h[12].length;c<m;c++)n.H.push({id:h[12][c][0],name:h[12][c][1],bb:-1,Ra:!0,index:c});n.hv=h[13];this.Pl&&!n.B&&!n.Ck&&q.Ud||n.la();n.name&&(this.types[n.name]=n);this.n.push(n);q.Wi&&(c=new q.Ca(n),c.uid=this.Ig++,c.qo=this.Qn++,c.ye=0,c.cg=ub,c.toString=vb,c.qa=h[14],c.la(),n.c.push(c),this.Wd[c.uid.toString()]=c)}b=0;for(d=a[4].length;b<d;b++)for(e=a[4][b],l=this.n[e[0]],c=1,m=e.length;c<m;c++)h=this.n[e[c]],h.pa.push(l),l.vi.push(h);b=0;for(d=a[27].length;b<d;b++){e=
a[27][b];l=[];c=0;for(m=e.length;c<m;c++)l.push(this.n[e[c]]);c=0;for(m=l.length;c<m;c++)l[c].Gc=!0,l[c].Ob=l}if(0<this.Yf)for(b=0,d=this.n.length;b<d;b++)if(h=this.n[b],!h.B&&h.pa.length){h.Nh=Array(this.Yf);h.We=Array(this.Yf);h.Fm=Array(this.Yf);n=[];c=s=k=f=0;for(m=h.pa.length;c<m;c++)for(q=h.pa[c],h.Nh[q.pd]=f,f+=q.Mt,h.We[q.pd]=k,k+=q.pq,h.Fm[q.pd]=s,s+=q.Cr,e=0,l=q.H.length;e<l;e++)n.push(sa({},q.H[e]));h.H=n.concat(h.H);c=0;for(m=h.H.length;c<m;c++)h.H[c].index=c}b=0;for(d=a[5].length;b<d;b++)h=
a[5][b],c=new wb(this,h),this.Kk[c.name]=c,this.Vb.push(c);b=0;for(d=a[6].length;b<d;b++)h=a[6][b],c=new xb(this,h),this.Wj[c.name]=c,this.od.push(c);b=0;for(d=this.od.length;b<d;b++)this.od[b].za();b=0;for(d=this.od.length;b<d;b++)this.od[b].Ll();b=0;for(d=this.mj.length;b<d;b++)this.mj[b].za();this.mj.length=0;this.nq=a[7];this.ak=a[8];this.Yc=a[9];this.Qf=1;this.Tq=a[13];this.S=a[14];this.Bj=a[15];this.Kt=a[17];this.dl=a[20];this.oq=0<this.dl;this.Us=a[22];this.oc=this.ep=a[23];this.Rq=a[24];this.$s=
a[25];this.aj=Date.now();this.wi.length=0;this.ns()};var e=!1;c.prototype.Tl=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){e=a.rm=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.Fc?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(b){a.src=b},function(d){e=a.rm=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",d)}):a.src=b);this.Of.push(a)};c.prototype.wr=function(a){var b,d;b=0;for(d=
this.Of.length;b<d;b++)if(this.Of[b].zq===a)return this.Of[b];return null};var u=0,h=!1;c.prototype.cs=function(){this.Re&&(u=this.Re.xt(this.nq))};c.prototype.om=function(){var a=u,b=0,d=0,c=!0,m,e,d=0;for(m=this.Of.length;d<m;d++){e=this.Of[d];var l=e.Mj;if(!l||0>=l)l=5E4;a+=l;e.src&&(e.complete||e.loaded)&&!e.rm?b+=l:c=!1}c&&this.$s&&this.Re&&(h||(this.Re.Bt(),h=!0),d=this.Re.Nr(),b+=d,d<u&&(c=!1));this.Je=0==a?0:b/a;return c};c.prototype.go=function(){if(this.ba||this.q){var a=this.ba||this.fl;
this.ab&&this.no();this.Je=0;this.qn=-1;if(this.om())this.ds();else{var b=Date.now()-this.aj;if(a){var d=this.width,c=this.height,m=this.devicePixelRatio;this.ab&&(d=this.Fh,c=this.Eh,m=1);if(3!==this.zg&&(this.fc||500<=b&&this.qn!=this.Je)){a.clearRect(0,0,d,c);var b=d/2,c=c/2,d=0===this.zg&&this.of.complete,l=40*m,h=0,n=80*m,f;d&&(n=this.of.width*m,f=this.of.height*m,l=n/2,h=f/2,a.drawImage(this.of,O(b-l),O(c-h),n,f));1>=this.zg?(b=O(b-l)+.5,c=O(c+(h+(d?12*m:0)))+.5,a.fillStyle=e?"red":"DodgerBlue",
a.fillRect(b,c,Math.floor(n*this.Je),6*m),a.strokeStyle="black",a.strokeRect(b,c,n,6*m),a.strokeStyle="white",a.strokeRect(b-1*m,c-1*m,n+2*m,8*m)):2===this.zg&&(a.font=this.Fc?"12pt ArialMT":"12pt Arial",a.fillStyle=e?"#f00":"#999",a.gv="middle",m=Math.round(100*this.Je)+"%",d=a.measureText?a.measureText(m):null,a.fillText(m,b-(d?d.width:0)/2,c))}this.qn=this.Je}setTimeout(function(a){return function(){a.go()}}(this),this.fc?10:100)}}};c.prototype.ds=function(){this.ab&&(this.canvas.parentNode.removeChild(this.ab),
this.ab=this.fl=null);this.aj=Date.now();this.sg=T();var a,b,d;if(this.Pl)for(a=0,b=this.n.length;a<b;a++)d=this.n[a],d.B||d.Ck||!d.ya.Ud||d.la();else this.lf=!1;a=0;for(b=this.Vb.length;a<b;a++)this.Vb[a].Aq();2<=this.mb&&(a=this.Va/this.Ua,b=this.width/this.height,this.Qf=2!==this.mb&&b>a||2===this.mb&&b<a?this.height/this.Ua:this.width/this.Va);this.Jm?this.Kk[this.Jm].Bl():this.Vb[0].Bl();this.Pl||(this.qi=1,this.trigger(W.prototype.j.Yl,null));navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();a=0;for(b=this.n.length;a<b;a++)d=this.n[a],d.Hs&&d.Hs();this.Ya(!1);this.$a&&AppMobi.webview.execute("onGameReady();")};var y=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;c.prototype.Ya=function(a){if(this.Z){var b=T();if(this.gs&&this.ml&&29>b-this.Ik)this.ml=!1,this.Ik=b,y?this.Oi=y(this.hj,this.canvas):this.ij=setTimeout(this.hj,this.Vc?1:16);else{this.ml=
!0;this.Ik=b;var d=this.mb,c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.qc;(c||this.kg)&&0<this.ue&&(d=this.ue);0<d&&(!this.ii||window.self!==window.top)&&(d=window.innerHeight,this.rg===window.innerWidth&&this.qg===d||this.setSize(k(),g()));this.da||(c?(this.Ph||(this.dk=jQuery(this.canvas).css("margin")||"0",this.Ph=!0),this.ig||this.Td||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.Ph?(this.ig||this.Td||jQuery(this.canvas).css("margin",this.dk),this.dk="",this.Ph=!1,0===this.mb&&this.setSize(Math.round(this.Wn/this.devicePixelRatio),Math.round(this.Vn/this.devicePixelRatio),!0)):(this.Wn=this.width,this.Vn=this.height));this.lf&&(c=this.om(),this.qi=this.Je,c&&(this.lf=!1,this.Je=1,this.trigger(W.prototype.j.Yl,null)));this.Ds();!this.ha&&!this.fc||this.Ek||this.fh||a||(this.ha=
!1,this.q?this.Qb():this.Dc(),this.Yi&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.Yi[0],this.Yi[1]),this.trigger(W.prototype.j.Bp,null)),this.Yi=null));this.Zu||(this.jh++,this.Xj++,this.Rh++);this.Fg+=T()-b;this.lg||a||(y?this.Oi=y(this.hj,this.canvas):this.ij=setTimeout(this.hj,this.Vc?1:16))}}};c.prototype.Ds=function(){var a,b,d,c,m,e,l,h,n;a=T();1E3<=a-this.sg&&(this.sg+=1E3,this.ck=this.Rh,this.Rh=0,this.Lj=this.Fg,this.Fg=0);this.Kn&&(0!==this.li&&(b=a-this.li,0!==b||
this.ss?(this.nd=b/1E3,.5<this.nd?this.nd=0:.1<this.nd&&(this.nd=.1)):(10<=this.iv&&(this.Kn=!1),this.nd=1/60)),this.li=a);this.re=this.nd*this.If;this.gc.add(this.re);this.dd.add(this.nd);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.kg)&&!this.qc;2<=this.mb||a&&0<this.ue?(b=this.Va/this.Ua,d=this.width/this.height,c=this.mb,a&&0<this.ue&&(c=this.ue),this.Qf=2!==c&&d>b||2===c&&d<b?this.height/this.Ua:this.width/this.Va,this.Z&&(this.Z.xo(this.Z.scrollX),
this.Z.yo(this.Z.scrollY))):this.Qf=this.Ae?this.devicePixelRatio:1;this.fb();this.ud++;this.ad.kt();this.ud--;this.fb();this.ud++;d=this.Un.Pc();a=0;for(b=d.length;a<b;a++)d[a].av();a=0;for(b=this.n.length;a<b;a++)if(l=this.n[a],!l.B&&(l.Ea.length||l.pa.length))for(d=0,c=l.c.length;d<c;d++)for(h=l.c[d],m=0,e=h.G.length;m<e;m++)h.G[m].Ya();a=0;for(b=this.n.length;a<b;a++)if(l=this.n[a],!l.B&&(l.Ea.length||l.pa.length))for(d=0,c=l.c.length;d<c;d++)for(h=l.c[d],m=0,e=h.G.length;m<e;m++)n=h.G[m],n.Zs&&
n.Zs();d=this.Xk.Pc();a=0;for(b=d.length;a<b;a++)d[a].Ya();this.ud--;this.hs();for(a=0;this.me&&10>a++;)this.Am(this.me);a=0;for(b=this.od.length;a<b;a++)this.od[a].uk=!1;this.Z.se&&this.Z.se.La();this.gt.length=0;this.ud++;a=0;for(b=this.n.length;a<b;a++)if(l=this.n[a],!l.B&&(l.Ea.length||l.pa.length))for(d=0,c=l.c.length;d<c;d++)for(h=l.c[d],m=0,e=h.G.length;m<e;m++)n=h.G[m],n.Fl&&n.Fl();d=this.Yk.Pc();a=0;for(b=d.length;a<b;a++)d[a].Fl();this.ud--};c.prototype.Am=function(a){var b=this.Z;this.Z.Ct();
var d,c,m,e,l,h,n;if(this.q)for(d=0,c=this.n.length;d<c;d++)l=this.n[d],l.B||!l.nj||l.global&&0!==l.c.length||-1!==a.gg.indexOf(l)||l.nj();b==a&&(this.ad.Kb.length=0);a.Bl();d=0;for(c=this.n.length;d<c;d++)if(l=this.n[d],l.global||l.ya.Wi)for(a=0,b=l.c.length;a<b;a++)if(h=l.c[a],h.cl&&h.cl(),h.G)for(m=0,e=h.G.length;m<e;m++)n=h.G[m],n.cl&&n.cl();this.ha=!0;this.fb()};c.prototype.Gl=function(a){this.Xk.add(a)};c.prototype.Et=function(a){this.Yk.add(a)};c.prototype.jk=function(a){return a&&-1!==a.Hg?
this.nd*a.Hg:this.re};c.prototype.Dc=function(){this.Z.Dc(this.ba);this.$a&&this.ba.present()};c.prototype.Qb=function(){this.Z.Qb(this.q);this.q.bt()};c.prototype.iq=function(a){a&&this.Sj.push(a)};c.prototype.Vh=function(a){a=a.toString();return this.Wd.hasOwnProperty(a)?this.Wd[a]:null};var l=[];c.prototype.Fd=function(a){var b,d;b=a.type.name;var c=null;if(this.pe.hasOwnProperty(b)){if(c=this.pe[b],c.contains(a))return}else c=l.length?l.pop():new da,this.pe[b]=c;c.add(a);this.Sd=!0;if(a.Gc)for(b=
0,d=a.siblings.length;b<d;b++)this.Fd(a.siblings[b]);this.Bk&&c.Mf.push(a);this.ud++;this.trigger(Object.getPrototypeOf(a.type.ya).j.Dp,a);this.ud--};c.prototype.fb=function(){if(this.Sd){var a,b,d,c,m,l;this.Bk=!0;d=0;for(m=this.Cc.length;d<m;++d)for(a=this.Cc[d],b=a.type,b.c.push(a),c=0,l=b.pa.length;c<l;++c)b.pa[c].c.push(a),b.pa[c].Gf=!0;this.Cc.length=0;this.sp();Qa(this.pe);this.Sd=this.Bk=!1}};c.prototype.sp=function(){for(var a in this.pe)this.pe.hasOwnProperty(a)&&this.ip(this.pe[a])};c.prototype.ip=
function(a){var b=a.Pc(),d=b[0].type,c,m,e,h,n,f;Ta(d.c,a);d.Gf=!0;0===d.c.length&&(d.sh=!1);c=0;for(m=d.pa.length;c<m;++c)f=d.pa[c],Ta(f.c,a),f.Gf=!0;c=0;for(m=this.ad.Kb.length;c<m;++c)if(n=this.ad.Kb[c],n.sb.hasOwnProperty(d.index)&&Ta(n.sb[d.index].td,a),!d.B)for(e=0,h=d.pa.length;e<h;++e)f=d.pa[e],n.sb.hasOwnProperty(f.index)&&Ta(n.sb[f.index].td,a);(c=b[0].d)&&Ta(c.c,a);for(c=0;c<b.length;++c)this.hp(b[c],d);a.clear();l.push(a);this.ha=!0};c.prototype.hp=function(a,b){var d,c,m;d=0;for(c=this.Sj.length;d<
c;++d)this.Sj[d](a);a.Nd&&b.Tf.update(a,a.Nd,null);if(d=a.d)ya(d.c,a),d.$b=!0;if(a.G)for(d=0,c=a.G.length;d<c;++d)m=a.G[d],m.Kg&&m.Kg(),m.behavior.sf.remove(a);this.Un.remove(a);this.Xk.remove(a);this.Yk.remove(a);a.Kg&&a.Kg();this.Wd.hasOwnProperty(a.uid.toString())&&delete this.Wd[a.uid.toString()];this.xi--;100>b.Jh.length&&b.Jh.push(a)};var A=[];c.prototype.oe=function(a,b,d,c,m,l){var e,h,n,f;if(!a)return null;var q=this.n[a[1]],k=q.ya.Ud;if(this.lf&&k&&!q.Ck||k&&!this.q&&11===a[0][11])return null;
var s=b;k||(b=null);var g;q.Jh.length?(g=q.Jh.pop(),g.Lc=!0,q.ya.Ca.call(g,q)):(g=new q.ya.Ca(q),g.Lc=!1);g.uid=d&&!l?a[2]:this.Ig++;this.Wd[g.uid.toString()]=g;g.qo=this.Qn++;g.ye=q.c.length;e=0;for(h=this.Cc.length;e<h;++e)this.Cc[e].type===q&&g.ye++;g.cg=ub;n=a[3];if(g.Lc)Qa(g.va);else{g.va={};if("undefined"!==typeof cr_is_preview)for(g.an=[],g.an.length=n.length,e=0,h=n.length;e<h;e++)g.an[e]=n[e][1];g.Ia=[];g.Ia.length=n.length}e=0;for(h=n.length;e<h;e++)g.Ia[e]=n[e][0];if(k){var u=a[0];g.x=
fa(c)?u[0]:c;g.y=fa(m)?u[1]:m;g.z=u[2];g.width=u[3];g.height=u[4];g.depth=u[5];g.e=u[6];g.opacity=u[7];g.Bb=u[8];g.Cb=u[9];g.tb=u[10];e=u[11];!this.q&&q.H.length&&(g.tb=e);g.Uf=Ya(g.tb);this.m&&Za(g,g.tb,this.m);if(g.Lc){e=0;for(h=u[12].length;e<h;e++)for(n=0,f=u[12][e].length;n<f;n++)g.ua[e][n]=u[12][e][n];g.Da.set(0,0,0,0);g.Nd.set(0,0,-1,-1);g.Nb.Df(g.Da);g.Fj.length=0}else{g.ua=u[12].slice(0);e=0;for(h=g.ua.length;e<h;e++)g.ua[e]=u[12][e].slice(0);g.U=[];g.Hd=[];g.Hd.length=q.H.length;g.Da=new qa(0,
0,0,0);g.Nd=new qa(0,0,-1,-1);g.Nb=new ra;g.Fj=[];g.Aa=yb;g.lq=zb;g.lb=Ab;g.Ba=Bb;g.Ol=Cb;g.Sb=Db}g.kh=!1;g.Ht=0;g.Gt=0;g.Ft=null;14===u.length&&(g.kh=!0,g.Ht=u[13][0],g.Gt=u[13][1],g.Ft=u[13][2]);e=0;for(h=q.H.length;e<h;e++)g.Hd[e]=!0;g.Ed=Eb;g.Ed();g.cp=!!g.U.length;g.xh=!0;g.Hj=!0;q.rh=!0;g.visible=!0;g.Hg=-1;g.d=b;g.Me=b.c.length;"undefined"===typeof g.W&&(g.W=null);this.ha=g.Bc=!0}g.toString=vb;var z;e=A.length=0;for(h=q.pa.length;e<h;e++)A.push.apply(A,q.pa[e].Ea);A.push.apply(A,q.Ea);if(g.Lc)for(e=
0,h=A.length;e<h;e++){var y=A[e];z=g.G[e];z.Lc=!0;y.behavior.Ca.call(z,y,g);u=a[4][e];n=0;for(f=u.length;n<f;n++)z.qa[n]=u[n];z.la();y.behavior.sf.add(g)}else for(g.G=[],e=0,h=A.length;e<h;e++)y=A[e],z=new y.behavior.Ca(y,g),z.Lc=!1,z.qa=a[4][e].slice(0),z.la(),g.G.push(z),y.behavior.sf.add(g);u=a[5];if(g.Lc)for(e=0,h=u.length;e<h;e++)g.qa[e]=u[e];else g.qa=u.slice(0);this.Cc.push(g);this.Sd=!0;b&&(b.c.push(g),1!==b.Fb||1!==b.Gb)&&(q.sh=!0);this.xi++;if(q.Gc){if(g.Gc=!0,g.Lc?g.siblings.length=0:g.siblings=
[],!d&&!l){e=0;for(h=q.Ob.length;e<h;e++)if(q.Ob[e]!==q){if(!q.Ob[e].Sc)return null;g.siblings.push(this.oe(q.Ob[e].Sc,s,!1,k?g.x:c,k?g.y:m,!0))}e=0;for(h=g.siblings.length;e<h;e++)for(g.siblings[e].siblings.push(g),n=0;n<h;n++)e!==n&&g.siblings[e].siblings.push(g.siblings[n])}}else g.Gc=!1,g.siblings=null;g.la();e=0;for(h=g.G.length;e<h;e++)g.G[e].Ys&&g.G[e].Ys();return g};c.prototype.ag=function(a){var b,d;b=0;for(d=this.Z.M.length;b<d;b++){var c=this.Z.M[b];if(ab(c.name,a))return c}return null};
c.prototype.rd=function(a){a=O(a);0>a&&(a=0);a>=this.Z.M.length&&(a=this.Z.M.length-1);return this.Z.M[a]};c.prototype.Kj=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].ca().ja=!0};c.prototype.Wg=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].Wg()};c.prototype.kl=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].kl()};c.prototype.zf=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].zf()};c.prototype.Yo=function(a){if(a.rh){var b,d,c=a.c;b=0;for(d=c.length;b<d;++b)c[b].Ol();c=this.Cc;
b=0;for(d=c.length;b<d;++b)c[b].type===a&&c[b].Ol();a.rh=!1}};c.prototype.Gr=function(a,b,d,c){var m,e,l=a?1!==a.Fb||1!==a.Gb:!1;if(b.B)for(a=0,m=b.vi.length;a<m;++a)e=b.vi[a],l||e.sh?va(c,e.c):(this.Yo(e),e.Tf.ro(d,c));else l||b.sh?va(c,b.c):(this.Yo(b),b.Tf.ro(d,c))};c.prototype.Hf=function(a,b,d,c){var m=a.ca(),e,l,h,n,f,q;if(m.ja)for(c||(m.ja=!1,m.c.length=0),e=0,n=a.c.length;e<n;e++){if(h=a.c[e],h.Ba(),f=h.d.na(b,d,!0),q=h.d.na(b,d,!1),h.lb(f,q)){if(c)return!1;m.c.push(h)}}else{e=l=0;for(n=m.c.length;e<
n;e++)if(h=m.c[e],h.Ba(),f=h.d.na(b,d,!0),q=h.d.na(b,d,!1),h.lb(f,q)){if(c)return!1;m.c[l]=m.c[e];l++}c||(m.c.length=l)}a.gd();return c?!0:m.tk()};c.prototype.Dt=function(a,b){if(!(a&&b&&a!==b&&a.Bc&&b.Bc))return!1;a.Ba();b.Ba();var d=a.d,c=b.d,m,e,l,h,n,f,q,g;if(d===c||d.Fb===c.Fb&&c.Gb===c.Gb&&d.scale===c.scale&&d.e===c.e&&d.kb===c.kb){if(!a.Da.ps(b.Da)||!a.Nb.bn(b.Nb)||a.kh&&b.kh)return!1;if(a.kh)return this.Mo(a,b);if(b.kh)return this.Mo(b,a);q=a.W&&!a.W.hf();m=b.W&&!b.W.hf();if(!q&&!m)return!0;
q?(a.W.Se(a.width,a.height,a.e),q=a.W):(this.Nc.Cf(a.Nb,a.x,a.y,a.width,a.height),q=this.Nc);m?(b.W.Se(b.width,b.height,b.e),g=b.W):(this.Nc.Cf(b.Nb,b.x,b.y,b.width,b.height),g=this.Nc);return q.hg(g,b.x-a.x,b.y-a.y)}q=a.W&&!a.W.hf();m=b.W&&!b.W.hf();q?(a.W.Se(a.width,a.height,a.e),this.Nc.Co(a.W)):this.Nc.Cf(a.Nb,a.x,a.y,a.width,a.height);q=this.Nc;m?(b.W.Se(b.width,b.height,b.e),this.Dl.Co(b.W)):this.Dl.Cf(b.Nb,b.x,b.y,b.width,b.height);g=this.Dl;m=0;for(e=q.Kc;m<e;m++)l=2*m,h=l+1,n=q.Ja[l],f=q.Ja[h],
q.Ja[l]=d.ob(n+a.x,f+a.y,!0),q.Ja[h]=d.ob(n+a.x,f+a.y,!1);q.Ba();m=0;for(e=g.Kc;m<e;m++)l=2*m,h=l+1,n=g.Ja[l],f=g.Ja[h],g.Ja[l]=c.ob(n+b.x,f+b.y,!0),g.Ja[h]=c.ob(n+b.x,f+b.y,!1);g.Ba();return q.hg(g,0,0)};var z=new ra;new qa(0,0,0,0);var m=[];c.prototype.Mo=function(a,b){var d,c,e,l,h=b.Da,n=a.x,f=a.y;a.Vu(h,m);var q=b.W&&!b.W.hf();d=0;for(c=m.length;d<c;++d)if(e=m[d],l=e.bv,h.qs(l,n,f)&&(z.Df(l),z.offset(n,f),z.bn(b.Nb)))if(q)if(b.W.Se(b.width,b.height,b.e),e.il){if(e.il.hg(b.W,b.x-(n+l.left),b.y-
(f+l.top)))return m.length=0,!0}else{if(this.Nc.Cf(z,0,0,l.right-l.left,l.bottom-l.top),this.Nc.hg(b.W,b.x,b.y))return m.length=0,!0}else if(e.il){if(this.Nc.Cf(b.Nb,0,0,b.width,b.height),e.il.hg(this.Nc,-(n+l.left),-(f+l.top)))return m.length=0,!0}else return m.length=0,!0;m.length=0;return!1};c.prototype.To=function(a,b){if(!b)return!1;var d,c,m,e,l;d=0;for(c=a.Ea.length;d<c;d++)if(a.Ea[d].behavior instanceof b)return!0;if(!a.B)for(d=0,c=a.pa.length;d<c;d++)for(l=a.pa[d],m=0,e=l.Ea.length;m<e;m++)if(l.Ea[m].behavior instanceof
b)return!0;return!1};c.prototype.Uo=function(a){return this.To(a,Sb.pu)};c.prototype.Kl=function(a){return this.To(a,Sb.qu)};var n=-1;c.prototype.trigger=function(a,b,d){if(!this.Z)return!1;var c=this.Z.se;if(!c)return!1;var m=!1,e,l,h;n++;var f=c.Qj;l=0;for(h=f.length;l<h;++l)e=this.Qo(a,b,f[l],d),m=m||e;e=this.Qo(a,b,c,d);n--;return m||e};c.prototype.Qo=function(a,b,d,c){var m=!1,e,l,h,n;if(b)for(h=this.Il(a,b,b.type.name,d,c),m=m||h,n=b.type.pa,e=0,l=n.length;e<l;++e)h=this.Il(a,b,n[e].name,d,
c),m=m||h;else h=this.Il(a,b,"system",d,c),m=m||h;return m};c.prototype.Il=function(a,b,d,c,m){var e,l=!1,h=!1,h="undefined"!==typeof m,n=(h?c.Hm:c.Ro)[d];if(!n)return l;var f=null;c=0;for(e=n.length;c<e;++c)if(n[c].method==a){f=n[c].Xf;break}if(!f)return l;a=h?f[m]:f;if(!a)return null;c=0;for(e=a.length;c<e;c++)m=a[c][0],h=a[c][1],h=this.tr(b,d,m,h),l=l||h;return l};c.prototype.tr=function(a,b,d,c){var m,e,l=!1;this.Jl++;var h=this.nb().Pb;h&&this.Wg(h.ae);var f=1<this.Jl;this.Wg(d.ae);f&&this.dt();
var q=this.ll(d);q.Pb=d;a&&(m=this.types[b].ca(),m.ja=!1,m.c.length=1,m.c[0]=a,this.types[b].gd());a=!0;if(d.parent){b=q.Lo;for(m=d.parent;m;)b.push(m),m=m.parent;b.reverse();m=0;for(e=b.length;m<e;m++)if(!b[m].mt()){a=!1;break}}a&&(this.Xj++,d.Ic?d.lt(c):d.La(),l=l||q.Ee);this.mo();f&&this.Xs();this.zf(d.ae);h&&this.zf(h.ae);this.Sd&&0===this.ud&&0===n&&!this.Dk&&this.fb();this.Jl--;return l};c.prototype.ik=function(){var a=this.nb();return a.Pb.hb[a.zb]};c.prototype.dt=function(){this.si++;this.si>=
this.Pk.length&&this.Pk.push([])};c.prototype.Xs=function(){this.si--};c.prototype.Nm=function(){return this.Pk[this.si]};c.prototype.ll=function(a){this.Mh++;this.Mh>=this.Vj.length&&this.Vj.push(new Fb);var b=this.nb();b.reset(a);return b};c.prototype.mo=function(){this.Mh--};c.prototype.nb=function(){return this.Vj[this.Mh]};c.prototype.Om=function(a,b){for(var d,c,m,e,l,h;b;){d=0;for(c=b.xc.length;d<c;d++)if(h=b.xc[d],h instanceof Gb&&ab(a,h.name))return h;b=b.parent}d=0;for(c=this.od.length;d<
c;d++)for(l=this.od[d],m=0,e=l.Rd.length;m<e;m++)if(h=l.Rd[m],h instanceof Gb&&ab(a,h.name))return h;return null};c.prototype.Qm=function(a){var b,d;b=0;for(d=this.Vb.length;b<d;b++)if(this.Vb[b].P===a)return this.Vb[b];return null};c.prototype.Wh=function(a){var b,d;b=0;for(d=this.n.length;b<d;b++)if(this.n[b].P===a)return this.n[b];return null};c.prototype.Ir=function(a){var b,d;b=0;for(d=this.Jd.length;b<d;b++)if(this.Jd[b].P===a)return this.Jd[b];return null};c.prototype.hs=function(){var d=this,
c=this.Si,m=this.vd,e=this.xg,l=!1;this.Ho&&(l=!0,c="__c2_continuouspreview",this.Ho=!1);if(c.length){this.fb();m=this.qt();if(window.indexedDB&&!this.fc)s(c,m,function(){I("Saved state to IndexedDB storage ("+m.length+" bytes)");d.vd=m;d.trigger(W.prototype.j.wj,null);d.vd="";l&&b()},function(a){try{localStorage.setItem("__c2save_"+c,m),I("Saved state to WebStorage ("+m.length+" bytes)"),d.vd=m,d.trigger(W.prototype.j.wj,null),d.vd="",l&&b()}catch(e){I("Failed to save game state: "+a+"; "+e)}});
else try{localStorage.setItem("__c2save_"+c,m),I("Saved state to WebStorage ("+m.length+" bytes)"),d.vd=m,this.trigger(W.prototype.j.wj,null),d.vd="",l&&b()}catch(h){I("Error saving to WebStorage: "+h)}this.qb=this.xg=this.Si=""}e.length&&(window.indexedDB&&!this.fc?a(e,function(a){a?(d.qb=a,I("Loaded state from IndexedDB storage ("+d.qb.length+" bytes)")):(d.qb=localStorage.getItem("__c2save_"+e)||"",I("Loaded state from WebStorage ("+d.qb.length+" bytes)"));d.fh=!1;d.qb.length||d.trigger(W.prototype.j.uj,
null)},function(){d.qb=localStorage.getItem("__c2save_"+e)||"";I("Loaded state from WebStorage ("+d.qb.length+" bytes)");d.fh=!1;d.qb.length||d.trigger(W.prototype.j.uj,null)}):(this.qb=localStorage.getItem("__c2save_"+e)||"",I("Loaded state from WebStorage ("+this.qb.length+" bytes)"),this.fh=!1,d.qb.length||d.trigger(W.prototype.j.uj,null)),this.Si=this.xg="");this.qb.length&&(this.fb(),this.Cs(this.qb),this.vd=this.qb,this.trigger(W.prototype.j.Pp,null),this.qb=this.vd="")};c.prototype.qt=function(){var a,
b,c,m,e,l,h,n={c2save:!0,version:1,rt:{time:this.gc.aa,walltime:this.dd.aa,timescale:this.If,tickcount:this.jh,execcount:this.Xj,next_uid:this.Ig,running_layout:this.Z.P,start_time_offset:Date.now()-this.aj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(b=this.n.length;a<b;a++)if(e=this.n[a],!e.B&&!this.Uo(e)){l={instances:[]};Pa(e.va)&&(l.ex=d(e.va));c=0;for(m=e.c.length;c<m;c++)l.instances.push(this.ul(e.c[c]));n.types[e.P.toString()]=l}a=0;for(b=this.Vb.length;a<b;a++)c=
this.Vb[a],n.layouts[c.P.toString()]=c.Xb();m=n.events.groups;a=0;for(b=this.Jd.length;a<b;a++)c=this.Jd[a],m[c.P.toString()]=this.Xh[c.dg].Ye;b=n.events.cnds;for(h in this.Te)this.Te.hasOwnProperty(h)&&(a=this.Te[h],Pa(a.va)&&(b[h]={ex:d(a.va)}));b=n.events.acts;for(h in this.Qe)this.Qe.hasOwnProperty(h)&&(a=this.Qe[h],Pa(a.va)&&(b[h]={ex:a.va}));b=n.events.vars;for(h in this.Nf)this.Nf.hasOwnProperty(h)&&(a=this.Nf[h],a.fi||a.parent&&!a.ng||(b[h]=a.data));n.system=this.ad.Xb();return JSON.stringify(n)};
c.prototype.so=function(){var a,b,d,c,m,e;this.Wd={};a=0;for(b=this.n.length;a<b;a++)if(d=this.n[a],!d.B)for(c=0,m=d.c.length;c<m;c++)e=d.c[c],this.Wd[e.uid.toString()]=e};c.prototype.Cs=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.gc.reset();this.gc.aa=b.time;this.dd.reset();this.dd.aa=b.walltime||0;this.If=b.timescale;this.jh=b.tickcount;this.aj=Date.now()-b.start_time_offset;var d=b.running_layout;if(d!==this.Z.P)if(d=this.Qm(d))this.Am(d);else return;var c,m,e,l,h,
n,f;n=a.types;for(m in n)if(n.hasOwnProperty(m)&&(l=this.Wh(parseInt(m,10)))&&!l.B&&!this.Uo(l)){n[m].ex?l.va=n[m].ex:Qa(l.va);h=l.c;e=n[m].instances;d=0;for(c=ma(h.length,e.length);d<c;d++)this.oi(h[d],e[d]);d=e.length;for(c=h.length;d<c;d++)this.Fd(h[d]);d=h.length;for(c=e.length;d<c;d++){h=null;if(l.ya.Ud&&(h=this.Z.Uh(e[d].w.l),!h))continue;h=this.oe(l.Sc,h,!1,0,0,!0);this.oi(h,e[d])}l.Gf=!0}this.fb();this.so();c=a.layouts;for(m in c)c.hasOwnProperty(m)&&(d=this.Qm(parseInt(m,10)))&&d.tc(c[m]);
c=a.events.groups;for(m in c)c.hasOwnProperty(m)&&(d=this.Ir(parseInt(m,10)))&&this.Xh[d.dg]&&(this.Xh[d.dg].Ye=c[m]);d=a.events.cnds;for(m in d)d.hasOwnProperty(m)&&this.Te.hasOwnProperty(m)&&(this.Te[m].va=d[m].ex);d=a.events.acts;for(m in d)d.hasOwnProperty(m)&&this.Qe.hasOwnProperty(m)&&(this.Qe[m].va=d[m].ex);d=a.events.vars;for(m in d)d.hasOwnProperty(m)&&this.Nf.hasOwnProperty(m)&&(this.Nf[m].data=d[m]);this.Ig=b.next_uid;this.ad.tc(a.system);d=0;for(c=this.n.length;d<c;d++)if(l=this.n[d],
!l.B)for(m=0,a=l.c.length;m<a;m++){h=l.c[m];if(l.Gc)for(n=h.cg(),b=h.siblings.length=0,e=l.Ob.length;b<e;b++)f=l.Ob[b],l!==f&&h.siblings.push(f.c[n]);h.ed&&h.ed();if(h.G)for(b=0,e=h.G.length;b<e;b++)n=h.G[b],n.ed&&n.ed()}this.ha=!0}};c.prototype.ul=function(a,b){var c,m,e,l,h;l=a.type;e=l.ya;var n={};b?n.c2=!0:n.uid=a.uid;Pa(a.va)&&(n.ex=d(a.va));if(a.Ia&&a.Ia.length)for(n.ivs={},c=0,m=a.Ia.length;c<m;c++)n.ivs[a.type.Ak[c].toString()]=a.Ia[c];if(e.Ud){e={x:a.x,y:a.y,w:a.width,h:a.height,l:a.d.P,
zi:a.Sb()};0!==a.e&&(e.a=a.e);1!==a.opacity&&(e.o=a.opacity);.5!==a.Bb&&(e.hX=a.Bb);.5!==a.Cb&&(e.hY=a.Cb);0!==a.tb&&(e.bm=a.tb);a.visible||(e.v=a.visible);a.Bc||(e.ce=a.Bc);-1!==a.Hg&&(e.mts=a.Hg);if(l.H.length)for(e.fx=[],c=0,m=l.H.length;c<m;c++)h=l.H[c],e.fx.push({name:h.name,active:a.Hd[h.index],params:a.ua[h.index]});n.w=e}if(a.G&&a.G.length)for(n.behs={},c=0,m=a.G.length;c<m;c++)l=a.G[c],l.Xb&&(n.behs[l.type.P.toString()]=l.Xb());a.Xb&&(n.data=a.Xb());return n};c.prototype.Kr=function(a,b){var d,
c;d=0;for(c=a.Ak.length;d<c;d++)if(a.Ak[d]===b)return d;return-1};c.prototype.Fr=function(a,b){var d,c;d=0;for(c=a.G.length;d<c;d++)if(a.G[d].type.P===b)return d;return-1};c.prototype.oi=function(a,b,d){var c,m,e,l,h;h=a.type;e=h.ya;if(d){if(!b.c2)return}else a.uid=b.uid;b.ex?a.va=b.ex:Qa(a.va);if(m=b.ivs)for(c in m)m.hasOwnProperty(c)&&(d=this.Kr(h,parseInt(c,10)),0>d||d>=a.Ia.length||(a.Ia[d]=m[c]));if(e.Ud){e=b.w;a.d.P!==e.l&&(d=a.d,a.d=this.Z.Uh(e.l),a.d?(a.d.c.push(a),a.d.$b=!0,ya(d.c,a),d.$b=
!0):(a.d=d,this.Fd(a)));a.x=e.x;a.y=e.y;a.width=e.w;a.height=e.h;a.Me=e.zi;a.e=e.hasOwnProperty("a")?e.a:0;a.opacity=e.hasOwnProperty("o")?e.o:1;a.Bb=e.hasOwnProperty("hX")?e.hX:.5;a.Cb=e.hasOwnProperty("hY")?e.hY:.5;a.visible=e.hasOwnProperty("v")?e.v:!0;a.Bc=e.hasOwnProperty("ce")?e.ce:!0;a.Hg=e.hasOwnProperty("mts")?e.mts:-1;a.tb=e.hasOwnProperty("bm")?e.bm:0;a.Uf=Ya(a.tb);this.m&&Za(a,a.tb,this.m);a.Aa();if(e.hasOwnProperty("fx"))for(d=0,m=e.fx.length;d<m;d++)l=h.lk(e.fx[d].name),0>l||(a.Hd[l]=
e.fx[d].active,a.ua[l]=e.fx[d].params);a.Ed()}if(h=b.behs)for(c in h)h.hasOwnProperty(c)&&(e=this.Fr(a,parseInt(c,10)),0>e||a.G[e].tc(h[c]));b.data&&a.tc(b.data)};Hb=function(a){return new c(document.getElementById(a))};Ib=function(a,b){return new c({dc:!0,width:a,height:b})};window.cr_createRuntime=Hb;window.cr_createDCRuntime=Ib;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.dv=!0;document.body.appendChild(a);
a=new c(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new c(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var k=document.getElementById("c2canvas");return k?k.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(k,g){if(0!==k&&0!==g){var c=window.cr_getC2Runtime();c&&c.setSize(k,g)}};window.cr_setSuspended=function(k){var g=window.cr_getC2Runtime();g&&g.setSuspended(k)};
(function(){function k(a,b){this.b=a;this.se=null;this.scrollX=this.b.Va/2;this.scrollY=this.b.Ua/2;this.scale=1;this.e=0;this.$f=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Vo=b[3];this.Fo=b[4];this.P=b[5];var d=b[6],c,e;this.M=[];this.gg=[];c=0;for(e=d.length;c<e;c++){var f=new Jb(this,d[c]);f.Sn=c;this.M.push(f)}d=b[7];this.ze=[];c=0;for(e=d.length;c<e;c++){var f=d[c],h=this.b.n[f[1]];h.Sc||(h.Sc=f);this.ze.push(f);-1===this.gg.indexOf(h)&&this.gg.push(h)}this.H=[];this.U=[];this.ua=
[];c=0;for(e=b[8].length;c<e;c++)this.H.push({id:b[8][c][0],name:b[8][c][1],bb:-1,Ra:!0,index:c}),this.ua.push(b[8][c][2].slice(0));this.Ed();this.Yg=new qa(0,0,1,1);this.nl=new qa(0,0,1,1);this.Xd={}}function g(a,b){return a.Me-b.Me}function c(a,b){this.ga=a;this.b=a.b;this.c=[];this.scale=1;this.e=0;this.qe=!1;this.Cd=new qa(0,0,0,0);this.Oo=new ra;this.cb=this.Qa=this.eb=this.Pa=0;this.$b=!1;this.name=b[0];this.index=b[1];this.P=b[2];this.visible=b[3];this.Ld=b[4];this.Dd=b[5];this.Fb=b[6];this.Gb=
b[7];this.opacity=b[8];this.bk=b[9];this.kb=b[10];this.tb=b[11];this.Sq=b[12];this.Uf="source-over";this.ib=this.jb=0;this.Yd=!1;var d=b[13],c,e;this.bf=[];c=0;for(e=d.length;c<e;c++){var f=d[c],h=this.b.n[f[1]];h.Sc||(h.Sc=f,h.Dq=this.index);this.bf.push(f);-1===this.ga.gg.indexOf(h)&&this.ga.gg.push(h)}this.H=[];this.U=[];this.ua=[];c=0;for(e=b[14].length;c<e;c++)this.H.push({id:b[14][c][0],name:b[14][c][1],bb:-1,Ra:!0,index:c}),this.ua.push(b[14][c][2].slice(0));this.Ed();this.Yg=new qa(0,0,1,
1);this.nl=new qa(0,0,1,1)}k.prototype.pt=function(a){var b=a.type.P.toString();this.Xd.hasOwnProperty(b)||(this.Xd[b]=[]);this.Xd[b].push(this.b.ul(a))};k.prototype.Um=function(){var a=this.M[0];return!a.Dd&&1===a.opacity&&!a.bk&&a.visible};k.prototype.Ed=function(){this.U.length=0;var a,b,d;a=0;for(b=this.H.length;a<b;a++)d=this.H[a],d.Ra&&this.U.push(d)};k.prototype.kk=function(a){var b,d,c;b=0;for(d=this.H.length;b<d;b++)if(c=this.H[b],c.name===a)return c;return null};var f=[],s=!0;k.prototype.Bl=
function(){this.Fo&&(this.se=this.b.Wj[this.Fo],this.se.Ll());this.b.Z=this;this.scrollX=this.b.Va/2;this.scrollY=this.b.Ua/2;var a,b,d,c,e,k,h;a=0;for(d=this.b.n.length;a<d;a++)if(b=this.b.n[a],!b.B)for(e=b.c,b=0,c=e.length;b<c;b++)if(k=e[b],k.d){var y=k.d.Sn;y>=this.M.length&&(y=this.M.length-1);k.d=this.M[y];-1===k.d.c.indexOf(k)&&k.d.c.push(k);k.d.$b=!0}if(!s)for(a=0,d=this.M.length;a<d;++a)this.M[a].c.sort(g);f.length=0;this.qq();a=0;for(d=this.M.length;a<d;a++)k=this.M[a],k.Bq(),k.Nl();e=!1;
if(!this.$f){for(h in this.Xd)if(this.Xd.hasOwnProperty(h)&&(b=this.b.Wh(parseInt(h,10)))&&!b.B&&this.b.Kl(b)){c=this.Xd[h];a=0;for(d=c.length;a<d;a++){k=null;if(b.ya.Ud&&(k=this.Uh(c[a].w.l),!k))continue;k=this.b.oe(b.Sc,k,!1,0,0,!0);this.b.oi(k,c[a]);e=!0;f.push(k)}c.length=0}a=0;for(d=this.M.length;a<d;a++)this.M[a].c.sort(g),this.M[a].$b=!0}e&&(this.b.fb(),this.b.so());for(a=0;a<f.length;a++)if(k=f[a],k.type.Gc)for(d=k.cg(),b=0,c=k.type.Ob.length;b<c;b++)h=k.type.Ob[b],k.type!==h&&(h.c.length>
d?k.siblings.push(h.c[d]):h.Sc&&(e=this.b.oe(h.Sc,k.d,!0,k.x,k.y,!0),this.b.fb(),h.oj(),k.siblings.push(e),f.push(e)));a=0;for(d=this.ze.length;a<d;a++)this.b.oe(this.ze[a],null,!0);this.b.me=null;this.b.fb();if(this.b.ba&&!this.b.da)for(a=0,d=this.b.n.length;a<d;a++)h=this.b.n[a],!h.B&&h.c.length&&h.Mi&&h.Mi(this.b.ba);a=0;for(d=f.length;a<d;a++)k=f[a],this.b.trigger(Object.getPrototypeOf(k.type.ya).j.Cp,k);f.length=0;this.b.trigger(W.prototype.j.Xl,null);this.$f=!1};k.prototype.Aq=function(){var a,
b,d,c,e;b=a=0;for(d=this.ze.length;a<d;a++)c=this.ze[a],e=this.b.n[c[1]],e.global?this.b.oe(c,null,!0):(this.ze[b]=c,b++);this.ze.length=b};k.prototype.Ct=function(){this.b.trigger(W.prototype.j.Op,null);this.b.ad.Kb.length=0;var a,b,d,c,e,f;a=0;for(b=this.M.length;a<b;a++)for(this.M[a].bp(),e=this.M[a].c,d=0,c=e.length;d<c;d++)f=e[d],f.type.global||this.b.Kl(f.type)&&this.pt(f);a=0;for(b=this.M.length;a<b;a++){e=this.M[a].c;d=0;for(c=e.length;d<c;d++)f=e[d],f.type.global||this.b.Fd(f);this.b.fb();
e.length=0;this.M[a].$b=!0}a=0;for(b=this.b.n.length;a<b;a++)if(e=this.b.n[a],!(e.global||e.ya.Ud||e.ya.Wi||e.B)){d=0;for(c=e.c.length;d<c;d++)this.b.Fd(e.c[d]);this.b.fb()}s=!1};k.prototype.Dc=function(a){var b,d=a,c=!1,e=!this.b.oc;e&&(this.b.ni||(this.b.ni=document.createElement("canvas"),b=this.b.ni,b.width=this.b.L,b.height=this.b.K,this.b.sn=b.getContext("2d"),c=!0),b=this.b.ni,d=this.b.sn,b.width!==this.b.L&&(b.width=this.b.L,c=!0),b.height!==this.b.K&&(b.height=this.b.K,c=!0),c&&(d.webkitImageSmoothingEnabled=
this.b.S,d.mozImageSmoothingEnabled=this.b.S,d.msImageSmoothingEnabled=this.b.S,d.imageSmoothingEnabled=this.b.S));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.Bj&&!this.Um()&&d.clearRect(0,0,this.b.L,this.b.K);var f,h,c=0;for(f=this.M.length;c<f;c++)h=this.M[c],h.visible&&0<h.opacity&&11!==h.tb&&(h.c.length||!h.Dd)?h.Dc(d):h.Nl();e&&a.drawImage(b,0,0,this.b.width,this.b.height)};k.prototype.Qb=function(a){var b=0<this.U.length||this.b.Lf||!this.b.oc;if(b){this.b.Ub||(this.b.Ub=
a.Od(this.b.L,this.b.K,this.b.S));if(this.b.Ub.Sf!==this.b.L||this.b.Ub.Rf!==this.b.K)a.deleteTexture(this.b.Ub),this.b.Ub=a.Od(this.b.L,this.b.K,this.b.S);a.Zc(this.b.Ub);this.b.oc||a.Bf(this.b.L,this.b.K)}else this.b.Ub&&(a.Zc(null),a.deleteTexture(this.b.Ub),this.b.Ub=null);this.b.Bj&&!this.Um()&&a.clear(0,0,0,0);var d,c,e;d=0;for(c=this.M.length;d<c;d++)e=this.M[d],e.visible&&0<e.opacity&&(e.c.length||!e.Dd)?e.Qb(a):e.Nl();b&&(0===this.U.length||1===this.U.length&&this.b.oc?(1===this.U.length?
(b=this.U[0].index,a.$c(this.U[0].bb),a.Af(null,1/this.b.L,1/this.b.K,0,0,1,1,this.scale,this.e,0,0,this.b.L/2,this.b.K/2,this.ua[b]),a.Ni(this.U[0].bb)&&(this.b.ha=!0)):a.$c(0),this.b.oc||a.Bf(this.b.width,this.b.height),a.Zc(null),a.Ke(1),a.Yb(this.b.Ub),a.zo(),a.Zd(),a.he(),b=this.b.width/2,d=this.b.height/2,a.Xg(-b,d,b,d,b,-d,-b,-d),a.Yb(null)):this.ol(a,null,null,null))};k.prototype.bg=function(){return 0<this.U.length||this.b.Lf||!this.b.oc?this.b.Ub:null};k.prototype.Rm=function(){var a=this.M[0].ec(),
b,d,c;b=1;for(d=this.M.length;b<d;b++)c=this.M[b],(0!==c.Fb||0!==c.Gb)&&c.ec()<a&&(a=c.ec());return a};k.prototype.xo=function(a){if(!this.Vo){var b=1/this.Rm()*this.b.L/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ha=!0)};k.prototype.yo=function(a){if(!this.Vo){var b=1/this.Rm()*this.b.K/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ha=!0)};k.prototype.qq=function(){this.xo(this.scrollX);this.yo(this.scrollY)};k.prototype.ol=
function(a,b,d,c){var e=d?d.U:b?b.U:this.U,f=1,h=0,g=0,l=0,k=this.b.L,s=this.b.K;d?(f=d.d.ec(),h=d.d.Sa(),g=d.d.Pa,l=d.d.Qa,k=d.d.eb,s=d.d.cb):b&&(f=b.ec(),h=b.Sa(),g=b.Pa,l=b.Qa,k=b.eb,s=b.cb);var m=this.b.ek,n,p,t,r,C=0,ia=1,ba,v=this.b.L,w=this.b.K,ja=v/2,X=w/2,J=b?b.Yg:this.Yg,D=b?b.nl:this.nl,x=0,P=0,B=0,G=0,E=v,S=v,F=w,H=w,L=t=0,Y=d?d.d.Sa():0;if(d){n=0;for(p=e.length;n<p;n++)t+=a.Or(e[n].bb),L+=a.Pr(e[n].bb);r=d.Da;x=b.ob(r.left,r.top,!0,!0);B=b.ob(r.left,r.top,!1,!0);E=b.ob(r.right,r.bottom,
!0,!0);F=b.ob(r.right,r.bottom,!1,!0);0!==Y&&(n=b.ob(r.right,r.top,!0,!0),p=b.ob(r.right,r.top,!1,!0),P=b.ob(r.left,r.bottom,!0,!0),G=b.ob(r.left,r.bottom,!1,!0),r=Math.min(x,E,n,P),E=Math.max(x,E,n,P),x=r,r=Math.min(B,F,p,G),F=Math.max(B,F,p,G),B=r);x-=t;B-=L;E+=t;F+=L;D.left=x/v;D.top=1-B/w;D.right=E/v;D.bottom=1-F/w;P=x=O(x);G=B=O(B);S=E=oa(E);H=F=oa(F);P-=t;G-=L;S+=t;H+=L;0>x&&(x=0);0>B&&(B=0);E>v&&(E=v);F>w&&(F=w);0>P&&(P=0);0>G&&(G=0);S>v&&(S=v);H>w&&(H=w);J.left=x/v;J.top=1-B/w;J.right=E/v;
J.bottom=1-F/w}else J.left=D.left=0,J.top=D.top=0,J.right=D.right=1,J.bottom=D.bottom=1;L=d&&((d.e||Y)&&a.Vg(e[0].bb)||0!==t||0!==L||1!==d.opacity||d.type.ya.On)||b&&!d&&1!==b.opacity;a.zo();if(L){m[C]||(m[C]=a.Od(v,w,this.b.S));if(m[C].Sf!==v||m[C].Rf!==w)a.deleteTexture(m[C]),m[C]=a.Od(v,w,this.b.S);a.$c(0);a.Zc(m[C]);ba=H-G;a.clearRect(P,w-G-ba,S-P,ba);d?d.Qb(a):(a.Yb(this.b.hc),a.Ke(b.opacity),a.Zd(),a.translate(-ja,-X),a.he(),a.zd(x,F,E,F,E,B,x,B,J));D.left=D.top=0;D.right=D.bottom=1;d&&(r=J.top,
J.top=J.bottom,J.bottom=r);C=1;ia=0}a.Ke(1);t=e.length-1;var Y=a.jl(e[t].bb)||!b&&!d&&!this.b.oc,la=0;n=0;for(p=e.length;n<p;n++){m[C]||(m[C]=a.Od(v,w,this.b.S));if(m[C].Sf!==v||m[C].Rf!==w)a.deleteTexture(m[C]),m[C]=a.Od(v,w,this.b.S);a.$c(e[n].bb);la=e[n].index;a.Ni(e[n].bb)&&(this.b.ha=!0);0!=n||L?(a.Af(c,1/v,1/w,D.left,D.top,D.right,D.bottom,f,h,g,l,(g+k)/2,(l+s)/2,d?d.ua[la]:b?b.ua[la]:this.ua[la]),a.Yb(null),n!==t||Y?(a.Zc(m[C]),ba=H-G,r=w-G-ba,a.clearRect(P,r,S-P,ba)):(d?a.$d(d.jb,d.ib):b&&
a.$d(b.jb,b.ib),a.Zc(c)),a.Yb(m[ia]),a.Zd(),a.translate(-ja,-X),a.he(),a.zd(x,F,E,F,E,B,x,B,J),n!==t||Y||a.Yb(null)):(a.Zc(m[C]),ba=H-G,r=w-G-ba,a.clearRect(P,r,S-P,ba),d?(a.Af(c,1/d.width,1/d.height,D.left,D.top,D.right,D.bottom,f,h,g,l,(g+k)/2,(l+s)/2,d.ua[la]),d.Qb(a)):(a.Af(c,1/v,1/w,0,0,1,1,f,h,g,l,(g+k)/2,(l+s)/2,b?b.ua[la]:this.ua[la]),a.Yb(b?this.b.hc:this.b.Ub),a.Zd(),a.translate(-ja,-X),a.he(),a.zd(x,F,E,F,E,B,x,B,J)),D.left=D.top=0,D.right=D.bottom=1,d&&!Y&&(r=F,F=B,B=r));C=0===C?1:0;ia=
0===C?1:0}Y&&(a.$c(0),d?a.$d(d.jb,d.ib):b?a.$d(b.jb,b.ib):this.b.oc||(a.Bf(this.b.width,this.b.height),ja=this.b.width/2,X=this.b.height/2,B=x=0,E=this.b.width,F=this.b.height),a.Zc(c),a.Yb(m[ia]),a.Zd(),a.translate(-ja,-X),a.he(),d&&1===e.length&&!L?a.zd(x,B,E,B,E,F,x,F,J):a.zd(x,F,E,F,E,B,x,B,J),a.Yb(null))};k.prototype.Uh=function(a){var b,d;b=0;for(d=this.M.length;b<d;b++)if(this.M[b].P===a)return this.M[b];return null};k.prototype.Xb=function(){var a,b,d,c={sx:this.scrollX,sy:this.scrollY,s:this.scale,
a:this.e,w:this.width,h:this.height,fv:this.$f,persist:this.Xd,fx:[],layers:{}};a=0;for(b=this.H.length;a<b;a++)d=this.H[a],c.fx.push({name:d.name,active:d.Ra,params:this.ua[d.index]});a=0;for(b=this.M.length;a<b;a++)d=this.M[a],c.layers[d.P.toString()]=d.Xb();return c};k.prototype.tc=function(a){var b,d,c,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.e=a.a;this.width=a.w;this.height=a.h;this.Xd=a.persist;"undefined"!==typeof a.fv&&(this.$f=a.fv);var f=a.fx;b=0;for(d=f.length;b<d;b++)if(c=
this.kk(f[b].name))c.Ra=f[b].active,this.ua[c.index]=f[b].params;this.Ed();b=a.layers;for(e in b)b.hasOwnProperty(e)&&(a=this.Uh(parseInt(e,10)))&&a.tc(b[e])};wb=k;c.prototype.Ed=function(){this.U.length=0;var a,b,d;a=0;for(b=this.H.length;a<b;a++)d=this.H[a],d.Ra&&this.U.push(d)};c.prototype.kk=function(a){var b,d,c;b=0;for(d=this.H.length;b<d;b++)if(c=this.H[b],c.name===a)return c;return null};c.prototype.Bq=function(){var a,b,d,c,e,g;b=a=0;for(d=this.bf.length;a<d;a++){c=this.bf[a];e=this.b.n[c[1]];
g=this.b.Kl(e);e=!0;if(!g||this.ga.$f)c=this.b.oe(c,this,!0),f.push(c),c.type.global&&(e=!1);e&&(this.bf[b]=this.bf[a],b++)}this.bf.length=b;this.b.fb();!this.b.q&&this.H.length&&(this.tb=this.Sq);this.Uf=Ya(this.tb);this.b.m&&Za(this,this.tb,this.b.m)};c.prototype.bp=function(){if(this.$b){var a,b;a=0;for(b=this.c.length;a<b;a++)this.c[a].Me=a;this.$b=!1}};c.prototype.ec=function(a){return this.Lr()*(this.b.oc||a?this.b.Qf:1)};c.prototype.Lr=function(){return(this.scale*this.ga.scale-1)*this.kb+
1};c.prototype.Sa=function(){return this.qe?0:Ba(this.ga.e+this.e)};c.prototype.Dc=function(a){this.Yd=this.bk||1!==this.opacity||0!==this.tb;var b=this.b.canvas,d=a,c=!1;this.Yd&&(this.b.mi||(this.b.mi=document.createElement("canvas"),b=this.b.mi,b.width=this.b.L,b.height=this.b.K,this.b.rn=b.getContext("2d"),c=!0),b=this.b.mi,d=this.b.rn,b.width!==this.b.L&&(b.width=this.b.L,c=!0),b.height!==this.b.K&&(b.height=this.b.K,c=!0),c&&(d.webkitImageSmoothingEnabled=this.b.S,d.mozImageSmoothingEnabled=
this.b.S,d.msImageSmoothingEnabled=this.b.S,d.imageSmoothingEnabled=this.b.S),this.Dd&&d.clearRect(0,0,this.b.L,this.b.K));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.Dd||(d.fillStyle="rgb("+this.Ld[0]+","+this.Ld[1]+","+this.Ld[2]+")",d.fillRect(0,0,this.b.L,this.b.K));d.save();this.qe=!0;var c=this.na(0,0,!0,!0),e=this.na(0,0,!1,!0);this.qe=!1;this.b.Yc&&(c=Math.round(c),e=Math.round(e));this.ql(c,e,d);var f=this.ec();d.scale(f,f);d.translate(-c,-e);for(var h,c=0,e=this.c.length;c<
e;c++)f=this.c[c],f.visible&&0!==f.width&&0!==f.height&&(f.Ba(),h=f.Da,h.right<this.Pa||h.bottom<this.Qa||h.left>this.eb||h.top>this.cb||(d.globalCompositeOperation=f.Uf,f.Dc(d)));d.restore();this.Yd&&(a.globalCompositeOperation=this.Uf,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};c.prototype.Nl=function(){this.qe=!0;var a=this.na(0,0,!0,!0),b=this.na(0,0,!1,!0);this.qe=!1;this.b.Yc&&(a=Math.round(a),b=Math.round(b));this.ql(a,b,null)};c.prototype.ql=function(a,b,d){var c=this.ec();this.Pa=a;this.Qa=
b;this.eb=a+1/c*this.b.L;this.cb=b+1/c*this.b.K;a=this.Sa();0!==a&&(d&&(d.translate(this.b.L/2,this.b.K/2),d.rotate(-a),d.translate(this.b.L/-2,this.b.K/-2)),this.Cd.set(this.Pa,this.Qa,this.eb,this.cb),this.Cd.offset((this.Pa+this.eb)/-2,(this.Qa+this.cb)/-2),this.Oo.Do(this.Cd,a),this.Oo.qm(this.Cd),this.Cd.offset((this.Pa+this.eb)/2,(this.Qa+this.cb)/2),this.Pa=this.Cd.left,this.Qa=this.Cd.top,this.eb=this.Cd.right,this.cb=this.Cd.bottom)};c.prototype.Qb=function(a){var b=this.b.L,d=this.b.K,c=
0,e=0;if(this.Yd=this.bk||1!==this.opacity||0<this.U.length||0!==this.tb){this.b.hc||(this.b.hc=a.Od(this.b.L,this.b.K,this.b.S));if(this.b.hc.Sf!==this.b.L||this.b.hc.Rf!==this.b.K)a.deleteTexture(this.b.hc),this.b.hc=a.Od(this.b.L,this.b.K,this.b.S);a.Zc(this.b.hc);this.Dd&&a.clear(0,0,0,0)}this.Dd||a.clear(this.Ld[0]/255,this.Ld[1]/255,this.Ld[2]/255,1);this.qe=!0;var e=this.na(0,0,!0,!0),f=this.na(0,0,!1,!0);this.qe=!1;this.b.Yc&&(e=Math.round(e),f=Math.round(f));this.ql(e,f,null);f=this.ec();
a.Zd();a.scale(f,f);a.vo(-this.Sa());a.translate((this.Pa+this.eb)/-2,(this.Qa+this.cb)/-2);a.he();var h,g,l;h=0;for(g=this.c.length;h<g;h++)if(l=this.c[h],l.visible&&0!==l.width&&0!==l.height&&(l.Ba(),c=l.Da,!(c.right<this.Pa||c.bottom<this.Qa||c.left>this.eb||c.top>this.cb)))if(l.cp)if(c=l.U[0].bb,e=l.U[0].index,1!==l.U.length||a.jl(c)||a.ct(c)||(l.e||l.d.Sa())&&a.Vg(c)||1!==l.opacity||l.type.ya.On)this.ga.ol(a,this,l,this.Yd?this.b.hc:this.ga.bg()),a.Zd(),a.scale(f,f),a.vo(-this.Sa()),a.translate((this.Pa+
this.eb)/-2,(this.Qa+this.cb)/-2),a.he();else{a.$c(c);a.$d(l.jb,l.ib);a.Ni(c)&&(this.b.ha=!0);var k=0,s=0,m=0,n=0;a.Vg(c)&&(c=l.Da,k=this.ob(c.left,c.top,!0,!0),s=this.ob(c.left,c.top,!1,!0),m=this.ob(c.right,c.bottom,!0,!0),c=this.ob(c.right,c.bottom,!1,!0),k/=b,s=1-s/d,m/=b,n=1-c/d);a.Af(this.Yd?this.b.hc:this.ga.bg(),1/l.width,1/l.height,k,s,m,n,this.ec(),this.Sa(),this.Pa,this.Qa,(this.Pa+this.eb)/2,(this.Qa+this.cb)/2,l.ua[e]);l.Qb(a)}else a.$c(0),a.$d(l.jb,l.ib),l.Qb(a);this.Yd&&(c=this.U.length?
this.U[0].bb:0,e=this.U.length?this.U[0].index:0,0===this.U.length||1===this.U.length&&!a.jl(c)&&1===this.opacity?(1===this.U.length?(a.$c(c),a.Af(this.ga.bg(),1/this.b.L,1/this.b.K,0,0,1,1,this.ec(),this.Sa(),this.Pa,this.Qa,(this.Pa+this.eb)/2,(this.Qa+this.cb)/2,this.ua[e]),a.Ni(c)&&(this.b.ha=!0)):a.$c(0),a.Zc(this.ga.bg()),a.Ke(this.opacity),a.Yb(this.b.hc),a.$d(this.jb,this.ib),a.Zd(),a.he(),b=this.b.L/2,d=this.b.K/2,a.Xg(-b,d,b,d,b,-d,-b,-d),a.Yb(null)):this.ga.ol(a,this,null,this.ga.bg()))};
c.prototype.na=function(a,b,d,c){var e=this.b.devicePixelRatio;this.b.Ae&&(a*=e,b*=e);var e=this.b.eo,f=this.b.fo,e=(this.ga.scrollX-e)*this.Fb+e,f=(this.ga.scrollY-f)*this.Gb+f,h=1/this.ec(!c);c?(e-=this.b.L*h/2,f-=this.b.K*h/2):(e-=this.b.width*h/2,f-=this.b.height*h/2);e+=a*h;f+=b*h;b=this.Sa();0!==b&&(e-=this.ga.scrollX,f-=this.ga.scrollY,a=Math.cos(b),b=Math.sin(b),c=e*a-f*b,f=f*a+e*b,e=c+this.ga.scrollX,f+=this.ga.scrollY);return d?e:f};c.prototype.ob=function(a,b,d,c){var e=this.Sa();if(0!==
e){a-=this.ga.scrollX;b-=this.ga.scrollY;var f=Math.cos(-e),e=Math.sin(-e),h=a*f-b*e;b=b*f+a*e;a=h+this.ga.scrollX;b+=this.ga.scrollY}f=this.b.eo;e=this.b.fo;f=(this.ga.scrollX-f)*this.Fb+f;e=(this.ga.scrollY-e)*this.Gb+e;h=1/this.ec(!c);c?(f-=this.b.L*h/2,e-=this.b.K*h/2):(f-=this.b.width*h/2,e-=this.b.height*h/2);f=(a-f)/h;e=(b-e)/h;a=this.b.devicePixelRatio;this.b.Ae&&!c&&(f/=a,e/=a);return d?f:e};c.prototype.Xb=function(){var a,b,d,c={s:this.scale,a:this.e,vl:this.Pa,vt:this.Qa,vr:this.eb,vb:this.cb,
v:this.visible,bc:this.Ld,t:this.Dd,px:this.Fb,py:this.Gb,o:this.opacity,zr:this.kb,fx:[],instances:[]};a=0;for(b=this.H.length;a<b;a++)d=this.H[a],c.fx.push({name:d.name,active:d.Ra,params:this.ua[d.index]});return c};c.prototype.tc=function(a){var b,d;this.scale=a.s;this.e=a.a;this.Pa=a.vl;this.Qa=a.vt;this.eb=a.vr;this.cb=a.vb;this.visible=a.v;this.Ld=a.bc;this.Dd=a.t;this.Fb=a.px;this.Gb=a.py;this.opacity=a.o;this.kb=a.zr;var c=a.fx;a=0;for(b=c.length;a<b;a++)if(d=this.kk(c[a].name))d.Ra=c[a].active,
this.ua[d.index]=c[a].params;this.Ed();this.c.sort(g);this.$b=!0};Jb=c})();
(function(){function k(a,b){var d,c=a.length;switch(c){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<c;d++)if(a[d]!==b[d])return!1;return!0}}function g(a,b){return a.index-b.index}function c(a){var b,d,c,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(g);a.length>=l.length&&(l.length=a.length+1);l[a.length]||(l[a.length]=[]);e=l[a.length];b=0;for(d=e.length;b<d;b++)if(c=e[b],k(a,c))return c;e.push(a);return a}
function f(a,b){this.b=a;this.Ro={};this.Hm={};this.uk=!1;this.Xm=new da;this.Qj=[];this.Cj=[];this.name=b[0];var d=b[1];this.Rd=[];var c,e;c=0;for(e=d.length;c<e;c++)this.Zm(d[c],null,this.Rd)}function s(a){this.type=a;this.c=[];this.V=[];this.ja=!0}function a(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.ma=[];this.ae=[];this.Vm=this.jj=this.Hl=this.bi=this.group=this.Jo=!1;this.hb=[];this.zc=[];this.xc=[];this.dg="";this.Ye=this.bi=this.group=!1;this.Ch=null;d[1]&&(this.dg=d[1][1].toLowerCase(),
this.group=!0,this.bi=!!d[1][0],this.Ch=[],this.Ye=this.bi,this.b.Jd.push(this),this.b.Xh[this.dg]=this);this.Ic=d[2];this.P=d[4];this.group||(this.b.pm[this.P.toString()]=this);var c=d[5];a=0;for(b=c.length;a<b;a++){var e=new Kb(this,c[a]);e.index=a;this.hb.push(e);this.km(e.type)}c=d[6];a=0;for(b=c.length;a<b;a++)e=new Lb(this,c[a]),e.index=a,this.zc.push(e);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.Zm(d[a],this,this.xc);this.gi=!1;this.hb.length&&(this.gi=null==this.hb[0].type&&
this.hb[0].Za==W.prototype.j.kp)}function b(a,b){var d,c,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Gc))for(d=0,c=a.Ob.length;d<c;d++)e=a.Ob[d],a!==e&&-1===b.indexOf(e)&&b.push(e)}function d(a,b){this.ac=a;this.sheet=a.sheet;this.b=a.b;this.I=[];this.ea=[];this.va={};this.index=-1;this.Pf=!1;this.Za=this.b.Gd(b[1]);this.trigger=0<b[3];this.Gm=2===b[3];this.Wc=b[4];this.cf=b[5];this.Bs=b[6];this.P=b[7];this.b.Te[this.P.toString()]=this;-1===b[0]?(this.type=null,this.La=this.tl,this.le=null,this.kc=-1):
(this.type=this.b.n[b[0]],this.La=this.Bs?this.nt:this.sl,b[2]?(this.le=this.type.Th(b[2]),this.kc=this.type.gk(b[2])):(this.le=null,this.kc=-1),this.ac.parent&&this.ac.parent.Ui());this.Gm&&(this.La=this.ot);if(10===b.length){var d,c,e=b[9];d=0;for(c=e.length;d<c;d++){var l=new Mb(this,e[d]);this.I.push(l)}this.ea.length=e.length}}function q(a,b){this.ac=a;this.sheet=a.sheet;this.b=a.b;this.I=[];this.ea=[];this.va={};this.index=-1;this.Pf=!1;this.Za=this.b.Gd(b[1]);-1===b[0]?(this.type=null,this.La=
this.tl,this.le=null,this.kc=-1):(this.type=this.b.n[b[0]],this.La=this.sl,b[2]?(this.le=this.type.Th(b[2]),this.kc=this.type.gk(b[2])):(this.le=null,this.kc=-1));this.P=b[3];this.b.Qe[this.P.toString()]=this;if(6===b.length){var d,c,e=b[5];d=0;for(c=e.length;d<c;d++){var l=new Mb(this,e[d]);this.I.push(l)}this.ea.length=e.length}}function e(a,b){this.k=a;this.ac=a.ac;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Tc=null;this.be=0;this.get=null;this.xm=0;this.ga=null;this.key=0;this.object=null;
this.index=0;this.mh=this.Le=this.mh=this.Le=this.Im=this.te=this.nh=null;this.yc=!1;var d,c,e;switch(b[0]){case 0:case 7:this.Tc=new U(this,b[1]);this.be=0;this.get=this.Ur;break;case 1:this.Tc=new U(this,b[1]);this.be=0;this.get=this.Vr;break;case 5:this.Tc=new U(this,b[1]);this.be=0;this.get=this.Zr;break;case 3:case 8:this.xm=b[1];this.get=this.Sr;break;case 6:this.ga=this.b.Kk[b[1]];this.get=this.$r;break;case 9:this.key=b[1];this.get=this.Yr;break;case 4:this.object=this.b.n[b[1]];this.get=
this.as;this.ac.km(this.object);this.k instanceof Lb?this.ac.Ui():this.ac.parent&&this.ac.parent.Ui();break;case 10:this.index=b[1];a.type.B?(this.get=this.Wr,this.yc=!0):this.get=this.Xr;break;case 11:this.nh=b[1];this.te=null;this.get=this.Tr;break;case 2:case 12:this.Im=b[1];this.get=this.Rr;break;case 13:for(this.get=this.bs,this.Le=[],this.mh=[],d=1,c=b.length;d<c;d++)e=new Mb(this.k,b[d]),this.Le.push(e),this.mh.push(0)}}function u(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.ma=[];this.name=
d[1];this.dp=d[2];this.ai=d[3];this.ng=!!d[4];this.fi=!!d[5];this.P=d[6];this.b.Nf[this.P.toString()]=this;this.data=this.ai;this.parent?(this.He=this.ng||this.fi?-1:this.b.At++,this.b.mq.push(this)):(this.He=-1,this.b.zj.push(this))}function h(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.ma=[];this.fg=null;this.ls=d[1];this.Ra=!0}function y(){this.Lo=[];this.reset(null)}var l=[];f.prototype.toString=function(){return this.name};f.prototype.Zm=function(a,b,d){switch(a[0]){case 0:a=new Nb(this,
b,a);if(a.Ic)for(d.push(a),d=0,b=a.hb.length;d<b;d++)a.hb[d].trigger&&this.$m(a,d);else a.kn()?this.$m(a,0):d.push(a);break;case 1:a=new Gb(this,b,a);d.push(a);break;case 2:a=new Ob(this,b,a),d.push(a)}};f.prototype.za=function(){var a,b;a=0;for(b=this.Rd.length;a<b;a++)this.Rd[a].za(a<b-1&&this.Rd[a+1].gi)};f.prototype.Ll=function(){this.Qj.length=0;this.Cj.length=0;this.jm(this);this.Cj.length=0};f.prototype.jm=function(a){var b,d,c,e,l=a.Qj,h=a.Cj,f=this.Xm.Pc();b=0;for(d=f.length;b<d;++b)c=f[b],
e=c.fg,!c.Ra||a===e||-1<h.indexOf(e)||(h.push(e),e.jm(a),l.push(e))};f.prototype.La=function(a){this.b.cv||(this.uk=!0,a||(this.b.Dk=!0));var b,d;b=0;for(d=this.Rd.length;b<d;b++){var c=this.Rd[b];c.La();this.b.Kj(c.ma);this.b.Sd&&this.b.fb()}a||(this.b.Dk=!1)};f.prototype.$m=function(a,b){a.Ic||this.b.mj.push(a);var d,c,e=a.hb[b],l;l=e.type?e.type.name:"system";var h=(d=e.Gm)?this.Hm:this.Ro;h[l]||(h[l]=[]);l=h[l];h=e.Za;if(d){if(e.I.length&&(e=e.I[0],1===e.type&&2===e.Tc.type)){e=e.Tc.value.toLowerCase();
d=0;for(c=l.length;d<c;d++)if(l[d].method==h){d=l[d].Xf;d[e]?d[e].push([a,b]):d[e]=[[a,b]];return}d={};d[e]=[[a,b]];l.push({method:h,Xf:d})}}else{d=0;for(c=l.length;d<c;d++)if(l[d].method==h){l[d].Xf.push([a,b]);return}ac&&h===ac.prototype.j.Pe?l.unshift({method:h,Xf:[[a,b]]}):l.push({method:h,Xf:[[a,b]]})}};xb=f;s.prototype.tk=function(){return this.ja?this.type.c.length:this.c.length};s.prototype.Ec=function(){return this.ja?this.type.c:this.c};s.prototype.Ug=function(a){a&&(a.b.nb().Pb.Ic?(this.ja&&
(this.c.length=0,ua(this.V,a.type.c),this.ja=!1),a=this.V.indexOf(a),-1!==a&&(this.c.push(this.V[a]),this.V.splice(a,1))):(this.ja=!1,this.c.length=1,this.c[0]=a))};eb=s;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";a.prototype.za=function(a){var b,d=this.parent;if(this.group)for(this.jj=!0;d;){if(!d.group){this.jj=!1;break}d=d.parent}this.Hl=!this.kn()&&(!this.parent||this.parent.group&&this.parent.jj);this.Vm=!!a;this.ae=this.ma.slice(0);for(d=this.parent;d;){a=0;for(b=d.ma.length;a<
b;a++)this.jq(d.ma[a]);d=d.parent}this.ma=c(this.ma);this.ae=c(this.ae);a=0;for(b=this.hb.length;a<b;a++)this.hb[a].za();a=0;for(b=this.zc.length;a<b;a++)this.zc[a].za();a=0;for(b=this.xc.length;a<b;a++)this.xc[a].za(a<b-1&&this.xc[a+1].gi)};a.prototype.ut=function(a){if(this.Ye!==!!a){this.Ye=!!a;var b;a=0;for(b=this.Ch.length;a<b;++a)this.Ch[a].Xo();0<b&&this.b.Z.se&&this.b.Z.se.Ll()}};a.prototype.km=function(a){b(a,this.ma)};a.prototype.jq=function(a){b(a,this.ae)};a.prototype.Ui=function(){this.Jo=
!0;this.parent&&this.parent.Ui()};a.prototype.kn=function(){return this.hb.length?this.hb[0].trigger:!1};a.prototype.La=function(){var a,b=!1,d,c=this.b,e=this.b.nb();e.Pb=this;var l=this.hb;this.gi||(e.Uj=!1);if(this.Ic){0===l.length&&(b=!0);e.zb=0;for(a=l.length;e.zb<a;e.zb++)l[e.zb].trigger||(d=l[e.zb].La())&&(b=!0);(e.Ee=b)&&this.rl()}else{e.zb=0;for(a=l.length;e.zb<a;e.zb++)if(d=l[e.zb].La(),!d){e.Ee=!1;this.Hl&&c.Sd&&c.fb();return}e.Ee=!0;this.rl()}this.Uq(e)};a.prototype.Uq=function(a){a.Ee&&
this.Vm&&(a.Uj=!0);this.Hl&&this.b.Sd&&this.b.fb()};a.prototype.lt=function(a){this.b.nb().Pb=this;this.hb[a].La()&&(this.rl(),this.b.nb().Ee=!0)};a.prototype.rl=function(){var a=this.b.nb(),b;a.Lb=0;for(b=this.zc.length;a.Lb<b;a.Lb++)if(this.zc[a.Lb].La())return;this.wo()};a.prototype.jt=function(){var a=this.b.nb(),b;for(b=this.zc.length;a.Lb<b;a.Lb++)if(this.zc[a.Lb].La())return;this.wo()};a.prototype.wo=function(){if(this.xc.length){var a,b,d,c,e=this.xc.length-1;this.b.ll(this);if(this.Jo)for(a=
0,b=this.xc.length;a<b;a++)d=this.xc[a],(c=!this.jj||!this.group&&a<e)&&this.b.kl(d.ma),d.La(),c?this.b.zf(d.ma):this.b.Kj(d.ma);else for(a=0,b=this.xc.length;a<b;a++)this.xc[a].La();this.b.mo()}};a.prototype.mt=function(){var a=this.b.nb();a.Pb=this;var b=!1,d;a.zb=0;for(d=this.hb.length;a.zb<d;a.zb++)if(this.hb[a.zb].La())b=!0;else if(!this.Ic)return!1;return this.Ic?b:!0};a.prototype.us=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.hb[b].type===a.type)return!1;return!0};
Nb=a;d.prototype.za=function(){var a,b,d;a=0;for(b=this.I.length;a<b;a++)d=this.I[a],d.za(),d.yc&&(this.Pf=!0)};d.prototype.ot=function(){return!0};d.prototype.tl=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.ea[a]=this.I[a].get();return Oa(this.Za.apply(this.b.ad,this.ea),this.cf)};d.prototype.nt=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.ea[a]=this.I[a].get();a=this.Za.apply(this.le?this.le:this.type,this.ea);this.type.gd();return a};d.prototype.sl=function(){var a,b,d,c,
e,l,h,f,g=this.type,k=g.ca(),s=this.ac.Ic&&!this.trigger;b=0;var q=g.Gc,A=g.B,z=g.pd,y=this.kc,u=-1<y,B=this.Pf,G=this.I,E=this.ea,S=this.cf,F=this.Za,H;if(B)for(b=0,e=G.length;b<e;++b)l=G[b],l.yc||(E[b]=l.get(0));else for(b=0,e=G.length;b<e;++b)E[b]=G[b].get(0);if(k.ja){k.c.length=0;k.V.length=0;H=g.c;a=0;for(c=H.length;a<c;++a){f=H[a];if(B)for(b=0,e=G.length;b<e;++b)l=G[b],l.yc&&(E[b]=l.get(a));u?(b=0,A&&(b=f.type.We[z]),b=F.apply(f.G[y+b],E)):b=F.apply(f,E);(h=Oa(b,S))?k.c.push(f):s&&k.V.push(f)}g.finish&&
g.finish(!0);k.ja=!1;g.gd();return k.tk()}d=0;H=(h=s&&!this.ac.us(this))?k.V:k.c;var L=!1;a=0;for(c=H.length;a<c;++a){f=H[a];if(B)for(b=0,e=G.length;b<e;++b)l=G[b],l.yc&&(E[b]=l.get(a));u?(b=0,A&&(b=f.type.We[z]),b=F.apply(f.G[y+b],E)):b=F.apply(f,E);if(Oa(b,S))if(L=!0,h){if(k.c.push(f),q)for(b=0,e=f.siblings.length;b<e;b++)l=f.siblings[b],l.type.ca().c.push(l)}else{H[d]=f;if(q)for(b=0,e=f.siblings.length;b<e;b++)l=f.siblings[b],l.type.ca().c[d]=l;d++}else if(h){H[d]=f;if(q)for(b=0,e=f.siblings.length;b<
e;b++)l=f.siblings[b],l.type.ca().V[d]=l;d++}else if(s&&(k.V.push(f),q))for(b=0,e=f.siblings.length;b<e;b++)l=f.siblings[b],l.type.ca().V.push(l)}H.length=d;if(q)for(A=g.Ob,a=0,c=A.length;a<c;a++)f=A[a].ca(),h?f.V.length=d:f.c.length=d;d=L;if(h&&!L)for(a=0,c=k.c.length;a<c;a++){f=k.c[a];if(B)for(b=0,e=G.length;b<e;b++)l=G[b],l.yc&&(E[b]=l.get(a));b=u?F.apply(f.G[y],E):F.apply(f,E);if(Oa(b,S)){L=!0;break}}g.finish&&g.finish(d||s);return s?L:k.tk()};Kb=d;q.prototype.za=function(){var a,b,d;a=0;for(b=
this.I.length;a<b;a++)d=this.I[a],d.za(),d.yc&&(this.Pf=!0)};q.prototype.tl=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.ea[a]=this.I[a].get();return this.Za.apply(this.b.ad,this.ea)};q.prototype.sl=function(){var a=this.type.ca().Ec(),b=this.type.B,d=this.type.pd,c=this.kc,e=-1<c,l=this.Pf,h=this.I,f=this.ea,g=this.Za,k,s,q,A,z,y;if(l)for(s=0,A=h.length;s<A;++s)z=h[s],z.yc||(f[s]=z.get(0));else for(s=0,A=h.length;s<A;++s)f[s]=h[s].get(0);k=0;for(q=a.length;k<q;++k){y=a[k];if(l)for(s=0,
A=h.length;s<A;++s)z=h[s],z.yc&&(f[s]=z.get(k));e?(s=0,b&&(s=y.type.We[d]),g.apply(y.G[c+s],f)):g.apply(y,f)}return!1};Lb=q;var A=[],z=-1;e.prototype.za=function(){var a,b;if(11===this.type)this.te=this.b.Om(this.nh,this.ac.parent);else if(13===this.type)for(a=0,b=this.Le.length;a<b;a++)this.Le[a].za();this.Tc&&this.Tc.za()};e.prototype.Fs=function(a){this.yc||!a||a.ya.Wi||(this.yc=!0)};e.prototype.Bo=function(){this.yc=!0};e.prototype.Ka=function(){z++;A.length===z&&A.push(new Pb);return A[z]};e.prototype.Ha=
function(){z--};e.prototype.Ur=function(a){this.be=a||0;a=this.Ka();this.Tc.get(a);this.Ha();return a.data};e.prototype.Vr=function(a){this.be=a||0;a=this.Ka();this.Tc.get(a);this.Ha();return M(a.data)?a.data:""};e.prototype.as=function(){return this.object};e.prototype.Sr=function(){return this.xm};e.prototype.Zr=function(a){this.be=a||0;a=this.Ka();this.Tc.get(a);this.Ha();return a.Ta()?this.b.rd(a.data):this.b.ag(a.data)};e.prototype.$r=function(){return this.ga};e.prototype.Yr=function(){return this.key};
e.prototype.Xr=function(){return this.index};e.prototype.Wr=function(a){a=a||0;var b=this.k.type,d=null,d=b.ca(),c=d.Ec();if(c.length)d=c[a%c.length].type;else if(d.V.length)d=d.V[a%d.V.length].type;else if(b.c.length)d=b.c[a%b.c.length].type;else return 0;return this.index+d.Nh[b.pd]};e.prototype.Tr=function(){return this.te};e.prototype.Rr=function(){return this.Im};e.prototype.bs=function(){var a,b;a=0;for(b=this.Le.length;a<b;a++)this.mh[a]=this.Le[a].get();return this.mh};Mb=e;u.prototype.za=
function(){this.ma=c(this.ma)};u.prototype.Vi=function(a){var b=this.b.Nm();this.parent&&!this.ng&&b?(this.He>=b.length&&(b.length=this.He+1),b[this.He]=a):this.data=a};u.prototype.Tm=function(){var a=this.b.Nm();return!this.parent||this.ng||!a||this.fi?this.data:this.He>=a.length||"undefined"===typeof a[this.He]?this.ai:a[this.He]};u.prototype.La=function(){!this.parent||this.ng||this.fi||this.Vi(this.ai)};Gb=u;h.prototype.toString=function(){return"include:"+this.fg.toString()};h.prototype.za=function(){this.fg=
this.b.Wj[this.ls];this.sheet.Xm.add(this);this.ma=c(this.ma);for(var a=this.parent;a;)a.group&&a.Ch.push(this),a=a.parent;this.Xo()};h.prototype.La=function(){this.parent&&this.b.Wg(this.b.n);this.fg.uk||this.fg.La(!0);this.parent&&this.b.zf(this.b.n)};h.prototype.Xo=function(){for(var a=this.parent;a;){if(a.group&&!a.Ye){this.Ra=!1;return}a=a.parent}this.Ra=!0};Ob=h;y.prototype.reset=function(a){this.Pb=a;this.Lb=this.zb=0;this.Lo.length=0;this.Uj=this.Ee=!1};Fb=y})();
(function(){function k(c,f){this.k=c;this.b=c.b;this.type=f[0];this.get=[this.hr,this.cr,this.pr,this.sr,this.Wq,this.qr,this.lr,this.Zq,this.kr,this.or,this.Xq,this.nr,this.$q,this.mr,this.ir,this.jr,this.dr,this.er,this.Yq,this.rr,this.Em,this.fr,this.Em,this.br][this.type];var g=null;this.Eb=this.I=this.ea=this.Za=this.gj=this.Xa=this.first=this.value=null;this.kc=-1;this.sd=null;this.Ql=-1;this.te=this.nh=null;this.Zg=!1;switch(this.type){case 0:case 1:case 2:this.value=f[1];break;case 3:this.first=
new U(c,f[1]);break;case 18:this.first=new U(c,f[1]);this.Xa=new U(c,f[2]);this.gj=new U(c,f[3]);break;case 19:this.Za=this.b.Gd(f[1]);this.Za!==W.prototype.Rb.random&&this.Za!==W.prototype.Rb.wq||this.k.Bo();this.ea=[];this.I=[];3===f.length?(g=f[2],this.ea.length=g.length+1):this.ea.length=1;break;case 20:this.Eb=this.b.n[f[1]];this.kc=-1;this.Za=this.b.Gd(f[2]);this.Zg=f[3];Rb.Function&&this.Za===Rb.Function.prototype.Rb.Tt&&this.k.Bo();this.sd=f[4]?new U(c,f[4]):null;this.ea=[];this.I=[];6===
f.length?(g=f[5],this.ea.length=g.length+1):this.ea.length=1;break;case 21:this.Eb=this.b.n[f[1]];this.Zg=f[2];this.sd=f[3]?new U(c,f[3]):null;this.Ql=f[4];break;case 22:this.Eb=this.b.n[f[1]];this.Eb.Th(f[2]);this.kc=this.Eb.gk(f[2]);this.Za=this.b.Gd(f[3]);this.Zg=f[4];this.sd=f[5]?new U(c,f[5]):null;this.ea=[];this.I=[];7===f.length?(g=f[6],this.ea.length=g.length+1):this.ea.length=1;break;case 23:this.nh=f[1],this.te=null}this.k.Fs(this.Eb);4<=this.type&&17>=this.type&&(this.first=new U(c,f[1]),
this.Xa=new U(c,f[2]));if(g){var a,b;a=0;for(b=g.length;a<b;a++)this.I.push(new U(c,g[a]))}}function g(c,f){this.type=c||V.Oe;this.data=f||0;this.tf=null;this.type==V.Oe&&(this.data=Math.floor(this.data))}k.prototype.za=function(){23===this.type&&(this.te=this.k.b.Om(this.nh,this.k.ac.parent));this.first&&this.first.za();this.Xa&&this.Xa.za();this.gj&&this.gj.za();this.sd&&this.sd.za();if(this.I){var c,f;c=0;for(f=this.I.length;c<f;c++)this.I[c].za()}};k.prototype.rr=function(c){this.ea[0]=c;c=this.k.Ka();
var f,g;f=0;for(g=this.I.length;f<g;f++)this.I[f].get(c),this.ea[f+1]=c.data;this.k.Ha();this.Za.apply(this.b.ad,this.ea)};k.prototype.Em=function(c){var f=this.Eb.ca(),g=f.Ec();if(!g.length)if(f.V.length)g=f.V;else{this.Zg?c.ic(""):c.fa(0);return}this.ea[0]=c;c.tf=this.Eb;c=this.k.Ka();var a,f=0;for(a=this.I.length;f<a;f++)this.I[f].get(c),this.ea[f+1]=c.data;f=this.k.be;this.sd&&(this.sd.get(c),c.Ta()&&(f=c.data,g=this.Eb.c));this.k.Ha();f%=g.length;0>f&&(f+=g.length);g=g[f];-1<this.kc?(c=0,this.Eb.B&&
(c=g.type.We[this.Eb.pd]),this.Za.apply(g.G[this.kc+c],this.ea)):this.Za.apply(g,this.ea)};k.prototype.fr=function(c){var f=this.Eb.ca(),g=f.Ec();if(!g.length)if(f.V.length)g=f.V;else{this.Zg?c.ic(""):c.fa(0);return}f=this.k.be;if(this.sd){var a=this.k.Ka();this.sd.get(a);if(a.Ta()){f=a.data;g=this.Eb.c;f%=g.length;0>f&&(f+=g.length);g=g[f].Ia[this.Ql];M(g)?c.ic(g):c.u(g);this.k.Ha();return}this.k.Ha()}f%=g.length;0>f&&(f+=g.length);g=g[f];f=0;this.Eb.B&&(f=g.type.Nh[this.Eb.pd]);g=g.Ia[this.Ql+f];
M(g)?c.ic(g):c.u(g)};k.prototype.hr=function(c){c.type=V.Oe;c.data=this.value};k.prototype.cr=function(c){c.type=V.Ne;c.data=this.value};k.prototype.pr=function(c){c.type=V.String;c.data=this.value};k.prototype.sr=function(c){this.first.get(c);c.Ta()&&(c.data=-c.data)};k.prototype.Wq=function(c){this.first.get(c);var f=this.k.Ka();this.Xa.get(f);c.Ta()&&f.Ta()&&(c.data+=f.data,f.jf()&&c.qf());this.k.Ha()};k.prototype.qr=function(c){this.first.get(c);var f=this.k.Ka();this.Xa.get(f);c.Ta()&&f.Ta()&&
(c.data-=f.data,f.jf()&&c.qf());this.k.Ha()};k.prototype.lr=function(c){this.first.get(c);var f=this.k.Ka();this.Xa.get(f);c.Ta()&&f.Ta()&&(c.data*=f.data,f.jf()&&c.qf());this.k.Ha()};k.prototype.Zq=function(c){this.first.get(c);var f=this.k.Ka();this.Xa.get(f);c.Ta()&&f.Ta()&&(c.data/=f.data,c.qf());this.k.Ha()};k.prototype.kr=function(c){this.first.get(c);var f=this.k.Ka();this.Xa.get(f);c.Ta()&&f.Ta()&&(c.data%=f.data,f.jf()&&c.qf());this.k.Ha()};k.prototype.or=function(c){this.first.get(c);var f=
this.k.Ka();this.Xa.get(f);c.Ta()&&f.Ta()&&(c.data=Math.pow(c.data,f.data),f.jf()&&c.qf());this.k.Ha()};k.prototype.Xq=function(c){this.first.get(c);var f=this.k.Ka();this.Xa.get(f);c.Ta()?f.hi()?c.ic(c.data.toString()+f.data):c.data&&f.data?c.fa(1):c.fa(0):c.hi()&&(c.data=f.hi()?c.data+f.data:c.data+(Math.round(1E10*f.data)/1E10).toString());this.k.Ha()};k.prototype.nr=function(c){this.first.get(c);var f=this.k.Ka();this.Xa.get(f);c.Ta()&&f.Ta()&&(c.data||f.data?c.fa(1):c.fa(0));this.k.Ha()};k.prototype.Yq=
function(c){this.first.get(c);c.data?this.Xa.get(c):this.gj.get(c)};k.prototype.$q=function(c){this.first.get(c);var f=this.k.Ka();this.Xa.get(f);c.fa(c.data===f.data?1:0);this.k.Ha()};k.prototype.mr=function(c){this.first.get(c);var f=this.k.Ka();this.Xa.get(f);c.fa(c.data!==f.data?1:0);this.k.Ha()};k.prototype.ir=function(c){this.first.get(c);var f=this.k.Ka();this.Xa.get(f);c.fa(c.data<f.data?1:0);this.k.Ha()};k.prototype.jr=function(c){this.first.get(c);var f=this.k.Ka();this.Xa.get(f);c.fa(c.data<=
f.data?1:0);this.k.Ha()};k.prototype.dr=function(c){this.first.get(c);var f=this.k.Ka();this.Xa.get(f);c.fa(c.data>f.data?1:0);this.k.Ha()};k.prototype.er=function(c){this.first.get(c);var f=this.k.Ka();this.Xa.get(f);c.fa(c.data>=f.data?1:0);this.k.Ha()};k.prototype.br=function(c){var f=this.te.Tm();K(f)?c.u(f):c.ic(f)};U=k;g.prototype.jf=function(){return this.type===V.Ne};g.prototype.Ta=function(){return this.type===V.Oe||this.type===V.Ne};g.prototype.hi=function(){return this.type===V.String};
g.prototype.qf=function(){this.jf()||(this.hi()&&(this.data=parseFloat(this.data)),this.type=V.Ne)};g.prototype.fa=function(c){this.type=V.Oe;this.data=Math.floor(c)};g.prototype.u=function(c){this.type=V.Ne;this.data=c};g.prototype.ic=function(c){this.type=V.String;this.data=c};g.prototype.zt=function(c){K(c)?(this.type=V.Ne,this.data=c):M(c)?(this.type=V.String,this.data=c.toString()):(this.type=V.Oe,this.data=0)};Pb=g;V={Oe:0,Ne:1,String:2}})();function W(k){this.b=k;this.Kb=[]}
W.prototype.Xb=function(){var k={},g,c,f,s,a,b,d,q;k.waits=[];var e=k.waits,u;g=0;for(c=this.Kb.length;g<c;g++){b=this.Kb[g];u={t:b.time,st:b.Io,s:b.zl,ev:b.Ve.P,sm:[],sols:{}};b.Ve.zc[b.Lb]&&(u.act=b.Ve.zc[b.Lb].P);f=0;for(s=b.ma.length;f<s;f++)u.sm.push(b.ma[f].P);for(a in b.sb)if(b.sb.hasOwnProperty(a)){d=this.b.n[parseInt(a,10)];q={sa:b.sb[a].Ri,insts:[]};f=0;for(s=b.sb[a].td.length;f<s;f++)q.insts.push(b.sb[a].td[f].uid);u.sols[d.P.toString()]=q}e.push(u)}return k};
W.prototype.tc=function(k){k=k.waits;var g,c,f,s,a,b,d,q,e,u,h;g=this.Kb.length=0;for(c=k.length;g<c;g++)if(b=k[g],q=this.b.pm[b.ev.toString()]){e=-1;f=0;for(s=q.zc.length;f<s;f++)if(q.zc[f].P===b.act){e=f;break}if(-1!==e){d={sb:{},ma:[],Rj:!1};d.time=b.t;d.Io=b.st||"";d.zl=!!b.s;d.Ve=q;d.Lb=e;f=0;for(s=b.sm.length;f<s;f++)(q=this.b.Wh(b.sm[f]))&&d.ma.push(q);for(a in b.sols)if(b.sols.hasOwnProperty(a)&&(q=this.b.Wh(parseInt(a,10)))){e=b.sols[a];u={Ri:e.sa,td:[]};f=0;for(s=e.insts.length;f<s;f++)(h=
this.b.Vh(e.insts[f]))&&u.td.push(h);d.sb[q.index.toString()]=u}this.Kb.push(d)}}};
(function(){function k(){}function g(){}function c(){}var f=W.prototype;k.prototype.Xl=function(){return!0};k.prototype.Op=function(){return!0};k.prototype.jp=function(a,d,c){return Qb(a.Tm(),d,c)};k.prototype.kp=function(){var a=this.b.nb();return a.Uj?!1:!a.Ee};k.prototype.Yl=function(){return!0};k.prototype.Bp=function(){return!0};k.prototype.wj=function(){return!0};k.prototype.Pp=function(){return!0};k.prototype.uj=function(){return!0};k.prototype.fp=function(a,d,c){return Ga(Q(a),Q(c))<=Q(d)};
k.prototype.np=function(a,d){return R(Q(a),Q(d))};k.prototype.lp=function(a,d,c){a=Ea(a);d=Ea(d);c=Ea(c);return R(c,d)?R(a,d)&&!R(a,c):!(!R(a,d)&&R(a,c))};f.j=new k;g.prototype.vp=function(a){if(!this.b.lf&&!this.b.me){var d=this.b.Vb.indexOf(this.b.Z);if(!a||0!==d)if(a||d!==this.b.Vb.length-1)this.b.me=this.b.Vb[d+(a?-1:1)]}};g.prototype.bq=function(a,d){0===a.dp?K(d)?a.Vi(d):a.Vi(parseFloat(d)):1===a.dp&&a.Vi(d.toString())};var s=[],a=[];g.prototype.cq=function(b){if(!(0>b)){var d,c,e,f=this.b.nb(),
h;h=s.length?s.pop():{sb:{},ma:[]};h.Rj=!1;h.time=this.b.gc.aa+b;h.Io="";h.zl=!1;h.Ve=f.Pb;h.Lb=f.Lb+1;b=0;for(d=this.b.n.length;b<d;b++)e=this.b.n[b],c=e.ca(),c.ja&&-1===f.Pb.ma.indexOf(e)||(h.ma.push(e),e=void 0,e=a.length?a.pop():{td:[]},e.Ri=!1,e.Ri=c.ja,ua(e.td,c.c),h.sb[b.toString()]=e);this.Kb.push(h);return!0}};g.prototype.Up=function(){var a,d,c;a=0;for(d=this.b.zj.length;a<d;a++)c=this.b.zj[a],c.data=c.ai};g.prototype.Vp=function(){if(!this.b.lf&&!this.b.me&&this.b.Z){this.b.me=this.b.Z;
var a,d,c;a=0;for(d=this.b.Jd.length;a<d;a++)c=this.b.Jd[a],c.ut(c.bi)}};g.prototype.Wp=function(a){this.b.Si=a};g.prototype.up=function(a){this.b.xg=a};f.ra=new g;c.prototype["int"]=function(a,d){M(d)?(a.fa(parseInt(d,10)),isNaN(a.data)&&(a.data=0)):a.fa(d)};c.prototype["float"]=function(a,d){M(d)?(a.u(parseFloat(d)),isNaN(a.data)&&(a.data=0)):a.u(d)};c.prototype.random=function(a,d,c){void 0===c?a.u(Math.random()*d):a.u(Math.random()*(c-d)+d)};c.prototype.sqrt=function(a,d){a.u(Math.sqrt(d))};c.prototype.abs=
function(a,d){a.u(Math.abs(d))};c.prototype.round=function(a,d){a.fa(Math.round(d))};c.prototype.floor=function(a,d){a.fa(Math.floor(d))};c.prototype.ceil=function(a,d){a.fa(Math.ceil(d))};c.prototype.sin=function(a,d){a.u(Math.sin(Q(d)))};c.prototype.cos=function(a,d){a.u(Math.cos(Q(d)))};c.prototype.tan=function(a,d){a.u(Math.tan(Q(d)))};c.prototype.asin=function(a,d){a.u(za(Math.asin(d)))};c.prototype.acos=function(a,d){a.u(za(Math.acos(d)))};c.prototype.atan=function(a,d){a.u(za(Math.atan(d)))};
c.prototype.exp=function(a,d){a.u(Math.exp(d))};c.prototype.log10=function(a,d){a.u(Math.log(d)/Math.LN10)};c.prototype.max=function(a){var d=arguments[1];"number"!==typeof d&&(d=0);var c,e,f;c=2;for(e=arguments.length;c<e;c++)f=arguments[c],"number"===typeof f&&d<f&&(d=f);a.u(d)};c.prototype.min=function(a){var d=arguments[1];"number"!==typeof d&&(d=0);var c,e,f;c=2;for(e=arguments.length;c<e;c++)f=arguments[c],"number"===typeof f&&d>f&&(d=f);a.u(d)};c.prototype.re=function(a){a.u(this.b.re)};c.prototype.If=
function(a){a.u(this.b.If)};c.prototype.time=function(a){a.u(this.b.gc.aa)};c.prototype.jh=function(a){a.fa(this.b.jh)};c.prototype.xi=function(a){a.fa(this.b.xi)};c.prototype.ck=function(a){a.fa(this.b.ck)};c.prototype.e=function(a,d,c,e,f){a.u(za(Fa(d,c,e,f)))};c.prototype.find=function(a,d,c){M(d)&&M(c)?a.fa(d.search(new RegExp(Va(c),"i"))):a.fa(-1)};c.prototype.left=function(a,d,c){a.ic(M(d)?d.substr(0,c):"")};c.prototype.right=function(a,d,c){a.ic(M(d)?d.substr(d.length-c):"")};c.prototype.replace=
function(a,d,c,e){M(d)&&M(c)&&M(e)?a.ic(d.replace(new RegExp(Va(c),"gi"),e)):a.ic(M(d)?d:"")};c.prototype.trim=function(a,d){a.ic(M(d)?d.trim():"")};c.prototype.wq=function(a){var d=O(Math.random()*(arguments.length-1));a.zt(arguments[d+1])};c.prototype.Lj=function(a){a.u(this.b.Lj/1E3)};c.prototype.qi=function(a){a.u(this.b.qi)};f.Rb=new c;f.kt=function(){var b,d,c,e,f,h,g=this.b.nb();b=0;for(c=this.Kb.length;b<c;b++){e=this.Kb[b];if(-1===e.time){if(!e.zl)continue}else if(e.time>this.b.gc.aa)continue;
g.Pb=e.Ve;g.Lb=e.Lb;g.zb=0;for(d in e.sb)e.sb.hasOwnProperty(d)&&(f=this.b.n[parseInt(d,10)].ca(),h=e.sb[d],f.ja=h.Ri,ua(f.c,h.td),f=h,f.td.length=0,a.push(f));e.Ve.jt();this.b.Kj(e.ma);e.Rj=!0}d=b=0;for(c=this.Kb.length;b<c;b++)e=this.Kb[b],this.Kb[d]=e,e.Rj?(Qa(e.sb),e.ma.length=0,s.push(e)):d++;this.Kb.length=d}})();
(function(){db=function(g,c){var f=g[1],k=g[3],a=g[4],b=g[5],d=g[6],q=g[7],e=g[8];c.j||(c.j={});c.ra||(c.ra={});c.Rb||(c.Rb={});var u=c.j,h=c.ra,y=c.Rb;k&&(u.Yt=function(a,b){return Qb(this.x,a,b)},u.Zt=function(a,b){return Qb(this.y,a,b)},u.fu=function(){var a=this.d;this.Ba();var b=this.Da;return!(b.right<a.Pa||b.bottom<a.Qa||b.left>a.eb||b.top>a.cb)},u.gu=function(){this.Ba();var a=this.Da,b=this.b.Z;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},u.su=function(a,b,d){var c=this.ca(),
e=c.Ec();if(!e.length)return!1;var h=e[0],f=h,g=Na(h.x,h.y,b,d),k,s,q;k=1;for(s=e.length;k<s;k++)if(h=e[k],q=Na(h.x,h.y,b,d),0===a&&q<g||1===a&&q>g)g=q,f=h;c.Ug(f);return!0},h.Ku=function(a){this.x!==a&&(this.x=a,this.Aa())},h.Lu=function(a){this.y!==a&&(this.y=a,this.Aa())},h.$p=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Aa()},h.Gu=function(a,b){var d=a.Mr(this);if(d){var c;d.mk?(c=d.mk(b,!0),d=d.mk(b,!1)):(c=d.x,d=d.y);if(this.x!==c||this.y!==d)this.x=c,this.y=d,this.Aa()}},
h.lu=function(a){0!==a&&(this.x+=Math.cos(this.e)*a,this.y+=Math.sin(this.e)*a,this.Aa())},h.ku=function(a,b){0!==b&&(this.x+=Math.cos(Q(a))*b,this.y+=Math.sin(Q(a))*b,this.Aa())},y.em=function(a){a.u(this.x)},y.fm=function(a){a.u(this.y)},y.re=function(a){a.u(this.b.jk(this))});a&&(u.Xt=function(a,b){return Qb(this.width,a,b)},u.Ut=function(a,b){return Qb(this.height,a,b)},h.Ju=function(a){this.width!==a&&(this.width=a,this.Aa())},h.Eu=function(a){this.height!==a&&(this.height=a,this.Aa())},h.aq=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Aa()},y.Pu=function(a){a.u(this.width)},y.bu=function(a){a.u(this.height)},y.Qt=function(a){this.Ba();a.u(this.Da.left)},y.St=function(a){this.Ba();a.u(this.Da.top)},y.Rt=function(a){this.Ba();a.u(this.Da.right)},y.Pt=function(a){this.Ba();a.u(this.Da.bottom)});b&&(u.fp=function(a,b){return Ga(this.e,Q(b))<=Q(a)},u.np=function(a){return R(this.e,Q(a))},u.lp=function(a,b){var d=Ea(a),c=Ea(b),e=Ba(this.e);return R(c,d)?
R(e,d)&&!R(e,c):!(!R(e,d)&&R(e,c))},h.Au=function(a){a=Q(Aa(a));isNaN(a)||this.e===a||(this.e=a,this.Aa())},h.wu=function(a){0===a||isNaN(a)||(this.e+=Q(a),this.e=Ba(this.e),this.Aa())},h.xu=function(a){0===a||isNaN(a)||(this.e-=Q(a),this.e=Ba(this.e),this.Aa())},h.yu=function(a,b){var d=Ha(this.e,Q(b),Q(a));isNaN(d)||this.e===d||(this.e=d,this.Aa())},h.zu=function(a,b,d){a=Ha(this.e,Math.atan2(d-this.y,b-this.x),Q(a));isNaN(a)||this.e===a||(this.e=a,this.Aa())},h.Hu=function(a,b){var d=Math.atan2(b-
this.y,a-this.x);isNaN(d)||this.e===d||(this.e=d,this.Aa())},y.Ot=function(a){a.u(Ca(this.e))});f||(u.Vt=function(a,b,d){return Qb(this.Ia[a],b,d)},u.du=function(a){return this.Ia[a]},u.tu=function(a,b){var d=this.ca(),c=d.Ec();if(!c.length)return!1;var e=c[0],h=e,f=e.Ia[b],g,k,s;g=1;for(k=c.length;g<k;g++)if(e=c[g],s=e.Ia[b],0===a&&s<f||1===a&&s>f)f=s,h=e;d.Ug(h);return!0},u.ru=function(a){var b,d,c,e,h;if(this.b.ik().cf){h=this.ca();if(h.ja)for(h.ja=!1,h.c.length=0,h.V.length=0,c=this.c,b=0,d=c.length;b<
d;b++)e=c[b],e.uid===a?h.V.push(e):h.c.push(e);else{c=b=0;for(d=h.c.length;b<d;b++)e=h.c[b],h.c[c]=e,e.uid===a?h.V.push(e):c++;h.c.length=c}this.gd();return!!h.c.length}e=this.b.Vh(a);if(!e)return!1;h=this.ca();if(!h.ja&&-1===h.c.indexOf(e))return!1;if(this.B)for(a=e.type.pa,b=0,d=a.length;b<d;b++){if(a[b]===this)return h.Ug(e),this.gd(),!0}else if(e.type===this)return h.Ug(e),this.gd(),!0;return!1},u.Cp=function(){return!0},u.Dp=function(){return!0},h.Fu=function(a,b){var d=this.Ia;K(d[a])?d[a]=
K(b)?b:parseFloat(b):M(d[a])&&(d[a]=M(b)?b:b.toString())},h.Nt=function(a,b){var d=this.Ia;K(d[a])?d[a]=K(b)?d[a]+b:d[a]+parseFloat(b):M(d[a])&&(d[a]=M(b)?d[a]+b:d[a]+b.toString())},h.Mu=function(a,b){var d=this.Ia;K(d[a])&&(d[a]=K(b)?d[a]-b:d[a]-parseFloat(b))},h.Bu=function(a,b){this.Ia[a]=b?1:0},h.Nu=function(a){this.Ia[a]=1-this.Ia[a]},h.au=function(){this.b.Fd(this)},h.tp||(h.tp=function(a){var b,d;try{b=JSON.parse(a)}catch(c){return}this.b.oi(this,b,!0);this.ed&&this.ed();if(this.G)for(a=0,
b=this.G.length;a<b;++a)d=this.G[a],d.ed&&d.ed()}),y.$t=function(a){var b=a.tf.c.length,d,c,e;d=0;for(c=this.b.Cc.length;d<c;d++)e=this.b.Cc[d],a.tf.B?0<=e.type.pa.indexOf(a.tf)&&b++:e.type===a.tf&&b++;a.fa(b)},y.vu=function(a){a.fa(a.tf.ca().Ec().length)},y.Ou=function(a){a.fa(this.uid)},y.cu=function(a){a.fa(this.cg())},y.gp||(y.gp=function(a){a.ic(JSON.stringify(this.b.ul(this,!0)))}));d&&(u.hu=function(){return this.visible},h.Iu=function(a){!a!==!this.visible&&(this.visible=a,this.b.ha=!0)},
u.Wt=function(a,b){return Qb($a(100*this.opacity),a,b)},h.Zp=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ha=!0)},y.Opacity=function(a){a.u($a(100*this.opacity))});q&&(u.eu=function(a){return a?this.d===a:!1},u.uu=function(a){var b=this.ca(),d=b.Ec();if(!d.length)return!1;var c=d[0],e=c,h,f;h=1;for(f=d.length;h<f;h++)if(c=d[h],0===a){if(c.d.index>e.d.index||c.d.index===e.d.index&&c.Sb()>e.Sb())e=c}else if(c.d.index<e.d.index||c.d.index===e.d.index&&c.Sb()<e.Sb())e=
c;b.Ug(e);return!0},h.ou=function(){var a=this.Sb();a!==this.d.c.length-1&&(ta(this.d.c,a),this.d.c.push(this),this.b.ha=!0,this.d.$b=!0)},h.mu=function(){var a=this.Sb();0!==a&&(ta(this.d.c,a),this.d.c.unshift(this),this.b.ha=!0,this.d.$b=!0)},h.nu=function(a){a&&a!=this.d&&(ta(this.d.c,this.Sb()),this.d.$b=!0,this.d=a,this.Me=a.c.length,a.c.push(this),this.b.ha=!0)},h.Ru=function(a,b){var d=0===a;if(b){var c=b.Hr(this);if(c&&c.uid!==this.uid){this.d.index!==c.d.index&&(ta(this.d.c,this.Sb()),this.d.$b=
!0,this.d=c.d,this.Me=c.d.c.length,c.d.c.push(this));var e=this.Sb(),c=c.Sb();ta(this.d.c,e);e<c&&c--;d&&c++;c===this.d.c.length?this.d.c.push(this):this.d.c.splice(c,0,this);this.d.$b=!0;this.b.ha=!0}}},y.ju=function(a){a.fa(this.d.Sn)},y.iu=function(a){a.ic(this.d.name)},y.Qu=function(a){a.fa(this.Sb())});e&&(h.Cu=function(a,b){if(this.b.q){var d=this.type.lk(b);if(!(0>d)){var c=1===a;this.Hd[d]!==c&&(this.Hd[d]=c,this.Ed(),this.b.ha=!0)}}},h.Du=function(a,b,d){if(this.b.q){var c=this.type.lk(a);
0>c||(a=this.type.H[c],c=this.ua[c],b=Math.floor(b),0>b||b>=c.length||(1===this.b.q.Qr(a.bb,b)&&(d/=100),c[b]!==d&&(c[b]=d,a.Ra&&(this.b.ha=!0))))}})};yb=function(){this.Hj=this.xh=!0;this.type.rh=!0;this.b.ha=!0;var g,c,f=this.Fj;g=0;for(c=f.length;g<c;++g)f[g](this)};zb=function(g){g&&this.Fj.push(g)};Bb=function(){if(this.xh){var g=this.Da,c=this.Nb;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Bb*this.width,-this.Cb*this.height);this.e?(g.offset(-this.x,-this.y),c.Do(g,
this.e),c.offset(this.x,this.y),c.qm(g)):c.Df(g);g.normalize();this.xh=!1}};var k=new qa(0,0,0,0);Cb=function(){if(this.Hj&&this.Bc){this.Ba();var g=this.type.Tf,c=this.Nd,f=this.Da;k.set(g.ph(f.left),g.qh(f.top),g.ph(f.right),g.qh(f.bottom));c.Vq(k)||(c.right<c.left?g.update(this,null,k):g.update(this,c,k),c.yq(k),this.Hj=!1)}};Ab=function(g,c){return this.Da.lb(g,c)&&this.Nb.lb(g,c)?this.W&&!this.W.hf()?(this.W.Se(this.width,this.height,this.e),this.W.lb(g-this.x,c-this.y)):!0:!1};ub=function(){this.type.oj();
return this.ye};Db=function(){this.d.bp();return this.Me};Eb=function(){this.U.length=0;var g,c;g=0;for(c=this.Hd.length;g<c;g++)this.Hd[g]&&this.U.push(this.type.H[g]);this.cp=!!this.U.length};vb=function(){return"Inst"+this.qo};gb=function(g){if(g&&g.Gc&&g.type!=this){var c,f,k;c=0;for(f=g.siblings.length;c<f;c++)if(k=g.siblings[c],k.type==this)return k}g=this.ca().Ec();return g.length?g[0]:null};hb=function(g){var c=this.ca().Ec();return c.length?c[g.cg()%c.length]:null};fb=function(){if(this.Gf&&
!this.B){var g,c;g=0;for(c=this.c.length;g<c;g++)this.c[g].ye=g;var f=g,k=this.b.Cc;g=0;for(c=k.length;g<c;++g)k[g].type===this&&(k[g].ye=f++);this.Gf=!1}};sb=function(g){if(g<this.c.length)return this.c[g];g-=this.c.length;var c=this.b.Cc,f,k;f=0;for(k=c.length;f<k;++f)if(c[f].type===this){if(0===g)return c[f];--g}return null};ib=function(){return this.de[this.md]};jb=function(){this.md++;this.md===this.de.length?this.de.push(new eb(this)):this.de[this.md].ja=!0};kb=function(){this.md++;this.md===
this.de.length&&this.de.push(new eb(this));var g=this.de[this.md],c=this.de[this.md-1];c.ja?g.ja=!0:(g.ja=!1,ua(g.c,c.c),ua(g.V,c.V))};nb=function(){this.md--};ob=function(g){var c,f,k,a,b,d=0;if(!this.B)for(c=0,f=this.pa.length;c<f;c++)for(b=this.pa[c],k=0,a=b.Ea.length;k<a;k++){if(g===b.Ea[k].name)return this.va.lastBehIndex=d,b.Ea[k];d++}c=0;for(f=this.Ea.length;c<f;c++){if(g===this.Ea[c].name)return this.va.lastBehIndex=d,this.Ea[c];d++}return null};pb=function(g){return this.Th(g)?this.va.lastBehIndex:
-1};qb=function(g){var c,f;c=0;for(f=this.H.length;c<f;c++)if(this.H[c].name===g)return c;return-1};rb=function(){if(this.Gc&&!this.B){var g,c,f,k,a,b,d;this.oj();b=this.ca();var q=b.ja,e=(g=this.b.nb())&&g.Pb&&g.Pb.Ic;g=0;for(c=this.Ob.length;g<c;g++)if(a=this.Ob[g],a!==this&&(a.oj(),d=a.ca(),d.ja=q,!q)){d.c.length=b.c.length;f=0;for(k=b.c.length;f<k;f++)d.c[f]=a.Pm(b.c[f].ye);if(e)for(d.V.length=b.V.length,f=0,k=b.V.length;f<k;f++)d.V[f]=a.Pm(b.V[f].ye)}}};tb=function(){return"Type"+this.P};Qb=
function(g,c,f){if("undefined"===typeof g||"undefined"===typeof f)return!1;switch(c){case 0:return g===f;case 1:return g!==f;case 2:return g<f;case 3:return g<=f;case 4:return g>f;case 5:return g>=f;default:return!1}}})();var Zb={};function bc(k){this.b=k}
(function(){function k(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function g(a){a=a.toLowerCase();return N.hasOwnProperty(a)&&N[a].length?N[a][0].cc():x.destination}function c(){return x.createGain?x.createGain():x.createGainNode()}function f(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function s(a){a.start?a.start(0):a.noteOn(0)}function a(a,b,d){a.start?a.start(0,b):a.noteGrainOn(0,b,d-b)}function b(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function d(a,
b,d,e,h,f){this.type="filter";this.Jc=[a,b,d,e,h,f];this.R=c();this.F=c();this.F.gain.value=f;this.C=c();this.C.gain.value=1-f;this.Fa=x.createBiquadFilter();this.Fa.type="number"===typeof this.Fa.type?a:lc[a];this.Fa.frequency.value=b;this.Fa.detune&&(this.Fa.detune.value=d);this.Fa.Q.value=e;this.Fa.gain.value=h;this.R.connect(this.Fa);this.R.connect(this.C);this.Fa.connect(this.F)}function q(a,b,d){this.type="delay";this.Jc=[a,b,d];this.R=c();this.F=c();this.F.gain.value=d;this.C=c();this.C.gain.value=
1-d;this.Gg=c();this.nc=f(a);this.nc.delayTime.value=a;this.Kh=c();this.Kh.gain.value=b;this.R.connect(this.Gg);this.R.connect(this.C);this.Gg.connect(this.F);this.Gg.connect(this.nc);this.nc.connect(this.Kh);this.Kh.connect(this.Gg)}function e(a,b,d,e){this.type="convolve";this.Jc=[b,d,e];this.R=c();this.F=c();this.F.gain.value=d;this.C=c();this.C.gain.value=1-d;this.ne=x.createConvolver();a&&(this.ne.normalize=b,this.ne.buffer=a);this.R.connect(this.ne);this.R.connect(this.C);this.ne.connect(this.F)}
function u(a,b,d,e,h){this.type="flanger";this.Jc=[a,b,d,e,h];this.R=c();this.C=c();this.C.gain.value=1-h/2;this.F=c();this.F.gain.value=h/2;this.Oh=c();this.Oh.gain.value=e;this.nc=f(a+b);this.nc.delayTime.value=a;this.Wa=x.createOscillator();this.Wa.frequency.value=d;this.Wb=c();this.Wb.gain.value=b;this.R.connect(this.nc);this.R.connect(this.C);this.nc.connect(this.F);this.nc.connect(this.Oh);this.Oh.connect(this.nc);this.Wa.connect(this.Wb);this.Wb.connect(this.nc.delayTime);s(this.Wa)}function h(a,
b,d,e,h,f){this.type="phaser";this.Jc=[a,b,d,e,h,f];this.R=c();this.C=c();this.C.gain.value=1-f/2;this.F=c();this.F.gain.value=f/2;this.Fa=x.createBiquadFilter();this.Fa.type="number"===typeof this.Fa.type?7:"allpass";this.Fa.frequency.value=a;this.Fa.detune&&(this.Fa.detune.value=b);this.Fa.Q.value=d;this.Wa=x.createOscillator();this.Wa.frequency.value=h;this.Wb=c();this.Wb.gain.value=e;this.R.connect(this.Fa);this.R.connect(this.C);this.Fa.connect(this.F);this.Wa.connect(this.Wb);this.Wb.connect(this.Fa.frequency);
s(this.Wa)}function y(a){this.type="gain";this.Jc=[a];this.T=c();this.T.gain.value=a}function l(a,b){this.type="tremolo";this.Jc=[a,b];this.T=c();this.T.gain.value=1-b/2;this.Wa=x.createOscillator();this.Wa.frequency.value=a;this.Wb=c();this.Wb.gain.value=b/2;this.Wa.connect(this.Wb);this.Wb.connect(this.T.gain);s(this.Wa)}function A(a,b){this.type="ringmod";this.Jc=[a,b];this.R=c();this.F=c();this.F.gain.value=b;this.C=c();this.C.gain.value=1-b;this.$g=c();this.$g.gain.value=0;this.Wa=x.createOscillator();
this.Wa.frequency.value=a;this.Wa.connect(this.$g.gain);s(this.Wa);this.R.connect(this.$g);this.R.connect(this.C);this.$g.connect(this.F)}function z(a,b,d,e,h){this.type="distortion";this.Jc=[a,b,d,e,h];this.R=c();this.Li=c();this.Ki=c();this.tt(d,Math.pow(10,e/20));this.F=c();this.F.gain.value=h;this.C=c();this.C.gain.value=1-h;this.qj=x.createWaveShaper();this.Ih=new Float32Array(65536);this.Dr(a,b);this.qj.Ih=this.Ih;this.R.connect(this.Li);this.R.connect(this.C);this.Li.connect(this.qj);this.qj.connect(this.Ki);
this.Ki.connect(this.F)}function m(a,b,d,c,e){this.type="compressor";this.Jc=[a,b,d,c,e];this.T=x.createDynamicsCompressor();try{this.T.threshold.value=a,this.T.knee.value=b,this.T.ratio.value=d,this.T.attack.value=c,this.T.release.value=e}catch(h){}}function n(a,b){this.type="analyser";this.Jc=[a,b];this.T=x.createAnalyser();this.T.fftSize=a;this.T.smoothingTimeConstant=b;this.Br=new Float32Array(this.T.frequencyBinCount);this.Go=new Uint8Array(a);this.Tg=0}function p(){this.D=null;this.pi=0;this.ee=
[];this.Vk=this.ki=this.ji=0}function t(a,b){this.src=a;this.N=D;this.Hc=b;this.lm=!1;var d=this;this.Tk=this.el=null;this.xf=[];this.Ti=0;this.Ul=this.$j=this.Ko=this.Hi=!1;1===D&&b&&(this.N=0,this.el=c());this.ke=this.X=null;var e;switch(this.N){case 0:this.X=new Audio;this.X.addEventListener("canplaythrough",function(){d.Ul=!0});1===D&&x.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Ko=!0,this.X.addEventListener("canplay",function(){d.Tk||(d.Tk=x.createMediaElementSource(d.X),
d.Tk.connect(d.el))}));this.X.autoplay=!1;this.X.$u="auto";this.X.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){d.ke=e.response;d.Cq()};e.onerror=function(){d.$j=!0};e.send();break;case 2:this.X=!0;break;case 3:this.X=!0}}function r(a,b){var d=this;this.tag=b;this.Zb=this.Uc=!0;this.src=a.src;this.buffer=a;this.N=D;this.Hc=a.Hc;this.playbackRate=1;this.gl=!0;this.rc=this.Ad=!1;this.Hb=0;this.mg=this.kf=this.Wc=!1;this.volume=1;this.Be=
1===S&&!this.Hc||2===S;this.rf=1;this.startTime=this.Be?w.gc.aa:w.dd.aa;this.xa=this.Ga=null;this.Xc=!1;this.wa=null;this.ao=this.$n=this.Zn=this.Yn=this.co=this.bo=0;this.i=null;var e=!1;1!==this.N||0!==this.buffer.N||this.buffer.Ko||(this.N=0);switch(this.N){case 0:this.Hc?(this.i=a.X,e=!a.lm,a.lm=!0):(this.i=new Audio,this.i.autoplay=!1,this.i.src=a.X.src,e=!0);e&&this.i.addEventListener("ended",function(){X=d.tag;d.Zb=!0;w.trigger(bc.prototype.j.tj,ja)});break;case 1:this.Ga=c();this.Ga.connect(g(b));
1===this.buffer.N?a.X&&(this.i=x.createBufferSource(),this.i.buffer=a.X,this.i.connect(this.Ga)):(this.i=this.buffer.X,this.buffer.el.connect(this.Ga));break;case 2:this.i=new window.Media(J+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.gl=!0,d.Zb=!0,X=d.tag,w.trigger(bc.prototype.j.tj,ja))});break;case 3:this.i=!0}}function C(a,b){N.hasOwnProperty(a)?N[a].push(b):N[a]=[b];var d,c,e,h,f=x.destination;if(N.hasOwnProperty(a)&&(e=N[a],e.length))for(f=e[0].cc(),d=0,c=e.length;d<c;d++)h=
e[d],d+1===c?h.lc(x.destination):h.lc(e[d+1].cc());Da.length=0;if(a.length)for(d=0,c=B.length;d<c;d++)e=B[d],ab(a,e.tag)&&Da.push(e);else G&&!G.xe()&&(Da.length=1,Da[0]=G);d=0;for(c=Da.length;d<c;d++)Da[d].et(f);xa&&lb===a&&(xa.disconnect(),xa.connect(f))}function ia(){}function ba(){}var v=bc.prototype;v.gb=function(a){this.ya=a;this.b=a.b};v.gb.prototype.la=function(){};var w=null,ja=null,X="",J="",D=0,x=null,P=[],B=[],G=null,E=!1,S=0,F=!1,H=1,L=0,Y=0,la=1,mb=1,fc=10,gc=1E4,hc=1,xa=null,lb="",Ja=
!1,Ka=[],N={},lc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");d.prototype.lc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};d.prototype.remove=function(){this.R.disconnect();this.Fa.disconnect();this.F.disconnect();this.C.disconnect()};d.prototype.cc=function(){return this.R};q.prototype.lc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};q.prototype.remove=function(){this.R.disconnect();
this.Gg.disconnect();this.nc.disconnect();this.Kh.disconnect();this.F.disconnect();this.C.disconnect()};q.prototype.cc=function(){return this.R};e.prototype.lc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};e.prototype.remove=function(){this.R.disconnect();this.ne.disconnect();this.F.disconnect();this.C.disconnect()};e.prototype.cc=function(){return this.R};u.prototype.lc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};
u.prototype.remove=function(){this.R.disconnect();this.nc.disconnect();this.Wa.disconnect();this.Wb.disconnect();this.C.disconnect();this.F.disconnect();this.Oh.disconnect()};u.prototype.cc=function(){return this.R};h.prototype.lc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};h.prototype.remove=function(){this.R.disconnect();this.Fa.disconnect();this.Wa.disconnect();this.Wb.disconnect();this.C.disconnect();this.F.disconnect()};h.prototype.cc=function(){return this.R};
y.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};y.prototype.remove=function(){this.T.disconnect()};y.prototype.cc=function(){return this.T};l.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};l.prototype.remove=function(){this.Wa.disconnect();this.Wb.disconnect();this.T.disconnect()};l.prototype.cc=function(){return this.T};A.prototype.lc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};A.prototype.remove=function(){this.Wa.disconnect();
this.$g.disconnect();this.R.disconnect();this.F.disconnect();this.C.disconnect()};A.prototype.cc=function(){return this.R};z.prototype.tt=function(a,b){.01>a&&(a=.01);this.Li.gain.value=a;this.Ki.gain.value=Math.pow(1/a,.6)*b};z.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};z.prototype.Dr=function(a,b){for(var d=Math.pow(10,a/20),c=Math.pow(10,b/20),e=0,h=0;32768>h;++h)e=h/32768,e=this.shape(e,d,c),this.Ih[32768+h]=e,this.Ih[32768-
h-1]=-e};z.prototype.lc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};z.prototype.remove=function(){this.R.disconnect();this.Li.disconnect();this.qj.disconnect();this.Ki.disconnect();this.F.disconnect();this.C.disconnect()};z.prototype.cc=function(){return this.R};m.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};m.prototype.remove=function(){this.T.disconnect()};m.prototype.cc=function(){return this.T};n.prototype.Ya=function(){this.T.getFloatFrequencyData(this.Br);
this.T.getByteTimeDomainData(this.Go);for(var a=this.T.fftSize,b=0,d=this.Tg=0,c=0;b<a;b++)c=(this.Go[b]-128)/128,0>c&&(c=-c),this.Tg<c&&(this.Tg=c),d+=c*c;this.Tg=k(this.Tg);k(Math.sqrt(d/a))};n.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};n.prototype.remove=function(){this.T.disconnect()};n.prototype.cc=function(){return this.T};p.prototype.ah=function(a){if(this.D=a)this.ji=this.D.x,this.ki=this.D.y;this.ee.length=0};p.prototype.$h=function(){return!!this.D};p.prototype.Ya=function(a){this.D&&
0!==a&&(this.Vk=Fa(this.ji,this.ki,this.D.x,this.D.y),a=Na(this.ji,this.ki,this.D.x,this.D.y)/a,4>this.ee.length||this.ee.shift(),this.ee.push(a),this.ji=this.D.x,this.ki=this.D.y)};p.prototype.Sm=function(){if(!this.ee.length)return 0;var a,b,d=0;a=0;for(b=this.ee.length;a<b;a++)d+=this.ee[a];return d/this.ee.length};p.prototype.pk=function(){return Math.cos(this.Vk)*this.Sm()};p.prototype.qk=function(){return Math.sin(this.Vk)*this.Sm()};var ic=!1;t.prototype.Cq=function(){if(!this.X&&this.ke){var a=
this;if(x.decodeAudioData)x.decodeAudioData(this.ke,function(b){a.X=b;a.ke=null;var d,c,e;if(fa(a.Ii)||F)fa(a.Dh)||(d=a.Dh.ne,d.normalize=a.Rn,d.buffer=b);else if(a.xf.length){d=0;for(c=a.xf.length;d<c;d++){b=a.xf[d];e=new r(a,b.No);e.xl(!0);if("undefined"!==typeof b.Tn&&(b.D=w.Vh(b.Tn),!b.D))continue;if(b.D){var h=Ia(b.D.x,b.D.y,-b.D.d.Sa(),L,Y,!0),f=Ia(b.D.x,b.D.y,-b.D.d.Sa(),L,Y,!1);e.wl(h,f,za(b.D.e-b.D.d.Sa()),b.vk,b.Wk,b.Zk);e.ah(b.D)}else e.wl(b.x,b.y,b.dq,b.vk,b.Wk,b.Zk);e.play(a.Qk,a.Sl,
a.Ti);a.Hi&&e.pause();B.push(e)}a.xf.length=0}else e=new r(a,a.Ii),e.play(a.Qk,a.Sl,a.Ti),a.Hi&&e.pause(),B.push(e)},function(){a.$j=!0});else if(this.X=x.createBuffer(this.ke,!1),this.ke=null,fa(this.Ii)||F)fa(this.Dh)||(b=this.Dh.ne,b.normalize=this.Rn,b.buffer=this.X);else{var b=new r(this,this.Ii);b.play(this.Qk,this.Sl,this.Ti);this.Hi&&b.pause();B.push(b)}}};t.prototype.dn=function(){switch(this.N){case 0:var a=4<=this.X.readyState;a&&(this.Ul=!0);return a||this.Ul;case 1:return!!this.ke||!!this.X;
case 2:return!0;case 3:return!0}return!1};t.prototype.vs=function(){switch(this.N){case 0:return this.dn();case 1:return!!this.X;case 2:return!0;case 3:return!0}return!1};t.prototype.ks=function(){switch(this.N){case 0:return!!this.X.error;case 1:return this.$j}return!1};r.prototype.xe=function(){var a;switch(this.N){case 0:return this.i.ended;case 1:if(1===this.buffer.N){if(!this.Uc&&!this.Zb&&this.i.loop||this.rc)return!1;a=this.Be?w.gc.aa:w.dd.aa;return a-this.startTime>this.buffer.X.duration}return this.i.ended;
case 2:return this.gl;case 3:!0}return!0};r.prototype.sq=function(){return this.Uc||this.Zb?!0:this.xe()};r.prototype.xl=function(a){1===D&&(!this.Xc&&a?this.Ga&&(this.xa||(this.xa=x.createPanner(),this.xa.panningModel="number"===typeof this.xa.panningModel?la:["equalpower","HRTF","soundfield"][la],this.xa.distanceModel="number"===typeof this.xa.distanceModel?mb:["linear","inverse","exponential"][mb],this.xa.refDistance=fc,this.xa.maxDistance=gc,this.xa.rolloffFactor=hc),this.Ga.disconnect(),this.Ga.connect(this.xa),
this.xa.connect(g(this.tag)),this.Xc=!0):this.Xc&&!a&&this.Ga&&(this.xa.disconnect(),this.Ga.disconnect(),this.Ga.connect(g(this.tag)),this.Xc=!1))};r.prototype.wl=function(a,b,d,c,e,h){this.Xc&&1===D&&(this.xa.setPosition(a,b,0),this.xa.setOrientation(Math.cos(Q(d)),Math.sin(Q(d)),0),this.xa.coneInnerAngle=c,this.xa.coneOuterAngle=e,this.xa.coneOuterGain=h,this.bo=a,this.co=b,this.Yn=d,this.Zn=c,this.$n=e,this.ao=h)};r.prototype.ah=function(a){this.Xc&&1===D&&(this.wa||(this.wa=new p),this.wa.ah(a))};
r.prototype.Ya=function(a){if(this.Xc&&1===D&&this.wa&&this.wa.$h()&&this.gf()){this.wa.Ya(a);a=this.wa.D;var b=Ia(a.x,a.y,-a.d.Sa(),L,Y,!0),d=Ia(a.x,a.y,-a.d.Sa(),L,Y,!1);this.xa.setPosition(b,d,0);b=0;"undefined"!==typeof this.wa.D.e&&(b=a.e-a.d.Sa(),this.xa.setOrientation(Math.cos(b),Math.sin(b),0));b=Ia(this.wa.pk(),this.wa.qk(),-a.d.Sa(),0,0,!0);d=Ia(this.wa.pk(),this.wa.qk(),-a.d.Sa(),0,0,!1);this.xa.setVelocity(b,d,0)}};r.prototype.play=function(b,d,c){var e=this.i;this.Wc=b;this.volume=d;
c=c||0;switch(this.N){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==d*H&&(e.volume=d*H);e.loop!==b&&(e.loop=b);e.muted&&(e.muted=!1);if(e.currentTime!==c)try{e.currentTime=c}catch(h){}if(this.Hc&&Ja&&!w.ka)Ka.push(this);else try{this.i.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.rf=1;if(1===this.buffer.N)this.Uc||(this.i=x.createBufferSource(),this.i.buffer=this.buffer.X,this.i.connect(this.Ga)),
this.i.loop=b,this.Ga.gain.value=d*H,0===c?s(this.i):a(this.i,c,this.ve());else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==b&&(e.loop=b);this.Ga.gain.value=d*H;if(e.currentTime!==c)try{e.currentTime=c}catch(g){}this.Hc&&Ja&&!w.ka?Ka.push(this):e.play()}break;case 2:(!this.Uc&&this.Zb||0!==c)&&e.seekTo(c);e.play();this.gl=!1;break;case 3:w.$a?AppMobi.context.playSound(this.src,b):AppMobi.player.playSound(this.src,b)}this.playbackRate=1;this.startTime=(this.Be?w.gc.aa:w.dd.aa)-c;this.rc=this.Zb=
this.Uc=!1};r.prototype.stop=function(){switch(this.N){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.N?b(this.i):this.i.paused||this.i.pause();break;case 2:this.i.stop();break;case 3:w.$a&&AppMobi.context.stopSound(this.src)}this.Zb=!0;this.rc=!1};r.prototype.pause=function(){if(!(this.Uc||this.Zb||this.xe()||this.rc)){switch(this.N){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.N?(this.Hb=this.nk(),this.Wc&&(this.Hb%=this.ve()),b(this.i)):this.i.paused||this.i.pause();
break;case 2:this.i.pause();break;case 3:w.$a&&AppMobi.context.stopSound(this.src)}this.rc=!0}};r.prototype.it=function(){if(!(this.Uc||this.Zb||this.xe())&&this.rc){switch(this.N){case 0:this.i.play();break;case 1:1===this.buffer.N?(this.i=x.createBufferSource(),this.i.buffer=this.buffer.X,this.i.connect(this.Ga),this.i.loop=this.Wc,this.Ga.gain.value=H*this.volume*this.rf,this.startTime=(this.Be?w.gc.aa:w.dd.aa)-this.Hb,a(this.i,this.Hb,this.ve())):this.i.play();break;case 2:this.i.play();break;
case 3:w.$a&&AppMobi.context.resumeSound(this.src)}this.rc=!1}};r.prototype.seek=function(a){if(!(this.Uc||this.Zb||this.xe()))switch(this.N){case 0:try{this.i.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.N)this.rc?this.Hb=a:(this.pause(),this.Hb=a,this.it());else try{this.i.currentTime=a}catch(d){}break;case 3:w.$a&&AppMobi.context.seekSound(this.src,a)}};r.prototype.et=function(a){1===this.N&&(this.Xc?(this.xa.disconnect(),this.xa.connect(a)):(this.Ga.disconnect(),this.Ga.connect(a)))};
r.prototype.ve=function(){switch(this.N){case 0:if("undefined"!==typeof this.i.duration)return this.i.duration;break;case 1:return this.buffer.X.duration;case 2:return this.i.getDuration();case 3:if(w.$a)return AppMobi.context.getDurationSound(this.src)}return 0};r.prototype.nk=function(){var a=this.ve(),b=0;switch(this.N){case 0:"undefined"!==typeof this.i.currentTime&&(b=this.i.currentTime);break;case 1:if(1===this.buffer.N){if(this.rc)return this.Hb;b=(this.Be?w.gc.aa:w.dd.aa)-this.startTime}else"undefined"!==
typeof this.i.currentTime&&(b=this.i.currentTime);break;case 3:w.$a&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Wc&&b>a&&(b=a);return b};r.prototype.gf=function(){return!this.rc&&!this.Uc&&!this.Zb&&!this.xe()};r.prototype.It=function(){var a=this.volume*H;switch(this.N){case 0:this.i.volume&&this.i.volume!==a&&(this.i.volume=a);break;case 1:this.Ga.gain.value=a*this.rf}};r.prototype.Lh=function(a){switch(this.N){case 0:this.i.muted!==!!a&&(this.i.muted=!!a);break;case 1:this.rf=a?0:
1,this.Ga.gain.value=H*this.volume*this.rf}};r.prototype.wt=function(){this.kf=!0;this.Lh(this.kf||this.mg)};r.prototype.Ao=function(a){this.mg=!!a;this.Lh(this.kf||this.mg)};r.prototype.$o=function(){var a=this.playbackRate;this.Be&&(a*=w.If);switch(this.N){case 0:this.i.playbackRate!==a&&(this.i.playbackRate=a);break;case 1:1===this.buffer.N?this.i.playbackRate.value!==a&&(this.i.playbackRate.value=a):this.i.playbackRate!==a&&(this.i.playbackRate=a)}};r.prototype.yt=function(d){switch(this.N){case 0:d?
this.gf()?(this.i.pause(),this.Ad=!0):this.Ad=!1:this.Ad&&this.i.play();break;case 1:d?this.gf()?(1===this.buffer.N?(this.Hb=this.nk(),this.Wc&&(this.Hb%=this.ve()),b(this.i)):this.i.pause(),this.Ad=!0):this.Ad=!1:this.Ad&&(1===this.buffer.N?(this.i=x.createBufferSource(),this.i.buffer=this.buffer.X,this.i.connect(this.Ga),this.i.loop=this.Wc,this.Ga.gain.value=H*this.volume*this.rf,this.startTime=(this.Be?w.gc.aa:w.dd.aa)-this.Hb,a(this.i,this.Hb,this.ve())):this.i.play());break;case 2:d?this.gf()?
(this.i.pause(),this.Ad=!0):this.Ad=!1:this.Ad&&this.i.play()}};v.Ca=function(a){this.type=a;w=this.b=a.b;ja=this;this.pb=null;this.wg=-600;!(this.b.ii||this.b.ci&&(this.b.ig||this.b.di))||this.b.jg||this.b.da||(Ja=!0);x=null;"undefined"!==typeof AudioContext?(D=1,x=new AudioContext):"undefined"!==typeof webkitAudioContext&&(D=1,x=new webkitAudioContext);(this.b.ii&&1===D||Ja)&&document.addEventListener("touchstart",function(){var a,b,d;!ic&&x&&(a=x.createBuffer(1,1,22050),b=x.createBufferSource(),
b.buffer=a,b.connect(x.destination),s(b),ic=!0);if(Ja){if(!F)for(a=0,b=Ka.length;a<b;++a)d=Ka[a],d.Zb||d.rc||d.i.play();Ka.length=0}},!0);1!==D&&(this.b.qc&&"undefined"!==typeof window.Media?D=2:this.b.df&&(D=3));2===D&&(J=location.href,a=J.lastIndexOf("/"),-1<a&&(J=J.substr(0,a+1)),J=J.replace("file://",""));if(this.b.en&&this.b.ws&&"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.Fd(this);
else{if(this.b.$a)E=this.b.ci;else try{E=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){E=!1}this.b.Gl(this)}};var ca=v.Ca.prototype;ca.la=function(){this.b.Re=this;S=this.qa[0];this.Bd=this.qa[1];this.Vs=0!==this.qa[2];la=this.qa[3];mb=this.qa[4];this.wg=-this.qa[5];fc=this.qa[6];gc=this.qa[7];hc=this.qa[8];this.pb=new p;var a=this.b.L||this.b.width,b=this.b.K||this.b.height;1===D&&(x.listener.speedOfSound=this.qa[9],x.listener.dopplerFactor=this.qa[10],x.listener.setPosition(a/
2,b/2,this.wg),x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){xa&&xa.disconnect();lb=b.toLowerCase();xa=x.createMediaStreamSource(a);xa.connect(g(lb))});this.b.kq(function(a){ja.Rs(a)});var d=this;this.b.iq(function(a){d.Ms(a)})};ca.Ms=function(a){var b,d,c;b=0;for(d=B.length;b<d;b++)c=B[b],c.wa&&c.wa.D===a&&(c.wa.D=null,c.Xc&&c.gf()&&c.Wc&&c.stop());this.pb.D===a&&(this.pb.D=null)};ca.Xb=function(){var a={silent:F,masterVolume:H,listenerZ:this.wg,listenerUid:this.pb.$h()?
this.pb.D.uid:-1,playing:[],effects:{}},b=a.playing,d,c,e,h,f,g;d=0;for(c=B.length;d<c;d++)e=B[d],!e.gf()||3===this.Bd||e.Hc&&1===this.Bd||!e.Hc&&2===this.Bd||(h=e.nk(),e.Wc&&(h%=e.ve()),h={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Hc,playbackTime:h,volume:e.volume,looping:e.Wc,muted:e.kf,playbackRate:e.playbackRate,paused:e.rc,resume_position:e.Hb},e.Xc&&(h.pan={},g=h.pan,e.wa&&e.wa.$h()?g.objUid=e.wa.D.uid:(g.x=e.bo,g.y=e.co,g.a=e.Yn),g.ia=e.Zn,g.oa=e.$n,g.og=e.ao),b.push(h));b=a.effects;for(f in N)if(N.hasOwnProperty(f)){e=
[];d=0;for(c=N[f].length;d<c;d++)e.push({type:N[f][d].type,params:N[f][d].Jc});b[f]=e}return a};var La=[];ca.tc=function(a){var b=a.silent;H=a.masterVolume;this.wg=a.listenerZ;this.pb.ah(null);var c=a.listenerUid;-1!==c&&(this.pb.pi=c,La.push(this.pb));var c=a.playing,f,g,k,s,r,t,ia,X,w,v,x;if(3!==this.Bd)for(f=0,g=B.length;f<g;f++)w=B[f],w.Hc&&1===this.Bd||(w.Hc||2!==this.Bd)&&w.stop();for(r in N)if(N.hasOwnProperty(r))for(f=0,g=N[r].length;f<g;f++)N[r][f].remove();Qa(N);for(r in a.effects)if(a.effects.hasOwnProperty(r))for(t=
a.effects[r],f=0,g=t.length;f<g;f++)switch(k=t[f].type,v=t[f].params,k){case "filter":C(r,new d(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":C(r,new q(v[0],v[1],v[2]));break;case "convolve":k=v[2];w=this.Sh(k,!1);w.X?k=new e(w.X,v[0],v[1],k):(k=new e(null,v[0],v[1],k),w.Rn=v[0],w.Dh=k);C(r,k);break;case "flanger":C(r,new u(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":C(r,new h(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":C(r,new y(v[0]));break;case "tremolo":C(r,new l(v[0],v[1]));break;
case "ringmod":C(r,new A(v[0],v[1]));break;case "distortion":C(r,new z(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":C(r,new m(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":C(r,new n(v[0],v[1]))}f=0;for(g=c.length;f<g;f++)3===this.Bd||(a=c[f],k=a.buffersrc,s=a.is_music,r=a.tag,t=a.playbackTime,ia=a.looping,X=a.volume,x=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,s&&1===this.Bd)||!s&&2===this.Bd||((w=this.Mm(k,r,s,ia,X))?(w.Hb=a.resume_position,w.xl(!!v),w.play(ia,X,t),w.$o(),w.It(),
w.Lh(w.kf||w.mg),a.paused&&w.pause(),a.muted&&w.wt(),w.Lh(w.kf||w.mg),v&&(-1!==x?(w.wa=w.wa||new p,w.wa.pi=x,La.push(w.wa)):w.wl(v.x,v.y,v.a,v.ia,v.oa,v.og))):(w=this.Sh(k,s),w.Ti=t,w.Hi=a.paused,v&&(-1!==x?w.xf.push({Tn:x,vk:v.ia,Wk:v.oa,Zk:v.og,No:r}):w.xf.push({x:v.x,y:v.y,dq:v.a,vk:v.ia,Wk:v.oa,Zk:v.og,No:r}))));if(b&&!F){f=0;for(g=B.length;f<g;f++)B[f].Ao(!0);F=!0}else if(!b&&F){f=0;for(g=B.length;f<g;f++)B[f].Ao(!1);F=!1}};ca.ed=function(){var a,b,d,c;a=0;for(b=La.length;a<b;a++)d=La[a],c=this.b.Vh(d.pi),
d.ah(c),d.pi=-1,c&&(L=c.x,Y=c.y);La.length=0};ca.Rs=function(a){if(!this.Vs){!a&&x&&x.resume&&x.resume();var b,d;b=0;for(d=B.length;b<d;b++)B[b].yt(a);a&&x&&x.suspend&&x.suspend()}};ca.Ya=function(){var a=this.b.re,b,d,c;b=0;for(d=B.length;b<d;b++)c=B[b],c.Ya(a),0===c.N||3===c.N||c.Uc||c.Zb||!c.xe()||(c.Zb=!0,X=c.tag,w.trigger(bc.prototype.j.tj,ja)),0!==S&&c.$o();var e,h;for(e in N)if(N.hasOwnProperty(e))for(c=N[e],b=0,d=c.length;b<d;b++)h=c[b],h.Ya&&h.Ya();1===D&&this.pb.$h()&&(this.pb.Ya(a),L=this.pb.D.x,
Y=this.pb.D.y,x.listener.setPosition(this.pb.D.x,this.pb.D.y,this.wg),x.listener.setVelocity(this.pb.pk(),this.pb.qk(),0))};var Ma=[];ca.xt=function(a){var b,d,c,e,h,f=0;b=0;for(d=a.length;b<d;++b)if(c=a[b],e=c[0],c=2*c[1],(h=4<e.length&&".ogg"===e.substr(e.length-4))&&E||!h&&!E)Ma.push({filename:e,size:c,D:null}),f+=c;return f};ca.Bt=function(){var a,b,d,c;a=0;for(b=Ma.length;a<b;++a)d=Ma[a],c=this.b.ak+d.filename,d.D=this.Sh(c,!1)};ca.Nr=function(){var a=0,b,d,c;b=0;for(d=Ma.length;b<d;++b)c=Ma[b],
c.D.vs()||c.D.ks()||this.b.da||this.b.di?a+=c.size:c.D.dn()&&(a+=Math.floor(c.size/2));return a};ca.Sh=function(a,b){var d,c,e,h=null;d=0;for(c=P.length;d<c;d++)if(e=P[d],e.src===a){h=e;break}h||(h=new t(a,b),P.push(h));return h};ca.Mm=function(a,b,d,c,e){var h,f,g;h=0;for(f=B.length;h<f;h++)if(g=B[h],g.src===a&&(g.sq()||d))return g.tag=b,g;a=this.Sh(a,d);if(!a.X)return"<preload>"!==b&&(a.Ii=b,a.Qk=c,a.Sl=e),null;g=new r(a,b);B.push(g);return g};var Da=[];ia.prototype.tj=function(a){return ab(X,a)};
v.j=new ia;ba.prototype.Play=function(a,b,d,c){!F&&(d=Math.pow(10,d/20),0>d&&(d=0),1<d&&(d=1),G=this.Mm(this.b.ak+a[0]+(E?".ogg":".m4a"),c,a[1],0!==b,d))&&(G.xl(!1),G.play(0!==b,d))};v.ra=new ba;v.Rb=new function(){}})();function cc(k){this.b=k}
(function(){function k(){}var g=cc.prototype;g.gb=function(c){this.ya=c;this.b=c.b};g.gb.prototype.la=function(){};g.Ca=function(c){this.type=c;this.b=c.b;this.Gk=Array(256);this.pj=Array(256);this.ge=0};var c=g.Ca.prototype;c.la=function(){var c=this;this.b.da||(jQuery(document).keydown(function(a){c.Ns(a)}),jQuery(document).keyup(function(a){c.Os(a)}))};var f=[32,33,34,35,36,37,38,39,40,44];c.Ns=function(c){var a=!1;window!=window.top&&-1<f.indexOf(c.which)&&(c.preventDefault(),a=!0,c.stopPropagation());
if(this.Gk[c.which])this.pj[c.which]&&!a&&c.preventDefault();else{this.Gk[c.which]=!0;this.ge=c.which;this.b.ka=!0;this.b.trigger(cc.prototype.j.zp,this);var b=this.b.trigger(cc.prototype.j.Kp,this),d=this.b.trigger(cc.prototype.j.Lp,this);this.b.ka=!1;if(b||d)this.pj[c.which]=!0,a||c.preventDefault()}};c.Os=function(c){this.Gk[c.which]=!1;this.ge=c.which;this.b.ka=!0;this.b.trigger(cc.prototype.j.Ap,this);var a=this.b.trigger(cc.prototype.j.Np,this),b=this.b.trigger(cc.prototype.j.Mp,this);this.b.ka=
!1;if(a||b||this.pj[c.which])this.pj[c.which]=!0,c.preventDefault()};c.Xb=function(){return{triggerKey:this.ge}};c.tc=function(c){this.ge=c.triggerKey};k.prototype.Kp=function(c){return c===this.ge};k.prototype.zp=function(){return!0};k.prototype.Ap=function(){return!0};k.prototype.Np=function(c){return c===this.ge};k.prototype.Lp=function(c){return c===this.ge};k.prototype.Mp=function(c){return c===this.ge};g.j=new k;g.ra=new function(){};g.Rb=new function(){}})();function dc(k){this.b=k}
(function(){function k(){}function g(){}var c=dc.prototype;c.gb=function(a){this.ya=a;this.b=a.b};c.gb.prototype.la=function(){};c.Ca=function(a){this.type=a;this.b=a.b;this.yh=Array(4);this.Po=this.kj=this.Jf=this.xd=this.wd=0;this.sk=!1};var f=c.Ca.prototype;f.la=function(){var a=this;if(!this.b.da){jQuery(document).mousemove(function(b){a.Mg(b)});jQuery(document).mousedown(function(b){a.Lg(b)});jQuery(document).mouseup(function(b){a.Ng(b)});jQuery(document).dblclick(function(b){a.Ks(b)});var b=
function(b){a.Ts(b)};document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var s={left:0,top:0};f.Mg=function(a){var b=this.b.da?s:jQuery(this.b.canvas).offset();this.wd=a.pageX-b.left;this.xd=a.pageY-b.top};f.Nn=function(){return 0<this.b.mb?!0:0<=this.wd&&0<=this.xd&&this.wd<this.b.width&&this.xd<this.b.height};f.Lg=function(a){this.Nn()&&(this.b.$e&&!this.b.Vc&&a.preventDefault(),this.yh[a.which]=!0,this.b.ka=!0,this.b.trigger(dc.prototype.j.yp,this),this.Jf=
a.which-1,this.kj=0,this.b.trigger(dc.prototype.j.Wl,this),this.b.trigger(dc.prototype.j.vj,this),this.b.ka=!1)};f.Ng=function(a){this.yh[a.which]&&(this.b.$e&&!this.b.Vc&&a.preventDefault(),this.b.$e=!0,this.yh[a.which]=!1,this.b.ka=!0,this.Jf=a.which-1,this.b.trigger(dc.prototype.j.Qp,this),this.b.ka=!1)};f.Ks=function(a){this.Nn()&&(a.preventDefault(),this.b.ka=!0,this.Jf=a.which-1,this.kj=1,this.b.trigger(dc.prototype.j.Wl,this),this.b.trigger(dc.prototype.j.vj,this),this.b.ka=!1)};f.Ts=function(a){this.Po=
0>(a.wheelDelta?a.wheelDelta:a.detail?-a.detail:0)?0:1;this.sk=!1;this.b.ka=!0;this.b.trigger(dc.prototype.j.Tp,this);this.b.ka=!1;this.sk&&a.preventDefault()};k.prototype.Wl=function(a,b){return a===this.Jf&&b===this.kj};k.prototype.yp=function(){return!0};k.prototype.mp=function(a){return this.yh[a+1]};k.prototype.Qp=function(a){return a===this.Jf};k.prototype.pp=function(a){var b=this.b.ik();return Oa(this.b.Hf(a,this.wd,this.xd,b.cf),b.cf)};k.prototype.vj=function(a,b,d){return a!==this.Jf||b!==
this.kj?!1:this.b.Hf(d,this.wd,this.xd,!1)};k.prototype.Tp=function(a){this.sk=!0;return a===this.Po};c.j=new k;c.ra=new function(){};g.prototype.em=function(a,b){var d,c,e,f,h;fa(b)?(d=this.b.rd(0),c=d.scale,e=d.kb,f=d.Fb,h=d.e,d.scale=1,d.kb=1,d.Fb=1,d.e=0,a.u(d.na(this.wd,this.xd,!0)),d.scale=c,d.kb=e,d.Fb=f,d.e=h):(d=K(b)?this.b.rd(b):this.b.ag(b))?a.u(d.na(this.wd,this.xd,!0)):a.u(0)};g.prototype.fm=function(a,b){var d,c,e,f,h;fa(b)?(d=this.b.rd(0),c=d.scale,e=d.kb,f=d.Gb,h=d.e,d.scale=1,d.kb=
1,d.Gb=1,d.e=0,a.u(d.na(this.wd,this.xd,!1)),d.scale=c,d.kb=e,d.Gb=f,d.e=h):(d=K(b)?this.b.rd(b):this.b.ag(b))?a.u(d.na(this.wd,this.xd,!1)):a.u(0)};c.Rb=new g})();function ec(k){this.b=k}
(function(){function k(c){this.k=c;this.Ra=!1;this.e=this.speed=this.y=this.x=0;this.opacity=1;this.Id=this.Ze=this.size=this.Yh=0}var g=ec.prototype;g.gb=function(c){this.ya=c;this.b=c.b};var c=g.gb.prototype;c.la=function(){this.B||(this.J=new Image,this.J.Mj=this.fj,this.O=null,this.b.Tl(this.J,this.ej))};c.yi=function(){this.B||(this.O=null)};c.Ai=function(){this.B||!this.c.length||this.O||(this.O=this.b.q.nf(this.J,!0,this.b.S,this.ih))};c.yg=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.nf(this.J,
!0,this.b.S,this.ih))};c.nj=function(){this.B||this.c.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};c.Mi=function(c){c.drawImage(this.J,0,0)};k.prototype.init=function(){var c=this.k;this.x=c.x-c.rj/2+Math.random()*c.rj;this.y=c.y-c.sj/2+Math.random()*c.sj;this.speed=c.zk-c.Zi/2+Math.random()*c.Zi;this.e=c.e-c.$i/2+Math.random()*c.$i;this.opacity=c.xk;this.size=c.yk-c.Xi/2+Math.random()*c.Xi;this.Yh=c.rk-c.Zh/2+Math.random()*c.Zh;this.Id=this.Ze=0};k.prototype.Ya=function(c){var a=
this.k;this.x+=Math.cos(this.e)*this.speed*c;this.y+=Math.sin(this.e)*this.speed*c;this.y+=this.Ze*c;this.speed+=a.yj*c;this.size+=this.Yh*c;this.Ze+=a.fk*c;this.Id+=c;1>this.size?this.Ra=!1:(0!==a.tg&&(this.e+=Math.random()*a.tg*c-a.tg*c/2),0!==a.vg&&(this.speed+=Math.random()*a.vg*c-a.vg*c/2),0!==a.ug&&(this.opacity+=Math.random()*a.ug*c-a.ug*c/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=a.Ue&&this.Id>=a.timeout&&(this.Ra=!1),2===a.Ue&&0>=this.speed&&(this.Ra=!1))};k.prototype.Dc=
function(c){var a=this.k.opacity*this.opacity;if(0!==a){0===this.k.Ue&&(a*=1-this.Id/this.k.timeout);c.globalAlpha=a;var a=this.x-this.size/2,b=this.y-this.size/2;this.k.b.Yc&&(a=a+.5|0,b=b+.5|0);c.drawImage(this.k.type.J,a,b,this.size,this.size)}};k.prototype.Qb=function(c){var a=this.k.opacity*this.opacity;0===this.k.Ue&&(a*=1-this.Id/this.k.timeout);var b=this.size,d=b*this.k.ho,f=this.x-b/2,e=this.y-b/2;this.k.b.Yc&&(f=f+.5|0,e=e+.5|0);1>d||0===a||(d<c.Gs||d>c.Sk?(c.Ke(a),c.Xg(f,e,f+b,e,f+b,e+
b,f,e+b)):c.Ws(this.x,this.y,d,a))};k.prototype.left=function(){return this.x-this.size/2};k.prototype.right=function(){return this.x+this.size/2};k.prototype.top=function(){return this.y-this.size/2};k.prototype.bottom=function(){return this.y+this.size/2};g.Ca=function(c){this.type=c;this.b=c.b};var c=g.Ca.prototype,f=[];c.la=function(){var c=this.qa;this.Pi=c[0];this.$i=Q(c[1]);this.Ef=c[2];this.Al=!0;this.zk=c[3];this.yk=c[4];this.xk=c[5]/100;this.rk=c[6];this.rj=c[7];this.sj=c[8];this.Zi=c[9];
this.Xi=c[10];this.Zh=c[11];this.yj=c[12];this.fk=c[13];this.tg=c[14];this.vg=c[15];this.ug=c[16];this.Ue=c[17];this.timeout=c[18];this.Ie=0;this.ho=1;this.Ei=this.x;this.Gi=this.y;this.Fi=this.x;this.Di=this.y;this.lq(function(a){a.Da.set(a.Ei,a.Gi,a.Fi,a.Di);a.Nb.Df(a.Da);a.xh=!1;a.Ol()});this.Lc||(this.rb=[]);this.b.Gl(this);this.type.yg();if(1===this.Ef)for(c=0;c<this.Pi;c++)this.Aj().opacity=0;this.Qh=!0};c.Xb=function(){var c={r:this.Pi,sc:this.$i,st:this.Ef,s:this.Al,isp:this.zk,isz:this.yk,
io:this.xk,gr:this.rk,xr:this.rj,yr:this.sj,spr:this.Zi,szr:this.Xi,grnd:this.Zh,acc:this.yj,g:this.fk,lar:this.tg,lsr:this.vg,lor:this.ug,dm:this.Ue,to:this.timeout,pcc:this.Ie,ft:this.Qh,p:[]},a,b,d,f=c.p;a=0;for(b=this.rb.length;a<b;a++)d=this.rb[a],f.push([d.x,d.y,d.speed,d.e,d.opacity,d.Yh,d.size,d.Ze,d.Id]);return c};c.tc=function(c){this.Pi=c.r;this.$i=c.sc;this.Ef=c.st;this.Al=c.s;this.zk=c.isp;this.yk=c.isz;this.xk=c.io;this.rk=c.gr;this.rj=c.xr;this.sj=c.yr;this.Zi=c.spr;this.Xi=c.szr;this.Zh=
c.grnd;this.yj=c.acc;this.fk=c.g;this.tg=c.lar;this.vg=c.lsr;this.ug=c.lor;this.Ue=c.dm;this.timeout=c.to;this.Ie=c.pcc;this.Qh=c.ft;f.push.apply(f,this.rb);this.rb.length=0;var a,b,d,g=c.p;c=0;for(a=g.length;c<a;c++)b=this.Aj(),d=g[c],b.x=d[0],b.y=d[1],b.speed=d[2],b.e=d[3],b.opacity=d[4],b.Yh=d[5],b.size=d[6],b.Ze=d[7],b.Id=d[8]};c.Kg=function(){f.push.apply(f,this.rb);this.rb.length=0};c.Aj=function(){var c;f.length?(c=f.pop(),c.k=this):c=new k(this);this.rb.push(c);c.Ra=!0;return c};c.Ya=function(){var c=
this.b.jk(this),a,b,d,g;if(0===this.Ef&&this.Al)for(this.Ie+=c*this.Pi,b=O(this.Ie),this.Ie-=b,a=0;a<b;a++)d=this.Aj(),d.init();this.Ei=this.x;this.Gi=this.y;this.Fi=this.x;this.Di=this.y;g=a=0;for(b=this.rb.length;a<b;a++)d=this.rb[a],this.rb[g]=d,this.b.ha=!0,1===this.Ef&&this.Qh&&d.init(),d.Ya(c),d.Ra?(d.left()<this.Ei&&(this.Ei=d.left()),d.right()>this.Fi&&(this.Fi=d.right()),d.top()<this.Gi&&(this.Gi=d.top()),d.bottom()>this.Di&&(this.Di=d.bottom()),g++):f.push(d);this.rb.length=g;this.Aa();
this.Qh=!1;1===this.Ef&&0===this.rb.length&&this.b.Fd(this)};c.Dc=function(c){var a,b,d,f=this.d;a=0;for(b=this.rb.length;a<b;a++)d=this.rb[a],d.right()>=f.Pa&&d.bottom()>=f.Qa&&d.left()<=f.eb&&d.top()<=f.cb&&d.Dc(c)};c.Qb=function(c){this.ho=this.d.ec();c.Yb(this.type.O);var a,b,d,f=this.d;a=0;for(b=this.rb.length;a<b;a++)d=this.rb[a],d.right()>=f.Pa&&d.bottom()>=f.Qa&&d.left()<=f.eb&&d.top()<=f.cb&&d.Qb(c)};g.j=new function(){};g.ra=new function(){};g.Rb=new function(){}})();
function ac(k){this.b=k}
(function(){function k(){if(0===this.Pj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Ff?b.drawImage(this.J,this.uf,this.vf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.J,0,0,this.width,this.height);this.Pj=a.toDataURL("image/png")}return this.Pj}function g(){}function c(){}var f=ac.prototype;f.gb=function(a){this.ya=a;this.b=a.b};var s=f.gb.prototype;s.la=function(){if(!this.B){var a,b,c,d,e,f,g,p,q;this.Ac=
[];this.eg=!1;a=0;for(b=this.Mb.length;a<b;a++){e=this.Mb[a];g={};g.name=e[0];g.speed=e[1];g.loop=e[2];g.pl=e[3];g.Qi=e[4];g.jo=e[5];g.P=e[6];g.frames=[];c=0;for(d=e[7].length;c<d;c++)f=e[7][c],p={},p.ej=f[0],p.fj=f[1],p.uf=f[2],p.vf=f[3],p.width=f[4],p.height=f[5],p.duration=f[6],p.Bb=f[7],p.Cb=f[8],p.wk=f[9],p.Ji=f[10],p.ko=f[11],p.Ff=0!==p.width,p.Pj="",p.Wu=k,q={left:0,top:0,right:1,bottom:1},p.yl=q,p.O=null,(q=this.b.wr(f[0]))?p.J=q:(p.J=new Image,p.J.zq=f[0],p.J.Mj=f[1],p.J.rq=null,this.b.Tl(p.J,
f[0])),g.frames.push(p),this.Ac.push(p);this.Mb[a]=g}}};s.Zo=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.Gh=c.mc.O};s.yi=function(){if(!this.B){var a,b,c;a=0;for(b=this.Ac.length;a<b;++a)c=this.Ac[a],c.J.rq=null,c.O=null;this.eg=!1;this.Zo()}};s.Ai=function(){if(!this.B&&this.c.length){var a,b,c;a=0;for(b=this.Ac.length;a<b;++a)c=this.Ac[a],c.O=this.b.q.nf(c.J,!1,this.b.S,c.ko);this.Zo()}};s.yg=function(){if(!this.B&&!this.eg&&this.b.q){var a,b,c;a=0;for(b=this.Ac.length;a<
b;++a)c=this.Ac[a],c.O=this.b.q.nf(c.J,!1,this.b.S,c.ko);this.eg=!0}};s.nj=function(){if(!this.B&&!this.c.length&&this.eg){var a,b,c;a=0;for(b=this.Ac.length;a<b;++a)c=this.Ac[a],this.b.q.deleteTexture(c.O),c.O=null;this.eg=!1}};var a=[];s.Mi=function(b){var c,d,e;c=a.length=0;for(d=this.Ac.length;c<d;++c)e=this.Ac[c].J,-1===a.indexOf(e)&&(b.drawImage(e,0,0),a.push(e))};f.Ca=function(a){this.type=a;this.b=a.b;a=this.type.Mb[0].frames[0].Ji;this.Lc?this.W.bh(a):this.W=new Wa(a)};var b=f.Ca.prototype;
b.la=function(){this.visible=0===this.qa[0];this.Bc=0!==this.qa[3];1===this.type.Mb.length&&1===this.type.Mb[0].frames.length||0===this.type.Mb[0].speed||this.b.Gl(this);this.ta=this.Lm(this.qa[1])||this.type.Mb[0];this.A=this.qa[2];0>this.A&&(this.A=0);this.A>=this.ta.frames.length&&(this.A=this.ta.frames.length-1);var a=this.ta.frames[this.A];this.W.bh(a.Ji);this.Bb=a.Bb;this.Cb=a.Cb;this.Vf=this.ta.speed;this.Lc?this.Qc.reset():this.Qc=new Ua;this.qd=this.Qc.aa;this.je=!0;this.fd=0;this.ie=!0;
this.Jj=this.mm="";this.vq=0;this.Ij=-1;this.type.yg();var b,c,d,e,f,g,k,a=0;for(b=this.type.Mb.length;a<b;a++)for(e=this.type.Mb[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.J.width,f.height=f.J.height),f.Ff&&(k=f.J,g=f.yl,g.left=f.uf/k.width,g.top=f.vf/k.height,g.right=(f.uf+f.width)/k.width,g.bottom=(f.vf+f.height)/k.height,0===f.uf&&0===f.vf&&f.width===k.width&&f.height===k.height&&(f.Ff=!1));this.mc=this.ta.frames[this.A];this.Gh=this.mc.O};b.Xb=function(){var a={a:this.ta.P,
f:this.A,cas:this.Vf,fs:this.qd,ar:this.fd,at:this.Qc.aa};this.je||(a.ap=this.je);this.ie||(a.af=this.ie);return a};b.tc=function(a){var b=this.Er(a.a);b&&(this.ta=b);this.A=a.f;0>this.A&&(this.A=0);this.A>=this.ta.frames.length&&(this.A=this.ta.frames.length-1);this.Vf=a.cas;this.qd=a.fs;this.fd=a.ar;this.Qc.reset();this.Qc.aa=a.at;this.je=a.hasOwnProperty("ap")?a.ap:!0;this.ie=a.hasOwnProperty("af")?a.af:!0;this.mc=this.ta.frames[this.A];this.Gh=this.mc.O;this.W.bh(this.mc.Ji);this.Bb=this.mc.Bb;
this.Cb=this.mc.Cb};b.Dj=function(a){this.A=a?0:this.ta.frames.length-1;this.je=!1;this.mm=this.ta.name;this.b.trigger(ac.prototype.j.xp,this);this.b.trigger(ac.prototype.j.wp,this);this.fd=0};b.Yu=function(){return this.Qc.aa};b.Ya=function(){this.Qc.add(this.b.jk(this));this.Jj.length&&this.Eq();0<=this.Ij&&this.Fq();var a=this.Qc.aa,b=this.ta,c=b.frames[this.A],d=c.duration/this.Vf;this.je&&a>=this.qd+d&&(this.ie?this.A++:this.A--,this.qd+=d,this.A>=b.frames.length&&(b.jo?(this.ie=!1,this.A=b.frames.length-
2):b.loop?this.A=b.Qi:(this.fd++,this.fd>=b.pl?this.Dj(!1):this.A=b.Qi)),0>this.A&&(b.jo?(this.A=1,this.ie=!0,b.loop||(this.fd++,this.fd>=b.pl&&this.Dj(!0))):b.loop?this.A=b.Qi:(this.fd++,this.fd>=b.pl?this.Dj(!0):this.A=b.Qi)),0>this.A?this.A=0:this.A>=b.frames.length&&(this.A=b.frames.length-1),a>this.qd+b.frames[this.A].duration/this.Vf&&(this.qd=a),a=b.frames[this.A],this.Pe(c,a),this.b.ha=!0)};b.Lm=function(a){var b,c,d;b=0;for(c=this.type.Mb.length;b<c;b++)if(d=this.type.Mb[b],ab(d.name,a))return d;
return null};b.Er=function(a){var b,c,d;b=0;for(c=this.type.Mb.length;b<c;b++)if(d=this.type.Mb[b],d.P===a)return d;return null};b.Eq=function(){var a=this.ta.frames[this.A],b=this.Lm(this.Jj);this.Jj="";!b||ab(b.name,this.ta.name)&&this.je||(this.ta=b,this.Vf=b.speed,0>this.A&&(this.A=0),this.A>=this.ta.frames.length&&(this.A=this.ta.frames.length-1),1===this.vq&&(this.A=0),this.je=!0,this.qd=this.Qc.aa,this.ie=!0,this.Pe(a,this.ta.frames[this.A]),this.b.ha=!0)};b.Fq=function(){var a=this.ta.frames[this.A],
b=this.A;this.A=O(this.Ij);0>this.A&&(this.A=0);this.A>=this.ta.frames.length&&(this.A=this.ta.frames.length-1);b!==this.A&&(this.Pe(a,this.ta.frames[this.A]),this.qd=this.Qc.aa,this.b.ha=!0);this.Ij=-1};b.Pe=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Bb=b.Bb;this.Cb=b.Cb;this.W.bh(b.Ji);this.Aa();this.mc=b;this.Gh=b.O;c=0;for(d=this.G.length;c<d;c++)e=this.G[c],e.Qs&&e.Qs(a,b);this.b.trigger(ac.prototype.j.Pe,this)};b.Dc=function(a){a.globalAlpha=
this.opacity;var b=this.mc,c=b.Ff,d=b.J,e=this.x,f=this.y,g=this.width,k=this.height;if(0===this.e&&0<=g&&0<=k)e-=this.Bb*g,f-=this.Cb*k,this.b.Yc&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.uf,b.vf,b.width,b.height,e,f,g,k):a.drawImage(d,e,f,g,k);else{this.b.Yc&&(e=Math.round(e),f=Math.round(f));a.save();var q=0<g?1:-1,r=0<k?1:-1;a.translate(e,f);1===q&&1===r||a.scale(q,r);a.rotate(this.e*q*r);e=0-this.Bb*ka(g);f=0-this.Cb*ka(k);c?a.drawImage(d,b.uf,b.vf,b.width,b.height,e,f,ka(g),ka(k)):
a.drawImage(d,e,f,ka(g),ka(k));a.restore()}};b.Qb=function(a){a.Yb(this.Gh);a.Ke(this.opacity);var b=this.mc,c=this.Nb;if(this.b.Yc){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Ff?a.zd(c.Na+d,c.Oa+e,c.Ib+d,c.Jb+e,c.xb+d,c.yb+e,c.ub+d,c.wb+e,b.yl):a.Xg(c.Na+d,c.Oa+e,c.Ib+d,c.Jb+e,c.xb+d,c.yb+e,c.ub+d,c.wb+e)}else b.Ff?a.zd(c.Na,c.Oa,c.Ib,c.Jb,c.xb,c.yb,c.ub,c.wb,b.yl):a.Xg(c.Na,c.Oa,c.Ib,c.Jb,c.xb,c.yb,c.ub,c.wb)};b.Jr=function(a){var b=this.mc,c,d;c=0;for(d=b.wk.length;c<d;c++)if(ab(a,
b.wk[c][0]))return c;return-1};b.mk=function(a,b){var c=this.mc,d=c.wk,e;e=M(a)?this.Jr(a):a-1;e=O(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Bb)*this.width,d=d[e][2],d=(d-c.Cb)*this.height,c=Math.cos(this.e);e=Math.sin(this.e);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var d=null,q=new da,e=!1,u=[];s.finish=function(a){if(e){if(a){var b=this.b.nb().Pb.Ic;a=d.ca();var c=q.Pc(),f,g;if(a.ja){a.ja=!1;a.c.length=c.length;f=0;for(g=c.length;f<g;f++)a.c[f]=c[f];if(b)for(f=
a.V.length=0,g=d.c.length;f<g;f++)c=d.c[f],q.contains(c)||a.V.push(c)}else if(b)for(b=a.c.length,a.c.length=b+c.length,f=0,g=c.length;f<g;f++)a.c[b+f]=c[f],ya(a.V,c[f]);else ua(a.c,c);d.gd()}q.clear();e=!1}};g.prototype.qp=function(a){if(a){var b=!1,c,f,g,k=this.b.ik(),n=k.type,k=k.cf;c=a.ca();f=this.b.nb().Pb.Ic;var p;c.ja?(this.Ba(),this.b.Gr(this.d,a,this.Da,u),p=u):p=f?c.V:c.c;d=a;e=n!==a&&!k;c=0;for(f=p.length;c<f;c++)if(g=p[c],this.b.Dt(this,g)){b=!0;if(k)break;n!==a&&q.add(g)}u.length=0;a=
b}else a=!1;return a};g.prototype.wp=function(a){return ab(this.mm,a)};g.prototype.xp=function(){return!0};g.prototype.Pe=function(){return!0};g.prototype.op=function(){return this.Bc};f.j=new g;c.prototype.Xp=function(a){this.Bc!==(0!==a)&&((this.Bc=0!==a)?this.Aa():(this.Nd.right>=this.Nd.left&&this.type.Tf.update(this,this.Nd,null),this.Nd.set(0,0,-1,-1)))};f.ra=new c;f.Rb=new function(){}})();function jc(k){this.b=k}
(function(){var k=jc.prototype;k.gb=function(c){this.ya=c;this.b=c.b};var g=k.gb.prototype;g.la=function(){this.B||(this.J=new Image,this.J.Mj=this.fj,this.b.Tl(this.J,this.ej),this.O=this.pattern=null)};g.yi=function(){this.B||(this.O=null)};g.Ai=function(){if(!this.B&&this.c.length){this.O||(this.O=this.b.q.nf(this.J,!0,this.b.S,this.ih));var c,f;c=0;for(f=this.c.length;c<f;c++)this.c[c].O=this.O}};g.yg=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.nf(this.J,!0,this.b.S,this.ih))};g.nj=
function(){this.B||this.c.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};g.Mi=function(c){c.drawImage(this.J,0,0)};k.Ca=function(c){this.type=c;this.b=c.b};g=k.Ca.prototype;g.la=function(){this.visible=0===this.qa[0];this.Yg=new qa(0,0,0,0);this.Wm=!1;this.J=this.type.J;this.b.q?(this.type.yg(),this.O=this.type.O):(this.type.pattern||(this.type.pattern=this.b.ba.createPattern(this.type.J,"repeat")),this.pattern=this.type.pattern)};g.ed=function(){this.Wm=!1;this.J=this.type.J};g.Kg=
function(){this.b.q&&this.Wm&&this.O&&(this.b.q.deleteTexture(this.O),this.O=null)};g.Dc=function(c){c.globalAlpha=this.opacity;c.save();c.fillStyle=this.pattern;var f=this.x,g=this.y;this.b.Yc&&(f=Math.round(f),g=Math.round(g));var a=-(this.Bb*this.width),b=-(this.Cb*this.height),d=a%this.J.width,k=b%this.J.height;0>d&&(d+=this.J.width);0>k&&(k+=this.J.height);c.translate(f,g);c.rotate(this.e);c.translate(d,k);c.fillRect(a-d,b-k,this.width,this.height);c.restore()};g.Qb=function(c){c.Yb(this.O);
c.Ke(this.opacity);var f=this.Yg;f.right=this.width/this.J.width;f.bottom=this.height/this.J.height;var g=this.Nb;if(this.b.Yc){var a=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;c.zd(g.Na+a,g.Oa+b,g.Ib+a,g.Jb+b,g.xb+a,g.yb+b,g.ub+a,g.wb+b,f)}else c.zd(g.Na,g.Oa,g.Ib,g.Jb,g.xb,g.yb,g.ub,g.wb,f)};k.j=new function(){};k.ra=new function(){};k.Rb=new function(){}})();function Z(k){this.b=k}
(function(){function k(a){e=a.x;u=a.y;h=a.z}function g(a){y=a.x;l=a.y;A=a.z}function c(a,b,c,d){var e;e=z.length?z.pop():new f;e.init(a,b,c,d);return e}function f(){this.eh=this.id=this.y=this.x=this.cj=this.bj=this.Jk=this.time=this.Cl=0;this.lh=this.lj=!1}function s(){}function a(){}var b=Z.prototype;b.gb=function(a){this.ya=a;this.b=a.b};b.gb.prototype.la=function(){};b.Ca=function(a){this.type=a;this.b=a.b;this.touches=[];this.Uk=!1};var d=b.Ca.prototype,q={left:0,top:0};d.Zf=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 e=0,u=0,h=0,y=0,l=0,A=0,z=[];f.prototype.init=function(a,b,c,d){var e=T();this.Cl=this.Jk=this.time=e;this.bj=a;this.cj=b;this.x=a;this.y=b;this.id=c;this.eh=d;this.lh=this.lj=!1};f.prototype.update=function(a,b,c){this.Jk=this.time;this.time=a;this.x=b;this.y=c;!this.lh&&15<=Na(this.bj,this.cj,this.x,this.y)&&(this.lh=!0)};f.prototype.Es=function(a,b){!this.lj&&500<=T()-this.Cl&&!this.lh&&15>Na(this.bj,this.cj,
this.x,this.y)&&(this.lj=!0,a.bd=this.eh,a.Kf=this.id,a.Xe=b,a.b.trigger(Z.prototype.j.Ip,a),a.kd=this.x,a.ld=this.y,a.b.trigger(Z.prototype.j.Jp,a),a.Xe=0)};var m=-1E3,n=-1E3,p=-1E4;f.prototype.Jn=function(a,b){if(!this.lj){var c=T();333>=c-this.Cl&&!this.lh&&15>Na(this.bj,this.cj,this.x,this.y)&&(a.bd=this.eh,a.Kf=this.id,a.Xe=b,666>=c-p&&25>Na(m,n,this.x,this.y)?(a.b.trigger(Z.prototype.j.Ep,a),a.kd=this.x,a.ld=this.y,a.b.trigger(Z.prototype.j.Fp,a),n=m=-1E3,p=-1E4):(a.b.trigger(Z.prototype.j.Rp,
a),a.kd=this.x,a.ld=this.y,a.b.trigger(Z.prototype.j.Sp,a),m=this.x,n=this.y,p=c),a.Xe=0)}};d.la=function(){this.xs=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Xe=this.Kf=this.bd=this.ld=this.kd=this.im=this.hm=this.gm=this.hq=this.gq=this.fq=this.Sg=this.Rg=this.Qg=0;this.Lt=0!==this.qa[0];var a=0<this.b.mb?document:this.b.canvas,b=document;this.b.$a?b=a=window.Canvas:this.b.fc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.Pg(a)},
!1),a.addEventListener("pointermove",function(a){c.Og(a)},!1),b.addEventListener("pointerup",function(a){c.yd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.yd(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.Pg(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Og(a)},!1),b.addEventListener("MSPointerUp",function(a){c.yd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.yd(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.Ci(a)},
!1),a.addEventListener("touchmove",function(a){c.Bi(a)},!1),b.addEventListener("touchend",function(a){c.wf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.wf(a,!0)},!1));if(this.xs){var d=function(a){a=a.reading;c.gm=a.accelerationX;c.hm=a.accelerationY;c.im=a.accelerationZ},e=function(a){a=a.reading;c.Qg=a.yawDegrees;c.Rg=a.pitchDegrees;c.Sg=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.Qg=a.alpha||
0;c.Rg=a.beta||0;c.Sg=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.fq=a.accelerationIncludingGravity.x||0,c.gq=a.accelerationIncludingGravity.y||0,c.hq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.gm=a.acceleration.x||0,c.hm=a.acceleration.y||0,c.im=a.acceleration.z||0)},!1);this.Lt&&!this.b.da&&(jQuery(document).mousemove(function(a){c.Mg(a)}),jQuery(document).mousedown(function(a){c.Lg(a)}),jQuery(document).mouseup(function(a){c.Ng(a)}));
this.b.df&&!this.b.$a&&AppMobi.accelerometer.watchAcceleration(k,{frequency:40,adjustForRotation:!0});this.b.qc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(g,null,{frequency:40});this.b.Et(this)};d.Og=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Zf(a.pointerId),c=T();if(0<=b){var d=this.b.da?q:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};d.Pg=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&bb(a)&&a.preventDefault();var b=this.b.da?q:jQuery(this.b.canvas).offset(),d=a.pageX-b.left,b=a.pageY-b.top;T();this.bd=this.touches.length;this.Kf=a.pointerId;this.touches.push(c(d,b,a.pointerId,this.bd));this.b.ka=!0;this.b.trigger(Z.prototype.j.$l,this);this.b.trigger(Z.prototype.j.cm,this);this.kd=d;this.ld=b;this.b.trigger(Z.prototype.j.am,this);this.b.ka=
!1}};d.yd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&bb(a)&&a.preventDefault();var c=this.Zf(a.pointerId);this.bd=0<=c?this.touches[c].eh:-1;this.Kf=0<=c?this.touches[c].id:-1;this.b.ka=!0;this.b.trigger(Z.prototype.j.Zl,this);this.b.trigger(Z.prototype.j.xj,this);0<=c&&(b||this.touches[c].Jn(this,c),100>z.length&&z.push(this.touches[c]),this.touches.splice(c,1));this.b.ka=!1}};d.Bi=function(a){a.preventDefault&&a.preventDefault();var b=T(),
c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.Zf(e.identifier),0<=f){var h=this.b.da?q:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-h.left,e.pageY-h.top)}};d.Ci=function(a){a.preventDefault&&bb(a)&&a.preventDefault();var b=this.b.da?q:jQuery(this.b.canvas).offset();T();this.b.ka=!0;var d,e,f,h;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],h=this.Zf(f.identifier),-1===h){h=f.pageX-b.left;var g=f.pageY-b.top;
this.bd=this.touches.length;this.Kf=f.identifier;this.touches.push(c(h,g,f.identifier,this.bd));this.b.trigger(Z.prototype.j.$l,this);this.b.trigger(Z.prototype.j.cm,this);this.kd=h;this.ld=g;this.b.trigger(Z.prototype.j.am,this)}this.b.ka=!1};d.wf=function(a,b){a.preventDefault&&bb(a)&&a.preventDefault();this.b.ka=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Zf(e.identifier),0<=e&&(this.bd=this.touches[e].eh,this.Kf=this.touches[e].id,this.b.trigger(Z.prototype.j.Zl,
this),this.b.trigger(Z.prototype.j.xj,this),b||this.touches[e].Jn(this,e),100>z.length&&z.push(this.touches[e]),this.touches.splice(e,1));this.b.ka=!1};d.Tu=function(){return this.b.df&&0===this.Qg&&0!==h?90*h:this.b.qc&&0===this.Qg&&0!==A?90*A:this.Qg};d.Uu=function(){return this.b.df&&0===this.Rg&&0!==u?-90*u:this.b.qc&&0===this.Rg&&0!==l?-90*l:this.Rg};d.Xu=function(){return this.b.df&&0===this.Sg&&0!==e?90*e:this.b.qc&&0===this.Sg&&0!==y?90*y:this.Sg};d.Lg=function(a){a.preventDefault&&this.b.$e&&
!this.b.Vc&&a.preventDefault();this.Ci({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Uk=!0};d.Mg=function(a){this.Uk&&this.Bi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};d.Ng=function(a){a.preventDefault&&this.b.$e&&!this.b.Vc&&a.preventDefault();this.b.$e=!0;this.wf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Uk=!1};d.Fl=function(){var a,b,c,d=T();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Jk=d),c.Es(this,
a)};s.prototype.cm=function(){return!0};s.prototype.xj=function(){return!0};s.prototype.am=function(a){return a?this.b.Hf(a,this.kd,this.ld,!1):!1};var t=[];s.prototype.rp=function(a){if(!a)return!1;var b=a.ca(),c=b.Ec(),d,e,f,h,g,k;f=0;for(h=c.length;f<h;f++){var l=c[f];l.Ba();g=0;for(k=this.touches.length;g<k;g++)if(e=this.touches[g],d=l.d.na(e.x,e.y,!0),e=l.d.na(e.x,e.y,!1),l.lb(d,e)){t.push(l);break}}return t.length?(b.ja=!1,ua(b.c,t),a.gd(),t.length=0,!0):!1};s.prototype.$l=function(a){a=Math.floor(a);
return a===this.bd};s.prototype.Zl=function(a){a=Math.floor(a);return a===this.bd};s.prototype.Ip=function(){return!0};s.prototype.Rp=function(){return!0};s.prototype.Ep=function(){return!0};s.prototype.Jp=function(a){return a?this.b.Hf(a,this.kd,this.ld,!1):!1};s.prototype.Sp=function(a){return a?this.b.Hf(a,this.kd,this.ld,!1):!1};s.prototype.Fp=function(a){return a?this.b.Hf(a,this.kd,this.ld,!1):!1};b.j=new s;a.prototype.em=function(a,b){var c=this.Xe;if(0>c||c>=this.touches.length)a.u(0);else{var d,
e,f,h,g;fa(b)?(d=this.b.rd(0),e=d.scale,f=d.kb,h=d.Fb,g=d.e,d.scale=1,d.kb=1,d.Fb=1,d.e=0,a.u(d.na(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.kb=f,d.Fb=h,d.e=g):(d=K(b)?this.b.rd(b):this.b.ag(b))?a.u(d.na(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};a.prototype.fm=function(a,b){var c=this.Xe;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,h,g;fa(b)?(d=this.b.rd(0),e=d.scale,f=d.kb,h=d.Gb,g=d.e,d.scale=1,d.kb=1,d.Gb=1,d.e=0,a.u(d.na(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.kb=f,d.Gb=h,d.e=g):(d=K(b)?this.b.rd(b):this.b.ag(b))?a.u(d.na(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};b.Rb=new a})();
function kc(k){this.b=k;var g=this;this.b.da||(jQuery(document).mousemove(function(c){g.Mg(c)}),jQuery(document).mousedown(function(c){g.Lg(c)}),jQuery(document).mouseup(function(c){g.Ng(c)}));k=0<this.b.mb?document:this.b.canvas;this.b.$a?k=window.Canvas:this.b.fc&&(k=window);window.navigator.pointerEnabled?(k.addEventListener("pointerdown",function(c){g.Pg(c)},!1),k.addEventListener("pointermove",function(c){g.Og(c)},!1),k.addEventListener("pointerup",function(c){g.yd(c)},!1),k.addEventListener("pointercancel",
function(c){g.yd(c)},!1)):window.navigator.msPointerEnabled?(k.addEventListener("MSPointerDown",function(c){g.Pg(c)},!1),k.addEventListener("MSPointerMove",function(c){g.Og(c)},!1),k.addEventListener("MSPointerUp",function(c){g.yd(c)},!1),k.addEventListener("MSPointerCancel",function(c){g.yd(c)},!1)):(k.addEventListener("touchstart",function(c){g.Ci(c)},!1),k.addEventListener("touchmove",function(c){g.Bi(c)},!1),k.addEventListener("touchend",function(c){g.wf(c)},!1),k.addEventListener("touchcancel",
function(c){g.wf(c)},!1))}
(function(){function k(a){var c,g;c=0;for(g=a.G.length;c<g;c++)if(a.G[c]instanceof f.Ca)return a.G[c];return null}function g(){}function c(){}var f=kc.prototype,s={left:0,top:0};f.Lg=function(a){1===a.which&&this.$k("leftmouse",a.pageX,a.pageY)};f.Mg=function(a){1===a.which&&this.al("leftmouse",a.pageX,a.pageY)};f.Ng=function(a){1===a.which&&this.bl("leftmouse")};f.Ci=function(a){a.preventDefault&&bb(a)&&a.preventDefault();var c,f,e,g;c=0;for(f=a.changedTouches.length;c<f;c++)e=a.changedTouches[c],
g=e.identifier,this.$k(g?g.toString():"<none>",e.pageX,e.pageY)};f.Bi=function(a){a.preventDefault&&a.preventDefault();var c,f,e,g;c=0;for(f=a.changedTouches.length;c<f;c++)e=a.changedTouches[c],g=e.identifier,this.al(g?g.toString():"<none>",e.pageX,e.pageY)};f.wf=function(a){a.preventDefault&&bb(a)&&a.preventDefault();var c,f,e;c=0;for(f=a.changedTouches.length;c<f;c++)e=a.changedTouches[c],e=e.identifier,this.bl(e?e.toString():"<none>")};f.Pg=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType&&(a.preventDefault&&bb(a)&&a.preventDefault(),this.$k(a.pointerId.toString(),a.pageX,a.pageY))};f.Og=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.al(a.pointerId.toString(),a.pageX,a.pageY))};f.yd=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&bb(a)&&a.preventDefault(),this.bl(a.pointerId.toString()))};f.$k=function(a,c,f){var e=this.b.da?s:jQuery(this.b.canvas).offset();
c-=e.left;f-=e.top;var g,h,y,l,e=this.sf.Pc(),A,z,m,n=null;A=0;for(z=e.length;A<z;A++)if(m=e[A],g=k(m),g.enabled&&!g.Pd&&(g=m.d.na(c,f,!0),h=m.d.na(c,f,!1),m.Ba(),m.lb(g,h)))n?m.d.index>n.d.index?(n=m,y=g,l=h):m.d.index===n.d.index&&m.Sb()>n.Sb()&&(n=m,y=g,l=h):(n=m,y=g,l=h);n&&k(n).Ls(a,y,l)};f.al=function(a,c,f){var e=this.b.da?s:jQuery(this.b.canvas).offset();c-=e.left;f-=e.top;var g,h=this.sf.Pc(),y,l,A;y=0;for(l=h.length;y<l;y++)g=h[y],A=k(g),!A.enabled||!A.Pd||A.Pd&&A.Tj!==a||(e=g.d.na(c,f,
!0),g=g.d.na(c,f,!1),A.Ps(e,g))};f.bl=function(a){var c=this.sf.Pc(),f,e,g;f=0;for(e=c.length;f<e;f++)g=c[f],g=k(g),g.Pd&&g.Tj===a&&g.Ss()};f.gb=function(a){this.behavior=a;this.b=a.b};f.gb.prototype.la=function(){};f.Ca=function(a,c){this.type=a;this.behavior=a.behavior;this.Db=c;this.b=a.b};var a=f.Ca.prototype;a.la=function(){this.Pd=!1;this.Cm=this.Bm=0;this.Tj="<none>";this.Ej=this.qa[0];this.enabled=0!==this.qa[1]};a.Xb=function(){return{enabled:this.enabled}};a.tc=function(a){this.enabled=
a.enabled;this.Pd=!1};a.Ls=function(a,c,f){this.Bm=c-this.Db.x;this.Cm=f-this.Db.y;this.Pd=!0;this.Tj=a;this.b.ka=!0;this.b.trigger(kc.prototype.j.Gp,this.Db);this.b.ka=!1};a.Ps=function(a,c){var f=a-this.Bm,e=c-this.Cm;if(0===this.Ej){if(this.Db.x!==f||this.Db.y!==e)this.Db.x=f,this.Db.y=e,this.Db.Aa()}else 1===this.Ej?this.Db.x!==f&&(this.Db.x=f,this.Db.Aa()):2===this.Ej&&this.Db.y!==e&&(this.Db.y=e,this.Db.Aa())};a.Ss=function(){this.Pd=!1;this.b.ka=!0;this.b.trigger(kc.prototype.j.Hp,this.Db);
this.b.ka=!1};a.Ya=function(){};g.prototype.Gp=function(){return!0};g.prototype.Hp=function(){return!0};f.j=new g;c.prototype.Yp=function(a){this.enabled=0!==a;this.enabled||(this.Pd=!1)};f.ra=new c;f.Rb=new function(){}})();
function $b(){return[bc,cc,dc,ec,ac,jc,Z,kc,dc.prototype.j.pp,ac.prototype.ra.Zp,dc.prototype.j.vj,Z.prototype.j.rp,W.prototype.ra.bq,dc.prototype.j.mp,W.prototype.j.jp,W.prototype.ra.Wp,W.prototype.ra.vp,bc.prototype.ra.Play,Z.prototype.j.xj,W.prototype.j.Xl,ac.prototype.j.op,W.prototype.ra.cq,ac.prototype.j.qp,ac.prototype.ra.$p,kc.prototype.ra.Yp,ac.prototype.ra.Xp,ac.prototype.ra.aq,W.prototype.ra.Up,W.prototype.ra.Vp,W.prototype.ra.up]};
