// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,F,da,ea,ga,L,ia,ja,ka,la,ma,N,oa,ra,O,sa,ta,ua,ya,Q,za,Aa,Ba,Ca,S,Da,Ea,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,T,Ra,Sa,Ta,Ua,Va,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,V,Pb,Qb,W,Rb,Sb={},Tb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(c,h,a,f){this.set(c,h,a,f)}function k(){this.Wa=this.Va=this.Ya=this.Xa=this.fb=this.eb=this.Pa=this.Oa=0}function d(c,h,a,f){c<h?a<f?(y=c<a?c:a,t=h>f?h:f):(y=c<f?c:f,t=h>a?h:a):a<f?(y=h<a?h:a,t=c>f?c:f):(y=h<f?h:f,t=c>a?c:a)}function p(){this.items=this.rc=null;this.Af=0;u&&(this.rc=new Set);this.Qe=[];this.cd=!0}function r(c){w[A++]=c}function b(){this.Na=this.Eh=this.y=this.$h=0}function a(c){this.va=[];this.sg=this.ug=this.vg=this.tg=0;this.bg(c)}function e(c,h){this.ci=
c;this.bi=h;this.cells={}}function z(c,h){this.ci=c;this.bi=h;this.cells={}}function x(c,h,a){var f;return fa.length?(f=fa.pop(),f.Ei=c,f.x=h,f.y=a,f):new aa(c,h,a)}function f(c,h,a){this.Ei=c;this.x=h;this.y=a;this.Aa=new ba}function l(c,h,a){var f;return P.length?(f=P.pop(),f.Ei=c,f.x=h,f.y=a,f):new ca(c,h,a)}function v(c,h,a){this.Ei=c;this.x=h;this.y=a;this.Aa=[];this.te=!0;this.pc=new ba;this.Ue=!1}function n(c,h){return c.jc-h.jc}F=function(c){window.console&&window.console.log&&window.console.log(c)};
da=function(c){window.console&&window.console.error&&window.console.error(c)};ea=function(c){return"undefined"===typeof c};ga=function(c){return"number"===typeof c};L=function(c){return"string"===typeof c};ia=function(c){return 0<c&&0===(c-1&c)};ja=function(c){--c;for(var h=1;32>h;h<<=1)c=c|c>>h;return c+1};ka=function(c){return 0>c?-c:c};la=function(c,h){return c<h?c:h};ma=Math.PI;N=function(c){return 0<=c?c|0:(c|0)-1};oa=function(c){var h=c|0;return h===c?h:h+1};ra=function(c,h,a,f,u,b,e,w){var m,
l,n,A;c<a?(l=c,m=a):(l=a,m=c);u<e?(A=u,n=e):(A=e,n=u);if(m<A||l>n)return!1;h<f?(l=h,m=f):(l=f,m=h);b<w?(A=b,n=w):(A=w,n=b);if(m<A||l>n)return!1;m=u-c+e-a;l=b-h+w-f;c=a-c;h=f-h;u=e-u;b=w-b;w=ka(h*u-b*c);return ka(u*l-b*m)>w?!1:ka(c*l-h*m)<=w};g.prototype.set=function(c,h,a,f){this.left=c;this.top=h;this.right=a;this.bottom=f};g.prototype.Cg=function(c){this.left=c.left;this.top=c.top;this.right=c.right;this.bottom=c.bottom};g.prototype.width=function(){return this.right-this.left};g.prototype.height=
function(){return this.bottom-this.top};g.prototype.offset=function(c,h){this.left+=c;this.top+=h;this.right+=c;this.bottom+=h;return this};g.prototype.normalize=function(){var c=0;this.left>this.right&&(c=this.left,this.left=this.right,this.right=c);this.top>this.bottom&&(c=this.top,this.top=this.bottom,this.bottom=c)};g.prototype.Wp=function(c){return!(c.right<this.left||c.bottom<this.top||c.left>this.right||c.top>this.bottom)};g.prototype.Xp=function(c,h,a){return!(c.right+h<this.left||c.bottom+
a<this.top||c.left+h>this.right||c.top+a>this.bottom)};g.prototype.Ia=function(c,h){return c>=this.left&&c<=this.right&&h>=this.top&&h<=this.bottom};g.prototype.Ig=function(c){return this.left===c.left&&this.top===c.top&&this.right===c.right&&this.bottom===c.bottom};O=g;k.prototype.ag=function(c){this.Oa=c.left;this.Pa=c.top;this.eb=c.right;this.fb=c.top;this.Xa=c.right;this.Ya=c.bottom;this.Va=c.left;this.Wa=c.bottom};k.prototype.xm=function(c,h){if(0===h)this.ag(c);else{var a=Math.sin(h),f=Math.cos(h),
u=c.left*a,b=c.top*a,w=c.right*a,a=c.bottom*a,e=c.left*f,m=c.top*f,l=c.right*f,f=c.bottom*f;this.Oa=e-b;this.Pa=m+u;this.eb=l-b;this.fb=m+w;this.Xa=l-a;this.Ya=f+w;this.Va=e-a;this.Wa=f+u}};k.prototype.offset=function(c,h){this.Oa+=c;this.Pa+=h;this.eb+=c;this.fb+=h;this.Xa+=c;this.Ya+=h;this.Va+=c;this.Wa+=h;return this};var y=0,t=0;k.prototype.sk=function(c){d(this.Oa,this.eb,this.Xa,this.Va);c.left=y;c.right=t;d(this.Pa,this.fb,this.Ya,this.Wa);c.top=y;c.bottom=t};k.prototype.Ia=function(c,h){var a=
this.Oa,f=this.Pa,u=this.eb-a,b=this.fb-f,w=this.Xa-a,e=this.Ya-f,m=c-a,l=h-f,n=u*u+b*b,A=u*w+b*e,b=u*m+b*l,d=w*w+e*e,P=w*m+e*l,q=1/(n*d-A*A),u=(d*b-A*P)*q,n=(n*P-A*b)*q;if(0<=u&&0<n&&1>u+n)return!0;u=this.Va-a;b=this.Wa-f;n=u*u+b*b;A=u*w+b*e;b=u*m+b*l;q=1/(n*d-A*A);u=(d*b-A*P)*q;n=(n*P-A*b)*q;return 0<=u&&0<n&&1>u+n};k.prototype.$c=function(c,h){if(h)switch(c){case 0:return this.Oa;case 1:return this.eb;case 2:return this.Xa;case 3:return this.Va;case 4:return this.Oa;default:return this.Oa}else switch(c){case 0:return this.Pa;
case 1:return this.fb;case 2:return this.Ya;case 3:return this.Wa;case 4:return this.Pa;default:return this.Pa}};k.prototype.Rl=function(){return(this.Oa+this.eb+this.Xa+this.Va)/4};k.prototype.Sl=function(){return(this.Pa+this.fb+this.Ya+this.Wa)/4};k.prototype.dl=function(c){var h=c.Rl(),a=c.Sl();if(this.Ia(h,a))return!0;h=this.Rl();a=this.Sl();if(c.Ia(h,a))return!0;var f,u,b,w,e,m,l,n;for(l=0;4>l;l++)for(n=0;4>n;n++)if(h=this.$c(l,!0),a=this.$c(l,!1),f=this.$c(l+1,!0),u=this.$c(l+1,!1),b=c.$c(n,
!0),w=c.$c(n,!1),e=c.$c(n+1,!0),m=c.$c(n+1,!1),ra(h,a,f,u,b,w,e,m))return!0;return!1};sa=k;ta=function(c,h){for(var a in h)h.hasOwnProperty(a)&&(c[a]=h[a]);return c};ua=function(c,h){var a,f;h=N(h);if(!(0>h||h>=c.length)){a=h;for(f=c.length-1;a<f;a++)c[a]=c[a+1];ya(c,f)}};ya=function(c,h){c.length=h};Q=function(c){ya(c,0)};za=function(c,h){Q(c);var a,f;a=0;for(f=h.length;a<f;++a)c[a]=h[a]};Aa=function(c,h){c.push.apply(c,h)};Ba=function(c,h){var a,f;a=0;for(f=c.length;a<f;++a)if(c[a]===h)return a;
return-1};Ca=function(c,h){var a=Ba(c,h);-1!==a&&ua(c,a)};S=function(c){return c/(180/ma)};Da=function(c){return 180/ma*c};Ea=function(c){c%=360;0>c&&(c+=360);return c};Ga=function(c){c%=2*ma;0>c&&(c+=2*ma);return c};Ha=function(c){return Ea(Da(c))};Ia=function(c){return Ga(S(c))};Ja=function(c,h,a,f){return Math.atan2(f-h,a-c)};Ka=function(c,h){if(c===h)return 0;var a=Math.sin(c),f=Math.cos(c),u=Math.sin(h),b=Math.cos(h),a=a*u+f*b;return 1<=a?0:-1>=a?ma:Math.acos(a)};La=function(c,h,a){var f=Math.sin(c),
u=Math.cos(c),b=Math.sin(h),w=Math.cos(h);return Math.acos(f*b+u*w)>a?0<u*b-f*w?Ga(c+a):Ga(c-a):Ga(h)};Ma=function(c,h){var a=Math.sin(c),f=Math.cos(c),u=Math.sin(h),b=Math.cos(h);return 0>=f*u-a*b};Na=function(c,h,a,f){c=a-c;h=f-h;return Math.sqrt(c*c+h*h)};Oa=function(c,h){return!c!==!h};Pa=function(c){for(var h in c)if(c.hasOwnProperty(h))return!0;return!1};Qa=function(c){for(var h in c)c.hasOwnProperty(h)&&delete c[h]};var q=+new Date;T=function(){if("undefined"!==typeof window.performance){var c=
window.performance;if("undefined"!==typeof c.now)return c.now();if("undefined"!==typeof c.webkitNow)return c.webkitNow();if("undefined"!==typeof c.mozNow)return c.mozNow();if("undefined"!==typeof c.msNow)return c.msNow()}return Date.now()-q};var m=!1,c=m=!1,h=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),c=/(iphone|ipod|ipad)/i.test(navigator.userAgent),h=window.c2ejecta);var u=!m&&!h&&!c&&"undefined"!==
typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(c){return this.Ic()?!1:u?this.rc.has(c):this.items&&this.items.hasOwnProperty(c)};p.prototype.add=function(c){if(u)this.rc.has(c)||(this.rc.add(c),this.cd=!1);else{var h=c.toString(),a=this.items;a?a.hasOwnProperty(h)||(a[h]=c,this.Af++,this.cd=!1):(this.items={},this.items[h]=c,this.Af=1,this.cd=!1)}};p.prototype.remove=function(c){if(!this.Ic())if(u)this.rc.has(c)&&(this.rc["delete"](c),this.cd=!1);else if(this.items){c=
c.toString();var h=this.items;h.hasOwnProperty(c)&&(delete h[c],this.Af--,this.cd=!1)}};p.prototype.clear=function(){this.Ic()||(u?this.rc.clear():(this.items=null,this.Af=0),Q(this.Qe),this.cd=!0)};p.prototype.Ic=function(){return 0===this.count()};p.prototype.count=function(){return u?this.rc.size:this.Af};var w=null,A=0;p.prototype.Zq=function(){if(!this.cd){if(u)Q(this.Qe),w=this.Qe,A=0,this.rc.forEach(r),w=null,A=0;else{var c=this.Qe;Q(c);var h,a=0,f=this.items;if(f)for(h in f)f.hasOwnProperty(h)&&
(c[a++]=f[h])}this.cd=!0}};p.prototype.ic=function(){this.Zq();return this.Qe};ba=p;new ba;Ra=function(c,h){u?Sa(c,h.rc):Ta(c,h.ic())};Sa=function(c,h){var a,f,u,b;f=a=0;for(u=c.length;a<u;++a)b=c[a],h.has(b)||(c[f++]=b);ya(c,f)};Ta=function(c,h){var a,f,u,b;f=a=0;for(u=c.length;a<u;++a)b=c[a],-1===Ba(h,b)&&(c[f++]=b);ya(c,f)};b.prototype.add=function(c){this.y=c-this.$h;this.Eh=this.Na+this.y;this.$h=this.Eh-this.Na-this.y;this.Na=this.Eh};b.prototype.reset=function(){this.Na=this.Eh=this.y=this.$h=
0};Ua=b;Va=function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.bg=function(c){this.jm=c;this.ec=c.length/2;this.va.length=c.length;this.xg=this.yg=-1;this.vk=0};a.prototype.re=function(){return!this.jm.length};a.prototype.X=function(){for(var c=this.va,h=c[0],a=h,f=c[1],u=f,b,w,e=1,m=this.ec;e<m;++e)w=2*e,b=c[w],w=c[w+1],b<h&&(h=b),b>a&&(a=b),w<f&&(f=w),w>u&&(u=w);this.tg=h;this.ug=a;this.vg=f;this.sg=u};a.prototype.ag=function(c,h,a){this.va.length=8;this.ec=4;var f=this.va;
f[0]=c.left-h;f[1]=c.top-a;f[2]=c.right-h;f[3]=c.top-a;f[4]=c.right-h;f[5]=c.bottom-a;f[6]=c.left-h;f[7]=c.bottom-a;this.yg=c.right-c.left;this.xg=c.bottom-c.top;this.X()};a.prototype.Je=function(c,h,a,f,u){this.va.length=8;this.ec=4;var b=this.va;b[0]=c.Oa-h;b[1]=c.Pa-a;b[2]=c.eb-h;b[3]=c.fb-a;b[4]=c.Xa-h;b[5]=c.Ya-a;b[6]=c.Va-h;b[7]=c.Wa-a;this.yg=f;this.xg=u;this.X()};a.prototype.wm=function(c){this.ec=c.ec;za(this.va,c.va);this.tg=c.tg;this.vg-c.vg;this.ug=c.ug;this.sg=c.sg};a.prototype.ke=function(c,
h,a){if(this.yg!==c||this.xg!==h||this.vk!==a){this.yg=c;this.xg=h;this.vk=a;var f,u,b,w,e,m=0,l=1,n=this.jm,A=this.va;0!==a&&(m=Math.sin(a),l=Math.cos(a));a=0;for(b=this.ec;a<b;a++)f=2*a,u=f+1,w=n[f]*c,e=n[u]*h,A[f]=w*l-e*m,A[u]=e*l+w*m;this.X()}};a.prototype.Ia=function(c,h){var a=this.va;if(c===a[0]&&h===a[1])return!0;var f,u,b,w=this.ec,e=this.tg-110,m=this.vg-101,l=this.ug+131,n=this.sg+120,A,d,P=0,q=0;for(f=0;f<w;f++)u=2*f,b=(f+1)%w*2,A=a[u],u=a[u+1],d=a[b],b=a[b+1],ra(e,m,c,h,A,u,d,b)&&P++,
ra(l,n,c,h,A,u,d,b)&&q++;return 1===P%2||1===q%2};a.prototype.tf=function(c,h,a){var f=c.va,u=this.va;if(this.Ia(f[0]+h,f[1]+a)||c.Ia(u[0]-h,u[1]-a))return!0;var b,w,e,m,l,n,A,d,P,q,fa,v;b=0;for(m=this.ec;b<m;b++)for(w=2*b,e=(b+1)%m*2,d=u[w],w=u[w+1],P=u[e],q=u[e+1],e=0,A=c.ec;e<A;e++)if(l=2*e,n=(e+1)%A*2,fa=f[l]+h,l=f[l+1]+a,v=f[n]+h,n=f[n+1]+a,ra(d,w,P,q,fa,l,v,n))return!0;return!1};Xa=a;e.prototype.hd=function(c,h,a){var f;f=this.cells[c];return f?(f=f[h])?f:a?(f=x(this,c,h),this.cells[c][h]=f):
null:a?(f=x(this,c,h),this.cells[c]={},this.cells[c][h]=f):null};e.prototype.pb=function(c){return N(c/this.ci)};e.prototype.qb=function(c){return N(c/this.bi)};e.prototype.update=function(c,h,a){var f,u,b,w,e;if(h)for(f=h.left,u=h.right;f<=u;++f)for(b=h.top,w=h.bottom;b<=w;++b)if(!a||!a.Ia(f,b))if(e=this.hd(f,b,!1))e.remove(c),e.Ic()&&(e.Aa.clear(),1E3>fa.length&&fa.push(e),this.cells[f][b]=null);if(a)for(f=a.left,u=a.right;f<=u;++f)for(b=a.top,w=a.bottom;b<=w;++b)h&&h.Ia(f,b)||this.hd(f,b,!0).Ki(c)};
e.prototype.vh=function(c,h){var a,f,b,u,w,e;a=this.pb(c.left);b=this.qb(c.top);f=this.pb(c.right);for(w=this.qb(c.bottom);a<=f;++a)for(u=b;u<=w;++u)(e=this.hd(a,u,!1))&&e.dump(h)};Ya=e;z.prototype.hd=function(c,h,a){var f;f=this.cells[c];return f?(f=f[h])?f:a?(f=l(this,c,h),this.cells[c][h]=f):null:a?(f=l(this,c,h),this.cells[c]={},this.cells[c][h]=f):null};z.prototype.pb=function(c){return N(c/this.ci)};z.prototype.qb=function(c){return N(c/this.bi)};z.prototype.update=function(c,h,a){var f,b,u,
w,e;if(h)for(f=h.left,b=h.right;f<=b;++f)for(u=h.top,w=h.bottom;u<=w;++u)if(!a||!a.Ia(f,u))if(e=this.hd(f,u,!1))e.remove(c),e.Ic()&&(e.reset(),1E3>P.length&&P.push(e),this.cells[f][u]=null);if(a)for(f=a.left,b=a.right;f<=b;++f)for(u=a.top,w=a.bottom;u<=w;++u)h&&h.Ia(f,u)||this.hd(f,u,!0).Ki(c)};z.prototype.vh=function(c,h,a,f,u){var b,w;c=this.pb(c);h=this.qb(h);a=this.pb(a);for(b=this.qb(f);c<=a;++c)for(f=h;f<=b;++f)(w=this.hd(c,f,!1))&&w.dump(u)};z.prototype.jq=function(c){var h,a,f,u,b;h=c.left;
f=c.top;a=c.right;for(u=c.bottom;h<=a;++h)for(c=f;c<=u;++c)if(b=this.hd(h,c,!1))b.te=!1};Za=z;var fa=[];f.prototype.Ic=function(){return this.Aa.Ic()};f.prototype.Ki=function(c){this.Aa.add(c)};f.prototype.remove=function(c){this.Aa.remove(c)};f.prototype.dump=function(c){Aa(c,this.Aa.ic())};aa=f;var P=[];v.prototype.Ic=function(){if(!this.Aa.length)return!0;if(this.Aa.length>this.pc.count())return!1;this.si();return!0};v.prototype.Ki=function(c){this.pc.contains(c)?(this.pc.remove(c),this.pc.Ic()&&
(this.Ue=!1)):this.Aa.length?(this.Aa[this.Aa.length-1].Gb()>c.Gb()&&(this.te=!1),this.Aa.push(c)):(this.Aa.push(c),this.te=!0)};v.prototype.remove=function(c){this.pc.add(c);this.Ue=!0;30<=this.pc.count()&&this.si()};v.prototype.si=function(){this.Ue&&(this.pc.count()===this.Aa.length?this.reset():(Ra(this.Aa,this.pc),this.pc.clear(),this.Ue=!1))};v.prototype.Io=function(){this.te||(this.Aa.sort(n),this.te=!0)};v.prototype.reset=function(){Q(this.Aa);this.te=!0;this.pc.clear();this.Ue=!1};v.prototype.dump=
function(c){this.si();this.Io();this.Aa.length&&c.push(this.Aa)};ca=v;var Fa="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");$a=function(c){return 0>=c||11<=c?"source-over":Fa[c-1]};ab=function(c,h,a){if(a)switch(c.Ma=a.ONE,c.Ja=a.ONE_MINUS_SRC_ALPHA,h){case 1:c.Ma=a.ONE;c.Ja=a.ONE;break;case 3:c.Ma=a.ONE;c.Ja=a.ZERO;break;case 4:c.Ma=a.ONE_MINUS_DST_ALPHA;c.Ja=a.ONE;break;case 5:c.Ma=a.DST_ALPHA;c.Ja=a.ZERO;break;case 6:c.Ma=
a.ZERO;c.Ja=a.SRC_ALPHA;break;case 7:c.Ma=a.ONE_MINUS_DST_ALPHA;c.Ja=a.ZERO;break;case 8:c.Ma=a.ZERO;c.Ja=a.ONE_MINUS_SRC_ALPHA;break;case 9:c.Ma=a.DST_ALPHA;c.Ja=a.ONE_MINUS_SRC_ALPHA;break;case 10:c.Ma=a.ONE_MINUS_DST_ALPHA,c.Ja=a.SRC_ALPHA}};bb=function(c){return Math.round(1E6*c)/1E6};cb=function(c,h){return"string"!==typeof c||"string"!==typeof h||c.length!==h.length?!1:c===h?!0:c.toLowerCase()===h.toLowerCase()};db=function(c){c=c.target;return!c||c===document||c===window||document&&document.body&&
c===document.body||cb(c.tagName,"canvas")?!0:!1}})();var Ub="undefined"!==typeof Float32Array?Float32Array:Array;function Vb(g){var k=new Ub(3);g&&(k[0]=g[0],k[1]=g[1],k[2]=g[2]);return k}function Wb(g){var k=new Ub(16);g&&(k[0]=g[0],k[1]=g[1],k[2]=g[2],k[3]=g[3],k[4]=g[4],k[5]=g[5],k[6]=g[6],k[7]=g[7],k[8]=g[8],k[9]=g[9],k[10]=g[10],k[11]=g[11],k[12]=g[12],k[13]=g[13],k[14]=g[14],k[15]=g[15]);return k}
function Xb(g,k){k[0]=g[0];k[1]=g[1];k[2]=g[2];k[3]=g[3];k[4]=g[4];k[5]=g[5];k[6]=g[6];k[7]=g[7];k[8]=g[8];k[9]=g[9];k[10]=g[10];k[11]=g[11];k[12]=g[12];k[13]=g[13];k[14]=g[14];k[15]=g[15]}function Yb(g,k){var d=k[0],p=k[1];k=k[2];g[0]*=d;g[1]*=d;g[2]*=d;g[3]*=d;g[4]*=p;g[5]*=p;g[6]*=p;g[7]*=p;g[8]*=k;g[9]*=k;g[10]*=k;g[11]*=k}
function Zb(g,k,d,p){p||(p=Wb());var r,b,a,e,z,x,f,l,v=g[0],n=g[1];g=g[2];b=d[0];a=d[1];r=d[2];d=k[1];x=k[2];v===k[0]&&n===d&&g===x?(g=p,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(d=v-k[0],x=n-k[1],f=g-k[2],l=1/Math.sqrt(d*d+x*x+f*f),d*=l,x*=l,f*=l,k=a*f-r*x,r=r*d-b*f,b=b*x-a*d,(l=Math.sqrt(k*k+r*r+b*b))?(l=1/l,k*=l,r*=l,b*=l):b=r=k=0,a=x*b-f*r,e=f*k-d*b,z=d*r-x*k,(l=Math.sqrt(a*a+e*e+z*z))?(l=1/l,a*=l,e*=l,z*=l):z=e=a=0,
p[0]=k,p[1]=a,p[2]=d,p[3]=0,p[4]=r,p[5]=e,p[6]=x,p[7]=0,p[8]=b,p[9]=z,p[10]=f,p[11]=0,p[12]=-(k*v+r*n+b*g),p[13]=-(a*v+e*n+z*g),p[14]=-(d*v+x*n+f*g),p[15]=1)}
(function(){function g(b){this.Qd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.wk=Vb([0,0,100]);this.Bl=Vb([0,0,0]);this.Rm=Vb([0,1,0]);this.Tj=Vb([1,1,1]);this.Fk=!0;this.bj=Wb();this.Mb=Wb();this.ol=Wb();this.ii=Wb();this.i=b;this.$k()}function k(b,a,e){this.i=b;this.dg=a;this.name=e;this.Lb=b.getAttribLocation(a,"aPos");this.nd=b.getAttribLocation(a,"aTex");this.zl=b.getUniformLocation(a,"matP");this.hh=b.getUniformLocation(a,"matMV");this.ye=
b.getUniformLocation(a,"opacity");this.Al=b.getUniformLocation(a,"samplerFront");this.Hf=b.getUniformLocation(a,"samplerBack");this.Yd=b.getUniformLocation(a,"destStart");this.Xd=b.getUniformLocation(a,"destEnd");this.$i=b.getUniformLocation(a,"seconds");this.Zi=b.getUniformLocation(a,"pixelWidth");this.Yi=b.getUniformLocation(a,"pixelHeight");this.Gf=b.getUniformLocation(a,"layerScale");this.Ff=b.getUniformLocation(a,"layerAngle");this.Jf=b.getUniformLocation(a,"viewOrigin");this.If=b.getUniformLocation(a,
"scrollPos");this.Sp=!!(this.Zi||this.Yi||this.$i||this.Hf||this.Yd||this.Xd||this.Gf||this.Ff||this.Jf||this.If);this.Jl=this.Kl=-999;this.jh=1;this.Fl=this.El=0;this.Hl=this.Dl=this.Cl=1;this.Ml=this.Ll=this.Ol=this.Nl=this.Gl=0;this.Ui=[];this.Il=Wb();this.ye&&b.uniform1f(this.ye,1);this.Al&&b.uniform1i(this.Al,0);this.Hf&&b.uniform1i(this.Hf,1);this.Yd&&b.uniform2f(this.Yd,0,0);this.Xd&&b.uniform2f(this.Xd,1,1);this.Gf&&b.uniform1f(this.Gf,1);this.Ff&&b.uniform1f(this.Ff,0);this.Jf&&b.uniform2f(this.Jf,
0,0);this.If&&b.uniform2f(this.If,0,0);this.Md=!1}function d(b,a){this.type=b;this.m=a;this.i=a.i;this.nc=this.Pb=this.am=0;this.P=this.Rb=null;this.ym=[]}g.prototype.$k=function(){var b=this.i,a;this.pl=1;this.Td=this.Sd=null;this.Gg=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.DEPTH_TEST);this.rl=b.ONE;this.ml=b.ONE_MINUS_SRC_ALPHA;this.Nh=new Float32Array(16E3);this.Fh=new Float32Array(16E3);this.gm=
new Float32Array(32E3);this.nj=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.nj);b.bufferData(b.ARRAY_BUFFER,this.gm.byteLength,b.DYNAMIC_DRAW);this.pg=Array(4);this.jg=Array(4);for(a=0;4>a;a++)this.pg[a]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.pg[a]),b.bufferData(b.ARRAY_BUFFER,this.Nh.byteLength,b.DYNAMIC_DRAW),this.jg[a]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.jg[a]),b.bufferData(b.ARRAY_BUFFER,this.Fh.byteLength,b.DYNAMIC_DRAW);this.zc=0;this.Up=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,
this.Up);for(var e=new Uint16Array(12E3),d=a=0;12E3>a;)e[a++]=d,e[a++]=d+1,e[a++]=d+2,e[a++]=d,e[a++]=d+2,e[a++]=d+3,d+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,e,b.STATIC_DRAW);this.oj=this.wc=0;this.wa=[];a=this.hi({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}",
"<default>");this.wa.push(a);a=this.hi({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.wa.push(a);for(var g in $b)$b.hasOwnProperty(g)&&
this.wa.push(this.hi($b[g],"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}",g));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.bd=[];this.yc=0;this.ib=!1;this.Ak=this.Bf=-1;this.ef=null;this.mp=b.createFramebuffer();this.mm=null;this.xd=Vb([0,0,0]);this.Pl=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];
2048<this.Pl&&(this.Pl=2048);this.tc(0)};k.prototype.Pj=function(b){var a=this.Il;if(a[0]!==b[0]||a[1]!==b[1]||a[2]!==b[2]||a[3]!==b[3]||a[4]!==b[4]||a[5]!==b[5]||a[6]!==b[6]||a[7]!==b[7]||a[8]!==b[8]||a[9]!==b[9]||a[10]!==b[10]||a[11]!==b[11]||a[12]!==b[12]||a[13]!==b[13]||a[14]!==b[14]||a[15]!==b[15])Xb(b,this.Il),this.i.uniformMatrix4fv(this.hh,!1,b)};g.prototype.hi=function(b,a,e){var d=this.i,g=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(g,b.src);d.compileShader(g);if(!d.getShaderParameter(g,
d.COMPILE_STATUS))return d.deleteShader(g),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(g),d.deleteShader(f),null;a=d.createProgram();d.attachShader(a,g);d.attachShader(a,f);d.linkProgram(a);if(!d.getProgramParameter(a,d.LINK_STATUS))return d.deleteShader(g),d.deleteShader(f),d.deleteProgram(a),null;d.useProgram(a);d.deleteShader(g);d.deleteShader(f);e=new k(d,a,e);e.qi=b.qi||0;e.ri=b.ri||0;e.zk=
!!b.zk;e.pk=!!b.pk;e.A=b.A||[];b=0;for(g=e.A.length;b<g;b++)e.A[b][1]=d.getUniformLocation(a,e.A[b][0]),e.Ui.push(0),d.uniform1f(e.A[b][1],0);return e};g.prototype.Di=function(b){var a,e;a=0;for(e=this.wa.length;a<e;a++)if(this.wa[a].name===b)return a;return-1};g.prototype.im=function(b,a,e){var d=this.Mb,g=this.bj,f=[0,0,0,0,0,0,0,0];f[0]=d[0]*b+d[4]*a+d[12];f[1]=d[1]*b+d[5]*a+d[13];f[2]=d[2]*b+d[6]*a+d[14];f[3]=d[3]*b+d[7]*a+d[15];f[4]=g[0]*f[0]+g[4]*f[1]+g[8]*f[2]+g[12]*f[3];f[5]=g[1]*f[0]+g[5]*
f[1]+g[9]*f[2]+g[13]*f[3];f[6]=g[2]*f[0]+g[6]*f[1]+g[10]*f[2]+g[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],e[0]=(.5*f[4]+.5)*this.width,e[1]=(.5*f[5]+.5)*this.height)};g.prototype.Ie=function(b,a,e){if(this.width!==b||this.height!==a||e){this.Id();this.width=b;this.height=a;this.i.viewport(0,0,b,a);a=b/a;var d=this.bj,g;g=1*Math.tan(45*Math.PI/360);a*=g;b=-a;e=-g;d||(d=Wb());var f=a-b,l=g-e;d[0]=2/f;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/l;d[6]=0;d[7]=0;d[8]=(a+b)/f;d[9]=
(g+e)/l;d[10]=-1001/999;d[11]=-1;d[12]=0;d[13]=0;d[14]=-2E3/999;d[15]=0;Zb(this.wk,this.Bl,this.Rm,this.Mb);b=[0,0];a=[0,0];this.im(0,0,b);this.im(1,1,a);this.Tj[0]=1/(a[0]-b[0]);this.Tj[1]=-1/(a[1]-b[1]);b=0;for(a=this.wa.length;b<a;b++)e=this.wa[b],e.Md=!1,e.zl&&(this.i.useProgram(e.dg),this.i.uniformMatrix4fv(e.zl,!1,this.bj));this.i.useProgram(this.wa[this.Bf].dg);this.i.bindTexture(this.i.TEXTURE_2D,null);this.i.activeTexture(this.i.TEXTURE1);this.i.bindTexture(this.i.TEXTURE_2D,null);this.i.activeTexture(this.i.TEXTURE0);
this.Td=this.Sd=null}};g.prototype.td=function(){Zb(this.wk,this.Bl,this.Rm,this.Mb);Yb(this.Mb,this.Tj)};g.prototype.translate=function(b,a){if(0!==b||0!==a){this.xd[0]=b;this.xd[1]=a;this.xd[2]=0;var e=this.Mb,d=this.xd,g=d[0],f=d[1],d=d[2];e[12]=e[0]*g+e[4]*f+e[8]*d+e[12];e[13]=e[1]*g+e[5]*f+e[9]*d+e[13];e[14]=e[2]*g+e[6]*f+e[10]*d+e[14];e[15]=e[3]*g+e[7]*f+e[11]*d+e[15]}};g.prototype.scale=function(b,a){if(1!==b||1!==a)this.xd[0]=b,this.xd[1]=a,this.xd[2]=1,Yb(this.Mb,this.xd)};g.prototype.nm=
function(b){if(0!==b){var a=this.Mb,e,d=Math.sin(b);b=Math.cos(b);var g=a[0],f=a[1],l=a[2],v=a[3],n=a[4],y=a[5],k=a[6],q=a[7];e?a!==e&&(e[8]=a[8],e[9]=a[9],e[10]=a[10],e[11]=a[11],e[12]=a[12],e[13]=a[13],e[14]=a[14],e[15]=a[15]):e=a;e[0]=g*b+n*d;e[1]=f*b+y*d;e[2]=l*b+k*d;e[3]=v*b+q*d;e[4]=g*-d+n*b;e[5]=f*-d+y*b;e[6]=l*-d+k*b;e[7]=v*-d+q*b}};g.prototype.yd=function(){for(var b=!1,a=0;16>a;a++)if(this.ol[a]!==this.Mb[a]){b=!0;break}b&&(b=this.fc(),b.type=5,b.P?Xb(this.Mb,b.P):b.P=Wb(this.Mb),Xb(this.Mb,
this.ol),this.ib=!1)};d.prototype.yo=function(){this.i.bindTexture(this.i.TEXTURE_2D,this.Rb)};d.prototype.zo=function(){var b=this.i;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.Rb);b.activeTexture(b.TEXTURE0)};d.prototype.vo=function(){var b=this.am,a=this.m;a.Gg=b;a=a.ef;a.ye&&a.jh!==b&&(a.jh=b,this.i.uniform1f(a.ye,b))};d.prototype.so=function(){this.i.drawElements(this.i.TRIANGLES,this.nc,this.i.UNSIGNED_SHORT,2*this.Pb)};d.prototype.uo=function(){this.i.blendFunc(this.Pb,this.nc)};
d.prototype.Ao=function(){var b,a,e,d=this.m.wa,g=this.m.Ak;b=0;for(a=d.length;b<a;b++)e=d[b],b===g&&e.hh?(e.Pj(this.P),e.Md=!0):e.Md=!1;Xb(this.P,this.m.ii)};d.prototype.to=function(){var b=this.i,a=this.m;this.Rb?(a.Td===this.Rb&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),a.Td=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,a.mp),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.Rb,0)):(b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,
b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};d.prototype.qo=function(){var b=this.i;0===this.Pb?(b.clearColor(this.P[0],this.P[1],this.P[2],this.P[3]),b.clear(b.COLOR_BUFFER_BIT)):(b.enable(b.SCISSOR_TEST),b.scissor(this.P[0],this.P[1],this.P[2],this.P[3]),b.clearColor(0,0,0,0),b.clear(this.i.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST))};d.prototype.ro=function(){var b=this.i,a=this.m,e=a.wa[1];b.useProgram(e.dg);!e.Md&&e.hh&&(e.Pj(a.ii),e.Md=!0);b.enableVertexAttribArray(e.Lb);b.bindBuffer(b.ARRAY_BUFFER,
a.nj);b.vertexAttribPointer(e.Lb,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.Pb/4,this.nc);e=a.ef;b.useProgram(e.dg);0<=e.Lb&&(b.enableVertexAttribArray(e.Lb),b.bindBuffer(b.ARRAY_BUFFER,a.pg[a.zc]),b.vertexAttribPointer(e.Lb,2,b.FLOAT,!1,0,0));0<=e.nd&&(b.enableVertexAttribArray(e.nd),b.bindBuffer(b.ARRAY_BUFFER,a.jg[a.zc]),b.vertexAttribPointer(e.nd,2,b.FLOAT,!1,0,0))};d.prototype.wo=function(){var b=this.i,a=this.m,e=a.wa[this.Pb];a.Ak=this.Pb;a.ef=e;b.useProgram(e.dg);!e.Md&&e.hh&&(e.Pj(a.ii),
e.Md=!0);e.ye&&e.jh!==a.Gg&&(e.jh=a.Gg,b.uniform1f(e.ye,a.Gg));0<=e.Lb&&(b.enableVertexAttribArray(e.Lb),b.bindBuffer(b.ARRAY_BUFFER,a.pg[a.zc]),b.vertexAttribPointer(e.Lb,2,b.FLOAT,!1,0,0));0<=e.nd&&(b.enableVertexAttribArray(e.nd),b.bindBuffer(b.ARRAY_BUFFER,a.jg[a.zc]),b.vertexAttribPointer(e.nd,2,b.FLOAT,!1,0,0))};d.prototype.xo=function(){var b,a,e=this.m.ef,d=this.i;b=this.P;e.Hf&&this.m.Td!==this.Rb&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.Rb),this.m.Td=this.Rb,d.activeTexture(d.TEXTURE0));
var g=b[0];e.Zi&&g!==e.Kl&&(e.Kl=g,d.uniform1f(e.Zi,g));g=b[1];e.Yi&&g!==e.Jl&&(e.Jl=g,d.uniform1f(e.Yi,g));g=b[2];a=b[3];!e.Yd||g===e.El&&a===e.Fl||(e.El=g,e.Fl=a,d.uniform2f(e.Yd,g,a));g=b[4];a=b[5];!e.Xd||g===e.Cl&&a===e.Dl||(e.Cl=g,e.Dl=g,d.uniform2f(e.Xd,g,a));g=b[6];e.Gf&&g!==e.Hl&&(e.Hl=g,d.uniform1f(e.Gf,g));g=b[7];e.Ff&&g!==e.Gl&&(e.Gl=g,d.uniform1f(e.Ff,g));g=b[8];a=b[9];!e.Jf||g===e.Nl&&a===e.Ol||(e.Nl=g,e.Ol=a,d.uniform2f(e.Jf,g,a));g=b[10];a=b[11];!e.If||g===e.Ll&&a===e.Ml||(e.Ll=g,e.Ml=
a,d.uniform2f(e.If,g,a));e.$i&&d.uniform1f(e.$i,T()/1E3);if(e.A.length)for(b=0,a=e.A.length;b<a;b++)g=this.ym[b],g!==e.Ui[b]&&(e.Ui[b]=g,d.uniform1f(e.A[b][1],g))};g.prototype.fc=function(){this.yc===this.bd.length&&this.bd.push(new d(0,this));return this.bd[this.yc++]};g.prototype.Id=function(){if(0!==this.yc&&!this.i.isContextLost()){var b=this.i;0<this.oj&&(b.bindBuffer(b.ARRAY_BUFFER,this.nj),b.bufferSubData(b.ARRAY_BUFFER,0,this.gm.subarray(0,this.oj)),a&&0<=a.Lb&&"<point>"===a.name&&b.vertexAttribPointer(a.Lb,
4,b.FLOAT,!1,0,0));if(0<this.wc){var a=this.ef;b.bindBuffer(b.ARRAY_BUFFER,this.pg[this.zc]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Nh.subarray(0,this.wc));a&&0<=a.Lb&&"<point>"!==a.name&&b.vertexAttribPointer(a.Lb,2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.jg[this.zc]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Fh.subarray(0,this.wc));a&&0<=a.nd&&"<point>"!==a.name&&b.vertexAttribPointer(a.nd,2,b.FLOAT,!1,0,0)}for(var e,b=0,a=this.yc;b<a;b++)switch(e=this.bd[b],e.type){case 1:e.so();break;case 2:e.yo();
break;case 3:e.vo();break;case 4:e.uo();break;case 5:e.Ao();break;case 6:e.to();break;case 7:e.qo();break;case 8:e.ro();break;case 9:e.wo();break;case 10:e.xo();break;case 11:e.zo()}this.oj=this.wc=this.yc=0;this.ib=!1;this.zc++;4<=this.zc&&(this.zc=0)}};g.prototype.Ge=function(b){if(b!==this.pl){var a=this.fc();a.type=3;this.pl=a.am=b;this.ib=!1}};g.prototype.zb=function(b){if(b!==this.Sd){var a=this.fc();a.type=2;this.Sd=a.Rb=b;this.ib=!1}};g.prototype.ud=function(b,a){if(b!==this.rl||a!==this.ml){var e=
this.fc();e.type=4;e.Pb=b;e.nc=a;this.rl=b;this.ml=a;this.ib=!1}};g.prototype.tm=function(){this.ud(this.i.ONE,this.i.ONE_MINUS_SRC_ALPHA)};g.prototype.uh=function(b,a,e,d,g,f,l,v){15992<=this.wc&&this.Id();var n=this.wc,y=this.Nh,k=this.Fh;if(this.ib)this.bd[this.yc-1].nc+=6;else{var q=this.fc();q.type=1;q.Pb=n/4*3;q.nc=6;this.ib=!0}y[n]=b;k[n++]=0;y[n]=a;k[n++]=0;y[n]=e;k[n++]=1;y[n]=d;k[n++]=0;y[n]=g;k[n++]=1;y[n]=f;k[n++]=1;y[n]=l;k[n++]=0;y[n]=v;k[n++]=1;this.wc=n};g.prototype.Oc=function(b,
a,e,d,g,f,l,v,n){15992<=this.wc&&this.Id();var y=this.wc,k=this.Nh,q=this.Fh;if(this.ib)this.bd[this.yc-1].nc+=6;else{var m=this.fc();m.type=1;m.Pb=y/4*3;m.nc=6;this.ib=!0}var m=n.left,c=n.top,h=n.right;n=n.bottom;k[y]=b;q[y++]=m;k[y]=a;q[y++]=c;k[y]=e;q[y++]=h;k[y]=d;q[y++]=c;k[y]=g;q[y++]=h;k[y]=f;q[y++]=n;k[y]=l;q[y++]=m;k[y]=v;q[y++]=n;this.wc=y};g.prototype.tc=function(b){if(this.Bf!==b){if(!this.wa[b]){if(0===this.Bf)return;b=0}var a=this.fc();a.type=9;this.Bf=a.Pb=b;this.ib=!1}};g.prototype.Xf=
function(b){b=this.wa[b];return!(!b.Yd&&!b.Xd)};g.prototype.rj=function(b){b=this.wa[b];return!!(b.Yd||b.Xd||b.zk)};g.prototype.Dq=function(b){b=this.wa[b];return 0!==b.qi||0!==b.ri};g.prototype.zp=function(b){return this.wa[b].qi};g.prototype.Ap=function(b){return this.wa[b].ri};g.prototype.Bp=function(b,a){return this.wa[b].A[a][2]};g.prototype.rh=function(b){return this.wa[b].pk};g.prototype.He=function(b,a,e,d,g,f,l,v,n,k,t,q,m,c){var h=this.wa[this.Bf],u,w;if(h.Sp||c.length){u=this.fc();u.type=
10;u.P?Xb(this.Mb,u.P):u.P=Wb();w=u.P;w[0]=a;w[1]=e;w[2]=d;w[3]=g;w[4]=f;w[5]=l;w[6]=v;w[7]=n;w[8]=k;w[9]=t;w[10]=q;w[11]=m;h.Hf?u.Rb=b:u.Rb=null;if(c.length)for(e=u.ym,e.length=c.length,b=0,a=c.length;b<a;b++)e[b]=c[b];this.ib=!1}};g.prototype.clear=function(b,a,e,d){var g=this.fc();g.type=7;g.Pb=0;g.P||(g.P=Wb());g.P[0]=b;g.P[1]=a;g.P[2]=e;g.P[3]=d;this.ib=!1};g.prototype.clearRect=function(b,a,e,d){if(!(0>e||0>d)){var g=this.fc();g.type=7;g.Pb=1;g.P||(g.P=Wb());g.P[0]=b;g.P[1]=a;g.P[2]=e;g.P[3]=
d;this.ib=!1}};g.prototype.Cq=function(){this.Id();this.i.flush()};var p=[],r={};g.prototype.ho=function(){p.length=0;r={}};g.prototype.gh=function(b,a,e,d){a=!!a;e=!!e;var g=b.src+","+a+","+e+(a?",undefined":""),f=null;if("undefined"!==typeof b.src&&r.hasOwnProperty(g))return f=r[g],f.wg++,f;this.Id();var l=this.i,v=ia(b.width)&&ia(b.height),f=l.createTexture();l.bindTexture(l.TEXTURE_2D,f);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=l.RGBA,k=l.RGBA,t=l.UNSIGNED_BYTE;if(d&&!this.Qd)switch(d){case 1:k=
n=l.RGB;break;case 2:t=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:t=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:k=n=l.RGB,t=l.UNSIGNED_SHORT_5_6_5}if(!v&&a){d=document.createElement("canvas");d.width=ja(b.width);d.height=ja(b.height);var q=d.getContext("2d");q.webkitImageSmoothingEnabled=e;q.mozImageSmoothingEnabled=e;q.msImageSmoothingEnabled=e;q.imageSmoothingEnabled=e;q.drawImage(b,0,0,b.width,b.height,0,0,d.width,d.height);l.texImage2D(l.TEXTURE_2D,0,n,k,t,d)}else l.texImage2D(l.TEXTURE_2D,0,n,k,t,b);a?
(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));e?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),v&&this.Fk?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,
l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.Sd=null;f.Ze=b.width;f.Ye=b.height;f.wg=1;f.uk=g;p.push(f);return r[g]=f};g.prototype.ed=function(b,a,e){var d;this.Id();var g=this.i;this.Qd&&(d=!1);var f=g.createTexture();g.bindTexture(g.TEXTURE_2D,f);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,b,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,e?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,e?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.Sd=null;f.Ze=b;f.Ye=a;p.push(f);return f};g.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.wg&&1<b.wg?b.wg--:(this.Id(),b===this.Sd&&(this.i.bindTexture(this.i.TEXTURE_2D,null),this.Sd=null),b===this.Td&&(this.i.activeTexture(this.i.TEXTURE1),this.i.bindTexture(this.i.TEXTURE_2D,
null),this.i.activeTexture(this.i.TEXTURE0),this.Td=null),Ca(p,b),"undefined"!==typeof b.uk&&delete r[b.uk],this.i.deleteTexture(b)))};g.prototype.sc=function(b){if(b!==this.mm){var a=this.fc();a.type=6;this.mm=a.Rb=b;this.ib=!1}};eb=g})();
(function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function k(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function d(c){if(c&&(c.getContext||c.dc)&&!c.c2runtime){c.c2runtime=this;var h=this;this.Ib=(this.Ug=/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.$b=!!c.dc;this.uf="undefined"!==typeof window.AppMobi||this.$b;this.jb=!!window.c2cocoonjs;this.Jb=!!window.c2ejecta;this.jb&&(CocoonJS.App.onSuspended.addEventListener(function(){h.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){h.setSuspended(!1)}));this.Jb&&(document.addEventListener("pagehide",function(){h.setSuspended(!0)}),document.addEventListener("pageshow",
function(){h.setSuspended(!1)}),document.addEventListener("resize",function(){h.setSize(window.innerWidth,window.innerHeight)}));this.K=this.$b||this.jb||this.Jb;this.Qd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.hl=/tizen/i.test(navigator.userAgent);this.fl=/android/i.test(navigator.userAgent)&&!this.hl&&!this.Qd;this.Ti=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Qd;this.kl=/ipad/i.test(navigator.userAgent);this.Si=this.Ti||this.kl||this.Jb;this.fq=this.Ti&&/os\s6/i.test(navigator.userAgent);this.Tg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Qd;this.el=/amazonwebappplatform/i.test(navigator.userAgent);this.Zp=/firefox/i.test(navigator.userAgent);this.aq=/safari/i.test(navigator.userAgent)&&!this.Tg&&!this.Qd;this.kd="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||
/nwjs/i.test(navigator.userAgent);this.il=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.cq=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.qe=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Vg=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Qi=this.il||this.cq||this.Vg;this.Yp=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.gl=this.fl&&!this.Tg&&
!this.Ug&&!this.Zp&&!this.el&&!this.K;this.devicePixelRatio=1;this.Rd=this.Ib||this.Ug||this.uf||this.jb||this.fl||this.Si||this.qe||this.Vg||this.Yp||this.hl||this.Jb;this.Rd||(this.Rd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.kd||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.kd=!0);this.canvas=c;this.zg=document.getElementById("c2canvasdiv");
this.M=this.m=this.i=null;this.wi="";this.Lg=!1;this.Zl=this.$l=0;this.canvas.oncontextmenu=function(c){c.preventDefault&&c.preventDefault();return!1};this.canvas.onselectstart=function(c){c.preventDefault&&c.preventDefault();return!1};this.$b&&(window.c2runtime=this);this.kd&&(window.ondragover=function(c){c.preventDefault();return!1},window.ondrop=function(c){c.preventDefault();return!1},require("nw.gui").App.clearCache());this.gl&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow",
"visible");this.width=c.width;this.height=c.height;this.D=this.width;this.C=this.height;this.Eg=this.width;this.Dg=this.height;this.Df=window.innerWidth;this.Cf=window.innerHeight;this.op=!1;this.R=!0;this.xf=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.j=[];this.ka=[];this.Wi={};this.ac=[];this.pi={};this.Ec=[];this.Se=[];this.Lh=[];this.Vn=[];this.Wn=[];this.Ed={};this.Ni=this.jd=!1;this.Jc=0;this.Pi=!1;this.Xb=[];this.Kc=this.La=this.dh=this.Aj="";this.gg=
this.Bm=!1;this.gi=this.Kf=this.fd=this.me=0;this.lg=1;this.ve=new Ua;this.Oh=new Ua;this.mh=this.Mg=this.hf=this.Me=this.Vd=this.vi=this.$g=0;this.$e=null;this.li=[];this.oi=[];this.Jg=-1;this.aj=[[]];this.Lj=this.ih=0;this.th(null);this.jf=this.Wl=this.Mf=0;this.hg=[];this.Ij=this.sj=-1;this.zf=!0;this.xe=0;this.wf=!1;this.Sq=0;this.Xe=null;this.fa=this.Rg=!1;this.Yl=new ba;this.dj=new ba;this.ej=new ba;this.wh=[];this.gc=new Xa([]);this.Ej=new Xa([]);this.Zc=[];this.Qg={};this.le={};this.je={};
this.Re={};this.rk={};this.yl=this.bh=this.kb=this.yb=this.xl=this.ah=this.Q=null;this.Pe=this.Ri=!1;this.xi=[null,null];this.Ld=0;this.Mc={};this.eg=this.Wd=null;this.Cm="";this.lh=[];this.Fq()}}function p(c){c.target.result.createObjectStore("saves",{keyPath:"slot"})}function r(c,h,a,f){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=p;b.onerror=f;b.onsuccess=function(b){b=b.target.result;b.onerror=f;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:c,data:h}).onsuccess=
a}}function b(c,h,a){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=p;f.onerror=a;f.onsuccess=function(f){f=f.target.result;f.onerror=a;var b=f.transaction(["saves"]).objectStore("saves").get(c);b.onsuccess=function(){b.result?h(b.result.data):h(null)}}}function a(){F("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 e(c){var h,a={};for(h in c)!c.hasOwnProperty(h)||
c[h]instanceof ba||c[h]&&"undefined"!==typeof c[h].os||(a[h]=c[h]);return a}d.prototype.Fq=function(){var c=this,h;this.qe?h=new ActiveXObject("Microsoft.XMLHTTP"):h=new XMLHttpRequest;var a="data.js";if(this.il||this.qe||this.Vg)a="data.json";h.open("GET",a,!0);var f=!1;if(!this.K&&"response"in h&&"responseType"in h)try{h.responseType="json",f="json"===h.responseType}catch(b){f=!1}if(!f&&"responseType"in h)try{h.responseType="text"}catch(e){}if("overrideMimeType"in h)try{h.overrideMimeType("application/json; charset=utf-8")}catch(m){}this.qe?
h.onreadystatechange=function(){4===h.readyState&&c.fh(JSON.parse(h.responseText))}:(h.onload=function(){if(f)c.fh(h.response);else if(c.Jb){var a=h.responseText,a=a.substr(a.indexOf("{"));c.fh(JSON.parse(a))}else c.fh(JSON.parse(h.responseText))},h.onerror=function(c){da("Error requesting "+a+":");da(c)});h.send()};d.prototype.Vp=function(){var c=this,h,a,f,b,e,m,d,l,n;this.ld=(!this.K||this.Jb)&&this.br&&!this.gl;0===this.Ka&&this.Si&&(this.ld=!1);this.devicePixelRatio=this.ld?window.devicePixelRatio||
window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Ga();a=!(!this.op&&(!this.Sh||this.kd||this.Qi||this.qe||this.Ug||this.Ib||this.el));0<this.Ka&&this.setSize(g(),k(),!0);try{this.Go&&(this.jb||this.Jb||!this.K)&&(h={alpha:a,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.i=this.canvas.getContext("webgl",h)||this.canvas.getContext("experimental-webgl",h))}catch(q){}if(this.i){this.i.getExtension("WEBGL_debug_renderer_info");this.K||(this.Ba=
document.createElement("canvas"),jQuery(this.Ba).appendTo(this.canvas.parentNode),this.Ba.oncontextmenu=function(){return!1},this.Ba.onselectstart=function(){return!1},this.Ba.width=this.Eg,this.Ba.height=this.Dg,jQuery(this.Ba).css({width:this.Eg+"px",height:this.Dg+"px"}),this.hm(),this.mj=this.Ba.getContext("2d"));this.m=new eb(this.i,this.Rd);this.m.Ie(this.canvas.width,this.canvas.height);this.m.Fk=0!==this.Bo;this.M=null;this.canvas.addEventListener("webglcontextlost",function(h){h.preventDefault();
c.oq();F("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){c.m.$k();c.m.Ie(c.m.width,c.m.height,!0);c.yb=null;c.kb=null;c.xi[0]=null;c.xi[1]=null;c.pq();c.R=!0;F("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);h=0;for(a=this.j.length;h<a;h++)for(e=this.j[h],f=0,b=e.q.length;f<b;f++)d=e.q[f],d.Fa=this.m.Di(d.id),this.Pe=this.Pe||this.m.Xf(d.Fa);h=0;for(a=this.ac.length;h<a;h++){l=this.ac[h];f=0;
for(b=l.q.length;f<b;f++)d=l.q[f],d.Fa=this.m.Di(d.id);f=0;for(b=l.u.length;f<b;f++)for(n=l.u[f],e=0,m=n.q.length;e<m;e++)d=n.q[e],d.Fa=this.m.Di(d.id),this.Pe=this.Pe||this.m.Xf(d.Fa)}}else{if(0<this.Ka&&this.$b){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.M=AppMobi.canvas.getContext("2d");try{this.M.samplingMode=this.L?"smooth":"sharp",this.M.globalScale=1,this.M.HTML5CompatibilityMode=!0,this.M.imageSmoothingEnabled=this.L}catch(v){}0!==
this.width&&0!==this.height&&(this.M.width=this.width,this.M.height=this.height)}this.M||(this.jb?(h={antialias:!!this.L,alpha:a},this.M=this.canvas.getContext("2d",h)):(h={alpha:a},this.M=this.canvas.getContext("2d",h)),this.M.webkitImageSmoothingEnabled=this.L,this.M.mozImageSmoothingEnabled=this.L,this.M.msImageSmoothingEnabled=this.L,this.M.imageSmoothingEnabled=this.L);this.mj=this.Ba=null}this.Hm=function(h){c.Rc(!1,h)};window==window.top||this.K||this.Qi||this.qe||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.jb&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(F("Reloading for continuous preview"),this.dh="__c2_continuouspreview",this.gg=!0),this.wq&&!this.Rd&&(jQuery(window).focus(function(){c.setSuspended(!1)}),jQuery(window).blur(function(){c.setSuspended(!0)})));this.K||(h=function(c){if(db(c)&&
document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(h){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",h):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",h):document.addEventListener("touchstart",h),document.addEventListener("mousedown",h));0===this.Ka&&this.ld&&1<this.devicePixelRatio&&this.setSize(this.ua,this.ta,!0);this.Nm();this.Pp();
this.go();this.S={}};d.prototype.setSize=function(c,h,a){var f=0,b=0,e=0,m=0,m=0,d=this.fq&&this.aq&&!navigator.standalone&&!this.K&&!this.Ib;d&&(h+=60);if(this.Df!==c||this.Cf!==h||a){this.Df=c;this.Cf=h;var l=this.Ka,n=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.wf)&&!this.Ib;if(n||0!==this.Ka||a)n&&0<this.Ld&&(l=this.Ld),a=this.devicePixelRatio,4<=l?(e=this.ua/this.ta,c/h>e?(e*=h,5===l?(m=e*a/this.ua,1<m?m=Math.floor(m):1>m&&(m=
1/Math.ceil(1/m)),e=this.ua*m/a,m=this.ta*m/a,f=(c-e)/2,b=(h-m)/2,c=e,h=m):(f=(c-e)/2,c=e)):(m=c/e,5===l?(m=m*a/this.ta,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),e=this.ua*m/a,m=this.ta*m/a,f=(c-e)/2,b=(h-m)/2,c=e):b=(h-m)/2,h=m),n&&!this.kd&&(b=f=0)):this.kd&&this.wf&&0===this.Lk&&(f=Math.floor((c-this.ua)/2),b=Math.floor((h-this.ta)/2),c=this.ua,h=this.ta),2>l&&(this.We=a),this.ld&&this.kl&&1<a&&(1024<=c&&(c=1023),1024<=h&&(h=1023)),this.Eg=Math.round(c),this.Dg=Math.round(h),this.width=Math.round(c*
a),this.height=Math.round(h*a),this.R=!0,this.$m?(this.D=this.width,this.C=this.height,this.Eb=!0):this.width<this.ua&&this.height<this.ta||1===l?(this.D=this.width,this.C=this.height,this.Eb=!0):(this.D=this.ua,this.C=this.ta,this.Eb=!1,2===l?(e=this.ua/this.ta,l=this.Df/this.Cf,l<e?this.D=this.C*l:l>e&&(this.C=this.D/l)):3===l&&(e=this.ua/this.ta,l=this.Df/this.Cf,l>e?this.D=this.C*l:l<e&&(this.C=this.D/l))),this.zg&&!this.K&&(jQuery(this.zg).css({width:Math.round(c)+"px",height:Math.round(h)+"px",
"margin-left":Math.floor(f)+"px","margin-top":Math.floor(b)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(c)+"px",height:Math.round(h)+"px"})),this.canvas&&(this.canvas.width=Math.round(c*a),this.canvas.height=Math.round(h*a),this.Jb?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(b)+"px",this.canvas.style.width=Math.round(c)+"px",this.canvas.style.height=Math.round(h)+"px"):this.ld&&!this.K&&(this.canvas.style.width=Math.round(c)+
"px",this.canvas.style.height=Math.round(h)+"px")),this.Ba&&(this.Ba.width=Math.round(c),this.Ba.height=Math.round(h),this.Ba.style.width=Math.round(c)+"px",this.Ba.style.height=Math.round(h)+"px"),this.m&&this.m.Ie(Math.round(c*a),Math.round(h*a)),this.$b&&this.M&&(this.M.width=Math.round(c),this.M.height=Math.round(h)),this.M&&(this.M.webkitImageSmoothingEnabled=this.L,this.M.mozImageSmoothingEnabled=this.L,this.M.msImageSmoothingEnabled=this.L,this.M.imageSmoothingEnabled=this.L),this.Nm(),this.K||
!d&&!this.Ti||window.setTimeout(function(){window.scrollTo(0,1)},100)}};d.prototype.Nm=function(){if(this.Zn&&0!==this.lj){var c="portrait";2===this.lj&&(c="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(c):screen.lockOrientation?screen.lockOrientation(c):screen.webkitLockOrientation?screen.webkitLockOrientation(c):screen.mozLockOrientation?screen.mozLockOrientation(c):screen.msLockOrientation&&screen.msLockOrientation(c)}};d.prototype.oq=function(){this.m.ho();this.Ri=
!0;var c,h,a;c=0;for(h=this.j.length;c<h;c++)a=this.j[c],a.jj&&a.jj()};d.prototype.pq=function(){this.Ri=!1;var c,h,a;c=0;for(h=this.j.length;c<h;c++)a=this.j[c],a.kj&&a.kj()};d.prototype.hm=function(){if(!this.K){var c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.wf)&&!this.Ib?jQuery(this.canvas).offset():jQuery(this.canvas).position();c.position="absolute";jQuery(this.Ba).css(c)}};var z=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(c){var h;if(c&&!this.xf)for(F("[Construct 2] Suspending"),this.xf=!0,-1!==this.sj&&z&&z(this.sj),-1!==this.Ij&&clearTimeout(this.Ij),c=0,h=this.hg.length;c<h;c++)this.hg[c](!0);else if(!c&&this.xf){F("[Construct 2] Resuming");this.xf=!1;this.$g=T();this.Vd=T();c=this.Kf=this.Mg=0;for(h=this.hg.length;c<h;c++)this.hg[c](!1);this.Rc(!1)}};d.prototype.Un=function(c){this.hg.push(c)};
d.prototype.Wc=function(c){return this.lh[c]};d.prototype.fh=function(c){c&&c.project||da("Project model unavailable");c=c.project;this.name=c[0];this.Kk=c[1];this.Ka=c[12];this.Lk=c[12];this.ua=c[10];this.ta=c[11];this.cm=this.ua/2;this.dm=this.ta/2;this.K&&!this.Jb&&(4<=c[12]||0===c[12])&&(F("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Lk=this.Ka=3);this.Sj=c[18];this.Ef=c[19];0===this.Ef&&(this.Wd=new Image,this.Wd.crossOrigin=
"anonymous",this.Wd.src="loading-logo.png");this.Mf=c[21];this.lh=ac();this.uc=new X(this);var h,a,f,b,e,m,d,l,n;h=0;for(a=c[2].length;h<a;h++)d=c[2][h],f=this.Wc(d[0]),fb(d,f.prototype),n=new f(this),n.Ah=d[1],n.md=d[2],n.Ul=d[9],n.T&&n.T(),this.plugins.push(n);this.lh=ac();h=0;for(a=c[3].length;h<a;h++){d=c[3][h];e=this.Wc(d[1]);n=null;f=0;for(b=this.plugins.length;f<b;f++)if(this.plugins[f]instanceof e){n=this.plugins[f];break}var g=new n.Ha(n);g.name=d[0];g.r=d[2];g.Li=d[3].slice(0);g.dr=d[3].length;
g.$n=d[4];g.pp=d[5];g.F=d[11];g.r?(g.kh=[],g.Fc=this.jf++,g.Y=null):(g.kh=null,g.Fc=-1,g.Y=[]);g.Kg=null;g.ne=null;g.Gk=null;g.Kb=!1;g.gb=null;d[6]?(g.Fj=d[6][0],g.Gj=d[6][1],g.Hj=d[6][2]):(g.Fj=null,g.Gj=0,g.Hj=0);d[7]?g.Ta=d[7]:g.Ta=null;g.index=h;g.c=[];g.Hg=[];g.wd=[new gb(g)];g.Cc=0;g.lc=null;g.mo=0;g.Le=!0;g.Mh=hb;g.tp=ib;g.yp=jb;g.O=kb;g.Yf=lb;g.sh=mb;g.ae=nb;g.Ng=ob;g.yi=pb;g.Bi=qb;g.Vb=rb;g.Rk=sb;g.Ag=new Ya(this.ua,this.ta);g.qg=!0;g.rg=!1;g.S={};g.toString=tb;g.ka=[];f=0;for(b=d[8].length;f<
b;f++){l=d[8][f];var q=this.Wc(l[1]),v=null;e=0;for(m=this.ka.length;e<m;e++)if(this.ka[e]instanceof q){v=this.ka[e];break}v||(v=new q(this),v.Vl=[],v.Ae=new ba,v.T&&v.T(),this.ka.push(v));-1===v.Vl.indexOf(g)&&v.Vl.push(g);e=new v.Ha(v,g);e.name=l[0];e.F=l[2];e.T();g.ka.push(e)}g.global=d[9];g.Oi=d[10];g.q=[];f=0;for(b=d[12].length;f<b;f++)g.q.push({id:d[12][f][0],name:d[12][f][1],Fa:-1,rb:!0,index:f});g.As=d[13];this.Sj&&!g.r&&!g.Oi&&n.md||g.T();g.name&&(this.types[g.name]=g);this.j.push(g);n.Ah&&
(f=new n.ia(g),f.uid=this.Mf++,f.km=this.Wl++,f.Nd=0,f.nf=ub,f.toString=vb,f.ha=d[14],f.T(),g.c.push(f),this.Mc[f.uid.toString()]=f)}h=0;for(a=c[4].length;h<a;h++)for(e=c[4][h],m=this.j[e[0]],f=1,b=e.length;f<b;f++)d=this.j[e[f]],d.Y.push(m),m.kh.push(d);h=0;for(a=c[27].length;h<a;h++){e=c[27][h];m=[];f=0;for(b=e.length;f<b;f++)m.push(this.j[e[f]]);f=0;for(b=m.length;f<b;f++)m[f].Kb=!0,m[f].gb=m}if(0<this.jf)for(h=0,a=this.j.length;h<a;h++)if(d=this.j[h],!d.r&&d.Y.length){d.Kg=Array(this.jf);d.ne=
Array(this.jf);d.Gk=Array(this.jf);g=[];f=v=q=l=0;for(b=d.Y.length;f<b;f++)for(n=d.Y[f],d.Kg[n.Fc]=l,l+=n.dr,d.ne[n.Fc]=q,q+=n.$n,d.Gk[n.Fc]=v,v+=n.pp,e=0,m=n.q.length;e<m;e++)g.push(ta({},n.q[e]));d.q=g.concat(d.q);f=0;for(b=d.q.length;f<b;f++)d.q[f].index=f}h=0;for(a=c[5].length;h<a;h++)d=c[5][h],f=new wb(this,d),this.Wi[f.name]=f,this.ac.push(f);h=0;for(a=c[6].length;h<a;h++)d=c[6][h],f=new xb(this,d),this.pi[f.name]=f,this.Ec.push(f);h=0;for(a=this.Ec.length;h<a;h++)this.Ec[h].ga();h=0;for(a=
this.Ec.length;h<a;h++)this.Ec[h].Oj();h=0;for(a=this.Lh.length;h<a;h++)this.Lh[h].ga();this.Lh.length=0;this.Xn=c[7];this.rd=c[9];this.We=1;this.Go=c[13];this.L=c[14];this.Sh=c[15];this.br=c[17];this.lj=c[20];this.Zn=0<this.lj;this.wq=c[22];this.Eb=this.$m=c[23];this.Bo=c[24];this.Aq=c[25];this.Bh=Date.now();this.lh.length=0;this.Vp()};var x=!1;d.prototype.Zm=function(c,h){c.cocoonLazyLoad=!0;c.onerror=function(h){x=c.tk=!0;console&&console.error&&console.error("Error loading image '"+c.src+"': ",
h)};this.Jb?c.src=h:c.src||("undefined"!==typeof XAPKReader?XAPKReader.get(h,function(h){c.src=h},function(a){x=c.tk=!0;console&&console.error&&console.error("Error extracting image '"+h+"' from expansion file: ",a)}):(c.crossOrigin="anonymous",c.src=h));this.Se.push(c)};d.prototype.np=function(c){var h,a;h=0;for(a=this.Se.length;h<a;h++)if(this.Se[h].io===c)return this.Se[h];return null};var f=0,l=!1;d.prototype.Pp=function(){this.Xe&&(f=this.Xe.xs(this.Xn))};d.prototype.qk=function(){var c=f,h=
0,a=0,b=!0,e,m,a=0;for(e=this.Se.length;a<e;a++){m=this.Se[a];var d=m.yk;if(!d||0>=d)d=5E4;c+=d;m.src&&(m.complete||m.loaded)&&!m.tk?h+=d:b=!1}b&&this.Aq&&this.Xe&&(l||(this.Xe.ys(),l=!0),a=this.Xe.ss(),h+=a,a<f&&(b=!1));this.be=0==c?0:h/c;return b};d.prototype.go=function(){if(this.M||this.m){var c=this.M||this.mj;this.Ba&&this.hm();this.be=0;this.wl=-1;if(this.qk())this.Qp();else{var h=Date.now()-this.Bh;if(c){var a=this.width,f=this.height,b=this.devicePixelRatio;this.Ba&&(a=this.Eg,f=this.Dg,
b=1);if(3!==this.Ef&&(this.jb||500<=h&&this.wl!=this.be)){c.clearRect(0,0,a,f);var h=a/2,f=f/2,a=0===this.Ef&&this.Wd.complete,e=40*b,m=0,d=80*b,l;a&&(d=this.Wd.width*b,l=this.Wd.height*b,e=d/2,m=l/2,c.drawImage(this.Wd,N(h-e),N(f-m),d,l));1>=this.Ef?(h=N(h-e)+.5,f=N(f+(m+(a?12*b:0)))+.5,c.fillStyle=x?"red":"DodgerBlue",c.fillRect(h,f,Math.floor(d*this.be),6*b),c.strokeStyle="black",c.strokeRect(h,f,d,6*b),c.strokeStyle="white",c.strokeRect(h-1*b,f-1*b,d+2*b,8*b)):2===this.Ef&&(c.font=this.Jb?"12pt ArialMT":
"12pt Arial",c.fillStyle=x?"#f00":"#999",c.zs="middle",b=Math.round(100*this.be)+"%",a=c.measureText?c.measureText(b):null,c.fillText(b,h-(a?a.width:0)/2,f))}this.wl=this.be}setTimeout(function(c){return function(){c.go()}}(this),this.jb?10:100)}}};d.prototype.Qp=function(){this.Ba&&(this.canvas.parentNode.removeChild(this.Ba),this.Ba=this.mj=null);this.Bh=Date.now();this.Vd=T();var c,h,a;if(this.Sj)for(c=0,h=this.j.length;c<h;c++)a=this.j[c],a.r||a.Oi||!a.la.md||a.T();else this.zf=!1;c=0;for(h=this.ac.length;c<
h;c++)this.ac[c].jo();2<=this.Ka&&(c=this.ua/this.ta,h=this.width/this.height,this.We=2!==this.Ka&&h>c||2===this.Ka&&h<c?this.height/this.ta:this.width/this.ua);this.Kk?this.Wi[this.Kk].Cj():this.ac[0].Cj();this.Sj||(this.xe=1,this.trigger(X.prototype.e.Yj,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();c=0;for(h=this.j.length;c<h;c++)a=this.j[c],a.nq&&a.nq();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):
this.Rc(!1);this.$b&&AppMobi.webview.execute("onGameReady();")};var v=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Rc=function(c,h,a){if(this.Q){var f=T();if(a||!this.xf||c){c||(v?this.sj=v(this.Hm):this.Ij=setTimeout(this.Hm,this.Rd?1:16));h=h||f;var b=this.Ka;((a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.Ib)||this.wf)&&0<this.Ld&&(b=this.Ld);0<b&&(!this.Si||window.self!==window.top)&&(b=window.innerHeight,this.Df===window.innerWidth&&this.Cf===b||this.setSize(g(),k()));this.K||(a?(this.Lg||(this.wi=jQuery(this.canvas).css("margin")||"0",this.Lg=!0),this.Tg||this.kd||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.Lg?(this.Tg||this.kd||jQuery(this.canvas).css("margin",
this.wi),this.wi="",this.Lg=!1,0===this.Ka&&this.setSize(Math.round(this.$l/this.devicePixelRatio),Math.round(this.Zl/this.devicePixelRatio),!0)):(this.$l=this.width,this.Zl=this.height));this.zf&&(a=this.qk(),this.xe=this.be,a&&(this.zf=!1,this.be=1,this.trigger(X.prototype.e.Yj,null)));this.iq(h);!this.R&&!this.jb||this.Ri||this.gg||c||(this.R=!1,this.m?this.hb():this.Dc(),this.eg&&(this.canvas&&this.canvas.toDataURL&&(this.Cm=this.canvas.toDataURL(this.eg[0],this.eg[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Cm),
this.trigger(X.prototype.e.rn,null)),this.eg=null));this.ts||(this.Me++,this.hf++,this.Mg++);this.Kf+=T()-f}}};d.prototype.iq=function(c){var h,a,f,b,e,m,d,l;1E3<=c-this.Vd&&(this.Vd+=1E3,1E3<=c-this.Vd&&(this.Vd=c),this.vi=this.Mg,this.Mg=0,this.gi=this.Kf,this.Kf=0);0!==this.$g&&(h=c-this.$g,0>h&&(h=0),this.fd=h/1E3,.5<this.fd?this.fd=0:.1<this.fd&&(this.fd=.1));this.$g=c;this.me=this.fd*this.lg;this.ve.add(this.me);this.Oh.add(this.fd);c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||
!!document.msFullscreenElement||this.wf)&&!this.Ib;2<=this.Ka||c&&0<this.Ld?(h=this.ua/this.ta,a=this.width/this.height,f=this.Ka,c&&0<this.Ld&&(f=this.Ld),this.We=2!==f&&a>h||2===f&&a<h?this.height/this.ta:this.width/this.ua,this.Q&&(this.Q.qm(this.Q.scrollX),this.Q.rm(this.Q.scrollY))):this.We=this.ld?this.devicePixelRatio:1;this.Ga();this.Jc++;this.uc.Iq();this.Jc--;this.Ga();this.Jc++;a=this.Yl.ic();c=0;for(h=a.length;c<h;c++)a[c].us();c=0;for(h=this.j.length;c<h;c++)if(m=this.j[c],!m.r&&(m.ka.length||
m.Y.length))for(a=0,f=m.c.length;a<f;a++)for(d=m.c[a],b=0,e=d.p.length;b<e;b++)d.p[b].Rc();c=0;for(h=this.j.length;c<h;c++)if(m=this.j[c],!m.r&&(m.ka.length||m.Y.length))for(a=0,f=m.c.length;a<f;a++)for(d=m.c[a],b=0,e=d.p.length;b<e;b++)l=d.p[b],l.zq&&l.zq();a=this.dj.ic();c=0;for(h=a.length;c<h;c++)a[c].Rc();this.Jc--;this.Rp();for(c=0;this.$e&&10>c++;)this.Ck(this.$e);c=0;for(h=this.Ec.length;c<h;c++)this.Ec[c].Hi=!1;this.Q.Jd&&this.Q.Jd.ma();this.wh.length=0;this.Jc++;c=0;for(h=this.j.length;c<
h;c++)if(m=this.j[c],!m.r&&(m.ka.length||m.Y.length))for(a=0,f=m.c.length;a<f;a++)for(d=m.c[a],b=0,e=d.p.length;b<e;b++)l=d.p[b],l.Hh&&l.Hh();a=this.ej.ic();c=0;for(h=a.length;c<h;c++)a[c].Hh();this.Jc--};d.prototype.Ck=function(c){var h=this.Q;this.Q.Tq();var a,f,b,e,m,d,l;if(this.m)for(a=0,f=this.j.length;a<f;a++)m=this.j[a],m.r||!m.Nj||m.global&&0!==m.c.length||-1!==c.sf.indexOf(m)||m.Nj();h==c&&(this.uc.ob.length=0);this.wh.length=0;c.Cj();a=0;for(f=this.j.length;a<f;a++)if(m=this.j[a],m.global||
m.la.Ah)for(c=0,h=m.c.length;c<h;c++)if(d=m.c[c],d.ij&&d.ij(),d.p)for(b=0,e=d.p.length;b<e;b++)l=d.p[b],l.ij&&l.ij();this.R=!0;this.Ga()};d.prototype.Im=function(c){this.dj.add(c)};d.prototype.Vq=function(c){this.ej.add(c)};d.prototype.Pk=function(c){return c&&-1!==c.Lf?this.fd*c.Lf:this.me};d.prototype.Dc=function(){this.Q.Dc(this.M);this.$b&&this.M.present()};d.prototype.hb=function(){this.Q.hb(this.m);this.m.Cq()};d.prototype.Sn=function(c){c&&this.li.push(c)};d.prototype.Uk=function(c){c=c.toString();
return this.Mc.hasOwnProperty(c)?this.Mc[c]:null};var n=[];d.prototype.fe=function(c){var h,a;h=c.type.name;var f=null;if(this.Ed.hasOwnProperty(h)){if(f=this.Ed[h],f.contains(c))return}else f=n.length?n.pop():new ba,this.Ed[h]=f;f.add(c);this.jd=!0;if(c.Kb)for(h=0,a=c.siblings.length;h<a;h++)this.fe(c.siblings[h]);this.Ni&&f.Qe.push(c);this.Jc++;this.trigger(Object.getPrototypeOf(c.type.la).e.un,c);this.Jc--};d.prototype.Ga=function(){if(this.jd){var c,h,a,f,b,e;this.Ni=!0;a=0;for(b=this.Xb.length;a<
b;++a)for(c=this.Xb[a],h=c.type,h.c.push(c),f=0,e=h.Y.length;f<e;++f)h.Y[f].c.push(c),h.Y[f].Le=!0;this.Xb.length=0;this.kn();Qa(this.Ed);this.jd=this.Ni=!1}};d.prototype.kn=function(){for(var c in this.Ed)this.Ed.hasOwnProperty(c)&&this.dn(this.Ed[c])};d.prototype.dn=function(c){var h=c.ic(),a=h[0].type,f,b,e,m,d,l;Ra(a.c,c);a.Le=!0;0===a.c.length&&(a.rg=!1);f=0;for(b=a.Y.length;f<b;++f)l=a.Y[f],Ra(l.c,c),l.Le=!0;f=0;for(b=this.uc.ob.length;f<b;++f)if(d=this.uc.ob[f],d.nb.hasOwnProperty(a.index)&&
Ra(d.nb[a.index].Pd,c),!a.r)for(e=0,m=a.Y.length;e<m;++e)l=a.Y[e],d.nb.hasOwnProperty(l.index)&&Ra(d.nb[l.index].Pd,c);if(d=h[0].d){if(d.hc)for(e=d.c,f=0,b=e.length;f<b;++f)m=e[f],c.contains(m)&&(m.X(),d.lb.update(m,m.cb,null),m.cb.set(0,0,-1,-1));Ra(d.c,c);d.$f(0)}for(f=0;f<h.length;++f)this.cn(h[f],a);c.clear();n.push(c);this.R=!0};d.prototype.cn=function(c,h){var a,f,b;a=0;for(f=this.li.length;a<f;++a)this.li[a](c);c.dd&&h.Ag.update(c,c.dd,null);(a=c.d)&&a.Ee(c,!0);if(c.p)for(a=0,f=c.p.length;a<
f;++a)b=c.p[a],b.Nf&&b.Nf(),b.behavior.Ae.remove(c);this.Yl.remove(c);this.dj.remove(c);this.ej.remove(c);c.Nf&&c.Nf();this.Mc.hasOwnProperty(c.uid.toString())&&delete this.Mc[c.uid.toString()];this.mh--;100>h.Hg.length&&h.Hg.push(c)};var y=[];d.prototype.Dd=function(c,h,a,f,b,e){var m,d,l,g;if(!c)return null;var n=this.j[c[1]],q=n.la.md;if(this.zf&&q&&!n.Oi||q&&!this.m&&11===c[0][11])return null;var v=h;q||(h=null);var k;n.Hg.length?(k=n.Hg.pop(),k.qc=!0,n.la.ia.call(k,n)):(k=new n.la.ia(n),k.qc=
!1);!a||e||this.Mc.hasOwnProperty(c[2].toString())?k.uid=this.Mf++:k.uid=c[2];this.Mc[k.uid.toString()]=k;k.km=this.Wl++;k.Nd=n.c.length;m=0;for(d=this.Xb.length;m<d;++m)this.Xb[m].type===n&&k.Nd++;k.nf=ub;k.toString=vb;l=c[3];if(k.qc)Qa(k.S);else{k.S={};if("undefined"!==typeof cr_is_preview)for(k.cl=[],k.cl.length=l.length,m=0,d=l.length;m<d;m++)k.cl[m]=l[m][1];k.pa=[];k.pa.length=l.length}m=0;for(d=l.length;m<d;m++)k.pa[m]=l[m][0];if(q){var t=c[0];k.x=ea(f)?t[0]:f;k.y=ea(b)?t[1]:b;k.z=t[2];k.width=
t[3];k.height=t[4];k.depth=t[5];k.g=t[6];k.opacity=t[7];k.Za=t[8];k.$a=t[9];k.Ua=t[10];m=t[11];!this.m&&n.q.length&&(k.Ua=m);k.bf=$a(k.Ua);this.i&&ab(k,k.Ua,this.i);if(k.qc){m=0;for(d=t[12].length;m<d;m++)for(l=0,g=t[12][m].length;l<g;l++)k.ba[m][l]=t[12][m][l];k.ja.set(0,0,0,0);k.dd.set(0,0,-1,-1);k.cb.set(0,0,-1,-1);k.tb.ag(k.ja);k.Yh.length=0}else{k.ba=t[12].slice(0);m=0;for(d=k.ba.length;m<d;m++)k.ba[m]=t[12][m].slice(0);k.G=[];k.Xc=[];k.Xc.length=n.q.length;k.ja=new O(0,0,0,0);k.dd=new O(0,0,
-1,-1);k.cb=new O(0,0,-1,-1);k.tb=new sa;k.Yh=[];k.da=yb;k.ns=zb;k.Ia=Ab;k.X=Bb;k.$q=Cb;k.Wm=Db;k.Gb=Eb}k.kg=!1;k.Yq=0;k.Xq=0;k.Wq=null;14===t.length&&(k.kg=!0,k.Yq=t[13][0],k.Xq=t[13][1],k.Wq=t[13][2]);m=0;for(d=n.q.length;m<d;m++)k.Xc[m]=!0;k.Uc=Fb;k.Uc();k.Xm=!!k.G.length;k.Xh=!0;k.ai=!0;n.qg=!0;k.visible=!0;k.Lf=-1;k.d=h;k.jc=h.c.length;"undefined"===typeof k.J&&(k.J=null);this.R=k.Cd=!0}var p;m=y.length=0;for(d=n.Y.length;m<d;m++)y.push.apply(y,n.Y[m].ka);y.push.apply(y,n.ka);if(k.qc)for(m=0,
d=y.length;m<d;m++){var z=y[m];p=k.p[m];p.qc=!0;z.behavior.ia.call(p,z,k);t=c[4][m];l=0;for(g=t.length;l<g;l++)p.ha[l]=t[l];p.T();z.behavior.Ae.add(k)}else for(k.p=[],m=0,d=y.length;m<d;m++)z=y[m],p=new z.behavior.ia(z,k),p.qc=!1,p.ha=c[4][m].slice(0),p.T(),k.p.push(p),z.behavior.Ae.add(k);t=c[5];if(k.qc)for(m=0,d=t.length;m<d;m++)k.ha[m]=t[m];else k.ha=t.slice(0);this.Xb.push(k);this.jd=!0;h&&(h.Ve(k,!0),1!==h.ab||1!==h.bb)&&(n.rg=!0);this.mh++;if(n.Kb){if(k.Kb=!0,k.qc?k.siblings.length=0:k.siblings=
[],!a&&!e){m=0;for(d=n.gb.length;m<d;m++)if(n.gb[m]!==n){if(!n.gb[m].lc)return null;k.siblings.push(this.Dd(n.gb[m].lc,v,!1,q?k.x:f,q?k.y:b,!0))}m=0;for(d=k.siblings.length;m<d;m++)for(k.siblings[m].siblings.push(k),l=0;l<d;l++)m!==l&&k.siblings[m].siblings.push(k.siblings[l])}}else k.Kb=!1,k.siblings=null;k.T();m=0;for(d=k.p.length;m<d;m++)k.p[m].yq&&k.p[m].yq();return k};d.prototype.lf=function(c){var h,a;h=0;for(a=this.Q.u.length;h<a;h++){var f=this.Q.u[h];if(cb(f.name,c))return f}return null};
d.prototype.Hc=function(c){c=N(c);0>c&&(c=0);c>=this.Q.u.length&&(c=this.Q.u.length-1);return this.Q.u[c]};d.prototype.fi=function(c){var h,a;h=0;for(a=c.length;h<a;h++)c[h].O().U=!0};d.prototype.Yf=function(c){var h,a;h=0;for(a=c.length;h<a;h++)c[h].Yf()};d.prototype.sh=function(c){var h,a;h=0;for(a=c.length;h<a;h++)c[h].sh()};d.prototype.ae=function(c){var h,a;h=0;for(a=c.length;h<a;h++)c[h].ae()};d.prototype.Tm=function(c){if(c.qg){var h,a,f=c.c;h=0;for(a=f.length;h<a;++h)f[h].Wm();f=this.Xb;h=
0;for(a=f.length;h<a;++h)f[h].type===c&&f[h].Wm();c.qg=!1}};d.prototype.sp=function(c,h,a,f){var b,m,e=c?1!==c.ab||1!==c.bb:!1;if(h.r)for(c=0,b=h.kh.length;c<b;++c)m=h.kh[c],e||m.rg?Aa(f,m.c):(this.Tm(m),m.Ag.vh(a,f));else e||h.rg?Aa(f,h.c):(this.Tm(h),h.Ag.vh(a,f))};d.prototype.ig=function(c,h,a){var f=c.O(),b,m,e,d,l,n;if(f.U)for(f.U=!1,b=f.c.length=0,d=c.c.length;b<d;b++)e=c.c[b],e.X(),l=e.d.ea(h,a,!0),n=e.d.ea(h,a,!1),e.Ia(l,n)&&f.c.push(e);else{b=m=0;for(d=f.c.length;b<d;b++)e=f.c[b],e.X(),l=
e.d.ea(h,a,!0),n=e.d.ea(h,a,!1),e.Ia(l,n)&&(f.c[m]=f.c[b],m++);f.c.length=m}c.Vb();return f.Gi()};d.prototype.Uq=function(c,h){if(!(c&&h&&c!==h&&c.Cd&&h.Cd))return!1;c.X();h.X();var a=c.d,f=h.d,b,m,e,d,l,n,g,k;if(a===f||a.ab===f.ab&&f.bb===f.bb&&a.scale===f.scale&&a.g===f.g&&a.Qa===f.Qa){if(!c.ja.Wp(h.ja)||!c.tb.dl(h.tb)||c.kg&&h.kg)return!1;if(c.kg)return this.Gm(c,h);if(h.kg)return this.Gm(h,c);g=c.J&&!c.J.re();b=h.J&&!h.J.re();if(!g&&!b)return!0;g?(c.J.ke(c.width,c.height,c.g),g=c.J):(this.gc.Je(c.tb,
c.x,c.y,c.width,c.height),g=this.gc);b?(h.J.ke(h.width,h.height,h.g),k=h.J):(this.gc.Je(h.tb,h.x,h.y,h.width,h.height),k=this.gc);return g.tf(k,h.x-c.x,h.y-c.y)}g=c.J&&!c.J.re();b=h.J&&!h.J.re();g?(c.J.ke(c.width,c.height,c.g),this.gc.wm(c.J)):this.gc.Je(c.tb,c.x,c.y,c.width,c.height);g=this.gc;b?(h.J.ke(h.width,h.height,h.g),this.Ej.wm(h.J)):this.Ej.Je(h.tb,h.x,h.y,h.width,h.height);k=this.Ej;b=0;for(m=g.ec;b<m;b++)e=2*b,d=e+1,l=g.va[e],n=g.va[d],g.va[e]=a.qa(l+c.x,n+c.y,!0),g.va[d]=a.qa(l+c.x,n+
c.y,!1);g.X();b=0;for(m=k.ec;b<m;b++)e=2*b,d=e+1,l=k.va[e],n=k.va[d],k.va[e]=f.qa(l+h.x,n+h.y,!0),k.va[d]=f.qa(l+h.x,n+h.y,!1);k.X();return g.tf(k,0,0)};var t=new sa;new O(0,0,0,0);var q=[];d.prototype.Gm=function(c,h){var a,f,b,e,m=h.ja,d=c.x,l=c.y;c.qs(m,q);var n=h.J&&!h.J.re();a=0;for(f=q.length;a<f;++a)if(b=q[a],e=b.vs,m.Xp(e,d,l)&&(t.ag(e),t.offset(d,l),t.dl(h.tb)))if(n)if(h.J.ke(h.width,h.height,h.g),b.pj){if(b.pj.tf(h.J,h.x-(d+e.left),h.y-(l+e.top)))return q.length=0,!0}else{if(this.gc.Je(t,
0,0,e.right-e.left,e.bottom-e.top),this.gc.tf(h.J,h.x,h.y))return q.length=0,!0}else if(b.pj){if(this.gc.Je(h.tb,0,0,h.width,h.height),b.pj.tf(this.gc,-(d+e.left),-(l+e.top)))return q.length=0,!0}else return q.length=0,!0;q.length=0;return!1};d.prototype.Om=function(c,h){if(!h)return!1;var a,f,b,e,m;a=0;for(f=c.ka.length;a<f;a++)if(c.ka[a].behavior instanceof h)return!0;if(!c.r)for(a=0,f=c.Y.length;a<f;a++)for(m=c.Y[a],b=0,e=m.ka.length;b<e;b++)if(m.ka[b].behavior instanceof h)return!0;return!1};
d.prototype.Pm=function(c){return this.Om(c,Tb.Ir)};d.prototype.Mj=function(c){return this.Om(c,Tb.Jr)};d.prototype.eo=function(c,h){var a,f,b;a=0;for(f=this.wh.length;a<f;a++)if(b=this.wh[a],b[0]==c&&b[1]==h||b[0]==h&&b[1]==c)return!0;return!1};var m=-1;d.prototype.trigger=function(c,a,f){if(!this.Q)return!1;var b=this.Q.Jd;if(!b)return!1;var e=!1,d,l,n;m++;var g=b.ki;l=0;for(n=g.length;l<n;++l)d=this.Lm(c,a,g[l],f),e=e||d;d=this.Lm(c,a,b,f);m--;return e||d};d.prototype.Lm=function(c,a,f,b){var e=
!1,m,d,l,n;if(a)for(l=this.Kj(c,a,a.type.name,f,b),e=e||l,n=a.type.Y,m=0,d=n.length;m<d;++m)l=this.Kj(c,a,n[m].name,f,b),e=e||l;else l=this.Kj(c,a,"system",f,b),e=e||l;return e};d.prototype.Kj=function(c,a,f,b,e){var m,d=!1,l=!1,l="undefined"!==typeof e,n=(l?b.Ik:b.Mm)[f];if(!n)return d;var g=null;b=0;for(m=n.length;b<m;++b)if(n[b].method==c){g=n[b].gf;break}if(!g)return d;var k;l?k=g[e]:k=g;if(!k)return null;b=0;for(m=k.length;b<m;b++)c=k[b][0],e=k[b][1],l=this.lp(a,f,c,e),d=d||l;return d};d.prototype.lp=
function(c,a,f,b){var e,d,l=!1;this.Lj++;var n=this.Ra().Db;n&&this.Yf(n.vd);var g=1<this.Lj;this.Yf(f.vd);g&&this.Eq();var k=this.th(f);k.Db=f;c&&(e=this.types[a].O(),e.U=!1,e.c.length=1,e.c[0]=c,this.types[a].Vb());c=!0;if(f.parent){a=k.Fm;for(e=f.parent;e;)a.push(e),e=e.parent;a.reverse();e=0;for(d=a.length;e<d;e++)if(!a[e].Kq()){c=!1;break}}c&&(this.hf++,f.cc?f.Jq(b):f.ma(),l=l||k.Ud);this.qh();g&&this.xq();this.ae(f.vd);n&&this.ae(n.vd);this.jd&&0===this.Jc&&0===m&&!this.Pi&&this.Ga();this.Lj--;
return l};d.prototype.Nk=function(){var c=this.Ra();return c.Db.ya[c.xa]};d.prototype.Eq=function(){this.ih++;this.ih>=this.aj.length&&this.aj.push([])};d.prototype.xq=function(){this.ih--};d.prototype.Ok=function(){return this.aj[this.ih]};d.prototype.th=function(c){this.Jg++;this.Jg>=this.oi.length&&this.oi.push(new Gb);var a=this.Ra();a.reset(c);return a};d.prototype.qh=function(){this.Jg--};d.prototype.Ra=function(){return this.oi[this.Jg]};d.prototype.Qk=function(c,a){for(var f,b,e,m,d,l;a;){f=
0;for(b=a.Qb.length;f<b;f++)if(l=a.Qb[f],l instanceof Hb&&cb(c,l.name))return l;a=a.parent}f=0;for(b=this.Ec.length;f<b;f++)for(d=this.Ec[f],e=0,m=d.gd.length;e<m;e++)if(l=d.gd[e],l instanceof Hb&&cb(c,l.name))return l;return null};d.prototype.Sk=function(c){var a,f;a=0;for(f=this.ac.length;a<f;a++)if(this.ac[a].F===c)return this.ac[a];return null};d.prototype.Pg=function(c){var a,f;a=0;for(f=this.j.length;a<f;a++)if(this.j[a].F===c)return this.j[a];return null};d.prototype.up=function(c){var a,f;
a=0;for(f=this.Zc.length;a<f;a++)if(this.Zc[a].F===c)return this.Zc[a];return null};d.prototype.no=function(c,a){this.eg=[c,a];this.R=!0};d.prototype.Rp=function(){var c=this,f=this.Aj,e=this.Kc,m=this.dh,d=!1;this.Bm&&(d=!0,f="__c2_continuouspreview",this.Bm=!1);if(f.length){this.Ga();e=this.Oq();if(window.indexedDB&&!this.jb)r(f,e,function(){F("Saved state to IndexedDB storage ("+e.length+" bytes)");c.Kc=e;c.trigger(X.prototype.e.Rh,null);c.Kc="";d&&a()},function(b){try{localStorage.setItem("__c2save_"+
f,e),F("Saved state to WebStorage ("+e.length+" bytes)"),c.Kc=e,c.trigger(X.prototype.e.Rh,null),c.Kc="",d&&a()}catch(m){F("Failed to save game state: "+b+"; "+m)}});else try{localStorage.setItem("__c2save_"+f,e),F("Saved state to WebStorage ("+e.length+" bytes)"),c.Kc=e,this.trigger(X.prototype.e.Rh,null),c.Kc="",d&&a()}catch(l){F("Error saving to WebStorage: "+l)}this.La=this.dh=this.Aj=""}if(m.length){if(window.indexedDB&&!this.jb)b(m,function(a){a?(c.La=a,F("Loaded state from IndexedDB storage ("+
c.La.length+" bytes)")):(c.La=localStorage.getItem("__c2save_"+m)||"",F("Loaded state from WebStorage ("+c.La.length+" bytes)"));c.gg=!1;c.La.length||c.trigger(X.prototype.e.Qh,null)},function(){c.La=localStorage.getItem("__c2save_"+m)||"";F("Loaded state from WebStorage ("+c.La.length+" bytes)");c.gg=!1;c.La.length||c.trigger(X.prototype.e.Qh,null)});else{try{this.La=localStorage.getItem("__c2save_"+m)||"",F("Loaded state from WebStorage ("+this.La.length+" bytes)")}catch(n){this.La=""}this.gg=!1;
c.La.length||c.trigger(X.prototype.e.Qh,null)}this.Aj=this.dh=""}this.La.length&&(this.Ga(),this.hq(this.La),this.Kc=this.La,this.trigger(X.prototype.e.Bn,null),this.La=this.Kc="")};d.prototype.Oq=function(){var c,a,f,b,m,d,l,n={c2save:!0,version:1,rt:{time:this.ve.Na,walltime:this.Oh.Na,timescale:this.lg,tickcount:this.Me,execcount:this.hf,next_uid:this.Mf,running_layout:this.Q.F,start_time_offset:Date.now()-this.Bh},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};c=0;for(a=this.j.length;c<
a;c++)if(m=this.j[c],!m.r&&!this.Pm(m)){d={instances:[]};Pa(m.S)&&(d.ex=e(m.S));f=0;for(b=m.c.length;f<b;f++)d.instances.push(this.zj(m.c[f]));n.types[m.F.toString()]=d}c=0;for(a=this.ac.length;c<a;c++)f=this.ac[c],n.layouts[f.F.toString()]=f.Ob();b=n.events.groups;c=0;for(a=this.Zc.length;c<a;c++)f=this.Zc[c],b[f.F.toString()]=this.Qg[f.pf].of;a=n.events.cnds;for(l in this.le)this.le.hasOwnProperty(l)&&(c=this.le[l],Pa(c.S)&&(a[l]={ex:e(c.S)}));a=n.events.acts;for(l in this.je)this.je.hasOwnProperty(l)&&
(c=this.je[l],Pa(c.S)&&(a[l]={ex:c.S}));a=n.events.vars;for(l in this.Re)this.Re.hasOwnProperty(l)&&(c=this.Re[l],c.Wg||c.parent&&!c.yf||(a[l]=c.data));n.system=this.uc.Ob();return JSON.stringify(n)};d.prototype.lm=function(){var c,a,f,b,e,m;this.Mc={};c=0;for(a=this.j.length;c<a;c++)if(f=this.j[c],!f.r)for(b=0,e=f.c.length;b<e;b++)m=f.c[b],this.Mc[m.uid.toString()]=m};d.prototype.hq=function(c){c=JSON.parse(c);if(c.c2save&&!(1<c.version)){var a=c.rt;this.ve.reset();this.ve.Na=a.time;this.Oh.reset();
this.Oh.Na=a.walltime||0;this.lg=a.timescale;this.Me=a.tickcount;this.hf=a.execcount;this.Bh=Date.now()-a.start_time_offset;var f=a.running_layout;if(f!==this.Q.F)if(f=this.Sk(f))this.Ck(f);else return;var b,e,m,d,l,n,g;n=c.types;for(e in n)if(n.hasOwnProperty(e)&&(d=this.Pg(parseInt(e,10)))&&!d.r&&!this.Pm(d)){n[e].ex?d.S=n[e].ex:Qa(d.S);l=d.c;m=n[e].instances;f=0;for(b=la(l.length,m.length);f<b;f++)this.eh(l[f],m[f]);f=m.length;for(b=l.length;f<b;f++)this.fe(l[f]);f=l.length;for(b=m.length;f<b;f++){l=
null;if(d.la.md&&(l=this.Q.Og(m[f].w.l),!l))continue;l=this.Dd(d.lc,l,!1,0,0,!0);this.eh(l,m[f])}d.Le=!0}this.Ga();this.lm();b=c.layouts;for(e in b)b.hasOwnProperty(e)&&(f=this.Sk(parseInt(e,10)))&&f.oc(b[e]);b=c.events.groups;for(e in b)b.hasOwnProperty(e)&&(f=this.up(parseInt(e,10)))&&this.Qg[f.pf]&&this.Qg[f.pf].um(b[e]);f=c.events.cnds;for(e in f)f.hasOwnProperty(e)&&this.le.hasOwnProperty(e)&&(this.le[e].S=f[e].ex);f=c.events.acts;for(e in f)f.hasOwnProperty(e)&&this.je.hasOwnProperty(e)&&(this.je[e].S=
f[e].ex);f=c.events.vars;for(e in f)f.hasOwnProperty(e)&&this.Re.hasOwnProperty(e)&&(this.Re[e].data=f[e]);this.Mf=a.next_uid;this.uc.oc(c.system);f=0;for(b=this.j.length;f<b;f++)if(d=this.j[f],!d.r)for(e=0,c=d.c.length;e<c;e++){l=d.c[e];if(d.Kb)for(n=l.nf(),a=l.siblings.length=0,m=d.gb.length;a<m;a++)g=d.gb[a],d!==g&&l.siblings.push(g.c[n]);l.Yc&&l.Yc();if(l.p)for(a=0,m=l.p.length;a<m;a++)n=l.p[a],n.Yc&&n.Yc()}this.R=!0}};d.prototype.zj=function(c,a){var f,b,m,d,l;d=c.type;m=d.la;var n={};a?n.c2=
!0:n.uid=c.uid;Pa(c.S)&&(n.ex=e(c.S));if(c.pa&&c.pa.length)for(n.ivs={},f=0,b=c.pa.length;f<b;f++)n.ivs[c.type.Li[f].toString()]=c.pa[f];if(m.md){m={x:c.x,y:c.y,w:c.width,h:c.height,l:c.d.F,zi:c.Gb()};0!==c.g&&(m.a=c.g);1!==c.opacity&&(m.o=c.opacity);.5!==c.Za&&(m.hX=c.Za);.5!==c.$a&&(m.hY=c.$a);0!==c.Ua&&(m.bm=c.Ua);c.visible||(m.v=c.visible);c.Cd||(m.ce=c.Cd);-1!==c.Lf&&(m.mts=c.Lf);if(d.q.length)for(m.fx=[],f=0,b=d.q.length;f<b;f++)l=d.q[f],m.fx.push({name:l.name,active:c.Xc[l.index],params:c.ba[l.index]});
n.w=m}if(c.p&&c.p.length)for(n.behs={},f=0,b=c.p.length;f<b;f++)d=c.p[f],d.Ob&&(n.behs[d.type.F.toString()]=d.Ob());c.Ob&&(n.data=c.Ob());return n};d.prototype.wp=function(c,a){var f,b;f=0;for(b=c.Li.length;f<b;f++)if(c.Li[f]===a)return f;return-1};d.prototype.rp=function(c,a){var f,b;f=0;for(b=c.p.length;f<b;f++)if(c.p[f].type.F===a)return f;return-1};d.prototype.eh=function(c,a,f){var b,e,m,d,l;l=c.type;d=l.la;if(f){if(!a.c2)return}else c.uid=a.uid;a.ex?c.S=a.ex:Qa(c.S);if(e=a.ivs)for(b in e)e.hasOwnProperty(b)&&
(m=this.wp(l,parseInt(b,10)),0>m||m>=c.pa.length||(c.pa[m]=e[b]));if(d.md){m=a.w;c.d.F!==m.l&&(e=c.d,c.d=this.Q.Og(m.l),c.d?(e.Ee(c,!0),c.d.Ve(c,!0),c.da(),c.d.$f(0)):(c.d=e,f||this.fe(c)));c.x=m.x;c.y=m.y;c.width=m.w;c.height=m.h;c.jc=m.zi;c.g=m.hasOwnProperty("a")?m.a:0;c.opacity=m.hasOwnProperty("o")?m.o:1;c.Za=m.hasOwnProperty("hX")?m.hX:.5;c.$a=m.hasOwnProperty("hY")?m.hY:.5;c.visible=m.hasOwnProperty("v")?m.v:!0;c.Cd=m.hasOwnProperty("ce")?m.ce:!0;c.Lf=m.hasOwnProperty("mts")?m.mts:-1;c.Ua=
m.hasOwnProperty("bm")?m.bm:0;c.bf=$a(c.Ua);this.i&&ab(c,c.Ua,this.i);c.da();if(m.hasOwnProperty("fx"))for(f=0,e=m.fx.length;f<e;f++)d=l.Bi(m.fx[f].name),0>d||(c.Xc[d]=m.fx[f].active,c.ba[d]=m.fx[f].params);c.Uc()}if(l=a.behs)for(b in l)l.hasOwnProperty(b)&&(f=this.rp(c,parseInt(b,10)),0>f||c.p[f].oc(l[b]));a.data&&c.oc(a.data)};Ib=function(c){return new d(document.getElementById(c))};Jb=function(c,a){return new d({dc:!0,width:c,height:a})};window.cr_createRuntime=Ib;window.cr_createDCRuntime=Jb;
window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var c=document.createElement("screencanvas")||document.createElement("canvas");c.Wh=!0;document.body.appendChild(c);c=new d(c);window.c2runtime=c;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return c};window.createEjectaRuntime=function(){var c=new d(document.getElementById("canvas"));window.c2runtime=
c;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return c}})();window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(g,k){var d=window.cr_getC2Runtime();d&&d.no(g,k)};window.cr_sizeCanvas=function(g,k){if(0!==g&&0!==k){var d=window.cr_getC2Runtime();d&&d.setSize(g,k)}};window.cr_setSuspended=function(g){var k=window.cr_getC2Runtime();k&&k.setSuspended(g)};
(function(){function g(a,b){this.b=a;this.Jd=null;this.scrollX=this.b.ua/2;this.scrollY=this.b.ta/2;this.scale=1;this.g=0;this.oe=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Qm=b[3];this.zm=b[4];this.F=b[5];var e=b[6],d,g;this.u=[];this.sf=[];d=0;for(g=e.length;d<g;d++){var k=new Kb(this,e[d]);k.Xl=d;this.u.push(k)}e=b[7];this.Od=[];d=0;for(g=e.length;d<g;d++){var k=e[d],q=this.b.j[k[1]];q.lc||(q.lc=k);this.Od.push(k);-1===this.sf.indexOf(q)&&this.sf.push(q)}this.q=[];this.G=[];this.ba=
[];d=0;for(g=b[8].length;d<g;d++)this.q.push({id:b[8][d][0],name:b[8][d][1],Fa:-1,rb:!0,index:d}),this.ba.push(b[8][d][2].slice(0));this.Uc();this.Zf=new O(0,0,1,1);this.tj=new O(0,0,1,1);this.qd={}}function k(a,b){return a.jc-b.jc}function d(a,b){this.ra=a;this.b=a.b;this.c=[];this.scale=1;this.g=0;this.Fd=!1;this.Sc=new O(0,0,0,0);this.Jm=new sa;this.Ca=this.oa=this.Da=this.na=0;this.ee=!1;this.Vc=-1;this.name=b[0];this.index=b[1];this.F=b[2];this.visible=b[3];this.ad=b[4];this.Tc=b[5];this.ab=
b[6];this.bb=b[7];this.opacity=b[8];this.ti=b[9];this.hc=b[10];this.Qa=b[11];this.Ua=b[12];this.Fo=b[13];this.bf="source-over";this.Ja=this.Ma=0;this.lb=null;this.we=p();this.Pc=!0;this.Zg=new O(0,0,-1,-1);this.Cb=new O(0,0,-1,-1);this.hc&&(this.lb=new Za(this.b.ua,this.b.ta));this.sd=!1;var e=b[14],d,g;this.Em=[];this.xb=[];this.cf=[];d=0;for(g=e.length;d<g;d++){var k=e[d],q=this.b.j[k[1]];q.lc||(q.lc=k,q.mo=this.index);this.xb.push(k);-1===this.ra.sf.indexOf(q)&&this.ra.sf.push(q)}za(this.Em,this.xb);
this.q=[];this.G=[];this.ba=[];d=0;for(g=b[15].length;d<g;d++)this.q.push({id:b[15][d][0],name:b[15][d][1],Fa:-1,rb:!0,index:d}),this.ba.push(b[15][d][2].slice(0));this.Uc();this.Zf=new O(0,0,1,1);this.tj=new O(0,0,1,1)}function p(){return e.length?e.pop():[]}function r(a){a.length=0;e.push(a)}g.prototype.Nq=function(a){var b=a.type.F.toString();this.qd.hasOwnProperty(b)||(this.qd[b]=[]);this.qd[b].push(this.b.zj(a))};g.prototype.Wk=function(){var a=this.u[0];return!a.Tc&&1===a.opacity&&!a.ti&&a.visible};
g.prototype.Uc=function(){this.G.length=0;var a,b,e;a=0;for(b=this.q.length;a<b;a++)e=this.q[a],e.rb&&this.G.push(e)};g.prototype.Ai=function(a){var b,e,d;b=0;for(e=this.q.length;b<e;b++)if(d=this.q[b],d.name===a)return d;return null};var b=[],a=!0;g.prototype.Cj=function(){this.zm&&(this.Jd=this.b.pi[this.zm],this.Jd.Oj());this.b.Q=this;this.scrollX=this.b.ua/2;this.scrollY=this.b.ta/2;var f,e,d,g,y,t,q;f=0;for(d=this.b.j.length;f<d;f++)if(e=this.b.j[f],!e.r)for(y=e.c,e=0,g=y.length;e<g;e++)if(t=
y[e],t.d){var m=t.d.Xl;m>=this.u.length&&(m=this.u.length-1);t.d=this.u[m];-1===t.d.c.indexOf(t)&&t.d.c.push(t);t.d.ee=!0}if(!a)for(f=0,d=this.u.length;f<d;++f)this.u[f].c.sort(k);b.length=0;this.ao();f=0;for(d=this.u.length;f<d;f++)t=this.u[f],t.ko(),t.Qj();y=!1;if(!this.oe){for(q in this.qd)if(this.qd.hasOwnProperty(q)&&(e=this.b.Pg(parseInt(q,10)))&&!e.r&&this.b.Mj(e)){g=this.qd[q];f=0;for(d=g.length;f<d;f++){t=null;if(e.la.md&&(t=this.Og(g[f].w.l),!t))continue;t=this.b.Dd(e.lc,t,!1,0,0,!0);this.b.eh(t,
g[f]);y=!0;b.push(t)}g.length=0}f=0;for(d=this.u.length;f<d;f++)this.u[f].c.sort(k),this.u[f].ee=!0}y&&(this.b.Ga(),this.b.lm());for(f=0;f<b.length;f++)if(t=b[f],t.type.Kb)for(d=t.nf(),e=0,g=t.type.gb.length;e<g;e++)q=t.type.gb[e],t.type!==q&&(q.c.length>d?t.siblings.push(q.c[d]):q.lc&&(y=this.b.Dd(q.lc,t.d,!0,t.x,t.y,!0),this.b.Ga(),q.Mh(),t.siblings.push(y),b.push(y)));f=0;for(d=this.Od.length;f<d;f++)this.b.Dd(this.Od[f],null,!0);this.b.$e=null;this.b.Ga();if(this.b.M&&!this.b.K)for(f=0,d=this.b.j.length;f<
d;f++)q=this.b.j[f],!q.r&&q.c.length&&q.qj&&q.qj(this.b.M);f=0;for(d=b.length;f<d;f++)t=b[f],this.b.trigger(Object.getPrototypeOf(t.type.la).e.tn,t);b.length=0;this.b.trigger(X.prototype.e.Xj,null);this.oe=!1};g.prototype.jo=function(){var a,b,e,d,g;b=a=0;for(e=this.Od.length;a<e;a++)d=this.Od[a],g=this.b.j[d[1]],g.global?g.Kb||this.b.Dd(d,null,!0):(this.Od[b]=d,b++);this.Od.length=b};g.prototype.Tq=function(){this.b.trigger(X.prototype.e.An,null);this.b.uc.ob.length=0;var f,b,e,d,g,k;if(!this.oe)for(f=
0,b=this.u.length;f<b;f++)for(this.u[f].Rj(),g=this.u[f].c,e=0,d=g.length;e<d;e++)k=g[e],k.type.global||this.b.Mj(k.type)&&this.Nq(k);f=0;for(b=this.u.length;f<b;f++){g=this.u[f].c;e=0;for(d=g.length;e<d;e++)k=g[e],k.type.global||this.b.fe(k);this.b.Ga();g.length=0;this.u[f].ee=!0}f=0;for(b=this.b.j.length;f<b;f++)if(g=this.b.j[f],!(g.global||g.la.md||g.la.Ah||g.r)){e=0;for(d=g.c.length;e<d;e++)this.b.fe(g.c[e]);this.b.Ga()}a=!1};new O(0,0,0,0);g.prototype.Dc=function(a){var b,e=a,d=!1,g=!this.b.Eb;
g&&(this.b.bh||(this.b.bh=document.createElement("canvas"),b=this.b.bh,b.width=this.b.D,b.height=this.b.C,this.b.yl=b.getContext("2d"),d=!0),b=this.b.bh,e=this.b.yl,b.width!==this.b.D&&(b.width=this.b.D,d=!0),b.height!==this.b.C&&(b.height=this.b.C,d=!0),d&&(e.webkitImageSmoothingEnabled=this.b.L,e.mozImageSmoothingEnabled=this.b.L,e.msImageSmoothingEnabled=this.b.L,e.imageSmoothingEnabled=this.b.L));e.globalAlpha=1;e.globalCompositeOperation="source-over";this.b.Sh&&!this.Wk()&&e.clearRect(0,0,this.b.D,
this.b.C);var k,q,d=0;for(k=this.u.length;d<k;d++)q=this.u[d],q.visible&&0<q.opacity&&11!==q.Ua&&(q.c.length||!q.Tc)?q.Dc(e):q.Qj();g&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.hb=function(a){var b=0<this.G.length||this.b.Pe||!this.b.Eb;if(b){this.b.kb||(this.b.kb=a.ed(this.b.D,this.b.C,this.b.L));if(this.b.kb.Ze!==this.b.D||this.b.kb.Ye!==this.b.C)a.deleteTexture(this.b.kb),this.b.kb=a.ed(this.b.D,this.b.C,this.b.L);a.sc(this.b.kb);this.b.Eb||a.Ie(this.b.D,this.b.C)}else this.b.kb&&
(a.sc(null),a.deleteTexture(this.b.kb),this.b.kb=null);this.b.Sh&&!this.Wk()&&a.clear(0,0,0,0);var e,d,g;e=0;for(d=this.u.length;e<d;e++)g=this.u[e],g.visible&&0<g.opacity&&(g.c.length||!g.Tc)?g.hb(a):g.Qj();b&&(0===this.G.length||1===this.G.length&&this.b.Eb?(1===this.G.length?(b=this.G[0].index,a.tc(this.G[0].Fa),a.He(null,1/this.b.D,1/this.b.C,0,0,1,1,this.scale,this.g,0,0,this.b.D/2,this.b.C/2,this.ba[b]),a.rh(this.G[0].Fa)&&(this.b.R=!0)):a.tc(0),this.b.Eb||a.Ie(this.b.width,this.b.height),a.sc(null),
a.Ge(1),a.zb(this.b.kb),a.tm(),a.td(),a.yd(),b=this.b.width/2,e=this.b.height/2,a.uh(-b,e,b,e,b,-e,-b,-e),a.zb(null)):this.uj(a,null,null,null))};g.prototype.mf=function(){return 0<this.G.length||this.b.Pe||!this.b.Eb?this.b.kb:null};g.prototype.Tk=function(){var a=this.u[0].Fb(),b,e,d;b=1;for(e=this.u.length;b<e;b++)d=this.u[b],(0!==d.ab||0!==d.bb)&&d.Fb()<a&&(a=d.Fb());return a};g.prototype.qm=function(a){if(!this.Qm){var b=1/this.Tk()*this.b.D/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==
a&&(this.scrollX=a,this.b.R=!0)};g.prototype.rm=function(a){if(!this.Qm){var b=1/this.Tk()*this.b.C/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.R=!0)};g.prototype.ao=function(){this.qm(this.scrollX);this.rm(this.scrollY)};g.prototype.uj=function(a,b,e,d){var g=e?e.G:b?b.G:this.G,k=1,q=0,m=0,c=0,h=this.b.D,u=this.b.C;e?(k=e.d.Fb(),q=e.d.Yb(),m=e.d.na,c=e.d.oa,h=e.d.Da,u=e.d.Ca):b&&(k=b.Fb(),q=b.Yb(),m=b.na,c=b.oa,h=b.Da,u=b.Ca);var w=this.b.xi,p,z,r,x,E=
0,Wa=1,M,I=this.b.D,G=this.b.C,va=I/2,na=G/2,U=b?b.Zf:this.Zf,J=b?b.tj:this.tj,B=0,R=0,C=0,K=0,D=I,pa=I,H=G,qa=G,ha=r=0,wa=e?e.d.Yb():0;if(e){p=0;for(z=g.length;p<z;p++)r+=a.zp(g[p].Fa),ha+=a.Ap(g[p].Fa);x=e.ja;B=b.qa(x.left,x.top,!0,!0);C=b.qa(x.left,x.top,!1,!0);D=b.qa(x.right,x.bottom,!0,!0);H=b.qa(x.right,x.bottom,!1,!0);0!==wa&&(p=b.qa(x.right,x.top,!0,!0),z=b.qa(x.right,x.top,!1,!0),R=b.qa(x.left,x.bottom,!0,!0),K=b.qa(x.left,x.bottom,!1,!0),x=Math.min(B,D,p,R),D=Math.max(B,D,p,R),B=x,x=Math.min(C,
H,z,K),H=Math.max(C,H,z,K),C=x);B-=r;C-=ha;D+=r;H+=ha;J.left=B/I;J.top=1-C/G;J.right=D/I;J.bottom=1-H/G;R=B=N(B);K=C=N(C);pa=D=oa(D);qa=H=oa(H);R-=r;K-=ha;pa+=r;qa+=ha;0>B&&(B=0);0>C&&(C=0);D>I&&(D=I);H>G&&(H=G);0>R&&(R=0);0>K&&(K=0);pa>I&&(pa=I);qa>G&&(qa=G);U.left=B/I;U.top=1-C/G;U.right=D/I;U.bottom=1-H/G}else U.left=J.left=0,U.top=J.top=0,U.right=J.right=1,U.bottom=J.bottom=1;ha=e&&((e.g||wa)&&a.Xf(g[0].Fa)||0!==r||0!==ha||1!==e.opacity||e.type.la.Ul)||b&&!e&&1!==b.opacity;a.tm();if(ha){w[E]||
(w[E]=a.ed(I,G,this.b.L));if(w[E].Ze!==I||w[E].Ye!==G)a.deleteTexture(w[E]),w[E]=a.ed(I,G,this.b.L);a.tc(0);a.sc(w[E]);M=qa-K;a.clearRect(R,G-K-M,pa-R,M);e?e.hb(a):(a.zb(this.b.yb),a.Ge(b.opacity),a.td(),a.translate(-va,-na),a.yd(),a.Oc(B,H,D,H,D,C,B,C,U));J.left=J.top=0;J.right=J.bottom=1;e&&(x=U.top,U.top=U.bottom,U.bottom=x);E=1;Wa=0}a.Ge(1);r=g.length-1;var wa=a.rj(g[r].Fa)||!b&&!e&&!this.b.Eb,xa=0;p=0;for(z=g.length;p<z;p++){w[E]||(w[E]=a.ed(I,G,this.b.L));if(w[E].Ze!==I||w[E].Ye!==G)a.deleteTexture(w[E]),
w[E]=a.ed(I,G,this.b.L);a.tc(g[p].Fa);xa=g[p].index;a.rh(g[p].Fa)&&(this.b.R=!0);0!=p||ha?(a.He(d,1/I,1/G,J.left,J.top,J.right,J.bottom,k,q,m,c,(m+h)/2,(c+u)/2,e?e.ba[xa]:b?b.ba[xa]:this.ba[xa]),a.zb(null),p!==r||wa?(a.sc(w[E]),M=qa-K,x=G-K-M,a.clearRect(R,x,pa-R,M)):(e?a.ud(e.Ma,e.Ja):b&&a.ud(b.Ma,b.Ja),a.sc(d)),a.zb(w[Wa]),a.td(),a.translate(-va,-na),a.yd(),a.Oc(B,H,D,H,D,C,B,C,U),p!==r||wa||a.zb(null)):(a.sc(w[E]),M=qa-K,x=G-K-M,a.clearRect(R,x,pa-R,M),e?(a.He(d,1/e.width,1/e.height,J.left,J.top,
J.right,J.bottom,k,q,m,c,(m+h)/2,(c+u)/2,e.ba[xa]),e.hb(a)):(a.He(d,1/I,1/G,0,0,1,1,k,q,m,c,(m+h)/2,(c+u)/2,b?b.ba[xa]:this.ba[xa]),a.zb(b?this.b.yb:this.b.kb),a.td(),a.translate(-va,-na),a.yd(),a.Oc(B,H,D,H,D,C,B,C,U)),J.left=J.top=0,J.right=J.bottom=1,e&&!wa&&(x=H,H=C,C=x));E=0===E?1:0;Wa=0===E?1:0}wa&&(a.tc(0),e?a.ud(e.Ma,e.Ja):b?a.ud(b.Ma,b.Ja):this.b.Eb||(a.Ie(this.b.width,this.b.height),va=this.b.width/2,na=this.b.height/2,C=B=0,D=this.b.width,H=this.b.height),a.sc(d),a.zb(w[Wa]),a.td(),a.translate(-va,
-na),a.yd(),e&&1===g.length&&!ha?a.Oc(B,C,D,C,D,H,B,H,U):a.Oc(B,H,D,H,D,C,B,C,U),a.zb(null))};g.prototype.Og=function(a){var b,e;b=0;for(e=this.u.length;b<e;b++)if(this.u[b].F===a)return this.u[b];return null};g.prototype.Ob=function(){var a,b,e,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.g,w:this.width,h:this.height,fv:this.oe,persist:this.qd,fx:[],layers:{}};a=0;for(b=this.q.length;a<b;a++)e=this.q[a],d.fx.push({name:e.name,active:e.rb,params:this.ba[e.index]});a=0;for(b=this.u.length;a<
b;a++)e=this.u[a],d.layers[e.F.toString()]=e.Ob();return d};g.prototype.oc=function(a){var b,e,d,g;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.g=a.a;this.width=a.w;this.height=a.h;this.qd=a.persist;"undefined"!==typeof a.fv&&(this.oe=a.fv);var k=a.fx;b=0;for(e=k.length;b<e;b++)if(d=this.Ai(k[b].name))d.rb=k[b].active,this.ba[d.index]=k[b].params;this.Uc();b=a.layers;for(g in b)b.hasOwnProperty(g)&&(a=this.Og(parseInt(g,10)))&&a.oc(b[g])};wb=g;d.prototype.Uc=function(){this.G.length=0;
var a,b,e;a=0;for(b=this.q.length;a<b;a++)e=this.q[a],e.rb&&this.G.push(e)};d.prototype.Ai=function(a){var b,e,d;b=0;for(e=this.q.length;b<e;b++)if(d=this.q[b],d.name===a)return d;return null};d.prototype.ko=function(){var a,e,d,g,k,p;e=a=0;for(d=this.xb.length;a<d;a++){g=this.xb[a];k=this.b.j[g[1]];p=this.b.Mj(k);k=!0;if(!p||this.ra.oe)g=this.b.Dd(g,this,!0),b.push(g),g.type.global&&(k=!1,this.cf.push(g.uid));k&&(this.xb[e]=this.xb[a],e++)}this.xb.length=e;this.b.Ga();!this.b.m&&this.q.length&&(this.Ua=
this.Fo);this.bf=$a(this.Ua);this.b.i&&ab(this,this.Ua,this.b.i);this.Pc=!0};d.prototype.Ee=function(a,b){var e=Ba(this.c,a);0>e||(b&&this.hc&&a.cb&&a.cb.right>=a.cb.left&&(a.X(),this.lb.update(a,a.cb,null),a.cb.set(0,0,-1,-1)),e===this.c.length-1?this.c.pop():(ua(this.c,e),this.$f(e)),this.Pc=!0)};d.prototype.Ve=function(a,b){a.jc=this.c.length;this.c.push(a);b&&this.hc&&a.cb&&a.da();this.Pc=!0};d.prototype.Bq=function(a){this.c.unshift(a);this.$f(0)};d.prototype.mq=function(a,b,e){var d=a.Gb();
b=b.Gb();ua(this.c,d);d<b&&b--;e&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.$f(d<b?d:b)};d.prototype.$f=function(a){-1===this.Vc?this.Vc=a:a<this.Vc&&(this.Vc=a);this.Pc=this.ee=!0};d.prototype.Rj=function(){if(this.ee){-1===this.Vc&&(this.Vc=0);var a,b,e;if(this.hc)for(a=this.Vc,b=this.c.length;a<b;++a)e=this.c[a],e.jc=a,this.lb.jq(e.cb);else for(a=this.Vc,b=this.c.length;a<b;++a)this.c[a].jc=a;this.ee=!1;this.Vc=-1}};d.prototype.Fb=function(a){return this.xp()*(this.b.Eb||a?
this.b.We:1)};d.prototype.xp=function(){return(this.scale*this.ra.scale-1)*this.Qa+1};d.prototype.Yb=function(){return this.Fd?0:Ga(this.ra.g+this.g)};var e=[],z=[],x=[];d.prototype.Vk=function(){this.Rj();this.lb.vh(this.na,this.oa,this.Da,this.Ca,x);if(!x.length)return p();if(1===x.length){var a=p();za(a,x[0]);x.length=0;return a}for(var b=!0;1<x.length;){for(var a=x,e=void 0,d=void 0,g=void 0,k=void 0,q=void 0,e=0,d=a.length;e<d-1;e+=2){var g=a[e],k=a[e+1],q=p(),m=g,c=k,h=q,u=0,w=0,A=0,fa=m.length,
P=c.length,Fa=void 0,E=void 0;for(h.length=fa+P;u<fa&&w<P;++A)Fa=m[u],E=c[w],Fa.jc<E.jc?(h[A]=Fa,++u):(h[A]=E,++w);for(;u<fa;++u,++A)h[A]=m[u];for(;w<P;++w,++A)h[A]=c[w];b||(r(g),r(k));z.push(q)}1===d%2&&(b?(g=p(),za(g,a[d-1]),z.push(g)):z.push(a[d-1]));za(a,z);z.length=0;b=!1}a=x[0];x.length=0;return a};d.prototype.Dc=function(a){this.sd=this.ti||1!==this.opacity||0!==this.Ua;var b=this.b.canvas,e=a,d=!1;this.sd&&(this.b.ah||(this.b.ah=document.createElement("canvas"),b=this.b.ah,b.width=this.b.D,
b.height=this.b.C,this.b.xl=b.getContext("2d"),d=!0),b=this.b.ah,e=this.b.xl,b.width!==this.b.D&&(b.width=this.b.D,d=!0),b.height!==this.b.C&&(b.height=this.b.C,d=!0),d&&(e.webkitImageSmoothingEnabled=this.b.L,e.mozImageSmoothingEnabled=this.b.L,e.msImageSmoothingEnabled=this.b.L,e.imageSmoothingEnabled=this.b.L),this.Tc&&e.clearRect(0,0,this.b.D,this.b.C));e.globalAlpha=1;e.globalCompositeOperation="source-over";this.Tc||(e.fillStyle="rgb("+this.ad[0]+","+this.ad[1]+","+this.ad[2]+")",e.fillRect(0,
0,this.b.D,this.b.C));e.save();this.Fd=!0;var d=this.ea(0,0,!0,!0),g=this.ea(0,0,!1,!0);this.Fd=!1;this.b.rd&&(d=Math.round(d),g=Math.round(g));this.wj(d,g,e);var k=this.Fb();e.scale(k,k);e.translate(-d,-g);this.hc?(this.Cb.left=this.lb.pb(this.na),this.Cb.top=this.lb.qb(this.oa),this.Cb.right=this.lb.pb(this.Da),this.Cb.bottom=this.lb.qb(this.Ca),this.Pc||!this.Cb.Ig(this.Zg)?(r(this.we),d=this.Vk(),this.Pc=!1,this.Zg.Cg(this.Cb)):d=this.we):d=this.c;for(var q,m=null,g=0,k=d.length;g<k;++g)q=d[g],
q!==m&&(this.Co(q,e),m=q);this.hc&&(this.we=d);e.restore();this.sd&&(a.globalCompositeOperation=this.bf,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};d.prototype.Co=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.X();var e=a.ja;e.right<this.na||e.bottom<this.oa||e.left>this.Da||e.top>this.Ca||(b.globalCompositeOperation=a.bf,a.Dc(b))}};d.prototype.Qj=function(){this.Fd=!0;var a=this.ea(0,0,!0,!0),b=this.ea(0,0,!1,!0);this.Fd=!1;this.b.rd&&(a=Math.round(a),b=Math.round(b));this.wj(a,b,null)};
d.prototype.wj=function(a,b,e){var d=this.Fb();this.na=a;this.oa=b;this.Da=a+1/d*this.b.D;this.Ca=b+1/d*this.b.C;a=this.Yb();0!==a&&(e&&(e.translate(this.b.D/2,this.b.C/2),e.rotate(-a),e.translate(this.b.D/-2,this.b.C/-2)),this.Sc.set(this.na,this.oa,this.Da,this.Ca),this.Sc.offset((this.na+this.Da)/-2,(this.oa+this.Ca)/-2),this.Jm.xm(this.Sc,a),this.Jm.sk(this.Sc),this.Sc.offset((this.na+this.Da)/2,(this.oa+this.Ca)/2),this.na=this.Sc.left,this.oa=this.Sc.top,this.Da=this.Sc.right,this.Ca=this.Sc.bottom)};
d.prototype.hb=function(a){var b=0,e=0;if(this.sd=this.ti||1!==this.opacity||0<this.G.length||0!==this.Ua){this.b.yb||(this.b.yb=a.ed(this.b.D,this.b.C,this.b.L));if(this.b.yb.Ze!==this.b.D||this.b.yb.Ye!==this.b.C)a.deleteTexture(this.b.yb),this.b.yb=a.ed(this.b.D,this.b.C,this.b.L);a.sc(this.b.yb);this.Tc&&a.clear(0,0,0,0)}this.Tc||a.clear(this.ad[0]/255,this.ad[1]/255,this.ad[2]/255,1);this.Fd=!0;var d=this.ea(0,0,!0,!0),b=this.ea(0,0,!1,!0);this.Fd=!1;this.b.rd&&(d=Math.round(d),b=Math.round(b));
this.wj(d,b,null);d=this.Fb();a.td();a.scale(d,d);a.nm(-this.Yb());a.translate((this.na+this.Da)/-2,(this.oa+this.Ca)/-2);a.yd();this.hc?(this.Cb.left=this.lb.pb(this.na),this.Cb.top=this.lb.qb(this.oa),this.Cb.right=this.lb.pb(this.Da),this.Cb.bottom=this.lb.qb(this.Ca),this.Pc||!this.Cb.Ig(this.Zg)?(r(this.we),b=this.Vk(),this.Pc=!1,this.Zg.Cg(this.Cb)):b=this.we):b=this.c;var g,k,q=null,e=0;for(g=b.length;e<g;++e)k=b[e],k!==q&&(this.Do(b[e],a),q=k);this.hc&&(this.we=b);this.sd&&(b=this.G.length?
this.G[0].Fa:0,e=this.G.length?this.G[0].index:0,0===this.G.length||1===this.G.length&&!a.rj(b)&&1===this.opacity?(1===this.G.length?(a.tc(b),a.He(this.ra.mf(),1/this.b.D,1/this.b.C,0,0,1,1,d,this.Yb(),this.na,this.oa,(this.na+this.Da)/2,(this.oa+this.Ca)/2,this.ba[e]),a.rh(b)&&(this.b.R=!0)):a.tc(0),a.sc(this.ra.mf()),a.Ge(this.opacity),a.zb(this.b.yb),a.ud(this.Ma,this.Ja),a.td(),a.yd(),d=this.b.D/2,b=this.b.C/2,a.uh(-d,b,d,b,d,-b,-d,-b),a.zb(null)):this.ra.uj(a,this,null,this.ra.mf()))};d.prototype.Do=
function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.X();var e=a.ja;e.right<this.na||e.bottom<this.oa||e.left>this.Da||e.top>this.Ca||(a.Xm?this.Eo(a,b):(b.tc(0),b.ud(a.Ma,a.Ja),a.hb(b)))}};d.prototype.Eo=function(a,b){var e=a.G[0].Fa,d=a.G[0].index,g=this.Fb();if(1!==a.G.length||b.rj(e)||b.Dq(e)||(a.g||a.d.Yb())&&b.Xf(e)||1!==a.opacity||a.type.la.Ul)this.ra.uj(b,this,a,this.sd?this.b.yb:this.ra.mf()),b.td(),b.scale(g,g),b.nm(-this.Yb()),b.translate((this.na+this.Da)/-2,(this.oa+this.Ca)/-2),
b.yd();else{b.tc(e);b.ud(a.Ma,a.Ja);b.rh(e)&&(this.b.R=!0);var k=0,q=0,m=0,c=0;b.Xf(e)&&(e=a.ja,k=this.qa(e.left,e.top,!0,!0),q=this.qa(e.left,e.top,!1,!0),m=this.qa(e.right,e.bottom,!0,!0),e=this.qa(e.right,e.bottom,!1,!0),k=k/windowWidth,q=1-q/windowHeight,m=m/windowWidth,c=1-e/windowHeight);b.He(this.sd?this.b.yb:this.ra.mf(),1/a.width,1/a.height,k,q,m,c,g,this.Yb(),this.na,this.oa,(this.na+this.Da)/2,(this.oa+this.Ca)/2,a.ba[d]);a.hb(b)}};d.prototype.ea=function(a,b,e,d){var g=this.b.devicePixelRatio;
this.b.ld&&(a*=g,b*=g);var g=this.b.cm,k=this.b.dm,g=(this.ra.scrollX-g)*this.ab+g,k=(this.ra.scrollY-k)*this.bb+k,q=g,m=k,c=1/this.Fb(!d);d?(q-=this.b.D*c/2,m-=this.b.C*c/2):(q-=this.b.width*c/2,m-=this.b.height*c/2);q+=a*c;m+=b*c;b=this.Yb();0!==b&&(q-=g,m-=k,a=Math.cos(b),b=Math.sin(b),d=q*a-m*b,m=m*a+q*b,q=d+g,m+=k);return e?q:m};d.prototype.qa=function(a,b,e,d){var g=this.b.cm,k=this.b.dm,q=(this.ra.scrollX-g)*this.ab+g,m=(this.ra.scrollY-k)*this.bb+k,k=q,g=m,c=this.Yb();if(0!==c){a-=q;b-=m;
var h=Math.cos(-c),c=Math.sin(-c),u=a*h-b*c;b=b*h+a*c;a=u+q;b+=m}q=1/this.Fb(!d);d?(k-=this.b.D*q/2,g-=this.b.C*q/2):(k-=this.b.width*q/2,g-=this.b.height*q/2);k=(a-k)/q;g=(b-g)/q;a=this.b.devicePixelRatio;this.b.ld&&!d&&(k/=a,g/=a);return e?k:g};d.prototype.Ob=function(){var a,b,e,d={s:this.scale,a:this.g,vl:this.na,vt:this.oa,vr:this.Da,vb:this.Ca,v:this.visible,bc:this.ad,t:this.Tc,px:this.ab,py:this.bb,o:this.opacity,zr:this.Qa,fx:[],cg:this.cf,instances:[]};a=0;for(b=this.q.length;a<b;a++)e=
this.q[a],d.fx.push({name:e.name,active:e.rb,params:this.ba[e.index]});return d};d.prototype.oc=function(a){var b,e,d;this.scale=a.s;this.g=a.a;this.na=a.vl;this.oa=a.vt;this.Da=a.vr;this.Ca=a.vb;this.visible=a.v;this.ad=a.bc;this.Tc=a.t;this.ab=a.px;this.bb=a.py;this.opacity=a.o;this.Qa=a.zr;this.cf=a.cg||[];za(this.xb,this.Em);var g=new ba;b=0;for(d=this.cf.length;b<d;++b)g.add(this.cf[b]);e=b=0;for(d=this.xb.length;b<d;++b)g.contains(this.xb[b][2])||(this.xb[e]=this.xb[b],++e);this.xb.length=e;
e=a.fx;b=0;for(d=e.length;b<d;b++)if(a=this.Ai(e[b].name))a.rb=e[b].active,this.ba[a.index]=e[b].params;this.Uc();this.c.sort(k);this.ee=!0};Kb=d})();
(function(){function g(a,c){var b,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===c[0];case 2:return a[0]===c[0]&&a[1]===c[1];default:for(b=0;b<e;b++)if(a[b]!==c[b])return!1;return!0}}function k(a,c){return a.index-c.index}function d(a){var c,b,e,d;2===a.length?a[0].index>a[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2<a.length&&a.sort(k);a.length>=y.length&&(y.length=a.length+1);y[a.length]||(y[a.length]=[]);d=y[a.length];c=0;for(b=d.length;c<b;c++)if(e=d[c],g(a,e))return e;d.push(a);return a}
function p(a,c){this.b=a;this.Mm={};this.Ik={};this.Hi=!1;this.Zk=new ba;this.ki=[];this.Th=[];this.name=c[0];var b=c[1];this.gd=[];var e,d;e=0;for(d=b.length;e<d;e++)this.al(b[e],null,this.gd)}function r(a){this.type=a;this.c=[];this.H=[];this.U=!0}function b(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.Z=[];this.vd=[];this.Xk=this.Ih=this.Jj=this.Sg=this.group=this.Dm=!1;this.ya=[];this.Tb=[];this.Qb=[];this.pf="";this.of=this.Sg=this.group=!1;this.Bg=null;b[1]&&(this.pf=b[1][1].toLowerCase(),
this.group=!0,this.Sg=!!b[1][0],this.Bg=[],this.of=this.Sg,this.b.Zc.push(this),this.b.Qg[this.pf]=this);this.cc=b[2];this.F=b[4];this.group||(this.b.rk[this.F.toString()]=this);var e=b[5];a=0;for(c=e.length;a<c;a++){var d=new Lb(this,e[a]);d.index=a;this.ya.push(d);this.nk(d.type)}e=b[6];a=0;for(c=e.length;a<c;a++)d=new Mb(this,e[a]),d.index=a,this.Tb.push(d);if(8===b.length)for(b=b[7],a=0,c=b.length;a<c;a++)this.sheet.al(b[a],this,this.Qb);this.Xg=!1;this.ya.length&&(this.Xg=null==this.ya[0].type&&
this.ya[0].Ea==X.prototype.e.en)}function a(a,c){var b,e,d;if(a&&(-1===c.indexOf(a)&&c.push(a),a.Kb))for(b=0,e=a.gb.length;b<e;b++)d=a.gb[b],a!==d&&-1===c.indexOf(d)&&c.push(d)}function e(a,c){this.sb=a;this.sheet=a.sheet;this.b=a.b;this.A=[];this.ca=[];this.S={};this.index=-1;this.Te=!1;this.Ea=this.b.Wc(c[1]);this.trigger=0<c[3];this.Hk=2===c[3];this.Mi=c[5];this.gq=c[6];this.F=c[7];this.b.le[this.F.toString()]=this;-1===c[0]?(this.type=null,this.ma=this.yj,this.Bd=null,this.Wb=-1):(this.type=this.b.j[c[0]],
this.ma=this.gq?this.Lq:this.xj,c[2]?(this.Bd=this.type.Ng(c[2]),this.Wb=this.type.yi(c[2])):(this.Bd=null,this.Wb=-1),this.sb.parent&&this.sb.parent.zh());this.Hk&&(this.ma=this.Mq);if(10===c.length){var b,e,d=c[9];b=0;for(e=d.length;b<e;b++){var f=new Nb(this,d[b]);this.A.push(f)}this.ca.length=d.length}}function z(a,c){this.sb=a;this.sheet=a.sheet;this.b=a.b;this.A=[];this.ca=[];this.S={};this.index=-1;this.Te=!1;this.Ea=this.b.Wc(c[1]);-1===c[0]?(this.type=null,this.ma=this.yj,this.Bd=null,this.Wb=
-1):(this.type=this.b.j[c[0]],this.ma=this.xj,c[2]?(this.Bd=this.type.Ng(c[2]),this.Wb=this.type.yi(c[2])):(this.Bd=null,this.Wb=-1));this.F=c[3];this.b.je[this.F.toString()]=this;if(6===c.length){var b,e,d=c[5];b=0;for(e=d.length;b<e;b++){var f=new Nb(this,d[b]);this.A.push(f)}this.ca.length=d.length}}function x(){q++;t.length===q&&t.push(new Ob);return t[q]}function f(a,c){this.Nb=a;this.sb=a.sb;this.sheet=a.sheet;this.b=a.b;this.type=c[0];this.mc=null;this.Qc=0;this.get=null;this.xk=0;this.ra=
null;this.key=0;this.object=null;this.index=0;this.ng=this.de=this.ng=this.de=this.Jk=this.Kd=this.og=null;this.Sb=!1;var b,e,d;switch(c[0]){case 0:case 7:this.mc=new V(this,c[1]);this.Qc=0;this.get=this.Gp;break;case 1:this.mc=new V(this,c[1]);this.Qc=0;this.get=this.Hp;break;case 5:this.mc=new V(this,c[1]);this.Qc=0;this.get=this.Lp;break;case 3:case 8:this.xk=c[1];this.get=this.Ep;break;case 6:this.ra=this.b.Wi[c[1]];this.get=this.Mp;break;case 9:this.key=c[1];this.get=this.Kp;break;case 4:this.object=
this.b.j[c[1]];this.get=this.Np;this.sb.nk(this.object);this.Nb instanceof Mb?this.sb.zh():this.sb.parent&&this.sb.parent.zh();break;case 10:this.index=c[1];a.type.r?(this.get=this.Ip,this.Sb=!0):this.get=this.Jp;break;case 11:this.og=c[1];this.Kd=null;this.get=this.Fp;break;case 2:case 12:this.Jk=c[1];this.get=this.Dp;break;case 13:for(this.get=this.Op,this.de=[],this.ng=[],b=1,e=c.length;b<e;b++)d=new Nb(this.Nb,c[b]),this.de.push(d),this.ng.push(0)}}function l(a,c,b){this.sheet=a;this.parent=c;
this.b=a.b;this.Z=[];this.name=b[1];this.Ji=b[3];this.yf=!!b[4];this.Wg=!!b[5];this.F=b[6];this.b.Re[this.F.toString()]=this;this.data=this.Ji;this.parent?(this.Zd=this.yf||this.Wg?-1:this.b.Sq++,this.b.Wn.push(this)):(this.Zd=-1,this.b.Vn.push(this))}function v(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.Z=[];this.rf=null;this.Tp=b[1];this.rb=!0}function n(){this.Fm=[];this.reset(null)}var y=[];p.prototype.toString=function(){return this.name};p.prototype.al=function(a,c,b){switch(a[0]){case 0:a=
new Pb(this,c,a);if(a.cc)for(b.push(a),b=0,c=a.ya.length;b<c;b++)a.ya[b].trigger&&this.bl(a,b);else a.jl()?this.bl(a,0):b.push(a);break;case 1:a=new Hb(this,c,a);b.push(a);break;case 2:a=new Qb(this,c,a),b.push(a)}};p.prototype.ga=function(){var a,c;a=0;for(c=this.gd.length;a<c;a++)this.gd[a].ga(a<c-1&&this.gd[a+1].Xg)};p.prototype.Oj=function(){Q(this.ki);Q(this.Th);this.mk(this);Q(this.Th)};p.prototype.mk=function(a){var c,b,e,d,f=a.ki,g=a.Th,k=this.Zk.ic();c=0;for(b=k.length;c<b;++c)e=k[c],d=e.rf,
!e.rb||a===d||-1<g.indexOf(d)||(g.push(d),d.mk(a),f.push(d))};p.prototype.ma=function(a){this.b.ws||(this.Hi=!0,a||(this.b.Pi=!0));var c,b;c=0;for(b=this.gd.length;c<b;c++){var e=this.gd[c];e.ma();this.b.fi(e.Z);this.b.jd&&this.b.Ga()}a||(this.b.Pi=!1)};p.prototype.bl=function(a,c){a.cc||this.b.Lh.push(a);var b,e,d=a.ya[c],f;d.type?f=d.type.name:f="system";var g=(b=d.Hk)?this.Ik:this.Mm;g[f]||(g[f]=[]);f=g[f];g=d.Ea;if(b){if(d.A.length&&(d=d.A[0],1===d.type&&2===d.mc.type)){d=d.mc.value.toLowerCase();
b=0;for(e=f.length;b<e;b++)if(f[b].method==g){b=f[b].gf;b[d]?b[d].push([a,c]):b[d]=[[a,c]];return}b={};b[d]=[[a,c]];f.push({method:g,gf:b})}}else{b=0;for(e=f.length;b<e;b++)if(f[b].method==g){f[b].gf.push([a,c]);return}bc&&g===bc.prototype.e.ie?f.unshift({method:g,gf:[[a,c]]}):f.push({method:g,gf:[[a,c]]})}};xb=p;r.prototype.Gi=function(){return this.U?this.type.c.length:this.c.length};r.prototype.wb=function(){return this.U?this.type.c:this.c};r.prototype.Wf=function(a){a&&(a.b.Ra().Db.cc?(this.U&&
(Q(this.c),za(this.H,a.type.c),this.U=!1),a=this.H.indexOf(a),-1!==a&&(this.c.push(this.H[a]),this.H.splice(a,1))):(this.U=!1,Q(this.c),this.c[0]=a))};gb=r;window._c2hh_="D9F8786E86C045E1A717748BA36A1D02F8279B7B";b.prototype.ga=function(a){var c,b=this.parent;if(this.group)for(this.Ih=!0;b;){if(!b.group){this.Ih=!1;break}b=b.parent}this.Jj=!this.jl()&&(!this.parent||this.parent.group&&this.parent.Ih);this.Xk=!!a;this.vd=this.Z.slice(0);for(b=this.parent;b;){a=0;for(c=b.Z.length;a<c;a++)this.Tn(b.Z[a]);
b=b.parent}this.Z=d(this.Z);this.vd=d(this.vd);a=0;for(c=this.ya.length;a<c;a++)this.ya[a].ga();a=0;for(c=this.Tb.length;a<c;a++)this.Tb[a].ga();a=0;for(c=this.Qb.length;a<c;a++)this.Qb[a].ga(a<c-1&&this.Qb[a+1].Xg)};b.prototype.um=function(a){if(this.of!==!!a){this.of=!!a;var c;a=0;for(c=this.Bg.length;a<c;++a)this.Bg[a].Sm();0<c&&this.b.Q.Jd&&this.b.Q.Jd.Oj()}};b.prototype.nk=function(b){a(b,this.Z)};b.prototype.Tn=function(b){a(b,this.vd)};b.prototype.zh=function(){this.Dm=!0;this.parent&&this.parent.zh()};
b.prototype.jl=function(){return this.ya.length?this.ya[0].trigger:!1};b.prototype.ma=function(){var a,c,b=!1,e=this.b,d=this.b.Ra();d.Db=this;var f=this.ya;this.Xg||(d.ni=!1);if(this.cc){0===f.length&&(b=!0);d.xa=0;for(a=f.length;d.xa<a;d.xa++)c=f[d.xa],c.trigger||(c=c.ma())&&(b=!0);(d.Ud=b)&&this.yh()}else{d.xa=0;for(a=f.length;d.xa<a;d.xa++)if(c=f[d.xa].ma(),!c){d.Ud=!1;this.Jj&&e.jd&&e.Ga();return}d.Ud=!0;this.yh()}this.Ho(d)};b.prototype.Ho=function(a){a.Ud&&this.Xk&&(a.ni=!0);this.Jj&&this.b.jd&&
this.b.Ga()};b.prototype.Jq=function(a){this.b.Ra().Db=this;this.ya[a].ma()&&(this.yh(),this.b.Ra().Ud=!0)};b.prototype.yh=function(){var a=this.b.Ra(),c;a.Ab=0;for(c=this.Tb.length;a.Ab<c;a.Ab++)if(this.Tb[a.Ab].ma())return;this.om()};b.prototype.Gq=function(){var a=this.b.Ra(),c;for(c=this.Tb.length;a.Ab<c;a.Ab++)if(this.Tb[a.Ab].ma())return;this.om()};b.prototype.om=function(){if(this.Qb.length){var a,c,b,e,d=this.Qb.length-1;this.b.th(this);if(this.Dm)for(a=0,c=this.Qb.length;a<c;a++)b=this.Qb[a],
(e=!this.Ih||!this.group&&a<d)&&this.b.sh(b.Z),b.ma(),e?this.b.ae(b.Z):this.b.fi(b.Z);else for(a=0,c=this.Qb.length;a<c;a++)this.Qb[a].ma();this.b.qh()}};b.prototype.Kq=function(){var a=this.b.Ra();a.Db=this;var c=!1,b;a.xa=0;for(b=this.ya.length;a.xa<b;a.xa++)if(this.ya[a.xa].ma())c=!0;else if(!this.cc)return!1;return this.cc?c:!0};b.prototype.Hq=function(){this.b.hf++;var a=this.b.Ra().xa,c=this.b.th(this);if(!this.cc)for(c.xa=a+1,a=this.ya.length;c.xa<a;c.xa++)if(!this.ya[c.xa].ma()){this.b.qh();
return}this.yh();this.b.qh()};b.prototype.$p=function(a){var c=a.index;if(0===c)return!0;for(--c;0<=c;--c)if(this.ya[c].type===a.type)return!1;return!0};Pb=b;e.prototype.ga=function(){var a,c,b;a=0;for(c=this.A.length;a<c;a++)b=this.A[a],b.ga(),b.Sb&&(this.Te=!0)};e.prototype.Mq=function(){return!0};e.prototype.yj=function(){var a,c;a=0;for(c=this.A.length;a<c;a++)this.ca[a]=this.A[a].get();return Oa(this.Ea.apply(this.b.uc,this.ca),this.Mi)};e.prototype.Lq=function(){var a,c;a=0;for(c=this.A.length;a<
c;a++)this.ca[a]=this.A[a].get();a=this.Ea.apply(this.Bd?this.Bd:this.type,this.ca);this.type.Vb();return a};e.prototype.xj=function(){var a,c,b,e,d,f,g,k,n=this.type,l=n.O(),q=this.sb.cc&&!this.trigger;c=0;var p=n.Kb,z=n.r,t=n.Fc,y=this.Wb,x=-1<y,r=this.Te,v=this.A,B=this.ca,R=this.Mi,C=this.Ea,K;if(r)for(c=0,d=v.length;c<d;++c)f=v[c],f.Sb||(B[c]=f.get(0));else for(c=0,d=v.length;c<d;++c)B[c]=v[c].get(0);if(l.U){Q(l.c);Q(l.H);K=n.c;a=0;for(e=K.length;a<e;++a){k=K[a];if(r)for(c=0,d=v.length;c<d;++c)f=
v[c],f.Sb&&(B[c]=f.get(a));x?(c=0,z&&(c=k.type.ne[t]),c=C.apply(k.p[y+c],B)):c=C.apply(k,B);(g=Oa(c,R))?l.c.push(k):q&&l.H.push(k)}n.finish&&n.finish(!0);l.U=!1;n.Vb();return l.Gi()}b=0;K=(g=q&&!this.sb.$p(this))?l.H:l.c;var D=!1;a=0;for(e=K.length;a<e;++a){k=K[a];if(r)for(c=0,d=v.length;c<d;++c)f=v[c],f.Sb&&(B[c]=f.get(a));x?(c=0,z&&(c=k.type.ne[t]),c=C.apply(k.p[y+c],B)):c=C.apply(k,B);if(Oa(c,R))if(D=!0,g){if(l.c.push(k),p)for(c=0,d=k.siblings.length;c<d;c++)f=k.siblings[c],f.type.O().c.push(f)}else{K[b]=
k;if(p)for(c=0,d=k.siblings.length;c<d;c++)f=k.siblings[c],f.type.O().c[b]=f;b++}else if(g){K[b]=k;if(p)for(c=0,d=k.siblings.length;c<d;c++)f=k.siblings[c],f.type.O().H[b]=f;b++}else if(q&&(l.H.push(k),p))for(c=0,d=k.siblings.length;c<d;c++)f=k.siblings[c],f.type.O().H.push(f)}ya(K,b);if(p)for(z=n.gb,a=0,e=z.length;a<e;a++)k=z[a].O(),g?ya(k.H,b):ya(k.c,b);b=D;if(g&&!D)for(a=0,e=l.c.length;a<e;a++){k=l.c[a];if(r)for(c=0,d=v.length;c<d;c++)f=v[c],f.Sb&&(B[c]=f.get(a));c=x?C.apply(k.p[y],B):C.apply(k,
B);if(Oa(c,R)){D=!0;break}}n.finish&&n.finish(b||q);return q?D:l.Gi()};Lb=e;z.prototype.ga=function(){var a,c,b;a=0;for(c=this.A.length;a<c;a++)b=this.A[a],b.ga(),b.Sb&&(this.Te=!0)};z.prototype.yj=function(){var a=this.b,c,b,e=this.A,d=this.ca;c=0;for(b=e.length;c<b;++c)d[c]=e[c].get();return this.Ea.apply(a.uc,d)};z.prototype.xj=function(){var a=this.type,c=this.Wb,b=a.Fc,e=this.Te,d=this.A,f=this.ca,g=this.Ea,k=a.O().wb(),a=a.r,n=-1<c,l,q,p,z,t,y;if(e)for(q=0,z=d.length;q<z;++q)t=d[q],t.Sb||(f[q]=
t.get(0));else for(q=0,z=d.length;q<z;++q)f[q]=d[q].get(0);l=0;for(p=k.length;l<p;++l){y=k[l];if(e)for(q=0,z=d.length;q<z;++q)t=d[q],t.Sb&&(f[q]=t.get(l));n?(q=0,a&&(q=y.type.ne[b]),g.apply(y.p[c+q],f)):g.apply(y,f)}return!1};Mb=z;var t=[],q=-1;f.prototype.ga=function(){var a,c;if(11===this.type)this.Kd=this.b.Qk(this.og,this.sb.parent);else if(13===this.type)for(a=0,c=this.de.length;a<c;a++)this.de[a].ga();this.mc&&this.mc.ga()};f.prototype.lq=function(a){this.Sb||!a||a.la.Ah||(this.Sb=!0)};f.prototype.vm=
function(){this.Sb=!0};f.prototype.Gp=function(a){this.Qc=a||0;a=x();this.mc.get(a);q--;return a.data};f.prototype.Hp=function(a){this.Qc=a||0;a=x();this.mc.get(a);q--;return L(a.data)?a.data:""};f.prototype.Np=function(){return this.object};f.prototype.Ep=function(){return this.xk};f.prototype.Lp=function(a){this.Qc=a||0;a=x();this.mc.get(a);q--;return a.za()?this.b.Hc(a.data):this.b.lf(a.data)};f.prototype.Mp=function(){return this.ra};f.prototype.Kp=function(){return this.key};f.prototype.Jp=function(){return this.index};
f.prototype.Ip=function(a){a=a||0;var c=this.Nb.type,b=null,b=c.O(),e=b.wb();if(e.length)b=e[a%e.length].type;else if(b.H.length)b=b.H[a%b.H.length].type;else if(c.c.length)b=c.c[a%c.c.length].type;else return 0;return this.index+b.Kg[c.Fc]};f.prototype.Fp=function(){return this.Kd};f.prototype.Dp=function(){return this.Jk};f.prototype.Op=function(){var a,c;a=0;for(c=this.de.length;a<c;a++)this.ng[a]=this.de[a].get();return this.ng};Nb=f;l.prototype.ga=function(){this.Z=d(this.Z)};l.prototype.Pq=
function(a){var c=this.b.Ok();this.parent&&!this.yf&&c?(this.Zd>=c.length&&(c.length=this.Zd+1),c[this.Zd]=a):this.data=a};l.prototype.Cp=function(){var a=this.b.Ok();return!this.parent||this.yf||!a||this.Wg?this.data:this.Zd>=a.length||"undefined"===typeof a[this.Zd]?this.Ji:a[this.Zd]};l.prototype.ma=function(){!this.parent||this.yf||this.Wg||this.Pq(this.Ji)};Hb=l;v.prototype.toString=function(){return"include:"+this.rf.toString()};v.prototype.ga=function(){this.rf=this.b.pi[this.Tp];this.sheet.Zk.add(this);
this.Z=d(this.Z);for(var a=this.parent;a;)a.group&&a.Bg.push(this),a=a.parent;this.Sm()};v.prototype.ma=function(){this.parent&&this.b.Yf(this.b.j);this.rf.Hi||this.rf.ma(!0);this.parent&&this.b.ae(this.b.j)};v.prototype.Sm=function(){for(var a=this.parent;a;){if(a.group&&!a.of){this.rb=!1;return}a=a.parent}this.rb=!0};Qb=v;n.prototype.reset=function(a){this.Db=a;this.Ab=this.xa=0;Q(this.Fm);this.ni=this.Ud=!1};Gb=n})();
(function(){function g(a,b){this.Nb=a;this.b=a.b;this.type=b[0];this.get=[this.Yo,this.Uo,this.hp,this.kp,this.Jo,this.ip,this.cp,this.Ro,this.bp,this.gp,this.Ko,this.fp,this.So,this.dp,this.Zo,this.$o,this.Vo,this.Wo,this.Qo,this.jp,this.ep,this.Xo,this.Po,this.To][this.type];var d=null;this.Lc=this.A=this.ca=this.Ea=this.Gh=this.second=this.first=this.value=null;this.Wb=-1;this.Zb=null;this.Ym=-1;this.Kd=this.og=null;this.Fe=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new V(a,b[1]);break;case 18:this.first=new V(a,b[1]);this.second=new V(a,b[2]);this.Gh=new V(a,b[3]);break;case 19:this.Ea=this.b.Wc(b[1]);this.Ea!==X.prototype.ub.random&&this.Ea!==X.prototype.ub.fo||this.Nb.vm();this.ca=[];this.A=[];3===b.length?(d=b[2],this.ca.length=d.length+1):this.ca.length=1;break;case 20:this.Lc=this.b.j[b[1]];this.Wb=-1;this.Ea=this.b.Wc(b[2]);this.Fe=b[3];Sb.Function&&this.Ea===Sb.Function.prototype.ub.kr&&this.Nb.vm();b[4]?this.Zb=new V(a,b[4]):this.Zb=null;this.ca=[];
this.A=[];6===b.length?(d=b[5],this.ca.length=d.length+1):this.ca.length=1;break;case 21:this.Lc=this.b.j[b[1]];this.Fe=b[2];b[3]?this.Zb=new V(a,b[3]):this.Zb=null;this.Ym=b[4];break;case 22:this.Lc=this.b.j[b[1]];this.Lc.Ng(b[2]);this.Wb=this.Lc.yi(b[2]);this.Ea=this.b.Wc(b[3]);this.Fe=b[4];b[5]?this.Zb=new V(a,b[5]):this.Zb=null;this.ca=[];this.A=[];7===b.length?(d=b[6],this.ca.length=d.length+1):this.ca.length=1;break;case 23:this.og=b[1],this.Kd=null}this.Nb.lq(this.Lc);4<=this.type&&17>=this.type&&
(this.first=new V(a,b[1]),this.second=new V(a,b[2]));if(d){var g,f;g=0;for(f=d.length;g<f;g++)this.A.push(new V(a,d[g]))}}function k(){++b;r.length===b&&r.push(new Ob);return r[b]}function d(a,b,d){var g,f;g=0;for(f=a.length;g<f;++g)a[g].get(d),b[g+1]=d.data}function p(a,b){this.type=a||W.he;this.data=b||0;this.$d=null;this.type==W.he&&(this.data=Math.floor(this.data))}g.prototype.ga=function(){23===this.type&&(this.Kd=this.Nb.b.Qk(this.og,this.Nb.sb.parent));this.first&&this.first.ga();this.second&&
this.second.ga();this.Gh&&this.Gh.ga();this.Zb&&this.Zb.ga();if(this.A){var a,b;a=0;for(b=this.A.length;a<b;a++)this.A[a].ga()}};var r=[],b=-1;g.prototype.jp=function(a){var e=this.A,g=this.ca;g[0]=a;a=k();d(e,g,a);--b;this.Ea.apply(this.b.uc,g)};g.prototype.ep=function(a){var e=this.Lc,g=this.ca,p=this.A,f=this.Zb,l=this.Ea,r=this.Nb.Qc,n=e.O(),y=n.wb();if(!y.length)if(n.H.length)y=n.H;else{this.Fe?a.mb(""):a.V(0);return}g[0]=a;a.$d=e;a=k();d(p,g,a);f&&(f.get(a),a.za()&&(r=a.data,y=e.c));--b;e=y.length;
if(r>=e||r<=-e)r%=e;0>r&&(r+=e);l.apply(y[r],g)};g.prototype.Po=function(a){var e=this.Lc,g=this.ca,p=this.A,f=this.Zb,l=this.Wb,r=this.Ea,n=this.Nb.Qc,y=e.O(),t=y.wb();if(!t.length)if(y.H.length)t=y.H;else{this.Fe?a.mb(""):a.V(0);return}g[0]=a;a.$d=e;a=k();d(p,g,a);f&&(f.get(a),a.za()&&(n=a.data,t=e.c));--b;p=t.length;if(n>=p||n<=-p)n%=p;0>n&&(n+=p);n=t[n];t=0;e.r&&(t=n.type.ne[e.Fc]);r.apply(n.p[l+t],g)};g.prototype.Xo=function(a){var e=this.Zb,d=this.Lc,g=this.Ym,f=this.Nb.Qc,l=d.O(),p=l.wb();
if(!p.length)if(l.H.length)p=l.H;else{this.Fe?a.mb(""):a.V(0);return}if(e){l=k();e.get(l);if(l.za()){f=l.data;d=d.c;f%=d.length;0>f&&(f+=d.length);g=d[f].pa[g];L(g)?a.mb(g):a.k(g);--b;return}--b}e=p.length;if(f>=e||f<=-e)f%=e;0>f&&(f+=e);f=p[f];p=0;d.r&&(p=f.type.Kg[d.Fc]);g=f.pa[g+p];L(g)?a.mb(g):a.k(g)};g.prototype.Yo=function(a){a.type=W.he;a.data=this.value};g.prototype.Uo=function(a){a.type=W.ge;a.data=this.value};g.prototype.hp=function(a){a.type=W.String;a.data=this.value};g.prototype.kp=function(a){this.first.get(a);
a.za()&&(a.data=-a.data)};g.prototype.Jo=function(a){this.first.get(a);var e=k();this.second.get(e);a.za()&&e.za()&&(a.data+=e.data,e.se()&&a.ze());--b};g.prototype.ip=function(a){this.first.get(a);var e=k();this.second.get(e);a.za()&&e.za()&&(a.data-=e.data,e.se()&&a.ze());--b};g.prototype.cp=function(a){this.first.get(a);var e=k();this.second.get(e);a.za()&&e.za()&&(a.data*=e.data,e.se()&&a.ze());--b};g.prototype.Ro=function(a){this.first.get(a);var e=k();this.second.get(e);a.za()&&e.za()&&(a.data/=
e.data,a.ze());--b};g.prototype.bp=function(a){this.first.get(a);var e=k();this.second.get(e);a.za()&&e.za()&&(a.data%=e.data,e.se()&&a.ze());--b};g.prototype.gp=function(a){this.first.get(a);var e=k();this.second.get(e);a.za()&&e.za()&&(a.data=Math.pow(a.data,e.data),e.se()&&a.ze());--b};g.prototype.Ko=function(a){this.first.get(a);var e=k();this.second.get(e);e.ue()||a.ue()?this.Mo(a,e):this.Lo(a,e);--b};g.prototype.Mo=function(a,b){a.ue()&&b.ue()?this.Oo(a,b):this.No(a,b)};g.prototype.Oo=function(a,
b){a.data+=b.data};g.prototype.No=function(a,b){a.ue()?a.data+=(Math.round(1E10*b.data)/1E10).toString():a.mb(a.data.toString()+b.data)};g.prototype.Lo=function(a,b){a.V(a.data&&b.data?1:0)};g.prototype.fp=function(a){this.first.get(a);var e=k();this.second.get(e);a.za()&&e.za()&&(a.data||e.data?a.V(1):a.V(0));--b};g.prototype.Qo=function(a){this.first.get(a);a.data?this.second.get(a):this.Gh.get(a)};g.prototype.So=function(a){this.first.get(a);var e=k();this.second.get(e);a.V(a.data===e.data?1:0);
--b};g.prototype.dp=function(a){this.first.get(a);var e=k();this.second.get(e);a.V(a.data!==e.data?1:0);--b};g.prototype.Zo=function(a){this.first.get(a);var e=k();this.second.get(e);a.V(a.data<e.data?1:0);--b};g.prototype.$o=function(a){this.first.get(a);var e=k();this.second.get(e);a.V(a.data<=e.data?1:0);--b};g.prototype.Vo=function(a){this.first.get(a);var e=k();this.second.get(e);a.V(a.data>e.data?1:0);--b};g.prototype.Wo=function(a){this.first.get(a);var e=k();this.second.get(e);a.V(a.data>=
e.data?1:0);--b};g.prototype.To=function(a){var b=this.Kd.Cp();ga(b)?a.k(b):a.mb(b)};V=g;p.prototype.se=function(){return this.type===W.ge};p.prototype.za=function(){return this.type===W.he||this.type===W.ge};p.prototype.ue=function(){return this.type===W.String};p.prototype.ze=function(){this.se()||(this.ue()&&(this.data=parseFloat(this.data)),this.type=W.ge)};p.prototype.V=function(a){this.type=W.he;this.data=Math.floor(a)};p.prototype.k=function(a){this.type=W.ge;this.data=a};p.prototype.mb=function(a){this.type=
W.String;this.data=a};p.prototype.Qq=function(a){ga(a)?(this.type=W.ge,this.data=a):L(a)?(this.type=W.String,this.data=a.toString()):(this.type=W.he,this.data=0)};Ob=p;W={he:0,ge:1,String:2}})();function X(g){this.b=g;this.ob=[]}
X.prototype.Ob=function(){var g={},k,d,p,r,b,a,e,z;g.waits=[];var x=g.waits,f;k=0;for(d=this.ob.length;k<d;k++){a=this.ob[k];f={t:a.time,st:a.Rq,s:a.Am,ev:a.ff.F,sm:[],sols:{}};a.ff.Tb[a.Ab]&&(f.act=a.ff.Tb[a.Ab].F);p=0;for(r=a.Z.length;p<r;p++)f.sm.push(a.Z[p].F);for(b in a.nb)if(a.nb.hasOwnProperty(b)){e=this.b.j[parseInt(b,10)];z={sa:a.nb[b].pm,insts:[]};p=0;for(r=a.nb[b].Pd.length;p<r;p++)z.insts.push(a.nb[b].Pd[p].uid);f.sols[e.F.toString()]=z}x.push(f)}return g};
X.prototype.oc=function(g){g=g.waits;var k,d,p,r,b,a,e,z,x,f,l;Q(this.ob);k=0;for(d=g.length;k<d;k++)if(a=g[k],z=this.b.rk[a.ev.toString()]){x=-1;p=0;for(r=z.Tb.length;p<r;p++)if(z.Tb[p].F===a.act){x=p;break}if(-1!==x){e={nb:{},Z:[],Bk:!1};e.time=a.t;e.Rq=a.st||"";e.Am=!!a.s;e.ff=z;e.Ab=x;p=0;for(r=a.sm.length;p<r;p++)(z=this.b.Pg(a.sm[p]))&&e.Z.push(z);for(b in a.sols)if(a.sols.hasOwnProperty(b)&&(z=this.b.Pg(parseInt(b,10)))){x=a.sols[b];f={pm:x.sa,Pd:[]};p=0;for(r=x.insts.length;p<r;p++)(l=this.b.Uk(x.insts[p]))&&
f.Pd.push(l);e.nb[z.index.toString()]=f}this.ob.push(e)}}};
(function(){function g(){}function k(){}function d(){}var p=X.prototype;g.prototype.Xj=function(){return!0};g.prototype.An=function(){return!0};g.prototype.en=function(){var a=this.b.Ra();return a.ni?!1:!a.Ud};g.prototype.Yj=function(){return!0};g.prototype.rn=function(){return!0};g.prototype.Rh=function(){return!0};g.prototype.Bn=function(){return!0};g.prototype.Qh=function(){return!0};g.prototype.an=function(a,b,d){return Ka(S(a),S(d))<=S(b)};g.prototype.jn=function(a,b){return Ma(S(a),S(b))};g.prototype.hn=
function(a,b,d){a=Ia(a);b=Ia(b);d=Ia(d);return Ma(d,b)?Ma(a,b)&&!Ma(a,d):!(!Ma(a,b)&&Ma(a,d))};p.e=new g;var r=[],b=[];k.prototype.Mn=function(){if(!this.b.zf&&!this.b.$e&&this.b.Q){this.b.$e=this.b.Q;var a,b,d;a=0;for(b=this.b.Zc.length;a<b;a++)d=this.b.Zc[a],d.um(d.Sg)}};p.Sa=new k;d.prototype["int"]=function(a,b){L(b)?(a.V(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.V(b)};d.prototype["float"]=function(a,b){L(b)?(a.k(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.k(b)};d.prototype.random=function(a,
b,d){void 0===d?a.k(Math.random()*b):a.k(Math.random()*(d-b)+b)};d.prototype.sqrt=function(a,b){a.k(Math.sqrt(b))};d.prototype.abs=function(a,b){a.k(Math.abs(b))};d.prototype.round=function(a,b){a.V(Math.round(b))};d.prototype.floor=function(a,b){a.V(Math.floor(b))};d.prototype.ceil=function(a,b){a.V(Math.ceil(b))};d.prototype.sin=function(a,b){a.k(Math.sin(S(b)))};d.prototype.cos=function(a,b){a.k(Math.cos(S(b)))};d.prototype.tan=function(a,b){a.k(Math.tan(S(b)))};d.prototype.asin=function(a,b){a.k(Da(Math.asin(b)))};
d.prototype.acos=function(a,b){a.k(Da(Math.acos(b)))};d.prototype.atan=function(a,b){a.k(Da(Math.atan(b)))};d.prototype.exp=function(a,b){a.k(Math.exp(b))};d.prototype.log10=function(a,b){a.k(Math.log(b)/Math.LN10)};d.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,g,f;d=2;for(g=arguments.length;d<g;d++)f=arguments[d],"number"===typeof f&&b<f&&(b=f);a.k(b)};d.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,g,f;d=2;for(g=arguments.length;d<
g;d++)f=arguments[d],"number"===typeof f&&b>f&&(b=f);a.k(b)};d.prototype.me=function(a){a.k(this.b.me)};d.prototype.lg=function(a){a.k(this.b.lg)};d.prototype.time=function(a){a.k(this.b.ve.Na)};d.prototype.Me=function(a){a.V(this.b.Me)};d.prototype.mh=function(a){a.V(this.b.mh)};d.prototype.vi=function(a){a.V(this.b.vi)};d.prototype.g=function(a,b,d,g,f){a.k(Da(Ja(b,d,g,f)))};d.prototype.left=function(a,b,d){a.mb(L(b)?b.substr(0,d):"")};d.prototype.right=function(a,b,d){a.mb(L(b)?b.substr(b.length-
d):"")};d.prototype.replace=function(a,b,d,g){L(b)&&L(d)&&L(g)?a.mb(b.replace(new RegExp(Va(d),"gi"),g)):a.mb(L(b)?b:"")};d.prototype.trim=function(a,b){a.mb(L(b)?b.trim():"")};d.prototype.fo=function(a){var b=N(Math.random()*(arguments.length-1));a.Qq(arguments[b+1])};d.prototype.gi=function(a){a.k(this.b.gi/1E3)};d.prototype.xe=function(a){a.k(this.b.xe)};p.ub=new d;p.Iq=function(){var a,d,g,k,f,l,p=this.b.Ra();a=0;for(g=this.ob.length;a<g;a++){k=this.ob[a];if(-1===k.time){if(!k.Am)continue}else if(k.time>
this.b.ve.Na)continue;p.Db=k.ff;p.Ab=k.Ab;p.xa=0;for(d in k.nb)k.nb.hasOwnProperty(d)&&(f=this.b.j[parseInt(d,10)].O(),l=k.nb[d],f.U=l.pm,za(f.c,l.Pd),f=l,Q(f.Pd),b.push(f));k.ff.Gq();this.b.fi(k.Z);k.Bk=!0}d=a=0;for(g=this.ob.length;a<g;a++)k=this.ob[a],this.ob[d]=k,k.Bk?(Qa(k.nb),Q(k.Z),r.push(k)):d++;ya(this.ob,d)}})();
(function(){fb=function(g,d){var p=g[1],r=g[3],b=g[4],a=g[5],e=g[6],z=g[7],x=g[8];d.e||(d.e={});d.Sa||(d.Sa={});d.ub||(d.ub={});var f=d.e,l=d.Sa,v=d.ub;r&&(f.pr=function(a,b){return Rb(this.x,a,b)},f.qr=function(a,b){return Rb(this.y,a,b)},f.yr=function(){var a=this.d;this.X();var b=this.ja;return!(b.right<a.na||b.bottom<a.oa||b.left>a.Da||b.top>a.Ca)},f.Ar=function(){this.X();var a=this.ja,b=this.b.Q;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},f.Lr=function(a,b,d){var e=this.O(),
f=e.wb();if(!f.length)return!1;var c=f[0],h=c,g=Na(c.x,c.y,b,d),k,l,p;k=1;for(l=f.length;k<l;k++)if(c=f[k],p=Na(c.x,c.y,b,d),0===a&&p<g||1===a&&p>g)g=p,h=c;e.Wf(h);return!0},l.ds=function(a){this.x!==a&&(this.x=a,this.da())},l.es=function(a){this.y!==a&&(this.y=a,this.da())},l.On=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.da()},l.$r=function(a,b){var d=a.yp(this);if(d){var e;d.Ci?(e=d.Ci(b,!0),d=d.Ci(b,!1)):(e=d.x,d=d.y);if(this.x!==e||this.y!==d)this.x=e,this.y=d,this.da()}},
l.Fr=function(a){0!==a&&(this.x+=Math.cos(this.g)*a,this.y+=Math.sin(this.g)*a,this.da())},l.Er=function(a,b){0!==b&&(this.x+=Math.cos(S(a))*b,this.y+=Math.sin(S(a))*b,this.da())},v.hk=function(a){a.k(this.x)},v.ik=function(a){a.k(this.y)},v.me=function(a){a.k(this.b.Pk(this))});b&&(f.or=function(a,b){return Rb(this.width,a,b)},f.lr=function(a,b){return Rb(this.height,a,b)},l.cs=function(a){this.width!==a&&(this.width=a,this.da())},l.Xr=function(a){this.height!==a&&(this.height=a,this.da())},l.as=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.da()},v.ks=function(a){a.k(this.width)},v.tr=function(a){a.k(this.height)},v.hr=function(a){this.X();a.k(this.ja.left)},v.jr=function(a){this.X();a.k(this.ja.top)},v.ir=function(a){this.X();a.k(this.ja.right)},v.gr=function(a){this.X();a.k(this.ja.bottom)});a&&(f.an=function(a,b){return Ka(this.g,S(b))<=S(a)},f.jn=function(a){return Ma(this.g,S(a))},f.hn=function(a,b){var d=Ia(a),e=Ia(b),f=Ga(this.g);return Ma(e,d)?Ma(f,
d)&&!Ma(f,e):!(!Ma(f,d)&&Ma(f,e))},l.Tr=function(a){a=S(Ea(a));isNaN(a)||this.g===a||(this.g=a,this.da())},l.Pr=function(a){0===a||isNaN(a)||(this.g+=S(a),this.g=Ga(this.g),this.da())},l.Qr=function(a){0===a||isNaN(a)||(this.g-=S(a),this.g=Ga(this.g),this.da())},l.Rr=function(a,b){var d=La(this.g,S(b),S(a));isNaN(d)||this.g===d||(this.g=d,this.da())},l.Sr=function(a,b,d){a=La(this.g,Math.atan2(d-this.y,b-this.x),S(a));isNaN(a)||this.g===a||(this.g=a,this.da())},l.bs=function(a,b){var d=Math.atan2(b-
this.y,a-this.x);isNaN(d)||this.g===d||(this.g=d,this.da())},v.fr=function(a){a.k(Ha(this.g))});p||(f.mr=function(a,b,d){return Rb(this.pa[a],b,d)},f.wr=function(a){return this.pa[a]},f.Mr=function(a,b){var d=this.O(),e=d.wb();if(!e.length)return!1;var f=e[0],c=f,h=f.pa[b],g,k,l;g=1;for(k=e.length;g<k;g++)if(f=e[g],l=f.pa[b],0===a&&l<h||1===a&&l>h)h=l,c=f;d.Wf(c);return!0},f.Kr=function(a){var b,d,e,f,c;if(this.b.Nk().Mi){c=this.O();if(c.U)for(c.U=!1,Q(c.c),Q(c.H),e=this.c,b=0,d=e.length;b<d;b++)f=
e[b],f.uid===a?c.H.push(f):c.c.push(f);else{e=b=0;for(d=c.c.length;b<d;b++)f=c.c[b],c.c[e]=f,f.uid===a?c.H.push(f):e++;ya(c.c,e)}this.Vb();return!!c.c.length}f=this.b.Uk(a);if(!f)return!1;c=this.O();if(!c.U&&-1===c.c.indexOf(f))return!1;if(this.r)for(a=f.type.Y,b=0,d=a.length;b<d;b++){if(a[b]===this)return c.Wf(f),this.Vb(),!0}else if(f.type===this)return c.Wf(f),this.Vb(),!0;return!1},f.tn=function(){return!0},f.un=function(){return!0},l.Yr=function(a,b){var d=this.pa;ga(d[a])?d[a]=ga(b)?b:parseFloat(b):
L(d[a])&&(d[a]=L(b)?b:b.toString())},l.er=function(a,b){var d=this.pa;ga(d[a])?d[a]=ga(b)?d[a]+b:d[a]+parseFloat(b):L(d[a])&&(d[a]=L(b)?d[a]+b:d[a]+b.toString())},l.gs=function(a,b){var d=this.pa;ga(d[a])&&(d[a]=ga(b)?d[a]-b:d[a]-parseFloat(b))},l.Ur=function(a,b){this.pa[a]=b?1:0},l.hs=function(a){this.pa[a]=1-this.pa[a]},l.sr=function(){this.b.fe(this)},l.ln||(l.ln=function(a){var b,d;try{b=JSON.parse(a)}catch(e){return}this.b.eh(this,b,!0);this.Yc&&this.Yc();if(this.p)for(a=0,b=this.p.length;a<
b;++a)d=this.p[a],d.Yc&&d.Yc()}),v.rr=function(a){var b=a.$d.c.length,d,e,f;d=0;for(e=this.b.Xb.length;d<e;d++)f=this.b.Xb[d],a.$d.r?0<=f.type.Y.indexOf(a.$d)&&b++:f.type===a.$d&&b++;a.V(b)},v.Or=function(a){a.V(a.$d.O().wb().length)},v.js=function(a){a.V(this.uid)},v.ur=function(a){a.V(this.nf())},v.bn||(v.bn=function(a){a.mb(JSON.stringify(this.b.zj(this,!0)))}));e&&(f.Br=function(){return this.visible},l.gk=function(a){!a!==!this.visible&&(this.visible=a,this.b.R=!0)},f.nr=function(a,b){return Rb(bb(100*
this.opacity),a,b)},l.Zr=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.R=!0)},v.Opacity=function(a){a.k(bb(100*this.opacity))});z&&(f.xr=function(a){return a?this.d===a:!1},f.Nr=function(a){var b=this.O(),d=b.wb();if(!d.length)return!1;var e=d[0],f=e,c,h;c=1;for(h=d.length;c<h;c++)if(e=d[c],0===a){if(e.d.index>f.d.index||e.d.index===f.d.index&&e.Gb()>f.Gb())f=e}else if(e.d.index<f.d.index||e.d.index===f.d.index&&e.Gb()<f.Gb())f=e;b.Wf(f);return!0},l.mn=function(){var a=
this.d,b=a.c;b.length&&b[b.length-1]===this||(a.Ee(this,!1),a.Ve(this,!1),this.b.R=!0)},l.Gr=function(){var a=this.d,b=a.c;b.length&&b[0]===this||(a.Ee(this,!1),a.Bq(this),this.b.R=!0)},l.Hr=function(a){a&&a!=this.d&&(this.d.Ee(this,!0),this.d=a,a.Ve(this,!0),this.b.R=!0)},l.ms=function(a,b){var d=0===a;if(b){var e=b.tp(this);e&&e.uid!==this.uid&&(this.d.index!==e.d.index&&(this.d.Ee(this,!0),this.d=e.d,e.d.Ve(this,!0)),this.d.mq(this,e,d),this.b.R=!0)}},v.Dr=function(a){a.V(this.d.Xl)},v.Cr=function(a){a.mb(this.d.name)},
v.ls=function(a){a.V(this.Gb())});x&&(l.Vr=function(a,b){if(this.b.m){var d=this.type.Bi(b);if(!(0>d)){var e=1===a;this.Xc[d]!==e&&(this.Xc[d]=e,this.Uc(),this.b.R=!0)}}},l.Wr=function(a,b,d){if(this.b.m){var e=this.type.Bi(a);0>e||(a=this.type.q[e],e=this.ba[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.m.Bp(a.Fa,b)&&(d/=100),e[b]!==d&&(e[b]=d,a.rb&&(this.b.R=!0))))}})};yb=function(){this.ai=this.Xh=!0;this.type.qg=!0;this.b.R=!0;var g,d,p=this.Yh;g=0;for(d=p.length;g<d;++g)p[g](this);this.d.hc&&
this.X()};zb=function(g){g&&this.Yh.push(g)};Bb=function(){if(this.Xh){var g=this.ja,d=this.tb;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Za*this.width,-this.$a*this.height);this.g?(g.offset(-this.x,-this.y),d.xm(g,this.g),d.offset(this.x,this.y),d.sk(g)):d.ag(g);g.normalize();this.Xh=!1;this.$q()}};var g=new O(0,0,0,0);Cb=function(){if(this.d.hc){var k=this.d.lb,d=this.ja;g.set(k.pb(d.left),k.qb(d.top),k.pb(d.right),k.qb(d.bottom));this.cb.Ig(g)||(this.cb.right<this.cb.left?
k.update(this,null,g):k.update(this,this.cb,g),this.cb.Cg(g),this.d.Pc=!0)}};Db=function(){if(this.ai&&this.Cd){this.X();var k=this.type.Ag,d=this.ja;g.set(k.pb(d.left),k.qb(d.top),k.pb(d.right),k.qb(d.bottom));this.dd.Ig(g)||(this.dd.right<this.dd.left?k.update(this,null,g):k.update(this,this.dd,g),this.dd.Cg(g),this.ai=!1)}};Ab=function(g,d){return this.ja.Ia(g,d)&&this.tb.Ia(g,d)?this.J&&!this.J.re()?(this.J.ke(this.width,this.height,this.g),this.J.Ia(g-this.x,d-this.y)):!0:!1};ub=function(){this.type.Mh();
return this.Nd};Eb=function(){this.d.Rj();return this.jc};Fb=function(){Q(this.G);var g,d;g=0;for(d=this.Xc.length;g<d;g++)this.Xc[g]&&this.G.push(this.type.q[g]);this.Xm=!!this.G.length};vb=function(){return"Inst"+this.km};ib=function(g){if(g&&g.Kb&&g.type!=this){var d,p,r;d=0;for(p=g.siblings.length;d<p;d++)if(r=g.siblings[d],r.type==this)return r}g=this.O().wb();return g.length?g[0]:null};jb=function(g){var d=this.O().wb();return d.length?d[g.nf()%d.length]:null};hb=function(){if(this.Le&&!this.r){var g,
d;g=0;for(d=this.c.length;g<d;g++)this.c[g].Nd=g;var p=g,r=this.b.Xb;g=0;for(d=r.length;g<d;++g)r[g].type===this&&(r[g].Nd=p++);this.Le=!1}};sb=function(g){if(g<this.c.length)return this.c[g];g-=this.c.length;var d=this.b.Xb,p,r;p=0;for(r=d.length;p<r;++p)if(d[p].type===this){if(0===g)return d[p];--g}return null};kb=function(){return this.wd[this.Cc]};lb=function(){this.Cc++;this.Cc===this.wd.length?this.wd.push(new gb(this)):this.wd[this.Cc].U=!0};mb=function(){this.Cc++;this.Cc===this.wd.length&&
this.wd.push(new gb(this));var g=this.wd[this.Cc],d=this.wd[this.Cc-1];d.U?g.U=!0:(g.U=!1,za(g.c,d.c),za(g.H,d.H))};nb=function(){this.Cc--};ob=function(g){var d,p,r,b,a,e=0;if(!this.r)for(d=0,p=this.Y.length;d<p;d++)for(a=this.Y[d],r=0,b=a.ka.length;r<b;r++){if(g===a.ka[r].name)return this.S.lastBehIndex=e,a.ka[r];e++}d=0;for(p=this.ka.length;d<p;d++){if(g===this.ka[d].name)return this.S.lastBehIndex=e,this.ka[d];e++}return null};pb=function(g){return this.Ng(g)?this.S.lastBehIndex:-1};qb=function(g){var d,
p;d=0;for(p=this.q.length;d<p;d++)if(this.q[d].name===g)return d;return-1};rb=function(){if(this.Kb&&!this.r){var g,d,p,r,b,a,e;this.Mh();a=this.O();var z=a.U,x=(g=this.b.Ra())&&g.Db&&g.Db.cc;g=0;for(d=this.gb.length;g<d;g++)if(b=this.gb[g],b!==this&&(b.Mh(),e=b.O(),e.U=z,!z)){Q(e.c);p=0;for(r=a.c.length;p<r;++p)e.c[p]=b.Rk(a.c[p].Nd);if(x)for(Q(e.H),p=0,r=a.H.length;p<r;++p)e.H[p]=b.Rk(a.H[p].Nd)}}};tb=function(){return"Type"+this.F};Rb=function(g,d,p){if("undefined"===typeof g||"undefined"===typeof p)return!1;
switch(d){case 0:return g===p;case 1:return g!==p;case 2:return g<p;case 3:return g<=p;case 4:return g>p;case 5:return g>=p;default:return!1}}})();var $b={};function Y(g){this.b=g}
(function(){function g(){}function k(){}var d=Y.prototype;d.Ha=function(d){this.la=d;this.b=d.b};d.Ha.prototype.T=function(){};d.ia=function(d){this.type=d;this.b=d.b};d.ia.prototype.T=function(){var d=this;window.addEventListener("resize",function(){d.b.trigger(Y.prototype.e.Hn,d)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){d.b.trigger(Y.prototype.e.Dn,d)}),window.addEventListener("offline",function(){d.b.trigger(Y.prototype.e.Cn,d)}));"undefined"!==typeof window.applicationCache&&
(window.applicationCache.addEventListener("updateready",function(){d.b.xe=1;d.b.trigger(Y.prototype.e.fk,d)}),window.applicationCache.addEventListener("progress",function(g){d.b.xe=g.loaded/g.total}));this.b.$b||(document.addEventListener("appMobi.device.update.available",function(){d.b.trigger(Y.prototype.e.fk,d)}),document.addEventListener("backbutton",function(){d.b.trigger(Y.prototype.e.Ph,d)}),document.addEventListener("menubutton",function(){d.b.trigger(Y.prototype.e.Zj,d)}),document.addEventListener("searchbutton",
function(){d.b.trigger(Y.prototype.e.In,d)}),document.addEventListener("tizenhwkey",function(g){var b;switch(g.keyName){case "back":b=d.b.trigger(Y.prototype.e.Ph,d);!b&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(b=d.b.trigger(Y.prototype.e.Zj,d))||g.preventDefault()}}));this.b.Vg&&(WinJS.Application.onbackclick=function(){return!!d.b.trigger(Y.prototype.e.Ph,d)});this.b.Un(function(g){g?d.b.trigger(Y.prototype.e.En,d):d.b.trigger(Y.prototype.e.Fn,d)});
this.dq="undefined"!==typeof window.is_scirra_arcade};g.prototype.Dn=function(){return!0};g.prototype.Cn=function(){return!0};g.prototype.fk=function(){return!0};g.prototype.Fn=function(){return!0};g.prototype.En=function(){return!0};g.prototype.Hn=function(){return!0};g.prototype.Ph=function(){return!0};g.prototype.Zj=function(){return!0};g.prototype.In=function(){return!0};d.e=new g;k.prototype.gn=function(d,g){this.b.jb?CocoonJS.App.openURL(d):this.b.Jb?ejecta.openURL(d):this.b.Qi?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(d)):
navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(d,{openExternal:!0}):this.b.Ib?window.open(d,"_system"):this.dq||this.b.K||window.open(d,g)};d.Sa=new k;d.ub=new function(){}})();function cc(g){this.b=g}
(function(){function g(){}function k(){}var d=cc.prototype;d.Ha=function(d){this.la=d;this.b=d.b};d.Ha.prototype.T=function(){};d.ia=function(d){this.type=d;this.b=d.b};var p=d.ia.prototype;p.T=function(){this.b.K?F("[Construct 2] Button plugin not supported on this platform - the object will not be created"):(this.vf=1===this.ha[0],this.Hb=document.createElement("input"),this.N=this.vf?document.createElement("label"):this.Hb,this.Yg=null,this.Hb.type=this.vf?"checkbox":"button",this.Hb.id=this.ha[6],
jQuery(this.N).appendTo(this.b.zg?this.b.zg:"body"),this.vf?(jQuery(this.Hb).appendTo(this.N),this.Yg=document.createTextNode(this.ha[1]),jQuery(this.N).append(this.Yg),this.Hb.checked=0!==this.ha[7],jQuery(this.N).css("font-family","sans-serif"),jQuery(this.N).css("display","inline-block"),jQuery(this.N).css("color","black")):this.Hb.value=this.ha[1],this.N.title=this.ha[2],this.Hb.disabled=0===this.ha[4],this.Yn=0!==this.ha[5],this.Hd=!1,0===this.ha[3]&&(jQuery(this.N).hide(),this.visible=!1,this.Hd=
!0),this.Hb.onclick=function(d){return function(b){b.stopPropagation();d.b.fa=!0;d.b.trigger(cc.prototype.e.Vj,d);d.b.fa=!1}}(this),this.N.addEventListener("touchstart",function(d){d.stopPropagation()},!1),this.N.addEventListener("touchmove",function(d){d.stopPropagation()},!1),this.N.addEventListener("touchend",function(d){d.stopPropagation()},!1),jQuery(this.N).mousedown(function(d){d.stopPropagation()}),jQuery(this.N).mouseup(function(d){d.stopPropagation()}),jQuery(this.N).keydown(function(d){d.stopPropagation()}),
jQuery(this.N).keyup(function(d){d.stopPropagation()}),this.tl=this.ul=this.ll=this.ql=this.sl=this.nl=0,this.Vm(!0),this.b.Im(this))};p.Ob=function(){var d={tooltip:this.N.title,disabled:!!this.Hb.disabled};this.vf?(d.checked=!!this.Hb.checked,d.text=this.Yg.nodeValue):d.text=this.N.value;return d};p.oc=function(d){this.N.title=d.tooltip;this.Hb.disabled=d.disabled;this.vf?(this.Hb.checked=d.checked,this.Yg.nodeValue=d.text):this.N.value=d.text};p.Nf=function(){this.b.K||(jQuery(this.N).remove(),
this.N=null)};p.Rc=function(){this.Vm()};p.Vm=function(d){if(!this.b.K){var b=this.d.qa(this.x,this.y,!0),a=this.d.qa(this.x,this.y,!1),e=this.d.qa(this.x+this.width,this.y+this.height,!0),g=this.d.qa(this.x+this.width,this.y+this.height,!1),k=this.b.width/this.b.devicePixelRatio,f=this.b.height/this.b.devicePixelRatio;!this.visible||!this.d.visible||0>=e||0>=g||b>=k||a>=f?(this.Hd||jQuery(this.N).hide(),this.Hd=!0):(1>b&&(b=1),1>a&&(a=1),e>=k&&(e=k-1),g>=f&&(g=f-1),k=window.innerWidth,f=window.innerHeight,
d||this.nl!==b||this.sl!==a||this.ql!==e||this.ll!==g||this.ul!==k||this.tl!==f?(this.nl=b,this.sl=a,this.ql=e,this.ll=g,this.ul=k,this.tl=f,this.Hd&&(jQuery(this.N).show(),this.Hd=!1),d=Math.round(b)+jQuery(this.b.canvas).offset().left,k=Math.round(a)+jQuery(this.b.canvas).offset().top,jQuery(this.N).css("position","absolute"),jQuery(this.N).offset({left:d,top:k}),jQuery(this.N).width(Math.round(e-b)),jQuery(this.N).height(Math.round(g-a)),this.Yn&&jQuery(this.N).css("font-size",this.d.Fb(!0)/this.b.devicePixelRatio-
.2+"em")):this.Hd&&(jQuery(this.N).show(),this.Hd=!1))}};p.Dc=function(){};p.hb=function(){};g.prototype.Vj=function(){return!0};d.e=new g;k.prototype.gk=function(d){this.b.K||(this.visible=0!==d)};k.prototype.Nn=function(d,b){this.b.K||jQuery(this.N).css(d,b)};d.Sa=new k;d.ub=new function(){}})();function dc(g){this.b=g}
(function(){function g(){}function k(){}var d=dc.prototype;d.Ha=function(b){this.la=b;this.b=b.b};d.Ha.prototype.T=function(){};d.ia=function(b){this.type=b;this.b=b.b;this.Zh=Array(4);this.Km=this.Jh=this.Ne=this.pd=this.od=0;this.Fi=!1};var p=d.ia.prototype;p.T=function(){var b=this;if(!this.b.K){jQuery(document).mousemove(function(a){b.Pf(a)});jQuery(document).mousedown(function(a){b.Of(a)});jQuery(document).mouseup(function(a){b.Qf(a)});jQuery(document).dblclick(function(a){b.qq(a)});var a=function(a){b.vq(a)};
document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var r={left:0,top:0};p.Pf=function(b){var a=this.b.K?r:jQuery(this.b.canvas).offset();this.od=b.pageX-a.left;this.pd=b.pageY-a.top};p.Tl=function(){return 0<this.b.Ka?!0:0<=this.od&&0<=this.pd&&this.od<this.b.width&&this.pd<this.b.height};p.Of=function(b){this.Tl()&&(this.Zh[b.which]=!0,this.b.fa=!0,this.b.trigger(dc.prototype.e.qn,this),this.Ne=b.which-1,this.Jh=0,this.b.trigger(dc.prototype.e.Uj,this),
this.b.trigger(dc.prototype.e.bk,this),this.b.fa=!1)};p.Qf=function(b){this.Zh[b.which]&&(this.b.Rg&&!this.b.Rd&&b.preventDefault(),this.b.Rg=!0,this.Zh[b.which]=!1,this.b.fa=!0,this.Ne=b.which-1,this.b.trigger(dc.prototype.e.Gn,this),this.b.fa=!1)};p.qq=function(b){this.Tl()&&(b.preventDefault(),this.b.fa=!0,this.Ne=b.which-1,this.Jh=1,this.b.trigger(dc.prototype.e.Uj,this),this.b.trigger(dc.prototype.e.bk,this),this.b.fa=!1)};p.vq=function(b){this.Km=0>(b.wheelDelta?b.wheelDelta:b.detail?-b.detail:
0)?0:1;this.Fi=!1;this.b.fa=!0;this.b.trigger(dc.prototype.e.Ln,this);this.b.fa=!1;this.Fi&&db(b)&&b.preventDefault()};g.prototype.Uj=function(b,a){return b===this.Ne&&a===this.Jh};g.prototype.qn=function(){return!0};g.prototype.Gn=function(b){return b===this.Ne};g.prototype.bk=function(b,a,d){return b!==this.Ne||a!==this.Jh?!1:this.b.ig(d,this.od,this.pd)};g.prototype.Ln=function(b){this.Fi=!0;return b===this.Km};d.e=new g;d.Sa=new function(){};k.prototype.hk=function(b,a){var d,g,k,f,l;ea(a)?(d=
this.b.Hc(0),g=d.scale,k=d.Qa,f=d.ab,l=d.g,d.scale=1,d.Qa=1,d.ab=1,d.g=0,b.k(d.ea(this.od,this.pd,!0)),d.scale=g,d.Qa=k,d.ab=f,d.g=l):(d=ga(a)?this.b.Hc(a):this.b.lf(a))?b.k(d.ea(this.od,this.pd,!0)):b.k(0)};k.prototype.ik=function(b,a){var d,g,k,f,l;ea(a)?(d=this.b.Hc(0),g=d.scale,k=d.Qa,f=d.bb,l=d.g,d.scale=1,d.Qa=1,d.bb=1,d.g=0,b.k(d.ea(this.od,this.pd,!1)),d.scale=g,d.Qa=k,d.bb=f,d.g=l):(d=ga(a)?this.b.Hc(a):this.b.lf(a))?b.k(d.ea(this.od,this.pd,!1)):b.k(0)};d.ub=new k})();
function bc(g){this.b=g}
(function(){function g(){if(0===this.ji.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Ke?b.drawImage(this.I,this.Be,this.Ce,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.I,0,0,this.width,this.height);this.ji=a.toDataURL("image/png")}return this.ji}function k(){}function d(a){a[0]=0;a[1]=0;a[2]=0;l.push(a)}function p(a,b){return a<b?""+a+","+b:""+b+","+a}function r(a,b,c,d){b=b.uid;c=c.uid;var e=p(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=l.length?l.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function b(a,b,c){b=p(b.uid,c.uid);a.hasOwnProperty(b)&&(d(a[b]),delete a[b])}function a(a,b,c){b=p(b.uid,c.uid);if(a.hasOwnProperty(b))return v=a[b][2],!0;v=-2;return!1}var e=bc.prototype;e.Ha=function(a){this.la=a;this.b=a.b};var z=e.Ha.prototype;z.T=function(){if(!this.r){var a,b,c,d,e,f,k,l,n;this.Ub=[];this.qf=!1;a=0;for(b=this.Ta.length;a<b;a++){e=this.Ta[a];k={};k.name=e[0];k.speed=e[1];k.loop=e[2];k.vj=e[3];k.xh=e[4];k.em=
e[5];k.F=e[6];k.frames=[];c=0;for(d=e[7].length;c<d;c++)f=e[7][c],l={},l.Fj=f[0],l.Gj=f[1],l.Be=f[2],l.Ce=f[3],l.width=f[4],l.height=f[5],l.duration=f[6],l.Za=f[7],l.$a=f[8],l.Ii=f[9],l.ph=f[10],l.fm=f[11],l.Ke=0!==l.width,l.ji="",l.rs=g,n={left:0,top:0,right:1,bottom:1},l.Bj=n,l.W=null,(n=this.b.np(f[0]))?l.I=n:(l.I=new Image,l.I.io=f[0],l.I.yk=f[1],l.I.bo=null,this.b.Zm(l.I,f[0])),k.frames.push(l),this.Ub.push(l);this.Ta[a]=k}}};z.Um=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],
c.Fg=c.Bb.W};z.jj=function(){if(!this.r){var a,b,c;a=0;for(b=this.Ub.length;a<b;++a)c=this.Ub[a],c.I.bo=null,c.W=null;this.qf=!1;this.Um()}};z.kj=function(){if(!this.r&&this.c.length){var a,b,c;a=0;for(b=this.Ub.length;a<b;++a)c=this.Ub[a],c.W=this.b.m.gh(c.I,!1,this.b.L,c.fm);this.Um()}};z.Xi=function(){if(!this.r&&!this.qf&&this.b.m){var a,b,c;a=0;for(b=this.Ub.length;a<b;++a)c=this.Ub[a],c.W=this.b.m.gh(c.I,!1,this.b.L,c.fm);this.qf=!0}};z.Nj=function(){if(!this.r&&!this.c.length&&this.qf){var a,
b,c;a=0;for(b=this.Ub.length;a<b;++a)c=this.Ub[a],this.b.m.deleteTexture(c.W),c.W=null;this.qf=!1}};var x=[];z.qj=function(a){var b,c,d;Q(x);b=0;for(c=this.Ub.length;b<c;++b)d=this.Ub[b].I,-1===x.indexOf(d)&&(a.drawImage(d,0,0),x.push(d))};e.ia=function(a){this.type=a;this.b=a.b;a=this.type.Ta[0].frames[0].ph;this.qc?this.J.bg(a):this.J=new Xa(a)};var f=e.ia.prototype;f.T=function(){this.visible=0===this.ha[0];this.Cd=0!==this.ha[3];1===this.type.Ta.length&&1===this.type.Ta[0].frames.length||0===
this.type.Ta[0].speed||this.b.Im(this);this.aa=this.Mk(this.ha[1])||this.type.Ta[0];this.n=this.ha[2];0>this.n&&(this.n=0);this.n>=this.aa.frames.length&&(this.n=this.aa.frames.length-1);var a=this.aa.frames[this.n];this.J.bg(a.ph);this.Za=a.Za;this.$a=a.$a;this.df=this.aa.speed;this.qc?this.kc.reset():this.kc=new Ua;this.Gc=this.kc.Na;this.Ad=!0;this.xc=0;this.zd=!0;this.ei=this.ok="";this.co=0;this.di=-1;this.type.Xi();var b,c,d,e,f,g,k,a=0;for(b=this.type.Ta.length;a<b;a++)for(e=this.type.Ta[a],
c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.I.width,f.height=f.I.height),f.Ke&&(k=f.I,g=f.Bj,g.left=f.Be/k.width,g.top=f.Ce/k.height,g.right=(f.Be+f.width)/k.width,g.bottom=(f.Ce+f.height)/k.height,0===f.Be&&0===f.Ce&&f.width===k.width&&f.height===k.height&&(f.Ke=!1));this.Bb=this.aa.frames[this.n];this.Fg=this.Bb.W};f.Ob=function(){var a={a:this.aa.F,f:this.n,cas:this.df,fs:this.Gc,ar:this.xc,at:this.kc.Na};this.Ad||(a.ap=this.Ad);this.zd||(a.af=this.zd);return a};f.oc=function(a){var b=
this.qp(a.a);b&&(this.aa=b);this.n=a.f;0>this.n&&(this.n=0);this.n>=this.aa.frames.length&&(this.n=this.aa.frames.length-1);this.df=a.cas;this.Gc=a.fs;this.xc=a.ar;this.kc.reset();this.kc.Na=a.at;this.Ad=a.hasOwnProperty("ap")?a.ap:!0;this.zd=a.hasOwnProperty("af")?a.af:!0;this.Bb=this.aa.frames[this.n];this.Fg=this.Bb.W;this.J.bg(this.Bb.ph);this.Za=this.Bb.Za;this.$a=this.Bb.$a};f.Uh=function(a){this.n=a?0:this.aa.frames.length-1;this.Ad=!1;this.ok=this.aa.name;this.b.trigger(bc.prototype.e.pn,
this);this.b.trigger(bc.prototype.e.nn,this);this.xc=0};f.lo=function(){return this.kc.Na};f.Rc=function(){this.kc.add(this.b.Pk(this));this.ei.length&&this.oo();0<=this.di&&this.po();var a=this.kc.Na,b=this.aa,c=b.frames[this.n],d=c.duration/this.df;this.Ad&&a>=this.Gc+d&&(this.zd?this.n++:this.n--,this.Gc+=d,this.n>=b.frames.length&&(b.em?(this.zd=!1,this.n=b.frames.length-2):b.loop?this.n=b.xh:(this.xc++,this.xc>=b.vj?this.Uh(!1):this.n=b.xh)),0>this.n&&(b.em?(this.n=1,this.zd=!0,b.loop||(this.xc++,
this.xc>=b.vj&&this.Uh(!0))):b.loop?this.n=b.xh:(this.xc++,this.xc>=b.vj?this.Uh(!0):this.n=b.xh)),0>this.n?this.n=0:this.n>=b.frames.length&&(this.n=b.frames.length-1),a>this.Gc+b.frames[this.n].duration/this.df&&(this.Gc=a),a=b.frames[this.n],this.ie(c,a),this.b.R=!0)};f.Mk=function(a){var b,c,d;b=0;for(c=this.type.Ta.length;b<c;b++)if(d=this.type.Ta[b],cb(d.name,a))return d;return null};f.qp=function(a){var b,c,d;b=0;for(c=this.type.Ta.length;b<c;b++)if(d=this.type.Ta[b],d.F===a)return d;return null};
f.oo=function(){var a=this.aa.frames[this.n],b=this.Mk(this.ei);this.ei="";!b||cb(b.name,this.aa.name)&&this.Ad||(this.aa=b,this.df=b.speed,0>this.n&&(this.n=0),this.n>=this.aa.frames.length&&(this.n=this.aa.frames.length-1),1===this.co&&(this.n=0),this.Ad=!0,this.Gc=this.kc.Na,this.zd=!0,this.ie(a,this.aa.frames[this.n]),this.b.R=!0)};f.po=function(){var a=this.aa.frames[this.n],b=this.n;this.n=N(this.di);0>this.n&&(this.n=0);this.n>=this.aa.frames.length&&(this.n=this.aa.frames.length-1);b!==this.n&&
(this.ie(a,this.aa.frames[this.n]),this.Gc=this.kc.Na,this.b.R=!0);this.di=-1};f.ie=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Za=b.Za;this.$a=b.$a;this.J.bg(b.ph);this.da();this.Bb=b;this.Fg=b.W;c=0;for(d=this.p.length;c<d;c++)e=this.p[c],e.tq&&e.tq(a,b);this.b.trigger(bc.prototype.e.ie,this)};f.Dc=function(a){a.globalAlpha=this.opacity;var b=this.Bb,c=b.Ke,d=b.I,e=this.x,f=this.y,g=this.width,k=this.height;if(0===this.g&&0<=
g&&0<=k)e-=this.Za*g,f-=this.$a*k,this.b.rd&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.Be,b.Ce,b.width,b.height,e,f,g,k):a.drawImage(d,e,f,g,k);else{this.b.rd&&(e=Math.round(e),f=Math.round(f));a.save();var l=0<g?1:-1,n=0<k?1:-1;a.translate(e,f);1===l&&1===n||a.scale(l,n);a.rotate(this.g*l*n);e=0-this.Za*ka(g);f=0-this.$a*ka(k);c?a.drawImage(d,b.Be,b.Ce,b.width,b.height,e,f,ka(g),ka(k)):a.drawImage(d,e,f,ka(g),ka(k));a.restore()}};f.Wh=function(a){this.hb(a)};f.hb=function(a){a.zb(this.Fg);
a.Ge(this.opacity);var b=this.Bb,c=this.tb;if(this.b.rd){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Ke?a.Oc(c.Oa+d,c.Pa+e,c.eb+d,c.fb+e,c.Xa+d,c.Ya+e,c.Va+d,c.Wa+e,b.Bj):a.uh(c.Oa+d,c.Pa+e,c.eb+d,c.fb+e,c.Xa+d,c.Ya+e,c.Va+d,c.Wa+e)}else b.Ke?a.Oc(c.Oa,c.Pa,c.eb,c.fb,c.Xa,c.Ya,c.Va,c.Wa,b.Bj):a.uh(c.Oa,c.Pa,c.eb,c.fb,c.Xa,c.Ya,c.Va,c.Wa)};f.vp=function(a){var b=this.Bb,c,d;c=0;for(d=b.Ii.length;c<d;c++)if(cb(a,b.Ii[c][0]))return c;return-1};f.Ci=function(a,b){var c=this.Bb,d=c.Ii,
e;L(a)?e=this.vp(a):e=a-1;e=N(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Za)*this.width,d=d[e][2],d=(d-c.$a)*this.height,c=Math.cos(this.g);e=Math.sin(this.g);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var l=[],v=-2,n=[];k.prototype.sn=function(e){if(!e)return!1;var f=this.b,c=f.Nk(),g=c.type,k=null;c.S.collmemory?k=c.S.collmemory:(k={},c.S.collmemory=k,f.Sn(function(a){var b=c.S.collmemory;a=a.uid;var e,f;for(e in b)b.hasOwnProperty(e)&&(f=b[e],f[0]===a||f[1]===
a)&&(d(b[e]),delete b[e])}));var l=g.O(),p=e.O(),l=l.wb(),z,t,x,E,y,M,I,G=this.b.Me,va=G-1,na=f.Ra().Db;for(t=0;t<l.length;t++){x=l[t];p.U?(x.X(),this.b.sp(x.d,e,x.ja,n),z=n):z=p.wb();for(E=0;E<z.length;E++)y=z[E],f.Uq(x,y)||f.eo(x,y)?(M=a(k,x,y),M=!M||v<va,r(k,x,y,G),M&&(f.sh(na.Z),M=g.O(),I=e.O(),M.U=!1,I.U=!1,g===e?(M.c.length=2,M.c[0]=x,M.c[1]=y,g.Vb()):(M.c.length=1,I.c.length=1,M.c[0]=x,I.c[0]=y,g.Vb(),e.Vb()),na.Hq(),f.ae(na.Z))):b(k,x,y);Q(n)}return!1};var y=new ba,t=!1;new O(0,0,0,0);z.finish=
function(a){if(t){if(a){var b=this.b.Ra().Db.cc;a=null.O();var c=y.ic(),d,e;if(a.U){a.U=!1;Q(a.c);d=0;for(e=c.length;d<e;++d)a.c[d]=c[d];if(b)for(Q(a.H),d=0,e=null.c.length;d<e;++d)c=null.c[d],y.contains(c)||a.H.push(c)}else if(b)for(b=a.c.length,d=0,e=c.length;d<e;++d)a.c[b+d]=c[d],Ca(a.H,c[d]);else za(a.c,c);null.Vb()}y.clear();t=!1}};k.prototype.nn=function(a){return cb(this.ok,a)};k.prototype.pn=function(){return!0};k.prototype.ie=function(){return!0};e.e=new k;e.Sa=new function(){};e.ub=new function(){}})();
function ec(g){this.b=g}
(function(){var g=ec.prototype;g.Ha=function(d){this.la=d;this.b=d.b};var k=g.Ha.prototype;k.T=function(){this.r||(this.I=new Image,this.I.yk=this.Gj,this.b.Zm(this.I,this.Fj),this.W=this.pattern=null)};k.jj=function(){this.r||(this.W=null)};k.kj=function(){if(!this.r&&this.c.length){this.W||(this.W=this.b.m.gh(this.I,!0,this.b.L,this.Hj));var d,g;d=0;for(g=this.c.length;d<g;d++)this.c[d].W=this.W}};k.Xi=function(){this.r||this.W||!this.b.m||(this.W=this.b.m.gh(this.I,!0,this.b.L,this.Hj))};k.Nj=
function(){this.r||this.c.length||!this.W||(this.b.m.deleteTexture(this.W),this.W=null)};k.qj=function(d){d.drawImage(this.I,0,0)};g.ia=function(d){this.type=d;this.b=d.b};k=g.ia.prototype;k.T=function(){this.visible=0===this.ha[0];this.Zf=new O(0,0,0,0);this.Yk=!1;this.I=this.type.I;this.b.m?(this.type.Xi(),this.W=this.type.W):(this.type.pattern||(this.type.pattern=this.b.M.createPattern(this.type.I,"repeat")),this.pattern=this.type.pattern)};k.Yc=function(){this.Yk=!1;this.I=this.type.I};k.Nf=function(){this.b.m&&
this.Yk&&this.W&&(this.b.m.deleteTexture(this.W),this.W=null)};k.Dc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var g=this.x,k=this.y;this.b.rd&&(g=Math.round(g),k=Math.round(k));var b=-(this.Za*this.width),a=-(this.$a*this.height),e=b%this.I.width,z=a%this.I.height;0>e&&(e+=this.I.width);0>z&&(z+=this.I.height);d.translate(g,k);d.rotate(this.g);d.translate(e,z);d.fillRect(b-e,a-z,this.width,this.height);d.restore()};k.Wh=function(d){this.hb(d)};k.hb=function(d){d.zb(this.W);
d.Ge(this.opacity);var g=this.Zf;g.right=this.width/this.I.width;g.bottom=this.height/this.I.height;var k=this.tb;if(this.b.rd){var b=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;d.Oc(k.Oa+b,k.Pa+a,k.eb+b,k.fb+a,k.Xa+b,k.Ya+a,k.Va+b,k.Wa+a,g)}else d.Oc(k.Oa,k.Pa,k.eb,k.fb,k.Xa,k.Ya,k.Va,k.Wa,g)};g.e=new function(){};g.Sa=new function(){};g.ub=new function(){}})();function Z(g){this.b=g}
(function(){function g(a){x=a.x;f=a.y;l=a.z}function k(a){v=a.x;n=a.y;y=a.z}function d(a,b,c,d){var e;e=t.length?t.pop():new p;e.init(a,b,c,d);return e}function p(){this.fg=this.id=this.y=this.x=this.Dh=this.Ch=this.Vi=this.time=this.Dj=0;this.mg=this.Kh=!1}function r(){}function b(){}var a=Z.prototype;a.Ha=function(a){this.la=a;this.b=a.b};a.Ha.prototype.T=function(){};a.ia=function(a){this.type=a;this.b=a.b;this.touches=[];this.cj=!1};var e=a.ia.prototype,z={left:0,top:0};e.kf=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 x=0,f=0,l=0,v=0,n=0,y=0,t=[];p.prototype.init=function(a,b,c,d){var e=T();this.Dj=this.Vi=this.time=e;this.Ch=a;this.Dh=b;this.x=a;this.y=b;this.id=c;this.fg=d;this.mg=this.Kh=!1};p.prototype.update=function(a,b,c){this.Vi=this.time;this.time=a;this.x=b;this.y=c;!this.mg&&15<=Na(this.Ch,this.Dh,this.x,this.y)&&(this.mg=!0)};p.prototype.kq=function(a,b){!this.Kh&&500<=T()-this.Dj&&!this.mg&&15>Na(this.Ch,this.Dh,
this.x,this.y)&&(this.Kh=!0,a.vc=this.fg,a.Oe=this.id,a.pe=b,a.b.trigger(Z.prototype.e.yn,a),a.Ac=this.x,a.Bc=this.y,a.b.trigger(Z.prototype.e.zn,a),a.pe=0)};var q=-1E3,m=-1E3,c=-1E4;p.prototype.Ql=function(a,b){if(!this.Kh){var d=T();333>=d-this.Dj&&!this.mg&&15>Na(this.Ch,this.Dh,this.x,this.y)&&(a.vc=this.fg,a.Oe=this.id,a.pe=b,666>=d-c&&25>Na(q,m,this.x,this.y)?(a.b.trigger(Z.prototype.e.vn,a),a.Ac=this.x,a.Bc=this.y,a.b.trigger(Z.prototype.e.wn,a),m=q=-1E3,c=-1E4):(a.b.trigger(Z.prototype.e.Jn,
a),a.Ac=this.x,a.Bc=this.y,a.b.trigger(Z.prototype.e.Kn,a),q=this.x,m=this.y,c=d),a.pe=0)}};e.T=function(){this.bq=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.pe=this.Oe=this.vc=this.Bc=this.Ac=this.lk=this.kk=this.jk=this.Rn=this.Qn=this.Pn=this.Vf=this.Uf=this.Tf=0;this.cr=0!==this.ha[0];var a=0<this.b.Ka?document:this.b.canvas,b=document;this.b.$b?b=a=window.Canvas:this.b.jb&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.Sf(a)},
!1),a.addEventListener("pointermove",function(a){c.Rf(a)},!1),b.addEventListener("pointerup",function(a){c.Nc(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Nc(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.Sf(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Rf(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Nc(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Nc(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.oh(a)},
!1),a.addEventListener("touchmove",function(a){c.nh(a)},!1),b.addEventListener("touchend",function(a){c.De(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.De(a,!0)},!1));if(this.bq){var d=function(a){a=a.reading;c.jk=a.accelerationX;c.kk=a.accelerationY;c.lk=a.accelerationZ},e=function(a){a=a.reading;c.Tf=a.yawDegrees;c.Uf=a.pitchDegrees;c.Vf=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var l=Windows.Devices.Sensors.Inclinometer.getDefault();l&&(l.reportInterval=Math.max(l.minimumReportInterval,16),l.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),l&&l.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),l&&l.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.Tf=a.alpha||
0;c.Uf=a.beta||0;c.Vf=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Pn=a.accelerationIncludingGravity.x||0,c.Qn=a.accelerationIncludingGravity.y||0,c.Rn=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.jk=a.acceleration.x||0,c.kk=a.acceleration.y||0,c.lk=a.acceleration.z||0)},!1);this.cr&&!this.b.K&&(jQuery(document).mousemove(function(a){c.Pf(a)}),jQuery(document).mousedown(function(a){c.Of(a)}),jQuery(document).mouseup(function(a){c.Qf(a)}));
this.b.uf&&!this.b.$b&&AppMobi.accelerometer.watchAcceleration(g,{frequency:40,adjustForRotation:!0});this.b.Ib&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(k,null,{frequency:40});this.b.Vq(this)};e.Rf=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.kf(a.pointerId),c=T();if(0<=b){var d=this.b.K?z:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};e.Sf=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&db(a)&&a.preventDefault();var b=this.b.K?z:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;T();this.vc=this.touches.length;this.Oe=a.pointerId;this.touches.push(d(c,b,a.pointerId,this.vc));this.b.fa=!0;this.b.trigger(Z.prototype.e.ak,this);this.b.trigger(Z.prototype.e.ek,this);this.Ac=c;this.Bc=b;this.b.trigger(Z.prototype.e.dk,this);this.b.fa=
!1}};e.Nc=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&db(a)&&a.preventDefault();var c=this.kf(a.pointerId);this.vc=0<=c?this.touches[c].fg:-1;this.Oe=0<=c?this.touches[c].id:-1;this.b.fa=!0;this.b.trigger(Z.prototype.e.$j,this);this.b.trigger(Z.prototype.e.ck,this);0<=c&&(b||this.touches[c].Ql(this,c),100>t.length&&t.push(this.touches[c]),this.touches.splice(c,1));this.b.fa=!1}};e.nh=function(a){a.preventDefault&&a.preventDefault();var b=T(),
c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.kf(e.identifier),0<=f){var g=this.b.K?z:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};e.oh=function(a){a.preventDefault&&db(a)&&a.preventDefault();var b=this.b.K?z:jQuery(this.b.canvas).offset();T();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.kf(f.identifier),-1===g){g=f.pageX-b.left;var k=f.pageY-b.top;this.vc=
this.touches.length;this.Oe=f.identifier;this.touches.push(d(g,k,f.identifier,this.vc));this.b.trigger(Z.prototype.e.ak,this);this.b.trigger(Z.prototype.e.ek,this);this.Ac=g;this.Bc=k;this.b.trigger(Z.prototype.e.dk,this)}this.b.fa=!1};e.De=function(a,b){a.preventDefault&&db(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.kf(e.identifier),0<=e&&(this.vc=this.touches[e].fg,this.Oe=this.touches[e].id,this.b.trigger(Z.prototype.e.$j,
this),this.b.trigger(Z.prototype.e.ck,this),b||this.touches[e].Ql(this,e),100>t.length&&t.push(this.touches[e]),this.touches.splice(e,1));this.b.fa=!1};e.Wh=function(){return this.b.uf&&0===this.Tf&&0!==l?90*l:this.b.Ib&&0===this.Tf&&0!==y?90*y:this.Tf};e.lo=function(){return this.b.uf&&0===this.Uf&&0!==f?-90*f:this.b.Ib&&0===this.Uf&&0!==n?90*n:this.Uf};e.ps=function(){return this.b.uf&&0===this.Vf&&0!==x?90*x:this.b.Ib&&0===this.Vf&&0!==v?90*v:this.Vf};e.Of=function(a){this.oh({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]});this.cj=!0};e.Pf=function(a){this.cj&&this.nh({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};e.Qf=function(a){a.preventDefault&&this.b.Rg&&!this.b.Rd&&a.preventDefault();this.b.Rg=!0;this.De({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.cj=!1};e.Hh=function(){var a,b,c,d=T();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Vi=d),c.kq(this,a)};r.prototype.ek=function(){return!0};r.prototype.ck=function(){return!0};
r.prototype.dk=function(a){return a?this.b.ig(a,this.Ac,this.Bc):!1};r.prototype.ak=function(a){a=Math.floor(a);return a===this.vc};r.prototype.$j=function(a){a=Math.floor(a);return a===this.vc};r.prototype.yn=function(){return!0};r.prototype.Jn=function(){return!0};r.prototype.vn=function(){return!0};r.prototype.zn=function(a){return a?this.b.ig(a,this.Ac,this.Bc):!1};r.prototype.Kn=function(a){return a?this.b.ig(a,this.Ac,this.Bc):!1};r.prototype.wn=function(a){return a?this.b.ig(a,this.Ac,this.Bc):
!1};a.e=new r;b.prototype.hk=function(a,b){var c=this.pe;if(0>c||c>=this.touches.length)a.k(0);else{var d,e,f,g,k;ea(b)?(d=this.b.Hc(0),e=d.scale,f=d.Qa,g=d.ab,k=d.g,d.scale=1,d.Qa=1,d.ab=1,d.g=0,a.k(d.ea(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Qa=f,d.ab=g,d.g=k):(d=ga(b)?this.b.Hc(b):this.b.lf(b))?a.k(d.ea(this.touches[c].x,this.touches[c].y,!0)):a.k(0)}};b.prototype.ik=function(a,b){var c=this.pe;if(0>c||c>=this.touches.length)a.k(0);else{var d,e,f,g,k;ea(b)?(d=this.b.Hc(0),e=d.scale,
f=d.Qa,g=d.bb,k=d.g,d.scale=1,d.Qa=1,d.bb=1,d.g=0,a.k(d.ea(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Qa=f,d.bb=g,d.g=k):(d=ga(b)?this.b.Hc(b):this.b.lf(b))?a.k(d.ea(this.touches[c].x,this.touches[c].y,!1)):a.k(0)}};a.ub=new b})();
function fc(g){this.b=g;var k=this;this.b.K||(jQuery(document).mousemove(function(d){k.Pf(d)}),jQuery(document).mousedown(function(d){k.Of(d)}),jQuery(document).mouseup(function(d){k.Qf(d)}));g=0<this.b.Ka?document:this.b.canvas;this.b.$b?g=window.Canvas:this.b.jb&&(g=window);window.navigator.pointerEnabled?(g.addEventListener("pointerdown",function(d){k.Sf(d)},!1),g.addEventListener("pointermove",function(d){k.Rf(d)},!1),g.addEventListener("pointerup",function(d){k.Nc(d)},!1),g.addEventListener("pointercancel",
function(d){k.Nc(d)},!1)):window.navigator.msPointerEnabled?(g.addEventListener("MSPointerDown",function(d){k.Sf(d)},!1),g.addEventListener("MSPointerMove",function(d){k.Rf(d)},!1),g.addEventListener("MSPointerUp",function(d){k.Nc(d)},!1),g.addEventListener("MSPointerCancel",function(d){k.Nc(d)},!1)):(g.addEventListener("touchstart",function(d){k.oh(d)},!1),g.addEventListener("touchmove",function(d){k.nh(d)},!1),g.addEventListener("touchend",function(d){k.De(d)},!1),g.addEventListener("touchcancel",
function(d){k.De(d)},!1))}
(function(){function g(b){var a,e;a=0;for(e=b.p.length;a<e;a++)if(b.p[a]instanceof d.ia)return b.p[a];return null}function k(){}var d=fc.prototype,p={left:0,top:0};d.Of=function(b){1===b.which&&this.fj("leftmouse",b.pageX,b.pageY)};d.Pf=function(b){1===b.which&&this.gj("leftmouse",b.pageX,b.pageY)};d.Qf=function(b){1===b.which&&this.hj("leftmouse")};d.oh=function(b){b.preventDefault&&db(b)&&b.preventDefault();var a,d,g,k;a=0;for(d=b.changedTouches.length;a<d;a++)g=b.changedTouches[a],k=g.identifier,
this.fj(k?k.toString():"<none>",g.pageX,g.pageY)};d.nh=function(b){b.preventDefault&&b.preventDefault();var a,d,g,k;a=0;for(d=b.changedTouches.length;a<d;a++)g=b.changedTouches[a],k=g.identifier,this.gj(k?k.toString():"<none>",g.pageX,g.pageY)};d.De=function(b){b.preventDefault&&db(b)&&b.preventDefault();var a,d,g;a=0;for(d=b.changedTouches.length;a<d;a++)g=b.changedTouches[a],g=g.identifier,this.hj(g?g.toString():"<none>")};d.Sf=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&
(b.preventDefault&&db(b)&&b.preventDefault(),this.fj(b.pointerId.toString(),b.pageX,b.pageY))};d.Rf=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&b.preventDefault(),this.gj(b.pointerId.toString(),b.pageX,b.pageY))};d.Nc=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&db(b)&&b.preventDefault(),this.hj(b.pointerId.toString()))};d.fj=function(b,a,d){var k=this.b.K?p:jQuery(this.b.canvas).offset();a=a-k.left;
d=d-k.top;var r,f,l,v,k=this.Ae.ic(),n,y,t,q=null;n=0;for(y=k.length;n<y;n++)if(t=k[n],r=g(t),r.enabled&&!r.Gd&&(r=t.d.ea(a,d,!0),f=t.d.ea(a,d,!1),t.X(),t.Ia(r,f)))q?t.d.index>q.d.index?(q=t,l=r,v=f):t.d.index===q.d.index&&t.Gb()>q.Gb()&&(q=t,l=r,v=f):(q=t,l=r,v=f);q&&g(q).rq(b,l,v)};d.gj=function(b,a,d){var k=this.b.K?p:jQuery(this.b.canvas).offset();a=a-k.left;d=d-k.top;var r,f=this.Ae.ic(),l,v,n;l=0;for(v=f.length;l<v;l++)r=f[l],n=g(r),!n.enabled||!n.Gd||n.Gd&&n.mi!==b||(k=r.d.ea(a,d,!0),r=r.d.ea(a,
d,!1),n.sq(k,r))};d.hj=function(b){var a=this.Ae.ic(),d,k,p;d=0;for(k=a.length;d<k;d++)p=a[d],p=g(p),p.Gd&&p.mi===b&&p.uq()};d.Ha=function(b){this.behavior=b;this.b=b.b};d.Ha.prototype.T=function(){};d.ia=function(b,a){this.type=b;this.behavior=b.behavior;this.B=a;this.b=b.b};var r=d.ia.prototype;r.T=function(){this.Gd=!1;this.Ek=this.Dk=0;this.mi="<none>";this.Vh=this.ha[0];this.enabled=0!==this.ha[1]};r.Ob=function(){return{enabled:this.enabled}};r.oc=function(b){this.enabled=b.enabled;this.Gd=
!1};r.rq=function(b,a,d){this.Dk=a-this.B.x;this.Ek=d-this.B.y;this.Gd=!0;this.mi=b;this.b.fa=!0;this.b.trigger(fc.prototype.e.Wj,this.B);this.b.fa=!1};r.sq=function(b,a){var d=b-this.Dk,g=a-this.Ek;if(0===this.Vh){if(this.B.x!==d||this.B.y!==g)this.B.x=d,this.B.y=g,this.B.da()}else 1===this.Vh?this.B.x!==d&&(this.B.x=d,this.B.da()):2===this.Vh&&this.B.y!==g&&(this.B.y=g,this.B.da())};r.uq=function(){this.Gd=!1;this.b.fa=!0;this.b.trigger(fc.prototype.e.xn,this.B);this.b.fa=!1};r.Rc=function(){};
k.prototype.Wj=function(){return!0};k.prototype.xn=function(){return!0};d.e=new k;d.Sa=new function(){};d.ub=new function(){}})();function gc(g){this.b=g}
(function(){var g=gc.prototype;g.Ha=function(g){this.behavior=g;this.b=g.b};g.Ha.prototype.T=function(){};g.ia=function(g,d){this.type=g;this.behavior=g.behavior;this.B=d;this.b=g.b;this.mode=0};g=g.ia.prototype;g.T=function(){this.mode=this.ha[0]};g.Rc=function(){};g.Hh=function(){this.B.X();var g=this.B.ja,d=this.B.d.ra,p=!1;0===this.mode?(0>this.B.x&&(this.B.x=0,p=!0),0>this.B.y&&(this.B.y=0,p=!0),this.B.x>d.width&&(this.B.x=d.width,p=!0),this.B.y>d.height&&(this.B.y=d.height,p=!0)):(0>g.left&&
(this.B.x-=g.left,p=!0),0>g.top&&(this.B.y-=g.top,p=!0),g.right>d.width&&(this.B.x-=g.right-d.width,p=!0),g.bottom>d.height&&(this.B.y-=g.bottom-d.height,p=!0));p&&this.B.da()}})();function ac(){return[cc,Y,dc,Z,bc,ec,gc,fc,cc.prototype.e.Vj,X.prototype.Sa.Mn,bc.prototype.e.sn,bc.prototype.Sa.mn,bc.prototype.Sa.gk,fc.prototype.e.Wj,bc.prototype.Sa.On,X.prototype.e.Xj,cc.prototype.Sa.Nn,Y.prototype.Sa.gn]};
