// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,da,ea,fa,ga,ha,ja,ka,la,ma,oa,pa,qa,ra,sa,ta,va,wa,xa,ya,za,A,Aa,Ba,Ca,Ea,Fa,N,Ga,Ia,Ja,Ka,La,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,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(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(a,d,c,h){this.set(a,d,c,h)}function k(){this.Wa=this.Va=this.Ya=this.Xa=this.cb=this.bb=this.Ma=this.La=0}function n(a,d,c,h){a<d?c<h?(y=a<c?a:c,K=d>h?d:h):(y=a<h?a:h,K=d>c?d:c):c<h?(y=d<c?d:c,K=a>h?a:h):(y=d<h?d:h,K=a>c?a:c)}function q(){this.items=this.Zd=null;this.Mi=0;M&&(this.Zd=new Set);this.Qh=[];this.df=!0}function p(a){w[E++]=a}function r(){this.R=this.km=this.y=this.di=0}function g(a){this.Ab=[];this.ek=this.gk=this.hk=this.fk=0;this.vj(a)}function a(a,d){this.Um=
a;this.Tm=d;this.cells={}}function e(a,d){this.Um=a;this.Tm=d;this.cells={}}function b(a,d,c){var h;return v.length?(h=v.pop(),h.Fn=a,h.x=d,h.y=c,h):new aa(a,d,c)}function d(a,d,h){this.Fn=a;this.x=d;this.y=h;this.Eb=new ca}function c(a,d,h){var c;return x.length?(c=x.pop(),c.Fn=a,c.x=d,c.y=h,c):new da(a,d,h)}function l(a,d,h){this.Fn=a;this.x=d;this.y=h;this.Eb=[];this.gh=!0;this.Xd=new ca;this.ai=!1}function m(a,d){return a.Hd-d.Hd}ea=function(a){window.console&&window.console.log&&window.console.log(a)};
fa=function(a){window.console&&window.console.error&&window.console.error(a)};ga=function(a){return"undefined"===typeof a};ha=function(a){return"number"===typeof a};ja=function(a){return"string"===typeof a};ka=function(a){return 0<a&&0===(a-1&a)};la=function(a){--a;for(var d=1;32>d;d<<=1)a=a|a>>d;return a+1};ma=function(a){return 0>a?-a:a};oa=function(a,d){return a>d?a:d};pa=function(a,d){return a<d?a:d};qa=Math.PI;ra=function(a){return 0<=a?a|0:(a|0)-1};sa=function(a){var d=a|0;return d===a?d:d+
1};ta=function(a,d,h,c,e,m,l,b){var g,u,B,z;a<h?(u=a,g=h):(u=h,g=a);e<l?(z=e,B=l):(z=l,B=e);if(g<z||u>B)return!1;d<c?(u=d,g=c):(u=c,g=d);m<b?(z=m,B=b):(z=b,B=m);if(g<z||u>B)return!1;g=e-a+l-h;u=m-d+b-c;a=h-a;d=c-d;e=l-e;m=b-m;b=ma(d*e-m*a);return ma(e*u-m*g)>b?!1:ma(a*u-d*g)<=b};f.prototype.set=function(a,d,h,c){this.left=a;this.top=d;this.right=h;this.bottom=c};f.prototype.Mg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};f.prototype.width=function(){return this.right-
this.left};f.prototype.height=function(){return this.bottom-this.top};f.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};f.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};f.prototype.jy=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};f.prototype.ky=function(a,d,h){return!(a.right+
d<this.left||a.bottom+h<this.top||a.left+d>this.right||a.top+h>this.bottom)};f.prototype.Tb=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};f.prototype.li=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};va=f;k.prototype.uj=function(a){this.La=a.left;this.Ma=a.top;this.bb=a.right;this.cb=a.top;this.Xa=a.right;this.Ya=a.bottom;this.Va=a.left;this.Wa=a.bottom};k.prototype.Ys=function(a,d){if(0===d)this.uj(a);else{var h=
Math.sin(d),c=Math.cos(d),e=a.left*h,m=a.top*h,l=a.right*h,h=a.bottom*h,b=a.left*c,g=a.top*c,u=a.right*c,c=a.bottom*c;this.La=b-m;this.Ma=g+e;this.bb=u-m;this.cb=g+l;this.Xa=u-h;this.Ya=c+l;this.Va=b-h;this.Wa=c+e}};k.prototype.offset=function(a,d){this.La+=a;this.Ma+=d;this.bb+=a;this.cb+=d;this.Xa+=a;this.Ya+=d;this.Va+=a;this.Wa+=d;return this};var y=0,K=0;k.prototype.hq=function(a){n(this.La,this.bb,this.Xa,this.Va);a.left=y;a.right=K;n(this.Ma,this.cb,this.Ya,this.Wa);a.top=y;a.bottom=K};k.prototype.Tb=
function(a,d){var h=this.La,c=this.Ma,e=this.bb-h,m=this.cb-c,l=this.Xa-h,b=this.Ya-c,g=a-h,u=d-c,B=e*e+m*m,z=e*l+m*b,m=e*g+m*u,t=l*l+b*b,y=l*g+b*u,f=1/(B*t-z*z),e=(t*m-z*y)*f,B=(B*y-z*m)*f;if(0<=e&&0<B&&1>e+B)return!0;e=this.Va-h;m=this.Wa-c;B=e*e+m*m;z=e*l+m*b;m=e*g+m*u;f=1/(B*t-z*z);e=(t*m-z*y)*f;B=(B*y-z*m)*f;return 0<=e&&0<B&&1>e+B};k.prototype.$e=function(a,d){if(d)switch(a){case 0:return this.La;case 1:return this.bb;case 2:return this.Xa;case 3:return this.Va;case 4:return this.La;default:return this.La}else switch(a){case 0:return this.Ma;
case 1:return this.cb;case 2:return this.Ya;case 3:return this.Wa;case 4:return this.Ma;default:return this.Ma}};k.prototype.Tr=function(){return(this.La+this.bb+this.Xa+this.Va)/4};k.prototype.Ur=function(){return(this.Ma+this.cb+this.Ya+this.Wa)/4};k.prototype.dr=function(a){var d=a.Tr(),h=a.Ur();if(this.Tb(d,h))return!0;d=this.Tr();h=this.Ur();if(a.Tb(d,h))return!0;var c,e,m,l,b,g,u,B;for(u=0;4>u;u++)for(B=0;4>B;B++)if(d=this.$e(u,!0),h=this.$e(u,!1),c=this.$e(u+1,!0),e=this.$e(u+1,!1),m=a.$e(B,
!0),l=a.$e(B,!1),b=a.$e(B+1,!0),g=a.$e(B+1,!1),ta(d,h,c,e,m,l,b,g))return!0;return!1};wa=k;xa=function(a,d){for(var h in d)d.hasOwnProperty(h)&&(a[h]=d[h]);return a};ya=function(a,d){var h,c;d=ra(d);if(!(0>d||d>=a.length)){h=d;for(c=a.length-1;h<c;h++)a[h]=a[h+1];za(a,c)}};za=function(a,d){a.length=d};A=function(a){za(a,0)};Aa=function(a,d){A(a);var h,c;h=0;for(c=d.length;h<c;++h)a[h]=d[h]};Ba=function(a,d){a.push.apply(a,d)};Ca=function(a,d){var h,c;h=0;for(c=a.length;h<c;++h)if(a[h]===d)return h;
return-1};Ea=function(a,d){var h=Ca(a,d);-1!==h&&ya(a,h)};Fa=function(a,d,h){return a<d?d:a>h?h:a};N=function(a){return a/(180/qa)};Ga=function(a){return 180/qa*a};Ia=function(a){a%=360;0>a&&(a+=360);return a};Ja=function(a){a%=2*qa;0>a&&(a+=2*qa);return a};Ka=function(a){return Ia(Ga(a))};La=function(a){return Ja(N(a))};Na=function(a,d,h,c){return Math.atan2(c-d,h-a)};Oa=function(a,d){if(a===d)return 0;var h=Math.sin(a),c=Math.cos(a),e=Math.sin(d),m=Math.cos(d),h=h*e+c*m;return 1<=h?0:-1>=h?qa:Math.acos(h)};
Pa=function(a,d,h){var c=Math.sin(a),e=Math.cos(a),m=Math.sin(d),l=Math.cos(d);return Math.acos(c*m+e*l)>h?0<e*m-c*l?Ja(a+h):Ja(a-h):Ja(d)};Qa=function(a,d){var h=Math.sin(a),c=Math.cos(a),e=Math.sin(d),m=Math.cos(d);return 0>=c*e-h*m};Ra=function(a,d,h,c,e,m){if(0===h)return m?a:d;var l=Math.sin(h);h=Math.cos(h);a-=c;d-=e;var b=a*l;a=a*h-d*l;d=d*h+b;return m?a+c:d+e};Sa=function(a,d,h,c){a=h-a;d=c-d;return Math.sqrt(a*a+d*d)};Ta=function(a,d){return!a!==!d};Ua=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;
return!1};Va=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var F=+new Date;Wa=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-F};var h=!1,t=h=!1,Q=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
h=!h&&/safari/i.test(navigator.userAgent),t=/(iphone|ipod|ipad)/i.test(navigator.userAgent),Q=window.c2ejecta);var M=!h&&!Q&&!t&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(a){return this.we()?!1:M?this.Zd.has(a):this.items&&this.items.hasOwnProperty(a)};q.prototype.add=function(a){if(M)this.Zd.has(a)||(this.Zd.add(a),this.df=!1);else{var d=a.toString(),h=this.items;h?h.hasOwnProperty(d)||(h[d]=a,this.Mi++,this.df=!1):(this.items={},this.items[d]=
a,this.Mi=1,this.df=!1)}};q.prototype.remove=function(a){if(!this.we())if(M)this.Zd.has(a)&&(this.Zd["delete"](a),this.df=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.Mi--,this.df=!1)}};q.prototype.clear=function(){this.we()||(M?this.Zd.clear():(this.items=null,this.Mi=0),A(this.Qh),this.df=!0)};q.prototype.we=function(){return 0===this.count()};q.prototype.count=function(){return M?this.Zd.size:this.Mi};var w=null,E=0;q.prototype.Kz=function(){if(!this.df){if(M)A(this.Qh),
w=this.Qh,E=0,this.Zd.forEach(p),w=null,E=0;else{var a=this.Qh;A(a);var d,h=0,c=this.items;if(c)for(d in c)c.hasOwnProperty(d)&&(a[h++]=c[d])}this.df=!0}};q.prototype.Pe=function(){this.Kz();return this.Qh};ca=q;new ca;Xa=function(a,d){M?Ya(a,d.Zd):Za(a,d.Pe())};Ya=function(a,d){var h,c,e,m;c=h=0;for(e=a.length;h<e;++h)m=a[h],d.has(m)||(a[c++]=m);za(a,c)};Za=function(a,d){var h,c,e,m;c=h=0;for(e=a.length;h<e;++h)m=a[h],-1===Ca(d,m)&&(a[c++]=m);za(a,c)};r.prototype.add=function(a){this.y=a-this.di;
this.km=this.R+this.y;this.di=this.km-this.R-this.y;this.R=this.km};r.prototype.reset=function(){this.R=this.km=this.y=this.di=0};bb=r;cb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};g.prototype.vj=function(a){this.Gs=a;this.Ad=a.length/2;this.Ab.length=a.length;this.jk=this.kk=-1;this.kq=0};g.prototype.dh=function(){return!this.Gs.length};g.prototype.Ba=function(){for(var a=this.Ab,d=a[0],h=d,c=a[1],e=c,m,l,b=1,g=this.Ad;b<g;++b)l=2*b,m=a[l],l=a[l+1],m<d&&(d=m),m>h&&(h=m),l<c&&
(c=l),l>e&&(e=l);this.fk=d;this.gk=h;this.hk=c;this.ek=e};g.prototype.uj=function(a,d,h){this.Ab.length=8;this.Ad=4;var c=this.Ab;c[0]=a.left-d;c[1]=a.top-h;c[2]=a.right-d;c[3]=a.top-h;c[4]=a.right-d;c[5]=a.bottom-h;c[6]=a.left-d;c[7]=a.bottom-h;this.kk=a.right-a.left;this.jk=a.bottom-a.top;this.Ba()};g.prototype.Jh=function(a,d,h,c,e){this.Ab.length=8;this.Ad=4;var m=this.Ab;m[0]=a.La-d;m[1]=a.Ma-h;m[2]=a.bb-d;m[3]=a.cb-h;m[4]=a.Xa-d;m[5]=a.Ya-h;m[6]=a.Va-d;m[7]=a.Wa-h;this.kk=c;this.jk=e;this.Ba()};
g.prototype.Xs=function(a){this.Ad=a.Ad;Aa(this.Ab,a.Ab);this.fk=a.fk;this.hk-a.hk;this.gk=a.gk;this.ek=a.ek};g.prototype.Jg=function(a,d,h){if(this.kk!==a||this.jk!==d||this.kq!==h){this.kk=a;this.jk=d;this.kq=h;var c,e,m,l,b,g=0,u=1,B=this.Gs,t=this.Ab;0!==h&&(g=Math.sin(h),u=Math.cos(h));h=0;for(m=this.Ad;h<m;h++)c=2*h,e=c+1,l=B[c]*a,b=B[e]*d,t[c]=l*u-b*g,t[e]=b*u+l*g;this.Ba()}};g.prototype.Tb=function(a,d){var h=this.Ab;if(a===h[0]&&d===h[1])return!0;var c,e,m,l=this.Ad,b=this.fk-110,g=this.hk-
101,u=this.gk+131,B=this.ek+120,t,y,f=0,w=0;for(c=0;c<l;c++)e=2*c,m=(c+1)%l*2,t=h[e],e=h[e+1],y=h[m],m=h[m+1],ta(b,g,a,d,t,e,y,m)&&f++,ta(u,B,a,d,t,e,y,m)&&w++;return 1===f%2||1===w%2};g.prototype.Ci=function(a,d,h){var c=a.Ab,e=this.Ab;if(this.Tb(c[0]+d,c[1]+h)||a.Tb(e[0]-d,e[1]-h))return!0;var m,l,b,g,u,B,t,y,f,w,K,k;m=0;for(g=this.Ad;m<g;m++)for(l=2*m,b=(m+1)%g*2,y=e[l],l=e[l+1],f=e[b],w=e[b+1],b=0,t=a.Ad;b<t;b++)if(u=2*b,B=(b+1)%t*2,K=c[u]+d,u=c[u+1]+h,k=c[B]+d,B=c[B+1]+h,ta(y,l,f,w,K,u,k,B))return!0;
return!1};db=g;a.prototype.pf=function(a,d,h){var c;c=this.cells[a];return c?(c=c[d])?c:h?(c=b(this,a,d),this.cells[a][d]=c):null:h?(c=b(this,a,d),this.cells[a]={},this.cells[a][d]=c):null};a.prototype.jc=function(a){return ra(a/this.Um)};a.prototype.kc=function(a){return ra(a/this.Tm)};a.prototype.update=function(a,d,h){var c,e,m,l,b;if(d)for(c=d.left,e=d.right;c<=e;++c)for(m=d.top,l=d.bottom;m<=l;++m)if(!h||!h.Tb(c,m))if(b=this.pf(c,m,!1))b.remove(a),b.we()&&(b.Eb.clear(),1E3>v.length&&v.push(b),
this.cells[c][m]=null);if(h)for(c=h.left,e=h.right;c<=e;++c)for(m=h.top,l=h.bottom;m<=l;++m)d&&d.Tb(c,m)||this.pf(c,m,!0).Mn(a)};a.prototype.Rl=function(a,d){var h,c,e,m,l,b;h=this.jc(a.left);e=this.kc(a.top);c=this.jc(a.right);for(l=this.kc(a.bottom);h<=c;++h)for(m=e;m<=l;++m)(b=this.pf(h,m,!1))&&b.dump(d)};eb=a;e.prototype.pf=function(a,d,h){var e;e=this.cells[a];return e?(e=e[d])?e:h?(e=c(this,a,d),this.cells[a][d]=e):null:h?(e=c(this,a,d),this.cells[a]={},this.cells[a][d]=e):null};e.prototype.jc=
function(a){return ra(a/this.Um)};e.prototype.kc=function(a){return ra(a/this.Tm)};e.prototype.update=function(a,d,h){var c,e,m,l,b;if(d)for(c=d.left,e=d.right;c<=e;++c)for(m=d.top,l=d.bottom;m<=l;++m)if(!h||!h.Tb(c,m))if(b=this.pf(c,m,!1))b.remove(a),b.we()&&(b.reset(),1E3>x.length&&x.push(b),this.cells[c][m]=null);if(h)for(c=h.left,e=h.right;c<=e;++c)for(m=h.top,l=h.bottom;m<=l;++m)d&&d.Tb(c,m)||this.pf(c,m,!0).Mn(a)};e.prototype.Rl=function(a,d,h,c,e){var m,l;a=this.jc(a);d=this.kc(d);h=this.jc(h);
for(m=this.kc(c);a<=h;++a)for(c=d;c<=m;++c)(l=this.pf(a,c,!1))&&l.dump(e)};e.prototype.Dy=function(a){var d,h,c,e,m;d=a.left;c=a.top;h=a.right;for(e=a.bottom;d<=h;++d)for(a=c;a<=e;++a)if(m=this.pf(d,a,!1))m.gh=!1};fb=e;var v=[];d.prototype.we=function(){return this.Eb.we()};d.prototype.Mn=function(a){this.Eb.add(a)};d.prototype.remove=function(a){this.Eb.remove(a)};d.prototype.dump=function(a){Ba(a,this.Eb.Pe())};aa=d;var x=[];l.prototype.we=function(){if(!this.Eb.length)return!0;if(this.Eb.length>
this.Xd.count())return!1;this.qn();return!0};l.prototype.Mn=function(a){this.Xd.contains(a)?(this.Xd.remove(a),this.Xd.we()&&(this.ai=!1)):this.Eb.length?(this.Eb[this.Eb.length-1].Pd()>a.Pd()&&(this.gh=!1),this.Eb.push(a)):(this.Eb.push(a),this.gh=!0)};l.prototype.remove=function(a){this.Xd.add(a);this.ai=!0;30<=this.Xd.count()&&this.qn()};l.prototype.qn=function(){this.ai&&(this.Xd.count()===this.Eb.length?this.reset():(Xa(this.Eb,this.Xd),this.Xd.clear(),this.ai=!1))};l.prototype.Ow=function(){this.gh||
(this.Eb.sort(m),this.gh=!0)};l.prototype.reset=function(){A(this.Eb);this.gh=!0;this.Xd.clear();this.ai=!1};l.prototype.dump=function(a){this.qn();this.Ow();this.Eb.length&&a.push(this.Eb)};da=l;var G="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");gb=function(a){return 0>=a||11<=a?"source-over":G[a-1]};hb=function(a,d,h){if(h)switch(a.Yb=h.ONE,a.Ub=h.ONE_MINUS_SRC_ALPHA,d){case 1:a.Yb=h.ONE;a.Ub=h.ONE;break;case 3:a.Yb=
h.ONE;a.Ub=h.ZERO;break;case 4:a.Yb=h.ONE_MINUS_DST_ALPHA;a.Ub=h.ONE;break;case 5:a.Yb=h.DST_ALPHA;a.Ub=h.ZERO;break;case 6:a.Yb=h.ZERO;a.Ub=h.SRC_ALPHA;break;case 7:a.Yb=h.ONE_MINUS_DST_ALPHA;a.Ub=h.ZERO;break;case 8:a.Yb=h.ZERO;a.Ub=h.ONE_MINUS_SRC_ALPHA;break;case 9:a.Yb=h.DST_ALPHA;a.Ub=h.ONE_MINUS_SRC_ALPHA;break;case 10:a.Yb=h.ONE_MINUS_DST_ALPHA,a.Ub=h.SRC_ALPHA}};ib=function(a){return Math.round(1E6*a)/1E6};jb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?
!1:a===d?!0:a.toLowerCase()===d.toLowerCase()};kb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||jb(a.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(f){var k=new gc(3);f&&(k[0]=f[0],k[1]=f[1],k[2]=f[2]);return k}
function ic(f){var k=new gc(16);f&&(k[0]=f[0],k[1]=f[1],k[2]=f[2],k[3]=f[3],k[4]=f[4],k[5]=f[5],k[6]=f[6],k[7]=f[7],k[8]=f[8],k[9]=f[9],k[10]=f[10],k[11]=f[11],k[12]=f[12],k[13]=f[13],k[14]=f[14],k[15]=f[15]);return k}function jc(f,k){k[0]=f[0];k[1]=f[1];k[2]=f[2];k[3]=f[3];k[4]=f[4];k[5]=f[5];k[6]=f[6];k[7]=f[7];k[8]=f[8];k[9]=f[9];k[10]=f[10];k[11]=f[11];k[12]=f[12];k[13]=f[13];k[14]=f[14];k[15]=f[15]}
function kc(f,k){var n=k[0],q=k[1];k=k[2];f[0]*=n;f[1]*=n;f[2]*=n;f[3]*=n;f[4]*=q;f[5]*=q;f[6]*=q;f[7]*=q;f[8]*=k;f[9]*=k;f[10]*=k;f[11]*=k}
function lc(f,k,n,q){q||(q=ic());var p,r,g,a,e,b,d,c,l=f[0],m=f[1];f=f[2];r=n[0];g=n[1];p=n[2];n=k[1];b=k[2];l===k[0]&&m===n&&f===b?(f=q,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(n=l-k[0],b=m-k[1],d=f-k[2],c=1/Math.sqrt(n*n+b*b+d*d),n*=c,b*=c,d*=c,k=g*d-p*b,p=p*n-r*d,r=r*b-g*n,(c=Math.sqrt(k*k+p*p+r*r))?(c=1/c,k*=c,p*=c,r*=c):r=p=k=0,g=b*r-d*p,a=d*k-n*r,e=n*p-b*k,(c=Math.sqrt(g*g+a*a+e*e))?(c=1/c,g*=c,a*=c,e*=c):e=a=g=0,
q[0]=k,q[1]=g,q[2]=n,q[3]=0,q[4]=p,q[5]=a,q[6]=b,q[7]=0,q[8]=r,q[9]=e,q[10]=d,q[11]=0,q[12]=-(k*l+p*m+r*f),q[13]=-(g*l+a*m+e*f),q[14]=-(n*l+b*m+d*f),q[15]=1)}
(function(){function f(a,e,b){this.xe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ja=!!b;this.$k=this.Ei=!1;this.$m=0;this.Am=1;this.qp=1E3;this.Rz=(this.qp-this.Am)/32768;this.Rm=hc([0,0,100]);this.Br=hc([0,0,0]);this.xt=hc([0,1,0]);this.Oj=hc([1,1,1]);this.Aq=!0;this.tl=ic();this.Rc=ic();this.Xn=ic();this.Zm=ic();this.D=a;this.version=0===this.D.getParameter(this.D.VERSION).indexOf("WebGL 2")?2:1;this.Zq()}function k(a,e,b){this.D=a;this.wj=
e;this.name=b;this.bd=a.getAttribLocation(e,"aPos");this.yf=a.getAttribLocation(e,"aTex");this.yr=a.getUniformLocation(e,"matP");this.pl=a.getUniformLocation(e,"matMV");this.uh=a.getUniformLocation(e,"opacity");this.co=a.getUniformLocation(e,"colorFill");this.Ar=a.getUniformLocation(e,"samplerFront");this.Vi=a.getUniformLocation(e,"samplerBack");this.pg=a.getUniformLocation(e,"destStart");this.ng=a.getUniformLocation(e,"destEnd");this.Xi=a.getUniformLocation(e,"seconds");this.fo=a.getUniformLocation(e,
"pixelWidth");this.eo=a.getUniformLocation(e,"pixelHeight");this.Ui=a.getUniformLocation(e,"layerScale");this.Ti=a.getUniformLocation(e,"layerAngle");this.Yi=a.getUniformLocation(e,"viewOrigin");this.Wi=a.getUniformLocation(e,"scrollPos");this.ey=!!(this.fo||this.eo||this.Xi||this.Vi||this.pg||this.ng||this.Ui||this.Ti||this.Yi||this.Wi);this.Jr=this.Kr=-999;this.sl=1;this.Fr=this.Er=0;this.Hr=this.Dr=this.Cr=1;this.Nr=this.Mr=this.Lr=this.Pr=this.Or=this.Gr=0;this.Wn=[];this.Ir=ic();this.uh&&a.uniform1f(this.uh,
1);this.co&&a.uniform4f(this.co,1,1,1,1);this.Ar&&a.uniform1i(this.Ar,0);this.Vi&&a.uniform1i(this.Vi,1);this.pg&&a.uniform2f(this.pg,0,0);this.ng&&a.uniform2f(this.ng,1,1);this.Ui&&a.uniform1f(this.Ui,1);this.Ti&&a.uniform1f(this.Ti,0);this.Yi&&a.uniform2f(this.Yi,0,0);this.Wi&&a.uniform2f(this.Wi,0,0);this.Xi&&a.uniform1f(this.Xi,0);this.$f=!1}function n(a,e){return a[0]===e[0]&&a[1]===e[1]&&a[2]===e[2]&&a[3]===e[3]&&a[4]===e[4]&&a[5]===e[5]&&a[6]===e[6]&&a[7]===e[7]&&a[8]===e[8]&&a[9]===e[9]&&
a[10]===e[10]&&a[11]===e[11]&&a[12]===e[12]&&a[13]===e[13]&&a[14]===e[14]&&a[15]===e[15]}function q(a,e){this.type=a;this.u=e;this.D=e.D;this.Qd=this.gc=this.qs=0;this.Z=this.kd=null;this.Zs=[]}var p=ic();f.prototype.Zq=function(){var a=this.D,e;this.rr=1;this.ig=this.vf=null;this.uk=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.Ja?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.sr=a.ONE;this.qr=a.ONE_MINUS_SRC_ALPHA;this.ym=new Float32Array(8E3*(this.Ja?3:2));this.mm=new Float32Array(16E3);this.Cs=new Float32Array(32E3);this.zo=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.zo);a.bufferData(a.ARRAY_BUFFER,this.Cs.byteLength,a.DYNAMIC_DRAW);this.Mj=Array(4);this.Dj=Array(4);for(e=0;4>e;e++)this.Mj[e]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Mj[e]),a.bufferData(a.ARRAY_BUFFER,this.ym.byteLength,a.DYNAMIC_DRAW),this.Dj[e]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Dj[e]),a.bufferData(a.ARRAY_BUFFER,this.mm.byteLength,a.DYNAMIC_DRAW);this.le=0;this.hy=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.hy);for(var b=new Uint16Array(12E3),d=e=0;12E3>e;)b[e++]=d,b[e++]=d+1,b[e++]=d+2,b[e++]=d,b[e++]=d+2,b[e++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,a.STATIC_DRAW);this.Ao=this.Mh=this.Qe=0;this.Ua=[];e=this.Ja?"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}";b=this.gi({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}"},e,"<default>");this.Ua.push(b);b=this.gi({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.Ua.push(b);b=this.gi({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},e,"<earlyz>");this.Ua.push(b);b=this.gi({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
e,"<fill>");this.Ua.push(b);for(var c in mc)mc.hasOwnProperty(c)&&this.Ua.push(this.gi(mc[c],e,c));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.cf=[];this.ie=0;this.Vb=!1;this.sq=this.Pi=-1;this.Og=null;this.nn=a.createFramebuffer();this.yk=this.Sl=null;this.fq=!1;this.Ja&&(this.yk=a.createRenderbuffer());this.Hf=hc([0,0,0]);this.Qr=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Qr&&(this.Qr=2048);this.vc(0)};k.prototype.jp=function(a){n(this.Ir,a)||(jc(a,this.Ir),this.D.uniformMatrix4fv(this.pl,
!1,a))};f.prototype.gi=function(a,e,b){var d=this.D,c=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(c,a.src);d.compileShader(c);if(!d.getShaderParameter(c,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(c),d.deleteShader(c),Error("error compiling fragment shader: "+a);var l=d.createShader(d.VERTEX_SHADER);d.shaderSource(l,e);d.compileShader(l);if(!d.getShaderParameter(l,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(l),d.deleteShader(c),d.deleteShader(l),Error("error compiling vertex shader: "+a);e=
d.createProgram();d.attachShader(e,c);d.attachShader(e,l);d.linkProgram(e);if(!d.getProgramParameter(e,d.LINK_STATUS))throw a=d.getProgramInfoLog(e),d.deleteShader(c),d.deleteShader(l),d.deleteProgram(e),Error("error linking shader program: "+a);d.useProgram(e);d.deleteShader(c);d.deleteShader(l);c=new k(d,e,b);c.ln=a.ln||0;c.mn=a.mn||0;c.rq=!!a.rq;c.zd=!!a.zd;c.cq=!!a.cq;c.aa=a.aa||[];a=0;for(l=c.aa.length;a<l;a++)c.aa[a][1]=d.getUniformLocation(e,c.aa[a][0]),c.Wn.push(0),d.uniform1f(c.aa[a][1],
0);return c};f.prototype.Dn=function(a){var e,b;e=0;for(b=this.Ua.length;e<b;e++)if(this.Ua[e].name===a)return e;return-1};f.prototype.Fs=function(a,e,b){var d=this.Rc,c=this.tl,l=[0,0,0,0,0,0,0,0];l[0]=d[0]*a+d[4]*e+d[12];l[1]=d[1]*a+d[5]*e+d[13];l[2]=d[2]*a+d[6]*e+d[14];l[3]=d[3]*a+d[7]*e+d[15];l[4]=c[0]*l[0]+c[4]*l[1]+c[8]*l[2]+c[12]*l[3];l[5]=c[1]*l[0]+c[5]*l[1]+c[9]*l[2]+c[13]*l[3];l[6]=c[2]*l[0]+c[6]*l[1]+c[10]*l[2]+c[14]*l[3];l[7]=-l[2];0!==l[7]&&(l[7]=1/l[7],l[4]*=l[7],l[5]*=l[7],l[6]*=l[7],
b[0]=(.5*l[4]+.5)*this.width,b[1]=(.5*l[5]+.5)*this.height)};f.prototype.zg=function(a,e,b){if(this.width!==a||this.height!==e||b){this.nf();b=this.D;this.width=a;this.height=e;b.viewport(0,0,a,e);lc(this.Rm,this.Br,this.xt,this.Rc);if(this.Ja){var d=-a/2;a=a/2;var c=e/2;e=-e/2;var l=this.Am,m=this.qp,g=this.tl;g||(g=ic());var f=a-d,k=e-c,h=m-l;g[0]=2/f;g[1]=0;g[2]=0;g[3]=0;g[4]=0;g[5]=2/k;g[6]=0;g[7]=0;g[8]=0;g[9]=0;g[10]=-2/h;g[11]=0;g[12]=-(d+a)/f;g[13]=-(e+c)/k;g[14]=-(m+l)/h;g[15]=1;this.Oj[0]=
1;this.Oj[1]=1}else e=a/e,d=this.Am,a=this.qp,g=this.tl,m=d*Math.tan(45*Math.PI/360),e*=m,c=-e,l=-m,g||(g=ic()),f=e-c,k=m-l,h=a-d,g[0]=2*d/f,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=2*d/k,g[6]=0,g[7]=0,g[8]=(e+c)/f,g[9]=(m+l)/k,g[10]=-(a+d)/h,g[11]=-1,g[12]=0,g[13]=0,g[14]=-(a*d*2)/h,g[15]=0,d=[0,0],a=[0,0],this.Fs(0,0,d),this.Fs(1,1,a),this.Oj[0]=1/(a[0]-d[0]),this.Oj[1]=-1/(a[1]-d[1]);d=0;for(a=this.Ua.length;d<a;d++)c=this.Ua[d],c.$f=!1,c.yr&&(b.useProgram(c.wj),b.uniformMatrix4fv(c.yr,!1,this.tl));b.useProgram(this.Ua[this.Pi].wj);
b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);this.ig=this.vf=null;this.yk&&(b.bindFramebuffer(b.FRAMEBUFFER,this.nn),b.bindRenderbuffer(b.RENDERBUFFER,this.yk),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.fq||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.yk),this.fq=!0),b.bindRenderbuffer(b.RENDERBUFFER,null),b.bindFramebuffer(b.FRAMEBUFFER,null),
this.Sl=null)}};f.prototype.fd=function(){lc(this.Rm,this.Br,this.xt,this.Rc);kc(this.Rc,this.Oj)};f.prototype.translate=function(a,e){if(0!==a||0!==e){this.Hf[0]=a;this.Hf[1]=e;this.Hf[2]=0;var b=this.Rc,d=this.Hf,c=d[0],l=d[1],d=d[2];b[12]=b[0]*c+b[4]*l+b[8]*d+b[12];b[13]=b[1]*c+b[5]*l+b[9]*d+b[13];b[14]=b[2]*c+b[6]*l+b[10]*d+b[14];b[15]=b[3]*c+b[7]*l+b[11]*d+b[15]}};f.prototype.scale=function(a,e){if(1!==a||1!==e)this.Hf[0]=a,this.Hf[1]=e,this.Hf[2]=1,kc(this.Rc,this.Hf)};f.prototype.Ul=function(a){if(0!==
a){var e=this.Rc,b,d=Math.sin(a);a=Math.cos(a);var c=e[0],l=e[1],m=e[2],g=e[3],f=e[4],k=e[5],h=e[6],t=e[7];b?e!==b&&(b[8]=e[8],b[9]=e[9],b[10]=e[10],b[11]=e[11],b[12]=e[12],b[13]=e[13],b[14]=e[14],b[15]=e[15]):b=e;b[0]=c*a+f*d;b[1]=l*a+k*d;b[2]=m*a+h*d;b[3]=g*a+t*d;b[4]=c*-d+f*a;b[5]=l*-d+k*a;b[6]=m*-d+h*a;b[7]=g*-d+t*a}};f.prototype.Wc=function(){if(!n(this.Xn,this.Rc)){var a=this.Gc();a.type=5;a.Z?jc(this.Rc,a.Z):a.Z=ic(this.Rc);jc(this.Rc,this.Xn);this.Vb=!1}};f.prototype.Zl=function(a){this.Ja&&
(32760<a&&(a=32760),this.$m=this.Rm[2]-this.Am-a*this.Rz)};q.prototype.xw=function(){var a=this.D,e=this.u;0!==this.gc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,e.nn),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),e.$k=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),e.$k=!1)};q.prototype.Bw=function(){this.D.bindTexture(this.D.TEXTURE_2D,
this.kd)};q.prototype.Cw=function(){var a=this.D;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.kd);a.activeTexture(a.TEXTURE0)};q.prototype.yw=function(){var a=this.qs,e=this.u;e.uk=a;e=e.Og;e.uh&&e.sl!==a&&(e.sl=a,this.D.uniform1f(e.uh,a))};q.prototype.rw=function(){this.D.drawElements(this.D.TRIANGLES,this.Qd,this.D.UNSIGNED_SHORT,this.gc)};q.prototype.uw=function(){this.D.blendFunc(this.gc,this.Qd)};q.prototype.Ew=function(){var a,e,b,d=this.u.Ua,c=this.u.sq;a=0;for(e=d.length;a<
e;a++)b=d[a],a===c&&b.pl?(b.jp(this.Z),b.$f=!0):b.$f=!1;jc(this.Z,this.u.Zm)};q.prototype.sw=function(){var a=this.D,e=this.u;this.kd?(e.ig===this.kd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),e.ig=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,e.nn),e.$k||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.kd,0)):(e.Ja||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};
q.prototype.ow=function(){var a=this.D,e=this.gc;0===e?(a.clearColor(this.Z[0],this.Z[1],this.Z[2],this.Z[3]),a.clear(a.COLOR_BUFFER_BIT)):1===e?(a.enable(a.SCISSOR_TEST),a.scissor(this.Z[0],this.Z[1],this.Z[2],this.Z[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};q.prototype.ww=function(){var a=this.D;0!==this.gc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};q.prototype.qw=function(){var a=this.D,e=this.u;e.Ja&&a.disable(a.DEPTH_TEST);
var b=e.Ua[1];a.useProgram(b.wj);!b.$f&&b.pl&&(b.jp(e.Zm),b.$f=!0);a.enableVertexAttribArray(b.bd);a.bindBuffer(a.ARRAY_BUFFER,e.zo);a.vertexAttribPointer(b.bd,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.gc/4,this.Qd);b=e.Og;a.useProgram(b.wj);0<=b.bd&&(a.enableVertexAttribArray(b.bd),a.bindBuffer(a.ARRAY_BUFFER,e.Mj[e.le]),a.vertexAttribPointer(b.bd,e.Ja?3:2,a.FLOAT,!1,0,0));0<=b.yf&&(a.enableVertexAttribArray(b.yf),a.bindBuffer(a.ARRAY_BUFFER,e.Dj[e.le]),a.vertexAttribPointer(b.yf,2,a.FLOAT,!1,
0,0));e.Ja&&a.enable(a.DEPTH_TEST)};q.prototype.zw=function(){var a=this.D,e=this.u,b=e.Ua[this.gc];e.sq=this.gc;e.Og=b;a.useProgram(b.wj);!b.$f&&b.pl&&(b.jp(e.Zm),b.$f=!0);b.uh&&b.sl!==e.uk&&(b.sl=e.uk,a.uniform1f(b.uh,e.uk));0<=b.bd&&(a.enableVertexAttribArray(b.bd),a.bindBuffer(a.ARRAY_BUFFER,e.Mj[e.le]),a.vertexAttribPointer(b.bd,e.Ja?3:2,a.FLOAT,!1,0,0));0<=b.yf&&(a.enableVertexAttribArray(b.yf),a.bindBuffer(a.ARRAY_BUFFER,e.Dj[e.le]),a.vertexAttribPointer(b.yf,2,a.FLOAT,!1,0,0))};q.prototype.vw=
function(){var a=this.Z;this.D.uniform4f(this.u.Og.co,a[0],a[1],a[2],a[3])};q.prototype.Aw=function(){var a,e,b=this.u.Og,d=this.D;a=this.Z;b.Vi&&this.u.ig!==this.kd&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.kd),this.u.ig=this.kd,d.activeTexture(d.TEXTURE0));var c=a[0];b.fo&&c!==b.Kr&&(b.Kr=c,d.uniform1f(b.fo,c));c=a[1];b.eo&&c!==b.Jr&&(b.Jr=c,d.uniform1f(b.eo,c));c=a[2];e=a[3];!b.pg||c===b.Er&&e===b.Fr||(b.Er=c,b.Fr=e,d.uniform2f(b.pg,c,e));c=a[4];e=a[5];!b.ng||c===b.Cr&&e===
b.Dr||(b.Cr=c,b.Dr=e,d.uniform2f(b.ng,c,e));c=a[6];b.Ui&&c!==b.Hr&&(b.Hr=c,d.uniform1f(b.Ui,c));c=a[7];b.Ti&&c!==b.Gr&&(b.Gr=c,d.uniform1f(b.Ti,c));c=a[8];e=a[9];!b.Yi||c===b.Or&&e===b.Pr||(b.Or=c,b.Pr=e,d.uniform2f(b.Yi,c,e));c=a[10];e=a[11];!b.Wi||c===b.Lr&&e===b.Mr||(b.Lr=c,b.Mr=e,d.uniform2f(b.Wi,c,e));c=a[12];b.Xi&&c!==b.Nr&&(b.Nr=c,d.uniform1f(b.Xi,c));if(b.aa.length)for(a=0,e=b.aa.length;a<e;a++)c=this.Zs[a],c!==b.Wn[a]&&(b.Wn[a]=c,d.uniform1f(b.aa[a][1],c))};f.prototype.Gc=function(){this.ie===
this.cf.length&&this.cf.push(new q(0,this));return this.cf[this.ie++]};f.prototype.nf=function(){if(0!==this.ie&&!this.D.isContextLost()){var a=this.D;0<this.Ao&&(a.bindBuffer(a.ARRAY_BUFFER,this.zo),a.bufferSubData(a.ARRAY_BUFFER,0,this.Cs.subarray(0,this.Ao)),e&&0<=e.bd&&"<point>"===e.name&&a.vertexAttribPointer(e.bd,4,a.FLOAT,!1,0,0));if(0<this.Qe){var e=this.Og;a.bindBuffer(a.ARRAY_BUFFER,this.Mj[this.le]);a.bufferSubData(a.ARRAY_BUFFER,0,this.ym.subarray(0,this.Qe));e&&0<=e.bd&&"<point>"!==e.name&&
a.vertexAttribPointer(e.bd,this.Ja?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Dj[this.le]);a.bufferSubData(a.ARRAY_BUFFER,0,this.mm.subarray(0,this.Mh));e&&0<=e.yf&&"<point>"!==e.name&&a.vertexAttribPointer(e.yf,2,a.FLOAT,!1,0,0)}for(var b,a=0,e=this.ie;a<e;a++)switch(b=this.cf[a],b.type){case 1:b.rw();break;case 2:b.Bw();break;case 3:b.yw();break;case 4:b.uw();break;case 5:b.Ew();break;case 6:b.sw();break;case 7:b.ow();break;case 8:b.qw();break;case 9:b.zw();break;case 10:b.Aw();break;
case 11:b.Cw();break;case 12:b.vw();break;case 13:b.ww();break;case 14:b.xw()}this.Ao=this.Mh=this.Qe=this.ie=0;this.$k=this.Vb=!1;this.le++;4<=this.le&&(this.le=0)}};f.prototype.Ff=function(a){if(a!==this.rr&&!this.Ei){var e=this.Gc();e.type=3;this.rr=e.qs=a;this.Vb=!1}};f.prototype.tc=function(a){if(a!==this.vf){var e=this.Gc();e.type=2;this.vf=e.kd=a;this.Vb=!1}};f.prototype.Ef=function(a,e){if((a!==this.sr||e!==this.qr)&&!this.Ei){var b=this.Gc();b.type=4;b.gc=a;b.Qd=e;this.sr=a;this.qr=e;this.Vb=
!1}};f.prototype.Os=function(){this.Ef(this.D.ONE,this.D.ONE_MINUS_SRC_ALPHA)};f.prototype.nj=function(a,e,b,d,c,l,m,g){15992<=this.Qe&&this.nf();var f=this.Qe,k=this.Mh,h=this.ym,t=this.mm,p=this.$m;if(this.Vb)this.cf[this.ie-1].Qd+=6;else{var r=this.Gc();r.type=1;r.gc=this.Ja?f:f/2*3;r.Qd=6;this.Vb=!0}this.Ja?(h[f++]=a,h[f++]=e,h[f++]=p,h[f++]=b,h[f++]=d,h[f++]=p,h[f++]=c,h[f++]=l,h[f++]=p,h[f++]=m,h[f++]=g,h[f++]=p):(h[f++]=a,h[f++]=e,h[f++]=b,h[f++]=d,h[f++]=c,h[f++]=l,h[f++]=m,h[f++]=g);t[k++]=
0;t[k++]=0;t[k++]=1;t[k++]=0;t[k++]=1;t[k++]=1;t[k++]=0;t[k++]=1;this.Qe=f;this.Mh=k};f.prototype.Cd=function(a,e,b,d,c,l,m,g,f){15992<=this.Qe&&this.nf();var k=this.Qe,h=this.Mh,t=this.ym,p=this.mm,r=this.$m;if(this.Vb)this.cf[this.ie-1].Qd+=6;else{var w=this.Gc();w.type=1;w.gc=this.Ja?k:k/2*3;w.Qd=6;this.Vb=!0}var w=f.left,E=f.top,n=f.right;f=f.bottom;this.Ja?(t[k++]=a,t[k++]=e,t[k++]=r,t[k++]=b,t[k++]=d,t[k++]=r,t[k++]=c,t[k++]=l,t[k++]=r,t[k++]=m,t[k++]=g,t[k++]=r):(t[k++]=a,t[k++]=e,t[k++]=b,
t[k++]=d,t[k++]=c,t[k++]=l,t[k++]=m,t[k++]=g);p[h++]=w;p[h++]=E;p[h++]=n;p[h++]=E;p[h++]=n;p[h++]=f;p[h++]=w;p[h++]=f;this.Qe=k;this.Mh=h};f.prototype.vc=function(a){if(this.Pi!==a){if(!this.Ua[a]){if(0===this.Pi)return;a=0}var e=this.Gc();e.type=9;this.Pi=e.gc=a;this.Vb=!1}};f.prototype.kj=function(a){a=this.Ua[a];return!(!a.pg&&!a.ng)};f.prototype.Do=function(a){a=this.Ua[a];return!!(a.pg||a.ng||a.rq)};f.prototype.Co=function(a){return this.Ua[a].zd};f.prototype.az=function(a){a=this.Ua[a];return 0!==
a.ln||0!==a.mn};f.prototype.Lx=function(a){return this.Ua[a].ln};f.prototype.Mx=function(a){return this.Ua[a].mn};f.prototype.Nx=function(a,e){return this.Ua[a].aa[e][2]};f.prototype.Nl=function(a){return this.Ua[a].cq};f.prototype.Ih=function(a,e,b,d,c,l,m,g,f,k,h,t,p,r,w){var E=this.Ua[this.Pi],n,q;if(E.ey||w.length){n=this.Gc();n.type=10;n.Z?jc(this.Rc,n.Z):n.Z=ic();q=n.Z;q[0]=e;q[1]=b;q[2]=d;q[3]=c;q[4]=l;q[5]=m;q[6]=g;q[7]=f;q[8]=k;q[9]=h;q[10]=t;q[11]=p;q[12]=r;E.Vi?n.kd=a:n.kd=null;if(w.length)for(b=
n.Zs,b.length=w.length,a=0,e=w.length;a<e;a++)b[a]=w[a];this.Vb=!1}};f.prototype.clear=function(a,e,b,d){var c=this.Gc();c.type=7;c.gc=0;c.Z||(c.Z=ic());c.Z[0]=a;c.Z[1]=e;c.Z[2]=b;c.Z[3]=d;this.Vb=!1};f.prototype.clearRect=function(a,e,b,d){if(!(0>b||0>d)){var c=this.Gc();c.type=7;c.gc=1;c.Z||(c.Z=ic());c.Z[0]=a;c.Z[1]=e;c.Z[2]=b;c.Z[3]=d;this.Vb=!1}};f.prototype.Ss=function(a){if(this.Ja&&(a=!!a,this.Ei!==a)){var e=this.Gc();e.type=14;e.gc=a?1:0;this.Vb=!1;this.Ei=a;this.Sl=null;this.Ei?this.vc(2):
this.vc(0)}};f.prototype.Qs=function(a){if(this.Ja){var e=this.Gc();e.type=13;e.gc=a?1:0;this.Vb=!1}};f.prototype.Jq=function(){jc(this.Xn,p);this.fd();this.Wc();var a=this.width/2,e=this.height/2;this.nj(-a,e,a,e,a,-e,-a,-e);jc(p,this.Rc);this.Wc()};f.prototype.Ps=function(a,e,b){this.vc(3);var d=this.Gc();d.type=12;d.Z||(d.Z=ic());d.Z[0]=a;d.Z[1]=e;d.Z[2]=b;d.Z[3]=1;this.Vb=!1};f.prototype.yz=function(){this.vc(0)};f.prototype.iz=function(){this.vc(2)};f.prototype.$y=function(){this.nf();this.D.flush()};
var r=[],g={};f.prototype.ew=function(){A(r);g={}};f.prototype.sh=function(a,e,b,d){e=!!e;b=!!b;var c=a.src+","+e+","+b+(e?",undefined":""),l=null;if("undefined"!==typeof a.src&&g.hasOwnProperty(c))return l=g[c],l.ik++,l;this.nf();var m=this.D,f=ka(a.width)&&ka(a.height),l=m.createTexture();m.bindTexture(m.TEXTURE_2D,l);m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var k=m.RGBA,p=m.RGBA,h=m.UNSIGNED_BYTE;if(d&&!this.xe)switch(d){case 1:p=k=m.RGB;break;case 2:h=m.UNSIGNED_SHORT_4_4_4_4;break;
case 3:h=m.UNSIGNED_SHORT_5_5_5_1;break;case 4:p=k=m.RGB,h=m.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!f&&e){d=document.createElement("canvas");d.width=la(a.width);d.height=la(a.height);var t=d.getContext("2d");"undefined"!==typeof t.imageSmoothingEnabled?t.imageSmoothingEnabled=b:(t.webkitImageSmoothingEnabled=b,t.mozImageSmoothingEnabled=b,t.msImageSmoothingEnabled=b);t.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);m.texImage2D(m.TEXTURE_2D,0,k,p,h,d)}else m.texImage2D(m.TEXTURE_2D,0,
k,p,h,a);e?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.REPEAT),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.REPEAT)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.CLAMP_TO_EDGE),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.CLAMP_TO_EDGE));b?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.LINEAR),(f||2<=this.version)&&this.Aq?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR_MIPMAP_LINEAR),m.generateMipmap(m.TEXTURE_2D)):m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,
m.LINEAR)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.NEAREST),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.NEAREST));m.bindTexture(m.TEXTURE_2D,null);this.vf=null;l.Nf=a.width;l.Mf=a.height;l.ik=1;l.jq=c;r.push(l);return g[c]=l};f.prototype.Kc=function(a,e,b,d){this.nf();var c=this.D;this.xe&&(d=!1);var l=c.createTexture();c.bindTexture(c.TEXTURE_2D,l);c.texImage2D(c.TEXTURE_2D,0,c.RGBA,a,e,0,c.RGBA,d?c.UNSIGNED_SHORT_4_4_4_4:c.UNSIGNED_BYTE,null);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,
c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,b?c.LINEAR:c.NEAREST);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,b?c.LINEAR:c.NEAREST);c.bindTexture(c.TEXTURE_2D,null);this.vf=null;l.Nf=a;l.Mf=e;r.push(l);return l};f.prototype.Pz=function(a,e,b){this.nf();var d=this.D;this.xe&&(b=!1);d.bindTexture(d.TEXTURE_2D,e);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,
b?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(c){console&&console.error&&console.error("Error updating WebGL texture: ",c)}d.bindTexture(d.TEXTURE_2D,null);this.vf=null};f.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.ik&&1<a.ik?a.ik--:(this.nf(),a===this.vf&&(this.D.bindTexture(this.D.TEXTURE_2D,null),this.vf=null),a===this.ig&&(this.D.activeTexture(this.D.TEXTURE1),this.D.bindTexture(this.D.TEXTURE_2D,null),this.D.activeTexture(this.D.TEXTURE0),this.ig=null),Ea(r,a),"undefined"!==
typeof a.jq&&delete g[a.jq],this.D.deleteTexture(a)))};f.prototype.gd=function(a){if(a!==this.Sl){var e=this.Gc();e.type=6;this.Sl=e.kd=a;this.Vb=!1}};lb=f})();
(function(){function f(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var d=this;this.Pc=(this.al=/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.Kb=!!a.dc;this.gr="undefined"!==typeof window.AppMobi||
this.Kb;this.ad=!!window.c2cocoonjs;this.wd=!!window.c2ejecta;this.ad&&(CocoonJS.App.onSuspended.addEventListener(function(){d.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){d.setSuspended(!1)}));this.wd&&(document.addEventListener("pagehide",function(){d.setSuspended(!0)}),document.addEventListener("pageshow",function(){d.setSuspended(!1)}),document.addEventListener("resize",function(){d.setSize(window.innerWidth,window.innerHeight)}));this.Za=this.Kb||this.ad||this.wd;this.Gi=
/edge\//i.test(navigator.userAgent);this.xe=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Gi;this.jr=/tizen/i.test(navigator.userAgent);this.Di=/android/i.test(navigator.userAgent)&&!this.jr&&!this.xe&&!this.Gi;this.nr=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.xe&&!this.Gi;this.wy=/ipad/i.test(navigator.userAgent);this.ih=this.nr||this.wy||this.wd;this.On=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.xe&&!this.Gi;this.fr=/amazonwebappplatform/i.test(navigator.userAgent);this.ny=/firefox/i.test(navigator.userAgent);this.ry=/safari/i.test(navigator.userAgent)&&!this.On&&!this.xe&&!this.Gi;this.ty=/windows/i.test(navigator.userAgent);this.bl="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.lr=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.vy=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.tf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Tn=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.dl=!!window.cr_windows10;this.kr=this.lr||this.vy||this.Tn||this.dl;this.ly=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Zk=this.Di&&!this.On&&!this.al&&!this.ny&&!this.fr&&!this.Za;this.devicePixelRatio=
1;this.sf=this.Pc||this.al||this.gr||this.ad||this.Di||this.ih||this.tf||this.Tn||this.ly||this.jr||this.wd;this.sf||(this.sf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Ji=!!(this.ih&&this.Pc&&window.webkit);"undefined"===typeof cr_is_preview||this.bl||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.bl=!0);this.canvas=a;this.lq=document.getElementById("c2canvasdiv");
this.u=this.D=null;this.En="(unavailable)";this.Ja=!1;this.Tf=0;this.Oa=null;this.Ik=!1;this.ds=this.es=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Kb&&(window.c2runtime=this);this.bl&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();
return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.Zk&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.N=this.width;this.M=this.height;this.sk=this.width;this.ji=this.height;this.ph=window.innerWidth;this.oh=window.innerHeight;this.ba=!0;this.Hi=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.C=[];this.Ra=[];this.rh={};this.yd=[];this.kn={};
this.pe=[];this.Sh=[];this.tm=[];this.Rv=[];this.Sv=[];this.pr=this.ht=null;this.Pf={};this.Qn=this.qf=!1;this.xd=0;this.Pn=this.Sn=!1;this.td=[];this.Fi=!1;this.ll=this.No="";this.wb=null;this.ye="";this.Bj=this.ct=!1;this.Hk=[];this.Sf=this.Rf=0;this.Vr=30;this.Xm=this.Zi=0;this.Cg=1;this.sb=new bb;this.Re=new bb;this.zl=this.Ok=this.ni=this.be=this.kg=this.rn=this.gl=0;this.je=null;this.Ak=[];this.jn=[];this.Ck=-1;this.ho=[[]];this.ep=this.ql=0;this.Pl(null);this.pi=this.Zr=this.cj=0;this.Cj=[];
this.bp=this.Fo=-1;this.fg=!0;this.ol=0;this.cl=!1;this.Az=0;this.Ig=null;this.Qc=this.Uq=!1;this.cs=new ca;this.oo=new ca;this.po=new ca;this.xg=[];this.Ed=new db([]);this.Zo=new db([]);this.Ze=[];this.xi={};this.hf={};this.Ye={};this.Rh={};this.gq={};this.xr=this.kl=this.hb=this.tb=this.ur=this.jl=this.ua=null;this.Ph=this.Un=!1;this.sn=[null,null];this.Wg=0;this.pn="";this.Be={};this.zj=this.wf=null;this.et="";this.yl=[];this.hz()}}function k(a,d){return 128>=d?a[3]:256>=d?a[2]:512>=d?a[1]:a[0]}
function n(){try{return!!window.indexedDB}catch(a){return!1}}function q(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function p(a,d,h,c){try{var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=q;e.onerror=c;e.onsuccess=function(e){e=e.target.result;e.onerror=c;e.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=h}}catch(m){c(m)}}function r(a,d,h){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=q;c.onerror=h;c.onsuccess=function(c){c=
c.target.result;c.onerror=h;var e=c.transaction(["saves"]).objectStore("saves").get(a);e.onsuccess=function(){e.result?d(e.result.data):d(null)}}}catch(e){h(e)}}function g(){ea("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var d,h={};for(d in a)!a.hasOwnProperty(d)||a[d]instanceof ca||a[d]&&"undefined"!==typeof a[d].IA||"spriteCreatedDestroyCallback"!==
d&&(h[d]=a[d]);return h}var e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.hz=function(){var a=this;if(this.Ji)this.Gq("data.js",function(d){a.Si(JSON.parse(d))},function(){alert("Error fetching data.js")});else{var d;this.tf?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;var h="data.js";if(this.lr||this.tf||this.Tn||this.dl)h="data.json";d.open("GET",h,!0);
var c=!1;if(!this.Za&&"response"in d&&"responseType"in d)try{d.responseType="json",c="json"===d.responseType}catch(e){c=!1}if(!c&&"responseType"in d)try{d.responseType="text"}catch(m){}if("overrideMimeType"in d)try{d.overrideMimeType("application/json; charset=utf-8")}catch(l){}this.tf?d.onreadystatechange=function(){4===d.readyState&&a.Si(JSON.parse(d.responseText))}:(d.onload=function(){if(c)a.Si(d.response);else if(a.wd){var h=d.responseText,h=h.substr(h.indexOf("{"));a.Si(JSON.parse(h))}else a.Si(JSON.parse(d.responseText))},
d.onerror=function(a){fa("Error requesting "+h+":");fa(a)});d.send()}};f.prototype.iy=function(){var a=this,d,h,c,e,m,l,b,g,f;this.eg=(!this.Za||this.wd||this.Pc)&&this.Mz&&!this.Zk;0===this.mc&&this.ih&&(this.eg=!1);this.devicePixelRatio=this.eg?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Pb();0<this.mc&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(d){d.preventDefault();
a.Iy();ea("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.u.Zq();a.u.zg(a.u.width,a.u.height,!0);a.tb=null;a.hb=null;a.sn[0]=null;a.sn[1]=null;a.Jy();a.ba=!0;ea("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Mw&&(this.ad||this.wd||!this.Za)&&(d={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.Di||(this.D=this.canvas.getContext("webgl2",
d)),this.D||(this.D=this.canvas.getContext("webgl",d)||this.canvas.getContext("experimental-webgl",d)))}catch(t){}if(this.D){if(d=this.D.getExtension("WEBGL_debug_renderer_info"))this.En=this.D.getParameter(d.UNMASKED_RENDERER_WEBGL)+" ["+this.D.getParameter(d.UNMASKED_VENDOR_WEBGL)+"]";this.Ja&&(this.En+=" [front-to-back enabled]");this.Za||(this.Mb=document.createElement("canvas"),jQuery(this.Mb).appendTo(this.canvas.parentNode),this.Mb.oncontextmenu=function(){return!1},this.Mb.onselectstart=function(){return!1},
this.Mb.width=Math.round(this.sk*this.devicePixelRatio),this.Mb.height=Math.round(this.ji*this.devicePixelRatio),jQuery(this.Mb).css({width:this.sk+"px",height:this.ji+"px"}),this.Ds(),this.wo=this.Mb.getContext("2d"));this.u=new lb(this.D,this.sf,this.Ja);this.u.zg(this.canvas.width,this.canvas.height);this.u.Aq=0!==this.Fw;this.Oa=null;d=0;for(h=this.C.length;d<h;d++)for(m=this.C[d],c=0,e=m.U.length;c<e;c++)b=m.U[c],b.lb=this.u.Dn(b.id),b.zd=this.u.Co(b.lb),this.Ph=this.Ph||this.u.kj(b.lb);d=0;
for(h=this.yd.length;d<h;d++){g=this.yd[d];c=0;for(e=g.U.length;c<e;c++)b=g.U[c],b.lb=this.u.Dn(b.id),b.zd=this.u.Co(b.lb);g.Gd();c=0;for(e=g.W.length;c<e;c++){f=g.W[c];m=0;for(l=f.U.length;m<l;m++)b=f.U[m],b.lb=this.u.Dn(b.id),b.zd=this.u.Co(b.lb),this.Ph=this.Ph||this.u.kj(b.lb);f.Gd()}}}else{if(0<this.mc&&this.Kb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Oa=AppMobi.canvas.getContext("2d");try{this.Oa.samplingMode=this.Ka?"smooth":
"sharp",this.Oa.globalScale=1,this.Oa.HTML5CompatibilityMode=!0,this.Oa.imageSmoothingEnabled=this.Ka}catch(w){}0!==this.width&&0!==this.height&&(this.Oa.width=this.width,this.Oa.height=this.height)}this.Oa||(this.ad?(d={antialias:!!this.Ka,alpha:!0},this.Oa=this.canvas.getContext("2d",d)):(d={alpha:!0},this.Oa=this.canvas.getContext("2d",d)),this.Yl(this.Oa,this.Ka));this.wo=this.Mb=null}this.nt=function(d){a.ab(!1,d)};window==window.top||this.Za||this.kr||this.tf||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.ad&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ea("Reloading for continuous preview"),this.ll="__c2_continuouspreview",this.Bj=!0),this.Sy&&!this.sf&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var d=window.parent;d&&d.document.hasFocus()||a.setSuspended(!0)})));
window.addEventListener("blur",function(){a.ug()});this.Za||(d=function(a){if(kb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(d){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",d):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",d):document.addEventListener("touchstart",d),document.addEventListener("mousedown",d));0===this.mc&&
this.eg&&1<this.devicePixelRatio&&this.setSize(this.yb,this.xb,!0);this.tt();this.ay();this.go();this.J={}};f.prototype.setSize=function(a,d,h){var c=0,e=0,m=0,l=0,l=0;if(this.ph!==a||this.oh!==d||h){this.ph=a;this.oh=d;var b=this.mc;if((m=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.cl)&&!this.Pc)||0!==this.mc||h)m&&(b=this.Wg),h=this.devicePixelRatio,4<=b?(m=this.yb/this.xb,a/d>m?(m*=d,5===b?(l=m*h/this.yb,1<l?l=Math.floor(l):1>
l&&(l=1/Math.ceil(1/l)),m=this.yb*l/h,l=this.xb*l/h,c=(a-m)/2,e=(d-l)/2,a=m,d=l):(c=(a-m)/2,a=m)):(l=a/m,5===b?(l=l*h/this.xb,1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),m=this.yb*l/h,l=this.xb*l/h,c=(a-m)/2,e=(d-l)/2,a=m):e=(d-l)/2,d=l)):m&&0===b&&(c=Math.floor((a-this.yb)/2),e=Math.floor((d-this.xb)/2),a=this.yb,d=this.xb),2>b&&(this.ci=h),this.sk=Math.round(a),this.ji=Math.round(d),this.width=Math.round(a*h),this.height=Math.round(d*h),this.ba=!0,this.Gt?(this.N=this.width,this.M=this.height,
this.Mc=!0):this.width<this.yb&&this.height<this.xb||1===b?(this.N=this.width,this.M=this.height,this.Mc=!0):(this.N=this.yb,this.M=this.xb,this.Mc=!1,2===b?(m=this.yb/this.xb,b=this.ph/this.oh,b<m?this.N=this.M*b:b>m&&(this.M=this.N/b)):3===b&&(m=this.yb/this.xb,b=this.ph/this.oh,b>m?this.N=this.M*b:b<m&&(this.M=this.N/b))),this.lq&&!this.Za&&(jQuery(this.lq).css({width:Math.round(a)+"px",height:Math.round(d)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(e)+"px"}),"undefined"!==typeof cr_is_preview&&
jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(d)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*h),this.canvas.height=Math.round(d*h),this.wd?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(e)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px"):this.eg&&!this.Za&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px")),this.Mb&&(this.Mb.width=Math.round(a*h),this.Mb.height=
Math.round(d*h),this.Mb.style.width=this.sk+"px",this.Mb.style.height=this.ji+"px"),this.u&&this.u.zg(Math.round(a*h),Math.round(d*h)),this.Kb&&this.Oa&&(this.Oa.width=Math.round(a),this.Oa.height=Math.round(d)),this.Oa&&this.Yl(this.Oa,this.Ka),this.tt(),this.nr&&!this.Pc&&window.scrollTo(0,0)}};f.prototype.tt=function(){if(this.Vv&&0!==this.vo){var a="portrait";2===this.vo&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?
screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(d){console&&console.warn&&console.warn("Failed to lock orientation: ",d)}}};f.prototype.Iy=function(){this.u.ew();this.Un=!0;var a,d,h;a=0;for(d=this.C.length;a<d;a++)h=this.C[a],h.hj&&h.hj()};f.prototype.Jy=function(){this.Un=!1;var a,d,h;a=0;for(d=this.C.length;a<d;a++)h=this.C[a],h.Bl&&h.Bl()};f.prototype.Ds=
function(){if(!this.Za){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.cl)&&!this.Pc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Mb).css(a)}};var b=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;f.prototype.setSuspended=function(a){var d;if(a&&!this.Hi)for(ea("[Construct 2] Suspending"),
this.Hi=!0,-1!==this.Fo&&b&&b(this.Fo),-1!==this.bp&&clearTimeout(this.bp),a=0,d=this.Cj.length;a<d;a++)this.Cj[a](!0);else if(!a&&this.Hi){ea("[Construct 2] Resuming");this.Hi=!1;this.gl=Wa();this.kg=Wa();a=this.Zi=this.Ok=0;for(d=this.Cj.length;a<d;a++)this.Cj[a](!1);this.ab(!1)}};f.prototype.aq=function(a){this.Cj.push(a)};f.prototype.Ve=function(a){return this.yl[a]};f.prototype.Si=function(a){a&&a.project||fa("Project model unavailable");a=a.project;this.name=a[0];this.Iq=a[1];this.mc=a[12];
this.yb=a[10];this.xb=a[11];this.ys=this.yb/2;this.zs=this.xb/2;this.Za&&!this.wd&&(4<=a[12]||0===a[12])&&(ea("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.mc=3);this.lp=a[18];this.xf=a[19];if(0===this.xf){var d=new Image;d.crossOrigin="anonymous";this.Us(d,"loading-logo.png");this.wf={rl:d}}else if(4===this.xf){d=new Image;d.src="";var h=new Image;h.src="";var c=new Image;c.src="";var e=new Image;e.src="";var m=new Image;
m.src="";var l=new Image;l.src="";var b=new Image;b.src="";var g=new Image;g.src="";var f=new Image;f.src="";var t=new Image;t.src="";var w=new Image;w.src="";var y=new Image;y.src="";this.wf={rl:[d,h,c,e],Xy:[m,l,b,g],Qz:[f,t,w,y]}}this.cj=a[21];this.yl=nc();this.$d=new T(this);d=0;for(h=a[2].length;d<h;d++)b=a[2][d],c=this.Ve(b[0]),mb(b,c.prototype),g=new c(this),g.gm=b[1],g.uf=b[2],g.OA=b[5],g.Wr=b[9],g.H&&g.H(),this.plugins.push(g);this.yl=nc();d=0;for(h=a[3].length;d<h;d++){b=a[3][d];m=this.Ve(b[1]);
g=null;c=0;for(e=this.plugins.length;c<e;c++)if(this.plugins[c]instanceof m){g=this.plugins[c];break}f=new g.Y(g);f.name=b[0];f.I=b[2];f.Nn=b[3].slice(0);f.Oz=b[3].length;f.Wv=b[4];f.Ax=b[5];f.ja=b[11];f.I?(f.rg=[],f.qe=this.pi++,f.Pa=null):(f.rg=null,f.qe=-1,f.Pa=[]);f.Fk=null;f.Ug=null;f.Bq=null;f.oc=!1;f.zc=null;b[6]?(f.nm=b[6][0],f.$o=b[6][1],f.Ej=b[6][2]):(f.nm=null,f.$o=0,f.Ej=0);b[7]?f.yc=b[7]:f.yc=null;f.index=d;f.j=[];f.wk=[];f.Je=[new nb(f)];f.Ld=0;f.Zc=null;f.jw=0;f.Lh=!0;f.vm=ob;f.Pq=
pb;f.Jx=sb;f.ea=tb;f.mj=ub;f.Ol=vb;f.vg=wb;f.Qk=xb;f.un=yb;f.yn=zb;f.Ic=Ab;f.zn=Bb;f.pk=new eb(this.yb,this.xb);f.ck=!0;f.dk=!1;f.J={};f.toString=Cb;f.Ra=[];c=0;for(e=b[8].length;c<e;c++){t=b[8][c];w=this.Ve(t[1]);y=null;m=0;for(l=this.Ra.length;m<l;m++)if(this.Ra[m]instanceof w){y=this.Ra[m];break}y||(y=new w(this),y.xl=[],y.wl=new ca,y.H&&y.H(),this.Ra.push(y),oc&&y instanceof oc&&(this.ht=y),fc.yy&&y instanceof fc.yy&&(this.pr=y));-1===y.xl.indexOf(f)&&y.xl.push(f);m=new y.Y(y,f);m.name=t[0];m.ja=
t[2];m.H();f.Ra.push(m)}f.global=b[9];f.Rn=b[10];f.U=[];c=0;for(e=b[12].length;c<e;c++)f.U.push({id:b[12][c][0],name:b[12][c][1],lb:-1,zd:!1,Qb:!0,index:c});f.eB=b[13];this.lp&&!f.I&&!f.Rn&&g.uf||f.H();f.name&&(this.types[f.name]=f);this.C.push(f);g.gm&&(c=new g.T(f),c.uid=this.cj++,c.Hs=this.Zr++,c.bg=0,c.vi=Db,c.toString=Eb,c.A=b[14],c.H(),f.j.push(c),this.Be[c.uid.toString()]=c)}d=0;for(h=a[4].length;d<h;d++)for(m=a[4][d],l=this.C[m[0]],c=1,e=m.length;c<e;c++)b=this.C[m[c]],b.Pa.push(l),l.rg.push(b);
d=0;for(h=a[28].length;d<h;d++){m=a[28][d];l=[];c=0;for(e=m.length;c<e;c++)l.push(this.C[m[c]]);c=0;for(e=l.length;c<e;c++)l[c].oc=!0,l[c].zc=l}if(0<this.pi)for(d=0,h=this.C.length;d<h;d++)if(b=this.C[d],!b.I&&b.Pa.length){b.Fk=Array(this.pi);b.Ug=Array(this.pi);b.Bq=Array(this.pi);f=[];c=y=w=t=0;for(e=b.Pa.length;c<e;c++)for(g=b.Pa[c],b.Fk[g.qe]=t,t+=g.Oz,b.Ug[g.qe]=w,w+=g.Wv,b.Bq[g.qe]=y,y+=g.Ax,m=0,l=g.U.length;m<l;m++)f.push(xa({},g.U[m]));b.U=f.concat(b.U);c=0;for(e=b.U.length;c<e;c++)b.U[c].index=
c}d=0;for(h=a[5].length;d<h;d++)b=a[5][d],c=new Fb(this,b),this.rh[c.name]=c,this.yd.push(c);d=0;for(h=a[6].length;d<h;d++)b=a[6][d],c=new Gb(this,b),this.kn[c.name]=c,this.pe.push(c);d=0;for(h=this.pe.length;d<h;d++)this.pe[d].$a();d=0;for(h=this.pe.length;d<h;d++)this.pe[d].ip();d=0;for(h=this.tm.length;d<h;d++)this.tm[d].$a();A(this.tm);this.Uv=a[7];this.pn=a[8];this.Tc=a[9];this.ci=1;this.Mw=a[13];this.Ka=a[14];this.nq=a[15];this.Mz=a[17];this.vo=a[20];this.Vv=0<this.vo;this.Sy=a[22];this.Mc=
this.Gt=a[23];this.Fw=a[24];this.Yy=a[25];this.Ja=a[27]&&!this.xe;this.hm=Date.now();A(this.yl);this.iy()};var d=!1,c=0,l=[];f.prototype.dz=function(a,d){function h(){c--;e.Rr()}var e=this;a.addEventListener("load",h);a.addEventListener("error",h);l.push([a,d]);this.Rr()};f.prototype.Rr=function(){for(var a;l.length&&100>c;)c++,a=l.shift(),this.Us(a[0],a[1])};f.prototype.np=function(a,h){a.cocoonLazyLoad=!0;a.onerror=function(h){d=a.iq=!0;console&&console.error&&console.error("Error loading image '"+
a.src+"': ",h)};this.wd?a.src=h:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(h,function(d){a.src=d},function(c){d=a.iq=!0;console&&console.error&&console.error("Error extracting image '"+h+"' from expansion file: ",c)}):(a.crossOrigin="anonymous",this.dz(a,h)));this.Sh.push(a)};f.prototype.yx=function(a){var d,h;d=0;for(h=this.Sh.length;d<h;d++)if(this.Sh[d].fw===a)return this.Sh[d];return null};var m=0,y=!1;f.prototype.ay=function(){this.Ig&&(m=this.Ig.wz(this.Uv))};f.prototype.dq=function(){var a=
m,d=0,h=0,c=!0,e,b,h=0;for(e=this.Sh.length;h<e;h++){b=this.Sh[h];var l=b.qq;if(!l||0>=l)l=5E4;a+=l;b.src&&(b.complete||b.loaded)&&!b.iq?d+=l:c=!1}c&&this.Yy&&this.Ig&&(y||(this.Ig.Bz(),y=!0),h=this.Ig.Kx(),d+=h,h<m&&(c=!1));this.qc=0==a?1:d/a;return c};var K=!1;f.prototype.go=function(){if(this.Oa||this.u){var a=this.Oa||this.wo;this.Mb&&this.Ds();var h=window.innerWidth,c=window.innerHeight;this.ph===h&&this.oh===c||this.setSize(h,c);this.qc=0;this.tr=-1;var m=this;if(this.dq()&&(4!==this.xf||K))this.by();
else{c=Date.now()-this.hm;if(a){var b=this.width,l=this.height,h=this.devicePixelRatio;if(3>this.xf&&(this.ad||500<=c&&this.tr!=this.qc)){a.clearRect(0,0,b,l);var c=b/2,l=l/2,b=0===this.xf&&this.wf.rl.complete,g=40*h,f=0,t=80*h,w;if(b){var y=this.wf.rl,t=y.width*h;w=y.height*h;g=t/2;f=w/2;a.drawImage(y,ra(c-g),ra(l-f),t,w)}1>=this.xf?(c=ra(c-g)+.5,l=ra(l+(f+(b?12*h:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(c,l,Math.floor(t*this.qc),6*h),a.strokeStyle="black",a.strokeRect(c,l,t,6*h),a.strokeStyle=
"white",a.strokeRect(c-1*h,l-1*h,t+2*h,8*h)):2===this.xf&&(a.font=this.wd?"12pt ArialMT":"12pt Arial",a.fillStyle=d?"#f00":"#999",a.dB="middle",h=Math.round(100*this.qc)+"%",b=a.measureText?a.measureText(h):null,a.fillText(h,c-(b?b.width:0)/2,l));this.tr=this.qc}else if(4===this.xf){this.Kw(a);e?e(function(){m.go()}):setTimeout(function(){m.go()},16);return}}setTimeout(function(){m.go()},this.ad?10:100)}}};var F=-1,h="undefined"===typeof cr_is_preview?200:0,t=!0,Q=!1,M=0,w=0,E="undefined"===typeof cr_is_preview?
3E3:0,v=null,x=null,G=0;f.prototype.Kw=function(a){if(!K){for(var c=Math.ceil(this.width),e=Math.ceil(this.height),m=this.wf.rl,b=this.wf.Xy,l=this.wf.Qz,g=0;4>g;++g)if(!m[g].complete||!b[g].complete||!l[g].complete)return;0===G&&(F=Date.now());var g=Date.now(),f=!1,y=a,p,r;t||Q?(a.clearRect(0,0,c,e),v&&v.width===c&&v.height===e||(v=document.createElement("canvas"),v.width=c,v.height=e,x=v.getContext("2d")),y=x,f=!0,t&&1===G&&(F=Date.now())):a.globalAlpha=1;y.fillStyle="#333333";y.fillRect(0,0,c,
e);256<this.ji?(p=Fa(.22*e,105,.6*c),r=.25*p,y.drawImage(k(b,p),.5*c-p/2,.2*e-r/2,p,r),r=p=Math.min(.395*e,.95*c),y.drawImage(k(m,p),.5*c-p/2,.485*e-r/2,p,r),p=Fa(.22*e,105,.6*c),r=.25*p,y.drawImage(k(l,p),.5*c-p/2,.868*e-r/2,p,r),y.fillStyle="#3C3C3C",p=c,r=Math.max(.005*e,2),y.fillRect(0,.8*e-r/2,p,r),y.fillStyle=d?"red":"#E0FF65",p=c*this.qc,y.fillRect(.5*c-p/2,.8*e-r/2,p,r)):(r=p=.55*e,y.drawImage(k(m,p),.5*c-p/2,.45*e-r/2,p,r),y.fillStyle="#3C3C3C",p=c,r=Math.max(.005*e,2),y.fillRect(0,.85*e-
r/2,p,r),y.fillStyle=d?"red":"#E0FF65",p=c*this.qc,y.fillRect(.5*c-p/2,.85*e-r/2,p,r));f&&(t?a.globalAlpha=0===G?0:Math.min((g-F)/300,1):Q&&(a.globalAlpha=Math.max(1-(g-w)/300,0)),a.drawImage(v,0,0,c,e));t&&300<=g-F&&2<=G&&(t=!1,M=g);!t&&g-M>=E&&!Q&&1<=this.qc&&(Q=!0,w=g);if(Q&&g-w>=300+h||"undefined"!==typeof cr_is_preview&&1<=this.qc&&500>Date.now()-F)K=!0,Q=t=!1,this.wf=x=v=null;++G}};f.prototype.by=function(){this.Mb&&(this.canvas.parentNode.removeChild(this.Mb),this.Mb=this.wo=null);this.hm=
Date.now();this.kg=Wa();var a,d,h;if(this.lp)for(a=0,d=this.C.length;a<d;a++)h=this.C[a],h.I||h.Rn||!h.ta.uf||h.H();else this.fg=!1;a=0;for(d=this.yd.length;a<d;a++)this.yd[a].gw();2<=this.mc&&(a=this.yb/this.xb,d=this.width/this.height,this.ci=2!==this.mc&&d>a||2===this.mc&&d<a?this.height/this.xb:this.width/this.yb);this.Iq?this.rh[this.Iq].Xo():this.yd[0].Xo();this.lp||(this.ol=1,this.trigger(T.prototype.e.Fp,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();a=0;for(d=this.C.length;a<d;a++)h=this.C[a],h.gs&&h.gs();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.ab(!1);this.Kb&&AppMobi.webview.execute("onGameReady();")};f.prototype.ab=function(a,d,h){if(this.ua){var c=Wa();if(h||!this.Hi||a){a||(e?this.Fo=e(this.nt):this.bp=setTimeout(this.nt,this.sf?1:16));d=d||c;var m=this.mc;((h=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.Pc)||this.cl)&&0<this.Wg&&(m=this.Wg);if(0<m){var m=window.innerWidth,b=window.innerHeight;this.ph===m&&this.oh===b||this.setSize(m,b)}this.Za||(h?this.Ik||(this.Ik=!0):this.Ik?(this.Ik=!1,0===this.mc&&this.setSize(Math.round(this.es/this.devicePixelRatio),Math.round(this.ds/this.devicePixelRatio),!0)):(this.es=this.width,this.ds=this.height));this.fg&&(h=this.dq(),this.ol=this.qc,h&&(this.fg=!1,this.qc=1,this.trigger(T.prototype.e.Fp,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Cy(d);
!this.ba&&!this.ad||this.Un||this.Bj||a||(this.ba=!1,this.u?this.lc():this.ud(),this.zj&&(this.canvas&&this.canvas.toDataURL&&(this.et=this.canvas.toDataURL(this.zj[0],this.zj[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.et),this.trigger(T.prototype.e.Cu,null)),this.zj=null));this.MA||(this.be++,this.ni++,this.Ok++);this.Zi+=Wa()-c}}};f.prototype.Cy=function(a){var d,h,c,e,m,b,l,g;1E3<=a-this.kg&&(this.kg+=1E3,1E3<=a-this.kg&&(this.kg=a),this.rn=this.Ok,this.Ok=0,this.Xm=this.Zi,this.Zi=0);
d=0;0!==this.gl&&(d=a-this.gl,0>d&&(d=0),this.Sf=d/=1E3,.5<this.Sf?this.Sf=0:this.Sf>1/this.Vr&&(this.Sf=1/this.Vr));this.gl=a;this.Rf=this.Sf*this.Cg;this.sb.add(this.Rf);this.Re.add(d);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.cl)&&!this.Pc;2<=this.mc||a&&0<this.Wg?(d=this.yb/this.xb,h=this.width/this.height,c=this.mc,a&&0<this.Wg&&(c=this.Wg),this.ci=2!==c&&h>d||2===c&&h<d?this.height/this.xb:this.width/this.yb,this.ua&&(this.ua.Oo(this.ua.scrollX),
this.ua.Po(this.ua.scrollY))):this.ci=this.eg?this.devicePixelRatio:1;this.Pb();this.xd++;this.$d.mz();this.xd--;this.Pb();this.xd++;h=this.cs.Pe();a=0;for(d=h.length;a<d;a++)h[a].XA();a=0;for(d=this.C.length;a<d;a++)if(b=this.C[a],!b.I&&(b.Ra.length||b.Pa.length))for(h=0,c=b.j.length;h<c;h++)for(l=b.j[h],e=0,m=l.O.length;e<m;e++)l.O[e].ab();a=0;for(d=this.C.length;a<d;a++)if(b=this.C[a],!b.I&&(b.Ra.length||b.Pa.length))for(h=0,c=b.j.length;h<c;h++)for(l=b.j[h],e=0,m=l.O.length;e<m;e++)g=l.O[e],g.Es&&
g.Es();h=this.oo.Pe();a=0;for(d=h.length;a<d;a++)h[a].ab();this.xd--;this.cy();for(a=0;this.je&&10>a++;)this.xq(this.je);a=0;for(d=this.pe.length;a<d;a++)this.pe[a].Hn=!1;this.ua.Uf&&this.ua.Uf.jb();A(this.xg);this.xd++;a=0;for(d=this.C.length;a<d;a++)if(b=this.C[a],!b.I&&(b.Ra.length||b.Pa.length))for(h=0,c=b.j.length;h<c;h++)for(l=b.j[h],e=0,m=l.O.length;e<m;e++)g=l.O[e],g.Fj&&g.Fj();h=this.po.Pe();a=0;for(d=h.length;a<d;a++)h[a].Fj();this.xd--};f.prototype.ug=function(){var a,d,h,c,e,m,b,l,g;a=
0;for(d=this.C.length;a<d;a++)if(b=this.C[a],!b.I)for(h=0,c=b.j.length;h<c;h++)if(l=b.j[h],l.ug&&l.ug(),l.O)for(e=0,m=l.O.length;e<m;e++)g=l.O[e],g.ug&&g.ug()};f.prototype.xq=function(a){var d=this.ua;this.ua.Cz();var h,c,e;if(this.u)for(h=0,c=this.C.length;h<c;h++)e=this.C[h],e.I||!e.um||e.global&&0!==e.j.length||-1!==a.Bi.indexOf(e)||e.um();d==a&&A(this.$d.wc);A(this.xg);this.Ms(!0);a.Xo();this.Ms(!1);this.ba=!0;this.Pb()};f.prototype.Ms=function(a){var d,h,c,e,m,b,l,g,f;d=0;for(h=this.Ra.length;d<
h;d++)c=this.Ra[d],a?c.ej&&c.ej():c.gj&&c.gj();d=0;for(h=this.C.length;d<h;d++)if(c=this.C[d],c.global||c.ta.gm)for(e=0,m=c.j.length;e<m;e++)if(b=c.j[e],a?b.ej&&b.ej():b.gj&&b.gj(),b.O)for(l=0,g=b.O.length;l<g;l++)f=b.O[l],a?f.ej&&f.ej():f.gj&&f.gj()};f.prototype.Gj=function(a){this.oo.add(a)};f.prototype.Ez=function(a){this.po.add(a)};f.prototype.ri=function(a){return a&&-1!==a.bj?this.Sf*a.bj:this.Rf};f.prototype.ud=function(){this.ua.ud(this.Oa);this.Kb&&this.Oa.present()};f.prototype.lc=function(){this.Ja&&
(this.Tf=1,this.ua.Qf(this.u));this.ua.lc(this.u);this.u.$y()};f.prototype.ak=function(a){a&&this.Ak.push(a)};f.prototype.Ls=function(a){Ea(this.Ak,a)};f.prototype.Yf=function(a){a=a.toString();return this.Be.hasOwnProperty(a)?this.Be[a]:null};var H=[];f.prototype.Ue=function(a){var d,h;d=a.type.name;var c=null;if(this.Pf.hasOwnProperty(d)){if(c=this.Pf[d],c.contains(a))return}else c=H.length?H.pop():new ca,this.Pf[d]=c;c.add(a);this.qf=!0;if(a.oc)for(d=0,h=a.siblings.length;d<h;d++)this.Ue(a.siblings[d]);
this.Qn&&c.Qh.push(a);this.Pn||(this.xd++,this.trigger(Object.getPrototypeOf(a.type.ta).e.Eu,a),this.xd--)};f.prototype.Pb=function(){if(this.qf){var a,d,h,c,e,m;this.Qn=!0;h=0;for(e=this.td.length;h<e;++h)for(a=this.td[h],d=a.type,d.j.push(a),c=0,m=d.Pa.length;c<m;++c)d.Pa[c].j.push(a),d.Pa[c].Lh=!0;A(this.td);this.ru();Va(this.Pf);this.qf=this.Qn=!1}};f.prototype.ru=function(){for(var a in this.Pf)this.Pf.hasOwnProperty(a)&&this.Mt(this.Pf[a])};f.prototype.Mt=function(a){var d=a.Pe(),h=d[0].type,
c,e,m,b,l,g;Xa(h.j,a);h.Lh=!0;0===h.j.length&&(h.dk=!1);c=0;for(e=h.Pa.length;c<e;++c)g=h.Pa[c],Xa(g.j,a),g.Lh=!0;c=0;for(e=this.$d.wc.length;c<e;++c)if(l=this.$d.wc[c],l.fc.hasOwnProperty(h.index)&&Xa(l.fc[h.index].ve,a),!h.I)for(m=0,b=h.Pa.length;m<b;++m)g=h.Pa[m],l.fc.hasOwnProperty(g.index)&&Xa(l.fc[g.index].ve,a);if(l=d[0].k){if(l.Xc)for(m=l.j,c=0,e=m.length;c<e;++c)b=m[c],a.contains(b)&&(b.Ba(),l.Ob.update(b,b.rc,null),b.rc.set(0,0,-1,-1));Xa(l.j,a);l.tj(0)}for(c=0;c<d.length;++c)this.Lt(d[c],
h);a.clear();H.push(a);this.ba=!0};f.prototype.Lt=function(a,d){var h,c,e;h=0;for(c=this.Ak.length;h<c;++h)this.Ak[h](a);a.jf&&d.pk.update(a,a.jf,null);(h=a.k)&&h.Gh(a,!0);if(a.O)for(h=0,c=a.O.length;h<c;++h)e=a.O[h],e.Ce&&e.Ce(),e.behavior.wl.remove(a);this.cs.remove(a);this.oo.remove(a);this.po.remove(a);a.Ce&&a.Ce();this.Be.hasOwnProperty(a.uid.toString())&&delete this.Be[a.uid.toString()];this.zl--;100>d.wk.length&&d.wk.push(a)};f.prototype.Ym=function(a,d,h,c){if(a.I){var e=ra(Math.random()*
a.rg.length);return this.Ym(a.rg[e],d,h,c)}return a.Zc?this.kf(a.Zc,d,!1,h,c,!1):null};var U=[];f.prototype.kf=function(a,d,h,c,e,m){var b,l,g,f;if(!a)return null;var t=this.C[a[1]],y=t.ta.uf;if(this.fg&&y&&!t.Rn||y&&!this.u&&11===a[0][11])return null;var w=d;y||(d=null);var k;t.wk.length?(k=t.wk.pop(),k.ec=!0,t.ta.T.call(k,t)):(k=new t.ta.T(t),k.ec=!1);!h||m||this.Be.hasOwnProperty(a[2].toString())?k.uid=this.cj++:k.uid=a[2];this.Be[k.uid.toString()]=k;k.Hs=this.Zr++;k.bg=t.j.length;b=0;for(l=this.td.length;b<
l;++b)this.td[b].type===t&&k.bg++;k.vi=Db;k.toString=Eb;g=a[3];if(k.ec)Va(k.J);else{k.J={};if("undefined"!==typeof cr_is_preview)for(k.cr=[],k.cr.length=g.length,b=0,l=g.length;b<l;b++)k.cr[b]=g[b][1];k.rb=[];k.rb.length=g.length}b=0;for(l=g.length;b<l;b++)k.rb[b]=g[b][0];if(y){var p=a[0];k.x=ga(c)?p[0]:c;k.y=ga(e)?p[1]:e;k.z=p[2];k.width=p[3];k.height=p[4];k.depth=p[5];k.n=p[6];k.opacity=p[7];k.$b=p[8];k.ac=p[9];k.Rb=p[10];b=p[11];!this.u&&t.U.length&&(k.Rb=b);k.fi=gb(k.Rb);this.D&&hb(k,k.Rb,this.D);
if(k.ec){b=0;for(l=p[12].length;b<l;b++)for(g=0,f=p[12][b].length;g<f;g++)k.Sa[b][g]=p[12][b][g];k.Na.set(0,0,0,0);k.jf.set(0,0,-1,-1);k.rc.set(0,0,-1,-1);k.Sb.uj(k.Na);A(k.Qm)}else{k.Sa=p[12].slice(0);b=0;for(l=k.Sa.length;b<l;b++)k.Sa[b]=p[12][b].slice(0);k.ra=[];k.Xe=[];k.Xe.length=t.U.length;k.Na=new va(0,0,0,0);k.jf=new va(0,0,-1,-1);k.rc=new va(0,0,-1,-1);k.Sb=new wa;k.Qm=[];k.F=Kb;k.FA=Lb;k.Tb=Mb;k.Ba=Nb;k.Lz=Ob;k.Ct=Pb;k.Pd=Qb}k.Nh=!1;k.Hz=0;k.Gz=0;k.Fz=null;14===p.length&&(k.Nh=!0,k.Hz=p[13][0],
k.Gz=p[13][1],k.Fz=p[13][2]);b=0;for(l=t.U.length;b<l;b++)k.Xe[b]=!0;k.He=!0;k.Gd=Rb;k.Gd();k.Dt=!!k.ra.length;k.Pm=!0;k.Sm=!0;t.ck=!0;k.visible=!0;k.bj=-1;k.k=d;k.Hd=d.j.length;k.Tf=0;"undefined"===typeof k.ya&&(k.ya=null);this.ba=k.ke=!0}var K;A(U);b=0;for(l=t.Pa.length;b<l;b++)U.push.apply(U,t.Pa[b].Ra);U.push.apply(U,t.Ra);if(k.ec)for(b=0,l=U.length;b<l;b++){var r=U[b];K=k.O[b];K.ec=!0;r.behavior.T.call(K,r,k);p=a[4][b];g=0;for(f=p.length;g<f;g++)K.A[g]=p[g];K.H();r.behavior.wl.add(k)}else for(k.O=
[],b=0,l=U.length;b<l;b++)r=U[b],K=new r.behavior.T(r,k),K.ec=!1,K.A=a[4][b].slice(0),K.H(),k.O.push(K),r.behavior.wl.add(k);p=a[5];if(k.ec)for(b=0,l=p.length;b<l;b++)k.A[b]=p[b];else k.A=p.slice(0);this.td.push(k);this.qf=!0;d&&(d.bi(k,!0),1!==d.dd||1!==d.ed)&&(t.dk=!0);this.zl++;if(t.oc){if(k.oc=!0,k.ec?A(k.siblings):k.siblings=[],!h&&!m){b=0;for(l=t.zc.length;b<l;b++)if(t.zc[b]!==t){if(!t.zc[b].Zc)return null;k.siblings.push(this.kf(t.zc[b].Zc,w,!1,y?k.x:c,y?k.y:e,!0))}b=0;for(l=k.siblings.length;b<
l;b++)for(k.siblings[b].siblings.push(k),g=0;g<l;g++)b!==g&&k.siblings[b].siblings.push(k.siblings[g])}}else k.oc=!1,k.siblings=null;k.H();b=0;for(l=k.O.length;b<l;b++)k.O[b].Wy&&k.O[b].Wy();return k};f.prototype.An=function(a){var d,h;d=0;for(h=this.ua.W.length;d<h;d++){var c=this.ua.W[d];if(jb(c.name,a))return c}return null};f.prototype.si=function(a){a=ra(a);0>a&&(a=0);a>=this.ua.W.length&&(a=this.ua.W.length-1);return this.ua.W[a]};f.prototype.Vm=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].ea().wa=
!0};f.prototype.mj=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].mj()};f.prototype.Ol=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].Ol()};f.prototype.vg=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].vg()};f.prototype.zt=function(a){if(a.ck){var d,h,c=a.j;d=0;for(h=c.length;d<h;++d)c[d].Ct();c=this.td;d=0;for(h=c.length;d<h;++d)c[d].type===a&&c[d].Ct();a.ck=!1}};f.prototype.wn=function(a,d,h,c){var e,b,m=a?1!==a.dd||1!==a.ed:!1;if(d.I)for(a=0,e=d.rg.length;a<e;++a)b=d.rg[a],m||b.dk?
Ba(c,b.j):(this.zt(b),b.pk.Rl(h,c));else m||d.dk?Ba(c,d.j):(this.zt(d),d.pk.Rl(h,c))};f.prototype.Sq=function(a,d,h,c){var e,b;e=0;for(b=d.length;e<b;++e)this.wn(a,d[e],h,c)};f.prototype.Ox=function(a,d,h){var c=this.ht;c&&this.Sq(a,c.xl,d,h)};f.prototype.Hx=function(a,d,h){var c=this.pr;c&&this.Sq(a,c.xl,d,h)};f.prototype.lm=function(a,d,h){var c=a.ea(),e,b,m,l,g=this.pb().Zb.Sc,f,t,k;if(c.wa)for(c.wa=!1,A(c.j),e=0,l=a.j.length;e<l;e++)m=a.j[e],m.Ba(),f=m.k.Gb(d,h,!0),t=m.k.Gb(d,h,!1),m.Tb(f,t)?
c.j.push(m):g&&c.ca.push(m);else{b=0;k=g?c.ca:c.j;e=0;for(l=k.length;e<l;e++)m=k[e],m.Ba(),f=m.k.Gb(d,h,!0),t=m.k.Gb(d,h,!1),m.Tb(f,t)&&(g?c.j.push(m):(c.j[b]=c.j[e],b++));k.length=b}a.Ic();return c.Gn()};f.prototype.hc=function(a,d){if(!(a&&d&&a!==d&&a.ke&&d.ke))return!1;a.Ba();d.Ba();var h=a.k,c=d.k,e,b,m,l,g,f,t,k;if(h===c||h.dd===c.dd&&c.ed===c.ed&&h.scale===c.scale&&h.n===c.n&&h.Id===c.Id){if(!a.Na.jy(d.Na)||!a.Sb.dr(d.Sb)||a.Nh&&d.Nh)return!1;if(a.Nh)return this.lt(a,d);if(d.Nh)return this.lt(d,
a);t=a.ya&&!a.ya.dh();e=d.ya&&!d.ya.dh();if(!t&&!e)return!0;t?(a.ya.Jg(a.width,a.height,a.n),t=a.ya):(this.Ed.Jh(a.Sb,a.x,a.y,a.width,a.height),t=this.Ed);e?(d.ya.Jg(d.width,d.height,d.n),k=d.ya):(this.Ed.Jh(d.Sb,d.x,d.y,d.width,d.height),k=this.Ed);return t.Ci(k,d.x-a.x,d.y-a.y)}t=a.ya&&!a.ya.dh();e=d.ya&&!d.ya.dh();t?(a.ya.Jg(a.width,a.height,a.n),this.Ed.Xs(a.ya)):this.Ed.Jh(a.Sb,a.x,a.y,a.width,a.height);t=this.Ed;e?(d.ya.Jg(d.width,d.height,d.n),this.Zo.Xs(d.ya)):this.Zo.Jh(d.Sb,d.x,d.y,d.width,
d.height);k=this.Zo;e=0;for(b=t.Ad;e<b;e++)m=2*e,l=m+1,g=t.Ab[m],f=t.Ab[l],t.Ab[m]=h.Qa(g+a.x,f+a.y,!0),t.Ab[l]=h.Qa(g+a.x,f+a.y,!1);t.Ba();e=0;for(b=k.Ad;e<b;e++)m=2*e,l=m+1,g=k.Ab[m],f=k.Ab[l],k.Ab[m]=c.Qa(g+d.x,f+d.y,!0),k.Ab[l]=c.Qa(g+d.x,f+d.y,!1);k.Ba();return t.Ci(k,0,0)};var O=new wa;new va(0,0,0,0);var L=[];f.prototype.lt=function(a,d){var h,c,e,b,m=d.Na,l=a.x,g=a.y;a.KA(m,L);var f=d.ya&&!d.ya.dh();h=0;for(c=L.length;h<c;++h)if(e=L[h],b=e.$A,m.ky(b,l,g)&&(O.uj(b),O.offset(l,g),O.dr(d.Sb)))if(f)if(d.ya.Jg(d.width,
d.height,d.n),e.Bo){if(e.Bo.Ci(d.ya,d.x-(l+b.left),d.y-(g+b.top)))return A(L),!0}else{if(this.Ed.Jh(O,0,0,b.right-b.left,b.bottom-b.top),this.Ed.Ci(d.ya,d.x,d.y))return A(L),!0}else if(e.Bo){if(this.Ed.Jh(d.Sb,0,0,d.width,d.height),e.Bo.Ci(this.Ed,-(l+b.left),-(g+b.top)))return A(L),!0}else return A(L),!0;A(L);return!1};f.prototype.fp=function(a,d){if(!d)return!1;var h,c,e,b,m;h=0;for(c=a.Ra.length;h<c;h++)if(a.Ra[h].behavior instanceof d)return!0;if(!a.I)for(h=0,c=a.Pa.length;h<c;h++)for(m=a.Pa[h],
e=0,b=m.Ra.length;e<b;e++)if(m.Ra[e].behavior instanceof d)return!0;return!1};f.prototype.gp=function(a){return this.fp(a,fc.jA)};f.prototype.hp=function(a){return this.fp(a,fc.kA)};var D=[];f.prototype.ic=function(a){var d,h,c;a.Ba();this.Ox(a.k,a.Na,D);d=0;for(h=D.length;d<h;++d)if(c=D[d],c.J.solidEnabled&&this.hc(a,c))return A(D),c;A(D);return null};var R=[];f.prototype.Ke=function(a,d){var h=null;d&&(h=R,A(h));a.Ba();this.Hx(a.k,a.Na,D);var c,e,b;c=0;for(e=D.length;c<e;++c)if(b=D[c],b.J.jumpthruEnabled&&
this.hc(a,b))if(d)h.push(b);else return A(D),b;A(D);return h};f.prototype.Bd=function(a,d,h,c,e,b){c=c||50;var m=a.x,l=a.y,g,f=null,t=null;for(g=0;g<c;g++)if(a.x=m+d*g,a.y=l+h*g,a.F(),!this.hc(a,f)&&((f=this.ic(a))&&(t=f),!f&&(e&&(b?f=this.hc(a,b)?b:null:f=this.Ke(a),f&&(t=f)),!f)))return t&&this.Ql(a,d,h,t),!0;a.x=m;a.y=l;a.F();return!1};f.prototype.Is=function(a,d,h,c){c=c||50;var e=a.x,b=a.y,m=null,l=null,g,f,t;for(g=0;g<c;++g)for(f=0;2>f;++f)if(t=2*f-1,a.x=e+d*g*t,a.y=b+h*g*t,a.F(),!this.hc(a,
m))if(m=this.ic(a))l=m;else return l&&this.Ql(a,d*t,h*t,l),!0;a.x=e;a.y=b;a.F();return!1};f.prototype.Ql=function(a,d,h,c){var e=2,b,m=!1;b=!1;for(var l=a.x,g=a.y;16>=e;)b=1/e,e*=2,a.x+=d*b*(m?1:-1),a.y+=h*b*(m?1:-1),a.F(),this.hc(a,c)?b=m=!0:(b=m=!1,l=a.x,g=a.y);b&&(a.x=l,a.y=g,a.F())};f.prototype.cz=function(a,d){var h=ga(d)?100:d,c=0,e=a.x,b=a.y,m=0,l=0,g=0,f=this.ic(a);if(!f)return!0;for(;c<=h;){switch(m){case 0:l=0;g=-1;c++;break;case 1:l=1;g=-1;break;case 2:l=1;g=0;break;case 3:g=l=1;break;
case 4:l=0;g=1;break;case 5:l=-1;g=1;break;case 6:l=-1;g=0;break;case 7:g=l=-1}m=(m+1)%8;a.x=ra(e+l*c);a.y=ra(b+g*c);a.F();if(!this.hc(a,f)&&(f=this.ic(a),!f))return!0}a.x=e;a.y=b;a.F();return!1};f.prototype.wg=function(a,d){a.ke&&d.ke&&this.xg.push([a,d])};f.prototype.Qv=function(a,d,h){var c,e,b;c=0;for(e=this.xg.length;c<e;++c){b=this.xg[c];if(b[0]===a)b=b[1];else if(b[1]===a)b=b[0];else continue;if(d.I){if(-1===d.rg.indexOf(d))continue}else if(b.type!==d)continue;-1===h.indexOf(b)&&h.push(b)}};
f.prototype.aw=function(a,d){var h,c,b;h=0;for(c=this.xg.length;h<c;h++)if(b=this.xg[h],b[0]===a&&b[1]===d||b[0]===d&&b[1]===a)return!0;return!1};var V=-1;f.prototype.trigger=function(a,d,h){if(!this.ua)return!1;var c=this.ua.Uf;if(!c)return!1;var b=!1,e,m,l;V++;var g=c.cn;m=0;for(l=g.length;m<l;++m)e=this.pt(a,d,g[m],h),b=b||e;e=this.pt(a,d,c,h);V--;return b||e};f.prototype.pt=function(a,d,h,c){var b=!1,e,m,l,g;if(d)for(l=this.dp(a,d,d.type.name,h,c),b=b||l,g=d.type.Pa,e=0,m=g.length;e<m;++e)l=this.dp(a,
d,g[e].name,h,c),b=b||l;else l=this.dp(a,d,"system",h,c),b=b||l;return b};f.prototype.dp=function(a,d,h,c,b){var e,m=!1,l=!1,l="undefined"!==typeof b,g=(l?c.Dq:c.qt)[h];if(!g)return m;var f=null;c=0;for(e=g.length;c<e;++c)if(g[c].method==a){f=g[c].mi;break}if(!f)return m;var t;l?t=f[b]:t=f;if(!t)return null;c=0;for(e=t.length;c<e;c++)a=t[c][0],b=t[c][1],l=this.wx(d,h,a,b),m=m||l;return m};f.prototype.wx=function(a,d,h,c){var b,e,m=!1;this.ep++;var l=this.pb().Zb;l&&this.mj(l.Gf);var g=1<this.ep;this.mj(h.Gf);
g&&this.bz();var f=this.Pl(h);f.Zb=h;a&&(b=this.types[d].ea(),b.wa=!1,A(b.j),b.j[0]=a,this.types[d].Ic());a=!0;if(h.parent){d=f.kt;for(b=h.parent;b;)d.push(b),b=b.parent;d.reverse();b=0;for(e=d.length;b<e;b++)if(!d[b].oz()){a=!1;break}}a&&(this.ni++,h.Sc?h.nz(c):h.jb(),m=m||f.jg);this.Jl();g&&this.Vy();this.vg(h.Gf);l&&this.vg(l.Gf);this.qf&&0===this.xd&&0===V&&!this.Sn&&this.Pb();this.ep--;return m};f.prototype.Rk=function(){var a=this.pb();return a.Zb.Bb[a.mb]};f.prototype.my=function(){return 0===
this.pb().mb};f.prototype.bz=function(){this.ql++;this.ql>=this.ho.length&&this.ho.push([])};f.prototype.Vy=function(){this.ql--};f.prototype.Mq=function(){return this.ho[this.ql]};f.prototype.Pl=function(a){this.Ck++;this.Ck>=this.jn.length&&this.jn.push(new Sb);var d=this.pb();d.reset(a);return d};f.prototype.Jl=function(){this.Ck--};f.prototype.pb=function(){return this.jn[this.Ck]};f.prototype.Oq=function(a,d){for(var h,c,b,e,m,l;d;){h=0;for(c=d.jd.length;h<c;h++)if(l=d.jd[h],l instanceof Tb&&
jb(a,l.name))return l;d=d.parent}h=0;for(c=this.pe.length;h<c;h++)for(m=this.pe[h],b=0,e=m.of.length;b<e;b++)if(l=m.of[b],l instanceof Tb&&jb(a,l.name))return l;return null};f.prototype.Qq=function(a){var d,h;d=0;for(h=this.yd.length;d<h;d++)if(this.yd[d].ja===a)return this.yd[d];return null};f.prototype.Uk=function(a){var d,h;d=0;for(h=this.C.length;d<h;d++)if(this.C[d].ja===a)return this.C[d];return null};f.prototype.Ex=function(a){var d,h;d=0;for(h=this.Ze.length;d<h;d++)if(this.Ze[d].ja===a)return this.Ze[d];
return null};f.prototype.mw=function(a,d){this.zj=[a,d];this.ba=!0};f.prototype.cy=function(){var a=this,d=this.No,h=this.ye,c=this.ll,b=!1;this.ct&&(b=!0,d="__c2_continuouspreview",this.ct=!1);if(d.length){this.Pb();h=this.sz();if(n()&&!this.ad)p(d,h,function(){ea("Saved state to IndexedDB storage ("+h.length+" bytes)");a.ye=h;a.trigger(T.prototype.e.Bm,null);a.ye="";b&&g()},function(c){try{localStorage.setItem("__c2save_"+d,h),ea("Saved state to WebStorage ("+h.length+" bytes)"),a.ye=h,a.trigger(T.prototype.e.Bm,
null),a.ye="",b&&g()}catch(e){ea("Failed to save game state: "+c+"; "+e),a.trigger(T.prototype.e.Kp,null)}});else try{localStorage.setItem("__c2save_"+d,h),ea("Saved state to WebStorage ("+h.length+" bytes)"),a.ye=h,this.trigger(T.prototype.e.Bm,null),a.ye="",b&&g()}catch(e){ea("Error saving to WebStorage: "+e),a.trigger(T.prototype.e.Kp,null)}this.ll=this.No="";this.wb=null}if(c.length){if(n()&&!this.ad)r(c,function(d){d?(a.wb=d,ea("Loaded state from IndexedDB storage ("+a.wb.length+" bytes)")):
(a.wb=localStorage.getItem("__c2save_"+c)||"",ea("Loaded state from WebStorage ("+a.wb.length+" bytes)"));a.Bj=!1;a.wb||(a.wb=null,a.trigger(T.prototype.e.Wj,null))},function(){a.wb=localStorage.getItem("__c2save_"+c)||"";ea("Loaded state from WebStorage ("+a.wb.length+" bytes)");a.Bj=!1;a.wb||(a.wb=null,a.trigger(T.prototype.e.Wj,null))});else{try{this.wb=localStorage.getItem("__c2save_"+c)||"",ea("Loaded state from WebStorage ("+this.wb.length+" bytes)")}catch(m){this.wb=null}this.Bj=!1;a.wb||(a.wb=
null,a.trigger(T.prototype.e.Wj,null))}this.No=this.ll=""}null!==this.wb&&(this.Pb(),this.By(this.wb)?(this.ye=this.wb,this.trigger(T.prototype.e.Qu,null),this.ye=""):a.trigger(T.prototype.e.Wj,null),this.wb=null)};f.prototype.sz=function(){var d,h,c,b,e,m,l,g={c2save:!0,version:1,rt:{time:this.sb.R,walltime:this.Re.R,timescale:this.Cg,tickcount:this.be,execcount:this.ni,next_uid:this.cj,running_layout:this.ua.ja,start_time_offset:Date.now()-this.hm},types:{},layouts:{},events:{groups:{},cnds:{},
acts:{},vars:{}}};d=0;for(h=this.C.length;d<h;d++)if(e=this.C[d],!e.I&&!this.gp(e)){m={instances:[]};Ua(e.J)&&(m.ex=a(e.J));c=0;for(b=e.j.length;c<b;c++)m.instances.push(this.Mo(e.j[c]));g.types[e.ja.toString()]=m}d=0;for(h=this.yd.length;d<h;d++)c=this.yd[d],g.layouts[c.ja.toString()]=c.kb();b=g.events.groups;d=0;for(h=this.Ze.length;d<h;d++)c=this.Ze[d],b[c.ja.toString()]=this.xi[c.wi].Zg;h=g.events.cnds;for(l in this.hf)this.hf.hasOwnProperty(l)&&(d=this.hf[l],Ua(d.J)&&(h[l]={ex:a(d.J)}));h=g.events.acts;
for(l in this.Ye)this.Ye.hasOwnProperty(l)&&(d=this.Ye[l],Ua(d.J)&&(h[l]={ex:a(d.J)}));h=g.events.vars;for(l in this.Rh)this.Rh.hasOwnProperty(l)&&(d=this.Rh[l],d.el||d.parent&&!d.Li||(h[l]=d.data));g.system=this.$d.kb();return JSON.stringify(g)};f.prototype.Ks=function(){var a,d,h,c,b,e;this.Be={};a=0;for(d=this.C.length;a<d;a++)if(h=this.C[a],!h.I)for(c=0,b=h.j.length;c<b;c++)e=h.j[c],this.Be[e.uid.toString()]=e};f.prototype.By=function(a){var d;try{d=JSON.parse(a)}catch(h){return!1}if(!d.c2save||
1<d.version)return!1;this.Fi=!0;a=d.rt;this.sb.reset();this.sb.R=a.time;this.Re.reset();this.Re.R=a.walltime||0;this.Cg=a.timescale;this.be=a.tickcount;this.ni=a.execcount;this.hm=Date.now()-a.start_time_offset;var c=a.running_layout;if(c!==this.ua.ja)if(c=this.Qq(c))this.xq(c);else return;var b,e,m,l,g,f,t;f=d.types;for(e in f)if(f.hasOwnProperty(e)&&(l=this.Uk(parseInt(e,10)))&&!l.I&&!this.gp(l)){f[e].ex?l.J=f[e].ex:Va(l.J);g=l.j;m=f[e].instances;c=0;for(b=pa(g.length,m.length);c<b;c++)this.ml(g[c],
m[c]);c=m.length;for(b=g.length;c<b;c++)this.Ue(g[c]);c=g.length;for(b=m.length;c<b;c++){g=null;if(l.ta.uf&&(g=this.ua.Tk(m[c].w.l),!g))continue;g=this.kf(l.Zc,g,!1,0,0,!0);this.ml(g,m[c])}l.Lh=!0}this.Pb();this.Ks();b=d.layouts;for(e in b)b.hasOwnProperty(e)&&(c=this.Qq(parseInt(e,10)))&&c.Db(b[e]);b=d.events.groups;for(e in b)b.hasOwnProperty(e)&&(c=this.Ex(parseInt(e,10)))&&this.xi[c.wi]&&this.xi[c.wi].Ts(b[e]);c=d.events.cnds;for(e in this.hf)this.hf.hasOwnProperty(e)&&(c.hasOwnProperty(e)?this.hf[e].J=
c[e].ex:this.hf[e].J={});c=d.events.acts;for(e in this.Ye)this.Ye.hasOwnProperty(e)&&(c.hasOwnProperty(e)?this.Ye[e].J=c[e].ex:this.Ye[e].J={});c=d.events.vars;for(e in c)c.hasOwnProperty(e)&&this.Rh.hasOwnProperty(e)&&(this.Rh[e].data=c[e]);this.cj=a.next_uid;this.Fi=!1;c=0;for(b=this.Hk.length;c<b;++c)g=this.Hk[c],this.trigger(Object.getPrototypeOf(g.type.ta).e.Tj,g);A(this.Hk);this.$d.Db(d.system);c=0;for(b=this.C.length;c<b;c++)if(l=this.C[c],!l.I&&!this.gp(l))for(d=0,e=l.j.length;d<e;d++){g=
l.j[d];if(l.oc)for(f=g.vi(),A(g.siblings),a=0,m=l.zc.length;a<m;a++)t=l.zc[a],l!==t&&g.siblings.push(t.j[f]);g.nd&&g.nd();if(g.O)for(a=0,m=g.O.length;a<m;a++)f=g.O[a],f.nd&&f.nd()}return this.ba=!0};f.prototype.Mo=function(d,h){var c,b,e,m,l;m=d.type;e=m.ta;var g={};h?g.c2=!0:g.uid=d.uid;Ua(d.J)&&(g.ex=a(d.J));if(d.rb&&d.rb.length)for(g.ivs={},c=0,b=d.rb.length;c<b;c++)g.ivs[d.type.Nn[c].toString()]=d.rb[c];if(e.uf){e={x:d.x,y:d.y,w:d.width,h:d.height,l:d.k.ja,zi:d.Pd()};0!==d.n&&(e.a=d.n);1!==d.opacity&&
(e.o=d.opacity);.5!==d.$b&&(e.hX=d.$b);.5!==d.ac&&(e.hY=d.ac);0!==d.Rb&&(e.bm=d.Rb);d.visible||(e.v=d.visible);d.ke||(e.ce=d.ke);-1!==d.bj&&(e.mts=d.bj);if(m.U.length)for(e.fx=[],c=0,b=m.U.length;c<b;c++)l=m.U[c],e.fx.push({name:l.name,active:d.Xe[l.index],params:d.Sa[l.index]});g.w=e}if(d.O&&d.O.length)for(g.behs={},c=0,b=d.O.length;c<b;c++)m=d.O[c],m.kb&&(g.behs[m.type.ja.toString()]=m.kb());d.kb&&(g.data=d.kb());return g};f.prototype.Gx=function(a,d){var h,c;h=0;for(c=a.Nn.length;h<c;h++)if(a.Nn[h]===
d)return h;return-1};f.prototype.Dx=function(a,d){var h,c;h=0;for(c=a.O.length;h<c;h++)if(a.O[h].type.ja===d)return h;return-1};f.prototype.ml=function(a,d,h){var c,e,b,m,l;l=a.type;var g=l.ta;if(h){if(!d.c2)return}else a.uid=d.uid;d.ex?a.J=d.ex:Va(a.J);if(e=d.ivs)for(c in e)e.hasOwnProperty(c)&&(b=this.Gx(l,parseInt(c,10)),0>b||b>=a.rb.length||(m=e[c],null===m&&(m=NaN),a.rb[b]=m));if(g.uf){b=d.w;a.k.ja!==b.l&&(e=a.k,a.k=this.ua.Tk(b.l),a.k?(e.Gh(a,!0),a.k.bi(a,!0),a.F(),a.k.tj(0)):(a.k=e,h||this.Ue(a)));
a.x=b.x;a.y=b.y;a.width=b.w;a.height=b.h;a.Hd=b.zi;a.n=b.hasOwnProperty("a")?b.a:0;a.opacity=b.hasOwnProperty("o")?b.o:1;a.$b=b.hasOwnProperty("hX")?b.hX:.5;a.ac=b.hasOwnProperty("hY")?b.hY:.5;a.visible=b.hasOwnProperty("v")?b.v:!0;a.ke=b.hasOwnProperty("ce")?b.ce:!0;a.bj=b.hasOwnProperty("mts")?b.mts:-1;a.Rb=b.hasOwnProperty("bm")?b.bm:0;a.fi=gb(a.Rb);this.D&&hb(a,a.Rb,this.D);a.F();if(b.hasOwnProperty("fx"))for(h=0,e=b.fx.length;h<e;h++)m=l.yn(b.fx[h].name),0>m||(a.Xe[m]=b.fx[h].active,a.Sa[m]=
b.fx[h].params);a.Gd()}if(l=d.behs)for(c in l)l.hasOwnProperty(c)&&(h=this.Dx(a,parseInt(c,10)),0>h||a.O[h].Db(l[c]));d.data&&a.Db(d.data)};f.prototype.Eq=function(a,d,h){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(d,h)},h)};f.prototype.Gq=function(a,d,h){this.Eq(a,function(a){var c=new FileReader;c.onload=function(a){d(a.target.result)};c.onerror=h;c.readAsText(a)},h)};var J=[],C=0;f.prototype.jo=function(){if(J.length&&!(8<=C)){C++;var a=J.shift();
this.pw(a.filename,a.Dz,a.Pw)}};f.prototype.Fq=function(a,d,h){var c=this;J.push({filename:a,Dz:function(a){C--;c.jo();d(a)},Pw:function(a){C--;c.jo();h(a)}});this.jo()};f.prototype.pw=function(a,d,h){this.Eq(a,function(a){var h=new FileReader;h.onload=function(a){d(a.target.result)};h.readAsArrayBuffer(a)},h)};f.prototype.xx=function(a,d,h){var c="",b=a.toLowerCase(),e=b.substr(b.length-4),b=b.substr(b.length-5);".mp4"===e?c="video/mp4":".webm"===b?c="video/webm":".m4a"===e?c="audio/mp4":".mp3"===
e&&(c="audio/mpeg");this.Fq(a,function(a){a=URL.createObjectURL(new Blob([a],{type:c}));d(a)},h)};f.prototype.er=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};f.prototype.Us=function(a,d){this.Ji&&!this.er(d)?this.xx(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};f.prototype.Yl=function(a,d){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=d:(a.webkitImageSmoothingEnabled=d,a.mozImageSmoothingEnabled=
d,a.msImageSmoothingEnabled=d)};Ub=function(a){return new f(document.getElementById(a))};Vb=function(a,d){return new f({dc:!0,width:a,height:d})};window.cr_createRuntime=Ub;window.cr_createDCRuntime=Vb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.bf=!0;document.body.appendChild(a);a=new f(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,
window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new f(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(f,k){var n=window.cr_getC2Runtime();n&&n.mw(f,k)};
window.cr_sizeCanvas=function(f,k){if(0!==f&&0!==k){var n=window.cr_getC2Runtime();n&&n.setSize(f,k)}};window.cr_setSuspended=function(f){var k=window.cr_getC2Runtime();k&&k.setSuspended(f)};
(function(){function f(a,c){this.b=a;this.Uf=null;this.scrollX=this.b.yb/2;this.scrollY=this.b.xb/2;this.scale=1;this.n=0;this.Vg=!0;this.name=c[0];this.Qy=c[1];this.Py=c[2];this.width=c[1];this.height=c[2];this.ut=c[3];this.$s=c[4];this.ja=c[5];var b=c[6],e,g;this.W=[];this.Bi=[];e=0;for(g=b.length;e<g;e++){var f=new Wb(this,b[e]);f.as=e;this.W.push(f)}b=c[7];this.rf=[];e=0;for(g=b.length;e<g;e++){var f=b[e],k=this.b.C[f[1]];k.Zc||(k.Zc=f);this.rf.push(f);-1===this.Bi.indexOf(k)&&this.Bi.push(k)}this.U=
[];this.ra=[];this.He=!0;this.Sa=[];e=0;for(g=c[8].length;e<g;e++)this.U.push({id:c[8][e][0],name:c[8][e][1],lb:-1,zd:!1,Qb:!0,index:e}),this.Sa.push(c[8][e][2].slice(0));this.Gd();this.Bf=new va(0,0,1,1);this.Go=new va(0,0,1,1);this.Af={}}function k(a,c){return a.Hd-c.Hd}function n(a,c){this.ub=a;this.b=a.b;this.j=[];this.scale=1;this.n=0;this.oe=!1;this.Me=new va(0,0,0,0);this.ot=new wa;this.Ea=this.Da=this.Fa=this.Ca=0;this.Dg=!1;this.Te=-1;this.Wm=0;this.name=c[0];this.index=c[1];this.ja=c[2];
this.visible=c[3];this.rd=c[4];this.Fd=c[5];this.dd=c[6];this.ed=c[7];this.opacity=c[8];this.Nk=c[9];this.Xc=c[10];this.Id=c[11];this.Rb=c[12];this.Lw=c[13];this.fi="source-over";this.Ub=this.Yb=0;this.Ob=null;this.ze=q();this.Dd=!0;this.qh=new va(0,0,-1,-1);this.Ib=new va(0,0,-1,-1);this.Xc&&(this.Ob=new fb(this.b.yb,this.b.xb));this.Yd=!1;var b=c[14],e,g;this.it=[];this.Oc=[];this.hi=[];e=0;for(g=b.length;e<g;e++){var f=b[e],k=this.b.C[f[1]];k.Zc||(k.Zc=f,k.jw=this.index);this.Oc.push(f);-1===this.ub.Bi.indexOf(k)&&
this.ub.Bi.push(k)}Aa(this.it,this.Oc);this.U=[];this.ra=[];this.He=!0;this.Sa=[];e=0;for(g=c[15].length;e<g;e++)this.U.push({id:c[15][e][0],name:c[15][e][1],lb:-1,zd:!1,Qb:!0,index:e}),this.Sa.push(c[15][e][2].slice(0));this.Gd();this.Bf=new va(0,0,1,1);this.Go=new va(0,0,1,1)}function q(){return a.length?a.pop():[]}function p(d){A(d);a.push(d)}f.prototype.rz=function(a){var c=a.type.ja.toString();this.Af.hasOwnProperty(c)||(this.Af[c]=[]);this.Af[c].push(this.b.Mo(a))};f.prototype.Vq=function(){var a=
this.W[0];return!a.Fd&&1===a.opacity&&!a.Nk&&a.visible};f.prototype.Gd=function(){A(this.ra);this.He=!0;var a,c,b;a=0;for(c=this.U.length;a<c;a++)b=this.U[a],b.Qb&&(this.ra.push(b),b.zd||(this.He=!1))};f.prototype.xn=function(a){var c,b,e;c=0;for(b=this.U.length;c<b;c++)if(e=this.U[c],e.name===a)return e;return null};var r=[],g=!0;f.prototype.Xo=function(){this.$s&&(this.Uf=this.b.kn[this.$s],this.Uf.ip());this.b.ua=this;this.width=this.Qy;this.height=this.Py;this.scrollX=this.b.yb/2;this.scrollY=
this.b.xb/2;var a,c,b,e,f,p,n;a=0;for(b=this.b.C.length;a<b;a++)if(c=this.b.C[a],!c.I)for(f=c.j,c=0,e=f.length;c<e;c++)if(p=f[c],p.k){var h=p.k.as;h>=this.W.length&&(h=this.W.length-1);p.k=this.W[h];-1===p.k.j.indexOf(p)&&p.k.j.push(p);p.k.Dg=!0}if(!g)for(a=0,b=this.W.length;a<b;++a)this.W[a].j.sort(k);A(r);this.Xv();a=0;for(b=this.W.length;a<b;a++)p=this.W[a],p.hw(),p.xm();f=!1;if(!this.Vg){for(n in this.Af)if(this.Af.hasOwnProperty(n)&&(c=this.b.Uk(parseInt(n,10)))&&!c.I&&this.b.hp(c)){e=this.Af[n];
a=0;for(b=e.length;a<b;a++){p=null;if(c.ta.uf&&(p=this.Tk(e[a].w.l),!p))continue;p=this.b.kf(c.Zc,p,!1,0,0,!0);this.b.ml(p,e[a]);f=!0;r.push(p)}A(e)}a=0;for(b=this.W.length;a<b;a++)this.W[a].j.sort(k),this.W[a].Dg=!0}f&&(this.b.Pb(),this.b.Ks());for(a=0;a<r.length;a++)if(p=r[a],p.type.oc)for(b=p.vi(),c=0,e=p.type.zc.length;c<e;c++)n=p.type.zc[c],p.type!==n&&(n.j.length>b?p.siblings.push(n.j[b]):n.Zc&&(f=this.b.kf(n.Zc,p.k,!0,p.x,p.y,!0),this.b.Pb(),n.vm(),p.siblings.push(f),r.push(f)));a=0;for(b=
this.rf.length;a<b;a++)p=this.rf[a],c=this.b.C[p[1]],c.oc||this.b.kf(this.rf[a],null,!0);this.b.je=null;this.b.Pb();if(this.b.Oa&&!this.b.Za)for(a=0,b=this.b.C.length;a<b;a++)n=this.b.C[a],!n.I&&n.j.length&&n.Ml&&n.Ml(this.b.Oa);if(this.b.Fi)Aa(this.b.Hk,r);else for(a=0,b=r.length;a<b;a++)p=r[a],this.b.trigger(Object.getPrototypeOf(p.type.ta).e.Tj,p);A(r);this.b.Fi||this.b.trigger(T.prototype.e.Ep,null);this.Vg=!1};f.prototype.gw=function(){var a,c,b,e,g;c=a=0;for(b=this.rf.length;a<b;a++)e=this.rf[a],
g=this.b.C[e[1]],g.global?g.oc||this.b.kf(e,null,!0):(this.rf[c]=e,c++);za(this.rf,c)};f.prototype.Cz=function(){this.b.Fi||this.b.trigger(T.prototype.e.Dp,null);this.b.Pn=!0;A(this.b.$d.wc);var a,c,b,e,f,k;if(!this.Vg)for(a=0,c=this.W.length;a<c;a++)for(this.W[a].kp(),f=this.W[a].j,b=0,e=f.length;b<e;b++)k=f[b],k.type.global||this.b.hp(k.type)&&this.rz(k);a=0;for(c=this.W.length;a<c;a++){f=this.W[a].j;b=0;for(e=f.length;b<e;b++)k=f[b],k.type.global||this.b.Ue(k);this.b.Pb();A(f);this.W[a].Dg=!0}a=
0;for(c=this.b.C.length;a<c;a++)if(f=this.b.C[a],!(f.global||f.ta.uf||f.ta.gm||f.I)){b=0;for(e=f.j.length;b<e;b++)this.b.Ue(f.j[b]);this.b.Pb()}g=!1;this.b.Pn=!1};new va(0,0,0,0);f.prototype.ud=function(a){var c,b=a,e=!1,g=!this.b.Mc;g&&(this.b.kl||(this.b.kl=document.createElement("canvas"),c=this.b.kl,c.width=this.b.N,c.height=this.b.M,this.b.xr=c.getContext("2d"),e=!0),c=this.b.kl,b=this.b.xr,c.width!==this.b.N&&(c.width=this.b.N,e=!0),c.height!==this.b.M&&(c.height=this.b.M,e=!0),e&&this.b.Yl(b,
this.b.Ka));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.nq&&!this.Vq()&&b.clearRect(0,0,this.b.N,this.b.M);var f,k,e=0;for(f=this.W.length;e<f;e++)k=this.W[e],k.visible&&0<k.opacity&&11!==k.Rb&&(k.j.length||!k.Fd)?k.ud(b):k.xm();g&&a.drawImage(c,0,0,this.b.width,this.b.height)};f.prototype.Qf=function(a){a.Ss(!0);this.b.hb||(this.b.hb=a.Kc(this.b.N,this.b.M,this.b.Ka));if(this.b.hb.Nf!==this.b.N||this.b.hb.Mf!==this.b.M)a.deleteTexture(this.b.hb),this.b.hb=a.Kc(this.b.N,this.b.M,
this.b.Ka);a.gd(this.b.hb);this.b.Mc||a.zg(this.b.N,this.b.M);var c,b;for(c=this.W.length-1;0<=c;--c)b=this.W[c],b.visible&&1===b.opacity&&b.He&&0===b.Rb&&(b.j.length||!b.Fd)?b.Qf(a):b.xm();a.Ss(!1)};f.prototype.lc=function(a){var c=0<this.ra.length||this.b.Ph||!this.b.Mc||this.b.Ja;if(c){this.b.hb||(this.b.hb=a.Kc(this.b.N,this.b.M,this.b.Ka));if(this.b.hb.Nf!==this.b.N||this.b.hb.Mf!==this.b.M)a.deleteTexture(this.b.hb),this.b.hb=a.Kc(this.b.N,this.b.M,this.b.Ka);a.gd(this.b.hb);this.b.Mc||a.zg(this.b.N,
this.b.M)}else this.b.hb&&(a.gd(null),a.deleteTexture(this.b.hb),this.b.hb=null);this.b.nq&&!this.Vq()&&a.clear(0,0,0,0);var b,e,g;b=0;for(e=this.W.length;b<e;b++)g=this.W[b],g.visible&&0<g.opacity&&(g.j.length||!g.Fd)?g.lc(a):g.xm();c&&(0===this.ra.length||1===this.ra.length&&this.b.Mc?(1===this.ra.length?(c=this.ra[0].index,a.vc(this.ra[0].lb),a.Ih(null,1/this.b.N,1/this.b.M,0,0,1,1,this.scale,this.n,0,0,this.b.N/2,this.b.M/2,this.b.sb.R,this.Sa[c]),a.Nl(this.ra[0].lb)&&(this.b.ba=!0)):a.vc(0),
this.b.Mc||a.zg(this.b.width,this.b.height),a.gd(null),a.Qs(!1),a.Ff(1),a.tc(this.b.hb),a.Os(),a.fd(),a.Wc(),c=this.b.width/2,b=this.b.height/2,a.nj(-c,b,c,b,c,-b,-c,-b),a.tc(null),a.Qs(!0)):this.Ho(a,null,null,null))};f.prototype.ti=function(){return 0<this.ra.length||this.b.Ph||!this.b.Mc||this.b.Ja?this.b.hb:null};f.prototype.Rq=function(){var a=this.W[0].Ac(),c,b,e;c=1;for(b=this.W.length;c<b;c++)e=this.W[c],(0!==e.dd||0!==e.ed)&&e.Ac()<a&&(a=e.Ac());return a};f.prototype.Oo=function(a){if(!this.ut){var c=
1/this.Rq()*this.b.N/2;a>this.width-c&&(a=this.width-c);a<c&&(a=c)}this.scrollX!==a&&(this.scrollX=a,this.b.ba=!0)};f.prototype.Po=function(a){if(!this.ut){var c=1/this.Rq()*this.b.M/2;a>this.height-c&&(a=this.height-c);a<c&&(a=c)}this.scrollY!==a&&(this.scrollY=a,this.b.ba=!0)};f.prototype.Xv=function(){this.Oo(this.scrollX);this.Po(this.scrollY)};f.prototype.Ho=function(a,c,b,e){var g=b?b.ra:c?c.ra:this.ra,f=1,k=0,h=0,t=0,p=this.b.N,r=this.b.M;b?(f=b.k.Ac(),k=b.k.ob(),h=b.k.Ca,t=b.k.Da,p=b.k.Fa,
r=b.k.Ea):c&&(f=c.Ac(),k=c.ob(),h=c.Ca,t=c.Da,p=c.Fa,r=c.Ea);var w=this.b.sn,n,q,x,G,H=0,U=1,O,L,D=this.b.N,R=this.b.M,V=D/2,J=R/2,C=c?c.Bf:this.Bf,u=c?c.Go:this.Go,B=0,z=0,I=0,P=0,W=D,Y=D,S=R,na=R,ia=x=0;G=b?b.k.ob():0;if(b){n=0;for(q=g.length;n<q;n++)x+=a.Lx(g[n].lb),ia+=a.Mx(g[n].lb);P=b.Na;B=c.Qa(P.left,P.top,!0,!0);I=c.Qa(P.left,P.top,!1,!0);W=c.Qa(P.right,P.bottom,!0,!0);S=c.Qa(P.right,P.bottom,!1,!0);0!==G&&(n=c.Qa(P.right,P.top,!0,!0),q=c.Qa(P.right,P.top,!1,!0),z=c.Qa(P.left,P.bottom,!0,
!0),P=c.Qa(P.left,P.bottom,!1,!0),G=Math.min(B,W,n,z),W=Math.max(B,W,n,z),B=G,G=Math.min(I,S,q,P),S=Math.max(I,S,q,P),I=G);B-=x;I-=ia;W+=x;S+=ia;u.left=B/D;u.top=1-I/R;u.right=W/D;u.bottom=1-S/R;z=B=ra(B);P=I=ra(I);Y=W=sa(W);na=S=sa(S);z-=x;P-=ia;Y+=x;na+=ia;0>B&&(B=0);0>I&&(I=0);W>D&&(W=D);S>R&&(S=R);0>z&&(z=0);0>P&&(P=0);Y>D&&(Y=D);na>R&&(na=R);C.left=B/D;C.top=1-I/R;C.right=W/D;C.bottom=1-S/R}else C.left=u.left=0,C.top=u.top=0,C.right=u.right=1,C.bottom=u.bottom=1;ia=b&&(a.kj(g[0].lb)||0!==x||
0!==ia||1!==b.opacity||b.type.ta.Wr)||c&&!b&&1!==c.opacity;a.Os();if(ia){w[H]||(w[H]=a.Kc(D,R,this.b.Ka));if(w[H].Nf!==D||w[H].Mf!==R)a.deleteTexture(w[H]),w[H]=a.Kc(D,R,this.b.Ka);a.vc(0);a.gd(w[H]);L=na-P;a.clearRect(z,R-P-L,Y-z,L);b?b.lc(a):(a.tc(this.b.tb),a.Ff(c.opacity),a.fd(),a.translate(-V,-J),a.Wc(),a.Cd(B,S,W,S,W,I,B,I,C));u.left=u.top=0;u.right=u.bottom=1;b&&(G=C.top,C.top=C.bottom,C.bottom=G);H=1;U=0}a.Ff(1);x=g.length-1;var Ha=a.Do(g[x].lb)||!c&&!b&&!this.b.Mc;n=G=0;for(q=g.length;n<
q;n++){w[H]||(w[H]=a.Kc(D,R,this.b.Ka));if(w[H].Nf!==D||w[H].Mf!==R)a.deleteTexture(w[H]),w[H]=a.Kc(D,R,this.b.Ka);a.vc(g[n].lb);G=g[n].index;a.Nl(g[n].lb)&&(this.b.ba=!0);0!=n||ia?(a.Ih(e,1/D,1/R,u.left,u.top,u.right,u.bottom,f,k,h,t,(h+p)/2,(t+r)/2,this.b.sb.R,b?b.Sa[G]:c?c.Sa[G]:this.Sa[G]),a.tc(null),n!==x||Ha?(a.gd(w[H]),L=na-P,O=R-P-L,a.clearRect(z,O,Y-z,L)):(b?a.Ef(b.Yb,b.Ub):c&&a.Ef(c.Yb,c.Ub),a.gd(e)),a.tc(w[U]),a.fd(),a.translate(-V,-J),a.Wc(),a.Cd(B,S,W,S,W,I,B,I,C),n!==x||Ha||a.tc(null)):
(a.gd(w[H]),L=na-P,O=R-P-L,a.clearRect(z,O,Y-z,L),b?(b.Hb&&b.Hb.K?(O=b.Hb.K,U=1/O.width,O=1/O.height):(U=1/b.width,O=1/b.height),a.Ih(e,U,O,u.left,u.top,u.right,u.bottom,f,k,h,t,(h+p)/2,(t+r)/2,this.b.sb.R,b.Sa[G]),b.lc(a)):(a.Ih(e,1/D,1/R,0,0,1,1,f,k,h,t,(h+p)/2,(t+r)/2,this.b.sb.R,c?c.Sa[G]:this.Sa[G]),a.tc(c?this.b.tb:this.b.hb),a.fd(),a.translate(-V,-J),a.Wc(),a.Cd(B,S,W,S,W,I,B,I,C)),u.left=u.top=0,u.right=u.bottom=1,b&&!Ha&&(G=S,S=I,I=G));H=0===H?1:0;U=0===H?1:0}Ha&&(a.vc(0),b?a.Ef(b.Yb,b.Ub):
c?a.Ef(c.Yb,c.Ub):this.b.Mc||(a.zg(this.b.width,this.b.height),V=this.b.width/2,J=this.b.height/2,I=B=0,W=this.b.width,S=this.b.height),a.gd(e),a.tc(w[U]),a.fd(),a.translate(-V,-J),a.Wc(),b&&1===g.length&&!ia?a.Cd(B,I,W,I,W,S,B,S,C):a.Cd(B,S,W,S,W,I,B,I,C),a.tc(null))};f.prototype.Tk=function(a){var c,b;c=0;for(b=this.W.length;c<b;c++)if(this.W[c].ja===a)return this.W[c];return null};f.prototype.kb=function(){var a,c,b,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.n,w:this.width,h:this.height,
fv:this.Vg,persist:this.Af,fx:[],layers:{}};a=0;for(c=this.U.length;a<c;a++)b=this.U[a],e.fx.push({name:b.name,active:b.Qb,params:this.Sa[b.index]});a=0;for(c=this.W.length;a<c;a++)b=this.W[a],e.layers[b.ja.toString()]=b.kb();return e};f.prototype.Db=function(a){var c,b,e,g;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.n=a.a;this.width=a.w;this.height=a.h;this.Af=a.persist;"undefined"!==typeof a.fv&&(this.Vg=a.fv);var f=a.fx;c=0;for(b=f.length;c<b;c++)if(e=this.xn(f[c].name))e.Qb=f[c].active,
this.Sa[e.index]=f[c].params;this.Gd();c=a.layers;for(g in c)c.hasOwnProperty(g)&&(a=this.Tk(parseInt(g,10)))&&a.Db(c[g])};Fb=f;n.prototype.Gd=function(){A(this.ra);this.He=!0;var a,c,b;a=0;for(c=this.U.length;a<c;a++)b=this.U[a],b.Qb&&(this.ra.push(b),b.zd||(this.He=!1))};n.prototype.xn=function(a){var c,b,e;c=0;for(b=this.U.length;c<b;c++)if(e=this.U[c],e.name===a)return e;return null};n.prototype.hw=function(){var a,c,b,e,g,f;c=a=0;for(b=this.Oc.length;a<b;a++){e=this.Oc[a];g=this.b.C[e[1]];f=
this.b.hp(g);g=!0;if(!f||this.ub.Vg){e=this.b.kf(e,this,!0);if(!e)continue;r.push(e);e.type.global&&(g=!1,this.hi.push(e.uid))}g&&(this.Oc[c]=this.Oc[a],c++)}this.Oc.length=c;this.b.Pb();!this.b.u&&this.U.length&&(this.Rb=this.Lw);this.fi=gb(this.Rb);this.b.D&&hb(this,this.Rb,this.b.D);this.Dd=!0};n.prototype.Gh=function(a,c){var b=Ca(this.j,a);0>b||(c&&this.Xc&&a.rc&&a.rc.right>=a.rc.left&&(a.Ba(),this.Ob.update(a,a.rc,null),a.rc.set(0,0,-1,-1)),b===this.j.length-1?this.j.pop():(ya(this.j,b),this.tj(b)),
this.Dd=!0)};n.prototype.bi=function(a,c){a.Hd=this.j.length;this.j.push(a);c&&this.Xc&&a.rc&&a.F();this.Dd=!0};n.prototype.Zy=function(a){this.j.unshift(a);this.tj(0)};n.prototype.Gy=function(a,c,b){var e=a.Pd();c=c.Pd();ya(this.j,e);e<c&&c--;b&&c++;c===this.j.length?this.j.push(a):this.j.splice(c,0,a);this.tj(e<c?e:c)};n.prototype.tj=function(a){-1===this.Te?this.Te=a:a<this.Te&&(this.Te=a);this.Dd=this.Dg=!0};n.prototype.kp=function(){if(this.Dg){-1===this.Te&&(this.Te=0);var a,c,b;if(this.Xc)for(a=
this.Te,c=this.j.length;a<c;++a)b=this.j[a],b.Hd=a,this.Ob.Dy(b.rc);else for(a=this.Te,c=this.j.length;a<c;++a)this.j[a].Hd=a;this.Dg=!1;this.Te=-1}};n.prototype.Ac=function(a){return this.Ix()*(this.b.Mc||a?this.b.ci:1)};n.prototype.Ix=function(){return(this.scale*this.ub.scale-1)*this.Id+1};n.prototype.ob=function(){return this.oe?0:Ja(this.ub.n+this.n)};var a=[],e=[],b=[];n.prototype.Cn=function(){this.kp();this.Ob.Rl(this.Ca,this.Da,this.Fa,this.Ea,b);if(!b.length)return q();if(1===b.length){var a=
q();Aa(a,b[0]);A(b);return a}for(var c=!0;1<b.length;){for(var a=b,g=void 0,m=void 0,f=void 0,k=void 0,r=void 0,g=0,m=a.length;g<m-1;g+=2){var f=a[g],k=a[g+1],r=q(),h=f,t=k,n=r,M=0,w=0,E=0,v=h.length,x=t.length,G=void 0,H=void 0;for(n.length=v+x;M<v&&w<x;++E)G=h[M],H=t[w],G.Hd<H.Hd?(n[E]=G,++M):(n[E]=H,++w);for(;M<v;++M,++E)n[E]=h[M];for(;w<x;++w,++E)n[E]=t[w];c||(p(f),p(k));e.push(r)}1===m%2&&(c?(f=q(),Aa(f,a[m-1]),e.push(f)):e.push(a[m-1]));Aa(a,e);A(e);c=!1}a=b[0];A(b);return a};n.prototype.ud=
function(a){this.Yd=this.Nk||1!==this.opacity||0!==this.Rb;var c=this.b.canvas,b=a,e=!1;this.Yd&&(this.b.jl||(this.b.jl=document.createElement("canvas"),c=this.b.jl,c.width=this.b.N,c.height=this.b.M,this.b.ur=c.getContext("2d"),e=!0),c=this.b.jl,b=this.b.ur,c.width!==this.b.N&&(c.width=this.b.N,e=!0),c.height!==this.b.M&&(c.height=this.b.M,e=!0),e&&this.b.Yl(b,this.b.Ka),this.Fd&&b.clearRect(0,0,this.b.N,this.b.M));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.Fd||(b.fillStyle="rgb("+
this.rd[0]+","+this.rd[1]+","+this.rd[2]+")",b.fillRect(0,0,this.b.N,this.b.M));b.save();this.oe=!0;var e=this.Gb(0,0,!0,!0),g=this.Gb(0,0,!1,!0);this.oe=!1;this.b.Tc&&(e=Math.round(e),g=Math.round(g));this.Tl(e,g,b);var f=this.Ac();b.scale(f,f);b.translate(-e,-g);this.Xc?(this.Ib.left=this.Ob.jc(this.Ca),this.Ib.top=this.Ob.kc(this.Da),this.Ib.right=this.Ob.jc(this.Fa),this.Ib.bottom=this.Ob.kc(this.Ea),this.Dd||!this.Ib.li(this.qh)?(p(this.ze),e=this.Cn(),this.Dd=!1,this.qh.Mg(this.Ib)):e=this.ze):
e=this.j;for(var k,h=null,g=0,f=e.length;g<f;++g)k=e[g],k!==h&&(this.Gw(k,b),h=k);this.Xc&&(this.ze=e);b.restore();this.Yd&&(a.globalCompositeOperation=this.fi,a.globalAlpha=this.opacity,a.drawImage(c,0,0))};n.prototype.Gw=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.Ba();var b=a.Na;b.right<this.Ca||b.bottom<this.Da||b.left>this.Fa||b.top>this.Ea||(c.globalCompositeOperation=a.fi,a.ud(c))}};n.prototype.xm=function(){this.oe=!0;var a=this.Gb(0,0,!0,!0),c=this.Gb(0,0,!1,!0);this.oe=!1;this.b.Tc&&
(a=Math.round(a),c=Math.round(c));this.Tl(a,c,null)};n.prototype.Tl=function(a,c,b){var e=this.Ac();this.Ca=a;this.Da=c;this.Fa=a+1/e*this.b.N;this.Ea=c+1/e*this.b.M;this.Ca>this.Fa&&(a=this.Ca,this.Ca=this.Fa,this.Fa=a);this.Da>this.Ea&&(a=this.Da,this.Da=this.Ea,this.Ea=a);a=this.ob();0!==a&&(b&&(b.translate(this.b.N/2,this.b.M/2),b.rotate(-a),b.translate(this.b.N/-2,this.b.M/-2)),this.Me.set(this.Ca,this.Da,this.Fa,this.Ea),this.Me.offset((this.Ca+this.Fa)/-2,(this.Da+this.Ea)/-2),this.ot.Ys(this.Me,
a),this.ot.hq(this.Me),this.Me.offset((this.Ca+this.Fa)/2,(this.Da+this.Ea)/2),this.Ca=this.Me.left,this.Da=this.Me.top,this.Fa=this.Me.right,this.Ea=this.Me.bottom)};n.prototype.Qf=function(a){if(this.Yd=this.Nk){this.b.tb||(this.b.tb=a.Kc(this.b.N,this.b.M,this.b.Ka));if(this.b.tb.Nf!==this.b.N||this.b.tb.Mf!==this.b.M)a.deleteTexture(this.b.tb),this.b.tb=a.Kc(this.b.N,this.b.M,this.b.Ka);a.gd(this.b.tb)}this.oe=!0;var c=this.Gb(0,0,!0,!0),b=this.Gb(0,0,!1,!0);this.oe=!1;this.b.Tc&&(c=Math.round(c),
b=Math.round(b));this.Tl(c,b,null);c=this.Ac();a.fd();a.scale(c,c);a.Ul(-this.ob());a.translate((this.Ca+this.Fa)/-2,(this.Da+this.Ea)/-2);a.Wc();this.Xc?(this.Ib.left=this.Ob.jc(this.Ca),this.Ib.top=this.Ob.kc(this.Da),this.Ib.right=this.Ob.jc(this.Fa),this.Ib.bottom=this.Ob.kc(this.Ea),this.Dd||!this.Ib.li(this.qh)?(p(this.ze),c=this.Cn(),this.Dd=!1,this.qh.Mg(this.Ib)):c=this.ze):c=this.j;for(var e,g=null,b=c.length-1;0<=b;--b)e=c[b],e!==g&&(this.Iw(c[b],a),g=e);this.Xc&&(this.ze=c);this.Fd||(this.Wm=
this.b.Tf++,a.Zl(this.Wm),a.Ps(1,1,1),a.Jq(),a.iz())};n.prototype.lc=function(a){var c=0,b=0;if(this.Yd=this.Nk||1!==this.opacity||0<this.ra.length||0!==this.Rb){this.b.tb||(this.b.tb=a.Kc(this.b.N,this.b.M,this.b.Ka));if(this.b.tb.Nf!==this.b.N||this.b.tb.Mf!==this.b.M)a.deleteTexture(this.b.tb),this.b.tb=a.Kc(this.b.N,this.b.M,this.b.Ka);a.gd(this.b.tb);this.Fd&&a.clear(0,0,0,0)}this.Fd||(this.b.Ja?(a.Zl(this.Wm),a.Ps(this.rd[0]/255,this.rd[1]/255,this.rd[2]/255),a.Jq(),a.yz()):a.clear(this.rd[0]/
255,this.rd[1]/255,this.rd[2]/255,1));this.oe=!0;var e=this.Gb(0,0,!0,!0),c=this.Gb(0,0,!1,!0);this.oe=!1;this.b.Tc&&(e=Math.round(e),c=Math.round(c));this.Tl(e,c,null);e=this.Ac();a.fd();a.scale(e,e);a.Ul(-this.ob());a.translate((this.Ca+this.Fa)/-2,(this.Da+this.Ea)/-2);a.Wc();this.Xc?(this.Ib.left=this.Ob.jc(this.Ca),this.Ib.top=this.Ob.kc(this.Da),this.Ib.right=this.Ob.jc(this.Fa),this.Ib.bottom=this.Ob.kc(this.Ea),this.Dd||!this.Ib.li(this.qh)?(p(this.ze),c=this.Cn(),this.Dd=!1,this.qh.Mg(this.Ib)):
c=this.ze):c=this.j;var g,f,k=null,b=0;for(g=c.length;b<g;++b)f=c[b],f!==k&&(this.Hw(c[b],a),k=f);this.Xc&&(this.ze=c);this.Yd&&(c=this.ra.length?this.ra[0].lb:0,b=this.ra.length?this.ra[0].index:0,0===this.ra.length||1===this.ra.length&&!a.Do(c)&&1===this.opacity?(1===this.ra.length?(a.vc(c),a.Ih(this.ub.ti(),1/this.b.N,1/this.b.M,0,0,1,1,e,this.ob(),this.Ca,this.Da,(this.Ca+this.Fa)/2,(this.Da+this.Ea)/2,this.b.sb.R,this.Sa[b]),a.Nl(c)&&(this.b.ba=!0)):a.vc(0),a.gd(this.ub.ti()),a.Ff(this.opacity),
a.tc(this.b.tb),a.Ef(this.Yb,this.Ub),a.fd(),a.Wc(),e=this.b.N/2,c=this.b.M/2,a.nj(-e,c,e,c,e,-c,-e,-c),a.tc(null)):this.ub.Ho(a,this,null,this.ub.ti()))};n.prototype.Hw=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.Ba();var b=a.Na;b.right<this.Ca||b.bottom<this.Da||b.left>this.Fa||b.top>this.Ea||(c.Zl(a.Tf),a.Dt?this.Jw(a,c):(c.vc(0),c.Ef(a.Yb,a.Ub),a.lc(c)))}};n.prototype.Iw=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.Ba();var b=a.Na;b.right<this.Ca||b.bottom<this.Da||b.left>
this.Fa||b.top>this.Ea||(a.Tf=this.b.Tf++,0===a.Rb&&1===a.opacity&&a.He&&a.Qf&&(c.Zl(a.Tf),a.Qf(c)))}};n.prototype.Jw=function(a,c){var b=a.ra[0].lb,e=a.ra[0].index,g=this.Ac();if(1!==a.ra.length||c.Do(b)||c.az(b)||(a.n||a.k.ob())&&c.kj(b)||1!==a.opacity||a.type.ta.Wr)this.ub.Ho(c,this,a,this.Yd?this.b.tb:this.ub.ti()),c.fd(),c.scale(g,g),c.Ul(-this.ob()),c.translate((this.Ca+this.Fa)/-2,(this.Da+this.Ea)/-2),c.Wc();else{c.vc(b);c.Ef(a.Yb,a.Ub);c.Nl(b)&&(this.b.ba=!0);var f=0,k=0,h=0,t=0;c.kj(b)&&
(t=a.Na,f=this.Qa(t.left,t.top,!0,!0),k=this.Qa(t.left,t.top,!1,!0),h=this.Qa(t.right,t.bottom,!0,!0),t=this.Qa(t.right,t.bottom,!1,!0),f=f/windowWidth,k=1-k/windowHeight,h=h/windowWidth,t=1-t/windowHeight);var p;a.Hb&&a.Hb.K?(p=a.Hb.K,b=1/p.width,p=1/p.height):(b=1/a.width,p=1/a.height);c.Ih(this.Yd?this.b.tb:this.ub.ti(),b,p,f,k,h,t,g,this.ob(),this.Ca,this.Da,(this.Ca+this.Fa)/2,(this.Da+this.Ea)/2,this.b.sb.R,a.Sa[e]);a.lc(c)}};n.prototype.Gb=function(a,c,b,e){var g=this.b.devicePixelRatio;this.b.eg&&
(a*=g,c*=g);var g=this.b.ys,f=this.b.zs,g=(this.ub.scrollX-g)*this.dd+g,f=(this.ub.scrollY-f)*this.ed+f,k=g,h=f,t=1/this.Ac(!e);e?(k-=this.b.N*t/2,h-=this.b.M*t/2):(k-=this.b.width*t/2,h-=this.b.height*t/2);k+=a*t;h+=c*t;c=this.ob();0!==c&&(k-=g,h-=f,a=Math.cos(c),c=Math.sin(c),e=k*a-h*c,h=h*a+k*c,k=e+g,h+=f);return b?k:h};n.prototype.Qa=function(a,c,b,e){var g=this.b.ys,f=this.b.zs,k=(this.ub.scrollX-g)*this.dd+g,h=(this.ub.scrollY-f)*this.ed+f,f=k,g=h,t=this.ob();if(0!==t){a-=k;c-=h;var p=Math.cos(-t),
t=Math.sin(-t),r=a*p-c*t;c=c*p+a*t;a=r+k;c+=h}k=1/this.Ac(!e);e?(f-=this.b.N*k/2,g-=this.b.M*k/2):(f-=this.b.width*k/2,g-=this.b.height*k/2);f=(a-f)/k;g=(c-g)/k;a=this.b.devicePixelRatio;this.b.eg&&!e&&(f/=a,g/=a);return b?f:g};n.prototype.kb=function(){var a,c,b,e={s:this.scale,a:this.n,vl:this.Ca,vt:this.Da,vr:this.Fa,vb:this.Ea,v:this.visible,bc:this.rd,t:this.Fd,px:this.dd,py:this.ed,o:this.opacity,zr:this.Id,fx:[],cg:this.hi,instances:[]};a=0;for(c=this.U.length;a<c;a++)b=this.U[a],e.fx.push({name:b.name,
active:b.Qb,params:this.Sa[b.index]});return e};n.prototype.Db=function(a){var b,e,g;this.scale=a.s;this.n=a.a;this.Ca=a.vl;this.Da=a.vt;this.Fa=a.vr;this.Ea=a.vb;this.visible=a.v;this.rd=a.bc;this.Fd=a.t;this.dd=a.px;this.ed=a.py;this.opacity=a.o;this.Id=a.zr;this.hi=a.cg||[];Aa(this.Oc,this.it);var f=new ca;b=0;for(g=this.hi.length;b<g;++b)f.add(this.hi[b]);e=b=0;for(g=this.Oc.length;b<g;++b)f.contains(this.Oc[b][2])||(this.Oc[e]=this.Oc[b],++e);za(this.Oc,e);e=a.fx;b=0;for(g=e.length;b<g;b++)if(a=
this.xn(e[b].name))a.Qb=e[b].active,this.Sa[a.index]=e[b].params;this.Gd();this.j.sort(k);this.Dg=!0};Wb=n})();
(function(){function f(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function k(a,b){return a.index-b.index}function n(a){var b,c,d,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(k);a.length>=y.length&&(y.length=a.length+1);y[a.length]||(y[a.length]=[]);e=y[a.length];b=0;for(c=e.length;b<c;b++)if(d=e[b],f(a,d))return d;e.push(a);return a}
function q(a,b){this.b=a;this.qt={};this.Dq={};this.Hn=!1;this.Yq=new ca;this.cn=[];this.Nm=[];this.name=b[0];var c=b[1];this.of=[];var d,e;d=0;for(e=c.length;d<e;d++)this.$q(c[d],null,this.of)}function p(a){this.type=a;this.j=[];this.ca=[];this.wa=!0}function r(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ha=[];this.Gf=[];this.Wq=this.qm=this.cp=this.Xk=this.group=this.gt=!1;this.Bb=[];this.md=[];this.jd=[];this.wi="";this.Zg=this.Xk=this.group=!1;this.qk=null;c[1]&&(this.wi=c[1][1].toLowerCase(),
this.group=!0,this.Xk=!!c[1][0],this.qk=[],this.Zg=this.Xk,this.b.Ze.push(this),this.b.xi[this.wi]=this);this.Sc=c[2];this.ja=c[4];this.group||(this.b.gq[this.ja.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var e=new Xb(this,d[a]);e.index=a;this.Bb.push(e);this.$p(e.type)}d=c[6];a=0;for(b=d.length;a<b;a++)e=new Yb(this,d[a]),e.index=a,this.md.push(e);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.$q(c[a],this,this.jd);this.fl=!1;this.Bb.length&&(this.fl=null==this.Bb[0].type&&
this.Bb[0].Jb==T.prototype.e.up)}function g(a,b){var c,d,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.oc))for(c=0,d=a.zc.length;c<d;c++)e=a.zc[c],a!==e&&-1===b.indexOf(e)&&b.push(e)}function a(a,b){this.Jc=a;this.sheet=a.sheet;this.b=a.b;this.aa=[];this.Ta=[];this.J={};this.index=-1;this.$h=!1;this.Jb=this.b.Ve(b[1]);this.trigger=0<b[3];this.Cq=2===b[3];this.Ud=b[4];this.Yk=b[5];this.xy=b[6];this.ja=b[7];this.b.hf[this.ja.toString()]=this;-1===b[0]?(this.type=null,this.jb=this.Lo,this.Lf=null,this.sd=
-1):(this.type=this.b.C[b[0]],this.jb=this.xy?this.pz:this.Ko,b[2]?(this.Lf=this.type.Qk(b[2]),this.sd=this.type.un(b[2])):(this.Lf=null,this.sd=-1),this.Jc.parent&&this.Jc.parent.cm());this.Cq&&(this.jb=this.qz);if(10===b.length){var c,d,e=b[9];c=0;for(d=e.length;c<d;c++){var g=new Zb(this,e[c]);this.aa.push(g)}this.Ta.length=e.length}}function e(a,b){this.Jc=a;this.sheet=a.sheet;this.b=a.b;this.aa=[];this.Ta=[];this.J={};this.index=-1;this.$h=!1;this.Jb=this.b.Ve(b[1]);-1===b[0]?(this.type=null,
this.jb=this.Lo,this.Lf=null,this.sd=-1):(this.type=this.b.C[b[0]],this.jb=this.Ko,b[2]?(this.Lf=this.type.Qk(b[2]),this.sd=this.type.un(b[2])):(this.Lf=null,this.sd=-1));this.ja=b[3];this.b.Ye[this.ja.toString()]=this;if(6===b.length){var c,d,e=b[5];c=0;for(d=e.length;c<d;c++){var g=new Zb(this,e[c]);this.aa.push(g)}this.Ta.length=e.length}}function b(){F++;K.length===F&&K.push(new $b);return K[F]}function d(a,b){this.cd=a;this.Jc=a.Jc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Nd=null;this.Ie=
0;this.get=null;this.oq=0;this.ub=null;this.key=0;this.object=null;this.index=0;this.Jj=this.Ag=this.Jj=this.Ag=this.Hq=this.Vf=this.Kj=null;this.ld=!1;var c,e,d;switch(b[0]){case 0:case 7:this.Nd=new ac(this,b[1]);this.Ie=0;this.get=this.Sx;break;case 1:this.Nd=new ac(this,b[1]);this.Ie=0;this.get=this.Tx;break;case 5:this.Nd=new ac(this,b[1]);this.Ie=0;this.get=this.Xx;break;case 3:case 8:this.oq=b[1];this.get=this.Qx;break;case 6:this.ub=this.b.rh[b[1]];this.get=this.Yx;break;case 9:this.key=b[1];
this.get=this.Wx;break;case 4:this.object=this.b.C[b[1]];this.get=this.Zx;this.Jc.$p(this.object);this.cd instanceof Yb?this.Jc.cm():this.Jc.parent&&this.Jc.parent.cm();break;case 10:this.index=b[1];a.type&&a.type.I?(this.get=this.Ux,this.ld=!0):this.get=this.Vx;break;case 11:this.Kj=b[1];this.Vf=null;this.get=this.Rx;break;case 2:case 12:this.Hq=b[1];this.get=this.Px;break;case 13:for(this.get=this.$x,this.Ag=[],this.Jj=[],c=1,e=b.length;c<e;c++)d=new Zb(this.cd,b[c]),this.Ag.push(d),this.Jj.push(0)}}
function c(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ha=[];this.name=c[1];this.Lj=c[2];this.Ln=c[3];this.Li=!!c[4];this.el=!!c[5];this.ja=c[6];this.b.Rh[this.ja.toString()]=this;this.data=this.Ln;this.parent?(this.qg=this.Li||this.el?-1:this.b.Az++,this.b.Sv.push(this)):(this.qg=-1,this.b.Rv.push(this))}function l(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ha=[];this.Ai=null;this.gy=c[1];this.Qb=!0}function m(){this.kt=[];this.reset(null)}var y=[];q.prototype.toString=function(){return this.name};
q.prototype.$q=function(a,b,c){switch(a[0]){case 0:a=new bc(this,b,a);if(a.Sc)for(c.push(a),c=0,b=a.Bb.length;c<b;c++)a.Bb[c].trigger&&this.br(a,c);else a.mr()?this.br(a,0):c.push(a);break;case 1:a=new Tb(this,b,a);c.push(a);break;case 2:a=new cc(this,b,a),c.push(a)}};q.prototype.$a=function(){var a,b;a=0;for(b=this.of.length;a<b;a++)this.of[a].$a(a<b-1&&this.of[a+1].fl)};q.prototype.ip=function(){A(this.cn);A(this.Nm);this.Zp(this);A(this.Nm)};q.prototype.Zp=function(a){var b,c,e,d,g=a.cn,m=a.Nm,
f=this.Yq.Pe();b=0;for(c=f.length;b<c;++b)e=f[b],d=e.Ai,!e.Qb||a===d||-1<m.indexOf(d)||(m.push(d),d.Zp(a),g.push(d))};q.prototype.jb=function(a){this.b.aB||(this.Hn=!0,a||(this.b.Sn=!0));var b,c;b=0;for(c=this.of.length;b<c;b++){var d=this.of[b];d.jb();this.b.Vm(d.Ha);this.b.qf&&this.b.Pb()}a||(this.b.Sn=!1)};q.prototype.br=function(a,b){a.Sc||this.b.tm.push(a);var c,d,e=a.Bb[b],g;e.type?g=e.type.name:g="system";var m=(c=e.Cq)?this.Dq:this.qt;m[g]||(m[g]=[]);g=m[g];m=e.Jb;if(c){if(e.aa.length&&(e=
e.aa[0],1===e.type&&2===e.Nd.type)){e=e.Nd.value.toLowerCase();c=0;for(d=g.length;c<d;c++)if(g[c].method==m){c=g[c].mi;c[e]?c[e].push([a,b]):c[e]=[[a,b]];return}c={};c[e]=[[a,b]];g.push({method:m,mi:c})}}else{c=0;for(d=g.length;c<d;c++)if(g[c].method==m){g[c].mi.push([a,b]);return}X&&m===X.prototype.e.Gg?g.unshift({method:m,mi:[[a,b]]}):g.push({method:m,mi:[[a,b]]})}};Gb=q;p.prototype.Gn=function(){return this.wa?this.type.j.length:this.j.length};p.prototype.nc=function(){return this.wa?this.type.j:
this.j};p.prototype.Fh=function(a){a&&(a.b.pb().Zb.Sc?(this.wa&&(A(this.j),Aa(this.ca,a.type.j),this.wa=!1),a=this.ca.indexOf(a),-1!==a&&(this.j.push(this.ca[a]),this.ca.splice(a,1))):(this.wa=!1,A(this.j),this.j[0]=a))};nb=p;window._c2hh_="3456979AD7B7212F8A7ADFAE3EDE2ACA61174C6E";r.prototype.$a=function(a){var b,c=this.parent;if(this.group)for(this.qm=!0;c;){if(!c.group){this.qm=!1;break}c=c.parent}this.cp=!this.mr()&&(!this.parent||this.parent.group&&this.parent.qm);this.Wq=!!a;this.Gf=this.Ha.slice(0);
for(c=this.parent;c;){a=0;for(b=c.Ha.length;a<b;a++)this.Pv(c.Ha[a]);c=c.parent}this.Ha=n(this.Ha);this.Gf=n(this.Gf);a=0;for(b=this.Bb.length;a<b;a++)this.Bb[a].$a();a=0;for(b=this.md.length;a<b;a++)this.md[a].$a();a=0;for(b=this.jd.length;a<b;a++)this.jd[a].$a(a<b-1&&this.jd[a+1].fl)};r.prototype.Ts=function(a){if(this.Zg!==!!a){this.Zg=!!a;var b;a=0;for(b=this.qk.length;a<b;++a)this.qk[a].yt();0<b&&this.b.ua.Uf&&this.b.ua.Uf.ip()}};r.prototype.$p=function(a){g(a,this.Ha)};r.prototype.Pv=function(a){g(a,
this.Gf)};r.prototype.cm=function(){this.gt=!0;this.parent&&this.parent.cm()};r.prototype.mr=function(){return this.Bb.length?this.Bb[0].trigger:!1};r.prototype.jb=function(){var a,b,c=!1,e=this.b,d=this.b.pb();d.Zb=this;var g=this.Bb;this.fl||(d.gn=!1);if(this.Sc){0===g.length&&(c=!0);d.mb=0;for(a=g.length;d.mb<a;d.mb++)b=g[d.mb],b.trigger||(b=b.jb())&&(c=!0);(d.jg=c)&&this.Vl()}else{d.mb=0;for(a=g.length;d.mb<a;d.mb++)if(b=g[d.mb].jb(),!b){d.jg=!1;this.cp&&e.qf&&e.Pb();return}d.jg=!0;this.Vl()}this.Nw(d)};
r.prototype.Nw=function(a){a.jg&&this.Wq&&(a.gn=!0);this.cp&&this.b.qf&&this.b.Pb()};r.prototype.nz=function(a){this.b.pb().Zb=this;this.Bb[a].jb()&&(this.Vl(),this.b.pb().jg=!0)};r.prototype.Vl=function(){var a=this.b.pb(),b;a.xc=0;for(b=this.md.length;a.xc<b;a.xc++)if(this.md[a.xc].jb())return;this.Ns()};r.prototype.kz=function(){var a=this.b.pb(),b;for(b=this.md.length;a.xc<b;a.xc++)if(this.md[a.xc].jb())return;this.Ns()};r.prototype.Ns=function(){if(this.jd.length){var a,b,c,d,e=this.jd.length-
1;this.b.Pl(this);if(this.gt)for(a=0,b=this.jd.length;a<b;a++)c=this.jd[a],(d=!this.qm||!this.group&&a<e)&&this.b.Ol(c.Ha),c.jb(),d?this.b.vg(c.Ha):this.b.Vm(c.Ha);else for(a=0,b=this.jd.length;a<b;a++)this.jd[a].jb();this.b.Jl()}};r.prototype.oz=function(){var a=this.b.pb();a.Zb=this;var b=!1,c;a.mb=0;for(c=this.Bb.length;a.mb<c;a.mb++)if(this.Bb[a.mb].jb())b=!0;else if(!this.Sc)return!1;return this.Sc?b:!0};r.prototype.lz=function(){this.b.ni++;var a=this.b.pb().mb,b=this.b.Pl(this);if(!this.Sc)for(b.mb=
a+1,a=this.Bb.length;b.mb<a;b.mb++)if(!this.Bb[b.mb].jb()){this.b.Jl();return}this.Vl();this.b.Jl()};r.prototype.oy=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Bb[b].type===a.type)return!1;return!0};bc=r;a.prototype.$a=function(){var a,b,c;a=0;for(b=this.aa.length;a<b;a++)c=this.aa[a],c.$a(),c.ld&&(this.$h=!0)};a.prototype.qz=function(){return!0};a.prototype.Lo=function(){var a,b;a=0;for(b=this.aa.length;a<b;a++)this.Ta[a]=this.aa[a].get();return Ta(this.Jb.apply(this.b.$d,
this.Ta),this.Yk)};a.prototype.pz=function(){var a,b;a=0;for(b=this.aa.length;a<b;a++)this.Ta[a]=this.aa[a].get();a=this.Jb.apply(this.Lf?this.Lf:this.type,this.Ta);this.type.Ic();return a};a.prototype.Ko=function(){var a,b,c,d,e,g,m,f,l=this.type,k=l.ea(),p=this.Jc.Sc&&!this.trigger;b=0;var r=l.oc,n=l.I,y=l.qe,q=this.sd,K=-1<q,F=this.$h,C=this.aa,u=this.Ta,B=this.Yk,z=this.Jb,I;if(F)for(b=0,e=C.length;b<e;++b)g=C[b],g.ld||(u[b]=g.get(0));else for(b=0,e=C.length;b<e;++b)u[b]=C[b].get(0);if(k.wa){A(k.j);
A(k.ca);I=l.j;a=0;for(d=I.length;a<d;++a){f=I[a];if(F)for(b=0,e=C.length;b<e;++b)g=C[b],g.ld&&(u[b]=g.get(a));K?(b=0,n&&(b=f.type.Ug[y]),b=z.apply(f.O[q+b],u)):b=z.apply(f,u);(m=Ta(b,B))?k.j.push(f):p&&k.ca.push(f)}l.finish&&l.finish(!0);k.wa=!1;l.Ic();return k.Gn()}c=0;I=(m=p&&!this.Jc.oy(this))?k.ca:k.j;var P=!1;a=0;for(d=I.length;a<d;++a){f=I[a];if(F)for(b=0,e=C.length;b<e;++b)g=C[b],g.ld&&(u[b]=g.get(a));K?(b=0,n&&(b=f.type.Ug[y]),b=z.apply(f.O[q+b],u)):b=z.apply(f,u);if(Ta(b,B))if(P=!0,m){if(k.j.push(f),
r)for(b=0,e=f.siblings.length;b<e;b++)g=f.siblings[b],g.type.ea().j.push(g)}else{I[c]=f;if(r)for(b=0,e=f.siblings.length;b<e;b++)g=f.siblings[b],g.type.ea().j[c]=g;c++}else if(m){I[c]=f;if(r)for(b=0,e=f.siblings.length;b<e;b++)g=f.siblings[b],g.type.ea().ca[c]=g;c++}else if(p&&(k.ca.push(f),r))for(b=0,e=f.siblings.length;b<e;b++)g=f.siblings[b],g.type.ea().ca.push(g)}za(I,c);if(r)for(n=l.zc,a=0,d=n.length;a<d;a++)f=n[a].ea(),m?za(f.ca,c):za(f.j,c);c=P;if(m&&!P)for(a=0,d=k.j.length;a<d;a++){f=k.j[a];
if(F)for(b=0,e=C.length;b<e;b++)g=C[b],g.ld&&(u[b]=g.get(a));b=K?z.apply(f.O[q],u):z.apply(f,u);if(Ta(b,B)){P=!0;break}}l.finish&&l.finish(c||p);return p?P:k.Gn()};Xb=a;e.prototype.$a=function(){var a,b,c;a=0;for(b=this.aa.length;a<b;a++)c=this.aa[a],c.$a(),c.ld&&(this.$h=!0)};e.prototype.Lo=function(){var a=this.b,b,c,e=this.aa,d=this.Ta;b=0;for(c=e.length;b<c;++b)d[b]=e[b].get();return this.Jb.apply(a.$d,d)};e.prototype.Ko=function(){var a=this.type,b=this.sd,c=a.qe,e=this.$h,d=this.aa,g=this.Ta,
m=this.Jb,f=a.ea().nc(),a=a.I,l=-1<b,k,p,r,n,y,q;if(e)for(p=0,n=d.length;p<n;++p)y=d[p],y.ld||(g[p]=y.get(0));else for(p=0,n=d.length;p<n;++p)g[p]=d[p].get(0);k=0;for(r=f.length;k<r;++k){q=f[k];if(e)for(p=0,n=d.length;p<n;++p)y=d[p],y.ld&&(g[p]=y.get(k));l?(p=0,a&&(p=q.type.Ug[c]),m.apply(q.O[b+p],g)):m.apply(q,g)}return!1};Yb=e;var K=[],F=-1;d.prototype.$a=function(){var a,b;if(11===this.type)this.Vf=this.b.Oq(this.Kj,this.Jc.parent);else if(13===this.type)for(a=0,b=this.Ag.length;a<b;a++)this.Ag[a].$a();
this.Nd&&this.Nd.$a()};d.prototype.Fy=function(a){this.ld||!a||a.ta.gm||(this.ld=!0)};d.prototype.Ws=function(){this.ld=!0};d.prototype.Sx=function(a){this.Ie=a||0;a=b();this.Nd.get(a);F--;return a.data};d.prototype.Tx=function(a){this.Ie=a||0;a=b();this.Nd.get(a);F--;return ja(a.data)?a.data:""};d.prototype.Zx=function(){return this.object};d.prototype.Qx=function(){return this.oq};d.prototype.Xx=function(a){this.Ie=a||0;a=b();this.Nd.get(a);F--;return a.Cb()?this.b.si(a.data):this.b.An(a.data)};
d.prototype.Yx=function(){return this.ub};d.prototype.Wx=function(){return this.key};d.prototype.Vx=function(){return this.index};d.prototype.Ux=function(a){a=a||0;var b=this.cd.type,c=null,c=b.ea(),d=c.nc();if(d.length)c=d[a%d.length].type;else if(c.ca.length)c=c.ca[a%c.ca.length].type;else if(b.j.length)c=b.j[a%b.j.length].type;else return 0;return this.index+c.Fk[b.qe]};d.prototype.Rx=function(){return this.Vf};d.prototype.Px=function(){return this.Hq};d.prototype.$x=function(){var a,b;a=0;for(b=
this.Ag.length;a<b;a++)this.Jj[a]=this.Ag[a].get();return this.Jj};Zb=d;c.prototype.$a=function(){this.Ha=n(this.Ha)};c.prototype.Ge=function(a){var b=this.b.Mq();this.parent&&!this.Li&&b?(this.qg>=b.length&&(b.length=this.qg+1),b[this.qg]=a):this.data=a};c.prototype.Zf=function(){var a=this.b.Mq();return!this.parent||this.Li||!a||this.el?this.data:this.qg>=a.length||"undefined"===typeof a[this.qg]?this.Ln:a[this.qg]};c.prototype.jb=function(){!this.parent||this.Li||this.el||this.Ge(this.Ln)};Tb=
c;l.prototype.toString=function(){return"include:"+this.Ai.toString()};l.prototype.$a=function(){this.Ai=this.b.kn[this.gy];this.sheet.Yq.add(this);this.Ha=n(this.Ha);for(var a=this.parent;a;)a.group&&a.qk.push(this),a=a.parent;this.yt()};l.prototype.jb=function(){this.parent&&this.b.mj(this.b.C);this.Ai.Hn||this.Ai.jb(!0);this.parent&&this.b.vg(this.b.C)};l.prototype.yt=function(){for(var a=this.parent;a;){if(a.group&&!a.Zg){this.Qb=!1;return}a=a.parent}this.Qb=!0};cc=l;m.prototype.reset=function(a){this.Zb=
a;this.xc=this.mb=0;A(this.kt);this.gn=this.jg=!1};Sb=m})();
(function(){function f(g,a){this.cd=g;this.b=g.b;this.type=a[0];this.get=[this.hx,this.ax,this.rx,this.vx,this.Qw,this.tx,this.lx,this.Yw,this.kx,this.qx,this.Rw,this.ox,this.Zw,this.mx,this.ix,this.jx,this.bx,this.cx,this.Xw,this.ux,this.nx,this.gx,this.Ww,this.$w][this.type];var e=null;this.Ae=this.aa=this.Ta=this.Jb=this.pm=this.second=this.first=this.value=null;this.sd=-1;this.vd=null;this.Et=-1;this.Vf=this.Kj=null;this.Hh=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new ac(g,a[1]);break;case 18:this.first=new ac(g,a[1]);this.second=new ac(g,a[2]);this.pm=new ac(g,a[3]);break;case 19:this.Jb=this.b.Ve(a[1]);this.Jb!==T.prototype.da.random&&this.Jb!==T.prototype.da.bw||this.cd.Ws();this.Ta=[];this.aa=[];3===a.length?(e=a[2],this.Ta.length=e.length+1):this.Ta.length=1;break;case 20:this.Ae=this.b.C[a[1]];this.sd=-1;this.Jb=this.b.Ve(a[2]);this.Hh=a[3];pc&&this.Jb===pc.prototype.da.Jt&&this.cd.Ws();a[4]?this.vd=new ac(g,a[4]):this.vd=null;this.Ta=[];this.aa=[];6===
a.length?(e=a[5],this.Ta.length=e.length+1):this.Ta.length=1;break;case 21:this.Ae=this.b.C[a[1]];this.Hh=a[2];a[3]?this.vd=new ac(g,a[3]):this.vd=null;this.Et=a[4];break;case 22:this.Ae=this.b.C[a[1]];this.Ae.Qk(a[2]);this.sd=this.Ae.un(a[2]);this.Jb=this.b.Ve(a[3]);this.Hh=a[4];a[5]?this.vd=new ac(g,a[5]):this.vd=null;this.Ta=[];this.aa=[];7===a.length?(e=a[6],this.Ta.length=e.length+1):this.Ta.length=1;break;case 23:this.Kj=a[1],this.Vf=null}this.cd.Fy(this.Ae);4<=this.type&&17>=this.type&&(this.first=
new ac(g,a[1]),this.second=new ac(g,a[2]));if(e){var b,d;b=0;for(d=e.length;b<d;b++)this.aa.push(new ac(g,e[b]))}}function k(){++r;p.length===r&&p.push(new $b);return p[r]}function n(g,a,e){var b,d;b=0;for(d=g.length;b<d;++b)g[b].get(e),a[b+1]=e.data}function q(g,a){this.type=g||dc.Fg;this.data=a||0;this.tg=null;this.type==dc.Fg&&(this.data=Math.floor(this.data))}f.prototype.$a=function(){23===this.type&&(this.Vf=this.cd.b.Oq(this.Kj,this.cd.Jc.parent));this.first&&this.first.$a();this.second&&this.second.$a();
this.pm&&this.pm.$a();this.vd&&this.vd.$a();if(this.aa){var g,a;g=0;for(a=this.aa.length;g<a;g++)this.aa[g].$a()}};var p=[],r=-1;f.prototype.ux=function(g){var a=this.aa,e=this.Ta;e[0]=g;g=k();n(a,e,g);--r;this.Jb.apply(this.b.$d,e)};f.prototype.nx=function(g){var a=this.Ae,e=this.Ta,b=this.aa,d=this.vd,c=this.Jb,f=this.cd.Ie,m=a.ea(),p=m.nc();if(!p.length)if(m.ca.length)p=m.ca;else{this.Hh?g.Xb(""):g.Ga(0);return}e[0]=g;g.tg=a;g=k();n(b,e,g);d&&(d.get(g),g.Cb()&&(f=g.data,p=a.j));--r;a=p.length;
if(f>=a||f<=-a)f%=a;0>f&&(f+=a);c.apply(p[f],e)};f.prototype.Ww=function(g){var a=this.Ae,e=this.Ta,b=this.aa,d=this.vd,c=this.sd,f=this.Jb,m=this.cd.Ie,p=a.ea(),q=p.nc();if(!q.length)if(p.ca.length)q=p.ca;else{this.Hh?g.Xb(""):g.Ga(0);return}e[0]=g;g.tg=a;g=k();n(b,e,g);d&&(d.get(g),g.Cb()&&(m=g.data,q=a.j));--r;b=q.length;if(m>=b||m<=-b)m%=b;0>m&&(m+=b);m=q[m];q=0;a.I&&(q=m.type.Ug[a.qe]);f.apply(m.O[c+q],e)};f.prototype.gx=function(g){var a=this.vd,e=this.Ae,b=this.Et,d=this.cd.Ie,c=e.ea(),f=c.nc();
if(!f.length)if(c.ca.length)f=c.ca;else{this.Hh?g.Xb(""):g.Ga(0);return}if(a){c=k();a.get(c);if(c.Cb()){d=c.data;f=e.j;0!==f.length&&(d%=f.length,0>d&&(d+=f.length));d=e.zn(d);e=d.rb[b];ja(e)?g.Xb(e):g.L(e);--r;return}--r}a=f.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=f[d];f=0;e.I&&(f=d.type.Fk[e.qe]);e=d.rb[b+f];ja(e)?g.Xb(e):g.L(e)};f.prototype.hx=function(g){g.type=dc.Fg;g.data=this.value};f.prototype.ax=function(g){g.type=dc.Eg;g.data=this.value};f.prototype.rx=function(g){g.type=dc.String;g.data=
this.value};f.prototype.vx=function(g){this.first.get(g);g.Cb()&&(g.data=-g.data)};f.prototype.Qw=function(g){this.first.get(g);var a=k();this.second.get(a);g.Cb()&&a.Cb()&&(g.data+=a.data,a.eh()&&g.vh());--r};f.prototype.tx=function(g){this.first.get(g);var a=k();this.second.get(a);g.Cb()&&a.Cb()&&(g.data-=a.data,a.eh()&&g.vh());--r};f.prototype.lx=function(g){this.first.get(g);var a=k();this.second.get(a);g.Cb()&&a.Cb()&&(g.data*=a.data,a.eh()&&g.vh());--r};f.prototype.Yw=function(g){this.first.get(g);
var a=k();this.second.get(a);g.Cb()&&a.Cb()&&(g.data/=a.data,g.vh());--r};f.prototype.kx=function(g){this.first.get(g);var a=k();this.second.get(a);g.Cb()&&a.Cb()&&(g.data%=a.data,a.eh()&&g.vh());--r};f.prototype.qx=function(g){this.first.get(g);var a=k();this.second.get(a);g.Cb()&&a.Cb()&&(g.data=Math.pow(g.data,a.data),a.eh()&&g.vh());--r};f.prototype.Rw=function(g){this.first.get(g);var a=k();this.second.get(a);a.hh()||g.hh()?this.Tw(g,a):this.Sw(g,a);--r};f.prototype.Tw=function(g,a){g.hh()&&
a.hh()?this.Vw(g,a):this.Uw(g,a)};f.prototype.Vw=function(g,a){g.data+=a.data};f.prototype.Uw=function(g,a){g.hh()?g.data+=(Math.round(1E10*a.data)/1E10).toString():g.Xb(g.data.toString()+a.data)};f.prototype.Sw=function(g,a){g.Ga(g.data&&a.data?1:0)};f.prototype.ox=function(g){this.first.get(g);var a=k();this.second.get(a);g.Cb()&&a.Cb()&&(g.data||a.data?g.Ga(1):g.Ga(0));--r};f.prototype.Xw=function(g){this.first.get(g);g.data?this.second.get(g):this.pm.get(g)};f.prototype.Zw=function(g){this.first.get(g);
var a=k();this.second.get(a);g.Ga(g.data===a.data?1:0);--r};f.prototype.mx=function(g){this.first.get(g);var a=k();this.second.get(a);g.Ga(g.data!==a.data?1:0);--r};f.prototype.ix=function(g){this.first.get(g);var a=k();this.second.get(a);g.Ga(g.data<a.data?1:0);--r};f.prototype.jx=function(g){this.first.get(g);var a=k();this.second.get(a);g.Ga(g.data<=a.data?1:0);--r};f.prototype.bx=function(g){this.first.get(g);var a=k();this.second.get(a);g.Ga(g.data>a.data?1:0);--r};f.prototype.cx=function(g){this.first.get(g);
var a=k();this.second.get(a);g.Ga(g.data>=a.data?1:0);--r};f.prototype.$w=function(g){var a=this.Vf.Zf();ha(a)?g.L(a):g.Xb(a)};ac=f;q.prototype.eh=function(){return this.type===dc.Eg};q.prototype.Cb=function(){return this.type===dc.Fg||this.type===dc.Eg};q.prototype.hh=function(){return this.type===dc.String};q.prototype.vh=function(){this.eh()||(this.hh()&&(this.data=parseFloat(this.data)),this.type=dc.Eg)};q.prototype.Ga=function(g){this.type=dc.Fg;this.data=Math.floor(g)};q.prototype.L=function(g){this.type=
dc.Eg;this.data=g};q.prototype.Xb=function(g){this.type=dc.String;this.data=g};q.prototype.So=function(g){ha(g)?(this.type=dc.Eg,this.data=g):ja(g)?(this.type=dc.String,this.data=g.toString()):(this.type=dc.Fg,this.data=0)};$b=q;dc={Fg:0,Eg:1,String:2}})();function T(f){this.b=f;this.wc=[]}
T.prototype.kb=function(){var f={},k,n,q,p,r,g,a,e;f.waits=[];var b=f.waits,d;k=0;for(n=this.wc.length;k<n;k++){g=this.wc[k];d={t:g.time,st:g.dt,s:g.Wo,ev:g.Sg.ja,sm:[],sols:{}};g.Sg.md[g.xc]&&(d.act=g.Sg.md[g.xc].ja);q=0;for(p=g.Ha.length;q<p;q++)d.sm.push(g.Ha[q].ja);for(r in g.fc)if(g.fc.hasOwnProperty(r)){a=this.b.C[parseInt(r,10)];e={sa:g.fc[r].Wl,insts:[]};q=0;for(p=g.fc[r].ve.length;q<p;q++)e.insts.push(g.fc[r].ve[q].uid);d.sols[a.ja.toString()]=e}b.push(d)}return f};
T.prototype.Db=function(f){f=f.waits;var k,n,q,p,r,g,a,e,b,d,c;A(this.wc);k=0;for(n=f.length;k<n;k++)if(g=f[k],e=this.b.gq[g.ev.toString()]){b=-1;q=0;for(p=e.md.length;q<p;q++)if(e.md[q].ja===g.act){b=q;break}if(-1!==b){a={fc:{},Ha:[],dn:!1};a.time=g.t;a.dt=g.st||"";a.Wo=!!g.s;a.Sg=e;a.xc=b;q=0;for(p=g.sm.length;q<p;q++)(e=this.b.Uk(g.sm[q]))&&a.Ha.push(e);for(r in g.sols)if(g.sols.hasOwnProperty(r)&&(e=this.b.Uk(parseInt(r,10)))){b=g.sols[r];d={Wl:b.sa,ve:[]};q=0;for(p=b.insts.length;q<p;q++)(c=
this.b.Yf(b.insts[q]))&&d.ve.push(c);a.fc[e.index.toString()]=d}this.wc.push(a)}}};
(function(){function f(){}function k(){}function n(){}var q=T.prototype;f.prototype.Wt=function(){return!0};f.prototype.Ep=function(){return!0};f.prototype.Dp=function(){return!0};f.prototype.Nt=function(g,a,e){return ec(g,a,e)};f.prototype.tu=function(g){return g?g.visible:!1};f.prototype.Vt=function(g){var a=this.b.Rk(),e=a.J.Every_lastTime||0,b=this.b.sb.R;"undefined"===typeof a.J.Every_seconds&&(a.J.Every_seconds=g);var d=a.J.Every_seconds;if(b>=e+d)return a.J.Every_lastTime=e+d,b>=a.J.Every_lastTime+
.04&&(a.J.Every_lastTime=b),a.J.Every_seconds=g,!0;b<e-.1&&(a.J.Every_lastTime=b);return!1};f.prototype.dv=function(g){if(!g)return!1;var a=g.ea(),e=a.nc(),b=ra(Math.random()*e.length);if(b>=e.length)return!1;a.Fh(e[b]);g.Ic();return!0};f.prototype.Rt=function(g,a,e){return ec(g.Zf(),a,e)};f.prototype.gu=function(g){return(g=this.b.xi[g.toLowerCase()])&&g.Zg};f.prototype.up=function(){var g=this.b.pb();return g.gn?!1:!g.jg};f.prototype.Fp=function(){return!0};f.prototype.Cu=function(){return!0};f.prototype.Bm=
function(){return!0};f.prototype.Kp=function(){return!0};f.prototype.Qu=function(){return!0};f.prototype.Wj=function(){return!0};f.prototype.It=function(g,a,e){return Oa(N(g),N(e))<=N(a)};f.prototype.eu=function(g,a){return Qa(N(g),N(a))};f.prototype.cu=function(g,a,e){g=La(g);a=La(a);e=La(e);return Qa(e,a)?Qa(g,a)&&!Qa(g,e):!(!Qa(g,a)&&Qa(g,e))};q.e=new f;k.prototype.Yt=function(g){this.b.fg||this.b.je||(this.b.je=g)};k.prototype.Ut=function(g,a,e,b){if(a&&g&&(a=this.b.Ym(g,a,e,b))){this.b.xd++;
var d;this.b.trigger(Object.getPrototypeOf(g.ta).e.Tj,a);if(a.oc)for(e=0,b=a.siblings.length;e<b;e++)d=a.siblings[e],this.b.trigger(Object.getPrototypeOf(d.type.ta).e.Tj,d);this.b.xd--;g=g.ea();g.wa=!1;A(g.j);g.j[0]=a;if(a.oc)for(e=0,b=a.siblings.length;e<b;e++)d=a.siblings[e],g=d.type.ea(),g.wa=!1,A(g.j),g.j[0]=d}};k.prototype.tv=function(g,a){g&&g.visible!==a&&(g.visible=a,this.b.ba=!0)};k.prototype.sv=function(g,a){g&&(a=Fa(a/100,0,1),g.opacity!==a&&(g.opacity=a,this.b.ba=!0))};k.prototype.xv=
function(g,a){0===g.Lj?ha(a)?g.Ge(a):g.Ge(parseFloat(a)):1===g.Lj&&g.Ge(a.toString())};k.prototype.Ht=function(g,a){0===g.Lj?ha(a)?g.Ge(g.Zf()+a):g.Ge(g.Zf()+parseFloat(a)):1===g.Lj&&g.Ge(g.Zf()+a.toString())};k.prototype.Hv=function(g,a){0===g.Lj&&(ha(a)?g.Ge(g.Zf()-a):g.Ge(g.Zf()-parseFloat(a)))};var p=[],r=[];k.prototype.Iv=function(g){if(!(0>g)){var a,e,b,d=this.b.pb(),c;p.length?c=p.pop():c={fc:{},Ha:[]};c.dn=!1;c.time=this.b.sb.R+g;c.dt="";c.Wo=!1;c.Sg=d.Zb;c.xc=d.xc+1;g=0;for(a=this.b.C.length;g<
a;g++)b=this.b.C[g],e=b.ea(),e.wa&&-1===d.Zb.Ha.indexOf(b)||(c.Ha.push(b),b=void 0,r.length?b=r.pop():b={ve:[]},b.Wl=!1,b.Wl=e.wa,Aa(b.ve,e.j),c.fc[g.toString()]=b);this.wc.push(c);return!0}};k.prototype.Zt=function(g){if(!this.b.fg&&!this.b.je)for(var a in this.b.rh)if(this.b.rh.hasOwnProperty(a)&&jb(a,g)){this.b.je=this.b.rh[a];break}};k.prototype.kv=function(){if(!this.b.fg&&!this.b.je&&this.b.ua){this.b.je=this.b.ua;var g,a,e;g=0;for(a=this.b.Ze.length;g<a;g++)e=this.b.Ze[g],e.Ts(e.Xk)}};q.B=
new k;n.prototype["int"]=function(g,a){ja(a)?(g.Ga(parseInt(a,10)),isNaN(g.data)&&(g.data=0)):g.Ga(a)};n.prototype["float"]=function(g,a){ja(a)?(g.L(parseFloat(a)),isNaN(g.data)&&(g.data=0)):g.L(a)};n.prototype.random=function(g,a,e){void 0===e?g.L(Math.random()*a):g.L(Math.random()*(e-a)+a)};n.prototype.sqrt=function(g,a){g.L(Math.sqrt(a))};n.prototype.abs=function(g,a){g.L(Math.abs(a))};n.prototype.round=function(g,a){g.Ga(Math.round(a))};n.prototype.floor=function(g,a){g.Ga(Math.floor(a))};n.prototype.ceil=
function(g,a){g.Ga(Math.ceil(a))};n.prototype.sin=function(g,a){g.L(Math.sin(N(a)))};n.prototype.cos=function(g,a){g.L(Math.cos(N(a)))};n.prototype.tan=function(g,a){g.L(Math.tan(N(a)))};n.prototype.asin=function(g,a){g.L(Ga(Math.asin(a)))};n.prototype.acos=function(g,a){g.L(Ga(Math.acos(a)))};n.prototype.atan=function(g,a){g.L(Ga(Math.atan(a)))};n.prototype.exp=function(g,a){g.L(Math.exp(a))};n.prototype.log10=function(g,a){g.L(Math.log(a)/Math.LN10)};n.prototype.max=function(g){var a=arguments[1];
"number"!==typeof a&&(a=0);var e,b,d;e=2;for(b=arguments.length;e<b;e++)d=arguments[e],"number"===typeof d&&a<d&&(a=d);g.L(a)};n.prototype.min=function(g){var a=arguments[1];"number"!==typeof a&&(a=0);var e,b,d;e=2;for(b=arguments.length;e<b;e++)d=arguments[e],"number"===typeof d&&a>d&&(a=d);g.L(a)};n.prototype.Rf=function(g){g.L(this.b.Rf)};n.prototype.Cg=function(g){g.L(this.b.Cg)};n.prototype.time=function(g){g.L(this.b.sb.R)};n.prototype.be=function(g){g.Ga(this.b.be)};n.prototype.zl=function(g){g.Ga(this.b.zl)};
n.prototype.rn=function(g){g.Ga(this.b.rn)};n.prototype.n=function(g,a,e,b,d){g.L(Ga(Na(a,e,b,d)))};n.prototype.Ay=function(g){g.Ga(this.b.ua.width)};n.prototype.zy=function(g){g.Ga(this.b.ua.height)};n.prototype.left=function(g,a,e){g.Xb(ja(a)?a.substr(0,e):"")};n.prototype.right=function(g,a,e){g.Xb(ja(a)?a.substr(a.length-e):"")};n.prototype.replace=function(g,a,e,b){ja(a)&&ja(e)&&ja(b)?g.Xb(a.replace(new RegExp(cb(e),"gi"),b)):g.Xb(ja(a)?a:"")};n.prototype.trim=function(g,a){g.Xb(ja(a)?a.trim():
"")};n.prototype.bw=function(g){var a=ra(Math.random()*(arguments.length-1));g.So(arguments[a+1])};n.prototype.Xm=function(g){g.L(this.b.Xm/1E3)};n.prototype.ol=function(g){g.L(this.b.ol)};q.da=new n;q.mz=function(){var g,a,e,b,d,c,f=this.b.pb();g=0;for(e=this.wc.length;g<e;g++){b=this.wc[g];if(-1===b.time){if(!b.Wo)continue}else if(b.time>this.b.sb.R)continue;f.Zb=b.Sg;f.xc=b.xc;f.mb=0;for(a in b.fc)b.fc.hasOwnProperty(a)&&(d=this.b.C[parseInt(a,10)].ea(),c=b.fc[a],d.wa=c.Wl,Aa(d.j,c.ve),d=c,A(d.ve),
r.push(d));b.Sg.kz();this.b.Vm(b.Ha);b.dn=!0}a=g=0;for(e=this.wc.length;g<e;g++)b=this.wc[g],this.wc[a]=b,b.dn?(Va(b.fc),A(b.Ha),p.push(b)):a++;za(this.wc,a)}})();
(function(){mb=function(f,n){var q=f[1],p=f[3],r=f[4],g=f[5],a=f[6],e=f[7],b=f[8];n.e||(n.e={});n.B||(n.B={});n.da||(n.da={});var d=n.e,c=n.B,l=n.da;p&&(d.sp=function(a,b){return ec(this.x,a,b)},d.St=function(a,b){return ec(this.y,a,b)},d.lu=function(){var a=this.k;this.Ba();var b=this.Na;return!(b.right<a.Ca||b.bottom<a.Da||b.left>a.Fa||b.top>a.Ea)},d.bA=function(){this.Ba();var a=this.Na,b=this.b.ua;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.lA=function(a,b,c){var d=this.ea(),
e=d.nc();if(!e.length)return!1;var g=e[0],f=g,l=Sa(g.x,g.y,b,c),k,p,r;k=1;for(p=e.length;k<p;k++)if(g=e[k],r=Sa(g.x,g.y,b,c),0===a&&r<l||1===a&&r>l)l=r,f=g;d.Fh(f);return!0},c.Av=function(a){this.x!==a&&(this.x=a,this.F())},c.Bv=function(a){this.y!==a&&(this.y=a,this.F())},c.wA=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.F()},c.vv=function(a,b){var c=a.Jx(this);if(c){var d;c.Sk?(d=c.Sk(b,!0),c=c.Sk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.F()}},c.gA=
function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.F())},c.fA=function(a,b){0!==b&&(this.x+=Math.cos(N(a))*b,this.y+=Math.sin(N(a))*b,this.F())},l.Sp=function(a){a.L(this.x)},l.Im=function(a){a.L(this.y)},l.Rf=function(a){a.L(this.b.ri(this))});r&&(d.Zz=function(a,b){return ec(this.width,a,b)},d.Yz=function(a,b){return ec(this.height,a,b)},c.zv=function(a){this.width!==a&&(this.width=a,this.F())},c.qv=function(a){this.height!==a&&(this.height=a,this.F())},c.xA=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.F()},l.Rp=function(a){a.L(this.width)},l.$t=function(a){a.L(this.height)},l.Vz=function(a){this.Ba();a.L(this.Na.left)},l.Xz=function(a){this.Ba();a.L(this.Na.top)},l.Wz=function(a){this.Ba();a.L(this.Na.right)},l.Uz=function(a){this.Ba();a.L(this.Na.bottom)});g&&(d.It=function(a,b){return Oa(this.n,N(b))<=N(a)},d.eu=function(a){return Qa(this.n,N(a))},d.cu=function(a,b){var c=La(a),d=La(b),e=Ja(this.n);return Qa(d,c)?Qa(e,c)&&
!Qa(e,d):!(!Qa(e,c)&&Qa(e,d))},c.lv=function(a){a=N(Ia(a));isNaN(a)||this.n===a||(this.n=a,this.F())},c.pA=function(a){0===a||isNaN(a)||(this.n+=N(a),this.n=Ja(this.n),this.F())},c.qA=function(a){0===a||isNaN(a)||(this.n-=N(a),this.n=Ja(this.n),this.F())},c.rA=function(a,b){var c=Pa(this.n,N(b),N(a));isNaN(c)||this.n===c||(this.n=c,this.F())},c.sA=function(a,b,c){a=Pa(this.n,Math.atan2(c-this.y,b-this.x),N(a));isNaN(a)||this.n===a||(this.n=a,this.F())},c.yA=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.n===c||(this.n=c,this.F())},l.Tz=function(a){a.L(Ka(this.n))});q||(d.Pt=function(a,b,c){return ec(this.rb[a],b,c)},d.du=function(a){return this.rb[a]},d.mA=function(a,b){var c=this.ea(),d=c.nc();if(!d.length)return!1;var e=d[0],g=e,f=e.rb[b],l,k,p;l=1;for(k=d.length;l<k;l++)if(e=d[l],p=e.rb[b],0===a&&p<f||1===a&&p>f)f=p,g=e;c.Fh(g);return!0},d.Op=function(a){var b,c,d,e,g;if(this.b.Rk().Yk){g=this.ea();if(g.wa)for(g.wa=!1,A(g.j),A(g.ca),d=this.j,b=0,c=d.length;b<c;b++)e=d[b],
e.uid===a?g.ca.push(e):g.j.push(e);else{d=b=0;for(c=g.j.length;b<c;b++)e=g.j[b],g.j[d]=e,e.uid===a?g.ca.push(e):d++;za(g.j,d)}this.Ic();return!!g.j.length}e=this.b.Yf(a);if(!e)return!1;g=this.ea();if(!g.wa&&-1===g.j.indexOf(e))return!1;if(this.I)for(a=e.type.Pa,b=0,c=a.length;b<c;b++){if(a[b]===this)return g.Fh(e),this.Ic(),!0}else if(e.type===this)return g.Fh(e),this.Ic(),!0;return!1},d.Tj=function(){return!0},d.Eu=function(){return!0},c.vA=function(a,b){var c=this.rb;ha(c[a])?c[a]=ha(b)?b:parseFloat(b):
ja(c[a])&&(c[a]=ja(b)?b:b.toString())},c.Sz=function(a,b){var c=this.rb;ha(c[a])?c[a]=ha(b)?c[a]+b:c[a]+parseFloat(b):ja(c[a])&&(c[a]=ja(b)?c[a]+b:c[a]+b.toString())},c.zA=function(a,b){var c=this.rb;ha(c[a])&&(c[a]=ha(b)?c[a]-b:c[a]-parseFloat(b))},c.pv=function(a,b){this.rb[a]=b?1:0},c.AA=function(a){this.rb[a]=1-this.rb[a]},c.tp=function(){this.b.Ue(this)},c.uu||(c.uu=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.ml(this,b,!0);this.nd&&this.nd();if(this.O)for(a=0,b=this.O.length;a<
b;++a)c=this.O[a],c.nd&&c.nd()}),l.Tt=function(a){var b=a.tg.j.length,c,e,d;c=0;for(e=this.b.td.length;c<e;c++)d=this.b.td[c],a.tg.I?0<=d.type.Pa.indexOf(a.tg)&&b++:d.type===a.tg&&b++;a.Ga(b)},l.oA=function(a){a.Ga(a.tg.ea().nc().length)},l.BA=function(a){a.Ga(this.uid)},l.$z=function(a){a.Ga(this.vi())},l.rp||(l.rp=function(a){a.Xb(JSON.stringify(this.b.Mo(this,!0)))}));a&&(d.cA=function(){return this.visible},c.Qp=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ba=!0)},d.Qt=function(a,
b){return ec(ib(100*this.opacity),a,b)},c.uv=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ba=!0)},l.Opacity=function(a){a.L(ib(100*this.opacity))});e&&(d.aA=function(a){return a?this.k===a:!1},d.nA=function(a){var b=this.ea(),c=b.nc();if(!c.length)return!1;var e=c[0],d=e,g,f;g=1;for(f=c.length;g<f;g++)if(e=c[g],0===a){if(e.k.index>d.k.index||e.k.index===d.k.index&&e.Pd()>d.Pd())d=e}else if(e.k.index<d.k.index||e.k.index===d.k.index&&e.Pd()<d.Pd())d=e;b.Fh(d);return!0},
c.vu=function(){var a=this.k,b=a.j;b.length&&b[b.length-1]===this||(a.Gh(this,!1),a.bi(this,!1),this.b.ba=!0)},c.hA=function(){var a=this.k,b=a.j;b.length&&b[0]===this||(a.Gh(this,!1),a.Zy(this),this.b.ba=!0)},c.iA=function(a){a&&a!=this.k&&(this.k.Gh(this,!0),this.k=a,a.bi(this,!0),this.b.ba=!0)},c.DA=function(a,b){var c=0===a;if(b){var e=b.Pq(this);e&&e.uid!==this.uid&&(this.k.index!==e.k.index&&(this.k.Gh(this,!0),this.k=e.k,e.k.bi(this,!0)),this.k.Gy(this,e,c),this.b.ba=!0)}},l.eA=function(a){a.Ga(this.k.as)},
l.dA=function(a){a.Xb(this.k.name)},l.CA=function(a){a.Ga(this.Pd())});b&&(c.tA=function(a,b){if(this.b.u){var c=this.type.yn(b);if(!(0>c)){var e=1===a;this.Xe[c]!==e&&(this.Xe[c]=e,this.Gd(),this.b.ba=!0)}}},c.uA=function(a,b,c){if(this.b.u){var e=this.type.yn(a);0>e||(a=this.type.U[e],e=this.Sa[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.u.Nx(a.lb,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Qb&&(this.b.ba=!0))))}})};Kb=function(){this.Sm=this.Pm=!0;this.type.ck=!0;this.b.ba=!0;var f,n,q=this.Qm;f=0;for(n=
q.length;f<n;++f)q[f](this);this.k.Xc&&this.Ba()};Lb=function(f){f&&this.Qm.push(f)};Nb=function(){if(this.Pm){var f=this.Na,n=this.Sb;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.$b*this.width,-this.ac*this.height);this.n?(f.offset(-this.x,-this.y),n.Ys(f,this.n),n.offset(this.x,this.y),n.hq(f)):n.uj(f);f.normalize();this.Pm=!1;this.Lz()}};var f=new va(0,0,0,0);Ob=function(){if(this.k.Xc){var k=this.k.Ob,n=this.Na;f.set(k.jc(n.left),k.kc(n.top),k.jc(n.right),k.kc(n.bottom));
this.rc.li(f)||(this.rc.right<this.rc.left?k.update(this,null,f):k.update(this,this.rc,f),this.rc.Mg(f),this.k.Dd=!0)}};Pb=function(){if(this.Sm&&this.ke){this.Ba();var k=this.type.pk,n=this.Na;f.set(k.jc(n.left),k.kc(n.top),k.jc(n.right),k.kc(n.bottom));this.jf.li(f)||(this.jf.right<this.jf.left?k.update(this,null,f):k.update(this,this.jf,f),this.jf.Mg(f),this.Sm=!1)}};Mb=function(f,n){return this.Na.Tb(f,n)&&this.Sb.Tb(f,n)?this.Nh?this.cB(f,n):this.ya&&!this.ya.dh()?(this.ya.Jg(this.width,this.height,
this.n),this.ya.Tb(f-this.x,n-this.y)):!0:!1};Db=function(){this.type.vm();return this.bg};Qb=function(){this.k.kp();return this.Hd};Rb=function(){A(this.ra);var f,n,q,p=!0;f=0;for(n=this.Xe.length;f<n;f++)this.Xe[f]&&(q=this.type.U[f],this.ra.push(q),q.zd||(p=!1));this.Dt=!!this.ra.length;this.He=p};Eb=function(){return"Inst"+this.Hs};pb=function(f){if(f&&f.oc&&f.type!=this){var n,q,p;n=0;for(q=f.siblings.length;n<q;n++)if(p=f.siblings[n],p.type==this)return p}f=this.ea().nc();return f.length?f[0]:
null};sb=function(f){var n=this.ea().nc();return n.length?n[f.vi()%n.length]:null};ob=function(){if(this.Lh&&!this.I){var f,n;f=0;for(n=this.j.length;f<n;f++)this.j[f].bg=f;var q=f,p=this.b.td;f=0;for(n=p.length;f<n;++f)p[f].type===this&&(p[f].bg=q++);this.Lh=!1}};Bb=function(f){if(f<this.j.length)return this.j[f];f-=this.j.length;var n=this.b.td,q,p;q=0;for(p=n.length;q<p;++q)if(n[q].type===this){if(0===f)return n[q];--f}return null};tb=function(){return this.Je[this.Ld]};ub=function(){this.Ld++;
this.Ld===this.Je.length?this.Je.push(new nb(this)):(this.Je[this.Ld].wa=!0,A(this.Je[this.Ld].ca))};vb=function(){this.Ld++;this.Ld===this.Je.length&&this.Je.push(new nb(this));var f=this.Je[this.Ld],n=this.Je[this.Ld-1];n.wa?f.wa=!0:(f.wa=!1,Aa(f.j,n.j));A(f.ca)};wb=function(){this.Ld--};xb=function(f){var n,q,p,r,g,a=0;if(!this.I)for(n=0,q=this.Pa.length;n<q;n++)for(g=this.Pa[n],p=0,r=g.Ra.length;p<r;p++){if(f===g.Ra[p].name)return this.J.lastBehIndex=a,g.Ra[p];a++}n=0;for(q=this.Ra.length;n<q;n++){if(f===
this.Ra[n].name)return this.J.lastBehIndex=a,this.Ra[n];a++}return null};yb=function(f){return this.Qk(f)?this.J.lastBehIndex:-1};zb=function(f){var n,q;n=0;for(q=this.U.length;n<q;n++)if(this.U[n].name===f)return n;return-1};Ab=function(){if(this.oc&&!this.I){var f,n,q,p,r,g,a;this.vm();g=this.ea();var e=g.wa,b=(f=this.b.pb())&&f.Zb&&f.Zb.Sc;f=0;for(n=this.zc.length;f<n;f++)if(r=this.zc[f],r!==this&&(r.vm(),a=r.ea(),a.wa=e,!e)){A(a.j);q=0;for(p=g.j.length;q<p;++q)a.j[q]=r.zn(g.j[q].bg);if(b)for(A(a.ca),
q=0,p=g.ca.length;q<p;++q)a.ca[q]=r.zn(g.ca[q].bg)}}};Cb=function(){return"Type"+this.ja};ec=function(f,n,q){if("undefined"===typeof f||"undefined"===typeof q)return!1;switch(n){case 0:return f===q;case 1:return f!==q;case 2:return f<q;case 3:return f<=q;case 4:return f>q;case 5:return f>=q;default:return!1}}})();var mc={};function Z(f){this.b=f}
(function(){function f(){}function k(){}function n(){}var q=!1,p=null,r=null,g="",a=Z.prototype;a.Y=function(a){this.ta=a;this.b=a.b};a.Y.prototype.H=function(){};a.T=function(a){this.type=a;this.b=a.b;this.Lc=this.Td="";this.qc=0;this.timeout=-1;if(q=this.b.bl)p=require("path"),r=require("fs"),g=p.dirname((window.process||nw.process).execPath)+"\\"};var e=a.T.prototype,b=null;window.C2_AJAX_DCSide=function(a,c,e){b&&("success"===a?(b.Lc=c,b.Td=e,b.b.trigger(Z.prototype.e.Qj,b),b.b.trigger(Z.prototype.e.Xh,
b)):"error"===a?(b.Lc=c,b.b.trigger(Z.prototype.e.Rj,b),b.b.trigger(Z.prototype.e.ee,b)):"progress"===a&&(b.qc=e,b.Lc=c,b.b.trigger(Z.prototype.e.Jp,b)))};e.H=function(){b=this};e.kb=function(){return{lastData:this.Td}};e.Db=function(a){this.Td=a.lastData;this.Lc="";this.qc=0};var d={},c="";e.yq=function(a,b,e,f){if(this.b.Kb)AppMobi.webview.execute('C2_AJAX_WebSide("'+a+'", "'+b+'", "'+e+'", '+(f?'"'+f+'"':"null")+");");else{var k=this,h=null,p=function(){k.Lc=a;k.b.trigger(Z.prototype.e.Rj,k);k.b.trigger(Z.prototype.e.ee,
k)},n=function(){if(q){var c=g+b;r.existsSync(c)?r.readFile(c,{encoding:"utf8"},function(b,c){b?p():(k.Lc=a,k.Td=c.replace(/\r\n/g,"\n"),k.b.trigger(Z.prototype.e.Qj,k),k.b.trigger(Z.prototype.e.Xh,k))}):p()}else p()},M=function(b){b.lengthComputable&&(k.qc=b.loaded/b.total,k.Lc=a,k.b.trigger(Z.prototype.e.Jp,k))};try{this.b.tf?h=new ActiveXObject("Microsoft.XMLHTTP"):h=new XMLHttpRequest;h.onreadystatechange=function(){4===h.readyState&&(k.Lc=a,h.responseText?k.Td=h.responseText.replace(/\r\n/g,
"\n"):k.Td="",400<=h.status?(k.b.trigger(Z.prototype.e.Rj,k),k.b.trigger(Z.prototype.e.ee,k)):q&&!k.Td.length||!q&&0===h.status&&!k.Td.length||(k.b.trigger(Z.prototype.e.Qj,k),k.b.trigger(Z.prototype.e.Xh,k)))};this.b.tf||(h.onerror=n,h.ontimeout=n,h.onabort=n,h.onprogress=M);h.open(e,b);!this.b.tf&&0<=this.timeout&&"undefined"!==typeof h.timeout&&(h.timeout=this.timeout);try{h.responseType="text"}catch(w){}f&&h.setRequestHeader&&!d.hasOwnProperty("Content-Type")&&h.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");if(h.setRequestHeader){for(var E in d)if(d.hasOwnProperty(E))try{h.setRequestHeader(E,d[E])}catch(v){}d={}}if(c&&h.overrideMimeType){try{h.overrideMimeType(c)}catch(x){}c=""}f?h.send(f):h.send()}catch(G){n()}}};f.prototype.Xh=function(a){return jb(a,this.Lc)};f.prototype.Qj=function(){return!0};f.prototype.ee=function(a){return jb(a,this.Lc)};f.prototype.Rj=function(){return!0};f.prototype.Jp=function(a){return jb(a,this.Lc)};a.e=new f;k.prototype.jv=function(a,
b){var c=this;this.b.Ji&&!this.b.er(b)?this.b.Gq(b,function(b){c.Lc=a;c.Td=b.replace(/\r\n/g,"\n");c.b.trigger(Z.prototype.e.Qj,c);c.b.trigger(Z.prototype.e.Xh,c)},function(){c.Lc=a;c.b.trigger(Z.prototype.e.Rj,c);c.b.trigger(Z.prototype.e.ee,c)}):this.yq(a,b,"GET")};k.prototype.hv=function(a,b,c,e){this.yq(a,b,e,c)};a.B=new k;n.prototype.su=function(a){a.Xb(this.Td)};a.da=new n})();function qc(f){this.b=f}
(function(){function f(a){-1===qb.indexOf(a)&&qb.push(a)}function k(a){var b=a.q,c;try{c=b.play()}catch(e){f(a);return}c?c.catch(function(){f(a)}):Hc&&!D.Qc&&f(a)}function n(){var a,b,c,e;Ic||Ha||!u||(q(),"running"===u.state&&(Ic=!0));var d=qb.slice(0);A(qb);if(!Y)for(a=0,b=d.length;a<b;++a)c=d[a],c.uc||c.Bc||(e=c.q.play())&&e.catch(function(){f(c)})}function q(){"suspended"===u.state&&u.resume&&u.resume();if(u.createBuffer){var a=u.createBuffer(1,220,22050),b=u.createBufferSource();b.buffer=a;b.connect(u.destination);
e(b)}}function p(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function r(a){a=a.toLowerCase();return ba.hasOwnProperty(a)&&ba[a].length?ba[a][0].Nc():u.destination}function g(){return u.createGain?u.createGain():u.createGainNode()}function a(a){return u.createDelay?u.createDelay(a):u.createDelayNode(a)}function e(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function b(a,b,c,e){a.start?a.start(e||0,b):a.noteGrainOn(e||0,b,c-b)}function d(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function c(a,b,c,e,d,h){this.type="filter";this.Nb=[a,b,c,e,d,h];this.ma=g();this.S=g();this.S.gain.value=h;this.P=g();this.P.gain.value=1-h;this.gb=u.createBiquadFilter();this.gb.type="number"===typeof this.gb.type?a:Lc[a];this.gb.frequency.value=b;this.gb.detune&&(this.gb.detune.value=c);this.gb.Q.value=e;this.gb.gain.value=d;this.ma.connect(this.gb);this.ma.connect(this.P);this.gb.connect(this.S)}function l(b,c,e){this.type="delay";this.Nb=[b,c,e];this.ma=g();this.S=g();this.S.gain.value=e;this.P=
g();this.P.gain.value=1-e;this.$i=g();this.$c=a(b);this.$c.delayTime.value=b;this.xk=g();this.xk.gain.value=c;this.ma.connect(this.$i);this.ma.connect(this.P);this.$i.connect(this.S);this.$i.connect(this.$c);this.$c.connect(this.xk);this.xk.connect(this.$i)}function m(a,b,c,e){this.type="convolve";this.Nb=[b,c,e];this.ma=g();this.S=g();this.S.gain.value=c;this.P=g();this.P.gain.value=1-c;this.Of=u.createConvolver();a&&(this.Of.normalize=b,this.Of.buffer=a);this.ma.connect(this.Of);this.ma.connect(this.P);
this.Of.connect(this.S)}function y(b,c,d,h,f){this.type="flanger";this.Nb=[b,c,d,h,f];this.ma=g();this.P=g();this.P.gain.value=1-f/2;this.S=g();this.S.gain.value=f/2;this.Gk=g();this.Gk.gain.value=h;this.$c=a(b+c);this.$c.delayTime.value=b;this.Fb=u.createOscillator();this.Fb.frequency.value=d;this.Fc=g();this.Fc.gain.value=c;this.ma.connect(this.$c);this.ma.connect(this.P);this.$c.connect(this.S);this.$c.connect(this.Gk);this.Gk.connect(this.$c);this.Fb.connect(this.Fc);this.Fc.connect(this.$c.delayTime);
e(this.Fb)}function K(a,b,c,d,h,f){this.type="phaser";this.Nb=[a,b,c,d,h,f];this.ma=g();this.P=g();this.P.gain.value=1-f/2;this.S=g();this.S.gain.value=f/2;this.gb=u.createBiquadFilter();this.gb.type="number"===typeof this.gb.type?7:"allpass";this.gb.frequency.value=a;this.gb.detune&&(this.gb.detune.value=b);this.gb.Q.value=c;this.Fb=u.createOscillator();this.Fb.frequency.value=h;this.Fc=g();this.Fc.gain.value=d;this.ma.connect(this.gb);this.ma.connect(this.P);this.gb.connect(this.S);this.Fb.connect(this.Fc);
this.Fc.connect(this.gb.frequency);e(this.Fb)}function F(a){this.type="gain";this.Nb=[a];this.qa=g();this.qa.gain.value=a}function h(a,b){this.type="tremolo";this.Nb=[a,b];this.qa=g();this.qa.gain.value=1-b/2;this.Fb=u.createOscillator();this.Fb.frequency.value=a;this.Fc=g();this.Fc.gain.value=b/2;this.Fb.connect(this.Fc);this.Fc.connect(this.qa.gain);e(this.Fb)}function t(a,b){this.type="ringmod";this.Nb=[a,b];this.ma=g();this.S=g();this.S.gain.value=b;this.P=g();this.P.gain.value=1-b;this.rj=g();
this.rj.gain.value=0;this.Fb=u.createOscillator();this.Fb.frequency.value=a;this.Fb.connect(this.rj.gain);e(this.Fb);this.ma.connect(this.rj);this.ma.connect(this.P);this.rj.connect(this.S)}function Q(a,b,c,e,d){this.type="distortion";this.Nb=[a,b,c,e,d];this.ma=g();this.Ll=g();this.Kl=g();this.uz(c,Math.pow(10,e/20));this.S=g();this.S.gain.value=d;this.P=g();this.P.gain.value=1-d;this.zm=u.createWaveShaper();this.vk=new Float32Array(65536);this.Bx(a,b);this.zm.vk=this.vk;this.ma.connect(this.Ll);
this.ma.connect(this.P);this.Ll.connect(this.zm);this.zm.connect(this.Kl);this.Kl.connect(this.S)}function M(a,b,c,e,d){this.type="compressor";this.Nb=[a,b,c,e,d];this.qa=u.createDynamicsCompressor();try{this.qa.threshold.value=a,this.qa.knee.value=b,this.qa.ratio.value=c,this.qa.attack.value=e,this.qa.release.value=d}catch(g){}}function w(a,b){this.type="analyser";this.Nb=[a,b];this.qa=u.createAnalyser();this.qa.fftSize=a;this.qa.smoothingTimeConstant=b;this.zx=new Float32Array(this.qa.frequencyBinCount);
this.bt=new Uint8Array(a);this.ij=0}function E(){this.za=null;this.nl=0}function v(a,b){this.src=a;this.fa=C;this.Rd=b;this.bk=!1;var c=this;this.xh=this.Dh=null;this.Eh=[];this.Xl=0;this.op=this.Ek=this.jt=this.Fl=!1;1===C&&b&&!rb&&(this.fa=0,this.Dh=g());this.he=this.na=null;var e;switch(this.fa){case 0:this.na=new Audio;this.na.crossOrigin="anonymous";this.na.addEventListener("canplaythrough",function(){c.op=!0});1===C&&u.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.jt=!0,
this.na.addEventListener("canplay",function(){!c.xh&&c.na&&(c.xh=u.createMediaElementSource(c.na),c.xh.connect(c.Dh))}));this.na.autoplay=!1;this.na.WA="auto";this.na.src=a;break;case 1:D.Ji?D.Fq(a,function(a){c.he=a;c.tq()},function(){c.Ek=!0}):(e=new XMLHttpRequest,e.open("GET",a,!0),e.responseType="arraybuffer",e.onload=function(){c.he=e.response;c.tq()},e.onerror=function(){c.Ek=!0},e.send());break;case 2:this.na=!0;break;case 3:this.na=!0}}function x(a,b){var c=this;this.tag=b;this.uc=this.Od=
!0;this.src=a.src;this.buffer=a;this.fa=C;this.Rd=a.Rd;this.playbackRate=1;this.$g=!0;this.Bc=this.Uc=!1;this.sc=0;this.Ki=this.fh=this.Ud=!1;this.volume=1;this.uo=function(a){if(!c.Bc&&!c.Uc){var b=this;b||(b=a.target);b===c.$j&&(c.$g=!0,c.uc=!0,V=c.tag,D.trigger(qc.prototype.e.Uj,R))}};this.$j=null;this.bh=1===W&&!this.Rd||2===W;this.zh=1;this.startTime=this.bh?D.sb.R:D.Re.R;this.ib=this.nb=null;this.Wd=!1;this.Lb=null;this.vs=this.us=this.ts=this.rs=this.xs=this.ws=0;this.q=null;var e=!1;1!==this.fa||
0!==this.buffer.fa||this.buffer.jt||(this.fa=0);switch(this.fa){case 0:this.Rd?(this.q=a.na,e=!a.bk,a.bk=!0):(this.q=new Audio,this.q.crossOrigin="anonymous",this.q.autoplay=!1,this.q.src=a.na.src,e=!0);e&&this.q.addEventListener("ended",function(){V=c.tag;c.uc=!0;D.trigger(qc.prototype.e.Uj,R)});break;case 1:this.nb=g();this.nb.connect(r(b));1===this.buffer.fa?a.na&&(this.q=u.createBufferSource(),this.q.buffer=a.na,this.q.connect(this.nb)):(this.q=this.buffer.na,this.buffer.Dh.connect(this.nb),this.buffer.bk||
(this.buffer.bk=!0,this.buffer.na.addEventListener("ended",function(){V=c.tag;c.uc=!0;D.trigger(qc.prototype.e.Uj,R)})));break;case 2:this.q=new window.Media(J+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.$g=!0,c.uc=!0,V=c.tag,D.trigger(qc.prototype.e.Uj,R))});break;case 3:this.q=!0}}function G(a){A(Da);if(a.length){var b,c,e;b=0;for(c=z.length;b<c;b++)e=z[b],jb(a,e.tag)&&Da.push(e)}else I&&!I.ag()&&(A(Da),Da[0]=I)}function H(a,b){ba.hasOwnProperty(a)?ba[a].push(b):ba[a]=[b];
var c,e,d,g,h=u.destination;if(ba.hasOwnProperty(a)&&(d=ba[a],d.length))for(h=d[0].Nc(),c=0,e=d.length;c<e;c++)g=d[c],c+1===e?g.Yc(u.destination):g.Yc(d[c+1].Nc());G(a);c=0;for(e=Da.length;c<e;c++)Da[c].ez(h);Ma&&Jb===a&&(Ma.disconnect(),Ma.connect(h))}function U(){}function O(){}var L=qc.prototype;L.Y=function(a){this.ta=a;this.b=a.b};L.Y.prototype.H=function(){};var D=null,R=null,V="",J="",C=0,u=null,B=[],z=[],I=null,P=!1,W=0,Y=!1,S=1,na=0,ia=0,Ha=!1,Ib=1,Hb=1,Dc=10,Fc=1E4,Gc=1,Ma=null,Jb="",Hc=
!1,qb=[],rb=!1,Ic=!1;document.addEventListener("pointerup",n,!0);document.addEventListener("touchend",n,!0);document.addEventListener("click",n,!0);document.addEventListener("keydown",n,!0);document.addEventListener("gamepadconnected",n,!0);var ba={},Lc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");c.prototype.Yc=function(a){this.S.disconnect();this.S.connect(a);this.P.disconnect();this.P.connect(a)};c.prototype.remove=function(){this.ma.disconnect();this.gb.disconnect();
this.S.disconnect();this.P.disconnect()};c.prototype.Nc=function(){return this.ma};l.prototype.Yc=function(a){this.S.disconnect();this.S.connect(a);this.P.disconnect();this.P.connect(a)};l.prototype.remove=function(){this.ma.disconnect();this.$i.disconnect();this.$c.disconnect();this.xk.disconnect();this.S.disconnect();this.P.disconnect()};l.prototype.Nc=function(){return this.ma};m.prototype.Yc=function(a){this.S.disconnect();this.S.connect(a);this.P.disconnect();this.P.connect(a)};m.prototype.remove=
function(){this.ma.disconnect();this.Of.disconnect();this.S.disconnect();this.P.disconnect()};m.prototype.Nc=function(){return this.ma};y.prototype.Yc=function(a){this.P.disconnect();this.P.connect(a);this.S.disconnect();this.S.connect(a)};y.prototype.remove=function(){this.ma.disconnect();this.$c.disconnect();this.Fb.disconnect();this.Fc.disconnect();this.P.disconnect();this.S.disconnect();this.Gk.disconnect()};y.prototype.Nc=function(){return this.ma};K.prototype.Yc=function(a){this.P.disconnect();
this.P.connect(a);this.S.disconnect();this.S.connect(a)};K.prototype.remove=function(){this.ma.disconnect();this.gb.disconnect();this.Fb.disconnect();this.Fc.disconnect();this.P.disconnect();this.S.disconnect()};K.prototype.Nc=function(){return this.ma};F.prototype.Yc=function(a){this.qa.disconnect();this.qa.connect(a)};F.prototype.remove=function(){this.qa.disconnect()};F.prototype.Nc=function(){return this.qa};h.prototype.Yc=function(a){this.qa.disconnect();this.qa.connect(a)};h.prototype.remove=
function(){this.Fb.disconnect();this.Fc.disconnect();this.qa.disconnect()};h.prototype.Nc=function(){return this.qa};t.prototype.Yc=function(a){this.S.disconnect();this.S.connect(a);this.P.disconnect();this.P.connect(a)};t.prototype.remove=function(){this.Fb.disconnect();this.rj.disconnect();this.ma.disconnect();this.S.disconnect();this.P.disconnect()};t.prototype.Nc=function(){return this.ma};Q.prototype.uz=function(a,b){.01>a&&(a=.01);this.Ll.gain.value=a;this.Kl.gain.value=Math.pow(1/a,.6)*b};
Q.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};Q.prototype.Bx=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,g=0;32768>g;++g)d=g/32768,d=this.shape(d,c,e),this.vk[32768+g]=d,this.vk[32768-g-1]=-d};Q.prototype.Yc=function(a){this.S.disconnect();this.S.connect(a);this.P.disconnect();this.P.connect(a)};Q.prototype.remove=function(){this.ma.disconnect();this.Ll.disconnect();this.zm.disconnect();this.Kl.disconnect();
this.S.disconnect();this.P.disconnect()};Q.prototype.Nc=function(){return this.ma};M.prototype.Yc=function(a){this.qa.disconnect();this.qa.connect(a)};M.prototype.remove=function(){this.qa.disconnect()};M.prototype.Nc=function(){return this.qa};w.prototype.ab=function(){this.qa.getFloatFrequencyData(this.zx);this.qa.getByteTimeDomainData(this.bt);for(var a=this.qa.fftSize,b=0,c=this.ij=0,e=0;b<a;b++)e=(this.bt[b]-128)/128,0>e&&(e=-e),this.ij<e&&(this.ij=e),c+=e*e;this.ij=p(this.ij);p(Math.sqrt(c/
a))};w.prototype.Yc=function(a){this.qa.disconnect();this.qa.connect(a)};w.prototype.remove=function(){this.qa.disconnect()};w.prototype.Nc=function(){return this.qa};E.prototype.sj=function(a){this.za=a};E.prototype.Vk=function(){return!!this.za};E.prototype.ab=function(){};v.prototype.fz=function(){var a,b,c,e;c=a=0;for(b=z.length;a<b;++a)e=z[a],z[c]=e,e.buffer===this?e.stop():++c;z.length=c;this.xh&&(this.xh.disconnect(),this.xh=null);this.Dh&&(this.Dh.disconnect(),this.Dh=null);this.he=this.na=
null};v.prototype.tq=function(){if(!this.na&&this.he){var a=this;if(u.decodeAudioData)u.decodeAudioData(this.he,function(b){a.na=b;a.he=null;var c,e,d;if(ga(a.Hl)||Y)ga(a.rk)||(c=a.rk.Of,c.normalize=a.$r,c.buffer=b);else if(a.Eh.length){c=0;for(e=a.Eh.length;c<e;c++){b=a.Eh[c];d=new x(a,b.mt);d.Ro(!0);if("undefined"!==typeof b.bs&&(b.za=D.Yf(b.bs),!b.za))continue;if(b.za){var g=Ra(b.za.x,b.za.y,-b.za.k.ob(),na,ia,!0),h=Ra(b.za.x,b.za.y,-b.za.k.ob(),na,ia,!1);d.Qo(g,h,Ga(b.za.n-b.za.k.ob()),b.In,b.no,
b.qo);d.sj(b.za)}else d.Qo(b.x,b.y,b.Lv,b.In,b.no,b.qo);d.play(a.io,a.mp,a.Xl);a.Fl&&d.pause();z.push(d)}A(a.Eh)}else d=new x(a,a.Hl||""),d.play(a.io,a.mp,a.Xl),a.Fl&&d.pause(),z.push(d)},function(){a.Ek=!0});else if(this.na=u.createBuffer(this.he,!1),this.he=null,ga(this.Hl)||Y)ga(this.rk)||(b=this.rk.Of,b.normalize=this.$r,b.buffer=this.na);else{var b=new x(this,this.Hl);b.play(this.io,this.mp,this.Xl);this.Fl&&b.pause();z.push(b)}}};v.prototype.hr=function(){switch(this.fa){case 0:var a=4<=this.na.readyState;
a&&(this.op=!0);return a||this.op;case 1:return!!this.he||!!this.na;case 2:return!0;case 3:return!0}return!1};v.prototype.qy=function(){switch(this.fa){case 0:return this.hr();case 1:return!!this.na;case 2:return!0;case 3:return!0}return!1};v.prototype.fy=function(){switch(this.fa){case 0:return!!this.na.error;case 1:return this.Ek}return!1};x.prototype.ag=function(){switch(this.fa){case 0:return this.q.ended;case 1:return 1===this.buffer.fa?!this.Od&&!this.uc&&this.q.loop||this.Bc?!1:this.$g:this.q.ended;
case 2:return this.$g;case 3:!0}return!0};x.prototype.$v=function(){return this.Od||this.uc?!0:this.ag()};x.prototype.Ro=function(a){1===C&&(!this.Wd&&a?this.nb&&(this.ib||(this.ib=u.createPanner(),this.ib.panningModel="number"===typeof this.ib.panningModel?Ib:["equalpower","HRTF","soundfield"][Ib],this.ib.distanceModel="number"===typeof this.ib.distanceModel?Hb:["linear","inverse","exponential"][Hb],this.ib.refDistance=Dc,this.ib.maxDistance=Fc,this.ib.rolloffFactor=Gc),this.nb.disconnect(),this.nb.connect(this.ib),
this.ib.connect(r(this.tag)),this.Wd=!0):this.Wd&&!a&&this.nb&&(this.ib.disconnect(),this.nb.disconnect(),this.nb.connect(r(this.tag)),this.Wd=!1))};x.prototype.Qo=function(a,b,c,e,d,g){this.Wd&&1===C&&(this.ib.setPosition(a,b,0),this.ib.setOrientation(Math.cos(N(c)),Math.sin(N(c)),0),this.ib.coneInnerAngle=e,this.ib.coneOuterAngle=d,this.ib.coneOuterGain=g,this.ws=a,this.xs=b,this.rs=c,this.ts=e,this.us=d,this.vs=g)};x.prototype.sj=function(a){this.Wd&&1===C&&(this.Lb||(this.Lb=new E),this.Lb.sj(a))};
x.prototype.ab=function(a){if(this.Wd&&1===C&&this.Lb&&this.Lb.Vk()&&this.ah()){this.Lb.ab(a);a=this.Lb.za;var b=Ra(a.x,a.y,-a.k.ob(),na,ia,!0),c=Ra(a.x,a.y,-a.k.ob(),na,ia,!1);this.ib.setPosition(b,c,0);b=0;"undefined"!==typeof this.Lb.za.n&&(b=a.n-a.k.ob(),this.ib.setOrientation(Math.cos(b),Math.sin(b),0))}};x.prototype.play=function(a,c,d,g){var h=this.q;this.Ud=a;this.volume=c;d=d||0;g=g||0;switch(this.fa){case 0:1!==h.playbackRate&&(h.playbackRate=1);h.volume!==c*S&&(h.volume=c*S);h.loop!==a&&
(h.loop=a);h.muted&&(h.muted=!1);if(h.currentTime!==d)try{h.currentTime=d}catch(f){}k(this);break;case 1:this.muted=!1;this.zh=1;if(1===this.buffer.fa)this.nb.gain.value=c*S,this.Od||(this.q=u.createBufferSource(),this.q.buffer=this.buffer.na,this.q.connect(this.nb)),this.q.onended=this.uo,this.$j=this.q,this.q.loop=a,this.$g=!1,0===d?e(this.q,g):b(this.q,d,this.Xf(),g);else{1!==h.playbackRate&&(h.playbackRate=1);h.loop!==a&&(h.loop=a);h.volume=c*S;if(h.currentTime!==d)try{h.currentTime=d}catch(l){}k(this)}break;
case 2:(!this.Od&&this.uc||0!==d)&&h.seekTo(d);h.play();this.$g=!1;break;case 3:D.Kb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.bh?D.sb.R:D.Re.R)-d;this.Bc=this.uc=this.Od=!1};x.prototype.stop=function(){switch(this.fa){case 0:this.q.paused||this.q.pause();break;case 1:1===this.buffer.fa?d(this.q):this.q.paused||this.q.pause();break;case 2:this.q.stop();break;case 3:D.Kb&&AppMobi.context.stopSound(this.src)}this.uc=!0;this.Bc=
!1};x.prototype.pause=function(){if(!(this.Od||this.uc||this.ag()||this.Bc)){switch(this.fa){case 0:this.q.paused||this.q.pause();break;case 1:1===this.buffer.fa?(this.sc=this.Bn(!0),this.Ud&&(this.sc=this.sc%this.Xf()),this.Bc=!0,d(this.q)):this.q.paused||this.q.pause();break;case 2:this.q.pause();break;case 3:D.Kb&&AppMobi.context.stopSound(this.src)}this.Bc=!0}};x.prototype.jz=function(){if(!(this.Od||this.uc||this.ag())&&this.Bc){switch(this.fa){case 0:k(this);break;case 1:1===this.buffer.fa?
(this.q=u.createBufferSource(),this.q.buffer=this.buffer.na,this.q.connect(this.nb),this.q.onended=this.uo,this.$j=this.q,this.q.loop=this.Ud,this.nb.gain.value=S*this.volume*this.zh,this.wm(),this.startTime=(this.bh?D.sb.R:D.Re.R)-this.sc/(this.playbackRate||.001),b(this.q,this.sc,this.Xf())):k(this);break;case 2:this.q.play();break;case 3:D.Kb&&AppMobi.context.resumeSound(this.src)}this.Bc=!1}};x.prototype.seek=function(a){if(!(this.Od||this.uc||this.ag()))switch(this.fa){case 0:try{this.q.currentTime=
a}catch(b){}break;case 1:if(1===this.buffer.fa)this.Bc?this.sc=a:(this.pause(),this.sc=a,this.jz());else try{this.q.currentTime=a}catch(c){}break;case 3:D.Kb&&AppMobi.context.seekSound(this.src,a)}};x.prototype.ez=function(a){1===this.fa&&(this.Wd?(this.ib.disconnect(),this.ib.connect(a)):(this.nb.disconnect(),this.nb.connect(a)))};x.prototype.Xf=function(){var a=0;switch(this.fa){case 0:"undefined"!==typeof this.q.duration&&(a=this.q.duration);break;case 1:a=this.buffer.na.duration;break;case 2:a=
this.q.getDuration();break;case 3:D.Kb&&(a=AppMobi.context.getDurationSound(this.src))}return a};x.prototype.Bn=function(a){var b=this.Xf(),c=0;switch(this.fa){case 0:"undefined"!==typeof this.q.currentTime&&(c=this.q.currentTime);break;case 1:if(1===this.buffer.fa){if(this.Bc)return this.sc;c=(this.bh?D.sb.R:D.Re.R)-this.startTime}else"undefined"!==typeof this.q.currentTime&&(c=this.q.currentTime);break;case 3:D.Kb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Ud&&
c>b&&(c=b);return c};x.prototype.ah=function(){return!this.Bc&&!this.Od&&!this.uc&&!this.ag()};x.prototype.zz=function(){return!this.Od&&!this.uc&&!this.ag()};x.prototype.Jz=function(){var a=this.volume*S;isFinite(a)||(a=0);switch(this.fa){case 0:"undefined"!==typeof this.q.volume&&this.q.volume!==a&&(this.q.volume=a);break;case 1:1===this.buffer.fa?this.nb.gain.value=a*this.zh:"undefined"!==typeof this.q.volume&&this.q.volume!==a&&(this.q.volume=a)}};x.prototype.Bk=function(a){switch(this.fa){case 0:this.q.muted!==
!!a&&(this.q.muted=!!a);break;case 1:1===this.buffer.fa?(this.zh=a?0:1,this.nb.gain.value=S*this.volume*this.zh):this.q.muted!==!!a&&(this.q.muted=!!a)}};x.prototype.vz=function(){this.fh=!0;this.Bk(this.fh||this.Ki)};x.prototype.$l=function(a){this.Ki=!!a;this.Bk(this.fh||this.Ki)};x.prototype.wm=function(){var a=this.playbackRate;this.bh&&(a*=D.Cg);switch(this.fa){case 0:this.q.playbackRate!==a&&(this.q.playbackRate=a);break;case 1:1===this.buffer.fa?this.q.playbackRate.value!==a&&(this.q.playbackRate.value=
a):this.q.playbackRate!==a&&(this.q.playbackRate=a)}};x.prototype.xz=function(a){switch(this.fa){case 0:a?this.ah()?(this.Uc=!0,this.q.pause()):this.Uc=!1:this.Uc&&(this.q.play(),this.Uc=!1);break;case 1:a?this.ah()?(this.Uc=!0,1===this.buffer.fa?(this.sc=this.Bn(!0),this.Ud&&(this.sc=this.sc%this.Xf()),d(this.q)):this.q.pause()):this.Uc=!1:this.Uc&&(1===this.buffer.fa?(this.q=u.createBufferSource(),this.q.buffer=this.buffer.na,this.q.connect(this.nb),this.q.onended=this.uo,this.$j=this.q,this.q.loop=
this.Ud,this.nb.gain.value=S*this.volume*this.zh,this.wm(),this.startTime=(this.bh?D.sb.R:D.Re.R)-this.sc/(this.playbackRate||.001),b(this.q,this.sc,this.Xf())):this.q.play(),this.Uc=!1);break;case 2:a?this.ah()?(this.q.pause(),this.Uc=!0):this.Uc=!1:this.Uc&&(this.Uc=!1,this.q.play())}};L.T=function(a){this.type=a;D=this.b=a.b;R=this;this.Dc=null;this.Ri=-600;this.b.Ji&&(rb=!0);!(this.b.ih||this.b.Di&&(this.b.On||this.b.Zk))||this.b.al||this.b.Za||this.b.fr||rb||(Hc=!0);u=null;"undefined"!==typeof AudioContext?
(C=1,u=new AudioContext):"undefined"!==typeof webkitAudioContext&&(C=1,u=new webkitAudioContext);this.b.ih&&u&&(u.close&&u.close(),"undefined"!==typeof AudioContext?u=new AudioContext:"undefined"!==typeof webkitAudioContext&&(u=new webkitAudioContext));1!==C&&(this.b.Pc&&"undefined"!==typeof window.Media?C=2:this.b.gr&&(C=3));2===C&&(J=location.href,a=J.lastIndexOf("/"),-1<a&&(J=J.substr(0,a+1)),J=J.replace("file://",""));if(this.b.ry&&this.b.ty&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),
this.b.Ue(this);else{if(this.b.Kb)P=this.b.Di;else try{P=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.dl}catch(b){P=!1}this.b.Gj(this)}};var ua=L.T.prototype;ua.H=function(){this.b.Ig=this;W=this.A[0];this.Fe=this.A[1];this.Ty=0!==this.A[2];this.Yr=0;Ib=this.A[3];Hb=this.A[4];this.Ri=-this.A[5];Dc=this.A[6];Fc=this.A[7];Gc=this.A[8];this.Dc=new E;var a=this.b.N||this.b.width,b=this.b.M||this.b.height;1===C&&(u.listener.setPosition(a/2,b/2,this.Ri),u.listener.setOrientation(0,0,
1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ma&&Ma.disconnect();Jb=b.toLowerCase();Ma=u.createMediaStreamSource(a);Ma.connect(r(Jb))});this.b.aq(function(a){R.Oy(a)});var c=this;this.b.ak(function(a){c.fj(a)})};ua.fj=function(a){var b,c,e;b=0;for(c=z.length;b<c;b++)e=z[b],e.Lb&&e.Lb.za===a&&(e.Lb.za=null,e.Wd&&e.ah()&&e.Ud&&e.stop());this.Dc.za===a&&(this.Dc.za=null)};ua.kb=function(){var a={silent:Y,masterVolume:S,listenerZ:this.Ri,listenerUid:this.Dc.Vk()?this.Dc.za.uid:-1,playing:[],effects:{}},
b=a.playing,c,e,d,g,h,f;c=0;for(e=z.length;c<e;c++)d=z[c],!d.zz()||3===this.Fe||d.Rd&&1===this.Fe||!d.Rd&&2===this.Fe||(g=d.Bn(),d.Ud&&(g=g%d.Xf()),g={tag:d.tag,buffersrc:d.buffer.src,is_music:d.Rd,playbackTime:g,volume:d.volume,looping:d.Ud,muted:d.fh,playbackRate:d.playbackRate,paused:d.Bc,resume_position:d.sc},d.Wd&&(g.pan={},f=g.pan,d.Lb&&d.Lb.Vk()?f.objUid=d.Lb.za.uid:(f.x=d.ws,f.y=d.xs,f.a=d.rs),f.ia=d.ts,f.oa=d.us,f.og=d.vs),b.push(g));b=a.effects;for(h in ba)if(ba.hasOwnProperty(h)){d=[];
c=0;for(e=ba[h].length;c<e;c++)d.push({type:ba[h][c].type,params:ba[h][c].Nb});b[h]=d}return a};var $a=[];ua.Db=function(a){var b=a.silent;S=a.masterVolume;this.Ri=a.listenerZ;this.Dc.sj(null);var e=a.listenerUid;-1!==e&&(this.Dc.nl=e,$a.push(this.Dc));var e=a.playing,d,g,f,k,p,r,n,q,x,v,L;if(3!==this.Fe)for(d=0,g=z.length;d<g;d++)x=z[d],x.Rd&&1===this.Fe||(x.Rd||2!==this.Fe)&&x.stop();for(p in ba)if(ba.hasOwnProperty(p))for(d=0,g=ba[p].length;d<g;d++)ba[p][d].remove();Va(ba);for(p in a.effects)if(a.effects.hasOwnProperty(p))for(r=
a.effects[p],d=0,g=r.length;d<g;d++)switch(f=r[d].type,v=r[d].params,f){case "filter":H(p,new c(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":H(p,new l(v[0],v[1],v[2]));break;case "convolve":f=v[2];x=this.Pk(f,!1);x.na?f=new m(x.na,v[0],v[1],f):(f=new m(null,v[0],v[1],f),x.$r=v[0],x.rk=f);H(p,f);break;case "flanger":H(p,new y(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":H(p,new K(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":H(p,new F(v[0]));break;case "tremolo":H(p,new h(v[0],v[1]));break;
case "ringmod":H(p,new t(v[0],v[1]));break;case "distortion":H(p,new Q(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":H(p,new M(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":H(p,new w(v[0],v[1]))}d=0;for(g=e.length;d<g;d++)3===this.Fe||(a=e[d],f=a.buffersrc,k=a.is_music,p=a.tag,r=a.playbackTime,n=a.looping,q=a.volume,L=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,k&&1===this.Fe)||!k&&2===this.Fe||((x=this.Lq(f,p,k,n,q))?(x.sc=a.resume_position,x.Ro(!!v),x.play(n,q,r),x.wm(),x.Jz(),x.Bk(x.fh||
x.Ki),a.paused&&x.pause(),a.muted&&x.vz(),x.Bk(x.fh||x.Ki),v&&(-1!==L?(x.Lb=x.Lb||new E,x.Lb.nl=L,$a.push(x.Lb)):x.Qo(v.x,v.y,v.a,v.ia,v.oa,v.og))):(x=this.Pk(f,k),x.Xl=r,x.Fl=a.paused,v&&(-1!==L?x.Eh.push({bs:L,In:v.ia,no:v.oa,qo:v.og,mt:p}):x.Eh.push({x:v.x,y:v.y,Lv:v.a,In:v.ia,no:v.oa,qo:v.og,mt:p}))));if(b&&!Y){d=0;for(g=z.length;d<g;d++)z[d].$l(!0);Y=!0}else if(!b&&Y){d=0;for(g=z.length;d<g;d++)z[d].$l(!1);Y=!1}};ua.nd=function(){var a,b,c,e;a=0;for(b=$a.length;a<b;a++)c=$a[a],e=this.b.Yf(c.nl),
c.sj(e),c.nl=-1,e&&(na=e.x,ia=e.y);A($a)};ua.Oy=function(a){if(!this.Ty){!a&&u&&u.resume&&(u.resume(),Ha=!1);var b,c;b=0;for(c=z.length;b<c;b++)z[b].xz(a);a&&u&&u.suspend&&(u.suspend(),Ha=!0)}};ua.ab=function(){var a=this.b.Rf,b,c,e;b=0;for(c=z.length;b<c;b++)e=z[b],e.ab(a),0!==W&&e.wm();var d,g;for(d in ba)if(ba.hasOwnProperty(d))for(e=ba[d],b=0,c=e.length;b<c;b++)g=e[b],g.ab&&g.ab();1===C&&this.Dc.Vk()&&(this.Dc.ab(a),na=this.Dc.za.x,ia=this.Dc.za.y,u.listener.setPosition(this.Dc.za.x,this.Dc.za.y,
this.Ri))};var ab=[];ua.wz=function(a){var b,c,e,d,g,h=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],d=e[0],e=2*e[1],(g=4<d.length&&".ogg"===d.substr(d.length-4))&&P||!g&&!P)ab.push({filename:d,size:e,za:null}),h+=e;return h};ua.Bz=function(){var a,b,c,e;a=0;for(b=ab.length;a<b;++a)c=ab[a],e=this.b.pn+c.filename,c.za=this.Pk(e,!1)};ua.Kx=function(){var a=0,b,c,e;b=0;for(c=ab.length;b<c;++b)e=ab[b],e.za.qy()||e.za.fy()||this.b.Za||this.b.Zk?a+=e.size:e.za.hr()&&(a+=Math.floor(e.size/2));return a};ua.gz=function(){var a,
b,c,e;c=a=0;for(b=B.length;a<b;++a)e=B[a],B[c]=e,e.Rd?e.fz():++c;B.length=c};ua.Pk=function(a,b){var c,e,d,g=null;c=0;for(e=B.length;c<e;c++)if(d=B[c],d.src===a){g=d;break}g||(rb&&b&&this.gz(),g=new v(a,b),B.push(g));return g};ua.Lq=function(a,b,c,e,d){var g,h,f;g=0;for(h=z.length;g<h;g++)if(f=z[g],f.src===a&&(f.$v()||c))return f.tag=b,f;a=this.Pk(a,c);if(!a.na)return"<preload>"!==b&&(a.Hl=b,a.io=e,a.mp=d),null;f=new x(a,b);z.push(f);return f};var Da=[];U.prototype.Uj=function(a){return jb(V,a)};
U.prototype.nu=function(){return Y};U.prototype.ou=function(a){G(a);var b;a=0;for(b=Da.length;a<b;a++)if(Da[a].ah())return!0;return!1};L.e=new U;O.prototype.Play=function(a,b,c,e){!Y&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),I=this.Lq(this.b.pn+a[0]+(P?".ogg":".m4a"),e,a[1],0!==b,c))&&(I.Ro(!1),I.play(0!==b,c,0,this.Yr),this.Yr=0)};O.prototype.Fv=function(a){G(a);var b;a=0;for(b=Da.length;a<b;a++)Da[a].stop()};O.prototype.wv=function(a){var b;2===a&&(a=Y?1:0);if(0===a&&!Y){a=
0;for(b=z.length;a<b;a++)z[a].$l(!0);Y=!0}else if(1===a&&Y){a=0;for(b=z.length;a<b;a++)z[a].$l(!1);Y=!1}};L.B=new O;L.da=new function(){}})();function rc(f){this.b=f}
(function(){function f(){p&&r&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(a){g.Ny(a)})}function k(){}var n=rc.prototype;n.Y=function(a){this.ta=a;this.b=a.b};var q=n.Y.prototype;q.H=function(){};var p=!1,r=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var a=document.createElement("script");a.onload=function(){p=!0;f()};a.src="offlineClient.js";document.head.appendChild(a)}});var g=null;q.gs=function(){r=
!0;f()};n.T=function(a){this.type=a;this.b=a.b};q=n.T.prototype;q.H=function(){var a=this;window.addEventListener("resize",function(){a.b.trigger(rc.prototype.e.Yu,a)});g=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(rc.prototype.e.Uu,a)}),window.addEventListener("offline",function(){a.b.trigger(rc.prototype.e.Su,a)}));this.b.Kb||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(rc.prototype.e.Dm,a)}),document.addEventListener("backbutton",
function(){a.b.trigger(rc.prototype.e.Sj,a)}),document.addEventListener("menubutton",function(){a.b.trigger(rc.prototype.e.Gp,a)}),document.addEventListener("searchbutton",function(){a.b.trigger(rc.prototype.e.Zu,a)}),document.addEventListener("tizenhwkey",function(e){var b;switch(e.keyName){case "back":b=a.b.trigger(rc.prototype.e.Sj,a);!b&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(b=a.b.trigger(rc.prototype.e.Gp,a))||e.preventDefault()}}));this.b.dl&&
"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(e){a.b.trigger(rc.prototype.e.Sj,a)&&(e.handled=!0)}):this.b.kr&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(rc.prototype.e.Sj,a)});this.b.aq(function(e){e?a.b.trigger(rc.prototype.e.Vu,a):a.b.trigger(rc.prototype.e.Wu,a)})};q.Ny=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(rc.prototype.e.bv,this):"update-ready"===
a||"update-pending"===a?this.b.trigger(rc.prototype.e.Dm,this):"offline-ready"===a&&this.b.trigger(rc.prototype.e.Tu,this)};k.prototype.Uu=function(){return!0};k.prototype.Su=function(){return!0};k.prototype.Dm=function(){return!0};k.prototype.Wu=function(){return!0};k.prototype.Vu=function(){return!0};k.prototype.Yu=function(){return!0};k.prototype.Sj=function(){return!0};k.prototype.Gp=function(){return!0};k.prototype.Zu=function(){return!0};k.prototype.bv=function(){return!0};k.prototype.Dm=function(){return!0};
k.prototype.Tu=function(){return!0};n.e=new k;n.B=new function(){};n.da=new function(){}})();function pc(f){this.b=f}
(function(){function f(){this.name="";this.pj=0;this.Nb=[]}function k(){a++;a===g.length&&g.push(new f);return g[a]}function n(){}function q(){}function p(){}var r=pc.prototype;r.Y=function(a){this.ta=a;this.b=a.b};r.Y.prototype.H=function(){};r.T=function(a){this.type=a;this.b=a.b};var g=[],a=-1;r.T.prototype.H=function(){var e=this;window.c2_callFunction=function(b,d){var c,g,f,p=k();p.name=b.toLowerCase();p.pj=0;if(d)for(p.Nb.length=d.length,c=0,g=d.length;c<g;++c)f=d[c],p.Nb[c]="number"===typeof f||
"string"===typeof f?f:"boolean"===typeof f?f?1:0:0;else A(p.Nb);e.b.trigger(pc.prototype.e.Vj,e,p.name);a--;return p.pj}};n.prototype.Vj=function(e){var b=0>a?null:g[a];return b?jb(e,b.name):!1};r.e=new n;q.prototype.CallFunction=function(e,b){var d=k();d.name=e.toLowerCase();d.pj=0;Aa(d.Nb,b);this.b.trigger(pc.prototype.e.Vj,this,d.name);a--};r.B=new q;p.prototype.Jt=function(e,b){var d=k();d.name=b.toLowerCase();d.pj=0;A(d.Nb);var c,g;c=2;for(g=arguments.length;c<g;c++)d.Nb.push(arguments[c]);this.b.trigger(pc.prototype.e.Vj,
this,d.name);a--;e.So(d.pj)};r.da=new p})();function sc(f){this.b=f}
(function(){function f(){}var k=sc.prototype;k.Y=function(f){this.ta=f;this.b=f.b};k.Y.prototype.H=function(){};k.T=function(f){this.type=f;this.b=f.b;this.mh=Array(256);this.Ij=Array(256);this.Ne=0};var n=k.T.prototype;n.H=function(){var f=this;this.b.Za||(jQuery(document).keydown(function(k){f.ro(k)}),jQuery(document).keyup(function(k){f.so(k)}))};var q=[32,33,34,35,36,37,38,39,40,44];n.ro=function(f){var k=!1;window!=window.top&&-1<q.indexOf(f.which)&&(f.preventDefault(),k=!0,f.stopPropagation());
if(this.mh[f.which])this.Ij[f.which]&&!k&&f.preventDefault();else{this.mh[f.which]=!0;this.Ne=f.which;this.b.Qc=!0;this.b.trigger(sc.prototype.e.Bu,this);var g=this.b.trigger(sc.prototype.e.Ap,this),a=this.b.trigger(sc.prototype.e.Ou,this);this.b.Qc=!1;if(g||a)this.Ij[f.which]=!0,k||f.preventDefault()}};n.so=function(f){this.mh[f.which]=!1;this.Ne=f.which;this.b.Qc=!0;this.b.trigger(sc.prototype.e.wp,this);var k=this.b.trigger(sc.prototype.e.Cp,this),g=this.b.trigger(sc.prototype.e.Bp,this);this.b.Qc=
!1;if(k||g||this.Ij[f.which])this.Ij[f.which]=!0,f.preventDefault()};n.ug=function(){var f;for(f=0;256>f;++f)if(this.mh[f]){this.mh[f]=!1;this.Ne=f;this.b.trigger(sc.prototype.e.wp,this);var k=this.b.trigger(sc.prototype.e.Cp,this),g=this.b.trigger(sc.prototype.e.Bp,this);if(k||g)this.Ij[f]=!0}};n.kb=function(){return{triggerKey:this.Ne}};n.Db=function(f){this.Ne=f.triggerKey};f.prototype.ju=function(f){return this.mh[f]};f.prototype.Ap=function(f){return f===this.Ne};f.prototype.Bu=function(){return!0};
f.prototype.wp=function(){return!0};f.prototype.Cp=function(f){return f===this.Ne};f.prototype.Ou=function(f){return f===this.Ne};f.prototype.Bp=function(f){return f===this.Ne};k.e=new f;k.B=new function(){};k.da=new function(){}})();var tc=!1;
try{!function(){var f,k,n;!function(){var q={},p={};f=function(f,g,a){q[f]={kw:g,Zv:a}};n=k=function(f){function g(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=f.split("/").slice(0,-1),c=0,e=a.length;e>c;c++){var d=a[c];".."===d?b.pop():"."!==d&&b.push(d)}return b.join("/")}if(n.EA=q,p[f])return p[f];if(p[f]={},!q[f])throw Error("Could not find module "+f);for(var a,e=q[f],b=e.kw,e=e.Zv,d=[],c=0,l=b.length;l>c;c++)"exports"===b[c]?d.push(a={}):d.push(k(g(b[c])));b=e.apply(this,d);return p[f]=
a||b}}();f("promise/all",["./utils","exports"],function(f,k){var n=f.isArray,g=f.isFunction;k.all=function(a){if(!n(a))throw new TypeError("You must pass an array to all.");return new this(function(e,b){function d(a){return function(b){f[a]=b;0===--m&&e(f)}}var c,f=[],m=a.length;0===m&&e([]);for(var k=0;k<a.length;k++)(c=a[k])&&g(c.then)?c.then(d(k),b):(f[k]=c,0===--m&&e(f))})}});f("promise/asap",["exports"],function(f){function k(){return function(){process.VA(a)}}function n(){var b=0,c=new d(a),
e=document.createTextNode("");return c.observe(e,{characterData:!0}),function(){e.data=b=++b%2}}function g(){return function(){c.setTimeout(a,1)}}function a(){for(var a=0;a<l.length;a++){var b=l[a];(0,b[0])(b[1])}l=[]}var e,b="undefined"!=typeof window?window:{},d=b.MutationObserver||b.WebKitMutationObserver,c="undefined"!=typeof global?global:void 0===this?window:this,l=[];e="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?k():d?n():g();f.Tv=function(a,b){1===l.push([a,
b])&&e()}});f("promise/config",["exports"],function(f){var k={NA:!1};f.pq=k;f.dw=function(f,g){return 2!==arguments.length?k[f]:void(k[f]=g)}});f("promise/polyfill",["./promise","./utils","exports"],function(f,k,n){var g=f.Promise,a=k.isFunction;n.Uy=function(){var e;e="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in e&&"resolve"in e.Promise&&"reject"in e.Promise&&"all"in e.Promise&&"race"in e.Promise&&function(){var b;return new e.Promise(function(a){b=
a}),a(b)}()||(e.Promise=g)}});f("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(f,k,n,g,a,e,b,d){function c(a){if(!x(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof c))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.Zj=[];l(a,this)}function l(a,b){function c(a){h(b,
a)}function e(a){Q(b,a)}try{a(c,e)}catch(d){e(d)}}function m(a,b,c,e){var d,g,f,l,k=x(c);if(k)try{d=c(e),f=!0}catch(m){l=!0,g=m}else d=e,f=!0;F(b,d)||(k&&f?h(b,d):l?Q(b,g):a===U?h(b,d):a===O&&Q(b,d))}function y(a,b,c,e){a=a.Zj;var d=a.length;a[d]=b;a[d+U]=c;a[d+O]=e}function K(a,b){for(var c,e,d=a.Zj,g=a.Yj,f=0;f<d.length;f+=3)c=d[f],e=d[f+b],m(b,c,e,g);a.Zj=null}function F(a,b){var c,e=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(v(b)&&(e=b.then,
x(e)))return e.call(b,function(e){return c?!0:(c=!0,void(b!==e?h(a,e):t(a,e)))},function(b){return c?!0:(c=!0,void Q(a,b))}),!0}catch(d){return c?!0:(Q(a,d),!0)}return!1}function h(a,b){a===b?t(a,b):F(a,b)||t(a,b)}function t(a,b){a.fe===G&&(a.fe=H,a.Yj=b,E.async(M,a))}function Q(a,b){a.fe===G&&(a.fe=H,a.Yj=b,E.async(w,a))}function M(a){K(a,a.fe=U)}function w(a){K(a,a.fe=O)}var E=f.pq,v=(f.dw,k.Hy),x=k.isFunction;f=(k.now,n.all);g=g.race;a=a.resolve;e=e.reject;E.async=b.Tv;var G=void 0,H=0,U=1,O=2;
c.prototype={constructor:c,fe:void 0,Yj:void 0,Zj:void 0,then:function(a,b){var c=this,e=new this.constructor(function(){});if(this.fe){var d=arguments;E.async(function(){m(c.fe,e,d[c.fe-1],c.Yj)})}else y(this,e,a,b);return e},"catch":function(a){return this.then(null,a)}};c.all=f;c.race=g;c.resolve=a;c.reject=e;d.Promise=c});f("promise/race",["./utils","exports"],function(f,k){var n=f.isArray;k.race=function(g){if(!n(g))throw new TypeError("You must pass an array to race.");return new this(function(a,
e){for(var b,d=0;d<g.length;d++)(b=g[d])&&"function"==typeof b.then?b.then(a,e):a(b)})}});f("promise/reject",["exports"],function(f){f.reject=function(f){return new this(function(k,g){g(f)})}});f("promise/resolve",["exports"],function(f){f.resolve=function(f){return f&&"object"==typeof f&&f.constructor===this?f:new this(function(k){k(f)})}});f("promise/utils",["exports"],function(f){function k(g){return"function"==typeof g}var n=Date.now||function(){return(new Date).getTime()};f.Hy=function(g){return k(g)||
"object"==typeof g&&null!==g};f.isFunction=k;f.isArray=function(g){return"[object Array]"===Object.prototype.toString.call(g)};f.now=n});k("promise/polyfill").Uy()}();var uc=function(){return function(f){function k(q){if(n[q])return n[q].Md;var p=n[q]={Md:{},id:q,loaded:!1};return f[q].call(p.Md,p,p.Md,k),p.loaded=!0,p.Md}var n={};return k.bf=f,k.di=n,k.an="",k(0)}([function(f,k,n){k.Xj=!0;var q=function(f){function k(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function g(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(m(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function a(a){for(var c in b)if(b.hasOwnProperty(c)&&b[c]===a)return!0;return!1}var e={},b={Vh:"asyncStorage",Wh:"localStorageWrapper",Yh:"webSQLStorage"},d="clear getItem iterate key keys length removeItem setItem".split(" "),c={description:"",Rg:[b.Vh,b.Yh,b.Wh].slice(),name:"localforage",size:4980736,Aa:"keyvaluepairs",
version:1},l=function(a){var c={},e;try{var d=d||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.zq||a.msIndexedDB;e="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:d&&"function"==typeof d.open&&"undefined"!=typeof a.IDBKeyRange}catch(g){e=!1}c[b.Vh]=!!e;var f;try{f=a.openDatabase}catch(l){f=!1}c[b.Yh]=!!f;var k;try{k=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(m){k=
!1}return c[b.Wh]=!!k,c}(f),m=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function f(a){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");this.Vh=b.Vh;this.Wh=b.Wh;this.Yh=b.Yh;this.Jm=g({},c);this.If=g({},this.Jm,a);this.Up=this.Jd=null;this.We=!1;this.xa=null;this.Vp();this.Rs(this.If.Rg)}return f.prototype.pq=function(a){if("object"==typeof a){if(this.We)return Error("Can't call config() after localforage has been used.");
for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this.If[b]=a[b];return"driver"in a&&a.Rg&&this.Rs(this.If.Rg),!0}return"string"==typeof a?this.If[a]:this.If},f.prototype.Rg=function(){return this.Zh||null},f.prototype.Nq=function(b,c,d){var g=this,f=function(){if(a(b))switch(b){case g.Vh:return new Promise(function(a){a(n(1))});case g.Wh:return new Promise(function(a){a(n(2))});case g.Yh:return new Promise(function(a){a(n(4))})}else if(e[b])return Promise.resolve(e[b]);return Promise.reject(Error("Driver not found."))}();
return f.then(c,d),f},f.prototype.ready=function(a){var b=this,c=b.Jd.then(function(){return null===b.We&&(b.We=b.Up()),b.We});return c.then(a,a),c},f.prototype.Rs=function(a,b,c){function e(){g.If.Rg=g.Rg()}function d(a){return function(){function b(){for(;c<a.length;){var d=a[c];return c++,g.xa=null,g.We=null,g.Nq(d).then(function(a){return g.Jv(a),e(),g.We=g.Lm(g.If),g.We})["catch"](b)}e();return g.Jd=Promise.reject(Error("No available storage method found.")),g.Jd}var c=0;return b()}}var g=this;
m(a)||(a=[a]);var f=this.Kv(a);return this.Jd=(null!==this.Jd?this.Jd["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=f[0];return g.xa=null,g.We=null,g.Nq(a).then(function(a){g.Zh=a.Zh;e();g.Vp();g.Up=d(f)})})["catch"](function(){e();return g.Jd=Promise.reject(Error("No available storage method found.")),g.Jd}),this.Jd.then(b,c),this.Jd},f.prototype.supports=function(a){return!!l[a]},f.prototype.Jv=function(a){g(this,a)},f.prototype.Kv=function(a){for(var b=
[],c=0,e=a.length;e>c;c++){var d=a[c];this.supports(d)&&b.push(d)}return b},f.prototype.Vp=function(){for(var a=0;a<d.length;a++)k(this,d[a])},f.prototype.Ym=function(a){return new f(a)},f}())}("undefined"!=typeof window?window:self);k["default"]=q;f.Md=k["default"]},function(f,k){k.Xj=!0;k["default"]=function(f){function k(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(c){if("TypeError"!==c.name)throw c;for(var e=new (f.BlobBuilder||f.bf||f.an||f.WebKitBlobBuilder),d=0;d<a.length;d+=1)e.append(a[d]);
return e.getBlob(b.type)}}function p(a){return new Promise(function(b,c){var e=new XMLHttpRequest;e.open("GET",a);e.withCredentials=!0;e.responseType="arraybuffer";e.onreadystatechange=function(){return 4===e.readyState?200===e.status?b({response:e.response,type:e.getResponseHeader("Content-Type")}):void c({status:e.status,response:e.response}):void 0};e.send()})}function r(a){return(new Promise(function(b,c){var e=k([""],{type:"image/png"}),d=a.transaction([G],"readwrite");d.objectStore(G).put(e,
"key");d.oncomplete=function(){var e=a.transaction([G],"readwrite").objectStore(G).get("key");e.onerror=c;e.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);p(c).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(c)})}};d.onerror=d.onabort=c}))["catch"](function(){return!1})}function g(a){return"boolean"==typeof v?Promise.resolve(v):r(a).then(function(a){return v=a})}function a(a){return new Promise(function(b,c){var e=new FileReader;
e.onerror=c;e.onloadend=function(c){b({Tp:!0,data:btoa(c.target.result||""),type:a.type})};e.readAsBinaryString(a)})}function e(a){for(var b=atob(a.data),c=b.length,e=new ArrayBuffer(c),d=new Uint8Array(e),g=0;c>g;g++)d[g]=b.charCodeAt(g);return k([e],{type:a.type})}function b(a){var b=this,c=b.Km().then(function(){var a=x[b.xa.name];return a&&a.Pg?a.Pg:void 0});return c.then(a,a),c}function d(a){a=x[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.uq.push(b);a.Pg?a.Pg=a.Pg.then(function(){return b.promise}):
a.Pg=b.promise}function c(a){function c(){return Promise.resolve()}var e=this,d={db:null};if(a)for(var g in a)d[g]=a[g];x||(x={});var h=x[d.name];h||(h={Mk:[],db:null,Pg:null,uq:[]},x[d.name]=h);h.Mk.push(e);e.Km||(e.Km=e.ready,e.ready=b);a=[];for(g=0;g<h.Mk.length;g++){var k=h.Mk[g];k!==e&&a.push(k.Km()["catch"](c))}var m=h.Mk.slice(0);return Promise.all(a).then(function(){return d.db=h.db,l(d,!1)}).then(function(a){d.db=a;var b;b=e.Jm.version;if(d.db){var c=!d.db.objectStoreNames.contains(d.Aa),
g=d.version>d.db.version;(d.version<d.db.version&&(d.version!==b&&f.console.warn('The database "'+d.name+"\" can't be downgraded from version "+d.db.version+" to version "+d.version+"."),d.version=d.db.version),g||c)?(c&&(b=d.db.version+1,b>d.version&&(d.version=b)),b=!0):b=!1}else b=!0;return b?l(d,!0):a}).then(function(a){d.db=h.db=a;e.xa=d;for(a=0;a<m.length;a++){var b=m[a];b!==e&&(b.xa.db=d.db,b.xa.version=d.version)}})}function l(a,b){return new Promise(function(c,e){if(a.db){if(!b)return c(a.db);
d(a);a.db.close()}var g=[a.name];b&&g.push(a.version);var h=E.open.apply(E,g);b&&(h.onupgradeneeded=function(b){var c=h.result;try{c.createObjectStore(a.Aa),1>=b.oldVersion&&c.createObjectStore(G)}catch(e){if("ConstraintError"!==e.name)throw e;f.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.Aa+'" already exists.')}});h.onerror=function(){e(h.error)};h.onsuccess=function(){c(h.result);var b=x[a.name].uq.pop();
b&&b.resolve()}})}function m(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var g=c.xa,f=g.db.transaction(g.Aa,"readonly").objectStore(g.Aa).get(a);f.onsuccess=function(){var a=f.result;void 0===a&&(a=null);a&&a.Tp&&(a=e(a));b(a)};f.onerror=function(){d(f.error)}})["catch"](d)});return w(d,b),d}function y(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var g=
c.xa,f=g.db.transaction(g.Aa,"readonly").objectStore(g.Aa).openCursor(),h=1;f.onsuccess=function(){var c=f.result;if(c){var d=c.value;d&&d.Tp&&(d=e(d));d=a(d,c.key,h++);void 0!==d?b(d):c["continue"]()}else b()};f.onerror=function(){d(f.error)}})["catch"](d)});return w(d,b),d}function K(b,c,e){var d=this;"string"!=typeof b&&(f.console.warn(b+" used as a key, but it is not a string."),b=String(b));var h=new Promise(function(e,f){var h;d.ready().then(function(){return h=d.xa,c instanceof Blob?g(h.db).then(function(b){return b?
c:a(c)}):c}).then(function(a){var c=h.db.transaction(h.Aa,"readwrite"),d=c.objectStore(h.Aa);null===a&&(a=void 0);c.oncomplete=function(){void 0===a&&(a=null);e(a)};c.onabort=c.onerror=function(){f(g.error?g.error:g.transaction.error)};var g=d.put(a,b)})["catch"](f)});return w(h,e),h}function F(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(b,e){c.ready().then(function(){var d=c.xa,g=d.db.transaction(d.Aa,"readwrite"),
f=g.objectStore(d.Aa)["delete"](a);g.oncomplete=function(){b()};g.onerror=function(){e(f.error)};g.onabort=function(){e(f.error?f.error:f.transaction.error)}})["catch"](e)});return w(e,b),e}function h(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.xa,d=e.db.transaction(e.Aa,"readwrite"),g=d.objectStore(e.Aa).clear();d.oncomplete=function(){a()};d.onabort=d.onerror=function(){c(g.error?g.error:g.transaction.error)}})["catch"](c)});return w(c,a),c}function t(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var e=b.xa,d=e.db.transaction(e.Aa,"readonly").objectStore(e.Aa).count();d.onsuccess=function(){a(d.result)};d.onerror=function(){c(d.error)}})["catch"](c)});return w(c,a),c}function Q(a,b){var c=this,e=new Promise(function(b,e){return 0>a?void b(null):void c.ready().then(function(){var d=c.xa,g=!1,f=d.db.transaction(d.Aa,"readonly").objectStore(d.Aa).openCursor();f.onsuccess=function(){var c=f.result;return c?void(0===a?b(c.key):g?b(c.key):(g=
!0,c.advance(a))):void b(null)};f.onerror=function(){e(f.error)}})["catch"](e)});return w(e,b),e}function M(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.xa,d=e.db.transaction(e.Aa,"readonly").objectStore(e.Aa).openCursor(),g=[];d.onsuccess=function(){var b=d.result;return b?(g.push(b.key),void b["continue"]()):void a(g)};d.onerror=function(){c(d.error)}})["catch"](c)});return w(c,a),c}function w(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var E=E||f.indexedDB||
f.webkitIndexedDB||f.mozIndexedDB||f.zq||f.msIndexedDB;if(E){var v,x,G="local-forage-detect-blob-support";return{Zh:"asyncStorage",Lm:c,or:y,getItem:m,setItem:K,removeItem:F,clear:h,length:t,key:Q,keys:M}}}("undefined"!=typeof window?window:self);f.Md=k["default"]},function(f,k,n){k.Xj=!0;k["default"]=function(f){function k(a,e){e&&a.then(function(a){e(null,a)},function(a){e(a)})}var r=null;try{if(!(f.localStorage&&"setItem"in f.localStorage))return;r=f.localStorage}catch(g){return}return{Zh:"localStorageWrapper",
Lm:function(a){var e={};if(a)for(var b in a)e[b]=a[b];return e.Sd=e.name+"/",e.Aa!==this.Jm.Aa&&(e.Sd+=e.Aa+"/"),this.xa=e,(new Promise(function(a){a(n(3))})).then(function(a){return e.yg=a,Promise.resolve()})},or:function(a,e){var b=this,d=b.ready().then(function(){for(var c=b.xa,e=c.Sd,d=e.length,g=r.length,f=1,k=0;g>k;k++){var h=r.key(k);if(0===h.indexOf(e)){var p=r.getItem(h);if(p&&(p=c.yg.zk(p)),p=a(p,h.substring(d),f++),void 0!==p)return p}}});return k(d,e),d},getItem:function(a,e){var b=this;
"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=b.ready().then(function(){var c=b.xa,e=r.getItem(c.Sd+a);return e&&(e=c.yg.zk(e)),e});return k(d,e),d},setItem:function(a,e,b){var d=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var c=d.ready().then(function(){void 0===e&&(e=null);var b=e;return new Promise(function(c,g){var f=d.xa;f.yg.serialize(e,function(e,d){if(d)g(d);else try{r.setItem(f.Sd+
a,e),c(b)}catch(k){"QuotaExceededError"!==k.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==k.name||g(k),g(k)}})})});return k(c,b),c},removeItem:function(a,e){var b=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=b.ready().then(function(){r.removeItem(b.xa.Sd+a)});return k(d,e),d},clear:function(a){var e=this,b=e.ready().then(function(){for(var a=e.xa.Sd,b=r.length-1;0<=b;b--){var g=r.key(b);0===g.indexOf(a)&&r.removeItem(g)}});return k(b,a),b},length:function(a){var e=
this.keys().then(function(a){return a.length});return k(e,a),e},key:function(a,e){var b=this,d=b.ready().then(function(){var c,e=b.xa;try{c=r.key(a)}catch(d){c=null}return c&&(c=c.substring(e.Sd.length)),c});return k(d,e),d},keys:function(a){var e=this,b=e.ready().then(function(){for(var a=e.xa,b=r.length,g=[],f=0;b>f;f++)0===r.key(f).indexOf(a.Sd)&&g.push(r.key(f).substring(a.Sd.length));return g});return k(b,a),b}}}("undefined"!=typeof window?window:self);f.Md=k["default"]},function(f,k){k.Xj=!0;
k["default"]=function(f){function k(a){var e,b,d,c,g;e=.75*a.length;var f=a.length,p=0;"="===a[a.length-1]&&(e--,"="===a[a.length-2]&&e--);var n=new ArrayBuffer(e),q=new Uint8Array(n);for(e=0;f>e;e+=4)b=r.indexOf(a[e]),d=r.indexOf(a[e+1]),c=r.indexOf(a[e+2]),g=r.indexOf(a[e+3]),q[p++]=b<<2|d>>4,q[p++]=(15&d)<<4|c>>2,q[p++]=(3&c)<<6|63&g;return n}function p(a){var e=new Uint8Array(a),b="";for(a=0;a<e.length;a+=3)b+=r[e[a]>>2],b+=r[(3&e[a])<<4|e[a+1]>>4],b+=r[(15&e[a+1])<<2|e[a+2]>>6],b+=r[63&e[a+2]];
return 2===e.length%3?b=b.substring(0,b.length-1)+"=":1===e.length%3&&(b=b.substring(0,b.length-2)+"=="),b}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=/^~~local_forage_type~([^~]+)~/;return{serialize:function(a,e){var b="";if(a&&(b=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var d,c="__lfsc__:";a instanceof ArrayBuffer?(d=a,c+="arbf"):(d=a.buffer,"[object Int8Array]"===b?c+="si08":"[object Uint8Array]"===
b?c+="ui08":"[object Uint8ClampedArray]"===b?c+="uic8":"[object Int16Array]"===b?c+="si16":"[object Uint16Array]"===b?c+="ur16":"[object Int32Array]"===b?c+="si32":"[object Uint32Array]"===b?c+="ui32":"[object Float32Array]"===b?c+="fl32":"[object Float64Array]"===b?c+="fl64":e(Error("Failed to get type for BinaryArray")));e(c+p(d))}else if("[object Blob]"===b)b=new FileReader,b.onload=function(){var b="~~local_forage_type~"+a.type+"~"+p(this.result);e("__lfsc__:blob"+b)},b.readAsArrayBuffer(a);else try{e(JSON.stringify(a))}catch(g){console.error("Couldn't convert value into a JSON string: ",
a),e(null,g)}},zk:function(a){if("__lfsc__:"!==a.substring(0,9))return JSON.parse(a);var e,b=a.substring(13);a=a.substring(9,13);if("blob"===a&&g.test(b)){var d=b.match(g);e=d[1];b=b.substring(d[0].length)}b=k(b);switch(a){case "arbf":return b;case "blob":var c;b=[b];e={type:e};b=b||[];e=e||{};try{c=new Blob(b,e)}catch(l){if("TypeError"!==l.name)throw l;c=new (f.BlobBuilder||f.bf||f.an||f.WebKitBlobBuilder);for(a=0;a<b.length;a+=1)c.append(b[a]);c=c.getBlob(e.type)}return c;case "si08":return new Int8Array(b);
case "ui08":return new Uint8Array(b);case "uic8":return new Uint8ClampedArray(b);case "si16":return new Int16Array(b);case "ur16":return new Uint16Array(b);case "si32":return new Int32Array(b);case "ui32":return new Uint32Array(b);case "fl32":return new Float32Array(b);case "fl64":return new Float64Array(b);default:throw Error("Unkown type: "+a);}},bB:k,HA:p}}("undefined"!=typeof window?window:self);f.Md=k["default"]},function(f,k,n){k.Xj=!0;k["default"]=function(f){function k(a){var b=this,c={db:null};
if(a)for(var e in a)c[e]="string"!=typeof a[e]?a[e].toString():a[e];var d=new Promise(function(a,e){try{c.db=y(c.name,String(c.version),c.description,c.size)}catch(d){return e(d)}c.db.transaction(function(d){d.executeSql("CREATE TABLE IF NOT EXISTS "+c.Aa+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.xa=c;a()},function(a,b){e(b)})})});return(new Promise(function(a){a(n(3))})).then(function(a){return c.yg=a,d})}function r(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var e=new Promise(function(b,e){c.ready().then(function(){var d=c.xa;d.db.transaction(function(c){c.executeSql("SELECT * FROM "+d.Aa+" WHERE key = ? LIMIT 1",[a],function(a,c){var e=c.rows.length?c.rows.item(0).value:null;e&&(e=d.yg.zk(e));b(e)},function(a,b){e(b)})})})["catch"](e)});return m(e,b),e}function g(a,b){var c=this,e=new Promise(function(b,e){c.ready().then(function(){var d=c.xa;d.db.transaction(function(c){c.executeSql("SELECT * FROM "+d.Aa,[],function(c,e){for(var g=e.rows,
f=g.length,h=0;f>h;h++){var k=g.item(h),l=k.value;if(l&&(l=d.yg.zk(l)),l=a(l,k.key,h+1),void 0!==l)return void b(l)}b()},function(a,b){e(b)})})})["catch"](e)});return m(e,b),e}function a(a,b,c){var e=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(c,d){e.ready().then(function(){void 0===b&&(b=null);var g=b,f=e.xa;f.yg.serialize(b,function(b,e){e?d(e):f.db.transaction(function(e){e.executeSql("INSERT OR REPLACE INTO "+f.Aa+
" (key, value) VALUES (?, ?)",[a,b],function(){c(g)},function(a,b){d(b)})},function(a){a.code===a.QUOTA_ERR&&d(a)})})})["catch"](d)});return m(d,c),d}function e(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(b,e){c.ready().then(function(){var d=c.xa;d.db.transaction(function(c){c.executeSql("DELETE FROM "+d.Aa+" WHERE key = ?",[a],function(){b()},function(a,b){e(b)})})})["catch"](e)});return m(e,b),e}function b(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.xa;e.db.transaction(function(b){b.executeSql("DELETE FROM "+e.Aa,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return m(c,a),c}function d(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.xa;e.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+e.Aa,[],function(b,c){var e=c.rows.item(0).di;a(e)},function(a,b){c(b)})})})["catch"](c)});return m(c,a),c}function c(a,b){var c=this,
e=new Promise(function(b,e){c.ready().then(function(){var d=c.xa;d.db.transaction(function(c){c.executeSql("SELECT key FROM "+d.Aa+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var e=c.rows.length?c.rows.item(0).key:null;b(e)},function(a,b){e(b)})})})["catch"](e)});return m(e,b),e}function l(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.xa;e.db.transaction(function(b){b.executeSql("SELECT key FROM "+e.Aa,[],function(b,c){for(var e=[],d=0;d<c.rows.length;d++)e.push(c.rows.item(d).key);
a(e)},function(a,b){c(b)})})})["catch"](c)});return m(c,a),c}function m(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var y=f.openDatabase;if(y)return{Zh:"webSQLStorage",Lm:k,or:g,getItem:r,setItem:a,removeItem:e,clear:b,length:d,key:c,keys:l}}("undefined"!=typeof window?window:self);f.Md=k["default"]}])};"object"==typeof exports&&"object"==typeof module?module.Md=uc():"function"==typeof define&&define.GA?define([],uc):"object"==typeof exports?exports.localforage=uc():this.localforage=
uc()}catch(vc){tc=!0}function wc(f){this.b=f}
(function(){function f(a){a.b.trigger(wc.prototype.e.ee,a)}function k(){}function n(){}function q(){}var p="",r="",g="";"undefined"!==typeof window.is_scirra_arcade&&(g="sa"+window.scirra_arcade_id+"_");var a=wc.prototype;a.Y=function(a){this.ta=a;this.b=a.b};a.Y.prototype.H=function(){};a.T=function(a){this.type=a;this.b=a.b};var e=a.T.prototype;e.H=function(){this.xo=this.yo=0};e.Ce=function(){};e.kb=function(){return{}};e.Db=function(){};k.prototype.Mu=function(a){return p===a};k.prototype.Au=
function(){return!0};k.prototype.yp=function(a){return p===a};k.prototype.zu=function(){return!0};k.prototype.ee=function(){return!0};k.prototype.xp=function(a){return p===a};k.prototype.zp=function(a){return p===a};k.prototype.xu=function(){return!0};k.prototype.wu=function(){return!0};a.e=new k;n.prototype.rv=function(a,e){if(tc)f(this);else{var c=g+a;this.yo++;var k=this;localforage.setItem(c,e,function(c,e){k.yo--;c?k.b.trigger(wc.prototype.e.ee,k):(p=a,r=e,k.b.trigger(wc.prototype.e.Au,k),k.b.trigger(wc.prototype.e.Mu,
k),r=p="");0===k.yo&&k.b.trigger(wc.prototype.e.xu,k)})}};n.prototype.Xt=function(a){if(tc)f(this);else{var e=g+a;this.xo++;var c=this;localforage.getItem(e,function(e,d){c.xo--;if(e)c.b.trigger(wc.prototype.e.ee,c);else{p=a;r=d;if("undefined"===typeof r||null===r)r="";c.b.trigger(wc.prototype.e.zu,c);c.b.trigger(wc.prototype.e.yp,c);r=p=""}0===c.xo&&c.b.trigger(wc.prototype.e.wu,c)})}};n.prototype.Kt=function(a){if(tc)f(this);else{var e=this;localforage.getItem(g+a,function(c,g){c?e.b.trigger(wc.prototype.e.ee,
e):(p=a,null===g?(r="",e.b.trigger(wc.prototype.e.zp,e)):(r=g,e.b.trigger(wc.prototype.e.xp,e)),r=p="")})}};a.B=new n;q.prototype.qu=function(a){a.So(r)};a.da=new q})();function X(f){this.b=f}
(function(){function f(){if(0===this.bn.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Kh?b.drawImage(this.K,this.Bh,this.Ch,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.K,0,0,this.width,this.height);this.bn=a.toDataURL("image/png")}return this.bn}function k(){}function n(a){a[0]=0;a[1]=0;a[2]=0;m.push(a)}function q(a,b){return a<b?""+a+","+b:""+b+","+a}function p(a,b,c,e){b=b.uid;c=c.uid;var d=q(b,c);if(a.hasOwnProperty(d))a[d][2]=
e;else{var g=m.length?m.pop():[0,0,0];g[0]=b;g[1]=c;g[2]=e;a[d]=g}}function r(a,b,c){b=q(b.uid,c.uid);a.hasOwnProperty(b)&&(n(a[b]),delete a[b])}function g(a,b,c){b=q(b.uid,c.uid);if(a.hasOwnProperty(b))return y=a[b][2],!0;y=-2;return!1}function a(){}function e(){}var b=X.prototype;b.Y=function(a){this.ta=a;this.b=a.b};var d=b.Y.prototype;d.H=function(){if(!this.I){var a,b,c,e,d,g,h,k,l;this.od=[];this.yi=!1;a=0;for(b=this.yc.length;a<b;a++){d=this.yc[a];h={};h.name=d[0];h.speed=d[1];h.loop=d[2];
h.Io=d[3];h.Jo=d[4];h.As=d[5];h.ja=d[6];h.frames=[];c=0;for(e=d[7].length;c<e;c++)g=d[7][c],k={},k.nm=g[0],k.$o=g[1],k.Bh=g[2],k.Ch=g[3],k.width=g[4],k.height=g[5],k.duration=g[6],k.$b=g[7],k.ac=g[8],k.Kn=g[9],k.Il=g[10],k.Bs=g[11],k.Kh=0!==k.width,k.bn="",k.LA=f,l={left:0,top:0,right:1,bottom:1},k.Vo=l,k.V=null,(l=this.b.yx(g[0]))?k.K=l:(k.K=new Image,k.K.fw=g[0],k.K.qq=g[1],k.K.Yv=null,this.b.np(k.K,g[0])),h.frames.push(k),this.od.push(k);this.yc[a]=h}}};d.At=function(){var a,b,c;a=0;for(b=this.j.length;a<
b;a++)c=this.j[a],c.tk=c.Hb.V};d.hj=function(){if(!this.I){var a,b,c;a=0;for(b=this.od.length;a<b;++a)c=this.od[a],c.K.Yv=null,c.V=null;this.yi=!1;this.At()}};d.Bl=function(){if(!this.I&&this.j.length){var a,b,c;a=0;for(b=this.od.length;a<b;++a)c=this.od[a],c.V=this.b.u.sh(c.K,!1,this.b.Ka,c.Bs);this.At()}};d.bo=function(){if(!this.I&&!this.yi&&this.b.u){var a,b,c;a=0;for(b=this.od.length;a<b;++a)c=this.od[a],c.V=this.b.u.sh(c.K,!1,this.b.Ka,c.Bs);this.yi=!0}};d.um=function(){if(!this.I&&!this.j.length&&
this.yi){var a,b,c;a=0;for(b=this.od.length;a<b;++a)c=this.od[a],this.b.u.deleteTexture(c.V),c.V=null;this.yi=!1}};var c=[];d.Ml=function(a){var b,e,d;A(c);b=0;for(e=this.od.length;b<e;++b)d=this.od[b].K,-1===c.indexOf(d)&&(a.drawImage(d,0,0),c.push(d))};b.T=function(a){this.type=a;this.b=a.b;a=this.type.yc[0].frames[0].Il;this.ec?this.ya.vj(a):this.ya=new db(a)};var l=b.T.prototype;l.H=function(){this.visible=0===this.A[0];this.Wk=this.Ii=!1;this.ke=0!==this.A[3];this.Ia=this.Kq(this.A[1])||this.type.yc[0];
this.G=this.A[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.ya.vj(a.Il);this.$b=a.$b;this.ac=a.ac;this.Ng=this.Ia.speed;this.lf=this.Ia.Jo;1===this.type.yc.length&&1===this.type.yc[0].frames.length||0===this.Ng||(this.b.Gj(this),this.Ii=!0);this.ec?this.Kd.reset():this.Kd=new bb;this.re=this.Kd.R;this.Kf=!0;this.ge=0;this.Jf=!0;this.Kg=this.bq="";this.mq=0;this.lk=-1;this.type.bo();var b,c,e,d,g,f,h,a=0;for(b=this.type.yc.length;a<
b;a++)for(d=this.type.yc[a],c=0,e=d.frames.length;c<e;c++)g=d.frames[c],0===g.width&&(g.width=g.K.width,g.height=g.K.height),g.Kh&&(h=g.K,f=g.Vo,f.left=g.Bh/h.width,f.top=g.Ch/h.height,f.right=(g.Bh+g.width)/h.width,f.bottom=(g.Ch+g.height)/h.height,0===g.Bh&&0===g.Ch&&g.width===h.width&&g.height===h.height&&(g.Kh=!1));this.Hb=this.Ia.frames[this.G];this.tk=this.Hb.V};l.kb=function(){var a={a:this.Ia.ja,f:this.G,cas:this.Ng,fs:this.re,ar:this.ge,at:this.Kd.R,rt:this.lf};this.Kf||(a.ap=this.Kf);this.Jf||
(a.af=this.Jf);return a};l.Db=function(a){var b=this.Cx(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.Ng=a.cas;this.re=a.fs;this.ge=a.ar;this.Kd.reset();this.Kd.R=a.at;this.Kf=a.hasOwnProperty("ap")?a.ap:!0;this.Jf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.lf=a.rt:this.lf=this.Ia.Jo;this.Hb=this.Ia.frames[this.G];this.tk=this.Hb.V;this.ya.vj(this.Hb.Il);this.$b=this.Hb.$b;this.ac=this.Hb.ac};l.Om=function(a){this.G=
a?0:this.Ia.frames.length-1;this.Kf=!1;this.bq=this.Ia.name;this.Wk=!0;this.b.trigger(X.prototype.e.yu,this);this.b.trigger(X.prototype.e.vp,this);this.Wk=!1;this.ge=0};l.bf=function(){return this.Kd.R};l.ab=function(){this.Kd.add(this.b.ri(this));this.Kg.length&&this.vq();0<=this.lk&&this.wq();var a=this.Kd.R,b=this.Ia,c=b.frames[this.G],e=c.duration/this.Ng;this.Kf&&a>=this.re+e&&(this.Jf?this.G++:this.G--,this.re+=e,this.G>=b.frames.length&&(b.As?(this.Jf=!1,this.G=b.frames.length-2):b.loop?this.G=
this.lf:(this.ge++,this.ge>=b.Io?this.Om(!1):this.G=this.lf)),0>this.G&&(b.As?(this.G=1,this.Jf=!0,b.loop||(this.ge++,this.ge>=b.Io&&this.Om(!0))):b.loop?this.G=this.lf:(this.ge++,this.ge>=b.Io?this.Om(!0):this.G=this.lf)),0>this.G?this.G=0:this.G>=b.frames.length&&(this.G=b.frames.length-1),a>this.re+b.frames[this.G].duration/this.Ng&&(this.re=a),a=b.frames[this.G],this.Gg(c,a),this.b.ba=!0)};l.Kq=function(a){var b,c,e;b=0;for(c=this.type.yc.length;b<c;b++)if(e=this.type.yc[b],jb(e.name,a))return e;
return null};l.Cx=function(a){var b,c,e;b=0;for(c=this.type.yc.length;b<c;b++)if(e=this.type.yc[b],e.ja===a)return e;return null};l.vq=function(){var a=this.Ia.frames[this.G],b=this.Kq(this.Kg);this.Kg="";!b||jb(b.name,this.Ia.name)&&this.Kf||(this.Ia=b,this.Ng=b.speed,this.lf=b.Jo,0>this.G&&(this.G=0),this.G>=this.Ia.frames.length&&(this.G=this.Ia.frames.length-1),1===this.mq&&(this.G=0),this.Kf=!0,this.re=this.Kd.R,this.Jf=!0,this.Gg(a,this.Ia.frames[this.G]),this.b.ba=!0)};l.wq=function(){var a=
this.Ia.frames[this.G],b=this.G;this.G=ra(this.lk);0>this.G&&(this.G=0);this.G>=this.Ia.frames.length&&(this.G=this.Ia.frames.length-1);b!==this.G&&(this.Gg(a,this.Ia.frames[this.G]),this.re=this.Kd.R,this.b.ba=!0);this.lk=-1};l.Gg=function(a,b){var c=a.width,e=a.height,d=b.width,g=b.height;c!=d&&(this.width*=d/c);e!=g&&(this.height*=g/e);this.$b=b.$b;this.ac=b.ac;this.ya.vj(b.Il);this.F();this.Hb=b;this.tk=b.V;c=0;for(e=this.O.length;c<e;c++)d=this.O[c],d.ls&&d.ls(a,b);this.b.trigger(X.prototype.e.Gg,
this)};l.ud=function(a){a.globalAlpha=this.opacity;var b=this.Hb,c=b.Kh,e=b.K,d=this.x,g=this.y,f=this.width,h=this.height;if(0===this.n&&0<=f&&0<=h)d-=this.$b*f,g-=this.ac*h,this.b.Tc&&(d=Math.round(d),g=Math.round(g)),c?a.drawImage(e,b.Bh,b.Ch,b.width,b.height,d,g,f,h):a.drawImage(e,d,g,f,h);else{this.b.Tc&&(d=Math.round(d),g=Math.round(g));a.save();var k=0<f?1:-1,l=0<h?1:-1;a.translate(d,g);1===k&&1===l||a.scale(k,l);a.rotate(this.n*k*l);d=0-this.$b*ma(f);g=0-this.ac*ma(h);c?a.drawImage(e,b.Bh,
b.Ch,b.width,b.height,d,g,ma(f),ma(h)):a.drawImage(e,d,g,ma(f),ma(h));a.restore()}};l.Qf=function(a){this.lc(a)};l.lc=function(a){a.tc(this.tk);a.Ff(this.opacity);var b=this.Hb,c=this.Sb;if(this.b.Tc){var e=Math.round(this.x)-this.x,d=Math.round(this.y)-this.y;b.Kh?a.Cd(c.La+e,c.Ma+d,c.bb+e,c.cb+d,c.Xa+e,c.Ya+d,c.Va+e,c.Wa+d,b.Vo):a.nj(c.La+e,c.Ma+d,c.bb+e,c.cb+d,c.Xa+e,c.Ya+d,c.Va+e,c.Wa+d)}else b.Kh?a.Cd(c.La,c.Ma,c.bb,c.cb,c.Xa,c.Ya,c.Va,c.Wa,b.Vo):a.nj(c.La,c.Ma,c.bb,c.cb,c.Xa,c.Ya,c.Va,c.Wa)};
l.Fx=function(a){var b=this.Hb,c,e;c=0;for(e=b.Kn.length;c<e;c++)if(jb(a,b.Kn[c][0]))return c;return-1};l.Sk=function(a,b){var c=this.Hb,e=c.Kn,d;ja(a)?d=this.Fx(a):d=a-1;d=ra(d);if(0>d||d>=e.length)return b?this.x:this.y;var g=(e[d][1]-c.$b)*this.width,e=e[d][2],e=(e-c.ac)*this.height,c=Math.cos(this.n);d=Math.sin(this.n);var f=g*c-e*d,e=e*c+g*d,g=f+this.x,e=e+this.y;return b?g:e};var m=[],y=-2,K=[];k.prototype.Du=function(a){if(!a)return!1;var b=this.b,c=b.Rk(),e=c.type,d=null;c.J.collmemory?d=
c.J.collmemory:(d={},c.J.collmemory=d);c.J.spriteCreatedDestroyCallback||(c.J.spriteCreatedDestroyCallback=!0,b.ak(function(a){var b=c.J.collmemory;a=a.uid;var e,d;for(e in b)b.hasOwnProperty(e)&&(d=b[e],d[0]===a||d[1]===a)&&(n(b[e]),delete b[e])}));var f=e.ea(),h=a.ea(),f=f.nc(),k,l,m,q,t,Q,M,u=this.b.be,F=u-1,z=b.pb().Zb;for(l=0;l<f.length;l++){m=f[l];h.wa?(m.Ba(),this.b.wn(m.k,a,m.Na,K),k=K,this.b.Qv(m,a,k)):k=h.nc();for(q=0;q<k.length;q++)t=k[q],b.hc(m,t)||b.aw(m,t)?(Q=g(d,m,t),Q=!Q||y<F,p(d,
m,t,u),Q&&(b.Ol(z.Ha),Q=e.ea(),M=a.ea(),Q.wa=!1,M.wa=!1,e===a?(Q.j.length=2,Q.j[0]=m,Q.j[1]=t,e.Ic()):(Q.j.length=1,M.j.length=1,Q.j[0]=m,M.j[0]=t,e.Ic(),a.Ic()),z.lz(),b.vg(z.Ha))):r(d,m,t);A(K)}return!1};var F=null,h=new ca,t=!1,Q=[],M=new va(0,0,0,0);d.finish=function(a){if(t){if(a){var b=this.b.pb().Zb.Sc;a=F.ea();var c=h.Pe(),e,d;if(a.wa){a.wa=!1;A(a.j);e=0;for(d=c.length;e<d;++e)a.j[e]=c[e];if(b)for(A(a.ca),e=0,d=F.j.length;e<d;++e)c=F.j[e],h.contains(c)||a.ca.push(c)}else if(b)for(b=a.j.length,
e=0,d=c.length;e<d;++e)a.j[b+e]=c[e],Ea(a.ca,c[e]);else Aa(a.j,c);F.Ic()}h.clear();t=!1}};k.prototype.mu=function(a){if(a){var b=!1,c,e,d,g=this.b.Rk(),f=g.type,g=g.Yk;c=a.ea();e=this.b.pb().Zb.Sc;var k;c.wa?(this.Ba(),M.Mg(this.Na),M.offset(0,0),this.b.wn(this.k,a,M,Q),k=Q):k=e?this.b.my()&&!c.ca.length&&c.j.length?c.j:c.ca:c.j;F=a;t=f!==a&&!g;c=0;for(e=k.length;c<e;c++)if(d=k[c],this.b.hc(this,d)){b=!0;if(g)break;f!==a&&h.add(d)}A(Q);a=b}else a=!1;return a};k.prototype.bu=function(a){return this.Kg.length?
jb(this.Kg,a):jb(this.Ia.name,a)};k.prototype.Ot=function(a,b){return ec(this.G,a,b)};k.prototype.vp=function(a){return jb(this.bq,a)};k.prototype.yu=function(){return!0};k.prototype.Gg=function(){return!0};b.e=new k;a.prototype.nv=function(a,b){this.Kg=a;this.mq=b;this.Ii||(this.b.Gj(this),this.Ii=!0);this.Wk||this.vq()};a.prototype.ov=function(a){this.lk=a;this.Ii||(this.b.Gj(this),this.Ii=!0);this.Wk||this.wq()};b.B=new a;e.prototype.au=function(a,b){a.L(this.Sk(b,!1))};b.da=new e})();
function xc(f){this.b=f}
(function(){function f(a,b){return a.length?a.pop():new b}function k(a,b,c){if(c){var e;c=0;for(e=b.length;c<e;c++)a.length<g&&a.push(b[c]);A(b)}else for(e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a.length<g&&a.push(b[e]),delete b[e])}function n(b,c,e){var d=b.cc;e=e.replace(/\s\s*$/,"");c>=d.length&&d.push(f(a,Object));c=d[c];c.text=e;c.width=b.ko(e);b.Le=oa(b.Le,c.width)}function q(){}var p=xc.prototype;p.H=function(){};p.Y=function(a){this.ta=a;this.b=a.b};var r=p.Y.prototype;r.H=function(){this.I||
(this.K=new Image,this.b.np(this.K,this.nm),this.V=null)};r.hj=function(){this.I||(this.V=null)};r.Bl=function(){if(!this.I&&this.j.length){this.V||(this.V=this.b.u.sh(this.K,!1,this.b.Ka,this.Ej));var a,b;a=0;for(b=this.j.length;a<b;a++)this.j[a].V=this.V}};r.um=function(){this.I||this.j.length||!this.V||(this.b.u.deleteTexture(this.V),this.V=null)};r.Ml=function(a){a.drawImage(this.K,0,0)};p.T=function(a){this.type=a;this.b=a.b};r=p.T.prototype;r.Ce=function(){k(a,this.cc,!0);k(e,this.nk,!1);k(b,
this.ok,!1);Va(this.gf)};r.H=function(){this.K=this.type.K;this.mk=this.A[0];this.ef=this.A[1];this.characterSet=this.A[2];this.text=this.A[3];this.ff=this.A[4];this.visible=0===this.A[5];this.ue=this.A[6]/2;this.Oe=this.A[7]/2;this.Pj=0===this.A[9];this.Lg=this.A[10];this.lineHeight=this.A[11];this.ae=this.Le=0;this.ec?(A(this.cc),Va(this.nk),Va(this.ok),Va(this.gf)):(this.cc=[],this.nk={},this.ok={},this.gf={});this.Vc=!0;this.mg=this.width;this.b.u&&(this.type.V||(this.type.V=this.b.u.sh(this.type.K,
!1,this.b.Ka,this.type.Ej)),this.V=this.type.V);this.Dv()};r.kb=function(){var a={t:this.text,csc:this.ff,csp:this.Lg,lh:this.lineHeight,tw:this.Le,th:this.ae,lrt:this.lg,ha:this.ue,va:this.Oe,cw:{}},b;for(b in this.gf)a.cw[b]=this.gf[b];return a};r.Db=function(a){this.text=a.t;this.ff=a.csc;this.Lg=a.csp;this.lineHeight=a.lh;this.Le=a.tw;this.ae=a.th;this.lg=a.lrt;a.hasOwnProperty("ha")&&(this.ue=a.ha);a.hasOwnProperty("va")&&(this.Oe=a.va);for(var b in a.cw)this.gf[b]=a.cw[b];this.Vc=!0;this.mg=
this.width};var g=1E3,a=[],e=[],b=[];r.Dv=function(){for(var a=this.K,c=a.width,d=a.height,a=this.mk,g=this.ef,k=a/c,h=g/d,p=this.characterSet,c=Math.floor(c/a),d=Math.floor(d/g),n=0;n<p.length&&!(n>=c*d);n++){var r=n%c,q=Math.floor(n/c),E=p.charAt(n);if(this.b.u){var v=this.ok,x=r*k,G=q*h,r=(r+1)*k,q=(q+1)*h;void 0===v[E]&&(v[E]=f(b,va));v[E].left=x;v[E].top=G;v[E].right=r;v[E].bottom=q}else v=this.nk,r=r*a,q=q*g,x=a,G=g,void 0===v[E]&&(v[E]=f(e,Object)),v[E].x=r,v[E].y=q,v[E].Ft=x,v[E].Tq=G}};var d=
[];p.Fm=function(a){A(d);for(var b="",c,e=0;e<a.length;)if(c=a.charAt(e),"\n"===c)b.length&&(d.push(b),b=""),d.push("\n"),++e;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(e),e++;while(e<a.length&&(" "===a.charAt(e)||"\t"===a.charAt(e)));d.push(b);b=""}else e<a.length&&(b+=c,e++);b.length&&d.push(b)};p.Gm=function(b){var c=b.text,e=b.cc;if(c&&c.length){var d=b.width;if(2>=d)k(a,e,!0);else{var g=b.ff,h=b.Lg;if(c.length*(b.mk*g+h)-h<=d&&-1===c.indexOf("\n")&&(h=b.ko(c),h<=d)){k(a,e,!0);e.push(f(a,
Object));e[0].text=c;e[0].width=h;b.Le=h;b.ae=b.ef*g+b.lineHeight;return}this.Hm(b);b.ae=e.length*(b.ef*g+b.lineHeight)}}else k(a,e,!0)};p.Hm=function(b){var c=b.Pj,e=b.text,f=b.cc,k=b.width;c&&(this.Fm(e),e=d);var h="",p,r,q,w=0,E=!1;for(q=0;q<e.length;q++)"\n"===e[q]?(!0===E?E=!1:(n(b,w,h),w++),h=""):(E=!1,p=h,h+=e[q],r=b.ko(h.replace(/\s\s*$/,"")),r>k&&(""===p?(n(b,w,h),h="",E=!0):(n(b,w,p),h=e[q]),w++,c||" "!==h||(h="")));h.replace(/\s\s*$/,"").length&&(n(b,w,h),w++);for(q=w;q<f.length;q++)a.length<
g&&a.push(f[q]);f.length=w};r.ko=function(a){for(var b=this.Lg,c=a.length,e=0,d=0;d<c;d++)e+=this.vn(a.charAt(d))*this.ff+b;return e-(0<e?b:0)};r.vn=function(a){var b=this.gf;return void 0!==b[a]?b[a]:this.mk};r.Js=function(){if(this.Vc||this.width!==this.mg)this.ae=this.Le=0,this.type.ta.Gm(this),this.Vc=!1,this.mg=this.width};r.ud=function(a){var b=this.K;if(""!==this.text&&null!=b&&(this.Js(),!(this.height<this.ef*this.ff+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.Tc&&
(b=Math.round(b),c=Math.round(c));var e=this.k.Ca,d=this.k.Da,g=this.k.Fa,f=this.k.Ea;a.save();a.translate(b,c);a.rotate(this.n);for(var k=this.n,p=this.ue,n=this.ff,r=this.ef*n,q=this.lineHeight,x=this.Lg,G=this.cc,H,U=-(this.$b*this.width),O=-(this.ac*this.height),O=O+this.Oe*oa(0,this.height-this.ae),L,D,R,V=0;V<G.length;V++){var J=G[V].text;H=p*oa(0,this.width-G[V].width);L=U+H;O+=q;if(0===k&&c+O+r<d)O+=r;else{for(var C=0;C<J.length;C++){D=J.charAt(C);H=this.vn(D);var u=this.nk[D];if(0===k&&b+
L+H*n+x<e)L+=H*n+x;else{if(L+H*n>this.width+1E-5)break;void 0!==u&&(D=L,R=O,0===k&&1===n&&(D=Math.round(D),R=Math.round(R)),a.drawImage(this.K,u.x,u.y,u.Ft,u.Tq,D,R,u.Ft*n,u.Tq*n));L+=H*n+x;if(0===k&&b+L>g)break}}O+=r;if(0===k&&(O+r+q>this.height||c+O>f))break}}a.restore()}};var c=new wa;r.lc=function(a){a.tc(this.V);a.Ff(this.opacity);if(this.text&&(this.Js(),!(this.height<this.ef*this.ff+this.lineHeight))){this.Ba();var b=this.Sb,e=0,d=0;this.b.Tc&&(e=Math.round(this.x)-this.x,d=Math.round(this.y)-
this.y);var g=this.k.Ca,f=this.k.Da,k=this.k.Fa,p=this.k.Ea,n=this.n,r=this.ue,q=this.Oe,v=this.ff,x=this.ef*v,G=this.lineHeight,H=this.Lg,U=this.cc,O=this.ae,L,D,R;0!==n&&(D=Math.cos(n),R=Math.sin(n));for(var e=b.La+e,b=b.Ma+d,V,q=q*oa(0,this.height-O),J,C,O=0;O<U.length;O++)if(d=U[O].text,V=L=r*oa(0,this.width-U[O].width),q+=G,0===n&&b+q+x<f)q+=x;else{for(var u=0;u<d.length;u++){var B=d.charAt(u);L=this.vn(B);B=this.ok[B];if(0===n&&e+V+L*v+H<g)V+=L*v+H;else{if(V+L*v>this.width+1E-5)break;if(void 0!==
B){var z=this.mk*v,I=this.ef*v;J=V;C=q;0===n&&1===v&&(J=Math.round(J),C=Math.round(C));c.La=J;c.Ma=C;c.bb=J+z;c.cb=C;c.Va=J;c.Wa=C+I;c.Xa=J+z;c.Ya=C+I;0!==n&&(J=c,C=D,z=R,I=void 0,I=J.La*C-J.Ma*z,J.Ma=J.Ma*C+J.La*z,J.La=I,I=J.bb*C-J.cb*z,J.cb=J.cb*C+J.bb*z,J.bb=I,I=J.Va*C-J.Wa*z,J.Wa=J.Wa*C+J.Va*z,J.Va=I,I=J.Xa*C-J.Ya*z,J.Ya=J.Ya*C+J.Xa*z,J.Xa=I);c.offset(e,b);a.Cd(c.La,c.Ma,c.bb,c.cb,c.Xa,c.Ya,c.Va,c.Wa,B)}V+=L*v+H;if(0===n&&e+V>k)break}}q+=x;if(0===n&&(q+x+G>this.height||b+q>p))break}}};p.e=new function(){};
q.prototype.Pp=function(a){ha(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Vc=!0,this.b.ba=!0)};r.bf=function(a,b){var c=parseInt(b,10);this.gf[a]!==c&&(this.gf[a]=c,this.Vc=!0,this.b.ba=!0)};p.B=new q;p.da=new function(){}})();function yc(f){this.b=f}
(function(){function f(){return a.length?a.pop():{}}function k(e){var b,d;b=0;for(d=e.length;b<d;b++)a.push(e[b]);A(e)}function n(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function q(){}var p=yc.prototype;p.H=function(){p.B.zv=function(a){this.width!==a&&(this.width=a,this.Vc=!0,this.F())}};p.Y=function(a){this.ta=a;this.b=a.b};var r=p.Y.prototype;r.H=function(){};r.hj=function(){if(!this.I){var a,b,d;a=0;for(b=this.j.length;a<b;a++)d=this.j[a],d.Vd=null,d.sg=null,
d.Ec=null}};p.T=function(a){this.type=a;this.b=a.b;this.ec?A(this.cc):this.cc=[];this.Vc=!0};r=p.T.prototype;r.H=function(){this.text=this.A[0];this.visible=0===this.A[1];this.font=this.A[2];this.color=this.A[3];this.ue=this.A[4];this.Oe=this.A[5];this.Pj=0===this.A[7];this.mg=this.il=this.width;this.hl=this.height;this.Zn=this.A[8];this.Lk=this.Tg="";this.ae=this.Le=this.lj=0;this.Ry();this.Ec=this.sg=this.Vd=null;this.Xr=!1;this.lg=this.b.be;this.ec?this.Bf.set(0,0,1,1):this.Bf=new va(0,0,1,1);
this.b.u&&this.b.Gj(this)};r.Ry=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.lj=parseInt(a[b].substr(0,a[b].length-2));this.Eo=Math.ceil(this.lj/72*96)+4;0<b&&(this.Lk=a[b-1]);this.Tg=a[b+1];for(b+=2;b<a.length;b++)this.Tg+=" "+a[b];break}};r.kb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.ue,va:this.Oe,wr:this.Pj,lho:this.Zn,fn:this.Tg,fs:this.Lk,ps:this.lj,pxh:this.Eo,tw:this.Le,th:this.ae,lrt:this.lg}};r.Db=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.ue=a.ha;this.Oe=a.va;this.Pj=a.wr;this.Zn=a.lho;this.Tg=a.fn;this.Lk=a.fs;this.lj=a.ps;this.Eo=a.pxh;this.Le=a.tw;this.ae=a.th;this.lg=a.lrt;this.Vc=!0;this.mg=this.il=this.width;this.hl=this.height};r.ab=function(){if(this.b.u&&this.Ec&&300<=this.b.be-this.lg){var a=this.k;this.Ba();var b=this.Na;if(b.right<a.Ca||b.bottom<a.Da||b.left>a.Fa||b.top>a.Ea)this.b.u.deleteTexture(this.Ec),this.Vd=this.sg=this.Ec=null}};r.Ce=function(){this.Vd=this.sg=null;this.b.u&&
this.Ec&&this.b.u.deleteTexture(this.Ec);this.Ec=null};r.bf=function(){this.font=this.Lk+" "+this.lj.toString()+"pt "+this.Tg;this.Vc=!0;this.b.ba=!0};r.ud=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var d=1;b&&(d=Math.abs(this.k.Ac()),a.save(),a.scale(d,d));if(this.Vc||this.width!==this.mg)this.type.ta.Gm(this.text,this.cc,a,this.width,this.Pj),this.Vc=!1,this.mg=this.width;this.Ba();var d=b?0:this.Sb.La,c=b?0:this.Sb.Ma;this.b.Tc&&(d=
d+.5|0,c=c+.5|0);0===this.n||b||(a.save(),a.translate(d,c),a.rotate(this.n),c=d=0);var g=c+this.height,f=this.Eo,f=f+this.Zn,k,p;1===this.Oe?c+=Math.max(this.height/2-this.cc.length*f/2,0):2===this.Oe&&(c+=Math.max(this.height-this.cc.length*f-2,0));for(p=0;p<this.cc.length&&!(k=d,1===this.ue?k=d+(this.width-this.cc[p].width)/2:2===this.ue&&(k=d+(this.width-this.cc[p].width)),a.fillText(this.cc[p].text,k,c),c+=f,c>=g-f);p++);(0!==this.n||b)&&a.restore();this.lg=this.b.be};r.lc=function(a){if(!(1>
this.width||1>this.height)){var b=this.Vc||this.Xr;this.Xr=!1;var d=this.k.Ac(),c=this.k.ob(),g=this.Bf,f=d*this.width,k=d*this.height,p=Math.ceil(f),n=Math.ceil(k),h=Math.abs(p),r=Math.abs(n),q=this.b.N/2,M=this.b.M/2;this.sg||(this.Vd=document.createElement("canvas"),this.Vd.width=h,this.Vd.height=r,this.il=h,this.hl=r,b=!0,this.sg=this.Vd.getContext("2d"));if(h!==this.il||r!==this.hl)this.Vd.width=h,this.Vd.height=r,this.Ec&&(a.deleteTexture(this.Ec),this.Ec=null),b=!0;b&&(this.sg.clearRect(0,
0,h,r),this.ud(this.sg,!0),this.Ec||(this.Ec=a.Kc(h,r,this.b.Ka,this.b.sf)),a.Pz(this.Vd,this.Ec,this.b.sf));this.il=h;this.hl=r;a.tc(this.Ec);a.Ff(this.opacity);a.fd();a.translate(-q,-M);a.Wc();var w=this.Sb,b=this.k.Qa(w.La,w.Ma,!0,!0),h=this.k.Qa(w.La,w.Ma,!1,!0),r=this.k.Qa(w.bb,w.cb,!0,!0),q=this.k.Qa(w.bb,w.cb,!1,!0),M=this.k.Qa(w.Xa,w.Ya,!0,!0),E=this.k.Qa(w.Xa,w.Ya,!1,!0),v=this.k.Qa(w.Va,w.Wa,!0,!0),w=this.k.Qa(w.Va,w.Wa,!1,!0);if(this.b.Tc||0===this.n&&0===c)var x=(b+.5|0)-b,G=(h+.5|0)-
h,b=b+x,h=h+G,r=r+x,q=q+G,M=M+x,E=E+G,v=v+x,w=w+G;0===this.n&&0===c?(r=b+p,q=h,M=r,E=h+n,v=b,w=E,g.right=1,g.bottom=1):(g.right=f/p,g.bottom=k/n);a.Cd(b,h,r,q,M,E,v,w,g);a.fd();a.scale(d,d);a.Ul(-this.k.ob());a.translate((this.k.Ca+this.k.Fa)/-2,(this.k.Da+this.k.Ea)/-2);a.Wc();this.lg=this.b.be}};var g=[];p.Fm=function(a){A(g);for(var b="",d,c=0;c<a.length;)if(d=a.charAt(c),"\n"===d)b.length&&(g.push(b),b=""),g.push("\n"),++c;else if(" "===d||"\t"===d||"-"===d){do b+=a.charAt(c),c++;while(c<a.length&&
(" "===a.charAt(c)||"\t"===a.charAt(c)));g.push(b);b=""}else c<a.length&&(b+=d,c++);b.length&&g.push(b)};var a=[];p.Gm=function(a,b,d,c,g){if(a&&a.length)if(2>=c)k(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var m=d.measureText(a).width;if(m<=c){k(b);b.push(f());b[0].text=a;b[0].width=m;return}}this.Hm(a,b,d,c,g)}else k(b)};p.Hm=function(e,b,d,c,k){k&&(this.Fm(e),e=g);var m="",p,r,q,h=0;for(q=0;q<e.length;q++)"\n"===e[q]?(h>=b.length&&b.push(f()),m=n(m),r=b[h],r.text=m,r.width=d.measureText(m).width,
h++,m=""):(p=m,m+=e[q],r=d.measureText(m).width,r>=c&&(h>=b.length&&b.push(f()),p=n(p),r=b[h],r.text=p,r.width=d.measureText(p).width,h++,m=e[q],k||" "!==m||(m="")));m.length&&(h>=b.length&&b.push(f()),m=n(m),r=b[h],r.text=m,r.width=d.measureText(m).width,h++);for(q=h;q<b.length;q++)a.push(b[q]);b.length=h};p.e=new function(){};q.prototype.Pp=function(a){ha(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Vc=!0,this.b.ba=!0)};p.B=new q;p.da=new function(){}})();
function zc(f){this.b=f}
(function(){var f=zc.prototype;f.Y=function(f){this.ta=f;this.b=f.b};var k=f.Y.prototype;k.H=function(){this.I||(this.K=new Image,this.K.qq=this.$o,this.b.np(this.K,this.nm),this.V=this.pattern=null)};k.hj=function(){this.I||(this.V=null)};k.Bl=function(){if(!this.I&&this.j.length){this.V||(this.V=this.b.u.sh(this.K,!0,this.b.Ka,this.Ej));var f,k;f=0;for(k=this.j.length;f<k;f++)this.j[f].V=this.V}};k.bo=function(){this.I||this.V||!this.b.u||(this.V=this.b.u.sh(this.K,!0,this.b.Ka,this.Ej))};k.um=
function(){this.I||this.j.length||!this.V||(this.b.u.deleteTexture(this.V),this.V=null)};k.Ml=function(f){f.drawImage(this.K,0,0)};f.T=function(f){this.type=f;this.b=f.b};k=f.T.prototype;k.H=function(){this.visible=0===this.A[0];this.Bf=new va(0,0,0,0);this.Xq=!1;this.K=this.type.K;this.b.u?(this.type.bo(),this.V=this.type.V):(this.type.pattern||(this.type.pattern=this.b.Oa.createPattern(this.type.K,"repeat")),this.pattern=this.type.pattern)};k.nd=function(){this.Xq=!1;this.K=this.type.K};k.Ce=function(){this.b.u&&
this.Xq&&this.V&&(this.b.u.deleteTexture(this.V),this.V=null)};k.ud=function(f){f.globalAlpha=this.opacity;f.save();f.fillStyle=this.pattern;var k=this.x,p=this.y;this.b.Tc&&(k=Math.round(k),p=Math.round(p));var r=-(this.$b*this.width),g=-(this.ac*this.height),a=r%this.K.width,e=g%this.K.height;0>a&&(a+=this.K.width);0>e&&(e+=this.K.height);f.translate(k,p);f.rotate(this.n);f.translate(a,e);f.fillRect(r-a,g-e,this.width,this.height);f.restore()};k.Qf=function(f){this.lc(f)};k.lc=function(f){f.tc(this.V);
f.Ff(this.opacity);var k=this.Bf;k.right=this.width/this.K.width;k.bottom=this.height/this.K.height;var p=this.Sb;if(this.b.Tc){var r=Math.round(this.x)-this.x,g=Math.round(this.y)-this.y;f.Cd(p.La+r,p.Ma+g,p.bb+r,p.cb+g,p.Xa+r,p.Ya+g,p.Va+r,p.Wa+g,k)}else f.Cd(p.La,p.Ma,p.bb,p.cb,p.Xa,p.Ya,p.Va,p.Wa,k)};f.e=new function(){};f.B=new function(){};f.da=new function(){}})();function Ac(f){this.b=f}
(function(){function f(a){b=a.x;d=a.y;c=a.z}function k(a,b,c,e){var d;d=l.length?l.pop():new n;d.init(a,b,c,e);return d}function n(){this.Aj=this.id=this.y=this.x=this.jm=this.im=this.Yn=this.time=this.Yo=0;this.Hj=this.rm=!1}function q(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function p(){}function r(){}var g=Ac.prototype;g.Y=function(a){this.ta=a;this.b=a.b};g.Y.prototype.H=
function(){};g.T=function(a){this.type=a;this.b=a.b;this.touches=[];this.lo=!1};var a=g.T.prototype,e={left:0,top:0};a.qi=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 b=0,d=0,c=0,l=[];n.prototype.init=function(a,b,c,e){var d=Wa();this.Yo=this.Yn=this.time=d;this.im=a;this.jm=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.Aj=e;this.Hj=this.rm=!1};n.prototype.update=function(a,b,c,e,d,g){this.Yn=this.time;this.time=
a;this.x=b;this.y=c;this.width=e;this.height=d;this.pressure=g;!this.Hj&&15<=Sa(this.im,this.jm,this.x,this.y)&&(this.Hj=!0)};n.prototype.Ey=function(a,b){!this.rm&&500<=Wa()-this.Yo&&!this.Hj&&15>Sa(this.im,this.jm,this.x,this.y)&&(this.rm=!0,a.de=this.Aj,a.Oh=this.id,a.Yg=b,a.b.trigger(Ac.prototype.e.Ku,a),a.me=this.x,a.ne=this.y,a.b.trigger(Ac.prototype.e.Lu,a),a.Yg=0)};var m=-1E3,y=-1E3,K=-1E4;n.prototype.Sr=function(a,b){if(!this.rm){var c=Wa();333>=c-this.Yo&&!this.Hj&&15>Sa(this.im,this.jm,
this.x,this.y)&&(a.de=this.Aj,a.Oh=this.id,a.Yg=b,666>=c-K&&25>Sa(m,y,this.x,this.y)?(a.b.trigger(Ac.prototype.e.Fu,a),a.me=this.x,a.ne=this.y,a.b.trigger(Ac.prototype.e.Gu,a),y=m=-1E3,K=-1E4):(a.b.trigger(Ac.prototype.e.av,a),a.me=this.x,a.ne=this.y,a.b.trigger(Ac.prototype.e.Lp,a),m=this.x,y=this.y,K=c),a.Yg=0)}};a.H=function(){this.uy=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Yg=this.Oh=this.de=this.ne=this.me=this.Yp=this.Xp=this.Wp=this.Ov=this.Nv=this.Mv=this.El=
this.Dl=this.Cl=0;this.Nz=0!==this.A[0];var a=0<this.b.mc?document:this.b.canvas,b=document;this.b.Kb?b=a=window.Canvas:this.b.ad&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.ks(a)},!1),a.addEventListener("pointermove",function(a){c.hs(a)},!1),b.addEventListener("pointerup",function(a){c.Al(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Al(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.ks(a)},!1),a.addEventListener("MSPointerMove",function(a){c.hs(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Al(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Al(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.os(a)},!1),a.addEventListener("touchmove",function(a){c.ns(a)},!1),b.addEventListener("touchend",function(a){c.to(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.to(a,!0)},!1));if(this.uy){var e=function(a){a=a.reading;c.Wp=a.accelerationX;c.Xp=a.accelerationY;
c.Yp=a.accelerationZ},d=function(a){a=a.reading;c.Cl=a.yawDegrees;c.Dl=a.pitchDegrees;c.El=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));var k=Windows.Devices.Sensors.Inclinometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",d));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?
(g&&g.removeEventListener("readingchanged",e),k&&k.removeEventListener("readingchanged",d)):(g&&g.addEventListener("readingchanged",e),k&&k.addEventListener("readingchanged",d))},!1)}else window.addEventListener("deviceorientation",function(a){c.Cl=a.alpha||0;c.Dl=a.beta||0;c.El=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Mv=a.accelerationIncludingGravity.x||0,c.Nv=a.accelerationIncludingGravity.y||0,c.Ov=a.accelerationIncludingGravity.z||
0);a.acceleration&&(c.Wp=a.acceleration.x||0,c.Xp=a.acceleration.y||0,c.Yp=a.acceleration.z||0)},!1);this.Nz&&!this.b.Za&&(jQuery(document).mousemove(function(a){c.Ly(a)}),jQuery(document).mousedown(function(a){c.Ky(a)}),jQuery(document).mouseup(function(a){c.My(a)}));!this.b.ih&&this.b.Pc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(f,null,{frequency:40});this.b.Ez(this)};a.hs=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.qi(a.pointerId),c=Wa();if(0<=b){var d=this.b.Za?e:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||b.update(c,a.pageX-d.left,a.pageY-d.top,a.width||0,a.height||0,a.pressure||0)}}};a.ks=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&kb(a)&&a.preventDefault();var b=this.b.Za?e:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Wa();this.de=this.touches.length;
this.Oh=a.pointerId;this.touches.push(k(c,b,a.pointerId,this.de));this.b.Qc=!0;this.b.trigger(Ac.prototype.e.Ip,this);this.b.trigger(Ac.prototype.e.Np,this);this.me=c;this.ne=b;this.b.trigger(Ac.prototype.e.Cm,this);this.b.Qc=!1}};a.Al=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&kb(a)&&a.preventDefault();var c=this.qi(a.pointerId);this.de=0<=c?this.touches[c].Aj:-1;this.Oh=0<=c?this.touches[c].id:-1;this.b.Qc=!0;this.b.trigger(Ac.prototype.e.Hp,
this);this.b.trigger(Ac.prototype.e.Mp,this);0<=c&&(b||this.touches[c].Sr(this,c),100>l.length&&l.push(this.touches[c]),this.touches.splice(c,1));this.b.Qc=!1}};a.ns=function(a){a.preventDefault&&a.preventDefault();var b=Wa(),c,d,g,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(g=a.changedTouches[c],f=this.qi(g.identifier),0<=f){var k=this.b.Za?e:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,g.pageX-k.left,g.pageY-k.top,2*(g.YA||g.gB||g.QA||g.TA||0),2*(g.ZA||g.hB||g.RA||
g.UA||0),g.JA||g.fB||g.PA||g.SA||0)}};a.os=function(a){a.preventDefault&&kb(a)&&a.preventDefault();var b=this.b.Za?e:jQuery(this.b.canvas).offset();Wa();this.b.Qc=!0;var c,d,g,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(g=a.changedTouches[c],f=this.qi(g.identifier),-1===f){f=g.pageX-b.left;var l=g.pageY-b.top;this.de=this.touches.length;this.Oh=g.identifier;this.touches.push(k(f,l,g.identifier,this.de));this.b.trigger(Ac.prototype.e.Ip,this);this.b.trigger(Ac.prototype.e.Np,this);this.me=f;this.ne=
l;this.b.trigger(Ac.prototype.e.Cm,this)}this.b.Qc=!1};a.to=function(a,b){a.preventDefault&&kb(a)&&a.preventDefault();this.b.Qc=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.qi(e.identifier),0<=e&&(this.de=this.touches[e].Aj,this.Oh=this.touches[e].id,this.b.trigger(Ac.prototype.e.Hp,this),this.b.trigger(Ac.prototype.e.Mp,this),b||this.touches[e].Sr(this,e),100>l.length&&l.push(this.touches[e]),this.touches.splice(e,1));this.b.Qc=!1};a.bf=function(){return this.b.Pc&&
0===this.Cl&&0!==c?90*c:this.Cl};a.an=function(){return this.b.Pc&&0===this.Dl&&0!==d?90*d:this.Dl};a.zq=function(){return this.b.Pc&&0===this.El&&0!==b?90*b:this.El};a.Ky=function(a){q(a)||(this.os({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.lo=!0)};a.Ly=function(a){this.lo&&!q(a)&&this.ns({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.My=function(a){a.preventDefault&&this.b.Uq&&!this.b.sf&&a.preventDefault();this.b.Uq=!0;q(a)||(this.to({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]}),this.lo=!1)};a.Fj=function(){var a,b,c,e=Wa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=e-50&&(c.Yn=e),c.Ey(this,a)};p.prototype.Np=function(){return!0};p.prototype.Mp=function(){return!0};p.prototype.hu=function(){return this.touches.length};p.prototype.Cm=function(a){return a?this.b.lm(a,this.me,this.ne):!1};var F=[];p.prototype.pu=function(a){if(!a)return!1;var b=a.ea(),c=b.nc(),e,d,g,f,k,l;g=0;for(f=c.length;g<f;g++){var m=c[g];m.Ba();k=0;for(l=
this.touches.length;k<l;k++)if(d=this.touches[k],e=m.k.Gb(d.x,d.y,!0),d=m.k.Gb(d.x,d.y,!1),m.Tb(e,d)){F.push(m);break}}return F.length?(b.wa=!1,Aa(b.j,F),a.Ic(),A(F),!0):!1};p.prototype.Ip=function(a){a=Math.floor(a);return a===this.de};p.prototype.Hp=function(a){a=Math.floor(a);return a===this.de};p.prototype.Ku=function(){return!0};p.prototype.av=function(){return!0};p.prototype.Fu=function(){return!0};p.prototype.Lu=function(a){return a?this.b.lm(a,this.me,this.ne):!1};p.prototype.Lp=function(a){return a?
this.b.lm(a,this.me,this.ne):!1};p.prototype.Gu=function(a){return a?this.b.lm(a,this.me,this.ne):!1};g.e=new p;r.prototype.Sp=function(a,b){var c=this.Yg;if(0>c||c>=this.touches.length)a.L(0);else{var d,e,g,f,k;ga(b)?(d=this.b.si(0),e=d.scale,g=d.Id,f=d.dd,k=d.n,d.scale=1,d.Id=1,d.dd=1,d.n=0,a.L(d.Gb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Id=g,d.dd=f,d.n=k):(d=ha(b)?this.b.si(b):this.b.An(b))?a.L(d.Gb(this.touches[c].x,this.touches[c].y,!0)):a.L(0)}};r.prototype.Im=function(a,b){var c=
this.Yg;if(0>c||c>=this.touches.length)a.L(0);else{var d,e,g,f,k;ga(b)?(d=this.b.si(0),e=d.scale,g=d.Id,f=d.ed,k=d.n,d.scale=1,d.Id=1,d.ed=1,d.n=0,a.L(d.Gb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Id=g,d.ed=f,d.n=k):(d=ha(b)?this.b.si(b):this.b.An(b))?a.L(d.Gb(this.touches[c].x,this.touches[c].y,!1)):a.L(0)}};g.da=new r})();function Bc(f){this.b=f}
(function(){function f(){}function k(){}function n(){}var q=Bc.prototype;q.Y=function(a){this.ta=a;this.b=a.b};q.Y.prototype.H=function(){};q.T=function(a){this.type=a;this.b=a.b};var p=q.T.prototype,r="",g="undefined"!==typeof window.is_scirra_arcade;g&&(r="arcade"+window.scirra_arcade_id);var a=!1;try{localStorage.getItem("test"),a=!0}catch(e){a=!1}p.H=function(){a||ea("[Construct 2] Webstorage plugin: local storage is not supported on this platform.")};f.prototype.Xu=function(){return!0};q.e=new f;
k.prototype.Gv=function(b,d){if(a)try{localStorage.setItem(r+b,d)}catch(c){this.b.trigger(Bc.prototype.e.Xu,this)}};q.B=new k;n.prototype.rp=function(b){if(a){var d={},c,e,f;c=0;for(e=localStorage.length;c<e;c++)f=localStorage.key(c),g?f.substr(0,r.length)===r&&(d[f.substr(r.length)]=localStorage.getItem(f)):d[f]=localStorage.getItem(f);b.Xb(JSON.stringify({c2dictionary:!0,data:d}))}else b.Xb("")};q.da=new n})();function Cc(f){this.b=f}
(function(){function f(){}function k(){}var n=Cc.prototype;n.Y=function(f){this.behavior=f;this.b=f.b};n.Y.prototype.H=function(){};n.T=function(f,k){this.type=f;this.behavior=f.behavior;this.d=k;this.b=f.b};var q=n.T.prototype;q.H=function(){this.Mm=1===this.A[0];this.Vs=!1;this.oi=this.A[1];this.Nj=this.A[2];this.Dk=this.A[3];this.lw=this.A[4];this.Hc=this.Mm?0:3;this.ec?this.hd.reset():this.hd=new bb;this.zf=this.d.opacity?this.d.opacity:1;this.Mm&&(0===this.oi?(this.Hc=1,0===this.Nj&&(this.Hc=
2)):(this.d.opacity=0,this.b.ba=!0))};q.kb=function(){return{fit:this.oi,wt:this.Nj,fot:this.Dk,s:this.Hc,st:this.hd.R,mo:this.zf}};q.Db=function(f){this.oi=f.fit;this.Nj=f.wt;this.Dk=f.fot;this.Hc=f.s;this.hd.reset();this.hd.R=f.st;this.zf=f.mo};q.ab=function(){this.hd.add(this.b.ri(this.d));0===this.Hc&&(this.d.opacity=this.hd.R/this.oi*this.zf,this.b.ba=!0,this.d.opacity>=this.zf&&(this.d.opacity=this.zf,this.Hc=1,this.hd.reset(),this.b.trigger(Cc.prototype.e.Hu,this.d)));1===this.Hc&&this.hd.R>=
this.Nj&&(this.Hc=2,this.hd.reset(),this.b.trigger(Cc.prototype.e.cv,this.d));2===this.Hc&&0!==this.Dk&&(this.d.opacity=this.zf-this.hd.R/this.Dk*this.zf,this.b.ba=!0,0>this.d.opacity&&(this.d.opacity=0,this.Hc=3,this.hd.reset(),this.b.trigger(Cc.prototype.e.Iu,this.d),1===this.lw&&this.b.Ue(this.d)))};q.Dw=function(){this.Hc=0;this.hd.reset();0===this.oi?(this.Hc=1,0===this.Nj&&(this.Hc=2)):(this.d.opacity=0,this.b.ba=!0)};f.prototype.Iu=function(){return!0};f.prototype.Hu=function(){return!0};f.prototype.cv=
function(){return!0};n.e=new f;k.prototype.Ev=function(){this.Mm||this.Vs||(this.zf=this.d.opacity?this.d.opacity:1,this.Vs=!0);3===this.Hc&&this.Dw()};n.B=new k;n.da=new function(){}})();function Ec(f){this.b=f}
(function(){function f(){}var k=Ec.prototype;k.Y=function(f){this.behavior=f;this.b=f.b};k.Y.prototype.H=function(){};k.T=function(f,k){this.type=f;this.behavior=f.behavior;this.d=k;this.b=f.b};var n=k.T.prototype;n.H=function(){this.zb=null;this.Gl=-1;this.mode=this.nh=this.om=this.Ah=this.Ee=this.jj=0;var f=this;this.ec||(this.aj=function(k){f.fj(k)});this.b.ak(this.aj)};n.kb=function(){return{uid:this.zb?this.zb.uid:-1,pa:this.jj,pd:this.Ee,msa:this.Ah,tsa:this.om,lka:this.nh,m:this.mode}};n.Db=
function(f){this.Gl=f.uid;this.jj=f.pa;this.Ee=f.pd;this.Ah=f.msa;this.om=f.tsa;this.nh=f.lka;this.mode=f.m};n.nd=function(){-1===this.Gl?this.zb=null:this.zb=this.b.Yf(this.Gl);this.Gl=-1};n.fj=function(f){this.zb==f&&(this.zb=null)};n.Ce=function(){this.zb=null;this.b.Ls(this.aj)};n.ab=function(){};n.Fj=function(){if(this.zb){this.nh!==this.d.n&&(this.Ah=Ja(this.Ah+(this.d.n-this.nh)));var f=this.d.x,k=this.d.y;if(3===this.mode||4===this.mode){var r=Sa(this.d.x,this.d.y,this.zb.x,this.zb.y);if(r>
this.Ee||4===this.mode&&r<this.Ee)k=Na(this.zb.x,this.zb.y,this.d.x,this.d.y),f=this.zb.x+Math.cos(k)*this.Ee,k=this.zb.y+Math.sin(k)*this.Ee}else f=this.zb.x+Math.cos(this.zb.n+this.jj)*this.Ee,k=this.zb.y+Math.sin(this.zb.n+this.jj)*this.Ee;this.nh=r=Ja(this.Ah+(this.zb.n-this.om));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.d.x===f&&this.d.y===k||(this.d.x=f,this.d.y=k,this.d.F());0!==this.mode&&2!==this.mode||this.d.n===r||(this.d.n=r,this.d.F())}};k.e=new function(){};f.prototype.gv=
function(f,k){if(f){var r=f.Pq(this.d);r&&(this.zb=r,this.jj=Na(r.x,r.y,this.d.x,this.d.y)-r.n,this.Ee=Sa(r.x,r.y,this.d.x,this.d.y),this.nh=this.Ah=this.d.n,this.om=r.n,this.mode=k)}};k.B=new f;k.da=new function(){}})();function Jc(f){this.b=f}
(function(){function f(){}function k(){}var n=Jc.prototype;n.Y=function(f){this.behavior=f;this.b=f.b};n.Y.prototype.H=function(){};n.T=function(f,k){this.type=f;this.behavior=f.behavior;this.d=k;this.b=f.b;this.yj=this.fm=this.em=this.Jn=this.ei=this.ki=this.jh=this.kh=this.qj=this.Qi=!1;this.Wb=null;this.$n=-1;this.hg=this.gg=0;this.Kk=!1;this.Wf=this.qd=0;this.Jk=!0;this.ka=this.X=0};var q=n.T.prototype;q.Bt=function(){this.eb=Math.cos(this.Xg);this.fb=Math.sin(this.Xg);this.Cf=Math.cos(this.Xg-
Math.PI/2);this.Df=Math.sin(this.Xg-Math.PI/2);this.eb=ib(this.eb);this.fb=ib(this.fb);this.Cf=ib(this.Cf);this.Df=ib(this.Df);this.tn=this.te;0>this.te&&(this.eb*=-1,this.fb*=-1,this.te=Math.abs(this.te))};q.H=function(){this.wh=this.A[0];this.Hg=this.A[1];this.Qg=this.A[2];this.Ni=this.A[3];this.tn=this.te=this.A[4];this.ul=this.A[5];this.hn=0!==this.A[6];this.Vn=this.A[7]/1E3;this.iw=1===this.A[8];this.enabled=0!==this.A[9];this.Th=!1;this.Uh=this.b.Ke(this.d);this.ao=-1;this.Bg=0;this.Xg=N(90);
this.Bt();var f=this;this.iw&&!this.b.Za&&(jQuery(document).keydown(function(k){f.ro(k)}),jQuery(document).keyup(function(k){f.so(k)}));this.ec||(this.aj=function(k){f.fj(k)});this.b.ak(this.aj);this.d.J.isPlatformBehavior=!0};q.kb=function(){return{ii:this.Jn,lfx:this.gg,lfy:this.hg,lfo:this.Wb?this.Wb.uid:-1,am:this.qd,en:this.enabled,fall:this.Wf,ft:this.Jk,dx:this.X,dy:this.ka,ms:this.wh,acc:this.Hg,dec:this.Qg,js:this.Ni,g:this.te,g1:this.tn,mf:this.ul,wof:this.Th,woj:this.Uh?this.Uh.uid:-1,
ga:this.Xg,edj:this.hn,cdj:this.ei,dj:this.ki,sus:this.Vn}};q.Db=function(f){this.Jn=f.ii;this.gg=f.lfx;this.hg=f.lfy;this.$n=f.lfo;this.qd=f.am;this.enabled=f.en;this.Wf=f.fall;this.Jk=f.ft;this.X=f.dx;this.ka=f.dy;this.wh=f.ms;this.Hg=f.acc;this.Qg=f.dec;this.Ni=f.js;this.te=f.g;this.tn=f.g1;this.ul=f.mf;this.Th=f.wof;this.ao=f.woj;this.Xg=f.ga;this.hn=f.edj;this.ei=f.cdj;this.ki=f.dj;this.Vn=f.sus;this.yj=this.fm=this.em=this.jh=this.kh=this.qj=this.Qi=!1;this.Bg=0;this.Bt()};q.nd=function(){-1===
this.$n?this.Wb=null:this.Wb=this.b.Yf(this.$n);-1===this.ao?this.Uh=null:this.Uh=this.b.Yf(this.ao)};q.fj=function(f){this.Wb==f&&(this.Wb=null)};q.Ce=function(){this.Wb=null;this.b.Ls(this.aj)};q.ro=function(f){switch(f.which){case 38:f.preventDefault();this.kh=!0;break;case 37:f.preventDefault();this.Qi=!0;break;case 39:f.preventDefault(),this.qj=!0}};q.so=function(f){switch(f.which){case 38:f.preventDefault();this.jh=this.kh=!1;break;case 37:f.preventDefault();this.Qi=!1;break;case 39:f.preventDefault(),
this.qj=!1}};q.ug=function(){this.kh=this.qj=this.Qi=!1};q.bf=function(){return 0>this.te?-1:1};q.ir=function(){var f=null,k=null,g,a;g=this.d.x;a=this.d.y;this.d.x+=this.eb;this.d.y+=this.fb;this.d.F();if(this.Wb&&this.b.hc(this.d,this.Wb)&&(!this.b.fp(this.Wb.type,oc)||this.Wb.J.solidEnabled))return this.d.x=g,this.d.y=a,this.d.F(),this.Wb;(f=this.b.ic(this.d))||0!==this.Wf||(k=this.b.Ke(this.d,!0));this.d.x=g;this.d.y=a;this.d.F();if(f){if(this.b.hc(this.d,f))return null;this.Kk=!1;return f}if(k&&
k.length){a=f=0;for(g=k.length;f<g;f++)k[a]=k[f],this.b.hc(this.d,k[f])||a++;if(1<=a)return this.Kk=!0,k[0]}return null};q.ab=function(){};q.Es=function(){var f=this.b.ri(this.d),k,g,a,e,b,d,c,l,m;this.kh||this.yj||(this.jh=!1);var n=this.Qi||this.em;a=this.qj||this.fm;var q=(e=this.kh||this.yj)&&!this.jh;this.yj=this.fm=this.em=!1;if(this.enabled){this.Jn&&(q=e=a=n=!1);e||(this.Bg=0);l=this.Wb;m=!1;this.Jk&&((this.b.ic(this.d)||this.b.Ke(this.d))&&this.b.Bd(this.d,-this.eb,-this.fb,4,!0),this.Jk=
!1);!l||0!==this.ka||l.y===this.hg&&l.x===this.gg||(k=l.x-this.gg,g=l.y-this.hg,this.d.x+=k,this.d.y+=g,this.d.F(),this.gg=l.x,this.hg=l.y,m=!0,this.b.ic(this.d)&&this.b.Bd(this.d,-k,-g,2.5*Math.sqrt(k*k+g*g)));var F=this.ir();if(g=this.b.ic(this.d))if(this.d.J.inputPredicted)this.b.Bd(this.d,-this.eb,-this.fb,10,!1);else if(this.b.Is(this.d,this.Cf,this.Df,this.d.width/2))this.b.wg(this.d,g);else if(this.b.Is(this.d,this.eb,this.fb,this.d.height/2))this.b.wg(this.d,g);else if(this.b.cz(this.d,Math.max(this.d.width,
this.d.height)/2))this.b.wg(this.d,g);else return;F?(this.ei=this.ki=!1,0<this.ka&&(this.Th||(this.b.Ql(this.d,-this.eb,-this.fb,F),this.Th=!0),this.ka=0),l!=F)?(this.Wb=F,this.gg=F.x,this.hg=F.y,this.b.wg(this.d,F)):m&&(g=this.b.ic(this.d))&&(this.b.wg(this.d,g),0!==k&&(0<k?this.b.Bd(this.d,-this.Cf,-this.Df):this.b.Bd(this.d,this.Cf,this.Df)),this.b.Bd(this.d,-this.eb,-this.fb)):e||(this.ei=!0);if(F&&q||!F&&this.hn&&e&&this.ei&&!this.ki)l=this.d.x,m=this.d.y,this.d.x-=this.eb,this.d.y-=this.fb,
this.d.F(),this.b.ic(this.d)?q=!1:(this.Bg=this.Vn,this.b.trigger(Jc.prototype.e.Nu,this.d),this.qd=2,this.ka=-this.Ni,q=!0,F?this.jh=!0:this.ki=!0),this.d.x=l,this.d.y=m,this.d.F();F||(e&&0<this.Bg?(this.ka=-this.Ni,this.Bg-=f):(this.Wb=null,this.ka+=this.te*f,this.ka>this.ul&&(this.ka=this.ul)),q&&(this.jh=!0));this.Th=!!F;n==a&&(0>this.X?(this.X+=this.Qg*f,0<this.X&&(this.X=0)):0<this.X&&(this.X-=this.Qg*f,0>this.X&&(this.X=0)));n&&!a&&(this.X=0<this.X?this.X-(this.Hg+this.Qg)*f:this.X-this.Hg*
f);a&&!n&&(this.X=0>this.X?this.X+(this.Hg+this.Qg)*f:this.X+this.Hg*f);this.X>this.wh?this.X=this.wh:this.X<-this.wh&&(this.X=-this.wh);n=!1;0!==this.X&&(l=this.d.x,m=this.d.y,k=this.X*f*this.Cf,g=this.X*f*this.Df,this.d.x+=this.Cf*(1<this.X?1:-1)-this.eb,this.d.y+=this.Df*(1<this.X?1:-1)-this.fb,this.d.F(),e=!1,b=this.b.ic(this.d),this.d.x=l+k,this.d.y=m+g,this.d.F(),a=this.b.ic(this.d),!a&&F&&(a=this.b.Ke(this.d))&&(this.d.x=l,this.d.y=m,this.d.F(),this.b.hc(this.d,a)?(a=null,e=!1):e=!0,this.d.x=
l+k,this.d.y=m+g,this.d.F()),a?(k=Math.abs(this.X*f)+2,b||!this.b.Bd(this.d,-this.eb,-this.fb,k,e,a))?(this.b.wg(this.d,a),k=Math.max(Math.abs(this.X*f*2.5),30),this.b.Bd(this.d,this.Cf*(0>this.X?1:-1),this.Df*(0>this.X?1:-1),k,!1)?!F||e||this.Kk||(l=this.d.x,m=this.d.y,this.d.x+=this.eb,this.d.y+=this.fb,this.b.ic(this.d)?this.b.Bd(this.d,-this.eb,-this.fb,3,!1)||(this.d.x=l,this.d.y=m,this.d.F()):(this.d.x=l,this.d.y=m,this.d.F())):(this.d.x=l,this.d.y=m,this.d.F()),e||(this.X=0)):!b&&!q&&Math.abs(this.ka)<
Math.abs(this.Ni/4)&&(this.ka=0,F||(n=!0)):(l=this.ir(),F&&!l?(g=Math.ceil(Math.abs(this.X*f))+2,l=this.d.x,m=this.d.y,this.d.x+=this.eb*g,this.d.y+=this.fb*g,this.d.F(),this.b.ic(this.d)||this.b.Ke(this.d)?this.b.Bd(this.d,-this.eb,-this.fb,g+2,!0):(this.d.x=l,this.d.y=m,this.d.F())):l&&0===this.ka&&this.b.Ql(this.d,-this.eb,-this.fb,l)));if(0!==this.ka){l=this.d.x;m=this.d.y;this.d.x+=this.ka*f*this.eb;this.d.y+=this.ka*f*this.fb;k=this.d.x;a=this.d.y;this.d.F();g=this.b.ic(this.d);e=!1;if(!g&&
0<this.ka&&!F){if((e=0<this.Wf?null:this.b.Ke(this.d,!0))&&e.length){if(this.Uh){this.d.x=l;this.d.y=m;this.d.F();c=b=0;for(d=e.length;b<d;b++)e[c]=e[b],this.b.hc(this.d,e[b])||c++;e.length=c;this.d.x=k;this.d.y=a;this.d.F()}1<=e.length&&(g=e[0])}e=!!g}g&&(this.b.wg(this.d,g),this.Bg=0,k=e?Math.abs(this.ka*f*2.5+10):Math.max(Math.abs(this.ka*f*2.5+10),30),this.b.Bd(this.d,this.eb*(0>this.ka?1:-1),this.fb*(0>this.ka?1:-1),k,e,g)?(this.Wb=g,this.gg=g.x,this.hg=g.y,(this.Kk=e)&&(n=!0),this.ka=0):(this.d.x=
l,this.d.y=m,this.d.F(),this.Th=!0,e||(this.ka=0)))}3!==this.qd&&0<this.ka&&!F&&(this.b.trigger(Jc.prototype.e.Ju,this.d),this.qd=3);(F||n)&&0<=this.ka&&(3===this.qd||n||q&&0===this.ka?(this.b.trigger(Jc.prototype.e.Pu,this.d),this.qd=0===this.X&&0===this.ka?0:1):(0!==this.qd&&0===this.X&&0===this.ka&&(this.b.trigger(Jc.prototype.e.$u,this.d),this.qd=0),1===this.qd||0===this.X&&0===this.ka||q||(this.b.trigger(Jc.prototype.e.Ru,this.d),this.qd=1)));0<this.Wf&&this.Wf--;this.Uh=this.b.Ke(this.d)}};
f.prototype.ku=function(){if(0!==this.ka)return!1;var f=null,k=null,g,a;g=this.d.x;a=this.d.y;this.d.x+=this.eb;this.d.y+=this.fb;this.d.F();(f=this.b.ic(this.d))||0!==this.Wf||(k=this.b.Ke(this.d,!0));this.d.x=g;this.d.y=a;this.d.F();if(f)return!this.b.hc(this.d,f);if(k&&k.length){a=f=0;for(g=k.length;f<g;f++)k[a]=k[f],this.b.hc(this.d,k[f])||a++;if(1<=a)return!0}return!1};f.prototype.iu=function(){return 0>this.ka};f.prototype.fu=function(){return 0<this.ka};f.prototype.Nu=function(){return!0};
f.prototype.Ju=function(){return!0};f.prototype.$u=function(){return!0};f.prototype.Ru=function(){return!0};f.prototype.Pu=function(){return!0};n.e=new f;k.prototype.Cv=function(f){switch(f){case 0:this.em=!0;break;case 1:this.fm=!0;break;case 2:this.yj=!0}};k.prototype.yv=function(f){this.ka=f};k.prototype.Em=function(f){this.enabled!==(1===f)&&(this.enabled=1===f,this.enabled||(this.Wb=null))};n.B=new k;n.da=new function(){}})();function Kc(f){this.b=f}
(function(){var f=Kc.prototype;f.Y=function(f){this.behavior=f;this.b=f.b};f.Y.prototype.H=function(){};f.T=function(f,g){this.type=f;this.behavior=f.behavior;this.d=g;this.b=f.b;this.qb=0};var k=f.T.prototype,n=2*Math.PI,q=Math.PI/2,p=3*Math.PI/2;k.H=function(){this.Qb=1===this.A[0];this.yh=this.A[1];this.pp=this.A[2];this.De=this.A[3];this.De+=Math.random()*this.A[4];0===this.De?this.qb=0:(this.qb=this.A[5]/this.De*n,this.qb+=Math.random()*this.A[6]/this.De*n);this.pc=this.A[7];this.pc+=Math.random()*
this.A[8];this.oj=this.dg=this.la=0;5===this.yh&&(this.pc=N(this.pc));this.init()};k.kb=function(){return{i:this.qb,a:this.Qb,mv:this.yh,w:this.pp,p:this.De,mag:this.pc,iv:this.la,iv2:this.dg,r:this.oj,lkv:this.Cc,lkv2:this.Oi}};k.Db=function(f){this.qb=f.i;this.Qb=f.a;this.yh=f.mv;this.pp=f.w;this.De=f.p;this.pc=f.mag;this.la=f.iv;this.dg=f.iv2||0;this.oj=f.r;this.Cc=f.lkv;this.Oi=f.lkv2||0};k.init=function(){switch(this.yh){case 0:this.la=this.d.x;break;case 1:this.la=this.d.y;break;case 2:this.la=
this.d.width;this.oj=this.d.height/this.d.width;break;case 3:this.la=this.d.width;break;case 4:this.la=this.d.height;break;case 5:this.la=this.d.n;break;case 6:this.la=this.d.opacity;break;case 7:this.la=0;break;case 8:this.la=this.d.x,this.dg=this.d.y}this.Cc=this.la;this.Oi=this.dg};k.Se=function(f){f=f%n;switch(this.pp){case 0:return Math.sin(f);case 1:return f<=q?f/q:f<=p?1-2*(f-q)/Math.PI:(f-p)/q-1;case 2:return 2*f/n-1;case 3:return-2*f/n+1;case 4:return f<Math.PI?-1:1}return 0};k.ab=function(){var f=
this.b.ri(this.d);this.Qb&&0!==f&&(0===this.De?this.qb=0:(this.qb+=f/this.De*n,this.qb=this.qb%n),this.Iz())};k.Iz=function(){switch(this.yh){case 0:this.d.x!==this.Cc&&(this.la+=this.d.x-this.Cc);this.d.x=this.la+this.Se(this.qb)*this.pc;this.Cc=this.d.x;break;case 1:this.d.y!==this.Cc&&(this.la+=this.d.y-this.Cc);this.d.y=this.la+this.Se(this.qb)*this.pc;this.Cc=this.d.y;break;case 2:this.d.width=this.la+this.Se(this.qb)*this.pc;this.d.height=this.d.width*this.oj;break;case 3:this.d.width=this.la+
this.Se(this.qb)*this.pc;break;case 4:this.d.height=this.la+this.Se(this.qb)*this.pc;break;case 5:this.d.n!==this.Cc&&(this.la=Ja(this.la+(this.d.n-this.Cc)));this.d.n=Ja(this.la+this.Se(this.qb)*this.pc);this.Cc=this.d.n;break;case 6:this.d.opacity=this.la+this.Se(this.qb)*this.pc/100;0>this.d.opacity?this.d.opacity=0:1<this.d.opacity&&(this.d.opacity=1);break;case 8:this.d.x!==this.Cc&&(this.la+=this.d.x-this.Cc),this.d.y!==this.Oi&&(this.dg+=this.d.y-this.Oi),this.d.x=this.la+Math.cos(this.d.n)*
this.Se(this.qb)*this.pc,this.d.y=this.dg+Math.sin(this.d.n)*this.Se(this.qb)*this.pc,this.Cc=this.d.x,this.Oi=this.d.y}this.d.F()};k.ls=function(f,g){switch(this.yh){case 2:this.la*=g.width/f.width;this.oj=g.height/g.width;break;case 3:this.la*=g.width/f.width;break;case 4:this.la*=g.height/f.height}};f.e=new function(){};f.B=new function(){};f.da=new function(){}})();function Mc(f){this.b=f;this.Uo=this.dm=this.xj=this.To=0}
(function(){function f(){}var k=Mc.prototype;k.Y=function(f){this.behavior=f;this.b=f.b};k.Y.prototype.H=function(){};k.T=function(f,k){this.type=f;this.behavior=f.behavior;this.d=k;this.b=f.b};var n=k.T.prototype;n.H=function(){this.enabled=0!==this.A[0]};n.kb=function(){return{smg:this.behavior.To,ss:this.behavior.xj,se:this.behavior.dm,smd:this.behavior.Uo}};n.Db=function(f){this.behavior.To=f.smg;this.behavior.xj=f.ss;this.behavior.dm=f.se;this.behavior.Uo=f.smd};n.ab=function(){};n.Fj=function(){if(this.enabled){var f=
this.behavior.wl.Pe(),k=0,n=0,g,a,e,b=0;g=0;for(a=f.length;g<a;g++){a:{e=f[g];for(var d=void 0,c=void 0,l=void 0,d=0,c=e.O.length;d<c;++d)if(l=e.O[d],l.behavior instanceof Mc){e=l;break a}e=null}e&&e.enabled&&(k+=f[g].x,n+=f[g].y,++b)}f=this.d.k.ub;a=this.b.sb.R;e=g=0;a>=this.behavior.xj&&a<this.behavior.dm&&(g=this.behavior.To*Math.min(this.b.Cg,1),0===this.behavior.Uo&&(g*=1-(a-this.behavior.xj)/(this.behavior.dm-this.behavior.xj)),a=Math.random()*Math.PI*2,e=Math.random()*g,g=Math.cos(a)*e,e*=
Math.sin(a));f.Oo(k/b+g);f.Po(n/b+e)}};f.prototype.Em=function(f){this.enabled=0!==f};k.B=new f})();function oc(f){this.b=f}(function(){function f(){}var k=oc.prototype;k.Y=function(f){this.behavior=f;this.b=f.b};k.Y.prototype.H=function(){};k.T=function(f,k){this.type=f;this.behavior=f.behavior;this.d=k;this.b=f.b};var n=k.T.prototype;n.H=function(){this.d.J.solidEnabled=0!==this.A[0]};n.ab=function(){};k.e=new function(){};f.prototype.Em=function(f){this.d.J.solidEnabled=!!f};k.B=new f})();
function nc(){return[Z,rc,qc,pc,wc,sc,X,xc,yc,zc,Bc,Ac,Kc,oc,Cc,Jc,Ec,Mc,T.prototype.e.gu,T.prototype.e.Ep,X.prototype.B.ov,qc.prototype.B.Play,xc.prototype.B.Pp,Z.prototype.B.jv,T.prototype.e.Rt,xc.prototype.e.Op,Z.prototype.e.Xh,T.prototype.B.xv,Z.prototype.da.su,X.prototype.B.Qp,Ac.prototype.e.Lp,X.prototype.e.Qt,qc.prototype.e.nu,X.prototype.e.Ot,qc.prototype.B.wv,T.prototype.e.up,T.prototype.e.Nt,zc.prototype.da.Tt,zc.prototype.e.sp,T.prototype.B.Ut,zc.prototype.da.Rp,zc.prototype.da.Sp,zc.prototype.da.Im,
zc.prototype.B.Av,zc.prototype.B.tp,T.prototype.B.Iv,T.prototype.B.Zt,Ac.prototype.e.pu,X.prototype.B.uv,X.prototype.B.pv,T.prototype.B.sv,X.prototype.e.du,T.prototype.e.Vt,X.prototype.da.Opacity,T.prototype.B.Ht,T.prototype.B.Hv,X.prototype.e.lu,T.prototype.da.random,X.prototype.B.qv,X.prototype.da.$t,Jc.prototype.B.yv,wc.prototype.B.Kt,T.prototype.B.Yt,wc.prototype.e.xp,wc.prototype.B.Xt,wc.prototype.e.yp,wc.prototype.da.qu,wc.prototype.e.zp,wc.prototype.B.rv,X.prototype.B.tp,pc.prototype.B.CallFunction,
X.prototype.B.vv,Ec.prototype.B.gv,X.prototype.B.vu,X.prototype.B.lv,Mc.prototype.B.Em,T.prototype.B.tv,pc.prototype.e.Vj,qc.prototype.e.ou,qc.prototype.B.Fv,X.prototype.e.St,T.prototype.da.zy,Z.prototype.B.hv,Bc.prototype.B.Gv,T.prototype.B.kv,sc.prototype.e.Ap,Jc.prototype.B.Cv,sc.prototype.e.ju,X.prototype.e.vp,X.prototype.e.bu,X.prototype.B.nv,Ac.prototype.e.Cm,X.prototype.e.Pt,X.prototype.e.Op,Jc.prototype.e.ku,Ac.prototype.e.hu,X.prototype.e.mu,Jc.prototype.e.fu,Jc.prototype.e.iu,T.prototype.e.Wt,
X.prototype.e.sp,T.prototype.da.Ay,X.prototype.da.Rp,X.prototype.B.Bv,X.prototype.da.Im,X.prototype.e.Du,X.prototype.da.au,Cc.prototype.B.Ev,T.prototype.e.dv,xc.prototype.B.Qp,T.prototype.e.tu,T.prototype.e.Dp]};
