// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,B,da,ea,fa,ga,ha,ia,ja,ma,na,oa,pa,qa,ra,sa,ta,wa,xa,ya,F,za,Aa,Ca,Da,Fa,T,Ga,Ha,Ia,Ja,Ka,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec={},fc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(b,a,f,c){this.set(b,a,f,c)}function m(){this.yb=this.xb=this.Ab=this.zb=this.Kb=this.Jb=this.$a=this.Za=0}function e(b,a,f,c){b<a?f<c?(z=b<f?b:f,O=a>c?a:c):(z=b<c?b:c,O=a>f?a:f):f<c?(z=a<f?a:f,O=b>c?b:c):(z=a<c?a:c,O=b>f?b:f)}function p(){this.items=this.Id=null;this.Ph=0;t&&(this.Id=new Set);this.eh=[];this.Fe=!0}function r(b){y[R++]=b}function u(){this.P=this.Ok=this.y=this.tl=0}function n(b){this.lb=[];this.Xi=this.Zi=this.$i=this.Yi=0;this.vi(b)}function a(b,a){this.zl=
b;this.yl=a;this.cells={}}function c(b,a){this.zl=b;this.yl=a;this.cells={}}function d(b,a,f){var c;return P.length?(c=P.pop(),c.hm=b,c.x=a,c.y=f,c):new aa(b,a,f)}function b(b,a,c){this.hm=b;this.x=a;this.y=c;this.sb=new ba}function f(b,a,c){var f;return V.length?(f=V.pop(),f.hm=b,f.x=a,f.y=c,f):new ca(b,a,c)}function h(b,a,c){this.hm=b;this.x=a;this.y=c;this.sb=[];this.Dg=!0;this.Fd=new ba;this.ih=!1}function l(b,a){return b.vd-a.vd}B=function(b){window.console&&window.console.log&&window.console.log(b)};
da=function(b){window.console&&window.console.error&&window.console.error(b)};ea=function(b){return"undefined"===typeof b};fa=function(b){return"number"===typeof b};ga=function(b){return"string"===typeof b};ha=function(b){return 0<b&&0===(b-1&b)};ia=function(b){--b;for(var a=1;32>a;a<<=1)b=b|b>>a;return b+1};ja=function(b){return 0>b?-b:b};ma=function(b,a){return b>a?b:a};na=function(b,a){return b<a?b:a};oa=Math.PI;pa=function(b){return 0<=b?b|0:(b|0)-1};qa=function(b){var a=b|0;return a===b?a:a+
1};ra=function(b,a,c,f,d,w,v,l){var h,k,q,t;b<c?(k=b,h=c):(k=c,h=b);d<v?(t=d,q=v):(t=v,q=d);if(h<t||k>q)return!1;a<f?(k=a,h=f):(k=f,h=a);w<l?(t=w,q=l):(t=l,q=w);if(h<t||k>q)return!1;h=d-b+v-c;k=w-a+l-f;b=c-b;a=f-a;d=v-d;w=l-w;l=ja(a*d-w*b);return ja(d*k-w*h)>l?!1:ja(b*k-a*h)<=l};g.prototype.set=function(b,a,c,f){this.left=b;this.top=a;this.right=c;this.bottom=f};g.prototype.kg=function(b){this.left=b.left;this.top=b.top;this.right=b.right;this.bottom=b.bottom};g.prototype.width=function(){return this.right-
this.left};g.prototype.height=function(){return this.bottom-this.top};g.prototype.offset=function(b,a){this.left+=b;this.top+=a;this.right+=b;this.bottom+=a;return this};g.prototype.normalize=function(){var b=0;this.left>this.right&&(b=this.left,this.left=this.right,this.right=b);this.top>this.bottom&&(b=this.top,this.top=this.bottom,this.bottom=b)};g.prototype.Yv=function(b){return!(b.right<this.left||b.bottom<this.top||b.left>this.right||b.top>this.bottom)};g.prototype.Zv=function(b,a,c){return!(b.right+
a<this.left||b.bottom+c<this.top||b.left+a>this.right||b.top+c>this.bottom)};g.prototype.Pb=function(b,a){return b>=this.left&&b<=this.right&&a>=this.top&&a<=this.bottom};g.prototype.rh=function(b){return this.left===b.left&&this.top===b.top&&this.right===b.right&&this.bottom===b.bottom};sa=g;m.prototype.ti=function(b){this.Za=b.left;this.$a=b.top;this.Jb=b.right;this.Kb=b.top;this.zb=b.right;this.Ab=b.bottom;this.xb=b.left;this.yb=b.bottom};m.prototype.Qq=function(b,a){if(0===a)this.ti(b);else{var c=
Math.sin(a),f=Math.cos(a),d=b.left*c,w=b.top*c,v=b.right*c,c=b.bottom*c,l=b.left*f,h=b.top*f,k=b.right*f,f=b.bottom*f;this.Za=l-w;this.$a=h+d;this.Jb=k-w;this.Kb=h+v;this.zb=k-c;this.Ab=f+v;this.xb=l-c;this.yb=f+d}};m.prototype.offset=function(b,a){this.Za+=b;this.$a+=a;this.Jb+=b;this.Kb+=a;this.zb+=b;this.Ab+=a;this.xb+=b;this.yb+=a;return this};var z=0,O=0;m.prototype.zo=function(b){e(this.Za,this.Jb,this.zb,this.xb);b.left=z;b.right=O;e(this.$a,this.Kb,this.Ab,this.yb);b.top=z;b.bottom=O};m.prototype.Pb=
function(b,a){var c=this.Za,f=this.$a,d=this.Jb-c,w=this.Kb-f,v=this.zb-c,l=this.Ab-f,h=b-c,k=a-f,q=d*d+w*w,t=d*v+w*l,w=d*h+w*k,y=v*v+l*l,z=v*h+l*k,n=1/(q*y-t*t),d=(y*w-t*z)*n,q=(q*z-t*w)*n;if(0<=d&&0<q&&1>d+q)return!0;d=this.xb-c;w=this.yb-f;q=d*d+w*w;t=d*v+w*l;w=d*h+w*k;n=1/(q*y-t*t);d=(y*w-t*z)*n;q=(q*z-t*w)*n;return 0<=d&&0<q&&1>d+q};m.prototype.dd=function(b,a){if(a)switch(b){case 0:return this.Za;case 1:return this.Jb;case 2:return this.zb;case 3:return this.xb;case 4:return this.Za;default:return this.Za}else switch(b){case 0:return this.$a;
case 1:return this.Kb;case 2:return this.Ab;case 3:return this.yb;case 4:return this.$a;default:return this.$a}};m.prototype.Tp=function(){return(this.Za+this.Jb+this.zb+this.xb)/4};m.prototype.Up=function(){return(this.$a+this.Kb+this.Ab+this.yb)/4};m.prototype.ip=function(b){var a=b.Tp(),c=b.Up();if(this.Pb(a,c))return!0;a=this.Tp();c=this.Up();if(b.Pb(a,c))return!0;var f,d,w,v,l,h,k,q;for(k=0;4>k;k++)for(q=0;4>q;q++)if(a=this.dd(k,!0),c=this.dd(k,!1),f=this.dd(k+1,!0),d=this.dd(k+1,!1),w=b.dd(q,
!0),v=b.dd(q,!1),l=b.dd(q+1,!0),h=b.dd(q+1,!1),ra(a,c,f,d,w,v,l,h))return!0;return!1};ta=m;wa=function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};xa=function(b,a){var c,f;a=pa(a);if(!(0>a||a>=b.length)){c=a;for(f=b.length-1;c<f;c++)b[c]=b[c+1];ya(b,f)}};ya=function(b,a){b.length=a};F=function(b){ya(b,0)};za=function(b,a){F(b);var c,f;c=0;for(f=a.length;c<f;++c)b[c]=a[c]};Aa=function(b,a){b.push.apply(b,a)};Ca=function(b,a){var c,f;c=0;for(f=b.length;c<f;++c)if(b[c]===a)return c;
return-1};Da=function(b,a){var c=Ca(b,a);-1!==c&&xa(b,c)};Fa=function(b,a,c){return b<a?a:b>c?c:b};T=function(b){return b/(180/oa)};Ga=function(b){return 180/oa*b};Ha=function(b){b%=360;0>b&&(b+=360);return b};Ia=function(b){b%=2*oa;0>b&&(b+=2*oa);return b};Ja=function(b){return Ha(Ga(b))};Ka=function(b){return Ia(T(b))};Na=function(b,a,c,f){return Math.atan2(f-a,c-b)};Oa=function(b,a){if(b===a)return 0;var c=Math.sin(b),f=Math.cos(b),d=Math.sin(a),w=Math.cos(a),c=c*d+f*w;return 1<=c?0:-1>=c?oa:Math.acos(c)};
Pa=function(b,a,c){var f=Math.sin(b),d=Math.cos(b),w=Math.sin(a),v=Math.cos(a);return Math.acos(f*w+d*v)>c?0<d*w-f*v?Ia(b+c):Ia(b-c):Ia(a)};Qa=function(b,a){var c=Math.sin(b),f=Math.cos(b),d=Math.sin(a),w=Math.cos(a);return 0>=f*d-c*w};Ra=function(b,a,c,f,d,w){if(0===c)return w?b:a;var v=Math.sin(c);c=Math.cos(c);b-=f;a-=d;var l=b*v;b=b*c-a*v;a=a*c+l;return w?b+f:a+d};Sa=function(b,a,c,f){b=c-b;a=f-a;return Math.sqrt(b*b+a*a)};Ta=function(b,a){return!b!==!a};Ua=function(b,a,c){return b+(a-b)*c};Va=
function(b){for(var a in b)if(b.hasOwnProperty(a))return!0;return!1};Wa=function(b){for(var a in b)b.hasOwnProperty(a)&&delete b[a]};var x=+new Date;ab=function(){if("undefined"!==typeof window.performance){var b=window.performance;if("undefined"!==typeof b.now)return b.now();if("undefined"!==typeof b.webkitNow)return b.webkitNow();if("undefined"!==typeof b.mozNow)return b.mozNow();if("undefined"!==typeof b.msNow)return b.msNow()}return Date.now()-x};var k=!1,q=k=!1,W=!1;"undefined"!==typeof window&&
(k=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),k=!k&&/safari/i.test(navigator.userAgent),q=/(iphone|ipod|ipad)/i.test(navigator.userAgent),W=window.c2ejecta);var t=!k&&!W&&!q&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(b){return this.be()?!1:t?this.Id.has(b):this.items&&this.items.hasOwnProperty(b)};p.prototype.add=function(b){if(t)this.Id.has(b)||(this.Id.add(b),this.Fe=!1);else{var a=b.toString(),c=this.items;
c?c.hasOwnProperty(a)||(c[a]=b,this.Ph++,this.Fe=!1):(this.items={},this.items[a]=b,this.Ph=1,this.Fe=!1)}};p.prototype.remove=function(b){if(!this.be())if(t)this.Id.has(b)&&(this.Id["delete"](b),this.Fe=!1);else if(this.items){b=b.toString();var a=this.items;a.hasOwnProperty(b)&&(delete a[b],this.Ph--,this.Fe=!1)}};p.prototype.clear=function(){this.be()||(t?this.Id.clear():(this.items=null,this.Ph=0),F(this.eh),this.Fe=!0)};p.prototype.be=function(){return 0===this.count()};p.prototype.count=function(){return t?
this.Id.size:this.Ph};var y=null,R=0;p.prototype.Ax=function(){if(!this.Fe){if(t)F(this.eh),y=this.eh,R=0,this.Id.forEach(r),y=null,R=0;else{var b=this.eh;F(b);var a,c=0,f=this.items;if(f)for(a in f)f.hasOwnProperty(a)&&(b[c++]=f[a])}this.Fe=!0}};p.prototype.kf=function(){this.Ax();return this.eh};ba=p;new ba;bb=function(b,a){t?cb(b,a.Id):db(b,a.kf())};cb=function(b,a){var c,f,d,w;f=c=0;for(d=b.length;c<d;++c)w=b[c],a.has(w)||(b[f++]=w);ya(b,f)};db=function(b,a){var c,f,d,w;f=c=0;for(d=b.length;c<
d;++c)w=b[c],-1===Ca(a,w)&&(b[f++]=w);ya(b,f)};u.prototype.add=function(b){this.y=b-this.tl;this.Ok=this.P+this.y;this.tl=this.Ok-this.P-this.y;this.P=this.Ok};u.prototype.reset=function(){this.P=this.Ok=this.y=this.tl=0};eb=u;fb=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};n.prototype.vi=function(b){this.zq=b;this.od=b.length/2;this.lb.length=b.length;this.cj=this.dj=-1;this.Co=0};n.prototype.Ag=function(){return!this.zq.length};n.prototype.ya=function(){for(var b=this.lb,a=b[0],
c=a,f=b[1],d=f,w,v,l=1,h=this.od;l<h;++l)v=2*l,w=b[v],v=b[v+1],w<a&&(a=w),w>c&&(c=w),v<f&&(f=v),v>d&&(d=v);this.Yi=a;this.Zi=c;this.$i=f;this.Xi=d};n.prototype.ti=function(b,a,c){this.lb.length=8;this.od=4;var f=this.lb;f[0]=b.left-a;f[1]=b.top-c;f[2]=b.right-a;f[3]=b.top-c;f[4]=b.right-a;f[5]=b.bottom-c;f[6]=b.left-a;f[7]=b.bottom-c;this.dj=b.right-b.left;this.cj=b.bottom-b.top;this.ya()};n.prototype.Vg=function(b,a,c,f,d){this.lb.length=8;this.od=4;var w=this.lb;w[0]=b.Za-a;w[1]=b.$a-c;w[2]=b.Jb-
a;w[3]=b.Kb-c;w[4]=b.zb-a;w[5]=b.Ab-c;w[6]=b.xb-a;w[7]=b.yb-c;this.dj=f;this.cj=d;this.ya()};n.prototype.Pq=function(b){this.od=b.od;za(this.lb,b.lb);this.Yi=b.Yi;this.$i-b.$i;this.Zi=b.Zi;this.Xi=b.Xi};n.prototype.hg=function(b,a,c){if(this.dj!==b||this.cj!==a||this.Co!==c){this.dj=b;this.cj=a;this.Co=c;var f,d,w,v,l,h=0,k=1,q=this.zq,t=this.lb;0!==c&&(h=Math.sin(c),k=Math.cos(c));c=0;for(w=this.od;c<w;c++)f=2*c,d=f+1,v=q[f]*b,l=q[d]*a,t[f]=v*k-l*h,t[d]=l*k+v*h;this.ya()}};n.prototype.Pb=function(b,
a){var c=this.lb;if(b===c[0]&&a===c[1])return!0;var f,d,w,v=this.od,l=this.Yi-110,h=this.$i-101,k=this.Zi+131,q=this.Xi+120,t,y,z=0,n=0;for(f=0;f<v;f++)d=2*f,w=(f+1)%v*2,t=c[d],d=c[d+1],y=c[w],w=c[w+1],ra(l,h,b,a,t,d,y,w)&&z++,ra(k,q,b,a,t,d,y,w)&&n++;return 1===z%2||1===n%2};n.prototype.Gh=function(b,a,c){var f=b.lb,d=this.lb;if(this.Pb(f[0]+a,f[1]+c)||b.Pb(d[0]-a,d[1]-c))return!0;var w,v,l,h,k,q,t,y,z,n,x,g;w=0;for(h=this.od;w<h;w++)for(v=2*w,l=(w+1)%h*2,y=d[v],v=d[v+1],z=d[l],n=d[l+1],l=0,t=b.od;l<
t;l++)if(k=2*l,q=(l+1)%t*2,x=f[k]+a,k=f[k+1]+c,g=f[q]+a,q=f[q+1]+c,ra(y,v,z,n,x,k,g,q))return!0;return!1};gb=n;a.prototype.Oe=function(b,a,c){var f;f=this.cells[b];return f?(f=f[a])?f:c?(f=d(this,b,a),this.cells[b][a]=f):null:c?(f=d(this,b,a),this.cells[b]={},this.cells[b][a]=f):null};a.prototype.ec=function(b){return pa(b/this.zl)};a.prototype.fc=function(b){return pa(b/this.yl)};a.prototype.update=function(b,a,c){var f,d,w,v,l;if(a)for(f=a.left,d=a.right;f<=d;++f)for(w=a.top,v=a.bottom;w<=v;++w)if(!c||
!c.Pb(f,w))if(l=this.Oe(f,w,!1))l.remove(b),l.be()&&(l.sb.clear(),1E3>P.length&&P.push(l),this.cells[f][w]=null);if(c)for(f=c.left,d=c.right;f<=d;++f)for(w=c.top,v=c.bottom;w<=v;++w)a&&a.Pb(f,w)||this.Oe(f,w,!0).om(b)};a.prototype.Bk=function(b,a){var c,f,d,w,v,l;c=this.ec(b.left);d=this.fc(b.top);f=this.ec(b.right);for(v=this.fc(b.bottom);c<=f;++c)for(w=d;w<=v;++w)(l=this.Oe(c,w,!1))&&l.dump(a)};hb=a;c.prototype.Oe=function(b,a,c){var d;d=this.cells[b];return d?(d=d[a])?d:c?(d=f(this,b,a),this.cells[b][a]=
d):null:c?(d=f(this,b,a),this.cells[b]={},this.cells[b][a]=d):null};c.prototype.ec=function(b){return pa(b/this.zl)};c.prototype.fc=function(b){return pa(b/this.yl)};c.prototype.update=function(b,a,c){var f,d,w,v,l;if(a)for(f=a.left,d=a.right;f<=d;++f)for(w=a.top,v=a.bottom;w<=v;++w)if(!c||!c.Pb(f,w))if(l=this.Oe(f,w,!1))l.remove(b),l.be()&&(l.reset(),1E3>V.length&&V.push(l),this.cells[f][w]=null);if(c)for(f=c.left,d=c.right;f<=d;++f)for(w=c.top,v=c.bottom;w<=v;++w)a&&a.Pb(f,w)||this.Oe(f,w,!0).om(b)};
c.prototype.Bk=function(b,a,c,f,d){var w,l;b=this.ec(b);a=this.fc(a);c=this.ec(c);for(w=this.fc(f);b<=c;++b)for(f=a;f<=w;++f)(l=this.Oe(b,f,!1))&&l.dump(d)};c.prototype.sw=function(b){var a,c,f,d,w;a=b.left;f=b.top;c=b.right;for(d=b.bottom;a<=c;++a)for(b=f;b<=d;++b)if(w=this.Oe(a,b,!1))w.Dg=!1};ib=c;var P=[];b.prototype.be=function(){return this.sb.be()};b.prototype.om=function(b){this.sb.add(b)};b.prototype.remove=function(b){this.sb.remove(b)};b.prototype.dump=function(b){Aa(b,this.sb.kf())};aa=
b;var V=[];h.prototype.be=function(){if(!this.sb.length)return!0;if(this.sb.length>this.Fd.count())return!1;this.Ql();return!0};h.prototype.om=function(b){this.Fd.contains(b)?(this.Fd.remove(b),this.Fd.be()&&(this.ih=!1)):this.sb.length?(this.sb[this.sb.length-1].Ad()>b.Ad()&&(this.Dg=!1),this.sb.push(b)):(this.sb.push(b),this.Dg=!0)};h.prototype.remove=function(b){this.Fd.add(b);this.ih=!0;30<=this.Fd.count()&&this.Ql()};h.prototype.Ql=function(){this.ih&&(this.Fd.count()===this.sb.length?this.reset():
(bb(this.sb,this.Fd),this.Fd.clear(),this.ih=!1))};h.prototype.Bu=function(){this.Dg||(this.sb.sort(l),this.Dg=!0)};h.prototype.reset=function(){F(this.sb);this.Dg=!0;this.Fd.clear();this.ih=!1};h.prototype.dump=function(b){this.Ql();this.Bu();this.sb.length&&b.push(this.sb)};ca=h;var G="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");jb=function(b){return 0>=b||11<=b?"source-over":G[b-1]};kb=function(b,a,c){if(c)switch(b.Ub=
c.ONE,b.Qb=c.ONE_MINUS_SRC_ALPHA,a){case 1:b.Ub=c.ONE;b.Qb=c.ONE;break;case 3:b.Ub=c.ONE;b.Qb=c.ZERO;break;case 4:b.Ub=c.ONE_MINUS_DST_ALPHA;b.Qb=c.ONE;break;case 5:b.Ub=c.DST_ALPHA;b.Qb=c.ZERO;break;case 6:b.Ub=c.ZERO;b.Qb=c.SRC_ALPHA;break;case 7:b.Ub=c.ONE_MINUS_DST_ALPHA;b.Qb=c.ZERO;break;case 8:b.Ub=c.ZERO;b.Qb=c.ONE_MINUS_SRC_ALPHA;break;case 9:b.Ub=c.DST_ALPHA;b.Qb=c.ONE_MINUS_SRC_ALPHA;break;case 10:b.Ub=c.ONE_MINUS_DST_ALPHA,b.Qb=c.SRC_ALPHA}};lb=function(b){return Math.round(1E6*b)/1E6};
mb=function(b,a){return"string"!==typeof b||"string"!==typeof a||b.length!==a.length?!1:b===a?!0:b.toLowerCase()===a.toLowerCase()};nb=function(b){b=b.target;return!b||b===document||b===window||document&&document.body&&b===document.body||mb(b.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(g){var m=new gc(3);g&&(m[0]=g[0],m[1]=g[1],m[2]=g[2]);return m}
function ic(g){var m=new gc(16);g&&(m[0]=g[0],m[1]=g[1],m[2]=g[2],m[3]=g[3],m[4]=g[4],m[5]=g[5],m[6]=g[6],m[7]=g[7],m[8]=g[8],m[9]=g[9],m[10]=g[10],m[11]=g[11],m[12]=g[12],m[13]=g[13],m[14]=g[14],m[15]=g[15]);return m}function jc(g,m){m[0]=g[0];m[1]=g[1];m[2]=g[2];m[3]=g[3];m[4]=g[4];m[5]=g[5];m[6]=g[6];m[7]=g[7];m[8]=g[8];m[9]=g[9];m[10]=g[10];m[11]=g[11];m[12]=g[12];m[13]=g[13];m[14]=g[14];m[15]=g[15]}
function kc(g,m){var e=m[0],p=m[1];m=m[2];g[0]*=e;g[1]*=e;g[2]*=e;g[3]*=e;g[4]*=p;g[5]*=p;g[6]*=p;g[7]*=p;g[8]*=m;g[9]*=m;g[10]*=m;g[11]*=m}
function lc(g,m,e,p){p||(p=ic());var r,u,n,a,c,d,b,f,h=g[0],l=g[1];g=g[2];u=e[0];n=e[1];r=e[2];e=m[1];d=m[2];h===m[0]&&l===e&&g===d?(g=p,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(e=h-m[0],d=l-m[1],b=g-m[2],f=1/Math.sqrt(e*e+d*d+b*b),e*=f,d*=f,b*=f,m=n*b-r*d,r=r*e-u*b,u=u*d-n*e,(f=Math.sqrt(m*m+r*r+u*u))?(f=1/f,m*=f,r*=f,u*=f):u=r=m=0,n=d*u-b*r,a=b*m-e*u,c=e*r-d*m,(f=Math.sqrt(n*n+a*a+c*c))?(f=1/f,n*=f,a*=f,c*=f):c=a=n=0,
p[0]=m,p[1]=n,p[2]=e,p[3]=0,p[4]=r,p[5]=a,p[6]=d,p[7]=0,p[8]=u,p[9]=c,p[10]=b,p[11]=0,p[12]=-(m*h+r*l+u*g),p[13]=-(n*h+a*l+c*g),p[14]=-(e*h+d*l+b*g),p[15]=1)}
(function(){function g(a,c,d){this.Qe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ca=!!d;this.Qj=this.Jh=!1;this.Gl=0;this.cl=1;this.Wn=1E3;this.Jx=(this.Wn-this.cl)/32768;this.ul=hc([0,0,100]);this.Cp=hc([0,0,0]);this.mr=hc([0,1,0]);this.Oi=hc([1,1,1]);this.Io=!0;this.ik=ic();this.Ec=ic();this.Am=ic();this.Fl=ic();this.D=a;this.ep()}function m(a,c,d){this.D=a;this.wi=c;this.name=d;this.Tc=a.getAttribLocation(c,"aPos");this.We=a.getAttribLocation(c,
"aTex");this.Ap=a.getUniformLocation(c,"matP");this.ek=a.getUniformLocation(c,"matMV");this.Ig=a.getUniformLocation(c,"opacity");this.Fm=a.getUniformLocation(c,"colorFill");this.Bp=a.getUniformLocation(c,"samplerFront");this.Xh=a.getUniformLocation(c,"samplerBack");this.Sf=a.getUniformLocation(c,"destStart");this.Rf=a.getUniformLocation(c,"destEnd");this.Zh=a.getUniformLocation(c,"seconds");this.Hm=a.getUniformLocation(c,"pixelWidth");this.Gm=a.getUniformLocation(c,"pixelHeight");this.Wh=a.getUniformLocation(c,
"layerScale");this.Vh=a.getUniformLocation(c,"layerAngle");this.$h=a.getUniformLocation(c,"viewOrigin");this.Yh=a.getUniformLocation(c,"scrollPos");this.Tv=!!(this.Hm||this.Gm||this.Zh||this.Xh||this.Sf||this.Rf||this.Wh||this.Vh||this.$h||this.Yh);this.Kp=this.Lp=-999;this.hk=1;this.Gp=this.Fp=0;this.Ip=this.Ep=this.Dp=1;this.Op=this.Np=this.Mp=this.Qp=this.Pp=this.Hp=0;this.zm=[];this.Jp=ic();this.Ig&&a.uniform1f(this.Ig,1);this.Fm&&a.uniform4f(this.Fm,1,1,1,1);this.Bp&&a.uniform1i(this.Bp,0);this.Xh&&
a.uniform1i(this.Xh,1);this.Sf&&a.uniform2f(this.Sf,0,0);this.Rf&&a.uniform2f(this.Rf,1,1);this.Wh&&a.uniform1f(this.Wh,1);this.Vh&&a.uniform1f(this.Vh,0);this.$h&&a.uniform2f(this.$h,0,0);this.Yh&&a.uniform2f(this.Yh,0,0);this.Zh&&a.uniform1f(this.Zh,0);this.Ef=!1}function e(a,c){return a[0]===c[0]&&a[1]===c[1]&&a[2]===c[2]&&a[3]===c[3]&&a[4]===c[4]&&a[5]===c[5]&&a[6]===c[6]&&a[7]===c[7]&&a[8]===c[8]&&a[9]===c[9]&&a[10]===c[10]&&a[11]===c[11]&&a[12]===c[12]&&a[13]===c[13]&&a[14]===c[14]&&a[15]===
c[15]}function p(a,c){this.type=a;this.F=c;this.D=c.D;this.Bd=this.cc=this.lq=0;this.aa=this.$c=null;this.Rq=[]}var r=ic();g.prototype.ep=function(){var a=this.D,c;this.vp=1;this.Kf=this.Jf=null;this.nj=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Ca?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.wp=a.ONE;this.up=a.ONE_MINUS_SRC_ALPHA;
this.al=new Float32Array(8E3*(this.Ca?3:2));this.Pk=new Float32Array(16E3);this.wq=new Float32Array(32E3);this.gn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.gn);a.bufferData(a.ARRAY_BUFFER,this.wq.byteLength,a.DYNAMIC_DRAW);this.Mi=Array(4);this.Di=Array(4);for(c=0;4>c;c++)this.Mi[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Mi[c]),a.bufferData(a.ARRAY_BUFFER,this.al.byteLength,a.DYNAMIC_DRAW),this.Di[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Di[c]),a.bufferData(a.ARRAY_BUFFER,
this.Pk.byteLength,a.DYNAMIC_DRAW);this.Sd=0;this.Wv=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Wv);for(var d=new Uint16Array(12E3),b=c=0;12E3>c;)d[c++]=b,d[c++]=b+1,d[c++]=b+2,d[c++]=b,d[c++]=b+2,d[c++]=b+3,b+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,d,a.STATIC_DRAW);this.hn=this.Zg=this.ue=0;this.La=[];c=this.Ca?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";d=this.oh({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}"},c,"<default>");this.La.push(d);d=this.oh({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.La.push(d);d=this.oh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.La.push(d);d=this.oh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.La.push(d);for(var f in mc)mc.hasOwnProperty(f)&&this.La.push(this.oh(mc[f],c,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Ee=[];this.Qd=0;this.Rb=!1;this.Fo=this.Rh=-1;this.lg=null;this.Pl=a.createFramebuffer();this.rj=this.Ck=null;this.xo=!1;this.Ca&&(this.rj=a.createRenderbuffer());this.jf=hc([0,0,0]);this.Rp=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Rp&&(this.Rp=2048);this.nc(0)};m.prototype.Qn=function(a){e(this.Jp,a)||(jc(a,this.Jp),this.D.uniformMatrix4fv(this.ek,
!1,a))};g.prototype.oh=function(a,c,d){var b=this.D,f=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(f,a.src);b.compileShader(f);if(!b.getShaderParameter(f,b.COMPILE_STATUS))return b.deleteShader(f),null;var h=b.createShader(b.VERTEX_SHADER);b.shaderSource(h,c);b.compileShader(h);if(!b.getShaderParameter(h,b.COMPILE_STATUS))return b.deleteShader(f),b.deleteShader(h),null;c=b.createProgram();b.attachShader(c,f);b.attachShader(c,h);b.linkProgram(c);if(!b.getProgramParameter(c,b.LINK_STATUS))return b.deleteShader(f),
b.deleteShader(h),b.deleteProgram(c),null;b.useProgram(c);b.deleteShader(f);b.deleteShader(h);d=new m(b,c,d);d.vj=a.vj||0;d.wj=a.wj||0;d.El=!!a.El;d.Wc=!!a.Wc;d.pl=!!a.pl;d.Y=a.Y||[];a=0;for(f=d.Y.length;a<f;a++)d.Y[a][1]=b.getUniformLocation(c,d.Y[a][0]),d.zm.push(0),b.uniform1f(d.Y[a][1],0);return d};g.prototype.dm=function(a){var c,d;c=0;for(d=this.La.length;c<d;c++)if(this.La[c].name===a)return c;return-1};g.prototype.yq=function(a,c,d){var b=this.Ec,f=this.ik,h=[0,0,0,0,0,0,0,0];h[0]=b[0]*a+
b[4]*c+b[12];h[1]=b[1]*a+b[5]*c+b[13];h[2]=b[2]*a+b[6]*c+b[14];h[3]=b[3]*a+b[7]*c+b[15];h[4]=f[0]*h[0]+f[4]*h[1]+f[8]*h[2]+f[12]*h[3];h[5]=f[1]*h[0]+f[5]*h[1]+f[9]*h[2]+f[13]*h[3];h[6]=f[2]*h[0]+f[6]*h[1]+f[10]*h[2]+f[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],d[0]=(.5*h[4]+.5)*this.width,d[1]=(.5*h[5]+.5)*this.height)};g.prototype.oe=function(a,c,d){if(this.width!==a||this.height!==c||d){this.vf();d=this.D;this.width=a;this.height=c;d.viewport(0,0,a,c);lc(this.ul,
this.Cp,this.mr,this.Ec);if(this.Ca){var b=-a/2;a=a/2;var f=c/2;c=-c/2;var h=this.cl,l=this.Wn,z=this.ik;z||(z=ic());var n=a-b,x=c-f,k=l-h;z[0]=2/n;z[1]=0;z[2]=0;z[3]=0;z[4]=0;z[5]=2/x;z[6]=0;z[7]=0;z[8]=0;z[9]=0;z[10]=-2/k;z[11]=0;z[12]=-(b+a)/n;z[13]=-(c+f)/x;z[14]=-(l+h)/k;z[15]=1;this.Oi[0]=1;this.Oi[1]=1}else c=a/c,b=this.cl,a=this.Wn,z=this.ik,l=b*Math.tan(45*Math.PI/360),c*=l,f=-c,h=-l,z||(z=ic()),n=c-f,x=l-h,k=a-b,z[0]=2*b/n,z[1]=0,z[2]=0,z[3]=0,z[4]=0,z[5]=2*b/x,z[6]=0,z[7]=0,z[8]=(c+f)/
n,z[9]=(l+h)/x,z[10]=-(a+b)/k,z[11]=-1,z[12]=0,z[13]=0,z[14]=-(a*b*2)/k,z[15]=0,b=[0,0],a=[0,0],this.yq(0,0,b),this.yq(1,1,a),this.Oi[0]=1/(a[0]-b[0]),this.Oi[1]=-1/(a[1]-b[1]);b=0;for(a=this.La.length;b<a;b++)f=this.La[b],f.Ef=!1,f.Ap&&(d.useProgram(f.wi),d.uniformMatrix4fv(f.Ap,!1,this.ik));d.useProgram(this.La[this.Rh].wi);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE0);this.Kf=this.Jf=null;this.rj&&(d.bindFramebuffer(d.FRAMEBUFFER,
this.Pl),d.bindRenderbuffer(d.RENDERBUFFER,this.rj),d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_COMPONENT16,this.width,this.height),this.xo||(d.framebufferRenderbuffer(d.FRAMEBUFFER,d.DEPTH_ATTACHMENT,d.RENDERBUFFER,this.rj),this.xo=!0),d.bindRenderbuffer(d.RENDERBUFFER,null),d.bindFramebuffer(d.FRAMEBUFFER,null),this.Ck=null)}};g.prototype.Hd=function(){lc(this.ul,this.Cp,this.mr,this.Ec);kc(this.Ec,this.Oi)};g.prototype.translate=function(a,c){if(0!==a||0!==c){this.jf[0]=a;this.jf[1]=c;this.jf[2]=
0;var d=this.Ec,b=this.jf,f=b[0],h=b[1],b=b[2];d[12]=d[0]*f+d[4]*h+d[8]*b+d[12];d[13]=d[1]*f+d[5]*h+d[9]*b+d[13];d[14]=d[2]*f+d[6]*h+d[10]*b+d[14];d[15]=d[3]*f+d[7]*h+d[11]*b+d[15]}};g.prototype.scale=function(a,c){if(1!==a||1!==c)this.jf[0]=a,this.jf[1]=c,this.jf[2]=1,kc(this.Ec,this.jf)};g.prototype.tn=function(a){if(0!==a){var c=this.Ec,d,b=Math.sin(a);a=Math.cos(a);var f=c[0],h=c[1],l=c[2],n=c[3],g=c[4],x=c[5],k=c[6],q=c[7];d?c!==d&&(d[8]=c[8],d[9]=c[9],d[10]=c[10],d[11]=c[11],d[12]=c[12],d[13]=
c[13],d[14]=c[14],d[15]=c[15]):d=c;d[0]=f*a+g*b;d[1]=h*a+x*b;d[2]=l*a+k*b;d[3]=n*a+q*b;d[4]=f*-b+g*a;d[5]=h*-b+x*a;d[6]=l*-b+k*a;d[7]=n*-b+q*a}};g.prototype.ud=function(){if(!e(this.Am,this.Ec)){var a=this.vc();a.type=5;a.aa?jc(this.Ec,a.aa):a.aa=ic(this.Ec);jc(this.Ec,this.Am);this.Rb=!1}};g.prototype.Hk=function(a){this.Ca&&(32760<a&&(a=32760),this.Gl=this.ul[2]-this.cl-a*this.Jx)};p.prototype.ku=function(){var a=this.D,c=this.F;0!==this.cc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),
a.bindFramebuffer(a.FRAMEBUFFER,c.Pl),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),c.Qj=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),c.Qj=!1)};p.prototype.ou=function(){this.D.bindTexture(this.D.TEXTURE_2D,this.$c)};p.prototype.pu=function(){var a=this.D;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.$c);a.activeTexture(a.TEXTURE0)};p.prototype.lu=function(){var a=this.lq,
c=this.F;c.nj=a;c=c.lg;c.Ig&&c.hk!==a&&(c.hk=a,this.D.uniform1f(c.Ig,a))};p.prototype.fu=function(){this.D.drawElements(this.D.TRIANGLES,this.Bd,this.D.UNSIGNED_SHORT,this.cc)};p.prototype.hu=function(){this.D.blendFunc(this.cc,this.Bd)};p.prototype.ru=function(){var a,c,d,b=this.F.La,f=this.F.Fo;a=0;for(c=b.length;a<c;a++)d=b[a],a===f&&d.ek?(d.Qn(this.aa),d.Ef=!0):d.Ef=!1;jc(this.aa,this.F.Fl)};p.prototype.gu=function(){var a=this.D,c=this.F;this.$c?(c.Kf===this.$c&&(a.activeTexture(a.TEXTURE1),
a.bindTexture(a.TEXTURE_2D,null),c.Kf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.Pl),c.Qj||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.$c,0)):(c.Ca||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};p.prototype.du=function(){var a=this.D,c=this.cc;0===c?(a.clearColor(this.aa[0],this.aa[1],this.aa[2],this.aa[3]),a.clear(a.COLOR_BUFFER_BIT)):1===c?(a.enable(a.SCISSOR_TEST),a.scissor(this.aa[0],
this.aa[1],this.aa[2],this.aa[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};p.prototype.ju=function(){var a=this.D;0!==this.cc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};p.prototype.eu=function(){var a=this.D,c=this.F;c.Ca&&a.disable(a.DEPTH_TEST);var d=c.La[1];a.useProgram(d.wi);!d.Ef&&d.ek&&(d.Qn(c.Fl),d.Ef=!0);a.enableVertexAttribArray(d.Tc);a.bindBuffer(a.ARRAY_BUFFER,c.gn);a.vertexAttribPointer(d.Tc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,
this.cc/4,this.Bd);d=c.lg;a.useProgram(d.wi);0<=d.Tc&&(a.enableVertexAttribArray(d.Tc),a.bindBuffer(a.ARRAY_BUFFER,c.Mi[c.Sd]),a.vertexAttribPointer(d.Tc,c.Ca?3:2,a.FLOAT,!1,0,0));0<=d.We&&(a.enableVertexAttribArray(d.We),a.bindBuffer(a.ARRAY_BUFFER,c.Di[c.Sd]),a.vertexAttribPointer(d.We,2,a.FLOAT,!1,0,0));c.Ca&&a.enable(a.DEPTH_TEST)};p.prototype.mu=function(){var a=this.D,c=this.F,d=c.La[this.cc];c.Fo=this.cc;c.lg=d;a.useProgram(d.wi);!d.Ef&&d.ek&&(d.Qn(c.Fl),d.Ef=!0);d.Ig&&d.hk!==c.nj&&(d.hk=c.nj,
a.uniform1f(d.Ig,c.nj));0<=d.Tc&&(a.enableVertexAttribArray(d.Tc),a.bindBuffer(a.ARRAY_BUFFER,c.Mi[c.Sd]),a.vertexAttribPointer(d.Tc,c.Ca?3:2,a.FLOAT,!1,0,0));0<=d.We&&(a.enableVertexAttribArray(d.We),a.bindBuffer(a.ARRAY_BUFFER,c.Di[c.Sd]),a.vertexAttribPointer(d.We,2,a.FLOAT,!1,0,0))};p.prototype.iu=function(){var a=this.aa;this.D.uniform4f(this.F.lg.Fm,a[0],a[1],a[2],a[3])};p.prototype.nu=function(){var a,c,d=this.F.lg,b=this.D;a=this.aa;d.Xh&&this.F.Kf!==this.$c&&(b.activeTexture(b.TEXTURE1),
b.bindTexture(b.TEXTURE_2D,this.$c),this.F.Kf=this.$c,b.activeTexture(b.TEXTURE0));var f=a[0];d.Hm&&f!==d.Lp&&(d.Lp=f,b.uniform1f(d.Hm,f));f=a[1];d.Gm&&f!==d.Kp&&(d.Kp=f,b.uniform1f(d.Gm,f));f=a[2];c=a[3];!d.Sf||f===d.Fp&&c===d.Gp||(d.Fp=f,d.Gp=c,b.uniform2f(d.Sf,f,c));f=a[4];c=a[5];!d.Rf||f===d.Dp&&c===d.Ep||(d.Dp=f,d.Ep=f,b.uniform2f(d.Rf,f,c));f=a[6];d.Wh&&f!==d.Ip&&(d.Ip=f,b.uniform1f(d.Wh,f));f=a[7];d.Vh&&f!==d.Hp&&(d.Hp=f,b.uniform1f(d.Vh,f));f=a[8];c=a[9];!d.$h||f===d.Pp&&c===d.Qp||(d.Pp=f,
d.Qp=c,b.uniform2f(d.$h,f,c));f=a[10];c=a[11];!d.Yh||f===d.Mp&&c===d.Np||(d.Mp=f,d.Np=c,b.uniform2f(d.Yh,f,c));f=a[12];d.Zh&&f!==d.Op&&(d.Op=f,b.uniform1f(d.Zh,f));if(d.Y.length)for(a=0,c=d.Y.length;a<c;a++)f=this.Rq[a],f!==d.zm[a]&&(d.zm[a]=f,b.uniform1f(d.Y[a][1],f))};g.prototype.vc=function(){this.Qd===this.Ee.length&&this.Ee.push(new p(0,this));return this.Ee[this.Qd++]};g.prototype.vf=function(){if(0!==this.Qd&&!this.D.isContextLost()){var a=this.D;0<this.hn&&(a.bindBuffer(a.ARRAY_BUFFER,this.gn),
a.bufferSubData(a.ARRAY_BUFFER,0,this.wq.subarray(0,this.hn)),c&&0<=c.Tc&&"<point>"===c.name&&a.vertexAttribPointer(c.Tc,4,a.FLOAT,!1,0,0));if(0<this.ue){var c=this.lg;a.bindBuffer(a.ARRAY_BUFFER,this.Mi[this.Sd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.al.subarray(0,this.ue));c&&0<=c.Tc&&"<point>"!==c.name&&a.vertexAttribPointer(c.Tc,this.Ca?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Di[this.Sd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Pk.subarray(0,this.Zg));c&&0<=c.We&&"<point>"!==c.name&&
a.vertexAttribPointer(c.We,2,a.FLOAT,!1,0,0)}for(var d,a=0,c=this.Qd;a<c;a++)switch(d=this.Ee[a],d.type){case 1:d.fu();break;case 2:d.ou();break;case 3:d.lu();break;case 4:d.hu();break;case 5:d.ru();break;case 6:d.gu();break;case 7:d.du();break;case 8:d.eu();break;case 9:d.mu();break;case 10:d.nu();break;case 11:d.pu();break;case 12:d.iu();break;case 13:d.ju();break;case 14:d.ku()}this.hn=this.Zg=this.ue=this.Qd=0;this.Qj=this.Rb=!1;this.Sd++;4<=this.Sd&&(this.Sd=0)}};g.prototype.Tg=function(a){if(a!==
this.vp&&!this.Jh){var c=this.vc();c.type=3;this.vp=c.lq=a;this.Rb=!1}};g.prototype.Gc=function(a){if(a!==this.Jf){var c=this.vc();c.type=2;this.Jf=c.$c=a;this.Rb=!1}};g.prototype.cf=function(a,c){if((a!==this.wp||c!==this.up)&&!this.Jh){var d=this.vc();d.type=4;d.cc=a;d.Bd=c;this.wp=a;this.up=c;this.Rb=!1}};g.prototype.Hq=function(){this.cf(this.D.ONE,this.D.ONE_MINUS_SRC_ALPHA)};g.prototype.li=function(a,c,d,b,f,h,l,n){15992<=this.ue&&this.vf();var g=this.ue,x=this.Zg,k=this.al,q=this.Pk,e=this.Gl;
if(this.Rb)this.Ee[this.Qd-1].Bd+=6;else{var t=this.vc();t.type=1;t.cc=this.Ca?g:g/2*3;t.Bd=6;this.Rb=!0}this.Ca?(k[g++]=a,k[g++]=c,k[g++]=e,k[g++]=d,k[g++]=b,k[g++]=e,k[g++]=f,k[g++]=h,k[g++]=e,k[g++]=l,k[g++]=n,k[g++]=e):(k[g++]=a,k[g++]=c,k[g++]=d,k[g++]=b,k[g++]=f,k[g++]=h,k[g++]=l,k[g++]=n);q[x++]=0;q[x++]=0;q[x++]=1;q[x++]=0;q[x++]=1;q[x++]=1;q[x++]=0;q[x++]=1;this.ue=g;this.Zg=x};g.prototype.bf=function(a,c,d,b,f,h,l,g,n){15992<=this.ue&&this.vf();var x=this.ue,k=this.Zg,q=this.al,e=this.Pk,
t=this.Gl;if(this.Rb)this.Ee[this.Qd-1].Bd+=6;else{var y=this.vc();y.type=1;y.cc=this.Ca?x:x/2*3;y.Bd=6;this.Rb=!0}var y=n.left,m=n.top,p=n.right;n=n.bottom;this.Ca?(q[x++]=a,q[x++]=c,q[x++]=t,q[x++]=d,q[x++]=b,q[x++]=t,q[x++]=f,q[x++]=h,q[x++]=t,q[x++]=l,q[x++]=g,q[x++]=t):(q[x++]=a,q[x++]=c,q[x++]=d,q[x++]=b,q[x++]=f,q[x++]=h,q[x++]=l,q[x++]=g);e[k++]=y;e[k++]=m;e[k++]=p;e[k++]=m;e[k++]=p;e[k++]=n;e[k++]=y;e[k++]=n;this.ue=x;this.Zg=k};g.prototype.nc=function(a){if(this.Rh!==a){if(!this.La[a]){if(0===
this.Rh)return;a=0}var c=this.vc();c.type=9;this.Rh=c.cc=a;this.Rb=!1}};g.prototype.ii=function(a){a=this.La[a];return!(!a.Sf&&!a.Rf)};g.prototype.mn=function(a){a=this.La[a];return!!(a.Sf||a.Rf||a.El)};g.prototype.ln=function(a){return this.La[a].Wc};g.prototype.Ow=function(a){a=this.La[a];return 0!==a.vj||0!==a.wj};g.prototype.zv=function(a){return this.La[a].vj};g.prototype.Av=function(a){return this.La[a].wj};g.prototype.Bv=function(a,c){return this.La[a].Y[c][2]};g.prototype.zk=function(a){return this.La[a].pl};
g.prototype.Ug=function(a,c,d,b,f,h,l,n,g,x,k,q,e,t,y){var m=this.La[this.Rh],p,r;if(m.Tv||y.length){p=this.vc();p.type=10;p.aa?jc(this.Ec,p.aa):p.aa=ic();r=p.aa;r[0]=c;r[1]=d;r[2]=b;r[3]=f;r[4]=h;r[5]=l;r[6]=n;r[7]=g;r[8]=x;r[9]=k;r[10]=q;r[11]=e;r[12]=t;m.Xh?p.$c=a:p.$c=null;if(y.length)for(d=p.Rq,d.length=y.length,a=0,c=y.length;a<c;a++)d[a]=y[a];this.Rb=!1}};g.prototype.clear=function(a,c,d,b){var f=this.vc();f.type=7;f.cc=0;f.aa||(f.aa=ic());f.aa[0]=a;f.aa[1]=c;f.aa[2]=d;f.aa[3]=b;this.Rb=!1};
g.prototype.clearRect=function(a,c,d,b){if(!(0>d||0>b)){var f=this.vc();f.type=7;f.cc=1;f.aa||(f.aa=ic());f.aa[0]=a;f.aa[1]=c;f.aa[2]=d;f.aa[3]=b;this.Rb=!1}};g.prototype.Kq=function(a){if(this.Ca&&(a=!!a,this.Jh!==a)){var c=this.vc();c.type=14;c.cc=a?1:0;this.Rb=!1;this.Jh=a;this.Ck=null;this.Jh?this.nc(2):this.nc(0)}};g.prototype.Jq=function(a){if(this.Ca){var c=this.vc();c.type=13;c.cc=a?1:0;this.Rb=!1}};g.prototype.Ro=function(){jc(this.Am,r);this.Hd();this.ud();var a=this.width/2,c=this.height/
2;this.li(-a,c,a,c,a,-c,-a,-c);jc(r,this.Ec);this.ud()};g.prototype.Iq=function(a,c,d){this.nc(3);var b=this.vc();b.type=12;b.aa||(b.aa=ic());b.aa[0]=a;b.aa[1]=c;b.aa[2]=d;b.aa[3]=1;this.Rb=!1};g.prototype.ox=function(){this.nc(0)};g.prototype.Xw=function(){this.nc(2)};g.prototype.Nw=function(){this.vf();this.D.flush()};var u=[],n={};g.prototype.Tt=function(){F(u);n={}};g.prototype.ck=function(a,c,d){var b;b=!1;c=!!c;var f=a.src+","+b+","+c+(b?",undefined":""),h=null;if("undefined"!==typeof a.src&&
n.hasOwnProperty(f))return h=n[f],h.bj++,h;this.vf();var l=this.D,g=ha(a.width)&&ha(a.height),h=l.createTexture();l.bindTexture(l.TEXTURE_2D,h);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var e=l.RGBA,x=l.RGBA,k=l.UNSIGNED_BYTE;if(d&&!this.Qe)switch(d){case 1:x=e=l.RGB;break;case 2:k=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:k=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:x=e=l.RGB,k=l.UNSIGNED_SHORT_5_6_5}if(!g&&b){d=document.createElement("canvas");d.width=ia(a.width);d.height=ia(a.height);var q=d.getContext("2d");
q.webkitImageSmoothingEnabled=c;q.mozImageSmoothingEnabled=c;q.msImageSmoothingEnabled=c;q.imageSmoothingEnabled=c;q.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);l.texImage2D(l.TEXTURE_2D,0,e,x,k,d)}else l.texImage2D(l.TEXTURE_2D,0,e,x,k,a);b?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));c?(l.texParameteri(l.TEXTURE_2D,
l.TEXTURE_MAG_FILTER,l.LINEAR),g&&this.Io?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.Jf=null;h.of=a.width;h.nf=a.height;h.bj=1;h.Bo=f;u.push(h);return n[f]=h};g.prototype.Lc=function(a,c,d){var b;this.vf();var f=this.D;
this.Qe&&(b=!1);var h=f.createTexture();f.bindTexture(f.TEXTURE_2D,h);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,c,0,f.RGBA,b?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,d?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,d?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Jf=null;h.of=a;h.nf=c;u.push(h);
return h};g.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.bj&&1<a.bj?a.bj--:(this.vf(),a===this.Jf&&(this.D.bindTexture(this.D.TEXTURE_2D,null),this.Jf=null),a===this.Kf&&(this.D.activeTexture(this.D.TEXTURE1),this.D.bindTexture(this.D.TEXTURE_2D,null),this.D.activeTexture(this.D.TEXTURE0),this.Kf=null),Da(u,a),"undefined"!==typeof a.Bo&&delete n[a.Bo],this.D.deleteTexture(a)))};g.prototype.Xc=function(a){if(a!==this.Ck){var c=this.vc();c.type=6;this.Ck=c.$c=a;this.Rb=!1}};ob=g})();
(function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function m(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function e(b){if(b&&(b.getContext||b.dc)&&!b.c2runtime){b.c2runtime=this;var a=this;this.rc=(this.Ih=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.Fb=!!b.dc;this.jp="undefined"!==typeof window.AppMobi||this.Fb;this.hc=!!window.c2cocoonjs;this.Rc=!!window.c2ejecta;this.hc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Rc&&(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.ta=this.Fb||this.hc||this.Rc;this.Kh=/edge\//i.test(navigator.userAgent);this.Qe=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Kh;this.op=/tizen/i.test(navigator.userAgent);this.Oj=/android/i.test(navigator.userAgent)&&!this.op&&!this.Qe&&!this.Kh;this.ym=(/iphone/i.test(navigator.userAgent)||
/ipod/i.test(navigator.userAgent))&&!this.Qe&&!this.Kh;this.tp=/ipad/i.test(navigator.userAgent);this.Oh=this.ym||this.tp||this.Rc;this.iw=this.ym&&/os\s6/i.test(navigator.userAgent);this.Hh=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Qe&&!this.Kh;this.qm=/amazonwebappplatform/i.test(navigator.userAgent);this.bw=/firefox/i.test(navigator.userAgent);this.np=/safari/i.test(navigator.userAgent)&&!this.Hh&&!this.Qe&&!this.Kh;this.fw=/windows/i.test(navigator.userAgent);
this.mp=this.de="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.qp=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.hw=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.zg=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.wm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);
this.pp=!!window.cr_windows10;this.Sj=this.qp||this.hw||this.wm||this.pp;this.$v=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Pj=this.Oj&&!this.Hh&&!this.Ih&&!this.bw&&!this.qm&&!this.ta;this.devicePixelRatio=1;this.Re=this.rc||this.Ih||this.jp||this.hc||this.Oj||this.Oh||this.zg||this.wm||this.$v||this.op||this.Rc;this.Re||(this.Re=/(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)&&!/nwjs/i.test(navigator.userAgent)||(this.de=!0);this.kp="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=b;this.wl=document.getElementById("c2canvasdiv");this.F=this.D=null;this.gm="(unavailable)";this.Ca=!1;this.uf=0;this.xa=null;this.Sl="";this.Bj=!1;this.dq=this.fq=0;this.canvas.oncontextmenu=function(b){b.preventDefault&&b.preventDefault();return!1};
this.canvas.onselectstart=function(b){b.preventDefault&&b.preventDefault();return!1};this.Fb&&(window.c2runtime=this);this.de&&(window.ondragover=function(b){b.preventDefault();return!1},window.ondrop=function(b){b.preventDefault();return!1},require("nw.gui").App.clearCache());this.Pj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=b.width;this.height=b.height;this.J=this.width;this.I=this.height;this.lj=this.width;this.qh=this.height;this.Th=window.innerWidth;
this.Sh=window.innerHeight;this.jv=!1;this.Z=!0;this.Lh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.A=[];this.Ta=[];this.Em={};this.ld=[];this.Nl={};this.Xd=[];this.gh=[];this.Wk=[];this.Gt=[];this.Ht=[];this.Xq=null;this.sf={};this.tm=this.Pe=!1;this.Dc=0;this.rm=this.vm=!1;this.gd=[];this.Rj=!1;this.fe=this.Sb=this.$j=this.xn="";this.Bi=this.Uq=!1;this.Me=this.tf=0;this.Vp=30;this.Cl=this.ai=0;this.Zf=1;this.rb=new eb;this.ve=new eb;this.kk=this.Dj=this.zf=
this.Yf=this.Mf=this.Rl=this.Xj=0;this.pf=null;this.sj=[];this.Ml=[];this.uj=-1;this.Im=[[]];this.Ln=this.fk=0;this.Ak(null);this.Zp=this.fi=0;this.Dm=!0;this.vh=0;this.Ci=[];this.In=this.nn=-1;this.Fg=!0;this.Qf=0;this.ee=!1;this.tx=0;this.gg=null;this.Oa=this.Kj=!1;this.cq=new ba;this.Rm=new ba;this.Sm=new ba;this.ni=[];this.rd=new gb([]);this.En=new gb([]);this.Be=[];this.tg={};this.jg={};this.fg={};this.fh={};this.yo={};this.zp=this.Zj=this.Va=this.hb=this.yp=this.Yj=this.wa=null;this.dh=this.xm=
!1;this.Tl=[null,null];this.ae=0;this.Aj="";this.ke={};this.yi=this.Ue=null;this.Vq="";this.jk=[];this.Ww()}}function p(b,a){return 128>=a?b[3]:256>=a?b[2]:512>=a?b[1]:b[0]}function r(b){b.target.result.createObjectStore("saves",{keyPath:"slot"})}function u(b,a,c,f){var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=r;d.onerror=f;d.onsuccess=function(d){d=d.target.result;d.onerror=f;d.transaction(["saves"],"readwrite").objectStore("saves").put({slot:b,data:a}).onsuccess=c}}function n(b,a,c){var f=
indexedDB.open("_C2SaveStates");f.onupgradeneeded=r;f.onerror=c;f.onsuccess=function(f){f=f.target.result;f.onerror=c;var d=f.transaction(["saves"]).objectStore("saves").get(b);d.onsuccess=function(){d.result?a(d.result.data):a(null)}}}function a(){B("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function c(b){var a,c={};for(a in b)!b.hasOwnProperty(a)||
b[a]instanceof ba||b[a]&&"undefined"!==typeof b[a].Iy||"spriteCreatedDestroyCallback"!==a&&(c[a]=b[a]);return c}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;e.prototype.Ww=function(){var b=this,a;this.zg?a=new ActiveXObject("Microsoft.XMLHTTP"):a=new XMLHttpRequest;var c="data.js";if(this.qp||this.zg||this.wm||this.pp)c="data.json";a.open("GET",c,!0);var f=!1;if(!this.ta&&"response"in
a&&"responseType"in a)try{a.responseType="json",f="json"===a.responseType}catch(d){f=!1}if(!f&&"responseType"in a)try{a.responseType="text"}catch(l){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(h){}this.zg?a.onreadystatechange=function(){4===a.readyState&&b.bk(JSON.parse(a.responseText))}:(a.onload=function(){if(f)b.bk(a.response);else if(b.Rc){var c=a.responseText,c=c.substr(c.indexOf("{"));b.bk(JSON.parse(c))}else b.bk(JSON.parse(a.responseText))},a.onerror=
function(b){da("Error requesting "+c+":");da(b)});a.send()};e.prototype.Xv=function(){var b=this,a,c,f,d,l,h,k,q,t;this.Se=(!this.ta||this.Rc||this.rc)&&this.Cx&&!this.Pj;0===this.Wb&&this.Oh&&(this.Se=!1);this.devicePixelRatio=this.Se?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Mb();c=!(!this.jv&&(!this.nl||this.de||this.Sj||this.zg||this.Ih||this.rc||this.qm));0<this.Wb&&this.setSize(g(),m(),!0);try{this.zu&&(this.hc||this.Rc||
!this.ta)&&(a={alpha:c,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.D=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",a))}catch(n){}if(this.D){if(a=this.D.getExtension("WEBGL_debug_renderer_info"))this.gm=this.D.getParameter(a.UNMASKED_RENDERER_WEBGL)+" ["+this.D.getParameter(a.UNMASKED_VENDOR_WEBGL)+"]";this.Ca&&(this.gm+=" [front-to-back enabled]");this.ta||(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=Math.round(this.lj*this.devicePixelRatio),this.Hb.height=Math.round(this.qh*this.devicePixelRatio),jQuery(this.Hb).css({width:this.lj+"px",height:this.qh+"px"}),this.xq(),this.en=this.Hb.getContext("2d"));this.F=new ob(this.D,this.Re,this.Ca);this.F.oe(this.canvas.width,this.canvas.height);this.F.Io=0!==this.su;this.xa=null;this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();b.yw();B("[Construct 2] WebGL context lost");
window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){b.F.ep();b.F.oe(b.F.width,b.F.height,!0);b.hb=null;b.Va=null;b.Tl[0]=null;b.Tl[1]=null;b.zw();b.Z=!0;B("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(c=this.A.length;a<c;a++)for(l=this.A[a],f=0,d=l.T.length;f<d;f++)k=l.T[f],k.Xa=this.F.dm(k.id),k.Wc=this.F.ln(k.Xa),this.dh=this.dh||this.F.ii(k.Xa);a=0;for(c=this.ld.length;a<c;a++){q=this.ld[a];f=0;for(d=q.T.length;f<d;f++)k=
q.T[f],k.Xa=this.F.dm(k.id),k.Wc=this.F.ln(k.Xa);q.td();f=0;for(d=q.V.length;f<d;f++){t=q.V[f];l=0;for(h=t.T.length;l<h;l++)k=t.T[l],k.Xa=this.F.dm(k.id),k.Wc=this.F.ln(k.Xa),this.dh=this.dh||this.F.ii(k.Xa);t.td()}}}else{if(0<this.Wb&&this.Fb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.xa=AppMobi.canvas.getContext("2d");try{this.xa.samplingMode=this.ea?"smooth":"sharp",this.xa.globalScale=1,this.xa.HTML5CompatibilityMode=!0,this.xa.imageSmoothingEnabled=
this.ea}catch(y){}0!==this.width&&0!==this.height&&(this.xa.width=this.width,this.xa.height=this.height)}this.xa||(this.hc?(a={antialias:!!this.ea,alpha:c},this.xa=this.canvas.getContext("2d",a)):(a={alpha:c},this.xa=this.canvas.getContext("2d",a)),this.xa.webkitImageSmoothingEnabled=this.ea,this.xa.mozImageSmoothingEnabled=this.ea,this.xa.msImageSmoothingEnabled=this.ea,this.xa.imageSmoothingEnabled=this.ea);this.en=this.Hb=null}this.er=function(a){b.Sa(!1,a)};window==window.top||this.ta||this.Sj||
this.zg||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.hc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(B("Reloading for continuous preview"),this.$j="__c2_continuouspreview",this.Bi=!0),this.Fw&&!this.Re&&(jQuery(window).focus(function(){b.setSuspended(!1)}),jQuery(window).blur(function(){b.setSuspended(!0)})));
window.addEventListener("blur",function(){b.Pg()});this.ta||(a=function(b){if(nb(b)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.Wb&&
this.Se&&1<this.devicePixelRatio&&this.setSize(this.kb,this.jb,!0);this.jr();this.Qv();this.go();this.K={}};e.prototype.setSize=function(b,a,c){var f=0,d=0,l=0,h=0,h=0,k=this.iw&&this.np&&!navigator.standalone&&!this.ta&&!this.rc;k&&(a+=60);if(this.Th!==b||this.Sh!==a||c){this.Th=b;this.Sh=a;var q=this.Wb,t=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.ee)&&!this.rc;if(t||0!==this.Wb||c)t&&0<this.ae&&(q=this.ae),c=this.devicePixelRatio,
4<=q?(l=this.kb/this.jb,b/a>l?(l*=a,5===q?(h=l*c/this.kb,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),l=this.kb*h/c,h=this.jb*h/c,f=(b-l)/2,d=(a-h)/2,b=l,a=h):(f=(b-l)/2,b=l)):(h=b/l,5===q?(h=h*c/this.jb,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),l=this.kb*h/c,h=this.jb*h/c,f=(b-l)/2,d=(a-h)/2,b=l):d=(a-h)/2,a=h),t&&!this.de&&(d=f=0)):this.de&&this.ee&&0===this.So&&(f=Math.floor((b-this.kb)/2),d=Math.floor((a-this.jb)/2),b=this.kb,a=this.jb),2>q&&(this.kh=c),this.Se&&this.tp&&1<c&&(1024<=b&&(b=
1023),1024<=a&&(a=1023)),this.lj=Math.round(b),this.qh=Math.round(a),this.width=Math.round(b*c),this.height=Math.round(a*c),this.Z=!0,this.xr?(this.J=this.width,this.I=this.height,this.Ac=!0):this.width<this.kb&&this.height<this.jb||1===q?(this.J=this.width,this.I=this.height,this.Ac=!0):(this.J=this.kb,this.I=this.jb,this.Ac=!1,2===q?(l=this.kb/this.jb,q=this.Th/this.Sh,q<l?this.J=this.I*q:q>l&&(this.I=this.J/q)):3===q&&(l=this.kb/this.jb,q=this.Th/this.Sh,q>l?this.J=this.I*q:q<l&&(this.I=this.J/
q))),this.wl&&!this.ta&&(jQuery(this.wl).css({width:Math.round(b)+"px",height:Math.round(a)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(d)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(b)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(b*c),this.canvas.height=Math.round(a*c),this.Rc?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(d)+"px",this.canvas.style.width=Math.round(b)+"px",this.canvas.style.height=
Math.round(a)+"px"):this.Se&&!this.ta&&(this.canvas.style.width=Math.round(b)+"px",this.canvas.style.height=Math.round(a)+"px")),this.Hb&&(this.Hb.width=Math.round(b*c),this.Hb.height=Math.round(a*c),this.Hb.style.width=this.lj+"px",this.Hb.style.height=this.qh+"px"),this.F&&this.F.oe(Math.round(b*c),Math.round(a*c)),this.Fb&&this.xa&&(this.xa.width=Math.round(b),this.xa.height=Math.round(a)),this.xa&&(this.xa.webkitImageSmoothingEnabled=this.ea,this.xa.mozImageSmoothingEnabled=this.ea,this.xa.msImageSmoothingEnabled=
this.ea,this.xa.imageSmoothingEnabled=this.ea),this.jr(),this.ta||!k&&!this.ym||window.setTimeout(function(){window.scrollTo(0,1)},100)}};e.prototype.jr=function(){if(this.Jt&&0!==this.cn){var b="portrait";2===this.cn&&(b="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(b):screen.lockOrientation?screen.lockOrientation(b):screen.webkitLockOrientation?screen.webkitLockOrientation(b):screen.mozLockOrientation?screen.mozLockOrientation(b):screen.msLockOrientation&&
screen.msLockOrientation(b)}catch(a){console&&console.warn&&console.warn("Failed to lock orientation: ",a)}}};e.prototype.yw=function(){this.F.Tt();this.xm=!0;var b,a,c;b=0;for(a=this.A.length;b<a;b++)c=this.A[b],c.Wm&&c.Wm()};e.prototype.zw=function(){this.xm=!1;var b,a,c;b=0;for(a=this.A.length;b<a;b++)c=this.A[b],c.$m&&c.$m()};e.prototype.xq=function(){if(!this.ta){var b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.ee)&&!this.rc?
jQuery(this.canvas).offset():jQuery(this.canvas).position();b.position="absolute";jQuery(this.Hb).css(b)}};var b=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;e.prototype.setSuspended=function(a){var c;if(a&&!this.Lh)for(B("[Construct 2] Suspending"),this.Lh=!0,-1!==this.nn&&b&&b(this.nn),-1!==this.In&&clearTimeout(this.In),a=0,c=this.Ci.length;a<c;a++)this.Ci[a](!0);else if(!a&&this.Lh){B("[Construct 2] Resuming");
this.Lh=!1;this.Xj=ab();this.Mf=ab();a=this.ai=this.Dj=0;for(c=this.Ci.length;a<c;a++)this.Ci[a](!1);this.Sa(!1)}};e.prototype.uo=function(b){this.Ci.push(b)};e.prototype.ze=function(b){return this.jk[b]};e.prototype.bk=function(b){b&&b.project||da("Project model unavailable");b=b.project;this.name=b[0];this.No=b[1];this.Wb=b[12];this.So=b[12];this.kb=b[10];this.jb=b[11];this.sq=this.kb/2;this.tq=this.jb/2;this.ta&&!this.Rc&&(4<=b[12]||0===b[12])&&(B("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.So=this.Wb=3);this.Sn=b[18];this.Ve=b[19];if(0===this.Ve){var a=new Image;a.crossOrigin="anonymous";a.src="loading-logo.png";this.Ue={gk:a}}else if(4===this.Ve){a=new Image;a.src="";var c=new Image;c.src="";var f=new Image;f.src="";var d=new Image;d.src="";var l=new Image;l.src="";var h=new Image;h.src="";var k=new Image;k.src="";var q=new Image;q.src="";var t=new Image;t.src="";var n=new Image;n.src="";var g=new Image;g.src="";var y=new Image;y.src="";this.Ue={gk:[a,c,f,d],Kw:[l,h,k,q],Hx:[t,
n,g,y]}}this.fi=b[21];this.jk=nc();this.Kd=new U(this);a=0;for(c=b[2].length;a<c;a++)k=b[2][a],f=this.ze(k[0]),pb(k,f.prototype),q=new f(this),q.Kk=k[1],q.Te=k[2],q.Xp=k[9],q.H&&q.H(),this.plugins.push(q);this.jk=nc();a=0;for(c=b[3].length;a<c;a++){k=b[3][a];l=this.ze(k[1]);q=null;f=0;for(d=this.plugins.length;f<d;f++)if(this.plugins[f]instanceof l){q=this.plugins[f];break}t=new q.da(q);t.name=k[0];t.U=k[2];t.pm=k[3].slice(0);t.Ex=k[3].length;t.Kt=k[4];t.lv=k[5];t.fa=k[11];t.U?(t.Kg=[],t.Yd=this.vh++,
t.Ha=null):(t.Kg=null,t.Yd=-1,t.Ha=[]);t.yj=null;t.ng=null;t.Jo=null;t.Zb=!1;t.oc=null;k[6]?(t.Fn=k[6][0],t.cr=k[6][1],t.Gn=k[6][2]):(t.Fn=null,t.cr=0,t.Gn=0);k[7]?t.gc=k[7]:t.gc=null;t.index=a;t.c=[];t.pj=[];t.ef=[new qb(t)];t.Vd=0;t.Nc=null;t.$t=0;t.Xg=!0;t.Xk=rb;t.Wo=sb;t.xv=tb;t.X=ub;t.ji=vb;t.ki=wb;t.$e=xb;t.Gj=yb;t.Vl=zb;t.Zl=Ab;t.Jc=Bb;t.$l=Cb;t.ij=new hb(this.kb,this.jb);t.Ui=!0;t.Vi=!1;t.K={};t.toString=Eb;t.Ta=[];f=0;for(d=k[8].length;f<d;f++){n=k[8][f];g=this.ze(n[1]);y=null;l=0;for(h=
this.Ta.length;l<h;l++)if(this.Ta[l]instanceof g){y=this.Ta[l];break}y||(y=new g(this),y.Pm=[],y.Om=new ba,y.H&&y.H(),this.Ta.push(y),fc.rx&&y instanceof fc.rx&&(this.Xq=y));-1===y.Pm.indexOf(t)&&y.Pm.push(t);l=new y.da(y,t);l.name=n[0];l.fa=n[2];l.H();t.Ta.push(l)}t.global=k[9];t.um=k[10];t.T=[];f=0;for(d=k[12].length;f<d;f++)t.T.push({id:k[12][f][0],name:k[12][f][1],Xa:-1,Wc:!1,nb:!0,index:f});t.Ry=k[13];this.Sn&&!t.U&&!t.um&&q.Te||t.H();t.name&&(this.types[t.name]=t);this.A.push(t);q.Kk&&(f=new q.W(t),
f.uid=this.fi++,f.Aq=this.Zp++,f.Ff=0,f.Ah=Fb,f.toString=Gb,f.C=k[14],f.H(),t.c.push(f),this.ke[f.uid.toString()]=f)}a=0;for(c=b[4].length;a<c;a++)for(l=b[4][a],h=this.A[l[0]],f=1,d=l.length;f<d;f++)k=this.A[l[f]],k.Ha.push(h),h.Kg.push(k);a=0;for(c=b[28].length;a<c;a++){l=b[28][a];h=[];f=0;for(d=l.length;f<d;f++)h.push(this.A[l[f]]);f=0;for(d=h.length;f<d;f++)h[f].Zb=!0,h[f].oc=h}if(0<this.vh)for(a=0,c=this.A.length;a<c;a++)if(k=this.A[a],!k.U&&k.Ha.length){k.yj=Array(this.vh);k.ng=Array(this.vh);
k.Jo=Array(this.vh);t=[];f=y=g=n=0;for(d=k.Ha.length;f<d;f++)for(q=k.Ha[f],k.yj[q.Yd]=n,n+=q.Ex,k.ng[q.Yd]=g,g+=q.Kt,k.Jo[q.Yd]=y,y+=q.lv,l=0,h=q.T.length;l<h;l++)t.push(wa({},q.T[l]));k.T=t.concat(k.T);f=0;for(d=k.T.length;f<d;f++)k.T[f].index=f}a=0;for(c=b[5].length;a<c;a++)k=b[5][a],f=new Hb(this,k),this.Em[f.name]=f,this.ld.push(f);a=0;for(c=b[6].length;a<c;a++)k=b[6][a],f=new Ib(this,k),this.Nl[f.name]=f,this.Xd.push(f);a=0;for(c=this.Xd.length;a<c;a++)this.Xd[a].Ra();a=0;for(c=this.Xd.length;a<
c;a++)this.Xd[a].Pn();a=0;for(c=this.Wk.length;a<c;a++)this.Wk[a].Ra();F(this.Wk);this.It=b[7];this.Aj=b[8];this.me=b[9];this.kh=1;this.zu=b[13];this.ea=b[14];this.nl=b[15];this.Cx=b[17];this.cn=b[20];this.Jt=0<this.cn;this.Fw=b[22];this.Ac=this.xr=b[23];this.su=b[24];this.Lw=b[25];this.Ca=b[27]&&!this.Qe;this.Lk=Date.now();F(this.jk);this.Xv()};var f=!1;e.prototype.wr=function(b,a){b.cocoonLazyLoad=!0;b.onerror=function(a){f=b.Ao=!0;console&&console.error&&console.error("Error loading image '"+b.src+
"': ",a)};this.Rc?b.src=a:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){b.src=a},function(c){f=b.Ao=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",c)}):(b.crossOrigin="anonymous",b.src=a));this.gh.push(b)};e.prototype.hv=function(b){var a,c;a=0;for(c=this.gh.length;a<c;a++)if(this.gh[a].Vt===b)return this.gh[a];return null};var h=0,l=!1;e.prototype.Qv=function(){this.gg&&(h=this.gg.mx(this.It))};e.prototype.wo=function(){var b=
h,a=0,c=0,f=!0,d,k,c=0;for(d=this.gh.length;c<d;c++){k=this.gh[c];var q=k.Ut;if(!q||0>=q)q=5E4;b+=q;k.src&&(k.complete||k.loaded)&&!k.Ao?a+=q:f=!1}f&&this.Lw&&this.gg&&(l||(this.gg.ux(),l=!0),c=this.gg.yv(),a+=c,c<h&&(f=!1));this.nd=0==b?1:a/b;return f};var z=!1;e.prototype.go=function(){if(this.xa||this.F){var b=this.xa||this.en;this.Hb&&this.xq();this.nd=0;this.xp=-1;var a=this;if(this.wo()&&(4!==this.Ve||z))this.Rv();else{var c=Date.now()-this.Lk;if(b){var l=this.width,k=this.height,h=this.devicePixelRatio;
if(3>this.Ve&&(this.hc||500<=c&&this.xp!=this.nd)){b.clearRect(0,0,l,k);var c=l/2,k=k/2,l=0===this.Ve&&this.Ue.gk.complete,q=40*h,t=0,n=80*h,g;if(l){var y=this.Ue.gk,n=y.width*h;g=y.height*h;q=n/2;t=g/2;b.drawImage(y,pa(c-q),pa(k-t),n,g)}1>=this.Ve?(c=pa(c-q)+.5,k=pa(k+(t+(l?12*h:0)))+.5,b.fillStyle=f?"red":"DodgerBlue",b.fillRect(c,k,Math.floor(n*this.nd),6*h),b.strokeStyle="black",b.strokeRect(c,k,n,6*h),b.strokeStyle="white",b.strokeRect(c-1*h,k-1*h,n+2*h,8*h)):2===this.Ve&&(b.font=this.Rc?"12pt ArialMT":
"12pt Arial",b.fillStyle=f?"#f00":"#999",b.Qy="middle",h=Math.round(100*this.nd)+"%",l=b.measureText?b.measureText(h):null,b.fillText(h,c-(l?l.width:0)/2,k));this.xp=this.nd}else if(4===this.Ve){this.xu(b);d?d(function(){a.go()}):setTimeout(function(){a.go()},16);return}}setTimeout(function(){a.go()},this.hc?10:100)}}};var O=-1,x="undefined"===typeof cr_is_preview?200:0,k=!0,q=!1,W=0,t=0,y="undefined"===typeof cr_is_preview?3E3:0,R=null,P=null,V=0;e.prototype.xu=function(b){if(!z){for(var a=Math.ceil(this.width),
c=Math.ceil(this.height),d=this.Ue.gk,l=this.Ue.Kw,h=this.Ue.Hx,n=0;4>n;++n)if(!d[n].complete||!l[n].complete||!h[n].complete)return;0===V&&(O=Date.now());var n=Date.now(),g=!1,e=b,m,r;k||q?(b.clearRect(0,0,a,c),R&&R.width===a&&R.height===c||(R=document.createElement("canvas"),R.width=a,R.height=c,P=R.getContext("2d")),e=P,g=!0,k&&1===V&&(O=Date.now())):b.globalAlpha=1;e.fillStyle="#333333";e.fillRect(0,0,a,c);256<this.qh?(m=Fa(.22*c,105,.6*a),r=.25*m,e.drawImage(p(l,m),.5*a-m/2,.2*c-r/2,m,r),r=m=
Math.min(.395*c,.95*a),e.drawImage(p(d,m),.5*a-m/2,.485*c-r/2,m,r),m=Fa(.22*c,105,.6*a),r=.25*m,e.drawImage(p(h,m),.5*a-m/2,.868*c-r/2,m,r),e.fillStyle="#3C3C3C",m=a,r=Math.max(.005*c,2),e.fillRect(0,.8*c-r/2,m,r),e.fillStyle=f?"red":"#E0FF65",m=a*this.nd,e.fillRect(.5*a-m/2,.8*c-r/2,m,r)):(r=m=.55*c,e.drawImage(p(d,m),.5*a-m/2,.45*c-r/2,m,r),e.fillStyle="#3C3C3C",m=a,r=Math.max(.005*c,2),e.fillRect(0,.85*c-r/2,m,r),e.fillStyle=f?"red":"#E0FF65",m=a*this.nd,e.fillRect(.5*a-m/2,.85*c-r/2,m,r));g&&
(k?b.globalAlpha=0===V?0:Math.min((n-O)/300,1):q&&(b.globalAlpha=Math.max(1-(n-t)/300,0)),b.drawImage(R,0,0,a,c));k&&300<=n-O&&2<=V&&(k=!1,W=n);!k&&n-W>=y&&!q&&1<=this.nd&&(q=!0,t=n);if(q&&n-t>=300+x||"undefined"!==typeof cr_is_preview&&1<=this.nd&&500>Date.now()-O)z=!0,q=k=!1,this.Ue=P=R=null;++V}};e.prototype.Rv=function(){this.Hb&&(this.canvas.parentNode.removeChild(this.Hb),this.Hb=this.en=null);this.Lk=Date.now();this.Mf=ab();var b,a,c;if(this.Sn)for(b=0,a=this.A.length;b<a;b++)c=this.A[b],c.U||
c.um||!c.ua.Te||c.H();else this.Fg=!1;b=0;for(a=this.ld.length;b<a;b++)this.ld[b].Wt();2<=this.Wb&&(b=this.kb/this.jb,a=this.width/this.height,this.kh=2!==this.Wb&&a>b||2===this.Wb&&a<b?this.height/this.jb:this.width/this.kb);this.No?this.Em[this.No].Cn():this.ld[0].Cn();this.Sn||(this.Qf=1,this.trigger(U.prototype.j.gl,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();b=0;for(a=this.A.length;b<a;b++)c=this.A[b],c.xw&&c.xw();document.hidden||document.webkitHidden||
document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Sa(!1);this.Fb&&AppMobi.webview.execute("onGameReady();")};e.prototype.Sa=function(b,a,c){if(this.wa){var f=ab();if(c||!this.Lh||b){b||(d?this.nn=d(this.er):this.In=setTimeout(this.er,this.Re?1:16));a=a||f;var l=this.Wb;((c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.rc)||this.ee)&&0<this.ae&&(l=this.ae);0<l&&(!this.Oh||window.self!==window.top)&&(l=window.innerHeight,
this.Th===window.innerWidth&&this.Sh===l||this.setSize(g(),m()));this.ta||(c?(this.Bj||(this.Sl=jQuery(this.canvas).css("margin")||"0",this.Bj=!0),this.Hh||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.Bj?(this.Hh||this.de||jQuery(this.canvas).css("margin",this.Sl),this.Sl="",this.Bj=!1,0===this.Wb&&this.setSize(Math.round(this.fq/this.devicePixelRatio),
Math.round(this.dq/this.devicePixelRatio),!0)):(this.fq=this.width,this.dq=this.height));this.Fg&&(c=this.wo(),this.Qf=this.nd,c&&(this.Fg=!1,this.nd=1,this.trigger(U.prototype.j.gl,null)));this.rw(a);!this.Z&&!this.hc||this.xm||this.Bi||b||(this.Z=!1,this.F?this.Pc():this.Le(),this.yi&&(this.canvas&&this.canvas.toDataURL&&(this.Vq=this.canvas.toDataURL(this.yi[0],this.yi[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Vq),this.trigger(U.prototype.j.qs,null)),this.yi=null));this.Ky||(this.Yf++,
this.zf++,this.Dj++);this.ai+=ab()-f}}};e.prototype.rw=function(b){var a,c,f,d,l,k,h,q;1E3<=b-this.Mf&&(this.Mf+=1E3,1E3<=b-this.Mf&&(this.Mf=b),this.Rl=this.Dj,this.Dj=0,this.Cl=this.ai,this.ai=0);0!==this.Xj&&(a=b-this.Xj,0>a&&(a=0),this.Me=a/1E3,.5<this.Me?this.Me=0:this.Me>1/this.Vp&&(this.Me=1/this.Vp));this.Xj=b;this.tf=this.Me*this.Zf;this.rb.add(this.tf);this.ve.add(this.Me);b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.ee)&&
!this.rc;2<=this.Wb||b&&0<this.ae?(a=this.kb/this.jb,c=this.width/this.height,f=this.Wb,b&&0<this.ae&&(f=this.ae),this.kh=2!==f&&c>a||2===f&&c<a?this.height/this.jb:this.width/this.kb,this.wa&&(this.wa.Fq(this.wa.scrollX),this.wa.Gq(this.wa.scrollY))):this.kh=this.Se?this.devicePixelRatio:1;this.Mb();this.Dc++;this.Kd.$w();this.Dc--;this.Mb();this.Dc++;c=this.cq.kf();b=0;for(a=c.length;b<a;b++)c[b].Ny();b=0;for(a=this.A.length;b<a;b++)if(k=this.A[b],!k.U&&(k.Ta.length||k.Ha.length))for(c=0,f=k.c.length;c<
f;c++)for(h=k.c[c],d=0,l=h.S.length;d<l;d++)h.S[d].Sa();b=0;for(a=this.A.length;b<a;b++)if(k=this.A[b],!k.U&&(k.Ta.length||k.Ha.length))for(c=0,f=k.c.length;c<f;c++)for(h=k.c[c],d=0,l=h.S.length;d<l;d++)q=h.S[d],q.Jw&&q.Jw();c=this.Rm.kf();b=0;for(a=c.length;b<a;b++)c[b].Sa();this.Dc--;this.Sv();for(b=0;this.pf&&10>b++;)this.Ho(this.pf);b=0;for(a=this.Xd.length;b<a;b++)this.Xd[b].km=!1;this.wa.xf&&this.wa.xf.Wa();F(this.ni);this.Dm=!1;this.Dc++;b=0;for(a=this.A.length;b<a;b++)if(k=this.A[b],!k.U&&
(k.Ta.length||k.Ha.length))for(c=0,f=k.c.length;c<f;c++)for(h=k.c[c],d=0,l=h.S.length;d<l;d++)q=h.S[d],q.Rk&&q.Rk();c=this.Sm.kf();b=0;for(a=c.length;b<a;b++)c[b].Rk();this.Dc--};e.prototype.Pg=function(){var b,a,c,f,d,l,k,h,q;b=0;for(a=this.A.length;b<a;b++)if(k=this.A[b],!k.U)for(c=0,f=k.c.length;c<f;c++)if(h=k.c[c],h.Pg&&h.Pg(),h.S)for(d=0,l=h.S.length;d<l;d++)q=h.S[d],q.Pg&&q.Pg()};e.prototype.Ho=function(b){var a=this.wa;this.wa.vx();var c,f,d,l,k,h,q;if(this.F)for(c=0,f=this.A.length;c<f;c++)k=
this.A[c],k.U||!k.On||k.global&&0!==k.c.length||-1!==b.Fh.indexOf(k)||k.On();a==b&&F(this.Kd.Lb);F(this.ni);b.Cn();c=0;for(f=this.A.length;c<f;c++)if(k=this.A[c],k.global||k.ua.Kk)for(b=0,a=k.c.length;b<a;b++)if(h=k.c[b],h.Vm&&h.Vm(),h.S)for(d=0,l=h.S.length;d<l;d++)q=h.S[d],q.Vm&&q.Vm();this.Dm=this.Z=!0;this.Mb()};e.prototype.Fi=function(b){this.Rm.add(b)};e.prototype.wx=function(b){this.Sm.add(b)};e.prototype.Af=function(b){return b&&-1!==b.ei?this.Me*b.ei:this.tf};e.prototype.Le=function(){this.wa.Le(this.xa);
this.Fb&&this.xa.present()};e.prototype.Pc=function(){this.Ca&&(this.uf=1,this.wa.mg(this.F));this.wa.Pc(this.F);this.F.Nw()};e.prototype.ml=function(b){b&&this.sj.push(b)};e.prototype.Vw=function(b){Da(this.sj,b)};e.prototype.yh=function(b){b=b.toString();return this.ke.hasOwnProperty(b)?this.ke[b]:null};var G=[];e.prototype.ye=function(b){var a,c;a=b.type.name;var f=null;if(this.sf.hasOwnProperty(a)){if(f=this.sf[a],f.contains(b))return}else f=G.length?G.pop():new ba,this.sf[a]=f;f.add(b);this.Pe=
!0;if(b.Zb)for(a=0,c=b.siblings.length;a<c;a++)this.ye(b.siblings[a]);this.tm&&f.eh.push(b);this.rm||(this.Dc++,this.trigger(Object.getPrototypeOf(b.type.ua).j.$n,b),this.Dc--)};e.prototype.Mb=function(){if(this.Pe){var b,a,c,f,d,l;this.tm=!0;c=0;for(d=this.gd.length;c<d;++c)for(b=this.gd[c],a=b.type,a.c.push(b),f=0,l=a.Ha.length;f<l;++f)a.Ha[f].c.push(b),a.Ha[f].Xg=!0;F(this.gd);this.es();Wa(this.sf);this.Pe=this.tm=!1}};e.prototype.es=function(){for(var b in this.sf)this.sf.hasOwnProperty(b)&&this.Fr(this.sf[b])};
e.prototype.Fr=function(b){var a=b.kf(),c=a[0].type,f,d,l,k,h,q;bb(c.c,b);c.Xg=!0;0===c.c.length&&(c.Vi=!1);f=0;for(d=c.Ha.length;f<d;++f)q=c.Ha[f],bb(q.c,b),q.Xg=!0;f=0;for(d=this.Kd.Lb.length;f<d;++f)if(h=this.Kd.Lb[f],h.Tb.hasOwnProperty(c.index)&&bb(h.Tb[c.index].Cd,b),!c.U)for(l=0,k=c.Ha.length;l<k;++l)q=c.Ha[l],h.Tb.hasOwnProperty(q.index)&&bb(h.Tb[q.index].Cd,b);if(h=a[0].q){if(h.Hc)for(l=h.c,f=0,d=l.length;f<d;++f)k=l[f],b.contains(k)&&(k.ya(),h.Ib.update(k,k.lc,null),k.lc.set(0,0,-1,-1));
bb(h.c,b);h.si(0)}for(f=0;f<a.length;++f)this.Er(a[f],c);b.clear();G.push(b);this.Z=!0};e.prototype.Er=function(b,a){var c,f,d;c=0;for(f=this.sj.length;c<f;++c)this.sj[c](b);b.Je&&a.ij.update(b,b.Je,null);(c=b.q)&&c.Rg(b,!0);if(b.S)for(c=0,f=b.S.length;c<f;++c)d=b.S[c],d.Og&&d.Og(),d.behavior.Om.remove(b);this.cq.remove(b);this.Rm.remove(b);this.Sm.remove(b);b.Og&&b.Og();this.ke.hasOwnProperty(b.uid.toString())&&delete this.ke[b.uid.toString()];this.kk--;100>a.pj.length&&a.pj.push(b)};e.prototype.Dl=
function(b,a,c,f){if(b.U){var d=pa(Math.random()*b.Kg.length);return this.Dl(b.Kg[d],a,c,f)}return b.Nc?this.Ke(b.Nc,a,!1,c,f,!1):null};var I=[];e.prototype.Ke=function(b,a,c,f,d,l){var k,h,q,t;if(!b)return null;var n=this.A[b[1]],g=n.ua.Te;if(this.Fg&&g&&!n.um||g&&!this.F&&11===b[0][11])return null;var y=a;g||(a=null);var e;n.pj.length?(e=n.pj.pop(),e.wc=!0,n.ua.W.call(e,n)):(e=new n.ua.W(n),e.wc=!1);!c||l||this.ke.hasOwnProperty(b[2].toString())?e.uid=this.fi++:e.uid=b[2];this.ke[e.uid.toString()]=
e;e.Aq=this.Zp++;e.Ff=n.c.length;k=0;for(h=this.gd.length;k<h;++k)this.gd[k].type===n&&e.Ff++;e.Ah=Fb;e.toString=Gb;q=b[3];if(e.wc)Wa(e.K);else{e.K={};if("undefined"!==typeof cr_is_preview)for(e.hp=[],e.hp.length=q.length,k=0,h=q.length;k<h;k++)e.hp[k]=q[k][1];e.gb=[];e.gb.length=q.length}k=0;for(h=q.length;k<h;k++)e.gb[k]=q[k][0];if(g){var z=b[0];e.x=ea(f)?z[0]:f;e.y=ea(d)?z[1]:d;e.z=z[2];e.width=z[3];e.height=z[4];e.depth=z[5];e.k=z[6];e.opacity=z[7];e.Xb=z[8];e.Yb=z[9];e.Ob=z[10];k=z[11];!this.F&&
n.T.length&&(e.Ob=k);e.nh=jb(e.Ob);this.D&&kb(e,e.Ob,this.D);if(e.wc){k=0;for(h=z[12].length;k<h;k++)for(q=0,t=z[12][k].length;q<t;q++)e.Ja[k][q]=z[12][k][q];e.Ga.set(0,0,0,0);e.Je.set(0,0,-1,-1);e.lc.set(0,0,-1,-1);e.zc.ti(e.Ga);F(e.sl)}else{e.Ja=z[12].slice(0);k=0;for(h=e.Ja.length;k<h;k++)e.Ja[k]=z[12][k].slice(0);e.ma=[];e.Ae=[];e.Ae.length=n.T.length;e.Ga=new sa(0,0,0,0);e.Je=new sa(0,0,-1,-1);e.lc=new sa(0,0,-1,-1);e.zc=new ta;e.sl=[];e.O=Jb;e.Hy=Kb;e.Pb=Lb;e.ya=Mb;e.Bx=Nb;e.rr=Ob;e.Ad=Pb}e.Gi=
!1;e.zx=0;e.yx=0;e.xx=null;14===z.length&&(e.Gi=!0,e.zx=z[13][0],e.yx=z[13][1],e.xx=z[13][2]);k=0;for(h=n.T.length;k<h;k++)e.Ae[k]=!0;e.qe=!0;e.td=Qb;e.td();e.sr=!!e.ma.length;e.rl=!0;e.xl=!0;n.Ui=!0;e.visible=!0;e.ei=-1;e.q=a;e.vd=a.c.length;e.uf=0;"undefined"===typeof e.qa&&(e.qa=null);this.Z=e.Rd=!0}var x;F(I);k=0;for(h=n.Ha.length;k<h;k++)I.push.apply(I,n.Ha[k].Ta);I.push.apply(I,n.Ta);if(e.wc)for(k=0,h=I.length;k<h;k++){var m=I[k];x=e.S[k];x.wc=!0;m.behavior.W.call(x,m,e);z=b[4][k];q=0;for(t=
z.length;q<t;q++)x.C[q]=z[q];x.H();m.behavior.Om.add(e)}else for(e.S=[],k=0,h=I.length;k<h;k++)m=I[k],x=new m.behavior.W(m,e),x.wc=!1,x.C=b[4][k].slice(0),x.H(),e.S.push(x),m.behavior.Om.add(e);z=b[5];if(e.wc)for(k=0,h=z.length;k<h;k++)e.C[k]=z[k];else e.C=z.slice(0);this.gd.push(e);this.Pe=!0;a&&(a.jh(e,!0),1!==a.jc||1!==a.kc)&&(n.Vi=!0);this.kk++;if(n.Zb){if(e.Zb=!0,e.wc?F(e.siblings):e.siblings=[],!c&&!l){k=0;for(h=n.oc.length;k<h;k++)if(n.oc[k]!==n){if(!n.oc[k].Nc)return null;e.siblings.push(this.Ke(n.oc[k].Nc,
y,!1,g?e.x:f,g?e.y:d,!0))}k=0;for(h=e.siblings.length;k<h;k++)for(e.siblings[k].siblings.push(e),q=0;q<h;q++)k!==q&&e.siblings[k].siblings.push(e.siblings[q])}}else e.Zb=!1,e.siblings=null;e.H();k=0;for(h=e.S.length;k<h;k++)e.S[k].Iw&&e.S[k].Iw();return e};e.prototype.rg=function(b){var a,c;a=0;for(c=this.wa.V.length;a<c;a++){var f=this.wa.V[a];if(mb(f.name,b))return f}return null};e.prototype.zd=function(b){b=pa(b);0>b&&(b=0);b>=this.wa.V.length&&(b=this.wa.V.length-1);return this.wa.V[b]};e.prototype.Hj=
function(b){return fa(b)?this.zd(b):this.rg(b.toString())};e.prototype.Al=function(b){var a,c;a=0;for(c=b.length;a<c;a++)b[a].X().ca=!0};e.prototype.ji=function(b){var a,c;a=0;for(c=b.length;a<c;a++)b[a].ji()};e.prototype.ki=function(b){var a,c;a=0;for(c=b.length;a<c;a++)b[a].ki()};e.prototype.$e=function(b){var a,c;a=0;for(c=b.length;a<c;a++)b[a].$e()};e.prototype.or=function(b){if(b.Ui){var a,c,f=b.c;a=0;for(c=f.length;a<c;++a)f[a].rr();f=this.gd;a=0;for(c=f.length;a<c;++a)f[a].type===b&&f[a].rr();
b.Ui=!1}};e.prototype.Xl=function(b,a,c,f){var d,k,l=b?1!==b.jc||1!==b.kc:!1;if(a.U)for(b=0,d=a.Kg.length;b<d;++b)k=a.Kg[b],l||k.Vi?Aa(f,k.c):(this.or(k),k.ij.Bk(c,f));else l||a.Vi?Aa(f,a.c):(this.or(a),a.ij.Bk(c,f))};e.prototype.Dv=function(b,a,c,f){var d,k;d=0;for(k=a.length;d<k;++d)this.Xl(b,a[d],c,f)};e.prototype.Cv=function(b,a,c){var f=this.Xq;f&&this.Dv(b,f.Pm,a,c)};e.prototype.Yg=function(b,a,c,f){var d=b.X(),k,l,h,q,e,t;if(d.ca)for(f||(d.ca=!1,F(d.c)),k=0,q=b.c.length;k<q;k++){if(h=b.c[k],
h.ya(),e=h.q.Na(a,c,!0),t=h.q.Na(a,c,!1),h.Pb(e,t)){if(f)return!1;d.c.push(h)}}else{k=l=0;for(q=d.c.length;k<q;k++)if(h=d.c[k],h.ya(),e=h.q.Na(a,c,!0),t=h.q.Na(a,c,!1),h.Pb(e,t)){if(f)return!1;d.c[l]=d.c[k];l++}f||(d.c.length=l)}b.Jc();return f?!0:d.jm()};e.prototype.gf=function(b,a){if(!(b&&a&&b!==a&&b.Rd&&a.Rd))return!1;b.ya();a.ya();var c=b.q,f=a.q,d,k,l,h,q,e,t,n;if(c===f||c.jc===f.jc&&f.kc===f.kc&&c.scale===f.scale&&c.k===f.k&&c.Vb===f.Vb){if(!b.Ga.Yv(a.Ga)||!b.zc.ip(a.zc)||b.Gi&&a.Gi)return!1;
if(b.Gi)return this.br(b,a);if(a.Gi)return this.br(a,b);t=b.qa&&!b.qa.Ag();d=a.qa&&!a.qa.Ag();if(!t&&!d)return!0;t?(b.qa.hg(b.width,b.height,b.k),t=b.qa):(this.rd.Vg(b.zc,b.x,b.y,b.width,b.height),t=this.rd);d?(a.qa.hg(a.width,a.height,a.k),n=a.qa):(this.rd.Vg(a.zc,a.x,a.y,a.width,a.height),n=this.rd);return t.Gh(n,a.x-b.x,a.y-b.y)}t=b.qa&&!b.qa.Ag();d=a.qa&&!a.qa.Ag();t?(b.qa.hg(b.width,b.height,b.k),this.rd.Pq(b.qa)):this.rd.Vg(b.zc,b.x,b.y,b.width,b.height);t=this.rd;d?(a.qa.hg(a.width,a.height,
a.k),this.En.Pq(a.qa)):this.En.Vg(a.zc,a.x,a.y,a.width,a.height);n=this.En;d=0;for(k=t.od;d<k;d++)l=2*d,h=l+1,q=t.lb[l],e=t.lb[h],t.lb[l]=c.$b(q+b.x,e+b.y,!0),t.lb[h]=c.$b(q+b.x,e+b.y,!1);t.ya();d=0;for(k=n.od;d<k;d++)l=2*d,h=l+1,q=n.lb[l],e=n.lb[h],n.lb[l]=f.$b(q+a.x,e+a.y,!0),n.lb[h]=f.$b(q+a.x,e+a.y,!1);n.ya();return t.Gh(n,0,0)};var E=new ta;new sa(0,0,0,0);var L=[];e.prototype.br=function(b,a){var c,f,d,k,l=a.Ga,h=b.x,q=b.y;b.Jy(l,L);var t=a.qa&&!a.qa.Ag();c=0;for(f=L.length;c<f;++c)if(d=L[c],
k=d.Oy,l.Zv(k,h,q)&&(E.ti(k),E.offset(h,q),E.ip(a.zc)))if(t)if(a.qa.hg(a.width,a.height,a.k),d.jn){if(d.jn.Gh(a.qa,a.x-(h+k.left),a.y-(q+k.top)))return F(L),!0}else{if(this.rd.Vg(E,0,0,k.right-k.left,k.bottom-k.top),this.rd.Gh(a.qa,a.x,a.y))return F(L),!0}else if(d.jn){if(this.rd.Vg(a.zc,0,0,a.width,a.height),d.jn.Gh(this.rd,-(h+k.left),-(q+k.top)))return F(L),!0}else return F(L),!0;F(L);return!1};e.prototype.kr=function(b,a){if(!a)return!1;var c,f,d,k,l;c=0;for(f=b.Ta.length;c<f;c++)if(b.Ta[c].behavior instanceof
a)return!0;if(!b.U)for(c=0,f=b.Ha.length;c<f;c++)for(l=b.Ha[c],d=0,k=l.Ta.length;d<k;d++)if(l.Ta[d].behavior instanceof a)return!0;return!1};e.prototype.Mn=function(b){return this.kr(b,fc.hy)};e.prototype.Nn=function(b){return this.kr(b,fc.iy)};var J=[];e.prototype.Wf=function(b){var a,c,f;b.ya();this.Cv(b.q,b.Ga,J);a=0;for(c=J.length;a<c;++a)if(f=J[a],f.K.solidEnabled&&this.gf(b,f))return F(J),f;F(J);return null};e.prototype.Rw=function(b,a,c,f){f=f||50;var d=b.x,k=b.y,l,h=null,q=null;for(l=0;l<
f;l++)if(b.x=d+a*l,b.y=k+c*l,b.O(),!this.gf(b,h)&&((h=this.Wf(b))&&(q=h),!h&&!h))return q&&this.Pw(b,a,c,q),!0;b.x=d;b.y=k;b.O();return!1};e.prototype.Pw=function(b,a,c,f){var d=2,k,l=!1;k=!1;for(var h=b.x,q=b.y;16>=d;)k=1/d,d*=2,b.x+=a*k*(l?1:-1),b.y+=c*k*(l?1:-1),b.O(),this.gf(b,f)?k=l=!0:(k=l=!1,h=b.x,q=b.y);k&&(b.x=h,b.y=q,b.O())};e.prototype.Sw=function(b){var a=0,c=b.x,f=b.y,d=0,k=0,l=0,h=this.Wf(b);if(h){for(;100>=a;){switch(d){case 0:k=0;l=-1;a++;break;case 1:k=1;l=-1;break;case 2:k=1;l=0;
break;case 3:l=k=1;break;case 4:k=0;l=1;break;case 5:k=-1;l=1;break;case 6:k=-1;l=0;break;case 7:l=k=-1}d=(d+1)%8;b.x=pa(c+k*a);b.y=pa(f+l*a);b.O();if(!this.gf(b,h)&&(h=this.Wf(b),!h))return}b.x=c;b.y=f;b.O()}};e.prototype.Uw=function(b,a){b.Rd&&a.Rd&&this.ni.push([b,a])};e.prototype.Qt=function(b,a){var c,f,d;c=0;for(f=this.ni.length;c<f;c++)if(d=this.ni[c],d[0]==b&&d[1]==a||d[0]==a&&d[1]==b)return!0;return!1};e.prototype.Ot=function(b,a,c){var f=b.x,d=b.y,k=ma(10,Sa(a,c,f,d)),l=Na(a,c,f,d),h=this.Wf(b);
if(!h)return Ia(l+oa);var q=h,t,e,n,g,y=T(5);for(t=1;36>t;t++)if(e=l-t*y,b.x=a+Math.cos(e)*k,b.y=c+Math.sin(e)*k,b.O(),!this.gf(b,q)&&(q=this.Wf(b),!q)){n=e;break}36===t&&(n=Ia(l+oa));q=h;for(t=1;36>t;t++)if(e=l+t*y,b.x=a+Math.cos(e)*k,b.y=c+Math.sin(e)*k,b.O(),!this.gf(b,q)&&(q=this.Wf(b),!q)){g=e;break}36===t&&(g=Ia(l+oa));b.x=f;b.y=d;b.O();if(g===n)return g;b=Oa(g,n)/2;b=Qa(g,n)?Ia(n+b+oa):Ia(g+b);n=Math.cos(l);l=Math.sin(l);g=Math.cos(b);b=Math.sin(b);a=n*g+l*b;return Na(0,0,n-2*a*g,l-2*a*b)};
var M=-1;e.prototype.trigger=function(b,a,c){if(!this.wa)return!1;var f=this.wa.xf;if(!f)return!1;var d=!1,k,l,h;M++;var q=f.Il;l=0;for(h=q.length;l<h;++l)k=this.hr(b,a,q[l],c),d=d||k;k=this.hr(b,a,f,c);M--;return d||k};e.prototype.hr=function(b,a,c,f){var d=!1,k,l,h,q;if(a)for(h=this.Kn(b,a,a.type.name,c,f),d=d||h,q=a.type.Ha,k=0,l=q.length;k<l;++k)h=this.Kn(b,a,q[k].name,c,f),d=d||h;else h=this.Kn(b,a,"system",c,f),d=d||h;return d};e.prototype.Kn=function(b,a,c,f,d){var k,l=!1,h=!1,h="undefined"!==
typeof d,q=(h?f.Lo:f.ir)[c];if(!q)return l;var t=null;f=0;for(k=q.length;f<k;++f)if(q[f].method==b){t=q[f].sh;break}if(!t)return l;var e;h?e=t[d]:e=t;if(!e)return null;f=0;for(k=e.length;f<k;f++)b=e[f][0],d=e[f][1],h=this.dv(a,c,b,d),l=l||h;return l};e.prototype.dv=function(b,a,c,f){var d,k,l=!1;this.Ln++;var h=this.eb().Cb;h&&this.ji(h.df);var q=1<this.Ln;this.ji(c.df);q&&this.Qw();var t=this.Ak(c);t.Cb=c;b&&(d=this.types[a].X(),d.ca=!1,F(d.c),d.c[0]=b,this.types[a].Jc());b=!0;if(c.parent){a=t.$q;
for(d=c.parent;d;)a.push(d),d=d.parent;a.reverse();d=0;for(k=a.length;d<k;d++)if(!a[d].bx()){b=!1;break}}b&&(this.zf++,c.Uc?c.ax(f):c.Wa(),l=l||t.Lf);this.wk();q&&this.Hw();this.$e(c.df);h&&this.$e(h.df);this.Pe&&0===this.Dc&&0===M&&!this.vm&&this.Mb();this.Ln--;return l};e.prototype.qg=function(){var b=this.eb();return b.Cb.pb[b.ob]};e.prototype.rv=function(){var b=this.eb();return b.Cb.Ic[b.Nb]};e.prototype.Qw=function(){this.fk++;this.fk>=this.Im.length&&this.Im.push([])};e.prototype.Hw=function(){this.fk--};
e.prototype.Uo=function(){return this.Im[this.fk]};e.prototype.Ak=function(b){this.uj++;this.uj>=this.Ml.length&&this.Ml.push(new Rb);var a=this.eb();a.reset(b);return a};e.prototype.wk=function(){this.uj--};e.prototype.eb=function(){return this.Ml[this.uj]};e.prototype.Vo=function(b,a){for(var c,f,d,k,l,h;a;){c=0;for(f=a.Zc.length;c<f;c++)if(h=a.Zc[c],h instanceof Sb&&mb(b,h.name))return h;a=a.parent}c=0;for(f=this.Xd.length;c<f;c++)for(l=this.Xd[c],d=0,k=l.Ne.length;d<k;d++)if(h=l.Ne[d],h instanceof
Sb&&mb(b,h.name))return h;return null};e.prototype.Xo=function(b){var a,c;a=0;for(c=this.ld.length;a<c;a++)if(this.ld[a].fa===b)return this.ld[a];return null};e.prototype.Jj=function(b){var a,c;a=0;for(c=this.A.length;a<c;a++)if(this.A[a].fa===b)return this.A[a];return null};e.prototype.tv=function(b){var a,c;a=0;for(c=this.Be.length;a<c;a++)if(this.Be[a].fa===b)return this.Be[a];return null};e.prototype.cu=function(b,a){this.yi=[b,a];this.Z=!0};e.prototype.Sv=function(){var b=this,c=this.xn,f=this.fe,
d=this.$j,k=!1;this.Uq&&(k=!0,c="__c2_continuouspreview",this.Uq=!1);if(c.length){this.Mb();f=this.ix();if(window.indexedDB&&!this.hc)u(c,f,function(){B("Saved state to IndexedDB storage ("+f.length+" bytes)");b.fe=f;b.trigger(U.prototype.j.il,null);b.fe="";k&&a()},function(d){try{localStorage.setItem("__c2save_"+c,f),B("Saved state to WebStorage ("+f.length+" bytes)"),b.fe=f,b.trigger(U.prototype.j.il,null),b.fe="",k&&a()}catch(l){B("Failed to save game state: "+d+"; "+l)}});else try{localStorage.setItem("__c2save_"+
c,f),B("Saved state to WebStorage ("+f.length+" bytes)"),b.fe=f,this.trigger(U.prototype.j.il,null),b.fe="",k&&a()}catch(l){B("Error saving to WebStorage: "+l)}this.Sb=this.$j=this.xn=""}if(d.length){if(window.indexedDB&&!this.hc)n(d,function(a){a?(b.Sb=a,B("Loaded state from IndexedDB storage ("+b.Sb.length+" bytes)")):(b.Sb=localStorage.getItem("__c2save_"+d)||"",B("Loaded state from WebStorage ("+b.Sb.length+" bytes)"));b.Bi=!1;b.Sb.length||b.trigger(U.prototype.j.fl,null)},function(){b.Sb=localStorage.getItem("__c2save_"+
d)||"";B("Loaded state from WebStorage ("+b.Sb.length+" bytes)");b.Bi=!1;b.Sb.length||b.trigger(U.prototype.j.fl,null)});else{try{this.Sb=localStorage.getItem("__c2save_"+d)||"",B("Loaded state from WebStorage ("+this.Sb.length+" bytes)")}catch(h){this.Sb=""}this.Bi=!1;b.Sb.length||b.trigger(U.prototype.j.fl,null)}this.xn=this.$j=""}this.Sb.length&&(this.Mb(),this.pw(this.Sb),this.fe=this.Sb,this.trigger(U.prototype.j.Cs,null),this.Sb=this.fe="")};e.prototype.ix=function(){var b,a,f,d,k,l,h,q={c2save:!0,
version:1,rt:{time:this.rb.P,walltime:this.ve.P,timescale:this.Zf,tickcount:this.Yf,execcount:this.zf,next_uid:this.fi,running_layout:this.wa.fa,start_time_offset:Date.now()-this.Lk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};b=0;for(a=this.A.length;b<a;b++)if(k=this.A[b],!k.U&&!this.Mn(k)){l={instances:[]};Va(k.K)&&(l.ex=c(k.K));f=0;for(d=k.c.length;f<d;f++)l.instances.push(this.wn(k.c[f]));q.types[k.fa.toString()]=l}b=0;for(a=this.ld.length;b<a;b++)f=this.ld[b],q.layouts[f.fa.toString()]=
f.mb();d=q.events.groups;b=0;for(a=this.Be.length;b<a;b++)f=this.Be[b],d[f.fa.toString()]=this.tg[f.Bh].Df;a=q.events.cnds;for(h in this.jg)this.jg.hasOwnProperty(h)&&(b=this.jg[h],Va(b.K)&&(a[h]={ex:c(b.K)}));a=q.events.acts;for(h in this.fg)this.fg.hasOwnProperty(h)&&(b=this.fg[h],Va(b.K)&&(a[h]={ex:b.K}));a=q.events.vars;for(h in this.fh)this.fh.hasOwnProperty(h)&&(b=this.fh[h],b.Tj||b.parent&&!b.Nh||(a[h]=b.data));q.system=this.Kd.mb();return JSON.stringify(q)};e.prototype.Cq=function(){var b,
a,c,f,d,k;this.ke={};b=0;for(a=this.A.length;b<a;b++)if(c=this.A[b],!c.U)for(f=0,d=c.c.length;f<d;f++)k=c.c[f],this.ke[k.uid.toString()]=k};e.prototype.pw=function(b){b=JSON.parse(b);if(b.c2save&&!(1<b.version)){this.Rj=!0;var a=b.rt;this.rb.reset();this.rb.P=a.time;this.ve.reset();this.ve.P=a.walltime||0;this.Zf=a.timescale;this.Yf=a.tickcount;this.zf=a.execcount;this.Lk=Date.now()-a.start_time_offset;var c=a.running_layout;if(c!==this.wa.fa)if(c=this.Xo(c))this.Ho(c);else return;var f,d,k,l,h,q,
t;q=b.types;for(d in q)if(q.hasOwnProperty(d)&&(l=this.Jj(parseInt(d,10)))&&!l.U&&!this.Mn(l)){q[d].ex?l.K=q[d].ex:Wa(l.K);h=l.c;k=q[d].instances;c=0;for(f=na(h.length,k.length);c<f;c++)this.ak(h[c],k[c]);c=k.length;for(f=h.length;c<f;c++)this.ye(h[c]);c=h.length;for(f=k.length;c<f;c++){h=null;if(l.ua.Te&&(h=this.wa.Ij(k[c].w.l),!h))continue;h=this.Ke(l.Nc,h,!1,0,0,!0);this.ak(h,k[c])}l.Xg=!0}this.Mb();this.Cq();f=b.layouts;for(d in f)f.hasOwnProperty(d)&&(c=this.Xo(parseInt(d,10)))&&c.Gb(f[d]);f=
b.events.groups;for(d in f)f.hasOwnProperty(d)&&(c=this.tv(parseInt(d,10)))&&this.tg[c.Bh]&&this.tg[c.Bh].qi(f[d]);c=b.events.cnds;for(d in c)c.hasOwnProperty(d)&&this.jg.hasOwnProperty(d)&&(this.jg[d].K=c[d].ex);c=b.events.acts;for(d in c)c.hasOwnProperty(d)&&this.fg.hasOwnProperty(d)&&(this.fg[d].K=c[d].ex);c=b.events.vars;for(d in c)c.hasOwnProperty(d)&&this.fh.hasOwnProperty(d)&&(this.fh[d].data=c[d]);this.fi=a.next_uid;this.Rj=!1;this.Kd.Gb(b.system);c=0;for(f=this.A.length;c<f;c++)if(l=this.A[c],
!l.U&&!this.Mn(l))for(d=0,b=l.c.length;d<b;d++){h=l.c[d];if(l.Zb)for(q=h.Ah(),F(h.siblings),a=0,k=l.oc.length;a<k;a++)t=l.oc[a],l!==t&&h.siblings.push(t.c[q]);h.Nd&&h.Nd();if(h.S)for(a=0,k=h.S.length;a<k;a++)q=h.S[a],q.Nd&&q.Nd()}this.Z=!0}};e.prototype.wn=function(b,a){var f,d,k,l,h;l=b.type;k=l.ua;var q={};a?q.c2=!0:q.uid=b.uid;Va(b.K)&&(q.ex=c(b.K));if(b.gb&&b.gb.length)for(q.ivs={},f=0,d=b.gb.length;f<d;f++)q.ivs[b.type.pm[f].toString()]=b.gb[f];if(k.Te){k={x:b.x,y:b.y,w:b.width,h:b.height,l:b.q.fa,
zi:b.Ad()};0!==b.k&&(k.a=b.k);1!==b.opacity&&(k.o=b.opacity);.5!==b.Xb&&(k.hX=b.Xb);.5!==b.Yb&&(k.hY=b.Yb);0!==b.Ob&&(k.bm=b.Ob);b.visible||(k.v=b.visible);b.Rd||(k.ce=b.Rd);-1!==b.ei&&(k.mts=b.ei);if(l.T.length)for(k.fx=[],f=0,d=l.T.length;f<d;f++)h=l.T[f],k.fx.push({name:h.name,active:b.Ae[h.index],params:b.Ja[h.index]});q.w=k}if(b.S&&b.S.length)for(q.behs={},f=0,d=b.S.length;f<d;f++)l=b.S[f],l.mb&&(q.behs[l.type.fa.toString()]=l.mb());b.mb&&(q.data=b.mb());return q};e.prototype.vv=function(b,a){var c,
f;c=0;for(f=b.pm.length;c<f;c++)if(b.pm[c]===a)return c;return-1};e.prototype.qv=function(b,a){var c,f;c=0;for(f=b.S.length;c<f;c++)if(b.S[c].type.fa===a)return c;return-1};e.prototype.ak=function(b,a,c){var f,d,k,l,h;h=b.type;l=h.ua;if(c){if(!a.c2)return}else b.uid=a.uid;a.ex?b.K=a.ex:Wa(b.K);if(d=a.ivs)for(f in d)d.hasOwnProperty(f)&&(k=this.vv(h,parseInt(f,10)),0>k||k>=b.gb.length||(b.gb[k]=d[f]));if(l.Te){k=a.w;b.q.fa!==k.l&&(d=b.q,b.q=this.wa.Ij(k.l),b.q?(d.Rg(b,!0),b.q.jh(b,!0),b.O(),b.q.si(0)):
(b.q=d,c||this.ye(b)));b.x=k.x;b.y=k.y;b.width=k.w;b.height=k.h;b.vd=k.zi;b.k=k.hasOwnProperty("a")?k.a:0;b.opacity=k.hasOwnProperty("o")?k.o:1;b.Xb=k.hasOwnProperty("hX")?k.hX:.5;b.Yb=k.hasOwnProperty("hY")?k.hY:.5;b.visible=k.hasOwnProperty("v")?k.v:!0;b.Rd=k.hasOwnProperty("ce")?k.ce:!0;b.ei=k.hasOwnProperty("mts")?k.mts:-1;b.Ob=k.hasOwnProperty("bm")?k.bm:0;b.nh=jb(b.Ob);this.D&&kb(b,b.Ob,this.D);b.O();if(k.hasOwnProperty("fx"))for(c=0,d=k.fx.length;c<d;c++)l=h.Zl(k.fx[c].name),0>l||(b.Ae[l]=
k.fx[c].active,b.Ja[l]=k.fx[c].params);b.td()}if(h=a.behs)for(f in h)h.hasOwnProperty(f)&&(c=this.qv(b,parseInt(f,10)),0>c||b.S[c].Gb(h[f]));a.data&&b.Gb(a.data)};Tb=function(b){return new e(document.getElementById(b))};Ub=function(b,a){return new e({dc:!0,width:b,height:a})};window.cr_createRuntime=Tb;window.cr_createDCRuntime=Ub;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var b=document.createElement("screencanvas")||document.createElement("canvas");b.Wi=!0;document.body.appendChild(b);
b=new e(b);window.c2runtime=b;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b};window.createEjectaRuntime=function(){var b=new e(document.getElementById("canvas"));window.c2runtime=b;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b}})();
window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(g,m){var e=window.cr_getC2Runtime();e&&e.cu(g,m)};window.cr_sizeCanvas=function(g,m){if(0!==g&&0!==m){var e=window.cr_getC2Runtime();e&&e.setSize(g,m)}};window.cr_setSuspended=function(g){var m=window.cr_getC2Runtime();m&&m.setSuspended(g)};
(function(){function g(b,a){this.b=b;this.xf=null;this.scrollX=this.b.kb/2;this.scrollY=this.b.jb/2;this.scale=1;this.k=0;this.pg=!0;this.name=a[0];this.width=a[1];this.height=a[2];this.lr=a[3];this.Sq=a[4];this.fa=a[5];var c=a[6],d,e;this.V=[];this.Fh=[];d=0;for(e=c.length;d<e;d++){var n=new Vb(this,c[d]);n.aq=d;this.V.push(n)}c=a[7];this.Hf=[];d=0;for(e=c.length;d<e;d++){var n=c[d],g=this.b.A[n[1]];g.Nc||(g.Nc=n);this.Hf.push(n);-1===this.Fh.indexOf(g)&&this.Fh.push(g)}this.T=[];this.ma=[];this.qe=
!0;this.Ja=[];d=0;for(e=a[8].length;d<e;d++)this.T.push({id:a[8][d][0],name:a[8][d][1],Xa:-1,Wc:!1,nb:!0,index:d}),this.Ja.push(a[8][d][2].slice(0));this.td();this.pn=new sa(0,0,1,1);this.qn=new sa(0,0,1,1);this.Ye={}}function m(b,a){return b.vd-a.vd}function e(b,a){this.ib=b;this.b=b.b;this.c=[];this.scale=1;this.k=0;this.Wd=!1;this.se=new sa(0,0,0,0);this.fr=new ta;this.Da=this.Ba=this.Ea=this.Aa=0;this.$f=!1;this.xe=-1;this.Bl=0;this.name=a[0];this.index=a[1];this.fa=a[2];this.visible=a[3];this.ed=
a[4];this.sd=a[5];this.jc=a[6];this.kc=a[7];this.opacity=a[8];this.Cj=a[9];this.Hc=a[10];this.Vb=a[11];this.Ob=a[12];this.yu=a[13];this.nh="source-over";this.Qb=this.Ub=0;this.Ib=null;this.ge=p();this.qd=!0;this.Hg=new sa(0,0,-1,-1);this.Bb=new sa(0,0,-1,-1);this.Hc&&(this.Ib=new ib(this.b.kb,this.b.jb));this.Gd=!1;var c=a[14],d,e;this.Yq=[];this.Cc=[];this.ph=[];d=0;for(e=c.length;d<e;d++){var n=c[d],g=this.b.A[n[1]];g.Nc||(g.Nc=n,g.$t=this.index);this.Cc.push(n);-1===this.ib.Fh.indexOf(g)&&this.ib.Fh.push(g)}za(this.Yq,
this.Cc);this.T=[];this.ma=[];this.qe=!0;this.Ja=[];d=0;for(e=a[15].length;d<e;d++)this.T.push({id:a[15][d][0],name:a[15][d][1],Xa:-1,Wc:!1,nb:!0,index:d}),this.Ja.push(a[15][d][2].slice(0));this.td();this.pn=new sa(0,0,1,1);this.qn=new sa(0,0,1,1)}function p(){return a.length?a.pop():[]}function r(b){F(b);a.push(b)}g.prototype.hx=function(b){var a=b.type.fa.toString();this.Ye.hasOwnProperty(a)||(this.Ye[a]=[]);this.Ye[a].push(this.b.wn(b))};g.prototype.bp=function(){var b=this.V[0];return!b.sd&&
1===b.opacity&&!b.Cj&&b.visible};g.prototype.td=function(){F(this.ma);this.qe=!0;var b,a,c;b=0;for(a=this.T.length;b<a;b++)c=this.T[b],c.nb&&(this.ma.push(c),c.Wc||(this.qe=!1))};g.prototype.Yl=function(b){var a,c,d;a=0;for(c=this.T.length;a<c;a++)if(d=this.T[a],d.name===b)return d;return null};var u=[],n=!0;g.prototype.Cn=function(){this.Sq&&(this.xf=this.b.Nl[this.Sq],this.xf.Pn());this.b.wa=this;this.scrollX=this.b.kb/2;this.scrollY=this.b.jb/2;var b,a,c,d,e,g,x;b=0;for(c=this.b.A.length;b<c;b++)if(a=
this.b.A[b],!a.U)for(e=a.c,a=0,d=e.length;a<d;a++)if(g=e[a],g.q){var k=g.q.aq;k>=this.V.length&&(k=this.V.length-1);g.q=this.V[k];-1===g.q.c.indexOf(g)&&g.q.c.push(g);g.q.$f=!0}if(!n)for(b=0,c=this.V.length;b<c;++b)this.V[b].c.sort(m);F(u);this.Mt();b=0;for(c=this.V.length;b<c;b++)g=this.V[b],g.Xt(),g.Zk();e=!1;if(!this.pg){for(x in this.Ye)if(this.Ye.hasOwnProperty(x)&&(a=this.b.Jj(parseInt(x,10)))&&!a.U&&this.b.Nn(a)){d=this.Ye[x];b=0;for(c=d.length;b<c;b++){g=null;if(a.ua.Te&&(g=this.Ij(d[b].w.l),
!g))continue;g=this.b.Ke(a.Nc,g,!1,0,0,!0);this.b.ak(g,d[b]);e=!0;u.push(g)}F(d)}b=0;for(c=this.V.length;b<c;b++)this.V[b].c.sort(m),this.V[b].$f=!0}e&&(this.b.Mb(),this.b.Cq());for(b=0;b<u.length;b++)if(g=u[b],g.type.Zb)for(c=g.Ah(),a=0,d=g.type.oc.length;a<d;a++)x=g.type.oc[a],g.type!==x&&(x.c.length>c?g.siblings.push(x.c[c]):x.Nc&&(e=this.b.Ke(x.Nc,g.q,!0,g.x,g.y,!0),this.b.Mb(),x.Xk(),g.siblings.push(e),u.push(e)));b=0;for(c=this.Hf.length;b<c;b++)this.b.Ke(this.Hf[b],null,!0);this.b.pf=null;
this.b.Mb();if(this.b.xa&&!this.b.ta)for(b=0,c=this.b.A.length;b<c;b++)x=this.b.A[b],!x.U&&x.c.length&&x.kn&&x.kn(this.b.xa);b=0;for(c=u.length;b<c;b++)g=u[b],this.b.trigger(Object.getPrototypeOf(g.type.ua).j.dg,g);F(u);this.b.Rj||this.b.trigger(U.prototype.j.co,null);this.pg=!1};g.prototype.Wt=function(){var b,a,c,d,e;a=b=0;for(c=this.Hf.length;b<c;b++)d=this.Hf[b],e=this.b.A[d[1]],e.global?e.Zb||this.b.Ke(d,null,!0):(this.Hf[a]=d,a++);ya(this.Hf,a)};g.prototype.vx=function(){this.b.Rj||this.b.trigger(U.prototype.j.Bs,
null);this.b.rm=!0;F(this.b.Kd.Lb);var b,a,c,d,e,g;if(!this.pg)for(b=0,a=this.V.length;b<a;b++)for(this.V[b].Rn(),e=this.V[b].c,c=0,d=e.length;c<d;c++)g=e[c],g.type.global||this.b.Nn(g.type)&&this.hx(g);b=0;for(a=this.V.length;b<a;b++){e=this.V[b].c;c=0;for(d=e.length;c<d;c++)g=e[c],g.type.global||this.b.ye(g);this.b.Mb();F(e);this.V[b].$f=!0}b=0;for(a=this.b.A.length;b<a;b++)if(e=this.b.A[b],!(e.global||e.ua.Te||e.ua.Kk||e.U)){c=0;for(d=e.c.length;c<d;c++)this.b.ye(e.c[c]);this.b.Mb()}n=!1;this.b.rm=
!1};new sa(0,0,0,0);g.prototype.Le=function(b){var a,c=b,d=!1,e=!this.b.Ac;e&&(this.b.Zj||(this.b.Zj=document.createElement("canvas"),a=this.b.Zj,a.width=this.b.J,a.height=this.b.I,this.b.zp=a.getContext("2d"),d=!0),a=this.b.Zj,c=this.b.zp,a.width!==this.b.J&&(a.width=this.b.J,d=!0),a.height!==this.b.I&&(a.height=this.b.I,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.ea,c.mozImageSmoothingEnabled=this.b.ea,c.msImageSmoothingEnabled=this.b.ea,c.imageSmoothingEnabled=this.b.ea));c.globalAlpha=1;c.globalCompositeOperation=
"source-over";this.b.nl&&!this.bp()&&c.clearRect(0,0,this.b.J,this.b.I);var n,g,d=0;for(n=this.V.length;d<n;d++)g=this.V[d],g.visible&&0<g.opacity&&11!==g.Ob&&(g.c.length||!g.sd)?g.Le(c):g.Zk();e&&b.drawImage(a,0,0,this.b.width,this.b.height)};g.prototype.mg=function(b){b.Kq(!0);this.b.Va||(this.b.Va=b.Lc(this.b.J,this.b.I,this.b.ea));if(this.b.Va.of!==this.b.J||this.b.Va.nf!==this.b.I)b.deleteTexture(this.b.Va),this.b.Va=b.Lc(this.b.J,this.b.I,this.b.ea);b.Xc(this.b.Va);this.b.Ac||b.oe(this.b.J,
this.b.I);var a,c;for(a=this.V.length-1;0<=a;--a)c=this.V[a],c.visible&&1===c.opacity&&c.qe&&0===c.Ob&&(c.c.length||!c.sd)?c.mg(b):c.Zk();b.Kq(!1)};g.prototype.Pc=function(b){var a=0<this.ma.length||this.b.dh||!this.b.Ac||this.b.Ca;if(a){this.b.Va||(this.b.Va=b.Lc(this.b.J,this.b.I,this.b.ea));if(this.b.Va.of!==this.b.J||this.b.Va.nf!==this.b.I)b.deleteTexture(this.b.Va),this.b.Va=b.Lc(this.b.J,this.b.I,this.b.ea);b.Xc(this.b.Va);this.b.Ac||b.oe(this.b.J,this.b.I)}else this.b.Va&&(b.Xc(null),b.deleteTexture(this.b.Va),
this.b.Va=null);this.b.nl&&!this.bp()&&b.clear(0,0,0,0);var c,d,e;c=0;for(d=this.V.length;c<d;c++)e=this.V[c],e.visible&&0<e.opacity&&(e.c.length||!e.sd)?e.Pc(b):e.Zk();a&&(0===this.ma.length||1===this.ma.length&&this.b.Ac?(1===this.ma.length?(a=this.ma[0].index,b.nc(this.ma[0].Xa),b.Ug(null,1/this.b.J,1/this.b.I,0,0,1,1,this.scale,this.k,0,0,this.b.J/2,this.b.I/2,this.b.rb.P,this.Ja[a]),b.zk(this.ma[0].Xa)&&(this.b.Z=!0)):b.nc(0),this.b.Ac||b.oe(this.b.width,this.b.height),b.Xc(null),b.Jq(!1),b.Tg(1),
b.Gc(this.b.Va),b.Hq(),b.Hd(),b.ud(),a=this.b.width/2,c=this.b.height/2,b.li(-a,c,a,c,a,-c,-a,-c),b.Gc(null),b.Jq(!0)):this.rn(b,null,null,null))};g.prototype.zh=function(){return 0<this.ma.length||this.b.dh||!this.b.Ac||this.b.Ca?this.b.Va:null};g.prototype.Yo=function(){var b=this.V[0].Qc(),a,c,d;a=1;for(c=this.V.length;a<c;a++)d=this.V[a],(0!==d.jc||0!==d.kc)&&d.Qc()<b&&(b=d.Qc());return b};g.prototype.Fq=function(b){if(!this.lr){var a=1/this.Yo()*this.b.J/2;b>this.width-a&&(b=this.width-a);b<
a&&(b=a)}this.scrollX!==b&&(this.scrollX=b,this.b.Z=!0)};g.prototype.Gq=function(b){if(!this.lr){var a=1/this.Yo()*this.b.I/2;b>this.height-a&&(b=this.height-a);b<a&&(b=a)}this.scrollY!==b&&(this.scrollY=b,this.b.Z=!0)};g.prototype.Mt=function(){this.Fq(this.scrollX);this.Gq(this.scrollY)};g.prototype.rn=function(b,a,c,d){var e=c?c.ma:a?a.ma:this.ma,g=1,n=0,k=0,q=0,m=this.b.J,t=this.b.I;c?(g=c.q.Qc(),n=c.q.cb(),k=c.q.Aa,q=c.q.Ba,m=c.q.Ea,t=c.q.Da):a&&(g=a.Qc(),n=a.cb(),k=a.Aa,q=a.Ba,m=a.Ea,t=a.Da);
var y=this.b.Tl,p,r,u,G,I=0,E=1,L,J=this.b.J,M=this.b.I,w=J/2,v=M/2,D=a?a.pn:this.pn,A=a?a.qn:this.qn,K=0,Q=0,H=0,C=0,N=J,ka=J,S=M,ua=M,la=u=0;G=c?c.q.cb():0;if(c){p=0;for(r=e.length;p<r;p++)u+=b.zv(e[p].Xa),la+=b.Av(e[p].Xa);C=c.Ga;K=a.$b(C.left,C.top,!0,!0);H=a.$b(C.left,C.top,!1,!0);N=a.$b(C.right,C.bottom,!0,!0);S=a.$b(C.right,C.bottom,!1,!0);0!==G&&(p=a.$b(C.right,C.top,!0,!0),r=a.$b(C.right,C.top,!1,!0),Q=a.$b(C.left,C.bottom,!0,!0),C=a.$b(C.left,C.bottom,!1,!0),G=Math.min(K,N,p,Q),N=Math.max(K,
N,p,Q),K=G,G=Math.min(H,S,r,C),S=Math.max(H,S,r,C),H=G);K-=u;H-=la;N+=u;S+=la;A.left=K/J;A.top=1-H/M;A.right=N/J;A.bottom=1-S/M;Q=K=pa(K);C=H=pa(H);ka=N=qa(N);ua=S=qa(S);Q-=u;C-=la;ka+=u;ua+=la;0>K&&(K=0);0>H&&(H=0);N>J&&(N=J);S>M&&(S=M);0>Q&&(Q=0);0>C&&(C=0);ka>J&&(ka=J);ua>M&&(ua=M);D.left=K/J;D.top=1-H/M;D.right=N/J;D.bottom=1-S/M}else D.left=A.left=0,D.top=A.top=0,D.right=A.right=1,D.bottom=A.bottom=1;la=c&&(b.ii(e[0].Xa)||0!==u||0!==la||1!==c.opacity||c.type.ua.Xp)||a&&!c&&1!==a.opacity;b.Hq();
if(la){y[I]||(y[I]=b.Lc(J,M,this.b.ea));if(y[I].of!==J||y[I].nf!==M)b.deleteTexture(y[I]),y[I]=b.Lc(J,M,this.b.ea);b.nc(0);b.Xc(y[I]);L=ua-C;b.clearRect(Q,M-C-L,ka-Q,L);c?c.Pc(b):(b.Gc(this.b.hb),b.Tg(a.opacity),b.Hd(),b.translate(-w,-v),b.ud(),b.bf(K,S,N,S,N,H,K,H,D));A.left=A.top=0;A.right=A.bottom=1;c&&(G=D.top,D.top=D.bottom,D.bottom=G);I=1;E=0}b.Tg(1);u=e.length-1;var La=b.mn(e[u].Xa)||!a&&!c&&!this.b.Ac,Ba=0;p=0;for(r=e.length;p<r;p++){y[I]||(y[I]=b.Lc(J,M,this.b.ea));if(y[I].of!==J||y[I].nf!==
M)b.deleteTexture(y[I]),y[I]=b.Lc(J,M,this.b.ea);b.nc(e[p].Xa);Ba=e[p].index;b.zk(e[p].Xa)&&(this.b.Z=!0);0!=p||la?(b.Ug(d,1/J,1/M,A.left,A.top,A.right,A.bottom,g,n,k,q,(k+m)/2,(q+t)/2,this.b.rb.P,c?c.Ja[Ba]:a?a.Ja[Ba]:this.Ja[Ba]),b.Gc(null),p!==u||La?(b.Xc(y[I]),L=ua-C,G=M-C-L,b.clearRect(Q,G,ka-Q,L)):(c?b.cf(c.Ub,c.Qb):a&&b.cf(a.Ub,a.Qb),b.Xc(d)),b.Gc(y[E]),b.Hd(),b.translate(-w,-v),b.ud(),b.bf(K,S,N,S,N,H,K,H,D),p!==u||La||b.Gc(null)):(b.Xc(y[I]),L=ua-C,G=M-C-L,b.clearRect(Q,G,ka-Q,L),c?(b.Ug(d,
1/c.width,1/c.height,A.left,A.top,A.right,A.bottom,g,n,k,q,(k+m)/2,(q+t)/2,this.b.rb.P,c.Ja[Ba]),c.Pc(b)):(b.Ug(d,1/J,1/M,0,0,1,1,g,n,k,q,(k+m)/2,(q+t)/2,this.b.rb.P,a?a.Ja[Ba]:this.Ja[Ba]),b.Gc(a?this.b.hb:this.b.Va),b.Hd(),b.translate(-w,-v),b.ud(),b.bf(K,S,N,S,N,H,K,H,D)),A.left=A.top=0,A.right=A.bottom=1,c&&!La&&(G=S,S=H,H=G));I=0===I?1:0;E=0===I?1:0}La&&(b.nc(0),c?b.cf(c.Ub,c.Qb):a?b.cf(a.Ub,a.Qb):this.b.Ac||(b.oe(this.b.width,this.b.height),w=this.b.width/2,v=this.b.height/2,H=K=0,N=this.b.width,
S=this.b.height),b.Xc(d),b.Gc(y[E]),b.Hd(),b.translate(-w,-v),b.ud(),c&&1===e.length&&!la?b.bf(K,H,N,H,N,S,K,S,D):b.bf(K,S,N,S,N,H,K,H,D),b.Gc(null))};g.prototype.Ij=function(b){var a,c;a=0;for(c=this.V.length;a<c;a++)if(this.V[a].fa===b)return this.V[a];return null};g.prototype.mb=function(){var b,a,c,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.pg,persist:this.Ye,fx:[],layers:{}};b=0;for(a=this.T.length;b<a;b++)c=this.T[b],d.fx.push({name:c.name,active:c.nb,
params:this.Ja[c.index]});b=0;for(a=this.V.length;b<a;b++)c=this.V[b],d.layers[c.fa.toString()]=c.mb();return d};g.prototype.Gb=function(b){var a,c,d,e;this.scrollX=b.sx;this.scrollY=b.sy;this.scale=b.s;this.k=b.a;this.width=b.w;this.height=b.h;this.Ye=b.persist;"undefined"!==typeof b.fv&&(this.pg=b.fv);var g=b.fx;a=0;for(c=g.length;a<c;a++)if(d=this.Yl(g[a].name))d.nb=g[a].active,this.Ja[d.index]=g[a].params;this.td();a=b.layers;for(e in a)a.hasOwnProperty(e)&&(b=this.Ij(parseInt(e,10)))&&b.Gb(a[e])};
Hb=g;e.prototype.td=function(){F(this.ma);this.qe=!0;var b,a,c;b=0;for(a=this.T.length;b<a;b++)c=this.T[b],c.nb&&(this.ma.push(c),c.Wc||(this.qe=!1))};e.prototype.Yl=function(b){var a,c,d;a=0;for(c=this.T.length;a<c;a++)if(d=this.T[a],d.name===b)return d;return null};e.prototype.Xt=function(){var b,a,c,d,e,g;a=b=0;for(c=this.Cc.length;b<c;b++){d=this.Cc[b];e=this.b.A[d[1]];g=this.b.Nn(e);e=!0;if(!g||this.ib.pg)d=this.b.Ke(d,this,!0),u.push(d),d.type.global&&(e=!1,this.ph.push(d.uid));e&&(this.Cc[a]=
this.Cc[b],a++)}this.Cc.length=a;this.b.Mb();!this.b.F&&this.T.length&&(this.Ob=this.yu);this.nh=jb(this.Ob);this.b.D&&kb(this,this.Ob,this.b.D);this.qd=!0};e.prototype.Rg=function(b,a){var c=Ca(this.c,b);0>c||(a&&this.Hc&&b.lc&&b.lc.right>=b.lc.left&&(b.ya(),this.Ib.update(b,b.lc,null),b.lc.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(xa(this.c,c),this.si(c)),this.qd=!0)};e.prototype.jh=function(b,a){b.vd=this.c.length;this.c.push(b);a&&this.Hc&&b.lc&&b.O();this.qd=!0};e.prototype.Mw=function(b){this.c.unshift(b);
this.si(0)};e.prototype.ww=function(b,a,c){var d=b.Ad();a=a.Ad();xa(this.c,d);d<a&&a--;c&&a++;a===this.c.length?this.c.push(b):this.c.splice(a,0,b);this.si(d<a?d:a)};e.prototype.si=function(b){-1===this.xe?this.xe=b:b<this.xe&&(this.xe=b);this.qd=this.$f=!0};e.prototype.Rn=function(){if(this.$f){-1===this.xe&&(this.xe=0);var b,a,c;if(this.Hc)for(b=this.xe,a=this.c.length;b<a;++b)c=this.c[b],c.vd=b,this.Ib.sw(c.lc);else for(b=this.xe,a=this.c.length;b<a;++b)this.c[b].vd=b;this.$f=!1;this.xe=-1}};e.prototype.Qc=
function(b){return this.wv()*(this.b.Ac||b?this.b.kh:1)};e.prototype.wv=function(){return(this.scale*this.ib.scale-1)*this.Vb+1};e.prototype.cb=function(){return this.Wd?0:Ia(this.ib.k+this.k)};var a=[],c=[],d=[];e.prototype.cm=function(){this.Rn();this.Ib.Bk(this.Aa,this.Ba,this.Ea,this.Da,d);if(!d.length)return p();if(1===d.length){var b=p();za(b,d[0]);F(d);return b}for(var a=!0;1<d.length;){for(var b=d,h=void 0,l=void 0,e=void 0,g=void 0,n=void 0,h=0,l=b.length;h<l-1;h+=2){var e=b[h],g=b[h+1],
n=p(),k=e,q=g,m=n,t=0,y=0,R=0,P=k.length,u=q.length,G=void 0,I=void 0;for(m.length=P+u;t<P&&y<u;++R)G=k[t],I=q[y],G.vd<I.vd?(m[R]=G,++t):(m[R]=I,++y);for(;t<P;++t,++R)m[R]=k[t];for(;y<u;++y,++R)m[R]=q[y];a||(r(e),r(g));c.push(n)}1===l%2&&(a?(e=p(),za(e,b[l-1]),c.push(e)):c.push(b[l-1]));za(b,c);F(c);a=!1}b=d[0];F(d);return b};e.prototype.Le=function(b){this.Gd=this.Cj||1!==this.opacity||0!==this.Ob;var a=this.b.canvas,c=b,d=!1;this.Gd&&(this.b.Yj||(this.b.Yj=document.createElement("canvas"),a=this.b.Yj,
a.width=this.b.J,a.height=this.b.I,this.b.yp=a.getContext("2d"),d=!0),a=this.b.Yj,c=this.b.yp,a.width!==this.b.J&&(a.width=this.b.J,d=!0),a.height!==this.b.I&&(a.height=this.b.I,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.ea,c.mozImageSmoothingEnabled=this.b.ea,c.msImageSmoothingEnabled=this.b.ea,c.imageSmoothingEnabled=this.b.ea),this.sd&&c.clearRect(0,0,this.b.J,this.b.I));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.sd||(c.fillStyle="rgb("+this.ed[0]+","+this.ed[1]+","+this.ed[2]+
")",c.fillRect(0,0,this.b.J,this.b.I));c.save();this.Wd=!0;var d=this.Na(0,0,!0,!0),e=this.Na(0,0,!1,!0);this.Wd=!1;this.b.me&&(d=Math.round(d),e=Math.round(e));this.Ek(d,e,c);var g=this.Qc();c.scale(g,g);c.translate(-d,-e);this.Hc?(this.Bb.left=this.Ib.ec(this.Aa),this.Bb.top=this.Ib.fc(this.Ba),this.Bb.right=this.Ib.ec(this.Ea),this.Bb.bottom=this.Ib.fc(this.Da),this.qd||!this.Bb.rh(this.Hg)?(r(this.ge),d=this.cm(),this.qd=!1,this.Hg.kg(this.Bb)):d=this.ge):d=this.c;for(var n,k=null,e=0,g=d.length;e<
g;++e)n=d[e],n!==k&&(this.tu(n,c),k=n);this.Hc&&(this.ge=d);c.restore();this.Gd&&(b.globalCompositeOperation=this.nh,b.globalAlpha=this.opacity,b.drawImage(a,0,0))};e.prototype.tu=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.ya();var c=b.Ga;c.right<this.Aa||c.bottom<this.Ba||c.left>this.Ea||c.top>this.Da||(a.globalCompositeOperation=b.nh,b.Le(a))}};e.prototype.Zk=function(){this.Wd=!0;var b=this.Na(0,0,!0,!0),a=this.Na(0,0,!1,!0);this.Wd=!1;this.b.me&&(b=Math.round(b),a=Math.round(a));
this.Ek(b,a,null)};e.prototype.Ek=function(b,a,c){var d=this.Qc();this.Aa=b;this.Ba=a;this.Ea=b+1/d*this.b.J;this.Da=a+1/d*this.b.I;b=this.cb();0!==b&&(c&&(c.translate(this.b.J/2,this.b.I/2),c.rotate(-b),c.translate(this.b.J/-2,this.b.I/-2)),this.se.set(this.Aa,this.Ba,this.Ea,this.Da),this.se.offset((this.Aa+this.Ea)/-2,(this.Ba+this.Da)/-2),this.fr.Qq(this.se,b),this.fr.zo(this.se),this.se.offset((this.Aa+this.Ea)/2,(this.Ba+this.Da)/2),this.Aa=this.se.left,this.Ba=this.se.top,this.Ea=this.se.right,
this.Da=this.se.bottom)};e.prototype.mg=function(b){if(this.Gd=this.Cj){this.b.hb||(this.b.hb=b.Lc(this.b.J,this.b.I,this.b.ea));if(this.b.hb.of!==this.b.J||this.b.hb.nf!==this.b.I)b.deleteTexture(this.b.hb),this.b.hb=b.Lc(this.b.J,this.b.I,this.b.ea);b.Xc(this.b.hb)}this.Wd=!0;var a=this.Na(0,0,!0,!0),c=this.Na(0,0,!1,!0);this.Wd=!1;this.b.me&&(a=Math.round(a),c=Math.round(c));this.Ek(a,c,null);a=this.Qc();b.Hd();b.scale(a,a);b.tn(-this.cb());b.translate((this.Aa+this.Ea)/-2,(this.Ba+this.Da)/-2);
b.ud();this.Hc?(this.Bb.left=this.Ib.ec(this.Aa),this.Bb.top=this.Ib.fc(this.Ba),this.Bb.right=this.Ib.ec(this.Ea),this.Bb.bottom=this.Ib.fc(this.Da),this.qd||!this.Bb.rh(this.Hg)?(r(this.ge),a=this.cm(),this.qd=!1,this.Hg.kg(this.Bb)):a=this.ge):a=this.c;for(var d,e=null,c=a.length-1;0<=c;--c)d=a[c],d!==e&&(this.vu(a[c],b),e=d);this.Hc&&(this.ge=a);this.sd||(this.Bl=this.b.uf++,b.Hk(this.Bl),b.Iq(1,1,1),b.Ro(),b.Xw())};e.prototype.Pc=function(b){var a=0,c=0;if(this.Gd=this.Cj||1!==this.opacity||
0<this.ma.length||0!==this.Ob){this.b.hb||(this.b.hb=b.Lc(this.b.J,this.b.I,this.b.ea));if(this.b.hb.of!==this.b.J||this.b.hb.nf!==this.b.I)b.deleteTexture(this.b.hb),this.b.hb=b.Lc(this.b.J,this.b.I,this.b.ea);b.Xc(this.b.hb);this.sd&&b.clear(0,0,0,0)}this.sd||(this.b.Ca?(b.Hk(this.Bl),b.Iq(this.ed[0]/255,this.ed[1]/255,this.ed[2]/255),b.Ro(),b.ox()):b.clear(this.ed[0]/255,this.ed[1]/255,this.ed[2]/255,1));this.Wd=!0;var d=this.Na(0,0,!0,!0),a=this.Na(0,0,!1,!0);this.Wd=!1;this.b.me&&(d=Math.round(d),
a=Math.round(a));this.Ek(d,a,null);d=this.Qc();b.Hd();b.scale(d,d);b.tn(-this.cb());b.translate((this.Aa+this.Ea)/-2,(this.Ba+this.Da)/-2);b.ud();this.Hc?(this.Bb.left=this.Ib.ec(this.Aa),this.Bb.top=this.Ib.fc(this.Ba),this.Bb.right=this.Ib.ec(this.Ea),this.Bb.bottom=this.Ib.fc(this.Da),this.qd||!this.Bb.rh(this.Hg)?(r(this.ge),a=this.cm(),this.qd=!1,this.Hg.kg(this.Bb)):a=this.ge):a=this.c;var e,g,n=null,c=0;for(e=a.length;c<e;++c)g=a[c],g!==n&&(this.uu(a[c],b),n=g);this.Hc&&(this.ge=a);this.Gd&&
(a=this.ma.length?this.ma[0].Xa:0,c=this.ma.length?this.ma[0].index:0,0===this.ma.length||1===this.ma.length&&!b.mn(a)&&1===this.opacity?(1===this.ma.length?(b.nc(a),b.Ug(this.ib.zh(),1/this.b.J,1/this.b.I,0,0,1,1,d,this.cb(),this.Aa,this.Ba,(this.Aa+this.Ea)/2,(this.Ba+this.Da)/2,this.b.rb.P,this.Ja[c]),b.zk(a)&&(this.b.Z=!0)):b.nc(0),b.Xc(this.ib.zh()),b.Tg(this.opacity),b.Gc(this.b.hb),b.cf(this.Ub,this.Qb),b.Hd(),b.ud(),d=this.b.J/2,a=this.b.I/2,b.li(-d,a,d,a,d,-a,-d,-a),b.Gc(null)):this.ib.rn(b,
this,null,this.ib.zh()))};e.prototype.uu=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.ya();var c=b.Ga;c.right<this.Aa||c.bottom<this.Ba||c.left>this.Ea||c.top>this.Da||(a.Hk(b.uf),b.sr?this.wu(b,a):(a.nc(0),a.cf(b.Ub,b.Qb),b.Pc(a)))}};e.prototype.vu=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.ya();var c=b.Ga;c.right<this.Aa||c.bottom<this.Ba||c.left>this.Ea||c.top>this.Da||(b.uf=this.b.uf++,0===b.Ob&&1===b.opacity&&b.qe&&b.mg&&(a.Hk(b.uf),b.mg(a)))}};e.prototype.wu=function(b,
a){var c=b.ma[0].Xa,d=b.ma[0].index,e=this.Qc();if(1!==b.ma.length||a.mn(c)||a.Ow(c)||(b.k||b.q.cb())&&a.ii(c)||1!==b.opacity||b.type.ua.Xp)this.ib.rn(a,this,b,this.Gd?this.b.hb:this.ib.zh()),a.Hd(),a.scale(e,e),a.tn(-this.cb()),a.translate((this.Aa+this.Ea)/-2,(this.Ba+this.Da)/-2),a.ud();else{a.nc(c);a.cf(b.Ub,b.Qb);a.zk(c)&&(this.b.Z=!0);var g=0,n=0,k=0,q=0;a.ii(c)&&(c=b.Ga,g=this.$b(c.left,c.top,!0,!0),n=this.$b(c.left,c.top,!1,!0),k=this.$b(c.right,c.bottom,!0,!0),c=this.$b(c.right,c.bottom,
!1,!0),g=g/windowWidth,n=1-n/windowHeight,k=k/windowWidth,q=1-c/windowHeight);a.Ug(this.Gd?this.b.hb:this.ib.zh(),1/b.width,1/b.height,g,n,k,q,e,this.cb(),this.Aa,this.Ba,(this.Aa+this.Ea)/2,(this.Ba+this.Da)/2,this.b.rb.P,b.Ja[d]);b.Pc(a)}};e.prototype.Na=function(b,a,c,d){var e=this.b.devicePixelRatio;this.b.Se&&(b*=e,a*=e);var e=this.b.sq,g=this.b.tq,e=(this.ib.scrollX-e)*this.jc+e,g=(this.ib.scrollY-g)*this.kc+g,n=e,k=g,q=1/this.Qc(!d);d?(n-=this.b.J*q/2,k-=this.b.I*q/2):(n-=this.b.width*q/2,
k-=this.b.height*q/2);n+=b*q;k+=a*q;a=this.cb();0!==a&&(n-=e,k-=g,b=Math.cos(a),a=Math.sin(a),d=n*b-k*a,k=k*b+n*a,n=d+e,k+=g);return c?n:k};e.prototype.$b=function(b,a,c,d){var e=this.b.sq,g=this.b.tq,n=(this.ib.scrollX-e)*this.jc+e,k=(this.ib.scrollY-g)*this.kc+g,g=n,e=k,q=this.cb();if(0!==q){b-=n;a-=k;var m=Math.cos(-q),q=Math.sin(-q),t=b*m-a*q;a=a*m+b*q;b=t+n;a+=k}n=1/this.Qc(!d);d?(g-=this.b.J*n/2,e-=this.b.I*n/2):(g-=this.b.width*n/2,e-=this.b.height*n/2);g=(b-g)/n;e=(a-e)/n;b=this.b.devicePixelRatio;
this.b.Se&&!d&&(g/=b,e/=b);return c?g:e};e.prototype.mb=function(){var b,a,c,d={s:this.scale,a:this.k,vl:this.Aa,vt:this.Ba,vr:this.Ea,vb:this.Da,v:this.visible,bc:this.ed,t:this.sd,px:this.jc,py:this.kc,o:this.opacity,zr:this.Vb,fx:[],cg:this.ph,instances:[]};b=0;for(a=this.T.length;b<a;b++)c=this.T[b],d.fx.push({name:c.name,active:c.nb,params:this.Ja[c.index]});return d};e.prototype.Gb=function(b){var a,c,d;this.scale=b.s;this.k=b.a;this.Aa=b.vl;this.Ba=b.vt;this.Ea=b.vr;this.Da=b.vb;this.visible=
b.v;this.ed=b.bc;this.sd=b.t;this.jc=b.px;this.kc=b.py;this.opacity=b.o;this.Vb=b.zr;this.ph=b.cg||[];za(this.Cc,this.Yq);var e=new ba;a=0;for(d=this.ph.length;a<d;++a)e.add(this.ph[a]);c=a=0;for(d=this.Cc.length;a<d;++a)e.contains(this.Cc[a][2])||(this.Cc[c]=this.Cc[a],++c);ya(this.Cc,c);c=b.fx;a=0;for(d=c.length;a<d;a++)if(b=this.Yl(c[a].name))b.nb=c[a].active,this.Ja[b.index]=c[a].params;this.td();this.c.sort(m);this.$f=!0};Vb=e})();
(function(){function g(b,a){var c,d=b.length;switch(d){case 0:return!0;case 1:return b[0]===a[0];case 2:return b[0]===a[0]&&b[1]===a[1];default:for(c=0;c<d;c++)if(b[c]!==a[c])return!1;return!0}}function m(b,a){return b.index-a.index}function e(b){var a,c,d,f;2===b.length?b[0].index>b[1].index&&(a=b[0],b[0]=b[1],b[1]=a):2<b.length&&b.sort(m);b.length>=z.length&&(z.length=b.length+1);z[b.length]||(z[b.length]=[]);f=z[b.length];a=0;for(c=f.length;a<c;a++)if(d=f[a],g(b,d))return d;f.push(b);return b}
function p(b,a){this.b=b;this.ir={};this.Lo={};this.km=!1;this.dp=new ba;this.Il=[];this.ol=[];this.name=a[0];var c=a[1];this.Ne=[];var d,f;d=0;for(f=c.length;d<f;d++)this.fp(c[d],null,this.Ne)}function r(b){this.type=b;this.c=[];this.ka=[];this.ca=!0}function u(b,a,c){this.sheet=b;this.parent=a;this.b=b.b;this.ra=[];this.df=[];this.cp=this.Sk=this.Jn=this.Nj=this.group=this.Wq=!1;this.pb=[];this.Ic=[];this.Zc=[];this.Bh="";this.Df=this.Nj=this.group=!1;this.jj=null;c[1]&&(this.Bh=c[1][1].toLowerCase(),
this.group=!0,this.Nj=!!c[1][0],this.jj=[],this.Df=this.Nj,this.b.Be.push(this),this.b.tg[this.Bh]=this);this.Uc=c[2];this.fa=c[4];this.group||(this.b.yo[this.fa.toString()]=this);var d=c[5];b=0;for(a=d.length;b<a;b++){var f=new Wb(this,d[b]);f.index=b;this.pb.push(f);this.to(f.type)}d=c[6];b=0;for(a=d.length;b<a;b++)f=new Xb(this,d[b]),f.index=b,this.Ic.push(f);if(8===c.length)for(c=c[7],b=0,a=c.length;b<a;b++)this.sheet.fp(c[b],this,this.Zc);this.Uj=!1;this.pb.length&&(this.Uj=null==this.pb[0].type&&
this.pb[0].Eb==U.prototype.j.Xn)}function n(b,a){var c,d,f;if(b&&(-1===a.indexOf(b)&&a.push(b),b.Zb))for(c=0,d=b.oc.length;c<d;c++)f=b.oc[c],b!==f&&-1===a.indexOf(f)&&a.push(f)}function a(b,a){this.yc=b;this.sheet=b.sheet;this.b=b.b;this.Y=[];this.Ka=[];this.K={};this.index=-1;this.hh=!1;this.Eb=this.b.ze(a[1]);this.trigger=0<a[3];this.Ko=2===a[3];this.Dd=a[4];this.wg=a[5];this.jw=a[6];this.fa=a[7];this.b.jg[this.fa.toString()]=this;-1===a[0]?(this.type=null,this.Wa=this.vn,this.mf=null,this.fd=-1):
(this.type=this.b.A[a[0]],this.Wa=this.jw?this.cx:this.un,a[2]?(this.mf=this.type.Gj(a[2]),this.fd=this.type.Vl(a[2])):(this.mf=null,this.fd=-1),this.yc.parent&&this.yc.parent.Ik());this.Ko&&(this.Wa=this.gx);if(10===a.length){var c,d,f=a[9];c=0;for(d=f.length;c<d;c++){var l=new Yb(this,f[c]);this.Y.push(l)}this.Ka.length=f.length}}function c(b,a){this.yc=b;this.sheet=b.sheet;this.b=b.b;this.Y=[];this.Ka=[];this.K={};this.index=-1;this.hh=!1;this.Eb=this.b.ze(a[1]);-1===a[0]?(this.type=null,this.Wa=
this.vn,this.mf=null,this.fd=-1):(this.type=this.b.A[a[0]],this.Wa=this.un,a[2]?(this.mf=this.type.Gj(a[2]),this.fd=this.type.Vl(a[2])):(this.mf=null,this.fd=-1));this.fa=a[3];this.b.fg[this.fa.toString()]=this;if(6===a.length){var c,d,f=a[5];c=0;for(d=f.length;c<d;c++){var l=new Yb(this,f[c]);this.Y.push(l)}this.Ka.length=f.length}}function d(){x++;O.length===x&&O.push(new Zb);return O[x]}function b(b,a){this.Vc=b;this.yc=b.yc;this.sheet=b.sheet;this.b=b.b;this.type=a[0];this.xd=null;this.re=0;this.get=
null;this.Eo=0;this.ib=null;this.key=0;this.object=null;this.index=0;this.Ji=this.Vf=this.Ji=this.Vf=this.Mo=this.yf=this.Ki=null;this.ad=!1;var c,d,f;switch(a[0]){case 0:case 7:this.xd=new $b(this,a[1]);this.re=0;this.get=this.Hv;break;case 1:this.xd=new $b(this,a[1]);this.re=0;this.get=this.Iv;break;case 5:this.xd=new $b(this,a[1]);this.re=0;this.get=this.Mv;break;case 3:case 8:this.Eo=a[1];this.get=this.Fv;break;case 6:this.ib=this.b.Em[a[1]];this.get=this.Nv;break;case 9:this.key=a[1];this.get=
this.Lv;break;case 4:this.object=this.b.A[a[1]];this.get=this.Ov;this.yc.to(this.object);this.Vc instanceof Xb?this.yc.Ik():this.yc.parent&&this.yc.parent.Ik();break;case 10:this.index=a[1];b.type.U?(this.get=this.Jv,this.ad=!0):this.get=this.Kv;break;case 11:this.Ki=a[1];this.yf=null;this.get=this.Gv;break;case 2:case 12:this.Mo=a[1];this.get=this.Ev;break;case 13:for(this.get=this.Pv,this.Vf=[],this.Ji=[],c=1,d=a.length;c<d;c++)f=new Yb(this.Vc,a[c]),this.Vf.push(f),this.Ji.push(0)}}function f(b,
a,c){this.sheet=b;this.parent=a;this.b=b.b;this.ra=[];this.name=c[1];this.Li=c[2];this.nm=c[3];this.Nh=!!c[4];this.Tj=!!c[5];this.fa=c[6];this.b.fh[this.fa.toString()]=this;this.data=this.nm;this.parent?(this.Tf=this.Nh||this.Tj?-1:this.b.tx++,this.b.Ht.push(this)):(this.Tf=-1,this.b.Gt.push(this))}function h(b,a,c){this.sheet=b;this.parent=a;this.b=b.b;this.ra=[];this.Eh=null;this.Vv=c[1];this.nb=!0}function l(){this.$q=[];this.reset(null)}var z=[];p.prototype.toString=function(){return this.name};
p.prototype.fp=function(b,a,c){switch(b[0]){case 0:b=new ac(this,a,b);if(b.Uc)for(c.push(b),c=0,a=b.pb.length;c<a;c++)b.pb[c].trigger&&this.gp(b,c);else b.sp()?this.gp(b,0):c.push(b);break;case 1:b=new Sb(this,a,b);c.push(b);break;case 2:b=new bc(this,a,b),c.push(b)}};p.prototype.Ra=function(){var b,a;b=0;for(a=this.Ne.length;b<a;b++)this.Ne[b].Ra(b<a-1&&this.Ne[b+1].Uj)};p.prototype.Pn=function(){F(this.Il);F(this.ol);this.so(this);F(this.ol)};p.prototype.so=function(b){var a,c,d,f,l=b.Il,e=b.ol,
h=this.dp.kf();a=0;for(c=h.length;a<c;++a)d=h[a],f=d.Eh,!d.nb||b===f||-1<e.indexOf(f)||(e.push(f),f.so(b),l.push(f))};p.prototype.Wa=function(b){this.b.Py||(this.km=!0,b||(this.b.vm=!0));var a,c;a=0;for(c=this.Ne.length;a<c;a++){var d=this.Ne[a];d.Wa();this.b.Al(d.ra);this.b.Pe&&this.b.Mb()}b||(this.b.vm=!1)};p.prototype.gp=function(b,a){b.Uc||this.b.Wk.push(b);var c,d,f=b.pb[a],l;f.type?l=f.type.name:l="system";var e=(c=f.Ko)?this.Lo:this.ir;e[l]||(e[l]=[]);l=e[l];e=f.Eb;if(c){if(f.Y.length&&(f=
f.Y[0],1===f.type&&2===f.xd.type)){f=f.xd.value.toLowerCase();c=0;for(d=l.length;c<d;c++)if(l[c].method==e){c=l[c].sh;c[f]?c[f].push([b,a]):c[f]=[[b,a]];return}c={};c[f]=[[b,a]];l.push({method:e,sh:c})}}else{c=0;for(d=l.length;c<d;c++)if(l[c].method==e){l[c].sh.push([b,a]);return}X&&e===X.prototype.j.eg?l.unshift({method:e,sh:[[b,a]]}):l.push({method:e,sh:[[b,a]]})}};Ib=p;r.prototype.jm=function(){return this.ca?this.type.c.length:this.c.length};r.prototype.qc=function(){return this.ca?this.type.c:
this.c};r.prototype.hi=function(b){b&&(b.b.eb().Cb.Uc?(this.ca&&(F(this.c),za(this.ka,b.type.c),this.ca=!1),b=this.ka.indexOf(b),-1!==b&&(this.c.push(this.ka[b]),this.ka.splice(b,1))):(this.ca=!1,F(this.c),this.c[0]=b))};qb=r;window._c2hh_="F8BD88175F0B2F14B2CB797396461D31839036A8";u.prototype.Ra=function(b){var a,c=this.parent;if(this.group)for(this.Sk=!0;c;){if(!c.group){this.Sk=!1;break}c=c.parent}this.Jn=!this.sp()&&(!this.parent||this.parent.group&&this.parent.Sk);this.cp=!!b;this.df=this.ra.slice(0);
for(c=this.parent;c;){b=0;for(a=c.ra.length;b<a;b++)this.Ft(c.ra[b]);c=c.parent}this.ra=e(this.ra);this.df=e(this.df);b=0;for(a=this.pb.length;b<a;b++)this.pb[b].Ra();b=0;for(a=this.Ic.length;b<a;b++)this.Ic[b].Ra();b=0;for(a=this.Zc.length;b<a;b++)this.Zc[b].Ra(b<a-1&&this.Zc[b+1].Uj)};u.prototype.qi=function(b){if(this.Df!==!!b){this.Df=!!b;var a;b=0;for(a=this.jj.length;b<a;++b)this.jj[b].nr();0<a&&this.b.wa.xf&&this.b.wa.xf.Pn()}};u.prototype.to=function(b){n(b,this.ra)};u.prototype.Ft=function(b){n(b,
this.df)};u.prototype.Ik=function(){this.Wq=!0;this.parent&&this.parent.Ik()};u.prototype.sp=function(){return this.pb.length?this.pb[0].trigger:!1};u.prototype.Wa=function(){var b,a,c=!1,d=this.b,f=this.b.eb();f.Cb=this;var l=this.pb;this.Uj||(f.Ll=!1);if(this.Uc){0===l.length&&(c=!0);f.ob=0;for(b=l.length;f.ob<b;f.ob++)a=l[f.ob],a.trigger||(a=a.Wa())&&(c=!0);(f.Lf=c)&&this.Fk()}else{f.ob=0;for(b=l.length;f.ob<b;f.ob++)if(a=l[f.ob].Wa(),!a){f.Lf=!1;this.Jn&&d.Pe&&d.Mb();return}f.Lf=!0;this.Fk()}this.Au(f)};
u.prototype.Au=function(b){b.Lf&&this.cp&&(b.Ll=!0);this.Jn&&this.b.Pe&&this.b.Mb()};u.prototype.ax=function(b){this.b.eb().Cb=this;this.pb[b].Wa()&&(this.Fk(),this.b.eb().Lf=!0)};u.prototype.Fk=function(){var b=this.b.eb(),a;b.Nb=0;for(a=this.Ic.length;b.Nb<a;b.Nb++)if(this.Ic[b.Nb].Wa())return;this.Eq()};u.prototype.Zw=function(){var b=this.b.eb(),a;for(a=this.Ic.length;b.Nb<a;b.Nb++)if(this.Ic[b.Nb].Wa())return;this.Eq()};u.prototype.Eq=function(){if(this.Zc.length){var b,a,c,d,f=this.Zc.length-
1;this.b.Ak(this);if(this.Wq)for(b=0,a=this.Zc.length;b<a;b++)c=this.Zc[b],(d=!this.Sk||!this.group&&b<f)&&this.b.ki(c.ra),c.Wa(),d?this.b.$e(c.ra):this.b.Al(c.ra);else for(b=0,a=this.Zc.length;b<a;b++)this.Zc[b].Wa();this.b.wk()}};u.prototype.bx=function(){var b=this.b.eb();b.Cb=this;var a=!1,c;b.ob=0;for(c=this.pb.length;b.ob<c;b.ob++)if(this.pb[b.ob].Wa())a=!0;else if(!this.Uc)return!1;return this.Uc?a:!0};u.prototype.Dq=function(){this.b.zf++;var b=this.b.eb().ob,a=this.b.Ak(this);if(!this.Uc)for(a.ob=
b+1,b=this.pb.length;a.ob<b;a.ob++)if(!this.pb[a.ob].Wa()){this.b.wk();return}this.Fk();this.b.wk()};u.prototype.dw=function(b){var a=b.index;if(0===a)return!0;for(--a;0<=a;--a)if(this.pb[a].type===b.type)return!1;return!0};ac=u;a.prototype.Ra=function(){var b,a,c;b=0;for(a=this.Y.length;b<a;b++)c=this.Y[b],c.Ra(),c.ad&&(this.hh=!0)};a.prototype.gx=function(){return!0};a.prototype.vn=function(){var b,a;b=0;for(a=this.Y.length;b<a;b++)this.Ka[b]=this.Y[b].get();return Ta(this.Eb.apply(this.b.Kd,this.Ka),
this.wg)};a.prototype.cx=function(){var b,a;b=0;for(a=this.Y.length;b<a;b++)this.Ka[b]=this.Y[b].get();b=this.Eb.apply(this.mf?this.mf:this.type,this.Ka);this.type.Jc();return b};a.prototype.un=function(){var b,a,c,d,f,l,e,h,g=this.type,n=g.X(),m=this.yc.Uc&&!this.trigger;a=0;var p=g.Zb,x=g.U,r=g.Yd,z=this.fd,u=-1<z,O=this.hh,A=this.Y,K=this.Ka,Q=this.wg,H=this.Eb,C;if(O)for(a=0,f=A.length;a<f;++a)l=A[a],l.ad||(K[a]=l.get(0));else for(a=0,f=A.length;a<f;++a)K[a]=A[a].get(0);if(n.ca){F(n.c);F(n.ka);
C=g.c;b=0;for(d=C.length;b<d;++b){h=C[b];if(O)for(a=0,f=A.length;a<f;++a)l=A[a],l.ad&&(K[a]=l.get(b));u?(a=0,x&&(a=h.type.ng[r]),a=H.apply(h.S[z+a],K)):a=H.apply(h,K);(e=Ta(a,Q))?n.c.push(h):m&&n.ka.push(h)}g.finish&&g.finish(!0);n.ca=!1;g.Jc();return n.jm()}c=0;C=(e=m&&!this.yc.dw(this))?n.ka:n.c;var N=!1;b=0;for(d=C.length;b<d;++b){h=C[b];if(O)for(a=0,f=A.length;a<f;++a)l=A[a],l.ad&&(K[a]=l.get(b));u?(a=0,x&&(a=h.type.ng[r]),a=H.apply(h.S[z+a],K)):a=H.apply(h,K);if(Ta(a,Q))if(N=!0,e){if(n.c.push(h),
p)for(a=0,f=h.siblings.length;a<f;a++)l=h.siblings[a],l.type.X().c.push(l)}else{C[c]=h;if(p)for(a=0,f=h.siblings.length;a<f;a++)l=h.siblings[a],l.type.X().c[c]=l;c++}else if(e){C[c]=h;if(p)for(a=0,f=h.siblings.length;a<f;a++)l=h.siblings[a],l.type.X().ka[c]=l;c++}else if(m&&(n.ka.push(h),p))for(a=0,f=h.siblings.length;a<f;a++)l=h.siblings[a],l.type.X().ka.push(l)}ya(C,c);if(p)for(x=g.oc,b=0,d=x.length;b<d;b++)h=x[b].X(),e?ya(h.ka,c):ya(h.c,c);c=N;if(e&&!N)for(b=0,d=n.c.length;b<d;b++){h=n.c[b];if(O)for(a=
0,f=A.length;a<f;a++)l=A[a],l.ad&&(K[a]=l.get(b));a=u?H.apply(h.S[z],K):H.apply(h,K);if(Ta(a,Q)){N=!0;break}}g.finish&&g.finish(c||m);return m?N:n.jm()};Wb=a;c.prototype.Ra=function(){var b,a,c;b=0;for(a=this.Y.length;b<a;b++)c=this.Y[b],c.Ra(),c.ad&&(this.hh=!0)};c.prototype.vn=function(){var b=this.b,a,c,d=this.Y,f=this.Ka;a=0;for(c=d.length;a<c;++a)f[a]=d[a].get();return this.Eb.apply(b.Kd,f)};c.prototype.un=function(){var b=this.type,a=this.fd,c=b.Yd,d=this.hh,f=this.Y,l=this.Ka,e=this.Eb,h=b.X().qc(),
b=b.U,g=-1<a,n,m,p,x,r,z;if(d)for(m=0,x=f.length;m<x;++m)r=f[m],r.ad||(l[m]=r.get(0));else for(m=0,x=f.length;m<x;++m)l[m]=f[m].get(0);n=0;for(p=h.length;n<p;++n){z=h[n];if(d)for(m=0,x=f.length;m<x;++m)r=f[m],r.ad&&(l[m]=r.get(n));g?(m=0,b&&(m=z.type.ng[c]),e.apply(z.S[a+m],l)):e.apply(z,l)}return!1};Xb=c;var O=[],x=-1;b.prototype.Ra=function(){var b,a;if(11===this.type)this.yf=this.b.Vo(this.Ki,this.yc.parent);else if(13===this.type)for(b=0,a=this.Vf.length;b<a;b++)this.Vf[b].Ra();this.xd&&this.xd.Ra()};
b.prototype.vw=function(b){this.ad||!b||b.ua.Kk||(this.ad=!0)};b.prototype.Nq=function(){this.ad=!0};b.prototype.Hv=function(b){this.re=b||0;b=d();this.xd.get(b);x--;return b.data};b.prototype.Iv=function(b){this.re=b||0;b=d();this.xd.get(b);x--;return ga(b.data)?b.data:""};b.prototype.Ov=function(){return this.object};b.prototype.Fv=function(){return this.Eo};b.prototype.Mv=function(b){this.re=b||0;b=d();this.xd.get(b);x--;return b.qb()?this.b.zd(b.data):this.b.rg(b.data)};b.prototype.Nv=function(){return this.ib};
b.prototype.Lv=function(){return this.key};b.prototype.Kv=function(){return this.index};b.prototype.Jv=function(b){b=b||0;var a=this.Vc.type,c=null,c=a.X(),d=c.qc();if(d.length)c=d[b%d.length].type;else if(c.ka.length)c=c.ka[b%c.ka.length].type;else if(a.c.length)c=a.c[b%a.c.length].type;else return 0;return this.index+c.yj[a.Yd]};b.prototype.Gv=function(){return this.yf};b.prototype.Ev=function(){return this.Mo};b.prototype.Pv=function(){var b,a;b=0;for(a=this.Vf.length;b<a;b++)this.Ji[b]=this.Vf[b].get();
return this.Ji};Yb=b;f.prototype.Ra=function(){this.ra=e(this.ra)};f.prototype.pe=function(b){var a=this.b.Uo();this.parent&&!this.Nh&&a?(this.Tf>=a.length&&(a.length=this.Tf+1),a[this.Tf]=b):this.data=b};f.prototype.Cf=function(){var b=this.b.Uo();return!this.parent||this.Nh||!b||this.Tj?this.data:this.Tf>=b.length||"undefined"===typeof b[this.Tf]?this.nm:b[this.Tf]};f.prototype.Wa=function(){!this.parent||this.Nh||this.Tj||this.pe(this.nm)};Sb=f;h.prototype.toString=function(){return"include:"+
this.Eh.toString()};h.prototype.Ra=function(){this.Eh=this.b.Nl[this.Vv];this.sheet.dp.add(this);this.ra=e(this.ra);for(var b=this.parent;b;)b.group&&b.jj.push(this),b=b.parent;this.nr()};h.prototype.Wa=function(){this.parent&&this.b.ji(this.b.A);this.Eh.km||this.Eh.Wa(!0);this.parent&&this.b.$e(this.b.A)};h.prototype.nr=function(){for(var b=this.parent;b;){if(b.group&&!b.Df){this.nb=!1;return}b=b.parent}this.nb=!0};bc=h;l.prototype.reset=function(b){this.Cb=b;this.Nb=this.ob=0;F(this.$q);this.Ll=
this.Lf=!1};Rb=l})();
(function(){function g(e,a){this.Vc=e;this.b=e.b;this.type=a[0];this.get=[this.Ru,this.Nu,this.$u,this.cv,this.Cu,this.av,this.Vu,this.Ku,this.Uu,this.Zu,this.Du,this.Yu,this.Lu,this.Wu,this.Su,this.Tu,this.Ou,this.Pu,this.Ju,this.bv,this.Xu,this.Qu,this.Iu,this.Mu][this.type];var c=null;this.je=this.Y=this.Ka=this.Eb=this.Qk=this.second=this.first=this.value=null;this.fd=-1;this.jd=null;this.tr=-1;this.yf=this.Ki=null;this.Sg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new $b(e,a[1]);break;case 18:this.first=new $b(e,a[1]);this.second=new $b(e,a[2]);this.Qk=new $b(e,a[3]);break;case 19:this.Eb=this.b.ze(a[1]);this.Eb!==U.prototype.M.random&&this.Eb!==U.prototype.M.Rt||this.Vc.Nq();this.Ka=[];this.Y=[];3===a.length?(c=a[2],this.Ka.length=c.length+1):this.Ka.length=1;break;case 20:this.je=this.b.A[a[1]];this.fd=-1;this.Eb=this.b.ze(a[2]);this.Sg=a[3];ec.Function&&this.Eb===ec.Function.prototype.M.Qx&&this.Vc.Nq();a[4]?this.jd=new $b(e,a[4]):this.jd=null;this.Ka=[];
this.Y=[];6===a.length?(c=a[5],this.Ka.length=c.length+1):this.Ka.length=1;break;case 21:this.je=this.b.A[a[1]];this.Sg=a[2];a[3]?this.jd=new $b(e,a[3]):this.jd=null;this.tr=a[4];break;case 22:this.je=this.b.A[a[1]];this.je.Gj(a[2]);this.fd=this.je.Vl(a[2]);this.Eb=this.b.ze(a[3]);this.Sg=a[4];a[5]?this.jd=new $b(e,a[5]):this.jd=null;this.Ka=[];this.Y=[];7===a.length?(c=a[6],this.Ka.length=c.length+1):this.Ka.length=1;break;case 23:this.Ki=a[1],this.yf=null}this.Vc.vw(this.je);4<=this.type&&17>=this.type&&
(this.first=new $b(e,a[1]),this.second=new $b(e,a[2]));if(c){var d,b;d=0;for(b=c.length;d<b;d++)this.Y.push(new $b(e,c[d]))}}function m(){++u;r.length===u&&r.push(new Zb);return r[u]}function e(e,a,c){var d,b;d=0;for(b=e.length;d<b;++d)e[d].get(c),a[d+1]=c.data}function p(e,a){this.type=e||cc.bg;this.data=a||0;this.Uf=null;this.type==cc.bg&&(this.data=Math.floor(this.data))}g.prototype.Ra=function(){23===this.type&&(this.yf=this.Vc.b.Vo(this.Ki,this.Vc.yc.parent));this.first&&this.first.Ra();this.second&&
this.second.Ra();this.Qk&&this.Qk.Ra();this.jd&&this.jd.Ra();if(this.Y){var e,a;e=0;for(a=this.Y.length;e<a;e++)this.Y[e].Ra()}};var r=[],u=-1;g.prototype.bv=function(g){var a=this.Y,c=this.Ka;c[0]=g;g=m();e(a,c,g);--u;this.Eb.apply(this.b.Kd,c)};g.prototype.Xu=function(g){var a=this.je,c=this.Ka,d=this.Y,b=this.jd,f=this.Eb,h=this.Vc.re,l=a.X(),p=l.qc();if(!p.length)if(l.ka.length)p=l.ka;else{this.Sg?g.wb(""):g.za(0);return}c[0]=g;g.Uf=a;g=m();e(d,c,g);b&&(b.get(g),g.qb()&&(h=g.data,p=a.c));--u;
a=p.length;if(h>=a||h<=-a)h%=a;0>h&&(h+=a);f.apply(p[h],c)};g.prototype.Iu=function(g){var a=this.je,c=this.Ka,d=this.Y,b=this.jd,f=this.fd,h=this.Eb,l=this.Vc.re,p=a.X(),r=p.qc();if(!r.length)if(p.ka.length)r=p.ka;else{this.Sg?g.wb(""):g.za(0);return}c[0]=g;g.Uf=a;g=m();e(d,c,g);b&&(b.get(g),g.qb()&&(l=g.data,r=a.c));--u;d=r.length;if(l>=d||l<=-d)l%=d;0>l&&(l+=d);l=r[l];r=0;a.U&&(r=l.type.ng[a.Yd]);h.apply(l.S[f+r],c)};g.prototype.Qu=function(e){var a=this.jd,c=this.je,d=this.tr,b=this.Vc.re,f=c.X(),
h=f.qc();if(!h.length)if(f.ka.length)h=f.ka;else{this.Sg?e.wb(""):e.za(0);return}if(a){f=m();a.get(f);if(f.qb()){b=f.data;h=c.c;0!==h.length&&(b%=h.length,0>b&&(b+=h.length));b=c.$l(b);c=b.gb[d];ga(c)?e.wb(c):e.B(c);--u;return}--u}a=h.length;if(b>=a||b<=-a)b%=a;0>b&&(b+=a);b=h[b];h=0;c.U&&(h=b.type.yj[c.Yd]);c=b.gb[d+h];ga(c)?e.wb(c):e.B(c)};g.prototype.Ru=function(e){e.type=cc.bg;e.data=this.value};g.prototype.Nu=function(e){e.type=cc.ag;e.data=this.value};g.prototype.$u=function(e){e.type=cc.String;
e.data=this.value};g.prototype.cv=function(e){this.first.get(e);e.qb()&&(e.data=-e.data)};g.prototype.Cu=function(e){this.first.get(e);var a=m();this.second.get(a);e.qb()&&a.qb()&&(e.data+=a.data,a.Bg()&&e.Jg());--u};g.prototype.av=function(e){this.first.get(e);var a=m();this.second.get(a);e.qb()&&a.qb()&&(e.data-=a.data,a.Bg()&&e.Jg());--u};g.prototype.Vu=function(e){this.first.get(e);var a=m();this.second.get(a);e.qb()&&a.qb()&&(e.data*=a.data,a.Bg()&&e.Jg());--u};g.prototype.Ku=function(e){this.first.get(e);
var a=m();this.second.get(a);e.qb()&&a.qb()&&(e.data/=a.data,e.Jg());--u};g.prototype.Uu=function(e){this.first.get(e);var a=m();this.second.get(a);e.qb()&&a.qb()&&(e.data%=a.data,a.Bg()&&e.Jg());--u};g.prototype.Zu=function(e){this.first.get(e);var a=m();this.second.get(a);e.qb()&&a.qb()&&(e.data=Math.pow(e.data,a.data),a.Bg()&&e.Jg());--u};g.prototype.Du=function(e){this.first.get(e);var a=m();this.second.get(a);a.Eg()||e.Eg()?this.Fu(e,a):this.Eu(e,a);--u};g.prototype.Fu=function(e,a){e.Eg()&&
a.Eg()?this.Hu(e,a):this.Gu(e,a)};g.prototype.Hu=function(e,a){e.data+=a.data};g.prototype.Gu=function(e,a){e.Eg()?e.data+=(Math.round(1E10*a.data)/1E10).toString():e.wb(e.data.toString()+a.data)};g.prototype.Eu=function(e,a){e.za(e.data&&a.data?1:0)};g.prototype.Yu=function(e){this.first.get(e);var a=m();this.second.get(a);e.qb()&&a.qb()&&(e.data||a.data?e.za(1):e.za(0));--u};g.prototype.Ju=function(e){this.first.get(e);e.data?this.second.get(e):this.Qk.get(e)};g.prototype.Lu=function(e){this.first.get(e);
var a=m();this.second.get(a);e.za(e.data===a.data?1:0);--u};g.prototype.Wu=function(e){this.first.get(e);var a=m();this.second.get(a);e.za(e.data!==a.data?1:0);--u};g.prototype.Su=function(e){this.first.get(e);var a=m();this.second.get(a);e.za(e.data<a.data?1:0);--u};g.prototype.Tu=function(e){this.first.get(e);var a=m();this.second.get(a);e.za(e.data<=a.data?1:0);--u};g.prototype.Ou=function(e){this.first.get(e);var a=m();this.second.get(a);e.za(e.data>a.data?1:0);--u};g.prototype.Pu=function(e){this.first.get(e);
var a=m();this.second.get(a);e.za(e.data>=a.data?1:0);--u};g.prototype.Mu=function(e){var a=this.yf.Cf();fa(a)?e.B(a):e.wb(a)};$b=g;p.prototype.Bg=function(){return this.type===cc.ag};p.prototype.qb=function(){return this.type===cc.bg||this.type===cc.ag};p.prototype.Eg=function(){return this.type===cc.String};p.prototype.Jg=function(){this.Bg()||(this.Eg()&&(this.data=parseFloat(this.data)),this.type=cc.ag)};p.prototype.za=function(e){this.type=cc.bg;this.data=Math.floor(e)};p.prototype.B=function(e){this.type=
cc.ag;this.data=e};p.prototype.wb=function(e){this.type=cc.String;this.data=e};p.prototype.Oq=function(e){fa(e)?(this.type=cc.ag,this.data=e):ga(e)?(this.type=cc.String,this.data=e.toString()):(this.type=cc.bg,this.data=0)};Zb=p;cc={bg:0,ag:1,String:2}})();function U(g){this.b=g;this.Lb=[]}
U.prototype.mb=function(){var g={},m,e,p,r,u,n,a,c;g.waits=[];var d=g.waits,b;m=0;for(e=this.Lb.length;m<e;m++){n=this.Lb[m];b={t:n.time,st:n.Jk,s:n.xi,ev:n.wf.fa,sm:[],sols:{}};n.wf.Ic[n.Nb]&&(b.act=n.wf.Ic[n.Nb].fa);p=0;for(r=n.ra.length;p<r;p++)b.sm.push(n.ra[p].fa);for(u in n.Tb)if(n.Tb.hasOwnProperty(u)){a=this.b.A[parseInt(u,10)];c={sa:n.Tb[u].pi,insts:[]};p=0;for(r=n.Tb[u].Cd.length;p<r;p++)c.insts.push(n.Tb[u].Cd[p].uid);b.sols[a.fa.toString()]=c}d.push(b)}return g};
U.prototype.Gb=function(g){g=g.waits;var m,e,p,r,u,n,a,c,d,b,f;F(this.Lb);m=0;for(e=g.length;m<e;m++)if(n=g[m],c=this.b.yo[n.ev.toString()]){d=-1;p=0;for(r=c.Ic.length;p<r;p++)if(c.Ic[p].fa===n.act){d=p;break}if(-1!==d){a={Tb:{},ra:[],Jl:!1};a.time=n.t;a.Jk=n.st||"";a.xi=!!n.s;a.wf=c;a.Nb=d;p=0;for(r=n.sm.length;p<r;p++)(c=this.b.Jj(n.sm[p]))&&a.ra.push(c);for(u in n.sols)if(n.sols.hasOwnProperty(u)&&(c=this.b.Jj(parseInt(u,10)))){d=n.sols[u];b={pi:d.sa,Cd:[]};p=0;for(r=d.insts.length;p<r;p++)(f=
this.b.yh(d.insts[p]))&&b.Cd.push(f);a.Tb[c.index.toString()]=b}this.Lb.push(a)}}};
(function(){function g(){}function m(){}function e(){var a;n.length?a=n.pop():a={Tb:{},ra:[]};a.Jl=!1;return a}function p(){var c;a.length?c=a.pop():c={Cd:[]};c.pi=!1;return c}function r(){}var u=U.prototype;g.prototype.Rr=function(){return!0};g.prototype.co=function(){return!0};g.prototype.Bs=function(){return!0};g.prototype.Hr=function(a,d,b){return dc(a,d,b)};g.prototype.gs=function(a,d,b){return a?dc(100*a.opacity,d,b):!1};g.prototype.tt=function(){var a=this.b.qg().K;"undefined"===typeof a.TriggerOnce_lastTick&&
(a.TriggerOnce_lastTick=-1);var d=a.TriggerOnce_lastTick,b=this.b.Yf;a.TriggerOnce_lastTick=b;return this.b.Dm||d!==b-1};g.prototype.Qr=function(a){var d=this.b.qg(),b=d.K.Every_lastTime||0,f=this.b.rb.P;"undefined"===typeof d.K.Every_seconds&&(d.K.Every_seconds=a);var e=d.K.Every_seconds;if(f>=b+e)return d.K.Every_lastTime=b+e,f>=d.K.Every_lastTime+.04&&(d.K.Every_lastTime=f),d.K.Every_seconds=a,!0;f<b-.1&&(d.K.Every_lastTime=f);return!1};g.prototype.Lr=function(a,d,b){return dc(a.Cf(),d,b)};g.prototype.$r=
function(a){return(a=this.b.tg[a.toLowerCase()])&&a.Df};g.prototype.Xn=function(){var a=this.b.eb();return a.Ll?!1:!a.Lf};g.prototype.gl=function(){return!0};g.prototype.qs=function(){return!0};g.prototype.il=function(){return!0};g.prototype.Cs=function(){return!0};g.prototype.fl=function(){return!0};g.prototype.Br=function(a,d,b){return Oa(T(a),T(b))<=T(d)};g.prototype.Zr=function(a,d){return Qa(T(a),T(d))};g.prototype.Xr=function(a,d,b){a=Ka(a);d=Ka(d);b=Ka(b);return Qa(b,d)?Qa(a,d)&&!Qa(a,b):!(!Qa(a,
d)&&Qa(a,b))};u.j=new g;m.prototype.Tr=function(a){this.b.Fg||this.b.pf||(this.b.pf=a)};m.prototype.Or=function(a,d,b,f){if(d&&a&&(d=this.b.Dl(a,d,b,f))){this.b.Dc++;var e;this.b.trigger(Object.getPrototypeOf(a.ua).j.dg,d);if(d.Zb)for(b=0,f=d.siblings.length;b<f;b++)e=d.siblings[b],this.b.trigger(Object.getPrototypeOf(e.type.ua).j.dg,e);this.b.Dc--;a=a.X();a.ca=!1;F(a.c);a.c[0]=d;if(d.Zb)for(b=0,f=d.siblings.length;b<f;b++)e=d.siblings[b],a=e.type.X(),a.ca=!1,F(a.c),a.c[0]=e}};m.prototype.Zs=function(a,
d){a&&(d=Fa(d/100,0,1),a.opacity!==d&&(a.opacity=d,this.b.Z=!0))};m.prototype.et=function(a,d){0===a.Li?fa(d)?a.pe(d):a.pe(parseFloat(d)):1===a.Li&&a.pe(d.toString())};m.prototype.yr=function(a,d){0===a.Li?fa(d)?a.pe(a.Cf()+d):a.pe(a.Cf()+parseFloat(d)):1===a.Li&&a.pe(a.Cf()+d.toString())};m.prototype.pt=function(a,d){0===a.Li&&(fa(d)?a.pe(a.Cf()-d):a.pe(a.Cf()-parseFloat(d)))};m.prototype.Xs=function(a,d){var b=this.b.tg[a.toLowerCase()];if(b)switch(d){case 0:b.qi(!1);break;case 1:b.qi(!0);break;
case 2:b.qi(!b.Df)}};m.prototype.dt=function(a){0>a&&(a=0);this.b.Zf=a};var n=[],a=[];m.prototype.ut=function(a){if(!(0>a)){var d,b,f,h=this.b.eb(),l=e();l.time=this.b.rb.P+a;l.Jk="";l.xi=!1;l.wf=h.Cb;l.Nb=h.Nb+1;a=0;for(d=this.b.A.length;a<d;a++)f=this.b.A[a],b=f.X(),b.ca&&-1===h.Cb.ra.indexOf(f)||(l.ra.push(f),f=p(),f.pi=b.ca,za(f.Cd,b.c),l.Tb[a.toString()]=f);this.Lb.push(l);return!0}};m.prototype.xt=function(a){var d,b,f,h=this.b.eb(),l=e();l.time=-1;l.Jk=a.toLowerCase();l.xi=!1;l.wf=h.Cb;l.Nb=
h.Nb+1;a=0;for(d=this.b.A.length;a<d;a++)f=this.b.A[a],b=f.X(),b.ca&&-1===h.Cb.ra.indexOf(f)||(l.ra.push(f),f=p(),f.pi=b.ca,za(f.Cd,b.c),l.Tb[a.toString()]=f);this.Lb.push(l);return!0};m.prototype.jt=function(a){a=a.toLowerCase();var d,b,f;d=0;for(b=this.Lb.length;d<b;++d)f=this.Lb[d],-1===f.time&&f.Jk===a&&(f.xi=!0)};m.prototype.$s=function(a,d){a&&a.scale!==d&&(a.scale=d,this.b.Z=!0)};m.prototype.Rs=function(){if(!this.b.Fg&&!this.b.pf&&this.b.wa){this.b.pf=this.b.wa;var a,d,b;a=0;for(d=this.b.Be.length;a<
d;a++)b=this.b.Be[a],b.qi(b.Nj)}};u.u=new m;r.prototype["int"]=function(a,d){ga(d)?(a.za(parseInt(d,10)),isNaN(a.data)&&(a.data=0)):a.za(d)};r.prototype["float"]=function(a,d){ga(d)?(a.B(parseFloat(d)),isNaN(a.data)&&(a.data=0)):a.B(d)};r.prototype.random=function(a,d,b){void 0===b?a.B(Math.random()*d):a.B(Math.random()*(b-d)+d)};r.prototype.sqrt=function(a,d){a.B(Math.sqrt(d))};r.prototype.abs=function(a,d){a.B(Math.abs(d))};r.prototype.round=function(a,d){a.za(Math.round(d))};r.prototype.floor=
function(a,d){a.za(Math.floor(d))};r.prototype.ceil=function(a,d){a.za(Math.ceil(d))};r.prototype.sin=function(a,d){a.B(Math.sin(T(d)))};r.prototype.cos=function(a,d){a.B(Math.cos(T(d)))};r.prototype.tan=function(a,d){a.B(Math.tan(T(d)))};r.prototype.asin=function(a,d){a.B(Ga(Math.asin(d)))};r.prototype.acos=function(a,d){a.B(Ga(Math.acos(d)))};r.prototype.atan=function(a,d){a.B(Ga(Math.atan(d)))};r.prototype.exp=function(a,d){a.B(Math.exp(d))};r.prototype.log10=function(a,d){a.B(Math.log(d)/Math.LN10)};
r.prototype.max=function(a){var d=arguments[1];"number"!==typeof d&&(d=0);var b,f,e;b=2;for(f=arguments.length;b<f;b++)e=arguments[b],"number"===typeof e&&d<e&&(d=e);a.B(d)};r.prototype.min=function(a){var d=arguments[1];"number"!==typeof d&&(d=0);var b,f,e;b=2;for(f=arguments.length;b<f;b++)e=arguments[b],"number"===typeof e&&d>e&&(d=e);a.B(d)};r.prototype.tf=function(a){a.B(this.b.tf)};r.prototype.Zf=function(a){a.B(this.b.Zf)};r.prototype.time=function(a){a.B(this.b.rb.P)};r.prototype.Yf=function(a){a.za(this.b.Yf)};
r.prototype.kk=function(a){a.za(this.b.kk)};r.prototype.Rl=function(a){a.za(this.b.Rl)};r.prototype.bu=function(a,d,b,f,e){a.B(Sa(d,b,f,e))};r.prototype.k=function(a,d,b,f,e){a.B(Ga(Na(d,b,f,e)))};r.prototype.ow=function(a,d,b,f){a.B(Ua(d,b,f))};r.prototype.St=function(a,d,b,f){d<b?a.B(b):d>f?a.B(f):a.B(d)};r.prototype.nw=function(a,d){var b=this.b.Hj(d);b?a.B(b.scale):a.B(0)};r.prototype.mw=function(a,d){var b=this.b.Hj(d);b?a.B(100*b.opacity):a.B(0)};r.prototype.left=function(a,d,b){a.wb(ga(d)?
d.substr(0,b):"")};r.prototype.right=function(a,d,b){a.wb(ga(d)?d.substr(d.length-b):"")};r.prototype.replace=function(a,d,b,f){ga(d)&&ga(b)&&ga(f)?a.wb(d.replace(new RegExp(fb(b),"gi"),f)):a.wb(ga(d)?d:"")};r.prototype.trim=function(a,d){a.wb(ga(d)?d.trim():"")};r.prototype.Rt=function(a){var d=pa(Math.random()*(arguments.length-1));a.Oq(arguments[d+1])};r.prototype.Cl=function(a){a.B(this.b.Cl/1E3)};r.prototype.Gx=function(a,d){var b=this.b.Hj(d);a.B(b?b.Ea:0)};r.prototype.Fx=function(a,d){var b=
this.b.Hj(d);a.B(b?b.Da:0)};r.prototype.Qf=function(a){a.B(this.b.Qf)};u.M=new r;u.$w=function(){var c,d,b,f,e,l,g=this.b.eb();c=0;for(b=this.Lb.length;c<b;c++){f=this.Lb[c];if(-1===f.time){if(!f.xi)continue}else if(f.time>this.b.rb.P)continue;g.Cb=f.wf;g.Nb=f.Nb;g.ob=0;for(d in f.Tb)f.Tb.hasOwnProperty(d)&&(e=this.b.A[parseInt(d,10)].X(),l=f.Tb[d],e.ca=l.pi,za(e.c,l.Cd),e=l,F(e.Cd),a.push(e));f.wf.Zw();this.b.Al(f.ra);f.Jl=!0}d=c=0;for(b=this.Lb.length;c<b;c++)f=this.Lb[c],this.Lb[d]=f,f.Jl?(Wa(f.Tb),
F(f.ra),n.push(f)):d++;ya(this.Lb,d)}})();
(function(){pb=function(g,e){var p=g[1],r=g[3],u=g[4],n=g[5],a=g[6],c=g[7],d=g[8];e.j||(e.j={});e.u||(e.u={});e.M||(e.M={});var b=e.j,f=e.u,h=e.M;r&&(b.Mr=function(a,b){return dc(this.x,a,b)},b.Ux=function(a,b){return dc(this.y,a,b)},b.Yx=function(){var a=this.q;this.ya();var b=this.Ga;return!(b.right<a.Aa||b.bottom<a.Ba||b.left>a.Ea||b.top>a.Da)},b.Zx=function(){this.ya();var a=this.Ga,b=this.b.wa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},b.ky=function(a,b,c){var d=this.X(),f=
d.qc();if(!f.length)return!1;var e=f[0],h=e,g=Sa(e.x,e.y,b,c),m,n,p;m=1;for(n=f.length;m<n;m++)if(e=f[m],p=Sa(e.x,e.y,b,c),0===a&&p<g||1===a&&p>g)g=p,h=e;d.hi(h);return!0},f.oo=function(a){this.x!==a&&(this.x=a,this.O())},f.it=function(a){this.y!==a&&(this.y=a,this.O())},f.lo=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.O()},f.bt=function(a,b){var c=a.xv(this);if(c){var d;c.xh?(d=c.xh(b,!0),c=c.xh(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.O()}},f.ey=function(a){0!==
a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.O())},f.cy=function(a,b){0!==b&&(this.x+=Math.cos(T(a))*b,this.y+=Math.sin(T(a))*b,this.O())},h.Qi=function(a){a.B(this.x)},h.Ri=function(a){a.B(this.y)},h.tf=function(a){a.B(this.b.Af(this))});u&&(b.Tx=function(a,b){return dc(this.width,a,b)},b.Rx=function(a,b){return dc(this.height,a,b)},f.gt=function(a){this.width!==a&&(this.width=a,this.O())},f.yy=function(a){this.height!==a&&(this.height=a,this.O())},f.kl=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.O()},h.yt=function(a){a.B(this.width)},h.Vr=function(a){a.B(this.height)},h.Nx=function(a){this.ya();a.B(this.Ga.left)},h.Px=function(a){this.ya();a.B(this.Ga.top)},h.Ox=function(a){this.ya();a.B(this.Ga.right)},h.Mx=function(a){this.ya();a.B(this.Ga.bottom)});n&&(b.Br=function(a,b){return Oa(this.k,T(b))<=T(a)},b.Zr=function(a){return Qa(this.k,T(a))},b.Xr=function(a,b){var c=Ka(a),d=Ka(b),f=Ia(this.k);return Qa(d,c)?Qa(f,c)&&!Qa(f,d):!(!Qa(f,c)&&
Qa(f,d))},f.Ts=function(a){a=T(Ha(a));isNaN(a)||this.k===a||(this.k=a,this.O())},f.qy=function(a){0===a||isNaN(a)||(this.k+=T(a),this.k=Ia(this.k),this.O())},f.ry=function(a){0===a||isNaN(a)||(this.k-=T(a),this.k=Ia(this.k),this.O())},f.ty=function(a,b){var c=Pa(this.k,T(b),T(a));isNaN(c)||this.k===c||(this.k=c,this.O())},f.uy=function(a,b,c){a=Pa(this.k,Math.atan2(c-this.y,b-this.x),T(a));isNaN(a)||this.k===a||(this.k=a,this.O())},f.Ay=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||
this.k===c||(this.k=c,this.O())},h.Ar=function(a){a.B(Ja(this.k))});p||(b.Kr=function(a,b,c){return dc(this.gb[a],b,c)},b.Wx=function(a){return this.gb[a]},b.my=function(a,b){var c=this.X(),d=c.qc();if(!d.length)return!1;var f=d[0],e=f,h=f.gb[b],g,m,n;g=1;for(m=d.length;g<m;g++)if(f=d[g],n=f.gb[b],0===a&&n<h||1===a&&n>h)h=n,e=f;c.hi(e);return!0},b.jy=function(a){var b,c,d,f,e;if(this.b.qg().wg){e=this.X();if(e.ca)for(e.ca=!1,F(e.c),F(e.ka),d=this.c,b=0,c=d.length;b<c;b++)f=d[b],f.uid===a?e.ka.push(f):
e.c.push(f);else{d=b=0;for(c=e.c.length;b<c;b++)f=e.c[b],e.c[d]=f,f.uid===a?e.ka.push(f):d++;ya(e.c,d)}this.Jc();return!!e.c.length}f=this.b.yh(a);if(!f)return!1;e=this.X();if(!e.ca&&-1===e.c.indexOf(f))return!1;if(this.U)for(a=f.type.Ha,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.hi(f),this.Jc(),!0}else if(f.type===this)return e.hi(f),this.Jc(),!0;return!1},b.dg=function(){return!0},b.$n=function(){return!0},f.Ys=function(a,b){var c=this.gb;fa(c[a])?c[a]=fa(b)?b:parseFloat(b):ga(c[a])&&(c[a]=
ga(b)?b:b.toString())},f.Kx=function(a,b){var c=this.gb;fa(c[a])?c[a]=fa(b)?c[a]+b:c[a]+parseFloat(b):ga(c[a])&&(c[a]=ga(b)?c[a]+b:c[a]+b.toString())},f.Cy=function(a,b){var c=this.gb;fa(c[a])&&(c[a]=fa(b)?c[a]-b:c[a]-parseFloat(b))},f.vy=function(a,b){this.gb[a]=b?1:0},f.Dy=function(a){this.gb[a]=1-this.gb[a]},f.Pr=function(){this.b.ye(this)},f.hs||(f.hs=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.ak(this,b,!0);this.Nd&&this.Nd();if(this.S)for(a=0,b=this.S.length;a<b;++a)c=this.S[a],
c.Nd&&c.Nd()}),h.Nr=function(a){var b=a.Uf.c.length,c,d,f;c=0;for(d=this.b.gd.length;c<d;c++)f=this.b.gd[c],a.Uf.U?0<=f.type.Ha.indexOf(a.Uf)&&b++:f.type===a.Uf&&b++;a.za(b)},h.oy=function(a){a.za(a.Uf.X().qc().length)},h.Ey=function(a){a.za(this.uid)},h.Vx=function(a){a.za(this.Ah())},h.dl||(h.dl=function(a){a.wb(JSON.stringify(this.b.wn(this,!0)))}));a&&(b.$x=function(){return this.visible},f.By=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.Z=!0)},b.Sx=function(a,b){return dc(lb(100*
this.opacity),a,b)},f.zy=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.Z=!0)},h.Opacity=function(a){a.B(lb(100*this.opacity))});c&&(b.Xx=function(a){return a?this.q===a:!1},b.ny=function(a){var b=this.X(),c=b.qc();if(!c.length)return!1;var d=c[0],f=d,e,h;e=1;for(h=c.length;e<h;e++)if(d=c[e],0===a){if(d.q.index>f.q.index||d.q.index===f.q.index&&d.Ad()>f.Ad())f=d}else if(d.q.index<f.q.index||d.q.index===f.q.index&&d.Ad()<f.Ad())f=d;b.hi(f);return!0},f.gy=function(){var a=
this.q,b=a.c;b.length&&b[b.length-1]===this||(a.Rg(this,!1),a.jh(this,!1),this.b.Z=!0)},f.ls=function(){var a=this.q,b=a.c;b.length&&b[0]===this||(a.Rg(this,!1),a.Mw(this),this.b.Z=!0)},f.fy=function(a){a&&a!=this.q&&(this.q.Rg(this,!0),this.q=a,a.jh(this,!0),this.b.Z=!0)},f.Gy=function(a,b){var c=0===a;if(b){var d=b.Wo(this);d&&d.uid!==this.uid&&(this.q.index!==d.q.index&&(this.q.Rg(this,!0),this.q=d.q,d.q.jh(this,!0)),this.q.ww(this,d,c),this.b.Z=!0)}},h.by=function(a){a.za(this.q.aq)},h.ay=function(a){a.wb(this.q.name)},
h.Fy=function(a){a.za(this.Ad())});d&&(f.wy=function(a,b){if(this.b.F){var c=this.type.Zl(b);if(!(0>c)){var d=1===a;this.Ae[c]!==d&&(this.Ae[c]=d,this.td(),this.b.Z=!0)}}},f.xy=function(a,b,c){if(this.b.F){var d=this.type.Zl(a);0>d||(a=this.type.T[d],d=this.Ja[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.F.Bv(a.Xa,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.nb&&(this.b.Z=!0))))}})};Jb=function(){this.xl=this.rl=!0;this.type.Ui=!0;this.b.Z=!0;var g,e,p=this.sl;g=0;for(e=p.length;g<e;++g)p[g](this);this.q.Hc&&
this.ya()};Kb=function(g){g&&this.sl.push(g)};Mb=function(){if(this.rl){var g=this.Ga,e=this.zc;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Xb*this.width,-this.Yb*this.height);this.k?(g.offset(-this.x,-this.y),e.Qq(g,this.k),e.offset(this.x,this.y),e.zo(g)):e.ti(g);g.normalize();this.rl=!1;this.Bx()}};var g=new sa(0,0,0,0);Nb=function(){if(this.q.Hc){var m=this.q.Ib,e=this.Ga;g.set(m.ec(e.left),m.fc(e.top),m.ec(e.right),m.fc(e.bottom));this.lc.rh(g)||(this.lc.right<this.lc.left?
m.update(this,null,g):m.update(this,this.lc,g),this.lc.kg(g),this.q.qd=!0)}};Ob=function(){if(this.xl&&this.Rd){this.ya();var m=this.type.ij,e=this.Ga;g.set(m.ec(e.left),m.fc(e.top),m.ec(e.right),m.fc(e.bottom));this.Je.rh(g)||(this.Je.right<this.Je.left?m.update(this,null,g):m.update(this,this.Je,g),this.Je.kg(g),this.xl=!1)}};Lb=function(g,e){return this.Ga.Pb(g,e)&&this.zc.Pb(g,e)?this.qa&&!this.qa.Ag()?(this.qa.hg(this.width,this.height,this.k),this.qa.Pb(g-this.x,e-this.y)):!0:!1};Fb=function(){this.type.Xk();
return this.Ff};Pb=function(){this.q.Rn();return this.vd};Qb=function(){F(this.ma);var g,e,p,r=!0;g=0;for(e=this.Ae.length;g<e;g++)this.Ae[g]&&(p=this.type.T[g],this.ma.push(p),p.Wc||(r=!1));this.sr=!!this.ma.length;this.qe=r};Gb=function(){return"Inst"+this.Aq};sb=function(g){if(g&&g.Zb&&g.type!=this){var e,p,r;e=0;for(p=g.siblings.length;e<p;e++)if(r=g.siblings[e],r.type==this)return r}g=this.X().qc();return g.length?g[0]:null};tb=function(g){var e=this.X().qc();return e.length?e[g.Ah()%e.length]:
null};rb=function(){if(this.Xg&&!this.U){var g,e;g=0;for(e=this.c.length;g<e;g++)this.c[g].Ff=g;var p=g,r=this.b.gd;g=0;for(e=r.length;g<e;++g)r[g].type===this&&(r[g].Ff=p++);this.Xg=!1}};Cb=function(g){if(g<this.c.length)return this.c[g];g-=this.c.length;var e=this.b.gd,p,r;p=0;for(r=e.length;p<r;++p)if(e[p].type===this){if(0===g)return e[p];--g}return null};ub=function(){return this.ef[this.Vd]};vb=function(){this.Vd++;this.Vd===this.ef.length?this.ef.push(new qb(this)):this.ef[this.Vd].ca=!0};
wb=function(){this.Vd++;this.Vd===this.ef.length&&this.ef.push(new qb(this));var g=this.ef[this.Vd],e=this.ef[this.Vd-1];e.ca?g.ca=!0:(g.ca=!1,za(g.c,e.c),za(g.ka,e.ka))};xb=function(){this.Vd--};yb=function(g){var e,p,r,u,n,a=0;if(!this.U)for(e=0,p=this.Ha.length;e<p;e++)for(n=this.Ha[e],r=0,u=n.Ta.length;r<u;r++){if(g===n.Ta[r].name)return this.K.lastBehIndex=a,n.Ta[r];a++}e=0;for(p=this.Ta.length;e<p;e++){if(g===this.Ta[e].name)return this.K.lastBehIndex=a,this.Ta[e];a++}return null};zb=function(g){return this.Gj(g)?
this.K.lastBehIndex:-1};Ab=function(g){var e,p;e=0;for(p=this.T.length;e<p;e++)if(this.T[e].name===g)return e;return-1};Bb=function(){if(this.Zb&&!this.U){var g,e,p,r,u,n,a;this.Xk();n=this.X();var c=n.ca,d=(g=this.b.eb())&&g.Cb&&g.Cb.Uc;g=0;for(e=this.oc.length;g<e;g++)if(u=this.oc[g],u!==this&&(u.Xk(),a=u.X(),a.ca=c,!c)){F(a.c);p=0;for(r=n.c.length;p<r;++p)a.c[p]=u.$l(n.c[p].Ff);if(d)for(F(a.ka),p=0,r=n.ka.length;p<r;++p)a.ka[p]=u.$l(n.ka[p].Ff)}}};Eb=function(){return"Type"+this.fa};dc=function(g,
e,p){if("undefined"===typeof g||"undefined"===typeof p)return!1;switch(e){case 0:return g===p;case 1:return g!==p;case 2:return g<p;case 3:return g<=p;case 4:return g>p;case 5:return g>=p;default:return!1}}})();
var mc={exposure:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float exposure;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\ngl_FragColor = vec4(front.rgb * pow(2.0, exposure), front.a);\n}",vj:0,wj:0,El:!1,Wc:!0,pl:!1,Y:[["exposure",0,1]]}};function oc(g){this.b=g}
(function(){function g(){return a.length?a.pop():[]}function m(c){var d,b;d=0;for(b=c.length;d<b;d++)Array.isArray(c[d])&&m(c[d]);F(c);a.push(c)}function e(){}function p(){}function r(){}var u=oc.prototype;u.da=function(a){this.ua=a;this.b=a.b};u.da.prototype.H=function(){};u.W=function(a){this.type=a;this.b=a.b};var n=u.W.prototype,a=[];Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});n.H=function(){this.Mc=this.C[0];this.hd=this.C[1];this.wd=
this.C[2];this.wc||(this.Pd=g());var a=this.Pd;a.length=this.Mc;var d,b,f;for(d=0;d<this.Mc;d++)for(a[d]||(a[d]=g()),a[d].length=this.hd,b=0;b<this.hd;b++)for(a[d][b]||(a[d][b]=g()),a[d][b].length=this.wd,f=0;f<this.wd;f++)a[d][b][f]=0;this.Oo=[];this.Po=[];this.Qo=[];this.Zd=-1};n.Og=function(){var a;for(a=0;a<this.Mc;a++)m(this.Pd[a]);F(this.Pd)};n.dd=function(a,d,b){a=Math.floor(a);d=Math.floor(d);b=Math.floor(b);return isNaN(a)||0>a||a>this.Mc-1||isNaN(d)||0>d||d>this.hd-1||isNaN(b)||0>b||b>this.wd-
1?0:this.Pd[a][d][b]};n.set=function(a,d,b,f){a=Math.floor(a);d=Math.floor(d);b=Math.floor(b);isNaN(a)||0>a||a>this.Mc-1||isNaN(d)||0>d||d>this.hd-1||isNaN(b)||0>b||b>this.wd-1||(this.Pd[a][d][b]=f)};n.pv=function(){return JSON.stringify({c2array:!0,size:[this.Mc,this.hd,this.wd],data:this.Pd})};n.mb=function(){return{size:[this.Mc,this.hd,this.wd],data:this.Pd}};n.Gb=function(a){var d=a.size;this.Mc=d[0];this.hd=d[1];this.wd=d[2];this.Pd=a.data};n.oe=function(a,d,b){0>a&&(a=0);0>d&&(d=0);0>b&&(b=
0);if(this.Mc!==a||this.hd!==d||this.wd!==b){this.Mc=a;this.hd=d;this.wd=b;var f,e,l=this.Pd;l.length=a;for(a=0;a<this.Mc;a++)for(ea(l[a])&&(l[a]=g()),l[a].length=d,f=0;f<this.hd;f++)for(ea(l[a][f])&&(l[a][f]=g()),l[a][f].length=b,e=0;e<this.wd;e++)ea(l[a][f][e])&&(l[a][f][e]=0)}};n.Yt=function(){return 0<=this.Zd&&this.Zd<this.Oo.length?this.Oo[this.Zd]:0};n.kw=function(){return 0<=this.Zd&&this.Zd<this.Po.length?this.Po[this.Zd]:0};n.Ly=function(){return 0<=this.Zd&&this.Zd<this.Qo.length?this.Qo[this.Zd]:
0};e.prototype.Mr=function(a,d,b){return dc(this.dd(a,0,0),d,b)};n.Wi=function(a){this.b.ki(a.ra);a.Dq();this.b.$e(a.ra)};u.j=new e;p.prototype.kl=function(a,d,b){this.oe(a,d,b)};p.prototype.oo=function(a,d){this.set(a,0,0,d)};p.prototype.ht=function(a,d,b){this.set(a,d,0,b)};u.u=new p;r.prototype.Cr=function(a,d,b,f){a.Oq(this.dd(d,b||0,f||0))};r.prototype.yt=function(a){a.za(this.Mc)};r.prototype.Vr=function(a){a.za(this.hd)};r.prototype.dl=function(a){a.wb(this.pv())};u.M=new r})();
function pc(g){this.b=g}
(function(){function g(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function m(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function e(a){a=a.toLowerCase();return Y.hasOwnProperty(a)&&Y[a].length?Y[a][0].Bc():v.destination}function p(){return v.createGain?v.createGain():v.createGainNode()}function r(a){return v.createDelay?v.createDelay(a):v.createDelayNode(a)}function u(a){a.start?a.start(0):a.noteOn(0)}function n(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,
b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function c(a,b,c,d,f,e){this.type="filter";this.md=[a,b,c,d,f,e];this.ja=p();this.R=p();this.R.gain.value=e;this.L=p();this.L.gain.value=1-e;this.Ua=v.createBiquadFilter();this.Ua.type="number"===typeof this.Ua.type?a:Fc[a];this.Ua.frequency.value=b;this.Ua.detune&&(this.Ua.detune.value=c);this.Ua.Q.value=d;this.Ua.gain.value=f;this.ja.connect(this.Ua);this.ja.connect(this.L);this.Ua.connect(this.R)}function d(a,b,c){this.type="delay";
this.md=[a,b,c];this.ja=p();this.R=p();this.R.gain.value=c;this.L=p();this.L.gain.value=1-c;this.bi=p();this.Oc=r(a);this.Oc.delayTime.value=a;this.qj=p();this.qj.gain.value=b;this.ja.connect(this.bi);this.ja.connect(this.L);this.bi.connect(this.R);this.bi.connect(this.Oc);this.Oc.connect(this.qj);this.qj.connect(this.bi)}function b(a,b,c,d){this.type="convolve";this.md=[b,c,d];this.ja=p();this.R=p();this.R.gain.value=c;this.L=p();this.L.gain.value=1-c;this.qf=v.createConvolver();a&&(this.qf.normalize=
b,this.qf.buffer=a);this.ja.connect(this.qf);this.ja.connect(this.L);this.qf.connect(this.R)}function f(a,b,c,d,f){this.type="flanger";this.md=[a,b,c,d,f];this.ja=p();this.L=p();this.L.gain.value=1-f/2;this.R=p();this.R.gain.value=f/2;this.zj=p();this.zj.gain.value=d;this.Oc=r(a+b);this.Oc.delayTime.value=a;this.tb=v.createOscillator();this.tb.frequency.value=c;this.uc=p();this.uc.gain.value=b;this.ja.connect(this.Oc);this.ja.connect(this.L);this.Oc.connect(this.R);this.Oc.connect(this.zj);this.zj.connect(this.Oc);
this.tb.connect(this.uc);this.uc.connect(this.Oc.delayTime);u(this.tb)}function h(a,b,c,d,f,e){this.type="phaser";this.md=[a,b,c,d,f,e];this.ja=p();this.L=p();this.L.gain.value=1-e/2;this.R=p();this.R.gain.value=e/2;this.Ua=v.createBiquadFilter();this.Ua.type="number"===typeof this.Ua.type?7:"allpass";this.Ua.frequency.value=a;this.Ua.detune&&(this.Ua.detune.value=b);this.Ua.Q.value=c;this.tb=v.createOscillator();this.tb.frequency.value=f;this.uc=p();this.uc.gain.value=d;this.ja.connect(this.Ua);
this.ja.connect(this.L);this.Ua.connect(this.R);this.tb.connect(this.uc);this.uc.connect(this.Ua.frequency);u(this.tb)}function l(a){this.type="gain";this.md=[a];this.la=p();this.la.gain.value=a}function z(a,b){this.type="tremolo";this.md=[a,b];this.la=p();this.la.gain.value=1-b/2;this.tb=v.createOscillator();this.tb.frequency.value=a;this.uc=p();this.uc.gain.value=b/2;this.tb.connect(this.uc);this.uc.connect(this.la.gain);u(this.tb)}function O(a,b){this.type="ringmod";this.md=[a,b];this.ja=p();this.R=
p();this.R.gain.value=b;this.L=p();this.L.gain.value=1-b;this.oi=p();this.oi.gain.value=0;this.tb=v.createOscillator();this.tb.frequency.value=a;this.tb.connect(this.oi.gain);u(this.tb);this.ja.connect(this.oi);this.ja.connect(this.L);this.oi.connect(this.R)}function x(a,b,c,d,f){this.type="distortion";this.md=[a,b,c,d,f];this.ja=p();this.yk=p();this.xk=p();this.jx(c,Math.pow(10,d/20));this.R=p();this.R.gain.value=f;this.L=p();this.L.gain.value=1-f;this.bl=v.createWaveShaper();this.oj=new Float32Array(65536);
this.nv(a,b);this.bl.oj=this.oj;this.ja.connect(this.yk);this.ja.connect(this.L);this.yk.connect(this.bl);this.bl.connect(this.xk);this.xk.connect(this.R)}function k(a,b,c,d,f){this.type="compressor";this.md=[a,b,c,d,f];this.la=v.createDynamicsCompressor();try{this.la.threshold.value=a,this.la.knee.value=b,this.la.ratio.value=c,this.la.attack.value=d,this.la.release.value=f}catch(e){}}function q(a,b){this.type="analyser";this.md=[a,b];this.la=v.createAnalyser();this.la.fftSize=a;this.la.smoothingTimeConstant=
b;this.kv=new Float32Array(this.la.frequencyBinCount);this.Tq=new Uint8Array(a);this.gi=0}function W(){this.N=null;this.dk=0;this.ff=[];this.Nm=this.Wj=this.Vj=0}function t(a,b){this.src=a;this.ba=w;this.kd=b;this.Ti=!1;var c=this;this.Lm=this.dn=null;this.Qg=[];this.Gk=0;this.Un=this.Ol=this.Zq=this.rk=!1;1===w&&b&&(this.ba=0,this.dn=p());this.lf=this.na=null;var d;switch(this.ba){case 0:this.na=new Audio;this.na.crossOrigin="anonymous";this.na.addEventListener("canplaythrough",function(){c.Un=!0});
1===w&&v.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Zq=!0,this.na.addEventListener("canplay",function(){c.Lm||(c.Lm=v.createMediaElementSource(c.na),c.Lm.connect(c.dn))}));this.na.autoplay=!1;this.na.My="auto";this.na.src=a;break;case 1:d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){c.lf=d.response;c.Zt()};d.onerror=function(){c.Ol=!0};d.send();break;case 2:this.na=!0;break;case 3:this.na=!0}}function y(a,b){var c=this;this.tag=b;
this.xc=this.$d=!0;this.src=a.src;this.buffer=a;this.ba=w;this.kd=a.kd;this.playbackRate=1;this.vg=!0;this.sc=this.Fc=!1;this.mc=0;this.Mh=this.Cg=this.Dd=!1;this.volume=1;this.bn=function(a){if(!c.sc&&!c.Fc){var b=this;b||(b=a.target);b===c.Si&&(c.vg=!0,c.xc=!0,J=c.tag,E.trigger(pc.prototype.j.Pi,L))}};this.Si=null;this.yg=1===H&&!this.kd||2===H;this.Lg=1;this.startTime=this.yg?E.rb.P:E.ve.P;this.Qa=this.bb=null;this.Ed=!1;this.Pa=null;this.pq=this.oq=this.nq=this.mq=this.rq=this.qq=0;this.n=null;
var d=!1;1!==this.ba||0!==this.buffer.ba||this.buffer.Zq||(this.ba=0);switch(this.ba){case 0:this.kd?(this.n=a.na,d=!a.Ti,a.Ti=!0):(this.n=new Audio,this.n.crossOrigin="anonymous",this.n.autoplay=!1,this.n.src=a.na.src,d=!0);d&&this.n.addEventListener("ended",function(){J=c.tag;c.xc=!0;E.trigger(pc.prototype.j.Pi,L)});break;case 1:this.bb=p();this.bb.connect(e(b));1===this.buffer.ba?a.na&&(this.n=v.createBufferSource(),this.n.buffer=a.na,this.n.connect(this.bb)):(this.n=this.buffer.na,this.buffer.dn.connect(this.bb),
this.buffer.Ti||(this.buffer.Ti=!0,this.buffer.na.addEventListener("ended",function(){J=c.tag;c.xc=!0;E.trigger(pc.prototype.j.Pi,L)})));break;case 2:this.n=new window.Media(M+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.vg=!0,c.xc=!0,J=c.tag,E.trigger(pc.prototype.j.Pi,L))});break;case 3:this.n=!0}}function R(a){F(Ea);if(a.length){var b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],mb(a,d.tag)&&Ea.push(d)}else K&&!K.ug()&&(F(Ea),Ea[0]=K)}function P(a,b){Y.hasOwnProperty(a)?Y[a].push(b):
Y[a]=[b];var c,d,f,e,g=v.destination;if(Y.hasOwnProperty(a)&&(f=Y[a],f.length))for(g=f[0].Bc(),c=0,d=f.length;c<d;c++)e=f[c],c+1===d?e.Kc(v.destination):e.Kc(f[c+1].Bc());R(a);c=0;for(d=Ea.length;c<d;c++)Ea[c].Tw(g);Ma&&Db===a&&(Ma.disconnect(),Ma.connect(g))}function V(){}function G(){}var I=pc.prototype;I.da=function(a){this.ua=a;this.b=a.b};I.da.prototype.H=function(){};var E=null,L=null,J="",M="",w=0,v=null,D=[],A=[],K=null,Q=!1,H=0,C=!1,N=1,ka=0,S=0,ua=1,la=1,La=10,Ba=1E4,Ac=1,Ma=null,Db="",
Xa=!1,Ya=[],Y={},Fc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");c.prototype.Kc=function(a){this.R.disconnect();this.R.connect(a);this.L.disconnect();this.L.connect(a)};c.prototype.remove=function(){this.ja.disconnect();this.Ua.disconnect();this.R.disconnect();this.L.disconnect()};c.prototype.Bc=function(){return this.ja};d.prototype.Kc=function(a){this.R.disconnect();this.R.connect(a);this.L.disconnect();this.L.connect(a)};d.prototype.remove=function(){this.ja.disconnect();
this.bi.disconnect();this.Oc.disconnect();this.qj.disconnect();this.R.disconnect();this.L.disconnect()};d.prototype.Bc=function(){return this.ja};b.prototype.Kc=function(a){this.R.disconnect();this.R.connect(a);this.L.disconnect();this.L.connect(a)};b.prototype.remove=function(){this.ja.disconnect();this.qf.disconnect();this.R.disconnect();this.L.disconnect()};b.prototype.Bc=function(){return this.ja};f.prototype.Kc=function(a){this.L.disconnect();this.L.connect(a);this.R.disconnect();this.R.connect(a)};
f.prototype.remove=function(){this.ja.disconnect();this.Oc.disconnect();this.tb.disconnect();this.uc.disconnect();this.L.disconnect();this.R.disconnect();this.zj.disconnect()};f.prototype.Bc=function(){return this.ja};h.prototype.Kc=function(a){this.L.disconnect();this.L.connect(a);this.R.disconnect();this.R.connect(a)};h.prototype.remove=function(){this.ja.disconnect();this.Ua.disconnect();this.tb.disconnect();this.uc.disconnect();this.L.disconnect();this.R.disconnect()};h.prototype.Bc=function(){return this.ja};
l.prototype.Kc=function(a){this.la.disconnect();this.la.connect(a)};l.prototype.remove=function(){this.la.disconnect()};l.prototype.Bc=function(){return this.la};z.prototype.Kc=function(a){this.la.disconnect();this.la.connect(a)};z.prototype.remove=function(){this.tb.disconnect();this.uc.disconnect();this.la.disconnect()};z.prototype.Bc=function(){return this.la};O.prototype.Kc=function(a){this.R.disconnect();this.R.connect(a);this.L.disconnect();this.L.connect(a)};O.prototype.remove=function(){this.tb.disconnect();
this.oi.disconnect();this.ja.disconnect();this.R.disconnect();this.L.disconnect()};O.prototype.Bc=function(){return this.ja};x.prototype.jx=function(a,b){.01>a&&(a=.01);this.yk.gain.value=a;this.xk.gain.value=Math.pow(1/a,.6)*b};x.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};x.prototype.nv=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),f=0,e=0;32768>e;++e)f=e/32768,f=this.shape(f,c,d),this.oj[32768+e]=f,this.oj[32768-
e-1]=-f};x.prototype.Kc=function(a){this.R.disconnect();this.R.connect(a);this.L.disconnect();this.L.connect(a)};x.prototype.remove=function(){this.ja.disconnect();this.yk.disconnect();this.bl.disconnect();this.xk.disconnect();this.R.disconnect();this.L.disconnect()};x.prototype.Bc=function(){return this.ja};k.prototype.Kc=function(a){this.la.disconnect();this.la.connect(a)};k.prototype.remove=function(){this.la.disconnect()};k.prototype.Bc=function(){return this.la};q.prototype.Sa=function(){this.la.getFloatFrequencyData(this.kv);
this.la.getByteTimeDomainData(this.Tq);for(var a=this.la.fftSize,b=0,c=this.gi=0,d=0;b<a;b++)d=(this.Tq[b]-128)/128,0>d&&(d=-d),this.gi<d&&(this.gi=d),c+=d*d;this.gi=m(this.gi);m(Math.sqrt(c/a))};q.prototype.Kc=function(a){this.la.disconnect();this.la.connect(a)};q.prototype.remove=function(){this.la.disconnect()};q.prototype.Bc=function(){return this.la};W.prototype.ri=function(a){if(this.N=a)this.Vj=this.N.x,this.Wj=this.N.y;F(this.ff)};W.prototype.Mj=function(){return!!this.N};W.prototype.Sa=function(a){this.N&&
0!==a&&(this.Nm=Na(this.Vj,this.Wj,this.N.x,this.N.y),a=Sa(this.Vj,this.Wj,this.N.x,this.N.y)/a,4>this.ff.length||this.ff.shift(),this.ff.push(a),this.Vj=this.N.x,this.Wj=this.N.y)};W.prototype.Zo=function(){if(!this.ff.length)return 0;var a,b,c=0;a=0;for(b=this.ff.length;a<b;a++)c+=this.ff[a];return c/this.ff.length};W.prototype.em=function(){return Math.cos(this.Nm)*this.Zo()};W.prototype.fm=function(){return Math.sin(this.Nm)*this.Zo()};var Bc=!1;t.prototype.Zt=function(){if(!this.na&&this.lf){var a=
this;if(v.decodeAudioData)v.decodeAudioData(this.lf,function(b){a.na=b;a.lf=null;var c,d,f;if(ea(a.uk)||C)ea(a.kj)||(c=a.kj.qf,c.normalize=a.$p,c.buffer=b);else if(a.Qg.length){c=0;for(d=a.Qg.length;c<d;c++){b=a.Qg[c];f=new y(a,b.dr);f.An(!0);if("undefined"!==typeof b.bq&&(b.N=E.yh(b.bq),!b.N))continue;if(b.N){var e=Ra(b.N.x,b.N.y,-b.N.q.cb(),ka,S,!0),g=Ra(b.N.x,b.N.y,-b.N.q.cb(),ka,S,!1);f.zn(e,g,Ga(b.N.k-b.N.q.cb()),b.lm,b.Qm,b.Tm);f.ri(b.N)}else f.zn(b.x,b.y,b.Bt,b.lm,b.Qm,b.Tm);f.play(a.Jm,a.Tn,
a.Gk);a.rk&&f.pause();A.push(f)}F(a.Qg)}else f=new y(a,a.uk||""),f.play(a.Jm,a.Tn,a.Gk),a.rk&&f.pause(),A.push(f)},function(){a.Ol=!0});else if(this.na=v.createBuffer(this.lf,!1),this.lf=null,ea(this.uk)||C)ea(this.kj)||(b=this.kj.qf,b.normalize=this.$p,b.buffer=this.na);else{var b=new y(this,this.uk);b.play(this.Jm,this.Tn,this.Gk);this.rk&&b.pause();A.push(b)}}};t.prototype.lp=function(){switch(this.ba){case 0:var a=4<=this.na.readyState;a&&(this.Un=!0);return a||this.Un;case 1:return!!this.lf||
!!this.na;case 2:return!0;case 3:return!0}return!1};t.prototype.ew=function(){switch(this.ba){case 0:return this.lp();case 1:return!!this.na;case 2:return!0;case 3:return!0}return!1};t.prototype.Uv=function(){switch(this.ba){case 0:return!!this.na.error;case 1:return this.Ol}return!1};y.prototype.ug=function(){switch(this.ba){case 0:return this.n.ended;case 1:return 1===this.buffer.ba?!this.$d&&!this.xc&&this.n.loop||this.sc?!1:this.vg:this.n.ended;case 2:return this.vg;case 3:!0}return!0};y.prototype.Pt=
function(){return this.$d||this.xc?!0:this.ug()};y.prototype.An=function(a){1===w&&(!this.Ed&&a?this.bb&&(this.Qa||(this.Qa=v.createPanner(),this.Qa.panningModel="number"===typeof this.Qa.panningModel?ua:["equalpower","HRTF","soundfield"][ua],this.Qa.distanceModel="number"===typeof this.Qa.distanceModel?la:["linear","inverse","exponential"][la],this.Qa.refDistance=La,this.Qa.maxDistance=Ba,this.Qa.rolloffFactor=Ac),this.bb.disconnect(),this.bb.connect(this.Qa),this.Qa.connect(e(this.tag)),this.Ed=
!0):this.Ed&&!a&&this.bb&&(this.Qa.disconnect(),this.bb.disconnect(),this.bb.connect(e(this.tag)),this.Ed=!1))};y.prototype.zn=function(a,b,c,d,f,e){this.Ed&&1===w&&(this.Qa.setPosition(a,b,0),this.Qa.setOrientation(Math.cos(T(c)),Math.sin(T(c)),0),this.Qa.coneInnerAngle=d,this.Qa.coneOuterAngle=f,this.Qa.coneOuterGain=e,this.qq=a,this.rq=b,this.mq=c,this.nq=d,this.oq=f,this.pq=e)};y.prototype.ri=function(a){this.Ed&&1===w&&(this.Pa||(this.Pa=new W),this.Pa.ri(a))};y.prototype.Sa=function(a){if(this.Ed&&
1===w&&this.Pa&&this.Pa.Mj()&&this.xg()){this.Pa.Sa(a);a=this.Pa.N;var b=Ra(a.x,a.y,-a.q.cb(),ka,S,!0),c=Ra(a.x,a.y,-a.q.cb(),ka,S,!1);this.Qa.setPosition(b,c,0);b=0;"undefined"!==typeof this.Pa.N.k&&(b=a.k-a.q.cb(),this.Qa.setOrientation(Math.cos(b),Math.sin(b),0));b=Ra(this.Pa.em(),this.Pa.fm(),-a.q.cb(),0,0,!0);c=Ra(this.Pa.em(),this.Pa.fm(),-a.q.cb(),0,0,!1);this.Qa.setVelocity(b,c,0)}};y.prototype.play=function(a,b,c){var d=this.n;this.Dd=a;this.volume=b;c=c||0;switch(this.ba){case 0:1!==d.playbackRate&&
(d.playbackRate=1);d.volume!==b*N&&(d.volume=b*N);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==c)try{d.currentTime=c}catch(f){}if(this.kd&&Xa&&!E.Oa)Ya.push(this);else try{this.n.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.Lg=1;if(1===this.buffer.ba)this.bb.gain.value=b*N,this.$d||(this.n=v.createBufferSource(),this.n.buffer=this.buffer.na,this.n.connect(this.bb)),this.n.onended=
this.bn,this.Si=this.n,this.n.loop=a,this.vg=!1,0===c?u(this.n):n(this.n,c,this.Bf());else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);d.volume=b*N;if(d.currentTime!==c)try{d.currentTime=c}catch(g){}this.kd&&Xa&&!E.Oa?Ya.push(this):d.play()}break;case 2:(!this.$d&&this.xc||0!==c)&&d.seekTo(c);d.play();this.vg=!1;break;case 3:E.Fb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.yg?E.rb.P:E.ve.P)-c;this.sc=this.xc=
this.$d=!1};y.prototype.stop=function(){switch(this.ba){case 0:this.n.paused||this.n.pause();break;case 1:1===this.buffer.ba?a(this.n):this.n.paused||this.n.pause();break;case 2:this.n.stop();break;case 3:E.Fb&&AppMobi.context.stopSound(this.src)}this.xc=!0;this.sc=!1};y.prototype.pause=function(){if(!(this.$d||this.xc||this.ug()||this.sc)){switch(this.ba){case 0:this.n.paused||this.n.pause();break;case 1:1===this.buffer.ba?(this.mc=this.am(!0),this.Dd&&(this.mc=this.mc%this.Bf()),this.sc=!0,a(this.n)):
this.n.paused||this.n.pause();break;case 2:this.n.pause();break;case 3:E.Fb&&AppMobi.context.stopSound(this.src)}this.sc=!0}};y.prototype.Yw=function(){if(!(this.$d||this.xc||this.ug())&&this.sc){switch(this.ba){case 0:this.n.play();break;case 1:1===this.buffer.ba?(this.n=v.createBufferSource(),this.n.buffer=this.buffer.na,this.n.connect(this.bb),this.n.onended=this.bn,this.Si=this.n,this.n.loop=this.Dd,this.bb.gain.value=N*this.volume*this.Lg,this.Yk(),this.startTime=(this.yg?E.rb.P:E.ve.P)-this.mc/
(this.playbackRate||.001),n(this.n,this.mc,this.Bf())):this.n.play();break;case 2:this.n.play();break;case 3:E.Fb&&AppMobi.context.resumeSound(this.src)}this.sc=!1}};y.prototype.seek=function(a){if(!(this.$d||this.xc||this.ug()))switch(this.ba){case 0:try{this.n.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.ba)this.sc?this.mc=a:(this.pause(),this.mc=a,this.Yw());else try{this.n.currentTime=a}catch(c){}break;case 3:E.Fb&&AppMobi.context.seekSound(this.src,a)}};y.prototype.Tw=function(a){1===
this.ba&&(this.Ed?(this.Qa.disconnect(),this.Qa.connect(a)):(this.bb.disconnect(),this.bb.connect(a)))};y.prototype.Bf=function(){var a=0;switch(this.ba){case 0:"undefined"!==typeof this.n.duration&&(a=this.n.duration);break;case 1:a=this.buffer.na.duration;break;case 2:a=this.n.getDuration();break;case 3:E.Fb&&(a=AppMobi.context.getDurationSound(this.src))}return a};y.prototype.am=function(a){var b=this.Bf(),c=0;switch(this.ba){case 0:"undefined"!==typeof this.n.currentTime&&(c=this.n.currentTime);
break;case 1:if(1===this.buffer.ba){if(this.sc)return this.mc;c=(this.yg?E.rb.P:E.ve.P)-this.startTime}else"undefined"!==typeof this.n.currentTime&&(c=this.n.currentTime);break;case 3:E.Fb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Dd&&c>b&&(c=b);return c};y.prototype.xg=function(){return!this.sc&&!this.$d&&!this.xc&&!this.ug()};y.prototype.qx=function(a){this.volume=a;this.qr()};y.prototype.qr=function(){var a=this.volume*N;isFinite(a)||(a=0);switch(this.ba){case 0:"undefined"!==
typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a);break;case 1:1===this.buffer.ba?this.bb.gain.value=a*this.Lg:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a)}};y.prototype.tj=function(a){switch(this.ba){case 0:this.n.muted!==!!a&&(this.n.muted=!!a);break;case 1:1===this.buffer.ba?(this.Lg=a?0:1,this.bb.gain.value=N*this.volume*this.Lg):this.n.muted!==!!a&&(this.n.muted=!!a)}};y.prototype.kx=function(){this.Cg=!0;this.tj(this.Cg||this.Mh)};y.prototype.Mq=function(a){this.Mh=
!!a;this.tj(this.Cg||this.Mh)};y.prototype.Yk=function(){var a=this.playbackRate;this.yg&&(a*=E.Zf);switch(this.ba){case 0:this.n.playbackRate!==a&&(this.n.playbackRate=a);break;case 1:1===this.buffer.ba?this.n.playbackRate.value!==a&&(this.n.playbackRate.value=a):this.n.playbackRate!==a&&(this.n.playbackRate=a)}};y.prototype.nx=function(b){switch(this.ba){case 0:b?this.xg()?(this.Fc=!0,this.n.pause()):this.Fc=!1:this.Fc&&(this.n.play(),this.Fc=!1);break;case 1:b?this.xg()?(this.Fc=!0,1===this.buffer.ba?
(this.mc=this.am(!0),this.Dd&&(this.mc=this.mc%this.Bf()),a(this.n)):this.n.pause()):this.Fc=!1:this.Fc&&(1===this.buffer.ba?(this.n=v.createBufferSource(),this.n.buffer=this.buffer.na,this.n.connect(this.bb),this.n.onended=this.bn,this.Si=this.n,this.n.loop=this.Dd,this.bb.gain.value=N*this.volume*this.Lg,this.Yk(),this.startTime=(this.yg?E.rb.P:E.ve.P)-this.mc/(this.playbackRate||.001),n(this.n,this.mc,this.Bf())):this.n.play(),this.Fc=!1);break;case 2:b?this.xg()?(this.n.pause(),this.Fc=!0):this.Fc=
!1:this.Fc&&(this.Fc=!1,this.n.play())}};I.W=function(a){this.type=a;E=this.b=a.b;L=this;this.ac=null;this.Uh=-600;!(this.b.Oh||this.b.Oj&&(this.b.Hh||this.b.Pj))||this.b.Ih||this.b.ta||this.b.qm||(Xa=!0);v=null;"undefined"!==typeof AudioContext?(w=1,v=new AudioContext):"undefined"!==typeof webkitAudioContext&&(w=1,v=new webkitAudioContext);Xa&&document.addEventListener("touchend",function(){if(!Bc&&v){var a=v.createBuffer(1,1,22050),b=v.createBufferSource();b.buffer=a;b.connect(v.destination);u(b);
Bc=!0}var c;if(Xa){if(!C)for(a=0,b=Ya.length;a<b;++a)c=Ya[a],c.xc||c.sc||c.n.play();F(Ya)}},!0);1!==w&&(this.b.rc&&"undefined"!==typeof window.Media?w=2:this.b.jp&&(w=3));2===w&&(M=location.href,a=M.lastIndexOf("/"),-1<a&&(M=M.substr(0,a+1)),M=M.replace("file://",""));if(this.b.np&&this.b.fw&&"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.ye(this);else{if(this.b.Fb)Q=this.b.Oj;else try{Q=
!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){Q=!1}this.b.Fi(this)}};var va=I.W.prototype;va.H=function(){this.b.gg=this;H=this.C[0];this.ne=this.C[1];this.Gw=0!==this.C[2];ua=this.C[3];la=this.C[4];this.Uh=-this.C[5];La=this.C[6];Ba=this.C[7];Ac=this.C[8];this.ac=new W;var a=this.b.J||this.b.width,b=this.b.I||this.b.height;1===w&&("undefined"!==typeof v.listener.dopplerFactor&&(v.listener.dopplerFactor=0),v.listener.setPosition(a/2,b/2,this.Uh),v.listener.setOrientation(0,0,1,
0,-1,0),window.c2OnAudioMicStream=function(a,b){Ma&&Ma.disconnect();Db=b.toLowerCase();Ma=v.createMediaStreamSource(a);Ma.connect(e(Db))});this.b.uo(function(a){L.Dw(a)});var c=this;this.b.ml(function(a){c.Um(a)})};va.Um=function(a){var b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],d.Pa&&d.Pa.N===a&&(d.Pa.N=null,d.Ed&&d.xg()&&d.Dd&&d.stop());this.ac.N===a&&(this.ac.N=null)};va.mb=function(){var a={silent:C,masterVolume:N,listenerZ:this.Uh,listenerUid:this.ac.Mj()?this.ac.N.uid:-1,playing:[],effects:{}},
b=a.playing,c,d,f,e,g,h;c=0;for(d=A.length;c<d;c++)f=A[c],!f.xg()||3===this.ne||f.kd&&1===this.ne||!f.kd&&2===this.ne||(e=f.am(),f.Dd&&(e=e%f.Bf()),e={tag:f.tag,buffersrc:f.buffer.src,is_music:f.kd,playbackTime:e,volume:f.volume,looping:f.Dd,muted:f.Cg,playbackRate:f.playbackRate,paused:f.sc,resume_position:f.mc},f.Ed&&(e.pan={},h=e.pan,f.Pa&&f.Pa.Mj()?h.objUid=f.Pa.N.uid:(h.x=f.qq,h.y=f.rq,h.a=f.mq),h.ia=f.nq,h.oa=f.oq,h.og=f.pq),b.push(e));b=a.effects;for(g in Y)if(Y.hasOwnProperty(g)){f=[];c=0;
for(d=Y[g].length;c<d;c++)f.push({type:Y[g][c].type,params:Y[g][c].md});b[g]=f}return a};var Za=[];va.Gb=function(a){var e=a.silent;N=a.masterVolume;this.Uh=a.listenerZ;this.ac.ri(null);var g=a.listenerUid;-1!==g&&(this.ac.dk=g,Za.push(this.ac));var g=a.playing,t,n,p,m,r,y,R,u,w,v,G;if(3!==this.ne)for(t=0,n=A.length;t<n;t++)w=A[t],w.kd&&1===this.ne||(w.kd||2!==this.ne)&&w.stop();for(r in Y)if(Y.hasOwnProperty(r))for(t=0,n=Y[r].length;t<n;t++)Y[r][t].remove();Wa(Y);for(r in a.effects)if(a.effects.hasOwnProperty(r))for(y=
a.effects[r],t=0,n=y.length;t<n;t++)switch(p=y[t].type,v=y[t].params,p){case "filter":P(r,new c(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":P(r,new d(v[0],v[1],v[2]));break;case "convolve":p=v[2];w=this.Fj(p,!1);w.na?p=new b(w.na,v[0],v[1],p):(p=new b(null,v[0],v[1],p),w.$p=v[0],w.kj=p);P(r,p);break;case "flanger":P(r,new f(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":P(r,new h(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":P(r,new l(v[0]));break;case "tremolo":P(r,new z(v[0],v[1]));break;
case "ringmod":P(r,new O(v[0],v[1]));break;case "distortion":P(r,new x(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":P(r,new k(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":P(r,new q(v[0],v[1]))}t=0;for(n=g.length;t<n;t++)3===this.ne||(a=g[t],p=a.buffersrc,m=a.is_music,r=a.tag,y=a.playbackTime,R=a.looping,u=a.volume,G=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,m&&1===this.ne)||!m&&2===this.ne||((w=this.Ul(p,r,m,R,u))?(w.mc=a.resume_position,w.An(!!v),w.play(R,u,y),w.Yk(),w.qr(),w.tj(w.Cg||
w.Mh),a.paused&&w.pause(),a.muted&&w.kx(),w.tj(w.Cg||w.Mh),v&&(-1!==G?(w.Pa=w.Pa||new W,w.Pa.dk=G,Za.push(w.Pa)):w.zn(v.x,v.y,v.a,v.ia,v.oa,v.og))):(w=this.Fj(p,m),w.Gk=y,w.rk=a.paused,v&&(-1!==G?w.Qg.push({bq:G,lm:v.ia,Qm:v.oa,Tm:v.og,dr:r}):w.Qg.push({x:v.x,y:v.y,Bt:v.a,lm:v.ia,Qm:v.oa,Tm:v.og,dr:r}))));if(e&&!C){t=0;for(n=A.length;t<n;t++)A[t].Mq(!0);C=!0}else if(!e&&C){t=0;for(n=A.length;t<n;t++)A[t].Mq(!1);C=!1}};va.Nd=function(){var a,b,c,d;a=0;for(b=Za.length;a<b;a++)c=Za[a],d=this.b.yh(c.dk),
c.ri(d),c.dk=-1,d&&(ka=d.x,S=d.y);F(Za)};va.Dw=function(a){if(!this.Gw){!a&&v&&v.resume&&v.resume();var b,c;b=0;for(c=A.length;b<c;b++)A[b].nx(a);a&&v&&v.suspend&&v.suspend()}};va.Sa=function(){var a=this.b.tf,b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],d.Sa(a),0!==H&&d.Yk();var f,e;for(f in Y)if(Y.hasOwnProperty(f))for(d=Y[f],b=0,c=d.length;b<c;b++)e=d[b],e.Sa&&e.Sa();1===w&&this.ac.Mj()&&(this.ac.Sa(a),ka=this.ac.N.x,S=this.ac.N.y,v.listener.setPosition(this.ac.N.x,this.ac.N.y,this.Uh),v.listener.setVelocity(this.ac.em(),
this.ac.fm(),0))};var $a=[];va.mx=function(a){var b,c,d,f,e,g=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],f=d[0],d=2*d[1],(e=4<f.length&&".ogg"===f.substr(f.length-4))&&Q||!e&&!Q)$a.push({filename:f,size:d,N:null}),g+=d;return g};va.ux=function(){var a,b,c,d;a=0;for(b=$a.length;a<b;++a)c=$a[a],d=this.b.Aj+c.filename,c.N=this.Fj(d,!1)};va.yv=function(){var a=0,b,c,d;b=0;for(c=$a.length;b<c;++b)d=$a[b],d.N.ew()||d.N.Uv()||this.b.ta||this.b.Pj?a+=d.size:d.N.lp()&&(a+=Math.floor(d.size/2));return a};va.Fj=
function(a,b){var c,d,f,e=null;c=0;for(d=D.length;c<d;c++)if(f=D[c],f.src===a){e=f;break}e||(e=new t(a,b),D.push(e));return e};va.Ul=function(a,b,c,d,f){var e,g,h;e=0;for(g=A.length;e<g;e++)if(h=A[e],h.src===a&&(h.Pt()||c))return h.tag=b,h;a=this.Fj(a,c);if(!a.na)return"<preload>"!==b&&(a.uk=b,a.Jm=d,a.Tn=f),null;h=new y(a,b);A.push(h);return h};var Ea=[];V.prototype.Pi=function(a){return mb(J,a)};I.j=new V;G.prototype.Play=function(a,b,c,d){!C&&(c=g(c),K=this.Ul(this.b.Aj+a[0]+(Q?".ogg":".m4a"),
d,a[1],0!==b,c))&&(K.An(!1),K.play(0!==b,c))};G.prototype.ft=function(a,b){R(a);var c=g(b),d,f;d=0;for(f=Ea.length;d<f;d++)Ea[d].qx(c)};G.prototype.Ps=function(a){if(!C){var b=a[1];a=this.b.Aj+a[0]+(Q?".ogg":".m4a");3===w?this.b.Fb?AppMobi.context.loadSound(a):AppMobi.player.loadSound(a):2!==w&&this.Ul(a,"<preload>",b,!1)}};I.u=new G;I.M=new function(){}})();function qc(g){this.b=g}
(function(){function g(){}function m(){}function e(e){console&&console.warn&&console.warn("Fullscreen request failed: ",e);u.setSize(window.innerWidth,window.innerHeight)}var p=qc.prototype;p.da=function(e){this.ua=e;this.b=e.b};p.da.prototype.H=function(){};p.W=function(e){this.type=e;this.b=e.b};p.W.prototype.H=function(){var e=this;window.addEventListener("resize",function(){e.b.trigger(qc.prototype.j.Js,e)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){e.b.trigger(qc.prototype.j.Es,
e)}),window.addEventListener("offline",function(){e.b.trigger(qc.prototype.j.Ds,e)}));"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){e.b.Qf=1;e.b.trigger(qc.prototype.j.ko,e)}),window.applicationCache.addEventListener("progress",function(a){e.b.Qf=a.loaded/a.total}));this.b.Fb||(document.addEventListener("appMobi.device.update.available",function(){e.b.trigger(qc.prototype.j.ko,e)}),document.addEventListener("backbutton",function(){e.b.trigger(qc.prototype.j.el,
e)}),document.addEventListener("menubutton",function(){e.b.trigger(qc.prototype.j.eo,e)}),document.addEventListener("searchbutton",function(){e.b.trigger(qc.prototype.j.Ks,e)}),document.addEventListener("tizenhwkey",function(a){var c;switch(a.keyName){case "back":c=e.b.trigger(qc.prototype.j.el,e);!c&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=e.b.trigger(qc.prototype.j.eo,e))||a.preventDefault()}}));this.b.Sj&&WinJS.Application&&(WinJS.Application.onbackclick=
function(){return!!e.b.trigger(qc.prototype.j.el,e)});this.b.uo(function(a){a?e.b.trigger(qc.prototype.j.Fs,e):e.b.trigger(qc.prototype.j.Gs,e)});this.rp="undefined"!==typeof window.is_scirra_arcade};g.prototype.Es=function(){return!0};g.prototype.Ds=function(){return!0};g.prototype.ko=function(){return!0};g.prototype.Gs=function(){return!0};g.prototype.Fs=function(){return!0};g.prototype.Js=function(){return!0};g.prototype.el=function(){return!0};g.prototype.eo=function(){return!0};g.prototype.Ks=
function(){return!0};p.j=new g;m.prototype.Gr=function(){this.b.hc?CocoonJS.App.forceToFinish():window.tizen?window.tizen.application.getCurrentApplication().exit():navigator.app&&navigator.app.exitApp?navigator.app.exitApp():navigator.device&&navigator.device.exitApp?navigator.device.exitApp():this.rp||this.b.ta||window.close()};m.prototype.Ur=function(e,a){this.b.hc?CocoonJS.App.openURL(e):this.b.Rc?ejecta.openURL(e):this.b.Sj?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(e)):
navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(e,{openExternal:!0}):this.b.rc?window.open(e,"_system"):this.rp||this.b.ta||window.open(e,a)};var r=!0,u=null;m.prototype.Qs=function(g){this.b.ta?B("[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored"):(2<=g&&(g+=1),6===g&&(g=2),this.b.mp?this.b.kp?debuggerFullscreen(!0):!this.b.ee&&window.nwgui&&(window.nwgui.Window.get().enterFullscreen(),this.b.ee=!0,this.b.ae=2<=g?g:0):document.mozFullScreen||
document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||document.fullScreenElement||(this.b.ae=2<=g?g:0,g=this.b.wl||this.b.canvas,r&&(r=!1,u=this.b,g.addEventListener("mozfullscreenerror",e),g.addEventListener("webkitfullscreenerror",e),g.addEventListener("MSFullscreenError",e),g.addEventListener("fullscreenerror",e)),g.requestFullscreen?g.requestFullscreen():g.mozRequestFullScreen?g.mozRequestFullScreen():g.msRequestFullscreen?g.msRequestFullscreen():g.webkitRequestFullScreen&&
("undefined"!==typeof Element&&"undefined"!==typeof Element.ALLOW_KEYBOARD_INPUT?g.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):g.webkitRequestFullScreen())))};m.prototype.Dr=function(){this.b.ta?B("[Construct 2] Exiting fullscreen is not supported on this platform - the request has been ignored"):this.b.mp?this.b.kp?debuggerFullscreen(!1):this.b.ee&&window.nwgui&&(window.nwgui.Window.get().leaveFullscreen(),this.b.ee=!1):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?
document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()};p.u=new m;p.M=new function(){}})();function rc(g){this.b=g}
(function(){function g(){}function m(){}var e=rc.prototype;e.da=function(e){this.ua=e;this.b=e.b};e.da.prototype.H=function(){};e.W=function(e){this.type=e;this.b=e.b};e.W.prototype.H=function(){};g.prototype.aw=function(){return this.b.hc};e.j=new g;m.prototype.gv=function(){Cocoon.Lx.exit()};e.u=new m;e.M=new function(){}})();function sc(g){this.b=g}
(function(){function g(){}var m=sc.prototype;m.da=function(e){this.ua=e;this.b=e.b};m.da.prototype.H=function(){};m.W=function(e){this.type=e;this.b=e.b;this.Gg=Array(256);this.Ii=Array(256);this.te=0};var e=m.W.prototype;e.H=function(){var e=this;this.b.ta||(jQuery(document).keydown(function(g){e.Bw(g)}),jQuery(document).keyup(function(g){e.Cw(g)}))};var p=[32,33,34,35,36,37,38,39,40,44];e.Bw=function(e){var g=!1;window!=window.top&&-1<p.indexOf(e.which)&&(e.preventDefault(),g=!0,e.stopPropagation());
if(this.Gg[e.which])this.Ii[e.which]&&!g&&e.preventDefault();else{this.Gg[e.which]=!0;this.te=e.which;this.b.Oa=!0;this.b.trigger(sc.prototype.j.ps,this);var n=this.b.trigger(sc.prototype.j.zs,this),a=this.b.trigger(sc.prototype.j.As,this);this.b.Oa=!1;if(n||a)this.Ii[e.which]=!0,g||e.preventDefault()}};e.Cw=function(e){this.Gg[e.which]=!1;this.te=e.which;this.b.Oa=!0;this.b.trigger(sc.prototype.j.Yn,this);var g=this.b.trigger(sc.prototype.j.bo,this),p=this.b.trigger(sc.prototype.j.ao,this);this.b.Oa=
!1;if(g||p||this.Ii[e.which])this.Ii[e.which]=!0,e.preventDefault()};e.Pg=function(){var e;for(e=0;256>e;++e)if(this.Gg[e]){this.Gg[e]=!1;this.te=e;this.b.trigger(sc.prototype.j.Yn,this);var g=this.b.trigger(sc.prototype.j.bo,this),p=this.b.trigger(sc.prototype.j.ao,this);if(g||p)this.Ii[e]=!0}};e.mb=function(){return{triggerKey:this.te}};e.Gb=function(e){this.te=e.triggerKey};g.prototype.as=function(e){return this.Gg[e]};g.prototype.zs=function(e){return e===this.te};g.prototype.ps=function(){return!0};
g.prototype.Yn=function(){return!0};g.prototype.bo=function(e){return e===this.te};g.prototype.As=function(e){return e===this.te};g.prototype.ao=function(e){return e===this.te};m.j=new g;m.u=new function(){};m.M=new function(){}})();function tc(g){this.b=g}
(function(){function g(){}function m(){}function e(){}var p=tc.prototype;p.da=function(a){this.ua=a;this.b=a.b};p.da.prototype.H=function(){};p.W=function(a){this.type=a;this.b=a.b;this.aj=Array(4);this.gr=this.Uk=this.ah=this.ie=this.he=0;this.im=!1};var r=p.W.prototype;r.H=function(){var a=this;if(!this.b.ta){jQuery(document).mousemove(function(c){a.Ym(c)});jQuery(document).mousedown(function(c){a.Xm(c)});jQuery(document).mouseup(function(c){a.Zm(c)});jQuery(document).dblclick(function(c){a.Aw(c)});
var c=function(c){a.Ew(c)};document.addEventListener("mousewheel",c,!1);document.addEventListener("DOMMouseScroll",c,!1)}};var u={left:0,top:0};r.Ym=function(a){var c=this.b.ta?u:jQuery(this.b.canvas).offset();this.he=a.pageX-c.left;this.ie=a.pageY-c.top};r.Wp=function(){return 0<this.b.Wb?!0:0<=this.he&&0<=this.ie&&this.he<this.b.width&&this.ie<this.b.height};r.Xm=function(a){this.Wp()&&(this.aj[a.which]=!0,this.b.Oa=!0,this.b.trigger(tc.prototype.j.os,this),this.ah=a.which-1,this.Uk=0,this.b.trigger(tc.prototype.j.Zn,
this),this.b.trigger(tc.prototype.j.hl,this),this.b.Oa=!1)};r.Zm=function(a){this.aj[a.which]&&(this.b.Kj&&!this.b.Re&&a.preventDefault(),this.b.Kj=!0,this.aj[a.which]=!1,this.b.Oa=!0,this.ah=a.which-1,this.b.trigger(tc.prototype.j.Is,this),this.b.Oa=!1)};r.Aw=function(a){this.Wp()&&(a.preventDefault(),this.b.Oa=!0,this.ah=a.which-1,this.Uk=1,this.b.trigger(tc.prototype.j.Zn,this),this.b.trigger(tc.prototype.j.hl,this),this.b.Oa=!1)};r.Ew=function(a){this.gr=0>(a.wheelDelta?a.wheelDelta:a.detail?
-a.detail:0)?0:1;this.im=!1;this.b.Oa=!0;this.b.trigger(tc.prototype.j.Os,this);this.b.Oa=!1;this.im&&nb(a)&&a.preventDefault()};g.prototype.Zn=function(a,c){return a===this.ah&&c===this.Uk};g.prototype.os=function(){return!0};g.prototype.Yr=function(a){return this.aj[a+1]};g.prototype.Is=function(a){return a===this.ah};g.prototype.bs=function(a){var c=this.b.qg();return Ta(this.b.Yg(a,this.he,this.ie,c.wg),c.wg)};g.prototype.hl=function(a,c,d){return a!==this.ah||c!==this.Uk?!1:this.b.Yg(d,this.he,
this.ie,!1)};g.prototype.Os=function(a){this.im=!0;return a===this.gr};p.j=new g;var n=null;m.prototype.Ws=function(a){this.b.ta||this.b.Re||!a||(a=a.Wo())&&a.pc&&(a=a.pc,n!==a&&(n=a,a="url("+a.sv()+") "+Math.round(a.Xb*a.width)+" "+Math.round(a.Yb*a.height)+", auto",document.body.style.cursor="",document.body.style.cursor=a))};p.u=new m;e.prototype.Qi=function(a,c){var d,b,f,e,g;ea(c)?(d=this.b.zd(0),b=d.scale,f=d.Vb,e=d.jc,g=d.k,d.scale=1,d.Vb=1,d.jc=1,d.k=0,a.B(d.Na(this.he,this.ie,!0)),d.scale=
b,d.Vb=f,d.jc=e,d.k=g):(d=fa(c)?this.b.zd(c):this.b.rg(c))?a.B(d.Na(this.he,this.ie,!0)):a.B(0)};e.prototype.Ri=function(a,c){var d,b,f,e,g;ea(c)?(d=this.b.zd(0),b=d.scale,f=d.Vb,e=d.kc,g=d.k,d.scale=1,d.Vb=1,d.kc=1,d.k=0,a.B(d.Na(this.he,this.ie,!1)),d.scale=b,d.Vb=f,d.kc=e,d.k=g):(d=fa(c)?this.b.zd(c):this.b.rg(c))?a.B(d.Na(this.he,this.ie,!1)):a.B(0)};p.M=new e})();function X(g){this.b=g}
(function(){function g(){if(0===this.Hl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Wg?b.drawImage(this.Fa,this.Mg,this.Ng,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Fa,0,0,this.width,this.height);this.Hl=a.toDataURL("image/png")}return this.Hl}function m(){}function e(a){a[0]=0;a[1]=0;a[2]=0;h.push(a)}function p(a,b){return a<b?""+a+","+b:""+b+","+a}function r(a,b,c,d){b=b.uid;c=c.uid;var f=p(b,c);if(a.hasOwnProperty(f))a[f][2]=
d;else{var e=h.length?h.pop():[0,0,0];e[0]=b;e[1]=c;e[2]=d;a[f]=e}}function u(a,b,c){b=p(b.uid,c.uid);a.hasOwnProperty(b)&&(e(a[b]),delete a[b])}function n(a,b,c){b=p(b.uid,c.uid);if(a.hasOwnProperty(b))return l=a[b][2],!0;l=-2;return!1}function a(){}var c=X.prototype;c.da=function(a){this.ua=a;this.b=a.b};var d=c.da.prototype;d.H=function(){if(!this.U){var a,b,c,d,f,e,h,k,l;this.bd=[];this.Ch=!1;a=0;for(b=this.gc.length;a<b;a++){f=this.gc[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];h.sn=f[3];h.Dk=
f[4];h.uq=f[5];h.fa=f[6];h.frames=[];c=0;for(d=f[7].length;c<d;c++)e=f[7][c],k={},k.Fn=e[0],k.cr=e[1],k.Mg=e[2],k.Ng=e[3],k.width=e[4],k.height=e[5],k.duration=e[6],k.Xb=e[7],k.Yb=e[8],k.mm=e[9],k.vk=e[10],k.vq=e[11],k.Wg=0!==k.width,k.Hl="",k.sv=g,l={left:0,top:0,right:1,bottom:1},k.Bn=l,k.Ma=null,(l=this.b.hv(e[0]))?k.Fa=l:(k.Fa=new Image,k.Fa.Vt=e[0],k.Fa.Ut=e[1],k.Fa.Nt=null,this.b.wr(k.Fa,e[0])),h.frames.push(k),this.bd.push(k);this.gc[a]=h}}};d.pr=function(){var a,b,c;a=0;for(b=this.c.length;a<
b;a++)c=this.c[a],c.mj=c.pc.Ma};d.Wm=function(){if(!this.U){var a,b,c;a=0;for(b=this.bd.length;a<b;++a)c=this.bd[a],c.Fa.Nt=null,c.Ma=null;this.Ch=!1;this.pr()}};d.$m=function(){if(!this.U&&this.c.length){var a,b,c;a=0;for(b=this.bd.length;a<b;++a)c=this.bd[a],c.Ma=this.b.F.ck(c.Fa,this.b.ea,c.vq);this.pr()}};d.qw=function(){if(!this.U&&!this.Ch&&this.b.F){var a,b,c;a=0;for(b=this.bd.length;a<b;++a)c=this.bd[a],c.Ma=this.b.F.ck(c.Fa,this.b.ea,c.vq);this.Ch=!0}};d.On=function(){if(!this.U&&!this.c.length&&
this.Ch){var a,b,c;a=0;for(b=this.bd.length;a<b;++a)c=this.bd[a],this.b.F.deleteTexture(c.Ma),c.Ma=null;this.Ch=!1}};var b=[];d.kn=function(a){var c,d,f;F(b);c=0;for(d=this.bd.length;c<d;++c)f=this.bd[c].Fa,-1===b.indexOf(f)&&(a.drawImage(f,0,0),b.push(f))};c.W=function(a){this.type=a;this.b=a.b;a=this.type.gc[0].frames[0].vk;this.wc?this.qa.vi(a):this.qa=new gb(a)};var f=c.W.prototype;f.H=function(){this.visible=0===this.C[0];this.Dh=this.If=!1;this.Rd=0!==this.C[3];1===this.type.gc.length&&1===
this.type.gc[0].frames.length||0===this.type.gc[0].speed||(this.b.Fi(this),this.If=!0);this.Ia=this.To(this.C[1])||this.type.gc[0];this.G=this.C[2];0>this.G&&(this.G=0);this.G>=this.Ia.frames.length&&(this.G=this.Ia.frames.length-1);var a=this.Ia.frames[this.G];this.qa.vi(a.vk);this.Xb=a.Xb;this.Yb=a.Yb;this.rf=this.Ia.speed;this.wc?this.cd.reset():this.cd=new eb;this.yd=this.cd.P;this.De=!0;this.Od=0;this.Ce=!0;this.ej=this.vo="";this.Do=0;this.mh=-1;this.type.qw();var b,c,d,f,e,g,h,a=0;for(b=this.type.gc.length;a<
b;a++)for(f=this.type.gc[a],c=0,d=f.frames.length;c<d;c++)e=f.frames[c],0===e.width&&(e.width=e.Fa.width,e.height=e.Fa.height),e.Wg&&(h=e.Fa,g=e.Bn,g.left=e.Mg/h.width,g.top=e.Ng/h.height,g.right=(e.Mg+e.width)/h.width,g.bottom=(e.Ng+e.height)/h.height,0===e.Mg&&0===e.Ng&&e.width===h.width&&e.height===h.height&&(e.Wg=!1));this.pc=this.Ia.frames[this.G];this.mj=this.pc.Ma};f.mb=function(){var a={a:this.Ia.fa,f:this.G,cas:this.rf,fs:this.yd,ar:this.Od,at:this.cd.P};this.De||(a.ap=this.De);this.Ce||
(a.af=this.Ce);return a};f.Gb=function(a){var b=this.ov(a.a);b&&(this.Ia=b);this.G=a.f;0>this.G&&(this.G=0);this.G>=this.Ia.frames.length&&(this.G=this.Ia.frames.length-1);this.rf=a.cas;this.yd=a.fs;this.Od=a.ar;this.cd.reset();this.cd.P=a.at;this.De=a.hasOwnProperty("ap")?a.ap:!0;this.Ce=a.hasOwnProperty("af")?a.af:!0;this.pc=this.Ia.frames[this.G];this.mj=this.pc.Ma;this.qa.vi(this.pc.vk);this.Xb=this.pc.Xb;this.Yb=this.pc.Yb};f.ql=function(a){this.G=a?0:this.Ia.frames.length-1;this.De=!1;this.vo=
this.Ia.name;this.Dh=!0;this.b.trigger(X.prototype.j.ns,this);this.b.trigger(X.prototype.j.ms,this);this.Dh=!1;this.Od=0};f.Wi=function(){return this.cd.P};f.Sa=function(){this.cd.add(this.b.Af(this));this.ej.length&&this.Go();0<=this.mh&&this.Kl();var a=this.cd.P,b=this.Ia,c=b.frames[this.G],d=c.duration/this.rf;this.De&&a>=this.yd+d&&(this.Ce?this.G++:this.G--,this.yd+=d,this.G>=b.frames.length&&(b.uq?(this.Ce=!1,this.G=b.frames.length-2):b.loop?this.G=b.Dk:(this.Od++,this.Od>=b.sn?this.ql(!1):
this.G=b.Dk)),0>this.G&&(b.uq?(this.G=1,this.Ce=!0,b.loop||(this.Od++,this.Od>=b.sn&&this.ql(!0))):b.loop?this.G=b.Dk:(this.Od++,this.Od>=b.sn?this.ql(!0):this.G=b.Dk)),0>this.G?this.G=0:this.G>=b.frames.length&&(this.G=b.frames.length-1),a>this.yd+b.frames[this.G].duration/this.rf&&(this.yd=a),a=b.frames[this.G],this.eg(c,a),this.b.Z=!0)};f.To=function(a){var b,c,d;b=0;for(c=this.type.gc.length;b<c;b++)if(d=this.type.gc[b],mb(d.name,a))return d;return null};f.ov=function(a){var b,c,d;b=0;for(c=this.type.gc.length;b<
c;b++)if(d=this.type.gc[b],d.fa===a)return d;return null};f.Go=function(){var a=this.Ia.frames[this.G],b=this.To(this.ej);this.ej="";!b||mb(b.name,this.Ia.name)&&this.De||(this.Ia=b,this.rf=b.speed,0>this.G&&(this.G=0),this.G>=this.Ia.frames.length&&(this.G=this.Ia.frames.length-1),1===this.Do&&(this.G=0),this.De=!0,this.yd=this.cd.P,this.Ce=!0,this.eg(a,this.Ia.frames[this.G]),this.b.Z=!0)};f.Kl=function(){var a=this.Ia.frames[this.G],b=this.G;this.G=pa(this.mh);0>this.G&&(this.G=0);this.G>=this.Ia.frames.length&&
(this.G=this.Ia.frames.length-1);b!==this.G&&(this.eg(a,this.Ia.frames[this.G]),this.yd=this.cd.P,this.b.Z=!0);this.mh=-1};f.eg=function(a,b){var c=a.width,d=a.height,f=b.width,e=b.height;c!=f&&(this.width*=f/c);d!=e&&(this.height*=e/d);this.Xb=b.Xb;this.Yb=b.Yb;this.qa.vi(b.vk);this.O();this.pc=b;this.mj=b.Ma;c=0;for(d=this.S.length;c<d;c++)f=this.S[c],f.iq&&f.iq(a,b);this.b.trigger(X.prototype.j.eg,this)};f.Le=function(a){a.globalAlpha=this.opacity;var b=this.pc,c=b.Wg,d=b.Fa,f=this.x,e=this.y,
g=this.width,h=this.height;if(0===this.k&&0<=g&&0<=h)f-=this.Xb*g,e-=this.Yb*h,this.b.me&&(f=Math.round(f),e=Math.round(e)),c?a.drawImage(d,b.Mg,b.Ng,b.width,b.height,f,e,g,h):a.drawImage(d,f,e,g,h);else{this.b.me&&(f=Math.round(f),e=Math.round(e));a.save();var k=0<g?1:-1,l=0<h?1:-1;a.translate(f,e);1===k&&1===l||a.scale(k,l);a.rotate(this.k*k*l);f=0-this.Xb*ja(g);e=0-this.Yb*ja(h);c?a.drawImage(d,b.Mg,b.Ng,b.width,b.height,f,e,ja(g),ja(h)):a.drawImage(d,f,e,ja(g),ja(h));a.restore()}};f.mg=function(a){this.Pc(a)};
f.Pc=function(a){a.Gc(this.mj);a.Tg(this.opacity);var b=this.pc,c=this.zc;if(this.b.me){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Wg?a.bf(c.Za+d,c.$a+f,c.Jb+d,c.Kb+f,c.zb+d,c.Ab+f,c.xb+d,c.yb+f,b.Bn):a.li(c.Za+d,c.$a+f,c.Jb+d,c.Kb+f,c.zb+d,c.Ab+f,c.xb+d,c.yb+f)}else b.Wg?a.bf(c.Za,c.$a,c.Jb,c.Kb,c.zb,c.Ab,c.xb,c.yb,b.Bn):a.li(c.Za,c.$a,c.Jb,c.Kb,c.zb,c.Ab,c.xb,c.yb)};f.uv=function(a){var b=this.pc,c,d;c=0;for(d=b.mm.length;c<d;c++)if(mb(a,b.mm[c][0]))return c;return-1};f.xh=function(a,
b){var c=this.pc,d=c.mm,f;ga(a)?f=this.uv(a):f=a-1;f=pa(f);if(0>f||f>=d.length)return b?this.x:this.y;var e=(d[f][1]-c.Xb)*this.width,d=d[f][2],d=(d-c.Yb)*this.height,c=Math.cos(this.k);f=Math.sin(this.k);var g=e*c-d*f,d=d*c+e*f,e=g+this.x,d=d+this.y;return b?e:d};var h=[],l=-2,z=[];m.prototype.rs=function(a){if(!a)return!1;var b=this.b,c=b.qg(),d=c.type,f=null;c.K.collmemory?f=c.K.collmemory:(f={},c.K.collmemory=f);c.K.spriteCreatedDestroyCallback||(c.K.spriteCreatedDestroyCallback=!0,b.ml(function(a){var b=
c.K.collmemory;a=a.uid;var d,f;for(d in b)b.hasOwnProperty(d)&&(f=b[d],f[0]===a||f[1]===a)&&(e(b[d]),delete b[d])}));var g=d.X(),h=a.X(),g=g.qc(),k,q,p,m,x,v,W,A=this.b.Yf,O=A-1,Q=b.eb().Cb;for(q=0;q<g.length;q++){p=g[q];h.ca?(p.ya(),this.b.Xl(p.q,a,p.Ga,z),k=z):k=h.qc();for(m=0;m<k.length;m++)x=k[m],b.gf(p,x)||b.Qt(p,x)?(v=n(f,p,x),v=!v||l<O,r(f,p,x,A),v&&(b.ki(Q.ra),v=d.X(),W=a.X(),v.ca=!1,W.ca=!1,d===a?(v.c.length=2,v.c[0]=p,v.c[1]=x,d.Jc()):(v.c.length=1,W.c.length=1,v.c[0]=p,W.c[0]=x,d.Jc(),
a.Jc()),Q.Dq(),b.$e(Q.ra))):u(f,p,x);F(z)}return!1};var O=null,x=new ba,k=!1,q=[],W=new sa(0,0,0,0);d.finish=function(a){if(k){if(a){var b=this.b.eb().Cb.Uc;a=O.X();var c=x.kf(),d,f;if(a.ca){a.ca=!1;F(a.c);d=0;for(f=c.length;d<f;++d)a.c[d]=c[d];if(b)for(F(a.ka),d=0,f=O.c.length;d<f;++d)c=O.c[d],x.contains(c)||a.ka.push(c)}else if(b)for(b=a.c.length,d=0,f=c.length;d<f;++d)a.c[b+d]=c[d],Da(a.ka,c[d]);else za(a.c,c);O.Jc()}x.clear();k=!1}};m.prototype.cs=function(a){if(a){var b=!1,c,d,f,e=this.b.qg(),
g=e.type,e=e.wg;c=a.X();d=this.b.eb().Cb.Uc;var h;c.ca?(this.ya(),W.kg(this.Ga),W.offset(0,0),this.b.Xl(this.q,a,W,q),h=q):h=d?c.ka:c.c;O=a;k=g!==a&&!e;c=0;for(d=h.length;c<d;c++)if(f=h[c],this.b.gf(this,f)){b=!0;if(e)break;g!==a&&x.add(f)}F(q);a=b}else a=!1;return a};m.prototype.Jr=function(a,b){return dc(this.G,a,b)};m.prototype.Ir=function(a,b){return dc(this.Ce?this.rf:-this.rf,a,b)};m.prototype.ms=function(a){return mb(this.vo,a)};m.prototype.ns=function(){return!0};m.prototype.eg=function(){return!0};
c.j=new m;a.prototype.kt=function(a,b,c){if(a&&b&&(b=this.b.Dl(a,b,this.xh(c,!0),this.xh(c,!1)))){"undefined"!==typeof b.k&&(b.k=this.k,b.O());this.b.Dc++;var d,f,e;this.b.trigger(Object.getPrototypeOf(a.ua).j.dg,b);if(b.Zb)for(d=0,f=b.siblings.length;d<f;d++)e=b.siblings[d],this.b.trigger(Object.getPrototypeOf(e.type.ua).j.dg,e);this.b.Dc--;d=this.b.rv();c=!1;if(ea(d.K.Spawn_LastExec)||d.K.Spawn_LastExec<this.b.zf)c=!0,d.K.Spawn_LastExec=this.b.zf;if(a!=this.type&&(a=a.X(),a.ca=!1,c?(F(a.c),a.c[0]=
b):a.c.push(b),b.Zb))for(d=0,f=b.siblings.length;d<f;d++)e=b.siblings[d],a=e.type.X(),a.ca=!1,c?(F(a.c),a.c[0]=e):a.c.push(e)}};a.prototype.mt=function(a){this.De=!0;this.yd=this.cd.P;1===a&&0!==this.G&&(this.mh=0,this.Dh||this.Kl());this.If||(this.b.Fi(this),this.If=!0)};a.prototype.Us=function(a,b){this.ej=a;this.Do=b;this.If||(this.b.Fi(this),this.If=!0);this.Dh||this.Go()};a.prototype.Vs=function(a){this.mh=a;this.If||(this.b.Fi(this),this.If=!0);this.Dh||this.Kl()};c.u=new a;c.M=new function(){}})();
function uc(g){this.b=g}
(function(){function g(a,b){return a.length?a.pop():new b}function m(a,b,c){if(c){var d;c=0;for(d=b.length;c<d;c++)a.length<n&&a.push(b[c]);F(b)}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<n&&a.push(b[d]),delete b[d])}function e(b,c,d){var f=b.Pf;d=d.replace(/\s\s*$/,"");c>=f.length&&f.push(g(a,Object));c=f[c];c.text=d;c.width=b.Km(d);b.$g=ma(b.$g,c.width)}function p(){}var r=uc.prototype;r.H=function(){};r.da=function(a){this.ua=a;this.b=a.b};var u=r.da.prototype;u.H=function(){this.U||
(this.Fa=new Image,this.b.wr(this.Fa,this.Fn),this.Ma=null)};u.Wm=function(){this.U||(this.Ma=null)};u.$m=function(){if(!this.U&&this.c.length){this.Ma||(this.Ma=this.b.F.ck(this.Fa,this.b.ea,this.Gn));var a,b;a=0;for(b=this.c.length;a<b;a++)this.c[a].Ma=this.Ma}};u.On=function(){this.U||this.c.length||!this.Ma||(this.b.F.deleteTexture(this.Ma),this.Ma=null)};u.kn=function(a){a.drawImage(this.Fa,0,0)};r.W=function(a){this.type=a;this.b=a.b};u=r.W.prototype;u.Og=function(){m(a,this.Pf,!0);m(c,this.gj,
!1);m(d,this.hj,!1);Wa(this.Ie)};u.H=function(){this.Fa=this.type.Fa;this.fj=this.C[0];this.Ge=this.C[1];this.characterSet=this.C[2];this.text=this.C[3];this.He=this.C[4];this.visible=0===this.C[5];this.Lj=this.C[6]/2;this.$k=this.C[7]/2;this.Ix=0===this.C[9];this.ig=this.C[10];this.lineHeight=this.C[11];this.Xf=this.$g=0;this.wc?(F(this.Pf),Wa(this.gj),Wa(this.hj),Wa(this.Ie)):(this.Pf=[],this.gj={},this.hj={},this.Ie={});this.Ei=!0;this.Cm=this.width;this.b.F&&(this.type.Ma||(this.type.Ma=this.b.F.ck(this.type.Fa,
this.b.ea,this.type.Gn)),this.Ma=this.type.Ma);this.lt()};u.mb=function(){var a={t:this.text,csc:this.He,csp:this.ig,lh:this.lineHeight,tw:this.$g,th:this.Xf,lrt:this.lw,ha:this.Lj,va:this.$k,cw:{}},b;for(b in this.Ie)a.cw[b]=this.Ie[b];return a};u.Gb=function(a){this.text=a.t;this.He=a.csc;this.ig=a.csp;this.lineHeight=a.lh;this.$g=a.tw;this.Xf=a.th;this.lw=a.lrt;a.hasOwnProperty("ha")&&(this.Lj=a.ha);a.hasOwnProperty("va")&&(this.$k=a.va);for(var b in a.cw)this.Ie[b]=a.cw[b];this.Ei=!0;this.Cm=
this.width};var n=1E3,a=[],c=[],d=[];u.lt=function(){for(var a=this.Fa,b=a.width,f=a.height,a=this.fj,e=this.Ge,p=a/b,k=e/f,q=this.characterSet,b=Math.floor(b/a),f=Math.floor(f/e),m=0;m<q.length&&!(m>=b*f);m++){var n=m%b,r=Math.floor(m/b),u=q.charAt(m);if(this.b.F){var P=this.hj,V=n*p,G=r*k,n=(n+1)*p,r=(r+1)*k;void 0===P[u]&&(P[u]=g(d,sa));P[u].left=V;P[u].top=G;P[u].right=n;P[u].bottom=r}else P=this.gj,n=n*a,r=r*e,V=a,G=e,void 0===P[u]&&(P[u]=g(c,Object)),P[u].x=n,P[u].y=r,P[u].ur=V,P[u].$o=G}};
var b=[];r.qt=function(a){F(b);for(var c="",d,f=0;f<a.length;)if(d=a.charAt(f),"\n"===d)c.length&&(b.push(c),c=""),b.push("\n"),++f;else if(" "===d||"\t"===d||"-"===d){do c+=a.charAt(f),f++;while(f<a.length&&(" "===a.charAt(f)||"\t"===a.charAt(f)));b.push(c);c=""}else f<a.length&&(c+=d,f++);c.length&&b.push(c)};r.zt=function(b){var c=b.text,d=b.Pf;if(c&&c.length){var f=b.width;if(2>=f)m(a,d,!0);else{var e=b.He,k=b.ig;if(c.length*(b.fj*e+k)-k<=f&&-1===c.indexOf("\n")&&(k=b.Km(c),k<=f)){m(a,d,!0);d.push(g(a,
Object));d[0].text=c;d[0].width=k;b.$g=k;b.Xf=b.Ge*e+b.lineHeight;return}this.At(b);b.Xf=d.length*(b.Ge*e+b.lineHeight)}}else m(a,d,!0)};r.At=function(c){var d=c.Ix,f=c.text,g=c.Pf,p=c.width;d&&(this.qt(f),f=b);var k="",q,m,r,u=0,R=!1;for(r=0;r<f.length;r++)"\n"===f[r]?(!0===R?R=!1:(e(c,u,k),u++),k=""):(R=!1,q=k,k+=f[r],m=c.Km(k.replace(/\s\s*$/,"")),m>p&&(""===q?(e(c,u,k),k="",R=!0):(e(c,u,q),k=f[r]),u++,d||" "!==k||(k="")));k.replace(/\s\s*$/,"").length&&(e(c,u,k),u++);for(r=u;r<g.length;r++)a.length<
n&&a.push(g[r]);g.length=u};u.Km=function(a){for(var b=this.ig,c=a.length,d=0,f=0;f<c;f++)d+=this.Wl(a.charAt(f))*this.He+b;return d-(0<d?b:0)};u.Wl=function(a){var b=this.Ie;return void 0!==b[a]?b[a]:this.fj};u.Bq=function(){if(this.Ei||this.width!==this.Cm)this.Xf=this.$g=0,this.type.ua.zt(this),this.Ei=!1,this.Cm=this.width};u.Le=function(a){var b=this.Fa;if(""!==this.text&&null!=b&&(this.Bq(),!(this.height<this.Ge*this.He+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.me&&
(b=Math.round(b),c=Math.round(c));var d=this.q.Aa,f=this.q.Ba,e=this.q.Ea,g=this.q.Da;a.save();a.translate(b,c);a.rotate(this.k);for(var p=this.Lj,m=this.He,n=this.Ge*m,r=this.lineHeight,u=this.ig,V=this.Pf,G,I=-(this.Xb*this.width),E=-(this.Yb*this.height),E=E+this.$k*ma(0,this.height-this.Xf),L,J,M,w=0;w<V.length;w++){var v=V[w].text;G=p*ma(0,this.width-V[w].width);L=I+G;E+=r;if(c+E+n<f)E+=n;else{for(var D=0;D<v.length;D++){J=v.charAt(D);G=this.Wl(J);var A=this.gj[J];if(b+L+G*m+u<d)L+=G*m+u;else{if(L+
G*m>this.width+1E-5)break;void 0!==A&&(J=L,M=E,0===this.k&&(J=Math.round(J),M=Math.round(M)),a.drawImage(this.Fa,A.x,A.y,A.ur,A.$o,J,M,A.ur*m,A.$o*m));L+=G*m+u;if(b+L>e)break}}E+=n;if(E+n+r>this.height||c+E>g)break}}a.restore()}};var f=new ta;u.Pc=function(a){a.Gc(this.Ma);a.Tg(this.opacity);if(this.text&&(this.Bq(),!(this.height<this.Ge*this.He+this.lineHeight))){this.ya();var b=this.zc,c=0,d=0;this.b.me&&(c=Math.round(this.x)-this.x,d=Math.round(this.y)-this.y);var e=this.q.Aa,g=this.q.Ba,q=this.q.Ea,
p=this.q.Da,m=this.k,n=this.Lj,r=this.$k,u=this.He,V=this.Ge*u,G=this.lineHeight,I=this.ig,E=this.Pf,L=this.Xf,J,M,w;0!==m&&(M=Math.cos(m),w=Math.sin(m));for(var c=b.Za+c,b=b.$a+d,v,r=r*ma(0,this.height-L),D,A,L=0;L<E.length;L++)if(d=E[L].text,v=J=n*ma(0,this.width-E[L].width),r+=G,0===m&&b+r+V<g)r+=V;else{for(var K=0;K<d.length;K++){var Q=d.charAt(K);J=this.Wl(Q);Q=this.hj[Q];if(c+v+J*u+I<e)v+=J*u+I;else{if(v+J*u>this.width+1E-5)break;if(void 0!==Q){var H=this.fj*u,C=this.Ge*u;D=v;A=r;0===m&&(D=
Math.round(D),A=Math.round(A));f.Za=D;f.$a=A;f.Jb=D+H;f.Kb=A;f.xb=D;f.yb=A+C;f.zb=D+H;f.Ab=A+C;0!==m&&(D=f,A=M,H=w,C=void 0,C=D.Za*A-D.$a*H,D.$a=D.$a*A+D.Za*H,D.Za=C,C=D.Jb*A-D.Kb*H,D.Kb=D.Kb*A+D.Jb*H,D.Jb=C,C=D.xb*A-D.yb*H,D.yb=D.yb*A+D.xb*H,D.xb=C,C=D.zb*A-D.Ab*H,D.Ab=D.Ab*A+D.zb*H,D.zb=C);f.offset(c,b);a.bf(f.Za,f.$a,f.Jb,f.Kb,f.zb,f.Ab,f.xb,f.yb,Q)}v+=J*u+I;if(0===m&&c+v>q)break}}r+=V;if(r+V+G>this.height||b+r>p)break}}};r.j=new function(){};p.prototype.ct=function(a){fa(a)&&1E9>a&&(a=Math.round(1E10*
a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Ei=!0,this.b.Z=!0)};u.Wi=function(a,b){var c=parseInt(b,10);this.Ie[a]!==c&&(this.Ie[a]=c,this.Ei=!0,this.b.Z=!0)};r.u=new p;r.M=new function(){}})();function Z(g){this.b=g}
(function(){function g(a){c=a.x;d=a.y;b=a.z}function m(a,b,c,d){var g;g=f.length?f.pop():new e;g.init(a,b,c,d);return g}function e(){this.Ai=this.id=this.Of=this.Nf=this.y=this.x=this.Nk=this.Mk=this.Bm=this.time=this.Dn=0;this.Hi=this.Vk=!1}function p(){}function r(){}var u=Z.prototype;u.da=function(a){this.ua=a;this.b=a.b};u.da.prototype.H=function(){};u.W=function(a){this.type=a;this.b=a.b;this.touches=[];this.Mm=!1};var n=u.W.prototype,a={left:0,top:0};n.wh=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 c=0,d=0,b=0,f=[];e.prototype.init=function(a,b,c,d){var f=ab();this.Dn=this.Bm=this.time=f;this.Mk=a;this.Nk=b;this.x=a;this.y=b;this.Nf=a;this.Of=b;this.id=c;this.Ai=d;this.Hi=this.Vk=!1};e.prototype.update=function(a,b,c){this.Bm=this.time;this.time=a;this.Nf=this.x;this.Of=this.y;this.x=b;this.y=c;!this.Hi&&15<=Sa(this.Mk,this.Nk,this.x,this.y)&&(this.Hi=!0)};e.prototype.uw=function(a,b){!this.Vk&&500<=ab()-this.Dn&&!this.Hi&&15>Sa(this.Mk,
this.Nk,this.x,this.y)&&(this.Vk=!0,a.Ld=this.Ai,a.bh=this.id,a.sg=b,a.b.trigger(Z.prototype.j.xs,a),a.Td=this.x,a.Ud=this.y,a.b.trigger(Z.prototype.j.ys,a),a.sg=0)};var h=-1E3,l=-1E3,z=-1E4;e.prototype.Sp=function(a,b){if(!this.Vk){var c=ab();333>=c-this.Dn&&!this.Hi&&15>Sa(this.Mk,this.Nk,this.x,this.y)&&(a.Ld=this.Ai,a.bh=this.id,a.sg=b,666>=c-z&&25>Sa(h,l,this.x,this.y)?(a.b.trigger(Z.prototype.j.ss,a),a.Td=this.x,a.Ud=this.y,a.b.trigger(Z.prototype.j.ts,a),l=h=-1E3,z=-1E4):(a.b.trigger(Z.prototype.j.Ls,
a),a.Td=this.x,a.Ud=this.y,a.b.trigger(Z.prototype.j.Ms,a),h=this.x,l=this.y,z=c),a.sg=0)}};n.H=function(){this.gw=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.sg=this.bh=this.Ld=this.Ud=this.Td=this.ro=this.qo=this.po=this.Et=this.Dt=this.Ct=this.qk=this.pk=this.ok=0;this.Dx=0!==this.C[0];var a=0<this.b.Wb?document:this.b.canvas,b=document;this.b.Fb?b=a=window.Canvas:this.b.hc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.hq(a)},
!1),a.addEventListener("pointermove",function(a){c.gq(a)},!1),b.addEventListener("pointerup",function(a){c.mk(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.mk(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.hq(a)},!1),a.addEventListener("MSPointerMove",function(a){c.gq(a)},!1),b.addEventListener("MSPointerUp",function(a){c.mk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.mk(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.kq(a)},
!1),a.addEventListener("touchmove",function(a){c.jq(a)},!1),b.addEventListener("touchend",function(a){c.an(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.an(a,!0)},!1));if(this.gw){var d=function(a){a=a.reading;c.po=a.accelerationX;c.qo=a.accelerationY;c.ro=a.accelerationZ},f=function(a){a=a.reading;c.ok=a.yawDegrees;c.pk=a.pitchDegrees;c.qk=a.rollDegrees},e=Windows.Devices.Sensors.Accelerometer.getDefault();e&&(e.reportInterval=Math.max(e.minimumReportInterval,16),e.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(e&&e.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",f)):(e&&e.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.ok=a.alpha||
0;c.pk=a.beta||0;c.qk=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Ct=a.accelerationIncludingGravity.x||0,c.Dt=a.accelerationIncludingGravity.y||0,c.Et=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.po=a.acceleration.x||0,c.qo=a.acceleration.y||0,c.ro=a.acceleration.z||0)},!1);this.Dx&&!this.b.ta&&(jQuery(document).mousemove(function(a){c.Ym(a)}),jQuery(document).mousedown(function(a){c.Xm(a)}),jQuery(document).mouseup(function(a){c.Zm(a)}));
!this.b.Oh&&this.b.rc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(g,null,{frequency:40});this.b.wx(this)};n.gq=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&b.preventDefault();var c=this.wh(b.pointerId),d=ab();if(0<=c){var f=this.b.ta?a:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,b.pageX-f.left,b.pageY-f.top)}}};n.hq=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&
"mouse"!==b.pointerType){b.preventDefault&&nb(b)&&b.preventDefault();var c=this.b.ta?a:jQuery(this.b.canvas).offset(),d=b.pageX-c.left,c=b.pageY-c.top;ab();this.Ld=this.touches.length;this.bh=b.pointerId;this.touches.push(m(d,c,b.pointerId,this.Ld));this.b.Oa=!0;this.b.trigger(Z.prototype.j.ho,this);this.b.trigger(Z.prototype.j.jo,this);this.Td=d;this.Ud=c;this.b.trigger(Z.prototype.j.jl,this);this.b.Oa=!1}};n.mk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&
nb(a)&&a.preventDefault();var c=this.wh(a.pointerId);this.Ld=0<=c?this.touches[c].Ai:-1;this.bh=0<=c?this.touches[c].id:-1;this.b.Oa=!0;this.b.trigger(Z.prototype.j.fo,this);this.b.trigger(Z.prototype.j.io,this);0<=c&&(b||this.touches[c].Sp(this,c),100>f.length&&f.push(this.touches[c]),this.touches.splice(c,1));this.b.Oa=!1}};n.jq=function(b){b.preventDefault&&b.preventDefault();var c=ab(),d,f,e,g;d=0;for(f=b.changedTouches.length;d<f;d++)if(e=b.changedTouches[d],g=this.wh(e.identifier),0<=g){var h=
this.b.ta?a:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,e.pageX-h.left,e.pageY-h.top)}};n.kq=function(b){b.preventDefault&&nb(b)&&b.preventDefault();var c=this.b.ta?a:jQuery(this.b.canvas).offset();ab();this.b.Oa=!0;var d,f,e,g;d=0;for(f=b.changedTouches.length;d<f;d++)if(e=b.changedTouches[d],g=this.wh(e.identifier),-1===g){g=e.pageX-c.left;var h=e.pageY-c.top;this.Ld=this.touches.length;this.bh=e.identifier;this.touches.push(m(g,h,e.identifier,this.Ld));this.b.trigger(Z.prototype.j.ho,
this);this.b.trigger(Z.prototype.j.jo,this);this.Td=g;this.Ud=h;this.b.trigger(Z.prototype.j.jl,this)}this.b.Oa=!1};n.an=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.Oa=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.wh(e.identifier),0<=e&&(this.Ld=this.touches[e].Ai,this.bh=this.touches[e].id,this.b.trigger(Z.prototype.j.fo,this),this.b.trigger(Z.prototype.j.io,this),b||this.touches[e].Sp(this,e),100>f.length&&f.push(this.touches[e]),this.touches.splice(e,
1));this.b.Oa=!1};n.Wi=function(){return this.b.rc&&0===this.ok&&0!==b?90*b:this.ok};n.Yt=function(){return this.b.rc&&0===this.pk&&0!==d?90*d:this.pk};n.kw=function(){return this.b.rc&&0===this.qk&&0!==c?90*c:this.qk};n.Xm=function(a){this.kq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Mm=!0};n.Ym=function(a){this.Mm&&this.jq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};n.Zm=function(a){a.preventDefault&&this.b.Kj&&!this.b.Re&&a.preventDefault();this.b.Kj=
!0;this.an({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Mm=!1};n.Rk=function(){var a,b,c,d=ab();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Bm=d),c.uw(this,a)};p.prototype.jo=function(){return!0};p.prototype.io=function(){return!0};p.prototype.jl=function(a){return a?this.b.Yg(a,this.Td,this.Ud,!1):!1};var O=[];p.prototype.ds=function(a){if(!a)return!1;var b=a.X(),c=b.qc(),d,f,e,g,h,l;e=0;for(g=c.length;e<g;e++){var p=c[e];p.ya();h=0;for(l=this.touches.length;h<
l;h++)if(f=this.touches[h],d=p.q.Na(f.x,f.y,!0),f=p.q.Na(f.x,f.y,!1),p.Pb(d,f)){O.push(p);break}}return O.length?(b.ca=!1,za(b.c,O),a.Jc(),F(O),!0):!1};p.prototype.ho=function(a){a=Math.floor(a);return a===this.Ld};p.prototype.fo=function(a){a=Math.floor(a);return a===this.Ld};p.prototype.xs=function(){return!0};p.prototype.Ls=function(){return!0};p.prototype.ss=function(){return!0};p.prototype.ys=function(a){return a?this.b.Yg(a,this.Td,this.Ud,!1):!1};p.prototype.Ms=function(a){return a?this.b.Yg(a,
this.Td,this.Ud,!1):!1};p.prototype.ts=function(a){return a?this.b.Yg(a,this.Td,this.Ud,!1):!1};u.j=new p;r.prototype.Qi=function(a,b){var c=this.sg;if(0>c||c>=this.touches.length)a.B(0);else{var d,f,e,g,h;ea(b)?(d=this.b.zd(0),f=d.scale,e=d.Vb,g=d.jc,h=d.k,d.scale=1,d.Vb=1,d.jc=1,d.k=0,a.B(d.Na(this.touches[c].x,this.touches[c].y,!0)),d.scale=f,d.Vb=e,d.jc=g,d.k=h):(d=fa(b)?this.b.zd(b):this.b.rg(b))?a.B(d.Na(this.touches[c].x,this.touches[c].y,!0)):a.B(0)}};r.prototype.Ri=function(a,b){var c=this.sg;
if(0>c||c>=this.touches.length)a.B(0);else{var d,f,e,g,h;ea(b)?(d=this.b.zd(0),f=d.scale,e=d.Vb,g=d.kc,h=d.k,d.scale=1,d.Vb=1,d.kc=1,d.k=0,a.B(d.Na(this.touches[c].x,this.touches[c].y,!1)),d.scale=f,d.Vb=e,d.kc=g,d.k=h):(d=fa(b)?this.b.zd(b):this.b.rg(b))?a.B(d.Na(this.touches[c].x,this.touches[c].y,!1)):a.B(0)}};u.M=new r})();function vc(g){this.b=g}
(function(){function g(){}function m(){}function e(){}var p=vc.prototype;p.da=function(a){this.ua=a;this.b=a.b};p.da.prototype.H=function(){};p.W=function(a){this.type=a;this.b=a.b};var r=p.W.prototype,u="",n="undefined"!==typeof window.is_scirra_arcade;n&&(u="arcade"+window.scirra_arcade_id);var a=!1;try{localStorage.getItem("test"),a=!0}catch(c){a=!1}r.H=function(){a||B("[Construct 2] Webstorage plugin: local storage is not supported on this platform.")};g.prototype.js=function(c){return a?null!=
localStorage.getItem(u+c):!1};g.prototype.Hs=function(){return!0};p.j=new g;m.prototype.ot=function(c,b){if(a)try{localStorage.setItem(u+c,b)}catch(f){this.b.trigger(vc.prototype.j.Hs,this)}};p.u=new m;e.prototype.ks=function(c,b){a?c.wb(localStorage.getItem(u+b)||""):c.wb("")};e.prototype.dl=function(c){if(a){var b={},f,e,g;f=0;for(e=localStorage.length;f<e;f++)g=localStorage.key(f),n?g.substr(0,u.length)===u&&(b[g.substr(u.length)]=localStorage.getItem(g)):b[g]=localStorage.getItem(g);c.wb(JSON.stringify({c2dictionary:!0,
data:b}))}else c.wb("")};p.M=new e})();function wc(g){this.b=g}
(function(){function g(){}var m=wc.prototype;m.da=function(e){this.behavior=e;this.b=e.b};m.da.prototype.H=function(){};m.W=function(e,g){this.type=e;this.behavior=e.behavior;this.d=g;this.b=e.b};var e=m.W.prototype;e.H=function(){var e=this.C[0];this.Md=this.C[1];this.Ej=this.C[2];this.Lt=0!==this.C[3];this.yn=0!==this.C[4];this.Db=Math.cos(this.d.k)*e;this.ab=Math.sin(this.d.k)*e;this.Nf=this.d.x;this.Of=this.d.y;this.Sc=this.d.k;this.Tk=0;this.enabled=0!==this.C[5]};e.mb=function(){return{acc:this.Md,
g:this.Ej,dx:this.Db,dy:this.ab,lx:this.Nf,ly:this.Of,lka:this.Sc,t:this.Tk,e:this.enabled}};e.Gb=function(e){this.Md=e.acc;this.Ej=e.g;this.Db=e.dx;this.ab=e.dy;this.Nf=e.lx;this.Of=e.ly;this.Sc=e.lka;this.Tk=e.t;this.enabled=e.e};e.Sa=function(){if(this.enabled){var e=this.b.Af(this.d),g,m;this.d.k!==this.Sc&&(this.yn&&(g=Sa(0,0,this.Db,this.ab),this.Db=Math.cos(this.d.k)*g,this.ab=Math.sin(this.d.k)*g),this.Sc=this.d.k);0!==this.Md&&(g=Sa(0,0,this.Db,this.ab),m=0===this.Db&&0===this.ab?this.d.k:
Na(0,0,this.Db,this.ab),g+=this.Md*e,0>g&&(g=0),this.Db=Math.cos(m)*g,this.ab=Math.sin(m)*g);0!==this.Ej&&(this.ab+=this.Ej*e);this.Nf=this.d.x;this.Of=this.d.y;if(0!==this.Db||0!==this.ab)if(this.d.x+=this.Db*e,this.d.y+=this.ab*e,this.Tk+=Sa(0,0,this.Db*e,this.ab*e),this.yn&&(this.d.k=Na(0,0,this.Db,this.ab),this.d.O(),this.Sc=this.d.k),this.d.O(),this.Lt&&(g=this.b.Wf(this.d)))this.b.Uw(this.d,g),g=Sa(0,0,this.Db,this.ab),m=this.b.Ot(this.d,this.Nf,this.Of),this.Db=Math.cos(m)*g,this.ab=Math.sin(m)*
g,this.d.x+=this.Db*e,this.d.y+=this.ab*e,this.d.O(),this.yn&&(this.Sc=this.d.k=m,this.d.O()),this.b.Rw(this.d,this.Db/g,this.ab/g,Math.max(2.5*g*e,30))||this.b.Sw(this.d)}};m.j=new function(){};g.prototype.no=function(e){var g=Na(0,0,this.Db,this.ab);this.Db=Math.cos(g)*e;this.ab=Math.sin(g)*e};m.u=new g;m.M=new function(){}})();function xc(g){this.b=g}
(function(){function g(){}function m(){}var e=xc.prototype;e.da=function(e){this.behavior=e;this.b=e.b};e.da.prototype.H=function(){};e.W=function(e,g){this.type=e;this.behavior=e.behavior;this.d=g;this.b=e.b};var p=e.W.prototype;p.H=function(){this.ll=1===this.C[0];this.Lq=!1;this.uh=this.C[1];this.Ni=this.C[2];this.xj=this.C[3];this.au=this.C[4];this.Ya=this.ll?0:3;this.wc?this.Yc.reset():this.Yc=new eb;this.Xe=this.d.opacity?this.d.opacity:1;this.ll&&(0===this.uh?(this.Ya=1,0===this.Ni&&(this.Ya=
2)):(this.d.opacity=0,this.b.Z=!0))};p.mb=function(){return{fit:this.uh,wt:this.Ni,fot:this.xj,s:this.Ya,st:this.Yc.P,mo:this.Xe}};p.Gb=function(e){this.uh=e.fit;this.Ni=e.wt;this.xj=e.fot;this.Ya=e.s;this.Yc.reset();this.Yc.P=e.st;this.Xe=e.mo};p.Sa=function(){this.Yc.add(this.b.Af(this.d));0===this.Ya&&(this.d.opacity=this.Yc.P/this.uh*this.Xe,this.b.Z=!0,this.d.opacity>=this.Xe&&(this.d.opacity=this.Xe,this.Ya=1,this.Yc.reset(),this.b.trigger(xc.prototype.j.us,this.d)));1===this.Ya&&this.Yc.P>=
this.Ni&&(this.Ya=2,this.Yc.reset(),this.b.trigger(xc.prototype.j.Ns,this.d));2===this.Ya&&0!==this.xj&&(this.d.opacity=this.Xe-this.Yc.P/this.xj*this.Xe,this.b.Z=!0,0>this.d.opacity&&(this.d.opacity=0,this.Ya=3,this.Yc.reset(),this.b.trigger(xc.prototype.j.vs,this.d),1===this.au&&this.b.ye(this.d)))};p.qu=function(){this.Ya=0;this.Yc.reset();0===this.uh?(this.Ya=1,0===this.Ni&&(this.Ya=2)):(this.d.opacity=0,this.b.Z=!0)};g.prototype.vs=function(){return!0};g.prototype.us=function(){return!0};g.prototype.Ns=
function(){return!0};e.j=new g;m.prototype.nt=function(){this.ll||this.Lq||(this.Xe=this.d.opacity?this.d.opacity:1,this.Lq=!0);3===this.Ya&&this.qu()};e.u=new m;e.M=new function(){}})();function yc(g){this.b=g}
(function(){function g(){}function m(){}var e=yc.prototype;e.da=function(e){this.behavior=e;this.b=e.b};e.da.prototype.H=function(){};e.W=function(e,g){this.type=e;this.behavior=e.behavior;this.d=g;this.b=e.b};var p=e.W.prototype;p.H=function(){this.hf=this.Jd=this.Ya=this.lk=this.nk=0};p.mb=function(){return{ontime:this.nk,offtime:this.lk,stage:this.Ya,stagetimeleft:this.Jd,timeleft:this.hf}};p.Gb=function(e){this.nk=e.ontime;this.lk=e.offtime;this.Ya=e.stage;this.Jd=e.stagetimeleft;this.hf=e.timeleft};
p.Sa=function(){if(!(0>=this.hf)){var e=this.b.Af(this.d);this.hf-=e;0>=this.hf?(this.hf=0,this.d.visible=!0,this.b.Z=!0,this.b.trigger(yc.prototype.j.ws,this.d)):(this.Jd-=e,0>=this.Jd&&(0===this.Ya?(this.d.visible=!1,this.Ya=1,this.Jd+=this.lk):(this.d.visible=!0,this.Ya=0,this.Jd+=this.nk),this.b.Z=!0))}};g.prototype.ws=function(){return!0};e.j=new g;m.prototype.Sr=function(e,g,m){this.nk=e;this.lk=g;this.Ya=1;this.Jd=g;this.hf=m;this.d.visible=!1;this.b.Z=!0};e.u=new m;e.M=new function(){}})();
function zc(g){this.b=g}
(function(){var g=zc.prototype;g.da=function(e){this.behavior=e;this.b=e.b};g.da.prototype.H=function(){};g.W=function(e,g){this.type=e;this.behavior=e.behavior;this.d=g;this.b=e.b};var m=g.W.prototype;m.H=function(){this.ub=null;this.tk=-1;this.mode=this.Sc=this.Hn=this.di=this.Ze=this.sk=0;var e=this;this.wc||(this.Yp=function(g){e.Um(g)});this.b.ml(this.Yp)};m.mb=function(){return{uid:this.ub?this.ub.uid:-1,pa:this.sk,pd:this.Ze,msa:this.di,tsa:this.Hn,lka:this.Sc,m:this.mode}};m.Gb=function(e){this.tk=
e.uid;this.sk=e.pa;this.Ze=e.pd;this.di=e.msa;this.Hn=e.tsa;this.Sc=e.lka;this.mode=e.m};m.Nd=function(){-1===this.tk?this.ub=null:this.ub=this.b.yh(this.tk);this.tk=-1};m.Um=function(e){this.ub==e&&(this.ub=null)};m.Og=function(){this.ub=null;this.b.Vw(this.Yp)};m.Sa=function(){};m.Rk=function(){if(this.ub){this.Sc!==this.d.k&&(this.di=Ia(this.di+(this.d.k-this.Sc)));var e=this.d.x,g=this.d.y;if(3===this.mode||4===this.mode){var m=Sa(this.d.x,this.d.y,this.ub.x,this.ub.y);if(m>this.Ze||4===this.mode&&
m<this.Ze)g=Na(this.ub.x,this.ub.y,this.d.x,this.d.y),e=this.ub.x+Math.cos(g)*this.Ze,g=this.ub.y+Math.sin(g)*this.Ze}else e=this.ub.x+Math.cos(this.ub.k+this.sk)*this.Ze,g=this.ub.y+Math.sin(this.ub.k+this.sk)*this.Ze;this.Sc=m=Ia(this.di+(this.ub.k-this.Hn));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.d.x===e&&this.d.y===g||(this.d.x=e,this.d.y=g,this.d.O());0!==this.mode&&2!==this.mode||this.d.k===m||(this.d.k=m,this.d.O())}};g.j=new function(){};g.u=new function(){};g.M=new function(){}})();
function Cc(g){this.b=g}
(function(){function g(){}var m=Cc.prototype;m.da=function(e){this.behavior=e;this.b=e.b};m.da.prototype.H=function(){};m.W=function(e,g){this.type=e;this.behavior=e.behavior;this.d=g;this.b=e.b};var e=m.W.prototype;e.H=function(){this.speed=T(this.C[0]);this.Md=T(this.C[1])};e.mb=function(){return{speed:this.speed,acc:this.Md}};e.Gb=function(e){this.speed=e.speed;this.Md=e.acc};e.Sa=function(){var e=this.b.Af(this.d);0!==e&&(0!==this.Md&&(this.speed+=this.Md*e),0!==this.speed&&(this.d.k=Ia(this.d.k+
this.speed*e),this.d.O()))};m.j=new function(){};g.prototype.no=function(e){this.speed=T(e)};m.u=new g;m.M=new function(){}})();function Dc(g){this.b=g}
(function(){function g(){}function m(){}var e=Dc.prototype;e.da=function(a){this.behavior=a;this.b=a.b};e.da.prototype.H=function(){};e.W=function(a,c){this.type=a;this.behavior=a.behavior;this.d=c;this.b=a.b;this.fb=0};var p=e.W.prototype,r=2*Math.PI,u=Math.PI/2,n=3*Math.PI/2;p.H=function(){this.nb=1===this.C[0];this.ci=this.C[1];this.Vn=this.C[2];this.le=this.C[3];this.le+=Math.random()*this.C[4];0===this.le?this.fb=0:(this.fb=this.C[5]/this.le*r,this.fb+=Math.random()*this.C[6]/this.le*r);this.ic=
this.C[7];this.ic+=Math.random()*this.C[8];this.mi=this.Gf=this.ga=0;this.init()};p.mb=function(){return{i:this.fb,a:this.nb,mv:this.ci,w:this.Vn,p:this.le,mag:this.ic,iv:this.ga,iv2:this.Gf,r:this.mi,lkv:this.tc,lkv2:this.Qh}};p.Gb=function(a){this.fb=a.i;this.nb=a.a;this.ci=a.mv;this.Vn=a.w;this.le=a.p;this.ic=a.mag;this.ga=a.iv;this.Gf=a.iv2||0;this.mi=a.r;this.tc=a.lkv;this.Qh=a.lkv2||0};p.init=function(){switch(this.ci){case 0:this.ga=this.d.x;break;case 1:this.ga=this.d.y;break;case 2:this.ga=
this.d.width;this.mi=this.d.height/this.d.width;break;case 3:this.ga=this.d.width;break;case 4:this.ga=this.d.height;break;case 5:this.ga=this.d.k;this.ic=T(this.ic);break;case 6:this.ga=this.d.opacity;break;case 7:this.ga=0;break;case 8:this.ga=this.d.x,this.Gf=this.d.y}this.tc=this.ga;this.Qh=this.Gf};p.we=function(a){a=a%r;switch(this.Vn){case 0:return Math.sin(a);case 1:return a<=u?a/u:a<=n?1-2*(a-u)/Math.PI:(a-n)/u-1;case 2:return 2*a/r-1;case 3:return-2*a/r+1;case 4:return a<Math.PI?-1:1}return 0};
p.Sa=function(){var a=this.b.Af(this.d);if(this.nb&&0!==a){0===this.le?this.fb=0:(this.fb+=a/this.le*r,this.fb=this.fb%r);switch(this.ci){case 0:this.d.x!==this.tc&&(this.ga+=this.d.x-this.tc);this.d.x=this.ga+this.we(this.fb)*this.ic;this.tc=this.d.x;break;case 1:this.d.y!==this.tc&&(this.ga+=this.d.y-this.tc);this.d.y=this.ga+this.we(this.fb)*this.ic;this.tc=this.d.y;break;case 2:this.d.width=this.ga+this.we(this.fb)*this.ic;this.d.height=this.d.width*this.mi;break;case 3:this.d.width=this.ga+this.we(this.fb)*
this.ic;break;case 4:this.d.height=this.ga+this.we(this.fb)*this.ic;break;case 5:this.d.k!==this.tc&&(this.ga=Ia(this.ga+(this.d.k-this.tc)));this.d.k=Ia(this.ga+this.we(this.fb)*this.ic);this.tc=this.d.k;break;case 6:this.d.opacity=this.ga+this.we(this.fb)*this.ic/100;0>this.d.opacity?this.d.opacity=0:1<this.d.opacity&&(this.d.opacity=1);break;case 8:this.d.x!==this.tc&&(this.ga+=this.d.x-this.tc),this.d.y!==this.Qh&&(this.Gf+=this.d.y-this.Qh),this.d.x=this.ga+Math.cos(this.d.k)*this.we(this.fb)*
this.ic,this.d.y=this.Gf+Math.sin(this.d.k)*this.we(this.fb)*this.ic,this.tc=this.d.x,this.Qh=this.d.y}this.d.O()}};p.iq=function(a,c){switch(this.ci){case 2:this.ga*=c.width/a.width;this.mi=c.height/c.width;break;case 3:this.ga*=c.width/a.width;break;case 4:this.ga*=c.height/a.height}};g.prototype.Wr=function(){return this.nb};e.j=new g;m.prototype.Ss=function(a){this.nb=1===a};e.u=new m;e.M=new function(){}})();function Ec(g){this.b=g}
(function(){var g=Ec.prototype;g.da=function(g){this.behavior=g;this.b=g.b};g.da.prototype.H=function(){};g.W=function(g,e){this.type=g;this.behavior=g.behavior;this.d=e;this.b=g.b};g=g.W.prototype;g.H=function(){this.mode=this.C[0]};g.Sa=function(){var g=this.d;g.ya();var e=g.Ga,p=g.q,r=p.ib,u=0,n=0,a=0,c=0;0===this.mode?(n=r.width,c=r.height):(u=p.Aa,n=p.Ea,a=p.Ba,c=p.Da);e.right<u?(g.x=n-1+(g.x-e.left),g.O()):e.left>n?(g.x=u+1-(e.right-g.x),g.O()):e.bottom<a?(g.y=c-1+(g.y-e.top),g.O()):e.top>c&&
(g.y=a+1-(e.bottom-g.y),g.O())}})();
function nc(){return[oc,pc,qc,rc,sc,tc,X,Z,uc,vc,Cc,xc,Dc,Ec,wc,zc,yc,U.prototype.j.co,U.prototype.u.Xs,U.prototype.u.et,X.prototype.u.lo,uc.prototype.u.lo,X.prototype.u.it,X.prototype.u.Pr,U.prototype.j.Rr,U.prototype.j.Lr,uc.prototype.u.ct,oc.prototype.u.kl,oc.prototype.u.ht,X.prototype.M.Qi,X.prototype.M.Ri,U.prototype.u.yr,wc.prototype.u.no,X.prototype.u.bt,X.prototype.u.Ts,X.prototype.M.Ar,oc.prototype.M.Cr,U.prototype.j.$r,Z.prototype.j.jl,Dc.prototype.j.Wr,pc.prototype.u.Play,xc.prototype.u.nt,
Dc.prototype.u.Ss,tc.prototype.j.hl,X.prototype.j.$n,U.prototype.u.Or,U.prototype.M.random,U.prototype.M.Gx,U.prototype.M.Fx,X.prototype.u.ls,U.prototype.j.Qr,U.prototype.u.pt,vc.prototype.u.ot,U.prototype.u.xt,U.prototype.u.Tr,sc.prototype.j.as,Z.prototype.j.ds,X.prototype.j.dg,X.prototype.u.Vs,U.prototype.M.round,X.prototype.u.kt,X.prototype.j.Jr,X.prototype.u.Us,X.prototype.j.rs,X.prototype.u.mt,X.prototype.j.cs,yc.prototype.u.Sr,X.prototype.u.Ys,X.prototype.M.Nr,vc.prototype.j.js,vc.prototype.M.ks,
X.prototype.u.oo,U.prototype.M.Qf,U.prototype.j.gl,pc.prototype.u.Ps,U.prototype.u.Zs,U.prototype.u.dt,uc.prototype.j.Kr,X.prototype.u.gt,U.prototype.M.bu,U.prototype.j.Hr,Z.prototype.M.Qi,Z.prototype.M.Ri,U.prototype.M.St,U.prototype.M.log10,pc.prototype.u.ft,U.prototype.j.Xn,U.prototype.u.Rs,qc.prototype.u.Qs,U.prototype.u.ut,qc.prototype.u.Dr,qc.prototype.u.Ur,rc.prototype.j.aw,rc.prototype.u.gv,qc.prototype.u.Gr,tc.prototype.j.Yr,tc.prototype.u.Ws,tc.prototype.j.bs,X.prototype.u.kl,X.prototype.j.Ir,
U.prototype.j.tt,U.prototype.u.$s,U.prototype.M.ow,U.prototype.M.mw,U.prototype.M.nw,U.prototype.j.gs,U.prototype.u.jt]};
