// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,da,fa,ga,ka,E,la,ma,na,oa,pa,qa,ra,sa,ua,va,wa,xa,ya,za,Aa,Ba,Da,Ea,Fa,H,Ga,Ha,Ia,Ja,Ka,K,La,Ma,Na,Oa,Pa,Qa,Ra,Ta,Ua,Wa,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,Cb,Db,Eb,Fb,Gb,Hb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,kc,lc,mc={},nc={};"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,e,k,a){this.set(c,e,k,a)}function m(){this.Lb=this.$b=this.cc=this.ac=this.kc=this.Rb=this.ya=this.xa=0}function l(c,e,k,a){c<e?k<a?(B=c<k?c:k,z=e>a?e:a):(B=c<a?c:a,z=e>k?e:k):k<a?(B=e<k?e:k,z=c>a?c:a):(B=e<a?e:a,z=c>k?c:k)}function f(){this.items=this.zh=null;this.dp=0;D&&(this.zh=new Set);this.rn=[];this.oj=!0}function b(c){w[C++]=c}function a(){this.wa=this.vu=this.y=this.ho=0}function d(c){this.Uc=[];this.Er=this.Gr=this.Hr=this.Fr=0;this.qq(c)}function e(c,e){this.Hw=
c;this.Gw=e;this.cells={}}function h(c,e){this.Hw=c;this.Gw=e;this.cells={}}function c(c,e,k){var a;return G.length?(a=G.pop(),a.Mx=c,a.x=e,a.y=k,a):new ba(c,e,k)}function k(c,e,k){this.Mx=c;this.x=e;this.y=k;this.vd=new ca}function p(c,e,k){var a;return A.length?(a=A.pop(),a.Mx=c,a.x=e,a.y=k,a):new da(c,e,k)}function t(c,e,k){this.Mx=c;this.x=e;this.y=k;this.vd=[];this.rm=!0;this.sh=new ca;this.co=!1}function q(c,e){return c.Mg-e.Mg}fa=function(c){window.console&&window.console.log&&window.console.log(c)};
ga=function(c){window.console&&window.console.error&&window.console.error(c)};aa=function(c){return c};ka=function(c){return"undefined"===typeof c};E=function(c){return"number"===typeof c};la=function(c){return"string"===typeof c};ma=function(c){return 0<c&&0===(c-1&c)};na=function(c){--c;for(var e=1;32>e;e<<=1)c=c|c>>e;return c+1};oa=function(c){return 0>c?-c:c};pa=function(c,e){return c>e?c:e};qa=function(c,e){return c<e?c:e};ra=Math.PI;sa=function(c){return 0<=c?c|0:(c|0)-1};ua=function(c){var e=
c|0;return e===c?e:e+1};va=function(c,e,k,a,b,d,h,p){var t,q,f,g;c<k?(q=c,t=k):(q=k,t=c);b<h?(g=b,f=h):(g=h,f=b);if(t<g||q>f)return!1;e<a?(q=e,t=a):(q=a,t=e);d<p?(g=d,f=p):(g=p,f=d);if(t<g||q>f)return!1;t=b-c+h-k;q=d-e+p-a;c=k-c;e=a-e;b=h-b;d=p-d;p=oa(e*b-d*c);return oa(b*q-d*t)>p?!1:oa(c*q-e*t)<=p};g.prototype.set=function(c,e,k,a){this.left=c;this.top=e;this.right=k;this.bottom=a};g.prototype.tj=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,e){this.left+=c;this.top+=e;this.right+=c;this.bottom+=e;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.SD=function(c){return!(c.right<this.left||c.bottom<this.top||c.left>this.right||c.top>this.bottom)};g.prototype.TD=
function(c,e,k){return!(c.right+e<this.left||c.bottom+k<this.top||c.left+e>this.right||c.top+k>this.bottom)};g.prototype.ec=function(c,e){return c>=this.left&&c<=this.right&&e>=this.top&&e<=this.bottom};g.prototype.vo=function(c){return this.left===c.left&&this.top===c.top&&this.right===c.right&&this.bottom===c.bottom};wa=g;m.prototype.ml=function(c){this.xa=c.left;this.ya=c.top;this.Rb=c.right;this.kc=c.top;this.ac=c.right;this.cc=c.bottom;this.$b=c.left;this.Lb=c.bottom};m.prototype.OF=function(c,
e){if(0===e)this.ml(c);else{var k=Math.sin(e),a=Math.cos(e),b=c.left*k,d=c.top*k,h=c.right*k,k=c.bottom*k,p=c.left*a,t=c.top*a,q=c.right*a,a=c.bottom*a;this.xa=p-d;this.ya=t+b;this.Rb=q-d;this.kc=t+h;this.ac=q-k;this.cc=a+h;this.$b=p-k;this.Lb=a+b}};m.prototype.offset=function(c,e){this.xa+=c;this.ya+=e;this.Rb+=c;this.kc+=e;this.ac+=c;this.cc+=e;this.$b+=c;this.Lb+=e;return this};var B=0,z=0;m.prototype.xC=function(c){l(this.xa,this.Rb,this.ac,this.$b);c.left=B;c.right=z;l(this.ya,this.kc,this.cc,
this.Lb);c.top=B;c.bottom=z};m.prototype.ec=function(c,e){var k=this.xa,a=this.ya,b=this.Rb-k,d=this.kc-a,h=this.ac-k,p=this.cc-a,t=c-k,q=e-a,f=b*b+d*d,g=b*h+d*p,d=b*t+d*q,B=h*h+p*p,r=h*t+p*q,l=1/(f*B-g*g),b=(B*d-g*r)*l,f=(f*r-g*d)*l;if(0<=b&&0<f&&1>b+f)return!0;b=this.$b-k;d=this.Lb-a;f=b*b+d*d;g=b*h+d*p;d=b*t+d*q;l=1/(f*B-g*g);b=(B*d-g*r)*l;f=(f*r-g*d)*l;return 0<=b&&0<f&&1>b+f};m.prototype.Od=function(c,e){if(e)switch(c){case 0:return this.xa;case 1:return this.Rb;case 2:return this.ac;case 3:return this.$b;
case 4:return this.xa;default:return this.xa}else switch(c){case 0:return this.ya;case 1:return this.kc;case 2:return this.cc;case 3:return this.Lb;case 4:return this.ya;default:return this.ya}};m.prototype.IE=function(){return(this.xa+this.Rb+this.ac+this.$b)/4};m.prototype.JE=function(){return(this.ya+this.kc+this.cc+this.Lb)/4};m.prototype.Po=function(c,e,k,a){if(this.ec(c,e)||this.ec(k,a))return!0;var b,d,h,p,t;for(t=0;4>t;t++)if(b=this.Od(t,!0),d=this.Od(t,!1),h=this.Od(t+1,!0),p=this.Od(t+1,
!1),va(c,e,k,a,b,d,h,p))return!0;return!1};m.prototype.RD=function(c){var e=c.IE(),k=c.JE();if(this.ec(e,k))return!0;e=this.IE();k=this.JE();if(c.ec(e,k))return!0;var a,b,d,h,p,t,q,f;for(q=0;4>q;q++)for(f=0;4>f;f++)if(e=this.Od(q,!0),k=this.Od(q,!1),a=this.Od(q+1,!0),b=this.Od(q+1,!1),d=c.Od(f,!0),h=c.Od(f,!1),p=c.Od(f+1,!0),t=c.Od(f+1,!1),va(e,k,a,b,d,h,p,t))return!0;return!1};xa=m;ya=function(c,e,k){return Math.max(Math.min(c,255),0)|Math.max(Math.min(e,255),0)<<8|Math.max(Math.min(k,255),0)<<16};
za=function(c){return c&255};Aa=function(c){return(c&65280)>>8};Ba=function(c){return(c&16711680)>>16};Da=function(c,e){for(var k in e)e.hasOwnProperty(k)&&(c[k]=e[k]);return c};Ea=function(c,e){var k,a;e=sa(e);if(!(0>e||e>=c.length)){k=e;for(a=c.length-1;k<a;k++)c[k]=c[k+1];Fa(c,a)}};Fa=function(c,e){c.length=e};H=function(c){Fa(c,0)};Ga=function(c,e){H(c);var k,a;k=0;for(a=e.length;k<a;++k)c[k]=e[k]};Ha=function(c,e){c.push.apply(c,e)};Ia=function(c,e){var k,a;k=0;for(a=c.length;k<a;++k)if(c[k]===
e)return k;return-1};Ja=function(c,e){var k=Ia(c,e);-1!==k&&Ea(c,k)};Ka=function(c,e,k){return c<e?e:c>k?k:c};K=function(c){return c/(180/ra)};La=function(c){return 180/ra*c};Ma=function(c){c%=360;0>c&&(c+=360);return c};Na=function(c){c%=2*ra;0>c&&(c+=2*ra);return c};Oa=function(c){return Ma(La(c))};Pa=function(c){return Na(K(c))};Qa=function(c,e,k,a){return Math.atan2(a-e,k-c)};Ra=function(c,e){if(c===e)return 0;var k=Math.sin(c),a=Math.cos(c),b=Math.sin(e),d=Math.cos(e),k=k*b+a*d;return 1<=k?0:
-1>=k?ra:Math.acos(k)};Ta=function(c,e,k){var a=Math.sin(c),b=Math.cos(c),d=Math.sin(e),h=Math.cos(e);return Math.acos(a*d+b*h)>k?0<b*d-a*h?Na(c+k):Na(c-k):Na(e)};Ua=function(c,e){var k=Math.sin(c),a=Math.cos(c),b=Math.sin(e),d=Math.cos(e);return 0>=a*b-k*d};Wa=function(c,e,k,a,b,d){if(0===k)return d?c:e;var h=Math.sin(k);k=Math.cos(k);c-=a;e-=b;var p=c*h;c=c*k-e*h;e=e*k+p;return d?c+a:e+b};Xa=function(c,e,k,a){c=k-c;e=a-e;return Math.sqrt(c*c+e*e)};Ya=function(c,e){return!c!==!e};Za=function(c){for(var e in c)if(c.hasOwnProperty(e))return!0;
return!1};$a=function(c){for(var e in c)c.hasOwnProperty(e)&&delete c[e]};var x=+new Date;ab=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()-x};var u=!1,r=u=!1,y=!1;"undefined"!==typeof window&&(u=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
u=!u&&/safari/i.test(navigator.userAgent),r=/(iphone|ipod|ipad)/i.test(navigator.userAgent),y=window.c2ejecta);var D=!u&&!y&&!r&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;f.prototype.contains=function(c){return this.oi()?!1:D?this.zh.has(c):this.items&&this.items.hasOwnProperty(c)};f.prototype.add=function(c){if(D)this.zh.has(c)||(this.zh.add(c),this.oj=!1);else{var e=c.toString(),k=this.items;k?k.hasOwnProperty(e)||(k[e]=c,this.dp++,this.oj=!1):(this.items={},this.items[e]=
c,this.dp=1,this.oj=!1)}};f.prototype.remove=function(c){if(!this.oi())if(D)this.zh.has(c)&&(this.zh["delete"](c),this.oj=!1);else if(this.items){c=c.toString();var e=this.items;e.hasOwnProperty(c)&&(delete e[c],this.dp--,this.oj=!1)}};f.prototype.clear=function(){this.oi()||(D?this.zh.clear():(this.items=null,this.dp=0),H(this.rn),this.oj=!0)};f.prototype.oi=function(){return 0===this.count()};f.prototype.count=function(){return D?this.zh.size:this.dp};var w=null,C=0;f.prototype.VQ=function(){if(!this.oj){if(D)H(this.rn),
w=this.rn,C=0,this.zh.forEach(b),w=null,C=0;else{var c=this.rn;H(c);var e,k=0,a=this.items;if(a)for(e in a)a.hasOwnProperty(e)&&(c[k++]=a[e])}this.oj=!0}};f.prototype.$e=function(){this.VQ();return this.rn};ca=f;new ca;bb=function(c,e){D?cb(c,e.zh):db(c,e.$e())};cb=function(c,e){var k,a,b,d;a=k=0;for(b=c.length;k<b;++k)d=c[k],e.has(d)||(c[a++]=d);Fa(c,a)};db=function(c,e){var k,a,b,d;a=k=0;for(b=c.length;k<b;++k)d=c[k],-1===Ia(e,d)&&(c[a++]=d);Fa(c,a)};a.prototype.add=function(c){this.y=c-this.ho;
this.vu=this.wa+this.y;this.ho=this.vu-this.wa-this.y;this.wa=this.vu};a.prototype.reset=function(){this.wa=this.vu=this.y=this.ho=0};eb=a;fb=function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};d.prototype.qq=function(c){this.oF=c;this.Pf=c.length/2;this.Uc.length=c.length;this.Kr=this.Lr=-1;this.BC=0};d.prototype.Pk=function(){return!this.oF.length};d.prototype.ja=function(){for(var c=this.Uc,e=c[0],k=e,a=c[1],b=a,d,h,p=1,t=this.Pf;p<t;++p)h=2*p,d=c[h],h=c[h+1],d<e&&(e=d),d>k&&(k=d),
h<a&&(a=h),h>b&&(b=h);this.Fr=e;this.Gr=k;this.Hr=a;this.Er=b};d.prototype.ml=function(c,e,k){this.Uc.length=8;this.Pf=4;var a=this.Uc;a[0]=c.left-e;a[1]=c.top-k;a[2]=c.right-e;a[3]=c.top-k;a[4]=c.right-e;a[5]=c.bottom-k;a[6]=c.left-e;a[7]=c.bottom-k;this.Lr=c.right-c.left;this.Kr=c.bottom-c.top;this.ja()};d.prototype.Zm=function(c,e,k,a,b){this.Uc.length=8;this.Pf=4;var d=this.Uc;d[0]=c.xa-e;d[1]=c.ya-k;d[2]=c.Rb-e;d[3]=c.kc-k;d[4]=c.ac-e;d[5]=c.cc-k;d[6]=c.$b-e;d[7]=c.Lb-k;this.Lr=a;this.Kr=b;this.ja()};
d.prototype.NF=function(c){this.Pf=c.Pf;Ga(this.Uc,c.Uc);this.Fr=c.Fr;this.Hr-c.Hr;this.Gr=c.Gr;this.Er=c.Er};d.prototype.pk=function(c,e,k){if(this.Lr!==c||this.Kr!==e||this.BC!==k){this.Lr=c;this.Kr=e;this.BC=k;var a,b,d,h,p,t=0,q=1,f=this.oF,g=this.Uc;0!==k&&(t=Math.sin(k),q=Math.cos(k));k=0;for(d=this.Pf;k<d;k++)a=2*k,b=a+1,h=f[a]*c,p=f[b]*e,g[a]=h*q-p*t,g[b]=p*q+h*t;this.ja()}};d.prototype.ec=function(c,e){var k=this.Uc;if(c===k[0]&&e===k[1])return!0;var a,b,d,h=this.Pf,p=this.Fr-110,t=this.Hr-
101,q=this.Gr+131,f=this.Er+120,g,B,r=0,l=0;for(a=0;a<h;a++)b=2*a,d=(a+1)%h*2,g=k[b],b=k[b+1],B=k[d],d=k[d+1],va(p,t,c,e,g,b,B,d)&&r++,va(q,f,c,e,g,b,B,d)&&l++;return 1===r%2||1===l%2};d.prototype.Oo=function(c,e,k){var a=c.Uc,b=this.Uc;if(this.ec(a[0]+e,a[1]+k)||c.ec(b[0]-e,b[1]-k))return!0;var d,h,p,t,q,f,g,B,r,l,m,v;d=0;for(t=this.Pf;d<t;d++)for(h=2*d,p=(d+1)%t*2,B=b[h],h=b[h+1],r=b[p],l=b[p+1],p=0,g=c.Pf;p<g;p++)if(q=2*p,f=(p+1)%g*2,m=a[q]+e,q=a[q+1]+k,v=a[f]+e,f=a[f+1]+k,va(B,h,r,l,m,q,v,f))return!0;
return!1};d.prototype.Po=function(c,e,k,a,b,d){var h=this.Uc;if(this.ec(k-c,a-e))return!0;var p,t,q,f,g,B;p=0;for(t=this.Pf;p<t;p++)if(q=2*p,f=(p+1)%t*2,g=h[q]+c,q=h[q+1]+e,B=h[f]+c,f=h[f+1]+e,va(k,a,b,d,g,q,B,f))return!0;return!1};gb=d;e.prototype.Aj=function(e,k,a){var b;b=this.cells[e];return b?(b=b[k])?b:a?(b=c(this,e,k),this.cells[e][k]=b):null:a?(b=c(this,e,k),this.cells[e]={},this.cells[e][k]=b):null};e.prototype.re=function(c){return sa(c/this.Hw)};e.prototype.se=function(c){return sa(c/this.Gw)};
e.prototype.update=function(c,e,k){var a,b,d,h,p;if(e)for(a=e.left,b=e.right;a<=b;++a)for(d=e.top,h=e.bottom;d<=h;++d)if(!k||!k.ec(a,d))if(p=this.Aj(a,d,!1))p.remove(c),p.oi()&&(p.vd.clear(),1E3>G.length&&G.push(p),this.cells[a][d]=null);if(k)for(a=k.left,b=k.right;a<=b;++a)for(d=k.top,h=k.bottom;d<=h;++d)e&&e.ec(a,d)||this.Aj(a,d,!0).ay(c)};e.prototype.Ut=function(c,e){var k,a,b,d,h,p;k=this.re(c.left);b=this.se(c.top);a=this.re(c.right);for(h=this.se(c.bottom);k<=a;++k)for(d=b;d<=h;++d)(p=this.Aj(k,
d,!1))&&p.dump(e)};hb=e;h.prototype.Aj=function(c,e,k){var a;a=this.cells[c];return a?(a=a[e])?a:k?(a=p(this,c,e),this.cells[c][e]=a):null:k?(a=p(this,c,e),this.cells[c]={},this.cells[c][e]=a):null};h.prototype.re=function(c){return sa(c/this.Hw)};h.prototype.se=function(c){return sa(c/this.Gw)};h.prototype.update=function(c,e,k){var a,b,d,h,p;if(e)for(a=e.left,b=e.right;a<=b;++a)for(d=e.top,h=e.bottom;d<=h;++d)if(!k||!k.ec(a,d))if(p=this.Aj(a,d,!1))p.remove(c),p.oi()&&(p.reset(),1E3>A.length&&A.push(p),
this.cells[a][d]=null);if(k)for(a=k.left,b=k.right;a<=b;++a)for(d=k.top,h=k.bottom;d<=h;++d)e&&e.ec(a,d)||this.Aj(a,d,!0).ay(c)};h.prototype.Ut=function(c,e,k,a,b){var d,h;c=this.re(c);e=this.se(e);k=this.re(k);for(d=this.se(a);c<=k;++c)for(a=e;a<=d;++a)(h=this.Aj(c,a,!1))&&h.dump(b)};h.prototype.oP=function(c){var e,k,a,b,d;e=c.left;a=c.top;k=c.right;for(b=c.bottom;e<=k;++e)for(c=a;c<=b;++c)if(d=this.Aj(e,c,!1))d.rm=!1};ib=h;var G=[];k.prototype.oi=function(){return this.vd.oi()};k.prototype.ay=
function(c){this.vd.add(c)};k.prototype.remove=function(c){this.vd.remove(c)};k.prototype.dump=function(c){Ha(c,this.vd.$e())};ba=k;var A=[];t.prototype.oi=function(){if(!this.vd.length)return!0;if(this.vd.length>this.sh.count())return!1;this.kx();return!0};t.prototype.ay=function(c){this.sh.contains(c)?(this.sh.remove(c),this.sh.oi()&&(this.co=!1)):this.vd.length?(this.vd[this.vd.length-1].Qe()>c.Qe()&&(this.rm=!1),this.vd.push(c)):(this.vd.push(c),this.rm=!0)};t.prototype.remove=function(c){this.sh.add(c);
this.co=!0;30<=this.sh.count()&&this.kx()};t.prototype.kx=function(){this.co&&(this.sh.count()===this.vd.length?this.reset():(bb(this.vd,this.sh),this.sh.clear(),this.co=!1))};t.prototype.XM=function(){this.rm||(this.vd.sort(q),this.rm=!0)};t.prototype.reset=function(){H(this.vd);this.rm=!0;this.sh.clear();this.co=!1};t.prototype.dump=function(c){this.kx();this.XM();this.vd.length&&c.push(this.vd)};da=t;var v="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
jb=function(c){return 0>=c||11<=c?"source-over":v[c-1]};kb=function(c,e,k){if(k)switch(c.$d=k.ONE,c.Rd=k.ONE_MINUS_SRC_ALPHA,e){case 1:c.$d=k.ONE;c.Rd=k.ONE;break;case 3:c.$d=k.ONE;c.Rd=k.ZERO;break;case 4:c.$d=k.ONE_MINUS_DST_ALPHA;c.Rd=k.ONE;break;case 5:c.$d=k.DST_ALPHA;c.Rd=k.ZERO;break;case 6:c.$d=k.ZERO;c.Rd=k.SRC_ALPHA;break;case 7:c.$d=k.ONE_MINUS_DST_ALPHA;c.Rd=k.ZERO;break;case 8:c.$d=k.ZERO;c.Rd=k.ONE_MINUS_SRC_ALPHA;break;case 9:c.$d=k.DST_ALPHA;c.Rd=k.ONE_MINUS_SRC_ALPHA;break;case 10:c.$d=
k.ONE_MINUS_DST_ALPHA,c.Rd=k.SRC_ALPHA}};lb=function(c){return Math.round(1E6*c)/1E6};mb=function(c,e){return"string"!==typeof c||"string"!==typeof e||c.length!==e.length?!1:c===e?!0:c.toLowerCase()===e.toLowerCase()};nb=function(c){c=c.target;return!c||c===document||c===window||document&&document.body&&c===document.body||mb(c.tagName,"canvas")?!0:!1}})();var oc="undefined"!==typeof Float32Array?Float32Array:Array;function pc(g){var m=new oc(3);g&&(m[0]=g[0],m[1]=g[1],m[2]=g[2]);return m}
function qc(g){var m=new oc(16);g&&(m[0]=g[0],m[1]=g[1],m[2]=g[2],m[3]=g[3],m[4]=g[4],m[5]=g[5],m[6]=g[6],m[7]=g[7],m[8]=g[8],m[9]=g[9],m[10]=g[10],m[11]=g[11],m[12]=g[12],m[13]=g[13],m[14]=g[14],m[15]=g[15]);return m}function rc(g,m){m[0]=g[0];m[1]=g[1];m[2]=g[2];m[3]=g[3];m[4]=g[4];m[5]=g[5];m[6]=g[6];m[7]=g[7];m[8]=g[8];m[9]=g[9];m[10]=g[10];m[11]=g[11];m[12]=g[12];m[13]=g[13];m[14]=g[14];m[15]=g[15]}
function sc(g,m){var l=m[0],f=m[1];m=m[2];g[0]*=l;g[1]*=l;g[2]*=l;g[3]*=l;g[4]*=f;g[5]*=f;g[6]*=f;g[7]*=f;g[8]*=m;g[9]*=m;g[10]*=m;g[11]*=m}
function tc(g,m,l,f){f||(f=qc());var b,a,d,e,h,c,k,p,t=g[0],q=g[1];g=g[2];a=l[0];d=l[1];b=l[2];l=m[1];c=m[2];t===m[0]&&q===l&&g===c?(g=f,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):(l=t-m[0],c=q-m[1],k=g-m[2],p=1/Math.sqrt(l*l+c*c+k*k),l*=p,c*=p,k*=p,m=d*k-b*c,b=b*l-a*k,a=a*c-d*l,(p=Math.sqrt(m*m+b*b+a*a))?(p=1/p,m*=p,b*=p,a*=p):a=b=m=0,d=c*a-k*b,e=k*m-l*a,h=l*b-c*m,(p=Math.sqrt(d*d+e*e+h*h))?(p=1/p,d*=p,e*=p,h*=p):h=e=d=0,
f[0]=m,f[1]=d,f[2]=l,f[3]=0,f[4]=b,f[5]=e,f[6]=c,f[7]=0,f[8]=a,f[9]=h,f[10]=k,f[11]=0,f[12]=-(m*t+b*q+a*g),f[13]=-(d*t+e*q+h*g),f[14]=-(l*t+c*q+k*g),f[15]=1)}
(function(){function g(e,a,c){this.pi=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ub=!!c;this.Qs=this.To=!1;this.Rw=0;this.Ru=1;this.kA=1E3;this.jR=(this.kA-this.Ru)/32768;this.Ew=pc([0,0,100]);this.rE=pc([0,0,0]);this.oG=pc([0,1,0]);this.Pq=pc([1,1,1]);this.WC=!0;this.tt=qc();this.of=qc();this.xy=qc();this.Qw=qc();this.ba=e;this.version=0===this.ba.getParameter(this.ba.VERSION).indexOf("WebGL 2")?2:1;this.ND()}function m(e,a,c){this.ba=e;
this.rq=a;this.name=c;this.Of=e.getAttribLocation(a,"aPos");this.Lj=e.getAttribLocation(a,"aTex");this.pE=e.getUniformLocation(a,"matP");this.jt=e.getUniformLocation(a,"matMV");this.zm=e.getUniformLocation(a,"opacity");this.Gy=e.getUniformLocation(a,"colorFill");this.qE=e.getUniformLocation(a,"samplerFront");this.Cp=e.getUniformLocation(a,"samplerBack");this.$k=e.getUniformLocation(a,"destStart");this.Zk=e.getUniformLocation(a,"destEnd");this.Ep=e.getUniformLocation(a,"seconds");this.Iy=e.getUniformLocation(a,
"pixelWidth");this.Hy=e.getUniformLocation(a,"pixelHeight");this.Bp=e.getUniformLocation(a,"layerScale");this.Ap=e.getUniformLocation(a,"layerAngle");this.Fp=e.getUniformLocation(a,"viewOrigin");this.Dp=e.getUniformLocation(a,"scrollPos");this.EO=!!(this.Iy||this.Hy||this.Ep||this.Cp||this.$k||this.Zk||this.Bp||this.Ap||this.Fp||this.Dp);this.zE=this.AE=-999;this.pt=1;this.vE=this.uE=0;this.xE=this.tE=this.sE=1;this.DE=this.CE=this.BE=this.FE=this.EE=this.wE=0;this.wy=[];this.yE=qc();this.zm&&e.uniform1f(this.zm,
1);this.Gy&&e.uniform4f(this.Gy,1,1,1,1);this.qE&&e.uniform1i(this.qE,0);this.Cp&&e.uniform1i(this.Cp,1);this.$k&&e.uniform2f(this.$k,0,0);this.Zk&&e.uniform2f(this.Zk,1,1);this.Bp&&e.uniform1f(this.Bp,1);this.Ap&&e.uniform1f(this.Ap,0);this.Fp&&e.uniform2f(this.Fp,0,0);this.Dp&&e.uniform2f(this.Dp,0,0);this.Ep&&e.uniform1f(this.Ep,0);this.Gk=!1}function l(e,a){return e[0]===a[0]&&e[1]===a[1]&&e[2]===a[2]&&e[3]===a[3]&&e[4]===a[4]&&e[5]===a[5]&&e[6]===a[6]&&e[7]===a[7]&&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]}function f(e,a){this.type=e;this.M=a;this.ba=a.ba;this.Mf=this.jc=this.YE=0;this.Ya=this.Uf=null;this.RF=[]}var b=qc();g.prototype.ND=function(){var e=this.ba,a;this.iE=1;this.Sk=this.Ij=null;this.Zr=1;e.clearColor(0,0,0,0);e.clear(e.COLOR_BUFFER_BIT);e.enable(e.BLEND);e.blendFunc(e.ONE,e.ONE_MINUS_SRC_ALPHA);e.disable(e.CULL_FACE);e.disable(e.STENCIL_TEST);e.disable(e.DITHER);this.Ub?(e.enable(e.DEPTH_TEST),
e.depthFunc(e.LEQUAL)):e.disable(e.DEPTH_TEST);this.jE=e.ONE;this.hE=e.ONE_MINUS_SRC_ALPHA;this.Mu=new Float32Array(8E3*(this.Ub?3:2));this.xu=new Float32Array(16E3);this.kz=new Float32Array(32E3);this.jz=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,this.jz);e.bufferData(e.ARRAY_BUFFER,this.kz.byteLength,e.DYNAMIC_DRAW);this.Jq=Array(4);this.xq=Array(4);for(a=0;4>a;a++)this.Jq[a]=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.Jq[a]),e.bufferData(e.ARRAY_BUFFER,this.Mu.byteLength,e.DYNAMIC_DRAW),
this.xq[a]=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.xq[a]),e.bufferData(e.ARRAY_BUFFER,this.xu.byteLength,e.DYNAMIC_DRAW);this.Yh=0;this.LO=e.createBuffer();e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.LO);for(var c=new Uint16Array(12E3),k=a=0;12E3>a;)c[a++]=k,c[a++]=k+1,c[a++]=k+2,c[a++]=k,c[a++]=k+2,c[a++]=k+3,k+=4;e.bufferData(e.ELEMENT_ARRAY_BUFFER,c,e.STATIC_DRAW);this.Sm=this.hn=this.Ti=0;this.xc=[];a=this.Ub?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";c=this.no({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}"},a,"<default>");this.xc.push(c);c=this.no({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.xc.push(c);c=this.no({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},a,"<earlyz>");this.xc.push(c);c=this.no({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
a,"<fill>");this.xc.push(c);for(var b in uc)uc.hasOwnProperty(b)&&this.xc.push(this.no(uc[b],a,b));e.activeTexture(e.TEXTURE0);e.bindTexture(e.TEXTURE_2D,null);this.Xh=[];this.Ug=0;this.Vd=this.Dd=!1;this.OC=this.kp=-1;this.Rl=null;this.ix=e.createFramebuffer();this.bs=this.Yt=null;this.uC=!1;this.Ub&&(this.bs=e.createRenderbuffer());this.Yj=pc([0,0,0]);e=e.getParameter(e.ALIASED_POINT_SIZE_RANGE);this.sP=e[0];this.Ny=e[1];2048<this.Ny&&(this.Ny=2048);this.Fe(0)};m.prototype.bA=function(e){l(this.yE,
e)||(rc(e,this.yE),this.ba.uniformMatrix4fv(this.jt,!1,e))};g.prototype.no=function(e,a,c){var k=this.ba,b=k.createShader(k.FRAGMENT_SHADER);k.shaderSource(b,e.src);k.compileShader(b);if(!k.getShaderParameter(b,k.COMPILE_STATUS))throw e=k.getShaderInfoLog(b),k.deleteShader(b),Error("error compiling fragment shader: "+e);var d=k.createShader(k.VERTEX_SHADER);k.shaderSource(d,a);k.compileShader(d);if(!k.getShaderParameter(d,k.COMPILE_STATUS))throw e=k.getShaderInfoLog(d),k.deleteShader(b),k.deleteShader(d),
Error("error compiling vertex shader: "+e);a=k.createProgram();k.attachShader(a,b);k.attachShader(a,d);k.linkProgram(a);if(!k.getProgramParameter(a,k.LINK_STATUS))throw e=k.getProgramInfoLog(a),k.deleteShader(b),k.deleteShader(d),k.deleteProgram(a),Error("error linking shader program: "+e);k.useProgram(a);k.deleteShader(b);k.deleteShader(d);b=new m(k,a,c);b.Xl=e.Xl||0;b.Yl=e.Yl||0;b.po=!!e.po;b.We=!!e.We;b.ao=!!e.ao;b.Ea=e.Ea||[];e=0;for(d=b.Ea.length;e<d;e++)b.Ea[e][1]=k.getUniformLocation(a,b.Ea[e][0]),
b.wy.push(0),k.uniform1f(b.Ea[e][1],0);return b};g.prototype.Ex=function(e){var a,c;a=0;for(c=this.xc.length;a<c;a++)if(this.xc[a].name===e)return a;return-1};g.prototype.nF=function(e,a,c){var k=this.of,b=this.tt,d=[0,0,0,0,0,0,0,0];d[0]=k[0]*e+k[4]*a+k[12];d[1]=k[1]*e+k[5]*a+k[13];d[2]=k[2]*e+k[6]*a+k[14];d[3]=k[3]*e+k[7]*a+k[15];d[4]=b[0]*d[0]+b[4]*d[1]+b[8]*d[2]+b[12]*d[3];d[5]=b[1]*d[0]+b[5]*d[1]+b[9]*d[2]+b[13]*d[3];d[6]=b[2]*d[0]+b[6]*d[1]+b[10]*d[2]+b[14]*d[3];d[7]=-d[2];0!==d[7]&&(d[7]=1/
d[7],d[4]*=d[7],d[5]*=d[7],d[6]*=d[7],c[0]=(.5*d[4]+.5)*this.width,c[1]=(.5*d[5]+.5)*this.height)};g.prototype.Li=function(e,a,c){if(this.width!==e||this.height!==a||c){this.di();c=this.ba;this.width=e;this.height=a;c.viewport(0,0,e,a);tc(this.Ew,this.rE,this.oG,this.of);if(this.Ub){var k=-e/2;e=e/2;var b=a/2;a=-a/2;var d=this.Ru,q=this.kA,f=this.tt;f||(f=qc());var g=e-k,l=a-b,m=q-d;f[0]=2/g;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/l;f[6]=0;f[7]=0;f[8]=0;f[9]=0;f[10]=-2/m;f[11]=0;f[12]=-(k+e)/g;f[13]=-(a+
b)/l;f[14]=-(q+d)/m;f[15]=1;this.Pq[0]=1;this.Pq[1]=1}else a=e/a,k=this.Ru,e=this.kA,f=this.tt,q=k*Math.tan(45*Math.PI/360),a*=q,b=-a,d=-q,f||(f=qc()),g=a-b,l=q-d,m=e-k,f[0]=2*k/g,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=2*k/l,f[6]=0,f[7]=0,f[8]=(a+b)/g,f[9]=(q+d)/l,f[10]=-(e+k)/m,f[11]=-1,f[12]=0,f[13]=0,f[14]=-(e*k*2)/m,f[15]=0,k=[0,0],e=[0,0],this.nF(0,0,k),this.nF(1,1,e),this.Pq[0]=1/(e[0]-k[0]),this.Pq[1]=-1/(e[1]-k[1]);k=0;for(e=this.xc.length;k<e;k++)b=this.xc[k],b.Gk=!1,b.pE&&(c.useProgram(b.rq),
c.uniformMatrix4fv(b.pE,!1,this.tt));c.useProgram(this.xc[this.kp].rq);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE0);this.Sk=this.Ij=null;this.bs&&(c.bindFramebuffer(c.FRAMEBUFFER,this.ix),c.bindRenderbuffer(c.RENDERBUFFER,this.bs),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,this.width,this.height),this.uC||(c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,this.bs),this.uC=!0),c.bindRenderbuffer(c.RENDERBUFFER,
null),c.bindFramebuffer(c.FRAMEBUFFER,null),this.Yt=null)}};g.prototype.Ye=function(){tc(this.Ew,this.rE,this.oG,this.of);sc(this.of,this.Pq)};g.prototype.translate=function(a,b){if(0!==a||0!==b){this.Yj[0]=a;this.Yj[1]=b;this.Yj[2]=0;var c=this.of,k=this.Yj,d=k[0],f=k[1],k=k[2];c[12]=c[0]*d+c[4]*f+c[8]*k+c[12];c[13]=c[1]*d+c[5]*f+c[9]*k+c[13];c[14]=c[2]*d+c[6]*f+c[10]*k+c[14];c[15]=c[3]*d+c[7]*f+c[11]*k+c[15]}};g.prototype.scale=function(a,b){if(1!==a||1!==b)this.Yj[0]=a,this.Yj[1]=b,this.Yj[2]=
1,sc(this.of,this.Yj)};g.prototype.mq=function(a){if(0!==a){var b=this.of,c,k=Math.sin(a);a=Math.cos(a);var d=b[0],f=b[1],q=b[2],g=b[3],l=b[4],m=b[5],u=b[6],r=b[7];c?b!==c&&(c[8]=b[8],c[9]=b[9],c[10]=b[10],c[11]=b[11],c[12]=b[12],c[13]=b[13],c[14]=b[14],c[15]=b[15]):c=b;c[0]=d*a+l*k;c[1]=f*a+m*k;c[2]=q*a+u*k;c[3]=g*a+r*k;c[4]=d*-k+l*a;c[5]=f*-k+m*a;c[6]=q*-k+u*a;c[7]=g*-k+r*a}};g.prototype.Ge=function(){if(!l(this.xy,this.of)){var a=this.Be();a.type=5;a.Ya?rc(this.of,a.Ya):a.Ya=qc(this.of);rc(this.of,
this.xy);this.Vd=this.Dd=!1}};g.prototype.gu=function(a){this.Ub&&(32760<a&&(a=32760),this.Rw=this.Ew[2]-this.Ru-a*this.jR)};f.prototype.DM=function(){var a=this.ba,b=this.M;0!==this.jc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,b.ix),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.Qs=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.Qs=
!1)};f.prototype.HM=function(){this.ba.bindTexture(this.ba.TEXTURE_2D,this.Uf)};f.prototype.IM=function(){var a=this.ba;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Uf);a.activeTexture(a.TEXTURE0)};f.prototype.EM=function(){var a=this.YE,b=this.M;b.Zr=a;b=b.Rl;b.zm&&b.pt!==a&&(b.pt=a,this.ba.uniform1f(b.zm,a))};f.prototype.xM=function(){this.ba.drawElements(this.ba.TRIANGLES,this.Mf,this.ba.UNSIGNED_SHORT,this.jc)};f.prototype.AM=function(){this.ba.blendFunc(this.jc,this.Mf)};f.prototype.KM=
function(){var a,b,c,k=this.M.xc,d=this.M.OC;a=0;for(b=k.length;a<b;a++)c=k[a],a===d&&c.jt?(c.bA(this.Ya),c.Gk=!0):c.Gk=!1;rc(this.Ya,this.M.Qw)};f.prototype.yM=function(){var a=this.ba,b=this.M;this.Uf?(b.Sk===this.Uf&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.Sk=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.ix),b.Qs||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Uf,0)):(b.Ub||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,
a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};f.prototype.tM=function(){var a=this.ba,b=this.jc;0===b?(a.clearColor(this.Ya[0],this.Ya[1],this.Ya[2],this.Ya[3]),a.clear(a.COLOR_BUFFER_BIT)):1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.Ya[0],this.Ya[1],this.Ya[2],this.Ya[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};f.prototype.CM=function(){var a=this.ba;0!==this.jc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};f.prototype.wM=
function(){var a=this.ba,b=this.M;b.Ub&&a.disable(a.DEPTH_TEST);var c=b.xc[1];a.useProgram(c.rq);!c.Gk&&c.jt&&(c.bA(b.Qw),c.Gk=!0);a.enableVertexAttribArray(c.Of);a.bindBuffer(a.ARRAY_BUFFER,b.jz);a.vertexAttribPointer(c.Of,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.jc/4,this.Mf);c=b.Rl;a.useProgram(c.rq);0<=c.Of&&(a.enableVertexAttribArray(c.Of),a.bindBuffer(a.ARRAY_BUFFER,b.Jq[b.Yh]),a.vertexAttribPointer(c.Of,b.Ub?3:2,a.FLOAT,!1,0,0));0<=c.Lj&&(a.enableVertexAttribArray(c.Lj),a.bindBuffer(a.ARRAY_BUFFER,
b.xq[b.Yh]),a.vertexAttribPointer(c.Lj,2,a.FLOAT,!1,0,0));b.Ub&&a.enable(a.DEPTH_TEST)};f.prototype.FM=function(){var a=this.ba,b=this.M,c=b.xc[this.jc];b.OC=this.jc;b.Rl=c;a.useProgram(c.rq);!c.Gk&&c.jt&&(c.bA(b.Qw),c.Gk=!0);c.zm&&c.pt!==b.Zr&&(c.pt=b.Zr,a.uniform1f(c.zm,b.Zr));0<=c.Of&&(a.enableVertexAttribArray(c.Of),a.bindBuffer(a.ARRAY_BUFFER,b.Jq[b.Yh]),a.vertexAttribPointer(c.Of,b.Ub?3:2,a.FLOAT,!1,0,0));0<=c.Lj&&(a.enableVertexAttribArray(c.Lj),a.bindBuffer(a.ARRAY_BUFFER,b.xq[b.Yh]),a.vertexAttribPointer(c.Lj,
2,a.FLOAT,!1,0,0))};f.prototype.BM=function(){var a=this.Ya;this.ba.uniform4f(this.M.Rl.Gy,a[0],a[1],a[2],a[3])};f.prototype.GM=function(){var a,b,c=this.M.Rl,k=this.ba;a=this.Ya;c.Cp&&this.M.Sk!==this.Uf&&(k.activeTexture(k.TEXTURE1),k.bindTexture(k.TEXTURE_2D,this.Uf),this.M.Sk=this.Uf,k.activeTexture(k.TEXTURE0));var d=a[0];c.Iy&&d!==c.AE&&(c.AE=d,k.uniform1f(c.Iy,d));d=a[1];c.Hy&&d!==c.zE&&(c.zE=d,k.uniform1f(c.Hy,d));d=a[2];b=a[3];!c.$k||d===c.uE&&b===c.vE||(c.uE=d,c.vE=b,k.uniform2f(c.$k,d,
b));d=a[4];b=a[5];!c.Zk||d===c.sE&&b===c.tE||(c.sE=d,c.tE=b,k.uniform2f(c.Zk,d,b));d=a[6];c.Bp&&d!==c.xE&&(c.xE=d,k.uniform1f(c.Bp,d));d=a[7];c.Ap&&d!==c.wE&&(c.wE=d,k.uniform1f(c.Ap,d));d=a[8];b=a[9];!c.Fp||d===c.EE&&b===c.FE||(c.EE=d,c.FE=b,k.uniform2f(c.Fp,d,b));d=a[10];b=a[11];!c.Dp||d===c.BE&&b===c.CE||(c.BE=d,c.CE=b,k.uniform2f(c.Dp,d,b));d=a[12];c.Ep&&d!==c.DE&&(c.DE=d,k.uniform1f(c.Ep,d));if(c.Ea.length)for(a=0,b=c.Ea.length;a<b;a++)d=this.RF[a],d!==c.wy[a]&&(c.wy[a]=d,k.uniform1f(c.Ea[a][1],
d))};g.prototype.Be=function(){this.Ug===this.Xh.length&&this.Xh.push(new f(0,this));return this.Xh[this.Ug++]};g.prototype.di=function(){if(0!==this.Ug&&!this.ba.isContextLost()){var a=this.ba;0<this.Sm&&(a.bindBuffer(a.ARRAY_BUFFER,this.jz),a.bufferSubData(a.ARRAY_BUFFER,0,this.kz.subarray(0,this.Sm)),b&&0<=b.Of&&"<point>"===b.name&&a.vertexAttribPointer(b.Of,4,a.FLOAT,!1,0,0));if(0<this.Ti){var b=this.Rl;a.bindBuffer(a.ARRAY_BUFFER,this.Jq[this.Yh]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Mu.subarray(0,
this.Ti));b&&0<=b.Of&&"<point>"!==b.name&&a.vertexAttribPointer(b.Of,this.Ub?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.xq[this.Yh]);a.bufferSubData(a.ARRAY_BUFFER,0,this.xu.subarray(0,this.hn));b&&0<=b.Lj&&"<point>"!==b.name&&a.vertexAttribPointer(b.Lj,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.Ug;a<b;a++)switch(c=this.Xh[a],c.type){case 1:c.xM();break;case 2:c.HM();break;case 3:c.EM();break;case 4:c.AM();break;case 5:c.KM();break;case 6:c.yM();break;case 7:c.tM();break;case 8:c.wM();break;
case 9:c.FM();break;case 10:c.GM();break;case 11:c.IM();break;case 12:c.BM();break;case 13:c.CM();break;case 14:c.DM()}this.Sm=this.hn=this.Ti=this.Ug=0;this.Qs=this.Vd=this.Dd=!1;this.Yh++;4<=this.Yh&&(this.Yh=0)}};g.prototype.Gg=function(a){if(a!==this.iE&&!this.To){var b=this.Be();b.type=3;this.iE=b.YE=a;this.Vd=this.Dd=!1}};g.prototype.zd=function(a){if(a!==this.Ij){var b=this.Be();b.type=2;this.Ij=b.Uf=a;this.Vd=this.Dd=!1}};g.prototype.Vj=function(a,b){if((a!==this.jE||b!==this.hE)&&!this.To){var c=
this.Be();c.type=4;c.jc=a;c.Mf=b;this.jE=a;this.hE=b;this.Vd=this.Dd=!1}};g.prototype.DF=function(){this.Vj(this.ba.ONE,this.ba.ONE_MINUS_SRC_ALPHA)};g.prototype.Tm=function(a,b,c,k,d,f,q,g){15992<=this.Ti&&this.di();var l=this.Ti,m=this.hn,u=this.Mu,r=this.xu,y=this.Rw;if(this.Dd)this.Xh[this.Ug-1].Mf+=6;else{var D=this.Be();D.type=1;D.jc=this.Ub?l:l/2*3;D.Mf=6;this.Dd=!0;this.Vd=!1}this.Ub?(u[l++]=a,u[l++]=b,u[l++]=y,u[l++]=c,u[l++]=k,u[l++]=y,u[l++]=d,u[l++]=f,u[l++]=y,u[l++]=q,u[l++]=g,u[l++]=
y):(u[l++]=a,u[l++]=b,u[l++]=c,u[l++]=k,u[l++]=d,u[l++]=f,u[l++]=q,u[l++]=g);r[m++]=0;r[m++]=0;r[m++]=1;r[m++]=0;r[m++]=1;r[m++]=1;r[m++]=0;r[m++]=1;this.Ti=l;this.hn=m};g.prototype.Xe=function(a,b,c,k,d,f,q,g,l){15992<=this.Ti&&this.di();var m=this.Ti,u=this.hn,r=this.Mu,y=this.xu,D=this.Rw;if(this.Dd)this.Xh[this.Ug-1].Mf+=6;else{var w=this.Be();w.type=1;w.jc=this.Ub?m:m/2*3;w.Mf=6;this.Dd=!0;this.Vd=!1}var w=l.left,C=l.top,G=l.right;l=l.bottom;this.Ub?(r[m++]=a,r[m++]=b,r[m++]=D,r[m++]=c,r[m++]=
k,r[m++]=D,r[m++]=d,r[m++]=f,r[m++]=D,r[m++]=q,r[m++]=g,r[m++]=D):(r[m++]=a,r[m++]=b,r[m++]=c,r[m++]=k,r[m++]=d,r[m++]=f,r[m++]=q,r[m++]=g);y[u++]=w;y[u++]=C;y[u++]=G;y[u++]=C;y[u++]=G;y[u++]=l;y[u++]=w;y[u++]=l;this.Ti=m;this.hn=u};g.prototype.QP=function(a,b,c,k){7996<=this.Sm&&this.di();var d=this.Sm,f=this.kz;if(this.Vd)this.Xh[this.Ug-1].Mf++;else{var q=this.Be();q.type=8;q.jc=d;q.Mf=1;this.Vd=!0;this.Dd=!1}f[d++]=a;f[d++]=b;f[d++]=c;f[d++]=k;this.Sm=d};g.prototype.Fe=function(a){if(this.kp!==
a){if(!this.xc[a]){if(0===this.kp)return;a=0}var b=this.Be();b.type=9;this.kp=b.jc=a;this.Vd=this.Dd=!1}};g.prototype.gq=function(a){a=this.xc[a];return!(!a.$k&&!a.Zk)};g.prototype.nz=function(a){a=this.xc[a];return!!(a.$k||a.Zk||a.po)};g.prototype.mz=function(a){return this.xc[a].We};g.prototype.aQ=function(a){a=this.xc[a];return 0!==a.Xl||0!==a.Yl};g.prototype.hO=function(a){return this.xc[a].Xl};g.prototype.iO=function(a){return this.xc[a].Yl};g.prototype.jO=function(a,b){return this.xc[a].Ea[b][2]};
g.prototype.Rt=function(a){return this.xc[a].ao};g.prototype.Ym=function(a,b,c,k,d,f,q,g,l,m,u,r,y,D,w){var C=this.xc[this.kp],G,A;if(C.EO||w.length){G=this.Be();G.type=10;G.Ya?rc(this.of,G.Ya):G.Ya=qc();A=G.Ya;A[0]=b;A[1]=c;A[2]=k;A[3]=d;A[4]=f;A[5]=q;A[6]=g;A[7]=l;A[8]=m;A[9]=u;A[10]=r;A[11]=y;A[12]=D;C.Cp?G.Uf=a:G.Uf=null;if(w.length)for(c=G.RF,c.length=w.length,a=0,b=w.length;a<b;a++)c[a]=w[a];this.Vd=this.Dd=!1}};g.prototype.clear=function(a,b,c,k){var d=this.Be();d.type=7;d.jc=0;d.Ya||(d.Ya=
qc());d.Ya[0]=a;d.Ya[1]=b;d.Ya[2]=c;d.Ya[3]=k;this.Vd=this.Dd=!1};g.prototype.clearRect=function(a,b,c,k){if(!(0>c||0>k)){var d=this.Be();d.type=7;d.jc=1;d.Ya||(d.Ya=qc());d.Ya[0]=a;d.Ya[1]=b;d.Ya[2]=c;d.Ya[3]=k;this.Vd=this.Dd=!1}};g.prototype.HF=function(a){if(this.Ub&&(a=!!a,this.To!==a)){var b=this.Be();b.type=14;b.jc=a?1:0;this.Vd=this.Dd=!1;this.To=a;this.Yt=null;this.To?this.Fe(2):this.Fe(0)}};g.prototype.FF=function(a){if(this.Ub){var b=this.Be();b.type=13;b.jc=a?1:0;this.Vd=this.Dd=!1}};
g.prototype.jD=function(){rc(this.xy,b);this.Ye();this.Ge();var a=this.width/2,d=this.height/2;this.Tm(-a,d,a,d,a,-d,-a,-d);rc(b,this.of);this.Ge()};g.prototype.EF=function(a,b,c){this.Fe(3);var k=this.Be();k.type=12;k.Ya||(k.Ya=qc());k.Ya[0]=a;k.Ya[1]=b;k.Ya[2]=c;k.Ya[3]=1;this.Vd=this.Dd=!1};g.prototype.BQ=function(){this.Fe(0)};g.prototype.mQ=function(){this.Fe(2)};g.prototype.$P=function(){this.di();this.ba.flush()};var a=[],d={};g.prototype.dM=function(){H(a);d={}};g.prototype.ye=function(b,
h,c,k,p){h=!!h;c=!!c;var f=b.src+","+h+","+c+(h?","+p:""),q=null;if("undefined"!==typeof b.src&&d.hasOwnProperty(f))return q=d[f],q.Jr++,q;this.di();var g=this.ba,l=ma(b.width)&&ma(b.height),q=g.createTexture();g.bindTexture(g.TEXTURE_2D,q);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=g.RGBA,u=g.RGBA,r=g.UNSIGNED_BYTE;if(k&&!this.pi)switch(k){case 1:u=m=g.RGB;break;case 2:r=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:r=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:u=m=g.RGB,r=g.UNSIGNED_SHORT_5_6_5}if(1===
this.version&&!l&&h){k=document.createElement("canvas");k.width=na(b.width);k.height=na(b.height);var y=k.getContext("2d");"undefined"!==typeof y.imageSmoothingEnabled?y.imageSmoothingEnabled=c:(y.webkitImageSmoothingEnabled=c,y.mozImageSmoothingEnabled=c,y.msImageSmoothingEnabled=c);y.drawImage(b,0,0,b.width,b.height,0,0,k.width,k.height);g.texImage2D(g.TEXTURE_2D,0,m,u,r,k)}else g.texImage2D(g.TEXTURE_2D,0,m,u,r,b);h?"repeat-x"===p?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE)):("repeat-y"===p?g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(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));c?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(l||2<=this.version)&&this.WC?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),
g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.Ij=null;q.jg=b.width;q.ig=b.height;q.Jr=1;q.AC=f;a.push(q);return d[f]=q};g.prototype.Me=function(b,d,c,k){this.di();var p=this.ba;this.pi&&(k=!1);var f=p.createTexture();p.bindTexture(p.TEXTURE_2D,f);p.texImage2D(p.TEXTURE_2D,0,p.RGBA,b,d,0,p.RGBA,
k?p.UNSIGNED_SHORT_4_4_4_4:p.UNSIGNED_BYTE,null);p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_S,p.CLAMP_TO_EDGE);p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_T,p.CLAMP_TO_EDGE);p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MAG_FILTER,c?p.LINEAR:p.NEAREST);p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,c?p.LINEAR:p.NEAREST);p.bindTexture(p.TEXTURE_2D,null);this.Ij=null;f.jg=b;f.ig=d;a.push(f);return f};g.prototype.AG=function(a,b,c){this.di();var k=this.ba;this.pi&&(c=!1);k.bindTexture(k.TEXTURE_2D,b);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,
!0);try{k.texImage2D(k.TEXTURE_2D,0,k.RGBA,k.RGBA,c?k.UNSIGNED_SHORT_4_4_4_4:k.UNSIGNED_BYTE,a)}catch(d){console&&console.error&&console.error("Error updating WebGL texture: ",d)}k.bindTexture(k.TEXTURE_2D,null);this.Ij=null};g.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.Jr&&1<b.Jr?b.Jr--:(this.di(),b===this.Ij&&(this.ba.bindTexture(this.ba.TEXTURE_2D,null),this.Ij=null),b===this.Sk&&(this.ba.activeTexture(this.ba.TEXTURE1),this.ba.bindTexture(this.ba.TEXTURE_2D,null),this.ba.activeTexture(this.ba.TEXTURE0),
this.Sk=null),Ja(a,b),"undefined"!==typeof b.AC&&delete d[b.AC],this.ba.deleteTexture(b)))};g.prototype.Qf=function(a){if(a!==this.Yt){var b=this.Be();b.type=6;this.Yt=b.Uf=a;this.Vd=this.Dd=!1}};ob=g})();
(function(){function g(c){if(c&&(c.getContext||c.dc)&&!c.c2runtime){c.c2runtime=this;var a=this;this.we=(this.So=/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.od=!!c.dc;this.VD="undefined"!==typeof window.AppMobi||
this.od;this.Re=!!window.c2cocoonjs;this.wg=!!window.c2ejecta;this.Re&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.wg&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.Ca=this.od||this.Re||this.wg;this.Vo=
/edge\//i.test(navigator.userAgent);this.pi=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Vo;this.ny=/tizen/i.test(navigator.userAgent);this.Ro=/android/i.test(navigator.userAgent)&&!this.ny&&!this.pi&&!this.Vo;this.fE=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.pi&&!this.Vo;this.eP=/ipad/i.test(navigator.userAgent);this.Qk=this.fE||this.eP||this.wg;this.ey=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.pi&&!this.Vo;this.Os=/amazonwebappplatform/i.test(navigator.userAgent);this.SO=/firefox/i.test(navigator.userAgent);this.VO=/safari/i.test(navigator.userAgent)&&!this.ey&&!this.pi&&!this.Vo;this.ZO=/windows/i.test(navigator.userAgent);this.ZD=this.lm="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.OO="undefined"!==typeof window.is_scirra_arcade;
this.ry=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.aP=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.ih=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.ty=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Ts=!!window.cr_windows10;this.qy=this.ry||this.aP||this.ty||this.Ts;this.cy=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Ps=this.Ro&&
!this.ey&&!this.So&&!this.SO&&!this.Os&&!this.Ca;this.devicePixelRatio=1;this.lf=this.we||this.So||this.VD||this.Re||this.Ro||this.Qk||this.ih||this.ty||this.cy||this.ny||this.wg;this.lf||(this.lf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Yo=!!(this.Qk&&this.we&&window.webkit);"undefined"===typeof cr_is_preview||this.lm||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.lm=!0);this.canvas=c;this.Nl=document.getElementById("c2canvasdiv");this.M=this.ba=null;this.Lx="(unavailable)";this.Ub=!1;this.wk=0;this.Nb=null;this.rs=!1;this.TE=this.UE=0;this.canvas.oncontextmenu=function(c){c.preventDefault&&c.preventDefault();return!1};this.canvas.onselectstart=function(c){c.preventDefault&&c.preventDefault();return!1};this.canvas.ontouchstart=function(c){c.preventDefault&&c.preventDefault();return!1};this.od&&(window.c2runtime=this);this.lm&&(window.ondragover=function(c){c.preventDefault();
return!1},window.ondrop=function(c){c.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.Ps&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=c.width;this.height=c.height;this.Ba=this.width;this.Aa=this.height;this.Vr=this.width;this.qo=this.height;this.xm=window.innerWidth;this.wm=window.innerHeight;this.la=!0;this.Xo=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types=
{};this.da=[];this.mc=[];this.wi={};this.Ag=[];this.ax={};this.ei=[];this.vn=[];this.Eu=[];this.KL=[];this.LL=[];this.Mz=null;this.tk={};this.gy=this.Dj=!1;this.kf=0;this.fy=this.ky=!1;this.kg=[];this.Uo=!1;this.gt=this.Dz="";this.gd=null;this.ti="";this.vq=this.VF=!1;this.qs=[];this.vk=this.uk=0;this.LE=30;this.Ow=this.Gp=0;this.Yc=1;this.td=new eb;this.Wi=new eb;this.zt=this.xs=this.Ak=this.hd=this.Uk=this.ws=this.bt=0;this.qk=null;this.es=[];this.$w=[];this.js=-1;this.Jy=[[]];this.Wz=this.kt=0;
this.St(null);this.Hp=[];this.Ip=-1;this.OE=this.Mp=0;this.Ey=!0;this.Ao=0;this.wq=[];this.Sz=this.pz=-1;this.um=!0;this.Yk=0;this.Wo=!1;this.FQ=0;this.Ll=null;this.yb=this.Io=!1;this.SE=new ca;this.Uy=new ca;this.Vy=new ca;this.il=[];this.Hg=new gb([]);this.Qz=new gb([]);this.Kl=[];this.fm={};this.sj={};this.lj={};this.sn={};this.vC={};this.mE=this.et=this.Mc=this.fd=this.lE=this.ct=this.qb=null;this.qn=this.uy=!1;this.rx=[null,null];this.Dk=0;this.os="";this.Ei={};this.sq=this.Jj=null;this.XF="";
this.yt=[];this.kQ()}}function m(c,a){return 128>=a?c[3]:256>=a?c[2]:512>=a?c[1]:c[0]}function l(){try{return!!window.indexedDB}catch(c){return!1}}function f(c){c.target.result.createObjectStore("saves",{keyPath:"slot"})}function b(c,a,b,k){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=f;d.onerror=k;d.onsuccess=function(d){d=d.target.result;d.onerror=k;d.transaction(["saves"],"readwrite").objectStore("saves").put({slot:c,data:a}).onsuccess=b}}catch(e){k(e)}}function a(c,a,b){try{var k=
indexedDB.open("_C2SaveStates");k.onupgradeneeded=f;k.onerror=b;k.onsuccess=function(k){k=k.target.result;k.onerror=b;var d=k.transaction(["saves"]).objectStore("saves").get(c);d.onsuccess=function(){d.result?a(d.result.data):a(null)}}}catch(d){b(d)}}function d(){fa("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 a,k={};for(a in c)!c.hasOwnProperty(a)||
c[a]instanceof ca||c[a]&&"undefined"!==typeof c[a].fS||"spriteCreatedDestroyCallback"!==a&&(k[a]=c[a]);return k}var h=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;g.prototype.kQ=function(){var c=this;if(this.Yo)this.bD("data.js",function(a){c.yp(JSON.parse(a))},function(){alert("Error fetching data.js")});else{var a;this.ih?a=new ActiveXObject("Microsoft.XMLHTTP"):a=new XMLHttpRequest;
var k="data.js";if(this.ry||this.ih||this.ty||this.Ts)k="data.json";a.open("GET",k,!0);var b=!1;if(!this.Ca&&"response"in a&&"responseType"in a)try{a.responseType="json",b="json"===a.responseType}catch(d){b=!1}if(!b&&"responseType"in a)try{a.responseType="text"}catch(e){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(h){}this.ih?a.onreadystatechange=function(){4===a.readyState&&c.yp(JSON.parse(a.responseText))}:(a.onload=function(){if(b)c.yp(a.response);
else if(c.wg){var k=a.responseText,k=k.substr(k.indexOf("{"));c.yp(JSON.parse(k))}else c.yp(JSON.parse(a.responseText))},a.onerror=function(c){ga("Error requesting "+k+":");ga(c)});a.send()}};g.prototype.MO=function(){var c=this,a,k,b,d,e,h,p,f,q;this.Nk=(!this.Ca||this.wg||this.we)&&this.YQ&&!this.Ps;0===this.Sd&&this.Qk&&(this.Nk=!1);this.devicePixelRatio=this.Nk?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Ld();0<this.Sd&&
this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();c.wP();fa("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){c.M.ND();c.M.Li(c.M.width,c.M.height,!0);c.fd=null;c.Mc=null;c.rx[0]=null;c.rx[1]=null;c.xP();c.la=!0;fa("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Zw&&(this.Re||this.wg||!this.Ca)&&(a={alpha:!0,
depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.ba=this.canvas.getContext("webgl2",a)||this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",a))}catch(g){}if(this.ba){if(a=this.ba.getExtension("WEBGL_debug_renderer_info"))this.Lx=this.ba.getParameter(a.UNMASKED_RENDERER_WEBGL)+" ["+this.ba.getParameter(a.UNMASKED_VENDOR_WEBGL)+"]";this.Ub&&(this.Lx+=" [front-to-back enabled]");this.Ca||(this.Hd=document.createElement("canvas"),
jQuery(this.Hd).appendTo(this.canvas.parentNode),this.Hd.oncontextmenu=function(){return!1},this.Hd.onselectstart=function(){return!1},this.Hd.width=Math.round(this.Vr*this.devicePixelRatio),this.Hd.height=Math.round(this.qo*this.devicePixelRatio),jQuery(this.Hd).css({width:this.Vr+"px",height:this.qo+"px"}),this.lF(),this.fz=this.Hd.getContext("2d"));this.M=new ob(this.ba,this.lf,this.Ub);this.M.Li(this.canvas.width,this.canvas.height);this.M.WC=0!==this.LM;this.Nb=null;a=0;for(k=this.da.length;a<
k;a++)for(e=this.da[a],b=0,d=e.Ma.length;b<d;b++)p=e.Ma[b],p.Wc=this.M.Ex(p.id),p.We=this.M.mz(p.Wc),this.qn=this.qn||this.M.gq(p.Wc);a=0;for(k=this.Ag.length;a<k;a++){f=this.Ag[a];b=0;for(d=f.Ma.length;b<d;b++)p=f.Ma[b],p.Wc=this.M.Ex(p.id),p.We=this.M.mz(p.Wc);f.Kg();b=0;for(d=f.Pa.length;b<d;b++){q=f.Pa[b];e=0;for(h=q.Ma.length;e<h;e++)p=q.Ma[e],p.Wc=this.M.Ex(p.id),p.We=this.M.mz(p.Wc),this.qn=this.qn||this.M.gq(p.Wc);q.Kg()}}}else{if(0<this.Sd&&this.od){this.canvas=null;document.oncontextmenu=
function(){return!1};document.onselectstart=function(){return!1};this.Nb=AppMobi.canvas.getContext("2d");try{this.Nb.samplingMode=this.sb?"smooth":"sharp",this.Nb.globalScale=1,this.Nb.HTML5CompatibilityMode=!0,this.Nb.imageSmoothingEnabled=this.sb}catch(t){}0!==this.width&&0!==this.height&&(this.Nb.width=this.width,this.Nb.height=this.height)}this.Nb||(this.Re?(a={antialias:!!this.sb,alpha:!0},this.Nb=this.canvas.getContext("2d",a)):(a={alpha:!0},this.Nb=this.canvas.getContext("2d",a)),this.fu(this.Nb,
this.sb));this.fz=this.Hd=null}this.eG=function(a){c.ra(!1,a)};window==window.top||this.Ca||this.qy||this.ih||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Re&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(fa("Reloading for continuous preview"),this.gt="__c2_continuouspreview",this.vq=!0),this.OP&&
!this.lf&&(jQuery(window).focus(function(){c.setSuspended(!1)}),jQuery(window).blur(function(){var a=window.parent;a&&a.document.hasFocus()||c.setSuspended(!0)})));window.addEventListener("blur",function(){c.Oj()});this.Ca||(a=function(a){if(nb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(c){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?
document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.Sd&&this.Nk&&1<this.devicePixelRatio&&this.setSize(this.Qc,this.Pc,!0);this.kG();this.BO();this.go();this.ka={}};g.prototype.setSize=function(a,c,b){var k=0,d=0,e=0,h=0,h=0;if(this.xm!==a||this.wm!==c||b){this.xm=a;this.wm=c;var p=this.Sd;if((e=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Wo)&&!this.we)||
0!==this.Sd||b)e&&0<this.Dk&&(p=this.Dk),b=this.devicePixelRatio,4<=p?(e=this.Qc/this.Pc,a/c>e?(e*=c,5===p?(h=e*b/this.Qc,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),e=this.Qc*h/b,h=this.Pc*h/b,k=(a-e)/2,d=(c-h)/2,a=e,c=h):(k=(a-e)/2,a=e)):(h=a/e,5===p?(h=h*b/this.Pc,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),e=this.Qc*h/b,h=this.Pc*h/b,k=(a-e)/2,d=(c-h)/2,a=e):d=(c-h)/2,c=h)):this.lm&&this.Wo&&0===this.kD&&(k=Math.floor((a-this.Qc)/2),d=Math.floor((c-this.Pc)/2),a=this.Qc,c=this.Pc),2>p&&(this.fo=
b),this.Vr=Math.round(a),this.qo=Math.round(c),this.width=Math.round(a*b),this.height=Math.round(c*b),this.la=!0,this.CG?(this.Ba=this.width,this.Aa=this.height,this.ff=!0):this.width<this.Qc&&this.height<this.Pc||1===p?(this.Ba=this.width,this.Aa=this.height,this.ff=!0):(this.Ba=this.Qc,this.Aa=this.Pc,this.ff=!1,2===p?(e=this.Qc/this.Pc,p=this.xm/this.wm,p<e?this.Ba=this.Aa*p:p>e&&(this.Aa=this.Ba/p)):3===p&&(e=this.Qc/this.Pc,p=this.xm/this.wm,p>e?this.Ba=this.Aa*p:p<e&&(this.Aa=this.Ba/p))),this.Nl&&
!this.Ca&&(jQuery(this.Nl).css({width:Math.round(a)+"px",height:Math.round(c)+"px","margin-left":Math.floor(k)+"px","margin-top":Math.floor(d)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(c*b),this.wg?(this.canvas.style.left=Math.floor(k)+"px",this.canvas.style.top=Math.floor(d)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=
Math.round(c)+"px"):this.Nk&&!this.Ca&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px")),this.Hd&&(this.Hd.width=Math.round(a*b),this.Hd.height=Math.round(c*b),this.Hd.style.width=this.Vr+"px",this.Hd.style.height=this.qo+"px"),this.M&&this.M.Li(Math.round(a*b),Math.round(c*b)),this.od&&this.Nb&&(this.Nb.width=Math.round(a),this.Nb.height=Math.round(c)),this.Nb&&this.fu(this.Nb,this.sb),this.kG(),this.fE&&!this.we&&window.scrollTo(0,0)}};g.prototype.kG=function(){if(this.QL&&
0!==this.ez){var a="portrait";2===this.ez&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(c){console&&console.warn&&console.warn("Failed to lock orientation: ",c)}}};g.prototype.wP=function(){this.M.dM();this.uy=
!0;var a,c,b;a=0;for(c=this.da.length;a<c;a++)b=this.da[a],b.Nj&&b.Nj()};g.prototype.xP=function(){this.uy=!1;var a,c,b;a=0;for(c=this.da.length;a<c;a++)b=this.da[a],b.Lm&&b.Lm()};g.prototype.lF=function(){if(!this.Ca){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Wo)&&!this.we?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Hd).css(a)}};var c=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;g.prototype.setSuspended=function(a){var b;if(a&&!this.Xo)for(fa("[Construct 2] Suspending"),this.Xo=!0,-1!==this.pz&&c&&c(this.pz),-1!==this.Sz&&clearTimeout(this.Sz),a=0,b=this.wq.length;a<b;a++)this.wq[a](!0);else if(!a&&this.Xo){fa("[Construct 2] Resuming");this.Xo=!1;this.bt=ab();this.Uk=ab();a=this.Gp=this.xs=0;for(b=this.wq.length;a<b;a++)this.wq[a](!1);this.ra(!1)}};g.prototype.qC=function(a){this.wq.push(a)};
g.prototype.aj=function(a){return this.yt[a]};g.prototype.yp=function(a){a&&a.project||ga("Project model unavailable");a=a.project;this.name=a[0];this.eD=a[1];this.Sd=a[12];this.kD=a[12];this.Qc=a[10];this.Pc=a[11];this.eF=this.Qc/2;this.fF=this.Pc/2;this.Ca&&!this.wg&&(4<=a[12]||0===a[12])&&(fa("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.kD=this.Sd=3);this.eA=a[18];this.Kj=a[19];if(0===this.Kj){var c=new Image;c.crossOrigin=
"anonymous";this.IF(c,"loading-logo.png");this.Jj={ot:c}}else if(4===this.Kj){c=new Image;c.src="";var b=new Image;b.src="";var k=new Image;k.src="";var d=new Image;d.src="";var e=new Image;e.src="";var h=new Image;h.src="";var p=new Image;p.src="";var f=new Image;f.src="";var q=new Image;q.src="";var g=new Image;g.src="";var t=new Image;t.src="";var l=new Image;l.src="";this.Jj={ot:[c,b,k,d],WP:[e,h,p,f],hR:[q,g,t,l]}}this.Mp=a[21];this.yt=vc();this.Ch=new U(this);c=0;for(b=a[2].length;c<b;c++)p=
a[2][c],k=this.aj(p[0]),pb(p,k.prototype),f=new k(this),f.ou=p[1],f.Hj=p[2],f.dP=p[5],f.NE=p[9],f.I&&f.I(),this.plugins.push(f);this.yt=vc();c=0;for(b=a[3].length;c<b;c++){p=a[3][c];e=this.aj(p[1]);f=null;k=0;for(d=this.plugins.length;k<d;k++)if(this.plugins[k]instanceof e){f=this.plugins[k];break}q=new f.L(f);q.name=p[0];q.ea=p[2];q.by=p[3].slice(0);q.$Q=p[3].length;q.TL=p[4];q.IN=p[5];q.eb=p[11];q.ea?(q.cl=[],q.gi=this.Ao++,q.Wb=null):(q.cl=null,q.gi=-1,q.Wb=[]);q.ls=null;q.Zl=null;q.XC=null;q.qd=
!1;q.Le=null;p[6]?(q.jn=p[6][0],q.yq=p[6][1],q.Dh=p[6][2]):(q.jn=null,q.yq=0,q.Dh=0);p[7]?q.Ie=p[7]:q.Ie=null;q.index=c;q.A=[];q.ro=[];q.Oi=[new qb(q)];q.Xg=0;q.If=null;q.mM=0;q.an=!0;q.Iu=rb;q.cm=sb;q.fO=tb;q.ga=ub;q.hq=vb;q.ge=wb;q.yd=xb;q.As=yb;q.ux=zb;q.yx=Ab;q.jd=Cb;q.zx=Db;q.ko=new hb(this.Qc,this.Pc);q.Cr=!0;q.Dr=!1;q.ka={};q.toString=Eb;q.mc=[];k=0;for(d=p[8].length;k<d;k++){g=p[8][k];t=this.aj(g[1]);l=null;e=0;for(h=this.mc.length;e<h;e++)if(this.mc[e]instanceof t){l=this.mc[e];break}l||
(l=new t(this),l.Ry=[],l.dl=new ca,l.I&&l.I(),this.mc.push(l),wc&&l instanceof wc&&(this.Mz=l));-1===l.Ry.indexOf(q)&&l.Ry.push(q);e=new l.L(l,q);e.name=g[0];e.eb=g[2];e.I();q.mc.push(e)}q.global=p[9];q.hy=p[10];q.Ma=[];k=0;for(d=p[12].length;k<d;k++)q.Ma.push({id:p[12][k][0],name:p[12][k][1],Wc:-1,We:!1,W:!0,index:k});q.AS=p[13];this.eA&&!q.ea&&!q.hy&&f.Hj||q.I();q.name&&(this.types[q.name]=q);this.da.push(q);f.ou&&(k=new f.J(q),k.uid=this.Mp++,k.pF=this.OE++,k.Ik=0,k.Eo=Fb,k.toString=Gb,k.B=p[14],
k.I(),q.A.push(k),this.Ei[k.uid.toString()]=k)}c=0;for(b=a[4].length;c<b;c++)for(e=a[4][c],h=this.da[e[0]],k=1,d=e.length;k<d;k++)p=this.da[e[k]],p.Wb.push(h),h.cl.push(p);c=0;for(b=a[28].length;c<b;c++){e=a[28][c];h=[];k=0;for(d=e.length;k<d;k++)h.push(this.da[e[k]]);k=0;for(d=h.length;k<d;k++)h[k].qd=!0,h[k].Le=h}if(0<this.Ao)for(c=0,b=this.da.length;c<b;c++)if(p=this.da[c],!p.ea&&p.Wb.length){p.ls=Array(this.Ao);p.Zl=Array(this.Ao);p.XC=Array(this.Ao);q=[];k=l=t=g=0;for(d=p.Wb.length;k<d;k++)for(f=
p.Wb[k],p.ls[f.gi]=g,g+=f.$Q,p.Zl[f.gi]=t,t+=f.TL,p.XC[f.gi]=l,l+=f.IN,e=0,h=f.Ma.length;e<h;e++)q.push(Da({},f.Ma[e]));p.Ma=q.concat(p.Ma);k=0;for(d=p.Ma.length;k<d;k++)p.Ma[k].index=k}c=0;for(b=a[5].length;c<b;c++)p=a[5][c],k=new Hb(this,p),this.wi[k.name]=k,this.Ag.push(k);c=0;for(b=a[6].length;c<b;c++)p=a[6][c],k=new Kb(this,p),this.ax[k.name]=k,this.ei.push(k);c=0;for(b=this.ei.length;c<b;c++)this.ei[c].Ac();c=0;for(b=this.ei.length;c<b;c++)this.ei[c].aA();c=0;for(b=this.Eu.length;c<b;c++)this.Eu[c].Ac();
H(this.Eu);this.PL=a[7];this.os=a[8];this.xd=a[9];this.fo=1;this.Zw=a[13];this.sb=a[14];this.GC=a[15];this.YQ=a[17];this.ez=a[20];this.QL=0<this.ez;this.OP=a[22];this.ff=this.CG=a[23];this.LM=a[24];this.YP=a[25];this.Ub=a[27]&&!this.pi;this.ru=Date.now();H(this.yt);this.MO()};var k=!1,p=0,t=[];g.prototype.dQ=function(a,c){function k(){p--;b.GE()}var b=this;a.addEventListener("load",k);a.addEventListener("error",k);t.push([a,c]);this.GE()};g.prototype.GE=function(){for(var a;t.length&&100>p;)p++,a=
t.shift(),this.IF(a[0],a[1])};g.prototype.Kq=function(a,c){a.cocoonLazyLoad=!0;a.onerror=function(c){k=a.zC=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",c)};this.wg?a.src=c:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(c,function(c){a.src=c},function(b){k=a.zC=!0;console&&console.error&&console.error("Error extracting image '"+c+"' from expansion file: ",b)}):(a.crossOrigin="anonymous",this.dQ(a,c)));this.vn.push(a)};g.prototype.FN=function(a){var c,k;c=0;
for(k=this.vn.length;c<k;c++)if(this.vn[c].eM===a)return this.vn[c];return null};var q=0,B=!1;g.prototype.BO=function(){this.Ll&&(q=this.Ll.zQ(this.PL))};g.prototype.tC=function(){var a=q,c=0,k=0,b=!0,d,e,k=0;for(d=this.vn.length;k<d;k++){e=this.vn[k];var h=e.Ur;if(!h||0>=h)h=5E4;a+=h;e.src&&(e.complete||e.loaded)&&!e.zC?c+=h:b=!1}b&&this.YP&&this.Ll&&(B||(this.Ll.GQ(),B=!0),k=this.Ll.gO(),c+=k,k<q&&(b=!1));this.fe=0==a?1:c/a;return b};var z=!1;g.prototype.go=function(){if(this.Nb||this.M){var a=
this.Nb||this.fz;this.Hd&&this.lF();var c=window.innerWidth,b=window.innerHeight;this.xm===c&&this.wm===b||this.setSize(c,b);this.fe=0;this.kE=-1;var d=this;if(this.tC()&&(4!==this.Kj||z))this.CO();else{b=Date.now()-this.ru;if(a){var e=this.width,p=this.height,c=this.devicePixelRatio;if(3>this.Kj&&(this.Re||500<=b&&this.kE!=this.fe)){a.clearRect(0,0,e,p);var b=e/2,p=p/2,e=0===this.Kj&&this.Jj.ot.complete,q=40*c,f=0,g=80*c,t;if(e){var l=this.Jj.ot,g=l.width*c;t=l.height*c;q=g/2;f=t/2;a.drawImage(l,
sa(b-q),sa(p-f),g,t)}1>=this.Kj?(b=sa(b-q)+.5,p=sa(p+(f+(e?12*c:0)))+.5,a.fillStyle=k?"red":"DodgerBlue",a.fillRect(b,p,Math.floor(g*this.fe),6*c),a.strokeStyle="black",a.strokeRect(b,p,g,6*c),a.strokeStyle="white",a.strokeRect(b-1*c,p-1*c,g+2*c,8*c)):2===this.Kj&&(a.font=this.wg?"12pt ArialMT":"12pt Arial",a.fillStyle=k?"#f00":"#999",a.zS="middle",c=Math.round(100*this.fe)+"%",e=a.measureText?a.measureText(c):null,a.fillText(c,b-(e?e.width:0)/2,p));this.kE=this.fe}else if(4===this.Kj){this.RM(a);
h?h(function(){d.go()}):setTimeout(function(){d.go()},16);return}}setTimeout(function(){d.go()},this.Re?10:100)}}};var x=-1,u="undefined"===typeof cr_is_preview?200:0,r=!0,y=!1,D=0,w=0,C="undefined"===typeof cr_is_preview?3E3:0,G=null,A=null,v=0;g.prototype.RM=function(a){if(!z){for(var c=Math.ceil(this.width),b=Math.ceil(this.height),d=this.Jj.ot,e=this.Jj.WP,h=this.Jj.hR,p=0;4>p;++p)if(!d[p].complete||!e[p].complete||!h[p].complete)return;0===v&&(x=Date.now());var p=Date.now(),q=!1,f=a,g,t;r||y?
(a.clearRect(0,0,c,b),G&&G.width===c&&G.height===b||(G=document.createElement("canvas"),G.width=c,G.height=b,A=G.getContext("2d")),f=A,q=!0,r&&1===v&&(x=Date.now())):a.globalAlpha=1;f.fillStyle="#333333";f.fillRect(0,0,c,b);256<this.qo?(g=Ka(.22*b,105,.6*c),t=.25*g,f.drawImage(m(e,g),.5*c-g/2,.2*b-t/2,g,t),t=g=Math.min(.395*b,.95*c),f.drawImage(m(d,g),.5*c-g/2,.485*b-t/2,g,t),g=Ka(.22*b,105,.6*c),t=.25*g,f.drawImage(m(h,g),.5*c-g/2,.868*b-t/2,g,t),f.fillStyle="#3C3C3C",g=c,t=Math.max(.005*b,2),f.fillRect(0,
.8*b-t/2,g,t),f.fillStyle=k?"red":"#E0FF65",g=c*this.fe,f.fillRect(.5*c-g/2,.8*b-t/2,g,t)):(t=g=.55*b,f.drawImage(m(d,g),.5*c-g/2,.45*b-t/2,g,t),f.fillStyle="#3C3C3C",g=c,t=Math.max(.005*b,2),f.fillRect(0,.85*b-t/2,g,t),f.fillStyle=k?"red":"#E0FF65",g=c*this.fe,f.fillRect(.5*c-g/2,.85*b-t/2,g,t));q&&(r?a.globalAlpha=0===v?0:Math.min((p-x)/300,1):y&&(a.globalAlpha=Math.max(1-(p-w)/300,0)),a.drawImage(G,0,0,c,b));r&&300<=p-x&&2<=v&&(r=!1,D=p);!r&&p-D>=C&&!y&&1<=this.fe&&(y=!0,w=p);if(y&&p-w>=300+u||
"undefined"!==typeof cr_is_preview&&1<=this.fe&&500>Date.now()-x)z=!0,y=r=!1,this.Jj=A=G=null;++v}};g.prototype.CO=function(){this.Hd&&(this.canvas.parentNode.removeChild(this.Hd),this.Hd=this.fz=null);this.ru=Date.now();this.Uk=ab();var a,c,b;if(this.eA)for(a=0,c=this.da.length;a<c;a++)b=this.da[a],b.ea||b.hy||!b.G.Hj||b.I();else this.um=!1;a=0;for(c=this.Ag.length;a<c;a++)this.Ag[a].fM();2<=this.Sd&&(a=this.Qc/this.Pc,c=this.width/this.height,this.fo=2!==this.Sd&&c>a||2===this.Sd&&c<a?this.height/
this.Pc:this.width/this.Qc);this.eD?this.wi[this.eD].Oz():this.Ag[0].Oz();this.eA||(this.Yk=1,this.trigger(U.prototype.n.mB,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(c=this.da.length;a<c;a++)b=this.da[a],b.VE&&b.VE();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.ra(!1);this.od&&AppMobi.webview.execute("onGameReady();")};g.prototype.ra=
function(a,c,b){if(this.qb){var k=ab();if(b||!this.Xo||a){a||(h?this.pz=h(this.eG):this.Sz=setTimeout(this.eG,this.lf?1:16));c=c||k;var d=this.Sd;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.we)||this.Wo)&&0<this.Dk&&(d=this.Dk);if(0<d){var d=window.innerWidth,e=window.innerHeight;this.xm===d&&this.wm===e||this.setSize(d,e)}this.Ca||(b?this.rs||(this.rs=!0):this.rs?(this.rs=!1,0===this.Sd&&this.setSize(Math.round(this.UE/this.devicePixelRatio),
Math.round(this.TE/this.devicePixelRatio),!0)):(this.UE=this.width,this.TE=this.height));this.um&&(b=this.tC(),this.Yk=this.fe,b&&(this.um=!1,this.fe=1,this.trigger(U.prototype.n.mB,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.mP(c);!this.la&&!this.Re||this.uy||this.vq||a||(this.la=!1,this.M?this.Tb():this.gc(),this.sq&&(this.canvas&&this.canvas.toDataURL&&(this.XF=this.canvas.toDataURL(this.sq[0],this.sq[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.XF),this.trigger(U.prototype.n.FI,
null)),this.sq=null));this.jS||(this.hd++,this.Ak++,this.xs++);this.Gp+=ab()-k}}};g.prototype.mP=function(a){var c,b,k,d,e,h,p,q;1E3<=a-this.Uk&&(this.Uk+=1E3,1E3<=a-this.Uk&&(this.Uk=a),this.ws=this.xs,this.xs=0,this.Ow=this.Gp,this.Gp=0);c=0;0!==this.bt&&(c=a-this.bt,0>c&&(c=0),this.vk=c/=1E3,.5<this.vk?this.vk=0:this.vk>1/this.LE&&(this.vk=1/this.LE));this.bt=a;this.uk=this.vk*this.Yc;this.td.add(this.uk);this.Wi.add(c);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||
!!document.msFullscreenElement||this.Wo)&&!this.we;2<=this.Sd||a&&0<this.Dk?(c=this.Qc/this.Pc,b=this.width/this.height,k=this.Sd,a&&0<this.Dk&&(k=this.Dk),this.fo=2!==k&&b>c||2===k&&b<c?this.height/this.Pc:this.width/this.Qc,this.qb&&(this.qb.AF(this.qb.scrollX),this.qb.BF(this.qb.scrollY))):this.fo=this.Nk?this.devicePixelRatio:1;this.Ld();this.kf++;this.Ch.pQ();this.kf--;this.Ld();this.kf++;b=this.SE.$e();a=0;for(c=b.length;a<c;a++)b[a].tS();a=0;for(c=this.da.length;a<c;a++)if(h=this.da[a],!h.ea&&
(h.mc.length||h.Wb.length))for(b=0,k=h.A.length;b<k;b++)for(p=h.A[b],d=0,e=p.ua.length;d<e;d++)p.ua[d].ra();a=0;for(c=this.da.length;a<c;a++)if(h=this.da[a],!h.ea&&(h.mc.length||h.Wb.length))for(b=0,k=h.A.length;b<k;b++)for(p=h.A[b],d=0,e=p.ua.length;d<e;d++)q=p.ua[d],q.VP&&q.VP();b=this.Uy.$e();a=0;for(c=b.length;a<c;a++)b[a].ra();this.kf--;this.DO();for(a=0;this.qk&&10>a++;)this.UC(this.qk);a=0;for(c=this.ei.length;a<c;a++)this.ei[a].Px=!1;this.qb.yk&&this.qb.yk.Vc();H(this.il);this.Ey=!1;this.kf++;
a=0;for(c=this.da.length;a<c;a++)if(h=this.da[a],!h.ea&&(h.mc.length||h.Wb.length))for(b=0,k=h.A.length;b<k;b++)for(p=h.A[b],d=0,e=p.ua.length;d<e;d++)q=p.ua[d],q.Wf&&q.Wf();b=this.Vy.$e();a=0;for(c=b.length;a<c;a++)b[a].Wf();this.kf--};g.prototype.Oj=function(){var a,c,b,k,d,e,h,p,q;a=0;for(c=this.da.length;a<c;a++)if(h=this.da[a],!h.ea)for(b=0,k=h.A.length;b<k;b++)if(p=h.A[b],p.Oj&&p.Oj(),p.ua)for(d=0,e=p.ua.length;d<e;d++)q=p.ua[d],q.Oj&&q.Oj()};g.prototype.UC=function(a){var c=this.qb;this.qb.JQ();
var b,k,d;if(this.M)for(b=0,k=this.da.length;b<k;b++)d=this.da[b],d.ea||!d.pn||d.global&&0!==d.A.length||-1!==a.nd.indexOf(d)||d.pn();c==a&&H(this.Ch.He);H(this.il);this.yF(!0);a.Oz();this.yF(!1);this.Ey=this.la=!0;this.Ld()};g.prototype.yF=function(a){var c,b,k,d,e,h,p,q,f;c=0;for(b=this.mc.length;c<b;c++)k=this.mc[c],a?k.Op&&k.Op():k.Sp&&k.Sp();c=0;for(b=this.da.length;c<b;c++)if(k=this.da[c],k.global||k.G.ou)for(d=0,e=k.A.length;d<e;d++)if(h=k.A[d],a?h.Op&&h.Op():h.Sp&&h.Sp(),h.ua)for(p=0,q=h.ua.length;p<
q;p++)f=h.ua[p],a?f.Op&&f.Op():f.Sp&&f.Sp()};g.prototype.Ig=function(a){this.Uy.add(a)};g.prototype.Rz=function(a){this.Vy.add(a)};g.prototype.de=function(a){return a&&-1!==a.Ci?this.vk*a.Ci:this.uk};g.prototype.gc=function(){this.qb.gc(this.Nb);this.od&&this.Nb.present()};g.prototype.Tb=function(){this.Ub&&(this.wk=1,this.qb.xj(this.M));this.qb.Tb(this.M);this.M.$P()};g.prototype.ur=function(a){a&&this.es.push(a)};g.prototype.tF=function(a){Ja(this.es,a)};g.prototype.Td=function(a){a=a.toString();
return this.Ei.hasOwnProperty(a)?this.Ei[a]:null};var S=[];g.prototype.ne=function(a){var c,b;c=a.type.name;var k=null;if(this.tk.hasOwnProperty(c)){if(k=this.tk[c],k.contains(a))return}else k=S.length?S.pop():new ca,this.tk[c]=k;k.add(a);this.Dj=!0;if(a.qd)for(c=0,b=a.siblings.length;c<b;c++)this.ne(a.siblings[c]);this.gy&&k.rn.push(a);this.fy||(this.kf++,this.trigger(Object.getPrototypeOf(a.type.G).n.cB,a),this.kf--)};g.prototype.Ld=function(){if(this.Dj){var a,c,b,k,d,e;this.gy=!0;b=0;for(d=this.kg.length;b<
d;++b)for(a=this.kg[b],c=a.type,c.A.push(a),k=0,e=c.Wb.length;k<e;++k)c.Wb[k].A.push(a),c.Wb[k].an=!0;H(this.kg);this.iI();$a(this.tk);this.Dj=this.gy=!1}};g.prototype.iI=function(){for(var a in this.tk)this.tk.hasOwnProperty(a)&&this.VG(this.tk[a])};g.prototype.VG=function(a){var c=a.$e(),b=c[0].type,k,d,e,h,p,q;bb(b.A,a);b.an=!0;0===b.A.length&&(b.Dr=!1);k=0;for(d=b.Wb.length;k<d;++k)q=b.Wb[k],bb(q.A,a),q.an=!0;k=0;for(d=this.Ch.He.length;k<d;++k)if(p=this.Ch.He[k],p.je.hasOwnProperty(b.index)&&
bb(p.je[b.index].ni,a),!b.ea)for(e=0,h=b.Wb.length;e<h;++e)q=b.Wb[e],p.je.hasOwnProperty(q.index)&&bb(p.je[q.index].ni,a);if(p=c[0].F){if(p.zf)for(e=p.A,k=0,d=e.length;k<d;++k)h=e[k],a.contains(h)&&(h.ja(),p.Id.update(h,h.De,null),h.De.set(0,0,-1,-1));bb(p.A,a);p.oq(0)}for(k=0;k<c.length;++k)this.UG(c[k],b);a.clear();S.push(a);this.la=!0};g.prototype.UG=function(a,c){var b,k,d;b=0;for(k=this.es.length;b<k;++b)this.es[b](a);a.Ef&&c.ko.update(a,a.Ef,null);(b=a.F)&&b.Vm(a,!0);if(a.ua)for(b=0,k=a.ua.length;b<
k;++b)d=a.ua[b],d.Pb&&d.Pb(),d.behavior.dl.remove(a);this.SE.remove(a);this.Uy.remove(a);this.Vy.remove(a);a.Pb&&a.Pb();this.Ei.hasOwnProperty(a.uid.toString())&&delete this.Ei[a.uid.toString()];this.zt--;100>c.ro.length&&c.ro.push(a)};g.prototype.lo=function(a,c,b,k){if(a.ea){var d=sa(Math.random()*a.cl.length);return this.lo(a.cl[d],c,b,k)}return a.If?this.uj(a.If,c,!1,b,k,!1):null};var W=[];g.prototype.uj=function(a,c,b,k,d,e){var h,p,q,f;if(!a)return null;var g=this.da[a[1]],t=g.G.Hj;if(this.um&&
t&&!g.hy||t&&!this.M&&11===a[0][11])return null;var l=c;t||(c=null);var r;g.ro.length?(r=g.ro.pop(),r.Ib=!0,g.G.J.call(r,g)):(r=new g.G.J(g),r.Ib=!1);!b||e||this.Ei.hasOwnProperty(a[2].toString())?r.uid=this.Mp++:r.uid=a[2];this.Ei[r.uid.toString()]=r;r.pF=this.OE++;r.Ik=g.A.length;h=0;for(p=this.kg.length;h<p;++h)this.kg[h].type===g&&r.Ik++;r.Eo=Fb;r.toString=Gb;q=a[3];if(r.Ib)$a(r.ka);else{r.ka={};if("undefined"!==typeof cr_is_preview)for(r.QD=[],r.QD.length=q.length,h=0,p=q.length;h<p;h++)r.QD[h]=
q[h][1];r.ic=[];r.ic.length=q.length}h=0;for(p=q.length;h<p;h++)r.ic[h]=q[h][0];if(t){var m=a[0];r.x=ka(k)?m[0]:k;r.y=ka(d)?m[1]:d;r.z=m[2];r.width=m[3];r.height=m[4];r.depth=m[5];r.C=m[6];r.opacity=m[7];r.Wd=m[8];r.Xd=m[9];r.nc=m[10];h=m[11];!this.M&&g.Ma.length&&(r.nc=h);r.Ff=jb(r.nc);this.ba&&kb(r,r.nc,this.ba);if(r.Ib){h=0;for(p=m[12].length;h<p;h++)for(q=0,f=m[12][h].length;q<f;q++)r.qc[h][q]=m[12][h][q];r.za.set(0,0,0,0);r.Ef.set(0,0,-1,-1);r.De.set(0,0,-1,-1);r.Wa.ml(r.za);H(r.Cw)}else{r.qc=
m[12].slice(0);h=0;for(p=r.qc.length;h<p;h++)r.qc[h]=m[12][h].slice(0);r.rb=[];r.kj=[];r.kj.length=g.Ma.length;r.za=new wa(0,0,0,0);r.Ef=new wa(0,0,-1,-1);r.De=new wa(0,0,-1,-1);r.Wa=new xa;r.Cw=[];r.S=Lb;r.JL=Mb;r.ec=Nb;r.ja=Ob;r.vG=Pb;r.dA=Qb;r.Qe=Rb}r.pl=!1;r.PQ=0;r.OQ=0;r.NQ=null;14===m.length&&(r.pl=!0,r.PQ=m[13][0],r.OQ=m[13][1],r.NQ=m[13][2]);h=0;for(p=g.Ma.length;h<p;h++)r.kj[h]=!0;r.Mi=!0;r.Kg=Sb;r.Kg();r.yG=!!r.rb.length;r.Ir=!0;r.Fw=!0;g.Cr=!0;r.visible=!0;r.Ci=-1;r.F=c;r.Mg=c.A.length;
r.wk=0;"undefined"===typeof r.gb&&(r.gb=null);this.la=r.cf=!0}var v;H(W);h=0;for(p=g.Wb.length;h<p;h++)W.push.apply(W,g.Wb[h].mc);W.push.apply(W,g.mc);if(r.Ib)for(h=0,p=W.length;h<p;h++){var B=W[h];v=r.ua[h];v.Ib=!0;B.behavior.J.call(v,B,r);m=a[4][h];q=0;for(f=m.length;q<f;q++)v.B[q]=m[q];v.I();B.behavior.dl.add(r)}else for(r.ua=[],h=0,p=W.length;h<p;h++)B=W[h],v=new B.behavior.J(B,r),v.Ib=!1,v.B=a[4][h].slice(0),v.I(),r.ua.push(v),B.behavior.dl.add(r);m=a[5];if(r.Ib)for(h=0,p=m.length;h<p;h++)r.B[h]=
m[h];else r.B=m.slice(0);this.kg.push(r);this.Dj=!0;c&&(c.eo(r,!0),1!==c.pb||1!==c.Qb)&&(g.Dr=!0);this.zt++;if(g.qd){if(r.qd=!0,r.Ib?H(r.siblings):r.siblings=[],!b&&!e){h=0;for(p=g.Le.length;h<p;h++)if(g.Le[h]!==g){if(!g.Le[h].If)return null;r.siblings.push(this.uj(g.Le[h].If,l,!1,t?r.x:k,t?r.y:d,!0))}h=0;for(p=r.siblings.length;h<p;h++)for(r.siblings[h].siblings.push(r),q=0;q<p;q++)h!==q&&r.siblings[h].siblings.push(r.siblings[q])}}else r.qd=!1,r.siblings=null;r.I();h=0;for(p=r.ua.length;h<p;h++)r.ua[h].UP&&
r.ua[h].UP();return r};g.prototype.Lf=function(a){var c,b;c=0;for(b=this.qb.Pa.length;c<b;c++){var k=this.qb.Pa[c];if(mb(k.name,a))return k}return null};g.prototype.uc=function(a){a=sa(a);0>a&&(a=0);a>=this.qb.Pa.length&&(a=this.qb.Pa.length-1);return this.qb.Pa[a]};g.prototype.Bs=function(a){return E(a)?this.uc(a):this.Lf(a.toString())};g.prototype.Jw=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].ga().na=!0};g.prototype.hq=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].hq()};g.prototype.ge=
function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].ge()};g.prototype.yd=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].yd()};g.prototype.qG=function(a){if(a.Cr){var c,b,k=a.A;c=0;for(b=k.length;c<b;++c)k[c].dA();k=this.kg;c=0;for(b=k.length;c<b;++c)k[c].type===a&&k[c].dA();a.Cr=!1}};g.prototype.wx=function(a,c,b,k){var d,e,h=a?1!==a.pb||1!==a.Qb:!1;if(c.ea)for(a=0,d=c.cl.length;a<d;++a)e=c.cl[a],h||e.Dr?Ha(k,e.A):(this.qG(e),e.ko.Ut(b,k));else h||c.Dr?Ha(k,c.A):(this.qG(c),c.ko.Ut(b,k))};g.prototype.BD=
function(a,c,b,k){var d,e;d=0;for(e=c.length;d<e;++d)this.wx(a,c[d],b,k)};g.prototype.yD=function(a,c,b){var k=this.Mz;k&&this.BD(a,k.Ry,c,b)};g.prototype.gn=function(a,c,b){var k=a.ga(),d,e,h,p,q=this.wb().Cb.rf,f,g,t;if(k.na)for(k.na=!1,H(k.A),d=0,p=a.A.length;d<p;d++)h=a.A[d],h.ja(),f=h.F.Ga(c,b,!0),g=h.F.Ga(c,b,!1),h.ec(f,g)?k.A.push(h):q&&k.Ha.push(h);else{e=0;t=q?k.Ha:k.A;d=0;for(p=t.length;d<p;d++)h=t[d],h.ja(),f=h.F.Ga(c,b,!0),g=h.F.Ga(c,b,!1),h.ec(f,g)&&(q?k.A.push(h):(k.A[e]=k.A[d],e++));
t.length=e}a.jd();return k.Js()};g.prototype.Xj=function(a,c){if(!(a&&c&&a!==c&&a.cf&&c.cf))return!1;a.ja();c.ja();var b=a.F,k=c.F,d,e,h,p,q,f,g,t;if(b===k||b.pb===k.pb&&k.Qb===k.Qb&&b.scale===k.scale&&b.C===k.C&&b.ib===k.ib){if(!a.za.SD(c.za)||!a.Wa.RD(c.Wa)||a.pl&&c.pl)return!1;if(a.pl)return this.cG(a,c);if(c.pl)return this.cG(c,a);g=a.gb&&!a.gb.Pk();d=c.gb&&!c.gb.Pk();if(!g&&!d)return!0;g?(a.gb.pk(a.width,a.height,a.C),g=a.gb):(this.Hg.Zm(a.Wa,a.x,a.y,a.width,a.height),g=this.Hg);d?(c.gb.pk(c.width,
c.height,c.C),t=c.gb):(this.Hg.Zm(c.Wa,c.x,c.y,c.width,c.height),t=this.Hg);return g.Oo(t,c.x-a.x,c.y-a.y)}g=a.gb&&!a.gb.Pk();d=c.gb&&!c.gb.Pk();g?(a.gb.pk(a.width,a.height,a.C),this.Hg.NF(a.gb)):this.Hg.Zm(a.Wa,a.x,a.y,a.width,a.height);g=this.Hg;d?(c.gb.pk(c.width,c.height,c.C),this.Qz.NF(c.gb)):this.Qz.Zm(c.Wa,c.x,c.y,c.width,c.height);t=this.Qz;d=0;for(e=g.Pf;d<e;d++)h=2*d,p=h+1,q=g.Uc[h],f=g.Uc[p],g.Uc[h]=b.Oa(q+a.x,f+a.y,!0),g.Uc[p]=b.Oa(q+a.x,f+a.y,!1);g.ja();d=0;for(e=t.Pf;d<e;d++)h=2*d,p=
h+1,q=t.Uc[h],f=t.Uc[p],t.Uc[h]=k.Oa(q+c.x,f+c.y,!0),t.Uc[p]=k.Oa(q+c.x,f+c.y,!1);t.ja();return g.Oo(t,0,0)};var V=new xa,X=new wa(0,0,0,0),N=[];g.prototype.cG=function(a,c){var b,k,d,e,h=c.za,p=a.x,q=a.y;a.RN(h,N);var f=c.gb&&!c.gb.Pk();b=0;for(k=N.length;b<k;++b)if(d=N[b],e=d.eQ,h.TD(e,p,q)&&(V.ml(e),V.offset(p,q),V.RD(c.Wa)))if(f)if(c.gb.pk(c.width,c.height,c.C),d.bq){if(d.bq.Oo(c.gb,c.x-(p+e.left),c.y-(q+e.top)))return H(N),!0}else{if(this.Hg.Zm(V,0,0,e.right-e.left,e.bottom-e.top),this.Hg.Oo(c.gb,
c.x,c.y))return H(N),!0}else if(d.bq){if(this.Hg.Zm(c.Wa,0,0,c.width,c.height),d.bq.Oo(this.Hg,-(p+e.left),-(q+e.top)))return H(N),!0}else return H(N),!0;H(N);return!1};g.prototype.bG=function(a,c,b,k,d){if(!d||!d.cf)return!1;d.ja();X.set(qa(a,b),qa(c,k),pa(a,b),pa(c,k));if(!d.za.SD(X))return!1;if(d.pl){d.RN(X,N);var e,h,p,q=d.x,f=d.y;d=0;for(e=N.length;d<e;++d)if(h=N[d],p=h.eQ,X.TD(p,q,f)&&(V.ml(p),V.offset(q,f),V.Po(a,c,b,k)))if(h.bq){if(h.bq.Po(q+p.left,f+p.top,a,c,b,k))return H(N),!0}else return H(N),
!0;H(N);return!1}if(!d.Wa.Po(a,c,b,k))return!1;if(!d.gb||d.gb.Pk())return!0;d.gb.pk(d.width,d.height,d.C);return d.gb.Po(d.x,d.y,a,c,b,k)};g.prototype.mG=function(a,c){if(!c)return!1;var b,k,d,e,h;b=0;for(k=a.mc.length;b<k;b++)if(a.mc[b].behavior instanceof c)return!0;if(!a.ea)for(b=0,k=a.Wb.length;b<k;b++)for(h=a.Wb[b],d=0,e=h.mc.length;d<e;d++)if(h.mc[d].behavior instanceof c)return!0;return!1};g.prototype.Yz=function(a){return this.mG(a,nc.CR)};g.prototype.Zz=function(a){return this.mG(a,nc.DR)};
var T=[];g.prototype.Tf=function(a){var c,b,k;a.ja();this.yD(a.F,a.za,T);c=0;for(b=T.length;c<b;++c)if(k=T[c],k.ka.solidEnabled&&this.Xj(a,k))return H(T),k;H(T);return null};g.prototype.Tt=function(a,c,b,k){k=k||50;var d=a.x,e=a.y,h,p=null,q=null;for(h=0;h<k;h++)if(a.x=d+c*h,a.y=e+b*h,a.S(),!this.Xj(a,p)&&((p=this.Tf(a))&&(q=p),!p&&!p))return q&&this.bQ(a,c,b,q),!0;a.x=d;a.y=e;a.S();return!1};g.prototype.bQ=function(a,c,b,k){var d=2,e,h=!1;e=!1;for(var p=a.x,q=a.y;16>=d;)e=1/d,d*=2,a.x+=c*e*(h?1:
-1),a.y+=b*e*(h?1:-1),a.S(),this.Xj(a,k)?e=h=!0:(e=h=!1,p=a.x,q=a.y);e&&(a.x=p,a.y=q,a.S())};g.prototype.qF=function(a,c){var b=ka(c)?100:c,k=0,d=a.x,e=a.y,h=0,p=0,q=0,f=this.Tf(a);if(!f)return!0;for(;k<=b;){switch(h){case 0:p=0;q=-1;k++;break;case 1:p=1;q=-1;break;case 2:p=1;q=0;break;case 3:q=p=1;break;case 4:p=0;q=1;break;case 5:p=-1;q=1;break;case 6:p=-1;q=0;break;case 7:q=p=-1}h=(h+1)%8;a.x=sa(d+p*k);a.y=sa(e+q*k);a.S();if(!this.Xj(a,f)&&(f=this.Tf(a),!f))return!0}a.x=d;a.y=e;a.S();return!1};
g.prototype.Um=function(a,c){a.cf&&c.cf&&this.il.push([a,c])};g.prototype.IL=function(a,c,b){var k,d,e;k=0;for(d=this.il.length;k<d;++k){e=this.il[k];if(e[0]===a)e=e[1];else if(e[1]===a)e=e[0];else continue;if(c.ea){if(-1===c.cl.indexOf(c))continue}else if(e.type!==c)continue;-1===b.indexOf(e)&&b.push(e)}};g.prototype.$L=function(a,c){var b,k,d;b=0;for(k=this.il.length;b<k;b++)if(d=this.il[b],d[0]===a&&d[1]===c||d[0]===c&&d[1]===a)return!0;return!1};g.prototype.XL=function(a,c,b){var k=a.x,d=a.y,
e=pa(10,Xa(c,b,k,d)),h=Qa(c,b,k,d),p=this.Tf(a);if(!p)return Na(h+ra);var q=p,f,g,t,r,l=K(5);for(f=1;36>f;f++)if(g=h-f*l,a.x=c+Math.cos(g)*e,a.y=b+Math.sin(g)*e,a.S(),!this.Xj(a,q)&&(q=this.Tf(a),!q)){t=g;break}36===f&&(t=Na(h+ra));q=p;for(f=1;36>f;f++)if(g=h+f*l,a.x=c+Math.cos(g)*e,a.y=b+Math.sin(g)*e,a.S(),!this.Xj(a,q)&&(q=this.Tf(a),!q)){r=g;break}36===f&&(r=Na(h+ra));a.x=k;a.y=d;a.S();if(r===t)return r;a=Ra(r,t)/2;a=Ua(r,t)?Na(t+a+ra):Na(r+a);t=Math.cos(h);h=Math.sin(h);r=Math.cos(a);a=Math.sin(a);
c=t*r+h*a;return Qa(0,0,t-2*c*r,h-2*c*a)};var ea=-1;g.prototype.trigger=function(a,c,b){if(!this.qb)return!1;var k=this.qb.yk;if(!k)return!1;var d=!1,e,h,p;ea++;var q=k.Tw;h=0;for(p=q.length;h<p;++h)e=this.iG(a,c,q[h],b),d=d||e;e=this.iG(a,c,k,b);ea--;return d||e};g.prototype.iG=function(a,c,b,k){var d=!1,e,h,p,q;if(c)for(p=this.Vz(a,c,c.type.name,b,k),d=d||p,q=c.type.Wb,e=0,h=q.length;e<h;++e)p=this.Vz(a,c,q[e].name,b,k),d=d||p;else p=this.Vz(a,c,"system",b,k),d=d||p;return d};g.prototype.Vz=function(a,
c,b,k,d){var e,h=!1,p=!1,p="undefined"!==typeof d,q=(p?k.ZC:k.jG)[b];if(!q)return h;var f=null;k=0;for(e=q.length;k<e;++k)if(q[k].method==a){f=q[k].wo;break}if(!f)return h;var g;p?g=f[d]:g=f;if(!g)return null;k=0;for(e=g.length;k<e;k++)a=g[k][0],d=g[k][1],p=this.AN(c,b,a,d),h=h||p;return h};g.prototype.AN=function(a,c,b,k){var d,e,h=!1;this.Wz++;var p=this.wb().Cb;p&&this.hq(p.Wj);var q=1<this.Wz;this.hq(b.Wj);q&&this.cQ();var f=this.St(b);f.Cb=b;a&&(d=this.types[c].ga(),d.na=!1,H(d.A),d.A[0]=a,this.types[c].jd());
a=!0;if(b.parent){c=f.aG;for(d=b.parent;d;)c.push(d),d=d.parent;c.reverse();d=0;for(e=c.length;d<e;d++)if(!c[d].rQ()){a=!1;break}}a&&(this.Ak++,b.rf?b.qQ(k):b.Vc(),h=h||f.Tk);this.Ot();q&&this.SP();this.yd(b.Wj);p&&this.yd(p.Wj);this.Dj&&0===this.kf&&0===ea&&!this.ky&&this.Ld();this.Wz--;return h};g.prototype.ki=function(){var a=this.wb();return a.Cb.ad[a.Gc]};g.prototype.TN=function(){return this.ki().type};g.prototype.RO=function(){return 0===this.wb().Gc};g.prototype.SN=function(){var a=this.wb();
return a.Cb.Df[a.te]};g.prototype.cQ=function(){this.kt++;this.kt>=this.Jy.length&&this.Jy.push([])};g.prototype.SP=function(){this.kt--};g.prototype.pD=function(){return this.Jy[this.kt]};g.prototype.St=function(a){this.js++;this.js>=this.$w.length&&this.$w.push(new Tb);var c=this.wb();c.reset(a);return c};g.prototype.Ot=function(){this.js--};g.prototype.wb=function(){return this.$w[this.js]};g.prototype.oz=function(a){this.Ip++;this.Ip>=this.Hp.length&&this.Hp.push(aa({name:a,index:0,Zb:!1}));var c=
this.qD();c.name=a;c.index=0;c.Zb=!1;return c};g.prototype.lz=function(){this.Ip--};g.prototype.qD=function(){return this.Hp[this.Ip]};g.prototype.tD=function(a,c){for(var b,k,d,e,h,p;c;){b=0;for(k=c.Sf.length;b<k;b++)if(p=c.Sf[b],p instanceof Ub&&mb(a,p.name))return p;c=c.parent}b=0;for(k=this.ei.length;b<k;b++)for(h=this.ei[b],d=0,e=h.yj.length;d<e;d++)if(p=h.yj[d],p instanceof Ub&&mb(a,p.name))return p;return null};g.prototype.vD=function(a){var c,b;c=0;for(b=this.Ag.length;c<b;c++)if(this.Ag[c].eb===
a)return this.Ag[c];return null};g.prototype.Co=function(a){var c,b;c=0;for(b=this.da.length;c<b;c++)if(this.da[c].eb===a)return this.da[c];return null};g.prototype.XN=function(a){var c,b;c=0;for(b=this.Kl.length;c<b;c++)if(this.Kl[c].eb===a)return this.Kl[c];return null};g.prototype.sM=function(a,c){this.sq=[a,c];this.la=!0};g.prototype.DO=function(){var c=this,k=this.Dz,e=this.ti,h=this.gt,p=!1;this.VF&&(p=!0,k="__c2_continuouspreview",this.VF=!1);if(k.length){this.Ld();e=this.vQ();if(l()&&!this.Re)b(k,
e,function(){fa("Saved state to IndexedDB storage ("+e.length+" bytes)");c.ti=e;c.trigger(U.prototype.n.wv,null);c.ti="";p&&d()},function(a){try{localStorage.setItem("__c2save_"+k,e),fa("Saved state to WebStorage ("+e.length+" bytes)"),c.ti=e,c.trigger(U.prototype.n.wv,null),c.ti="",p&&d()}catch(b){fa("Failed to save game state: "+a+"; "+b),c.trigger(U.prototype.n.sB,null)}});else try{localStorage.setItem("__c2save_"+k,e),fa("Saved state to WebStorage ("+e.length+" bytes)"),c.ti=e,this.trigger(U.prototype.n.wv,
null),c.ti="",p&&d()}catch(q){fa("Error saving to WebStorage: "+q),c.trigger(U.prototype.n.sB,null)}this.gt=this.Dz="";this.gd=null}if(h.length){if(l()&&!this.Re)a(h,function(a){a?(c.gd=a,fa("Loaded state from IndexedDB storage ("+c.gd.length+" bytes)")):(c.gd=localStorage.getItem("__c2save_"+h)||"",fa("Loaded state from WebStorage ("+c.gd.length+" bytes)"));c.vq=!1;c.gd||(c.gd=null,c.trigger(U.prototype.n.Zq,null))},function(){c.gd=localStorage.getItem("__c2save_"+h)||"";fa("Loaded state from WebStorage ("+
c.gd.length+" bytes)");c.vq=!1;c.gd||(c.gd=null,c.trigger(U.prototype.n.Zq,null))});else{try{this.gd=localStorage.getItem("__c2save_"+h)||"",fa("Loaded state from WebStorage ("+this.gd.length+" bytes)")}catch(f){this.gd=null}this.vq=!1;c.gd||(c.gd=null,c.trigger(U.prototype.n.Zq,null))}this.Dz=this.gt=""}null!==this.gd&&(this.Ld(),this.lP(this.gd)?(this.ti=this.gd,this.trigger(U.prototype.n.aJ,null),this.ti=""):c.trigger(U.prototype.n.Zq,null),this.gd=null)};g.prototype.vQ=function(){var a,c,b,k,
d,h,p,q={c2save:!0,version:1,rt:{time:this.td.wa,walltime:this.Wi.wa,timescale:this.Yc,tickcount:this.hd,execcount:this.Ak,next_uid:this.Mp,running_layout:this.qb.eb,start_time_offset:Date.now()-this.ru},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(c=this.da.length;a<c;a++)if(d=this.da[a],!d.ea&&!this.Yz(d)){h={instances:[]};Za(d.ka)&&(h.ex=e(d.ka));b=0;for(k=d.A.length;b<k;b++)h.instances.push(this.Cz(d.A[b]));q.types[d.eb.toString()]=h}a=0;for(c=this.Ag.length;a<c;a++)b=
this.Ag[a],q.layouts[b.eb.toString()]=b.P();k=q.events.groups;a=0;for(c=this.Kl.length;a<c;a++)b=this.Kl[a],k[b.eb.toString()]=this.fm[b.Ho].Fk;c=q.events.cnds;for(p in this.sj)this.sj.hasOwnProperty(p)&&(a=this.sj[p],Za(a.ka)&&(c[p]={ex:e(a.ka)}));c=q.events.acts;for(p in this.lj)this.lj.hasOwnProperty(p)&&(a=this.lj[p],Za(a.ka)&&(c[p]={ex:e(a.ka)}));c=q.events.vars;for(p in this.sn)this.sn.hasOwnProperty(p)&&(a=this.sn[p],a.Us||a.parent&&!a.bp||(c[p]=a.data));q.system=this.Ch.P();return JSON.stringify(q)};
g.prototype.sF=function(){var a,c,b,k,d,e;this.Ei={};a=0;for(c=this.da.length;a<c;a++)if(b=this.da[a],!b.ea)for(k=0,d=b.A.length;k<d;k++)e=b.A[k],this.Ei[e.uid.toString()]=e};g.prototype.lP=function(a){var c;try{c=JSON.parse(a)}catch(b){return!1}if(!c.c2save||1<c.version)return!1;this.Uo=!0;a=c.rt;this.td.reset();this.td.wa=a.time;this.Wi.reset();this.Wi.wa=a.walltime||0;this.Yc=a.timescale;this.hd=a.tickcount;this.Ak=a.execcount;this.ru=Date.now()-a.start_time_offset;var k=a.running_layout;if(k!==
this.qb.eb)if(k=this.vD(k))this.UC(k);else return;var d,e,h,p,q,f,g;f=c.types;for(e in f)if(f.hasOwnProperty(e)&&(p=this.Co(parseInt(e,10)))&&!p.ea&&!this.Yz(p)){f[e].ex?p.ka=f[e].ex:$a(p.ka);q=p.A;h=f[e].instances;k=0;for(d=qa(q.length,h.length);k<d;k++)this.ht(q[k],h[k]);k=h.length;for(d=q.length;k<d;k++)this.ne(q[k]);k=q.length;for(d=h.length;k<d;k++){q=null;if(p.G.Hj&&(q=this.qb.Cs(h[k].w.l),!q))continue;q=this.uj(p.If,q,!1,0,0,!0);this.ht(q,h[k])}p.an=!0}this.Ld();this.sF();d=c.layouts;for(e in d)d.hasOwnProperty(e)&&
(k=this.vD(parseInt(e,10)))&&k.ca(d[e]);d=c.events.groups;for(e in d)d.hasOwnProperty(e)&&(k=this.XN(parseInt(e,10)))&&this.fm[k.Ho]&&this.fm[k.Ho].hu(d[e]);k=c.events.cnds;for(e in this.sj)this.sj.hasOwnProperty(e)&&(k.hasOwnProperty(e)?this.sj[e].ka=k[e].ex:this.sj[e].ka={});k=c.events.acts;for(e in this.lj)this.lj.hasOwnProperty(e)&&(k.hasOwnProperty(e)?this.lj[e].ka=k[e].ex:this.lj[e].ka={});k=c.events.vars;for(e in k)k.hasOwnProperty(e)&&this.sn.hasOwnProperty(e)&&(this.sn[e].data=k[e]);this.Mp=
a.next_uid;this.Uo=!1;k=0;for(d=this.qs.length;k<d;++k)q=this.qs[k],this.trigger(Object.getPrototypeOf(q.type.G).n.gk,q);H(this.qs);this.Ch.ca(c.system);k=0;for(d=this.da.length;k<d;k++)if(p=this.da[k],!p.ea&&!this.Yz(p))for(c=0,e=p.A.length;c<e;c++){q=p.A[c];if(p.qd)for(f=q.Eo(),H(q.siblings),a=0,h=p.Le.length;a<h;a++)g=p.Le[a],p!==g&&q.siblings.push(g.A[f]);q.Kb&&q.Kb();if(q.ua)for(a=0,h=q.ua.length;a<h;a++)f=q.ua[a],f.Kb&&f.Kb()}return this.la=!0};g.prototype.Cz=function(a,c){var b,k,d,h,p;h=a.type;
d=h.G;var q={};c?q.c2=!0:q.uid=a.uid;Za(a.ka)&&(q.ex=e(a.ka));if(a.ic&&a.ic.length)for(q.ivs={},b=0,k=a.ic.length;b<k;b++)q.ivs[a.type.by[b].toString()]=a.ic[b];if(d.Hj){d={x:a.x,y:a.y,w:a.width,h:a.height,l:a.F.eb,zi:a.Qe()};0!==a.C&&(d.a=a.C);1!==a.opacity&&(d.o=a.opacity);.5!==a.Wd&&(d.hX=a.Wd);.5!==a.Xd&&(d.hY=a.Xd);0!==a.nc&&(d.bm=a.nc);a.visible||(d.v=a.visible);a.cf||(d.ce=a.cf);-1!==a.Ci&&(d.mts=a.Ci);if(h.Ma.length)for(d.fx=[],b=0,k=h.Ma.length;b<k;b++)p=h.Ma[b],d.fx.push({name:p.name,active:a.kj[p.index],
params:a.qc[p.index]});q.w=d}if(a.ua&&a.ua.length)for(q.behs={},b=0,k=a.ua.length;b<k;b++)h=a.ua[b],h.P&&(q.behs[h.type.eb.toString()]=h.P());a.P&&(q.data=a.P());return q};g.prototype.ZN=function(a,c){var b,k;b=0;for(k=a.by.length;b<k;b++)if(a.by[b]===c)return b;return-1};g.prototype.NN=function(a,c){var b,k;b=0;for(k=a.ua.length;b<k;b++)if(a.ua[b].type.eb===c)return b;return-1};g.prototype.ht=function(a,c,b){var k,d,e,h,p;p=a.type;var q=p.G;if(b){if(!c.c2)return}else a.uid=c.uid;c.ex?a.ka=c.ex:$a(a.ka);
if(d=c.ivs)for(k in d)d.hasOwnProperty(k)&&(e=this.ZN(p,parseInt(k,10)),0>e||e>=a.ic.length||(h=d[k],null===h&&(h=NaN),a.ic[e]=h));if(q.Hj){e=c.w;a.F.eb!==e.l&&(d=a.F,a.F=this.qb.Cs(e.l),a.F?(d.Vm(a,!0),a.F.eo(a,!0),a.S(),a.F.oq(0)):(a.F=d,b||this.ne(a)));a.x=e.x;a.y=e.y;a.width=e.w;a.height=e.h;a.Mg=e.zi;a.C=e.hasOwnProperty("a")?e.a:0;a.opacity=e.hasOwnProperty("o")?e.o:1;a.Wd=e.hasOwnProperty("hX")?e.hX:.5;a.Xd=e.hasOwnProperty("hY")?e.hY:.5;a.visible=e.hasOwnProperty("v")?e.v:!0;a.cf=e.hasOwnProperty("ce")?
e.ce:!0;a.Ci=e.hasOwnProperty("mts")?e.mts:-1;a.nc=e.hasOwnProperty("bm")?e.bm:0;a.Ff=jb(a.nc);this.ba&&kb(a,a.nc,this.ba);a.S();if(e.hasOwnProperty("fx"))for(b=0,d=e.fx.length;b<d;b++)h=p.yx(e.fx[b].name),0>h||(a.kj[h]=e.fx[b].active,a.qc[h]=e.fx[b].params);a.Kg()}if(p=c.behs)for(k in p)p.hasOwnProperty(k)&&(b=this.NN(a,parseInt(k,10)),0>b||a.ua[b].ca(p[k]));c.data&&a.ca(c.data)};g.prototype.$C=function(a,c,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(c,
b)},b)};g.prototype.bD=function(a,c,b){this.$C(a,function(a){var k=new FileReader;k.onload=function(a){c(a.target.result)};k.onerror=b;k.readAsText(a)},b)};var O=[],J=0;g.prototype.Oy=function(){if(O.length&&!(8<=J)){J++;var a=O.shift();this.vM(a.filename,a.LQ,a.YM)}};g.prototype.aD=function(a,c,b){var k=this;O.push({filename:a,LQ:function(a){J--;k.Oy();c(a)},YM:function(a){J--;k.Oy();b(a)}});this.Oy()};g.prototype.vM=function(a,c,b){this.$C(a,function(a){var b=new FileReader;b.onload=function(a){c(a.target.result)};
b.readAsArrayBuffer(a)},b)};g.prototype.DN=function(a,c,b){var k="",d=a.toLowerCase(),e=d.substr(d.length-4),d=d.substr(d.length-5);".mp4"===e?k="video/mp4":".webm"===d?k="video/webm":".m4a"===e?k="audio/mp4":".mp3"===e&&(k="audio/mpeg");this.aD(a,function(a){a=URL.createObjectURL(new Blob([a],{type:k}));c(a)},b)};g.prototype.UD=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};g.prototype.IF=function(a,c){this.Yo&&!this.UD(c)?this.DN(c,function(c){a.src=
c},function(a){alert("Failed to load image: "+a)}):a.src=c};g.prototype.fu=function(a,c){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=c:(a.webkitImageSmoothingEnabled=c,a.mozImageSmoothingEnabled=c,a.msImageSmoothingEnabled=c)};Xb=function(a){return new g(document.getElementById(a))};Yb=function(a,c){return new g({dc:!0,width:a,height:c})};window.cr_createRuntime=Xb;window.cr_createDCRuntime=Yb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||
document.createElement("canvas");a.Va=!0;document.body.appendChild(a);a=new g(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new g(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(g,m){var l=window.cr_getC2Runtime();l&&l.sM(g,m)};window.cr_sizeCanvas=function(g,m){if(0!==g&&0!==m){var l=window.cr_getC2Runtime();l&&l.setSize(g,m)}};window.cr_setSuspended=function(g){var m=window.cr_getC2Runtime();m&&m.setSuspended(g)};
(function(){function g(a,c){this.b=a;this.yk=null;this.scrollX=this.b.Qc/2;this.scrollY=this.b.Pc/2;this.scale=1;this.C=0;this.$l=!0;this.name=c[0];this.KP=c[1];this.JP=c[2];this.width=c[1];this.height=c[2];this.nG=c[3];this.TF=c[4];this.eb=c[5];var b=c[6],d,e;this.Pa=[];this.nd=[];d=0;for(e=b.length;d<e;d++){var h=new Zb(this,b[d]);h.QE=d;this.Pa.push(h)}b=c[7];this.Ej=[];d=0;for(e=b.length;d<e;d++){var h=b[d],f=this.b.da[h[1]];f.If||(f.If=h);this.Ej.push(h);-1===this.nd.indexOf(f)&&this.nd.push(f)}this.Ma=
[];this.rb=[];this.Mi=!0;this.qc=[];d=0;for(e=c[8].length;d<e;d++)this.Ma.push({id:c[8][d][0],name:c[8][d][1],Wc:-1,We:!1,W:!0,index:d}),this.qc.push(c[8][d][2].slice(0));this.Kg();this.Ce=new wa(0,0,1,1);this.qz=new wa(0,0,1,1);this.Qj={}}function m(a,c){return a.Mg-c.Mg}function l(a,c){this.zc=a;this.b=a.b;this.A=[];this.scale=1;this.C=0;this.bi=!1;this.Qi=new wa(0,0,0,0);this.fG=new xa;this.fb=this.Ua=this.bb=this.Ra=0;this.xl=!1;this.Xi=-1;this.Kw=0;this.name=c[0];this.index=c[1];this.eb=c[2];
this.visible=c[3];this.gg=c[4];this.wf=c[5];this.pb=c[6];this.Qb=c[7];this.opacity=c[8];this.us=c[9];this.zf=c[10];this.ib=c[11];this.nc=c[12];this.VM=c[13];this.Ff="source-over";this.Rd=this.$d=0;this.Id=null;this.vi=f();this.Eg=!0;this.ym=new wa(0,0,-1,-1);this.Ad=new wa(0,0,-1,-1);this.zf&&(this.Id=new ib(this.b.Qc,this.b.Pc));this.yh=!1;var b=c[14],d,e;this.ZF=[];this.hf=[];this.oo=[];d=0;for(e=b.length;d<e;d++){var h=b[d],g=this.b.da[h[1]];g.If||(g.If=h,g.mM=this.index);this.hf.push(h);-1===
this.zc.nd.indexOf(g)&&this.zc.nd.push(g)}Ga(this.ZF,this.hf);this.Ma=[];this.rb=[];this.Mi=!0;this.qc=[];d=0;for(e=c[15].length;d<e;d++)this.Ma.push({id:c[15][d][0],name:c[15][d][1],Wc:-1,We:!1,W:!0,index:d}),this.qc.push(c[15][d][2].slice(0));this.Kg();this.Ce=new wa(0,0,1,1);this.qz=new wa(0,0,1,1)}function f(){return e.length?e.pop():[]}function b(a){H(a);e.push(a)}g.prototype.uQ=function(a){var c=a.type.eb.toString();this.Qj.hasOwnProperty(c)||(this.Qj[c]=[]);this.Qj[c].push(this.b.Cz(a))};g.prototype.ID=
function(){var a=this.Pa[0];return!a.wf&&1===a.opacity&&!a.us&&a.visible};g.prototype.Kg=function(){H(this.rb);this.Mi=!0;var a,c,b;a=0;for(c=this.Ma.length;a<c;a++)b=this.Ma[a],b.W&&(this.rb.push(b),b.We||(this.Mi=!1))};g.prototype.xx=function(a){var c,b,d;c=0;for(b=this.Ma.length;c<b;c++)if(d=this.Ma[c],d.name===a)return d;return null};var a=[],d=!0;g.prototype.Oz=function(){this.TF&&(this.yk=this.b.ax[this.TF],this.yk.aA());this.b.qb=this;this.width=this.KP;this.height=this.JP;this.scrollX=this.b.Qc/
2;this.scrollY=this.b.Pc/2;var c,b,e,h,f,g,l;c=0;for(e=this.b.da.length;c<e;c++)if(b=this.b.da[c],!b.ea)for(f=b.A,b=0,h=f.length;b<h;b++)if(g=f[b],g.F){var u=g.F.QE;u>=this.Pa.length&&(u=this.Pa.length-1);g.F=this.Pa[u];-1===g.F.A.indexOf(g)&&g.F.A.push(g);g.F.xl=!0}if(!d)for(c=0,e=this.Pa.length;c<e;++c)this.Pa[c].A.sort(m);H(a);this.VL();c=0;for(e=this.Pa.length;c<e;c++)g=this.Pa[c],g.gM(),g.Ku();f=!1;if(!this.$l){for(l in this.Qj)if(this.Qj.hasOwnProperty(l)&&(b=this.b.Co(parseInt(l,10)))&&!b.ea&&
this.b.Zz(b)){h=this.Qj[l];c=0;for(e=h.length;c<e;c++){g=null;if(b.G.Hj&&(g=this.Cs(h[c].w.l),!g))continue;g=this.b.uj(b.If,g,!1,0,0,!0);this.b.ht(g,h[c]);f=!0;a.push(g)}H(h)}c=0;for(e=this.Pa.length;c<e;c++)this.Pa[c].A.sort(m),this.Pa[c].xl=!0}f&&(this.b.Ld(),this.b.sF());for(c=0;c<a.length;c++)if(g=a[c],g.type.qd)for(e=g.Eo(),b=0,h=g.type.Le.length;b<h;b++)l=g.type.Le[b],g.type!==l&&(l.A.length>e?g.siblings.push(l.A[e]):l.If&&(f=this.b.uj(l.If,g.F,!0,g.x,g.y,!0),this.b.Ld(),l.Iu(),g.siblings.push(f),
a.push(f)));c=0;for(e=this.Ej.length;c<e;c++)g=this.Ej[c],b=this.b.da[g[1]],b.qd||this.b.uj(this.Ej[c],null,!0);this.b.qk=null;this.b.Ld();if(this.b.Nb&&!this.b.Ca)for(c=0,e=this.b.da.length;c<e;c++)l=this.b.da[c],!l.ea&&l.A.length&&l.dq&&l.dq(this.b.Nb);if(this.b.Uo)Ga(this.b.qs,a);else for(c=0,e=a.length;c<e;c++)g=a[c],this.b.trigger(Object.getPrototypeOf(g.type.G).n.gk,g);H(a);this.b.Uo||this.b.trigger(U.prototype.n.kB,null);this.$l=!1};g.prototype.fM=function(){var a,c,b,d,e;c=a=0;for(b=this.Ej.length;a<
b;a++)d=this.Ej[a],e=this.b.da[d[1]],e.global?e.qd||this.b.uj(d,null,!0):(this.Ej[c]=d,c++);Fa(this.Ej,c)};g.prototype.JQ=function(){this.b.Uo||this.b.trigger(U.prototype.n.ZI,null);this.b.fy=!0;H(this.b.Ch.He);var a,c,b,e,h,f;if(!this.$l)for(a=0,c=this.Pa.length;a<c;a++)for(this.Pa[a].cA(),h=this.Pa[a].A,b=0,e=h.length;b<e;b++)f=h[b],f.type.global||this.b.Zz(f.type)&&this.uQ(f);a=0;for(c=this.Pa.length;a<c;a++){h=this.Pa[a].A;b=0;for(e=h.length;b<e;b++)f=h[b],f.type.global||this.b.ne(f);this.b.Ld();
H(h);this.Pa[a].xl=!0}a=0;for(c=this.b.da.length;a<c;a++)if(h=this.b.da[a],!(h.global||h.G.Hj||h.G.ou||h.ea)){b=0;for(e=h.A.length;b<e;b++)this.b.ne(h.A[b]);this.b.Ld()}d=!1;this.b.fy=!1};new wa(0,0,0,0);g.prototype.gc=function(a){var c,b=a,d=!1,e=!this.b.ff;e&&(this.b.et||(this.b.et=document.createElement("canvas"),c=this.b.et,c.width=this.b.Ba,c.height=this.b.Aa,this.b.mE=c.getContext("2d"),d=!0),c=this.b.et,b=this.b.mE,c.width!==this.b.Ba&&(c.width=this.b.Ba,d=!0),c.height!==this.b.Aa&&(c.height=
this.b.Aa,d=!0),d&&this.b.fu(b,this.b.sb));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.GC&&!this.ID()&&b.clearRect(0,0,this.b.Ba,this.b.Aa);var h,f,d=0;for(h=this.Pa.length;d<h;d++)f=this.Pa[d],f.visible&&0<f.opacity&&11!==f.nc&&(f.A.length||!f.wf)?f.gc(b):f.Ku();e&&a.drawImage(c,0,0,this.b.width,this.b.height)};g.prototype.xj=function(a){a.HF(!0);this.b.Mc||(this.b.Mc=a.Me(this.b.Ba,this.b.Aa,this.b.sb));if(this.b.Mc.jg!==this.b.Ba||this.b.Mc.ig!==this.b.Aa)a.deleteTexture(this.b.Mc),
this.b.Mc=a.Me(this.b.Ba,this.b.Aa,this.b.sb);a.Qf(this.b.Mc);this.b.ff||a.Li(this.b.Ba,this.b.Aa);var c,b;for(c=this.Pa.length-1;0<=c;--c)b=this.Pa[c],b.visible&&1===b.opacity&&b.Mi&&0===b.nc&&(b.A.length||!b.wf)?b.xj(a):b.Ku();a.HF(!1)};g.prototype.Tb=function(a){var c=0<this.rb.length||this.b.qn||!this.b.ff||this.b.Ub;if(c){this.b.Mc||(this.b.Mc=a.Me(this.b.Ba,this.b.Aa,this.b.sb));if(this.b.Mc.jg!==this.b.Ba||this.b.Mc.ig!==this.b.Aa)a.deleteTexture(this.b.Mc),this.b.Mc=a.Me(this.b.Ba,this.b.Aa,
this.b.sb);a.Qf(this.b.Mc);this.b.ff||a.Li(this.b.Ba,this.b.Aa)}else this.b.Mc&&(a.Qf(null),a.deleteTexture(this.b.Mc),this.b.Mc=null);this.b.GC&&!this.ID()&&a.clear(0,0,0,0);var b,d,e;b=0;for(d=this.Pa.length;b<d;b++)e=this.Pa[b],e.visible&&0<e.opacity&&(e.A.length||!e.wf)?e.Tb(a):e.Ku();c&&(0===this.rb.length||1===this.rb.length&&this.b.ff?(1===this.rb.length?(c=this.rb[0].index,a.Fe(this.rb[0].Wc),a.Ym(null,1/this.b.Ba,1/this.b.Aa,0,0,1,1,this.scale,this.C,0,0,this.b.Ba/2,this.b.Aa/2,this.b.td.wa,
this.qc[c]),a.Rt(this.rb[0].Wc)&&(this.b.la=!0)):a.Fe(0),this.b.ff||a.Li(this.b.width,this.b.height),a.Qf(null),a.FF(!1),a.Gg(1),a.zd(this.b.Mc),a.DF(),a.Ye(),a.Ge(),c=this.b.width/2,b=this.b.height/2,a.Tm(-c,b,c,b,c,-b,-c,-b),a.zd(null),a.FF(!0)):this.uz(a,null,null,null))};g.prototype.Do=function(){return 0<this.rb.length||this.b.qn||!this.b.ff||this.b.Ub?this.b.Mc:null};g.prototype.xD=function(){var a=this.Pa[0].Jc(),c,b,d;c=1;for(b=this.Pa.length;c<b;c++)d=this.Pa[c],(0!==d.pb||0!==d.Qb)&&d.Jc()<
a&&(a=d.Jc());return a};g.prototype.AF=function(a){if(!this.nG){var c=1/this.xD()*this.b.Ba/2;a>this.width-c&&(a=this.width-c);a<c&&(a=c)}this.scrollX!==a&&(this.scrollX=a,this.b.la=!0)};g.prototype.BF=function(a){if(!this.nG){var c=1/this.xD()*this.b.Aa/2;a>this.height-c&&(a=this.height-c);a<c&&(a=c)}this.scrollY!==a&&(this.scrollY=a,this.b.la=!0)};g.prototype.VL=function(){this.AF(this.scrollX);this.BF(this.scrollY)};g.prototype.uz=function(a,c,b,d){var e=b?b.rb:c?c.rb:this.rb,h=1,f=0,g=0,r=0,l=
this.b.Ba,m=this.b.Aa;b?(h=b.F.Jc(),f=b.F.hc(),g=b.F.Ra,r=b.F.Ua,l=b.F.bb,m=b.F.fb):c&&(h=c.Jc(),f=c.hc(),g=c.Ra,r=c.Ua,l=c.bb,m=c.fb);var w=this.b.rx,C,G,A,v,S=0,W=1,V,X,N=this.b.Ba,T=this.b.Aa,ea=N/2,O=T/2,J=c?c.Ce:this.Ce,L=c?c.qz:this.qz,P=0,Q=0,F=0,M=0,I=N,Y=N,R=T,ha=T,ia=A=0;v=b?b.F.hc():0;if(b){C=0;for(G=e.length;C<G;C++)A+=a.hO(e[C].Wc),ia+=a.iO(e[C].Wc);M=b.za;P=c.Oa(M.left,M.top,!0,!0);F=c.Oa(M.left,M.top,!1,!0);I=c.Oa(M.right,M.bottom,!0,!0);R=c.Oa(M.right,M.bottom,!1,!0);0!==v&&(C=c.Oa(M.right,
M.top,!0,!0),G=c.Oa(M.right,M.top,!1,!0),Q=c.Oa(M.left,M.bottom,!0,!0),M=c.Oa(M.left,M.bottom,!1,!0),v=Math.min(P,I,C,Q),I=Math.max(P,I,C,Q),P=v,v=Math.min(F,R,G,M),R=Math.max(F,R,G,M),F=v);P-=A;F-=ia;I+=A;R+=ia;L.left=P/N;L.top=1-F/T;L.right=I/N;L.bottom=1-R/T;Q=P=sa(P);M=F=sa(F);Y=I=ua(I);ha=R=ua(R);Q-=A;M-=ia;Y+=A;ha+=ia;0>P&&(P=0);0>F&&(F=0);I>N&&(I=N);R>T&&(R=T);0>Q&&(Q=0);0>M&&(M=0);Y>N&&(Y=N);ha>T&&(ha=T);J.left=P/N;J.top=1-F/T;J.right=I/N;J.bottom=1-R/T}else J.left=L.left=0,J.top=L.top=0,
J.right=L.right=1,J.bottom=L.bottom=1;ia=b&&(a.gq(e[0].Wc)||0!==A||0!==ia||1!==b.opacity||b.type.G.NE)||c&&!b&&1!==c.opacity;a.DF();if(ia){w[S]||(w[S]=a.Me(N,T,this.b.sb));if(w[S].jg!==N||w[S].ig!==T)a.deleteTexture(w[S]),w[S]=a.Me(N,T,this.b.sb);a.Fe(0);a.Qf(w[S]);X=ha-M;a.clearRect(Q,T-M-X,Y-Q,X);b?b.Tb(a):(a.zd(this.b.fd),a.Gg(c.opacity),a.Ye(),a.translate(-ea,-O),a.Ge(),a.Xe(P,R,I,R,I,F,P,F,J));L.left=L.top=0;L.right=L.bottom=1;b&&(v=J.top,J.top=J.bottom,J.bottom=v);S=1;W=0}a.Gg(1);A=e.length-
1;var ja=a.nz(e[A].Wc)||!c&&!b&&!this.b.ff;C=v=0;for(G=e.length;C<G;C++){w[S]||(w[S]=a.Me(N,T,this.b.sb));if(w[S].jg!==N||w[S].ig!==T)a.deleteTexture(w[S]),w[S]=a.Me(N,T,this.b.sb);a.Fe(e[C].Wc);v=e[C].index;a.Rt(e[C].Wc)&&(this.b.la=!0);0!=C||ia?(a.Ym(d,1/N,1/T,L.left,L.top,L.right,L.bottom,h,f,g,r,(g+l)/2,(r+m)/2,this.b.td.wa,b?b.qc[v]:c?c.qc[v]:this.qc[v]),a.zd(null),C!==A||ja?(a.Qf(w[S]),X=ha-M,V=T-M-X,a.clearRect(Q,V,Y-Q,X)):(b?a.Vj(b.$d,b.Rd):c&&a.Vj(c.$d,c.Rd),a.Qf(d)),a.zd(w[W]),a.Ye(),a.translate(-ea,
-O),a.Ge(),a.Xe(P,R,I,R,I,F,P,F,J),C!==A||ja||a.zd(null)):(a.Qf(w[S]),X=ha-M,V=T-M-X,a.clearRect(Q,V,Y-Q,X),b?(b.oc&&b.oc.X?(V=b.oc.X,W=1/V.width,V=1/V.height):(W=1/b.width,V=1/b.height),a.Ym(d,W,V,L.left,L.top,L.right,L.bottom,h,f,g,r,(g+l)/2,(r+m)/2,this.b.td.wa,b.qc[v]),b.Tb(a)):(a.Ym(d,1/N,1/T,0,0,1,1,h,f,g,r,(g+l)/2,(r+m)/2,this.b.td.wa,c?c.qc[v]:this.qc[v]),a.zd(c?this.b.fd:this.b.Mc),a.Ye(),a.translate(-ea,-O),a.Ge(),a.Xe(P,R,I,R,I,F,P,F,J)),L.left=L.top=0,L.right=L.bottom=1,b&&!ja&&(v=R,R=
F,F=v));S=0===S?1:0;W=0===S?1:0}ja&&(a.Fe(0),b?a.Vj(b.$d,b.Rd):c?a.Vj(c.$d,c.Rd):this.b.ff||(a.Li(this.b.width,this.b.height),ea=this.b.width/2,O=this.b.height/2,F=P=0,I=this.b.width,R=this.b.height),a.Qf(d),a.zd(w[W]),a.Ye(),a.translate(-ea,-O),a.Ge(),b&&1===e.length&&!ia?a.Xe(P,F,I,F,I,R,P,R,J):a.Xe(P,R,I,R,I,F,P,F,J),a.zd(null))};g.prototype.Cs=function(a){var c,b;c=0;for(b=this.Pa.length;c<b;c++)if(this.Pa[c].eb===a)return this.Pa[c];return null};g.prototype.P=function(){var a,c,b,d={sx:this.scrollX,
sy:this.scrollY,s:this.scale,a:this.C,w:this.width,h:this.height,fv:this.$l,persist:this.Qj,fx:[],layers:{}};a=0;for(c=this.Ma.length;a<c;a++)b=this.Ma[a],d.fx.push({name:b.name,active:b.W,params:this.qc[b.index]});a=0;for(c=this.Pa.length;a<c;a++)b=this.Pa[a],d.layers[b.eb.toString()]=b.P();return d};g.prototype.ca=function(a){var c,b,d,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.C=a.a;this.width=a.w;this.height=a.h;this.Qj=a.persist;"undefined"!==typeof a.fv&&(this.$l=a.fv);var h=
a.fx;c=0;for(b=h.length;c<b;c++)if(d=this.xx(h[c].name))d.W=h[c].active,this.qc[d.index]=h[c].params;this.Kg();c=a.layers;for(e in c)c.hasOwnProperty(e)&&(a=this.Cs(parseInt(e,10)))&&a.ca(c[e])};Hb=g;l.prototype.Kg=function(){H(this.rb);this.Mi=!0;var a,c,b;a=0;for(c=this.Ma.length;a<c;a++)b=this.Ma[a],b.W&&(this.rb.push(b),b.We||(this.Mi=!1))};l.prototype.xx=function(a){var c,b,d;c=0;for(b=this.Ma.length;c<b;c++)if(d=this.Ma[c],d.name===a)return d;return null};l.prototype.gM=function(){var c,b,d,
e,h,f;b=c=0;for(d=this.hf.length;c<d;c++){e=this.hf[c];h=this.b.da[e[1]];f=this.b.Zz(h);h=!0;if(!f||this.zc.$l){e=this.b.uj(e,this,!0);if(!e)continue;a.push(e);e.type.global&&(h=!1,this.oo.push(e.uid))}h&&(this.hf[b]=this.hf[c],b++)}this.hf.length=b;this.b.Ld();!this.b.M&&this.Ma.length&&(this.nc=this.VM);this.Ff=jb(this.nc);this.b.ba&&kb(this,this.nc,this.b.ba);this.Eg=!0};l.prototype.Vm=function(a,c){var b=Ia(this.A,a);0>b||(c&&this.zf&&a.De&&a.De.right>=a.De.left&&(a.ja(),this.Id.update(a,a.De,
null),a.De.set(0,0,-1,-1)),b===this.A.length-1?this.A.pop():(Ea(this.A,b),this.oq(b)),this.Eg=!0)};l.prototype.eo=function(a,c){a.Mg=this.A.length;this.A.push(a);c&&this.zf&&a.De&&a.S();this.Eg=!0};l.prototype.ZP=function(a){this.A.unshift(a);this.oq(0)};l.prototype.tP=function(a,c,b){var d=a.Qe();c=c.Qe();Ea(this.A,d);d<c&&c--;b&&c++;c===this.A.length?this.A.push(a):this.A.splice(c,0,a);this.oq(d<c?d:c)};l.prototype.oq=function(a){-1===this.Xi?this.Xi=a:a<this.Xi&&(this.Xi=a);this.Eg=this.xl=!0};
l.prototype.cA=function(){if(this.xl){-1===this.Xi&&(this.Xi=0);var a,c,b;if(this.zf)for(a=this.Xi,c=this.A.length;a<c;++a)b=this.A[a],b.Mg=a,this.Id.oP(b.De);else for(a=this.Xi,c=this.A.length;a<c;++a)this.A[a].Mg=a;this.xl=!1;this.Xi=-1}};l.prototype.Jc=function(a){return this.eO()*(this.b.ff||a?this.b.fo:1)};l.prototype.eO=function(){return(this.scale*this.zc.scale-1)*this.ib+1};l.prototype.hc=function(){return this.bi?0:Na(this.zc.C+this.C)};var e=[],h=[],c=[];l.prototype.Dx=function(){this.cA();
this.Id.Ut(this.Ra,this.Ua,this.bb,this.fb,c);if(!c.length)return f();if(1===c.length){var a=f();Ga(a,c[0]);H(c);return a}for(var d=!0;1<c.length;){for(var a=c,e=void 0,q=void 0,g=void 0,l=void 0,m=void 0,e=0,q=a.length;e<q-1;e+=2){var g=a[e],l=a[e+1],m=f(),u=g,r=l,y=m,D=0,w=0,C=0,G=u.length,A=r.length,v=void 0,S=void 0;for(y.length=G+A;D<G&&w<A;++C)v=u[D],S=r[w],v.Mg<S.Mg?(y[C]=v,++D):(y[C]=S,++w);for(;D<G;++D,++C)y[C]=u[D];for(;w<A;++w,++C)y[C]=r[w];d||(b(g),b(l));h.push(m)}1===q%2&&(d?(g=f(),Ga(g,
a[q-1]),h.push(g)):h.push(a[q-1]));Ga(a,h);H(h);d=!1}a=c[0];H(c);return a};l.prototype.gc=function(a){this.yh=this.us||1!==this.opacity||0!==this.nc;var c=this.b.canvas,d=a,e=!1;this.yh&&(this.b.ct||(this.b.ct=document.createElement("canvas"),c=this.b.ct,c.width=this.b.Ba,c.height=this.b.Aa,this.b.lE=c.getContext("2d"),e=!0),c=this.b.ct,d=this.b.lE,c.width!==this.b.Ba&&(c.width=this.b.Ba,e=!0),c.height!==this.b.Aa&&(c.height=this.b.Aa,e=!0),e&&this.b.fu(d,this.b.sb),this.wf&&d.clearRect(0,0,this.b.Ba,
this.b.Aa));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.wf||(d.fillStyle="rgb("+this.gg[0]+","+this.gg[1]+","+this.gg[2]+")",d.fillRect(0,0,this.b.Ba,this.b.Aa));d.save();this.bi=!0;var e=this.Ga(0,0,!0,!0),h=this.Ga(0,0,!1,!0);this.bi=!1;this.b.xd&&(e=Math.round(e),h=Math.round(h));this.au(e,h,d);var f=this.Jc();d.scale(f,f);d.translate(-e,-h);this.zf?(this.Ad.left=this.Id.re(this.Ra),this.Ad.top=this.Id.se(this.Ua),this.Ad.right=this.Id.re(this.bb),this.Ad.bottom=this.Id.se(this.fb),
this.Eg||!this.Ad.vo(this.ym)?(b(this.vi),e=this.Dx(),this.Eg=!1,this.ym.tj(this.Ad)):e=this.vi):e=this.A;for(var g,l=null,h=0,f=e.length;h<f;++h)g=e[h],g!==l&&(this.MM(g,d),l=g);this.zf&&(this.vi=e);d.restore();this.yh&&(a.globalCompositeOperation=this.Ff,a.globalAlpha=this.opacity,a.drawImage(c,0,0))};l.prototype.MM=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.ja();var b=a.za;b.right<this.Ra||b.bottom<this.Ua||b.left>this.bb||b.top>this.fb||(c.globalCompositeOperation=a.Ff,a.gc(c))}};
l.prototype.Ku=function(){this.bi=!0;var a=this.Ga(0,0,!0,!0),c=this.Ga(0,0,!1,!0);this.bi=!1;this.b.xd&&(a=Math.round(a),c=Math.round(c));this.au(a,c,null)};l.prototype.au=function(a,c,b){var d=this.Jc();this.Ra=a;this.Ua=c;this.bb=a+1/d*this.b.Ba;this.fb=c+1/d*this.b.Aa;this.Ra>this.bb&&(a=this.Ra,this.Ra=this.bb,this.bb=a);this.Ua>this.fb&&(a=this.Ua,this.Ua=this.fb,this.fb=a);a=this.hc();0!==a&&(b&&(b.translate(this.b.Ba/2,this.b.Aa/2),b.rotate(-a),b.translate(this.b.Ba/-2,this.b.Aa/-2)),this.Qi.set(this.Ra,
this.Ua,this.bb,this.fb),this.Qi.offset((this.Ra+this.bb)/-2,(this.Ua+this.fb)/-2),this.fG.OF(this.Qi,a),this.fG.xC(this.Qi),this.Qi.offset((this.Ra+this.bb)/2,(this.Ua+this.fb)/2),this.Ra=this.Qi.left,this.Ua=this.Qi.top,this.bb=this.Qi.right,this.fb=this.Qi.bottom)};l.prototype.xj=function(a){if(this.yh=this.us){this.b.fd||(this.b.fd=a.Me(this.b.Ba,this.b.Aa,this.b.sb));if(this.b.fd.jg!==this.b.Ba||this.b.fd.ig!==this.b.Aa)a.deleteTexture(this.b.fd),this.b.fd=a.Me(this.b.Ba,this.b.Aa,this.b.sb);
a.Qf(this.b.fd)}this.bi=!0;var c=this.Ga(0,0,!0,!0),d=this.Ga(0,0,!1,!0);this.bi=!1;this.b.xd&&(c=Math.round(c),d=Math.round(d));this.au(c,d,null);c=this.Jc();a.Ye();a.scale(c,c);a.mq(-this.hc());a.translate((this.Ra+this.bb)/-2,(this.Ua+this.fb)/-2);a.Ge();this.zf?(this.Ad.left=this.Id.re(this.Ra),this.Ad.top=this.Id.se(this.Ua),this.Ad.right=this.Id.re(this.bb),this.Ad.bottom=this.Id.se(this.fb),this.Eg||!this.Ad.vo(this.ym)?(b(this.vi),c=this.Dx(),this.Eg=!1,this.ym.tj(this.Ad)):c=this.vi):c=this.A;
for(var e,h=null,d=c.length-1;0<=d;--d)e=c[d],e!==h&&(this.OM(c[d],a),h=e);this.zf&&(this.vi=c);this.wf||(this.Kw=this.b.wk++,a.gu(this.Kw),a.EF(1,1,1),a.jD(),a.mQ())};l.prototype.Tb=function(a){var c=0,d=0;if(this.yh=this.us||1!==this.opacity||0<this.rb.length||0!==this.nc){this.b.fd||(this.b.fd=a.Me(this.b.Ba,this.b.Aa,this.b.sb));if(this.b.fd.jg!==this.b.Ba||this.b.fd.ig!==this.b.Aa)a.deleteTexture(this.b.fd),this.b.fd=a.Me(this.b.Ba,this.b.Aa,this.b.sb);a.Qf(this.b.fd);this.wf&&a.clear(0,0,0,
0)}this.wf||(this.b.Ub?(a.gu(this.Kw),a.EF(this.gg[0]/255,this.gg[1]/255,this.gg[2]/255),a.jD(),a.BQ()):a.clear(this.gg[0]/255,this.gg[1]/255,this.gg[2]/255,1));this.bi=!0;var e=this.Ga(0,0,!0,!0),c=this.Ga(0,0,!1,!0);this.bi=!1;this.b.xd&&(e=Math.round(e),c=Math.round(c));this.au(e,c,null);e=this.Jc();a.Ye();a.scale(e,e);a.mq(-this.hc());a.translate((this.Ra+this.bb)/-2,(this.Ua+this.fb)/-2);a.Ge();this.zf?(this.Ad.left=this.Id.re(this.Ra),this.Ad.top=this.Id.se(this.Ua),this.Ad.right=this.Id.re(this.bb),
this.Ad.bottom=this.Id.se(this.fb),this.Eg||!this.Ad.vo(this.ym)?(b(this.vi),c=this.Dx(),this.Eg=!1,this.ym.tj(this.Ad)):c=this.vi):c=this.A;var h,f,g=null,d=0;for(h=c.length;d<h;++d)f=c[d],f!==g&&(this.NM(c[d],a),g=f);this.zf&&(this.vi=c);this.yh&&(c=this.rb.length?this.rb[0].Wc:0,d=this.rb.length?this.rb[0].index:0,0===this.rb.length||1===this.rb.length&&!a.nz(c)&&1===this.opacity?(1===this.rb.length?(a.Fe(c),a.Ym(this.zc.Do(),1/this.b.Ba,1/this.b.Aa,0,0,1,1,e,this.hc(),this.Ra,this.Ua,(this.Ra+
this.bb)/2,(this.Ua+this.fb)/2,this.b.td.wa,this.qc[d]),a.Rt(c)&&(this.b.la=!0)):a.Fe(0),a.Qf(this.zc.Do()),a.Gg(this.opacity),a.zd(this.b.fd),a.Vj(this.$d,this.Rd),a.Ye(),a.Ge(),e=this.b.Ba/2,c=this.b.Aa/2,a.Tm(-e,c,e,c,e,-c,-e,-c),a.zd(null)):this.zc.uz(a,this,null,this.zc.Do()))};l.prototype.NM=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.ja();var b=a.za;b.right<this.Ra||b.bottom<this.Ua||b.left>this.bb||b.top>this.fb||(c.gu(a.wk),a.yG?this.PM(a,c):(c.Fe(0),c.Vj(a.$d,a.Rd),a.Tb(c)))}};
l.prototype.OM=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.ja();var b=a.za;b.right<this.Ra||b.bottom<this.Ua||b.left>this.bb||b.top>this.fb||(a.wk=this.b.wk++,0===a.nc&&1===a.opacity&&a.Mi&&a.xj&&(c.gu(a.wk),a.xj(c)))}};l.prototype.PM=function(a,c){var b=a.rb[0].Wc,d=a.rb[0].index,e=this.Jc();if(1!==a.rb.length||c.nz(b)||c.aQ(b)||(a.C||a.F.hc())&&c.gq(b)||1!==a.opacity||a.type.G.NE)this.zc.uz(c,this,a,this.yh?this.b.fd:this.zc.Do()),c.Ye(),c.scale(e,e),c.mq(-this.hc()),c.translate((this.Ra+
this.bb)/-2,(this.Ua+this.fb)/-2),c.Ge();else{c.Fe(b);c.Vj(a.$d,a.Rd);c.Rt(b)&&(this.b.la=!0);var h=0,f=0,g=0,r=0;c.gq(b)&&(r=a.za,h=this.Oa(r.left,r.top,!0,!0),f=this.Oa(r.left,r.top,!1,!0),g=this.Oa(r.right,r.bottom,!0,!0),r=this.Oa(r.right,r.bottom,!1,!0),h=h/windowWidth,f=1-f/windowHeight,g=g/windowWidth,r=1-r/windowHeight);var l;a.oc&&a.oc.X?(l=a.oc.X,b=1/l.width,l=1/l.height):(b=1/a.width,l=1/a.height);c.Ym(this.yh?this.b.fd:this.zc.Do(),b,l,h,f,g,r,e,this.hc(),this.Ra,this.Ua,(this.Ra+this.bb)/
2,(this.Ua+this.fb)/2,this.b.td.wa,a.qc[d]);a.Tb(c)}};l.prototype.Ga=function(a,c,b,d){var e=this.b.devicePixelRatio;this.b.Nk&&(a*=e,c*=e);var e=this.b.eF,h=this.b.fF,e=(this.zc.scrollX-e)*this.pb+e,h=(this.zc.scrollY-h)*this.Qb+h,f=e,g=h,r=1/this.Jc(!d);d?(f-=this.b.Ba*r/2,g-=this.b.Aa*r/2):(f-=this.b.width*r/2,g-=this.b.height*r/2);f+=a*r;g+=c*r;c=this.hc();0!==c&&(f-=e,g-=h,a=Math.cos(c),c=Math.sin(c),d=f*a-g*c,g=g*a+f*c,f=d+e,g+=h);return b?f:g};l.prototype.Oa=function(a,c,b,d){var e=this.b.eF,
h=this.b.fF,f=(this.zc.scrollX-e)*this.pb+e,g=(this.zc.scrollY-h)*this.Qb+h,h=f,e=g,r=this.hc();if(0!==r){a-=f;c-=g;var l=Math.cos(-r),r=Math.sin(-r),m=a*l-c*r;c=c*l+a*r;a=m+f;c+=g}f=1/this.Jc(!d);d?(h-=this.b.Ba*f/2,e-=this.b.Aa*f/2):(h-=this.b.width*f/2,e-=this.b.height*f/2);h=(a-h)/f;e=(c-e)/f;a=this.b.devicePixelRatio;this.b.Nk&&!d&&(h/=a,e/=a);return b?h:e};l.prototype.P=function(){var a,c,b,d={s:this.scale,a:this.C,vl:this.Ra,vt:this.Ua,vr:this.bb,vb:this.fb,v:this.visible,bc:this.gg,t:this.wf,
px:this.pb,py:this.Qb,o:this.opacity,zr:this.ib,fx:[],cg:this.oo,instances:[]};a=0;for(c=this.Ma.length;a<c;a++)b=this.Ma[a],d.fx.push({name:b.name,active:b.W,params:this.qc[b.index]});return d};l.prototype.ca=function(a){var c,b,d;this.scale=a.s;this.C=a.a;this.Ra=a.vl;this.Ua=a.vt;this.bb=a.vr;this.fb=a.vb;this.visible=a.v;this.gg=a.bc;this.wf=a.t;this.pb=a.px;this.Qb=a.py;this.opacity=a.o;this.ib=a.zr;this.oo=a.cg||[];Ga(this.hf,this.ZF);var e=new ca;c=0;for(d=this.oo.length;c<d;++c)e.add(this.oo[c]);
b=c=0;for(d=this.hf.length;c<d;++c)e.contains(this.hf[c][2])||(this.hf[b]=this.hf[c],++b);Fa(this.hf,b);b=a.fx;c=0;for(d=b.length;c<d;c++)if(a=this.xx(b[c].name))a.W=b[c].active,this.qc[a.index]=b[c].params;this.Kg();this.A.sort(m);this.xl=!0};Zb=l})();
(function(){function g(a,c){var b,d=a.length;switch(d){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<d;b++)if(a[b]!==c[b])return!1;return!0}}function m(a,c){return a.index-c.index}function l(a){var c,b,d,e;2===a.length?a[0].index>a[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2<a.length&&a.sort(m);a.length>=B.length&&(B.length=a.length+1);B[a.length]||(B[a.length]=[]);e=B[a.length];c=0;for(b=e.length;c<b;c++)if(d=e[c],g(a,d))return d;e.push(a);return a}
function f(a,c){this.b=a;this.jG={};this.ZC={};this.Px=!1;this.LD=new ca;this.Tw=[];this.xw=[];this.name=c[0];var b=c[1];this.yj=[];var d,e;d=0;for(e=b.length;d<e;d++)this.OD(b[d],null,this.yj)}function b(a){this.type=a;this.A=[];this.Ha=[];this.na=!0}function a(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.qa=[];this.Wj=[];this.JD=this.Bu=this.Uz=this.Xx=this.group=this.Lz=!1;this.ad=[];this.Df=[];this.Sf=[];this.Ho="";this.Fk=this.Xx=this.group=!1;this.Sr=null;b[1]&&(this.Ho=b[1][1].toLowerCase(),
this.group=!0,this.Xx=!!b[1][0],this.Sr=[],this.Fk=this.Xx,this.b.Kl.push(this),this.b.fm[this.Ho]=this);this.rf=b[2];this.eb=b[4];this.group||(this.b.vC[this.eb.toString()]=this);var d=b[5];a=0;for(c=d.length;a<c;a++){var e=new $b(this,d[a]);e.index=a;this.ad.push(e);this.pC(e.type)}d=b[6];a=0;for(c=d.length;a<c;a++)e=new ac(this,d[a]),e.index=a,this.Df.push(e);if(8===b.length)for(b=b[7],a=0,c=b.length;a<c;a++)this.sheet.OD(b[a],this,this.Sf);this.Vs=!1;this.ad.length&&(this.Vs=null==this.ad[0].type&&
this.ad[0].Cd==U.prototype.n.EA)}function d(a,c){var b,d,e;if(a&&(-1===c.indexOf(a)&&c.push(a),a.qd))for(b=0,d=a.Le.length;b<d;b++)e=a.Le[b],a!==e&&-1===c.indexOf(e)&&c.push(e)}function e(a,c){this.bf=a;this.sheet=a.sheet;this.b=a.b;this.Ea=[];this.wc=[];this.ka={};this.index=-1;this.bo=!1;this.Cd=this.b.aj(c[1]);this.trigger=0<c[3];this.YC=2===c[3];this.oh=c[4];this.Qo=c[5];this.fP=c[6];this.eb=c[7];this.b.sj[this.eb.toString()]=this;-1===c[0]?(this.type=null,this.Vc=this.Bz,this.ok=null,this.hg=
-1):(this.type=this.b.da[c[0]],this.Vc=this.fP?this.sQ:this.Az,c[2]?(this.ok=this.type.As(c[2]),this.hg=this.type.ux(c[2])):(this.ok=null,this.hg=-1),this.bf.parent&&this.bf.parent.ju());this.YC&&(this.Vc=this.tQ);if(10===c.length){var b,d,e=c[9];b=0;for(d=e.length;b<d;b++){var k=new bc(this,e[b]);this.Ea.push(k)}this.wc.length=e.length}}function h(a,c){this.bf=a;this.sheet=a.sheet;this.b=a.b;this.Ea=[];this.wc=[];this.ka={};this.index=-1;this.bo=!1;this.Cd=this.b.aj(c[1]);-1===c[0]?(this.type=null,
this.Vc=this.Bz,this.ok=null,this.hg=-1):(this.type=this.b.da[c[0]],this.Vc=this.Az,c[2]?(this.ok=this.type.As(c[2]),this.hg=this.type.ux(c[2])):(this.ok=null,this.hg=-1));this.eb=c[3];this.b.lj[this.eb.toString()]=this;if(6===c.length){var b,d,e=c[5];b=0;for(d=e.length;b<d;b++){var k=new bc(this,e[b]);this.Ea.push(k)}this.wc.length=e.length}}function c(){x++;z.length===x&&z.push(new cc);return z[x]}function k(a,c){this.Xb=a;this.bf=a.bf;this.sheet=a.sheet;this.b=a.b;this.type=c[0];this.ah=null;this.Ni=
0;this.get=null;this.JC=0;this.zc=null;this.key=0;this.object=null;this.index=0;this.Hq=this.ol=this.Hq=this.ol=this.cD=this.zk=this.Iq=null;this.Yf=!1;var b,d,e;switch(c[0]){case 0:case 7:this.ah=new dc(this,c[1]);this.Ni=0;this.get=this.nO;break;case 1:this.ah=new dc(this,c[1]);this.Ni=0;this.get=this.oO;break;case 5:this.ah=new dc(this,c[1]);this.Ni=0;this.get=this.sO;break;case 3:case 8:this.JC=c[1];this.get=this.lO;break;case 6:this.zc=this.b.wi[c[1]];this.get=this.tO;break;case 9:this.key=c[1];
this.get=this.rO;break;case 4:this.object=this.b.da[c[1]];this.get=this.uO;this.bf.pC(this.object);this.Xb instanceof ac?this.bf.ju():this.bf.parent&&this.bf.parent.ju();break;case 10:this.index=c[1];a.type&&a.type.ea?(this.get=this.pO,this.Yf=!0):this.get=this.qO;break;case 11:this.Iq=c[1];this.zk=null;this.get=this.mO;break;case 2:case 12:this.cD=c[1];this.get=this.kO;break;case 13:for(this.get=this.AO,this.ol=[],this.Hq=[],b=1,d=c.length;b<d;b++)e=new bc(this.Xb,c[b]),this.ol.push(e),this.Hq.push(0)}}
function p(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.qa=[];this.name=b[1];this.Lu=b[2];this.U=b[3];this.bp=!!b[4];this.Us=!!b[5];this.eb=b[6];this.b.sn[this.eb.toString()]=this;this.data=this.U;this.parent?(this.al=this.bp||this.Us?-1:this.b.FQ++,this.b.LL.push(this)):(this.al=-1,this.b.KL.push(this))}function t(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.qa=[];this.No=null;this.KO=b[1];this.W=!0}function q(){this.aG=[];this.reset(null)}var B=[];f.prototype.toString=function(){return this.name};
f.prototype.OD=function(a,c,b){switch(a[0]){case 0:a=new ec(this,c,a);if(a.rf)for(b.push(a),b=0,c=a.ad.length;b<c;b++)a.ad[b].trigger&&this.PD(a,b);else a.eE()?this.PD(a,0):b.push(a);break;case 1:a=new Ub(this,c,a);b.push(a);break;case 2:a=new fc(this,c,a),b.push(a)}};f.prototype.Ac=function(){var a,c;a=0;for(c=this.yj.length;a<c;a++)this.yj[a].Ac(a<c-1&&this.yj[a+1].Vs)};f.prototype.aA=function(){H(this.Tw);H(this.xw);this.oC(this);H(this.xw)};f.prototype.oC=function(a){var c,b,d,e,k=a.Tw,h=a.xw,
f=this.LD.$e();c=0;for(b=f.length;c<b;++c)d=f[c],e=d.No,!d.W||a===e||-1<h.indexOf(e)||(h.push(e),e.oC(a),k.push(e))};f.prototype.Vc=function(a){this.b.wS||(this.Px=!0,a||(this.b.ky=!0));var c,b;c=0;for(b=this.yj.length;c<b;c++){var d=this.yj[c];d.Vc();this.b.Jw(d.qa);this.b.Dj&&this.b.Ld()}a||(this.b.ky=!1)};f.prototype.PD=function(a,c){a.rf||this.b.Eu.push(a);var b,d,e=a.ad[c],k;e.type?k=e.type.name:k="system";var h=(b=e.YC)?this.ZC:this.jG;h[k]||(h[k]=[]);k=h[k];h=e.Cd;if(b){if(e.Ea.length&&(e=
e.Ea[0],1===e.type&&2===e.ah.type)){e=e.ah.value.toLowerCase();b=0;for(d=k.length;b<d;b++)if(k[b].method==h){b=k[b].wo;b[e]?b[e].push([a,c]):b[e]=[[a,c]];return}b={};b[e]=[[a,c]];k.push({method:h,wo:b})}}else{b=0;for(d=k.length;b<d;b++)if(k[b].method==h){k[b].wo.push([a,c]);return}Z&&h===Z.prototype.n.Bl?k.unshift({method:h,wo:[[a,c]]}):k.push({method:h,wo:[[a,c]]})}};Kb=f;b.prototype.Js=function(){return this.na?this.type.A.length:this.A.length};b.prototype.vc=function(){return this.na?this.type.A:
this.A};b.prototype.Rm=function(a){a&&(a.b.wb().Cb.rf?(this.na&&(H(this.A),Ga(this.Ha,a.type.A),this.na=!1),a=this.Ha.indexOf(a),-1!==a&&(this.A.push(this.Ha[a]),this.Ha.splice(a,1))):(this.na=!1,H(this.A),this.A[0]=a))};qb=b;window._c2hh_="CE5CA0C2527E858876FEA006F4537019F26B80C4";a.prototype.Ac=function(a){var c,b=this.parent;if(this.group)for(this.Bu=!0;b;){if(!b.group){this.Bu=!1;break}b=b.parent}this.Uz=!this.eE()&&(!this.parent||this.parent.group&&this.parent.Bu);this.JD=!!a;this.Wj=this.qa.slice(0);
for(b=this.parent;b;){a=0;for(c=b.qa.length;a<c;a++)this.HL(b.qa[a]);b=b.parent}this.qa=l(this.qa);this.Wj=l(this.Wj);a=0;for(c=this.ad.length;a<c;a++)this.ad[a].Ac();a=0;for(c=this.Df.length;a<c;a++)this.Df[a].Ac();a=0;for(c=this.Sf.length;a<c;a++)this.Sf[a].Ac(a<c-1&&this.Sf[a+1].Vs)};a.prototype.hu=function(a){if(this.Fk!==!!a){this.Fk=!!a;var c;a=0;for(c=this.Sr.length;a<c;++a)this.Sr[a].pG();0<c&&this.b.qb.yk&&this.b.qb.yk.aA()}};a.prototype.pC=function(a){d(a,this.qa)};a.prototype.HL=function(a){d(a,
this.Wj)};a.prototype.ju=function(){this.Lz=!0;this.parent&&this.parent.ju()};a.prototype.eE=function(){return this.ad.length?this.ad[0].trigger:!1};a.prototype.Vc=function(){var a,c,b=!1,d=this.b,e=this.b.wb();e.Cb=this;var k=this.ad;this.Vs||(e.Yw=!1);if(this.rf){0===k.length&&(b=!0);e.Gc=0;for(a=k.length;e.Gc<a;e.Gc++)c=k[e.Gc],c.trigger||(c=c.Vc())&&(b=!0);(e.Tk=b)&&this.bu()}else{e.Gc=0;for(a=k.length;e.Gc<a;e.Gc++)if(c=k[e.Gc].Vc(),!c){e.Tk=!1;this.Uz&&d.Dj&&d.Ld();return}e.Tk=!0;this.bu()}this.WM(e)};
a.prototype.WM=function(a){a.Tk&&this.JD&&(a.Yw=!0);this.Uz&&this.b.Dj&&this.b.Ld()};a.prototype.qQ=function(a){this.b.wb().Cb=this;this.ad[a].Vc()&&(this.bu(),this.b.wb().Tk=!0)};a.prototype.bu=function(){var a=this.b.wb(),c;a.te=0;for(c=this.Df.length;a.te<c;a.te++)if(this.Df[a.te].Vc())return;this.zF()};a.prototype.nQ=function(){var a=this.b.wb(),c;for(c=this.Df.length;a.te<c;a.te++)if(this.Df[a.te].Vc())return;this.zF()};a.prototype.zF=function(){if(this.Sf.length){var a,c,b,d,e=this.Sf.length-
1;this.b.St(this);if(this.Lz)for(a=0,c=this.Sf.length;a<c;a++)b=this.Sf[a],(d=!this.Bu||!this.group&&a<e)&&this.b.ge(b.qa),b.Vc(),d?this.b.yd(b.qa):this.b.Jw(b.qa);else for(a=0,c=this.Sf.length;a<c;a++)this.Sf[a].Vc();this.b.Ot()}};a.prototype.rQ=function(){var a=this.b.wb();a.Cb=this;var c=!1,b;a.Gc=0;for(b=this.ad.length;a.Gc<b;a.Gc++)if(this.ad[a.Gc].Vc())c=!0;else if(!this.rf)return!1;return this.rf?c:!0};a.prototype.Yd=function(){this.b.Ak++;var a=this.b.wb().Gc,c=this.b.St(this);if(!this.rf)for(c.Gc=
a+1,a=this.ad.length;c.Gc<a;c.Gc++)if(!this.ad[c.Gc].Vc()){this.b.Ot();return}this.bu();this.b.Ot()};a.prototype.TO=function(a){var c=a.index;if(0===c)return!0;for(--c;0<=c;--c)if(this.ad[c].type===a.type)return!1;return!0};ec=a;e.prototype.Ac=function(){var a,c,b;a=0;for(c=this.Ea.length;a<c;a++)b=this.Ea[a],b.Ac(),b.Yf&&(this.bo=!0)};e.prototype.tQ=function(){return!0};e.prototype.Bz=function(){var a,c;a=0;for(c=this.Ea.length;a<c;a++)this.wc[a]=this.Ea[a].get();return Ya(this.Cd.apply(this.b.Ch,
this.wc),this.Qo)};e.prototype.sQ=function(){var a,c;a=0;for(c=this.Ea.length;a<c;a++)this.wc[a]=this.Ea[a].get();a=this.Cd.apply(this.ok?this.ok:this.type,this.wc);this.type.jd();return a};e.prototype.Az=function(){var a,c,b,d,e,k,h,f,p=this.type,g=p.ga(),q=this.bf.rf&&!this.trigger;c=0;var l=p.qd,m=p.ea,t=p.gi,B=this.hg,z=-1<B,x=this.bo,J=this.Ea,L=this.wc,P=this.Qo,Q=this.Cd,F;if(x)for(c=0,e=J.length;c<e;++c)k=J[c],k.Yf||(L[c]=k.get(0));else for(c=0,e=J.length;c<e;++c)L[c]=J[c].get(0);if(g.na){H(g.A);
H(g.Ha);F=p.A;a=0;for(d=F.length;a<d;++a){f=F[a];if(x)for(c=0,e=J.length;c<e;++c)k=J[c],k.Yf&&(L[c]=k.get(a));z?(c=0,m&&(c=f.type.Zl[t]),c=Q.apply(f.ua[B+c],L)):c=Q.apply(f,L);(h=Ya(c,P))?g.A.push(f):q&&g.Ha.push(f)}p.finish&&p.finish(!0);g.na=!1;p.jd();return g.Js()}b=0;F=(h=q&&!this.bf.TO(this))?g.Ha:g.A;var M=!1;a=0;for(d=F.length;a<d;++a){f=F[a];if(x)for(c=0,e=J.length;c<e;++c)k=J[c],k.Yf&&(L[c]=k.get(a));z?(c=0,m&&(c=f.type.Zl[t]),c=Q.apply(f.ua[B+c],L)):c=Q.apply(f,L);if(Ya(c,P))if(M=!0,h){if(g.A.push(f),
l)for(c=0,e=f.siblings.length;c<e;c++)k=f.siblings[c],k.type.ga().A.push(k)}else{F[b]=f;if(l)for(c=0,e=f.siblings.length;c<e;c++)k=f.siblings[c],k.type.ga().A[b]=k;b++}else if(h){F[b]=f;if(l)for(c=0,e=f.siblings.length;c<e;c++)k=f.siblings[c],k.type.ga().Ha[b]=k;b++}else if(q&&(g.Ha.push(f),l))for(c=0,e=f.siblings.length;c<e;c++)k=f.siblings[c],k.type.ga().Ha.push(k)}Fa(F,b);if(l)for(m=p.Le,a=0,d=m.length;a<d;a++)f=m[a].ga(),h?Fa(f.Ha,b):Fa(f.A,b);b=M;if(h&&!M)for(a=0,d=g.A.length;a<d;a++){f=g.A[a];
if(x)for(c=0,e=J.length;c<e;c++)k=J[c],k.Yf&&(L[c]=k.get(a));c=z?Q.apply(f.ua[B],L):Q.apply(f,L);if(Ya(c,P)){M=!0;break}}p.finish&&p.finish(b||q);return q?M:g.Js()};$b=e;h.prototype.Ac=function(){var a,c,b;a=0;for(c=this.Ea.length;a<c;a++)b=this.Ea[a],b.Ac(),b.Yf&&(this.bo=!0)};h.prototype.Bz=function(){var a=this.b,c,b,d=this.Ea,e=this.wc;c=0;for(b=d.length;c<b;++c)e[c]=d[c].get();return this.Cd.apply(a.Ch,e)};h.prototype.Az=function(){var a=this.type,c=this.hg,b=a.gi,d=this.bo,e=this.Ea,k=this.wc,
h=this.Cd,f=a.ga().vc(),a=a.ea,p=-1<c,g,q,l,m,t,B;if(d)for(q=0,m=e.length;q<m;++q)t=e[q],t.Yf||(k[q]=t.get(0));else for(q=0,m=e.length;q<m;++q)k[q]=e[q].get(0);g=0;for(l=f.length;g<l;++g){B=f[g];if(d)for(q=0,m=e.length;q<m;++q)t=e[q],t.Yf&&(k[q]=t.get(g));p?(q=0,a&&(q=B.type.Zl[b]),h.apply(B.ua[c+q],k)):h.apply(B,k)}return!1};ac=h;var z=[],x=-1;k.prototype.Ac=function(){var a,c;if(11===this.type)this.zk=this.b.tD(this.Iq,this.bf.parent);else if(13===this.type)for(a=0,c=this.ol.length;a<c;a++)this.ol[a].Ac();
this.ah&&this.ah.Ac()};k.prototype.qP=function(a){this.Yf||!a||a.G.ou||(this.Yf=!0)};k.prototype.LF=function(){this.Yf=!0};k.prototype.nO=function(a){this.Ni=a||0;a=c();this.ah.get(a);x--;return a.data};k.prototype.oO=function(a){this.Ni=a||0;a=c();this.ah.get(a);x--;return la(a.data)?a.data:""};k.prototype.uO=function(){return this.object};k.prototype.lO=function(){return this.JC};k.prototype.sO=function(a){this.Ni=a||0;a=c();this.ah.get(a);x--;return a.sd()?this.b.uc(a.data):this.b.Lf(a.data)};
k.prototype.tO=function(){return this.zc};k.prototype.rO=function(){return this.key};k.prototype.qO=function(){return this.index};k.prototype.pO=function(a){a=a||0;var c=this.Xb.type,b=null,b=c.ga(),d=b.vc();if(d.length)b=d[a%d.length].type;else if(b.Ha.length)b=b.Ha[a%b.Ha.length].type;else if(c.A.length)b=c.A[a%c.A.length].type;else return 0;return this.index+b.ls[c.gi]};k.prototype.mO=function(){return this.zk};k.prototype.kO=function(){return this.cD};k.prototype.AO=function(){var a,c;a=0;for(c=
this.ol.length;a<c;a++)this.Hq[a]=this.ol[a].get();return this.Hq};bc=k;p.prototype.Ac=function(){this.qa=l(this.qa)};p.prototype.ll=function(a){var c=this.b.pD();this.parent&&!this.bp&&c?(this.al>=c.length&&(c.length=this.al+1),c[this.al]=a):this.data=a};p.prototype.Ek=function(){var a=this.b.pD();return!this.parent||this.bp||!a||this.Us?this.data:this.al>=a.length||"undefined"===typeof a[this.al]?this.U:a[this.al]};p.prototype.Vc=function(){!this.parent||this.bp||this.Us||this.ll(this.U)};Ub=p;
t.prototype.toString=function(){return"include:"+this.No.toString()};t.prototype.Ac=function(){this.No=this.b.ax[this.KO];this.sheet.LD.add(this);this.qa=l(this.qa);for(var a=this.parent;a;)a.group&&a.Sr.push(this),a=a.parent;this.pG()};t.prototype.Vc=function(){this.parent&&this.b.hq(this.b.da);this.No.Px||this.No.Vc(!0);this.parent&&this.b.yd(this.b.da)};t.prototype.pG=function(){for(var a=this.parent;a;){if(a.group&&!a.Fk){this.W=!1;return}a=a.parent}this.W=!0};fc=t;q.prototype.reset=function(a){this.Cb=
a;this.te=this.Gc=0;H(this.aG);this.Yw=this.Tk=!1};q.prototype.qi=function(){return this.Cb.Lz?!0:this.Gc<this.Cb.ad.length-1?!!this.Cb.qa.length:!1};Tb=q})();
(function(){function g(a,b){this.Xb=a;this.b=a.b;this.type=b[0];this.get=[this.nN,this.jN,this.wN,this.zN,this.ZM,this.xN,this.rN,this.gN,this.qN,this.vN,this.$M,this.uN,this.hN,this.sN,this.oN,this.pN,this.kN,this.lN,this.fN,this.yN,this.tN,this.mN,this.eN,this.iN][this.type];var h=null;this.Di=this.Ea=this.wc=this.Cd=this.zu=this.second=this.first=this.value=null;this.hg=-1;this.vg=null;this.zG=-1;this.zk=this.Iq=null;this.Wm=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new dc(a,b[1]);break;case 18:this.first=new dc(a,b[1]);this.second=new dc(a,b[2]);this.zu=new dc(a,b[3]);break;case 19:this.Cd=this.b.aj(b[1]);this.Cd!==U.prototype.D.random&&this.Cd!==U.prototype.D.FC||this.Xb.LF();this.wc=[];this.Ea=[];3===b.length?(h=b[2],this.wc.length=h.length+1):this.wc.length=1;break;case 20:this.Di=this.b.da[b[1]];this.hg=-1;this.Cd=this.b.aj(b[2]);this.Wm=b[3];xc&&this.Cd===xc.prototype.D.Zu&&this.Xb.LF();b[4]?this.vg=new dc(a,b[4]):this.vg=null;this.wc=[];this.Ea=[];6===
b.length?(h=b[5],this.wc.length=h.length+1):this.wc.length=1;break;case 21:this.Di=this.b.da[b[1]];this.Wm=b[2];b[3]?this.vg=new dc(a,b[3]):this.vg=null;this.zG=b[4];break;case 22:this.Di=this.b.da[b[1]];this.Di.As(b[2]);this.hg=this.Di.ux(b[2]);this.Cd=this.b.aj(b[3]);this.Wm=b[4];b[5]?this.vg=new dc(a,b[5]):this.vg=null;this.wc=[];this.Ea=[];7===b.length?(h=b[6],this.wc.length=h.length+1):this.wc.length=1;break;case 23:this.Iq=b[1],this.zk=null}this.Xb.qP(this.Di);4<=this.type&&17>=this.type&&(this.first=
new dc(a,b[1]),this.second=new dc(a,b[2]));if(h){var c,k;c=0;for(k=h.length;c<k;c++)this.Ea.push(new dc(a,h[c]))}}function m(){++a;b.length===a&&b.push(new cc);return b[a]}function l(a,b,h){var c,k;c=0;for(k=a.length;c<k;++c)a[c].get(h),b[c+1]=h.data}function f(a,b){this.type=a||gc.Al;this.data=b||0;this.el=null;this.type==gc.Al&&(this.data=Math.floor(this.data))}g.prototype.Ac=function(){23===this.type&&(this.zk=this.Xb.b.tD(this.Iq,this.Xb.bf.parent));this.first&&this.first.Ac();this.second&&this.second.Ac();
this.zu&&this.zu.Ac();this.vg&&this.vg.Ac();if(this.Ea){var a,b;a=0;for(b=this.Ea.length;a<b;a++)this.Ea[a].Ac()}};var b=[],a=-1;g.prototype.yN=function(b){var e=this.Ea,h=this.wc;h[0]=b;b=m();l(e,h,b);--a;this.Cd.apply(this.b.Ch,h)};g.prototype.tN=function(b){var e=this.Di,h=this.wc,c=this.Ea,k=this.vg,f=this.Cd,g=this.Xb.Ni,q=e.ga(),B=q.vc();if(!B.length)if(q.Ha.length)B=q.Ha;else{this.Wm?b.Fa(""):b.R(0);return}h[0]=b;b.el=e;b=m();l(c,h,b);k&&(k.get(b),b.sd()&&(g=b.data,B=e.A));--a;e=B.length;if(g>=
e||g<=-e)g%=e;0>g&&(g+=e);f.apply(B[g],h)};g.prototype.eN=function(b){var e=this.Di,h=this.wc,c=this.Ea,k=this.vg,f=this.hg,g=this.Cd,q=this.Xb.Ni,B=e.ga(),z=B.vc();if(!z.length)if(B.Ha.length)z=B.Ha;else{this.Wm?b.Fa(""):b.R(0);return}h[0]=b;b.el=e;b=m();l(c,h,b);k&&(k.get(b),b.sd()&&(q=b.data,z=e.A));--a;c=z.length;if(q>=c||q<=-c)q%=c;0>q&&(q+=c);q=z[q];z=0;e.ea&&(z=q.type.Zl[e.gi]);g.apply(q.ua[f+z],h)};g.prototype.mN=function(b){var e=this.vg,h=this.Di,c=this.zG,k=this.Xb.Ni,f=h.ga(),g=f.vc();
if(!g.length)if(f.Ha.length)g=f.Ha;else{this.Wm?b.Fa(""):b.R(0);return}if(e){f=m();e.get(f);if(f.sd()){k=f.data;g=h.A;0!==g.length&&(k%=g.length,0>k&&(k+=g.length));k=h.zx(k);h=k.ic[c];la(h)?b.Fa(h):b.K(h);--a;return}--a}e=g.length;if(k>=e||k<=-e)k%=e;0>k&&(k+=e);k=g[k];g=0;h.ea&&(g=k.type.ls[h.gi]);h=k.ic[c+g];la(h)?b.Fa(h):b.K(h)};g.prototype.nN=function(a){a.type=gc.Al;a.data=this.value};g.prototype.jN=function(a){a.type=gc.zl;a.data=this.value};g.prototype.wN=function(a){a.type=gc.String;a.data=
this.value};g.prototype.zN=function(a){this.first.get(a);a.sd()&&(a.data=-a.data)};g.prototype.ZM=function(b){this.first.get(b);var e=m();this.second.get(e);b.sd()&&e.sd()&&(b.data+=e.data,e.om()&&b.Am());--a};g.prototype.xN=function(b){this.first.get(b);var e=m();this.second.get(e);b.sd()&&e.sd()&&(b.data-=e.data,e.om()&&b.Am());--a};g.prototype.rN=function(b){this.first.get(b);var e=m();this.second.get(e);b.sd()&&e.sd()&&(b.data*=e.data,e.om()&&b.Am());--a};g.prototype.gN=function(b){this.first.get(b);
var e=m();this.second.get(e);b.sd()&&e.sd()&&(b.data/=e.data,b.Am());--a};g.prototype.qN=function(b){this.first.get(b);var e=m();this.second.get(e);b.sd()&&e.sd()&&(b.data%=e.data,e.om()&&b.Am());--a};g.prototype.vN=function(b){this.first.get(b);var e=m();this.second.get(e);b.sd()&&e.sd()&&(b.data=Math.pow(b.data,e.data),e.om()&&b.Am());--a};g.prototype.$M=function(b){this.first.get(b);var e=m();this.second.get(e);e.tm()||b.tm()?this.bN(b,e):this.aN(b,e);--a};g.prototype.bN=function(a,b){a.tm()&&
b.tm()?this.dN(a,b):this.cN(a,b)};g.prototype.dN=function(a,b){a.data+=b.data};g.prototype.cN=function(a,b){a.tm()?a.data+=(Math.round(1E10*b.data)/1E10).toString():a.Fa(a.data.toString()+b.data)};g.prototype.aN=function(a,b){a.R(a.data&&b.data?1:0)};g.prototype.uN=function(b){this.first.get(b);var e=m();this.second.get(e);b.sd()&&e.sd()&&(b.data||e.data?b.R(1):b.R(0));--a};g.prototype.fN=function(a){this.first.get(a);a.data?this.second.get(a):this.zu.get(a)};g.prototype.hN=function(b){this.first.get(b);
var e=m();this.second.get(e);b.R(b.data===e.data?1:0);--a};g.prototype.sN=function(b){this.first.get(b);var e=m();this.second.get(e);b.R(b.data!==e.data?1:0);--a};g.prototype.oN=function(b){this.first.get(b);var e=m();this.second.get(e);b.R(b.data<e.data?1:0);--a};g.prototype.pN=function(b){this.first.get(b);var e=m();this.second.get(e);b.R(b.data<=e.data?1:0);--a};g.prototype.kN=function(b){this.first.get(b);var e=m();this.second.get(e);b.R(b.data>e.data?1:0);--a};g.prototype.lN=function(b){this.first.get(b);
var e=m();this.second.get(e);b.R(b.data>=e.data?1:0);--a};g.prototype.iN=function(a){var b=this.zk.Ek();E(b)?a.K(b):a.Fa(b)};dc=g;f.prototype.om=function(){return this.type===gc.zl};f.prototype.sd=function(){return this.type===gc.Al||this.type===gc.zl};f.prototype.tm=function(){return this.type===gc.String};f.prototype.Am=function(){this.om()||(this.tm()&&(this.data=parseFloat(this.data)),this.type=gc.zl)};f.prototype.R=function(a){this.type=gc.Al;this.data=Math.floor(a)};f.prototype.K=function(a){this.type=
gc.zl;this.data=a};f.prototype.Fa=function(a){this.type=gc.String;this.data=a};f.prototype.ie=function(a){E(a)?(this.type=gc.zl,this.data=a):la(a)?(this.type=gc.String,this.data=a.toString()):(this.type=gc.Al,this.data=0)};cc=f;gc={Al:0,zl:1,String:2}})();function U(g){this.b=g;this.He=[]}
U.prototype.P=function(){var g={},m,l,f,b,a,d,e,h;g.waits=[];var c=g.waits,k;m=0;for(l=this.He.length;m<l;m++){d=this.He[m];k={t:d.time,st:d.WF,s:d.Kz,ev:d.Wl.eb,sm:[],sols:{}};d.Wl.Df[d.te]&&(k.act=d.Wl.Df[d.te].eb);f=0;for(b=d.qa.length;f<b;f++)k.sm.push(d.qa[f].eb);for(a in d.je)if(d.je.hasOwnProperty(a)){e=this.b.da[parseInt(a,10)];h={sa:d.je[a].cu,insts:[]};f=0;for(b=d.je[a].ni.length;f<b;f++)h.insts.push(d.je[a].ni[f].uid);k.sols[e.eb.toString()]=h}c.push(k)}return g};
U.prototype.ca=function(g){g=g.waits;var m,l,f,b,a,d,e,h,c,k,p;H(this.He);m=0;for(l=g.length;m<l;m++)if(d=g[m],h=this.b.vC[d.ev.toString()]){c=-1;f=0;for(b=h.Df.length;f<b;f++)if(h.Df[f].eb===d.act){c=f;break}if(-1!==c){e={je:{},qa:[],Uw:!1};e.time=d.t;e.WF=d.st||"";e.Kz=!!d.s;e.Wl=h;e.te=c;f=0;for(b=d.sm.length;f<b;f++)(h=this.b.Co(d.sm[f]))&&e.qa.push(h);for(a in d.sols)if(d.sols.hasOwnProperty(a)&&(h=this.b.Co(parseInt(a,10)))){c=d.sols[a];k={cu:c.sa,ni:[]};f=0;for(b=c.insts.length;f<b;f++)(p=
this.b.Td(c.insts[f]))&&k.ni.push(p);e.je[h.index.toString()]=k}this.He.push(e)}}};
(function(){function g(){}function m(a,b){var d=a.ka.c2_feo_val,e=b.ka.c2_feo_val;if(E(d)&&E(e))return d-e;d=""+d;e=""+e;return d<e?-1:d>e?1:0}function l(){}function f(){}var b=U.prototype;g.prototype.wH=function(){return!0};g.prototype.kB=function(){return!0};g.prototype.ZI=function(){return!0};g.prototype.XG=function(a,b,d){return hc(a,b,d)};g.prototype.zH=function(a,b,d){var e=this.b.wb(),h=e.Cb,e=e.qi();a=this.b.oz(a);if(d<b)if(e)for(;b>=d&&!a.Zb;--b)this.b.ge(h.qa),a.index=b,h.Yd(),this.b.yd(h.qa);
else for(;b>=d&&!a.Zb;--b)a.index=b,h.Yd();else if(e)for(;b<=d&&!a.Zb;++b)this.b.ge(h.qa),a.index=b,h.Yd(),this.b.yd(h.qa);else for(;b<=d&&!a.Zb;++b)a.index=b,h.Yd();this.b.lz();return!1};var a=[],d=-1;g.prototype.AH=function(c){var b=c.ga();d++;a.length===d&&a.push([]);var e=a[d];Ga(e,b.vc());var h=this.b.wb(),f=h.Cb,g=h.qi(),h=this.b.oz(),l,m,u,r,y,D,w=c.qd;if(g)for(g=0,l=e.length;g<l&&!h.Zb;g++){this.b.ge(f.qa);r=e[g];b=c.ga();b.na=!1;H(b.A);b.A[0]=r;if(w)for(m=0,u=r.siblings.length;m<u;m++)y=
r.siblings[m],D=y.type.ga(),D.na=!1,H(D.A),D.A[0]=y;h.index=g;f.Yd();this.b.yd(f.qa)}else for(b.na=!1,H(b.A),g=0,l=e.length;g<l&&!h.Zb;g++){r=e[g];b.A[0]=r;if(w)for(m=0,u=r.siblings.length;m<u;m++)y=r.siblings[m],D=y.type.ga(),D.na=!1,H(D.A),D.A[0]=y;h.index=g;f.Yd()}H(e);this.b.lz();d--;return!1};g.prototype.CH=function(c,b,e){b=c.ga();d++;a.length===d&&a.push([]);var h=a[d];Ga(h,b.vc());var f=this.b.wb(),g=f.Cb,l=this.b.ki(),x=f.qi(),f=this.b.oz(),u,r,y,D,w;u=0;for(r=h.length;u<r;u++)h[u].ka.c2_feo_val=
l.Ea[1].get(u);h.sort(m);1===e&&h.reverse();e=c.qd;if(x)for(u=0,r=h.length;u<r&&!f.Zb;u++){this.b.ge(g.qa);y=h[u];b=c.ga();b.na=!1;H(b.A);b.A[0]=y;if(e)for(l=0,x=y.siblings.length;l<x;l++)D=y.siblings[l],w=D.type.ga(),w.na=!1,H(w.A),w.A[0]=D;f.index=u;g.Yd();this.b.yd(g.qa)}else for(b.na=!1,H(b.A),u=0,r=h.length;u<r&&!f.Zb;u++){y=h[u];b.A[0]=y;if(e)for(l=0,x=y.siblings.length;l<x;l++)D=y.siblings[l],w=D.type.ga(),w.na=!1,H(w.A),w.A[0]=D;f.index=u;g.Yd()}H(h);this.b.lz();d--;return!1};g.prototype.tJ=
function(c,b,e,h){var f,g,l,m;if(c){d++;a.length===d&&a.push([]);var u=a[d],r=c.ga();Ga(u,r.vc());r.na&&H(r.Ha);var y=this.b.ki();l=f=0;for(g=u.length;f<g;f++)m=u[f],u[l]=m,b=y.Ea[1].get(f),h=y.Ea[3].get(f),hc(b,e,h)?l++:r.Ha.push(m);Fa(u,l);r.na=!1;Ga(r.A,u);H(u);d--;c.jd();return!!r.A.length}};g.prototype.XK=function(){var a=this.b.ki().ka;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,d=this.b.hd;a.TriggerOnce_lastTick=d;return this.b.Ey||
b!==d-1};g.prototype.vH=function(a){var b=this.b.ki(),d=b.ka.Every_lastTime||0,e=this.b.td.wa;"undefined"===typeof b.ka.Every_seconds&&(b.ka.Every_seconds=a);var h=b.ka.Every_seconds;if(e>=d+h)return b.ka.Every_lastTime=d+h,e>=b.ka.Every_lastTime+.04&&(b.ka.Every_lastTime=e),b.ka.Every_seconds=a,!0;e<d-.1&&(b.ka.Every_lastTime=e);return!1};g.prototype.vJ=function(a){if(!a)return!1;var b=a.ga(),d=b.vc(),e=sa(Math.random()*d.length);if(e>=d.length)return!1;b.Rm(d[e]);a.jd();return!0};g.prototype.eH=
function(a,b,d){return hc(a.Ek(),b,d)};g.prototype.YH=function(a){return(a=this.b.fm[a.toLowerCase()])&&a.Fk};g.prototype.eI=function(){return"undefined"!==typeof cr_is_preview};g.prototype.sJ=function(a){if(!a||!a.A.length)return!1;a.ga().na=!0;a.jd();return!0};g.prototype.$H=function(){return this.b.lf};g.prototype.YG=function(a,b,d){return a>=b&&a<=d};g.prototype.EA=function(){var a=this.b.wb();return a.Yw?!1:!a.Tk};g.prototype.mB=function(){return!0};g.prototype.FI=function(){return!0};g.prototype.wv=
function(){return!0};g.prototype.sB=function(){return!0};g.prototype.aJ=function(){return!0};g.prototype.Zq=function(){return!0};g.prototype.aI=function(a){var b=this.b;switch(a){case 0:return!b.Ca&&!b.ZD&&!b.we&&!b.qy&&!b.ih&&!b.cy&&!b.Os;case 1:return b.Qk;case 2:return b.Ro;case 3:return b.ry;case 4:return b.ih;case 5:return b.cy;case 6:return b.ny;case 7:return b.Re;case 8:return b.we;case 9:return b.OO;case 10:return b.ZD;case 11:return b.So;case 12:return b.Os;case 13:return b.Ts;default:return!1}};
g.prototype.IG=function(a,b,d){return Ra(K(a),K(d))<=K(b)};g.prototype.WH=function(a,b){return Ua(K(a),K(b))};g.prototype.VH=function(a,b,d){a=Pa(a);b=Pa(b);d=Pa(d);return Ua(d,b)?Ua(a,b)&&!Ua(a,d):!(!Ua(a,b)&&Ua(a,d))};b.n=new g;l.prototype.KH=function(a){this.b.um||this.b.qk||(this.b.qk=a)};l.prototype.iH=function(a,b,d,e){if(b&&a&&(b=this.b.lo(a,b,d,e))){this.b.kf++;var h;this.b.trigger(Object.getPrototypeOf(a.G).n.gk,b);if(b.qd)for(d=0,e=b.siblings.length;d<e;d++)h=b.siblings[d],this.b.trigger(Object.getPrototypeOf(h.type.G).n.gk,
h);this.b.kf--;a=a.ga();a.na=!1;H(a.A);a.A[0]=b;if(b.qd)for(d=0,e=b.siblings.length;d<e;d++)h=b.siblings[d],a=h.type.ga(),a.na=!1,H(a.A),a.A[0]=h}};l.prototype.jK=function(a,b){a&&a.visible!==b&&(a.visible=b,this.b.la=!0)};l.prototype.AK=function(a,b){0===a.Lu?E(b)?a.ll(b):a.ll(parseFloat(b)):1===a.Lu&&a.ll(b.toString())};l.prototype.HG=function(a,b){0===a.Lu?E(b)?a.ll(a.Ek()+b):a.ll(a.Ek()+parseFloat(b)):1===a.Lu&&a.ll(a.Ek()+b.toString())};l.prototype.aK=function(a,b){var d=this.b.fm[a.toLowerCase()];
if(d)switch(b){case 0:d.hu(!1);break;case 1:d.hu(!0);break;case 2:d.hu(!d.Fk)}};l.prototype.kr=function(a){0>a&&(a=0);this.b.Yc=a};l.prototype.mK=function(a,b){var d=b;0>d&&(d=0);if(a){var e=a.ga().vc(),h,f;h=0;for(f=e.length;h<f;h++)e[h].Ci=d}};var e=[],h=[];l.prototype.cL=function(a){if(!(0>a)){var b,d,f,g=this.b.wb(),l;e.length?l=e.pop():l={je:{},qa:[]};l.Uw=!1;l.time=this.b.td.wa+a;l.WF="";l.Kz=!1;l.Wl=g.Cb;l.te=g.te+1;a=0;for(b=this.b.da.length;a<b;a++)f=this.b.da[a],d=f.ga(),d.na&&-1===g.Cb.qa.indexOf(f)||
(l.qa.push(f),f=void 0,h.length?f=h.pop():f={ni:[]},f.cu=!1,f.cu=d.na,Ga(f.ni,d.A),l.je[a.toString()]=f);this.He.push(l);return!0}};l.prototype.iK=function(a,b){a&&!!b!==!!a.wf&&(a.wf=!!b,this.b.la=!0)};l.prototype.LH=function(a){if(!this.b.um&&!this.b.qk)for(var b in this.b.wi)if(this.b.wi.hasOwnProperty(b)&&mb(b,a)){this.b.qk=this.b.wi[b];break}};b.q=new l;f.prototype["int"]=function(a,b){la(b)?(a.R(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.R(b)};f.prototype["float"]=function(a,b){la(b)?(a.K(parseFloat(b)),
isNaN(a.data)&&(a.data=0)):a.K(b)};f.prototype.KQ=function(a,b){la(b)?a.Fa(b):a.Fa(b.toString())};f.prototype.jP=function(a,b){a.R(b.length||0)};f.prototype.random=function(a,b,d){void 0===d?a.K(Math.random()*b):a.K(Math.random()*(d-b)+b)};f.prototype.sqrt=function(a,b){a.K(Math.sqrt(b))};f.prototype.abs=function(a,b){a.K(Math.abs(b))};f.prototype.round=function(a,b){a.R(Math.round(b))};f.prototype.floor=function(a,b){a.R(Math.floor(b))};f.prototype.ceil=function(a,b){a.R(Math.ceil(b))};f.prototype.sin=
function(a,b){a.K(Math.sin(K(b)))};f.prototype.cos=function(a,b){a.K(Math.cos(K(b)))};f.prototype.tan=function(a,b){a.K(Math.tan(K(b)))};f.prototype.asin=function(a,b){a.K(La(Math.asin(b)))};f.prototype.acos=function(a,b){a.K(La(Math.acos(b)))};f.prototype.atan=function(a,b){a.K(La(Math.atan(b)))};f.prototype.exp=function(a,b){a.K(Math.exp(b))};f.prototype.log10=function(a,b){a.K(Math.log(b)/Math.LN10)};f.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,e,h;d=2;for(e=
arguments.length;d<e;d++)h=arguments[d],"number"===typeof h&&b<h&&(b=h);a.K(b)};f.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,e,h;d=2;for(e=arguments.length;d<e;d++)h=arguments[d],"number"===typeof h&&b>h&&(b=h);a.K(b)};f.prototype.uk=function(a){a.K(this.b.uk)};f.prototype.Yc=function(a){a.K(this.b.Yc)};f.prototype.time=function(a){a.K(this.b.td.wa)};f.prototype.hd=function(a){a.R(this.b.hd)};f.prototype.zt=function(a){a.R(this.b.zt)};f.prototype.ws=function(a){a.R(this.b.ws)};
f.prototype.nP=function(a,b){var d,e;if(this.b.Hp.length)if(b){for(e=this.b.Ip;0<=e;--e)if(d=this.b.Hp[e],d.name===b){a.R(d.index);return}a.R(0)}else d=this.b.qD(),a.R(d?d.index:-1);else a.R(0)};f.prototype.rM=function(a,b,d,e,h){a.K(Xa(b,d,e,h))};f.prototype.C=function(a,b,d,e,h){a.K(La(Qa(b,d,e,h)))};f.prototype.Gm=function(a){a.Fa("\n")};f.prototype.aM=function(a,b,d,e){b<d?a.K(d):b>e?a.K(e):a.K(b)};f.prototype.iP=function(a){a.R(this.b.qb.width)};f.prototype.gP=function(a){a.R(this.b.qb.height)};
f.prototype.find=function(a,b,d){la(b)&&la(d)?a.R(b.search(new RegExp(fb(d),"i"))):a.R(-1)};f.prototype.left=function(a,b,d){a.Fa(la(b)?b.substr(0,d):"")};f.prototype.right=function(a,b,d){a.Fa(la(b)?b.substr(b.length-d):"")};f.prototype.rP=function(a,b,d,e){a.Fa(la(b)?b.substr(d,e):"")};f.prototype.RQ=function(a,b,d,e){la(b)&&la(e)?(b=b.split(e),d=sa(d),0>d||d>=b.length?a.Fa(""):a.Fa(b[d])):a.Fa("")};f.prototype.SQ=function(a,b,d){la(b)&&b.length?a.R(b.split(d).length):a.R(0)};f.prototype.replace=
function(a,b,d,e){la(b)&&la(d)&&la(e)?a.Fa(b.replace(new RegExp(fb(d),"gi"),e)):a.Fa(la(b)?b:"")};f.prototype.trim=function(a,b){a.Fa(la(b)?b.trim():"")};f.prototype.hP=function(a){this.b.qb?a.Fa(this.b.qb.name):a.Fa("")};f.prototype.FC=function(a){var b=sa(Math.random()*(arguments.length-1));a.ie(arguments[b+1])};f.prototype.oQ=function(a,b,d,e){a.R(ya(b,d,e))};f.prototype.kR=function(a,b,d){var e=0>b?"-":"";0>b&&(b=-b);d=d-b.toString().length;for(var h=0;h<d;h++)e+="0";a.Fa(e+b.toString())};f.prototype.Ow=
function(a){a.K(this.b.Ow/1E3)};f.prototype.eR=function(a,b){var d=this.b.Bs(b);a.K(d?d.Ra:0)};f.prototype.gR=function(a,b){var d=this.b.Bs(b);a.K(d?d.Ua:0)};f.prototype.fR=function(a,b){var d=this.b.Bs(b);a.K(d?d.bb:0)};f.prototype.dR=function(a,b){var d=this.b.Bs(b);a.K(d?d.fb:0)};f.prototype.Yk=function(a){a.K(this.b.Yk)};f.prototype.MP=function(a){a.R(this.b.Qc)};f.prototype.LP=function(a){a.R(this.b.Pc)};b.D=new f;b.pQ=function(){var a,b,d,f,g,l,m=this.b.wb();a=0;for(d=this.He.length;a<d;a++){f=
this.He[a];if(-1===f.time){if(!f.Kz)continue}else if(f.time>this.b.td.wa)continue;m.Cb=f.Wl;m.te=f.te;m.Gc=0;for(b in f.je)f.je.hasOwnProperty(b)&&(g=this.b.da[parseInt(b,10)].ga(),l=f.je[b],g.na=l.cu,Ga(g.A,l.ni),g=l,H(g.ni),h.push(g));f.Wl.nQ();this.b.Jw(f.qa);f.Uw=!0}b=a=0;for(d=this.He.length;a<d;a++)f=this.He[a],this.He[b]=f,f.Uw?($a(f.je),H(f.qa),e.push(f)):b++;Fa(this.He,b)}})();
(function(){pb=function(g,l){var f=g[1],b=g[3],a=g[4],d=g[5],e=g[6],h=g[7],c=g[8];l.n||(l.n={});l.q||(l.q={});l.D||(l.D={});var k=l.n,p=l.q,t=l.D;b&&(k.yA=function(a,c){return hc(this.x,a,c)},k.gH=function(a,c){return hc(this.y,a,c)},k.bI=function(){var a=this.F;this.ja();var c=this.za;return!(c.right<a.Ra||c.bottom<a.Ua||c.left>a.bb||c.top>a.fb)},k.vR=function(){this.ja();var a=this.za,c=this.b.qb;return 0>a.right||0>a.bottom||a.left>c.width||a.top>c.height},k.ER=function(a,c,b){var d=this.ga(),
e=d.vc();if(!e.length)return!1;var h=e[0],k=h,f=Xa(h.x,h.y,c,b),g,p,l;g=1;for(p=e.length;g<p;g++)if(h=e[g],l=Xa(h.x,h.y,c,b),0===a&&l<f||1===a&&l>f)f=l,k=h;d.Rm(k);return!0},p.RB=function(a){this.x!==a&&(this.x=a,this.S())},p.IK=function(a){this.y!==a&&(this.y=a,this.S())},p.qK=function(a,c){if(this.x!==a||this.y!==c)this.x=a,this.y=c,this.S()},p.rK=function(a,c){var b=a.fO(this);if(b){var d;b.tg?(d=b.tg(c,!0),b=b.tg(c,!1)):(d=b.x,b=b.y);if(this.x!==d||this.y!==b)this.x=d,this.y=b,this.S()}},p.AR=
function(a){0!==a&&(this.x+=Math.cos(this.C)*a,this.y+=Math.sin(this.C)*a,this.S())},p.zR=function(a,c){0!==c&&(this.x+=Math.cos(K(a))*c,this.y+=Math.sin(K(a))*c,this.S())},t.Gl=function(a){a.K(this.x)},t.Hl=function(a){a.K(this.y)},t.uk=function(a){a.K(this.b.de(this))});a&&(k.sR=function(a,c){return hc(this.width,a,c)},k.qR=function(a,c){return hc(this.height,a,c)},p.ej=function(a){this.width!==a&&(this.width=a,this.S())},p.cK=function(a){this.height!==a&&(this.height=a,this.S())},p.Og=function(a,
c){if(this.width!==a||this.height!==c)this.width=a,this.height=c,this.S()},t.bw=function(a){a.K(this.width)},t.KA=function(a){a.K(this.height)},t.mR=function(a){this.ja();a.K(this.za.left)},t.oR=function(a){this.ja();a.K(this.za.top)},t.nR=function(a){this.ja();a.K(this.za.right)},t.lR=function(a){this.ja();a.K(this.za.bottom)});d&&(k.IG=function(a,c){return Ra(this.C,K(c))<=K(a)},k.WH=function(a){return Ua(this.C,K(a))},k.VH=function(a,c){var b=Pa(a),d=Pa(c),e=Na(this.C);return Ua(d,b)?Ua(e,b)&&
!Ua(e,d):!(!Ua(e,b)&&Ua(e,d))},p.IB=function(a){a=K(Ma(a));isNaN(a)||this.C===a||(this.C=a,this.S())},p.JR=function(a){0===a||isNaN(a)||(this.C+=K(a),this.C=Na(this.C),this.S())},p.KR=function(a){0===a||isNaN(a)||(this.C-=K(a),this.C=Na(this.C),this.S())},p.LR=function(a,c){var b=Ta(this.C,K(c),K(a));isNaN(b)||this.C===b||(this.C=b,this.S())},p.MR=function(a,c,b){a=Ta(this.C,Math.atan2(b-this.y,c-this.x),K(a));isNaN(a)||this.C===a||(this.C=a,this.S())},p.VR=function(a,c){var b=Math.atan2(c-this.y,
a-this.x);isNaN(b)||this.C===b||(this.C=b,this.S())},t.qA=function(a){a.K(Oa(this.C))});f||(k.Lh=function(a,c,b){return hc(this.ic[a],c,b)},k.Sq=function(a){return this.ic[a]},k.FR=function(a,c){var b=this.ga(),d=b.vc();if(!d.length)return!1;var e=d[0],h=e,k=e.ic[c],f,g,p;f=1;for(g=d.length;f<g;f++)if(e=d[f],p=e.ic[c],0===a&&p<k||1===a&&p>k)k=p,h=e;b.Rm(h);return!0},k.uJ=function(a){var c,b,d,e,h;if(this.b.ki().Qo){h=this.ga();if(h.na)for(h.na=!1,H(h.A),H(h.Ha),d=this.A,c=0,b=d.length;c<b;c++)e=d[c],
e.uid===a?h.Ha.push(e):h.A.push(e);else{d=c=0;for(b=h.A.length;c<b;c++)e=h.A[c],h.A[d]=e,e.uid===a?h.Ha.push(e):d++;Fa(h.A,d)}this.jd();return!!h.A.length}e=this.b.Td(a);if(!e)return!1;h=this.ga();if(!h.na&&-1===h.A.indexOf(e))return!1;if(this.ea)for(a=e.type.Wb,c=0,b=a.length;c<b;c++){if(a[c]===this)return h.Rm(e),this.jd(),!0}else if(e.type===this)return h.Rm(e),this.jd(),!0;return!1},k.gk=function(){return!0},k.cB=function(){return!0},p.Cl=function(a,c){var b=this.ic;E(b[a])?b[a]=E(c)?c:parseFloat(c):
la(b[a])&&(b[a]=la(c)?c:c.toString())},p.Wu=function(a,c){var b=this.ic;E(b[a])?b[a]=E(c)?b[a]+c:b[a]+parseFloat(c):la(b[a])&&(b[a]=la(c)?b[a]+c:b[a]+c.toString())},p.ZR=function(a,c){var b=this.ic;E(b[a])&&(b[a]=E(c)?b[a]-c:b[a]-parseFloat(c))},p.er=function(a,c){this.ic[a]=c?1:0},p.aS=function(a){this.ic[a]=1-this.ic[a]},p.Zf=function(){this.b.ne(this)},p.qI||(p.qI=function(a){var c,b;try{c=JSON.parse(a)}catch(d){return}this.b.ht(this,c,!0);this.Kb&&this.Kb();if(this.ua)for(a=0,c=this.ua.length;a<
c;++a)b=this.ua[a],b.Kb&&b.Kb()}),t.BA=function(a){var c=a.el.A.length,b,d,e;b=0;for(d=this.b.kg.length;b<d;b++)e=this.b.kg[b],a.el.ea?0<=e.type.Wb.indexOf(a.el)&&c++:e.type===a.el&&c++;a.R(c)},t.wJ=function(a){a.R(a.el.ga().vc().length)},t.ZK=function(a){a.R(this.uid)},t.QH=function(a){a.R(this.Eo())},t.xn||(t.xn=function(a){a.Fa(JSON.stringify(this.b.Cz(this,!0)))}));e&&(k.wR=function(){return this.visible},p.El=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.la=!0)},k.bH=function(a,c){return hc(lb(100*
this.opacity),a,c)},p.PB=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.la=!0)},t.Opacity=function(a){a.K(lb(100*this.opacity))});h&&(k.Tq=function(a){return a?this.F===a:!1},k.GR=function(a){var c=this.ga(),b=c.vc();if(!b.length)return!1;var d=b[0],e=d,h,k;h=1;for(k=b.length;h<k;h++)if(d=b[h],0===a){if(d.F.index>e.F.index||d.F.index===e.F.index&&d.Qe()>e.Qe())e=d}else if(d.F.index<e.F.index||d.F.index===e.F.index&&d.Qe()<e.Qe())e=d;c.Rm(e);return!0},p.WA=function(){var a=
this.F,c=a.A;c.length&&c[c.length-1]===this||(a.Vm(this,!1),a.eo(this,!1),this.b.la=!0)},p.pv=function(){var a=this.F,c=a.A;c.length&&c[0]===this||(a.Vm(this,!1),a.ZP(this),this.b.la=!0)},p.BR=function(a){a&&a!=this.F&&(this.F.Vm(this,!0),this.F=a,a.eo(this,!0),this.b.la=!0)},p.dC=function(a,c){var b=0===a;if(c){var d=c.cm(this);d&&d.uid!==this.uid&&(this.F.index!==d.F.index&&(this.F.Vm(this,!0),this.F=d.F,d.F.eo(this,!0)),this.F.tP(this,d,b),this.b.la=!0)}},t.yR=function(a){a.R(this.F.QE)},t.xR=
function(a){a.Fa(this.F.name)},t.bS=function(a){a.R(this.Qe())});c&&(p.OR=function(a,c){if(this.b.M){var b=this.type.yx(c);if(!(0>b)){var d=1===a;this.kj[b]!==d&&(this.kj[b]=d,this.Kg(),this.b.la=!0)}}},p.MB=function(a,c,b){if(this.b.M){var d=this.type.yx(a);0>d||(a=this.type.Ma[d],d=this.qc[d],c=Math.floor(c),0>c||c>=d.length||(1===this.b.M.jO(a.Wc,c)&&(b/=100),d[c]!==b&&(d[c]=b,a.W&&(this.b.la=!0))))}})};Lb=function(){this.Fw=this.Ir=!0;this.type.Cr=!0;this.b.la=!0;var g,l,f=this.Cw;g=0;for(l=f.length;g<
l;++g)f[g](this);this.F.zf&&this.ja()};Mb=function(g){g&&this.Cw.push(g)};Ob=function(){if(this.Ir){var g=this.za,l=this.Wa;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Wd*this.width,-this.Xd*this.height);this.C?(g.offset(-this.x,-this.y),l.OF(g,this.C),l.offset(this.x,this.y),l.xC(g)):l.ml(g);g.normalize();this.Ir=!1;this.vG()}};var g=new wa(0,0,0,0);Pb=function(){if(this.F.zf){var m=this.F.Id,l=this.za;g.set(m.re(l.left),m.se(l.top),m.re(l.right),m.se(l.bottom));this.De.vo(g)||
(this.De.right<this.De.left?m.update(this,null,g):m.update(this,this.De,g),this.De.tj(g),this.F.Eg=!0)}};Qb=function(){if(this.Fw&&this.cf){this.ja();var m=this.type.ko,l=this.za;g.set(m.re(l.left),m.se(l.top),m.re(l.right),m.se(l.bottom));this.Ef.vo(g)||(this.Ef.right<this.Ef.left?m.update(this,null,g):m.update(this,this.Ef,g),this.Ef.tj(g),this.Fw=!1)}};Nb=function(g,l){return this.za.ec(g,l)&&this.Wa.ec(g,l)?this.pl?this.yS(g,l):this.gb&&!this.gb.Pk()?(this.gb.pk(this.width,this.height,this.C),
this.gb.ec(g-this.x,l-this.y)):!0:!1};Fb=function(){this.type.Iu();return this.Ik};Rb=function(){this.F.cA();return this.Mg};Sb=function(){H(this.rb);var g,l,f,b=!0;g=0;for(l=this.kj.length;g<l;g++)this.kj[g]&&(f=this.type.Ma[g],this.rb.push(f),f.We||(b=!1));this.yG=!!this.rb.length;this.Mi=b};Gb=function(){return"Inst"+this.pF};sb=function(g){if(g&&g.qd&&g.type!=this){var l,f,b;l=0;for(f=g.siblings.length;l<f;l++)if(b=g.siblings[l],b.type==this)return b}g=this.ga().vc();return g.length?g[0]:null};
tb=function(g){var l=this.ga().vc();return l.length?l[g.Eo()%l.length]:null};rb=function(){if(this.an&&!this.ea){var g,l;g=0;for(l=this.A.length;g<l;g++)this.A[g].Ik=g;var f=g,b=this.b.kg;g=0;for(l=b.length;g<l;++g)b[g].type===this&&(b[g].Ik=f++);this.an=!1}};Db=function(g){if(g<this.A.length)return this.A[g];g-=this.A.length;var l=this.b.kg,f,b;f=0;for(b=l.length;f<b;++f)if(l[f].type===this){if(0===g)return l[f];--g}return null};ub=function(){return this.Oi[this.Xg]};vb=function(){this.Xg++;this.Xg===
this.Oi.length?this.Oi.push(new qb(this)):(this.Oi[this.Xg].na=!0,H(this.Oi[this.Xg].Ha))};wb=function(){this.Xg++;this.Xg===this.Oi.length&&this.Oi.push(new qb(this));var g=this.Oi[this.Xg],l=this.Oi[this.Xg-1];l.na?(g.na=!0,H(g.Ha)):(g.na=!1,Ga(g.A,l.A),Ga(g.Ha,l.Ha))};xb=function(){this.Xg--};yb=function(g){var l,f,b,a,d,e=0;if(!this.ea)for(l=0,f=this.Wb.length;l<f;l++)for(d=this.Wb[l],b=0,a=d.mc.length;b<a;b++){if(g===d.mc[b].name)return this.ka.lastBehIndex=e,d.mc[b];e++}l=0;for(f=this.mc.length;l<
f;l++){if(g===this.mc[l].name)return this.ka.lastBehIndex=e,this.mc[l];e++}return null};zb=function(g){return this.As(g)?this.ka.lastBehIndex:-1};Ab=function(g){var l,f;l=0;for(f=this.Ma.length;l<f;l++)if(this.Ma[l].name===g)return l;return-1};Cb=function(){if(this.qd&&!this.ea){var g,l,f,b,a,d,e;this.Iu();d=this.ga();var h=d.na,c=(g=this.b.wb())&&g.Cb&&g.Cb.rf;g=0;for(l=this.Le.length;g<l;g++)if(a=this.Le[g],a!==this&&(a.Iu(),e=a.ga(),e.na=h,!h)){H(e.A);f=0;for(b=d.A.length;f<b;++f)e.A[f]=a.zx(d.A[f].Ik);
if(c)for(H(e.Ha),f=0,b=d.Ha.length;f<b;++f)e.Ha[f]=a.zx(d.Ha[f].Ik)}}};Eb=function(){return"Type"+this.eb};hc=function(g,l,f){if("undefined"===typeof g||"undefined"===typeof f)return!1;switch(l){case 0:return g===f;case 1:return g!==f;case 2:return g<f;case 3:return g<=f;case 4:return g>f;case 5:return g>=f;default:return!1}}})();
var uc={setcolor:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float red;\nuniform lowp float green;\nuniform lowp float blue;\nvoid main(void)\n{\nlowp float a = texture2D(samplerFront, vTex).a;\ngl_FragColor = vec4(red * a, green * a, blue * a, a);\n}",Xl:0,Yl:0,po:!1,We:!0,ao:!1,Ea:[["red",0,1],["green",0,1],["blue",0,1]]},tint:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float red;\nuniform lowp float green;\nuniform lowp float blue;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\ngl_FragColor = front * vec4(red, green, blue, 1.0);\n}",
Xl:0,Yl:0,po:!1,We:!0,ao:!1,Ea:[["red",0,1],["green",0,1],["blue",0,1]]},warp:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float seconds;\nuniform mediump float pixelWidth;\nuniform mediump float pixelHeight;\nuniform mediump float layerScale;\nuniform mediump float freqX;\nuniform mediump float freqY;\nuniform mediump float ampX;\nuniform mediump float ampY;\nuniform mediump float speedX;\nuniform mediump float speedY;\nvoid main(void)\n{\nmediump float boxLeft = 0.0;\nmediump float boxTop = 0.0;\nmediump float aspect = pixelHeight / pixelWidth;\nmediump vec2 p = vTex;\np.x += (cos((vTex.y - boxTop) * freqX / layerScale / (pixelWidth * 750.0) + (seconds * speedX)) * ampX * pixelWidth * layerScale);\np.y += (sin((vTex.x - boxLeft) * freqY * aspect / layerScale / (pixelHeight * 750.0) + (seconds * speedY)) * ampY * pixelHeight * layerScale);\ngl_FragColor = texture2D(samplerFront, p);\n}",
Xl:25,Yl:25,po:!1,We:!1,ao:!0,Ea:[["freqX",0,0],["freqY",0,0],["ampX",0,0],["ampY",0,0],["speedX",0,0],["speedY",0,0]]}};function yc(g){this.b=g}
(function(){function g(){}function m(){}function l(){}var f=!1,b=null,a=null,d="",e=yc.prototype;e.L=function(a){this.G=a;this.b=a.b};e.L.prototype.I=function(){};e.J=function(c){this.type=c;this.b=c.b;this.Ne=this.nh="";this.fe=0;this.timeout=-1;if(f=this.b.lm)b=require("path"),a=require("fs"),d=b.dirname((window.process||nw.process).execPath)+"\\"};var h=e.J.prototype,c=null;window.C2_AJAX_DCSide=function(a,b,d){c&&("success"===a?(c.Ne=b,c.nh=d,c.b.trigger(yc.prototype.n.En,c),c.b.trigger(yc.prototype.n.Gn,
c)):"error"===a?(c.Ne=b,c.b.trigger(yc.prototype.n.Uq,c),c.b.trigger(yc.prototype.n.Oh,c)):"progress"===a&&(c.fe=d,c.Ne=b,c.b.trigger(yc.prototype.n.On,c)))};h.I=function(){c=this};h.P=function(){return{lastData:this.nh}};h.ca=function(a){this.nh=a.lastData;this.Ne="";this.fe=0};var k={},p="";h.zM=function(c,b){if(this.b.od)AppMobi.webview.execute('C2_AJAX_WebSide("'+c+'", "'+b+'", "GET", null);');else{var e=this,h=null,g=function(){e.Ne=c;e.b.trigger(yc.prototype.n.Uq,e);e.b.trigger(yc.prototype.n.Oh,
e)},l=function(){if(f){var h=d+b;a.existsSync(h)?a.readFile(h,{encoding:"utf8"},function(a,b){a?g():(e.Ne=c,e.nh=b.replace(/\r\n/g,"\n"),e.b.trigger(yc.prototype.n.En,e),e.b.trigger(yc.prototype.n.Gn,e))}):g()}else g()},m=function(a){a.lengthComputable&&(e.fe=a.loaded/a.total,e.Ne=c,e.b.trigger(yc.prototype.n.On,e))};try{this.b.ih?h=new ActiveXObject("Microsoft.XMLHTTP"):h=new XMLHttpRequest;h.onreadystatechange=function(){4===h.readyState&&(e.Ne=c,h.responseText?e.nh=h.responseText.replace(/\r\n/g,
"\n"):e.nh="",400<=h.status?(e.b.trigger(yc.prototype.n.Uq,e),e.b.trigger(yc.prototype.n.Oh,e)):f&&!e.nh.length||!f&&0===h.status&&!e.nh.length||(e.b.trigger(yc.prototype.n.En,e),e.b.trigger(yc.prototype.n.Gn,e)))};this.b.ih||(h.onerror=l,h.ontimeout=l,h.onabort=l,h.onprogress=m);h.open("GET",b);!this.b.ih&&0<=this.timeout&&"undefined"!==typeof h.timeout&&(h.timeout=this.timeout);try{h.responseType="text"}catch(y){}if(h.setRequestHeader){for(var D in k)if(k.hasOwnProperty(D))try{h.setRequestHeader(D,
k[D])}catch(w){}k={}}if(p&&h.overrideMimeType){try{h.overrideMimeType(p)}catch(C){}p=""}h.send()}catch(G){l()}}};g.prototype.Gn=function(a){return mb(a,this.Ne)};g.prototype.En=function(){return!0};g.prototype.Oh=function(a){return mb(a,this.Ne)};g.prototype.Uq=function(){return!0};g.prototype.On=function(a){return mb(a,this.Ne)};e.n=new g;m.prototype.Qh=function(a,c){var b=this;this.b.Yo&&!this.b.UD(c)?this.b.bD(c,function(c){b.Ne=a;b.nh=c.replace(/\r\n/g,"\n");b.b.trigger(yc.prototype.n.En,b);b.b.trigger(yc.prototype.n.Gn,
b)},function(){b.Ne=a;b.b.trigger(yc.prototype.n.Uq,b);b.b.trigger(yc.prototype.n.Oh,b)}):this.zM(a,c)};e.q=new m;l.prototype.jI=function(a){a.Fa(this.nh)};l.prototype.Gv=function(a){a.K(this.fe)};l.prototype.SK=function(a){a.Fa(this.Ne)};e.D=new l})();function zc(g){this.b=g}
(function(){function g(){}function m(){}function l(){}function f(){function a(c,b){var d=(c&65535)+(b&65535);return(c>>16)+(b>>16)+(d>>16)<<16|d&65535}this.hash=function(c){for(var d="",g=-1,f,l;++g<c.length;)f=c.charCodeAt(g),l=g+1<c.length?c.charCodeAt(g+1):0,55296<=f&&56319>=f&&56320<=l&&57343>=l&&(f=65536+((f&1023)<<10)+(l&1023),g++),127>=f?d+=String.fromCharCode(f):2047>=f?d+=String.fromCharCode(192|f>>>6&31,128|f&63):65535>=f?d+=String.fromCharCode(224|f>>>12&15,128|f>>>6&63,128|f&63):2097151>=
f&&(d+=String.fromCharCode(240|f>>>18&7,128|f>>>12&63,128|f>>>6&63,128|f&63));c=Array(d.length>>2);for(g=0;g<c.length;g++)c[g]=0;for(g=0;g<8*d.length;g+=8)c[g>>5]|=(d.charCodeAt(g/8)&255)<<24-g%32;d=8*d.length;c[d>>5]|=128<<24-d%32;c[(d+64>>9<<4)+15]=d;d=Array(80);g=1732584193;f=-271733879;l=-1732584194;for(var m=271733878,z=-1009589776,x=0;x<c.length;x+=16){for(var u=g,r=f,y=l,D=m,w=z,C=0;80>C;C++){var G;16>C?G=c[x+C]:(G=d[C-3]^d[C-8]^d[C-14]^d[C-16],G=G<<1|G>>>31);d[C]=G;G=a(a(g<<5|g>>>27,20>C?
f&l|~f&m:40>C?f^l^m:60>C?f&l|f&m|l&m:f^l^m),a(a(z,d[C]),20>C?1518500249:40>C?1859775393:60>C?-1894007588:-899497514));z=m;m=l;l=f<<30|f>>>2;f=g;g=G}g=a(g,u);f=a(f,r);l=a(l,y);m=a(m,D);z=a(z,w)}c=[g,f,l,m,z];d="";for(g=0;g<32*c.length;g+=8)d+=String.fromCharCode(c[g>>5]>>>24-g%32&255);c=d;try{b}catch(A){b=0}d=b?"0123456789ABCDEF":"0123456789abcdef";g="";for(l=0;l<c.length;l++)f=c.charCodeAt(l),g+=d.charAt(f>>>4&15)+d.charAt(f&15);return g};var b=0}var b=zc.prototype;b.L=function(a){this.G=a;this.b=
a.b};b.L.prototype.I=function(){};b.J=function(a){this.type=a;this.b=a.b};var a=b.J.prototype;a.I=function(){this.IC="file"===window.location.protocol.substr(0,4)?this.HC=1:this.HC=0;this.Mw=d.decode(this.B[0].split("").reverse().join("")+"=");this.Lw=d.decode(this.B[1].split("").reverse().join("")+"=");var a=this.B[2].split("&");this.ys=a[0]||"d";this.Es=a[1]||"o";this.QN=a[2]||"b";this.JN=this.B[4];this.nD=!0;d.Sh=this.B[4];a=new f;this.GL=this.Mw+'"'+d.decode(this.ys)+'"'+this.Lw;this.XQ=this.Mw+
'"'+d.decode(this.Es)+'"'+this.Lw;if(a.hash(this.Lw+this.Mw+this.ys+this.Es+this.ys.length*this.Es.length+this.JN)!=this.QN||""==this.ys||""==this.Es)this.nD=!1};a.Pb=function(){};a.P=function(){return{}};a.ca=function(){};a.gc=function(){};a.Tb=function(){};g.prototype.OG=function(){return this.nD};b.n=new g;m.prototype.zJ=function(){if(0==this.HC){var a=this.GL;try{eval&&eval(a)}catch(b){console&&console.error&&console.error("Error: ",b)}}};m.prototype.BJ=function(){if(0==this.IC){var a=this.XQ;
try{eval&&eval(a)}catch(b){console&&console.error&&console.error("Error: ",b)}}};b.q=new m;l.prototype.FH=function(a){a.R((new Date).getTime()/1E3|0)};b.D=new l;var d={Sh:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){var b="",c,k,g,f,l,m,z=0;for(a=d.AL(a);z<a.length;)c=a.charCodeAt(z++),k=a.charCodeAt(z++),g=a.charCodeAt(z++),f=c>>2,c=(c&3)<<4|k>>4,l=(k&15)<<2|g>>6,m=g&63,isNaN(k)?l=m=64:isNaN(g)&&(m=64),b=b+this.Sh.charAt(f)+this.Sh.charAt(c)+this.Sh.charAt(l)+
this.Sh.charAt(m);return b},decode:function(a){var b="",c,k,g,f,l,m=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");m<a.length;)c=this.Sh.indexOf(a.charAt(m++)),k=this.Sh.indexOf(a.charAt(m++)),f=this.Sh.indexOf(a.charAt(m++)),l=this.Sh.indexOf(a.charAt(m++)),c=c<<2|k>>4,k=(k&15)<<4|f>>2,g=(f&3)<<6|l,b+=String.fromCharCode(c),64!=f&&(b+=String.fromCharCode(k)),64!=l&&(b+=String.fromCharCode(g));return b=d.zL(b)},AL:function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);
128>d?b+=String.fromCharCode(d):(127<d&&2048>d?b+=String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},zL:function(a){for(var b="",c=0,d=0,g=0,f=0;c<a.length;)d=a.charCodeAt(c),128>d?(b+=String.fromCharCode(d),c++):191<d&&224>d?(g=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|g&63),c+=2):(g=a.charCodeAt(c+1),f=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(g&63)<<6|f&63),c+=3);return b}}})();
function Ac(g){this.b=g}
(function(){function g(){return e.length?e.pop():[]}function m(a){var c,b;c=0;for(b=a.length;c<b;c++)Array.isArray(a[c])&&m(a[c]);H(a);e.push(a)}function l(){}function f(){}function b(){}var a=Ac.prototype;a.L=function(a){this.G=a;this.b=a.b};a.L.prototype.I=function(){};a.J=function(a){this.type=a;this.b=a.b};var d=a.J.prototype,e=[];Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});d.I=function(){this.Yb=this.B[0];this.pc=this.B[1];this.yc=this.B[2];
this.Ib||(this.Je=g());var a=this.Je;a.length=this.Yb;var c,b,d;for(c=0;c<this.Yb;c++)for(a[c]||(a[c]=g()),a[c].length=this.pc,b=0;b<this.pc;b++)for(a[c][b]||(a[c][b]=g()),a[c][b].length=this.yc,d=0;d<this.yc;d++)a[c][b][d]=0;this.fD=[];this.gD=[];this.hD=[];this.hi=-1};d.Pb=function(){var a;for(a=0;a<this.Yb;a++)m(this.Je[a]);H(this.Je)};d.Od=function(a,c,b){a=Math.floor(a);c=Math.floor(c);b=Math.floor(b);return isNaN(a)||0>a||a>this.Yb-1||isNaN(c)||0>c||c>this.pc-1||isNaN(b)||0>b||b>this.yc-1?0:
this.Je[a][c][b]};d.set=function(a,c,b,d){a=Math.floor(a);c=Math.floor(c);b=Math.floor(b);isNaN(a)||0>a||a>this.Yb-1||isNaN(c)||0>c||c>this.pc-1||isNaN(b)||0>b||b>this.yc-1||(this.Je[a][c][b]=d)};d.MN=function(){return JSON.stringify({c2array:!0,size:[this.Yb,this.pc,this.yc],data:this.Je})};d.P=function(){return{size:[this.Yb,this.pc,this.yc],data:this.Je}};d.ca=function(a){var c=a.size;this.Yb=c[0];this.pc=c[1];this.yc=c[2];this.Je=a.data};d.Li=function(a,c,b){0>a&&(a=0);0>c&&(c=0);0>b&&(b=0);if(this.Yb!==
a||this.pc!==c||this.yc!==b){this.Yb=a;this.pc=c;this.yc=b;var d,e,f=this.Je;f.length=a;for(a=0;a<this.Yb;a++)for(ka(f[a])&&(f[a]=g()),f[a].length=c,d=0;d<this.pc;d++)for(ka(f[a][d])&&(f[a][d]=g()),f[a][d].length=b,e=0;e<this.yc;e++)ka(f[a][d][e])&&(f[a][d][e]=0)}};d.UN=function(){return 0<=this.hi&&this.hi<this.fD.length?this.fD[this.hi]:0};d.VN=function(){return 0<=this.hi&&this.hi<this.gD.length?this.gD[this.hi]:0};d.WN=function(){return 0<=this.hi&&this.hi<this.hD.length?this.hD[this.hi]:0};l.prototype.yA=
function(a,c,b){return hc(this.Od(a,0,0),c,b)};l.prototype.fH=function(a,c,b,d,e){return hc(this.Od(a,c,b),d,e)};d.Va=function(a){this.b.ge(a.qa);a.Yd();this.b.yd(a.qa)};l.prototype.cH=function(a,c,b){var d=0;switch(a){case 0:d=this.Yb;break;case 1:d=this.pc;break;case 2:d=this.yc}return hc(d,c,b)};a.n=new l;f.prototype.Zi=function(){var a,c,b;for(a=0;a<this.Yb;a++)for(c=0;c<this.pc;c++)for(b=0;b<this.yc;b++)this.Je[a][c][b]=0};f.prototype.Og=function(a,b,d){this.Li(a,b,d)};f.prototype.RB=function(a,
b){this.set(a,0,0,b)};f.prototype.GK=function(a,b,d){this.set(a,b,0,d)};f.prototype.HK=function(a,b,d,e){this.set(a,b,d,e)};f.prototype.DJ=function(a,b,d){var e=0,f=0,l=0,m=this.Je;switch(d){case 0:0===a?(e=m.length,m.push(g())):(e=0,m.unshift(g()));for(m[e].length=this.pc;f<this.pc;f++)for(m[e][f]=g(),m[e][f].length=this.yc,l=0;l<this.yc;l++)m[e][f][l]=b;this.Yb++;break;case 1:for(;e<this.Yb;e++)for(0===a?(f=m[e].length,m[e].push(g())):(f=0,m[e].unshift(g())),m[e][f].length=this.yc,l=0;l<this.yc;l++)m[e][f][l]=
b;this.pc++;break;case 2:for(;e<this.Yb;e++)for(f=0;f<this.pc;f++)0===a?m[e][f].push(b):m[e][f].unshift(b);this.yc++}};f.prototype.dr=function(a){var b=0,d=0,e=this.Je;if(0!==this.Yb&&0!==this.pc&&0!==this.yc)switch(a){case 0:e.reverse();break;case 1:for(;b<this.Yb;b++)e[b].reverse();break;case 2:for(;b<this.Yb;b++)for(d=0;d<this.pc;d++)e[b][d].reverse()}};f.prototype.oH=function(a,b){var d=0,e=0;a=Math.floor(a);var f=this.Je;if(!(0>a))switch(b){case 0:if(a>=this.Yb)break;m(f[a]);f.splice(a,1);this.Yb--;
break;case 1:if(a>=this.pc)break;for(;d<this.Yb;d++)m(f[d][a]),f[d].splice(a,1);this.pc--;break;case 2:if(a>=this.yc)break;for(;d<this.Yb;d++)for(e=0;e<this.pc;e++)f[d][e].splice(a,1);this.yc--}};f.prototype.nv=function(a){var b;try{b=JSON.parse(a)}catch(d){return}b.c2array&&(a=b.size,this.Yb=a[0],this.pc=a[1],this.yc=a[2],this.Je=b.data)};a.q=new f;b.prototype.Kh=function(a,b,d,e){a.ie(this.Od(b,d||0,e||0))};b.prototype.bw=function(a){a.R(this.Yb)};b.prototype.KA=function(a){a.R(this.pc)};b.prototype.qH=
function(a){a.R(this.yc)};b.prototype.CA=function(a){a.ie(this.Od(this.UN(),this.VN(),this.WN()))};b.prototype.xn=function(a){a.Fa(this.MN())};a.D=new b})();function Bc(g){this.b=g}
(function(){function g(a){-1===ic.indexOf(a)&&ic.push(a)}function m(a){var b=a.N,c;try{c=b.play()}catch(d){g(a);return}c?c.catch(function(){g(a)}):Ed&&!O.yb&&g(a)}function l(){var a,b,c,d;Fd||Dc||!F||(f(),"running"===F.state&&(Fd=!0));var e=ic.slice(0);H(ic);if(!ia)for(a=0,b=e.length;a<b;++a)c=e[a],c.Zb||c.Te||(d=c.N.play())&&d.catch(function(){g(c)})}function f(){"suspended"===F.state&&F.resume&&F.resume();if(F.createBuffer){var a=F.createBuffer(1,220,22050),b=F.createBufferSource();b.buffer=a;b.connect(F.destination);
c(b)}}function b(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function a(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function d(a){a=a.toLowerCase();return ta.hasOwnProperty(a)&&ta[a].length?ta[a][0].gf():F.destination}function e(){return F.createGain?F.createGain():F.createGainNode()}function h(a){return F.createDelay?F.createDelay(a):F.createDelayNode(a)}function c(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function k(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||
0,b,c-b)}function p(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function t(a,b,c,d,h,k){this.type="filter";this.Sa=[a,b,c,d,h,k];this.mb=e();this.La=e();this.La.gain.value=k;this.Ja=e();this.Ja.gain.value=1-k;this.Ic=F.createBiquadFilter();this.Ic.type="number"===typeof this.Ic.type?a:Ld[a];this.Ic.frequency.value=b;this.Ic.detune&&(this.Ic.detune.value=c);this.Ic.Q.value=d;this.Ic.gain.value=h;this.mb.connect(this.Ic);this.mb.connect(this.Ja);this.Ic.connect(this.La)}function q(a,b,c){this.type=
"delay";this.Sa=[a,b,c];this.mb=e();this.La=e();this.La.gain.value=c;this.Ja=e();this.Ja.gain.value=1-c;this.Jp=e();this.Jf=h(a);this.Jf.delayTime.value=a;this.as=e();this.as.gain.value=b;this.mb.connect(this.Jp);this.mb.connect(this.Ja);this.Jp.connect(this.La);this.Jp.connect(this.Jf);this.Jf.connect(this.as);this.as.connect(this.Jp)}function B(a,b,c,d){this.type="convolve";this.Sa=[b,c,d];this.mb=e();this.La=e();this.La.gain.value=c;this.Ja=e();this.Ja.gain.value=1-c;this.sk=F.createConvolver();
a&&(this.sk.normalize=b,this.sk.buffer=a);this.mb.connect(this.sk);this.mb.connect(this.Ja);this.sk.connect(this.La)}function z(a,b,d,k,f){this.type="flanger";this.Sa=[a,b,d,k,f];this.mb=e();this.Ja=e();this.Ja.gain.value=1-f/2;this.La=e();this.La.gain.value=f/2;this.ns=e();this.ns.gain.value=k;this.Jf=h(a+b);this.Jf.delayTime.value=a;this.wd=F.createOscillator();this.wd.frequency.value=d;this.Ve=e();this.Ve.gain.value=b;this.mb.connect(this.Jf);this.mb.connect(this.Ja);this.Jf.connect(this.La);this.Jf.connect(this.ns);
this.ns.connect(this.Jf);this.wd.connect(this.Ve);this.Ve.connect(this.Jf.delayTime);c(this.wd)}function x(a,b,d,h,k,f){this.type="phaser";this.Sa=[a,b,d,h,k,f];this.mb=e();this.Ja=e();this.Ja.gain.value=1-f/2;this.La=e();this.La.gain.value=f/2;this.Ic=F.createBiquadFilter();this.Ic.type="number"===typeof this.Ic.type?7:"allpass";this.Ic.frequency.value=a;this.Ic.detune&&(this.Ic.detune.value=b);this.Ic.Q.value=d;this.wd=F.createOscillator();this.wd.frequency.value=k;this.Ve=e();this.Ve.gain.value=
h;this.mb.connect(this.Ic);this.mb.connect(this.Ja);this.Ic.connect(this.La);this.wd.connect(this.Ve);this.Ve.connect(this.Ic.frequency);c(this.wd)}function u(a){this.type="gain";this.Sa=[a];this.ob=e();this.ob.gain.value=a}function r(a,b){this.type="tremolo";this.Sa=[a,b];this.ob=e();this.ob.gain.value=1-b/2;this.wd=F.createOscillator();this.wd.frequency.value=a;this.Ve=e();this.Ve.gain.value=b/2;this.wd.connect(this.Ve);this.Ve.connect(this.ob.gain);c(this.wd)}function y(a,b){this.type="ringmod";
this.Sa=[a,b];this.mb=e();this.La=e();this.La.gain.value=b;this.Ja=e();this.Ja.gain.value=1-b;this.lq=e();this.lq.gain.value=0;this.wd=F.createOscillator();this.wd.frequency.value=a;this.wd.connect(this.lq.gain);c(this.wd);this.mb.connect(this.lq);this.mb.connect(this.Ja);this.lq.connect(this.La)}function D(a,b,c,d,h){this.type="distortion";this.Sa=[a,b,c,d,h];this.mb=e();this.Qt=e();this.Pt=e();this.wQ(c,Math.pow(10,d/20));this.La=e();this.La.gain.value=h;this.Ja=e();this.Ja.gain.value=1-h;this.Ou=
F.createWaveShaper();this.$r=new Float32Array(65536);this.KN(a,b);this.Ou.$r=this.$r;this.mb.connect(this.Qt);this.mb.connect(this.Ja);this.Qt.connect(this.Ou);this.Ou.connect(this.Pt);this.Pt.connect(this.La)}function w(a,b,c,d,e){this.type="compressor";this.Sa=[a,b,c,d,e];this.ob=F.createDynamicsCompressor();try{this.ob.threshold.value=a,this.ob.knee.value=b,this.ob.ratio.value=c,this.ob.attack.value=d,this.ob.release.value=e}catch(h){}}function C(a,b){this.type="analyser";this.Sa=[a,b];this.ob=
F.createAnalyser();this.ob.fftSize=a;this.ob.smoothingTimeConstant=b;this.HN=new Float32Array(this.ob.frequencyBinCount);this.UF=new Uint8Array(a);this.$p=0}function G(){this.zb=null;this.it=0}function A(a,b){this.src=a;this.cb=Q;this.kh=b;this.Ar=!1;var c=this;this.Bm=this.Pm=null;this.Qm=[];this.eu=0;this.iA=this.ks=this.$F=this.Lt=!1;1===Q&&b&&!jc&&(this.cb=0,this.Pm=e());this.Wh=this.nb=null;var d;switch(this.cb){case 0:this.nb=new Audio;this.nb.crossOrigin="anonymous";this.nb.addEventListener("canplaythrough",
function(){c.iA=!0});1===Q&&F.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.$F=!0,this.nb.addEventListener("canplay",function(){!c.Bm&&c.nb&&(c.Bm=F.createMediaElementSource(c.nb),c.Bm.connect(c.Pm))}));this.nb.autoplay=!1;this.nb.sS="auto";this.nb.src=a;break;case 1:O.Yo?O.aD(a,function(a){c.Wh=a;c.PC()},function(){c.ks=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.Wh=d.response;c.PC()},d.onerror=function(){c.ks=!0},d.send());
break;case 2:this.nb=!0;break;case 3:this.nb=!0}}function v(a,b){var c=this;this.tag=b;this.Zb=this.fh=!0;this.src=a.src;this.buffer=a;this.cb=Q;this.kh=a.kh;this.playbackRate=1;this.hm=!0;this.Te=this.uf=!1;this.Ee=0;this.$o=this.pm=this.oh=!1;this.volume=1;this.cz=function(a){if(!c.Te&&!c.uf){var b=this;b||(b=a.target);b===c.tr&&(c.hm=!0,c.Zb=!0,L=c.tag,O.trigger(Bc.prototype.n.Xq,J))}};this.tr=null;this.mm=1===ha&&!this.kh||2===ha;this.Dm=1;this.startTime=this.mm?O.td.wa:O.Wi.wa;this.Rc=this.bd=
null;this.rh=!1;this.Gd=null;this.bF=this.aF=this.$E=this.ZE=this.dF=this.cF=0;this.N=null;var h=!1;1!==this.cb||0!==this.buffer.cb||this.buffer.$F||(this.cb=0);switch(this.cb){case 0:this.kh?(this.N=a.nb,h=!a.Ar,a.Ar=!0):(this.N=new Audio,this.N.crossOrigin="anonymous",this.N.autoplay=!1,this.N.src=a.nb.src,h=!0);h&&this.N.addEventListener("ended",function(){L=c.tag;c.Zb=!0;O.trigger(Bc.prototype.n.Xq,J)});break;case 1:this.bd=e();this.bd.connect(d(b));1===this.buffer.cb?a.nb&&(this.N=F.createBufferSource(),
this.N.buffer=a.nb,this.N.connect(this.bd)):(this.N=this.buffer.nb,this.buffer.Pm.connect(this.bd),this.buffer.Ar||(this.buffer.Ar=!0,this.buffer.nb.addEventListener("ended",function(){L=c.tag;c.Zb=!0;O.trigger(Bc.prototype.n.Xq,J)})));break;case 2:this.N=new window.Media(P+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.hm=!0,c.Zb=!0,L=c.tag,O.trigger(Bc.prototype.n.Xq,J))});break;case 3:this.N=!0}}function S(a,b){var c=a.Fj()?1:0,d=b.Fj()?1:0;return c===d?0:c<d?1:-1}function W(a,
b){H(Ca);if(a.length){var c,d,e;c=0;for(d=I.length;c<d;c++)e=I[c],mb(a,e.tag)&&Ca.push(e);b&&Ca.sort(S)}else Y&&!Y.Hk()&&(H(Ca),Ca[0]=Y)}function V(a,b){ta.hasOwnProperty(a)?ta[a].push(b):ta[a]=[b];var c,d,e,h,k=F.destination;if(ta.hasOwnProperty(a)&&(e=ta[a],e.length))for(k=e[0].gf(),c=0,d=e.length;c<d;c++)h=e[c],c+1===d?h.Gf(F.destination):h.Gf(e[c+1].gf());W(a);c=0;for(d=Ca.length;c<d;c++)Ca[c].fQ(k);Bb&&Gc===a&&(Bb.disconnect(),Bb.connect(k))}function X(){}function N(){}function T(){}var ea=Bc.prototype;
ea.L=function(a){this.G=a;this.b=a.b};ea.L.prototype.I=function(){};var O=null,J=null,L="",P="",Q=0,F=null,M=[],I=[],Y=null,R=!1,ha=0,ia=!1,ja=1,Jb=0,Ib=0,Dc=!1,Ec=1,Fc=1,Dd=10,Gd=1E4,Hd=1,Bb=null,Gc="",Ed=!1,ic=[],jc=!1,Fd=!1;document.addEventListener("touchend",l,!0);document.addEventListener("click",l,!0);document.addEventListener("keydown",l,!0);var ta={},Ld="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");t.prototype.Gf=function(a){this.La.disconnect();this.La.connect(a);
this.Ja.disconnect();this.Ja.connect(a)};t.prototype.remove=function(){this.mb.disconnect();this.Ic.disconnect();this.La.disconnect();this.Ja.disconnect()};t.prototype.gf=function(){return this.mb};q.prototype.Gf=function(a){this.La.disconnect();this.La.connect(a);this.Ja.disconnect();this.Ja.connect(a)};q.prototype.remove=function(){this.mb.disconnect();this.Jp.disconnect();this.Jf.disconnect();this.as.disconnect();this.La.disconnect();this.Ja.disconnect()};q.prototype.gf=function(){return this.mb};
B.prototype.Gf=function(a){this.La.disconnect();this.La.connect(a);this.Ja.disconnect();this.Ja.connect(a)};B.prototype.remove=function(){this.mb.disconnect();this.sk.disconnect();this.La.disconnect();this.Ja.disconnect()};B.prototype.gf=function(){return this.mb};z.prototype.Gf=function(a){this.Ja.disconnect();this.Ja.connect(a);this.La.disconnect();this.La.connect(a)};z.prototype.remove=function(){this.mb.disconnect();this.Jf.disconnect();this.wd.disconnect();this.Ve.disconnect();this.Ja.disconnect();
this.La.disconnect();this.ns.disconnect()};z.prototype.gf=function(){return this.mb};x.prototype.Gf=function(a){this.Ja.disconnect();this.Ja.connect(a);this.La.disconnect();this.La.connect(a)};x.prototype.remove=function(){this.mb.disconnect();this.Ic.disconnect();this.wd.disconnect();this.Ve.disconnect();this.Ja.disconnect();this.La.disconnect()};x.prototype.gf=function(){return this.mb};u.prototype.Gf=function(a){this.ob.disconnect();this.ob.connect(a)};u.prototype.remove=function(){this.ob.disconnect()};
u.prototype.gf=function(){return this.ob};r.prototype.Gf=function(a){this.ob.disconnect();this.ob.connect(a)};r.prototype.remove=function(){this.wd.disconnect();this.Ve.disconnect();this.ob.disconnect()};r.prototype.gf=function(){return this.ob};y.prototype.Gf=function(a){this.La.disconnect();this.La.connect(a);this.Ja.disconnect();this.Ja.connect(a)};y.prototype.remove=function(){this.wd.disconnect();this.lq.disconnect();this.mb.disconnect();this.La.disconnect();this.Ja.disconnect()};y.prototype.gf=
function(){return this.mb};D.prototype.wQ=function(a,b){.01>a&&(a=.01);this.Qt.gain.value=a;this.Pt.gain.value=Math.pow(1/a,.6)*b};D.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};D.prototype.KN=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,h=0;32768>h;++h)e=h/32768,e=this.shape(e,c,d),this.$r[32768+h]=e,this.$r[32768-h-1]=-e};D.prototype.Gf=function(a){this.La.disconnect();this.La.connect(a);this.Ja.disconnect();
this.Ja.connect(a)};D.prototype.remove=function(){this.mb.disconnect();this.Qt.disconnect();this.Ou.disconnect();this.Pt.disconnect();this.La.disconnect();this.Ja.disconnect()};D.prototype.gf=function(){return this.mb};w.prototype.Gf=function(a){this.ob.disconnect();this.ob.connect(a)};w.prototype.remove=function(){this.ob.disconnect()};w.prototype.gf=function(){return this.ob};C.prototype.ra=function(){this.ob.getFloatFrequencyData(this.HN);this.ob.getByteTimeDomainData(this.UF);for(var b=this.ob.fftSize,
c=0,d=this.$p=0,e=0;c<b;c++)e=(this.UF[c]-128)/128,0>e&&(e=-e),this.$p<e&&(this.$p=e),d+=e*e;this.$p=a(this.$p);a(Math.sqrt(d/b))};C.prototype.Gf=function(a){this.ob.disconnect();this.ob.connect(a)};C.prototype.remove=function(){this.ob.disconnect()};C.prototype.gf=function(){return this.ob};G.prototype.nq=function(a){this.zb=a};G.prototype.Is=function(){return!!this.zb};G.prototype.ra=function(){};A.prototype.gQ=function(){var a,b,c,d;c=a=0;for(b=I.length;a<b;++a)d=I[a],I[c]=d,d.buffer===this?d.stop():
++c;I.length=c;this.Bm&&(this.Bm.disconnect(),this.Bm=null);this.Pm&&(this.Pm.disconnect(),this.Pm=null);this.Wh=this.nb=null};A.prototype.PC=function(){if(!this.nb&&this.Wh){var a=this;if(F.decodeAudioData)F.decodeAudioData(this.Wh,function(b){a.nb=b;a.Wh=null;var c,d,e;if(ka(a.Mt)||ia)ka(a.Tr)||(c=a.Tr.sk,c.normalize=a.PE,c.buffer=b);else if(a.Qm.length){c=0;for(d=a.Qm.length;c<d;c++){b=a.Qm[c];e=new v(a,b.dG);e.iu(!0);if("undefined"!==typeof b.RE&&(b.zb=O.Td(b.RE),!b.zb))continue;if(b.zb){var h=
Wa(b.zb.x,b.zb.y,-b.zb.F.hc(),Jb,Ib,!0),k=Wa(b.zb.x,b.zb.y,-b.zb.F.hc(),Jb,Ib,!1);e.Fz(h,k,La(b.zb.C-b.zb.F.hc()),b.Tx,b.Ty,b.Xy);e.nq(b.zb)}else e.Fz(b.x,b.y,b.BL,b.Tx,b.Ty,b.Xy);e.play(a.Ky,a.gA,a.eu);a.Lt&&e.pause();I.push(e)}H(a.Qm)}else e=new v(a,a.Mt||""),e.play(a.Ky,a.gA,a.eu),a.Lt&&e.pause(),I.push(e)},function(){a.ks=!0});else if(this.nb=F.createBuffer(this.Wh,!1),this.Wh=null,ka(this.Mt)||ia)ka(this.Tr)||(b=this.Tr.sk,b.normalize=this.PE,b.buffer=this.nb);else{var b=new v(this,this.Mt);
b.play(this.Ky,this.gA,this.eu);this.Lt&&b.pause();I.push(b)}}};A.prototype.XD=function(){switch(this.cb){case 0:var a=4<=this.nb.readyState;a&&(this.iA=!0);return a||this.iA;case 1:return!!this.Wh||!!this.nb;case 2:return!0;case 3:return!0}return!1};A.prototype.YD=function(){switch(this.cb){case 0:return this.XD();case 1:return!!this.nb;case 2:return!0;case 3:return!0}return!1};A.prototype.HD=function(){switch(this.cb){case 0:return!!this.nb.error;case 1:return this.ks}return!1};v.prototype.Hk=function(){switch(this.cb){case 0:return this.N.ended;
case 1:return 1===this.buffer.cb?!this.fh&&!this.Zb&&this.N.loop||this.Te?!1:this.hm:this.N.ended;case 2:return this.hm;case 3:!0}return!0};v.prototype.ZL=function(){return this.fh||this.Zb?!0:this.Hk()};v.prototype.iu=function(a){1===Q&&(!this.rh&&a?this.bd&&(this.Rc||(this.Rc=F.createPanner(),this.Rc.panningModel="number"===typeof this.Rc.panningModel?Ec:["equalpower","HRTF","soundfield"][Ec],this.Rc.distanceModel="number"===typeof this.Rc.distanceModel?Fc:["linear","inverse","exponential"][Fc],
this.Rc.refDistance=Dd,this.Rc.maxDistance=Gd,this.Rc.rolloffFactor=Hd),this.bd.disconnect(),this.bd.connect(this.Rc),this.Rc.connect(d(this.tag)),this.rh=!0):this.rh&&!a&&this.bd&&(this.Rc.disconnect(),this.bd.disconnect(),this.bd.connect(d(this.tag)),this.rh=!1))};v.prototype.Fz=function(a,b,c,d,e,h){this.rh&&1===Q&&(this.Rc.setPosition(a,b,0),this.Rc.setOrientation(Math.cos(K(c)),Math.sin(K(c)),0),this.Rc.coneInnerAngle=d,this.Rc.coneOuterAngle=e,this.Rc.coneOuterGain=h,this.cF=a,this.dF=b,this.ZE=
c,this.$E=d,this.aF=e,this.bF=h)};v.prototype.nq=function(a){this.rh&&1===Q&&(this.Gd||(this.Gd=new G),this.Gd.nq(a))};v.prototype.ra=function(a){if(this.rh&&1===Q&&this.Gd&&this.Gd.Is()&&this.Fj()){this.Gd.ra(a);a=this.Gd.zb;var b=Wa(a.x,a.y,-a.F.hc(),Jb,Ib,!0),c=Wa(a.x,a.y,-a.F.hc(),Jb,Ib,!1);this.Rc.setPosition(b,c,0);b=0;"undefined"!==typeof this.Gd.zb.C&&(b=a.C-a.F.hc(),this.Rc.setOrientation(Math.cos(b),Math.sin(b),0))}};v.prototype.play=function(a,b,d,e){var h=this.N;this.oh=a;this.volume=
b;d=d||0;e=e||0;switch(this.cb){case 0:1!==h.playbackRate&&(h.playbackRate=1);h.volume!==b*ja&&(h.volume=b*ja);h.loop!==a&&(h.loop=a);h.muted&&(h.muted=!1);if(h.currentTime!==d)try{h.currentTime=d}catch(f){}m(this);break;case 1:this.muted=!1;this.Dm=1;if(1===this.buffer.cb)this.bd.gain.value=b*ja,this.fh||(this.N=F.createBufferSource(),this.N.buffer=this.buffer.nb,this.N.connect(this.bd)),this.N.onended=this.cz,this.tr=this.N,this.N.loop=a,this.hm=!1,0===d?c(this.N,e):k(this.N,d,this.Cj(),e);else{1!==
h.playbackRate&&(h.playbackRate=1);h.loop!==a&&(h.loop=a);h.volume=b*ja;if(h.currentTime!==d)try{h.currentTime=d}catch(g){}m(this)}break;case 2:(!this.fh&&this.Zb||0!==d)&&h.seekTo(d);h.play();this.hm=!1;break;case 3:O.od?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.mm?O.td.wa:O.Wi.wa)-d;this.Te=this.Zb=this.fh=!1};v.prototype.stop=function(){switch(this.cb){case 0:this.N.paused||this.N.pause();break;case 1:1===this.buffer.cb?
p(this.N):this.N.paused||this.N.pause();break;case 2:this.N.stop();break;case 3:O.od&&AppMobi.context.stopSound(this.src)}this.Zb=!0;this.Te=!1};v.prototype.pause=function(){if(!(this.fh||this.Zb||this.Hk()||this.Te)){switch(this.cb){case 0:this.N.paused||this.N.pause();break;case 1:1===this.buffer.cb?(this.Ee=this.Cx(!0),this.oh&&(this.Ee=this.Ee%this.Cj()),this.Te=!0,p(this.N)):this.N.paused||this.N.pause();break;case 2:this.N.pause();break;case 3:O.od&&AppMobi.context.stopSound(this.src)}this.Te=
!0}};v.prototype.vF=function(){if(!(this.fh||this.Zb||this.Hk())&&this.Te){switch(this.cb){case 0:m(this);break;case 1:1===this.buffer.cb?(this.N=F.createBufferSource(),this.N.buffer=this.buffer.nb,this.N.connect(this.bd),this.N.onended=this.cz,this.tr=this.N,this.N.loop=this.oh,this.bd.gain.value=ja*this.volume*this.Dm,this.Ju(),this.startTime=(this.mm?O.td.wa:O.Wi.wa)-this.Ee/(this.playbackRate||.001),k(this.N,this.Ee,this.Cj())):m(this);break;case 2:this.N.play();break;case 3:O.od&&AppMobi.context.resumeSound(this.src)}this.Te=
!1}};v.prototype.seek=function(a){if(!(this.fh||this.Zb||this.Hk()))switch(this.cb){case 0:try{this.N.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.cb)this.Te?this.Ee=a:(this.pause(),this.Ee=a,this.vF());else try{this.N.currentTime=a}catch(c){}break;case 3:O.od&&AppMobi.context.seekSound(this.src,a)}};v.prototype.fQ=function(a){1===this.cb&&(this.rh?(this.Rc.disconnect(),this.Rc.connect(a)):(this.bd.disconnect(),this.bd.connect(a)))};v.prototype.Cj=function(){var a=0;switch(this.cb){case 0:"undefined"!==
typeof this.N.duration&&(a=this.N.duration);break;case 1:a=this.buffer.nb.duration;break;case 2:a=this.N.getDuration();break;case 3:O.od&&(a=AppMobi.context.getDurationSound(this.src))}return a};v.prototype.Cx=function(a){var b=this.Cj(),c=0;switch(this.cb){case 0:"undefined"!==typeof this.N.currentTime&&(c=this.N.currentTime);break;case 1:if(1===this.buffer.cb){if(this.Te)return this.Ee;c=(this.mm?O.td.wa:O.Wi.wa)-this.startTime}else"undefined"!==typeof this.N.currentTime&&(c=this.N.currentTime);
break;case 3:O.od&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.oh&&c>b&&(c=b);return c};v.prototype.Fj=function(){return!this.Te&&!this.fh&&!this.Zb&&!this.Hk()};v.prototype.DQ=function(){return!this.fh&&!this.Zb&&!this.Hk()};v.prototype.UQ=function(){var a=this.volume*ja;isFinite(a)||(a=0);switch(this.cb){case 0:"undefined"!==typeof this.N.volume&&this.N.volume!==a&&(this.N.volume=a);break;case 1:1===this.buffer.cb?this.bd.gain.value=a*this.Dm:"undefined"!==
typeof this.N.volume&&this.N.volume!==a&&(this.N.volume=a)}};v.prototype.gs=function(a){switch(this.cb){case 0:this.N.muted!==!!a&&(this.N.muted=!!a);break;case 1:1===this.buffer.cb?(this.Dm=a?0:1,this.bd.gain.value=ja*this.volume*this.Dm):this.N.muted!==!!a&&(this.N.muted=!!a)}};v.prototype.xQ=function(){this.pm=!0;this.gs(this.pm||this.$o)};v.prototype.KF=function(a){this.$o=!!a;this.gs(this.pm||this.$o)};v.prototype.Ju=function(){var a=this.playbackRate;this.mm&&(a*=O.Yc);switch(this.cb){case 0:this.N.playbackRate!==
a&&(this.N.playbackRate=a);break;case 1:1===this.buffer.cb?this.N.playbackRate.value!==a&&(this.N.playbackRate.value=a):this.N.playbackRate!==a&&(this.N.playbackRate=a)}};v.prototype.AQ=function(a){switch(this.cb){case 0:a?this.Fj()?(this.uf=!0,this.N.pause()):this.uf=!1:this.uf&&(this.N.play(),this.uf=!1);break;case 1:a?this.Fj()?(this.uf=!0,1===this.buffer.cb?(this.Ee=this.Cx(!0),this.oh&&(this.Ee=this.Ee%this.Cj()),p(this.N)):this.N.pause()):this.uf=!1:this.uf&&(1===this.buffer.cb?(this.N=F.createBufferSource(),
this.N.buffer=this.buffer.nb,this.N.connect(this.bd),this.N.onended=this.cz,this.tr=this.N,this.N.loop=this.oh,this.bd.gain.value=ja*this.volume*this.Dm,this.Ju(),this.startTime=(this.mm?O.td.wa:O.Wi.wa)-this.Ee/(this.playbackRate||.001),k(this.N,this.Ee,this.Cj())):this.N.play(),this.uf=!1);break;case 2:a?this.Fj()?(this.N.pause(),this.uf=!0):this.uf=!1:this.uf&&(this.uf=!1,this.N.play())}};ea.J=function(a){this.type=a;O=this.b=a.b;J=this;this.Ue=null;this.xp=-600;this.b.Yo&&(jc=!0);!(this.b.Qk||
this.b.Ro&&(this.b.ey||this.b.Ps))||this.b.So||this.b.Ca||this.b.Os||jc||(Ed=!0);F=null;"undefined"!==typeof AudioContext?(Q=1,F=new AudioContext):"undefined"!==typeof webkitAudioContext&&(Q=1,F=new webkitAudioContext);this.b.Qk&&F&&(F.close&&F.close(),"undefined"!==typeof AudioContext?F=new AudioContext:"undefined"!==typeof webkitAudioContext&&(F=new webkitAudioContext));1!==Q&&(this.b.we&&"undefined"!==typeof window.Media?Q=2:this.b.VD&&(Q=3));2===Q&&(P=location.href,a=P.lastIndexOf("/"),-1<a&&
(P=P.substr(0,a+1)),P=P.replace("file://",""));if(this.b.VO&&this.b.ZO&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),this.b.ne(this);else{if(this.b.od)R=this.b.Ro;else try{R=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){R=!1}this.b.Ig(this)}};var Sa=ea.J.prototype;Sa.I=function(){this.b.Ll=this;ha=this.B[0];this.Ki=this.B[1];this.PP=0!==this.B[2];this.xt=0;Ec=this.B[3];
Fc=this.B[4];this.xp=-this.B[5];Dd=this.B[6];Gd=this.B[7];Hd=this.B[8];this.Ue=new G;var a=this.b.Ba||this.b.width,b=this.b.Aa||this.b.height;1===Q&&(F.listener.setPosition(a/2,b/2,this.xp),F.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Bb&&Bb.disconnect();Gc=b.toLowerCase();Bb=F.createMediaStreamSource(a);Bb.connect(d(Gc))});this.b.qC(function(a){J.GP(a)});var c=this;this.b.ur(function(a){c.Rp(a)})};Sa.Rp=function(a){var b,c,d;b=0;for(c=I.length;b<c;b++)d=I[b],d.Gd&&
d.Gd.zb===a&&(d.Gd.zb=null,d.rh&&d.Fj()&&d.oh&&d.stop());this.Ue.zb===a&&(this.Ue.zb=null)};Sa.P=function(){var a={silent:ia,masterVolume:ja,listenerZ:this.xp,listenerUid:this.Ue.Is()?this.Ue.zb.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,h,k,f;c=0;for(d=I.length;c<d;c++)e=I[c],!e.DQ()||3===this.Ki||e.kh&&1===this.Ki||!e.kh&&2===this.Ki||(h=e.Cx(),e.oh&&(h=h%e.Cj()),h={tag:e.tag,buffersrc:e.buffer.src,is_music:e.kh,playbackTime:h,volume:e.volume,looping:e.oh,muted:e.pm,playbackRate:e.playbackRate,
paused:e.Te,resume_position:e.Ee},e.rh&&(h.pan={},f=h.pan,e.Gd&&e.Gd.Is()?f.objUid=e.Gd.zb.uid:(f.x=e.cF,f.y=e.dF,f.a=e.ZE),f.ia=e.$E,f.oa=e.aF,f.og=e.bF),b.push(h));b=a.effects;for(k in ta)if(ta.hasOwnProperty(k)){e=[];c=0;for(d=ta[k].length;c<d;c++)e.push({type:ta[k][c].type,params:ta[k][c].Sa});b[k]=e}return a};var Vb=[];Sa.ca=function(a){var b=a.silent;ja=a.masterVolume;this.xp=a.listenerZ;this.Ue.nq(null);var c=a.listenerUid;-1!==c&&(this.Ue.it=c,Vb.push(this.Ue));var c=a.playing,d,e,h,k,f,g,
l,p,m,v,S;if(3!==this.Ki)for(d=0,e=I.length;d<e;d++)m=I[d],m.kh&&1===this.Ki||(m.kh||2!==this.Ki)&&m.stop();for(f in ta)if(ta.hasOwnProperty(f))for(d=0,e=ta[f].length;d<e;d++)ta[f][d].remove();$a(ta);for(f in a.effects)if(a.effects.hasOwnProperty(f))for(g=a.effects[f],d=0,e=g.length;d<e;d++)switch(h=g[d].type,v=g[d].params,h){case "filter":V(f,new t(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":V(f,new q(v[0],v[1],v[2]));break;case "convolve":h=v[2];m=this.zs(h,!1);m.nb?h=new B(m.nb,v[0],v[1],
h):(h=new B(null,v[0],v[1],h),m.PE=v[0],m.Tr=h);V(f,h);break;case "flanger":V(f,new z(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":V(f,new x(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":V(f,new u(v[0]));break;case "tremolo":V(f,new r(v[0],v[1]));break;case "ringmod":V(f,new y(v[0],v[1]));break;case "distortion":V(f,new D(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":V(f,new w(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":V(f,new C(v[0],v[1]))}d=0;for(e=c.length;d<e;d++)3===this.Ki||
(a=c[d],h=a.buffersrc,k=a.is_music,f=a.tag,g=a.playbackTime,l=a.looping,p=a.volume,S=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,k&&1===this.Ki)||!k&&2===this.Ki||((m=this.tx(h,f,k,l,p))?(m.Ee=a.resume_position,m.iu(!!v),m.play(l,p,g),m.Ju(),m.UQ(),m.gs(m.pm||m.$o),a.paused&&m.pause(),a.muted&&m.xQ(),m.gs(m.pm||m.$o),v&&(-1!==S?(m.Gd=m.Gd||new G,m.Gd.it=S,Vb.push(m.Gd)):m.Fz(v.x,v.y,v.a,v.ia,v.oa,v.og))):(m=this.zs(h,k),m.eu=g,m.Lt=a.paused,v&&(-1!==S?m.Qm.push({RE:S,Tx:v.ia,Ty:v.oa,Xy:v.og,
dG:f}):m.Qm.push({x:v.x,y:v.y,BL:v.a,Tx:v.ia,Ty:v.oa,Xy:v.og,dG:f}))));if(b&&!ia){d=0;for(e=I.length;d<e;d++)I[d].KF(!0);ia=!0}else if(!b&&ia){d=0;for(e=I.length;d<e;d++)I[d].KF(!1);ia=!1}};Sa.Kb=function(){var a,b,c,d;a=0;for(b=Vb.length;a<b;a++)c=Vb[a],d=this.b.Td(c.it),c.nq(d),c.it=-1,d&&(Jb=d.x,Ib=d.y);H(Vb)};Sa.GP=function(a){if(!this.PP){!a&&F&&F.resume&&(F.resume(),Dc=!1);var b,c;b=0;for(c=I.length;b<c;b++)I[b].AQ(a);a&&F&&F.suspend&&(F.suspend(),Dc=!0)}};Sa.ra=function(){var a=this.b.uk,b,
c,d;b=0;for(c=I.length;b<c;b++)d=I[b],d.ra(a),0!==ha&&d.Ju();var e,h;for(e in ta)if(ta.hasOwnProperty(e))for(d=ta[e],b=0,c=d.length;b<c;b++)h=d[b],h.ra&&h.ra();1===Q&&this.Ue.Is()&&(this.Ue.ra(a),Jb=this.Ue.zb.x,Ib=this.Ue.zb.y,F.listener.setPosition(this.Ue.zb.x,this.Ue.zb.y,this.xp))};var Wb=[];Sa.zQ=function(a){var b,c,d,e,h,k=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(h=4<e.length&&".ogg"===e.substr(e.length-4))&&R||!h&&!R)Wb.push({filename:e,size:d,zb:null}),k+=d;return k};Sa.GQ=
function(){var a,b,c,d;a=0;for(b=Wb.length;a<b;++a)c=Wb[a],d=this.b.os+c.filename,c.zb=this.zs(d,!1)};Sa.gO=function(){var a=0,b,c,d;b=0;for(c=Wb.length;b<c;++b)d=Wb[b],d.zb.YD()||d.zb.HD()||this.b.Ca||this.b.Ps?a+=d.size:d.zb.XD()&&(a+=Math.floor(d.size/2));return a};Sa.hQ=function(){var a,b,c,d;c=a=0;for(b=M.length;a<b;++a)d=M[a],M[c]=d,d.kh?d.gQ():++c;M.length=c};Sa.zs=function(a,b){var c,d,e,h=null;c=0;for(d=M.length;c<d;c++)if(e=M[c],e.src===a){h=e;break}h||(jc&&b&&this.hQ(),h=new A(a,b),M.push(h));
return h};Sa.tx=function(a,b,c,d,e){var h,k,f;h=0;for(k=I.length;h<k;h++)if(f=I[h],f.src===a&&(f.ZL()||c))return f.tag=b,f;a=this.zs(a,c);if(!a.nb)return"<preload>"!==b&&(a.Mt=b,a.Ky=d,a.gA=e),null;f=new v(a,b);I.push(f);return f};var Ca=[];X.prototype.Xq=function(a){return mb(L,a)};X.prototype.CJ=function(){var a,b;a=0;for(b=M.length;a<b;a++)if(!M[a].YD()&&!M[a].HD())return!1;return!0};X.prototype.fI=function(a){W(a);var b;a=0;for(b=Ca.length;a<b;a++)if(Ca[a].Fj())return!0;return!1};ea.n=new X;N.prototype.Play=
function(a,c,d,e){!ia&&(d=b(d),Y=this.tx(this.b.os+a[0]+(R?".ogg":".m4a"),e,a[1],0!==c,d))&&(Y.iu(!1),Y.play(0!==c,d,0,this.xt),this.xt=0)};N.prototype.AJ=function(a,c,d,e,h){!ia&&(e=b(e),Y=this.tx(this.b.os+c.toLowerCase()+(R?".ogg":".m4a"),h,1===a,0!==d,e))&&(Y.iu(!1),Y.play(0!==d,e,0,this.xt),this.xt=0)};N.prototype.fj=function(a){W(a);var b;a=0;for(b=Ca.length;a<b;a++)Ca[a].stop()};N.prototype.RK=function(){var a,b;a=0;for(b=I.length;a<b;a++)I[a].stop()};N.prototype.nK=function(a,b){W(a);var c,
d;c=0;for(d=Ca.length;c<d;c++)0===b?Ca[c].pause():Ca[c].vF()};ea.q=new N;T.prototype.av=function(a,b){W(b,!0);Ca.length?a.K(Ca[0].Cj()):a.K(0)};ea.D=new T})();function Cc(g){this.b=g}
(function(){function g(){a&&d&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(a){e.FP(a)})}function m(){}function l(){}var f=Cc.prototype;f.L=function(a){this.G=a;this.b=a.b};var b=f.L.prototype;b.I=function(){};var a=!1,d=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.Va){var b=document.createElement("script");b.onload=function(){a=!0;g()};b.src="offlineClient.js";document.head.appendChild(b)}});var e=null;b.VE=function(){d=
!0;g()};f.J=function(a){this.type=a;this.b=a.b};b=f.J.prototype;b.I=function(){var a=this;window.addEventListener("resize",function(){a.b.trigger(Cc.prototype.n.rB,a)});e=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(Cc.prototype.n.dJ,a)}),window.addEventListener("offline",function(){a.b.trigger(Cc.prototype.n.bJ,a)}));"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){a.b.Yk=1;a.b.trigger(Cc.prototype.n.$q,
a)}),window.applicationCache.addEventListener("progress",function(b){a.b.Yk=b.loaded/b.total||0}));this.b.od||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(Cc.prototype.n.$q,a)}),document.addEventListener("backbutton",function(){a.b.trigger(Cc.prototype.n.Vq,a)}),document.addEventListener("menubutton",function(){a.b.trigger(Cc.prototype.n.nB,a)}),document.addEventListener("searchbutton",function(){a.b.trigger(Cc.prototype.n.iJ,a)}),document.addEventListener("tizenhwkey",
function(b){var d;switch(b.keyName){case "back":d=a.b.trigger(Cc.prototype.n.Vq,a);!d&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(d=a.b.trigger(Cc.prototype.n.nB,a))||b.preventDefault()}}));this.b.Ts&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){a.b.trigger(Cc.prototype.n.Vq,a)&&(b.handled=!0)}):this.b.qy&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(Cc.prototype.n.Vq,
a)});this.b.qC(function(b){b?a.b.trigger(Cc.prototype.n.eJ,a):a.b.trigger(Cc.prototype.n.fJ,a)})};b.FP=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(Cc.prototype.n.qJ,this):"update-ready"===a||"update-pending"===a?this.b.trigger(Cc.prototype.n.$q,this):"offline-ready"===a&&this.b.trigger(Cc.prototype.n.cJ,this)};m.prototype.dJ=function(){return!0};m.prototype.bJ=function(){return!0};m.prototype.$q=function(){return!0};m.prototype.fJ=function(){return!0};m.prototype.eJ=function(){return!0};
m.prototype.rB=function(){return!0};m.prototype.Vq=function(){return!0};m.prototype.nB=function(){return!0};m.prototype.iJ=function(){return!0};m.prototype.dI=function(a){return(window.innerWidth<=window.innerHeight?0:1)===a};m.prototype.qJ=function(){return!0};m.prototype.$q=function(){return!0};m.prototype.cJ=function(){return!0};f.n=new m;l.prototype.SH=function(a,b,d){var e="data:"+b+","+encodeURIComponent(a);a=document.createElement("a");"undefined"===typeof a.download?window.open(e):(b=document.getElementsByTagName("body")[0],
a.textContent=d,a.href=e,a.download=d,b.appendChild(a),d=new MouseEvent("click"),a.dispatchEvent(d),b.removeChild(a))};l.prototype.hH=function(a,b){"undefined"!==typeof console&&(0===a&&console.log&&console.log(b.toString()),1===a&&console.warn&&console.warn(b.toString()),2===a&&console.error&&console.error(b.toString()))};f.q=new l;f.D=new function(){}})();function Hc(g){this.b=g}
(function(){function g(){}function m(){}var l=Hc.prototype;l.L=function(b){this.G=b;this.b=b.b};l.L.prototype.I=function(){};l.J=function(b){this.type=b;this.b=b.b};var f=l.J.prototype;f.I=function(){this.b.Ca?fa("[Construct 2] Button plugin not supported on this platform - the object will not be created"):(this.jm=1===this.B[0],this.jf=document.createElement("input"),this.O=this.jm?document.createElement("label"):this.jf,this.fp=null,this.jf.type=this.jm?"checkbox":"button",this.jf.id=this.B[6],
jQuery(this.O).appendTo(this.b.Nl?this.b.Nl:"body"),this.jm?(jQuery(this.jf).appendTo(this.O),this.fp=document.createTextNode(this.B[1]),jQuery(this.O).append(this.fp),this.jf.checked=0!==this.B[7],jQuery(this.O).css("font-family","sans-serif"),jQuery(this.O).css("display","inline-block"),jQuery(this.O).css("color","black")):this.jf.value=this.B[1],this.O.title=this.B[2],this.jf.disabled=0===this.B[4],this.Aw=0!==this.B[5],this.xk=!1,0===this.B[3]&&(jQuery(this.O).hide(),this.visible=!1,this.xk=!0),
this.jf.onclick=function(b){return function(a){a.stopPropagation();b.b.yb=!0;b.b.trigger(Hc.prototype.n.Wq,b);b.b.yb=!1}}(this),this.O.addEventListener("touchstart",function(b){b.stopPropagation()},!1),this.O.addEventListener("touchmove",function(b){b.stopPropagation()},!1),this.O.addEventListener("touchend",function(b){b.stopPropagation()},!1),jQuery(this.O).mousedown(function(b){b.stopPropagation()}),jQuery(this.O).mouseup(function(b){b.stopPropagation()}),jQuery(this.O).keydown(function(b){b.stopPropagation()}),
jQuery(this.O).keyup(function(b){b.stopPropagation()}),this.op=this.qp=this.gp=this.mp=this.np=this.jp=0,this.Eq(!0),this.b.Ig(this))};f.P=function(){var b={tooltip:this.O.title,disabled:!!this.jf.disabled};this.jm?(b.checked=!!this.jf.checked,b.text=this.fp.nodeValue):b.text=this.O.value;return b};f.ca=function(b){this.O.title=b.tooltip;this.jf.disabled=b.disabled;this.jm?(this.jf.checked=b.checked,this.fp.nodeValue=b.text):this.O.value=b.text};f.Pb=function(){this.b.Ca||(jQuery(this.O).remove(),
this.O=null)};f.ra=function(){this.Eq()};f.Eq=function(b){if(!this.b.Ca){var a=this.F.Oa(this.x,this.y,!0),d=this.F.Oa(this.x,this.y,!1),e=this.F.Oa(this.x+this.width,this.y+this.height,!0),h=this.F.Oa(this.x+this.width,this.y+this.height,!1),c=this.b.width/this.b.devicePixelRatio,k=this.b.height/this.b.devicePixelRatio;!this.visible||!this.F.visible||0>=e||0>=h||a>=c||d>=k?(this.xk||jQuery(this.O).hide(),this.xk=!0):(1>a&&(a=1),1>d&&(d=1),e>=c&&(e=c-1),h>=k&&(h=k-1),c=window.innerWidth,k=window.innerHeight,
b||this.jp!==a||this.np!==d||this.mp!==e||this.gp!==h||this.qp!==c||this.op!==k?(this.jp=a,this.np=d,this.mp=e,this.gp=h,this.qp=c,this.op=k,this.xk&&(jQuery(this.O).show(),this.xk=!1),b=Math.round(a)+jQuery(this.b.canvas).offset().left,c=Math.round(d)+jQuery(this.b.canvas).offset().top,jQuery(this.O).css("position","absolute"),jQuery(this.O).offset({left:b,top:c}),jQuery(this.O).width(Math.round(e-a)),jQuery(this.O).height(Math.round(h-d)),this.Aw&&jQuery(this.O).css("font-size",this.F.Jc(!0)/this.b.devicePixelRatio-
.2+"em")):this.xk&&(jQuery(this.O).show(),this.xk=!1))}};f.gc=function(){};f.Tb=function(){};g.prototype.Wq=function(){return!0};l.n=new g;m.prototype.qe=function(b){this.b.Ca||(this.jm?this.fp.nodeValue=b:this.O.value=b)};m.prototype.El=function(b){this.b.Ca||(this.visible=0!==b)};m.prototype.bg=function(b){this.b.Ca||(this.jf.disabled=0===b)};l.q=new m;l.D=new function(){}})();function Ic(g){this.b=g}
(function(){function g(){}function m(){}function l(){}var f=Ic.prototype;f.L=function(a){this.G=a;this.b=a.b};f.L.prototype.I=function(){};f.J=function(a){this.type=a;this.b=a.b};var b=f.J.prototype;b.I=function(){this.Bd={};this.Ql=""};b.P=function(){return this.Bd};b.ca=function(a){this.Bd=a;for(var b in this.Bd);};g.prototype.xA=function(a,b,e){return hc(this.Bd[a],b,e)};g.prototype.BH=function(){var a=this.b.wb().Cb,b;for(b in this.Bd)this.Bd.hasOwnProperty(b)&&(this.Ql=b,this.b.ge(a.qa),a.Yd(),
this.b.yd(a.qa));this.Ql="";return!1};g.prototype.ZG=function(a,b){return hc(this.Bd[this.Ql],a,b)};f.n=new g;m.prototype.FG=function(a,b){this.Bd[a]=b};m.prototype.hK=function(a,b){this.Bd.hasOwnProperty(a)&&(this.Bd[a]=b)};m.prototype.Zi=function(){$a(this.Bd)};m.prototype.nv=function(a){var b;try{b=JSON.parse(a)}catch(e){return}if(b.c2dictionary){this.Bd=b.data;for(var h in this.Bd);}};f.q=new m;l.prototype.gv=function(a,b){this.Bd.hasOwnProperty(b)?a.ie(this.Bd[b]):a.R(0)};l.prototype.kH=function(a){a.Fa(this.Ql)};
l.prototype.lH=function(a){this.Bd.hasOwnProperty(this.Ql)?a.ie(this.Bd[this.Ql]):a.R(0)};l.prototype.xn=function(a){a.Fa(JSON.stringify({c2dictionary:!0,data:this.Bd}))};f.D=new l})();function xc(g){this.b=g}
(function(){function g(){this.name="";this.Fg=0;this.Sa=[]}function m(){h++;h===e.length&&e.push(new g);return e[h]}function l(){return 0>h?null:e[h]}function f(){}function b(){}function a(){}var d=xc.prototype;d.L=function(a){this.G=a;this.b=a.b};d.L.prototype.I=function(){};d.J=function(a){this.type=a;this.b=a.b};var e=[],h=-1;d.J.prototype.I=function(){var a=this;window.c2_callFunction=function(b,d){var e,f,g,l=m();l.name=b.toLowerCase();l.Fg=0;if(d)for(l.Sa.length=d.length,e=0,f=d.length;e<f;++e)g=
d[e],l.Sa[e]="number"===typeof g||"string"===typeof g?g:"boolean"===typeof g?g?1:0:0;else H(l.Sa);a.b.trigger(xc.prototype.n.bj,a,l.name);h--;return l.Fg}};f.prototype.bj=function(a){var b=l();return b?mb(a,b.name):!1};f.prototype.$u=function(a,b,d){var e=l();if(!e)return!1;a=sa(a);return 0>a||a>=e.Sa.length?!1:hc(e.Sa[a],b,d)};d.n=new f;b.prototype.CallFunction=function(a,b){var d=m();d.name=a.toLowerCase();d.Fg=0;Ga(d.Sa,b);this.b.trigger(xc.prototype.n.bj,this,d.name);h--};b.prototype.QB=function(a){var b=
l();b&&(b.Fg=a)};b.prototype.vA=function(){};d.q=new b;a.prototype.zB=function(a){var b=l();b?a.R(b.Sa.length):a.R(0)};a.prototype.Cv=function(a,b){b=sa(b);var d=l();d?0<=b&&b<d.Sa.length?a.ie(d.Sa[b]):a.R(0):a.R(0)};a.prototype.Zu=function(a,b){var d=m();d.name=b.toLowerCase();d.Fg=0;H(d.Sa);var e,f;e=2;for(f=arguments.length;e<f;e++)d.Sa.push(arguments[e]);this.b.trigger(xc.prototype.n.bj,this,d.name);h--;a.ie(d.Fg)};d.D=new a})();function Jc(g){this.b=g}
(function(){function g(){}var m=Jc.prototype;m.L=function(f){this.G=f;this.b=f.b};m.L.prototype.I=function(){};m.J=function(f){this.type=f;this.b=f.b};var l=m.J.prototype;l.I=function(){this.lM=JSON.stringify(this.ic)};l.P=function(){return{v:JSON.stringify(this.ic)}};l.ca=function(f){this.ic=JSON.parse(f.v)};m.n=new function(){};g.prototype.KJ=function(){this.ic=JSON.parse(this.lM)};m.q=new g;m.D=new function(){}})();function Kc(g){this.b=g}
(function(){function g(){}var m=Kc.prototype;m.L=function(b){this.G=b;this.b=b.b};m.L.prototype.I=function(){};m.J=function(b){this.type=b;this.b=b.b;this.vm=Array(256);this.Gq=Array(256);this.Si=0};var l=m.J.prototype;l.I=function(){var b=this;this.b.Ca||(jQuery(document).keydown(function(a){b.az(a)}),jQuery(document).keyup(function(a){b.bz(a)}))};var f=[32,33,34,35,36,37,38,39,40,44];l.az=function(b){var a=!1;window!=window.top&&-1<f.indexOf(b.which)&&(b.preventDefault(),a=!0,b.stopPropagation());
if(this.vm[b.which])this.Gq[b.which]&&!a&&b.preventDefault();else{this.vm[b.which]=!0;this.Si=b.which;this.b.yb=!0;this.b.trigger(Kc.prototype.n.BI,this);var d=this.b.trigger(Kc.prototype.n.hB,this),e=this.b.trigger(Kc.prototype.n.YI,this);this.b.yb=!1;if(d||e)this.Gq[b.which]=!0,a||b.preventDefault()}};l.bz=function(b){this.vm[b.which]=!1;this.Si=b.which;this.b.yb=!0;this.b.trigger(Kc.prototype.n.ZA,this);var a=this.b.trigger(Kc.prototype.n.jB,this),d=this.b.trigger(Kc.prototype.n.iB,this);this.b.yb=
!1;if(a||d||this.Gq[b.which])this.Gq[b.which]=!0,b.preventDefault()};l.Oj=function(){var b;for(b=0;256>b;++b)if(this.vm[b]){this.vm[b]=!1;this.Si=b;this.b.trigger(Kc.prototype.n.ZA,this);var a=this.b.trigger(Kc.prototype.n.jB,this),d=this.b.trigger(Kc.prototype.n.iB,this);if(a||d)this.Gq[b]=!0}};l.P=function(){return{triggerKey:this.Si}};l.ca=function(b){this.Si=b.triggerKey};g.prototype.ZH=function(b){return this.vm[b]};g.prototype.hB=function(b){return b===this.Si};g.prototype.BI=function(){return!0};
g.prototype.ZA=function(){return!0};g.prototype.jB=function(b){return b===this.Si};g.prototype.YI=function(b){return b===this.Si};g.prototype.iB=function(b){return b===this.Si};m.n=new g;m.q=new function(){};m.D=new function(){}})();function Lc(g){this.b=g}
(function(){function g(){}function m(){}function l(){}var f=Lc.prototype;f.L=function(a){this.G=a;this.b=a.b};f.L.prototype.I=function(){};f.J=function(a){this.type=a;this.b=a.b};var b=f.J.prototype;b.I=function(){if(this.b.Ca)fa("[Construct 2] List plugin not supported on this platform - the object will not be created");else{this.O=document.createElement("select");this.O.id=this.B[7];jQuery(this.O).appendTo(this.b.Nl?this.b.Nl:"body");this.O.title=this.B[1];this.O.disabled=0===this.B[3];0===this.B[4]&&
(this.O.size=2);this.O.multiple=0!==this.B[5];this.Aw=0!==this.B[6];0===this.B[2]&&(jQuery(this.O).hide(),this.visible=!1);if(this.B[0]){var a=this.B[0].split(";"),b,e,h;b=0;for(e=a.length;b<e;b++)h=document.createElement("option"),h.text=a[b],this.O.add(h)}var c=this;this.O.onchange=function(){c.b.trigger(Lc.prototype.n.jJ,c)};this.O.onclick=function(a){a.stopPropagation();c.b.yb=!0;c.b.trigger(Lc.prototype.n.Wq,c);c.b.yb=!1};this.O.ondblclick=function(a){a.stopPropagation();c.b.yb=!0;c.b.trigger(Lc.prototype.n.LI,
c);c.b.yb=!1};this.O.addEventListener("touchstart",function(a){a.stopPropagation()},!1);this.O.addEventListener("touchmove",function(a){a.stopPropagation()},!1);this.O.addEventListener("touchend",function(a){a.stopPropagation()},!1);jQuery(this.O).mousedown(function(a){a.stopPropagation()});jQuery(this.O).mouseup(function(a){a.stopPropagation()});this.op=this.qp=this.gp=this.mp=this.np=this.jp=0;this.nm=!0;this.Eq(!0);this.b.Ig(this)}};b.P=function(){var a={tooltip:this.O.title,disabled:!!this.O.disabled,
items:[],sel:[]},b,e,h=a.items;b=0;for(e=this.O.length;b<e;b++)h.push(this.O.options[b].text);h=a.sel;if(this.O.multiple)for(b=0,e=this.O.length;b<e;b++)this.O.options[b].selected&&h.push(b);else h.push(this.O.selectedIndex);return a};b.ca=function(a){this.O.title=a.tooltip;this.O.disabled=a.disabled;for(var b=a.items;this.O.length;)this.O.remove(this.O.length-1);var e,h,c;e=0;for(h=b.length;e<h;e++)c=document.createElement("option"),c.text=b[e],this.O.add(c);a=a.sel;if(this.O.multiple)for(e=0,h=
a.length;e<h;e++)a[e]<this.O.length&&(this.O.options[a[e]].selected=!0);else 1<=a.length&&(this.O.selectedIndex=a[0])};b.Pb=function(){this.b.Ca||(jQuery(this.O).remove(),this.O=null)};b.ra=function(){this.Eq()};b.Eq=function(a){if(!this.b.Ca){var b=this.F.Oa(this.x,this.y,!0),e=this.F.Oa(this.x,this.y,!1),h=this.F.Oa(this.x+this.width,this.y+this.height,!0),c=this.F.Oa(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.F.visible||0>=h||0>=c||b>=k||e>=f?(this.nm&&jQuery(this.O).hide(),this.nm=!1):(1>b&&(b=1),1>e&&(e=1),h>=k&&(h=k-1),c>=f&&(c=f-1),k=window.innerWidth,f=window.innerHeight,a||this.jp!==b||this.np!==e||this.mp!==h||this.gp!==c||this.qp!==k||this.op!==f?(this.jp=b,this.np=e,this.mp=h,this.gp=c,this.qp=k,this.op=f,this.nm||(jQuery(this.O).show(),this.nm=!0),a=Math.round(b)+jQuery(this.b.canvas).offset().left,k=Math.round(e)+jQuery(this.b.canvas).offset().top,jQuery(this.O).css("position","absolute"),
jQuery(this.O).offset({left:a,top:k}),jQuery(this.O).width(Math.round(h-b)),jQuery(this.O).height(Math.round(c-e)),this.Aw&&jQuery(this.O).css("font-size",this.F.Jc(!0)/this.b.devicePixelRatio-.2+"em")):this.nm||(jQuery(this.O).show(),this.nm=!0))}};b.gc=function(){};b.Tb=function(){};g.prototype.jJ=function(){return!0};g.prototype.Wq=function(){return!0};g.prototype.LI=function(){return!0};f.n=new g;m.prototype.El=function(a){this.b.Ca||(this.visible=0!==a)};m.prototype.bg=function(a){this.b.Ca||
(this.O.disabled=0===a)};m.prototype.Xu=function(a){if(!this.b.Ca){var b=document.createElement("option");b.text=a;this.O.add(b)}};m.prototype.hk=function(a){this.b.Ca||(a=Math.floor(a),this.O.remove(a))};m.prototype.Zi=function(){this.b.Ca||(this.O.innerHTML="")};f.q=new m;l.prototype.NJ=function(a){this.b.Ca?a.R(0):a.R(this.O.selectedIndex)};f.D=new l})();var Mc=!1;
try{!function(){var g,m,l;!function(){var f={},b={};g=function(a,b,e){f[a]={oM:b,YL:e}};l=m=function(a){function d(b){if("."!==b.charAt(0))return b;b=b.split("/");for(var c=a.split("/").slice(0,-1),d=0,e=b.length;e>d;d++){var h=b[d];".."===h?c.pop():"."!==h&&c.push(h)}return c.join("/")}if(l.cS=f,b[a])return b[a];if(b[a]={},!f[a])throw Error("Could not find module "+a);for(var e,h=f[a],c=h.oM,h=h.YL,k=[],g=0,t=c.length;t>g;g++)"exports"===c[g]?k.push(e={}):k.push(m(d(c[g])));c=h.apply(this,k);return b[a]=
e||c}}();g("promise/all",["./utils","exports"],function(f,b){var a=f.isArray,d=f.isFunction;b.all=function(b){if(!a(b))throw new TypeError("You must pass an array to all.");return new this(function(a,c){function k(b){return function(c){g[b]=c;0===--l&&a(g)}}var f,g=[],l=b.length;0===l&&a([]);for(var m=0;m<b.length;m++)(f=b[m])&&d(f.then)?f.then(k(m),c):(g[m]=f,0===--l&&a(g))})}});g("promise/asap",["exports"],function(f){function b(){return function(){process.rS(e)}}function a(){var a=0,b=new k(e),
c=document.createTextNode("");return b.observe(c,{characterData:!0}),function(){c.data=a=++a%2}}function d(){return function(){g.setTimeout(e,1)}}function e(){for(var a=0;a<l.length;a++){var b=l[a];(0,b[0])(b[1])}l=[]}var h,c="undefined"!=typeof window?window:{},k=c.MutationObserver||c.WebKitMutationObserver,g="undefined"!=typeof global?global:void 0===this?window:this,l=[];h="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?b():k?a():d();f.OL=function(a,b){1===l.push([a,
b])&&h()}});g("promise/config",["exports"],function(f){var b={kS:!1};f.KC=b;f.cM=function(a,d){return 2!==arguments.length?b[a]:void(b[a]=d)}});g("promise/polyfill",["./promise","./utils","exports"],function(f,b,a){var d=f.Promise,e=b.isFunction;a.RP=function(){var a;a="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in a&&"resolve"in a.Promise&&"reject"in a.Promise&&"all"in a.Promise&&"race"in a.Promise&&function(){var b;return new a.Promise(function(a){b=
a}),e(b)}()||(a.Promise=d)}});g("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(f,b,a,d,e,h,c,k){function g(a){if(!A(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof g))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.rr=[];l(a,this)}function l(a,b){function c(a){u(b,
a)}function d(a){y(b,a)}try{a(c,d)}catch(e){d(e)}}function m(a,b,c,d){var e,h,k,f,g=A(c);if(g)try{e=c(d),k=!0}catch(l){f=!0,h=l}else e=d,k=!0;x(b,e)||(g&&k?u(b,e):f?y(b,h):a===W?u(b,e):a===V&&y(b,e))}function B(a,b,c,d){a=a.rr;var e=a.length;a[e]=b;a[e+W]=c;a[e+V]=d}function z(a,b){for(var c,d,e=a.rr,h=a.mr,k=0;k<e.length;k+=3)c=e[k],d=e[k+b],m(b,c,d,h);a.rr=null}function x(a,b){var c,d=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(G(b)&&(d=b.then,
A(d)))return d.call(b,function(d){return c?!0:(c=!0,void(b!==d?u(a,d):r(a,d)))},function(b){return c?!0:(c=!0,void y(a,b))}),!0}catch(e){return c?!0:(y(a,e),!0)}return!1}function u(a,b){a===b?r(a,b):x(a,b)||r(a,b)}function r(a,b){a.Th===v&&(a.Th=S,a.mr=b,C.async(D,a))}function y(a,b){a.Th===v&&(a.Th=S,a.mr=b,C.async(w,a))}function D(a){z(a,a.Th=W)}function w(a){z(a,a.Th=V)}var C=f.KC,G=(f.cM,b.uP),A=b.isFunction;f=(b.now,a.all);d=d.race;e=e.resolve;h=h.reject;C.async=c.OL;var v=void 0,S=0,W=1,V=2;
g.prototype={constructor:g,Th:void 0,mr:void 0,rr:void 0,then:function(a,b){var c=this,d=new this.constructor(function(){});if(this.Th){var e=arguments;C.async(function(){m(c.Th,d,e[c.Th-1],c.mr)})}else B(this,d,a,b);return d},"catch":function(a){return this.then(null,a)}};g.all=f;g.race=d;g.resolve=e;g.reject=h;k.Promise=g});g("promise/race",["./utils","exports"],function(f,b){var a=f.isArray;b.race=function(b){if(!a(b))throw new TypeError("You must pass an array to race.");return new this(function(a,
h){for(var c,k=0;k<b.length;k++)(c=b[k])&&"function"==typeof c.then?c.then(a,h):a(c)})}});g("promise/reject",["exports"],function(f){f.reject=function(b){return new this(function(a,d){d(b)})}});g("promise/resolve",["exports"],function(f){f.resolve=function(b){return b&&"object"==typeof b&&b.constructor===this?b:new this(function(a){a(b)})}});g("promise/utils",["exports"],function(f){function b(a){return"function"==typeof a}var a=Date.now||function(){return(new Date).getTime()};f.uP=function(a){return b(a)||
"object"==typeof a&&null!==a};f.isFunction=b;f.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)};f.now=a});m("promise/polyfill").RP()}();var Nc=function(){return function(g){function m(f){if(l[f])return l[f].$g;var b=l[f]={$g:{},id:f,loaded:!1};return g[f].call(b.$g,b,b.$g,m),b.loaded=!0,b.$g}var l={};return m.Va=g,m.ho=l,m.Fd="",m(0)}([function(g,m,l){m.lr=!0;var f=function(b){function a(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function d(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(m(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function e(a){for(var b in c)if(c.hasOwnProperty(b)&&c[b]===a)return!0;return!1}var h={},c={Bn:"asyncStorage",Dn:"localStorageWrapper",Sn:"webSQLStorage"},k="clear getItem iterate key keys length removeItem setItem".split(" "),f={description:"",Vl:[c.Bn,c.Sn,c.Dn].slice(),name:"localforage",size:4980736,Ab:"keyvaluepairs",
version:1},g=function(a){var b={},d;try{var e=e||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.Ji||a.msIndexedDB;d="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:e&&"function"==typeof e.open&&"undefined"!=typeof a.IDBKeyRange}catch(h){d=!1}b[c.Bn]=!!d;var k;try{k=a.openDatabase}catch(f){k=!1}b[c.Sn]=!!k;var g;try{g=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(l){g=
!1}return b[c.Dn]=!!g,b}(b),m=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function b(a){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");this.Bn=c.Bn;this.Dn=c.Dn;this.Sn=c.Sn;this.iw=d({},f);this.lk=d({},this.iw,a);this.hC=this.Qg=null;this.gj=!1;this.ub=null;this.kC();this.GF(this.lk.Vl)}return b.prototype.KC=function(a){if("object"==typeof a){if(this.gj)return Error("Can't call config() after localforage has been used.");
for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this.lk[b]=a[b];return"driver"in a&&a.Vl&&this.GF(this.lk.Vl),!0}return"string"==typeof a?this.lk[a]:this.lk},b.prototype.Vl=function(){return this.Un||null},b.prototype.rD=function(a,b,c){var d=this,k=function(){if(e(a))switch(a){case d.Bn:return new Promise(function(a){a(l(1))});case d.Dn:return new Promise(function(a){a(l(2))});case d.Sn:return new Promise(function(a){a(l(4))})}else if(h[a])return Promise.resolve(h[a]);return Promise.reject(Error("Driver not found."))}();
return k.then(b,c),k},b.prototype.ready=function(a){var b=this,c=b.Qg.then(function(){return null===b.gj&&(b.gj=b.hC()),b.gj});return c.then(a,a),c},b.prototype.GF=function(a,b,c){function d(){h.lk.Vl=h.Vl()}function e(a){return function(){function b(){for(;c<a.length;){var e=a[c];return c++,h.ub=null,h.gj=null,h.rD(e).then(function(a){return h.sL(a),d(),h.gj=h.pw(h.lk),h.gj})["catch"](b)}d();return h.Qg=Promise.reject(Error("No available storage method found.")),h.Qg}var c=0;return b()}}var h=this;
m(a)||(a=[a]);var k=this.tL(a);return this.Qg=(null!==this.Qg?this.Qg["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=k[0];return h.ub=null,h.gj=null,h.rD(a).then(function(a){h.Un=a.Un;d();h.kC();h.hC=e(k)})})["catch"](function(){d();return h.Qg=Promise.reject(Error("No available storage method found.")),h.Qg}),this.Qg.then(b,c),this.Qg},b.prototype.supports=function(a){return!!g[a]},b.prototype.sL=function(a){d(this,a)},b.prototype.tL=function(a){for(var b=
[],c=0,d=a.length;d>c;c++){var e=a[c];this.supports(e)&&b.push(e)}return b},b.prototype.kC=function(){for(var b=0;b<k.length;b++)a(this,k[b])},b.prototype.lo=function(a){return new b(a)},b}())}("undefined"!=typeof window?window:self);m["default"]=f;g.$g=m["default"]},function(g,m){m.lr=!0;m["default"]=function(g){function f(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(c){if("TypeError"!==c.name)throw c;for(var d=new (g.BlobBuilder||g.Fd||g.qf||g.WebKitBlobBuilder),e=0;e<a.length;e+=1)d.append(a[e]);
return d.getBlob(b.type)}}function b(a){return new Promise(function(b,c){var d=new XMLHttpRequest;d.open("GET",a);d.withCredentials=!0;d.responseType="arraybuffer";d.onreadystatechange=function(){return 4===d.readyState?200===d.status?b({response:d.response,type:d.getResponseHeader("Content-Type")}):void c({status:d.status,response:d.response}):void 0};d.send()})}function a(a){return(new Promise(function(c,d){var e=f([""],{type:"image/png"}),h=a.transaction([v],"readwrite");h.objectStore(v).put(e,
"key");h.oncomplete=function(){var e=a.transaction([v],"readwrite").objectStore(v).get("key");e.onerror=d;e.onsuccess=function(a){var d=URL.createObjectURL(a.target.result);b(d).then(function(a){c(!(!a||"image/png"!==a.type))},function(){c(!1)}).then(function(){URL.revokeObjectURL(d)})}};h.onerror=h.onabort=d}))["catch"](function(){return!1})}function d(b){return"boolean"==typeof G?Promise.resolve(G):a(b).then(function(a){return G=a})}function e(a){return new Promise(function(b,c){var d=new FileReader;
d.onerror=c;d.onloadend=function(c){b({fC:!0,data:btoa(c.target.result||""),type:a.type})};d.readAsBinaryString(a)})}function h(a){for(var b=atob(a.data),c=b.length,d=new ArrayBuffer(c),e=new Uint8Array(d),h=0;c>h;h++)e[h]=b.charCodeAt(h);return f([d],{type:a.type})}function c(a){var b=this,c=b.mw().then(function(){var a=A[b.ub.name];return a&&a.Sl?a.Sl:void 0});return c.then(a,a),c}function k(a){a=A[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.QC.push(b);a.Sl?a.Sl=a.Sl.then(function(){return b.promise}):
a.Sl=b.promise}function p(a){function b(){return Promise.resolve()}var d=this,e={db:null};if(a)for(var h in a)e[h]=a[h];A||(A={});var k=A[e.name];k||(k={ss:[],db:null,Sl:null,QC:[]},A[e.name]=k);k.ss.push(d);d.mw||(d.mw=d.ready,d.ready=c);a=[];for(h=0;h<k.ss.length;h++){var f=k.ss[h];f!==d&&a.push(f.mw()["catch"](b))}var p=k.ss.slice(0);return Promise.all(a).then(function(){return e.db=k.db,m(e,!1)}).then(function(a){e.db=a;var b;b=d.iw.version;if(e.db){var c=!e.db.objectStoreNames.contains(e.Ab),
h=e.version>e.db.version;(e.version<e.db.version&&(e.version!==b&&g.console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),h||c)?(c&&(b=e.db.version+1,b>e.version&&(e.version=b)),b=!0):b=!1}else b=!0;return b?m(e,!0):a}).then(function(a){e.db=k.db=a;d.ub=e;for(a=0;a<p.length;a++){var b=p[a];b!==d&&(b.ub.db=e.db,b.ub.version=e.version)}})}function m(a,b){return new Promise(function(c,d){if(a.db){if(!b)return c(a.db);
k(a);a.db.close()}var e=[a.name];b&&e.push(a.version);var h=C.open.apply(C,e);b&&(h.onupgradeneeded=function(b){var c=h.result;try{c.createObjectStore(a.Ab),1>=b.oldVersion&&c.createObjectStore(v)}catch(d){if("ConstraintError"!==d.name)throw d;g.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.Ab+'" already exists.')}});h.onerror=function(){d(h.error)};h.onsuccess=function(){c(h.result);var b=A[a.name].QC.pop();
b&&b.resolve()}})}function q(a,b){var c=this;"string"!=typeof a&&(g.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.ub,k=e.db.transaction(e.Ab,"readonly").objectStore(e.Ab).get(a);k.onsuccess=function(){var a=k.result;void 0===a&&(a=null);a&&a.fC&&(a=h(a));b(a)};k.onerror=function(){d(k.error)}})["catch"](d)});return w(d,b),d}function B(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var e=
c.ub,k=e.db.transaction(e.Ab,"readonly").objectStore(e.Ab).openCursor(),f=1;k.onsuccess=function(){var c=k.result;if(c){var d=c.value;d&&d.fC&&(d=h(d));d=a(d,c.key,f++);void 0!==d?b(d):c["continue"]()}else b()};k.onerror=function(){d(k.error)}})["catch"](d)});return w(d,b),d}function z(a,b,c){var h=this;"string"!=typeof a&&(g.console.warn(a+" used as a key, but it is not a string."),a=String(a));var k=new Promise(function(c,k){var f;h.ready().then(function(){return f=h.ub,b instanceof Blob?d(f.db).then(function(a){return a?
b:e(b)}):b}).then(function(b){var d=f.db.transaction(f.Ab,"readwrite"),e=d.objectStore(f.Ab);null===b&&(b=void 0);d.oncomplete=function(){void 0===b&&(b=null);c(b)};d.onabort=d.onerror=function(){k(h.error?h.error:h.transaction.error)};var h=e.put(b,a)})["catch"](k)});return w(k,c),k}function x(a,b){var c=this;"string"!=typeof a&&(g.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.ub,h=e.db.transaction(e.Ab,"readwrite"),
k=h.objectStore(e.Ab)["delete"](a);h.oncomplete=function(){b()};h.onerror=function(){d(k.error)};h.onabort=function(){d(k.error?k.error:k.transaction.error)}})["catch"](d)});return w(d,b),d}function u(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ub,e=d.db.transaction(d.Ab,"readwrite"),h=e.objectStore(d.Ab).clear();e.oncomplete=function(){a()};e.onabort=e.onerror=function(){c(h.error?h.error:h.transaction.error)}})["catch"](c)});return w(c,a),c}function r(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var d=b.ub,e=d.db.transaction(d.Ab,"readonly").objectStore(d.Ab).count();e.onsuccess=function(){a(e.result)};e.onerror=function(){c(e.error)}})["catch"](c)});return w(c,a),c}function y(a,b){var c=this,d=new Promise(function(b,d){return 0>a?void b(null):void c.ready().then(function(){var e=c.ub,h=!1,k=e.db.transaction(e.Ab,"readonly").objectStore(e.Ab).openCursor();k.onsuccess=function(){var c=k.result;return c?void(0===a?b(c.key):h?b(c.key):(h=
!0,c.advance(a))):void b(null)};k.onerror=function(){d(k.error)}})["catch"](d)});return w(d,b),d}function D(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ub,e=d.db.transaction(d.Ab,"readonly").objectStore(d.Ab).openCursor(),h=[];e.onsuccess=function(){var b=e.result;return b?(h.push(b.key),void b["continue"]()):void a(h)};e.onerror=function(){c(e.error)}})["catch"](c)});return w(c,a),c}function w(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var C=C||g.indexedDB||
g.webkitIndexedDB||g.mozIndexedDB||g.Ji||g.msIndexedDB;if(C){var G,A,v="local-forage-detect-blob-support";return{Un:"asyncStorage",pw:p,gE:B,getItem:q,setItem:z,removeItem:x,clear:u,length:r,key:y,keys:D}}}("undefined"!=typeof window?window:self);g.$g=m["default"]},function(g,m,l){m.lr=!0;m["default"]=function(f){function b(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var a=null;try{if(!(f.localStorage&&"setItem"in f.localStorage))return;a=f.localStorage}catch(d){return}return{Un:"localStorageWrapper",
pw:function(a){var b={};if(a)for(var c in a)b[c]=a[c];return b.mh=b.name+"/",b.Ab!==this.iw.Ab&&(b.mh+=b.Ab+"/"),this.ub=b,(new Promise(function(a){a(l(3))})).then(function(a){return b.kl=a,Promise.resolve()})},gE:function(d,h){var c=this,k=c.ready().then(function(){for(var b=c.ub,h=b.mh,k=h.length,f=a.length,g=1,l=0;f>l;l++){var m=a.key(l);if(0===m.indexOf(h)){var r=a.getItem(m);if(r&&(r=b.kl.ds(r)),r=d(r,m.substring(k),g++),void 0!==r)return r}}});return b(k,h),k},getItem:function(d,h){var c=this;
"string"!=typeof d&&(f.console.warn(d+" used as a key, but it is not a string."),d=String(d));var k=c.ready().then(function(){var b=c.ub,h=a.getItem(b.mh+d);return h&&(h=b.kl.ds(h)),h});return b(k,h),k},setItem:function(d,h,c){var k=this;"string"!=typeof d&&(f.console.warn(d+" used as a key, but it is not a string."),d=String(d));var g=k.ready().then(function(){void 0===h&&(h=null);var b=h;return new Promise(function(c,f){var g=k.ub;g.kl.serialize(h,function(h,k){if(k)f(k);else try{a.setItem(g.mh+
d,h),c(b)}catch(l){"QuotaExceededError"!==l.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==l.name||f(l),f(l)}})})});return b(g,c),g},removeItem:function(d,h){var c=this;"string"!=typeof d&&(f.console.warn(d+" used as a key, but it is not a string."),d=String(d));var k=c.ready().then(function(){a.removeItem(c.ub.mh+d)});return b(k,h),k},clear:function(d){var h=this,c=h.ready().then(function(){for(var b=h.ub.mh,c=a.length-1;0<=c;c--){var d=a.key(c);0===d.indexOf(b)&&a.removeItem(d)}});return b(c,d),c},length:function(a){var d=
this.keys().then(function(a){return a.length});return b(d,a),d},key:function(d,h){var c=this,k=c.ready().then(function(){var b,h=c.ub;try{b=a.key(d)}catch(k){b=null}return b&&(b=b.substring(h.mh.length)),b});return b(k,h),k},keys:function(d){var h=this,c=h.ready().then(function(){for(var b=h.ub,c=a.length,d=[],e=0;c>e;e++)0===a.key(e).indexOf(b.mh)&&d.push(a.key(e).substring(b.mh.length));return d});return b(c,d),c}}}("undefined"!=typeof window?window:self);g.$g=m["default"]},function(g,m){m.lr=!0;
m["default"]=function(g){function f(b){var d,c,k,f,g;d=.75*b.length;var l=b.length,m=0;"="===b[b.length-1]&&(d--,"="===b[b.length-2]&&d--);var z=new ArrayBuffer(d),x=new Uint8Array(z);for(d=0;l>d;d+=4)c=a.indexOf(b[d]),k=a.indexOf(b[d+1]),f=a.indexOf(b[d+2]),g=a.indexOf(b[d+3]),x[m++]=c<<2|k>>4,x[m++]=(15&k)<<4|f>>2,x[m++]=(3&f)<<6|63&g;return z}function b(b){var d=new Uint8Array(b),c="";for(b=0;b<d.length;b+=3)c+=a[d[b]>>2],c+=a[(3&d[b])<<4|d[b+1]>>4],c+=a[(15&d[b+1])<<2|d[b+2]>>6],c+=a[63&d[b+2]];
return 2===d.length%3?c=c.substring(0,c.length-1)+"=":1===d.length%3&&(c=c.substring(0,c.length-2)+"=="),c}var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=/^~~local_forage_type~([^~]+)~/;return{serialize:function(a,d){var c="";if(a&&(c=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var k,f="__lfsc__:";a instanceof ArrayBuffer?(k=a,f+="arbf"):(k=a.buffer,"[object Int8Array]"===c?f+="si08":"[object Uint8Array]"===
c?f+="ui08":"[object Uint8ClampedArray]"===c?f+="uic8":"[object Int16Array]"===c?f+="si16":"[object Uint16Array]"===c?f+="ur16":"[object Int32Array]"===c?f+="si32":"[object Uint32Array]"===c?f+="ui32":"[object Float32Array]"===c?f+="fl32":"[object Float64Array]"===c?f+="fl64":d(Error("Failed to get type for BinaryArray")));d(f+b(k))}else if("[object Blob]"===c)c=new FileReader,c.onload=function(){var c="~~local_forage_type~"+a.type+"~"+b(this.result);d("__lfsc__:blob"+c)},c.readAsArrayBuffer(a);else try{d(JSON.stringify(a))}catch(g){console.error("Couldn't convert value into a JSON string: ",
a),d(null,g)}},ds:function(a){if("__lfsc__:"!==a.substring(0,9))return JSON.parse(a);var b,c=a.substring(13);a=a.substring(9,13);if("blob"===a&&d.test(c)){var k=c.match(d);b=k[1];c=c.substring(k[0].length)}c=f(c);switch(a){case "arbf":return c;case "blob":var m;c=[c];b={type:b};c=c||[];b=b||{};try{m=new Blob(c,b)}catch(t){if("TypeError"!==t.name)throw t;m=new (g.BlobBuilder||g.Fd||g.qf||g.WebKitBlobBuilder);for(a=0;a<c.length;a+=1)m.append(c[a]);m=m.getBlob(b.type)}return m;case "si08":return new Int8Array(c);
case "ui08":return new Uint8Array(c);case "uic8":return new Uint8ClampedArray(c);case "si16":return new Int16Array(c);case "ur16":return new Uint16Array(c);case "si32":return new Int32Array(c);case "ui32":return new Uint32Array(c);case "fl32":return new Float32Array(c);case "fl64":return new Float64Array(c);default:throw Error("Unkown type: "+a);}},xS:f,eS:b}}("undefined"!=typeof window?window:self);g.$g=m["default"]},function(g,m,l){m.lr=!0;m["default"]=function(f){function b(a){var b=this,c={db:null};
if(a)for(var d in a)c[d]="string"!=typeof a[d]?a[d].toString():a[d];var e=new Promise(function(a,d){try{c.db=B(c.name,String(c.version),c.description,c.size)}catch(e){return d(e)}c.db.transaction(function(e){e.executeSql("CREATE TABLE IF NOT EXISTS "+c.Ab+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.ub=c;a()},function(a,b){d(b)})})});return(new Promise(function(a){a(l(3))})).then(function(a){return c.kl=a,e})}function a(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.ub;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.Ab+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=e.kl.ds(d));b(d)},function(a,b){d(b)})})})["catch"](d)});return q(d,b),d}function d(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var e=c.ub;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.Ab,[],function(c,d){for(var h=d.rows,
k=h.length,f=0;k>f;f++){var g=h.item(f),l=g.value;if(l&&(l=e.kl.ds(l)),l=a(l,g.key,f+1),void 0!==l)return void b(l)}b()},function(a,b){d(b)})})})["catch"](d)});return q(d,b),d}function e(a,b,c){var d=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(c,e){d.ready().then(function(){void 0===b&&(b=null);var h=b,k=d.ub;k.kl.serialize(b,function(b,d){d?e(d):k.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+k.Ab+
" (key, value) VALUES (?, ?)",[a,b],function(){c(h)},function(a,b){e(b)})},function(a){a.code===a.QUOTA_ERR&&e(a)})})})["catch"](e)});return q(e,c),e}function h(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.ub;e.db.transaction(function(c){c.executeSql("DELETE FROM "+e.Ab+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return q(d,b),d}function c(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ub;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.Ab,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return q(c,a),c}function k(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ub;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.Ab,[],function(b,c){var d=c.rows.item(0).ho;a(d)},function(a,b){c(b)})})})["catch"](c)});return q(c,a),c}function g(a,b){var c=this,
d=new Promise(function(b,d){c.ready().then(function(){var e=c.ub;e.db.transaction(function(c){c.executeSql("SELECT key FROM "+e.Ab+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})})["catch"](d)});return q(d,b),d}function m(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ub;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.Ab,[],function(b,c){for(var d=[],e=0;e<c.rows.length;e++)d.push(c.rows.item(e).key);
a(d)},function(a,b){c(b)})})})["catch"](c)});return q(c,a),c}function q(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var B=f.openDatabase;if(B)return{Un:"webSQLStorage",pw:b,gE:d,getItem:a,setItem:e,removeItem:h,clear:c,length:k,key:g,keys:m}}("undefined"!=typeof window?window:self);g.$g=m["default"]}])};"object"==typeof exports&&"object"==typeof module?module.$g=Nc():"function"==typeof define&&define.dS?define([],Nc):"object"==typeof exports?exports.localforage=Nc():this.localforage=
Nc()}catch(Oc){Mc=!0}function Pc(g){this.b=g}
(function(){function g(){}function m(){}function l(){}var f="",b="",a="";"undefined"!==typeof window.is_scirra_arcade&&(a="sa"+window.scirra_arcade_id+"_");var d=Pc.prototype;d.L=function(a){this.G=a;this.b=a.b};d.L.prototype.I=function(){};d.J=function(a){this.type=a;this.b=a.b};var e=d.J.prototype;e.I=function(){this.hz=this.iz=0};e.Pb=function(){};e.P=function(){return{}};e.ca=function(){};g.prototype.XI=function(a){return f===a};g.prototype.AI=function(){return!0};g.prototype.gB=function(a){return f===
a};g.prototype.zI=function(){return!0};g.prototype.Oh=function(){return!0};g.prototype.xA=function(a,c){return hc(b,a,c)};g.prototype.wI=function(){return!0};g.prototype.vI=function(){return!0};d.n=new g;m.prototype.fK=function(d,c){if(Mc)this.b.trigger(Pc.prototype.n.Oh,this);else{var e=a+d;this.iz++;var g=this;localforage.setItem(e,c,function(a,c){g.iz--;a?g.b.trigger(Pc.prototype.n.Oh,g):(f=d,b=c,g.b.trigger(Pc.prototype.n.AI,g),g.b.trigger(Pc.prototype.n.XI,g),b=f="");0===g.iz&&g.b.trigger(Pc.prototype.n.wI,
g)})}};m.prototype.EH=function(d){if(Mc)this.b.trigger(Pc.prototype.n.Oh,this);else{var c=a+d;this.hz++;var e=this;localforage.getItem(c,function(a,c){e.hz--;if(a)e.b.trigger(Pc.prototype.n.Oh,e);else{f=d;b=c;if("undefined"===typeof b||null===b)b="";e.b.trigger(Pc.prototype.n.zI,e);e.b.trigger(Pc.prototype.n.gB,e);b=f=""}0===e.hz&&e.b.trigger(Pc.prototype.n.vI,e)})}};d.q=new m;l.prototype.hI=function(a){a.ie(b)};d.D=new l})();function Qc(g){this.b=g}
(function(){function g(){}function m(){}function l(){}function f(a,b,d){a=a.toLowerCase();"undefined"!==typeof c.items[a]&&c.items[a]?h('[Preloader]: Duplicate entry "'+a+'". This item already exists on preloader list.',this):(c.items[a]={trigger:b.toLowerCase(),Tl:d.toLowerCase(),wj:0,Ss:!b},++c.Rk)}function b(b){if(r)u||(u=setInterval(function(){var a=100*b.b.Yk;100==a&&(clearInterval(u),r=!1);d("mm_preloader_c2_engine_",a,b)},50));else for(var k in c.items)if(c.items.hasOwnProperty(k)&&100!==c.items[k].wj&&
!0!==c.items[k].Ss){if(c.items[k].Tl)if("_last"===c.items[k].Tl)c.ep===c.Rk-1&&(A.isEnabled?(c.items[k].Ss=!0,A.ue.Yr=b,A.ue.Au=setTimeout(A.EC,1E3*A.qx)):e(k));else if("mm_preloader_object_preload_"===c.items[k].Tl)!1===z&&(z=!0,a(b));else{var f=c.items[k].Tl.split(","),g=!0,l;for(l=0;l<f.length;l++){if(!c.items[f[l]]){h('[Preloader ERROR]: item "'+k+'" has dependency "'+f[l]+'" but "'+f[l]+"\" item does not exist in preloader's list.",b);return}if(100>c.items[f[l]].wj){g=!1;break}}g&&e(k)}else e(k);
if(c.Rs)break}}function a(b){u&&clearInterval(u);if(!y){var e,h=!1;for(e=0;e<B.length;e++)if(!B[e].jy){var h=e===B.length-1,k=b.b.lo(B[e].object,b.b.qb.Pa[0],0,0);k&&(mc.Wv&&k.type.G instanceof mc.Wv?(D=k,w=e,y=setInterval(function(){D.entities&&(clearInterval(y),y=null,B[w].jy=!0,d(B[w].key,100,b),b.b.ne(D))},16)):(B[e].jy=!0,d(B[e].key,100,b),b.b.ne(k)));break}h||(x=b.b.hd+2,u=setInterval(function(){x<b.b.hd&&a(b)},c.Rs?1E3*c.nE:50))}}function d(a,d,e){a=a.toLowerCase();"undefined"!==typeof c.items[a]&&
c.items[a]?(c.items[a].wj=Ka(d,0,100),100===c.items[a].wj&&++c.ep,e.b.trigger(Qc.prototype.n.On,e),c.ep===c.Rk?e.b.trigger(Qc.prototype.n.bB,e):r||(c.Rs&&100===c.items[a].wj?setTimeout(function(){b(e)},1E3*c.nE):b(e))):h('[Preloader ERROR]: Cannot update "'+a+'" item, because such item does not exist on preloader list.',e)}function e(a){if(k&&-1!==c.items[a].trigger.indexOf(" >>> ")){var b=c.items[a].trigger.substring(0,c.items[a].trigger.indexOf(" >>> ")),d=c.items[a].trigger.substring(c.items[a].trigger.indexOf(" >>> ")+
5,c.items[a].trigger.length);c.items[a].Ss=!0;k.dispatchEvent(b,d,[])}else c2_callFunction&&(c.items[a].Ss=!0,c2_callFunction(c.items[a].trigger,[]))}function h(a,b){p?p.log(0,a,"MM_Preloader",b):console.log(a)}var c={items:[],ep:0,Rk:0,Rs:!1,nE:0},k=null,p=null,t=null,q=0,B=[],z=!1,x=0,u=null,r=!1,y=null,D=null,w=null,C=Qc.prototype;C.L=function(a){this.G=a;this.b=a.b};C.L.prototype.I=function(){};C.J=function(a){this.type=a;this.b=a.b};var G=C.J.prototype;G.I=function(){t=this;A.isEnabled=!!this.B[1];
A.My=Math.max(this.B[2],1);A.qx=this.B[3];A.KE=Math.max(this.B[4],1);A.LC=Math.max(this.B[5],1);"undefined"!==typeof mc.VA&&mc.VA&&(k=mc.VA.prototype.CQ);"undefined"!==typeof mc.UA&&mc.UA&&(p=mc.UA.prototype.CQ)};G.Pb=function(){};g.prototype.On=function(){return!0};g.prototype.bB=function(){c.items=[];c.ep=0;q=c.Rk=0;B=[];z=!1;x=0;u=null;r=!1;A.isEnabled&&(clearTimeout(A.ue.Au),A.ue.Xr=0,A.ue.Pw=0,A.ue.Au=null);return!0};C.n=new g;m.prototype.Xu=function(a,b,c){f(a,b,c)};m.prototype.gK=function(a,
b){d(a,b,this)};m.prototype.Af=function(){c.Rs=!1;if(0===c.Rk&&!1===A.isEnabled)h("[Preloader]: Cannot start Preloader, the list is empty.",this);else{if(A.isEnabled){var a,d=[];for(a in c.items)c.items.hasOwnProperty(a)&&d.push(a);for(a in c.items)if(c.items.hasOwnProperty(a)&&"_last"==c.items[a].Tl){var e=d;e.splice(d.indexOf(a),1);c.items[a].Tl=e.join()}f("Stabilizer","true","_last")}b(this)}};m.prototype.OK=function(a){A.isEnabled=!!a};m.prototype.EG=function(a){var b,c;for(b in this.b.wi)if(this.b.wi.hasOwnProperty(b)&&
mb(b,a)){c=this.b.wi[b];break}if(c)for(a=c,b=0;b<a.nd.length;b++)"object"!==typeof a.nd[b].G||Z&&a.nd[b].G instanceof Z&&a.nd[b].im||Rc&&a.nd[b].G instanceof Rc&&a.nd[b].T||mc.TK&&a.nd[b].G instanceof mc.TK&&a.nd[b].gS||(mc.NK&&a.nd[b].G instanceof mc.NK||Sc&&a.nd[b].G instanceof Sc)&&a.nd[b].T||mc.Wv&&a.nd[b].G instanceof mc.Wv&&0<a.nd[b].ro.length||(c="mm_preloader_object_preload_"+q,B.push({object:a.nd[b],key:c,jy:!1}),f(c,"automatic","mm_preloader_object_preload_"),++q);else h('[Preloader ERROR]: Cannot load objects from layout "'+
a+'" because such layout does not exist.',this)};m.prototype.DG=function(){r=!0;f("mm_preloader_c2_engine_","","")};C.q=new m;l.prototype.Gv=function(a){var b=Math.floor(c.ep/c.Rk*1E4)/100,d=0,e=1/c.Rk,h;for(h in c.items)c.items.hasOwnProperty(h)&&100>c.items[h].wj&&0<c.items[h].wj&&(d+=c.items[h].wj/100*e);d=Math.floor(1E4*d)/100;a.K(Math.floor(100*(b+d))/100)};C.D=new l;var A={isEnabled:!0,My:0,qx:0,KE:60,LC:1,ue:{Xr:0,Pw:0,Au:null,Yr:null},EC:function(){if(A.My>A.ue.Xr){++A.ue.Xr;if(A.KE<=t.b.ws&&
(++A.ue.Pw,A.ue.Pw>=A.LC)){d("Stabilizer",100,A.ue.Yr);return}var a=A.ue.Xr/A.My*100;d("Stabilizer",a,A.ue.Yr);100>a&&(A.ue.Au=setTimeout(A.EC,1E3*A.qx))}else d("Stabilizer",100,A.ue.Yr)}}})();function Tc(g){this.b=g}
(function(){function g(){}function m(){}var l=Tc.prototype;l.L=function(a){this.G=a;this.b=a.b};l.L.prototype.I=function(){};l.J=function(a){this.type=a;this.b=a.b;this.Ml=Array(4);this.hG=this.Cu=this.sl=this.Ai=this.yi=0;this.Ox=!1};var f=l.J.prototype;f.I=function(){var a=this;if(!this.b.Ca){jQuery(document).mousemove(function(b){a.Up(b)});jQuery(document).mousedown(function(b){a.Tp(b)});jQuery(document).mouseup(function(b){a.Vp(b)});jQuery(document).dblclick(function(b){a.yP(b)});var b=function(b){a.HP(b)};
document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var b={left:0,top:0};f.Up=function(a){var d=this.b.Ca?b:jQuery(this.b.canvas).offset();this.yi=a.pageX-d.left;this.Ai=a.pageY-d.top};f.ME=function(){return 0<this.b.Sd?!0:0<=this.yi&&0<=this.Ai&&this.yi<this.b.width&&this.Ai<this.b.height};f.Tp=function(a){this.ME()&&(this.Ml[a.which]=!0,this.b.yb=!0,this.b.trigger(Tc.prototype.n.yI,this),this.sl=a.which-1,this.Cu=0,this.b.trigger(Tc.prototype.n.Fn,this),
this.b.trigger(Tc.prototype.n.pB,this),this.b.yb=!1)};f.Vp=function(a){this.Ml[a.which]&&(this.b.Io&&!this.b.lf&&a.preventDefault(),this.b.Io=!0,this.Ml[a.which]=!1,this.b.yb=!0,this.sl=a.which-1,this.b.trigger(Tc.prototype.n.qB,this),this.b.yb=!1)};f.yP=function(a){this.ME()&&(a.preventDefault(),this.b.yb=!0,this.sl=a.which-1,this.Cu=1,this.b.trigger(Tc.prototype.n.Fn,this),this.b.trigger(Tc.prototype.n.pB,this),this.b.yb=!1)};f.HP=function(a){this.hG=0>(a.wheelDelta?a.wheelDelta:a.detail?-a.detail:
0)?0:1;this.Ox=!1;this.b.yb=!0;this.b.trigger(Tc.prototype.n.yB,this);this.b.yb=!1;this.Ox&&nb(a)&&a.preventDefault()};f.Oj=function(){var a,b;a=0;for(b=this.Ml.length;a<b;++a)this.Ml[a]&&(this.Ml[a]=!1,this.sl=a-1,this.b.trigger(Tc.prototype.n.qB,this))};g.prototype.Fn=function(a,b){return a===this.sl&&b===this.Cu};g.prototype.yI=function(){return!0};g.prototype.qB=function(a){return a===this.sl};g.prototype.pB=function(a,b,e){return a!==this.sl||b!==this.Cu?!1:this.b.gn(e,this.yi,this.Ai)};g.prototype.yB=
function(a){this.Ox=!0;return a===this.hG};l.n=new g;l.q=new function(){};m.prototype.Gl=function(a,b){var e,h,c,k,f;ka(b)?(e=this.b.uc(0),h=e.scale,c=e.ib,k=e.pb,f=e.C,e.scale=1,e.ib=1,e.pb=1,e.C=0,a.K(e.Ga(this.yi,this.Ai,!0)),e.scale=h,e.ib=c,e.pb=k,e.C=f):(e=E(b)?this.b.uc(b):this.b.Lf(b))?a.K(e.Ga(this.yi,this.Ai,!0)):a.K(0)};m.prototype.Hl=function(a,b){var e,h,c,k,f;ka(b)?(e=this.b.uc(0),h=e.scale,c=e.ib,k=e.Qb,f=e.C,e.scale=1,e.ib=1,e.Qb=1,e.C=0,a.K(e.Ga(this.yi,this.Ai,!1)),e.scale=h,e.ib=
c,e.Qb=k,e.C=f):(e=E(b)?this.b.uc(b):this.b.Lf(b))?a.K(e.Ga(this.yi,this.Ai,!1)):a.K(0)};m.prototype.Su=function(a){a.K(this.yi)};m.prototype.Tu=function(a){a.K(this.Ai)};l.D=new m})();function Uc(g){this.b=g}
(function(){function g(b,a,d,e,h,c,k,f,g,l){b.save();b.fillStyle=a;a=h%d;var m=c%e;0>a&&(a+=d);0>m&&(m+=e);b.translate(a+g,m+l);b.fillRect(h-a-g,c-m-l,k,f);b.restore()}function m(){}var l=Uc.prototype;l.L=function(b){this.G=b;this.b=b.b};var f=l.L.prototype;f.I=function(){this.ea||(this.X=new Image,this.X.Ur=this.yq,this.b.Kq(this.X,this.jn),this.Lq=this.Oq=this.Nq=this.Mq=this.wn=this.T=this.wC=this.gG=this.xF=this.oE=this.jx=null)};f.Nj=function(){this.ea||(this.Lq=this.Oq=this.Nq=this.Mq=this.wn=
this.T=null)};f.Lm=function(){this.ea||!this.A.length||this.T||(this.T=this.b.M.ye(this.X,!0,this.b.sb,this.Dh))};f.pn=function(){this.ea||this.A.length||!this.b.M||(this.b.M.deleteTexture(this.T),this.b.M.deleteTexture(this.wn),this.b.M.deleteTexture(this.Mq),this.b.M.deleteTexture(this.Nq),this.b.M.deleteTexture(this.Oq),this.b.M.deleteTexture(this.Lq),this.Lq=this.Oq=this.Nq=this.Mq=this.wn=this.T=null)};f.Ah=function(b,a,d,e){var h=document.createElement("canvas");d=d-b;e=e-a;h.width=d;h.height=
e;h.getContext("2d").drawImage(this.X,b,a,d,e,0,0,d,e);return h};f.hM=function(b,a,d,e){var h=this.X.width,c=this.X.height,k=h-a,f=c-e;if(this.b.M){if(!this.wn){var g=this.b.M,l=this.b.sb,m=this.Dh;k>b&&f>d&&(this.wn=g.ye(this.Ah(b,d,k,f),!0,l,m));0<b&&f>d&&(this.Mq=g.ye(this.Ah(0,d,b,f),!0,l,m,"repeat-y"));0<a&&f>d&&(this.Nq=g.ye(this.Ah(k,d,h,f),!0,l,m,"repeat-y"));0<d&&k>b&&(this.Oq=g.ye(this.Ah(b,0,k,d),!0,l,m,"repeat-x"));0<e&&k>b&&(this.Lq=g.ye(this.Ah(b,f,k,c),!0,l,m,"repeat-x"))}}else this.jx||
(g=this.b.Nb,k>b&&f>d&&(this.jx=g.createPattern(this.Ah(b,d,k,f),"repeat")),0<b&&f>d&&(this.oE=g.createPattern(this.Ah(0,d,b,f),"repeat")),0<a&&f>d&&(this.xF=g.createPattern(this.Ah(k,d,h,f),"repeat")),0<d&&k>b&&(this.gG=g.createPattern(this.Ah(b,0,k,d),"repeat")),0<e&&k>b&&(this.wC=g.createPattern(this.Ah(b,f,k,c),"repeat")))};l.J=function(b){this.type=b;this.b=b.b};f=l.J.prototype;f.I=function(){this.Fy=this.B[0];this.yz=this.B[1];this.Tz=this.B[2];this.Dw=this.B[3];this.hs=this.B[4];this.fill=
this.B[5];this.visible=0===this.B[6];this.CF=0!==this.B[8];this.Ib?this.Ce.set(0,0,0,0):this.Ce=new wa(0,0,0,0);this.b.M&&!this.type.T&&(this.type.T=this.b.M.ye(this.type.X,!1,this.b.sb,this.type.Dh));this.type.hM(this.Fy,this.yz,this.Tz,this.Dw)};f.gc=function(b){var a=this.type.X,d=this.Fy,e=this.yz,h=this.Tz,c=this.Dw,k=a.width,f=a.height,l=k-e,m=f-c;b.globalAlpha=this.opacity;b.save();var B=this.x,z=this.y,x=this.width,u=this.height;this.b.xd&&(B=Math.round(B),z=Math.round(z));var r=-(this.Wd*
this.width),y=-(this.Xd*this.height),D=r%k,w=y%f;0>D&&(D+=k);0>w&&(w+=f);b.translate(B+D,z+w);k=r-D;y-=w;w=this.CF?1:0;0<d&&0<h&&b.drawImage(a,0,0,d+w,h+w,k,y,d+w,h+w);0<e&&0<h&&b.drawImage(a,l-w,0,e+w,h+w,k+x-e-w,y,e+w,h+w);0<e&&0<c&&b.drawImage(a,l-w,m-w,e+w,c+w,k+x-e-w,y+u-c-w,e+w,c+w);0<d&&0<c&&b.drawImage(a,0,m-w,d+w,c+w,k,y+u-c-w,d+w,c+w);0===this.hs?(w=2===this.fill?0:w,0<d&&m>h&&g(b,this.type.oE,d,m-h,k,y+h,d+w,u-h-c,0,0),0<e&&m>h&&g(b,this.type.xF,e,m-h,k+x-e-w,y+h,e+w,u-h-c,w,0),0<h&&l>
d&&g(b,this.type.gG,l-d,h,k+d,y,x-d-e,h+w,0,0),0<c&&l>d&&g(b,this.type.wC,l-d,c,k+d,y+u-c-w,x-d-e,c+w,0,w)):1===this.hs&&(0<d&&m>h&&0<u-h-c&&b.drawImage(a,0,h,d,m-h,k,y+h,d,u-h-c),0<e&&m>h&&0<u-h-c&&b.drawImage(a,l,h,e,m-h,k+x-e,y+h,e,u-h-c),0<h&&l>d&&0<x-d-e&&b.drawImage(a,d,0,l-d,h,k+d,y,x-d-e,h),0<c&&l>d&&0<x-d-e&&b.drawImage(a,d,m,l-d,c,k+d,y+u-c,x-d-e,c));m>h&&l>d&&(0===this.fill?g(b,this.type.jx,l-d,m-h,k+d,y+h,x-d-e,u-h-c,0,0):1===this.fill&&0<x-d-e&&0<u-h-c&&b.drawImage(a,d,h,l-d,m-h,k+d,
y+h,x-d-e,u-h-c));b.restore()};f.ci=function(b,a,d,e,h,c,k,f,g,l){b.zd(a);var m=this.Ce;m.left=d/a.jg;m.top=e/a.ig;m.right=(d+h)/a.jg;m.bottom=(e+c)/a.ig;b.Xe(k,f,k+g,f,k+g,f+l,k,f+l,m)};f.zq=function(b,a,d,e,h,c,k,f){b.zd(a);var g=this.Ce;g.left=-k/a.jg;g.top=-f/a.ig;g.right=(h-k)/a.jg;g.bottom=(c-f)/a.ig;b.Xe(d,e,d+h,e,d+h,e+c,d,e+c,g)};f.xj=function(b){this.Tb(b)};f.Tb=function(b){var a=this.Fy,d=this.yz,e=this.Tz,h=this.Dw,c=this.type.X.width-d,k=this.type.X.height-h;b.Gg(this.opacity);var f=
this.Wa,g=f.xa,f=f.ya,l=this.width,m=this.height;this.b.xd&&(g=Math.round(g),f=Math.round(f));var z=this.CF?1:0;0<a&&0<e&&this.ci(b,this.type.T,0,0,a+z,e+z,g,f,a+z,e+z);0<d&&0<e&&this.ci(b,this.type.T,c-z,0,d+z,e+z,g+l-d-z,f,d+z,e+z);0<d&&0<h&&this.ci(b,this.type.T,c-z,k-z,d+z,h+z,g+l-d-z,f+m-h-z,d+z,h+z);0<a&&0<h&&this.ci(b,this.type.T,0,k-z,a+z,h+z,g,f+m-h-z,a+z,h+z);0===this.hs?(z=2===this.fill?0:z,0<a&&k>e&&this.zq(b,this.type.Mq,g,f+e,a+z,m-e-h,0,0),0<d&&k>e&&this.zq(b,this.type.Nq,g+l-d-z,f+
e,d+z,m-e-h,z,0),0<e&&c>a&&this.zq(b,this.type.Oq,g+a,f,l-a-d,e+z,0,0),0<h&&c>a&&this.zq(b,this.type.Lq,g+a,f+m-h-z,l-a-d,h+z,0,z)):1===this.hs&&(0<a&&k>e&&this.ci(b,this.type.T,0,e,a,k-e,g,f+e,a,m-e-h),0<d&&k>e&&this.ci(b,this.type.T,c,e,d,k-e,g+l-d,f+e,d,m-e-h),0<e&&c>a&&this.ci(b,this.type.T,a,0,c-a,e,g+a,f,l-a-d,e),0<h&&c>a&&this.ci(b,this.type.T,a,k,c-a,h,g+a,f+m-h,l-a-d,h));k>e&&c>a&&(0===this.fill?this.zq(b,this.type.wn,g+a,f+e,l-a-d,m-e-h,0,0):1===this.fill&&this.ci(b,this.type.T,a,e,c-a,
k-e,g+a,f+e,l-a-d,m-e-h))};l.n=new function(){};m.prototype.jk=function(b){this.nc=b;this.Ff=jb(b);kb(this,b,this.b.ba);this.b.la=!0};l.q=new m;l.D=new function(){}})();function Vc(g){this.b=g}
(function(){function g(a){this.Xb=a;this.W=!1;this.C=this.speed=this.y=this.x=0;this.opacity=1;this.mj=this.gm=this.size=this.Gs=0}function m(){}var l=Vc.prototype;l.L=function(a){this.G=a;this.b=a.b};var f=l.L.prototype;f.I=function(){this.ea||(this.X=new Image,this.X.Ur=this.yq,this.T=null,this.b.Kq(this.X,this.jn))};f.Nj=function(){this.ea||(this.T=null)};f.Lm=function(){this.ea||!this.A.length||this.T||(this.T=this.b.M.ye(this.X,!0,this.b.sb,this.Dh))};f.zp=function(){this.ea||this.T||!this.b.M||
(this.T=this.b.M.ye(this.X,!0,this.b.sb,this.Dh))};f.pn=function(){this.ea||this.A.length||!this.T||(this.b.M.deleteTexture(this.T),this.T=null)};f.dq=function(a){a.drawImage(this.X,0,0)};g.prototype.init=function(){var a=this.Xb;this.x=a.x-a.Pu/2+Math.random()*a.Pu;this.y=a.y-a.Qu/2+Math.random()*a.Qu;this.speed=a.$x-a.qu/2+Math.random()*a.qu;this.C=a.C-a.tq/2+Math.random()*a.tq;this.opacity=a.Yx;this.size=a.Zx-a.pu/2+Math.random()*a.pu;this.Gs=a.Nx-a.Hs/2+Math.random()*a.Hs;this.mj=this.gm=0};g.prototype.ra=
function(a){var b=this.Xb;this.x+=Math.cos(this.C)*this.speed*a;this.y+=Math.sin(this.C)*this.speed*a;this.y+=this.gm*a;this.speed+=b.jb*a;this.size+=this.Gs*a;this.gm+=b.gh*a;this.mj+=a;1>this.size?this.W=!1:(0!==b.tp&&(this.C+=Math.random()*b.tp*a-b.tp*a/2),0!==b.wp&&(this.speed+=Math.random()*b.wp*a-b.wp*a/2),0!==b.up&&(this.opacity+=Math.random()*b.up*a-b.up*a/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=b.Ul&&this.mj>=b.timeout&&(this.W=!1),2===b.Ul&&0>=this.speed&&(this.W=
!1))};g.prototype.gc=function(a){var b=this.Xb.opacity*this.opacity;if(0!==b){0===this.Xb.Ul&&(b*=1-this.mj/this.Xb.timeout);a.globalAlpha=b;var b=this.x-this.size/2,e=this.y-this.size/2;this.Xb.b.xd&&(b=b+.5|0,e=e+.5|0);a.drawImage(this.Xb.type.X,b,e,this.size,this.size)}};g.prototype.Tb=function(a){var b=this.Xb.opacity*this.opacity;0===this.Xb.Ul&&(b*=1-this.mj/this.Xb.timeout);var e=this.size,h=e*this.Xb.iF,c=this.x-e/2,k=this.y-e/2;this.Xb.b.xd&&(c=c+.5|0,k=k+.5|0);1>h||0===b||(h<a.sP||h>a.Ny?
(a.Gg(b),a.Tm(c,k,c+e,k,c+e,k+e,c,k+e)):a.QP(this.x,this.y,h,b))};g.prototype.left=function(){return this.x-this.size/2};g.prototype.right=function(){return this.x+this.size/2};g.prototype.top=function(){return this.y-this.size/2};g.prototype.bottom=function(){return this.y+this.size/2};l.J=function(a){this.type=a;this.b=a.b};var f=l.J.prototype,b=[];f.I=function(){var a=this.B;this.jq=a[0];this.tq=K(a[1]);this.nl=a[2];this.Nz=!0;this.$x=a[3];this.Zx=a[4];this.Yx=a[5]/100;this.Nx=a[6];this.Pu=a[7];
this.Qu=a[8];this.qu=a[9];this.pu=a[10];this.Hs=a[11];this.jb=a[12];this.gh=a[13];this.tp=a[14];this.wp=a[15];this.up=a[16];this.Ul=a[17];this.timeout=a[18];this.hl=0;this.iF=1;this.It=this.x;this.Kt=this.y;this.Jt=this.x;this.Ht=this.y;this.JL(function(a){a.za.set(a.It,a.Kt,a.Jt,a.Ht);a.Wa.ml(a.za);a.Ir=!1;a.dA();a.vG()});this.Ib||(this.Sc=[]);this.b.Ig(this);this.type.zp();if(1===this.nl)for(a=0;a<this.jq;a++)this.Br().opacity=0;this.Bo=!0};f.P=function(){var a={r:this.jq,sc:this.tq,st:this.nl,
s:this.Nz,isp:this.$x,isz:this.Zx,io:this.Yx,gr:this.Nx,xr:this.Pu,yr:this.Qu,spr:this.qu,szr:this.pu,grnd:this.Hs,acc:this.jb,g:this.gh,lar:this.tp,lsr:this.wp,lor:this.up,dm:this.Ul,to:this.timeout,pcc:this.hl,ft:this.Bo,p:[]},b,e,h,c=a.p;b=0;for(e=this.Sc.length;b<e;b++)h=this.Sc[b],c.push([h.x,h.y,h.speed,h.C,h.opacity,h.Gs,h.size,h.gm,h.mj]);return a};f.ca=function(a){this.jq=a.r;this.tq=a.sc;this.nl=a.st;this.Nz=a.s;this.$x=a.isp;this.Zx=a.isz;this.Yx=a.io;this.Nx=a.gr;this.Pu=a.xr;this.Qu=
a.yr;this.qu=a.spr;this.pu=a.szr;this.Hs=a.grnd;this.jb=a.acc;this.gh=a.g;this.tp=a.lar;this.wp=a.lsr;this.up=a.lor;this.Ul=a.dm;this.timeout=a.to;this.hl=a.pcc;this.Bo=a.ft;b.push.apply(b,this.Sc);H(this.Sc);var d,e,h,c=a.p;a=0;for(d=c.length;a<d;a++)e=this.Br(),h=c[a],e.x=h[0],e.y=h[1],e.speed=h[2],e.C=h[3],e.opacity=h[4],e.Gs=h[5],e.size=h[6],e.gm=h[7],e.mj=h[8]};f.Pb=function(){b.push.apply(b,this.Sc);H(this.Sc)};f.Br=function(){var a;b.length?(a=b.pop(),a.Xb=this):a=new g(this);this.Sc.push(a);
a.W=!0;return a};f.ra=function(){var a=this.b.de(this),d,e,h,c;if(0===this.nl&&this.Nz)for(this.hl+=a*this.jq,e=sa(this.hl),this.hl-=e,d=0;d<e;d++)h=this.Br(),h.init();this.It=this.x;this.Kt=this.y;this.Jt=this.x;this.Ht=this.y;c=d=0;for(e=this.Sc.length;d<e;d++)h=this.Sc[d],this.Sc[c]=h,this.b.la=!0,1===this.nl&&this.Bo&&h.init(),h.ra(a),h.W?(h.left()<this.It&&(this.It=h.left()),h.right()>this.Jt&&(this.Jt=h.right()),h.top()<this.Kt&&(this.Kt=h.top()),h.bottom()>this.Ht&&(this.Ht=h.bottom()),c++):
b.push(h);Fa(this.Sc,c);this.S();this.Bo=!1;1===this.nl&&0===this.Sc.length&&this.b.ne(this)};f.gc=function(a){var b,e,h,c=this.F;b=0;for(e=this.Sc.length;b<e;b++)h=this.Sc[b],h.right()>=c.Ra&&h.bottom()>=c.Ua&&h.left()<=c.bb&&h.top()<=c.fb&&h.gc(a)};f.Tb=function(a){this.iF=this.F.Jc();a.zd(this.type.T);var b,e,h,c=this.F;b=0;for(e=this.Sc.length;b<e;b++)h=this.Sc[b],h.right()>=c.Ra&&h.bottom()>=c.Ua&&h.left()<=c.bb&&h.top()<=c.fb&&h.Tb(a)};l.n=new function(){};m.prototype.jk=function(a){this.nc=
a;this.Ff=jb(a);kb(this,a,this.b.ba);this.b.la=!0};m.prototype.tK=function(a){this.jq=a;var d;if(1===this.nl&&this.Bo)if(a<this.Sc.length)for(a=this.Sc.length-a,d=0;d<a;d++)b.push(this.Sc.pop());else if(a>this.Sc.length)for(a=a-this.Sc.length,d=0;d<a;d++)this.Br().opacity=0};m.prototype.uK=function(a){this.tq=K(a)};m.prototype.NB=function(a){this.gh=a};l.q=new m;l.D=new function(){}})();function Wc(g){this.b=g}
(function(){function g(){}function m(){}function l(){}var f=Wc.prototype;f.L=function(a){this.G=a;this.b=a.b};f.L.prototype.I=function(){};f.J=function(a){this.type=a;this.b=a.b};var b=f.J.prototype;b.I=function(){this.uu=this.B[0];this.WD=1==this.B[1];this.wu={};this.Xa=this.NC=null;this.dg("_")};b.Ek=function(a){null==a?a=0:this.WD&&(a=eval("("+a+")"));return a};b.NH=function(a){return null!=this.wu[a]};b.dg=function(a){this.NC!==a&&(this.NH(a)||(this.wu[a]=new Wc.qf(this)),this.NC=a,this.Xa=this.wu[a])};
b.gv=function(a,b,e){null!=e&&this.dg(e);return this.Xa.Kh(a,b)};b.Va=function(a,b,e,h){null!=h&&this.dg(h);this.Xa.Lv(b,e,a)};b.IA=function(a){null!=a&&this.dg(a);return this.Xa.IA()};b.hv=function(a){null!=a&&this.dg(a);return this.Xa.hv()};b.Zv=function(a){null!=a&&this.dg(a);return this.Xa.VK()};b.P=function(){var a,b={};for(a in this.wu)this.dg(a),b[a]={d:this.Xa.table,k:this.Xa.keys,i:this.Xa.items};return{d:b,delimiter:this.uu}};b.ca=function(a){var b=a.d,e,h;for(h in b)this.dg(h),e=b[h],this.Xa.table=
e.d,this.Xa.keys=e.k,this.Xa.items=e.i;this.uu=a.delimiter};f.n=new g;g.prototype.FA=function(){this.Xa.FA();return!1};g.prototype.cv=function(a){this.Xa.cv(a);return!1};g.prototype.bv=function(){this.Xa.bv();return!1};g.prototype.GA=function(a){this.Xa.GA(a);return!1};f.q=new m;m.prototype.pI=function(a){this.Xa.xL(a)};m.prototype.Lv=function(a,b,e){this.Xa.Lv(a,b,e)};m.prototype.Zi=function(){this.Xa.Zi()};m.prototype.AA=function(a,b){this.Xa.AA(a,b)};m.prototype.dg=function(a){this.dg(a)};m.prototype.WB=
function(a){this.Xa.QA(a)};m.prototype.WB=function(a){this.Xa.QA(a)};m.prototype.rA=function(a,b){this.Xa.rA(a,b)};m.prototype.sA=function(a,b){this.Xa.sA(a,b)};m.prototype.CB=function(a){"number"===typeof a&&(a=this.Xa.keys[a]);this.Xa.CB(a)};m.prototype.Jv=function(a){"number"===typeof a&&(a=this.Xa.items[a]);this.Xa.Jv(a)};m.prototype.TB=function(a,b){this.Xa.TB(a,b)};m.prototype.UB=function(a,b){this.Xa.UB(a,b)};m.prototype.zA=function(a,b){this.Xa.zA(a,b)};f.D=new l;l.prototype.Kh=function(a,
b,e,h,c){null!=h&&this.dg(h);"number"===typeof b&&(b=this.Xa.keys[b]);"number"===typeof e&&(e=this.Xa.items[e]);b=this.gv(b,e,h);null==b&&(b=null==c?0:c);a.ie(b)};l.prototype.jH=function(a){a.Fa(this.Xa.ii)};l.prototype.CA=function(a){a.ie(this.Xa.Kh(this.Xa.zj,this.Xa.ii))};l.prototype.Zv=function(a,b){a.Fa(this.Zv(b))};l.prototype.LJ=function(a,b){a.R(this.hv(b))}})();
(function(){function g(f,b,a){"number"==typeof f?f=f.toString():(b&&(f='"'+f+'"'),null==a&&(a=","),b=-1!=f.indexOf(a)||-1!=f.indexOf("\n"),-1!=f.indexOf('"')&&(f=f.replace(/"/g,'""'),b=!0),b&&(f='"'+f+'"'));return f}Wc.qf=function(f){this.G=f;this.table={};this.keys=[];this.items=[];this.ii=this.zj=""};var m=Wc.qf.prototype;m.Zi=function(){for(var f in this.table)delete this.table[f];this.keys.length=0;this.items.length=0};m.VK=function(){return JSON.stringify({table:this.table,keys:this.keys,items:this.items})};
m.QA=function(f){f=JSON.parse(f);try{this.table=f.table,this.keys=f.keys,this.items=f.items}catch(b){this.table=f}};m.lL=function(){var f=this.keys,b=this.keys.length,a,d;for(a=0;a<b;a++)d=f[a],null==this.table[d]&&(this.table[d]={})};m.kL=function(f){var b=f.shift(),a=this.keys,d=this.keys.length,e=this.table,h,c;for(h=0;h<d;h++)c=this.G.Ek(f[h]),e[a[h]][b]=c;this.items.push(b)};m.xL=function(f){if(""!=f){for(var b=this.G.uu,b=b||",",a=new RegExp("(\\"+b+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+
b+"\\r\\n]*))","gi"),d=[[]],e=null;e=a.exec(f);){var h=e[1];h.length&&h!=b&&d.push([]);e=e[2]?e[2].replace(/""/g,'"'):e[3];d[d.length-1].push(e)}this.keys=d.shift();this.lL();f=d.length;for(b=0;b<f;b++)this.kL(d[b])}};m.Kh=function(f,b){var a;a=this.table[f];if(null==a)return null;a=a[b];return null==a?null:a};m.Lv=function(f,b,a){var d;d=this.table[f];null!=d&&(d=d[b],null!=d&&(this.table[f][b]=a))};m.zA=function(f,b){var a=0==b?parseInt:parseFloat,d=this.items,e=d.length,h=this.table,c,k;for(c=
0;c<e;c++)k=h[f][d[c]],h[f][d[c]]=a(k)};m.AA=function(f,b){var a=0==b?parseInt:parseFloat,d=this.keys,e=d.length,h=this.table,c,k;for(c=0;c<e;c++)k=h[d[c]][f],h[d[c]][f]=a(k)};m.rA=function(f,b){if(-1==this.keys.indexOf(f)){var a=!1;if(0<this.keys.length)var d=this.table[this.keys[0]],a=!0;var e={},h=this.items,c=h.length,k;for(k=0;k<c;k++)e[h[k]]=a?"number"==typeof d[h[k]]?0:"":b;this.table[f]=e;this.keys.push(f)}};m.sA=function(f,b){if(-1==this.items.indexOf(f)){var a=this.keys,d=a.length,e=this.table,
h;for(h=0;h<d;h++)e[a[h]][f]=b;this.items.push(f)}};m.CB=function(f){var b=this.keys.indexOf(f);-1!=b&&(delete this.table[f],this.keys.splice(b,1))};m.Jv=function(f){var b=this.items.indexOf(f);if(-1!=b){var a=this.keys,d=a.length,e=this.table,h;for(h=0;h<d;h++)delete e[a[h]][f];this.items.splice(b,1)}};m.FA=function(){var f=this.G.b.wb(),b=f.Cb,f=f.qi();this.zj="";var a=this.keys,d=a.length,e;for(e=0;e<d;e++)f&&this.G.b.ge(b.qa),this.zj=a[e],b.Yd(),f&&this.G.b.yd(b.qa);this.zj=""};m.cv=function(f){if(-1!=
this.keys.indexOf(f)){this.zj=f;var b=this.G.b.wb();f=b.Cb;b=b.qi();this.ii="";var a=this.items,d=a.length,e;for(e=0;e<d;e++)b&&this.G.b.ge(f.qa),this.ii=a[e],f.Yd(),b&&this.G.b.yd(f.qa);this.ii=""}};m.bv=function(){var f=this.G.b.wb(),b=f.Cb,f=f.qi();this.ii="";var a=this.items,d=a.length,e;for(e=0;e<d;e++)f&&this.G.b.ge(b.qa),this.ii=a[e],b.Yd(),f&&this.G.b.yd(b.qa);this.ii=""};m.GA=function(f){if(-1!=this.items.indexOf(f)){this.ii=f;var b=this.G.b.wb();f=b.Cb;b=b.qi();this.zj="";var a=this.keys,
d=a.length,e;for(e=0;e<d;e++)b&&this.G.b.ge(f.qa),this.zj=a[e],f.Yd(),b&&this.G.b.yd(f.qa);this.zj=""}};m.IA=function(){return this.keys.length};m.hv=function(){return this.items.length};m.TB=function(f,b){if(-1!=this.keys.indexOf(f)){var a=this;this.items.sort(function(d,e){var h=b,c=a.table[f][d],k=a.table[f][e];1<h&&(c=parseFloat(c),k=parseFloat(k),h-=2);return c>k?h?-1:1:c<k?h?1:-1:0})}};m.UB=function(f,b){if(-1!=this.items.indexOf(f)){var a=this;this.keys.sort(function(d,e){var h=b,c=a.table[d][f],
k=a.table[e][f];1<h&&(c=parseFloat(c),k=parseFloat(k),h-=2);return c>k?h?-1:1:c<k?h?1:-1:0})}};var l=[];m.Va=function(){var f=this.G.uu,b=this.G.WD,a="",d,e=this.keys.length;for(d=0;d<e;d++)a+=f+g(this.keys[d],!1,f);l.push(a);var h,c=this.items.length;for(h=0;h<c;h++){a=g(this.items[h],!1,f);for(d=0;d<e;d++)a+=f+g(this.table[this.keys[d]][this.items[h]],b,f);l.push(a)}f=l.join("\n");l.length=0;return f}})();function Xc(g){this.b=g}
(function(){function g(){}function m(){}var l=Xc.prototype;l.L=function(b){this.G=b;this.b=b.b};l.L.prototype.I=function(){};l.J=function(b){this.type=b;this.b=b.b};var f=l.J.prototype;f.I=function(){};f.Pb=function(){};l.n=new g;g.prototype.XA=function(){return!0};l.q=new m;m.prototype.XA=function(){};l.D=new function(){}})();function Yc(g){this.b=g}
(function(){function g(a){return null!=a?new Date(a):new Date}function m(){}function l(){}var f=Yc.prototype;f.L=function(a){this.G=a;this.b=a.b};f.L.prototype.I=function(){};f.J=function(a){this.type=a;this.b=a.b};var b=f.J.prototype;b.I=function(){this.$a={}};b.P=function(){return{tims:this.$a}};b.ca=function(a){this.$a=a.tims};f.n=new function(){};f.q=new m;m.prototype.Xv=function(a){var b=this.$a,e=this.$a[a],h;e||(e={});h||(h=(new Date).getTime());e.state=1;e.start=h;e.acc=0;b[a]=e};m.prototype.Kv=
function(a){(a=this.$a[a])&&1!==a.state&&(a.state=1,a.start=(new Date).getTime())};f.D=new l;l.prototype.Date=function(a,b){a.R(g(b).getDate())};l.prototype.PH=function(a,b){a.R(g(b).getHours())};l.prototype.sI=function(a,b){a.R(g(b).getMinutes())}})();function Zc(g){this.b=g}
(function(){function g(){}function m(){}function l(){}var f=Zc.prototype;f.L=function(a){this.G=a;this.b=a.b};f.L.prototype.I=function(){};f.J=function(a){this.type=a;this.b=a.b};var b=f.J.prototype;b.I=function(){this.Nd=1==this.B[0];var a=this.B[1],a=""!=a?a:"Off";this.Ib?this.md.pe(this,"Off",a):this.md=new Zc.Va(this,"Off",a);this.rk=this.kd=null;this.Lc=!1;this.Lp=null};b.Zd=function(a){this.Lc=!1;this.b.trigger(a,this);return this.Lc};b.Ix=function(){this.Lp=null;this.Zd(Zc.prototype.n.tv)||
this.Zd(Zc.prototype.n.sv);return this.Lp};b.P=function(){return{en:this.Nd,fsm:this.md.P()}};b.ca=function(a){this.Nd=a.en;this.md.ca(a.fsm)};f.n=new g;g.prototype.Hn=function(a){a=this.kd==a;this.Lc|=a;return a};g.prototype.qv=function(){return!0};g.prototype.In=function(a){a=this.kd==a;this.Lc|=a;return a};g.prototype.rv=function(){return!0};g.prototype.Av=function(a,b){var e=this.kd==a&&this.rk==b;this.Lc|=e;return e};g.prototype.xv=function(){return!0};g.prototype.tv=function(a){a=this.md.Zc==
a;this.Lc|=a;return a};g.prototype.lv=function(a){return this.md.Zc==a};g.prototype.sv=function(){return!0};f.q=new m;m.prototype.ik=function(a){this.Nd=1==a};m.prototype.Qh=function(){this.Nd&&this.md.Qh()};m.prototype.jv=function(a){this.Nd&&this.md.Qh(a)};f.D=new l;l.prototype.Zc=function(a){a.Fa(this.md.Zc)};l.prototype.oe=function(a){a.Fa(this.md.oe)}})();
(function(){Zc.Va=function(g,l,f){this.pe(g,l,f)};var g=Zc.Va.prototype;g.pe=function(g,l,f){this.G=g;this.oe=l;this.Zc=f};g.Qh=function(g){if(null==g&&(g=this.G.Ix(),null==g))return;this.oe=this.Zc;this.Zc=g;g=this.oe;var l=this.Zc;this.G.Zd(Zc.prototype.n.xv);this.sw(g,l)||(this.rw(g),this.qw(l))};g.sw=function(g,l){this.G.kd=g;this.G.rk=l;var f=this.G.Zd(Zc.prototype.n.Av);this.G.kd=null;this.G.rk=null;return f};g.rw=function(g){this.G.kd=g;g=this.G.Zd(Zc.prototype.n.In);this.G.kd=null;g||this.G.Zd(Zc.prototype.n.rv)};
g.qw=function(g){this.G.kd=g;g=this.G.Zd(Zc.prototype.n.Hn);this.G.kd=null;g||this.G.Zd(Zc.prototype.n.qv)};g.P=function(){return{ps:this.oe,cs:this.Zc}};g.ca=function(g){this.oe=g.ps;this.Zc=g.cs}})();function $c(g){this.b=g}
(function(){function g(a){for(var b in a)delete a[b]}function m(a){if(""===a)return null;if("string"===typeof a)try{return JSON.parse(a)}catch(b){return null}else{if("number"===typeof a){e.length=a;var d;for(d=0;d<a;d++)e[d]=null;return e}return a}}function l(){}function f(){}function b(){}var a=$c.prototype;a.I=function(){a.q.Zf=function(){this.b.ne(this);this.MF(0)}};a.L=function(a){this.G=a;this.b=a.b};a.L.prototype.I=function(){};a.J=function(a){this.type=a;this.b=a.b};var d=a.J.prototype;d.I=
function(){this.V=new $c.Fd(this);this.Ed=1===this.B[6];this.cE=1===this.B[5];this.V.Qn(this.B[1]);this.V.XJ(this.B[2]);this.V.kk(this.B[3]);this.V.LB(this.B[4]);this.lc=!0;this.Fc=this.tb=0;this.Ec={};this.tf={};this.Ih=this.Ui=this.bk=this.ck=0;this.Cg=this.x;this.Dg=this.y;this.Bg=this.li();this.cq=this.Fs();this.Xs=this.Ws=this.ri=this.si=!1;this.be=null;this.cx=this.bx=this.Bk=0;this.b.Rz(this);this.Xk=null};d.gc=function(){};d.Tb=function(){};d.Wf=function(){var a=this.li(),b=this.Fs(),d=this.cq!==
b,e=this.Cg!==this.x,h=this.Dg!==this.y;if(this.Bg!==a||d||e||h)this.lc=!0;this.lc&&(this.update(),this.Cg=this.x,this.Dg=this.y,this.Bg=a,this.cq=b)};d.Pb=function(){};d.li=function(){return this.Ed?this.height:this.width};d.Fs=function(){return this.Ed?this.width:this.height};d.update=function(a){this.lc=!1;a&&(this.fq(),this.Jo());this.fq();this.Jz();this.Jo();this.Bk=-1};d.fq=function(){var a=this.tf;this.tf=this.Ec;this.Ec=a;g(this.Ec)};d.Jz=function(){var a=this.V.MA(-this.tb);0>a&&(a=0);var b=
this.V.aC(-this.Fc);0>b&&(b=0);var d=this.V.Tn(b,a),e=this.Hx(),h=this.xO(),f=this.V.H.length-1,g=this.V.Ke-1,l;this.bk=this.ck=this.Ih=this.Ui=null;for(var m=this.Jx(b),r=m,y=this.Kx(a);y<e&&d<=f;)this.V.Nh(d)&&(null===this.Ui&&(this.Ih=this.Ui=a),null===this.ck&&(this.bk=this.ck=b),this.Ih<a&&(this.Ih=a),this.bk<b&&(this.bk=b),this.Ec[d]=!0,l=this.V.Db(d),l.Sv(r,y),this.tf.hasOwnProperty(d)?l.Ev():this.Iz(d,r,y)),r+=this.V.ai,r<h&&b<g?b+=1:(r=m,y+=this.V.An(a),b=this.ck,a+=1),d=this.V.Tn(b,a)};
d.Iz=function(a,b,d){this.Bk=a;this.Ed?(this.bx=b,this.cx=d):(this.bx=d,this.cx=b);this.b.trigger($c.prototype.n.aB,this)};d.Jo=function(){for(var a in this.tf)this.Ec.hasOwnProperty(a)||this.Qx(a)};d.Qx=function(a){this.Bk=parseInt(a);this.b.trigger($c.prototype.n.GI,this);this.V.Mh(a)};d.Jx=function(a){this.ja();return this.Fc+this.V.WG(a-1)+(this.Ed?this.Wa.xa:this.Wa.ya)};d.Kx=function(a){this.ja();var b=this.Ed?this.Wa.ya:this.Wa.xa;return this.tb+this.V.GB(a-1)+b};d.Hx=function(){this.ja();
return this.Ed?this.Wa.Lb:this.Wa.Rb};d.xO=function(){this.ja();return this.Ed?this.Wa.Rb:this.Wa.Lb};d.pq=function(a){var b=this.Zo(a,0),d=this.Zo(a,1);if(this.cE){var e=this.V.Qq(),h=this.V.MA(this.li(),!0);e<h?a=0:0<a?a=0:(e=this.mi(),a<-e&&(a=-e))}this.tb!==a&&(this.lc=!0,this.tb=a);b&&!this.si&&(this.be=0,this.b.trigger($c.prototype.n.Nn,this),this.be=null);d&&!this.ri&&(this.be=1,this.mi(),this.b.trigger($c.prototype.n.Nn,this),this.be=null);this.si=b;this.ri=d};d.MG=function(a){var b=this.aE(a,
0),d=this.aE(a,1);if(this.cE){var e=this.V.Ke,h=this.V.aC(this.Fs(),!0);e<h?a=0:0<a?a=0:NaN>a&&(a=NaN)}this.Fc!==a&&(this.lc=!0,this.Fc=a);b&&!this.Ws&&(this.be=0,this.b.trigger($c.prototype.n.oB,this),this.be=null);d&&!this.Xs&&(this.be=1,this.b.trigger($c.prototype.n.oB,this),this.be=null);this.Ws=b;this.Xs=d};d.cp=function(a){if(null==this.Ui)return!1;var b=this.V.TA(a);a=this.V.mI(a);return b>=this.Ui&&b<=this.Ih&&a>=this.ck&&a<=this.bk};var e=[];d.MF=function(a){0>a&&(a=0);this.V.kk(a)&&(this.lc=
!0)};d.mH=function(a,b){this.V.LB(a)&&!b&&(this.lc=!0)};d.qf=function(a,b){b=m(b);if(null!==b){var d=b.length;if(this.cp(a)){var e;for(e=0;e<d;e++)delete this.Ec[a+e],this.Ec[this.Ih+1+e]=!0}this.V.Rq(a,b);this.lc=!0}};d.tA=function(a,b){var d=this.V.H.length;a+b>d&&(b=d-a);if(this.cp(a))for(d=0;d<b;d++)delete this.Ec[this.Ih-d];d=this.V.cr(a,b);JSON.stringify(d);this.lc=!0};d.Va=function(a,b,d){var e=this.V.H.length,h=null==a?0:Math.min(a,b);a=null==b?e-1:Math.max(a,b);0>h&&(h=0);a>e&&(a=e-1);b=
this.b.wb();e=b.Cb;for(b=b.qi();h<=a;h++)if(!d||d(h))b&&this.b.ge(e.qa),this.Bk=h,e.Yd(),b&&this.b.yd(e.qa);return!1};d.mi=function(){var a=this.V.HH(),b=this.li();return a>b?a-b:0};d.Fd=function(){};d.Zo=function(a,b){return 0===b?0<a:a<-this.mi()};d.aE=function(a,b){return 0===b?0<a:NaN>a};d.Xn=function(a,b){if(null==a)return null;var d=this.b.Td(a);if(null==d)return null;if(null==b||d.type==b)return d;if(b.ea){var e=d.type.Wb,h=e.length,f;for(f=0;f<h;f++)if(b==e[f])return d}return null};d.yl=function(a,
b){var d=this.V.Db(a,!0);if(null==d)return!1;var e=d.Za,d=b.ga();d.na=!1;d.A.length=0;for(var h in e)e=this.Xn(h,b),null!=e&&d.A.push(e);b.jd();return 0<d.A.length};var h={};d.Ji=function(a){a=this.V.Db(a,!0);if(null==a)return!1;a=a.Za;var b,d,e;g(h);d=!1;for(b in a)a=this.Xn(b),null!=a&&(d=a.type,e=d.ga(),d.name in h||(e.na=!1,e.A.length=0,h[d.name]=d),e.A.push(a),d=!0);for(var f in h)h[f].jd();g(h);return d};d.P=function(){this.Cg=this.x;this.Dg=this.y;this.Bg=this.height;this.cq=this.width;return{update_flag:this.lc,
OY:this.tb,OX:this.Fc,lines_mgr:this.V.P(),visible_lines:this.Ec,pre_visible_lines:this.tf,visibleY_start:this.Ui,visibleY_end:this.Ih,visibleX_start:this.ck,visibleX_end:this.bk,pre_instX:this.Cg,pre_instY:this.Dg,pre_instHeight:this.Bg,pre_instWidth:this.cq,topb:this.si,bottomb:this.ri,leftb:this.Ws,rightb:this.Xs}};d.ca=function(a){this.lc=a.update_flag;this.tb=a.OY;this.Fc=a.OX;this.Xk=a.lines_mgr;this.Ec=a.visible_lines;this.tf=a.pre_visible_lines;this.Ui=a.visibleY_start;this.Ih=a.visibleY_end;
this.ck=a.visibleX_start;this.bk=a.visibleX_end;this.Cg=a.pre_instX;this.Dg=a.pre_instY;this.Bg=a.pre_instHeight;this.cq=a.pre_instWidth;this.si=a.topb;this.ri=a.bottomb;this.Ws=a.leftb;this.Xs=a.rightb};d.Kb=function(){this.V.Kb(this.Xk);this.Xk=null};a.n=new l;l.prototype.aB=function(){return!0};l.prototype.GI=function(){return!0};l.prototype.Nn=function(a){return 0===a||1===a?this.be===a:!0};l.prototype.oB=function(a){return 0===a||1===a?this.be===a:!0};a.q=new f;f.prototype.Yu=function(a){this.pq(this.tb+
a)};f.prototype.xJ=function(a,b){if(a&&-1!=this.Bk){if(null==b)b=this.Bk;else if(!this.Ec[b])return;var d=a.ga().vc(),e,h=d.length;for(e=0;e<h;e++)this.V.Vu(b,d[e])}};f.prototype.RJ=function(a){this.MF(a)};f.prototype.OB=function(a){a=this.mi()*a;this.pq(-a)};f.prototype.Vv=function(a,b,d){this.V.ag(a,b,d)};a.D=new b;b.prototype.PG=function(a){a.R(this.Bk)};b.prototype.QG=function(a){a.K(this.bx)};b.prototype.RG=function(a){a.K(this.cx)};b.prototype.$K=function(a,b){var d;if(null!==this.Ui){var e,
h,f,g=!1;for(e=this.Ui;e<=this.Ih;e++){for(h=this.ck;h<=this.bk;h++)if(f=this.V.Tn(h,e),g=this.V.RA(f,b)){d=f;break}if(g)break}}null==d&&(d=-1);a.R(d)};b.prototype.Kh=function(a,b,d,e){b=this.V.$f(b,d);null==b&&(b=e||0);a.ie(b)};b.prototype.tb=function(a){a.K(this.tb)};b.prototype.Fc=function(a){a.K(this.Fc)}})();
(function(){function g(b){this.G=b;this.Za={};this.Ob={};this.qg=this.ya=this.xa=0}function m(){this.H=[]}var l=m.prototype;l.fg=function(){return 0<this.H.length?this.H.pop():null};l.eh=function(b){this.H.push(b)};var f=new m;$c.Fd=function(b){this.G=b;this.H=[];this.Ke=this.ai=this.Hc=0;this.Qd=!0;this.Jg=null};l=$c.Fd.prototype;l.kk=function(b){var a=this.H.length;if(a===b)return!1;if(a>b){var d,e;for(d=b;d<a;d++)if(e=this.H[d])e.yn(),f.eh(e);this.H.length=b}else if(a<b)for(this.H.length=b,d=a;d<
b;d++)this.H[d]=null;Math.floor(a/this.Ke)!==Math.floor(b/this.Ke)&&(this.Jg=null);return!0};l.LB=function(b){if(this.Ke===b)return!1;this.Ke=b;this.Jg=null;return!0};l.Fd=function(){return this.H.length};l.Nh=function(b){return 0<=b&&b<this.H.length};l.ek=function(){var b=f.fg();null==b?b=new g(this.G):b.pe(this.G);return b};l.Db=function(b,a){if(!(b>=this.H.length||0>b))return null!=this.H[b]||a||(this.H[b]=this.ek()),this.H[b]};l.Vu=function(b,a){if(null!=a){var d=this.Db(b);null!=d&&d.Uu(a)}};
l.qf=function(b,a){var d=this.Db(b,!0);null!=d&&d.Iv(a)};l.RA=function(b,a){var d=this.Db(b,!0);if(null!=d)return d.kv(a)};l.Mh=function(b){b=this.Db(b,!0);null!=b&&b.Mh()};l.ag=function(b,a,d){if(null!=b)b=this.Db(b),null!=b&&b.ag(a,d);else{var e,h=this.H.length,c=null==d;for(e=0;e<h;e++)b=this.Db(e,c),null!=b&&b.ag(a,d)}};l.$f=function(b,a){var d=this.Db(b,!0);if(null!=d)return d.$f(a)};l.Rq=function(b,a){var d=a.length;0>b?b=0:b>this.H.length&&(b=this.H.length);this.H.length+=d;var e=b+d,h,c,f;
for(h=this.H.length-1;h>=b;h--)h>=e?this.H[h]=this.H[h-d]:(c=a[h-b],null==c?this.H[h]=null:(f=this.ek(),f.ag(c),this.H[h]=f))};l.cr=function(b,a){var d,e,h=[];h.length=a;for(d=0;d<a;d++)(e=this.Db(b+d,!0))?(h[d]=e.$f(),e.yn(),f.eh(e)):h[d]=null;e=this.H.length-1;for(d=b+a;d<=e;d++)this.H[d-a]=this.H[d];this.H.length-=a;return h};l.Va=function(b,a){var d,e,h=[];h.length=a;for(d=0;d<a;d++)e=this.Db(b+d,!0),h[d]=e?e.$f():null;return h};l.Qn=function(b){if(this.Hc===b)return!1;this.Hc=b;this.Jg=null;
return!0};l.XJ=function(b){this.ai!==b&&(this.ai=b)};l.Tn=function(b,a){return a*this.Ke+b};l.mI=function(b){return b%this.Ke};l.TA=function(b){return Math.floor(b/this.Ke)};l.$i=function(b){if(!this.Nh(b))return 0;this.Qd?b=this.Hc:(b=this.Db(b,!0),b=this.Hc+(b?b.qg:0));return b};l.Rn=function(b,a){if(this.Nh(b)){var d=this.TA(b),e=this.An(d);if(this.$i(b)===a)return!1;var h=a-this.Hc;this.Db(b).qg=h;0!==h&&(this.Qd=!1);d=this.An(d);d!==e&&null!==this.Jg&&(this.Jg+=d-e);return!0}};l.An=function(b){var a=
this.Ke;if(1<a){var d,e=0,h;for(d=0;d<a;d++)h=this.$i(this.Tn(d,b)),e<h&&(e=h);return e}return this.$i(this.Tn(0,b))};l.Ji=function(){return this.ai};l.Qq=function(){return Math.ceil(this.H.length/this.Ke)};l.MA=function(b,a){if(this.Qd){var d=b/this.Hc;return d=a?Math.ceil(d):Math.floor(d)}for(var e=this.Qq(),h=b,c,d=0;;)if(c=this.An(d),h-=c,c=0<=d&&d<e,0<h&&c)d+=1;else return 0!==h&&a&&(h=d,d+=1,(c=0<=d&&d<e)||(d=h)),d};l.aC=function(b,a){var d=b/this.ai;return d=a?Math.ceil(d):Math.floor(d)};l.GB=
function(b){if(this.Qd)return(b-0+1)*this.Hc;var a,d,e=0,h=!0;for(a=0;a<=b;a++)d=this.An(a),e+=d,d!==this.Hc&&(h=!1);b=b>=this.Qq()-1;h&&b&&(this.Qd=!0);return e};l.WG=function(b){return(b-0+1)*this.ai};l.HH=function(){null===this.Jg&&(this.Jg=this.GB(this.Qq()-1));return this.Jg};l.yl=function(){return this.Ke*this.ai};l.P=function(){var b,a=this.H.length,d=[],e;for(b=0;b<a;b++)e=(e=this.H[b])?e.P():null,d.push(e);return{lines:d,dlh:this.Hc,dlw:this.ai,cn:this.Ke,dlhm:this.Qd,trh:this.Jg}};l.Kb=
function(b){this.H.length=0;var a=b.lines,d,e,h=a.length;for(e=0;e<h;e++)if(d=a[e]){var c=this.ek();c.Kb(d);this.H.push(c)}else this.H.push(null);this.Hc=b.dlh;this.ai=b.dlw;this.Ke=b.cn;this.Qd=b.dlhm;this.Jg=b.trh};l=g.prototype;l.pe=function(b){this.G=b;this.qg=this.ya=this.xa=0};l.Sv=function(b,a){this.xa=b;this.ya=a};l.Uu=function(b){var a=b.uid;this.Za.hasOwnProperty(a)||(this.Za[a]={});a=this.Za[a];a.dx=b.x-this.Fo();a.dy=b.y-this.Go()};l.Iv=function(b){if(null!=b)this.Za.hasOwnProperty(b)&&
delete this.Za[b];else for(b in this.Za)delete this.Za[b]};l.kv=function(b){return this.Za.hasOwnProperty(b)};l.Ev=function(){var b,a,d,e=this.G.b;for(b in this.Za)if(a=e.Td(b)){d=this.Za[b];var h=this.Fo()+d.dx;d=this.Go()+d.dy;if(h!=a.x||d!=a.y)a.x=h,a.y=d,a.S()}else delete this.Za[b]};l.Va=function(){return this.Za};l.Fo=function(){return this.G.Ed?this.xa:this.ya};l.Go=function(){return this.G.Ed?this.ya:this.xa};l.Mh=function(){var b,a,d=this.G.b;for(b in this.Za)if(a=d.Td(b))Object.getPrototypeOf(a.type.G).q.Zf.call(a),
delete this.Za[b]};l.ag=function(b,a){if("object"!=typeof b)null!=a?this.Ob[b]=a:this.Ob.hasOwnProperty(b)&&delete this.Ob[b];else if(null===b)for(var d in this.Ob)delete this.Ob[d];else for(b in d=b,d)this.Ob[b]=d[b]};l.$f=function(b){if(null!=b)return this.Ob[b];var a={};for(b in this.Ob)a[b]=this.Ob[b];return a};l.yn=function(){this.Mh();for(var b in this.Ob)delete this.Ob[b]};l.P=function(){return{insts:this.Za,data:this.Ob,tlx:this.xa,tly:this.ya,dh:this.qg}};l.Kb=function(b){this.Za=b.insts;
this.Ob=b.data;this.xa=b.tlx;this.ya=b.tly;this.qg=b.dh}})();function ad(g){this.b=g}
(function(){function g(a){for(var b in a)delete a[b]}function m(a){if(""===a)return null;if("string"===typeof a)try{return JSON.parse(a)}catch(b){return null}else{if("number"===typeof a){e.length=a;var d;for(d=0;d<a;d++)e[d]=null;return e}return a}}function l(){}function f(){}function b(){}var a=ad.prototype;a.I=function(){a.q.Zf=function(){this.b.ne(this);this.PF(0)}};a.L=function(a){this.G=a;this.b=a.b};a.L.prototype.I=function(){};a.J=function(a){this.type=a;this.b=a.b};var d=a.J.prototype;d.I=
function(){this.V=new ad.Fd(this);this.Ed=1===this.B[4];this.bP=1===this.B[3];this.V.Qn(this.B[1]);this.lc=!0;this.tb=0;this.V.kk(this.B[2]);this.Ec={};this.tf={};this.ul=this.dk=0;this.Cg=this.x;this.Dg=this.y;this.Bg=this.li();this.ri=this.si=!1;this.be=null;this.hx=this.gx=this.Ck=0;this.b.Rz(this);this.Xk=null};d.gc=function(){};d.Tb=function(){};d.Wf=function(){var a=this.li(),b=this.Cg!==this.x,d=this.Dg!==this.y;if(this.Bg!==a||b||d)this.lc=!0;this.lc&&(this.update(),this.Cg=this.x,this.Dg=
this.y,this.Bg=a)};d.Pb=function(){};d.li=function(){return this.Ed?this.height:this.width};d.Fs=function(){return this.Ed?this.width:this.height};d.update=function(a){this.lc=!1;a&&(this.fq(),this.Jo());this.fq();this.Jz();this.Jo();this.Ck=-1};d.fq=function(){var a=this.tf;this.tf=this.Ec;this.Ec=a;g(this.Ec)};d.Jz=function(){var a=this.V.LA(-this.tb),b=this.Jx(),d=this.Kx(a),e=this.Hx(),h=this.V.H.length-1,f;for(this.ul=this.dk=null;d<e&&a<=h;)this.V.Nh(a)&&(null===this.dk&&(this.dk=a),this.ul=
a,this.Ec[a]=!0,f=this.V.Db(a),d+=f.Wy,f.Sv(b,d),this.tf.hasOwnProperty(a)?f.Ev():this.Iz(a,b,d)),d+=this.V.$i(a),a+=1};d.Iz=function(a,b,d){this.Ck=a;this.Ed?(this.gx=b,this.hx=d):(this.gx=d,this.hx=b);this.b.trigger(ad.prototype.n.lB,this)};d.Jo=function(){for(var a in this.tf)this.Ec.hasOwnProperty(a)||this.Qx(a)};d.Qx=function(a){this.Ck=parseInt(a);this.b.trigger(ad.prototype.n.$I,this);this.V.Mh(a)};d.Jx=function(){this.ja();return this.Ed?this.Wa.xa:this.Wa.ya};d.Kx=function(a){this.ja();var b=
this.Ed?this.Wa.ya:this.Wa.xa;return this.tb+this.V.SA(a-1)+b};d.Hx=function(){this.ja();return this.Ed?this.Wa.Lb:this.Wa.Rb};d.pq=function(a){var b=this.Zo(a,0),d=this.Zo(a,1);if(this.bP){var e=this.V.H.length,h=this.V.LA(this.li(),!0);e===h?a=0:0<a?a=0:(e=this.mi(),a<-e&&(a=-e))}this.tb!==a&&(this.lc=!0,this.tb=a);b&&!this.si&&(this.be=0,this.b.trigger(ad.prototype.n.Nn,this),this.be=null);d&&!this.ri&&(this.be=1,this.mi(),this.b.trigger(ad.prototype.n.Nn,this),this.be=null);this.si=b;this.ri=
d};d.cp=function(a){return null==this.dk?!1:a>=this.dk&&a<=this.ul};var e=[];d.PF=function(a){0>a&&(a=0);this.V.kk(a)&&(this.lc=!0)};d.NO=function(a,b){b=m(b);if(null!==b){var d=b.length;if(this.cp(a)){var e;for(e=0;e<d;e++)delete this.Ec[a+e],this.Ec[this.ul+1+e]=!0}this.V.Rq(a,b);this.lc=!0}};d.iQ=function(a,b){var d=this.V.H.length;a+b>d&&(b=d-a);if(this.cp(a))for(d=0;d<b;d++)delete this.Ec[this.ul-d];d=this.V.cr(a,b);JSON.stringify(d);this.lc=!0};d.Va=function(a,b,d){var e=this.V.H.length,h=null==
a?0:Math.min(a,b);a=null==b?e-1:Math.max(a,b);0>h&&(h=0);a>e&&(a=e-1);b=this.b.wb();e=b.Cb;for(b=b.qi();h<=a;h++)if(!d||d(h))b&&this.b.ge(e.qa),this.Ck=h,e.Yd(),b&&this.b.yd(e.qa);return!1};d.mi=function(){var a=this.V.GH(),b=this.li();return a>b?a-b:0};d.Zo=function(a,b){return 0===b?0<a:a<-this.mi()};d.Xn=function(a,b){if(null==a)return null;var d=this.b.Td(a);if(null==d)return null;if(null==b||d.type==b)return d;if(b.ea){var e=d.type.Wb,h=e.length,f;for(f=0;f<h;f++)if(b==e[f])return d}return null};
d.qf=function(a,b){var d=this.V.Db(a,!0);if(null==d)return!1;var e=d.Za,d=b.ga();d.na=!1;d.A.length=0;for(var h in e)e=this.Xn(h,b),null!=e&&d.A.push(e);b.jd();return 0<d.A.length};var h={};d.Fd=function(a){a=this.V.Db(a,!0);if(null==a)return!1;a=a.Za;var b,d,e;g(h);d=!1;for(b in a)a=this.Xn(b),null!=a&&(d=a.type,e=d.ga(),d.name in h||(e.na=!1,e.A.length=0,h[d.name]=d),e.A.push(a),d=!0);for(var f in h)h[f].jd();g(h);return d};d.P=function(){this.Cg=this.x;this.Dg=this.y;this.Bg=this.height;return{update_flag:this.lc,
OY:this.tb,lines_mgr:this.V.P(),visible_lines:this.Ec,pre_visible_lines:this.tf,visible_start:this.dk,visible_end:this.ul,pre_instX:this.Cg,pre_instY:this.Dg,pre_instHeight:this.Bg,topb:this.si,bottomb:this.ri}};d.ca=function(a){this.lc=a.update_flag;this.tb=a.OY;this.Xk=a.lines_mgr;this.Ec=a.visible_lines;this.tf=a.pre_visible_lines;this.dk=a.visible_start;this.ul=a.visible_end;this.Cg=a.pre_instX;this.Dg=a.pre_instY;this.Bg=a.pre_instHeight;this.si=a.topb;this.ri=a.bottomb};d.Kb=function(){this.V.Kb(this.Xk);
this.Xk=null};a.n=new l;l.prototype.lB=function(){return!0};l.prototype.$I=function(){return!0};l.prototype.Nn=function(a){return 0===a||1===a?this.be===a:!0};a.q=new f;f.prototype.Yu=function(a){this.pq(this.tb+a)};f.prototype.yJ=function(a){if(a&&-1!=this.Ck){a=a.ga().vc();var b,d=a.length;for(b=0;b<d;b++)this.V.Vu(this.Ck,a[b])}};f.prototype.kk=function(a){this.PF(a)};f.prototype.OB=function(a){a=this.mi()*a;this.pq(-a)};f.prototype.Vv=function(a,b,d){this.V.ag(a,b,d)&&(this.lc=!0)};f.prototype.cr=
function(a,b){this.iQ(a,b)};f.prototype.Rq=function(a,b){this.NO(a,b)};f.prototype.Qn=function(a){0>=a||!this.V.Qn(a)||(this.lc=!0)};f.prototype.Rn=function(a,b){!this.V.Nh(a)||0>b||!this.V.Rn(a,b)||(this.lc=!0)};f.prototype.EJ=function(){this.update(!0)};a.D=new b;b.prototype.lI=function(a){a.R(this.Ck)};b.prototype.nI=function(a){a.K(this.gx)};b.prototype.oI=function(a){a.K(this.hx)};b.prototype.WK=function(a){a.R(this.V.H.length)};b.prototype.Kh=function(a,b,d,e){b=this.V.$f(b,d);null==b&&(b=e||
0);a.ie(b)};b.prototype.tb=function(a){a.K(this.tb)};b.prototype.xH=function(a){a.R(this.dk||0)}})();
(function(){function g(b){this.Za={};this.Ob={};this.pe(b)}function m(){this.H=[]}var l=m.prototype;l.fg=function(){return 0<this.H.length?this.H.pop():null};l.eh=function(b){this.H.push(b)};var f=new m;ad.Fd=function(b){this.G=b;this.H=[];this.Hc=0;this.Qd=!0;this.Xf=null};l=ad.Fd.prototype;l.kk=function(b){var a=this.H.length;if(a===b)return!1;if(a>b){var d,e;for(d=b;d<a;d++)if(e=this.H[d])e.yn(),f.eh(e);this.H.length=b}else if(a<b)for(this.H.length=b,d=a;d<b;d++)this.H[d]=null;0===this.H.length&&
(this.Qd=!0);this.Xf=null;return!0};l.Fd=function(){return this.H.length};l.Nh=function(b){return 0<=b&&b<this.H.length};l.ek=function(){var b=f.fg();null==b?b=new g(this.G):b.pe(this.G);return b};l.Db=function(b,a){if(this.Nh(b))return null!=this.H[b]||a||(this.H[b]=this.ek()),this.H[b]};l.Vu=function(b,a){if(null!=a){var d=this.Db(b);null!=d&&d.Uu(a)}};l.qf=function(b,a){var d=this.Db(b,!0);null!=d&&d.Iv(a)};l.RA=function(b,a){var d=this.Db(b,!0);if(null!=d)return d.kv(a)};l.Mh=function(b){b=this.Db(b,
!0);null!=b&&b.Mh()};l.ag=function(b,a,d){if(null!=b)b=this.Db(b),null!=b&&b.ag(a,d);else{var e,h=this.H.length,c=null==d;for(e=0;e<h;e++)b=this.Db(e,c),null!=b&&b.ag(a,d)}};l.$f=function(b,a){var d=this.Db(b,!0);if(null!=d)return d.$f(a)};l.Rq=function(b,a){var d=a.length;0>b?b=0:b>this.H.length&&(b=this.H.length);this.H.length+=d;var e=b+d,h,c,f;for(h=this.H.length-1;h>=b;h--)h>=e?this.H[h]=this.H[h-d]:(c=a[h-b],null==c?this.H[h]=null:(f=this.ek(),f.ag(c),this.H[h]=f));this.Xf=null};l.cr=function(b,
a){var d,e,h=[];h.length=a;for(d=0;d<a;d++)(e=this.Db(b+d,!0))?(h[d]=e.$f(),e.yn(),f.eh(e)):h[d]=null;e=this.H.length-1;for(d=b+a;d<=e;d++)this.H[d-a]=this.H[d];this.H.length-=a;0===this.H.length&&(this.Qd=!0);this.Xf=null;return h};l.Va=function(b,a){var d,e,h=[];h.length=a;for(d=0;d<a;d++)e=this.Db(b+d,!0),h[d]=e?e.$f():null;return h};l.Qn=function(b){if(this.Hc===b)return!1;this.Hc=b;this.Xf=null;return!0};l.$i=function(b){if(!this.Nh(b))return 0;this.Qd?b=this.Hc:(b=this.Db(b,!0),b=this.Hc+(b?
b.qg:0));return b};l.Rn=function(b,a){if(this.Nh(b)){if(this.$i(b)===a)return!1;var d=a-this.Hc,e=this.Db(b),h=d-e.qg;e.qg=d;0!==d&&(this.Qd=!1);null!==this.Xf&&(this.Xf+=h);return!0}};l.LA=function(b,a){if(this.Qd){var d=b/this.Hc;return d=a?Math.ceil(d):Math.floor(d)}for(var e=this.H.length,h=b,c,d=0;;)if(c=this.$i(d),h-=c,c=0<=d&&d<e,0<h&&c)d+=1;else return 0!==h&&a&&(h=d,d+=1,(c=0<=d&&d<e)||(d=h)),d};l.SA=function(b){if(this.Qd)return(b-0+1)*this.Hc;var a,d,e=0,h=!0;for(a=0;a<=b;a++)d=this.$i(a),
e+=d,d!==this.Hc&&(h=!1);b=b>=this.H.length-1;h&&b&&(this.Qd=!0);return e};l.GH=function(){null===this.Xf&&(this.Xf=this.SA(this.H.length-1));return this.Xf};l.P=function(){var b,a=this.H.length,d=[],e;for(b=0;b<a;b++)e=(e=this.H[b])?e.P():null,d.push(e);return{lines:d,dlh:this.Hc,dlhm:this.Qd,tlh:this.Xf}};l.Kb=function(b){this.H.length=0;var a=b.lines,d,e=a.length,a=[],h;for(d=0;d<e;d++)if(h=a[d]){var c=this.ek();c.Kb(h);this.H.push(c)}else this.H.push(null);this.Hc=b.dlh;this.Qd=b.dlhm;this.Xf=
b.tlh};l=g.prototype;l.pe=function(b){this.G=b;this.qg=this.Wy=this.ya=this.xa=0};l.Sv=function(b,a){this.xa=b;this.ya=a};l.Uu=function(b){var a=b.uid;this.Za.hasOwnProperty(a)||(this.Za[a]={});a=this.Za[a];a.dx=b.x-this.Fo();a.dy=b.y-this.Go()};l.Iv=function(b){if(null!=b)this.Za.hasOwnProperty(b)&&delete this.Za[b];else for(b in this.Za)delete this.Za[b]};l.kv=function(b){return this.Za.hasOwnProperty(b)};l.Ev=function(){var b,a,d,e=this.G.b;for(b in this.Za)if(a=e.Td(b)){d=this.Za[b];var h=this.Fo()+
d.dx;d=this.Go()+d.dy;if(h!=a.x||d!=a.y)a.x=h,a.y=d,a.S()}else delete this.Za[b]};l.Va=function(){return this.Za};l.Fo=function(){return this.G.Ed?this.xa:this.ya};l.Go=function(){return this.G.Ed?this.ya:this.xa};l.Mh=function(){var b,a,d=this.G.b;for(b in this.Za)if(a=d.Td(b))Object.getPrototypeOf(a.type.G).q.Zf.call(a),delete this.Za[b]};l.ag=function(b,a){if("object"!=typeof b)null!=a?this.Ob[b]=a:this.Ob.hasOwnProperty(b)&&delete this.Ob[b];else if(null===b)for(var d in this.Ob)delete this.Ob[d];
else for(b in d=b,d)this.Ob[b]=d[b]};l.$f=function(b){if(null!=b)return this.Ob[b];var a={};for(b in this.Ob)a[b]=this.Ob[b];return a};l.yn=function(){this.Mh();for(var b in this.Ob)delete this.Ob[b]};l.P=function(){return{insts:this.Za,data:this.Ob,tlx:this.xa,tly:this.ya,offsety:this.Wy,dh:this.qg}};l.Kb=function(b){this.Za=b.insts;this.Ob=b.data;this.xa=b.tlx;this.ya=b.tly;this.Wy=b.offsety;this.qg=b.dh}})();function bd(g){this.b=g}
(function(){function g(){}function m(){}var l=bd.prototype;l.L=function(b){this.G=b;this.b=b.b};l.L.prototype.I=function(){};l.J=function(b){this.type=b;this.b=b.b};var f=l.J.prototype;f.I=function(){this.mode=this.B[0];var b=this.B[1];""!=b?this.ze=JSON.parse(b):this.ze={};this.Il=[];this.Md={};this.YF();this.iq=null;this.xo="";this.Vt=-1};f.xz=function(b){var a;this.Il.length=0;var d,e=0;for(a in b)d=b[a],0<d&&(e+=d);for(a in b)d=b[a],0<d&&this.Il.push({rate:d/e,pattern:a})};f.wO=function(){return null==
this.iq?Math.random():this.iq.random()};f.DD=function(b){var a=this.wO(),d="",e,h=b.length;for(e=0;e<h;e++)if(a-=b[e].rate,0>a){d=b[e].pattern;break}return d};f.YF=function(){var b,a;for(b in this.Md)delete this.Md[b];for(b in this.ze)a=this.ze[b],0<a&&(this.Md[b]=this.ze[b]);1==this.mode&&this.xz(this.Md);this.Tj=!1};f.ww=function(b,a){if(null!=b&&0!=a){this.Md.hasOwnProperty(b)||(this.Md[b]=0);this.Md[b]+=a;0>=this.Md[b]&&delete this.Md[b];var d;if(d=0==this.mode){d=this.Md;var e=!0,h;for(h in d){e=
!1;break}d=e}d&&(this.Tj=!0)}};f.vO=function(){var b;this.Tj&&this.YF();null==b?0==this.mode||2==this.mode?(this.xz(this.Md),b=this.DD(this.Il),this.ww(b,-1)):1==this.mode&&(b=this.DD(this.Il)):this.Md.hasOwnProperty(b)?0!=this.mode&&2!=this.mode||this.ww(b,-1):b="";return b};f.Va=function(b,a){return(a?this.Md:this.ze)[b]||0};f.P=function(){return{m:this.mode,pats:this.ze,pr:this.Il,spats:this.Md,rstf:this.Tj,randomuid:null!=this.iq?this.iq.uid:-1,lp:this.xo}};f.ca=function(b){this.mode=b.m;this.ze=
b.pats;this.Il=b.pr;this.Md=b.spats;this.Tj=b.rstf;this.Vt=b.randomuid;this.xo=b.lp};f.Kb=function(){var b;-1===this.Vt?b=null:b=this.b.Td(this.Vt);this.Vt=-1;this.iq=b};l.n=new function(){};l.q=new g;g.prototype.HJ=function(b){b in this.ze&&delete this.ze[b];this.Tj=!0};g.prototype.GJ=function(){for(var b in this.ze)delete this.ze[b];this.Tj=!0};g.prototype.QK=function(){this.Tj=!0};g.prototype.GG=function(b,a){""!=b&&(this.ze.hasOwnProperty(b)||(this.ze[b]=0),this.ze[b]+=a,this.Tj||(1==this.mode?
this.xz(this.Md):0!=this.mode&&2!=this.mode||this.ww(b,a)))};g.prototype.nv=function(b){var a;try{a=JSON.parse(b)}catch(d){return}this.ca(a)};l.D=new m;m.prototype.rJ=function(b){this.xo=this.vO();b.Fa(this.xo)};m.prototype.kI=function(b){b.Fa(this.xo)};m.prototype.xn=function(b){b.Fa(JSON.stringify(this.P()))}})();function cd(g){this.b=g}
(function(){function g(){var a=this.G;a.BN=this.Pg.name;a.MJ(this.Pg.Qr,this.Pg.Sa);0===this.Vn?this.Af():1<this.Vn&&(--this.Vn,this.Af())}function m(){this.H=[]}function l(){}var f=m.prototype;f.NL=function(a,b){var e;0<this.H.length?(e=this.H.pop(),e.pe()):e=a.zn(b);return e};f.GN=function(a){this.H.push(a)};cd.Aq=new m;f=cd.prototype;f.L=function(a){this.G=a;this.b=a.b};f.L.prototype.I=function(){};f.J=function(a){this.type=a;this.b=a.b};var b=f.J.prototype;b.I=function(){this.uG=this.B[0];this.dv=
1===this.uG;this.br=2===this.uG;this.wG=this.dv;(this.WQ=this.br)?this.rp=(new Date).getTime():this.rp=null;this.Ci=-1;this.Ia=new cd.Ji;(this.dv||this.br)&&this.b.Ig(this);this.Iw="TIMELINE";this.Ib||(this.$a={});this.Aq=cd.Aq;this.BN="";this.jo=this.kn=null};b.Pb=function(){this.Ia.wA();for(var a in this.$a)this.qM(a)};b.ra=function(){if(this.dv){if(this.wG){var a=this.b.de(this);this.Ia.DA(a)}}else if(this.br){var b=(new Date).getTime();this.WQ&&(a=(b-this.rp)/1E3,this.Ia.DA(a));this.rp=b}};b.zn=
function(a){var b=new cd.yl(this.Ia);b.UK(a);return b};b.ov=function(a,b){var e=this.zn(b);e.ca(a);e.Kb();return e};b.ON=function(){null===this.jo&&(this.jo=window.c2_callRexFunction2?"c2_callRexFunction2":window.c2_callFunction?"c2_callFunction":"");return this.jo};b.MJ=function(a,b){var e=this.ON();""===e||window[e](a,b)};b.Va=function(){return this.Ia.Yi};b.iM=function(a){var b=this.$a[a];null!=b?b.hk():(b=this.Aq.NL(this,g),b.G=this,this.$a[a]=b);return b};b.qM=function(a){var b=this.$a[a];null!=
b&&(b.hk(),delete this.$a[a],this.Aq.GN(b))};b.QQ=function(){this.Aq.H.length=0};b.gC=function(a){return{name:a,Qr:"",Sa:[]}};b.P=function(){var a,b,e={};for(a in this.$a)b=this.$a[a],e[a]={tim:b.P(),cmd:b.Pg.Qr,pams:b.Pg.Sa,rc:b.Vn};return{ts:this.Ci,ug:this.wG,tl:this.Ia.P(),timers:e,lrt:this.rp,ft:this.jo}};b.ca=function(a){this.Ci=a.ts;this.Ia.ca(a.tl);this.kn=a.timers;this.rp=a.lrt;this.jo=a.ft;this.Pb();this.QQ()};b.Kb=function(){var a,b,e;for(a in this.kn)b=this.kn[a],e=this.ov(b.tim,g),e.G=
this,e.Pg=this.gC(a),e.Pg.Qr=b.cmd,e.Pg.Sa=b.pams,e.Vn=b.rc;this.kn=null};f.n=new function(){};f.q=new l;l.prototype.Xv=function(a,b,e){if(a=this.$a[a])a.Vn=e,a.Af(b)};l.prototype.Kv=function(a){(a=this.$a[a])&&a.cj()};l.prototype.VB=function(a){(a=this.$a[a])&&a.hk()};l.prototype.zn=function(a,b,e){var h=this.iM(a);h.Pg=this.gC(a);h.Pg.Qr=b;Ga(h.Pg.Sa,e)};f.D=new function(){}})();
(function(){function g(g,f){var b=g.Cf,a=f.Cf;return b<a?-1:b>a?1:0}cd.Ji=function(){this.wA()};var m=cd.Ji.prototype;m.wA=function(){this.Xz=null;this.jj=this.Yi=0;this.Sg=[];this.mk=[];this.sr=[];this.FL=[this.Sg,this.mk];this.ML=[this.Sg,this.mk,this.sr]};m.Va=function(){return this.jj};m.Pn=function(g){this.gL(g)};m.IJ=function(g){this.qr(g,!1);g.lw()};m.DA=function(l){this.Yi+=l;this.Sg.sort(g);l=this.Sg.length;var f,b,a=0;for(f=0;f<l;f++)b=this.Sg[f],this.iC(b)&&(this.mk.push(b),a+=1);if(a){for(f=
a;f<l;f++)this.Sg[f-a]=this.Sg[f];this.Sg.length-=a}for(;0<this.mk.length;)this.mk.sort(g),this.Xz=this.mk.shift(),this.jj=this.Xz.Cf,this.Xz.rH();this.jj=this.Yi};m.XB=function(g){this.qr(g,!0)&&(this.sr.push(g),g.fL())};m.Kv=function(g){var f=!1,b=this.sr.indexOf(g);-1!=b&&(Ea(this.sr,b),g.dL(),this.Pn(g),f=!0);return f};m.kr=function(g,f){g.eL(f);var b=this.qr(g,!0);b&&this.Pn(g);return b};m.SG=function(g,f){g.eC(f);this.qr(g,!0)&&this.Pn(g)};m.P=function(){return{at:this.Yi}};m.ca=function(g){this.Yi=
g.at};m.iC=function(g){return g.Cf<=this.Yi};m.gL=function(g){(this.iC(g)?this.mk:this.Sg).push(g)};m.qr=function(g,f){var b=!1,a=f?this.FL:this.ML,d,e=a.length,h,c;for(d=0;d<e;d++)if(h=a[d],c=h.indexOf(g),-1!=c){Ea(h,c);b=!0;break}return b};cd.yl=function(g){this.Ia=g;this.pe();this.ka={}};m=cd.yl.prototype;m.pe=function(){this.Cf=this.hj=this.pg=0;this.Yc=1;this.lw();this.hw(0)};m.EB=function(g){null!=g&&(this.pg=g);this.hw(this.pg/this.Yc);this.Rg?this.Bf||(this.hj=this.Cf,this.cj()):(this.Ia.Pn(this),
this.yL())};m.Af=m.EB;m.Yv=function(){this.Ia.XB(this)};m.cj=function(){this.Ia.Kv(this)};m.kr=function(g){this.Bf&&g===this.Yc||this.Ia.kr(this,g)};m.Va=function(g){this.Ia.SG(this,g)};m.hk=function(){this.Rg&&this.Ia.IJ(this)};m.yl=function(){return this.Rg};m.fk=function(){return this.Rg&&this.Bf};m.Hv=function(g){var f;this.fk()?f=this.Cf-this.Ia.jj:this.Rg?f=this.hj:f=0;g||0===this.Yc&&1===this.Yc||(f*=this.Yc);return f};m.FJ=function(g){if(this.Rg){var f=this.pg;if(0!==this.Yc||1!==this.Yc)f/=
this.Yc;this.hj=Ka(g,0,f);this.Cf=this.Ia.jj+this.hj}};m.tH=function(){return this.pg-this.Hv()};m.tA=function(){return 0==this.pg?0:this.Hv()/this.pg};m.qf=function(){return 0==this.pg?0:this.tH()/this.pg};m.Ji=function(){return this.Ia.Yi-this.Cf};m.Fd=function(){return this.pg};m.UK=function(g){this.uB=g};m.rH=function(){this.lw();this.uB&&this.uB()};m.P=function(){return{dt:this.pg,rt:this.Hv(!0),ts:this.Yc,alive:this.Rg,active:this.Bf,ex:this.ka}};m.ca=function(g){this.pg=g.dt;this.Rg=g.alive;
this.Bf=g.active;this.Yc=g.ts;this.ka=g.ex;this.FJ(g.rt)};m.Kb=function(){this.Rg&&(this.Ia.Pn(this),this.fk()||this.Ia.XB(this))};m.lw=function(){this.Bf=this.Rg=!1};m.yL=function(){this.Bf=this.Rg=!0};m.hw=function(g){this.Cf=this.Ia.jj+g};m.fL=function(){this.hj=this.Cf-this.Ia.jj;this.Bf=!1};m.dL=function(){this.hw(this.hj);this.Bf=!0};m.eL=function(g){if(!(0>g)){var f=!1;0==g&&this.Bf?this.Yv():0<g&&!this.Bf?(this.cj(),f=!0):0<g&&this.Bf&&(f=!0);f&&(this.eC(this.Yc/g),this.Yc=g)}};m.eC=function(g){if(this.Bf){var f=
this.Ia.jj;this.Cf=f+(this.Cf-f)*g}else this.hj*=g}})();function Z(g){this.b=g}
(function(){function g(){if(0===this.Sw.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.$m?b.drawImage(this.X,this.Hm,this.Im,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.X,0,0,this.width,this.height);this.Sw=a.toDataURL("image/png")}return this.Sw}function m(){}function l(a){a[0]=0;a[1]=0;a[2]=0;q.push(a)}function f(a,b){return a<b?""+a+","+b:""+b+","+a}function b(a,b,c,d){b=b.uid;c=c.uid;var e=f(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var h=q.length?q.pop():[0,0,0];h[0]=b;h[1]=c;h[2]=d;a[e]=h}}function a(a,b,c){b=f(b.uid,c.uid);a.hasOwnProperty(b)&&(l(a[b]),delete a[b])}function d(a,b,c){b=f(b.uid,c.uid);if(a.hasOwnProperty(b))return B=a[b][2],!0;B=-2;return!1}function e(){}function h(){}var c=Z.prototype;c.L=function(a){this.G=a;this.b=a.b};var k=c.L.prototype;k.I=function(){if(!this.ea){var a,b,c,d,e,h,f,k,l;this.eg=[];this.im=!1;a=0;for(b=this.Ie.length;a<b;a++){e=this.Ie[a];f={};f.name=e[0];f.speed=e[1];f.loop=e[2];
f.vz=e[3];f.wz=e[4];f.jF=e[5];f.eb=e[6];f.frames=[];c=0;for(d=e[7].length;c<d;c++)h=e[7][c],k={},k.jn=h[0],k.yq=h[1],k.Hm=h[2],k.Im=h[3],k.width=h[4],k.height=h[5],k.duration=h[6],k.Wd=h[7],k.Xd=h[8],k.Ls=h[9],k.Nt=h[10],k.kF=h[11],k.$m=0!==k.width,k.Sw="",k.iS=g,l={left:0,top:0,right:1,bottom:1},k.Hz=l,k.T=null,(l=this.b.FN(h[0]))?k.X=l:(k.X=new Image,k.X.eM=h[0],k.X.Ur=h[1],k.X.WL=null,this.b.Kq(k.X,h[0])),f.frames.push(k),this.eg.push(k);this.Ie[a]=f}}};k.rG=function(){var a,b,c;a=0;for(b=this.A.length;a<
b;a++)c=this.A[a],c.Wr=c.oc.T};k.Nj=function(){if(!this.ea){var a,b,c;a=0;for(b=this.eg.length;a<b;++a)c=this.eg[a],c.X.WL=null,c.T=null;this.im=!1;this.rG()}};k.Lm=function(){if(!this.ea&&this.A.length){var a,b,c;a=0;for(b=this.eg.length;a<b;++a)c=this.eg[a],c.T=this.b.M.ye(c.X,!1,this.b.sb,c.kF);this.rG()}};k.zp=function(){if(!this.ea&&!this.im&&this.b.M){var a,b,c;a=0;for(b=this.eg.length;a<b;++a)c=this.eg[a],c.T=this.b.M.ye(c.X,!1,this.b.sb,c.kF);this.im=!0}};k.pn=function(){if(!this.ea&&!this.A.length&&
this.im){var a,b,c;a=0;for(b=this.eg.length;a<b;++a)c=this.eg[a],this.b.M.deleteTexture(c.T),c.T=null;this.im=!1}};var p=[];k.dq=function(a){var b,c,d;H(p);b=0;for(c=this.eg.length;b<c;++b)d=this.eg[b].X,-1===p.indexOf(d)&&(a.drawImage(d,0,0),p.push(d))};c.J=function(a){this.type=a;this.b=a.b;a=this.type.Ie[0].frames[0].Nt;this.Ib?this.gb.qq(a):this.gb=new gb(a)};var t=c.J.prototype;t.I=function(){this.visible=0===this.B[0];this.Ms=this.Ok=!1;this.cf=0!==this.B[3];this.Gb=this.oD(this.B[1])||this.type.Ie[0];
this.ta=this.B[2];0>this.ta&&(this.ta=0);this.ta>=this.Gb.frames.length&&(this.ta=this.Gb.frames.length-1);var a=this.Gb.frames[this.ta];this.gb.qq(a.Nt);this.Wd=a.Wd;this.Xd=a.Xd;this.ng=this.Gb.speed;this.vj=this.Gb.wz;1===this.type.Ie.length&&1===this.type.Ie[0].frames.length||0===this.ng||(this.b.Ig(this),this.Ok=!0);this.Ib?this.Tg.reset():this.Tg=new eb;this.ji=this.Tg.wa;this.nk=!0;this.Vh=0;this.nj=!0;this.Pl=this.rC="";this.DC=0;this.Mr=-1;this.type.zp();var b,c,d,e,h,f,g,a=0;for(b=this.type.Ie.length;a<
b;a++)for(e=this.type.Ie[a],c=0,d=e.frames.length;c<d;c++)h=e.frames[c],0===h.width&&(h.width=h.X.width,h.height=h.X.height),h.$m&&(g=h.X,f=h.Hz,f.left=h.Hm/g.width,f.top=h.Im/g.height,f.right=(h.Hm+h.width)/g.width,f.bottom=(h.Im+h.height)/g.height,0===h.Hm&&0===h.Im&&h.width===g.width&&h.height===g.height&&(h.$m=!1));this.oc=this.Gb.frames[this.ta];this.Wr=this.oc.T};t.P=function(){var a={a:this.Gb.eb,f:this.ta,cas:this.ng,fs:this.ji,ar:this.Vh,at:this.Tg.wa,rt:this.vj};this.nk||(a.ap=this.nk);
this.nj||(a.af=this.nj);return a};t.ca=function(a){var b=this.LN(a.a);b&&(this.Gb=b);this.ta=a.f;0>this.ta&&(this.ta=0);this.ta>=this.Gb.frames.length&&(this.ta=this.Gb.frames.length-1);this.ng=a.cas;this.ji=a.fs;this.Vh=a.ar;this.Tg.reset();this.Tg.wa=a.at;this.nk=a.hasOwnProperty("ap")?a.ap:!0;this.nj=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.vj=a.rt:this.vj=this.Gb.wz;this.oc=this.Gb.frames[this.ta];this.Wr=this.oc.T;this.gb.qq(this.oc.Nt);this.Wd=this.oc.Wd;this.Xd=this.oc.Xd};
t.zw=function(a){this.ta=a?0:this.Gb.frames.length-1;this.nk=!1;this.rC=this.Gb.name;this.Ms=!0;this.b.trigger(Z.prototype.n.YA,this);this.b.trigger(Z.prototype.n.xI,this);this.Ms=!1;this.Vh=0};t.Va=function(){return this.Tg.wa};t.ra=function(){this.Tg.add(this.b.de(this));this.Pl.length&&this.SC();0<=this.Mr&&this.TC();var a=this.Tg.wa,b=this.Gb,c=b.frames[this.ta],d=c.duration/this.ng;this.nk&&a>=this.ji+d&&(this.nj?this.ta++:this.ta--,this.ji+=d,this.ta>=b.frames.length&&(b.jF?(this.nj=!1,this.ta=
b.frames.length-2):b.loop?this.ta=this.vj:(this.Vh++,this.Vh>=b.vz?this.zw(!1):this.ta=this.vj)),0>this.ta&&(b.jF?(this.ta=1,this.nj=!0,b.loop||(this.Vh++,this.Vh>=b.vz&&this.zw(!0))):b.loop?this.ta=this.vj:(this.Vh++,this.Vh>=b.vz?this.zw(!0):this.ta=this.vj)),0>this.ta?this.ta=0:this.ta>=b.frames.length&&(this.ta=b.frames.length-1),a>this.ji+b.frames[this.ta].duration/this.ng&&(this.ji=a),a=b.frames[this.ta],this.Bl(c,a),this.b.la=!0)};t.oD=function(a){var b,c,d;b=0;for(c=this.type.Ie.length;b<
c;b++)if(d=this.type.Ie[b],mb(d.name,a))return d;return null};t.LN=function(a){var b,c,d;b=0;for(c=this.type.Ie.length;b<c;b++)if(d=this.type.Ie[b],d.eb===a)return d;return null};t.SC=function(){var a=this.Gb.frames[this.ta],b=this.oD(this.Pl);this.Pl="";!b||mb(b.name,this.Gb.name)&&this.nk||(this.Gb=b,this.ng=b.speed,this.vj=b.wz,0>this.ta&&(this.ta=0),this.ta>=this.Gb.frames.length&&(this.ta=this.Gb.frames.length-1),1===this.DC&&(this.ta=0),this.nk=!0,this.ji=this.Tg.wa,this.nj=!0,this.Bl(a,this.Gb.frames[this.ta]),
this.b.la=!0)};t.TC=function(){var a=this.Gb.frames[this.ta],b=this.ta;this.ta=sa(this.Mr);0>this.ta&&(this.ta=0);this.ta>=this.Gb.frames.length&&(this.ta=this.Gb.frames.length-1);b!==this.ta&&(this.Bl(a,this.Gb.frames[this.ta]),this.ji=this.Tg.wa,this.b.la=!0);this.Mr=-1};t.Bl=function(a,b){var c=a.width,d=a.height,e=b.width,h=b.height;c!=e&&(this.width*=e/c);d!=h&&(this.height*=h/d);this.Wd=b.Wd;this.Xd=b.Xd;this.gb.qq(b.Nt);this.S();this.oc=b;this.Wr=b.T;c=0;for(d=this.ua.length;c<d;c++)e=this.ua[c],
e.WE&&e.WE(a,b);this.b.trigger(Z.prototype.n.Bl,this)};t.gc=function(a){a.globalAlpha=this.opacity;var b=this.oc,c=b.$m,d=b.X,e=this.x,h=this.y,f=this.width,g=this.height;if(0===this.C&&0<=f&&0<=g)e-=this.Wd*f,h-=this.Xd*g,this.b.xd&&(e=Math.round(e),h=Math.round(h)),c?a.drawImage(d,b.Hm,b.Im,b.width,b.height,e,h,f,g):a.drawImage(d,e,h,f,g);else{this.b.xd&&(e=Math.round(e),h=Math.round(h));a.save();var k=0<f?1:-1,l=0<g?1:-1;a.translate(e,h);1===k&&1===l||a.scale(k,l);a.rotate(this.C*k*l);e=0-this.Wd*
oa(f);h=0-this.Xd*oa(g);c?a.drawImage(d,b.Hm,b.Im,b.width,b.height,e,h,oa(f),oa(g)):a.drawImage(d,e,h,oa(f),oa(g));a.restore()}};t.xj=function(a){this.Tb(a)};t.Tb=function(a){a.zd(this.Wr);a.Gg(this.opacity);var b=this.oc,c=this.Wa;if(this.b.xd){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.$m?a.Xe(c.xa+d,c.ya+e,c.Rb+d,c.kc+e,c.ac+d,c.cc+e,c.$b+d,c.Lb+e,b.Hz):a.Tm(c.xa+d,c.ya+e,c.Rb+d,c.kc+e,c.ac+d,c.cc+e,c.$b+d,c.Lb+e)}else b.$m?a.Xe(c.xa,c.ya,c.Rb,c.kc,c.ac,c.cc,c.$b,c.Lb,b.Hz):
a.Tm(c.xa,c.ya,c.Rb,c.kc,c.ac,c.cc,c.$b,c.Lb)};t.YN=function(a){var b=this.oc,c,d;c=0;for(d=b.Ls.length;c<d;c++)if(mb(a,b.Ls[c][0]))return c;return-1};t.tg=function(a,b){var c=this.oc,d=c.Ls,e;la(a)?e=this.YN(a):e=a-1;e=sa(e);if(0>e||e>=d.length)return b?this.x:this.y;var h=(d[e][1]-c.Wd)*this.width,d=d[e][2],d=(d-c.Xd)*this.height,c=Math.cos(this.C);e=Math.sin(this.C);var f=h*c-d*e,d=d*c+h*e,h=f+this.x,d=d+this.y;return b?h:d};var q=[],B=-2,z=[];m.prototype.JI=function(c){if(!c)return!1;var e=this.b,
h=e.ki(),f=h.type,g=null;h.ka.collmemory?g=h.ka.collmemory:(g={},h.ka.collmemory=g);h.ka.spriteCreatedDestroyCallback||(h.ka.spriteCreatedDestroyCallback=!0,e.ur(function(a){var b=h.ka.collmemory;a=a.uid;var c,d;for(c in b)b.hasOwnProperty(c)&&(d=b[c],d[0]===a||d[1]===a)&&(l(b[c]),delete b[c])}));var k=f.ga(),m=c.ga(),k=k.vc(),p,q,r,t,D,y,u,x=this.b.hd,P=x-1,Q=e.wb().Cb;for(q=0;q<k.length;q++){r=k[q];m.na?(r.ja(),this.b.wx(r.F,c,r.za,z),p=z,this.b.IL(r,c,p)):p=m.vc();for(t=0;t<p.length;t++)D=p[t],
e.Xj(r,D)||e.$L(r,D)?(y=d(g,r,D),y=!y||B<P,b(g,r,D,x),y&&(e.ge(Q.qa),y=f.ga(),u=c.ga(),y.na=!1,u.na=!1,f===c?(y.A.length=2,y.A[0]=r,y.A[1]=D,f.jd()):(y.A.length=1,u.A.length=1,y.A[0]=r,u.A[0]=D,f.jd(),c.jd()),Q.Yd(),e.yd(Q.qa))):a(g,r,D);H(z)}return!1};var x=null,u=new ca,r=!1,y=[],D=new wa(0,0,0,0);k.finish=function(a){if(r){if(a){var b=this.b.wb().Cb.rf;a=x.ga();var c=u.$e(),d,e;if(a.na){a.na=!1;H(a.A);d=0;for(e=c.length;d<e;++d)a.A[d]=c[d];if(b)for(H(a.Ha),d=0,e=x.A.length;d<e;++d)c=x.A[d],u.contains(c)||
a.Ha.push(c)}else if(b)for(b=a.A.length,d=0,e=c.length;d<e;++d)a.A[b+d]=c[d],Ja(a.Ha,c[d]);else Ga(a.A,c);x.jd()}u.clear();r=!1}};m.prototype.cI=function(a){if(a){var b=!1,c,d,e,h=this.b.ki(),f=h.type,h=h.Qo;c=a.ga();d=this.b.wb().Cb.rf;var g;c.na?(this.ja(),D.tj(this.za),D.offset(0,0),this.b.wx(this.F,a,D,y),g=y):g=d?this.b.RO()&&!c.Ha.length&&c.A.length?c.A:c.Ha:c.A;x=a;r=f!==a&&!h;c=0;for(d=g.length;c<d;c++)if(e=g[c],this.b.Xj(this,e)){b=!0;if(h)break;f!==a&&u.add(e)}H(y);a=b}else a=!1;return a};
m.prototype.TH=function(a){return this.Pl.length?mb(this.Pl,a):mb(this.Gb.name,a)};m.prototype.aH=function(a,b){return hc(this.ta,a,b)};m.prototype.xI=function(a){return mb(this.rC,a)};m.prototype.YA=function(){return!0};m.prototype.Bl=function(){return!0};c.n=new m;e.prototype.LK=function(a,b,c){if(a&&b&&(b=this.b.lo(a,b,this.tg(c,!0),this.tg(c,!1)))){"undefined"!==typeof b.C&&(b.C=this.C,b.S());this.b.kf++;var d,e,h;this.b.trigger(Object.getPrototypeOf(a.G).n.gk,b);if(b.qd)for(d=0,e=b.siblings.length;d<
e;d++)h=b.siblings[d],this.b.trigger(Object.getPrototypeOf(h.type.G).n.gk,h);this.b.kf--;d=this.b.SN();c=!1;if(ka(d.ka.Spawn_LastExec)||d.ka.Spawn_LastExec<this.b.Ak)c=!0,d.ka.Spawn_LastExec=this.b.Ak;if(a!=this.type&&(a=a.ga(),a.na=!1,c?(H(a.A),a.A[0]=b):a.A.push(b),b.qd))for(d=0,e=b.siblings.length;d<e;d++)h=b.siblings[d],a=h.type.ga(),a.na=!1,c?(H(a.A),a.A[0]=h):a.A.push(h)}};e.prototype.jk=function(a){this.nc=a;this.Ff=jb(a);kb(this,a,this.b.ba);this.b.la=!0};e.prototype.JB=function(a,b){this.Pl=
a;this.DC=b;this.Ok||(this.b.Ig(this),this.Ok=!0);this.Ms||this.SC()};e.prototype.KB=function(a){this.Mr=a;this.Ok||(this.b.Ig(this),this.Ok=!0);this.Ms||this.TC()};e.prototype.PJ=function(a){this.ng=oa(a);this.nj=0<=a;this.Ok||(this.b.Ig(this),this.Ok=!0)};e.prototype.kK=function(a){a=oa(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.S())};e.prototype.ZJ=function(a){a=oa(this.height)*(0===a?-1:1);this.height!==a&&(this.height=a,this.S())};e.prototype.Rv=function(a){var b=this.oc,c=b.width*
a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width=c,this.height=a,this.S()};e.prototype.VJ=function(a){this.cf!==(0!==a)&&((this.cf=0!==a)?this.S():(this.Ef.right>=this.Ef.left&&this.type.ko.update(this,this.Ef,null),this.Ef.set(0,0,-1,-1)))};c.q=new e;h.prototype.JG=function(a){a.R(this.ta)};h.prototype.KG=function(a){a.R(this.Gb.frames.length)};h.prototype.LG=function(a){a.Fa(this.Gb.name)};h.prototype.NA=function(a,b){a.K(this.tg(b,!0))};h.prototype.OA=
function(a,b){a.K(this.tg(b,!1))};h.prototype.RH=function(a){a.R(this.oc.Ls.length)};c.D=new h})();function Sc(g){this.b=g}
(function(){function g(a,b){return a.length?a.pop():new b}function m(a,b,c){if(c){var d;c=0;for(d=b.length;c<d;c++)a.length<e&&a.push(b[c]);H(b)}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<e&&a.push(b[d]),delete b[d])}function l(a,b,c){var d=a.H;c=c.replace(/\s\s*$/,"");b>=d.length&&d.push(g(h,Object));b=d[b];b.text=c;b.width=a.Py(c);a.Vf=pa(a.Vf,b.width)}function f(){}function b(){}var a=Sc.prototype;a.I=function(){};a.L=function(a){this.G=a;this.b=a.b};var d=a.L.prototype;
d.I=function(){this.ea||(this.X=new Image,this.b.Kq(this.X,this.jn),this.T=null)};d.Nj=function(){this.ea||(this.T=null)};d.Lm=function(){if(!this.ea&&this.A.length){this.T||(this.T=this.b.M.ye(this.X,!1,this.b.sb,this.Dh));var a,b;a=0;for(b=this.A.length;a<b;a++)this.A[a].T=this.T}};d.pn=function(){this.ea||this.A.length||!this.T||(this.b.M.deleteTexture(this.T),this.T=null)};d.dq=function(a){a.drawImage(this.X,0,0)};a.J=function(a){this.type=a;this.b=a.b};d=a.J.prototype;d.Pb=function(){m(h,this.H,
!0);m(c,this.Or,!1);m(k,this.Pr,!1);$a(this.rj)};d.I=function(){this.X=this.type.X;this.Nr=this.B[0];this.pj=this.B[1];this.characterSet=this.B[2];this.text=this.B[3];this.Wg=this.B[4];this.visible=0===this.B[5];this.Ud=this.B[6]/2;this.me=this.B[7]/2;this.Lg=0===this.B[9];this.qj=this.B[10];this.lineHeight=this.B[11];this.vf=this.Vf=0;this.Ib?(H(this.H),$a(this.Or),$a(this.Pr),$a(this.rj)):(this.H=[],this.Or={},this.Pr={},this.rj={});this.Jb=!0;this.zg=this.width;this.b.M&&(this.type.T||(this.type.T=
this.b.M.ye(this.type.X,!1,this.b.sb,this.type.Dh)),this.T=this.type.T);this.MK()};d.P=function(){var a={t:this.text,csc:this.Wg,csp:this.qj,lh:this.lineHeight,tw:this.Vf,th:this.vf,lrt:this.nf,ha:this.Ud,va:this.me,cw:{}},b;for(b in this.rj)a.cw[b]=this.rj[b];return a};d.ca=function(a){this.text=a.t;this.Wg=a.csc;this.qj=a.csp;this.lineHeight=a.lh;this.Vf=a.tw;this.vf=a.th;this.nf=a.lrt;a.hasOwnProperty("ha")&&(this.Ud=a.ha);a.hasOwnProperty("va")&&(this.me=a.va);for(var b in a.cw)this.rj[b]=a.cw[b];
this.Jb=!0;this.zg=this.width};var e=1E3,h=[],c=[],k=[];d.MK=function(){for(var a=this.X,b=a.width,d=a.height,a=this.Nr,e=this.pj,h=a/b,f=e/d,l=this.characterSet,b=Math.floor(b/a),d=Math.floor(d/e),m=0;m<l.length&&!(m>=b*d);m++){var p=m%b,t=Math.floor(m/b),G=l.charAt(m);if(this.b.M){var A=this.Pr,v=p*h,S=t*f,p=(p+1)*h,t=(t+1)*f;void 0===A[G]&&(A[G]=g(k,wa));A[G].left=v;A[G].top=S;A[G].right=p;A[G].bottom=t}else A=this.Or,p=p*a,t=t*e,v=a,S=e,void 0===A[G]&&(A[G]=g(c,Object)),A[G].x=p,A[G].y=t,A[G].BG=
v,A[G].GD=S}};var p=[];a.$v=function(a){H(p);for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(p.push(b),b=""),p.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));p.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&p.push(b)};a.dw=function(a){var b=a.text,c=a.H;if(b&&b.length){var d=a.width;if(2>=d)m(h,c,!0);else{var e=a.Wg,f=a.qj;if(b.length*(a.Nr*e+f)-f<=d&&-1===b.indexOf("\n")&&(f=a.Py(b),f<=d)){m(h,
c,!0);c.push(g(h,Object));c[0].text=b;c[0].width=f;a.Vf=f;a.vf=a.pj*e+a.lineHeight;return}this.ew(a);a.vf=c.length*(a.pj*e+a.lineHeight)}}else m(h,c,!0)};a.ew=function(a){var b=a.Lg,c=a.text,d=a.H,f=a.width;b&&(this.$v(c),c=p);var g="",k,m,t,C=0,G=!1;for(t=0;t<c.length;t++)"\n"===c[t]?(!0===G?G=!1:(l(a,C,g),C++),g=""):(G=!1,k=g,g+=c[t],m=a.Py(g.replace(/\s\s*$/,"")),m>f&&(""===k?(l(a,C,g),g="",G=!0):(l(a,C,k),g=c[t]),C++,b||" "!==g||(g="")));g.replace(/\s\s*$/,"").length&&(l(a,C,g),C++);for(t=C;t<
d.length;t++)h.length<e&&h.push(d[t]);d.length=C};d.Py=function(a){for(var b=this.qj,c=a.length,d=0,e=0;e<c;e++)d+=this.vx(a.charAt(e))*this.Wg+b;return d-(0<d?b:0)};d.vx=function(a){var b=this.rj;return void 0!==b[a]?b[a]:this.Nr};d.rF=function(){if(this.Jb||this.width!==this.zg)this.vf=this.Vf=0,this.type.G.dw(this),this.Jb=!1,this.zg=this.width};d.gc=function(a){var b=this.X;if(""!==this.text&&null!=b&&(this.rF(),!(this.height<this.pj*this.Wg+this.lineHeight))){a.globalAlpha=this.opacity;var b=
this.x,c=this.y;this.b.xd&&(b=Math.round(b),c=Math.round(c));var d=this.F.Ra,e=this.F.Ua,h=this.F.bb,f=this.F.fb;a.save();a.translate(b,c);a.rotate(this.C);for(var g=this.C,k=this.Ud,l=this.Wg,m=this.pj*l,p=this.lineHeight,v=this.qj,t=this.H,W,V=-(this.Wd*this.width),X=-(this.Xd*this.height),X=X+this.me*pa(0,this.height-this.vf),N,T,ea,O=0;O<t.length;O++){var J=t[O].text;W=k*pa(0,this.width-t[O].width);N=V+W;X+=p;if(0===g&&c+X+m<e)X+=m;else{for(var L=0;L<J.length;L++){T=J.charAt(L);W=this.vx(T);var P=
this.Or[T];if(0===g&&b+N+W*l+v<d)N+=W*l+v;else{if(N+W*l>this.width+1E-5)break;void 0!==P&&(T=N,ea=X,0===g&&1===l&&(T=Math.round(T),ea=Math.round(ea)),a.drawImage(this.X,P.x,P.y,P.BG,P.GD,T,ea,P.BG*l,P.GD*l));N+=W*l+v;if(0===g&&b+N>h)break}}X+=m;if(0===g&&(X+m+p>this.height||c+X>f))break}}a.restore()}};var t=new xa;d.Tb=function(a){a.zd(this.T);a.Gg(this.opacity);if(this.text&&(this.rF(),!(this.height<this.pj*this.Wg+this.lineHeight))){this.ja();var b=this.Wa,c=0,d=0;this.b.xd&&(c=Math.round(this.x)-
this.x,d=Math.round(this.y)-this.y);var e=this.F.Ra,h=this.F.Ua,f=this.F.bb,g=this.F.fb,k=this.C,l=this.Ud,m=this.me,p=this.Wg,v=this.pj*p,S=this.lineHeight,W=this.qj,V=this.H,X=this.vf,N,T,ea;0!==k&&(T=Math.cos(k),ea=Math.sin(k));for(var c=b.xa+c,b=b.ya+d,O,m=m*pa(0,this.height-X),J,L,X=0;X<V.length;X++)if(d=V[X].text,O=N=l*pa(0,this.width-V[X].width),m+=S,0===k&&b+m+v<h)m+=v;else{for(var P=0;P<d.length;P++){var Q=d.charAt(P);N=this.vx(Q);Q=this.Pr[Q];if(0===k&&c+O+N*p+W<e)O+=N*p+W;else{if(O+N*p>
this.width+1E-5)break;if(void 0!==Q){var F=this.Nr*p,M=this.pj*p;J=O;L=m;0===k&&1===p&&(J=Math.round(J),L=Math.round(L));t.xa=J;t.ya=L;t.Rb=J+F;t.kc=L;t.$b=J;t.Lb=L+M;t.ac=J+F;t.cc=L+M;0!==k&&(J=t,L=T,F=ea,M=void 0,M=J.xa*L-J.ya*F,J.ya=J.ya*L+J.xa*F,J.xa=M,M=J.Rb*L-J.kc*F,J.kc=J.kc*L+J.Rb*F,J.Rb=M,M=J.$b*L-J.Lb*F,J.Lb=J.Lb*L+J.$b*F,J.$b=M,M=J.ac*L-J.cc*F,J.cc=J.cc*L+J.ac*F,J.ac=M);t.offset(c,b);a.Xe(t.xa,t.ya,t.Rb,t.kc,t.ac,t.cc,t.$b,t.Lb,Q)}O+=N*p+W;if(0===k&&c+O>f)break}}m+=v;if(0===k&&(m+v+S>this.height||
b+m>g))break}}};a.n=new function(){};f.prototype.qe=function(a){E(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Jb=!0,this.b.la=!0)};f.prototype.Rv=function(a){a!==this.Wg&&(this.Wg=a,this.Jb=!0,this.b.la=!0)};f.prototype.TJ=function(a){a!==this.TG&&(this.qj=a,this.Jb=!0,this.b.la=!0)};f.prototype.Rn=function(a){a!==this.lineHeight&&(this.lineHeight=a,this.Jb=!0,this.b.la=!0)};d.SJ=function(a,b){var c=parseInt(b,10);this.rj[a]!==c&&(this.rj[a]=c,this.Jb=!0,
this.b.la=!0)};f.prototype.UJ=function(a,b){if(""!==a)for(var c=0;c<a.length;c++)this.SJ(a.charAt(c),b)};f.prototype.jk=function(a){this.nc=a;this.Ff=jb(a);kb(this,a,this.b.ba);this.b.la=!0};f.prototype.bK=function(a){this.Ud=a/2;this.Jb=!0;this.b.la=!0};a.q=new f;b.prototype.TG=function(a){a.R(this.qj)};a.D=new b})();function dd(g){this.b=g}
(function(){function g(){return e.length?e.pop():{}}function m(a){var b,d;b=0;for(d=a.length;b<d;b++)e.push(a[b]);H(a)}function l(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function f(){}var b=dd.prototype;b.I=function(){b.q.ej=function(a){this.width!==a&&(this.width=a,this.Jb=!0,this.S())}};b.L=function(a){this.G=a;this.b=a.b};var a=b.L.prototype;a.I=function(){};a.Nj=function(){if(!this.ea){var a,b,d;a=0;for(b=this.A.length;a<b;a++)d=this.A[a],d.Eb=null,d.Oc=null,
d.Fb=null}};b.J=function(a){this.type=a;this.b=a.b;this.Ib?H(this.H):this.H=[];this.Jb=!0};a=b.J.prototype;a.I=function(){this.text=this.B[0];this.visible=0===this.B[1];this.font=this.B[2];this.color=this.B[3];this.Ud=this.B[4];this.me=this.B[5];this.Lg=0===this.B[7];this.zg=this.yg=this.width;this.xg=this.height;this.xi=this.B[8];this.Kf=this.Oe="";this.vf=this.Vf=this.Tc=0;this.gz();this.Fb=this.Oc=this.Eb=null;this.Em=!1;this.nf=this.b.hd;this.Ib?this.Ce.set(0,0,1,1):this.Ce=new wa(0,0,1,1);this.b.M&&
this.b.Ig(this)};a.gz=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Tc=parseInt(a[b].substr(0,a[b].length-2));this.Ii=Math.ceil(this.Tc/72*96)+4;0<b&&(this.Kf=a[b-1]);this.Oe=a[b+1];for(b+=2;b<a.length;b++)this.Oe+=" "+a[b];break}};a.P=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Ud,va:this.me,wr:this.Lg,lho:this.xi,fn:this.Oe,fs:this.Kf,ps:this.Tc,pxh:this.Ii,tw:this.Vf,th:this.vf,lrt:this.nf}};a.ca=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.Ud=a.ha;this.me=a.va;this.Lg=a.wr;this.xi=a.lho;this.Oe=a.fn;this.Kf=a.fs;this.Tc=a.ps;this.Ii=a.pxh;this.Vf=a.tw;this.vf=a.th;this.nf=a.lrt;this.Jb=!0;this.zg=this.yg=this.width;this.xg=this.height};a.ra=function(){if(this.b.M&&this.Fb&&300<=this.b.hd-this.nf){var a=this.F;this.ja();var b=this.za;if(b.right<a.Ra||b.bottom<a.Ua||b.left>a.bb||b.top>a.fb)this.b.M.deleteTexture(this.Fb),this.Eb=this.Oc=this.Fb=null}};a.Pb=function(){this.Eb=this.Oc=null;this.b.M&&
this.Fb&&this.b.M.deleteTexture(this.Fb);this.Fb=null};a.Hu=function(){this.font=this.Kf+" "+this.Tc.toString()+"pt "+this.Oe;this.Jb=!0;this.b.la=!0};a.gc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var d=1;b&&(d=Math.abs(this.F.Jc()),a.save(),a.scale(d,d));if(this.Jb||this.width!==this.zg)this.type.G.dw(this.text,this.H,a,this.width,this.Lg),this.Jb=!1,this.zg=this.width;this.ja();var d=b?0:this.Wa.xa,e=b?0:this.Wa.ya;this.b.xd&&(d=d+
.5|0,e=e+.5|0);0===this.C||b||(a.save(),a.translate(d,e),a.rotate(this.C),e=d=0);var f=e+this.height,g=this.Ii,g=g+this.xi,l,m;1===this.me?e+=Math.max(this.height/2-this.H.length*g/2,0):2===this.me&&(e+=Math.max(this.height-this.H.length*g-2,0));for(m=0;m<this.H.length&&!(l=d,1===this.Ud?l=d+(this.width-this.H[m].width)/2:2===this.Ud&&(l=d+(this.width-this.H[m].width)),a.fillText(this.H[m].text,l,e),e+=g,e>=f-g);m++);(0!==this.C||b)&&a.restore();this.nf=this.b.hd};a.Tb=function(a){if(!(1>this.width||
1>this.height)){var b=this.Jb||this.Em;this.Em=!1;var d=this.F.Jc(),e=this.F.hc(),f=this.Ce,g=d*this.width,l=d*this.height,m=Math.ceil(g),x=Math.ceil(l),u=Math.abs(m),r=Math.abs(x),y=this.b.Ba/2,D=this.b.Aa/2;this.Oc||(this.Eb=document.createElement("canvas"),this.Eb.width=u,this.Eb.height=r,this.yg=u,this.xg=r,b=!0,this.Oc=this.Eb.getContext("2d"));if(u!==this.yg||r!==this.xg)this.Eb.width=u,this.Eb.height=r,this.Fb&&(a.deleteTexture(this.Fb),this.Fb=null),b=!0;b&&(this.Oc.clearRect(0,0,u,r),this.gc(this.Oc,
!0),this.Fb||(this.Fb=a.Me(u,r,this.b.sb,this.b.lf)),a.AG(this.Eb,this.Fb,this.b.lf));this.yg=u;this.xg=r;a.zd(this.Fb);a.Gg(this.opacity);a.Ye();a.translate(-y,-D);a.Ge();var w=this.Wa,b=this.F.Oa(w.xa,w.ya,!0,!0),u=this.F.Oa(w.xa,w.ya,!1,!0),r=this.F.Oa(w.Rb,w.kc,!0,!0),y=this.F.Oa(w.Rb,w.kc,!1,!0),D=this.F.Oa(w.ac,w.cc,!0,!0),C=this.F.Oa(w.ac,w.cc,!1,!0),G=this.F.Oa(w.$b,w.Lb,!0,!0),w=this.F.Oa(w.$b,w.Lb,!1,!0);if(this.b.xd||0===this.C&&0===e)var A=(b+.5|0)-b,v=(u+.5|0)-u,b=b+A,u=u+v,r=r+A,y=y+
v,D=D+A,C=C+v,G=G+A,w=w+v;0===this.C&&0===e?(r=b+m,y=u,D=r,C=u+x,G=b,w=C,f.right=1,f.bottom=1):(f.right=g/m,f.bottom=l/x);a.Xe(b,u,r,y,D,C,G,w,f);a.Ye();a.scale(d,d);a.mq(-this.F.hc());a.translate((this.F.Ra+this.F.bb)/-2,(this.F.Ua+this.F.fb)/-2);a.Ge();this.nf=this.b.hd}};var d=[];b.$v=function(a){H(d);for(var b="",e,f=0;f<a.length;)if(e=a.charAt(f),"\n"===e)b.length&&(d.push(b),b=""),d.push("\n"),++f;else if(" "===e||"\t"===e||"-"===e){do b+=a.charAt(f),f++;while(f<a.length&&(" "===a.charAt(f)||
"\t"===a.charAt(f)));d.push(b);b=""}else f<a.length&&(b+=e,f++);b.length&&d.push(b)};var e=[];b.dw=function(a,b,d,e,f){if(a&&a.length)if(2>=e)m(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var l=d.measureText(a).width;if(l<=e){m(b);b.push(g());b[0].text=a;b[0].width=l;return}}this.ew(a,b,d,e,f)}else m(b)};b.ew=function(a,b,f,m,t){t&&(this.$v(a),a=d);var q="",B,z,x,u=0;for(x=0;x<a.length;x++)"\n"===a[x]?(u>=b.length&&b.push(g()),q=l(q),z=b[u],z.text=q,z.width=f.measureText(q).width,u++,q=""):(B=
q,q+=a[x],z=f.measureText(q).width,z>=m&&(u>=b.length&&b.push(g()),B=l(B),z=b[u],z.text=B,z.width=f.measureText(B).width,u++,q=a[x],t||" "!==q||(q="")));q.length&&(u>=b.length&&b.push(g()),q=l(q),z=b[u],z.text=q,z.width=f.measureText(q).width,u++);for(x=u;x<b.length;x++)e.push(b[x]);b.length=u};b.n=new function(){};f.prototype.qe=function(a){E(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Jb=!0,this.b.la=!0)};f.prototype.Ov=function(a){this.Tc!==a&&(this.Tc=
a,this.Ii=Math.ceil(this.Tc/72*96)+4,this.Hu())};f.prototype.Nv=function(a){a="rgb("+za(a).toString()+","+Aa(a).toString()+","+Ba(a).toString()+")";a!==this.color&&(this.color=a,this.Em=!0,this.b.la=!0)};f.prototype.jk=function(a){this.nc=a;this.Ff=jb(a);kb(this,a,this.b.ba);this.b.la=!0};b.q=new f;b.D=new function(){}})();function Rc(g){this.b=g}
(function(){function g(){}var m=Rc.prototype;m.L=function(f){this.G=f;this.b=f.b};var l=m.L.prototype;l.I=function(){this.ea||(this.X=new Image,this.X.Ur=this.yq,this.b.Kq(this.X,this.jn),this.T=this.pattern=null)};l.Nj=function(){this.ea||(this.T=null)};l.Lm=function(){if(!this.ea&&this.A.length){this.T||(this.T=this.b.M.ye(this.X,!0,this.b.sb,this.Dh));var f,b;f=0;for(b=this.A.length;f<b;f++)this.A[f].T=this.T}};l.zp=function(){this.ea||this.T||!this.b.M||(this.T=this.b.M.ye(this.X,!0,this.b.sb,
this.Dh))};l.pn=function(){this.ea||this.A.length||!this.T||(this.b.M.deleteTexture(this.T),this.T=null)};l.dq=function(f){f.drawImage(this.X,0,0)};m.J=function(f){this.type=f;this.b=f.b};l=m.J.prototype;l.I=function(){this.visible=0===this.B[0];this.Ce=new wa(0,0,0,0);this.KD=!1;this.X=this.type.X;this.b.M?(this.type.zp(),this.T=this.type.T):(this.type.pattern||(this.type.pattern=this.b.Nb.createPattern(this.type.X,"repeat")),this.pattern=this.type.pattern)};l.Kb=function(){this.KD=!1;this.X=this.type.X};
l.Pb=function(){this.b.M&&this.KD&&this.T&&(this.b.M.deleteTexture(this.T),this.T=null)};l.gc=function(f){f.globalAlpha=this.opacity;f.save();f.fillStyle=this.pattern;var b=this.x,a=this.y;this.b.xd&&(b=Math.round(b),a=Math.round(a));var d=-(this.Wd*this.width),e=-(this.Xd*this.height),h=d%this.X.width,c=e%this.X.height;0>h&&(h+=this.X.width);0>c&&(c+=this.X.height);f.translate(b,a);f.rotate(this.C);f.translate(h,c);f.fillRect(d-h,e-c,this.width,this.height);f.restore()};l.xj=function(f){this.Tb(f)};
l.Tb=function(f){f.zd(this.T);f.Gg(this.opacity);var b=this.Ce;b.right=this.width/this.X.width;b.bottom=this.height/this.X.height;var a=this.Wa;if(this.b.xd){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;f.Xe(a.xa+d,a.ya+e,a.Rb+d,a.kc+e,a.ac+d,a.cc+e,a.$b+d,a.Lb+e,b)}else f.Xe(a.xa,a.ya,a.Rb,a.kc,a.ac,a.cc,a.$b,a.Lb,b)};m.n=new function(){};g.prototype.jk=function(f){this.nc=f;this.Ff=jb(f);kb(this,f,this.b.ba);this.b.la=!0};m.q=new g;m.D=new function(){}})();
function ed(g){this.b=g}
(function(){function g(){this.images={}}function m(){this.width=this.y=this.x=this.text=null;this.prop={};this.jc=this.Fm=null}function l(){this.sf=[];this.H=[]}function f(a){a=a.replace(/^\s+|\s+$/,"");return 0==a.length}function b(a){a=a.split(";");var b,c=a.length,d={},e,h;for(b=0;b<c;b++)e=a[b].split(":"),h=e[0],e=e[1],f(h)||f(e)||(d[h]=e);return d}function a(a,b){var c=/<\s*class=["|']([^"|']+)["|']\s*\>([\s\S]*?)<\s*\/class\s*\>|<\s*style=["|']([^"|']+)["|']\s*\>([\s\S]*?)<\s*\/style\s*\>/g;x.length=
0;for(var d,e=0,h=a.length,f=h;;){d=c.exec(a);if(!d)break;d=d[0];f=c.lastIndex-d.length;e<f&&x.push(a.substring(e,f));null==b?x.push(d):1===b&&(t.test(d)?(e=d.match(q),x.push(e[2])):B.test(d)&&(e=d.match(z),x.push(e[2])));e=c.lastIndex}e<h&&x.push(a.substring(e,h));return x}function d(){this.context=this.canvas=null;this.du={};this.Ze={text:"",x:0,y:0,boxWidth:0,boxHeight:0,ignore:null};this.Pj=new l;this.Jb=!0;this.ef={family:"Verdana",weight:"",Tc:"12pt",color:"#000000",stroke:["none",1],style:"normal",
SF:""};this.ak={yu:1,offset:0};this.textAlign="start";this.lineHeight="16";this.textBaseline="alphabetic";this.backgroundColor=""}function e(){this.H=[]}function h(){}var c=ed.prototype;c.I=function(){c.q.ej=function(a){this.width!==a&&(this.width=a,this.S(),this.Kk||this.Jd(this.Se))}};c.L=function(a){this.G=a;this.b=a.b};var k=c.L.prototype;k.I=function(){};k.Nj=function(){if(!this.ea){var a,b,c;a=0;for(b=this.A.length;a<b;a++)c=this.A[a],c.Eb=null,c.Oc=null,c.Fb=null}};c.J=function(a){this.type=
a;this.b=a.b;this.Jb=!0};var k=c.J.prototype,p=["miter","round","bevel"];k.I=function(){this.text="";this.QF(this.B[0]);this.visible=0===this.B[1];this.font=this.B[2];this.color=this.B[3];this.stroke="none";this.Ud=this.B[4];this.me=this.B[5];this.textShadow="";this.Lg=0===this.B[7];this.zg=this.yg=this.width;this.xg=this.height;this.xi=this.B[8];this.RL=this.B[9];this.hA=this.B[10]*this.b.devicePixelRatio;this.Se=1===this.B[11];this.rI(1===this.B[12],this.width,this.height);this.Kf=this.Oe="";this.vf=
this.Vf=this.Tc=0;this.gz();this.Fb=this.Oc=this.Eb=null;this.Em=!1;this.nf=this.b.hd;this.Ib?this.Ce.set(0,0,1,1):this.Ce=new wa(0,0,1,1);this.b.M&&this.b.Ig(this);this.ij=null;this.Ib||(this.Mb=new d);this.Mb.pe(this);this.Mb.textBaseline=0===this.RL?"alphabetic":"top";this.Mb.backgroundColor=this.B[13];this.text&&this.Jd(this.Se)};k.gz=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Tc=parseInt(a[b].substr(0,a[b].length-2));this.Ii=Math.ceil(this.Tc/
72*96)+4;0<b&&(this.Kf=a[b-1]);this.Oe=a[b+1];for(b+=2;b<a.length;b++)this.Oe+=" "+a[b];break}};k.P=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Ud,va:this.me,wr:this.Lg,lho:this.xi,vs:this.hA,fn:this.Oe,fs:this.Kf,ps:this.Tc,pxh:this.Ii,tw:this.Vf,th:this.vf,ts:this.textShadow,lrt:this.nf,bl:this.Mb.textBaseline,txtObj:this.Mb.P(),isLcs:this.Kk,lcw:this.nt,lch:this.mt}};k.ca=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.Ud=a.ha;this.me=a.va;this.Lg=a.wr;this.xi=a.lho;
this.hA=a.vs;this.Oe=a.fn;this.Kf=a.fs;this.Tc=a.ps;this.Ii=a.pxh;this.Vf=a.tw;this.vf=a.th;this.textShadow=a.ts;this.nf=a.lrt;this.Jb=!0;this.zg=this.yg=this.width;this.xg=this.height;this.Mb.textBaseline=a.bl;this.Mb.ca(a.txtObj);this.Kk=a.isLcs;this.nt=a.lcw;this.mt=a.lch};k.ra=function(){if(this.b.M&&this.Fb&&300<=this.b.hd-this.nf){var a=this.F;this.ja();var b=this.za;if(b.right<a.Ra||b.bottom<a.Ua||b.left>a.bb||b.top>a.fb)this.b.M.deleteTexture(this.Fb),this.Eb=this.Oc=this.Fb=null}};k.Pb=function(){this.Eb=
this.Oc=null;this.b.M&&this.Fb&&this.b.M.deleteTexture(this.Fb);this.Fb=null};k.Hu=function(){this.font=this.Kf+" "+this.Tc.toString()+"pt "+this.Oe;this.Jd(this.Se)};k.gc=function(a,b,c){var d=!1,e=this.Kk?this.nt:this.width,h=this.Kk?this.mt:this.height;a.globalAlpha=b?1:this.opacity;var f=1;b&&(f=this.F.Jc(),d||(a.save(),d=!0),a.scale(f,f));if(this.Jb||e!==this.zg)this.Mb.Jb=!0,this.Jb=!1,this.zg=e;this.ja();var f=b?0:this.Wa.xa,g=b?0:this.Wa.ya;this.b.xd&&(f=f+.5|0,g=g+.5|0);if(!b){var k=e!==
this.width||h!==this.height;if((b=0!==this.C)||k){d||(a.save(),d=!0);if(k){var k=this.width/e,l=this.height/h;a.scale(k,l);a.translate(f/k,g/l);g=f=0}b&&(0===f&&0===g||a.translate(f,g),a.rotate(this.C))}}b=this.Ii;b+=this.xi*this.b.devicePixelRatio;this.Mb.canvas=a.canvas;this.Mb.context=a;this.Mb.ef.family=this.Oe;this.Mb.ef.Tc=this.Tc.toString()+"pt";this.Mb.ef.style=this.Kf;this.Mb.ef.color=this.color;this.Mb.ef.stroke=this.stroke;this.Mb.ef.SF=this.textShadow;this.Mb.lineHeight=b;this.Mb.Ze.text=
this.text;this.Mb.Ze.x=f;this.Mb.Ze.y=g;this.Mb.Ze.boxWidth=e;this.Mb.Ze.boxHeight=h;this.Mb.Ze.ignore=c;this.Mb.Xw();d&&a.restore();this.nf=this.b.hd};k.Tb=function(a){if(!(1>this.width||1>this.height)){var b=this.Jb||this.Em;this.Em=!1;var c=this.F.Jc(),d=this.F.hc(),e=this.Ce,h=c*this.width,f=c*this.height,g=Math.ceil(h),k=Math.ceil(f),l=this.b.Ba/2,m=this.b.Aa/2,p=this.Kk?Math.ceil(c*this.nt):g,r=this.Kk?Math.ceil(c*this.mt):k;this.Oc||(this.Eb=document.createElement("canvas"),this.Eb.width=p,
this.Eb.height=r,this.yg=p,this.xg=r,b=!0,this.Oc=this.Eb.getContext("2d"));if(p!==this.yg||r!==this.xg)this.Eb.width=p,this.Eb.height=r,this.Fb&&(a.deleteTexture(this.Fb),this.Fb=null),b=!0;b&&(this.Oc.clearRect(0,0,p,r),this.gc(this.Oc,!0),this.Fb||(this.Fb=a.Me(g,k,this.b.sb,this.b.lf)),a.AG(this.Eb,this.Fb,this.b.lf));this.yg=p;this.xg=r;a.zd(this.Fb);a.Gg(this.opacity);a.Ye();a.translate(-l,-m);a.Ge();var q=this.Wa,b=this.F.Oa(q.xa,q.ya,!0,!0),l=this.F.Oa(q.xa,q.ya,!1,!0),m=this.F.Oa(q.Rb,q.kc,
!0,!0),p=this.F.Oa(q.Rb,q.kc,!1,!0),r=this.F.Oa(q.ac,q.cc,!0,!0),t=this.F.Oa(q.ac,q.cc,!1,!0),D=this.F.Oa(q.$b,q.Lb,!0,!0),q=this.F.Oa(q.$b,q.Lb,!1,!0);if(this.b.xd||0===this.C&&0===d)var y=(b+.5|0)-b,w=(l+.5|0)-l,b=b+y,l=l+w,m=m+y,p=p+w,r=r+y,t=t+w,D=D+y,q=q+w;0===this.C&&0===d?(m=b+g,p=l,r=m,t=l+k,D=b,q=t,e.right=1,e.bottom=1):(e.right=h/g,e.bottom=f/k);a.Xe(b,l,m,p,r,t,D,q,e);a.Ye();a.scale(c,c);a.mq(-this.F.hc());a.translate((this.F.Ra+this.F.bb)/-2,(this.F.Ua+this.F.fb)/-2);a.Ge();this.nf=this.b.hd}};
k.jw=function(){var a=this.Oc;if(!a){this.Eb=document.createElement("canvas");var a=Math.ceil(this.F.Jc()*this.width),b=Math.ceil(this.F.hc()*this.height);this.Eb.width=a;this.Eb.height=b;this.yg=a;this.xg=b;a=this.Oc=this.Eb.getContext("2d")}return a};k.CN=function(){var a=this.b.Zw?this.jw():this.b.Nb;this.gc(a,null,!0)};k.Jd=function(a){a&&(this.Jb=!0,this.CN());this.Jb=!0;this.b.la=!0};k.QF=function(a){a=a.replace(/<\s*br\s*\/>/g,"\n");this.text!==a&&(this.text=a,this.Jd(this.Se))};k.rI=function(a,
b,c){this.Kk=a;this.nt=b;this.mt=c};k.hh=function(a){return this.Mb.hh(a)};k.Gx=function(a,b,c){return this.Mb.Gx(a,b,c)};k.Nw=function(a){return this.Mb.Nw(a)};c.n=new function(){};c.q=new h;h.prototype.qe=function(a){E(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);this.QF(a.toString())};h.prototype.Ov=function(a){null!=this.ij?(this.ij["font-size"]=a.toString()+"pt",this.Jd(!1)):this.Tc!==a&&(this.Tc=a,this.Ii=Math.ceil(this.Tc/72*96)+4,this.Hu())};h.prototype.Nv=function(a){var b;"number"==typeof a?b=
"rgb("+za(a).toString()+","+Aa(a).toString()+","+Ba(a).toString()+")":b=a;null!=this.ij?(this.ij.color=b,this.Jd(!1)):b!==this.color&&(this.color=b,this.Jd(this.Se))};h.prototype.jk=function(a){this.Ff=jb(a);kb(this,a,this.b.ba);this.Jd(this.Se)};h.prototype.$J=function(a){var b="";switch(a){case 1:b="bold";break;case 2:b="italic";break;case 3:b="bold italic"}null!=this.ij?(this.ij["font-style"]=b,this.Jd(!1)):b!==this.Kf&&(this.Kf=b,this.Hu())};h.prototype.Rn=function(a){this.xi!==a&&(this.xi=a,
this.Jd(this.Se))};h.prototype.dK=function(a){this.Ud!==a&&(this.Ud=a,this.Jd(this.Se))};h.prototype.BK=function(a){this.me!==a&&(this.me=a,this.Jd(this.Se))};h.prototype.FK=function(a){a=0===a;this.Lg!==a&&(this.Lg=a,this.Jd(this.Se))};h.prototype.vK=function(a,b,c){a=a.replace(/ /g,"");c=p[c];a=a+" "+b.toString()+"px "+c;null!=this.ij?(this.ij.stroke=a,this.Jd(!1)):a!==this.stroke&&(this.stroke=a,this.Jd(this.Se))};h.prototype.pA=function(a,b,c){b&&(window.Va.pA(a,b.cm(),c),this.Jd(this.Se))};h.prototype.DB=
function(a){window.Va.DB(a);this.Jd(this.Se)};h.prototype.BB=function(){window.Va.BB();this.Jd(this.Se)};c.D=new function(){};k=e.prototype;k.fg=function(){return 0<this.H.length?this.H.pop():null};k.eh=function(a){this.H.push(a)};k.am=function(a){var b,c;b=0;for(c=a.length;b<c;b++)this.eh(a[b]);a.length=0};k=d.prototype;k.pe=function(a){this.G=a};k.Ds=function(){return this.Pj.Ds()};k.CD=function(a){var b={};if(null!=a)for(var c in a)switch(c){case "font":b.font=a[c];break;case "font-family":b.family=
a[c];break;case "font-weight":b.weight=a[c];break;case "font-size":b.size=a[c];break;case "color":b.color=a[c];break;case "stroke":b.stroke=a[c];break;case "font-style":b.style=a[c];break;case "text-shadow":b.shadow=a[c];break;case "underline":b.u=a[c];break;case "image":b.img=a[c];break;default:b[c]=a[c]}return b};k.sC=function(a){if(this.WO(a)){var b=a.font;b?this.context.font=b:this.context.font=(a.style||this.ef.style)+" "+(a.weight||this.ef.weight)+" "+this.AD(a)+" "+(a.family||this.ef.family);
b=this.uD(a);"none"!==b.toLowerCase()&&(this.context.fillStyle=b);b=this.zD(a);"none"!==b.toLowerCase()&&(b=b.split(" "),this.context.strokeStyle=b[0],null!=b[1]&&(this.context.lineWidth=parseFloat(b[1].replace("px",""))),null!=b[2]&&(this.context.lineJoin=b[2],this.context.miterLimit=2))}a=a.shadow?a.shadow:this.ef.SF;""!==a&&(a=a.split(" "),this.context.shadowOffsetX=parseFloat(a[0].replace("px","")),this.context.shadowOffsetY=parseFloat(a[1].replace("px","")),this.context.shadowBlur=parseFloat(a[2].replace("px",
"")),this.context.shadowColor=a[3])};k.WO=function(a){return!a.hasOwnProperty("img")};k.AD=function(a){return a.hasOwnProperty("size")?a.size:this.ef.Tc};k.uD=function(a){return a.hasOwnProperty("color")?a.color:this.ef.color};k.zD=function(a){return a.hasOwnProperty("stroke")?a.stroke:this.ef.stroke};k.SM=function(a,b,c){var d=this.context;d.save();this.sC(a.prop);b+=a.x;c+=a.y;var e=a.prop.u;if(e){var e=e.split(" "),h=e[0],f=this.ak.yu;null!=e[1]&&(this.ak.yu=parseFloat(e[1].replace("px","")));
var g=this.ak.offset;null!=e[2]&&(this.ak.offset=parseFloat(e[2].replace("px","")));this.TM(a.text,b,c,this.AD(a.prop),h);this.ak.yu=f;this.ak.offset=g}if(a.prop.hasOwnProperty("img")){if(a=window.Va.JA(a.prop.img))c+=a.iR,"alphabetic"==this.textBaseline&&(c-=this.lineHeight),d.drawImage(a.JO,b,c,a.width,a.height)}else"none"!==this.zD(a.prop).toLowerCase()&&d.strokeText(a.text,b,c),"none"!==this.uD(a.prop).toLowerCase()&&d.fillText(a.text,b,c);d.restore()};k.TM=function(a,b,c,d,e){var h=this.context;
a=h.measureText(a).width;c+=this.ak.offset;"top"===this.textBaseline&&(c+=parseInt(d));h.beginPath();h.strokeStyle=e;h.lineWidth=this.ak.yu;h.moveTo(b,c);h.lineTo(b+a,c);h.stroke()};k.XP=function(){if(""!==this.backgroundColor){var a=this.context;a.fillStyle=this.backgroundColor;a.fillRect(0,0,this.Ze.boxWidth,this.Ze.boxHeight)}};k.QM=function(a,b){var c=b.boxWidth,d=b.boxHeight,e=b.x,h=b.y,f=a.Ds(),g=f.length,k,d=1===this.G.me?Math.max((d-g*this.lineHeight)/2,0):2===this.G.me?Math.max(d-g*this.lineHeight-
2,0):0,d=d+h;"alphabetic"==this.textBaseline&&(d+=this.G.hA);for(var l,m,p,r,h=0;h<g;h++)if(k=a.wD(h),0!==k)for(k=1===this.G.Ud?(c-k)/2:2===this.G.Ud?c-k:0,k+=e,p=f[h],m=p.length,l=0;l<m;l++)r=p[l],""!==r.text&&this.SM(r,k,d)};k.qf=function(){};var t=/<\s*class=/i,q=/<\s*class=["|']([^"|']+)["|']\s*\>([\s\S]*?)<\s*\/class\s*\>/,B=/<\s*style=/i,z=/<\s*style=["|']([^"|']+)["|']\s*\>([\s\S]*?)<\s*\/style\s*\>/,x=[];k.tG=function(c,d,e){null==d&&(d=this.Ze);c.iD();var h=d.text;d=d.boxWidth;if(""!==h){var f=
0,g=0,k,l,m,h=a(h);if(0!==h.length){var p,u=h.length,C=null;for(p=0;p<u;p++)if(m=h[p],l=null,t.test(m)?(C=m.match(q),null!=C&&(k=this.CD(this.PN(C[1])),k["class"]=C[1],l=C[2])):B.test(m)&&(C=m.match(z),null!=C&&(k=this.CD(b(C[1])),l=C[2])),null===l&&(l=m,k={}),k.hasOwnProperty("img")){if(l=window.Va.JA(k.img))e?c.$n(null,null,null,null,k,0):(l.width>d-(f-0)&&(f=0,g+=this.lineHeight),c.$n(null,f,g,l.width,k,0),f+=l.width)}else if(e)c.$n(l,null,null,null,k,0);else{this.context.save();this.sC(k);a:{m=
this.context;var C=d,A=this.G.Lg,G=f-0;y.am(D);if(!l||!l.length||2>=C)l=D;else{if(100>=l.length&&-1===l.indexOf("\n")){var x=m.measureText(l).width;if(x<=C-G){y.am(D);D.push(y.Gm(l,x,r));l=D;break a}}x=l;l=D;var I=void 0;if(A){w.length=0;for(var I="",Y=void 0,R=0;R<x.length;)if(Y=x.charAt(R),"\n"===Y)I.length&&(w.push(I),I=""),w.push("\n"),++R;else if(" "===Y||"\t"===Y||"-"===Y){do I+=x.charAt(R),R++;while(R<x.length&&(" "===x.charAt(R)||"\t"===x.charAt(R)));w.push(I);I=""}else R<x.length&&(I+=Y,
R++);I.length&&w.push(I);I=w}else I=x;for(var x=I,I="",ha=R=Y=void 0,ia=x.length,ja=0,ha=0;ha<ia;ha++)"\n"===x[ha]?(ja>=l.length&&l.push(y.Gm(I,m.measureText(I).width,1)),ja++,I="",G=0):(Y=I,I+=x[ha],R=m.measureText(I).width,R>=C-G&&(ja>=l.length&&l.push(y.Gm(Y,m.measureText(Y).width,2)),ja++,I=x[ha],A||" "!==I||(I=""),G=0));I.length&&(ja>=l.length&&l.push(y.Gm(I,m.measureText(I).width,r)),ja++);for(ha=ja;ha<l.length;ha++)y.eh(l[ha]);l.length=ja}}m=l.length;for(C=0;C<m;C++)A=l[C],c.$n(A.text,f,g,
A.width,k,A.Fm),A.Fm!==r?(f=0,g+=this.lineHeight):f+=A.width;this.context.restore()}}}};k.Xw=function(){var a=this.Ze;this.Jb&&(this.tG(this.Pj,a),this.Jb=!1);a.ignore||(this.context.textBaseline=this.textBaseline,this.context.textAlign=this.textAlign,this.XP(),this.QM(this.Pj,a))};var u=null;k.Gx=function(a,b,c){if(null==c)return this.Pj.Fx(a,b);null===u&&(u=new l);var d=this.Ze.text;this.Ze.text=c;this.tG(u,this.Ze,!0);this.Ze.text=d;return u.Fx(a,b)};k.hh=function(b){if(null==b)return this.Pj.hh();
b=a(b,1);if(0===b.length)return"";var c,d=b.length,e="";for(c=0;c<d;c++)e+=b[c];return e};k.Nw=function(a){return this.Pj.tj(a)};k.Fd=function(a){null==a&&(a=this.Pj);return a.cO()};k.Ax=function(a){null==a&&(a=this.Pj);return a.Ax()};k.Va=function(a,b){this.du[a]=b;return!0};k.PN=function(a){return this.du[a]};k.trim=function(a){var b,c;a=a.replace(/^\s\s*/,"");b=/\s/;for(c=a.length;b.test(a.charAt(--c)););return a.slice(0,c+1)};k.P=function(){return{cls:this.du,bgc:this.backgroundColor}};k.ca=function(a){this.du=
a.cls;this.backgroundColor=a.bgc};var r=0,y=new e;y.Gm=function(a,b,c){var d=this.fg()||{};d.text=a;d.width=b;d.Fm=c;return d};var D=[],w=[],C=new e,G=new e,k=l.prototype;k.iD=function(){var a,b=this.H.length;for(a=0;a<b;a++)this.H[a].length=0;C.am(this.sf);G.am(this.H)};k.$n=function(a,b,c,d,e,h){var f=C.fg();null===f&&(f=new m);f.yQ(a,b,c,d,e,h);a=this.sf[this.sf.length-1];null==a?f.jc=0:f.jc=a.Bx();this.sf.push(f);a=this.H[this.H.length-1];null==a&&(a=G.fg()||[],this.H.push(a));a.push(f);h!==r&&
(a=G.fg()||[],this.H.push(a))};k.Va=function(){return this.sf};k.Ax=function(){return this.sf[this.sf.length-1]};k.Ds=function(){return this.H};k.bO=function(a){a=this.H[a];return null==a?0:a[0].jc};k.aO=function(a){for(var b=!1,c;0<=a&&!(c=this.H[a],b=null!=c&&0<c.length);a--);return b?c[c.length-1].sD():0};k.tj=function(a){null==a&&(a=new l);a.iD();var b,c=this.H.length,d,e,h,f;for(b=0;b<c;b++)for(d=this.H[b],h=d.length,e=0;e<h;e++)f=d[e],a.$n(f.text,f.x,f.y,f.width,f.prop,f.Fm);return a};k.wD=
function(a){a=this.H[a];return a?(a=a[a.length-1])?a.$N():0:0};k.cO=function(){var a,b=0,c,d=this.H.length;for(c=0;c<d;c++)a=this.wD(c),a>b&&(b=a);return b};k.hh=function(){var a="",b,c=this.sf.length;for(b=0;b<c;b++)a+=this.sf[b].hh();return a};k.Fd=function(){var a=0,b,c=this.sf.length;for(b=0;b<c;b++)a+=this.sf[b].hh().length;return a};k.Fx=function(a,b){null==a&&(a=0);if(null==b){var c=this.Ax();if(null==c)return"";b=c.sD()}for(var d="",e=this.sf.length,h,f,g,k,l,c=0;c<e;c++)if(h=this.sf[c],f=
h.hh(),g=h.jc,k=h.Bx(),!(k<a)){(l=g>=a&&k<b)||(f=f.substring(a-g,b-g));h=h.prop;if(h["class"])f="<class='"+h["class"]+"'>"+f+"</class>";else{A.length=0;g=void 0;for(g in h)A.push(g+":"+h[g]);0<A.length&&(f="<style='"+A.join(";")+"'>"+f+"</style>")}d=d+f;if(k>=b)break}return d};var A=[],k=m.prototype;k.yQ=function(a,b,c,d,e,h){this.text=a;this.x=b;this.y=c;this.width=d;a=this.prop;null==a&&(a={});for(var f in a)e.hasOwnProperty(f)||delete a[f];for(f in e)a[f]=e[f];this.Fm=h;this.jc=void 0};k.hh=function(){var a=
this.text||"";1==this.Fm&&(a+="\n");return a};k.Bx=function(){return this.jc+this.hh().length};k.sD=function(){return this.Bx()-1};k.$N=function(){return this.x+this.width};k=g.prototype;k.pA=function(a,b,c){var d;b?b.canvas?d=b.canvas:b.oc&&b.oc.X?d=b.oc.X:d=null:d=null;b&&(this.images[a]={JO:d,width:b.width,height:b.height,iR:c})};k.JA=function(a){return this.images[a]};k.DB=function(a){this.images.hasOwnProperty(a)&&delete this.images[a]};k.BB=function(){for(var a in this.images)delete this.images[a]};
window.Va=new g})();function fd(g){this.b=g}
(function(){function g(a){c=a.x;k=a.y;p=a.z}function m(a,b,c,d){var e;e=t.length?t.pop():new f;e.init(a,b,c,d);return e}function l(a){100>t.length&&t.push(a)}function f(){this.uq=this.id=this.Wk=this.Vk=this.y=this.x=this.tu=this.su=this.Cy=this.time=this.Pz=0;this.Bq=this.Du=!1}function b(){}function a(){}var d=fd.prototype;d.L=function(a){this.G=a;this.b=a.b};d.L.prototype.I=function(){};d.J=function(a){this.type=a;this.b=a.b;this.touches=[];this.Qy=!1;this.Iw="TOUCHWRAP";this.cursor={x:null,y:null};
this.$c=[];this.Vb={value:0,ie:function(a){this.value=a},R:function(a){this.value=a},K:function(a){this.value=a}}};var e=d.J.prototype,h={left:0,top:0};e.bh=function(a){var b,c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var c=0,k=0,p=0,t=[];f.prototype.init=function(a,b,c,d){var e=ab();this.Pz=this.Cy=this.time=e;this.su=a;this.tu=b;this.x=a;this.y=b;this.Vk=a;this.Wk=b;this.pressure=this.height=this.width=0;this.id=c;this.uq=d;this.Bq=this.Du=!1};f.prototype.update=
function(a,b,c,d,e,h){this.Cy=this.time;this.time=a;this.Vk=this.x;this.Wk=this.y;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=h;!this.Bq&&15<=Xa(this.su,this.tu,this.x,this.y)&&(this.Bq=!0)};f.prototype.pP=function(a,b){!this.Du&&500<=ab()-this.Pz&&!this.Bq&&15>Xa(this.su,this.tu,this.x,this.y)&&(this.Du=!0,a.Gh=this.uq,a.Fh=this.id,a.em=b,a.b.trigger(fd.prototype.n.TI,a),a.lg=this.x,a.mg=this.y,a.b.trigger(fd.prototype.n.VI,a),a.em=0)};var q=-1E3,B=-1E3,z=-1E4;f.prototype.HE=function(a,
b){if(!this.Du){var c=ab();333>=c-this.Pz&&!this.Bq&&15>Xa(this.su,this.tu,this.x,this.y)&&(a.Gh=this.uq,a.Fh=this.id,a.em=b,666>=c-z&&25>Xa(q,B,this.x,this.y)?(a.b.trigger(fd.prototype.n.MI,a),a.lg=this.x,a.mg=this.y,a.b.trigger(fd.prototype.n.NI,a),B=q=-1E3,z=-1E4):(a.b.trigger(fd.prototype.n.nJ,a),a.lg=this.x,a.mg=this.y,a.b.trigger(fd.prototype.n.tB,a),q=this.x,B=this.y,z=c),a.em=0)}};e.I=function(){this.$O=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.em=this.Fh=this.Gh=
this.mg=this.lg=this.nC=this.mC=this.lC=this.EL=this.DL=this.CL=this.Gt=this.Ft=this.Et=0;this.ZQ=0!==this.B[0];var a=0<this.b.Sd?document:this.b.canvas,b=document;this.b.od?b=a=window.Canvas:this.b.Re&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Xp(a)},!1),a.addEventListener("pointermove",function(a){c.Wp(a)},!1),b.addEventListener("pointerup",function(a){c.Fi(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Fi(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.Xp(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Wp(a)},!1),b.addEventListener("MSPointerUp",
function(a){c.Fi(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Fi(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.Ct(a)},!1),a.addEventListener("touchmove",function(a){c.Bt(a)},!1),b.addEventListener("touchend",function(a){c.Nm(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Nm(a,!0)},
!1));if(this.$O){var d=function(a){a=a.reading;c.lC=a.accelerationX;c.mC=a.accelerationY;c.nC=a.accelerationZ},e=function(a){a=a.reading;c.Et=a.yawDegrees;c.Ft=a.pitchDegrees;c.Gt=a.rollDegrees},h=Windows.Devices.Sensors.Accelerometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",d));var f=Windows.Devices.Sensors.Inclinometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",
function(){document.hidden||document.msHidden?(h&&h.removeEventListener("readingchanged",d),f&&f.removeEventListener("readingchanged",e)):(h&&h.addEventListener("readingchanged",d),f&&f.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.Et=a.alpha||0;c.Ft=a.beta||0;c.Gt=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.CL=a.accelerationIncludingGravity.x||0,c.DL=a.accelerationIncludingGravity.y||
0,c.EL=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.lC=a.acceleration.x||0,c.mC=a.acceleration.y||0,c.nC=a.acceleration.z||0)},!1);this.ZQ&&!this.b.Ca&&(jQuery(document).mousemove(function(a){c.Up(a)}),jQuery(document).mousedown(function(a){c.Tp(a)}),jQuery(document).mouseup(function(a){c.Vp(a)}));!this.b.Qk&&this.b.we&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(g,null,{frequency:40});this.b.Rz(this);this.enable=1==this.B[1];
this.$s=this.Zs=null};e.Wp=function(a){if(this.enable&&a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.bh(a.pointerId),c=ab(),d=this.$c.length;if(0<=b){var e=this.b.Ca?h:jQuery(this.b.canvas).offset(),b=this.touches[b];if(!(2>c-b.time))for(b.update(c,a.pageX-e.left,a.pageY-e.top,a.width||0,a.height||0,a.pressure||0),c=a.pageX-e.left,e=a.pageY-e.top,a=0;a<d;a++)this.$c[a].yv&&this.$c[a].yv(b.identifier,c,e)}}};e.Xp=function(a){if(this.enable&&
a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.Ca?h:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;ab();this.Gh=this.touches.length;this.Fh=a.pointerId;this.touches.push(m(c,b,a.pointerId,this.Gh));this.b.yb=!0;this.b.trigger(fd.prototype.n.vv,this);this.b.trigger(fd.prototype.n.Ng,this);this.lg=c;this.mg=b;this.b.trigger(fd.prototype.n.zv,this);c=this.$c.length;for(a=0;a<c;a++)this.$c[a].Ng&&this.$c[a].Ng(this.Fh,
this.lg,this.mg);this.b.yb=!1}};e.Fi=function(a,b){if(this.enable&&a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.bh(a.pointerId);this.Gh=0<=c?this.touches[c].uq:-1;this.Fh=0<=c?this.touches[c].id:-1;this.b.yb=!0;this.b.trigger(fd.prototype.n.uv,this);this.b.trigger(fd.prototype.n.Ph,this);0<=c&&(this.Zs=this.touches[c].x,this.$s=this.touches[c].y,this.b.trigger(fd.prototype.n.wB,this));var d=this.$c.length,e;for(e=0;e<d;e++)this.$c[e].Ph&&
this.$c[e].Ph(this.Fh);0<=c&&(b||this.touches[c].HE(this,c),l(this.touches[c]),this.touches.splice(c,1));this.b.yb=!1}};e.Bt=function(a){if(this.enable){a.preventDefault&&a.preventDefault();var b=ab(),c,d,e,f,g=this.$c.length,k;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.bh(e.identifier),0<=f&&(k=this.b.Ca?h:jQuery(this.b.canvas).offset(),f=this.touches[f],!(2>b-f.time))){f.update(b,e.pageX-k.left,e.pageY-k.top,2*(e.uS||e.CS||e.mS||e.pS||0),2*(e.vS||e.DS||e.nS||e.qS||
0),e.hS||e.BS||e.lS||e.oS||0);f=e.pageX-k.left;var l=e.pageY-k.top;for(k=0;k<g;k++)this.$c[k].yv&&this.$c[k].yv(e.identifier,f,l)}}};e.Ct=function(a){if(this.enable){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.Ca?h:jQuery(this.b.canvas).offset();ab();this.b.yb=!0;var c,d,e,f,g=this.$c.length;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.bh(e.identifier),-1===f){f=e.pageX-b.left;var k=e.pageY-b.top;this.Gh=this.touches.length;this.Fh=e.identifier;this.touches.push(m(f,
k,e.identifier,this.Gh));this.b.trigger(fd.prototype.n.vv,this);this.b.trigger(fd.prototype.n.Ng,this);this.lg=f;this.mg=k;this.b.trigger(fd.prototype.n.zv,this);for(e=0;e<g;e++)this.$c[e].Ng&&this.$c[e].Ng(this.Fh,this.lg,this.mg)}this.b.yb=!1}};e.Nm=function(a,b){if(this.enable){a.preventDefault&&nb(a)&&a.preventDefault();this.b.yb=!0;var c,d,e,h=this.$c.length,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],e=this.bh(e.identifier),0<=e){this.Gh=this.touches[e].uq;this.Fh=this.touches[e].id;
this.b.trigger(fd.prototype.n.uv,this);this.b.trigger(fd.prototype.n.Ph,this);this.Zs=this.touches[e].x;this.$s=this.touches[e].y;this.b.trigger(fd.prototype.n.wB,this);for(f=0;f<h;f++)this.$c[f].Ph&&this.$c[f].Ph(this.Fh);b||this.touches[e].HE(this,e);l(this.touches[e]);this.touches.splice(e,1)}this.b.yb=!1}};e.tA=function(){return this.b.we&&0===this.Et&&0!==p?90*p:this.Et};e.MG=function(){return this.b.we&&0===this.Ft&&0!==k?90*k:this.Ft};e.mH=function(){return this.b.we&&0===this.Gt&&0!==c?90*
c:this.Gt};e.$z=function(a){var b=this.b.Ca?h:jQuery(this.b.canvas).offset();this.cursor.x=a.pageX-b.left;this.cursor.y=a.pageY-b.top};e.Tp=function(a){if(this.enable){this.$z(a);this.Qy=!0;a.preventDefault&&this.b.Io&&!this.b.lf&&a.preventDefault();var b=this.bh(0);-1!==b&&(l(this.touches[b]),Ea(this.touches,b));this.Ct({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})}};e.Up=function(a){this.enable&&(this.$z(a),this.Qy&&this.Bt({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}))};
e.Vp=function(a){this.enable&&(this.$z(a),this.Qy=!1,a.preventDefault&&this.b.Io&&!this.b.lf&&a.preventDefault(),this.b.Io=!0,this.Nm({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}))};e.Wf=function(){if(this.enable){var a,b,c,d=ab();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Cy=d),c.pP(this,a);this.$s=this.Zs=null}};b.prototype.Ng=function(){return!0};b.prototype.Ph=function(){return!0};b.prototype.Cn=function(){return this.Cn()};b.prototype.zv=function(a){return a?
this.b.gn(a,this.lg,this.mg):!1};var x=[];b.prototype.gI=function(a){if(this.Cn()){if(!a)return!1;var b=a.ga(),c=b.vc(),d,e,h,f,g,k;h=0;for(f=c.length;h<f;h++){var l=c[h];l.ja();g=0;for(k=this.touches.length;g<k;g++)if(e=this.touches[g],d=l.F.Ga(e.x,e.y,!0),e=l.F.Ga(e.x,e.y,!1),l.ec(d,e)){x.push(l);break}}return x.length?(b.na=!1,Ga(b.A,x),a.jd(),H(x),!0):!1}};b.prototype.vv=function(a){a=Math.floor(a);return a===this.Gh};b.prototype.uv=function(a){a=Math.floor(a);return a===this.Gh};b.prototype.TI=
function(){return!0};b.prototype.nJ=function(){return!0};b.prototype.MI=function(){return!0};b.prototype.VI=function(a){return a?this.b.gn(a,this.lg,this.mg):!1};b.prototype.tB=function(a){return a?this.b.gn(a,this.lg,this.mg):!1};b.prototype.NI=function(a){return a?this.b.gn(a,this.lg,this.mg):!1};b.prototype.wB=function(a){return a?this.b.gn(a,this.Zs,this.$s):!1};d.n=new b;d.q=new function(){};a.prototype.ZB=function(a){a.R(this.touches.length)};a.prototype.Gl=function(a,b){var c=this.em;if(0>
c||c>=this.touches.length)a.K(0);else{var d,e,h,f,g;ka(b)?(d=this.b.uc(0),e=d.scale,h=d.ib,f=d.pb,g=d.C,d.scale=1,d.ib=1,d.pb=1,d.C=0,a.K(d.Ga(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.ib=h,d.pb=f,d.C=g):(d=E(b)?this.b.uc(b):this.b.Lf(b))?a.K(d.Ga(this.touches[c].x,this.touches[c].y,!0)):a.K(0)}};a.prototype.bC=function(a,b,c){b=Math.floor(b);if(0>b||b>=this.touches.length)a.K(0);else{var d,e,h,f;ka(c)?(c=this.b.uc(0),d=c.scale,e=c.ib,h=c.pb,f=c.C,c.scale=1,c.ib=1,c.pb=1,c.C=0,a.K(c.Ga(this.touches[b].x,
this.touches[b].y,!0)),c.scale=d,c.ib=e,c.pb=h,c.C=f):(c=E(c)?this.b.uc(c):this.b.Lf(c))?a.K(c.Ga(this.touches[b].x,this.touches[b].y,!0)):a.K(0)}};a.prototype.fw=function(a,b,c){b=this.bh(b);if(0>b)a.K(0);else{b=this.touches[b];var d,e,h,f;ka(c)?(c=this.b.uc(0),d=c.scale,e=c.ib,h=c.pb,f=c.C,c.scale=1,c.ib=1,c.pb=1,c.C=0,a.K(c.Ga(b.x,b.y,!0)),c.scale=d,c.ib=e,c.pb=h,c.C=f):(c=E(c)?this.b.uc(c):this.b.Lf(c))?a.K(c.Ga(b.x,b.y,!0)):a.K(0)}};a.prototype.Hl=function(a,b){var c=this.em;if(0>c||c>=this.touches.length)a.K(0);
else{var d,e,h,f,g;ka(b)?(d=this.b.uc(0),e=d.scale,h=d.ib,f=d.Qb,g=d.C,d.scale=1,d.ib=1,d.Qb=1,d.C=0,a.K(d.Ga(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.ib=h,d.Qb=f,d.C=g):(d=E(b)?this.b.uc(b):this.b.Lf(b))?a.K(d.Ga(this.touches[c].x,this.touches[c].y,!1)):a.K(0)}};a.prototype.cC=function(a,b,c){b=Math.floor(b);if(0>b||b>=this.touches.length)a.K(0);else{var d,e,h,f;ka(c)?(c=this.b.uc(0),d=c.scale,e=c.ib,h=c.Qb,f=c.C,c.scale=1,c.ib=1,c.Qb=1,c.C=0,a.K(c.Ga(this.touches[b].x,this.touches[b].y,
!1)),c.scale=d,c.ib=e,c.Qb=h,c.C=f):(c=E(c)?this.b.uc(c):this.b.Lf(c))?a.K(c.Ga(this.touches[b].x,this.touches[b].y,!1)):a.K(0)}};a.prototype.gw=function(a,b,c){b=this.bh(b);if(0>b)a.K(0);else{b=this.touches[b];var d,e,h,f;ka(c)?(c=this.b.uc(0),d=c.scale,e=c.ib,h=c.Qb,f=c.C,c.scale=1,c.ib=1,c.Qb=1,c.C=0,a.K(c.Ga(b.x,b.y,!1)),c.scale=d,c.ib=e,c.Qb=h,c.C=f):(c=E(c)?this.b.uc(c):this.b.Lf(c))?a.K(c.Ga(b.x,b.y,!1)):a.K(0)}};a.prototype.Su=function(a){this.touches.length?a.K(this.touches[0].x):a.K(0)};
a.prototype.lA=function(a,b){b=Math.floor(b);0>b||b>=this.touches.length?a.K(0):a.K(this.touches[b].x)};a.prototype.mA=function(a,b){var c=this.bh(b);0>c?a.K(0):a.K(this.touches[c].x)};a.prototype.Tu=function(a){this.touches.length?a.K(this.touches[0].y):a.K(0)};a.prototype.nA=function(a,b){b=Math.floor(b);0>b||b>=this.touches.length?a.K(0):a.K(this.touches[b].y)};a.prototype.oA=function(a,b){var c=this.bh(b);0>c?a.K(0):a.K(this.touches[c].y)};d.D=new a;e.OH=function(a){this.$c.push(a)};e.yl=function(a){Ja(this.$c,
a)};e.Cn=function(){return 0<this.touches.length};var u=fd.prototype.D;e.ZB=function(){u.ZB.call(this,this.Vb);return this.Vb.value};e.Gl=function(a){u.Gl.call(this,this.Vb,a);return this.Vb.value};e.bC=function(a,b){u.bC.call(this,this.Vb,a,b);return this.Vb.value};e.fw=function(a,b){u.fw.call(this,this.Vb,a,b);return this.Vb.value};e.Hl=function(a){u.Hl.call(this,this.Vb,a);return this.Vb.value};e.cC=function(a,b){u.cC.call(this,this.Vb,a,b);return this.Vb.value};e.gw=function(a,b){u.gw.call(this,
this.Vb,a,b);return this.Vb.value};e.Su=function(){u.Su.call(this,this.Vb);return this.Vb.value};e.lA=function(a){u.lA.call(this,this.Vb,a);return this.Vb.value};e.mA=function(a){u.mA.call(this,this.Vb,a);return this.Vb.value};e.Tu=function(){u.Tu.call(this,this.Vb);return this.Vb.value};e.nA=function(a){u.nA.call(this,this.Vb,a);return this.Vb.value};e.oA=function(a){u.oA.call(this,this.Vb,a);return this.Vb.value};e.qf=function(a){if(null==this.cursor.x)return null;var b,c,d,e,h;ka(a)?(a=this.b.uc(0),
c=a.scale,d=a.ib,e=a.pb,h=a.C,a.scale=1,a.ib=1,a.pb=1,a.C=0,b=a.Ga(this.cursor.x,this.cursor.y,!0),a.scale=c,a.ib=d,a.pb=e,a.C=h):(a=E(a)?this.b.uc(a):this.b.Lf(a))?b=a.Ga(this.cursor.x,this.cursor.y,!0):b=0;return b};e.Ji=function(a){if(null==this.cursor.y)return null;var b,c,d,e,h;ka(a)?(a=this.b.uc(0),c=a.scale,d=a.ib,e=a.pb,h=a.C,a.scale=1,a.ib=1,a.pb=1,a.C=0,b=a.Ga(this.cursor.x,this.cursor.y,!1),a.scale=c,a.ib=d,a.pb=e,a.C=h):(a=E(a)?this.b.uc(a):this.b.Lf(a))?b=a.Ga(this.cursor.x,this.cursor.y,
!1):b=0;return b};e.Va=function(){return this.cursor.x};e.Fd=function(){return this.cursor.y}})();function gd(g){this.b=g}
(function(){function g(){}var m=gd.prototype;m.L=function(g){this.G=g;this.b=g.b};m.L.prototype.I=function(){};m.J=function(g){this.type=g;this.b=g.b;window.vooxe={};window.GD_OPTIONS={}};m.J.prototype.I=function(){if(window.vooxe||window.GD_OPTIONS){this.Vi=window.vooxe;var g=this;this.Vi.onInit=function(){fa("Gamedistribution.com SDK: onInit");g.my=!1;g.b.trigger(gd.prototype.n.BP,g)};this.Vi.onError=function(){fa("Gamedistribution.com SDK: onError");g.my=!0;g.b.trigger(gd.prototype.n.AP,g)};this.Vi.onResumeGame=
function(){fa("Gamedistribution.com SDK: onResume");g.my=!1;g.b.trigger(gd.prototype.n.EP,g)};this.Vi.onPauseGame=function(){fa("Gamedistribution.com SDK: onPauseGame");g.my=!0;g.b.trigger(gd.prototype.n.DP,g)};this.Vi.InitAds=function(){window.GD_OPTIONS={gameId:g.B[0],userId:g.B[1],advertisementSettings:{autoplay:!1},onEvent:function(f){switch(f.name){case "SDK_GAME_START":g.Vi.onResumeGame();break;case "SDK_GAME_PAUSE":g.Vi.onPauseGame();break;case "SDK_READY":g.Vi.onInit();break;case "SDK_ERROR":g.Vi.onError()}}};
(function(f,b,a){var d=f.getElementsByTagName(b)[0];f.getElementById(a)||(f=f.createElement(b),f.id=a,f.src="//html5.api.gamedistribution.com/main.min.js",d.parentNode.insertBefore(f,d))})(document,"script","gamedistribution-jssdk")}}else fa("[Construct 2] Gamedistribution.com SDK is required to show advertisements within Cordova; other platforms are not supported.")};g.prototype.BP=function(){return!0};g.prototype.AP=function(){return!0};g.prototype.EP=function(){return!0};g.prototype.DP=function(){return!0};
m.n=new g;m.q=new function(){};m.D=new function(){}})();function hd(g){this.b=g}
(function(){function g(){}function m(){}function l(){}var f=hd.prototype;f.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};f.L.prototype.I=function(){};f.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};var b=f.J.prototype;b.I=function(){var a=this.B[0];this.jb=this.B[1];this.gh=this.B[2];this.UL=0!==this.B[3];this.Ez=0!==this.B[4];this.aa=Math.cos(this.j.C)*a;this.Y=Math.sin(this.j.C)*a;this.Vk=this.j.x;this.Wk=this.j.y;this.ed=this.j.C;this.Cq=0;this.enabled=0!==this.B[5]};
b.P=function(){return{acc:this.jb,g:this.gh,dx:this.aa,dy:this.Y,lx:this.Vk,ly:this.Wk,lka:this.ed,t:this.Cq,e:this.enabled}};b.ca=function(a){this.jb=a.acc;this.gh=a.g;this.aa=a.dx;this.Y=a.dy;this.Vk=a.lx;this.Wk=a.ly;this.ed=a.lka;this.Cq=a.t;this.enabled=a.e};b.ra=function(){if(this.enabled){var a=this.b.de(this.j),b,e;this.j.C!==this.ed&&(this.Ez&&(b=Xa(0,0,this.aa,this.Y),this.aa=Math.cos(this.j.C)*b,this.Y=Math.sin(this.j.C)*b),this.ed=this.j.C);0!==this.jb&&(b=Xa(0,0,this.aa,this.Y),e=0===
this.aa&&0===this.Y?this.j.C:Qa(0,0,this.aa,this.Y),b+=this.jb*a,0>b&&(b=0),this.aa=Math.cos(e)*b,this.Y=Math.sin(e)*b);0!==this.gh&&(this.Y+=this.gh*a);this.Vk=this.j.x;this.Wk=this.j.y;if(0!==this.aa||0!==this.Y)if(this.j.x+=this.aa*a,this.j.y+=this.Y*a,this.Cq+=Xa(0,0,this.aa*a,this.Y*a),this.Ez&&(this.j.C=Qa(0,0,this.aa,this.Y),this.j.S(),this.ed=this.j.C),this.j.S(),this.UL&&(b=this.b.Tf(this.j)))this.b.Um(this.j,b),b=Xa(0,0,this.aa,this.Y),e=this.b.XL(this.j,this.Vk,this.Wk),this.aa=Math.cos(e)*
b,this.Y=Math.sin(e)*b,this.j.x+=this.aa*a,this.j.y+=this.Y*a,this.j.S(),this.Ez&&(this.ed=this.j.C=e,this.j.S()),this.b.Tt(this.j,this.aa/b,this.Y/b,Math.max(2.5*b*a,30))||this.b.qF(this.j,100)}};g.prototype.dH=function(a,b){return hc(this.Cq,a,b)};f.n=new g;m.prototype.Dl=function(a){var b=Qa(0,0,this.aa,this.Y);this.aa=Math.cos(b)*a;this.Y=Math.sin(b)*a};m.prototype.Rh=function(a){this.jb=a};m.prototype.NB=function(a){this.gh=a};m.prototype.OJ=function(a){a=K(a);var b=Xa(0,0,this.aa,this.Y);this.aa=
Math.cos(a)*b;this.Y=Math.sin(a)*b};m.prototype.bg=function(a){this.enabled=1===a};f.q=new m;l.prototype.Fl=function(a){var b=Xa(0,0,this.aa,this.Y),b=lb(b);a.K(b)};f.D=new l})();
function id(g){this.b=g;var m=this;this.b.Ca||(jQuery(document).mousemove(function(g){m.Up(g)}),jQuery(document).mousedown(function(g){m.Tp(g)}),jQuery(document).mouseup(function(g){m.Vp(g)}));g=0<this.b.Sd?document:this.b.canvas;this.b.od?g=window.Canvas:this.b.Re&&(g=window);"undefined"!==typeof PointerEvent?(g.addEventListener("pointerdown",function(g){m.Xp(g)},!1),g.addEventListener("pointermove",function(g){m.Wp(g)},!1),g.addEventListener("pointerup",function(g){m.Fi(g)},!1),g.addEventListener("pointercancel",
function(g){m.Fi(g)},!1)):window.navigator.msPointerEnabled?(g.addEventListener("MSPointerDown",function(g){m.Xp(g)},!1),g.addEventListener("MSPointerMove",function(g){m.Wp(g)},!1),g.addEventListener("MSPointerUp",function(g){m.Fi(g)},!1),g.addEventListener("MSPointerCancel",function(g){m.Fi(g)},!1)):(g.addEventListener("touchstart",function(g){m.Ct(g)},!1),g.addEventListener("touchmove",function(g){m.Bt(g)},!1),g.addEventListener("touchend",function(g){m.Nm(g)},!1),g.addEventListener("touchcancel",
function(g){m.Nm(g)},!1))}
(function(){function g(a){var b,h;b=0;for(h=a.ua.length;b<h;b++)if(a.ua[b]instanceof f.J)return a.ua[b];return null}function m(){}function l(){}var f=id.prototype,b={left:0,top:0};f.Tp=function(a){1===a.which&&this.Yy("leftmouse",a.pageX,a.pageY)};f.Up=function(a){1===a.which&&this.Zy("leftmouse",a.pageX,a.pageY)};f.Vp=function(a){1===a.which&&this.$y("leftmouse")};f.Ct=function(a){a.preventDefault&&nb(a)&&a.preventDefault();var b,h,c,f;b=0;for(h=a.changedTouches.length;b<h;b++)c=a.changedTouches[b],
f=c.identifier,this.Yy(f?f.toString():"<none>",c.pageX,c.pageY)};f.Bt=function(a){a.preventDefault&&a.preventDefault();var b,h,c,f;b=0;for(h=a.changedTouches.length;b<h;b++)c=a.changedTouches[b],f=c.identifier,this.Zy(f?f.toString():"<none>",c.pageX,c.pageY)};f.Nm=function(a){a.preventDefault&&nb(a)&&a.preventDefault();var b,h,c;b=0;for(h=a.changedTouches.length;b<h;b++)c=a.changedTouches[b],c=c.identifier,this.$y(c?c.toString():"<none>")};f.Xp=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType&&(a.preventDefault&&nb(a)&&a.preventDefault(),this.Yy(a.pointerId.toString(),a.pageX,a.pageY))};f.Wp=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.Zy(a.pointerId.toString(),a.pageX,a.pageY))};f.Fi=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&nb(a)&&a.preventDefault(),this.$y(a.pointerId.toString()))};f.Yy=function(a,e,h){var c=this.b.Ca?b:jQuery(this.b.canvas).offset();
e=e-c.left;h=h-c.top;var f,l,m,q,c=this.dl.$e(),B,z,x,u=null;B=0;for(z=c.length;B<z;B++)if(x=c[B],f=g(x),f.enabled&&!f.Zg&&(f=x.F.Ga(e,h,!0),l=x.F.Ga(e,h,!1),x.ja(),x.ec(f,l)))u?x.F.index>u.F.index?(u=x,m=f,q=l):x.F.index===u.F.index&&x.Qe()>u.Qe()&&(u=x,m=f,q=l):(u=x,m=f,q=l);u&&g(u).zP(a,m,q)};f.Zy=function(a,e,h){var c=this.b.Ca?b:jQuery(this.b.canvas).offset();e=e-c.left;h=h-c.top;var f,l=this.dl.$e(),m,q,B;m=0;for(q=l.length;m<q;m++)f=l[m],B=g(f),!B.enabled||!B.Zg||B.Zg&&B.Ww!==a||(c=f.F.Ga(e,
h,!0),f=f.F.Ga(e,h,!1),B.CP(c,f))};f.$y=function(a){var b=this.dl.$e(),f,c,k;f=0;for(c=b.length;f<c;f++)k=b[f],k=g(k),k.Zg&&k.Ww===a&&k.XE()};f.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};f.L.prototype.I=function(){};f.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};var a=f.J.prototype;a.I=function(){this.Zg=!1;this.Y=this.aa=0;this.Ww="<none>";this.Bw=this.B[0];this.enabled=0!==this.B[1]};a.P=function(){return{enabled:this.enabled}};a.ca=function(a){this.enabled=
a.enabled;this.Zg=!1};a.zP=function(a,b,f){this.aa=b-this.j.x;this.Y=f-this.j.y;this.Zg=!0;this.Ww=a;this.b.yb=!0;this.b.trigger(id.prototype.n.dB,this.j);this.b.yb=!1};a.CP=function(a,b){var f=a-this.aa,c=b-this.Y;if(0===this.Bw){if(this.j.x!==f||this.j.y!==c)this.j.x=f,this.j.y=c,this.j.S()}else 1===this.Bw?this.j.x!==f&&(this.j.x=f,this.j.S()):2===this.Bw&&this.j.y!==c&&(this.j.y=c,this.j.S())};a.XE=function(){this.Zg=!1;this.b.yb=!0;this.b.trigger(id.prototype.n.eB,this.j);this.b.yb=!1};a.ra=
function(){};m.prototype.XH=function(){return this.Zg};m.prototype.dB=function(){return!0};m.prototype.eB=function(){return!0};f.n=new m;l.prototype.bg=function(a){this.enabled=0!==a;this.enabled||(this.Zg=!1)};l.prototype.sH=function(){this.Zg&&this.XE()};f.q=new l;f.D=new function(){}})();function jd(g){this.b=g}
(function(){function g(){}function m(){}var l=jd.prototype;l.L=function(b,a){this.behavior=b;this.Hb=a;this.b=b.b};l.L.prototype.I=function(){};l.J=function(b,a){this.type=b;this.behavior=b.behavior;this.j=a;this.b=b.b;this.mu=this.lu=this.ku=this.nu=this.Ux=this.kq=this.sp=this.so=this.Fq=!1;this.By=this.Ay=this.zy=this.Dy=-1;this.Y=this.aa=0};var f=l.J.prototype;f.I=function(){this.ph=this.B[0];this.jb=this.B[1];this.df=this.B[2];this.Vw=this.B[3];this.yw=this.B[4];this.kM=1===this.B[5];this.enabled=
0!==this.B[6];this.kM&&!this.b.Ca&&(jQuery(document).keydown(function(b){return function(a){b.az(a)}}(this)),jQuery(document).keyup(function(b){return function(a){b.bz(a)}}(this)))};f.P=function(){return{dx:this.aa,dy:this.Y,enabled:this.enabled,maxspeed:this.ph,acc:this.jb,dec:this.df,ignoreInput:this.Ux}};f.ca=function(b){this.aa=b.dx;this.Y=b.dy;this.enabled=b.enabled;this.ph=b.maxspeed;this.jb=b.acc;this.df=b.dec;this.Ux=b.ignoreInput;this.mu=this.lu=this.ku=this.nu=this.kq=this.sp=this.so=this.Fq=
!1;this.By=this.Ay=this.zy=this.Dy=-1};f.az=function(b){var a=this.b.hd;switch(b.which){case 37:b.preventDefault();this.Ay<a&&(this.sp=!0);break;case 38:b.preventDefault();this.Dy<a&&(this.Fq=!0);break;case 39:b.preventDefault();this.By<a&&(this.kq=!0);break;case 40:b.preventDefault(),this.zy<a&&(this.so=!0)}};f.bz=function(b){var a=this.b.hd;switch(b.which){case 37:b.preventDefault();this.sp=!1;this.Ay=a;break;case 38:b.preventDefault();this.Fq=!1;this.Dy=a;break;case 39:b.preventDefault();this.kq=
!1;this.By=a;break;case 40:b.preventDefault(),this.so=!1,this.zy=a}};f.Oj=function(){this.kq=this.sp=this.so=this.Fq=!1};f.ra=function(){var b=this.b.de(this.j),a=this.sp||this.lu,d=this.kq||this.mu,e=this.Fq||this.nu,f=this.so||this.ku;this.ku=this.nu=this.mu=this.lu=!1;if(this.enabled){var c=this.b.Tf(this.j);if(c&&(this.b.Um(this.j,c),!this.b.qF(this.j)))return;this.Ux&&(f=e=d=a=!1);0===this.Vw?d=a=!1:1===this.Vw&&(f=e=!1);2===this.Vw&&(e||f)&&(d=a=!1);a==d&&(0>this.aa?(this.aa+=this.df*b,0<this.aa&&
(this.aa=0)):0<this.aa&&(this.aa-=this.df*b,0>this.aa&&(this.aa=0)));e==f&&(0>this.Y?(this.Y+=this.df*b,0<this.Y&&(this.Y=0)):0<this.Y&&(this.Y-=this.df*b,0>this.Y&&(this.Y=0)));a&&!d&&(this.aa=0<this.aa?this.aa-(this.jb+this.df)*b:this.aa-this.jb*b);d&&!a&&(this.aa=0>this.aa?this.aa+(this.jb+this.df)*b:this.aa+this.jb*b);e&&!f&&(this.Y=0<this.Y?this.Y-(this.jb+this.df)*b:this.Y-this.jb*b);f&&!e&&(this.Y=0>this.Y?this.Y+(this.jb+this.df)*b:this.Y+this.jb*b);if(0!==this.aa||0!==this.Y){Math.sqrt(this.aa*
this.aa+this.Y*this.Y)>this.ph&&(c=Math.atan2(this.Y,this.aa),this.aa=this.ph*Math.cos(c),this.Y=this.ph*Math.sin(c));d=this.j.x;e=this.j.y;a=this.j.C;this.j.x+=this.aa*b;this.j.S();if(c=this.b.Tf(this.j))this.b.Tt(this.j,0>this.aa?1:-1,0,Math.abs(Math.floor(this.aa*b)))||(this.j.x=d),this.aa=0,this.j.S(),this.b.Um(this.j,c);this.j.y+=this.Y*b;this.j.S();if(c=this.b.Tf(this.j))this.b.Tt(this.j,0,0>this.Y?1:-1,Math.abs(Math.floor(this.Y*b)))||(this.j.y=e),this.Y=0,this.j.S(),this.b.Um(this.j,c);b=
lb(this.aa);c=lb(this.Y);0===b&&0===c||!this.j.type.G.dP||(1===this.yw?this.j.C=Pa(90*Math.round(La(Math.atan2(c,b))/90)):2===this.yw?this.j.C=Pa(45*Math.round(La(Math.atan2(c,b))/45)):3===this.yw&&(this.j.C=Math.atan2(c,b)));this.j.S();this.j.C!=a&&(c=this.b.Tf(this.j))&&(this.j.C=a,this.j.S(),this.b.Um(this.j,c))}}};l.n=new function(){};g.prototype.fj=function(){this.Y=this.aa=0};g.prototype.dr=function(){this.aa*=-1;this.Y*=-1};g.prototype.Dl=function(b){0>b&&(b=0);b>this.ph&&(b=this.ph);var a=
Math.atan2(this.Y,this.aa);this.aa=b*Math.cos(a);this.Y=b*Math.sin(a)};g.prototype.jr=function(b){this.ph=b;0>this.ph&&(this.ph=0)};g.prototype.Rh=function(b){this.jb=b;0>this.jb&&(this.jb=0)};g.prototype.hr=function(b){this.df=b;0>this.df&&(this.df=0)};g.prototype.KK=function(b){switch(b){case 0:this.lu=!0;break;case 1:this.mu=!0;break;case 2:this.nu=!0;break;case 3:this.ku=!0}};g.prototype.bg=function(b){this.enabled=1===b};l.q=new g;m.prototype.Fl=function(b){b.K(Math.sqrt(this.aa*this.aa+this.Y*
this.Y))};l.D=new m})();function kd(g){this.b=g}
(function(){function g(){}function m(){}var l=kd.prototype;l.L=function(b,a){this.behavior=b;this.Hb=a;this.b=b.b};l.L.prototype.I=function(){};l.J=function(b,a){this.type=b;this.behavior=b.behavior;this.j=a;this.b=b.b};var f=l.J.prototype;f.I=function(){this.vw=1===this.B[0];this.JF=!1;this.yo=this.B[1];this.un=this.B[2];this.zo=this.B[3];this.pM=this.B[4];this.Xc=this.vw?0:3;this.Ib?this.Rf.reset():this.Rf=new eb;this.Mj=this.j.opacity?this.j.opacity:1;this.vw&&(0===this.yo?(this.Xc=1,0===this.un&&
(this.Xc=2)):(this.j.opacity=0,this.b.la=!0))};f.P=function(){return{fit:this.yo,wt:this.un,fot:this.zo,s:this.Xc,st:this.Rf.wa,mo:this.Mj}};f.ca=function(b){this.yo=b.fit;this.un=b.wt;this.zo=b.fot;this.Xc=b.s;this.Rf.reset();this.Rf.wa=b.st;this.Mj=b.mo};f.ra=function(){this.Rf.add(this.b.de(this.j));0===this.Xc&&(this.j.opacity=this.Rf.wa/this.yo*this.Mj,this.b.la=!0,this.j.opacity>=this.Mj&&(this.j.opacity=this.Mj,this.Xc=1,this.Rf.reset(),this.b.trigger(kd.prototype.n.OI,this.j)));1===this.Xc&&
this.Rf.wa>=this.un&&(this.Xc=2,this.Rf.reset(),this.b.trigger(kd.prototype.n.Bv,this.j));2===this.Xc&&0!==this.zo&&(this.j.opacity=this.Mj-this.Rf.wa/this.zo*this.Mj,this.b.la=!0,0>this.j.opacity&&(this.j.opacity=0,this.Xc=3,this.Rf.reset(),this.b.trigger(kd.prototype.n.QI,this.j),1===this.pM&&this.b.ne(this.j)))};f.JM=function(){this.Xc=0;this.Rf.reset();0===this.yo?(this.Xc=1,0===this.un&&(this.Xc=2)):(this.j.opacity=0,this.b.la=!0)};g.prototype.QI=function(){return!0};g.prototype.OI=function(){return!0};
g.prototype.Bv=function(){return!0};l.n=new g;m.prototype.PK=function(){this.vw||this.JF||(this.Mj=this.j.opacity?this.j.opacity:1,this.JF=!0);3===this.Xc&&this.JM()};m.prototype.EK=function(b){0>b&&(b=0);this.un=b};m.prototype.YJ=function(b){0>b&&(b=0);this.zo=b};l.q=new m;l.D=new function(){}})();function ld(g){this.b=g}
(function(){function g(){}function m(){}var l=ld.prototype;l.L=function(b,a){this.behavior=b;this.Hb=a;this.b=b.b};l.L.prototype.I=function(){};l.J=function(b,a){this.type=b;this.behavior=b.behavior;this.j=a;this.b=b.b};var f=l.J.prototype;f.I=function(){this.Eh=this.Bh=this.Xc=this.At=this.Dt=0};f.P=function(){return{ontime:this.Dt,offtime:this.At,stage:this.Xc,stagetimeleft:this.Bh,timeleft:this.Eh}};f.ca=function(b){this.Dt=b.ontime;this.At=b.offtime;this.Xc=b.stage;this.Bh=b.stagetimeleft;this.Eh=
b.timeleft;null===this.Eh&&(this.Eh=Infinity)};f.ra=function(){if(!(0>=this.Eh)){var b=this.b.de(this.j);this.Eh-=b;0>=this.Eh?(this.Eh=0,this.j.visible=!0,this.b.la=!0,this.b.trigger(ld.prototype.n.RI,this.j)):(this.Bh-=b,0>=this.Bh&&(0===this.Xc?(this.j.visible=!1,this.Xc=1,this.Bh+=this.At):(this.j.visible=!0,this.Xc=0,this.Bh+=this.Dt),this.b.la=!0))}};g.prototype.RI=function(){return!0};l.n=new g;m.prototype.yH=function(b,a,d){this.Dt=b;this.At=a;this.Xc=1;this.Bh=a;this.Eh=d;this.j.visible=
!1;this.b.la=!0};l.q=new m;l.D=new function(){}})();function md(g){this.b=g}
(function(){function g(){}function m(){}var l=md.prototype;l.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};var f=l.L.prototype;f.I=function(){this.fl=[]};f.EN=function(a){var b,d,e;b=0;for(d=a.ua.length;b<d;++b)if(e=a.ua[b],e instanceof md.prototype.J&&e.type===this)return e;return null};l.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};f=l.J.prototype;f.I=function(){this.vP=this.B[0];this.Wt=this.B[1];this.Rr=K(this.B[2]);this.xG=0!==this.B[3]};f.Pb=function(){};
f.P=function(){var a={r:this.Wt,c:this.Rr,t:[]},b,d;b=0;for(d=this.type.fl.length;b<d;b++)a.t.push(this.type.fl[b].eb);return a};f.ca=function(a){this.Wt=a.r;this.Rr=a.c;H(this.type.fl);var b,d,e;b=0;for(d=a.t.length;b<d;b++)(e=this.b.Co(a.t[b]))&&this.type.fl.push(e)};f.ra=function(){};var b=[],a=new wa(0,0,0,0);f.FO=function(d,c){var e=this.j.x,f=this.j.y,g=this.j.C;0>this.j.width&&(g+=Math.PI);if(Xa(e,f,d,c)>this.Wt||Ra(g,Qa(e,f,d,c))>this.Rr/2)return!1;var l,m;a.set(e,f,d,c);a.normalize();if(0===
this.vP)for(this.xG?this.b.yD(this.j.F,a,b):(g=this.b.Mz)&&Ha(b,g.dl.$e()),g=0,l=b.length;g<l;++g){if(m=b[g],m.ka.solidEnabled&&m!==this.j&&this.b.bG(e,f,d,c,m))return H(b),!1}else{if(this.xG)this.b.BD(this.j.F,this.type.fl,a,b);else for(g=0,l=this.type.fl.length;g<l;++g)Ha(b,this.type.fl[g].A);g=0;for(l=b.length;g<l;++g)if(m=b[g],m!==this.j&&this.b.bG(e,f,d,c,m))return H(b),!1}H(b);return!0};var d=new ca,e=new ca;g.prototype.MH=function(a){if(!a)return!1;var b,f,g,l,m,B,z,x,u=this.b.TN().ga();a=
a.ga();var r=u.vc(),y=a.vc();u.na&&H(u.Ha);a.na&&H(a.Ha);var D=this.b.ki().Qo;b=0;for(g=r.length;b<g;++b){m=r[b];x=!1;B=this.EN(m);f=0;for(l=y.length;f<l;++f)z=y[f],m!==z&&Ya(B.FO(z.x,z.y),D)&&(x=!0,e.add(z));x&&d.add(m)}b=d.$e();f=e.$e();u.na=!1;a.na=!1;Ga(u.A,b);Ga(a.A,f);d.clear();e.clear();return u.Js()};l.n=new g;m.prototype.sK=function(a){this.Wt=a};m.prototype.WJ=function(a){this.Rr=K(a)};l.q=new m;l.D=new function(){}})();function nd(g){this.b=g}
(function(){function g(){}var m=nd.prototype;m.L=function(f,b){this.behavior=f;this.Hb=b;this.b=f.b};m.L.prototype.I=function(){};m.J=function(f,b){this.type=f;this.behavior=f.behavior;this.j=b;this.b=f.b};var l=m.J.prototype;l.I=function(){this.pb=this.B[0];this.Qb=this.B[1];this.enabled=0==this.B[2]?!0:!1;this.dz=0==this.B[3]?!0:!1;this.lQ()};l.lQ=function(){this.Wx=this.j.y};l.Pb=function(){};l.P=function(){return{px:this.pb,py:this.Qb,e:this.enabled,iy:this.Wx,ow:this.dz}};l.ca=function(f){this.pb=
f.px;this.Qb=f.py;this.enabled=f.e;this.Wx=f.iy;this.dz=f.ow};l.ra=function(){};l.Wf=function(){if(0!=this.enabled){var f=this.j,b=f.F,a=b.zc,d=Math.abs(b.bb-b.Ra),e=Math.abs(b.fb-b.Ua),g=f.X.width,c=a.scrollX,a=a.height-(a.scrollY+.5*e);f.width=Math.ceil(d/g+2)*g;d=Math.abs(1-this.pb/100);100<this.pb&&(d=-Math.abs(this.pb/100));c=c*d;1==this.dz&&(c=f.x);for(;c+.5*g>b.Ra;)c-=g;for(;c+f.width-.5*g<b.bb;)c+=g;f.x=c;b=Math.abs(100-this.Qb)/100;100<this.Qb&&(b=-Math.abs(this.Qb/100));f.y=this.Wx-a*b;
f.S()}};m.n=new function(){};g.prototype.bg=function(f){this.enabled=1===f};m.q=new g;m.D=new function(){}})();function od(g){this.b=g}
(function(){function g(){}function m(){}function l(){}var f=od.prototype;f.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};f.L.prototype.I=function(){};f.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};var b=f.J.prototype;b.I=function(){this.Ka=null;this.Hi=-1;this.mode=this.ed=this.Pi=this.pf=this.Gi=this.aq=0;var a=this;this.Ib||(this.Kp=function(b){a.Rp(b)});this.b.ur(this.Kp)};b.P=function(){return{uid:this.Ka?this.Ka.uid:-1,pa:this.aq,pd:this.Gi,msa:this.pf,tsa:this.Pi,
lka:this.ed,m:this.mode}};b.ca=function(a){this.Hi=a.uid;this.aq=a.pa;this.Gi=a.pd;this.pf=a.msa;this.Pi=a.tsa;this.ed=a.lka;this.mode=a.m};b.Kb=function(){-1===this.Hi?this.Ka=null:this.Ka=this.b.Td(this.Hi);this.Hi=-1};b.Rp=function(a){this.Ka==a&&(this.Ka=null)};b.Pb=function(){this.Ka=null;this.b.tF(this.Kp)};b.ra=function(){};b.Wf=function(){if(this.Ka){this.ed!==this.j.C&&(this.pf=Na(this.pf+(this.j.C-this.ed)));var a=this.j.x,b=this.j.y;if(3===this.mode||4===this.mode){var e=Xa(this.j.x,this.j.y,
this.Ka.x,this.Ka.y);if(e>this.Gi||4===this.mode&&e<this.Gi)b=Qa(this.Ka.x,this.Ka.y,this.j.x,this.j.y),a=this.Ka.x+Math.cos(b)*this.Gi,b=this.Ka.y+Math.sin(b)*this.Gi}else a=this.Ka.x+Math.cos(this.Ka.C+this.aq)*this.Gi,b=this.Ka.y+Math.sin(this.Ka.C+this.aq)*this.Gi;this.ed=e=Na(this.pf+(this.Ka.C-this.Pi));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.j.x===a&&this.j.y===b||(this.j.x=a,this.j.y=b,this.j.S());0!==this.mode&&2!==this.mode||this.j.C===e||(this.j.C=e,this.j.S())}};
g.prototype.PA=function(){return!!this.Ka};f.n=new g;m.prototype.Dv=function(a,b){if(a){var e=a.cm(this.j);e&&(this.Ka=e,this.aq=Qa(e.x,e.y,this.j.x,this.j.y)-e.C,this.Gi=Xa(e.x,e.y,this.j.x,this.j.y),this.ed=this.pf=this.j.C,this.Pi=e.C,this.mode=b)}};m.prototype.$B=function(){this.Ka=null};f.q=new m;l.prototype.Fv=function(a){a.R(this.Ka?this.Ka.uid:-1)};f.D=new l})();function pd(g){this.b=g}
(function(){function g(a){var b,d;b=0;for(d=a.ua.length;b<d;b++)if(a.ua[b]instanceof f.J)return a.ua[b];return null}function m(){}function l(){}var f=pd.prototype;f.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};var b=f.L.prototype;b.I=function(){this.Ri=null};b.aw=function(){if(null==this.Ri){var a=this.b.types,b,d;for(b in a)if(d=a[b].A[0],null!=d&&"TOUCHWRAP"==d.Iw){this.Ri=d;this.Ri.OH(this);break}}};var a=[],d=[];b.Ng=function(b,e,f){a.length=0;d.length=0;var h=this.Hb.A,l,m,z,x,u=h.length;
for(x=0;x<u;x++)l=h[x],l.ja(),m=l.F.Ga(e,f,!0),z=l.F.Ga(e,f,!1),l.ec(m,z)&&a.push(l);x=a.length;if(0===x)return a.length=0,d.length=0,!1;u=x;for(x=d.length=0;x<u;x++)if(l=a[x])e=g(l),null!=e&&e.cP()&&d.push(e);u=d.length;if(0===u)return a.length=0,d.length=0,!1;f=d[0];h=f.j;for(x=1;x<u;x++)if(e=d[x],l=e.j,l.F.index>h.F.index||l.F.index==h.F.index&&l.Qe()>h.Qe())f=e,h=l;a.length=0;d.length=0;f.HQ(b);return!0};b.Ph=function(a){var b=this.Hb.A,d,f=b.length,h;for(d=0;d<f;d++)if(h=b[d])h=g(h),null!=h&&
h.ln==a&&h.Vg==e&&h.dD()};f.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b;a.aw()};var b=f.J.prototype,e=3,h=["OFF","INACTIVE","ACTIVE","CLICK DETECTING","CLICKED"];b.I=function(){this.Ns=1==this.B[0];this.bM=this.B[1];this.PO=1==this.B[2];this.YO=1==this.B[3];this.ln=null;this.Vg=0;this.yC=null;this.MD=!0;this.$t=!1;this.ld={Np:"",click:"",Vx:"",zz:"",nx:0,MC:null};this.$D=!1};b.ra=function(){this.vL();if(1!=this.Vg){var a=this.wL();this.iL(a);this.jL(a)}};b.cP=function(){var a;
this.YO?a=this.b.uc(this.j.F.index).visible&&this.j.visible:a=!0;return 2==this.Vg&&a};b.pL=function(a){this.ld.nx=this.j.ng;this.j.ng=0;null!=a&&Z.prototype.q.KB.apply(this.j,[a])};b.oL=function(a){var b=this.ld.nx;null!=b&&(this.j.ng=b);""!=a&&Z.prototype.q.JB.apply(this.j,[a,1])};b.Jl=function(a,b){"number"==typeof a?this.pL(a):""!=a&&this.oL(a);this.ld.MC=b};b.vL=function(){this.MD&&(this.ld.nx=this.j.ng,null!=this.Ns&&(this.Ns?this.or():this.kw()),this.MD=!1)};b.wL=function(){var a=this.IH(),
b=this.JH();this.j.ja();return this.j.ec(a,b)};b.iL=function(a){this.Vg!=e||a||(this.CC(),this.or())};b.jL=function(a){a?this.$t||(this.Jl(this.ld.zz,3),this.$t=!0,this.b.trigger(pd.prototype.n.gJ,this.j)):this.$t&&(this.$t=!1,3==this.ld.MC&&this.Jl(this.ld.Np,0),this.b.trigger(pd.prototype.n.hJ,this.j))};b.Wn=function(a){this.yC=this.Vg;this.Vg=a};b.HQ=function(a){0==this.bM?(this.ln=a,this.Wn(e),this.b.trigger(pd.prototype.n.II,this.j)):this.dD()};b.or=function(){this.ln=this.Ns=null;this.Wn(2);
this.Jl(this.ld.Np,0);this.b.trigger(pd.prototype.n.uI,this.j)};b.kw=function(){this.ln=this.Ns=null;this.Wn(1);this.Jl(this.ld.Vx,2);this.b.trigger(pd.prototype.n.WI,this.j)};b.CC=function(){this.b.trigger(pd.prototype.n.HI,this.j)};b.dD=function(){this.Wn(4);this.Jl(this.ld.click,1);this.$D=!1;this.b.trigger(pd.prototype.n.Fn,this.j);this.PO&&!this.$D&&(this.Jl(this.ld.Np,0),this.Wn(2))};b.IH=function(){return this.type.Ri.fw(this.ln,this.j.F.index)};b.JH=function(){return this.type.Ri.gw(this.ln,
this.j.F.index)};b.P=function(){return{en:1!=this.Vg,fn:this.ld.Np,fc:this.ld.click,fi:this.ld.Vx,fr:this.ld.zz}};b.ca=function(a){a.en?this.or():this.kw();this.ld.Np=a.fn;this.ld.click=a.fc;this.ld.Vx=a.fi;this.ld.zz=a.fr};b.Va=function(a){a!=this.Vg&&(this.Vg==e&&this.CC(),2==a?this.or():this.kw())};f.n=new m;m.prototype.Fn=function(){return!0};m.prototype.HI=function(){return!0};m.prototype.II=function(){return!0};m.prototype.uI=function(){return!0};m.prototype.WI=function(){return!0};m.prototype.gJ=
function(){return!0};m.prototype.hJ=function(){return!0};f.q=new function(){};f.D=new l;l.prototype.Zc=function(a){a.Fa(h[this.Vg])};l.prototype.oe=function(a){a.Fa(h[this.yC])}})();function qd(g){this.b=g}
(function(){function g(){this.G.IP()}function m(){}function l(){}var f=qd.prototype;f.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};var b=f.L.prototype;b.I=function(){this.Ia=null;this.ql=-1};b.uw=function(){if(null!=this.Ia)return this.Ia;var a=this.b.types,b,f;for(b in a)if(f=a[b].A[0],f instanceof cd.prototype.J)return this.Ia=f;return null};f.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};var b=f.J.prototype,a=null;b.I=function(){this.Cc=null;this.enable=1==
this.B[0];this.Ol=this.B[1];this.mF=this.jh=!1;this.rl=null;this.vy=!1};b.Pb=function(){this.Cc&&(this.Cc.hk(),this.Cc=null)};b.ra=function(){var b=this.bE();b&&(a=this,this.b.trigger(qd.prototype.n.$A,this.j),a=null);this.mF=b};b.bE=function(){return this.Cc?this.Cc.fk():!1};b.IP=function(){a=this;this.b.trigger(qd.prototype.n.$A,this.j);a=this;this.b.trigger(qd.prototype.n.CI,this.j);a=null};b.jM=function(){this.vy=null;a=this;this.b.trigger(qd.prototype.n.tI,this.j);a=null;null!=this.vy&&(this.jh=
this.vy);return this.jh};b.jQ=function(){if(this.jh=0>=this.Ol||!this.Cc?!0:!this.Cc.fk())this.jh=this.jM();this.jh?(0<this.Ol&&(null==this.Cc&&(this.Cc=this.type.uw().zn(g),this.Cc.G=this),this.Cc.Af(this.Ol)),a=this,this.b.trigger(qd.prototype.n.DI,this.j)):(a=this,this.b.trigger(qd.prototype.n.EI,this.j));a=null};b.P=function(){return{en:this.enable,t:this.Ol,acc:this.jh,tim:null!=this.Cc?this.Cc.P():null,tluid:null!=this.type.Ia?this.type.Ia.uid:-1}};b.ca=function(a){this.enable=a.en;this.Ol=
a.t;this.jh=a.acc;this.rl=a.tim;this.type.ql=a.tluid};b.Kb=function(){-1===this.type.ql?this.type.Ia=null:this.type.Ia=this.b.Td(this.type.ql);null==this.rl?this.Cc=null:(this.Cc=this.type.Ia.ov(this.rl,g),this.Cc.G=this);this.kn=null};f.n=new m;m.prototype.DI=function(){return a===this&&this.jh};m.prototype.EI=function(){return a===this&&!this.jh};m.prototype.$A=function(){return a===this};m.prototype.CI=function(){return a===this};m.prototype.UH=function(){return this.mF||this.bE()};m.prototype.tI=
function(){return a===this};f.q=new l;l.prototype.JJ=function(){this.enable&&this.jQ()};l.prototype.QJ=function(a){this.Ol=a};l.prototype.AB=function(){this.enable&&this.Cc&&this.Cc.Yv()};l.prototype.cj=function(){this.enable&&this.Cc&&this.Cc.cj()};l.prototype.ik=function(a){this.enable=1==a;!this.enable&&this.Cc&&this.Cc.hk()};f.D=new function(){}})();function rd(g){this.b=g}
(function(){function g(){}function m(){}function l(){}var f=rd.prototype;f.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};f.L.prototype.I=function(){};f.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};var b=f.J.prototype;b.I=function(){this.Nd=1==this.B[0];var a=this.B[1],a=""!=a?a:"Off";this.Ib?this.md.pe(this,"Off",a):this.md=new rd.Va(this,"Off",a);this.dd=this.rk=this.kd=null;this.Lc=!1;this.Lp=null};b.ra=function(){};b.Zd=function(a){this.Lc=!1;this.b.trigger(a,
this.j);return this.Lc};b.Ix=function(){this.Lp=null;this.dd=!0;this.Zd(rd.prototype.n.tv)||this.Zd(rd.prototype.n.sv);this.dd=null;return this.Lp};b.P=function(){return{en:this.Nd,fsm:this.md.P()}};b.ca=function(a){this.Nd=a.en;this.md.ca(a.fsm)};f.n=new g;g.prototype.Hn=function(a){a=this.kd==a;this.Lc|=a;return a};g.prototype.qv=function(){return this.dd};g.prototype.In=function(a){a=this.kd==a;this.Lc|=a;return a};g.prototype.rv=function(){return this.dd};g.prototype.Av=function(a,b){var e=this.kd==
a&&this.rk==b;this.Lc|=e;return e};g.prototype.xv=function(){return this.dd};g.prototype.tv=function(a){a=this.md.Zc==a;this.Lc|=a;return a};g.prototype.lv=function(a){return this.md.Zc==a};g.prototype.sv=function(){return this.dd};f.q=new m;m.prototype.ik=function(a){this.Nd=1==a};m.prototype.Qh=function(){this.Nd&&this.md.Qh()};m.prototype.jv=function(a){this.Nd&&this.md.Qh(a)};f.D=new l;l.prototype.Zc=function(a){a.Fa(this.md.Zc)};l.prototype.oe=function(a){a.Fa(this.md.oe)}})();
(function(){rd.Va=function(g,l,f){this.pe(g,l,f)};var g=rd.Va.prototype;g.pe=function(g,l,f){this.G=g;this.oe=l;this.Zc=f};g.Qh=function(g){if(null==g&&(g=this.G.Ix(),null==g))return;this.oe=this.Zc;this.Zc=g;g=this.oe;var l=this.Zc;this.G.dd=!0;this.G.Zd(rd.prototype.n.xv);var f=this.sw(g,l);this.G.dd=null;f||(this.rw(g),this.qw(l))};g.sw=function(g,l){this.G.kd=g;this.G.rk=l;var f=this.G.Zd(rd.prototype.n.Av);this.G.kd=null;this.G.rk=null;return f};g.rw=function(g){this.G.kd=g;g=this.G.Zd(rd.prototype.n.In);
this.G.kd=null;g||(this.G.dd=!0,this.G.Zd(rd.prototype.n.rv),this.G.dd=null)};g.qw=function(g){this.G.kd=g;g=this.G.Zd(rd.prototype.n.Hn);this.G.kd=null;g||(this.G.dd=!0,this.G.Zd(rd.prototype.n.qv),this.G.dd=!1)};g.P=function(){return{ps:this.oe,cs:this.Zc}};g.ca=function(g){this.oe=g.ps;this.Zc=g.cs}})();function sd(g){this.b=g}
(function(){function g(a){null==a&&(a={});a.x=0;a.y=0;a.a=-1;return a}function m(a){if(null==a||"object"!=typeof a)return a;var b=a.constructor(),c;for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}function l(){}function f(){}function b(){}var a=sd.prototype;a.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};a.L.prototype.I=function(){};a.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};var d=a.J.prototype;d.I=function(){this.enabled=1===this.B[0];this.Ib||(this.ee=
{});this.ee.max=this.B[1];this.ee.acc=this.B[2];this.ee.dec=this.B[3];this.EQ=1===this.B[4];this.QO=1===this.B[5];this.Ib||(this.target={x:0,y:0,a:0});this.Lk=!1;this.sz=this.Sj=this.Hf=0;this.Ib||(this.vh={x:0,y:0});this.vh.x=0;this.vh.y=0;this.qh=g(this.qh);this.Cm=g(this.Cm);this.Ys=null;this.km=!1};d.ra=function(){this.sz=0;this.enabled&&this.Lk&&this.move(this.b.de(this.j))};d.move=function(a){if(0!=a){this.vh.x===this.j.x&&this.vh.y===this.j.y||this.uF();var b=!1;0!=this.ee.dec&&(b=this.Hf*
this.Hf/(2*this.ee.dec)>=this.Sj);b=b?-this.ee.dec:this.ee.acc;0!=b&&this.Xm(this.Hf+b*a);a=this.Hf*a;this.Sj-=a;var b=!1,c=this.target.a,d=Math.cos(c),c=Math.sin(c);0>=this.Sj||0>=this.Hf?(b=!0,this.j.x=this.target.x,this.j.y=this.target.y,0<this.Hf&&(this.sz=-this.Sj/this.Hf),this.dO(),this.Xm(0)):(this.j.x+=a*d,this.j.y+=a*c);this.j.S();var f=!1;if(this.EQ){var g=this.b.Tf(this.j);g&&(this.b.Um(this.j,g),this.b.Tt(this.j,-d,-c,Math.max(a,50)),f=!0)}this.vh.x=this.j.x;this.vh.y=this.j.y;f?(this.Lk=
!1,this.km=!0,this.b.trigger(sd.prototype.n.lJ,this.j),this.km=!1):b&&(this.Lk=!1,this.km=!0,this.b.trigger(sd.prototype.n.Yq,this.j),this.km=!1)}};d.Wf=function(){this.qh.x=this.j.x;this.qh.y=this.j.y};d.Xm=function(a){null!=a?this.Hf=a>this.ee.max?this.ee.max:a:0==this.ee.acc&&(this.Hf=this.ee.max)};d.uF=function(){var a=this.target.x-this.j.x,b=this.target.y-this.j.y;this.target.a=Math.atan2(b,a);this.Sj=Math.sqrt(a*a+b*b);this.vh.x=this.j.x;this.vh.y=this.j.y};d.Gz=function(a,b){this.target.x=
a;this.target.y=b;this.Xm(null);this.uF();this.qh.x=this.j.x;this.qh.y=this.j.y;this.Lk=!0;this.Cm.x=this.j.x;this.Cm.y=this.j.y;this.Cm.a=Oa(Qa(this.j.x,this.j.y,a,b));this.QO&&this.move(this.sz)};d.XO=function(){var a=this.b.hd,b=this.Ys!=a;this.Ys=a;return b};d.dO=function(){if(this.XO()){var a=this.j.x-this.qh.x,b=this.j.y-this.qh.y;if(0!=a||0!=b)this.qh.a=Oa(Math.atan2(b,a))}};d.P=function(){return{en:this.enabled,v:m(this.ee),t:m(this.target),is_m:this.Lk,c_spd:this.Hf,rd:this.Sj,pp:m(this.vh),
ma:m(this.qh),ms:m(this.Cm),lt:this.Ys}};d.ca=function(a){this.enabled=a.en;this.ee=a.v;this.target=a.t;this.Lk=a.is_m;this.Hf=a.c_spd;this.Sj=a.rd;this.vh=a.pp;this.qh=a.ma;this.Cm=a.ms;this.Ys=a.lt};a.n=new l;l.prototype.Yq=function(){return this.km};l.prototype.lJ=function(){return this.km};a.q=new f;f.prototype.bg=function(a){this.enabled=1===a};f.prototype.jr=function(a){this.ee.max=a;this.Xm(null)};f.prototype.Rh=function(a){this.ee.acc=a;this.Xm(null)};f.prototype.hr=function(a){this.ee.dec=
a};f.prototype.xK=function(a,b){this.Gz(a,b)};f.prototype.dj=function(a){this.Xm(a)};f.prototype.zK=function(a){a&&(a=a.cm(),null!=a&&this.Gz(a.x,a.y))};f.prototype.yK=function(a,b){var c=Pa(b),d=a*Math.cos(c),c=a*Math.sin(c);this.Gz(this.j.x+d,this.j.y+c)};f.prototype.fj=function(){this.Lk=!1};a.D=new b;b.prototype.Fl=function(a){a.K(this.Hf)}})();function td(g){this.b=g}
(function(){function g(){}function m(){}var l=td.prototype;l.L=function(b,a){this.behavior=b;this.Hb=a;this.b=b.b};l.L.prototype.I=function(){};l.J=function(b,a){this.type=b;this.behavior=b.behavior;this.j=a;this.b=b.b};var f=l.J.prototype;f.I=function(){this.enable=1==this.B[0];this.direction=this.B[1];this.speed=this.B[2];this.jb=this.B[3]};f.ra=function(){if(this.enable){var b=this.b.de(this.j);this.speed+=this.jb*b;0!=this.speed&&(b=this.speed*b,0==this.direction&&(b=-b),this.j.C+=Pa(b),this.j.S())}};
f.P=function(){return{en:this.enable,d:this.direction,s:this.speed,a:this.jb}};f.ca=function(b){this.enable=b.en;this.direction=b.d;this.speed=b.s;this.jb=b.a};l.n=new function(){};l.q=new g;g.prototype.ik=function(b){this.enable=1==b};g.prototype.Dl=function(b){this.speed=b};g.prototype.Rh=function(b){this.jb=b};l.D=new m;m.prototype.Fl=function(b){b.K(this.speed)}})();function ud(g){this.b=g}
(function(){function g(){}function m(){}function l(){}var f=ud.prototype;f.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};f.L.prototype.I=function(){};f.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};var b=f.J.prototype;b.I=function(){this.Nd=1==this.B[0];this.move={max:this.B[1],acc:this.B[2],dec:this.B[3]};this.target={a:0,cw:!0};this.qm=!1;this.jl=this.$h=0;this.dd=!1};b.ra=function(){if(this.Nd&&this.qm){var a=this.b.de(this.j);if(0!=a){var b=!1;0!=this.move.dec&&
(b=this.$h,b=b*b/(2*this.move.dec)>=this.jl);b=b?-this.move.dec:this.move.acc;0!=b&&this.dj(this.$h+b*a);a=this.$h*a;this.jl-=a;b=!1;0>=this.jl||0>=this.$h?(this.qm=!1,this.j.C=Pa(this.target.a),this.dj(0),b=!0):this.j.C=this.target.cw?this.j.C+Pa(a):this.j.C-Pa(a);this.j.S();b&&(this.dd=!0,this.b.trigger(ud.prototype.n.Yq,this.j),this.dd=!1)}}};b.Wf=function(){};b.dj=function(a){null!=a?this.$h=a>this.move.max?this.move.max:a:0==this.move.acc&&(this.$h=this.move.max)};b.Tv=function(a,b){this.qm=
!0;var e=this.j.C;this.target.cw=2==b?Ua(a,e):1==b;e=2==b?Ra(e,a):1==b?a-e:e-a;this.jl=Oa(e);this.target.a=Oa(a);this.dj(null)};b.P=function(){return{en:this.Nd,v:this.move,t:this.target,ir:this.qm,cs:this.$h,rd:this.jl}};b.ca=function(a){this.Nd=a.en;this.move=a.v;this.target=a.t;this.qm=a.ir;this.$h=a.cs;this.jl=a.rd};f.n=new g;g.prototype.Yq=function(){return this.dd};f.q=new m;m.prototype.ik=function(a){this.Nd=1==a};m.prototype.jr=function(a){this.move.max=a;this.dj(null)};m.prototype.Rh=function(a){this.move.acc=
a;this.dj(null)};m.prototype.hr=function(a){this.move.dec=a};m.prototype.Tv=function(a,b){this.Tv(Pa(a),b)};m.prototype.dj=function(a){this.dj(a)};m.prototype.fj=function(){this.qm=!1};f.D=new l;l.prototype.Fl=function(a){a.K(this.$h)}})();function vd(g){this.b=g}
(function(){function g(){}function m(){}function l(){}var f=vd.prototype;f.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};f.L.prototype.I=function(){};f.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};var b=f.J.prototype;b.I=function(){this.enabled=0!==this.B[0];var a=this.B[1];this.VC=0===a;this.SL=1===a;this.duration=this.B[2];this.qt=this.B[3];this.Ly=this.B[4];this.Gj=!1;this.tb=this.Fc=null;this.xh=0;this.dd=!1};b.ra=function(){this.VC?this.uA():this.SL&&(this.uA(!0),
this.SB())};b.Wf=function(){this.VC&&this.SB()};b.SB=function(){if(this.enabled&&this.Gj){var a=this.b.de(this.j);0!=a&&(this.Fc=this.j.x,this.tb=this.j.y,this.JK(a)&&(this.tb=this.Fc=null,this.Gj=!1,this.dd=!0,this.b.trigger(vd.prototype.n.kJ,this.j),this.dd=!1))}};b.JK=function(a){var b=this.xh<=a,e,f;if(b)f=e=0;else{f=this.qt*Math.min(this.b.Yc,1);1===this.Ly&&(f*=this.xh/this.duration);var c=Math.random()*Math.PI*2;e=Math.cos(c)*f;f*=Math.sin(c)}e=this.Fc+e;f=this.tb+f;if(e!==this.j.x||f!==this.j.y)this.j.x=
e,this.j.y=f,this.j.S();this.xh-=a;return b};b.uA=function(a){this.enabled&&this.Gj&&null!==this.Fc&&(this.Fc!==this.j.x||this.tb!==this.j.y)&&(this.j.x=this.Fc,this.j.y=this.tb,this.tb=this.Fc=null,a||this.j.S())};b.P=function(){return{e:this.enable,dur:this.duration,mag:this.qt,magMode:this.Ly,isShake:this.Gj,ox:this.Fc,oy:this.tb,rem:this.xh}};b.ca=function(a){this.enable=a.e;this.duration=a.dur;this.qt=a.mag;this.Ly=a.magMode;this.Gj=a.isShake;this.Fc=a.ox;this.tb=a.oy;this.xh=a.rem};f.n=new g;
g.prototype.kJ=function(){return this.dd};f.q=new m;m.prototype.ik=function(a){this.enabled=1===a};m.prototype.Af=function(){this.Gj=!0;this.xh=this.duration};m.prototype.fj=function(){this.Gj=!1;this.xh=0};m.prototype.Mv=function(a){this.Gj&&(this.xh+=a-this.duration);this.duration=a};m.prototype.Pv=function(a){this.qt=a};f.D=new l;l.prototype.Fc=function(a){a.K(null!==this.Fc?this.Fc:this.j.x)};l.prototype.tb=function(a){a.K(null!==this.tb?this.tb:this.j.y)};l.prototype.av=function(a){a.K(this.duration)}})();
function wd(g){this.b=g}
(function(){function g(){}function m(){}function l(){}var f=wd.prototype;f.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};var b=f.L.prototype;b.I=function(){this.Ri=null};b.aw=function(){if(null==this.Ri){var a=this.b.types,b,e;for(b in a)if(e=a[b].A[0],null!=e&&"TOUCHWRAP"==e.Iw){this.Ri=e;break}}};f.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b;a.aw()};b=f.J.prototype;b.I=function(){this.enabled=1===this.B[0];this.Nf=!1;this.Yg=this.Zh=-1;this.RC=0;this.nr=this.Zn=
this.Yn=this.dn=this.bn=-1};b.ra=function(){if(this.enabled){var a=this.type.Ri,b=a.touches,e=b.length,f=!1,c=this.j;c.ja();var g=this.Zh,l=this.Yg;if(a.Cn())for(var m,q,a=0;a<e;a++)if(m=b[a],q=c.F.Ga(m.x,m.y,!0),m=c.F.Ga(m.x,m.y,!1),c.ec(q,m)){this.Zh=q;this.Yg=m;f=!0;break}this.nr=this.Zn=this.Yn=-1;b=this.Nf;this.Nf=f;this.RC=b&&f?this.Yg-l:0;!b&&f&&(this.bn=this.Zh,this.dn=this.Yg,this.b.trigger(wd.prototype.n.Ng,c));g==this.Zh&&l==this.Yg||this.b.trigger(wd.prototype.n.vB,c);b&&!f&&this.b.trigger(wd.prototype.n.Ph,
c)}};b.qL=function(){-1==this.nr&&(this.nr=Xa(this.bn,this.dn,this.Zh,this.Yg));return this.nr};b.jC=function(){if(-1==this.Yn&&-1==this.Zn)if(this.bn==this.Zh&&this.dn==this.Yg)this.Zn=this.Yn=0;else{var a=Qa(this.bn,this.dn,this.Zh,this.Yg);this.Yn=Math.cos(a);this.Zn=Math.sin(a)}};b.mL=function(){return this.Nf?this.Zh:-1};b.nL=function(){return this.Nf?this.Yg:-1};b.Va=function(){return this.Nf?this.bn:-1};b.Fd=function(){return this.Nf?this.dn:-1};b.rL=function(){var a;this.Nf?a=this.qL():a=
-1;return a};b.hL=function(){var a;this.Nf?(a=Qa(this.bn,this.dn,this.Zh,this.Yg),a=Oa(a)):a=-1;return a};b.qf=function(){var a;this.Nf?(this.jC(),a=this.Yn):a=0;return a};b.Ji=function(){var a;this.Nf?(this.jC(),a=this.Zn):a=0;return a};f.n=new g;g.prototype.Ng=function(){return!0};g.prototype.Ph=function(){return!0};g.prototype.Cn=function(){return this.Nf};g.prototype.vB=function(){return!0};g.prototype.$G=function(a,b){return this.Nf?hc(this.rL(),a,b):!1};f.q=new m;m.prototype.bg=function(a){this.enabled=
0!==a};f.D=new l;l.prototype.Gl=function(a){a.K(this.mL())};l.prototype.Hl=function(a){a.K(this.nL())};l.prototype.qA=function(a){a.K(this.hL())};l.prototype.pH=function(a){a.K(this.RC)}})();function xd(g){this.b=g}
(function(){function g(a){for(var b in a)delete a[b]}function m(){this.stack=[];this.Rj=-1}function l(){this.H=[]}function f(){this.name="";this.Fg=0;this.Sa=[];this.hF={};this.Sy={};this.ut={}}function b(){}function a(){}function d(){}var e=xd.prototype;e.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};e.L.prototype.I=function(){};e.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};var h=e.J.prototype,c=l.prototype;c.fg=function(){return 0<this.H.length?this.H.pop():
null};c.eh=function(a){this.H.push(a)};c.am=function(a){var b,c;b=0;for(c=a.length;b<c;b++)this.eh(a[b]);a.length=0};var k=new l,c=m.prototype;c.reset=function(){k.am(this.stack);this.Rj=-1};c.push=function(){this.Rj++;if(this.Rj===this.stack.length){var a=k.fg()||new f;this.stack.push(a)}return this.stack[this.Rj]};c.Bj=function(){return 0>this.Rj?null:this.stack[this.Rj]};c.Va=function(){if(!this.stack.length)return null;var a=this.Rj+1;a>=this.stack.length&&(a=this.stack.length-1);return this.stack[a]};
c.pop=function(){this.Rj--};h.I=function(){this.dE="undefined"!==typeof log&&1==this.B[0];this.Ib||(this.Pe=new m);this.Pe.push().name="__main__";this.NP=new l;this.gl=0};h.Pb=function(){this.Pe.reset()};h.ra=function(){};h.mD=function(){this.gl=0};h.lD=function(){var a=this.Pe.Bj();g(a.ut);g(a.Sy)};h.nM=function(a,b){var c=this.Pe.Bj();if(c){c.Sy[a]=this.gl;if(this.gl>=c.Sa.length){c.Sa.length=this.gl+1;var d=c.ut[a];null==d&&(d=b);c.Sa[this.gl]=d}this.gl+=1}};h.gF=function(a){var b=this.Pe.Bj();
if(!b)return null;if("string"==typeof a){if(a=b.Sy[a],null==a)return null}else a=sa(a);return 0<=a&&a<b.Sa.length?(b=b.Sa[a],null==b&&(b=0),b):null};e.n=new b;b.prototype.bj=function(a){var b=this.Pe.Bj();return b?mb(a,b.name):!1};b.prototype.$u=function(a,b,c){a=this.gF(a);return null==a?!1:hc(a,b,c)};e.q=new a;a.prototype.vA=function(){};a.prototype.QB=function(a){var b=this.Pe.Bj();b&&(b.Fg=a)};a.prototype.Qv=function(a,b,c){var d=this.Pe.Bj().hF;d.hasOwnProperty(c)||(d[c]=this.NP.fg()||{});d[c][a]=
b};a.prototype.nH=function(a,b){this.nM(a,b)};a.prototype.NG=function(a,b){var c=this.Pe.Bj().hF[b],d=this.Pe.push();d.name=a.toLowerCase();d.Fg=0;d.Sa.length=0;if(null!=c){for(var e in c)d.ut[e]=c[e];g(c)}if(this.dE){for(e in d.ut);for(c=1;c<funcStackPtr;c++);}this.mD();this.b.trigger(xd.prototype.n.bj,this.j,d.name);this.lD();this.Pe.pop()};e.D=new d;d.prototype.zB=function(a){var b=this.Pe.Bj();b?a.R(b.Sa.length):a.R(0)};d.prototype.Cv=function(a,b){a.ie(this.gF(b))};d.prototype.Zu=function(a,
b){var c=this.Pe.push();c.name=b.toLowerCase();c.Fg=0;c.Sa.length=0;var d,e;d=2;for(e=arguments.length;d<e;d++)c.Sa.push(arguments[d]);if(this.dE)for(d=1;d<funcStackPtr;d++);this.mD();this.b.trigger(xd.prototype.n.bj,this.j,c.name);this.lD();this.Pe.pop();a.ie(c.Fg)}})();function yd(g){this.b=g}
(function(){function g(a){if(a[1]<a[0]){var b=a[0];a[0]=a[1];a[1]=b}}function m(){}function l(){}function f(){}var b=yd.prototype;b.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};b.L.prototype.I=function(){};b.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};var a=b.J.prototype;a.I=function(){this.mode=this.B[0];this.Uh=this.B[1];this.Ks=1==this.B[2];this.kb=[this.B[3],this.B[4]];this.tn=1==this.B[5];this.ab=[this.B[6],this.B[7]];g(this.kb);g(this.ab);this.Sx={uid:-1,
p0:null,p1:null};this.Nu={uid:-1,p0:null,p1:null}};a.ra=function(){var a,b;0==this.mode?(a=this.GO(),b=this.aR()):1==this.mode?(a=this.IO(),b=this.cR()):2==this.mode&&(a=this.HO(),b=this.bR());if(a||b)this.b.trigger(yd.prototype.n.SI,this.j),this.j.S()};a.Rx=function(){var a=this.Sx,b=this.b.Td(a.uid);null!=b&&(this.kb[0]=b.tg(a.p0,!0),this.kb[1]=b.tg(a.p1,!0),g(this.kb))};a.fA=function(){var a=this.Nu,b=this.b.Td(a.uid);null!=b&&(this.ab[0]=b.tg(a.p0,!1),this.ab[1]=b.tg(a.p1,!1),g(this.ab))};a.GO=
function(){if(!this.Ks)return!1;var a=this.j.x;if(0==this.Uh)this.cd(1)?(this.j.x=this.kb[0],this.b.trigger(yd.prototype.n.Kn,this.j)):this.cd(2)&&(this.j.x=this.kb[1],this.b.trigger(yd.prototype.n.Ln,this.j));else{this.j.ja();var b=this.j.za;this.cd(1)?(this.j.x=this.kb[0]+(this.j.x-b.left),this.b.trigger(yd.prototype.n.Kn,this.j)):this.cd(2)&&(this.j.x=this.kb[1]-(b.right-this.j.x),this.b.trigger(yd.prototype.n.Ln,this.j))}return a!=this.j.x};a.aR=function(){if(!this.tn)return!1;var a=this.j.y;
if(0==this.Uh)this.cd(4)?(this.j.y=this.ab[0],this.b.trigger(yd.prototype.n.Mn,this.j)):this.cd(8)&&(this.j.y=this.ab[1],this.b.trigger(yd.prototype.n.Jn,this.j));else{this.j.ja();var b=this.j.za;this.cd(4)?(this.j.y=this.ab[0]+(this.j.y-b.top),this.b.trigger(yd.prototype.n.Mn,this.j)):this.cd(8)&&(this.j.y=this.ab[1]-(b.bottom-this.j.y),this.b.trigger(yd.prototype.n.Jn,this.j))}return a!=this.j.y};a.IO=function(){if(!this.Ks)return!1;var a=this.j.x;if(0==this.Uh)this.cd(1)?(this.j.x=this.kb[1]+1,
this.b.trigger(yd.prototype.n.Kn,this.j)):this.cd(2)&&(this.j.x=this.kb[0]-1,this.b.trigger(yd.prototype.n.Ln,this.j));else{this.j.ja();var b=this.j.za;this.cd(1)?(this.j.x=this.kb[1]+1+(b.right-this.j.x),this.b.trigger(yd.prototype.n.Kn,this.j)):this.cd(2)&&(this.j.x=this.kb[0]-1-(this.j.x-b.left),this.b.trigger(yd.prototype.n.Ln,this.j))}return a!=this.j.x};a.cR=function(){if(!this.tn)return!1;var a=this.j.y;if(0==this.Uh)this.cd(4)?(this.j.y=this.ab[1]+1,this.b.trigger(yd.prototype.n.Mn,this.j)):
this.cd(8)&&(this.j.y=this.ab[0]-1,this.b.trigger(yd.prototype.n.Jn,this.j));else{this.j.ja();var b=this.j.za;this.cd(4)?(this.j.y=this.ab[1]+1+(b.bottom-this.j.y),this.b.trigger(yd.prototype.n.Mn,this.j)):this.cd(8)&&(this.j.y=this.ab[0]-1-(this.j.y-b.top),this.b.trigger(yd.prototype.n.Jn,this.j))}return a!=this.j.y};a.HO=function(){if(!this.Ks)return!1;var a=this.cd(1),b=this.cd(2),f=a||b;if(f){var c=this.kb[1]-this.kb[0],g=(this.j.x-this.kb[0])%c;0>g&&(g+=c);this.j.x=g+this.kb[0]}a?this.b.trigger(yd.prototype.n.Kn,
this.j):b&&this.b.trigger(yd.prototype.n.Ln,this.j);return f};a.bR=function(){if(!this.tn)return!1;var a=this.cd(4),b=this.cd(8),f=a||b;if(f){var c=this.ab[1]-this.ab[0],g=(this.j.y-this.ab[0])%c;0>g&&(g+=c);this.j.y=g+this.ab[0]}a?this.b.trigger(yd.prototype.n.Mn,this.j):b&&this.b.trigger(yd.prototype.n.Jn,this.j);return f};a.cd=function(a){this.Rx();this.fA();var b=!1;if(0==this.Uh)1===(a&1)&&(b|=this.j.x<this.kb[0]),1===(a>>1&1)&&(b|=this.j.x>this.kb[1]),1===(a>>2&1)&&(b|=this.j.y<this.ab[0]),
1===(a>>3&1)&&(b|=this.j.y>this.ab[1]);else{this.j.ja();var f=this.j.za;if(0===this.mode)1===(a&1)&&(b|=f.left<this.kb[0]),1===(a>>1&1)&&(b|=f.right>this.kb[1]),1===(a>>2&1)&&(b|=f.top<this.ab[0]),1===(a>>3&1)&&(b|=f.bottom>this.ab[1]);else if(1===this.mode||2===this.mode)1===(a&1)&&(b|=f.right<this.kb[0]),1===(a>>1&1)&&(b|=f.left>this.kb[1]),1===(a>>2&1)&&(b|=f.bottom<this.ab[0]),1===(a>>3&1)&&(b|=f.top>this.ab[1])}return b};a.qf=function(){var a,b;this.Rx();0==this.Uh?(a=this.j.x-this.kb[0],b=this.kb[1]-
this.kb[0]):(this.j.ja(),a=this.j.za.left-this.kb[0],b=this.kb[1]-this.kb[0]-(this.j.za.right-this.j.za.left));return Ka(a/b,0,1)};a.TP=function(){var a,b;this.fA();0==this.Uh?(a=this.j.y-this.ab[0],b=this.ab[1]-this.ab[0]):(this.j.ja(),a=this.j.za.top-this.ab[0],b=this.ab[1]-this.ab[0]-(this.j.za.bottom-this.j.za.top));return Ka(a/b,0,1)};a.Va=function(a){a=Ka(a,0,1);this.Rx();var b,f;0==this.Uh?(f=this.kb[0],b=this.kb[1]):(this.j.ja(),f=this.kb[0]+(this.j.x-this.j.za.left),b=this.kb[1]-(this.j.za.right-
this.j.x));return f+(b-f)*a};a.Fd=function(a){a=Ka(a,0,1);this.fA();var b,f;0==this.Uh?(f=this.ab[0],b=this.ab[1]):(this.j.ja(),f=this.ab[0]+(this.j.y-this.j.za.top),b=this.ab[1]-(this.j.za.bottom-this.j.y));return f+(b-f)*a};a.P=function(){return{he:this.Ks,hb:this.kb,ve:this.tn,vb:this.ab,hp:this.Sx,vp:this.Nu}};a.ca=function(a){this.Nd=a.he;this.kb=a.hb;this.tn=a.ve;this.ab=a.vb;this.Sx=a.hp;this.Nu=a.vp};b.n=new m;m.prototype.SI=function(){return!0};m.prototype.Kn=function(){return!0};m.prototype.Ln=
function(){return!0};m.prototype.Mn=function(){return!0};m.prototype.Jn=function(){return!0};b.q=new l;l.prototype.uH=function(a){this.tn=1==a};l.prototype.CK=function(a,b){this.ab[0]=a;this.ab[1]=b;g(this.ab);this.Nu.uid=-1};b.D=new f;f.prototype.bL=function(a){a.K(this.TP())}})();function zd(g){this.b=g}
(function(){function g(){}function m(){}function l(){}var f=zd.prototype;f.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};f.L.prototype.I=function(){Z?(this.Lo=Z.prototype.D.NA,this.Mo=Z.prototype.D.OA):this.Mo=this.Lo=null};f.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};var b=f.J.prototype;b.I=function(){this.Ka=null;this.Hi=-1;this.Ko=null;this.ed=this.Pi=this.pf=0;this.mode=null;var a=this;this.Ib||(this.Kp=function(b){a.Rp(b)});this.b.ur(this.Kp)};b.P=function(){return{uid:this.Ka?
this.Ka.uid:-1,imgpt:this.Ko,msa:this.pf,tsa:this.Pi,lka:this.ed,m:this.mode}};b.ca=function(a){this.Hi=a.uid;this.Ko=a.imgpt;this.pf=a.msa;this.Pi=a.tsa;this.ed=a.lka;this.mode=a.m};b.Kb=function(){-1===this.Hi?this.Ka=null:this.Ka=this.b.Td(this.Hi);this.Hi=-1};b.Rp=function(a){this.Ka==a&&(this.Ka=null)};b.Pb=function(){this.Ka=null;this.b.tF(this.Kp)};b.ra=function(){};var a={value:0,ie:function(a){this.value=a},R:function(a){this.value=a},K:function(a){this.value=a},Fa:function(a){this.value=
a}};b.Lo=function(b,e){this.type.Lo.call(b,a,e);return a.value};b.Mo=function(b,e){this.type.Mo.call(b,a,e);return a.value};b.Wf=function(){if(this.Ka&&this.type.Lo&&this.type.Mo){var a=this.Lo(this.Ka,this.Ko),b=this.Mo(this.Ka,this.Ko);if(this.j.x!==a||this.j.y!==b)this.j.x=a,this.j.y=b,this.j.S();if(1==this.mode){this.ed!==this.j.C&&(this.pf=Na(this.pf+(this.j.C-this.ed)));var f=Na(this.pf+(this.Ka.C-this.Pi));this.ed=f}1==this.mode&&this.j.C!==f&&(this.j.C=f,this.j.S())}};f.n=new g;g.prototype.PA=
function(){return!!this.Ka};f.q=new m;m.prototype.Dv=function(a,b,f){a&&(a=a.cm(this.j))&&(this.Ka=a,this.Ko=b,this.ed=this.pf=this.j.C,this.Pi=a.C,this.mode=f)};m.prototype.$B=function(){this.Ka=null};f.D=new l;l.prototype.Fv=function(a){a.R(this.Ka?this.Ka.uid:-1)}})();function Ad(g){this.b=g}
(function(){function g(){this.G.MQ()}function m(){}function l(){}var f=Ad.prototype;f.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};var b=f.L.prototype;b.I=function(){this.Ia=null;this.ql=-1};b.uw=function(){if(null!=this.Ia)return this.Ia;var a=this.b.types,b,e;for(b in a)if(e=a[b].A[0],e instanceof cd.prototype.J)return this.Ia=e;return null};f.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};b=f.J.prototype;b.I=function(){this.UO=1===this.B[0];this.ae=null;this.Hh=
this.Gu=0;this.content="";this.Dq=null;this.Xt=0;this.rl=null;this.le=this.zO();this.Uv=this.yO(this.le)};b.zO=function(){return dd&&this.j instanceof dd.prototype.J?"Text":Sc&&this.j instanceof Sc.prototype.J?"Spritefont2":mc.YB&&this.j instanceof mc.YB.prototype.J?"TextBox":ed&&this.j instanceof ed.prototype.J?"rex_TagText":mc.wF&&this.j instanceof mc.wF.prototype.J?"rex_bbcodeText":""};b.yO=function(a){var b;"Text"===a?b=dd.prototype.q.qe:"Spritefont2"===a?b=Sc.prototype.q.qe:"TextBox"===a?b=mc.YB.prototype.q.qe:
"rex_TagText"===a?b=ed.prototype.q.qe:"rex_bbcodeText"===this.le?b=mc.wF.prototype.q.qe:b=null;return b};b.Pb=function(){this.TQ()};b.TQ=function(){null!=this.ae&&this.ae.hk()};b.ra=function(){};b.ED=function(a){var b;"Text"===this.le||"Spritefont2"===this.le||"TextBox"===this.le?b=a.length:"rex_TagText"===this.le||"rex_bbcodeText"===this.le?b=this.j.hh(a).length:b=0;return b};b.qe=function(a,b,e){if(null!=this.Uv)if(null==b&&(b=0),null==e&&(e=this.ED(a)),"Text"==this.le||"Spritefont2"==this.le||
"TextBox"==this.le)a=a.slice(b,e),this.Uv.call(this.j,a);else if("rex_TagText"===this.le||"rex_bbcodeText"===this.le)a=this.j.Gx(b,e,a),this.Uv.call(this.j,a)};b.uL=function(){var a=this.ae;null==a&&(a=this.type.uw().zn(g),a.G=this);return a};b.IQ=function(a,b){var e;this.UO&&(a=this.kP(a));this.Xt=this.ED(a);0!=b?(null==e&&(e=1),this.ae=this.uL(),this.Dq=a,this.Gu=b,this.Hh=e,this.ae.Af(0)):(this.Hh=this.Xt,this.qe(a,0,this.Hh),this.b.trigger(Ad.prototype.n.xB,this.j))};b.MQ=function(){this.qe(this.Dq,
0,this.Hh);this.b.trigger(Ad.prototype.n.oJ,this.j);this.Hh+=1;this.Hh<=this.Xt?this.ae.EB(this.Gu):(this.Hh=this.Xt,this.Dq=null,this.b.trigger(Ad.prototype.n.xB,this.j))};b.Va=function(){return this.ae?this.ae.fk():!1};b.jw=function(){var a=this.j,b=a.Oc;if(!b){a.Eb=document.createElement("canvas");var b=Math.ceil(a.F.Jc()*a.width),e=Math.ceil(a.F.hc()*a.height);a.Eb.width=b;a.Eb.height=e;a.yg=b;a.xg=e;a.Oc=a.Eb.getContext("2d");b=a.Oc}return b};b.Xw=function(a){this.qe(a);a=this.j;var b=this.b.Zw?
this.jw():this.b.Nb;a.gc(b)};b.kP=function(a){this.Xw(a);var b;if("Text"===this.le)b=this.j.H.join("\n");else if("Spritefont2"===this.le){a=this.j.H.length;b=[];for(var e=0;e<a;e++)b.push(this.j.H[e].text);b=b.join("\n")}else if("rex_TagText"===this.le||"rex_bbcodeText"===this.le){var f=this.j.Nw();a=f.Ds().length;var c=!1;b="";for(e=0;e<a;e++){c&&(b+="\n");var c=f.bO(e),g=f.aO(e),c=f.Fx(c,g+1);b+=c;c=-1===c.indexOf("\n")}}return b||""};b.P=function(){return{c:this.content,tc:this.Dq,spd:this.Gu,
i:this.Hh,tim:null!=this.ae?this.ae.P():null,tluid:null!=this.type.Ia?this.type.Ia.uid:-1}};b.ca=function(a){this.content=a.c;this.Dq=a.tc;this.Gu=a.spd;this.Hh=a.i;this.rl=a.tim;this.type.ql=a.tluid};b.Kb=function(){-1===this.type.ql?this.type.Ia=null:this.type.Ia=this.b.Td(this.type.ql);null==this.rl?this.ae=null:(this.ae=this.type.Ia.ov(this.rl,g),this.ae.G=this);this.kn=null};f.n=new m;m.prototype.oJ=function(){return!0};m.prototype.xB=function(){return!0};f.q=new l;l.prototype.YK=function(a,
b){"number"===typeof a&&(a=Math.round(1E10*a)/1E10);this.content=a.toString();this.IQ(this.content,b)};l.prototype.AB=function(){null!=this.ae&&this.ae.Yv()};l.prototype.cj=function(){null!=this.ae&&this.ae.cj()};f.D=new function(){}})();function Bd(g){this.b=g}
(function(){function g(){}function m(){}var l=Bd.prototype;l.L=function(b,a){this.behavior=b;this.Hb=a;this.b=b.b};l.L.prototype.I=function(){};l.J=function(b,a){this.type=b;this.behavior=b.behavior;this.j=a;this.b=b.b};var f=l.J.prototype;f.I=function(){this.speed=K(this.B[0]);this.jb=K(this.B[1])};f.P=function(){return{speed:this.speed,acc:this.jb}};f.ca=function(b){this.speed=b.speed;this.jb=b.acc};f.ra=function(){var b=this.b.de(this.j);0!==b&&(0!==this.jb&&(this.speed+=this.jb*b),0!==this.speed&&
(this.j.C=Na(this.j.C+this.speed*b),this.j.S()))};l.n=new function(){};g.prototype.Dl=function(b){this.speed=K(b)};g.prototype.Rh=function(b){this.jb=K(b)};l.q=new g;m.prototype.Fl=function(b){b.K(La(this.speed))};l.D=new m})();function Cd(g){this.b=g}
(function(){function g(){}function m(){}function l(){}var f=Cd.prototype;f.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};f.L.prototype.I=function(){};f.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b;this.Z=0};var b=f.J.prototype,a=2*Math.PI,d=Math.PI/2,e=3*Math.PI/2;b.I=function(){this.W=1===this.B[0];this.Bi=this.B[1];this.jA=this.B[2];this.uh=this.B[3];this.uh+=Math.random()*this.B[4];0===this.uh?this.Z=0:(this.Z=this.B[5]/this.uh*a,this.Z+=Math.random()*this.B[6]/
this.uh*a);this.Nc=this.B[7];this.Nc+=Math.random()*this.B[8];this.wh=this.Jk=this.lb=0;5===this.Bi&&(this.Nc=K(this.Nc));this.init()};b.P=function(){return{i:this.Z,a:this.W,mv:this.Bi,w:this.jA,p:this.uh,mag:this.Nc,iv:this.lb,iv2:this.Jk,r:this.wh,lkv:this.ud,lkv2:this.ip}};b.ca=function(a){this.Z=a.i;this.W=a.a;this.Bi=a.mv;this.jA=a.w;this.uh=a.p;this.Nc=a.mag;this.lb=a.iv;this.Jk=a.iv2||0;this.wh=a.r;this.ud=a.lkv;this.ip=a.lkv2||0};b.init=function(){switch(this.Bi){case 0:this.lb=this.j.x;
break;case 1:this.lb=this.j.y;break;case 2:this.lb=this.j.width;this.wh=this.j.height/this.j.width;break;case 3:this.lb=this.j.width;break;case 4:this.lb=this.j.height;break;case 5:this.lb=this.j.C;break;case 6:this.lb=this.j.opacity;break;case 7:this.lb=0;break;case 8:this.lb=this.j.x,this.Jk=this.j.y}this.ud=this.lb;this.ip=this.Jk};b.Jh=function(b){b=b%a;switch(this.jA){case 0:return Math.sin(b);case 1:return b<=d?b/d:b<=e?1-2*(b-d)/Math.PI:(b-e)/d-1;case 2:return 2*b/a-1;case 3:return-2*b/a+1;
case 4:return b<Math.PI?-1:1}return 0};b.ra=function(){var b=this.b.de(this.j);this.W&&0!==b&&(0===this.uh?this.Z=0:(this.Z+=b/this.uh*a,this.Z=this.Z%a),this.sG())};b.sG=function(){switch(this.Bi){case 0:this.j.x!==this.ud&&(this.lb+=this.j.x-this.ud);this.j.x=this.lb+this.Jh(this.Z)*this.Nc;this.ud=this.j.x;break;case 1:this.j.y!==this.ud&&(this.lb+=this.j.y-this.ud);this.j.y=this.lb+this.Jh(this.Z)*this.Nc;this.ud=this.j.y;break;case 2:this.j.width=this.lb+this.Jh(this.Z)*this.Nc;this.j.height=
this.j.width*this.wh;break;case 3:this.j.width=this.lb+this.Jh(this.Z)*this.Nc;break;case 4:this.j.height=this.lb+this.Jh(this.Z)*this.Nc;break;case 5:this.j.C!==this.ud&&(this.lb=Na(this.lb+(this.j.C-this.ud)));this.j.C=Na(this.lb+this.Jh(this.Z)*this.Nc);this.ud=this.j.C;break;case 6:this.j.opacity=this.lb+this.Jh(this.Z)*this.Nc/100;0>this.j.opacity?this.j.opacity=0:1<this.j.opacity&&(this.j.opacity=1);break;case 8:this.j.x!==this.ud&&(this.lb+=this.j.x-this.ud),this.j.y!==this.ip&&(this.Jk+=this.j.y-
this.ip),this.j.x=this.lb+Math.cos(this.j.C)*this.Jh(this.Z)*this.Nc,this.j.y=this.Jk+Math.sin(this.j.C)*this.Jh(this.Z)*this.Nc,this.ud=this.j.x,this.ip=this.j.y}this.j.S()};b.WE=function(a,b){switch(this.Bi){case 2:this.lb*=b.width/a.width;this.wh=b.height/b.width;break;case 3:this.lb*=b.width/a.width;break;case 4:this.lb*=b.height/a.height}};g.prototype.fk=function(){return this.W};f.n=new g;m.prototype.HB=function(a){this.W=1===a};m.prototype.oK=function(a){this.uh=a};m.prototype.Pv=function(a){this.Nc=
a;5===this.Bi&&(this.Nc=K(this.Nc))};m.prototype.lK=function(a){5===this.Bi&&5!==a&&(this.Nc=La(this.Nc));this.Bi=a;this.init()};m.prototype.pK=function(b){this.Z=b*a%a;this.sG()};f.q=new m;l.prototype.aL=function(a){a.K(this.Jh(this.Z)*this.Nc)};f.D=new l})();function Id(g){this.b=g}
(function(){function g(){}function m(){}function l(){}var f=Id.prototype;f.L=function(a,b){this.behavior=a;this.Hb=b;this.b=a.b};f.L.prototype.I=function(){};f.J=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};var b=f.J.prototype;b.I=function(){this.$a={}};b.Pb=function(){$a(this.$a)};b.P=function(){var a={},b,e;for(b in this.$a)this.$a.hasOwnProperty(b)&&(e=this.$a[b],a[b]={c:e.current.wa,t:e.total.wa,d:e.duration,r:e.rz});return a};b.ca=function(a){this.$a={};for(var b in a)a.hasOwnProperty(b)&&
(this.$a[b]={current:new eb,total:new eb,duration:a[b].d,rz:a[b].r},this.$a[b].current.wa=a[b].c,this.$a[b].total.wa=a[b].t)};b.ra=function(){var a=this.b.de(this.j),b,e;for(b in this.$a)this.$a.hasOwnProperty(b)&&(e=this.$a[b],e.current.add(a),e.total.add(a))};b.Wf=function(){var a,b;for(a in this.$a)this.$a.hasOwnProperty(a)&&(b=this.$a[a],b.current.wa>=b.duration&&(b.rz?b.current.wa-=b.duration:delete this.$a[a]))};g.prototype.pJ=function(a){a=a.toLowerCase();return(a=this.$a[a])?a.current.wa>=
a.duration:!1};f.n=new g;m.prototype.Xv=function(a,b,e){this.$a[e.toLowerCase()]={current:new eb,total:new eb,duration:a,rz:1===b}};m.prototype.VB=function(a){a=a.toLowerCase();this.$a.hasOwnProperty(a)&&delete this.$a[a]};f.q=new m;l.prototype.av=function(a,b){var e=this.$a[b.toLowerCase()];a.K(e?e.duration:0)};f.D=new l})();function Jd(g){this.b=g}
(function(){var g=Jd.prototype;g.L=function(g,l){this.behavior=g;this.Hb=l;this.b=g.b};g.L.prototype.I=function(){};g.J=function(g,l){this.type=g;this.behavior=g.behavior;this.j=l;this.b=g.b};g=g.J.prototype;g.I=function(){};g.ra=function(){this.j.ja();var g=this.j.za,l=this.j.F.zc;(0>g.right||0>g.bottom||g.left>l.width||g.top>l.height)&&this.b.ne(this.j)}})();function Kd(g){this.b=g}
(function(){function g(b,a){return(b/=a)<1/2.75?7.5625*b*b+0:b<2/2.75?1*(7.5625*(b-=1.5/2.75)*b+.75)+0:b<2.5/2.75?1*(7.5625*(b-=2.25/2.75)*b+.9375)+0:1*(7.5625*(b-=2.625/2.75)*b+.984375)+0}var m=Kd.prototype;m.L=function(b,a){this.behavior=b;this.Hb=a;this.b=b.b};m.L.prototype.I=function(){};m.J=function(b,a){this.type=b;this.behavior=b.behavior;this.j=a;this.b=b.b;this.Z=0};var l=m.J.prototype;l.Va=function(b){1<b&&(b=1);kc[this.group]=-1;kc[this.group]=b;kc[this.group]>=b&&(kc[this.group]=b)};l.FD=
function(){""!=this.group&&("undefined"===typeof lc&&(lc={},kc={}),"undefined"===typeof lc[this.group]&&(lc[this.group]=[],kc[this.group]=-1),-1==lc[this.group].indexOf(this)&&lc[this.group].push(this))};l.Uj=function(){this.yf=this.j.width;this.xf=this.j.height;this.mn=this.j.C;this.lG=this.j.opacity;this.Zj=this.j.x;this.$j=this.j.y;this.Fu=this.value};l.I=function(){this.W=1===this.B[0];this.fa=this.B[1];this.uo=this.B[2];this.U=this.B[3];this.target=this.B[4];this.duration=this.B[5];this.wl=this.B[6];
this.Da=this.B[7];this.value=this.B[8];this.Pd=this.B[9];this.mx=1===this.B[10];this.group=this.B[11];this.ke=null;this.Ae=0;5==this.Da&&(this.Ae=1);this.FD();this.Mk=!1;this.Na=this.j.x;this.Kc=this.j.y;this.Qa=parseFloat(this.target.split(",")[0]);this.Bc=parseFloat(this.target.split(",")[1]);this.Uj();this.nn=this.Kd=this.Bb=this.Dc=this.Ta=0;this.wh=this.j.height/this.j.width;this.Zt=this.reverse=!1;this.sg=this.rg=!0;this.loop=!1;this.Sb=this.xb=0;this.yy=this.Da;this.xe=this.ud=this.Ta;this.mf=
this.Dc;this.mx&&this.init();""==this.U&&(this.U="current");this.Pp=this.Jm=this.Qp=this.Km=this.Zp=this.Om=this.Yp=this.Mm=!1;this.W&&this.init()};l.init=function(){this.Mm=!1;""===this.U&&(this.U="current");""===this.target&&(this.target="current");var b="current"===this.U,a="current"===this.target,d="OBJ"===this.target;"OBJ"===this.target&&null!=this.ke&&(0==this.fa?this.target=1==this.Pd?this.ke.x-this.j.x+","+(this.ke.y-this.j.y):this.ke.x+","+this.ke.y:1==this.fa||2==this.fa||3==this.fa||7==
this.fa?this.target=1==this.Pd?(2==this.fa?1:this.ke.width)+","+(3==this.fa?1:this.ke.height):(2==this.fa?1:this.ke.width/this.yf)+","+(3==this.fa?1:this.ke.height/this.xf):4==this.fa?this.target=1==this.Pd?La(this.ke.C-this.j.C)+"":La(this.ke.C)+"":5==this.fa&&(this.target=1==this.Pd?100*(this.ke.opacity-this.j.opacity)+"":100*this.ke.opacity+""));if(0==this.fa)a&&(this.target=this.j.x+","+this.j.y),b?this.U=1==this.Pd?this.j.x+","+this.j.y:this.Zj+","+this.$j:this.reverse||1==this.Da||(this.j.x=
parseFloat(this.U.split(",")[0]),this.j.y=parseFloat(this.U.split(",")[1])),1==this.Pd?(this.loop&&(this.j.x=this.Zj,this.j.y=this.$j),this.Na=this.j.x,this.Kc=this.j.y,this.reverse?(this.Qa=-parseFloat(this.target.split(",")[0]),this.Bc=-parseFloat(this.target.split(",")[1])):(this.Qa=parseFloat(this.target.split(",")[0]),this.Bc=parseFloat(this.target.split(",")[1])),this.Ta=this.Na,this.Dc=this.Kc,this.Bb=this.Ta+this.Qa,this.Kd=this.Dc+this.Bc):(this.reverse?(this.j.x=parseFloat(this.target.split(",")[0]),
this.j.y=parseFloat(this.target.split(",")[1]),this.Qa=this.Zj,this.Bc=this.$j):(this.j.x=this.Zj,this.j.y=this.$j,this.Qa=parseFloat(this.target.split(",")[0]),this.Bc=parseFloat(this.target.split(",")[1])),this.Na=this.j.x,this.Kc=this.j.y,this.Ta=this.Na,this.Dc=this.Kc,this.Bb=this.Qa,this.Kd=this.Bc,-6==this.Da&&(this.Bb=this.Zj,this.Kd=this.$j));else if(1==this.fa||2==this.fa||3==this.fa){a&&(this.target="1,1");"current"==this.U&&(this.U="1,1");this.U=""+this.U;this.target=""+this.target;2==
this.fa?(-1==this.U.indexOf(",")&&(this.U=parseFloat(this.U)+",1"),-1==this.target.indexOf(",")&&(this.target=parseFloat(this.target)+",1")):3==this.fa?(-1==this.U.indexOf(",")&&(this.U="1,"+parseFloat(this.U)),-1==this.target.indexOf(",")&&(this.target="1,"+parseFloat(this.target))):(-1==this.U.indexOf(",")&&(this.U=parseFloat(this.U)+","+parseFloat(this.U)),-1==this.target.indexOf(",")&&(this.target=parseFloat(this.target)+","+parseFloat(this.target)));var e=parseFloat(this.U.split(",")[0]),f=parseFloat(this.U.split(",")[1]);
this.rg=!0;var c=parseFloat(this.target.split(",")[0]);if(0==c||isNaN(c))this.rg=!1;3==this.fa&&(this.rg=!1);this.sg=!0;var g=parseFloat(this.target.split(",")[1]);if(0==g||isNaN(g))this.sg=!1;2==this.fa&&(this.sg=!1);1==this.Pd?(this.loop&&(this.j.width=this.yf,this.j.height=this.xf),b||(this.reverse?(this.j.width=this.j.width*c,this.j.height=this.j.height*g):(this.j.width=this.j.width*e,this.j.height=this.j.height*f)),this.Na=this.j.width,this.Kc=this.j.height,this.Ta=this.Na,this.Dc=this.Kc,this.reverse?
(this.Qa=this.Na*e/c,this.Bc=this.Kc*f/g):(this.Qa=this.Na*c,this.Bc=this.Kc*g)):(b||(this.reverse?(this.j.width=this.yf*c,this.j.height=this.xf*g):(this.j.width=this.yf*e,this.j.height=this.xf*f)),this.Na=this.j.width,this.Kc=this.j.height,this.Ta=this.Na,this.Dc=this.Kc,this.reverse?(this.Qa=this.yf*e,this.Bc=this.xf*f):(this.Qa=this.yf*c,this.Bc=this.xf*g));this.Bb=this.Qa;this.Kd=this.Bc;-6==this.Da&&(this.Bb=this.yf*e,this.Kd=this.xf*f)}else if(4==this.fa)a&&(this.target=La(this.j.C)),"current"==
this.U||this.reverse||1==this.Da||(this.j.C=K(parseFloat(this.U.split(",")[0]))),1==this.Pd?(this.loop&&(this.j.C=this.mn),this.Na=this.j.C,this.reverse?this.Qa=this.j.C-K(parseFloat(this.target.split(",")[0])):this.Qa=this.j.C+K(parseFloat(this.target.split(",")[0]))):this.reverse?(this.j.C=K(parseFloat(this.target.split(",")[0])),this.Na=this.j.C,this.Qa=this.mn):(this.j.C=this.mn,this.Na=this.j.C,this.Qa=K(parseFloat(this.target.split(",")[0]))),this.Ta=this.Na,this.Bb=La(this.Qa),-6==this.Da&&
(this.Bb=La(this.mn)),this.nn=K(this.Bb);else if(5==this.fa)"current"==this.U&&(this.U=this.j.opacity),a&&(this.target=""+this.j.opacity),b||this.reverse||1==this.Da||(this.j.opacity=parseFloat(this.U.split(",")[0])/100),1==this.Pd?(this.loop&&(this.j.opacity=this.lG),this.Ta=this.Na=this.j.opacity,this.Qa=this.reverse?-parseFloat(this.target.split(",")[0])/100:parseFloat(this.target.split(",")[0])/100,this.Bb=this.Ta+this.Qa):(this.Na=this.j.opacity,this.reverse?(this.Ta=parseFloat(this.target.split(",")[0])/
100,this.Qa=parseFloat(this.U.split(",")[0])/100):(this.Ta=this.Na,this.Qa=parseFloat(this.target.split(",")[0])/100),this.Bb=this.Qa),-6==this.Da&&(this.Bb=this.lG);else if(6==this.fa)isNaN(this.value)&&(this.value=0),"current"==this.U&&(this.U=""+this.value),a&&(this.target=""+this.value),b||this.reverse||1==this.Da||(this.value=parseFloat(this.U.split(",")[0])),1==this.Pd?(this.loop&&(this.value=this.Fu),b||(this.value=this.reverse?parseFloat(this.target.split(",")[0]):parseFloat(this.U.split(",")[0])),
this.Na=this.value,this.reverse?this.Qa=this.Na-parseFloat(this.target.split(",")[0]):this.Qa=this.Na+parseFloat(this.target.split(",")[0]),this.Ta=this.Na,this.Bb=this.Qa):(b||(this.value=this.reverse?parseFloat(this.target.split(",")[0]):parseFloat(this.U.split(",")[0])),this.Na=this.value,this.Qa=this.reverse?parseFloat(this.U.split(",")[0]):parseFloat(this.target.split(",")[0]),this.Ta=this.Na,this.Bb=this.Qa),-6==this.Da&&(this.Bb=this.Fu);else if(7==this.fa){a&&(this.target=this.j.width+","+
this.j.height);"current"==this.U||this.reverse||1==this.Da||(this.j.width=parseFloat(this.U.split(",")[0]),this.j.height=parseFloat(this.U.split(",")[1]));this.rg=!0;c=parseFloat(this.target.split(",")[0]);if(0>c||isNaN(c))this.rg=!1;this.sg=!0;g=parseFloat(this.target.split(",")[1]);if(0>g||isNaN(g))this.sg=!1;1==this.Pd?(this.loop&&(this.j.width=this.yf,this.j.height=this.xf),this.Na=this.j.width,this.Kc=this.j.height,this.reverse?(this.Qa=this.Na-parseFloat(this.target.split(",")[0]),this.Bc=this.Kc-
parseFloat(this.target.split(",")[1])):(this.Qa=this.Na+parseFloat(this.target.split(",")[0]),this.Bc=this.Kc+parseFloat(this.target.split(",")[1]))):(b||(this.reverse?(this.j.width=parseFloat(this.target.split(",")[0]),this.j.height=parseFloat(this.target.split(",")[1])):(this.j.width=this.yf,this.j.height=this.xf)),this.Na=this.j.width,this.Kc=this.j.height,this.reverse?(this.Qa=this.yf,this.Bc=this.xf):(this.Qa=parseFloat(this.target.split(",")[0]),this.Bc=parseFloat(this.target.split(",")[1])));
this.Ta=this.Na;this.Dc=this.Kc;this.Bb=this.Qa;this.Kd=this.Bc;-6==this.Da&&(this.Bb=this.yf,this.Kd=this.xf)}this.xe=this.ud=this.Ta;this.mf=this.Dc;this.xb=parseFloat(this.wl.split(",")[0]);this.Sb=parseFloat(this.wl.split(",")[1]);if(0>this.xb||isNaN(this.xb))this.xb=0;if(0>this.Sb||isNaN(this.Sb))this.Sb=0;b&&(this.U="current");a&&(this.target="current");d&&(this.target="OBJ")};l.UM=function(b,a){switch(this.uo){case 0:return 1*b/a+0;case 1:return 1*(b/=a)*b+0;case 2:return-1*(b/=a)*(b-2)+0;
case 3:return 1>(b/=a/2)?.5*b*b+0:-.5*(--b*(b-2)-1)+0;case 4:return 1*(b/=a)*b*b+0;case 5:return 1*((b=b/a-1)*b*b+1)+0;case 6:return 1>(b/=a/2)?.5*b*b*b+0:.5*((b-=2)*b*b+2)+0;case 7:return 1*(b/=a)*b*b*b+0;case 8:return-1*((b=b/a-1)*b*b*b-1)+0;case 9:return 1>(b/=a/2)?.5*b*b*b*b+0:-.5*((b-=2)*b*b*b-2)+0;case 10:return 1*(b/=a)*b*b*b*b+0;case 11:return 1*((b=b/a-1)*b*b*b*b+1)+0;case 12:return 1>(b/=a/2)?.5*b*b*b*b*b+0:.5*((b-=2)*b*b*b*b+2)+0;case 13:return-1*(Math.sqrt(1-(b/=a)*b)-1)+0;case 14:return 1*
Math.sqrt(1-(b=b/a-1)*b)+0;case 15:return 1>(b/=a/2)?-.5*(Math.sqrt(1-b*b)-1)+0:.5*(Math.sqrt(1-(b-=2)*b)+1)+0;case 16:var d=0;0==d&&(d=1.70158);return 1*(b/=a)*b*((d+1)*b-d)+0;case 17:return d=0,0==d&&(d=1.70158),1*((b=b/a-1)*b*((d+1)*b+d)+1)+0;case 18:return d=0,0==d&&(d=1.70158),1>(b/=a/2)?.5*b*b*(((d*=1.525)+1)*b-d)+0:.5*((b-=2)*b*(((d*=1.525)+1)*b+d)+2)+0;case 19:var e=0,f=0;if(0==b)break;if(1==(b/=a))return 1;0==f&&(f=.3*a);0==e||e<Math.abs(1)?(e=1,d=f/4):d=f/(2*Math.PI)*Math.asin(1/e);return-(e*
Math.pow(2,10*--b)*Math.sin(2*(b*a-d)*Math.PI/f))+0;case 20:f=e=0;if(0==b)break;if(1==(b/=a))return 1;0==f&&(f=.3*a);0==e||e<Math.abs(1)?(e=1,d=f/4):d=f/(2*Math.PI)*Math.asin(1/e);return e*Math.pow(2,-10*b)*Math.sin(2*(b*a-d)*Math.PI/f)+1;case 21:f=e=0;if(0==b)break;if(2==(b/=a/2))return 1;0==f&&(f=.3*a*1.5);0==e||e<Math.abs(1)?(e=1,d=f/4):d=f/(2*Math.PI)*Math.asin(1/e);return 1>b?-.5*e*Math.pow(2,10*--b)*Math.sin(2*(b*a-d)*Math.PI/f)+0:e*Math.pow(2,-10*--b)*Math.sin(2*(b*a-d)*Math.PI/f)*.5+1;case 22:return 1-
g(a-b,a)+0;case 23:return g(b,a);case 24:return b<a/2?.5*(1-g(a-2*b,a)+0)+0:.5*g(2*b-a,a)+.5;case 25:return d=b/a/2,2*d*d*(3-2*d);case 26:return d=(b/a+1)/2,2*d*d*(3-2*d)-1;case 27:return d=b/a,d*d*(3-2*d)}return 0};l.P=function(){return{i:this.Z,active:this.W,tweened:this.fa,easing:this.uo,initial:this.U,target:this.target,duration:this.duration,wait:this.wl,playmode:this.Da,value:this.value,coord_mode:this.Pd,forceInit:this.mx,group:this.group,targetObject:this.ke,pingpongCounter:this.Ae,isPaused:this.Mk,
initialX:this.Na,initialY:this.Kc,targetX:this.Qa,targetY:this.Bc,tweenSaveWidth:this.yf,tweenSaveHeight:this.xf,tweenSaveAngle:this.mn,tweenSaveX:this.Zj,tweenSaveY:this.$j,tweenSaveValue:this.Fu,tweenInitialX:this.Ta,tweenInitialY:this.Dc,tweenTargetX:this.Bb,tweenTargetY:this.Kd,tweenTargetAngle:this.nn,ratio:this.wh,reverse:this.reverse,rewindMode:this.Zt,doTweenX:this.rg,doTweenY:this.sg,loop:this.loop,initiating:this.xb,cooldown:this.Sb,lastPlayMode:this.yy,lastKnownValue:this.ud,lastKnownX:this.xe,
lastKnownY:this.mf,onStarted:this.Mm,onStartedDone:this.Yp,onWaitEnd:this.Om,onWaitEndDone:this.Zp,onEnd:this.Km,onEndDone:this.Qp,onCooldown:this.Jm,onCooldownDone:this.Pp}};l.ca=function(b){this.Z=b.i;this.W=b.active;this.fa=b.tweened;this.uo=b.easing;this.U=b.initial;this.target=b.target;this.duration=b.duration;this.wl=b.wait;this.Da=b.playmode;this.value=b.value;this.Pd=b.coord_mode;this.mx=b.forceInit;this.group=b.group;this.ke=b.targetObject;this.Ae=b.pingpongCounter;this.Mk=b.isPaused;this.Na=
b.initialX;this.Kc=b.initialY;this.Qa=b.targetX;this.Bc=b.targetY;this.yf=b.tweenSaveWidth;this.xf=b.tweenSaveHeight;this.mn=b.tweenSaveAngle;this.Zj=b.tweenSaveX;this.$j=b.tweenSaveY;this.Fu=b.tweenSaveValue;this.Ta=b.tweenInitialX;this.Dc=b.tweenInitialY;this.Bb=b.tweenTargetX;this.Kd=b.tweenTargetY;this.nn=b.tweenTargetAngle;this.wh=b.ratio;this.reverse=b.reverse;this.Zt=b.rewindMode;this.rg=b.doTweenX;this.sg=b.doTweenY;this.loop=b.loop;this.xb=b.initiating;this.Sb=b.cooldown;this.yy=b.lastPlayMode;
this.ud=b.lastKnownValue;this.xe=b.lastKnownX;this.mf=b.lastKnownY;this.Mm=b.onStarted;this.Yp=b.onStartedDone;this.Om=b.onWaitEnd;this.Zp=b.onWaitEndDone;this.Km=b.onEnd;this.Qp=b.onEndDone;this.Jm=b.onCooldown;this.Pp=b.onCooldownDone;this.FD()};l.ra=function(){var b=this.b.de(this.j),a=-1==this.Z;this.W&&0!==b&&(0!=this.Z||this.Mm||(this.Mm=!0,this.Pp=this.Jm=this.Qp=this.Km=this.Zp=this.Om=this.Yp=!1,this.b.trigger(Kd.prototype.n.mJ,this.j),this.Yp=!0),this.Z=-1==this.Z?this.xb+this.duration+
this.Sb:this.Z+b,this.Z<=this.xb||(0==this.Om&&(this.Om=!0,this.b.trigger(Kd.prototype.n.Bv,this.j),this.Zp=!0),this.Z<=this.duration+this.xb&&(b=this.UM(this.Z-this.xb,this.duration),0==this.fa?(1==this.Pd?(this.j.x!==this.xe&&(this.Ta+=this.j.x-this.xe,this.Bb+=this.j.x-this.xe),this.j.y!==this.mf&&(this.Dc+=this.j.y-this.mf,this.Kd+=this.j.y-this.mf)):(this.j.x!==this.xe&&(this.Ta+=this.j.x-this.xe),this.j.y!==this.mf&&(this.Dc+=this.j.y-this.mf)),this.j.x=this.Ta+(this.Bb-this.Ta)*b,this.j.y=
this.Dc+(this.Kd-this.Dc)*b,this.xe=this.j.x,this.mf=this.j.y):1==this.fa||2==this.fa||3==this.fa?(this.j.width!==this.xe&&(this.Ta=this.j.width),this.j.height!==this.mf&&(this.Dc=this.j.height),this.rg&&(this.j.width=this.Ta+(this.Bb-this.Ta)*b),this.sg?this.j.height=this.Dc+(this.Kd-this.Dc)*b:1==this.fa&&(this.j.height=this.j.width*this.wh),this.xe=this.j.width,this.mf=this.j.height):4==this.fa?(b=this.Ta+(this.nn-this.Ta)*b,this.Z>=this.duration+this.xb&&(b=this.nn),this.j.C=Na(b)):5==this.fa?
(1==this.Pd&&this.j.opacity!==this.xe&&(this.Ta=this.j.opacity),this.j.opacity=this.Ta+(this.Bb-this.Ta)*b,this.xe=this.j.opacity):6==this.fa?this.value=this.Ta+(this.Bb-this.Ta)*b:7==this.fa&&(1==this.Pd&&(this.j.width!==this.xe&&(this.Ta=this.j.width),this.j.height!==this.mf&&(this.Dc=this.j.height)),this.rg&&(this.j.width=this.Ta+(this.Bb-this.Ta)*b),this.sg&&(this.j.height=this.Dc+(this.Kd-this.Dc)*b),this.xe=this.j.width,this.mf=this.j.height),this.j.S()),this.Z>=this.duration+this.xb&&(this.uM(a),
this.j.S(),0==this.Km&&(this.Km=!0,this.b.trigger(Kd.prototype.n.fB,this.j),this.Qp=!0))))};l.uM=function(b){switch(this.fa){case 0:this.j.x=this.Bb;this.j.y=this.Kd;break;case 1:this.rg&&(this.j.width=this.Bb);this.sg?this.j.height=this.Kd:this.j.height=this.j.width*this.wh;break;case 2:this.j.width=this.Bb;break;case 3:this.j.height=this.Kd;break;case 4:this.j.C=Na(this.nn);this.ud=this.j.C;break;case 5:this.j.opacity=this.Bb;break;case 6:this.value=this.Bb;break;case 7:this.rg&&(this.j.width=this.Bb),
this.sg&&(this.j.height=this.Kd)}this.Z>=this.duration+this.xb+this.Sb&&(0==this.Da?(this.reverse=this.W=!1,this.Z=this.duration+this.xb+this.Sb):1==this.Da?(this.Z=0,this.init(),this.W=!0):2==this.Da?b?(this.reverse=!1,this.init()):(this.reverse=!this.reverse,this.Z=0,this.init(),this.W=!0):3==this.Da?this.b.ne(this.j):4==this.Da?(this.loop=!0,this.Z=0,this.init(),this.W=!0):5==this.Da?b?(this.reverse=!1,this.init()):0>=this.Ae?(this.Z=this.duration+this.xb+this.Sb,this.W=!1):(this.reverse?(--this.Ae,
this.reverse=!1):(--this.Ae,this.reverse=!0),this.Z=0,this.init(),this.W=!0):-6==this.Da?(this.Da=this.yy,this.reverse=!1,this.Z=0,this.W=!1):6==this.Da&&(this.reverse=!1,this.Z=this.duration+this.xb+this.Sb,this.W=!1));0==this.Jm&&(this.Jm=!0,this.b.trigger(Kd.prototype.n.KI,this.j),this.Pp=!0)};m.n={};l=m.n;l.fk=function(){return this.W};l.pR=function(b,a){var d=[];lc[this.group].forEach(function(a){d.push(a.Z/(a.duration+a.xb+a.Sb))});return hc(Math.min.apply(null,d),b,a)};l.rR=function(b,a){return hc(this.Z/
(this.duration+this.xb+this.Sb),b,a)};l.mJ=function(){if(!1===this.Yp)return this.Mm};l.Bv=function(){if(!1===this.Zp)return this.Om};l.fB=function(){if(!1===this.Qp)return this.Km};l.KI=function(){if(!1===this.Pp)return this.Jm};m.q={};var f=m.q;f.HB=function(b){this.W=1===b};f.XR=function(b,a){""===a&&(a=this.group);(1===b||lc[a].every(function(a){return!a.W}))&&lc[a].forEach(function(a){1===b?f.DH.apply(a):f.Af.apply(a)})};f.YR=function(b,a){""===a&&(a=this.group);lc[a].forEach(function(a){f.fj.apply(a,
[b])})};f.IR=function(b,a,d){""===d&&(d=this.group);(1===b||lc[d].every(function(a){return!a.W}))&&lc[d].forEach(function(d){1===b?f.HA.apply(d,[a]):f.dr.apply(d,[a])})};f.DH=function(){this.loop=4===this.Da;5==this.Da&&(this.Ae=1);6==this.Da||-6==this.Da?this.Z<this.duration+this.Sb+this.xb&&(this.reverse=!1,this.init(),this.W=!0):(this.reverse=!1,this.Z=0,this.init(),this.W=!0)};f.HA=function(b){this.Zt=1==b;this.loop=4===this.Da;5==this.Da&&(this.Ae=1);6==this.Da||-6==this.Da?this.Z<this.duration+
this.Sb+this.xb&&(this.reverse=!0,this.init(),this.W=!0):b?1==this.Ae&&this.Z>=this.duration+this.Sb+this.xb&&(this.reverse=!0,this.Z=0,this.Ae=2,this.init(),this.W=!0):(this.reverse=!0,this.Z=0,this.init(),this.W=!0)};f.Af=function(){this.W||(this.loop=4===this.Da,5==this.Da&&(this.Ae=1),6==this.Da||-6==this.Da?this.Z<this.duration+this.Sb+this.xb&&(this.reverse=!1,this.init(),this.W=!0):(this.Ae=1,this.reverse=!1,this.Z=0,this.init(),this.W=!0))};f.fj=function(b){this.W&&(2==this.Da||4==this.Da?
this.Z=this.reverse?0:-1:1==b?this.Uj():0==b?this.Z=this.xb+this.Sb+this.duration:this.Z=0,this.ra(),this.W=!1)};f.AB=function(){this.W&&(this.Mk=!0,this.W=!1)};f.cj=function(){this.Mk?(this.W=!0,this.Mk=!1):this.W||(this.reverse=!1,this.Z=0,this.init(),this.W=!0)};f.dr=function(b){this.Zt=1==b;this.W||(this.loop=4===this.Da,5==this.Da&&(this.Ae=1),6==this.Da||-6==this.Da?this.Z<this.duration+this.Sb+this.xb&&(this.reverse=!0,this.init(),this.W=!0):b?1==this.Ae&&this.Z>=this.duration+this.Sb+this.xb&&
(this.reverse=!0,this.Z=0,this.Ae=2,this.init(),this.W=!0):(this.reverse=!0,this.Z=0,this.init(),this.W=!0))};f.Mv=function(b){this.duration=b};f.DK=function(b){this.wl=b;this.xb=parseFloat(this.wl.split(",")[0]);this.Sb=parseFloat(this.wl.split(",")[1]);if(0>this.xb||isNaN(this.xb))this.xb=0;if(0>this.Sb||isNaN(this.Sb))this.Sb=0};f.wK=function(b){"string"==typeof b?(this.target=b,this.Qa=parseFloat(b.split(",")[0]),this.Bc=parseFloat(b.split(",")[1])):this.Qa=this.target=b;this.W||this.init()};
f.SR=function(b){b&&(b=b.cm())&&(this.ke=b,this.target="OBJ")};f.TR=function(b){2==this.fa||3==this.fa||4==this.fa||5==this.fa||6==this.fa?("string"==typeof b?this.target=parseFloat(b.split(",")[0]):this.target=""+b+","+this.Bc,this.Qa=this.target):(this.target=String(b)+","+this.target.split(",")[1],this.Qa=parseFloat(this.target.split(",")[0]),this.Bc=parseFloat(this.target.split(",")[1]));this.W||(this.Uj(),this.init())};f.UR=function(b){2==this.fa||3==this.fa||4==this.fa||5==this.fa||6==this.fa?
this.Qa=this.target="string"==typeof b?parseFloat(b)+"":this.Qa+","+b:(this.target=this.target.split(",")[0]+","+String(b),this.Qa=parseFloat(this.target.split(",")[0]),this.Bc=parseFloat(this.target.split(",")[1]));this.W||(this.Uj(),this.init())};f.eK=function(b){"string"==typeof b?(this.U=b,this.Na=parseFloat(b.split(",")[0]),this.Kc=parseFloat(b.split(",")[1])):(this.U=""+b,this.Na=b);6==this.fa&&(this.value=this.Na);this.W||(this.Uj(),this.init())};f.PR=function(b){2==this.fa||3==this.fa||4==
this.fa||5==this.fa||6==this.fa?("string"==typeof b?this.U=parseFloat(b):this.U=""+b+","+this.Kc,this.Na=this.U):(""==this.U&&(this.U="current"),this.U=String(b)+","+("current"==this.U?this.$j:this.U.split(",")[1]),this.Na=parseFloat(this.U.split(",")[0]),this.Kc=parseFloat(this.U.split(",")[1]));6==this.fa&&(this.value=this.Na);this.W||(this.Uj(),this.init())};f.QR=function(b){2==this.fa||3==this.fa||4==this.fa||5==this.fa||6==this.fa?("string"==typeof b?this.U=parseFloat(b):this.U=""+this.Na+","+
b,this.Na=this.U):(""==this.U&&(this.U="current"),this.U=("current"==this.U?this.Zj:this.U.split(",")[0])+","+String(b),this.Na=parseFloat(this.U.split(",")[0]),this.Kc=parseFloat(this.U.split(",")[1]));this.W||(this.Uj(),this.init())};f.Vv=function(b){this.value=b};f.WR=function(b){this.fa=b};f.NR=function(b){this.uo=b};f.RR=function(b){this.Da=b};f.Qv=function(b,a,d,e,g,c,k,l){this.fa=b;this.Da=a;this.uo=d;f.eK.apply(this,[e]);f.wK.apply(this,[g]);f.Mv.apply(this,[c]);f.DK.apply(this,[k]);this.Pd=
l;this.Uj()};m.D={};m=m.D;m.Gv=function(b){b.K(this.Z/(this.duration+this.xb+this.Sb))};m.HR=function(b){b.K(this.Z)};m.av=function(b){b.K(this.duration)};m.uR=function(b){b.K(this.xb)};m.tR=function(b){b.K(this.Sb)};m.$R=function(b){b.Fa(this.target)};m.aL=function(b){b.K(this.value)};m.Mk=function(b){b.R(this.Mk?1:0)}})();function wc(g){this.b=g}
(function(){function g(){}var m=wc.prototype;m.L=function(f,b){this.behavior=f;this.Hb=b;this.b=f.b};m.L.prototype.I=function(){};m.J=function(f,b){this.type=f;this.behavior=f.behavior;this.j=b;this.b=f.b};var l=m.J.prototype;l.I=function(){this.j.ka.solidEnabled=0!==this.B[0]};l.ra=function(){};m.n=new function(){};g.prototype.bg=function(f){this.j.ka.solidEnabled=!!f};m.q=new g})();function Md(g){this.b=g}
(function(){var g=Md.prototype;g.L=function(g,l){this.behavior=g;this.Hb=l;this.b=g.b};g.L.prototype.I=function(){};g.J=function(g,l){this.type=g;this.behavior=g.behavior;this.j=l;this.b=g.b};g=g.J.prototype;g.I=function(){this.mode=this.B[0]};g.ra=function(){var g=this.j;g.ja();var l=g.za,f=g.F,b=f.zc,a=0,d=0,e=0,h=0;0===this.mode?(d=b.width,h=b.height):(a=f.Ra,d=f.bb,e=f.Ua,h=f.fb);l.right<a?(g.x=d-1+(g.x-l.left),g.S()):l.left>d?(g.x=a+1-(l.right-g.x),g.S()):l.bottom<e?(g.y=h-1+(g.y-l.top),g.S()):
l.top>h&&(g.y=e+1-(l.bottom-g.y),g.S())}})();
function vc(){return[Uc,yc,Ac,Bc,zc,Hc,Cc,Ic,Jc,Kc,xc,gd,Pc,Qc,Lc,Vc,Tc,Yc,Xc,Wc,Zc,ad,$c,cd,ed,bd,dd,Sc,fd,Z,Rc,vd,kd,Cd,Id,ld,Bd,hd,od,sd,qd,zd,ud,md,Kd,td,Jd,xd,jd,id,wc,Ad,pd,wd,yd,Md,nd,rd,xd.prototype.n.bj,U.prototype.q.AK,Wc.prototype.D.Kh,U.prototype.D["int"],U.prototype.D["float"],Xc.prototype.q.XA,U.prototype.n.XG,U.prototype.D.random,Ic.prototype.D.gv,Z.prototype.q.LK,Z.prototype.q.JB,Z.prototype.q.IB,U.prototype.D.floor,U.prototype.n.eH,U.prototype.q.iH,Z.prototype.D.NA,Z.prototype.D.OA,
Z.prototype.q.Cl,Z.prototype.q.KB,hd.prototype.q.Dl,hd.prototype.q.OJ,U.prototype.D.FC,Bc.prototype.q.Play,U.prototype.n.zH,U.prototype.D.nP,hd.prototype.q.NB,Z.prototype.q.Rv,od.prototype.n.PA,od.prototype.D.Fv,Z.prototype.D.ZK,Z.prototype.D.wJ,Z.prototype.D.Gl,Z.prototype.D.bw,Z.prototype.D.Hl,od.prototype.q.Dv,kd.prototype.q.EK,kd.prototype.q.PK,Cd.prototype.q.pK,Cd.prototype.q.Pv,Cd.prototype.q.oK,Z.prototype.q.Og,kd.prototype.q.YJ,U.prototype.n.YH,Z.prototype.n.cB,Z.prototype.n.Lh,hd.prototype.n.dH,
Z.prototype.q.Zf,Z.prototype.n.JI,Z.prototype.D.qA,Z.prototype.n.YA,Z.prototype.n.gk,Z.prototype.q.kK,zd.prototype.q.Dv,U.prototype.n.tJ,zd.prototype.D.Fv,Z.prototype.n.yA,U.prototype.D.iP,Z.prototype.n.gH,U.prototype.D.gP,Jc.prototype.q.Wu,Ic.prototype.n.xA,xc.prototype.q.CallFunction,Z.prototype.q.Wu,xd.prototype.q.NG,Z.prototype.q.jk,vd.prototype.q.Mv,vd.prototype.q.Af,U.prototype.D.hP,U.prototype.n.kB,Id.prototype.q.Xv,U.prototype.q.cL,Z.prototype.n.Sq,U.prototype.D.min,Jc.prototype.q.Cl,U.prototype.D.aM,
Id.prototype.n.pJ,U.prototype.n.YG,U.prototype.n.EA,Jc.prototype.n.Lh,U.prototype.D.RQ,U.prototype.D.SQ,Zc.prototype.n.lv,xc.prototype.n.bj,U.prototype.n.AH,U.prototype.q.HG,Z.prototype.D.BA,xc.prototype.q.QB,U.prototype.D.Gm,xc.prototype.D.Zu,xc.prototype.D.Cv,xc.prototype.n.$u,U.prototype.D.cos,U.prototype.D.sin,Z.prototype.D.JG,Bd.prototype.q.Dl,Z.prototype.q.PJ,ld.prototype.q.yH,Z.prototype.D.KA,Z.prototype.q.ej,Z.prototype.n.TH,Z.prototype.q.MB,Ic.prototype.q.FG,Z.prototype.n.bI,Bc.prototype.q.AJ,
rd.prototype.n.lv,Z.prototype.q.er,rd.prototype.q.jv,hd.prototype.q.bg,hd.prototype.D.Fl,Cd.prototype.q.HB,rd.prototype.n.Hn,sd.prototype.q.bg,sd.prototype.q.jr,sd.prototype.q.Rh,sd.prototype.q.hr,U.prototype.n.vJ,sd.prototype.q.zK,sd.prototype.n.Yq,sd.prototype.q.xK,Cd.prototype.q.lK,Z.prototype.q.qK,Z.prototype.n.aH,Z.prototype.D.LG,U.prototype.n.$H,U.prototype.q.aK,id.prototype.q.bg,Z.prototype.q.El,Kc.prototype.n.hB,Ac.prototype.n.cH,Ac.prototype.D.Kh,Kc.prototype.n.ZH,jd.prototype.q.KK,fd.prototype.n.zv,
id.prototype.n.eB,id.prototype.q.sH,Z.prototype.q.PB,id.prototype.n.dB,U.prototype.n.wH,U.prototype.n.vH,Z.prototype.D.QH,U.prototype.n.CH,Kd.prototype.q.Qv,Kd.prototype.q.Af,Ad.prototype.q.YK,Bd.prototype.q.Rh,bd.prototype.q.GJ,U.prototype.D.jP,U.prototype.D.KQ,bd.prototype.q.GG,U.prototype.D.rP,bd.prototype.q.QK,bd.prototype.D.rJ,bd.prototype.D.kI,qd.prototype.n.UH,hd.prototype.q.Rh,U.prototype.q.mK,U.prototype.D.C,qd.prototype.q.QJ,qd.prototype.q.JJ,Uc.prototype.q.ej,Sc.prototype.q.qe,Ac.prototype.D.bw,
dd.prototype.n.Lh,dd.prototype.q.qe,Z.prototype.q.RB,Sc.prototype.q.Rv,Ac.prototype.q.Og,Ac.prototype.q.GK,Ac.prototype.q.DJ,Ac.prototype.q.oH,Ic.prototype.q.Zi,Wc.prototype.n.bv,Wc.prototype.D.jH,U.prototype.D.find,Ic.prototype.q.hK,td.prototype.q.Dl,td.prototype.q.ik,Z.prototype.D.KG,md.prototype.q.WJ,md.prototype.n.MH,md.prototype.q.sK,Kd.prototype.n.fB,Z.prototype.q.VJ,U.prototype.D.round,ed.prototype.q.ej,Z.prototype.n.cI,ed.prototype.q.Nv,Ic.prototype.n.BH,Ic.prototype.n.ZG,Ic.prototype.D.kH,
bd.prototype.q.HJ,U.prototype.D.MP,U.prototype.D.LP,U.prototype.D.fR,U.prototype.D.eR,U.prototype.D.dR,U.prototype.D.gR,Uc.prototype.q.Og,ed.prototype.q.Cl,ed.prototype.q.qe,ed.prototype.q.Og,ed.prototype.q.Ov,ed.prototype.q.dK,ed.prototype.q.BK,ed.prototype.q.FK,ed.prototype.n.Lh,Uc.prototype.n.Tq,Kd.prototype.q.fj,U.prototype.D.replace,Z.prototype.n.Tq,ed.prototype.q.Zf,Uc.prototype.q.Zf,U.prototype.D.rM,U.prototype.q.jK,Bc.prototype.q.nK,Zc.prototype.n.Hn,pd.prototype.n.Fn,U.prototype.n.sJ,Z.prototype.n.uJ,
Zc.prototype.q.jv,Zc.prototype.n.In,vd.prototype.q.Pv,U.prototype.D.abs,rd.prototype.n.In,Id.prototype.q.VB,xd.prototype.q.Qv,Z.prototype.q.cK,ud.prototype.q.Tv,xd.prototype.q.nH,xd.prototype.n.$u,sd.prototype.q.yK,Z.prototype.D.RH,xd.prototype.D.Cv,ad.prototype.q.Og,ad.prototype.q.kk,Wc.prototype.D.LJ,yd.prototype.q.CK,yd.prototype.q.uH,Ic.prototype.D.lH,Cc.prototype.q.hH,Sc.prototype.q.Cl,Sc.prototype.q.TJ,Sc.prototype.q.ej,ad.prototype.q.EJ,Sc.prototype.q.Zf,wd.prototype.n.vB,fd.prototype.n.gI,
ad.prototype.q.Yu,wd.prototype.D.pH,fd.prototype.n.tB,ad.prototype.q.OB,id.prototype.n.XH,yd.prototype.D.bL,Tc.prototype.n.yB,Z.prototype.q.IK,ad.prototype.D.xH,ad.prototype.D.WK,ad.prototype.n.lB,ad.prototype.D.nI,ad.prototype.D.oI,Z.prototype.q.dC,ad.prototype.D.lI,ad.prototype.q.yJ,ed.prototype.q.$J,U.prototype.D.kR,ed.prototype.q.dC,ed.prototype.q.PB,dd.prototype.q.ej,Kd.prototype.q.dr,dd.prototype.q.Zf,$c.prototype.q.Zf,$c.prototype.q.RJ,$c.prototype.q.Og,Z.prototype.q.WA,Sc.prototype.n.Tq,Sc.prototype.n.Lh,
Sc.prototype.q.WA,$c.prototype.q.Yu,wd.prototype.n.$G,$c.prototype.q.Vv,$c.prototype.D.$K,$c.prototype.n.aB,$c.prototype.D.QG,$c.prototype.D.RG,$c.prototype.D.PG,$c.prototype.q.xJ,$c.prototype.D.Kh,Yc.prototype.D.Date,Yc.prototype.D.PH,Yc.prototype.D.sI,yc.prototype.q.Qh,yc.prototype.n.En,yc.prototype.D.SK,Wc.prototype.q.pI,yc.prototype.D.jI,Wc.prototype.q.Jv,yc.prototype.n.Gn,Ic.prototype.q.nv,Wc.prototype.q.WB,Pc.prototype.q.fK,Ic.prototype.D.xn,Pc.prototype.n.gB,Pc.prototype.D.hI,zc.prototype.D.FH,
Zc.prototype.D.oe,Bc.prototype.q.RK,zc.prototype.q.zJ,Rc.prototype.q.er,Rc.prototype.q.IB,Rc.prototype.q.ej,Rc.prototype.q.pv,Rc.prototype.q.Cl,Rc.prototype.n.Sq,Rc.prototype.n.Lh,U.prototype.q.LH,Cc.prototype.n.rB,Cc.prototype.n.dI,U.prototype.q.iK,U.prototype.q.kr,ud.prototype.q.ik,xc.prototype.q.vA,ed.prototype.q.vK,xc.prototype.D.zB,Jc.prototype.q.KJ,Ac.prototype.q.Zi,zc.prototype.q.BJ,od.prototype.q.$B,Vc.prototype.q.pv,Sc.prototype.q.bK,Sc.prototype.q.Og,Z.prototype.q.pv,Vc.prototype.q.uK,Vc.prototype.q.tK,
Z.prototype.q.ZJ,Kd.prototype.q.HA,zc.prototype.n.OG,U.prototype.n.eI,U.prototype.n.aI,Pc.prototype.q.EH,Qc.prototype.q.Xu,Qc.prototype.q.EG,Qc.prototype.q.DG,Qc.prototype.q.OK,Qc.prototype.q.Af,dd.prototype.q.Ov,dd.prototype.q.Nv,U.prototype.D.oQ,dd.prototype.q.Og,Bc.prototype.n.CJ,U.prototype.n.XK,Qc.prototype.q.gK,Qc.prototype.n.On,Qc.prototype.D.Gv,Qc.prototype.n.bB,U.prototype.q.KH,Lc.prototype.q.Zi,Lc.prototype.n.Lh,Wc.prototype.n.cv,Lc.prototype.q.Xu,Wc.prototype.D.CA,Hc.prototype.n.Wq,Hc.prototype.n.Lh,
Lc.prototype.D.NJ,Wc.prototype.D.Zv,Cc.prototype.q.SH,Bc.prototype.q.fj,Jc.prototype.q.er,Rc.prototype.q.Zf,Rc.prototype.q.Og,Sc.prototype.q.UJ,Bc.prototype.n.fI,ed.prototype.D.BA,Sc.prototype.q.er,Sc.prototype.n.Sq,Sc.prototype.q.Wu,Z.prototype.n.bH,ud.prototype.q.jr,ud.prototype.q.Rh,ud.prototype.q.hr,Jc.prototype.n.Sq,Ac.prototype.D.qH,Ac.prototype.q.HK,ed.prototype.n.Tq,Uc.prototype.q.Cl,Sc.prototype.q.MB,Ac.prototype.n.fH,Sc.prototype.q.El,ed.prototype.q.El,Uc.prototype.n.Lh,Uc.prototype.q.El,
Z.prototype.q.rK,fd.prototype.n.uv,fd.prototype.n.vv,fd.prototype.n.Ng,U.prototype.D.max]};
