// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,K,ea,fa,ga,N,ia,ja,ka,na,oa,R,pa,qa,ta,ua,wa,ya,za,U,Aa,Ba,Ca,Da,V,Ea,Fa,Ga,Ha,Ia,Ka,La,Ma,Na,Oa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,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,Wb,Xb,Yb,W,Zb,$b={},ac={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(e,a,b,r){this.set(e,a,b,r)}function m(){this.xb=this.wb=this.zb=this.yb=this.Jb=this.Ib=this.kb=this.jb=0}function d(e,a,b,r){e<a?b<r?(p=e<b?e:b,D=a>r?a:r):(p=e<r?e:r,D=a>b?a:b):b<r?(p=a<b?a:b,D=e>r?e:r):(p=a<r?a:r,D=e>b?e:b)}function q(){this.items=this.ad=null;this.Mg=0;r&&(this.ad=new Set);this.dg=[];this.Vd=!0}function l(e){z[C++]=e}function c(){this.da=this.Bj=this.y=this.gk=0}function a(e){this.Na=[];this.Ph=this.Rh=this.Sh=this.Qh=0;this.xh(e)}function b(e,a){this.jk=
e;this.ik=a;this.cells={}}function w(e,a){this.jk=e;this.ik=a;this.cells={}}function t(e,a,b){var r;return ra.length?(r=ra.pop(),r.Sk=e,r.x=a,r.y=b,r):new aa(e,a,b)}function f(e,a,b){this.Sk=e;this.x=a;this.y=b;this.Ua=new ba}function k(e,a,b){var r;return x.length?(r=x.pop(),r.Sk=e,r.x=a,r.y=b,r):new ca(e,a,b)}function u(e,a,b){this.Sk=e;this.x=a;this.y=b;this.Ua=[];this.zf=!0;this.Zc=new ba;this.hg=!1}function h(e,a){return e.Sc-a.Sc}K=function(e){window.console&&window.console.log&&window.console.log(e)};
ea=function(e){window.console&&window.console.error&&window.console.error(e)};fa=function(e){return"undefined"===typeof e};ga=function(e){return"number"===typeof e};N=function(e){return"string"===typeof e};ia=function(e){return 0<e&&0===(e-1&e)};ja=function(e){--e;for(var a=1;32>a;a<<=1)e=e|e>>a;return e+1};ka=function(e){return 0>e?-e:e};na=function(e,a){return e<a?e:a};oa=Math.PI;R=function(e){return 0<=e?e|0:(e|0)-1};pa=function(e){var a=e|0;return a===e?a:a+1};qa=function(e,a,b,r,v,f,k,c){var h,
z,n,C;e<b?(z=e,h=b):(z=b,h=e);v<k?(C=v,n=k):(C=k,n=v);if(h<C||z>n)return!1;a<r?(z=a,h=r):(z=r,h=a);f<c?(C=f,n=c):(C=c,n=f);if(h<C||z>n)return!1;h=v-e+k-b;z=f-a+c-r;e=b-e;a=r-a;v=k-v;f=c-f;c=ka(a*v-f*e);return ka(v*z-f*h)>c?!1:ka(e*z-a*h)<=c};g.prototype.set=function(e,a,b,r){this.left=e;this.top=a;this.right=b;this.bottom=r};g.prototype.ng=function(e){this.left=e.left;this.top=e.top;this.right=e.right;this.bottom=e.bottom};g.prototype.width=function(){return this.right-this.left};g.prototype.height=
function(){return this.bottom-this.top};g.prototype.offset=function(e,a){this.left+=e;this.top+=a;this.right+=e;this.bottom+=a;return this};g.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)};g.prototype.Ws=function(e){return!(e.right<this.left||e.bottom<this.top||e.left>this.right||e.top>this.bottom)};g.prototype.Xs=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)};g.prototype.Ya=function(e,a){return e>=this.left&&e<=this.right&&a>=this.top&&a<=this.bottom};g.prototype.ii=function(e){return this.left===e.left&&this.top===e.top&&this.right===e.right&&this.bottom===e.bottom};ta=g;m.prototype.Tf=function(e){this.jb=e.left;this.kb=e.top;this.Ib=e.right;this.Jb=e.top;this.yb=e.right;this.zb=e.bottom;this.wb=e.left;this.xb=e.bottom};m.prototype.ep=function(e,a){if(0===a)this.Tf(e);else{var b=Math.sin(a),r=Math.cos(a),
v=e.left*b,f=e.top*b,c=e.right*b,b=e.bottom*b,k=e.left*r,h=e.top*r,z=e.right*r,r=e.bottom*r;this.jb=k-f;this.kb=h+v;this.Ib=z-f;this.Jb=h+c;this.yb=z-b;this.zb=r+c;this.wb=k-b;this.xb=r+v}};m.prototype.offset=function(e,a){this.jb+=e;this.kb+=a;this.Ib+=e;this.Jb+=a;this.yb+=e;this.zb+=a;this.wb+=e;this.xb+=a;return this};var p=0,D=0;m.prototype.Um=function(e){d(this.jb,this.Ib,this.yb,this.wb);e.left=p;e.right=D;d(this.kb,this.Jb,this.zb,this.xb);e.top=p;e.bottom=D};m.prototype.Ya=function(e,a){var b=
this.jb,r=this.kb,v=this.Ib-b,f=this.Jb-r,c=this.yb-b,k=this.zb-r,h=e-b,z=a-r,n=v*v+f*f,C=v*c+f*k,f=v*h+f*z,u=c*c+k*k,d=c*h+k*z,p=1/(n*u-C*C),v=(u*f-C*d)*p,n=(n*d-C*f)*p;if(0<=v&&0<n&&1>v+n)return!0;v=this.wb-b;f=this.xb-r;n=v*v+f*f;C=v*c+f*k;f=v*h+f*z;p=1/(n*u-C*C);v=(u*f-C*d)*p;n=(n*d-C*f)*p;return 0<=v&&0<n&&1>v+n};m.prototype.Td=function(e,a){if(a)switch(e){case 0:return this.jb;case 1:return this.Ib;case 2:return this.yb;case 3:return this.wb;case 4:return this.jb;default:return this.jb}else switch(e){case 0:return this.kb;
case 1:return this.Jb;case 2:return this.zb;case 3:return this.xb;case 4:return this.kb;default:return this.kb}};m.prototype.oo=function(){return(this.jb+this.Ib+this.yb+this.wb)/4};m.prototype.po=function(){return(this.kb+this.Jb+this.zb+this.xb)/4};m.prototype.Gn=function(e){var a=e.oo(),b=e.po();if(this.Ya(a,b))return!0;a=this.oo();b=this.po();if(e.Ya(a,b))return!0;var r,v,f,c,k,h,z,n;for(z=0;4>z;z++)for(n=0;4>n;n++)if(a=this.Td(z,!0),b=this.Td(z,!1),r=this.Td(z+1,!0),v=this.Td(z+1,!1),f=e.Td(n,
!0),c=e.Td(n,!1),k=e.Td(n+1,!0),h=e.Td(n+1,!1),qa(a,b,r,v,f,c,k,h))return!0;return!1};ua=m;wa=function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b]);return e};ya=function(e,a){var b,r;a=R(a);if(!(0>a||a>=e.length)){b=a;for(r=e.length-1;b<r;b++)e[b]=e[b+1];za(e,r)}};za=function(e,a){e.length=a};U=function(e){za(e,0)};Aa=function(e,a){U(e);var b,r;b=0;for(r=a.length;b<r;++b)e[b]=a[b]};Ba=function(e,a){e.push.apply(e,a)};Ca=function(e,a){var b,r;b=0;for(r=e.length;b<r;++b)if(e[b]===a)return b;
return-1};Da=function(e,a){var b=Ca(e,a);-1!==b&&ya(e,b)};V=function(e){return e/(180/oa)};Ea=function(e){return 180/oa*e};Fa=function(e){e%=360;0>e&&(e+=360);return e};Ga=function(e){e%=2*oa;0>e&&(e+=2*oa);return e};Ha=function(e){return Fa(Ea(e))};Ia=function(e){return Ga(V(e))};Ka=function(e,a,b,r){return Math.atan2(r-a,b-e)};La=function(e,a){if(e===a)return 0;var b=Math.sin(e),r=Math.cos(e),v=Math.sin(a),f=Math.cos(a),b=b*v+r*f;return 1<=b?0:-1>=b?oa:Math.acos(b)};Ma=function(e,a,b){var r=Math.sin(e),
v=Math.cos(e),f=Math.sin(a),c=Math.cos(a);return Math.acos(r*f+v*c)>b?0<v*f-r*c?Ga(e+b):Ga(e-b):Ga(a)};Na=function(e,a){var b=Math.sin(e),r=Math.cos(e),v=Math.sin(a),f=Math.cos(a);return 0>=r*v-b*f};Oa=function(e,a,b,r,v,f){if(0===b)return f?e:a;var c=Math.sin(b);b=Math.cos(b);e-=r;a-=v;var k=e*c;e=e*b-a*c;a=a*b+k;return f?e+r:a+v};Ta=function(e,a,b,r){e=b-e;a=r-a;return Math.sqrt(e*e+a*a)};Ua=function(e,a){return!e!==!a};Va=function(e){for(var a in e)if(e.hasOwnProperty(a))return!0;return!1};Wa=
function(e){for(var a in e)e.hasOwnProperty(a)&&delete e[a]};var B=+new Date;Xa=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,v=!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),v=window.c2ejecta);var r=!n&&!v&&!e&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(e){return this.wd()?!1:r?this.ad.has(e):this.items&&this.items.hasOwnProperty(e)};q.prototype.add=function(e){if(r)this.ad.has(e)||(this.ad.add(e),this.Vd=!1);else{var a=e.toString(),b=this.items;b?b.hasOwnProperty(a)||(b[a]=e,this.Mg++,this.Vd=!1):(this.items={},this.items[a]=
e,this.Mg=1,this.Vd=!1)}};q.prototype.remove=function(e){if(!this.wd())if(r)this.ad.has(e)&&(this.ad["delete"](e),this.Vd=!1);else if(this.items){e=e.toString();var a=this.items;a.hasOwnProperty(e)&&(delete a[e],this.Mg--,this.Vd=!1)}};q.prototype.clear=function(){this.wd()||(r?this.ad.clear():(this.items=null,this.Mg=0),U(this.dg),this.Vd=!0)};q.prototype.wd=function(){return 0===this.count()};q.prototype.count=function(){return r?this.ad.size:this.Mg};var z=null,C=0;q.prototype.ou=function(){if(!this.Vd){if(r)U(this.dg),
z=this.dg,C=0,this.ad.forEach(l),z=null,C=0;else{var e=this.dg;U(e);var a,b=0,v=this.items;if(v)for(a in v)v.hasOwnProperty(a)&&(e[b++]=v[a])}this.Vd=!0}};q.prototype.Rc=function(){this.ou();return this.dg};ba=q;new ba;Ya=function(e,a){r?Za(e,a.ad):$a(e,a.Rc())};Za=function(e,a){var b,r,v,f;r=b=0;for(v=e.length;b<v;++b)f=e[b],a.has(f)||(e[r++]=f);za(e,r)};$a=function(e,a){var b,r,v,f;r=b=0;for(v=e.length;b<v;++b)f=e[b],-1===Ca(a,f)&&(e[r++]=f);za(e,r)};c.prototype.add=function(e){this.y=e-this.gk;
this.Bj=this.da+this.y;this.gk=this.Bj-this.da-this.y;this.da=this.Bj};c.prototype.reset=function(){this.da=this.Bj=this.y=this.gk=0};ab=c;bb=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.xh=function(e){this.Qo=e;this.Nc=e.length/2;this.Na.length=e.length;this.Wh=this.Xh=-1;this.Xm=0};a.prototype.wf=function(){return!this.Qo.length};a.prototype.la=function(){for(var e=this.Na,a=e[0],b=a,r=e[1],v=r,f,c,k=1,h=this.Nc;k<h;++k)c=2*k,f=e[c],c=e[c+1],f<a&&(a=f),f>b&&(b=f),
c<r&&(r=c),c>v&&(v=c);this.Qh=a;this.Rh=b;this.Sh=r;this.Ph=v};a.prototype.Tf=function(e,a,b){this.Na.length=8;this.Nc=4;var r=this.Na;r[0]=e.left-a;r[1]=e.top-b;r[2]=e.right-a;r[3]=e.top-b;r[4]=e.right-a;r[5]=e.bottom-b;r[6]=e.left-a;r[7]=e.bottom-b;this.Xh=e.right-e.left;this.Wh=e.bottom-e.top;this.la()};a.prototype.Sf=function(e,a,b,r,v){this.Na.length=8;this.Nc=4;var f=this.Na;f[0]=e.jb-a;f[1]=e.kb-b;f[2]=e.Ib-a;f[3]=e.Jb-b;f[4]=e.yb-a;f[5]=e.zb-b;f[6]=e.wb-a;f[7]=e.xb-b;this.Xh=r;this.Wh=v;this.la()};
a.prototype.dp=function(e){this.Nc=e.Nc;Aa(this.Na,e.Na);this.Qh=e.Qh;this.Sh-e.Sh;this.Rh=e.Rh;this.Ph=e.Ph};a.prototype.gf=function(e,a,b){if(this.Xh!==e||this.Wh!==a||this.Xm!==b){this.Xh=e;this.Wh=a;this.Xm=b;var r,v,f,c,k,h=0,z=1,n=this.Qo,C=this.Na;0!==b&&(h=Math.sin(b),z=Math.cos(b));b=0;for(f=this.Nc;b<f;b++)r=2*b,v=r+1,c=n[r]*e,k=n[v]*a,C[r]=c*z-k*h,C[v]=k*z+c*h;this.la()}};a.prototype.Ya=function(e,a){var b=this.Na;if(e===b[0]&&a===b[1])return!0;var r,v,f,c=this.Nc,k=this.Qh-110,h=this.Sh-
101,z=this.Rh+131,n=this.Ph+120,C,u,d=0,p=0;for(r=0;r<c;r++)v=2*r,f=(r+1)%c*2,C=b[v],v=b[v+1],u=b[f],f=b[f+1],qa(k,h,e,a,C,v,u,f)&&d++,qa(z,n,e,a,C,v,u,f)&&p++;return 1===d%2||1===p%2};a.prototype.Eg=function(e,a,b){var r=e.Na,v=this.Na;if(this.Ya(r[0]+a,r[1]+b)||e.Ya(v[0]-a,v[1]-b))return!0;var f,c,k,h,z,n,C,u,d,p,x,w;f=0;for(h=this.Nc;f<h;f++)for(c=2*f,k=(f+1)%h*2,u=v[c],c=v[c+1],d=v[k],p=v[k+1],k=0,C=e.Nc;k<C;k++)if(z=2*k,n=(k+1)%C*2,x=r[z]+a,z=r[z+1]+b,w=r[n]+a,n=r[n+1]+b,qa(u,c,d,p,x,z,w,n))return!0;
return!1};cb=a;b.prototype.be=function(e,a,b){var r;r=this.cells[e];return r?(r=r[a])?r:b?(r=t(this,e,a),this.cells[e][a]=r):null:b?(r=t(this,e,a),this.cells[e]={},this.cells[e][a]=r):null};b.prototype.$b=function(e){return R(e/this.jk)};b.prototype.ac=function(e){return R(e/this.ik)};b.prototype.update=function(e,a,b){var r,v,f,c,k;if(a)for(r=a.left,v=a.right;r<=v;++r)for(f=a.top,c=a.bottom;f<=c;++f)if(!b||!b.Ya(r,f))if(k=this.be(r,f,!1))k.remove(e),k.wd()&&(k.Ua.clear(),1E3>ra.length&&ra.push(k),
this.cells[r][f]=null);if(b)for(r=b.left,v=b.right;r<=v;++r)for(f=b.top,c=b.bottom;f<=c;++f)a&&a.Ya(r,f)||this.be(r,f,!0).bl(e)};b.prototype.oj=function(e,a){var b,r,f,v,c,k;b=this.$b(e.left);f=this.ac(e.top);r=this.$b(e.right);for(c=this.ac(e.bottom);b<=r;++b)for(v=f;v<=c;++v)(k=this.be(b,v,!1))&&k.dump(a)};db=b;w.prototype.be=function(e,a,b){var r;r=this.cells[e];return r?(r=r[a])?r:b?(r=k(this,e,a),this.cells[e][a]=r):null:b?(r=k(this,e,a),this.cells[e]={},this.cells[e][a]=r):null};w.prototype.$b=
function(e){return R(e/this.jk)};w.prototype.ac=function(e){return R(e/this.ik)};w.prototype.update=function(e,a,b){var r,v,f,c,k;if(a)for(r=a.left,v=a.right;r<=v;++r)for(f=a.top,c=a.bottom;f<=c;++f)if(!b||!b.Ya(r,f))if(k=this.be(r,f,!1))k.remove(e),k.wd()&&(k.reset(),1E3>x.length&&x.push(k),this.cells[r][f]=null);if(b)for(r=b.left,v=b.right;r<=v;++r)for(f=b.top,c=b.bottom;f<=c;++f)a&&a.Ya(r,f)||this.be(r,f,!0).bl(e)};w.prototype.oj=function(e,a,b,r,f){var v,c;e=this.$b(e);a=this.ac(a);b=this.$b(b);
for(v=this.ac(r);e<=b;++e)for(r=a;r<=v;++r)(c=this.be(e,r,!1))&&c.dump(f)};w.prototype.kt=function(e){var a,b,r,f,v;a=e.left;r=e.top;b=e.right;for(f=e.bottom;a<=b;++a)for(e=r;e<=f;++e)if(v=this.be(a,e,!1))v.zf=!1};eb=w;var ra=[];f.prototype.wd=function(){return this.Ua.wd()};f.prototype.bl=function(e){this.Ua.add(e)};f.prototype.remove=function(e){this.Ua.remove(e)};f.prototype.dump=function(e){Ba(e,this.Ua.Rc())};aa=f;var x=[];u.prototype.wd=function(){if(!this.Ua.length)return!0;if(this.Ua.length>
this.Zc.count())return!1;this.Dk();return!0};u.prototype.bl=function(e){this.Zc.contains(e)?(this.Zc.remove(e),this.Zc.wd()&&(this.hg=!1)):this.Ua.length?(this.Ua[this.Ua.length-1].qc()>e.qc()&&(this.zf=!1),this.Ua.push(e)):(this.Ua.push(e),this.zf=!0)};u.prototype.remove=function(e){this.Zc.add(e);this.hg=!0;30<=this.Zc.count()&&this.Dk()};u.prototype.Dk=function(){this.hg&&(this.Zc.count()===this.Ua.length?this.reset():(Ya(this.Ua,this.Zc),this.Zc.clear(),this.hg=!1))};u.prototype.Er=function(){this.zf||
(this.Ua.sort(h),this.zf=!0)};u.prototype.reset=function(){U(this.Ua);this.zf=!0;this.Zc.clear();this.hg=!1};u.prototype.dump=function(e){this.Dk();this.Er();this.Ua.length&&e.push(this.Ua)};ca=u;var A="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");fb=function(e){return 0>=e||11<=e?"source-over":A[e-1]};gb=function(e,a,b){if(b)switch(e.ib=b.ONE,e.fb=b.ONE_MINUS_SRC_ALPHA,a){case 1:e.ib=b.ONE;e.fb=b.ONE;break;case 3:e.ib=
b.ONE;e.fb=b.ZERO;break;case 4:e.ib=b.ONE_MINUS_DST_ALPHA;e.fb=b.ONE;break;case 5:e.ib=b.DST_ALPHA;e.fb=b.ZERO;break;case 6:e.ib=b.ZERO;e.fb=b.SRC_ALPHA;break;case 7:e.ib=b.ONE_MINUS_DST_ALPHA;e.fb=b.ZERO;break;case 8:e.ib=b.ZERO;e.fb=b.ONE_MINUS_SRC_ALPHA;break;case 9:e.ib=b.DST_ALPHA;e.fb=b.ONE_MINUS_SRC_ALPHA;break;case 10:e.ib=b.ONE_MINUS_DST_ALPHA,e.fb=b.SRC_ALPHA}};hb=function(e){return Math.round(1E6*e)/1E6};ib=function(e,a){return"string"!==typeof e||"string"!==typeof a||e.length!==a.length?
!1:e===a?!0:e.toLowerCase()===a.toLowerCase()};jb=function(e){e=e.target;return!e||e===document||e===window||document&&document.body&&e===document.body||ib(e.tagName,"canvas")?!0:!1}})();var bc="undefined"!==typeof Float32Array?Float32Array:Array;function cc(g){var m=new bc(3);g&&(m[0]=g[0],m[1]=g[1],m[2]=g[2]);return m}
function dc(g){var m=new bc(16);g&&(m[0]=g[0],m[1]=g[1],m[2]=g[2],m[3]=g[3],m[4]=g[4],m[5]=g[5],m[6]=g[6],m[7]=g[7],m[8]=g[8],m[9]=g[9],m[10]=g[10],m[11]=g[11],m[12]=g[12],m[13]=g[13],m[14]=g[14],m[15]=g[15]);return m}function ec(g,m){m[0]=g[0];m[1]=g[1];m[2]=g[2];m[3]=g[3];m[4]=g[4];m[5]=g[5];m[6]=g[6];m[7]=g[7];m[8]=g[8];m[9]=g[9];m[10]=g[10];m[11]=g[11];m[12]=g[12];m[13]=g[13];m[14]=g[14];m[15]=g[15]}
function fc(g,m){var d=m[0],q=m[1];m=m[2];g[0]*=d;g[1]*=d;g[2]*=d;g[3]*=d;g[4]*=q;g[5]*=q;g[6]*=q;g[7]*=q;g[8]*=m;g[9]*=m;g[10]*=m;g[11]*=m}
function gc(g,m,d,q){q||(q=dc());var l,c,a,b,w,t,f,k,u=g[0],h=g[1];g=g[2];c=d[0];a=d[1];l=d[2];d=m[1];t=m[2];u===m[0]&&h===d&&g===t?(g=q,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(d=u-m[0],t=h-m[1],f=g-m[2],k=1/Math.sqrt(d*d+t*t+f*f),d*=k,t*=k,f*=k,m=a*f-l*t,l=l*d-c*f,c=c*t-a*d,(k=Math.sqrt(m*m+l*l+c*c))?(k=1/k,m*=k,l*=k,c*=k):c=l=m=0,a=t*c-f*l,b=f*m-d*c,w=d*l-t*m,(k=Math.sqrt(a*a+b*b+w*w))?(k=1/k,a*=k,b*=k,w*=k):w=b=a=0,
q[0]=m,q[1]=a,q[2]=d,q[3]=0,q[4]=l,q[5]=b,q[6]=t,q[7]=0,q[8]=c,q[9]=w,q[10]=f,q[11]=0,q[12]=-(m*u+l*h+c*g),q[13]=-(a*u+b*h+w*g),q[14]=-(d*u+t*h+f*g),q[15]=1)}
(function(){function g(c){this.Je=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ym=cc([0,0,100]);this.Xn=cc([0,0,0]);this.Ap=cc([0,1,0]);this.Bm=cc([1,1,1]);this.gn=!0;this.tl=dc();this.yc=dc();this.Pn=dc();this.qk=dc();this.k=c;this.Cn()}function m(c,a,b){this.k=c;this.yh=a;this.name=b;this.xc=c.getAttribLocation(a,"aPos");this.he=c.getAttribLocation(a,"aTex");this.Vn=c.getUniformLocation(a,"matP");this.Ui=c.getUniformLocation(a,"matMV");this.Ef=
c.getUniformLocation(a,"opacity");this.Wn=c.getUniformLocation(a,"samplerFront");this.Yg=c.getUniformLocation(a,"samplerBack");this.Se=c.getUniformLocation(a,"destStart");this.Re=c.getUniformLocation(a,"destEnd");this.ql=c.getUniformLocation(a,"seconds");this.pl=c.getUniformLocation(a,"pixelWidth");this.ol=c.getUniformLocation(a,"pixelHeight");this.Xg=c.getUniformLocation(a,"layerScale");this.Wg=c.getUniformLocation(a,"layerAngle");this.$g=c.getUniformLocation(a,"viewOrigin");this.Zg=c.getUniformLocation(a,
"scrollPos");this.Rs=!!(this.pl||this.ol||this.ql||this.Yg||this.Se||this.Re||this.Xg||this.Wg||this.$g||this.Zg);this.fo=this.ho=-999;this.Wi=1;this.ao=this.$n=0;this.co=this.Zn=this.Yn=1;this.ko=this.jo=this.mo=this.lo=this.bo=0;this.ll=[];this.eo=dc();this.Ef&&c.uniform1f(this.Ef,1);this.Wn&&c.uniform1i(this.Wn,0);this.Yg&&c.uniform1i(this.Yg,1);this.Se&&c.uniform2f(this.Se,0,0);this.Re&&c.uniform2f(this.Re,1,1);this.Xg&&c.uniform1f(this.Xg,1);this.Wg&&c.uniform1f(this.Wg,0);this.$g&&c.uniform2f(this.$g,
0,0);this.Zg&&c.uniform2f(this.Zg,0,0);this.Ge=!1}function d(c,a){this.type=c;this.n=a;this.k=a.k;this.rc=this.ic=this.Bo=0;this.Y=this.Bc=null;this.fp=[]}g.prototype.Cn=function(){var c=this.k,a;this.Qn=1;this.Ne=this.Me=null;this.di=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.Rn=c.ONE;this.On=c.ONE_MINUS_SRC_ALPHA;this.Oj=new Float32Array(16E3);this.Cj=new Float32Array(16E3);this.Ml=
new Float32Array(32E3);this.Ll=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.Ll);c.bufferData(c.ARRAY_BUFFER,this.Ml.byteLength,c.DYNAMIC_DRAW);this.Jh=Array(4);this.Dh=Array(4);for(a=0;4>a;a++)this.Jh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Jh[a]),c.bufferData(c.ARRAY_BUFFER,this.Oj.byteLength,c.DYNAMIC_DRAW),this.Dh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Dh[a]),c.bufferData(c.ARRAY_BUFFER,this.Cj.byteLength,c.DYNAMIC_DRAW);this.md=0;this.Us=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,
this.Us);for(var b=new Uint16Array(12E3),d=a=0;12E3>a;)b[a++]=d,b[a++]=d+1,b[a++]=d+2,b[a++]=d,b[a++]=d+2,b[a++]=d+3,d+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,b,c.STATIC_DRAW);this.Mf=this.fd=0;this.Pa=[];a=this.pk({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.Pa.push(a);a=this.pk({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.Pa.push(a);for(var t in hc)hc.hasOwnProperty(t)&&
this.Pa.push(this.pk(hc[t],"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}",t));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.kd=[];this.Uc=0;this.Qb=this.Ab=!1;this.bn=this.Ng=-1;this.rg=null;this.js=c.createFramebuffer();this.Uo=null;this.pe=cc([0,0,0]);c=c.getParameter(c.ALIASED_POINT_SIZE_RANGE);
this.nt=c[0];this.ul=c[1];2048<this.ul&&(this.ul=2048);this.cd(0)};m.prototype.tm=function(c){var a=this.eo;if(a[0]!==c[0]||a[1]!==c[1]||a[2]!==c[2]||a[3]!==c[3]||a[4]!==c[4]||a[5]!==c[5]||a[6]!==c[6]||a[7]!==c[7]||a[8]!==c[8]||a[9]!==c[9]||a[10]!==c[10]||a[11]!==c[11]||a[12]!==c[12]||a[13]!==c[13]||a[14]!==c[14]||a[15]!==c[15])ec(c,this.eo),this.k.uniformMatrix4fv(this.Ui,!1,c)};g.prototype.pk=function(c,a,b){var d=this.k,t=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(t,c.src);d.compileShader(t);
if(!d.getShaderParameter(t,d.COMPILE_STATUS))return d.deleteShader(t),null;var f=d.createShader(d.VERTEX_SHADER);d.shaderSource(f,a);d.compileShader(f);if(!d.getShaderParameter(f,d.COMPILE_STATUS))return d.deleteShader(t),d.deleteShader(f),null;a=d.createProgram();d.attachShader(a,t);d.attachShader(a,f);d.linkProgram(a);if(!d.getProgramParameter(a,d.LINK_STATUS))return d.deleteShader(t),d.deleteShader(f),d.deleteProgram(a),null;d.useProgram(a);d.deleteShader(t);d.deleteShader(f);b=new m(d,a,b);b.zk=
c.zk||0;b.Ak=c.Ak||0;b.an=!!c.an;b.Rm=!!c.Rm;b.J=c.J||[];c=0;for(t=b.J.length;c<t;c++)b.J[c][1]=d.getUniformLocation(a,b.J[c][0]),b.ll.push(0),d.uniform1f(b.J[c][1],0);return b};g.prototype.Pk=function(c){var a,b;a=0;for(b=this.Pa.length;a<b;a++)if(this.Pa[a].name===c)return a;return-1};g.prototype.Po=function(c,a,b){var d=this.yc,t=this.tl,f=[0,0,0,0,0,0,0,0];f[0]=d[0]*c+d[4]*a+d[12];f[1]=d[1]*c+d[5]*a+d[13];f[2]=d[2]*c+d[6]*a+d[14];f[3]=d[3]*c+d[7]*a+d[15];f[4]=t[0]*f[0]+t[4]*f[1]+t[8]*f[2]+t[12]*
f[3];f[5]=t[1]*f[0]+t[5]*f[1]+t[9]*f[2]+t[13]*f[3];f[6]=t[2]*f[0]+t[6]*f[1]+t[10]*f[2]+t[14]*f[3];f[7]=-f[2];0!==f[7]&&(f[7]=1/f[7],f[4]*=f[7],f[5]*=f[7],f[6]*=f[7],b[0]=(.5*f[4]+.5)*this.width,b[1]=(.5*f[5]+.5)*this.height)};g.prototype.Rf=function(c,a,b){if(this.width!==c||this.height!==a||b){this.$d();this.width=c;this.height=a;this.k.viewport(0,0,c,a);a=c/a;var d=this.tl,t;t=1*Math.tan(45*Math.PI/360);a*=t;c=-a;b=-t;d||(d=dc());var f=a-c,k=t-b;d[0]=2/f;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/k;d[6]=
0;d[7]=0;d[8]=(a+c)/f;d[9]=(t+b)/k;d[10]=-1001/999;d[11]=-1;d[12]=0;d[13]=0;d[14]=-2E3/999;d[15]=0;gc(this.Ym,this.Xn,this.Ap,this.yc);c=[0,0];a=[0,0];this.Po(0,0,c);this.Po(1,1,a);this.Bm[0]=1/(a[0]-c[0]);this.Bm[1]=-1/(a[1]-c[1]);c=0;for(a=this.Pa.length;c<a;c++)b=this.Pa[c],b.Ge=!1,b.Vn&&(this.k.useProgram(b.yh),this.k.uniformMatrix4fv(b.Vn,!1,this.tl));this.k.useProgram(this.Pa[this.Ng].yh);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.Ne=this.Me=null}};g.prototype.ke=function(){gc(this.Ym,this.Xn,this.Ap,this.yc);fc(this.yc,this.Bm)};g.prototype.translate=function(c,a){if(0!==c||0!==a){this.pe[0]=c;this.pe[1]=a;this.pe[2]=0;var b=this.yc,d=this.pe,t=d[0],f=d[1],d=d[2];b[12]=b[0]*t+b[4]*f+b[8]*d+b[12];b[13]=b[1]*t+b[5]*f+b[9]*d+b[13];b[14]=b[2]*t+b[6]*f+b[10]*d+b[14];b[15]=b[3]*t+b[7]*f+b[11]*d+b[15]}};g.prototype.scale=function(c,a){if(1!==c||1!==a)this.pe[0]=c,this.pe[1]=a,this.pe[2]=
1,fc(this.yc,this.pe)};g.prototype.Vo=function(c){if(0!==c){var a=this.yc,b,d=Math.sin(c);c=Math.cos(c);var t=a[0],f=a[1],k=a[2],u=a[3],h=a[4],p=a[5],D=a[6],g=a[7];b?a!==b&&(b[8]=a[8],b[9]=a[9],b[10]=a[10],b[11]=a[11],b[12]=a[12],b[13]=a[13],b[14]=a[14],b[15]=a[15]):b=a;b[0]=t*c+h*d;b[1]=f*c+p*d;b[2]=k*c+D*d;b[3]=u*c+g*d;b[4]=t*-d+h*c;b[5]=f*-d+p*c;b[6]=k*-d+D*c;b[7]=u*-d+g*c}};g.prototype.re=function(){for(var c=!1,a=0;16>a;a++)if(this.Pn[a]!==this.yc[a]){c=!0;break}c&&(c=this.zc(),c.type=5,c.Y?
ec(this.yc,c.Y):c.Y=dc(this.yc),ec(this.yc,this.Pn),this.Qb=this.Ab=!1)};d.prototype.qr=function(){this.k.bindTexture(this.k.TEXTURE_2D,this.Bc)};d.prototype.rr=function(){var c=this.k;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.Bc);c.activeTexture(c.TEXTURE0)};d.prototype.nr=function(){var c=this.Bo,a=this.n;a.di=c;a=a.rg;a.Ef&&a.Wi!==c&&(a.Wi=c,this.k.uniform1f(a.Ef,c))};d.prototype.kr=function(){this.k.drawElements(this.k.TRIANGLES,this.rc,this.k.UNSIGNED_SHORT,2*this.ic)};d.prototype.mr=
function(){this.k.blendFunc(this.ic,this.rc)};d.prototype.sr=function(){var c,a,b,d=this.n.Pa,t=this.n.bn;c=0;for(a=d.length;c<a;c++)b=d[c],c===t&&b.Ui?(b.tm(this.Y),b.Ge=!0):b.Ge=!1;ec(this.Y,this.n.qk)};d.prototype.lr=function(){var c=this.k,a=this.n;this.Bc?(a.Ne===this.Bc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),a.Ne=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,a.js),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Bc,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,
c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};d.prototype.ir=function(){var c=this.k;0===this.ic?(c.clearColor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),c.clearColor(0,0,0,0),c.clear(this.k.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};d.prototype.jr=function(){var c=this.k,a=this.n,b=a.Pa[1];c.useProgram(b.yh);!b.Ge&&b.Ui&&(b.tm(a.qk),b.Ge=!0);c.enableVertexAttribArray(b.xc);
c.bindBuffer(c.ARRAY_BUFFER,a.Ll);c.vertexAttribPointer(b.xc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.ic/4,this.rc);b=a.rg;c.useProgram(b.yh);0<=b.xc&&(c.enableVertexAttribArray(b.xc),c.bindBuffer(c.ARRAY_BUFFER,a.Jh[a.md]),c.vertexAttribPointer(b.xc,2,c.FLOAT,!1,0,0));0<=b.he&&(c.enableVertexAttribArray(b.he),c.bindBuffer(c.ARRAY_BUFFER,a.Dh[a.md]),c.vertexAttribPointer(b.he,2,c.FLOAT,!1,0,0))};d.prototype.or=function(){var c=this.k,a=this.n,b=a.Pa[this.ic];a.bn=this.ic;a.rg=b;c.useProgram(b.yh);
!b.Ge&&b.Ui&&(b.tm(a.qk),b.Ge=!0);b.Ef&&b.Wi!==a.di&&(b.Wi=a.di,c.uniform1f(b.Ef,a.di));0<=b.xc&&(c.enableVertexAttribArray(b.xc),c.bindBuffer(c.ARRAY_BUFFER,a.Jh[a.md]),c.vertexAttribPointer(b.xc,2,c.FLOAT,!1,0,0));0<=b.he&&(c.enableVertexAttribArray(b.he),c.bindBuffer(c.ARRAY_BUFFER,a.Dh[a.md]),c.vertexAttribPointer(b.he,2,c.FLOAT,!1,0,0))};d.prototype.pr=function(){var c,a,b=this.n.rg,d=this.k;c=this.Y;b.Yg&&this.n.Ne!==this.Bc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.Bc),
this.n.Ne=this.Bc,d.activeTexture(d.TEXTURE0));var t=c[0];b.pl&&t!==b.ho&&(b.ho=t,d.uniform1f(b.pl,t));t=c[1];b.ol&&t!==b.fo&&(b.fo=t,d.uniform1f(b.ol,t));t=c[2];a=c[3];!b.Se||t===b.$n&&a===b.ao||(b.$n=t,b.ao=a,d.uniform2f(b.Se,t,a));t=c[4];a=c[5];!b.Re||t===b.Yn&&a===b.Zn||(b.Yn=t,b.Zn=t,d.uniform2f(b.Re,t,a));t=c[6];b.Xg&&t!==b.co&&(b.co=t,d.uniform1f(b.Xg,t));t=c[7];b.Wg&&t!==b.bo&&(b.bo=t,d.uniform1f(b.Wg,t));t=c[8];a=c[9];!b.$g||t===b.lo&&a===b.mo||(b.lo=t,b.mo=a,d.uniform2f(b.$g,t,a));t=c[10];
a=c[11];!b.Zg||t===b.jo&&a===b.ko||(b.jo=t,b.ko=a,d.uniform2f(b.Zg,t,a));b.ql&&d.uniform1f(b.ql,Xa()/1E3);if(b.J.length)for(c=0,a=b.J.length;c<a;c++)t=this.fp[c],t!==b.ll[c]&&(b.ll[c]=t,d.uniform1f(b.J[c][1],t))};g.prototype.zc=function(){this.Uc===this.kd.length&&this.kd.push(new d(0,this));return this.kd[this.Uc++]};g.prototype.$d=function(){if(0!==this.Uc&&!this.k.isContextLost()){var c=this.k;0<this.Mf&&(c.bindBuffer(c.ARRAY_BUFFER,this.Ll),c.bufferSubData(c.ARRAY_BUFFER,0,this.Ml.subarray(0,
this.Mf)),a&&0<=a.xc&&"<point>"===a.name&&c.vertexAttribPointer(a.xc,4,c.FLOAT,!1,0,0));if(0<this.fd){var a=this.rg;c.bindBuffer(c.ARRAY_BUFFER,this.Jh[this.md]);c.bufferSubData(c.ARRAY_BUFFER,0,this.Oj.subarray(0,this.fd));a&&0<=a.xc&&"<point>"!==a.name&&c.vertexAttribPointer(a.xc,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Dh[this.md]);c.bufferSubData(c.ARRAY_BUFFER,0,this.Cj.subarray(0,this.fd));a&&0<=a.he&&"<point>"!==a.name&&c.vertexAttribPointer(a.he,2,c.FLOAT,!1,0,0)}for(var b,c=0,a=
this.Uc;c<a;c++)switch(b=this.kd[c],b.type){case 1:b.kr();break;case 2:b.qr();break;case 3:b.nr();break;case 4:b.mr();break;case 5:b.sr();break;case 6:b.lr();break;case 7:b.ir();break;case 8:b.jr();break;case 9:b.or();break;case 10:b.pr();break;case 11:b.rr()}this.Mf=this.fd=this.Uc=0;this.Qb=this.Ab=!1;this.md++;4<=this.md&&(this.md=0)}};g.prototype.Xe=function(c){if(c!==this.Qn){var a=this.zc();a.type=3;this.Qn=a.Bo=c;this.Qb=this.Ab=!1}};g.prototype.Xb=function(c){if(c!==this.Me){var a=this.zc();
a.type=2;this.Me=a.Bc=c;this.Qb=this.Ab=!1}};g.prototype.le=function(c,a){if(c!==this.Rn||a!==this.On){var b=this.zc();b.type=4;b.ic=c;b.rc=a;this.Rn=c;this.On=a;this.Qb=this.Ab=!1}};g.prototype.Zo=function(){this.le(this.k.ONE,this.k.ONE_MINUS_SRC_ALPHA)};g.prototype.sh=function(c,a,b,d,t,f,k,u){15992<=this.fd&&this.$d();var h=this.fd,p=this.Oj,g=this.Cj;if(this.Ab)this.kd[this.Uc-1].rc+=6;else{var m=this.zc();m.type=1;m.ic=h/4*3;m.rc=6;this.Ab=!0;this.Qb=!1}p[h]=c;g[h++]=0;p[h]=a;g[h++]=0;p[h]=
b;g[h++]=1;p[h]=d;g[h++]=0;p[h]=t;g[h++]=1;p[h]=f;g[h++]=1;p[h]=k;g[h++]=0;p[h]=u;g[h++]=1;this.fd=h};g.prototype.Ed=function(c,a,b,d,g,f,k,u,h){15992<=this.fd&&this.$d();var p=this.fd,D=this.Oj,m=this.Cj;if(this.Ab)this.kd[this.Uc-1].rc+=6;else{var n=this.zc();n.type=1;n.ic=p/4*3;n.rc=6;this.Ab=!0;this.Qb=!1}var n=h.left,e=h.top,v=h.right;h=h.bottom;D[p]=c;m[p++]=n;D[p]=a;m[p++]=e;D[p]=b;m[p++]=v;D[p]=d;m[p++]=e;D[p]=g;m[p++]=v;D[p]=f;m[p++]=h;D[p]=k;m[p++]=n;D[p]=u;m[p++]=h;this.fd=p};g.prototype.Ht=
function(c,a,b,d){7996<=this.Mf&&this.$d();var g=this.Mf,f=this.Ml;if(this.Qb)this.kd[this.Uc-1].rc++;else{var k=this.zc();k.type=8;k.ic=g;k.rc=1;this.Qb=!0;this.Ab=!1}f[g++]=c;f[g++]=a;f[g++]=b;f[g++]=d;this.Mf=g};g.prototype.cd=function(c){if(this.Ng!==c){if(!this.Pa[c]){if(0===this.Ng)return;c=0}var a=this.zc();a.type=9;this.Ng=a.ic=c;this.Qb=this.Ab=!1}};g.prototype.qh=function(c){c=this.Pa[c];return!(!c.Se&&!c.Re)};g.prototype.Ol=function(c){c=this.Pa[c];return!!(c.Se||c.Re||c.an)};g.prototype.Ot=
function(c){c=this.Pa[c];return 0!==c.zk||0!==c.Ak};g.prototype.zs=function(c){return this.Pa[c].zk};g.prototype.As=function(c){return this.Pa[c].Ak};g.prototype.Bs=function(c,a){return this.Pa[c].J[a][2]};g.prototype.nj=function(c){return this.Pa[c].Rm};g.prototype.Qf=function(c,a,b,d,g,f,k,u,h,p,m,l,n,e){var v=this.Pa[this.Ng],r,z;if(v.Rs||e.length){r=this.zc();r.type=10;r.Y?ec(this.yc,r.Y):r.Y=dc();z=r.Y;z[0]=a;z[1]=b;z[2]=d;z[3]=g;z[4]=f;z[5]=k;z[6]=u;z[7]=h;z[8]=p;z[9]=m;z[10]=l;z[11]=n;v.Yg?
r.Bc=c:r.Bc=null;if(e.length)for(b=r.fp,b.length=e.length,c=0,a=e.length;c<a;c++)b[c]=e[c];this.Qb=this.Ab=!1}};g.prototype.clear=function(c,a,b,d){var g=this.zc();g.type=7;g.ic=0;g.Y||(g.Y=dc());g.Y[0]=c;g.Y[1]=a;g.Y[2]=b;g.Y[3]=d;this.Qb=this.Ab=!1};g.prototype.clearRect=function(c,a,b,d){if(!(0>b||0>d)){var g=this.zc();g.type=7;g.ic=1;g.Y||(g.Y=dc());g.Y[0]=c;g.Y[1]=a;g.Y[2]=b;g.Y[3]=d;this.Qb=this.Ab=!1}};g.prototype.Nt=function(){this.$d();this.k.flush()};var q=[],l={};g.prototype.Xq=function(){q.length=
0;l={}};g.prototype.Df=function(c,a,b,d){a=!!a;b=!!b;var g=c.src+","+a+","+b+(a?",undefined":""),f=null;if("undefined"!==typeof c.src&&l.hasOwnProperty(g))return f=l[g],f.Vh++,f;this.$d();var k=this.k,u=ia(c.width)&&ia(c.height),f=k.createTexture();k.bindTexture(k.TEXTURE_2D,f);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var h=k.RGBA,p=k.RGBA,m=k.UNSIGNED_BYTE;if(d&&!this.Je)switch(d){case 1:p=h=k.RGB;break;case 2:m=k.UNSIGNED_SHORT_4_4_4_4;break;case 3:m=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:p=
h=k.RGB,m=k.UNSIGNED_SHORT_5_6_5}if(!u&&a){d=document.createElement("canvas");d.width=ja(c.width);d.height=ja(c.height);var B=d.getContext("2d");B.webkitImageSmoothingEnabled=b;B.mozImageSmoothingEnabled=b;B.msImageSmoothingEnabled=b;B.imageSmoothingEnabled=b;B.drawImage(c,0,0,c.width,c.height,0,0,d.width,d.height);k.texImage2D(k.TEXTURE_2D,0,h,p,m,d)}else k.texImage2D(k.TEXTURE_2D,0,h,p,m,c);a?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,
k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));b?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.LINEAR),u&&this.gn?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));
k.bindTexture(k.TEXTURE_2D,null);this.Me=null;f.lg=c.width;f.kg=c.height;f.Vh=1;f.Wm=g;q.push(f);return l[g]=f};g.prototype.Xd=function(c,a,b){var d;this.$d();var g=this.k;this.Je&&(d=!1);var f=g.createTexture();g.bindTexture(g.TEXTURE_2D,f);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,c,a,0,g.RGBA,d?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,
b?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,b?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.Me=null;f.lg=c;f.kg=a;q.push(f);return f};g.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.Vh&&1<c.Vh?c.Vh--:(this.$d(),c===this.Me&&(this.k.bindTexture(this.k.TEXTURE_2D,null),this.Me=null),c===this.Ne&&(this.k.activeTexture(this.k.TEXTURE1),this.k.bindTexture(this.k.TEXTURE_2D,null),this.k.activeTexture(this.k.TEXTURE0),this.Ne=null),Da(q,c),"undefined"!==
typeof c.Wm&&delete l[c.Wm],this.k.deleteTexture(c)))};g.prototype.bd=function(c){if(c!==this.Uo){var a=this.zc();a.type=6;this.Uo=a.Bc=c;this.Qb=this.Ab=!1}};kb=g})();
(function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function m(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function d(e){if(e&&(e.getContext||e.dc)&&!e.c2runtime){e.c2runtime=this;var a=this;this.tc=(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.$a=!!e.dc;this.sf="undefined"!==typeof window.AppMobi||this.$a;this.gc=!!window.c2cocoonjs;this.Jc=!!window.c2ejecta;this.gc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Jc&&(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.ba=this.$a||this.gc||this.Jc;this.Je=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Jn=/tizen/i.test(navigator.userAgent);this.Fi=/android/i.test(navigator.userAgent)&&!this.Jn&&!this.Je;this.jl=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Je;this.Nn=/ipad/i.test(navigator.userAgent);this.Lg=this.jl||this.Nn||this.Jc;this.gt=this.jl&&/os\s6/i.test(navigator.userAgent);this.Fg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Je;this.dl=/amazonwebappplatform/i.test(navigator.userAgent);this.Zs=/firefox/i.test(navigator.userAgent);this.In=/safari/i.test(navigator.userAgent)&&!this.Fg&&!this.Je;this.ct=/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.Ln=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.et=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.vf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.hl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Kn=this.Ln||this.et||this.hl;this.Ys=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.Gi=this.Fi&&!this.Fg&&!this.Gg&&!this.Zs&&!this.dl&&!this.ba;this.devicePixelRatio=1;this.Ke=this.tc||this.Gg||this.sf||this.gc||this.Fi||this.Lg||this.vf||this.hl||this.Ys||this.Jn||this.Jc;this.Ke||(this.Ke=/(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.Zm=document.getElementById("c2canvasdiv");this.X=this.n=this.k=null;this.Gk="";this.ni=!1;this.zo=this.Ao=0;this.canvas.oncontextmenu=function(e){e.preventDefault&&e.preventDefault();return!1};this.canvas.onselectstart=function(e){e.preventDefault&&e.preventDefault();return!1};this.$a&&(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.Gi&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=e.width;this.height=e.height;this.L=this.width;this.K=this.height;this.bi=this.width;this.ai=this.height;this.Pg=window.innerWidth;this.Og=window.innerHeight;this.ls=!1;this.ca=!0;this.Ig=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.m=[];this.Fa=[];this.Cf={};this.Tb=[];this.yk={};this.qd=[];this.fg=[];this.Jj=[];this.Zj=[];this.Oq=[];this.ze={};this.el=
this.de=!1;this.xd=0;this.gl=!1;this.Gc=[];this.yd=this.hb=this.Pi=this.$l="";this.Bh=this.ip=!1;this.nk=this.ah=this.Zd=this.Be=0;this.Zf=1;this.vc=new ab;this.Md=new ab;this.Zi=this.pi=this.ki=this.Yf=this.Pe=this.Fk=this.Mi=0;this.ld=null;this.uk=[];this.xk=[];this.ji=-1;this.rl=[[]];this.pm=this.Vi=0;this.Ql(null);this.uo=this.eh=0;this.nl=!0;this.tg=0;this.Ch=[];this.mm=this.Rl=-1;this.Le=!0;this.Ti=0;this.Hg=!1;this.fu=0;this.ff=null;this.fa=this.Bi=!1;this.yo=new ba;this.Al=new ba;this.Bl=
new ba;this.To=[];this.Pc=new cb([]);this.jm=new cb([]);this.Sd=[];this.xi={};this.hf={};this.ef={};this.eg={};this.Tm={};this.Un=this.Oi=this.Sb=this.hc=this.Tn=this.Ni=this.Z=null;this.bg=this.il=!1;this.Hk=[null,null];this.Ee=0;this.Ck="";this.Cd={};this.zh=this.Qe=null;this.kp="";this.Yi=[];this.Rt()}}function q(e){e.target.result.createObjectStore("saves",{keyPath:"slot"})}function l(e,a,b,f){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=q;c.onerror=f;c.onsuccess=function(c){c=c.target.result;
c.onerror=f;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:e,data:a}).onsuccess=b}}function c(e,a,b){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=q;f.onerror=b;f.onsuccess=function(f){f=f.target.result;f.onerror=b;var c=f.transaction(["saves"]).objectStore("saves").get(e);c.onsuccess=function(){c.result?a(c.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=window.location+"?continuous"}function b(e){var a,b={};for(a in e)!e.hasOwnProperty(a)||e[a]instanceof ba||e[a]&&"undefined"!==typeof e[a].yv||(b[a]=e[a]);return b}d.prototype.Rt=function(){var e=this,a;this.vf?a=new ActiveXObject("Microsoft.XMLHTTP"):a=new XMLHttpRequest;var b="data.js";if(this.Ln||this.vf||this.hl)b="data.json";a.open("GET",b,!0);var f=!1;if(!this.ba&&"response"in a&&"responseType"in a)try{a.responseType="json",f="json"===a.responseType}catch(c){f=
!1}if(!f&&"responseType"in a)try{a.responseType="text"}catch(k){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(h){}this.vf?a.onreadystatechange=function(){4===a.readyState&&e.Ri(JSON.parse(a.responseText))}:(a.onload=function(){if(f)e.Ri(a.response);else if(e.Jc){var b=a.responseText,b=b.substr(b.indexOf("{"));e.Ri(JSON.parse(b))}else e.Ri(JSON.parse(a.responseText))},a.onerror=function(e){ea("Error requesting "+b+":");ea(e)});a.send()};d.prototype.Vs=function(){var e=
this,a,b,f,c,k,h,d,n,u;this.fe=(!this.ba||this.Jc)&&this.qu&&!this.Gi;0===this.gb&&this.Lg&&(this.fe=!1);this.devicePixelRatio=this.fe?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.bb();b=!(!this.ls&&(!this.ak||this.ee||this.Kn||this.vf||this.Gg||this.tc||this.dl));0<this.gb&&this.setSize(g(),m(),!0);try{this.Cr&&(this.gc||this.Jc||!this.ba)&&(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.k.getExtension("WEBGL_debug_renderer_info");this.ba||(this.Wa=document.createElement("canvas"),jQuery(this.Wa).appendTo(this.canvas.parentNode),this.Wa.oncontextmenu=function(){return!1},this.Wa.onselectstart=function(){return!1},this.Wa.width=this.bi,this.Wa.height=this.ai,jQuery(this.Wa).css({width:this.bi+"px",height:this.ai+"px"}),this.Oo(),this.Kl=this.Wa.getContext("2d"));this.n=new kb(this.k,this.Ke);this.n.Rf(this.canvas.width,
this.canvas.height);this.n.gn=0!==this.tr;this.X=null;this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();e.qt();K("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){e.n.Cn();e.n.Rf(e.n.width,e.n.height,!0);e.hc=null;e.Sb=null;e.Hk[0]=null;e.Hk[1]=null;e.tt();e.ca=!0;K("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(b=this.m.length;a<b;a++)for(k=this.m[a],f=0,
c=k.G.length;f<c;f++)d=k.G[f],d.ab=this.n.Pk(d.id),this.bg=this.bg||this.n.qh(d.ab);a=0;for(b=this.Tb.length;a<b;a++){n=this.Tb[a];f=0;for(c=n.G.length;f<c;f++)d=n.G[f],d.ab=this.n.Pk(d.id);f=0;for(c=n.I.length;f<c;f++)for(u=n.I[f],k=0,h=u.G.length;k<h;k++)d=u.G[k],d.ab=this.n.Pk(d.id),this.bg=this.bg||this.n.qh(d.ab)}}else{if(0<this.gb&&this.$a){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.X=AppMobi.canvas.getContext("2d");try{this.X.samplingMode=
this.S?"smooth":"sharp",this.X.globalScale=1,this.X.HTML5CompatibilityMode=!0,this.X.imageSmoothingEnabled=this.S}catch(D){}0!==this.width&&0!==this.height&&(this.X.width=this.width,this.X.height=this.height)}this.X||(this.gc?(a={antialias:!!this.S,alpha:b},this.X=this.canvas.getContext("2d",a)):(a={alpha:b},this.X=this.canvas.getContext("2d",a)),this.X.webkitImageSmoothingEnabled=this.S,this.X.mozImageSmoothingEnabled=this.S,this.X.msImageSmoothingEnabled=this.S,this.X.imageSmoothingEnabled=this.S);
this.Kl=this.Wa=null}this.rp=function(a){e.Xa(!1,a)};window==window.top||this.ba||this.Kn||this.vf||(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.Pi="__c2_continuouspreview",this.Bh=!0),this.Ft&&!this.Ke&&
(jQuery(window).focus(function(){e.setSuspended(!1)}),jQuery(window).blur(function(){e.setSuspended(!0)})));this.ba||(a=function(e){if(jb(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.gb&&this.fe&&1<this.devicePixelRatio&&this.setSize(this.Ma,this.La,!0);this.wp();this.Os();this.go();this.ta={}};d.prototype.setSize=function(e,a,b){var f=0,c=0,k=0,h=0,h=0,d=this.gt&&this.In&&!navigator.standalone&&!this.ba&&!this.tc;d&&(a+=60);if(this.Pg!==e||this.Og!==a||b){this.Pg=e;this.Og=a;var n=this.gb,u=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Hg)&&!this.tc;if(u||0!==
this.gb||b)u&&0<this.Ee&&(n=this.Ee),b=this.devicePixelRatio,4<=n?(k=this.Ma/this.La,e/a>k?(k*=a,5===n?(h=k*b/this.Ma,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),k=this.Ma*h/b,h=this.La*h/b,f=(e-k)/2,c=(a-h)/2,e=k,a=h):(f=(e-k)/2,e=k)):(h=e/k,5===n?(h=h*b/this.La,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),k=this.Ma*h/b,h=this.La*h/b,f=(e-k)/2,c=(a-h)/2,e=k):c=(a-h)/2,a=h),u&&!this.ee&&(c=f=0)):this.ee&&this.Hg&&0===this.nn&&(f=Math.floor((e-this.Ma)/2),c=Math.floor((a-this.La)/2),e=this.Ma,a=
this.La),2>n&&(this.jg=b),this.fe&&this.Nn&&1<b&&(1024<=e&&(e=1023),1024<=a&&(a=1023)),this.bi=Math.round(e),this.ai=Math.round(a),this.width=Math.round(e*b),this.height=Math.round(a*b),this.ca=!0,this.Hp?(this.L=this.width,this.K=this.height,this.nc=!0):this.width<this.Ma&&this.height<this.La||1===n?(this.L=this.width,this.K=this.height,this.nc=!0):(this.L=this.Ma,this.K=this.La,this.nc=!1,2===n?(k=this.Ma/this.La,n=this.Pg/this.Og,n<k?this.L=this.K*n:n>k&&(this.K=this.L/n)):3===n&&(k=this.Ma/this.La,
n=this.Pg/this.Og,n>k?this.L=this.K*n:n<k&&(this.K=this.L/n))),this.Zm&&!this.ba&&(jQuery(this.Zm).css({width:Math.round(e)+"px",height:Math.round(a)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(c)+"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.Jc?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(c)+
"px",this.canvas.style.width=Math.round(e)+"px",this.canvas.style.height=Math.round(a)+"px"):this.fe&&!this.ba&&(this.canvas.style.width=Math.round(e)+"px",this.canvas.style.height=Math.round(a)+"px")),this.Wa&&(this.Wa.width=Math.round(e),this.Wa.height=Math.round(a),this.Wa.style.width=Math.round(e)+"px",this.Wa.style.height=Math.round(a)+"px"),this.n&&this.n.Rf(Math.round(e*b),Math.round(a*b)),this.$a&&this.X&&(this.X.width=Math.round(e),this.X.height=Math.round(a)),this.X&&(this.X.webkitImageSmoothingEnabled=
this.S,this.X.mozImageSmoothingEnabled=this.S,this.X.msImageSmoothingEnabled=this.S,this.X.imageSmoothingEnabled=this.S),this.wp(),this.ba||!d&&!this.jl||window.setTimeout(function(){window.scrollTo(0,1)},100)}};d.prototype.wp=function(){if(this.Qq&&0!==this.Il){var e="portrait";2===this.Il&&(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.qt=function(){this.n.Xq();this.il=!0;var e,a,b;e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.$i&&b.$i()};d.prototype.tt=function(){this.il=!1;var e,a,b;e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.aj&&b.aj()};d.prototype.Oo=function(){if(!this.ba){var e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Hg)&&!this.tc?jQuery(this.canvas).offset():
jQuery(this.canvas).position();e.position="absolute";jQuery(this.Wa).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.Rl&&w&&w(this.Rl),-1!==this.mm&&clearTimeout(this.mm),e=0,a=this.Ch.length;e<a;e++)this.Ch[e](!0);else if(!e&&this.Ig){K("[Construct 2] Resuming");this.Ig=
!1;this.Mi=Xa();this.Pe=Xa();e=this.ah=this.pi=0;for(a=this.Ch.length;e<a;e++)this.Ch[e](!1);this.Xa(!1)}};d.prototype.Mq=function(e){this.Ch.push(e)};d.prototype.Pd=function(e){return this.Yi[e]};d.prototype.Ri=function(e){e&&e.project||ea("Project model unavailable");e=e.project;this.name=e[0];this.mn=e[1];this.gb=e[12];this.nn=e[12];this.Ma=e[10];this.La=e[11];this.Io=this.Ma/2;this.Jo=this.La/2;this.ba&&!this.Jc&&(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.nn=this.gb=3);this.xm=e[18];this.Vg=e[19];0===this.Vg&&(this.Qe=new Image,this.Qe.crossOrigin="anonymous",this.Qe.src="loading-logo.png");this.eh=e[21];this.Yi=ic();this.dd=new X(this);var a,b,f,c,k,h,d,n,u;a=0;for(b=e[2].length;a<b;a++)d=e[2][a],f=this.Pd(d[0]),lb(d,f.prototype),u=new f(this),u.uj=d[1],u.ge=d[2],u.ro=d[9],u.ga&&u.ga(),this.plugins.push(u);this.Yi=ic();a=0;for(b=e[3].length;a<b;a++){d=e[3][a];k=this.Pd(d[1]);u=null;f=0;for(c=this.plugins.length;f<c;f++)if(this.plugins[f]instanceof
k){u=this.plugins[f];break}var p=new u.cb(u);p.name=d[0];p.A=d[2];p.cl=d[3].slice(0);p.su=d[3].length;p.Rq=d[4];p.ns=d[5];p.O=d[11];p.A?(p.Xi=[],p.rd=this.tg++,p.pa=null):(p.Xi=null,p.rd=-1,p.pa=[]);p.li=null;p.lf=null;p.hn=null;p.uc=!1;p.Ob=null;d[6]?(p.Dj=d[6][0],p.Ej=d[6][1],p.Eh=d[6][2]):(p.Dj=null,p.Ej=0,p.Eh=0);d[7]?p.tb=d[7]:p.tb=null;p.index=a;p.c=[];p.fi=[];p.ne=[new mb(p)];p.pd=0;p.Vc=null;p.dr=0;p.Wf=!0;p.Lj=nb;p.ss=ob;p.xs=pb;p.aa=qb;p.rh=rb;p.Pl=tb;p.Nf=ub;p.ri=vb;p.Jk=wb;p.Mk=xb;p.jd=
yb;p.tn=zb;p.Yh=new db(this.Ma,this.La);p.Nh=!0;p.Oh=!1;p.ta={};p.toString=Ab;p.Fa=[];f=0;for(c=d[8].length;f<c;f++){n=d[8][f];var g=this.Pd(n[1]),m=null;k=0;for(h=this.Fa.length;k<h;k++)if(this.Fa[k]instanceof g){m=this.Fa[k];break}m||(m=new g(this),m.so=[],m.Hf=new ba,m.ga&&m.ga(),this.Fa.push(m));-1===m.so.indexOf(p)&&m.so.push(p);k=new m.cb(m,p);k.name=n[0];k.O=n[2];k.ga();p.Fa.push(k)}p.global=d[9];p.fl=d[10];p.G=[];f=0;for(c=d[12].length;f<c;f++)p.G.push({id:d[12][f][0],name:d[12][f][1],ab:-1,
Qa:!0,index:f});p.Iv=d[13];this.xm&&!p.A&&!p.fl&&u.ge||p.ga();p.name&&(this.types[p.name]=p);this.m.push(p);u.uj&&(f=new u.Ea(p),f.uid=this.eh++,f.Ro=this.uo++,f.He=0,f.yg=Bb,f.toString=Cb,f.Da=d[14],f.ga(),p.c.push(f),this.Cd[f.uid.toString()]=f)}a=0;for(b=e[4].length;a<b;a++)for(k=e[4][a],h=this.m[k[0]],f=1,c=k.length;f<c;f++)d=this.m[k[f]],d.pa.push(h),h.Xi.push(d);a=0;for(b=e[27].length;a<b;a++){k=e[27][a];h=[];f=0;for(c=k.length;f<c;f++)h.push(this.m[k[f]]);f=0;for(c=h.length;f<c;f++)h[f].uc=
!0,h[f].Ob=h}if(0<this.tg)for(a=0,b=this.m.length;a<b;a++)if(d=this.m[a],!d.A&&d.pa.length){d.li=Array(this.tg);d.lf=Array(this.tg);d.hn=Array(this.tg);p=[];f=m=g=n=0;for(c=d.pa.length;f<c;f++)for(u=d.pa[f],d.li[u.rd]=n,n+=u.su,d.lf[u.rd]=g,g+=u.Rq,d.hn[u.rd]=m,m+=u.ns,k=0,h=u.G.length;k<h;k++)p.push(wa({},u.G[k]));d.G=p.concat(d.G);f=0;for(c=d.G.length;f<c;f++)d.G[f].index=f}a=0;for(b=e[5].length;a<b;a++)d=e[5][a],f=new Db(this,d),this.Cf[f.name]=f,this.Tb.push(f);a=0;for(b=e[6].length;a<b;a++)d=
e[6][a],f=new Eb(this,d),this.yk[f.name]=f,this.qd.push(f);a=0;for(b=this.qd.length;a<b;a++)this.qd[a].Ca();a=0;for(b=this.qd.length;a<b;a++)this.qd[a].rm();a=0;for(b=this.Jj.length;a<b;a++)this.Jj[a].Ca();this.Jj.length=0;this.Pq=e[7];this.Ck=e[8];this.$c=e[9];this.jg=1;this.Cr=e[13];this.S=e[14];this.ak=e[15];this.qu=e[17];this.Il=e[20];this.Qq=0<this.Il;this.Ft=e[22];this.nc=this.Hp=e[23];this.tr=e[24];this.Lt=e[25];this.yj=Date.now();this.Yi.length=0;this.Vs()};var t=!1;d.prototype.zm=function(e,
a){e.cocoonLazyLoad=!0;e.onerror=function(a){t=e.Vm=!0;console&&console.error&&console.error("Error loading image '"+e.src+"': ",a)};this.Jc?e.src=a:e.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){e.src=a},function(b){t=e.Vm=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):(e.crossOrigin="anonymous",e.src=a));this.fg.push(e)};d.prototype.ks=function(e){var a,b;a=0;for(b=this.fg.length;a<b;a++)if(this.fg[a].Yq===e)return this.fg[a];
return null};var f=0,k=!1;d.prototype.Os=function(){this.ff&&(f=this.ff.cu(this.Pq))};d.prototype.Sm=function(){var e=f,a=0,b=0,c=!0,h,d,b=0;for(h=this.fg.length;b<h;b++){d=this.fg[b];var n=d.ok;if(!n||0>=n)n=5E4;e+=n;d.src&&(d.complete||d.loaded)&&!d.Vm?a+=n:c=!1}c&&this.Lt&&this.ff&&(k||(this.ff.gu(),k=!0),b=this.ff.ys(),a+=b,b<f&&(c=!1));this.We=0==e?0:a/e;return c};d.prototype.go=function(){if(this.X||this.n){var e=this.X||this.Kl;this.Wa&&this.Oo();this.We=0;this.Sn=-1;if(this.Sm())this.Ps();
else{var a=Date.now()-this.yj;if(e){var b=this.width,f=this.height,c=this.devicePixelRatio;this.Wa&&(b=this.bi,f=this.ai,c=1);if(3!==this.Vg&&(this.gc||500<=a&&this.Sn!=this.We)){e.clearRect(0,0,b,f);var a=b/2,f=f/2,b=0===this.Vg&&this.Qe.complete,k=40*c,h=0,d=80*c,n;b&&(d=this.Qe.width*c,n=this.Qe.height*c,k=d/2,h=n/2,e.drawImage(this.Qe,R(a-k),R(f-h),d,n));1>=this.Vg?(a=R(a-k)+.5,f=R(f+(h+(b?12*c:0)))+.5,e.fillStyle=t?"red":"DodgerBlue",e.fillRect(a,f,Math.floor(d*this.We),6*c),e.strokeStyle="black",
e.strokeRect(a,f,d,6*c),e.strokeStyle="white",e.strokeRect(a-1*c,f-1*c,d+2*c,8*c)):2===this.Vg&&(e.font=this.Jc?"12pt ArialMT":"12pt Arial",e.fillStyle=t?"#f00":"#999",e.Hv="middle",c=Math.round(100*this.We)+"%",b=e.measureText?e.measureText(c):null,e.fillText(c,a-(b?b.width:0)/2,f))}this.Sn=this.We}setTimeout(function(e){return function(){e.go()}}(this),this.gc?10:100)}}};d.prototype.Ps=function(){this.Wa&&(this.canvas.parentNode.removeChild(this.Wa),this.Wa=this.Kl=null);this.yj=Date.now();this.Pe=
Xa();var e,a,b;if(this.xm)for(e=0,a=this.m.length;e<a;e++)b=this.m[e],b.A||b.fl||!b.Ba.ge||b.ga();else this.Le=!1;e=0;for(a=this.Tb.length;e<a;e++)this.Tb[e].Zq();2<=this.gb&&(e=this.Ma/this.La,a=this.width/this.height,this.jg=2!==this.gb&&a>e||2===this.gb&&a<e?this.height/this.La:this.width/this.Ma);this.mn?this.Cf[this.mn].hm():this.Tb[0].hm();this.xm||(this.Ti=1,this.trigger(X.prototype.j.Gm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();e=0;for(a=this.m.length;e<
a;e++)b=this.m[e],b.pt&&b.pt();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Xa(!1);this.$a&&AppMobi.webview.execute("onGameReady();")};var u=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Xa=function(e,a,b){if(this.Z){var f=Xa();if(b||!this.Ig||e){e||(u?this.Rl=u(this.rp):this.mm=setTimeout(this.rp,this.Ke?1:
16));a=a||f;var c=this.gb;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.tc)||this.Hg)&&0<this.Ee&&(c=this.Ee);0<c&&(!this.Lg||window.self!==window.top)&&(c=window.innerHeight,this.Pg===window.innerWidth&&this.Og===c||this.setSize(g(),m()));this.ba||(b?(this.ni||(this.Gk=jQuery(this.canvas).css("margin")||"0",this.ni=!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.ni?(this.Fg||this.ee||jQuery(this.canvas).css("margin",this.Gk),this.Gk="",this.ni=!1,0===this.gb&&this.setSize(Math.round(this.Ao/this.devicePixelRatio),Math.round(this.zo/this.devicePixelRatio),!0)):(this.Ao=this.width,this.zo=this.height));this.Le&&(b=this.Sm(),this.Ti=this.We,b&&(this.Le=!1,this.We=1,this.trigger(X.prototype.j.Gm,null)));this.jt(a);!this.ca&&!this.gc||this.il||this.Bh||e||(this.ca=
!1,this.n?this.mb():this.Hc(),this.zh&&(this.canvas&&this.canvas.toDataURL&&(this.kp=this.canvas.toDataURL(this.zh[0],this.zh[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.kp),this.trigger(X.prototype.j.cq,null)),this.zh=null));this.Cv||(this.Yf++,this.ki++,this.pi++);this.ah+=Xa()-f}}};d.prototype.jt=function(e){var a,b,f,c,k,h,d,n;1E3<=e-this.Pe&&(this.Pe+=1E3,1E3<=e-this.Pe&&(this.Pe=e),this.Fk=this.pi,this.pi=0,this.nk=this.ah,this.ah=0);0!==this.Mi&&(a=e-this.Mi,0>a&&(a=0),this.Zd=a/1E3,
.5<this.Zd?this.Zd=0:.1<this.Zd&&(this.Zd=.1));this.Mi=e;this.Be=this.Zd*this.Zf;this.vc.add(this.Be);this.Md.add(this.Zd);e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Hg)&&!this.tc;2<=this.gb||e&&0<this.Ee?(a=this.Ma/this.La,b=this.width/this.height,f=this.gb,e&&0<this.Ee&&(f=this.Ee),this.jg=2!==f&&b>a||2===f&&b<a?this.height/this.La:this.width/this.Ma,this.Z&&(this.Z.Xo(this.Z.scrollX),this.Z.Yo(this.Z.scrollY))):this.jg=this.fe?
this.devicePixelRatio:1;this.bb();this.xd++;this.dd.Ut();this.xd--;this.bb();this.xd++;b=this.yo.Rc();e=0;for(a=b.length;e<a;e++)b[e].Ev();e=0;for(a=this.m.length;e<a;e++)if(h=this.m[e],!h.A&&(h.Fa.length||h.pa.length))for(b=0,f=h.c.length;b<f;b++)for(d=h.c[b],c=0,k=d.F.length;c<k;c++)d.F[c].Xa();e=0;for(a=this.m.length;e<a;e++)if(h=this.m[e],!h.A&&(h.Fa.length||h.pa.length))for(b=0,f=h.c.length;b<f;b++)for(d=h.c[b],c=0,k=d.F.length;c<k;c++)n=d.F[c],n.Kt&&n.Kt();b=this.Al.Rc();e=0;for(a=b.length;e<
a;e++)b[e].Xa();this.xd--;this.Qs();for(e=0;this.ld&&10>e++;)this.cn(this.ld);e=0;for(a=this.qd.length;e<a;e++)this.qd[e].Wk=!1;this.Z.Ce&&this.Z.Ce.Oa();this.To.length=0;this.nl=!1;this.xd++;e=0;for(a=this.m.length;e<a;e++)if(h=this.m[e],!h.A&&(h.Fa.length||h.pa.length))for(b=0,f=h.c.length;b<f;b++)for(d=h.c[b],c=0,k=d.F.length;c<k;c++)n=d.F[c],n.km&&n.km();b=this.Bl.Rc();e=0;for(a=b.length;e<a;e++)b[e].km();this.xd--};d.prototype.cn=function(e){var a=this.Z;this.Z.hu();var b,f,c,k,h,d,n;if(this.n)for(b=
0,f=this.m.length;b<f;b++)h=this.m[b],h.A||!h.Kj||h.global&&0!==h.c.length||-1!==e.Dg.indexOf(h)||h.Kj();a==e&&(this.dd.Kb.length=0);this.To.length=0;e.hm();b=0;for(f=this.m.length;b<f;b++)if(h=this.m[b],h.global||h.Ba.uj)for(e=0,a=h.c.length;e<a;e++)if(d=h.c[e],d.Gl&&d.Gl(),d.F)for(c=0,k=d.F.length;c<k;c++)n=d.F[c],n.Gl&&n.Gl();this.nl=this.ca=!0;this.bb()};d.prototype.lm=function(e){this.Al.add(e)};d.prototype.ju=function(e){this.Bl.add(e)};d.prototype.Kk=function(e){return e&&-1!==e.dh?this.Zd*
e.dh:this.Be};d.prototype.Hc=function(){this.Z.Hc(this.X);this.$a&&this.X.present()};d.prototype.mb=function(){this.Z.mb(this.n);this.n.Nt()};d.prototype.Kq=function(e){e&&this.uk.push(e)};d.prototype.vi=function(e){e=e.toString();return this.Cd.hasOwnProperty(e)?this.Cd[e]:null};var h=[];d.prototype.Od=function(e){var a,b;a=e.type.name;var f=null;if(this.ze.hasOwnProperty(a)){if(f=this.ze[a],f.contains(e))return}else f=h.length?h.pop():new ba,this.ze[a]=f;f.add(e);this.de=!0;if(e.uc)for(a=0,b=e.siblings.length;a<
b;a++)this.Od(e.siblings[a]);this.el&&f.dg.push(e);this.xd++;this.trigger(Object.getPrototypeOf(e.type.Ba).j.fq,e);this.xd--};d.prototype.bb=function(){if(this.de){var e,a,b,f,c,k;this.el=!0;b=0;for(c=this.Gc.length;b<c;++b)for(e=this.Gc[b],a=e.type,a.c.push(e),f=0,k=a.pa.length;f<k;++f)a.pa[f].c.push(e),a.pa[f].Wf=!0;this.Gc.length=0;this.Vp();Wa(this.ze);this.de=this.el=!1}};d.prototype.Vp=function(){for(var e in this.ze)this.ze.hasOwnProperty(e)&&this.Mp(this.ze[e])};d.prototype.Mp=function(e){var a=
e.Rc(),b=a[0].type,f,c,k,d,n,p;Ya(b.c,e);b.Wf=!0;0===b.c.length&&(b.Oh=!1);f=0;for(c=b.pa.length;f<c;++f)p=b.pa[f],Ya(p.c,e),p.Wf=!0;f=0;for(c=this.dd.Kb.length;f<c;++f)if(n=this.dd.Kb[f],n.sb.hasOwnProperty(b.index)&&Ya(n.sb[b.index].vd,e),!b.A)for(k=0,d=b.pa.length;k<d;++k)p=b.pa[k],n.sb.hasOwnProperty(p.index)&&Ya(n.sb[p.index].vd,e);if(n=a[0].e){if(n.Qc)for(k=n.c,f=0,c=k.length;f<c;++f)d=k[f],e.contains(d)&&(d.la(),n.Vb.update(d,d.Gb,null),d.Gb.set(0,0,-1,-1));Ya(n.c,e);n.wh(0)}for(f=0;f<a.length;++f)this.Lp(a[f],
b);e.clear();h.push(e);this.ca=!0};d.prototype.Lp=function(e,a){var b,f,c;b=0;for(f=this.uk.length;b<f;++b)this.uk[b](e);e.Wd&&a.Yh.update(e,e.Wd,null);(b=e.e)&&b.Of(e,!0);if(e.F)for(b=0,f=e.F.length;b<f;++b)c=e.F[b],c.fh&&c.fh(),c.behavior.Hf.remove(e);this.yo.remove(e);this.Al.remove(e);this.Bl.remove(e);e.fh&&e.fh();this.Cd.hasOwnProperty(e.uid.toString())&&delete this.Cd[e.uid.toString()];this.Zi--;100>a.fi.length&&a.fi.push(e)};var p=[];d.prototype.ye=function(e,a,b,f,c,k){var h,d,n,u;if(!e)return null;
var g=this.m[e[1]],m=g.Ba.ge;if(this.Le&&m&&!g.fl||m&&!this.n&&11===e[0][11])return null;var D=a;m||(a=null);var l;g.fi.length?(l=g.fi.pop(),l.Oc=!0,g.Ba.Ea.call(l,g)):(l=new g.Ba.Ea(g),l.Oc=!1);!b||k||this.Cd.hasOwnProperty(e[2].toString())?l.uid=this.eh++:l.uid=e[2];this.Cd[l.uid.toString()]=l;l.Ro=this.uo++;l.He=g.c.length;h=0;for(d=this.Gc.length;h<d;++h)this.Gc[h].type===g&&l.He++;l.yg=Bb;l.toString=Cb;n=e[3];if(l.Oc)Wa(l.ta);else{l.ta={};if("undefined"!==typeof cr_is_preview)for(l.Fn=[],l.Fn.length=
n.length,h=0,d=n.length;h<d;h++)l.Fn[h]=n[h][1];l.Ka=[];l.Ka.length=n.length}h=0;for(d=n.length;h<d;h++)l.Ka[h]=n[h][0];if(m){var t=e[0];l.x=fa(f)?t[0]:f;l.y=fa(c)?t[1]:c;l.z=t[2];l.width=t[3];l.height=t[4];l.depth=t[5];l.i=t[6];l.opacity=t[7];l.Bb=t[8];l.Cb=t[9];l.ub=t[10];h=t[11];!this.n&&g.G.length&&(l.ub=h);l.mg=fb(l.ub);this.k&&gb(l,l.ub,this.k);if(l.Oc){h=0;for(d=t[12].length;h<d;h++)for(n=0,u=t[12][h].length;n<u;n++)l.ra[h][n]=t[12][h][n];l.ya.set(0,0,0,0);l.Wd.set(0,0,-1,-1);l.Gb.set(0,0,
-1,-1);l.Mb.Tf(l.ya);l.fk.length=0}else{l.ra=t[12].slice(0);h=0;for(d=l.ra.length;h<d;h++)l.ra[h]=t[12][h].slice(0);l.U=[];l.Qd=[];l.Qd.length=g.G.length;l.ya=new ta(0,0,0,0);l.Wd=new ta(0,0,-1,-1);l.Gb=new ta(0,0,-1,-1);l.Mb=new ua;l.fk=[];l.va=Fb;l.Nq=Gb;l.Ya=Hb;l.la=Ib;l.pu=Jb;l.wm=Kb;l.qc=Lb}l.Fh=!1;l.mu=0;l.lu=0;l.ku=null;14===t.length&&(l.Fh=!0,l.mu=t[13][0],l.lu=t[13][1],l.ku=t[13][2]);h=0;for(d=g.G.length;h<d;h++)l.Qd[h]=!0;l.Ld=Mb;l.Ld();l.Fp=!!l.U.length;l.Th=!0;l.hk=!0;g.Nh=!0;l.visible=
!0;l.dh=-1;l.e=a;l.Sc=a.c.length;"undefined"===typeof l.W&&(l.W=null);this.ca=l.we=!0}var B;h=p.length=0;for(d=g.pa.length;h<d;h++)p.push.apply(p,g.pa[h].Fa);p.push.apply(p,g.Fa);if(l.Oc)for(h=0,d=p.length;h<d;h++){var w=p[h];B=l.F[h];B.Oc=!0;w.behavior.Ea.call(B,w,l);t=e[4][h];n=0;for(u=t.length;n<u;n++)B.Da[n]=t[n];B.ga();w.behavior.Hf.add(l)}else for(l.F=[],h=0,d=p.length;h<d;h++)w=p[h],B=new w.behavior.Ea(w,l),B.Oc=!1,B.Da=e[4][h].slice(0),B.ga(),l.F.push(B),w.behavior.Hf.add(l);t=e[5];if(l.Oc)for(h=
0,d=t.length;h<d;h++)l.Da[h]=t[h];else l.Da=t.slice(0);this.Gc.push(l);this.de=!0;a&&(a.ig(l,!0),1!==a.Eb||1!==a.Fb)&&(g.Oh=!0);this.Zi++;if(g.uc){if(l.uc=!0,l.Oc?l.siblings.length=0:l.siblings=[],!b&&!k){h=0;for(d=g.Ob.length;h<d;h++)if(g.Ob[h]!==g){if(!g.Ob[h].Vc)return null;l.siblings.push(this.ye(g.Ob[h].Vc,D,!1,m?l.x:f,m?l.y:c,!0))}h=0;for(d=l.siblings.length;h<d;h++)for(l.siblings[h].siblings.push(l),n=0;n<d;n++)h!==n&&l.siblings[h].siblings.push(l.siblings[n])}}else l.uc=!1,l.siblings=null;
l.ga();h=0;for(d=l.F.length;h<d;h++)l.F[h].Jt&&l.F[h].Jt();return l};d.prototype.vg=function(e){var a,b;a=0;for(b=this.Z.I.length;a<b;a++){var f=this.Z.I[a];if(ib(f.name,e))return f}return null};d.prototype.ud=function(e){e=R(e);0>e&&(e=0);e>=this.Z.I.length&&(e=this.Z.I.length-1);return this.Z.I[e]};d.prototype.mk=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].aa().ea=!0};d.prototype.rh=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].rh()};d.prototype.Pl=function(e){var a,b;a=0;for(b=e.length;a<
b;a++)e[a].Pl()};d.prototype.Nf=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].Nf()};d.prototype.Cp=function(e){if(e.Nh){var a,b,f=e.c;a=0;for(b=f.length;a<b;++a)f[a].wm();f=this.Gc;a=0;for(b=f.length;a<b;++a)f[a].type===e&&f[a].wm();e.Nh=!1}};d.prototype.rs=function(e,a,b,f){var c,k,h=e?1!==e.Eb||1!==e.Fb:!1;if(a.A)for(e=0,c=a.Xi.length;e<c;++e)k=a.Xi[e],h||k.Oh?Ba(f,k.c):(this.Cp(k),k.Yh.oj(b,f));else h||a.Oh?Ba(f,a.c):(this.Cp(a),a.Yh.oj(b,f))};d.prototype.Xf=function(e,a,b,f){var c=e.aa(),
k,h,d,n,p,u;if(c.ea)for(f||(c.ea=!1,c.c.length=0),k=0,n=e.c.length;k<n;k++){if(d=e.c[k],d.la(),p=d.e.na(a,b,!0),u=d.e.na(a,b,!1),d.Ya(p,u)){if(f)return!1;c.c.push(d)}}else{k=h=0;for(n=c.c.length;k<n;k++)if(d=c.c[k],d.la(),p=d.e.na(a,b,!0),u=d.e.na(a,b,!1),d.Ya(p,u)){if(f)return!1;c.c[h]=c.c[k];h++}f||(c.c.length=h)}e.jd();return f?!0:c.Vk()};d.prototype.iu=function(e,a){if(!(e&&a&&e!==a&&e.we&&a.we))return!1;e.la();a.la();var b=e.e,f=a.e,c,k,h,d,n,p,u,g;if(b===f||b.Eb===f.Eb&&f.Fb===f.Fb&&b.scale===
f.scale&&b.i===f.i&&b.lb===f.lb){if(!e.ya.Ws(a.ya)||!e.Mb.Gn(a.Mb)||e.Fh&&a.Fh)return!1;if(e.Fh)return this.pp(e,a);if(a.Fh)return this.pp(a,e);u=e.W&&!e.W.wf();c=a.W&&!a.W.wf();if(!u&&!c)return!0;u?(e.W.gf(e.width,e.height,e.i),u=e.W):(this.Pc.Sf(e.Mb,e.x,e.y,e.width,e.height),u=this.Pc);c?(a.W.gf(a.width,a.height,a.i),g=a.W):(this.Pc.Sf(a.Mb,a.x,a.y,a.width,a.height),g=this.Pc);return u.Eg(g,a.x-e.x,a.y-e.y)}u=e.W&&!e.W.wf();c=a.W&&!a.W.wf();u?(e.W.gf(e.width,e.height,e.i),this.Pc.dp(e.W)):this.Pc.Sf(e.Mb,
e.x,e.y,e.width,e.height);u=this.Pc;c?(a.W.gf(a.width,a.height,a.i),this.jm.dp(a.W)):this.jm.Sf(a.Mb,a.x,a.y,a.width,a.height);g=this.jm;c=0;for(k=u.Nc;c<k;c++)h=2*c,d=h+1,n=u.Na[h],p=u.Na[d],u.Na[h]=b.pb(n+e.x,p+e.y,!0),u.Na[d]=b.pb(n+e.x,p+e.y,!1);u.la();c=0;for(k=g.Nc;c<k;c++)h=2*c,d=h+1,n=g.Na[h],p=g.Na[d],g.Na[h]=f.pb(n+a.x,p+a.y,!0),g.Na[d]=f.pb(n+a.x,p+a.y,!1);g.la();return u.Eg(g,0,0)};var D=new ua;new ta(0,0,0,0);var B=[];d.prototype.pp=function(e,a){var b,f,c,k,h=a.ya,d=e.x,n=e.y;e.Av(h,
B);var p=a.W&&!a.W.wf();b=0;for(f=B.length;b<f;++b)if(c=B[b],k=c.Fv,h.Xs(k,d,n)&&(D.Tf(k),D.offset(d,n),D.Gn(a.Mb)))if(p)if(a.W.gf(a.width,a.height,a.i),c.Nl){if(c.Nl.Eg(a.W,a.x-(d+k.left),a.y-(n+k.top)))return B.length=0,!0}else{if(this.Pc.Sf(D,0,0,k.right-k.left,k.bottom-k.top),this.Pc.Eg(a.W,a.x,a.y))return B.length=0,!0}else if(c.Nl){if(this.Pc.Sf(a.Mb,0,0,a.width,a.height),c.Nl.Eg(this.Pc,-(d+k.left),-(n+k.top)))return B.length=0,!0}else return B.length=0,!0;B.length=0;return!1};d.prototype.xp=
function(e,a){if(!a)return!1;var b,f,c,k,h;b=0;for(f=e.Fa.length;b<f;b++)if(e.Fa[b].behavior instanceof a)return!0;if(!e.A)for(b=0,f=e.pa.length;b<f;b++)for(h=e.pa[b],c=0,k=h.Fa.length;c<k;c++)if(h.Fa[c].behavior instanceof a)return!0;return!1};d.prototype.yp=function(e){return this.xp(e,ac.Wu)};d.prototype.qm=function(e){return this.xp(e,ac.Xu)};var n=-1;d.prototype.trigger=function(e,a,b){if(!this.Z)return!1;var f=this.Z.Ce;if(!f)return!1;var c=!1,k,h,d;n++;var p=f.sk;h=0;for(d=p.length;h<d;++h)k=
this.up(e,a,p[h],b),c=c||k;k=this.up(e,a,f,b);n--;return c||k};d.prototype.up=function(e,a,b,f){var c=!1,k,h,d,n;if(a)for(d=this.om(e,a,a.type.name,b,f),c=c||d,n=a.type.pa,k=0,h=n.length;k<h;++k)d=this.om(e,a,n[k].name,b,f),c=c||d;else d=this.om(e,a,"system",b,f),c=c||d;return c};d.prototype.om=function(e,a,b,f,c){var k,h=!1,d=!1,d="undefined"!==typeof c,n=(d?f.kn:f.vp)[b];if(!n)return h;var p=null;f=0;for(k=n.length;f<k;++f)if(n[f].method==e){p=n[f].sg;break}if(!p)return h;var u;d?u=p[c]:u=p;if(!u)return null;
f=0;for(k=u.length;f<k;f++)e=u[f][0],c=u[f][1],d=this.hs(a,b,e,c),h=h||d;return h};d.prototype.hs=function(e,a,b,f){var c,k,h=!1;this.pm++;var d=this.ob().Pb;d&&this.rh(d.me);var p=1<this.pm;this.rh(b.me);p&&this.Pt();var u=this.Ql(b);u.Pb=b;e&&(c=this.types[a].aa(),c.ea=!1,c.c.length=1,c.c[0]=e,this.types[a].jd());e=!0;if(b.parent){a=u.op;for(c=b.parent;c;)a.push(c),c=c.parent;a.reverse();c=0;for(k=a.length;c<k;c++)if(!a[c].Wt()){e=!1;break}}e&&(this.ki++,b.Lc?b.Vt(f):b.Oa(),h=h||u.Oe);this.No();
p&&this.It();this.Nf(b.me);d&&this.Nf(d.me);this.de&&0===this.xd&&0===n&&!this.gl&&this.bb();this.pm--;return h};d.prototype.si=function(){var e=this.ob();return e.Pb.eb[e.Nb]};d.prototype.Pt=function(){this.Vi++;this.Vi>=this.rl.length&&this.rl.push([])};d.prototype.It=function(){this.Vi--};d.prototype.rn=function(){return this.rl[this.Vi]};d.prototype.Ql=function(e){this.ji++;this.ji>=this.xk.length&&this.xk.push(new Nb);var a=this.ob();a.reset(e);return a};d.prototype.No=function(){this.ji--};
d.prototype.ob=function(){return this.xk[this.ji]};d.prototype.sn=function(e,a){for(var b,f,c,k,h,d;a;){b=0;for(f=a.Ac.length;b<f;b++)if(d=a.Ac[b],d instanceof Ob&&ib(e,d.name))return d;a=a.parent}b=0;for(f=this.qd.length;b<f;b++)for(h=this.qd[b],c=0,k=h.ae.length;c<k;c++)if(d=h.ae[c],d instanceof Ob&&ib(e,d.name))return d;return null};d.prototype.un=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.wi=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.ts=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.er=function(e,a){this.zh=[e,a];this.ca=!0};d.prototype.Qs=function(){var e=this,b=this.$l,f=this.yd,k=this.Pi,h=!1;this.ip&&(h=!0,b="__c2_continuouspreview",this.ip=!1);if(b.length){this.bb();f=this.$t();if(window.indexedDB&&!this.gc)l(b,f,function(){K("Saved state to IndexedDB storage ("+f.length+
" bytes)");e.yd=f;e.trigger(X.prototype.j.Uj,null);e.yd="";h&&a()},function(c){try{localStorage.setItem("__c2save_"+b,f),K("Saved state to WebStorage ("+f.length+" bytes)"),e.yd=f,e.trigger(X.prototype.j.Uj,null),e.yd="",h&&a()}catch(k){K("Failed to save game state: "+c+"; "+k)}});else try{localStorage.setItem("__c2save_"+b,f),K("Saved state to WebStorage ("+f.length+" bytes)"),e.yd=f,this.trigger(X.prototype.j.Uj,null),e.yd="",h&&a()}catch(d){K("Error saving to WebStorage: "+d)}this.hb=this.Pi=this.$l=
""}if(k.length){if(window.indexedDB&&!this.gc)c(k,function(a){a?(e.hb=a,K("Loaded state from IndexedDB storage ("+e.hb.length+" bytes)")):(e.hb=localStorage.getItem("__c2save_"+k)||"",K("Loaded state from WebStorage ("+e.hb.length+" bytes)"));e.Bh=!1;e.hb.length||e.trigger(X.prototype.j.Sj,null)},function(){e.hb=localStorage.getItem("__c2save_"+k)||"";K("Loaded state from WebStorage ("+e.hb.length+" bytes)");e.Bh=!1;e.hb.length||e.trigger(X.prototype.j.Sj,null)});else{try{this.hb=localStorage.getItem("__c2save_"+
k)||"",K("Loaded state from WebStorage ("+this.hb.length+" bytes)")}catch(n){this.hb=""}this.Bh=!1;e.hb.length||e.trigger(X.prototype.j.Sj,null)}this.$l=this.Pi=""}this.hb.length&&(this.bb(),this.it(this.hb),this.yd=this.hb,this.trigger(X.prototype.j.qq,null),this.hb=this.yd="")};d.prototype.$t=function(){var e,a,f,c,k,h,d,n={c2save:!0,version:1,rt:{time:this.vc.da,walltime:this.Md.da,timescale:this.Zf,tickcount:this.Yf,execcount:this.ki,next_uid:this.eh,running_layout:this.Z.O,start_time_offset:Date.now()-
this.yj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};e=0;for(a=this.m.length;e<a;e++)if(k=this.m[e],!k.A&&!this.yp(k)){h={instances:[]};Va(k.ta)&&(h.ex=b(k.ta));f=0;for(c=k.c.length;f<c;f++)h.instances.push(this.Zl(k.c[f]));n.types[k.O.toString()]=h}e=0;for(a=this.Tb.length;e<a;e++)f=this.Tb[e],n.layouts[f.O.toString()]=f.Wb();c=n.events.groups;e=0;for(a=this.Sd.length;e<a;e++)f=this.Sd[e],c[f.O.toString()]=this.xi[f.Ag].zg;a=n.events.cnds;for(d in this.hf)this.hf.hasOwnProperty(d)&&
(e=this.hf[d],Va(e.ta)&&(a[d]={ex:b(e.ta)}));a=n.events.acts;for(d in this.ef)this.ef.hasOwnProperty(d)&&(e=this.ef[d],Va(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.Hi||e.parent&&!e.Kg||(a[d]=e.data));n.system=this.dd.Wb();return JSON.stringify(n)};d.prototype.So=function(){var a,b,f,c,k,h;this.Cd={};a=0;for(b=this.m.length;a<b;a++)if(f=this.m[a],!f.A)for(c=0,k=f.c.length;c<k;c++)h=f.c[c],this.Cd[h.uid.toString()]=h};d.prototype.it=function(a){a=
JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.vc.reset();this.vc.da=b.time;this.Md.reset();this.Md.da=b.walltime||0;this.Zf=b.timescale;this.Yf=b.tickcount;this.ki=b.execcount;this.yj=Date.now()-b.start_time_offset;var f=b.running_layout;if(f!==this.Z.O)if(f=this.un(f))this.cn(f);else return;var c,k,h,d,n,p,u;p=a.types;for(k in p)if(p.hasOwnProperty(k)&&(d=this.wi(parseInt(k,10)))&&!d.A&&!this.yp(d)){p[k].ex?d.ta=p[k].ex:Wa(d.ta);n=d.c;h=p[k].instances;f=0;for(c=na(n.length,h.length);f<
c;f++)this.Qi(n[f],h[f]);f=h.length;for(c=n.length;f<c;f++)this.Od(n[f]);f=n.length;for(c=h.length;f<c;f++){n=null;if(d.Ba.ge&&(n=this.Z.ti(h[f].w.l),!n))continue;n=this.ye(d.Vc,n,!1,0,0,!0);this.Qi(n,h[f])}d.Wf=!0}this.bb();this.So();c=a.layouts;for(k in c)c.hasOwnProperty(k)&&(f=this.un(parseInt(k,10)))&&f.wc(c[k]);c=a.events.groups;for(k in c)c.hasOwnProperty(k)&&(f=this.ts(parseInt(k,10)))&&this.xi[f.Ag]&&this.xi[f.Ag].$o(c[k]);f=a.events.cnds;for(k in f)f.hasOwnProperty(k)&&this.hf.hasOwnProperty(k)&&
(this.hf[k].ta=f[k].ex);f=a.events.acts;for(k in f)f.hasOwnProperty(k)&&this.ef.hasOwnProperty(k)&&(this.ef[k].ta=f[k].ex);f=a.events.vars;for(k in f)f.hasOwnProperty(k)&&this.eg.hasOwnProperty(k)&&(this.eg[k].data=f[k]);this.eh=b.next_uid;this.dd.wc(a.system);f=0;for(c=this.m.length;f<c;f++)if(d=this.m[f],!d.A)for(k=0,a=d.c.length;k<a;k++){n=d.c[k];if(d.uc)for(p=n.yg(),b=n.siblings.length=0,h=d.Ob.length;b<h;b++)u=d.Ob[b],d!==u&&n.siblings.push(u.c[p]);n.gd&&n.gd();if(n.F)for(b=0,h=n.F.length;b<
h;b++)p=n.F[b],p.gd&&p.gd()}this.ca=!0}};d.prototype.Zl=function(a,f){var c,k,h,d,n;d=a.type;h=d.Ba;var p={};f?p.c2=!0:p.uid=a.uid;Va(a.ta)&&(p.ex=b(a.ta));if(a.Ka&&a.Ka.length)for(p.ivs={},c=0,k=a.Ka.length;c<k;c++)p.ivs[a.type.cl[c].toString()]=a.Ka[c];if(h.ge){h={x:a.x,y:a.y,w:a.width,h:a.height,l:a.e.O,zi:a.qc()};0!==a.i&&(h.a=a.i);1!==a.opacity&&(h.o=a.opacity);.5!==a.Bb&&(h.hX=a.Bb);.5!==a.Cb&&(h.hY=a.Cb);0!==a.ub&&(h.bm=a.ub);a.visible||(h.v=a.visible);a.we||(h.ce=a.we);-1!==a.dh&&(h.mts=a.dh);
if(d.G.length)for(h.fx=[],c=0,k=d.G.length;c<k;c++)n=d.G[c],h.fx.push({name:n.name,active:a.Qd[n.index],params:a.ra[n.index]});p.w=h}if(a.F&&a.F.length)for(p.behs={},c=0,k=a.F.length;c<k;c++)d=a.F[c],d.Wb&&(p.behs[d.type.O.toString()]=d.Wb());a.Wb&&(p.data=a.Wb());return p};d.prototype.vs=function(a,b){var f,c;f=0;for(c=a.cl.length;f<c;f++)if(a.cl[f]===b)return f;return-1};d.prototype.qs=function(a,b){var f,c;f=0;for(c=a.F.length;f<c;f++)if(a.F[f].type.O===b)return f;return-1};d.prototype.Qi=function(a,
b,f){var c,k,h,d,n;n=a.type;d=n.Ba;if(f){if(!b.c2)return}else a.uid=b.uid;b.ex?a.ta=b.ex:Wa(a.ta);if(k=b.ivs)for(c in k)k.hasOwnProperty(c)&&(h=this.vs(n,parseInt(c,10)),0>h||h>=a.Ka.length||(a.Ka[h]=k[c]));if(d.ge){h=b.w;a.e.O!==h.l&&(k=a.e,a.e=this.Z.ti(h.l),a.e?(k.Of(a,!0),a.e.ig(a,!0),a.va(),a.e.wh(0)):(a.e=k,f||this.Od(a)));a.x=h.x;a.y=h.y;a.width=h.w;a.height=h.h;a.Sc=h.zi;a.i=h.hasOwnProperty("a")?h.a:0;a.opacity=h.hasOwnProperty("o")?h.o:1;a.Bb=h.hasOwnProperty("hX")?h.hX:.5;a.Cb=h.hasOwnProperty("hY")?
h.hY:.5;a.visible=h.hasOwnProperty("v")?h.v:!0;a.we=h.hasOwnProperty("ce")?h.ce:!0;a.dh=h.hasOwnProperty("mts")?h.mts:-1;a.ub=h.hasOwnProperty("bm")?h.bm:0;a.mg=fb(a.ub);this.k&&gb(a,a.ub,this.k);a.va();if(h.hasOwnProperty("fx"))for(f=0,k=h.fx.length;f<k;f++)d=n.Mk(h.fx[f].name),0>d||(a.Qd[d]=h.fx[f].active,a.ra[d]=h.fx[f].params);a.Ld()}if(n=b.behs)for(c in n)n.hasOwnProperty(c)&&(f=this.qs(a,parseInt(c,10)),0>f||a.F[f].wc(n[c]));b.data&&a.wc(b.data)};Pb=function(a){return new d(document.getElementById(a))};
Qb=function(a,b){return new d({dc:!0,width:a,height:b})};window.cr_createRuntime=Pb;window.cr_createDCRuntime=Qb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.ek=!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 g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(g,m){var d=window.cr_getC2Runtime();d&&d.er(g,m)};
window.cr_sizeCanvas=function(g,m){if(0!==g&&0!==m){var d=window.cr_getC2Runtime();d&&d.setSize(g,m)}};window.cr_setSuspended=function(g){var m=window.cr_getC2Runtime();m&&m.setSuspended(g)};
(function(){function g(a,b){this.b=a;this.Ce=null;this.scrollX=this.b.Ma/2;this.scrollY=this.b.La/2;this.scale=1;this.i=0;this.mf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.zp=b[3];this.gp=b[4];this.O=b[5];var c=b[6],h,d;this.I=[];this.Dg=[];h=0;for(d=c.length;h<d;h++){var g=new Rb(this,c[h]);g.wo=h;this.I.push(g)}c=b[7];this.Ie=[];h=0;for(d=c.length;h<d;h++){var g=c[h],l=this.b.m[g[1]];l.Vc||(l.Vc=g);this.Ie.push(g);-1===this.Dg.indexOf(l)&&this.Dg.push(l)}this.G=[];this.U=[];this.ra=
[];h=0;for(d=b[8].length;h<d;h++)this.G.push({id:b[8][h][0],name:b[8][h][1],ab:-1,Qa:!0,index:h}),this.ra.push(b[8][h][2].slice(0));this.Ld();this.th=new ta(0,0,1,1);this.Sl=new ta(0,0,1,1);this.ie={}}function m(a,b){return a.Sc-b.Sc}function d(a,b){this.Ta=a;this.b=a.b;this.c=[];this.scale=1;this.i=0;this.Ae=!1;this.Jd=new ta(0,0,0,0);this.sp=new ua;this.Ha=this.xa=this.Ia=this.wa=0;this.$e=!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.Kd=b[5];this.Eb=
b[6];this.Fb=b[7];this.opacity=b[8];this.Ek=b[9];this.Qc=b[10];this.lb=b[11];this.ub=b[12];this.Br=b[13];this.mg="source-over";this.fb=this.ib=0;this.Vb=null;this.Bf=q();this.Fd=!0;this.Li=new ta(0,0,-1,-1);this.lc=new ta(0,0,-1,-1);this.Qc&&(this.Vb=new eb(this.b.Ma,this.b.La));this.je=!1;var c=b[14],h,d;this.mp=[];this.fc=[];this.pg=[];h=0;for(d=c.length;h<d;h++){var g=c[h],l=this.b.m[g[1]];l.Vc||(l.Vc=g,l.dr=this.index);this.fc.push(g);-1===this.Ta.Dg.indexOf(l)&&this.Ta.Dg.push(l)}Aa(this.mp,
this.fc);this.G=[];this.U=[];this.ra=[];h=0;for(d=b[15].length;h<d;h++)this.G.push({id:b[15][h][0],name:b[15][h][1],ab:-1,Qa:!0,index:h}),this.ra.push(b[15][h][2].slice(0));this.Ld();this.th=new ta(0,0,1,1);this.Sl=new ta(0,0,1,1)}function q(){return b.length?b.pop():[]}function l(a){a.length=0;b.push(a)}g.prototype.Zt=function(a){var b=a.type.O.toString();this.ie.hasOwnProperty(b)||(this.ie[b]=[]);this.ie[b].push(this.b.Zl(a))};g.prototype.yn=function(){var a=this.I[0];return!a.Kd&&1===a.opacity&&
!a.Ek&&a.visible};g.prototype.Ld=function(){this.U.length=0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Qa&&this.U.push(c)};g.prototype.Lk=function(a){var b,c,h;b=0;for(c=this.G.length;b<c;b++)if(h=this.G[b],h.name===a)return h;return null};var c=[],a=!0;g.prototype.hm=function(){this.gp&&(this.Ce=this.b.yk[this.gp],this.Ce.rm());this.b.Z=this;this.scrollX=this.b.Ma/2;this.scrollY=this.b.La/2;var b,k,d,h,p,g,l;b=0;for(d=this.b.m.length;b<d;b++)if(k=this.b.m[b],!k.A)for(p=k.c,k=0,h=p.length;k<
h;k++)if(g=p[k],g.e){var n=g.e.wo;n>=this.I.length&&(n=this.I.length-1);g.e=this.I[n];-1===g.e.c.indexOf(g)&&g.e.c.push(g);g.e.$e=!0}if(!a)for(b=0,d=this.I.length;b<d;++b)this.I[b].c.sort(m);c.length=0;this.Sq();b=0;for(d=this.I.length;b<d;b++)g=this.I[b],g.$q(),g.um();p=!1;if(!this.mf){for(l in this.ie)if(this.ie.hasOwnProperty(l)&&(k=this.b.wi(parseInt(l,10)))&&!k.A&&this.b.qm(k)){h=this.ie[l];b=0;for(d=h.length;b<d;b++){g=null;if(k.Ba.ge&&(g=this.ti(h[b].w.l),!g))continue;g=this.b.ye(k.Vc,g,!1,
0,0,!0);this.b.Qi(g,h[b]);p=!0;c.push(g)}h.length=0}b=0;for(d=this.I.length;b<d;b++)this.I[b].c.sort(m),this.I[b].$e=!0}p&&(this.b.bb(),this.b.So());for(b=0;b<c.length;b++)if(g=c[b],g.type.uc)for(d=g.yg(),k=0,h=g.type.Ob.length;k<h;k++)l=g.type.Ob[k],g.type!==l&&(l.c.length>d?g.siblings.push(l.c[d]):l.Vc&&(p=this.b.ye(l.Vc,g.e,!0,g.x,g.y,!0),this.b.bb(),l.Lj(),g.siblings.push(p),c.push(p)));b=0;for(d=this.Ie.length;b<d;b++)this.b.ye(this.Ie[b],null,!0);this.b.ld=null;this.b.bb();if(this.b.X&&!this.b.ba)for(b=
0,d=this.b.m.length;b<d;b++)l=this.b.m[b],!l.A&&l.c.length&&l.mj&&l.mj(this.b.X);b=0;for(d=c.length;b<d;b++)g=c[b],this.b.trigger(Object.getPrototypeOf(g.type.Ba).j.dq,g);c.length=0;this.b.trigger(X.prototype.j.Fm,null);this.mf=!1};g.prototype.Zq=function(){var a,b,c,h,d;b=a=0;for(c=this.Ie.length;a<c;a++)h=this.Ie[a],d=this.b.m[h[1]],d.global?d.uc||this.b.ye(h,null,!0):(this.Ie[b]=h,b++);this.Ie.length=b};g.prototype.hu=function(){this.b.trigger(X.prototype.j.pq,null);this.b.dd.Kb.length=0;var b,
c,d,h,p,g;if(!this.mf)for(b=0,c=this.I.length;b<c;b++)for(this.I[b].vm(),p=this.I[b].c,d=0,h=p.length;d<h;d++)g=p[d],g.type.global||this.b.qm(g.type)&&this.Zt(g);b=0;for(c=this.I.length;b<c;b++){p=this.I[b].c;d=0;for(h=p.length;d<h;d++)g=p[d],g.type.global||this.b.Od(g);this.b.bb();p.length=0;this.I[b].$e=!0}b=0;for(c=this.b.m.length;b<c;b++)if(p=this.b.m[b],!(p.global||p.Ba.ge||p.Ba.uj||p.A)){d=0;for(h=p.c.length;d<h;d++)this.b.Od(p.c[d]);this.b.bb()}a=!1};new ta(0,0,0,0);g.prototype.Hc=function(a){var b,
c=a,h=!1,d=!this.b.nc;d&&(this.b.Oi||(this.b.Oi=document.createElement("canvas"),b=this.b.Oi,b.width=this.b.L,b.height=this.b.K,this.b.Un=b.getContext("2d"),h=!0),b=this.b.Oi,c=this.b.Un,b.width!==this.b.L&&(b.width=this.b.L,h=!0),b.height!==this.b.K&&(b.height=this.b.K,h=!0),h&&(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.ak&&!this.yn()&&
c.clearRect(0,0,this.b.L,this.b.K);var g,l,h=0;for(g=this.I.length;h<g;h++)l=this.I[h],l.visible&&0<l.opacity&&11!==l.ub&&(l.c.length||!l.Kd)?l.Hc(c):l.um();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.mb=function(a){var b=0<this.U.length||this.b.bg||!this.b.nc;if(b){this.b.Sb||(this.b.Sb=a.Xd(this.b.L,this.b.K,this.b.S));if(this.b.Sb.lg!==this.b.L||this.b.Sb.kg!==this.b.K)a.deleteTexture(this.b.Sb),this.b.Sb=a.Xd(this.b.L,this.b.K,this.b.S);a.bd(this.b.Sb);this.b.nc||a.Rf(this.b.L,
this.b.K)}else this.b.Sb&&(a.bd(null),a.deleteTexture(this.b.Sb),this.b.Sb=null);this.b.ak&&!this.yn()&&a.clear(0,0,0,0);var c,h,d;c=0;for(h=this.I.length;c<h;c++)d=this.I[c],d.visible&&0<d.opacity&&(d.c.length||!d.Kd)?d.mb(a):d.um();b&&(0===this.U.length||1===this.U.length&&this.b.nc?(1===this.U.length?(b=this.U[0].index,a.cd(this.U[0].ab),a.Qf(null,1/this.b.L,1/this.b.K,0,0,1,1,this.scale,this.i,0,0,this.b.L/2,this.b.K/2,this.ra[b]),a.nj(this.U[0].ab)&&(this.b.ca=!0)):a.cd(0),this.b.nc||a.Rf(this.b.width,
this.b.height),a.bd(null),a.Xe(1),a.Xb(this.b.Sb),a.Zo(),a.ke(),a.re(),b=this.b.width/2,c=this.b.height/2,a.sh(-b,c,b,c,b,-c,-b,-c),a.Xb(null)):this.Tl(a,null,null,null))};g.prototype.wg=function(){return 0<this.U.length||this.b.bg||!this.b.nc?this.b.Sb:null};g.prototype.vn=function(){var a=this.I[0].pc(),b,c,h;b=1;for(c=this.I.length;b<c;b++)h=this.I[b],(0!==h.Eb||0!==h.Fb)&&h.pc()<a&&(a=h.pc());return a};g.prototype.Xo=function(a){if(!this.zp){var b=1/this.vn()*this.b.L/2;a>this.width-b&&(a=this.width-
b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ca=!0)};g.prototype.Yo=function(a){if(!this.zp){var b=1/this.vn()*this.b.K/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ca=!0)};g.prototype.Sq=function(){this.Xo(this.scrollX);this.Yo(this.scrollY)};g.prototype.Tl=function(a,b,c,h){var d=c?c.U:b?b.U:this.U,g=1,l=0,n=0,e=0,m=this.b.L,r=this.b.K;c?(g=c.e.pc(),l=c.e.Ra(),n=c.e.wa,e=c.e.xa,m=c.e.Ia,r=c.e.Ha):b&&(g=b.pc(),l=b.Ra(),n=b.wa,e=b.xa,m=b.Ia,r=
b.Ha);var t=this.b.Hk,w,q,x,A,M=0,E=1,Z,I=this.b.L,y=this.b.K,xa=I/2,P=y/2,S=b?b.th:this.th,G=b?b.Sl:this.Sl,H=0,Q=0,F=0,L=0,J=I,la=I,O=y,sa=y,ha=x=0,va=c?c.e.Ra():0;if(c){w=0;for(q=d.length;w<q;w++)x+=a.zs(d[w].ab),ha+=a.As(d[w].ab);A=c.ya;H=b.pb(A.left,A.top,!0,!0);F=b.pb(A.left,A.top,!1,!0);J=b.pb(A.right,A.bottom,!0,!0);O=b.pb(A.right,A.bottom,!1,!0);0!==va&&(w=b.pb(A.right,A.top,!0,!0),q=b.pb(A.right,A.top,!1,!0),Q=b.pb(A.left,A.bottom,!0,!0),L=b.pb(A.left,A.bottom,!1,!0),A=Math.min(H,J,w,Q),
J=Math.max(H,J,w,Q),H=A,A=Math.min(F,O,q,L),O=Math.max(F,O,q,L),F=A);H-=x;F-=ha;J+=x;O+=ha;G.left=H/I;G.top=1-F/y;G.right=J/I;G.bottom=1-O/y;Q=H=R(H);L=F=R(F);la=J=pa(J);sa=O=pa(O);Q-=x;L-=ha;la+=x;sa+=ha;0>H&&(H=0);0>F&&(F=0);J>I&&(J=I);O>y&&(O=y);0>Q&&(Q=0);0>L&&(L=0);la>I&&(la=I);sa>y&&(sa=y);S.left=H/I;S.top=1-F/y;S.right=J/I;S.bottom=1-O/y}else S.left=G.left=0,S.top=G.top=0,S.right=G.right=1,S.bottom=G.bottom=1;ha=c&&((c.i||va)&&a.qh(d[0].ab)||0!==x||0!==ha||1!==c.opacity||c.type.Ba.ro)||b&&
!c&&1!==b.opacity;a.Zo();if(ha){t[M]||(t[M]=a.Xd(I,y,this.b.S));if(t[M].lg!==I||t[M].kg!==y)a.deleteTexture(t[M]),t[M]=a.Xd(I,y,this.b.S);a.cd(0);a.bd(t[M]);Z=sa-L;a.clearRect(Q,y-L-Z,la-Q,Z);c?c.mb(a):(a.Xb(this.b.hc),a.Xe(b.opacity),a.ke(),a.translate(-xa,-P),a.re(),a.Ed(H,O,J,O,J,F,H,F,S));G.left=G.top=0;G.right=G.bottom=1;c&&(A=S.top,S.top=S.bottom,S.bottom=A);M=1;E=0}a.Xe(1);x=d.length-1;var va=a.Ol(d[x].ab)||!b&&!c&&!this.b.nc,da=0;w=0;for(q=d.length;w<q;w++){t[M]||(t[M]=a.Xd(I,y,this.b.S));
if(t[M].lg!==I||t[M].kg!==y)a.deleteTexture(t[M]),t[M]=a.Xd(I,y,this.b.S);a.cd(d[w].ab);da=d[w].index;a.nj(d[w].ab)&&(this.b.ca=!0);0!=w||ha?(a.Qf(h,1/I,1/y,G.left,G.top,G.right,G.bottom,g,l,n,e,(n+m)/2,(e+r)/2,c?c.ra[da]:b?b.ra[da]:this.ra[da]),a.Xb(null),w!==x||va?(a.bd(t[M]),Z=sa-L,A=y-L-Z,a.clearRect(Q,A,la-Q,Z)):(c?a.le(c.ib,c.fb):b&&a.le(b.ib,b.fb),a.bd(h)),a.Xb(t[E]),a.ke(),a.translate(-xa,-P),a.re(),a.Ed(H,O,J,O,J,F,H,F,S),w!==x||va||a.Xb(null)):(a.bd(t[M]),Z=sa-L,A=y-L-Z,a.clearRect(Q,A,
la-Q,Z),c?(a.Qf(h,1/c.width,1/c.height,G.left,G.top,G.right,G.bottom,g,l,n,e,(n+m)/2,(e+r)/2,c.ra[da]),c.mb(a)):(a.Qf(h,1/I,1/y,0,0,1,1,g,l,n,e,(n+m)/2,(e+r)/2,b?b.ra[da]:this.ra[da]),a.Xb(b?this.b.hc:this.b.Sb),a.ke(),a.translate(-xa,-P),a.re(),a.Ed(H,O,J,O,J,F,H,F,S)),G.left=G.top=0,G.right=G.bottom=1,c&&!va&&(A=O,O=F,F=A));M=0===M?1:0;E=0===M?1:0}va&&(a.cd(0),c?a.le(c.ib,c.fb):b?a.le(b.ib,b.fb):this.b.nc||(a.Rf(this.b.width,this.b.height),xa=this.b.width/2,P=this.b.height/2,F=H=0,J=this.b.width,
O=this.b.height),a.bd(h),a.Xb(t[E]),a.ke(),a.translate(-xa,-P),a.re(),c&&1===d.length&&!ha?a.Ed(H,F,J,F,J,O,H,O,S):a.Ed(H,O,J,O,J,F,H,F,S),a.Xb(null))};g.prototype.ti=function(a){var b,c;b=0;for(c=this.I.length;b<c;b++)if(this.I[b].O===a)return this.I[b];return null};g.prototype.Wb=function(){var a,b,c,h={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.i,w:this.width,h:this.height,fv:this.mf,persist:this.ie,fx:[],layers:{}};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],h.fx.push({name:c.name,active:c.Qa,
params:this.ra[c.index]});a=0;for(b=this.I.length;a<b;a++)c=this.I[a],h.layers[c.O.toString()]=c.Wb();return h};g.prototype.wc=function(a){var b,c,h,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.ie=a.persist;"undefined"!==typeof a.fv&&(this.mf=a.fv);var g=a.fx;b=0;for(c=g.length;b<c;b++)if(h=this.Lk(g[b].name))h.Qa=g[b].active,this.ra[h.index]=g[b].params;this.Ld();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.ti(parseInt(d,10)))&&a.wc(b[d])};
Db=g;d.prototype.Ld=function(){this.U.length=0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Qa&&this.U.push(c)};d.prototype.Lk=function(a){var b,c,h;b=0;for(c=this.G.length;b<c;b++)if(h=this.G[b],h.name===a)return h;return null};d.prototype.$q=function(){var a,b,d,h,g,l;b=a=0;for(d=this.fc.length;a<d;a++){h=this.fc[a];g=this.b.m[h[1]];l=this.b.qm(g);g=!0;if(!l||this.Ta.mf)h=this.b.ye(h,this,!0),c.push(h),h.type.global&&(g=!1,this.pg.push(h.uid));g&&(this.fc[b]=this.fc[a],b++)}this.fc.length=
b;this.b.bb();!this.b.n&&this.G.length&&(this.ub=this.Br);this.mg=fb(this.ub);this.b.k&&gb(this,this.ub,this.b.k);this.Fd=!0};d.prototype.Of=function(a,b){var c=Ca(this.c,a);0>c||(b&&this.Qc&&a.Gb&&a.Gb.right>=a.Gb.left&&(a.la(),this.Vb.update(a,a.Gb,null),a.Gb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(ya(this.c,c),this.wh(c)),this.Fd=!0)};d.prototype.ig=function(a,b){a.Sc=this.c.length;this.c.push(a);b&&this.Qc&&a.Gb&&a.va();this.Fd=!0};d.prototype.Mt=function(a){this.c.unshift(a);this.wh(0)};
d.prototype.ot=function(a,b,c){var h=a.qc();b=b.qc();ya(this.c,h);h<b&&b--;c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.wh(h<b?h:b)};d.prototype.wh=function(a){-1===this.Nd?this.Nd=a:a<this.Nd&&(this.Nd=a);this.Fd=this.$e=!0};d.prototype.vm=function(){if(this.$e){-1===this.Nd&&(this.Nd=0);var a,b,c;if(this.Qc)for(a=this.Nd,b=this.c.length;a<b;++a)c=this.c[a],c.Sc=a,this.Vb.kt(c.Gb);else for(a=this.Nd,b=this.c.length;a<b;++a)this.c[a].Sc=a;this.$e=!1;this.Nd=-1}};d.prototype.pc=
function(a){return this.ws()*(this.b.nc||a?this.b.jg:1)};d.prototype.ws=function(){return(this.scale*this.Ta.scale-1)*this.lb+1};d.prototype.Ra=function(){return this.Ae?0:Ga(this.Ta.i+this.i)};var b=[],w=[],t=[];d.prototype.wn=function(){this.vm();this.Vb.oj(this.wa,this.xa,this.Ia,this.Ha,t);if(!t.length)return q();if(1===t.length){var a=q();Aa(a,t[0]);t.length=0;return a}for(var b=!0;1<t.length;){for(var a=t,c=void 0,h=void 0,d=void 0,g=void 0,m=void 0,c=0,h=a.length;c<h-1;c+=2){var d=a[c],g=a[c+
1],m=q(),n=d,e=g,v=m,r=0,z=0,C=0,ra=n.length,x=e.length,A=void 0,M=void 0;for(v.length=ra+x;r<ra&&z<x;++C)A=n[r],M=e[z],A.Sc<M.Sc?(v[C]=A,++r):(v[C]=M,++z);for(;r<ra;++r,++C)v[C]=n[r];for(;z<x;++z,++C)v[C]=e[z];b||(l(d),l(g));w.push(m)}1===h%2&&(b?(d=q(),Aa(d,a[h-1]),w.push(d)):w.push(a[h-1]));Aa(a,w);w.length=0;b=!1}a=t[0];t.length=0;return a};d.prototype.Hc=function(a){this.je=this.Ek||1!==this.opacity||0!==this.ub;var b=this.b.canvas,c=a,d=!1;this.je&&(this.b.Ni||(this.b.Ni=document.createElement("canvas"),
b=this.b.Ni,b.width=this.b.L,b.height=this.b.K,this.b.Tn=b.getContext("2d"),d=!0),b=this.b.Ni,c=this.b.Tn,b.width!==this.b.L&&(b.width=this.b.L,d=!0),b.height!==this.b.K&&(b.height=this.b.K,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.S,c.mozImageSmoothingEnabled=this.b.S,c.msImageSmoothingEnabled=this.b.S,c.imageSmoothingEnabled=this.b.S),this.Kd&&c.clearRect(0,0,this.b.L,this.b.K));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Kd||(c.fillStyle="rgb("+this.Ud[0]+","+this.Ud[1]+
","+this.Ud[2]+")",c.fillRect(0,0,this.b.L,this.b.K));c.save();this.Ae=!0;var d=this.na(0,0,!0,!0),g=this.na(0,0,!1,!0);this.Ae=!1;this.b.$c&&(d=Math.round(d),g=Math.round(g));this.Vl(d,g,c);var m=this.pc();c.scale(m,m);c.translate(-d,-g);this.Qc?(this.lc.left=this.Vb.$b(this.wa),this.lc.top=this.Vb.ac(this.xa),this.lc.right=this.Vb.$b(this.Ia),this.lc.bottom=this.Vb.ac(this.Ha),this.Fd||!this.lc.ii(this.Li)?(l(this.Bf),d=this.wn(),this.Fd=!1,this.Li.ng(this.lc)):d=this.Bf):d=this.c;for(var t,n=null,
g=0,m=d.length;g<m;++g)t=d[g],t!==n&&(this.ur(t,c),n=t);this.Qc&&(this.Bf=d);c.restore();this.je&&(a.globalCompositeOperation=this.mg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};d.prototype.ur=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.Hc(b))}};d.prototype.um=function(){this.Ae=!0;var a=this.na(0,0,!0,!0),b=this.na(0,0,!1,!0);this.Ae=!1;this.b.$c&&(a=Math.round(a),
b=Math.round(b));this.Vl(a,b,null)};d.prototype.Vl=function(a,b,c){var d=this.pc();this.wa=a;this.xa=b;this.Ia=a+1/d*this.b.L;this.Ha=b+1/d*this.b.K;a=this.Ra();0!==a&&(c&&(c.translate(this.b.L/2,this.b.K/2),c.rotate(-a),c.translate(this.b.L/-2,this.b.K/-2)),this.Jd.set(this.wa,this.xa,this.Ia,this.Ha),this.Jd.offset((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2),this.sp.ep(this.Jd,a),this.sp.Um(this.Jd),this.Jd.offset((this.wa+this.Ia)/2,(this.xa+this.Ha)/2),this.wa=this.Jd.left,this.xa=this.Jd.top,
this.Ia=this.Jd.right,this.Ha=this.Jd.bottom)};d.prototype.mb=function(a){var b=0,c=0;if(this.je=this.Ek||1!==this.opacity||0<this.U.length||0!==this.ub){this.b.hc||(this.b.hc=a.Xd(this.b.L,this.b.K,this.b.S));if(this.b.hc.lg!==this.b.L||this.b.hc.kg!==this.b.K)a.deleteTexture(this.b.hc),this.b.hc=a.Xd(this.b.L,this.b.K,this.b.S);a.bd(this.b.hc);this.Kd&&a.clear(0,0,0,0)}this.Kd||a.clear(this.Ud[0]/255,this.Ud[1]/255,this.Ud[2]/255,1);this.Ae=!0;var d=this.na(0,0,!0,!0),b=this.na(0,0,!1,!0);this.Ae=
!1;this.b.$c&&(d=Math.round(d),b=Math.round(b));this.Vl(d,b,null);d=this.pc();a.ke();a.scale(d,d);a.Vo(-this.Ra());a.translate((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2);a.re();this.Qc?(this.lc.left=this.Vb.$b(this.wa),this.lc.top=this.Vb.ac(this.xa),this.lc.right=this.Vb.$b(this.Ia),this.lc.bottom=this.Vb.ac(this.Ha),this.Fd||!this.lc.ii(this.Li)?(l(this.Bf),b=this.wn(),this.Fd=!1,this.Li.ng(this.lc)):b=this.Bf):b=this.c;var g,m,t=null,c=0;for(g=b.length;c<g;++c)m=b[c],m!==t&&(this.wr(b[c],a),t=
m);this.Qc&&(this.Bf=b);this.je&&(b=this.U.length?this.U[0].ab:0,c=this.U.length?this.U[0].index:0,0===this.U.length||1===this.U.length&&!a.Ol(b)&&1===this.opacity?(1===this.U.length?(a.cd(b),a.Qf(this.Ta.wg(),1/this.b.L,1/this.b.K,0,0,1,1,d,this.Ra(),this.wa,this.xa,(this.wa+this.Ia)/2,(this.xa+this.Ha)/2,this.ra[c]),a.nj(b)&&(this.b.ca=!0)):a.cd(0),a.bd(this.Ta.wg()),a.Xe(this.opacity),a.Xb(this.b.hc),a.le(this.ib,this.fb),a.ke(),a.re(),d=this.b.L/2,b=this.b.K/2,a.sh(-d,b,d,b,d,-b,-d,-b),a.Xb(null)):
this.Ta.Tl(a,this,null,this.Ta.wg()))};d.prototype.wr=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.Fp?this.Ar(a,b):(b.cd(0),b.le(a.ib,a.fb),a.mb(b)))}};d.prototype.Ar=function(a,b){var c=a.U[0].ab,d=a.U[0].index,g=this.pc();if(1!==a.U.length||b.Ol(c)||b.Ot(c)||(a.i||a.e.Ra())&&b.qh(c)||1!==a.opacity||a.type.Ba.ro)this.Ta.Tl(b,this,a,this.je?this.b.hc:this.Ta.wg()),b.ke(),b.scale(g,g),b.Vo(-this.Ra()),
b.translate((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2),b.re();else{b.cd(c);b.le(a.ib,a.fb);b.nj(c)&&(this.b.ca=!0);var l=0,m=0,n=0,e=0;b.qh(c)&&(c=a.ya,l=this.pb(c.left,c.top,!0,!0),m=this.pb(c.left,c.top,!1,!0),n=this.pb(c.right,c.bottom,!0,!0),c=this.pb(c.right,c.bottom,!1,!0),l=l/windowWidth,m=1-m/windowHeight,n=n/windowWidth,e=1-c/windowHeight);b.Qf(this.je?this.b.hc:this.Ta.wg(),1/a.width,1/a.height,l,m,n,e,g,this.Ra(),this.wa,this.xa,(this.wa+this.Ia)/2,(this.xa+this.Ha)/2,a.ra[d]);a.mb(b)}};
d.prototype.na=function(a,b,c,d){var g=this.b.devicePixelRatio;this.b.fe&&(a*=g,b*=g);var g=this.b.Io,l=this.b.Jo,g=(this.Ta.scrollX-g)*this.Eb+g,l=(this.Ta.scrollY-l)*this.Fb+l,m=g,n=l,e=1/this.pc(!d);d?(m-=this.b.L*e/2,n-=this.b.K*e/2):(m-=this.b.width*e/2,n-=this.b.height*e/2);m+=a*e;n+=b*e;b=this.Ra();0!==b&&(m-=g,n-=l,a=Math.cos(b),b=Math.sin(b),d=m*a-n*b,n=n*a+m*b,m=d+g,n+=l);return c?m:n};d.prototype.pb=function(a,b,c,d){var g=this.b.Io,l=this.b.Jo,m=(this.Ta.scrollX-g)*this.Eb+g,n=(this.Ta.scrollY-
l)*this.Fb+l,l=m,g=n,e=this.Ra();if(0!==e){a-=m;b-=n;var t=Math.cos(-e),e=Math.sin(-e),r=a*t-b*e;b=b*t+a*e;a=r+m;b+=n}m=1/this.pc(!d);d?(l-=this.b.L*m/2,g-=this.b.K*m/2):(l-=this.b.width*m/2,g-=this.b.height*m/2);l=(a-l)/m;g=(b-g)/m;a=this.b.devicePixelRatio;this.b.fe&&!d&&(l/=a,g/=a);return c?l:g};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.Kd,px:this.Eb,py:this.Fb,o:this.opacity,zr:this.lb,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.Qa,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.Kd=a.t;this.Eb=a.px;this.Fb=a.py;this.opacity=a.o;this.lb=a.zr;this.pg=a.cg||[];Aa(this.fc,this.mp);var g=new ba;b=0;for(d=this.pg.length;b<d;++b)g.add(this.pg[b]);c=b=0;for(d=this.fc.length;b<d;++b)g.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.Lk(c[b].name))a.Qa=c[b].active,this.ra[a.index]=c[b].params;this.Ld();this.c.sort(m);this.$e=!0};Rb=d})();
(function(){function g(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,h;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]=[]);h=p[a.length];b=0;for(c=h.length;b<c;b++)if(d=h[b],g(a,d))return d;h.push(a);return a}
function q(a,b){this.b=a;this.vp={};this.kn={};this.Wk=!1;this.Bn=new ba;this.sk=[];this.bk=[];this.name=b[0];var c=b[1];this.ae=[];var d,h;d=0;for(h=c.length;d<h;d++)this.Dn(c[d],null,this.ae)}function l(a){this.type=a;this.c=[];this.R=[];this.ea=!0}function c(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ka=[];this.me=[];this.zn=this.Gj=this.nm=this.Ei=this.group=this.lp=!1;this.eb=[];this.Dc=[];this.Ac=[];this.Ag="";this.zg=this.Ei=this.group=!1;this.Zh=null;c[1]&&(this.Ag=c[1][1].toLowerCase(),
this.group=!0,this.Ei=!!c[1][0],this.Zh=[],this.zg=this.Ei,this.b.Sd.push(this),this.b.xi[this.Ag]=this);this.Lc=c[2];this.O=c[4];this.group||(this.b.Tm[this.O.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var h=new Sb(this,d[a]);h.index=a;this.eb.push(h);this.Pm(h.type)}d=c[6];a=0;for(b=d.length;a<b;a++)h=new Tb(this,d[a]),h.index=a,this.Dc.push(h);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Dn(c[a],this,this.Ac);this.Ii=!1;this.eb.length&&(this.Ii=null==this.eb[0].type&&
this.eb[0].Za==X.prototype.j.Cm)}function a(a,b){var c,d,h;if(a&&(-1===b.indexOf(a)&&b.push(a),a.uc))for(c=0,d=a.Ob.length;c<d;c++)h=a.Ob[c],a!==h&&-1===b.indexOf(h)&&b.push(h)}function b(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.J=[];this.ua=[];this.ta={};this.index=-1;this.gg=!1;this.Za=this.b.Pd(b[1]);this.trigger=0<b[3];this.jn=2===b[3];this.Xc=b[4];this.rf=b[5];this.ht=b[6];this.O=b[7];this.b.hf[this.O.toString()]=this;-1===b[0]?(this.type=null,this.Oa=this.Yl,this.ve=null,this.Fc=-1):
(this.type=this.b.m[b[0]],this.Oa=this.ht?this.Xt:this.Xl,b[2]?(this.ve=this.type.ri(b[2]),this.Fc=this.type.Jk(b[2])):(this.ve=null,this.Fc=-1),this.cc.parent&&this.cc.parent.tj());this.jn&&(this.Oa=this.Yt);if(10===b.length){var c,d,h=b[9];c=0;for(d=h.length;c<d;c++){var f=new Ub(this,h[c]);this.J.push(f)}this.ua.length=h.length}}function w(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.J=[];this.ua=[];this.ta={};this.index=-1;this.gg=!1;this.Za=this.b.Pd(b[1]);-1===b[0]?(this.type=null,this.Oa=
this.Yl,this.ve=null,this.Fc=-1):(this.type=this.b.m[b[0]],this.Oa=this.Xl,b[2]?(this.ve=this.type.ri(b[2]),this.Fc=this.type.Jk(b[2])):(this.ve=null,this.Fc=-1));this.O=b[3];this.b.ef[this.O.toString()]=this;if(6===b.length){var c,d,h=b[5];c=0;for(d=h.length;c<d;c++){var f=new Ub(this,h[c]);this.J.push(f)}this.ua.length=h.length}}function t(){B++;D.length===B&&D.push(new Vb);return D[B]}function f(a,b){this.ha=a;this.cc=a.cc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Wc=null;this.Id=0;this.get=
null;this.$m=0;this.Ta=null;this.key=0;this.object=null;this.index=0;this.Hh=this.Ze=this.Hh=this.Ze=this.ln=this.De=this.Ih=null;this.Cc=!1;var c,d,h;switch(b[0]){case 0:case 7:this.Wc=new Wb(this,b[1]);this.Id=0;this.get=this.Fs;break;case 1:this.Wc=new Wb(this,b[1]);this.Id=0;this.get=this.Gs;break;case 5:this.Wc=new Wb(this,b[1]);this.Id=0;this.get=this.Ks;break;case 3:case 8:this.$m=b[1];this.get=this.Ds;break;case 6:this.Ta=this.b.Cf[b[1]];this.get=this.Ls;break;case 9:this.key=b[1];this.get=
this.Js;break;case 4:this.object=this.b.m[b[1]];this.get=this.Ms;this.cc.Pm(this.object);this.ha instanceof Tb?this.cc.tj():this.cc.parent&&this.cc.parent.tj();break;case 10:this.index=b[1];a.type.A?(this.get=this.Hs,this.Cc=!0):this.get=this.Is;break;case 11:this.Ih=b[1];this.De=null;this.get=this.Es;break;case 2:case 12:this.ln=b[1];this.get=this.Cs;break;case 13:for(this.get=this.Ns,this.Ze=[],this.Hh=[],c=1,d=b.length;c<d;c++)h=new Ub(this.ha,b[c]),this.Ze.push(h),this.Hh.push(0)}}function k(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ka=[];this.name=c[1];this.Nj=c[2];this.Di=c[3];this.Kg=!!c[4];this.Hi=!!c[5];this.O=c[6];this.b.eg[this.O.toString()]=this;this.data=this.Di;this.parent?(this.Te=this.Kg||this.Hi?-1:this.b.fu++,this.b.Oq.push(this)):(this.Te=-1,this.b.Zj.push(this))}function u(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ka=[];this.Cg=null;this.Ts=c[1];this.Qa=!0}function h(){this.op=[];this.reset(null)}var p=[];q.prototype.toString=function(){return this.name};
q.prototype.Dn=function(a,b,c){switch(a[0]){case 0:a=new Xb(this,b,a);if(a.Lc)for(c.push(a),c=0,b=a.eb.length;c<b;c++)a.eb[c].trigger&&this.En(a,c);else a.Mn()?this.En(a,0):c.push(a);break;case 1:a=new Ob(this,b,a);c.push(a);break;case 2:a=new Yb(this,b,a),c.push(a)}};q.prototype.Ca=function(){var a,b;a=0;for(b=this.ae.length;a<b;a++)this.ae[a].Ca(a<b-1&&this.ae[a+1].Ii)};q.prototype.rm=function(){U(this.sk);U(this.bk);this.Om(this);U(this.bk)};q.prototype.Om=function(a){var b,c,d,h,f=a.sk,k=a.bk,
g=this.Bn.Rc();b=0;for(c=g.length;b<c;++b)d=g[b],h=d.Cg,!d.Qa||a===h||-1<k.indexOf(h)||(k.push(h),h.Om(a),f.push(h))};q.prototype.Oa=function(a){this.b.Gv||(this.Wk=!0,a||(this.b.gl=!0));var b,c;b=0;for(c=this.ae.length;b<c;b++){var d=this.ae[b];d.Oa();this.b.mk(d.ka);this.b.de&&this.b.bb()}a||(this.b.gl=!1)};q.prototype.En=function(a,b){a.Lc||this.b.Jj.push(a);var c,d,h=a.eb[b],f;h.type?f=h.type.name:f="system";var k=(c=h.jn)?this.kn:this.vp;k[f]||(k[f]=[]);f=k[f];k=h.Za;if(c){if(h.J.length&&(h=
h.J[0],1===h.type&&2===h.Wc.type)){h=h.Wc.value.toLowerCase();c=0;for(d=f.length;c<d;c++)if(f[c].method==k){c=f[c].sg;c[h]?c[h].push([a,b]):c[h]=[[a,b]];return}c={};c[h]=[[a,b]];f.push({method:k,sg:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==k){f[c].sg.push([a,b]);return}jc&&k===jc.prototype.j.df?f.unshift({method:k,sg:[[a,b]]}):f.push({method:k,sg:[[a,b]]})}};Eb=q;l.prototype.Vk=function(){return this.ea?this.type.c.length:this.c.length};l.prototype.oc=function(){return this.ea?this.type.c:
this.c};l.prototype.ph=function(a){a&&(a.b.ob().Pb.Lc?(this.ea&&(U(this.c),Aa(this.R,a.type.c),this.ea=!1),a=this.R.indexOf(a),-1!==a&&(this.c.push(this.R[a]),this.R.splice(a,1))):(this.ea=!1,U(this.c),this.c[0]=a))};mb=l;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";c.prototype.Ca=function(a){var b,c=this.parent;if(this.group)for(this.Gj=!0;c;){if(!c.group){this.Gj=!1;break}c=c.parent}this.nm=!this.Mn()&&(!this.parent||this.parent.group&&this.parent.Gj);this.zn=!!a;this.me=this.ka.slice(0);
for(c=this.parent;c;){a=0;for(b=c.ka.length;a<b;a++)this.Lq(c.ka[a]);c=c.parent}this.ka=d(this.ka);this.me=d(this.me);a=0;for(b=this.eb.length;a<b;a++)this.eb[a].Ca();a=0;for(b=this.Dc.length;a<b;a++)this.Dc[a].Ca();a=0;for(b=this.Ac.length;a<b;a++)this.Ac[a].Ca(a<b-1&&this.Ac[a+1].Ii)};c.prototype.$o=function(a){if(this.zg!==!!a){this.zg=!!a;var b;a=0;for(b=this.Zh.length;a<b;++a)this.Zh[a].Bp();0<b&&this.b.Z.Ce&&this.b.Z.Ce.rm()}};c.prototype.Pm=function(b){a(b,this.ka)};c.prototype.Lq=function(b){a(b,
this.me)};c.prototype.tj=function(){this.lp=!0;this.parent&&this.parent.tj()};c.prototype.Mn=function(){return this.eb.length?this.eb[0].trigger:!1};c.prototype.Oa=function(){var a,b,c=!1,d=this.b,h=this.b.ob();h.Pb=this;var f=this.eb;this.Ii||(h.wk=!1);if(this.Lc){0===f.length&&(c=!0);h.Nb=0;for(a=f.length;h.Nb<a;h.Nb++)b=f[h.Nb],b.trigger||(b=b.Oa())&&(c=!0);(h.Oe=c)&&this.Wl()}else{h.Nb=0;for(a=f.length;h.Nb<a;h.Nb++)if(b=f[h.Nb].Oa(),!b){h.Oe=!1;this.nm&&d.de&&d.bb();return}h.Oe=!0;this.Wl()}this.Dr(h)};
c.prototype.Dr=function(a){a.Oe&&this.zn&&(a.wk=!0);this.nm&&this.b.de&&this.b.bb()};c.prototype.Vt=function(a){this.b.ob().Pb=this;this.eb[a].Oa()&&(this.Wl(),this.b.ob().Oe=!0)};c.prototype.Wl=function(){var a=this.b.ob(),b;a.Lb=0;for(b=this.Dc.length;a.Lb<b;a.Lb++)if(this.Dc[a.Lb].Oa())return;this.Wo()};c.prototype.Tt=function(){var a=this.b.ob(),b;for(b=this.Dc.length;a.Lb<b;a.Lb++)if(this.Dc[a.Lb].Oa())return;this.Wo()};c.prototype.Wo=function(){if(this.Ac.length){var a,b,c,d,h=this.Ac.length-
1;this.b.Ql(this);if(this.lp)for(a=0,b=this.Ac.length;a<b;a++)c=this.Ac[a],(d=!this.Gj||!this.group&&a<h)&&this.b.Pl(c.ka),c.Oa(),d?this.b.Nf(c.ka):this.b.mk(c.ka);else for(a=0,b=this.Ac.length;a<b;a++)this.Ac[a].Oa();this.b.No()}};c.prototype.Wt=function(){var a=this.b.ob();a.Pb=this;var b=!1,c;a.Nb=0;for(c=this.eb.length;a.Nb<c;a.Nb++)if(this.eb[a.Nb].Oa())b=!0;else if(!this.Lc)return!1;return this.Lc?b:!0};c.prototype.$s=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.eb[b].type===
a.type)return!1;return!0};Xb=c;b.prototype.Ca=function(){var a,b,c;a=0;for(b=this.J.length;a<b;a++)c=this.J[a],c.Ca(),c.Cc&&(this.gg=!0)};b.prototype.Yt=function(){return!0};b.prototype.Yl=function(){var a,b;a=0;for(b=this.J.length;a<b;a++)this.ua[a]=this.J[a].get();return Ua(this.Za.apply(this.b.dd,this.ua),this.rf)};b.prototype.Xt=function(){var a,b;a=0;for(b=this.J.length;a<b;a++)this.ua[a]=this.J[a].get();a=this.Za.apply(this.ve?this.ve:this.type,this.ua);this.type.jd();return a};b.prototype.Xl=
function(){var a,b,c,d,h,f,k,g,l=this.type,p=l.aa(),m=this.cc.Lc&&!this.trigger;b=0;var t=l.uc,u=l.A,w=l.rd,q=this.Fc,D=-1<q,B=this.gg,G=this.J,H=this.ua,Q=this.rf,F=this.Za,L;if(B)for(b=0,h=G.length;b<h;++b)f=G[b],f.Cc||(H[b]=f.get(0));else for(b=0,h=G.length;b<h;++b)H[b]=G[b].get(0);if(p.ea){U(p.c);U(p.R);L=l.c;a=0;for(d=L.length;a<d;++a){g=L[a];if(B)for(b=0,h=G.length;b<h;++b)f=G[b],f.Cc&&(H[b]=f.get(a));D?(b=0,u&&(b=g.type.lf[w]),b=F.apply(g.F[q+b],H)):b=F.apply(g,H);(k=Ua(b,Q))?p.c.push(g):m&&
p.R.push(g)}l.finish&&l.finish(!0);p.ea=!1;l.jd();return p.Vk()}c=0;L=(k=m&&!this.cc.$s(this))?p.R:p.c;var J=!1;a=0;for(d=L.length;a<d;++a){g=L[a];if(B)for(b=0,h=G.length;b<h;++b)f=G[b],f.Cc&&(H[b]=f.get(a));D?(b=0,u&&(b=g.type.lf[w]),b=F.apply(g.F[q+b],H)):b=F.apply(g,H);if(Ua(b,Q))if(J=!0,k){if(p.c.push(g),t)for(b=0,h=g.siblings.length;b<h;b++)f=g.siblings[b],f.type.aa().c.push(f)}else{L[c]=g;if(t)for(b=0,h=g.siblings.length;b<h;b++)f=g.siblings[b],f.type.aa().c[c]=f;c++}else if(k){L[c]=g;if(t)for(b=
0,h=g.siblings.length;b<h;b++)f=g.siblings[b],f.type.aa().R[c]=f;c++}else if(m&&(p.R.push(g),t))for(b=0,h=g.siblings.length;b<h;b++)f=g.siblings[b],f.type.aa().R.push(f)}za(L,c);if(t)for(u=l.Ob,a=0,d=u.length;a<d;a++)g=u[a].aa(),k?za(g.R,c):za(g.c,c);c=J;if(k&&!J)for(a=0,d=p.c.length;a<d;a++){g=p.c[a];if(B)for(b=0,h=G.length;b<h;b++)f=G[b],f.Cc&&(H[b]=f.get(a));b=D?F.apply(g.F[q],H):F.apply(g,H);if(Ua(b,Q)){J=!0;break}}l.finish&&l.finish(c||m);return m?J:p.Vk()};Sb=b;w.prototype.Ca=function(){var a,
b,c;a=0;for(b=this.J.length;a<b;a++)c=this.J[a],c.Ca(),c.Cc&&(this.gg=!0)};w.prototype.Yl=function(){var a=this.b,b,c,d=this.J,h=this.ua;b=0;for(c=d.length;b<c;++b)h[b]=d[b].get();return this.Za.apply(a.dd,h)};w.prototype.Xl=function(){var a=this.type,b=this.Fc,c=a.rd,d=this.gg,h=this.J,f=this.ua,k=this.Za,g=a.aa().oc(),a=a.A,l=-1<b,p,m,t,u,w,q;if(d)for(m=0,u=h.length;m<u;++m)w=h[m],w.Cc||(f[m]=w.get(0));else for(m=0,u=h.length;m<u;++m)f[m]=h[m].get(0);p=0;for(t=g.length;p<t;++p){q=g[p];if(d)for(m=
0,u=h.length;m<u;++m)w=h[m],w.Cc&&(f[m]=w.get(p));l?(m=0,a&&(m=q.type.lf[c]),k.apply(q.F[b+m],f)):k.apply(q,f)}return!1};Tb=w;var D=[],B=-1;f.prototype.Ca=function(){var a,b;if(11===this.type)this.De=this.b.sn(this.Ih,this.cc.parent);else if(13===this.type)for(a=0,b=this.Ze.length;a<b;a++)this.Ze[a].Ca();this.Wc&&this.Wc.Ca()};f.prototype.mt=function(a){this.Cc||!a||a.Ba.uj||(this.Cc=!0)};f.prototype.cp=function(){this.Cc=!0};f.prototype.Fs=function(a){this.Id=a||0;a=t();this.Wc.get(a);B--;return a.data};
f.prototype.Gs=function(a){this.Id=a||0;a=t();this.Wc.get(a);B--;return N(a.data)?a.data:""};f.prototype.Ms=function(){return this.object};f.prototype.Ds=function(){return this.$m};f.prototype.Ks=function(a){this.Id=a||0;a=t();this.Wc.get(a);B--;return a.Sa()?this.b.ud(a.data):this.b.vg(a.data)};f.prototype.Ls=function(){return this.Ta};f.prototype.Js=function(){return this.key};f.prototype.Is=function(){return this.index};f.prototype.Hs=function(a){a=a||0;var b=this.ha.type,c=null,c=b.aa(),d=c.oc();
if(d.length)c=d[a%d.length].type;else if(c.R.length)c=c.R[a%c.R.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.li[b.rd]};f.prototype.Es=function(){return this.De};f.prototype.Cs=function(){return this.ln};f.prototype.Ns=function(){var a,b;a=0;for(b=this.Ze.length;a<b;a++)this.Hh[a]=this.Ze[a].get();return this.Hh};Ub=f;k.prototype.Ca=function(){this.ka=d(this.ka)};k.prototype.Ye=function(a){var b=this.b.rn();this.parent&&!this.Kg&&b?(this.Te>=b.length&&
(b.length=this.Te+1),b[this.Te]=a):this.data=a};k.prototype.xg=function(){var a=this.b.rn();return!this.parent||this.Kg||!a||this.Hi?this.data:this.Te>=a.length||"undefined"===typeof a[this.Te]?this.Di:a[this.Te]};k.prototype.Oa=function(){!this.parent||this.Kg||this.Hi||this.Ye(this.Di)};Ob=k;u.prototype.toString=function(){return"include:"+this.Cg.toString()};u.prototype.Ca=function(){this.Cg=this.b.yk[this.Ts];this.sheet.Bn.add(this);this.ka=d(this.ka);for(var a=this.parent;a;)a.group&&a.Zh.push(this),
a=a.parent;this.Bp()};u.prototype.Oa=function(){this.parent&&this.b.rh(this.b.m);this.Cg.Wk||this.Cg.Oa(!0);this.parent&&this.b.Nf(this.b.m)};u.prototype.Bp=function(){for(var a=this.parent;a;){if(a.group&&!a.zg){this.Qa=!1;return}a=a.parent}this.Qa=!0};Yb=u;h.prototype.reset=function(a){this.Pb=a;this.Lb=this.Nb=0;U(this.op);this.wk=this.Oe=!1};Nb=h})();
(function(){function g(a,b){this.ha=a;this.b=a.b;this.type=b[0];this.get=[this.Ur,this.Qr,this.cs,this.gs,this.Fr,this.ds,this.Yr,this.Nr,this.Xr,this.bs,this.Gr,this.as,this.Or,this.Zr,this.Vr,this.Wr,this.Rr,this.Sr,this.Mr,this.es,this.$r,this.Tr,this.Lr,this.Pr][this.type];var c=null;this.Bd=this.J=this.ua=this.Za=this.Fj=this.second=this.first=this.value=null;this.Fc=-1;this.Ic=null;this.Gp=-1;this.De=this.Ih=null;this.Pf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Wb(a,b[1]);break;case 18:this.first=new Wb(a,b[1]);this.second=new Wb(a,b[2]);this.Fj=new Wb(a,b[3]);break;case 19:this.Za=this.b.Pd(b[1]);this.Za!==X.prototype.nb.random&&this.Za!==X.prototype.nb.Wq||this.ha.cp();this.ua=[];this.J=[];3===b.length?(c=b[2],this.ua.length=c.length+1):this.ua.length=1;break;case 20:this.Bd=this.b.m[b[1]];this.Fc=-1;this.Za=this.b.Pd(b[2]);this.Pf=b[3];$b.Function&&this.Za===$b.Function.prototype.nb.zu&&this.ha.cp();b[4]?this.Ic=new Wb(a,b[4]):this.Ic=null;this.ua=
[];this.J=[];6===b.length?(c=b[5],this.ua.length=c.length+1):this.ua.length=1;break;case 21:this.Bd=this.b.m[b[1]];this.Pf=b[2];b[3]?this.Ic=new Wb(a,b[3]):this.Ic=null;this.Gp=b[4];break;case 22:this.Bd=this.b.m[b[1]];this.Bd.ri(b[2]);this.Fc=this.Bd.Jk(b[2]);this.Za=this.b.Pd(b[3]);this.Pf=b[4];b[5]?this.Ic=new Wb(a,b[5]):this.Ic=null;this.ua=[];this.J=[];7===b.length?(c=b[6],this.ua.length=c.length+1):this.ua.length=1;break;case 23:this.Ih=b[1],this.De=null}this.ha.mt(this.Bd);4<=this.type&&17>=
this.type&&(this.first=new Wb(a,b[1]),this.second=new Wb(a,b[2]));if(c){var d,f;d=0;for(f=c.length;d<f;d++)this.J.push(new Wb(a,c[d]))}}function m(){++c;l.length===c&&l.push(new Vb);return l[c]}function d(a,b,c){var d,f;d=0;for(f=a.length;d<f;++d)a[d].get(c),b[d+1]=c.data}function q(a,b){this.type=a||W.cf;this.data=b||0;this.Ue=null;this.type==W.cf&&(this.data=Math.floor(this.data))}g.prototype.Ca=function(){23===this.type&&(this.De=this.ha.b.sn(this.Ih,this.ha.cc.parent));this.first&&this.first.Ca();
this.second&&this.second.Ca();this.Fj&&this.Fj.Ca();this.Ic&&this.Ic.Ca();if(this.J){var a,b;a=0;for(b=this.J.length;a<b;a++)this.J[a].Ca()}};var l=[],c=-1;g.prototype.es=function(a){var b=this.J,g=this.ua;g[0]=a;a=m();d(b,g,a);--c;this.Za.apply(this.b.dd,g)};g.prototype.$r=function(a){var b=this.Bd,g=this.ua,l=this.J,f=this.Ic,k=this.Za,u=this.ha.Id,h=b.aa(),p=h.oc();if(!p.length)if(h.R.length)p=h.R;else{this.Pf?a.Yb(""):a.ja(0);return}g[0]=a;a.Ue=b;a=m();d(l,g,a);f&&(f.get(a),a.Sa()&&(u=a.data,
p=b.c));--c;b=p.length;if(u>=b||u<=-b)u%=b;0>u&&(u+=b);k.apply(p[u],g)};g.prototype.Lr=function(a){var b=this.Bd,g=this.ua,l=this.J,f=this.Ic,k=this.Fc,u=this.Za,h=this.ha.Id,p=b.aa(),q=p.oc();if(!q.length)if(p.R.length)q=p.R;else{this.Pf?a.Yb(""):a.ja(0);return}g[0]=a;a.Ue=b;a=m();d(l,g,a);f&&(f.get(a),a.Sa()&&(h=a.data,q=b.c));--c;l=q.length;if(h>=l||h<=-l)h%=l;0>h&&(h+=l);h=q[h];q=0;b.A&&(q=h.type.lf[b.rd]);u.apply(h.F[k+q],g)};g.prototype.Tr=function(a){var b=this.Ic,d=this.Bd,g=this.Gp,f=this.ha.Id,
k=d.aa(),l=k.oc();if(!l.length)if(k.R.length)l=k.R;else{this.Pf?a.Yb(""):a.ja(0);return}if(b){k=m();b.get(k);if(k.Sa()){f=k.data;d=d.c;f%=d.length;0>f&&(f+=d.length);g=d[f].Ka[g];N(g)?a.Yb(g):a.q(g);--c;return}--c}b=l.length;if(f>=b||f<=-b)f%=b;0>f&&(f+=b);f=l[f];l=0;d.A&&(l=f.type.li[d.rd]);g=f.Ka[g+l];N(g)?a.Yb(g):a.q(g)};g.prototype.Ur=function(a){a.type=W.cf;a.data=this.value};g.prototype.Qr=function(a){a.type=W.bf;a.data=this.value};g.prototype.cs=function(a){a.type=W.String;a.data=this.value};
g.prototype.gs=function(a){this.first.get(a);a.Sa()&&(a.data=-a.data)};g.prototype.Fr=function(a){this.first.get(a);var b=m();this.second.get(b);a.Sa()&&b.Sa()&&(a.data+=b.data,b.xf()&&a.Ff());--c};g.prototype.ds=function(a){this.first.get(a);var b=m();this.second.get(b);a.Sa()&&b.Sa()&&(a.data-=b.data,b.xf()&&a.Ff());--c};g.prototype.Yr=function(a){this.first.get(a);var b=m();this.second.get(b);a.Sa()&&b.Sa()&&(a.data*=b.data,b.xf()&&a.Ff());--c};g.prototype.Nr=function(a){this.first.get(a);var b=
m();this.second.get(b);a.Sa()&&b.Sa()&&(a.data/=b.data,a.Ff());--c};g.prototype.Xr=function(a){this.first.get(a);var b=m();this.second.get(b);a.Sa()&&b.Sa()&&(a.data%=b.data,b.xf()&&a.Ff());--c};g.prototype.bs=function(a){this.first.get(a);var b=m();this.second.get(b);a.Sa()&&b.Sa()&&(a.data=Math.pow(a.data,b.data),b.xf()&&a.Ff());--c};g.prototype.Gr=function(a){this.first.get(a);var b=m();this.second.get(b);b.Af()||a.Af()?this.Ir(a,b):this.Hr(a,b);--c};g.prototype.Ir=function(a,b){a.Af()&&b.Af()?
this.Kr(a,b):this.Jr(a,b)};g.prototype.Kr=function(a,b){a.data+=b.data};g.prototype.Jr=function(a,b){a.Af()?a.data+=(Math.round(1E10*b.data)/1E10).toString():a.Yb(a.data.toString()+b.data)};g.prototype.Hr=function(a,b){a.ja(a.data&&b.data?1:0)};g.prototype.as=function(a){this.first.get(a);var b=m();this.second.get(b);a.Sa()&&b.Sa()&&(a.data||b.data?a.ja(1):a.ja(0));--c};g.prototype.Mr=function(a){this.first.get(a);a.data?this.second.get(a):this.Fj.get(a)};g.prototype.Or=function(a){this.first.get(a);
var b=m();this.second.get(b);a.ja(a.data===b.data?1:0);--c};g.prototype.Zr=function(a){this.first.get(a);var b=m();this.second.get(b);a.ja(a.data!==b.data?1:0);--c};g.prototype.Vr=function(a){this.first.get(a);var b=m();this.second.get(b);a.ja(a.data<b.data?1:0);--c};g.prototype.Wr=function(a){this.first.get(a);var b=m();this.second.get(b);a.ja(a.data<=b.data?1:0);--c};g.prototype.Rr=function(a){this.first.get(a);var b=m();this.second.get(b);a.ja(a.data>b.data?1:0);--c};g.prototype.Sr=function(a){this.first.get(a);
var b=m();this.second.get(b);a.ja(a.data>=b.data?1:0);--c};g.prototype.Pr=function(a){var b=this.De.xg();ga(b)?a.q(b):a.Yb(b)};Wb=g;q.prototype.xf=function(){return this.type===W.bf};q.prototype.Sa=function(){return this.type===W.cf||this.type===W.bf};q.prototype.Af=function(){return this.type===W.String};q.prototype.Ff=function(){this.xf()||(this.Af()&&(this.data=parseFloat(this.data)),this.type=W.bf)};q.prototype.ja=function(a){this.type=W.cf;this.data=Math.floor(a)};q.prototype.q=function(a){this.type=
W.bf;this.data=a};q.prototype.Yb=function(a){this.type=W.String;this.data=a};q.prototype.eu=function(a){ga(a)?(this.type=W.bf,this.data=a):N(a)?(this.type=W.String,this.data=a.toString()):(this.type=W.cf,this.data=0)};Vb=q;W={cf:0,bf:1,String:2}})();function X(g){this.b=g;this.Kb=[]}
X.prototype.Wb=function(){var g={},m,d,q,l,c,a,b,w;g.waits=[];var t=g.waits,f;m=0;for(d=this.Kb.length;m<d;m++){a=this.Kb[m];f={t:a.time,st:a.jp,s:a.fm,ev:a.kf.O,sm:[],sols:{}};a.kf.Dc[a.Lb]&&(f.act=a.kf.Dc[a.Lb].O);q=0;for(l=a.ka.length;q<l;q++)f.sm.push(a.ka[q].O);for(c in a.sb)if(a.sb.hasOwnProperty(c)){b=this.b.m[parseInt(c,10)];w={sa:a.sb[c].rj,insts:[]};q=0;for(l=a.sb[c].vd.length;q<l;q++)w.insts.push(a.sb[c].vd[q].uid);f.sols[b.O.toString()]=w}t.push(f)}return g};
X.prototype.wc=function(g){g=g.waits;var m,d,q,l,c,a,b,w,t,f,k;U(this.Kb);m=0;for(d=g.length;m<d;m++)if(a=g[m],w=this.b.Tm[a.ev.toString()]){t=-1;q=0;for(l=w.Dc.length;q<l;q++)if(w.Dc[q].O===a.act){t=q;break}if(-1!==t){b={sb:{},ka:[],tk:!1};b.time=a.t;b.jp=a.st||"";b.fm=!!a.s;b.kf=w;b.Lb=t;q=0;for(l=a.sm.length;q<l;q++)(w=this.b.wi(a.sm[q]))&&b.ka.push(w);for(c in a.sols)if(a.sols.hasOwnProperty(c)&&(w=this.b.wi(parseInt(c,10)))){t=a.sols[c];f={rj:t.sa,vd:[]};q=0;for(l=t.insts.length;q<l;q++)(k=this.b.vi(t.insts[q]))&&
f.vd.push(k);b.sb[w.index.toString()]=f}this.Kb.push(b)}}};
(function(){function g(){}function m(){}function d(){}var q=X.prototype;g.prototype.Fm=function(){return!0};g.prototype.pq=function(){return!0};g.prototype.Eq=function(){var a=this.b.si().ta;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,c=this.b.Yf;a.TriggerOnce_lastTick=c;return this.b.nl||b!==c-1};g.prototype.Np=function(a,b,c){return Zb(a.xg(),b,c)};g.prototype.Cm=function(){var a=this.b.ob();return a.wk?!1:!a.Oe};g.prototype.Gm=function(){return!0};
g.prototype.cq=function(){return!0};g.prototype.Uj=function(){return!0};g.prototype.qq=function(){return!0};g.prototype.Sj=function(){return!0};g.prototype.Jp=function(a,b,c){return La(V(a),V(c))<=V(b)};g.prototype.Rp=function(a,b){return Na(V(a),V(b))};g.prototype.Pp=function(a,b,c){a=Ia(a);b=Ia(b);c=Ia(c);return Na(c,b)?Na(a,b)&&!Na(a,c):!(!Na(a,b)&&Na(a,c))};q.j=new g;m.prototype.Xp=function(a){if(!this.b.Le&&!this.b.ld){var b=this.b.Tb.indexOf(this.b.Z);if(!a||0!==b)if(a||b!==this.b.Tb.length-
1)this.b.ld=this.b.Tb[b+(a?-1:1)]}};m.prototype.Cq=function(a,b){0===a.Nj?ga(b)?a.Ye(b):a.Ye(parseFloat(b)):1===a.Nj&&a.Ye(b.toString())};m.prototype.Ip=function(a,b){0===a.Nj?ga(b)?a.Ye(a.xg()+b):a.Ye(a.xg()+parseFloat(b)):1===a.Nj&&a.Ye(a.xg()+b.toString())};var l=[],c=[];m.prototype.Fq=function(a){if(!(0>a)){var b,d,g,f=this.b.ob(),k;l.length?k=l.pop():k={sb:{},ka:[]};k.tk=!1;k.time=this.b.vc.da+a;k.jp="";k.fm=!1;k.kf=f.Pb;k.Lb=f.Lb+1;a=0;for(b=this.b.m.length;a<b;a++)g=this.b.m[a],d=g.aa(),d.ea&&
-1===f.Pb.ka.indexOf(g)||(k.ka.push(g),g=void 0,c.length?g=c.pop():g={vd:[]},g.rj=!1,g.rj=d.ea,Aa(g.vd,d.c),k.sb[a.toString()]=g);this.Kb.push(k);return!0}};m.prototype.vq=function(){var a,b,c;a=0;for(b=this.b.Zj.length;a<b;a++)c=this.b.Zj[a],c.data=c.Di};m.prototype.Op=function(a){if(!this.b.Le&&!this.b.ld)for(var b in this.b.Cf)if(this.b.Cf.hasOwnProperty(b)&&ib(b,a)){this.b.ld=this.b.Cf[b];break}};m.prototype.wq=function(){if(!this.b.Le&&!this.b.ld&&this.b.Z){this.b.ld=this.b.Z;var a,b,c;a=0;for(b=
this.b.Sd.length;a<b;a++)c=this.b.Sd[a],c.$o(c.Ei)}};q.ma=new m;d.prototype["int"]=function(a,b){N(b)?(a.ja(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ja(b)};d.prototype["float"]=function(a,b){N(b)?(a.q(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.q(b)};d.prototype.random=function(a,b,c){void 0===c?a.q(Math.random()*b):a.q(Math.random()*(c-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.ja(Math.round(b))};
d.prototype.floor=function(a,b){a.ja(Math.floor(b))};d.prototype.ceil=function(a,b){a.ja(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(Ea(Math.asin(b)))};d.prototype.acos=function(a,b){a.q(Ea(Math.acos(b)))};d.prototype.atan=function(a,b){a.q(Ea(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 c,d,f;c=2;for(d=arguments.length;c<d;c++)f=arguments[c],"number"===typeof f&&b<f&&(b=f);a.q(b)};d.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,d,f;c=2;for(d=arguments.length;c<d;c++)f=arguments[c],"number"===typeof f&&b>f&&(b=f);a.q(b)};d.prototype.Be=function(a){a.q(this.b.Be)};d.prototype.Zf=function(a){a.q(this.b.Zf)};d.prototype.time=function(a){a.q(this.b.vc.da)};d.prototype.Yf=
function(a){a.ja(this.b.Yf)};d.prototype.Zi=function(a){a.ja(this.b.Zi)};d.prototype.Fk=function(a){a.ja(this.b.Fk)};d.prototype.i=function(a,b,c,d,f){a.q(Ea(Ka(b,c,d,f)))};d.prototype.left=function(a,b,c){a.Yb(N(b)?b.substr(0,c):"")};d.prototype.right=function(a,b,c){a.Yb(N(b)?b.substr(b.length-c):"")};d.prototype.replace=function(a,b,c,d){N(b)&&N(c)&&N(d)?a.Yb(b.replace(new RegExp(bb(c),"gi"),d)):a.Yb(N(b)?b:"")};d.prototype.trim=function(a,b){a.Yb(N(b)?b.trim():"")};d.prototype.Wq=function(a){var b=
R(Math.random()*(arguments.length-1));a.eu(arguments[b+1])};d.prototype.nk=function(a){a.q(this.b.nk/1E3)};d.prototype.Ti=function(a){a.q(this.b.Ti)};q.nb=new d;q.Ut=function(){var a,b,d,g,f,k,m=this.b.ob();a=0;for(d=this.Kb.length;a<d;a++){g=this.Kb[a];if(-1===g.time){if(!g.fm)continue}else if(g.time>this.b.vc.da)continue;m.Pb=g.kf;m.Lb=g.Lb;m.Nb=0;for(b in g.sb)g.sb.hasOwnProperty(b)&&(f=this.b.m[parseInt(b,10)].aa(),k=g.sb[b],f.ea=k.rj,Aa(f.c,k.vd),f=k,U(f.vd),c.push(f));g.kf.Tt();this.b.mk(g.ka);
g.tk=!0}b=a=0;for(d=this.Kb.length;a<d;a++)g=this.Kb[a],this.Kb[b]=g,g.tk?(Wa(g.sb),U(g.ka),l.push(g)):b++;za(this.Kb,b)}})();
(function(){lb=function(g,d){var q=g[1],l=g[3],c=g[4],a=g[5],b=g[6],w=g[7],t=g[8];d.j||(d.j={});d.ma||(d.ma={});d.nb||(d.nb={});var f=d.j,k=d.ma,u=d.nb;l&&(f.Eu=function(a,b){return Zb(this.x,a,b)},f.Fu=function(a,b){return Zb(this.y,a,b)},f.Mu=function(){var a=this.e;this.la();var b=this.ya;return!(b.right<a.wa||b.bottom<a.xa||b.left>a.Ia||b.top>a.Ha)},f.Nu=function(){this.la();var a=this.ya,b=this.b.Z;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},f.Zu=function(a,b,c){var d=this.aa(),
f=d.oc();if(!f.length)return!1;var e=f[0],g=e,k=Ta(e.x,e.y,b,c),l,m,u;l=1;for(m=f.length;l<m;l++)if(e=f[l],u=Ta(e.x,e.y,b,c),0===a&&u<k||1===a&&u>k)k=u,g=e;d.ph(g);return!0},k.qv=function(a){this.x!==a&&(this.x=a,this.va())},k.rv=function(a){this.y!==a&&(this.y=a,this.va())},k.Aq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.va()},k.Bq=function(a,b){var c=a.xs(this);if(c){var d;c.Nk?(d=c.Nk(b,!0),c=c.Nk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.va()}},
k.Su=function(a){0!==a&&(this.x+=Math.cos(this.i)*a,this.y+=Math.sin(this.i)*a,this.va())},k.Ru=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.va())},u.Wj=function(a){a.q(this.x)},u.Xj=function(a){a.q(this.y)},u.Be=function(a){a.q(this.b.Kk(this))});c&&(f.Du=function(a,b){return Zb(this.width,a,b)},f.Au=function(a,b){return Zb(this.height,a,b)},k.pv=function(a){this.width!==a&&(this.width=a,this.va())},k.mv=function(a){this.height!==a&&(this.height=a,this.va())},k.nv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.va()},u.vv=function(a){a.q(this.width)},u.Iu=function(a){a.q(this.height)},u.wu=function(a){this.la();a.q(this.ya.left)},u.yu=function(a){this.la();a.q(this.ya.top)},u.xu=function(a){this.la();a.q(this.ya.right)},u.vu=function(a){this.la();a.q(this.ya.bottom)});a&&(f.Jp=function(a,b){return La(this.i,V(b))<=V(a)},f.Rp=function(a){return Na(this.i,V(a))},f.Pp=function(a,b){var c=Ia(a),d=Ia(b),f=Ga(this.i);return Na(d,
c)?Na(f,c)&&!Na(f,d):!(!Na(f,c)&&Na(f,d))},k.iv=function(a){a=V(Fa(a));isNaN(a)||this.i===a||(this.i=a,this.va())},k.cv=function(a){0===a||isNaN(a)||(this.i+=V(a),this.i=Ga(this.i),this.va())},k.dv=function(a){0===a||isNaN(a)||(this.i-=V(a),this.i=Ga(this.i),this.va())},k.gv=function(a,b){var c=Ma(this.i,V(b),V(a));isNaN(c)||this.i===c||(this.i=c,this.va())},k.hv=function(a,b,c){a=Ma(this.i,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.i===a||(this.i=a,this.va())},k.ov=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.i===c||(this.i=c,this.va())},u.uu=function(a){a.q(Ha(this.i))});q||(f.Bu=function(a,b,c){return Zb(this.Ka[a],b,c)},f.Ku=function(a){return this.Ka[a]},f.$u=function(a,b){var c=this.aa(),d=c.oc();if(!d.length)return!1;var f=d[0],e=f,g=f.Ka[b],k,l,m;k=1;for(l=d.length;k<l;k++)if(f=d[k],m=f.Ka[b],0===a&&m<g||1===a&&m>g)g=m,e=f;c.ph(e);return!0},f.Yu=function(a){var b,c,d,f,e;if(this.b.si().rf){e=this.aa();if(e.ea)for(e.ea=!1,U(e.c),U(e.R),d=this.c,b=0,c=d.length;b<c;b++)f=
d[b],f.uid===a?e.R.push(f):e.c.push(f);else{d=b=0;for(c=e.c.length;b<c;b++)f=e.c[b],e.c[d]=f,f.uid===a?e.R.push(f):d++;za(e.c,d)}this.jd();return!!e.c.length}f=this.b.vi(a);if(!f)return!1;e=this.aa();if(!e.ea&&-1===e.c.indexOf(f))return!1;if(this.A)for(a=f.type.pa,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.ph(f),this.jd(),!0}else if(f.type===this)return e.ph(f),this.jd(),!0;return!1},f.dq=function(){return!0},f.fq=function(){return!0},k.yq=function(a,b){var c=this.Ka;ga(c[a])?c[a]=ga(b)?b:parseFloat(b):
N(c[a])&&(c[a]=N(b)?b:b.toString())},k.tu=function(a,b){var c=this.Ka;ga(c[a])?c[a]=ga(b)?c[a]+b:c[a]+parseFloat(b):N(c[a])&&(c[a]=N(b)?c[a]+b:c[a]+b.toString())},k.sv=function(a,b){var c=this.Ka;ga(c[a])&&(c[a]=ga(b)?c[a]-b:c[a]-parseFloat(b))},k.jv=function(a,b){this.Ka[a]=b?1:0},k.tv=function(a){this.Ka[a]=1-this.Ka[a]},k.Hu=function(){this.b.Od(this)},k.Wp||(k.Wp=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Qi(this,b,!0);this.gd&&this.gd();if(this.F)for(a=0,b=this.F.length;a<
b;++a)c=this.F[a],c.gd&&c.gd()}),u.Gu=function(a){var b=a.Ue.c.length,c,d,f;c=0;for(d=this.b.Gc.length;c<d;c++)f=this.b.Gc[c],a.Ue.A?0<=f.type.pa.indexOf(a.Ue)&&b++:f.type===a.Ue&&b++;a.ja(b)},u.bv=function(a){a.ja(a.Ue.aa().oc().length)},u.uv=function(a){a.ja(this.uid)},u.Ju=function(a){a.ja(this.yg())},u.Kp||(u.Kp=function(a){a.Yb(JSON.stringify(this.b.Zl(this,!0)))}));b&&(f.Ou=function(){return this.visible},k.Dq=function(a){!a!==!this.visible&&(this.visible=a,this.b.ca=!0)},f.Cu=function(a,b){return Zb(hb(100*
this.opacity),a,b)},k.zq=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ca=!0)},u.Opacity=function(a){a.q(hb(100*this.opacity))});w&&(f.Lu=function(a){return a?this.e===a:!1},f.av=function(a){var b=this.aa(),c=b.oc();if(!c.length)return!1;var d=c[0],f=d,e,g;e=1;for(g=c.length;e<g;e++)if(d=c[e],0===a){if(d.e.index>f.e.index||d.e.index===f.e.index&&d.qc()>f.qc())f=d}else if(d.e.index<f.e.index||d.e.index===f.e.index&&d.qc()<f.qc())f=d;b.ph(f);return!0},k.Vu=function(){var a=
this.e,b=a.c;b.length&&b[b.length-1]===this||(a.Of(this,!1),a.ig(this,!1),this.b.ca=!0)},k.Tu=function(){var a=this.e,b=a.c;b.length&&b[0]===this||(a.Of(this,!1),a.Mt(this),this.b.ca=!0)},k.Uu=function(a){a&&a!=this.e&&(this.e.Of(this,!0),this.e=a,a.ig(this,!0),this.b.ca=!0)},k.xv=function(a,b){var c=0===a;if(b){var d=b.ss(this);d&&d.uid!==this.uid&&(this.e.index!==d.e.index&&(this.e.Of(this,!0),this.e=d.e,d.e.ig(this,!0)),this.e.ot(this,d,c),this.b.ca=!0)}},u.Qu=function(a){a.ja(this.e.wo)},u.Pu=
function(a){a.Yb(this.e.name)},u.wv=function(a){a.ja(this.qc())});t&&(k.kv=function(a,b){if(this.b.n){var c=this.type.Mk(b);if(!(0>c)){var d=1===a;this.Qd[c]!==d&&(this.Qd[c]=d,this.Ld(),this.b.ca=!0)}}},k.lv=function(a,b,c){if(this.b.n){var d=this.type.Mk(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.Bs(a.ab,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Qa&&(this.b.ca=!0))))}})};Fb=function(){this.hk=this.Th=!0;this.type.Nh=!0;this.b.ca=!0;var g,d,q=this.fk;g=0;for(d=
q.length;g<d;++g)q[g](this);this.e.Qc&&this.la()};Gb=function(g){g&&this.fk.push(g)};Ib=function(){if(this.Th){var g=this.ya,d=this.Mb;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Bb*this.width,-this.Cb*this.height);this.i?(g.offset(-this.x,-this.y),d.ep(g,this.i),d.offset(this.x,this.y),d.Um(g)):d.Tf(g);g.normalize();this.Th=!1;this.pu()}};var g=new ta(0,0,0,0);Jb=function(){if(this.e.Qc){var m=this.e.Vb,d=this.ya;g.set(m.$b(d.left),m.ac(d.top),m.$b(d.right),m.ac(d.bottom));
this.Gb.ii(g)||(this.Gb.right<this.Gb.left?m.update(this,null,g):m.update(this,this.Gb,g),this.Gb.ng(g),this.e.Fd=!0)}};Kb=function(){if(this.hk&&this.we){this.la();var m=this.type.Yh,d=this.ya;g.set(m.$b(d.left),m.ac(d.top),m.$b(d.right),m.ac(d.bottom));this.Wd.ii(g)||(this.Wd.right<this.Wd.left?m.update(this,null,g):m.update(this,this.Wd,g),this.Wd.ng(g),this.hk=!1)}};Hb=function(g,d){return this.ya.Ya(g,d)&&this.Mb.Ya(g,d)?this.W&&!this.W.wf()?(this.W.gf(this.width,this.height,this.i),this.W.Ya(g-
this.x,d-this.y)):!0:!1};Bb=function(){this.type.Lj();return this.He};Lb=function(){this.e.vm();return this.Sc};Mb=function(){U(this.U);var g,d;g=0;for(d=this.Qd.length;g<d;g++)this.Qd[g]&&this.U.push(this.type.G[g]);this.Fp=!!this.U.length};Cb=function(){return"Inst"+this.Ro};ob=function(g){if(g&&g.uc&&g.type!=this){var d,q,l;d=0;for(q=g.siblings.length;d<q;d++)if(l=g.siblings[d],l.type==this)return l}g=this.aa().oc();return g.length?g[0]:null};pb=function(g){var d=this.aa().oc();return d.length?
d[g.yg()%d.length]:null};nb=function(){if(this.Wf&&!this.A){var g,d;g=0;for(d=this.c.length;g<d;g++)this.c[g].He=g;var q=g,l=this.b.Gc;g=0;for(d=l.length;g<d;++g)l[g].type===this&&(l[g].He=q++);this.Wf=!1}};zb=function(g){if(g<this.c.length)return this.c[g];g-=this.c.length;var d=this.b.Gc,q,l;q=0;for(l=d.length;q<l;++q)if(d[q].type===this){if(0===g)return d[q];--g}return null};qb=function(){return this.ne[this.pd]};rb=function(){this.pd++;this.pd===this.ne.length?this.ne.push(new mb(this)):this.ne[this.pd].ea=
!0};tb=function(){this.pd++;this.pd===this.ne.length&&this.ne.push(new mb(this));var g=this.ne[this.pd],d=this.ne[this.pd-1];d.ea?g.ea=!0:(g.ea=!1,Aa(g.c,d.c),Aa(g.R,d.R))};ub=function(){this.pd--};vb=function(g){var d,q,l,c,a,b=0;if(!this.A)for(d=0,q=this.pa.length;d<q;d++)for(a=this.pa[d],l=0,c=a.Fa.length;l<c;l++){if(g===a.Fa[l].name)return this.ta.lastBehIndex=b,a.Fa[l];b++}d=0;for(q=this.Fa.length;d<q;d++){if(g===this.Fa[d].name)return this.ta.lastBehIndex=b,this.Fa[d];b++}return null};wb=function(g){return this.ri(g)?
this.ta.lastBehIndex:-1};xb=function(g){var d,q;d=0;for(q=this.G.length;d<q;d++)if(this.G[d].name===g)return d;return-1};yb=function(){if(this.uc&&!this.A){var g,d,q,l,c,a,b;this.Lj();a=this.aa();var w=a.ea,t=(g=this.b.ob())&&g.Pb&&g.Pb.Lc;g=0;for(d=this.Ob.length;g<d;g++)if(c=this.Ob[g],c!==this&&(c.Lj(),b=c.aa(),b.ea=w,!w)){U(b.c);q=0;for(l=a.c.length;q<l;++q)b.c[q]=c.tn(a.c[q].He);if(t)for(U(b.R),q=0,l=a.R.length;q<l;++q)b.R[q]=c.tn(a.R[q].He)}}};Ab=function(){return"Type"+this.O};Zb=function(g,
d,q){if("undefined"===typeof g||"undefined"===typeof q)return!1;switch(d){case 0:return g===q;case 1:return g!==q;case 2:return g<q;case 3:return g<=q;case 4:return g>q;case 5:return g>=q;default:return!1}}})();var hc={};function kc(g){this.b=g}
(function(){function g(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function m(a){a=a.toLowerCase();return T.hasOwnProperty(a)&&T[a].length?T[a][0].ec():y.destination}function d(){return y.createGain?y.createGain():y.createGainNode()}function q(a){return y.createDelay?y.createDelay(a):y.createDelayNode(a)}function l(a){a.start?a.start(0):a.noteOn(0)}function c(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 b(a,
b,c,e,f,g){this.type="filter";this.Mc=[a,b,c,e,f,g];this.P=d();this.D=d();this.D.gain.value=g;this.B=d();this.B.gain.value=1-g;this.Ga=y.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?a:rc[a];this.Ga.frequency.value=b;this.Ga.detune&&(this.Ga.detune.value=c);this.Ga.Q.value=e;this.Ga.gain.value=f;this.P.connect(this.Ga);this.P.connect(this.B);this.Ga.connect(this.D)}function w(a,b,c){this.type="delay";this.Mc=[a,b,c];this.P=d();this.D=d();this.D.gain.value=c;this.B=d();this.B.gain.value=
1-c;this.bh=d();this.mc=q(a);this.mc.delayTime.value=a;this.gi=d();this.gi.gain.value=b;this.P.connect(this.bh);this.P.connect(this.B);this.bh.connect(this.D);this.bh.connect(this.mc);this.mc.connect(this.gi);this.gi.connect(this.bh)}function t(a,b,c,e){this.type="convolve";this.Mc=[b,c,e];this.P=d();this.D=d();this.D.gain.value=c;this.B=d();this.B.gain.value=1-c;this.xe=y.createConvolver();a&&(this.xe.normalize=b,this.xe.buffer=a);this.P.connect(this.xe);this.P.connect(this.B);this.xe.connect(this.D)}
function f(a,b,c,e,f){this.type="flanger";this.Mc=[a,b,c,e,f];this.P=d();this.B=d();this.B.gain.value=1-f/2;this.D=d();this.D.gain.value=f/2;this.mi=d();this.mi.gain.value=e;this.mc=q(a+b);this.mc.delayTime.value=a;this.Va=y.createOscillator();this.Va.frequency.value=c;this.Ub=d();this.Ub.gain.value=b;this.P.connect(this.mc);this.P.connect(this.B);this.mc.connect(this.D);this.mc.connect(this.mi);this.mi.connect(this.mc);this.Va.connect(this.Ub);this.Ub.connect(this.mc.delayTime);l(this.Va)}function k(a,
b,c,e,f,g){this.type="phaser";this.Mc=[a,b,c,e,f,g];this.P=d();this.B=d();this.B.gain.value=1-g/2;this.D=d();this.D.gain.value=g/2;this.Ga=y.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.Va=y.createOscillator();this.Va.frequency.value=f;this.Ub=d();this.Ub.gain.value=e;this.P.connect(this.Ga);this.P.connect(this.B);this.Ga.connect(this.D);this.Va.connect(this.Ub);this.Ub.connect(this.Ga.frequency);
l(this.Va)}function u(a){this.type="gain";this.Mc=[a];this.T=d();this.T.gain.value=a}function h(a,b){this.type="tremolo";this.Mc=[a,b];this.T=d();this.T.gain.value=1-b/2;this.Va=y.createOscillator();this.Va.frequency.value=a;this.Ub=d();this.Ub.gain.value=b/2;this.Va.connect(this.Ub);this.Ub.connect(this.T.gain);l(this.Va)}function p(a,b){this.type="ringmod";this.Mc=[a,b];this.P=d();this.D=d();this.D.gain.value=b;this.B=d();this.B.gain.value=1-b;this.uh=d();this.uh.gain.value=0;this.Va=y.createOscillator();
this.Va.frequency.value=a;this.Va.connect(this.uh.gain);l(this.Va);this.P.connect(this.uh);this.P.connect(this.B);this.uh.connect(this.D)}function D(a,b,c,e,f){this.type="distortion";this.Mc=[a,b,c,e,f];this.P=d();this.lj=d();this.kj=d();this.au(c,Math.pow(10,e/20));this.D=d();this.D.gain.value=f;this.B=d();this.B.gain.value=1-f;this.Pj=y.createWaveShaper();this.ei=new Float32Array(65536);this.os(a,b);this.Pj.ei=this.ei;this.P.connect(this.lj);this.P.connect(this.B);this.lj.connect(this.Pj);this.Pj.connect(this.kj);
this.kj.connect(this.D)}function B(a,b,c,d,e){this.type="compressor";this.Mc=[a,b,c,d,e];this.T=y.createDynamicsCompressor();try{this.T.threshold.value=a,this.T.knee.value=b,this.T.ratio.value=c,this.T.attack.value=d,this.T.release.value=e}catch(f){}}function n(a,b){this.type="analyser";this.Mc=[a,b];this.T=y.createAnalyser();this.T.fftSize=a;this.T.smoothingTimeConstant=b;this.ms=new Float32Array(this.T.frequencyBinCount);this.hp=new Uint8Array(a);this.oh=0}function e(){this.C=null;this.Si=0;this.oe=
[];this.yl=this.Ki=this.Ji=0}function v(a,b){this.src=a;this.M=I;this.Kc=b;this.Mh=!1;var c=this;this.wl=this.Jl=null;this.Lf=[];this.sj=0;this.Am=this.Bk=this.np=this.hj=!1;1===I&&b&&(this.M=0,this.Jl=d());this.ue=this.V=null;var e;switch(this.M){case 0:this.V=new Audio;this.V.crossOrigin="anonymous";this.V.addEventListener("canplaythrough",function(){c.Am=!0});1===I&&y.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.np=!0,this.V.addEventListener("canplay",function(){c.wl||(c.wl=
y.createMediaElementSource(c.V),c.wl.connect(c.Jl))}));this.V.autoplay=!1;this.V.Dv="auto";this.V.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){c.ue=e.response;c.cr()};e.onerror=function(){c.Bk=!0};e.send();break;case 2:this.V=!0;break;case 3:this.V=!0}}function r(a,b){var c=this;this.tag=b;this.Zb=this.td=!0;this.src=a.src;this.buffer=a;this.M=I;this.Kc=a.Kc;this.playbackRate=1;this.qf=!0;this.Rb=this.Gd=!1;this.Hb=0;this.Jg=this.yf=this.Xc=
!1;this.volume=1;this.Hl=function(){c.Rb||this!==c.Lh||(c.qf=!0,c.Zb=!0,E=c.tag,A.trigger(kc.prototype.j.Kh,M))};this.Lh=null;this.uf=1===H&&!this.Kc||2===H;this.Gf=1;this.startTime=this.uf?A.vc.da:A.Md.da;this.Aa=this.Ja=null;this.Yc=!1;this.za=null;this.Fo=this.Eo=this.Do=this.Co=this.Ho=this.Go=0;this.d=null;var e=!1;1!==this.M||0!==this.buffer.M||this.buffer.np||(this.M=0);switch(this.M){case 0:this.Kc?(this.d=a.V,e=!a.Mh,a.Mh=!0):(this.d=new Audio,this.d.crossOrigin="anonymous",this.d.autoplay=
!1,this.d.src=a.V.src,e=!0);e&&this.d.addEventListener("ended",function(){E=c.tag;c.Zb=!0;A.trigger(kc.prototype.j.Kh,M)});break;case 1:this.Ja=d();this.Ja.connect(m(b));1===this.buffer.M?a.V&&(this.d=y.createBufferSource(),this.d.buffer=a.V,this.d.connect(this.Ja)):(this.d=this.buffer.V,this.buffer.Jl.connect(this.Ja),this.buffer.Mh||(this.buffer.Mh=!0,this.buffer.V.addEventListener("ended",function(){E=c.tag;c.Zb=!0;A.trigger(kc.prototype.j.Kh,M)})));break;case 2:this.d=new window.Media(Z+this.src,
null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.qf=!0,c.Zb=!0,E=c.tag,A.trigger(kc.prototype.j.Kh,M))});break;case 3:this.d=!0}}function z(a,b){T.hasOwnProperty(a)?T[a].push(b):T[a]=[b];var c,e,d,f,g=y.destination;if(T.hasOwnProperty(a)&&(d=T[a],d.length))for(g=d[0].ec(),c=0,e=d.length;c<e;c++)f=d[c],c+1===e?f.jc(y.destination):f.jc(d[c+1].ec());U(Ja);if(a.length)for(c=0,e=P.length;c<e;c++)d=P[c],ib(a,d.tag)&&Ja.push(d);else S&&!S.pf()&&(U(Ja),Ja[0]=S);c=0;for(e=Ja.length;c<e;c++)Ja[c].Qt(g);
da&&sb===a&&(da.disconnect(),da.connect(g))}function C(){}function ra(){}var x=kc.prototype;x.cb=function(a){this.Ba=a;this.b=a.b};x.cb.prototype.ga=function(){};var A=null,M=null,E="",Z="",I=0,y=null,xa=[],P=[],S=null,G=!1,H=0,Q=!1,F=1,L=0,J=0,la=1,O=1,sa=10,ha=1E4,va=1,da=null,sb="",Pa=!1,Qa=[],T={},rc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.jc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};b.prototype.remove=
function(){this.P.disconnect();this.Ga.disconnect();this.D.disconnect();this.B.disconnect()};b.prototype.ec=function(){return this.P};w.prototype.jc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};w.prototype.remove=function(){this.P.disconnect();this.bh.disconnect();this.mc.disconnect();this.gi.disconnect();this.D.disconnect();this.B.disconnect()};w.prototype.ec=function(){return this.P};t.prototype.jc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();
this.B.connect(a)};t.prototype.remove=function(){this.P.disconnect();this.xe.disconnect();this.D.disconnect();this.B.disconnect()};t.prototype.ec=function(){return this.P};f.prototype.jc=function(a){this.B.disconnect();this.B.connect(a);this.D.disconnect();this.D.connect(a)};f.prototype.remove=function(){this.P.disconnect();this.mc.disconnect();this.Va.disconnect();this.Ub.disconnect();this.B.disconnect();this.D.disconnect();this.mi.disconnect()};f.prototype.ec=function(){return this.P};k.prototype.jc=
function(a){this.B.disconnect();this.B.connect(a);this.D.disconnect();this.D.connect(a)};k.prototype.remove=function(){this.P.disconnect();this.Ga.disconnect();this.Va.disconnect();this.Ub.disconnect();this.B.disconnect();this.D.disconnect()};k.prototype.ec=function(){return this.P};u.prototype.jc=function(a){this.T.disconnect();this.T.connect(a)};u.prototype.remove=function(){this.T.disconnect()};u.prototype.ec=function(){return this.T};h.prototype.jc=function(a){this.T.disconnect();this.T.connect(a)};
h.prototype.remove=function(){this.Va.disconnect();this.Ub.disconnect();this.T.disconnect()};h.prototype.ec=function(){return this.T};p.prototype.jc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};p.prototype.remove=function(){this.Va.disconnect();this.uh.disconnect();this.P.disconnect();this.D.disconnect();this.B.disconnect()};p.prototype.ec=function(){return this.P};D.prototype.au=function(a,b){.01>a&&(a=.01);this.lj.gain.value=a;this.kj.gain.value=Math.pow(1/
a,.6)*b};D.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};D.prototype.os=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,f=0;32768>f;++f)d=f/32768,d=this.shape(d,c,e),this.ei[32768+f]=d,this.ei[32768-f-1]=-d};D.prototype.jc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};D.prototype.remove=function(){this.P.disconnect();this.lj.disconnect();this.Pj.disconnect();this.kj.disconnect();
this.D.disconnect();this.B.disconnect()};D.prototype.ec=function(){return this.P};B.prototype.jc=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.Xa=function(){this.T.getFloatFrequencyData(this.ms);this.T.getByteTimeDomainData(this.hp);for(var a=this.T.fftSize,b=0,c=this.oh=0,e=0;b<a;b++)e=(this.hp[b]-128)/128,0>e&&(e=-e),this.oh<e&&(this.oh=e),c+=e*e;this.oh=g(this.oh);g(Math.sqrt(c/a))};n.prototype.jc=
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.vh=function(a){if(this.C=a)this.Ji=this.C.x,this.Ki=this.C.y;U(this.oe)};e.prototype.Ci=function(){return!!this.C};e.prototype.Xa=function(a){this.C&&0!==a&&(this.yl=Ka(this.Ji,this.Ki,this.C.x,this.C.y),a=Ta(this.Ji,this.Ki,this.C.x,this.C.y)/a,4>this.oe.length||this.oe.shift(),this.oe.push(a),this.Ji=this.C.x,this.Ki=this.C.y)};e.prototype.xn=
function(){if(!this.oe.length)return 0;var a,b,c=0;a=0;for(b=this.oe.length;a<b;a++)c+=this.oe[a];return c/this.oe.length};e.prototype.Qk=function(){return Math.cos(this.yl)*this.xn()};e.prototype.Rk=function(){return Math.sin(this.yl)*this.xn()};var oc=!1;v.prototype.cr=function(){if(!this.V&&this.ue){var a=this;if(y.decodeAudioData)y.decodeAudioData(this.ue,function(b){a.V=b;a.ue=null;var c,e,d;if(fa(a.ij)||Q)fa(a.$h)||(c=a.$h.xe,c.normalize=a.vo,c.buffer=b);else if(a.Lf.length){c=0;for(e=a.Lf.length;c<
e;c++){b=a.Lf[c];d=new r(a,b.qp);d.cm(!0);if("undefined"!==typeof b.xo&&(b.C=A.vi(b.xo),!b.C))continue;if(b.C){var f=Oa(b.C.x,b.C.y,-b.C.e.Ra(),L,J,!0),g=Oa(b.C.x,b.C.y,-b.C.e.Ra(),L,J,!1);d.am(f,g,Ea(b.C.i-b.C.e.Ra()),b.Xk,b.zl,b.Cl);d.vh(b.C)}else d.am(b.x,b.y,b.Gq,b.Xk,b.zl,b.Cl);d.play(a.sl,a.ym,a.sj);a.hj&&d.pause();P.push(d)}U(a.Lf)}else d=new r(a,a.ij||""),d.play(a.sl,a.ym,a.sj),a.hj&&d.pause(),P.push(d)},function(){a.Bk=!0});else if(this.V=y.createBuffer(this.ue,!1),this.ue=null,fa(this.ij)||
Q)fa(this.$h)||(b=this.$h.xe,b.normalize=this.vo,b.buffer=this.V);else{var b=new r(this,this.ij);b.play(this.sl,this.ym,this.sj);this.hj&&b.pause();P.push(b)}}};v.prototype.Hn=function(){switch(this.M){case 0:var a=4<=this.V.readyState;a&&(this.Am=!0);return a||this.Am;case 1:return!!this.ue||!!this.V;case 2:return!0;case 3:return!0}return!1};v.prototype.bt=function(){switch(this.M){case 0:return this.Hn();case 1:return!!this.V;case 2:return!0;case 3:return!0}return!1};v.prototype.Ss=function(){switch(this.M){case 0:return!!this.V.error;
case 1:return this.Bk}return!1};r.prototype.pf=function(){switch(this.M){case 0:return this.d.ended;case 1:return 1===this.buffer.M?!this.td&&!this.Zb&&this.d.loop||this.Rb?!1:this.qf:this.d.ended;case 2:return this.qf;case 3:!0}return!0};r.prototype.Uq=function(){return this.td||this.Zb?!0:this.pf()};r.prototype.cm=function(a){1===I&&(!this.Yc&&a?this.Ja&&(this.Aa||(this.Aa=y.createPanner(),this.Aa.panningModel="number"===typeof this.Aa.panningModel?la:["equalpower","HRTF","soundfield"][la],this.Aa.distanceModel=
"number"===typeof this.Aa.distanceModel?O:["linear","inverse","exponential"][O],this.Aa.refDistance=sa,this.Aa.maxDistance=ha,this.Aa.rolloffFactor=va),this.Ja.disconnect(),this.Ja.connect(this.Aa),this.Aa.connect(m(this.tag)),this.Yc=!0):this.Yc&&!a&&this.Ja&&(this.Aa.disconnect(),this.Ja.disconnect(),this.Ja.connect(m(this.tag)),this.Yc=!1))};r.prototype.am=function(a,b,c,e,d,f){this.Yc&&1===I&&(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=f,this.Go=a,this.Ho=b,this.Co=c,this.Do=e,this.Eo=d,this.Fo=f)};r.prototype.vh=function(a){this.Yc&&1===I&&(this.za||(this.za=new e),this.za.vh(a))};r.prototype.Xa=function(a){if(this.Yc&&1===I&&this.za&&this.za.Ci()&&this.tf()){this.za.Xa(a);a=this.za.C;var b=Oa(a.x,a.y,-a.e.Ra(),L,J,!0),c=Oa(a.x,a.y,-a.e.Ra(),L,J,!1);this.Aa.setPosition(b,c,0);b=0;"undefined"!==typeof this.za.C.i&&(b=a.i-a.e.Ra(),this.Aa.setOrientation(Math.cos(b),Math.sin(b),0));
b=Oa(this.za.Qk(),this.za.Rk(),-a.e.Ra(),0,0,!0);c=Oa(this.za.Qk(),this.za.Rk(),-a.e.Ra(),0,0,!1);this.Aa.setVelocity(b,c,0)}};r.prototype.play=function(a,b,e){var d=this.d;this.Xc=a;this.volume=b;e=e||0;switch(this.M){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==b*F&&(d.volume=b*F);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==e)try{d.currentTime=e}catch(f){}if(this.Kc&&Pa&&!A.fa)Qa.push(this);else try{this.d.play()}catch(g){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+
this.buffer.src+"': ",g)}break;case 1:this.muted=!1;this.Gf=1;if(1===this.buffer.M)this.Ja.gain.value=b*F,this.td||(this.d=y.createBufferSource(),this.d.buffer=this.buffer.V,this.d.connect(this.Ja)),this.d.onended=this.Hl,this.Lh=this.d,this.d.loop=a,this.qf=!1,0===e?l(this.d):c(this.d,e,this.Fe());else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);d.volume=b*F;if(d.currentTime!==e)try{d.currentTime=e}catch(h){}this.Kc&&Pa&&!A.fa?Qa.push(this):d.play()}break;case 2:(!this.td&&this.Zb||
0!==e)&&d.seekTo(e);d.play();this.qf=!1;break;case 3:A.$a?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.uf?A.vc.da:A.Md.da)-e;this.Rb=this.Zb=this.td=!1};r.prototype.stop=function(){switch(this.M){case 0:this.d.paused||this.d.pause();break;case 1:1===this.buffer.M?a(this.d):this.d.paused||this.d.pause();break;case 2:this.d.stop();break;case 3:A.$a&&AppMobi.context.stopSound(this.src)}this.Zb=!0;this.Rb=!1};r.prototype.pause=function(){if(!(this.td||
this.Zb||this.pf()||this.Rb)){switch(this.M){case 0:this.d.paused||this.d.pause();break;case 1:1===this.buffer.M?(this.Hb=this.Ok(),this.Xc&&(this.Hb=this.Hb%this.Fe()),this.Rb=!0,a(this.d)):this.d.paused||this.d.pause();break;case 2:this.d.pause();break;case 3:A.$a&&AppMobi.context.stopSound(this.src)}this.Rb=!0}};r.prototype.St=function(){if(!(this.td||this.Zb||this.pf())&&this.Rb){switch(this.M){case 0:this.d.play();break;case 1:1===this.buffer.M?(this.d=y.createBufferSource(),this.d.buffer=this.buffer.V,
this.d.connect(this.Ja),this.d.onended=this.Hl,this.Lh=this.d,this.d.loop=this.Xc,this.Ja.gain.value=F*this.volume*this.Gf,this.startTime=(this.uf?A.vc.da:A.Md.da)-this.Hb,c(this.d,this.Hb,this.Fe())):this.d.play();break;case 2:this.d.play();break;case 3:A.$a&&AppMobi.context.resumeSound(this.src)}this.Rb=!1}};r.prototype.seek=function(a){if(!(this.td||this.Zb||this.pf()))switch(this.M){case 0:try{this.d.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.M)this.Rb?this.Hb=a:(this.pause(),this.Hb=
a,this.St());else try{this.d.currentTime=a}catch(c){}break;case 3:A.$a&&AppMobi.context.seekSound(this.src,a)}};r.prototype.Qt=function(a){1===this.M&&(this.Yc?(this.Aa.disconnect(),this.Aa.connect(a)):(this.Ja.disconnect(),this.Ja.connect(a)))};r.prototype.Fe=function(){switch(this.M){case 0:if("undefined"!==typeof this.d.duration)return this.d.duration;break;case 1:return this.buffer.V.duration;case 2:return this.d.getDuration();case 3:if(A.$a)return AppMobi.context.getDurationSound(this.src)}return 0};
r.prototype.Ok=function(){var a=this.Fe(),b=0;switch(this.M){case 0:"undefined"!==typeof this.d.currentTime&&(b=this.d.currentTime);break;case 1:if(1===this.buffer.M){if(this.Rb)return this.Hb;b=(this.uf?A.vc.da:A.Md.da)-this.startTime}else"undefined"!==typeof this.d.currentTime&&(b=this.d.currentTime);break;case 3:A.$a&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Xc&&b>a&&(b=a);return b};r.prototype.tf=function(){return!this.Rb&&!this.td&&!this.Zb&&!this.pf()};r.prototype.nu=function(){var a=
this.volume*F;isFinite(a)||(a=0);switch(this.M){case 0:"undefined"!==typeof this.d.volume&&this.d.volume!==a&&(this.d.volume=a);break;case 1:1===this.buffer.M?this.Ja.gain.value=a*this.Gf:"undefined"!==typeof this.d.volume&&this.d.volume!==a&&(this.d.volume=a)}};r.prototype.hi=function(a){switch(this.M){case 0:this.d.muted!==!!a&&(this.d.muted=!!a);break;case 1:1===this.buffer.M?(this.Gf=a?0:1,this.Ja.gain.value=F*this.volume*this.Gf):this.d.muted!==!!a&&(this.d.muted=!!a)}};r.prototype.bu=function(){this.yf=
!0;this.hi(this.yf||this.Jg)};r.prototype.bp=function(a){this.Jg=!!a;this.hi(this.yf||this.Jg)};r.prototype.Ep=function(){var a=this.playbackRate;this.uf&&(a*=A.Zf);switch(this.M){case 0:this.d.playbackRate!==a&&(this.d.playbackRate=a);break;case 1:1===this.buffer.M?this.d.playbackRate.value!==a&&(this.d.playbackRate.value=a):this.d.playbackRate!==a&&(this.d.playbackRate=a)}};r.prototype.du=function(b){switch(this.M){case 0:b?this.tf()?(this.d.pause(),this.Gd=!0):this.Gd=!1:this.Gd&&this.d.play();
break;case 1:b?this.tf()?(1===this.buffer.M?(this.Hb=this.Ok(),this.Xc&&(this.Hb=this.Hb%this.Fe()),a(this.d)):this.d.pause(),this.Gd=!0):this.Gd=!1:this.Gd&&(1===this.buffer.M?(this.d=y.createBufferSource(),this.d.buffer=this.buffer.V,this.d.connect(this.Ja),this.d.onended=this.Hl,this.Lh=this.d,this.d.loop=this.Xc,this.Ja.gain.value=F*this.volume*this.Gf,this.startTime=(this.uf?A.vc.da:A.Md.da)-this.Hb,c(this.d,this.Hb,this.Fe())):this.d.play());break;case 2:b?this.tf()?(this.d.pause(),this.Gd=
!0):this.Gd=!1:this.Gd&&this.d.play()}};x.Ea=function(a){this.type=a;A=this.b=a.b;M=this;this.qb=null;this.Tg=-600;!(this.b.Lg||this.b.Fi&&(this.b.Fg||this.b.Gi))||this.b.Gg||this.b.ba||this.b.dl||(Pa=!0);y=null;"undefined"!==typeof AudioContext?(I=1,y=new AudioContext):"undefined"!==typeof webkitAudioContext&&(I=1,y=new webkitAudioContext);(this.b.Lg&&1===I||Pa)&&document.addEventListener("touchstart",function(){var a,b,c;!oc&&y&&(a=y.createBuffer(1,1,22050),b=y.createBufferSource(),b.buffer=a,b.connect(y.destination),
l(b),oc=!0);if(Pa){if(!Q)for(a=0,b=Qa.length;a<b;++a)c=Qa[a],c.Zb||c.Rb||c.d.play();U(Qa)}},!0);1!==I&&(this.b.tc&&"undefined"!==typeof window.Media?I=2:this.b.sf&&(I=3));2===I&&(Z=location.href,a=Z.lastIndexOf("/"),-1<a&&(Z=Z.substr(0,a+1)),Z=Z.replace("file://",""));if(this.b.In&&this.b.ct&&"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.$a)G=this.b.Fi;else try{G=
!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){G=!1}this.b.lm(this)}};var ma=x.Ea.prototype;ma.ga=function(){this.b.ff=this;H=this.Da[0];this.Hd=this.Da[1];this.Gt=0!==this.Da[2];la=this.Da[3];O=this.Da[4];this.Tg=-this.Da[5];sa=this.Da[6];ha=this.Da[7];va=this.Da[8];this.qb=new e;var a=this.b.L||this.b.width,b=this.b.K||this.b.height;1===I&&("undefined"!==typeof y.listener.dopplerFactor&&(y.listener.dopplerFactor=0),y.listener.setPosition(a/2,b/2,this.Tg),y.listener.setOrientation(0,
0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){da&&da.disconnect();sb=b.toLowerCase();da=y.createMediaStreamSource(a);da.connect(m(sb))});this.b.Mq(function(a){M.Ct(a)});var c=this;this.b.Kq(function(a){c.xt(a)})};ma.xt=function(a){var b,c,d;b=0;for(c=P.length;b<c;b++)d=P[b],d.za&&d.za.C===a&&(d.za.C=null,d.Yc&&d.tf()&&d.Xc&&d.stop());this.qb.C===a&&(this.qb.C=null)};ma.Wb=function(){var a={silent:Q,masterVolume:F,listenerZ:this.Tg,listenerUid:this.qb.Ci()?this.qb.C.uid:-1,playing:[],effects:{}},
b=a.playing,c,d,e,f,g,h;c=0;for(d=P.length;c<d;c++)e=P[c],!e.tf()||3===this.Hd||e.Kc&&1===this.Hd||!e.Kc&&2===this.Hd||(f=e.Ok(),e.Xc&&(f=f%e.Fe()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Kc,playbackTime:f,volume:e.volume,looping:e.Xc,muted:e.yf,playbackRate:e.playbackRate,paused:e.Rb,resume_position:e.Hb},e.Yc&&(f.pan={},h=f.pan,e.za&&e.za.Ci()?h.objUid=e.za.C.uid:(h.x=e.Go,h.y=e.Ho,h.a=e.Co),h.ia=e.Do,h.oa=e.Eo,h.og=e.Fo),b.push(f));b=a.effects;for(g in T)if(T.hasOwnProperty(g)){e=[];c=0;
for(d=T[g].length;c<d;c++)e.push({type:T[g][c].type,params:T[g][c].Mc});b[g]=e}return a};var Ra=[];ma.wc=function(a){var c=a.silent;F=a.masterVolume;this.Tg=a.listenerZ;this.qb.vh(null);var d=a.listenerUid;-1!==d&&(this.qb.Si=d,Ra.push(this.qb));var d=a.playing,g,l,r,m,q,C,v,A,E,x,y;if(3!==this.Hd)for(g=0,l=P.length;g<l;g++)E=P[g],E.Kc&&1===this.Hd||(E.Kc||2!==this.Hd)&&E.stop();for(q in T)if(T.hasOwnProperty(q))for(g=0,l=T[q].length;g<l;g++)T[q][g].remove();Wa(T);for(q in a.effects)if(a.effects.hasOwnProperty(q))for(C=
a.effects[q],g=0,l=C.length;g<l;g++)switch(r=C[g].type,x=C[g].params,r){case "filter":z(q,new b(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":z(q,new w(x[0],x[1],x[2]));break;case "convolve":r=x[2];E=this.qi(r,!1);E.V?r=new t(E.V,x[0],x[1],r):(r=new t(null,x[0],x[1],r),E.vo=x[0],E.$h=r);z(q,r);break;case "flanger":z(q,new f(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":z(q,new k(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":z(q,new u(x[0]));break;case "tremolo":z(q,new h(x[0],x[1]));break;
case "ringmod":z(q,new p(x[0],x[1]));break;case "distortion":z(q,new D(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":z(q,new B(x[0],x[1],x[2],x[3],x[4]));break;case "analyser":z(q,new n(x[0],x[1]))}g=0;for(l=d.length;g<l;g++)3===this.Hd||(a=d[g],r=a.buffersrc,m=a.is_music,q=a.tag,C=a.playbackTime,v=a.looping,A=a.volume,y=(x=a.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,m&&1===this.Hd)||!m&&2===this.Hd||((E=this.qn(r,q,m,v,A))?(E.Hb=a.resume_position,E.cm(!!x),E.play(v,A,C),E.Ep(),E.nu(),E.hi(E.yf||
E.Jg),a.paused&&E.pause(),a.muted&&E.bu(),E.hi(E.yf||E.Jg),x&&(-1!==y?(E.za=E.za||new e,E.za.Si=y,Ra.push(E.za)):E.am(x.x,x.y,x.a,x.ia,x.oa,x.og))):(E=this.qi(r,m),E.sj=C,E.hj=a.paused,x&&(-1!==y?E.Lf.push({xo:y,Xk:x.ia,zl:x.oa,Cl:x.og,qp:q}):E.Lf.push({x:x.x,y:x.y,Gq:x.a,Xk:x.ia,zl:x.oa,Cl:x.og,qp:q}))));if(c&&!Q){g=0;for(l=P.length;g<l;g++)P[g].bp(!0);Q=!0}else if(!c&&Q){g=0;for(l=P.length;g<l;g++)P[g].bp(!1);Q=!1}};ma.gd=function(){var a,b,c,e;a=0;for(b=Ra.length;a<b;a++)c=Ra[a],e=this.b.vi(c.Si),
c.vh(e),c.Si=-1,e&&(L=e.x,J=e.y);U(Ra)};ma.Ct=function(a){if(!this.Gt){!a&&y&&y.resume&&y.resume();var b,c;b=0;for(c=P.length;b<c;b++)P[b].du(a);a&&y&&y.suspend&&y.suspend()}};ma.Xa=function(){var a=this.b.Be,b,c,e;b=0;for(c=P.length;b<c;b++)e=P[b],e.Xa(a),0!==H&&e.Ep();var d,f;for(d in T)if(T.hasOwnProperty(d))for(e=T[d],b=0,c=e.length;b<c;b++)f=e[b],f.Xa&&f.Xa();1===I&&this.qb.Ci()&&(this.qb.Xa(a),L=this.qb.C.x,J=this.qb.C.y,y.listener.setPosition(this.qb.C.x,this.qb.C.y,this.Tg),y.listener.setVelocity(this.qb.Qk(),
this.qb.Rk(),0))};var Sa=[];ma.cu=function(a){var b,c,e,d,f,g=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],d=e[0],e=2*e[1],(f=4<d.length&&".ogg"===d.substr(d.length-4))&&G||!f&&!G)Sa.push({filename:d,size:e,C:null}),g+=e;return g};ma.gu=function(){var a,b,c,e;a=0;for(b=Sa.length;a<b;++a)c=Sa[a],e=this.b.Ck+c.filename,c.C=this.qi(e,!1)};ma.ys=function(){var a=0,b,c,e;b=0;for(c=Sa.length;b<c;++b)e=Sa[b],e.C.bt()||e.C.Ss()||this.b.ba||this.b.Gi?a+=e.size:e.C.Hn()&&(a+=Math.floor(e.size/2));return a};ma.qi=
function(a,b){var c,e,d,f=null;c=0;for(e=xa.length;c<e;c++)if(d=xa[c],d.src===a){f=d;break}f||(f=new v(a,b),xa.push(f));return f};ma.qn=function(a,b,c,e,d){var f,g,h;f=0;for(g=P.length;f<g;f++)if(h=P[f],h.src===a&&(h.Uq()||c))return h.tag=b,h;a=this.qi(a,c);if(!a.V)return"<preload>"!==b&&(a.ij=b,a.sl=e,a.ym=d),null;h=new r(a,b);P.push(h);return h};var Ja=[];C.prototype.Kh=function(a){return ib(E,a)};x.j=new C;ra.prototype.Play=function(a,b,c,e){!Q&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),S=this.qn(this.b.Ck+
a[0]+(G?".ogg":".m4a"),e,a[1],0!==b,c))&&(S.cm(!1),S.play(0!==b,c))};x.ma=new ra;x.nb=new function(){}})();function lc(g){this.b=g}
(function(){function g(){}var m=lc.prototype;m.cb=function(d){this.Ba=d;this.b=d.b};m.cb.prototype.ga=function(){};m.Ea=function(d){this.type=d;this.b=d.b;this.kl=Array(256);this.Mj=Array(256);this.qe=0};var d=m.Ea.prototype;d.ga=function(){var d=this;this.b.ba||(jQuery(document).keydown(function(c){d.yt(c)}),jQuery(document).keyup(function(c){d.zt(c)}))};var q=[32,33,34,35,36,37,38,39,40,44];d.yt=function(d){var c=!1;window!=window.top&&-1<q.indexOf(d.which)&&(d.preventDefault(),c=!0,d.stopPropagation());
if(this.kl[d.which])this.Mj[d.which]&&!c&&d.preventDefault();else{this.kl[d.which]=!0;this.qe=d.which;this.b.fa=!0;this.b.trigger(lc.prototype.j.aq,this);var a=this.b.trigger(lc.prototype.j.lq,this),b=this.b.trigger(lc.prototype.j.mq,this);this.b.fa=!1;if(a||b)this.Mj[d.which]=!0,c||d.preventDefault()}};d.zt=function(d){this.kl[d.which]=!1;this.qe=d.which;this.b.fa=!0;this.b.trigger(lc.prototype.j.bq,this);var c=this.b.trigger(lc.prototype.j.oq,this),a=this.b.trigger(lc.prototype.j.nq,this);this.b.fa=
!1;if(c||a||this.Mj[d.which])this.Mj[d.which]=!0,d.preventDefault()};d.Wb=function(){return{triggerKey:this.qe}};d.wc=function(d){this.qe=d.triggerKey};g.prototype.lq=function(d){return d===this.qe};g.prototype.aq=function(){return!0};g.prototype.bq=function(){return!0};g.prototype.oq=function(d){return d===this.qe};g.prototype.mq=function(d){return d===this.qe};g.prototype.nq=function(d){return d===this.qe};m.j=new g;m.ma=new function(){};m.nb=new function(){}})();function mc(g){this.b=g}
(function(){function g(){}function m(){}var d=mc.prototype;d.cb=function(c){this.Ba=c;this.b=c.b};d.cb.prototype.ga=function(){};d.Ea=function(c){this.type=c;this.b=c.b;this.Uh=Array(4);this.tp=this.Hj=this.$f=this.Ad=this.zd=0;this.Uk=!1};var q=d.Ea.prototype;q.ga=function(){var c=this;if(!this.b.ba){jQuery(document).mousemove(function(a){c.hh(a)});jQuery(document).mousedown(function(a){c.gh(a)});jQuery(document).mouseup(function(a){c.ih(a)});jQuery(document).dblclick(function(a){c.ut(a)});var a=
function(a){c.Et(a)};document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var l={left:0,top:0};q.hh=function(c){var a=this.b.ba?l:jQuery(this.b.canvas).offset();this.zd=c.pageX-a.left;this.Ad=c.pageY-a.top};q.qo=function(){return 0<this.b.gb?!0:0<=this.zd&&0<=this.Ad&&this.zd<this.b.width&&this.Ad<this.b.height};q.gh=function(c){this.qo()&&(this.Uh[c.which]=!0,this.b.fa=!0,this.b.trigger(mc.prototype.j.$p,this),this.$f=c.which-1,this.Hj=0,this.b.trigger(mc.prototype.j.Dm,
this),this.b.trigger(mc.prototype.j.Tj,this),this.b.fa=!1)};q.ih=function(c){this.Uh[c.which]&&(this.b.Bi&&!this.b.Ke&&c.preventDefault(),this.b.Bi=!0,this.Uh[c.which]=!1,this.b.fa=!0,this.$f=c.which-1,this.b.trigger(mc.prototype.j.rq,this),this.b.fa=!1)};q.ut=function(c){this.qo()&&(c.preventDefault(),this.b.fa=!0,this.$f=c.which-1,this.Hj=1,this.b.trigger(mc.prototype.j.Dm,this),this.b.trigger(mc.prototype.j.Tj,this),this.b.fa=!1)};q.Et=function(c){this.tp=0>(c.wheelDelta?c.wheelDelta:c.detail?
-c.detail:0)?0:1;this.Uk=!1;this.b.fa=!0;this.b.trigger(mc.prototype.j.uq,this);this.b.fa=!1;this.Uk&&jb(c)&&c.preventDefault()};g.prototype.Dm=function(c,a){return c===this.$f&&a===this.Hj};g.prototype.$p=function(){return!0};g.prototype.Qp=function(c){return this.Uh[c+1]};g.prototype.rq=function(c){return c===this.$f};g.prototype.Sp=function(c){var a=this.b.si();return Ua(this.b.Xf(c,this.zd,this.Ad,a.rf),a.rf)};g.prototype.Tj=function(c,a,b){return c!==this.$f||a!==this.Hj?!1:this.b.Xf(b,this.zd,
this.Ad,!1)};g.prototype.uq=function(c){this.Uk=!0;return c===this.tp};d.j=new g;d.ma=new function(){};m.prototype.Wj=function(c,a){var b,d,g,f,k;fa(a)?(b=this.b.ud(0),d=b.scale,g=b.lb,f=b.Eb,k=b.i,b.scale=1,b.lb=1,b.Eb=1,b.i=0,c.q(b.na(this.zd,this.Ad,!0)),b.scale=d,b.lb=g,b.Eb=f,b.i=k):(b=ga(a)?this.b.ud(a):this.b.vg(a))?c.q(b.na(this.zd,this.Ad,!0)):c.q(0)};m.prototype.Xj=function(c,a){var b,d,g,f,k;fa(a)?(b=this.b.ud(0),d=b.scale,g=b.lb,f=b.Fb,k=b.i,b.scale=1,b.lb=1,b.Fb=1,b.i=0,c.q(b.na(this.zd,
this.Ad,!1)),b.scale=d,b.lb=g,b.Fb=f,b.i=k):(b=ga(a)?this.b.ud(a):this.b.vg(a))?c.q(b.na(this.zd,this.Ad,!1)):c.q(0)};d.nb=new m})();function nc(g){this.b=g}
(function(){function g(d){this.ha=d;this.Qa=!1;this.i=this.speed=this.y=this.x=0;this.opacity=1;this.Rd=this.of=this.size=this.yi=0}var m=nc.prototype;m.cb=function(d){this.Ba=d;this.b=d.b};var d=m.cb.prototype;d.ga=function(){this.A||(this.H=new Image,this.H.ok=this.Ej,this.N=null,this.b.zm(this.H,this.Dj))};d.$i=function(){this.A||(this.N=null)};d.aj=function(){this.A||!this.c.length||this.N||(this.N=this.b.n.Df(this.H,!0,this.b.S,this.Eh))};d.Ug=function(){this.A||this.N||!this.b.n||(this.N=this.b.n.Df(this.H,
!0,this.b.S,this.Eh))};d.Kj=function(){this.A||this.c.length||!this.N||(this.b.n.deleteTexture(this.N),this.N=null)};d.mj=function(d){d.drawImage(this.H,0,0)};g.prototype.init=function(){var d=this.ha;this.x=d.x-d.Qj/2+Math.random()*d.Qj;this.y=d.y-d.Rj/2+Math.random()*d.Rj;this.speed=d.al-d.wj/2+Math.random()*d.wj;this.i=d.i-d.xj/2+Math.random()*d.xj;this.opacity=d.Zk;this.size=d.$k-d.vj/2+Math.random()*d.vj;this.yi=d.Tk-d.Ai/2+Math.random()*d.Ai;this.Rd=this.of=0};g.prototype.Xa=function(d){var c=
this.ha;this.x+=Math.cos(this.i)*this.speed*d;this.y+=Math.sin(this.i)*this.speed*d;this.y+=this.of*d;this.speed+=c.Yj*d;this.size+=this.yi*d;this.of+=c.Ik*d;this.Rd+=d;1>this.size?this.Qa=!1:(0!==c.Qg&&(this.i+=Math.random()*c.Qg*d-c.Qg*d/2),0!==c.Sg&&(this.speed+=Math.random()*c.Sg*d-c.Sg*d/2),0!==c.Rg&&(this.opacity+=Math.random()*c.Rg*d-c.Rg*d/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=c.jf&&this.Rd>=c.timeout&&(this.Qa=!1),2===c.jf&&0>=this.speed&&(this.Qa=!1))};g.prototype.Hc=
function(d){var c=this.ha.opacity*this.opacity;if(0!==c){0===this.ha.jf&&(c*=1-this.Rd/this.ha.timeout);d.globalAlpha=c;var c=this.x-this.size/2,a=this.y-this.size/2;this.ha.b.$c&&(c=c+.5|0,a=a+.5|0);d.drawImage(this.ha.type.H,c,a,this.size,this.size)}};g.prototype.mb=function(d){var c=this.ha.opacity*this.opacity;0===this.ha.jf&&(c*=1-this.Rd/this.ha.timeout);var a=this.size,b=a*this.ha.Ko,g=this.x-a/2,m=this.y-a/2;this.ha.b.$c&&(g=g+.5|0,m=m+.5|0);1>b||0===c||(b<d.nt||b>d.ul?(d.Xe(c),d.sh(g,m,g+
a,m,g+a,m+a,g,m+a)):d.Ht(this.x,this.y,b,c))};g.prototype.left=function(){return this.x-this.size/2};g.prototype.right=function(){return this.x+this.size/2};g.prototype.top=function(){return this.y-this.size/2};g.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.ga=function(){var d=this.Da;this.pj=d[0];this.xj=V(d[1]);this.Uf=d[2];this.gm=!0;this.al=d[3];this.$k=d[4];this.Zk=d[5]/100;this.Tk=d[6];this.Qj=d[7];this.Rj=d[8];this.wj=
d[9];this.vj=d[10];this.Ai=d[11];this.Yj=d[12];this.Ik=d[13];this.Qg=d[14];this.Sg=d[15];this.Rg=d[16];this.jf=d[17];this.timeout=d[18];this.Ve=0;this.Ko=1;this.ej=this.x;this.gj=this.y;this.fj=this.x;this.dj=this.y;this.Nq(function(c){c.ya.set(c.ej,c.gj,c.fj,c.dj);c.Mb.Tf(c.ya);c.Th=!1;c.wm()});this.Oc||(this.rb=[]);this.b.lm(this);this.type.Ug();if(1===this.Uf)for(d=0;d<this.pj;d++)this.$j().opacity=0;this.oi=!0};d.Wb=function(){var d={r:this.pj,sc:this.xj,st:this.Uf,s:this.gm,isp:this.al,isz:this.$k,
io:this.Zk,gr:this.Tk,xr:this.Qj,yr:this.Rj,spr:this.wj,szr:this.vj,grnd:this.Ai,acc:this.Yj,g:this.Ik,lar:this.Qg,lsr:this.Sg,lor:this.Rg,dm:this.jf,to:this.timeout,pcc:this.Ve,ft:this.oi,p:[]},c,a,b,g=d.p;c=0;for(a=this.rb.length;c<a;c++)b=this.rb[c],g.push([b.x,b.y,b.speed,b.i,b.opacity,b.yi,b.size,b.of,b.Rd]);return d};d.wc=function(d){this.pj=d.r;this.xj=d.sc;this.Uf=d.st;this.gm=d.s;this.al=d.isp;this.$k=d.isz;this.Zk=d.io;this.Tk=d.gr;this.Qj=d.xr;this.Rj=d.yr;this.wj=d.spr;this.vj=d.szr;this.Ai=
d.grnd;this.Yj=d.acc;this.Ik=d.g;this.Qg=d.lar;this.Sg=d.lsr;this.Rg=d.lor;this.jf=d.dm;this.timeout=d.to;this.Ve=d.pcc;this.oi=d.ft;q.push.apply(q,this.rb);U(this.rb);var c,a,b,g=d.p;d=0;for(c=g.length;d<c;d++)a=this.$j(),b=g[d],a.x=b[0],a.y=b[1],a.speed=b[2],a.i=b[3],a.opacity=b[4],a.yi=b[5],a.size=b[6],a.of=b[7],a.Rd=b[8]};d.fh=function(){q.push.apply(q,this.rb);U(this.rb)};d.$j=function(){var d;q.length?(d=q.pop(),d.ha=this):d=new g(this);this.rb.push(d);d.Qa=!0;return d};d.Xa=function(){var d=
this.b.Kk(this),c,a,b,g;if(0===this.Uf&&this.gm)for(this.Ve+=d*this.pj,a=R(this.Ve),this.Ve-=a,c=0;c<a;c++)b=this.$j(),b.init();this.ej=this.x;this.gj=this.y;this.fj=this.x;this.dj=this.y;g=c=0;for(a=this.rb.length;c<a;c++)b=this.rb[c],this.rb[g]=b,this.b.ca=!0,1===this.Uf&&this.oi&&b.init(),b.Xa(d),b.Qa?(b.left()<this.ej&&(this.ej=b.left()),b.right()>this.fj&&(this.fj=b.right()),b.top()<this.gj&&(this.gj=b.top()),b.bottom()>this.dj&&(this.dj=b.bottom()),g++):q.push(b);za(this.rb,g);this.va();this.oi=
!1;1===this.Uf&&0===this.rb.length&&this.b.Od(this)};d.Hc=function(d){var c,a,b,g=this.e;c=0;for(a=this.rb.length;c<a;c++)b=this.rb[c],b.right()>=g.wa&&b.bottom()>=g.xa&&b.left()<=g.Ia&&b.top()<=g.Ha&&b.Hc(d)};d.mb=function(d){this.Ko=this.e.pc();d.Xb(this.type.N);var c,a,b,g=this.e;c=0;for(a=this.rb.length;c<a;c++)b=this.rb[c],b.right()>=g.wa&&b.bottom()>=g.xa&&b.left()<=g.Ia&&b.top()<=g.Ha&&b.mb(d)};m.j=new function(){};m.ma=new function(){};m.nb=new function(){}})();function jc(g){this.b=g}
(function(){function g(){if(0===this.rk.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.rk=a.toDataURL("image/png")}return this.rk}function m(){}var d=jc.prototype;d.cb=function(a){this.Ba=a;this.b=a.b};var q=d.cb.prototype;q.ga=function(){if(!this.A){var a,b,c,d,f,l,m,e,q;this.Ec=[];this.Bg=
!1;a=0;for(b=this.tb.length;a<b;a++){f=this.tb[a];m={};m.name=f[0];m.speed=f[1];m.loop=f[2];m.Ul=f[3];m.qj=f[4];m.Lo=f[5];m.O=f[6];m.frames=[];c=0;for(d=f[7].length;c<d;c++)l=f[7][c],e={},e.Dj=l[0],e.Ej=l[1],e.If=l[2],e.Jf=l[3],e.width=l[4],e.height=l[5],e.duration=l[6],e.Bb=l[7],e.Cb=l[8],e.Yk=l[9],e.jj=l[10],e.Mo=l[11],e.Vf=0!==e.width,e.rk="",e.Bv=g,q={left:0,top:0,right:1,bottom:1},e.em=q,e.N=null,(q=this.b.ks(l[0]))?e.H=q:(e.H=new Image,e.H.Yq=l[0],e.H.ok=l[1],e.H.Tq=null,this.b.zm(e.H,l[0])),
m.frames.push(e),this.Ec.push(e);this.tb[a]=m}}};q.Dp=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.ci=c.kc.N};q.$i=function(){if(!this.A){var a,b,c;a=0;for(b=this.Ec.length;a<b;++a)c=this.Ec[a],c.H.Tq=null,c.N=null;this.Bg=!1;this.Dp()}};q.aj=function(){if(!this.A&&this.c.length){var a,b,c;a=0;for(b=this.Ec.length;a<b;++a)c=this.Ec[a],c.N=this.b.n.Df(c.H,!1,this.b.S,c.Mo);this.Dp()}};q.Ug=function(){if(!this.A&&!this.Bg&&this.b.n){var a,b,c;a=0;for(b=this.Ec.length;a<b;++a)c=
this.Ec[a],c.N=this.b.n.Df(c.H,!1,this.b.S,c.Mo);this.Bg=!0}};q.Kj=function(){if(!this.A&&!this.c.length&&this.Bg){var a,b,c;a=0;for(b=this.Ec.length;a<b;++a)c=this.Ec[a],this.b.n.deleteTexture(c.N),c.N=null;this.Bg=!1}};var l=[];q.mj=function(a){var b,c,d;U(l);b=0;for(c=this.Ec.length;b<c;++b)d=this.Ec[b].H,-1===l.indexOf(d)&&(a.drawImage(d,0,0),l.push(d))};d.Ea=function(a){this.type=a;this.b=a.b;a=this.type.tb[0].frames[0].jj;this.Oc?this.W.xh(a):this.W=new cb(a)};var c=d.Ea.prototype;c.ga=function(){this.visible=
0===this.Da[0];this.we=0!==this.Da[3];1===this.type.tb.length&&1===this.type.tb[0].frames.length||0===this.type.tb[0].speed||this.b.lm(this);this.qa=this.pn(this.Da[1])||this.type.tb[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.W.xh(a.jj);this.Bb=a.Bb;this.Cb=a.Cb;this.qg=this.qa.speed;this.Oc?this.Tc.reset():this.Tc=new ab;this.sd=this.Tc.da;this.te=!0;this.hd=0;this.se=!0;this.lk=this.Qm="";this.Vq=0;
this.kk=-1;this.type.Ug();var b,c,d,f,g,l,e,a=0;for(b=this.type.tb.length;a<b;a++)for(f=this.type.tb[a],c=0,d=f.frames.length;c<d;c++)g=f.frames[c],0===g.width&&(g.width=g.H.width,g.height=g.H.height),g.Vf&&(e=g.H,l=g.em,l.left=g.If/e.width,l.top=g.Jf/e.height,l.right=(g.If+g.width)/e.width,l.bottom=(g.Jf+g.height)/e.height,0===g.If&&0===g.Jf&&g.width===e.width&&g.height===e.height&&(g.Vf=!1));this.kc=this.qa.frames[this.u];this.ci=this.kc.N};c.Wb=function(){var a={a:this.qa.O,f:this.u,cas:this.qg,
fs:this.sd,ar:this.hd,at:this.Tc.da};this.te||(a.ap=this.te);this.se||(a.af=this.se);return a};c.wc=function(a){var b=this.ps(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.sd=a.fs;this.hd=a.ar;this.Tc.reset();this.Tc.da=a.at;this.te=a.hasOwnProperty("ap")?a.ap:!0;this.se=a.hasOwnProperty("af")?a.af:!0;this.kc=this.qa.frames[this.u];this.ci=this.kc.N;this.W.xh(this.kc.jj);this.Bb=this.kc.Bb;this.Cb=this.kc.Cb};
c.ck=function(a){this.u=a?0:this.qa.frames.length-1;this.te=!1;this.Qm=this.qa.name;this.b.trigger(jc.prototype.j.Zp,this);this.b.trigger(jc.prototype.j.Yp,this);this.hd=0};c.br=function(){return this.Tc.da};c.Xa=function(){this.Tc.add(this.b.Kk(this));this.lk.length&&this.fr();0<=this.kk&&this.hr();var a=this.Tc.da,b=this.qa,c=b.frames[this.u],d=c.duration/this.qg;this.te&&a>=this.sd+d&&(this.se?this.u++:this.u--,this.sd+=d,this.u>=b.frames.length&&(b.Lo?(this.se=!1,this.u=b.frames.length-2):b.loop?
this.u=b.qj:(this.hd++,this.hd>=b.Ul?this.ck(!1):this.u=b.qj)),0>this.u&&(b.Lo?(this.u=1,this.se=!0,b.loop||(this.hd++,this.hd>=b.Ul&&this.ck(!0))):b.loop?this.u=b.qj:(this.hd++,this.hd>=b.Ul?this.ck(!0):this.u=b.qj)),0>this.u?this.u=0:this.u>=b.frames.length&&(this.u=b.frames.length-1),a>this.sd+b.frames[this.u].duration/this.qg&&(this.sd=a),a=b.frames[this.u],this.df(c,a),this.b.ca=!0)};c.pn=function(a){var b,c,d;b=0;for(c=this.type.tb.length;b<c;b++)if(d=this.type.tb[b],ib(d.name,a))return d;return null};
c.ps=function(a){var b,c,d;b=0;for(c=this.type.tb.length;b<c;b++)if(d=this.type.tb[b],d.O===a)return d;return null};c.fr=function(){var a=this.qa.frames[this.u],b=this.pn(this.lk);this.lk="";!b||ib(b.name,this.qa.name)&&this.te||(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.Vq&&(this.u=0),this.te=!0,this.sd=this.Tc.da,this.se=!0,this.df(a,this.qa.frames[this.u]),this.b.ca=!0)};c.hr=function(){var a=this.qa.frames[this.u],b=
this.u;this.u=R(this.kk);0>this.u&&(this.u=0);this.u>=this.qa.frames.length&&(this.u=this.qa.frames.length-1);b!==this.u&&(this.df(a,this.qa.frames[this.u]),this.sd=this.Tc.da,this.b.ca=!0);this.kk=-1};c.df=function(a,b){var c=a.width,d=a.height,f=b.width,g=b.height;c!=f&&(this.width*=f/c);d!=g&&(this.height*=g/d);this.Bb=b.Bb;this.Cb=b.Cb;this.W.xh(b.jj);this.va();this.kc=b;this.ci=b.N;c=0;for(d=this.F.length;c<d;c++)f=this.F[c],f.Bt&&f.Bt(a,b);this.b.trigger(jc.prototype.j.df,this)};c.Hc=function(a){a.globalAlpha=
this.opacity;var b=this.kc,c=b.Vf,d=b.H,f=this.x,g=this.y,l=this.width,e=this.height;if(0===this.i&&0<=l&&0<=e)f-=this.Bb*l,g-=this.Cb*e,this.b.$c&&(f=Math.round(f),g=Math.round(g)),c?a.drawImage(d,b.If,b.Jf,b.width,b.height,f,g,l,e):a.drawImage(d,f,g,l,e);else{this.b.$c&&(f=Math.round(f),g=Math.round(g));a.save();var m=0<l?1:-1,r=0<e?1:-1;a.translate(f,g);1===m&&1===r||a.scale(m,r);a.rotate(this.i*m*r);f=0-this.Bb*ka(l);g=0-this.Cb*ka(e);c?a.drawImage(d,b.If,b.Jf,b.width,b.height,f,g,ka(l),ka(e)):
a.drawImage(d,f,g,ka(l),ka(e));a.restore()}};c.ek=function(a){this.mb(a)};c.mb=function(a){a.Xb(this.ci);a.Xe(this.opacity);var b=this.kc,c=this.Mb;if(this.b.$c){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Vf?a.Ed(c.jb+d,c.kb+f,c.Ib+d,c.Jb+f,c.yb+d,c.zb+f,c.wb+d,c.xb+f,b.em):a.sh(c.jb+d,c.kb+f,c.Ib+d,c.Jb+f,c.yb+d,c.zb+f,c.wb+d,c.xb+f)}else b.Vf?a.Ed(c.jb,c.kb,c.Ib,c.Jb,c.yb,c.zb,c.wb,c.xb,b.em):a.sh(c.jb,c.kb,c.Ib,c.Jb,c.yb,c.zb,c.wb,c.xb)};c.us=function(a){var b=this.kc,c,d;c=
0;for(d=b.Yk.length;c<d;c++)if(ib(a,b.Yk[c][0]))return c;return-1};c.Nk=function(a,b){var c=this.kc,d=c.Yk,f;N(a)?f=this.us(a):f=a-1;f=R(f);if(0>f||f>=d.length)return b?this.x:this.y;var g=(d[f][1]-c.Bb)*this.width,d=d[f][2],d=(d-c.Cb)*this.height,c=Math.cos(this.i);f=Math.sin(this.i);var l=g*c-d*f,d=d*c+g*f,g=l+this.x,d=d+this.y;return b?g:d};var a=null,b=new ba,w=!1,t=[],f=new ta(0,0,0,0);q.finish=function(c){if(w){if(c){var d=this.b.ob().Pb.Lc;c=a.aa();var f=b.Rc(),g,l;if(c.ea){c.ea=!1;U(c.c);
g=0;for(l=f.length;g<l;++g)c.c[g]=f[g];if(d)for(U(c.R),g=0,l=a.c.length;g<l;++g)f=a.c[g],b.contains(f)||c.R.push(f)}else if(d)for(d=c.c.length,g=0,l=f.length;g<l;++g)c.c[d+g]=f[g],Da(c.R,f[g]);else Aa(c.c,f);a.jd()}b.clear();w=!1}};m.prototype.Tp=function(c){if(c){var d=!1,g,l,m,q=this.b.si(),n=q.type,q=q.rf;g=c.aa();l=this.b.ob().Pb.Lc;var e;g.ea?(this.la(),f.ng(this.ya),f.offset(0,0),this.b.rs(this.e,c,f,t),e=t):e=l?g.R:g.c;a=c;w=n!==c&&!q;g=0;for(l=e.length;g<l;g++)if(m=e[g],this.b.iu(this,m)){d=
!0;if(q)break;n!==c&&b.add(m)}U(t);c=d}else c=!1;return c};m.prototype.Yp=function(a){return ib(this.Qm,a)};m.prototype.Zp=function(){return!0};m.prototype.df=function(){return!0};d.j=new m;d.ma=new function(){};d.nb=new function(){}})();function pc(g){this.b=g}
(function(){var g=pc.prototype;g.cb=function(d){this.Ba=d;this.b=d.b};var m=g.cb.prototype;m.ga=function(){this.A||(this.H=new Image,this.H.ok=this.Ej,this.b.zm(this.H,this.Dj),this.N=this.pattern=null)};m.$i=function(){this.A||(this.N=null)};m.aj=function(){if(!this.A&&this.c.length){this.N||(this.N=this.b.n.Df(this.H,!0,this.b.S,this.Eh));var d,g;d=0;for(g=this.c.length;d<g;d++)this.c[d].N=this.N}};m.Ug=function(){this.A||this.N||!this.b.n||(this.N=this.b.n.Df(this.H,!0,this.b.S,this.Eh))};m.Kj=
function(){this.A||this.c.length||!this.N||(this.b.n.deleteTexture(this.N),this.N=null)};m.mj=function(d){d.drawImage(this.H,0,0)};g.Ea=function(d){this.type=d;this.b=d.b};m=g.Ea.prototype;m.ga=function(){this.visible=0===this.Da[0];this.th=new ta(0,0,0,0);this.An=!1;this.H=this.type.H;this.b.n?(this.type.Ug(),this.N=this.type.N):(this.type.pattern||(this.type.pattern=this.b.X.createPattern(this.type.H,"repeat")),this.pattern=this.type.pattern)};m.gd=function(){this.An=!1;this.H=this.type.H};m.fh=
function(){this.b.n&&this.An&&this.N&&(this.b.n.deleteTexture(this.N),this.N=null)};m.Hc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var g=this.x,l=this.y;this.b.$c&&(g=Math.round(g),l=Math.round(l));var c=-(this.Bb*this.width),a=-(this.Cb*this.height),b=c%this.H.width,m=a%this.H.height;0>b&&(b+=this.H.width);0>m&&(m+=this.H.height);d.translate(g,l);d.rotate(this.i);d.translate(b,m);d.fillRect(c-b,a-m,this.width,this.height);d.restore()};m.ek=function(d){this.mb(d)};m.mb=
function(d){d.Xb(this.N);d.Xe(this.opacity);var g=this.th;g.right=this.width/this.H.width;g.bottom=this.height/this.H.height;var l=this.Mb;if(this.b.$c){var c=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;d.Ed(l.jb+c,l.kb+a,l.Ib+c,l.Jb+a,l.yb+c,l.zb+a,l.wb+c,l.xb+a,g)}else d.Ed(l.jb,l.kb,l.Ib,l.Jb,l.yb,l.zb,l.wb,l.xb,g)};g.j=new function(){};g.ma=new function(){};g.nb=new function(){}})();function Y(g){this.b=g}
(function(){function g(a){t=a.x;f=a.y;k=a.z}function m(a){u=a.x;h=a.y;p=a.z}function d(a,b,c,d){var e;e=D.length?D.pop():new q;e.init(a,b,c,d);return e}function q(){this.Ah=this.id=this.y=this.x=this.Aj=this.zj=this.ml=this.time=this.im=0;this.Gh=this.Ij=!1}function l(){}function c(){}var a=Y.prototype;a.cb=function(a){this.Ba=a;this.b=a.b};a.cb.prototype.ga=function(){};a.Ea=function(a){this.type=a;this.b=a.b;this.touches=[];this.xl=!1};var b=a.Ea.prototype,w={left:0,top:0};b.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 t=0,f=0,k=0,u=0,h=0,p=0,D=[];q.prototype.init=function(a,b,c,d){var e=Xa();this.im=this.ml=this.time=e;this.zj=a;this.Aj=b;this.x=a;this.y=b;this.id=c;this.Ah=d;this.Gh=this.Ij=!1};q.prototype.update=function(a,b,c){this.ml=this.time;this.time=a;this.x=b;this.y=c;!this.Gh&&15<=Ta(this.zj,this.Aj,this.x,this.y)&&(this.Gh=!0)};q.prototype.lt=function(a,b){!this.Ij&&500<=Xa()-this.im&&!this.Gh&&15>Ta(this.zj,this.Aj,
this.x,this.y)&&(this.Ij=!0,a.ed=this.Ah,a.ag=this.id,a.nf=b,a.b.trigger(Y.prototype.j.jq,a),a.nd=this.x,a.od=this.y,a.b.trigger(Y.prototype.j.kq,a),a.nf=0)};var B=-1E3,n=-1E3,e=-1E4;q.prototype.no=function(a,b){if(!this.Ij){var c=Xa();333>=c-this.im&&!this.Gh&&15>Ta(this.zj,this.Aj,this.x,this.y)&&(a.ed=this.Ah,a.ag=this.id,a.nf=b,666>=c-e&&25>Ta(B,n,this.x,this.y)?(a.b.trigger(Y.prototype.j.gq,a),a.nd=this.x,a.od=this.y,a.b.trigger(Y.prototype.j.hq,a),n=B=-1E3,e=-1E4):(a.b.trigger(Y.prototype.j.sq,
a),a.nd=this.x,a.od=this.y,a.b.trigger(Y.prototype.j.tq,a),B=this.x,n=this.y,e=c),a.nf=0)}};b.ga=function(){this.dt=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.nf=this.ag=this.ed=this.od=this.nd=this.Nm=this.Mm=this.Lm=this.Jq=this.Iq=this.Hq=this.nh=this.mh=this.lh=0;this.ru=0!==this.Da[0];var a=0<this.b.gb?document:this.b.canvas,b=document;this.b.$a?b=a=window.Canvas:this.b.gc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.kh(a)},
!1),a.addEventListener("pointermove",function(a){c.jh(a)},!1),b.addEventListener("pointerup",function(a){c.Dd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Dd(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.kh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.jh(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Dd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Dd(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.cj(a)},
!1),a.addEventListener("touchmove",function(a){c.bj(a)},!1),b.addEventListener("touchend",function(a){c.Kf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Kf(a,!0)},!1));if(this.dt){var d=function(a){a=a.reading;c.Lm=a.accelerationX;c.Mm=a.accelerationY;c.Nm=a.accelerationZ},e=function(a){a=a.reading;c.lh=a.yawDegrees;c.mh=a.pitchDegrees;c.nh=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.lh=a.alpha||
0;c.mh=a.beta||0;c.nh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Hq=a.accelerationIncludingGravity.x||0,c.Iq=a.accelerationIncludingGravity.y||0,c.Jq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Lm=a.acceleration.x||0,c.Mm=a.acceleration.y||0,c.Nm=a.acceleration.z||0)},!1);this.ru&&!this.b.ba&&(jQuery(document).mousemove(function(a){c.hh(a)}),jQuery(document).mousedown(function(a){c.gh(a)}),jQuery(document).mouseup(function(a){c.ih(a)}));
this.b.sf&&!this.b.$a&&AppMobi.accelerometer.watchAcceleration(g,{frequency:40,adjustForRotation:!0});this.b.tc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(m,null,{frequency:40});this.b.ju(this)};b.jh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.ug(a.pointerId),c=Xa();if(0<=b){var d=this.b.ba?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)}}};b.kh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&jb(a)&&a.preventDefault();var b=this.b.ba?w:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Xa();this.ed=this.touches.length;this.ag=a.pointerId;this.touches.push(d(c,b,a.pointerId,this.ed));this.b.fa=!0;this.b.trigger(Y.prototype.j.Im,this);this.b.trigger(Y.prototype.j.Km,this);this.nd=c;this.od=b;this.b.trigger(Y.prototype.j.Jm,this);
this.b.fa=!1}};b.Dd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&jb(a)&&a.preventDefault();var c=this.ug(a.pointerId);this.ed=0<=c?this.touches[c].Ah:-1;this.ag=0<=c?this.touches[c].id:-1;this.b.fa=!0;this.b.trigger(Y.prototype.j.Hm,this);this.b.trigger(Y.prototype.j.Vj,this);0<=c&&(b||this.touches[c].no(this,c),100>D.length&&D.push(this.touches[c]),this.touches.splice(c,1));this.b.fa=!1}};b.bj=function(a){a.preventDefault&&a.preventDefault();
var b=Xa(),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.ba?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)}};b.cj=function(a){a.preventDefault&&jb(a)&&a.preventDefault();var b=this.b.ba?w:jQuery(this.b.canvas).offset();Xa();this.b.fa=!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.ed=this.touches.length;this.ag=f.identifier;this.touches.push(d(g,h,f.identifier,this.ed));this.b.trigger(Y.prototype.j.Im,this);this.b.trigger(Y.prototype.j.Km,this);this.nd=g;this.od=h;this.b.trigger(Y.prototype.j.Jm,this)}this.b.fa=!1};b.Kf=function(a,b){a.preventDefault&&jb(a)&&a.preventDefault();this.b.fa=!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.ed=this.touches[e].Ah,this.ag=this.touches[e].id,this.b.trigger(Y.prototype.j.Hm,
this),this.b.trigger(Y.prototype.j.Vj,this),b||this.touches[e].no(this,e),100>D.length&&D.push(this.touches[e]),this.touches.splice(e,1));this.b.fa=!1};b.ek=function(){return this.b.sf&&0===this.lh&&0!==k?90*k:this.b.tc&&0===this.lh&&0!==p?90*p:this.lh};b.br=function(){return this.b.sf&&0===this.mh&&0!==f?-90*f:this.b.tc&&0===this.mh&&0!==h?90*h:this.mh};b.zv=function(){return this.b.sf&&0===this.nh&&0!==t?90*t:this.b.tc&&0===this.nh&&0!==u?90*u:this.nh};b.gh=function(a){this.cj({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]});this.xl=!0};b.hh=function(a){this.xl&&this.bj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.ih=function(a){a.preventDefault&&this.b.Bi&&!this.b.Ke&&a.preventDefault();this.b.Bi=!0;this.Kf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.xl=!1};b.km=function(){var a,b,c,d=Xa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.ml=d),c.lt(this,a)};l.prototype.Km=function(){return!0};l.prototype.Vj=function(){return!0};
l.prototype.Jm=function(a){return a?this.b.Xf(a,this.nd,this.od,!1):!1};var v=[];l.prototype.Up=function(a){if(!a)return!1;var b=a.aa(),c=b.oc(),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.e.na(e.x,e.y,!0),e=l.e.na(e.x,e.y,!1),l.Ya(d,e)){v.push(l);break}}return v.length?(b.ea=!1,Aa(b.c,v),a.jd(),U(v),!0):!1};l.prototype.Im=function(a){a=Math.floor(a);return a===this.ed};l.prototype.Hm=function(a){a=Math.floor(a);return a===
this.ed};l.prototype.jq=function(){return!0};l.prototype.sq=function(){return!0};l.prototype.gq=function(){return!0};l.prototype.kq=function(a){return a?this.b.Xf(a,this.nd,this.od,!1):!1};l.prototype.tq=function(a){return a?this.b.Xf(a,this.nd,this.od,!1):!1};l.prototype.hq=function(a){return a?this.b.Xf(a,this.nd,this.od,!1):!1};a.j=new l;c.prototype.Wj=function(a,b){var c=this.nf;if(0>c||c>=this.touches.length)a.q(0);else{var d,e,f,g,h;fa(b)?(d=this.b.ud(0),e=d.scale,f=d.lb,g=d.Eb,h=d.i,d.scale=
1,d.lb=1,d.Eb=1,d.i=0,a.q(d.na(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.lb=f,d.Eb=g,d.i=h):(d=ga(b)?this.b.ud(b):this.b.vg(b))?a.q(d.na(this.touches[c].x,this.touches[c].y,!0)):a.q(0)}};c.prototype.Xj=function(a,b){var c=this.nf;if(0>c||c>=this.touches.length)a.q(0);else{var d,e,f,g,h;fa(b)?(d=this.b.ud(0),e=d.scale,f=d.lb,g=d.Fb,h=d.i,d.scale=1,d.lb=1,d.Fb=1,d.i=0,a.q(d.na(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.lb=f,d.Fb=g,d.i=h):(d=ga(b)?this.b.ud(b):this.b.vg(b))?a.q(d.na(this.touches[c].x,
this.touches[c].y,!1)):a.q(0)}};a.nb=new c})();
function qc(g){this.b=g;var m=this;this.b.ba||(jQuery(document).mousemove(function(d){m.hh(d)}),jQuery(document).mousedown(function(d){m.gh(d)}),jQuery(document).mouseup(function(d){m.ih(d)}));g=0<this.b.gb?document:this.b.canvas;this.b.$a?g=window.Canvas:this.b.gc&&(g=window);window.navigator.pointerEnabled?(g.addEventListener("pointerdown",function(d){m.kh(d)},!1),g.addEventListener("pointermove",function(d){m.jh(d)},!1),g.addEventListener("pointerup",function(d){m.Dd(d)},!1),g.addEventListener("pointercancel",
function(d){m.Dd(d)},!1)):window.navigator.msPointerEnabled?(g.addEventListener("MSPointerDown",function(d){m.kh(d)},!1),g.addEventListener("MSPointerMove",function(d){m.jh(d)},!1),g.addEventListener("MSPointerUp",function(d){m.Dd(d)},!1),g.addEventListener("MSPointerCancel",function(d){m.Dd(d)},!1)):(g.addEventListener("touchstart",function(d){m.cj(d)},!1),g.addEventListener("touchmove",function(d){m.bj(d)},!1),g.addEventListener("touchend",function(d){m.Kf(d)},!1),g.addEventListener("touchcancel",
function(d){m.Kf(d)},!1))}
(function(){function g(a){var b,c;b=0;for(c=a.F.length;b<c;b++)if(a.F[b]instanceof q.Ea)return a.F[b];return null}function m(){}function d(){}var q=qc.prototype,l={left:0,top:0};q.gh=function(a){1===a.which&&this.Dl("leftmouse",a.pageX,a.pageY)};q.hh=function(a){1===a.which&&this.El("leftmouse",a.pageX,a.pageY)};q.ih=function(a){1===a.which&&this.Fl("leftmouse")};q.cj=function(a){a.preventDefault&&jb(a)&&a.preventDefault();var b,c,d,f;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],
f=d.identifier,this.Dl(f?f.toString():"<none>",d.pageX,d.pageY)};q.bj=function(a){a.preventDefault&&a.preventDefault();var b,c,d,f;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],f=d.identifier,this.El(f?f.toString():"<none>",d.pageX,d.pageY)};q.Kf=function(a){a.preventDefault&&jb(a)&&a.preventDefault();var b,c,d;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],d=d.identifier,this.Fl(d?d.toString():"<none>")};q.kh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType&&(a.preventDefault&&jb(a)&&a.preventDefault(),this.Dl(a.pointerId.toString(),a.pageX,a.pageY))};q.jh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.El(a.pointerId.toString(),a.pageX,a.pageY))};q.Dd=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&jb(a)&&a.preventDefault(),this.Fl(a.pointerId.toString()))};q.Dl=function(a,b,c){var d=this.b.ba?l:jQuery(this.b.canvas).offset();
b=b-d.left;c=c-d.top;var f,k,m,h,d=this.Hf.Rc(),p,q,B,n=null;p=0;for(q=d.length;p<q;p++)if(B=d[p],f=g(B),f.enabled&&!f.Yd&&(f=B.e.na(b,c,!0),k=B.e.na(b,c,!1),B.la(),B.Ya(f,k)))n?B.e.index>n.e.index?(n=B,m=f,h=k):B.e.index===n.e.index&&B.qc()>n.qc()&&(n=B,m=f,h=k):(n=B,m=f,h=k);n&&g(n).wt(a,m,h)};q.El=function(a,b,c){var d=this.b.ba?l:jQuery(this.b.canvas).offset();b=b-d.left;c=c-d.top;var f,k=this.Hf.Rc(),m,h,p;m=0;for(h=k.length;m<h;m++)f=k[m],p=g(f),!p.enabled||!p.Yd||p.Yd&&p.vk!==a||(d=f.e.na(b,
c,!0),f=f.e.na(b,c,!1),p.At(d,f))};q.Fl=function(a){var b=this.Hf.Rc(),c,d,f;c=0;for(d=b.length;c<d;c++)f=b[c],f=g(f),f.Yd&&f.vk===a&&f.Dt()};q.cb=function(a){this.behavior=a;this.b=a.b};q.cb.prototype.ga=function(){};q.Ea=function(a,b){this.type=a;this.behavior=a.behavior;this.Db=b;this.b=a.b};var c=q.Ea.prototype;c.ga=function(){this.Yd=!1;this.en=this.dn=0;this.vk="<none>";this.dk=this.Da[0];this.enabled=0!==this.Da[1]};c.Wb=function(){return{enabled:this.enabled}};c.wc=function(a){this.enabled=
a.enabled;this.Yd=!1};c.wt=function(a,b,c){this.dn=b-this.Db.x;this.en=c-this.Db.y;this.Yd=!0;this.vk=a;this.b.fa=!0;this.b.trigger(qc.prototype.j.iq,this.Db);this.b.fa=!1};c.At=function(a,b){var c=a-this.dn,d=b-this.en;if(0===this.dk){if(this.Db.x!==c||this.Db.y!==d)this.Db.x=c,this.Db.y=d,this.Db.va()}else 1===this.dk?this.Db.x!==c&&(this.Db.x=c,this.Db.va()):2===this.dk&&this.Db.y!==d&&(this.Db.y=d,this.Db.va())};c.Dt=function(){this.Yd=!1;this.b.fa=!0;this.b.trigger(qc.prototype.j.Em,this.Db);
this.b.fa=!1};c.Xa=function(){};m.prototype.iq=function(){return!0};m.prototype.Em=function(){return!0};q.j=new m;d.prototype.xq=function(a){this.enabled=0!==a;this.enabled||(this.Yd=!1)};q.ma=new d;q.nb=new function(){}})();
function ic(){return[kc,lc,mc,nc,jc,pc,Y,qc,mc.prototype.j.Sp,jc.prototype.ma.zq,mc.prototype.j.Tj,Y.prototype.j.Up,X.prototype.ma.Cq,mc.prototype.j.Qp,X.prototype.j.Np,X.prototype.ma.Xp,X.prototype.ma.Op,X.prototype.j.Eq,X.prototype.ma.Ip,kc.prototype.ma.Play,jc.prototype.ma.Dq,X.prototype.ma.Fq,Y.prototype.j.Vj,X.prototype.j.Fm,jc.prototype.ma.yq,jc.prototype.nb.Wj,jc.prototype.nb.Xj,qc.prototype.j.Em,jc.prototype.j.Tp,jc.prototype.ma.Bq,qc.prototype.ma.xq,X.prototype.j.Cm,jc.prototype.ma.Aq,X.prototype.ma.vq,
X.prototype.ma.wq]};
