// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,da,K,fa,ga,P,R,ha,ia,la,ma,na,T,qa,ra,U,ta,va,wa,xa,ya,za,Aa,V,Ba,Ca,Da,Ea,Fa,Ha,Ia,Ja,Ka,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,W,Wb,Xb={},Yb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(e,a,b,c){this.set(e,a,b,c)}function m(){this.ub=this.tb=this.xb=this.wb=this.Ib=this.Hb=this.Sa=this.Ra=0}function d(e,a,b,c){e<a?b<c?(p=e<b?e:b,v=a>c?a:c):(p=e<c?e:c,v=a>b?a:b):b<c?(p=a<b?a:b,v=e>c?e:c):(p=a<c?a:c,v=e>b?e:b)}function q(){this.items=this.Oc=null;this.Af=0;t&&(this.Oc=new Set);this.dg=[];this.Vd=!0}function k(e){y[F++]=e}function b(){this.Z=this.yj=this.y=this.$j=0}function a(e){this.Oa=[];this.Kh=this.Mh=this.Nh=this.Lh=0;this.wh(e)}function c(e,a){this.ck=
e;this.bk=a;this.cells={}}function w(e,a){this.ck=e;this.bk=a;this.cells={}}function r(e,a,b){var c;return oa.length?(c=oa.pop(),c.Mk=e,c.x=a,c.y=b,c):new aa(e,a,b)}function l(e,a,b){this.Mk=e;this.x=a;this.y=b;this.Wa=new ca}function h(e,a,b){var c;return x.length?(c=x.pop(),c.Mk=e,c.x=a,c.y=b,c):new da(e,a,b)}function s(e,a,b){this.Mk=e;this.x=a;this.y=b;this.Wa=[];this.yf=!0;this.ad=new ca;this.hg=!1}function g(e,a){return e.Tc-a.Tc}K=function(e){window.console&&window.console.log&&window.console.log(e)};
fa=function(e){window.console&&window.console.error&&window.console.error(e)};ga=function(e){return"undefined"===typeof e};P=function(e){return"number"===typeof e};R=function(e){return"string"===typeof e};ha=function(e){return 0<e&&0===(e-1&e)};ia=function(e){--e;for(var a=1;32>a;a<<=1)e|=e>>a;return e+1};la=function(e){return 0>e?-e:e};ma=function(e,a){return e<a?e:a};na=Math.PI;T=function(e){return 0<=e?e|0:(e|0)-1};qa=function(e){var a=e|0;return a===e?a:a+1};ra=function(e,a,b,c,t,u,h,l){var g,
y,n,F;e<b?(y=e,g=b):(y=b,g=e);t<h?(F=t,n=h):(F=h,n=t);if(g<F||y>n)return!1;a<c?(y=a,g=c):(y=c,g=a);u<l?(F=u,n=l):(F=l,n=u);if(g<F||y>n)return!1;g=t-e+h-b;y=u-a+l-c;e=b-e;a=c-a;t=h-t;u=l-u;l=la(a*t-u*e);return la(t*y-u*g)>l?!1:la(e*y-a*g)<=l};f.prototype.set=function(e,a,b,c){this.left=e;this.top=a;this.right=b;this.bottom=c};f.prototype.ng=function(e){this.left=e.left;this.top=e.top;this.right=e.right;this.bottom=e.bottom};f.prototype.width=function(){return this.right-this.left};f.prototype.height=
function(){return this.bottom-this.top};f.prototype.offset=function(e,a){this.left+=e;this.top+=a;this.right+=e;this.bottom+=a;return this};f.prototype.normalize=function(){var e=0;this.left>this.right&&(e=this.left,this.left=this.right,this.right=e);this.top>this.bottom&&(e=this.top,this.top=this.bottom,this.bottom=e)};f.prototype.Ms=function(e){return!(e.right<this.left||e.bottom<this.top||e.left>this.right||e.top>this.bottom)};f.prototype.Ns=function(e,a,b){return!(e.right+a<this.left||e.bottom+
b<this.top||e.left+a>this.right||e.top+b>this.bottom)};f.prototype.$a=function(e,a){return e>=this.left&&e<=this.right&&a>=this.top&&a<=this.bottom};f.prototype.di=function(e){return this.left===e.left&&this.top===e.top&&this.right===e.right&&this.bottom===e.bottom};U=f;m.prototype.Tf=function(e){this.Ra=e.left;this.Sa=e.top;this.Hb=e.right;this.Ib=e.top;this.wb=e.right;this.xb=e.bottom;this.tb=e.left;this.ub=e.bottom};m.prototype.bp=function(e,a){if(0===a)this.Tf(e);else{var b=Math.sin(a),c=Math.cos(a),
t=e.left*b,u=e.top*b,h=e.right*b,b=e.bottom*b,l=e.left*c,g=e.top*c,y=e.right*c,c=e.bottom*c;this.Ra=l-u;this.Sa=g+t;this.Hb=y-u;this.Ib=g+h;this.wb=y-b;this.xb=c+h;this.tb=l-b;this.ub=c+t}};m.prototype.offset=function(e,a){this.Ra+=e;this.Sa+=a;this.Hb+=e;this.Ib+=a;this.wb+=e;this.xb+=a;this.tb+=e;this.ub+=a;return this};var p=0,v=0;m.prototype.Rm=function(e){d(this.Ra,this.Hb,this.wb,this.tb);e.left=p;e.right=v;d(this.Sa,this.Ib,this.xb,this.ub);e.top=p;e.bottom=v};m.prototype.$a=function(e,a){var b=
this.Hb-this.Ra,c=this.Ib-this.Sa,t=this.wb-this.Ra,u=this.xb-this.Sa,h=e-this.Ra,l=a-this.Sa,g=b*b+c*c,y=b*t+c*u,c=b*h+c*l,n=t*t+u*u,F=t*h+u*l,s=1/(g*n-y*y),b=(n*c-y*F)*s,g=(g*F-y*c)*s;if(0<=b&&0<g&&1>b+g)return!0;b=this.tb-this.Ra;c=this.ub-this.Sa;g=b*b+c*c;y=b*t+c*u;c=b*h+c*l;s=1/(g*n-y*y);b=(n*c-y*F)*s;g=(g*F-y*c)*s;return 0<=b&&0<g&&1>b+g};m.prototype.Td=function(e,a){if(a)switch(e){case 0:return this.Ra;case 1:return this.Hb;case 2:return this.wb;case 3:return this.tb;case 4:return this.Ra;
default:return this.Ra}else switch(e){case 0:return this.Sa;case 1:return this.Ib;case 2:return this.xb;case 3:return this.ub;case 4:return this.Sa;default:return this.Sa}};m.prototype.lo=function(){return(this.Ra+this.Hb+this.wb+this.tb)/4};m.prototype.mo=function(){return(this.Sa+this.Ib+this.xb+this.ub)/4};m.prototype.Dn=function(e){var a=e.lo(),b=e.mo();if(this.$a(a,b))return!0;a=this.lo();b=this.mo();if(e.$a(a,b))return!0;var c,t,u,h,l,g,y,n;for(y=0;4>y;y++)for(n=0;4>n;n++)if(a=this.Td(y,!0),
b=this.Td(y,!1),c=this.Td(y+1,!0),t=this.Td(y+1,!1),u=e.Td(n,!0),h=e.Td(n,!1),l=e.Td(n+1,!0),g=e.Td(n+1,!1),ra(a,b,c,t,u,h,l,g))return!0;return!1};ta=m;va=function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b]);return e};wa=function(e,a){var b,c;a=T(a);if(!(0>a||a>=e.length)){b=a;for(c=e.length-1;b<c;b++)e[b]=e[b+1];e.length=c}};xa=function(e,a){e.length=a.length;var b,c;b=0;for(c=a.length;b<c;b++)e[b]=a[b]};ya=function(e,a){e.push.apply(e,a)};za=function(e,a){var b,c;b=0;for(c=e.length;b<c;++b)if(e[b]===
a)return b;return-1};Aa=function(e,a){var b=za(e,a);-1!==b&&wa(e,b)};V=function(e){return e/(180/na)};Ba=function(e){return 180/na*e};Ca=function(e){e%=360;0>e&&(e+=360);return e};Da=function(e){e%=2*na;0>e&&(e+=2*na);return e};Ea=function(e){return Ca(Ba(e))};Fa=function(e){return Da(V(e))};Ha=function(e,a,b,c){return Math.atan2(c-a,b-e)};Ia=function(e,a){if(e===a)return 0;var b=Math.sin(e),c=Math.cos(e),t=Math.sin(a),u=Math.cos(a),b=b*t+c*u;return 1<=b?0:-1>=b?na:Math.acos(b)};Ja=function(e,a,b){var c=
Math.sin(e),t=Math.cos(e),u=Math.sin(a),h=Math.cos(a);return Math.acos(c*u+t*h)>b?0<t*u-c*h?Da(e+b):Da(e-b):Da(a)};Ka=function(e,a){var b=Math.sin(e),c=Math.cos(e),t=Math.sin(a),u=Math.cos(a);return 0>=c*t-b*u};Pa=function(e,a,b,c,t,u){if(0===b)return u?e:a;var h=Math.sin(b);b=Math.cos(b);e-=c;a-=t;var l=e*h;e=e*b-a*h;a=a*b+l;return u?e+c:a+t};Qa=function(e,a,b,c){e=b-e;a=c-a;return Math.sqrt(e*e+a*a)};Ra=function(e,a){return!e!==!a};Sa=function(e){for(var a in e)if(e.hasOwnProperty(a))return!0;return!1};
Ta=function(e){for(var a in e)e.hasOwnProperty(a)&&delete e[a]};var B=+new Date;Ua=function(){if("undefined"!==typeof window.performance){var e=window.performance;if("undefined"!==typeof e.now)return e.now();if("undefined"!==typeof e.webkitNow)return e.webkitNow();if("undefined"!==typeof e.mozNow)return e.mozNow();if("undefined"!==typeof e.msNow)return e.msNow()}return Date.now()-B};var n=!1,e=n=!1,u=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
n=!n&&/safari/i.test(navigator.userAgent),e=/(iphone|ipod|ipad)/i.test(navigator.userAgent),u=window.c2ejecta);var t=!n&&!u&&!e&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(e){return this.wd()?!1:t?this.Oc.has(e):this.items&&this.items.hasOwnProperty(e)};q.prototype.add=function(e){if(t)this.Oc.has(e)||(this.Oc.add(e),this.Vd=!1);else{var a=e.toString(),b=this.items;b?b.hasOwnProperty(a)||(b[a]=e,this.Af++,this.Vd=!1):(this.items={},this.items[a]=
e,this.Af=1,this.Vd=!1)}};q.prototype.remove=function(e){if(!this.wd())if(t)this.Oc.has(e)&&(this.Oc["delete"](e),this.Vd=!1);else if(this.items){e=e.toString();var a=this.items;a.hasOwnProperty(e)&&(delete a[e],this.Af--,this.Vd=!1)}};q.prototype.clear=function(){this.wd()||(t?this.Oc.clear():(this.items=null,this.Af=0),this.dg.length=0,this.Vd=!0)};q.prototype.wd=function(){return 0===this.count()};q.prototype.count=function(){return t?this.Oc.size:this.Af};var y=null,F=0;q.prototype.fu=function(){if(!this.Vd){if(t)this.dg.length=
this.Oc.size,y=this.dg,F=0,this.Oc.forEach(k),y=null,F=0;else{var e=this.dg;e.length=this.Af;var a,b=0,c=this.items;if(c)for(a in c)c.hasOwnProperty(a)&&(e[b++]=c[a])}this.Vd=!0}};q.prototype.Sc=function(){this.fu();return this.dg};ca=q;new ca;Va=function(e,a){t?Wa(e,a.Oc):Xa(e,a.Sc())};Wa=function(e,a){var b,c,t,u;c=b=0;for(t=e.length;b<t;++b)u=e[b],a.has(u)||(e[c++]=u);e.length=c};Xa=function(e,a){var b,c,t,u;c=b=0;for(t=e.length;b<t;++b)u=e[b],-1===za(a,u)&&(e[c++]=u);e.length=c};b.prototype.add=
function(e){this.y=e-this.$j;this.yj=this.Z+this.y;this.$j=this.yj-this.Z-this.y;this.Z=this.yj};b.prototype.reset=function(){this.Z=this.yj=this.y=this.$j=0};Ya=b;Za=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.wh=function(e){this.Oo=e;this.Mc=e.length/2;this.Oa.length=e.length;this.Rh=this.Sh=-1;this.Um=0};a.prototype.vf=function(){return!this.Oo.length};a.prototype.la=function(){for(var e=this.Oa,a=e[0],b=a,c=e[1],t=c,u,h,l=1,g=this.Mc;l<g;++l)h=2*l,u=e[h],h=e[h+
1],u<a&&(a=u),u>b&&(b=u),h<c&&(c=h),h>t&&(t=h);this.Lh=a;this.Mh=b;this.Nh=c;this.Kh=t};a.prototype.Tf=function(e,a,b){this.Oa.length=8;this.Mc=4;var c=this.Oa;c[0]=e.left-a;c[1]=e.top-b;c[2]=e.right-a;c[3]=e.top-b;c[4]=e.right-a;c[5]=e.bottom-b;c[6]=e.left-a;c[7]=e.bottom-b;this.Sh=e.right-e.left;this.Rh=e.bottom-e.top;this.la()};a.prototype.Sf=function(e,a,b,c,t){this.Oa.length=8;this.Mc=4;var u=this.Oa;u[0]=e.Ra-a;u[1]=e.Sa-b;u[2]=e.Hb-a;u[3]=e.Ib-b;u[4]=e.wb-a;u[5]=e.xb-b;u[6]=e.tb-a;u[7]=e.ub-
b;this.Sh=c;this.Rh=t;this.la()};a.prototype.$o=function(e){this.Mc=e.Mc;xa(this.Oa,e.Oa);this.Lh=e.Lh;this.Nh-e.Nh;this.Mh=e.Mh;this.Kh=e.Kh};a.prototype.hf=function(e,a,b){if(this.Sh!==e||this.Rh!==a||this.Um!==b){this.Sh=e;this.Rh=a;this.Um=b;var c,t,u,h,l,g=0,y=1,n=this.Oo,F=this.Oa;0!==b&&(g=Math.sin(b),y=Math.cos(b));b=0;for(u=this.Mc;b<u;b++)c=2*b,t=c+1,h=n[c]*e,l=n[t]*a,F[c]=h*y-l*g,F[t]=l*y+h*g;this.la()}};a.prototype.$a=function(e,a){var b=this.Oa;if(e===b[0]&&a===b[1])return!0;var c,t,
u,h=this.Mc,l=this.Lh-110,g=this.Nh-101,y=this.Mh+131,n=this.Kh+120,F,s,d=0,p=0;for(c=0;c<h;c++)t=2*c,u=(c+1)%h*2,F=b[t],t=b[t+1],s=b[u],u=b[u+1],ra(l,g,e,a,F,t,s,u)&&d++,ra(y,n,e,a,F,t,s,u)&&p++;return 1===d%2||1===p%2};a.prototype.Eg=function(e,a,b){var c=e.Oa,t=this.Oa;if(this.$a(c[0]+a,c[1]+b)||e.$a(t[0]-a,t[1]-b))return!0;var u,h,l,g,y,n,F,s,d,p,x,w;u=0;for(g=this.Mc;u<g;u++)for(h=2*u,l=(u+1)%g*2,s=t[h],h=t[h+1],d=t[l],p=t[l+1],l=0,F=e.Mc;l<F;l++)if(y=2*l,n=(l+1)%F*2,x=c[y]+a,y=c[y+1]+b,w=c[n]+
a,n=c[n+1]+b,ra(s,h,d,p,x,y,w,n))return!0;return!1};$a=a;c.prototype.ae=function(e,a,b){var c;c=this.cells[e];return c?(c=c[a])?c:b?(c=r(this,e,a),this.cells[e][a]=c):null:b?(c=r(this,e,a),this.cells[e]={},this.cells[e][a]=c):null};c.prototype.$b=function(e){return T(e/this.ck)};c.prototype.ac=function(e){return T(e/this.bk)};c.prototype.update=function(e,a,b){var c,t,u,h,l;if(a)for(c=a.left,t=a.right;c<=t;++c)for(u=a.top,h=a.bottom;u<=h;++u)if(!b||!b.$a(c,u))if(l=this.ae(c,u,!1))l.remove(e),l.wd()&&
(l.Wa.clear(),1E3>oa.length&&oa.push(l),this.cells[c][u]=null);if(b)for(c=b.left,t=b.right;c<=t;++c)for(u=b.top,h=b.bottom;u<=h;++u)a&&a.$a(c,u)||this.ae(c,u,!0).Wk(e)};c.prototype.jj=function(e,a){var b,c,t,u,h,l;b=this.$b(e.left);t=this.ac(e.top);c=this.$b(e.right);for(h=this.ac(e.bottom);b<=c;++b)for(u=t;u<=h;++u)(l=this.ae(b,u,!1))&&l.dump(a)};ab=c;w.prototype.ae=function(e,a,b){var c;c=this.cells[e];return c?(c=c[a])?c:b?(c=h(this,e,a),this.cells[e][a]=c):null:b?(c=h(this,e,a),this.cells[e]=
{},this.cells[e][a]=c):null};w.prototype.$b=function(e){return T(e/this.ck)};w.prototype.ac=function(e){return T(e/this.bk)};w.prototype.update=function(e,a,b){var c,t,u,h,l;if(a)for(c=a.left,t=a.right;c<=t;++c)for(u=a.top,h=a.bottom;u<=h;++u)if(!b||!b.$a(c,u))if(l=this.ae(c,u,!1))l.remove(e),l.wd()&&(l.reset(),1E3>x.length&&x.push(l),this.cells[c][u]=null);if(b)for(c=b.left,t=b.right;c<=t;++c)for(u=b.top,h=b.bottom;u<=h;++u)a&&a.$a(c,u)||this.ae(c,u,!0).Wk(e)};w.prototype.jj=function(e,a,b,c,u){var t,
h;e=this.$b(e);a=this.ac(a);b=this.$b(b);for(t=this.ac(c);e<=b;++e)for(c=a;c<=t;++c)(h=this.ae(e,c,!1))&&h.dump(u)};w.prototype.Zs=function(e){var a,b,c,t,u;a=e.left;c=e.top;b=e.right;for(t=e.bottom;a<=b;++a)for(e=c;e<=t;++e)if(u=this.ae(a,e,!1))u.yf=!1};bb=w;var oa=[];l.prototype.wd=function(){return this.Wa.wd()};l.prototype.Wk=function(e){this.Wa.add(e)};l.prototype.remove=function(e){this.Wa.remove(e)};l.prototype.dump=function(e){ya(e,this.Wa.Sc())};aa=l;var x=[];s.prototype.wd=function(){if(!this.Wa.length)return!0;
if(this.Wa.length>this.ad.count())return!1;this.xk();return!0};s.prototype.Wk=function(e){this.ad.contains(e)?(this.ad.remove(e),this.ad.wd()&&(this.hg=!1)):this.Wa.length?(this.Wa[this.Wa.length-1].rc()>e.rc()&&(this.yf=!1),this.Wa.push(e)):(this.Wa.push(e),this.yf=!0)};s.prototype.remove=function(e){this.ad.add(e);this.hg=!0;30<=this.ad.count()&&this.xk()};s.prototype.xk=function(){this.hg&&(this.ad.count()===this.Wa.length?this.reset():(Va(this.Wa,this.ad),this.ad.clear(),this.hg=!1))};s.prototype.ur=
function(){this.yf||(this.Wa.sort(g),this.yf=!0)};s.prototype.reset=function(){this.Wa.length=0;this.yf=!0;this.ad.clear();this.hg=!1};s.prototype.dump=function(e){this.xk();this.ur();this.Wa.length&&e.push(this.Wa)};da=s;var A="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");cb=function(e){return 0>=e||11<=e?"source-over":A[e-1]};db=function(e,a,b){if(b)switch(e.jb=b.ONE,e.ib=b.ONE_MINUS_SRC_ALPHA,a){case 1:e.jb=b.ONE;
e.ib=b.ONE;break;case 3:e.jb=b.ONE;e.ib=b.ZERO;break;case 4:e.jb=b.ONE_MINUS_DST_ALPHA;e.ib=b.ONE;break;case 5:e.jb=b.DST_ALPHA;e.ib=b.ZERO;break;case 6:e.jb=b.ZERO;e.ib=b.SRC_ALPHA;break;case 7:e.jb=b.ONE_MINUS_DST_ALPHA;e.ib=b.ZERO;break;case 8:e.jb=b.ZERO;e.ib=b.ONE_MINUS_SRC_ALPHA;break;case 9:e.jb=b.DST_ALPHA;e.ib=b.ONE_MINUS_SRC_ALPHA;break;case 10:e.jb=b.ONE_MINUS_DST_ALPHA,e.ib=b.SRC_ALPHA}};eb=function(e){return Math.round(1E6*e)/1E6};fb=function(e,a){return"string"!==typeof e||"string"!==
typeof a||e.length!==a.length?!1:e===a?!0:e.toLowerCase()===a.toLowerCase()};gb=function(e){e=e.target;return!e||e===document||e===window||document&&document.body&&e===document.body||fb(e.tagName,"canvas")?!0:!1}})();var Zb="undefined"!==typeof Float32Array?Float32Array:Array;function $b(f){var m=new Zb(3);f&&(m[0]=f[0],m[1]=f[1],m[2]=f[2]);return m}
function ac(f){var m=new Zb(16);f&&(m[0]=f[0],m[1]=f[1],m[2]=f[2],m[3]=f[3],m[4]=f[4],m[5]=f[5],m[6]=f[6],m[7]=f[7],m[8]=f[8],m[9]=f[9],m[10]=f[10],m[11]=f[11],m[12]=f[12],m[13]=f[13],m[14]=f[14],m[15]=f[15]);return m}function bc(f,m){m[0]=f[0];m[1]=f[1];m[2]=f[2];m[3]=f[3];m[4]=f[4];m[5]=f[5];m[6]=f[6];m[7]=f[7];m[8]=f[8];m[9]=f[9];m[10]=f[10];m[11]=f[11];m[12]=f[12];m[13]=f[13];m[14]=f[14];m[15]=f[15]}
function cc(f,m){var d=m[0],q=m[1];m=m[2];f[0]*=d;f[1]*=d;f[2]*=d;f[3]*=d;f[4]*=q;f[5]*=q;f[6]*=q;f[7]*=q;f[8]*=m;f[9]*=m;f[10]*=m;f[11]*=m}
function dc(f,m,d,q){q||(q=ac());var k,b,a,c,w,r,l,h,s=f[0],g=f[1];f=f[2];b=d[0];a=d[1];k=d[2];d=m[1];r=m[2];s===m[0]&&g===d&&f===r?(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):(d=s-m[0],r=g-m[1],l=f-m[2],h=1/Math.sqrt(d*d+r*r+l*l),d*=h,r*=h,l*=h,m=a*l-k*r,k=k*d-b*l,b=b*r-a*d,(h=Math.sqrt(m*m+k*k+b*b))?(h=1/h,m*=h,k*=h,b*=h):b=k=m=0,a=r*b-l*k,c=l*m-d*b,w=d*k-r*m,(h=Math.sqrt(a*a+c*c+w*w))?(h=1/h,a*=h,c*=h,w*=h):w=c=a=0,
q[0]=m,q[1]=a,q[2]=d,q[3]=0,q[4]=k,q[5]=c,q[6]=r,q[7]=0,q[8]=b,q[9]=w,q[10]=l,q[11]=0,q[12]=-(m*s+k*g+b*f),q[13]=-(a*s+c*g+w*f),q[14]=-(d*s+r*g+l*f),q[15]=1)}
(function(){function f(b){this.Le=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Vm=$b([0,0,100]);this.Un=$b([0,0,0]);this.wp=$b([0,1,0]);this.vm=$b([1,1,1]);this.cn=!0;this.ol=ac();this.yc=ac();this.Mn=ac();this.kk=ac();this.k=b;this.zn()}function m(b,a,c){this.k=b;this.xh=a;this.name=c;this.xc=b.getAttribLocation(a,"aPos");this.ge=b.getAttribLocation(a,"aTex");this.Sn=b.getUniformLocation(a,"matP");this.Pi=b.getUniformLocation(a,"matMV");this.Ef=
b.getUniformLocation(a,"opacity");this.Tn=b.getUniformLocation(a,"samplerFront");this.Xg=b.getUniformLocation(a,"samplerBack");this.Te=b.getUniformLocation(a,"destStart");this.Se=b.getUniformLocation(a,"destEnd");this.ll=b.getUniformLocation(a,"seconds");this.kl=b.getUniformLocation(a,"pixelWidth");this.jl=b.getUniformLocation(a,"pixelHeight");this.Wg=b.getUniformLocation(a,"layerScale");this.Vg=b.getUniformLocation(a,"layerAngle");this.Zg=b.getUniformLocation(a,"viewOrigin");this.Yg=b.getUniformLocation(a,
"scrollPos");this.Hs=!!(this.kl||this.jl||this.ll||this.Xg||this.Te||this.Se||this.Wg||this.Vg||this.Zg||this.Yg);this.bo=this.co=-999;this.Ri=1;this.Yn=this.Xn=0;this.$n=this.Wn=this.Vn=1;this.fo=this.eo=this.jo=this.ho=this.Zn=0;this.fl=[];this.ao=ac();this.Ef&&b.uniform1f(this.Ef,1);this.Tn&&b.uniform1i(this.Tn,0);this.Xg&&b.uniform1i(this.Xg,1);this.Te&&b.uniform2f(this.Te,0,0);this.Se&&b.uniform2f(this.Se,1,1);this.Wg&&b.uniform1f(this.Wg,1);this.Vg&&b.uniform1f(this.Vg,0);this.Zg&&b.uniform2f(this.Zg,
0,0);this.Yg&&b.uniform2f(this.Yg,0,0);this.He=!1}function d(b,a){this.type=b;this.n=a;this.k=a.k;this.tc=this.jc=this.yo=0;this.X=this.Qc=null;this.cp=[]}f.prototype.zn=function(){var b=this.k,a;this.Nn=1;this.Pe=this.Oe=null;this.Zh=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.DEPTH_TEST);this.On=b.ONE;this.Ln=b.ONE_MINUS_SRC_ALPHA;this.Fl=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.Fl);this.Hh=
Array(4);this.Bh=Array(4);for(a=0;4>a;a++)this.Hh[a]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Hh[a]),this.Bh[a]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Bh[a]);this.nd=0;this.Ks=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.Ks);this.qm=new Float32Array(16E3);this.am=new Float32Array(16E3);this.Ko=new Float32Array(32E3);for(var c=new Uint16Array(12E3),d=a=0;12E3>a;)c[a++]=d,c[a++]=d+1,c[a++]=d+2,c[a++]=d,c[a++]=d+2,c[a++]=d+3,d+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,c,
b.STATIC_DRAW);this.Mf=this.gd=0;this.Qa=[];a=this.jk({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");
this.Qa.push(a);a=this.jk({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.Qa.push(a);for(var r in ec)ec.hasOwnProperty(r)&&this.Qa.push(this.jk(ec[r],
"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}",r));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.md=[];this.Vc=0;this.Rb=this.zb=!1;this.Zm=this.Lg=-1;this.rg=null;this.Yr=b.createFramebuffer();this.Ro=null;this.oe=$b([0,0,0]);b=b.getParameter(b.ALIASED_POINT_SIZE_RANGE);this.ct=b[0];this.pl=
b[1];2048<this.pl&&(this.pl=2048);this.dd(0)};m.prototype.lm=function(b){var a=this.ao;if(a[0]!==b[0]||a[1]!==b[1]||a[2]!==b[2]||a[3]!==b[3]||a[4]!==b[4]||a[5]!==b[5]||a[6]!==b[6]||a[7]!==b[7]||a[8]!==b[8]||a[9]!==b[9]||a[10]!==b[10]||a[11]!==b[11]||a[12]!==b[12]||a[13]!==b[13]||a[14]!==b[14]||a[15]!==b[15])bc(b,this.ao),this.k.uniformMatrix4fv(this.Pi,!1,b)};f.prototype.jk=function(b,a,c){var d=this.k,r=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(r,b.src);d.compileShader(r);if(!d.getShaderParameter(r,
d.COMPILE_STATUS))return d.deleteShader(r),null;var l=d.createShader(d.VERTEX_SHADER);d.shaderSource(l,a);d.compileShader(l);if(!d.getShaderParameter(l,d.COMPILE_STATUS))return d.deleteShader(r),d.deleteShader(l),null;a=d.createProgram();d.attachShader(a,r);d.attachShader(a,l);d.linkProgram(a);if(!d.getProgramParameter(a,d.LINK_STATUS))return d.deleteShader(r),d.deleteShader(l),d.deleteProgram(a),null;d.useProgram(a);d.deleteShader(r);d.deleteShader(l);c=new m(d,a,c);c.tk=b.tk||0;c.uk=b.uk||0;c.Ym=
!!b.Ym;c.Om=!!b.Om;c.K=b.K||[];b=0;for(r=c.K.length;b<r;b++)c.K[b][1]=d.getUniformLocation(a,c.K[b][0]),c.fl.push(0),d.uniform1f(c.K[b][1],0);return c};f.prototype.Jk=function(b){var a,c;a=0;for(c=this.Qa.length;a<c;a++)if(this.Qa[a].name===b)return a;return-1};f.prototype.No=function(b,a,c){var d=this.yc,r=this.ol,l=[0,0,0,0,0,0,0,0];l[0]=d[0]*b+d[4]*a+d[12];l[1]=d[1]*b+d[5]*a+d[13];l[2]=d[2]*b+d[6]*a+d[14];l[3]=d[3]*b+d[7]*a+d[15];l[4]=r[0]*l[0]+r[4]*l[1]+r[8]*l[2]+r[12]*l[3];l[5]=r[1]*l[0]+r[5]*
l[1]+r[9]*l[2]+r[13]*l[3];l[6]=r[2]*l[0]+r[6]*l[1]+r[10]*l[2]+r[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],c[0]=(.5*l[4]+.5)*this.width,c[1]=(.5*l[5]+.5)*this.height)};f.prototype.Rf=function(b,a,c){if(this.width!==b||this.height!==a||c){this.Zd();this.width=b;this.height=a;this.k.viewport(0,0,b,a);a=b/a;var d=this.ol,r;r=1*Math.tan(45*Math.PI/360);a*=r;b=-a;c=-r;d||(d=ac());var l=a-b,h=r-c;d[0]=2/l;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/h;d[6]=0;d[7]=0;d[8]=(a+b)/l;d[9]=
(r+c)/h;d[10]=-1001/999;d[11]=-1;d[12]=0;d[13]=0;d[14]=-2E3/999;d[15]=0;dc(this.Vm,this.Un,this.wp,this.yc);b=[0,0];a=[0,0];this.No(0,0,b);this.No(1,1,a);this.vm[0]=1/(a[0]-b[0]);this.vm[1]=-1/(a[1]-b[1]);b=0;for(a=this.Qa.length;b<a;b++)c=this.Qa[b],c.He=!1,c.Sn&&(this.k.useProgram(c.xh),this.k.uniformMatrix4fv(c.Sn,!1,this.ol));this.k.useProgram(this.Qa[this.Lg].xh);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE1);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE0);
this.Pe=this.Oe=null}};f.prototype.je=function(){dc(this.Vm,this.Un,this.wp,this.yc);cc(this.yc,this.vm)};f.prototype.translate=function(b,a){if(0!==b||0!==a){this.oe[0]=b;this.oe[1]=a;this.oe[2]=0;var c=this.yc,d=this.oe,r=d[0],l=d[1],d=d[2];c[12]=c[0]*r+c[4]*l+c[8]*d+c[12];c[13]=c[1]*r+c[5]*l+c[9]*d+c[13];c[14]=c[2]*r+c[6]*l+c[10]*d+c[14];c[15]=c[3]*r+c[7]*l+c[11]*d+c[15]}};f.prototype.scale=function(b,a){if(1!==b||1!==a)this.oe[0]=b,this.oe[1]=a,this.oe[2]=1,cc(this.yc,this.oe)};f.prototype.So=
function(b){if(0!==b){var a=this.yc,c,d=Math.sin(b);b=Math.cos(b);var r=a[0],l=a[1],h=a[2],s=a[3],g=a[4],p=a[5],v=a[6],f=a[7];c?a!==c&&(c[8]=a[8],c[9]=a[9],c[10]=a[10],c[11]=a[11],c[12]=a[12],c[13]=a[13],c[14]=a[14],c[15]=a[15]):c=a;c[0]=r*b+g*d;c[1]=l*b+p*d;c[2]=h*b+v*d;c[3]=s*b+f*d;c[4]=r*-d+g*b;c[5]=l*-d+p*b;c[6]=h*-d+v*b;c[7]=s*-d+f*b}};f.prototype.qe=function(){for(var b=!1,a=0;16>a;a++)if(this.Mn[a]!==this.yc[a]){b=!0;break}b&&(b=this.zc(),b.type=5,b.X?bc(this.yc,b.X):b.X=ac(this.yc),bc(this.yc,
this.Mn),this.Rb=this.zb=!1)};d.prototype.kr=function(){this.k.bindTexture(this.k.TEXTURE_2D,this.Qc)};d.prototype.lr=function(){var b=this.k;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.Qc);b.activeTexture(b.TEXTURE0)};d.prototype.hr=function(){var b=this.yo,a=this.n;a.Zh=b;a=a.rg;a.Ef&&a.Ri!==b&&(a.Ri=b,this.k.uniform1f(a.Ef,b))};d.prototype.dr=function(){this.k.drawElements(this.k.TRIANGLES,this.tc,this.k.UNSIGNED_SHORT,2*this.jc)};d.prototype.fr=function(){this.k.blendFunc(this.jc,
this.tc)};d.prototype.mr=function(){var b,a,c,d=this.n.Qa,r=this.n.Zm;b=0;for(a=d.length;b<a;b++)c=d[b],b===r&&c.Pi?(c.lm(this.X),c.He=!0):c.He=!1;bc(this.X,this.n.kk)};d.prototype.er=function(){var b=this.k,a=this.n;this.Qc?(a.Pe===this.Qc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),a.Pe=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,a.Yr),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.Qc,0)):(b.framebufferTexture2D(b.FRAMEBUFFER,
b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};d.prototype.br=function(){var b=this.k;0===this.jc?(b.clearColor(this.X[0],this.X[1],this.X[2],this.X[3]),b.clear(b.COLOR_BUFFER_BIT)):(b.enable(b.SCISSOR_TEST),b.scissor(this.X[0],this.X[1],this.X[2],this.X[3]),b.clearColor(0,0,0,0),b.clear(this.k.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST))};d.prototype.cr=function(){var b=this.k,a=this.n,c=a.Qa[1];b.useProgram(c.xh);!c.He&&c.Pi&&(c.lm(a.kk),c.He=!0);b.enableVertexAttribArray(c.xc);
b.bindBuffer(b.ARRAY_BUFFER,a.Fl);b.vertexAttribPointer(c.xc,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.jc/4,this.tc);c=a.rg;b.useProgram(c.xh);0<=c.xc&&(b.enableVertexAttribArray(c.xc),b.bindBuffer(b.ARRAY_BUFFER,a.Hh[a.nd]),b.vertexAttribPointer(c.xc,2,b.FLOAT,!1,0,0));0<=c.ge&&(b.enableVertexAttribArray(c.ge),b.bindBuffer(b.ARRAY_BUFFER,a.Bh[a.nd]),b.vertexAttribPointer(c.ge,2,b.FLOAT,!1,0,0))};d.prototype.ir=function(){var b=this.k,a=this.n,c=a.Qa[this.jc];a.Zm=this.jc;a.rg=c;b.useProgram(c.xh);
!c.He&&c.Pi&&(c.lm(a.kk),c.He=!0);c.Ef&&c.Ri!==a.Zh&&(c.Ri=a.Zh,b.uniform1f(c.Ef,a.Zh));0<=c.xc&&(b.enableVertexAttribArray(c.xc),b.bindBuffer(b.ARRAY_BUFFER,a.Hh[a.nd]),b.vertexAttribPointer(c.xc,2,b.FLOAT,!1,0,0));0<=c.ge&&(b.enableVertexAttribArray(c.ge),b.bindBuffer(b.ARRAY_BUFFER,a.Bh[a.nd]),b.vertexAttribPointer(c.ge,2,b.FLOAT,!1,0,0))};d.prototype.jr=function(){var b,a,c=this.n.rg,d=this.k;b=this.X;c.Xg&&this.n.Pe!==this.Qc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.Qc),
this.n.Pe=this.Qc,d.activeTexture(d.TEXTURE0));var r=b[0];c.kl&&r!==c.co&&(c.co=r,d.uniform1f(c.kl,r));r=b[1];c.jl&&r!==c.bo&&(c.bo=r,d.uniform1f(c.jl,r));r=b[2];a=b[3];!c.Te||r===c.Xn&&a===c.Yn||(c.Xn=r,c.Yn=a,d.uniform2f(c.Te,r,a));r=b[4];a=b[5];!c.Se||r===c.Vn&&a===c.Wn||(c.Vn=r,c.Wn=r,d.uniform2f(c.Se,r,a));r=b[6];c.Wg&&r!==c.$n&&(c.$n=r,d.uniform1f(c.Wg,r));r=b[7];c.Vg&&r!==c.Zn&&(c.Zn=r,d.uniform1f(c.Vg,r));r=b[8];a=b[9];!c.Zg||r===c.ho&&a===c.jo||(c.ho=r,c.jo=a,d.uniform2f(c.Zg,r,a));r=b[10];
a=b[11];!c.Yg||r===c.eo&&a===c.fo||(c.eo=r,c.fo=a,d.uniform2f(c.Yg,r,a));c.ll&&d.uniform1f(c.ll,Ua()/1E3);if(c.K.length)for(b=0,a=c.K.length;b<a;b++)r=this.cp[b],r!==c.fl[b]&&(c.fl[b]=r,d.uniform1f(c.K[b][1],r))};f.prototype.zc=function(){this.Vc===this.md.length&&this.md.push(new d(0,this));return this.md[this.Vc++]};f.prototype.Zd=function(){if(0!==this.Vc&&!this.k.isContextLost()){var b=this.k;0<this.Mf&&(b.bindBuffer(b.ARRAY_BUFFER,this.Fl),b.bufferData(b.ARRAY_BUFFER,this.Ko.subarray(0,this.Mf),
b.STREAM_DRAW),a&&0<=a.xc&&"<point>"===a.name&&b.vertexAttribPointer(a.xc,4,b.FLOAT,!1,0,0));if(0<this.gd){var a=this.rg;b.bindBuffer(b.ARRAY_BUFFER,this.Hh[this.nd]);b.bufferData(b.ARRAY_BUFFER,this.qm.subarray(0,this.gd),b.STREAM_DRAW);a&&0<=a.xc&&"<point>"!==a.name&&b.vertexAttribPointer(a.xc,2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.Bh[this.nd]);b.bufferData(b.ARRAY_BUFFER,this.am.subarray(0,this.gd),b.STREAM_DRAW);a&&0<=a.ge&&"<point>"!==a.name&&b.vertexAttribPointer(a.ge,2,b.FLOAT,
!1,0,0)}for(var c,b=0,a=this.Vc;b<a;b++)switch(c=this.md[b],c.type){case 1:c.dr();break;case 2:c.kr();break;case 3:c.hr();break;case 4:c.fr();break;case 5:c.mr();break;case 6:c.er();break;case 7:c.br();break;case 8:c.cr();break;case 9:c.ir();break;case 10:c.jr();break;case 11:c.lr()}this.Mf=this.gd=this.Vc=0;this.Rb=this.zb=!1;this.nd++;4<=this.nd&&(this.nd=0)}};f.prototype.Ye=function(b){if(b!==this.Nn){var a=this.zc();a.type=3;this.Nn=a.yo=b;this.Rb=this.zb=!1}};f.prototype.Xb=function(b){if(b!==
this.Oe){var a=this.zc();a.type=2;this.Oe=a.Qc=b;this.Rb=this.zb=!1}};f.prototype.ke=function(b,a){if(b!==this.On||a!==this.Ln){var c=this.zc();c.type=4;c.jc=b;c.tc=a;this.On=b;this.Ln=a;this.Rb=this.zb=!1}};f.prototype.Wo=function(){this.ke(this.k.ONE,this.k.ONE_MINUS_SRC_ALPHA)};f.prototype.rh=function(b,a,c,d,r,l,h,s){15992<=this.gd&&this.Zd();var g=this.gd,p=this.qm,v=this.am;if(this.zb)this.md[this.Vc-1].tc+=6;else{var f=this.zc();f.type=1;f.jc=g/4*3;f.tc=6;this.zb=!0;this.Rb=!1}p[g]=b;v[g++]=
0;p[g]=a;v[g++]=0;p[g]=c;v[g++]=1;p[g]=d;v[g++]=0;p[g]=r;v[g++]=1;p[g]=l;v[g++]=1;p[g]=h;v[g++]=0;p[g]=s;v[g++]=1;this.gd=g};f.prototype.Fd=function(b,a,c,d,f,l,h,s,g){15992<=this.gd&&this.Zd();var p=this.gd,v=this.qm,m=this.am;if(this.zb)this.md[this.Vc-1].tc+=6;else{var n=this.zc();n.type=1;n.jc=p/4*3;n.tc=6;this.zb=!0;this.Rb=!1}var n=g.left,e=g.top,u=g.right;g=g.bottom;v[p]=b;m[p++]=n;v[p]=a;m[p++]=e;v[p]=c;m[p++]=u;v[p]=d;m[p++]=e;v[p]=f;m[p++]=u;v[p]=l;m[p++]=g;v[p]=h;m[p++]=n;v[p]=s;m[p++]=
g;this.gd=p};f.prototype.xt=function(b,a,c,d){7996<=this.Mf&&this.Zd();var f=this.Mf,l=this.Ko;if(this.Rb)this.md[this.Vc-1].tc++;else{var h=this.zc();h.type=8;h.jc=f;h.tc=1;this.Rb=!0;this.zb=!1}l[f++]=b;l[f++]=a;l[f++]=c;l[f++]=d;this.Mf=f};f.prototype.dd=function(b){if(this.Lg!==b){if(!this.Qa[b]){if(0===this.Lg)return;b=0}var a=this.zc();a.type=9;this.Lg=a.jc=b;this.Rb=this.zb=!1}};f.prototype.ph=function(b){b=this.Qa[b];return!(!b.Te&&!b.Se)};f.prototype.Hl=function(b){b=this.Qa[b];return!!(b.Te||
b.Se||b.Ym)};f.prototype.Et=function(b){b=this.Qa[b];return 0!==b.tk||0!==b.uk};f.prototype.ps=function(b){return this.Qa[b].tk};f.prototype.qs=function(b){return this.Qa[b].uk};f.prototype.rs=function(b,a){return this.Qa[b].K[a][2]};f.prototype.ij=function(b){return this.Qa[b].Om};f.prototype.Qf=function(b,a,c,d,f,l,h,s,g,p,v,m,n,e){var u=this.Qa[this.Lg],t,y;if(u.Hs||e.length){t=this.zc();t.type=10;t.X?bc(this.yc,t.X):t.X=ac();y=t.X;y[0]=a;y[1]=c;y[2]=d;y[3]=f;y[4]=l;y[5]=h;y[6]=s;y[7]=g;y[8]=p;
y[9]=v;y[10]=m;y[11]=n;t.Qc=u.Xg?b:null;if(e.length)for(c=t.cp,c.length=e.length,b=0,a=e.length;b<a;b++)c[b]=e[b];this.Rb=this.zb=!1}};f.prototype.clear=function(b,a,c,d){var f=this.zc();f.type=7;f.jc=0;f.X||(f.X=ac());f.X[0]=b;f.X[1]=a;f.X[2]=c;f.X[3]=d;this.Rb=this.zb=!1};f.prototype.clearRect=function(b,a,c,d){if(!(0>c||0>d)){var f=this.zc();f.type=7;f.jc=1;f.X||(f.X=ac());f.X[0]=b;f.X[1]=a;f.X[2]=c;f.X[3]=d;this.Rb=this.zb=!1}};f.prototype.Dt=function(){this.Zd();this.k.flush()};var q=[],k={};
f.prototype.Tq=function(){q.length=0;k={}};f.prototype.Cf=function(b,a,c,d){a=!!a;c=!!c;var f=b.src+","+a+","+c+(a?",undefined":""),l=null;if("undefined"!==typeof b.src&&k.hasOwnProperty(f))return l=k[f],l.Qh++,l;this.Zd();var h=this.k,s=ha(b.width)&&ha(b.height),l=h.createTexture();h.bindTexture(h.TEXTURE_2D,l);h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var g=h.RGBA,p=h.RGBA,v=h.UNSIGNED_BYTE;if(d&&!this.Le)switch(d){case 1:p=g=h.RGB;break;case 2:v=h.UNSIGNED_SHORT_4_4_4_4;break;case 3:v=
h.UNSIGNED_SHORT_5_5_5_1;break;case 4:p=g=h.RGB,v=h.UNSIGNED_SHORT_5_6_5}if(!s&&a){d=document.createElement("canvas");d.width=ia(b.width);d.height=ia(b.height);var m=d.getContext("2d");m.webkitImageSmoothingEnabled=c;m.mozImageSmoothingEnabled=c;m.msImageSmoothingEnabled=c;m.imageSmoothingEnabled=c;m.drawImage(b,0,0,b.width,b.height,0,0,d.width,d.height);h.texImage2D(h.TEXTURE_2D,0,g,p,v,d)}else h.texImage2D(h.TEXTURE_2D,0,g,p,v,b);a?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_WRAP_T,h.REPEAT)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE));c?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR),s&&this.cn?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR_MIPMAP_LINEAR),h.generateMipmap(h.TEXTURE_2D)):h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.NEAREST),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,
h.NEAREST));h.bindTexture(h.TEXTURE_2D,null);this.Oe=null;l.lg=b.width;l.kg=b.height;l.Qh=1;l.Tm=f;q.push(l);return k[f]=l};f.prototype.Xd=function(b,a,c){var d;this.Zd();var f=this.k;this.Le&&(d=!1);var l=f.createTexture();f.bindTexture(f.TEXTURE_2D,l);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,b,a,0,f.RGBA,d?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,
f.TEXTURE_MAG_FILTER,c?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,c?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Oe=null;l.lg=b;l.kg=a;q.push(l);return l};f.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.Qh&&1<b.Qh?b.Qh--:(this.Zd(),b===this.Oe&&(this.k.bindTexture(this.k.TEXTURE_2D,null),this.Oe=null),b===this.Pe&&(this.k.activeTexture(this.k.TEXTURE1),this.k.bindTexture(this.k.TEXTURE_2D,null),this.k.activeTexture(this.k.TEXTURE0),this.Pe=
null),Aa(q,b),"undefined"!==typeof b.Tm&&delete k[b.Tm],this.k.deleteTexture(b)))};f.prototype.cd=function(b){if(b!==this.Ro){var a=this.zc();a.type=6;this.Ro=a.Qc=b;this.Rb=this.zb=!1}};hb=f})();
(function(){function f(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function m(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function d(e){if(e&&(e.getContext||e.dc)&&!e.c2runtime){e.c2runtime=this;var a=this;this.uc=(this.Gg=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.bb=!!e.dc;this.sf="undefined"!==typeof window.AppMobi||this.bb;this.gc=!!window.c2cocoonjs;this.Hc=!!window.c2ejecta;this.gc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Hc&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",
function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.da=this.bb||this.gc||this.Hc;this.Le=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Gn=/tizen/i.test(navigator.userAgent);this.yi=/android/i.test(navigator.userAgent)&&!this.Gn&&!this.Le;this.dl=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Le;this.Kn=/ipad/i.test(navigator.userAgent);this.Ei=this.dl||this.Kn||this.Hc;this.Vs=this.dl&&/os\s6/i.test(navigator.userAgent);this.Fg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Le;this.Yk=/amazonwebappplatform/i.test(navigator.userAgent);this.Ps=/firefox/i.test(navigator.userAgent);this.Fn=/safari/i.test(navigator.userAgent)&&!this.Fg&&!this.Le;this.Ss=/windows/i.test(navigator.userAgent);this.ee="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.In=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Us=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.uf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.bl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Hn=this.In||this.Us||this.bl;this.Os=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.Ai=this.yi&&!this.Fg&&!this.Gg&&!this.Ps&&!this.Yk&&!this.da;this.devicePixelRatio=1;this.yd=this.uc||this.Gg||this.sf||this.gc||this.yi||this.Ei||this.uf||this.bl||this.Os||this.Gn||this.Hc;this.yd||(this.yd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.ee||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.ee=!0);this.canvas=e;this.Wm=document.getElementById("c2canvasdiv");this.aa=this.n=this.k=null;this.Ak="";this.ii=!1;this.wo=this.xo=0;this.canvas.oncontextmenu=function(e){e.preventDefault&&e.preventDefault();return!1};this.canvas.onselectstart=function(e){e.preventDefault&&e.preventDefault();return!1};this.bb&&(window.c2runtime=this);this.ee&&(window.ondragover=function(e){e.preventDefault();return!1},window.ondrop=function(e){e.preventDefault();return!1},require("nw.gui").App.clearCache());
this.Ai&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=e.width;this.height=e.height;this.M=this.width;this.L=this.height;this.Xh=this.width;this.Wh=this.height;this.Ng=window.innerWidth;this.Mg=window.innerHeight;this.$r=!1;this.ea=!0;this.Ig=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.m=[];this.Fa=[];this.il={};this.Tb=[];this.sk={};this.rd=[];this.fg=[];this.Fj=[];this.Tj=[];this.Kq=[];this.ze={};this.Zk=
this.be=!1;this.xd=0;this.al=!1;this.Fc=[];this.zd=this.pb=this.Sg=this.nj="";this.zh=this.fp=!1;this.hk=this.$g=this.Yd=this.Ce=0;this.Zf=1;this.hc=new Ya;this.hd=new Ya;this.Ui=this.ki=this.fi=this.Yf=this.Re=this.zk=this.Ii=0;this.ve=null;this.ok=[];this.rk=[];this.ei=-1;this.ml=[[]];this.im=this.Qi=0;this.Jl(null);this.qo=this.dh=0;this.hl=!0;this.tg=0;this.Ah=[];this.fm=this.Kl=-1;this.zf=!0;this.Oi=0;this.Hg=!1;this.Xt=0;this.gf=null;this.ga=this.qf=!1;this.vo=new ca;this.ul=new ca;this.wl=
new ca;this.Ht=[];this.Pc=new $a([]);this.$l=new $a([]);this.Sd=[];this.ri={};this.jf={};this.ff={};this.eg={};this.Qm={};this.Rn=this.Ki=this.Sb=this.ic=this.Qn=this.Ji=this.Y=null;this.bg=this.cl=!1;this.Bk=[null,null];this.Fe=0;this.wk="";this.Dd={};this.sj=this.Df=null;this.Ti=[];this.It()}}function q(e){e.target.result.createObjectStore("saves",{keyPath:"slot"})}function k(e,a,b,c){var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=q;h.onerror=c;h.onsuccess=function(h){h=h.target.result;
h.onerror=c;h.transaction(["saves"],"readwrite").objectStore("saves").put({slot:e,data:a}).onsuccess=b}}function b(e,a,b){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=q;c.onerror=b;c.onsuccess=function(c){c=c.target.result;c.onerror=b;var h=c.transaction(["saves"]).objectStore("saves").get(e);h.onsuccess=function(){h.result?a(h.result.data):a(null)}}}function a(){K("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function c(e){var a,b={};for(a in e)!e.hasOwnProperty(a)||e[a]instanceof ca||e[a]&&"undefined"!==typeof e[a].pv||(b[a]=e[a]);return b}d.prototype.It=function(){var e=this,a;a=this.uf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var b="data.js";if(this.In||this.uf||this.bl)b="data.json";a.open("GET",b,!0);var c=!1;if(!this.da&&"response"in a&&"responseType"in a)try{a.responseType="json",c="json"===a.responseType}catch(h){c=!1}if(!c&&
"responseType"in a)try{a.responseType="text"}catch(l){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(g){}this.uf?a.onreadystatechange=function(){4===a.readyState&&e.Mi(JSON.parse(a.responseText))}:(a.onload=function(){if(c)e.Mi(a.response);else if(e.Hc){var b=a.responseText,b=b.substr(b.indexOf("{"));e.Mi(JSON.parse(b))}else e.Mi(JSON.parse(a.responseText))},a.onerror=function(e){fa("Error requesting "+b+":");fa(e)});a.send()};d.prototype.Ls=function(){var e=
this,a,b,c,h,l,g,d,n,s;this.devicePixelRatio=(this.Me=(!this.da||this.Hc)&&this.hu&&!this.Ai)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.fb();b=!(!this.$r&&(!this.Vj||this.ee||this.Hn||this.uf||this.Gg||this.uc||this.Yk));0<this.lb&&this.setSize(f(),m(),!0);try{this.sr&&(this.gc||this.Hc||!this.da)&&(a={alpha:b,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.k=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",
a))}catch(p){}if(this.k){this.da||(this.cb=document.createElement("canvas"),jQuery(this.cb).appendTo(this.canvas.parentNode),this.cb.oncontextmenu=function(){return!1},this.cb.onselectstart=function(){return!1},this.cb.width=this.Xh,this.cb.height=this.Wh,jQuery(this.cb).css({width:this.Xh+"px",height:this.Wh+"px"}),this.Mo(),this.El=this.cb.getContext("2d"));this.n=new hb(this.k,this.yd);this.n.Rf(this.canvas.width,this.canvas.height);this.n.cn=0!==this.nr;this.aa=null;this.canvas.addEventListener("webglcontextlost",
function(a){a.preventDefault();e.gt();K("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){e.n.zn();e.n.Rf(e.n.width,e.n.height,!0);e.ic=null;e.Sb=null;e.Bk[0]=null;e.Bk[1]=null;e.ht();e.ea=!0;K("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(b=this.m.length;a<b;a++)for(l=this.m[a],c=0,h=l.G.length;c<h;c++)d=l.G[c],d.eb=this.n.Jk(d.id),this.bg=this.bg||this.n.ph(d.eb);a=0;for(b=this.Tb.length;a<
b;a++){n=this.Tb[a];c=0;for(h=n.G.length;c<h;c++)d=n.G[c],d.eb=this.n.Jk(d.id);c=0;for(h=n.J.length;c<h;c++)for(s=n.J[c],l=0,g=s.G.length;l<g;l++)d=s.G[l],d.eb=this.n.Jk(d.id),this.bg=this.bg||this.n.ph(d.eb)}}else{if(0<this.lb&&this.bb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.aa=AppMobi.canvas.getContext("2d");try{this.aa.samplingMode=this.S?"smooth":"sharp",this.aa.globalScale=1,this.aa.HTML5CompatibilityMode=!0,this.aa.imageSmoothingEnabled=
this.S}catch(v){}0!==this.width&&0!==this.height&&(this.aa.width=this.width,this.aa.height=this.height)}this.aa||(a=this.gc?{antialias:!!this.S,alpha:b}:{alpha:b},this.aa=this.canvas.getContext("2d",a),this.aa.webkitImageSmoothingEnabled=this.S,this.aa.mozImageSmoothingEnabled=this.S,this.aa.msImageSmoothingEnabled=this.S,this.aa.imageSmoothingEnabled=this.S);this.El=this.cb=null}this.np=function(a){e.Za(!1,a)};window==window.top||this.da||this.Hn||this.uf||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.gc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(K("Reloading for continuous preview"),this.Sg="__c2_continuouspreview",this.zh=!0),this.ut&&!this.yd&&(jQuery(window).focus(function(){e.setSuspended(!1)}),jQuery(window).blur(function(){e.setSuspended(!0)})));this.da||(a=function(e){if(gb(e)&&
document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.lb&&this.Me&&1<this.devicePixelRatio&&this.setSize(this.Na,this.Ma,!0);this.sp();this.Es();
this.go();this.ta={}};d.prototype.setSize=function(e,a,b){var c=0,h=0,l=0,g=0,g=0,d=this.Vs&&this.Fn&&!navigator.standalone&&!this.da&&!this.uc;d&&(a+=60);if(this.Ng!==e||this.Mg!==a||b){this.Ng=e;this.Mg=a;var n=this.lb,s=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Hg)&&!this.uc;if(s||0!==this.lb||b)s&&0<this.Fe&&(n=this.Fe),b=this.devicePixelRatio,4<=n?(l=this.Na/this.Ma,e/a>l?(l*=a,5===n?(g=l*b/this.Na,1<g?g=Math.floor(g):1>g&&
(g=1/Math.ceil(1/g)),l=this.Na*g/b,g=this.Ma*g/b,c=(e-l)/2,h=(a-g)/2,e=l,a=g):(c=(e-l)/2,e=l)):(g=e/l,5===n?(g=g*b/this.Ma,1<g?g=Math.floor(g):1>g&&(g=1/Math.ceil(1/g)),l=this.Na*g/b,g=this.Ma*g/b,c=(e-l)/2,h=(a-g)/2,e=l):h=(a-g)/2,a=g),s&&!this.ee&&(h=c=0)):this.ee&&this.Hg&&0===this.kn&&(c=Math.floor((e-this.Na)/2),h=Math.floor((a-this.Ma)/2),e=this.Na,a=this.Ma),2>n&&(this.jg=b),this.Me&&this.Kn&&1<b&&(1024<=e&&(e=1023),1024<=a&&(a=1023)),this.Xh=Math.round(e),this.Wh=Math.round(a),this.width=
Math.round(e*b),this.height=Math.round(a*b),this.ea=!0,this.Dp?(this.M=this.width,this.L=this.height,this.oc=!0):this.width<this.Na&&this.height<this.Ma||1===n?(this.M=this.width,this.L=this.height,this.oc=!0):(this.M=this.Na,this.L=this.Ma,this.oc=!1,2===n?(l=this.Na/this.Ma,n=this.Ng/this.Mg,n<l?this.M=this.L*n:n>l&&(this.L=this.M/n)):3===n&&(l=this.Na/this.Ma,n=this.Ng/this.Mg,n>l?this.M=this.L*n:n<l&&(this.L=this.M/n))),this.Wm&&!this.da&&(jQuery(this.Wm).css({width:Math.round(e)+"px",height:Math.round(a)+
"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(h)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(e)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(e*b),this.canvas.height=Math.round(a*b),this.Hc?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(h)+"px",this.canvas.style.width=Math.round(e)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Me&&!this.da&&jQuery(this.canvas).css({width:Math.round(e)+
"px",height:Math.round(a)+"px"})),this.cb&&(this.cb.width=Math.round(e),this.cb.height=Math.round(a),jQuery(this.cb).css({width:Math.round(e)+"px",height:Math.round(a)+"px"})),this.n&&this.n.Rf(Math.round(e*b),Math.round(a*b)),this.bb&&this.aa&&(this.aa.width=Math.round(e),this.aa.height=Math.round(a)),this.aa&&(this.aa.webkitImageSmoothingEnabled=this.S,this.aa.mozImageSmoothingEnabled=this.S,this.aa.msImageSmoothingEnabled=this.S,this.aa.imageSmoothingEnabled=this.S),this.sp(),this.da||!d&&!this.dl||
window.setTimeout(function(){window.scrollTo(0,1)},100)}};d.prototype.sp=function(){if(this.Mq&&0!==this.Cl){var e="portrait";2===this.Cl&&(e="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(e):screen.lockOrientation?screen.lockOrientation(e):screen.webkitLockOrientation?screen.webkitLockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):screen.msLockOrientation&&screen.msLockOrientation(e)}};d.prototype.gt=function(){this.n.Tq();this.cl=!0;var e,
a,b;e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.Vi&&b.Vi()};d.prototype.ht=function(){this.cl=!1;var e,a,b;e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.Wi&&b.Wi()};d.prototype.Mo=function(){if(!this.da){var e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Hg)&&!this.uc?jQuery(this.canvas).offset():jQuery(this.canvas).position();e.position="absolute";jQuery(this.cb).css(e)}};var w=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(e){var a;if(e&&!this.Ig)for(K("[Construct 2] Suspending"),this.Ig=!0,-1!==this.Kl&&w&&w(this.Kl),-1!==this.fm&&clearTimeout(this.fm),e=0,a=this.Ah.length;e<a;e++)this.Ah[e](!0);else if(!e&&this.Ig){K("[Construct 2] Resuming");this.Ig=!1;this.Ii=Ua();this.Re=Ua();e=this.$g=this.ki=0;for(a=this.Ah.length;e<a;e++)this.Ah[e](!1);this.Za(!1)}};d.prototype.Iq=function(e){this.Ah.push(e)};
d.prototype.Pd=function(e){return this.Ti[e]};d.prototype.Mi=function(e){e&&e.project||fa("Project model unavailable");e=e.project;this.name=e[0];this.jn=e[1];this.lb=e[12];this.kn=e[12];this.Na=e[10];this.Ma=e[11];this.Fo=this.Na/2;this.Go=this.Ma/2;this.da&&!this.Hc&&(4<=e[12]||0===e[12])&&(K("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.kn=this.lb=3);this.pm=e[18];this.Ug=e[19];0===this.Ug&&(this.Df=new Image,this.Df.src=
"loading-logo.png");this.dh=e[21];this.Ti=fc();this.ed=new Y(this);var a,b,c,h,l,g,d,n,s;a=0;for(b=e[2].length;a<b;a++)d=e[2][a],c=this.Pd(d[0]),ib(d,c.prototype),s=new c(this),s.qj=d[1],s.fe=d[2],s.oo=d[9],s.ha&&s.ha(),this.plugins.push(s);this.Ti=fc();a=0;for(b=e[3].length;a<b;a++){d=e[3][a];l=this.Pd(d[1]);s=null;c=0;for(h=this.plugins.length;c<h;c++)if(this.plugins[c]instanceof l){s=this.plugins[c];break}var p=new s.gb(s);p.name=d[0];p.A=d[2];p.Xk=d[3].slice(0);p.ju=d[3].length;p.Nq=d[4];p.bs=
d[5];p.O=d[11];p.A?(p.Si=[],p.sd=this.tg++,p.na=null):(p.Si=null,p.sd=-1,p.na=[]);p.gi=null;p.mf=null;p.dn=null;p.Ic=!1;p.Nb=null;d[6]?(p.zj=d[6][0],p.Aj=d[6][1],p.Ch=d[6][2]):(p.zj=null,p.Aj=0,p.Ch=0);p.Lb=d[7]?d[7]:null;p.index=a;p.c=[];p.ai=[];p.me=[new jb(p)];p.qd=0;p.Wc=null;p.Yq=0;p.Wf=!0;p.Hj=kb;p.hs=lb;p.ns=mb;p.ba=nb;p.qh=ob;p.Il=pb;p.Nf=rb;p.mi=sb;p.Dk=tb;p.Gk=ub;p.ld=vb;p.qn=wb;p.Th=new ab(this.Na,this.Ma);p.Ih=!0;p.Jh=!1;p.ta={};p.toString=xb;p.Fa=[];c=0;for(h=d[8].length;c<h;c++){n=d[8][c];
var f=this.Pd(n[1]),v=null;l=0;for(g=this.Fa.length;l<g;l++)if(this.Fa[l]instanceof f){v=this.Fa[l];break}v||(v=new f(this),v.po=[],v.Hf=new ca,v.ha&&v.ha(),this.Fa.push(v));-1===v.po.indexOf(p)&&v.po.push(p);l=new v.gb(v,p);l.name=n[0];l.O=n[2];l.ha();p.Fa.push(l)}p.global=d[9];p.$k=d[10];p.G=[];c=0;for(h=d[12].length;c<h;c++)p.G.push({id:d[12][c][0],name:d[12][c][1],eb:-1,Ta:!0,index:c});p.Dv=d[13];this.pm&&!p.A&&!p.$k&&s.fe||p.ha();p.name&&(this.types[p.name]=p);this.m.push(p);s.qj&&(c=new s.Ea(p),
c.uid=this.dh++,c.Po=this.qo++,c.Je=0,c.yg=yb,c.toString=zb,c.Da=d[14],c.ha(),p.c.push(c),this.Dd[c.uid.toString()]=c)}a=0;for(b=e[4].length;a<b;a++)for(l=e[4][a],g=this.m[l[0]],c=1,h=l.length;c<h;c++)d=this.m[l[c]],d.na.push(g),g.Si.push(d);a=0;for(b=e[27].length;a<b;a++){l=e[27][a];g=[];c=0;for(h=l.length;c<h;c++)g.push(this.m[l[c]]);c=0;for(h=g.length;c<h;c++)g[c].Ic=!0,g[c].Nb=g}if(0<this.tg)for(a=0,b=this.m.length;a<b;a++)if(d=this.m[a],!d.A&&d.na.length){d.gi=Array(this.tg);d.mf=Array(this.tg);
d.dn=Array(this.tg);p=[];c=v=f=n=0;for(h=d.na.length;c<h;c++)for(s=d.na[c],d.gi[s.sd]=n,n+=s.ju,d.mf[s.sd]=f,f+=s.Nq,d.dn[s.sd]=v,v+=s.bs,l=0,g=s.G.length;l<g;l++)p.push(va({},s.G[l]));d.G=p.concat(d.G);c=0;for(h=d.G.length;c<h;c++)d.G[c].index=c}a=0;for(b=e[5].length;a<b;a++)d=e[5][a],c=new Ab(this,d),this.il[c.name]=c,this.Tb.push(c);a=0;for(b=e[6].length;a<b;a++)d=e[6][a],c=new Bb(this,d),this.sk[c.name]=c,this.rd.push(c);a=0;for(b=this.rd.length;a<b;a++)this.rd[a].Ca();a=0;for(b=this.rd.length;a<
b;a++)this.rd[a].km();a=0;for(b=this.Fj.length;a<b;a++)this.Fj[a].Ca();this.Fj.length=0;this.Lq=e[7];this.wk=e[8];this.bd=e[9];this.jg=1;this.sr=e[13];this.S=e[14];this.Vj=e[15];this.hu=e[17];this.Cl=e[20];this.Mq=0<this.Cl;this.ut=e[22];this.oc=this.Dp=e[23];this.nr=e[24];this.Bt=e[25];this.vj=Date.now();this.Ti.length=0;this.Ls()};var r=!1;d.prototype.tm=function(e,a){e.cocoonLazyLoad=!0;e.onerror=function(a){r=e.Sm=!0;console&&console.error&&console.error("Error loading image '"+e.src+"': ",a)};
this.Hc?e.src=a:e.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){e.src=a},function(b){r=e.Sm=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):e.src=a);this.fg.push(e)};d.prototype.Zr=function(e){var a,b;a=0;for(b=this.fg.length;a<b;a++)if(this.fg[a].Uq===e)return this.fg[a];return null};var l=0,h=!1;d.prototype.Es=function(){this.gf&&(l=this.gf.Ut(this.Lq))};d.prototype.Pm=function(){var e=l,a=0,b=0,c=!0,g,d,b=0;for(g=this.fg.length;b<
g;b++){d=this.fg[b];var n=d.ik;if(!n||0>=n)n=5E4;e+=n;d.src&&(d.complete||d.loaded)&&!d.Sm?a+=n:c=!1}c&&this.Bt&&this.gf&&(h||(this.gf.Yt(),h=!0),b=this.gf.os(),a+=b,b<l&&(c=!1));this.Xe=0==e?0:a/e;return c};d.prototype.go=function(){if(this.aa||this.n){var e=this.aa||this.El;this.cb&&this.Mo();this.Xe=0;this.Pn=-1;if(this.Pm())this.Fs();else{var a=Date.now()-this.vj;if(e){var b=this.width,c=this.height,h=this.devicePixelRatio;this.cb&&(b=this.Xh,c=this.Wh,h=1);if(3!==this.Ug&&(this.gc||500<=a&&this.Pn!=
this.Xe)){e.clearRect(0,0,b,c);var a=b/2,c=c/2,b=0===this.Ug&&this.Df.complete,l=40*h,g=0,d=80*h,n;b&&(d=this.Df.width*h,n=this.Df.height*h,l=d/2,g=n/2,e.drawImage(this.Df,T(a-l),T(c-g),d,n));1>=this.Ug?(a=T(a-l)+.5,c=T(c+(g+(b?12*h:0)))+.5,e.fillStyle=r?"red":"DodgerBlue",e.fillRect(a,c,Math.floor(d*this.Xe),6*h),e.strokeStyle="black",e.strokeRect(a,c,d,6*h),e.strokeStyle="white",e.strokeRect(a-1*h,c-1*h,d+2*h,8*h)):2===this.Ug&&(e.font=this.Hc?"12pt ArialMT":"12pt Arial",e.fillStyle=r?"#f00":"#999",
e.Cv="middle",h=Math.round(100*this.Xe)+"%",b=e.measureText?e.measureText(h):null,e.fillText(h,a-(b?b.width:0)/2,c))}this.Pn=this.Xe}setTimeout(function(e){return function(){e.go()}}(this),this.gc?10:100)}}};d.prototype.Fs=function(){this.cb&&(this.canvas.parentNode.removeChild(this.cb),this.cb=this.El=null);this.vj=Date.now();this.Re=Ua();var e,a,b;if(this.pm)for(e=0,a=this.m.length;e<a;e++)b=this.m[e],b.A||b.$k||!b.Ba.fe||b.ha();else this.zf=!1;e=0;for(a=this.Tb.length;e<a;e++)this.Tb[e].Vq();2<=
this.lb&&(e=this.Na/this.Ma,a=this.width/this.height,this.jg=2!==this.lb&&a>e||2===this.lb&&a<e?this.height/this.Ma:this.width/this.Na);this.jn?this.il[this.jn].Yl():this.Tb[0].Yl();this.pm||(this.Oi=1,this.trigger(Y.prototype.j.Am,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.et&&b.et();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Za(!1);this.bb&&
AppMobi.webview.execute("onGameReady();")};var s=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Za=function(e,a,b){if(this.Y){var c=Ua();if(b||!this.Ig||e){e||(s?this.Kl=s(this.np):this.fm=setTimeout(this.np,this.yd?1:16));a=a||c;var h=this.lb;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.uc)||this.Hg)&&
0<this.Fe&&(h=this.Fe);0<h&&(!this.Ei||window.self!==window.top)&&(h=window.innerHeight,this.Ng===window.innerWidth&&this.Mg===h||this.setSize(f(),m()));this.da||(b?(this.ii||(this.Ak=jQuery(this.canvas).css("margin")||"0",this.ii=!0),this.Fg||this.ee||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.ii?(this.Fg||this.ee||jQuery(this.canvas).css("margin",
this.Ak),this.Ak="",this.ii=!1,0===this.lb&&this.setSize(Math.round(this.xo/this.devicePixelRatio),Math.round(this.wo/this.devicePixelRatio),!0)):(this.xo=this.width,this.wo=this.height));this.zf&&(b=this.Pm(),this.Oi=this.Xe,b&&(this.zf=!1,this.Xe=1,this.trigger(Y.prototype.j.Am,null)));this.Ys(a);!this.ea&&!this.gc||this.cl||this.zh||e||(this.ea=!1,this.n?this.Pb():this.Gc(),this.sj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.sj[0],this.sj[1]),this.trigger(Y.prototype.j.aq,
null)),this.sj=null));this.wv||(this.Yf++,this.fi++,this.ki++);this.$g+=Ua()-c}}};d.prototype.Ys=function(e){var a,b,c,h,l,g,d,n;1E3<=e-this.Re&&(this.Re+=1E3,1E3<=e-this.Re&&(this.Re=e),this.zk=this.ki,this.ki=0,this.hk=this.$g,this.$g=0);0!==this.Ii&&(a=e-this.Ii,0>a&&(a=0),this.Yd=a/1E3,.5<this.Yd?this.Yd=0:.1<this.Yd&&(this.Yd=.1));this.Ii=e;this.Ce=this.Yd*this.Zf;this.hc.add(this.Ce);this.hd.add(this.Yd);e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||
this.Hg)&&!this.uc;2<=this.lb||e&&0<this.Fe?(a=this.Na/this.Ma,b=this.width/this.height,c=this.lb,e&&0<this.Fe&&(c=this.Fe),this.jg=2!==c&&b>a||2===c&&b<a?this.height/this.Ma:this.width/this.Na,this.Y&&(this.Y.Uo(this.Y.scrollX),this.Y.Vo(this.Y.scrollY))):this.jg=this.Me?this.devicePixelRatio:1;this.fb();this.xd++;this.ed.Lt();this.xd--;this.fb();this.xd++;b=this.vo.Sc();e=0;for(a=b.length;e<a;e++)b[e].yv();e=0;for(a=this.m.length;e<a;e++)if(g=this.m[e],!g.A&&(g.Fa.length||g.na.length))for(b=0,c=
g.c.length;b<c;b++)for(d=g.c[b],h=0,l=d.F.length;h<l;h++)d.F[h].Za();e=0;for(a=this.m.length;e<a;e++)if(g=this.m[e],!g.A&&(g.Fa.length||g.na.length))for(b=0,c=g.c.length;b<c;b++)for(d=g.c[b],h=0,l=d.F.length;h<l;h++)n=d.F[h],n.At&&n.At();b=this.ul.Sc();e=0;for(a=b.length;e<a;e++)b[e].Za();this.xd--;this.Gs();for(e=0;this.ve&&10>e++;)this.$m(this.ve);e=0;for(a=this.rd.length;e<a;e++)this.rd[e].Qk=!1;this.Y.De&&this.Y.De.Pa();this.Ht.length=0;this.hl=!1;this.xd++;e=0;for(a=this.m.length;e<a;e++)if(g=
this.m[e],!g.A&&(g.Fa.length||g.na.length))for(b=0,c=g.c.length;b<c;b++)for(d=g.c[b],h=0,l=d.F.length;h<l;h++)n=d.F[h],n.cm&&n.cm();b=this.wl.Sc();e=0;for(a=b.length;e<a;e++)b[e].cm();this.xd--};d.prototype.$m=function(e){var a=this.Y;this.Y.Zt();var b,c,h,l,g,d,n;if(this.n)for(b=0,c=this.m.length;b<c;b++)g=this.m[b],g.A||!g.Gj||g.global&&0!==g.c.length||-1!==e.Dg.indexOf(g)||g.Gj();a==e&&(this.ed.Jb.length=0);e.Yl();b=0;for(c=this.m.length;b<c;b++)if(g=this.m[b],g.global||g.Ba.qj)for(e=0,a=g.c.length;e<
a;e++)if(d=g.c[e],d.Bl&&d.Bl(),d.F)for(h=0,l=d.F.length;h<l;h++)n=d.F[h],n.Bl&&n.Bl();this.hl=this.ea=!0;this.fb()};d.prototype.em=function(e){this.ul.add(e)};d.prototype.au=function(e){this.wl.add(e)};d.prototype.Ek=function(e){return e&&-1!==e.bh?this.Yd*e.bh:this.Ce};d.prototype.Gc=function(){this.Y.Gc(this.aa);this.bb&&this.aa.present()};d.prototype.Pb=function(){this.Y.Pb(this.n);this.n.Dt()};d.prototype.Gq=function(e){e&&this.ok.push(e)};d.prototype.pi=function(e){e=e.toString();return this.Dd.hasOwnProperty(e)?
this.Dd[e]:null};var g=[];d.prototype.Od=function(e){var a,b;a=e.type.name;var c=null;if(this.ze.hasOwnProperty(a)){if(c=this.ze[a],c.contains(e))return}else c=g.length?g.pop():new ca,this.ze[a]=c;c.add(e);this.be=!0;if(e.Ic)for(a=0,b=e.siblings.length;a<b;a++)this.Od(e.siblings[a]);this.Zk&&c.dg.push(e);this.xd++;this.trigger(Object.getPrototypeOf(e.type.Ba).j.cq,e);this.xd--};d.prototype.fb=function(){if(this.be){var e,a,b,c,h,l;this.Zk=!0;b=0;for(h=this.Fc.length;b<h;++b)for(e=this.Fc[b],a=e.type,
a.c.push(e),c=0,l=a.na.length;c<l;++c)a.na[c].c.push(e),a.na[c].Wf=!0;this.Fc.length=0;this.Tp();Ta(this.ze);this.be=this.Zk=!1}};d.prototype.Tp=function(){for(var e in this.ze)this.ze.hasOwnProperty(e)&&this.Ip(this.ze[e])};d.prototype.Ip=function(e){var a=e.Sc(),b=a[0].type,c,h,l,d,n,s;Va(b.c,e);b.Wf=!0;0===b.c.length&&(b.Jh=!1);c=0;for(h=b.na.length;c<h;++c)s=b.na[c],Va(s.c,e),s.Wf=!0;c=0;for(h=this.ed.Jb.length;c<h;++c)if(n=this.ed.Jb[c],n.rb.hasOwnProperty(b.index)&&Va(n.rb[b.index].vd,e),!b.A)for(l=
0,d=b.na.length;l<d;++l)s=b.na[l],n.rb.hasOwnProperty(s.index)&&Va(n.rb[s.index].vd,e);if(n=a[0].d){if(n.Rc)for(l=n.c,c=0,h=l.length;c<h;++c)d=l[c],e.contains(d)&&(d.la(),n.Vb.update(d,d.Fb,null),d.Fb.set(0,0,-1,-1));Va(n.c,e);n.vh(0)}for(c=0;c<a.length;++c)this.Hp(a[c],b);e.clear();g.push(e);this.ea=!0};d.prototype.Hp=function(e,a){var b,c,h;b=0;for(c=this.ok.length;b<c;++b)this.ok[b](e);e.Wd&&a.Th.update(e,e.Wd,null);(b=e.d)&&b.Of(e,!0);if(e.F)for(b=0,c=e.F.length;b<c;++b)h=e.F[b],h.eh&&h.eh(),
h.behavior.Hf.remove(e);this.vo.remove(e);this.ul.remove(e);this.wl.remove(e);e.eh&&e.eh();this.Dd.hasOwnProperty(e.uid.toString())&&delete this.Dd[e.uid.toString()];this.Ui--;100>a.ai.length&&a.ai.push(e)};var p=[];d.prototype.ye=function(e,a,b,c,h,l){var g,d,n,s;if(!e)return null;var f=this.m[e[1]],v=f.Ba.fe;if(this.zf&&v&&!f.$k||v&&!this.n&&11===e[0][11])return null;var m=a;v||(a=null);var k;f.ai.length?(k=f.ai.pop(),k.Nc=!0,f.Ba.Ea.call(k,f)):(k=new f.Ba.Ea(f),k.Nc=!1);k.uid=!b||l||this.Dd.hasOwnProperty(e[2].toString())?
this.dh++:e[2];this.Dd[k.uid.toString()]=k;k.Po=this.qo++;k.Je=f.c.length;g=0;for(d=this.Fc.length;g<d;++g)this.Fc[g].type===f&&k.Je++;k.yg=yb;k.toString=zb;n=e[3];if(k.Nc)Ta(k.ta);else{k.ta={};if("undefined"!==typeof cr_is_preview)for(k.Cn=[],k.Cn.length=n.length,g=0,d=n.length;g<d;g++)k.Cn[g]=n[g][1];k.Ka=[];k.Ka.length=n.length}g=0;for(d=n.length;g<d;g++)k.Ka[g]=n[g][0];if(v){var r=e[0];k.x=ga(c)?r[0]:c;k.y=ga(h)?r[1]:h;k.z=r[2];k.width=r[3];k.height=r[4];k.depth=r[5];k.i=r[6];k.opacity=r[7];k.Ab=
r[8];k.Bb=r[9];k.sb=r[10];g=r[11];!this.n&&f.G.length&&(k.sb=g);k.mg=cb(k.sb);this.k&&db(k,k.sb,this.k);if(k.Nc){g=0;for(d=r[12].length;g<d;g++)for(n=0,s=r[12][g].length;n<s;n++)k.ra[g][n]=r[12][g][n];k.ya.set(0,0,0,0);k.Wd.set(0,0,-1,-1);k.Fb.set(0,0,-1,-1);k.Mb.Tf(k.ya);k.Zj.length=0}else{k.ra=r[12].slice(0);g=0;for(d=k.ra.length;g<d;g++)k.ra[g]=r[12][g].slice(0);k.U=[];k.Qd=[];k.Qd.length=f.G.length;k.ya=new U(0,0,0,0);k.Wd=new U(0,0,-1,-1);k.Fb=new U(0,0,-1,-1);k.Mb=new ta;k.Zj=[];k.va=Cb;k.Jq=
Db;k.$a=Eb;k.la=Fb;k.gu=Gb;k.om=Hb;k.rc=Ib}k.Dh=!1;k.du=0;k.cu=0;k.bu=null;14===r.length&&(k.Dh=!0,k.du=r[13][0],k.cu=r[13][1],k.bu=r[13][2]);g=0;for(d=f.G.length;g<d;g++)k.Qd[g]=!0;k.Md=Jb;k.Md();k.Bp=!!k.U.length;k.Oh=!0;k.ak=!0;f.Ih=!0;k.visible=!0;k.bh=-1;k.d=a;k.Tc=a.c.length;"undefined"===typeof k.V&&(k.V=null);this.ea=k.we=!0}var B;g=p.length=0;for(d=f.na.length;g<d;g++)p.push.apply(p,f.na[g].Fa);p.push.apply(p,f.Fa);if(k.Nc)for(g=0,d=p.length;g<d;g++){var w=p[g];B=k.F[g];B.Nc=!0;w.behavior.Ea.call(B,
w,k);r=e[4][g];n=0;for(s=r.length;n<s;n++)B.Da[n]=r[n];B.ha();w.behavior.Hf.add(k)}else for(k.F=[],g=0,d=p.length;g<d;g++)w=p[g],B=new w.behavior.Ea(w,k),B.Nc=!1,B.Da=e[4][g].slice(0),B.ha(),k.F.push(B),w.behavior.Hf.add(k);r=e[5];if(k.Nc)for(g=0,d=r.length;g<d;g++)k.Da[g]=r[g];else k.Da=r.slice(0);this.Fc.push(k);this.be=!0;a&&(a.ig(k,!0),1!==a.Db||1!==a.Eb)&&(f.Jh=!0);this.Ui++;if(f.Ic){if(k.Ic=!0,k.Nc?k.siblings.length=0:k.siblings=[],!b&&!l){g=0;for(d=f.Nb.length;g<d;g++)if(f.Nb[g]!==f){if(!f.Nb[g].Wc)return null;
k.siblings.push(this.ye(f.Nb[g].Wc,m,!1,v?k.x:c,v?k.y:h,!0))}g=0;for(d=k.siblings.length;g<d;g++)for(k.siblings[g].siblings.push(k),n=0;n<d;n++)g!==n&&k.siblings[g].siblings.push(k.siblings[n])}}else k.Ic=!1,k.siblings=null;k.ha();g=0;for(d=k.F.length;g<d;g++)k.F[g].zt&&k.F[g].zt();return k};d.prototype.vg=function(e){var a,b;a=0;for(b=this.Y.J.length;a<b;a++){var c=this.Y.J[a];if(fb(c.name,e))return c}return null};d.prototype.ud=function(e){e=T(e);0>e&&(e=0);e>=this.Y.J.length&&(e=this.Y.J.length-
1);return this.Y.J[e]};d.prototype.fk=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].ba().fa=!0};d.prototype.qh=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].qh()};d.prototype.Il=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].Il()};d.prototype.Nf=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].Nf()};d.prototype.yp=function(e){if(e.Ih){var a,b,c=e.c;a=0;for(b=c.length;a<b;++a)c[a].om();c=this.Fc;a=0;for(b=c.length;a<b;++a)c[a].type===e&&c[a].om();e.Ih=!1}};d.prototype.gs=function(e,
a,b,c){var h,g,l=e?1!==e.Db||1!==e.Eb:!1;if(a.A)for(e=0,h=a.Si.length;e<h;++e)g=a.Si[e],l||g.Jh?ya(c,g.c):(this.yp(g),g.Th.jj(b,c));else l||a.Jh?ya(c,a.c):(this.yp(a),a.Th.jj(b,c))};d.prototype.Xf=function(e,a,b,c){var h=e.ba(),g,l,d,n,s,p;if(h.fa)for(c||(h.fa=!1,h.c.length=0),g=0,n=e.c.length;g<n;g++){if(d=e.c[g],d.la(),s=d.d.ma(a,b,!0),p=d.d.ma(a,b,!1),d.$a(s,p)){if(c)return!1;h.c.push(d)}}else{g=l=0;for(n=h.c.length;g<n;g++)if(d=h.c[g],d.la(),s=d.d.ma(a,b,!0),p=d.d.ma(a,b,!1),d.$a(s,p)){if(c)return!1;
h.c[l]=h.c[g];l++}c||(h.c.length=l)}e.ld();return c?!0:h.Pk()};d.prototype.$t=function(e,a){if(!(e&&a&&e!==a&&e.we&&a.we))return!1;e.la();a.la();var b=e.d,c=a.d,h,g,l,d,n,s,p,f;if(b===c||b.Db===c.Db&&c.Eb===c.Eb&&b.scale===c.scale&&b.i===c.i&&b.kb===c.kb){if(!e.ya.Ms(a.ya)||!e.Mb.Dn(a.Mb)||e.Dh&&a.Dh)return!1;if(e.Dh)return this.lp(e,a);if(a.Dh)return this.lp(a,e);p=e.V&&!e.V.vf();h=a.V&&!a.V.vf();if(!p&&!h)return!0;p?(e.V.hf(e.width,e.height,e.i),p=e.V):(this.Pc.Sf(e.Mb,e.x,e.y,e.width,e.height),
p=this.Pc);h?(a.V.hf(a.width,a.height,a.i),f=a.V):(this.Pc.Sf(a.Mb,a.x,a.y,a.width,a.height),f=this.Pc);return p.Eg(f,a.x-e.x,a.y-e.y)}p=e.V&&!e.V.vf();h=a.V&&!a.V.vf();p?(e.V.hf(e.width,e.height,e.i),this.Pc.$o(e.V)):this.Pc.Sf(e.Mb,e.x,e.y,e.width,e.height);p=this.Pc;h?(a.V.hf(a.width,a.height,a.i),this.$l.$o(a.V)):this.$l.Sf(a.Mb,a.x,a.y,a.width,a.height);f=this.$l;h=0;for(g=p.Mc;h<g;h++)l=2*h,d=l+1,n=p.Oa[l],s=p.Oa[d],p.Oa[l]=b.nb(n+e.x,s+e.y,!0),p.Oa[d]=b.nb(n+e.x,s+e.y,!1);p.la();h=0;for(g=
f.Mc;h<g;h++)l=2*h,d=l+1,n=f.Oa[l],s=f.Oa[d],f.Oa[l]=c.nb(n+a.x,s+a.y,!0),f.Oa[d]=c.nb(n+a.x,s+a.y,!1);f.la();return p.Eg(f,0,0)};var v=new ta;new U(0,0,0,0);var B=[];d.prototype.lp=function(e,a){var b,c,h,g,l=a.ya,d=e.x,n=e.y;e.sv(l,B);var s=a.V&&!a.V.vf();b=0;for(c=B.length;b<c;++b)if(h=B[b],g=h.zv,l.Ns(g,d,n)&&(v.Tf(g),v.offset(d,n),v.Dn(a.Mb)))if(s)if(a.V.hf(a.width,a.height,a.i),h.Gl){if(h.Gl.Eg(a.V,a.x-(d+g.left),a.y-(n+g.top)))return B.length=0,!0}else{if(this.Pc.Sf(v,0,0,g.right-g.left,g.bottom-
g.top),this.Pc.Eg(a.V,a.x,a.y))return B.length=0,!0}else if(h.Gl){if(this.Pc.Sf(a.Mb,0,0,a.width,a.height),h.Gl.Eg(this.Pc,-(d+g.left),-(n+g.top)))return B.length=0,!0}else return B.length=0,!0;B.length=0;return!1};d.prototype.tp=function(e,a){if(!a)return!1;var b,c,h,g,l;b=0;for(c=e.Fa.length;b<c;b++)if(e.Fa[b].behavior instanceof a)return!0;if(!e.A)for(b=0,c=e.na.length;b<c;b++)for(l=e.na[b],h=0,g=l.Fa.length;h<g;h++)if(l.Fa[h].behavior instanceof a)return!0;return!1};d.prototype.up=function(e){return this.tp(e,
Yb.Lu)};d.prototype.jm=function(e){return this.tp(e,Yb.Mu)};var n=-1;d.prototype.trigger=function(e,a,b){if(!this.Y)return!1;var c=this.Y.De;if(!c)return!1;var h=!1,g,l,d;n++;var s=c.mk;l=0;for(d=s.length;l<d;++l)g=this.qp(e,a,s[l],b),h=h||g;g=this.qp(e,a,c,b);n--;return h||g};d.prototype.qp=function(e,a,b,c){var h=!1,g,l,d,n;if(a)for(d=this.hm(e,a,a.type.name,b,c),h=h||d,n=a.type.na,g=0,l=n.length;g<l;++g)d=this.hm(e,a,n[g].name,b,c),h=h||d;else d=this.hm(e,a,"system",b,c),h=h||d;return h};d.prototype.hm=
function(e,a,b,c,h){var g,l=!1,d=!1,d="undefined"!==typeof h,n=(d?c.gn:c.rp)[b];if(!n)return l;var s=null;c=0;for(g=n.length;c<g;++c)if(n[c].method==e){s=n[c].sg;break}if(!s)return l;e=d?s[h]:s;if(!e)return null;c=0;for(g=e.length;c<g;c++)h=e[c][0],d=e[c][1],d=this.Xr(a,b,h,d),l=l||d;return l};d.prototype.Xr=function(e,a,b,c){var h,g,l=!1;this.im++;var d=this.mb().Ob;d&&this.qh(d.le);var s=1<this.im;this.qh(b.le);s&&this.Ft();var p=this.Jl(b);p.Ob=b;e&&(h=this.types[a].ba(),h.fa=!1,h.c.length=1,h.c[0]=
e,this.types[a].ld());e=!0;if(b.parent){a=p.kp;for(h=b.parent;h;)a.push(h),h=h.parent;a.reverse();h=0;for(g=a.length;h<g;h++)if(!a[h].Nt()){e=!1;break}}e&&(this.fi++,b.Kc?b.Mt(c):b.Pa(),l=l||p.Qe);this.Lo();s&&this.yt();this.Nf(b.le);d&&this.Nf(d.le);this.be&&0===this.xd&&0===n&&!this.al&&this.fb();this.im--;return l};d.prototype.ni=function(){var e=this.mb();return e.Ob.hb[e.yb]};d.prototype.Ft=function(){this.Qi++;this.Qi>=this.ml.length&&this.ml.push([])};d.prototype.yt=function(){this.Qi--};d.prototype.nn=
function(){return this.ml[this.Qi]};d.prototype.Jl=function(e){this.ei++;this.ei>=this.rk.length&&this.rk.push(new Kb);var a=this.mb();a.reset(e);return a};d.prototype.Lo=function(){this.ei--};d.prototype.mb=function(){return this.rk[this.ei]};d.prototype.pn=function(e,a){for(var b,c,h,g,l,d;a;){b=0;for(c=a.Ac.length;b<c;b++)if(d=a.Ac[b],d instanceof Lb&&fb(e,d.name))return d;a=a.parent}b=0;for(c=this.rd.length;b<c;b++)for(l=this.rd[b],h=0,g=l.$d.length;h<g;h++)if(d=l.$d[h],d instanceof Lb&&fb(e,
d.name))return d;return null};d.prototype.rn=function(e){var a,b;a=0;for(b=this.Tb.length;a<b;a++)if(this.Tb[a].O===e)return this.Tb[a];return null};d.prototype.qi=function(e){var a,b;a=0;for(b=this.m.length;a<b;a++)if(this.m[a].O===e)return this.m[a];return null};d.prototype.js=function(e){var a,b;a=0;for(b=this.Sd.length;a<b;a++)if(this.Sd[a].O===e)return this.Sd[a];return null};d.prototype.Gs=function(){var e=this,c=this.nj,h=this.zd,g=this.Sg,l=!1;this.fp&&(l=!0,c="__c2_continuouspreview",this.fp=
!1);if(c.length){this.fb();h=this.Rt();if(window.indexedDB&&!this.gc)k(c,h,function(){K("Saved state to IndexedDB storage ("+h.length+" bytes)");e.zd=h;e.trigger(Y.prototype.j.Qj,null);e.zd="";l&&a()},function(b){try{localStorage.setItem("__c2save_"+c,h),K("Saved state to WebStorage ("+h.length+" bytes)"),e.zd=h,e.trigger(Y.prototype.j.Qj,null),e.zd="",l&&a()}catch(g){K("Failed to save game state: "+b+"; "+g)}});else try{localStorage.setItem("__c2save_"+c,h),K("Saved state to WebStorage ("+h.length+
" bytes)"),e.zd=h,this.trigger(Y.prototype.j.Qj,null),e.zd="",l&&a()}catch(d){K("Error saving to WebStorage: "+d)}this.pb=this.Sg=this.nj=""}g.length&&(window.indexedDB&&!this.gc?b(g,function(a){a?(e.pb=a,K("Loaded state from IndexedDB storage ("+e.pb.length+" bytes)")):(e.pb=localStorage.getItem("__c2save_"+g)||"",K("Loaded state from WebStorage ("+e.pb.length+" bytes)"));e.zh=!1;e.pb.length||e.trigger(Y.prototype.j.Oj,null)},function(){e.pb=localStorage.getItem("__c2save_"+g)||"";K("Loaded state from WebStorage ("+
e.pb.length+" bytes)");e.zh=!1;e.pb.length||e.trigger(Y.prototype.j.Oj,null)}):(this.pb=localStorage.getItem("__c2save_"+g)||"",K("Loaded state from WebStorage ("+this.pb.length+" bytes)"),this.zh=!1,e.pb.length||e.trigger(Y.prototype.j.Oj,null)),this.nj=this.Sg="");this.pb.length&&(this.fb(),this.Xs(this.pb),this.zd=this.pb,this.trigger(Y.prototype.j.oq,null),this.pb=this.zd="")};d.prototype.Rt=function(){var e,a,b,h,g,l,d,n={c2save:!0,version:1,rt:{time:this.hc.Z,walltime:this.hd.Z,timescale:this.Zf,
tickcount:this.Yf,execcount:this.fi,next_uid:this.dh,running_layout:this.Y.O,start_time_offset:Date.now()-this.vj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};e=0;for(a=this.m.length;e<a;e++)if(g=this.m[e],!g.A&&!this.up(g)){l={instances:[]};Sa(g.ta)&&(l.ex=c(g.ta));b=0;for(h=g.c.length;b<h;b++)l.instances.push(this.Sl(g.c[b]));n.types[g.O.toString()]=l}e=0;for(a=this.Tb.length;e<a;e++)b=this.Tb[e],n.layouts[b.O.toString()]=b.Wb();h=n.events.groups;e=0;for(a=this.Sd.length;e<a;e++)b=
this.Sd[e],h[b.O.toString()]=this.ri[b.Ag].zg;a=n.events.cnds;for(d in this.jf)this.jf.hasOwnProperty(d)&&(e=this.jf[d],Sa(e.ta)&&(a[d]={ex:c(e.ta)}));a=n.events.acts;for(d in this.ff)this.ff.hasOwnProperty(d)&&(e=this.ff[d],Sa(e.ta)&&(a[d]={ex:e.ta}));a=n.events.vars;for(d in this.eg)this.eg.hasOwnProperty(d)&&(e=this.eg[d],e.Bi||e.parent&&!e.Kg||(a[d]=e.data));n.system=this.ed.Wb();return JSON.stringify(n)};d.prototype.Qo=function(){var e,a,b,c,h,g;this.Dd={};e=0;for(a=this.m.length;e<a;e++)if(b=
this.m[e],!b.A)for(c=0,h=b.c.length;c<h;c++)g=b.c[c],this.Dd[g.uid.toString()]=g};d.prototype.Xs=function(e){e=JSON.parse(e);if(e.c2save&&!(1<e.version)){var a=e.rt;this.hc.reset();this.hc.Z=a.time;this.hd.reset();this.hd.Z=a.walltime||0;this.Zf=a.timescale;this.Yf=a.tickcount;this.fi=a.execcount;this.vj=Date.now()-a.start_time_offset;var b=a.running_layout;if(b!==this.Y.O)if(b=this.rn(b))this.$m(b);else return;var c,h,g,l,d,n,s;n=e.types;for(h in n)if(n.hasOwnProperty(h)&&(l=this.qi(parseInt(h,10)))&&
!l.A&&!this.up(l)){n[h].ex?l.ta=n[h].ex:Ta(l.ta);d=l.c;g=n[h].instances;b=0;for(c=ma(d.length,g.length);b<c;b++)this.Li(d[b],g[b]);b=g.length;for(c=d.length;b<c;b++)this.Od(d[b]);b=d.length;for(c=g.length;b<c;b++){d=null;if(l.Ba.fe&&(d=this.Y.oi(g[b].w.l),!d))continue;d=this.ye(l.Wc,d,!1,0,0,!0);this.Li(d,g[b])}l.Wf=!0}this.fb();this.Qo();c=e.layouts;for(h in c)c.hasOwnProperty(h)&&(b=this.rn(parseInt(h,10)))&&b.wc(c[h]);c=e.events.groups;for(h in c)c.hasOwnProperty(h)&&(b=this.js(parseInt(h,10)))&&
this.ri[b.Ag]&&this.ri[b.Ag].Xo(c[h]);b=e.events.cnds;for(h in b)b.hasOwnProperty(h)&&this.jf.hasOwnProperty(h)&&(this.jf[h].ta=b[h].ex);b=e.events.acts;for(h in b)b.hasOwnProperty(h)&&this.ff.hasOwnProperty(h)&&(this.ff[h].ta=b[h].ex);b=e.events.vars;for(h in b)b.hasOwnProperty(h)&&this.eg.hasOwnProperty(h)&&(this.eg[h].data=b[h]);this.dh=a.next_uid;this.ed.wc(e.system);b=0;for(c=this.m.length;b<c;b++)if(l=this.m[b],!l.A)for(h=0,e=l.c.length;h<e;h++){d=l.c[h];if(l.Ic)for(n=d.yg(),a=d.siblings.length=
0,g=l.Nb.length;a<g;a++)s=l.Nb[a],l!==s&&d.siblings.push(s.c[n]);d.jd&&d.jd();if(d.F)for(a=0,g=d.F.length;a<g;a++)n=d.F[a],n.jd&&n.jd()}this.ea=!0}};d.prototype.Sl=function(e,a){var b,h,g,l,d;l=e.type;g=l.Ba;var n={};a?n.c2=!0:n.uid=e.uid;Sa(e.ta)&&(n.ex=c(e.ta));if(e.Ka&&e.Ka.length)for(n.ivs={},b=0,h=e.Ka.length;b<h;b++)n.ivs[e.type.Xk[b].toString()]=e.Ka[b];if(g.fe){g={x:e.x,y:e.y,w:e.width,h:e.height,l:e.d.O,zi:e.rc()};0!==e.i&&(g.a=e.i);1!==e.opacity&&(g.o=e.opacity);.5!==e.Ab&&(g.hX=e.Ab);.5!==
e.Bb&&(g.hY=e.Bb);0!==e.sb&&(g.bm=e.sb);e.visible||(g.v=e.visible);e.we||(g.ce=e.we);-1!==e.bh&&(g.mts=e.bh);if(l.G.length)for(g.fx=[],b=0,h=l.G.length;b<h;b++)d=l.G[b],g.fx.push({name:d.name,active:e.Qd[d.index],params:e.ra[d.index]});n.w=g}if(e.F&&e.F.length)for(n.behs={},b=0,h=e.F.length;b<h;b++)l=e.F[b],l.Wb&&(n.behs[l.type.O.toString()]=l.Wb());e.Wb&&(n.data=e.Wb());return n};d.prototype.ls=function(e,a){var b,c;b=0;for(c=e.Xk.length;b<c;b++)if(e.Xk[b]===a)return b;return-1};d.prototype.es=function(e,
a){var b,c;b=0;for(c=e.F.length;b<c;b++)if(e.F[b].type.O===a)return b;return-1};d.prototype.Li=function(e,a,b){var c,h,g,l,d;d=e.type;g=d.Ba;if(b){if(!a.c2)return}else e.uid=a.uid;a.ex?e.ta=a.ex:Ta(e.ta);if(h=a.ivs)for(c in h)h.hasOwnProperty(c)&&(b=this.ls(d,parseInt(c,10)),0>b||b>=e.Ka.length||(e.Ka[b]=h[c]));if(g.fe){g=a.w;e.d.O!==g.l&&(b=e.d,e.d=this.Y.oi(g.l),e.d?(b.Of(e,!0),e.d.ig(e,!0),e.va(),e.d.vh(0)):(e.d=b,this.Od(e)));e.x=g.x;e.y=g.y;e.width=g.w;e.height=g.h;e.Tc=g.zi;e.i=g.hasOwnProperty("a")?
g.a:0;e.opacity=g.hasOwnProperty("o")?g.o:1;e.Ab=g.hasOwnProperty("hX")?g.hX:.5;e.Bb=g.hasOwnProperty("hY")?g.hY:.5;e.visible=g.hasOwnProperty("v")?g.v:!0;e.we=g.hasOwnProperty("ce")?g.ce:!0;e.bh=g.hasOwnProperty("mts")?g.mts:-1;e.sb=g.hasOwnProperty("bm")?g.bm:0;e.mg=cb(e.sb);this.k&&db(e,e.sb,this.k);e.va();if(g.hasOwnProperty("fx"))for(b=0,h=g.fx.length;b<h;b++)l=d.Gk(g.fx[b].name),0>l||(e.Qd[l]=g.fx[b].active,e.ra[l]=g.fx[b].params);e.Md()}if(d=a.behs)for(c in d)d.hasOwnProperty(c)&&(g=this.es(e,
parseInt(c,10)),0>g||e.F[g].wc(d[c]));a.data&&e.wc(a.data)};Mb=function(a){return new d(document.getElementById(a))};Nb=function(a,b){return new d({dc:!0,width:a,height:b})};window.cr_createRuntime=Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Bv=!0;document.body.appendChild(a);a=new d(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 d(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_sizeCanvas=function(f,m){if(0!==f&&0!==m){var d=window.cr_getC2Runtime();d&&d.setSize(f,m)}};window.cr_setSuspended=function(f){var m=window.cr_getC2Runtime();m&&m.setSuspended(f)};
(function(){function f(a,b){this.b=a;this.De=null;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;this.scale=1;this.i=0;this.nf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.vp=b[3];this.dp=b[4];this.O=b[5];var c=b[6],g,d;this.J=[];this.Dg=[];g=0;for(d=c.length;g<d;g++){var f=new Ob(this,c[g]);f.so=g;this.J.push(f)}c=b[7];this.Ke=[];g=0;for(d=c.length;g<d;g++){var f=c[g],k=this.b.m[f[1]];k.Wc||(k.Wc=f);this.Ke.push(f);-1===this.Dg.indexOf(k)&&this.Dg.push(k)}this.G=[];this.U=[];this.ra=
[];g=0;for(d=b[8].length;g<d;g++)this.G.push({id:b[8][g][0],name:b[8][g][1],eb:-1,Ta:!0,index:g}),this.ra.push(b[8][g][2].slice(0));this.Md();this.sh=new U(0,0,1,1);this.Ll=new U(0,0,1,1);this.he={}}function m(a,b){return a.Tc-b.Tc}function d(a,b){this.Va=a;this.b=a.b;this.c=[];this.scale=1;this.i=0;this.Ae=!1;this.Kd=new U(0,0,0,0);this.op=new ta;this.Ha=this.xa=this.Ia=this.wa=0;this.bf=!1;this.Nd=-1;this.name=b[0];this.index=b[1];this.O=b[2];this.visible=b[3];this.Ud=b[4];this.Ld=b[5];this.Db=
b[6];this.Eb=b[7];this.opacity=b[8];this.yk=b[9];this.Rc=b[10];this.kb=b[11];this.sb=b[12];this.rr=b[13];this.mg="source-over";this.ib=this.jb=0;this.Vb=null;this.Bf=q();this.Gd=!0;this.Hi=new U(0,0,-1,-1);this.mc=new U(0,0,-1,-1);this.Rc&&(this.Vb=new bb(this.b.Na,this.b.Ma));this.ie=!1;var c=b[14],g,d;this.ip=[];this.fc=[];this.pg=[];g=0;for(d=c.length;g<d;g++){var f=c[g],k=this.b.m[f[1]];k.Wc||(k.Wc=f,k.Yq=this.index);this.fc.push(f);-1===this.Va.Dg.indexOf(k)&&this.Va.Dg.push(k)}xa(this.ip,this.fc);
this.G=[];this.U=[];this.ra=[];g=0;for(d=b[15].length;g<d;g++)this.G.push({id:b[15][g][0],name:b[15][g][1],eb:-1,Ta:!0,index:g}),this.ra.push(b[15][g][2].slice(0));this.Md();this.sh=new U(0,0,1,1);this.Ll=new U(0,0,1,1)}function q(){return c.length?c.pop():[]}function k(a){a.length=0;c.push(a)}f.prototype.Qt=function(a){var b=a.type.O.toString();this.he.hasOwnProperty(b)||(this.he[b]=[]);this.he[b].push(this.b.Sl(a))};f.prototype.vn=function(){var a=this.J[0];return!a.Ld&&1===a.opacity&&!a.yk&&a.visible};
f.prototype.Md=function(){this.U.length=0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Ta&&this.U.push(c)};f.prototype.Fk=function(a){var b,c,g;b=0;for(c=this.G.length;b<c;b++)if(g=this.G[b],g.name===a)return g;return null};var b=[],a=!0;f.prototype.Yl=function(){this.dp&&(this.De=this.b.sk[this.dp],this.De.km());this.b.Y=this;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;var c,h,d,g,p,f,k;c=0;for(d=this.b.m.length;c<d;c++)if(h=this.b.m[c],!h.A)for(p=h.c,h=0,g=p.length;h<g;h++)if(f=
p[h],f.d){var n=f.d.so;n>=this.J.length&&(n=this.J.length-1);f.d=this.J[n];-1===f.d.c.indexOf(f)&&f.d.c.push(f);f.d.bf=!0}if(!a)for(c=0,d=this.J.length;c<d;++c)this.J[c].c.sort(m);b.length=0;this.Oq();c=0;for(d=this.J.length;c<d;c++)f=this.J[c],f.Wq(),f.mm();p=!1;if(!this.nf){for(k in this.he)if(this.he.hasOwnProperty(k)&&(h=this.b.qi(parseInt(k,10)))&&!h.A&&this.b.jm(h)){g=this.he[k];c=0;for(d=g.length;c<d;c++){f=null;if(h.Ba.fe&&(f=this.oi(g[c].w.l),!f))continue;f=this.b.ye(h.Wc,f,!1,0,0,!0);this.b.Li(f,
g[c]);p=!0;b.push(f)}g.length=0}c=0;for(d=this.J.length;c<d;c++)this.J[c].c.sort(m),this.J[c].bf=!0}p&&(this.b.fb(),this.b.Qo());for(c=0;c<b.length;c++)if(f=b[c],f.type.Ic)for(d=f.yg(),h=0,g=f.type.Nb.length;h<g;h++)k=f.type.Nb[h],f.type!==k&&(k.c.length>d?f.siblings.push(k.c[d]):k.Wc&&(p=this.b.ye(k.Wc,f.d,!0,f.x,f.y,!0),this.b.fb(),k.Hj(),f.siblings.push(p),b.push(p)));c=0;for(d=this.Ke.length;c<d;c++)this.b.ye(this.Ke[c],null,!0);this.b.ve=null;this.b.fb();if(this.b.aa&&!this.b.da)for(c=0,d=this.b.m.length;c<
d;c++)k=this.b.m[c],!k.A&&k.c.length&&k.hj&&k.hj(this.b.aa);c=0;for(d=b.length;c<d;c++)f=b[c],this.b.trigger(Object.getPrototypeOf(f.type.Ba).j.bq,f);b.length=0;this.b.trigger(Y.prototype.j.zm,null);this.nf=!1};f.prototype.Vq=function(){var a,b,c,g,d;b=a=0;for(c=this.Ke.length;a<c;a++)g=this.Ke[a],d=this.b.m[g[1]],d.global?this.b.ye(g,null,!0):(this.Ke[b]=g,b++);this.Ke.length=b};f.prototype.Zt=function(){this.b.trigger(Y.prototype.j.nq,null);this.b.ed.Jb.length=0;var b,c,d,g,p,f;if(!this.nf)for(b=
0,c=this.J.length;b<c;b++)for(this.J[b].nm(),p=this.J[b].c,d=0,g=p.length;d<g;d++)f=p[d],f.type.global||this.b.jm(f.type)&&this.Qt(f);b=0;for(c=this.J.length;b<c;b++){p=this.J[b].c;d=0;for(g=p.length;d<g;d++)f=p[d],f.type.global||this.b.Od(f);this.b.fb();p.length=0;this.J[b].bf=!0}b=0;for(c=this.b.m.length;b<c;b++)if(p=this.b.m[b],!(p.global||p.Ba.fe||p.Ba.qj||p.A)){d=0;for(g=p.c.length;d<g;d++)this.b.Od(p.c[d]);this.b.fb()}a=!1};new U(0,0,0,0);f.prototype.Gc=function(a){var b,c=a,g=!1,d=!this.b.oc;
d&&(this.b.Ki||(this.b.Ki=document.createElement("canvas"),b=this.b.Ki,b.width=this.b.M,b.height=this.b.L,this.b.Rn=b.getContext("2d"),g=!0),b=this.b.Ki,c=this.b.Rn,b.width!==this.b.M&&(b.width=this.b.M,g=!0),b.height!==this.b.L&&(b.height=this.b.L,g=!0),g&&(c.webkitImageSmoothingEnabled=this.b.S,c.mozImageSmoothingEnabled=this.b.S,c.msImageSmoothingEnabled=this.b.S,c.imageSmoothingEnabled=this.b.S));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Vj&&!this.vn()&&c.clearRect(0,0,this.b.M,
this.b.L);var f,k,g=0;for(f=this.J.length;g<f;g++)k=this.J[g],k.visible&&0<k.opacity&&11!==k.sb&&(k.c.length||!k.Ld)?k.Gc(c):k.mm();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};f.prototype.Pb=function(a){var b=0<this.U.length||this.b.bg||!this.b.oc;if(b){this.b.Sb||(this.b.Sb=a.Xd(this.b.M,this.b.L,this.b.S));if(this.b.Sb.lg!==this.b.M||this.b.Sb.kg!==this.b.L)a.deleteTexture(this.b.Sb),this.b.Sb=a.Xd(this.b.M,this.b.L,this.b.S);a.cd(this.b.Sb);this.b.oc||a.Rf(this.b.M,this.b.L)}else this.b.Sb&&
(a.cd(null),a.deleteTexture(this.b.Sb),this.b.Sb=null);this.b.Vj&&!this.vn()&&a.clear(0,0,0,0);var c,g,d;c=0;for(g=this.J.length;c<g;c++)d=this.J[c],d.visible&&0<d.opacity&&(d.c.length||!d.Ld)?d.Pb(a):d.mm();b&&(0===this.U.length||1===this.U.length&&this.b.oc?(1===this.U.length?(b=this.U[0].index,a.dd(this.U[0].eb),a.Qf(null,1/this.b.M,1/this.b.L,0,0,1,1,this.scale,this.i,0,0,this.b.M/2,this.b.L/2,this.ra[b]),a.ij(this.U[0].eb)&&(this.b.ea=!0)):a.dd(0),this.b.oc||a.Rf(this.b.width,this.b.height),
a.cd(null),a.Ye(1),a.Xb(this.b.Sb),a.Wo(),a.je(),a.qe(),b=this.b.width/2,c=this.b.height/2,a.rh(-b,c,b,c,b,-c,-b,-c),a.Xb(null)):this.Ml(a,null,null,null))};f.prototype.wg=function(){return 0<this.U.length||this.b.bg||!this.b.oc?this.b.Sb:null};f.prototype.sn=function(){var a=this.J[0].qc(),b,c,g;b=1;for(c=this.J.length;b<c;b++)g=this.J[b],(0!==g.Db||0!==g.Eb)&&g.qc()<a&&(a=g.qc());return a};f.prototype.Uo=function(a){if(!this.vp){var b=1/this.sn()*this.b.M/2;a>this.width-b&&(a=this.width-b);a<b&&
(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ea=!0)};f.prototype.Vo=function(a){if(!this.vp){var b=1/this.sn()*this.b.L/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ea=!0)};f.prototype.Oq=function(){this.Uo(this.scrollX);this.Vo(this.scrollY)};f.prototype.Ml=function(a,b,c,g){var d=c?c.U:b?b.U:this.U,f=1,k=0,n=0,e=0,m=this.b.M,t=this.b.L;c?(f=c.d.qc(),k=c.d.Ua(),n=c.d.wa,e=c.d.xa,m=c.d.Ia,t=c.d.Ha):b&&(f=b.qc(),k=b.Ua(),n=b.wa,e=b.xa,m=b.Ia,t=b.Ha);var r=
this.b.Bk,w,q,x,A,L=0,C=1,X,H=this.b.M,z=this.b.L,ua=H/2,N=z/2,Q=b?b.sh:this.sh,E=b?b.Ll:this.Ll,G=0,O=0,D=0,J=0,I=H,ja=H,M=z,pa=z,ea=x=0,sa=c?c.d.Ua():0;if(c){w=0;for(q=d.length;w<q;w++)x+=a.ps(d[w].eb),ea+=a.qs(d[w].eb);A=c.ya;G=b.nb(A.left,A.top,!0,!0);D=b.nb(A.left,A.top,!1,!0);I=b.nb(A.right,A.bottom,!0,!0);M=b.nb(A.right,A.bottom,!1,!0);0!==sa&&(w=b.nb(A.right,A.top,!0,!0),q=b.nb(A.right,A.top,!1,!0),O=b.nb(A.left,A.bottom,!0,!0),J=b.nb(A.left,A.bottom,!1,!0),A=Math.min(G,I,w,O),I=Math.max(G,
I,w,O),G=A,A=Math.min(D,M,q,J),M=Math.max(D,M,q,J),D=A);G-=x;D-=ea;I+=x;M+=ea;E.left=G/H;E.top=1-D/z;E.right=I/H;E.bottom=1-M/z;O=G=T(G);J=D=T(D);ja=I=qa(I);pa=M=qa(M);O-=x;J-=ea;ja+=x;pa+=ea;0>G&&(G=0);0>D&&(D=0);I>H&&(I=H);M>z&&(M=z);0>O&&(O=0);0>J&&(J=0);ja>H&&(ja=H);pa>z&&(pa=z);Q.left=G/H;Q.top=1-D/z;Q.right=I/H;Q.bottom=1-M/z}else Q.left=E.left=0,Q.top=E.top=0,Q.right=E.right=1,Q.bottom=E.bottom=1;ea=c&&((c.i||sa)&&a.ph(d[0].eb)||0!==x||0!==ea||1!==c.opacity||c.type.Ba.oo)||b&&!c&&1!==b.opacity;
a.Wo();if(ea){r[L]||(r[L]=a.Xd(H,z,this.b.S));if(r[L].lg!==H||r[L].kg!==z)a.deleteTexture(r[L]),r[L]=a.Xd(H,z,this.b.S);a.dd(0);a.cd(r[L]);X=pa-J;a.clearRect(O,z-J-X,ja-O,X);c?c.Pb(a):(a.Xb(this.b.ic),a.Ye(b.opacity),a.je(),a.translate(-ua,-N),a.qe(),a.Fd(G,M,I,M,I,D,G,D,Q));E.left=E.top=0;E.right=E.bottom=1;c&&(A=Q.top,Q.top=Q.bottom,Q.bottom=A);L=1;C=0}a.Ye(1);x=d.length-1;var sa=a.Hl(d[x].eb)||!b&&!c&&!this.b.oc,ba=0;w=0;for(q=d.length;w<q;w++){r[L]||(r[L]=a.Xd(H,z,this.b.S));if(r[L].lg!==H||r[L].kg!==
z)a.deleteTexture(r[L]),r[L]=a.Xd(H,z,this.b.S);a.dd(d[w].eb);ba=d[w].index;a.ij(d[w].eb)&&(this.b.ea=!0);0!=w||ea?(a.Qf(g,1/H,1/z,E.left,E.top,E.right,E.bottom,f,k,n,e,(n+m)/2,(e+t)/2,c?c.ra[ba]:b?b.ra[ba]:this.ra[ba]),a.Xb(null),w!==x||sa?(a.cd(r[L]),X=pa-J,A=z-J-X,a.clearRect(O,A,ja-O,X)):(c?a.ke(c.jb,c.ib):b&&a.ke(b.jb,b.ib),a.cd(g)),a.Xb(r[C]),a.je(),a.translate(-ua,-N),a.qe(),a.Fd(G,M,I,M,I,D,G,D,Q),w!==x||sa||a.Xb(null)):(a.cd(r[L]),X=pa-J,A=z-J-X,a.clearRect(O,A,ja-O,X),c?(a.Qf(g,1/c.width,
1/c.height,E.left,E.top,E.right,E.bottom,f,k,n,e,(n+m)/2,(e+t)/2,c.ra[ba]),c.Pb(a)):(a.Qf(g,1/H,1/z,0,0,1,1,f,k,n,e,(n+m)/2,(e+t)/2,b?b.ra[ba]:this.ra[ba]),a.Xb(b?this.b.ic:this.b.Sb),a.je(),a.translate(-ua,-N),a.qe(),a.Fd(G,M,I,M,I,D,G,D,Q)),E.left=E.top=0,E.right=E.bottom=1,c&&!sa&&(A=M,M=D,D=A));L=0===L?1:0;C=0===L?1:0}sa&&(a.dd(0),c?a.ke(c.jb,c.ib):b?a.ke(b.jb,b.ib):this.b.oc||(a.Rf(this.b.width,this.b.height),ua=this.b.width/2,N=this.b.height/2,D=G=0,I=this.b.width,M=this.b.height),a.cd(g),a.Xb(r[C]),
a.je(),a.translate(-ua,-N),a.qe(),c&&1===d.length&&!ea?a.Fd(G,D,I,D,I,M,G,M,Q):a.Fd(G,M,I,M,I,D,G,D,Q),a.Xb(null))};f.prototype.oi=function(a){var b,c;b=0;for(c=this.J.length;b<c;b++)if(this.J[b].O===a)return this.J[b];return null};f.prototype.Wb=function(){var a,b,c,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.i,w:this.width,h:this.height,fv:this.nf,persist:this.he,fx:[],layers:{}};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],g.fx.push({name:c.name,active:c.Ta,params:this.ra[c.index]});
a=0;for(b=this.J.length;a<b;a++)c=this.J[a],g.layers[c.O.toString()]=c.Wb();return g};f.prototype.wc=function(a){var b,c,g,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.i=a.a;this.width=a.w;this.height=a.h;this.he=a.persist;"undefined"!==typeof a.fv&&(this.nf=a.fv);var f=a.fx;b=0;for(c=f.length;b<c;b++)if(g=this.Fk(f[b].name))g.Ta=f[b].active,this.ra[g.index]=f[b].params;this.Md();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.oi(parseInt(d,10)))&&a.wc(b[d])};Ab=f;d.prototype.Md=function(){this.U.length=
0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Ta&&this.U.push(c)};d.prototype.Fk=function(a){var b,c,g;b=0;for(c=this.G.length;b<c;b++)if(g=this.G[b],g.name===a)return g;return null};d.prototype.Wq=function(){var a,c,d,g,f,k;c=a=0;for(d=this.fc.length;a<d;a++){g=this.fc[a];f=this.b.m[g[1]];k=this.b.jm(f);f=!0;if(!k||this.Va.nf)g=this.b.ye(g,this,!0),b.push(g),g.type.global&&(f=!1,this.pg.push(g.uid));f&&(this.fc[c]=this.fc[a],c++)}this.fc.length=c;this.b.fb();!this.b.n&&this.G.length&&
(this.sb=this.rr);this.mg=cb(this.sb);this.b.k&&db(this,this.sb,this.b.k);this.Gd=!0};d.prototype.Of=function(a,b){var c=za(this.c,a);0>c||(b&&this.Rc&&a.Fb&&a.Fb.right>=a.Fb.left&&(a.la(),this.Vb.update(a,a.Fb,null),a.Fb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(wa(this.c,c),this.vh(c)),this.Gd=!0)};d.prototype.ig=function(a,b){a.Tc=this.c.length;this.c.push(a);b&&this.Rc&&a.Fb&&a.va();this.Gd=!0};d.prototype.Ct=function(a){this.c.unshift(a);this.vh(0)};d.prototype.dt=function(a,b,c){var g=
a.rc();b=b.rc();wa(this.c,g);g<b&&b--;c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.vh(g<b?g:b)};d.prototype.vh=function(a){-1===this.Nd?this.Nd=a:a<this.Nd&&(this.Nd=a);this.Gd=this.bf=!0};d.prototype.nm=function(){if(this.bf){-1===this.Nd&&(this.Nd=0);var a,b,c;if(this.Rc)for(a=this.Nd,b=this.c.length;a<b;++a)c=this.c[a],c.Tc=a,this.Vb.Zs(c.Fb);else for(a=this.Nd,b=this.c.length;a<b;++a)this.c[a].Tc=a;this.bf=!1;this.Nd=-1}};d.prototype.qc=function(a){return this.ms()*(this.b.oc||
a?this.b.jg:1)};d.prototype.ms=function(){return(this.scale*this.Va.scale-1)*this.kb+1};d.prototype.Ua=function(){return this.Ae?0:Da(this.Va.i+this.i)};var c=[],w=[],r=[];d.prototype.tn=function(){this.nm();this.Vb.jj(this.wa,this.xa,this.Ia,this.Ha,r);if(!r.length)return q();if(1===r.length){var a=q();xa(a,r[0]);r.length=0;return a}for(var b=!0;1<r.length;){for(var a=r,c=void 0,g=void 0,d=void 0,f=void 0,m=void 0,c=0,g=a.length;c<g-1;c+=2){var d=a[c],f=a[c+1],m=q(),n=d,e=f,u=m,t=0,y=0,F=0,oa=n.length,
x=e.length,A=void 0,L=void 0;for(u.length=oa+x;t<oa&&y<x;++F)A=n[t],L=e[y],A.Tc<L.Tc?(u[F]=A,++t):(u[F]=L,++y);for(;t<oa;++t,++F)u[F]=n[t];for(;y<x;++y,++F)u[F]=e[y];b||(k(d),k(f));w.push(m)}1===g%2&&(b?(d=q(),xa(d,a[g-1]),w.push(d)):w.push(a[g-1]));xa(a,w);w.length=0;b=!1}a=r[0];r.length=0;return a};d.prototype.Gc=function(a){this.ie=this.yk||1!==this.opacity||0!==this.sb;var b=this.b.canvas,c=a,g=!1;this.ie&&(this.b.Ji||(this.b.Ji=document.createElement("canvas"),b=this.b.Ji,b.width=this.b.M,b.height=
this.b.L,this.b.Qn=b.getContext("2d"),g=!0),b=this.b.Ji,c=this.b.Qn,b.width!==this.b.M&&(b.width=this.b.M,g=!0),b.height!==this.b.L&&(b.height=this.b.L,g=!0),g&&(c.webkitImageSmoothingEnabled=this.b.S,c.mozImageSmoothingEnabled=this.b.S,c.msImageSmoothingEnabled=this.b.S,c.imageSmoothingEnabled=this.b.S),this.Ld&&c.clearRect(0,0,this.b.M,this.b.L));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Ld||(c.fillStyle="rgb("+this.Ud[0]+","+this.Ud[1]+","+this.Ud[2]+")",c.fillRect(0,0,this.b.M,
this.b.L));c.save();this.Ae=!0;var g=this.ma(0,0,!0,!0),d=this.ma(0,0,!1,!0);this.Ae=!1;this.b.bd&&(g=Math.round(g),d=Math.round(d));this.Ol(g,d,c);var f=this.qc();c.scale(f,f);c.translate(-g,-d);this.Rc?(this.mc.left=this.Vb.$b(this.wa),this.mc.top=this.Vb.ac(this.xa),this.mc.right=this.Vb.$b(this.Ia),this.mc.bottom=this.Vb.ac(this.Ha),this.Gd||!this.mc.di(this.Hi)?(k(this.Bf),g=this.tn(),this.Gd=!1,this.Hi.ng(this.mc)):g=this.Bf):g=this.c;for(var m,n=null,d=0,f=g.length;d<f;++d)m=g[d],m!==n&&(this.or(m,
c),n=m);this.Rc&&(this.Bf=g);c.restore();this.ie&&(a.globalCompositeOperation=this.mg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};d.prototype.or=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.la();var c=a.ya;c.right<this.wa||c.bottom<this.xa||c.left>this.Ia||c.top>this.Ha||(b.globalCompositeOperation=a.mg,a.Gc(b))}};d.prototype.mm=function(){this.Ae=!0;var a=this.ma(0,0,!0,!0),b=this.ma(0,0,!1,!0);this.Ae=!1;this.b.bd&&(a=Math.round(a),b=Math.round(b));this.Ol(a,b,null)};d.prototype.Ol=
function(a,b,c){var g=this.qc();this.wa=a;this.xa=b;this.Ia=a+1/g*this.b.M;this.Ha=b+1/g*this.b.L;a=this.Ua();0!==a&&(c&&(c.translate(this.b.M/2,this.b.L/2),c.rotate(-a),c.translate(this.b.M/-2,this.b.L/-2)),this.Kd.set(this.wa,this.xa,this.Ia,this.Ha),this.Kd.offset((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2),this.op.bp(this.Kd,a),this.op.Rm(this.Kd),this.Kd.offset((this.wa+this.Ia)/2,(this.xa+this.Ha)/2),this.wa=this.Kd.left,this.xa=this.Kd.top,this.Ia=this.Kd.right,this.Ha=this.Kd.bottom)};d.prototype.Pb=
function(a){var b=0,c=0;if(this.ie=this.yk||1!==this.opacity||0<this.U.length||0!==this.sb){this.b.ic||(this.b.ic=a.Xd(this.b.M,this.b.L,this.b.S));if(this.b.ic.lg!==this.b.M||this.b.ic.kg!==this.b.L)a.deleteTexture(this.b.ic),this.b.ic=a.Xd(this.b.M,this.b.L,this.b.S);a.cd(this.b.ic);this.Ld&&a.clear(0,0,0,0)}this.Ld||a.clear(this.Ud[0]/255,this.Ud[1]/255,this.Ud[2]/255,1);this.Ae=!0;var g=this.ma(0,0,!0,!0),b=this.ma(0,0,!1,!0);this.Ae=!1;this.b.bd&&(g=Math.round(g),b=Math.round(b));this.Ol(g,b,
null);g=this.qc();a.je();a.scale(g,g);a.So(-this.Ua());a.translate((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2);a.qe();this.Rc?(this.mc.left=this.Vb.$b(this.wa),this.mc.top=this.Vb.ac(this.xa),this.mc.right=this.Vb.$b(this.Ia),this.mc.bottom=this.Vb.ac(this.Ha),this.Gd||!this.mc.di(this.Hi)?(k(this.Bf),b=this.tn(),this.Gd=!1,this.Hi.ng(this.mc)):b=this.Bf):b=this.c;var d,f,m=null,c=0;for(d=b.length;c<d;++c)f=b[c],f!==m&&(this.pr(b[c],a),m=f);this.Rc&&(this.Bf=b);this.ie&&(b=this.U.length?this.U[0].eb:
0,c=this.U.length?this.U[0].index:0,0===this.U.length||1===this.U.length&&!a.Hl(b)&&1===this.opacity?(1===this.U.length?(a.dd(b),a.Qf(this.Va.wg(),1/this.b.M,1/this.b.L,0,0,1,1,g,this.Ua(),this.wa,this.xa,(this.wa+this.Ia)/2,(this.xa+this.Ha)/2,this.ra[c]),a.ij(b)&&(this.b.ea=!0)):a.dd(0),a.cd(this.Va.wg()),a.Ye(this.opacity),a.Xb(this.b.ic),a.ke(this.jb,this.ib),a.je(),a.qe(),g=this.b.M/2,b=this.b.L/2,a.rh(-g,b,g,b,g,-b,-g,-b),a.Xb(null)):this.Va.Ml(a,this,null,this.Va.wg()))};d.prototype.pr=function(a,
b){if(a.visible&&0!==a.width&&0!==a.height){a.la();var c=a.ya;c.right<this.wa||c.bottom<this.xa||c.left>this.Ia||c.top>this.Ha||(a.Bp?this.qr(a,b):(b.dd(0),b.ke(a.jb,a.ib),a.Pb(b)))}};d.prototype.qr=function(a,b){var c=a.U[0].eb,g=a.U[0].index,d=this.qc();if(1!==a.U.length||b.Hl(c)||b.Et(c)||(a.i||a.d.Ua())&&b.ph(c)||1!==a.opacity||a.type.Ba.oo)this.Va.Ml(b,this,a,this.ie?this.b.ic:this.Va.wg()),b.je(),b.scale(d,d),b.So(-this.Ua()),b.translate((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2),b.qe();else{b.dd(c);
b.ke(a.jb,a.ib);b.ij(c)&&(this.b.ea=!0);var f=0,k=0,n=0,e=0;b.ph(c)&&(c=a.ya,f=this.nb(c.left,c.top,!0,!0),k=this.nb(c.left,c.top,!1,!0),n=this.nb(c.right,c.bottom,!0,!0),c=this.nb(c.right,c.bottom,!1,!0),f/=windowWidth,k=1-k/windowHeight,n/=windowWidth,e=1-c/windowHeight);b.Qf(this.ie?this.b.ic:this.Va.wg(),1/a.width,1/a.height,f,k,n,e,d,this.Ua(),this.wa,this.xa,(this.wa+this.Ia)/2,(this.xa+this.Ha)/2,a.ra[g]);a.Pb(b)}};d.prototype.ma=function(a,b,c,g){var d=this.b.devicePixelRatio;this.b.Me&&(a*=
d,b*=d);var d=this.b.Fo,f=this.b.Go,d=(this.Va.scrollX-d)*this.Db+d,f=(this.Va.scrollY-f)*this.Eb+f,k=d,n=f,e=1/this.qc(!g);g?(k-=this.b.M*e/2,n-=this.b.L*e/2):(k-=this.b.width*e/2,n-=this.b.height*e/2);k+=a*e;n+=b*e;b=this.Ua();0!==b&&(k-=d,n-=f,a=Math.cos(b),b=Math.sin(b),g=k*a-n*b,n=n*a+k*b,k=g+d,n+=f);return c?k:n};d.prototype.nb=function(a,b,c,d){var f=this.b.Fo,k=this.b.Go,m=(this.Va.scrollX-f)*this.Db+f,n=(this.Va.scrollY-k)*this.Eb+k,k=m,f=n,e=this.Ua();if(0!==e){a-=m;b-=n;var r=Math.cos(-e),
e=Math.sin(-e),t=a*r-b*e;b=b*r+a*e;a=t+m;b+=n}m=1/this.qc(!d);d?(k-=this.b.M*m/2,f-=this.b.L*m/2):(k-=this.b.width*m/2,f-=this.b.height*m/2);k=(a-k)/m;f=(b-f)/m;a=this.b.devicePixelRatio;this.b.Me&&!d&&(k/=a,f/=a);return c?k:f};d.prototype.Wb=function(){var a,b,c,d={s:this.scale,a:this.i,vl:this.wa,vt:this.xa,vr:this.Ia,vb:this.Ha,v:this.visible,bc:this.Ud,t:this.Ld,px:this.Db,py:this.Eb,o:this.opacity,zr:this.kb,fx:[],cg:this.pg,instances:[]};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],d.fx.push({name:c.name,
active:c.Ta,params:this.ra[c.index]});return d};d.prototype.wc=function(a){var b,c,d;this.scale=a.s;this.i=a.a;this.wa=a.vl;this.xa=a.vt;this.Ia=a.vr;this.Ha=a.vb;this.visible=a.v;this.Ud=a.bc;this.Ld=a.t;this.Db=a.px;this.Eb=a.py;this.opacity=a.o;this.kb=a.zr;this.pg=a.cg||[];xa(this.fc,this.ip);var f=new ca;b=0;for(d=this.pg.length;b<d;++b)f.add(this.pg[b]);c=b=0;for(d=this.fc.length;b<d;++b)f.contains(this.fc[b][2])||(this.fc[c]=this.fc[b],++c);this.fc.length=c;c=a.fx;b=0;for(d=c.length;b<d;b++)if(a=
this.Fk(c[b].name))a.Ta=c[b].active,this.ra[a.index]=c[b].params;this.Md();this.c.sort(m);this.bf=!0};Ob=d})();
(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 m(a,b){return a.index-b.index}function d(a){var b,c,d,g;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(m);a.length>=p.length&&(p.length=a.length+1);p[a.length]||(p[a.length]=[]);g=p[a.length];b=0;for(c=g.length;b<c;b++)if(d=g[b],f(a,d))return d;g.push(a);return a}
function q(a,b){this.b=a;this.rp={};this.gn={};this.Qk=!1;this.yn=new ca;this.mk=[];this.Wj=[];this.name=b[0];var c=b[1];this.$d=[];var d,g;d=0;for(g=c.length;d<g;d++)this.An(c[d],null,this.$d)}function k(a){this.type=a;this.c=[];this.P=[];this.fa=!0}function b(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ka=[];this.le=[];this.wn=this.Cj=this.gm=this.xi=this.group=this.hp=!1;this.hb=[];this.Cc=[];this.Ac=[];this.Ag="";this.zg=this.xi=this.group=!1;this.Uh=null;c[1]&&(this.Ag=c[1][1].toLowerCase(),
this.group=!0,this.xi=!!c[1][0],this.Uh=[],this.zg=this.xi,this.b.Sd.push(this),this.b.ri[this.Ag]=this);this.Kc=c[2];this.O=c[4];this.group||(this.b.Qm[this.O.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var g=new Pb(this,d[a]);g.index=a;this.hb.push(g);this.Lm(g.type)}d=c[6];a=0;for(b=d.length;a<b;a++)g=new Qb(this,d[a]),g.index=a,this.Cc.push(g);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.An(c[a],this,this.Ac);this.Ci=!1;this.hb.length&&(this.Ci=null==this.hb[0].type&&
this.hb[0].ab==Y.prototype.j.Lp)}function a(a,b){var c,d,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Ic))for(c=0,d=a.Nb.length;c<d;c++)g=a.Nb[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function c(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.ua=[];this.ta={};this.index=-1;this.gg=!1;this.ab=this.b.Pd(b[1]);this.trigger=0<b[3];this.en=2===b[3];this.Zc=b[4];this.rf=b[5];this.Ws=b[6];this.O=b[7];this.b.jf[this.O.toString()]=this;-1===b[0]?(this.type=null,this.Pa=this.Rl,this.ue=null,this.Ec=-1):
(this.type=this.b.m[b[0]],this.Pa=this.Ws?this.Ot:this.Ql,b[2]?(this.ue=this.type.mi(b[2]),this.Ec=this.type.Dk(b[2])):(this.ue=null,this.Ec=-1),this.cc.parent&&this.cc.parent.pj());this.en&&(this.Pa=this.Pt);if(10===b.length){var c,d,g=b[9];c=0;for(d=g.length;c<d;c++){var h=new Rb(this,g[c]);this.K.push(h)}this.ua.length=g.length}}function w(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.ua=[];this.ta={};this.index=-1;this.gg=!1;this.ab=this.b.Pd(b[1]);-1===b[0]?(this.type=null,this.Pa=
this.Rl,this.ue=null,this.Ec=-1):(this.type=this.b.m[b[0]],this.Pa=this.Ql,b[2]?(this.ue=this.type.mi(b[2]),this.Ec=this.type.Dk(b[2])):(this.ue=null,this.Ec=-1));this.O=b[3];this.b.ff[this.O.toString()]=this;if(6===b.length){var c,d,g=b[5];c=0;for(d=g.length;c<d;c++){var h=new Rb(this,g[c]);this.K.push(h)}this.ua.length=g.length}}function r(){B++;v.length===B&&v.push(new Sb);return v[B]}function l(a,b){this.ja=a;this.cc=a.cc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Xc=null;this.Jd=0;this.get=
null;this.Xm=0;this.Va=null;this.key=0;this.object=null;this.index=0;this.Fh=this.$e=this.Fh=this.$e=this.hn=this.Ee=this.Gh=null;this.Bc=!1;var c,d,g;switch(b[0]){case 0:case 7:this.Xc=new Tb(this,b[1]);this.Jd=0;this.get=this.vs;break;case 1:this.Xc=new Tb(this,b[1]);this.Jd=0;this.get=this.ws;break;case 5:this.Xc=new Tb(this,b[1]);this.Jd=0;this.get=this.As;break;case 3:case 8:this.Xm=b[1];this.get=this.ts;break;case 6:this.Va=this.b.il[b[1]];this.get=this.Bs;break;case 9:this.key=b[1];this.get=
this.zs;break;case 4:this.object=this.b.m[b[1]];this.get=this.Cs;this.cc.Lm(this.object);this.ja instanceof Qb?this.cc.pj():this.cc.parent&&this.cc.parent.pj();break;case 10:this.index=b[1];a.type.A?(this.get=this.xs,this.Bc=!0):this.get=this.ys;break;case 11:this.Gh=b[1];this.Ee=null;this.get=this.us;break;case 2:case 12:this.hn=b[1];this.get=this.ss;break;case 13:for(this.get=this.Ds,this.$e=[],this.Fh=[],c=1,d=b.length;c<d;c++)g=new Rb(this.ja,b[c]),this.$e.push(g),this.Fh.push(0)}}function h(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ka=[];this.name=c[1];this.Jj=c[2];this.wi=c[3];this.Kg=!!c[4];this.Bi=!!c[5];this.O=c[6];this.b.eg[this.O.toString()]=this;this.data=this.wi;this.parent?(this.Ue=this.Kg||this.Bi?-1:this.b.Xt++,this.b.Kq.push(this)):(this.Ue=-1,this.b.Tj.push(this))}function s(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ka=[];this.Cg=null;this.Js=c[1];this.Ta=!0}function g(){this.kp=[];this.reset(null)}var p=[];q.prototype.toString=function(){return this.name};
q.prototype.An=function(a,b,c){switch(a[0]){case 0:a=new Ub(this,b,a);if(a.Kc)for(c.push(a),c=0,b=a.hb.length;c<b;c++)a.hb[c].trigger&&this.Bn(a,c);else a.Jn()?this.Bn(a,0):c.push(a);break;case 1:a=new Lb(this,b,a);c.push(a);break;case 2:a=new Vb(this,b,a),c.push(a)}};q.prototype.Ca=function(){var a,b;a=0;for(b=this.$d.length;a<b;a++)this.$d[a].Ca(a<b-1&&this.$d[a+1].Ci)};q.prototype.km=function(){this.mk.length=0;this.Wj.length=0;this.Km(this);this.Wj.length=0};q.prototype.Km=function(a){var b,c,
d,g,h=a.mk,f=a.Wj,k=this.yn.Sc();b=0;for(c=k.length;b<c;++b)d=k[b],g=d.Cg,!d.Ta||a===g||-1<f.indexOf(g)||(f.push(g),g.Km(a),h.push(g))};q.prototype.Pa=function(a){this.b.Av||(this.Qk=!0,a||(this.b.al=!0));var b,c;b=0;for(c=this.$d.length;b<c;b++){var d=this.$d[b];d.Pa();this.b.fk(d.ka);this.b.be&&this.b.fb()}a||(this.b.al=!1)};q.prototype.Bn=function(a,b){a.Kc||this.b.Fj.push(a);var c,d,g=a.hb[b],h;h=g.type?g.type.name:"system";var f=(c=g.en)?this.gn:this.rp;f[h]||(f[h]=[]);h=f[h];f=g.ab;if(c){if(g.K.length&&
(g=g.K[0],1===g.type&&2===g.Xc.type)){g=g.Xc.value.toLowerCase();c=0;for(d=h.length;c<d;c++)if(h[c].method==f){c=h[c].sg;c[g]?c[g].push([a,b]):c[g]=[[a,b]];return}c={};c[g]=[[a,b]];h.push({method:f,sg:c})}}else{c=0;for(d=h.length;c<d;c++)if(h[c].method==f){h[c].sg.push([a,b]);return}gc&&f===gc.prototype.j.ef?h.unshift({method:f,sg:[[a,b]]}):h.push({method:f,sg:[[a,b]]})}};Bb=q;k.prototype.Pk=function(){return this.fa?this.type.c.length:this.c.length};k.prototype.pc=function(){return this.fa?this.type.c:
this.c};k.prototype.oh=function(a){a&&(a.b.mb().Ob.Kc?(this.fa&&(this.c.length=0,xa(this.P,a.type.c),this.fa=!1),a=this.P.indexOf(a),-1!==a&&(this.c.push(this.P[a]),this.P.splice(a,1))):(this.fa=!1,this.c.length=1,this.c[0]=a))};jb=k;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";b.prototype.Ca=function(a){var b,c=this.parent;if(this.group)for(this.Cj=!0;c;){if(!c.group){this.Cj=!1;break}c=c.parent}this.gm=!this.Jn()&&(!this.parent||this.parent.group&&this.parent.Cj);this.wn=!!a;this.le=
this.ka.slice(0);for(c=this.parent;c;){a=0;for(b=c.ka.length;a<b;a++)this.Hq(c.ka[a]);c=c.parent}this.ka=d(this.ka);this.le=d(this.le);a=0;for(b=this.hb.length;a<b;a++)this.hb[a].Ca();a=0;for(b=this.Cc.length;a<b;a++)this.Cc[a].Ca();a=0;for(b=this.Ac.length;a<b;a++)this.Ac[a].Ca(a<b-1&&this.Ac[a+1].Ci)};b.prototype.Xo=function(a){if(this.zg!==!!a){this.zg=!!a;var b;a=0;for(b=this.Uh.length;a<b;++a)this.Uh[a].xp();0<b&&this.b.Y.De&&this.b.Y.De.km()}};b.prototype.Lm=function(b){a(b,this.ka)};b.prototype.Hq=
function(b){a(b,this.le)};b.prototype.pj=function(){this.hp=!0;this.parent&&this.parent.pj()};b.prototype.Jn=function(){return this.hb.length?this.hb[0].trigger:!1};b.prototype.Pa=function(){var a,b=!1,c,d=this.b,g=this.b.mb();g.Ob=this;var h=this.hb;this.Ci||(g.qk=!1);if(this.Kc){0===h.length&&(b=!0);g.yb=0;for(a=h.length;g.yb<a;g.yb++)h[g.yb].trigger||(c=h[g.yb].Pa())&&(b=!0);(g.Qe=b)&&this.Pl()}else{g.yb=0;for(a=h.length;g.yb<a;g.yb++)if(c=h[g.yb].Pa(),!c){g.Qe=!1;this.gm&&d.be&&d.fb();return}g.Qe=
!0;this.Pl()}this.tr(g)};b.prototype.tr=function(a){a.Qe&&this.wn&&(a.qk=!0);this.gm&&this.b.be&&this.b.fb()};b.prototype.Mt=function(a){this.b.mb().Ob=this;this.hb[a].Pa()&&(this.Pl(),this.b.mb().Qe=!0)};b.prototype.Pl=function(){var a=this.b.mb(),b;a.Kb=0;for(b=this.Cc.length;a.Kb<b;a.Kb++)if(this.Cc[a.Kb].Pa())return;this.To()};b.prototype.Kt=function(){var a=this.b.mb(),b;for(b=this.Cc.length;a.Kb<b;a.Kb++)if(this.Cc[a.Kb].Pa())return;this.To()};b.prototype.To=function(){if(this.Ac.length){var a,
b,c,d,g=this.Ac.length-1;this.b.Jl(this);if(this.hp)for(a=0,b=this.Ac.length;a<b;a++)c=this.Ac[a],(d=!this.Cj||!this.group&&a<g)&&this.b.Il(c.ka),c.Pa(),d?this.b.Nf(c.ka):this.b.fk(c.ka);else for(a=0,b=this.Ac.length;a<b;a++)this.Ac[a].Pa();this.b.Lo()}};b.prototype.Nt=function(){var a=this.b.mb();a.Ob=this;var b=!1,c;a.yb=0;for(c=this.hb.length;a.yb<c;a.yb++)if(this.hb[a.yb].Pa())b=!0;else if(!this.Kc)return!1;return this.Kc?b:!0};b.prototype.Qs=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=
b;--b)if(this.hb[b].type===a.type)return!1;return!0};Ub=b;c.prototype.Ca=function(){var a,b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.Ca(),c.Bc&&(this.gg=!0)};c.prototype.Pt=function(){return!0};c.prototype.Rl=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.ua[a]=this.K[a].get();return Ra(this.ab.apply(this.b.ed,this.ua),this.rf)};c.prototype.Ot=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.ua[a]=this.K[a].get();a=this.ab.apply(this.ue?this.ue:this.type,this.ua);this.type.ld();
return a};c.prototype.Ql=function(){var a,b,c,d,g,h,f,k,l=this.type,p=l.ba(),m=this.cc.Kc&&!this.trigger;b=0;var r=l.Ic,s=l.A,v=l.sd,w=this.Ec,q=-1<w,B=this.gg,E=this.K,G=this.ua,O=this.rf,D=this.ab,J;if(B)for(b=0,g=E.length;b<g;++b)h=E[b],h.Bc||(G[b]=h.get(0));else for(b=0,g=E.length;b<g;++b)G[b]=E[b].get(0);if(p.fa){p.c.length=0;p.P.length=0;J=l.c;a=0;for(d=J.length;a<d;++a){k=J[a];if(B)for(b=0,g=E.length;b<g;++b)h=E[b],h.Bc&&(G[b]=h.get(a));q?(b=0,s&&(b=k.type.mf[v]),b=D.apply(k.F[w+b],G)):b=D.apply(k,
G);(f=Ra(b,O))?p.c.push(k):m&&p.P.push(k)}l.finish&&l.finish(!0);p.fa=!1;l.ld();return p.Pk()}c=0;J=(f=m&&!this.cc.Qs(this))?p.P:p.c;var I=!1;a=0;for(d=J.length;a<d;++a){k=J[a];if(B)for(b=0,g=E.length;b<g;++b)h=E[b],h.Bc&&(G[b]=h.get(a));q?(b=0,s&&(b=k.type.mf[v]),b=D.apply(k.F[w+b],G)):b=D.apply(k,G);if(Ra(b,O))if(I=!0,f){if(p.c.push(k),r)for(b=0,g=k.siblings.length;b<g;b++)h=k.siblings[b],h.type.ba().c.push(h)}else{J[c]=k;if(r)for(b=0,g=k.siblings.length;b<g;b++)h=k.siblings[b],h.type.ba().c[c]=
h;c++}else if(f){J[c]=k;if(r)for(b=0,g=k.siblings.length;b<g;b++)h=k.siblings[b],h.type.ba().P[c]=h;c++}else if(m&&(p.P.push(k),r))for(b=0,g=k.siblings.length;b<g;b++)h=k.siblings[b],h.type.ba().P.push(h)}J.length=c;if(r)for(s=l.Nb,a=0,d=s.length;a<d;a++)k=s[a].ba(),f?k.P.length=c:k.c.length=c;c=I;if(f&&!I)for(a=0,d=p.c.length;a<d;a++){k=p.c[a];if(B)for(b=0,g=E.length;b<g;b++)h=E[b],h.Bc&&(G[b]=h.get(a));b=q?D.apply(k.F[w],G):D.apply(k,G);if(Ra(b,O)){I=!0;break}}l.finish&&l.finish(c||m);return m?
I:p.Pk()};Pb=c;w.prototype.Ca=function(){var a,b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.Ca(),c.Bc&&(this.gg=!0)};w.prototype.Rl=function(){var a=this.b,b,c,d=this.K,g=this.ua;b=0;for(c=d.length;b<c;++b)g[b]=d[b].get();return this.ab.apply(a.ed,g)};w.prototype.Ql=function(){var a=this.type,b=this.Ec,c=a.sd,d=this.gg,g=this.K,h=this.ua,f=this.ab,k=a.ba().pc(),a=a.A,l=-1<b,p,m,r,s,w,v;if(d)for(m=0,s=g.length;m<s;++m)w=g[m],w.Bc||(h[m]=w.get(0));else for(m=0,s=g.length;m<s;++m)h[m]=g[m].get(0);
p=0;for(r=k.length;p<r;++p){v=k[p];if(d)for(m=0,s=g.length;m<s;++m)w=g[m],w.Bc&&(h[m]=w.get(p));l?(m=0,a&&(m=v.type.mf[c]),f.apply(v.F[b+m],h)):f.apply(v,h)}return!1};Qb=w;var v=[],B=-1;l.prototype.Ca=function(){var a,b;if(11===this.type)this.Ee=this.b.pn(this.Gh,this.cc.parent);else if(13===this.type)for(a=0,b=this.$e.length;a<b;a++)this.$e[a].Ca();this.Xc&&this.Xc.Ca()};l.prototype.bt=function(a){this.Bc||!a||a.Ba.qj||(this.Bc=!0)};l.prototype.Zo=function(){this.Bc=!0};l.prototype.vs=function(a){this.Jd=
a||0;a=r();this.Xc.get(a);B--;return a.data};l.prototype.ws=function(a){this.Jd=a||0;a=r();this.Xc.get(a);B--;return R(a.data)?a.data:""};l.prototype.Cs=function(){return this.object};l.prototype.ts=function(){return this.Xm};l.prototype.As=function(a){this.Jd=a||0;a=r();this.Xc.get(a);B--;return a.La()?this.b.ud(a.data):this.b.vg(a.data)};l.prototype.Bs=function(){return this.Va};l.prototype.zs=function(){return this.key};l.prototype.ys=function(){return this.index};l.prototype.xs=function(a){a=
a||0;var b=this.ja.type,c=null,c=b.ba(),g=c.pc();if(g.length)c=g[a%g.length].type;else if(c.P.length)c=c.P[a%c.P.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.gi[b.sd]};l.prototype.us=function(){return this.Ee};l.prototype.ss=function(){return this.hn};l.prototype.Ds=function(){var a,b;a=0;for(b=this.$e.length;a<b;a++)this.Fh[a]=this.$e[a].get();return this.Fh};Rb=l;h.prototype.Ca=function(){this.ka=d(this.ka)};h.prototype.Ze=function(a){var b=this.b.nn();
this.parent&&!this.Kg&&b?(this.Ue>=b.length&&(b.length=this.Ue+1),b[this.Ue]=a):this.data=a};h.prototype.xg=function(){var a=this.b.nn();return!this.parent||this.Kg||!a||this.Bi?this.data:this.Ue>=a.length||"undefined"===typeof a[this.Ue]?this.wi:a[this.Ue]};h.prototype.Pa=function(){!this.parent||this.Kg||this.Bi||this.Ze(this.wi)};Lb=h;s.prototype.toString=function(){return"include:"+this.Cg.toString()};s.prototype.Ca=function(){this.Cg=this.b.sk[this.Js];this.sheet.yn.add(this);this.ka=d(this.ka);
for(var a=this.parent;a;)a.group&&a.Uh.push(this),a=a.parent;this.xp()};s.prototype.Pa=function(){this.parent&&this.b.qh(this.b.m);this.Cg.Qk||this.Cg.Pa(!0);this.parent&&this.b.Nf(this.b.m)};s.prototype.xp=function(){for(var a=this.parent;a;){if(a.group&&!a.zg){this.Ta=!1;return}a=a.parent}this.Ta=!0};Vb=s;g.prototype.reset=function(a){this.Ob=a;this.Kb=this.yb=0;this.kp.length=0;this.qk=this.Qe=!1};Kb=g})();
(function(){function f(a,b){this.ja=a;this.b=a.b;this.type=b[0];this.get=[this.Kr,this.Gr,this.Tr,this.Wr,this.wr,this.Ur,this.Or,this.Dr,this.Nr,this.Sr,this.Ar,this.Rr,this.Er,this.Pr,this.Lr,this.Mr,this.Hr,this.Ir,this.Cr,this.Vr,this.Qr,this.Jr,this.Br,this.Fr][this.type];var d=null;this.Cd=this.K=this.ua=this.ab=this.Bj=this.Ya=this.first=this.value=null;this.Ec=-1;this.de=null;this.Cp=-1;this.Ee=this.Gh=null;this.Pf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Tb(a,b[1]);break;case 18:this.first=new Tb(a,b[1]);this.Ya=new Tb(a,b[2]);this.Bj=new Tb(a,b[3]);break;case 19:this.ab=this.b.Pd(b[1]);this.ab!==Y.prototype.Qb.random&&this.ab!==Y.prototype.Qb.Sq||this.ja.Zo();this.ua=[];this.K=[];3===b.length?(d=b[2],this.ua.length=d.length+1):this.ua.length=1;break;case 20:this.Cd=this.b.m[b[1]];this.Ec=-1;this.ab=this.b.Pd(b[2]);this.Pf=b[3];Xb.Function&&this.ab===Xb.Function.prototype.Qb.qu&&this.ja.Zo();this.de=b[4]?new Tb(a,b[4]):null;this.ua=[];this.K=
[];6===b.length?(d=b[5],this.ua.length=d.length+1):this.ua.length=1;break;case 21:this.Cd=this.b.m[b[1]];this.Pf=b[2];this.de=b[3]?new Tb(a,b[3]):null;this.Cp=b[4];break;case 22:this.Cd=this.b.m[b[1]];this.Cd.mi(b[2]);this.Ec=this.Cd.Dk(b[2]);this.ab=this.b.Pd(b[3]);this.Pf=b[4];this.de=b[5]?new Tb(a,b[5]):null;this.ua=[];this.K=[];7===b.length?(d=b[6],this.ua.length=d.length+1):this.ua.length=1;break;case 23:this.Gh=b[1],this.Ee=null}this.ja.bt(this.Cd);4<=this.type&&17>=this.type&&(this.first=new Tb(a,
b[1]),this.Ya=new Tb(a,b[2]));if(d){var f,k;f=0;for(k=d.length;f<k;f++)this.K.push(new Tb(a,d[f]))}}function m(){++b;k.length===b&&k.push(new Sb);return k[b]}function d(a,b,d){var f,k;f=0;for(k=a.length;f<k;++f)a[f].get(d),b[f+1]=d.data}function q(a,b){this.type=a||W.df;this.data=b||0;this.Ve=null;this.type==W.df&&(this.data=Math.floor(this.data))}f.prototype.Ca=function(){23===this.type&&(this.Ee=this.ja.b.pn(this.Gh,this.ja.cc.parent));this.first&&this.first.Ca();this.Ya&&this.Ya.Ca();this.Bj&&
this.Bj.Ca();this.de&&this.de.Ca();if(this.K){var a,b;a=0;for(b=this.K.length;a<b;a++)this.K[a].Ca()}};var k=[],b=-1;f.prototype.Vr=function(a){var c=this.K,f=this.ua;f[0]=a;a=m();d(c,f,a);--b;this.ab.apply(this.b.ed,f)};f.prototype.Qr=function(a){var c=this.Cd,f=this.ua,k=this.K,l=this.de,h=this.ab,s=this.ja.Jd,g=c.ba(),p=g.pc();if(!p.length)if(g.P.length)p=g.P;else{this.Pf?a.Yb(""):a.ca(0);return}f[0]=a;a.Ve=c;a=m();d(k,f,a);l&&(l.get(a),a.La()&&(s=a.data,p=c.c));--b;c=p.length;if(s>=c||s<=-c)s%=
c;0>s&&(s+=c);h.apply(p[s],f)};f.prototype.Br=function(a){var c=this.Cd,f=this.ua,k=this.K,l=this.de,h=this.Ec,s=this.ab,g=this.ja.Jd,p=c.ba(),v=p.pc();if(!v.length)if(p.P.length)v=p.P;else{this.Pf?a.Yb(""):a.ca(0);return}f[0]=a;a.Ve=c;a=m();d(k,f,a);l&&(l.get(a),a.La()&&(g=a.data,v=c.c));--b;k=v.length;if(g>=k||g<=-k)g%=k;0>g&&(g+=k);g=v[g];v=0;c.A&&(v=g.type.mf[c.sd]);s.apply(g.F[h+v],f)};f.prototype.Jr=function(a){var c=this.de,d=this.Cd,f=this.Cp,k=this.ja.Jd,h=d.ba(),s=h.pc();if(!s.length)if(h.P.length)s=
h.P;else{this.Pf?a.Yb(""):a.ca(0);return}if(c){h=m();c.get(h);if(h.La()){k=h.data;d=d.c;k%=d.length;0>k&&(k+=d.length);f=d[k].Ka[f];R(f)?a.Yb(f):a.q(f);--b;return}--b}c=s.length;if(k>=c||k<=-c)k%=c;0>k&&(k+=c);k=s[k];s=0;d.A&&(s=k.type.gi[d.sd]);f=k.Ka[f+s];R(f)?a.Yb(f):a.q(f)};f.prototype.Kr=function(a){a.type=W.df;a.data=this.value};f.prototype.Gr=function(a){a.type=W.cf;a.data=this.value};f.prototype.Tr=function(a){a.type=W.String;a.data=this.value};f.prototype.Wr=function(a){this.first.get(a);
a.La()&&(a.data=-a.data)};f.prototype.wr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()&&c.La()&&(a.data+=c.data,c.wf()&&a.Ff());--b};f.prototype.Ur=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()&&c.La()&&(a.data-=c.data,c.wf()&&a.Ff());--b};f.prototype.Or=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()&&c.La()&&(a.data*=c.data,c.wf()&&a.Ff());--b};f.prototype.Dr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()&&c.La()&&(a.data/=c.data,a.Ff());
--b};f.prototype.Nr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()&&c.La()&&(a.data%=c.data,c.wf()&&a.Ff());--b};f.prototype.Sr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()&&c.La()&&(a.data=Math.pow(a.data,c.data),c.wf()&&a.Ff());--b};f.prototype.Ar=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()?c.Di()?a.Yb(a.data.toString()+c.data):a.data&&c.data?a.ca(1):a.ca(0):a.Di()&&(a.data=c.Di()?a.data+c.data:a.data+(Math.round(1E10*c.data)/1E10).toString());--b};
f.prototype.Rr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()&&c.La()&&(a.data||c.data?a.ca(1):a.ca(0));--b};f.prototype.Cr=function(a){this.first.get(a);a.data?this.Ya.get(a):this.Bj.get(a)};f.prototype.Er=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.ca(a.data===c.data?1:0);--b};f.prototype.Pr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.ca(a.data!==c.data?1:0);--b};f.prototype.Lr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.ca(a.data<c.data?1:0);
--b};f.prototype.Mr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.ca(a.data<=c.data?1:0);--b};f.prototype.Hr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.ca(a.data>c.data?1:0);--b};f.prototype.Ir=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.ca(a.data>=c.data?1:0);--b};f.prototype.Fr=function(a){var b=this.Ee.xg();P(b)?a.q(b):a.Yb(b)};Tb=f;q.prototype.wf=function(){return this.type===W.cf};q.prototype.La=function(){return this.type===W.df||this.type===W.cf};q.prototype.Di=
function(){return this.type===W.String};q.prototype.Ff=function(){this.wf()||(this.Di()&&(this.data=parseFloat(this.data)),this.type=W.cf)};q.prototype.ca=function(a){this.type=W.df;this.data=Math.floor(a)};q.prototype.q=function(a){this.type=W.cf;this.data=a};q.prototype.Yb=function(a){this.type=W.String;this.data=a};q.prototype.Wt=function(a){P(a)?(this.type=W.cf,this.data=a):R(a)?(this.type=W.String,this.data=a.toString()):(this.type=W.df,this.data=0)};Sb=q;W={df:0,cf:1,String:2}})();
function Y(f){this.b=f;this.Jb=[]}Y.prototype.Wb=function(){var f={},m,d,q,k,b,a,c,w;f.waits=[];var r=f.waits,l;m=0;for(d=this.Jb.length;m<d;m++){a=this.Jb[m];l={t:a.time,st:a.gp,s:a.Wl,ev:a.lf.O,sm:[],sols:{}};a.lf.Cc[a.Kb]&&(l.act=a.lf.Cc[a.Kb].O);q=0;for(k=a.ka.length;q<k;q++)l.sm.push(a.ka[q].O);for(b in a.rb)if(a.rb.hasOwnProperty(b)){c=this.b.m[parseInt(b,10)];w={sa:a.rb[b].mj,insts:[]};q=0;for(k=a.rb[b].vd.length;q<k;q++)w.insts.push(a.rb[b].vd[q].uid);l.sols[c.O.toString()]=w}r.push(l)}return f};
Y.prototype.wc=function(f){f=f.waits;var m,d,q,k,b,a,c,w,r,l,h;m=this.Jb.length=0;for(d=f.length;m<d;m++)if(a=f[m],w=this.b.Qm[a.ev.toString()]){r=-1;q=0;for(k=w.Cc.length;q<k;q++)if(w.Cc[q].O===a.act){r=q;break}if(-1!==r){c={rb:{},ka:[],nk:!1};c.time=a.t;c.gp=a.st||"";c.Wl=!!a.s;c.lf=w;c.Kb=r;q=0;for(k=a.sm.length;q<k;q++)(w=this.b.qi(a.sm[q]))&&c.ka.push(w);for(b in a.sols)if(a.sols.hasOwnProperty(b)&&(w=this.b.qi(parseInt(b,10)))){r=a.sols[b];l={mj:r.sa,vd:[]};q=0;for(k=r.insts.length;q<k;q++)(h=
this.b.pi(r.insts[q]))&&l.vd.push(h);c.rb[w.index.toString()]=l}this.Jb.push(c)}}};
(function(){function f(){}function m(){}function d(){}var q=Y.prototype;f.prototype.zm=function(){return!0};f.prototype.nq=function(){return!0};f.prototype.Aq=function(){var a=this.b.ni().ta;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,d=this.b.Yf;a.TriggerOnce_lastTick=d;return this.b.hl||b!==d-1};f.prototype.Jp=function(a,b,d){return Wb(a.xg(),b,d)};f.prototype.Lp=function(){var a=this.b.mb();return a.qk?!1:!a.Qe};f.prototype.Am=function(){return!0};
f.prototype.aq=function(){return!0};f.prototype.Qj=function(){return!0};f.prototype.oq=function(){return!0};f.prototype.Oj=function(){return!0};f.prototype.Fp=function(a,b,d){return Ia(V(a),V(d))<=V(b)};f.prototype.Op=function(a,b){return Ka(V(a),V(b))};f.prototype.Mp=function(a,b,d){a=Fa(a);b=Fa(b);d=Fa(d);return Ka(d,b)?Ka(a,b)&&!Ka(a,d):!(!Ka(a,b)&&Ka(a,d))};q.j=new f;m.prototype.Wp=function(a){if(!this.b.zf&&!this.b.ve){var b=this.b.Tb.indexOf(this.b.Y);if(!a||0!==b)if(a||b!==this.b.Tb.length-
1)this.b.ve=this.b.Tb[b+(a?-1:1)]}};m.prototype.yq=function(a,b){0===a.Jj?P(b)?a.Ze(b):a.Ze(parseFloat(b)):1===a.Jj&&a.Ze(b.toString())};m.prototype.Ep=function(a,b){0===a.Jj?P(b)?a.Ze(a.xg()+b):a.Ze(a.xg()+parseFloat(b)):1===a.Jj&&a.Ze(a.xg()+b.toString())};var k=[],b=[];m.prototype.Bq=function(a){if(!(0>a)){var c,d,f,l=this.b.mb(),h;h=k.length?k.pop():{rb:{},ka:[]};h.nk=!1;h.time=this.b.hc.Z+a;h.gp="";h.Wl=!1;h.lf=l.Ob;h.Kb=l.Kb+1;a=0;for(c=this.b.m.length;a<c;a++)f=this.b.m[a],d=f.ba(),d.fa&&-1===
l.Ob.ka.indexOf(f)||(h.ka.push(f),f=void 0,f=b.length?b.pop():{vd:[]},f.mj=!1,f.mj=d.fa,xa(f.vd,d.c),h.rb[a.toString()]=f);this.Jb.push(h);return!0}};m.prototype.tq=function(){var a,b,d;a=0;for(b=this.b.Tj.length;a<b;a++)d=this.b.Tj[a],d.data=d.wi};m.prototype.uq=function(){if(!this.b.zf&&!this.b.ve&&this.b.Y){this.b.ve=this.b.Y;var a,b,d;a=0;for(b=this.b.Sd.length;a<b;a++)d=this.b.Sd[a],d.Xo(d.xi)}};m.prototype.vq=function(a){this.b.nj=a};m.prototype.Vp=function(a){this.b.Sg=a};q.pa=new m;d.prototype["int"]=
function(a,b){R(b)?(a.ca(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ca(b)};d.prototype["float"]=function(a,b){R(b)?(a.q(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.q(b)};d.prototype.random=function(a,b,d){void 0===d?a.q(Math.random()*b):a.q(Math.random()*(d-b)+b)};d.prototype.sqrt=function(a,b){a.q(Math.sqrt(b))};d.prototype.abs=function(a,b){a.q(Math.abs(b))};d.prototype.round=function(a,b){a.ca(Math.round(b))};d.prototype.floor=function(a,b){a.ca(Math.floor(b))};d.prototype.ceil=function(a,b){a.ca(Math.ceil(b))};
d.prototype.sin=function(a,b){a.q(Math.sin(V(b)))};d.prototype.cos=function(a,b){a.q(Math.cos(V(b)))};d.prototype.tan=function(a,b){a.q(Math.tan(V(b)))};d.prototype.asin=function(a,b){a.q(Ba(Math.asin(b)))};d.prototype.acos=function(a,b){a.q(Ba(Math.acos(b)))};d.prototype.atan=function(a,b){a.q(Ba(Math.atan(b)))};d.prototype.exp=function(a,b){a.q(Math.exp(b))};d.prototype.log10=function(a,b){a.q(Math.log(b)/Math.LN10)};d.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,
f,k;d=2;for(f=arguments.length;d<f;d++)k=arguments[d],"number"===typeof k&&b<k&&(b=k);a.q(b)};d.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,f,k;d=2;for(f=arguments.length;d<f;d++)k=arguments[d],"number"===typeof k&&b>k&&(b=k);a.q(b)};d.prototype.Ce=function(a){a.q(this.b.Ce)};d.prototype.Zf=function(a){a.q(this.b.Zf)};d.prototype.time=function(a){a.q(this.b.hc.Z)};d.prototype.Yf=function(a){a.ca(this.b.Yf)};d.prototype.Ui=function(a){a.ca(this.b.Ui)};d.prototype.zk=
function(a){a.ca(this.b.zk)};d.prototype.i=function(a,b,d,f,k){a.q(Ba(Ha(b,d,f,k)))};d.prototype.find=function(a,b,d){R(b)&&R(d)?a.ca(b.search(new RegExp(Za(d),"i"))):a.ca(-1)};d.prototype.left=function(a,b,d){a.Yb(R(b)?b.substr(0,d):"")};d.prototype.right=function(a,b,d){a.Yb(R(b)?b.substr(b.length-d):"")};d.prototype.replace=function(a,b,d,f){R(b)&&R(d)&&R(f)?a.Yb(b.replace(new RegExp(Za(d),"gi"),f)):a.Yb(R(b)?b:"")};d.prototype.trim=function(a,b){a.Yb(R(b)?b.trim():"")};d.prototype.Sq=function(a){var b=
T(Math.random()*(arguments.length-1));a.Wt(arguments[b+1])};d.prototype.hk=function(a){a.q(this.b.hk/1E3)};d.prototype.Oi=function(a){a.q(this.b.Oi)};q.Qb=new d;q.Lt=function(){var a,c,d,f,l,h,m=this.b.mb();a=0;for(d=this.Jb.length;a<d;a++){f=this.Jb[a];if(-1===f.time){if(!f.Wl)continue}else if(f.time>this.b.hc.Z)continue;m.Ob=f.lf;m.Kb=f.Kb;m.yb=0;for(c in f.rb)f.rb.hasOwnProperty(c)&&(l=this.b.m[parseInt(c,10)].ba(),h=f.rb[c],l.fa=h.mj,xa(l.c,h.vd),l=h,l.vd.length=0,b.push(l));f.lf.Kt();this.b.fk(f.ka);
f.nk=!0}c=a=0;for(d=this.Jb.length;a<d;a++)f=this.Jb[a],this.Jb[c]=f,f.nk?(Ta(f.rb),f.ka.length=0,k.push(f)):c++;this.Jb.length=c}})();
(function(){ib=function(f,d){var q=f[1],k=f[3],b=f[4],a=f[5],c=f[6],w=f[7],r=f[8];d.j||(d.j={});d.pa||(d.pa={});d.Qb||(d.Qb={});var l=d.j,h=d.pa,s=d.Qb;k&&(l.vu=function(a,b){return Wb(this.x,a,b)},l.wu=function(a,b){return Wb(this.y,a,b)},l.Cu=function(){var a=this.d;this.la();var b=this.ya;return!(b.right<a.wa||b.bottom<a.xa||b.left>a.Ia||b.top>a.Ha)},l.Du=function(){this.la();var a=this.ya,b=this.b.Y;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},l.Ou=function(a,b,c){var d=this.ba(),
h=d.pc();if(!h.length)return!1;var e=h[0],f=e,k=Qa(e.x,e.y,b,c),l,m,s;l=1;for(m=h.length;l<m;l++)if(e=h[l],s=Qa(e.x,e.y,b,c),0===a&&s<k||1===a&&s>k)k=s,f=e;d.oh(f);return!0},h.hv=function(a){this.x!==a&&(this.x=a,this.va())},h.iv=function(a){this.y!==a&&(this.y=a,this.va())},h.xq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.va()},h.bv=function(a,b){var c=a.ns(this);if(c){var d;c.Hk?(d=c.Hk(b,!0),c=c.Hk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.va()}},
h.Hu=function(a){0!==a&&(this.x+=Math.cos(this.i)*a,this.y+=Math.sin(this.i)*a,this.va())},h.Gu=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.va())},s.Fm=function(a){a.q(this.x)},s.Gm=function(a){a.q(this.y)},s.Ce=function(a){a.q(this.b.Ek(this))});b&&(l.uu=function(a,b){return Wb(this.width,a,b)},l.ru=function(a,b){return Wb(this.height,a,b)},h.gv=function(a){this.width!==a&&(this.width=a,this.va())},h.$u=function(a){this.height!==a&&(this.height=a,this.va())},h.cv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.va()},s.mv=function(a){a.q(this.width)},s.yu=function(a){a.q(this.height)},s.nu=function(a){this.la();a.q(this.ya.left)},s.pu=function(a){this.la();a.q(this.ya.top)},s.ou=function(a){this.la();a.q(this.ya.right)},s.mu=function(a){this.la();a.q(this.ya.bottom)});a&&(l.Fp=function(a,b){return Ia(this.i,V(b))<=V(a)},l.Op=function(a){return Ka(this.i,V(a))},l.Mp=function(a,b){var c=Fa(a),d=Fa(b),h=Da(this.i);return Ka(d,
c)?Ka(h,c)&&!Ka(h,d):!(!Ka(h,c)&&Ka(h,d))},h.Wu=function(a){a=V(Ca(a));isNaN(a)||this.i===a||(this.i=a,this.va())},h.Su=function(a){0===a||isNaN(a)||(this.i+=V(a),this.i=Da(this.i),this.va())},h.Tu=function(a){0===a||isNaN(a)||(this.i-=V(a),this.i=Da(this.i),this.va())},h.Uu=function(a,b){var c=Ja(this.i,V(b),V(a));isNaN(c)||this.i===c||(this.i=c,this.va())},h.Vu=function(a,b,c){a=Ja(this.i,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.i===a||(this.i=a,this.va())},h.dv=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.i===c||(this.i=c,this.va())},s.lu=function(a){a.q(Ea(this.i))});q||(l.su=function(a,b,c){return Wb(this.Ka[a],b,c)},l.Au=function(a){return this.Ka[a]},l.Pu=function(a,b){var c=this.ba(),d=c.pc();if(!d.length)return!1;var h=d[0],e=h,f=h.Ka[b],k,l,m;k=1;for(l=d.length;k<l;k++)if(h=d[k],m=h.Ka[b],0===a&&m<f||1===a&&m>f)f=m,e=h;c.oh(e);return!0},l.Nu=function(a){var b,c,d,h,e;if(this.b.ni().rf){e=this.ba();if(e.fa)for(e.fa=!1,e.c.length=0,e.P.length=0,d=this.c,b=0,c=d.length;b<
c;b++)h=d[b],h.uid===a?e.P.push(h):e.c.push(h);else{d=b=0;for(c=e.c.length;b<c;b++)h=e.c[b],e.c[d]=h,h.uid===a?e.P.push(h):d++;e.c.length=d}this.ld();return!!e.c.length}h=this.b.pi(a);if(!h)return!1;e=this.ba();if(!e.fa&&-1===e.c.indexOf(h))return!1;if(this.A)for(a=h.type.na,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.oh(h),this.ld(),!0}else if(h.type===this)return e.oh(h),this.ld(),!0;return!1},l.bq=function(){return!0},l.cq=function(){return!0},h.av=function(a,b){var c=this.Ka;P(c[a])?c[a]=
P(b)?b:parseFloat(b):R(c[a])&&(c[a]=R(b)?b:b.toString())},h.ku=function(a,b){var c=this.Ka;P(c[a])?c[a]=P(b)?c[a]+b:c[a]+parseFloat(b):R(c[a])&&(c[a]=R(b)?c[a]+b:c[a]+b.toString())},h.jv=function(a,b){var c=this.Ka;P(c[a])&&(c[a]=P(b)?c[a]-b:c[a]-parseFloat(b))},h.Xu=function(a,b){this.Ka[a]=b?1:0},h.kv=function(a){this.Ka[a]=1-this.Ka[a]},h.Kp=function(){this.b.Od(this)},h.Up||(h.Up=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Li(this,b,!0);this.jd&&this.jd();if(this.F)for(a=0,
b=this.F.length;a<b;++a)c=this.F[a],c.jd&&c.jd()}),s.xu=function(a){var b=a.Ve.c.length,c,d,h;c=0;for(d=this.b.Fc.length;c<d;c++)h=this.b.Fc[c],a.Ve.A?0<=h.type.na.indexOf(a.Ve)&&b++:h.type===a.Ve&&b++;a.ca(b)},s.Ru=function(a){a.ca(a.Ve.ba().pc().length)},s.lv=function(a){a.ca(this.uid)},s.zu=function(a){a.ca(this.yg())},s.Gp||(s.Gp=function(a){a.Yb(JSON.stringify(this.b.Sl(this,!0)))}));c&&(l.Sp=function(){return this.visible},h.zq=function(a){!a!==!this.visible&&(this.visible=a,this.b.ea=!0)},
l.tu=function(a,b){return Wb(eb(100*this.opacity),a,b)},h.wq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ea=!0)},s.Opacity=function(a){a.q(eb(100*this.opacity))});w&&(l.Bu=function(a){return a?this.d===a:!1},l.Qu=function(a){var b=this.ba(),c=b.pc();if(!c.length)return!1;var d=c[0],h=d,e,f;e=1;for(f=c.length;e<f;e++)if(d=c[e],0===a){if(d.d.index>h.d.index||d.d.index===h.d.index&&d.rc()>h.rc())h=d}else if(d.d.index<h.d.index||d.d.index===h.d.index&&d.rc()<h.rc())h=
d;b.oh(h);return!0},h.Ku=function(){var a=this.d,b=a.c;b.length&&b[b.length-1]===this||(a.Of(this,!1),a.ig(this,!1),this.b.ea=!0)},h.Iu=function(){var a=this.d,b=a.c;b.length&&b[0]===this||(a.Of(this,!1),a.Ct(this),this.b.ea=!0)},h.Ju=function(a){a&&a!=this.d&&(this.d.Of(this,!0),this.d=a,a.ig(this,!0),this.b.ea=!0)},h.ov=function(a,b){var c=0===a;if(b){var d=b.hs(this);d&&d.uid!==this.uid&&(this.d.index!==d.d.index&&(this.d.Of(this,!0),this.d=d.d,d.d.ig(this,!0)),this.d.dt(this,d,c),this.b.ea=!0)}},
s.Fu=function(a){a.ca(this.d.so)},s.Eu=function(a){a.Yb(this.d.name)},s.nv=function(a){a.ca(this.rc())});r&&(h.Yu=function(a,b){if(this.b.n){var c=this.type.Gk(b);if(!(0>c)){var d=1===a;this.Qd[c]!==d&&(this.Qd[c]=d,this.Md(),this.b.ea=!0)}}},h.Zu=function(a,b,c){if(this.b.n){var d=this.type.Gk(a);0>d||(a=this.type.G[d],d=this.ra[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.n.rs(a.eb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ta&&(this.b.ea=!0))))}})};Cb=function(){this.ak=this.Oh=!0;this.type.Ih=!0;this.b.ea=
!0;var f,d,q=this.Zj;f=0;for(d=q.length;f<d;++f)q[f](this);this.d.Rc&&this.la()};Db=function(f){f&&this.Zj.push(f)};Fb=function(){if(this.Oh){var f=this.ya,d=this.Mb;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.Ab*this.width,-this.Bb*this.height);this.i?(f.offset(-this.x,-this.y),d.bp(f,this.i),d.offset(this.x,this.y),d.Rm(f)):d.Tf(f);f.normalize();this.Oh=!1;this.gu()}};var f=new U(0,0,0,0);Gb=function(){if(this.d.Rc){var m=this.d.Vb,d=this.ya;f.set(m.$b(d.left),m.ac(d.top),
m.$b(d.right),m.ac(d.bottom));this.Fb.di(f)||(this.Fb.right<this.Fb.left?m.update(this,null,f):m.update(this,this.Fb,f),this.Fb.ng(f),this.d.Gd=!0)}};Hb=function(){if(this.ak&&this.we){this.la();var m=this.type.Th,d=this.ya;f.set(m.$b(d.left),m.ac(d.top),m.$b(d.right),m.ac(d.bottom));this.Wd.di(f)||(this.Wd.right<this.Wd.left?m.update(this,null,f):m.update(this,this.Wd,f),this.Wd.ng(f),this.ak=!1)}};Eb=function(f,d){return this.ya.$a(f,d)&&this.Mb.$a(f,d)?this.V&&!this.V.vf()?(this.V.hf(this.width,
this.height,this.i),this.V.$a(f-this.x,d-this.y)):!0:!1};yb=function(){this.type.Hj();return this.Je};Ib=function(){this.d.nm();return this.Tc};Jb=function(){this.U.length=0;var f,d;f=0;for(d=this.Qd.length;f<d;f++)this.Qd[f]&&this.U.push(this.type.G[f]);this.Bp=!!this.U.length};zb=function(){return"Inst"+this.Po};lb=function(f){if(f&&f.Ic&&f.type!=this){var d,q,k;d=0;for(q=f.siblings.length;d<q;d++)if(k=f.siblings[d],k.type==this)return k}f=this.ba().pc();return f.length?f[0]:null};mb=function(f){var d=
this.ba().pc();return d.length?d[f.yg()%d.length]:null};kb=function(){if(this.Wf&&!this.A){var f,d;f=0;for(d=this.c.length;f<d;f++)this.c[f].Je=f;var q=f,k=this.b.Fc;f=0;for(d=k.length;f<d;++f)k[f].type===this&&(k[f].Je=q++);this.Wf=!1}};wb=function(f){if(f<this.c.length)return this.c[f];f-=this.c.length;var d=this.b.Fc,q,k;q=0;for(k=d.length;q<k;++q)if(d[q].type===this){if(0===f)return d[q];--f}return null};nb=function(){return this.me[this.qd]};ob=function(){this.qd++;this.qd===this.me.length?this.me.push(new jb(this)):
this.me[this.qd].fa=!0};pb=function(){this.qd++;this.qd===this.me.length&&this.me.push(new jb(this));var f=this.me[this.qd],d=this.me[this.qd-1];d.fa?f.fa=!0:(f.fa=!1,xa(f.c,d.c),xa(f.P,d.P))};rb=function(){this.qd--};sb=function(f){var d,q,k,b,a,c=0;if(!this.A)for(d=0,q=this.na.length;d<q;d++)for(a=this.na[d],k=0,b=a.Fa.length;k<b;k++){if(f===a.Fa[k].name)return this.ta.lastBehIndex=c,a.Fa[k];c++}d=0;for(q=this.Fa.length;d<q;d++){if(f===this.Fa[d].name)return this.ta.lastBehIndex=c,this.Fa[d];c++}return null};
tb=function(f){return this.mi(f)?this.ta.lastBehIndex:-1};ub=function(f){var d,q;d=0;for(q=this.G.length;d<q;d++)if(this.G[d].name===f)return d;return-1};vb=function(){if(this.Ic&&!this.A){var f,d,q,k,b,a,c;this.Hj();a=this.ba();var w=a.fa,r=(f=this.b.mb())&&f.Ob&&f.Ob.Kc;f=0;for(d=this.Nb.length;f<d;f++)if(b=this.Nb[f],b!==this&&(b.Hj(),c=b.ba(),c.fa=w,!w)){c.c.length=a.c.length;q=0;for(k=a.c.length;q<k;q++)c.c[q]=b.qn(a.c[q].Je);if(r)for(c.P.length=a.P.length,q=0,k=a.P.length;q<k;q++)c.P[q]=b.qn(a.P[q].Je)}}};
xb=function(){return"Type"+this.O};Wb=function(f,d,q){if("undefined"===typeof f||"undefined"===typeof q)return!1;switch(d){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 ec={};function hc(f){this.b=f}
(function(){function f(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function m(a){a=a.toLowerCase();return S.hasOwnProperty(a)&&S[a].length?S[a][0].ec():z.destination}function d(){return z.createGain?z.createGain():z.createGainNode()}function q(a){return z.createDelay?z.createDelay(a):z.createDelayNode(a)}function k(a){a.start?a.start(0):a.noteOn(0)}function b(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function c(a,
b,c,e,g,h){this.type="filter";this.Lc=[a,b,c,e,g,h];this.R=d();this.D=d();this.D.gain.value=h;this.B=d();this.B.gain.value=1-h;this.Ga=z.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?a:oc[a];this.Ga.frequency.value=b;this.Ga.detune&&(this.Ga.detune.value=c);this.Ga.Q.value=e;this.Ga.gain.value=g;this.R.connect(this.Ga);this.R.connect(this.B);this.Ga.connect(this.D)}function w(a,b,c){this.type="delay";this.Lc=[a,b,c];this.R=d();this.D=d();this.D.gain.value=c;this.B=d();this.B.gain.value=
1-c;this.ah=d();this.nc=q(a);this.nc.delayTime.value=a;this.bi=d();this.bi.gain.value=b;this.R.connect(this.ah);this.R.connect(this.B);this.ah.connect(this.D);this.ah.connect(this.nc);this.nc.connect(this.bi);this.bi.connect(this.ah)}function r(a,b,c,e){this.type="convolve";this.Lc=[b,c,e];this.R=d();this.D=d();this.D.gain.value=c;this.B=d();this.B.gain.value=1-c;this.xe=z.createConvolver();a&&(this.xe.normalize=b,this.xe.buffer=a);this.R.connect(this.xe);this.R.connect(this.B);this.xe.connect(this.D)}
function l(a,b,c,e,g){this.type="flanger";this.Lc=[a,b,c,e,g];this.R=d();this.B=d();this.B.gain.value=1-g/2;this.D=d();this.D.gain.value=g/2;this.hi=d();this.hi.gain.value=e;this.nc=q(a+b);this.nc.delayTime.value=a;this.Xa=z.createOscillator();this.Xa.frequency.value=c;this.Ub=d();this.Ub.gain.value=b;this.R.connect(this.nc);this.R.connect(this.B);this.nc.connect(this.D);this.nc.connect(this.hi);this.hi.connect(this.nc);this.Xa.connect(this.Ub);this.Ub.connect(this.nc.delayTime);k(this.Xa)}function h(a,
b,c,e,g,h){this.type="phaser";this.Lc=[a,b,c,e,g,h];this.R=d();this.B=d();this.B.gain.value=1-h/2;this.D=d();this.D.gain.value=h/2;this.Ga=z.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?7:"allpass";this.Ga.frequency.value=a;this.Ga.detune&&(this.Ga.detune.value=b);this.Ga.Q.value=c;this.Xa=z.createOscillator();this.Xa.frequency.value=g;this.Ub=d();this.Ub.gain.value=e;this.R.connect(this.Ga);this.R.connect(this.B);this.Ga.connect(this.D);this.Xa.connect(this.Ub);this.Ub.connect(this.Ga.frequency);
k(this.Xa)}function s(a){this.type="gain";this.Lc=[a];this.T=d();this.T.gain.value=a}function g(a,b){this.type="tremolo";this.Lc=[a,b];this.T=d();this.T.gain.value=1-b/2;this.Xa=z.createOscillator();this.Xa.frequency.value=a;this.Ub=d();this.Ub.gain.value=b/2;this.Xa.connect(this.Ub);this.Ub.connect(this.T.gain);k(this.Xa)}function p(a,b){this.type="ringmod";this.Lc=[a,b];this.R=d();this.D=d();this.D.gain.value=b;this.B=d();this.B.gain.value=1-b;this.th=d();this.th.gain.value=0;this.Xa=z.createOscillator();
this.Xa.frequency.value=a;this.Xa.connect(this.th.gain);k(this.Xa);this.R.connect(this.th);this.R.connect(this.B);this.th.connect(this.D)}function v(a,b,c,e,g){this.type="distortion";this.Lc=[a,b,c,e,g];this.R=d();this.gj=d();this.fj=d();this.St(c,Math.pow(10,e/20));this.D=d();this.D.gain.value=g;this.B=d();this.B.gain.value=1-g;this.Kj=z.createWaveShaper();this.$h=new Float32Array(65536);this.cs(a,b);this.Kj.$h=this.$h;this.R.connect(this.gj);this.R.connect(this.B);this.gj.connect(this.Kj);this.Kj.connect(this.fj);
this.fj.connect(this.D)}function B(a,b,c,e,d){this.type="compressor";this.Lc=[a,b,c,e,d];this.T=z.createDynamicsCompressor();try{this.T.threshold.value=a,this.T.knee.value=b,this.T.ratio.value=c,this.T.attack.value=e,this.T.release.value=d}catch(g){}}function n(a,b){this.type="analyser";this.Lc=[a,b];this.T=z.createAnalyser();this.T.fftSize=a;this.T.smoothingTimeConstant=b;this.as=new Float32Array(this.T.frequencyBinCount);this.ep=new Uint8Array(a);this.nh=0}function e(){this.C=null;this.Ni=0;this.ne=
[];this.sl=this.Gi=this.Fi=0}function u(a,b){this.src=a;this.I=H;this.Jc=b;this.Mm=!1;var c=this;this.ql=this.Dl=null;this.Lf=[];this.oj=0;this.um=this.vk=this.jp=this.cj=!1;1===H&&b&&(this.I=0,this.Dl=d());this.te=this.W=null;var e;switch(this.I){case 0:this.W=new Audio;this.W.addEventListener("canplaythrough",function(){c.um=!0});1===H&&z.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.jp=!0,this.W.addEventListener("canplay",function(){c.ql||(c.ql=z.createMediaElementSource(c.W),
c.ql.connect(c.Dl))}));this.W.autoplay=!1;this.W.xv="auto";this.W.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){c.te=e.response;c.Xq()};e.onerror=function(){c.vk=!0};e.send();break;case 2:this.W=!0;break;case 3:this.W=!0}}function t(a,b){var c=this;this.tag=b;this.Zb=this.Yc=!0;this.src=a.src;this.buffer=a;this.I=H;this.Jc=a.Jc;this.playbackRate=1;this.gk=!0;this.vc=this.Hd=!1;this.Gb=0;this.Jg=this.xf=this.Zc=!1;this.volume=1;this.Ne=
1===G&&!this.Jc||2===G;this.Gf=1;this.startTime=this.Ne?A.hc.Z:A.hd.Z;this.Aa=this.Ja=null;this.$c=!1;this.za=null;this.Co=this.Bo=this.Ao=this.zo=this.Eo=this.Do=0;this.e=null;var e=!1;1!==this.I||0!==this.buffer.I||this.buffer.jp||(this.I=0);switch(this.I){case 0:this.Jc?(this.e=a.W,e=!a.Mm,a.Mm=!0):(this.e=new Audio,this.e.autoplay=!1,this.e.src=a.W.src,e=!0);e&&this.e.addEventListener("ended",function(){C=c.tag;c.Zb=!0;A.trigger(hc.prototype.j.Nj,L)});break;case 1:this.Ja=d();this.Ja.connect(m(b));
1===this.buffer.I?a.W&&(this.e=z.createBufferSource(),this.e.buffer=a.W,this.e.connect(this.Ja)):(this.e=this.buffer.W,this.buffer.Dl.connect(this.Ja));break;case 2:this.e=new window.Media(X+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.gk=!0,c.Zb=!0,C=c.tag,A.trigger(hc.prototype.j.Nj,L))});break;case 3:this.e=!0}}function y(a,b){S.hasOwnProperty(a)?S[a].push(b):S[a]=[b];var c,e,d,g,h=z.destination;if(S.hasOwnProperty(a)&&(d=S[a],d.length))for(h=d[0].ec(),c=0,e=d.length;c<e;c++)g=
d[c],c+1===e?g.kc(z.destination):g.kc(d[c+1].ec());Ga.length=0;if(a.length)for(c=0,e=N.length;c<e;c++)d=N[c],fb(a,d.tag)&&Ga.push(d);else Q&&!Q.Ie()&&(Ga.length=1,Ga[0]=Q);c=0;for(e=Ga.length;c<e;c++)Ga[c].Gt(h);ba&&qb===a&&(ba.disconnect(),ba.connect(h))}function F(){}function oa(){}var x=hc.prototype;x.gb=function(a){this.Ba=a;this.b=a.b};x.gb.prototype.ha=function(){};var A=null,L=null,C="",X="",H=0,z=null,ua=[],N=[],Q=null,E=!1,G=0,O=!1,D=1,J=0,I=0,ja=1,M=1,pa=10,ea=1E4,sa=1,ba=null,qb="",La=
!1,Ma=[],S={},oc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");c.prototype.kc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};c.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.D.disconnect();this.B.disconnect()};c.prototype.ec=function(){return this.R};w.prototype.kc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};w.prototype.remove=function(){this.R.disconnect();
this.ah.disconnect();this.nc.disconnect();this.bi.disconnect();this.D.disconnect();this.B.disconnect()};w.prototype.ec=function(){return this.R};r.prototype.kc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};r.prototype.remove=function(){this.R.disconnect();this.xe.disconnect();this.D.disconnect();this.B.disconnect()};r.prototype.ec=function(){return this.R};l.prototype.kc=function(a){this.B.disconnect();this.B.connect(a);this.D.disconnect();this.D.connect(a)};
l.prototype.remove=function(){this.R.disconnect();this.nc.disconnect();this.Xa.disconnect();this.Ub.disconnect();this.B.disconnect();this.D.disconnect();this.hi.disconnect()};l.prototype.ec=function(){return this.R};h.prototype.kc=function(a){this.B.disconnect();this.B.connect(a);this.D.disconnect();this.D.connect(a)};h.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.Xa.disconnect();this.Ub.disconnect();this.B.disconnect();this.D.disconnect()};h.prototype.ec=function(){return this.R};
s.prototype.kc=function(a){this.T.disconnect();this.T.connect(a)};s.prototype.remove=function(){this.T.disconnect()};s.prototype.ec=function(){return this.T};g.prototype.kc=function(a){this.T.disconnect();this.T.connect(a)};g.prototype.remove=function(){this.Xa.disconnect();this.Ub.disconnect();this.T.disconnect()};g.prototype.ec=function(){return this.T};p.prototype.kc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};p.prototype.remove=function(){this.Xa.disconnect();
this.th.disconnect();this.R.disconnect();this.D.disconnect();this.B.disconnect()};p.prototype.ec=function(){return this.R};v.prototype.St=function(a,b){.01>a&&(a=.01);this.gj.gain.value=a;this.fj.gain.value=Math.pow(1/a,.6)*b};v.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};v.prototype.cs=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.$h[32768+g]=d,this.$h[32768-
g-1]=-d};v.prototype.kc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};v.prototype.remove=function(){this.R.disconnect();this.gj.disconnect();this.Kj.disconnect();this.fj.disconnect();this.D.disconnect();this.B.disconnect()};v.prototype.ec=function(){return this.R};B.prototype.kc=function(a){this.T.disconnect();this.T.connect(a)};B.prototype.remove=function(){this.T.disconnect()};B.prototype.ec=function(){return this.T};n.prototype.Za=function(){this.T.getFloatFrequencyData(this.as);
this.T.getByteTimeDomainData(this.ep);for(var a=this.T.fftSize,b=0,c=this.nh=0,e=0;b<a;b++)e=(this.ep[b]-128)/128,0>e&&(e=-e),this.nh<e&&(this.nh=e),c+=e*e;this.nh=f(this.nh);f(Math.sqrt(c/a))};n.prototype.kc=function(a){this.T.disconnect();this.T.connect(a)};n.prototype.remove=function(){this.T.disconnect()};n.prototype.ec=function(){return this.T};e.prototype.uh=function(a){if(this.C=a)this.Fi=this.C.x,this.Gi=this.C.y;this.ne.length=0};e.prototype.vi=function(){return!!this.C};e.prototype.Za=function(a){this.C&&
0!==a&&(this.sl=Ha(this.Fi,this.Gi,this.C.x,this.C.y),a=Qa(this.Fi,this.Gi,this.C.x,this.C.y)/a,4>this.ne.length||this.ne.shift(),this.ne.push(a),this.Fi=this.C.x,this.Gi=this.C.y)};e.prototype.un=function(){if(!this.ne.length)return 0;var a,b,c=0;a=0;for(b=this.ne.length;a<b;a++)c+=this.ne[a];return c/this.ne.length};e.prototype.Kk=function(){return Math.cos(this.sl)*this.un()};e.prototype.Lk=function(){return Math.sin(this.sl)*this.un()};var lc=!1;u.prototype.Xq=function(){if(!this.W&&this.te){var a=
this;if(z.decodeAudioData)z.decodeAudioData(this.te,function(b){a.W=b;a.te=null;var c,e,d;if(ga(a.dj)||O)ga(a.Vh)||(c=a.Vh.xe,c.normalize=a.ro,c.buffer=b);else if(a.Lf.length){c=0;for(e=a.Lf.length;c<e;c++){b=a.Lf[c];d=new t(a,b.mp);d.Ul(!0);if("undefined"!==typeof b.uo&&(b.C=A.pi(b.uo),!b.C))continue;if(b.C){var g=Pa(b.C.x,b.C.y,-b.C.d.Ua(),J,I,!0),h=Pa(b.C.x,b.C.y,-b.C.d.Ua(),J,I,!1);d.Tl(g,h,Ba(b.C.i-b.C.d.Ua()),b.Rk,b.tl,b.xl);d.uh(b.C)}else d.Tl(b.x,b.y,b.Cq,b.Rk,b.tl,b.xl);d.play(a.nl,a.rm,
a.oj);a.cj&&d.pause();N.push(d)}a.Lf.length=0}else d=new t(a,a.dj),d.play(a.nl,a.rm,a.oj),a.cj&&d.pause(),N.push(d)},function(){a.vk=!0});else if(this.W=z.createBuffer(this.te,!1),this.te=null,ga(this.dj)||O)ga(this.Vh)||(b=this.Vh.xe,b.normalize=this.ro,b.buffer=this.W);else{var b=new t(this,this.dj);b.play(this.nl,this.rm,this.oj);this.cj&&b.pause();N.push(b)}}};u.prototype.En=function(){switch(this.I){case 0:var a=4<=this.W.readyState;a&&(this.um=!0);return a||this.um;case 1:return!!this.te||!!this.W;
case 2:return!0;case 3:return!0}return!1};u.prototype.Rs=function(){switch(this.I){case 0:return this.En();case 1:return!!this.W;case 2:return!0;case 3:return!0}return!1};u.prototype.Is=function(){switch(this.I){case 0:return!!this.W.error;case 1:return this.vk}return!1};t.prototype.Ie=function(){var a;switch(this.I){case 0:return this.e.ended;case 1:if(1===this.buffer.I){if(!this.Yc&&!this.Zb&&this.e.loop||this.vc)return!1;a=this.Ne?A.hc.Z:A.hd.Z;var b=this.playbackRate;0===b&&(b=1E-6);return a-
this.startTime>this.buffer.W.duration/b}return this.e.ended;case 2:return this.gk;case 3:!0}return!0};t.prototype.Qq=function(){return this.Yc||this.Zb?!0:this.Ie()};t.prototype.Ul=function(a){1===H&&(!this.$c&&a?this.Ja&&(this.Aa||(this.Aa=z.createPanner(),this.Aa.panningModel="number"===typeof this.Aa.panningModel?ja:["equalpower","HRTF","soundfield"][ja],this.Aa.distanceModel="number"===typeof this.Aa.distanceModel?M:["linear","inverse","exponential"][M],this.Aa.refDistance=pa,this.Aa.maxDistance=
ea,this.Aa.rolloffFactor=sa),this.Ja.disconnect(),this.Ja.connect(this.Aa),this.Aa.connect(m(this.tag)),this.$c=!0):this.$c&&!a&&this.Ja&&(this.Aa.disconnect(),this.Ja.disconnect(),this.Ja.connect(m(this.tag)),this.$c=!1))};t.prototype.Tl=function(a,b,c,e,d,g){this.$c&&1===H&&(this.Aa.setPosition(a,b,0),this.Aa.setOrientation(Math.cos(V(c)),Math.sin(V(c)),0),this.Aa.coneInnerAngle=e,this.Aa.coneOuterAngle=d,this.Aa.coneOuterGain=g,this.Do=a,this.Eo=b,this.zo=c,this.Ao=e,this.Bo=d,this.Co=g)};t.prototype.uh=
function(a){this.$c&&1===H&&(this.za||(this.za=new e),this.za.uh(a))};t.prototype.Za=function(a){if(this.$c&&1===H&&this.za&&this.za.vi()&&this.tf()){this.za.Za(a);a=this.za.C;var b=Pa(a.x,a.y,-a.d.Ua(),J,I,!0),c=Pa(a.x,a.y,-a.d.Ua(),J,I,!1);this.Aa.setPosition(b,c,0);b=0;"undefined"!==typeof this.za.C.i&&(b=a.i-a.d.Ua(),this.Aa.setOrientation(Math.cos(b),Math.sin(b),0));b=Pa(this.za.Kk(),this.za.Lk(),-a.d.Ua(),0,0,!0);c=Pa(this.za.Kk(),this.za.Lk(),-a.d.Ua(),0,0,!1);this.Aa.setVelocity(b,c,0)}};
t.prototype.play=function(a,c,e){var d=this.e;this.Zc=a;this.volume=c;e=e||0;switch(this.I){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==c*D&&(d.volume=c*D);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==e)try{d.currentTime=e}catch(g){}if(this.Jc&&La&&!A.ga)Ma.push(this);else try{this.e.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case 1:this.muted=!1;this.Gf=1;if(1===this.buffer.I)this.Ja.gain.value=
c*D,this.Yc||(this.e=z.createBufferSource(),this.e.buffer=this.buffer.W,this.e.connect(this.Ja)),this.e.loop=a,0===e?k(this.e):b(this.e,e,this.Ge());else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);d.volume=c*D;if(d.currentTime!==e)try{d.currentTime=e}catch(f){}this.Jc&&La&&!A.ga?Ma.push(this):d.play()}break;case 2:(!this.Yc&&this.Zb||0!==e)&&d.seekTo(e);d.play();this.gk=!1;break;case 3:A.bb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.Ne?A.hc.Z:A.hd.Z)-e;this.vc=this.Zb=this.Yc=!1};t.prototype.stop=function(){switch(this.I){case 0:this.e.paused||this.e.pause();break;case 1:1===this.buffer.I?a(this.e):this.e.paused||this.e.pause();break;case 2:this.e.stop();break;case 3:A.bb&&AppMobi.context.stopSound(this.src)}this.Zb=!0;this.vc=!1};t.prototype.pause=function(){if(!(this.Yc||this.Zb||this.Ie()||this.vc)){switch(this.I){case 0:this.e.paused||this.e.pause();break;case 1:1===this.buffer.I?(this.Gb=this.Ik(),
this.Zc&&(this.Gb%=this.Ge()),a(this.e)):this.e.paused||this.e.pause();break;case 2:this.e.pause();break;case 3:A.bb&&AppMobi.context.stopSound(this.src)}this.vc=!0}};t.prototype.Jt=function(){if(!(this.Yc||this.Zb||this.Ie())&&this.vc){switch(this.I){case 0:this.e.play();break;case 1:1===this.buffer.I?(this.e=z.createBufferSource(),this.e.buffer=this.buffer.W,this.e.connect(this.Ja),this.e.loop=this.Zc,this.Ja.gain.value=D*this.volume*this.Gf,this.startTime=(this.Ne?A.hc.Z:A.hd.Z)-this.Gb,b(this.e,
this.Gb,this.Ge())):this.e.play();break;case 2:this.e.play();break;case 3:A.bb&&AppMobi.context.resumeSound(this.src)}this.vc=!1}};t.prototype.seek=function(a){if(!(this.Yc||this.Zb||this.Ie()))switch(this.I){case 0:try{this.e.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.I)this.vc?this.Gb=a:(this.pause(),this.Gb=a,this.Jt());else try{this.e.currentTime=a}catch(c){}break;case 3:A.bb&&AppMobi.context.seekSound(this.src,a)}};t.prototype.Gt=function(a){1===this.I&&(this.$c?(this.Aa.disconnect(),
this.Aa.connect(a)):(this.Ja.disconnect(),this.Ja.connect(a)))};t.prototype.Ge=function(){switch(this.I){case 0:if("undefined"!==typeof this.e.duration)return this.e.duration;break;case 1:return this.buffer.W.duration;case 2:return this.e.getDuration();case 3:if(A.bb)return AppMobi.context.getDurationSound(this.src)}return 0};t.prototype.Ik=function(){var a=this.Ge(),b=0;switch(this.I){case 0:"undefined"!==typeof this.e.currentTime&&(b=this.e.currentTime);break;case 1:if(1===this.buffer.I){if(this.vc)return this.Gb;
b=(this.Ne?A.hc.Z:A.hd.Z)-this.startTime}else"undefined"!==typeof this.e.currentTime&&(b=this.e.currentTime);break;case 3:A.bb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Zc&&b>a&&(b=a);return b};t.prototype.tf=function(){return!this.vc&&!this.Yc&&!this.Zb&&!this.Ie()};t.prototype.eu=function(){var a=this.volume*D;switch(this.I){case 0:"undefined"!==typeof this.e.volume&&this.e.volume!==a&&(this.e.volume=a);break;case 1:1===this.buffer.I?this.Ja.gain.value=a*this.Gf:"undefined"!==typeof this.e.volume&&
this.e.volume!==a&&(this.e.volume=a)}};t.prototype.ci=function(a){switch(this.I){case 0:this.e.muted!==!!a&&(this.e.muted=!!a);break;case 1:1===this.buffer.I?(this.Gf=a?0:1,this.Ja.gain.value=D*this.volume*this.Gf):this.e.muted!==!!a&&(this.e.muted=!!a)}};t.prototype.Tt=function(){this.xf=!0;this.ci(this.xf||this.Jg)};t.prototype.Yo=function(a){this.Jg=!!a;this.ci(this.xf||this.Jg)};t.prototype.Ap=function(){var a=this.playbackRate;this.Ne&&(a*=A.Zf);switch(this.I){case 0:this.e.playbackRate!==a&&
(this.e.playbackRate=a);break;case 1:1===this.buffer.I?this.e.playbackRate.value!==a&&(this.e.playbackRate.value=a):this.e.playbackRate!==a&&(this.e.playbackRate=a)}};t.prototype.Vt=function(c){switch(this.I){case 0:c?this.tf()?(this.e.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&this.e.play();break;case 1:c?this.tf()?(1===this.buffer.I?(this.Gb=this.Ik(),this.Zc&&(this.Gb%=this.Ge()),a(this.e)):this.e.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&(1===this.buffer.I?(this.e=z.createBufferSource(),this.e.buffer=
this.buffer.W,this.e.connect(this.Ja),this.e.loop=this.Zc,this.Ja.gain.value=D*this.volume*this.Gf,this.startTime=(this.Ne?A.hc.Z:A.hd.Z)-this.Gb,b(this.e,this.Gb,this.Ge())):this.e.play());break;case 2:c?this.tf()?(this.e.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&this.e.play()}};x.Ea=function(a){this.type=a;A=this.b=a.b;L=this;this.ob=null;this.Rg=-600;!(this.b.Ei||this.b.yi&&(this.b.Fg||this.b.Ai))||this.b.Gg||this.b.da||this.b.Yk||(La=!0);z=null;"undefined"!==typeof AudioContext?(H=1,z=new AudioContext):
"undefined"!==typeof webkitAudioContext&&(H=1,z=new webkitAudioContext);(this.b.Ei&&1===H||La)&&document.addEventListener("touchstart",function(){var a,b,c;!lc&&z&&(a=z.createBuffer(1,1,22050),b=z.createBufferSource(),b.buffer=a,b.connect(z.destination),k(b),lc=!0);if(La){if(!O)for(a=0,b=Ma.length;a<b;++a)c=Ma[a],c.Zb||c.vc||c.e.play();Ma.length=0}},!0);1!==H&&(this.b.uc&&"undefined"!==typeof window.Media?H=2:this.b.sf&&(H=3));2===H&&(X=location.href,a=X.lastIndexOf("/"),-1<a&&(X=X.substr(0,a+1)),
X=X.replace("file://",""));if(this.b.Fn&&this.b.Ss&&"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.Od(this);else{if(this.b.bb)E=this.b.yi;else try{E=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){E=!1}this.b.em(this)}};var ka=x.Ea.prototype;ka.ha=function(){this.b.gf=this;G=this.Da[0];this.Id=this.Da[1];this.wt=0!==this.Da[2];ja=this.Da[3];M=this.Da[4];this.Rg=-this.Da[5];
pa=this.Da[6];ea=this.Da[7];sa=this.Da[8];this.ob=new e;var a=this.b.M||this.b.width,b=this.b.L||this.b.height;1===H&&("undefined"!==typeof z.listener.dopplerFactor&&(z.listener.dopplerFactor=0),z.listener.setPosition(a/2,b/2,this.Rg),z.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ba&&ba.disconnect();qb=b.toLowerCase();ba=z.createMediaStreamSource(a);ba.connect(m(qb))});this.b.Iq(function(a){L.pt(a)});var c=this;this.b.Gq(function(a){c.kt(a)})};ka.kt=function(a){var b,
c,e;b=0;for(c=N.length;b<c;b++)e=N[b],e.za&&e.za.C===a&&(e.za.C=null,e.$c&&e.tf()&&e.Zc&&e.stop());this.ob.C===a&&(this.ob.C=null)};ka.Wb=function(){var a={silent:O,masterVolume:D,listenerZ:this.Rg,listenerUid:this.ob.vi()?this.ob.C.uid:-1,playing:[],effects:{}},b=a.playing,c,e,d,g,h,f;c=0;for(e=N.length;c<e;c++)d=N[c],!d.tf()||3===this.Id||d.Jc&&1===this.Id||!d.Jc&&2===this.Id||(g=d.Ik(),d.Zc&&(g%=d.Ge()),g={tag:d.tag,buffersrc:d.buffer.src,is_music:d.Jc,playbackTime:g,volume:d.volume,looping:d.Zc,
muted:d.xf,playbackRate:d.playbackRate,paused:d.vc,resume_position:d.Gb},d.$c&&(g.pan={},f=g.pan,d.za&&d.za.vi()?f.objUid=d.za.C.uid:(f.x=d.Do,f.y=d.Eo,f.a=d.zo),f.ia=d.Ao,f.oa=d.Bo,f.og=d.Co),b.push(g));b=a.effects;for(h in S)if(S.hasOwnProperty(h)){d=[];c=0;for(e=S[h].length;c<e;c++)d.push({type:S[h][c].type,params:S[h][c].Lc});b[h]=d}return a};var Na=[];ka.wc=function(a){var b=a.silent;D=a.masterVolume;this.Rg=a.listenerZ;this.ob.uh(null);var d=a.listenerUid;-1!==d&&(this.ob.Ni=d,Na.push(this.ob));
var d=a.playing,f,k,t,m,q,u,F,A,C,x,z;if(3!==this.Id)for(f=0,k=N.length;f<k;f++)C=N[f],C.Jc&&1===this.Id||(C.Jc||2!==this.Id)&&C.stop();for(q in S)if(S.hasOwnProperty(q))for(f=0,k=S[q].length;f<k;f++)S[q][f].remove();Ta(S);for(q in a.effects)if(a.effects.hasOwnProperty(q))for(u=a.effects[q],f=0,k=u.length;f<k;f++)switch(t=u[f].type,x=u[f].params,t){case "filter":y(q,new c(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":y(q,new w(x[0],x[1],x[2]));break;case "convolve":t=x[2];C=this.li(t,!1);C.W?
t=new r(C.W,x[0],x[1],t):(t=new r(null,x[0],x[1],t),C.ro=x[0],C.Vh=t);y(q,t);break;case "flanger":y(q,new l(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":y(q,new h(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":y(q,new s(x[0]));break;case "tremolo":y(q,new g(x[0],x[1]));break;case "ringmod":y(q,new p(x[0],x[1]));break;case "distortion":y(q,new v(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":y(q,new B(x[0],x[1],x[2],x[3],x[4]));break;case "analyser":y(q,new n(x[0],x[1]))}f=0;for(k=d.length;f<
k;f++)3===this.Id||(a=d[f],t=a.buffersrc,m=a.is_music,q=a.tag,u=a.playbackTime,F=a.looping,A=a.volume,z=(x=a.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,m&&1===this.Id)||!m&&2===this.Id||((C=this.mn(t,q,m,F,A))?(C.Gb=a.resume_position,C.Ul(!!x),C.play(F,A,u),C.Ap(),C.eu(),C.ci(C.xf||C.Jg),a.paused&&C.pause(),a.muted&&C.Tt(),C.ci(C.xf||C.Jg),x&&(-1!==z?(C.za=C.za||new e,C.za.Ni=z,Na.push(C.za)):C.Tl(x.x,x.y,x.a,x.ia,x.oa,x.og))):(C=this.li(t,m),C.oj=u,C.cj=a.paused,x&&(-1!==z?C.Lf.push({uo:z,Rk:x.ia,
tl:x.oa,xl:x.og,mp:q}):C.Lf.push({x:x.x,y:x.y,Cq:x.a,Rk:x.ia,tl:x.oa,xl:x.og,mp:q}))));if(b&&!O){f=0;for(k=N.length;f<k;f++)N[f].Yo(!0);O=!0}else if(!b&&O){f=0;for(k=N.length;f<k;f++)N[f].Yo(!1);O=!1}};ka.jd=function(){var a,b,c,e;a=0;for(b=Na.length;a<b;a++)c=Na[a],e=this.b.pi(c.Ni),c.uh(e),c.Ni=-1,e&&(J=e.x,I=e.y);Na.length=0};ka.pt=function(a){if(!this.wt){!a&&z&&z.resume&&z.resume();var b,c;b=0;for(c=N.length;b<c;b++)N[b].Vt(a);a&&z&&z.suspend&&z.suspend()}};ka.Za=function(){var a=this.b.Ce,b,
c,e;b=0;for(c=N.length;b<c;b++)e=N[b],e.Za(a),0===e.I||3===e.I||e.Yc||e.Zb||!e.Ie()||(e.Zb=!0,C=e.tag,A.trigger(hc.prototype.j.Nj,L)),0!==G&&e.Ap();var d,g;for(d in S)if(S.hasOwnProperty(d))for(e=S[d],b=0,c=e.length;b<c;b++)g=e[b],g.Za&&g.Za();1===H&&this.ob.vi()&&(this.ob.Za(a),J=this.ob.C.x,I=this.ob.C.y,z.listener.setPosition(this.ob.C.x,this.ob.C.y,this.Rg),z.listener.setVelocity(this.ob.Kk(),this.ob.Lk(),0))};var Oa=[];ka.Ut=function(a){var b,c,e,d,g,f=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))&&E||!g&&!E)Oa.push({filename:d,size:e,C:null}),f+=e;return f};ka.Yt=function(){var a,b,c,e;a=0;for(b=Oa.length;a<b;++a)c=Oa[a],e=this.b.wk+c.filename,c.C=this.li(e,!1)};ka.os=function(){var a=0,b,c,e;b=0;for(c=Oa.length;b<c;++b)e=Oa[b],e.C.Rs()||e.C.Is()||this.b.da||this.b.Ai?a+=e.size:e.C.En()&&(a+=Math.floor(e.size/2));return a};ka.li=function(a,b){var c,e,d,g=null;c=0;for(e=ua.length;c<e;c++)if(d=ua[c],d.src===a){g=d;break}g||(g=new u(a,
b),ua.push(g));return g};ka.mn=function(a,b,c,e,d){var g,f,h;g=0;for(f=N.length;g<f;g++)if(h=N[g],h.src===a&&(h.Qq()||c))return h.tag=b,h;a=this.li(a,c);if(!a.W)return"<preload>"!==b&&(a.dj=b,a.nl=e,a.rm=d),null;h=new t(a,b);N.push(h);return h};var Ga=[];F.prototype.Nj=function(a){return fb(C,a)};x.j=new F;oa.prototype.Play=function(a,b,c,e){!O&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),Q=this.mn(this.b.wk+a[0]+(E?".ogg":".m4a"),e,a[1],0!==b,c))&&(Q.Ul(!1),Q.play(0!==b,c))};x.pa=new oa;x.Qb=new function(){}})();
function ic(f){this.b=f}
(function(){function f(){}var m=ic.prototype;m.gb=function(d){this.Ba=d;this.b=d.b};m.gb.prototype.ha=function(){};m.Ea=function(d){this.type=d;this.b=d.b;this.el=Array(256);this.Ij=Array(256);this.pe=0};var d=m.Ea.prototype;d.ha=function(){var d=this;this.b.da||(jQuery(document).keydown(function(b){d.lt(b)}),jQuery(document).keyup(function(b){d.mt(b)}))};var q=[32,33,34,35,36,37,38,39,40,44];d.lt=function(d){var b=!1;window!=window.top&&-1<q.indexOf(d.which)&&(d.preventDefault(),b=!0,d.stopPropagation());
if(this.el[d.which])this.Ij[d.which]&&!b&&d.preventDefault();else{this.el[d.which]=!0;this.pe=d.which;this.b.ga=!0;this.b.trigger(ic.prototype.j.Zp,this);var a=this.b.trigger(ic.prototype.j.jq,this),c=this.b.trigger(ic.prototype.j.kq,this);this.b.ga=!1;if(a||c)this.Ij[d.which]=!0,b||d.preventDefault()}};d.mt=function(d){this.el[d.which]=!1;this.pe=d.which;this.b.ga=!0;this.b.trigger(ic.prototype.j.$p,this);var b=this.b.trigger(ic.prototype.j.mq,this),a=this.b.trigger(ic.prototype.j.lq,this);this.b.ga=
!1;if(b||a||this.Ij[d.which])this.Ij[d.which]=!0,d.preventDefault()};d.Wb=function(){return{triggerKey:this.pe}};d.wc=function(d){this.pe=d.triggerKey};f.prototype.jq=function(d){return d===this.pe};f.prototype.Zp=function(){return!0};f.prototype.$p=function(){return!0};f.prototype.mq=function(d){return d===this.pe};f.prototype.kq=function(d){return d===this.pe};f.prototype.lq=function(d){return d===this.pe};m.j=new f;m.pa=new function(){};m.Qb=new function(){}})();function jc(f){this.b=f}
(function(){function f(){}function m(){}var d=jc.prototype;d.gb=function(b){this.Ba=b;this.b=b.b};d.gb.prototype.ha=function(){};d.Ea=function(b){this.type=b;this.b=b.b;this.Ph=Array(4);this.pp=this.Dj=this.$f=this.Bd=this.Ad=0;this.Ok=!1};var q=d.Ea.prototype;q.ha=function(){var b=this;if(!this.b.da){jQuery(document).mousemove(function(a){b.gh(a)});jQuery(document).mousedown(function(a){b.fh(a)});jQuery(document).mouseup(function(a){b.hh(a)});jQuery(document).dblclick(function(a){b.it(a)});var a=
function(a){b.tt(a)};document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var k={left:0,top:0};q.gh=function(b){var a=this.b.da?k:jQuery(this.b.canvas).offset();this.Ad=b.pageX-a.left;this.Bd=b.pageY-a.top};q.no=function(){return 0<this.b.lb?!0:0<=this.Ad&&0<=this.Bd&&this.Ad<this.b.width&&this.Bd<this.b.height};q.fh=function(b){this.no()&&(this.b.qf&&!this.b.yd&&b.preventDefault(),this.Ph[b.which]=!0,this.b.ga=!0,this.b.trigger(jc.prototype.j.wm,this),this.$f=
b.which-1,this.Dj=0,this.b.trigger(jc.prototype.j.xm,this),this.b.trigger(jc.prototype.j.Pj,this),this.b.ga=!1)};q.hh=function(b){this.Ph[b.which]&&(this.b.qf&&!this.b.yd&&b.preventDefault(),this.b.qf=!0,this.Ph[b.which]=!1,this.b.ga=!0,this.$f=b.which-1,this.b.trigger(jc.prototype.j.pq,this),this.b.ga=!1)};q.it=function(b){this.no()&&(b.preventDefault(),this.b.ga=!0,this.$f=b.which-1,this.Dj=1,this.b.trigger(jc.prototype.j.xm,this),this.b.trigger(jc.prototype.j.Pj,this),this.b.ga=!1)};q.tt=function(b){this.pp=
0>(b.wheelDelta?b.wheelDelta:b.detail?-b.detail:0)?0:1;this.Ok=!1;this.b.ga=!0;this.b.trigger(jc.prototype.j.sq,this);this.b.ga=!1;this.Ok&&gb(b)&&b.preventDefault()};f.prototype.xm=function(b,a){return b===this.$f&&a===this.Dj};f.prototype.wm=function(){return!0};f.prototype.Np=function(b){return this.Ph[b+1]};f.prototype.pq=function(b){return b===this.$f};f.prototype.Pp=function(b){var a=this.b.ni();return Ra(this.b.Xf(b,this.Ad,this.Bd,a.rf),a.rf)};f.prototype.Pj=function(b,a,c){return b!==this.$f||
a!==this.Dj?!1:this.b.Xf(c,this.Ad,this.Bd,!1)};f.prototype.sq=function(b){this.Ok=!0;return b===this.pp};d.j=new f;d.pa=new function(){};m.prototype.Fm=function(b,a){var c,d,f,k,h;ga(a)?(c=this.b.ud(0),d=c.scale,f=c.kb,k=c.Db,h=c.i,c.scale=1,c.kb=1,c.Db=1,c.i=0,b.q(c.ma(this.Ad,this.Bd,!0)),c.scale=d,c.kb=f,c.Db=k,c.i=h):(c=P(a)?this.b.ud(a):this.b.vg(a))?b.q(c.ma(this.Ad,this.Bd,!0)):b.q(0)};m.prototype.Gm=function(b,a){var c,d,f,k,h;ga(a)?(c=this.b.ud(0),d=c.scale,f=c.kb,k=c.Eb,h=c.i,c.scale=1,
c.kb=1,c.Eb=1,c.i=0,b.q(c.ma(this.Ad,this.Bd,!1)),c.scale=d,c.kb=f,c.Eb=k,c.i=h):(c=P(a)?this.b.ud(a):this.b.vg(a))?b.q(c.ma(this.Ad,this.Bd,!1)):b.q(0)};d.Qb=new m})();function kc(f){this.b=f}
(function(){function f(d){this.ja=d;this.Ta=!1;this.i=this.speed=this.y=this.x=0;this.opacity=1;this.Rd=this.pf=this.size=this.si=0}var m=kc.prototype;m.gb=function(d){this.Ba=d;this.b=d.b};var d=m.gb.prototype;d.ha=function(){this.A||(this.H=new Image,this.H.ik=this.Aj,this.N=null,this.b.tm(this.H,this.zj))};d.Vi=function(){this.A||(this.N=null)};d.Wi=function(){this.A||!this.c.length||this.N||(this.N=this.b.n.Cf(this.H,!0,this.b.S,this.Ch))};d.Tg=function(){this.A||this.N||!this.b.n||(this.N=this.b.n.Cf(this.H,
!0,this.b.S,this.Ch))};d.Gj=function(){this.A||this.c.length||!this.N||(this.b.n.deleteTexture(this.N),this.N=null)};d.hj=function(d){d.drawImage(this.H,0,0)};f.prototype.init=function(){var d=this.ja;this.x=d.x-d.Lj/2+Math.random()*d.Lj;this.y=d.y-d.Mj/2+Math.random()*d.Mj;this.speed=d.Vk-d.tj/2+Math.random()*d.tj;this.i=d.i-d.uj/2+Math.random()*d.uj;this.opacity=d.Tk;this.size=d.Uk-d.rj/2+Math.random()*d.rj;this.si=d.Nk-d.ti/2+Math.random()*d.ti;this.Rd=this.pf=0};f.prototype.Za=function(d){var b=
this.ja;this.x+=Math.cos(this.i)*this.speed*d;this.y+=Math.sin(this.i)*this.speed*d;this.y+=this.pf*d;this.speed+=b.Sj*d;this.size+=this.si*d;this.pf+=b.Ck*d;this.Rd+=d;1>this.size?this.Ta=!1:(0!==b.Og&&(this.i+=Math.random()*b.Og*d-b.Og*d/2),0!==b.Qg&&(this.speed+=Math.random()*b.Qg*d-b.Qg*d/2),0!==b.Pg&&(this.opacity+=Math.random()*b.Pg*d-b.Pg*d/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=b.kf&&this.Rd>=b.timeout&&(this.Ta=!1),2===b.kf&&0>=this.speed&&(this.Ta=!1))};f.prototype.Gc=
function(d){var b=this.ja.opacity*this.opacity;if(0!==b){0===this.ja.kf&&(b*=1-this.Rd/this.ja.timeout);d.globalAlpha=b;var b=this.x-this.size/2,a=this.y-this.size/2;this.ja.b.bd&&(b=b+.5|0,a=a+.5|0);d.drawImage(this.ja.type.H,b,a,this.size,this.size)}};f.prototype.Pb=function(d){var b=this.ja.opacity*this.opacity;0===this.ja.kf&&(b*=1-this.Rd/this.ja.timeout);var a=this.size,c=a*this.ja.Ho,f=this.x-a/2,m=this.y-a/2;this.ja.b.bd&&(f=f+.5|0,m=m+.5|0);1>c||0===b||(c<d.ct||c>d.pl?(d.Ye(b),d.rh(f,m,f+
a,m,f+a,m+a,f,m+a)):d.xt(this.x,this.y,c,b))};f.prototype.left=function(){return this.x-this.size/2};f.prototype.right=function(){return this.x+this.size/2};f.prototype.top=function(){return this.y-this.size/2};f.prototype.bottom=function(){return this.y+this.size/2};m.Ea=function(d){this.type=d;this.b=d.b};var d=m.Ea.prototype,q=[];d.ha=function(){var d=this.Da;this.kj=d[0];this.uj=V(d[1]);this.Uf=d[2];this.Xl=!0;this.Vk=d[3];this.Uk=d[4];this.Tk=d[5]/100;this.Nk=d[6];this.Lj=d[7];this.Mj=d[8];this.tj=
d[9];this.rj=d[10];this.ti=d[11];this.Sj=d[12];this.Ck=d[13];this.Og=d[14];this.Qg=d[15];this.Pg=d[16];this.kf=d[17];this.timeout=d[18];this.We=0;this.Ho=1;this.$i=this.x;this.bj=this.y;this.aj=this.x;this.Zi=this.y;this.Jq(function(b){b.ya.set(b.$i,b.bj,b.aj,b.Zi);b.Mb.Tf(b.ya);b.Oh=!1;b.om()});this.Nc||(this.qb=[]);this.b.em(this);this.type.Tg();if(1===this.Uf)for(d=0;d<this.kj;d++)this.Uj().opacity=0;this.ji=!0};d.Wb=function(){var d={r:this.kj,sc:this.uj,st:this.Uf,s:this.Xl,isp:this.Vk,isz:this.Uk,
io:this.Tk,gr:this.Nk,xr:this.Lj,yr:this.Mj,spr:this.tj,szr:this.rj,grnd:this.ti,acc:this.Sj,g:this.Ck,lar:this.Og,lsr:this.Qg,lor:this.Pg,dm:this.kf,to:this.timeout,pcc:this.We,ft:this.ji,p:[]},b,a,c,f=d.p;b=0;for(a=this.qb.length;b<a;b++)c=this.qb[b],f.push([c.x,c.y,c.speed,c.i,c.opacity,c.si,c.size,c.pf,c.Rd]);return d};d.wc=function(d){this.kj=d.r;this.uj=d.sc;this.Uf=d.st;this.Xl=d.s;this.Vk=d.isp;this.Uk=d.isz;this.Tk=d.io;this.Nk=d.gr;this.Lj=d.xr;this.Mj=d.yr;this.tj=d.spr;this.rj=d.szr;this.ti=
d.grnd;this.Sj=d.acc;this.Ck=d.g;this.Og=d.lar;this.Qg=d.lsr;this.Pg=d.lor;this.kf=d.dm;this.timeout=d.to;this.We=d.pcc;this.ji=d.ft;q.push.apply(q,this.qb);this.qb.length=0;var b,a,c,f=d.p;d=0;for(b=f.length;d<b;d++)a=this.Uj(),c=f[d],a.x=c[0],a.y=c[1],a.speed=c[2],a.i=c[3],a.opacity=c[4],a.si=c[5],a.size=c[6],a.pf=c[7],a.Rd=c[8]};d.eh=function(){q.push.apply(q,this.qb);this.qb.length=0};d.Uj=function(){var d;q.length?(d=q.pop(),d.ja=this):d=new f(this);this.qb.push(d);d.Ta=!0;return d};d.Za=function(){var d=
this.b.Ek(this),b,a,c,f;if(0===this.Uf&&this.Xl)for(this.We+=d*this.kj,a=T(this.We),this.We-=a,b=0;b<a;b++)c=this.Uj(),c.init();this.$i=this.x;this.bj=this.y;this.aj=this.x;this.Zi=this.y;f=b=0;for(a=this.qb.length;b<a;b++)c=this.qb[b],this.qb[f]=c,this.b.ea=!0,1===this.Uf&&this.ji&&c.init(),c.Za(d),c.Ta?(c.left()<this.$i&&(this.$i=c.left()),c.right()>this.aj&&(this.aj=c.right()),c.top()<this.bj&&(this.bj=c.top()),c.bottom()>this.Zi&&(this.Zi=c.bottom()),f++):q.push(c);this.qb.length=f;this.va();
this.ji=!1;1===this.Uf&&0===this.qb.length&&this.b.Od(this)};d.Gc=function(d){var b,a,c,f=this.d;b=0;for(a=this.qb.length;b<a;b++)c=this.qb[b],c.right()>=f.wa&&c.bottom()>=f.xa&&c.left()<=f.Ia&&c.top()<=f.Ha&&c.Gc(d)};d.Pb=function(d){this.Ho=this.d.qc();d.Xb(this.type.N);var b,a,c,f=this.d;b=0;for(a=this.qb.length;b<a;b++)c=this.qb[b],c.right()>=f.wa&&c.bottom()>=f.xa&&c.left()<=f.Ia&&c.top()<=f.Ha&&c.Pb(d)};m.j=new function(){};m.pa=new function(){};m.Qb=new function(){}})();
function gc(f){this.b=f}
(function(){function f(){if(0===this.lk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Vf?b.drawImage(this.H,this.If,this.Jf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.H,0,0,this.width,this.height);this.lk=a.toDataURL("image/png")}return this.lk}function m(){}var d=gc.prototype;d.gb=function(a){this.Ba=a;this.b=a.b};var q=d.gb.prototype;q.ha=function(){if(!this.A){var a,b,c,d,l,k,m,e,r;this.Dc=[];this.Bg=
!1;a=0;for(b=this.Lb.length;a<b;a++){l=this.Lb[a];m={};m.name=l[0];m.speed=l[1];m.loop=l[2];m.Nl=l[3];m.lj=l[4];m.Io=l[5];m.O=l[6];m.frames=[];c=0;for(d=l[7].length;c<d;c++)k=l[7][c],e={},e.zj=k[0],e.Aj=k[1],e.If=k[2],e.Jf=k[3],e.width=k[4],e.height=k[5],e.duration=k[6],e.Ab=k[7],e.Bb=k[8],e.Sk=k[9],e.ej=k[10],e.Jo=k[11],e.Vf=0!==e.width,e.lk="",e.tv=f,r={left:0,top:0,right:1,bottom:1},e.Vl=r,e.N=null,(r=this.b.Zr(k[0]))?e.H=r:(e.H=new Image,e.H.Uq=k[0],e.H.ik=k[1],e.H.Pq=null,this.b.tm(e.H,k[0])),
m.frames.push(e),this.Dc.push(e);this.Lb[a]=m}}};q.zp=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.Yh=c.lc.N};q.Vi=function(){if(!this.A){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],c.H.Pq=null,c.N=null;this.Bg=!1;this.zp()}};q.Wi=function(){if(!this.A&&this.c.length){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],c.N=this.b.n.Cf(c.H,!1,this.b.S,c.Jo);this.zp()}};q.Tg=function(){if(!this.A&&!this.Bg&&this.b.n){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=
this.Dc[a],c.N=this.b.n.Cf(c.H,!1,this.b.S,c.Jo);this.Bg=!0}};q.Gj=function(){if(!this.A&&!this.c.length&&this.Bg){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],this.b.n.deleteTexture(c.N),c.N=null;this.Bg=!1}};var k=[];q.hj=function(a){var b,c,d;b=k.length=0;for(c=this.Dc.length;b<c;++b)d=this.Dc[b].H,-1===k.indexOf(d)&&(a.drawImage(d,0,0),k.push(d))};d.Ea=function(a){this.type=a;this.b=a.b;a=this.type.Lb[0].frames[0].ej;this.Nc?this.V.wh(a):this.V=new $a(a)};var b=d.Ea.prototype;b.ha=
function(){this.visible=0===this.Da[0];this.we=0!==this.Da[3];1===this.type.Lb.length&&1===this.type.Lb[0].frames.length||0===this.type.Lb[0].speed||this.b.em(this);this.qa=this.ln(this.Da[1])||this.type.Lb[0];this.u=this.Da[2];0>this.u&&(this.u=0);this.u>=this.qa.frames.length&&(this.u=this.qa.frames.length-1);var a=this.qa.frames[this.u];this.V.wh(a.ej);this.Ab=a.Ab;this.Bb=a.Bb;this.qg=this.qa.speed;this.Nc?this.Uc.reset():this.Uc=new Ya;this.td=this.Uc.Z;this.se=!0;this.kd=0;this.re=!0;this.ek=
this.Nm="";this.Rq=0;this.dk=-1;this.type.Tg();var b,c,d,f,k,l,e,a=0;for(b=this.type.Lb.length;a<b;a++)for(f=this.type.Lb[a],c=0,d=f.frames.length;c<d;c++)k=f.frames[c],0===k.width&&(k.width=k.H.width,k.height=k.H.height),k.Vf&&(e=k.H,l=k.Vl,l.left=k.If/e.width,l.top=k.Jf/e.height,l.right=(k.If+k.width)/e.width,l.bottom=(k.Jf+k.height)/e.height,0===k.If&&0===k.Jf&&k.width===e.width&&k.height===e.height&&(k.Vf=!1));this.lc=this.qa.frames[this.u];this.Yh=this.lc.N};b.Wb=function(){var a={a:this.qa.O,
f:this.u,cas:this.qg,fs:this.td,ar:this.kd,at:this.Uc.Z};this.se||(a.ap=this.se);this.re||(a.af=this.re);return a};b.wc=function(a){var b=this.ds(a.a);b&&(this.qa=b);this.u=a.f;0>this.u&&(this.u=0);this.u>=this.qa.frames.length&&(this.u=this.qa.frames.length-1);this.qg=a.cas;this.td=a.fs;this.kd=a.ar;this.Uc.reset();this.Uc.Z=a.at;this.se=a.hasOwnProperty("ap")?a.ap:!0;this.re=a.hasOwnProperty("af")?a.af:!0;this.lc=this.qa.frames[this.u];this.Yh=this.lc.N;this.V.wh(this.lc.ej);this.Ab=this.lc.Ab;
this.Bb=this.lc.Bb};b.Xj=function(a){this.u=a?0:this.qa.frames.length-1;this.se=!1;this.Nm=this.qa.name;this.b.trigger(gc.prototype.j.Yp,this);this.b.trigger(gc.prototype.j.Xp,this);this.kd=0};b.vv=function(){return this.Uc.Z};b.Za=function(){this.Uc.add(this.b.Ek(this));this.ek.length&&this.Zq();0<=this.dk&&this.$q();var a=this.Uc.Z,b=this.qa,c=b.frames[this.u],d=c.duration/this.qg;this.se&&a>=this.td+d&&(this.re?this.u++:this.u--,this.td+=d,this.u>=b.frames.length&&(b.Io?(this.re=!1,this.u=b.frames.length-
2):b.loop?this.u=b.lj:(this.kd++,this.kd>=b.Nl?this.Xj(!1):this.u=b.lj)),0>this.u&&(b.Io?(this.u=1,this.re=!0,b.loop||(this.kd++,this.kd>=b.Nl&&this.Xj(!0))):b.loop?this.u=b.lj:(this.kd++,this.kd>=b.Nl?this.Xj(!0):this.u=b.lj)),0>this.u?this.u=0:this.u>=b.frames.length&&(this.u=b.frames.length-1),a>this.td+b.frames[this.u].duration/this.qg&&(this.td=a),a=b.frames[this.u],this.ef(c,a),this.b.ea=!0)};b.ln=function(a){var b,c,d;b=0;for(c=this.type.Lb.length;b<c;b++)if(d=this.type.Lb[b],fb(d.name,a))return d;
return null};b.ds=function(a){var b,c,d;b=0;for(c=this.type.Lb.length;b<c;b++)if(d=this.type.Lb[b],d.O===a)return d;return null};b.Zq=function(){var a=this.qa.frames[this.u],b=this.ln(this.ek);this.ek="";!b||fb(b.name,this.qa.name)&&this.se||(this.qa=b,this.qg=b.speed,0>this.u&&(this.u=0),this.u>=this.qa.frames.length&&(this.u=this.qa.frames.length-1),1===this.Rq&&(this.u=0),this.se=!0,this.td=this.Uc.Z,this.re=!0,this.ef(a,this.qa.frames[this.u]),this.b.ea=!0)};b.$q=function(){var a=this.qa.frames[this.u],
b=this.u;this.u=T(this.dk);0>this.u&&(this.u=0);this.u>=this.qa.frames.length&&(this.u=this.qa.frames.length-1);b!==this.u&&(this.ef(a,this.qa.frames[this.u]),this.td=this.Uc.Z,this.b.ea=!0);this.dk=-1};b.ef=function(a,b){var c=a.width,d=a.height,f=b.width,k=b.height;c!=f&&(this.width*=f/c);d!=k&&(this.height*=k/d);this.Ab=b.Ab;this.Bb=b.Bb;this.V.wh(b.ej);this.va();this.lc=b;this.Yh=b.N;c=0;for(d=this.F.length;c<d;c++)f=this.F[c],f.ot&&f.ot(a,b);this.b.trigger(gc.prototype.j.ef,this)};b.Gc=function(a){a.globalAlpha=
this.opacity;var b=this.lc,c=b.Vf,d=b.H,f=this.x,k=this.y,l=this.width,e=this.height;if(0===this.i&&0<=l&&0<=e)f-=this.Ab*l,k-=this.Bb*e,this.b.bd&&(f=Math.round(f),k=Math.round(k)),c?a.drawImage(d,b.If,b.Jf,b.width,b.height,f,k,l,e):a.drawImage(d,f,k,l,e);else{this.b.bd&&(f=Math.round(f),k=Math.round(k));a.save();var m=0<l?1:-1,t=0<e?1:-1;a.translate(f,k);1===m&&1===t||a.scale(m,t);a.rotate(this.i*m*t);f=0-this.Ab*la(l);k=0-this.Bb*la(e);c?a.drawImage(d,b.If,b.Jf,b.width,b.height,f,k,la(l),la(e)):
a.drawImage(d,f,k,la(l),la(e));a.restore()}};b.Pb=function(a){a.Xb(this.Yh);a.Ye(this.opacity);var b=this.lc,c=this.Mb;if(this.b.bd){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Vf?a.Fd(c.Ra+d,c.Sa+f,c.Hb+d,c.Ib+f,c.wb+d,c.xb+f,c.tb+d,c.ub+f,b.Vl):a.rh(c.Ra+d,c.Sa+f,c.Hb+d,c.Ib+f,c.wb+d,c.xb+f,c.tb+d,c.ub+f)}else b.Vf?a.Fd(c.Ra,c.Sa,c.Hb,c.Ib,c.wb,c.xb,c.tb,c.ub,b.Vl):a.rh(c.Ra,c.Sa,c.Hb,c.Ib,c.wb,c.xb,c.tb,c.ub)};b.ks=function(a){var b=this.lc,c,d;c=0;for(d=b.Sk.length;c<d;c++)if(fb(a,
b.Sk[c][0]))return c;return-1};b.Hk=function(a,b){var c=this.lc,d=c.Sk,f;f=R(a)?this.ks(a):a-1;f=T(f);if(0>f||f>=d.length)return b?this.x:this.y;var k=(d[f][1]-c.Ab)*this.width,d=d[f][2],d=(d-c.Bb)*this.height,c=Math.cos(this.i);f=Math.sin(this.i);var l=k*c-d*f,d=d*c+k*f,k=l+this.x,d=d+this.y;return b?k:d};var a=null,c=new ca,w=!1,r=[],l=new U(0,0,0,0);q.finish=function(b){if(w){if(b){var d=this.b.mb().Ob.Kc;b=a.ba();var f=c.Sc(),k,l;if(b.fa){b.fa=!1;b.c.length=f.length;k=0;for(l=f.length;k<l;k++)b.c[k]=
f[k];if(d)for(k=b.P.length=0,l=a.c.length;k<l;k++)f=a.c[k],c.contains(f)||b.P.push(f)}else if(d)for(d=b.c.length,b.c.length=d+f.length,k=0,l=f.length;k<l;k++)b.c[d+k]=f[k],Aa(b.P,f[k]);else xa(b.c,f);a.ld()}c.clear();w=!1}};m.prototype.Qp=function(b){if(b){var d=!1,f,k,m,q=this.b.ni(),n=q.type,q=q.rf;f=b.ba();k=this.b.mb().Ob.Kc;var e;f.fa?(this.la(),l.ng(this.ya),l.offset(0,0),this.b.gs(this.d,b,l,r),e=r):e=k?f.P:f.c;a=b;w=n!==b&&!q;f=0;for(k=e.length;f<k;f++)if(m=e[f],this.b.$t(this,m)){d=!0;if(q)break;
n!==b&&c.add(m)}r.length=0;b=d}else b=!1;return b};m.prototype.Xp=function(a){return fb(this.Nm,a)};m.prototype.Yp=function(){return!0};m.prototype.ef=function(){return!0};d.j=new m;d.pa=new function(){};d.Qb=new function(){}})();function mc(f){this.b=f}
(function(){var f=mc.prototype;f.gb=function(d){this.Ba=d;this.b=d.b};var m=f.gb.prototype;m.ha=function(){this.A||(this.H=new Image,this.H.ik=this.Aj,this.b.tm(this.H,this.zj),this.N=this.pattern=null)};m.Vi=function(){this.A||(this.N=null)};m.Wi=function(){if(!this.A&&this.c.length){this.N||(this.N=this.b.n.Cf(this.H,!0,this.b.S,this.Ch));var d,f;d=0;for(f=this.c.length;d<f;d++)this.c[d].N=this.N}};m.Tg=function(){this.A||this.N||!this.b.n||(this.N=this.b.n.Cf(this.H,!0,this.b.S,this.Ch))};m.Gj=
function(){this.A||this.c.length||!this.N||(this.b.n.deleteTexture(this.N),this.N=null)};m.hj=function(d){d.drawImage(this.H,0,0)};f.Ea=function(d){this.type=d;this.b=d.b};m=f.Ea.prototype;m.ha=function(){this.visible=0===this.Da[0];this.sh=new U(0,0,0,0);this.xn=!1;this.H=this.type.H;this.b.n?(this.type.Tg(),this.N=this.type.N):(this.type.pattern||(this.type.pattern=this.b.aa.createPattern(this.type.H,"repeat")),this.pattern=this.type.pattern)};m.jd=function(){this.xn=!1;this.H=this.type.H};m.eh=
function(){this.b.n&&this.xn&&this.N&&(this.b.n.deleteTexture(this.N),this.N=null)};m.Gc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var f=this.x,k=this.y;this.b.bd&&(f=Math.round(f),k=Math.round(k));var b=-(this.Ab*this.width),a=-(this.Bb*this.height),c=b%this.H.width,m=a%this.H.height;0>c&&(c+=this.H.width);0>m&&(m+=this.H.height);d.translate(f,k);d.rotate(this.i);d.translate(c,m);d.fillRect(b-c,a-m,this.width,this.height);d.restore()};m.Pb=function(d){d.Xb(this.N);
d.Ye(this.opacity);var f=this.sh;f.right=this.width/this.H.width;f.bottom=this.height/this.H.height;var k=this.Mb;if(this.b.bd){var b=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;d.Fd(k.Ra+b,k.Sa+a,k.Hb+b,k.Ib+a,k.wb+b,k.xb+a,k.tb+b,k.ub+a,f)}else d.Fd(k.Ra,k.Sa,k.Hb,k.Ib,k.wb,k.xb,k.tb,k.ub,f)};f.j=new function(){};f.pa=new function(){};f.Qb=new function(){}})();function Z(f){this.b=f}
(function(){function f(a){r=a.x;l=a.y;h=a.z}function m(a){s=a.x;g=a.y;p=a.z}function d(a,b,c,d){var e;e=v.length?v.pop():new q;e.init(a,b,c,d);return e}function q(){this.yh=this.id=this.y=this.x=this.xj=this.wj=this.gl=this.time=this.Zl=0;this.Eh=this.Ej=!1}function k(){}function b(){}var a=Z.prototype;a.gb=function(a){this.Ba=a;this.b=a.b};a.gb.prototype.ha=function(){};a.Ea=function(a){this.type=a;this.b=a.b;this.touches=[];this.rl=!1};var c=a.Ea.prototype,w={left:0,top:0};c.ug=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 r=0,l=0,h=0,s=0,g=0,p=0,v=[];q.prototype.init=function(a,b,c,d){var e=Ua();this.Zl=this.gl=this.time=e;this.wj=a;this.xj=b;this.x=a;this.y=b;this.id=c;this.yh=d;this.Eh=this.Ej=!1};q.prototype.update=function(a,b,c){this.gl=this.time;this.time=a;this.x=b;this.y=c;!this.Eh&&15<=Qa(this.wj,this.xj,this.x,this.y)&&(this.Eh=!0)};q.prototype.$s=function(a,b){!this.Ej&&500<=Ua()-this.Zl&&!this.Eh&&15>Qa(this.wj,this.xj,
this.x,this.y)&&(this.Ej=!0,a.fd=this.yh,a.ag=this.id,a.of=b,a.b.trigger(Z.prototype.j.hq,a),a.od=this.x,a.pd=this.y,a.b.trigger(Z.prototype.j.iq,a),a.of=0)};var B=-1E3,n=-1E3,e=-1E4;q.prototype.ko=function(a,b){if(!this.Ej){var c=Ua();333>=c-this.Zl&&!this.Eh&&15>Qa(this.wj,this.xj,this.x,this.y)&&(a.fd=this.yh,a.ag=this.id,a.of=b,666>=c-e&&25>Qa(B,n,this.x,this.y)?(a.b.trigger(Z.prototype.j.dq,a),a.od=this.x,a.pd=this.y,a.b.trigger(Z.prototype.j.fq,a),n=B=-1E3,e=-1E4):(a.b.trigger(Z.prototype.j.qq,
a),a.od=this.x,a.pd=this.y,a.b.trigger(Z.prototype.j.rq,a),B=this.x,n=this.y,e=c),a.of=0)}};c.ha=function(){this.Ts=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.of=this.ag=this.fd=this.pd=this.od=this.Jm=this.Im=this.Hm=this.Fq=this.Eq=this.Dq=this.mh=this.lh=this.kh=0;this.iu=0!==this.Da[0];var a=0<this.b.lb?document:this.b.canvas,b=document;this.b.bb?b=a=window.Canvas:this.b.gc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.jh(a)},
!1),a.addEventListener("pointermove",function(a){c.ih(a)},!1),b.addEventListener("pointerup",function(a){c.Ed(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Ed(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.jh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.ih(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Ed(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Ed(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.Yi(a)},
!1),a.addEventListener("touchmove",function(a){c.Xi(a)},!1),b.addEventListener("touchend",function(a){c.Kf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Kf(a,!0)},!1));if(this.Ts){var d=function(a){a=a.reading;c.Hm=a.accelerationX;c.Im=a.accelerationY;c.Jm=a.accelerationZ},e=function(a){a=a.reading;c.kh=a.yawDegrees;c.lh=a.pitchDegrees;c.mh=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.kh=a.alpha||
0;c.lh=a.beta||0;c.mh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Dq=a.accelerationIncludingGravity.x||0,c.Eq=a.accelerationIncludingGravity.y||0,c.Fq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Hm=a.acceleration.x||0,c.Im=a.acceleration.y||0,c.Jm=a.acceleration.z||0)},!1);this.iu&&!this.b.da&&(jQuery(document).mousemove(function(a){c.gh(a)}),jQuery(document).mousedown(function(a){c.fh(a)}),jQuery(document).mouseup(function(a){c.hh(a)}));
this.b.sf&&!this.b.bb&&AppMobi.accelerometer.watchAcceleration(f,{frequency:40,adjustForRotation:!0});this.b.uc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(m,null,{frequency:40});this.b.au(this)};c.ih=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.ug(a.pointerId),c=Ua();if(0<=b){var d=this.b.da?w:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};c.jh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.da?w:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Ua();this.fd=this.touches.length;this.ag=a.pointerId;this.touches.push(d(c,b,a.pointerId,this.fd));this.b.ga=!0;this.b.trigger(Z.prototype.j.Cm,this);this.b.trigger(Z.prototype.j.Em,this);this.od=c;this.pd=b;this.b.trigger(Z.prototype.j.Dm,this);
this.b.ga=!1}};c.Ed=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.ug(a.pointerId);this.fd=0<=c?this.touches[c].yh:-1;this.ag=0<=c?this.touches[c].id:-1;this.b.ga=!0;this.b.trigger(Z.prototype.j.Bm,this);this.b.trigger(Z.prototype.j.Rj,this);0<=c&&(b||this.touches[c].ko(this,c),100>v.length&&v.push(this.touches[c]),this.touches.splice(c,1));this.b.ga=!1}};c.Xi=function(a){a.preventDefault&&a.preventDefault();
var b=Ua(),c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.ug(e.identifier),0<=f){var g=this.b.da?w:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};c.Yi=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.da?w:jQuery(this.b.canvas).offset();Ua();this.b.ga=!0;var c,e,f,g;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],g=this.ug(f.identifier),-1===g){g=f.pageX-b.left;var h=f.pageY-
b.top;this.fd=this.touches.length;this.ag=f.identifier;this.touches.push(d(g,h,f.identifier,this.fd));this.b.trigger(Z.prototype.j.Cm,this);this.b.trigger(Z.prototype.j.Em,this);this.od=g;this.pd=h;this.b.trigger(Z.prototype.j.Dm,this)}this.b.ga=!1};c.Kf=function(a,b){a.preventDefault&&gb(a)&&a.preventDefault();this.b.ga=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.ug(e.identifier),0<=e&&(this.fd=this.touches[e].yh,this.ag=this.touches[e].id,this.b.trigger(Z.prototype.j.Bm,
this),this.b.trigger(Z.prototype.j.Rj,this),b||this.touches[e].ko(this,e),100>v.length&&v.push(this.touches[e]),this.touches.splice(e,1));this.b.ga=!1};c.qv=function(){return this.b.sf&&0===this.kh&&0!==h?90*h:this.b.uc&&0===this.kh&&0!==p?90*p:this.kh};c.rv=function(){return this.b.sf&&0===this.lh&&0!==l?-90*l:this.b.uc&&0===this.lh&&0!==g?90*g:this.lh};c.uv=function(){return this.b.sf&&0===this.mh&&0!==r?90*r:this.b.uc&&0===this.mh&&0!==s?90*s:this.mh};c.fh=function(a){a.preventDefault&&this.b.qf&&
!this.b.yd&&a.preventDefault();this.Yi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.rl=!0};c.gh=function(a){this.rl&&this.Xi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};c.hh=function(a){a.preventDefault&&this.b.qf&&!this.b.yd&&a.preventDefault();this.b.qf=!0;this.Kf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.rl=!1};c.cm=function(){var a,b,c,d=Ua();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.gl=d),c.$s(this,
a)};k.prototype.Em=function(){return!0};k.prototype.Rj=function(){return!0};k.prototype.Dm=function(a){return a?this.b.Xf(a,this.od,this.pd,!1):!1};var u=[];k.prototype.Rp=function(a){if(!a)return!1;var b=a.ba(),c=b.pc(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.la();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.d.ma(e.x,e.y,!0),e=l.d.ma(e.x,e.y,!1),l.$a(d,e)){u.push(l);break}}return u.length?(b.fa=!1,xa(b.c,u),a.ld(),u.length=0,!0):!1};k.prototype.Cm=function(a){a=Math.floor(a);
return a===this.fd};k.prototype.Bm=function(a){a=Math.floor(a);return a===this.fd};k.prototype.hq=function(){return!0};k.prototype.qq=function(){return!0};k.prototype.dq=function(){return!0};k.prototype.iq=function(a){return a?this.b.Xf(a,this.od,this.pd,!1):!1};k.prototype.rq=function(a){return a?this.b.Xf(a,this.od,this.pd,!1):!1};k.prototype.fq=function(a){return a?this.b.Xf(a,this.od,this.pd,!1):!1};a.j=new k;b.prototype.Fm=function(a,b){var c=this.of;if(0>c||c>=this.touches.length)a.q(0);else{var d,
e,f,g,h;ga(b)?(d=this.b.ud(0),e=d.scale,f=d.kb,g=d.Db,h=d.i,d.scale=1,d.kb=1,d.Db=1,d.i=0,a.q(d.ma(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.kb=f,d.Db=g,d.i=h):(d=P(b)?this.b.ud(b):this.b.vg(b))?a.q(d.ma(this.touches[c].x,this.touches[c].y,!0)):a.q(0)}};b.prototype.Gm=function(a,b){var c=this.of;if(0>c||c>=this.touches.length)a.q(0);else{var d,e,f,g,h;ga(b)?(d=this.b.ud(0),e=d.scale,f=d.kb,g=d.Eb,h=d.i,d.scale=1,d.kb=1,d.Eb=1,d.i=0,a.q(d.ma(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.kb=f,d.Eb=g,d.i=h):(d=P(b)?this.b.ud(b):this.b.vg(b))?a.q(d.ma(this.touches[c].x,this.touches[c].y,!1)):a.q(0)}};a.Qb=new b})();
function nc(f){this.b=f;var m=this;this.b.da||(jQuery(document).mousemove(function(d){m.gh(d)}),jQuery(document).mousedown(function(d){m.fh(d)}),jQuery(document).mouseup(function(d){m.hh(d)}));f=0<this.b.lb?document:this.b.canvas;this.b.bb?f=window.Canvas:this.b.gc&&(f=window);window.navigator.pointerEnabled?(f.addEventListener("pointerdown",function(d){m.jh(d)},!1),f.addEventListener("pointermove",function(d){m.ih(d)},!1),f.addEventListener("pointerup",function(d){m.Ed(d)},!1),f.addEventListener("pointercancel",
function(d){m.Ed(d)},!1)):window.navigator.msPointerEnabled?(f.addEventListener("MSPointerDown",function(d){m.jh(d)},!1),f.addEventListener("MSPointerMove",function(d){m.ih(d)},!1),f.addEventListener("MSPointerUp",function(d){m.Ed(d)},!1),f.addEventListener("MSPointerCancel",function(d){m.Ed(d)},!1)):(f.addEventListener("touchstart",function(d){m.Yi(d)},!1),f.addEventListener("touchmove",function(d){m.Xi(d)},!1),f.addEventListener("touchend",function(d){m.Kf(d)},!1),f.addEventListener("touchcancel",
function(d){m.Kf(d)},!1))}
(function(){function f(b){var a,c;a=0;for(c=b.F.length;a<c;a++)if(b.F[a]instanceof d.Ea)return b.F[a];return null}function m(){}var d=nc.prototype,q={left:0,top:0};d.fh=function(b){1===b.which&&this.yl("leftmouse",b.pageX,b.pageY)};d.gh=function(b){1===b.which&&this.zl("leftmouse",b.pageX,b.pageY)};d.hh=function(b){1===b.which&&this.Al("leftmouse")};d.Yi=function(b){b.preventDefault&&gb(b)&&b.preventDefault();var a,c,d,f;a=0;for(c=b.changedTouches.length;a<c;a++)d=b.changedTouches[a],f=d.identifier,
this.yl(f?f.toString():"<none>",d.pageX,d.pageY)};d.Xi=function(b){b.preventDefault&&b.preventDefault();var a,c,d,f;a=0;for(c=b.changedTouches.length;a<c;a++)d=b.changedTouches[a],f=d.identifier,this.zl(f?f.toString():"<none>",d.pageX,d.pageY)};d.Kf=function(b){b.preventDefault&&gb(b)&&b.preventDefault();var a,c,d;a=0;for(c=b.changedTouches.length;a<c;a++)d=b.changedTouches[a],d=d.identifier,this.Al(d?d.toString():"<none>")};d.jh=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&
(b.preventDefault&&gb(b)&&b.preventDefault(),this.yl(b.pointerId.toString(),b.pageX,b.pageY))};d.ih=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&b.preventDefault(),this.zl(b.pointerId.toString(),b.pageX,b.pageY))};d.Ed=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&gb(b)&&b.preventDefault(),this.Al(b.pointerId.toString()))};d.yl=function(b,a,c){var d=this.b.da?q:jQuery(this.b.canvas).offset();a-=d.left;
c-=d.top;var k,l,h,m,d=this.Hf.Sc(),g,p,v,B=null;g=0;for(p=d.length;g<p;g++)if(v=d[g],k=f(v),k.enabled&&!k.Be&&(k=v.d.ma(a,c,!0),l=v.d.ma(a,c,!1),v.la(),v.$a(k,l)))B?v.d.index>B.d.index?(B=v,h=k,m=l):v.d.index===B.d.index&&v.rc()>B.rc()&&(B=v,h=k,m=l):(B=v,h=k,m=l);B&&f(B).jt(b,h,m)};d.zl=function(b,a,c){var d=this.b.da?q:jQuery(this.b.canvas).offset();a-=d.left;c-=d.top;var k,l=this.Hf.Sc(),h,m,g;h=0;for(m=l.length;h<m;h++)k=l[h],g=f(k),!g.enabled||!g.Be||g.Be&&g.pk!==b||(d=k.d.ma(a,c,!0),k=k.d.ma(a,
c,!1),g.nt(d,k))};d.Al=function(b){var a=this.Hf.Sc(),c,d,k;c=0;for(d=a.length;c<d;c++)k=a[c],k=f(k),k.Be&&k.pk===b&&k.qt()};d.gb=function(b){this.behavior=b;this.b=b.b};d.gb.prototype.ha=function(){};d.Ea=function(b,a){this.type=b;this.behavior=b.behavior;this.Cb=a;this.b=b.b};var k=d.Ea.prototype;k.ha=function(){this.Be=!1;this.bn=this.an=0;this.pk="<none>";this.Yj=this.Da[0];this.enabled=0!==this.Da[1]};k.Wb=function(){return{enabled:this.enabled}};k.wc=function(b){this.enabled=b.enabled;this.Be=
!1};k.jt=function(b,a,c){this.an=a-this.Cb.x;this.bn=c-this.Cb.y;this.Be=!0;this.pk=b;this.b.ga=!0;this.b.trigger(nc.prototype.j.gq,this.Cb);this.b.ga=!1};k.nt=function(b,a){var c=b-this.an,d=a-this.bn;if(0===this.Yj){if(this.Cb.x!==c||this.Cb.y!==d)this.Cb.x=c,this.Cb.y=d,this.Cb.va()}else 1===this.Yj?this.Cb.x!==c&&(this.Cb.x=c,this.Cb.va()):2===this.Yj&&this.Cb.y!==d&&(this.Cb.y=d,this.Cb.va())};k.qt=function(){this.Be=!1;this.b.ga=!0;this.b.trigger(nc.prototype.j.ym,this.Cb);this.b.ga=!1};k.Za=
function(){};m.prototype.gq=function(){return!0};m.prototype.ym=function(){return!0};d.j=new m;d.pa=new function(){};d.Qb=new function(){}})();
function fc(){return[hc,ic,jc,kc,gc,mc,Z,nc,jc.prototype.j.Pp,gc.prototype.pa.wq,jc.prototype.j.Pj,Z.prototype.j.Rp,Y.prototype.pa.yq,jc.prototype.j.Np,Y.prototype.j.Jp,Y.prototype.pa.vq,Y.prototype.pa.Wp,hc.prototype.pa.Play,Y.prototype.pa.Ep,gc.prototype.pa.zq,Y.prototype.pa.Bq,Z.prototype.j.Rj,Y.prototype.j.zm,jc.prototype.j.wm,gc.prototype.j.Sp,Y.prototype.j.Aq,nc.prototype.j.ym,gc.prototype.j.Qp,gc.prototype.pa.xq,gc.prototype.pa.Kp,Y.prototype.pa.tq,Y.prototype.pa.uq,Y.prototype.pa.Vp]};
