// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,G,ca,da,ea,N,ga,ha,ia,ja,ka,Q,la,ma,na,oa,pa,qa,ra,sa,ta,ua,R,va,wa,ya,za,Aa,Ba,Ea,Fa,Ga,Ha,Ia,Na,Oa,Pa,S,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,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,Nb,V,Ob,Pb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(f,a,c,s){this.set(f,a,c,s)}function r(){this.ob=this.nb=this.qb=this.pb=this.wb=this.ub=this.Ga=this.Fa=0}function b(f,a,c,s){f<a?c<s?(h=f<c?f:c,m=a>s?a:s):(h=f<s?f:s,m=a>c?a:c):c<s?(h=a<c?a:c,m=f>s?f:s):(h=a<s?a:s,m=f>c?f:c)}function p(){this.items=this.nd=null;this.Ff=0;l&&(this.nd=new Set);this.bg=[];this.Yd=!0}function q(f){v[C++]=f}function a(){this.da=this.vj=this.y=this.Vj=0}function c(f){this.Ta=[];this.Lh=this.Nh=this.Oh=this.Mh=0;this.uh(f)}function g(f,a){this.or=
f;this.nr=a;this.cells={}}function d(H,a,c){var s;return f.length?(s=f.pop(),s.ct=H,s.x=a,s.y=c,s):new aa(H,a,c)}function k(f,a,c){this.ct=f;this.x=a;this.y=c;this.eh=new ba}G=function(f){window.console&&window.console.log&&window.console.log(f)};ca=function(f){window.console&&window.console.error&&window.console.error(f)};da=function(f){return"undefined"===typeof f};ea=function(f){return"number"===typeof f};N=function(f){return"string"===typeof f};ga=function(f){return 0<f&&0===(f-1&f)};ha=function(f){--f;
for(var a=1;32>a;a<<=1)f|=f>>a;return f+1};ia=function(f){return 0>f?-f:f};ja=function(f,a){return f<a?f:a};ka=Math.PI;Q=function(f){return 0<=f?f|0:(f|0)-1};la=function(f){var a=f|0;return a===f?a:a+1};ma=function(f,a,c,s,g,d,b,l){var h,k,n,m;f<c?(k=f,h=c):(k=c,h=f);g<b?(m=g,n=b):(m=b,n=g);if(h<m||k>n)return!1;a<s?(k=a,h=s):(k=s,h=a);d<l?(m=d,n=l):(m=l,n=d);if(h<m||k>n)return!1;h=g-f+b-c;k=d-a+l-s;f=c-f;a=s-a;g=b-g;d=l-d;l=ia(a*g-d*f);return ia(g*k-d*h)>l?!1:ia(f*k-a*h)<=l};e.prototype.set=function(f,
a,c,s){this.left=f;this.top=a;this.right=c;this.bottom=s};e.prototype.sr=function(f){this.left=f.left;this.top=f.top;this.right=f.right;this.bottom=f.bottom};e.prototype.width=function(){return this.right-this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(f,a){this.left+=f;this.top+=a;this.right+=f;this.bottom+=a;return this};e.prototype.normalize=function(){var f=0;this.left>this.right&&(f=this.left,this.left=this.right,this.right=f);this.top>this.bottom&&
(f=this.top,this.top=this.bottom,this.bottom=f)};e.prototype.mt=function(f){return!(f.right<this.left||f.bottom<this.top||f.left>this.right||f.top>this.bottom)};e.prototype.nt=function(f,a,c){return!(f.right+a<this.left||f.bottom+c<this.top||f.left+a>this.right||f.top+c>this.bottom)};e.prototype.Rb=function(f,a){return f>=this.left&&f<=this.right&&a>=this.top&&a<=this.bottom};e.prototype.Tr=function(f){return this.left===f.left&&this.top===f.top&&this.right===f.right&&this.bottom===f.bottom};na=e;
r.prototype.sh=function(f){this.Fa=f.left;this.Ga=f.top;this.ub=f.right;this.wb=f.top;this.pb=f.right;this.qb=f.bottom;this.nb=f.left;this.ob=f.bottom};r.prototype.qp=function(f,a){if(0===a)this.sh(f);else{var c=Math.sin(a),s=Math.cos(a),g=f.left*c,d=f.top*c,b=f.right*c,c=f.bottom*c,l=f.left*s,h=f.top*s,k=f.right*s,s=f.bottom*s;this.Fa=l-d;this.Ga=h+g;this.ub=k-d;this.wb=h+b;this.pb=k-c;this.qb=s+b;this.nb=l-c;this.ob=s+g}};r.prototype.offset=function(f,a){this.Fa+=f;this.Ga+=a;this.ub+=f;this.wb+=
a;this.pb+=f;this.qb+=a;this.nb+=f;this.ob+=a;return this};var h=0,m=0;r.prototype.Vm=function(f){b(this.Fa,this.ub,this.pb,this.nb);f.left=h;f.right=m;b(this.Ga,this.wb,this.qb,this.ob);f.top=h;f.bottom=m};r.prototype.Rb=function(f,a){var c=this.ub-this.Fa,s=this.wb-this.Ga,g=this.pb-this.Fa,d=this.qb-this.Ga,b=f-this.Fa,l=a-this.Ga,h=c*c+s*s,k=c*g+s*d,s=c*b+s*l,n=g*g+d*d,m=g*b+d*l,v=1/(h*n-k*k),c=(n*s-k*m)*v,h=(h*m-k*s)*v;if(0<=c&&0<h&&1>c+h)return!0;c=this.nb-this.Fa;s=this.ob-this.Ga;h=c*c+s*
s;k=c*g+s*d;s=c*b+s*l;v=1/(h*n-k*k);c=(n*s-k*m)*v;h=(h*m-k*s)*v;return 0<=c&&0<h&&1>c+h};r.prototype.Vd=function(f,a){if(a)switch(f){case 0:return this.Fa;case 1:return this.ub;case 2:return this.pb;case 3:return this.nb;case 4:return this.Fa;default:return this.Fa}else switch(f){case 0:return this.Ga;case 1:return this.wb;case 2:return this.qb;case 3:return this.ob;case 4:return this.Ga;default:return this.Ga}};r.prototype.xo=function(){return(this.Fa+this.ub+this.pb+this.nb)/4};r.prototype.yo=function(){return(this.Ga+
this.wb+this.qb+this.ob)/4};r.prototype.Jn=function(f){var a=f.xo(),c=f.yo();if(this.Rb(a,c))return!0;a=this.xo();c=this.yo();if(f.Rb(a,c))return!0;var s,g,d,b,h,l,k,n;for(k=0;4>k;k++)for(n=0;4>n;n++)if(a=this.Vd(k,!0),c=this.Vd(k,!1),s=this.Vd(k+1,!0),g=this.Vd(k+1,!1),d=f.Vd(n,!0),b=f.Vd(n,!1),h=f.Vd(n+1,!0),l=f.Vd(n+1,!1),ma(a,c,s,g,d,b,h,l))return!0;return!1};oa=r;pa=function(f,a){for(var c in a)a.hasOwnProperty(c)&&(f[c]=a[c]);return f};qa=function(f,a){var c,s;a=Q(a);if(!(0>a||a>=f.length)){c=
a;for(s=f.length-1;c<s;c++)f[c]=f[c+1];f.length=s}};ra=function(f,a){f.length=a.length;var c,s;c=0;for(s=a.length;c<s;c++)f[c]=a[c]};sa=function(f,a){f.push.apply(f,a)};ta=function(f,a){var c,s;c=0;for(s=f.length;c<s;++c)if(f[c]===a)return c;return-1};ua=function(f,a){var c=ta(f,a);-1!==c&&qa(f,c)};R=function(f){return f/(180/ka)};va=function(f){return 180/ka*f};wa=function(f){f%=360;0>f&&(f+=360);return f};ya=function(f){f%=2*ka;0>f&&(f+=2*ka);return f};za=function(f){return wa(va(f))};Aa=function(f){return ya(R(f))};
Ba=function(f,a,c,s){return Math.atan2(s-a,c-f)};Ea=function(f,a){if(f===a)return 0;var c=Math.sin(f),s=Math.cos(f),g=Math.sin(a),d=Math.cos(a),c=c*g+s*d;return 1<=c?0:-1>=c?ka:Math.acos(c)};Fa=function(f,a,c){var s=Math.sin(f),g=Math.cos(f),d=Math.sin(a),b=Math.cos(a);return Math.acos(s*d+g*b)>c?0<g*d-s*b?ya(f+c):ya(f-c):ya(a)};Ga=function(f,a){var c=Math.sin(f),s=Math.cos(f),g=Math.sin(a),d=Math.cos(a);return 0>=s*g-c*d};Ha=function(f,a,c,s,g,d){if(0===c)return d?f:a;var b=Math.sin(c);c=Math.cos(c);
f-=s;a-=g;var h=f*b;f=f*c-a*b;a=a*c+h;return d?f+s:a+g};Ia=function(f,a,c,s){f=c-f;a=s-a;return Math.sqrt(f*f+a*a)};Na=function(f,a){return!f!==!a};Oa=function(f){for(var a in f)if(f.hasOwnProperty(a))return!0;return!1};Pa=function(f){for(var a in f)f.hasOwnProperty(a)&&delete f[a]};var x=+new Date;S=function(){if("undefined"!==typeof window.performance){var f=window.performance;if("undefined"!==typeof f.now)return f.now();if("undefined"!==typeof f.webkitNow)return f.webkitNow();if("undefined"!==
typeof f.mozNow)return f.mozNow();if("undefined"!==typeof f.msNow)return f.msNow()}return Date.now()-x};var n=!1,B=n=!1,w=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),n=!n&&/safari/i.test(navigator.userAgent),B=/(iphone|ipod|ipad)/i.test(navigator.userAgent),w=window.c2ejecta);var l=!n&&!w&&!B&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(f){return this.Oc()?!1:l?this.nd.has(f):this.items&&
this.items.hasOwnProperty(f)};p.prototype.add=function(f){if(l)this.nd.has(f)||(this.nd.add(f),this.Yd=!1);else{var a=f.toString(),c=this.items;c?c.hasOwnProperty(a)||(c[a]=f,this.Ff++,this.Yd=!1):(this.items={},this.items[a]=f,this.Ff=1,this.Yd=!1)}};p.prototype.remove=function(f){if(!this.Oc())if(l)this.nd.has(f)&&(this.nd["delete"](f),this.Yd=!1);else if(this.items){f=f.toString();var a=this.items;a.hasOwnProperty(f)&&(delete a[f],this.Ff--,this.Yd=!1)}};p.prototype.clear=function(){this.Oc()||
(l?this.nd.clear():(this.items=null,this.Ff=0),this.bg.length=0,this.Yd=!0)};p.prototype.Oc=function(){return 0===this.count()};p.prototype.count=function(){return l?this.nd.size:this.Ff};var v=null,C=0;p.prototype.Cu=function(){if(!this.Yd){if(l)this.bg.length=this.nd.size,v=this.bg,C=0,this.nd.forEach(q),v=null,C=0;else{var f=this.bg;f.length=this.Ff;var a,c=0,s=this.items;if(s)for(a in s)s.hasOwnProperty(a)&&(f[c++]=s[a])}this.Yd=!0}};p.prototype.df=function(){this.Cu();return this.bg};ba=p;new ba;
a.prototype.add=function(f){this.y=f-this.Vj;this.vj=this.da+this.y;this.Vj=this.vj-this.da-this.y;this.da=this.vj};a.prototype.reset=function(){this.da=this.vj=this.y=this.Vj=0};Qa=a;Ra=function(f){return f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};c.prototype.uh=function(f){this.cp=f;this.Tc=f.length/2;this.Ta.length=f.length;this.Qh=this.Rh=-1;this.Ym=0};c.prototype.Cf=function(){return!this.cp.length};c.prototype.Ca=function(){for(var f=this.Ta,a=f[0],c=a,s=f[1],g=s,d,b,h=1,l=this.Tc;h<l;++h)b=
2*h,d=f[b],b=f[b+1],d<a&&(a=d),d>c&&(c=d),b<s&&(s=b),b>g&&(g=b);this.Mh=a;this.Nh=c;this.Oh=s;this.Lh=g};c.prototype.sh=function(f,a,c){this.Ta.length=8;this.Tc=4;var s=this.Ta;s[0]=f.left-a;s[1]=f.top-c;s[2]=f.right-a;s[3]=f.top-c;s[4]=f.right-a;s[5]=f.bottom-c;s[6]=f.left-a;s[7]=f.bottom-c;this.Rh=f.right-f.left;this.Qh=f.bottom-f.top;this.Ca()};c.prototype.Vf=function(f,a,c,s,g){this.Ta.length=8;this.Tc=4;var d=this.Ta;d[0]=f.Fa-a;d[1]=f.Ga-c;d[2]=f.ub-a;d[3]=f.wb-c;d[4]=f.pb-a;d[5]=f.qb-c;d[6]=
f.nb-a;d[7]=f.ob-c;this.Rh=s;this.Qh=g;this.Ca()};c.prototype.pp=function(f){this.Tc=f.Tc;ra(this.Ta,f.Ta);this.Mh=f.Mh;this.Oh-f.Oh;this.Nh=f.Nh;this.Lh=f.Lh};c.prototype.of=function(f,a,c){if(this.Rh!==f||this.Qh!==a||this.Ym!==c){this.Rh=f;this.Qh=a;this.Ym=c;var s,g,d,b,h,l=0,k=1,n=this.cp,m=this.Ta;0!==c&&(l=Math.sin(c),k=Math.cos(c));c=0;for(d=this.Tc;c<d;c++)s=2*c,g=s+1,b=n[s]*f,h=n[g]*a,m[s]=b*k-h*l,m[g]=h*k+b*l;this.Ca()}};c.prototype.Rb=function(f,a){var c=this.Ta;if(f===c[0]&&a===c[1])return!0;
var s,g,d,b=this.Tc,h=this.Mh-110,l=this.Oh-101,k=this.Nh+131,n=this.Lh+120,m,v,p=0,q=0;for(s=0;s<b;s++)g=2*s,d=(s+1)%b*2,m=c[g],g=c[g+1],v=c[d],d=c[d+1],ma(h,l,f,a,m,g,v,d)&&p++,ma(k,n,f,a,m,g,v,d)&&q++;return 1===p%2||1===q%2};c.prototype.Eg=function(f,a,c){var s=f.Ta,g=this.Ta;if(this.Rb(s[0]+a,s[1]+c)||f.Rb(g[0]-a,g[1]-c))return!0;var d,b,h,l,k,n,m,v,p,q,e,B;d=0;for(l=this.Tc;d<l;d++)for(b=2*d,h=(d+1)%l*2,v=g[b],b=g[b+1],p=g[h],q=g[h+1],h=0,m=f.Tc;h<m;h++)if(k=2*h,n=(h+1)%m*2,e=s[k]+a,k=s[k+1]+
c,B=s[n]+a,n=s[n+1]+c,ma(v,b,p,q,e,k,B,n))return!0;return!1};Sa=c;g.prototype.uk=function(f,a,c){var s;s=this.cells[f];return s?(s=s[a])?s:c?(s=d(this,f,a),this.cells[f][a]=s):null:c?(s=d(this,f,a),this.cells[f]={},this.cells[f][a]=s):null};g.prototype.Hh=function(f){return Q(f/this.or)};g.prototype.Ih=function(f){return Q(f/this.nr)};g.prototype.update=function(a,c,s){var g,d,b,h,l;if(c)for(g=c.left,d=c.right;g<=d;++g)for(b=c.top,h=c.bottom;b<=h;++b)if(!s||!s.Rb(g,b))if(l=this.uk(g,b,!1))l.remove(a),
l.Oc()&&(l.eh.clear(),1E3>f.length&&f.push(l),this.cells[g][b]=null);if(s)for(g=s.left,d=s.right;g<=d;++g)for(b=s.top,h=s.bottom;b<=h;++b)c&&c.Rb(g,b)||this.uk(g,b,!0).lt(a)};g.prototype.ep=function(f,a){var c,s,g,d,b,h;c=this.Hh(f.left);g=this.Ih(f.top);s=this.Hh(f.right);for(b=this.Ih(f.bottom);c<=s;++c)for(d=g;d<=b;++d)(h=this.uk(c,d,!1))&&h.dump(a)};Ta=g;var f=[];k.prototype.Oc=function(){return this.eh.Oc()};k.prototype.lt=function(f){this.eh.add(f)};k.prototype.remove=function(f){this.eh.remove(f)};
k.prototype.dump=function(f){sa(f,this.eh.df())};aa=k;var s="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Ua=function(f){return 0>=f||11<=f?"source-over":s[f-1]};Va=function(f,a,c){if(c)switch(f.tb=c.ONE,f.sb=c.ONE_MINUS_SRC_ALPHA,a){case 1:f.tb=c.ONE;f.sb=c.ONE;break;case 3:f.tb=c.ONE;f.sb=c.ZERO;break;case 4:f.tb=c.ONE_MINUS_DST_ALPHA;f.sb=c.ONE;break;case 5:f.tb=c.DST_ALPHA;f.sb=c.ZERO;break;case 6:f.tb=c.ZERO;f.sb=
c.SRC_ALPHA;break;case 7:f.tb=c.ONE_MINUS_DST_ALPHA;f.sb=c.ZERO;break;case 8:f.tb=c.ZERO;f.sb=c.ONE_MINUS_SRC_ALPHA;break;case 9:f.tb=c.DST_ALPHA;f.sb=c.ONE_MINUS_SRC_ALPHA;break;case 10:f.tb=c.ONE_MINUS_DST_ALPHA,f.sb=c.SRC_ALPHA}};Wa=function(f){return Math.round(1E6*f)/1E6};Xa=function(f,a){return"string"!==typeof f||"string"!==typeof a||f.length!==a.length?!1:f===a?!0:f.toLowerCase()===a.toLowerCase()};Ya=function(f){f=f.target;return!f||f===document||f===window||document&&document.body&&f===
document.body||Xa(f.tagName,"canvas")?!0:!1}})();var Qb="undefined"!==typeof Float32Array?Float32Array:Array;function Rb(e){var r=new Qb(3);e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]);return r}function Sb(e){var r=new Qb(16);e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]);return r}
function Tb(e,r){r[0]=e[0];r[1]=e[1];r[2]=e[2];r[3]=e[3];r[4]=e[4];r[5]=e[5];r[6]=e[6];r[7]=e[7];r[8]=e[8];r[9]=e[9];r[10]=e[10];r[11]=e[11];r[12]=e[12];r[13]=e[13];r[14]=e[14];r[15]=e[15]}function Ub(e,r){var b=r[0],p=r[1];r=r[2];e[0]*=b;e[1]*=b;e[2]*=b;e[3]*=b;e[4]*=p;e[5]*=p;e[6]*=p;e[7]*=p;e[8]*=r;e[9]*=r;e[10]*=r;e[11]*=r}
function Vb(e,r,b,p){p||(p=Sb());var q,a,c,g,d,k,h,m,x=e[0],n=e[1];e=e[2];a=b[0];c=b[1];q=b[2];b=r[1];k=r[2];x===r[0]&&n===b&&e===k?(e=p,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(b=x-r[0],k=n-r[1],h=e-r[2],m=1/Math.sqrt(b*b+k*k+h*h),b*=m,k*=m,h*=m,r=c*h-q*k,q=q*b-a*h,a=a*k-c*b,(m=Math.sqrt(r*r+q*q+a*a))?(m=1/m,r*=m,q*=m,a*=m):a=q=r=0,c=k*a-h*q,g=h*r-b*a,d=b*q-k*r,(m=Math.sqrt(c*c+g*g+d*d))?(m=1/m,c*=m,g*=m,d*=m):d=g=c=0,
p[0]=r,p[1]=c,p[2]=b,p[3]=0,p[4]=q,p[5]=g,p[6]=k,p[7]=0,p[8]=a,p[9]=d,p[10]=h,p[11]=0,p[12]=-(r*x+q*n+a*e),p[13]=-(c*x+g*n+d*e),p[14]=-(b*x+k*n+h*e),p[15]=1)}
(function(){function e(a){this.Je=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Zm=Rb([0,0,100]);this.io=Rb([0,0,0]);this.Lp=Rb([0,1,0]);this.wm=Rb([1,1,1]);this.jn=!0;this.il=Sb();this.Cc=Sb();this.Vn=Sb();this.bk=Sb();this.n=a;this.Fn()}function r(a,c,g){this.n=a;this.vh=c;this.name=g;this.Bc=a.getAttribLocation(c,"aPos");this.he=a.getAttribLocation(c,"aTex");this.fo=a.getUniformLocation(c,"matP");this.Ri=a.getUniformLocation(c,"matMV");this.Jf=
a.getUniformLocation(c,"opacity");this.ho=a.getUniformLocation(c,"samplerFront");this.Yg=a.getUniformLocation(c,"samplerBack");this.Re=a.getUniformLocation(c,"destStart");this.Qe=a.getUniformLocation(c,"destEnd");this.fl=a.getUniformLocation(c,"seconds");this.el=a.getUniformLocation(c,"pixelWidth");this.dl=a.getUniformLocation(c,"pixelHeight");this.Xg=a.getUniformLocation(c,"layerScale");this.Wg=a.getUniformLocation(c,"layerAngle");this.Zg=a.getUniformLocation(c,"viewOrigin");this.gt=!!(this.el||
this.dl||this.fl||this.Yg||this.Re||this.Qe||this.Xg||this.Wg||this.Zg);this.qo=this.ro=-999;this.Ti=1;this.mo=this.lo=0;this.oo=this.ko=this.jo=1;this.to=this.so=this.no=0;this.Uk=[];this.po=Sb();this.Jf&&a.uniform1f(this.Jf,1);this.ho&&a.uniform1i(this.ho,0);this.Yg&&a.uniform1i(this.Yg,1);this.Re&&a.uniform2f(this.Re,0,0);this.Qe&&a.uniform2f(this.Qe,1,1);this.Xg&&a.uniform1f(this.Xg,1);this.Wg&&a.uniform1f(this.Wg,0);this.Zg&&a.uniform2f(this.Zg,0,0);this.Fe=!1}function b(a,c){this.type=a;this.q=
c;this.n=c.n;this.ed=this.Fc=this.No=0;this.ka=this.Xc=null;this.rp=[]}e.prototype.Fn=function(){var a=this.n,c;this.Wn=1;this.Oe=this.fe=null;this.Zh=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.Yn=a.ONE;this.Tn=a.ONE_MINUS_SRC_ALPHA;this.Al=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Al);this.Eh=Array(4);this.zh=Array(4);for(c=0;4>c;c++)this.Eh[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,
this.Eh[c]),this.zh[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.zh[c]);this.Ad=0;this.jt=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.jt);this.tm=new Float32Array(16E3);this.em=new Float32Array(16E3);this.Vt=new Float32Array(32E3);for(var g=new Uint16Array(12E3),d=c=0;12E3>c;)g[c++]=d,g[c++]=d+1,g[c++]=d+2,g[c++]=d,g[c++]=d+2,g[c++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,g,a.STATIC_DRAW);this.Bl=this.ud=0;this.Wa=[];c=this.ak({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.Wa.push(c);c=this.ak({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.Wa.push(c);for(var b in Wb)Wb.hasOwnProperty(b)&&this.Wa.push(this.ak(Wb[b],"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}",b));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Xd=[];this.xd=0;this.Ub=!1;this.gn=this.Pg=-1;this.ng=null;this.vs=a.createFramebuffer();this.hp=
null;this.te=Rb([0,0,0]);this.uo=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.uo&&(this.uo=2048);this.qd(0)};r.prototype.om=function(a){var c=this.po;if(c[0]!==a[0]||c[1]!==a[1]||c[2]!==a[2]||c[3]!==a[3]||c[4]!==a[4]||c[5]!==a[5]||c[6]!==a[6]||c[7]!==a[7]||c[8]!==a[8]||c[9]!==a[9]||c[10]!==a[10]||c[11]!==a[11]||c[12]!==a[12]||c[13]!==a[13]||c[14]!==a[14]||c[15]!==a[15])Tb(a,this.po),this.n.uniformMatrix4fv(this.Ri,!1,a)};e.prototype.ak=function(a,c,g){var d=this.n,b=d.createShader(d.FRAGMENT_SHADER);
d.shaderSource(b,a.src);d.compileShader(b);if(!d.getShaderParameter(b,d.COMPILE_STATUS))return d.deleteShader(b),null;var h=d.createShader(d.VERTEX_SHADER);d.shaderSource(h,c);d.compileShader(h);if(!d.getShaderParameter(h,d.COMPILE_STATUS))return d.deleteShader(b),d.deleteShader(h),null;c=d.createProgram();d.attachShader(c,b);d.attachShader(c,h);d.linkProgram(c);if(!d.getProgramParameter(c,d.LINK_STATUS))return d.deleteShader(b),d.deleteShader(h),d.deleteProgram(c),null;d.useProgram(c);d.deleteShader(b);
d.deleteShader(h);g=new r(d,c,g);g.kk=a.kk||0;g.lk=a.lk||0;g.dn=!!a.dn;g.Sm=!!a.Sm;g.J=a.J||[];a=0;for(b=g.J.length;a<b;a++)g.J[a][1]=d.getUniformLocation(c,g.J[a][0]),g.Uk.push(0),d.uniform1f(g.J[a][1],0);return g};e.prototype.Bk=function(a){var c,g;c=0;for(g=this.Wa.length;c<g;c++)if(this.Wa[c].name===a)return c;return-1};e.prototype.bp=function(a,c,g){var d=this.Cc,b=this.il,h=[0,0,0,0,0,0,0,0];h[0]=d[0]*a+d[4]*c+d[12];h[1]=d[1]*a+d[5]*c+d[13];h[2]=d[2]*a+d[6]*c+d[14];h[3]=d[3]*a+d[7]*c+d[15];
h[4]=b[0]*h[0]+b[4]*h[1]+b[8]*h[2]+b[12]*h[3];h[5]=b[1]*h[0]+b[5]*h[1]+b[9]*h[2]+b[13]*h[3];h[6]=b[2]*h[0]+b[6]*h[1]+b[10]*h[2]+b[14]*h[3];h[7]=-h[2];0!==h[7]&&(h[7]=1/h[7],h[4]*=h[7],h[5]*=h[7],h[6]*=h[7],g[0]=(.5*h[4]+.5)*this.width,g[1]=(.5*h[5]+.5)*this.height)};e.prototype.Uf=function(a,c,g){if(this.width!==a||this.height!==c||g){this.ae();this.width=a;this.height=c;this.n.viewport(0,0,a,c);c=a/c;var d=this.il,b;b=1*Math.tan(45*Math.PI/360);c*=b;a=-c;g=-b;d||(d=Sb());var h=c-a,m=b-g;d[0]=2/h;
d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/m;d[6]=0;d[7]=0;d[8]=(c+a)/h;d[9]=(b+g)/m;d[10]=-1001/999;d[11]=-1;d[12]=0;d[13]=0;d[14]=-2E3/999;d[15]=0;Vb(this.Zm,this.io,this.Lp,this.Cc);a=[0,0];c=[0,0];this.bp(0,0,a);this.bp(1,1,c);this.wm[0]=1/(c[0]-a[0]);this.wm[1]=-1/(c[1]-a[1]);a=0;for(c=this.Wa.length;a<c;a++)g=this.Wa[a],g.Fe=!1,g.fo&&(this.n.useProgram(g.vh),this.n.uniformMatrix4fv(g.fo,!1,this.il));this.n.useProgram(this.Wa[this.Pg].vh);this.n.bindTexture(this.n.TEXTURE_2D,null);this.n.activeTexture(this.n.TEXTURE1);
this.n.bindTexture(this.n.TEXTURE_2D,null);this.n.activeTexture(this.n.TEXTURE0);this.Oe=this.fe=null}};e.prototype.md=function(){Vb(this.Zm,this.io,this.Lp,this.Cc);Ub(this.Cc,this.wm)};e.prototype.translate=function(a,c){if(0!==a||0!==c){this.te[0]=a;this.te[1]=c;this.te[2]=0;var g=this.Cc,d=this.te,b=d[0],h=d[1],d=d[2];g[12]=g[0]*b+g[4]*h+g[8]*d+g[12];g[13]=g[1]*b+g[5]*h+g[9]*d+g[13];g[14]=g[2]*b+g[6]*h+g[10]*d+g[14];g[15]=g[3]*b+g[7]*h+g[11]*d+g[15]}};e.prototype.scale=function(a,c){if(1!==a||
1!==c)this.te[0]=a,this.te[1]=c,this.te[2]=1,Ub(this.Cc,this.te)};e.prototype.Ol=function(a){if(0!==a){var c=this.Cc,g,d=Math.sin(a);a=Math.cos(a);var b=c[0],h=c[1],m=c[2],p=c[3],n=c[4],q=c[5],e=c[6],l=c[7];g?c!==g&&(g[8]=c[8],g[9]=c[9],g[10]=c[10],g[11]=c[11],g[12]=c[12],g[13]=c[13],g[14]=c[14],g[15]=c[15]):g=c;g[0]=b*a+n*d;g[1]=h*a+q*d;g[2]=m*a+e*d;g[3]=p*a+l*d;g[4]=b*-d+n*a;g[5]=h*-d+q*a;g[6]=m*-d+e*a;g[7]=p*-d+l*a}};e.prototype.td=function(){for(var a=!1,c=0;16>c;c++)if(this.Vn[c]!==this.Cc[c]){a=
!0;break}a&&(a=this.Uc(),a.type=5,a.ka?Tb(this.Cc,a.ka):a.ka=Sb(this.Cc),Tb(this.Cc,this.Vn),this.Ub=!1)};b.prototype.Mr=function(){this.n.bindTexture(this.n.TEXTURE_2D,this.Xc)};b.prototype.Nr=function(){var a=this.n;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Xc);a.activeTexture(a.TEXTURE0)};b.prototype.Jr=function(){var a=this.No,c=this.q;c.Zh=a;c=c.ng;c.Jf&&c.Ti!==a&&(c.Ti=a,this.n.uniform1f(c.Jf,a))};b.prototype.Gr=function(){this.n.drawElements(this.n.TRIANGLES,this.ed,this.n.UNSIGNED_SHORT,
2*this.Fc)};b.prototype.Ir=function(){this.n.blendFunc(this.Fc,this.ed)};b.prototype.Or=function(){var a,c,g,d=this.q.Wa,b=this.q.gn;a=0;for(c=d.length;a<c;a++)g=d[a],a===b&&g.Ri?(g.om(this.ka),g.Fe=!0):g.Fe=!1;Tb(this.ka,this.q.bk)};b.prototype.Hr=function(){var a=this.n,c=this.q;this.Xc?(c.Oe===this.Xc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),c.Oe=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.vs),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,
a.TEXTURE_2D,this.Xc,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};b.prototype.Er=function(){var a=this.n;0===this.Fc?(a.clearColor(this.ka[0],this.ka[1],this.ka[2],this.ka[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),a.scissor(this.ka[0],this.ka[1],this.ka[2],this.ka[3]),a.clearColor(0,0,0,0),a.clear(this.n.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};b.prototype.Fr=function(){var a=this.n,c=this.q,g=c.Wa[1];
a.useProgram(g.vh);!g.Fe&&g.Ri&&(g.om(c.bk),g.Fe=!0);a.enableVertexAttribArray(g.Bc);a.bindBuffer(a.ARRAY_BUFFER,c.Al);a.vertexAttribPointer(g.Bc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Fc/4,this.ed);g=c.ng;a.useProgram(g.vh);0<=g.Bc&&(a.enableVertexAttribArray(g.Bc),a.bindBuffer(a.ARRAY_BUFFER,c.Eh[c.Ad]),a.vertexAttribPointer(g.Bc,2,a.FLOAT,!1,0,0));0<=g.he&&(a.enableVertexAttribArray(g.he),a.bindBuffer(a.ARRAY_BUFFER,c.zh[c.Ad]),a.vertexAttribPointer(g.he,2,a.FLOAT,!1,0,0))};b.prototype.Kr=
function(){var a=this.n,c=this.q,g=c.Wa[this.Fc];c.gn=this.Fc;c.ng=g;a.useProgram(g.vh);!g.Fe&&g.Ri&&(g.om(c.bk),g.Fe=!0);g.Jf&&g.Ti!==c.Zh&&(g.Ti=c.Zh,a.uniform1f(g.Jf,c.Zh));0<=g.Bc&&(a.enableVertexAttribArray(g.Bc),a.bindBuffer(a.ARRAY_BUFFER,c.Eh[c.Ad]),a.vertexAttribPointer(g.Bc,2,a.FLOAT,!1,0,0));0<=g.he&&(a.enableVertexAttribArray(g.he),a.bindBuffer(a.ARRAY_BUFFER,c.zh[c.Ad]),a.vertexAttribPointer(g.he,2,a.FLOAT,!1,0,0))};b.prototype.Lr=function(){var a,c,g=this.q.ng,d=this.n;a=this.ka;g.Yg&&
this.q.Oe!==this.Xc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.Xc),this.q.Oe=this.Xc,d.activeTexture(d.TEXTURE0));var b=a[0];g.el&&b!==g.ro&&(g.ro=b,d.uniform1f(g.el,b));b=a[1];g.dl&&b!==g.qo&&(g.qo=b,d.uniform1f(g.dl,b));b=a[2];c=a[3];!g.Re||b===g.lo&&c===g.mo||(g.lo=b,g.mo=c,d.uniform2f(g.Re,b,c));b=a[4];c=a[5];!g.Qe||b===g.jo&&c===g.ko||(g.jo=b,g.ko=b,d.uniform2f(g.Qe,b,c));b=a[6];g.Xg&&b!==g.oo&&(g.oo=b,d.uniform1f(g.Xg,b));b=a[7];g.Wg&&b!==g.no&&(g.no=b,d.uniform1f(g.Wg,b));
b=a[8];c=a[9];!g.Zg||b===g.so&&b===g.to||(g.so=b,g.to=c,d.uniform2f(g.Zg,b,c));g.fl&&d.uniform1f(g.fl,S()/1E3);if(g.J.length)for(a=0,c=g.J.length;a<c;a++)b=this.rp[a],b!==g.Uk[a]&&(g.Uk[a]=b,d.uniform1f(g.J[a][1],b))};e.prototype.Uc=function(){this.xd===this.Xd.length&&this.Xd.push(new b(0,this));return this.Xd[this.xd++]};e.prototype.ae=function(){if(0!==this.xd&&!this.n.isContextLost()){var a=this.n;0<this.Bl&&(a.bindBuffer(a.ARRAY_BUFFER,this.Al),a.bufferData(a.ARRAY_BUFFER,this.Vt.subarray(0,
this.Bl),a.STREAM_DRAW),c&&0<=c.Bc&&"<point>"===c.name&&a.vertexAttribPointer(c.Bc,4,a.FLOAT,!1,0,0));if(0<this.ud){var c=this.ng;a.bindBuffer(a.ARRAY_BUFFER,this.Eh[this.Ad]);a.bufferData(a.ARRAY_BUFFER,this.tm.subarray(0,this.ud),a.STREAM_DRAW);c&&0<=c.Bc&&"<point>"!==c.name&&a.vertexAttribPointer(c.Bc,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.zh[this.Ad]);a.bufferData(a.ARRAY_BUFFER,this.em.subarray(0,this.ud),a.STREAM_DRAW);c&&0<=c.he&&"<point>"!==c.name&&a.vertexAttribPointer(c.he,2,
a.FLOAT,!1,0,0)}for(var g,a=0,c=this.xd;a<c;a++)switch(g=this.Xd[a],g.type){case 1:g.Gr();break;case 2:g.Mr();break;case 3:g.Jr();break;case 4:g.Ir();break;case 5:g.Or();break;case 6:g.Hr();break;case 7:g.Er();break;case 8:g.Fr();break;case 9:g.Kr();break;case 10:g.Lr();break;case 11:g.Nr()}this.Bl=this.ud=this.xd=0;this.Ub=!1;this.Ad++;4<=this.Ad&&(this.Ad=0)}};e.prototype.Ye=function(a){if(a!==this.Wn){var c=this.Uc();c.type=3;this.Wn=c.No=a;this.Ub=!1}};e.prototype.Zb=function(a){if(a!==this.fe){var c=
this.Uc();c.type=2;this.fe=c.Xc=a;this.Ub=!1}};e.prototype.me=function(a,c){if(a!==this.Yn||c!==this.Tn){var g=this.Uc();g.type=4;g.Fc=a;g.ed=c;this.Yn=a;this.Tn=c;this.Ub=!1}};e.prototype.lp=function(){this.me(this.n.ONE,this.n.ONE_MINUS_SRC_ALPHA)};e.prototype.ij=function(a,c,g,b,k,h,m,p){15992<=this.ud&&this.ae();var n=this.ud,q=this.tm,e=this.em;if(this.Ub)this.Xd[this.xd-1].ed+=6;else{var l=this.Uc();l.type=1;l.Fc=n/4*3;l.ed=6;this.Ub=!0}q[n]=a;e[n++]=0;q[n]=c;e[n++]=0;q[n]=g;e[n++]=1;q[n]=b;
e[n++]=0;q[n]=k;e[n++]=1;q[n]=h;e[n++]=1;q[n]=m;e[n++]=0;q[n]=p;e[n++]=1;this.ud=n};e.prototype.ld=function(a,c,g,b,k,h,m,p,n){15992<=this.ud&&this.ae();var q=this.ud,e=this.tm,l=this.em;if(this.Ub)this.Xd[this.xd-1].ed+=6;else{var v=this.Uc();v.type=1;v.Fc=q/4*3;v.ed=6;this.Ub=!0}var v=n.left,r=n.top,f=n.right;n=n.bottom;e[q]=a;l[q++]=v;e[q]=c;l[q++]=r;e[q]=g;l[q++]=f;e[q]=b;l[q++]=r;e[q]=k;l[q++]=f;e[q]=h;l[q++]=n;e[q]=m;l[q++]=v;e[q]=p;l[q++]=n;this.ud=q};e.prototype.qd=function(a){if(this.Pg!==
a){if(!this.Wa[a]){if(0===this.Pg)return;a=0}var c=this.Uc();c.type=9;this.Pg=c.Fc=a;this.Ub=!1}};e.prototype.kh=function(a){a=this.Wa[a];return!(!a.Re&&!a.Qe)};e.prototype.El=function(a){a=this.Wa[a];return!!(a.Re||a.Qe||a.dn)};e.prototype.$t=function(a){a=this.Wa[a];return 0!==a.kk||0!==a.lk};e.prototype.Ks=function(a){return this.Wa[a].kk};e.prototype.Ls=function(a){return this.Wa[a].lk};e.prototype.Ms=function(a,c){return this.Wa[a].J[c][2]};e.prototype.hj=function(a){return this.Wa[a].Sm};e.prototype.Tf=
function(a,c,g,b,k,h,m,p,n,q,e,l){var v=this.Wa[this.Pg],r,f;if(v.gt||l.length){r=this.Uc();r.type=10;r.ka?Tb(this.Cc,r.ka):r.ka=Sb();f=r.ka;f[0]=c;f[1]=g;f[2]=b;f[3]=k;f[4]=h;f[5]=m;f[6]=p;f[7]=n;f[8]=q;f[9]=e;r.Xc=v.Yg?a:null;if(l.length)for(g=r.rp,g.length=l.length,a=0,c=l.length;a<c;a++)g[a]=l[a];this.Ub=!1}};e.prototype.clear=function(a,c,g,b){var k=this.Uc();k.type=7;k.Fc=0;k.ka||(k.ka=Sb());k.ka[0]=a;k.ka[1]=c;k.ka[2]=g;k.ka[3]=b;this.Ub=!1};e.prototype.clearRect=function(a,c,g,b){if(!(0>g||
0>b)){var k=this.Uc();k.type=7;k.Fc=1;k.ka||(k.ka=Sb());k.ka[0]=a;k.ka[1]=c;k.ka[2]=g;k.ka[3]=b;this.Ub=!1}};e.prototype.Zt=function(){this.ae();this.n.flush()};var p=[],q={};e.prototype.rr=function(){p.length=0;q={}};e.prototype.Pi=function(a,c,g,b){c=!!c;g=!!g;var k=a.src+","+c+","+g+(c?",undefined":""),h=null;if("undefined"!==typeof a.src&&q.hasOwnProperty(k))return h=q[k],h.Ph++,h;this.ae();var m=this.n,e=ga(a.width)&&ga(a.height),h=m.createTexture();m.bindTexture(m.TEXTURE_2D,h);m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL,
!0);var n=m.RGBA,r=m.RGBA,w=m.UNSIGNED_BYTE;if(b&&!this.Je)switch(b){case 1:r=n=m.RGB;break;case 2:w=m.UNSIGNED_SHORT_4_4_4_4;break;case 3:w=m.UNSIGNED_SHORT_5_5_5_1;break;case 4:r=n=m.RGB,w=m.UNSIGNED_SHORT_5_6_5}if(!e&&c){b=document.createElement("canvas");b.width=ha(a.width);b.height=ha(a.height);var l=b.getContext("2d");l.webkitImageSmoothingEnabled=g;l.mozImageSmoothingEnabled=g;l.msImageSmoothingEnabled=g;l.imageSmoothingEnabled=g;l.drawImage(a,0,0,a.width,a.height,0,0,b.width,b.height);m.texImage2D(m.TEXTURE_2D,
0,n,r,w,b)}else m.texImage2D(m.TEXTURE_2D,0,n,r,w,a);c?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.REPEAT),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.REPEAT)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.CLAMP_TO_EDGE),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.CLAMP_TO_EDGE));g?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.LINEAR),e&&this.jn?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR_MIPMAP_LINEAR),m.generateMipmap(m.TEXTURE_2D)):m.texParameteri(m.TEXTURE_2D,
m.TEXTURE_MIN_FILTER,m.LINEAR)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.NEAREST),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.NEAREST));m.bindTexture(m.TEXTURE_2D,null);this.fe=null;h.ig=a.width;h.hg=a.height;h.Ph=1;h.Xm=k;p.push(h);return q[k]=h};e.prototype.zd=function(a,c,g,b){this.ae();var k=this.n;this.Je&&(b=!1);var h=k.createTexture();k.bindTexture(k.TEXTURE_2D,h);k.texImage2D(k.TEXTURE_2D,0,k.RGBA,a,c,0,k.RGBA,b?k.UNSIGNED_SHORT_4_4_4_4:k.UNSIGNED_BYTE,null);k.texParameteri(k.TEXTURE_2D,
k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,g?k.LINEAR:k.NEAREST);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,g?k.LINEAR:k.NEAREST);k.bindTexture(k.TEXTURE_2D,null);this.fe=null;h.ig=a;h.hg=c;p.push(h);return h};e.prototype.Gu=function(a,c,g){this.ae();var b=this.n;this.Je&&(g=!1);b.bindTexture(b.TEXTURE_2D,c);b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{b.texImage2D(b.TEXTURE_2D,
0,b.RGBA,b.RGBA,g?b.UNSIGNED_SHORT_4_4_4_4:b.UNSIGNED_BYTE,a)}catch(k){console&&console.error&&console.error("Error updating WebGL texture: ",k)}b.bindTexture(b.TEXTURE_2D,null);this.fe=null};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Ph&&1<a.Ph?a.Ph--:(this.ae(),a===this.fe&&(this.n.bindTexture(this.n.TEXTURE_2D,null),this.fe=null),a===this.Oe&&(this.n.activeTexture(this.n.TEXTURE1),this.n.bindTexture(this.n.TEXTURE_2D,null),this.n.activeTexture(this.n.TEXTURE0),this.Oe=null),
ua(p,a),"undefined"!==typeof a.Xm&&delete q[a.Xm],this.n.deleteTexture(a)))};e.prototype.od=function(a){if(a!==this.hp){var c=this.Uc();c.type=6;this.hp=c.Xc=a;this.Ub=!1}};Za=e})();
(function(){function e(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function r(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function b(f){if(f&&(f.getContext||f.dc)&&!f.c2runtime){f.c2runtime=this;var a=this;this.zc=(this.Gg=/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.gb=!!f.dc;this.zf="undefined"!==typeof window.AppMobi||this.gb;this.xc=!!window.c2cocoonjs;this.Nc=!!window.c2ejecta;this.xc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Nc&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",
function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.na=this.gb||this.xc||this.Nc;this.Je=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent);this.Nn=/tizen/i.test(navigator.userAgent);this.xi=/android/i.test(navigator.userAgent)&&!this.Nn&&!this.Je;this.Sk=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Je;this.Qn=/ipad/i.test(navigator.userAgent);
this.Ei=this.Sk||this.Qn||this.Nc;this.Bt=this.Sk&&/os\s6/i.test(navigator.userAgent);this.Fg=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent);this.ot=/amazonwebappplatform/i.test(navigator.userAgent);this.tt=/firefox/i.test(navigator.userAgent);this.Mn=/safari/i.test(navigator.userAgent)&&!this.Fg&&!this.Je;this.xt=/windows/i.test(navigator.userAgent);this.de="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);this.zt=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.At=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Ai=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Qk=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.On=this.zt||this.At||this.Qk;this.pt=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.yi=this.xi&&!this.Fg&&!this.Gg&&!this.tt&&!this.ot&&!this.na;this.devicePixelRatio=1;this.fd=this.zc||
this.Gg||this.zf||this.xc||this.xi||this.Ei||this.Ai||this.Qk||this.pt||this.Nn||this.Nc;this.fd||(this.fd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.de||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.de=!0);this.qt="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=f;this.Sh=document.getElementById("c2canvasdiv");
this.la=this.q=this.n=null;this.qk="";this.hi=!1;this.Ho=this.Io=0;this.canvas.oncontextmenu=function(f){f.preventDefault&&f.preventDefault();return!1};this.canvas.onselectstart=function(f){f.preventDefault&&f.preventDefault();return!1};this.gb&&(window.c2runtime=this);this.de&&(window.ondragover=function(f){f.preventDefault();return!1},window.ondrop=function(f){f.preventDefault();return!1},require("nw.gui").App.clearCache());this.yi&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow",
"visible");this.width=f.width;this.height=f.height;this.O=this.width;this.N=this.height;this.Xh=this.width;this.Wh=this.height;this.Rg=window.innerWidth;this.Qg=window.innerHeight;this.ca=!0;this.Ig=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.p=[];this.Ma=[];this.Yk={};this.Rc=[];this.ik={};this.Fd=[];this.dg=[];this.Dj=[];this.er=[];this.fr=[];this.Rn=this.xp=null;this.ad=new ba;this.Nk=!1;this.Pc=0;this.Pk=!1;this.Eb=[];this.Ld=this.Ab=this.Ni=this.Tl=
"";this.xh=this.up=!1;this.$j=this.$g=this.Ed=this.$d=0;this.Zf=1;this.Vb=new Qa;this.vd=new Qa;this.Hi=0;this.wo=!0;this.Xi=this.mi=this.jk=this.Od=this.Sg=this.pk=0;this.kg=null;this.ci=[];this.hk=[];this.ei=-1;this.gl=[[]];this.lm=this.Si=0;this.Gl(null);this.sg=this.Co=this.dh=0;this.yh=[];this.Aj=this.jj=-1;this.Lg=!0;this.If=0;this.Hg=!1;this.tu=0;this.nf=null;this.dt=!1;this.Vk=0;this.yc=this.Ek=this.Jl=!1;this.Go=new ba;this.ol=new ba;this.pl=new ba;this.gp=[];this.Wc=new Sa([]);this.dm=new Sa([]);
this.lf=[];this.Ag={};this.pf={};this.kf={};this.cg={};this.Um={};this.eo=this.Li=this.Wb=this.nc=this.co=this.Ki=this.za=null;this.ag=this.Rk=!1;this.rk=[null,null];this.De=0;this.nk="";this.ie={};this.rj=this.Hf=null;this.Wi=[];this.eu()}}function p(f){f.target.result.createObjectStore("saves",{keyPath:"slot"})}function q(f,a,c,g){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=p;b.onerror=g;b.onsuccess=function(b){b=b.target.result;b.onerror=g;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:f,
data:a}).onsuccess=c}}function a(f,a,c){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=p;b.onerror=c;b.onsuccess=function(b){b=b.target.result;b.onerror=c;var g=b.transaction(["saves"]).objectStore("saves").get(f);g.onsuccess=function(){g.result?a(g.result.data):a(null)}}}function c(){G("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+="?continuous"}function g(f){var a,c=
{};for(a in f)!f.hasOwnProperty(a)||f[a]instanceof ba||f[a]&&"undefined"!==typeof f[a].Jv||(c[a]=f[a]);return c}b.prototype.eu=function(){var f=this,a;a=this.Ai?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;a.open("GET","data.js",!0);var c=!1;if(!this.na&&"response"in a&&"responseType"in a)try{a.responseType="json",c="json"===a.responseType}catch(b){c=!1}if(!c&&"responseType"in a)try{a.responseType="text"}catch(g){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(d){}a.onload=
function(){if(c)f.bl(a.response);else if(f.Nc){var b=a.responseText,b=b.substr(b.indexOf("{"));f.bl(JSON.parse(b))}else f.bl(JSON.parse(a.responseText))};a.onerror=function(f){ca("Error requesting data.js:");ca(f)};a.send()};b.prototype.kt=function(){var f=this,a,c,b,g,d,h,l,n,k;this.devicePixelRatio=(this.Ke=(!this.na||this.Nc)&&this.Du&&!this.yi)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.mb();c=this.Qj&&!(this.de||this.On||
this.Ai||this.Gg||this.zc);0<this.Tb&&this.setSize(e(),r(),!0);try{this.Rr&&(this.xc||this.Nc||!this.na)&&(a={alpha:c,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.n=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",a))}catch(m){}if(this.n){this.na||(this.hb=document.createElement("canvas"),jQuery(this.hb).appendTo(this.canvas.parentNode),this.hb.oncontextmenu=function(){return!1},this.hb.onselectstart=function(){return!1},this.hb.width=this.Xh,this.hb.height=
this.Wh,jQuery(this.hb).css({width:this.Xh+"px",height:this.Wh+"px"}),this.Zo(),this.yl=this.hb.getContext("2d"));this.q=new Za(this.n,this.fd);this.q.Uf(this.canvas.width,this.canvas.height);this.q.jn=0!==this.Pr;this.la=null;this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();f.Jt();G("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){f.q.Fn();f.q.Uf(f.q.width,f.q.height,!0);f.nc=null;f.Wb=
null;f.rk[0]=null;f.rk[1]=null;f.Kt();f.ca=!0;G("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(c=this.p.length;a<c;a++)for(d=this.p[a],b=0,g=d.I.length;b<g;b++)l=d.I[b],l.jb=this.q.Bk(l.id),this.ag=this.ag||this.q.kh(l.jb);a=0;for(c=this.Rc.length;a<c;a++){n=this.Rc[a];b=0;for(g=n.I.length;b<g;b++)l=n.I[b],l.jb=this.q.Bk(l.id);b=0;for(g=n.M.length;b<g;b++)for(k=n.M[b],d=0,h=k.I.length;d<h;d++)l=k.I[d],l.jb=this.q.Bk(l.id),this.ag=this.ag||this.q.kh(l.jb)}}else{if(0<
this.Tb&&this.gb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.la=AppMobi.canvas.getContext("2d");try{this.la.samplingMode=this.X?"smooth":"sharp",this.la.globalScale=1,this.la.HTML5CompatibilityMode=!0,this.la.imageSmoothingEnabled=this.X}catch(v){}0!==this.width&&0!==this.height&&(this.la.width=this.width,this.la.height=this.height)}this.la||(a=this.xc?{antialias:!!this.X,alpha:c}:{alpha:c},this.la=this.canvas.getContext("2d",a),this.la.webkitImageSmoothingEnabled=
this.X,this.la.mozImageSmoothingEnabled=this.X,this.la.msImageSmoothingEnabled=this.X,this.la.imageSmoothingEnabled=this.X);this.yl=this.hb=null}this.yj=function(){f.eb(!1)};window==window.top||this.na||this.On||this.Ai||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.xc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&
(G("Reloading for continuous preview"),this.Ni="__c2_continuouspreview",this.xh=!0),this.Tt&&!this.fd&&(jQuery(window).focus(function(){f.setSuspended(!1)}),jQuery(window).blur(function(){f.setSuspended(!0)})));this.na||(a=function(f){Ya(f)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur&&document.activeElement.blur()},window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?
document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.Tb&&this.Ke&&1<this.devicePixelRatio&&this.setSize(this.ab,this.$a,!0);this.Hp();this.$s();this.go();this.R={}};b.prototype.setSize=function(f,a,c){var b=0,g=0,d=0,h=0,h=0,l=this.Bt&&this.Mn&&!navigator.standalone&&!this.na&&!this.zc;l&&(a+=60);if(this.Rg!==f||this.Qg!==a||c){this.Rg=f;this.Qg=a;var n=this.Tb,k=(document.mozFullScreen||document.webkitIsFullScreen||
!!document.msFullscreenElement||document.fullScreen||this.Hg)&&!this.zc;if(k||0!==this.Tb||c)k&&0<this.De&&(n=this.De),c=this.devicePixelRatio,4<=n?(d=this.ab/this.$a,f/a>d?(d*=a,5===n?(h=d*c/this.ab,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),d=this.ab*h/c,h=this.$a*h/c,b=(f-d)/2,g=(a-h)/2,f=d,a=h):(b=(f-d)/2,f=d)):(h=f/d,5===n?(h=h*c/this.$a,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),d=this.ab*h/c,h=this.$a*h/c,b=(f-d)/2,g=(a-h)/2,f=d):g=(a-h)/2,a=h),k&&!this.de&&(g=b=0)):this.de&&this.Hg&&
0===this.qn&&(b=Math.floor((f-this.ab)/2),g=Math.floor((a-this.$a)/2),f=this.ab,a=this.$a),2>n&&(this.gg=c),this.Ke&&this.Qn&&1<c&&(1024<=f&&(f=1023),1024<=a&&(a=1023)),this.Xh=Math.round(f),this.Wh=Math.round(a),this.width=Math.round(f*c),this.height=Math.round(a*c),this.ca=!0,this.Wp?(this.O=this.width,this.N=this.height,this.vc=!0):this.width<this.ab&&this.height<this.$a||1===n?(this.O=this.width,this.N=this.height,this.vc=!0):(this.O=this.ab,this.N=this.$a,this.vc=!1,2===n?(d=this.ab/this.$a,
n=this.Rg/this.Qg,n<d?this.O=this.N*n:n>d&&(this.N=this.O/n)):3===n&&(d=this.ab/this.$a,n=this.Rg/this.Qg,n>d?this.O=this.N*n:n<d&&(this.N=this.O/n))),this.Sh&&!this.na&&(jQuery(this.Sh).css({width:Math.round(f)+"px",height:Math.round(a)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(g)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(f)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(f*c),this.canvas.height=Math.round(a*
c),this.Nc?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(g)+"px",this.canvas.style.width=Math.round(f)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Ke&&!this.na&&jQuery(this.canvas).css({width:Math.round(f)+"px",height:Math.round(a)+"px"})),this.hb&&(this.hb.width=Math.round(f),this.hb.height=Math.round(a),jQuery(this.hb).css({width:Math.round(f)+"px",height:Math.round(a)+"px"})),this.q&&this.q.Uf(Math.round(f*c),Math.round(a*c)),this.gb&&this.la&&(this.la.width=
Math.round(f),this.la.height=Math.round(a)),this.la&&(this.la.webkitImageSmoothingEnabled=this.X,this.la.mozImageSmoothingEnabled=this.X,this.la.msImageSmoothingEnabled=this.X,this.la.imageSmoothingEnabled=this.X),this.Hp(),this.na||!l&&!this.Sk||window.setTimeout(function(){window.scrollTo(0,1)},100)}};b.prototype.Hp=function(){if(this.ir&&0!==this.wl){var f="portrait";2===this.wl&&(f="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(f):screen.lockOrientation?screen.lockOrientation(f):
screen.webkitLockOrientation?screen.webkitLockOrientation(f):screen.mozLockOrientation?screen.mozLockOrientation(f):screen.msLockOrientation&&screen.msLockOrientation(f)}};b.prototype.Jt=function(){this.q.rr();this.Rk=!0;var f,a,c;f=0;for(a=this.p.length;f<a;f++)c=this.p[f],c.Zi&&c.Zi()};b.prototype.Kt=function(){this.Rk=!1;var f,a,c;f=0;for(a=this.p.length;f<a;f++)c=this.p[f],c.tl&&c.tl()};b.prototype.Zo=function(){if(!this.na){var f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||
document.msFullscreenElement||this.Hg)&&!this.zc?jQuery(this.canvas).offset():jQuery(this.canvas).position();f.position="absolute";jQuery(this.hb).css(f)}};var d=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;b.prototype.setSuspended=function(f){var a;if(f&&!this.Ig)for(G("[Construct 2] Suspending"),this.Ig=!0,-1!==this.jj&&d&&d(this.jj),-1!==this.Aj&&clearTimeout(this.Aj),f=0,a=this.yh.length;f<
a;f++)this.yh[f](!0);else if(!f&&this.Ig){G("[Construct 2] Resuming");this.Ig=!1;this.Hi=S();this.Sg=S();f=this.$g=this.mi=0;for(a=this.yh.length;f<a;f++)this.yh[f](!1);this.eb(!1)}};b.prototype.Pm=function(f){this.yh.push(f)};b.prototype.Sd=function(f){return this.Wi[f]};b.prototype.bl=function(f){f&&f.project||ca("Project model unavailable");f=f.project;this.name=f[0];this.pn=f[1];this.Tb=f[12];this.qn=f[12];this.ab=f[10];this.$a=f[11];this.Uo=this.ab/2;this.Vo=this.$a/2;this.na&&!this.Nc&&(4<=
f[12]||0===f[12])&&(G("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.qn=this.Tb=3);this.qm=f[18];this.Vg=f[19];0===this.Vg&&(this.Hf=new Image,this.Hf.src="loading-logo.png");this.dh=f[21];this.Wi=Xb();this.rd=new W(this);var a,c,b,g,d,h,l,n,k;a=0;for(c=f[2].length;a<c;a++)l=f[2][a],b=this.Sd(l[0]),$a(l,b.prototype),k=new b(this),k.qj=l[1],k.ee=l[2],k.zo=l[9],k.ba&&k.ba(),this.plugins.push(k);this.Wi=Xb();a=0;for(c=f[3].length;a<
c;a++){l=f[3][a];d=this.Sd(l[1]);k=null;b=0;for(g=this.plugins.length;b<g;b++)if(this.plugins[b]instanceof d){k=this.plugins[b];break}var m=new k.La(k);m.name=l[0];m.F=l[2];m.Mk=l[3].slice(0);m.Fu=l[3].length;m.jr=l[4];m.ys=l[5];m.S=l[11];m.F?(m.Mf=[],m.Gd=this.sg++,m.ya=null):(m.Mf=null,m.Gd=-1,m.ya=[]);m.fi=null;m.uf=null;m.ln=null;m.lc=!1;m.Qb=null;l[6]?(m.fm=l[6][0],m.gm=l[6][1],m.hm=l[6][2]):(m.fm=null,m.gm=0,m.hm=0);m.Ob=l[7]?l[7]:null;m.index=a;m.d=[];m.ai=[];m.pe=[new ab(m)];m.Dd=0;m.tc=null;
m.Br=0;m.Yf=!0;m.Ej=bb;m.Cs=cb;m.Is=db;m.ma=eb;m.mh=fb;m.Fl=gb;m.Sf=hb;m.oi=ib;m.tk=jb;m.xk=kb;m.Ud=ob;m.wn=pb;m.Uh=new Ta(this.ab,this.$a);m.Jh=!0;m.Kh=!1;m.R={};m.toString=qb;m.Ma=[];b=0;for(g=l[8].length;b<g;b++){n=l[8][b];var v=this.Sd(n[1]),p=null;d=0;for(h=this.Ma.length;d<h;d++)if(this.Ma[d]instanceof v){p=this.Ma[d];break}p||(p=new v(this),p.Vi=[],p.ml=new ba,p.ba&&p.ba(),this.Ma.push(p),Pb.su&&p instanceof Pb.su&&(this.xp=p),Pb.Dt&&p instanceof Pb.Dt&&(this.Rn=p));-1===p.Vi.indexOf(m)&&p.Vi.push(m);
d=new p.La(p,m);d.name=n[0];d.S=n[2];d.ba();m.Ma.push(d)}m.global=l[9];m.Ok=l[10];m.I=[];b=0;for(g=l[12].length;b<g;b++)m.I.push({id:l[12][b][0],name:l[12][b][1],jb:-1,gc:!0,index:b});m.Yv=l[13];this.qm&&!m.F&&!m.Ok&&k.ee||m.ba();m.name&&(this.types[m.name]=m);this.p.push(m);k.qj&&(b=new k.Ba(m),b.uid=this.dh++,b.dp=this.Co++,b.He=0,b.xg=rb,b.toString=sb,b.r=l[14],b.ba(),m.d.push(b),this.ie[b.uid.toString()]=b)}a=0;for(c=f[4].length;a<c;a++)for(d=f[4][a],h=this.p[d[0]],b=1,g=d.length;b<g;b++)l=this.p[d[b]],
l.ya.push(h),h.Mf.push(l);a=0;for(c=f[27].length;a<c;a++){d=f[27][a];h=[];b=0;for(g=d.length;b<g;b++)h.push(this.p[d[b]]);b=0;for(g=h.length;b<g;b++)h[b].lc=!0,h[b].Qb=h}if(0<this.sg)for(a=0,c=this.p.length;a<c;a++)if(l=this.p[a],!l.F&&l.ya.length){l.fi=Array(this.sg);l.uf=Array(this.sg);l.ln=Array(this.sg);m=[];b=p=v=n=0;for(g=l.ya.length;b<g;b++)for(k=l.ya[b],l.fi[k.Gd]=n,n+=k.Fu,l.uf[k.Gd]=v,v+=k.jr,l.ln[k.Gd]=p,p+=k.ys,d=0,h=k.I.length;d<h;d++)m.push(pa({},k.I[d]));l.I=m.concat(l.I);b=0;for(g=
l.I.length;b<g;b++)l.I[b].index=b}a=0;for(c=f[5].length;a<c;a++)l=f[5][a],b=new tb(this,l),this.Yk[b.name]=b,this.Rc.push(b);a=0;for(c=f[6].length;a<c;a++)l=f[6][a],b=new ub(this,l),this.ik[b.name]=b,this.Fd.push(b);a=0;for(c=this.Fd.length;a<c;a++)this.Fd[a].Ka();a=0;for(c=this.Fd.length;a<c;a++)this.Fd[a].Op();a=0;for(c=this.Dj.length;a<c;a++)this.Dj[a].Ka();this.Dj.length=0;this.gr=f[7];this.nk=f[8];this.kd=f[9];this.gg=1;this.Rr=f[13];this.X=f[14];this.Qj=f[15];this.Du=f[17];this.wl=f[20];this.ir=
0<this.wl;this.Tt=f[22];this.vc=this.Wp=f[23];this.Pr=f[24];this.Yt=f[25];this.sj=Date.now();this.Wi.length=0;this.kt()};var k=!1;b.prototype.Vp=function(f,a){f.cocoonLazyLoad=!0;f.onerror=function(a){k=f.Wm=!0;console&&console.error&&console.error("Error loading image '"+f.src+"': ",a)};this.Nc?f.src=a:f.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){f.src=a},function(c){k=f.Wm=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",c)}):
f.src=a);this.dg.push(f)};b.prototype.ws=function(f){var a,c;a=0;for(c=this.dg.length;a<c;a++)if(this.dg[a].tr===f)return this.dg[a];return null};var h=0,m=!1;b.prototype.$s=function(){this.nf&&(h=this.nf.qu(this.gr))};b.prototype.Tm=function(){var f=h,a=0,c=0,b=!0,g,d,c=0;for(g=this.dg.length;c<g;c++){d=this.dg[c];var l=d.bn;if(!l||0>=l)l=5E4;f+=l;d.src&&(d.complete||d.loaded)&&!d.Wm?a+=l:b=!1}b&&this.Yt&&this.nf&&(m||(this.nf.uu(),m=!0),c=this.nf.Js(),a+=c,c<h&&(b=!1));this.Ve=0==f?0:a/f;return b};
b.prototype.go=function(){if(this.la||this.q){var f=this.la||this.yl;this.hb&&this.Zo();this.Ve=0;this.bo=-1;if(this.Tm())this.bt();else{var a=Date.now()-this.sj;if(f){var c=this.width,b=this.height,g=this.devicePixelRatio;this.hb&&(c=this.Xh,b=this.Wh,g=1);if(3!==this.Vg&&(this.xc||500<=a&&this.bo!=this.Ve)){f.clearRect(0,0,c,b);var a=c/2,b=b/2,c=0===this.Vg&&this.Hf.complete,d=40*g,l=0,h=80*g,n;c&&(h=this.Hf.width*g,n=this.Hf.height*g,d=h/2,l=n/2,f.drawImage(this.Hf,Q(a-d),Q(b-l),h,n));1>=this.Vg?
(a=Q(a-d)+.5,b=Q(b+(l+(c?12*g:0)))+.5,f.fillStyle=k?"red":"DodgerBlue",f.fillRect(a,b,Math.floor(h*this.Ve),6*g),f.strokeStyle="black",f.strokeRect(a,b,h,6*g),f.strokeStyle="white",f.strokeRect(a-1*g,b-1*g,h+2*g,8*g)):2===this.Vg&&(f.font=this.Nc?"12pt ArialMT":"12pt Arial",f.fillStyle=k?"#f00":"#999",f.Xv="middle",g=Math.round(100*this.Ve)+"%",c=f.measureText?f.measureText(g):null,f.fillText(g,a-(c?c.width:0)/2,b))}this.bo=this.Ve}setTimeout(function(f){return function(){f.go()}}(this),this.xc?10:
100)}}};b.prototype.bt=function(){this.hb&&(this.canvas.parentNode.removeChild(this.hb),this.hb=this.yl=null);this.sj=Date.now();this.Sg=S();var f,a,c;if(this.qm)for(f=0,a=this.p.length;f<a;f++)c=this.p[f],c.F||c.Ok||!c.wa.ee||c.ba();else this.Lg=!1;f=0;for(a=this.Rc.length;f<a;f++)this.Rc[f].ur();2<=this.Tb&&(f=this.ab/this.$a,a=this.width/this.height,this.gg=2!==this.Tb&&a>f||2===this.Tb&&a<f?this.height/this.$a:this.width/this.ab);this.pn?this.Yk[this.pn].$l():this.Rc[0].$l();this.qm||(this.If=
1,this.trigger(W.prototype.j.Mj,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();f=0;for(a=this.p.length;f<a;f++)c=this.p[f],c.It&&c.It();this.eb(!1);this.gb&&AppMobi.webview.execute("onGameReady();")};var x=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;b.prototype.eb=function(f){if(this.za){var a=S();if(this.dt&&this.Jl&&29>a-this.Vk)this.Jl=
!1,this.Vk=a,x?this.jj=x(this.yj,this.canvas):this.Aj=setTimeout(this.yj,this.fd?1:16);else{this.Jl=!0;this.Vk=a;var c=this.Tb,b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.zc;(b||this.Hg)&&0<this.De&&(c=this.De);0<c&&(!this.Ei||window.self!==window.top)&&(c=window.innerHeight,this.Rg===window.innerWidth&&this.Qg===c||this.setSize(e(),r()));this.na||(b?(this.hi||(this.qk=jQuery(this.canvas).css("margin")||"0",this.hi=!0),this.Fg||
this.de||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.hi?(this.Fg||this.de||jQuery(this.canvas).css("margin",this.qk),this.qk="",this.hi=!1,0===this.Tb&&this.setSize(Math.round(this.Io/this.devicePixelRatio),Math.round(this.Ho/this.devicePixelRatio),!0)):(this.Io=this.width,this.Ho=this.height));this.Lg&&(b=this.Tm(),this.If=this.Ve,b&&(this.Lg=
!1,this.Ve=1,this.trigger(W.prototype.j.Mj,null)));this.Ft();!this.ca&&!this.xc||this.Rk||this.xh||f||(this.ca=!1,this.q?this.ic():this.Mc(),this.rj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.rj[0],this.rj[1]),this.trigger(W.prototype.j.qq,null)),this.rj=null));this.Rv||(this.Od++,this.jk++,this.mi++);this.$g+=S()-a;this.Ig||f||(x?this.jj=x(this.yj,this.canvas):this.Aj=setTimeout(this.yj,this.fd?1:16))}}};b.prototype.Ft=function(){var f,a,c,b,g,d,l,h,n;f=S();1E3<=f-this.Sg&&
(this.Sg+=1E3,this.pk=this.mi,this.mi=0,this.$j=this.$g,this.$g=0);this.wo&&(0!==this.Hi&&(a=f-this.Hi,0!==a||this.qt?(this.Ed=a/1E3,.5<this.Ed?this.Ed=0:.1<this.Ed&&(this.Ed=.1)):(10<=this.$v&&(this.wo=!1),this.Ed=1/60)),this.Hi=f);this.$d=this.Ed*this.Zf;this.Vb.add(this.$d);this.vd.add(this.Ed);f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Hg)&&!this.zc;2<=this.Tb||f&&0<this.De?(a=this.ab/this.$a,c=this.width/this.height,b=this.Tb,
f&&0<this.De&&(b=this.De),this.gg=2!==b&&c>a||2===b&&c<a?this.height/this.$a:this.width/this.ab,this.za&&(this.za.jp(this.za.scrollX),this.za.kp(this.za.scrollY))):this.gg=this.Ke?this.devicePixelRatio:1;this.mb();this.Pc++;this.rd.hu();this.Pc--;this.mb();this.Pc++;c=this.Go.df();f=0;for(a=c.length;f<a;f++)c[f].Tv();f=0;for(a=this.p.length;f<a;f++)if(l=this.p[f],!l.F&&(l.Ma.length||l.ya.length))for(c=0,b=l.d.length;c<b;c++)for(h=l.d[c],g=0,d=h.L.length;g<d;g++)h.L[g].eb();f=0;for(a=this.p.length;f<
a;f++)if(l=this.p[f],!l.F&&(l.Ma.length||l.ya.length))for(c=0,b=l.d.length;c<b;c++)for(h=l.d[c],g=0,d=h.L.length;g<d;g++)n=h.L[g],n.$o&&n.$o();c=this.ol.df();f=0;for(a=c.length;f<a;f++)c[f].eb();this.Pc--;this.et();for(f=0;this.kg&&10>f++;)this.hn(this.kg);f=0;for(a=this.Fd.length;f<a;f++)this.Fd[f].Gk=!1;this.za.qg&&this.za.qg.Va();this.gp.length=0;this.Pc++;f=0;for(a=this.p.length;f<a;f++)if(l=this.p[f],!l.F&&(l.Ma.length||l.ya.length))for(c=0,b=l.d.length;c<b;c++)for(h=l.d[c],g=0,d=h.L.length;g<
d;g++)n=h.L[g],n.im&&n.im();c=this.pl.df();f=0;for(a=c.length;f<a;f++)c[f].im();this.Pc--};b.prototype.hn=function(f){var a=this.za;this.za.vu();var c,b,g,d,l,h,n;if(this.q)for(c=0,b=this.p.length;c<b;c++)l=this.p[c],l.F||!l.nm||l.global&&0!==l.d.length||-1!==f.Dg.indexOf(l)||l.nm();a==f&&(this.rd.Mb.length=0);f.$l();c=0;for(b=this.p.length;c<b;c++)if(l=this.p[c],l.global||l.wa.qj)for(f=0,a=l.d.length;f<a;f++)if(h=l.d[f],h.sl&&h.sl(),h.L)for(g=0,d=h.L.length;g<d;g++)n=h.L[g],n.sl&&n.sl();this.ca=
!0;this.mb()};b.prototype.zj=function(f){this.ol.add(f)};b.prototype.wu=function(f){this.pl.add(f)};b.prototype.pi=function(f){return f&&-1!==f.bh?this.Ed*f.bh:this.$d};b.prototype.Mc=function(){this.za.Mc(this.la);this.gb&&this.la.present()};b.prototype.ic=function(){this.za.ic(this.q);this.q.Zt()};b.prototype.Nm=function(f){f&&this.ci.push(f)};b.prototype.du=function(f){ua(this.ci,f)};b.prototype.wf=function(f){f=f.toString();return this.ie.hasOwnProperty(f)?this.ie[f]:null};b.prototype.ue=function(f){var a,
c;if(!this.ad.contains(f)){this.ad.add(f);if(f.lc)for(a=0,c=f.siblings.length;a<c;a++)this.ue(f.siblings[a]);this.Nk&&this.ad.bg.push(f);this.Pc++;this.trigger(Object.getPrototypeOf(f.type.wa).j.sq,f);this.Pc--}};b.prototype.mb=function(){var f,a,c,b,g,d,l,h,n,k;this.Nk=!0;b=0;for(d=this.Eb.length;b<d;b++)for(f=this.Eb[b],a=f.type,a.d.push(f),g=0,l=a.ya.length;g<l;g++)a.ya[g].d.push(f),a.ya[g].Yf=!0;this.Eb.length=0;d=this.ad.df();for(b=0;b<d.length;b++){f=d[b];a=f.type;c=a.d;g=0;for(l=this.ci.length;g<
l;g++)this.ci[g](f);ua(c,f);0===c.length&&(a.Kh=!1);f.Th&&a.Uh.update(f,f.Th,null);f.i&&(qa(f.i.d,f.kc()),f.i.fc=!0);g=0;for(l=a.ya.length;g<l;g++)ua(a.ya[g].d,f),a.ya[g].Yf=!0;if(f.L)for(g=0,l=f.L.length;g<l;g++)c=f.L[g],c.Ue&&c.Ue(),c.behavior.ml.remove(f);this.Go.remove(f);this.ol.remove(f);this.pl.remove(f);g=0;for(l=this.rd.Mb.length;g<l;g++)if(n=this.rd.Mb[g],n.Bb.hasOwnProperty(a.index)&&ua(n.Bb[a.index].Kd,f),!a.F)for(c=0,h=a.ya.length;c<h;c++)k=a.ya[c],n.Bb.hasOwnProperty(k.index)&&ua(n.Bb[k.index].Kd,
f);f.Ue&&f.Ue();this.ie.hasOwnProperty(f.uid.toString())&&delete this.ie[f.uid.toString()];this.Xi--;64>a.ai.length&&a.ai.push(f);a.Yf=!0}this.ad.Oc()||(this.ca=!0);this.ad.clear();this.Nk=!1};b.prototype.cn=function(f,a,c,b){if(f.F){var g=Q(Math.random()*f.Mf.length);return this.cn(f.Mf[g],a,c,b)}return f.tc?this.Zd(f.tc,a,!1,c,b,!1):null};var n=[];b.prototype.Zd=function(f,a,c,b,g,d){var l,h,k,m;if(!f)return null;var p=this.p[f[1]],v=p.wa.ee;if(this.Lg&&v&&!p.Ok||v&&!this.q&&11===f[0][11])return null;
var q=a;v||(a=null);var e;p.ai.length?(e=p.ai.pop(),e.pc=!0,p.wa.Ba.call(e,p)):(e=new p.wa.Ba(p),e.pc=!1);e.uid=c&&!d?f[2]:this.dh++;this.ie[e.uid.toString()]=e;e.dp=this.Co++;e.He=p.d.length;l=0;for(h=this.Eb.length;l<h;++l)this.Eb[l].type===p&&e.He++;e.xg=rb;k=f[3];if(e.pc)Pa(e.R);else{e.R={};if("undefined"!==typeof cr_is_preview)for(e.In=[],e.In.length=k.length,l=0,h=k.length;l<h;l++)e.In[l]=k[l][1];e.Sa=[];e.Sa.length=k.length}l=0;for(h=k.length;l<h;l++)e.Sa[l]=k[l][0];if(v){var r=f[0];e.x=da(b)?
r[0]:b;e.y=da(g)?r[1]:g;e.z=r[2];e.width=r[3];e.height=r[4];e.depth=r[5];e.m=r[6];e.opacity=r[7];e.Gb=r[8];e.Hb=r[9];e.Cb=r[10];l=r[11];!this.q&&p.I.length&&(e.Cb=l);e.lg=Ua(e.Cb);this.n&&Va(e,e.Cb,this.n);if(e.pc){l=0;for(h=r[12].length;l<h;l++)for(k=0,m=r[12][l].length;k<m;k++)e.Ea[l][k]=r[12][l][k];e.Ha.set(0,0,0,0);e.Th.set(0,0,-1,-1);e.xb.sh(e.Ha);e.Uj.length=0}else{e.Ea=r[12].slice(0);l=0;for(h=e.Ea.length;l<h;l++)e.Ea[l]=r[12][l].slice(0);e.V=[];e.Td=[];e.Td.length=p.I.length;e.Ha=new na(0,
0,0,0);e.Th=new na(0,0,-1,-1);e.xb=new oa;e.Uj=[];e.C=vb;e.Iv=wb;e.Rb=xb;e.Ca=yb;e.Tp=zb;e.kc=Ab}e.Ah=!1;e.zu=0;e.yu=0;e.xu=null;14===r.length&&(e.Ah=!0,e.zu=r[13][0],e.yu=r[13][1],e.xu=r[13][2]);l=0;for(h=p.I.length;l<h;l++)e.Td[l]=!0;e.Rd=Bb;e.Rd();e.Up=!!e.V.length;e.Tj=!0;e.Wj=!0;p.Jh=!0;e.visible=!0;e.bh=-1;e.i=a;e.ef=a.d.length;"undefined"===typeof e.aa&&(e.aa=null);this.ca=e.yd=!0}e.toString=sb;var C;l=n.length=0;for(h=p.ya.length;l<h;l++)n.push.apply(n,p.ya[l].Ma);n.push.apply(n,p.Ma);if(e.pc)for(l=
0,h=n.length;l<h;l++){var B=n[l];C=e.L[l];C.pc=!0;B.behavior.Ba.call(C,B,e);r=f[4][l];k=0;for(m=r.length;k<m;k++)C.r[k]=r[k];C.ba();B.behavior.ml.add(e)}else for(e.L=[],l=0,h=n.length;l<h;l++)B=n[l],C=new B.behavior.Ba(B,e),C.pc=!1,C.r=f[4][l].slice(0),C.ba(),e.L.push(C),B.behavior.ml.add(e);r=f[5];if(e.pc)for(l=0,h=r.length;l<h;l++)e.r[l]=r[l];else e.r=r.slice(0);this.Eb.push(e);a&&(a.d.push(e),1!==a.Dc||1!==a.Ec)&&(p.Kh=!0);this.Xi++;if(p.lc){if(e.lc=!0,e.pc?e.siblings.length=0:e.siblings=[],!c&&
!d){l=0;for(h=p.Qb.length;l<h;l++)if(p.Qb[l]!==p){if(!p.Qb[l].tc)return null;e.siblings.push(this.Zd(p.Qb[l].tc,q,!1,v?e.x:b,v?e.y:g,!0))}l=0;for(h=e.siblings.length;l<h;l++)for(e.siblings[l].siblings.push(e),k=0;k<h;k++)l!==k&&e.siblings[l].siblings.push(e.siblings[k])}}else e.lc=!1,e.siblings=null;e.ba();l=0;for(h=e.L.length;l<h;l++)e.L[l].Xt&&e.L[l].Xt();return e};b.prototype.zk=function(f){var a,c;a=0;for(c=this.za.M.length;a<c;a++){var b=this.za.M[a];if(Xa(b.name,f))return b}return null};b.prototype.vg=
function(f){f=Q(f);0>f&&(f=0);f>=this.za.M.length&&(f=this.za.M.length-1);return this.za.M[f]};b.prototype.Zj=function(f){var a,c;a=0;for(c=f.length;a<c;a++)f[a].ma().ra=!0};b.prototype.mh=function(f){var a,c;a=0;for(c=f.length;a<c;a++)f[a].mh()};b.prototype.Fl=function(f){var a,c;a=0;for(c=f.length;a<c;a++)f[a].Fl()};b.prototype.Sf=function(f){var a,c;a=0;for(c=f.length;a<c;a++)f[a].Sf()};b.prototype.Mp=function(f){if(f.Jh){var a,c,b=f.d;a=0;for(c=b.length;a<c;++a)b[a].Tp();b=this.Eb;a=0;for(c=b.length;a<
c;++a)b[a].type===f&&b[a].Tp();f.Jh=!1}};b.prototype.tn=function(f,a,c,b){var g,l,d=f?1!==f.Dc||1!==f.Ec:!1;if(a.F)for(f=0,g=a.Mf.length;f<g;++f)l=a.Mf[f],d||l.Kh?sa(b,l.d):(this.Mp(l),l.Uh.ep(c,b));else d||a.Kh?sa(b,a.d):(this.Mp(a),a.Uh.ep(c,b))};b.prototype.An=function(f,a,c,b){var g,l;g=0;for(l=a.length;g<l;++g)this.tn(f,a[g],c,b)};b.prototype.Ns=function(f,a,c){var b=this.xp;b&&this.An(f,b.Vi,a,c)};b.prototype.Gs=function(a,c,b){var g=this.Rn;g&&this.An(a,g.Vi,c,b)};b.prototype.wj=function(a,
c,b){var g=a.ma(),l,d,h,n,k,m;if(g.ra)for(g.ra=!1,l=g.d.length=0,n=a.d.length;l<n;l++)h=a.d[l],h.Ca(),k=h.i.Pb(c,b,!0),m=h.i.Pb(c,b,!1),h.Rb(k,m)&&g.d.push(h);else{l=d=0;for(n=g.d.length;l<n;l++)h=g.d[l],h.Ca(),k=h.i.Pb(c,b,!0),m=h.i.Pb(c,b,!1),h.Rb(k,m)&&(g.d[d]=g.d[l],d++);g.d.length=d}a.Ud();return g.Fk()};b.prototype.Hc=function(a,c){if(!(a&&c&&a!==c&&a.yd&&c.yd))return!1;a.Ca();c.Ca();var b=a.i,g=c.i,l,d,h,n,k,m,e,p;if(b===g||b.Dc===g.Dc&&g.Ec===g.Ec&&b.scale===g.scale&&b.m===g.m&&b.Yc===g.Yc){if(!a.Ha.mt(c.Ha)||
!a.xb.Jn(c.xb)||a.Ah&&c.Ah)return!1;if(a.Ah)return this.Ap(a,c);if(c.Ah)return this.Ap(c,a);e=a.aa&&!a.aa.Cf();l=c.aa&&!c.aa.Cf();if(!e&&!l)return!0;e?(a.aa.of(a.width,a.height,a.m),e=a.aa):(this.Wc.Vf(a.xb,a.x,a.y,a.width,a.height),e=this.Wc);l?(c.aa.of(c.width,c.height,c.m),p=c.aa):(this.Wc.Vf(c.xb,c.x,c.y,c.width,c.height),p=this.Wc);return e.Eg(p,c.x-a.x,c.y-a.y)}e=a.aa&&!a.aa.Cf();l=c.aa&&!c.aa.Cf();e?(a.aa.of(a.width,a.height,a.m),this.Wc.pp(a.aa)):this.Wc.Vf(a.xb,a.x,a.y,a.width,a.height);
e=this.Wc;l?(c.aa.of(c.width,c.height,c.m),this.dm.pp(c.aa)):this.dm.Vf(c.xb,c.x,c.y,c.width,c.height);p=this.dm;l=0;for(d=e.Tc;l<d;l++)h=2*l,n=h+1,k=e.Ta[h],m=e.Ta[n],e.Ta[h]=b.pa(k+a.x,m+a.y,!0),e.Ta[n]=b.pa(k+a.x,m+a.y,!1);e.Ca();l=0;for(d=p.Tc;l<d;l++)h=2*l,n=h+1,k=p.Ta[h],m=p.Ta[n],p.Ta[h]=g.pa(k+c.x,m+c.y,!0),p.Ta[n]=g.pa(k+c.x,m+c.y,!1);p.Ca();return e.Eg(p,0,0)};var B=new oa;new na(0,0,0,0);var w=[];b.prototype.Ap=function(a,c){var b,g,l,d,h=c.Ha,n=a.x,k=a.y;a.Mv(h,w);var m=c.aa&&!c.aa.Cf();
b=0;for(g=w.length;b<g;++b)if(l=w[b],d=l.Uv,h.nt(d,n,k)&&(B.sh(d),B.offset(n,k),B.Jn(c.xb)))if(m)if(c.aa.of(c.width,c.height,c.m),l.Cl){if(l.Cl.Eg(c.aa,c.x-(n+d.left),c.y-(k+d.top)))return w.length=0,!0}else{if(this.Wc.Vf(B,0,0,d.right-d.left,d.bottom-d.top),this.Wc.Eg(c.aa,c.x,c.y))return w.length=0,!0}else if(l.Cl){if(this.Wc.Vf(c.xb,0,0,c.width,c.height),l.Cl.Eg(this.Wc,-(n+d.left),-(k+d.top)))return w.length=0,!0}else return w.length=0,!0;w.length=0;return!1};b.prototype.Ip=function(a,c){if(!c)return!1;
var b,g,l,d,h;b=0;for(g=a.Ma.length;b<g;b++)if(a.Ma[b].behavior instanceof c)return!0;if(!a.F)for(b=0,g=a.ya.length;b<g;b++)for(h=a.ya[b],l=0,d=h.Ma.length;l<d;l++)if(h.Ma[l].behavior instanceof c)return!0;return!1};b.prototype.Jp=function(a){return this.Ip(a,Pb.iv)};b.prototype.mm=function(a){return this.Ip(a,Pb.jv)};var l=[];b.prototype.ac=function(a){var c,b,g;a.Ca();this.Ns(a.i,a.Ha,l);c=0;for(b=l.length;c<b;++c)if(g=l[c],g.R.solidEnabled&&this.Hc(a,g))return l.length=0,g;l.length=0;return null};
var v=[];b.prototype.re=function(a,c){var b=null;c&&(b=v,b.length=0);a.Ca();this.Gs(a.i,a.Ha,l);var g,d,h;g=0;for(d=l.length;g<d;++g)if(h=l[g],h.R.jumpthruEnabled&&this.Hc(a,h))if(c)b.push(h);else return l.length=0,h;l.length=0;return b};b.prototype.Vc=function(a,c,b,g,l,d){g=g||50;var h=a.x,n=a.y,k,m=null,e=null;for(k=0;k<g;k++)if(a.x=h+c*k,a.y=n+b*k,a.C(),!this.Hc(a,m)&&((m=this.ac(a))&&(e=m),!m&&(l&&(m=d?this.Hc(a,d)?d:null:this.re(a))&&(e=m),!m)))return e&&this.Hl(a,c,b,e),!0;a.x=h;a.y=n;a.C();
return!1};b.prototype.Hl=function(a,c,b,g){var l=2,d,h=!1;d=!1;for(var n=a.x,k=a.y;16>=l;)d=1/l,l*=2,a.x+=c*d*(h?1:-1),a.y+=b*d*(h?1:-1),a.C(),this.Hc(a,g)?d=h=!0:(d=h=!1,n=a.x,k=a.y);d&&(a.x=n,a.y=k,a.C())};b.prototype.bu=function(a,c){var b=da(c)?100:c,g=0,l=a.x,d=a.y,h=0,n=0,k=0,m=this.ac(a);if(!m)return!0;for(;g<=b;){switch(h){case 0:n=0;k=-1;g++;break;case 1:n=1;k=-1;break;case 2:n=1;k=0;break;case 3:k=n=1;break;case 4:n=0;k=1;break;case 5:n=-1;k=1;break;case 6:n=-1;k=0;break;case 7:k=n=-1}h=
(h+1)%8;a.x=Q(l+n*g);a.y=Q(d+k*g);a.C();if(!this.Hc(a,m)&&(m=this.ac(a),!m))return!0}a.x=l;a.y=d;a.C();return!1};b.prototype.nh=function(a,c){a.yd&&c.yd&&this.gp.push([a,c])};var C=-1;b.prototype.trigger=function(a,c,b){if(!this.za)return!1;var g=this.za.qg;if(!g)return!1;var l=!1,d,h,n;C++;var k=g.dk;h=0;for(n=k.length;h<n;++h)d=this.Fp(a,c,k[h],b),l=l||d;d=this.Fp(a,c,g,b);C--;return l||d};b.prototype.Fp=function(a,c,b,g){var l=!1,d,h,n,k;if(c)for(n=this.km(a,c,c.type.name,b,g),l=l||n,k=c.type.ya,
d=0,h=k.length;d<h;++d)n=this.km(a,c,k[d].name,b,g),l=l||n;else n=this.km(a,c,"system",b,g),l=l||n;return l};b.prototype.km=function(a,c,b,g,l){var d,h=!1,n=!1,n="undefined"!==typeof l,k=(n?g.nn:g.Gp)[b];if(!k)return h;var m=null;g=0;for(d=k.length;g<d;++g)if(k[g].method==a){m=k[g].rg;break}if(!m)return h;a=n?m[l]:m;if(!a)return null;g=0;for(d=a.length;g<d;g++)l=a[g][0],n=a[g][1],n=this.us(c,b,l,n),h=h||n;return h};b.prototype.us=function(a,c,b,g){var l,d,h=!1;this.lm++;var n=this.yb().Sb;n&&this.mh(n.ne);
var k=1<this.lm;this.mh(b.ne);k&&this.au();var m=this.Gl(b);m.Sb=b;a&&(l=this.types[c].ma(),l.ra=!1,l.d.length=1,l.d[0]=a,this.types[c].Ud());a=!0;if(b.parent){c=m.zp;for(l=b.parent;l;)c.push(l),l=l.parent;c.reverse();l=0;for(d=c.length;l<d;l++)if(!c[l].ju()){a=!1;break}}a&&(this.jk++,b.Sc?b.iu(g):b.Va(),h=h||m.Pe);this.Yo();k&&this.Wt();this.Sf(b.ne);n&&this.Sf(n.ne);0!==this.Pc||0!==C||this.Pk||this.ad.Oc()&&!this.Eb.length||this.mb();this.lm--;return h};b.prototype.vk=function(){var a=this.yb();
return a.Sb.rb[a.Db]};b.prototype.au=function(){this.Si++;this.Si>=this.gl.length&&this.gl.push([])};b.prototype.Wt=function(){this.Si--};b.prototype.un=function(){return this.gl[this.Si]};b.prototype.Gl=function(a){this.ei++;this.ei>=this.hk.length&&this.hk.push(new Cb);var c=this.yb();c.reset(a);return c};b.prototype.Yo=function(){this.ei--};b.prototype.yb=function(){return this.hk[this.ei]};b.prototype.vn=function(a,c){for(var b,g,l,d,h,n;c;){b=0;for(g=c.Gc.length;b<g;b++)if(n=c.Gc[b],n instanceof
Db&&Xa(a,n.name))return n;c=c.parent}b=0;for(g=this.Fd.length;b<g;b++)for(h=this.Fd[b],l=0,d=h.be.length;l<d;l++)if(n=h.be[l],n instanceof Db&&Xa(a,n.name))return n;return null};b.prototype.xn=function(a){var c,b;c=0;for(b=this.Rc.length;c<b;c++)if(this.Rc[c].S===a)return this.Rc[c];return null};b.prototype.ri=function(a){var c,b;c=0;for(b=this.p.length;c<b;c++)if(this.p[c].S===a)return this.p[c];return null};b.prototype.Ds=function(a){var c,b;c=0;for(b=this.lf.length;c<b;c++)if(this.lf[c].S===a)return this.lf[c];
return null};b.prototype.et=function(){var f=this,b=this.Tl,g=this.Ld,l=this.Ni,d=!1;this.up&&(d=!0,b="__c2_continuouspreview",this.up=!1);if(b.length){this.mb();g=this.nu();if(window.indexedDB&&!this.xc)q(b,g,function(){G("Saved state to IndexedDB storage ("+g.length+" bytes)");f.Ld=g;f.trigger(W.prototype.j.Nj,null);f.Ld="";d&&c()},function(a){try{localStorage.setItem("__c2save_"+b,g),G("Saved state to WebStorage ("+g.length+" bytes)"),f.Ld=g,f.trigger(W.prototype.j.Nj,null),f.Ld="",d&&c()}catch(l){G("Failed to save game state: "+
a+"; "+l)}});else try{localStorage.setItem("__c2save_"+b,g),G("Saved state to WebStorage ("+g.length+" bytes)"),f.Ld=g,this.trigger(W.prototype.j.Nj,null),f.Ld="",d&&c()}catch(h){G("Error saving to WebStorage: "+h)}this.Ab=this.Ni=this.Tl=""}l.length&&(window.indexedDB&&!this.xc?a(l,function(a){a?(f.Ab=a,G("Loaded state from IndexedDB storage ("+f.Ab.length+" bytes)")):(f.Ab=localStorage.getItem("__c2save_"+l)||"",G("Loaded state from WebStorage ("+f.Ab.length+" bytes)"));f.xh=!1;f.Ab.length||f.trigger(W.prototype.j.Lj,
null)},function(){f.Ab=localStorage.getItem("__c2save_"+l)||"";G("Loaded state from WebStorage ("+f.Ab.length+" bytes)");f.xh=!1;f.Ab.length||f.trigger(W.prototype.j.Lj,null)}):(this.Ab=localStorage.getItem("__c2save_"+l)||"",G("Loaded state from WebStorage ("+this.Ab.length+" bytes)"),this.xh=!1,f.Ab.length||f.trigger(W.prototype.j.Lj,null)),this.Tl=this.Ni="");this.Ab.length&&(this.mb(),this.Et(this.Ab),this.Ld=this.Ab,this.trigger(W.prototype.j.Cq,null),this.Ab=this.Ld="")};b.prototype.nu=function(){var a,
c,b,l,d,h,n,k={c2save:!0,version:1,rt:{time:this.Vb.da,walltime:this.vd.da,timescale:this.Zf,tickcount:this.Od,execcount:this.jk,next_uid:this.dh,running_layout:this.za.S,start_time_offset:Date.now()-this.sj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(c=this.p.length;a<c;a++)if(d=this.p[a],!d.F&&!this.Jp(d)){h={instances:[]};Oa(d.R)&&(h.ex=g(d.R));b=0;for(l=d.d.length;b<l;b++)h.instances.push(this.Sl(d.d[b]));k.types[d.S.toString()]=h}a=0;for(c=this.Rc.length;a<c;a++)b=
this.Rc[a],k.layouts[b.S.toString()]=b.Kb();l=k.events.groups;a=0;for(c=this.lf.length;a<c;a++)b=this.lf[a],l[b.S.toString()]=this.Ag[b.zg].yg;c=k.events.cnds;for(n in this.pf)this.pf.hasOwnProperty(n)&&(a=this.pf[n],Oa(a.R)&&(c[n]={ex:g(a.R)}));c=k.events.acts;for(n in this.kf)this.kf.hasOwnProperty(n)&&(a=this.kf[n],Oa(a.R)&&(c[n]={ex:a.R}));c=k.events.vars;for(n in this.cg)this.cg.hasOwnProperty(n)&&(a=this.cg[n],a.Bi||a.parent&&!a.Kg||(c[n]=a.data));k.system=this.rd.Kb();return JSON.stringify(k)};
b.prototype.fp=function(){var a,c,b,g,l,d;this.ie={};a=0;for(c=this.p.length;a<c;a++)if(b=this.p[a],!b.F)for(g=0,l=b.d.length;g<l;g++)d=b.d[g],this.ie[d.uid.toString()]=d};b.prototype.Et=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var c=a.rt;this.Vb.reset();this.Vb.da=c.time;this.vd.reset();this.vd.da=c.walltime||0;this.Zf=c.timescale;this.Od=c.tickcount;this.sj=Date.now()-c.start_time_offset;var b=c.running_layout;if(b!==this.za.S)if(b=this.xn(b))this.hn(b);else return;var g,l,d,h,n,
k,m;k=a.types;for(l in k)if(k.hasOwnProperty(l)&&(h=this.ri(parseInt(l,10)))&&!h.F&&!this.Jp(h)){k[l].ex?h.R=k[l].ex:Pa(h.R);n=h.d;d=k[l].instances;b=0;for(g=ja(n.length,d.length);b<g;b++)this.Oi(n[b],d[b]);b=d.length;for(g=n.length;b<g;b++)this.ue(n[b]);b=n.length;for(g=d.length;b<g;b++){n=null;if(h.wa.ee&&(n=this.za.qi(d[b].w.l),!n))continue;n=this.Zd(h.tc,n,!1,0,0,!0);this.Oi(n,d[b])}h.Yf=!0}this.mb();this.fp();g=a.layouts;for(l in g)g.hasOwnProperty(l)&&(b=this.xn(parseInt(l,10)))&&b.oc(g[l]);
g=a.events.groups;for(l in g)g.hasOwnProperty(l)&&(b=this.Ds(parseInt(l,10)))&&this.Ag[b.zg]&&(this.Ag[b.zg].yg=g[l]);b=a.events.cnds;for(l in b)b.hasOwnProperty(l)&&this.pf.hasOwnProperty(l)&&(this.pf[l].R=b[l].ex);b=a.events.acts;for(l in b)b.hasOwnProperty(l)&&this.kf.hasOwnProperty(l)&&(this.kf[l].R=b[l].ex);b=a.events.vars;for(l in b)b.hasOwnProperty(l)&&this.cg.hasOwnProperty(l)&&(this.cg[l].data=b[l]);this.dh=c.next_uid;this.rd.oc(a.system);b=0;for(g=this.p.length;b<g;b++)if(h=this.p[b],!h.F)for(l=
0,a=h.d.length;l<a;l++){n=h.d[l];if(h.lc)for(k=n.xg(),c=n.siblings.length=0,d=h.Qb.length;c<d;c++)m=h.Qb[c],h!==m&&n.siblings.push(m.d[k]);n.Zc&&n.Zc();if(n.L)for(c=0,d=n.L.length;c<d;c++)k=n.L[c],k.Zc&&k.Zc()}this.ca=!0}};b.prototype.Sl=function(a,c){var b,l,d,h,n;h=a.type;d=h.wa;var k={};c?k.c2=!0:k.uid=a.uid;Oa(a.R)&&(k.ex=g(a.R));if(a.Sa&&a.Sa.length)for(k.ivs={},b=0,l=a.Sa.length;b<l;b++)k.ivs[a.type.Mk[b].toString()]=a.Sa[b];if(d.ee){d={x:a.x,y:a.y,w:a.width,h:a.height,l:a.i.S,zi:a.kc()};0!==
a.m&&(d.a=a.m);1!==a.opacity&&(d.o=a.opacity);.5!==a.Gb&&(d.hX=a.Gb);.5!==a.Hb&&(d.hY=a.Hb);0!==a.Cb&&(d.bm=a.Cb);a.visible||(d.v=a.visible);a.yd||(d.ce=a.yd);-1!==a.bh&&(d.mts=a.bh);if(h.I.length)for(d.fx=[],b=0,l=h.I.length;b<l;b++)n=h.I[b],d.fx.push({name:n.name,active:a.Td[n.index],params:a.Ea[n.index]});k.w=d}if(a.L&&a.L.length)for(k.behs={},b=0,l=a.L.length;b<l;b++)h=a.L[b],h.Kb&&(k.behs[h.type.S.toString()]=h.Kb());a.Kb&&(k.data=a.Kb());return k};b.prototype.Fs=function(a,c){var b,g;b=0;for(g=
a.Mk.length;b<g;b++)if(a.Mk[b]===c)return b;return-1};b.prototype.Bs=function(a,c){var b,g;b=0;for(g=a.L.length;b<g;b++)if(a.L[b].type.S===c)return b;return-1};b.prototype.Oi=function(a,c,b){var g,l,d,h,n;n=a.type;d=n.wa;if(b){if(!c.c2)return}else a.uid=c.uid;c.ex?a.R=c.ex:Pa(a.R);if(l=c.ivs)for(g in l)l.hasOwnProperty(g)&&(b=this.Fs(n,parseInt(g,10)),0>b||b>=a.Sa.length||(a.Sa[b]=l[g]));if(d.ee){d=c.w;a.i.S!==d.l&&(b=a.i,a.i=this.za.qi(d.l),a.i?(a.i.d.push(a),a.i.fc=!0,ua(b.d,a),b.fc=!0):(a.i=b,
this.ue(a)));a.x=d.x;a.y=d.y;a.width=d.w;a.height=d.h;a.ef=d.zi;a.m=d.hasOwnProperty("a")?d.a:0;a.opacity=d.hasOwnProperty("o")?d.o:1;a.Gb=d.hasOwnProperty("hX")?d.hX:.5;a.Hb=d.hasOwnProperty("hY")?d.hY:.5;a.visible=d.hasOwnProperty("v")?d.v:!0;a.yd=d.hasOwnProperty("ce")?d.ce:!0;a.bh=d.hasOwnProperty("mts")?d.mts:-1;a.Cb=d.hasOwnProperty("bm")?d.bm:0;a.lg=Ua(a.Cb);this.n&&Va(a,a.Cb,this.n);a.C();if(d.hasOwnProperty("fx"))for(b=0,l=d.fx.length;b<l;b++)h=n.xk(d.fx[b].name),0>h||(a.Td[h]=d.fx[b].active,
a.Ea[h]=d.fx[b].params);a.Rd()}if(n=c.behs)for(g in n)n.hasOwnProperty(g)&&(d=this.Bs(a,parseInt(g,10)),0>d||a.L[d].oc(n[g]));c.data&&a.oc(c.data)};Eb=function(a){return new b(document.getElementById(a))};Fb=function(a,c){return new b({dc:!0,width:a,height:c})};window.cr_createRuntime=Eb;window.cr_createDCRuntime=Fb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Wv=!0;document.body.appendChild(a);a=new b(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 b(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(e,r){if(0!==e&&0!==r){var b=window.cr_getC2Runtime();b&&b.setSize(e,r)}};window.cr_setSuspended=function(e){var r=window.cr_getC2Runtime();r&&r.setSuspended(e)};
(function(){function e(a,c){this.b=a;this.qg=null;this.scrollX=this.b.ab/2;this.scrollY=this.b.$a/2;this.scale=1;this.m=0;this.ug=!0;this.name=c[0];this.width=c[1];this.height=c[2];this.Kp=c[3];this.sp=c[4];this.S=c[5];var b=c[6],d,k;this.M=[];this.Dg=[];d=0;for(k=b.length;d<k;d++){var h=new Gb(this,b[d]);h.Eo=d;this.M.push(h)}b=c[7];this.Ie=[];d=0;for(k=b.length;d<k;d++){var h=b[d],m=this.b.p[h[1]];m.tc||(m.tc=h);this.Ie.push(h);-1===this.Dg.indexOf(m)&&this.Dg.push(m)}this.I=[];this.V=[];this.Ea=
[];d=0;for(k=c[8].length;d<k;d++)this.I.push({id:c[8][d][0],name:c[8][d][1],jb:-1,gc:!0,index:d}),this.Ea.push(c[8][d][2].slice(0));this.Rd();this.ke=new na(0,0,1,1);this.Kl=new na(0,0,1,1);this.je={}}function r(a,c){return a.ef-c.ef}function b(a,c){this.ua=a;this.b=a.b;this.d=[];this.scale=1;this.m=0;this.Ae=!1;this.Pd=new na(0,0,0,0);this.Ep=new oa;this.cc=this.lb=this.ec=this.kb=0;this.fc=!1;this.name=c[0];this.index=c[1];this.S=c[2];this.visible=c[3];this.Wd=c[4];this.Qd=c[5];this.Dc=c[6];this.Ec=
c[7];this.opacity=c[8];this.ok=c[9];this.Yc=c[10];this.Cb=c[11];this.Qr=c[12];this.lg="source-over";this.sb=this.tb=0;this.le=!1;var b=c[13],d,k;this.yf=[];d=0;for(k=b.length;d<k;d++){var h=b[d],m=this.b.p[h[1]];m.tc||(m.tc=h,m.Br=this.index);this.yf.push(h);-1===this.ua.Dg.indexOf(m)&&this.ua.Dg.push(m)}this.I=[];this.V=[];this.Ea=[];d=0;for(k=c[14].length;d<k;d++)this.I.push({id:c[14][d][0],name:c[14][d][1],jb:-1,gc:!0,index:d}),this.Ea.push(c[14][d][2].slice(0));this.Rd();this.ke=new na(0,0,1,
1);this.Kl=new na(0,0,1,1)}e.prototype.mu=function(a){var c=a.type.S.toString();this.je.hasOwnProperty(c)||(this.je[c]=[]);this.je[c].push(this.b.Sl(a))};e.prototype.Bn=function(){var a=this.M[0];return!a.Qd&&1===a.opacity&&!a.ok&&a.visible};e.prototype.Rd=function(){this.V.length=0;var a,c,b;a=0;for(c=this.I.length;a<c;a++)b=this.I[a],b.gc&&this.V.push(b)};e.prototype.wk=function(a){var c,b,d;c=0;for(b=this.I.length;c<b;c++)if(d=this.I[c],d.name===a)return d;return null};var p=[],q=!0;e.prototype.$l=
function(){this.sp&&(this.qg=this.b.ik[this.sp],this.qg.Op());this.b.za=this;this.scrollX=this.b.ab/2;this.scrollY=this.b.$a/2;var a,c,b,d,k,h,m;a=0;for(b=this.b.p.length;a<b;a++)if(c=this.b.p[a],!c.F)for(k=c.d,c=0,d=k.length;c<d;c++)if(h=k[c],h.i){var e=h.i.Eo;e>=this.M.length&&(e=this.M.length-1);h.i=this.M[e];-1===h.i.d.indexOf(h)&&h.i.d.push(h);h.i.fc=!0}if(!q)for(a=0,b=this.M.length;a<b;++a)this.M[a].d.sort(r);p.length=0;this.kr();a=0;for(b=this.M.length;a<b;a++)h=this.M[a],h.xr(),h.pm();k=!1;
if(!this.ug){for(m in this.je)if(this.je.hasOwnProperty(m)&&(c=this.b.ri(parseInt(m,10)))&&!c.F&&this.b.mm(c)){d=this.je[m];a=0;for(b=d.length;a<b;a++){h=null;if(c.wa.ee&&(h=this.qi(d[a].w.l),!h))continue;h=this.b.Zd(c.tc,h,!1,0,0,!0);this.b.Oi(h,d[a]);k=!0;p.push(h)}d.length=0}a=0;for(b=this.M.length;a<b;a++)this.M[a].d.sort(r),this.M[a].fc=!0}k&&(this.b.mb(),this.b.fp());for(a=0;a<p.length;a++)if(h=p[a],h.type.lc)for(b=h.xg(),c=0,d=h.type.Qb.length;c<d;c++)m=h.type.Qb[c],h.type!==m&&(m.d.length>
b?h.siblings.push(m.d[b]):m.tc&&(k=this.b.Zd(m.tc,h.i,!0,h.x,h.y,!0),this.b.mb(),m.Ej(),h.siblings.push(k),p.push(k)));a=0;for(b=this.Ie.length;a<b;a++)this.b.Zd(this.Ie[a],null,!0);this.b.kg=null;this.b.mb();if(this.b.la&&!this.b.na)for(a=0,b=this.b.p.length;a<b;a++)m=this.b.p[a],!m.F&&m.d.length&&m.Dl&&m.Dl(this.b.la);a=0;for(b=p.length;a<b;a++)h=p[a],this.b.trigger(Object.getPrototypeOf(h.type.wa).j.Jj,h);p.length=0;this.b.trigger(W.prototype.j.zm,null);this.ug=!1};e.prototype.ur=function(){var a,
c,b,d,k;c=a=0;for(b=this.Ie.length;a<b;a++)d=this.Ie[a],k=this.b.p[d[1]],k.global?this.b.Zd(d,null,!0):(this.Ie[c]=d,c++);this.Ie.length=c};e.prototype.vu=function(){this.b.trigger(W.prototype.j.Bq,null);this.b.rd.Mb.length=0;var a,c,b,d,k,h;a=0;for(c=this.M.length;a<c;a++)for(this.M[a].Sp(),k=this.M[a].d,b=0,d=k.length;b<d;b++)h=k[b],h.type.global||this.b.mm(h.type)&&this.mu(h);a=0;for(c=this.M.length;a<c;a++){k=this.M[a].d;b=0;for(d=k.length;b<d;b++)h=k[b],h.type.global||this.b.ue(h);this.b.mb();
k.length=0;this.M[a].fc=!0}a=0;for(c=this.b.p.length;a<c;a++)if(k=this.b.p[a],!(k.global||k.wa.ee||k.wa.qj||k.F)){b=0;for(d=k.d.length;b<d;b++)this.b.ue(k.d[b]);this.b.mb()}q=!1};e.prototype.Mc=function(a){var c,b=a,d=!1,k=!this.b.vc;k&&(this.b.Li||(this.b.Li=document.createElement("canvas"),c=this.b.Li,c.width=this.b.O,c.height=this.b.N,this.b.eo=c.getContext("2d"),d=!0),c=this.b.Li,b=this.b.eo,c.width!==this.b.O&&(c.width=this.b.O,d=!0),c.height!==this.b.N&&(c.height=this.b.N,d=!0),d&&(b.webkitImageSmoothingEnabled=
this.b.X,b.mozImageSmoothingEnabled=this.b.X,b.msImageSmoothingEnabled=this.b.X,b.imageSmoothingEnabled=this.b.X));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.Qj&&!this.Bn()&&b.clearRect(0,0,this.b.O,this.b.N);var h,m,d=0;for(h=this.M.length;d<h;d++)m=this.M[d],m.visible&&0<m.opacity&&11!==m.Cb&&(m.d.length||!m.Qd)?m.Mc(b):m.pm();k&&a.drawImage(c,0,0,this.b.width,this.b.height)};e.prototype.ic=function(a){var c=0<this.V.length||this.b.ag||!this.b.vc;if(c){this.b.Wb||(this.b.Wb=
a.zd(this.b.O,this.b.N,this.b.X));if(this.b.Wb.ig!==this.b.O||this.b.Wb.hg!==this.b.N)a.deleteTexture(this.b.Wb),this.b.Wb=a.zd(this.b.O,this.b.N,this.b.X);a.od(this.b.Wb);this.b.vc||a.Uf(this.b.O,this.b.N)}else this.b.Wb&&(a.od(null),a.deleteTexture(this.b.Wb),this.b.Wb=null);this.b.Qj&&!this.Bn()&&a.clear(0,0,0,0);var b,d,k;b=0;for(d=this.M.length;b<d;b++)k=this.M[b],k.visible&&0<k.opacity&&(k.d.length||!k.Qd)?k.ic(a):k.pm();c&&(0===this.V.length||1===this.V.length&&this.b.vc?(1===this.V.length?
(c=this.V[0].index,a.qd(this.V[0].jb),a.Tf(null,1/this.b.O,1/this.b.N,0,0,1,1,this.scale,this.m,0,0,this.Ea[c]),a.hj(this.V[0].jb)&&(this.b.ca=!0)):a.qd(0),this.b.vc||a.Uf(this.b.width,this.b.height),a.od(null),a.Ye(1),a.Zb(this.b.Wb),a.lp(),a.md(),a.td(),c=this.b.width/2,b=this.b.height/2,a.ij(-c,b,c,b,c,-b,-c,-b),a.Zb(null)):this.Ll(a,null,null,null))};e.prototype.wg=function(){return 0<this.V.length||this.b.ag||!this.b.vc?this.b.Wb:null};e.prototype.yn=function(){var a=this.M[0].Fb(),c,b,d;c=1;
for(b=this.M.length;c<b;c++)d=this.M[c],(0!==d.Dc||0!==d.Ec)&&d.Fb()<a&&(a=d.Fb());return a};e.prototype.jp=function(a){if(!this.Kp){var c=1/this.yn()*this.b.O/2;a>this.width-c&&(a=this.width-c);a<c&&(a=c)}this.scrollX!==a&&(this.scrollX=a,this.b.ca=!0)};e.prototype.kp=function(a){if(!this.Kp){var c=1/this.yn()*this.b.N/2;a>this.height-c&&(a=this.height-c);a<c&&(a=c)}this.scrollY!==a&&(this.scrollY=a,this.b.ca=!0)};e.prototype.kr=function(){this.jp(this.scrollX);this.kp(this.scrollY)};e.prototype.Ll=
function(a,c,b,d){var k=b?b.V:c?c.V:this.V,h=1,m=0,e=0,n=0;b?(h=b.i.Fb(),m=b.i.Qa(),e=b.i.kb,n=b.i.lb):c&&(h=c.Fb(),m=c.Qa(),e=c.kb,n=c.lb);var p=this.b.rk,q,l,v,r,f=0,s=1,H,D=this.b.O,u=this.b.N,T=D/2,z=u/2,L=c?c.ke:this.ke,I=c?c.Kl:this.Kl,F=0,E=0,t=0,U=0,y=D,M=D,A=u,Y=u,J=v=0,K=b?b.i.Qa():0;if(b){q=0;for(l=k.length;q<l;q++)v+=a.Ks(k[q].jb),J+=a.Ls(k[q].jb);r=b.Ha;F=c.pa(r.left,r.top,!0,!0);t=c.pa(r.left,r.top,!1,!0);y=c.pa(r.right,r.bottom,!0,!0);A=c.pa(r.right,r.bottom,!1,!0);0!==K&&(q=c.pa(r.right,
r.top,!0,!0),l=c.pa(r.right,r.top,!1,!0),E=c.pa(r.left,r.bottom,!0,!0),U=c.pa(r.left,r.bottom,!1,!0),r=Math.min(F,y,q,E),y=Math.max(F,y,q,E),F=r,r=Math.min(t,A,l,U),A=Math.max(t,A,l,U),t=r);F-=v;t-=J;y+=v;A+=J;I.left=F/D;I.top=1-t/u;I.right=y/D;I.bottom=1-A/u;E=F=Q(F);U=t=Q(t);M=y=la(y);Y=A=la(A);E-=v;U-=J;M+=v;Y+=J;0>F&&(F=0);0>t&&(t=0);y>D&&(y=D);A>u&&(A=u);0>E&&(E=0);0>U&&(U=0);M>D&&(M=D);Y>u&&(Y=u);L.left=F/D;L.top=1-t/u;L.right=y/D;L.bottom=1-A/u}else L.left=I.left=0,L.top=I.top=0,L.right=I.right=
1,L.bottom=I.bottom=1;J=b&&((b.m||K)&&a.kh(k[0].jb)||0!==v||0!==J||1!==b.opacity||b.type.wa.zo)||c&&!b&&1!==c.opacity;a.lp();if(J){p[f]||(p[f]=a.zd(D,u,this.b.X));if(p[f].ig!==D||p[f].hg!==u)a.deleteTexture(p[f]),p[f]=a.zd(D,u,this.b.X);a.qd(0);a.od(p[f]);H=Y-U;a.clearRect(E,u-U-H,M-E,H);b?b.ic(a):(a.Zb(this.b.nc),a.Ye(c.opacity),a.md(),a.translate(-T,-z),a.td(),a.ld(F,A,y,A,y,t,F,t,L));I.left=I.top=0;I.right=I.bottom=1;b&&(r=L.top,L.top=L.bottom,L.bottom=r);f=1;s=0}a.Ye(1);v=k.length-1;var K=a.El(k[v].jb)||
!c&&!b&&!this.b.vc,P=0;q=0;for(l=k.length;q<l;q++){p[f]||(p[f]=a.zd(D,u,this.b.X));if(p[f].ig!==D||p[f].hg!==u)a.deleteTexture(p[f]),p[f]=a.zd(D,u,this.b.X);a.qd(k[q].jb);P=k[q].index;a.hj(k[q].jb)&&(this.b.ca=!0);0!=q||J?(a.Tf(d,1/D,1/u,I.left,I.top,I.right,I.bottom,h,m,e,n,b?b.Ea[P]:c?c.Ea[P]:this.Ea[P]),a.Zb(null),q!==v||K?(a.od(p[f]),H=Y-U,r=u-U-H,a.clearRect(E,r,M-E,H)):(b?a.me(b.tb,b.sb):c&&a.me(c.tb,c.sb),a.od(d)),a.Zb(p[s]),a.md(),a.translate(-T,-z),a.td(),a.ld(F,A,y,A,y,t,F,t,L),q!==v||K||
a.Zb(null)):(a.od(p[f]),H=Y-U,r=u-U-H,a.clearRect(E,r,M-E,H),b?(a.Tf(d,1/b.width,1/b.height,I.left,I.top,I.right,I.bottom,h,m,e,n,b.Ea[P]),b.ic(a)):(a.Tf(d,1/D,1/u,0,0,1,1,h,m,e,n,c?c.Ea[P]:this.Ea[P]),a.Zb(c?this.b.nc:this.b.Wb),a.md(),a.translate(-T,-z),a.td(),a.ld(F,A,y,A,y,t,F,t,L)),I.left=I.top=0,I.right=I.bottom=1,b&&!K&&(r=A,A=t,t=r));f=0===f?1:0;s=0===f?1:0}K&&(a.qd(0),b?a.me(b.tb,b.sb):c?a.me(c.tb,c.sb):this.b.vc||(a.Uf(this.b.width,this.b.height),T=this.b.width/2,z=this.b.height/2,t=F=0,
y=this.b.width,A=this.b.height),a.od(d),a.Zb(p[s]),a.md(),a.translate(-T,-z),a.td(),b&&1===k.length&&!J?a.ld(F,t,y,t,y,A,F,A,L):a.ld(F,A,y,A,y,t,F,t,L),a.Zb(null))};e.prototype.qi=function(a){var c,b;c=0;for(b=this.M.length;c<b;c++)if(this.M[c].S===a)return this.M[c];return null};e.prototype.Kb=function(){var a,c,b,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.m,w:this.width,h:this.height,fv:this.ug,persist:this.je,fx:[],layers:{}};a=0;for(c=this.I.length;a<c;a++)b=this.I[a],d.fx.push({name:b.name,
active:b.gc,params:this.Ea[b.index]});a=0;for(c=this.M.length;a<c;a++)b=this.M[a],d.layers[b.S.toString()]=b.Kb();return d};e.prototype.oc=function(a){var c,b,d,k;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.m=a.a;this.width=a.w;this.height=a.h;this.je=a.persist;"undefined"!==typeof a.fv&&(this.ug=a.fv);var h=a.fx;c=0;for(b=h.length;c<b;c++)if(d=this.wk(h[c].name))d.gc=h[c].active,this.Ea[d.index]=h[c].params;this.Rd();c=a.layers;for(k in c)c.hasOwnProperty(k)&&(a=this.qi(parseInt(k,10)))&&
a.oc(c[k])};tb=e;b.prototype.Rd=function(){this.V.length=0;var a,c,b;a=0;for(c=this.I.length;a<c;a++)b=this.I[a],b.gc&&this.V.push(b)};b.prototype.wk=function(a){var c,b,d;c=0;for(b=this.I.length;c<b;c++)if(d=this.I[c],d.name===a)return d;return null};b.prototype.xr=function(){var a,c,b,d,k,h;c=a=0;for(b=this.yf.length;a<b;a++){d=this.yf[a];k=this.b.p[d[1]];h=this.b.mm(k);k=!0;if(!h||this.ua.ug)d=this.b.Zd(d,this,!0),p.push(d),d.type.global&&(k=!1);k&&(this.yf[c]=this.yf[a],c++)}this.yf.length=c;
this.b.mb();!this.b.q&&this.I.length&&(this.Cb=this.Qr);this.lg=Ua(this.Cb);this.b.n&&Va(this,this.Cb,this.b.n)};b.prototype.Sp=function(){if(this.fc){var a,c;a=0;for(c=this.d.length;a<c;a++)this.d[a].ef=a;this.fc=!1}};b.prototype.Fb=function(a){return this.Hs()*(this.b.vc||a?this.b.gg:1)};b.prototype.Hs=function(){return(this.scale*this.ua.scale-1)*this.Yc+1};b.prototype.Qa=function(){return this.Ae?0:ya(this.ua.m+this.m)};b.prototype.Mc=function(a){this.le=this.ok||1!==this.opacity||0!==this.Cb;
var c=this.b.canvas,b=a,d=!1;this.le&&(this.b.Ki||(this.b.Ki=document.createElement("canvas"),c=this.b.Ki,c.width=this.b.O,c.height=this.b.N,this.b.co=c.getContext("2d"),d=!0),c=this.b.Ki,b=this.b.co,c.width!==this.b.O&&(c.width=this.b.O,d=!0),c.height!==this.b.N&&(c.height=this.b.N,d=!0),d&&(b.webkitImageSmoothingEnabled=this.b.X,b.mozImageSmoothingEnabled=this.b.X,b.msImageSmoothingEnabled=this.b.X,b.imageSmoothingEnabled=this.b.X),this.Qd&&b.clearRect(0,0,this.b.O,this.b.N));b.globalAlpha=1;b.globalCompositeOperation=
"source-over";this.Qd||(b.fillStyle="rgb("+this.Wd[0]+","+this.Wd[1]+","+this.Wd[2]+")",b.fillRect(0,0,this.b.O,this.b.N));b.save();this.Ae=!0;var d=this.Pb(0,0,!0,!0),k=this.Pb(0,0,!1,!0);this.Ae=!1;this.b.kd&&(d=Math.round(d),k=Math.round(k));this.Nl(d,k,b);var h=this.Fb();b.scale(h,h);b.translate(-d,-k);for(var m,d=0,k=this.d.length;d<k;d++)h=this.d[d],h.visible&&0!==h.width&&0!==h.height&&(h.Ca(),m=h.Ha,m.right<this.kb||m.bottom<this.lb||m.left>this.ec||m.top>this.cc||(b.globalCompositeOperation=
h.lg,h.Mc(b)));b.restore();this.le&&(a.globalCompositeOperation=this.lg,a.globalAlpha=this.opacity,a.drawImage(c,0,0))};b.prototype.pm=function(){this.Ae=!0;var a=this.Pb(0,0,!0,!0),c=this.Pb(0,0,!1,!0);this.Ae=!1;this.b.kd&&(a=Math.round(a),c=Math.round(c));this.Nl(a,c,null)};b.prototype.Nl=function(a,c,b){var d=this.Fb();this.kb=a;this.lb=c;this.ec=a+1/d*this.b.O;this.cc=c+1/d*this.b.N;a=this.Qa();0!==a&&(b&&(b.translate(this.b.O/2,this.b.N/2),b.rotate(-a),b.translate(this.b.O/-2,this.b.N/-2)),
this.Pd.set(this.kb,this.lb,this.ec,this.cc),this.Pd.offset((this.kb+this.ec)/-2,(this.lb+this.cc)/-2),this.Ep.qp(this.Pd,a),this.Ep.Vm(this.Pd),this.Pd.offset((this.kb+this.ec)/2,(this.lb+this.cc)/2),this.kb=this.Pd.left,this.lb=this.Pd.top,this.ec=this.Pd.right,this.cc=this.Pd.bottom)};b.prototype.ic=function(a){var c=this.b.O,b=this.b.N,d=0,k=0;if(this.le=this.ok||1!==this.opacity||0<this.V.length||0!==this.Cb){this.b.nc||(this.b.nc=a.zd(this.b.O,this.b.N,this.b.X));if(this.b.nc.ig!==this.b.O||
this.b.nc.hg!==this.b.N)a.deleteTexture(this.b.nc),this.b.nc=a.zd(this.b.O,this.b.N,this.b.X);a.od(this.b.nc);this.Qd&&a.clear(0,0,0,0)}this.Qd||a.clear(this.Wd[0]/255,this.Wd[1]/255,this.Wd[2]/255,1);this.Ae=!0;var k=this.Pb(0,0,!0,!0),h=this.Pb(0,0,!1,!0);this.Ae=!1;this.b.kd&&(k=Math.round(k),h=Math.round(h));this.Nl(k,h,null);h=this.Fb();a.md();a.scale(h,h);a.Ol(-this.Qa());a.translate((this.kb+this.ec)/-2,(this.lb+this.cc)/-2);a.td();var m,e,n;m=0;for(e=this.d.length;m<e;m++)if(n=this.d[m],n.visible&&
0!==n.width&&0!==n.height&&(n.Ca(),d=n.Ha,!(d.right<this.kb||d.bottom<this.lb||d.left>this.ec||d.top>this.cc)))if(n.Up)if(d=n.V[0].jb,k=n.V[0].index,1!==n.V.length||a.El(d)||a.$t(d)||(n.m||n.i.Qa())&&a.kh(d)||1!==n.opacity||n.type.wa.zo)this.ua.Ll(a,this,n,this.le?this.b.nc:this.ua.wg()),a.md(),a.scale(h,h),a.Ol(-this.Qa()),a.translate((this.kb+this.ec)/-2,(this.lb+this.cc)/-2),a.td();else{a.qd(d);a.me(n.tb,n.sb);a.hj(d)&&(this.b.ca=!0);var p=0,q=0,l=0,v=0;a.kh(d)&&(d=n.Ha,p=this.pa(d.left,d.top,
!0,!0),q=this.pa(d.left,d.top,!1,!0),l=this.pa(d.right,d.bottom,!0,!0),d=this.pa(d.right,d.bottom,!1,!0),p/=c,q=1-q/b,l/=c,v=1-d/b);a.Tf(this.le?this.b.nc:this.ua.wg(),1/n.width,1/n.height,p,q,l,v,this.Fb(),this.Qa(),this.kb,this.lb,n.Ea[k]);n.ic(a)}else a.qd(0),a.me(n.tb,n.sb),n.ic(a);this.le&&(d=this.V.length?this.V[0].jb:0,k=this.V.length?this.V[0].index:0,0===this.V.length||1===this.V.length&&!a.El(d)&&1===this.opacity?(1===this.V.length?(a.qd(d),a.Tf(this.ua.wg(),1/this.b.O,1/this.b.N,0,0,1,
1,this.Fb(),this.Qa(),this.kb,this.lb,this.Ea[k]),a.hj(d)&&(this.b.ca=!0)):a.qd(0),a.od(this.ua.wg()),a.Ye(this.opacity),a.Zb(this.b.nc),a.me(this.tb,this.sb),a.md(),a.td(),c=this.b.O/2,b=this.b.N/2,a.ij(-c,b,c,b,c,-b,-c,-b),a.Zb(null)):this.ua.Ll(a,this,null,this.ua.wg()))};b.prototype.Pb=function(a,c,b,d){var k=this.b.devicePixelRatio;this.b.Ke&&(a*=k,c*=k);var k=this.b.Uo,h=this.b.Vo,k=(this.ua.scrollX-k)*this.Dc+k,h=(this.ua.scrollY-h)*this.Ec+h,m=1/this.Fb(!d);d?(k-=this.b.O*m/2,h-=this.b.N*
m/2):(k-=this.b.width*m/2,h-=this.b.height*m/2);k+=a*m;h+=c*m;c=this.Qa();0!==c&&(k-=this.ua.scrollX,h-=this.ua.scrollY,a=Math.cos(c),c=Math.sin(c),d=k*a-h*c,h=h*a+k*c,k=d+this.ua.scrollX,h+=this.ua.scrollY);return b?k:h};b.prototype.pa=function(a,c,b,d){var k=this.Qa();if(0!==k){a-=this.ua.scrollX;c-=this.ua.scrollY;var h=Math.cos(-k),k=Math.sin(-k),m=a*h-c*k;c=c*h+a*k;a=m+this.ua.scrollX;c+=this.ua.scrollY}h=this.b.Uo;k=this.b.Vo;h=(this.ua.scrollX-h)*this.Dc+h;k=(this.ua.scrollY-k)*this.Ec+k;m=
1/this.Fb(!d);d?(h-=this.b.O*m/2,k-=this.b.N*m/2):(h-=this.b.width*m/2,k-=this.b.height*m/2);h=(a-h)/m;k=(c-k)/m;a=this.b.devicePixelRatio;this.b.Ke&&!d&&(h/=a,k/=a);return b?h:k};b.prototype.Kb=function(){var a,c,b,d={s:this.scale,a:this.m,vl:this.kb,vt:this.lb,vr:this.ec,vb:this.cc,v:this.visible,bc:this.Wd,t:this.Qd,px:this.Dc,py:this.Ec,o:this.opacity,zr:this.Yc,fx:[],instances:[]};a=0;for(c=this.I.length;a<c;a++)b=this.I[a],d.fx.push({name:b.name,active:b.gc,params:this.Ea[b.index]});return d};
b.prototype.oc=function(a){var c,b;this.scale=a.s;this.m=a.a;this.kb=a.vl;this.lb=a.vt;this.ec=a.vr;this.cc=a.vb;this.visible=a.v;this.Wd=a.bc;this.Qd=a.t;this.Dc=a.px;this.Ec=a.py;this.opacity=a.o;this.Yc=a.zr;var d=a.fx;a=0;for(c=d.length;a<c;a++)if(b=this.wk(d[a].name))b.gc=d[a].active,this.Ea[b.index]=d[a].params;this.Rd();this.d.sort(r);this.fc=!0};Gb=b})();
(function(){function e(a,c){var b,f=a.length;switch(f){case 0:return!0;case 1:return a[0]===c[0];case 2:return a[0]===c[0]&&a[1]===c[1];default:for(b=0;b<f;b++)if(a[b]!==c[b])return!1;return!0}}function r(a,c){return a.index-c.index}function b(a){var c,b,f,d;2===a.length?a[0].index>a[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2<a.length&&a.sort(r);a.length>=n.length&&(n.length=a.length+1);n[a.length]||(n[a.length]=[]);d=n[a.length];c=0;for(b=d.length;c<b;c++)if(f=d[c],e(a,f))return f;d.push(a);return a}
function p(a,c){this.b=a;this.Gp={};this.nn={};this.Gk=!1;this.En=new ba;this.dk=[];this.Rj=[];this.name=c[0];var b=c[1];this.be=[];var f,d;f=0;for(d=b.length;f<d;f++)this.Gn(b[f],null,this.be)}function q(a){this.type=a;this.d=[];this.W=[];this.ra=!0}function a(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.Aa=[];this.ne=[];this.Cn=this.Bj=this.jm=this.Lk=this.group=this.wp=!1;this.rb=[];this.Jc=[];this.Gc=[];this.zg="";this.yg=this.Lk=this.group=!1;this.an=null;b[1]&&(this.zg=b[1][1].toLowerCase(),
this.group=!0,this.Lk=!!b[1][0],this.an=[],this.yg=this.Lk,this.b.lf.push(this),this.b.Ag[this.zg]=this);this.Sc=b[2];this.S=b[4];this.group||(this.b.Um[this.S.toString()]=this);var f=b[5];a=0;for(c=f.length;a<c;a++){var d=new Hb(this,f[a]);d.index=a;this.rb.push(d);this.Om(d.type)}f=b[6];a=0;for(c=f.length;a<c;a++)d=new Ib(this,f[a]),d.index=a,this.Jc.push(d);if(8===b.length)for(b=b[7],a=0,c=b.length;a<c;a++)this.sheet.Gn(b[a],this,this.Gc);this.Ci=!1;this.rb.length&&(this.Ci=null==this.rb[0].type&&
this.rb[0].fb==W.prototype.j.bq)}function c(a,c){var b,f,d;if(a&&(-1===c.indexOf(a)&&c.push(a),a.lc))for(b=0,f=a.Qb.length;b<f;b++)d=a.Qb[b],a!==d&&-1===c.indexOf(d)&&c.push(d)}function g(a,c){this.hc=a;this.sheet=a.sheet;this.b=a.b;this.J=[];this.qa=[];this.R={};this.index=-1;this.fg=!1;this.fb=this.b.Sd(c[1]);this.trigger=0<c[3];this.mn=2===c[3];this.gd=c[4];this.wi=c[5];this.Ct=c[6];this.S=c[7];this.b.pf[this.S.toString()]=this;-1===c[0]?(this.type=null,this.Va=this.Rl,this.ye=null,this.qc=-1):
(this.type=this.b.p[c[0]],this.Va=this.Ct?this.ku:this.Ql,c[2]?(this.ye=this.type.oi(c[2]),this.qc=this.type.tk(c[2])):(this.ye=null,this.qc=-1),this.hc.parent&&this.hc.parent.oj());this.mn&&(this.Va=this.lu);if(10===c.length){var b,f,d=c[9];b=0;for(f=d.length;b<f;b++){var h=new Jb(this,d[b]);this.J.push(h)}this.qa.length=d.length}}function d(a,c){this.hc=a;this.sheet=a.sheet;this.b=a.b;this.J=[];this.qa=[];this.R={};this.index=-1;this.fg=!1;this.fb=this.b.Sd(c[1]);-1===c[0]?(this.type=null,this.Va=
this.Rl,this.ye=null,this.qc=-1):(this.type=this.b.p[c[0]],this.Va=this.Ql,c[2]?(this.ye=this.type.oi(c[2]),this.qc=this.type.tk(c[2])):(this.ye=null,this.qc=-1));this.S=c[3];this.b.kf[this.S.toString()]=this;if(6===c.length){var b,f,d=c[5];b=0;for(f=d.length;b<f;b++){var h=new Jb(this,d[b]);this.J.push(h)}this.qa.length=d.length}}function k(a,c){this.A=a;this.hc=a.hc;this.sheet=a.sheet;this.b=a.b;this.type=c[0];this.bd=null;this.oe=0;this.get=null;this.$m=0;this.ua=null;this.key=0;this.object=null;
this.index=0;this.Ch=this.$e=this.Ch=this.$e=this.on=this.Ce=this.Dh=null;this.Ic=!1;var b,f,d;switch(c[0]){case 0:case 7:this.bd=new Kb(this,c[1]);this.oe=0;this.get=this.Rs;break;case 1:this.bd=new Kb(this,c[1]);this.oe=0;this.get=this.Ss;break;case 5:this.bd=new Kb(this,c[1]);this.oe=0;this.get=this.Ws;break;case 3:case 8:this.$m=c[1];this.get=this.Ps;break;case 6:this.ua=this.b.Yk[c[1]];this.get=this.Xs;break;case 9:this.key=c[1];this.get=this.Vs;break;case 4:this.object=this.b.p[c[1]];this.get=
this.Ys;this.hc.Om(this.object);this.A instanceof Ib?this.hc.oj():this.hc.parent&&this.hc.parent.oj();break;case 10:this.index=c[1];a.type.F?(this.get=this.Ts,this.Ic=!0):this.get=this.Us;break;case 11:this.Dh=c[1];this.Ce=null;this.get=this.Qs;break;case 2:case 12:this.on=c[1];this.get=this.Os;break;case 13:for(this.get=this.Zs,this.$e=[],this.Ch=[],b=1,f=c.length;b<f;b++)d=new Jb(this.A,c[b]),this.$e.push(d),this.Ch.push(0)}}function h(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.Aa=[];this.name=
b[1];this.Gj=b[2];this.Kk=b[3];this.Kg=!!b[4];this.Bi=!!b[5];this.S=b[6];this.b.cg[this.S.toString()]=this;this.data=this.Kk;this.parent?(this.Se=this.Kg||this.Bi?-1:this.b.tu++,this.b.fr.push(this)):(this.Se=-1,this.b.er.push(this))}function m(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.Aa=[];this.Cg=null;this.it=b[1];this.gc=!0}function x(){this.zp=[];this.reset(null)}var n=[];p.prototype.toString=function(){return this.name};p.prototype.Gn=function(a,c,b){switch(a[0]){case 0:a=new Lb(this,
c,a);if(a.Sc)for(b.push(a),b=0,c=a.rb.length;b<c;b++)a.rb[b].trigger&&this.Hn(a,b);else a.Pn()?this.Hn(a,0):b.push(a);break;case 1:a=new Db(this,c,a);b.push(a);break;case 2:a=new Mb(this,c,a),b.push(a)}};p.prototype.Ka=function(){var a,c;a=0;for(c=this.be.length;a<c;a++)this.be[a].Ka(a<c-1&&this.be[a+1].Ci)};p.prototype.Op=function(){this.dk.length=0;this.Rj.length=0;this.Mm(this);this.Rj.length=0};p.prototype.Mm=function(a){var c,b,f,d,h=a.dk,g=a.Rj,n=this.En.df();c=0;for(b=n.length;c<b;++c)f=n[c],
d=f.Cg,!f.gc||a===d||-1<g.indexOf(d)||(g.push(d),d.Mm(a),h.push(d))};p.prototype.Va=function(a){this.b.Vv||(this.Gk=!0,a||(this.b.Pk=!0));var c,b;c=0;for(b=this.be.length;c<b;c++){var f=this.be[c];f.Va();this.b.Zj(f.Aa);this.b.ad.Oc()&&!this.b.Eb.length||this.b.mb()}a||(this.b.Pk=!1)};p.prototype.Hn=function(a,c){a.Sc||this.b.Dj.push(a);var b,f,d=a.rb[c],h;h=d.type?d.type.name:"system";var g=(b=d.mn)?this.nn:this.Gp;g[h]||(g[h]=[]);h=g[h];g=d.fb;if(b){if(d.J.length&&(d=d.J[0],1===d.type&&2===d.bd.type)){d=
d.bd.value.toLowerCase();b=0;for(f=h.length;b<f;b++)if(h[b].method==g){b=h[b].rg;b[d]?b[d].push([a,c]):b[d]=[[a,c]];return}b={};b[d]=[[a,c]];h.push({method:g,rg:b})}}else{b=0;for(f=h.length;b<f;b++)if(h[b].method==g){h[b].rg.push([a,c]);return}X&&g===X.prototype.j.hf?h.unshift({method:g,rg:[[a,c]]}):h.push({method:g,rg:[[a,c]]})}};ub=p;q.prototype.Fk=function(){return this.ra?this.type.d.length:this.d.length};q.prototype.dd=function(){return this.ra?this.type.d:this.d};q.prototype.jh=function(a){a&&
(a.b.yb().Sb.Sc?(this.ra&&(this.d.length=0,ra(this.W,a.type.d),this.ra=!1),a=this.W.indexOf(a),-1!==a&&(this.d.push(this.W[a]),this.W.splice(a,1))):(this.ra=!1,this.d.length=1,this.d[0]=a))};ab=q;window._c2hh_="150C93AF6D01B6DF7DD53A1B8F05353105AEBEDD";a.prototype.Ka=function(a){var c,d=this.parent;if(this.group)for(this.Bj=!0;d;){if(!d.group){this.Bj=!1;break}d=d.parent}this.jm=!this.Pn()&&(!this.parent||this.parent.group&&this.parent.Bj);this.Cn=!!a;this.ne=this.Aa.slice(0);for(d=this.parent;d;){a=
0;for(c=d.Aa.length;a<c;a++)this.dr(d.Aa[a]);d=d.parent}this.Aa=b(this.Aa);this.ne=b(this.ne);a=0;for(c=this.rb.length;a<c;a++)this.rb[a].Ka();a=0;for(c=this.Jc.length;a<c;a++)this.Jc[a].Ka();a=0;for(c=this.Gc.length;a<c;a++)this.Gc[a].Ka(a<c-1&&this.Gc[a+1].Ci)};a.prototype.Om=function(a){c(a,this.Aa)};a.prototype.dr=function(a){c(a,this.ne)};a.prototype.oj=function(){this.wp=!0;this.parent&&this.parent.oj()};a.prototype.Pn=function(){return this.rb.length?this.rb[0].trigger:!1};a.prototype.Va=function(){var a,
c=!1,b,f=this.b,d=this.b.yb();d.Sb=this;var h=this.rb;this.Ci||(d.fk=!1);if(this.Sc){0===h.length&&(c=!0);d.Db=0;for(a=h.length;d.Db<a;d.Db++)h[d.Db].trigger||(b=h[d.Db].Va())&&(c=!0);(d.Pe=c)&&this.Pl()}else{d.Db=0;for(a=h.length;d.Db<a;d.Db++)if(b=h[d.Db].Va(),!b){d.Pe=!1;!this.jm||f.ad.Oc()&&!f.Eb.length||f.mb();return}d.Pe=!0;this.Pl()}this.Sr(d)};a.prototype.Sr=function(a){a.Pe&&this.Cn&&(a.fk=!0);!this.jm||this.b.ad.Oc()&&!this.b.Eb.length||this.b.mb()};a.prototype.iu=function(a){this.b.yb().Sb=
this;this.rb[a].Va()&&(this.Pl(),this.b.yb().Pe=!0)};a.prototype.Pl=function(){var a=this.b.yb(),c;a.Nb=0;for(c=this.Jc.length;a.Nb<c;a.Nb++)if(this.Jc[a.Nb].Va())return;this.ip()};a.prototype.gu=function(){var a=this.b.yb(),c;for(c=this.Jc.length;a.Nb<c;a.Nb++)if(this.Jc[a.Nb].Va())return;this.ip()};a.prototype.ip=function(){if(this.Gc.length){var a,c,b,f,d=this.Gc.length-1;this.b.Gl(this);if(this.wp)for(a=0,c=this.Gc.length;a<c;a++)b=this.Gc[a],(f=!this.Bj||!this.group&&a<d)&&this.b.Fl(b.Aa),b.Va(),
f?this.b.Sf(b.Aa):this.b.Zj(b.Aa);else for(a=0,c=this.Gc.length;a<c;a++)this.Gc[a].Va();this.b.Yo()}};a.prototype.ju=function(){var a=this.b.yb();a.Sb=this;var c=!1,b;a.Db=0;for(b=this.rb.length;a.Db<b;a.Db++)if(this.rb[a.Db].Va())c=!0;else if(!this.Sc)return!1;return this.Sc?c:!0};a.prototype.ut=function(a){var c=a.index;if(0===c)return!0;for(--c;0<=c;--c)if(this.rb[c].type===a.type)return!1;return!0};Lb=a;g.prototype.Ka=function(){var a,c,b;a=0;for(c=this.J.length;a<c;a++)b=this.J[a],b.Ka(),b.Ic&&
(this.fg=!0)};g.prototype.lu=function(){return!0};g.prototype.Rl=function(){var a,c;a=0;for(c=this.J.length;a<c;a++)this.qa[a]=this.J[a].get();return Na(this.fb.apply(this.b.rd,this.qa),this.wi)};g.prototype.ku=function(){var a,c;a=0;for(c=this.J.length;a<c;a++)this.qa[a]=this.J[a].get();a=this.fb.apply(this.ye?this.ye:this.type,this.qa);this.type.Ud();return a};g.prototype.Ql=function(){var a,c,b,f,d,h,g,n,k=this.type,m=k.ma(),e=this.hc.Sc&&!this.trigger;c=0;var p=k.lc,q=k.F,r=k.Gd,B=this.qc,w=-1<
B,x=this.fg,M=this.J,A=this.qa,Y=this.wi,J=this.fb,K;if(x)for(c=0,d=M.length;c<d;++c)h=M[c],h.Ic||(A[c]=h.get(0));else for(c=0,d=M.length;c<d;++c)A[c]=M[c].get(0);if(m.ra){m.d.length=0;m.W.length=0;K=k.d;a=0;for(f=K.length;a<f;++a){n=K[a];if(x)for(c=0,d=M.length;c<d;++c)h=M[c],h.Ic&&(A[c]=h.get(a));w?(c=0,q&&(c=n.type.uf[r]),c=J.apply(n.L[B+c],A)):c=J.apply(n,A);(g=Na(c,Y))?m.d.push(n):e&&m.W.push(n)}k.finish&&k.finish(!0);m.ra=!1;k.Ud();return m.Fk()}b=0;K=(g=e&&!this.hc.ut(this))?m.W:m.d;var P=
!1;a=0;for(f=K.length;a<f;++a){n=K[a];if(x)for(c=0,d=M.length;c<d;++c)h=M[c],h.Ic&&(A[c]=h.get(a));w?(c=0,q&&(c=n.type.uf[r]),c=J.apply(n.L[B+c],A)):c=J.apply(n,A);if(Na(c,Y))if(P=!0,g){if(m.d.push(n),p)for(c=0,d=n.siblings.length;c<d;c++)h=n.siblings[c],h.type.ma().d.push(h)}else{K[b]=n;if(p)for(c=0,d=n.siblings.length;c<d;c++)h=n.siblings[c],h.type.ma().d[b]=h;b++}else if(g){K[b]=n;if(p)for(c=0,d=n.siblings.length;c<d;c++)h=n.siblings[c],h.type.ma().W[b]=h;b++}else if(e&&(m.W.push(n),p))for(c=0,
d=n.siblings.length;c<d;c++)h=n.siblings[c],h.type.ma().W.push(h)}K.length=b;if(p)for(q=k.Qb,a=0,f=q.length;a<f;a++)n=q[a].ma(),g?n.W.length=b:n.d.length=b;b=P;if(g&&!P)for(a=0,f=m.d.length;a<f;a++){n=m.d[a];if(x)for(c=0,d=M.length;c<d;c++)h=M[c],h.Ic&&(A[c]=h.get(a));c=w?J.apply(n.L[B],A):J.apply(n,A);if(Na(c,Y)){P=!0;break}}k.finish&&k.finish(b||e);return e?P:m.Fk()};Hb=g;d.prototype.Ka=function(){var a,c,b;a=0;for(c=this.J.length;a<c;a++)b=this.J[a],b.Ka(),b.Ic&&(this.fg=!0)};d.prototype.Rl=function(){var a,
c;a=0;for(c=this.J.length;a<c;a++)this.qa[a]=this.J[a].get();return this.fb.apply(this.b.rd,this.qa)};d.prototype.Ql=function(){var a=this.type.ma().dd(),c=this.type.F,b=this.type.Gd,f=this.qc,d=-1<f,h=this.fg,g=this.J,n=this.qa,k=this.fb,m,e,p,q,r,B;if(h)for(e=0,q=g.length;e<q;++e)r=g[e],r.Ic||(n[e]=r.get(0));else for(e=0,q=g.length;e<q;++e)n[e]=g[e].get(0);m=0;for(p=a.length;m<p;++m){B=a[m];if(h)for(e=0,q=g.length;e<q;++e)r=g[e],r.Ic&&(n[e]=r.get(m));d?(e=0,c&&(e=B.type.uf[b]),k.apply(B.L[f+e],
n)):k.apply(B,n)}return!1};Ib=d;var B=[],w=-1;k.prototype.Ka=function(){var a,c;if(11===this.type)this.Ce=this.b.vn(this.Dh,this.hc.parent);else if(13===this.type)for(a=0,c=this.$e.length;a<c;a++)this.$e[a].Ka();this.bd&&this.bd.Ka()};k.prototype.Ht=function(a){this.Ic||!a||a.wa.qj||(this.Ic=!0)};k.prototype.np=function(){this.Ic=!0};k.prototype.Ua=function(){w++;B.length===w&&B.push(new Nb);return B[w]};k.prototype.Ra=function(){w--};k.prototype.Rs=function(a){this.oe=a||0;a=this.Ua();this.bd.get(a);
this.Ra();return a.data};k.prototype.Ss=function(a){this.oe=a||0;a=this.Ua();this.bd.get(a);this.Ra();return N(a.data)?a.data:""};k.prototype.Ys=function(){return this.object};k.prototype.Ps=function(){return this.$m};k.prototype.Ws=function(a){this.oe=a||0;a=this.Ua();this.bd.get(a);this.Ra();return a.Za()?this.b.vg(a.data):this.b.zk(a.data)};k.prototype.Xs=function(){return this.ua};k.prototype.Vs=function(){return this.key};k.prototype.Us=function(){return this.index};k.prototype.Ts=function(a){a=
a||0;var c=this.A.type,b=null,b=c.ma(),f=b.dd();if(f.length)b=f[a%f.length].type;else if(b.W.length)b=b.W[a%b.W.length].type;else if(c.d.length)b=c.d[a%c.d.length].type;else return 0;return this.index+b.fi[c.Gd]};k.prototype.Qs=function(){return this.Ce};k.prototype.Os=function(){return this.on};k.prototype.Zs=function(){var a,c;a=0;for(c=this.$e.length;a<c;a++)this.Ch[a]=this.$e[a].get();return this.Ch};Jb=k;h.prototype.Ka=function(){this.Aa=b(this.Aa)};h.prototype.Ze=function(a){var c=this.b.un();
this.parent&&!this.Kg&&c?(this.Se>=c.length&&(c.length=this.Se+1),c[this.Se]=a):this.data=a};h.prototype.si=function(){var a=this.b.un();return!this.parent||this.Kg||!a||this.Bi?this.data:this.Se>=a.length||"undefined"===typeof a[this.Se]?this.Kk:a[this.Se]};h.prototype.Va=function(){!this.parent||this.Kg||this.Bi||this.Ze(this.Kk)};Db=h;m.prototype.toString=function(){return"include:"+this.Cg.toString()};m.prototype.Ka=function(){this.Cg=this.b.ik[this.it];this.sheet.En.add(this);this.Aa=b(this.Aa);
for(var a=this.parent;a;)a.group&&a.an.push(this),a=a.parent;this.Au()};m.prototype.Va=function(){this.parent&&this.b.mh(this.b.p);this.Cg.Gk||this.Cg.Va(!0);this.parent&&this.b.Sf(this.b.p)};m.prototype.Au=function(){for(var a=this.parent;a;){if(a.group&&!a.yg){this.gc=!1;return}a=a.parent}this.gc=!0};Mb=m;x.prototype.reset=function(a){this.Sb=a;this.Nb=this.Db=0;this.zp.length=0;this.fk=this.Pe=!1};Cb=x})();
(function(){function e(b,e){this.A=b;this.b=b.b;this.type=e[0];this.get=[this.ds,this.$r,this.qs,this.ts,this.Ur,this.rs,this.ks,this.Xr,this.hs,this.os,this.Vr,this.ns,this.Yr,this.ls,this.es,this.gs,this.as,this.bs,this.Wr,this.ss,this.kn,this.cs,this.kn,this.Zr][this.type];var q=null;this.Ib=this.J=this.qa=this.fb=this.xj=this.cb=this.first=this.value=null;this.qc=-1;this.Jd=null;this.rm=-1;this.Ce=this.Dh=null;this.ph=!1;switch(this.type){case 0:case 1:case 2:this.value=e[1];break;case 3:this.first=
new Kb(b,e[1]);break;case 18:this.first=new Kb(b,e[1]);this.cb=new Kb(b,e[2]);this.xj=new Kb(b,e[3]);break;case 19:this.fb=this.b.Sd(e[1]);this.fb!==W.prototype.Na.random&&this.fb!==W.prototype.Na.qr||this.A.np();this.qa=[];this.J=[];3===e.length?(q=e[2],this.qa.length=q.length+1):this.qa.length=1;break;case 20:this.Ib=this.b.p[e[1]];this.qc=-1;this.fb=this.b.Sd(e[2]);this.ph=e[3];Yb&&this.fb===Yb.prototype.Na.Zp&&this.A.np();this.Jd=e[4]?new Kb(b,e[4]):null;this.qa=[];this.J=[];6===e.length?(q=e[5],
this.qa.length=q.length+1):this.qa.length=1;break;case 21:this.Ib=this.b.p[e[1]];this.ph=e[2];this.Jd=e[3]?new Kb(b,e[3]):null;this.rm=e[4];break;case 22:this.Ib=this.b.p[e[1]];this.Ib.oi(e[2]);this.qc=this.Ib.tk(e[2]);this.fb=this.b.Sd(e[3]);this.ph=e[4];this.Jd=e[5]?new Kb(b,e[5]):null;this.qa=[];this.J=[];7===e.length?(q=e[6],this.qa.length=q.length+1):this.qa.length=1;break;case 23:this.Dh=e[1],this.Ce=null}this.A.Ht(this.Ib);4<=this.type&&17>=this.type&&(this.first=new Kb(b,e[1]),this.cb=new Kb(b,
e[2]));if(q){var a,c;a=0;for(c=q.length;a<c;a++)this.J.push(new Kb(b,q[a]))}}function r(b,e){this.type=b||V.gf;this.data=e||0;this.Of=null;this.type==V.gf&&(this.data=Math.floor(this.data))}e.prototype.Ka=function(){23===this.type&&(this.Ce=this.A.b.vn(this.Dh,this.A.hc.parent));this.first&&this.first.Ka();this.cb&&this.cb.Ka();this.xj&&this.xj.Ka();this.Jd&&this.Jd.Ka();if(this.J){var b,e;b=0;for(e=this.J.length;b<e;b++)this.J[b].Ka()}};e.prototype.ss=function(b){this.qa[0]=b;b=this.A.Ua();var e,
q;e=0;for(q=this.J.length;e<q;e++)this.J[e].get(b),this.qa[e+1]=b.data;this.A.Ra();this.fb.apply(this.b.rd,this.qa)};e.prototype.kn=function(b){var e=this.Ib.ma(),q=e.dd();if(!q.length)if(e.W.length)q=e.W;else{this.ph?b.Lb(""):b.ta(0);return}this.qa[0]=b;b.Of=this.Ib;b=this.A.Ua();var a,e=0;for(a=this.J.length;e<a;e++)this.J[e].get(b),this.qa[e+1]=b.data;e=this.A.oe;this.Jd&&(this.Jd.get(b),b.Za()&&(e=b.data,q=this.Ib.d));this.A.Ra();e%=q.length;0>e&&(e+=q.length);q=q[e];-1<this.qc?(b=0,this.Ib.F&&
(b=q.type.uf[this.Ib.Gd]),this.fb.apply(q.L[this.qc+b],this.qa)):this.fb.apply(q,this.qa)};e.prototype.cs=function(b){var e=this.Ib.ma(),q=e.dd();if(!q.length)if(e.W.length)q=e.W;else{this.ph?b.Lb(""):b.ta(0);return}e=this.A.oe;if(this.Jd){var a=this.A.Ua();this.Jd.get(a);if(a.Za()){e=a.data;q=this.Ib.d;e%=q.length;0>e&&(e+=q.length);q=q[e].Sa[this.rm];N(q)?b.Lb(q):b.B(q);this.A.Ra();return}this.A.Ra()}e%=q.length;0>e&&(e+=q.length);q=q[e];e=0;this.Ib.F&&(e=q.type.fi[this.Ib.Gd]);q=q.Sa[this.rm+e];
N(q)?b.Lb(q):b.B(q)};e.prototype.ds=function(b){b.type=V.gf;b.data=this.value};e.prototype.$r=function(b){b.type=V.ff;b.data=this.value};e.prototype.qs=function(b){b.type=V.String;b.data=this.value};e.prototype.ts=function(b){this.first.get(b);b.Za()&&(b.data=-b.data)};e.prototype.Ur=function(b){this.first.get(b);var e=this.A.Ua();this.cb.get(e);b.Za()&&e.Za()&&(b.data+=e.data,e.Df()&&b.Kf());this.A.Ra()};e.prototype.rs=function(b){this.first.get(b);var e=this.A.Ua();this.cb.get(e);b.Za()&&e.Za()&&
(b.data-=e.data,e.Df()&&b.Kf());this.A.Ra()};e.prototype.ks=function(b){this.first.get(b);var e=this.A.Ua();this.cb.get(e);b.Za()&&e.Za()&&(b.data*=e.data,e.Df()&&b.Kf());this.A.Ra()};e.prototype.Xr=function(b){this.first.get(b);var e=this.A.Ua();this.cb.get(e);b.Za()&&e.Za()&&(b.data/=e.data,b.Kf());this.A.Ra()};e.prototype.hs=function(b){this.first.get(b);var e=this.A.Ua();this.cb.get(e);b.Za()&&e.Za()&&(b.data%=e.data,e.Df()&&b.Kf());this.A.Ra()};e.prototype.os=function(b){this.first.get(b);var e=
this.A.Ua();this.cb.get(e);b.Za()&&e.Za()&&(b.data=Math.pow(b.data,e.data),e.Df()&&b.Kf());this.A.Ra()};e.prototype.Vr=function(b){this.first.get(b);var e=this.A.Ua();this.cb.get(e);b.Za()?e.Di()?b.Lb(b.data.toString()+e.data):b.data&&e.data?b.ta(1):b.ta(0):b.Di()&&(b.data=e.Di()?b.data+e.data:b.data+(Math.round(1E10*e.data)/1E10).toString());this.A.Ra()};e.prototype.ns=function(b){this.first.get(b);var e=this.A.Ua();this.cb.get(e);b.Za()&&e.Za()&&(b.data||e.data?b.ta(1):b.ta(0));this.A.Ra()};e.prototype.Wr=
function(b){this.first.get(b);b.data?this.cb.get(b):this.xj.get(b)};e.prototype.Yr=function(b){this.first.get(b);var e=this.A.Ua();this.cb.get(e);b.ta(b.data===e.data?1:0);this.A.Ra()};e.prototype.ls=function(b){this.first.get(b);var e=this.A.Ua();this.cb.get(e);b.ta(b.data!==e.data?1:0);this.A.Ra()};e.prototype.es=function(b){this.first.get(b);var e=this.A.Ua();this.cb.get(e);b.ta(b.data<e.data?1:0);this.A.Ra()};e.prototype.gs=function(b){this.first.get(b);var e=this.A.Ua();this.cb.get(e);b.ta(b.data<=
e.data?1:0);this.A.Ra()};e.prototype.as=function(b){this.first.get(b);var e=this.A.Ua();this.cb.get(e);b.ta(b.data>e.data?1:0);this.A.Ra()};e.prototype.bs=function(b){this.first.get(b);var e=this.A.Ua();this.cb.get(e);b.ta(b.data>=e.data?1:0);this.A.Ra()};e.prototype.Zr=function(b){var e=this.Ce.si();ea(e)?b.B(e):b.Lb(e)};Kb=e;r.prototype.Df=function(){return this.type===V.ff};r.prototype.Za=function(){return this.type===V.gf||this.type===V.ff};r.prototype.Di=function(){return this.type===V.String};
r.prototype.Kf=function(){this.Df()||(this.Di()&&(this.data=parseFloat(this.data)),this.type=V.ff)};r.prototype.ta=function(b){this.type=V.gf;this.data=Math.floor(b)};r.prototype.B=function(b){this.type=V.ff;this.data=b};r.prototype.Lb=function(b){this.type=V.String;this.data=b};r.prototype.op=function(b){ea(b)?(this.type=V.ff,this.data=b):N(b)?(this.type=V.String,this.data=b.toString()):(this.type=V.gf,this.data=0)};Nb=r;V={gf:0,ff:1,String:2}})();function W(e){this.b=e;this.Mb=[]}
W.prototype.Kb=function(){var e={},r,b,p,q,a,c,g,d;e.waits=[];var k=e.waits,h;r=0;for(b=this.Mb.length;r<b;r++){c=this.Mb[r];h={t:c.time,st:c.vp,s:c.Xl,ev:c.rf.S,sm:[],sols:{}};c.rf.Jc[c.Nb]&&(h.act=c.rf.Jc[c.Nb].S);p=0;for(q=c.Aa.length;p<q;p++)h.sm.push(c.Aa[p].S);for(a in c.Bb)if(c.Bb.hasOwnProperty(a)){g=this.b.p[parseInt(a,10)];d={sa:c.Bb[a].mj,insts:[]};p=0;for(q=c.Bb[a].Kd.length;p<q;p++)d.insts.push(c.Bb[a].Kd[p].uid);h.sols[g.S.toString()]=d}k.push(h)}return e};
W.prototype.oc=function(e){e=e.waits;var r,b,p,q,a,c,g,d,k,h,m;r=this.Mb.length=0;for(b=e.length;r<b;r++)if(c=e[r],d=this.b.Um[c.ev.toString()]){k=-1;p=0;for(q=d.Jc.length;p<q;p++)if(d.Jc[p].S===c.act){k=p;break}if(-1!==k){g={Bb:{},Aa:[],ek:!1};g.time=c.t;g.vp=c.st||"";g.Xl=!!c.s;g.rf=d;g.Nb=k;p=0;for(q=c.sm.length;p<q;p++)(d=this.b.ri(c.sm[p]))&&g.Aa.push(d);for(a in c.sols)if(c.sols.hasOwnProperty(a)&&(d=this.b.ri(parseInt(a,10)))){k=c.sols[a];h={mj:k.sa,Kd:[]};p=0;for(q=k.insts.length;p<q;p++)(m=
this.b.wf(k.insts[p]))&&h.Kd.push(m);g.Bb[d.index.toString()]=h}this.Mb.push(g)}}};
(function(){function e(){}function r(){}function b(){}var p=W.prototype;e.prototype.dq=function(){return!0};e.prototype.zm=function(){return!0};e.prototype.Bq=function(){return!0};e.prototype.cq=function(a){var b=this.b.vk(),d=b.R.Every_lastTime||0,e=this.b.Vb.da;"undefined"===typeof b.R.Every_seconds&&(b.R.Every_seconds=a);var h=b.R.Every_seconds;if(e>=d+h)return b.R.Every_lastTime=d+h,e>=b.R.Every_lastTime+.04&&(b.R.Every_lastTime=e),b.R.Every_seconds=a,!0;e<d-.1&&(b.R.Every_lastTime=e);return!1};
e.prototype.iq=function(a){return(a=this.b.Ag[a.toLowerCase()])&&a.yg};e.prototype.bq=function(){var a=this.b.yb();return a.fk?!1:!a.Pe};e.prototype.Mj=function(){return!0};e.prototype.qq=function(){return!0};e.prototype.Nj=function(){return!0};e.prototype.Cq=function(){return!0};e.prototype.Lj=function(){return!0};p.j=new e;r.prototype.gq=function(a){this.b.Lg||this.b.kg||(this.b.kg=a)};r.prototype.$p=function(a,b,d,e){if(b&&a&&(b=this.b.cn(a,b,d,e))){this.b.Pc++;var h;this.b.trigger(Object.getPrototypeOf(a.wa).j.Jj,
b);if(b.lc)for(d=0,e=b.siblings.length;d<e;d++)h=b.siblings[d],this.b.trigger(Object.getPrototypeOf(h.type.wa).j.Jj,h);this.b.Pc--;a=a.ma();a.ra=!1;a.d.length=1;a.d[0]=b;if(b.lc)for(d=0,e=b.siblings.length;d<e;d++)h=b.siblings[d],a=h.type.ma(),a.ra=!1,a.d.length=1,a.d[0]=h}};r.prototype.Qq=function(a,b){0===a.Gj?ea(b)?a.Ze(b):a.Ze(parseFloat(b)):1===a.Gj&&a.Ze(b.toString())};r.prototype.Xp=function(a,b){0===a.Gj?ea(b)?a.Ze(a.si()+b):a.Ze(a.si()+parseFloat(b)):1===a.Gj&&a.Ze(a.si()+b.toString())};
var q=[],a=[];r.prototype.Wq=function(c){if(!(0>c)){var b,d,e,h=this.b.yb(),m;m=q.length?q.pop():{Bb:{},Aa:[]};m.ek=!1;m.time=this.b.Vb.da+c;m.vp="";m.Xl=!1;m.rf=h.Sb;m.Nb=h.Nb+1;c=0;for(b=this.b.p.length;c<b;c++)e=this.b.p[c],d=e.ma(),d.ra&&-1===h.Sb.Aa.indexOf(e)||(m.Aa.push(e),e=void 0,e=a.length?a.pop():{Kd:[]},e.mj=!1,e.mj=d.ra,ra(e.Kd,d.d),m.Bb[c.toString()]=e);this.Mb.push(m);return!0}};p.Z=new r;b.prototype["int"]=function(a,b){N(b)?(a.ta(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ta(b)};
b.prototype["float"]=function(a,b){N(b)?(a.B(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.B(b)};b.prototype.random=function(a,b,d){void 0===d?a.B(Math.random()*b):a.B(Math.random()*(d-b)+b)};b.prototype.sqrt=function(a,b){a.B(Math.sqrt(b))};b.prototype.abs=function(a,b){a.B(Math.abs(b))};b.prototype.round=function(a,b){a.ta(Math.round(b))};b.prototype.floor=function(a,b){a.ta(Math.floor(b))};b.prototype.ceil=function(a,b){a.ta(Math.ceil(b))};b.prototype.sin=function(a,b){a.B(Math.sin(R(b)))};b.prototype.cos=
function(a,b){a.B(Math.cos(R(b)))};b.prototype.tan=function(a,b){a.B(Math.tan(R(b)))};b.prototype.asin=function(a,b){a.B(va(Math.asin(b)))};b.prototype.acos=function(a,b){a.B(va(Math.acos(b)))};b.prototype.atan=function(a,b){a.B(va(Math.atan(b)))};b.prototype.exp=function(a,b){a.B(Math.exp(b))};b.prototype.log10=function(a,b){a.B(Math.log(b)/Math.LN10)};b.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,e,h;d=2;for(e=arguments.length;d<e;d++)h=arguments[d],"number"===
typeof h&&b<h&&(b=h);a.B(b)};b.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,e,h;d=2;for(e=arguments.length;d<e;d++)h=arguments[d],"number"===typeof h&&b>h&&(b=h);a.B(b)};b.prototype.$d=function(a){a.B(this.b.$d)};b.prototype.Zf=function(a){a.B(this.b.Zf)};b.prototype.time=function(a){a.B(this.b.Vb.da)};b.prototype.Od=function(a){a.ta(this.b.Od)};b.prototype.Xi=function(a){a.ta(this.b.Xi)};b.prototype.pk=function(a){a.ta(this.b.pk)};b.prototype.m=function(a,b,d,e,h){a.B(va(Ba(b,
d,e,h)))};b.prototype.find=function(a,b,d){N(b)&&N(d)?a.ta(b.search(new RegExp(Ra(d),"i"))):a.ta(-1)};b.prototype.left=function(a,b,d){a.Lb(N(b)?b.substr(0,d):"")};b.prototype.right=function(a,b,d){a.Lb(N(b)?b.substr(b.length-d):"")};b.prototype.replace=function(a,b,d,e){N(b)&&N(d)&&N(e)?a.Lb(b.replace(new RegExp(Ra(d),"gi"),e)):a.Lb(N(b)?b:"")};b.prototype.trim=function(a,b){a.Lb(N(b)?b.trim():"")};b.prototype.qr=function(a){var b=Q(Math.random()*(arguments.length-1));a.op(arguments[b+1])};b.prototype.$j=
function(a){a.B(this.b.$j/1E3)};b.prototype.If=function(a){a.B(this.b.If)};p.Na=new b;p.hu=function(){var b,g,d,e,h,m,r=this.b.yb();b=0;for(d=this.Mb.length;b<d;b++){e=this.Mb[b];if(-1===e.time){if(!e.Xl)continue}else if(e.time>this.b.Vb.da)continue;r.Sb=e.rf;r.Nb=e.Nb;r.Db=0;for(g in e.Bb)e.Bb.hasOwnProperty(g)&&(h=this.b.p[parseInt(g,10)].ma(),m=e.Bb[g],h.ra=m.mj,ra(h.d,m.Kd),h=m,h.Kd.length=0,a.push(h));e.rf.gu();this.b.Zj(e.Aa);e.ek=!0}g=b=0;for(d=this.Mb.length;b<d;b++)e=this.Mb[b],this.Mb[g]=
e,e.ek?(Pa(e.Bb),e.Aa.length=0,q.push(e)):g++;this.Mb.length=g}})();
(function(){$a=function(e,b){var p=e[1],q=e[3],a=e[4],c=e[5],g=e[6],d=e[7],k=e[8];b.j||(b.j={});b.Z||(b.Z={});b.Na||(b.Na={});var h=b.j,m=b.Z,x=b.Na;q&&(h.ym=function(a,b){return Ob(this.x,a,b)},h.Su=function(a,b){return Ob(this.y,a,b)},h.Zu=function(){var a=this.i;this.Ca();var b=this.Ha;return!(b.right<a.kb||b.bottom<a.lb||b.left>a.ec||b.top>a.cc)},h.kq=function(){this.Ca();var a=this.Ha,b=this.b.za;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},h.lv=function(a,b,c){var d=this.ma(),
h=d.dd();if(!h.length)return!1;var e=h[0],f=e,g=Ia(e.x,e.y,b,c),k,m,q;k=1;for(m=h.length;k<m;k++)if(e=h[k],q=Ia(e.x,e.y,b,c),0===a&&q<g||1===a&&q>g)g=q,f=e;d.jh(f);return!0},m.Hm=function(a){this.x!==a&&(this.x=a,this.C())},m.Bv=function(a){this.y!==a&&(this.y=a,this.C())},m.xv=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.C()},m.yv=function(a,b){var c=a.Is(this);if(c){var d;c.yk?(d=c.yk(b,!0),c=c.yk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.C()}},m.dv=
function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.C())},m.cv=function(a,b){0!==b&&(this.x+=Math.cos(R(a))*b,this.y+=Math.sin(R(a))*b,this.C())},x.Pj=function(a){a.B(this.x)},x.Im=function(a){a.B(this.y)},x.$d=function(a){a.B(this.b.pi(this))});a&&(h.Ru=function(a,b){return Ob(this.width,a,b)},h.Ou=function(a,b){return Ob(this.height,a,b)},m.Tq=function(a){this.width!==a&&(this.width=a,this.C())},m.uv=function(a){this.height!==a&&(this.height=a,this.C())},m.zv=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.C()},x.Fv=function(a){a.B(this.width)},x.Uu=function(a){a.B(this.height)},x.Lu=function(a){this.Ca();a.B(this.Ha.left)},x.Nu=function(a){this.Ca();a.B(this.Ha.top)},x.Mu=function(a){this.Ca();a.B(this.Ha.right)},x.Ku=function(a){this.Ca();a.B(this.Ha.bottom)});c&&(h.Ju=function(a,b){return Ea(this.m,R(b))<=R(a)},h.Xu=function(a){return Ga(this.m,R(a))},h.Wu=function(a,b){var c=Aa(a),d=Aa(b),h=ya(this.m);return Ga(d,c)?Ga(h,c)&&
!Ga(h,d):!(!Ga(h,c)&&Ga(h,d))},m.Oq=function(a){a=R(wa(a));isNaN(a)||this.m===a||(this.m=a,this.C())},m.Nq=function(a){0===a||isNaN(a)||(this.m+=R(a),this.m=ya(this.m),this.C())},m.pv=function(a){0===a||isNaN(a)||(this.m-=R(a),this.m=ya(this.m),this.C())},m.qv=function(a,b){var c=Fa(this.m,R(b),R(a));isNaN(c)||this.m===c||(this.m=c,this.C())},m.rv=function(a,b,c){a=Fa(this.m,Math.atan2(c-this.y,b-this.x),R(a));isNaN(a)||this.m===a||(this.m=a,this.C())},m.Av=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.m===c||(this.m=c,this.C())},x.Iu=function(a){a.B(za(this.m))});p||(h.Pu=function(a,b,c){return Ob(this.Sa[a],b,c)},h.hq=function(a){return this.Sa[a]},h.mv=function(a,b){var c=this.ma(),d=c.dd();if(!d.length)return!1;var h=d[0],e=h,f=h.Sa[b],g,k,m;g=1;for(k=d.length;g<k;g++)if(h=d[g],m=h.Sa[b],0===a&&m<f||1===a&&m>f)f=m,e=h;c.jh(e);return!0},h.kv=function(a){var b,c,d,h,e;if(this.b.vk().wi){e=this.ma();if(e.ra)for(e.ra=!1,e.d.length=0,e.W.length=0,d=this.d,b=0,c=d.length;b<
c;b++)h=d[b],h.uid===a?e.W.push(h):e.d.push(h);else{d=b=0;for(c=e.d.length;b<c;b++)h=e.d[b],e.d[d]=h,h.uid===a?e.W.push(h):d++;e.d.length=d}this.Ud();return!!e.d.length}h=this.b.wf(a);if(!h)return!1;e=this.ma();if(!e.ra&&-1===e.d.indexOf(h))return!1;if(this.F)for(a=h.type.ya,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.jh(h),this.Ud(),!0}else if(h.type===this)return e.jh(h),this.Ud(),!0;return!1},h.Jj=function(){return!0},h.sq=function(){return!0},m.vv=function(a,b){var c=this.Sa;ea(c[a])?c[a]=
ea(b)?b:parseFloat(b):N(c[a])&&(c[a]=N(b)?b:b.toString())},m.Hu=function(a,b){var c=this.Sa;ea(c[a])?c[a]=ea(b)?c[a]+b:c[a]+parseFloat(b):N(c[a])&&(c[a]=N(b)?c[a]+b:c[a]+b.toString())},m.Cv=function(a,b){var c=this.Sa;ea(c[a])&&(c[a]=ea(b)?c[a]-b:c[a]-parseFloat(b))},m.Pq=function(a,b){this.Sa[a]=b?1:0},m.Dv=function(a){this.Sa[a]=1-this.Sa[a]},m.aq=function(){this.b.ue(this)},m.mq||(m.mq=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Oi(this,b,!0);this.Zc&&this.Zc();if(this.L)for(a=
0,b=this.L.length;a<b;++a)c=this.L[a],c.Zc&&c.Zc()}),x.Tu=function(a){var b=a.Of.d.length,c,d,h;c=0;for(d=this.b.Eb.length;c<d;c++)h=this.b.Eb[c],a.Of.F?0<=h.type.ya.indexOf(a.Of)&&b++:h.type===a.Of&&b++;a.ta(b)},x.ov=function(a){a.ta(a.Of.ma().dd().length)},x.Ev=function(a){a.ta(this.uid)},x.Vu=function(a){a.ta(this.xg())},x.Yp||(x.Yp=function(a){a.Lb(JSON.stringify(this.b.Sl(this,!0)))}));g&&(h.$u=function(){return this.visible},m.Sq=function(a){!a!==!this.visible&&(this.visible=a,this.b.ca=!0)},
h.Qu=function(a,b){return Ob(Wa(100*this.opacity),a,b)},m.wv=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ca=!0)},x.Opacity=function(a){a.B(Wa(100*this.opacity))});d&&(h.Yu=function(a){return a?this.i===a:!1},h.nv=function(a){var b=this.ma(),c=b.dd();if(!c.length)return!1;var d=c[0],h=d,e,f;e=1;for(f=c.length;e<f;e++)if(d=c[e],0===a){if(d.i.index>h.i.index||d.i.index===h.i.index&&d.kc()>h.kc())h=d}else if(d.i.index<h.i.index||d.i.index===h.i.index&&d.kc()<h.kc())h=
d;b.jh(h);return!0},m.nq=function(){var a=this.kc();a!==this.i.d.length-1&&(qa(this.i.d,a),this.i.d.push(this),this.b.ca=!0,this.i.fc=!0)},m.gv=function(){var a=this.kc();0!==a&&(qa(this.i.d,a),this.i.d.unshift(this),this.b.ca=!0,this.i.fc=!0)},m.hv=function(a){a&&a!=this.i&&(qa(this.i.d,this.kc()),this.i.fc=!0,this.i=a,this.ef=a.d.length,a.d.push(this),this.b.ca=!0)},m.Hv=function(a,b){var c=0===a;if(b){var d=b.Cs(this);if(d&&d.uid!==this.uid){this.i.index!==d.i.index&&(qa(this.i.d,this.kc()),this.i.fc=
!0,this.i=d.i,this.ef=d.i.d.length,d.i.d.push(this));var h=this.kc(),d=d.kc();qa(this.i.d,h);h<d&&d--;c&&d++;d===this.i.d.length?this.i.d.push(this):this.i.d.splice(d,0,this);this.i.fc=!0;this.b.ca=!0}}},x.bv=function(a){a.ta(this.i.Eo)},x.av=function(a){a.Lb(this.i.name)},x.Gv=function(a){a.ta(this.kc())});k&&(m.sv=function(a,b){if(this.b.q){var c=this.type.xk(b);if(!(0>c)){var d=1===a;this.Td[c]!==d&&(this.Td[c]=d,this.Rd(),this.b.ca=!0)}}},m.tv=function(a,b,c){if(this.b.q){var d=this.type.xk(a);
0>d||(a=this.type.I[d],d=this.Ea[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.q.Ms(a.jb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.gc&&(this.b.ca=!0))))}})};vb=function(){this.Wj=this.Tj=!0;this.type.Jh=!0;this.b.ca=!0;var e,b,p=this.Uj;e=0;for(b=p.length;e<b;++e)p[e](this)};wb=function(e){e&&this.Uj.push(e)};yb=function(){if(this.Tj){var e=this.Ha,b=this.xb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Gb*this.width,-this.Hb*this.height);this.m?(e.offset(-this.x,-this.y),b.qp(e,
this.m),b.offset(this.x,this.y),b.Vm(e)):b.sh(e);e.normalize();this.Tj=!1}};var e=new na(0,0,0,0);zb=function(){if(this.Wj&&this.yd){this.Ca();var r=this.type.Uh,b=this.Th,p=this.Ha;e.set(r.Hh(p.left),r.Ih(p.top),r.Hh(p.right),r.Ih(p.bottom));b.Tr(e)||(b.right<b.left?r.update(this,null,e):r.update(this,b,e),b.sr(e),this.Wj=!1)}};xb=function(e,b){return this.Ha.Rb(e,b)&&this.xb.Rb(e,b)?this.aa&&!this.aa.Cf()?(this.aa.of(this.width,this.height,this.m),this.aa.Rb(e-this.x,b-this.y)):!0:!1};rb=function(){this.type.Ej();
return this.He};Ab=function(){this.i.Sp();return this.ef};Bb=function(){this.V.length=0;var e,b;e=0;for(b=this.Td.length;e<b;e++)this.Td[e]&&this.V.push(this.type.I[e]);this.Up=!!this.V.length};sb=function(){return"Inst"+this.dp};cb=function(e){if(e&&e.lc&&e.type!=this){var b,p,q;b=0;for(p=e.siblings.length;b<p;b++)if(q=e.siblings[b],q.type==this)return q}e=this.ma().dd();return e.length?e[0]:null};db=function(e){var b=this.ma().dd();return b.length?b[e.xg()%b.length]:null};bb=function(){if(this.Yf&&
!this.F){var e,b;e=0;for(b=this.d.length;e<b;e++)this.d[e].He=e;var p=e,q=this.b.Eb;e=0;for(b=q.length;e<b;++e)q[e].type===this&&(q[e].He=p++);this.Yf=!1}};pb=function(e){if(e<this.d.length)return this.d[e];e-=this.d.length;var b=this.b.Eb,p,q;p=0;for(q=b.length;p<q;++p)if(b[p].type===this){if(0===e)return b[p];--e}return null};eb=function(){return this.pe[this.Dd]};fb=function(){this.Dd++;this.Dd===this.pe.length?this.pe.push(new ab(this)):this.pe[this.Dd].ra=!0};gb=function(){this.Dd++;this.Dd===
this.pe.length&&this.pe.push(new ab(this));var e=this.pe[this.Dd],b=this.pe[this.Dd-1];b.ra?e.ra=!0:(e.ra=!1,ra(e.d,b.d),ra(e.W,b.W))};hb=function(){this.Dd--};ib=function(e){var b,p,q,a,c,g=0;if(!this.F)for(b=0,p=this.ya.length;b<p;b++)for(c=this.ya[b],q=0,a=c.Ma.length;q<a;q++){if(e===c.Ma[q].name)return this.R.lastBehIndex=g,c.Ma[q];g++}b=0;for(p=this.Ma.length;b<p;b++){if(e===this.Ma[b].name)return this.R.lastBehIndex=g,this.Ma[b];g++}return null};jb=function(e){return this.oi(e)?this.R.lastBehIndex:
-1};kb=function(e){var b,p;b=0;for(p=this.I.length;b<p;b++)if(this.I[b].name===e)return b;return-1};ob=function(){if(this.lc&&!this.F){var e,b,p,q,a,c,g;this.Ej();c=this.ma();var d=c.ra,k=(e=this.b.yb())&&e.Sb&&e.Sb.Sc;e=0;for(b=this.Qb.length;e<b;e++)if(a=this.Qb[e],a!==this&&(a.Ej(),g=a.ma(),g.ra=d,!d)){g.d.length=c.d.length;p=0;for(q=c.d.length;p<q;p++)g.d[p]=a.wn(c.d[p].He);if(k)for(g.W.length=c.W.length,p=0,q=c.W.length;p<q;p++)g.W[p]=a.wn(c.W[p].He)}}};qb=function(){return"Type"+this.S};Ob=
function(e,b,p){if("undefined"===typeof e||"undefined"===typeof p)return!1;switch(b){case 0:return e===p;case 1:return e!==p;case 2:return e<p;case 3:return e<=p;case 4:return e>p;case 5:return e>=p;default:return!1}}})();var Wb={};function Zb(e){this.b=e}
(function(){function e(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function r(a){a=a.toLowerCase();return O.hasOwnProperty(a)&&O[a].length?O[a][0].jc():t.destination}function b(){return t.createGain?t.createGain():t.createGainNode()}function p(a){return t.createDelay?t.createDelay(a):t.createDelayNode(a)}function q(a){a.start?a.start(0):a.noteOn(0)}function a(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function c(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function g(a,
c,f,d,h,e){this.type="filter";this.ib=[a,c,f,d,h,e];this.T=b();this.H=b();this.H.gain.value=e;this.D=b();this.D.gain.value=1-e;this.Oa=t.createBiquadFilter();this.Oa.type="number"===typeof this.Oa.type?a:jc[a];this.Oa.frequency.value=c;this.Oa.detune&&(this.Oa.detune.value=f);this.Oa.Q.value=d;this.Oa.gain.value=h;this.T.connect(this.Oa);this.T.connect(this.D);this.Oa.connect(this.H)}function d(a,c,f){this.type="delay";this.ib=[a,c,f];this.T=b();this.H=b();this.H.gain.value=f;this.D=b();this.D.gain.value=
1-f;this.ah=b();this.uc=p(a);this.uc.delayTime.value=a;this.bi=b();this.bi.gain.value=c;this.T.connect(this.ah);this.T.connect(this.D);this.ah.connect(this.H);this.ah.connect(this.uc);this.uc.connect(this.bi);this.bi.connect(this.ah)}function k(a,c,f,d){this.type="convolve";this.ib=[c,f,d];this.T=b();this.H=b();this.H.gain.value=f;this.D=b();this.D.gain.value=1-f;this.ze=t.createConvolver();a&&(this.ze.normalize=c,this.ze.buffer=a);this.T.connect(this.ze);this.T.connect(this.D);this.ze.connect(this.H)}
function h(a,c,f,d,h){this.type="flanger";this.ib=[a,c,f,d,h];this.T=b();this.D=b();this.D.gain.value=1-h/2;this.H=b();this.H.gain.value=h/2;this.gi=b();this.gi.gain.value=d;this.uc=p(a+c);this.uc.delayTime.value=a;this.bb=t.createOscillator();this.bb.frequency.value=f;this.Yb=b();this.Yb.gain.value=c;this.T.connect(this.uc);this.T.connect(this.D);this.uc.connect(this.H);this.uc.connect(this.gi);this.gi.connect(this.uc);this.bb.connect(this.Yb);this.Yb.connect(this.uc.delayTime);q(this.bb)}function m(a,
c,f,d,h,e){this.type="phaser";this.ib=[a,c,f,d,h,e];this.T=b();this.D=b();this.D.gain.value=1-e/2;this.H=b();this.H.gain.value=e/2;this.Oa=t.createBiquadFilter();this.Oa.type="number"===typeof this.Oa.type?7:"allpass";this.Oa.frequency.value=a;this.Oa.detune&&(this.Oa.detune.value=c);this.Oa.Q.value=f;this.bb=t.createOscillator();this.bb.frequency.value=h;this.Yb=b();this.Yb.gain.value=d;this.T.connect(this.Oa);this.T.connect(this.D);this.Oa.connect(this.H);this.bb.connect(this.Yb);this.Yb.connect(this.Oa.frequency);
q(this.bb)}function x(a){this.type="gain";this.ib=[a];this.U=b();this.U.gain.value=a}function n(a,c){this.type="tremolo";this.ib=[a,c];this.U=b();this.U.gain.value=1-c/2;this.bb=t.createOscillator();this.bb.frequency.value=a;this.Yb=b();this.Yb.gain.value=c/2;this.bb.connect(this.Yb);this.Yb.connect(this.U.gain);q(this.bb)}function B(a,c){this.type="ringmod";this.ib=[a,c];this.T=b();this.H=b();this.H.gain.value=c;this.D=b();this.D.gain.value=1-c;this.qh=b();this.qh.gain.value=0;this.bb=t.createOscillator();
this.bb.frequency.value=a;this.bb.connect(this.qh.gain);q(this.bb);this.T.connect(this.qh);this.T.connect(this.D);this.qh.connect(this.H)}function w(a,c,f,d,h){this.type="distortion";this.ib=[a,c,f,d,h];this.T=b();this.gj=b();this.fj=b();this.ou(f,Math.pow(10,d/20));this.H=b();this.H.gain.value=h;this.D=b();this.D.gain.value=1-h;this.Hj=t.createWaveShaper();this.$h=new Float32Array(65536);this.zs(a,c);this.Hj.$h=this.$h;this.T.connect(this.gj);this.T.connect(this.D);this.gj.connect(this.Hj);this.Hj.connect(this.fj);
this.fj.connect(this.H)}function l(a,b,c,f,d){this.type="compressor";this.ib=[a,b,c,f,d];this.U=t.createDynamicsCompressor();try{this.U.threshold.value=a,this.U.knee.value=b,this.U.ratio.value=c,this.U.attack.value=f,this.U.release.value=d}catch(h){}}function v(a,b){this.type="analyser";this.ib=[a,b];this.U=t.createAnalyser();this.U.fftSize=a;this.U.smoothingTimeConstant=b;this.xs=new Float32Array(this.U.frequencyBinCount);this.tp=new Uint8Array(a);this.ih=0}function C(){this.G=null;this.Qi=0;this.qe=
[];this.ll=this.Gi=this.Fi=0}function f(a,c){this.src=a;this.P=E;this.Qc=c;this.Qm=!1;var f=this;this.jl=this.xl=null;this.Rf=[];this.nj=0;this.vm=this.mk=this.yp=this.bj=!1;1===E&&c&&(this.P=0,this.xl=b());this.xe=this.ea=null;var d;switch(this.P){case 0:this.ea=new Audio;this.ea.addEventListener("canplaythrough",function(){f.vm=!0});1===E&&t.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.yp=!0,this.ea.addEventListener("canplay",function(){f.jl||(f.jl=t.createMediaElementSource(f.ea),
f.jl.connect(f.xl))}));this.ea.autoplay=!1;this.ea.Sv="auto";this.ea.src=a;break;case 1:d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){f.xe=d.response;f.yr()};d.onerror=function(){f.mk=!0};d.send();break;case 2:this.ea=!0;break;case 3:this.ea=!0}}function s(a,c){var f=this;this.tag=c;this.$b=this.cd=!0;this.src=a.src;this.buffer=a;this.P=E;this.Qc=a.Qc;this.playbackRate=1;this.zl=!0;this.Ac=this.Md=!1;this.Jb=0;this.Jg=this.Ef=this.gd=!1;this.volume=1;this.Le=
1===Y&&!this.Qc||2===Y;this.Nf=1;this.startTime=this.Le?z.Vb.da:z.vd.da;this.Ja=this.Pa=null;this.jd=!1;this.Ia=null;this.Ro=this.Qo=this.Po=this.Oo=this.To=this.So=0;this.k=null;var d=!1;1!==this.P||0!==this.buffer.P||this.buffer.yp||(this.P=0);switch(this.P){case 0:this.Qc?(this.k=a.ea,d=!a.Qm,a.Qm=!0):(this.k=new Audio,this.k.autoplay=!1,this.k.src=a.ea.src,d=!0);d&&this.k.addEventListener("ended",function(){I=f.tag;f.$b=!0;z.trigger(Zb.prototype.j.Kj,L)});break;case 1:this.Pa=b();this.Pa.connect(r(c));
1===this.buffer.P?a.ea&&(this.k=t.createBufferSource(),this.k.buffer=a.ea,this.k.connect(this.Pa)):(this.k=this.buffer.ea,this.buffer.xl.connect(this.Pa));break;case 2:this.k=new window.Media(F+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(f.zl=!0,f.$b=!0,I=f.tag,z.trigger(Zb.prototype.j.Kj,L))});break;case 3:this.k=!0}}function H(a,b){O.hasOwnProperty(a)?O[a].push(b):O[a]=[b];var c,f,d,h,e=t.destination;if(O.hasOwnProperty(a)&&(d=O[a],d.length))for(e=d[0].jc(),c=0,f=d.length;c<
f;c++)h=d[c],c+1===f?h.rc(t.destination):h.rc(d[c+1].jc());Ca.length=0;if(a.length)for(c=0,f=y.length;c<f;c++)d=y[c],Xa(a,d.tag)&&Ca.push(d);else M&&!M.Ge()&&(Ca.length=1,Ca[0]=M);c=0;for(f=Ca.length;c<f;c++)Ca[c].cu(e);xa&&lb===a&&(xa.disconnect(),xa.connect(e))}function D(){}function u(){}var T=Zb.prototype;T.La=function(a){this.wa=a;this.b=a.b};T.La.prototype.ba=function(){};var z=null,L=null,I="",F="",E=0,t=null,U=[],y=[],M=null,A=!1,Y=0,J=!1,K=1,P=0,Da=0,mb=1,nb=1,fc=10,gc=1E4,hc=1,xa=null,lb=
"",Ja=!1,Ka=[],O={},jc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");g.prototype.rc=function(a){this.H.disconnect();this.H.connect(a);this.D.disconnect();this.D.connect(a)};g.prototype.remove=function(){this.T.disconnect();this.Oa.disconnect();this.H.disconnect();this.D.disconnect()};g.prototype.jc=function(){return this.T};d.prototype.rc=function(a){this.H.disconnect();this.H.connect(a);this.D.disconnect();this.D.connect(a)};d.prototype.remove=function(){this.T.disconnect();
this.ah.disconnect();this.uc.disconnect();this.bi.disconnect();this.H.disconnect();this.D.disconnect()};d.prototype.jc=function(){return this.T};k.prototype.rc=function(a){this.H.disconnect();this.H.connect(a);this.D.disconnect();this.D.connect(a)};k.prototype.remove=function(){this.T.disconnect();this.ze.disconnect();this.H.disconnect();this.D.disconnect()};k.prototype.jc=function(){return this.T};h.prototype.rc=function(a){this.D.disconnect();this.D.connect(a);this.H.disconnect();this.H.connect(a)};
h.prototype.remove=function(){this.T.disconnect();this.uc.disconnect();this.bb.disconnect();this.Yb.disconnect();this.D.disconnect();this.H.disconnect();this.gi.disconnect()};h.prototype.jc=function(){return this.T};m.prototype.rc=function(a){this.D.disconnect();this.D.connect(a);this.H.disconnect();this.H.connect(a)};m.prototype.remove=function(){this.T.disconnect();this.Oa.disconnect();this.bb.disconnect();this.Yb.disconnect();this.D.disconnect();this.H.disconnect()};m.prototype.jc=function(){return this.T};
x.prototype.rc=function(a){this.U.disconnect();this.U.connect(a)};x.prototype.remove=function(){this.U.disconnect()};x.prototype.jc=function(){return this.U};n.prototype.rc=function(a){this.U.disconnect();this.U.connect(a)};n.prototype.remove=function(){this.bb.disconnect();this.Yb.disconnect();this.U.disconnect()};n.prototype.jc=function(){return this.U};B.prototype.rc=function(a){this.H.disconnect();this.H.connect(a);this.D.disconnect();this.D.connect(a)};B.prototype.remove=function(){this.bb.disconnect();
this.qh.disconnect();this.T.disconnect();this.H.disconnect();this.D.disconnect()};B.prototype.jc=function(){return this.T};w.prototype.ou=function(a,b){.01>a&&(a=.01);this.gj.gain.value=a;this.fj.gain.value=Math.pow(1/a,.6)*b};w.prototype.shape=function(a,b,c){var f=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+f*(1-Math.exp(-(1/f)*(a-b)));return b*c};w.prototype.zs=function(a,b){for(var c=Math.pow(10,a/20),f=Math.pow(10,b/20),d=0,h=0;32768>h;++h)d=h/32768,d=this.shape(d,c,f),this.$h[32768+h]=d,this.$h[32768-
h-1]=-d};w.prototype.rc=function(a){this.H.disconnect();this.H.connect(a);this.D.disconnect();this.D.connect(a)};w.prototype.remove=function(){this.T.disconnect();this.gj.disconnect();this.Hj.disconnect();this.fj.disconnect();this.H.disconnect();this.D.disconnect()};w.prototype.jc=function(){return this.T};l.prototype.rc=function(a){this.U.disconnect();this.U.connect(a)};l.prototype.remove=function(){this.U.disconnect()};l.prototype.jc=function(){return this.U};v.prototype.eb=function(){this.U.getFloatFrequencyData(this.xs);
this.U.getByteTimeDomainData(this.tp);for(var a=this.U.fftSize,b=0,c=this.ih=0,f=0;b<a;b++)f=(this.tp[b]-128)/128,0>f&&(f=-f),this.ih<f&&(this.ih=f),c+=f*f;this.ih=e(this.ih);e(Math.sqrt(c/a))};v.prototype.rc=function(a){this.U.disconnect();this.U.connect(a)};v.prototype.remove=function(){this.U.disconnect()};v.prototype.jc=function(){return this.U};C.prototype.rh=function(a){if(this.G=a)this.Fi=this.G.x,this.Gi=this.G.y;this.qe.length=0};C.prototype.vi=function(){return!!this.G};C.prototype.eb=function(a){this.G&&
0!==a&&(this.ll=Ba(this.Fi,this.Gi,this.G.x,this.G.y),a=Ia(this.Fi,this.Gi,this.G.x,this.G.y)/a,4>this.qe.length||this.qe.shift(),this.qe.push(a),this.Fi=this.G.x,this.Gi=this.G.y)};C.prototype.zn=function(){if(!this.qe.length)return 0;var a,b,c=0;a=0;for(b=this.qe.length;a<b;a++)c+=this.qe[a];return c/this.qe.length};C.prototype.Ck=function(){return Math.cos(this.ll)*this.zn()};C.prototype.Dk=function(){return Math.sin(this.ll)*this.zn()};var ic=!1;f.prototype.yr=function(){if(!this.ea&&this.xe){var a=
this;if(t.decodeAudioData)t.decodeAudioData(this.xe,function(b){a.ea=b;a.xe=null;var c,f,d;if(da(a.cj)||J)da(a.Vh)||(c=a.Vh.ze,c.normalize=a.Do,c.buffer=b);else if(a.Rf.length){c=0;for(f=a.Rf.length;c<f;c++){b=a.Rf[c];d=new s(a,b.Dp);d.Vl(!0);if("undefined"!==typeof b.Fo&&(b.G=z.wf(b.Fo),!b.G))continue;if(b.G){var h=Ha(b.G.x,b.G.y,-b.G.i.Qa(),P,Da,!0),e=Ha(b.G.x,b.G.y,-b.G.i.Qa(),P,Da,!1);d.Ul(h,e,va(b.G.m-b.G.i.Qa()),b.Hk,b.nl,b.ql);d.rh(b.G)}else d.Ul(b.x,b.y,b.Zq,b.Hk,b.nl,b.ql);d.play(a.hl,a.um,
a.nj);a.bj&&d.pause();y.push(d)}a.Rf.length=0}else d=new s(a,a.cj),d.play(a.hl,a.um,a.nj),a.bj&&d.pause(),y.push(d)},function(){a.mk=!0});else if(this.ea=t.createBuffer(this.xe,!1),this.xe=null,da(this.cj)||J)da(this.Vh)||(b=this.Vh.ze,b.normalize=this.Do,b.buffer=this.ea);else{var b=new s(this,this.cj);b.play(this.hl,this.um,this.nj);this.bj&&b.pause();y.push(b)}}};f.prototype.Kn=function(){switch(this.P){case 0:var a=4<=this.ea.readyState;a&&(this.vm=!0);return a||this.vm;case 1:return!!this.xe||
!!this.ea;case 2:return!0;case 3:return!0}return!1};f.prototype.wt=function(){switch(this.P){case 0:return this.Kn();case 1:return!!this.ea;case 2:return!0;case 3:return!0}return!1};f.prototype.ht=function(){switch(this.P){case 0:return!!this.ea.error;case 1:return this.mk}return!1};s.prototype.Ge=function(){var a;switch(this.P){case 0:return this.k.ended;case 1:if(1===this.buffer.P){if(!this.cd&&!this.$b&&this.k.loop||this.Ac)return!1;a=this.Le?z.Vb.da:z.vd.da;return a-this.startTime>this.buffer.ea.duration}return this.k.ended;
case 2:return this.zl;case 3:!0}return!0};s.prototype.mr=function(){return this.cd||this.$b?!0:this.Ge()};s.prototype.Vl=function(a){1===E&&(!this.jd&&a?this.Pa&&(this.Ja||(this.Ja=t.createPanner(),this.Ja.panningModel="number"===typeof this.Ja.panningModel?mb:["equalpower","HRTF","soundfield"][mb],this.Ja.distanceModel="number"===typeof this.Ja.distanceModel?nb:["linear","inverse","exponential"][nb],this.Ja.refDistance=fc,this.Ja.maxDistance=gc,this.Ja.rolloffFactor=hc),this.Pa.disconnect(),this.Pa.connect(this.Ja),
this.Ja.connect(r(this.tag)),this.jd=!0):this.jd&&!a&&this.Pa&&(this.Ja.disconnect(),this.Pa.disconnect(),this.Pa.connect(r(this.tag)),this.jd=!1))};s.prototype.Ul=function(a,b,c,f,d,h){this.jd&&1===E&&(this.Ja.setPosition(a,b,0),this.Ja.setOrientation(Math.cos(R(c)),Math.sin(R(c)),0),this.Ja.coneInnerAngle=f,this.Ja.coneOuterAngle=d,this.Ja.coneOuterGain=h,this.So=a,this.To=b,this.Oo=c,this.Po=f,this.Qo=d,this.Ro=h)};s.prototype.rh=function(a){this.jd&&1===E&&(this.Ia||(this.Ia=new C),this.Ia.rh(a))};
s.prototype.eb=function(a){if(this.jd&&1===E&&this.Ia&&this.Ia.vi()&&this.Bf()){this.Ia.eb(a);a=this.Ia.G;var b=Ha(a.x,a.y,-a.i.Qa(),P,Da,!0),c=Ha(a.x,a.y,-a.i.Qa(),P,Da,!1);this.Ja.setPosition(b,c,0);b=0;"undefined"!==typeof this.Ia.G.m&&(b=a.m-a.i.Qa(),this.Ja.setOrientation(Math.cos(b),Math.sin(b),0));b=Ha(this.Ia.Ck(),this.Ia.Dk(),-a.i.Qa(),0,0,!0);c=Ha(this.Ia.Ck(),this.Ia.Dk(),-a.i.Qa(),0,0,!1);this.Ja.setVelocity(b,c,0)}};s.prototype.play=function(b,c,f){var d=this.k;this.gd=b;this.volume=
c;f=f||0;switch(this.P){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==c*K&&(d.volume=c*K);d.loop!==b&&(d.loop=b);d.muted&&(d.muted=!1);if(d.currentTime!==f)try{d.currentTime=f}catch(h){}if(this.Qc&&Ja&&!z.yc)Ka.push(this);else try{this.k.play()}catch(e){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",e)}break;case 1:this.muted=!1;this.Nf=1;if(1===this.buffer.P)this.cd||(this.k=t.createBufferSource(),this.k.buffer=this.buffer.ea,this.k.connect(this.Pa)),
this.k.loop=b,this.Pa.gain.value=c*K,0===f?q(this.k):a(this.k,f,this.Ee());else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==b&&(d.loop=b);this.Pa.gain.value=c*K;if(d.currentTime!==f)try{d.currentTime=f}catch(g){}this.Qc&&Ja&&!z.yc?Ka.push(this):d.play()}break;case 2:(!this.cd&&this.$b||0!==f)&&d.seekTo(f);d.play();this.zl=!1;break;case 3:z.gb?AppMobi.context.playSound(this.src,b):AppMobi.player.playSound(this.src,b)}this.playbackRate=1;this.startTime=(this.Le?z.Vb.da:z.vd.da)-f;this.Ac=this.$b=
this.cd=!1};s.prototype.stop=function(){switch(this.P){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.P?c(this.k):this.k.paused||this.k.pause();break;case 2:this.k.stop();break;case 3:z.gb&&AppMobi.context.stopSound(this.src)}this.$b=!0;this.Ac=!1};s.prototype.pause=function(){if(!(this.cd||this.$b||this.Ge()||this.Ac)){switch(this.P){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.P?(this.Jb=this.Ak(),this.gd&&(this.Jb%=this.Ee()),c(this.k)):this.k.paused||this.k.pause();
break;case 2:this.k.pause();break;case 3:z.gb&&AppMobi.context.stopSound(this.src)}this.Ac=!0}};s.prototype.fu=function(){if(!(this.cd||this.$b||this.Ge())&&this.Ac){switch(this.P){case 0:this.k.play();break;case 1:1===this.buffer.P?(this.k=t.createBufferSource(),this.k.buffer=this.buffer.ea,this.k.connect(this.Pa),this.k.loop=this.gd,this.Pa.gain.value=K*this.volume*this.Nf,this.startTime=(this.Le?z.Vb.da:z.vd.da)-this.Jb,a(this.k,this.Jb,this.Ee())):this.k.play();break;case 2:this.k.play();break;
case 3:z.gb&&AppMobi.context.resumeSound(this.src)}this.Ac=!1}};s.prototype.seek=function(a){if(!(this.cd||this.$b||this.Ge()))switch(this.P){case 0:try{this.k.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.P)this.Ac?this.Jb=a:(this.pause(),this.Jb=a,this.fu());else try{this.k.currentTime=a}catch(c){}break;case 3:z.gb&&AppMobi.context.seekSound(this.src,a)}};s.prototype.cu=function(a){1===this.P&&(this.jd?(this.Ja.disconnect(),this.Ja.connect(a)):(this.Pa.disconnect(),this.Pa.connect(a)))};
s.prototype.Ee=function(){switch(this.P){case 0:if("undefined"!==typeof this.k.duration)return this.k.duration;break;case 1:return this.buffer.ea.duration;case 2:return this.k.getDuration();case 3:if(z.gb)return AppMobi.context.getDurationSound(this.src)}return 0};s.prototype.Ak=function(){var a=this.Ee(),b=0;switch(this.P){case 0:"undefined"!==typeof this.k.currentTime&&(b=this.k.currentTime);break;case 1:if(1===this.buffer.P){if(this.Ac)return this.Jb;b=(this.Le?z.Vb.da:z.vd.da)-this.startTime}else"undefined"!==
typeof this.k.currentTime&&(b=this.k.currentTime);break;case 3:z.gb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.gd&&b>a&&(b=a);return b};s.prototype.Bf=function(){return!this.Ac&&!this.cd&&!this.$b&&!this.Ge()};s.prototype.Bu=function(){var a=this.volume*K;switch(this.P){case 0:this.k.volume&&this.k.volume!==a&&(this.k.volume=a);break;case 1:this.Pa.gain.value=a*this.Nf}};s.prototype.di=function(a){switch(this.P){case 0:this.k.muted!==!!a&&(this.k.muted=!!a);break;case 1:this.Nf=a?0:
1,this.Pa.gain.value=K*this.volume*this.Nf}};s.prototype.pu=function(){this.Ef=!0;this.di(this.Ef||this.Jg)};s.prototype.mp=function(a){this.Jg=!!a;this.di(this.Ef||this.Jg)};s.prototype.Qp=function(){var a=this.playbackRate;this.Le&&(a*=z.Zf);switch(this.P){case 0:this.k.playbackRate!==a&&(this.k.playbackRate=a);break;case 1:1===this.buffer.P?this.k.playbackRate.value!==a&&(this.k.playbackRate.value=a):this.k.playbackRate!==a&&(this.k.playbackRate=a)}};s.prototype.ru=function(b){switch(this.P){case 0:b?
this.Bf()?(this.k.pause(),this.Md=!0):this.Md=!1:this.Md&&this.k.play();break;case 1:b?this.Bf()?(1===this.buffer.P?(this.Jb=this.Ak(),this.gd&&(this.Jb%=this.Ee()),c(this.k)):this.k.pause(),this.Md=!0):this.Md=!1:this.Md&&(1===this.buffer.P?(this.k=t.createBufferSource(),this.k.buffer=this.buffer.ea,this.k.connect(this.Pa),this.k.loop=this.gd,this.Pa.gain.value=K*this.volume*this.Nf,this.startTime=(this.Le?z.Vb.da:z.vd.da)-this.Jb,a(this.k,this.Jb,this.Ee())):this.k.play());break;case 2:b?this.Bf()?
(this.k.pause(),this.Md=!0):this.Md=!1:this.Md&&this.k.play()}};T.Ba=function(a){this.type=a;z=this.b=a.b;L=this;this.zb=null;this.Ug=-600;!(this.b.Ei||this.b.xi&&(this.b.Fg||this.b.yi))||this.b.Gg||this.b.na||(Ja=!0);t=null;"undefined"!==typeof AudioContext?(E=1,t=new AudioContext):"undefined"!==typeof webkitAudioContext&&(E=1,t=new webkitAudioContext);(this.b.Ei&&1===E||Ja)&&document.addEventListener("touchstart",function(){var a,b,c;!ic&&t&&(a=t.createBuffer(1,1,22050),b=t.createBufferSource(),
b.buffer=a,b.connect(t.destination),q(b),ic=!0);if(Ja){if(!J)for(a=0,b=Ka.length;a<b;++a)c=Ka[a],c.$b||c.Ac||c.k.play();Ka.length=0}},!0);1!==E&&(this.b.zc&&"undefined"!==typeof window.Media?E=2:this.b.zf&&(E=3));2===E&&(F=location.href,a=F.lastIndexOf("/"),-1<a&&(F=F.substr(0,a+1)),F=F.replace("file://",""));if(this.b.Mn&&this.b.xt&&"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.ue(this);
else{if(this.b.gb)A=this.b.xi;else try{A=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){A=!1}this.b.zj(this)}};var fa=T.Ba.prototype;fa.ba=function(){this.b.nf=this;Y=this.r[0];this.Nd=this.r[1];this.Ut=0!==this.r[2];mb=this.r[3];nb=this.r[4];this.Ug=-this.r[5];fc=this.r[6];gc=this.r[7];hc=this.r[8];this.zb=new C;1===E&&(t.listener.speedOfSound=this.r[9],t.listener.dopplerFactor=this.r[10],t.listener.setPosition(this.b.O/2,this.b.N/2,this.Ug),t.listener.setOrientation(0,0,1,0,-1,
0),window.c2OnAudioMicStream=function(a,b){xa&&xa.disconnect();lb=b.toLowerCase();xa=t.createMediaStreamSource(a);xa.connect(r(lb))});this.b.Pm(function(a){L.Rt(a)});var a=this;this.b.Nm(function(b){a.rl(b)})};fa.rl=function(a){var b,c,f;b=0;for(c=y.length;b<c;b++)f=y[b],f.Ia&&f.Ia.G===a&&(f.Ia.G=null,f.jd&&f.Bf()&&f.gd&&f.stop());this.zb.G===a&&(this.zb.G=null)};fa.Kb=function(){var a={silent:J,masterVolume:K,listenerZ:this.Ug,listenerUid:this.zb.vi()?this.zb.G.uid:-1,playing:[],effects:{}},b=a.playing,
c,f,d,h,e,g;c=0;for(f=y.length;c<f;c++)d=y[c],!d.Bf()||3===this.Nd||d.Qc&&1===this.Nd||!d.Qc&&2===this.Nd||(h=d.Ak(),d.gd&&(h%=d.Ee()),h={tag:d.tag,buffersrc:d.buffer.src,is_music:d.Qc,playbackTime:h,volume:d.volume,looping:d.gd,muted:d.Ef,playbackRate:d.playbackRate,paused:d.Ac,resume_position:d.Jb},d.jd&&(h.pan={},g=h.pan,d.Ia&&d.Ia.vi()?g.objUid=d.Ia.G.uid:(g.x=d.So,g.y=d.To,g.a=d.Oo),g.ia=d.Po,g.oa=d.Qo,g.og=d.Ro),b.push(h));b=a.effects;for(e in O)if(O.hasOwnProperty(e)){d=[];c=0;for(f=O[e].length;c<
f;c++)d.push({type:O[e][c].type,params:O[e][c].ib});b[e]=d}return a};var La=[];fa.oc=function(a){var b=a.silent;K=a.masterVolume;this.Ug=a.listenerZ;this.zb.rh(null);var c=a.listenerUid;-1!==c&&(this.zb.Qi=c,La.push(this.zb));var c=a.playing,f,e,q,p,r,s,L,D,t,u,z;if(3!==this.Nd)for(f=0,e=y.length;f<e;f++)t=y[f],t.Qc&&1===this.Nd||(t.Qc||2!==this.Nd)&&t.stop();for(r in O)if(O.hasOwnProperty(r))for(f=0,e=O[r].length;f<e;f++)O[r][f].remove();Pa(O);for(r in a.effects)if(a.effects.hasOwnProperty(r))for(s=
a.effects[r],f=0,e=s.length;f<e;f++)switch(q=s[f].type,u=s[f].params,q){case "filter":H(r,new g(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "delay":H(r,new d(u[0],u[1],u[2]));break;case "convolve":q=u[2];t=this.ni(q,!1);t.ea?q=new k(t.ea,u[0],u[1],q):(q=new k(null,u[0],u[1],q),t.Do=u[0],t.Vh=q);H(r,q);break;case "flanger":H(r,new h(u[0],u[1],u[2],u[3],u[4]));break;case "phaser":H(r,new m(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "gain":H(r,new x(u[0]));break;case "tremolo":H(r,new n(u[0],u[1]));break;
case "ringmod":H(r,new B(u[0],u[1]));break;case "distortion":H(r,new w(u[0],u[1],u[2],u[3],u[4]));break;case "compressor":H(r,new l(u[0],u[1],u[2],u[3],u[4]));break;case "analyser":H(r,new v(u[0],u[1]))}f=0;for(e=c.length;f<e;f++)3===this.Nd||(a=c[f],q=a.buffersrc,p=a.is_music,r=a.tag,s=a.playbackTime,L=a.looping,D=a.volume,z=(u=a.pan)&&u.hasOwnProperty("objUid")?u.objUid:-1,p&&1===this.Nd)||!p&&2===this.Nd||((t=this.sn(q,r,p,L,D))?(t.Jb=a.resume_position,t.Vl(!!u),t.play(L,D,s),t.Qp(),t.Bu(),t.di(t.Ef||
t.Jg),a.paused&&t.pause(),a.muted&&t.pu(),t.di(t.Ef||t.Jg),u&&(-1!==z?(t.Ia=t.Ia||new C,t.Ia.Qi=z,La.push(t.Ia)):t.Ul(u.x,u.y,u.a,u.ia,u.oa,u.og))):(t=this.ni(q,p),t.nj=s,t.bj=a.paused,u&&(-1!==z?t.Rf.push({Fo:z,Hk:u.ia,nl:u.oa,ql:u.og,Dp:r}):t.Rf.push({x:u.x,y:u.y,Zq:u.a,Hk:u.ia,nl:u.oa,ql:u.og,Dp:r}))));if(b&&!J){f=0;for(e=y.length;f<e;f++)y[f].mp(!0);J=!0}else if(!b&&J){f=0;for(e=y.length;f<e;f++)y[f].mp(!1);J=!1}};fa.Zc=function(){var a,b,c,f;a=0;for(b=La.length;a<b;a++)c=La[a],f=this.b.wf(c.Qi),
c.rh(f),c.Qi=-1,f&&(P=f.x,Da=f.y);La.length=0};fa.Rt=function(a){if(!this.Ut){!a&&t&&t.resume&&t.resume();var b,c;b=0;for(c=y.length;b<c;b++)y[b].ru(a);a&&t&&t.suspend&&t.suspend()}};fa.eb=function(){var a=this.b.$d,b,c,f;b=0;for(c=y.length;b<c;b++)f=y[b],f.eb(a),0===f.P||3===f.P||f.cd||f.$b||!f.Ge()||(f.$b=!0,I=f.tag,z.trigger(Zb.prototype.j.Kj,L)),0!==Y&&f.Qp();var d,h;for(d in O)if(O.hasOwnProperty(d))for(f=O[d],b=0,c=f.length;b<c;b++)h=f[b],h.eb&&h.eb();1===E&&this.zb.vi()&&(this.zb.eb(a),P=this.zb.G.x,
Da=this.zb.G.y,t.listener.setPosition(this.zb.G.x,this.zb.G.y,this.Ug),t.listener.setVelocity(this.zb.Ck(),this.zb.Dk(),0))};var Ma=[];fa.qu=function(a){var b,c,f,d,h,e=0;b=0;for(c=a.length;b<c;++b)if(f=a[b],d=f[0],f=2*f[1],(h=4<d.length&&".ogg"===d.substr(d.length-4))&&A||!h&&!A)Ma.push({filename:d,size:f,G:null}),e+=f;return e};fa.uu=function(){var a,b,c,f;a=0;for(b=Ma.length;a<b;++a)c=Ma[a],f=this.b.nk+c.filename,c.G=this.ni(f,!1)};fa.Js=function(){var a=0,b,c,f;b=0;for(c=Ma.length;b<c;++b)f=Ma[b],
f.G.wt()||f.G.ht()||this.b.na||this.b.yi?a+=f.size:f.G.Kn()&&(a+=Math.floor(f.size/2));return a};fa.ni=function(a,b){var c,d,h,e=null;c=0;for(d=U.length;c<d;c++)if(h=U[c],h.src===a){e=h;break}e||(e=new f(a,b),U.push(e));return e};fa.sn=function(a,b,c,f,d){var h,e,g;h=0;for(e=y.length;h<e;h++)if(g=y[h],g.src===a&&(g.mr()||c))return g.tag=b,g;a=this.ni(a,c);if(!a.ea)return"<preload>"!==b&&(a.cj=b,a.hl=f,a.um=d),null;g=new s(a,b);y.push(g);return g};var Ca=[];D.prototype.Kj=function(a){return Xa(I,a)};
T.j=new D;u.prototype.Play=function(a,b,c,f){!J&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),M=this.sn(this.b.nk+a[0]+(A?".ogg":".m4a"),f,a[1],0!==b,c))&&(M.Vl(!1),M.play(0!==b,c))};u.prototype.Uq=function(){var a,b;a=0;for(b=y.length;a<b;a++)y[a].stop()};T.Z=new u;T.Na=new function(){}})();function $b(e){this.b=e}
(function(){function e(){}function r(){}var b=$b.prototype;b.La=function(b){this.wa=b;this.b=b.b};b.La.prototype.ba=function(){};b.Ba=function(b){this.type=b;this.b=b.b};b.Ba.prototype.ba=function(){var b=this;window.addEventListener("resize",function(){b.b.trigger($b.prototype.j.Iq,b)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){b.b.trigger($b.prototype.j.Fq,b)}),window.addEventListener("offline",function(){b.b.trigger($b.prototype.j.Eq,b)}));"undefined"!==
typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){b.b.If=1;b.b.trigger($b.prototype.j.Fm,b)}),window.applicationCache.addEventListener("progress",function(e){b.b.If=e.loaded/e.total}));this.b.gb||(document.addEventListener("appMobi.device.update.available",function(){b.b.trigger($b.prototype.j.Fm,b)}),document.addEventListener("backbutton",function(){b.b.trigger($b.prototype.j.Ij,b)}),document.addEventListener("menubutton",function(){b.b.trigger($b.prototype.j.Am,
b)}),document.addEventListener("searchbutton",function(){b.b.trigger($b.prototype.j.Jq,b)}),document.addEventListener("tizenhwkey",function(e){var a;switch(e.keyName){case "back":a=b.b.trigger($b.prototype.j.Ij,b);!a&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(a=b.b.trigger($b.prototype.j.Am,b))||e.preventDefault()}}));this.b.Qk&&(WinJS.Application.onbackclick=function(){return!!b.b.trigger($b.prototype.j.Ij,b)});this.b.Pm(function(e){e?b.b.trigger($b.prototype.j.Gq,
b):b.b.trigger($b.prototype.j.Hq,b)})};e.prototype.Fq=function(){return!0};e.prototype.Eq=function(){return!0};e.prototype.Fm=function(){return!0};e.prototype.Hq=function(){return!0};e.prototype.Gq=function(){return!0};e.prototype.Iq=function(){return!0};e.prototype.Ij=function(){return!0};e.prototype.Am=function(){return!0};e.prototype.Jq=function(){return!0};b.j=new e;b.Z=new function(){};r.prototype.URL=function(b){b.Lb(this.b.na?"":window.location.toString())};b.Na=new r})();
function ac(e){this.b=e}
(function(){function e(){}function r(){}var b=ac.prototype;b.La=function(b){this.wa=b;this.b=b.b};b.La.prototype.ba=function(){};b.Ba=function(b){this.type=b;this.b=b.b};var p=b.Ba.prototype;p.ba=function(){this.b.na?G("[Construct 2] Button plugin not supported on this platform - the object will not be created"):(this.Af=1===this.r[0],this.wc=document.createElement("input"),this.ja=this.Af?document.createElement("label"):this.wc,this.Og=null,this.wc.type=this.Af?"checkbox":"button",this.wc.id=this.r[6],
jQuery(this.ja).appendTo(this.b.Sh?this.b.Sh:"body"),this.Af?(jQuery(this.wc).appendTo(this.ja),this.Og=document.createTextNode(this.r[1]),jQuery(this.ja).append(this.Og),this.wc.checked=0!==this.r[7],jQuery(this.ja).css("font-family","sans-serif"),jQuery(this.ja).css("display","inline-block"),jQuery(this.ja).css("color","black")):this.wc.value=this.r[1],this.ja.title=this.r[2],this.wc.disabled=0===this.r[4],this.hr=0!==this.r[5],this.Be=!1,0===this.r[3]&&(jQuery(this.ja).hide(),this.visible=!1,this.Be=
!0),this.wc.onclick=function(b){return function(a){a.stopPropagation();b.b.yc=!0;b.b.trigger(ac.prototype.j.rq,b);b.b.yc=!1}}(this),this.ja.addEventListener("touchstart",function(b){b.stopPropagation()},!1),this.ja.addEventListener("touchmove",function(b){b.stopPropagation()},!1),this.ja.addEventListener("touchend",function(b){b.stopPropagation()},!1),jQuery(this.ja).mousedown(function(b){b.stopPropagation()}),jQuery(this.ja).mouseup(function(b){b.stopPropagation()}),jQuery(this.ja).keydown(function(b){b.stopPropagation()}),
jQuery(this.ja).keyup(function(b){b.stopPropagation()}),this.$n=this.ao=this.Sn=this.Xn=this.Zn=this.Un=0,this.Rp(!0),this.b.zj(this))};p.Kb=function(){var b={tooltip:this.ja.title,disabled:!!this.wc.disabled};this.Af?(b.checked=!!this.wc.checked,b.text=this.Og.nodeValue):b.text=this.ja.value;return b};p.oc=function(b){this.ja.title=b.tooltip;this.wc.disabled=b.disabled;this.Af?(this.wc.checked=b.checked,this.Og.nodeValue=b.text):this.ja.value=b.text};p.Ue=function(){this.b.na||(jQuery(this.ja).remove(),
this.ja=null)};p.eb=function(){this.Rp()};p.Rp=function(b){if(!this.b.na){var a=this.i.pa(this.x,this.y,!0),c=this.i.pa(this.x,this.y,!1),e=this.i.pa(this.x+this.width,this.y+this.height,!0),d=this.i.pa(this.x+this.width,this.y+this.height,!1);if(!this.visible||!this.i.visible||0>=e||0>=d||a>=this.b.width||c>=this.b.height)this.Be||jQuery(this.ja).hide(),this.Be=!0;else{1>a&&(a=1);1>c&&(c=1);e>=this.b.width&&(e=this.b.width-1);d>=this.b.height&&(d=this.b.height-1);var k=window.innerWidth,h=window.innerHeight;
b||this.Un!==a||this.Zn!==c||this.Xn!==e||this.Sn!==d||this.ao!==k||this.$n!==h?(this.Un=a,this.Zn=c,this.Xn=e,this.Sn=d,this.ao=k,this.$n=h,this.Be&&(jQuery(this.ja).show(),this.Be=!1),b=Math.round(a)+jQuery(this.b.canvas).offset().left,k=Math.round(c)+jQuery(this.b.canvas).offset().top,jQuery(this.ja).css("position","absolute"),jQuery(this.ja).offset({left:b,top:k}),jQuery(this.ja).width(Math.round(e-a)),jQuery(this.ja).height(Math.round(d-c)),this.hr&&jQuery(this.ja).css("font-size",this.i.Fb(!0)/
this.b.devicePixelRatio-.2+"em")):this.Be&&(jQuery(this.ja).show(),this.Be=!1)}}};p.Mc=function(){};p.ic=function(){};e.prototype.rq=function(){return!0};b.j=new e;r.prototype.Gm=function(b){this.b.na||(this.Af?this.Og.nodeValue=b:this.ja.value=b)};r.prototype.Sq=function(b){this.b.na||(this.visible=0!==b)};b.Z=new r;b.Na=new function(){}})();function Yb(e){this.b=e}
(function(){function e(){this.name="";this.oh=0;this.ib=[]}function r(){g++;g===c.length&&c.push(new e);return c[g]}function b(){}function p(){}function q(){}var a=Yb.prototype;a.La=function(a){this.wa=a;this.b=a.b};a.La.prototype.ba=function(){};a.Ba=function(a){this.type=a;this.b=a.b};var c=[],g=-1;a.Ba.prototype.ba=function(){var a=this;window.c2_callFunction=function(b,c){var e,q,n,p=r();p.name=b.toLowerCase();p.oh=0;if(c)for(p.ib.length=c.length,e=0,q=c.length;e<q;++e)n=c[e],p.ib[e]="number"===
typeof n||"string"===typeof n?n:"boolean"===typeof n?n?1:0:0;else p.ib.length=0;a.b.trigger(Yb.prototype.j.Gh,a,p.name);g--;return p.oh}};b.prototype.Gh=function(a){var b=0>g?null:c[g];return b?Xa(a,b.name):!1};a.j=new b;p.prototype.CallFunction=function(a,b){var c=r();c.name=a.toLowerCase();c.oh=0;ra(c.ib,b);this.b.trigger(Yb.prototype.j.Gh,this,c.name);g--};a.Z=new p;q.prototype.Zp=function(a,b){var c=r();c.name=b.toLowerCase();c.oh=0;c.ib.length=0;var e,q;e=2;for(q=arguments.length;e<q;e++)c.ib.push(arguments[e]);
this.b.trigger(Yb.prototype.j.Gh,this,c.name);g--;a.op(c.oh)};a.Na=new q})();function X(e){this.b=e}
(function(){function e(){if(0===this.ck.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Wf?b.drawImage(this.Y,this.Pf,this.Qf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Y,0,0,this.width,this.height);this.ck=a.toDataURL("image/png")}return this.ck}function r(){}var b=X.prototype;b.La=function(a){this.wa=a;this.b=a.b};var p=b.La.prototype;p.ba=function(){if(!this.F){var a,b,c,d,g,k,l,q,p;this.Kc=[];this.Bg=
!1;a=0;for(b=this.Ob.length;a<b;a++){g=this.Ob[a];l={};l.name=g[0];l.speed=g[1];l.loop=g[2];l.Ml=g[3];l.kj=g[4];l.Wo=g[5];l.S=g[6];l.frames=[];c=0;for(d=g[7].length;c<d;c++)k=g[7][c],q={},q.fm=k[0],q.gm=k[1],q.Pf=k[2],q.Qf=k[3],q.width=k[4],q.height=k[5],q.duration=k[6],q.Gb=k[7],q.Hb=k[8],q.Jk=k[9],q.ej=k[10],q.Xo=k[11],q.Wf=0!==q.width,q.ck="",q.Nv=e,p={left:0,top:0,right:1,bottom:1},q.Wl=p,q.xa=null,(p=this.b.ws(k[0]))?q.Y=p:(q.Y=new Image,q.Y.tr=k[0],q.Y.bn=k[1],q.Y.lr=null,this.b.Vp(q.Y,k[0])),
l.frames.push(q),this.Kc.push(q);this.Ob[a]=l}}};p.Np=function(){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.Yh=c.sc.xa};p.Zi=function(){if(!this.F){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=this.Kc[a],c.Y.lr=null,c.xa=null;this.Bg=!1;this.Np()}};p.tl=function(){if(!this.F&&this.d.length){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=this.Kc[a],c.xa=this.b.q.Pi(c.Y,!1,this.b.X,c.Xo);this.Np()}};p.cl=function(){if(!this.F&&!this.Bg&&this.b.q){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=
this.Kc[a],c.xa=this.b.q.Pi(c.Y,!1,this.b.X,c.Xo);this.Bg=!0}};p.nm=function(){if(!this.F&&!this.d.length&&this.Bg){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=this.Kc[a],this.b.q.deleteTexture(c.xa),c.xa=null;this.Bg=!1}};var q=[];p.Dl=function(a){var b,c,d;b=q.length=0;for(c=this.Kc.length;b<c;++b)d=this.Kc[b].Y,-1===q.indexOf(d)&&(a.drawImage(d,0,0),q.push(d))};b.Ba=function(a){this.type=a;this.b=a.b;a=this.type.Ob[0].frames[0].ej;this.pc?this.aa.uh(a):this.aa=new Sa(a)};var a=b.Ba.prototype;
a.ba=function(){this.visible=0===this.r[0];this.yd=0!==this.r[3];1===this.type.Ob.length&&1===this.type.Ob[0].frames.length||0===this.type.Ob[0].speed||this.b.zj(this);this.Da=this.rn(this.r[1])||this.type.Ob[0];this.u=this.r[2];0>this.u&&(this.u=0);this.u>=this.Da.frames.length&&(this.u=this.Da.frames.length-1);var a=this.Da.frames[this.u];this.aa.uh(a.ej);this.Gb=a.Gb;this.Hb=a.Hb;this.mg=this.Da.speed;this.pc?this.$c.reset():this.$c=new Qa;this.Hd=this.$c.da;this.we=!0;this.wd=0;this.ve=!0;this.Yj=
this.Rm="";this.pr=0;this.Xj=-1;this.type.cl();var b,c,d,e,g,k,q,a=0;for(b=this.type.Ob.length;a<b;a++)for(e=this.type.Ob[a],c=0,d=e.frames.length;c<d;c++)g=e.frames[c],0===g.width&&(g.width=g.Y.width,g.height=g.Y.height),g.Wf&&(q=g.Y,k=g.Wl,k.left=g.Pf/q.width,k.top=g.Qf/q.height,k.right=(g.Pf+g.width)/q.width,k.bottom=(g.Qf+g.height)/q.height,0===g.Pf&&0===g.Qf&&g.width===q.width&&g.height===q.height&&(g.Wf=!1));this.sc=this.Da.frames[this.u];this.Yh=this.sc.xa};a.Kb=function(){var a={a:this.Da.S,
f:this.u,cas:this.mg,fs:this.Hd,ar:this.wd,at:this.$c.da};this.we||(a.ap=this.we);this.ve||(a.af=this.ve);return a};a.oc=function(a){var b=this.As(a.a);b&&(this.Da=b);this.u=a.f;0>this.u&&(this.u=0);this.u>=this.Da.frames.length&&(this.u=this.Da.frames.length-1);this.mg=a.cas;this.Hd=a.fs;this.wd=a.ar;this.$c.reset();this.$c.da=a.at;this.we=a.hasOwnProperty("ap")?a.ap:!0;this.ve=a.hasOwnProperty("af")?a.af:!0;this.sc=this.Da.frames[this.u];this.Yh=this.sc.xa;this.aa.uh(this.sc.ej);this.Gb=this.sc.Gb;
this.Hb=this.sc.Hb};a.Sj=function(a){this.u=a?0:this.Da.frames.length-1;this.we=!1;this.Rm=this.Da.name;this.b.trigger(X.prototype.j.pq,this);this.b.trigger(X.prototype.j.oq,this);this.wd=0};a.Qv=function(){return this.$c.da};a.eb=function(){this.$c.add(this.b.pi(this));this.Yj.length&&this.Cr();0<=this.Xj&&this.Dr();var a=this.$c.da,b=this.Da,c=b.frames[this.u],d=c.duration/this.mg;this.we&&a>=this.Hd+d&&(this.ve?this.u++:this.u--,this.Hd+=d,this.u>=b.frames.length&&(b.Wo?(this.ve=!1,this.u=b.frames.length-
2):b.loop?this.u=b.kj:(this.wd++,this.wd>=b.Ml?this.Sj(!1):this.u=b.kj)),0>this.u&&(b.Wo?(this.u=1,this.ve=!0,b.loop||(this.wd++,this.wd>=b.Ml&&this.Sj(!0))):b.loop?this.u=b.kj:(this.wd++,this.wd>=b.Ml?this.Sj(!0):this.u=b.kj)),0>this.u?this.u=0:this.u>=b.frames.length&&(this.u=b.frames.length-1),a>this.Hd+b.frames[this.u].duration/this.mg&&(this.Hd=a),a=b.frames[this.u],this.hf(c,a),this.b.ca=!0)};a.rn=function(a){var b,c,d;b=0;for(c=this.type.Ob.length;b<c;b++)if(d=this.type.Ob[b],Xa(d.name,a))return d;
return null};a.As=function(a){var b,c,d;b=0;for(c=this.type.Ob.length;b<c;b++)if(d=this.type.Ob[b],d.S===a)return d;return null};a.Cr=function(){var a=this.Da.frames[this.u],b=this.rn(this.Yj);this.Yj="";!b||Xa(b.name,this.Da.name)&&this.we||(this.Da=b,this.mg=b.speed,0>this.u&&(this.u=0),this.u>=this.Da.frames.length&&(this.u=this.Da.frames.length-1),1===this.pr&&(this.u=0),this.we=!0,this.Hd=this.$c.da,this.ve=!0,this.hf(a,this.Da.frames[this.u]),this.b.ca=!0)};a.Dr=function(){var a=this.Da.frames[this.u],
b=this.u;this.u=Q(this.Xj);0>this.u&&(this.u=0);this.u>=this.Da.frames.length&&(this.u=this.Da.frames.length-1);b!==this.u&&(this.hf(a,this.Da.frames[this.u]),this.Hd=this.$c.da,this.b.ca=!0);this.Xj=-1};a.hf=function(a,b){var c=a.width,d=a.height,e=b.width,g=b.height;c!=e&&(this.width*=e/c);d!=g&&(this.height*=g/d);this.Gb=b.Gb;this.Hb=b.Hb;this.aa.uh(b.ej);this.C();this.sc=b;this.Yh=b.xa;c=0;for(d=this.L.length;c<d;c++)e=this.L[c],e.Qt&&e.Qt(a,b);this.b.trigger(X.prototype.j.hf,this)};a.Mc=function(a){a.globalAlpha=
this.opacity;var b=this.sc,c=b.Wf,d=b.Y,e=this.x,g=this.y,k=this.width,q=this.height;if(0===this.m&&0<=k&&0<=q)e-=this.Gb*k,g-=this.Hb*q,this.b.kd&&(e=Math.round(e),g=Math.round(g)),c?a.drawImage(d,b.Pf,b.Qf,b.width,b.height,e,g,k,q):a.drawImage(d,e,g,k,q);else{this.b.kd&&(e=Math.round(e),g=Math.round(g));a.save();var p=0<k?1:-1,f=0<q?1:-1;a.translate(e,g);1===p&&1===f||a.scale(p,f);a.rotate(this.m*p*f);e=0-this.Gb*ia(k);g=0-this.Hb*ia(q);c?a.drawImage(d,b.Pf,b.Qf,b.width,b.height,e,g,ia(k),ia(q)):
a.drawImage(d,e,g,ia(k),ia(q));a.restore()}};a.ic=function(a){a.Zb(this.Yh);a.Ye(this.opacity);var b=this.sc,c=this.xb;if(this.b.kd){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Wf?a.ld(c.Fa+d,c.Ga+e,c.ub+d,c.wb+e,c.pb+d,c.qb+e,c.nb+d,c.ob+e,b.Wl):a.ij(c.Fa+d,c.Ga+e,c.ub+d,c.wb+e,c.pb+d,c.qb+e,c.nb+d,c.ob+e)}else b.Wf?a.ld(c.Fa,c.Ga,c.ub,c.wb,c.pb,c.qb,c.nb,c.ob,b.Wl):a.ij(c.Fa,c.Ga,c.ub,c.wb,c.pb,c.qb,c.nb,c.ob)};a.Es=function(a){var b=this.sc,c,d;c=0;for(d=b.Jk.length;c<d;c++)if(Xa(a,
b.Jk[c][0]))return c;return-1};a.yk=function(a,b){var c=this.sc,d=c.Jk,e;e=N(a)?this.Es(a):a-1;e=Q(e);if(0>e||e>=d.length)return b?this.x:this.y;var g=(d[e][1]-c.Gb)*this.width,d=d[e][2],d=(d-c.Hb)*this.height,c=Math.cos(this.m);e=Math.sin(this.m);var k=g*c-d*e,d=d*c+g*e,g=k+this.x,d=d+this.y;return b?g:d};var c=null,g=new ba,d=!1,k=[];p.finish=function(a){if(d){if(a){var b=this.b.yb().Sb.Sc;a=c.ma();var e=g.df(),k,q;if(a.ra){a.ra=!1;a.d.length=e.length;k=0;for(q=e.length;k<q;k++)a.d[k]=e[k];if(b)for(k=
a.W.length=0,q=c.d.length;k<q;k++)e=c.d[k],g.contains(e)||a.W.push(e)}else if(b)for(b=a.d.length,a.d.length=b+e.length,k=0,q=e.length;k<q;k++)a.d[b+k]=e[k],ua(a.W,e[k]);else ra(a.d,e);c.Ud()}g.clear();d=!1}};r.prototype.lq=function(a){if(a){var b=!1,e,q,p,r=this.b.vk(),l=r.type,r=r.wi;e=a.ma();q=this.b.yb().Sb.Sc;var v;e.ra?(this.Ca(),this.b.tn(this.i,a,this.Ha,k),v=k):v=q?e.W:e.d;c=a;d=l!==a&&!r;e=0;for(q=v.length;e<q;e++)if(p=v[e],this.b.Hc(this,p)){b=!0;if(r)break;l!==a&&g.add(p)}k.length=0;a=
b}else a=!1;return a};r.prototype.oq=function(a){return Xa(this.Rm,a)};r.prototype.pq=function(){return!0};r.prototype.hf=function(){return!0};b.j=new r;b.Z=new function(){};b.Na=new function(){}})();function bc(e){this.b=e}
(function(){function e(){return g.length?g.pop():{}}function r(a){var b,c;b=0;for(c=a.length;b<c;b++)g.push(a[b]);a.length=0}function b(){}function p(){}var q=bc.prototype;q.ba=function(){q.Z.Tq=function(a){this.width!==a&&(this.width=a,this.cf=!0,this.C())}};q.La=function(a){this.wa=a;this.b=a.b};var a=q.La.prototype;a.ba=function(){};a.Zi=function(){if(!this.F){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.hd=null,c.Te=null,c.Xb=null}};q.Ba=function(a){this.type=a;this.b=a.b;this.pc?this.ge.length=
0:this.ge=[];this.cf=!0};a=q.Ba.prototype;a.ba=function(){this.text=this.r[0];this.visible=0===this.r[1];this.font=this.r[2];this.color=this.r[3];this.ti=this.r[4];this.Fj=this.r[5];this.xm=0===this.r[7];this.Xk=this.Ji=this.width;this.Ii=this.height;this.Zk=this.r[8];this.li=this.sf="";this.Bp=this.Cp=this.lh=0;this.St();this.Xb=this.Te=this.hd=null;this.Bo=!1;this.Tg=this.b.Od;this.pc?this.ke.set(0,0,1,1):this.ke=new na(0,0,1,1);this.b.q&&this.b.zj(this)};a.St=function(){var a=this.font.split(" "),
b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.lh=parseInt(a[b].substr(0,a[b].length-2));this.Il=Math.ceil(this.lh/72*96)+4;0<b&&(this.li=a[b-1]);this.sf=a[b+1];for(b+=2;b<a.length;b++)this.sf+=" "+a[b];break}};a.Kb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.ti,va:this.Fj,wr:this.xm,lho:this.Zk,fn:this.sf,fs:this.li,ps:this.lh,pxh:this.Il,tw:this.Cp,th:this.Bp,lrt:this.Tg}};a.oc=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.ti=a.ha;this.Fj=
a.va;this.xm=a.wr;this.Zk=a.lho;this.sf=a.fn;this.li=a.fs;this.lh=a.ps;this.Il=a.pxh;this.Cp=a.tw;this.Bp=a.th;this.Tg=a.lrt;this.cf=!0;this.Xk=this.Ji=this.width;this.Ii=this.height};a.eb=function(){if(this.b.q&&this.Xb&&300<=this.b.Od-this.Tg){var a=this.i;this.Ca();var b=this.Ha;if(b.right<a.kb||b.bottom<a.lb||b.left>a.ec||b.top>a.cc)this.b.q.deleteTexture(this.Xb),this.hd=this.Te=this.Xb=null}};a.Ue=function(){this.hd=this.Te=null;this.b.q&&this.Xb&&this.b.q.deleteTexture(this.Xb);this.Xb=null};
a.Zv=function(){this.font=this.li+" "+this.lh.toString()+"pt "+this.sf;this.cf=!0;this.b.ca=!0};a.Mc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=this.i.Fb(),a.save(),a.scale(c,c));if(this.cf||this.width!==this.Xk)this.type.wa.Xq(this.text,this.ge,a,this.width,this.xm),this.cf=!1,this.Xk=this.width;this.Ca();var c=b?0:this.xb.Fa,e=b?0:this.xb.Ga;this.b.kd&&(c=c+.5|0,e=e+.5|0);0===this.m||b||(a.save(),a.translate(c,e),a.rotate(this.m),
e=c=0);var g=e+this.height,q=this.Il,q=q+this.Zk,p,r;1===this.Fj?e+=Math.max(this.height/2-this.ge.length*q/2,0):2===this.Fj&&(e+=Math.max(this.height-this.ge.length*q-2,0));for(r=0;r<this.ge.length&&!(p=c,1===this.ti?p=c+(this.width-this.ge[r].width)/2:2===this.ti&&(p=c+(this.width-this.ge[r].width)),a.fillText(this.ge[r].text,p,e),e+=q,e>=g-q);r++);(0!==this.m||b)&&a.restore();this.Tg=this.b.Od};a.ic=function(a){if(!(1>this.width||1>this.height)){var b=this.cf||this.Bo;this.Bo=!1;var c=this.i.Fb(),
e=this.i.Qa(),g=this.ke,q=c*this.width,p=c*this.height,r=Math.ceil(q),l=Math.ceil(p),v=this.b.O/2,C=this.b.N/2;this.Te||(this.hd=document.createElement("canvas"),this.hd.width=r,this.hd.height=l,this.Ji=r,this.Ii=l,b=!0,this.Te=this.hd.getContext("2d"));if(r!==this.Ji||l!==this.Ii)this.hd.width=r,this.hd.height=l,this.Xb&&(a.deleteTexture(this.Xb),this.Xb=null),b=!0;b&&(this.Te.clearRect(0,0,r,l),this.Mc(this.Te,!0),this.Xb||(this.Xb=a.zd(r,l,this.b.X,this.b.fd)),a.Gu(this.hd,this.Xb,this.b.fd));
this.Ji=r;this.Ii=l;a.Zb(this.Xb);a.Ye(this.opacity);a.md();a.translate(-v,-C);a.td();var f=this.xb,b=this.i.pa(f.Fa,f.Ga,!0,!0),v=this.i.pa(f.Fa,f.Ga,!1,!0),C=this.i.pa(f.ub,f.wb,!0,!0),s=this.i.pa(f.ub,f.wb,!1,!0),H=this.i.pa(f.pb,f.qb,!0,!0),D=this.i.pa(f.pb,f.qb,!1,!0),u=this.i.pa(f.nb,f.ob,!0,!0),f=this.i.pa(f.nb,f.ob,!1,!0);if(this.b.kd||0===this.m&&0===e)var T=(b+.5|0)-b,z=(v+.5|0)-v,b=b+T,v=v+z,C=C+T,s=s+z,H=H+T,D=D+z,u=u+T,f=f+z;0===this.m&&0===e?(C=b+r,s=v,H=C,D=v+l,u=b,f=D,g.right=1,g.bottom=
1):(g.right=q/r,g.bottom=p/l);a.ld(b,v,C,s,H,D,u,f,g);a.md();a.scale(c,c);a.Ol(-this.i.Qa());a.translate((this.i.kb+this.i.ec)/-2,(this.i.lb+this.i.cc)/-2);a.td();this.Tg=this.b.Od}};var c=[];q.Vq=function(a){c.length=0;for(var b="",e,g=0;g<a.length;)if(e=a.charAt(g),"\n"===e)b.length&&(c.push(b),b=""),c.push("\n"),++g;else if(" "===e||"\t"===e||"-"===e){do b+=a.charAt(g),g++;while(g<a.length&&(" "===a.charAt(g)||"\t"===a.charAt(g)));c.push(b);b=""}else g<a.length&&(b+=e,g++);b.length&&c.push(b)};
var g=[];q.Xq=function(a,b,c,g,q){if(a&&a.length)if(2>=g)r(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var n=c.measureText(a).width;if(n<=g){r(b);b.push(e());b[0].text=a;b[0].width=n;return}}this.Yq(a,b,c,g,q)}else r(b)};q.Yq=function(a,b,h,q,p){p&&(this.Vq(a),a=c);var n="",r,w,l,v=0;for(l=0;l<a.length;l++)"\n"===a[l]?(v>=b.length&&b.push(e()),w=b[v],w.text=n,w.width=h.measureText(n).width,v++,n=""):(r=n,n+=a[l],w=h.measureText(n).width,w>=q&&(v>=b.length&&b.push(e()),w=b[v],w.text=r,w.width=
h.measureText(r).width,v++,n=a[l],p||" "!==n||(n="")));n.length&&(v>=b.length&&b.push(e()),w=b[v],w.text=n,w.width=h.measureText(n).width,v++);for(l=v;l<b.length;l++)g.push(b[l]);b.length=v};q.j=new function(){};b.prototype.Gm=function(a){ea(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.cf=!0,this.b.ca=!0)};q.Z=new b;p.prototype.Text=function(a){a.Lb(this.text)};q.Na=new p})();function cc(e){this.b=e}
(function(){var e=cc.prototype;e.La=function(b){this.wa=b;this.b=b.b};var r=e.La.prototype;r.ba=function(){this.F||(this.Y=new Image,this.Y.bn=this.gm,this.b.Vp(this.Y,this.fm),this.xa=this.pattern=null)};r.Zi=function(){this.F||(this.xa=null)};r.tl=function(){if(!this.F&&this.d.length){this.xa||(this.xa=this.b.q.Pi(this.Y,!0,this.b.X,this.hm));var b,e;b=0;for(e=this.d.length;b<e;b++)this.d[b].xa=this.xa}};r.cl=function(){this.F||this.xa||!this.b.q||(this.xa=this.b.q.Pi(this.Y,!0,this.b.X,this.hm))};
r.nm=function(){this.F||this.d.length||!this.xa||(this.b.q.deleteTexture(this.xa),this.xa=null)};r.Dl=function(b){b.drawImage(this.Y,0,0)};e.Ba=function(b){this.type=b;this.b=b.b};r=e.Ba.prototype;r.ba=function(){this.visible=0===this.r[0];this.ke=new na(0,0,0,0);this.Dn=!1;this.Y=this.type.Y;this.b.q?(this.type.cl(),this.xa=this.type.xa):(this.type.pattern||(this.type.pattern=this.b.la.createPattern(this.type.Y,"repeat")),this.pattern=this.type.pattern)};r.Zc=function(){this.Dn=!1;this.Y=this.type.Y};
r.Ue=function(){this.b.q&&this.Dn&&this.xa&&(this.b.q.deleteTexture(this.xa),this.xa=null)};r.Mc=function(b){b.globalAlpha=this.opacity;b.save();b.fillStyle=this.pattern;var e=this.x,q=this.y;this.b.kd&&(e=Math.round(e),q=Math.round(q));var a=-(this.Gb*this.width),c=-(this.Hb*this.height),g=a%this.Y.width,d=c%this.Y.height;0>g&&(g+=this.Y.width);0>d&&(d+=this.Y.height);b.translate(e,q);b.rotate(this.m);b.translate(g,d);b.fillRect(a-g,c-d,this.width,this.height);b.restore()};r.ic=function(b){b.Zb(this.xa);
b.Ye(this.opacity);var e=this.ke;e.right=this.width/this.Y.width;e.bottom=this.height/this.Y.height;var q=this.xb;if(this.b.kd){var a=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;b.ld(q.Fa+a,q.Ga+c,q.ub+a,q.wb+c,q.pb+a,q.qb+c,q.nb+a,q.ob+c,e)}else b.ld(q.Fa,q.Ga,q.ub,q.wb,q.pb,q.qb,q.nb,q.ob,e)};e.j=new function(){};e.Z=new function(){};e.Na=new function(){}})();function Z(e){this.b=e}
(function(){function e(a){k=a.x;h=a.y;m=a.z}function r(a){x=a.x;n=a.y;B=a.z}function b(a,b,c,d){var e;e=w.length?w.pop():new p;e.init(a,b,c,d);return e}function p(){this.wh=this.id=this.y=this.x=this.uj=this.tj=this.Wk=this.time=this.cm=0;this.Bh=this.Cj=!1}function q(){}function a(){}var c=Z.prototype;c.La=function(a){this.wa=a;this.b=a.b};c.La.prototype.ba=function(){};c.Ba=function(a){this.type=a;this.b=a.b;this.touches=[];this.kl=!1};var g=c.Ba.prototype,d={left:0,top:0};g.tg=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 k=0,h=0,m=0,x=0,n=0,B=0,w=[];p.prototype.init=function(a,b,c,d){var e=S();this.cm=this.Wk=this.time=e;this.tj=a;this.uj=b;this.x=a;this.y=b;this.id=c;this.wh=d;this.Bh=this.Cj=!1};p.prototype.update=function(a,b,c){this.Wk=this.time;this.time=a;this.x=b;this.y=c;!this.Bh&&15<=Ia(this.tj,this.uj,this.x,this.y)&&(this.Bh=!0)};p.prototype.Gt=function(a,b){!this.Cj&&500<=S()-this.cm&&!this.Bh&&15>Ia(this.tj,this.uj,
this.x,this.y)&&(this.Cj=!0,a.sd=this.wh,a.$f=this.id,a.xf=b,a.b.trigger(Z.prototype.j.xq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Z.prototype.j.yq,a),a.xf=0)};var l=-1E3,v=-1E3,C=-1E4;p.prototype.vo=function(a,b){if(!this.Cj){var c=S();333>=c-this.cm&&!this.Bh&&15>Ia(this.tj,this.uj,this.x,this.y)&&(a.sd=this.wh,a.$f=this.id,a.xf=b,666>=c-C&&25>Ia(l,v,this.x,this.y)?(a.b.trigger(Z.prototype.j.tq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Z.prototype.j.uq,a),v=l=-1E3,C=-1E4):(a.b.trigger(Z.prototype.j.Lq,
a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Z.prototype.j.Mq,a),l=this.x,v=this.y,C=c),a.xf=0)}};g.ba=function(){this.yt=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.xf=this.$f=this.sd=this.Cd=this.Bd=this.Lm=this.Km=this.Jm=this.cr=this.br=this.$q=this.hh=this.gh=this.fh=0;this.Eu=0!==this.r[0];var a=0<this.b.Tb?document:this.b.canvas,b=document;this.b.gb?b=a=window.Canvas:this.b.xc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.Ko(a)},
!1),a.addEventListener("pointermove",function(a){c.Jo(a)},!1),b.addEventListener("pointerup",function(a){c.$i(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.$i(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.Ko(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Jo(a)},!1),b.addEventListener("MSPointerUp",function(a){c.$i(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.$i(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.Mo(a)},
!1),a.addEventListener("touchmove",function(a){c.Lo(a)},!1),b.addEventListener("touchend",function(a){c.ul(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.ul(a,!0)},!1));if(this.yt){var d=function(a){a=a.reading;c.Jm=a.accelerationX;c.Km=a.accelerationY;c.Lm=a.accelerationZ},g=function(a){a=a.reading;c.fh=a.yawDegrees;c.gh=a.pitchDegrees;c.hh=a.rollDegrees},h=Windows.Devices.Sensors.Accelerometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",
d));var k=Windows.Devices.Sensors.Inclinometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",g));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(h&&h.removeEventListener("readingchanged",d),k&&k.removeEventListener("readingchanged",g)):(h&&h.addEventListener("readingchanged",d),k&&k.addEventListener("readingchanged",g))},!1)}else window.addEventListener("deviceorientation",function(a){c.fh=a.alpha||
0;c.gh=a.beta||0;c.hh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.$q=a.accelerationIncludingGravity.x||0,c.br=a.accelerationIncludingGravity.y||0,c.cr=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Jm=a.acceleration.x||0,c.Km=a.acceleration.y||0,c.Lm=a.acceleration.z||0)},!1);this.Eu&&!this.b.na&&(jQuery(document).mousemove(function(a){c.Ot(a)}),jQuery(document).mousedown(function(a){c.Nt(a)}),jQuery(document).mouseup(function(a){c.Pt(a)}));
this.b.zf&&!this.b.gb&&AppMobi.accelerometer.watchAcceleration(e,{frequency:40,adjustForRotation:!0});this.b.zc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(r,null,{frequency:40});this.b.wu(this)};g.Jo=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.tg(a.pointerId),c=S();if(0<=b){var e=this.b.na?d:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-e.left,a.pageY-e.top)}}};g.Ko=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&Ya(a)&&a.preventDefault();var c=this.b.na?d:jQuery(this.b.canvas).offset(),e=a.pageX-c.left,c=a.pageY-c.top;S();this.sd=this.touches.length;this.$f=a.pointerId;this.touches.push(b(e,c,a.pointerId,this.sd));this.b.yc=!0;this.b.trigger(Z.prototype.j.Cm,this);this.b.trigger(Z.prototype.j.Oj,this);this.Bd=e;this.Cd=c;this.b.trigger(Z.prototype.j.Em,this);this.b.yc=
!1}};g.$i=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&Ya(a)&&a.preventDefault();var c=this.tg(a.pointerId);this.sd=0<=c?this.touches[c].wh:-1;this.$f=0<=c?this.touches[c].id:-1;this.b.yc=!0;this.b.trigger(Z.prototype.j.Bm,this);this.b.trigger(Z.prototype.j.Dm,this);0<=c&&(b||this.touches[c].vo(this,c),100>w.length&&w.push(this.touches[c]),this.touches.splice(c,1));this.b.yc=!1}};g.Lo=function(a){a.preventDefault&&a.preventDefault();var b=S(),
c,e,g,h;c=0;for(e=a.changedTouches.length;c<e;c++)if(g=a.changedTouches[c],h=this.tg(g.identifier),0<=h){var k=this.b.na?d:jQuery(this.b.canvas).offset();h=this.touches[h];2>b-h.time||h.update(b,g.pageX-k.left,g.pageY-k.top)}};g.Mo=function(a){a.preventDefault&&Ya(a)&&a.preventDefault();var c=this.b.na?d:jQuery(this.b.canvas).offset();S();this.b.yc=!0;var e,g,h,k;e=0;for(g=a.changedTouches.length;e<g;e++)if(h=a.changedTouches[e],k=this.tg(h.identifier),-1===k){k=h.pageX-c.left;var l=h.pageY-c.top;
this.sd=this.touches.length;this.$f=h.identifier;this.touches.push(b(k,l,h.identifier,this.sd));this.b.trigger(Z.prototype.j.Cm,this);this.b.trigger(Z.prototype.j.Oj,this);this.Bd=k;this.Cd=l;this.b.trigger(Z.prototype.j.Em,this)}this.b.yc=!1};g.ul=function(a,b){a.preventDefault&&Ya(a)&&a.preventDefault();this.b.yc=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.tg(e.identifier),0<=e&&(this.sd=this.touches[e].wh,this.$f=this.touches[e].id,this.b.trigger(Z.prototype.j.Bm,
this),this.b.trigger(Z.prototype.j.Dm,this),b||this.touches[e].vo(this,e),100>w.length&&w.push(this.touches[e]),this.touches.splice(e,1));this.b.yc=!1};g.Kv=function(){return this.b.zf&&0===this.fh&&0!==m?90*m:this.b.zc&&0===this.fh&&0!==B?90*B:this.fh};g.Lv=function(){return this.b.zf&&0===this.gh&&0!==h?-90*h:this.b.zc&&0===this.gh&&0!==n?-90*n:this.gh};g.Pv=function(){return this.b.zf&&0===this.hh&&0!==k?90*k:this.b.zc&&0===this.hh&&0!==x?90*x:this.hh};g.Nt=function(a){a.preventDefault&&this.b.Ek&&
!this.b.fd&&a.preventDefault();this.Mo({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.kl=!0};g.Ot=function(a){this.kl&&this.Lo({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};g.Pt=function(a){a.preventDefault&&this.b.Ek&&!this.b.fd&&a.preventDefault();this.b.Ek=!0;this.ul({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.kl=!1};g.im=function(){var a,b,c,d=S();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Wk=d),c.Gt(this,
a)};q.prototype.Oj=function(){return!0};q.prototype.Dm=function(){return!0};q.prototype.jq=function(){return this.touches.length};q.prototype.Em=function(a){return a?this.b.wj(a,this.Bd,this.Cd):!1};q.prototype.Cm=function(a){a=Math.floor(a);return a===this.sd};q.prototype.Bm=function(a){a=Math.floor(a);return a===this.sd};q.prototype.xq=function(){return!0};q.prototype.Lq=function(){return!0};q.prototype.tq=function(){return!0};q.prototype.yq=function(a){return a?this.b.wj(a,this.Bd,this.Cd):!1};
q.prototype.Mq=function(a){return a?this.b.wj(a,this.Bd,this.Cd):!1};q.prototype.uq=function(a){return a?this.b.wj(a,this.Bd,this.Cd):!1};c.j=new q;a.prototype.Pj=function(a,b){var c=this.xf;if(0>c||c>=this.touches.length)a.B(0);else{var d,e,g,h,k;da(b)?(d=this.b.vg(0),e=d.scale,g=d.Yc,h=d.Dc,k=d.m,d.scale=1,d.Yc=1,d.Dc=1,d.m=0,a.B(d.Pb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Yc=g,d.Dc=h,d.m=k):(d=ea(b)?this.b.vg(b):this.b.zk(b))?a.B(d.Pb(this.touches[c].x,this.touches[c].y,!0)):a.B(0)}};
a.prototype.Im=function(a,b){var c=this.xf;if(0>c||c>=this.touches.length)a.B(0);else{var d,e,g,h,k;da(b)?(d=this.b.vg(0),e=d.scale,g=d.Yc,h=d.Ec,k=d.m,d.scale=1,d.Yc=1,d.Ec=1,d.m=0,a.B(d.Pb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Yc=g,d.Ec=h,d.m=k):(d=ea(b)?this.b.vg(b):this.b.zk(b))?a.B(d.Pb(this.touches[c].x,this.touches[c].y,!1)):a.B(0)}};c.Na=new a})();function dc(e){this.b=e}
(function(){function e(){}function r(){}var b=dc.prototype;b.La=function(b){this.behavior=b;this.b=b.b};b.La.prototype.ba=function(){};b.Ba=function(b,a){this.type=b;this.behavior=b.behavior;this.e=a;this.b=b.b};var p=b.Ba.prototype;p.ba=function(){this.se=this.pd=this.Xf=this.Yi=this.aj=0};p.Kb=function(){return{ontime:this.aj,offtime:this.Yi,stage:this.Xf,stagetimeleft:this.pd,timeleft:this.se}};p.oc=function(b){this.aj=b.ontime;this.Yi=b.offtime;this.Xf=b.stage;this.pd=b.stagetimeleft;this.se=
b.timeleft};p.eb=function(){if(!(0>=this.se)){var b=this.b.pi(this.e);this.se-=b;0>=this.se?(this.se=0,this.e.visible=!0,this.b.ca=!0,this.b.trigger(dc.prototype.j.wq,this.e)):(this.pd-=b,0>=this.pd&&(0===this.Xf?(this.e.visible=!1,this.Xf=1,this.pd+=this.Yi):(this.e.visible=!0,this.Xf=0,this.pd+=this.aj),this.b.ca=!0))}};e.prototype.wq=function(){return!0};b.j=new e;r.prototype.fq=function(b,a,c){this.aj=b;this.Yi=a;this.Xf=1;this.pd=a;this.se=c;this.e.visible=!1;this.b.ca=!0};b.Z=new r;b.Na=new function(){}})();
function ec(e){this.b=e}
(function(){function e(){}function r(){}var b=ec.prototype;b.La=function(b){this.behavior=b;this.b=b.b};b.La.prototype.ba=function(){};b.Ba=function(b,a){this.type=b;this.behavior=b.behavior;this.e=a;this.b=b.b;this.pj=this.Zl=this.Yl=this.Ik=this.jg=this.pg=this.Gf=this.Ng=this.lj=this.Mi=!1;this.mc=null;this.$k=-1;this.Ne=this.Me=0;this.ki=!1;this.tf=this.Lc=0;this.ji=!0;this.fa=this.K=0};var p=b.Ba.prototype;p.Pp=function(){this.Xa=Math.cos(this.vf);this.Ya=Math.sin(this.vf);this.We=Math.cos(this.vf-
Math.PI/2);this.Xe=Math.sin(this.vf-Math.PI/2);this.Xa=Wa(this.Xa);this.Ya=Wa(this.Ya);this.We=Wa(this.We);this.Xe=Wa(this.Xe);this.sk=this.Id;0>this.Id&&(this.Xa*=-1,this.Ya*=-1,this.Id=Math.abs(this.Id))};p.ba=function(){this.Lf=this.r[0];this.jf=this.r[1];this.qf=this.r[2];this.Mg=this.r[3];this.sk=this.Id=this.r[4];this.Ui=this.r[5];this.gk=0!==this.r[6];this.Tk=this.r[7]/1E3;this.Ar=1===this.r[8];this.enabled=0!==this.r[9];this.eg=!1;this.Fh=this.b.re(this.e);this.al=-1;this.bf=0;this.vf=R(90);
this.Pp();var b=this;this.Ar&&!this.b.na&&(jQuery(document).keydown(function(a){b.Lt(a)}),jQuery(document).keyup(function(a){b.Mt(a)}));this.pc||(this.Ao=function(a){b.rl(a)});this.b.Nm(this.Ao);this.e.R.isPlatformBehavior=!0};p.Kb=function(){return{ii:this.Ik,lfx:this.Me,lfy:this.Ne,lfo:this.mc?this.mc.uid:-1,am:this.Lc,en:this.enabled,fall:this.tf,ft:this.ji,dx:this.K,dy:this.fa,ms:this.Lf,acc:this.jf,dec:this.qf,js:this.Mg,g:this.Id,g1:this.sk,mf:this.Ui,wof:this.eg,woj:this.Fh?this.Fh.uid:-1,
ga:this.vf,edj:this.gk,cdj:this.jg,dj:this.pg,sus:this.Tk}};p.oc=function(b){this.Ik=b.ii;this.Me=b.lfx;this.Ne=b.lfy;this.$k=b.lfo;this.Lc=b.am;this.enabled=b.en;this.tf=b.fall;this.ji=b.ft;this.K=b.dx;this.fa=b.dy;this.Lf=b.ms;this.jf=b.acc;this.qf=b.dec;this.Mg=b.js;this.Id=b.g;this.sk=b.g1;this.Ui=b.mf;this.eg=b.wof;this.al=b.woj;this.vf=b.ga;this.gk=b.edj;this.jg=b.cdj;this.pg=b.dj;this.Tk=b.sus;this.pj=this.Zl=this.Yl=this.Gf=this.Ng=this.lj=this.Mi=!1;this.bf=0;this.Pp()};p.Zc=function(){this.mc=
-1===this.$k?null:this.b.wf(this.$k);this.Fh=-1===this.al?null:this.b.wf(this.al)};p.rl=function(b){this.mc==b&&(this.mc=null)};p.Ue=function(){this.mc=null;this.b.du(this.Ao)};p.Lt=function(b){switch(b.which){case 38:b.preventDefault();this.Ng=!0;break;case 37:b.preventDefault();this.Mi=!0;break;case 39:b.preventDefault(),this.lj=!0}};p.Mt=function(b){switch(b.which){case 38:b.preventDefault();this.Gf=this.Ng=!1;break;case 37:b.preventDefault();this.Mi=!1;break;case 39:b.preventDefault(),this.lj=
!1}};p.Ov=function(){return 0>this.Id?-1:1};p.Ln=function(){var b=null,a=null,c,e;c=this.e.x;e=this.e.y;this.e.x+=this.Xa;this.e.y+=this.Ya;this.e.C();if(this.mc&&this.b.Hc(this.e,this.mc))return this.e.x=c,this.e.y=e,this.e.C(),this.mc;(b=this.b.ac(this.e))||0!==this.tf||(a=this.b.re(this.e,!0));this.e.x=c;this.e.y=e;this.e.C();if(b){if(this.b.Hc(this.e,b))return null;this.ki=!1;return b}if(a&&a.length){e=b=0;for(c=a.length;b<c;b++)a[e]=a[b],this.b.Hc(this.e,a[b])||e++;if(1<=e)return this.ki=!0,
a[0]}return null};p.eb=function(){};p.$o=function(){var b=this.b.pi(this.e),a,c,e,d,k,h,m,p,n;this.Ng||this.pj||(this.Gf=!1);var r=this.Mi||this.Yl;e=this.lj||this.Zl;var w=(d=this.Ng||this.pj)&&!this.Gf;this.pj=this.Zl=this.Yl=!1;if(this.enabled){this.Ik&&(w=d=e=r=!1);d||(this.bf=0);p=this.mc;n=!1;this.ji&&((this.b.ac(this.e)||this.b.re(this.e))&&this.b.Vc(this.e,-this.Xa,-this.Ya,4,!0),this.ji=!1);!p||0!==this.fa||p.y===this.Ne&&p.x===this.Me||(a=p.x-this.Me,c=p.y-this.Ne,this.e.x+=a,this.e.y+=
c,this.e.C(),this.Me=p.x,this.Ne=p.y,n=!0,this.b.ac(this.e)&&this.b.Vc(this.e,-a,-c,2.5*Math.sqrt(a*a+c*c)));var l=this.Ln();if(c=this.b.ac(this.e))if(this.e.R.inputPredicted)this.b.Vc(this.e,-this.Xa,-this.Ya,10,!1);else if(this.b.bu(this.e,Math.max(this.e.width,this.e.height)/2))this.b.nh(this.e,c);else return;l?(this.jg=this.pg=!1,0<this.fa&&(this.eg||(this.b.Hl(this.e,-this.Xa,-this.Ya,l),this.eg=!0),this.fa=0),p!=l)?(this.mc=l,this.Me=l.x,this.Ne=l.y,this.b.nh(this.e,l)):n&&(c=this.b.ac(this.e))&&
(this.b.nh(this.e,c),0!==a&&(0<a?this.b.Vc(this.e,-this.We,-this.Xe):this.b.Vc(this.e,this.We,this.Xe)),this.b.Vc(this.e,-this.Xa,-this.Ya)):d||(this.jg=!0);if(l&&w||!l&&this.gk&&d&&this.jg&&!this.pg)p=this.e.x,n=this.e.y,this.e.x-=this.Xa,this.e.y-=this.Ya,this.e.C(),this.b.ac(this.e)?w=!1:(this.bf=this.Tk,this.b.trigger(ec.prototype.j.zq,this.e),this.Lc=2,this.fa=-this.Mg,w=!0,l?this.Gf=!0:this.pg=!0),this.e.x=p,this.e.y=n,this.e.C();l||(d&&0<this.bf?(this.fa=-this.Mg,this.bf-=b):(this.mc=null,
this.fa+=this.Id*b,this.fa>this.Ui&&(this.fa=this.Ui)),w&&(this.Gf=!0));this.eg=!!l;r==e&&(0>this.K?(this.K+=this.qf*b,0<this.K&&(this.K=0)):0<this.K&&(this.K-=this.qf*b,0>this.K&&(this.K=0)));r&&!e&&(this.K=0<this.K?this.K-(this.jf+this.qf)*b:this.K-this.jf*b);e&&!r&&(this.K=0>this.K?this.K+(this.jf+this.qf)*b:this.K+this.jf*b);this.K>this.Lf?this.K=this.Lf:this.K<-this.Lf&&(this.K=-this.Lf);r=!1;0!==this.K&&(p=this.e.x,n=this.e.y,a=this.K*b*this.We,c=this.K*b*this.Xe,this.e.x+=this.We*(1<this.K?
1:-1)-this.Xa,this.e.y+=this.Xe*(1<this.K?1:-1)-this.Ya,this.e.C(),d=!1,k=this.b.ac(this.e),this.e.x=p+a,this.e.y=n+c,this.e.C(),e=this.b.ac(this.e),!e&&l&&(e=this.b.re(this.e))&&(this.e.x=p,this.e.y=n,this.e.C(),this.b.Hc(this.e,e)?(e=null,d=!1):d=!0,this.e.x=p+a,this.e.y=n+c,this.e.C()),e?(a=Math.abs(this.K*b)+2,k||!this.b.Vc(this.e,-this.Xa,-this.Ya,a,d,e))?(this.b.nh(this.e,e),a=Math.max(Math.abs(this.K*b*2.5),30),this.b.Vc(this.e,this.We*(0>this.K?1:-1),this.Xe*(0>this.K?1:-1),a,!1)?!l||d||this.ki||
(p=this.e.x,n=this.e.y,this.e.x+=this.Xa,this.e.y+=this.Ya,this.b.ac(this.e)?this.b.Vc(this.e,-this.Xa,-this.Ya,3,!1)||(this.e.x=p,this.e.y=n,this.e.C()):(this.e.x=p,this.e.y=n,this.e.C())):(this.e.x=p,this.e.y=n,this.e.C()),d||(this.K=0)):!k&&!w&&Math.abs(this.fa)<Math.abs(this.Mg/4)&&(this.fa=0,l||(r=!0)):(p=this.Ln(),l&&!p?(c=Math.ceil(Math.abs(this.K*b))+2,p=this.e.x,n=this.e.y,this.e.x+=this.Xa*c,this.e.y+=this.Ya*c,this.e.C(),this.b.ac(this.e)||this.b.re(this.e)?this.b.Vc(this.e,-this.Xa,-this.Ya,
c+2,!0):(this.e.x=p,this.e.y=n,this.e.C())):p&&0===this.fa&&this.b.Hl(this.e,-this.Xa,-this.Ya,p)));if(0!==this.fa){p=this.e.x;n=this.e.y;this.e.x+=this.fa*b*this.Xa;this.e.y+=this.fa*b*this.Ya;a=this.e.x;e=this.e.y;this.e.C();c=this.b.ac(this.e);d=!1;if(!c&&0<this.fa&&!l){if((d=0<this.tf?null:this.b.re(this.e,!0))&&d.length){if(this.Fh){this.e.x=p;this.e.y=n;this.e.C();m=k=0;for(h=d.length;k<h;k++)d[m]=d[k],this.b.Hc(this.e,d[k])||m++;d.length=m;this.e.x=a;this.e.y=e;this.e.C()}1<=d.length&&(c=d[0])}d=
!!c}c&&(this.b.nh(this.e,c),this.bf=0,a=d?Math.abs(this.fa*b*2.5+10):Math.max(Math.abs(this.fa*b*2.5+10),30),this.b.Vc(this.e,this.Xa*(0>this.fa?1:-1),this.Ya*(0>this.fa?1:-1),a,d,c)?(this.mc=c,this.Me=c.x,this.Ne=c.y,(this.ki=d)&&(r=!0),this.fa=0):(this.e.x=p,this.e.y=n,this.e.C(),this.eg=!0,d||(this.fa=0)))}3!==this.Lc&&0<this.fa&&!l&&(this.b.trigger(ec.prototype.j.vq,this.e),this.Lc=3);if(l||r)3===this.Lc||r||w&&0===this.fa?(this.b.trigger(ec.prototype.j.Aq,this.e),this.Lc=0===this.K&&0===this.fa?
0:1):(0!==this.Lc&&0===this.K&&0===this.fa&&(this.b.trigger(ec.prototype.j.Kq,this.e),this.Lc=0),1===this.Lc||0===this.K&&0===this.fa||w||(this.b.trigger(ec.prototype.j.Dq,this.e),this.Lc=1));0<this.tf&&this.tf--;this.Fh=this.b.re(this.e)}};e.prototype.zq=function(){return!0};e.prototype.vq=function(){return!0};e.prototype.Kq=function(){return!0};e.prototype.Dq=function(){return!0};e.prototype.Aq=function(){return!0};b.j=new e;r.prototype.Rq=function(b){this.fa=b};b.Z=new r;b.Na=new function(){}})();
function Xb(){return[Zb,$b,Yb,ac,Z,X,bc,cc,ec,dc,W.prototype.j.iq,W.prototype.j.zm,bc.prototype.Z.Gm,cc.prototype.Z.Hm,W.prototype.Z.Qq,X.prototype.Z.aq,ec.prototype.Z.Rq,X.prototype.Z.Oq,Zb.prototype.Z.Play,Z.prototype.j.Oj,W.prototype.j.dq,X.prototype.Z.Nq,W.prototype.Na.$d,X.prototype.j.lq,Yb.prototype.Z.CallFunction,X.prototype.j.kq,X.prototype.j.ym,X.prototype.Na.Pj,X.prototype.j.hq,W.prototype.Z.Xp,X.prototype.Z.Pq,cc.prototype.j.ym,X.prototype.Z.Hm,cc.prototype.Na.Pj,W.prototype.j.cq,W.prototype.Z.$p,
W.prototype.Na.random,X.prototype.Na.Im,bc.prototype.Z.nq,Yb.prototype.j.Gh,W.prototype.Z.gq,Zb.prototype.Z.Uq,dc.prototype.Z.fq,Z.prototype.j.jq,W.prototype.j.Mj,W.prototype.Z.Wq]};
