// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var ba={},da,fa,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ta,ua,va,wa,xa,ya,Aa,Ba,Ca,A,Da,Ea,Fa,Ga,Ha,D,Ia,Ja,Ka,Ma,Na,Oa,Pa,Qa,Ra,Ta,Ua,Va,Wa,Ya,Za,$a,ab,bb,cb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(h){return h.__proto__}:function(h){return h.constructor.prototype});
(function(){function h(a,g,e,c){this.set(a,g,e,c)}function k(){this.kb=this.jb=this.mb=this.lb=this.Ab=this.zb=this.La=this.Ka=0}function b(a,g,e,c){a<g?e<c?(n=a<e?a:e,m=g>c?g:c):(n=a<c?a:c,m=g>e?g:e):e<c?(n=g<e?g:e,m=a>c?a:c):(n=g<c?g:c,m=a>e?a:e)}function u(){this.items=this.nc=null;this.Vh=0;ga&&(this.nc=new Set);this.Zg=[];this.Ee=!0}function f(a){F[K++]=a}function r(){this.O=this.Tg=this.y=this.kh=0}function t(a){this.yb=[];this.Wi=this.Yi=this.Zi=this.Xi=0;this.si(a)}function p(a,g){this.ol=
a;this.nl=g;this.cells={}}function d(a,g){this.ol=a;this.nl=g;this.cells={}}function q(a,g,e){var c;return I.length?(c=I.pop(),c.Nl=a,c.x=g,c.y=e,c):new fa(a,g,e)}function a(a,g,e){this.Nl=a;this.x=g;this.y=e;this.Eb=new ha}function c(a,g,e){var c;return w.length?(c=w.pop(),c.Nl=a,c.x=g,c.y=e,c):new ia(a,g,e)}function l(a,g,e){this.Nl=a;this.x=g;this.y=e;this.Eb=[];this.qg=!0;this.Gd=new ha;this.hh=!1}function e(a,g){return a.pd-g.pd}ja=function(a){window.console&&window.console.log&&window.console.log(a)};
ka=function(a){window.console&&window.console.error&&window.console.error(a)};da=function(a){return a};la=function(a){return"undefined"===typeof a};ma=function(a){return"number"===typeof a};na=function(a){return"string"===typeof a};oa=function(a){return 0>a?-a:a};pa=function(a,g){return a>g?a:g};qa=function(a,g){return a<g?a:g};ta=Math.PI;ua=function(a){return 0<=a?a|0:(a|0)-1};va=function(a){var g=a|0;return g===a?g:g+1};wa=function(a,g,e,c,d,b,l,y){var B,v,n,m;a<e?(v=a,B=e):(v=e,B=a);d<l?(m=d,n=
l):(m=l,n=d);if(B<m||v>n)return!1;g<c?(v=g,B=c):(v=c,B=g);b<y?(m=b,n=y):(m=y,n=b);if(B<m||v>n)return!1;B=d-a+l-e;v=b-g+y-c;a=e-a;g=c-g;d=l-d;b=y-b;y=oa(g*d-b*a);return oa(d*v-b*B)>y?!1:oa(a*v-g*B)<=y};h.prototype.set=function(a,g,e,c){this.left=a;this.top=g;this.right=e;this.bottom=c};h.prototype.Xf=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};h.prototype.width=function(){return this.right-this.left};h.prototype.height=function(){return this.bottom-this.top};
h.prototype.offset=function(a,g){this.left+=a;this.top+=g;this.right+=a;this.bottom+=g;return this};h.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};h.prototype.kv=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};h.prototype.lv=function(a,g,e){return!(a.right+g<this.left||a.bottom+e<this.top||a.left+g>this.right||a.top+
e>this.bottom)};h.prototype.Ob=function(a,g){return a>=this.left&&a<=this.right&&g>=this.top&&g<=this.bottom};h.prototype.sh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};xa=h;k.prototype.ri=function(a){this.Ka=a.left;this.La=a.top;this.zb=a.right;this.Ab=a.top;this.lb=a.right;this.mb=a.bottom;this.jb=a.left;this.kb=a.bottom};k.prototype.rq=function(a,g){if(0===g)this.ri(a);else{var e=Math.sin(g),c=Math.cos(g),d=a.left*e,b=a.top*e,v=a.right*
e,e=a.bottom*e,y=a.left*c,B=a.top*c,l=a.right*c,c=a.bottom*c;this.Ka=y-b;this.La=B+d;this.zb=l-b;this.Ab=B+v;this.lb=l-e;this.mb=c+v;this.jb=y-e;this.kb=c+d}};k.prototype.offset=function(a,g){this.Ka+=a;this.La+=g;this.zb+=a;this.Ab+=g;this.lb+=a;this.mb+=g;this.jb+=a;this.kb+=g;return this};var n=0,m=0;k.prototype.oo=function(a){b(this.Ka,this.zb,this.lb,this.jb);a.left=n;a.right=m;b(this.La,this.Ab,this.mb,this.kb);a.top=n;a.bottom=m};k.prototype.Ob=function(a,g){var e=this.Ka,c=this.La,d=this.zb-
e,b=this.Ab-c,v=this.lb-e,y=this.mb-c,B=a-e,l=g-c,n=d*d+b*b,m=d*v+b*y,b=d*B+b*l,q=v*v+y*y,p=v*B+y*l,k=1/(n*q-m*m),d=(q*b-m*p)*k,n=(n*p-m*b)*k;if(0<=d&&0<n&&1>d+n)return!0;d=this.jb-e;b=this.kb-c;n=d*d+b*b;m=d*v+b*y;b=d*B+b*l;k=1/(n*q-m*m);d=(q*b-m*p)*k;n=(n*p-m*b)*k;return 0<=d&&0<n&&1>d+n};k.prototype.Ce=function(a,g){if(g)switch(a){case 0:return this.Ka;case 1:return this.zb;case 2:return this.lb;case 3:return this.jb;case 4:return this.Ka;default:return this.Ka}else switch(a){case 0:return this.La;
case 1:return this.Ab;case 2:return this.mb;case 3:return this.kb;case 4:return this.La;default:return this.La}};k.prototype.tp=function(){return(this.Ka+this.zb+this.lb+this.jb)/4};k.prototype.up=function(){return(this.La+this.Ab+this.mb+this.kb)/4};k.prototype.cp=function(a){var g=a.tp(),e=a.up();if(this.Ob(g,e))return!0;g=this.tp();e=this.up();if(a.Ob(g,e))return!0;var c,d,b,v,y,B,n,l;for(n=0;4>n;n++)for(l=0;4>l;l++)if(g=this.Ce(n,!0),e=this.Ce(n,!1),c=this.Ce(n+1,!0),d=this.Ce(n+1,!1),b=a.Ce(l,
!0),v=a.Ce(l,!1),y=a.Ce(l+1,!0),B=a.Ce(l+1,!1),wa(g,e,c,d,b,v,y,B))return!0;return!1};ya=k;Aa=function(a,g){for(var e in g)g.hasOwnProperty(e)&&(a[e]=g[e]);return a};Ba=function(a,g){var e,c;g=ua(g);if(!(0>g||g>=a.length)){e=g;for(c=a.length-1;e<c;e++)a[e]=a[e+1];Ca(a,c)}};Ca=function(a,g){a.length=g};A=function(a){Ca(a,0)};Da=function(a,g){A(a);var e,c;e=0;for(c=g.length;e<c;++e)a[e]=g[e]};Ea=function(a,g){a.push.apply(a,g)};Fa=function(a,g){var e,c;e=0;for(c=a.length;e<c;++e)if(a[e]===g)return e;
return-1};Ga=function(a,g){var e=Fa(a,g);-1!==e&&Ba(a,e)};Ha=function(a,g,e){return a<g?g:a>e?e:a};D=function(a){return a/(180/ta)};Ia=function(a){return 180/ta*a};Ja=function(a){a%=360;0>a&&(a+=360);return a};Ka=function(a){a%=2*ta;0>a&&(a+=2*ta);return a};Ma=function(a){return Ja(Ia(a))};Na=function(a){return Ka(D(a))};Oa=function(a,g,e,c){return Math.atan2(c-g,e-a)};Pa=function(a,g){if(a===g)return 0;var e=Math.sin(a),c=Math.cos(a),d=Math.sin(g),b=Math.cos(g),e=e*d+c*b;return 1<=e?0:-1>=e?ta:Math.acos(e)};
Qa=function(a,g,e){var c=Math.sin(a),d=Math.cos(a),b=Math.sin(g),n=Math.cos(g);return Math.acos(c*b+d*n)>e?0<d*b-c*n?Ka(a+e):Ka(a-e):Ka(g)};Ra=function(a,g){var e=Math.sin(a),c=Math.cos(a),d=Math.sin(g),b=Math.cos(g);return 0>=c*d-e*b};Ta=function(a,g,e,c,d,b){if(0===e)return b?a:g;var n=Math.sin(e);e=Math.cos(e);a-=c;g-=d;var y=a*n;a=a*e-g*n;g=g*e+y;return b?a+c:g+d};Ua=function(a,g,e,c){a=e-a;g=c-g;return Math.sqrt(a*a+g*g)};Va=function(a,g){return!a!==!g};Wa=function(a){for(var g in a)if(a.hasOwnProperty(g))return!0;
return!1};Ya=function(a){for(var g in a)a.hasOwnProperty(g)&&delete a[g]};var S=+new Date;Za=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-S};var g=!1,v=g=!1,R=!1;"undefined"!==typeof window&&(g=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
g=!g&&/safari/i.test(navigator.userAgent),v=/(iphone|ipod|ipad)/i.test(navigator.userAgent),R=window.c2ejecta);var ga=!g&&!R&&!v&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;u.prototype.contains=function(a){return this.ae()?!1:ga?this.nc.has(a):this.items&&this.items.hasOwnProperty(a)};u.prototype.add=function(a){if(ga)this.nc.has(a)||(this.nc.add(a),this.Ee=!1);else{var g=a.toString(),e=this.items;e?e.hasOwnProperty(g)||(e[g]=a,this.Vh++,this.Ee=!1):(this.items={},this.items[g]=
a,this.Vh=1,this.Ee=!1)}};u.prototype.remove=function(a){if(!this.ae())if(ga)this.nc.has(a)&&(this.nc["delete"](a),this.Ee=!1);else if(this.items){a=a.toString();var g=this.items;g.hasOwnProperty(a)&&(delete g[a],this.Vh--,this.Ee=!1)}};u.prototype.clear=function(){this.ae()||(ga?this.nc.clear():(this.items=null,this.Vh=0),A(this.Zg),this.Ee=!0)};u.prototype.ae=function(){return 0===this.count()};u.prototype.count=function(){return ga?this.nc.size:this.Vh};var F=null,K=0;u.prototype.Ww=function(){if(!this.Ee){if(ga)A(this.Zg),
F=this.Zg,K=0,this.nc.forEach(f),F=null,K=0;else{var a=this.Zg;A(a);var g,e=0,c=this.items;if(c)for(g in c)c.hasOwnProperty(g)&&(a[e++]=c[g])}this.Ee=!0}};u.prototype.bf=function(){this.Ww();return this.Zg};ha=u;new ha;$a=function(a,g){ga?ab(a,g.nc):bb(a,g.bf())};ab=function(a,g){var e,c,d,b;c=e=0;for(d=a.length;e<d;++e)b=a[e],g.has(b)||(a[c++]=b);Ca(a,c)};bb=function(a,g){var e,c,d,b;c=e=0;for(d=a.length;e<d;++e)b=a[e],-1===Fa(g,b)&&(a[c++]=b);Ca(a,c)};r.prototype.add=function(a){this.y=a-this.kh;
this.Tg=this.O+this.y;this.kh=this.Tg-this.O-this.y;this.O=this.Tg};r.prototype.reset=function(){this.O=this.Tg=this.y=this.kh=0};cb=r;fb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};t.prototype.si=function(a){this.aq=a;this.jd=a.length/2;this.yb.length=a.length;this.$i=this.aj=-1;this.qo=0};t.prototype.mg=function(){return!this.aq.length};t.prototype.za=function(){for(var a=this.yb,g=a[0],e=g,c=a[1],d=c,b,n,y=1,B=this.jd;y<B;++y)n=2*y,b=a[n],n=a[n+1],b<g&&(g=b),b>e&&(e=b),n<c&&
(c=n),n>d&&(d=n);this.Xi=g;this.Yi=e;this.Zi=c;this.Wi=d};t.prototype.ri=function(a,g,e){this.yb.length=8;this.jd=4;var c=this.yb;c[0]=a.left-g;c[1]=a.top-e;c[2]=a.right-g;c[3]=a.top-e;c[4]=a.right-g;c[5]=a.bottom-e;c[6]=a.left-g;c[7]=a.bottom-e;this.aj=a.right-a.left;this.$i=a.bottom-a.top;this.za()};t.prototype.Qg=function(a,g,e,c,d){this.yb.length=8;this.jd=4;var b=this.yb;b[0]=a.Ka-g;b[1]=a.La-e;b[2]=a.zb-g;b[3]=a.Ab-e;b[4]=a.lb-g;b[5]=a.mb-e;b[6]=a.jb-g;b[7]=a.kb-e;this.aj=c;this.$i=d;this.za()};
t.prototype.qq=function(a){this.jd=a.jd;Da(this.yb,a.yb);this.Xi=a.Xi;this.Zi-a.Zi;this.Yi=a.Yi;this.Wi=a.Wi};t.prototype.Uf=function(a,g,e){if(this.aj!==a||this.$i!==g||this.qo!==e){this.aj=a;this.$i=g;this.qo=e;var c,d,b,n,y,B=0,l=1,v=this.aq,m=this.yb;0!==e&&(B=Math.sin(e),l=Math.cos(e));e=0;for(b=this.jd;e<b;e++)c=2*e,d=c+1,n=v[c]*a,y=v[d]*g,m[c]=n*l-y*B,m[d]=y*l+n*B;this.za()}};t.prototype.Ob=function(a,g){var e=this.yb;if(a===e[0]&&g===e[1])return!0;var c,d,b,n=this.jd,y=this.Xi-110,B=this.Zi-
101,l=this.Yi+131,v=this.Wi+120,m,q,p=0,k=0;for(c=0;c<n;c++)d=2*c,b=(c+1)%n*2,m=e[d],d=e[d+1],q=e[b],b=e[b+1],wa(y,B,a,g,m,d,q,b)&&p++,wa(l,v,a,g,m,d,q,b)&&k++;return 1===p%2||1===k%2};t.prototype.Mh=function(a,g,e){var c=a.yb,d=this.yb;if(this.Ob(c[0]+g,c[1]+e)||a.Ob(d[0]-g,d[1]-e))return!0;var b,n,y,B,l,v,m,q,p,k,h,R;b=0;for(B=this.jd;b<B;b++)for(n=2*b,y=(b+1)%B*2,q=d[n],n=d[n+1],p=d[y],k=d[y+1],y=0,m=a.jd;y<m;y++)if(l=2*y,v=(y+1)%m*2,h=c[l]+g,l=c[l+1]+e,R=c[v]+g,v=c[v+1]+e,wa(q,n,p,k,h,l,R,v))return!0;
return!1};gb=t;p.prototype.Me=function(a,g,e){var c;c=this.cells[a];return c?(c=c[g])?c:e?(c=q(this,a,g),this.cells[a][g]=c):null:e?(c=q(this,a,g),this.cells[a]={},this.cells[a][g]=c):null};p.prototype.ec=function(a){return ua(a/this.ol)};p.prototype.fc=function(a){return ua(a/this.nl)};p.prototype.update=function(a,g,e){var c,d,b,n,y;if(g)for(c=g.left,d=g.right;c<=d;++c)for(b=g.top,n=g.bottom;b<=n;++b)if(!e||!e.Ob(c,b))if(y=this.Me(c,b,!1))y.remove(a),y.ae()&&(y.Eb.clear(),1E3>I.length&&I.push(y),
this.cells[c][b]=null);if(e)for(c=e.left,d=e.right;c<=d;++c)for(b=e.top,n=e.bottom;b<=n;++b)g&&g.Ob(c,b)||this.Me(c,b,!0).Tl(a)};p.prototype.tk=function(a,g){var e,c,d,b,n,y;e=this.ec(a.left);d=this.fc(a.top);c=this.ec(a.right);for(n=this.fc(a.bottom);e<=c;++e)for(b=d;b<=n;++b)(y=this.Me(e,b,!1))&&y.dump(g)};hb=p;d.prototype.Me=function(a,g,e){var d;d=this.cells[a];return d?(d=d[g])?d:e?(d=c(this,a,g),this.cells[a][g]=d):null:e?(d=c(this,a,g),this.cells[a]={},this.cells[a][g]=d):null};d.prototype.ec=
function(a){return ua(a/this.ol)};d.prototype.fc=function(a){return ua(a/this.nl)};d.prototype.update=function(a,g,e){var c,d,b,n,y;if(g)for(c=g.left,d=g.right;c<=d;++c)for(b=g.top,n=g.bottom;b<=n;++b)if(!e||!e.Ob(c,b))if(y=this.Me(c,b,!1))y.remove(a),y.ae()&&(y.reset(),1E3>w.length&&w.push(y),this.cells[c][b]=null);if(e)for(c=e.left,d=e.right;c<=d;++c)for(b=e.top,n=e.bottom;b<=n;++b)g&&g.Ob(c,b)||this.Me(c,b,!0).Tl(a)};d.prototype.tk=function(a,g,e,c,d){var b,n;a=this.ec(a);g=this.fc(g);e=this.ec(e);
for(b=this.fc(c);a<=e;++a)for(c=g;c<=b;++c)(n=this.Me(a,c,!1))&&n.dump(d)};d.prototype.Hv=function(a){var g,e,c,d,b;g=a.left;c=a.top;e=a.right;for(d=a.bottom;g<=e;++g)for(a=c;a<=d;++a)if(b=this.Me(g,a,!1))b.qg=!1};ib=d;var I=[];a.prototype.ae=function(){return this.Eb.ae()};a.prototype.Tl=function(a){this.Eb.add(a)};a.prototype.remove=function(a){this.Eb.remove(a)};a.prototype.dump=function(a){Ea(a,this.Eb.bf())};fa=a;var w=[];l.prototype.ae=function(){if(!this.Eb.length)return!0;if(this.Eb.length>
this.Gd.count())return!1;this.Dl();return!0};l.prototype.Tl=function(a){this.Gd.contains(a)?(this.Gd.remove(a),this.Gd.ae()&&(this.hh=!1)):this.Eb.length?(this.Eb[this.Eb.length-1].yd()>a.yd()&&(this.qg=!1),this.Eb.push(a)):(this.Eb.push(a),this.qg=!0)};l.prototype.remove=function(a){this.Gd.add(a);this.hh=!0;30<=this.Gd.count()&&this.Dl()};l.prototype.Dl=function(){this.hh&&(this.Gd.count()===this.Eb.length?this.reset():($a(this.Eb,this.Gd),this.Gd.clear(),this.hh=!1))};l.prototype.Vt=function(){this.qg||
(this.Eb.sort(e),this.qg=!0)};l.prototype.reset=function(){A(this.Eb);this.qg=!0;this.Gd.clear();this.hh=!1};l.prototype.dump=function(a){this.Dl();this.Vt();this.Eb.length&&a.push(this.Eb)};ia=l;var Q="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");jb=function(a){return 0>=a||11<=a?"source-over":Q[a-1]};kb=function(a,g,e){if(e)switch(a.Vb=e.ONE,a.Pb=e.ONE_MINUS_SRC_ALPHA,g){case 1:a.Vb=e.ONE;a.Pb=e.ONE;break;case 3:a.Vb=
e.ONE;a.Pb=e.ZERO;break;case 4:a.Vb=e.ONE_MINUS_DST_ALPHA;a.Pb=e.ONE;break;case 5:a.Vb=e.DST_ALPHA;a.Pb=e.ZERO;break;case 6:a.Vb=e.ZERO;a.Pb=e.SRC_ALPHA;break;case 7:a.Vb=e.ONE_MINUS_DST_ALPHA;a.Pb=e.ZERO;break;case 8:a.Vb=e.ZERO;a.Pb=e.ONE_MINUS_SRC_ALPHA;break;case 9:a.Vb=e.DST_ALPHA;a.Pb=e.ONE_MINUS_SRC_ALPHA;break;case 10:a.Vb=e.ONE_MINUS_DST_ALPHA,a.Pb=e.SRC_ALPHA}};lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,g){return"string"!==typeof a||"string"!==typeof g||a.length!==g.length?
!1:a===g?!0:a.toLowerCase()===g.toLowerCase()};nb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();
(function(){function h(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var g=this;this.tc=(this.Mj=/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.Rb=!!a.dc;this.ep="undefined"!==typeof window.AppMobi||
this.Rb;this.Jc=!!window.c2cocoonjs;this.Tc=!!window.c2ejecta;this.Jc&&(CocoonJS.App.onSuspended.addEventListener(function(){g.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){g.setSuspended(!1)}));this.Tc&&(document.addEventListener("pagehide",function(){g.setSuspended(!0)}),document.addEventListener("pageshow",function(){g.setSuspended(!1)}),document.addEventListener("resize",function(){g.setSize(window.innerWidth,window.innerHeight)}));this.Ea=this.Rb||this.Jc||this.Tc;this.Qh=
/edge\//i.test(navigator.userAgent);this.Oh=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Qh;this.jp=/tizen/i.test(navigator.userAgent);this.Nh=/android/i.test(navigator.userAgent)&&!this.jp&&!this.Oh&&!this.Qh;this.mp=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Oh&&!this.Qh;this.Av=/ipad/i.test(navigator.userAgent);this.yf=this.mp||this.Av||this.Tc;this.Vl=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Oh&&!this.Qh;this.dp=/amazonwebappplatform/i.test(navigator.userAgent);this.sv=/firefox/i.test(navigator.userAgent);this.vv=/safari/i.test(navigator.userAgent)&&!this.Vl&&!this.Oh&&!this.Qh;this.wv=/windows/i.test(navigator.userAgent);this.ip=this.Rh="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.kp=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.yv=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.lg=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Pj=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.am=!!window.cr_windows10;this.$l=this.kp||this.yv||this.Pj||this.am;this.qv=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Lj=this.Nh&&!this.Vl&&!this.Mj&&!this.sv&&!this.dp&&!this.Ea;
this.devicePixelRatio=1;this.be=this.tc||this.Mj||this.ep||this.Jc||this.Nh||this.yf||this.lg||this.Pj||this.qv||this.jp||this.Tc;this.be||(this.be=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Oj=!!(this.yf&&this.tc&&window.webkit);"undefined"===typeof cr_is_preview||this.Rh||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Rh=!0);this.fp="undefined"!==
typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.ro=document.getElementById("c2canvasdiv");this.H=this.Sc=null;this.Ml="(unavailable)";this.of=!1;this.mf=0;this.Oa=null;this.vj=!1;this.Gp=this.Hp=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Rb&&(window.c2runtime=
this);this.Rh&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.Lj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.G=this.width;this.F=this.height;this.ij=this.width;this.rh=this.height;this.ug=window.innerWidth;this.tg=window.innerHeight;this.T=!0;this.Sh=!1;Date.now||(Date.now=
function(){return+new Date});this.plugins=[];this.types={};this.A=[];this.Na=[];this.fm={};this.gd=[];this.Bl={};this.Wd=[];this.Mf=[];this.Nk=[];this.hl=[];this.mt=[];this.kf={};this.Xl=this.Oe=!1;this.fd=0;this.Wl=this.Zl=!1;this.cd=[];this.Ph=!1;this.Xj=this.Rm="";this.tb=null;this.de="";this.xi=this.uq=!1;this.uj=[];this.lf=this.Ke=0;this.vp=30;this.rl=this.Yh=0;this.Jf=1;this.Cb=new cb;this.se=new cb;this.ck=this.zj=this.vh=this.Ld=this.Af=this.El=this.Sj=0;this.ff=null;this.xl=[];this.Al=[];
this.pj=-1;this.im=[[]];this.hn=this.$j=0;this.sk(null);this.Zh=[];this.$h=-1;this.Bp=this.ci=0;this.em=!0;this.xh=0;this.yi=[];this.dn=this.Im=-1;this.sg=!0;this.wg=0;this.zd=!1;this.Kw=0;this.Sf=null;this.Sb=this.Fj=!1;this.Fp=new ha;this.pm=new ha;this.qm=new ha;this.gq=[];this.md=new gb([]);this.$m=new gb([]);this.Ae=[];this.Ih={};this.Ge={};this.ye={};this.$g={};this.no={};this.qp=this.Wj=this.cb=this.sb=this.pp=this.Vj=this.ta=null;this.Yg=this.cm=!1;this.Fl=[null,null];this.Zd=0;this.Cl="";
this.ie={};this.ti=this.Se=null;this.wq="";this.bk=[];this.mw()}}function k(a,g){return 128>=g?a[3]:256>=g?a[2]:512>=g?a[1]:a[0]}function b(){try{return!!window.indexedDB}catch(a){return!1}}function u(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function f(a,g,e,c){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=u;d.onerror=c;d.onsuccess=function(d){d=d.target.result;d.onerror=c;d.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:g}).onsuccess=
e}}catch(b){c(b)}}function r(a,g,e){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=u;c.onerror=e;c.onsuccess=function(c){c=c.target.result;c.onerror=e;var d=c.transaction(["saves"]).objectStore("saves").get(a);d.onsuccess=function(){d.result?g(d.result.data):g(null)}}}catch(d){e(d)}}function t(){ja("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 p(a){var g,e={};for(g in a)!a.hasOwnProperty(g)||a[g]instanceof ha||a[g]&&"undefined"!==typeof a[g].xy||"spriteCreatedDestroyCallback"!==g&&(e[g]=a[g]);return e}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;h.prototype.mw=function(){var a=this;if(this.Oj)this.zu(function(g){a.Xh(JSON.parse(g))},function(){alert("Error fetching data.js")});else{var g;this.lg?g=new ActiveXObject("Microsoft.XMLHTTP"):
g=new XMLHttpRequest;var e="data.js";if(this.kp||this.lg||this.Pj||this.am)e="data.json";g.open("GET",e,!0);var c=!1;if(!this.Ea&&"response"in g&&"responseType"in g)try{g.responseType="json",c="json"===g.responseType}catch(d){c=!1}if(!c&&"responseType"in g)try{g.responseType="text"}catch(b){}if("overrideMimeType"in g)try{g.overrideMimeType("application/json; charset=utf-8")}catch(n){}this.lg?g.onreadystatechange=function(){4===g.readyState&&a.Xh(JSON.parse(g.responseText))}:(g.onload=function(){if(c)a.Xh(g.response);
else if(a.Tc){var e=g.responseText,e=e.substr(e.indexOf("{"));a.Xh(JSON.parse(e))}else a.Xh(JSON.parse(g.responseText))},g.onerror=function(a){ka("Error requesting "+e+":");ka(a)});g.send()}};h.prototype.jv=function(){var a=this,g,e,c,d,b,n,l,v,m;this.wf=(!this.Ea||this.Tc||this.tc)&&this.Yw&&!this.Lj;0===this.Yb&&this.yf&&(this.wf=!1);this.devicePixelRatio=this.wf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Mb();0<this.Yb&&
this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(g){g.preventDefault();a.Ov();ja("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.H.Hy();a.H.Pg(a.H.width,a.H.height,!0);a.sb=null;a.cb=null;a.Fl[0]=null;a.Fl[1]=null;a.Pv();a.T=!0;ja("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Tt&&(this.Jc||this.Tc||!this.Ea)&&(g={alpha:!0,
depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.Sc=this.canvas.getContext("webgl2",g)||this.canvas.getContext("webgl",g)||this.canvas.getContext("experimental-webgl",g))}catch(q){}if(this.Sc){if(g=this.Sc.getExtension("WEBGL_debug_renderer_info"))this.Ml=this.Sc.getParameter(g.UNMASKED_RENDERER_WEBGL)+" ["+this.Sc.getParameter(g.UNMASKED_VENDOR_WEBGL)+"]";this.of&&(this.Ml+=" [front-to-back enabled]");this.Ea||(this.Kb=document.createElement("canvas"),
jQuery(this.Kb).appendTo(this.canvas.parentNode),this.Kb.oncontextmenu=function(){return!1},this.Kb.onselectstart=function(){return!1},this.Kb.width=Math.round(this.ij*this.devicePixelRatio),this.Kb.height=Math.round(this.rh*this.devicePixelRatio),jQuery(this.Kb).css({width:this.ij+"px",height:this.rh+"px"}),this.Yp(),this.Bm=this.Kb.getContext("2d"));this.H=new ba.zx(this.Sc,this.be,this.of);this.H.Pg(this.canvas.width,this.canvas.height);this.H.zy=0!==this.Mt;this.Oa=null;g=0;for(e=this.A.length;g<
e;g++)for(b=this.A[g],c=0,d=b.M.length;c<d;c++)l=b.M[c],l.gb=this.H.Uo(l.id),l.Xe=this.H.Zp(l.gb),this.Yg=this.Yg||this.H.rk(l.gb);g=0;for(e=this.gd.length;g<e;g++){v=this.gd[g];c=0;for(d=v.M.length;c<d;c++)l=v.M[c],l.gb=this.H.Uo(l.id),l.Xe=this.H.Zp(l.gb);v.od();c=0;for(d=v.R.length;c<d;c++){m=v.R[c];b=0;for(n=m.M.length;b<n;b++)l=m.M[b],l.gb=this.H.Uo(l.id),l.Xe=this.H.Zp(l.gb),this.Yg=this.Yg||this.H.rk(l.gb);m.od()}}}else{if(0<this.Yb&&this.Rb){this.canvas=null;document.oncontextmenu=function(){return!1};
document.onselectstart=function(){return!1};this.Oa=AppMobi.canvas.getContext("2d");try{this.Oa.samplingMode=this.Ja?"smooth":"sharp",this.Oa.globalScale=1,this.Oa.HTML5CompatibilityMode=!0,this.Oa.imageSmoothingEnabled=this.Ja}catch(p){}0!==this.width&&0!==this.height&&(this.Oa.width=this.width,this.Oa.height=this.height)}this.Oa||(this.Jc?(g={antialias:!!this.Ja,alpha:!0},this.Oa=this.canvas.getContext("2d",g)):(g={alpha:!0},this.Oa=this.canvas.getContext("2d",g)),this.zk(this.Oa,this.Ja));this.Bm=
this.Kb=null}this.Eq=function(g){a.Gb(!1,g)};window==window.top||this.Ea||this.$l||this.lg||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Jc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ja("Reloading for continuous preview"),this.Xj="__c2_continuouspreview",this.xi=!0),this.Yv&&!this.be&&(jQuery(window).focus(function(){a.setSuspended(!1)}),
jQuery(window).blur(function(){var g=window.parent;g&&g.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Fg()});this.Ea||(g=function(a){if(nb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(g){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",g):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",
g):document.addEventListener("touchstart",g),document.addEventListener("mousedown",g));0===this.Yb&&this.wf&&1<this.devicePixelRatio&&this.setSize(this.wb,this.ub,!0);this.Jq();this.bv();this.go();this.Y={}};h.prototype.setSize=function(a,g,e){var c=0,d=0,b=0,n=0,n=0;if(this.ug!==a||this.tg!==g||e){this.ug=a;this.tg=g;var l=this.Yb;if((b=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.zd)&&!this.tc)||0!==this.Yb||e)b&&0<this.Zd&&(l=this.Zd),
e=this.devicePixelRatio,4<=l?(b=this.wb/this.ub,a/g>b?(b*=g,5===l?(n=b*e/this.wb,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),b=this.wb*n/e,n=this.ub*n/e,c=(a-b)/2,d=(g-n)/2,a=b,g=n):(c=(a-b)/2,a=b)):(n=a/b,5===l?(n=n*e/this.ub,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),b=this.wb*n/e,n=this.ub*n/e,c=(a-b)/2,d=(g-n)/2,a=b):d=(g-n)/2,g=n)):this.Rh&&this.zd&&0===this.Lo&&(c=Math.floor((a-this.wb)/2),d=Math.floor((g-this.ub)/2),a=this.wb,g=this.ub),2>l&&(this.jh=e),this.ij=Math.round(a),this.rh=Math.round(g),
this.width=Math.round(a*e),this.height=Math.round(g*e),this.T=!0,this.Tq?(this.G=this.width,this.F=this.height,this.Fc=!0):this.width<this.wb&&this.height<this.ub||1===l?(this.G=this.width,this.F=this.height,this.Fc=!0):(this.G=this.wb,this.F=this.ub,this.Fc=!1,2===l?(b=this.wb/this.ub,l=this.ug/this.tg,l<b?this.G=this.F*l:l>b&&(this.F=this.G/l)):3===l&&(b=this.wb/this.ub,l=this.ug/this.tg,l>b?this.G=this.F*l:l<b&&(this.F=this.G/l))),this.ro&&!this.Ea&&(jQuery(this.ro).css({width:Math.round(a)+"px",
height:Math.round(g)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(d)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(g)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*e),this.canvas.height=Math.round(g*e),this.Tc?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(d)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(g)+"px"):this.wf&&!this.Ea&&(this.canvas.style.width=
Math.round(a)+"px",this.canvas.style.height=Math.round(g)+"px")),this.Kb&&(this.Kb.width=Math.round(a*e),this.Kb.height=Math.round(g*e),this.Kb.style.width=this.ij+"px",this.Kb.style.height=this.rh+"px"),this.H&&this.H.Pg(Math.round(a*e),Math.round(g*e)),this.Rb&&this.Oa&&(this.Oa.width=Math.round(a),this.Oa.height=Math.round(g)),this.Oa&&this.zk(this.Oa,this.Ja),this.Jq(),this.mp&&!this.tc&&window.scrollTo(0,0)}};h.prototype.Jq=function(){if(this.tt&&0!==this.Am){var a="portrait";2===this.Am&&(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(g){console&&console.warn&&console.warn("Failed to lock orientation: ",g)}}};h.prototype.Ov=function(){this.H.yy();this.cm=!0;var a,g,e;a=0;for(g=this.A.length;a<g;a++)e=
this.A[a],e.ek&&e.ek()};h.prototype.Pv=function(){this.cm=!1;var a,g,e;a=0;for(g=this.A.length;a<g;a++)e=this.A[a],e.xm&&e.xm()};h.prototype.Yp=function(){if(!this.Ea){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.zd)&&!this.tc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Kb).css(a)}};var q=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||
window.msCancelAnimationFrame||window.oCancelAnimationFrame;h.prototype.setSuspended=function(a){var g;if(a&&!this.Sh)for(ja("[Construct 2] Suspending"),this.Sh=!0,-1!==this.Im&&q&&q(this.Im),-1!==this.dn&&clearTimeout(this.dn),a=0,g=this.yi.length;a<g;a++)this.yi[a](!0);else if(!a&&this.Sh){ja("[Construct 2] Resuming");this.Sh=!1;this.Sj=Za();this.Af=Za();a=this.Yh=this.zj=0;for(g=this.yi.length;a<g;a++)this.yi[a](!1);this.Gb(!1)}};h.prototype.io=function(a){this.yi.push(a)};h.prototype.ve=function(a){return this.bk[a]};
h.prototype.Xh=function(a){a&&a.project||ka("Project model unavailable");a=a.project;this.name=a[0];this.Ko=a[1];this.Yb=a[12];this.Lo=a[12];this.wb=a[10];this.ub=a[11];this.Up=this.wb/2;this.Vp=this.ub/2;this.Ea&&!this.Tc&&(4<=a[12]||0===a[12])&&(ja("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Lo=this.Yb=3);this.qn=a[18];this.Te=a[19];if(0===this.Te){var g=new Image;g.crossOrigin="anonymous";this.nq(g,"loading-logo.png");
this.Se={ak:g}}else if(4===this.Te){g=new Image;g.src="";var e=new Image;e.src="";var c=new Image;c.src="";var d=new Image;d.src="";var b=new Image;b.src="";var n=new Image;n.src="";var l=new Image;l.src="";var v=new Image;v.src="";var m=new Image;m.src="";var q=new Image;q.src="";var p=new Image;p.src="";var k=new Image;k.src="";this.Se={ak:[g,e,c,d],ew:[b,n,l,v],hx:[m,q,p,k]}}this.ci=a[21];this.bk=jc();this.Jd=new G(this);g=0;for(e=a[2].length;g<e;g++)l=a[2][g],c=this.ve(l[0]),ob(l,c.prototype),
v=new c(this),v.Ek=l[1],v.Re=l[2],v.Jy=l[5],v.xp=l[9],v.N&&v.N(),this.plugins.push(v);this.bk=jc();g=0;for(e=a[3].length;g<e;g++){l=a[3][g];b=this.ve(l[1]);v=null;c=0;for(d=this.plugins.length;c<d;c++)if(this.plugins[c]instanceof b){v=this.plugins[c];break}m=new v.ya(v);m.name=l[0];m.J=l[2];m.Ul=l[3].slice(0);m.$w=l[3].length;m.ut=l[4];m.Eu=l[5];m.X=l[11];m.J?(m.zg=[],m.Xd=this.xh++,m.Ga=null):(m.zg=null,m.Xd=-1,m.Ga=[]);m.sj=null;m.dg=null;m.Eo=null;m.Zb=!1;m.rc=null;l[6]?(m.an=l[6][0],m.Cq=l[6][1],
m.bn=l[6][2]):(m.an=null,m.Cq=0,m.bn=0);l[7]?m.qc=l[7]:m.qc=null;m.index=g;m.e=[];m.lj=[];m.pe=[new pb(m)];m.td=0;m.Qc=null;m.Gt=0;m.Sg=!0;m.Ok=qb;m.Ju=rb;m.Ou=ub;m.W=vb;m.ji=wb;m.ki=xb;m.We=yb;m.Bj=zb;m.Gl=Ab;m.Il=Bb;m.Rd=Cb;m.Jl=Db;m.fj=new hb(this.wb,this.ub);m.Ti=!0;m.Ui=!1;m.Y={};m.toString=Eb;m.Na=[];c=0;for(d=l[8].length;c<d;c++){q=l[8][c];p=this.ve(q[1]);k=null;b=0;for(n=this.Na.length;b<n;b++)if(this.Na[b]instanceof p){k=this.Na[b];break}k||(k=new p(this),k.yp=[],k.nm=new ha,k.N&&k.N(),this.Na.push(k));
-1===k.yp.indexOf(m)&&k.yp.push(m);b=new k.ya(k,m);b.name=q[0];b.X=q[2];b.N();m.Na.push(b)}m.global=l[9];m.Yl=l[10];m.M=[];c=0;for(d=l[12].length;c<d;c++)m.M.push({id:l[12][c][0],name:l[12][c][1],gb:-1,Xe:!1,Ua:!0,index:c});m.dz=l[13];this.qn&&!m.J&&!m.Yl&&v.Re||m.N();m.name&&(this.types[m.name]=m);this.A.push(m);v.Ek&&(c=new v.ja(m),c.uid=this.ci++,c.bq=this.Bp++,c.uf=0,c.Gh=Fb,c.toString=Kb,c.q=l[14],c.N(),m.e.push(c),this.ie[c.uid.toString()]=c)}g=0;for(e=a[4].length;g<e;g++)for(b=a[4][g],n=this.A[b[0]],
c=1,d=b.length;c<d;c++)l=this.A[b[c]],l.Ga.push(n),n.zg.push(l);g=0;for(e=a[28].length;g<e;g++){b=a[28][g];n=[];c=0;for(d=b.length;c<d;c++)n.push(this.A[b[c]]);c=0;for(d=n.length;c<d;c++)n[c].Zb=!0,n[c].rc=n}if(0<this.xh)for(g=0,e=this.A.length;g<e;g++)if(l=this.A[g],!l.J&&l.Ga.length){l.sj=Array(this.xh);l.dg=Array(this.xh);l.Eo=Array(this.xh);m=[];c=k=p=q=0;for(d=l.Ga.length;c<d;c++)for(v=l.Ga[c],l.sj[v.Xd]=q,q+=v.$w,l.dg[v.Xd]=p,p+=v.ut,l.Eo[v.Xd]=k,k+=v.Eu,b=0,n=v.M.length;b<n;b++)m.push(Aa({},
v.M[b]));l.M=m.concat(l.M);c=0;for(d=l.M.length;c<d;c++)l.M[c].index=c}g=0;for(e=a[5].length;g<e;g++)l=a[5][g],c=new Lb(this,l),this.fm[c.name]=c,this.gd.push(c);g=0;for(e=a[6].length;g<e;g++)l=a[6][g],c=new Mb(this,l),this.Bl[c.name]=c,this.Wd.push(c);g=0;for(e=this.Wd.length;g<e;g++)this.Wd[g].Ya();g=0;for(e=this.Wd.length;g<e;g++)this.Wd[g].mn();g=0;for(e=this.Nk.length;g<e;g++)this.Nk[g].Ya();A(this.Nk);this.qt=a[7];this.Cl=a[8];this.hd=a[9];this.jh=1;this.Tt=a[13];this.Ja=a[14];this.uo=a[15];
this.Yw=a[17];this.Am=a[20];this.tt=0<this.Am;this.Yv=a[22];this.Fc=this.Tq=a[23];this.Mt=a[24];this.fw=a[25];this.of=a[27]&&!this.Oh;this.Fk=Date.now();A(this.bk);this.jv()};var a=!1,c=0,l=[];h.prototype.iw=function(a,g){function e(){c--;d.rp()}var d=this;a.addEventListener("load",e);a.addEventListener("error",e);l.push([a,g]);this.rp()};h.prototype.rp=function(){for(var a;l.length&&100>c;)c++,a=l.shift(),this.nq(a[0],a[1])};h.prototype.gx=function(g,e){g.cocoonLazyLoad=!0;g.onerror=function(e){a=
g.po=!0;console&&console.error&&console.error("Error loading image '"+g.src+"': ",e)};this.Tc?g.src=e:g.src||("undefined"!==typeof XAPKReader?XAPKReader.get(e,function(a){g.src=a},function(c){a=g.po=!0;console&&console.error&&console.error("Error extracting image '"+e+"' from expansion file: ",c)}):(g.crossOrigin="anonymous",this.iw(g,e)));this.Mf.push(g)};h.prototype.Bu=function(a){var g,e;g=0;for(e=this.Mf.length;g<e;g++)if(this.Mf[g].Dt===a)return this.Mf[g];return null};var e=0,n=!1;h.prototype.bv=
function(){this.Sf&&(e=this.Sf.Gw(this.qt))};h.prototype.lo=function(){var a=e,g=0,c=0,d=!0,b,l,c=0;for(b=this.Mf.length;c<b;c++){l=this.Mf[c];var m=l.Ct;if(!m||0>=m)m=5E4;a+=m;l.src&&(l.complete||l.loaded)&&!l.po?g+=m:d=!1}d&&this.fw&&this.Sf&&(n||(this.Sf.Lw(),n=!0),c=this.Sf.Pu(),g+=c,c<e&&(d=!1));this.U=0==a?1:g/a;return d};var m=!1;h.prototype.go=function(){if(this.Oa||this.H){var g=this.Oa||this.Bm;this.Kb&&this.Yp();var e=window.innerWidth,c=window.innerHeight;this.ug===e&&this.tg===c||this.setSize(e,
c);this.U=0;this.op=-1;var b=this;if(this.lo()&&(4!==this.Te||m))this.cv();else{c=Date.now()-this.Fk;if(g){var l=this.width,n=this.height,e=this.devicePixelRatio;if(3>this.Te&&(this.Jc||500<=c&&this.op!=this.U)){g.clearRect(0,0,l,n);var c=l/2,n=n/2,l=0===this.Te&&this.Se.ak.complete,v=40*e,q=0,p=80*e,k;if(l){var h=this.Se.ak,p=h.width*e;k=h.height*e;v=p/2;q=k/2;g.drawImage(h,ua(c-v),ua(n-q),p,k)}1>=this.Te?(c=ua(c-v)+.5,n=ua(n+(q+(l?12*e:0)))+.5,g.fillStyle=a?"red":"DodgerBlue",g.fillRect(c,n,Math.floor(p*
this.U),6*e),g.strokeStyle="black",g.strokeRect(c,n,p,6*e),g.strokeStyle="white",g.strokeRect(c-1*e,n-1*e,p+2*e,8*e)):2===this.Te&&(g.font=this.Tc?"12pt ArialMT":"12pt Arial",g.fillStyle=a?"#f00":"#999",g.cz="middle",e=Math.round(100*this.U)+"%",l=g.measureText?g.measureText(e):null,g.fillText(e,c-(l?l.width:0)/2,n));this.op=this.U}else if(4===this.Te){this.Rt(g);d?d(function(){b.go()}):setTimeout(function(){b.go()},16);return}}setTimeout(function(){b.go()},this.Jc?10:100)}}};var S=-1,g="undefined"===
typeof cr_is_preview?200:0,v=!0,R=!1,ga=0,F=0,K="undefined"===typeof cr_is_preview?3E3:0,I=null,w=null,Q=0;h.prototype.Rt=function(e){if(!m){for(var c=Math.ceil(this.width),d=Math.ceil(this.height),b=this.Se.ak,l=this.Se.ew,n=this.Se.hx,q=0;4>q;++q)if(!b[q].complete||!l[q].complete||!n[q].complete)return;0===Q&&(S=Date.now());var q=Date.now(),p=!1,h=e,f,t;v||R?(e.clearRect(0,0,c,d),I&&I.width===c&&I.height===d||(I=document.createElement("canvas"),I.width=c,I.height=d,w=I.getContext("2d")),h=w,p=!0,
v&&1===Q&&(S=Date.now())):e.globalAlpha=1;h.fillStyle="#333333";h.fillRect(0,0,c,d);256<this.rh?(f=Ha(.22*d,105,.6*c),t=.25*f,h.drawImage(k(l,f),.5*c-f/2,.2*d-t/2,f,t),t=f=Math.min(.395*d,.95*c),h.drawImage(k(b,f),.5*c-f/2,.485*d-t/2,f,t),f=Ha(.22*d,105,.6*c),t=.25*f,h.drawImage(k(n,f),.5*c-f/2,.868*d-t/2,f,t),h.fillStyle="#3C3C3C",f=c,t=Math.max(.005*d,2),h.fillRect(0,.8*d-t/2,f,t),h.fillStyle=a?"red":"#E0FF65",f=c*this.U,h.fillRect(.5*c-f/2,.8*d-t/2,f,t)):(t=f=.55*d,h.drawImage(k(b,f),.5*c-f/2,
.45*d-t/2,f,t),h.fillStyle="#3C3C3C",f=c,t=Math.max(.005*d,2),h.fillRect(0,.85*d-t/2,f,t),h.fillStyle=a?"red":"#E0FF65",f=c*this.U,h.fillRect(.5*c-f/2,.85*d-t/2,f,t));p&&(v?e.globalAlpha=0===Q?0:Math.min((q-S)/300,1):R&&(e.globalAlpha=Math.max(1-(q-F)/300,0)),e.drawImage(I,0,0,c,d));v&&300<=q-S&&2<=Q&&(v=!1,ga=q);!v&&q-ga>=K&&!R&&1<=this.U&&(R=!0,F=q);if(R&&q-F>=300+g||"undefined"!==typeof cr_is_preview&&1<=this.U&&500>Date.now()-S)m=!0,R=v=!1,this.Se=w=I=null;++Q}};h.prototype.cv=function(){this.Kb&&
(this.canvas.parentNode.removeChild(this.Kb),this.Kb=this.Bm=null);this.Fk=Date.now();this.Af=Za();var a,g,e;if(this.qn)for(a=0,g=this.A.length;a<g;a++)e=this.A[a],e.J||e.Yl||!e.pa.Re||e.N();else this.sg=!1;a=0;for(g=this.gd.length;a<g;a++)this.gd[a].Et();2<=this.Yb&&(a=this.wb/this.ub,g=this.width/this.height,this.jh=2!==this.Yb&&g>a||2===this.Yb&&g<a?this.height/this.ub:this.width/this.wb);this.Ko?this.fm[this.Ko].Ym():this.gd[0].Ym();this.qn||(this.wg=1,this.trigger(G.prototype.g.Sk,null),window.C2_RegisterSW&&
window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(g=this.A.length;a<g;a++)e=this.A[a],e.Ip&&e.Ip();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Gb(!1);this.Rb&&AppMobi.webview.execute("onGameReady();")};h.prototype.Gb=function(a,g,e){if(this.ta){var c=Za();if(e||!this.Sh||a){a||(d?this.Im=d(this.Eq):this.dn=setTimeout(this.Eq,this.be?1:16));g=g||c;var b=this.Yb;((e=(document.mozFullScreen||
document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.tc)||this.zd)&&0<this.Zd&&(b=this.Zd);if(0<b){var b=window.innerWidth,l=window.innerHeight;this.ug===b&&this.tg===l||this.setSize(b,l)}this.Ea||(e?this.vj||(this.vj=!0):this.vj?(this.vj=!1,0===this.Yb&&this.setSize(Math.round(this.Hp/this.devicePixelRatio),Math.round(this.Gp/this.devicePixelRatio),!0)):(this.Hp=this.width,this.Gp=this.height));this.sg&&(e=this.lo(),this.wg=this.U,e&&(this.sg=!1,this.U=1,this.trigger(G.prototype.g.Sk,
null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Fv(g);!this.T&&!this.Jc||this.cm||this.xi||a||(this.T=!1,this.H?this.Dc():this.dd(),this.ti&&(this.canvas&&this.canvas.toDataURL&&(this.wq=this.canvas.toDataURL(this.ti[0],this.ti[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.wq),this.trigger(G.prototype.g.Ur,null)),this.ti=null));this.Gy||(this.Ld++,this.vh++,this.zj++);this.Yh+=Za()-c}}};h.prototype.Fv=function(a){var g,e,c,d,b,l,n,m;1E3<=a-this.Af&&(this.Af+=1E3,1E3<=a-this.Af&&(this.Af=
a),this.El=this.zj,this.zj=0,this.rl=this.Yh,this.Yh=0);g=0;0!==this.Sj&&(g=a-this.Sj,0>g&&(g=0),this.lf=g/=1E3,.5<this.lf?this.lf=0:this.lf>1/this.vp&&(this.lf=1/this.vp));this.Sj=a;this.Ke=this.lf*this.Jf;this.Cb.add(this.Ke);this.se.add(g);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.zd)&&!this.tc;2<=this.Yb||a&&0<this.Zd?(g=this.wb/this.ub,e=this.width/this.height,c=this.Yb,a&&0<this.Zd&&(c=this.Zd),this.jh=2!==c&&e>g||2===c&&
e<g?this.height/this.ub:this.width/this.wb,this.ta&&(this.ta.jq(this.ta.scrollX),this.ta.kq(this.ta.scrollY))):this.jh=this.wf?this.devicePixelRatio:1;this.Mb();this.fd++;this.Jd.rw();this.fd--;this.Mb();this.fd++;e=this.Fp.bf();a=0;for(g=e.length;a<g;a++)e[a].Ty();a=0;for(g=this.A.length;a<g;a++)if(l=this.A[a],!l.J&&(l.Na.length||l.Ga.length))for(e=0,c=l.e.length;e<c;e++)for(n=l.e[e],d=0,b=n.L.length;d<b;d++)n.L[d].Gb();a=0;for(g=this.A.length;a<g;a++)if(l=this.A[a],!l.J&&(l.Na.length||l.Ga.length))for(e=
0,c=l.e.length;e<c;e++)for(n=l.e[e],d=0,b=n.L.length;d<b;d++)m=n.L[d],m.dw&&m.dw();e=this.pm.bf();a=0;for(g=e.length;a<g;a++)e[a].Gb();this.fd--;this.dv();for(a=0;this.ff&&10>a++;)this.Co(this.ff);a=0;for(g=this.Wd.length;a<g;a++)this.Wd[a].Ql=!1;this.ta.pf&&this.ta.pf.fb();A(this.gq);this.em=!1;this.fd++;a=0;for(g=this.A.length;a<g;a++)if(l=this.A[a],!l.J&&(l.Na.length||l.Ga.length))for(e=0,c=l.e.length;e<c;e++)for(n=l.e[e],d=0,b=n.L.length;d<b;d++)m=n.L[d],m.cn&&m.cn();e=this.qm.bf();a=0;for(g=
e.length;a<g;a++)e[a].cn();this.fd--};h.prototype.Fg=function(){var a,g,e,c,d,b,l,n,m;a=0;for(g=this.A.length;a<g;a++)if(l=this.A[a],!l.J)for(e=0,c=l.e.length;e<c;e++)if(n=l.e[e],n.Fg&&n.Fg(),n.L)for(d=0,b=n.L.length;d<b;d++)m=n.L[d],m.Fg&&m.Fg()};h.prototype.Co=function(a){var g=this.ta;this.ta.Mw();var e,c,d;if(this.H)for(e=0,c=this.A.length;e<c;e++)d=this.A[e],d.J||!d.ln||d.global&&0!==d.e.length||-1!==a.Lh.indexOf(d)||d.ln();g==a&&A(this.Jd.oc);A(this.gq);this.hq(!0);a.Ym();this.hq(!1);this.em=
this.T=!0;this.Mb()};h.prototype.hq=function(a){var g,e,c,d,b,l,n,m,v;g=0;for(e=this.Na.length;g<e;g++)c=this.Na[g],a?c.di&&c.di():c.ei&&c.ei();g=0;for(e=this.A.length;g<e;g++)if(c=this.A[g],c.global||c.pa.Ek)for(d=0,b=c.e.length;d<b;d++)if(l=c.e[d],a?l.di&&l.di():l.ei&&l.ei(),l.L)for(n=0,m=l.L.length;n<m;n++)v=l.L[n],a?v.di&&v.di():v.ei&&v.ei()};h.prototype.Vg=function(a){this.pm.add(a)};h.prototype.Qw=function(a){this.qm.add(a)};h.prototype.Ch=function(a){return a&&-1!==a.bi?this.lf*a.bi:this.Ke};
h.prototype.dd=function(){this.ta.dd(this.Oa);this.Rb&&this.Oa.present()};h.prototype.Dc=function(){this.of&&(this.mf=1,this.ta.Zf(this.H));this.ta.Dc(this.H);this.H.Sy()};h.prototype.kt=function(a){a&&this.xl.push(a)};h.prototype.Dj=function(a){a=a.toString();return this.ie.hasOwnProperty(a)?this.ie[a]:null};var H=[];h.prototype.ue=function(a){var g,e;g=a.type.name;var c=null;if(this.kf.hasOwnProperty(g)){if(c=this.kf[g],c.contains(a))return}else c=H.length?H.pop():new ha,this.kf[g]=c;c.add(a);this.Oe=
!0;if(a.Zb)for(g=0,e=a.siblings.length;g<e;g++)this.ue(a.siblings[g]);this.Xl&&c.Zg.push(a);this.Wl||(this.fd++,this.trigger(Object.getPrototypeOf(a.type.pa).g.Vr,a),this.fd--)};h.prototype.Mb=function(){if(this.Oe){var a,g,e,c,d,b;this.Xl=!0;e=0;for(d=this.cd.length;e<d;++e)for(a=this.cd[e],g=a.type,g.e.push(a),c=0,b=g.Ga.length;c<b;++c)g.Ga[c].e.push(a),g.Ga[c].Sg=!0;A(this.cd);this.Jr();Ya(this.kf);this.Oe=this.Xl=!1}};h.prototype.Jr=function(){for(var a in this.kf)this.kf.hasOwnProperty(a)&&this.br(this.kf[a])};
h.prototype.br=function(a){var g=a.bf(),e=g[0].type,c,d,b,l,n,m;$a(e.e,a);e.Sg=!0;0===e.e.length&&(e.Ui=!1);c=0;for(d=e.Ga.length;c<d;++c)m=e.Ga[c],$a(m.e,a),m.Sg=!0;c=0;for(d=this.Jd.oc.length;c<d;++c)if(n=this.Jd.oc[c],n.cc.hasOwnProperty(e.index)&&$a(n.cc[e.index].$d,a),!e.J)for(b=0,l=e.Ga.length;b<l;++b)m=e.Ga[b],n.cc.hasOwnProperty(m.index)&&$a(n.cc[m.index].$d,a);if(n=g[0].k){if(n.Nc)for(b=n.e,c=0,d=b.length;c<d;++c)l=b[c],a.contains(l)&&(l.za(),n.Lb.update(l,l.lc,null),l.lc.set(0,0,-1,-1));
$a(n.e,a);n.qi(0)}for(c=0;c<g.length;++c)this.$q(g[c],e);a.clear();H.push(a);this.T=!0};h.prototype.$q=function(a,g){var e,c,d;e=0;for(c=this.xl.length;e<c;++e)this.xl[e](a);a.He&&g.fj.update(a,a.He,null);(e=a.k)&&e.Kg(a,!0);if(a.L)for(e=0,c=a.L.length;e<c;++e)d=a.L[e],d.Dg&&d.Dg(),d.behavior.nm.remove(a);this.Fp.remove(a);this.pm.remove(a);this.qm.remove(a);a.Dg&&a.Dg();this.ie.hasOwnProperty(a.uid.toString())&&delete this.ie[a.uid.toString()];this.ck--;100>g.lj.length&&g.lj.push(a)};h.prototype.sl=
function(a,g,e,c){if(a.J){var d=ua(Math.random()*a.zg.length);return this.sl(a.zg[d],g,e,c)}return a.Qc?this.Ie(a.Qc,g,!1,e,c,!1):null};var O=[];h.prototype.Ie=function(a,g,e,c,d,b){var l,n,m,v;if(!a)return null;var q=this.A[a[1]],p=q.pa.Re;if(this.sg&&p&&!q.Yl||p&&!this.H&&11===a[0][11])return null;var k=g;p||(g=null);var f;q.lj.length?(f=q.lj.pop(),f.zc=!0,q.pa.ja.call(f,q)):(f=new q.pa.ja(q),f.zc=!1);!e||b||this.ie.hasOwnProperty(a[2].toString())?f.uid=this.ci++:f.uid=a[2];this.ie[f.uid.toString()]=
f;f.bq=this.Bp++;f.uf=q.e.length;l=0;for(n=this.cd.length;l<n;++l)this.cd[l].type===q&&f.uf++;f.Gh=Fb;f.toString=Kb;m=a[3];if(f.zc)Ya(f.Y);else{f.Y={};if("undefined"!==typeof cr_is_preview)for(f.bp=[],f.bp.length=m.length,l=0,n=m.length;l<n;l++)f.bp[l]=m[l][1];f.rb=[];f.rb.length=m.length}l=0;for(n=m.length;l<n;l++)f.rb[l]=m[l][0];if(p){var h=a[0];f.x=la(c)?h[0]:c;f.y=la(d)?h[1]:d;f.z=h[2];f.width=h[3];f.height=h[4];f.depth=h[5];f.j=h[6];f.opacity=h[7];f.gc=h[8];f.hc=h[9];f.Nb=h[10];l=h[11];!this.H&&
q.M.length&&(f.Nb=l);f.ph=jb(f.Nb);this.Sc&&kb(f,f.Nb,this.Sc);if(f.zc){l=0;for(n=h[12].length;l<n;l++)for(m=0,v=h[12][l].length;m<v;m++)f.Pa[l][m]=h[12][l][m];f.Va.set(0,0,0,0);f.He.set(0,0,-1,-1);f.lc.set(0,0,-1,-1);f.Xb.ri(f.Va);A(f.ll)}else{f.Pa=h[12].slice(0);l=0;for(n=f.Pa.length;l<n;l++)f.Pa[l]=h[12][l].slice(0);f.ka=[];f.xe=[];f.xe.length=q.M.length;f.Va=new xa(0,0,0,0);f.He=new xa(0,0,-1,-1);f.lc=new xa(0,0,-1,-1);f.Xb=new ya;f.ll=[];f.Ra=Nb;f.uy=Ob;f.Ob=Pb;f.za=Qb;f.Xw=Rb;f.Pq=Sb;f.yd=Tb}f.Wg=
!1;f.Tw=0;f.Sw=0;f.Rw=null;14===h.length&&(f.Wg=!0,f.Tw=h[13][0],f.Sw=h[13][1],f.Rw=h[13][2]);l=0;for(n=q.M.length;l<n;l++)f.xe[l]=!0;f.ne=!0;f.od=Ub;f.od();f.Qq=!!f.ka.length;f.kl=!0;f.ml=!0;q.Ti=!0;f.visible=!0;f.bi=-1;f.k=g;f.pd=g.e.length;f.mf=0;"undefined"===typeof f.ma&&(f.ma=null);this.T=f.gf=!0}var t;A(O);l=0;for(n=q.Ga.length;l<n;l++)O.push.apply(O,q.Ga[l].Na);O.push.apply(O,q.Na);if(f.zc)for(l=0,n=O.length;l<n;l++){var R=O[l];t=f.L[l];t.zc=!0;R.behavior.ja.call(t,R,f);h=a[4][l];m=0;for(v=
h.length;m<v;m++)t.q[m]=h[m];t.N();R.behavior.nm.add(f)}else for(f.L=[],l=0,n=O.length;l<n;l++)R=O[l],t=new R.behavior.ja(R,f),t.zc=!1,t.q=a[4][l].slice(0),t.N(),f.L.push(t),R.behavior.nm.add(f);h=a[5];if(f.zc)for(l=0,n=h.length;l<n;l++)f.q[l]=h[l];else f.q=h.slice(0);this.cd.push(f);this.Oe=!0;g&&(g.ih(f,!0),1!==g.jc||1!==g.kc)&&(q.Ui=!0);this.ck++;if(q.Zb){if(f.Zb=!0,f.zc?A(f.siblings):f.siblings=[],!e&&!b){l=0;for(n=q.rc.length;l<n;l++)if(q.rc[l]!==q){if(!q.rc[l].Qc)return null;f.siblings.push(this.Ie(q.rc[l].Qc,
k,!1,p?f.x:c,p?f.y:d,!0))}l=0;for(n=f.siblings.length;l<n;l++)for(f.siblings[l].siblings.push(f),m=0;m<n;m++)l!==m&&f.siblings[l].siblings.push(f.siblings[m])}}else f.Zb=!1,f.siblings=null;f.N();l=0;for(n=f.L.length;l<n;l++)f.L[l].bw&&f.L[l].bw();return f};h.prototype.fg=function(a){var g,e;g=0;for(e=this.ta.R.length;g<e;g++){var c=this.ta.R[g];if(mb(c.name,a))return c}return null};h.prototype.xd=function(a){a=ua(a);0>a&&(a=0);a>=this.ta.R.length&&(a=this.ta.R.length-1);return this.ta.R[a]};h.prototype.Eh=
function(a){return ma(a)?this.xd(a):this.fg(a.toString())};h.prototype.pl=function(a){var g,e;g=0;for(e=a.length;g<e;g++)a[g].W().ga=!0};h.prototype.ji=function(a){var g,e;g=0;for(e=a.length;g<e;g++)a[g].ji()};h.prototype.ki=function(a){var g,e;g=0;for(e=a.length;g<e;g++)a[g].ki()};h.prototype.We=function(a){var g,e;g=0;for(e=a.length;g<e;g++)a[g].We()};h.prototype.Nq=function(a){if(a.Ti){var g,e,c=a.e;g=0;for(e=c.length;g<e;++g)c[g].Pq();c=this.cd;g=0;for(e=c.length;g<e;++g)c[g].type===a&&c[g].Pq();
a.Ti=!1}};h.prototype.Iu=function(a,g,e,c){var d,l,b=a?1!==a.jc||1!==a.kc:!1;if(g.J)for(a=0,d=g.zg.length;a<d;++a)l=g.zg[a],b||l.Ui?Ea(c,l.e):(this.Nq(l),l.fj.tk(e,c));else b||g.Ui?Ea(c,g.e):(this.Nq(g),g.fj.tk(e,c))};h.prototype.Ug=function(a,g,e,c){var d=a.W(),l,b,n,m,v=this.ab().ob.Kc,q,p,f;if(d.ga)for(c||(d.ga=!1,A(d.e)),l=0,m=a.e.length;l<m;l++)if(n=a.e[l],n.za(),q=n.k.Wa(g,e,!0),p=n.k.Wa(g,e,!1),n.Ob(q,p)){if(c)return!1;d.e.push(n)}else v&&d.S.push(n);else{b=0;f=v?d.S:d.e;l=0;for(m=f.length;l<
m;l++)if(n=f[l],n.za(),q=n.k.Wa(g,e,!0),p=n.k.Wa(g,e,!1),n.Ob(q,p)){if(c)return!1;v?d.e.push(n):(d.e[b]=d.e[l],b++)}c||(f.length=b)}a.Rd();return c?!0:d.Pl()};h.prototype.Pw=function(a,g){if(!(a&&g&&a!==g&&a.gf&&g.gf))return!1;a.za();g.za();var e=a.k,c=g.k,d,l,b,n,m,v,q,p;if(e===c||e.jc===c.jc&&c.kc===c.kc&&e.scale===c.scale&&e.j===c.j&&e.Wb===c.Wb){if(!a.Va.kv(g.Va)||!a.Xb.cp(g.Xb)||a.Wg&&g.Wg)return!1;if(a.Wg)return this.Bq(a,g);if(g.Wg)return this.Bq(g,a);q=a.ma&&!a.ma.mg();d=g.ma&&!g.ma.mg();
if(!q&&!d)return!0;q?(a.ma.Uf(a.width,a.height,a.j),q=a.ma):(this.md.Qg(a.Xb,a.x,a.y,a.width,a.height),q=this.md);d?(g.ma.Uf(g.width,g.height,g.j),p=g.ma):(this.md.Qg(g.Xb,g.x,g.y,g.width,g.height),p=this.md);return q.Mh(p,g.x-a.x,g.y-a.y)}q=a.ma&&!a.ma.mg();d=g.ma&&!g.ma.mg();q?(a.ma.Uf(a.width,a.height,a.j),this.md.qq(a.ma)):this.md.Qg(a.Xb,a.x,a.y,a.width,a.height);q=this.md;d?(g.ma.Uf(g.width,g.height,g.j),this.$m.qq(g.ma)):this.$m.Qg(g.Xb,g.x,g.y,g.width,g.height);p=this.$m;d=0;for(l=q.jd;d<
l;d++)b=2*d,n=b+1,m=q.yb[b],v=q.yb[n],q.yb[b]=e.Ia(m+a.x,v+a.y,!0),q.yb[n]=e.Ia(m+a.x,v+a.y,!1);q.za();d=0;for(l=p.jd;d<l;d++)b=2*d,n=b+1,m=p.yb[b],v=p.yb[n],p.yb[b]=c.Ia(m+g.x,v+g.y,!0),p.yb[n]=c.Ia(m+g.x,v+g.y,!1);p.za();return q.Mh(p,0,0)};var X=new ya;new xa(0,0,0,0);var x=[];h.prototype.Bq=function(a,g){var e,c,d,l,b=g.Va,n=a.x,m=a.y;a.By(b,x);var v=g.ma&&!g.ma.mg();e=0;for(c=x.length;e<c;++e)if(d=x[e],l=d.Xy,b.lv(l,n,m)&&(X.ri(l),X.offset(n,m),X.cp(g.Xb)))if(v)if(g.ma.Uf(g.width,g.height,g.j),
d.Dm){if(d.Dm.Mh(g.ma,g.x-(n+l.left),g.y-(m+l.top)))return A(x),!0}else{if(this.md.Qg(X,0,0,l.right-l.left,l.bottom-l.top),this.md.Mh(g.ma,g.x,g.y))return A(x),!0}else if(d.Dm){if(this.md.Qg(g.Xb,0,0,g.width,g.height),d.Dm.Mh(this.md,-(n+l.left),-(m+l.top)))return A(x),!0}else return A(x),!0;A(x);return!1};h.prototype.Kq=function(a,g){if(!g)return!1;var e,c,d,l,b;e=0;for(c=a.Na.length;e<c;e++)if(a.Na[e].behavior instanceof g)return!0;if(!a.J)for(e=0,c=a.Ga.length;e<c;e++)for(b=a.Ga[e],d=0,l=b.Na.length;d<
l;d++)if(b.Na[d].behavior instanceof g)return!0;return!1};h.prototype.jn=function(a){return this.Kq(a,ic.Jx)};h.prototype.kn=function(a){return this.Kq(a,ic.Lx)};var V=-1;h.prototype.trigger=function(a,g,e){if(!this.ta)return!1;var c=this.ta.pf;if(!c)return!1;var d=!1,l,b,n;V++;var m=c.ul;b=0;for(n=m.length;b<n;++b)l=this.Hq(a,g,m[b],e),d=d||l;l=this.Hq(a,g,c,e);V--;return d||l};h.prototype.Hq=function(a,g,e,c){var d=!1,l,b,n,m;if(g)for(n=this.gn(a,g,g.type.name,e,c),d=d||n,m=g.type.Ga,l=0,b=m.length;l<
b;++l)n=this.gn(a,g,m[l].name,e,c),d=d||n;else n=this.gn(a,g,"system",e,c),d=d||n;return d};h.prototype.gn=function(a,g,e,c,d){var l,b=!1,n=!1,n="undefined"!==typeof d,m=(n?c.Go:c.Iq)[e];if(!m)return b;var v=null;c=0;for(l=m.length;c<l;++c)if(m[c].method==a){v=m[c].uh;break}if(!v)return b;var q;n?q=v[d]:q=v;if(!q)return null;c=0;for(l=q.length;c<l;c++)a=q[c][0],d=q[c][1],n=this.yu(g,e,a,d),b=b||n;return b};h.prototype.yu=function(a,g,e,c){var d,l,b=!1;this.hn++;var n=this.ab().ob;n&&this.ji(n.Ze);
var m=1<this.hn;this.ji(e.Ze);m&&this.hw();var v=this.sk(e);v.ob=e;a&&(d=this.types[g].W(),d.ga=!1,A(d.e),d.e[0]=a,this.types[g].Rd());a=!0;if(e.parent){g=v.Aq;for(d=e.parent;d;)g.push(d),d=d.parent;g.reverse();d=0;for(l=g.length;d<l;d++)if(!g[d].uw()){a=!1;break}}a&&(this.vh++,e.Kc?e.sw(c):e.fb(),b=b||v.zf);this.ok();m&&this.aw();this.We(e.Ze);n&&this.We(n.Ze);this.Oe&&0===this.fd&&0===V&&!this.Zl&&this.Mb();this.hn--;return b};h.prototype.Bh=function(){var a=this.ab();return a.ob.nb[a.Za]};h.prototype.rv=
function(){return 0===this.ab().Za};h.prototype.hw=function(){this.$j++;this.$j>=this.im.length&&this.im.push([])};h.prototype.aw=function(){this.$j--};h.prototype.Oo=function(){return this.im[this.$j]};h.prototype.sk=function(a){this.pj++;this.pj>=this.Al.length&&this.Al.push(new Vb);var g=this.ab();g.reset(a);return g};h.prototype.ok=function(){this.pj--};h.prototype.ab=function(){return this.Al[this.pj]};h.prototype.cq=function(){this.$h++;this.$h>=this.Zh.length&&this.Zh.push(da({name:void 0,
index:0,hb:!1}));var a=this.Po();a.name=void 0;a.index=0;a.hb=!1;return a};h.prototype.Xp=function(){this.$h--};h.prototype.Po=function(){return this.Zh[this.$h]};h.prototype.Ro=function(a,g){for(var e,c,d,l,b,n;g;){e=0;for(c=g.Wc.length;e<c;e++)if(n=g.Wc[e],n instanceof Wb&&mb(a,n.name))return n;g=g.parent}e=0;for(c=this.Wd.length;e<c;e++)for(b=this.Wd[e],d=0,l=b.Le.length;d<l;d++)if(n=b.Le[d],n instanceof Wb&&mb(a,n.name))return n;return null};h.prototype.So=function(a){var g,e;g=0;for(e=this.gd.length;g<
e;g++)if(this.gd[g].X===a)return this.gd[g];return null};h.prototype.Ej=function(a){var g,e;g=0;for(e=this.A.length;g<e;g++)if(this.A[g].X===a)return this.A[g];return null};h.prototype.Ku=function(a){var g,e;g=0;for(e=this.Ae.length;g<e;g++)if(this.Ae[g].X===a)return this.Ae[g];return null};h.prototype.Jt=function(a,g){this.ti=[a,g];this.T=!0};h.prototype.dv=function(){var a=this,g=this.Rm,e=this.de,c=this.Xj,d=!1;this.uq&&(d=!0,g="__c2_continuouspreview",this.uq=!1);if(g.length){this.Mb();e=this.yw();
if(b()&&!this.Jc)f(g,e,function(){ja("Saved state to IndexedDB storage ("+e.length+" bytes)");a.de=e;a.trigger(G.prototype.g.Tk,null);a.de="";d&&t()},function(c){try{localStorage.setItem("__c2save_"+g,e),ja("Saved state to WebStorage ("+e.length+" bytes)"),a.de=e,a.trigger(G.prototype.g.Tk,null),a.de="",d&&t()}catch(l){ja("Failed to save game state: "+c+"; "+l),a.trigger(G.prototype.g.Nn,null)}});else try{localStorage.setItem("__c2save_"+g,e),ja("Saved state to WebStorage ("+e.length+" bytes)"),a.de=
e,this.trigger(G.prototype.g.Tk,null),a.de="",d&&t()}catch(l){ja("Error saving to WebStorage: "+l),a.trigger(G.prototype.g.Nn,null)}this.Xj=this.Rm="";this.tb=null}if(c.length){if(b()&&!this.Jc)r(c,function(g){g?(a.tb=g,ja("Loaded state from IndexedDB storage ("+a.tb.length+" bytes)")):(a.tb=localStorage.getItem("__c2save_"+c)||"",ja("Loaded state from WebStorage ("+a.tb.length+" bytes)"));a.xi=!1;a.tb||(a.tb=null,a.trigger(G.prototype.g.Mi,null))},function(){a.tb=localStorage.getItem("__c2save_"+
c)||"";ja("Loaded state from WebStorage ("+a.tb.length+" bytes)");a.xi=!1;a.tb||(a.tb=null,a.trigger(G.prototype.g.Mi,null))});else{try{this.tb=localStorage.getItem("__c2save_"+c)||"",ja("Loaded state from WebStorage ("+this.tb.length+" bytes)")}catch(n){this.tb=null}this.xi=!1;a.tb||(a.tb=null,a.trigger(G.prototype.g.Mi,null))}this.Rm=this.Xj=""}null!==this.tb&&(this.Mb(),this.Dv(this.tb)?(this.de=this.tb,this.trigger(G.prototype.g.hs,null),this.de=""):a.trigger(G.prototype.g.Mi,null),this.tb=null)};
h.prototype.yw=function(){var a,g,e,c,d,l,b,n={c2save:!0,version:1,rt:{time:this.Cb.O,walltime:this.se.O,timescale:this.Jf,tickcount:this.Ld,execcount:this.vh,next_uid:this.ci,running_layout:this.ta.X,start_time_offset:Date.now()-this.Fk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(g=this.A.length;a<g;a++)if(d=this.A[a],!d.J&&!this.jn(d)){l={instances:[]};Wa(d.Y)&&(l.ex=p(d.Y));e=0;for(c=d.e.length;e<c;e++)l.instances.push(this.Qm(d.e[e]));n.types[d.X.toString()]=l}a=0;
for(g=this.gd.length;a<g;a++)e=this.gd[a],n.layouts[e.X.toString()]=e.Tb();c=n.events.groups;a=0;for(g=this.Ae.length;a<g;a++)e=this.Ae[a],c[e.X.toString()]=this.Ih[e.Hh].hg;g=n.events.cnds;for(b in this.Ge)this.Ge.hasOwnProperty(b)&&(a=this.Ge[b],Wa(a.Y)&&(g[b]={ex:p(a.Y)}));g=n.events.acts;for(b in this.ye)this.ye.hasOwnProperty(b)&&(a=this.ye[b],Wa(a.Y)&&(g[b]={ex:p(a.Y)}));g=n.events.vars;for(b in this.$g)this.$g.hasOwnProperty(b)&&(a=this.$g[b],a.Qj||a.parent&&!a.Uh||(g[b]=a.data));n.system=
this.Jd.Tb();return JSON.stringify(n)};h.prototype.fq=function(){var a,g,e,c,d,l;this.ie={};a=0;for(g=this.A.length;a<g;a++)if(e=this.A[a],!e.J)for(c=0,d=e.e.length;c<d;c++)l=e.e[c],this.ie[l.uid.toString()]=l};h.prototype.Dv=function(a){var g;try{g=JSON.parse(a)}catch(e){return!1}if(!g.c2save||1<g.version)return!1;this.Ph=!0;a=g.rt;this.Cb.reset();this.Cb.O=a.time;this.se.reset();this.se.O=a.walltime||0;this.Jf=a.timescale;this.Ld=a.tickcount;this.vh=a.execcount;this.Fk=Date.now()-a.start_time_offset;
var c=a.running_layout;if(c!==this.ta.X)if(c=this.So(c))this.Co(c);else return;var d,l,b,n,m,v,q;v=g.types;for(l in v)if(v.hasOwnProperty(l)&&(n=this.Ej(parseInt(l,10)))&&!n.J&&!this.jn(n)){v[l].ex?n.Y=v[l].ex:Ya(n.Y);m=n.e;b=v[l].instances;c=0;for(d=qa(m.length,b.length);c<d;c++)this.Yj(m[c],b[c]);c=b.length;for(d=m.length;c<d;c++)this.ue(m[c]);c=m.length;for(d=b.length;c<d;c++){m=null;if(n.pa.Re&&(m=this.ta.Cj(b[c].w.l),!m))continue;m=this.Ie(n.Qc,m,!1,0,0,!0);this.Yj(m,b[c])}n.Sg=!0}this.Mb();
this.fq();d=g.layouts;for(l in d)d.hasOwnProperty(l)&&(c=this.So(parseInt(l,10)))&&c.ic(d[l]);d=g.events.groups;for(l in d)d.hasOwnProperty(l)&&(c=this.Ku(parseInt(l,10)))&&this.Ih[c.Hh]&&this.Ih[c.Hh].mq(d[l]);c=g.events.cnds;for(l in this.Ge)this.Ge.hasOwnProperty(l)&&(c.hasOwnProperty(l)?this.Ge[l].Y=c[l].ex:this.Ge[l].Y={});c=g.events.acts;for(l in this.ye)this.ye.hasOwnProperty(l)&&(c.hasOwnProperty(l)?this.ye[l].Y=c[l].ex:this.ye[l].Y={});c=g.events.vars;for(l in c)c.hasOwnProperty(l)&&this.$g.hasOwnProperty(l)&&
(this.$g[l].data=c[l]);this.ci=a.next_uid;this.Ph=!1;c=0;for(d=this.uj.length;c<d;++c)m=this.uj[c],this.trigger(Object.getPrototypeOf(m.type.pa).g.dh,m);A(this.uj);this.Jd.ic(g.system);c=0;for(d=this.A.length;c<d;c++)if(n=this.A[c],!n.J&&!this.jn(n))for(g=0,l=n.e.length;g<l;g++){m=n.e[g];if(n.Zb)for(v=m.Gh(),A(m.siblings),a=0,b=n.rc.length;a<b;a++)q=n.rc[a],n!==q&&m.siblings.push(q.e[v]);m.ze&&m.ze();if(m.L)for(a=0,b=m.L.length;a<b;a++)v=m.L[a],v.ze&&v.ze()}return this.T=!0};h.prototype.Qm=function(a,
g){var e,c,d,l,b;l=a.type;d=l.pa;var n={};g?n.c2=!0:n.uid=a.uid;Wa(a.Y)&&(n.ex=p(a.Y));if(a.rb&&a.rb.length)for(n.ivs={},e=0,c=a.rb.length;e<c;e++)n.ivs[a.type.Ul[e].toString()]=a.rb[e];if(d.Re){d={x:a.x,y:a.y,w:a.width,h:a.height,l:a.k.X,zi:a.yd()};0!==a.j&&(d.a=a.j);1!==a.opacity&&(d.o=a.opacity);.5!==a.gc&&(d.hX=a.gc);.5!==a.hc&&(d.hY=a.hc);0!==a.Nb&&(d.bm=a.Nb);a.visible||(d.v=a.visible);a.gf||(d.ce=a.gf);-1!==a.bi&&(d.mts=a.bi);if(l.M.length)for(d.fx=[],e=0,c=l.M.length;e<c;e++)b=l.M[e],d.fx.push({name:b.name,
active:a.xe[b.index],params:a.Pa[b.index]});n.w=d}if(a.L&&a.L.length)for(n.behs={},e=0,c=a.L.length;e<c;e++)l=a.L[e],l.Tb&&(n.behs[l.type.X.toString()]=l.Tb());a.Tb&&(n.data=a.Tb());return n};h.prototype.Mu=function(a,g){var e,c;e=0;for(c=a.Ul.length;e<c;e++)if(a.Ul[e]===g)return e;return-1};h.prototype.Hu=function(a,g){var e,c;e=0;for(c=a.L.length;e<c;e++)if(a.L[e].type.X===g)return e;return-1};h.prototype.Yj=function(a,g,e){var c,d,l,b,n;n=a.type;var m=n.pa;if(e){if(!g.c2)return}else a.uid=g.uid;
g.ex?a.Y=g.ex:Ya(a.Y);if(d=g.ivs)for(c in d)d.hasOwnProperty(c)&&(l=this.Mu(n,parseInt(c,10)),0>l||l>=a.rb.length||(b=d[c],null===b&&(b=NaN),a.rb[l]=b));if(m.Re){l=g.w;a.k.X!==l.l&&(d=a.k,a.k=this.ta.Cj(l.l),a.k?(d.Kg(a,!0),a.k.ih(a,!0),a.Ra(),a.k.qi(0)):(a.k=d,e||this.ue(a)));a.x=l.x;a.y=l.y;a.width=l.w;a.height=l.h;a.pd=l.zi;a.j=l.hasOwnProperty("a")?l.a:0;a.opacity=l.hasOwnProperty("o")?l.o:1;a.gc=l.hasOwnProperty("hX")?l.hX:.5;a.hc=l.hasOwnProperty("hY")?l.hY:.5;a.visible=l.hasOwnProperty("v")?
l.v:!0;a.gf=l.hasOwnProperty("ce")?l.ce:!0;a.bi=l.hasOwnProperty("mts")?l.mts:-1;a.Nb=l.hasOwnProperty("bm")?l.bm:0;a.ph=jb(a.Nb);this.Sc&&kb(a,a.Nb,this.Sc);a.Ra();if(l.hasOwnProperty("fx"))for(e=0,d=l.fx.length;e<d;e++)b=n.Il(l.fx[e].name),0>b||(a.xe[b]=l.fx[e].active,a.Pa[b]=l.fx[e].params);a.od()}if(n=g.behs)for(c in n)n.hasOwnProperty(c)&&(e=this.Hu(a,parseInt(c,10)),0>e||a.L[e].ic(n[c]));g.data&&a.ic(g.data)};h.prototype.Ho=function(a,g,e){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+
"www/"+a,function(a){a.file(g,e)},e)};h.prototype.zu=function(a,g){this.Ho("data.js",function(e){var c=new FileReader;c.onload=function(g){a(g.target.result)};c.onerror=g;c.readAsText(e)},g)};var E=[],J=0;h.prototype.km=function(){if(E.length&&!(8<=J)){J++;var a=E.shift();this.Kt(a.filename,a.Ow,a.Wt)}};h.prototype.Io=function(a,g,e){var c=this;E.push({filename:a,Ow:function(a){J--;c.km();g(a)},Wt:function(a){J--;c.km();e(a)}});this.km()};h.prototype.Kt=function(a,g,e){this.Ho(a,function(a){var e=
new FileReader;e.onload=function(a){g(a.target.result)};e.readAsArrayBuffer(a)},e)};h.prototype.Au=function(a,g,e){var c="",d=a.toLowerCase(),l=d.substr(d.length-4),d=d.substr(d.length-5);".mp4"===l?c="video/mp4":".webm"===d?c="video/webm":".m4a"===l?c="audio/mp4":".mp3"===l&&(c="audio/mpeg");this.Io(a,function(a){a=URL.createObjectURL(new Blob([a],{type:c}));g(a)},e)};h.prototype.pv=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};h.prototype.nq=function(a,
g){this.Oj&&!this.pv(g)?this.Au(g,function(g){a.src=g},function(a){alert("Failed to load image: "+a)}):a.src=g};h.prototype.zk=function(a,g){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=g:(a.webkitImageSmoothingEnabled=g,a.mozImageSmoothingEnabled=g,a.msImageSmoothingEnabled=g)};Xb=function(a){return new h(document.getElementById(a))};Yb=function(a,g){return new h({dc:!0,width:a,height:g})};window.cr_createRuntime=Xb;window.cr_createDCRuntime=Yb;window.createCocoonJSRuntime=
function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.De=!0;document.body.appendChild(a);a=new h(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 h(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,
window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var h=document.getElementById("c2canvas");return h?h.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(h,k){var b=window.cr_getC2Runtime();b&&b.Jt(h,k)};window.cr_sizeCanvas=function(h,k){if(0!==h&&0!==k){var b=window.cr_getC2Runtime();b&&b.setSize(h,k)}};window.cr_setSuspended=function(h){var k=window.cr_getC2Runtime();k&&k.setSuspended(h)};
(function(){function h(a,c){this.b=a;this.pf=null;this.scrollX=this.b.wb/2;this.scrollY=this.b.ub/2;this.scale=1;this.j=0;this.eg=!0;this.name=c[0];this.Wv=c[1];this.Vv=c[2];this.width=c[1];this.height=c[2];this.Lq=c[3];this.sq=c[4];this.X=c[5];var d=c[6],e,b;this.R=[];this.Lh=[];e=0;for(b=d.length;e<b;e++){var m=new Zb(this,d[e]);m.Dp=e;this.R.push(m)}d=c[7];this.Pe=[];e=0;for(b=d.length;e<b;e++){var m=d[e],q=this.b.A[m[1]];q.Qc||(q.Qc=m);this.Pe.push(m);-1===this.Lh.indexOf(q)&&this.Lh.push(q)}this.M=
[];this.ka=[];this.ne=!0;this.Pa=[];e=0;for(b=c[8].length;e<b;e++)this.M.push({id:c[8][e][0],name:c[8][e][1],gb:-1,Xe:!1,Ua:!0,index:e}),this.Pa.push(c[8][e][2].slice(0));this.od();this.Jg=new xa(0,0,1,1);this.Jm=new xa(0,0,1,1);this.Ve={}}function k(a,c){return a.pd-c.pd}function b(a,c){this.Db=a;this.b=a.b;this.e=[];this.scale=1;this.j=0;this.Vd=!1;this.re=new xa(0,0,0,0);this.Fq=new ya;this.Aa=this.xa=this.Ba=this.wa=0;this.Nf=!1;this.te=-1;this.ql=0;this.name=c[0];this.index=c[1];this.X=c[2];
this.visible=c[3];this.$c=c[4];this.nd=c[5];this.jc=c[6];this.kc=c[7];this.opacity=c[8];this.yj=c[9];this.Nc=c[10];this.Wb=c[11];this.Nb=c[12];this.St=c[13];this.ph="source-over";this.Pb=this.Vb=0;this.Lb=null;this.ee=u();this.kd=!0;this.vg=new xa(0,0,-1,-1);this.Hb=new xa(0,0,-1,-1);this.Nc&&(this.Lb=new ib(this.b.wb,this.b.ub));this.Hd=!1;var d=c[14],e,b;this.yq=[];this.Ic=[];this.qh=[];e=0;for(b=d.length;e<b;e++){var m=d[e],q=this.b.A[m[1]];q.Qc||(q.Qc=m,q.Gt=this.index);this.Ic.push(m);-1===this.Db.Lh.indexOf(q)&&
this.Db.Lh.push(q)}Da(this.yq,this.Ic);this.M=[];this.ka=[];this.ne=!0;this.Pa=[];e=0;for(b=c[15].length;e<b;e++)this.M.push({id:c[15][e][0],name:c[15][e][1],gb:-1,Xe:!1,Ua:!0,index:e}),this.Pa.push(c[15][e][2].slice(0));this.od();this.Jg=new xa(0,0,1,1);this.Jm=new xa(0,0,1,1)}function u(){return p.length?p.pop():[]}function f(a){A(a);p.push(a)}h.prototype.xw=function(a){var c=a.type.X.toString();this.Ve.hasOwnProperty(c)||(this.Ve[c]=[]);this.Ve[c].push(this.b.Qm(a))};h.prototype.Wo=function(){var a=
this.R[0];return!a.nd&&1===a.opacity&&!a.yj&&a.visible};h.prototype.od=function(){A(this.ka);this.ne=!0;var a,c,d;a=0;for(c=this.M.length;a<c;a++)d=this.M[a],d.Ua&&(this.ka.push(d),d.Xe||(this.ne=!1))};h.prototype.Hl=function(a){var c,d,e;c=0;for(d=this.M.length;c<d;c++)if(e=this.M[c],e.name===a)return e;return null};var r=[],t=!0;h.prototype.Ym=function(){this.sq&&(this.pf=this.b.Bl[this.sq],this.pf.mn());this.b.ta=this;this.width=this.Wv;this.height=this.Vv;this.scrollX=this.b.wb/2;this.scrollY=
this.b.ub/2;var a,c,d,e,b,m,q;a=0;for(d=this.b.A.length;a<d;a++)if(c=this.b.A[a],!c.J)for(b=c.e,c=0,e=b.length;c<e;c++)if(m=b[c],m.k){var g=m.k.Dp;g>=this.R.length&&(g=this.R.length-1);m.k=this.R[g];-1===m.k.e.indexOf(m)&&m.k.e.push(m);m.k.Nf=!0}if(!t)for(a=0,d=this.R.length;a<d;++a)this.R[a].e.sort(k);A(r);this.xt();a=0;for(d=this.R.length;a<d;a++)m=this.R[a],m.Ft(),m.Pk();b=!1;if(!this.eg){for(q in this.Ve)if(this.Ve.hasOwnProperty(q)&&(c=this.b.Ej(parseInt(q,10)))&&!c.J&&this.b.kn(c)){e=this.Ve[q];
a=0;for(d=e.length;a<d;a++){m=null;if(c.pa.Re&&(m=this.Cj(e[a].w.l),!m))continue;m=this.b.Ie(c.Qc,m,!1,0,0,!0);this.b.Yj(m,e[a]);b=!0;r.push(m)}A(e)}a=0;for(d=this.R.length;a<d;a++)this.R[a].e.sort(k),this.R[a].Nf=!0}b&&(this.b.Mb(),this.b.fq());for(a=0;a<r.length;a++)if(m=r[a],m.type.Zb)for(d=m.Gh(),c=0,e=m.type.rc.length;c<e;c++)q=m.type.rc[c],m.type!==q&&(q.e.length>d?m.siblings.push(q.e[d]):q.Qc&&(b=this.b.Ie(q.Qc,m.k,!0,m.x,m.y,!0),this.b.Mb(),q.Ok(),m.siblings.push(b),r.push(b)));a=0;for(d=
this.Pe.length;a<d;a++)m=this.Pe[a],c=this.b.A[m[1]],c.Zb||this.b.Ie(this.Pe[a],null,!0);this.b.ff=null;this.b.Mb();if(this.b.Oa&&!this.b.Ea)for(a=0,d=this.b.A.length;a<d;a++)q=this.b.A[a],!q.J&&q.e.length&&q.Em&&q.Em(this.b.Oa);if(this.b.Ph)Da(this.b.uj,r);else for(a=0,d=r.length;a<d;a++)m=r[a],this.b.trigger(Object.getPrototypeOf(m.type.pa).g.dh,m);A(r);this.b.Ph||this.b.trigger(G.prototype.g.Gn,null);this.eg=!1};h.prototype.Et=function(){var a,c,d,e,b;c=a=0;for(d=this.Pe.length;a<d;a++)e=this.Pe[a],
b=this.b.A[e[1]],b.global?b.Zb||this.b.Ie(e,null,!0):(this.Pe[c]=e,c++);Ca(this.Pe,c)};h.prototype.Mw=function(){this.b.Ph||this.b.trigger(G.prototype.g.gs,null);this.b.Wl=!0;A(this.b.Jd.oc);var a,c,d,e,b,m;if(!this.eg)for(a=0,c=this.R.length;a<c;a++)for(this.R[a].pn(),b=this.R[a].e,d=0,e=b.length;d<e;d++)m=b[d],m.type.global||this.b.kn(m.type)&&this.xw(m);a=0;for(c=this.R.length;a<c;a++){b=this.R[a].e;d=0;for(e=b.length;d<e;d++)m=b[d],m.type.global||this.b.ue(m);this.b.Mb();A(b);this.R[a].Nf=!0}a=
0;for(c=this.b.A.length;a<c;a++)if(b=this.b.A[a],!(b.global||b.pa.Re||b.pa.Ek||b.J)){d=0;for(e=b.e.length;d<e;d++)this.b.ue(b.e[d]);this.b.Mb()}t=!1;this.b.Wl=!1};new xa(0,0,0,0);h.prototype.dd=function(a){var c,d=a,e=!1,b=!this.b.Fc;b&&(this.b.Wj||(this.b.Wj=document.createElement("canvas"),c=this.b.Wj,c.width=this.b.G,c.height=this.b.F,this.b.qp=c.getContext("2d"),e=!0),c=this.b.Wj,d=this.b.qp,c.width!==this.b.G&&(c.width=this.b.G,e=!0),c.height!==this.b.F&&(c.height=this.b.F,e=!0),e&&this.b.zk(d,
this.b.Ja));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.uo&&!this.Wo()&&d.clearRect(0,0,this.b.G,this.b.F);var m,q,e=0;for(m=this.R.length;e<m;e++)q=this.R[e],q.visible&&0<q.opacity&&11!==q.Nb&&(q.e.length||!q.nd)?q.dd(d):q.Pk();b&&a.drawImage(c,0,0,this.b.width,this.b.height)};h.prototype.Zf=function(a){a.Dw(!0);this.b.cb||(this.b.cb=a.Pc(this.b.G,this.b.F,this.b.Ja));if(this.b.cb.nh!==this.b.G||this.b.cb.mh!==this.b.F)a.deleteTexture(this.b.cb),this.b.cb=a.Pc(this.b.G,this.b.F,
this.b.Ja);a.ld(this.b.cb);this.b.Fc||a.Pg(this.b.G,this.b.F);var c,d;for(c=this.R.length-1;0<=c;--c)d=this.R[c],d.visible&&1===d.opacity&&d.ne&&0===d.Nb&&(d.e.length||!d.nd)?d.Zf(a):d.Pk();a.Dw(!1)};h.prototype.Dc=function(a){var c=0<this.ka.length||this.b.Yg||!this.b.Fc||this.b.of;if(c){this.b.cb||(this.b.cb=a.Pc(this.b.G,this.b.F,this.b.Ja));if(this.b.cb.nh!==this.b.G||this.b.cb.mh!==this.b.F)a.deleteTexture(this.b.cb),this.b.cb=a.Pc(this.b.G,this.b.F,this.b.Ja);a.ld(this.b.cb);this.b.Fc||a.Pg(this.b.G,
this.b.F)}else this.b.cb&&(a.ld(null),a.deleteTexture(this.b.cb),this.b.cb=null);this.b.uo&&!this.Wo()&&a.clear(0,0,0,0);var d,e,b;d=0;for(e=this.R.length;d<e;d++)b=this.R[d],b.visible&&0<b.opacity&&(b.e.length||!b.nd)?b.Dc(a):b.Pk();c&&(0===this.ka.length||1===this.ka.length&&this.b.Fc?(1===this.ka.length?(c=this.ka[0].index,a.$e(this.ka[0].gb),a.pi(null,1/this.b.G,1/this.b.F,0,0,1,1,this.scale,this.j,0,0,this.b.G/2,this.b.F/2,this.b.Cb.O,this.Pa[c]),a.Fm(this.ka[0].gb)&&(this.b.T=!0)):a.$e(0),this.b.Fc||
a.Pg(this.b.width,this.b.height),a.ld(null),a.Bw(!1),a.Og(1),a.Mc(this.b.cb),a.zw(),a.Id(),a.Nd(),c=this.b.width/2,d=this.b.height/2,a.Hm(-c,d,c,d,c,-d,-c,-d),a.Mc(null),a.Bw(!0)):this.Km(a,null,null,null))};h.prototype.Fh=function(){return 0<this.ka.length||this.b.Yg||!this.b.Fc||this.b.of?this.b.cb:null};h.prototype.To=function(){var a=this.R[0].sc(),c,d,e;c=1;for(d=this.R.length;c<d;c++)e=this.R[c],(0!==e.jc||0!==e.kc)&&e.sc()<a&&(a=e.sc());return a};h.prototype.jq=function(a){if(!this.Lq){var c=
1/this.To()*this.b.G/2;a>this.width-c&&(a=this.width-c);a<c&&(a=c)}this.scrollX!==a&&(this.scrollX=a,this.b.T=!0)};h.prototype.kq=function(a){if(!this.Lq){var c=1/this.To()*this.b.F/2;a>this.height-c&&(a=this.height-c);a<c&&(a=c)}this.scrollY!==a&&(this.scrollY=a,this.b.T=!0)};h.prototype.xt=function(){this.jq(this.scrollX);this.kq(this.scrollY)};h.prototype.Km=function(a,c,d,e){var b=d?d.ka:c?c.ka:this.ka,m=1,q=0,g=0,v=0,p=this.b.G,f=this.b.F;d?(m=d.k.sc(),q=d.k.qb(),g=d.k.wa,v=d.k.xa,p=d.k.Ba,f=
d.k.Aa):c&&(m=c.sc(),q=c.qb(),g=c.wa,v=c.xa,p=c.Ba,f=c.Aa);var k=this.b.Fl,h,t,u,r,H=0,O=1,X,x,V=this.b.G,E=this.b.F,J=V/2,y=E/2,B=c?c.Jg:this.Jg,L=c?c.Jm:this.Jm,M=0,z=0,N=0,C=0,T=V,ra=V,U=E,aa=E,ca=u=0;r=d?d.k.qb():0;if(d){h=0;for(t=b.length;h<t;h++)u+=a.Dy(b[h].gb),ca+=a.Ey(b[h].gb);C=d.Va;M=c.Ia(C.left,C.top,!0,!0);N=c.Ia(C.left,C.top,!1,!0);T=c.Ia(C.right,C.bottom,!0,!0);U=c.Ia(C.right,C.bottom,!1,!0);0!==r&&(h=c.Ia(C.right,C.top,!0,!0),t=c.Ia(C.right,C.top,!1,!0),z=c.Ia(C.left,C.bottom,!0,!0),
C=c.Ia(C.left,C.bottom,!1,!0),r=Math.min(M,T,h,z),T=Math.max(M,T,h,z),M=r,r=Math.min(N,U,t,C),U=Math.max(N,U,t,C),N=r);M-=u;N-=ca;T+=u;U+=ca;L.left=M/V;L.top=1-N/E;L.right=T/V;L.bottom=1-U/E;z=M=ua(M);C=N=ua(N);ra=T=va(T);aa=U=va(U);z-=u;C-=ca;ra+=u;aa+=ca;0>M&&(M=0);0>N&&(N=0);T>V&&(T=V);U>E&&(U=E);0>z&&(z=0);0>C&&(C=0);ra>V&&(ra=V);aa>E&&(aa=E);B.left=M/V;B.top=1-N/E;B.right=T/V;B.bottom=1-U/E}else B.left=L.left=0,B.top=L.top=0,B.right=L.right=1,B.bottom=L.bottom=1;ca=d&&(a.rk(b[0].gb)||0!==u||
0!==ca||1!==d.opacity||d.type.pa.xp)||c&&!d&&1!==c.opacity;a.zw();if(ca){k[H]||(k[H]=a.Pc(V,E,this.b.Ja));if(k[H].nh!==V||k[H].mh!==E)a.deleteTexture(k[H]),k[H]=a.Pc(V,E,this.b.Ja);a.$e(0);a.ld(k[H]);x=aa-C;a.clearRect(z,E-C-x,ra-z,x);d?d.Dc(a):(a.Mc(this.b.sb),a.Og(c.opacity),a.Id(),a.translate(-J,-y),a.Nd(),a.Ye(M,U,T,U,T,N,M,N,B));L.left=L.top=0;L.right=L.bottom=1;d&&(r=B.top,B.top=B.bottom,B.bottom=r);H=1;O=0}a.Og(1);u=b.length-1;var La=a.$p(b[u].gb)||!c&&!d&&!this.b.Fc;h=r=0;for(t=b.length;h<
t;h++){k[H]||(k[H]=a.Pc(V,E,this.b.Ja));if(k[H].nh!==V||k[H].mh!==E)a.deleteTexture(k[H]),k[H]=a.Pc(V,E,this.b.Ja);a.$e(b[h].gb);r=b[h].index;a.Fm(b[h].gb)&&(this.b.T=!0);0!=h||ca?(a.pi(e,1/V,1/E,L.left,L.top,L.right,L.bottom,m,q,g,v,(g+p)/2,(v+f)/2,this.b.Cb.O,d?d.Pa[r]:c?c.Pa[r]:this.Pa[r]),a.Mc(null),h!==u||La?(a.ld(k[H]),x=aa-C,X=E-C-x,a.clearRect(z,X,ra-z,x)):(d?a.Mg(d.Vb,d.Pb):c&&a.Mg(c.Vb,c.Pb),a.ld(e)),a.Mc(k[O]),a.Id(),a.translate(-J,-y),a.Nd(),a.Ye(M,U,T,U,T,N,M,N,B),h!==u||La||a.Mc(null)):
(a.ld(k[H]),x=aa-C,X=E-C-x,a.clearRect(z,X,ra-z,x),d?(d.Fa&&d.Fa.ra?(X=d.Fa.ra,O=1/X.width,X=1/X.height):(O=1/d.width,X=1/d.height),a.pi(e,O,X,L.left,L.top,L.right,L.bottom,m,q,g,v,(g+p)/2,(v+f)/2,this.b.Cb.O,d.Pa[r]),d.Dc(a)):(a.pi(e,1/V,1/E,0,0,1,1,m,q,g,v,(g+p)/2,(v+f)/2,this.b.Cb.O,c?c.Pa[r]:this.Pa[r]),a.Mc(c?this.b.sb:this.b.cb),a.Id(),a.translate(-J,-y),a.Nd(),a.Ye(M,U,T,U,T,N,M,N,B)),L.left=L.top=0,L.right=L.bottom=1,d&&!La&&(r=U,U=N,N=r));H=0===H?1:0;O=0===H?1:0}La&&(a.$e(0),d?a.Mg(d.Vb,
d.Pb):c?a.Mg(c.Vb,c.Pb):this.b.Fc||(a.Pg(this.b.width,this.b.height),J=this.b.width/2,y=this.b.height/2,N=M=0,T=this.b.width,U=this.b.height),a.ld(e),a.Mc(k[O]),a.Id(),a.translate(-J,-y),a.Nd(),d&&1===b.length&&!ca?a.Ye(M,N,T,N,T,U,M,U,B):a.Ye(M,U,T,U,T,N,M,N,B),a.Mc(null))};h.prototype.Cj=function(a){var c,d;c=0;for(d=this.R.length;c<d;c++)if(this.R[c].X===a)return this.R[c];return null};h.prototype.Tb=function(){var a,c,d,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,
fv:this.eg,persist:this.Ve,fx:[],layers:{}};a=0;for(c=this.M.length;a<c;a++)d=this.M[a],e.fx.push({name:d.name,active:d.Ua,params:this.Pa[d.index]});a=0;for(c=this.R.length;a<c;a++)d=this.R[a],e.layers[d.X.toString()]=d.Tb();return e};h.prototype.ic=function(a){var c,d,e,b;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.j=a.a;this.width=a.w;this.height=a.h;this.Ve=a.persist;"undefined"!==typeof a.fv&&(this.eg=a.fv);var m=a.fx;c=0;for(d=m.length;c<d;c++)if(e=this.Hl(m[c].name))e.Ua=m[c].active,
this.Pa[e.index]=m[c].params;this.od();c=a.layers;for(b in c)c.hasOwnProperty(b)&&(a=this.Cj(parseInt(b,10)))&&a.ic(c[b])};Lb=h;b.prototype.od=function(){A(this.ka);this.ne=!0;var a,c,d;a=0;for(c=this.M.length;a<c;a++)d=this.M[a],d.Ua&&(this.ka.push(d),d.Xe||(this.ne=!1))};b.prototype.Hl=function(a){var c,d,e;c=0;for(d=this.M.length;c<d;c++)if(e=this.M[c],e.name===a)return e;return null};b.prototype.Ft=function(){var a,c,d,e,b,m;c=a=0;for(d=this.Ic.length;a<d;a++){e=this.Ic[a];b=this.b.A[e[1]];m=
this.b.kn(b);b=!0;if(!m||this.Db.eg){e=this.b.Ie(e,this,!0);if(!e)continue;r.push(e);e.type.global&&(b=!1,this.qh.push(e.uid))}b&&(this.Ic[c]=this.Ic[a],c++)}this.Ic.length=c;this.b.Mb();!this.b.H&&this.M.length&&(this.Nb=this.St);this.ph=jb(this.Nb);this.b.Sc&&kb(this,this.Nb,this.b.Sc);this.kd=!0};b.prototype.Kg=function(a,c){var d=Fa(this.e,a);0>d||(c&&this.Nc&&a.lc&&a.lc.right>=a.lc.left&&(a.za(),this.Lb.update(a,a.lc,null),a.lc.set(0,0,-1,-1)),d===this.e.length-1?this.e.pop():(Ba(this.e,d),this.qi(d)),
this.kd=!0)};b.prototype.ih=function(a,c){a.pd=this.e.length;this.e.push(a);c&&this.Nc&&a.lc&&a.Ra();this.kd=!0};b.prototype.gw=function(a){this.e.unshift(a);this.qi(0)};b.prototype.Kv=function(a,c,d){var e=a.yd();c=c.yd();Ba(this.e,e);e<c&&c--;d&&c++;c===this.e.length?this.e.push(a):this.e.splice(c,0,a);this.qi(e<c?e:c)};b.prototype.qi=function(a){-1===this.te?this.te=a:a<this.te&&(this.te=a);this.kd=this.Nf=!0};b.prototype.pn=function(){if(this.Nf){-1===this.te&&(this.te=0);var a,c,d;if(this.Nc)for(a=
this.te,c=this.e.length;a<c;++a)d=this.e[a],d.pd=a,this.Lb.Hv(d.lc);else for(a=this.te,c=this.e.length;a<c;++a)this.e[a].pd=a;this.Nf=!1;this.te=-1}};b.prototype.sc=function(a){return this.Nu()*(this.b.Fc||a?this.b.jh:1)};b.prototype.Nu=function(){return(this.scale*this.Db.scale-1)*this.Wb+1};b.prototype.qb=function(){return this.Vd?0:Ka(this.Db.j+this.j)};var p=[],d=[],q=[];b.prototype.Ll=function(){this.pn();this.Lb.tk(this.wa,this.xa,this.Ba,this.Aa,q);if(!q.length)return u();if(1===q.length){var a=
u();Da(a,q[0]);A(q);return a}for(var c=!0;1<q.length;){for(var a=q,b=void 0,e=void 0,n=void 0,m=void 0,p=void 0,b=0,e=a.length;b<e-1;b+=2){var n=a[b],m=a[b+1],p=u(),g=n,v=m,k=p,h=0,t=0,r=0,I=g.length,w=v.length,Q=void 0,H=void 0;for(k.length=I+w;h<I&&t<w;++r)Q=g[h],H=v[t],Q.pd<H.pd?(k[r]=Q,++h):(k[r]=H,++t);for(;h<I;++h,++r)k[r]=g[h];for(;t<w;++t,++r)k[r]=v[t];c||(f(n),f(m));d.push(p)}1===e%2&&(c?(n=u(),Da(n,a[e-1]),d.push(n)):d.push(a[e-1]));Da(a,d);A(d);c=!1}a=q[0];A(q);return a};b.prototype.dd=
function(a){this.Hd=this.yj||1!==this.opacity||0!==this.Nb;var c=this.b.canvas,d=a,e=!1;this.Hd&&(this.b.Vj||(this.b.Vj=document.createElement("canvas"),c=this.b.Vj,c.width=this.b.G,c.height=this.b.F,this.b.pp=c.getContext("2d"),e=!0),c=this.b.Vj,d=this.b.pp,c.width!==this.b.G&&(c.width=this.b.G,e=!0),c.height!==this.b.F&&(c.height=this.b.F,e=!0),e&&this.b.zk(d,this.b.Ja),this.nd&&d.clearRect(0,0,this.b.G,this.b.F));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.nd||(d.fillStyle="rgb("+
this.$c[0]+","+this.$c[1]+","+this.$c[2]+")",d.fillRect(0,0,this.b.G,this.b.F));d.save();this.Vd=!0;var e=this.Wa(0,0,!0,!0),b=this.Wa(0,0,!1,!0);this.Vd=!1;this.b.hd&&(e=Math.round(e),b=Math.round(b));this.vk(e,b,d);var m=this.sc();d.scale(m,m);d.translate(-e,-b);this.Nc?(this.Hb.left=this.Lb.ec(this.wa),this.Hb.top=this.Lb.fc(this.xa),this.Hb.right=this.Lb.ec(this.Ba),this.Hb.bottom=this.Lb.fc(this.Aa),this.kd||!this.Hb.sh(this.vg)?(f(this.ee),e=this.Ll(),this.kd=!1,this.vg.Xf(this.Hb)):e=this.ee):
e=this.e;for(var q,g=null,b=0,m=e.length;b<m;++b)q=e[b],q!==g&&(this.Nt(q,d),g=q);this.Nc&&(this.ee=e);d.restore();this.Hd&&(a.globalCompositeOperation=this.ph,a.globalAlpha=this.opacity,a.drawImage(c,0,0))};b.prototype.Nt=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.za();var d=a.Va;d.right<this.wa||d.bottom<this.xa||d.left>this.Ba||d.top>this.Aa||(c.globalCompositeOperation=a.ph,a.dd(c))}};b.prototype.Pk=function(){this.Vd=!0;var a=this.Wa(0,0,!0,!0),c=this.Wa(0,0,!1,!0);this.Vd=!1;this.b.hd&&
(a=Math.round(a),c=Math.round(c));this.vk(a,c,null)};b.prototype.vk=function(a,c,d){var e=this.sc();this.wa=a;this.xa=c;this.Ba=a+1/e*this.b.G;this.Aa=c+1/e*this.b.F;this.wa>this.Ba&&(a=this.wa,this.wa=this.Ba,this.Ba=a);this.xa>this.Aa&&(a=this.xa,this.xa=this.Aa,this.Aa=a);a=this.qb();0!==a&&(d&&(d.translate(this.b.G/2,this.b.F/2),d.rotate(-a),d.translate(this.b.G/-2,this.b.F/-2)),this.re.set(this.wa,this.xa,this.Ba,this.Aa),this.re.offset((this.wa+this.Ba)/-2,(this.xa+this.Aa)/-2),this.Fq.rq(this.re,
a),this.Fq.oo(this.re),this.re.offset((this.wa+this.Ba)/2,(this.xa+this.Aa)/2),this.wa=this.re.left,this.xa=this.re.top,this.Ba=this.re.right,this.Aa=this.re.bottom)};b.prototype.Zf=function(a){if(this.Hd=this.yj){this.b.sb||(this.b.sb=a.Pc(this.b.G,this.b.F,this.b.Ja));if(this.b.sb.nh!==this.b.G||this.b.sb.mh!==this.b.F)a.deleteTexture(this.b.sb),this.b.sb=a.Pc(this.b.G,this.b.F,this.b.Ja);a.ld(this.b.sb)}this.Vd=!0;var c=this.Wa(0,0,!0,!0),d=this.Wa(0,0,!1,!0);this.Vd=!1;this.b.hd&&(c=Math.round(c),
d=Math.round(d));this.vk(c,d,null);c=this.sc();a.Id();a.scale(c,c);a.Nm(-this.qb());a.translate((this.wa+this.Ba)/-2,(this.xa+this.Aa)/-2);a.Nd();this.Nc?(this.Hb.left=this.Lb.ec(this.wa),this.Hb.top=this.Lb.fc(this.xa),this.Hb.right=this.Lb.ec(this.Ba),this.Hb.bottom=this.Lb.fc(this.Aa),this.kd||!this.Hb.sh(this.vg)?(f(this.ee),c=this.Ll(),this.kd=!1,this.vg.Xf(this.Hb)):c=this.ee):c=this.e;for(var e,b=null,d=c.length-1;0<=d;--d)e=c[d],e!==b&&(this.Pt(c[d],a),b=e);this.Nc&&(this.ee=c);this.nd||(this.ql=
this.b.mf++,a.Sm(this.ql),a.Aw(1,1,1,1),a.Du(),a.Yy())};b.prototype.Dc=function(a){var c=0,d=0;if(this.Hd=this.yj||1!==this.opacity||0<this.ka.length||0!==this.Nb){this.b.sb||(this.b.sb=a.Pc(this.b.G,this.b.F,this.b.Ja));if(this.b.sb.nh!==this.b.G||this.b.sb.mh!==this.b.F)a.deleteTexture(this.b.sb),this.b.sb=a.Pc(this.b.G,this.b.F,this.b.Ja);a.ld(this.b.sb);this.nd&&a.clear(0,0,0,0)}this.nd||(this.b.of?(a.Sm(this.ql),a.Aw(this.$c[0]/255,this.$c[1]/255,this.$c[2]/255,1),a.Du(),a.$y()):a.clear(this.$c[0]/
255,this.$c[1]/255,this.$c[2]/255,1));this.Vd=!0;var e=this.Wa(0,0,!0,!0),c=this.Wa(0,0,!1,!0);this.Vd=!1;this.b.hd&&(e=Math.round(e),c=Math.round(c));this.vk(e,c,null);e=this.sc();a.Id();a.scale(e,e);a.Nm(-this.qb());a.translate((this.wa+this.Ba)/-2,(this.xa+this.Aa)/-2);a.Nd();this.Nc?(this.Hb.left=this.Lb.ec(this.wa),this.Hb.top=this.Lb.fc(this.xa),this.Hb.right=this.Lb.ec(this.Ba),this.Hb.bottom=this.Lb.fc(this.Aa),this.kd||!this.Hb.sh(this.vg)?(f(this.ee),c=this.Ll(),this.kd=!1,this.vg.Xf(this.Hb)):
c=this.ee):c=this.e;var b,m,q=null,d=0;for(b=c.length;d<b;++d)m=c[d],m!==q&&(this.Ot(c[d],a),q=m);this.Nc&&(this.ee=c);this.Hd&&(c=this.ka.length?this.ka[0].gb:0,d=this.ka.length?this.ka[0].index:0,0===this.ka.length||1===this.ka.length&&!a.$p(c)&&1===this.opacity?(1===this.ka.length?(a.$e(c),a.pi(this.Db.Fh(),1/this.b.G,1/this.b.F,0,0,1,1,e,this.qb(),this.wa,this.xa,(this.wa+this.Ba)/2,(this.xa+this.Aa)/2,this.b.Cb.O,this.Pa[d]),a.Fm(c)&&(this.b.T=!0)):a.$e(0),a.ld(this.Db.Fh()),a.Og(this.opacity),
a.Mc(this.b.sb),a.Mg(this.Vb,this.Pb),a.Id(),a.Nd(),e=this.b.G/2,c=this.b.F/2,a.Hm(-e,c,e,c,e,-c,-e,-c),a.Mc(null)):this.Db.Km(a,this,null,this.Db.Fh()))};b.prototype.Ot=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.za();var d=a.Va;d.right<this.wa||d.bottom<this.xa||d.left>this.Ba||d.top>this.Aa||(c.Sm(a.mf),a.Qq?this.Qt(a,c):(c.$e(0),c.Mg(a.Vb,a.Pb),a.Dc(c)))}};b.prototype.Pt=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.za();var d=a.Va;d.right<this.wa||d.bottom<this.xa||d.left>
this.Ba||d.top>this.Aa||(a.mf=this.b.mf++,0===a.Nb&&1===a.opacity&&a.ne&&a.Zf&&(c.Sm(a.mf),a.Zf(c)))}};b.prototype.Qt=function(a,c){var d=a.ka[0].gb,e=a.ka[0].index,b=this.sc();if(1!==a.ka.length||c.$p(d)||c.Uy(d)||(a.j||a.k.qb())&&c.rk(d)||1!==a.opacity||a.type.pa.xp)this.Db.Km(c,this,a,this.Hd?this.b.sb:this.Db.Fh()),c.Id(),c.scale(b,b),c.Nm(-this.qb()),c.translate((this.wa+this.Ba)/-2,(this.xa+this.Aa)/-2),c.Nd();else{c.$e(d);c.Mg(a.Vb,a.Pb);c.Fm(d)&&(this.b.T=!0);var m=0,q=0,g=0,v=0;c.rk(d)&&
(v=a.Va,m=this.Ia(v.left,v.top,!0,!0),q=this.Ia(v.left,v.top,!1,!0),g=this.Ia(v.right,v.bottom,!0,!0),v=this.Ia(v.right,v.bottom,!1,!0),m=m/windowWidth,q=1-q/windowHeight,g=g/windowWidth,v=1-v/windowHeight);var p;a.Fa&&a.Fa.ra?(p=a.Fa.ra,d=1/p.width,p=1/p.height):(d=1/a.width,p=1/a.height);c.pi(this.Hd?this.b.sb:this.Db.Fh(),d,p,m,q,g,v,b,this.qb(),this.wa,this.xa,(this.wa+this.Ba)/2,(this.xa+this.Aa)/2,this.b.Cb.O,a.Pa[e]);a.Dc(c)}};b.prototype.Wa=function(a,c,d,e){var b=this.b.devicePixelRatio;
this.b.wf&&(a*=b,c*=b);var b=this.b.Up,m=this.b.Vp,b=(this.Db.scrollX-b)*this.jc+b,m=(this.Db.scrollY-m)*this.kc+m,q=b,g=m,v=1/this.sc(!e);e?(q-=this.b.G*v/2,g-=this.b.F*v/2):(q-=this.b.width*v/2,g-=this.b.height*v/2);q+=a*v;g+=c*v;c=this.qb();0!==c&&(q-=b,g-=m,a=Math.cos(c),c=Math.sin(c),e=q*a-g*c,g=g*a+q*c,q=e+b,g+=m);return d?q:g};b.prototype.Ia=function(a,c,d,e){var b=this.b.Up,m=this.b.Vp,q=(this.Db.scrollX-b)*this.jc+b,g=(this.Db.scrollY-m)*this.kc+m,m=q,b=g,v=this.qb();if(0!==v){a-=q;c-=g;
var p=Math.cos(-v),v=Math.sin(-v),f=a*p-c*v;c=c*p+a*v;a=f+q;c+=g}q=1/this.sc(!e);e?(m-=this.b.G*q/2,b-=this.b.F*q/2):(m-=this.b.width*q/2,b-=this.b.height*q/2);m=(a-m)/q;b=(c-b)/q;a=this.b.devicePixelRatio;this.b.wf&&!e&&(m/=a,b/=a);return d?m:b};b.prototype.Tb=function(){var a,c,d,e={s:this.scale,a:this.j,vl:this.wa,vt:this.xa,vr:this.Ba,vb:this.Aa,v:this.visible,bc:this.$c,t:this.nd,px:this.jc,py:this.kc,o:this.opacity,zr:this.Wb,fx:[],cg:this.qh,instances:[]};a=0;for(c=this.M.length;a<c;a++)d=
this.M[a],e.fx.push({name:d.name,active:d.Ua,params:this.Pa[d.index]});return e};b.prototype.ic=function(a){var c,d,e;this.scale=a.s;this.j=a.a;this.wa=a.vl;this.xa=a.vt;this.Ba=a.vr;this.Aa=a.vb;this.visible=a.v;this.$c=a.bc;this.nd=a.t;this.jc=a.px;this.kc=a.py;this.opacity=a.o;this.Wb=a.zr;this.qh=a.cg||[];Da(this.Ic,this.yq);var b=new ha;c=0;for(e=this.qh.length;c<e;++c)b.add(this.qh[c]);d=c=0;for(e=this.Ic.length;c<e;++c)b.contains(this.Ic[c][2])||(this.Ic[d]=this.Ic[c],++d);Ca(this.Ic,d);d=
a.fx;c=0;for(e=d.length;c<e;c++)if(a=this.Hl(d[c].name))a.Ua=d[c].active,this.Pa[a.index]=d[c].params;this.od();this.e.sort(k);this.Nf=!0};Zb=b})();
(function(){function h(a,e){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===e[0];case 2:return a[0]===e[0]&&a[1]===e[1];default:for(c=0;c<d;c++)if(a[c]!==e[c])return!1;return!0}}function k(a,e){return a.index-e.index}function b(a){var e,c,d,b;2===a.length?a[0].index>a[1].index&&(e=a[0],a[0]=a[1],a[1]=e):2<a.length&&a.sort(k);a.length>=n.length&&(n.length=a.length+1);n[a.length]||(n[a.length]=[]);b=n[a.length];e=0;for(c=b.length;e<c;e++)if(d=b[e],h(a,d))return d;b.push(a);return a}
function u(a,e){this.b=a;this.Iq={};this.Go={};this.Ql=!1;this.Yo=new ha;this.ul=[];this.il=[];this.name=e[0];var c=e[1];this.Le=[];var d,b;d=0;for(b=c.length;d<b;d++)this.Zo(c[d],null,this.Le)}function f(a){this.type=a;this.e=[];this.S=[];this.ga=!0}function r(a,e,c){this.sheet=a;this.parent=e;this.b=a.b;this.ua=[];this.Ze=[];this.Xo=this.Kk=this.en=this.Jj=this.group=this.Xm=!1;this.nb=[];this.Yc=[];this.Wc=[];this.Hh="";this.hg=this.Jj=this.group=!1;this.gj=null;c[1]&&(this.Hh=c[1][1].toLowerCase(),
this.group=!0,this.Jj=!!c[1][0],this.gj=[],this.hg=this.Jj,this.b.Ae.push(this),this.b.Ih[this.Hh]=this);this.Kc=c[2];this.X=c[4];this.group||(this.b.no[this.X.toString()]=this);var d=c[5];a=0;for(e=d.length;a<e;a++){var b=new $b(this,d[a]);b.index=a;this.nb.push(b);this.ho(b.type)}d=c[6];a=0;for(e=d.length;a<e;a++)b=new ac(this,d[a]),b.index=a,this.Yc.push(b);if(8===c.length)for(c=c[7],a=0,e=c.length;a<e;a++)this.sheet.Zo(c[a],this,this.Wc);this.Rj=!1;this.nb.length&&(this.Rj=null==this.nb[0].type&&
this.nb[0].Ib==G.prototype.g.wn)}function t(a,e){var c,d,b;if(a&&(-1===e.indexOf(a)&&e.push(a),a.Zb))for(c=0,d=a.rc.length;c<d;c++)b=a.rc[c],a!==b&&-1===e.indexOf(b)&&e.push(b)}function p(a,e){this.Cc=a;this.sheet=a.sheet;this.b=a.b;this.Ca=[];this.Qa=[];this.Y={};this.index=-1;this.gh=!1;this.Ib=this.b.ve(e[1]);this.trigger=0<e[3];this.Fo=2===e[3];this.Cd=e[4];this.jg=e[5];this.Bv=e[6];this.X=e[7];this.b.Ge[this.X.toString()]=this;-1===e[0]?(this.type=null,this.fb=this.Pm,this.ef=null,this.ad=-1):
(this.type=this.b.A[e[0]],this.fb=this.Bv?this.vw:this.Om,e[2]?(this.ef=this.type.Bj(e[2]),this.ad=this.type.Gl(e[2])):(this.ef=null,this.ad=-1),this.Cc.parent&&this.Cc.parent.Bk());this.Fo&&(this.fb=this.ww);if(10===e.length){var c,d,b=e[9];c=0;for(d=b.length;c<d;c++){var m=new bc(this,b[c]);this.Ca.push(m)}this.Qa.length=b.length}}function d(a,e){this.Cc=a;this.sheet=a.sheet;this.b=a.b;this.Ca=[];this.Qa=[];this.Y={};this.index=-1;this.gh=!1;this.Ib=this.b.ve(e[1]);-1===e[0]?(this.type=null,this.fb=
this.Pm,this.ef=null,this.ad=-1):(this.type=this.b.A[e[0]],this.fb=this.Om,e[2]?(this.ef=this.type.Bj(e[2]),this.ad=this.type.Gl(e[2])):(this.ef=null,this.ad=-1));this.X=e[3];this.b.ye[this.X.toString()]=this;if(6===e.length){var c,d,b=e[5];c=0;for(d=b.length;c<d;c++){var m=new bc(this,b[c]);this.Ca.push(m)}this.Qa.length=b.length}}function q(){S++;m.length===S&&m.push(new cc);return m[S]}function a(a,e){this.Uc=a;this.Cc=a.Cc;this.sheet=a.sheet;this.b=a.b;this.type=e[0];this.vd=null;this.oe=0;this.get=
null;this.vo=0;this.Db=null;this.key=0;this.object=null;this.index=0;this.Di=this.If=this.Di=this.If=this.Jo=this.qf=this.Ei=null;this.Xc=!1;var c,d,b;switch(e[0]){case 0:case 7:this.vd=new dc(this,e[1]);this.oe=0;this.get=this.Tu;break;case 1:this.vd=new dc(this,e[1]);this.oe=0;this.get=this.Uu;break;case 5:this.vd=new dc(this,e[1]);this.oe=0;this.get=this.Yu;break;case 3:case 8:this.vo=e[1];this.get=this.Ru;break;case 6:this.Db=this.b.fm[e[1]];this.get=this.Zu;break;case 9:this.key=e[1];this.get=
this.Xu;break;case 4:this.object=this.b.A[e[1]];this.get=this.$u;this.Cc.ho(this.object);this.Uc instanceof ac?this.Cc.Bk():this.Cc.parent&&this.Cc.parent.Bk();break;case 10:this.index=e[1];a.type&&a.type.J?(this.get=this.Vu,this.Xc=!0):this.get=this.Wu;break;case 11:this.Ei=e[1];this.qf=null;this.get=this.Su;break;case 2:case 12:this.Jo=e[1];this.get=this.Qu;break;case 13:for(this.get=this.av,this.If=[],this.Di=[],c=1,d=e.length;c<d;c++)b=new bc(this.Uc,e[c]),this.If.push(b),this.Di.push(0)}}function c(a,
e,c){this.sheet=a;this.parent=e;this.b=a.b;this.ua=[];this.name=c[1];this.Fi=c[2];this.Ij=c[3];this.Uh=!!c[4];this.Qj=!!c[5];this.X=c[6];this.b.$g[this.X.toString()]=this;this.data=this.Ij;this.parent?(this.Df=this.Uh||this.Qj?-1:this.b.Kw++,this.b.mt.push(this)):(this.Df=-1,this.b.hl.push(this))}function l(a,e,c){this.sheet=a;this.parent=e;this.b=a.b;this.ua=[];this.Kh=null;this.hv=c[1];this.Ua=!0}function e(){this.Aq=[];this.reset(null)}var n=[];u.prototype.toString=function(){return this.name};
u.prototype.Zo=function(a,e,c){switch(a[0]){case 0:a=new ec(this,e,a);if(a.Kc)for(c.push(a),c=0,e=a.nb.length;c<e;c++)a.nb[c].trigger&&this.$o(a,c);else a.lp()?this.$o(a,0):c.push(a);break;case 1:a=new Wb(this,e,a);c.push(a);break;case 2:a=new fc(this,e,a),c.push(a)}};u.prototype.Ya=function(){var a,e;a=0;for(e=this.Le.length;a<e;a++)this.Le[a].Ya(a<e-1&&this.Le[a+1].Rj)};u.prototype.mn=function(){A(this.ul);A(this.il);this.fo(this);A(this.il)};u.prototype.fo=function(a){var e,c,d,b,m=a.ul,n=a.il,
l=this.Yo.bf();e=0;for(c=l.length;e<c;++e)d=l[e],b=d.Kh,!d.Ua||a===b||-1<n.indexOf(b)||(n.push(b),b.fo(a),m.push(b))};u.prototype.fb=function(a){this.b.Zy||(this.Ql=!0,a||(this.b.Zl=!0));var e,c;e=0;for(c=this.Le.length;e<c;e++){var d=this.Le[e];d.fb();this.b.pl(d.ua);this.b.Oe&&this.b.Mb()}a||(this.b.Zl=!1)};u.prototype.$o=function(a,e){a.Kc||this.b.Nk.push(a);var c,d,b=a.nb[e],m;b.type?m=b.type.name:m="system";var n=(c=b.Fo)?this.Go:this.Iq;n[m]||(n[m]=[]);m=n[m];n=b.Ib;if(c){if(b.Ca.length&&(b=
b.Ca[0],1===b.type&&2===b.vd.type)){b=b.vd.value.toLowerCase();c=0;for(d=m.length;c<d;c++)if(m[c].method==n){c=m[c].uh;c[b]?c[b].push([a,e]):c[b]=[[a,e]];return}c={};c[b]=[[a,e]];m.push({method:n,uh:c})}}else{c=0;for(d=m.length;c<d;c++)if(m[c].method==n){m[c].uh.push([a,e]);return}P&&n===P.prototype.g.Qf?m.unshift({method:n,uh:[[a,e]]}):m.push({method:n,uh:[[a,e]]})}};Mb=u;f.prototype.Pl=function(){return this.ga?this.type.e.length:this.e.length};f.prototype.Hc=function(){return this.ga?this.type.e:
this.e};f.prototype.hi=function(a){a&&(a.b.ab().ob.Kc?(this.ga&&(A(this.e),Da(this.S,a.type.e),this.ga=!1),a=this.S.indexOf(a),-1!==a&&(this.e.push(this.S[a]),this.S.splice(a,1))):(this.ga=!1,A(this.e),this.e[0]=a))};pb=f;window._c2hh_="86F88C456475D7C400FD8F556CE1D94911E95996";r.prototype.Ya=function(a){var e,c=this.parent;if(this.group)for(this.Kk=!0;c;){if(!c.group){this.Kk=!1;break}c=c.parent}this.en=!this.lp()&&(!this.parent||this.parent.group&&this.parent.Kk);this.Xo=!!a;this.Ze=this.ua.slice(0);
for(c=this.parent;c;){a=0;for(e=c.ua.length;a<e;a++)this.lt(c.ua[a]);c=c.parent}this.ua=b(this.ua);this.Ze=b(this.Ze);a=0;for(e=this.nb.length;a<e;a++)this.nb[a].Ya();a=0;for(e=this.Yc.length;a<e;a++)this.Yc[a].Ya();a=0;for(e=this.Wc.length;a<e;a++)this.Wc[a].Ya(a<e-1&&this.Wc[a+1].Rj)};r.prototype.mq=function(a){if(this.hg!==!!a){this.hg=!!a;var e;a=0;for(e=this.gj.length;a<e;++a)this.gj[a].Mq();0<e&&this.b.ta.pf&&this.b.ta.pf.mn()}};r.prototype.ho=function(a){t(a,this.ua)};r.prototype.lt=function(a){t(a,
this.Ze)};r.prototype.Bk=function(){this.Xm=!0;this.parent&&this.parent.Bk()};r.prototype.lp=function(){return this.nb.length?this.nb[0].trigger:!1};r.prototype.fb=function(){var a,e,c=!1,d=this.b,b=this.b.ab();b.ob=this;var m=this.nb;this.Rj||(b.zl=!1);if(this.Kc){0===m.length&&(c=!0);b.Za=0;for(a=m.length;b.Za<a;b.Za++)e=m[b.Za],e.trigger||(e=e.fb())&&(c=!0);(b.zf=c)&&this.wk()}else{b.Za=0;for(a=m.length;b.Za<a;b.Za++)if(e=m[b.Za].fb(),!e){b.zf=!1;this.en&&d.Oe&&d.Mb();return}b.zf=!0;this.wk()}this.Ut(b)};
r.prototype.Ut=function(a){a.zf&&this.Xo&&(a.zl=!0);this.en&&this.b.Oe&&this.b.Mb()};r.prototype.sw=function(a){this.b.ab().ob=this;this.nb[a].fb()&&(this.wk(),this.b.ab().zf=!0)};r.prototype.wk=function(){var a=this.b.ab(),e;a.pc=0;for(e=this.Yc.length;a.pc<e;a.pc++)if(this.Yc[a.pc].fb())return;this.iq()};r.prototype.pw=function(){var a=this.b.ab(),e;for(e=this.Yc.length;a.pc<e;a.pc++)if(this.Yc[a.pc].fb())return;this.iq()};r.prototype.iq=function(){if(this.Wc.length){var a,e,c,d,b=this.Wc.length-
1;this.b.sk(this);if(this.Xm)for(a=0,e=this.Wc.length;a<e;a++)c=this.Wc[a],(d=!this.Kk||!this.group&&a<b)&&this.b.ki(c.ua),c.fb(),d?this.b.We(c.ua):this.b.pl(c.ua);else for(a=0,e=this.Wc.length;a<e;a++)this.Wc[a].fb();this.b.ok()}};r.prototype.uw=function(){var a=this.b.ab();a.ob=this;var e=!1,c;a.Za=0;for(c=this.nb.length;a.Za<c;a.Za++)if(this.nb[a.Za].fb())e=!0;else if(!this.Kc)return!1;return this.Kc?e:!0};r.prototype.uk=function(){this.b.vh++;var a=this.b.ab().Za,e=this.b.sk(this);if(!this.Kc)for(e.Za=
a+1,a=this.nb.length;e.Za<a;e.Za++)if(!this.nb[e.Za].fb()){this.b.ok();return}this.wk();this.b.ok()};r.prototype.tv=function(a){var e=a.index;if(0===e)return!0;for(--e;0<=e;--e)if(this.nb[e].type===a.type)return!1;return!0};ec=r;p.prototype.Ya=function(){var a,e,c;a=0;for(e=this.Ca.length;a<e;a++)c=this.Ca[a],c.Ya(),c.Xc&&(this.gh=!0)};p.prototype.ww=function(){return!0};p.prototype.Pm=function(){var a,e;a=0;for(e=this.Ca.length;a<e;a++)this.Qa[a]=this.Ca[a].get();return Va(this.Ib.apply(this.b.Jd,
this.Qa),this.jg)};p.prototype.vw=function(){var a,e;a=0;for(e=this.Ca.length;a<e;a++)this.Qa[a]=this.Ca[a].get();a=this.Ib.apply(this.ef?this.ef:this.type,this.Qa);this.type.Rd();return a};p.prototype.Om=function(){var a,e,c,d,b,m,n,l,q=this.type,p=q.W(),f=this.Cc.Kc&&!this.trigger;e=0;var k=q.Zb,h=q.J,t=q.Xd,u=this.ad,r=-1<u,S=this.gh,B=this.Ca,L=this.Qa,M=this.jg,z=this.Ib,N;if(S)for(e=0,b=B.length;e<b;++e)m=B[e],m.Xc||(L[e]=m.get(0));else for(e=0,b=B.length;e<b;++e)L[e]=B[e].get(0);if(p.ga){A(p.e);
A(p.S);N=q.e;a=0;for(d=N.length;a<d;++a){l=N[a];if(S)for(e=0,b=B.length;e<b;++e)m=B[e],m.Xc&&(L[e]=m.get(a));r?(e=0,h&&(e=l.type.dg[t]),e=z.apply(l.L[u+e],L)):e=z.apply(l,L);(n=Va(e,M))?p.e.push(l):f&&p.S.push(l)}q.finish&&q.finish(!0);p.ga=!1;q.Rd();return p.Pl()}c=0;N=(n=f&&!this.Cc.tv(this))?p.S:p.e;var C=!1;a=0;for(d=N.length;a<d;++a){l=N[a];if(S)for(e=0,b=B.length;e<b;++e)m=B[e],m.Xc&&(L[e]=m.get(a));r?(e=0,h&&(e=l.type.dg[t]),e=z.apply(l.L[u+e],L)):e=z.apply(l,L);if(Va(e,M))if(C=!0,n){if(p.e.push(l),
k)for(e=0,b=l.siblings.length;e<b;e++)m=l.siblings[e],m.type.W().e.push(m)}else{N[c]=l;if(k)for(e=0,b=l.siblings.length;e<b;e++)m=l.siblings[e],m.type.W().e[c]=m;c++}else if(n){N[c]=l;if(k)for(e=0,b=l.siblings.length;e<b;e++)m=l.siblings[e],m.type.W().S[c]=m;c++}else if(f&&(p.S.push(l),k))for(e=0,b=l.siblings.length;e<b;e++)m=l.siblings[e],m.type.W().S.push(m)}Ca(N,c);if(k)for(h=q.rc,a=0,d=h.length;a<d;a++)l=h[a].W(),n?Ca(l.S,c):Ca(l.e,c);c=C;if(n&&!C)for(a=0,d=p.e.length;a<d;a++){l=p.e[a];if(S)for(e=
0,b=B.length;e<b;e++)m=B[e],m.Xc&&(L[e]=m.get(a));e=r?z.apply(l.L[u],L):z.apply(l,L);if(Va(e,M)){C=!0;break}}q.finish&&q.finish(c||f);return f?C:p.Pl()};$b=p;d.prototype.Ya=function(){var a,e,c;a=0;for(e=this.Ca.length;a<e;a++)c=this.Ca[a],c.Ya(),c.Xc&&(this.gh=!0)};d.prototype.Pm=function(){var a=this.b,e,c,d=this.Ca,b=this.Qa;e=0;for(c=d.length;e<c;++e)b[e]=d[e].get();return this.Ib.apply(a.Jd,b)};d.prototype.Om=function(){var a=this.type,e=this.ad,c=a.Xd,d=this.gh,b=this.Ca,m=this.Qa,n=this.Ib,
l=a.W().Hc(),a=a.J,q=-1<e,p,f,k,h,t,u;if(d)for(f=0,h=b.length;f<h;++f)t=b[f],t.Xc||(m[f]=t.get(0));else for(f=0,h=b.length;f<h;++f)m[f]=b[f].get(0);p=0;for(k=l.length;p<k;++p){u=l[p];if(d)for(f=0,h=b.length;f<h;++f)t=b[f],t.Xc&&(m[f]=t.get(p));q?(f=0,a&&(f=u.type.dg[c]),n.apply(u.L[e+f],m)):n.apply(u,m)}return!1};ac=d;var m=[],S=-1;a.prototype.Ya=function(){var a,e;if(11===this.type)this.qf=this.b.Ro(this.Ei,this.Cc.parent);else if(13===this.type)for(a=0,e=this.If.length;a<e;a++)this.If[a].Ya();this.vd&&
this.vd.Ya()};a.prototype.Jv=function(a){this.Xc||!a||a.pa.Ek||(this.Xc=!0)};a.prototype.pq=function(){this.Xc=!0};a.prototype.Tu=function(a){this.oe=a||0;a=q();this.vd.get(a);S--;return a.data};a.prototype.Uu=function(a){this.oe=a||0;a=q();this.vd.get(a);S--;return na(a.data)?a.data:""};a.prototype.$u=function(){return this.object};a.prototype.Ru=function(){return this.vo};a.prototype.Yu=function(a){this.oe=a||0;a=q();this.vd.get(a);S--;return a.Bb()?this.b.xd(a.data):this.b.fg(a.data)};a.prototype.Zu=
function(){return this.Db};a.prototype.Xu=function(){return this.key};a.prototype.Wu=function(){return this.index};a.prototype.Vu=function(a){a=a||0;var e=this.Uc.type,c=null,c=e.W(),d=c.Hc();if(d.length)c=d[a%d.length].type;else if(c.S.length)c=c.S[a%c.S.length].type;else if(e.e.length)c=e.e[a%e.e.length].type;else return 0;return this.index+c.sj[e.Xd]};a.prototype.Su=function(){return this.qf};a.prototype.Qu=function(){return this.Jo};a.prototype.av=function(){var a,e;a=0;for(e=this.If.length;a<
e;a++)this.Di[a]=this.If[a].get();return this.Di};bc=a;c.prototype.Ya=function(){this.ua=b(this.ua)};c.prototype.me=function(a){var e=this.b.Oo();this.parent&&!this.Uh&&e?(this.Df>=e.length&&(e.length=this.Df+1),e[this.Df]=a):this.data=a};c.prototype.rf=function(){var a=this.b.Oo();return!this.parent||this.Uh||!a||this.Qj?this.data:this.Df>=a.length||"undefined"===typeof a[this.Df]?this.Ij:a[this.Df]};c.prototype.fb=function(){!this.parent||this.Uh||this.Qj||this.me(this.Ij)};Wb=c;l.prototype.toString=
function(){return"include:"+this.Kh.toString()};l.prototype.Ya=function(){this.Kh=this.b.Bl[this.hv];this.sheet.Yo.add(this);this.ua=b(this.ua);for(var a=this.parent;a;)a.group&&a.gj.push(this),a=a.parent;this.Mq()};l.prototype.fb=function(){this.parent&&this.b.ji(this.b.A);this.Kh.Ql||this.Kh.fb(!0);this.parent&&this.b.We(this.b.A)};l.prototype.Mq=function(){for(var a=this.parent;a;){if(a.group&&!a.hg){this.Ua=!1;return}a=a.parent}this.Ua=!0};fc=l;e.prototype.reset=function(a){this.ob=a;this.pc=
this.Za=0;A(this.Aq);this.zl=this.zf=!1};e.prototype.hp=function(){return this.ob.Xm?!0:this.Za<this.ob.nb.length-1?!!this.ob.ua.length:!1};Vb=e})();
(function(){function h(b,p){this.Uc=b;this.b=b.b;this.type=p[0];this.get=[this.lu,this.hu,this.uu,this.xu,this.Xt,this.vu,this.pu,this.eu,this.ou,this.tu,this.Yt,this.su,this.fu,this.qu,this.mu,this.nu,this.iu,this.ju,this.du,this.wu,this.ru,this.ku,this.cu,this.gu][this.type];var d=null;this.he=this.Ca=this.Qa=this.Ib=this.Jk=this.second=this.first=this.value=null;this.ad=-1;this.ed=null;this.Rq=-1;this.qf=this.Ei=null;this.Lg=!1;switch(this.type){case 0:case 1:case 2:this.value=p[1];break;case 3:this.first=
new dc(b,p[1]);break;case 18:this.first=new dc(b,p[1]);this.second=new dc(b,p[2]);this.Jk=new dc(b,p[3]);break;case 19:this.Ib=this.b.ve(p[1]);this.Ib!==G.prototype.D.random&&this.Ib!==G.prototype.D.to||this.Uc.pq();this.Qa=[];this.Ca=[];3===p.length?(d=p[2],this.Qa.length=d.length+1):this.Qa.length=1;break;case 20:this.he=this.b.A[p[1]];this.ad=-1;this.Ib=this.b.ve(p[2]);this.Lg=p[3];kc&&this.Ib===kc.prototype.D.Xq&&this.Uc.pq();p[4]?this.ed=new dc(b,p[4]):this.ed=null;this.Qa=[];this.Ca=[];6===
p.length?(d=p[5],this.Qa.length=d.length+1):this.Qa.length=1;break;case 21:this.he=this.b.A[p[1]];this.Lg=p[2];p[3]?this.ed=new dc(b,p[3]):this.ed=null;this.Rq=p[4];break;case 22:this.he=this.b.A[p[1]];this.he.Bj(p[2]);this.ad=this.he.Gl(p[2]);this.Ib=this.b.ve(p[3]);this.Lg=p[4];p[5]?this.ed=new dc(b,p[5]):this.ed=null;this.Qa=[];this.Ca=[];7===p.length?(d=p[6],this.Qa.length=d.length+1):this.Qa.length=1;break;case 23:this.Ei=p[1],this.qf=null}this.Uc.Jv(this.he);4<=this.type&&17>=this.type&&(this.first=
new dc(b,p[1]),this.second=new dc(b,p[2]));if(d){var q,a;q=0;for(a=d.length;q<a;q++)this.Ca.push(new dc(b,d[q]))}}function k(){++r;f.length===r&&f.push(new cc);return f[r]}function b(b,p,d){var q,a;q=0;for(a=b.length;q<a;++q)b[q].get(d),p[q+1]=d.data}function u(b,p){this.type=b||gc.Pf;this.data=p||0;this.Gf=null;this.type==gc.Pf&&(this.data=Math.floor(this.data))}h.prototype.Ya=function(){23===this.type&&(this.qf=this.Uc.b.Ro(this.Ei,this.Uc.Cc.parent));this.first&&this.first.Ya();this.second&&this.second.Ya();
this.Jk&&this.Jk.Ya();this.ed&&this.ed.Ya();if(this.Ca){var b,p;b=0;for(p=this.Ca.length;b<p;b++)this.Ca[b].Ya()}};var f=[],r=-1;h.prototype.wu=function(f){var p=this.Ca,d=this.Qa;d[0]=f;f=k();b(p,d,f);--r;this.Ib.apply(this.b.Jd,d)};h.prototype.ru=function(f){var p=this.he,d=this.Qa,q=this.Ca,a=this.ed,c=this.Ib,l=this.Uc.oe,e=p.W(),n=e.Hc();if(!n.length)if(e.S.length)n=e.S;else{this.Lg?f.Ub(""):f.ba(0);return}d[0]=f;f.Gf=p;f=k();b(q,d,f);a&&(a.get(f),f.Bb()&&(l=f.data,n=p.e));--r;p=n.length;if(l>=
p||l<=-p)l%=p;0>l&&(l+=p);c.apply(n[l],d)};h.prototype.cu=function(f){var p=this.he,d=this.Qa,q=this.Ca,a=this.ed,c=this.ad,l=this.Ib,e=this.Uc.oe,n=p.W(),m=n.Hc();if(!m.length)if(n.S.length)m=n.S;else{this.Lg?f.Ub(""):f.ba(0);return}d[0]=f;f.Gf=p;f=k();b(q,d,f);a&&(a.get(f),f.Bb()&&(e=f.data,m=p.e));--r;q=m.length;if(e>=q||e<=-q)e%=q;0>e&&(e+=q);e=m[e];m=0;p.J&&(m=e.type.dg[p.Xd]);l.apply(e.L[c+m],d)};h.prototype.ku=function(b){var f=this.ed,d=this.he,q=this.Rq,a=this.Uc.oe,c=d.W(),l=c.Hc();if(!l.length)if(c.S.length)l=
c.S;else{this.Lg?b.Ub(""):b.ba(0);return}if(f){c=k();f.get(c);if(c.Bb()){a=c.data;l=d.e;0!==l.length&&(a%=l.length,0>a&&(a+=l.length));a=d.Jl(a);d=a.rb[q];na(d)?b.Ub(d):b.u(d);--r;return}--r}f=l.length;if(a>=f||a<=-f)a%=f;0>a&&(a+=f);a=l[a];l=0;d.J&&(l=a.type.sj[d.Xd]);d=a.rb[q+l];na(d)?b.Ub(d):b.u(d)};h.prototype.lu=function(b){b.type=gc.Pf;b.data=this.value};h.prototype.hu=function(b){b.type=gc.Of;b.data=this.value};h.prototype.uu=function(b){b.type=gc.String;b.data=this.value};h.prototype.xu=function(b){this.first.get(b);
b.Bb()&&(b.data=-b.data)};h.prototype.Xt=function(b){this.first.get(b);var f=k();this.second.get(f);b.Bb()&&f.Bb()&&(b.data+=f.data,f.ng()&&b.xg());--r};h.prototype.vu=function(b){this.first.get(b);var f=k();this.second.get(f);b.Bb()&&f.Bb()&&(b.data-=f.data,f.ng()&&b.xg());--r};h.prototype.pu=function(b){this.first.get(b);var f=k();this.second.get(f);b.Bb()&&f.Bb()&&(b.data*=f.data,f.ng()&&b.xg());--r};h.prototype.eu=function(b){this.first.get(b);var f=k();this.second.get(f);b.Bb()&&f.Bb()&&(b.data/=
f.data,b.xg());--r};h.prototype.ou=function(b){this.first.get(b);var f=k();this.second.get(f);b.Bb()&&f.Bb()&&(b.data%=f.data,f.ng()&&b.xg());--r};h.prototype.tu=function(b){this.first.get(b);var f=k();this.second.get(f);b.Bb()&&f.Bb()&&(b.data=Math.pow(b.data,f.data),f.ng()&&b.xg());--r};h.prototype.Yt=function(b){this.first.get(b);var f=k();this.second.get(f);f.rg()||b.rg()?this.$t(b,f):this.Zt(b,f);--r};h.prototype.$t=function(b,f){b.rg()&&f.rg()?this.bu(b,f):this.au(b,f)};h.prototype.bu=function(b,
f){b.data+=f.data};h.prototype.au=function(b,f){b.rg()?b.data+=(Math.round(1E10*f.data)/1E10).toString():b.Ub(b.data.toString()+f.data)};h.prototype.Zt=function(b,f){b.ba(b.data&&f.data?1:0)};h.prototype.su=function(b){this.first.get(b);var f=k();this.second.get(f);b.Bb()&&f.Bb()&&(b.data||f.data?b.ba(1):b.ba(0));--r};h.prototype.du=function(b){this.first.get(b);b.data?this.second.get(b):this.Jk.get(b)};h.prototype.fu=function(b){this.first.get(b);var f=k();this.second.get(f);b.ba(b.data===f.data?
1:0);--r};h.prototype.qu=function(b){this.first.get(b);var f=k();this.second.get(f);b.ba(b.data!==f.data?1:0);--r};h.prototype.mu=function(b){this.first.get(b);var f=k();this.second.get(f);b.ba(b.data<f.data?1:0);--r};h.prototype.nu=function(b){this.first.get(b);var f=k();this.second.get(f);b.ba(b.data<=f.data?1:0);--r};h.prototype.iu=function(b){this.first.get(b);var f=k();this.second.get(f);b.ba(b.data>f.data?1:0);--r};h.prototype.ju=function(b){this.first.get(b);var f=k();this.second.get(f);b.ba(b.data>=
f.data?1:0);--r};h.prototype.gu=function(b){var f=this.qf.rf();ma(f)?b.u(f):b.Ub(f)};dc=h;u.prototype.ng=function(){return this.type===gc.Of};u.prototype.Bb=function(){return this.type===gc.Pf||this.type===gc.Of};u.prototype.rg=function(){return this.type===gc.String};u.prototype.xg=function(){this.ng()||(this.rg()&&(this.data=parseFloat(this.data)),this.type=gc.Of)};u.prototype.ba=function(b){this.type=gc.Pf;this.data=Math.floor(b)};u.prototype.u=function(b){this.type=gc.Of;this.data=b};u.prototype.Ub=
function(b){this.type=gc.String;this.data=b};u.prototype.Dk=function(b){ma(b)?(this.type=gc.Of,this.data=b):na(b)?(this.type=gc.String,this.data=b.toString()):(this.type=gc.Pf,this.data=0)};cc=u;gc={Pf:0,Of:1,String:2}})();function G(h){this.b=h;this.oc=[]}
G.prototype.Tb=function(){var h={},k,b,u,f,r,t,p,d;h.waits=[];var q=h.waits,a;k=0;for(b=this.oc.length;k<b;k++){t=this.oc[k];a={t:t.time,st:t.vq,s:t.Wm,ev:t.ag.X,sm:[],sols:{}};t.ag.Yc[t.pc]&&(a.act=t.ag.Yc[t.pc].X);u=0;for(f=t.ua.length;u<f;u++)a.sm.push(t.ua[u].X);for(r in t.cc)if(t.cc.hasOwnProperty(r)){p=this.b.A[parseInt(r,10)];d={sa:t.cc[r].xk,insts:[]};u=0;for(f=t.cc[r].$d.length;u<f;u++)d.insts.push(t.cc[r].$d[u].uid);a.sols[p.X.toString()]=d}q.push(a)}return h};
G.prototype.ic=function(h){h=h.waits;var k,b,u,f,r,t,p,d,q,a,c;A(this.oc);k=0;for(b=h.length;k<b;k++)if(t=h[k],d=this.b.no[t.ev.toString()]){q=-1;u=0;for(f=d.Yc.length;u<f;u++)if(d.Yc[u].X===t.act){q=u;break}if(-1!==q){p={cc:{},ua:[],wl:!1};p.time=t.t;p.vq=t.st||"";p.Wm=!!t.s;p.ag=d;p.pc=q;u=0;for(f=t.sm.length;u<f;u++)(d=this.b.Ej(t.sm[u]))&&p.ua.push(d);for(r in t.sols)if(t.sols.hasOwnProperty(r)&&(d=this.b.Ej(parseInt(r,10)))){q=t.sols[r];a={xk:q.sa,$d:[]};u=0;for(f=q.insts.length;u<f;u++)(c=this.b.Dj(q.insts[u]))&&
a.$d.push(c);p.cc[d.index.toString()]=a}this.oc.push(p)}}};
(function(){function h(){}function k(){}function b(){}var u=G.prototype;h.prototype.jr=function(){return!0};h.prototype.Gn=function(){return!0};h.prototype.gs=function(){return!0};h.prototype.cr=function(d,b,a){return hc(d,b,a)};h.prototype.Lr=function(d){return d?d.visible:!1};h.prototype.Kr=function(d,b,a){return d?hc(100*d.opacity,b,a):!1};h.prototype.As=function(d){var b=this.b.ab(),a=b.ob,c=b.hp(),b=this.b.cq();if(c)for(c=0;c<d&&!b.hb;c++)this.b.ki(a.ua),b.index=c,a.uk(),this.b.We(a.ua);else for(c=
0;c<d&&!b.hb;c++)b.index=c,a.uk();this.b.Xp();return!1};var f=[],r=-1;h.prototype.lr=function(d){var b=d.W();r++;f.length===r&&f.push([]);var a=f[r];Da(a,b.Hc());var c=this.b.ab(),l=c.ob,e=c.hp(),c=this.b.cq(),n,m,p,g,k,h,u=d.Zb;if(e)for(e=0,n=a.length;e<n&&!c.hb;e++){this.b.ki(l.ua);g=a[e];b=d.W();b.ga=!1;A(b.e);b.e[0]=g;if(u)for(m=0,p=g.siblings.length;m<p;m++)k=g.siblings[m],h=k.type.W(),h.ga=!1,A(h.e),h.e[0]=k;c.index=e;l.uk();this.b.We(l.ua)}else for(b.ga=!1,A(b.e),e=0,n=a.length;e<n&&!c.hb;e++){g=
a[e];b.e[0]=g;if(u)for(m=0,p=g.siblings.length;m<p;m++)k=g.siblings[m],h=k.type.W(),h.ga=!1,A(h.e),h.e[0]=k;c.index=e;l.uk()}A(a);this.b.Xp();r--;return!1};h.prototype.bt=function(){var d=this.b.Bh().Y;"undefined"===typeof d.TriggerOnce_lastTick&&(d.TriggerOnce_lastTick=-1);var b=d.TriggerOnce_lastTick,a=this.b.Ld;d.TriggerOnce_lastTick=a;return this.b.em||b!==a-1};h.prototype.ir=function(d){var b=this.b.Bh(),a=b.Y.Every_lastTime||0,c=this.b.Cb.O;"undefined"===typeof b.Y.Every_seconds&&(b.Y.Every_seconds=
d);var l=b.Y.Every_seconds;if(c>=a+l)return b.Y.Every_lastTime=a+l,c>=b.Y.Every_lastTime+.04&&(b.Y.Every_lastTime=c),b.Y.Every_seconds=d,!0;c<a-.1&&(b.Y.Every_lastTime=c);return!1};h.prototype.er=function(d,b,a){return hc(d.rf(),b,a)};h.prototype.yr=function(d){return(d=this.b.Ih[d.toLowerCase()])&&d.hg};h.prototype.wn=function(){var d=this.b.ab();return d.zl?!1:!d.zf};h.prototype.Sk=function(){return!0};h.prototype.Ur=function(){return!0};h.prototype.Tk=function(){return!0};h.prototype.Nn=function(){return!0};
h.prototype.hs=function(){return!0};h.prototype.Mi=function(){return!0};h.prototype.Vq=function(d,b,a){return Pa(D(d),D(a))<=D(b)};h.prototype.ur=function(d,b){return Ra(D(d),D(b))};h.prototype.sr=function(d,b,a){d=Na(d);b=Na(b);a=Na(a);return Ra(a,b)?Ra(d,b)&&!Ra(d,a):!(!Ra(d,b)&&Ra(d,a))};u.g=new h;k.prototype.mr=function(d){this.b.sg||this.b.ff||(this.b.ff=d)};k.prototype.hr=function(d,b,a,c){if(b&&d&&(b=this.b.sl(d,b,a,c))){this.b.fd++;var l;this.b.trigger(Object.getPrototypeOf(d.pa).g.dh,b);
if(b.Zb)for(a=0,c=b.siblings.length;a<c;a++)l=b.siblings[a],this.b.trigger(Object.getPrototypeOf(l.type.pa).g.dh,l);this.b.fd--;d=d.W();d.ga=!1;A(d.e);d.e[0]=b;if(b.Zb)for(a=0,c=b.siblings.length;a<c;a++)l=b.siblings[a],d=l.type.W(),d.ga=!1,A(d.e),d.e[0]=l}};k.prototype.Ps=function(d,b){d&&d.visible!==b&&(d.visible=b,this.b.T=!0)};k.prototype.Os=function(d,b){d&&(b=Ha(b/100,0,1),d.opacity!==b&&(d.opacity=b,this.b.T=!0))};k.prototype.Us=function(b,f){0===b.Fi?ma(f)?b.me(f):b.me(parseFloat(f)):1===
b.Fi&&b.me(f.toString())};k.prototype.Uq=function(b,f){0===b.Fi?ma(f)?b.me(b.rf()+f):b.me(b.rf()+parseFloat(f)):1===b.Fi&&b.me(b.rf()+f.toString())};k.prototype.$s=function(b,f){0===b.Fi&&(ma(f)?b.me(b.rf()-f):b.me(b.rf()-parseFloat(f)))};k.prototype.Ts=function(b){0>b&&(b=0);this.b.Jf=b};var t=[],p=[];k.prototype.dt=function(b){if(!(0>b)){var f,a,c,l=this.b.ab(),e;t.length?e=t.pop():e={cc:{},ua:[]};e.wl=!1;e.time=this.b.Cb.O+b;e.vq="";e.Wm=!1;e.ag=l.ob;e.pc=l.pc+1;b=0;for(f=this.b.A.length;b<f;b++)c=
this.b.A[b],a=c.W(),a.ga&&-1===l.ob.ua.indexOf(c)||(e.ua.push(c),c=void 0,p.length?c=p.pop():c={$d:[]},c.xk=!1,c.xk=a.ga,Da(c.$d,a.e),e.cc[b.toString()]=c);this.oc.push(e);return!0}};k.prototype.Cs=function(){var b,f,a;b=0;for(f=this.b.hl.length;b<f;b++)a=this.b.hl[b],a.data=a.Ij};k.prototype.Ds=function(){if(!this.b.sg&&!this.b.ff&&this.b.ta){this.b.ff=this.b.ta;var b,f,a;b=0;for(f=this.b.Ae.length;b<f;b++)a=this.b.Ae[b],a.mq(a.Jj)}};u.n=new k;b.prototype["int"]=function(b,f){na(f)?(b.ba(parseInt(f,
10)),isNaN(b.data)&&(b.data=0)):b.ba(f)};b.prototype["float"]=function(b,f){na(f)?(b.u(parseFloat(f)),isNaN(b.data)&&(b.data=0)):b.u(f)};b.prototype.random=function(b,f,a){void 0===a?b.u(Math.random()*f):b.u(Math.random()*(a-f)+f)};b.prototype.sqrt=function(b,f){b.u(Math.sqrt(f))};b.prototype.abs=function(b,f){b.u(Math.abs(f))};b.prototype.round=function(b,f){b.ba(Math.round(f))};b.prototype.floor=function(b,f){b.ba(Math.floor(f))};b.prototype.ceil=function(b,f){b.ba(Math.ceil(f))};b.prototype.sin=
function(b,f){b.u(Math.sin(D(f)))};b.prototype.cos=function(b,f){b.u(Math.cos(D(f)))};b.prototype.tan=function(b,f){b.u(Math.tan(D(f)))};b.prototype.asin=function(b,f){b.u(Ia(Math.asin(f)))};b.prototype.acos=function(b,f){b.u(Ia(Math.acos(f)))};b.prototype.atan=function(b,f){b.u(Ia(Math.atan(f)))};b.prototype.exp=function(b,f){b.u(Math.exp(f))};b.prototype.log10=function(b,f){b.u(Math.log(f)/Math.LN10)};b.prototype.max=function(b){var f=arguments[1];"number"!==typeof f&&(f=0);var a,c,l;a=2;for(c=
arguments.length;a<c;a++)l=arguments[a],"number"===typeof l&&f<l&&(f=l);b.u(f)};b.prototype.min=function(b){var f=arguments[1];"number"!==typeof f&&(f=0);var a,c,l;a=2;for(c=arguments.length;a<c;a++)l=arguments[a],"number"===typeof l&&f>l&&(f=l);b.u(f)};b.prototype.Ke=function(b){b.u(this.b.Ke)};b.prototype.Jf=function(b){b.u(this.b.Jf)};b.prototype.time=function(b){b.u(this.b.Cb.O)};b.prototype.Ld=function(b){b.ba(this.b.Ld)};b.prototype.ck=function(b){b.ba(this.b.ck)};b.prototype.El=function(b){b.ba(this.b.El)};
b.prototype.Gv=function(b,f){var a,c;if(this.b.Zh.length)if(f){for(c=this.b.$h;0<=c;--c)if(a=this.b.Zh[c],a.name===f){b.ba(a.index);return}b.ba(0)}else a=this.b.Po(),b.ba(a?a.index:-1);else b.ba(0)};b.prototype.j=function(b,f,a,c,l){b.u(Ia(Oa(f,a,c,l)))};b.prototype.Mv=function(b){b.Ub("\n")};b.prototype.jx=function(b){b.ba(this.b.width)};b.prototype.ix=function(b){b.ba(this.b.height)};b.prototype.Cv=function(b,f){var a=this.b.Eh(f);a?b.u(100*a.opacity):b.u(0)};b.prototype.left=function(b,f,a){b.Ub(na(f)?
f.substr(0,a):"")};b.prototype.right=function(b,f,a){b.Ub(na(f)?f.substr(f.length-a):"")};b.prototype.replace=function(b,f,a,c){na(f)&&na(a)&&na(c)?b.Ub(f.replace(new RegExp(fb(a),"gi"),c)):b.Ub(na(f)?f:"")};b.prototype.trim=function(b,f){b.Ub(na(f)?f.trim():"")};b.prototype.to=function(b){var f=ua(Math.random()*(arguments.length-1));b.Dk(arguments[f+1])};b.prototype.rl=function(b){b.u(this.b.rl/1E3)};b.prototype.bx=function(b,f){var a=this.b.Eh(f);b.u(a?a.wa:0)};b.prototype.dx=function(b,f){var a=
this.b.Eh(f);b.u(a?a.xa:0)};b.prototype.cx=function(b,f){var a=this.b.Eh(f);b.u(a?a.Ba:0)};b.prototype.ax=function(b,f){var a=this.b.Eh(f);b.u(a?a.Aa:0)};b.prototype.wg=function(b){b.u(this.b.wg)};u.D=new b;u.rw=function(){var b,f,a,c,l,e,n=this.b.ab();b=0;for(a=this.oc.length;b<a;b++){c=this.oc[b];if(-1===c.time){if(!c.Wm)continue}else if(c.time>this.b.Cb.O)continue;n.ob=c.ag;n.pc=c.pc;n.Za=0;for(f in c.cc)c.cc.hasOwnProperty(f)&&(l=this.b.A[parseInt(f,10)].W(),e=c.cc[f],l.ga=e.xk,Da(l.e,e.$d),l=
e,A(l.$d),p.push(l));c.ag.pw();this.b.pl(c.ua);c.wl=!0}f=b=0;for(a=this.oc.length;b<a;b++)c=this.oc[b],this.oc[f]=c,c.wl?(Ya(c.cc),A(c.ua),t.push(c)):f++;Ca(this.oc,f)}})();
(function(){ob=function(k,b){var h=k[1],f=k[3],r=k[4],t=k[5],p=k[6],d=k[7],q=k[8];b.g||(b.g={});b.n||(b.n={});b.D||(b.D={});var a=b.g,c=b.n,l=b.D;f&&(a.fr=function(a,b){return hc(this.x,a,b)},a.yx=function(a,b){return hc(this.y,a,b)},a.Cx=function(){var a=this.k;this.za();var b=this.Va;return!(b.right<a.wa||b.bottom<a.xa||b.left>a.Ba||b.top>a.Aa)},a.Br=function(){this.za();var a=this.Va,b=this.b.ta;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Nx=function(a,b,c){var d=this.W(),g=
d.Hc();if(!g.length)return!1;var f=g[0],l=f,q=Ua(f.x,f.y,b,c),p,k,h;p=1;for(k=g.length;p<k;p++)if(f=g[p],h=Ua(f.x,f.y,b,c),0===a&&h<q||1===a&&h>q)q=h,l=f;d.hi(l);return!0},c.Wn=function(a){this.x!==a&&(this.x=a,this.Ra())},c.jy=function(a){this.y!==a&&(this.y=a,this.Ra())},c.Tn=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Ra()},c.Wk=function(a,b){var c=a.Ou(this);if(c){var d;c.Dh?(d=c.Dh(b,!0),c=c.Dh(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.Ra()}},c.Gx=
function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.Ra())},c.Fx=function(a,b){0!==b&&(this.x+=Math.cos(D(a))*b,this.y+=Math.sin(D(a))*b,this.Ra())},l.bl=function(a){a.u(this.x)},l.cl=function(a){a.u(this.y)},l.Ke=function(a){a.u(this.b.Ch(this))});r&&(a.xx=function(a,b){return hc(this.width,a,b)},a.ux=function(a,b){return hc(this.height,a,b)},c.Vn=function(a){this.width!==a&&(this.width=a,this.Ra())},c.Ms=function(a){this.height!==a&&(this.height=a,this.Ra())},c.fy=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Ra()},l.Yn=function(a){a.u(this.width)},l.xn=function(a){a.u(this.height)},l.qx=function(a){this.za();a.u(this.Va.left)},l.tx=function(a){this.za();a.u(this.Va.top)},l.rx=function(a){this.za();a.u(this.Va.right)},l.ox=function(a){this.za();a.u(this.Va.bottom)});t&&(a.Vq=function(a,b){return Pa(this.j,D(b))<=D(a)},a.ur=function(a){return Ra(this.j,D(a))},a.sr=function(a,b){var c=Na(a),d=Na(b),g=Ka(this.j);return Ra(d,c)?Ra(g,c)&&
!Ra(g,d):!(!Ra(g,c)&&Ra(g,d))},c.Gs=function(a){a=D(Ja(a));isNaN(a)||this.j===a||(this.j=a,this.Ra())},c.Fs=function(a){0===a||isNaN(a)||(this.j+=D(a),this.j=Ka(this.j),this.Ra())},c.Ux=function(a){0===a||isNaN(a)||(this.j-=D(a),this.j=Ka(this.j),this.Ra())},c.Vx=function(a,b){var c=Qa(this.j,D(b),D(a));isNaN(c)||this.j===c||(this.j=c,this.Ra())},c.Wx=function(a,b,c){a=Qa(this.j,Math.atan2(c-this.y,b-this.x),D(a));isNaN(a)||this.j===a||(this.j=a,this.Ra())},c.gy=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.j===c||(this.j=c,this.Ra())},l.nx=function(a){a.u(Ma(this.j))});h||(a.dr=function(a,b,c){return hc(this.rb[a],b,c)},a.tr=function(a){return this.rb[a]},a.Ox=function(a,b){var c=this.W(),d=c.Hc();if(!d.length)return!1;var g=d[0],f=g,l=g.rb[b],q,p,k;q=1;for(p=d.length;q<p;q++)if(g=d[q],k=g.rb[b],0===a&&k<l||1===a&&k>l)l=k,f=g;c.hi(f);return!0},a.Mx=function(a){var b,c,d,g,f;if(this.b.Bh().jg){f=this.W();if(f.ga)for(f.ga=!1,A(f.e),A(f.S),d=this.e,b=0,c=d.length;b<c;b++)g=d[b],
g.uid===a?f.S.push(g):f.e.push(g);else{d=b=0;for(c=f.e.length;b<c;b++)g=f.e[b],f.e[d]=g,g.uid===a?f.S.push(g):d++;Ca(f.e,d)}this.Rd();return!!f.e.length}g=this.b.Dj(a);if(!g)return!1;f=this.W();if(!f.ga&&-1===f.e.indexOf(g))return!1;if(this.J)for(a=g.type.Ga,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.hi(g),this.Rd(),!0}else if(g.type===this)return f.hi(g),this.Rd(),!0;return!1},a.dh=function(){return!0},a.Vr=function(){return!0},c.dy=function(a,b){var c=this.rb;ma(c[a])?c[a]=ma(b)?b:parseFloat(b):
na(c[a])&&(c[a]=na(b)?b:b.toString())},c.mx=function(a,b){var c=this.rb;ma(c[a])?c[a]=ma(b)?c[a]+b:c[a]+parseFloat(b):na(c[a])&&(c[a]=na(b)?c[a]+b:c[a]+b.toString())},c.ly=function(a,b){var c=this.rb;ma(c[a])&&(c[a]=ma(b)?c[a]-b:c[a]-parseFloat(b))},c.Ks=function(a,b){this.rb[a]=b?1:0},c.ny=function(a){this.rb[a]=1-this.rb[a]},c.un=function(){this.b.ue(this)},c.Nr||(c.Nr=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Yj(this,b,!0);this.ze&&this.ze();if(this.L)for(a=0,b=this.L.length;a<
b;++a)c=this.L[a],c.ze&&c.ze()}),l.gr=function(a){var b=a.Gf.e.length,c,d,g;c=0;for(d=this.b.cd.length;c<d;c++)g=this.b.cd[c],a.Gf.J?0<=g.type.Ga.indexOf(a.Gf)&&b++:g.type===a.Gf&&b++;a.ba(b)},l.Qx=function(a){a.ba(a.Gf.W().Hc().length)},l.qy=function(a){a.ba(this.uid)},l.Ax=function(a){a.ba(this.Gh())},l.Wq||(l.Wq=function(a){a.Ub(JSON.stringify(this.b.Qm(this,!0)))}));p&&(a.yn=function(){return this.visible},c.Yk=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.T=!0)},a.vx=function(a,b){return hc(lb(100*
this.opacity),a,b)},c.Sn=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.T=!0)},l.Opacity=function(a){a.u(lb(100*this.opacity))});d&&(a.Bx=function(a){return a?this.k===a:!1},a.Px=function(a){var b=this.W(),c=b.Hc();if(!c.length)return!1;var d=c[0],g=d,f,l;f=1;for(l=c.length;f<l;f++)if(d=c[f],0===a){if(d.k.index>g.k.index||d.k.index===g.k.index&&d.yd()>g.yd())g=d}else if(d.k.index<g.k.index||d.k.index===g.k.index&&d.yd()<g.yd())g=d;b.hi(g);return!0},c.Or=function(){var a=
this.k,b=a.e;b.length&&b[b.length-1]===this||(a.Kg(this,!1),a.ih(this,!1),this.b.T=!0)},c.Hx=function(){var a=this.k,b=a.e;b.length&&b[0]===this||(a.Kg(this,!1),a.gw(this),this.b.T=!0)},c.Ix=function(a){a&&a!=this.k&&(this.k.Kg(this,!0),this.k=a,a.ih(this,!0),this.b.T=!0)},c.et=function(a,b){var c=0===a;if(b){var d=b.Ju(this);d&&d.uid!==this.uid&&(this.k.index!==d.k.index&&(this.k.Kg(this,!0),this.k=d.k,d.k.ih(this,!0)),this.k.Kv(this,d,c),this.b.T=!0)}},l.Ex=function(a){a.ba(this.k.Dp)},l.zn=function(a){a.Ub(this.k.name)},
l.ry=function(a){a.ba(this.yd())});q&&(c.$x=function(a,b){if(this.b.H){var c=this.type.Il(b);if(!(0>c)){var d=1===a;this.xe[c]!==d&&(this.xe[c]=d,this.od(),this.b.T=!0)}}},c.ay=function(a,b,c){if(this.b.H){var d=this.type.Il(a);0>d||(a=this.type.M[d],d=this.Pa[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.H.Fy(a.gb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ua&&(this.b.T=!0))))}})};Nb=function(){this.ml=this.kl=!0;this.type.Ti=!0;this.b.T=!0;var k,b,h=this.ll;k=0;for(b=h.length;k<b;++k)h[k](this);this.k.Nc&&
this.za()};Ob=function(k){k&&this.ll.push(k)};Qb=function(){if(this.kl){var k=this.Va,b=this.Xb;k.set(this.x,this.y,this.x+this.width,this.y+this.height);k.offset(-this.gc*this.width,-this.hc*this.height);this.j?(k.offset(-this.x,-this.y),b.rq(k,this.j),b.offset(this.x,this.y),b.oo(k)):b.ri(k);k.normalize();this.kl=!1;this.Xw()}};var h=new xa(0,0,0,0);Rb=function(){if(this.k.Nc){var k=this.k.Lb,b=this.Va;h.set(k.ec(b.left),k.fc(b.top),k.ec(b.right),k.fc(b.bottom));this.lc.sh(h)||(this.lc.right<this.lc.left?
k.update(this,null,h):k.update(this,this.lc,h),this.lc.Xf(h),this.k.kd=!0)}};Sb=function(){if(this.ml&&this.gf){this.za();var k=this.type.fj,b=this.Va;h.set(k.ec(b.left),k.fc(b.top),k.ec(b.right),k.fc(b.bottom));this.He.sh(h)||(this.He.right<this.He.left?k.update(this,null,h):k.update(this,this.He,h),this.He.Xf(h),this.ml=!1)}};Pb=function(k,b){return this.Va.Ob(k,b)&&this.Xb.Ob(k,b)?this.Wg?this.bz(k,b):this.ma&&!this.ma.mg()?(this.ma.Uf(this.width,this.height,this.j),this.ma.Ob(k-this.x,b-this.y)):
!0:!1};Fb=function(){this.type.Ok();return this.uf};Tb=function(){this.k.pn();return this.pd};Ub=function(){A(this.ka);var k,b,h,f=!0;k=0;for(b=this.xe.length;k<b;k++)this.xe[k]&&(h=this.type.M[k],this.ka.push(h),h.Xe||(f=!1));this.Qq=!!this.ka.length;this.ne=f};Kb=function(){return"Inst"+this.bq};rb=function(k){if(k&&k.Zb&&k.type!=this){var b,h,f;b=0;for(h=k.siblings.length;b<h;b++)if(f=k.siblings[b],f.type==this)return f}k=this.W().Hc();return k.length?k[0]:null};ub=function(k){var b=this.W().Hc();
return b.length?b[k.Gh()%b.length]:null};qb=function(){if(this.Sg&&!this.J){var k,b;k=0;for(b=this.e.length;k<b;k++)this.e[k].uf=k;var h=k,f=this.b.cd;k=0;for(b=f.length;k<b;++k)f[k].type===this&&(f[k].uf=h++);this.Sg=!1}};Db=function(k){if(k<this.e.length)return this.e[k];k-=this.e.length;var b=this.b.cd,h,f;h=0;for(f=b.length;h<f;++h)if(b[h].type===this){if(0===k)return b[h];--k}return null};vb=function(){return this.pe[this.td]};wb=function(){this.td++;this.td===this.pe.length?this.pe.push(new pb(this)):
(this.pe[this.td].ga=!0,A(this.pe[this.td].S))};xb=function(){this.td++;this.td===this.pe.length&&this.pe.push(new pb(this));var k=this.pe[this.td],b=this.pe[this.td-1];b.ga?(k.ga=!0,A(k.S)):(k.ga=!1,Da(k.e,b.e),Da(k.S,b.S))};yb=function(){this.td--};zb=function(k){var b,h,f,r,t,p=0;if(!this.J)for(b=0,h=this.Ga.length;b<h;b++)for(t=this.Ga[b],f=0,r=t.Na.length;f<r;f++){if(k===t.Na[f].name)return this.Y.lastBehIndex=p,t.Na[f];p++}b=0;for(h=this.Na.length;b<h;b++){if(k===this.Na[b].name)return this.Y.lastBehIndex=
p,this.Na[b];p++}return null};Ab=function(k){return this.Bj(k)?this.Y.lastBehIndex:-1};Bb=function(k){var b,h;b=0;for(h=this.M.length;b<h;b++)if(this.M[b].name===k)return b;return-1};Cb=function(){if(this.Zb&&!this.J){var k,b,h,f,r,t,p;this.Ok();t=this.W();var d=t.ga,q=(k=this.b.ab())&&k.ob&&k.ob.Kc;k=0;for(b=this.rc.length;k<b;k++)if(r=this.rc[k],r!==this&&(r.Ok(),p=r.W(),p.ga=d,!d)){A(p.e);h=0;for(f=t.e.length;h<f;++h)p.e[h]=r.Jl(t.e[h].uf);if(q)for(A(p.S),h=0,f=t.S.length;h<f;++h)p.S[h]=r.Jl(t.S[h].uf)}}};
Eb=function(){return"Type"+this.X};hc=function(h,b,u){if("undefined"===typeof h||"undefined"===typeof u)return!1;switch(b){case 0:return h===u;case 1:return h!==u;case 2:return h<u;case 3:return h<=u;case 4:return h>u;case 5:return h>=u;default:return!1}}})();function lc(h){this.b=h}
(function(){function h(a){-1===sb.indexOf(a)&&sb.push(a)}function k(a){var b=a.m,c;try{c=b.play()}catch(e){h(a);return}c?c.catch(function(){h(a)}):Fc&&!J.Sb&&h(a)}function b(){var a,b,c,e;Gc||Gb||!z||(u(),"running"===z.state&&(Gc=!0));var d=sb.slice(0);A(sb);if(!aa)for(a=0,b=d.length;a<b;++a)c=d[a],c.hb||c.uc||(e=c.m.play())&&e.catch(function(){h(c)})}function u(){"suspended"===z.state&&z.resume&&z.resume();if(z.createBuffer){var a=z.createBuffer(1,220,22050),b=z.createBufferSource();b.buffer=a;b.connect(z.destination);
d(b)}}function f(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function r(a){a=a.toLowerCase();return ea.hasOwnProperty(a)&&ea[a].length?ea[a][0].Gc():z.destination}function t(){return z.createGain?z.createGain():z.createGainNode()}function p(a){return z.createDelay?z.createDelay(a):z.createDelayNode(a)}function d(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function q(a,b,c,e){a.start?a.start(e||0,b):a.noteGrainOn(e||0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function c(a,b,c,e,d,g){this.type="filter";this.xb=[a,b,c,e,d,g];this.aa=t();this.K=t();this.K.gain.value=g;this.I=t();this.I.gain.value=1-g;this.$a=z.createBiquadFilter();this.$a.type="number"===typeof this.$a.type?a:Vc[a];this.$a.frequency.value=b;this.$a.detune&&(this.$a.detune.value=c);this.$a.Q.value=e;this.$a.gain.value=d;this.aa.connect(this.$a);this.aa.connect(this.I);this.$a.connect(this.K)}function l(a,b,c){this.type="delay";this.xb=[a,b,c];this.aa=t();this.K=t();this.K.gain.value=c;this.I=
t();this.I.gain.value=1-c;this.ai=t();this.Rc=p(a);this.Rc.delayTime.value=a;this.mj=t();this.mj.gain.value=b;this.aa.connect(this.ai);this.aa.connect(this.I);this.ai.connect(this.K);this.ai.connect(this.Rc);this.Rc.connect(this.mj);this.mj.connect(this.ai)}function e(a,b,c,e){this.type="convolve";this.xb=[b,c,e];this.aa=t();this.K=t();this.K.gain.value=c;this.I=t();this.I.gain.value=1-c;this.hf=z.createConvolver();a&&(this.hf.normalize=b,this.hf.buffer=a);this.aa.connect(this.hf);this.aa.connect(this.I);
this.hf.connect(this.K)}function n(a,b,c,e,g){this.type="flanger";this.xb=[a,b,c,e,g];this.aa=t();this.I=t();this.I.gain.value=1-g/2;this.K=t();this.K.gain.value=g/2;this.tj=t();this.tj.gain.value=e;this.Rc=p(a+b);this.Rc.delayTime.value=a;this.Fb=z.createOscillator();this.Fb.frequency.value=c;this.yc=t();this.yc.gain.value=b;this.aa.connect(this.Rc);this.aa.connect(this.I);this.Rc.connect(this.K);this.Rc.connect(this.tj);this.tj.connect(this.Rc);this.Fb.connect(this.yc);this.yc.connect(this.Rc.delayTime);
d(this.Fb)}function m(a,b,c,e,g,f){this.type="phaser";this.xb=[a,b,c,e,g,f];this.aa=t();this.I=t();this.I.gain.value=1-f/2;this.K=t();this.K.gain.value=f/2;this.$a=z.createBiquadFilter();this.$a.type="number"===typeof this.$a.type?7:"allpass";this.$a.frequency.value=a;this.$a.detune&&(this.$a.detune.value=b);this.$a.Q.value=c;this.Fb=z.createOscillator();this.Fb.frequency.value=g;this.yc=t();this.yc.gain.value=e;this.aa.connect(this.$a);this.aa.connect(this.I);this.$a.connect(this.K);this.Fb.connect(this.yc);
this.yc.connect(this.$a.frequency);d(this.Fb)}function S(a){this.type="gain";this.xb=[a];this.fa=t();this.fa.gain.value=a}function g(a,b){this.type="tremolo";this.xb=[a,b];this.fa=t();this.fa.gain.value=1-b/2;this.Fb=z.createOscillator();this.Fb.frequency.value=a;this.yc=t();this.yc.gain.value=b/2;this.Fb.connect(this.yc);this.yc.connect(this.fa.gain);d(this.Fb)}function v(a,b){this.type="ringmod";this.xb=[a,b];this.aa=t();this.K=t();this.K.gain.value=b;this.I=t();this.I.gain.value=1-b;this.ni=t();
this.ni.gain.value=0;this.Fb=z.createOscillator();this.Fb.frequency.value=a;this.Fb.connect(this.ni.gain);d(this.Fb);this.aa.connect(this.ni);this.aa.connect(this.I);this.ni.connect(this.K)}function R(a,b,c,e,d){this.type="distortion";this.xb=[a,b,c,e,d];this.aa=t();this.qk=t();this.pk=t();this.Cw(c,Math.pow(10,e/20));this.K=t();this.K.gain.value=d;this.I=t();this.I.gain.value=1-d;this.Rk=z.createWaveShaper();this.kj=new Float32Array(65536);this.Fu(a,b);this.Rk.kj=this.kj;this.aa.connect(this.qk);
this.aa.connect(this.I);this.qk.connect(this.Rk);this.Rk.connect(this.pk);this.pk.connect(this.K)}function ga(a,b,c,e,d){this.type="compressor";this.xb=[a,b,c,e,d];this.fa=z.createDynamicsCompressor();try{this.fa.threshold.value=a,this.fa.knee.value=b,this.fa.ratio.value=c,this.fa.attack.value=e,this.fa.release.value=d}catch(g){}}function F(a,b){this.type="analyser";this.xb=[a,b];this.fa=z.createAnalyser();this.fa.fftSize=a;this.fa.smoothingTimeConstant=b;this.Cu=new Float32Array(this.fa.frequencyBinCount);
this.tq=new Uint8Array(a);this.gi=0}function K(){this.na=null;this.Zj=0}function I(a,b){this.src=a;this.V=M;this.Ad=b;this.Si=!1;var c=this;this.yg=this.Gg=null;this.Hg=[];this.yk=0;this.sn=this.rj=this.zq=this.lk=!1;1===M&&b&&!tb&&(this.V=0,this.Gg=t());this.Sd=this.da=null;var e;switch(this.V){case 0:this.da=new Audio;this.da.crossOrigin="anonymous";this.da.addEventListener("canplaythrough",function(){c.sn=!0});1===M&&z.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.zq=!0,this.da.addEventListener("canplay",
function(){!c.yg&&c.da&&(c.yg=z.createMediaElementSource(c.da),c.yg.connect(c.Gg))}));this.da.autoplay=!1;this.da.Ry="auto";this.da.src=a;break;case 1:J.Oj?J.Io(a,function(a){c.Sd=a;c.yo()},function(){c.rj=!0}):(e=new XMLHttpRequest,e.open("GET",a,!0),e.responseType="arraybuffer",e.onload=function(){c.Sd=e.response;c.yo()},e.onerror=function(){c.rj=!0},e.send());break;case 2:this.da=!0;break;case 3:this.da=!0}}function w(a,b){var c=this;this.tag=b;this.hb=this.wd=!0;this.src=a.src;this.buffer=a;this.V=
M;this.Ad=a.Ad;this.playbackRate=1;this.ig=!0;this.uc=this.Lc=!1;this.mc=0;this.Th=this.pg=this.Cd=!1;this.volume=1;this.zm=function(a){if(!c.uc&&!c.Lc){var b=this;b||(b=a.target);b===c.Ri&&(c.ig=!0,c.hb=!0,B=c.tag,J.trigger(lc.prototype.g.Ji,y))}};this.Ri=null;this.kg=1===U&&!this.Ad||2===U;this.Ag=1;this.startTime=this.kg?J.Cb.O:J.se.O;this.eb=this.pb=null;this.Ed=!1;this.Jb=null;this.Rp=this.Qp=this.Pp=this.Op=this.Tp=this.Sp=0;this.m=null;var e=!1;1!==this.V||0!==this.buffer.V||this.buffer.zq||
(this.V=0);switch(this.V){case 0:this.Ad?(this.m=a.da,e=!a.Si,a.Si=!0):(this.m=new Audio,this.m.crossOrigin="anonymous",this.m.autoplay=!1,this.m.src=a.da.src,e=!0);e&&this.m.addEventListener("ended",function(){B=c.tag;c.hb=!0;J.trigger(lc.prototype.g.Ji,y)});break;case 1:this.pb=t();this.pb.connect(r(b));1===this.buffer.V?a.da&&(this.m=z.createBufferSource(),this.m.buffer=a.da,this.m.connect(this.pb)):(this.m=this.buffer.da,this.buffer.Gg.connect(this.pb),this.buffer.Si||(this.buffer.Si=!0,this.buffer.da.addEventListener("ended",
function(){B=c.tag;c.hb=!0;J.trigger(lc.prototype.g.Ji,y)})));break;case 2:this.m=new window.Media(L+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.ig=!0,c.hb=!0,B=c.tag,J.trigger(lc.prototype.g.Ji,y))});break;case 3:this.m=!0}}function Q(a,b){var c=a.Qe()?1:0,e=b.Qe()?1:0;return c===e?0:c<e?1:-1}function H(a,b){A(sa);if(a.length){var c,e,d;c=0;for(e=C.length;c<e;c++)d=C[c],mb(a,d.tag)&&sa.push(d);b&&sa.sort(Q)}else T&&!T.tf()&&(A(sa),sa[0]=T)}function O(a,b){ea.hasOwnProperty(a)?
ea[a].push(b):ea[a]=[b];var c,e,d,g,f=z.destination;if(ea.hasOwnProperty(a)&&(d=ea[a],d.length))for(f=d[0].Gc(),c=0,e=d.length;c<e;c++)g=d[c],c+1===e?g.Oc(z.destination):g.Oc(d[c+1].Gc());H(a);c=0;for(e=sa.length;c<e;c++)sa[c].jw(f);Sa&&Jb===a&&(Sa.disconnect(),Sa.connect(f))}function X(){}function x(){}function V(){}var E=lc.prototype;E.ya=function(a){this.pa=a;this.b=a.b};E.ya.prototype.N=function(){};var J=null,y=null,B="",L="",M=0,z=null,N=[],C=[],T=null,ra=!1,U=0,aa=!1,ca=1,La=0,Xa=0,Gb=!1,Hb=
1,Ib=1,Hc=10,Ic=1E4,Jc=1,Sa=null,Jb="",Fc=!1,sb=[],tb=!1,Gc=!1;document.addEventListener("touchend",b,!0);document.addEventListener("click",b,!0);document.addEventListener("keydown",b,!0);var ea={},Vc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");c.prototype.Oc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};c.prototype.remove=function(){this.aa.disconnect();this.$a.disconnect();this.K.disconnect();this.I.disconnect()};c.prototype.Gc=
function(){return this.aa};l.prototype.Oc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};l.prototype.remove=function(){this.aa.disconnect();this.ai.disconnect();this.Rc.disconnect();this.mj.disconnect();this.K.disconnect();this.I.disconnect()};l.prototype.Gc=function(){return this.aa};e.prototype.Oc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};e.prototype.remove=function(){this.aa.disconnect();this.hf.disconnect();
this.K.disconnect();this.I.disconnect()};e.prototype.Gc=function(){return this.aa};n.prototype.Oc=function(a){this.I.disconnect();this.I.connect(a);this.K.disconnect();this.K.connect(a)};n.prototype.remove=function(){this.aa.disconnect();this.Rc.disconnect();this.Fb.disconnect();this.yc.disconnect();this.I.disconnect();this.K.disconnect();this.tj.disconnect()};n.prototype.Gc=function(){return this.aa};m.prototype.Oc=function(a){this.I.disconnect();this.I.connect(a);this.K.disconnect();this.K.connect(a)};
m.prototype.remove=function(){this.aa.disconnect();this.$a.disconnect();this.Fb.disconnect();this.yc.disconnect();this.I.disconnect();this.K.disconnect()};m.prototype.Gc=function(){return this.aa};S.prototype.Oc=function(a){this.fa.disconnect();this.fa.connect(a)};S.prototype.remove=function(){this.fa.disconnect()};S.prototype.Gc=function(){return this.fa};g.prototype.Oc=function(a){this.fa.disconnect();this.fa.connect(a)};g.prototype.remove=function(){this.Fb.disconnect();this.yc.disconnect();this.fa.disconnect()};
g.prototype.Gc=function(){return this.fa};v.prototype.Oc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};v.prototype.remove=function(){this.Fb.disconnect();this.ni.disconnect();this.aa.disconnect();this.K.disconnect();this.I.disconnect()};v.prototype.Gc=function(){return this.aa};R.prototype.Cw=function(a,b){.01>a&&(a=.01);this.qk.gain.value=a;this.pk.gain.value=Math.pow(1/a,.6)*b};R.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=
a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};R.prototype.Fu=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,g=0;32768>g;++g)d=g/32768,d=this.shape(d,c,e),this.kj[32768+g]=d,this.kj[32768-g-1]=-d};R.prototype.Oc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};R.prototype.remove=function(){this.aa.disconnect();this.qk.disconnect();this.Rk.disconnect();this.pk.disconnect();this.K.disconnect();this.I.disconnect()};R.prototype.Gc=function(){return this.aa};
ga.prototype.Oc=function(a){this.fa.disconnect();this.fa.connect(a)};ga.prototype.remove=function(){this.fa.disconnect()};ga.prototype.Gc=function(){return this.fa};F.prototype.Gb=function(){this.fa.getFloatFrequencyData(this.Cu);this.fa.getByteTimeDomainData(this.tq);for(var a=this.fa.fftSize,b=0,c=this.gi=0,e=0;b<a;b++)e=(this.tq[b]-128)/128,0>e&&(e=-e),this.gi<e&&(this.gi=e),c+=e*e;this.gi=f(this.gi);f(Math.sqrt(c/a))};F.prototype.Oc=function(a){this.fa.disconnect();this.fa.connect(a)};F.prototype.remove=
function(){this.fa.disconnect()};F.prototype.Gc=function(){return this.fa};K.prototype.oi=function(a){this.na=a};K.prototype.Gj=function(){return!!this.na};K.prototype.Gb=function(){};I.prototype.kw=function(){var a,b,c,e;c=a=0;for(b=C.length;a<b;++a)e=C[a],C[c]=e,e.buffer===this?e.stop():++c;C.length=c;this.yg&&(this.yg.disconnect(),this.yg=null);this.Gg&&(this.Gg.disconnect(),this.Gg=null);this.Sd=this.da=null};I.prototype.yo=function(){if(!this.da&&this.Sd){var a=this;if(z.decodeAudioData)z.decodeAudioData(this.Sd,
function(b){a.da=b;a.Sd=null;var c,e,d;if(la(a.mk)||aa)la(a.hj)||(c=a.hj.hf,c.normalize=a.Cp,c.buffer=b);else if(a.Hg.length){c=0;for(e=a.Hg.length;c<e;c++){b=a.Hg[c];d=new w(a,b.Dq);d.Um(!0);if("undefined"!==typeof b.Ep&&(b.na=J.Dj(b.Ep),!b.na))continue;if(b.na){var g=Ta(b.na.x,b.na.y,-b.na.k.qb(),La,Xa,!0),f=Ta(b.na.x,b.na.y,-b.na.k.qb(),La,Xa,!1);d.Tm(g,f,Ia(b.na.j-b.na.k.qb()),b.Rl,b.om,b.rm);d.oi(b.na)}else d.Tm(b.x,b.y,b.Rf,b.Rl,b.om,b.rm);d.play(a.jm,a.rn,a.yk);a.lk&&d.pause();C.push(d)}A(a.Hg)}else d=
new w(a,a.mk||""),d.play(a.jm,a.rn,a.yk),a.lk&&d.pause(),C.push(d)},function(){a.rj=!0});else if(this.da=z.createBuffer(this.Sd,!1),this.Sd=null,la(this.mk)||aa)la(this.hj)||(b=this.hj.hf,b.normalize=this.Cp,b.buffer=this.da);else{var b=new w(this,this.mk);b.play(this.jm,this.rn,this.yk);this.lk&&b.pause();C.push(b)}}};I.prototype.gp=function(){switch(this.V){case 0:var a=4<=this.da.readyState;a&&(this.sn=!0);return a||this.sn;case 1:return!!this.Sd||!!this.da;case 2:return!0;case 3:return!0}return!1};
I.prototype.uv=function(){switch(this.V){case 0:return this.gp();case 1:return!!this.da;case 2:return!0;case 3:return!0}return!1};I.prototype.gv=function(){switch(this.V){case 0:return!!this.da.error;case 1:return this.rj}return!1};w.prototype.tf=function(){switch(this.V){case 0:return this.m.ended;case 1:return 1===this.buffer.V?!this.wd&&!this.hb&&this.m.loop||this.uc?!1:this.ig:this.m.ended;case 2:return this.ig;case 3:!0}return!0};w.prototype.At=function(){return this.wd||this.hb?!0:this.tf()};
w.prototype.Um=function(a){1===M&&(!this.Ed&&a?this.pb&&(this.eb||(this.eb=z.createPanner(),this.eb.panningModel="number"===typeof this.eb.panningModel?Hb:["equalpower","HRTF","soundfield"][Hb],this.eb.distanceModel="number"===typeof this.eb.distanceModel?Ib:["linear","inverse","exponential"][Ib],this.eb.refDistance=Hc,this.eb.maxDistance=Ic,this.eb.rolloffFactor=Jc),this.pb.disconnect(),this.pb.connect(this.eb),this.eb.connect(r(this.tag)),this.Ed=!0):this.Ed&&!a&&this.pb&&(this.eb.disconnect(),
this.pb.disconnect(),this.pb.connect(r(this.tag)),this.Ed=!1))};w.prototype.Tm=function(a,b,c,e,d,g){this.Ed&&1===M&&(this.eb.setPosition(a,b,0),this.eb.setOrientation(Math.cos(D(c)),Math.sin(D(c)),0),this.eb.coneInnerAngle=e,this.eb.coneOuterAngle=d,this.eb.coneOuterGain=g,this.Sp=a,this.Tp=b,this.Op=c,this.Pp=e,this.Qp=d,this.Rp=g)};w.prototype.oi=function(a){this.Ed&&1===M&&(this.Jb||(this.Jb=new K),this.Jb.oi(a))};w.prototype.Gb=function(a){if(this.Ed&&1===M&&this.Jb&&this.Jb.Gj()&&this.Qe()){this.Jb.Gb(a);
a=this.Jb.na;var b=Ta(a.x,a.y,-a.k.qb(),La,Xa,!0),c=Ta(a.x,a.y,-a.k.qb(),La,Xa,!1);this.eb.setPosition(b,c,0);b=0;"undefined"!==typeof this.Jb.na.j&&(b=a.j-a.k.qb(),this.eb.setOrientation(Math.cos(b),Math.sin(b),0))}};w.prototype.play=function(a,b,c,e){var g=this.m;this.Cd=a;this.volume=b;c=c||0;e=e||0;switch(this.V){case 0:1!==g.playbackRate&&(g.playbackRate=1);g.volume!==b*ca&&(g.volume=b*ca);g.loop!==a&&(g.loop=a);g.muted&&(g.muted=!1);if(g.currentTime!==c)try{g.currentTime=c}catch(f){}k(this);
break;case 1:this.muted=!1;this.Ag=1;if(1===this.buffer.V)this.pb.gain.value=b*ca,this.wd||(this.m=z.createBufferSource(),this.m.buffer=this.buffer.da,this.m.connect(this.pb)),this.m.onended=this.zm,this.Ri=this.m,this.m.loop=a,this.ig=!1,0===c?d(this.m,e):q(this.m,c,this.Ne(),e);else{1!==g.playbackRate&&(g.playbackRate=1);g.loop!==a&&(g.loop=a);g.volume=b*ca;if(g.currentTime!==c)try{g.currentTime=c}catch(l){}k(this)}break;case 2:(!this.wd&&this.hb||0!==c)&&g.seekTo(c);g.play();this.ig=!1;break;case 3:J.Rb?
AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.kg?J.Cb.O:J.se.O)-c;this.uc=this.hb=this.wd=!1};w.prototype.stop=function(){switch(this.V){case 0:this.m.paused||this.m.pause();break;case 1:1===this.buffer.V?a(this.m):this.m.paused||this.m.pause();break;case 2:this.m.stop();break;case 3:J.Rb&&AppMobi.context.stopSound(this.src)}this.hb=!0;this.uc=!1};w.prototype.pause=function(){if(!(this.wd||this.hb||this.tf()||this.uc)){switch(this.V){case 0:this.m.paused||
this.m.pause();break;case 1:1===this.buffer.V?(this.mc=this.Kl(!0),this.Cd&&(this.mc=this.mc%this.Ne()),this.uc=!0,a(this.m)):this.m.paused||this.m.pause();break;case 2:this.m.pause();break;case 3:J.Rb&&AppMobi.context.stopSound(this.src)}this.uc=!0}};w.prototype.ow=function(){if(!(this.wd||this.hb||this.tf())&&this.uc){switch(this.V){case 0:k(this);break;case 1:1===this.buffer.V?(this.m=z.createBufferSource(),this.m.buffer=this.buffer.da,this.m.connect(this.pb),this.m.onended=this.zm,this.Ri=this.m,
this.m.loop=this.Cd,this.pb.gain.value=ca*this.volume*this.Ag,this.Ci(),this.startTime=(this.kg?J.Cb.O:J.se.O)-this.mc/(this.playbackRate||.001),q(this.m,this.mc,this.Ne())):k(this);break;case 2:this.m.play();break;case 3:J.Rb&&AppMobi.context.resumeSound(this.src)}this.uc=!1}};w.prototype.seek=function(a){if(!(this.wd||this.hb||this.tf()))switch(this.V){case 0:try{this.m.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.V)this.uc?this.mc=a:(this.pause(),this.mc=a,this.ow());else try{this.m.currentTime=
a}catch(c){}break;case 3:J.Rb&&AppMobi.context.seekSound(this.src,a)}};w.prototype.jw=function(a){1===this.V&&(this.Ed?(this.eb.disconnect(),this.eb.connect(a)):(this.pb.disconnect(),this.pb.connect(a)))};w.prototype.Ne=function(){var a=0;switch(this.V){case 0:"undefined"!==typeof this.m.duration&&(a=this.m.duration);break;case 1:a=this.buffer.da.duration;break;case 2:a=this.m.getDuration();break;case 3:J.Rb&&(a=AppMobi.context.getDurationSound(this.src))}return a};w.prototype.Kl=function(a){var b=
this.Ne(),c=0;switch(this.V){case 0:"undefined"!==typeof this.m.currentTime&&(c=this.m.currentTime);break;case 1:if(1===this.buffer.V){if(this.uc)return this.mc;c=(this.kg?J.Cb.O:J.se.O)-this.startTime}else"undefined"!==typeof this.m.currentTime&&(c=this.m.currentTime);break;case 3:J.Rb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Cd&&c>b&&(c=b);return c};w.prototype.Qe=function(){return!this.uc&&!this.wd&&!this.hb&&!this.tf()};w.prototype.Jw=function(){return!this.wd&&
!this.hb&&!this.tf()};w.prototype.Vw=function(){var a=this.volume*ca;isFinite(a)||(a=0);switch(this.V){case 0:"undefined"!==typeof this.m.volume&&this.m.volume!==a&&(this.m.volume=a);break;case 1:1===this.buffer.V?this.pb.gain.value=a*this.Ag:"undefined"!==typeof this.m.volume&&this.m.volume!==a&&(this.m.volume=a)}};w.prototype.oj=function(a){switch(this.V){case 0:this.m.muted!==!!a&&(this.m.muted=!!a);break;case 1:1===this.buffer.V?(this.Ag=a?0:1,this.pb.gain.value=ca*this.volume*this.Ag):this.m.muted!==
!!a&&(this.m.muted=!!a)}};w.prototype.Ew=function(){this.pg=!0;this.oj(this.pg||this.Th)};w.prototype.Ak=function(a){this.Th=!!a;this.oj(this.pg||this.Th)};w.prototype.Fw=function(a){this.playbackRate=a;this.Ci()};w.prototype.Ci=function(){var a=this.playbackRate;this.kg&&(a*=J.Jf);switch(this.V){case 0:this.m.playbackRate!==a&&(this.m.playbackRate=a);break;case 1:1===this.buffer.V?this.m.playbackRate.value!==a&&(this.m.playbackRate.value=a):this.m.playbackRate!==a&&(this.m.playbackRate=a)}};w.prototype.Iw=
function(b){switch(this.V){case 0:b?this.Qe()?(this.Lc=!0,this.m.pause()):this.Lc=!1:this.Lc&&(this.m.play(),this.Lc=!1);break;case 1:b?this.Qe()?(this.Lc=!0,1===this.buffer.V?(this.mc=this.Kl(!0),this.Cd&&(this.mc=this.mc%this.Ne()),a(this.m)):this.m.pause()):this.Lc=!1:this.Lc&&(1===this.buffer.V?(this.m=z.createBufferSource(),this.m.buffer=this.buffer.da,this.m.connect(this.pb),this.m.onended=this.zm,this.Ri=this.m,this.m.loop=this.Cd,this.pb.gain.value=ca*this.volume*this.Ag,this.Ci(),this.startTime=
(this.kg?J.Cb.O:J.se.O)-this.mc/(this.playbackRate||.001),q(this.m,this.mc,this.Ne())):this.m.play(),this.Lc=!1);break;case 2:b?this.Qe()?(this.m.pause(),this.Lc=!0):this.Lc=!1:this.Lc&&(this.Lc=!1,this.m.play())}};E.ja=function(a){this.type=a;J=this.b=a.b;y=this;this.vc=null;this.Wh=-600;this.b.Oj&&(tb=!0);!(this.b.yf||this.b.Nh&&(this.b.Vl||this.b.Lj))||this.b.Mj||this.b.Ea||this.b.dp||tb||(Fc=!0);z=null;"undefined"!==typeof AudioContext?(M=1,z=new AudioContext):"undefined"!==typeof webkitAudioContext&&
(M=1,z=new webkitAudioContext);this.b.yf&&z&&(z.close&&z.close(),"undefined"!==typeof AudioContext?z=new AudioContext:"undefined"!==typeof webkitAudioContext&&(z=new webkitAudioContext));1!==M&&(this.b.tc&&"undefined"!==typeof window.Media?M=2:this.b.ep&&(M=3));2===M&&(L=location.href,a=L.lastIndexOf("/"),-1<a&&(L=L.substr(0,a+1)),L=L.replace("file://",""));if(this.b.vv&&this.b.wv&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),
this.b.ue(this);else{if(this.b.Rb)ra=this.b.Nh;else try{ra=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){ra=!1}this.b.Vg(this)}};var za=E.ja.prototype;za.N=function(){this.b.Sf=this;U=this.q[0];this.le=this.q[1];this.Zv=0!==this.q[2];this.Ap=0;Hb=this.q[3];Ib=this.q[4];this.Wh=-this.q[5];Hc=this.q[6];Ic=this.q[7];Jc=this.q[8];this.vc=new K;var a=this.b.G||this.b.width,b=this.b.F||this.b.height;1===M&&(z.listener.setPosition(a/2,b/2,this.Wh),z.listener.setOrientation(0,0,1,0,-1,
0),window.c2OnAudioMicStream=function(a,b){Sa&&Sa.disconnect();Jb=b.toLowerCase();Sa=z.createMediaStreamSource(a);Sa.connect(r(Jb))});this.b.io(function(a){y.Tv(a)});var c=this;this.b.kt(function(a){c.Rv(a)})};za.Rv=function(a){var b,c,e;b=0;for(c=C.length;b<c;b++)e=C[b],e.Jb&&e.Jb.na===a&&(e.Jb.na=null,e.Ed&&e.Qe()&&e.Cd&&e.stop());this.vc.na===a&&(this.vc.na=null)};za.Tb=function(){var a={silent:aa,masterVolume:ca,listenerZ:this.Wh,listenerUid:this.vc.Gj()?this.vc.na.uid:-1,playing:[],effects:{}},
b=a.playing,c,e,d,g,f,l;c=0;for(e=C.length;c<e;c++)d=C[c],!d.Jw()||3===this.le||d.Ad&&1===this.le||!d.Ad&&2===this.le||(g=d.Kl(),d.Cd&&(g=g%d.Ne()),g={tag:d.tag,buffersrc:d.buffer.src,is_music:d.Ad,playbackTime:g,volume:d.volume,looping:d.Cd,muted:d.pg,playbackRate:d.playbackRate,paused:d.uc,resume_position:d.mc},d.Ed&&(g.pan={},l=g.pan,d.Jb&&d.Jb.Gj()?l.objUid=d.Jb.na.uid:(l.x=d.Sp,l.y=d.Tp,l.a=d.Op),l.ia=d.Pp,l.oa=d.Qp,l.og=d.Rp),b.push(g));b=a.effects;for(f in ea)if(ea.hasOwnProperty(f)){d=[];
c=0;for(e=ea[f].length;c<e;c++)d.push({type:ea[f][c].type,params:ea[f][c].xb});b[f]=d}return a};var db=[];za.ic=function(a){var b=a.silent;ca=a.masterVolume;this.Wh=a.listenerZ;this.vc.oi(null);var d=a.listenerUid;-1!==d&&(this.vc.Zj=d,db.push(this.vc));var d=a.playing,f,h,q,p,k,r,u,t,w,x,H;if(3!==this.le)for(f=0,h=C.length;f<h;f++)w=C[f],w.Ad&&1===this.le||(w.Ad||2!==this.le)&&w.stop();for(k in ea)if(ea.hasOwnProperty(k))for(f=0,h=ea[k].length;f<h;f++)ea[k][f].remove();Ya(ea);for(k in a.effects)if(a.effects.hasOwnProperty(k))for(r=
a.effects[k],f=0,h=r.length;f<h;f++)switch(q=r[f].type,x=r[f].params,q){case "filter":O(k,new c(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":O(k,new l(x[0],x[1],x[2]));break;case "convolve":q=x[2];w=this.Aj(q,!1);w.da?q=new e(w.da,x[0],x[1],q):(q=new e(null,x[0],x[1],q),w.Cp=x[0],w.hj=q);O(k,q);break;case "flanger":O(k,new n(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":O(k,new m(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":O(k,new S(x[0]));break;case "tremolo":O(k,new g(x[0],x[1]));break;
case "ringmod":O(k,new v(x[0],x[1]));break;case "distortion":O(k,new R(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":O(k,new ga(x[0],x[1],x[2],x[3],x[4]));break;case "analyser":O(k,new F(x[0],x[1]))}f=0;for(h=d.length;f<h;f++)3===this.le||(a=d[f],q=a.buffersrc,p=a.is_music,k=a.tag,r=a.playbackTime,u=a.looping,t=a.volume,H=(x=a.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,p&&1===this.le)||!p&&2===this.le||((w=this.No(q,k,p,u,t))?(w.mc=a.resume_position,w.Um(!!x),w.play(u,t,r),w.Ci(),w.Vw(),w.oj(w.pg||
w.Th),a.paused&&w.pause(),a.muted&&w.Ew(),w.oj(w.pg||w.Th),x&&(-1!==H?(w.Jb=w.Jb||new K,w.Jb.Zj=H,db.push(w.Jb)):w.Tm(x.x,x.y,x.a,x.ia,x.oa,x.og))):(w=this.Aj(q,p),w.yk=r,w.lk=a.paused,x&&(-1!==H?w.Hg.push({Ep:H,Rl:x.ia,om:x.oa,rm:x.og,Dq:k}):w.Hg.push({x:x.x,y:x.y,Rf:x.a,Rl:x.ia,om:x.oa,rm:x.og,Dq:k}))));if(b&&!aa){f=0;for(h=C.length;f<h;f++)C[f].Ak(!0);aa=!0}else if(!b&&aa){f=0;for(h=C.length;f<h;f++)C[f].Ak(!1);aa=!1}};za.ze=function(){var a,b,c,e;a=0;for(b=db.length;a<b;a++)c=db[a],e=this.b.Dj(c.Zj),
c.oi(e),c.Zj=-1,e&&(La=e.x,Xa=e.y);A(db)};za.Tv=function(a){if(!this.Zv){!a&&z&&z.resume&&(z.resume(),Gb=!1);var b,c;b=0;for(c=C.length;b<c;b++)C[b].Iw(a);a&&z&&z.suspend&&(z.suspend(),Gb=!0)}};za.Gb=function(){var a=this.b.Ke,b,c,e;b=0;for(c=C.length;b<c;b++)e=C[b],e.Gb(a),0!==U&&e.Ci();var d,g;for(d in ea)if(ea.hasOwnProperty(d))for(e=ea[d],b=0,c=e.length;b<c;b++)g=e[b],g.Gb&&g.Gb();1===M&&this.vc.Gj()&&(this.vc.Gb(a),La=this.vc.na.x,Xa=this.vc.na.y,z.listener.setPosition(this.vc.na.x,this.vc.na.y,
this.Wh))};var eb=[];za.Gw=function(a){var b,c,e,d,g,f=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],d=e[0],e=2*e[1],(g=4<d.length&&".ogg"===d.substr(d.length-4))&&ra||!g&&!ra)eb.push({filename:d,size:e,na:null}),f+=e;return f};za.Lw=function(){var a,b,c,e;a=0;for(b=eb.length;a<b;++a)c=eb[a],e=this.b.Cl+c.filename,c.na=this.Aj(e,!1)};za.Pu=function(){var a=0,b,c,e;b=0;for(c=eb.length;b<c;++b)e=eb[b],e.na.uv()||e.na.gv()||this.b.Ea||this.b.Lj?a+=e.size:e.na.gp()&&(a+=Math.floor(e.size/2));return a};za.lw=
function(){var a,b,c,e;c=a=0;for(b=N.length;a<b;++a)e=N[a],N[c]=e,e.Ad?e.kw():++c;N.length=c};za.Aj=function(a,b){var c,e,d,g=null;c=0;for(e=N.length;c<e;c++)if(d=N[c],d.src===a){g=d;break}g||(tb&&b&&this.lw(),g=new I(a,b),N.push(g));return g};za.No=function(a,b,c,e,d){var g,f,l;g=0;for(f=C.length;g<f;g++)if(l=C[g],l.src===a&&(l.At()||c))return l.tag=b,l;a=this.Aj(a,c);if(!a.da)return"<preload>"!==b&&(a.mk=b,a.jm=e,a.rn=d),null;l=new w(a,b);C.push(l);return l};var sa=[];X.prototype.Ji=function(a){return mb(B,
a)};X.prototype.Fr=function(){return aa};X.prototype.Gr=function(a){H(a);var b;a=0;for(b=sa.length;a<b;a++)if(sa[a].Qe())return!0;return!1};E.g=new X;x.prototype.Play=function(a,b,c,e){!aa&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),T=this.No(this.b.Cl+a[0]+(ra?".ogg":".m4a"),e,a[1],0!==b,c))&&(T.Um(!1),T.play(0!==b,c,0,this.Ap),this.Ap=0)};x.prototype.Qs=function(a,b){H(a);0>b&&(b=0);var c,e;c=0;for(e=sa.length;c<e;c++)sa[c].Fw(b)};x.prototype.Xn=function(a){H(a);var b;a=0;for(b=
sa.length;a<b;a++)sa[a].stop()};x.prototype.Rs=function(a){var b;2===a&&(a=aa?1:0);if(0===a&&!aa){a=0;for(b=C.length;a<b;a++)C[a].Ak(!0);aa=!0}else if(1===a&&aa){a=0;for(b=C.length;a<b;a++)C[a].Ak(!1);aa=!1}};E.n=new x;V.prototype.vn=function(a,b){H(b,!0);sa.length?a.u(sa[0].Ne()):a.u(0)};E.D=new V})();function W(h){this.b=h}
(function(){function h(){t&&p&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(a){d.Sv(a)})}function k(){}function b(){}function u(b){console&&console.warn&&console.warn("Fullscreen request failed: ",b);a.setSize(window.innerWidth,window.innerHeight)}var f=W.prototype;f.ya=function(a){this.pa=a;this.b=a.b};var r=f.ya.prototype;r.N=function(){};var t=!1,p=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.De){var a=document.createElement("script");
a.onload=function(){t=!0;h()};a.src="offlineClient.js";document.head.appendChild(a)}});var d=null;r.Ip=function(){p=!0;h()};f.ja=function(a){this.type=a;this.b=a.b};r=f.ja.prototype;r.N=function(){var a=this;window.addEventListener("resize",function(){a.b.trigger(W.prototype.g.Mn,a)});d=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(W.prototype.g.ls,a)}),window.addEventListener("offline",function(){a.b.trigger(W.prototype.g.js,a)}));"undefined"!==
typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){a.b.wg=1;a.b.trigger(W.prototype.g.Ni,a)}),window.applicationCache.addEventListener("progress",function(b){a.b.wg=b.loaded/b.total||0}));this.b.Rb||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(W.prototype.g.Ni,a)}),document.addEventListener("backbutton",function(){a.b.trigger(W.prototype.g.Ii,a)}),document.addEventListener("menubutton",function(){a.b.trigger(W.prototype.g.Hn,
a)}),document.addEventListener("searchbutton",function(){a.b.trigger(W.prototype.g.rs,a)}),document.addEventListener("tizenhwkey",function(b){var e;switch(b.keyName){case "back":e=a.b.trigger(W.prototype.g.Ii,a);!e&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(e=a.b.trigger(W.prototype.g.Hn,a))||b.preventDefault()}}));this.b.am&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){a.b.trigger(W.prototype.g.Ii,
a)&&(b.handled=!0)}):this.b.$l&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(W.prototype.g.Ii,a)});this.b.io(function(b){b?a.b.trigger(W.prototype.g.ms,a):a.b.trigger(W.prototype.g.ns,a)});this.zv="undefined"!==typeof window.is_scirra_arcade};r.Sv=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(W.prototype.g.ts,this):"update-ready"===a||"update-pending"===a?this.b.trigger(W.prototype.g.Ni,this):"offline-ready"===a&&this.b.trigger(W.prototype.g.ks,
this)};k.prototype.ls=function(){return!0};k.prototype.js=function(){return!0};k.prototype.Ni=function(){return!0};k.prototype.ns=function(){return!0};k.prototype.ms=function(){return!0};k.prototype.Mn=function(){return!0};k.prototype.xr=function(){return!!(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||this.b.zd)};k.prototype.Ii=function(){return!0};k.prototype.Hn=function(){return!0};k.prototype.rs=function(){return!0};k.prototype.Er=function(a){return(window.innerWidth<=
window.innerHeight?0:1)===a};k.prototype.ts=function(){return!0};k.prototype.Ni=function(){return!0};k.prototype.ks=function(){return!0};f.g=new k;b.prototype.nr=function(a,b){this.b.Jc?CocoonJS.App.openURL(a):this.b.Tc?ejecta.openURL(a):this.b.$l?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(a)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(a,{openExternal:!0}):this.b.tc?window.open(a,"_system"):this.zv||this.b.Ea||window.open(a,b)};var q=!0,a=null;b.prototype.Bs=
function(b){this.b.Ea?ja("[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored"):(2<=b&&(b+=1),6===b&&(b=2),this.b.ip?this.b.fp?debuggerFullscreen(!0):!this.b.zd&&window.nwgui&&(window.nwgui.Window.get().enterFullscreen(),this.b.zd=!0,this.b.Zd=2<=b?b:0):document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||document.fullScreenElement||(this.b.Zd=2<=b?b:0,b=document.documentElement,q&&(q=!1,a=this.b,b.addEventListener("mozfullscreenerror",
u),b.addEventListener("webkitfullscreenerror",u),b.addEventListener("MSFullscreenError",u),b.addEventListener("fullscreenerror",u)),b.requestFullscreen?b.requestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.msRequestFullscreen?b.msRequestFullscreen():b.webkitRequestFullScreen&&("undefined"!==typeof Element&&"undefined"!==typeof Element.ALLOW_KEYBOARD_INPUT?b.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):b.webkitRequestFullScreen())))};b.prototype.Yq=function(){this.b.Ea?ja("[Construct 2] Exiting fullscreen is not supported on this platform - the request has been ignored"):
this.b.ip?this.b.fp?debuggerFullscreen(!1):this.b.zd&&window.nwgui&&(window.nwgui.Window.get().leaveFullscreen(),this.b.zd=!1):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()};f.n=new b;f.D=new function(){}})();function kc(h){this.b=h}
(function(){function h(){this.name="";this.mi=0;this.xb=[]}function k(){p++;p===t.length&&t.push(new h);return t[p]}function b(){}function u(){}function f(){}var r=kc.prototype;r.ya=function(b){this.pa=b;this.b=b.b};r.ya.prototype.N=function(){};r.ja=function(b){this.type=b;this.b=b.b};var t=[],p=-1;r.ja.prototype.N=function(){var b=this;window.c2_callFunction=function(f,a){var c,l,e,n=k();n.name=f.toLowerCase();n.mi=0;if(a)for(n.xb.length=a.length,c=0,l=a.length;c<l;++c)e=a[c],n.xb[c]="number"===
typeof e||"string"===typeof e?e:"boolean"===typeof e?e?1:0:0;else A(n.xb);b.b.trigger(kc.prototype.g.Li,b,n.name);p--;return n.mi}};b.prototype.Li=function(b){var f=0>p?null:t[p];return f?mb(b,f.name):!1};r.g=new b;u.prototype.CallFunction=function(b,f){var a=k();a.name=b.toLowerCase();a.mi=0;Da(a.xb,f);this.b.trigger(kc.prototype.g.Li,this,a.name);p--};r.n=new u;f.prototype.ws=function(b,f){f=ua(f);var a=0>p?null:t[p];a?0<=f&&f<a.xb.length?b.Dk(a.xb[f]):b.ba(0):b.ba(0)};f.prototype.Xq=function(b,
f){var a=k();a.name=f.toLowerCase();a.mi=0;A(a.xb);var c,l;c=2;for(l=arguments.length;c<l;c++)a.xb.push(arguments[c]);this.b.trigger(kc.prototype.g.Li,this,a.name);p--;b.Dk(a.mi)};r.D=new f})();var mc=!1;
try{!function(){var h,k,b;!function(){var u={},f={};h=function(b,f,h){u[b]={Ht:f,zt:h}};b=k=function(h){function t(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=h.split("/").slice(0,-1),c=0,d=a.length;d>c;c++){var g=a[c];".."===g?b.pop():"."!==g&&b.push(g)}return b.join("/")}if(b.ty=u,f[h])return f[h];if(f[h]={},!u[h])throw Error("Could not find module "+h);for(var p,d=u[h],q=d.Ht,d=d.zt,a=[],c=0,l=q.length;l>c;c++)"exports"===q[c]?a.push(p={}):a.push(k(t(q[c])));q=d.apply(this,a);return f[h]=
p||q}}();h("promise/all",["./utils","exports"],function(b,f){var h=b.isArray,k=b.isFunction;f.all=function(b){if(!h(b))throw new TypeError("You must pass an array to all.");return new this(function(d,f){function a(a){return function(b){l[a]=b;0===--e&&d(l)}}var c,l=[],e=b.length;0===e&&d([]);for(var n=0;n<b.length;n++)(c=b[n])&&k(c.then)?c.then(a(n),f):(l[n]=c,0===--e&&d(l))})}});h("promise/asap",["exports"],function(b){function f(){return function(){process.Qy(p)}}function h(){var b=0,c=new a(p),
d=document.createTextNode("");return c.observe(d,{characterData:!0}),function(){d.data=b=++b%2}}function k(){return function(){c.setTimeout(p,1)}}function p(){for(var a=0;a<l.length;a++){var b=l[a];(0,b[0])(b[1])}l=[]}var d,q="undefined"!=typeof window?window:{},a=q.MutationObserver||q.WebKitMutationObserver,c="undefined"!=typeof global?global:void 0===this?window:this,l=[];d="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?f():a?h():k();b.pt=function(a,b){1===l.push([a,
b])&&d()}});h("promise/config",["exports"],function(b){var f={Iy:!1};b.wo=f;b.Bt=function(b,h){return 2!==arguments.length?f[b]:void(f[b]=h)}});h("promise/polyfill",["./promise","./utils","exports"],function(b,f,h){var k=b.Promise,p=f.isFunction;h.$v=function(){var b;b="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in b&&"resolve"in b.Promise&&"reject"in b.Promise&&"all"in b.Promise&&"race"in b.Promise&&function(){var f;return new b.Promise(function(a){f=
a}),p(f)}()||(b.Promise=k)}});h("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(b,f,h,k,p,d,q,a){function c(a){if(!w(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof c))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.Qi=[];l(a,this)}function l(a,b){function c(a){g(b,
a)}function e(a){R(b,a)}try{a(c,e)}catch(d){e(d)}}function e(a,b,c,e){var d,f,l,m,n=w(c);if(n)try{d=c(e),l=!0}catch(h){m=!0,f=h}else d=e,l=!0;S(b,d)||(n&&l?g(b,d):m?R(b,f):a===O?g(b,d):a===X&&R(b,d))}function n(a,b,c,e){a=a.Qi;var d=a.length;a[d]=b;a[d+O]=c;a[d+X]=e}function m(a,b){for(var c,d,g=a.Qi,f=a.Pi,l=0;l<g.length;l+=3)c=g[l],d=g[l+b],e(b,c,d,f);a.Qi=null}function S(a,b){var c,e=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(I(b)&&(e=b.then,
w(e)))return e.call(b,function(e){return c?!0:(c=!0,void(b!==e?g(a,e):v(a,e)))},function(b){return c?!0:(c=!0,void R(a,b))}),!0}catch(d){return c?!0:(R(a,d),!0)}return!1}function g(a,b){a===b?v(a,b):S(a,b)||v(a,b)}function v(a,b){a.Pd===Q&&(a.Pd=H,a.Pi=b,K.async(ga,a))}function R(a,b){a.Pd===Q&&(a.Pd=H,a.Pi=b,K.async(F,a))}function ga(a){m(a,a.Pd=O)}function F(a){m(a,a.Pd=X)}var K=b.wo,I=(b.Bt,f.Nv),w=f.isFunction;b=(f.now,h.all);k=k.race;p=p.resolve;d=d.reject;K.async=q.pt;var Q=void 0,H=0,O=1,X=
2;c.prototype={constructor:c,Pd:void 0,Pi:void 0,Qi:void 0,then:function(a,b){var c=this,d=new this.constructor(function(){});if(this.Pd){var g=arguments;K.async(function(){e(c.Pd,d,g[c.Pd-1],c.Pi)})}else n(this,d,a,b);return d},"catch":function(a){return this.then(null,a)}};c.all=b;c.race=k;c.resolve=p;c.reject=d;a.Promise=c});h("promise/race",["./utils","exports"],function(b,f){var h=b.isArray;f.race=function(b){if(!h(b))throw new TypeError("You must pass an array to race.");return new this(function(f,
d){for(var h,a=0;a<b.length;a++)(h=b[a])&&"function"==typeof h.then?h.then(f,d):f(h)})}});h("promise/reject",["exports"],function(b){b.reject=function(b){return new this(function(h,k){k(b)})}});h("promise/resolve",["exports"],function(b){b.resolve=function(b){return b&&"object"==typeof b&&b.constructor===this?b:new this(function(h){h(b)})}});h("promise/utils",["exports"],function(b){function f(b){return"function"==typeof b}var h=Date.now||function(){return(new Date).getTime()};b.Nv=function(b){return f(b)||
"object"==typeof b&&null!==b};b.isFunction=f;b.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)};b.now=h});k("promise/polyfill").$v()}();var nc=function(){return function(h){function k(u){if(b[u])return b[u].ud;var f=b[u]={ud:{},id:u,loaded:!1};return h[u].call(f.ud,f,f.ud,k),f.loaded=!0,f.ud}var b={};return k.De=h,k.kh=b,k.fi="",k(0)}([function(h,k,b){k.Oi=!0;var u=function(f){function h(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function k(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(e(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function p(a){for(var b in q)if(q.hasOwnProperty(b)&&q[b]===a)return!0;return!1}var d={},q={ah:"asyncStorage",bh:"localStorageWrapper",eh:"webSQLStorage"},a="clear getItem iterate key keys length removeItem setItem".split(" "),c={description:"",$f:[q.ah,q.eh,q.bh].slice(),name:"localforage",size:4980736,qa:"keyvaluepairs",
version:1},l=function(a){var b={},c;try{var e=e||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.Do||a.msIndexedDB;c="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(d){c=!1}b[q.ah]=!!c;var f;try{f=a.openDatabase}catch(l){f=!1}b[q.eh]=!!f;var h;try{h=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(k){h=
!1}return b[q.bh]=!!h,b}(f),e=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function f(a){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");this.ah=q.ah;this.bh=q.bh;this.eh=q.eh;this.dl=k({},c);this.cf=k({},this.dl,a);this.$n=this.qd=null;this.we=!1;this.la=null;this.ao();this.lq(this.cf.$f)}return f.prototype.wo=function(a){if("object"==typeof a){if(this.we)return Error("Can't call config() after localforage has been used.");
for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this.cf[b]=a[b];return"driver"in a&&a.$f&&this.lq(this.cf.$f),!0}return"string"==typeof a?this.cf[a]:this.cf},f.prototype.$f=function(){return this.fh||null},f.prototype.Qo=function(a,c,e){var f=this,l=function(){if(p(a))switch(a){case f.ah:return new Promise(function(a){a(b(1))});case f.bh:return new Promise(function(a){a(b(2))});case f.eh:return new Promise(function(a){a(b(4))})}else if(d[a])return Promise.resolve(d[a]);return Promise.reject(Error("Driver not found."))}();
return l.then(c,e),l},f.prototype.ready=function(a){var b=this,c=b.qd.then(function(){return null===b.we&&(b.we=b.$n()),b.we});return c.then(a,a),c},f.prototype.lq=function(a,b,c){function d(){l.cf.$f=l.$f()}function f(a){return function(){function b(){for(;c<a.length;){var e=a[c];return c++,l.la=null,l.we=null,l.Qo(e).then(function(a){return l.ft(a),d(),l.we=l.fl(l.cf),l.we})["catch"](b)}d();return l.qd=Promise.reject(Error("No available storage method found.")),l.qd}var c=0;return b()}}var l=this;
e(a)||(a=[a]);var h=this.gt(a);return this.qd=(null!==this.qd?this.qd["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=h[0];return l.la=null,l.we=null,l.Qo(a).then(function(a){l.fh=a.fh;d();l.ao();l.$n=f(h)})})["catch"](function(){d();return l.qd=Promise.reject(Error("No available storage method found.")),l.qd}),this.qd.then(b,c),this.qd},f.prototype.supports=function(a){return!!l[a]},f.prototype.ft=function(a){k(this,a)},f.prototype.gt=function(a){for(var b=
[],c=0,e=a.length;e>c;c++){var d=a[c];this.supports(d)&&b.push(d)}return b},f.prototype.ao=function(){for(var b=0;b<a.length;b++)h(this,a[b])},f.prototype.sl=function(a){return new f(a)},f}())}("undefined"!=typeof window?window:self);k["default"]=u;h.ud=k["default"]},function(h,k){k.Oi=!0;k["default"]=function(b){function h(a,c){a=a||[];c=c||{};try{return new Blob(a,c)}catch(e){if("TypeError"!==e.name)throw e;for(var d=new (b.BlobBuilder||b.De||b.xo||b.WebKitBlobBuilder),g=0;g<a.length;g+=1)d.append(a[g]);
return d.getBlob(c.type)}}function f(a){return new Promise(function(b,c){var e=new XMLHttpRequest;e.open("GET",a);e.withCredentials=!0;e.responseType="arraybuffer";e.onreadystatechange=function(){return 4===e.readyState?200===e.status?b({response:e.response,type:e.getResponseHeader("Content-Type")}):void c({status:e.status,response:e.response}):void 0};e.send()})}function k(a){return(new Promise(function(b,c){var e=h([""],{type:"image/png"}),d=a.transaction([Q],"readwrite");d.objectStore(Q).put(e,
"key");d.oncomplete=function(){var e=a.transaction([Q],"readwrite").objectStore(Q).get("key");e.onerror=c;e.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);f(c).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(c)})}};d.onerror=d.onabort=c}))["catch"](function(){return!1})}function t(a){return"boolean"==typeof I?Promise.resolve(I):k(a).then(function(a){return I=a})}function p(a){return new Promise(function(b,c){var e=new FileReader;
e.onerror=c;e.onloadend=function(c){b({Zn:!0,data:btoa(c.target.result||""),type:a.type})};e.readAsBinaryString(a)})}function d(a){for(var b=atob(a.data),c=b.length,e=new ArrayBuffer(c),d=new Uint8Array(e),g=0;c>g;g++)d[g]=b.charCodeAt(g);return h([e],{type:a.type})}function q(a){var b=this,c=b.el().then(function(){var a=w[b.la.name];return a&&a.Yf?a.Yf:void 0});return c.then(a,a),c}function a(a){a=w[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.zo.push(b);a.Yf?a.Yf=a.Yf.then(function(){return b.promise}):
a.Yf=b.promise}function c(a){function c(){return Promise.resolve()}var e=this,d={db:null};if(a)for(var g in a)d[g]=a[g];w||(w={});var f=w[d.name];f||(f={xj:[],db:null,Yf:null,zo:[]},w[d.name]=f);f.xj.push(e);e.el||(e.el=e.ready,e.ready=q);a=[];for(g=0;g<f.xj.length;g++){var m=f.xj[g];m!==e&&a.push(m.el()["catch"](c))}var h=f.xj.slice(0);return Promise.all(a).then(function(){return d.db=f.db,l(d,!1)}).then(function(a){d.db=a;var c;c=e.dl.version;if(d.db){var g=!d.db.objectStoreNames.contains(d.qa),
f=d.version>d.db.version;(d.version<d.db.version&&(d.version!==c&&b.console.warn('The database "'+d.name+"\" can't be downgraded from version "+d.db.version+" to version "+d.version+"."),d.version=d.db.version),f||g)?(g&&(c=d.db.version+1,c>d.version&&(d.version=c)),c=!0):c=!1}else c=!0;return c?l(d,!0):a}).then(function(a){d.db=f.db=a;e.la=d;for(a=0;a<h.length;a++){var b=h[a];b!==e&&(b.la.db=d.db,b.la.version=d.version)}})}function l(c,e){return new Promise(function(d,g){if(c.db){if(!e)return d(c.db);
a(c);c.db.close()}var f=[c.name];e&&f.push(c.version);var l=K.open.apply(K,f);e&&(l.onupgradeneeded=function(a){var e=l.result;try{e.createObjectStore(c.qa),1>=a.oldVersion&&e.createObjectStore(Q)}catch(d){if("ConstraintError"!==d.name)throw d;b.console.warn('The database "'+c.name+'" has been upgraded from version '+a.oldVersion+" to version "+a.newVersion+', but the storage "'+c.qa+'" already exists.')}});l.onerror=function(){g(l.error)};l.onsuccess=function(){d(l.result);var a=w[c.name].zo.pop();
a&&a.resolve()}})}function e(a,c){var e=this;"string"!=typeof a&&(b.console.warn(a+" used as a key, but it is not a string."),a=String(a));var g=new Promise(function(b,c){e.ready().then(function(){var g=e.la,f=g.db.transaction(g.qa,"readonly").objectStore(g.qa).get(a);f.onsuccess=function(){var a=f.result;void 0===a&&(a=null);a&&a.Zn&&(a=d(a));b(a)};f.onerror=function(){c(f.error)}})["catch"](c)});return F(g,c),g}function n(a,b){var c=this,e=new Promise(function(b,e){c.ready().then(function(){var g=
c.la,f=g.db.transaction(g.qa,"readonly").objectStore(g.qa).openCursor(),l=1;f.onsuccess=function(){var c=f.result;if(c){var e=c.value;e&&e.Zn&&(e=d(e));e=a(e,c.key,l++);void 0!==e?b(e):c["continue"]()}else b()};f.onerror=function(){e(f.error)}})["catch"](e)});return F(e,b),e}function m(a,c,e){var d=this;"string"!=typeof a&&(b.console.warn(a+" used as a key, but it is not a string."),a=String(a));var g=new Promise(function(b,e){var g;d.ready().then(function(){return g=d.la,c instanceof Blob?t(g.db).then(function(a){return a?
c:p(c)}):c}).then(function(c){var d=g.db.transaction(g.qa,"readwrite"),f=d.objectStore(g.qa);null===c&&(c=void 0);d.oncomplete=function(){void 0===c&&(c=null);b(c)};d.onabort=d.onerror=function(){e(l.error?l.error:l.transaction.error)};var l=f.put(c,a)})["catch"](e)});return F(g,e),g}function S(a,c){var e=this;"string"!=typeof a&&(b.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,c){e.ready().then(function(){var d=e.la,g=d.db.transaction(d.qa,"readwrite"),
f=g.objectStore(d.qa)["delete"](a);g.oncomplete=function(){b()};g.onerror=function(){c(f.error)};g.onabort=function(){c(f.error?f.error:f.transaction.error)}})["catch"](c)});return F(d,c),d}function g(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.la,d=e.db.transaction(e.qa,"readwrite"),g=d.objectStore(e.qa).clear();d.oncomplete=function(){a()};d.onabort=d.onerror=function(){c(g.error?g.error:g.transaction.error)}})["catch"](c)});return F(c,a),c}function v(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var e=b.la,d=e.db.transaction(e.qa,"readonly").objectStore(e.qa).count();d.onsuccess=function(){a(d.result)};d.onerror=function(){c(d.error)}})["catch"](c)});return F(c,a),c}function R(a,b){var c=this,e=new Promise(function(b,e){return 0>a?void b(null):void c.ready().then(function(){var d=c.la,g=!1,f=d.db.transaction(d.qa,"readonly").objectStore(d.qa).openCursor();f.onsuccess=function(){var c=f.result;return c?void(0===a?b(c.key):g?b(c.key):(g=
!0,c.advance(a))):void b(null)};f.onerror=function(){e(f.error)}})["catch"](e)});return F(e,b),e}function ga(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.la,d=e.db.transaction(e.qa,"readonly").objectStore(e.qa).openCursor(),g=[];d.onsuccess=function(){var b=d.result;return b?(g.push(b.key),void b["continue"]()):void a(g)};d.onerror=function(){c(d.error)}})["catch"](c)});return F(c,a),c}function F(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var K=K||b.indexedDB||
b.webkitIndexedDB||b.mozIndexedDB||b.Do||b.msIndexedDB;if(K){var I,w,Q="local-forage-detect-blob-support";return{fh:"asyncStorage",fl:c,np:n,getItem:e,setItem:m,removeItem:S,clear:g,length:v,key:R,keys:ga}}}("undefined"!=typeof window?window:self);h.ud=k["default"]},function(h,k,b){k.Oi=!0;k["default"]=function(h){function f(b,d){d&&b.then(function(b){d(null,b)},function(b){d(b)})}var k=null;try{if(!(h.localStorage&&"setItem"in h.localStorage))return;k=h.localStorage}catch(t){return}return{fh:"localStorageWrapper",
fl:function(f){var d={};if(f)for(var h in f)d[h]=f[h];return d.Bd=d.name+"/",d.qa!==this.dl.qa&&(d.Bd+=d.qa+"/"),this.la=d,(new Promise(function(a){a(b(3))})).then(function(a){return d.Hf=a,Promise.resolve()})},np:function(b,d){var h=this,a=h.ready().then(function(){for(var a=h.la,d=a.Bd,e=d.length,f=k.length,m=1,u=0;f>u;u++){var g=k.key(u);if(0===g.indexOf(d)){var v=k.getItem(g);if(v&&(v=a.Hf.nj(v)),v=b(v,g.substring(e),m++),void 0!==v)return v}}});return f(a,d),a},getItem:function(b,d){var q=this;
"string"!=typeof b&&(h.console.warn(b+" used as a key, but it is not a string."),b=String(b));var a=q.ready().then(function(){var a=q.la,d=k.getItem(a.Bd+b);return d&&(d=a.Hf.nj(d)),d});return f(a,d),a},setItem:function(b,d,q){var a=this;"string"!=typeof b&&(h.console.warn(b+" used as a key, but it is not a string."),b=String(b));var c=a.ready().then(function(){void 0===d&&(d=null);var c=d;return new Promise(function(e,f){var m=a.la;m.Hf.serialize(d,function(a,d){if(d)f(d);else try{k.setItem(m.Bd+
b,a),e(c)}catch(h){"QuotaExceededError"!==h.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==h.name||f(h),f(h)}})})});return f(c,q),c},removeItem:function(b,d){var q=this;"string"!=typeof b&&(h.console.warn(b+" used as a key, but it is not a string."),b=String(b));var a=q.ready().then(function(){k.removeItem(q.la.Bd+b)});return f(a,d),a},clear:function(b){var d=this,h=d.ready().then(function(){for(var a=d.la.Bd,b=k.length-1;0<=b;b--){var f=k.key(b);0===f.indexOf(a)&&k.removeItem(f)}});return f(h,b),h},length:function(b){var d=
this.keys().then(function(b){return b.length});return f(d,b),d},key:function(b,d){var h=this,a=h.ready().then(function(){var a,d=h.la;try{a=k.key(b)}catch(e){a=null}return a&&(a=a.substring(d.Bd.length)),a});return f(a,d),a},keys:function(b){var d=this,h=d.ready().then(function(){for(var a=d.la,b=k.length,f=[],e=0;b>e;e++)0===k.key(e).indexOf(a.Bd)&&f.push(k.key(e).substring(a.Bd.length));return f});return f(h,b),h}}}("undefined"!=typeof window?window:self);h.ud=k["default"]},function(h,k){k.Oi=!0;
k["default"]=function(b){function h(b){var d,f,a,c,l;d=.75*b.length;var e=b.length,n=0;"="===b[b.length-1]&&(d--,"="===b[b.length-2]&&d--);var m=new ArrayBuffer(d),u=new Uint8Array(m);for(d=0;e>d;d+=4)f=k.indexOf(b[d]),a=k.indexOf(b[d+1]),c=k.indexOf(b[d+2]),l=k.indexOf(b[d+3]),u[n++]=f<<2|a>>4,u[n++]=(15&a)<<4|c>>2,u[n++]=(3&c)<<6|63&l;return m}function f(b){var d=new Uint8Array(b),f="";for(b=0;b<d.length;b+=3)f+=k[d[b]>>2],f+=k[(3&d[b])<<4|d[b+1]>>4],f+=k[(15&d[b+1])<<2|d[b+2]>>6],f+=k[63&d[b+2]];
return 2===d.length%3?f=f.substring(0,f.length-1)+"=":1===d.length%3&&(f=f.substring(0,f.length-2)+"=="),f}var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=/^~~local_forage_type~([^~]+)~/;return{serialize:function(b,d){var h="";if(b&&(h=b.toString()),b&&("[object ArrayBuffer]"===b.toString()||b.buffer&&"[object ArrayBuffer]"===b.buffer.toString())){var a,c="__lfsc__:";b instanceof ArrayBuffer?(a=b,c+="arbf"):(a=b.buffer,"[object Int8Array]"===h?c+="si08":"[object Uint8Array]"===
h?c+="ui08":"[object Uint8ClampedArray]"===h?c+="uic8":"[object Int16Array]"===h?c+="si16":"[object Uint16Array]"===h?c+="ur16":"[object Int32Array]"===h?c+="si32":"[object Uint32Array]"===h?c+="ui32":"[object Float32Array]"===h?c+="fl32":"[object Float64Array]"===h?c+="fl64":d(Error("Failed to get type for BinaryArray")));d(c+f(a))}else if("[object Blob]"===h)h=new FileReader,h.onload=function(){var a="~~local_forage_type~"+b.type+"~"+f(this.result);d("__lfsc__:blob"+a)},h.readAsArrayBuffer(b);else try{d(JSON.stringify(b))}catch(l){console.error("Couldn't convert value into a JSON string: ",
b),d(null,l)}},nj:function(f){if("__lfsc__:"!==f.substring(0,9))return JSON.parse(f);var d,k=f.substring(13);f=f.substring(9,13);if("blob"===f&&t.test(k)){var a=k.match(t);d=a[1];k=k.substring(a[0].length)}k=h(k);switch(f){case "arbf":return k;case "blob":var c;k=[k];d={type:d};k=k||[];d=d||{};try{c=new Blob(k,d)}catch(l){if("TypeError"!==l.name)throw l;c=new (b.BlobBuilder||b.De||b.xo||b.WebKitBlobBuilder);for(f=0;f<k.length;f+=1)c.append(k[f]);c=c.getBlob(d.type)}return c;case "si08":return new Int8Array(k);
case "ui08":return new Uint8Array(k);case "uic8":return new Uint8ClampedArray(k);case "si16":return new Int16Array(k);case "ur16":return new Uint16Array(k);case "si32":return new Int32Array(k);case "ui32":return new Uint32Array(k);case "fl32":return new Float32Array(k);case "fl64":return new Float64Array(k);default:throw Error("Unkown type: "+f);}},az:h,wy:f}}("undefined"!=typeof window?window:self);h.ud=k["default"]},function(h,k,b){k.Oi=!0;k["default"]=function(h){function f(a){var c=this,e={db:null};
if(a)for(var d in a)e[d]="string"!=typeof a[d]?a[d].toString():a[d];var f=new Promise(function(a,b){try{e.db=n(e.name,String(e.version),e.description,e.size)}catch(d){return b(d)}e.db.transaction(function(d){d.executeSql("CREATE TABLE IF NOT EXISTS "+e.qa+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){c.la=e;a()},function(a,c){b(c)})})});return(new Promise(function(a){a(b(3))})).then(function(a){return e.Hf=a,f})}function k(a,b){var c=this;"string"!=typeof a&&(h.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var d=new Promise(function(b,e){c.ready().then(function(){var d=c.la;d.db.transaction(function(c){c.executeSql("SELECT * FROM "+d.qa+" WHERE key = ? LIMIT 1",[a],function(a,c){var e=c.rows.length?c.rows.item(0).value:null;e&&(e=d.Hf.nj(e));b(e)},function(a,b){e(b)})})})["catch"](e)});return e(d,b),d}function t(a,b){var c=this,d=new Promise(function(b,e){c.ready().then(function(){var d=c.la;d.db.transaction(function(c){c.executeSql("SELECT * FROM "+d.qa,[],function(c,e){for(var g=e.rows,
f=g.length,l=0;f>l;l++){var h=g.item(l),k=h.value;if(k&&(k=d.Hf.nj(k)),k=a(k,h.key,l+1),void 0!==k)return void b(k)}b()},function(a,b){e(b)})})})["catch"](e)});return e(d,b),d}function p(a,b,c){var d=this;"string"!=typeof a&&(h.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=new Promise(function(c,e){d.ready().then(function(){void 0===b&&(b=null);var g=b,f=d.la;f.Hf.serialize(b,function(b,d){d?e(d):f.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+f.qa+
" (key, value) VALUES (?, ?)",[a,b],function(){c(g)},function(a,b){e(b)})},function(a){a.code===a.QUOTA_ERR&&e(a)})})})["catch"](e)});return e(f,c),f}function d(a,b){var c=this;"string"!=typeof a&&(h.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,e){c.ready().then(function(){var d=c.la;d.db.transaction(function(c){c.executeSql("DELETE FROM "+d.qa+" WHERE key = ?",[a],function(){b()},function(a,b){e(b)})})})["catch"](e)});return e(d,b),d}function q(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.la;e.db.transaction(function(b){b.executeSql("DELETE FROM "+e.qa,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return e(c,a),c}function a(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.la;e.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+e.qa,[],function(b,c){var e=c.rows.item(0).kh;a(e)},function(a,b){c(b)})})})["catch"](c)});return e(c,a),c}function c(a,b){var c=this,
d=new Promise(function(b,e){c.ready().then(function(){var d=c.la;d.db.transaction(function(c){c.executeSql("SELECT key FROM "+d.qa+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var e=c.rows.length?c.rows.item(0).key:null;b(e)},function(a,b){e(b)})})})["catch"](e)});return e(d,b),d}function l(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.la;e.db.transaction(function(b){b.executeSql("SELECT key FROM "+e.qa,[],function(b,c){for(var e=[],d=0;d<c.rows.length;d++)e.push(c.rows.item(d).key);
a(e)},function(a,b){c(b)})})})["catch"](c)});return e(c,a),c}function e(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var n=h.openDatabase;if(n)return{fh:"webSQLStorage",fl:f,np:t,getItem:k,setItem:p,removeItem:d,clear:q,length:a,key:c,keys:l}}("undefined"!=typeof window?window:self);h.ud=k["default"]}])};"object"==typeof exports&&"object"==typeof module?module.ud=nc():"function"==typeof define&&define.vy?define([],nc):"object"==typeof exports?exports.localforage=nc():this.localforage=
nc()}catch(oc){mc=!0}function pc(h){this.b=h}
(function(){function h(){}function k(){}function b(){}var u="",f="",r="";"undefined"!==typeof window.is_scirra_arcade&&(r="sa"+window.scirra_arcade_id+"_");var t=pc.prototype;t.ya=function(b){this.pa=b;this.b=b.b};t.ya.prototype.N=function(){};t.ja=function(b){this.type=b;this.b=b.b};var p=t.ja.prototype;p.N=function(){this.Cm=0};p.Dg=function(){};p.Tb=function(){return{}};p.ic=function(){};h.prototype.es=function(b){return u===b};h.prototype.Sr=function(){return!0};h.prototype.ds=function(b){return u===
b};h.prototype.Ki=function(){return!0};h.prototype.cs=function(b){return u===b};h.prototype.Fn=function(b){return u===b};h.prototype.Pr=function(){return!0};t.g=new h;k.prototype.Ns=function(b,h){if(mc)this.b.trigger(pc.prototype.g.Ki,this);else{var a=r+b;this.Cm++;var c=this;localforage.setItem(a,h,function(a,e){c.Cm--;a?c.b.trigger(pc.prototype.g.Ki,c):(u=b,f=e,c.b.trigger(pc.prototype.g.Sr,c),c.b.trigger(pc.prototype.g.es,c),f=u="");0===c.Cm&&c.b.trigger(pc.prototype.g.Pr,c)})}};k.prototype.Zq=
function(b){if(mc)this.b.trigger(pc.prototype.g.Ki,this);else{var h=this;localforage.getItem(r+b,function(a,c){a?h.b.trigger(pc.prototype.g.Ki,h):(u=b,null===c?(f="",h.b.trigger(pc.prototype.g.Fn,h)):(f=c,h.b.trigger(pc.prototype.g.cs,h)),f=u="")})}};t.n=new k;b.prototype.Ir=function(b){b.Dk(f)};t.D=new b})();function qc(h){this.b=h}
(function(){function h(){}function k(){}function b(){}var u=qc.prototype;u.ya=function(b){this.pa=b;this.b=b.b};u.ya.prototype.N=function(){};u.ja=function(b){this.type=b;this.b=b.b;this.Tf=Array(4);this.Gq=this.Lk=this.Kf=this.ge=this.fe=0;this.Ol=!1};var f=u.ja.prototype;f.N=function(){var b=this;if(!this.b.Ea){jQuery(document).mousemove(function(d){b.vm(d)});jQuery(document).mousedown(function(d){b.um(d)});jQuery(document).mouseup(function(d){b.wm(d)});jQuery(document).dblclick(function(d){b.Qv(d)});
var d=function(d){b.Uv(d)};document.addEventListener("mousewheel",d,!1);document.addEventListener("DOMMouseScroll",d,!1)}};var r={left:0,top:0};f.vm=function(b){var d=this.b.Ea?r:jQuery(this.b.canvas).offset();this.fe=b.pageX-d.left;this.ge=b.pageY-d.top};f.wp=function(){return 0<this.b.Yb?!0:0<=this.fe&&0<=this.ge&&this.fe<this.b.width&&this.ge<this.b.height};f.um=function(b){this.wp()&&(this.Tf[b.which]=!0,this.b.Sb=!0,this.b.trigger(qc.prototype.g.Rr,this),this.Kf=b.which-1,this.Lk=0,this.b.trigger(qc.prototype.g.Bn,
this),this.b.trigger(qc.prototype.g.Kn,this),this.b.Sb=!1)};f.wm=function(b){this.Tf[b.which]&&(this.b.Fj&&!this.b.be&&b.preventDefault(),this.b.Fj=!0,this.Tf[b.which]=!1,this.b.Sb=!0,this.Kf=b.which-1,this.b.trigger(qc.prototype.g.Ln,this),this.b.Sb=!1)};f.Qv=function(b){this.wp()&&(b.preventDefault(),this.b.Sb=!0,this.Kf=b.which-1,this.Lk=1,this.b.trigger(qc.prototype.g.Bn,this),this.b.trigger(qc.prototype.g.Kn,this),this.b.Sb=!1)};f.Uv=function(b){this.Gq=0>(b.wheelDelta?b.wheelDelta:b.detail?
-b.detail:0)?0:1;this.Ol=!1;this.b.Sb=!0;this.b.trigger(qc.prototype.g.vs,this);this.b.Sb=!1;this.Ol&&nb(b)&&b.preventDefault()};f.Fg=function(){var b,d;b=0;for(d=this.Tf.length;b<d;++b)this.Tf[b]&&(this.Tf[b]=!1,this.Kf=b-1,this.b.trigger(qc.prototype.g.Ln,this))};h.prototype.Bn=function(b,d){return b===this.Kf&&d===this.Lk};h.prototype.Rr=function(){return!0};h.prototype.Ln=function(b){return b===this.Kf};h.prototype.Cr=function(b){var d=this.b.Bh();return Va(this.b.Ug(b,this.fe,this.ge,d.jg),d.jg)};
h.prototype.Kn=function(b,d,f){return b!==this.Kf||d!==this.Lk?!1:this.b.Ug(f,this.fe,this.ge,!1)};h.prototype.vs=function(b){this.Ol=!0;return b===this.Gq};u.g=new h;var t=null;k.prototype.Ls=function(b){this.b.Ea||(b="auto pointer text crosshair move help wait none".split(" ")[b],t!==b&&(t=b,document.body.style.cursor=b))};u.n=new k;b.prototype.bl=function(b,d){var f,a,c,l,e;la(d)?(f=this.b.xd(0),a=f.scale,c=f.Wb,l=f.jc,e=f.j,f.scale=1,f.Wb=1,f.jc=1,f.j=0,b.u(f.Wa(this.fe,this.ge,!0)),f.scale=a,
f.Wb=c,f.jc=l,f.j=e):(f=ma(d)?this.b.xd(d):this.b.fg(d))?b.u(f.Wa(this.fe,this.ge,!0)):b.u(0)};b.prototype.cl=function(b,d){var f,a,c,l,e;la(d)?(f=this.b.xd(0),a=f.scale,c=f.Wb,l=f.kc,e=f.j,f.scale=1,f.Wb=1,f.kc=1,f.j=0,b.u(f.Wa(this.fe,this.ge,!1)),f.scale=a,f.Wb=c,f.kc=l,f.j=e):(f=ma(d)?this.b.xd(d):this.b.fg(d))?b.u(f.Wa(this.fe,this.ge,!1)):b.u(0)};u.D=new b})();function P(h){this.b=h}
(function(){function h(){if(0===this.tl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Rg?b.drawImage(this.ra,this.Bg,this.Cg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.ra,0,0,this.width,this.height);this.tl=a.toDataURL("image/png")}return this.tl}function k(){}function b(){}function u(){}var f=P.prototype;f.ya=function(a){this.pa=a;this.b=a.b};var r=f.ya.prototype;r.N=function(){if(!this.J){var a,b,c,d,
g,f,l,k,q;this.Zc=[];this.Jh=!1;a=0;for(b=this.qc.length;a<b;a++){g=this.qc[a];l={};l.name=g[0];l.speed=g[1];l.loop=g[2];l.Lm=g[3];l.Mm=g[4];l.ke=g[5];l.X=g[6];l.frames=[];c=0;for(d=g[7].length;c<d;c++)f=g[7][c],k={},k.an=f[0],k.Cq=f[1],k.Bg=f[2],k.Cg=f[3],k.width=f[4],k.height=f[5],k.duration=f[6],k.gc=f[7],k.hc=f[8],k.Sl=f[9],k.nk=f[10],k.Wp=f[11],k.Rg=0!==k.width,k.tl="",k.Cy=h,q={left:0,top:0,right:1,bottom:1},k.Vm=q,k.Ta=null,(q=this.b.Bu(f[0]))?k.ra=q:(k.ra=new Image,k.ra.Dt=f[0],k.ra.Ct=f[1],
k.ra.yt=null,this.b.gx(k.ra,f[0])),l.frames.push(k),this.Zc.push(k);this.qc[a]=l}}};r.Oq=function(){var a,b,c;a=0;for(b=this.e.length;a<b;a++)c=this.e[a],c.jj=c.Fa.Ta};r.ek=function(){if(!this.J){var a,b,c;a=0;for(b=this.Zc.length;a<b;++a)c=this.Zc[a],c.ra.yt=null,c.Ta=null;this.Jh=!1;this.Oq()}};r.xm=function(){if(!this.J&&this.e.length){var a,b,c;a=0;for(b=this.Zc.length;a<b;++a)c=this.Zc[a],c.Ta=this.b.H.hm(c.ra,!1,this.b.Ja,c.Wp);this.Oq()}};r.Ev=function(){if(!this.J&&!this.Jh&&this.b.H){var a,
b,c;a=0;for(b=this.Zc.length;a<b;++a)c=this.Zc[a],c.Ta=this.b.H.hm(c.ra,!1,this.b.Ja,c.Wp);this.Jh=!0}};r.ln=function(){if(!this.J&&!this.e.length&&this.Jh){var a,b,c;a=0;for(b=this.Zc.length;a<b;++a)c=this.Zc[a],this.b.H.deleteTexture(c.Ta),c.Ta=null;this.Jh=!1}};var t=[];r.Em=function(a){var b,c,d;A(t);b=0;for(c=this.Zc.length;b<c;++b)d=this.Zc[b].ra,-1===t.indexOf(d)&&(a.drawImage(d,0,0),t.push(d))};f.ja=function(a){this.type=a;this.b=a.b;a=this.type.qc[0].frames[0].nk;this.zc?this.ma.si(a):this.ma=
new gb(a)};var p=f.ja.prototype;p.N=function(){this.visible=0===this.q[0];this.Hj=this.xf=!1;this.gf=0!==this.q[3];this.Da=this.Mo(this.q[1])||this.type.qc[0];this.C=this.q[2];0>this.C&&(this.C=0);this.C>=this.Da.frames.length&&(this.C=this.Da.frames.length-1);var a=this.Da.frames[this.C];this.ma.si(a.nk);this.gc=a.gc;this.hc=a.hc;this.jf=this.Da.speed;this.Je=this.Da.Mm;1===this.type.qc.length&&1===this.type.qc[0].frames.length||0===this.jf||(this.b.Vg(this),this.xf=!0);this.zc?this.rd.reset():this.rd=
new cb;this.Yd=this.rd.O;this.df=!0;this.Qd=0;this.Be=!0;this.Vf=this.ko="";this.so=0;this.bj=-1;this.type.Ev();var b,c,d,g,f,l,h,a=0;for(b=this.type.qc.length;a<b;a++)for(g=this.type.qc[a],c=0,d=g.frames.length;c<d;c++)f=g.frames[c],0===f.width&&(f.width=f.ra.width,f.height=f.ra.height),f.Rg&&(h=f.ra,l=f.Vm,l.left=f.Bg/h.width,l.top=f.Cg/h.height,l.right=(f.Bg+f.width)/h.width,l.bottom=(f.Cg+f.height)/h.height,0===f.Bg&&0===f.Cg&&f.width===h.width&&f.height===h.height&&(f.Rg=!1));this.Fa=this.Da.frames[this.C];
this.jj=this.Fa.Ta};p.Tb=function(){var a={a:this.Da.X,f:this.C,cas:this.jf,fs:this.Yd,ar:this.Qd,at:this.rd.O,rt:this.Je};this.df||(a.ap=this.df);this.Be||(a.af=this.Be);return a};p.ic=function(a){var b=this.Gu(a.a);b&&(this.Da=b);this.C=a.f;0>this.C&&(this.C=0);this.C>=this.Da.frames.length&&(this.C=this.Da.frames.length-1);this.jf=a.cas;this.Yd=a.fs;this.Qd=a.ar;this.rd.reset();this.rd.O=a.at;this.df=a.hasOwnProperty("ap")?a.ap:!0;this.Be=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Je=
a.rt:this.Je=this.Da.Mm;this.Fa=this.Da.frames[this.C];this.jj=this.Fa.Ta;this.ma.si(this.Fa.nk);this.gc=this.Fa.gc;this.hc=this.Fa.hc};p.jl=function(a){this.C=a?0:this.Da.frames.length-1;this.df=!1;this.ko=this.Da.name;this.Hj=!0;this.b.trigger(P.prototype.g.Qr,this);this.b.trigger(P.prototype.g.An,this);this.Hj=!1;this.Qd=0};p.De=function(){return this.rd.O};p.Gb=function(){this.rd.add(this.b.Ch(this));this.Vf.length&&this.Ao();0<=this.bj&&this.Bo();var a=this.rd.O,b=this.Da,c=b.frames[this.C],
d=c.duration/this.jf;this.df&&a>=this.Yd+d&&(this.Be?this.C++:this.C--,this.Yd+=d,this.C>=b.frames.length&&(b.ke?(this.Be=!1,this.C=b.frames.length-2):b.loop?this.C=this.Je:(this.Qd++,this.Qd>=b.Lm?this.jl(!1):this.C=this.Je)),0>this.C&&(b.ke?(this.C=1,this.Be=!0,b.loop||(this.Qd++,this.Qd>=b.Lm&&this.jl(!0))):b.loop?this.C=this.Je:(this.Qd++,this.Qd>=b.Lm?this.jl(!0):this.C=this.Je)),0>this.C?this.C=0:this.C>=b.frames.length&&(this.C=b.frames.length-1),a>this.Yd+b.frames[this.C].duration/this.jf&&
(this.Yd=a),a=b.frames[this.C],this.Qf(c,a),this.b.T=!0)};p.Mo=function(a){var b,c,d;b=0;for(c=this.type.qc.length;b<c;b++)if(d=this.type.qc[b],mb(d.name,a))return d;return null};p.Gu=function(a){var b,c,d;b=0;for(c=this.type.qc.length;b<c;b++)if(d=this.type.qc[b],d.X===a)return d;return null};p.Ao=function(){var a=this.Da.frames[this.C],b=this.Mo(this.Vf);this.Vf="";!b||mb(b.name,this.Da.name)&&this.df||(this.Da=b,this.jf=b.speed,this.Je=b.Mm,0>this.C&&(this.C=0),this.C>=this.Da.frames.length&&(this.C=
this.Da.frames.length-1),1===this.so&&(this.C=0),this.df=!0,this.Yd=this.rd.O,this.Be=!0,this.Qf(a,this.Da.frames[this.C]),this.b.T=!0)};p.Bo=function(){var a=this.Da.frames[this.C],b=this.C;this.C=ua(this.bj);0>this.C&&(this.C=0);this.C>=this.Da.frames.length&&(this.C=this.Da.frames.length-1);b!==this.C&&(this.Qf(a,this.Da.frames[this.C]),this.Yd=this.rd.O,this.b.T=!0);this.bj=-1};p.Qf=function(a,b){var c=a.width,d=a.height,g=b.width,f=b.height;c!=g&&(this.width*=g/c);d!=f&&(this.height*=f/d);this.gc=
b.gc;this.hc=b.hc;this.ma.si(b.nk);this.Ra();this.Fa=b;this.jj=b.Ta;c=0;for(d=this.L.length;c<d;c++)g=this.L[c],g.Lp&&g.Lp(a,b);this.b.trigger(P.prototype.g.Qf,this)};p.dd=function(a){a.globalAlpha=this.opacity;var b=this.Fa,c=b.Rg,d=b.ra,g=this.x,f=this.y,l=this.width,h=this.height;if(0===this.j&&0<=l&&0<=h)g-=this.gc*l,f-=this.hc*h,this.b.hd&&(g=Math.round(g),f=Math.round(f)),c?a.drawImage(d,b.Bg,b.Cg,b.width,b.height,g,f,l,h):a.drawImage(d,g,f,l,h);else{this.b.hd&&(g=Math.round(g),f=Math.round(f));
a.save();var k=0<l?1:-1,q=0<h?1:-1;a.translate(g,f);1===k&&1===q||a.scale(k,q);a.rotate(this.j*k*q);g=0-this.gc*oa(l);f=0-this.hc*oa(h);c?a.drawImage(d,b.Bg,b.Cg,b.width,b.height,g,f,oa(l),oa(h)):a.drawImage(d,g,f,oa(l),oa(h));a.restore()}};p.Zf=function(a){this.Dc(a)};p.Dc=function(a){a.Mc(this.jj);a.Og(this.opacity);var b=this.Fa,c=this.Xb;if(this.b.hd){var d=Math.round(this.x)-this.x,g=Math.round(this.y)-this.y;b.Rg?a.Ye(c.Ka+d,c.La+g,c.zb+d,c.Ab+g,c.lb+d,c.mb+g,c.jb+d,c.kb+g,b.Vm):a.Hm(c.Ka+d,
c.La+g,c.zb+d,c.Ab+g,c.lb+d,c.mb+g,c.jb+d,c.kb+g)}else b.Rg?a.Ye(c.Ka,c.La,c.zb,c.Ab,c.lb,c.mb,c.jb,c.kb,b.Vm):a.Hm(c.Ka,c.La,c.zb,c.Ab,c.lb,c.mb,c.jb,c.kb)};p.Lu=function(a){var b=this.Fa,c,d;c=0;for(d=b.Sl.length;c<d;c++)if(mb(a,b.Sl[c][0]))return c;return-1};p.Dh=function(a,b){var c=this.Fa,d=c.Sl,g;na(a)?g=this.Lu(a):g=a-1;g=ua(g);if(0>g||g>=d.length)return b?this.x:this.y;var f=(d[g][1]-c.gc)*this.width,d=d[g][2],d=(d-c.hc)*this.height,c=Math.cos(this.j);g=Math.sin(this.j);var l=f*c-d*g,d=d*
c+f*g,f=l+this.x,d=d+this.y;return b?f:d};var d=null,q=new ha,a=!1,c=[],l=new xa(0,0,0,0);r.finish=function(b){if(a){if(b){var c=this.b.ab().ob.Kc;b=d.W();var f=q.bf(),l,g;if(b.ga){b.ga=!1;A(b.e);l=0;for(g=f.length;l<g;++l)b.e[l]=f[l];if(c)for(A(b.S),l=0,g=d.e.length;l<g;++l)f=d.e[l],q.contains(f)||b.S.push(f)}else if(c)for(c=b.e.length,l=0,g=f.length;l<g;++l)b.e[c+l]=f[l],Ga(b.S,f[l]);else Da(b.e,f);d.Rd()}q.clear();a=!1}};k.prototype.Dr=function(b){if(b){var f=!1,h,k,g,p=this.b.Bh(),u=p.type,p=
p.jg;h=b.W();k=this.b.ab().ob.Kc;var r;h.ga?(this.za(),l.Xf(this.Va),l.offset(0,0),this.b.Iu(this.k,b,l,c),r=c):r=k?this.b.rv()&&!h.S.length&&h.e.length?h.e:h.S:h.e;d=b;a=u!==b&&!p;h=0;for(k=r.length;h<k;h++)if(g=r[h],this.b.Pw(this,g)){f=!0;if(p)break;u!==b&&q.add(g)}A(c);b=f}else b=!1;return b};k.prototype.rr=function(a){return this.Vf.length?mb(this.Vf,a):mb(this.Da.name,a)};k.prototype.An=function(a){return mb(this.ko,a)};k.prototype.Qr=function(){return!0};k.prototype.Qf=function(){return!0};
f.g=new k;b.prototype.Hs=function(a,b){this.Vf=a;this.so=b;this.xf||(this.b.Vg(this),this.xf=!0);this.Hj||this.Ao()};b.prototype.Is=function(a){this.bj=a;this.xf||(this.b.Vg(this),this.xf=!0);this.Hj||this.Bo()};b.prototype.Js=function(a){this.jf=oa(a);this.Be=0<=a;this.xf||(this.b.Vg(this),this.xf=!0)};b.prototype.Un=function(a){var b=this.Fa,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.Ra()};f.n=new b;u.prototype.or=
function(a,b){a.u(this.Dh(b,!0))};u.prototype.pr=function(a,b){a.u(this.Dh(b,!1))};f.D=new u})();function rc(h){this.b=h}
(function(){function h(a,b){return a.length?a.pop():new b}function k(a,b,c){if(c){var d;c=0;for(d=b.length;c<d;c++)a.length<t&&a.push(b[c]);b.length=0}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<t&&a.push(b[d]),delete b[d])}function b(a,b,c){var d=a.$b;c=c.replace(/\s\s*$/,"");b>=d.length&&d.push(h(p,Object));b=d[b];b.text=c;b.width=a.lm(c);a.qe=pa(a.qe,b.width)}function u(){}var f=rc.prototype;f.N=function(){};f.ya=function(a){this.pa=a;this.b=a.b};var r=f.ya.prototype;r.N=
function(){this.J||(this.ra=new Image,this.ra.idtkLoadDisposed=!0,this.ra.src=this.an,this.b.Mf.push(this.ra),this.Ta=null)};r.ek=function(){this.J||(this.Ta=null)};r.xm=function(){if(!this.J&&this.e.length){this.Ta||(this.Ta=this.b.H.hm(this.ra,!1,this.b.Ja,this.bn));var a,b;a=0;for(b=this.e.length;a<b;a++)this.e[a].Ta=this.Ta}};r.ln=function(){this.J||this.e.length||!this.Ta||(this.b.H.deleteTexture(this.Ta),this.Ta=null)};r.Em=function(a){a.drawImage(this.ra,0,0)};f.ja=function(a){this.type=a;
this.b=a.b};r=f.ja.prototype;r.Dg=function(){k(p,this.$b,!0);k(d,this.dj,!1);k(q,this.ej,!1);Ya(this.bd)};r.N=function(){this.ra=this.type.ra;this.cj=this.q[0];this.Fe=this.q[1];this.characterSet=this.q[2];this.text=this.q[3];this.sd=this.q[4];this.visible=0===this.q[5];this.sf=this.q[6]/2;this.Lf=this.q[7]/2;this.Hi=0===this.q[9];this.Wf=this.q[10];this.lineHeight=this.q[11];this.Kd=this.qe=0;this.oh=this.q[12];this.xq=this.q[13];console.log(this.oh);this.zc?(this.$b.length=0,Ya(this.dj),Ya(this.ej),
Ya(this.bd)):(this.$b=[],this.dj={},this.ej={},this.bd={});try{if(this.oh)if(-1!==this.oh.indexOf('""c2array""'))for(var a=jQuery.parseJSON(this.oh.replace(/""/g,'"')),b=a.size[1],c=0;c<b;c++)for(var d=a.data[1][c][0],f=a.data[0][c][0],g=0;g<d.length;g++)this.bd[d.charAt(g)]=f;else for(a=jQuery.parseJSON(this.oh),b=a.length,c=0;c<b;c++)for(d=a[c][1],f=a[c][0],g=0;g<d.length;g++)this.bd[d.charAt(g)]=f;-1!==this.xq&&(this.bd[" "]=this.xq)}catch(h){window.console&&window.console.log&&window.console.log("SpriteFont+ Failure: "+
h)}this.Bc=!0;this.Cf=this.width;this.b.H&&(this.type.Ta||(this.type.Ta=this.b.H.hm(this.type.ra,!1,this.b.Ja,this.type.bn)),this.Ta=this.type.Ta);this.Xs()};r.Tb=function(){var a={t:this.text,csc:this.sd,csp:this.Wf,lh:this.lineHeight,tw:this.qe,th:this.Kd,lrt:this.Bf,cw:{}},b;for(b in this.bd)a.cw[b]=this.bd[b];return a};r.ic=function(a){this.text=a.t;this.sd=a.csc;this.Wf=a.csp;this.lineHeight=a.lh;this.qe=a.tw;this.Kd=a.th;this.Bf=a.lrt;for(var b in a.cw)this.bd[b]=a.cw[b];this.Bc=!0;this.Cf=
this.width};var t=1E3,p=[],d=[],q=[];r.Xs=function(){for(var a=this.ra,b=a.width,c=a.height,a=this.cj,f=this.Fe,k=a/b,g=f/c,p=this.characterSet,b=Math.floor(b/a),c=Math.floor(c/f),u=0;u<p.length&&!(u>=b*c);u++){var r=u%b,t=Math.floor(u/b),K=p.charAt(u);if(this.b.H){var I=this.ej,w=r*k,Q=t*g,r=(r+1)*k,t=(t+1)*g;void 0===I[K]&&(I[K]=h(q,xa));I[K].left=w;I[K].top=Q;I[K].right=r;I[K].bottom=t}else I=this.dj,r=r*a,t=t*f,w=a,Q=f,void 0===I[K]&&(I[K]=h(d,Object)),I[K].x=r,I[K].y=t,I[K].Sq=w,I[K].Vo=Q}};
var a=[];f.Zk=function(b){a.length=0;for(var c="",d,f=0;f<b.length;)if(d=b.charAt(f),"\n"===d)c.length&&(a.push(c),c=""),a.push("\n"),++f;else if(" "===d||"\t"===d||"-"===d){do c+=b.charAt(f),f++;while(f<b.length&&(" "===b.charAt(f)||"\t"===b.charAt(f)));a.push(c);c=""}else f<b.length&&(c+=d,f++);c.length&&a.push(c)};f.$k=function(a){var b=a.text,c=a.$b;if(b&&b.length){var d=a.width;if(2>=d)k(p,c,!0);else{var f=a.sd,g=a.Wf;if(b.length*(a.cj*f+g)-g<=d&&-1===b.indexOf("\n")&&(g=a.lm(b),g<=d)){k(p,c,
!0);c.push(h(p,Object));c[0].text=b;c[0].width=g;a.qe=g;a.Kd=a.Fe*f+a.lineHeight;return}this.al(a);a.Kd=c.length*(a.Fe*f+a.lineHeight)}}else k(p,c,!0)};f.al=function(c){var d=c.Hi,f=c.text,h=c.$b,k=c.width;d&&(this.Zk(f),f=a);var g="",q,r,u,F=0,K=!1;for(u=0;u<f.length;u++)"\n"===f[u]?(!0===K?K=!1:(b(c,F,g),F++),g=""):(K=!1,q=g,g+=f[u],r=c.lm(g.replace(/\s\s*$/,"")),r>k&&(""===q?(b(c,F,g),g="",K=!0):(b(c,F,q),g=f[u]),F++,d||" "!==g||(g="")));g.replace(/\s\s*$/,"").length&&(b(c,F,g),F++);for(u=F;u<
h.length;u++)p.length<t&&p.push(h[u]);h.length=F};r.lm=function(a){for(var b=this.Wf,c=a.length,d=0,f=0;f<c;f++)d+=this.Ah(a.charAt(f))*this.sd+b;return d-(0<d?b:0)};r.Ah=function(a){var b=this.bd;return void 0!==b[a]?b[a]:this.cj};r.dq=function(){if(this.Bc||this.width!==this.Cf)this.Kd=this.qe=0,this.type.pa.$k(this),this.Bc=!1,this.Cf=this.width};r.dd=function(a){var b=this.ra;if(""!==this.text&&null!=b&&(this.dq(),!(this.height<this.Fe*this.sd+this.lineHeight))){a.globalAlpha=this.opacity;var b=
this.x,c=this.y;this.b.hd&&(b=b+.5|0,c=c+.5|0);a.save();a.translate(b,c);a.rotate(this.j);for(var b=this.sf,c=this.sd,d=this.Fe*c,f=this.lineHeight,g=this.Wf,h=this.$b,k,q=-(this.gc*this.width),p=-(this.hc*this.height),p=p+this.Lf*pa(0,this.height-this.Kd),u=0;u<h.length;u++){var r=h[u].text;k=b*pa(0,this.width-h[u].width);k=q+k;for(var p=p+f,t=0;t<r.length;t++){var Q=r.charAt(t),H=this.dj[Q];if(k+this.Ah(Q)*c>this.width+1E-5)break;void 0!==H&&a.drawImage(this.ra,H.x,H.y,H.Sq,H.Vo,Math.round(k),Math.round(p),
H.Sq*c,H.Vo*c);k+=this.Ah(Q)*c+g}p+=d;if(p+d+f>this.height)break}a.restore()}};var c=new ya;r.Dc=function(a){a.Mc(this.Ta);a.Og(this.opacity);if(""!==this.text&&(this.dq(),!(this.height<this.Fe*this.sd+this.lineHeight))){this.za();var b=this.Xb,d=0,f=0;this.b.hd&&(d=(this.x+.5|0)-this.x,f=(this.y+.5|0)-this.y);var h=this.j,g=this.sf,k=this.Lf,q=this.sd,p=this.Fe*q,u=this.lineHeight,r=this.Wf,t=this.$b,w=this.Kd,Q,H;0!==h&&(Q=Math.cos(h),H=Math.sin(h));for(var O,d=b.Ka+d,b=b.La+f,k=k*pa(0,this.height-
w),w=0;w<t.length;w++){f=t[w].text;O=g*pa(0,this.width-t[w].width);for(var k=k+u,X=0;X<f.length;X++){var x=f.charAt(X),V=this.ej[x];if(O+this.Ah(x)*q>this.width+1E-5)break;if(void 0!==V){var E=this.cj*q,J=this.Fe*q;c.Ka=O;c.La=k;c.zb=O+E;c.Ab=k;c.jb=O;c.kb=k+J;c.lb=O+E;c.mb=k+J;if(0!==h){var E=c,J=Q,y=H,B=void 0,B=E.Ka*J-E.La*y;E.La=E.La*J+E.Ka*y;E.Ka=B;B=E.zb*J-E.Ab*y;E.Ab=E.Ab*J+E.zb*y;E.zb=B;B=E.jb*J-E.kb*y;E.kb=E.kb*J+E.jb*y;E.jb=B;B=E.lb*J-E.mb*y;E.mb=E.mb*J+E.lb*y;E.lb=B}c.offset(d,b);a.Ye(c.Ka,
c.La,c.zb,c.Ab,c.lb,c.mb,c.jb,c.kb,V)}O+=this.Ah(x)*q+r}k+=p;if(k+p+u>this.height)break}}};f.g=new function(){};u.prototype.Xk=function(a){ma(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Bc=!0,this.b.T=!0)};u.prototype.Un=function(a){a!==this.sd&&(this.sd=a,this.Bc=!0,this.b.T=!0)};r.De=function(a,b){var c=parseInt(b,10);this.bd[a]!==c&&(this.bd[a]=c,this.Bc=!0,this.b.T=!0)};f.n=new u;f.D=new function(){}})();function sc(h){this.b=h}
(function(){function h(){return p.length?p.pop():{}}function k(b){var f,a;f=0;for(a=b.length;f<a;f++)p.push(b[f]);A(b)}function b(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function u(){}var f=sc.prototype;f.N=function(){f.n.Vn=function(b){this.width!==b&&(this.width=b,this.Bc=!0,this.Ra())}};f.ya=function(b){this.pa=b;this.b=b.b};var r=f.ya.prototype;r.N=function(){};r.ek=function(){if(!this.J){var b,f,a;b=0;for(f=this.e.length;b<f;b++)a=this.e[b],a.Dd=null,a.Ff=null,
a.wc=null}};f.ja=function(b){this.type=b;this.b=b.b;this.zc?A(this.$b):this.$b=[];this.Bc=!0};r=f.ja.prototype;r.N=function(){this.text=this.q[0];this.visible=0===this.q[1];this.font=this.q[2];this.color=this.q[3];this.sf=this.q[4];this.Lf=this.q[5];this.Hi=0===this.q[7];this.Cf=this.Uj=this.width;this.Tj=this.height;this.gm=this.q[8];this.wj=this.bg="";this.Kd=this.qe=this.ii=0;this.Xv();this.wc=this.Ff=this.Dd=null;this.zp=!1;this.Bf=this.b.Ld;this.zc?this.Jg.set(0,0,1,1):this.Jg=new xa(0,0,1,1);
this.b.H&&this.b.Vg(this)};r.Xv=function(){var b=this.font.split(" "),f;for(f=0;f<b.length;f++)if("pt"===b[f].substr(b[f].length-2,2)){this.ii=parseInt(b[f].substr(0,b[f].length-2));this.Gm=Math.ceil(this.ii/72*96)+4;0<f&&(this.wj=b[f-1]);this.bg=b[f+1];for(f+=2;f<b.length;f++)this.bg+=" "+b[f];break}};r.Tb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.sf,va:this.Lf,wr:this.Hi,lho:this.gm,fn:this.bg,fs:this.wj,ps:this.ii,pxh:this.Gm,tw:this.qe,th:this.Kd,lrt:this.Bf}};r.ic=function(b){this.text=
b.t;this.font=b.f;this.color=b.c;this.sf=b.ha;this.Lf=b.va;this.Hi=b.wr;this.gm=b.lho;this.bg=b.fn;this.wj=b.fs;this.ii=b.ps;this.Gm=b.pxh;this.qe=b.tw;this.Kd=b.th;this.Bf=b.lrt;this.Bc=!0;this.Cf=this.Uj=this.width;this.Tj=this.height};r.Gb=function(){if(this.b.H&&this.wc&&300<=this.b.Ld-this.Bf){var b=this.k;this.za();var f=this.Va;if(f.right<b.wa||f.bottom<b.xa||f.left>b.Ba||f.top>b.Aa)this.b.H.deleteTexture(this.wc),this.Dd=this.Ff=this.wc=null}};r.Dg=function(){this.Dd=this.Ff=null;this.b.H&&
this.wc&&this.b.H.deleteTexture(this.wc);this.wc=null};r.De=function(){this.font=this.wj+" "+this.ii.toString()+"pt "+this.bg;this.Bc=!0;this.b.T=!0};r.dd=function(b,f){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=f?1:this.opacity;var a=1;f&&(a=Math.abs(this.k.sc()),b.save(),b.scale(a,a));if(this.Bc||this.width!==this.Cf)this.type.pa.$k(this.text,this.$b,b,this.width,this.Hi),this.Bc=!1,this.Cf=this.width;this.za();var a=f?0:this.Xb.Ka,c=f?0:this.Xb.La;this.b.hd&&(a=
a+.5|0,c=c+.5|0);0===this.j||f||(b.save(),b.translate(a,c),b.rotate(this.j),c=a=0);var l=c+this.height,e=this.Gm,e=e+this.gm,h,k;1===this.Lf?c+=Math.max(this.height/2-this.$b.length*e/2,0):2===this.Lf&&(c+=Math.max(this.height-this.$b.length*e-2,0));for(k=0;k<this.$b.length&&!(h=a,1===this.sf?h=a+(this.width-this.$b[k].width)/2:2===this.sf&&(h=a+(this.width-this.$b[k].width)),b.fillText(this.$b[k].text,h,c),c+=e,c>=l-e);k++);(0!==this.j||f)&&b.restore();this.Bf=this.b.Ld};r.Dc=function(b){if(!(1>
this.width||1>this.height)){var f=this.Bc||this.zp;this.zp=!1;var a=this.k.sc(),c=this.k.qb(),l=this.Jg,e=a*this.width,h=a*this.height,k=Math.ceil(e),p=Math.ceil(h),g=Math.abs(k),u=Math.abs(p),r=this.b.G/2,t=this.b.F/2;this.Ff||(this.Dd=document.createElement("canvas"),this.Dd.width=g,this.Dd.height=u,this.Uj=g,this.Tj=u,f=!0,this.Ff=this.Dd.getContext("2d"));if(g!==this.Uj||u!==this.Tj)this.Dd.width=g,this.Dd.height=u,this.wc&&(b.deleteTexture(this.wc),this.wc=null),f=!0;f&&(this.Ff.clearRect(0,
0,g,u),this.dd(this.Ff,!0),this.wc||(this.wc=b.Pc(g,u,this.b.Ja,this.b.be)),b.ez(this.Dd,this.wc,this.b.be));this.Uj=g;this.Tj=u;b.Mc(this.wc);b.Og(this.opacity);b.Id();b.translate(-r,-t);b.Nd();var F=this.Xb,f=this.k.Ia(F.Ka,F.La,!0,!0),g=this.k.Ia(F.Ka,F.La,!1,!0),u=this.k.Ia(F.zb,F.Ab,!0,!0),r=this.k.Ia(F.zb,F.Ab,!1,!0),t=this.k.Ia(F.lb,F.mb,!0,!0),K=this.k.Ia(F.lb,F.mb,!1,!0),I=this.k.Ia(F.jb,F.kb,!0,!0),F=this.k.Ia(F.jb,F.kb,!1,!0);if(this.b.hd||0===this.j&&0===c)var w=(f+.5|0)-f,Q=(g+.5|0)-
g,f=f+w,g=g+Q,u=u+w,r=r+Q,t=t+w,K=K+Q,I=I+w,F=F+Q;0===this.j&&0===c?(u=f+k,r=g,t=u,K=g+p,I=f,F=K,l.right=1,l.bottom=1):(l.right=e/k,l.bottom=h/p);b.Ye(f,g,u,r,t,K,I,F,l);b.Id();b.scale(a,a);b.Nm(-this.k.qb());b.translate((this.k.wa+this.k.Ba)/-2,(this.k.xa+this.k.Aa)/-2);b.Nd();this.Bf=this.b.Ld}};var t=[];f.Zk=function(b){A(t);for(var f="",a,c=0;c<b.length;)if(a=b.charAt(c),"\n"===a)f.length&&(t.push(f),f=""),t.push("\n"),++c;else if(" "===a||"\t"===a||"-"===a){do f+=b.charAt(c),c++;while(c<b.length&&
(" "===b.charAt(c)||"\t"===b.charAt(c)));t.push(f);f=""}else c<b.length&&(f+=a,c++);f.length&&t.push(f)};var p=[];f.$k=function(b,f,a,c,l){if(b&&b.length)if(2>=c)k(f);else{if(100>=b.length&&-1===b.indexOf("\n")){var e=a.measureText(b).width;if(e<=c){k(f);f.push(h());f[0].text=b;f[0].width=e;return}}this.al(b,f,a,c,l)}else k(f)};f.al=function(d,f,a,c,l){l&&(this.Zk(d),d=t);var e="",k,m,u,g=0;for(u=0;u<d.length;u++)"\n"===d[u]?(g>=f.length&&f.push(h()),e=b(e),m=f[g],m.text=e,m.width=a.measureText(e).width,
g++,e=""):(k=e,e+=d[u],m=a.measureText(e).width,m>=c&&(g>=f.length&&f.push(h()),k=b(k),m=f[g],m.text=k,m.width=a.measureText(k).width,g++,e=d[u],l||" "!==e||(e="")));e.length&&(g>=f.length&&f.push(h()),e=b(e),m=f[g],m.text=e,m.width=a.measureText(e).width,g++);for(u=g;u<f.length;u++)p.push(f[u]);f.length=g};f.g=new function(){};u.prototype.Xk=function(b){ma(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.Bc=!0,this.b.T=!0)};f.n=new u;f.D=new function(){}})();
function tc(h){this.b=h}
(function(){function h(b){q=b.x;a=b.y;c=b.z}function k(a,c,d,e){var f;f=l.length?l.pop():new b;f.init(a,c,d,e);return f}function b(){this.wi=this.id=this.y=this.x=this.Hk=this.Gk=this.dm=this.time=this.Zm=0;this.Bi=this.Mk=!1}function u(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function f(){}function r(){}var t=tc.prototype;t.ya=function(a){this.pa=a;this.b=a.b};t.ya.prototype.N=
function(){};t.ja=function(a){this.type=a;this.b=a.b;this.touches=[];this.mm=!1};var p=t.ja.prototype,d={left:0,top:0};p.yh=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 q=0,a=0,c=0,l=[];b.prototype.init=function(a,b,c,d){var e=Za();this.Zm=this.dm=this.time=e;this.Gk=a;this.Hk=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.wi=d;this.Bi=this.Mk=!1};b.prototype.update=function(a,b,c,d,e,f){this.dm=this.time;this.time=
a;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.Bi&&15<=Ua(this.Gk,this.Hk,this.x,this.y)&&(this.Bi=!0)};b.prototype.Iv=function(a,b){!this.Mk&&500<=Za()-this.Zm&&!this.Bi&&15>Ua(this.Gk,this.Hk,this.x,this.y)&&(this.Mk=!0,a.Md=this.wi,a.Xg=this.id,a.gg=b,a.b.trigger(tc.prototype.g.as,a),a.Td=this.x,a.Ud=this.y,a.b.trigger(tc.prototype.g.bs,a),a.gg=0)};var e=-1E3,n=-1E3,m=-1E4;b.prototype.sp=function(a,b){if(!this.Mk){var c=Za();333>=c-this.Zm&&!this.Bi&&15>Ua(this.Gk,this.Hk,
this.x,this.y)&&(a.Md=this.wi,a.Xg=this.id,a.gg=b,666>=c-m&&25>Ua(e,n,this.x,this.y)?(a.b.trigger(tc.prototype.g.Wr,a),a.Td=this.x,a.Ud=this.y,a.b.trigger(tc.prototype.g.Xr,a),n=e=-1E3,m=-1E4):(a.b.trigger(tc.prototype.g.On,a),a.Td=this.x,a.Ud=this.y,a.b.trigger(tc.prototype.g.Pn,a),e=this.x,n=this.y,m=c),a.gg=0)}};p.N=function(){this.xv=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.gg=this.Xg=this.Md=this.Ud=this.Td=this.eo=this.co=this.bo=this.jt=this.it=this.ht=this.kk=
this.jk=this.ik=0;this.Zw=0!==this.q[0];var a=0<this.b.Yb?document:this.b.canvas,b=document;this.b.Rb?b=a=window.Canvas:this.b.Jc&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Kp(a)},!1),a.addEventListener("pointermove",function(a){c.Jp(a)},!1),b.addEventListener("pointerup",function(a){c.fk(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.fk(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.Kp(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Jp(a)},!1),b.addEventListener("MSPointerUp",function(a){c.fk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.fk(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.Np(a)},!1),a.addEventListener("touchmove",function(a){c.Mp(a)},!1),b.addEventListener("touchend",function(a){c.ym(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.ym(a,!0)},!1));if(this.xv){var d=function(a){a=a.reading;c.bo=a.accelerationX;c.co=a.accelerationY;
c.eo=a.accelerationZ},e=function(a){a=a.reading;c.ik=a.yawDegrees;c.jk=a.pitchDegrees;c.kk=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",d));var l=Windows.Devices.Sensors.Inclinometer.getDefault();l&&(l.reportInterval=Math.max(l.minimumReportInterval,16),l.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?
(f&&f.removeEventListener("readingchanged",d),l&&l.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),l&&l.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.ik=a.alpha||0;c.jk=a.beta||0;c.kk=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.ht=a.accelerationIncludingGravity.x||0,c.it=a.accelerationIncludingGravity.y||0,c.jt=a.accelerationIncludingGravity.z||
0);a.acceleration&&(c.bo=a.acceleration.x||0,c.co=a.acceleration.y||0,c.eo=a.acceleration.z||0)},!1);this.Zw&&!this.b.Ea&&(jQuery(document).mousemove(function(a){c.vm(a)}),jQuery(document).mousedown(function(a){c.um(a)}),jQuery(document).mouseup(function(a){c.wm(a)}));!this.b.yf&&this.b.tc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(h,null,{frequency:40});this.b.Qw(this)};p.Jp=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.yh(a.pointerId),c=Za();if(0<=b){var e=this.b.Ea?d:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||b.update(c,a.pageX-e.left,a.pageY-e.top,a.width||0,a.height||0,a.pressure||0)}}};p.Kp=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.Ea?d:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Za();this.Md=this.touches.length;
this.Xg=a.pointerId;this.touches.push(k(c,b,a.pointerId,this.Md));this.b.Sb=!0;this.b.trigger(tc.prototype.g.Jn,this);this.b.trigger(tc.prototype.g.Vk,this);this.Td=c;this.Ud=b;this.b.trigger(tc.prototype.g.Rn,this);this.b.Sb=!1}};p.fk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.yh(a.pointerId);this.Md=0<=c?this.touches[c].wi:-1;this.Xg=0<=c?this.touches[c].id:-1;this.b.Sb=!0;this.b.trigger(tc.prototype.g.In,
this);this.b.trigger(tc.prototype.g.Qn,this);0<=c&&(b||this.touches[c].sp(this,c),100>l.length&&l.push(this.touches[c]),this.touches.splice(c,1));this.b.Sb=!1}};p.Mp=function(a){a.preventDefault&&a.preventDefault();var b=Za(),c,e,f,l;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],l=this.yh(f.identifier),0<=l){var h=this.b.Ea?d:jQuery(this.b.canvas).offset();l=this.touches[l];2>b-l.time||l.update(b,f.pageX-h.left,f.pageY-h.top,2*(f.Vy||f.gz||f.Ly||f.Oy||0),2*(f.Wy||f.hz||f.My||
f.Py||0),f.Ay||f.fz||f.Ky||f.Ny||0)}};p.Np=function(a){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.Ea?d:jQuery(this.b.canvas).offset();Za();this.b.Sb=!0;var c,e,f,l;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],l=this.yh(f.identifier),-1===l){l=f.pageX-b.left;var h=f.pageY-b.top;this.Md=this.touches.length;this.Xg=f.identifier;this.touches.push(k(l,h,f.identifier,this.Md));this.b.trigger(tc.prototype.g.Jn,this);this.b.trigger(tc.prototype.g.Vk,this);this.Td=l;this.Ud=
h;this.b.trigger(tc.prototype.g.Rn,this)}this.b.Sb=!1};p.ym=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.Sb=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.yh(e.identifier),0<=e&&(this.Md=this.touches[e].wi,this.Xg=this.touches[e].id,this.b.trigger(tc.prototype.g.In,this),this.b.trigger(tc.prototype.g.Qn,this),b||this.touches[e].sp(this,e),100>l.length&&l.push(this.touches[e]),this.touches.splice(e,1));this.b.Sb=!1};p.De=function(){return this.b.tc&&
0===this.ik&&0!==c?90*c:this.ik};p.xo=function(){return this.b.tc&&0===this.jk&&0!==a?90*a:this.jk};p.Do=function(){return this.b.tc&&0===this.kk&&0!==q?90*q:this.kk};p.um=function(a){u(a)||(this.Np({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.mm=!0)};p.vm=function(a){this.mm&&!u(a)&&this.Mp({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};p.wm=function(a){a.preventDefault&&this.b.Fj&&!this.b.be&&a.preventDefault();this.b.Fj=!0;u(a)||(this.ym({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]}),this.mm=!1)};p.cn=function(){var a,b,c,d=Za();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.dm=d),c.Iv(this,a)};f.prototype.Vk=function(){return!0};f.prototype.Qn=function(){return!0};f.prototype.Ar=function(){return this.touches.length};f.prototype.Rn=function(a){return a?this.b.Ug(a,this.Td,this.Ud,!1):!1};var S=[];f.prototype.Hr=function(a){if(!a)return!1;var b=a.W(),c=b.Hc(),d,e,f,l,h,k;f=0;for(l=c.length;f<l;f++){var m=c[f];m.za();h=0;
for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=m.k.Wa(e.x,e.y,!0),e=m.k.Wa(e.x,e.y,!1),m.Ob(d,e)){S.push(m);break}}return S.length?(b.ga=!1,Da(b.e,S),a.Rd(),A(S),!0):!1};f.prototype.Jn=function(a){a=Math.floor(a);return a===this.Md};f.prototype.In=function(a){a=Math.floor(a);return a===this.Md};f.prototype.as=function(){return!0};f.prototype.On=function(){return!0};f.prototype.Wr=function(){return!0};f.prototype.bs=function(a){return a?this.b.Ug(a,this.Td,this.Ud,!1):!1};f.prototype.Pn=
function(a){return a?this.b.Ug(a,this.Td,this.Ud,!1):!1};f.prototype.Xr=function(a){return a?this.b.Ug(a,this.Td,this.Ud,!1):!1};t.g=new f;r.prototype.bl=function(a,b){var c=this.gg;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,l,h;la(b)?(d=this.b.xd(0),e=d.scale,f=d.Wb,l=d.jc,h=d.j,d.scale=1,d.Wb=1,d.jc=1,d.j=0,a.u(d.Wa(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Wb=f,d.jc=l,d.j=h):(d=ma(b)?this.b.xd(b):this.b.fg(b))?a.u(d.Wa(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};r.prototype.cl=
function(a,b){var c=this.gg;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,l,h;la(b)?(d=this.b.xd(0),e=d.scale,f=d.Wb,l=d.kc,h=d.j,d.scale=1,d.Wb=1,d.kc=1,d.j=0,a.u(d.Wa(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Wb=f,d.kc=l,d.j=h):(d=ma(b)?this.b.xd(b):this.b.fg(b))?a.u(d.Wa(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};t.D=new r})();function uc(h){this.b=h}
(function(){function h(b){switch(b){case 1:return"BANNER";case 2:return"MEDIUM_RECTANGLE";case 3:return"FULL_BANNER";case 4:return"LEADERBOARD";case 5:return"SKYSCRAPER"}return"SMART_BANNER"}function k(b){switch(b){case 0:return"top-left";case 1:return"top-center";case 2:return"top-right";case 3:return"left";case 4:return"center";case 5:return"right";case 6:return"bottom-left";case 8:return"bottom-right"}return"bottom-center"}function b(){}function u(){}var f=uc.prototype;f.ya=function(b){this.pa=
b;this.b=b.b};f.ya.prototype.N=function(){};f.ja=function(b){this.type=b;this.b=b.b};var r=!1;f.ja.prototype.N=function(){if(window.admob){r=!0;this.ib=window.admob;this.ib.setLicenseKey&&this.ib.setLicenseKey("support@scirra.com","2ba99d4ff8c219cf7331c88fb3344f80");var b=0!==this.q[0],f=0!==this.q[1];this.nt=this.q[2];this.ot=this.q[3];this.nv=this.q[4];this.ov=this.q[5];this.kx=this.q[6];this.lx=this.q[7];this.b.Nh?(this.Vi=this.nt,this.Kj=this.ot):this.b.yf?(this.Vi=this.nv,this.Kj=this.ov):this.b.lg||
this.b.Pj?(this.Vi=this.kx,this.Kj=this.lx):this.Kj=this.Vi="";this.Nj=!1;this.ib.setUp(this.Vi,this.Kj,b,f);var d=this;this.ib.onFullScreenAdLoaded=function(){d.b.trigger(uc.prototype.g.En,d)};this.ib.onInterstitialAdLoaded=function(){d.b.trigger(uc.prototype.g.En,d)};this.ib.onFullScreenAdShown=function(){d.Nj=!0;d.b.trigger(uc.prototype.g.Dn,d)};this.ib.onInterstitialAdShown=function(){d.Nj=!0;d.b.trigger(uc.prototype.g.Dn,d)};this.ib.onFullScreenAdClosed=function(){d.Nj=!1;d.b.trigger(uc.prototype.g.Cn,
d)};this.ib.onInterstitialAdHidden=function(){d.Nj=!1;d.b.trigger(uc.prototype.g.Cn,d)};this.ib.onBannerAdPreloaded=function(){d.b.trigger(uc.prototype.g.Tr,d)}}else ja("[Construct 2] com.cranberrygame.phonegap.plugin.ad.admob plugin is required to show Admob ads with Cordova; other platforms are not supported")};b.prototype.En=function(){return!0};b.prototype.Dn=function(){return!0};b.prototype.Cn=function(){return!0};b.prototype.Tr=function(){return!0};f.g=new b;u.prototype.Vs=function(b,f){r&&
this.ib.showBannerAd(k(b),h(f))};u.prototype.ys=function(){r&&(this.ib.preloadInterstitialAd?this.ib.preloadInterstitialAd():this.ib.preloadFullScreenAd&&this.ib.preloadFullScreenAd())};u.prototype.Ws=function(){r&&(this.ib.showInterstitialAd?this.ib.showInterstitialAd():this.ib.showFullScreenAd&&this.ib.showFullScreenAd())};u.prototype.xs=function(){r&&this.ib.preloadBannerAd()};f.n=new u;f.D=new function(){}})();function vc(h){this.b=h}
(function(){var h=vc.prototype;h.ya=function(b){this.pa=b;this.b=b.b};h.ya.prototype.N=function(){};h.ja=function(b){this.type=b;this.b=b.b};var k=h.ja.prototype;k.N=function(){this.Lv=this.q[0];this.returnValue="";var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("src",this.Lv);"undefined"!=typeof b&&document.getElementsByTagName("head")[0].appendChild(b)};k.dd=function(){};h.g={};h.n={};h.n.kr=function(b){this.returnValue="";try{this.returnValue=eval(b)}catch(h){this.returnValue=
h}};h.D={};h.D.zs=function(b){b.Ub(this.returnValue)}})();function wc(h){this.b=h}
(function(){function h(){}function k(){}var b=wc.prototype;b.ya=function(b){this.behavior=b;this.b=b.b};b.ya.prototype.N=function(){};b.ja=function(b,h){this.type=b;this.behavior=b.behavior;this.d=h;this.b=b.b};var u=b.ja.prototype;u.N=function(){this.gl=1===this.q[0];this.oq=!1;this.wh=this.q[1];this.Gi=this.q[2];this.qj=this.q[3];this.It=this.q[4];this.Ac=this.gl?0:3;this.zc?this.Vc.reset():this.Vc=new cb;this.Ue=this.d.opacity?this.d.opacity:1;this.gl&&(0===this.wh?(this.Ac=1,0===this.Gi&&(this.Ac=
2)):(this.d.opacity=0,this.b.T=!0))};u.Tb=function(){return{fit:this.wh,wt:this.Gi,fot:this.qj,s:this.Ac,st:this.Vc.O,mo:this.Ue}};u.ic=function(b){this.wh=b.fit;this.Gi=b.wt;this.qj=b.fot;this.Ac=b.s;this.Vc.reset();this.Vc.O=b.st;this.Ue=b.mo};u.Gb=function(){this.Vc.add(this.b.Ch(this.d));0===this.Ac&&(this.d.opacity=this.Vc.O/this.wh*this.Ue,this.b.T=!0,this.d.opacity>=this.Ue&&(this.d.opacity=this.Ue,this.Ac=1,this.Vc.reset(),this.b.trigger(wc.prototype.g.Zr,this.d)));1===this.Ac&&this.Vc.O>=
this.Gi&&(this.Ac=2,this.Vc.reset(),this.b.trigger(wc.prototype.g.us,this.d));2===this.Ac&&0!==this.qj&&(this.d.opacity=this.Ue-this.Vc.O/this.qj*this.Ue,this.b.T=!0,0>this.d.opacity&&(this.d.opacity=0,this.Ac=3,this.Vc.reset(),this.b.trigger(wc.prototype.g.$r,this.d),1===this.It&&this.b.ue(this.d)))};u.Lt=function(){this.Ac=0;this.Vc.reset();0===this.wh?(this.Ac=1,0===this.Gi&&(this.Ac=2)):(this.d.opacity=0,this.b.T=!0)};h.prototype.$r=function(){return!0};h.prototype.Zr=function(){return!0};h.prototype.us=
function(){return!0};b.g=new h;k.prototype.Zs=function(){this.gl||this.oq||(this.Ue=this.d.opacity?this.d.opacity:1,this.oq=!0);3===this.Ac&&this.Lt()};b.n=new k;b.D=new function(){}})();function xc(h){this.b=h}
(function(){function h(){}function k(){}var b=xc.prototype;b.ya=function(b){this.behavior=b;this.b=b.b};b.ya.prototype.N=function(){};b.ja=function(b,d){this.type=b;this.behavior=b.behavior;this.d=d;this.b=b.b;this.Xa=0};var u=b.ja.prototype,f=2*Math.PI,r=Math.PI/2,t=3*Math.PI/2;u.N=function(){this.Ua=1===this.q[0];this.Ef=this.q[1];this.tn=this.q[2];this.je=this.q[3];this.je+=Math.random()*this.q[4];0===this.je?this.Xa=0:(this.Xa=this.q[5]/this.je*f,this.Xa+=Math.random()*this.q[6]/this.je*f);this.ac=
this.q[7];this.ac+=Math.random()*this.q[8];this.li=this.vf=this.Z=0;5===this.Ef&&(this.ac=D(this.ac));this.init()};u.Tb=function(){return{i:this.Xa,a:this.Ua,mv:this.Ef,w:this.tn,p:this.je,mag:this.ac,iv:this.Z,iv2:this.vf,r:this.li,lkv:this.P,lkv2:this.Ha}};u.ic=function(b){this.Xa=b.i;this.Ua=b.a;this.Ef=b.mv;this.tn=b.w;this.je=b.p;this.ac=b.mag;this.Z=b.iv;this.vf=b.iv2||0;this.li=b.r;this.P=b.lkv;this.Ha=b.lkv2||0};u.init=function(){switch(this.Ef){case 0:this.Z=this.d.x;break;case 1:this.Z=
this.d.y;break;case 2:this.Z=this.d.width;this.li=this.d.height/this.d.width;break;case 3:this.Z=this.d.width;break;case 4:this.Z=this.d.height;break;case 5:this.Z=this.d.j;break;case 6:this.Z=this.d.opacity;break;case 7:this.Z=0;break;case 8:this.Z=this.d.x,this.vf=this.d.y}this.P=this.Z;this.Ha=this.vf};u.Od=function(b){b=b%f;switch(this.tn){case 0:return Math.sin(b);case 1:return b<=r?b/r:b<=t?1-2*(b-r)/Math.PI:(b-t)/r-1;case 2:return 2*b/f-1;case 3:return-2*b/f+1;case 4:return b<Math.PI?-1:1}return 0};
u.Gb=function(){var b=this.b.Ch(this.d);this.Ua&&0!==b&&(0===this.je?this.Xa=0:(this.Xa+=b/this.je*f,this.Xa=this.Xa%f),this.Uw())};u.Uw=function(){switch(this.Ef){case 0:this.d.x!==this.P&&(this.Z+=this.d.x-this.P);this.d.x=this.Z+this.Od(this.Xa)*this.ac;this.P=this.d.x;break;case 1:this.d.y!==this.P&&(this.Z+=this.d.y-this.P);this.d.y=this.Z+this.Od(this.Xa)*this.ac;this.P=this.d.y;break;case 2:this.d.width=this.Z+this.Od(this.Xa)*this.ac;this.d.height=this.d.width*this.li;break;case 3:this.d.width=
this.Z+this.Od(this.Xa)*this.ac;break;case 4:this.d.height=this.Z+this.Od(this.Xa)*this.ac;break;case 5:this.d.j!==this.P&&(this.Z=Ka(this.Z+(this.d.j-this.P)));this.d.j=Ka(this.Z+this.Od(this.Xa)*this.ac);this.P=this.d.j;break;case 6:this.d.opacity=this.Z+this.Od(this.Xa)*this.ac/100;0>this.d.opacity?this.d.opacity=0:1<this.d.opacity&&(this.d.opacity=1);break;case 8:this.d.x!==this.P&&(this.Z+=this.d.x-this.P),this.d.y!==this.Ha&&(this.vf+=this.d.y-this.Ha),this.d.x=this.Z+Math.cos(this.d.j)*this.Od(this.Xa)*
this.ac,this.d.y=this.vf+Math.sin(this.d.j)*this.Od(this.Xa)*this.ac,this.P=this.d.x,this.Ha=this.d.y}this.d.Ra()};u.Lp=function(b,d){switch(this.Ef){case 2:this.Z*=d.width/b.width;this.li=d.height/d.width;break;case 3:this.Z*=d.width/b.width;break;case 4:this.Z*=d.height/b.height}};h.prototype.qr=function(){return this.Ua};b.g=new h;b.n=new function(){};k.prototype.ct=function(b){b.u(this.Od(this.Xa)*this.ac)};b.D=new k})();var yc=[],zc=[],Ac=[],Bc=[],Cc=[],Dc=[],Ec=[],Kc=[],Lc=[],Mc=[];
function Nc(h){return result=(h/=1)<1/2.75?7.5625*h*h+0:h<2/2.75?1*(7.5625*(h-=1.5/2.75)*h+.75)+0:h<2.5/2.75?1*(7.5625*(h-=2.25/2.75)*h+.9375)+0:1*(7.5625*(h-=2.625/2.75)*h+.984375)+0}function Oc(h,k){return Math.round(h/k*1E4)}
function Pc(h,k,b,u,f){var r=0;switch(h){case 0:r=1*k/b+0;break;case 1:r=1*(k/=b)*k+0;break;case 2:r=-1*(k/=b)*(k-2)+0;break;case 3:r=1>(k/=b/2)?.5*k*k+0:-.5*(--k*(k-2)-1)+0;break;case 4:r=1*(k/=b)*k*k+0;break;case 5:r=1*((k=k/b-1)*k*k+1)+0;break;case 6:r=1>(k/=b/2)?.5*k*k*k+0:.5*((k-=2)*k*k+2)+0;break;case 7:r=1*(k/=b)*k*k*k+0;break;case 8:r=-1*((k=k/b-1)*k*k*k-1)+0;break;case 9:r=1>(k/=b/2)?.5*k*k*k*k+0:-.5*((k-=2)*k*k*k-2)+0;break;case 10:r=1*(k/=b)*k*k*k*k+0;break;case 11:r=1*((k=k/b-1)*k*k*k*
k+1)+0;break;case 12:r=1>(k/=b/2)?.5*k*k*k*k*k+0:.5*((k-=2)*k*k*k*k+2)+0;break;case 13:f.xc?r=Cc[Oc(k,b)]:r=-(Math.sqrt(1-k*k)-1);break;case 14:f.xc?r=Dc[Oc(k,b)]:r=Math.sqrt(1-(k-1)*(k-1));break;case 15:r=f.xc?Ec[Oc(k,b)]:1>(k/=b/2)?-.5*(Math.sqrt(1-k*k)-1)+0:.5*(Math.sqrt(1-(k-=2)*k)+1)+0;break;case 16:f.xc?r=Kc[Oc(k,b)]:(f=f.nc,r=1*(k/=b)*k*((f+1)*k-f)+0);break;case 17:f.xc?r=Lc[Oc(k,b)]:(f=f.nc,r=1*((k=k/b-1)*k*((f+1)*k+f)+1)+0);break;case 18:f.xc?r=Mc[Oc(k,b)]:(f=f.nc,r=1>(k/=b/2)?.5*k*k*(((f*=
1.525)+1)*k-f)+0:.5*((k-=2)*k*(((f*=1.525)+1)*k+f)+2)+0);break;case 19:f.xc?r=zc[Oc(k,b)]:(r=f.Rf,h=f.fi,k/=b,0==h&&(h=.3*b),0==r||r<Math.abs(1)?(r=1,f=h/4):f=h/(2*Math.PI)*Math.asin(1/r),r=-(r*Math.pow(2,10*--k)*Math.sin(2*(k*b-f)*Math.PI/h))+0);break;case 20:f.xc?r=Ac[Oc(k,b)]:(r=f.Rf,h=f.fi,k/=b,0==h&&(h=.3*b),0==r||r<Math.abs(1)?(r=1,f=h/4):f=h/(2*Math.PI)*Math.asin(1/r),r=r*Math.pow(2,-10*k)*Math.sin(2*(k*b-f)*Math.PI/h)+1);break;case 21:f.xc?r=Bc[Oc(k,b)]:(r=f.Rf,h=f.fi,k/=b/2,0==h&&(h=.3*b*
1.5),0==r||r<Math.abs(1)?(r=1,f=h/4):f=h/(2*Math.PI)*Math.asin(1/r),r=1>k?-.5*r*Math.pow(2,10*--k)*Math.sin(2*(k*b-f)*Math.PI/h)+0:r*Math.pow(2,-10*--k)*Math.sin(2*(k*b-f)*Math.PI/h)*.5+1);break;case 22:r=f.xc?1-yc[Oc(b-k,b)]+0:1-Nc(b-k/b)+0;break;case 23:r=f.xc?yc[Oc(k,b)]:Nc(k/b);break;case 24:r=f.xc?k<b/2?.5*(1-yc[Oc(b-2*k,b)]+0)+0:.5*yc[Oc(2*k-b,b)]+.5:k<b/2?.5*(1-Nc(b-2*k)+0)+0:.5*Nc((2*k-b)/b)+.5;break;case 25:k=k/b/2;r=2*k*k*(3-2*k);break;case 26:k=(k/b+1)/2;r=2*k*k*(3-2*k)-1;break;case 27:k=
k/b,r=k*k*(3-2*k)}return u?1-r:r}
for(var Qc=0,Rc=0,Sc=0,Y=0,Z=0,Tc=0;1E4>=Tc;Tc++)Y=Tc/1E4,Qc=(Y/=1)<1/2.75?7.5625*Y*Y+0:Y<2/2.75?1*(7.5625*(Y-=1.5/2.75)*Y+.75)+0:Y<2.5/2.75?1*(7.5625*(Y-=2.25/2.75)*Y+.9375)+0:1*(7.5625*(Y-=2.625/2.75)*Y+.984375)+0,yc[Tc]=Qc,Y=Tc/1E4,Sc=Rc=0,Y/=1,0==Sc&&(Sc=.3),0==Rc||Rc<Math.abs(1)?(Rc=1,Z=Sc/4):Z=Sc/(2*Math.PI)*Math.asin(1/Rc),Qc=-(Rc*Math.pow(2,10*--Y)*Math.sin(2*(1*Y-Z)*Math.PI/Sc))+0,zc[Tc]=Qc,Y=Tc/1E4,Sc=Rc=0,Y/=1,0==Sc&&(Sc=.3),0==Rc||Rc<Math.abs(1)?(Rc=1,Z=Sc/4):Z=Sc/(2*Math.PI)*Math.asin(1/
Rc),Qc=Rc*Math.pow(2,-10*Y)*Math.sin(2*(1*Y-Z)*Math.PI/Sc)+1,Ac[Tc]=Qc,Y=Tc/1E4,Sc=Rc=0,Y/=.5,0==Sc&&(Sc=.3*1.5),0==Rc||Rc<Math.abs(1)?(Rc=1,Z=Sc/4):Z=Sc/(2*Math.PI)*Math.asin(1/Rc),Qc=1>Y?-.5*Rc*Math.pow(2,10*--Y)*Math.sin(2*(1*Y-Z)*Math.PI/Sc)+0:Rc*Math.pow(2,-10*--Y)*Math.sin(2*(1*Y-Z)*Math.PI/Sc)*.5+1,Bc[Tc]=Qc,Y=Tc/1E4,Cc[Tc]=-(Math.sqrt(1-Y*Y)-1),Y=Tc/1E4,Dc[Tc]=Math.sqrt(1-(Y-1)*(Y-1)),Y=Tc/1E4,Qc=1>(Y/=.5)?-.5*(Math.sqrt(1-Y*Y)-1)+0:.5*(Math.sqrt(1-(Y-=2)*Y)+1)+0,Ec[Tc]=Qc,Y=Tc/1E4,Z=0,0==
Z&&(Z=1.70158),Qc=1*(Y/=1)*Y*((Z+1)*Y-Z)+0,Kc[Tc]=Qc,Y=Tc/1E4,Z=0,0==Z&&(Z=1.70158),Qc=1*((Y=Y/1-1)*Y*((Z+1)*Y+Z)+1)+0,Lc[Tc]=Qc,Y=Tc/1E4,Z=0,0==Z&&(Z=1.70158),Qc=1>(Y/=.5)?.5*Y*Y*(((Z*=1.525)+1)*Y-Z)+0:.5*((Y-=2)*Y*(((Z*=1.525)+1)*Y+Z)+2)+0,Mc[Tc]=Qc;
function Uc(h,k,b,u,f,r,t){this.name=h;this.value=0;this.Ng(u);this.Ck(f);this.nf=b;this.Ma=k;this.duration=r;this.state=this.U=0;this.gk=this.hk=this.dk=this.Eg=!1;this.Ha=this.P=0;this.Qb=t;this.ke=1;this.zh=!1;this.Ec=[];for(h=0;28>h;h++)this.Ec[h]={},this.Ec[h].Rf=0,this.Ec[h].fi=0,this.Ec[h].Tg=0,this.Ec[h].nc=0,this.Ec[h].xc=!0}Uc.prototype={};Uc.prototype.Ng=function(h){this.ea=parseFloat(h.split(",")[0]);this.bb=parseFloat(h.split(",")[1]);this.Ha=this.P=0};
Uc.prototype.Ck=function(h){this.ca=parseFloat(h.split(",")[0]);this.Sa=parseFloat(h.split(",")[1]);isNaN(this.Sa)&&(this.Sa=this.ca)};
Uc.prototype.Uk=function(h){if(0===this.state)return-1;1===this.state&&(this.U+=h);2===this.state&&(this.U-=h);3===this.state&&(this.state=0);if(4===this.state||6===this.state)this.U+=h*this.ke;5===this.state&&(this.U+=h*this.ke);return 0>this.U?(this.U=0,4===this.state?this.ke=1:6===this.state?(this.ke=1,this.zh=!1):this.state=0,this.gk=!0,0):this.U>this.duration?(this.U=this.duration,4===this.state?this.ke=-1:6===this.state?(this.ke=-1,this.zh=!0):5===this.state?this.U=0:this.state=0,this.dk=!0,
1):this.zh?Pc(this.nf,this.duration-this.U,this.duration,this.zh,this.Ec[this.nf]):Pc(this.nf,this.U,this.duration,this.zh,this.Ec[this.nf])};function Wc(h){this.b=h}
(function(){var h=Wc.prototype;h.ya=function(b){this.behavior=b;this.b=b.b};h.ya.prototype.N=function(){};h.ja=function(b,h){this.type=b;this.behavior=b.behavior;this.d=h;this.b=b.b;this.Xa=0};var k=h.ja.prototype;k.N=function(){this.Ig=this.q[0];this.Ua=1==this.Ig||2==this.Ig||3==this.Ig||4==this.Ig;this.Ma=this.q[1];this.yl=this.q[2];this.target=this.q[3];this.Ik=this.q[4];this.Qk=!1;1===this.Ik&&(this.target="relative("+this.target+")");this.duration=this.q[5];this.Qb=1===this.q[6];this.value=
0;this.B={};this.jo(this.Ma,this.yl,"current",this.target,this.duration,this.Qb);1===this.q[0]&&this.vi(0);2===this.q[0]&&this.vi(2);3===this.q[0]&&this.vi(3);4===this.q[0]&&this.vi(4)};k.Fd=function(b,h){void 0===h&&(h="current");var f=h.replace(/^\s\s*/,"").replace(/\s\s*$/,"");h=h.replace(/^\s\s*/,"").replace(/\s\s*$/,"");var k=this.value;if("current"===h)switch(b){case 0:f=this.d.x+","+this.d.y;break;case 1:f=this.d.width+","+this.d.height;break;case 2:f=this.d.width+","+this.d.height;break;case 3:f=
this.d.width+","+this.d.height;break;case 4:f=Ia(this.d.j)+","+Ia(this.d.j);break;case 5:f=100*this.d.opacity+","+100*this.d.opacity;break;case 6:f=k+","+k;break;case 7:f=this.d.x+","+this.d.y;break;case 8:f=this.d.x+","+this.d.y;break;case 9:f=void 0!==this.d.Fa?this.d.width/this.d.Fa.width+","+this.d.height/this.d.Fa.height:"1,1"}if("relative"===h.substring(0,8)){var t=h.match(/\((.*?)\)/);if(t)var p=parseFloat(t[1].split(",")[0]),d=parseFloat(t[1].split(",")[1]);isNaN(p)&&(p=0);isNaN(d)&&(d=0);
switch(b){case 0:f=this.d.x+p+","+(this.d.y+d);break;case 1:f=this.d.width+p+","+(this.d.height+d);break;case 2:f=this.d.width+p+","+(this.d.height+d);break;case 3:f=this.d.width+p+","+(this.d.height+d);break;case 4:f=Ia(this.d.j)+p+","+(Ia(this.d.j)+d);break;case 5:f=100*this.d.opacity+p+","+(100*this.d.opacity+d);break;case 6:f=k+p+","+k+p;break;case 7:f=this.d.x+p+","+this.d.y;break;case 8:f=this.d.x+","+(this.d.y+p);break;case 9:f=p+","+d}}return f};k.jo=function(b,h,f,k,t,p){f=this.Fd(b,f);k=
this.Fd(b,k);void 0!==this.B["default"]&&delete this.B["default"];this.B["default"]=new Uc("default",b,h,f,k,t,p);this.B["default"].Ke=0};k.Tb=function(){JSON.stringify(this.B["default"]);return{playmode:this.Ig,active:this.Ua,tweened:this.Ma,easing:this.yl,target:this.target,targetmode:this.Ik,useCurrent:this.Qk,duration:this.duration,enforce:this.Qb,value:this.value,tweenlist:JSON.stringify(this.B["default"])}};Uc.Mr=function(b,h,f,k,t,p,d,q){h=new Uc(h,f,k,t,p,d,q);for(var a in b)h[a]=b[a];return h};
k.ic=function(b){var h=JSON.parse(b.tweenlist),h=Uc.Mr(h,h.name,h.Ma,h.nf,h.ea+","+h.bb,h.ca+","+h.Sa,h.duration,h.Qb);console.log(h);this.B["default"]=h;this.Ig=b.playmode;this.Ua=b.active;this.Ef=b.tweened;this.yl=b.easing;this.target=b.target;this.Ik=b.targetmode;this.Qk=b.useCurrent;this.duration=b.duration;this.Qb=b.enforce;this.value=b.value};k.Hw=function(b){1<b&&(b=1);0>b&&(b=0);for(var h in this.B){var f=this.B[h];f.P=0;f.Ha=0;f.state=3;f.U=b*f.duration;var k=f.Uk(0);this.nn(f,k)}};k.vi=
function(b){for(var h in this.B){var f=this.B[h];if(this.Qk){var k=this.Fd(f.Ma,"current"),t=this.Fd(f.Ma,this.target);f.Ng(k);f.Ck(t)}0===b&&(f.U=1E-6,f.P=0,f.Ha=0,f.Eg=!0,f.state=1);1===b&&(f.state=1);if(2===b||4===b)f.U=1E-6,f.P=0,f.Ha=0,f.Eg=!0,2==b&&(f.state=4),4==b&&(f.state=6);3===b&&(f.U=1E-6,f.P=0,f.Ha=0,f.Eg=!0,f.state=5)}};k.Nw=function(b){for(var h in this.B){var f=this.B[h];1===b&&(f.U=0);2===b&&(f.U=f.duration);f.state=3;var k=f.Uk(0);this.nn(f,k)}};k.qw=function(b){for(var h in this.B){var f=
this.B[h];1===b&&(f.U=f.duration,f.P=0,f.Ha=0,f.hk=!0);f.state=2}};k.nn=function(b,h){var f=1,k=1;0>this.d.width&&(f=-1);0>this.d.height&&(k=-1);0===b.Ma?b.Qb?(this.d.x=b.ea+(b.ca-b.ea)*h,this.d.y=b.bb+(b.Sa-b.bb)*h):(this.d.x+=(b.ca-b.ea)*h-b.P,this.d.y+=(b.Sa-b.bb)*h-b.Ha,b.P=(b.ca-b.ea)*h,b.Ha=(b.Sa-b.bb)*h):1===b.Ma?b.Qb?(this.d.width=f*b.ea+(b.ca-b.ea)*h*f,this.d.height=k*b.bb+(b.Sa-b.bb)*h*k):(this.d.width+=f*(b.ca-b.ea)*h-b.P,this.d.height+=k*(b.Sa-b.bb)*h-b.Ha,b.P=f*(b.ca-b.ea)*h,b.Ha=k*(b.Sa-
b.bb)*h):2===b.Ma?b.Qb?this.d.width=f*b.ea+(b.ca-b.ea)*h*f:(this.d.width+=f*(b.ca-b.ea)*h-b.P,b.P=f*(b.ca-b.ea)*h):3===b.Ma?b.Qb?this.d.height=k*b.bb+(b.Sa-b.bb)*h*k:(this.d.height+=k*(b.Sa-b.bb)*h-b.Ha,b.Ha=k*(b.Sa-b.bb)*h):4===b.Ma?b.Qb?(f=b.ea+(b.ca-b.ea)*h,this.d.j=Ka(D(f))):(f=(b.ca-b.ea)*h-b.P,this.d.j=Ka(this.d.j+D(f)),b.P=(b.ca-b.ea)*h):5===b.Ma?b.Qb?this.d.opacity=(b.ea+(b.ca-b.ea)*h)/100:(this.d.opacity+=((b.ca-b.ea)*h-b.P)/100,b.P=(b.ca-b.ea)*h):6===b.Ma?b.Qb?this.value=b.ea+(b.ca-b.ea)*
h:(this.value+=(b.ca-b.ea)*h-b.P,b.P=(b.ca-b.ea)*h):7===b.Ma?b.Qb?this.d.x=b.ea+(b.ca-b.ea)*h:(this.d.x+=(b.ca-b.ea)*h-b.P,b.P=(b.ca-b.ea)*h):8===b.Ma?b.Qb?this.d.y=b.bb+(b.Sa-b.bb)*h:(this.d.y+=(b.Sa-b.bb)*h-b.Ha,b.Ha=(b.Sa-b.bb)*h):9===b.Ma&&(f=b.ea+(b.ca-b.ea)*h,k=b.bb+(b.Sa-b.bb)*h,0>this.d.width&&(f=b.ea+(b.ca+b.ea)*-h),0>this.d.height&&(k=b.bb+(b.Sa+b.bb)*-h),b.Qb?(this.d.width=this.d.Fa.width*f,this.d.height=this.d.Fa.height*k):(0>this.d.width?(this.d.width=this.d.width/(-1+b.P)*f,b.P=f+1):
(this.d.width=this.d.width/(1+b.P)*f,b.P=f-1),0>this.d.height?(this.d.height=this.d.height/(-1+b.Ha)*k,b.Ha=k+1):(this.d.height=this.d.height/(1+b.Ha)*k,b.Ha=k-1)));this.d.Ra()};k.Gb=function(){var b=this.b.Ch(this.d),h=this.B["default"];0!==h.state&&(h.Eg&&(this.b.trigger(Wc.prototype.g.ss,this.d),h.Eg=!1),h.hk&&(this.b.trigger(Wc.prototype.g.qs,this.d),h.hk=!1),this.Ua=1==h.state||2==h.state||4==h.state||5==h.state||6==h.state,b=h.Uk(b),this.nn(h,b),h.dk&&(this.b.trigger(Wc.prototype.g.Yr,this.d),
h.dk=!1),h.gk&&(this.b.trigger(Wc.prototype.g.os,this.d),h.gk=!1))};h.g={};k=h.g;k.qr=function(){return 0!==this.B["default"].state};k.Dx=function(){return 2==this.B["default"].state};k.wx=function(b,h){var f=this.B["default"];return hc(f.U/f.duration,b,h)};k.Kx=function(b,h){var f=this.B["default"];this.Ai=hc(f.U/f.duration,b,h);if(f=this.tm!=this.Ai&&this.Ai)this.tm=this.Ai;return f};k.ss=function(){return void 0===this.B["default"]?!1:this.B["default"].Eg};k.qs=function(){return void 0===this.B["default"]?
!1:this.B["default"].hk};k.Yr=function(){return void 0===this.B["default"]?!1:this.B["default"].dk};k.os=function(){return void 0===this.B["default"]?!1:this.B["default"].gk};h.n={};k=h.n;k.Ys=function(b,h){this.tm=this.Ai=!1;this.Qk=1==h;this.vi(b)};k.Xn=function(b){this.Nw(b)};k.Es=function(b){this.tm=this.Ai=!1;this.qw(b)};k.Sx=function(b){this.Hw(b)};k.Xx=function(b){isNaN(b)||0>b||void 0===this.B["default"]||(this.B["default"].duration=b)};k.by=function(b){void 0!==this.B["default"]&&(this.B["default"].Qb=
1===b)};k.cy=function(b){void 0!==this.B["default"]&&(b=this.Fd(this.B["default"].Ma,b),this.B["default"].Ng(b))};k.Ss=function(b,h,f){if(void 0!==this.B["default"]&&!isNaN(f)){var k=this.B["default"],t=f+"";this.Ik=h;var p="",d="";if(1===h){this.target="relative("+t+")";switch(b){case 0:p=this.d.x+f;d=k.Sa;break;case 1:p=k.ca;d=this.d.y+f;break;case 2:d=p=""+Ia(this.d.j+D(f));break;case 3:d=p=""+100*this.d.opacity+f;break;case 4:p=this.d.width+f;d=k.Sa;break;case 5:p=k.ca;d=this.d.height+f;break;
case 6:d=p=f}t=p+","+d}else{switch(b){case 0:p=f;d=k.Sa;break;case 1:p=k.ca;d=f;break;case 2:d=p=f;break;case 3:d=p=f;break;case 4:p=f;d=k.Sa;break;case 5:p=k.ca;d=f;break;case 6:d=p=f}this.target=t=p+","+d}b=this.Fd(this.B["default"].Ma,"current");t=this.Fd(this.B["default"].Ma,t);k.Ng(b);k.Ck(t)}};k.hy=function(b){void 0!==this.B["default"]&&(this.B["default"].Ma=b)};k.Yx=function(b){void 0!==this.B["default"]&&(this.B["default"].nf=b)};k.Zx=function(b,h,f,k,t){void 0!==this.B["default"]&&(this.B["default"].Ec[b].xc=
!1,this.B["default"].Ec[b].Rf=h,this.B["default"].Ec[b].fi=f,this.B["default"].Ec[b].Tg=k,this.B["default"].Ec[b].nc=t)};k.Tx=function(){void 0!==this.B["default"]&&(this.B["default"].xc=!0)};k.iy=function(b){var h=this.B["default"];this.value=b;6===h.Ma&&h.Ng(this.Fd(h.Ma,"current"))};k.ey=function(b,h,f,k,t){if(void 0===this.B["default"])this.jo(b,h,initial,f,k,t);else{var p=this.B["default"];p.Ma=b;p.nf=h;p.Ng(this.Fd(b,"current"));p.Ck(this.Fd(b,f));p.duration=k;p.Qb=1===t}};h.D={};h=h.D;h.ky=
function(b){var h="N/A";switch(this.B["default"].state){case 0:h="paused";break;case 1:h="playing";break;case 2:h="reversing";break;case 3:h="seeking"}b.Ub(h)};h.Rx=function(b){b.u(this.B["default"].U/this.B["default"].duration)};h.vn=function(b){b.u(this.B["default"].duration)};h.my=function(b){var h=this.B["default"],f="N/A";switch(h.Ma){case 0:f=h.ca;break;case 1:f=h.Sa;break;case 2:f=h.ca;break;case 3:f=h.ca;break;case 4:f=h.ca;break;case 5:f=h.Sa;break;case 6:f=h.ca}b.u(f)};h.ct=function(b){b.u(this.value)};
h.oy=function(b,h,f,k,t){k=1<k?1:k;t=Pc(t,0>k?0:k,1,!1,!1);b.u(h+t*(f-h))}})();
function jc(){return[uc,vc,lc,W,kc,pc,qc,sc,tc,P,rc,wc,Wc,xc,G.prototype.g.yr,G.prototype.g.Gn,G.prototype.n.Ps,G.prototype.n.Us,P.prototype.D.Yn,P.prototype.n.un,kc.prototype.n.CallFunction,P.prototype.g.Br,G.prototype.g.er,G.prototype.n.hr,P.prototype.D.or,P.prototype.D.pr,G.prototype.g.lr,rc.prototype.n.Xk,P.prototype.n.Yk,rc.prototype.n.Yk,tc.prototype.g.Vk,P.prototype.g.yn,wc.prototype.n.Zs,G.prototype.g.jr,P.prototype.n.Wk,tc.prototype.g.Ar,P.prototype.n.Tn,G.prototype.D.cx,P.prototype.D.zn,
G.prototype.D.dx,P.prototype.D.xn,W.prototype.g.Mn,kc.prototype.g.Li,G.prototype.D.bx,G.prototype.D.ax,rc.prototype.n.Wk,rc.prototype.n.Tn,rc.prototype.D.zn,P.prototype.D.cl,rc.prototype.n.Wn,P.prototype.D.bl,P.prototype.n.Ks,lc.prototype.n.Play,G.prototype.D.Mv,P.prototype.n.Hs,tc.prototype.g.On,G.prototype.n.Uq,P.prototype.g.Dr,P.prototype.g.tr,G.prototype.g.wn,P.prototype.g.dh,P.prototype.n.Is,P.prototype.n.et,G.prototype.g.ir,G.prototype.g.Lr,G.prototype.g.cr,P.prototype.D.gr,G.prototype.D.to,
Wc.prototype.n.Ss,Wc.prototype.n.Ys,P.prototype.n.Js,P.prototype.g.rr,lc.prototype.g.Gr,lc.prototype.n.Xn,G.prototype.n.$s,P.prototype.n.Fs,P.prototype.n.Gs,G.prototype.g.As,kc.prototype.D.ws,G.prototype.n.dt,G.prototype.D.Gv,P.prototype.g.fr,G.prototype.g.bt,tc.prototype.g.Pn,P.prototype.n.Or,P.prototype.g.An,rc.prototype.D.xn,rc.prototype.g.yn,rc.prototype.D.Yn,rc.prototype.n.un,Wc.prototype.D.vn,Wc.prototype.n.Es,uc.prototype.n.Ws,pc.prototype.n.Ns,vc.prototype.n.kr,G.prototype.n.Ts,tc.prototype.g.Hr,
W.prototype.n.nr,G.prototype.g.Kr,G.prototype.n.Os,G.prototype.D.Cv,W.prototype.g.xr,W.prototype.n.Yq,W.prototype.n.Bs,P.prototype.n.Sn,rc.prototype.n.Sn,P.prototype.g.dr,G.prototype.n.mr,G.prototype.n.Cs,G.prototype.n.Ds,pc.prototype.n.Zq,pc.prototype.g.Fn,pc.prototype.g.ds,pc.prototype.D.Ir,uc.prototype.n.xs,uc.prototype.n.ys,uc.prototype.n.Vs,vc.prototype.D.zs,G.prototype.D.jx,lc.prototype.n.Rs,lc.prototype.g.Fr,lc.prototype.n.Qs,W.prototype.g.Er,P.prototype.n.Vn,P.prototype.n.Ms,G.prototype.D.ix,
P.prototype.n.Un,qc.prototype.g.Cr,qc.prototype.n.Ls,P.prototype.n.Wn,sc.prototype.n.Xk,sc.prototype.n.Wk,G.prototype.g.Sk,sc.prototype.n.Yk]};
