// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,da,fa,ga,ha,ja,ka,la,ma,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,z,Ba,Ca,Da,Ea,Fa,D,Ha,Ia,Ja,La,Ma,Na,Oa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec={},fc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(a,g,e,b){this.set(a,g,e,b)}function d(){this.ib=this.hb=this.kb=this.jb=this.wb=this.ub=this.Ua=this.Ta=0}function b(a,g,e,b){a<g?e<b?(F=a<e?a:e,v=g>b?g:b):(F=a<b?a:b,v=g>e?g:e):e<b?(F=g<e?g:e,v=a>b?a:b):(F=g<b?g:b,v=a>e?a:e)}function p(){this.items=this.Kd=null;this.Ph=0;T&&(this.Kd=new Set);this.Sg=[];this.xe=!0}function l(a){E[A++]=a}function q(){this.W=this.Xk=this.y=this.Il=0}function c(a){this.tb=[];this.Ui=this.Wi=this.Xi=this.Vi=0;this.ti(a)}function a(a,e){this.Ml=
a;this.Ll=e;this.cells={}}function r(a,e){this.Ml=a;this.Ll=e;this.cells={}}function w(a,e,g){var b;return H.length?(b=H.pop(),b.Bm=a,b.x=e,b.y=g,b):new aa(a,e,g)}function e(a,e,g){this.Bm=a;this.x=e;this.y=g;this.Bb=new ca}function h(a,e,g){var b;return B.length?(b=B.pop(),b.Bm=a,b.x=e,b.y=g,b):new da(a,e,g)}function n(a,e,g){this.Bm=a;this.x=e;this.y=g;this.Bb=[];this.mg=!0;this.Gd=new ca;this.ah=!1}function k(a,e){return a.vd-e.vd}fa=function(a){window.console&&window.console.log&&window.console.log(a)};
ga=function(a){window.console&&window.console.error&&window.console.error(a)};ha=function(a){return"undefined"===typeof a};ja=function(a){return"number"===typeof a};ka=function(a){return"string"===typeof a};la=function(a){return 0<a&&0===(a-1&a)};ma=function(a){--a;for(var e=1;32>e;e<<=1)a=a|a>>e;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,e){return a>e?a:e};qa=function(a,e){return a<e?a:e};ra=Math.PI;sa=function(a){return 0<=a?a|0:(a|0)-1};ta=function(a){var e=a|0;return e===a?e:e+
1};ua=function(a,e,g,b,u,h,c,k){var m,n,r,v;a<g?(n=a,m=g):(n=g,m=a);u<c?(v=u,r=c):(v=c,r=u);if(m<v||n>r)return!1;e<b?(n=e,m=b):(n=b,m=e);h<k?(v=h,r=k):(v=k,r=h);if(m<v||n>r)return!1;m=u-a+c-g;n=h-e+k-b;a=g-a;e=b-e;u=c-u;h=k-h;k=oa(e*u-h*a);return oa(u*n-h*m)>k?!1:oa(a*n-e*m)<=k};f.prototype.set=function(a,e,g,b){this.left=a;this.top=e;this.right=g;this.bottom=b};f.prototype.fh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};f.prototype.width=function(){return this.right-
this.left};f.prototype.height=function(){return this.bottom-this.top};f.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};f.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)};f.prototype.sv=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};f.prototype.tv=function(a,e,g){return!(a.right+
e<this.left||a.bottom+g<this.top||a.left+e>this.right||a.top+g>this.bottom)};f.prototype.Wb=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};f.prototype.mh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};va=f;d.prototype.Jg=function(a){this.Ta=a.left;this.Ua=a.top;this.ub=a.right;this.wb=a.top;this.jb=a.right;this.kb=a.bottom;this.hb=a.left;this.ib=a.bottom};d.prototype.jr=function(a,e){if(0===e)this.Jg(a);else{var g=
Math.sin(e),b=Math.cos(e),u=a.left*g,h=a.top*g,c=a.right*g,g=a.bottom*g,k=a.left*b,m=a.top*b,n=a.right*b,b=a.bottom*b;this.Ta=k-h;this.Ua=m+u;this.ub=n-h;this.wb=m+c;this.jb=n-g;this.kb=b+c;this.hb=k-g;this.ib=b+u}};d.prototype.offset=function(a,e){this.Ta+=a;this.Ua+=e;this.ub+=a;this.wb+=e;this.jb+=a;this.kb+=e;this.hb+=a;this.ib+=e;return this};var F=0,v=0;d.prototype.Uo=function(a){b(this.Ta,this.ub,this.jb,this.hb);a.left=F;a.right=v;b(this.Ua,this.wb,this.kb,this.ib);a.top=F;a.bottom=v};d.prototype.Wb=
function(a,e){var g=this.Ta,b=this.Ua,u=this.ub-g,h=this.wb-b,c=this.jb-g,k=this.kb-b,m=a-g,n=e-b,r=u*u+h*h,v=u*c+h*k,h=u*m+h*n,d=c*c+k*k,w=c*m+k*n,l=1/(r*d-v*v),u=(d*h-v*w)*l,r=(r*w-v*h)*l;if(0<=u&&0<r&&1>u+r)return!0;u=this.hb-g;h=this.ib-b;r=u*u+h*h;v=u*c+h*k;h=u*m+h*n;l=1/(r*d-v*v);u=(d*h-v*w)*l;r=(r*w-v*h)*l;return 0<=u&&0<r&&1>u+r};d.prototype.ve=function(a,e){if(e)switch(a){case 0:return this.Ta;case 1:return this.ub;case 2:return this.jb;case 3:return this.hb;case 4:return this.Ta;default:return this.Ta}else switch(a){case 0:return this.Ua;
case 1:return this.wb;case 2:return this.kb;case 3:return this.ib;case 4:return this.Ua;default:return this.Ua}};d.prototype.pq=function(){return(this.Ta+this.ub+this.jb+this.hb)/4};d.prototype.qq=function(){return(this.Ua+this.wb+this.kb+this.ib)/4};d.prototype.Hp=function(a){var e=a.pq(),g=a.qq();if(this.Wb(e,g))return!0;e=this.pq();g=this.qq();if(a.Wb(e,g))return!0;var b,u,h,c,k,m,n,r;for(n=0;4>n;n++)for(r=0;4>r;r++)if(e=this.ve(n,!0),g=this.ve(n,!1),b=this.ve(n+1,!0),u=this.ve(n+1,!1),h=a.ve(r,
!0),c=a.ve(r,!1),k=a.ve(r+1,!0),m=a.ve(r+1,!1),ua(e,g,b,u,h,c,k,m))return!0;return!1};wa=d;xa=function(a,e){for(var g in e)e.hasOwnProperty(g)&&(a[g]=e[g]);return a};ya=function(a,e){var g,b;e=sa(e);if(!(0>e||e>=a.length)){g=e;for(b=a.length-1;g<b;g++)a[g]=a[g+1];za(a,b)}};za=function(a,e){a.length=e};z=function(a){za(a,0)};Ba=function(a,e){z(a);var g,b;g=0;for(b=e.length;g<b;++g)a[g]=e[g]};Ca=function(a,e){a.push.apply(a,e)};Da=function(a,e){var g,b;g=0;for(b=a.length;g<b;++g)if(a[g]===e)return g;
return-1};Ea=function(a,e){var g=Da(a,e);-1!==g&&ya(a,g)};Fa=function(a,e,g){return a<e?e:a>g?g:a};D=function(a){return a/(180/ra)};Ha=function(a){return 180/ra*a};Ia=function(a){a%=360;0>a&&(a+=360);return a};Ja=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};La=function(a){return Ia(Ha(a))};Ma=function(a){return Ja(D(a))};Na=function(a,e,g,b){return Math.atan2(b-e,g-a)};Oa=function(a,e){if(a===e)return 0;var g=Math.sin(a),b=Math.cos(a),u=Math.sin(e),h=Math.cos(e),g=g*u+b*h;return 1<=g?0:-1>=g?ra:Math.acos(g)};
Qa=function(a,e,g){var b=Math.sin(a),u=Math.cos(a),h=Math.sin(e),c=Math.cos(e);return Math.acos(b*h+u*c)>g?0<u*h-b*c?Ja(a+g):Ja(a-g):Ja(e)};Ra=function(a,e){var g=Math.sin(a),b=Math.cos(a),u=Math.sin(e),h=Math.cos(e);return 0>=b*u-g*h};Sa=function(a,e,g,b,u,h){if(0===g)return h?a:e;var c=Math.sin(g);g=Math.cos(g);a-=b;e-=u;var k=a*c;a=a*g-e*c;e=e*g+k;return h?a+b:e+u};Ta=function(a,e,g,b){a=g-a;e=b-e;return Math.sqrt(a*a+e*e)};Ua=function(a,e){return!a!==!e};Va=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0;
return!1};Wa=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};var O=+new Date;Xa=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()-O};var g=!1,m=g=!1,J=!1;"undefined"!==typeof window&&(g=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
g=!g&&/safari/i.test(navigator.userAgent),m=/(iphone|ipod|ipad)/i.test(navigator.userAgent),J=window.c2ejecta);var T=!g&&!J&&!m&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.$d()?!1:T?this.Kd.has(a):this.items&&this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(T)this.Kd.has(a)||(this.Kd.add(a),this.xe=!1);else{var e=a.toString(),g=this.items;g?g.hasOwnProperty(e)||(g[e]=a,this.Ph++,this.xe=!1):(this.items={},this.items[e]=
a,this.Ph=1,this.xe=!1)}};p.prototype.remove=function(a){if(!this.$d())if(T)this.Kd.has(a)&&(this.Kd["delete"](a),this.xe=!1);else if(this.items){a=a.toString();var e=this.items;e.hasOwnProperty(a)&&(delete e[a],this.Ph--,this.xe=!1)}};p.prototype.clear=function(){this.$d()||(T?this.Kd.clear():(this.items=null,this.Ph=0),z(this.Sg),this.xe=!0)};p.prototype.$d=function(){return 0===this.count()};p.prototype.count=function(){return T?this.Kd.size:this.Ph};var E=null,A=0;p.prototype.Lw=function(){if(!this.xe){if(T)z(this.Sg),
E=this.Sg,A=0,this.Kd.forEach(l),E=null,A=0;else{var a=this.Sg;z(a);var e,g=0,b=this.items;if(b)for(e in b)b.hasOwnProperty(e)&&(a[g++]=b[e])}this.xe=!0}};p.prototype.le=function(){this.Lw();return this.Sg};ca=p;new ca;Ya=function(a,e){T?Za(a,e.Kd):$a(a,e.le())};Za=function(a,e){var g,b,u,h;b=g=0;for(u=a.length;g<u;++g)h=a[g],e.has(h)||(a[b++]=h);za(a,b)};$a=function(a,e){var g,b,u,h;b=g=0;for(u=a.length;g<u;++g)h=a[g],-1===Da(e,h)&&(a[b++]=h);za(a,b)};q.prototype.add=function(a){this.y=a-this.Il;
this.Xk=this.W+this.y;this.Il=this.Xk-this.W-this.y;this.W=this.Xk};q.prototype.reset=function(){this.W=this.Xk=this.y=this.Il=0};eb=q;fb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};c.prototype.ti=function(a){this.Tq=a;this.od=a.length/2;this.tb.length=a.length;this.$i=this.aj=-1;this.Xo=0};c.prototype.jg=function(){return!this.Tq.length};c.prototype.Ga=function(){for(var a=this.tb,e=a[0],g=e,b=a[1],u=b,h,c,k=1,m=this.od;k<m;++k)c=2*k,h=a[c],c=a[c+1],h<e&&(e=h),h>g&&(g=h),c<b&&
(b=c),c>u&&(u=c);this.Vi=e;this.Wi=g;this.Xi=b;this.Ui=u};c.prototype.Jg=function(a,e,g){this.tb.length=8;this.od=4;var b=this.tb;b[0]=a.left-e;b[1]=a.top-g;b[2]=a.right-e;b[3]=a.top-g;b[4]=a.right-e;b[5]=a.bottom-g;b[6]=a.left-e;b[7]=a.bottom-g;this.aj=a.right-a.left;this.$i=a.bottom-a.top;this.Ga()};c.prototype.Ig=function(a,e,g,b,u){this.tb.length=8;this.od=4;var h=this.tb;h[0]=a.Ta-e;h[1]=a.Ua-g;h[2]=a.ub-e;h[3]=a.wb-g;h[4]=a.jb-e;h[5]=a.kb-g;h[6]=a.hb-e;h[7]=a.ib-g;this.aj=b;this.$i=u;this.Ga()};
c.prototype.ir=function(a){this.od=a.od;Ba(this.tb,a.tb);this.Vi=a.Vi;this.Xi-a.Xi;this.Wi=a.Wi;this.Ui=a.Ui};c.prototype.Sf=function(a,e,g){if(this.aj!==a||this.$i!==e||this.Xo!==g){this.aj=a;this.$i=e;this.Xo=g;var b,u,h,c,k,m=0,n=1,r=this.Tq,v=this.tb;0!==g&&(m=Math.sin(g),n=Math.cos(g));g=0;for(h=this.od;g<h;g++)b=2*g,u=b+1,c=r[b]*a,k=r[u]*e,v[b]=c*n-k*m,v[u]=k*n+c*m;this.Ga()}};c.prototype.Wb=function(a,e){var g=this.tb;if(a===g[0]&&e===g[1])return!0;var b,u,h,c=this.od,k=this.Vi-110,m=this.Xi-
101,n=this.Wi+131,r=this.Ui+120,v,d,w=0,l=0;for(b=0;b<c;b++)u=2*b,h=(b+1)%c*2,v=g[u],u=g[u+1],d=g[h],h=g[h+1],ua(k,m,a,e,v,u,d,h)&&w++,ua(n,r,a,e,v,u,d,h)&&l++;return 1===w%2||1===l%2};c.prototype.Eh=function(a,e,g){var b=a.tb,u=this.tb;if(this.Wb(b[0]+e,b[1]+g)||a.Wb(u[0]-e,u[1]-g))return!0;var h,c,k,m,n,r,v,d,w,l,p,F;h=0;for(m=this.od;h<m;h++)for(c=2*h,k=(h+1)%m*2,d=u[c],c=u[c+1],w=u[k],l=u[k+1],k=0,v=a.od;k<v;k++)if(n=2*k,r=(k+1)%v*2,p=b[n]+e,n=b[n+1]+g,F=b[r]+e,r=b[r+1]+g,ua(d,c,w,l,p,n,F,r))return!0;
return!1};gb=c;a.prototype.Ge=function(a,e,g){var b;b=this.cells[a];return b?(b=b[e])?b:g?(b=w(this,a,e),this.cells[a][e]=b):null:g?(b=w(this,a,e),this.cells[a]={},this.cells[a][e]=b):null};a.prototype.fc=function(a){return sa(a/this.Ml)};a.prototype.gc=function(a){return sa(a/this.Ll)};a.prototype.update=function(a,e,g){var b,u,h,c,k;if(e)for(b=e.left,u=e.right;b<=u;++b)for(h=e.top,c=e.bottom;h<=c;++h)if(!g||!g.Wb(b,h))if(k=this.Ge(b,h,!1))k.remove(a),k.$d()&&(k.Bb.clear(),1E3>H.length&&H.push(k),
this.cells[b][h]=null);if(g)for(b=g.left,u=g.right;b<=u;++b)for(h=g.top,c=g.bottom;h<=c;++h)e&&e.Wb(b,h)||this.Ge(b,h,!0).Mm(a)};a.prototype.Bk=function(a,e){var g,b,u,h,c,k;g=this.fc(a.left);u=this.gc(a.top);b=this.fc(a.right);for(c=this.gc(a.bottom);g<=b;++g)for(h=u;h<=c;++h)(k=this.Ge(g,h,!1))&&k.dump(e)};hb=a;r.prototype.Ge=function(a,e,g){var b;b=this.cells[a];return b?(b=b[e])?b:g?(b=h(this,a,e),this.cells[a][e]=b):null:g?(b=h(this,a,e),this.cells[a]={},this.cells[a][e]=b):null};r.prototype.fc=
function(a){return sa(a/this.Ml)};r.prototype.gc=function(a){return sa(a/this.Ll)};r.prototype.update=function(a,e,g){var b,u,h,c,k;if(e)for(b=e.left,u=e.right;b<=u;++b)for(h=e.top,c=e.bottom;h<=c;++h)if(!g||!g.Wb(b,h))if(k=this.Ge(b,h,!1))k.remove(a),k.$d()&&(k.reset(),1E3>B.length&&B.push(k),this.cells[b][h]=null);if(g)for(b=g.left,u=g.right;b<=u;++b)for(h=g.top,c=g.bottom;h<=c;++h)e&&e.Wb(b,h)||this.Ge(b,h,!0).Mm(a)};r.prototype.Bk=function(a,e,g,b,u){var h,c;a=this.fc(a);e=this.gc(e);g=this.fc(g);
for(h=this.gc(b);a<=g;++a)for(b=e;b<=h;++b)(c=this.Ge(a,b,!1))&&c.dump(u)};r.prototype.Gv=function(a){var e,g,b,u,h;e=a.left;b=a.top;g=a.right;for(u=a.bottom;e<=g;++e)for(a=b;a<=u;++a)if(h=this.Ge(e,a,!1))h.mg=!1};ib=r;var H=[];e.prototype.$d=function(){return this.Bb.$d()};e.prototype.Mm=function(a){this.Bb.add(a)};e.prototype.remove=function(a){this.Bb.remove(a)};e.prototype.dump=function(a){Ca(a,this.Bb.le())};aa=e;var B=[];n.prototype.$d=function(){if(!this.Bb.length)return!0;if(this.Bb.length>
this.Gd.count())return!1;this.gm();return!0};n.prototype.Mm=function(a){this.Gd.contains(a)?(this.Gd.remove(a),this.Gd.$d()&&(this.ah=!1)):this.Bb.length?(this.Bb[this.Bb.length-1].Bd()>a.Bd()&&(this.mg=!1),this.Bb.push(a)):(this.Bb.push(a),this.mg=!0)};n.prototype.remove=function(a){this.Gd.add(a);this.ah=!0;30<=this.Gd.count()&&this.gm()};n.prototype.gm=function(){this.ah&&(this.Gd.count()===this.Bb.length?this.reset():(Ya(this.Bb,this.Gd),this.Gd.clear(),this.ah=!1))};n.prototype.bu=function(){this.mg||
(this.Bb.sort(k),this.mg=!0)};n.prototype.reset=function(){z(this.Bb);this.mg=!0;this.Gd.clear();this.ah=!1};n.prototype.dump=function(a){this.gm();this.bu();this.Bb.length&&a.push(this.Bb)};da=n;var N="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":N[a-1]};kb=function(a,e,g){if(g)switch(a.Tb=g.ONE,a.Mb=g.ONE_MINUS_SRC_ALPHA,e){case 1:a.Tb=g.ONE;a.Mb=g.ONE;break;case 3:a.Tb=
g.ONE;a.Mb=g.ZERO;break;case 4:a.Tb=g.ONE_MINUS_DST_ALPHA;a.Mb=g.ONE;break;case 5:a.Tb=g.DST_ALPHA;a.Mb=g.ZERO;break;case 6:a.Tb=g.ZERO;a.Mb=g.SRC_ALPHA;break;case 7:a.Tb=g.ONE_MINUS_DST_ALPHA;a.Mb=g.ZERO;break;case 8:a.Tb=g.ZERO;a.Mb=g.ONE_MINUS_SRC_ALPHA;break;case 9:a.Tb=g.DST_ALPHA;a.Mb=g.ONE_MINUS_SRC_ALPHA;break;case 10:a.Tb=g.ONE_MINUS_DST_ALPHA,a.Mb=g.SRC_ALPHA}};lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,e){return"string"!==typeof a||"string"!==typeof e||a.length!==e.length?
!1:a===e?!0:a.toLowerCase()===e.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}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(f){var d=new gc(3);f&&(d[0]=f[0],d[1]=f[1],d[2]=f[2]);return d}
function ic(f){var d=new gc(16);f&&(d[0]=f[0],d[1]=f[1],d[2]=f[2],d[3]=f[3],d[4]=f[4],d[5]=f[5],d[6]=f[6],d[7]=f[7],d[8]=f[8],d[9]=f[9],d[10]=f[10],d[11]=f[11],d[12]=f[12],d[13]=f[13],d[14]=f[14],d[15]=f[15]);return d}function jc(f,d){d[0]=f[0];d[1]=f[1];d[2]=f[2];d[3]=f[3];d[4]=f[4];d[5]=f[5];d[6]=f[6];d[7]=f[7];d[8]=f[8];d[9]=f[9];d[10]=f[10];d[11]=f[11];d[12]=f[12];d[13]=f[13];d[14]=f[14];d[15]=f[15]}
function kc(f,d){var b=d[0],p=d[1];d=d[2];f[0]*=b;f[1]*=b;f[2]*=b;f[3]*=b;f[4]*=p;f[5]*=p;f[6]*=p;f[7]*=p;f[8]*=d;f[9]*=d;f[10]*=d;f[11]*=d}
function lc(f,d,b,p){p||(p=ic());var l,q,c,a,r,w,e,h,n=f[0],k=f[1];f=f[2];q=b[0];c=b[1];l=b[2];b=d[1];w=d[2];n===d[0]&&k===b&&f===w?(f=p,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(b=n-d[0],w=k-d[1],e=f-d[2],h=1/Math.sqrt(b*b+w*w+e*e),b*=h,w*=h,e*=h,d=c*e-l*w,l=l*b-q*e,q=q*w-c*b,(h=Math.sqrt(d*d+l*l+q*q))?(h=1/h,d*=h,l*=h,q*=h):q=l=d=0,c=w*q-e*l,a=e*d-b*q,r=b*l-w*d,(h=Math.sqrt(c*c+a*a+r*r))?(h=1/h,c*=h,a*=h,r*=h):r=a=c=0,
p[0]=d,p[1]=c,p[2]=b,p[3]=0,p[4]=l,p[5]=a,p[6]=w,p[7]=0,p[8]=q,p[9]=r,p[10]=e,p[11]=0,p[12]=-(d*n+l*k+q*f),p[13]=-(c*n+a*k+r*f),p[14]=-(b*n+w*k+e*f),p[15]=1)}
(function(){function f(a,b,c){this.Je=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ba=!!c;this.Kj=this.Hh=!1;this.Tl=0;this.rl=1;this.po=1E3;this.Rw=(this.po-this.rl)/32768;this.Jl=hc([0,0,100]);this.Zp=hc([0,0,0]);this.Hr=hc([0,1,0]);this.Ni=hc([1,1,1]);this.ip=!0;this.ck=ic();this.Gc=ic();this.Ym=ic();this.Sl=ic();this.A=a;this.Dp()}function d(a,b,c){this.A=a;this.vi=b;this.name=c;this.Sc=a.getAttribLocation(b,"aPos");this.Re=a.getAttribLocation(b,
"aTex");this.Xp=a.getUniformLocation(b,"matP");this.Zj=a.getUniformLocation(b,"matMV");this.rg=a.getUniformLocation(b,"opacity");this.cn=a.getUniformLocation(b,"colorFill");this.Yp=a.getUniformLocation(b,"samplerFront");this.$h=a.getUniformLocation(b,"samplerBack");this.wf=a.getUniformLocation(b,"destStart");this.vf=a.getUniformLocation(b,"destEnd");this.bi=a.getUniformLocation(b,"seconds");this.en=a.getUniformLocation(b,"pixelWidth");this.dn=a.getUniformLocation(b,"pixelHeight");this.Zh=a.getUniformLocation(b,
"layerScale");this.Yh=a.getUniformLocation(b,"layerAngle");this.ci=a.getUniformLocation(b,"viewOrigin");this.ai=a.getUniformLocation(b,"scrollPos");this.nv=!!(this.en||this.dn||this.bi||this.$h||this.wf||this.vf||this.Zh||this.Yh||this.ci||this.ai);this.hq=this.iq=-999;this.bk=1;this.cq=this.bq=0;this.fq=this.aq=this.$p=1;this.lq=this.kq=this.jq=this.nq=this.mq=this.dq=0;this.Xm=[];this.gq=ic();this.rg&&a.uniform1f(this.rg,1);this.cn&&a.uniform4f(this.cn,1,1,1,1);this.Yp&&a.uniform1i(this.Yp,0);this.$h&&
a.uniform1i(this.$h,1);this.wf&&a.uniform2f(this.wf,0,0);this.vf&&a.uniform2f(this.vf,1,1);this.Zh&&a.uniform1f(this.Zh,1);this.Yh&&a.uniform1f(this.Yh,0);this.ci&&a.uniform2f(this.ci,0,0);this.ai&&a.uniform2f(this.ai,0,0);this.bi&&a.uniform1f(this.bi,0);this.nf=!1}function b(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]&&a[4]===b[4]&&a[5]===b[5]&&a[6]===b[6]&&a[7]===b[7]&&a[8]===b[8]&&a[9]===b[9]&&a[10]===b[10]&&a[11]===b[11]&&a[12]===b[12]&&a[13]===b[13]&&a[14]===b[14]&&a[15]===
b[15]}function p(a,b){this.type=a;this.n=b;this.A=b.A;this.Qc=this.Ub=this.Gq=0;this.U=this.Yc=null;this.kr=[]}var l=ic();f.prototype.Dp=function(){var a=this.A,b;this.Sp=1;this.rf=this.qf=null;this.kj=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Ba?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.Tp=a.ONE;this.Rp=a.ONE_MINUS_SRC_ALPHA;
this.ml=new Float32Array(8E3*(this.Ba?3:2));this.al=new Float32Array(16E3);this.Bn=new Float32Array(32E3);this.An=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.An);a.bufferData(a.ARRAY_BUFFER,this.Bn.byteLength,a.DYNAMIC_DRAW);this.Mi=Array(4);this.Di=Array(4);for(b=0;4>b;b++)this.Mi[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Mi[b]),a.bufferData(a.ARRAY_BUFFER,this.ml.byteLength,a.DYNAMIC_DRAW),this.Di[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Di[b]),a.bufferData(a.ARRAY_BUFFER,
this.al.byteLength,a.DYNAMIC_DRAW);this.Pd=0;this.qv=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.qv);for(var c=new Uint16Array(12E3),e=b=0;12E3>b;)c[b++]=e,c[b++]=e+1,c[b++]=e+2,c[b++]=e,c[b++]=e+2,c[b++]=e+3,e+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,c,a.STATIC_DRAW);this.Cg=this.Ng=this.me=0;this.Ra=[];b=this.Ba?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";c=this.gh({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},b,"<default>");this.Ra.push(c);c=this.gh({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},
"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.Ra.push(c);c=this.gh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"<earlyz>");this.Ra.push(c);c=this.gh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.Ra.push(c);for(var h in mc)mc.hasOwnProperty(h)&&this.Ra.push(this.gh(mc[h],b,h));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Od=[];this.zd=0;this.Qb=this.Fb=!1;this.ep=this.Qh=-1;this.Wf=null;this.fm=a.createFramebuffer();this.oj=this.Ek=null;this.Ro=!1;this.Ba&&(this.oj=a.createRenderbuffer());this.Ye=hc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Jv=a[0];this.jn=a[1];2048<this.jn&&(this.jn=2048);this.oc(0)};d.prototype.ho=function(a){b(this.gq,
a)||(jc(a,this.gq),this.A.uniformMatrix4fv(this.Zj,!1,a))};f.prototype.gh=function(a,b,c){var e=this.A,h=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(h,a.src);e.compileShader(h);if(!e.getShaderParameter(h,e.COMPILE_STATUS))return e.deleteShader(h),null;var n=e.createShader(e.VERTEX_SHADER);e.shaderSource(n,b);e.compileShader(n);if(!e.getShaderParameter(n,e.COMPILE_STATUS))return e.deleteShader(h),e.deleteShader(n),null;b=e.createProgram();e.attachShader(b,h);e.attachShader(b,n);e.linkProgram(b);
if(!e.getProgramParameter(b,e.LINK_STATUS))return e.deleteShader(h),e.deleteShader(n),e.deleteProgram(b),null;e.useProgram(b);e.deleteShader(h);e.deleteShader(n);c=new d(e,b,c);c.am=a.am||0;c.cm=a.cm||0;c.dp=!!a.dp;c.nd=!!a.nd;c.Po=!!a.Po;c.V=a.V||[];a=0;for(h=c.V.length;a<h;a++)c.V[a][1]=e.getUniformLocation(b,c.V[a][0]),c.Xm.push(0),e.uniform1f(c.V[a][1],0);return c};f.prototype.xm=function(a){var b,c;b=0;for(c=this.Ra.length;b<c;b++)if(this.Ra[b].name===a)return b;return-1};f.prototype.Sq=function(a,
b,c){var e=this.Gc,h=this.ck,n=[0,0,0,0,0,0,0,0];n[0]=e[0]*a+e[4]*b+e[12];n[1]=e[1]*a+e[5]*b+e[13];n[2]=e[2]*a+e[6]*b+e[14];n[3]=e[3]*a+e[7]*b+e[15];n[4]=h[0]*n[0]+h[4]*n[1]+h[8]*n[2]+h[12]*n[3];n[5]=h[1]*n[0]+h[5]*n[1]+h[9]*n[2]+h[13]*n[3];n[6]=h[2]*n[0]+h[6]*n[1]+h[10]*n[2]+h[14]*n[3];n[7]=-n[2];0!==n[7]&&(n[7]=1/n[7],n[4]*=n[7],n[5]*=n[7],n[6]*=n[7],c[0]=(.5*n[4]+.5)*this.width,c[1]=(.5*n[5]+.5)*this.height)};f.prototype.Cf=function(a,b,c){if(this.width!==a||this.height!==b||c){this.Ee();c=this.A;
this.width=a;this.height=b;c.viewport(0,0,a,b);lc(this.Jl,this.Zp,this.Hr,this.Gc);if(this.Ba){var e=-a/2;a=a/2;var h=b/2;b=-b/2;var n=this.rl,k=this.po,d=this.ck;d||(d=ic());var v=a-e,l=b-h,g=k-n;d[0]=2/v;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/l;d[6]=0;d[7]=0;d[8]=0;d[9]=0;d[10]=-2/g;d[11]=0;d[12]=-(e+a)/v;d[13]=-(b+h)/l;d[14]=-(k+n)/g;d[15]=1;this.Ni[0]=1;this.Ni[1]=1}else b=a/b,e=this.rl,a=this.po,d=this.ck,k=e*Math.tan(45*Math.PI/360),b*=k,h=-b,n=-k,d||(d=ic()),v=b-h,l=k-n,g=a-e,d[0]=2*e/v,d[1]=0,
d[2]=0,d[3]=0,d[4]=0,d[5]=2*e/l,d[6]=0,d[7]=0,d[8]=(b+h)/v,d[9]=(k+n)/l,d[10]=-(a+e)/g,d[11]=-1,d[12]=0,d[13]=0,d[14]=-(a*e*2)/g,d[15]=0,e=[0,0],a=[0,0],this.Sq(0,0,e),this.Sq(1,1,a),this.Ni[0]=1/(a[0]-e[0]),this.Ni[1]=-1/(a[1]-e[1]);e=0;for(a=this.Ra.length;e<a;e++)h=this.Ra[e],h.nf=!1,h.Xp&&(c.useProgram(h.vi),c.uniformMatrix4fv(h.Xp,!1,this.ck));c.useProgram(this.Ra[this.Qh].vi);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE0);
this.rf=this.qf=null;this.oj&&(c.bindFramebuffer(c.FRAMEBUFFER,this.fm),c.bindRenderbuffer(c.RENDERBUFFER,this.oj),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,this.width,this.height),this.Ro||(c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,this.oj),this.Ro=!0),c.bindRenderbuffer(c.RENDERBUFFER,null),c.bindFramebuffer(c.FRAMEBUFFER,null),this.Ek=null)}};f.prototype.Jd=function(){lc(this.Jl,this.Zp,this.Hr,this.Gc);kc(this.Gc,this.Ni)};f.prototype.translate=function(a,
b){if(0!==a||0!==b){this.Ye[0]=a;this.Ye[1]=b;this.Ye[2]=0;var c=this.Gc,e=this.Ye,h=e[0],n=e[1],e=e[2];c[12]=c[0]*h+c[4]*n+c[8]*e+c[12];c[13]=c[1]*h+c[5]*n+c[9]*e+c[13];c[14]=c[2]*h+c[6]*n+c[10]*e+c[14];c[15]=c[3]*h+c[7]*n+c[11]*e+c[15]}};f.prototype.scale=function(a,b){if(1!==a||1!==b)this.Ye[0]=a,this.Ye[1]=b,this.Ye[2]=1,kc(this.Gc,this.Ye)};f.prototype.Jn=function(a){if(0!==a){var b=this.Gc,c,e=Math.sin(a);a=Math.cos(a);var h=b[0],n=b[1],k=b[2],d=b[3],v=b[4],l=b[5],g=b[6],m=b[7];c?b!==c&&(c[8]=
b[8],c[9]=b[9],c[10]=b[10],c[11]=b[11],c[12]=b[12],c[13]=b[13],c[14]=b[14],c[15]=b[15]):c=b;c[0]=h*a+v*e;c[1]=n*a+l*e;c[2]=k*a+g*e;c[3]=d*a+m*e;c[4]=h*-e+v*a;c[5]=n*-e+l*a;c[6]=k*-e+g*a;c[7]=d*-e+m*a}};f.prototype.ud=function(){if(!b(this.Ym,this.Gc)){var a=this.kc();a.type=5;a.U?jc(this.Gc,a.U):a.U=ic(this.Gc);jc(this.Gc,this.Ym);this.Qb=this.Fb=!1}};f.prototype.Kk=function(a){this.Ba&&(32760<a&&(a=32760),this.Tl=this.Jl[2]-this.rl-a*this.Rw)};p.prototype.Mt=function(){var a=this.A,b=this.n;0!==
this.Ub?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,b.fm),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.Kj=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.Kj=!1)};p.prototype.Qt=function(){this.A.bindTexture(this.A.TEXTURE_2D,this.Yc)};p.prototype.Rt=function(){var a=this.A;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Yc);
a.activeTexture(a.TEXTURE0)};p.prototype.Nt=function(){var a=this.Gq,b=this.n;b.kj=a;b=b.Wf;b.rg&&b.bk!==a&&(b.bk=a,this.A.uniform1f(b.rg,a))};p.prototype.Ht=function(){this.A.drawElements(this.A.TRIANGLES,this.Qc,this.A.UNSIGNED_SHORT,this.Ub)};p.prototype.Jt=function(){this.A.blendFunc(this.Ub,this.Qc)};p.prototype.St=function(){var a,b,c,e=this.n.Ra,h=this.n.ep;a=0;for(b=e.length;a<b;a++)c=e[a],a===h&&c.Zj?(c.ho(this.U),c.nf=!0):c.nf=!1;jc(this.U,this.n.Sl)};p.prototype.It=function(){var a=this.A,
b=this.n;this.Yc?(b.rf===this.Yc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.rf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.fm),b.Kj||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Yc,0)):(b.Ba||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};p.prototype.Ft=function(){var a=this.A,b=this.Ub;0===b?(a.clearColor(this.U[0],this.U[1],this.U[2],this.U[3]),a.clear(a.COLOR_BUFFER_BIT)):
1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.U[0],this.U[1],this.U[2],this.U[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};p.prototype.Lt=function(){var a=this.A;0!==this.Ub?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};p.prototype.Gt=function(){var a=this.A,b=this.n;b.Ba&&a.disable(a.DEPTH_TEST);var c=b.Ra[1];a.useProgram(c.vi);!c.nf&&c.Zj&&(c.ho(b.Sl),c.nf=!0);a.enableVertexAttribArray(c.Sc);a.bindBuffer(a.ARRAY_BUFFER,b.An);a.vertexAttribPointer(c.Sc,
4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Ub/4,this.Qc);c=b.Wf;a.useProgram(c.vi);0<=c.Sc&&(a.enableVertexAttribArray(c.Sc),a.bindBuffer(a.ARRAY_BUFFER,b.Mi[b.Pd]),a.vertexAttribPointer(c.Sc,b.Ba?3:2,a.FLOAT,!1,0,0));0<=c.Re&&(a.enableVertexAttribArray(c.Re),a.bindBuffer(a.ARRAY_BUFFER,b.Di[b.Pd]),a.vertexAttribPointer(c.Re,2,a.FLOAT,!1,0,0));b.Ba&&a.enable(a.DEPTH_TEST)};p.prototype.Ot=function(){var a=this.A,b=this.n,c=b.Ra[this.Ub];b.ep=this.Ub;b.Wf=c;a.useProgram(c.vi);!c.nf&&c.Zj&&(c.ho(b.Sl),
c.nf=!0);c.rg&&c.bk!==b.kj&&(c.bk=b.kj,a.uniform1f(c.rg,b.kj));0<=c.Sc&&(a.enableVertexAttribArray(c.Sc),a.bindBuffer(a.ARRAY_BUFFER,b.Mi[b.Pd]),a.vertexAttribPointer(c.Sc,b.Ba?3:2,a.FLOAT,!1,0,0));0<=c.Re&&(a.enableVertexAttribArray(c.Re),a.bindBuffer(a.ARRAY_BUFFER,b.Di[b.Pd]),a.vertexAttribPointer(c.Re,2,a.FLOAT,!1,0,0))};p.prototype.Kt=function(){var a=this.U;this.A.uniform4f(this.n.Wf.cn,a[0],a[1],a[2],a[3])};p.prototype.Pt=function(){var a,b,c=this.n.Wf,e=this.A;a=this.U;c.$h&&this.n.rf!==this.Yc&&
(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.Yc),this.n.rf=this.Yc,e.activeTexture(e.TEXTURE0));var h=a[0];c.en&&h!==c.iq&&(c.iq=h,e.uniform1f(c.en,h));h=a[1];c.dn&&h!==c.hq&&(c.hq=h,e.uniform1f(c.dn,h));h=a[2];b=a[3];!c.wf||h===c.bq&&b===c.cq||(c.bq=h,c.cq=b,e.uniform2f(c.wf,h,b));h=a[4];b=a[5];!c.vf||h===c.$p&&b===c.aq||(c.$p=h,c.aq=h,e.uniform2f(c.vf,h,b));h=a[6];c.Zh&&h!==c.fq&&(c.fq=h,e.uniform1f(c.Zh,h));h=a[7];c.Yh&&h!==c.dq&&(c.dq=h,e.uniform1f(c.Yh,h));h=a[8];b=a[9];!c.ci||
h===c.mq&&b===c.nq||(c.mq=h,c.nq=b,e.uniform2f(c.ci,h,b));h=a[10];b=a[11];!c.ai||h===c.jq&&b===c.kq||(c.jq=h,c.kq=b,e.uniform2f(c.ai,h,b));h=a[12];c.bi&&h!==c.lq&&(c.lq=h,e.uniform1f(c.bi,h));if(c.V.length)for(a=0,b=c.V.length;a<b;a++)h=this.kr[a],h!==c.Xm[a]&&(c.Xm[a]=h,e.uniform1f(c.V[a][1],h))};f.prototype.kc=function(){this.zd===this.Od.length&&this.Od.push(new p(0,this));return this.Od[this.zd++]};f.prototype.Ee=function(){if(0!==this.zd&&!this.A.isContextLost()){var a=this.A;0<this.Cg&&(a.bindBuffer(a.ARRAY_BUFFER,
this.An),a.bufferSubData(a.ARRAY_BUFFER,0,this.Bn.subarray(0,this.Cg)),b&&0<=b.Sc&&"<point>"===b.name&&a.vertexAttribPointer(b.Sc,4,a.FLOAT,!1,0,0));if(0<this.me){var b=this.Wf;a.bindBuffer(a.ARRAY_BUFFER,this.Mi[this.Pd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.ml.subarray(0,this.me));b&&0<=b.Sc&&"<point>"!==b.name&&a.vertexAttribPointer(b.Sc,this.Ba?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Di[this.Pd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.al.subarray(0,this.Ng));b&&0<=b.Re&&"<point>"!==
b.name&&a.vertexAttribPointer(b.Re,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.zd;a<b;a++)switch(c=this.Od[a],c.type){case 1:c.Ht();break;case 2:c.Qt();break;case 3:c.Nt();break;case 4:c.Jt();break;case 5:c.St();break;case 6:c.It();break;case 7:c.Ft();break;case 8:c.Gt();break;case 9:c.Ot();break;case 10:c.Pt();break;case 11:c.Rt();break;case 12:c.Kt();break;case 13:c.Lt();break;case 14:c.Mt()}this.Cg=this.Ng=this.me=this.zd=0;this.Kj=this.Qb=this.Fb=!1;this.Pd++;4<=this.Pd&&(this.Pd=0)}};f.prototype.Ue=
function(a){if(a!==this.Sp&&!this.Hh){var b=this.kc();b.type=3;this.Sp=b.Gq=a;this.Qb=this.Fb=!1}};f.prototype.nc=function(a){if(a!==this.qf){var b=this.kc();b.type=2;this.qf=b.Yc=a;this.Qb=this.Fb=!1}};f.prototype.Te=function(a,b){if((a!==this.Tp||b!==this.Rp)&&!this.Hh){var c=this.kc();c.type=4;c.Ub=a;c.Qc=b;this.Tp=a;this.Rp=b;this.Qb=this.Fb=!1}};f.prototype.Zq=function(){this.Te(this.A.ONE,this.A.ONE_MINUS_SRC_ALPHA)};f.prototype.Dg=function(a,b,c,e,h,n,k,d){15992<=this.me&&this.Ee();var v=this.me,
l=this.Ng,g=this.ml,m=this.al,p=this.Tl;if(this.Fb)this.Od[this.zd-1].Qc+=6;else{var f=this.kc();f.type=1;f.Ub=this.Ba?v:v/2*3;f.Qc=6;this.Fb=!0;this.Qb=!1}this.Ba?(g[v++]=a,g[v++]=b,g[v++]=p,g[v++]=c,g[v++]=e,g[v++]=p,g[v++]=h,g[v++]=n,g[v++]=p,g[v++]=k,g[v++]=d,g[v++]=p):(g[v++]=a,g[v++]=b,g[v++]=c,g[v++]=e,g[v++]=h,g[v++]=n,g[v++]=k,g[v++]=d);m[l++]=0;m[l++]=0;m[l++]=1;m[l++]=0;m[l++]=1;m[l++]=1;m[l++]=0;m[l++]=1;this.me=v;this.Ng=l};f.prototype.Hd=function(a,b,c,e,h,n,k,d,v){15992<=this.me&&this.Ee();
var l=this.me,g=this.Ng,m=this.ml,p=this.al,f=this.Tl;if(this.Fb)this.Od[this.zd-1].Qc+=6;else{var E=this.kc();E.type=1;E.Ub=this.Ba?l:l/2*3;E.Qc=6;this.Fb=!0;this.Qb=!1}var E=v.left,q=v.top,H=v.right;v=v.bottom;this.Ba?(m[l++]=a,m[l++]=b,m[l++]=f,m[l++]=c,m[l++]=e,m[l++]=f,m[l++]=h,m[l++]=n,m[l++]=f,m[l++]=k,m[l++]=d,m[l++]=f):(m[l++]=a,m[l++]=b,m[l++]=c,m[l++]=e,m[l++]=h,m[l++]=n,m[l++]=k,m[l++]=d);p[g++]=E;p[g++]=q;p[g++]=H;p[g++]=q;p[g++]=H;p[g++]=v;p[g++]=E;p[g++]=v;this.me=l;this.Ng=g};f.prototype.Vv=
function(a,b,c,e){7996<=this.Cg&&this.Ee();var h=this.Cg,n=this.Bn;if(this.Qb)this.Od[this.zd-1].Qc++;else{var k=this.kc();k.type=8;k.Ub=h;k.Qc=1;this.Qb=!0;this.Fb=!1}n[h++]=a;n[h++]=b;n[h++]=c;n[h++]=e;this.Cg=h};f.prototype.oc=function(a){if(this.Qh!==a){if(!this.Ra[a]){if(0===this.Qh)return;a=0}var b=this.kc();b.type=9;this.Qh=b.Ub=a;this.Qb=this.Fb=!1}};f.prototype.ni=function(a){a=this.Ra[a];return!(!a.wf&&!a.vf)};f.prototype.En=function(a){a=this.Ra[a];return!!(a.wf||a.vf||a.dp)};f.prototype.Dn=
function(a){return this.Ra[a].nd};f.prototype.dw=function(a){a=this.Ra[a];return 0!==a.am||0!==a.cm};f.prototype.Tu=function(a){return this.Ra[a].am};f.prototype.Uu=function(a){return this.Ra[a].cm};f.prototype.Vu=function(a,b){return this.Ra[a].V[b][2]};f.prototype.yk=function(a){return this.Ra[a].Po};f.prototype.Hg=function(a,b,c,e,h,n,k,d,v,l,g,m,p,f,E){var q=this.Ra[this.Qh],H,B;if(q.nv||E.length){H=this.kc();H.type=10;H.U?jc(this.Gc,H.U):H.U=ic();B=H.U;B[0]=b;B[1]=c;B[2]=e;B[3]=h;B[4]=n;B[5]=
k;B[6]=d;B[7]=v;B[8]=l;B[9]=g;B[10]=m;B[11]=p;B[12]=f;q.$h?H.Yc=a:H.Yc=null;if(E.length)for(c=H.kr,c.length=E.length,a=0,b=E.length;a<b;a++)c[a]=E[a];this.Qb=this.Fb=!1}};f.prototype.clear=function(a,b,c,e){var h=this.kc();h.type=7;h.Ub=0;h.U||(h.U=ic());h.U[0]=a;h.U[1]=b;h.U[2]=c;h.U[3]=e;this.Qb=this.Fb=!1};f.prototype.clearRect=function(a,b,c,e){if(!(0>c||0>e)){var h=this.kc();h.type=7;h.Ub=1;h.U||(h.U=ic());h.U[0]=a;h.U[1]=b;h.U[2]=c;h.U[3]=e;this.Qb=this.Fb=!1}};f.prototype.cr=function(a){if(this.Ba&&
(a=!!a,this.Hh!==a)){var b=this.kc();b.type=14;b.Ub=a?1:0;this.Qb=this.Fb=!1;this.Hh=a;this.Ek=null;this.Hh?this.oc(2):this.oc(0)}};f.prototype.br=function(a){if(this.Ba){var b=this.kc();b.type=13;b.Ub=a?1:0;this.Qb=this.Fb=!1}};f.prototype.op=function(){jc(this.Ym,l);this.Jd();this.ud();var a=this.width/2,b=this.height/2;this.Dg(-a,b,a,b,a,-b,-a,-b);jc(l,this.Gc);this.ud()};f.prototype.$q=function(a,b,c){this.oc(3);var e=this.kc();e.type=12;e.U||(e.U=ic());e.U[0]=a;e.U[1]=b;e.U[2]=c;e.U[3]=1;this.Qb=
this.Fb=!1};f.prototype.zw=function(){this.oc(0)};f.prototype.iw=function(){this.oc(2)};f.prototype.bw=function(){this.Ee();this.A.flush()};var q=[],c={};f.prototype.yt=function(){z(q);c={}};f.prototype.Oe=function(a,b,d,e){b=!!b;d=!!d;var h=a.src+","+b+","+d+(b?",undefined":""),n=null;if("undefined"!==typeof a.src&&c.hasOwnProperty(h))return n=c[h],n.Zi++,n;this.Ee();var k=this.A,l=la(a.width)&&la(a.height),n=k.createTexture();k.bindTexture(k.TEXTURE_2D,n);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,
!0);var v=k.RGBA,p=k.RGBA,g=k.UNSIGNED_BYTE;if(e&&!this.Je)switch(e){case 1:p=v=k.RGB;break;case 2:g=k.UNSIGNED_SHORT_4_4_4_4;break;case 3:g=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:p=v=k.RGB,g=k.UNSIGNED_SHORT_5_6_5}if(!l&&b){e=document.createElement("canvas");e.width=ma(a.width);e.height=ma(a.height);var m=e.getContext("2d");m.webkitImageSmoothingEnabled=d;m.mozImageSmoothingEnabled=d;m.msImageSmoothingEnabled=d;m.imageSmoothingEnabled=d;m.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);k.texImage2D(k.TEXTURE_2D,
0,v,p,g,e)}else k.texImage2D(k.TEXTURE_2D,0,v,p,g,a);b?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));d?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.LINEAR),l&&this.ip?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,
k.TEXTURE_MIN_FILTER,k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.qf=null;n.df=a.width;n.cf=a.height;n.Zi=1;n.Wo=h;q.push(n);return c[h]=n};f.prototype.Mc=function(a,b,c){var e;this.Ee();var h=this.A;this.Je&&(e=!1);var n=h.createTexture();h.bindTexture(h.TEXTURE_2D,n);h.texImage2D(h.TEXTURE_2D,0,h.RGBA,a,b,0,h.RGBA,e?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,null);h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,c?h.LINEAR:h.NEAREST);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,c?h.LINEAR:h.NEAREST);h.bindTexture(h.TEXTURE_2D,null);this.qf=null;n.df=a;n.cf=b;q.push(n);return n};f.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Zi&&1<a.Zi?a.Zi--:(this.Ee(),a===this.qf&&(this.A.bindTexture(this.A.TEXTURE_2D,null),this.qf=null),a===this.rf&&(this.A.activeTexture(this.A.TEXTURE1),
this.A.bindTexture(this.A.TEXTURE_2D,null),this.A.activeTexture(this.A.TEXTURE0),this.rf=null),Ea(q,a),"undefined"!==typeof a.Wo&&delete c[a.Wo],this.A.deleteTexture(a)))};f.prototype.Vc=function(a){if(a!==this.Ek){var b=this.kc();b.type=6;this.Ek=b.Yc=a;this.Qb=this.Fb=!1}};ob=f})();
(function(){function f(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function d(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function b(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.Fc=(this.Gh=/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.Zb=!!a.dc;this.Ip="undefined"!==typeof window.AppMobi||this.Zb;this.Rc=!!window.c2cocoonjs;this.gd=!!window.c2ejecta;this.Rc&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.gd&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",
function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.Va=this.Zb||this.Rc||this.gd;this.Ih=/edge\//i.test(navigator.userAgent);this.Je=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Ih;this.Lp=/tizen/i.test(navigator.userAgent);this.Ij=/android/i.test(navigator.userAgent)&&!this.Lp&&!this.Je&&!this.Ih;this.Wm=(/iphone/i.test(navigator.userAgent)||
/ipod/i.test(navigator.userAgent))&&!this.Je&&!this.Ih;this.Qp=/ipad/i.test(navigator.userAgent);this.Oh=this.Wm||this.Qp||this.gd;this.Bv=this.Wm&&/os\s6/i.test(navigator.userAgent);this.Fh=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Je&&!this.Ih;this.Pm=/amazonwebappplatform/i.test(navigator.userAgent);this.vv=/firefox/i.test(navigator.userAgent);this.Kp=/safari/i.test(navigator.userAgent)&&!this.Fh&&!this.Je&&!this.Ih;this.yv=/windows/i.test(navigator.userAgent);
this.Ke="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Op=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Av=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.ig=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Um=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Np=
!!window.cr_windows10;this.Mp=this.Op||this.Av||this.Um||this.Np;this.uv=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Jj=this.Ij&&!this.Fh&&!this.Gh&&!this.vv&&!this.Pm&&!this.Va;this.devicePixelRatio=1;this.gg=this.Fc||this.Gh||this.Ip||this.Rc||this.Ij||this.Oh||this.ig||this.Um||this.uv||this.Lp||this.gd;this.gg||(this.gg=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||
this.Ke||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Ke=!0);this.canvas=a;this.Yo=document.getElementById("c2canvasdiv");this.n=this.A=null;this.Am="(unavailable)";this.Ba=!1;this.jf=0;this.ra=null;this.im="";this.vj=!1;this.Aq=this.Bq=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Zb&&(window.c2runtime=
this);this.Ke&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},require("nw.gui").App.clearCache());this.Jj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.K=this.width;this.J=this.height;this.ij=this.width;this.ih=this.height;this.Sh=window.innerWidth;this.Rh=window.innerHeight;this.Gu=!1;this.qa=!0;this.Kh=!1;Date.now||(Date.now=function(){return+new Date});
this.plugins=[];this.types={};this.q=[];this.Za=[];this.bn={};this.kd=[];this.$l={};this.Vd=[];this.Ug=[];this.gl=[];this.nt=[];this.ot=[];this.gf={};this.Rm=this.Ie=!1;this.hd=0;this.Qm=this.Tm=!1;this.ed=[];this.Lj=!1;this.ae=this.Rb=this.Uj=this.Nn="";this.Bi=this.nr=!1;this.De=this.Ud=0;this.rq=30;this.Ql=this.di=0;this.Hf=1;this.bb=new eb;this.ne=new eb;this.fk=this.yj=this.oh=this.Gf=this.tf=this.hm=this.Rj=0;this.Nl=null;this.pj=[];this.Zl=[];this.rj=-1;this.gn=[[]];this.bo=this.$j=0;this.Ak(null);
this.vq=this.fi=0;this.an=!0;this.ph=0;this.Ci=[];this.Zn=this.Fn=-1;this.Oj=!0;this.Yj=0;this.Jh=!1;this.Cw=0;this.Rf=null;this.Cd=this.yp=!1;this.zq=new ca;this.qn=new ca;this.rn=new ca;this.Dk=[];this.rd=new gb([]);this.Yn=new gb([]);this.Qf=[];this.Ah={};this.Vf={};this.Pf={};this.Tg={};this.So={};this.Wp=this.Tj=this.cb=this.ob=this.Vp=this.Sj=this.la=null;this.Rg=this.Vm=!1;this.jm=[null,null];this.mf=0;this.uj="";this.ee={};this.xi=this.Pe=null;this.pr="";this.ek=[];this.hw()}}function p(a,
b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function l(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function q(a,b,e,g){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=l;c.onerror=g;c.onsuccess=function(c){c=c.target.result;c.onerror=g;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=e}}function c(a,b,e){var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=l;g.onerror=e;g.onsuccess=function(g){g=g.target.result;g.onerror=
e;var c=g.transaction(["saves"]).objectStore("saves").get(a);c.onsuccess=function(){c.result?b(c.result.data):b(null)}}}function a(){fa("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function r(a){var b,e={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ca||a[b]&&"undefined"!==typeof a[b].hy||"spriteCreatedDestroyCallback"!==b&&(e[b]=a[b]);return e}
var w=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;b.prototype.hw=function(){var a=this,b;this.ig?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var e="data.js";if(this.Op||this.ig||this.Um||this.Np)e="data.json";b.open("GET",e,!0);var g=!1;if(!this.Va&&"response"in b&&"responseType"in b)try{b.responseType="json",g="json"===b.responseType}catch(c){g=!1}if(!g&&"responseType"in
b)try{b.responseType="text"}catch(h){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(k){}this.ig?b.onreadystatechange=function(){4===b.readyState&&a.Wj(JSON.parse(b.responseText))}:(b.onload=function(){if(g)a.Wj(b.response);else if(a.gd){var e=b.responseText,e=e.substr(e.indexOf("{"));a.Wj(JSON.parse(e))}else a.Wj(JSON.parse(b.responseText))},b.onerror=function(a){ga("Error requesting "+e+":");ga(a)});b.send()};b.prototype.rv=function(){var a=this,b,e,g,
c,h,k,m,n,l;this.Me=(!this.Va||this.gd||this.Fc)&&this.Mw&&!this.Jj;0===this.jc&&this.Oh&&(this.Me=!1);this.devicePixelRatio=this.Me?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Jb();e=!(!this.Gu&&(!this.El||this.Ke||this.Mp||this.ig||this.Gh||this.Fc||this.Pm));0<this.jc&&this.setSize(f(),d(),!0);try{this.$t&&(this.Rc||this.gd||!this.Va)&&(b={alpha:e,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.A=this.canvas.getContext("webgl",
b)||this.canvas.getContext("experimental-webgl",b))}catch(v){}if(this.A){if(b=this.A.getExtension("WEBGL_debug_renderer_info"))this.Am=this.A.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.A.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.Ba&&(this.Am+=" [front-to-back enabled]");this.Va||(this.Hb=document.createElement("canvas"),jQuery(this.Hb).appendTo(this.canvas.parentNode),this.Hb.oncontextmenu=function(){return!1},this.Hb.onselectstart=function(){return!1},this.Hb.width=Math.round(this.ij*
this.devicePixelRatio),this.Hb.height=Math.round(this.ih*this.devicePixelRatio),jQuery(this.Hb).css({width:this.ij+"px",height:this.ih+"px"}),this.Rq(),this.zn=this.Hb.getContext("2d"));this.n=new ob(this.A,this.gg,this.Ba);this.n.Cf(this.canvas.width,this.canvas.height);this.n.ip=0!==this.Tt;this.ra=null;this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.Mv();fa("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",
function(){a.n.Dp();a.n.Cf(a.n.width,a.n.height,!0);a.ob=null;a.cb=null;a.jm[0]=null;a.jm[1]=null;a.Nv();a.qa=!0;fa("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);b=0;for(e=this.q.length;b<e;b++)for(h=this.q[b],g=0,c=h.P.length;g<c;g++)m=h.P[g],m.gb=this.n.xm(m.id),m.nd=this.n.Dn(m.gb),this.Rg=this.Rg||this.n.ni(m.gb);b=0;for(e=this.kd.length;b<e;b++){n=this.kd[b];g=0;for(c=n.P.length;g<c;g++)m=n.P[g],m.gb=this.n.xm(m.id),m.nd=this.n.Dn(m.gb);n.td();g=0;for(c=n.S.length;g<
c;g++){l=n.S[g];h=0;for(k=l.P.length;h<k;h++)m=l.P[h],m.gb=this.n.xm(m.id),m.nd=this.n.Dn(m.gb),this.Rg=this.Rg||this.n.ni(m.gb);l.td()}}}else{if(0<this.jc&&this.Zb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ra=AppMobi.canvas.getContext("2d");try{this.ra.samplingMode=this.T?"smooth":"sharp",this.ra.globalScale=1,this.ra.HTML5CompatibilityMode=!0,this.ra.imageSmoothingEnabled=this.T}catch(p){}0!==this.width&&0!==this.height&&(this.ra.width=
this.width,this.ra.height=this.height)}this.ra||(this.Rc?(b={antialias:!!this.T,alpha:e},this.ra=this.canvas.getContext("2d",b)):(b={alpha:e},this.ra=this.canvas.getContext("2d",b)),this.ra.webkitImageSmoothingEnabled=this.T,this.ra.mozImageSmoothingEnabled=this.T,this.ra.msImageSmoothingEnabled=this.T,this.ra.imageSmoothingEnabled=this.T);this.zn=this.Hb=null}this.Ar=function(b){a.Fa(!1,b)};window==window.top||this.Va||this.Mp||this.ig||(document.addEventListener("mousedown",function(){window.focus()},
!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Rc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(fa("Reloading for continuous preview"),this.Uj="__c2_continuouspreview",this.Bi=!0),this.Tv&&!this.gg&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));window.addEventListener("blur",function(){});this.Va||
(b=function(a){if(nb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.jc&&this.Me&&1<this.devicePixelRatio&&this.setSize(this.rb,this.qb,
!0);this.Er();this.kv();this.go();this.M={}};b.prototype.setSize=function(a,b,e){var g=0,c=0,h=0,k=0,k=0,m=this.Bv&&this.Kp&&!navigator.standalone&&!this.Va&&!this.Fc;m&&(b+=60);if(this.Sh!==a||this.Rh!==b||e){this.Sh=a;this.Rh=b;var n=this.jc,d=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Jh)&&!this.Fc;if(d||0!==this.jc||e)d&&0<this.mf&&(n=this.mf),e=this.devicePixelRatio,4<=n?(h=this.rb/this.qb,a/b>h?(h*=b,5===n?(k=h*e/this.rb,1<
k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),h=this.rb*k/e,k=this.qb*k/e,g=(a-h)/2,c=(b-k)/2,a=h,b=k):(g=(a-h)/2,a=h)):(k=a/h,5===n?(k=k*e/this.qb,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),h=this.rb*k/e,k=this.qb*k/e,g=(a-h)/2,c=(b-k)/2,a=h):c=(b-k)/2,b=k),d&&!this.Ke&&(c=g=0)):this.Ke&&this.Jh&&0===this.pp&&(g=Math.floor((a-this.rb)/2),c=Math.floor((b-this.qb)/2),a=this.rb,b=this.qb),2>n&&(this.dh=e),this.Me&&this.Qp&&1<e&&(1024<=a&&(a=1023),1024<=b&&(b=1023)),this.ij=Math.round(a),this.ih=Math.round(b),
this.width=Math.round(a*e),this.height=Math.round(b*e),this.qa=!0,this.Qr?(this.K=this.width,this.J=this.height,this.Ac=!0):this.width<this.rb&&this.height<this.qb||1===n?(this.K=this.width,this.J=this.height,this.Ac=!0):(this.K=this.rb,this.J=this.qb,this.Ac=!1,2===n?(h=this.rb/this.qb,n=this.Sh/this.Rh,n<h?this.K=this.J*n:n>h&&(this.J=this.K/n)):3===n&&(h=this.rb/this.qb,n=this.Sh/this.Rh,n>h?this.K=this.J*n:n<h&&(this.J=this.K/n))),this.Yo&&!this.Va&&(jQuery(this.Yo).css({width:Math.round(a)+"px",
height:Math.round(b)+"px","margin-left":Math.floor(g)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*e),this.canvas.height=Math.round(b*e),this.gd?(this.canvas.style.left=Math.floor(g)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.Me&&!this.Va&&(this.canvas.style.width=
Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.Hb&&(this.Hb.width=Math.round(a*e),this.Hb.height=Math.round(b*e),this.Hb.style.width=this.ij+"px",this.Hb.style.height=this.ih+"px"),this.n&&this.n.Cf(Math.round(a*e),Math.round(b*e)),this.Zb&&this.ra&&(this.ra.width=Math.round(a),this.ra.height=Math.round(b)),this.ra&&(this.ra.webkitImageSmoothingEnabled=this.T,this.ra.mozImageSmoothingEnabled=this.T,this.ra.msImageSmoothingEnabled=this.T,this.ra.imageSmoothingEnabled=this.T),
this.Er(),this.Va||!m&&!this.Wm||window.setTimeout(function(){window.scrollTo(0,1)},100)}};b.prototype.Er=function(){if(this.qt&&0!==this.xn){var a="portrait";2===this.xn&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&
console.warn("Failed to lock orientation: ",b)}}};b.prototype.Mv=function(){this.n.yt();this.Vm=!0;var a,b,e;a=0;for(b=this.q.length;a<b;a++)e=this.q[a],e.gi&&e.gi()};b.prototype.Nv=function(){this.Vm=!1;var a,b,e;a=0;for(b=this.q.length;a<b;a++)e=this.q[a],e.hi&&e.hi()};b.prototype.Rq=function(){if(!this.Va){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Jh)&&!this.Fc?jQuery(this.canvas).offset():jQuery(this.canvas).position();
a.position="absolute";jQuery(this.Hb).css(a)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;b.prototype.setSuspended=function(a){var b;if(a&&!this.Kh)for(fa("[Construct 2] Suspending"),this.Kh=!0,-1!==this.Fn&&e&&e(this.Fn),-1!==this.Zn&&clearTimeout(this.Zn),a=0,b=this.Ci.length;a<b;a++)this.Ci[a](!0);else if(!a&&this.Kh){fa("[Construct 2] Resuming");this.Kh=!1;this.Rj=Xa();this.tf=
Xa();a=this.di=this.yj=0;for(b=this.Ci.length;a<b;a++)this.Ci[a](!1);this.Fa(!1)}};b.prototype.lt=function(a){this.Ci.push(a)};b.prototype.qe=function(a){return this.ek[a]};b.prototype.Wj=function(a){a&&a.project||ga("Project model unavailable");a=a.project;this.name=a[0];this.np=a[1];this.jc=a[12];this.pp=a[12];this.rb=a[10];this.qb=a[11];this.Nq=this.rb/2;this.Oq=this.qb/2;this.Va&&!this.gd&&(4<=a[12]||0===a[12])&&(fa("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.pp=this.jc=3);this.mo=a[18];this.Qe=a[19];if(0===this.Qe){var b=new Image;b.crossOrigin="anonymous";b.src="loading-logo.png";this.Pe={ak:b}}else if(4===this.Qe){b=new Image;b.src="";var e=new Image;e.src="";var g=new Image;g.src="";var c=new Image;c.src="";var h=new Image;h.src="";var k=new Image;k.src="";var m=new Image;m.src="";var n=new Image;n.src="";var d=new Image;d.src="";var l=new Image;l.src="";var v=new Image;v.src="";var p=new Image;p.src="";this.Pe={ak:[b,e,g,c],Zv:[h,k,m,n],Pw:[d,
l,v,p]}}this.fi=a[21];this.ek=nc();this.Ld=new Q(this);b=0;for(e=a[2].length;b<e;b++)m=a[2][b],g=this.qe(m[0]),pb(m,g.prototype),n=new g(this),n.Pk=m[1],n.Ne=m[2],n.sq=m[9],n.fa&&n.fa(),this.plugins.push(n);this.ek=nc();b=0;for(e=a[3].length;b<e;b++){m=a[3][b];h=this.qe(m[1]);n=null;g=0;for(c=this.plugins.length;g<c;g++)if(this.plugins[g]instanceof h){n=this.plugins[g];break}d=new n.La(n);d.name=m[0];d.D=m[2];d.Nm=m[3].slice(0);d.Ow=m[3].length;d.tt=m[4];d.Iu=m[5];d.Z=m[11];d.D?(d.tg=[],d.Wd=this.ph++,
d.Ia=null):(d.tg=null,d.Wd=-1,d.Ia=[]);d.sj=null;d.Zf=null;d.jp=null;d.uc=!1;d.rc=null;m[6]?(d.Fi=m[6][0],d.bl=m[6][1],d.Ff=m[6][2]):(d.Fi=null,d.bl=0,d.Ff=0);m[7]?d.hc=m[7]:d.hc=null;d.index=b;d.c=[];d.mj=[];d.We=[new qb(d)];d.Sd=0;d.Nc=null;d.Dt=0;d.Mg=!0;d.hl=rb;d.tp=sb;d.Ru=tb;d.ca=ub;d.oi=vb;d.zk=wb;d.Bf=xb;d.Aj=yb;d.mm=zb;d.pm=Ab;d.bd=Bb;d.rm=Cb;d.fj=new hb(this.rb,this.qb);d.Si=!0;d.Ti=!1;d.M={};d.toString=Db;d.Za=[];g=0;for(c=m[8].length;g<c;g++){l=m[8][g];v=this.qe(l[1]);p=null;h=0;for(k=
this.Za.length;h<k;h++)if(this.Za[h]instanceof v){p=this.Za[h];break}p||(p=new v(this),p.uq=[],p.dk=new ca,p.fa&&p.fa(),this.Za.push(p));-1===p.uq.indexOf(d)&&p.uq.push(d);h=new p.La(p,d);h.name=l[0];h.Z=l[2];h.fa();d.Za.push(h)}d.global=m[9];d.Sm=m[10];d.P=[];g=0;for(c=m[12].length;g<c;g++)d.P.push({id:m[12][g][0],name:m[12][g][1],gb:-1,nd:!1,Ma:!0,index:g});d.uy=m[13];this.mo&&!d.D&&!d.Sm&&n.Ne||d.fa();d.name&&(this.types[d.name]=d);this.q.push(d);n.Pk&&(g=new n.ya(d),g.uid=this.fi++,g.Uq=this.vq++,
g.of=0,g.yh=Eb,g.toString=Fb,g.I=m[14],g.fa(),d.c.push(g),this.ee[g.uid.toString()]=g)}b=0;for(e=a[4].length;b<e;b++)for(h=a[4][b],k=this.q[h[0]],g=1,c=h.length;g<c;g++)m=this.q[h[g]],m.Ia.push(k),k.tg.push(m);b=0;for(e=a[28].length;b<e;b++){h=a[28][b];k=[];g=0;for(c=h.length;g<c;g++)k.push(this.q[h[g]]);g=0;for(c=k.length;g<c;g++)k[g].uc=!0,k[g].rc=k}if(0<this.ph)for(b=0,e=this.q.length;b<e;b++)if(m=this.q[b],!m.D&&m.Ia.length){m.sj=Array(this.ph);m.Zf=Array(this.ph);m.jp=Array(this.ph);d=[];g=p=
v=l=0;for(c=m.Ia.length;g<c;g++)for(n=m.Ia[g],m.sj[n.Wd]=l,l+=n.Ow,m.Zf[n.Wd]=v,v+=n.tt,m.jp[n.Wd]=p,p+=n.Iu,h=0,k=n.P.length;h<k;h++)d.push(xa({},n.P[h]));m.P=d.concat(m.P);g=0;for(c=m.P.length;g<c;g++)m.P[g].index=g}b=0;for(e=a[5].length;b<e;b++)m=a[5][b],g=new Hb(this,m),this.bn[g.name]=g,this.kd.push(g);b=0;for(e=a[6].length;b<e;b++)m=a[6][b],g=new Ib(this,m),this.$l[g.name]=g,this.Vd.push(g);b=0;for(e=this.Vd.length;b<e;b++)this.Vd[b].Ya();b=0;for(e=this.Vd.length;b<e;b++)this.Vd[b].fo();b=0;
for(e=this.gl.length;b<e;b++)this.gl[b].Ya();z(this.gl);this.pt=a[7];this.uj=a[8];this.Hc=a[9];this.dh=1;this.$t=a[13];this.T=a[14];this.El=a[15];this.Mw=a[17];this.xn=a[20];this.qt=0<this.xn;this.Tv=a[22];this.Ac=this.Qr=a[23];this.Tt=a[24];this.$v=a[25];this.Ba=a[27]&&!this.Je;this.Uk=Date.now();z(this.ek);this.rv()};var h=!1;b.prototype.nl=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){h=a.Vo=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.gd?a.src=
b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(b){a.src=b},function(g){h=a.Vo=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",g)}):(a.crossOrigin="anonymous",a.src=b));this.Ug.push(a)};b.prototype.Fu=function(a){var b,g;b=0;for(g=this.Ug.length;b<g;b++)if(this.Ug[b].zt===a)return this.Ug[b];return null};var n=0,k=!1;b.prototype.kv=function(){this.Rf&&(n=this.Rf.ww(this.pt))};b.prototype.Qo=function(){var a=n,b=0,g=0,e=!0,c,h,g=0;
for(c=this.Ug.length;g<c;g++){h=this.Ug[g];var m=h.Rl;if(!m||0>=m)m=5E4;a+=m;h.src&&(h.complete||h.loaded)&&!h.Vo?b+=m:e=!1}e&&this.$v&&this.Rf&&(k||(this.Rf.Dw(),k=!0),g=this.Rf.Su(),b+=g,g<n&&(e=!1));this.Y=0==a?1:b/a;return e};var F=!1;b.prototype.go=function(){if(this.ra||this.n){var a=this.ra||this.zn;this.Hb&&this.Rq();this.Y=0;this.Up=-1;var b=this;if(this.Qo()&&(4!==this.Qe||F))this.lv();else{var g=Date.now()-this.Uk;if(a){var e=this.width,c=this.height,m=this.devicePixelRatio;if(3>this.Qe&&
(this.Rc||500<=g&&this.Up!=this.Y)){a.clearRect(0,0,e,c);var g=e/2,c=c/2,e=0===this.Qe&&this.Pe.ak.complete,k=40*m,n=0,d=80*m,l;if(e){var v=this.Pe.ak,d=v.width*m;l=v.height*m;k=d/2;n=l/2;a.drawImage(v,sa(g-k),sa(c-n),d,l)}1>=this.Qe?(g=sa(g-k)+.5,c=sa(c+(n+(e?12*m:0)))+.5,a.fillStyle=h?"red":"DodgerBlue",a.fillRect(g,c,Math.floor(d*this.Y),6*m),a.strokeStyle="black",a.strokeRect(g,c,d,6*m),a.strokeStyle="white",a.strokeRect(g-1*m,c-1*m,d+2*m,8*m)):2===this.Qe&&(a.font=this.gd?"12pt ArialMT":"12pt Arial",
a.fillStyle=h?"#f00":"#999",a.ty="middle",m=Math.round(100*this.Y)+"%",e=a.measureText?a.measureText(m):null,a.fillText(m,g-(e?e.width:0)/2,c));this.Up=this.Y}else if(4===this.Qe){this.Yt(a);w?w(function(){b.go()}):setTimeout(function(){b.go()},16);return}}setTimeout(function(){b.go()},this.Rc?10:100)}}};var v=-1,O="undefined"===typeof cr_is_preview?200:0,g=!0,m=!1,J=0,T=0,E="undefined"===typeof cr_is_preview?3E3:0,A=null,H=null,B=0;b.prototype.Yt=function(a){if(!F){for(var b=Math.ceil(this.width),
e=Math.ceil(this.height),c=this.Pe.ak,k=this.Pe.Zv,n=this.Pe.Pw,d=0;4>d;++d)if(!c[d].complete||!k[d].complete||!n[d].complete)return;0===B&&(v=Date.now());var d=Date.now(),l=!1,f=a,r,q;g||m?(a.clearRect(0,0,b,e),A&&A.width===b&&A.height===e||(A=document.createElement("canvas"),A.width=b,A.height=e,H=A.getContext("2d")),f=H,l=!0,g&&1===B&&(v=Date.now())):a.globalAlpha=1;f.fillStyle="#333333";f.fillRect(0,0,b,e);256<this.ih?(r=Fa(.22*e,105,.6*b),q=.25*r,f.drawImage(p(k,r),.5*b-r/2,.2*e-q/2,r,q),q=r=
Math.min(.395*e,.95*b),f.drawImage(p(c,r),.5*b-r/2,.485*e-q/2,r,q),r=Fa(.22*e,105,.6*b),q=.25*r,f.drawImage(p(n,r),.5*b-r/2,.868*e-q/2,r,q),f.fillStyle="#3C3C3C",r=b,q=Math.max(.005*e,2),f.fillRect(0,.8*e-q/2,r,q),f.fillStyle=h?"red":"#E0FF65",r=b*this.Y,f.fillRect(.5*b-r/2,.8*e-q/2,r,q)):(q=r=.55*e,f.drawImage(p(c,r),.5*b-r/2,.45*e-q/2,r,q),f.fillStyle="#3C3C3C",r=b,q=Math.max(.005*e,2),f.fillRect(0,.85*e-q/2,r,q),f.fillStyle=h?"red":"#E0FF65",r=b*this.Y,f.fillRect(.5*b-r/2,.85*e-q/2,r,q));l&&(g?
a.globalAlpha=0===B?0:Math.min((d-v)/300,1):m&&(a.globalAlpha=Math.max(1-(d-T)/300,0)),a.drawImage(A,0,0,b,e));g&&300<=d-v&&2<=B&&(g=!1,J=d);!g&&d-J>=E&&!m&&1<=this.Y&&(m=!0,T=d);if(m&&d-T>=300+O||"undefined"!==typeof cr_is_preview&&1<=this.Y&&500>Date.now()-v)F=!0,m=g=!1,this.Pe=H=A=null;++B}};b.prototype.lv=function(){this.Hb&&(this.canvas.parentNode.removeChild(this.Hb),this.Hb=this.zn=null);this.Uk=Date.now();this.tf=Xa();var a,b,e;if(this.mo)for(a=0,b=this.q.length;a<b;a++)e=this.q[a],e.D||e.Sm||
!e.ga.Ne||e.fa();else this.Oj=!1;a=0;for(b=this.kd.length;a<b;a++)this.kd[a].At();2<=this.jc&&(a=this.rb/this.qb,b=this.width/this.height,this.dh=2!==this.jc&&b>a||2===this.jc&&b<a?this.height/this.qb:this.width/this.rb);this.np?this.bn[this.np].Wn():this.kd[0].Wn();this.mo||(this.Yj=1,this.trigger(Q.prototype.k.xo,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.q.length;a<b;a++)e=this.q[a],e.Lv&&e.Lv();document.hidden||document.webkitHidden||
document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Fa(!1);this.Zb&&AppMobi.webview.execute("onGameReady();")};b.prototype.Fa=function(a,b,e){if(this.la){var g=Xa();if(e||!this.Kh||a){a||(w?this.Fn=w(this.Ar):this.Zn=setTimeout(this.Ar,this.gg?1:16));b=b||g;var c=this.jc;((e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Fc)||this.Jh)&&0<this.mf&&(c=this.mf);0<c&&(!this.Oh||window.self!==window.top)&&(c=window.innerHeight,
this.Sh===window.innerWidth&&this.Rh===c||this.setSize(f(),d()));this.Va||(e?(this.vj||(this.im=jQuery(this.canvas).css("margin")||"0",this.vj=!0),this.Fh||this.Ke||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.vj?(this.Fh||this.Ke||jQuery(this.canvas).css("margin",this.im),this.im="",this.vj=!1,0===this.jc&&this.setSize(Math.round(this.Bq/this.devicePixelRatio),
Math.round(this.Aq/this.devicePixelRatio),!0)):(this.Bq=this.width,this.Aq=this.height));this.Oj&&(e=this.Qo(),this.Yj=this.Y,e&&(this.Oj=!1,this.Y=1,this.trigger(Q.prototype.k.xo,null)));this.Fv(b);!this.qa&&!this.Rc||this.Vm||this.Bi||a||(this.qa=!1,this.n?this.Nb():this.Pc(),this.xi&&(this.canvas&&this.canvas.toDataURL&&(this.pr=this.canvas.toDataURL(this.xi[0],this.xi[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.pr),this.trigger(Q.prototype.k.us,null)),this.xi=null));this.my||(this.Gf++,
this.oh++,this.yj++);this.di+=Xa()-g}}};b.prototype.Fv=function(a){var b,e,g,c,h,m,k,n;1E3<=a-this.tf&&(this.tf+=1E3,1E3<=a-this.tf&&(this.tf=a),this.hm=this.yj,this.yj=0,this.Ql=this.di,this.di=0);0!==this.Rj&&(b=a-this.Rj,0>b&&(b=0),this.De=b/1E3,.5<this.De?this.De=0:this.De>1/this.rq&&(this.De=1/this.rq));this.Rj=a;this.Ud=this.De*this.Hf;this.bb.add(this.Ud);this.ne.add(this.De);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Jh)&&
!this.Fc;2<=this.jc||a&&0<this.mf?(b=this.rb/this.qb,e=this.width/this.height,g=this.jc,a&&0<this.mf&&(g=this.mf),this.dh=2!==g&&e>b||2===g&&e<b?this.height/this.qb:this.width/this.rb,this.la&&(this.la.On(this.la.scrollX),this.la.Pn(this.la.scrollY))):this.dh=this.Me?this.devicePixelRatio:1;this.Jb();this.hd++;this.Ld.mw();this.hd--;this.Jb();this.hd++;e=this.zq.le();a=0;for(b=e.length;a<b;a++)e[a].oy();a=0;for(b=this.q.length;a<b;a++)if(m=this.q[a],!m.D&&(m.Za.length||m.Ia.length))for(e=0,g=m.c.length;e<
g;e++)for(k=m.c[e],c=0,h=k.R.length;c<h;c++)k.R[c].Fa();a=0;for(b=this.q.length;a<b;a++)if(m=this.q[a],!m.D&&(m.Za.length||m.Ia.length))for(e=0,g=m.c.length;e<g;e++)for(k=m.c[e],c=0,h=k.R.length;c<h;c++)n=k.R[c],n.Yv&&n.Yv();e=this.qn.le();a=0;for(b=e.length;a<b;a++)e[a].Fa();this.hd--;this.mv();for(a=0;this.Nl&&10>a++;)this.hp(this.Nl);a=0;for(b=this.Vd.length;a<b;a++)this.Vd[a].Em=!1;this.la.kf&&this.la.kf.eb();z(this.Dk);this.an=!1;this.hd++;a=0;for(b=this.q.length;a<b;a++)if(m=this.q[a],!m.D&&
(m.Za.length||m.Ia.length))for(e=0,g=m.c.length;e<g;e++)for(k=m.c[e],c=0,h=k.R.length;c<h;c++)n=k.R[c],n.Gi&&n.Gi();e=this.rn.le();a=0;for(b=e.length;a<b;a++)e[a].Gi();this.hd--};b.prototype.hp=function(a){var b=this.la;this.la.Ew();var e,g,c,h,m,k,n;if(this.n)for(e=0,g=this.q.length;e<g;e++)m=this.q[e],m.D||!m.Ji||m.global&&0!==m.c.length||-1!==a.Dh.indexOf(m)||m.Ji();b==a&&z(this.Ld.pc);z(this.Dk);a.Wn();e=0;for(g=this.q.length;e<g;e++)if(m=this.q[e],m.global||m.ga.Pk)for(a=0,b=m.c.length;a<b;a++)if(k=
m.c[a],k.un&&k.un(),k.R)for(c=0,h=k.R.length;c<h;c++)n=k.R[c],n.un&&n.un();this.an=this.qa=!0;this.Jb()};b.prototype.Pg=function(a){this.qn.add(a)};b.prototype.Hw=function(a){this.rn.add(a)};b.prototype.uh=function(a){return a&&-1!==a.wg?this.De*a.wg:this.Ud};b.prototype.Pc=function(){this.la.Pc(this.ra);this.Zb&&this.ra.present()};b.prototype.Nb=function(){this.Ba&&(this.jf=1,this.la.hf(this.n));this.la.Nb(this.n);this.n.bw()};b.prototype.Cl=function(a){a&&this.pj.push(a)};b.prototype.gw=function(a){Ea(this.pj,
a)};b.prototype.wh=function(a){a=a.toString();return this.ee.hasOwnProperty(a)?this.ee[a]:null};var N=[];b.prototype.pe=function(a){var b,e;b=a.type.name;var g=null;if(this.gf.hasOwnProperty(b)){if(g=this.gf[b],g.contains(a))return}else g=N.length?N.pop():new ca,this.gf[b]=g;g.add(a);this.Ie=!0;if(a.uc)for(b=0,e=a.siblings.length;b<e;b++)this.pe(a.siblings[b]);this.Rm&&g.Sg.push(a);this.Qm||(this.hd++,this.trigger(Object.getPrototypeOf(a.type.ga).k.ws,a),this.hd--)};b.prototype.Jb=function(){if(this.Ie){var a,
b,e,g,c,h;this.Rm=!0;e=0;for(c=this.ed.length;e<c;++e)for(a=this.ed[e],b=a.type,b.c.push(a),g=0,h=b.Ia.length;g<h;++g)b.Ia[g].c.push(a),b.Ia[g].Mg=!0;z(this.ed);this.ns();Wa(this.gf);this.Ie=this.Rm=!1}};b.prototype.ns=function(){for(var a in this.gf)this.gf.hasOwnProperty(a)&&this.Vr(this.gf[a])};b.prototype.Vr=function(a){var b=a.le(),e=b[0].type,g,c,h,m,k,n;Ya(e.c,a);e.Mg=!0;0===e.c.length&&(e.Ti=!1);g=0;for(c=e.Ia.length;g<c;++g)n=e.Ia[g],Ya(n.c,a),n.Mg=!0;g=0;for(c=this.Ld.pc.length;g<c;++g)if(k=
this.Ld.pc[g],k.ec.hasOwnProperty(e.index)&&Ya(k.ec[e.index].Zd,a),!e.D)for(h=0,m=e.Ia.length;h<m;++h)n=e.Ia[h],k.ec.hasOwnProperty(n.index)&&Ya(k.ec[n.index].Zd,a);if(k=b[0].j){if(k.Kc)for(h=k.c,g=0,c=h.length;g<c;++g)m=h[g],a.contains(m)&&(m.Ga(),k.Ib.update(m,m.lc,null),m.lc.set(0,0,-1,-1));Ya(k.c,a);k.si(0)}for(g=0;g<b.length;++g)this.Ur(b[g],e);a.clear();N.push(a);this.qa=!0};b.prototype.Ur=function(a,b){var e,g,c;e=0;for(g=this.pj.length;e<g;++e)this.pj[e](a);a.Be&&b.fj.update(a,a.Be,null);
(e=a.j)&&e.Eg(a,!0);if(a.R)for(e=0,g=a.R.length;e<g;++e)c=a.R[e],c.zf&&c.zf(),c.behavior.dk.remove(a);this.zq.remove(a);this.qn.remove(a);this.rn.remove(a);a.zf&&a.zf();this.ee.hasOwnProperty(a.uid.toString())&&delete this.ee[a.uid.toString()];this.fk--;100>b.mj.length&&b.mj.push(a)};b.prototype.cp=function(a,b,e,g){if(a.D){var c=sa(Math.random()*a.tg.length);return this.cp(a.tg[c],b,e,g)}return a.Nc?this.Ce(a.Nc,b,!1,e,g,!1):null};var K=[];b.prototype.Ce=function(a,b,e,g,c,h){var m,k,n,d;if(!a)return null;
var l=this.q[a[1]],v=l.ga.Ne;if(this.Oj&&v&&!l.Sm||v&&!this.n&&11===a[0][11])return null;var p=b;v||(b=null);var f;l.mj.length?(f=l.mj.pop(),f.Ic=!0,l.ga.ya.call(f,l)):(f=new l.ga.ya(l),f.Ic=!1);!e||h||this.ee.hasOwnProperty(a[2].toString())?f.uid=this.fi++:f.uid=a[2];this.ee[f.uid.toString()]=f;f.Uq=this.vq++;f.of=l.c.length;m=0;for(k=this.ed.length;m<k;++m)this.ed[m].type===l&&f.of++;f.yh=Eb;f.toString=Fb;n=a[3];if(f.Ic)Wa(f.M);else{f.M={};if("undefined"!==typeof cr_is_preview)for(f.Gp=[],f.Gp.length=
n.length,m=0,k=n.length;m<k;m++)f.Gp[m]=n[m][1];f.nb=[];f.nb.length=n.length}m=0;for(k=n.length;m<k;m++)f.nb[m]=n[m][0];if(v){var J=a[0];f.x=ha(g)?J[0]:g;f.y=ha(c)?J[1]:c;f.z=J[2];f.width=J[3];f.height=J[4];f.depth=J[5];f.e=J[6];f.opacity=J[7];f.Xb=J[8];f.Yb=J[9];f.Kb=J[10];m=J[11];!this.n&&l.P.length&&(f.Kb=m);f.eh=jb(f.Kb);this.A&&kb(f,f.Kb,this.A);if(f.Ic){m=0;for(k=J[12].length;m<k;m++)for(n=0,d=J[12][m].length;n<d;n++)f.Oa[m][n]=J[12][m][n];f.Na.set(0,0,0,0);f.Be.set(0,0,-1,-1);f.lc.set(0,0,
-1,-1);f.ic.Jg(f.Na);z(f.Hl)}else{f.Oa=J[12].slice(0);m=0;for(k=f.Oa.length;m<k;m++)f.Oa[m]=J[12][m].slice(0);f.ja=[];f.re=[];f.re.length=l.P.length;f.Na=new va(0,0,0,0);f.Be=new va(0,0,-1,-1);f.lc=new va(0,0,-1,-1);f.ic=new wa;f.Hl=[];f.Qa=Jb;f.mt=Kb;f.Wb=Lb;f.Ga=Mb;f.Mr=Nb;f.lo=Ob;f.Bd=Pb}f.Hi=!1;f.Kw=0;f.Jw=0;f.Iw=null;14===J.length&&(f.Hi=!0,f.Kw=J[13][0],f.Jw=J[13][1],f.Iw=J[13][2]);m=0;for(k=l.P.length;m<k;m++)f.re[m]=!0;f.ie=!0;f.td=Qb;f.td();f.Nr=!!f.ja.length;f.Yi=!0;f.Kl=!0;l.Si=!0;f.visible=
!0;f.wg=-1;f.j=b;f.vd=b.c.length;f.jf=0;"undefined"===typeof f.na&&(f.na=null);this.qa=f.ef=!0}var r;z(K);m=0;for(k=l.Ia.length;m<k;m++)K.push.apply(K,l.Ia[m].Za);K.push.apply(K,l.Za);if(f.Ic)for(m=0,k=K.length;m<k;m++){var F=K[m];r=f.R[m];r.Ic=!0;F.behavior.ya.call(r,F,f);J=a[4][m];n=0;for(d=J.length;n<d;n++)r.I[n]=J[n];r.fa();F.behavior.dk.add(f)}else for(f.R=[],m=0,k=K.length;m<k;m++)F=K[m],r=new F.behavior.ya(F,f),r.Ic=!1,r.I=a[4][m].slice(0),r.fa(),f.R.push(r),F.behavior.dk.add(f);J=a[5];if(f.Ic)for(m=
0,k=J.length;m<k;m++)f.I[m]=J[m];else f.I=J.slice(0);this.ed.push(f);this.Ie=!0;b&&(b.bh(f,!0),1!==b.Tc||1!==b.Uc)&&(l.Ti=!0);this.fk++;if(l.uc){if(f.uc=!0,f.Ic?z(f.siblings):f.siblings=[],!e&&!h){m=0;for(k=l.rc.length;m<k;m++)if(l.rc[m]!==l){if(!l.rc[m].Nc)return null;f.siblings.push(this.Ce(l.rc[m].Nc,p,!1,v?f.x:g,v?f.y:c,!0))}m=0;for(k=f.siblings.length;m<k;m++)for(f.siblings[m].siblings.push(f),n=0;n<k;n++)m!==n&&f.siblings[m].siblings.push(f.siblings[n])}}else f.uc=!1,f.siblings=null;f.fa();
m=0;for(k=f.R.length;m<k;m++)f.R[m].Xv&&f.R[m].Xv();return f};b.prototype.um=function(a){var b,e;b=0;for(e=this.la.S.length;b<e;b++){var g=this.la.S[b];if(mb(g.name,a))return g}return null};b.prototype.vh=function(a){a=sa(a);0>a&&(a=0);a>=this.la.S.length&&(a=this.la.S.length-1);return this.la.S[a]};b.prototype.Ol=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].ca().ta=!0};b.prototype.oi=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].oi()};b.prototype.zk=function(a){var b,e;b=0;for(e=a.length;b<
e;b++)a[b].zk()};b.prototype.Bf=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].Bf()};b.prototype.Jr=function(a){if(a.Si){var b,e,g=a.c;b=0;for(e=g.length;b<e;++b)g[b].lo();g=this.ed;b=0;for(e=g.length;b<e;++b)g[b].type===a&&g[b].lo();a.Si=!1}};b.prototype.Mu=function(a,b,e,g){var c,h,m=a?1!==a.Tc||1!==a.Uc:!1;if(b.D)for(a=0,c=b.tg.length;a<c;++a)h=b.tg[a],m||h.Ti?Ca(g,h.c):(this.Jr(h),h.fj.Bk(e,g));else m||b.Ti?Ca(g,b.c):(this.Jr(b),b.fj.Bk(e,g))};b.prototype.$k=function(a,b,e){var g=a.ca(),
c,h,m,k,n,d;if(g.ta)for(g.ta=!1,z(g.c),c=0,k=a.c.length;c<k;c++)m=a.c[c],m.Ga(),n=m.j.Vb(b,e,!0),d=m.j.Vb(b,e,!1),m.Wb(n,d)&&g.c.push(m);else{c=h=0;for(k=g.c.length;c<k;c++)m=g.c[c],m.Ga(),n=m.j.Vb(b,e,!0),d=m.j.Vb(b,e,!1),m.Wb(n,d)&&(g.c[h]=g.c[c],h++);g.c.length=h}a.bd();return g.Dm()};b.prototype.Gw=function(a,b){if(!(a&&b&&a!==b&&a.ef&&b.ef))return!1;a.Ga();b.Ga();var e=a.j,g=b.j,c,h,m,k,n,d,l,f;if(e===g||e.Tc===g.Tc&&g.Uc===g.Uc&&e.scale===g.scale&&e.e===g.e&&e.wd===g.wd){if(!a.Na.sv(b.Na)||
!a.ic.Hp(b.ic)||a.Hi&&b.Hi)return!1;if(a.Hi)return this.ur(a,b);if(b.Hi)return this.ur(b,a);l=a.na&&!a.na.jg();c=b.na&&!b.na.jg();if(!l&&!c)return!0;l?(a.na.Sf(a.width,a.height,a.e),l=a.na):(this.rd.Ig(a.ic,a.x,a.y,a.width,a.height),l=this.rd);c?(b.na.Sf(b.width,b.height,b.e),f=b.na):(this.rd.Ig(b.ic,b.x,b.y,b.width,b.height),f=this.rd);return l.Eh(f,b.x-a.x,b.y-a.y)}l=a.na&&!a.na.jg();c=b.na&&!b.na.jg();l?(a.na.Sf(a.width,a.height,a.e),this.rd.ir(a.na)):this.rd.Ig(a.ic,a.x,a.y,a.width,a.height);
l=this.rd;c?(b.na.Sf(b.width,b.height,b.e),this.Yn.ir(b.na)):this.Yn.Ig(b.ic,b.x,b.y,b.width,b.height);f=this.Yn;c=0;for(h=l.od;c<h;c++)m=2*c,k=m+1,n=l.tb[m],d=l.tb[k],l.tb[m]=e.$b(n+a.x,d+a.y,!0),l.tb[k]=e.$b(n+a.x,d+a.y,!1);l.Ga();c=0;for(h=f.od;c<h;c++)m=2*c,k=m+1,n=f.tb[m],d=f.tb[k],f.tb[m]=g.$b(n+b.x,d+b.y,!0),f.tb[k]=g.$b(n+b.x,d+b.y,!1);f.Ga();return l.Eh(f,0,0)};var S=new wa;new va(0,0,0,0);var I=[];b.prototype.ur=function(a,b){var e,g,c,h,m=b.Na,k=a.x,n=a.y;a.ky(m,I);var d=b.na&&!b.na.jg();
e=0;for(g=I.length;e<g;++e)if(c=I[e],h=c.qy,m.tv(h,k,n)&&(S.Jg(h),S.offset(k,n),S.Hp(b.ic)))if(d)if(b.na.Sf(b.width,b.height,b.e),c.Cn){if(c.Cn.Eh(b.na,b.x-(k+h.left),b.y-(n+h.top)))return z(I),!0}else{if(this.rd.Ig(S,0,0,h.right-h.left,h.bottom-h.top),this.rd.Eh(b.na,b.x,b.y))return z(I),!0}else if(c.Cn){if(this.rd.Ig(b.ic,0,0,b.width,b.height),c.Cn.Eh(this.rd,-(k+h.left),-(n+h.top)))return z(I),!0}else return z(I),!0;z(I);return!1};b.prototype.Fr=function(a,b){if(!b)return!1;var e,g,c,h,m;e=0;for(g=
a.Za.length;e<g;e++)if(a.Za[e].behavior instanceof b)return!0;if(!a.D)for(e=0,g=a.Ia.length;e<g;e++)for(m=a.Ia[e],c=0,h=m.Za.length;c<h;c++)if(m.Za[c].behavior instanceof b)return!0;return!1};b.prototype.co=function(a){return this.Fr(a,fc.xx)};b.prototype.eo=function(a){return this.Fr(a,fc.yx)};b.prototype.xt=function(a,b){var e,g,c;e=0;for(g=this.Dk.length;e<g;e++)if(c=this.Dk[e],c[0]==a&&c[1]==b||c[0]==b&&c[1]==a)return!0;return!1};var x=-1;b.prototype.trigger=function(a,b,e){if(!this.la)return!1;
var g=this.la.kf;if(!g)return!1;var c=!1,h,m,k;x++;var n=g.Vl;m=0;for(k=n.length;m<k;++m)h=this.Cr(a,b,n[m],e),c=c||h;h=this.Cr(a,b,g,e);x--;return c||h};b.prototype.Cr=function(a,b,e,g){var c=!1,h,m,k,n;if(b)for(k=this.ao(a,b,b.type.name,e,g),c=c||k,n=b.type.Ia,h=0,m=n.length;h<m;++h)k=this.ao(a,b,n[h].name,e,g),c=c||k;else k=this.ao(a,b,"system",e,g),c=c||k;return c};b.prototype.ao=function(a,b,e,g,c){var h,m=!1,k=!1,k="undefined"!==typeof c,n=(k?g.lp:g.Dr)[e];if(!n)return m;var d=null;g=0;for(h=
n.length;g<h;++g)if(n[g].method==a){d=n[g].nh;break}if(!d)return m;var l;k?l=d[c]:l=d;if(!l)return null;g=0;for(h=l.length;g<h;g++)a=l[g][0],c=l[g][1],k=this.Eu(b,e,a,c),m=m||k;return m};b.prototype.Eu=function(a,b,e,g){var c,h,m=!1;this.bo++;var k=this.Pb().tc;k&&this.oi(k.Ve);var n=1<this.bo;this.oi(e.Ve);n&&this.ew();var d=this.Ak(e);d.tc=e;a&&(c=this.types[b].ca(),c.ta=!1,z(c.c),c.c[0]=a,this.types[b].bd());a=!0;if(e.parent){b=d.tr;for(c=e.parent;c;)b.push(c),c=c.parent;b.reverse();c=0;for(h=
b.length;c<h;c++)if(!b[c].ow()){a=!1;break}}a&&(this.oh++,e.ld?e.nw(g):e.eb(),m=m||d.sf);this.vk();n&&this.Wv();this.Bf(e.Ve);k&&this.Bf(k.Ve);this.Ie&&0===this.hd&&0===x&&!this.Tm&&this.Jb();this.bo--;return m};b.prototype.sh=function(){var a=this.Pb();return a.tc.yb[a.xb]};b.prototype.ew=function(){this.$j++;this.$j>=this.gn.length&&this.gn.push([])};b.prototype.Wv=function(){this.$j--};b.prototype.rp=function(){return this.gn[this.$j]};b.prototype.Ak=function(a){this.rj++;this.rj>=this.Zl.length&&
this.Zl.push(new Rb);var b=this.Pb();b.reset(a);return b};b.prototype.vk=function(){this.rj--};b.prototype.Pb=function(){return this.Zl[this.rj]};b.prototype.sp=function(a,b){for(var e,g,c,h,m,k;b;){e=0;for(g=b.Wc.length;e<g;e++)if(k=b.Wc[e],k instanceof Sb&&mb(a,k.name))return k;b=b.parent}e=0;for(g=this.Vd.length;e<g;e++)for(m=this.Vd[e],c=0,h=m.Fe.length;c<h;c++)if(k=m.Fe[c],k instanceof Sb&&mb(a,k.name))return k;return null};b.prototype.up=function(a){var b,e;b=0;for(e=this.kd.length;b<e;b++)if(this.kd[b].Z===
a)return this.kd[b];return null};b.prototype.Cj=function(a){var b,e;b=0;for(e=this.q.length;b<e;b++)if(this.q[b].Z===a)return this.q[b];return null};b.prototype.Nu=function(a){var b,e;b=0;for(e=this.Qf.length;b<e;b++)if(this.Qf[b].Z===a)return this.Qf[b];return null};b.prototype.Et=function(a,b){this.xi=[a,b];this.qa=!0};b.prototype.mv=function(){var b=this,e=this.Nn,g=this.ae,h=this.Uj,m=!1;this.nr&&(m=!0,e="__c2_continuouspreview",this.nr=!1);if(e.length){this.Jb();g=this.sw();if(window.indexedDB&&
!this.Rc)q(e,g,function(){fa("Saved state to IndexedDB storage ("+g.length+" bytes)");b.ae=g;b.trigger(Q.prototype.k.yl,null);b.ae="";m&&a()},function(c){try{localStorage.setItem("__c2save_"+e,g),fa("Saved state to WebStorage ("+g.length+" bytes)"),b.ae=g,b.trigger(Q.prototype.k.yl,null),b.ae="",m&&a()}catch(h){fa("Failed to save game state: "+c+"; "+h)}});else try{localStorage.setItem("__c2save_"+e,g),fa("Saved state to WebStorage ("+g.length+" bytes)"),b.ae=g,this.trigger(Q.prototype.k.yl,null),
b.ae="",m&&a()}catch(k){fa("Error saving to WebStorage: "+k)}this.Rb=this.Uj=this.Nn=""}if(h.length){if(window.indexedDB&&!this.Rc)c(h,function(a){a?(b.Rb=a,fa("Loaded state from IndexedDB storage ("+b.Rb.length+" bytes)")):(b.Rb=localStorage.getItem("__c2save_"+h)||"",fa("Loaded state from WebStorage ("+b.Rb.length+" bytes)"));b.Bi=!1;b.Rb.length||b.trigger(Q.prototype.k.xl,null)},function(){b.Rb=localStorage.getItem("__c2save_"+h)||"";fa("Loaded state from WebStorage ("+b.Rb.length+" bytes)");b.Bi=
!1;b.Rb.length||b.trigger(Q.prototype.k.xl,null)});else{try{this.Rb=localStorage.getItem("__c2save_"+h)||"",fa("Loaded state from WebStorage ("+this.Rb.length+" bytes)")}catch(n){this.Rb=""}this.Bi=!1;b.Rb.length||b.trigger(Q.prototype.k.xl,null)}this.Nn=this.Uj=""}this.Rb.length&&(this.Jb(),this.Ev(this.Rb),this.ae=this.Rb,this.trigger(Q.prototype.k.Ds,null),this.Rb=this.ae="")};b.prototype.sw=function(){var a,b,e,g,c,h,m,k={c2save:!0,version:1,rt:{time:this.bb.W,walltime:this.ne.W,timescale:this.Hf,
tickcount:this.Gf,execcount:this.oh,next_uid:this.fi,running_layout:this.la.Z,start_time_offset:Date.now()-this.Uk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(b=this.q.length;a<b;a++)if(c=this.q[a],!c.D&&!this.co(c)){h={instances:[]};Va(c.M)&&(h.ex=r(c.M));e=0;for(g=c.c.length;e<g;e++)h.instances.push(this.Mn(c.c[e]));k.types[c.Z.toString()]=h}a=0;for(b=this.kd.length;a<b;a++)e=this.kd[a],k.layouts[e.Z.toString()]=e.fb();g=k.events.groups;a=0;for(b=this.Qf.length;a<b;a++)e=
this.Qf[a],g[e.Z.toString()]=this.Ah[e.zh].bg;b=k.events.cnds;for(m in this.Vf)this.Vf.hasOwnProperty(m)&&(a=this.Vf[m],Va(a.M)&&(b[m]={ex:r(a.M)}));b=k.events.acts;for(m in this.Pf)this.Pf.hasOwnProperty(m)&&(a=this.Pf[m],Va(a.M)&&(b[m]={ex:a.M}));b=k.events.vars;for(m in this.Tg)this.Tg.hasOwnProperty(m)&&(a=this.Tg[m],a.Mj||a.parent&&!a.Nh||(b[m]=a.data));k.system=this.Ld.fb();return JSON.stringify(k)};b.prototype.Wq=function(){var a,b,e,g,c,h;this.ee={};a=0;for(b=this.q.length;a<b;a++)if(e=this.q[a],
!e.D)for(g=0,c=e.c.length;g<c;g++)h=e.c[g],this.ee[h.uid.toString()]=h};b.prototype.Ev=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){this.Lj=!0;var b=a.rt;this.bb.reset();this.bb.W=b.time;this.ne.reset();this.ne.W=b.walltime||0;this.Hf=b.timescale;this.Gf=b.tickcount;this.oh=b.execcount;this.Uk=Date.now()-b.start_time_offset;var e=b.running_layout;if(e!==this.la.Z)if(e=this.up(e))this.hp(e);else return;var g,c,h,m,k,n,d;n=a.types;for(c in n)if(n.hasOwnProperty(c)&&(m=this.Cj(parseInt(c,
10)))&&!m.D&&!this.co(m)){n[c].ex?m.M=n[c].ex:Wa(m.M);k=m.c;h=n[c].instances;e=0;for(g=qa(k.length,h.length);e<g;e++)this.Vj(k[e],h[e]);e=h.length;for(g=k.length;e<g;e++)this.pe(k[e]);e=k.length;for(g=h.length;e<g;e++){k=null;if(m.ga.Ne&&(k=this.la.Bj(h[e].w.l),!k))continue;k=this.Ce(m.Nc,k,!1,0,0,!0);this.Vj(k,h[e])}m.Mg=!0}this.Jb();this.Wq();g=a.layouts;for(c in g)g.hasOwnProperty(c)&&(e=this.up(parseInt(c,10)))&&e.Ab(g[c]);g=a.events.groups;for(c in g)g.hasOwnProperty(c)&&(e=this.Nu(parseInt(c,
10)))&&this.Ah[e.zh]&&this.Ah[e.zh].vw(g[c]);e=a.events.cnds;for(c in e)e.hasOwnProperty(c)&&this.Vf.hasOwnProperty(c)&&(this.Vf[c].M=e[c].ex);e=a.events.acts;for(c in e)e.hasOwnProperty(c)&&this.Pf.hasOwnProperty(c)&&(this.Pf[c].M=e[c].ex);e=a.events.vars;for(c in e)e.hasOwnProperty(c)&&this.Tg.hasOwnProperty(c)&&(this.Tg[c].data=e[c]);this.fi=b.next_uid;this.Lj=!1;this.Ld.Ab(a.system);e=0;for(g=this.q.length;e<g;e++)if(m=this.q[e],!m.D&&!this.co(m))for(c=0,a=m.c.length;c<a;c++){k=m.c[c];if(m.uc)for(n=
k.yh(),z(k.siblings),b=0,h=m.rc.length;b<h;b++)d=m.rc[b],m!==d&&k.siblings.push(d.c[n]);k.xd&&k.xd();if(k.R)for(b=0,h=k.R.length;b<h;b++)n=k.R[b],n.xd&&n.xd()}this.qa=!0}};b.prototype.Mn=function(a,b){var e,g,c,h,m;h=a.type;c=h.ga;var k={};b?k.c2=!0:k.uid=a.uid;Va(a.M)&&(k.ex=r(a.M));if(a.nb&&a.nb.length)for(k.ivs={},e=0,g=a.nb.length;e<g;e++)k.ivs[a.type.Nm[e].toString()]=a.nb[e];if(c.Ne){c={x:a.x,y:a.y,w:a.width,h:a.height,l:a.j.Z,zi:a.Bd()};0!==a.e&&(c.a=a.e);1!==a.opacity&&(c.o=a.opacity);.5!==
a.Xb&&(c.hX=a.Xb);.5!==a.Yb&&(c.hY=a.Yb);0!==a.Kb&&(c.bm=a.Kb);a.visible||(c.v=a.visible);a.ef||(c.ce=a.ef);-1!==a.wg&&(c.mts=a.wg);if(h.P.length)for(c.fx=[],e=0,g=h.P.length;e<g;e++)m=h.P[e],c.fx.push({name:m.name,active:a.re[m.index],params:a.Oa[m.index]});k.w=c}if(a.R&&a.R.length)for(k.behs={},e=0,g=a.R.length;e<g;e++)h=a.R[e],h.fb&&(k.behs[h.type.Z.toString()]=h.fb());a.fb&&(k.data=a.fb());return k};b.prototype.Pu=function(a,b){var e,g;e=0;for(g=a.Nm.length;e<g;e++)if(a.Nm[e]===b)return e;return-1};
b.prototype.Lu=function(a,b){var e,g;e=0;for(g=a.R.length;e<g;e++)if(a.R[e].type.Z===b)return e;return-1};b.prototype.Vj=function(a,b,e){var g,c,h,m,k;k=a.type;m=k.ga;if(e){if(!b.c2)return}else a.uid=b.uid;b.ex?a.M=b.ex:Wa(a.M);if(c=b.ivs)for(g in c)c.hasOwnProperty(g)&&(h=this.Pu(k,parseInt(g,10)),0>h||h>=a.nb.length||(a.nb[h]=c[g]));if(m.Ne){h=b.w;a.j.Z!==h.l&&(c=a.j,a.j=this.la.Bj(h.l),a.j?(c.Eg(a,!0),a.j.bh(a,!0),a.Qa(),a.j.si(0)):(a.j=c,e||this.pe(a)));a.x=h.x;a.y=h.y;a.width=h.w;a.height=h.h;
a.vd=h.zi;a.e=h.hasOwnProperty("a")?h.a:0;a.opacity=h.hasOwnProperty("o")?h.o:1;a.Xb=h.hasOwnProperty("hX")?h.hX:.5;a.Yb=h.hasOwnProperty("hY")?h.hY:.5;a.visible=h.hasOwnProperty("v")?h.v:!0;a.ef=h.hasOwnProperty("ce")?h.ce:!0;a.wg=h.hasOwnProperty("mts")?h.mts:-1;a.Kb=h.hasOwnProperty("bm")?h.bm:0;a.eh=jb(a.Kb);this.A&&kb(a,a.Kb,this.A);a.Qa();if(h.hasOwnProperty("fx"))for(e=0,c=h.fx.length;e<c;e++)m=k.pm(h.fx[e].name),0>m||(a.re[m]=h.fx[e].active,a.Oa[m]=h.fx[e].params);a.td()}if(k=b.behs)for(g in k)k.hasOwnProperty(g)&&
(e=this.Lu(a,parseInt(g,10)),0>e||a.R[e].Ab(k[g]));b.data&&a.Ab(b.data)};Tb=function(a){return new b(document.getElementById(a))};Ub=function(a,e){return new b({dc:!0,width:a,height:e})};window.cr_createRuntime=Tb;window.cr_createDCRuntime=Ub;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.we=!0;document.body.appendChild(a);a=new b(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 b(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(f,d){var b=window.cr_getC2Runtime();b&&b.Et(f,d)};
window.cr_sizeCanvas=function(f,d){if(0!==f&&0!==d){var b=window.cr_getC2Runtime();b&&b.setSize(f,d)}};window.cr_setSuspended=function(f){var d=window.cr_getC2Runtime();d&&d.setSuspended(f)};
(function(){function f(a,b){this.b=a;this.kf=null;this.scrollX=this.b.rb/2;this.scrollY=this.b.qb/2;this.scale=1;this.e=0;this.$f=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Gr=b[3];this.lr=b[4];this.Z=b[5];var c=b[6],k,d;this.S=[];this.Dh=[];k=0;for(d=c.length;k<d;k++){var l=new Vb(this,c[k]);l.xq=k;this.S.push(l)}c=b[7];this.pf=[];k=0;for(d=c.length;k<d;k++){var l=c[k],f=this.b.q[l[1]];f.Nc||(f.Nc=l);this.pf.push(l);-1===this.Dh.indexOf(f)&&this.Dh.push(f)}this.P=[];this.ja=[];this.ie=
!0;this.Oa=[];k=0;for(d=b[8].length;k<d;k++)this.P.push({id:b[8][k][0],name:b[8][k][1],gb:-1,nd:!1,Ma:!0,index:k}),this.Oa.push(b[8][k][2].slice(0));this.td();this.pi=new va(0,0,1,1);this.Gn=new va(0,0,1,1);this.Se={}}function d(a,b){return a.vd-b.vd}function b(a,b){this.pb=a;this.b=a.b;this.c=[];this.scale=1;this.e=0;this.Td=!1;this.ke=new va(0,0,0,0);this.Br=new wa;this.Da=this.xa=this.Ea=this.wa=0;this.If=!1;this.oe=-1;this.Pl=0;this.name=b[0];this.index=b[1];this.Z=b[2];this.visible=b[3];this.cd=
b[4];this.sd=b[5];this.Tc=b[6];this.Uc=b[7];this.opacity=b[8];this.xj=b[9];this.Kc=b[10];this.wd=b[11];this.Kb=b[12];this.Zt=b[13];this.eh="source-over";this.Mb=this.Tb=0;this.Ib=null;this.be=p();this.qd=!0;this.qg=new va(0,0,-1,-1);this.Db=new va(0,0,-1,-1);this.Kc&&(this.Ib=new ib(this.b.rb,this.b.qb));this.Id=!1;var c=b[14],k,d;this.rr=[];this.Ec=[];this.hh=[];k=0;for(d=c.length;k<d;k++){var l=c[k],f=this.b.q[l[1]];f.Nc||(f.Nc=l,f.Dt=this.index);this.Ec.push(l);-1===this.pb.Dh.indexOf(f)&&this.pb.Dh.push(f)}Ba(this.rr,
this.Ec);this.P=[];this.ja=[];this.ie=!0;this.Oa=[];k=0;for(d=b[15].length;k<d;k++)this.P.push({id:b[15][k][0],name:b[15][k][1],gb:-1,nd:!1,Ma:!0,index:k}),this.Oa.push(b[15][k][2].slice(0));this.td();this.pi=new va(0,0,1,1);this.Gn=new va(0,0,1,1)}function p(){return a.length?a.pop():[]}function l(b){z(b);a.push(b)}f.prototype.rw=function(a){var b=a.type.Z.toString();this.Se.hasOwnProperty(b)||(this.Se[b]=[]);this.Se[b].push(this.b.Mn(a))};f.prototype.zp=function(){var a=this.S[0];return!a.sd&&1===
a.opacity&&!a.xj&&a.visible};f.prototype.td=function(){z(this.ja);this.ie=!0;var a,b,c;a=0;for(b=this.P.length;a<b;a++)c=this.P[a],c.Ma&&(this.ja.push(c),c.nd||(this.ie=!1))};f.prototype.om=function(a){var b,c,k;b=0;for(c=this.P.length;b<c;b++)if(k=this.P[b],k.name===a)return k;return null};var q=[],c=!0;f.prototype.Wn=function(){this.lr&&(this.kf=this.b.$l[this.lr],this.kf.fo());this.b.la=this;this.scrollX=this.b.rb/2;this.scrollY=this.b.qb/2;var a,b,n,k,l,f,p;a=0;for(n=this.b.q.length;a<n;a++)if(b=
this.b.q[a],!b.D)for(l=b.c,b=0,k=l.length;b<k;b++)if(f=l[b],f.j){var g=f.j.xq;g>=this.S.length&&(g=this.S.length-1);f.j=this.S[g];-1===f.j.c.indexOf(f)&&f.j.c.push(f);f.j.If=!0}if(!c)for(a=0,n=this.S.length;a<n;++a)this.S[a].c.sort(d);z(q);this.To();a=0;for(n=this.S.length;a<n;a++)f=this.S[a],f.Bt(),f.jl();l=!1;if(!this.$f){for(p in this.Se)if(this.Se.hasOwnProperty(p)&&(b=this.b.Cj(parseInt(p,10)))&&!b.D&&this.b.eo(b)){k=this.Se[p];a=0;for(n=k.length;a<n;a++){f=null;if(b.ga.Ne&&(f=this.Bj(k[a].w.l),
!f))continue;f=this.b.Ce(b.Nc,f,!1,0,0,!0);this.b.Vj(f,k[a]);l=!0;q.push(f)}z(k)}a=0;for(n=this.S.length;a<n;a++)this.S[a].c.sort(d),this.S[a].If=!0}l&&(this.b.Jb(),this.b.Wq());for(a=0;a<q.length;a++)if(f=q[a],f.type.uc)for(n=f.yh(),b=0,k=f.type.rc.length;b<k;b++)p=f.type.rc[b],f.type!==p&&(p.c.length>n?f.siblings.push(p.c[n]):p.Nc&&(l=this.b.Ce(p.Nc,f.j,!0,f.x,f.y,!0),this.b.Jb(),p.hl(),f.siblings.push(l),q.push(l)));a=0;for(n=this.pf.length;a<n;a++)this.b.Ce(this.pf[a],null,!0);this.b.Nl=null;
this.b.Jb();if(this.b.ra&&!this.b.Va)for(a=0,n=this.b.q.length;a<n;a++)p=this.b.q[a],!p.D&&p.c.length&&p.mi&&p.mi(this.b.ra);a=0;for(n=q.length;a<n;a++)f=q[a],this.b.trigger(Object.getPrototypeOf(f.type.ga).k.wl,f);z(q);this.b.Lj||this.b.trigger(Q.prototype.k.wo,null);this.$f=!1};f.prototype.At=function(){var a,b,c,k,d;b=a=0;for(c=this.pf.length;a<c;a++)k=this.pf[a],d=this.b.q[k[1]],d.global?d.uc||this.b.Ce(k,null,!0):(this.pf[b]=k,b++);za(this.pf,b)};f.prototype.Ew=function(){this.b.Lj||this.b.trigger(Q.prototype.k.Cs,
null);this.b.Qm=!0;z(this.b.Ld.pc);var a,b,n,k,d,l;if(!this.$f)for(a=0,b=this.S.length;a<b;a++)for(this.S[a].ko(),d=this.S[a].c,n=0,k=d.length;n<k;n++)l=d[n],l.type.global||this.b.eo(l.type)&&this.rw(l);a=0;for(b=this.S.length;a<b;a++){d=this.S[a].c;n=0;for(k=d.length;n<k;n++)l=d[n],l.type.global||this.b.pe(l);this.b.Jb();z(d);this.S[a].If=!0}a=0;for(b=this.b.q.length;a<b;a++)if(d=this.b.q[a],!(d.global||d.ga.Ne||d.ga.Pk||d.D)){n=0;for(k=d.c.length;n<k;n++)this.b.pe(d.c[n]);this.b.Jb()}c=!1;this.b.Qm=
!1};new va(0,0,0,0);f.prototype.Pc=function(a){var b,c=a,k=!1,d=!this.b.Ac;d&&(this.b.Tj||(this.b.Tj=document.createElement("canvas"),b=this.b.Tj,b.width=this.b.K,b.height=this.b.J,this.b.Wp=b.getContext("2d"),k=!0),b=this.b.Tj,c=this.b.Wp,b.width!==this.b.K&&(b.width=this.b.K,k=!0),b.height!==this.b.J&&(b.height=this.b.J,k=!0),k&&(c.webkitImageSmoothingEnabled=this.b.T,c.mozImageSmoothingEnabled=this.b.T,c.msImageSmoothingEnabled=this.b.T,c.imageSmoothingEnabled=this.b.T));c.globalAlpha=1;c.globalCompositeOperation=
"source-over";this.b.El&&!this.zp()&&c.clearRect(0,0,this.b.K,this.b.J);var l,f,k=0;for(l=this.S.length;k<l;k++)f=this.S[k],f.visible&&0<f.opacity&&11!==f.Kb&&(f.c.length||!f.sd)?f.Pc(c):f.jl();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};f.prototype.hf=function(a){a.cr(!0);this.b.cb||(this.b.cb=a.Mc(this.b.K,this.b.J,this.b.T));if(this.b.cb.df!==this.b.K||this.b.cb.cf!==this.b.J)a.deleteTexture(this.b.cb),this.b.cb=a.Mc(this.b.K,this.b.J,this.b.T);a.Vc(this.b.cb);this.b.Ac||a.Cf(this.b.K,this.b.J);
var b,c;for(b=this.S.length-1;0<=b;--b)c=this.S[b],c.visible&&1===c.opacity&&c.ie&&0===c.Kb&&(c.c.length||!c.sd)?c.hf(a):c.jl();a.cr(!1)};f.prototype.Nb=function(a){var b=0<this.ja.length||this.b.Rg||!this.b.Ac||this.b.Ba;if(b){this.b.cb||(this.b.cb=a.Mc(this.b.K,this.b.J,this.b.T));if(this.b.cb.df!==this.b.K||this.b.cb.cf!==this.b.J)a.deleteTexture(this.b.cb),this.b.cb=a.Mc(this.b.K,this.b.J,this.b.T);a.Vc(this.b.cb);this.b.Ac||a.Cf(this.b.K,this.b.J)}else this.b.cb&&(a.Vc(null),a.deleteTexture(this.b.cb),
this.b.cb=null);this.b.El&&!this.zp()&&a.clear(0,0,0,0);var c,k,d;c=0;for(k=this.S.length;c<k;c++)d=this.S[c],d.visible&&0<d.opacity&&(d.c.length||!d.sd)?d.Nb(a):d.jl();b&&(0===this.ja.length||1===this.ja.length&&this.b.Ac?(1===this.ja.length?(b=this.ja[0].index,a.oc(this.ja[0].gb),a.Hg(null,1/this.b.K,1/this.b.J,0,0,1,1,this.scale,this.e,0,0,this.b.K/2,this.b.J/2,this.b.bb.W,this.Oa[b]),a.yk(this.ja[0].gb)&&(this.b.qa=!0)):a.oc(0),this.b.Ac||a.Cf(this.b.width,this.b.height),a.Vc(null),a.br(!1),a.Ue(1),
a.nc(this.b.cb),a.Zq(),a.Jd(),a.ud(),b=this.b.width/2,c=this.b.height/2,a.Dg(-b,c,b,c,b,-c,-b,-c),a.nc(null),a.br(!0)):this.Hn(a,null,null,null))};f.prototype.xh=function(){return 0<this.ja.length||this.b.Rg||!this.b.Ac||this.b.Ba?this.b.cb:null};f.prototype.vp=function(){var a=this.S[0].Dc(),b,c,k;b=1;for(c=this.S.length;b<c;b++)k=this.S[b],(0!==k.Tc||0!==k.Uc)&&k.Dc()<a&&(a=k.Dc());return a};f.prototype.On=function(a){if(!this.Gr){var b=1/this.vp()*this.b.K/2;a>this.width-b&&(a=this.width-b);a<
b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.qa=!0)};f.prototype.Pn=function(a){if(!this.Gr){var b=1/this.vp()*this.b.J/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.qa=!0)};f.prototype.To=function(){this.On(this.scrollX);this.Pn(this.scrollY)};f.prototype.Hn=function(a,b,c,k){var d=c?c.ja:b?b.ja:this.ja,l=1,f=0,g=0,m=0,p=this.b.K,r=this.b.J;c?(l=c.j.Dc(),f=c.j.mb(),g=c.j.wa,m=c.j.xa,p=c.j.Ea,r=c.j.Da):b&&(l=b.Dc(),f=b.mb(),g=b.wa,m=b.xa,p=b.Ea,r=b.Da);
var q=this.b.jm,A,w,B,N,K=0,S=1,I,x=this.b.K,u=this.b.J,Y=x/2,U=u/2,y=b?b.pi:this.pi,t=b?b.Gn:this.Gn,M=0,L=0,G=0,C=0,R=x,ea=x,P=u,na=u,ia=B=0;N=c?c.j.mb():0;if(c){A=0;for(w=d.length;A<w;A++)B+=a.Tu(d[A].gb),ia+=a.Uu(d[A].gb);C=c.Na;M=b.$b(C.left,C.top,!0,!0);G=b.$b(C.left,C.top,!1,!0);R=b.$b(C.right,C.bottom,!0,!0);P=b.$b(C.right,C.bottom,!1,!0);0!==N&&(A=b.$b(C.right,C.top,!0,!0),w=b.$b(C.right,C.top,!1,!0),L=b.$b(C.left,C.bottom,!0,!0),C=b.$b(C.left,C.bottom,!1,!0),N=Math.min(M,R,A,L),R=Math.max(M,
R,A,L),M=N,N=Math.min(G,P,w,C),P=Math.max(G,P,w,C),G=N);M-=B;G-=ia;R+=B;P+=ia;t.left=M/x;t.top=1-G/u;t.right=R/x;t.bottom=1-P/u;L=M=sa(M);C=G=sa(G);ea=R=ta(R);na=P=ta(P);L-=B;C-=ia;ea+=B;na+=ia;0>M&&(M=0);0>G&&(G=0);R>x&&(R=x);P>u&&(P=u);0>L&&(L=0);0>C&&(C=0);ea>x&&(ea=x);na>u&&(na=u);y.left=M/x;y.top=1-G/u;y.right=R/x;y.bottom=1-P/u}else y.left=t.left=0,y.top=t.top=0,y.right=t.right=1,y.bottom=t.bottom=1;ia=c&&(a.ni(d[0].gb)||0!==B||0!==ia||1!==c.opacity||c.type.ga.sq)||b&&!c&&1!==b.opacity;a.Zq();
if(ia){q[K]||(q[K]=a.Mc(x,u,this.b.T));if(q[K].df!==x||q[K].cf!==u)a.deleteTexture(q[K]),q[K]=a.Mc(x,u,this.b.T);a.oc(0);a.Vc(q[K]);I=na-C;a.clearRect(L,u-C-I,ea-L,I);c?c.Nb(a):(a.nc(this.b.ob),a.Ue(b.opacity),a.Jd(),a.translate(-Y,-U),a.ud(),a.Hd(M,P,R,P,R,G,M,G,y));t.left=t.top=0;t.right=t.bottom=1;c&&(N=y.top,y.top=y.bottom,y.bottom=N);K=1;S=0}a.Ue(1);B=d.length-1;var Ka=a.En(d[B].gb)||!b&&!c&&!this.b.Ac,Ga=0;A=0;for(w=d.length;A<w;A++){q[K]||(q[K]=a.Mc(x,u,this.b.T));if(q[K].df!==x||q[K].cf!==
u)a.deleteTexture(q[K]),q[K]=a.Mc(x,u,this.b.T);a.oc(d[A].gb);Ga=d[A].index;a.yk(d[A].gb)&&(this.b.qa=!0);0!=A||ia?(a.Hg(k,1/x,1/u,t.left,t.top,t.right,t.bottom,l,f,g,m,(g+p)/2,(m+r)/2,this.b.bb.W,c?c.Oa[Ga]:b?b.Oa[Ga]:this.Oa[Ga]),a.nc(null),A!==B||Ka?(a.Vc(q[K]),I=na-C,N=u-C-I,a.clearRect(L,N,ea-L,I)):(c?a.Te(c.Tb,c.Mb):b&&a.Te(b.Tb,b.Mb),a.Vc(k)),a.nc(q[S]),a.Jd(),a.translate(-Y,-U),a.ud(),a.Hd(M,P,R,P,R,G,M,G,y),A!==B||Ka||a.nc(null)):(a.Vc(q[K]),I=na-C,N=u-C-I,a.clearRect(L,N,ea-L,I),c?(a.Hg(k,
1/c.width,1/c.height,t.left,t.top,t.right,t.bottom,l,f,g,m,(g+p)/2,(m+r)/2,this.b.bb.W,c.Oa[Ga]),c.Nb(a)):(a.Hg(k,1/x,1/u,0,0,1,1,l,f,g,m,(g+p)/2,(m+r)/2,this.b.bb.W,b?b.Oa[Ga]:this.Oa[Ga]),a.nc(b?this.b.ob:this.b.cb),a.Jd(),a.translate(-Y,-U),a.ud(),a.Hd(M,P,R,P,R,G,M,G,y)),t.left=t.top=0,t.right=t.bottom=1,c&&!Ka&&(N=P,P=G,G=N));K=0===K?1:0;S=0===K?1:0}Ka&&(a.oc(0),c?a.Te(c.Tb,c.Mb):b?a.Te(b.Tb,b.Mb):this.b.Ac||(a.Cf(this.b.width,this.b.height),Y=this.b.width/2,U=this.b.height/2,G=M=0,R=this.b.width,
P=this.b.height),a.Vc(k),a.nc(q[S]),a.Jd(),a.translate(-Y,-U),a.ud(),c&&1===d.length&&!ia?a.Hd(M,G,R,G,R,P,M,P,y):a.Hd(M,P,R,P,R,G,M,G,y),a.nc(null))};f.prototype.Bj=function(a){var b,c;b=0;for(c=this.S.length;b<c;b++)if(this.S[b].Z===a)return this.S[b];return null};f.prototype.fb=function(){var a,b,c,k={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.e,w:this.width,h:this.height,fv:this.$f,persist:this.Se,fx:[],layers:{}};a=0;for(b=this.P.length;a<b;a++)c=this.P[a],k.fx.push({name:c.name,active:c.Ma,
params:this.Oa[c.index]});a=0;for(b=this.S.length;a<b;a++)c=this.S[a],k.layers[c.Z.toString()]=c.fb();return k};f.prototype.Ab=function(a){var b,c,k,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.e=a.a;this.width=a.w;this.height=a.h;this.Se=a.persist;"undefined"!==typeof a.fv&&(this.$f=a.fv);var l=a.fx;b=0;for(c=l.length;b<c;b++)if(k=this.om(l[b].name))k.Ma=l[b].active,this.Oa[k.index]=l[b].params;this.td();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.Bj(parseInt(d,10)))&&a.Ab(b[d])};
Hb=f;b.prototype.td=function(){z(this.ja);this.ie=!0;var a,b,c;a=0;for(b=this.P.length;a<b;a++)c=this.P[a],c.Ma&&(this.ja.push(c),c.nd||(this.ie=!1))};b.prototype.om=function(a){var b,c,k;b=0;for(c=this.P.length;b<c;b++)if(k=this.P[b],k.name===a)return k;return null};b.prototype.Bt=function(){var a,b,c,k,d,l;b=a=0;for(c=this.Ec.length;a<c;a++){k=this.Ec[a];d=this.b.q[k[1]];l=this.b.eo(d);d=!0;if(!l||this.pb.$f)k=this.b.Ce(k,this,!0),q.push(k),k.type.global&&(d=!1,this.hh.push(k.uid));d&&(this.Ec[b]=
this.Ec[a],b++)}this.Ec.length=b;this.b.Jb();!this.b.n&&this.P.length&&(this.Kb=this.Zt);this.eh=jb(this.Kb);this.b.A&&kb(this,this.Kb,this.b.A);this.qd=!0};b.prototype.Eg=function(a,b){var c=Da(this.c,a);0>c||(b&&this.Kc&&a.lc&&a.lc.right>=a.lc.left&&(a.Ga(),this.Ib.update(a,a.lc,null),a.lc.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(ya(this.c,c),this.si(c)),this.qd=!0)};b.prototype.bh=function(a,b){a.vd=this.c.length;this.c.push(a);b&&this.Kc&&a.lc&&a.Qa();this.qd=!0};b.prototype.aw=function(a){this.c.unshift(a);
this.si(0)};b.prototype.Kv=function(a,b,c){var k=a.Bd();b=b.Bd();ya(this.c,k);k<b&&b--;c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.si(k<b?k:b)};b.prototype.si=function(a){-1===this.oe?this.oe=a:a<this.oe&&(this.oe=a);this.qd=this.If=!0};b.prototype.ko=function(){if(this.If){-1===this.oe&&(this.oe=0);var a,b,c;if(this.Kc)for(a=this.oe,b=this.c.length;a<b;++a)c=this.c[a],c.vd=a,this.Ib.Gv(c.lc);else for(a=this.oe,b=this.c.length;a<b;++a)this.c[a].vd=a;this.If=!1;this.oe=-1}};b.prototype.Dc=
function(a){return this.Qu()*(this.b.Ac||a?this.b.dh:1)};b.prototype.Qu=function(){return(this.scale*this.pb.scale-1)*this.wd+1};b.prototype.mb=function(){return this.Td?0:Ja(this.pb.e+this.e)};var a=[],r=[],w=[];b.prototype.wm=function(){this.ko();this.Ib.Bk(this.wa,this.xa,this.Ea,this.Da,w);if(!w.length)return p();if(1===w.length){var a=p();Ba(a,w[0]);z(w);return a}for(var b=!0;1<w.length;){for(var a=w,c=void 0,k=void 0,d=void 0,f=void 0,q=void 0,c=0,k=a.length;c<k-1;c+=2){var d=a[c],f=a[c+1],
q=p(),g=d,m=f,J=q,T=0,E=0,A=0,H=g.length,B=m.length,N=void 0,K=void 0;for(J.length=H+B;T<H&&E<B;++A)N=g[T],K=m[E],N.vd<K.vd?(J[A]=N,++T):(J[A]=K,++E);for(;T<H;++T,++A)J[A]=g[T];for(;E<B;++E,++A)J[A]=m[E];b||(l(d),l(f));r.push(q)}1===k%2&&(b?(d=p(),Ba(d,a[k-1]),r.push(d)):r.push(a[k-1]));Ba(a,r);z(r);b=!1}a=w[0];z(w);return a};b.prototype.Pc=function(a){this.Id=this.xj||1!==this.opacity||0!==this.Kb;var b=this.b.canvas,c=a,k=!1;this.Id&&(this.b.Sj||(this.b.Sj=document.createElement("canvas"),b=this.b.Sj,
b.width=this.b.K,b.height=this.b.J,this.b.Vp=b.getContext("2d"),k=!0),b=this.b.Sj,c=this.b.Vp,b.width!==this.b.K&&(b.width=this.b.K,k=!0),b.height!==this.b.J&&(b.height=this.b.J,k=!0),k&&(c.webkitImageSmoothingEnabled=this.b.T,c.mozImageSmoothingEnabled=this.b.T,c.msImageSmoothingEnabled=this.b.T,c.imageSmoothingEnabled=this.b.T),this.sd&&c.clearRect(0,0,this.b.K,this.b.J));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.sd||(c.fillStyle="rgb("+this.cd[0]+","+this.cd[1]+","+this.cd[2]+
")",c.fillRect(0,0,this.b.K,this.b.J));c.save();this.Td=!0;var k=this.Vb(0,0,!0,!0),d=this.Vb(0,0,!1,!0);this.Td=!1;this.b.Hc&&(k=Math.round(k),d=Math.round(d));this.Gk(k,d,c);var f=this.Dc();c.scale(f,f);c.translate(-k,-d);this.Kc?(this.Db.left=this.Ib.fc(this.wa),this.Db.top=this.Ib.gc(this.xa),this.Db.right=this.Ib.fc(this.Ea),this.Db.bottom=this.Ib.gc(this.Da),this.qd||!this.Db.mh(this.qg)?(l(this.be),k=this.wm(),this.qd=!1,this.qg.fh(this.Db)):k=this.be):k=this.c;for(var p,g=null,d=0,f=k.length;d<
f;++d)p=k[d],p!==g&&(this.Ut(p,c),g=p);this.Kc&&(this.be=k);c.restore();this.Id&&(a.globalCompositeOperation=this.eh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};b.prototype.Ut=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ga();var c=a.Na;c.right<this.wa||c.bottom<this.xa||c.left>this.Ea||c.top>this.Da||(b.globalCompositeOperation=a.eh,a.Pc(b))}};b.prototype.jl=function(){this.Td=!0;var a=this.Vb(0,0,!0,!0),b=this.Vb(0,0,!1,!0);this.Td=!1;this.b.Hc&&(a=Math.round(a),b=Math.round(b));
this.Gk(a,b,null)};b.prototype.Gk=function(a,b,c){var k=this.Dc();this.wa=a;this.xa=b;this.Ea=a+1/k*this.b.K;this.Da=b+1/k*this.b.J;a=this.mb();0!==a&&(c&&(c.translate(this.b.K/2,this.b.J/2),c.rotate(-a),c.translate(this.b.K/-2,this.b.J/-2)),this.ke.set(this.wa,this.xa,this.Ea,this.Da),this.ke.offset((this.wa+this.Ea)/-2,(this.xa+this.Da)/-2),this.Br.jr(this.ke,a),this.Br.Uo(this.ke),this.ke.offset((this.wa+this.Ea)/2,(this.xa+this.Da)/2),this.wa=this.ke.left,this.xa=this.ke.top,this.Ea=this.ke.right,
this.Da=this.ke.bottom)};b.prototype.hf=function(a){if(this.Id=this.xj){this.b.ob||(this.b.ob=a.Mc(this.b.K,this.b.J,this.b.T));if(this.b.ob.df!==this.b.K||this.b.ob.cf!==this.b.J)a.deleteTexture(this.b.ob),this.b.ob=a.Mc(this.b.K,this.b.J,this.b.T);a.Vc(this.b.ob)}this.Td=!0;var b=this.Vb(0,0,!0,!0),c=this.Vb(0,0,!1,!0);this.Td=!1;this.b.Hc&&(b=Math.round(b),c=Math.round(c));this.Gk(b,c,null);b=this.Dc();a.Jd();a.scale(b,b);a.Jn(-this.mb());a.translate((this.wa+this.Ea)/-2,(this.xa+this.Da)/-2);
a.ud();this.Kc?(this.Db.left=this.Ib.fc(this.wa),this.Db.top=this.Ib.gc(this.xa),this.Db.right=this.Ib.fc(this.Ea),this.Db.bottom=this.Ib.gc(this.Da),this.qd||!this.Db.mh(this.qg)?(l(this.be),b=this.wm(),this.qd=!1,this.qg.fh(this.Db)):b=this.be):b=this.c;for(var k,d=null,c=b.length-1;0<=c;--c)k=b[c],k!==d&&(this.Wt(b[c],a),d=k);this.Kc&&(this.be=b);this.sd||(this.Pl=this.b.jf++,a.Kk(this.Pl),a.$q(1,1,1),a.op(),a.iw())};b.prototype.Nb=function(a){var b=0,c=0;if(this.Id=this.xj||1!==this.opacity||
0<this.ja.length||0!==this.Kb){this.b.ob||(this.b.ob=a.Mc(this.b.K,this.b.J,this.b.T));if(this.b.ob.df!==this.b.K||this.b.ob.cf!==this.b.J)a.deleteTexture(this.b.ob),this.b.ob=a.Mc(this.b.K,this.b.J,this.b.T);a.Vc(this.b.ob);this.sd&&a.clear(0,0,0,0)}this.sd||(this.b.Ba?(a.Kk(this.Pl),a.$q(this.cd[0]/255,this.cd[1]/255,this.cd[2]/255),a.op(),a.zw()):a.clear(this.cd[0]/255,this.cd[1]/255,this.cd[2]/255,1));this.Td=!0;var k=this.Vb(0,0,!0,!0),b=this.Vb(0,0,!1,!0);this.Td=!1;this.b.Hc&&(k=Math.round(k),
b=Math.round(b));this.Gk(k,b,null);k=this.Dc();a.Jd();a.scale(k,k);a.Jn(-this.mb());a.translate((this.wa+this.Ea)/-2,(this.xa+this.Da)/-2);a.ud();this.Kc?(this.Db.left=this.Ib.fc(this.wa),this.Db.top=this.Ib.gc(this.xa),this.Db.right=this.Ib.fc(this.Ea),this.Db.bottom=this.Ib.gc(this.Da),this.qd||!this.Db.mh(this.qg)?(l(this.be),b=this.wm(),this.qd=!1,this.qg.fh(this.Db)):b=this.be):b=this.c;var d,f,p=null,c=0;for(d=b.length;c<d;++c)f=b[c],f!==p&&(this.Vt(b[c],a),p=f);this.Kc&&(this.be=b);this.Id&&
(b=this.ja.length?this.ja[0].gb:0,c=this.ja.length?this.ja[0].index:0,0===this.ja.length||1===this.ja.length&&!a.En(b)&&1===this.opacity?(1===this.ja.length?(a.oc(b),a.Hg(this.pb.xh(),1/this.b.K,1/this.b.J,0,0,1,1,k,this.mb(),this.wa,this.xa,(this.wa+this.Ea)/2,(this.xa+this.Da)/2,this.b.bb.W,this.Oa[c]),a.yk(b)&&(this.b.qa=!0)):a.oc(0),a.Vc(this.pb.xh()),a.Ue(this.opacity),a.nc(this.b.ob),a.Te(this.Tb,this.Mb),a.Jd(),a.ud(),k=this.b.K/2,b=this.b.J/2,a.Dg(-k,b,k,b,k,-b,-k,-b),a.nc(null)):this.pb.Hn(a,
this,null,this.pb.xh()))};b.prototype.Vt=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ga();var c=a.Na;c.right<this.wa||c.bottom<this.xa||c.left>this.Ea||c.top>this.Da||(b.Kk(a.jf),a.Nr?this.Xt(a,b):(b.oc(0),b.Te(a.Tb,a.Mb),a.Nb(b)))}};b.prototype.Wt=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ga();var c=a.Na;c.right<this.wa||c.bottom<this.xa||c.left>this.Ea||c.top>this.Da||(a.jf=this.b.jf++,0===a.Kb&&1===a.opacity&&a.ie&&a.hf&&(b.Kk(a.jf),a.hf(b)))}};b.prototype.Xt=function(a,
b){var c=a.ja[0].gb,k=a.ja[0].index,d=this.Dc();if(1!==a.ja.length||b.En(c)||b.dw(c)||(a.e||a.j.mb())&&b.ni(c)||1!==a.opacity||a.type.ga.sq)this.pb.Hn(b,this,a,this.Id?this.b.ob:this.pb.xh()),b.Jd(),b.scale(d,d),b.Jn(-this.mb()),b.translate((this.wa+this.Ea)/-2,(this.xa+this.Da)/-2),b.ud();else{b.oc(c);b.Te(a.Tb,a.Mb);b.yk(c)&&(this.b.qa=!0);var l=0,f=0,g=0,m=0;b.ni(c)&&(c=a.Na,l=this.$b(c.left,c.top,!0,!0),f=this.$b(c.left,c.top,!1,!0),g=this.$b(c.right,c.bottom,!0,!0),c=this.$b(c.right,c.bottom,
!1,!0),l=l/windowWidth,f=1-f/windowHeight,g=g/windowWidth,m=1-c/windowHeight);b.Hg(this.Id?this.b.ob:this.pb.xh(),1/a.width,1/a.height,l,f,g,m,d,this.mb(),this.wa,this.xa,(this.wa+this.Ea)/2,(this.xa+this.Da)/2,this.b.bb.W,a.Oa[k]);a.Nb(b)}};b.prototype.Vb=function(a,b,c,k){var d=this.b.devicePixelRatio;this.b.Me&&(a*=d,b*=d);var d=this.b.Nq,l=this.b.Oq,d=(this.pb.scrollX-d)*this.Tc+d,l=(this.pb.scrollY-l)*this.Uc+l,f=d,g=l,m=1/this.Dc(!k);k?(f-=this.b.K*m/2,g-=this.b.J*m/2):(f-=this.b.width*m/2,
g-=this.b.height*m/2);f+=a*m;g+=b*m;b=this.mb();0!==b&&(f-=d,g-=l,a=Math.cos(b),b=Math.sin(b),k=f*a-g*b,g=g*a+f*b,f=k+d,g+=l);return c?f:g};b.prototype.$b=function(a,b,c,k){var d=this.b.Nq,l=this.b.Oq,f=(this.pb.scrollX-d)*this.Tc+d,g=(this.pb.scrollY-l)*this.Uc+l,l=f,d=g,m=this.mb();if(0!==m){a-=f;b-=g;var p=Math.cos(-m),m=Math.sin(-m),r=a*p-b*m;b=b*p+a*m;a=r+f;b+=g}f=1/this.Dc(!k);k?(l-=this.b.K*f/2,d-=this.b.J*f/2):(l-=this.b.width*f/2,d-=this.b.height*f/2);l=(a-l)/f;d=(b-d)/f;a=this.b.devicePixelRatio;
this.b.Me&&!k&&(l/=a,d/=a);return c?l:d};b.prototype.fb=function(){var a,b,c,k={s:this.scale,a:this.e,vl:this.wa,vt:this.xa,vr:this.Ea,vb:this.Da,v:this.visible,bc:this.cd,t:this.sd,px:this.Tc,py:this.Uc,o:this.opacity,zr:this.wd,fx:[],cg:this.hh,instances:[]};a=0;for(b=this.P.length;a<b;a++)c=this.P[a],k.fx.push({name:c.name,active:c.Ma,params:this.Oa[c.index]});return k};b.prototype.Ab=function(a){var b,c,k;this.scale=a.s;this.e=a.a;this.wa=a.vl;this.xa=a.vt;this.Ea=a.vr;this.Da=a.vb;this.visible=
a.v;this.cd=a.bc;this.sd=a.t;this.Tc=a.px;this.Uc=a.py;this.opacity=a.o;this.wd=a.zr;this.hh=a.cg||[];Ba(this.Ec,this.rr);var l=new ca;b=0;for(k=this.hh.length;b<k;++b)l.add(this.hh[b]);c=b=0;for(k=this.Ec.length;b<k;++b)l.contains(this.Ec[b][2])||(this.Ec[c]=this.Ec[b],++c);za(this.Ec,c);c=a.fx;b=0;for(k=c.length;b<k;b++)if(a=this.om(c[b].name))a.Ma=c[b].active,this.Oa[a.index]=c[b].params;this.td();this.c.sort(d);this.If=!0};Vb=b})();
(function(){function f(a,b){var c,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<e;c++)if(a[c]!==b[c])return!1;return!0}}function d(a,b){return a.index-b.index}function b(a){var b,c,e,k;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(d);a.length>=F.length&&(F.length=a.length+1);F[a.length]||(F[a.length]=[]);k=F[a.length];b=0;for(c=k.length;b<c;b++)if(e=k[b],f(a,e))return e;k.push(a);return a}
function p(a,b){this.b=a;this.Dr={};this.lp={};this.Em=!1;this.Cp=new ca;this.Vl=[];this.Fl=[];this.name=b[0];var c=b[1];this.Fe=[];var e,k;e=0;for(k=c.length;e<k;e++)this.Ep(c[e],null,this.Fe)}function l(a){this.type=a;this.c=[];this.ka=[];this.ta=!0}function q(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Aa=[];this.Ve=[];this.Ap=this.el=this.$n=this.Im=this.group=this.qr=!1;this.yb=[];this.$c=[];this.Wc=[];this.zh="";this.bg=this.Im=this.group=!1;this.gj=null;c[1]&&(this.zh=c[1][1].toLowerCase(),
this.group=!0,this.Im=!!c[1][0],this.gj=[],this.bg=this.Im,this.b.Qf.push(this),this.b.Ah[this.zh]=this);this.ld=c[2];this.Z=c[4];this.group||(this.b.So[this.Z.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var k=new Wb(this,e[a]);k.index=a;this.yb.push(k);this.Mo(k.type)}e=c[6];a=0;for(b=e.length;a<b;a++)k=new Xb(this,e[a]),k.index=a,this.$c.push(k);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Ep(c[a],this,this.Wc);this.Nj=!1;this.yb.length&&(this.Nj=null==this.yb[0].type&&
this.yb[0].Eb==Q.prototype.k.ds)}function c(a,b){var c,e,k;if(a&&(-1===b.indexOf(a)&&b.push(a),a.uc))for(c=0,e=a.rc.length;c<e;c++)k=a.rc[c],a!==k&&-1===b.indexOf(k)&&b.push(k)}function a(a,b){this.zc=a;this.sheet=a.sheet;this.b=a.b;this.V=[];this.Pa=[];this.M={};this.index=-1;this.$g=!1;this.Eb=this.b.qe(b[1]);this.trigger=0<b[3];this.kp=2===b[3];this.Dd=b[4];this.Om=b[5];this.Cv=b[6];this.Z=b[7];this.b.Vf[this.Z.toString()]=this;-1===b[0]?(this.type=null,this.eb=this.Ln,this.bf=null,this.dd=-1):
(this.type=this.b.q[b[0]],this.eb=this.Cv?this.pw:this.Kn,b[2]?(this.bf=this.type.Aj(b[2]),this.dd=this.type.mm(b[2])):(this.bf=null,this.dd=-1),this.zc.parent&&this.zc.parent.Mk());this.kp&&(this.eb=this.qw);if(10===b.length){var c,e,k=b[9];c=0;for(e=k.length;c<e;c++){var d=new Yb(this,k[c]);this.V.push(d)}this.Pa.length=k.length}}function r(a,b){this.zc=a;this.sheet=a.sheet;this.b=a.b;this.V=[];this.Pa=[];this.M={};this.index=-1;this.$g=!1;this.Eb=this.b.qe(b[1]);-1===b[0]?(this.type=null,this.eb=
this.Ln,this.bf=null,this.dd=-1):(this.type=this.b.q[b[0]],this.eb=this.Kn,b[2]?(this.bf=this.type.Aj(b[2]),this.dd=this.type.mm(b[2])):(this.bf=null,this.dd=-1));this.Z=b[3];this.b.Pf[this.Z.toString()]=this;if(6===b.length){var c,e,k=b[5];c=0;for(e=k.length;c<e;c++){var d=new Yb(this,k[c]);this.V.push(d)}this.Pa.length=k.length}}function w(){O++;v.length===O&&v.push(new Zb);return v[O]}function e(a,b){this.Ca=a;this.zc=a.zc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Ad=null;this.je=0;this.get=
null;this.bp=0;this.pb=null;this.key=0;this.object=null;this.index=0;this.Ki=this.Df=this.Ki=this.Df=this.mp=this.lf=this.Li=null;this.Zc=!1;var c,e,k;switch(b[0]){case 0:case 7:this.Ad=new $b(this,b[1]);this.je=0;this.get=this.$u;break;case 1:this.Ad=new $b(this,b[1]);this.je=0;this.get=this.av;break;case 5:this.Ad=new $b(this,b[1]);this.je=0;this.get=this.gv;break;case 3:case 8:this.bp=b[1];this.get=this.Yu;break;case 6:this.pb=this.b.bn[b[1]];this.get=this.hv;break;case 9:this.key=b[1];this.get=
this.dv;break;case 4:this.object=this.b.q[b[1]];this.get=this.iv;this.zc.Mo(this.object);this.Ca instanceof Xb?this.zc.Mk():this.zc.parent&&this.zc.parent.Mk();break;case 10:this.index=b[1];a.type.D?(this.get=this.bv,this.Zc=!0):this.get=this.cv;break;case 11:this.Li=b[1];this.lf=null;this.get=this.Zu;break;case 2:case 12:this.mp=b[1];this.get=this.Xu;break;case 13:for(this.get=this.jv,this.Df=[],this.Ki=[],c=1,e=b.length;c<e;c++)k=new Yb(this.Ca,b[c]),this.Df.push(k),this.Ki.push(0)}}function h(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Aa=[];this.name=c[1];this.Hm=c[3];this.Nh=!!c[4];this.Mj=!!c[5];this.Z=c[6];this.b.Tg[this.Z.toString()]=this;this.data=this.Hm;this.parent?(this.xf=this.Nh||this.Mj?-1:this.b.Cw++,this.b.ot.push(this)):(this.xf=-1,this.b.nt.push(this))}function n(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Aa=[];this.Ch=null;this.pv=c[1];this.Ma=!0}function k(){this.tr=[];this.reset(null)}var F=[];p.prototype.toString=function(){return this.name};p.prototype.Ep=
function(a,b,c){switch(a[0]){case 0:a=new ac(this,b,a);if(a.ld)for(c.push(a),c=0,b=a.yb.length;c<b;c++)a.yb[c].trigger&&this.Fp(a,c);else a.Pp()?this.Fp(a,0):c.push(a);break;case 1:a=new Sb(this,b,a);c.push(a);break;case 2:a=new bc(this,b,a),c.push(a)}};p.prototype.Ya=function(){var a,b;a=0;for(b=this.Fe.length;a<b;a++)this.Fe[a].Ya(a<b-1&&this.Fe[a+1].Nj)};p.prototype.fo=function(){z(this.Vl);z(this.Fl);this.Lo(this);z(this.Fl)};p.prototype.Lo=function(a){var b,c,e,k,d=a.Vl,l=a.Fl,h=this.Cp.le();
b=0;for(c=h.length;b<c;++b)e=h[b],k=e.Ch,!e.Ma||a===k||-1<l.indexOf(k)||(l.push(k),k.Lo(a),d.push(k))};p.prototype.eb=function(a){this.b.ry||(this.Em=!0,a||(this.b.Tm=!0));var b,c;b=0;for(c=this.Fe.length;b<c;b++){var e=this.Fe[b];e.eb();this.b.Ol(e.Aa);this.b.Ie&&this.b.Jb()}a||(this.b.Tm=!1)};p.prototype.Fp=function(a,b){a.ld||this.b.gl.push(a);var c,e,k=a.yb[b],d;k.type?d=k.type.name:d="system";var l=(c=k.kp)?this.lp:this.Dr;l[d]||(l[d]=[]);d=l[d];l=k.Eb;if(c){if(k.V.length&&(k=k.V[0],1===k.type&&
2===k.Ad.type)){k=k.Ad.value.toLowerCase();c=0;for(e=d.length;c<e;c++)if(d[c].method==l){c=d[c].nh;c[k]?c[k].push([a,b]):c[k]=[[a,b]];return}c={};c[k]=[[a,b]];d.push({method:l,nh:c})}}else{c=0;for(e=d.length;c<e;c++)if(d[c].method==l){d[c].nh.push([a,b]);return}V&&l===V.prototype.k.Mf?d.unshift({method:l,nh:[[a,b]]}):d.push({method:l,nh:[[a,b]]})}};Ib=p;l.prototype.Dm=function(){return this.ta?this.type.c.length:this.c.length};l.prototype.Cc=function(){return this.ta?this.type.c:this.c};l.prototype.ki=
function(a){a&&(a.b.Pb().tc.ld?(this.ta&&(z(this.c),Ba(this.ka,a.type.c),this.ta=!1),a=this.ka.indexOf(a),-1!==a&&(this.c.push(this.ka[a]),this.ka.splice(a,1))):(this.ta=!1,z(this.c),this.c[0]=a))};qb=l;window._c2hh_="DA39A3EE5E6B4B0D3255BFEF95601890AFD80709";q.prototype.Ya=function(a){var c,e=this.parent;if(this.group)for(this.el=!0;e;){if(!e.group){this.el=!1;break}e=e.parent}this.$n=!this.Pp()&&(!this.parent||this.parent.group&&this.parent.el);this.Ap=!!a;this.Ve=this.Aa.slice(0);for(e=this.parent;e;){a=
0;for(c=e.Aa.length;a<c;a++)this.kt(e.Aa[a]);e=e.parent}this.Aa=b(this.Aa);this.Ve=b(this.Ve);a=0;for(c=this.yb.length;a<c;a++)this.yb[a].Ya();a=0;for(c=this.$c.length;a<c;a++)this.$c[a].Ya();a=0;for(c=this.Wc.length;a<c;a++)this.Wc[a].Ya(a<c-1&&this.Wc[a+1].Nj)};q.prototype.vw=function(a){if(this.bg!==!!a){this.bg=!!a;var b;a=0;for(b=this.gj.length;a<b;++a)this.gj[a].Ir();0<b&&this.b.la.kf&&this.b.la.kf.fo()}};q.prototype.Mo=function(a){c(a,this.Aa)};q.prototype.kt=function(a){c(a,this.Ve)};q.prototype.Mk=
function(){this.qr=!0;this.parent&&this.parent.Mk()};q.prototype.Pp=function(){return this.yb.length?this.yb[0].trigger:!1};q.prototype.eb=function(){var a,b,c=!1,e=this.b,k=this.b.Pb();k.tc=this;var d=this.yb;this.Nj||(k.Yl=!1);if(this.ld){0===d.length&&(c=!0);k.xb=0;for(a=d.length;k.xb<a;k.xb++)b=d[k.xb],b.trigger||(b=b.eb())&&(c=!0);(k.sf=c)&&this.Hk()}else{k.xb=0;for(a=d.length;k.xb<a;k.xb++)if(b=d[k.xb].eb(),!b){k.sf=!1;this.$n&&e.Ie&&e.Jb();return}k.sf=!0;this.Hk()}this.au(k)};q.prototype.au=
function(a){a.sf&&this.Ap&&(a.Yl=!0);this.$n&&this.b.Ie&&this.b.Jb()};q.prototype.nw=function(a){this.b.Pb().tc=this;this.yb[a].eb()&&(this.Hk(),this.b.Pb().sf=!0)};q.prototype.Hk=function(){var a=this.b.Pb(),b;a.qc=0;for(b=this.$c.length;a.qc<b;a.qc++)if(this.$c[a.qc].eb())return;this.Yq()};q.prototype.jw=function(){var a=this.b.Pb(),b;for(b=this.$c.length;a.qc<b;a.qc++)if(this.$c[a.qc].eb())return;this.Yq()};q.prototype.Yq=function(){if(this.Wc.length){var a,b,c,e,k=this.Wc.length-1;this.b.Ak(this);
if(this.qr)for(a=0,b=this.Wc.length;a<b;a++)c=this.Wc[a],(e=!this.el||!this.group&&a<k)&&this.b.zk(c.Aa),c.eb(),e?this.b.Bf(c.Aa):this.b.Ol(c.Aa);else for(a=0,b=this.Wc.length;a<b;a++)this.Wc[a].eb();this.b.vk()}};q.prototype.ow=function(){var a=this.b.Pb();a.tc=this;var b=!1,c;a.xb=0;for(c=this.yb.length;a.xb<c;a.xb++)if(this.yb[a.xb].eb())b=!0;else if(!this.ld)return!1;return this.ld?b:!0};q.prototype.kw=function(){this.b.oh++;var a=this.b.Pb().xb,b=this.b.Ak(this);if(!this.ld)for(b.xb=a+1,a=this.yb.length;b.xb<
a;b.xb++)if(!this.yb[b.xb].eb()){this.b.vk();return}this.Hk();this.b.vk()};q.prototype.wv=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.yb[b].type===a.type)return!1;return!0};ac=q;a.prototype.Ya=function(){var a,b,c;a=0;for(b=this.V.length;a<b;a++)c=this.V[a],c.Ya(),c.Zc&&(this.$g=!0)};a.prototype.qw=function(){return!0};a.prototype.Ln=function(){var a,b;a=0;for(b=this.V.length;a<b;a++)this.Pa[a]=this.V[a].get();return Ua(this.Eb.apply(this.b.Ld,this.Pa),this.Om)};a.prototype.pw=
function(){var a,b;a=0;for(b=this.V.length;a<b;a++)this.Pa[a]=this.V[a].get();a=this.Eb.apply(this.bf?this.bf:this.type,this.Pa);this.type.bd();return a};a.prototype.Kn=function(){var a,b,c,e,k,d,l,h,f=this.type,n=f.ca(),p=this.zc.ld&&!this.trigger;b=0;var v=f.uc,r=f.D,q=f.Wd,F=this.dd,w=-1<F,O=this.$g,t=this.V,M=this.Pa,L=this.Om,G=this.Eb,C;if(O)for(b=0,k=t.length;b<k;++b)d=t[b],d.Zc||(M[b]=d.get(0));else for(b=0,k=t.length;b<k;++b)M[b]=t[b].get(0);if(n.ta){z(n.c);z(n.ka);C=f.c;a=0;for(e=C.length;a<
e;++a){h=C[a];if(O)for(b=0,k=t.length;b<k;++b)d=t[b],d.Zc&&(M[b]=d.get(a));w?(b=0,r&&(b=h.type.Zf[q]),b=G.apply(h.R[F+b],M)):b=G.apply(h,M);(l=Ua(b,L))?n.c.push(h):p&&n.ka.push(h)}f.finish&&f.finish(!0);n.ta=!1;f.bd();return n.Dm()}c=0;C=(l=p&&!this.zc.wv(this))?n.ka:n.c;var R=!1;a=0;for(e=C.length;a<e;++a){h=C[a];if(O)for(b=0,k=t.length;b<k;++b)d=t[b],d.Zc&&(M[b]=d.get(a));w?(b=0,r&&(b=h.type.Zf[q]),b=G.apply(h.R[F+b],M)):b=G.apply(h,M);if(Ua(b,L))if(R=!0,l){if(n.c.push(h),v)for(b=0,k=h.siblings.length;b<
k;b++)d=h.siblings[b],d.type.ca().c.push(d)}else{C[c]=h;if(v)for(b=0,k=h.siblings.length;b<k;b++)d=h.siblings[b],d.type.ca().c[c]=d;c++}else if(l){C[c]=h;if(v)for(b=0,k=h.siblings.length;b<k;b++)d=h.siblings[b],d.type.ca().ka[c]=d;c++}else if(p&&(n.ka.push(h),v))for(b=0,k=h.siblings.length;b<k;b++)d=h.siblings[b],d.type.ca().ka.push(d)}za(C,c);if(v)for(r=f.rc,a=0,e=r.length;a<e;a++)h=r[a].ca(),l?za(h.ka,c):za(h.c,c);c=R;if(l&&!R)for(a=0,e=n.c.length;a<e;a++){h=n.c[a];if(O)for(b=0,k=t.length;b<k;b++)d=
t[b],d.Zc&&(M[b]=d.get(a));b=w?G.apply(h.R[F],M):G.apply(h,M);if(Ua(b,L)){R=!0;break}}f.finish&&f.finish(c||p);return p?R:n.Dm()};Wb=a;r.prototype.Ya=function(){var a,b,c;a=0;for(b=this.V.length;a<b;a++)c=this.V[a],c.Ya(),c.Zc&&(this.$g=!0)};r.prototype.Ln=function(){var a=this.b,b,c,e=this.V,k=this.Pa;b=0;for(c=e.length;b<c;++b)k[b]=e[b].get();return this.Eb.apply(a.Ld,k)};r.prototype.Kn=function(){var a=this.type,b=this.dd,c=a.Wd,e=this.$g,k=this.V,d=this.Pa,h=this.Eb,l=a.ca().Cc(),a=a.D,f=-1<b,
n,p,v,r,q,F;if(e)for(p=0,r=k.length;p<r;++p)q=k[p],q.Zc||(d[p]=q.get(0));else for(p=0,r=k.length;p<r;++p)d[p]=k[p].get(0);n=0;for(v=l.length;n<v;++n){F=l[n];if(e)for(p=0,r=k.length;p<r;++p)q=k[p],q.Zc&&(d[p]=q.get(n));f?(p=0,a&&(p=F.type.Zf[c]),h.apply(F.R[b+p],d)):h.apply(F,d)}return!1};Xb=r;var v=[],O=-1;e.prototype.Ya=function(){var a,b;if(11===this.type)this.lf=this.b.sp(this.Li,this.zc.parent);else if(13===this.type)for(a=0,b=this.Df.length;a<b;a++)this.Df[a].Ya();this.Ad&&this.Ad.Ya()};e.prototype.Iv=
function(a){this.Zc||!a||a.ga.Pk||(this.Zc=!0)};e.prototype.fr=function(){this.Zc=!0};e.prototype.$u=function(a){this.je=a||0;a=w();this.Ad.get(a);O--;return a.data};e.prototype.av=function(a){this.je=a||0;a=w();this.Ad.get(a);O--;return ka(a.data)?a.data:""};e.prototype.iv=function(){return this.object};e.prototype.Yu=function(){return this.bp};e.prototype.gv=function(a){this.je=a||0;a=w();this.Ad.get(a);O--;return a.zb()?this.b.vh(a.data):this.b.um(a.data)};e.prototype.hv=function(){return this.pb};
e.prototype.dv=function(){return this.key};e.prototype.cv=function(){return this.index};e.prototype.bv=function(a){a=a||0;var b=this.Ca.type,c=null,c=b.ca(),e=c.Cc();if(e.length)c=e[a%e.length].type;else if(c.ka.length)c=c.ka[a%c.ka.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.sj[b.Wd]};e.prototype.Zu=function(){return this.lf};e.prototype.Xu=function(){return this.mp};e.prototype.jv=function(){var a,b;a=0;for(b=this.Df.length;a<b;a++)this.Ki[a]=this.Df[a].get();
return this.Ki};Yb=e;h.prototype.Ya=function(){this.Aa=b(this.Aa)};h.prototype.Aw=function(a){var b=this.b.rp();this.parent&&!this.Nh&&b?(this.xf>=b.length&&(b.length=this.xf+1),b[this.xf]=a):this.data=a};h.prototype.Wu=function(){var a=this.b.rp();return!this.parent||this.Nh||!a||this.Mj?this.data:this.xf>=a.length||"undefined"===typeof a[this.xf]?this.Hm:a[this.xf]};h.prototype.eb=function(){!this.parent||this.Nh||this.Mj||this.Aw(this.Hm)};Sb=h;n.prototype.toString=function(){return"include:"+
this.Ch.toString()};n.prototype.Ya=function(){this.Ch=this.b.$l[this.pv];this.sheet.Cp.add(this);this.Aa=b(this.Aa);for(var a=this.parent;a;)a.group&&a.gj.push(this),a=a.parent;this.Ir()};n.prototype.eb=function(){this.parent&&this.b.oi(this.b.q);this.Ch.Em||this.Ch.eb(!0);this.parent&&this.b.Bf(this.b.q)};n.prototype.Ir=function(){for(var a=this.parent;a;){if(a.group&&!a.bg){this.Ma=!1;return}a=a.parent}this.Ma=!0};bc=n;k.prototype.reset=function(a){this.tc=a;this.qc=this.xb=0;z(this.tr);this.Yl=
this.sf=!1};Rb=k})();
(function(){function f(b,a){this.Ca=b;this.b=b.b;this.type=a[0];this.get=[this.ru,this.nu,this.Au,this.Du,this.cu,this.Bu,this.vu,this.ku,this.uu,this.zu,this.du,this.yu,this.lu,this.wu,this.su,this.tu,this.ou,this.pu,this.ju,this.Cu,this.xu,this.qu,this.iu,this.mu][this.type];var d=null;this.de=this.V=this.Pa=this.Eb=this.dl=this.second=this.first=this.value=null;this.dd=-1;this.fd=null;this.Or=-1;this.lf=this.Li=null;this.Fg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new $b(b,a[1]);break;case 18:this.first=new $b(b,a[1]);this.second=new $b(b,a[2]);this.dl=new $b(b,a[3]);break;case 19:this.Eb=this.b.qe(a[1]);this.Eb!==Q.prototype.ua.random&&this.Eb!==Q.prototype.ua.$o||this.Ca.fr();this.Pa=[];this.V=[];3===a.length?(d=a[2],this.Pa.length=d.length+1):this.Pa.length=1;break;case 20:this.de=this.b.q[a[1]];this.dd=-1;this.Eb=this.b.qe(a[2]);this.Fg=a[3];ec.Function&&this.Eb===ec.Function.prototype.ua.Zw&&this.Ca.fr();a[4]?this.fd=new $b(b,a[4]):this.fd=null;this.Pa=
[];this.V=[];6===a.length?(d=a[5],this.Pa.length=d.length+1):this.Pa.length=1;break;case 21:this.de=this.b.q[a[1]];this.Fg=a[2];a[3]?this.fd=new $b(b,a[3]):this.fd=null;this.Or=a[4];break;case 22:this.de=this.b.q[a[1]];this.de.Aj(a[2]);this.dd=this.de.mm(a[2]);this.Eb=this.b.qe(a[3]);this.Fg=a[4];a[5]?this.fd=new $b(b,a[5]):this.fd=null;this.Pa=[];this.V=[];7===a.length?(d=a[6],this.Pa.length=d.length+1):this.Pa.length=1;break;case 23:this.Li=a[1],this.lf=null}this.Ca.Iv(this.de);4<=this.type&&17>=
this.type&&(this.first=new $b(b,a[1]),this.second=new $b(b,a[2]));if(d){var l,e;l=0;for(e=d.length;l<e;l++)this.V.push(new $b(b,d[l]))}}function d(){++q;l.length===q&&l.push(new Zb);return l[q]}function b(b,a,d){var l,e;l=0;for(e=b.length;l<e;++l)b[l].get(d),a[l+1]=d.data}function p(b,a){this.type=b||cc.Lf;this.data=a||0;this.yf=null;this.type==cc.Lf&&(this.data=Math.floor(this.data))}f.prototype.Ya=function(){23===this.type&&(this.lf=this.Ca.b.sp(this.Li,this.Ca.zc.parent));this.first&&this.first.Ya();
this.second&&this.second.Ya();this.dl&&this.dl.Ya();this.fd&&this.fd.Ya();if(this.V){var b,a;b=0;for(a=this.V.length;b<a;b++)this.V[b].Ya()}};var l=[],q=-1;f.prototype.Cu=function(c){var a=this.V,l=this.Pa;l[0]=c;c=d();b(a,l,c);--q;this.Eb.apply(this.b.Ld,l)};f.prototype.xu=function(c){var a=this.de,l=this.Pa,f=this.V,e=this.fd,h=this.Eb,n=this.Ca.je,k=a.ca(),p=k.Cc();if(!p.length)if(k.ka.length)p=k.ka;else{this.Fg?c.Sb(""):c.za(0);return}l[0]=c;c.yf=a;c=d();b(f,l,c);e&&(e.get(c),c.zb()&&(n=c.data,
p=a.c));--q;a=p.length;if(n>=a||n<=-a)n%=a;0>n&&(n+=a);h.apply(p[n],l)};f.prototype.iu=function(c){var a=this.de,l=this.Pa,f=this.V,e=this.fd,h=this.dd,p=this.Eb,k=this.Ca.je,F=a.ca(),v=F.Cc();if(!v.length)if(F.ka.length)v=F.ka;else{this.Fg?c.Sb(""):c.za(0);return}l[0]=c;c.yf=a;c=d();b(f,l,c);e&&(e.get(c),c.zb()&&(k=c.data,v=a.c));--q;f=v.length;if(k>=f||k<=-f)k%=f;0>k&&(k+=f);k=v[k];v=0;a.D&&(v=k.type.Zf[a.Wd]);p.apply(k.R[h+v],l)};f.prototype.qu=function(b){var a=this.fd,l=this.de,f=this.Or,e=this.Ca.je,
h=l.ca(),p=h.Cc();if(!p.length)if(h.ka.length)p=h.ka;else{this.Fg?b.Sb(""):b.za(0);return}if(a){h=d();a.get(h);if(h.zb()){e=h.data;p=l.c;0!==p.length&&(e%=p.length,0>e&&(e+=p.length));e=l.rm(e);l=e.nb[f];ka(l)?b.Sb(l):b.u(l);--q;return}--q}a=p.length;if(e>=a||e<=-a)e%=a;0>e&&(e+=a);e=p[e];p=0;l.D&&(p=e.type.sj[l.Wd]);l=e.nb[f+p];ka(l)?b.Sb(l):b.u(l)};f.prototype.ru=function(b){b.type=cc.Lf;b.data=this.value};f.prototype.nu=function(b){b.type=cc.Kf;b.data=this.value};f.prototype.Au=function(b){b.type=
cc.String;b.data=this.value};f.prototype.Du=function(b){this.first.get(b);b.zb()&&(b.data=-b.data)};f.prototype.cu=function(b){this.first.get(b);var a=d();this.second.get(a);b.zb()&&a.zb()&&(b.data+=a.data,a.kg()&&b.sg());--q};f.prototype.Bu=function(b){this.first.get(b);var a=d();this.second.get(a);b.zb()&&a.zb()&&(b.data-=a.data,a.kg()&&b.sg());--q};f.prototype.vu=function(b){this.first.get(b);var a=d();this.second.get(a);b.zb()&&a.zb()&&(b.data*=a.data,a.kg()&&b.sg());--q};f.prototype.ku=function(b){this.first.get(b);
var a=d();this.second.get(a);b.zb()&&a.zb()&&(b.data/=a.data,b.sg());--q};f.prototype.uu=function(b){this.first.get(b);var a=d();this.second.get(a);b.zb()&&a.zb()&&(b.data%=a.data,a.kg()&&b.sg());--q};f.prototype.zu=function(b){this.first.get(b);var a=d();this.second.get(a);b.zb()&&a.zb()&&(b.data=Math.pow(b.data,a.data),a.kg()&&b.sg());--q};f.prototype.du=function(b){this.first.get(b);var a=d();this.second.get(a);a.ng()||b.ng()?this.fu(b,a):this.eu(b,a);--q};f.prototype.fu=function(b,a){b.ng()&&
a.ng()?this.hu(b,a):this.gu(b,a)};f.prototype.hu=function(b,a){b.data+=a.data};f.prototype.gu=function(b,a){b.ng()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Sb(b.data.toString()+a.data)};f.prototype.eu=function(b,a){b.za(b.data&&a.data?1:0)};f.prototype.yu=function(b){this.first.get(b);var a=d();this.second.get(a);b.zb()&&a.zb()&&(b.data||a.data?b.za(1):b.za(0));--q};f.prototype.ju=function(b){this.first.get(b);b.data?this.second.get(b):this.dl.get(b)};f.prototype.lu=function(b){this.first.get(b);
var a=d();this.second.get(a);b.za(b.data===a.data?1:0);--q};f.prototype.wu=function(b){this.first.get(b);var a=d();this.second.get(a);b.za(b.data!==a.data?1:0);--q};f.prototype.su=function(b){this.first.get(b);var a=d();this.second.get(a);b.za(b.data<a.data?1:0);--q};f.prototype.tu=function(b){this.first.get(b);var a=d();this.second.get(a);b.za(b.data<=a.data?1:0);--q};f.prototype.ou=function(b){this.first.get(b);var a=d();this.second.get(a);b.za(b.data>a.data?1:0);--q};f.prototype.pu=function(b){this.first.get(b);
var a=d();this.second.get(a);b.za(b.data>=a.data?1:0);--q};f.prototype.mu=function(b){var a=this.lf.Wu();ja(a)?b.u(a):b.Sb(a)};$b=f;p.prototype.kg=function(){return this.type===cc.Kf};p.prototype.zb=function(){return this.type===cc.Lf||this.type===cc.Kf};p.prototype.ng=function(){return this.type===cc.String};p.prototype.sg=function(){this.kg()||(this.ng()&&(this.data=parseFloat(this.data)),this.type=cc.Kf)};p.prototype.za=function(b){this.type=cc.Lf;this.data=Math.floor(b)};p.prototype.u=function(b){this.type=
cc.Kf;this.data=b};p.prototype.Sb=function(b){this.type=cc.String;this.data=b};p.prototype.hr=function(b){ja(b)?(this.type=cc.Kf,this.data=b):ka(b)?(this.type=cc.String,this.data=b.toString()):(this.type=cc.Lf,this.data=0)};Zb=p;cc={Lf:0,Kf:1,String:2}})();function Q(f){this.b=f;this.pc=[]}
Q.prototype.fb=function(){var f={},d,b,p,l,q,c,a,r;f.waits=[];var w=f.waits,e;d=0;for(b=this.pc.length;d<b;d++){c=this.pc[d];e={t:c.time,st:c.or,s:c.Un,ev:c.Yf.Z,sm:[],sols:{}};c.Yf.$c[c.qc]&&(e.act=c.Yf.$c[c.qc].Z);p=0;for(l=c.Aa.length;p<l;p++)e.sm.push(c.Aa[p].Z);for(q in c.ec)if(c.ec.hasOwnProperty(q)){a=this.b.q[parseInt(q,10)];r={sa:c.ec[q].Ik,insts:[]};p=0;for(l=c.ec[q].Zd.length;p<l;p++)r.insts.push(c.ec[q].Zd[p].uid);e.sols[a.Z.toString()]=r}w.push(e)}return f};
Q.prototype.Ab=function(f){f=f.waits;var d,b,p,l,q,c,a,r,w,e,h;z(this.pc);d=0;for(b=f.length;d<b;d++)if(c=f[d],r=this.b.So[c.ev.toString()]){w=-1;p=0;for(l=r.$c.length;p<l;p++)if(r.$c[p].Z===c.act){w=p;break}if(-1!==w){a={ec:{},Aa:[],Wl:!1};a.time=c.t;a.or=c.st||"";a.Un=!!c.s;a.Yf=r;a.qc=w;p=0;for(l=c.sm.length;p<l;p++)(r=this.b.Cj(c.sm[p]))&&a.Aa.push(r);for(q in c.sols)if(c.sols.hasOwnProperty(q)&&(r=this.b.Cj(parseInt(q,10)))){w=c.sols[q];e={Ik:w.sa,Zd:[]};p=0;for(l=w.insts.length;p<l;p++)(h=this.b.wh(w.insts[p]))&&
e.Zd.push(h);a.ec[r.index.toString()]=e}this.pc.push(a)}}};
(function(){function f(){}function d(){}function b(){}var p=Q.prototype;f.prototype.gs=function(){return!0};f.prototype.wo=function(){return!0};f.prototype.Cs=function(){return!0};f.prototype.Wr=function(b,a,d){return dc(b,a,d)};f.prototype.$r=function(b,a){var d=this.b.bb.W;if(0===b){var l=this.b.sh();return!l.M.CompareTime_executed&&d>=a?l.M.CompareTime_executed=!0:!1}return dc(d,b,a)};f.prototype.Zs=function(){var b=this.b.sh().M;"undefined"===typeof b.TriggerOnce_lastTick&&(b.TriggerOnce_lastTick=
-1);var a=b.TriggerOnce_lastTick,d=this.b.Gf;b.TriggerOnce_lastTick=d;return this.b.an||a!==d-1};f.prototype.es=function(b){var a=this.b.sh(),d=a.M.Every_lastTime||0,l=this.b.bb.W;"undefined"===typeof a.M.Every_seconds&&(a.M.Every_seconds=b);var e=a.M.Every_seconds;if(l>=d+e)return a.M.Every_lastTime=d+e,l>=a.M.Every_lastTime+.04&&(a.M.Every_lastTime=l),a.M.Every_seconds=b,!0;l<d-.1&&(a.M.Every_lastTime=l);return!1};f.prototype.ms=function(b){return(b=this.b.Ah[b.toLowerCase()])&&b.bg};f.prototype.ds=
function(){var b=this.b.Pb();return b.Yl?!1:!b.sf};f.prototype.xo=function(){return!0};f.prototype.us=function(){return!0};f.prototype.yl=function(){return!0};f.prototype.Ds=function(){return!0};f.prototype.xl=function(){return!0};f.prototype.Rr=function(b,a,d){return Oa(D(b),D(d))<=D(a)};f.prototype.ls=function(b,a){return Ra(D(b),D(a))};f.prototype.js=function(b,a,d){b=Ma(b);a=Ma(a);d=Ma(d);return Ra(d,a)?Ra(b,a)&&!Ra(b,d):!(!Ra(b,a)&&Ra(b,d))};p.k=new f;d.prototype.as=function(b,a,d,l){if(a&&b&&
(a=this.b.cp(b,a,d,l))){this.b.hd++;var e;this.b.trigger(Object.getPrototypeOf(b.ga).k.wl,a);if(a.uc)for(d=0,l=a.siblings.length;d<l;d++)e=a.siblings[d],this.b.trigger(Object.getPrototypeOf(e.type.ga).k.wl,e);this.b.hd--;b=b.ca();b.ta=!1;z(b.c);b.c[0]=a;if(a.uc)for(d=0,l=a.siblings.length;d<l;d++)e=a.siblings[d],b=e.type.ca(),b.ta=!1,z(b.c),b.c[0]=e}};d.prototype.Os=function(b){this.b.la&&this.b.la.scale!==b&&(this.b.la.scale=b,this.b.la.To(),this.b.qa=!0)};var l=[],q=[];d.prototype.bt=function(b){if(!(0>
b)){var a,d,f,e=this.b.Pb(),h;l.length?h=l.pop():h={ec:{},Aa:[]};h.Wl=!1;h.time=this.b.bb.W+b;h.or="";h.Un=!1;h.Yf=e.tc;h.qc=e.qc+1;b=0;for(a=this.b.q.length;b<a;b++)f=this.b.q[b],d=f.ca(),d.ta&&-1===e.tc.Aa.indexOf(f)||(h.Aa.push(f),f=void 0,q.length?f=q.pop():f={Zd:[]},f.Ik=!1,f.Ik=d.ta,Ba(f.Zd,d.c),h.ec[b.toString()]=f);this.pc.push(h);return!0}};p.H=new d;b.prototype["int"]=function(b,a){ka(a)?(b.za(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.za(a)};b.prototype["float"]=function(b,a){ka(a)?(b.u(parseFloat(a)),
isNaN(b.data)&&(b.data=0)):b.u(a)};b.prototype.random=function(b,a,d){void 0===d?b.u(Math.random()*a):b.u(Math.random()*(d-a)+a)};b.prototype.sqrt=function(b,a){b.u(Math.sqrt(a))};b.prototype.abs=function(b,a){b.u(Math.abs(a))};b.prototype.round=function(b,a){b.za(Math.round(a))};b.prototype.floor=function(b,a){b.za(Math.floor(a))};b.prototype.ceil=function(b,a){b.za(Math.ceil(a))};b.prototype.sin=function(b,a){b.u(Math.sin(D(a)))};b.prototype.cos=function(b,a){b.u(Math.cos(D(a)))};b.prototype.tan=
function(b,a){b.u(Math.tan(D(a)))};b.prototype.asin=function(b,a){b.u(Ha(Math.asin(a)))};b.prototype.acos=function(b,a){b.u(Ha(Math.acos(a)))};b.prototype.atan=function(b,a){b.u(Ha(Math.atan(a)))};b.prototype.exp=function(b,a){b.u(Math.exp(a))};b.prototype.log10=function(b,a){b.u(Math.log(a)/Math.LN10)};b.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var d,l,e;d=2;for(l=arguments.length;d<l;d++)e=arguments[d],"number"===typeof e&&a<e&&(a=e);b.u(a)};b.prototype.min=function(b){var a=
arguments[1];"number"!==typeof a&&(a=0);var d,l,e;d=2;for(l=arguments.length;d<l;d++)e=arguments[d],"number"===typeof e&&a>e&&(a=e);b.u(a)};b.prototype.Ud=function(b){b.u(this.b.Ud)};b.prototype.Hf=function(b){b.u(this.b.Hf)};b.prototype.time=function(b){b.u(this.b.bb.W)};b.prototype.Gf=function(b){b.za(this.b.Gf)};b.prototype.fk=function(b){b.za(this.b.fk)};b.prototype.hm=function(b){b.za(this.b.hm)};b.prototype.e=function(b,a,d,l,e){b.u(Ha(Na(a,d,l,e)))};b.prototype.left=function(b,a,d){b.Sb(ka(a)?
a.substr(0,d):"")};b.prototype.right=function(b,a,d){b.Sb(ka(a)?a.substr(a.length-d):"")};b.prototype.replace=function(b,a,d,l){ka(a)&&ka(d)&&ka(l)?b.Sb(a.replace(new RegExp(fb(d),"gi"),l)):b.Sb(ka(a)?a:"")};b.prototype.trim=function(b,a){b.Sb(ka(a)?a.trim():"")};b.prototype.$o=function(b){var a=sa(Math.random()*(arguments.length-1));b.hr(arguments[a+1])};b.prototype.Sw=function(b,a,d){var l=0>a?"-":"";0>a&&(a=-a);d=d-a.toString().length;for(var e=0;e<d;e++)l+="0";b.Sb(l+a.toString())};b.prototype.Ql=
function(b){b.u(this.b.Ql/1E3)};b.prototype.Yj=function(b){b.u(this.b.Yj)};p.ua=new b;p.mw=function(){var b,a,d,f,e,h,p=this.b.Pb();b=0;for(d=this.pc.length;b<d;b++){f=this.pc[b];if(-1===f.time){if(!f.Un)continue}else if(f.time>this.b.bb.W)continue;p.tc=f.Yf;p.qc=f.qc;p.xb=0;for(a in f.ec)f.ec.hasOwnProperty(a)&&(e=this.b.q[parseInt(a,10)].ca(),h=f.ec[a],e.ta=h.Ik,Ba(e.c,h.Zd),e=h,z(e.Zd),q.push(e));f.Yf.jw();this.b.Ol(f.Aa);f.Wl=!0}a=b=0;for(d=this.pc.length;b<d;b++)f=this.pc[b],this.pc[a]=f,f.Wl?
(Wa(f.ec),z(f.Aa),l.push(f)):a++;za(this.pc,a)}})();
(function(){pb=function(d,b){var f=d[1],l=d[3],q=d[4],c=d[5],a=d[6],r=d[7],w=d[8];b.k||(b.k={});b.H||(b.H={});b.ua||(b.ua={});var e=b.k,h=b.H,n=b.ua;l&&(e.so=function(a,b){return dc(this.x,a,b)},e.cx=function(a,b){return dc(this.y,a,b)},e.kx=function(){var a=this.j;this.Ga();var b=this.Na;return!(b.right<a.wa||b.bottom<a.xa||b.left>a.Ea||b.top>a.Da)},e.lx=function(){this.Ga();var a=this.Na,b=this.b.la;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},e.Ax=function(a,b,c){var e=this.ca(),
g=e.Cc();if(!g.length)return!1;var d=g[0],l=d,f=Ta(d.x,d.y,b,c),h,p,n;h=1;for(p=g.length;h<p;h++)if(d=g[h],n=Ta(d.x,d.y,b,c),0===a&&n<f||1===a&&n>f)f=n,l=d;e.ki(l);return!0},h.Go=function(a){this.x!==a&&(this.x=a,this.Qa())},h.Zx=function(a){this.y!==a&&(this.y=a,this.Qa())},h.Sx=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Qa()},h.Tx=function(a,b){var c=a.Ru(this);if(c){var e;c.qm?(e=c.qm(b,!0),c=c.qm(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.Qa()}},
h.tx=function(a){0!==a&&(this.x+=Math.cos(this.e)*a,this.y+=Math.sin(this.e)*a,this.Qa())},h.rx=function(a,b){0!==b&&(this.x+=Math.cos(D(a))*b,this.y+=Math.sin(D(a))*b,this.Qa())},n.Pi=function(a){a.u(this.x)},n.et=function(a){a.u(this.y)},n.Ud=function(a){a.u(this.b.uh(this))});q&&(e.bx=function(a,b){return dc(this.width,a,b)},e.$w=function(a,b){return dc(this.height,a,b)},h.Yx=function(a){this.width!==a&&(this.width=a,this.Qa())},h.Px=function(a){this.height!==a&&(this.height=a,this.Qa())},h.Ux=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Qa()},n.ey=function(a){a.u(this.width)},n.gx=function(a){a.u(this.height)},n.Ww=function(a){this.Ga();a.u(this.Na.left)},n.Yw=function(a){this.Ga();a.u(this.Na.top)},n.Xw=function(a){this.Ga();a.u(this.Na.right)},n.Vw=function(a){this.Ga();a.u(this.Na.bottom)});c&&(e.Rr=function(a,b){return Oa(this.e,D(b))<=D(a)},e.ls=function(a){return Ra(this.e,D(a))},e.js=function(a,b){var c=Ma(a),e=Ma(b),g=Ja(this.e);return Ra(e,
c)?Ra(g,c)&&!Ra(g,e):!(!Ra(g,c)&&Ra(g,e))},h.Lx=function(a){a=D(Ia(a));isNaN(a)||this.e===a||(this.e=a,this.Qa())},h.Hx=function(a){0===a||isNaN(a)||(this.e+=D(a),this.e=Ja(this.e),this.Qa())},h.Ix=function(a){0===a||isNaN(a)||(this.e-=D(a),this.e=Ja(this.e),this.Qa())},h.Jx=function(a,b){var c=Qa(this.e,D(b),D(a));isNaN(c)||this.e===c||(this.e=c,this.Qa())},h.Kx=function(a,b,c){a=Qa(this.e,Math.atan2(c-this.y,b-this.x),D(a));isNaN(a)||this.e===a||(this.e=a,this.Qa())},h.Vx=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.e===c||(this.e=c,this.Qa())},n.Uw=function(a){a.u(La(this.e))});f||(e.Yr=function(a,b,c){return dc(this.nb[a],b,c)},e.ks=function(a){return this.nb[a]},e.Bx=function(a,b){var c=this.ca(),e=c.Cc();if(!e.length)return!1;var g=e[0],d=g,l=g.nb[b],f,h,p;f=1;for(h=e.length;f<h;f++)if(g=e[f],p=g.nb[b],0===a&&p<l||1===a&&p>l)l=p,d=g;c.ki(d);return!0},e.zx=function(a){var b,c,e,g,d;if(this.b.sh().Om){d=this.ca();if(d.ta)for(d.ta=!1,z(d.c),z(d.ka),e=this.c,b=0,c=e.length;b<c;b++)g=
e[b],g.uid===a?d.ka.push(g):d.c.push(g);else{e=b=0;for(c=d.c.length;b<c;b++)g=d.c[b],d.c[e]=g,g.uid===a?d.ka.push(g):e++;za(d.c,e)}this.bd();return!!d.c.length}g=this.b.wh(a);if(!g)return!1;d=this.ca();if(!d.ta&&-1===d.c.indexOf(g))return!1;if(this.D)for(a=g.type.Ia,b=0,c=a.length;b<c;b++){if(a[b]===this)return d.ki(g),this.bd(),!0}else if(g.type===this)return d.ki(g),this.bd(),!0;return!1},e.wl=function(){return!0},e.ws=function(){return!0},h.Ns=function(a,b){var c=this.nb;ja(c[a])?c[a]=ja(b)?b:
parseFloat(b):ka(c[a])&&(c[a]=ka(b)?b:b.toString())},h.Tw=function(a,b){var c=this.nb;ja(c[a])?c[a]=ja(b)?c[a]+b:c[a]+parseFloat(b):ka(c[a])&&(c[a]=ka(b)?c[a]+b:c[a]+b.toString())},h.ay=function(a,b){var c=this.nb;ja(c[a])&&(c[a]=ja(b)?c[a]-b:c[a]-parseFloat(b))},h.Mx=function(a,b){this.nb[a]=b?1:0},h.Xs=function(a){this.nb[a]=1-this.nb[a]},h.bs=function(){this.b.pe(this)},h.ps||(h.ps=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.Vj(this,b,!0);this.xd&&this.xd();if(this.R)for(a=0,
b=this.R.length;a<b;++a)c=this.R[a],c.xd&&c.xd()}),n.dx=function(a){var b=a.yf.c.length,c,e,g;c=0;for(e=this.b.ed.length;c<e;c++)g=this.b.ed[c],a.yf.D?0<=g.type.Ia.indexOf(a.yf)&&b++:g.type===a.yf&&b++;a.za(b)},n.Dx=function(a){a.za(a.yf.ca().Cc().length)},n.cy=function(a){a.za(this.uid)},n.hx=function(a){a.za(this.yh())},n.Sr||(n.Sr=function(a){a.Sb(JSON.stringify(this.b.Mn(this,!0)))}));a&&(e.nx=function(){return this.visible},h.Ts=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.qa=!0)},
e.Zr=function(a,b){return dc(lb(100*this.opacity),a,b)},h.Qs=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.qa=!0)},n.Opacity=function(a){a.u(lb(100*this.opacity))});r&&(e.jx=function(a){return a?this.j===a:!1},e.Cx=function(a){var b=this.ca(),c=b.Cc();if(!c.length)return!1;var e=c[0],g=e,d,l;d=1;for(l=c.length;d<l;d++)if(e=c[d],0===a){if(e.j.index>g.j.index||e.j.index===g.j.index&&e.Bd()>g.Bd())g=e}else if(e.j.index<g.j.index||e.j.index===g.j.index&&e.Bd()<g.Bd())g=
e;b.ki(g);return!0},h.wx=function(){var a=this.j,b=a.c;b.length&&b[b.length-1]===this||(a.Eg(this,!1),a.bh(this,!1),this.b.qa=!0)},h.ux=function(){var a=this.j,b=a.c;b.length&&b[0]===this||(a.Eg(this,!1),a.aw(this),this.b.qa=!0)},h.vx=function(a){a&&a!=this.j&&(this.j.Eg(this,!0),this.j=a,a.bh(this,!0),this.b.qa=!0)},h.gy=function(a,b){var c=0===a;if(b){var e=b.tp(this);e&&e.uid!==this.uid&&(this.j.index!==e.j.index&&(this.j.Eg(this,!0),this.j=e.j,e.j.bh(this,!0)),this.j.Kv(this,e,c),this.b.qa=!0)}},
n.qx=function(a){a.za(this.j.xq)},n.ox=function(a){a.Sb(this.j.name)},n.fy=function(a){a.za(this.Bd())});w&&(h.Nx=function(a,b){if(this.b.n){var c=this.type.pm(b);if(!(0>c)){var e=1===a;this.re[c]!==e&&(this.re[c]=e,this.td(),this.b.qa=!0)}}},h.Ox=function(a,b,c){if(this.b.n){var e=this.type.pm(a);0>e||(a=this.type.P[e],e=this.Oa[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.n.Vu(a.gb,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Ma&&(this.b.qa=!0))))}})};Jb=function(){this.Kl=this.Yi=!0;this.type.Si=!0;this.b.qa=
!0;var d,b,f=this.Hl;d=0;for(b=f.length;d<b;++d)f[d](this);this.j.Kc&&this.Ga()};Kb=function(d){d&&this.Hl.push(d)};Mb=function(){if(this.Yi){var d=this.Na,b=this.ic;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.Xb*this.width,-this.Yb*this.height);this.e?(d.offset(-this.x,-this.y),b.jr(d,this.e),b.offset(this.x,this.y),b.Uo(d)):b.Jg(d);d.normalize();this.Yi=!1;this.Mr()}};var f=new va(0,0,0,0);Nb=function(){if(this.j.Kc){var d=this.j.Ib,b=this.Na;f.set(d.fc(b.left),d.gc(b.top),
d.fc(b.right),d.gc(b.bottom));this.lc.mh(f)||(this.lc.right<this.lc.left?d.update(this,null,f):d.update(this,this.lc,f),this.lc.fh(f),this.j.qd=!0)}};Ob=function(){if(this.Kl&&this.ef){this.Ga();var d=this.type.fj,b=this.Na;f.set(d.fc(b.left),d.gc(b.top),d.fc(b.right),d.gc(b.bottom));this.Be.mh(f)||(this.Be.right<this.Be.left?d.update(this,null,f):d.update(this,this.Be,f),this.Be.fh(f),this.Kl=!1)}};Lb=function(d,b){return this.Na.Wb(d,b)&&this.ic.Wb(d,b)?this.na&&!this.na.jg()?(this.na.Sf(this.width,
this.height,this.e),this.na.Wb(d-this.x,b-this.y)):!0:!1};Eb=function(){this.type.hl();return this.of};Pb=function(){this.j.ko();return this.vd};Qb=function(){z(this.ja);var d,b,f,l=!0;d=0;for(b=this.re.length;d<b;d++)this.re[d]&&(f=this.type.P[d],this.ja.push(f),f.nd||(l=!1));this.Nr=!!this.ja.length;this.ie=l};Fb=function(){return"Inst"+this.Uq};sb=function(d){if(d&&d.uc&&d.type!=this){var b,f,l;b=0;for(f=d.siblings.length;b<f;b++)if(l=d.siblings[b],l.type==this)return l}d=this.ca().Cc();return d.length?
d[0]:null};tb=function(d){var b=this.ca().Cc();return b.length?b[d.yh()%b.length]:null};rb=function(){if(this.Mg&&!this.D){var d,b;d=0;for(b=this.c.length;d<b;d++)this.c[d].of=d;var f=d,l=this.b.ed;d=0;for(b=l.length;d<b;++d)l[d].type===this&&(l[d].of=f++);this.Mg=!1}};Cb=function(d){if(d<this.c.length)return this.c[d];d-=this.c.length;var b=this.b.ed,f,l;f=0;for(l=b.length;f<l;++f)if(b[f].type===this){if(0===d)return b[f];--d}return null};ub=function(){return this.We[this.Sd]};vb=function(){this.Sd++;
this.Sd===this.We.length?this.We.push(new qb(this)):this.We[this.Sd].ta=!0};wb=function(){this.Sd++;this.Sd===this.We.length&&this.We.push(new qb(this));var d=this.We[this.Sd],b=this.We[this.Sd-1];b.ta?d.ta=!0:(d.ta=!1,Ba(d.c,b.c),Ba(d.ka,b.ka))};xb=function(){this.Sd--};yb=function(d){var b,f,l,q,c,a=0;if(!this.D)for(b=0,f=this.Ia.length;b<f;b++)for(c=this.Ia[b],l=0,q=c.Za.length;l<q;l++){if(d===c.Za[l].name)return this.M.lastBehIndex=a,c.Za[l];a++}b=0;for(f=this.Za.length;b<f;b++){if(d===this.Za[b].name)return this.M.lastBehIndex=
a,this.Za[b];a++}return null};zb=function(d){return this.Aj(d)?this.M.lastBehIndex:-1};Ab=function(d){var b,f;b=0;for(f=this.P.length;b<f;b++)if(this.P[b].name===d)return b;return-1};Bb=function(){if(this.uc&&!this.D){var d,b,f,l,q,c,a;this.hl();c=this.ca();var r=c.ta,w=(d=this.b.Pb())&&d.tc&&d.tc.ld;d=0;for(b=this.rc.length;d<b;d++)if(q=this.rc[d],q!==this&&(q.hl(),a=q.ca(),a.ta=r,!r)){z(a.c);f=0;for(l=c.c.length;f<l;++f)a.c[f]=q.rm(c.c[f].of);if(w)for(z(a.ka),f=0,l=c.ka.length;f<l;++f)a.ka[f]=q.rm(c.ka[f].of)}}};
Db=function(){return"Type"+this.Z};dc=function(d,b,f){if("undefined"===typeof d||"undefined"===typeof f)return!1;switch(b){case 0:return d===f;case 1:return d!==f;case 2:return d<f;case 3:return d<=f;case 4:return d>f;case 5:return d>=f;default:return!1}}})();var mc={};function oc(f){this.b=f}
(function(){function f(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function d(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function b(a){a=a.toLowerCase();return Z.hasOwnProperty(a)&&Z[a].length?Z[a][0].Bc():t.destination}function p(){return t.createGain?t.createGain():t.createGainNode()}function l(a){return t.createDelay?t.createDelay(a):t.createDelayNode(a)}function q(a){a.start?a.start(0):a.noteOn(0)}function c(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,
b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function r(a,b,c,e,g,d){this.type="filter";this.md=[a,b,c,e,g,d];this.aa=p();this.O=p();this.O.gain.value=d;this.L=p();this.L.gain.value=1-d;this.$a=t.createBiquadFilter();this.$a.type="number"===typeof this.$a.type?a:Uc[a];this.$a.frequency.value=b;this.$a.detune&&(this.$a.detune.value=c);this.$a.Q.value=e;this.$a.gain.value=g;this.aa.connect(this.$a);this.aa.connect(this.L);this.$a.connect(this.O)}function w(a,b,c){this.type="delay";
this.md=[a,b,c];this.aa=p();this.O=p();this.O.gain.value=c;this.L=p();this.L.gain.value=1-c;this.ei=p();this.Oc=l(a);this.Oc.delayTime.value=a;this.nj=p();this.nj.gain.value=b;this.aa.connect(this.ei);this.aa.connect(this.L);this.ei.connect(this.O);this.ei.connect(this.Oc);this.Oc.connect(this.nj);this.nj.connect(this.ei)}function e(a,b,c,e){this.type="convolve";this.md=[b,c,e];this.aa=p();this.O=p();this.O.gain.value=c;this.L=p();this.L.gain.value=1-c;this.ff=t.createConvolver();a&&(this.ff.normalize=
b,this.ff.buffer=a);this.aa.connect(this.ff);this.aa.connect(this.L);this.ff.connect(this.O)}function h(a,b,c,e,g){this.type="flanger";this.md=[a,b,c,e,g];this.aa=p();this.L=p();this.L.gain.value=1-g/2;this.O=p();this.O.gain.value=g/2;this.tj=p();this.tj.gain.value=e;this.Oc=l(a+b);this.Oc.delayTime.value=a;this.Cb=t.createOscillator();this.Cb.frequency.value=c;this.wc=p();this.wc.gain.value=b;this.aa.connect(this.Oc);this.aa.connect(this.L);this.Oc.connect(this.O);this.Oc.connect(this.tj);this.tj.connect(this.Oc);
this.Cb.connect(this.wc);this.wc.connect(this.Oc.delayTime);q(this.Cb)}function n(a,b,c,e,g,d){this.type="phaser";this.md=[a,b,c,e,g,d];this.aa=p();this.L=p();this.L.gain.value=1-d/2;this.O=p();this.O.gain.value=d/2;this.$a=t.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.Cb=t.createOscillator();this.Cb.frequency.value=g;this.wc=p();this.wc.gain.value=e;this.aa.connect(this.$a);
this.aa.connect(this.L);this.$a.connect(this.O);this.Cb.connect(this.wc);this.wc.connect(this.$a.frequency);q(this.Cb)}function k(a){this.type="gain";this.md=[a];this.ea=p();this.ea.gain.value=a}function F(a,b){this.type="tremolo";this.md=[a,b];this.ea=p();this.ea.gain.value=1-b/2;this.Cb=t.createOscillator();this.Cb.frequency.value=a;this.wc=p();this.wc.gain.value=b/2;this.Cb.connect(this.wc);this.wc.connect(this.ea.gain);q(this.Cb)}function v(a,b){this.type="ringmod";this.md=[a,b];this.aa=p();this.O=
p();this.O.gain.value=b;this.L=p();this.L.gain.value=1-b;this.qi=p();this.qi.gain.value=0;this.Cb=t.createOscillator();this.Cb.frequency.value=a;this.Cb.connect(this.qi.gain);q(this.Cb);this.aa.connect(this.qi);this.aa.connect(this.L);this.qi.connect(this.O)}function O(a,b,c,e,g){this.type="distortion";this.md=[a,b,c,e,g];this.aa=p();this.xk=p();this.wk=p();this.uw(c,Math.pow(10,e/20));this.O=p();this.O.gain.value=g;this.L=p();this.L.gain.value=1-g;this.ol=t.createWaveShaper();this.lj=new Float32Array(65536);
this.Ju(a,b);this.ol.lj=this.lj;this.aa.connect(this.xk);this.aa.connect(this.L);this.xk.connect(this.ol);this.ol.connect(this.wk);this.wk.connect(this.O)}function g(a,b,c,e,g){this.type="compressor";this.md=[a,b,c,e,g];this.ea=t.createDynamicsCompressor();try{this.ea.threshold.value=a,this.ea.knee.value=b,this.ea.ratio.value=c,this.ea.attack.value=e,this.ea.release.value=g}catch(d){}}function m(a,b){this.type="analyser";this.md=[a,b];this.ea=t.createAnalyser();this.ea.fftSize=a;this.ea.smoothingTimeConstant=
b;this.Hu=new Float32Array(this.ea.frequencyBinCount);this.mr=new Uint8Array(a);this.ji=0}function J(){this.N=null;this.Xj=0;this.Xe=[];this.nn=this.Qj=this.Pj=0}function T(a,b){this.src=a;this.X=y;this.jd=b;this.Ri=!1;var c=this;this.ln=this.yn=null;this.Ag=[];this.Jk=0;this.oo=this.em=this.sr=this.rk=!1;1===y&&b&&(this.X=0,this.yn=p());this.$e=this.ma=null;var e;switch(this.X){case 0:this.ma=new Audio;this.ma.crossOrigin="anonymous";this.ma.addEventListener("canplaythrough",function(){c.oo=!0});
1===y&&t.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.sr=!0,this.ma.addEventListener("canplay",function(){c.ln||(c.ln=t.createMediaElementSource(c.ma),c.ln.connect(c.yn))}));this.ma.autoplay=!1;this.ma.ny="auto";this.ma.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){c.$e=e.response;c.Ct()};e.onerror=function(){c.em=!0};e.send();break;case 2:this.ma=!0;break;case 3:this.ma=!0}}function E(a,c){var e=this;this.tag=c;
this.xc=this.Yd=!0;this.src=a.src;this.buffer=a;this.X=y;this.jd=a.jd;this.playbackRate=1;this.fg=!0;this.vc=this.Jc=!1;this.mc=0;this.Mh=this.lg=this.Dd=!1;this.volume=1;this.wn=function(a){if(!e.vc&&!e.Jc){var b=this;b||(b=a.target);b===e.Qi&&(e.fg=!0,e.xc=!0,Y=e.tag,x.trigger(oc.prototype.k.Oi,u))}};this.Qi=null;this.hg=1===R&&!this.jd||2===R;this.ug=1;this.startTime=this.hg?x.bb.W:x.ne.W;this.Xa=this.lb=null;this.Ed=!1;this.Wa=null;this.Kq=this.Jq=this.Iq=this.Hq=this.Mq=this.Lq=0;this.i=null;
var g=!1;1!==this.X||0!==this.buffer.X||this.buffer.sr||(this.X=0);switch(this.X){case 0:this.jd?(this.i=a.ma,g=!a.Ri,a.Ri=!0):(this.i=new Audio,this.i.crossOrigin="anonymous",this.i.autoplay=!1,this.i.src=a.ma.src,g=!0);g&&this.i.addEventListener("ended",function(){Y=e.tag;e.xc=!0;x.trigger(oc.prototype.k.Oi,u)});break;case 1:this.lb=p();this.lb.connect(b(c));1===this.buffer.X?a.ma&&(this.i=t.createBufferSource(),this.i.buffer=a.ma,this.i.connect(this.lb)):(this.i=this.buffer.ma,this.buffer.yn.connect(this.lb),
this.buffer.Ri||(this.buffer.Ri=!0,this.buffer.ma.addEventListener("ended",function(){Y=e.tag;e.xc=!0;x.trigger(oc.prototype.k.Oi,u)})));break;case 2:this.i=new window.Media(U+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(e.fg=!0,e.xc=!0,Y=e.tag,x.trigger(oc.prototype.k.Oi,u))});break;case 3:this.i=!0}}function A(a,b){var c=a.Le()?1:0,e=b.Le()?1:0;return c===e?0:c<e?1:-1}function H(a,b){z(ba);if(a.length){var c,e,g;c=0;for(e=L.length;c<e;c++)g=L[c],mb(a,g.tag)&&ba.push(g);b&&ba.sort(A)}else G&&
!G.eg()&&(z(ba),ba[0]=G)}function B(a,b){Z.hasOwnProperty(a)?Z[a].push(b):Z[a]=[b];var c,e,g,d,f=t.destination;if(Z.hasOwnProperty(a)&&(g=Z[a],g.length))for(f=g[0].Bc(),c=0,e=g.length;c<e;c++)d=g[c],c+1===e?d.Lc(t.destination):d.Lc(g[c+1].Bc());H(a);c=0;for(e=ba.length;c<e;c++)ba[c].fw(f);Pa&&Gb===a&&(Pa.disconnect(),Pa.connect(f))}function N(){}function K(){}function S(){}var I=oc.prototype;I.La=function(a){this.ga=a;this.b=a.b};I.La.prototype.fa=function(){};var x=null,u=null,Y="",U="",y=0,t=null,
M=[],L=[],G=null,C=!1,R=0,ea=!1,P=1,na=0,ia=0,Ka=1,Ga=1,Fc=10,Gc=1E4,Hc=1,Pa=null,Gb="",ab=!1,bb=[],Z={},Uc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");r.prototype.Lc=function(a){this.O.disconnect();this.O.connect(a);this.L.disconnect();this.L.connect(a)};r.prototype.remove=function(){this.aa.disconnect();this.$a.disconnect();this.O.disconnect();this.L.disconnect()};r.prototype.Bc=function(){return this.aa};w.prototype.Lc=function(a){this.O.disconnect();this.O.connect(a);
this.L.disconnect();this.L.connect(a)};w.prototype.remove=function(){this.aa.disconnect();this.ei.disconnect();this.Oc.disconnect();this.nj.disconnect();this.O.disconnect();this.L.disconnect()};w.prototype.Bc=function(){return this.aa};e.prototype.Lc=function(a){this.O.disconnect();this.O.connect(a);this.L.disconnect();this.L.connect(a)};e.prototype.remove=function(){this.aa.disconnect();this.ff.disconnect();this.O.disconnect();this.L.disconnect()};e.prototype.Bc=function(){return this.aa};h.prototype.Lc=
function(a){this.L.disconnect();this.L.connect(a);this.O.disconnect();this.O.connect(a)};h.prototype.remove=function(){this.aa.disconnect();this.Oc.disconnect();this.Cb.disconnect();this.wc.disconnect();this.L.disconnect();this.O.disconnect();this.tj.disconnect()};h.prototype.Bc=function(){return this.aa};n.prototype.Lc=function(a){this.L.disconnect();this.L.connect(a);this.O.disconnect();this.O.connect(a)};n.prototype.remove=function(){this.aa.disconnect();this.$a.disconnect();this.Cb.disconnect();
this.wc.disconnect();this.L.disconnect();this.O.disconnect()};n.prototype.Bc=function(){return this.aa};k.prototype.Lc=function(a){this.ea.disconnect();this.ea.connect(a)};k.prototype.remove=function(){this.ea.disconnect()};k.prototype.Bc=function(){return this.ea};F.prototype.Lc=function(a){this.ea.disconnect();this.ea.connect(a)};F.prototype.remove=function(){this.Cb.disconnect();this.wc.disconnect();this.ea.disconnect()};F.prototype.Bc=function(){return this.ea};v.prototype.Lc=function(a){this.O.disconnect();
this.O.connect(a);this.L.disconnect();this.L.connect(a)};v.prototype.remove=function(){this.Cb.disconnect();this.qi.disconnect();this.aa.disconnect();this.O.disconnect();this.L.disconnect()};v.prototype.Bc=function(){return this.aa};O.prototype.uw=function(a,b){.01>a&&(a=.01);this.xk.gain.value=a;this.wk.gain.value=Math.pow(1/a,.6)*b};O.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};O.prototype.Ju=function(a,b){for(var c=Math.pow(10,
a/20),e=Math.pow(10,b/20),g=0,d=0;32768>d;++d)g=d/32768,g=this.shape(g,c,e),this.lj[32768+d]=g,this.lj[32768-d-1]=-g};O.prototype.Lc=function(a){this.O.disconnect();this.O.connect(a);this.L.disconnect();this.L.connect(a)};O.prototype.remove=function(){this.aa.disconnect();this.xk.disconnect();this.ol.disconnect();this.wk.disconnect();this.O.disconnect();this.L.disconnect()};O.prototype.Bc=function(){return this.aa};g.prototype.Lc=function(a){this.ea.disconnect();this.ea.connect(a)};g.prototype.remove=
function(){this.ea.disconnect()};g.prototype.Bc=function(){return this.ea};m.prototype.Fa=function(){this.ea.getFloatFrequencyData(this.Hu);this.ea.getByteTimeDomainData(this.mr);for(var a=this.ea.fftSize,b=0,c=this.ji=0,e=0;b<a;b++)e=(this.mr[b]-128)/128,0>e&&(e=-e),this.ji<e&&(this.ji=e),c+=e*e;this.ji=d(this.ji);d(Math.sqrt(c/a))};m.prototype.Lc=function(a){this.ea.disconnect();this.ea.connect(a)};m.prototype.remove=function(){this.ea.disconnect()};m.prototype.Bc=function(){return this.ea};J.prototype.ri=
function(a){if(this.N=a)this.Pj=this.N.x,this.Qj=this.N.y;z(this.Xe)};J.prototype.Gj=function(){return!!this.N};J.prototype.Fa=function(a){this.N&&0!==a&&(this.nn=Na(this.Pj,this.Qj,this.N.x,this.N.y),a=Ta(this.Pj,this.Qj,this.N.x,this.N.y)/a,4>this.Xe.length||this.Xe.shift(),this.Xe.push(a),this.Pj=this.N.x,this.Qj=this.N.y)};J.prototype.wp=function(){if(!this.Xe.length)return 0;var a,b,c=0;a=0;for(b=this.Xe.length;a<b;a++)c+=this.Xe[a];return c/this.Xe.length};J.prototype.ym=function(){return Math.cos(this.nn)*
this.wp()};J.prototype.zm=function(){return Math.sin(this.nn)*this.wp()};var Ic=!1;T.prototype.Ct=function(){if(!this.ma&&this.$e){var a=this;if(t.decodeAudioData)t.decodeAudioData(this.$e,function(b){a.ma=b;a.$e=null;var c,e,g;if(ha(a.tk)||ea)ha(a.hj)||(c=a.hj.ff,c.normalize=a.wq,c.buffer=b);else if(a.Ag.length){c=0;for(e=a.Ag.length;c<e;c++){b=a.Ag[c];g=new E(a,b.wr);g.Lk(!0);if("undefined"!==typeof b.yq&&(b.N=x.wh(b.yq),!b.N))continue;if(b.N){var d=Sa(b.N.x,b.N.y,-b.N.j.mb(),na,ia,!0),f=Sa(b.N.x,
b.N.y,-b.N.j.mb(),na,ia,!1);g.Qn(d,f,Ha(b.N.e-b.N.j.mb()),b.Fm,b.pn,b.sn);g.ri(b.N)}else g.Qn(b.x,b.y,b.gt,b.Fm,b.pn,b.sn);g.play(a.hn,a.no,a.Jk);a.rk&&g.pause();L.push(g)}z(a.Ag)}else g=new E(a,a.tk||""),g.play(a.hn,a.no,a.Jk),a.rk&&g.pause(),L.push(g)},function(){a.em=!0});else if(this.ma=t.createBuffer(this.$e,!1),this.$e=null,ha(this.tk)||ea)ha(this.hj)||(b=this.hj.ff,b.normalize=this.wq,b.buffer=this.ma);else{var b=new E(this,this.tk);b.play(this.hn,this.no,this.Jk);this.rk&&b.pause();L.push(b)}}};
T.prototype.Jp=function(){switch(this.X){case 0:var a=4<=this.ma.readyState;a&&(this.oo=!0);return a||this.oo;case 1:return!!this.$e||!!this.ma;case 2:return!0;case 3:return!0}return!1};T.prototype.xv=function(){switch(this.X){case 0:return this.Jp();case 1:return!!this.ma;case 2:return!0;case 3:return!0}return!1};T.prototype.ov=function(){switch(this.X){case 0:return!!this.ma.error;case 1:return this.em}return!1};E.prototype.eg=function(){switch(this.X){case 0:return this.i.ended;case 1:return 1===
this.buffer.X?!this.Yd&&!this.xc&&this.i.loop||this.vc?!1:this.fg:this.i.ended;case 2:return this.fg;case 3:!0}return!0};E.prototype.wt=function(){return this.Yd||this.xc?!0:this.eg()};E.prototype.Lk=function(a){1===y&&(!this.Ed&&a?this.lb&&(this.Xa||(this.Xa=t.createPanner(),this.Xa.panningModel="number"===typeof this.Xa.panningModel?Ka:["equalpower","HRTF","soundfield"][Ka],this.Xa.distanceModel="number"===typeof this.Xa.distanceModel?Ga:["linear","inverse","exponential"][Ga],this.Xa.refDistance=
Fc,this.Xa.maxDistance=Gc,this.Xa.rolloffFactor=Hc),this.lb.disconnect(),this.lb.connect(this.Xa),this.Xa.connect(b(this.tag)),this.Ed=!0):this.Ed&&!a&&this.lb&&(this.Xa.disconnect(),this.lb.disconnect(),this.lb.connect(b(this.tag)),this.Ed=!1))};E.prototype.Qn=function(a,b,c,e,g,d){this.Ed&&1===y&&(this.Xa.setPosition(a,b,0),this.Xa.setOrientation(Math.cos(D(c)),Math.sin(D(c)),0),this.Xa.coneInnerAngle=e,this.Xa.coneOuterAngle=g,this.Xa.coneOuterGain=d,this.Lq=a,this.Mq=b,this.Hq=c,this.Iq=e,this.Jq=
g,this.Kq=d)};E.prototype.ri=function(a){this.Ed&&1===y&&(this.Wa||(this.Wa=new J),this.Wa.ri(a))};E.prototype.Fa=function(a){if(this.Ed&&1===y&&this.Wa&&this.Wa.Gj()&&this.Le()){this.Wa.Fa(a);a=this.Wa.N;var b=Sa(a.x,a.y,-a.j.mb(),na,ia,!0),c=Sa(a.x,a.y,-a.j.mb(),na,ia,!1);this.Xa.setPosition(b,c,0);b=0;"undefined"!==typeof this.Wa.N.e&&(b=a.e-a.j.mb(),this.Xa.setOrientation(Math.cos(b),Math.sin(b),0));b=Sa(this.Wa.ym(),this.Wa.zm(),-a.j.mb(),0,0,!0);c=Sa(this.Wa.ym(),this.Wa.zm(),-a.j.mb(),0,0,
!1);this.Xa.setVelocity(b,c,0)}};E.prototype.play=function(a,b,e){var g=this.i;this.Dd=a;this.volume=b;e=e||0;switch(this.X){case 0:1!==g.playbackRate&&(g.playbackRate=1);g.volume!==b*P&&(g.volume=b*P);g.loop!==a&&(g.loop=a);g.muted&&(g.muted=!1);if(g.currentTime!==e)try{g.currentTime=e}catch(d){}if(this.jd&&ab&&!x.Cd)bb.push(this);else try{this.i.play()}catch(f){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",f)}break;case 1:this.muted=!1;
this.ug=1;if(1===this.buffer.X)this.lb.gain.value=b*P,this.Yd||(this.i=t.createBufferSource(),this.i.buffer=this.buffer.ma,this.i.connect(this.lb)),this.i.onended=this.wn,this.Qi=this.i,this.i.loop=a,this.fg=!1,0===e?q(this.i):c(this.i,e,this.He());else{1!==g.playbackRate&&(g.playbackRate=1);g.loop!==a&&(g.loop=a);g.volume=b*P;if(g.currentTime!==e)try{g.currentTime=e}catch(l){}this.jd&&ab&&!x.Cd?bb.push(this):g.play()}break;case 2:(!this.Yd&&this.xc||0!==e)&&g.seekTo(e);g.play();this.fg=!1;break;
case 3:x.Zb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.hg?x.bb.W:x.ne.W)-e;this.vc=this.xc=this.Yd=!1};E.prototype.stop=function(){switch(this.X){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.X?a(this.i):this.i.paused||this.i.pause();break;case 2:this.i.stop();break;case 3:x.Zb&&AppMobi.context.stopSound(this.src)}this.xc=!0;this.vc=!1};E.prototype.pause=function(){if(!(this.Yd||this.xc||this.eg()||this.vc)){switch(this.X){case 0:this.i.paused||
this.i.pause();break;case 1:1===this.buffer.X?(this.mc=this.vm(!0),this.Dd&&(this.mc=this.mc%this.He()),this.vc=!0,a(this.i)):this.i.paused||this.i.pause();break;case 2:this.i.pause();break;case 3:x.Zb&&AppMobi.context.stopSound(this.src)}this.vc=!0}};E.prototype.Xq=function(){if(!(this.Yd||this.xc||this.eg())&&this.vc){switch(this.X){case 0:this.i.play();break;case 1:1===this.buffer.X?(this.i=t.createBufferSource(),this.i.buffer=this.buffer.ma,this.i.connect(this.lb),this.i.onended=this.wn,this.Qi=
this.i,this.i.loop=this.Dd,this.lb.gain.value=P*this.volume*this.ug,this.il(),this.startTime=(this.hg?x.bb.W:x.ne.W)-this.mc/(this.playbackRate||.001),c(this.i,this.mc,this.He())):this.i.play();break;case 2:this.i.play();break;case 3:x.Zb&&AppMobi.context.resumeSound(this.src)}this.vc=!1}};E.prototype.seek=function(a){if(!(this.Yd||this.xc||this.eg()))switch(this.X){case 0:try{this.i.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.X)this.vc?this.mc=a:(this.pause(),this.mc=a,this.Xq());else try{this.i.currentTime=
a}catch(c){}break;case 3:x.Zb&&AppMobi.context.seekSound(this.src,a)}};E.prototype.fw=function(a){1===this.X&&(this.Ed?(this.Xa.disconnect(),this.Xa.connect(a)):(this.lb.disconnect(),this.lb.connect(a)))};E.prototype.He=function(){var a=0;switch(this.X){case 0:"undefined"!==typeof this.i.duration&&(a=this.i.duration);break;case 1:a=this.buffer.ma.duration;break;case 2:a=this.i.getDuration();break;case 3:x.Zb&&(a=AppMobi.context.getDurationSound(this.src))}return a};E.prototype.vm=function(a){var b=
this.He(),c=0;switch(this.X){case 0:"undefined"!==typeof this.i.currentTime&&(c=this.i.currentTime);break;case 1:if(1===this.buffer.X){if(this.vc)return this.mc;c=(this.hg?x.bb.W:x.ne.W)-this.startTime}else"undefined"!==typeof this.i.currentTime&&(c=this.i.currentTime);break;case 3:x.Zb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Dd&&c>b&&(c=b);return c};E.prototype.Le=function(){return!this.vc&&!this.Yd&&!this.xc&&!this.eg()};E.prototype.Bw=function(a){this.volume=
a;this.Lr()};E.prototype.Lr=function(){var a=this.volume*P;isFinite(a)||(a=0);switch(this.X){case 0:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a);break;case 1:1===this.buffer.X?this.lb.gain.value=a*this.ug:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a)}};E.prototype.qj=function(a){switch(this.X){case 0:this.i.muted!==!!a&&(this.i.muted=!!a);break;case 1:1===this.buffer.X?(this.ug=a?0:1,this.lb.gain.value=P*this.volume*this.ug):this.i.muted!==!!a&&
(this.i.muted=!!a)}};E.prototype.dr=function(a){this.lg=!!a;this.qj(this.lg||this.Mh)};E.prototype.er=function(a){this.Mh=!!a;this.qj(this.lg||this.Mh)};E.prototype.il=function(){var a=this.playbackRate;this.hg&&(a*=x.Hf);switch(this.X){case 0:this.i.playbackRate!==a&&(this.i.playbackRate=a);break;case 1:1===this.buffer.X?this.i.playbackRate.value!==a&&(this.i.playbackRate.value=a):this.i.playbackRate!==a&&(this.i.playbackRate=a)}};E.prototype.yw=function(b){switch(this.X){case 0:b?this.Le()?(this.Jc=
!0,this.i.pause()):this.Jc=!1:this.Jc&&(this.i.play(),this.Jc=!1);break;case 1:b?this.Le()?(this.Jc=!0,1===this.buffer.X?(this.mc=this.vm(!0),this.Dd&&(this.mc=this.mc%this.He()),a(this.i)):this.i.pause()):this.Jc=!1:this.Jc&&(1===this.buffer.X?(this.i=t.createBufferSource(),this.i.buffer=this.buffer.ma,this.i.connect(this.lb),this.i.onended=this.wn,this.Qi=this.i,this.i.loop=this.Dd,this.lb.gain.value=P*this.volume*this.ug,this.il(),this.startTime=(this.hg?x.bb.W:x.ne.W)-this.mc/(this.playbackRate||
.001),c(this.i,this.mc,this.He())):this.i.play(),this.Jc=!1);break;case 2:b?this.Le()?(this.i.pause(),this.Jc=!0):this.Jc=!1:this.Jc&&(this.Jc=!1,this.i.play())}};I.ya=function(a){this.type=a;x=this.b=a.b;u=this;this.ac=null;this.Wh=-600;!(this.b.Oh||this.b.Ij&&(this.b.Fh||this.b.Jj))||this.b.Gh||this.b.Va||this.b.Pm||(ab=!0);t=null;"undefined"!==typeof AudioContext?(y=1,t=new AudioContext):"undefined"!==typeof webkitAudioContext&&(y=1,t=new webkitAudioContext);ab&&document.addEventListener("touchend",
function(){if(!Ic&&t){var a=t.createBuffer(1,1,22050),b=t.createBufferSource();b.buffer=a;b.connect(t.destination);q(b);Ic=!0}var c;if(ab){if(!ea)for(a=0,b=bb.length;a<b;++a)c=bb[a],c.xc||c.vc||c.i.play();z(bb)}},!0);1!==y&&(this.b.Fc&&"undefined"!==typeof window.Media?y=2:this.b.Ip&&(y=3));2===y&&(U=location.href,a=U.lastIndexOf("/"),-1<a&&(U=U.substr(0,a+1)),U=U.replace("file://",""));if(this.b.Kp&&this.b.yv&&"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.pe(this);else{if(this.b.Zb)C=this.b.Ij;else try{C=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){C=!1}this.b.Pg(this)}};var Aa=I.ya.prototype;Aa.fa=function(){this.b.Rf=this;R=this.I[0];this.he=this.I[1];this.Uv=0!==this.I[2];Ka=this.I[3];Ga=this.I[4];this.Wh=-this.I[5];Fc=this.I[6];Gc=this.I[7];Hc=this.I[8];this.ac=new J;var a=this.b.K||this.b.width,c=this.b.J||this.b.height;1===y&&("undefined"!==typeof t.listener.dopplerFactor&&(t.listener.dopplerFactor=0),t.listener.setPosition(a/
2,c/2,this.Wh),t.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,c){Pa&&Pa.disconnect();Gb=c.toLowerCase();Pa=t.createMediaStreamSource(a);Pa.connect(b(Gb))});this.b.lt(function(a){u.Sv(a)});var e=this;this.b.Cl(function(a){e.tn(a)})};Aa.tn=function(a){var b,c,e;b=0;for(c=L.length;b<c;b++)e=L[b],e.Wa&&e.Wa.N===a&&(e.Wa.N=null,e.Ed&&e.Le()&&e.Dd&&e.stop());this.ac.N===a&&(this.ac.N=null)};Aa.fb=function(){var a={silent:ea,masterVolume:P,listenerZ:this.Wh,listenerUid:this.ac.Gj()?
this.ac.N.uid:-1,playing:[],effects:{}},b=a.playing,c,e,g,d,f,l;c=0;for(e=L.length;c<e;c++)g=L[c],!g.Le()||3===this.he||g.jd&&1===this.he||!g.jd&&2===this.he||(d=g.vm(),g.Dd&&(d=d%g.He()),d={tag:g.tag,buffersrc:g.buffer.src,is_music:g.jd,playbackTime:d,volume:g.volume,looping:g.Dd,muted:g.lg,playbackRate:g.playbackRate,paused:g.vc,resume_position:g.mc},g.Ed&&(d.pan={},l=d.pan,g.Wa&&g.Wa.Gj()?l.objUid=g.Wa.N.uid:(l.x=g.Lq,l.y=g.Mq,l.a=g.Hq),l.ia=g.Iq,l.oa=g.Jq,l.og=g.Kq),b.push(d));b=a.effects;for(f in Z)if(Z.hasOwnProperty(f)){g=
[];c=0;for(e=Z[f].length;c<e;c++)g.push({type:Z[f][c].type,params:Z[f][c].md});b[f]=g}return a};var cb=[];Aa.Ab=function(a){var b=a.silent;P=a.masterVolume;this.Wh=a.listenerZ;this.ac.ri(null);var c=a.listenerUid;-1!==c&&(this.ac.Xj=c,cb.push(this.ac));var c=a.playing,d,f,l,p,q,A,E,T,u,t,H;if(3!==this.he)for(d=0,f=L.length;d<f;d++)u=L[d],u.jd&&1===this.he||(u.jd||2!==this.he)&&u.stop();for(q in Z)if(Z.hasOwnProperty(q))for(d=0,f=Z[q].length;d<f;d++)Z[q][d].remove();Wa(Z);for(q in a.effects)if(a.effects.hasOwnProperty(q))for(A=
a.effects[q],d=0,f=A.length;d<f;d++)switch(l=A[d].type,t=A[d].params,l){case "filter":B(q,new r(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "delay":B(q,new w(t[0],t[1],t[2]));break;case "convolve":l=t[2];u=this.zj(l,!1);u.ma?l=new e(u.ma,t[0],t[1],l):(l=new e(null,t[0],t[1],l),u.wq=t[0],u.hj=l);B(q,l);break;case "flanger":B(q,new h(t[0],t[1],t[2],t[3],t[4]));break;case "phaser":B(q,new n(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "gain":B(q,new k(t[0]));break;case "tremolo":B(q,new F(t[0],t[1]));break;
case "ringmod":B(q,new v(t[0],t[1]));break;case "distortion":B(q,new O(t[0],t[1],t[2],t[3],t[4]));break;case "compressor":B(q,new g(t[0],t[1],t[2],t[3],t[4]));break;case "analyser":B(q,new m(t[0],t[1]))}d=0;for(f=c.length;d<f;d++)3===this.he||(a=c[d],l=a.buffersrc,p=a.is_music,q=a.tag,A=a.playbackTime,E=a.looping,T=a.volume,H=(t=a.pan)&&t.hasOwnProperty("objUid")?t.objUid:-1,p&&1===this.he)||!p&&2===this.he||((u=this.lm(l,q,p,E,T))?(u.mc=a.resume_position,u.Lk(!!t),u.play(E,T,A),u.il(),u.Lr(),u.qj(u.lg||
u.Mh),a.paused&&u.pause(),a.muted&&u.dr(!0),u.qj(u.lg||u.Mh),t&&(-1!==H?(u.Wa=u.Wa||new J,u.Wa.Xj=H,cb.push(u.Wa)):u.Qn(t.x,t.y,t.a,t.ia,t.oa,t.og))):(u=this.zj(l,p),u.Jk=A,u.rk=a.paused,t&&(-1!==H?u.Ag.push({yq:H,Fm:t.ia,pn:t.oa,sn:t.og,wr:q}):u.Ag.push({x:t.x,y:t.y,gt:t.a,Fm:t.ia,pn:t.oa,sn:t.og,wr:q}))));if(b&&!ea){d=0;for(f=L.length;d<f;d++)L[d].er(!0);ea=!0}else if(!b&&ea){d=0;for(f=L.length;d<f;d++)L[d].er(!1);ea=!1}};Aa.xd=function(){var a,b,c,e;a=0;for(b=cb.length;a<b;a++)c=cb[a],e=this.b.wh(c.Xj),
c.ri(e),c.Xj=-1,e&&(na=e.x,ia=e.y);z(cb)};Aa.Sv=function(a){if(!this.Uv){!a&&t&&t.resume&&t.resume();var b,c;b=0;for(c=L.length;b<c;b++)L[b].yw(a);a&&t&&t.suspend&&t.suspend()}};Aa.Fa=function(){var a=this.b.Ud,b,c,e;b=0;for(c=L.length;b<c;b++)e=L[b],e.Fa(a),0!==R&&e.il();var g,d;for(g in Z)if(Z.hasOwnProperty(g))for(e=Z[g],b=0,c=e.length;b<c;b++)d=e[b],d.Fa&&d.Fa();1===y&&this.ac.Gj()&&(this.ac.Fa(a),na=this.ac.N.x,ia=this.ac.N.y,t.listener.setPosition(this.ac.N.x,this.ac.N.y,this.Wh),t.listener.setVelocity(this.ac.ym(),
this.ac.zm(),0))};var db=[];Aa.ww=function(a){var b,c,e,g,d,f=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],g=e[0],e=2*e[1],(d=4<g.length&&".ogg"===g.substr(g.length-4))&&C||!d&&!C)db.push({filename:g,size:e,N:null}),f+=e;return f};Aa.Dw=function(){var a,b,c,e;a=0;for(b=db.length;a<b;++a)c=db[a],e=this.b.uj+c.filename,c.N=this.zj(e,!1)};Aa.Su=function(){var a=0,b,c,e;b=0;for(c=db.length;b<c;++b)e=db[b],e.N.xv()||e.N.ov()||this.b.Va||this.b.Jj?a+=e.size:e.N.Jp()&&(a+=Math.floor(e.size/2));return a};Aa.zj=
function(a,b){var c,e,g,d=null;c=0;for(e=M.length;c<e;c++)if(g=M[c],g.src===a){d=g;break}d||(d=new T(a,b),M.push(d));return d};Aa.lm=function(a,b,c,e,g){var d,f,l;d=0;for(f=L.length;d<f;d++)if(l=L[d],l.src===a&&(l.wt()||c))return l.tag=b,l;a=this.zj(a,c);if(!a.ma)return"<preload>"!==b&&(a.tk=b,a.hn=e,a.no=g),null;l=new E(a,b);L.push(l);return l};var ba=[];N.prototype.Oi=function(a){return mb(Y,a)};I.k=new N;K.prototype.Play=function(a,b,c,e){!ea&&(c=f(c),G=this.lm(this.b.uj+a[0]+(C?".ogg":".m4a"),
e,a[1],0!==b,c))&&(G.Lk(!1),G.play(0!==b,c))};K.prototype.zl=function(a,b,c,e,g){!ea&&(e=f(e),G=this.lm(this.b.uj+b.toLowerCase()+(C?".ogg":".m4a"),g,1===a,0!==c,e))&&(G.Lk(!1),G.play(0!==c,e))};K.prototype.Ps=function(a,b){H(a);var c,e;c=0;for(e=ba.length;c<e;c++)ba[c].dr(0===b)};K.prototype.Al=function(a,b){H(a);var c=f(b),e,g;e=0;for(g=ba.length;e<g;e++)ba[e].Bw(c)};K.prototype.Wg=function(a){H(a);var b;a=0;for(b=ba.length;a<b;a++)ba[a].stop()};K.prototype.Fo=function(a,b){H(a);var c,e;c=0;for(e=
ba.length;c<e;c++)0===b?ba[c].pause():ba[c].Xq()};I.H=new K;S.prototype.cs=function(a,b){H(b,!0);ba.length?a.u(ba[0].He()):a.u(0)};S.prototype.$s=function(a,b){H(b,!0);ba.length?a.u(d(ba[0].volume)):a.u(0)};I.ua=new S})();function pc(f){this.b=f}
(function(){function f(b){this.Ca=b;this.Ma=!1;this.e=this.speed=this.y=this.x=0;this.opacity=1;this.te=this.dg=this.size=this.Dj=0}var d=pc.prototype;d.La=function(b){this.ga=b;this.b=b.b};var b=d.La.prototype;b.fa=function(){this.D||(this.F=new Image,this.F.Rl=this.bl,this.C=null,this.b.nl(this.F,this.Fi))};b.gi=function(){this.D||(this.C=null)};b.hi=function(){this.D||!this.c.length||this.C||(this.C=this.b.n.Oe(this.F,!0,this.b.T,this.Ff))};b.Xh=function(){this.D||this.C||!this.b.n||(this.C=this.b.n.Oe(this.F,
!0,this.b.T,this.Ff))};b.Ji=function(){this.D||this.c.length||!this.C||(this.b.n.deleteTexture(this.C),this.C=null)};b.mi=function(b){b.drawImage(this.F,0,0)};f.prototype.init=function(){var b=this.Ca;this.x=b.x-b.pl/2+Math.random()*b.pl;this.y=b.y-b.ql/2+Math.random()*b.ql;this.speed=b.Lm-b.Sk/2+Math.random()*b.Sk;this.e=b.e-b.Tk/2+Math.random()*b.Tk;this.opacity=b.Jm;this.size=b.Km-b.Qk/2+Math.random()*b.Qk;this.Dj=b.Cm-b.Ej/2+Math.random()*b.Ej;this.te=this.dg=0};f.prototype.Fa=function(b){var d=
this.Ca;this.x+=Math.cos(this.e)*this.speed*b;this.y+=Math.sin(this.e)*this.speed*b;this.y+=this.dg*b;this.speed+=d.Bl*b;this.size+=this.Dj*b;this.dg+=d.km*b;this.te+=b;1>this.size?this.Ma=!1:(0!==d.Th&&(this.e+=Math.random()*d.Th*b-d.Th*b/2),0!==d.Vh&&(this.speed+=Math.random()*d.Vh*b-d.Vh*b/2),0!==d.Uh&&(this.opacity+=Math.random()*d.Uh*b-d.Uh*b/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=d.Xf&&this.te>=d.timeout&&(this.Ma=!1),2===d.Xf&&0>=this.speed&&(this.Ma=!1))};f.prototype.Pc=
function(b){var d=this.Ca.opacity*this.opacity;if(0!==d){0===this.Ca.Xf&&(d*=1-this.te/this.Ca.timeout);b.globalAlpha=d;var d=this.x-this.size/2,c=this.y-this.size/2;this.Ca.b.Hc&&(d=d+.5|0,c=c+.5|0);b.drawImage(this.Ca.type.F,d,c,this.size,this.size)}};f.prototype.Nb=function(b){var d=this.Ca.opacity*this.opacity;0===this.Ca.Xf&&(d*=1-this.te/this.Ca.timeout);var c=this.size,a=c*this.Ca.Pq,f=this.x-c/2,p=this.y-c/2;this.Ca.b.Hc&&(f=f+.5|0,p=p+.5|0);1>a||0===d||(a<b.Jv||a>b.jn?(b.Ue(d),b.Dg(f,p,f+
c,p,f+c,p+c,f,p+c)):b.Vv(this.x,this.y,a,d))};f.prototype.left=function(){return this.x-this.size/2};f.prototype.right=function(){return this.x+this.size/2};f.prototype.top=function(){return this.y-this.size/2};f.prototype.bottom=function(){return this.y+this.size/2};d.ya=function(b){this.type=b;this.b=b.b};var b=d.ya.prototype,p=[];b.fa=function(){var b=this.I;this.Ck=b[0];this.Tk=D(b[1]);this.Kg=b[2];this.Vn=!0;this.Lm=b[3];this.Km=b[4];this.Jm=b[5]/100;this.Cm=b[6];this.pl=b[7];this.ql=b[8];this.Sk=
b[9];this.Qk=b[10];this.Ej=b[11];this.Bl=b[12];this.km=b[13];this.Th=b[14];this.Vh=b[15];this.Uh=b[16];this.Xf=b[17];this.timeout=b[18];this.Af=0;this.Pq=1;this.ok=this.x;this.qk=this.y;this.pk=this.x;this.nk=this.y;this.mt(function(b){b.Na.set(b.ok,b.qk,b.pk,b.nk);b.ic.Jg(b.Na);b.Yi=!1;b.lo();b.Mr()});this.Ic||(this.cc=[]);this.b.Pg(this);this.type.Xh();if(1===this.Kg)for(b=0;b<this.Ck;b++)this.Dl().opacity=0;this.wj=!0};b.fb=function(){var b={r:this.Ck,sc:this.Tk,st:this.Kg,s:this.Vn,isp:this.Lm,
isz:this.Km,io:this.Jm,gr:this.Cm,xr:this.pl,yr:this.ql,spr:this.Sk,szr:this.Qk,grnd:this.Ej,acc:this.Bl,g:this.km,lar:this.Th,lsr:this.Vh,lor:this.Uh,dm:this.Xf,to:this.timeout,pcc:this.Af,ft:this.wj,p:[]},d,c,a,f=b.p;d=0;for(c=this.cc.length;d<c;d++)a=this.cc[d],f.push([a.x,a.y,a.speed,a.e,a.opacity,a.Dj,a.size,a.dg,a.te]);return b};b.Ab=function(b){this.Ck=b.r;this.Tk=b.sc;this.Kg=b.st;this.Vn=b.s;this.Lm=b.isp;this.Km=b.isz;this.Jm=b.io;this.Cm=b.gr;this.pl=b.xr;this.ql=b.yr;this.Sk=b.spr;this.Qk=
b.szr;this.Ej=b.grnd;this.Bl=b.acc;this.km=b.g;this.Th=b.lar;this.Vh=b.lsr;this.Uh=b.lor;this.Xf=b.dm;this.timeout=b.to;this.Af=b.pcc;this.wj=b.ft;p.push.apply(p,this.cc);z(this.cc);var d,c,a,f=b.p;b=0;for(d=f.length;b<d;b++)c=this.Dl(),a=f[b],c.x=a[0],c.y=a[1],c.speed=a[2],c.e=a[3],c.opacity=a[4],c.Dj=a[5],c.size=a[6],c.dg=a[7],c.te=a[8]};b.zf=function(){p.push.apply(p,this.cc);z(this.cc)};b.Dl=function(){var b;p.length?(b=p.pop(),b.Ca=this):b=new f(this);this.cc.push(b);b.Ma=!0;return b};b.Fa=function(){var b=
this.b.uh(this),d,c,a,f;if(0===this.Kg&&this.Vn)for(this.Af+=b*this.Ck,c=sa(this.Af),this.Af-=c,d=0;d<c;d++)a=this.Dl(),a.init();this.ok=this.x;this.qk=this.y;this.pk=this.x;this.nk=this.y;f=d=0;for(c=this.cc.length;d<c;d++)a=this.cc[d],this.cc[f]=a,this.b.qa=!0,1===this.Kg&&this.wj&&a.init(),a.Fa(b),a.Ma?(a.left()<this.ok&&(this.ok=a.left()),a.right()>this.pk&&(this.pk=a.right()),a.top()<this.qk&&(this.qk=a.top()),a.bottom()>this.nk&&(this.nk=a.bottom()),f++):p.push(a);za(this.cc,f);this.Qa();this.wj=
!1;1===this.Kg&&0===this.cc.length&&this.b.pe(this)};b.Pc=function(b){var d,c,a,f=this.j;d=0;for(c=this.cc.length;d<c;d++)a=this.cc[d],a.right()>=f.wa&&a.bottom()>=f.xa&&a.left()<=f.Ea&&a.top()<=f.Da&&a.Pc(b)};b.Nb=function(b){this.Pq=this.j.Dc();b.nc(this.type.C);var d,c,a,f=this.j;d=0;for(c=this.cc.length;d<c;d++)a=this.cc[d],a.right()>=f.wa&&a.bottom()>=f.xa&&a.left()<=f.Ea&&a.top()<=f.Da&&a.Nb(b)};d.k=new function(){};d.H=new function(){};d.ua=new function(){}})();function qc(f){this.b=f}
(function(){function f(b){var a;"number"==typeof b?a=d(b):a=parseFloat(b);return a}function d(b){b=Fa(b,0,1);return-60*(1-b)}function b(){}var p=qc.prototype;p.La=function(b){this.ga=b;this.b=b.b};p.La.prototype.fa=function(){};p.ya=function(b){this.type=b;this.b=b.b};var l=p.ya.prototype,q={value:0,hr:function(b){this.value=b},za:function(b){this.value=b},u:function(b){this.value=b},Sb:function(b){this.value=b}};l.fa=function(){this.audio=null;this.wg=-1;this.b.Pg(this);this.yc=new qc.we(this);this.ii=
{}};l.Of=function(){if(null!=this.audio)return this.audio;var b=this.b.types,a,d;for(a in b)if(d=b[a].c[0],d instanceof oc.prototype.ya)return this.audio=d;return null};l.Fa=function(){this.yc.Fa()};l.Jf=function(b,a,d,f){b.target=d;b.current=a;b.Rk=(d-a)/f;b.Ho("TaskFade")};l.TaskFade=function(b){var a=this.b.uh(this);if(0==a)return!0;b.current+=b.Rk*a;a=0<b.Rk?b.current>=b.target:b.current<=b.target;this.qo(b.tag,a?b.target:b.current);return!a};l.TaskStop=function(b){this.ro(b.tag)};l.TaskPause=
function(b){this.tl(b.tag,0)};l.Tr=function(b,a,d,f){var e=this.Of();oc.prototype.H.Play.call(e,b,a,d,f)};l.ro=function(b){var a=this.Of();oc.prototype.H.Wg.call(a,b)};l.tl=function(b,a){var d=this.Of();oc.prototype.H.Fo.call(d,b,a)};l.qo=function(b,a){var d=this.Of();oc.prototype.H.Al.call(d,b,a)};l.sl=function(b){var a=this.Of();oc.prototype.ua.$s.call(a,q,b);return q.value};l.fb=function(){return{tm:this.yc.fb(),pdb:this.ii}};l.Ab=function(b){this.yc.Ab(b.tm);this.ii=b.pdb};p.k=new function(){};
p.H=new b;b.prototype.Play=function(b,a,l,p,e,h){h=f(h);l=d(l);this.Tr(b,a,l,p);this.yc.Xg(p);0<e&&l>h&&(b=this.yc.Nf(p),this.Jf(b,h,l,e))};b.prototype.Wg=function(b,a,d){var l=this.sl(b);d=f(d);this.yc.Xg(b);0==a||l<=d?this.ro(b):(b=this.yc.Nf(b),this.Jf(b,l,d,a),b.ul("TaskStop"))};b.prototype.Al=function(b,a,d){var l=this.sl(b);a=f(a);this.yc.Xg(b);a!=l&&(0<d?(b=this.yc.Nf(b),this.Jf(b,l,a,d)):this.qo(b,a))};b.prototype.zl=function(b,a,f,l,e,h){var p=this.Of();l=d(l);oc.prototype.H.zl.call(p,b,
a,f,l,e);this.yc.Xg(e);0<h&&-60<l&&(b=this.yc.Nf(e),this.Jf(b,-60,l,h))};b.prototype.Fo=function(b,a,d){this.yc.Xg(b);0==a?(a=this.sl(b),0>=d||-60>=a?this.tl(b,0):(this.ii[b]=a,b=this.yc.Nf(b),this.Jf(b,a,-60,d),b.ul("TaskPause"))):(this.tl(b,1),a=this.ii[b],null!=a&&(delete this.ii[b],0<d&&-60<a&&(b=this.yc.Nf(b),this.Jf(b,-60,a,d))))};p.ua=new function(){}})();
(function(){function f(b){this.ga=b;this.Yg=this.Zg=""}qc.we=function(b){this.ga=b;this.Xc={};this.Zk=[]};var d=qc.we.prototype;d.Fa=function(){var b,d,f;for(b in this.Xc)d=this.Xc[b],f=d.Vg(),f||(this.Zk.push(d),delete this.Xc[b])};d.Nf=function(b){var d=this.Xc[b];d?d.uo(b):d=this.qs(b);return d};d.Xg=function(b){this.Xc.hasOwnProperty(b)&&(this.Zk.push(this.Xc[b]),delete this.Xc[b])};d.we=function(b){return this.Xc.hasOwnProperty(b)};d.qs=function(b){var d;d=0<this.Zk.length?this.Zk.pop():new f(this.ga);
d.uo(b);return this.Xc[b]=d};d.fb=function(){var b,d={};for(b in this.Xc)d[b]=this.Xc[b].fb();return{ts:d}};d.Ab=function(b){var d;b=b.ts;var l;for(d in b)l=new f(this.ga),l.Ab(b[d]),this.Xc[d]=l};d=f.prototype;d.uo=function(b){this.tag=b;this.Ho();this.ul()};d.Ho=function(b){null==b&&(b="");this.Zg=b};d.ul=function(b){null==b&&(b="");this.Yg=b};d.Vg=function(){return""==this.Zg?!1:this.ga[this.Zg].call(this.ga,this)};d.we=function(){if(""==this.Yg)return!1;this.ga[this.Yg].call(this.ga,this)};d.fb=
function(){return{t:this.tag,thdlr:this.Zg,fhdlr:this.Yg,fade_t:this.target,fade_c:this.current,fade_s:this.Rk}};d.Ab=function(b){this.tag=b.t;this.Zg=b.thdlr;this.Yg=b.fhdlr;this.target=b.fade_t;this.current=b.fade_c;this.Rk=b.fade_s}})();function V(f){this.b=f}
(function(){function f(){if(0===this.Ul.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Lg?b.drawImage(this.F,this.xg,this.yg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.F,0,0,this.width,this.height);this.Ul=a.toDataURL("image/png")}return this.Ul}function d(){}function b(a){a[0]=0;a[1]=0;a[2]=0;n.push(a)}function p(a,b){return a<b?""+a+","+b:""+b+","+a}function l(a,b,c,e){b=b.uid;c=c.uid;var d=p(b,c);if(a.hasOwnProperty(d))a[d][2]=
e;else{var f=n.length?n.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=e;a[d]=f}}function q(a,c,e){c=p(c.uid,e.uid);a.hasOwnProperty(c)&&(b(a[c]),delete a[c])}function c(a,b,c){b=p(b.uid,c.uid);if(a.hasOwnProperty(b))return k=a[b][2],!0;k=-2;return!1}function a(){}var r=V.prototype;r.La=function(a){this.ga=a;this.b=a.b};var w=r.La.prototype;w.fa=function(){if(!this.D){var a,b,c,e,d,k,h,l,n;this.ad=[];this.Bh=!1;a=0;for(b=this.hc.length;a<b;a++){d=this.hc[a];h={};h.name=d[0];h.speed=d[1];h.loop=d[2];h.In=d[3];h.Fk=
d[4];h.ge=d[5];h.Z=d[6];h.frames=[];c=0;for(e=d[7].length;c<e;c++)k=d[7][c],l={},l.Fi=k[0],l.bl=k[1],l.xg=k[2],l.yg=k[3],l.width=k[4],l.height=k[5],l.duration=k[6],l.Xb=k[7],l.Yb=k[8],l.Gm=k[9],l.uk=k[10],l.Qq=k[11],l.Lg=0!==l.width,l.Ul="",l.ly=f,n={left:0,top:0,right:1,bottom:1},l.Tn=n,l.C=null,(n=this.b.Fu(k[0]))?l.F=n:(l.F=new Image,l.F.zt=k[0],l.F.Rl=k[1],l.F.ut=null,this.b.nl(l.F,k[0])),h.frames.push(l),this.ad.push(l);this.hc[a]=h}}};w.Kr=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=
this.c[a],c.jj=c.Lb.C};w.gi=function(){if(!this.D){var a,b,c;a=0;for(b=this.ad.length;a<b;++a)c=this.ad[a],c.F.ut=null,c.C=null;this.Bh=!1;this.Kr()}};w.hi=function(){if(!this.D&&this.c.length){var a,b,c;a=0;for(b=this.ad.length;a<b;++a)c=this.ad[a],c.C=this.b.n.Oe(c.F,!1,this.b.T,c.Qq);this.Kr()}};w.Xh=function(){if(!this.D&&!this.Bh&&this.b.n){var a,b,c;a=0;for(b=this.ad.length;a<b;++a)c=this.ad[a],c.C=this.b.n.Oe(c.F,!1,this.b.T,c.Qq);this.Bh=!0}};w.Ji=function(){if(!this.D&&!this.c.length&&this.Bh){var a,
b,c;a=0;for(b=this.ad.length;a<b;++a)c=this.ad[a],this.b.n.deleteTexture(c.C),c.C=null;this.Bh=!1}};var e=[];w.mi=function(a){var b,c,d;z(e);b=0;for(c=this.ad.length;b<c;++b)d=this.ad[b].F,-1===e.indexOf(d)&&(a.drawImage(d,0,0),e.push(d))};r.ya=function(a){this.type=a;this.b=a.b;a=this.type.hc[0].frames[0].uk;this.Ic?this.na.ti(a):this.na=new gb(a)};var h=r.ya.prototype;h.fa=function(){this.visible=0===this.I[0];this.Hj=this.Lh=!1;this.ef=0!==this.I[3];1===this.type.hc.length&&1===this.type.hc[0].frames.length||
0===this.type.hc[0].speed||(this.b.Pg(this),this.Lh=!0);this.Ha=this.qp(this.I[1])||this.type.hc[0];this.G=this.I[2];0>this.G&&(this.G=0);this.G>=this.Ha.frames.length&&(this.G=this.Ha.frames.length-1);var a=this.Ha.frames[this.G];this.na.ti(a.uk);this.Xb=a.Xb;this.Yb=a.Yb;this.jh=this.Ha.speed;this.Ic?this.yd.reset():this.yd=new eb;this.Xd=this.yd.W;this.ue=!0;this.Nd=0;this.Ze=!0;this.Tf=this.Oo="";this.Zo=0;this.bj=-1;this.type.Xh();var b,c,e,d,f,k,l,a=0;for(b=this.type.hc.length;a<b;a++)for(d=
this.type.hc[a],c=0,e=d.frames.length;c<e;c++)f=d.frames[c],0===f.width&&(f.width=f.F.width,f.height=f.F.height),f.Lg&&(l=f.F,k=f.Tn,k.left=f.xg/l.width,k.top=f.yg/l.height,k.right=(f.xg+f.width)/l.width,k.bottom=(f.yg+f.height)/l.height,0===f.xg&&0===f.yg&&f.width===l.width&&f.height===l.height&&(f.Lg=!1));this.Lb=this.Ha.frames[this.G];this.jj=this.Lb.C};h.fb=function(){var a={a:this.Ha.Z,f:this.G,cas:this.jh,fs:this.Xd,ar:this.Nd,at:this.yd.W};this.ue||(a.ap=this.ue);this.Ze||(a.af=this.Ze);return a};
h.Ab=function(a){var b=this.Ku(a.a);b&&(this.Ha=b);this.G=a.f;0>this.G&&(this.G=0);this.G>=this.Ha.frames.length&&(this.G=this.Ha.frames.length-1);this.jh=a.cas;this.Xd=a.fs;this.Nd=a.ar;this.yd.reset();this.yd.W=a.at;this.ue=a.hasOwnProperty("ap")?a.ap:!0;this.Ze=a.hasOwnProperty("af")?a.af:!0;this.Lb=this.Ha.frames[this.G];this.jj=this.Lb.C;this.na.ti(this.Lb.uk);this.Xb=this.Lb.Xb;this.Yb=this.Lb.Yb};h.Gl=function(a){this.G=a?0:this.Ha.frames.length-1;this.ue=!1;this.Oo=this.Ha.name;this.Hj=!0;
this.b.trigger(V.prototype.k.vo,this);this.b.trigger(V.prototype.k.rs,this);this.Hj=!1;this.Nd=0};h.we=function(){return this.yd.W};h.Fa=function(){this.yd.add(this.b.uh(this));this.Tf.length&&this.fp();0<=this.bj&&this.gp();var a=this.yd.W,b=this.Ha,c=b.frames[this.G],e=c.duration/this.jh;this.ue&&a>=this.Xd+e&&(this.Ze?this.G++:this.G--,this.Xd+=e,this.G>=b.frames.length&&(b.ge?(this.Ze=!1,this.G=b.frames.length-2):b.loop?this.G=b.Fk:(this.Nd++,this.Nd>=b.In?this.Gl(!1):this.G=b.Fk)),0>this.G&&
(b.ge?(this.G=1,this.Ze=!0,b.loop||(this.Nd++,this.Nd>=b.In&&this.Gl(!0))):b.loop?this.G=b.Fk:(this.Nd++,this.Nd>=b.In?this.Gl(!0):this.G=b.Fk)),0>this.G?this.G=0:this.G>=b.frames.length&&(this.G=b.frames.length-1),a>this.Xd+b.frames[this.G].duration/this.jh&&(this.Xd=a),a=b.frames[this.G],this.Mf(c,a),this.b.qa=!0)};h.qp=function(a){var b,c,e;b=0;for(c=this.type.hc.length;b<c;b++)if(e=this.type.hc[b],mb(e.name,a))return e;return null};h.Ku=function(a){var b,c,e;b=0;for(c=this.type.hc.length;b<c;b++)if(e=
this.type.hc[b],e.Z===a)return e;return null};h.fp=function(){var a=this.Ha.frames[this.G],b=this.qp(this.Tf);this.Tf="";!b||mb(b.name,this.Ha.name)&&this.ue||(this.Ha=b,this.jh=b.speed,0>this.G&&(this.G=0),this.G>=this.Ha.frames.length&&(this.G=this.Ha.frames.length-1),1===this.Zo&&(this.G=0),this.ue=!0,this.Xd=this.yd.W,this.Ze=!0,this.Mf(a,this.Ha.frames[this.G]),this.b.qa=!0)};h.gp=function(){var a=this.Ha.frames[this.G],b=this.G;this.G=sa(this.bj);0>this.G&&(this.G=0);this.G>=this.Ha.frames.length&&
(this.G=this.Ha.frames.length-1);b!==this.G&&(this.Mf(a,this.Ha.frames[this.G]),this.Xd=this.yd.W,this.b.qa=!0);this.bj=-1};h.Mf=function(a,b){var c=a.width,e=a.height,d=b.width,f=b.height;c!=d&&(this.width*=d/c);e!=f&&(this.height*=f/e);this.Xb=b.Xb;this.Yb=b.Yb;this.na.ti(b.uk);this.Qa();this.Lb=b;this.jj=b.C;c=0;for(e=this.R.length;c<e;c++)d=this.R[c],d.Rv&&d.Rv(a,b);this.b.trigger(V.prototype.k.Mf,this)};h.Pc=function(a){a.globalAlpha=this.opacity;var b=this.Lb,c=b.Lg,e=b.F,d=this.x,f=this.y,
k=this.width,l=this.height;if(0===this.e&&0<=k&&0<=l)d-=this.Xb*k,f-=this.Yb*l,this.b.Hc&&(d=Math.round(d),f=Math.round(f)),c?a.drawImage(e,b.xg,b.yg,b.width,b.height,d,f,k,l):a.drawImage(e,d,f,k,l);else{this.b.Hc&&(d=Math.round(d),f=Math.round(f));a.save();var h=0<k?1:-1,n=0<l?1:-1;a.translate(d,f);1===h&&1===n||a.scale(h,n);a.rotate(this.e*h*n);d=0-this.Xb*oa(k);f=0-this.Yb*oa(l);c?a.drawImage(e,b.xg,b.yg,b.width,b.height,d,f,oa(k),oa(l)):a.drawImage(e,d,f,oa(k),oa(l));a.restore()}};h.hf=function(a){this.Nb(a)};
h.Nb=function(a){a.nc(this.jj);a.Ue(this.opacity);var b=this.Lb,c=this.ic;if(this.b.Hc){var e=Math.round(this.x)-this.x,d=Math.round(this.y)-this.y;b.Lg?a.Hd(c.Ta+e,c.Ua+d,c.ub+e,c.wb+d,c.jb+e,c.kb+d,c.hb+e,c.ib+d,b.Tn):a.Dg(c.Ta+e,c.Ua+d,c.ub+e,c.wb+d,c.jb+e,c.kb+d,c.hb+e,c.ib+d)}else b.Lg?a.Hd(c.Ta,c.Ua,c.ub,c.wb,c.jb,c.kb,c.hb,c.ib,b.Tn):a.Dg(c.Ta,c.Ua,c.ub,c.wb,c.jb,c.kb,c.hb,c.ib)};h.Ou=function(a){var b=this.Lb,c,e;c=0;for(e=b.Gm.length;c<e;c++)if(mb(a,b.Gm[c][0]))return c;return-1};h.qm=function(a,
b){var c=this.Lb,e=c.Gm,d;ka(a)?d=this.Ou(a):d=a-1;d=sa(d);if(0>d||d>=e.length)return b?this.x:this.y;var f=(e[d][1]-c.Xb)*this.width,e=e[d][2],e=(e-c.Yb)*this.height,c=Math.cos(this.e);d=Math.sin(this.e);var k=f*c-e*d,e=e*c+f*d,f=k+this.x,e=e+this.y;return b?f:e};var n=[],k=-2,F=[];d.prototype.vs=function(a){if(!a)return!1;var e=this.b,d=e.sh(),f=d.type,h=null;d.M.collmemory?h=d.M.collmemory:(h={},d.M.collmemory=h);d.M.spriteCreatedDestroyCallback||(d.M.spriteCreatedDestroyCallback=!0,e.Cl(function(a){var c=
d.M.collmemory;a=a.uid;var e,g;for(e in c)c.hasOwnProperty(e)&&(g=c[e],g[0]===a||g[1]===a)&&(b(c[e]),delete c[e])}));var n=f.ca(),p=a.ca(),n=n.Cc(),v,r,O,w,I,x,u,Y=this.b.Gf,U=Y-1,y=e.Pb().tc;for(r=0;r<n.length;r++){O=n[r];p.ta?(O.Ga(),this.b.Mu(O.j,a,O.Na,F),v=F):v=p.Cc();for(w=0;w<v.length;w++)I=v[w],e.Gw(O,I)||e.xt(O,I)?(x=c(h,O,I),x=!x||k<U,l(h,O,I,Y),x&&(e.zk(y.Aa),x=f.ca(),u=a.ca(),x.ta=!1,u.ta=!1,f===a?(x.c.length=2,x.c[0]=O,x.c[1]=I,f.bd()):(x.c.length=1,u.c.length=1,x.c[0]=O,u.c[0]=I,f.bd(),
a.bd()),y.kw(),e.Bf(y.Aa))):q(h,O,I);z(F)}return!1};var v=new ca,O=!1;new va(0,0,0,0);w.finish=function(a){if(O){if(a){var b=this.b.Pb().tc.ld;a=null.ca();var c=v.le(),e,d;if(a.ta){a.ta=!1;z(a.c);e=0;for(d=c.length;e<d;++e)a.c[e]=c[e];if(b)for(z(a.ka),e=0,d=null.c.length;e<d;++e)c=null.c[e],v.contains(c)||a.ka.push(c)}else if(b)for(b=a.c.length,e=0,d=c.length;e<d;++e)a.c[b+e]=c[e],Ea(a.ka,c[e]);else Ba(a.c,c);null.bd()}v.clear();O=!1}};d.prototype.hs=function(a){return this.Tf.length?mb(this.Tf,a):
mb(this.Ha.name,a)};d.prototype.Xr=function(a,b){return dc(this.G,a,b)};d.prototype.rs=function(a){return mb(this.Oo,a)};d.prototype.vo=function(){return!0};d.prototype.Mf=function(){return!0};r.k=new d;a.prototype.Ws=function(){this.ue=!1};a.prototype.Is=function(a,b){this.Tf=a;this.Zo=b;this.Lh||(this.b.Pg(this),this.Lh=!0);this.Hj||this.fp()};a.prototype.Js=function(a){this.bj=a;this.Lh||(this.b.Pg(this),this.Lh=!0);this.Hj||this.gp()};r.H=new a;r.ua=new function(){}})();
function rc(f){this.b=f}
(function(){function f(a,b){return a.length?a.pop():new b}function d(a,b,e){if(e){var d;e=0;for(d=b.length;e<d;e++)a.length<c&&a.push(b[e]);z(b)}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<c&&a.push(b[d]),delete b[d])}function b(b,c,e){var d=b.uf;e=e.replace(/\s\s*$/,"");c>=d.length&&d.push(f(a,Object));c=d[c];c.text=e;c.width=b.kn(e);b.Og=pa(b.Og,c.width)}function p(){}var l=rc.prototype;l.fa=function(){};l.La=function(a){this.ga=a;this.b=a.b};var q=l.La.prototype;q.fa=function(){this.D||
(this.F=new Image,this.b.nl(this.F,this.Fi),this.C=null)};q.gi=function(){this.D||(this.C=null)};q.hi=function(){if(!this.D&&this.c.length){this.C||(this.C=this.b.n.Oe(this.F,!1,this.b.T,this.Ff));var a,b;a=0;for(b=this.c.length;a<b;a++)this.c[a].C=this.C}};q.Ji=function(){this.D||this.c.length||!this.C||(this.b.n.deleteTexture(this.C),this.C=null)};q.mi=function(a){a.drawImage(this.F,0,0)};l.ya=function(a){this.type=a;this.b=a.b};q=l.ya.prototype;q.zf=function(){d(a,this.uf,!0);d(r,this.dj,!1);d(w,
this.ej,!1);Wa(this.Ae)};q.fa=function(){this.F=this.type.F;this.cj=this.I[0];this.ye=this.I[1];this.characterSet=this.I[2];this.text=this.I[3];this.ze=this.I[4];this.visible=0===this.I[5];this.Fj=this.I[6]/2;this.ll=this.I[7]/2;this.Qw=0===this.I[9];this.Uf=this.I[10];this.lineHeight=this.I[11];this.Ef=this.Og=0;this.Ic?(z(this.uf),Wa(this.dj),Wa(this.ej),Wa(this.Ae)):(this.uf=[],this.dj={},this.ej={},this.Ae={});this.Ei=!0;this.$m=this.width;this.b.n&&(this.type.C||(this.type.C=this.b.n.Oe(this.type.F,
!1,this.b.T,this.type.Ff)),this.C=this.type.C);this.Us()};q.fb=function(){var a={t:this.text,csc:this.ze,csp:this.Uf,lh:this.lineHeight,tw:this.Og,th:this.Ef,lrt:this.Dv,ha:this.Fj,va:this.ll,cw:{}},b;for(b in this.Ae)a.cw[b]=this.Ae[b];return a};q.Ab=function(a){this.text=a.t;this.ze=a.csc;this.Uf=a.csp;this.lineHeight=a.lh;this.Og=a.tw;this.Ef=a.th;this.Dv=a.lrt;a.hasOwnProperty("ha")&&(this.Fj=a.ha);a.hasOwnProperty("va")&&(this.ll=a.va);for(var b in a.cw)this.Ae[b]=a.cw[b];this.Ei=!0;this.$m=
this.width};var c=1E3,a=[],r=[],w=[];q.Us=function(){for(var a=this.F,b=a.width,c=a.height,a=this.cj,e=this.ye,d=a/b,g=e/c,l=this.characterSet,b=Math.floor(b/a),c=Math.floor(c/e),h=0;h<l.length&&!(h>=b*c);h++){var p=h%b,q=Math.floor(h/b),A=l.charAt(h);if(this.b.n){var H=this.ej,B=p*d,N=q*g,p=(p+1)*d,q=(q+1)*g;void 0===H[A]&&(H[A]=f(w,va));H[A].left=B;H[A].top=N;H[A].right=p;H[A].bottom=q}else H=this.dj,p=p*a,q=q*e,B=a,N=e,void 0===H[A]&&(H[A]=f(r,Object)),H[A].x=p,H[A].y=q,H[A].Pr=B,H[A].xp=N}};var e=
[];l.Ys=function(a){z(e);for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(e.push(b),b=""),e.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));e.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&e.push(b)};l.ct=function(b){var c=b.text,e=b.uf;if(c&&c.length){var l=b.width;if(2>=l)d(a,e,!0);else{var h=b.ze,g=b.Uf;if(c.length*(b.cj*h+g)-g<=l&&-1===c.indexOf("\n")&&(g=b.kn(c),g<=l)){d(a,e,!0);e.push(f(a,
Object));e[0].text=c;e[0].width=g;b.Og=g;b.Ef=b.ye*h+b.lineHeight;return}this.dt(b);b.Ef=e.length*(b.ye*h+b.lineHeight)}}else d(a,e,!0)};l.dt=function(d){var f=d.Qw,l=d.text,h=d.uf,p=d.width;f&&(this.Ys(l),l=e);var g="",m,q,r,w=0,A=!1;for(r=0;r<l.length;r++)"\n"===l[r]?(!0===A?A=!1:(b(d,w,g),w++),g=""):(A=!1,m=g,g+=l[r],q=d.kn(g.replace(/\s\s*$/,"")),q>p&&(""===m?(b(d,w,g),g="",A=!0):(b(d,w,m),g=l[r]),w++,f||" "!==g||(g="")));g.replace(/\s\s*$/,"").length&&(b(d,w,g),w++);for(r=w;r<h.length;r++)a.length<
c&&a.push(h[r]);h.length=w};q.kn=function(a){for(var b=this.Uf,c=a.length,e=0,d=0;d<c;d++)e+=this.nm(a.charAt(d))*this.ze+b;return e-(0<e?b:0)};q.nm=function(a){var b=this.Ae;return void 0!==b[a]?b[a]:this.cj};q.Vq=function(){if(this.Ei||this.width!==this.$m)this.Ef=this.Og=0,this.type.ga.ct(this),this.Ei=!1,this.$m=this.width};q.Pc=function(a){var b=this.F;if(""!==this.text&&null!=b&&(this.Vq(),!(this.height<this.ye*this.ze+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.Hc&&
(b=Math.round(b),c=Math.round(c));var e=this.j.wa,d=this.j.xa,g=this.j.Ea,f=this.j.Da;a.save();a.translate(b,c);a.rotate(this.e);for(var l=this.Fj,h=this.ze,p=this.ye*h,q=this.lineHeight,r=this.Uf,w=this.uf,N,K=-(this.Xb*this.width),S=-(this.Yb*this.height),S=S+this.ll*pa(0,this.height-this.Ef),I,x,u,Y=0;Y<w.length;Y++){var U=w[Y].text;N=l*pa(0,this.width-w[Y].width);I=K+N;S+=q;if(c+S+p<d)S+=p;else{for(var y=0;y<U.length;y++){x=U.charAt(y);N=this.nm(x);var t=this.dj[x];if(b+I+N*h+r<e)I+=N*h+r;else{if(I+
N*h>this.width+1E-5)break;void 0!==t&&(x=I,u=S,0===this.e&&(x=Math.round(x),u=Math.round(u)),a.drawImage(this.F,t.x,t.y,t.Pr,t.xp,x,u,t.Pr*h,t.xp*h));I+=N*h+r;if(b+I>g)break}}S+=p;if(S+p+q>this.height||c+S>f)break}}a.restore()}};var h=new wa;q.Nb=function(a){a.nc(this.C);a.Ue(this.opacity);if(this.text&&(this.Vq(),!(this.height<this.ye*this.ze+this.lineHeight))){this.Ga();var b=this.ic,c=0,e=0;this.b.Hc&&(c=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y);var d=this.j.wa,g=this.j.xa,f=this.j.Ea,
l=this.j.Da,p=this.e,q=this.Fj,r=this.ll,w=this.ze,B=this.ye*w,N=this.lineHeight,K=this.Uf,S=this.uf,I=this.Ef,x,u,Y;0!==p&&(u=Math.cos(p),Y=Math.sin(p));for(var c=b.Ta+c,b=b.Ua+e,U,r=r*pa(0,this.height-I),y,t,I=0;I<S.length;I++)if(e=S[I].text,U=x=q*pa(0,this.width-S[I].width),r+=N,0===p&&b+r+B<g)r+=B;else{for(var M=0;M<e.length;M++){var L=e.charAt(M);x=this.nm(L);L=this.ej[L];if(c+U+x*w+K<d)U+=x*w+K;else{if(U+x*w>this.width+1E-5)break;if(void 0!==L){var G=this.cj*w,C=this.ye*w;y=U;t=r;0===p&&(y=
Math.round(y),t=Math.round(t));h.Ta=y;h.Ua=t;h.ub=y+G;h.wb=t;h.hb=y;h.ib=t+C;h.jb=y+G;h.kb=t+C;0!==p&&(y=h,t=u,G=Y,C=void 0,C=y.Ta*t-y.Ua*G,y.Ua=y.Ua*t+y.Ta*G,y.Ta=C,C=y.ub*t-y.wb*G,y.wb=y.wb*t+y.ub*G,y.ub=C,C=y.hb*t-y.ib*G,y.ib=y.ib*t+y.hb*G,y.hb=C,C=y.jb*t-y.kb*G,y.kb=y.kb*t+y.jb*G,y.jb=C);h.offset(c,b);a.Hd(h.Ta,h.Ua,h.ub,h.wb,h.jb,h.kb,h.hb,h.ib,L)}U+=x*w+K;if(0===p&&c+U>f)break}}r+=B;if(r+B+N>this.height||b+r>l)break}}};l.k=new function(){};p.prototype.Ss=function(a){ja(a)&&1E9>a&&(a=Math.round(1E10*
a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Ei=!0,this.b.qa=!0)};q.we=function(a,b){var c=parseInt(b,10);this.Ae[a]!==c&&(this.Ae[a]=c,this.Ei=!0,this.b.qa=!0)};l.H=new p;l.ua=new function(){}})();function sc(f){this.b=f}
(function(){var f=sc.prototype;f.La=function(b){this.ga=b;this.b=b.b};var d=f.La.prototype;d.fa=function(){this.D||(this.F=new Image,this.F.Rl=this.bl,this.b.nl(this.F,this.Fi),this.C=this.pattern=null)};d.gi=function(){this.D||(this.C=null)};d.hi=function(){if(!this.D&&this.c.length){this.C||(this.C=this.b.n.Oe(this.F,!0,this.b.T,this.Ff));var b,d;b=0;for(d=this.c.length;b<d;b++)this.c[b].C=this.C}};d.Xh=function(){this.D||this.C||!this.b.n||(this.C=this.b.n.Oe(this.F,!0,this.b.T,this.Ff))};d.Ji=
function(){this.D||this.c.length||!this.C||(this.b.n.deleteTexture(this.C),this.C=null)};d.mi=function(b){b.drawImage(this.F,0,0)};f.ya=function(b){this.type=b;this.b=b.b};d=f.ya.prototype;d.fa=function(){this.visible=0===this.I[0];this.pi=new va(0,0,0,0);this.Bp=!1;this.F=this.type.F;this.b.n?(this.type.Xh(),this.C=this.type.C):(this.type.pattern||(this.type.pattern=this.b.ra.createPattern(this.type.F,"repeat")),this.pattern=this.type.pattern)};d.xd=function(){this.Bp=!1;this.F=this.type.F};d.zf=
function(){this.b.n&&this.Bp&&this.C&&(this.b.n.deleteTexture(this.C),this.C=null)};d.Pc=function(b){b.globalAlpha=this.opacity;b.save();b.fillStyle=this.pattern;var d=this.x,f=this.y;this.b.Hc&&(d=Math.round(d),f=Math.round(f));var q=-(this.Xb*this.width),c=-(this.Yb*this.height),a=q%this.F.width,r=c%this.F.height;0>a&&(a+=this.F.width);0>r&&(r+=this.F.height);b.translate(d,f);b.rotate(this.e);b.translate(a,r);b.fillRect(q-a,c-r,this.width,this.height);b.restore()};d.hf=function(b){this.Nb(b)};d.Nb=
function(b){b.nc(this.C);b.Ue(this.opacity);var d=this.pi;d.right=this.width/this.F.width;d.bottom=this.height/this.F.height;var f=this.ic;if(this.b.Hc){var q=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;b.Hd(f.Ta+q,f.Ua+c,f.ub+q,f.wb+c,f.jb+q,f.kb+c,f.hb+q,f.ib+c,d)}else b.Hd(f.Ta,f.Ua,f.ub,f.wb,f.jb,f.kb,f.hb,f.ib,d)};f.k=new function(){};f.H=new function(){};f.ua=new function(){}})();function tc(f){this.b=f}
(function(){function f(a){r=a.x;w=a.y;e=a.z}function d(a,c,e,d){var f;f=h.length?h.pop():new b;f.init(a,c,e,d);return f}function b(){this.Ai=this.id=this.y=this.x=this.Wk=this.Vk=this.Zm=this.time=this.Xn=0;this.Ii=this.fl=!1}function p(){}function l(){}var q=tc.prototype;q.La=function(a){this.ga=a;this.b=a.b};q.La.prototype.fa=function(){};q.ya=function(a){this.type=a;this.b=a.b;this.touches=[];this.mn=!1};var c=q.ya.prototype,a={left:0,top:0};c.qh=function(a){var b,c;b=0;for(c=this.touches.length;b<
c;b++)if(this.touches[b].id===a)return b;return-1};var r=0,w=0,e=0,h=[];b.prototype.init=function(a,b,c,e){var d=Xa();this.Xn=this.Zm=this.time=d;this.Vk=a;this.Wk=b;this.x=a;this.y=b;this.id=c;this.Ai=e;this.Ii=this.fl=!1};b.prototype.update=function(a,b,c){this.Zm=this.time;this.time=a;this.x=b;this.y=c;!this.Ii&&15<=Ta(this.Vk,this.Wk,this.x,this.y)&&(this.Ii=!0)};b.prototype.Hv=function(a,b){!this.fl&&500<=Xa()-this.Xn&&!this.Ii&&15>Ta(this.Vk,this.Wk,this.x,this.y)&&(this.fl=!0,a.Md=this.Ai,
a.Qg=this.id,a.ag=b,a.b.trigger(tc.prototype.k.As,a),a.Qd=this.x,a.Rd=this.y,a.b.trigger(tc.prototype.k.Bs,a),a.ag=0)};var n=-1E3,k=-1E3,F=-1E4;b.prototype.oq=function(a,b){if(!this.fl){var c=Xa();333>=c-this.Xn&&!this.Ii&&15>Ta(this.Vk,this.Wk,this.x,this.y)&&(a.Md=this.Ai,a.Qg=this.id,a.ag=b,666>=c-F&&25>Ta(n,k,this.x,this.y)?(a.b.trigger(tc.prototype.k.xs,a),a.Qd=this.x,a.Rd=this.y,a.b.trigger(tc.prototype.k.ys,a),k=n=-1E3,F=-1E4):(a.b.trigger(tc.prototype.k.Ao,a),a.Qd=this.x,a.Rd=this.y,a.b.trigger(tc.prototype.k.Bo,
a),n=this.x,k=this.y,F=c),a.ag=0)}};c.fa=function(){this.zv=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.ag=this.Qg=this.Md=this.Rd=this.Qd=this.Ko=this.Jo=this.Io=this.jt=this.it=this.ht=this.mk=this.lk=this.kk=0;this.Nw=0!==this.I[0];var a=0<this.b.jc?document:this.b.canvas,b=document;this.b.Zb?b=a=window.Canvas:this.b.Rc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.Dq(a)},!1),a.addEventListener("pointermove",
function(a){c.Cq(a)},!1),b.addEventListener("pointerup",function(a){c.hk(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.hk(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.Dq(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Cq(a)},!1),b.addEventListener("MSPointerUp",function(a){c.hk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.hk(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.Fq(a)},!1),a.addEventListener("touchmove",
function(a){c.Eq(a)},!1),b.addEventListener("touchend",function(a){c.vn(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.vn(a,!0)},!1));if(this.zv){var e=function(a){a=a.reading;c.Io=a.accelerationX;c.Jo=a.accelerationY;c.Ko=a.accelerationZ},d=function(a){a=a.reading;c.kk=a.yawDegrees;c.lk=a.pitchDegrees;c.mk=a.rollDegrees},h=Windows.Devices.Sensors.Accelerometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));var l=Windows.Devices.Sensors.Inclinometer.getDefault();
l&&(l.reportInterval=Math.max(l.minimumReportInterval,16),l.addEventListener("readingchanged",d));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(h&&h.removeEventListener("readingchanged",e),l&&l.removeEventListener("readingchanged",d)):(h&&h.addEventListener("readingchanged",e),l&&l.addEventListener("readingchanged",d))},!1)}else window.addEventListener("deviceorientation",function(a){c.kk=a.alpha||0;c.lk=a.beta||0;c.mk=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.Io=a.acceleration.x||0,c.Jo=a.acceleration.y||0,c.Ko=a.acceleration.z||0)},!1);this.Nw&&!this.b.Va&&(jQuery(document).mousemove(function(a){c.Pv(a)}),jQuery(document).mousedown(function(a){c.Ov(a)}),jQuery(document).mouseup(function(a){c.Qv(a)}));!this.b.Oh&&this.b.Fc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&
navigator.accelerometer.watchAcceleration(f,null,{frequency:40});this.b.Hw(this)};c.Cq=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&b.preventDefault();var c=this.qh(b.pointerId),e=Xa();if(0<=c){var d=this.b.Va?a:jQuery(this.b.canvas).offset(),c=this.touches[c];2>e-c.time||c.update(e,b.pageX-d.left,b.pageY-d.top)}}};c.Dq=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&nb(b)&&b.preventDefault();var c=
this.b.Va?a:jQuery(this.b.canvas).offset(),e=b.pageX-c.left,c=b.pageY-c.top;Xa();this.Md=this.touches.length;this.Qg=b.pointerId;this.touches.push(d(e,c,b.pointerId,this.Md));this.b.Cd=!0;this.b.trigger(tc.prototype.k.zo,this);this.b.trigger(tc.prototype.k.Eo,this);this.Qd=e;this.Rd=c;this.b.trigger(tc.prototype.k.Do,this);this.b.Cd=!1}};c.hk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.qh(a.pointerId);this.Md=
0<=c?this.touches[c].Ai:-1;this.Qg=0<=c?this.touches[c].id:-1;this.b.Cd=!0;this.b.trigger(tc.prototype.k.yo,this);this.b.trigger(tc.prototype.k.Co,this);0<=c&&(b||this.touches[c].oq(this,c),100>h.length&&h.push(this.touches[c]),this.touches.splice(c,1));this.b.Cd=!1}};c.Eq=function(b){b.preventDefault&&b.preventDefault();var c=Xa(),e,d,f,h;e=0;for(d=b.changedTouches.length;e<d;e++)if(f=b.changedTouches[e],h=this.qh(f.identifier),0<=h){var l=this.b.Va?a:jQuery(this.b.canvas).offset();h=this.touches[h];
2>c-h.time||h.update(c,f.pageX-l.left,f.pageY-l.top)}};c.Fq=function(b){b.preventDefault&&nb(b)&&b.preventDefault();var c=this.b.Va?a:jQuery(this.b.canvas).offset();Xa();this.b.Cd=!0;var e,f,h,l;e=0;for(f=b.changedTouches.length;e<f;e++)if(h=b.changedTouches[e],l=this.qh(h.identifier),-1===l){l=h.pageX-c.left;var k=h.pageY-c.top;this.Md=this.touches.length;this.Qg=h.identifier;this.touches.push(d(l,k,h.identifier,this.Md));this.b.trigger(tc.prototype.k.zo,this);this.b.trigger(tc.prototype.k.Eo,this);
this.Qd=l;this.Rd=k;this.b.trigger(tc.prototype.k.Do,this)}this.b.Cd=!1};c.vn=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.Cd=!0;var c,e,d;c=0;for(e=a.changedTouches.length;c<e;c++)d=a.changedTouches[c],d=this.qh(d.identifier),0<=d&&(this.Md=this.touches[d].Ai,this.Qg=this.touches[d].id,this.b.trigger(tc.prototype.k.yo,this),this.b.trigger(tc.prototype.k.Co,this),b||this.touches[d].oq(this,d),100>h.length&&h.push(this.touches[d]),this.touches.splice(d,1));this.b.Cd=!1};c.we=function(){return this.b.Fc&&
0===this.kk&&0!==e?90*e:this.kk};c.iy=function(){return this.b.Fc&&0===this.lk&&0!==w?90*w:this.lk};c.jy=function(){return this.b.Fc&&0===this.mk&&0!==r?90*r:this.mk};c.Ov=function(a){this.Fq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.mn=!0};c.Pv=function(a){this.mn&&this.Eq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};c.Qv=function(a){a.preventDefault&&this.b.yp&&!this.b.gg&&a.preventDefault();this.b.yp=!0;this.vn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,
identifier:0}]});this.mn=!1};c.Gi=function(){var a,b,c,e=Xa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=e-50&&(c.Zm=e),c.Hv(this,a)};p.prototype.Eo=function(){return!0};p.prototype.Co=function(){return!0};p.prototype.Do=function(a){return a?this.b.$k(a,this.Qd,this.Rd):!1};p.prototype.zo=function(a){a=Math.floor(a);return a===this.Md};p.prototype.yo=function(a){a=Math.floor(a);return a===this.Md};p.prototype.As=function(){return!0};p.prototype.Ao=function(){return!0};p.prototype.xs=
function(){return!0};p.prototype.Bs=function(a){return a?this.b.$k(a,this.Qd,this.Rd):!1};p.prototype.Bo=function(a){return a?this.b.$k(a,this.Qd,this.Rd):!1};p.prototype.ys=function(a){return a?this.b.$k(a,this.Qd,this.Rd):!1};q.k=new p;l.prototype.Pi=function(a,b){var c=this.ag;if(0>c||c>=this.touches.length)a.u(0);else{var e,d,f,h,l;ha(b)?(e=this.b.vh(0),d=e.scale,f=e.wd,h=e.Tc,l=e.e,e.scale=1,e.wd=1,e.Tc=1,e.e=0,a.u(e.Vb(this.touches[c].x,this.touches[c].y,!0)),e.scale=d,e.wd=f,e.Tc=h,e.e=l):
(e=ja(b)?this.b.vh(b):this.b.um(b))?a.u(e.Vb(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};l.prototype.et=function(a,b){var c=this.ag;if(0>c||c>=this.touches.length)a.u(0);else{var e,d,f,h,l;ha(b)?(e=this.b.vh(0),d=e.scale,f=e.wd,h=e.Uc,l=e.e,e.scale=1,e.wd=1,e.Uc=1,e.e=0,a.u(e.Vb(this.touches[c].x,this.touches[c].y,!1)),e.scale=d,e.wd=f,e.Uc=h,e.e=l):(e=ja(b)?this.b.vh(b):this.b.um(b))?a.u(e.Vb(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};q.ua=new l})();function uc(f){this.b=f}
(function(){function f(){}var d=uc.prototype;d.La=function(b){this.behavior=b;this.b=b.b};d.La.prototype.fa=function(){};d.ya=function(b,d){this.type=b;this.behavior=b.behavior;this.d=d;this.b=b.b};var b=d.ya.prototype;b.fa=function(){this.sb=null;this.sk=-1;this.mode=this.pg=this.cl=this.vg=this.fe=this.li=0;var b=this;this.Ic||(this.tq=function(d){b.tn(d)});this.b.Cl(this.tq)};b.fb=function(){return{uid:this.sb?this.sb.uid:-1,pa:this.li,pd:this.fe,msa:this.vg,tsa:this.cl,lka:this.pg,m:this.mode}};
b.Ab=function(b){this.sk=b.uid;this.li=b.pa;this.fe=b.pd;this.vg=b.msa;this.cl=b.tsa;this.pg=b.lka;this.mode=b.m};b.xd=function(){-1===this.sk?this.sb=null:this.sb=this.b.wh(this.sk);this.sk=-1};b.tn=function(b){this.sb==b&&(this.sb=null)};b.zf=function(){this.sb=null;this.b.gw(this.tq)};b.Fa=function(){};b.Gi=function(){if(this.sb){this.pg!==this.d.e&&(this.vg=Ja(this.vg+(this.d.e-this.pg)));var b=this.d.x,d=this.d.y;if(3===this.mode||4===this.mode){var f=Ta(this.d.x,this.d.y,this.sb.x,this.sb.y);
if(f>this.fe||4===this.mode&&f<this.fe)d=Na(this.sb.x,this.sb.y,this.d.x,this.d.y),b=this.sb.x+Math.cos(d)*this.fe,d=this.sb.y+Math.sin(d)*this.fe}else b=this.sb.x+Math.cos(this.sb.e+this.li)*this.fe,d=this.sb.y+Math.sin(this.sb.e+this.li)*this.fe;this.pg=f=Ja(this.vg+(this.sb.e-this.cl));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.d.x===b&&this.d.y===d||(this.d.x=b,this.d.y=d,this.d.Qa());0!==this.mode&&2!==this.mode||this.d.e===f||(this.d.e=f,this.d.Qa())}};d.k=new function(){};
f.prototype.Hs=function(b,d){if(b){var f=b.tp(this.d);f&&(this.sb=f,this.li=Na(f.x,f.y,this.d.x,this.d.y)-f.e,this.fe=Ta(f.x,f.y,this.d.x,this.d.y),this.pg=this.vg=this.d.e,this.cl=f.e,this.mode=d)}};d.H=new f;d.ua=new function(){}})();var vc=[],wc=[],xc=[],yc=[],zc=[],Ac=[],Bc=[],Cc=[],Dc=[];function Ec(f,d){return Math.round(f/d*1E4)}
function Jc(f,d,b,p){var l=0;switch(f){case 0:l=1*d/b+0;break;case 1:l=1*(d/=b)*d+0;break;case 2:l=-1*(d/=b)*(d-2)+0;break;case 3:l=1>(d/=b/2)?.5*d*d+0:-.5*(--d*(d-2)-1)+0;break;case 4:l=1*(d/=b)*d*d+0;break;case 5:l=1*((d=d/b-1)*d*d+1)+0;break;case 6:l=1>(d/=b/2)?.5*d*d*d+0:.5*((d-=2)*d*d+2)+0;break;case 7:l=1*(d/=b)*d*d*d+0;break;case 8:l=-1*((d=d/b-1)*d*d*d-1)+0;break;case 9:l=1>(d/=b/2)?.5*d*d*d*d+0:-.5*((d-=2)*d*d*d-2)+0;break;case 10:l=1*(d/=b)*d*d*d*d+0;break;case 11:l=1*((d=d/b-1)*d*d*d*d+
1)+0;break;case 12:l=1>(d/=b/2)?.5*d*d*d*d*d+0:.5*((d-=2)*d*d*d*d+2)+0;break;case 13:l=zc[Ec(d,b)];break;case 14:l=Ac[Ec(d,b)];break;case 15:l=Bc[Ec(d,b)];break;case 16:f=0;0==f&&(f=1.70158);l=1*(d/=b)*d*((f+1)*d-f)+0;break;case 17:l=Cc[Ec(d,b)];break;case 18:l=Dc[Ec(d,b)];break;case 19:l=wc[Ec(d,b)];break;case 20:l=xc[Ec(d,b)];break;case 21:l=yc[Ec(d,b)];break;case 22:l=1-vc[Ec(b-d,b)]+0;break;case 23:l=vc[Ec(d,b)];break;case 24:l=d<b/2?.5*(1-vc[Ec(b-2*d,b)]+0)+0:.5*vc[Ec(2*d-b,b)]+.5;break;case 25:d=
d/b/2;l=2*d*d*(3-2*d);break;case 26:d=(d/b+1)/2;l=2*d*d*(3-2*d)-1;break;case 27:d=d/b,l=d*d*(3-2*d)}return p?1-l:l}
for(var Kc=0,Lc=0,Mc=0,W=0,X=0,Nc=0;1E4>=Nc;Nc++){W=Nc/1E4;(W/=1)<1/2.75||(W<2/2.75?W-=1.5/2.75:W<2.5/2.75?W-=2.25/2.75:W-=2.625/2.75);var Oc,Pc=Nc/1E4;Oc=(Pc/=1)<1/2.75?7.5625*Pc*Pc+0:Pc<2/2.75?1*(7.5625*(Pc-=1.5/2.75)*Pc+.75)+0:Pc<2.5/2.75?1*(7.5625*(Pc-=2.25/2.75)*Pc+.9375)+0:1*(7.5625*(Pc-=2.625/2.75)*Pc+.984375)+0;vc[Nc]=Oc;W=Nc/1E4;Mc=Lc=0;W/=1;0==Mc&&(Mc=.3);0==Lc||Lc<Math.abs(1)?(Lc=1,X=Mc/4):X=Mc/(2*Math.PI)*Math.asin(1/Lc);Kc=-(Lc*Math.pow(2,10*--W)*Math.sin(2*(1*W-X)*Math.PI/Mc))+0;wc[Nc]=
Kc;W=Nc/1E4;Mc=Lc=0;W/=1;0==Mc&&(Mc=.3);0==Lc||Lc<Math.abs(1)?(Lc=1,X=Mc/4):X=Mc/(2*Math.PI)*Math.asin(1/Lc);Kc=Lc*Math.pow(2,-10*W)*Math.sin(2*(1*W-X)*Math.PI/Mc)+1;xc[Nc]=Kc;W=Nc/1E4;Mc=Lc=0;W/=.5;0==Mc&&(Mc=.3*1.5);0==Lc||Lc<Math.abs(1)?(Lc=1,X=Mc/4):X=Mc/(2*Math.PI)*Math.asin(1/Lc);Kc=1>W?-.5*Lc*Math.pow(2,10*--W)*Math.sin(2*(1*W-X)*Math.PI/Mc)+0:Lc*Math.pow(2,-10*--W)*Math.sin(2*(1*W-X)*Math.PI/Mc)*.5+1;yc[Nc]=Kc;W=Nc/1E4;zc[Nc]=-(Math.sqrt(1-W*W)-1);W=Nc/1E4;Ac[Nc]=Math.sqrt(1-(W-1)*(W-1));
W=Nc/1E4;Kc=1>(W/=.5)?-.5*(Math.sqrt(1-W*W)-1)+0:.5*(Math.sqrt(1-(W-=2)*W)+1)+0;Bc[Nc]=Kc;W=Nc/1E4;X=0;0==X&&(X=1.70158);Kc=1*((W=W/1-1)*W*((X+1)*W+X)+1)+0;Cc[Nc]=Kc;W=Nc/1E4;X=0;0==X&&(X=1.70158);Kc=1>(W/=.5)?.5*W*W*(((X*=1.525)+1)*W-X)+0:.5*((W-=2)*W*(((X*=1.525)+1)*W+X)+2)+0;Dc[Nc]=Kc}
function Qc(f,d,b,p,l,q,c){this.name=f;this.value=0;this.Gg(p);this.Nk(l);this.kh=b;this.Ka=d;this.duration=q;this.state=this.Y=0;this.ik=this.jk=this.gk=this.zg=!1;this.Gb=this.Ja=0;this.Ob=c;this.ge=1;this.rh=!1}Qc.prototype={};Qc.prototype.Gg=function(f){this.da=parseFloat(f.split(",")[0]);this.ab=parseFloat(f.split(",")[1]);this.Gb=this.Ja=0};Qc.prototype.Nk=function(f){this.ba=parseFloat(f.split(",")[0]);this.Sa=parseFloat(f.split(",")[1]);isNaN(this.Sa)&&(this.Sa=this.ba)};
Qc.prototype.Vg=function(f){if(0===this.state)return-1;1===this.state&&(this.Y+=f);2===this.state&&(this.Y-=f);3===this.state&&(this.state=0);if(4===this.state||6===this.state)this.Y+=f*this.ge;5===this.state&&(this.Y+=f*this.ge);return 0>this.Y?(this.Y=0,4===this.state?this.ge=1:6===this.state?(this.ge=1,this.rh=!1):this.state=0,this.ik=!0,0):this.Y>this.duration?(this.Y=this.duration,4===this.state?this.ge=-1:6===this.state?(this.ge=-1,this.rh=!0):5===this.state?this.Y=0:this.state=0,this.gk=!0,
1):this.rh?Jc(this.kh,this.duration-this.Y,this.duration,this.rh):Jc(this.kh,this.Y,this.duration,this.rh)};function Rc(f){this.b=f}
(function(){var f=Rc.prototype;f.La=function(b){this.behavior=b;this.b=b.b};f.La.prototype.fa=function(){};f.ya=function(b,d){this.type=b;this.behavior=b.behavior;this.d=d;this.b=b.b};var d=f.ya.prototype;d.fa=function(){this.Bg=this.I[0];this.Ma=1==this.Bg||2==this.Bg||3==this.Bg||4==this.Bg;this.Ka=this.I[1];this.Xl=this.I[2];this.target=this.I[3];this.Yk=this.I[4];this.kl=!1;1===this.Yk&&(this.target="relative("+this.target+")");this.duration=this.I[5];this.Ob=1===this.I[6];this.value=0;this.B=
{};this.No(this.Ka,this.Xl,"current",this.target,this.duration,this.Ob);1===this.I[0]&&this.yi(0);2===this.I[0]&&this.yi(2);3===this.I[0]&&this.yi(3);4===this.I[0]&&this.yi(4)};d.Fd=function(b,d){void 0===d&&(d="current");var f=d.replace(/^\s\s*/,"").replace(/\s\s*$/,"");d=d.replace(/^\s\s*/,"").replace(/\s\s*$/,"");var q=this.value;if("current"===d)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=Ha(this.d.e)+","+Ha(this.d.e);break;case 5:f=100*this.d.opacity+","+100*this.d.opacity;break;case 6:f=q+","+q;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.Lb?this.d.width/this.d.Lb.width+","+this.d.height/this.d.Lb.height:"1,1"}if("relative"===d.substring(0,8)){var c=d.match(/\((.*?)\)/);if(c)var a=parseFloat(c[1].split(",")[0]),r=parseFloat(c[1].split(",")[1]);isNaN(a)&&(a=0);isNaN(r)&&(r=0);switch(b){case 0:f=
this.d.x+a+","+(this.d.y+r);break;case 1:f=this.d.width+a+","+(this.d.height+r);break;case 2:f=this.d.width+a+","+(this.d.height+r);break;case 3:f=this.d.width+a+","+(this.d.height+r);break;case 4:f=Ha(this.d.e)+a+","+(Ha(this.d.e)+r);break;case 5:f=100*this.d.opacity+a+","+(100*this.d.opacity+r);break;case 6:f=q+a+","+q+a;break;case 7:f=this.d.x+a+","+this.d.y;break;case 8:f=this.d.x+","+(this.d.y+a);break;case 9:f=a+","+r}}return f};d.No=function(b,d,f,q,c,a){f=this.Fd(b,f);q=this.Fd(b,q);void 0!==
this.B["default"]&&delete this.B["default"];this.B["default"]=new Qc("default",b,d,f,q,c,a);this.B["default"].Ud=0};d.fb=function(){JSON.stringify(this.B["default"]);return{playmode:this.Bg,active:this.Ma,tweened:this.Ka,easing:this.Xl,target:this.target,targetmode:this.Yk,useCurrent:this.kl,duration:this.duration,enforce:this.Ob,value:this.value,tweenlist:JSON.stringify(this.B["default"])}};Qc.os=function(b,d,f,q,c,a,r,w){d=new Qc(d,f,q,c,a,r,w);for(var e in b)d[e]=b[e];return d};d.Ab=function(b){var d=
JSON.parse(b.tweenlist),d=Qc.os(d,d.name,d.Ka,d.kh,d.da+","+d.ab,d.ba+","+d.Sa,d.duration,d.Ob);this.B["default"]=d;this.Bg=b.playmode;this.Ma=b.active;this.Xl=b.easing;this.target=b.target;this.Yk=b.targetmode;this.kl=b.useCurrent;this.duration=b.duration;this.Ob=b.enforce;this.value=b.value};d.xw=function(b){1<b&&(b=1);0>b&&(b=0);for(var d in this.B){var f=this.B[d];f.Ja=0;f.Gb=0;f.state=3;f.Y=b*f.duration;var q=f.Vg(0);this.jo(f,q)}};d.yi=function(b){for(var d in this.B){var f=this.B[d];if(this.kl){var q=
this.Fd(f.Ka,"current"),c=this.Fd(f.Ka,this.target);f.Gg(q);f.Nk(c)}0===b&&(f.Y=1E-6,f.Ja=0,f.Gb=0,f.zg=!0,f.state=1);1===b&&(f.state=1);if(2===b||4===b)f.Y=1E-6,f.Ja=0,f.Gb=0,f.zg=!0,2==b&&(f.state=4),4==b&&(f.state=6);3===b&&(f.Y=1E-6,f.Ja=0,f.Gb=0,f.zg=!0,f.state=5)}};d.Fw=function(b){for(var d in this.B){var f=this.B[d];1===b&&(f.Y=0);2===b&&(f.Y=f.duration);f.state=3;var q=f.Vg(0);this.jo(f,q)}};d.lw=function(b){for(var d in this.B){var f=this.B[d];1===b&&(f.Y=f.duration,f.Ja=0,f.Gb=0,f.jk=!0);
f.state=2}};d.jo=function(b,d){var f=1,q=1;0>this.d.width&&(f=-1);0>this.d.height&&(q=-1);0===b.Ka?b.Ob?(this.d.x=b.da+(b.ba-b.da)*d,this.d.y=b.ab+(b.Sa-b.ab)*d):(this.d.x+=(b.ba-b.da)*d-b.Ja,this.d.y+=(b.Sa-b.ab)*d-b.Gb,b.Ja=(b.ba-b.da)*d,b.Gb=(b.Sa-b.ab)*d):1===b.Ka?b.Ob?(this.d.width=f*b.da+(b.ba-b.da)*d*f,this.d.height=q*b.ab+(b.Sa-b.ab)*d*q):(this.d.width+=f*(b.ba-b.da)*d-b.Ja,this.d.height+=q*(b.Sa-b.ab)*d-b.Gb,b.Ja=f*(b.ba-b.da)*d,b.Gb=q*(b.Sa-b.ab)*d):2===b.Ka?b.Ob?this.d.width=f*b.da+(b.ba-
b.da)*d*f:(this.d.width+=f*(b.ba-b.da)*d-b.Ja,b.Ja=f*(b.ba-b.da)*d):3===b.Ka?b.Ob?this.d.height=q*b.ab+(b.Sa-b.ab)*d*q:(this.d.height+=q*(b.Sa-b.ab)*d-b.Gb,b.Gb=q*(b.Sa-b.ab)*d):4===b.Ka?b.Ob?(f=b.da+(b.ba-b.da)*d,this.d.e=Ja(D(f))):(f=(b.ba-b.da)*d-b.Ja,this.d.e=Ja(this.d.e+D(f)),b.Ja=(b.ba-b.da)*d):5===b.Ka?b.Ob?this.d.opacity=(b.da+(b.ba-b.da)*d)/100:(this.d.opacity+=((b.ba-b.da)*d-b.Ja)/100,b.Ja=(b.ba-b.da)*d):6===b.Ka?b.Ob?this.value=b.da+(b.ba-b.da)*d:(this.value+=(b.ba-b.da)*d-b.Ja,b.Ja=(b.ba-
b.da)*d):7===b.Ka?b.Ob?this.d.x=b.da+(b.ba-b.da)*d:(this.d.x+=(b.ba-b.da)*d-b.Ja,b.Ja=(b.ba-b.da)*d):8===b.Ka?b.Ob?this.d.y=b.ab+(b.Sa-b.ab)*d:(this.d.y+=(b.Sa-b.ab)*d-b.Gb,b.Gb=(b.Sa-b.ab)*d):9===b.Ka&&(f=b.da+(b.ba-b.da)*d,q=b.ab+(b.Sa-b.ab)*d,0>this.d.width&&(f=b.da+(b.ba+b.da)*-d),0>this.d.height&&(q=b.ab+(b.Sa+b.ab)*-d),b.Ob?(this.d.width=this.d.Lb.width*f,this.d.height=this.d.Lb.height*q):(0>this.d.width?(this.d.width=this.d.width/(-1+b.Ja)*f,b.Ja=f+1):(this.d.width=this.d.width/(1+b.Ja)*f,
b.Ja=f-1),0>this.d.height?(this.d.height=this.d.height/(-1+b.Gb)*q,b.Gb=q+1):(this.d.height=this.d.height/(1+b.Gb)*q,b.Gb=q-1)));this.d.Qa()};d.Fa=function(){var b=this.b.uh(this.d),d=this.B["default"];0!==d.state&&(d.zg&&(this.b.trigger(Rc.prototype.k.Gs,this.d),d.zg=!1),d.jk&&(this.b.trigger(Rc.prototype.k.Fs,this.d),d.jk=!1),this.Ma=1==d.state||2==d.state||4==d.state||5==d.state||6==d.state,b=d.Vg(b),this.jo(d,b),d.gk&&(this.b.trigger(Rc.prototype.k.zs,this.d),d.gk=!1),d.ik&&(this.b.trigger(Rc.prototype.k.Es,
this.d),d.ik=!1))};f.k={};d=f.k;d.ix=function(){return 0!==this.B["default"].state};d.mx=function(){return 2==this.B["default"].state};d.ax=function(b,d){var f=this.B["default"];return dc(f.Y/f.duration,b,d)};d.Gs=function(){return void 0===this.B["default"]?!1:this.B["default"].zg};d.Fs=function(){return void 0===this.B["default"]?!1:this.B["default"].jk};d.zs=function(){return void 0===this.B["default"]?!1:this.B["default"].gk};d.Es=function(){return void 0===this.B["default"]?!1:this.B["default"].ik};
f.H={};d=f.H;d.Vs=function(b,d){this.kl=1==d;this.yi(b)};d.Wg=function(b){this.Fw(b)};d.Gx=function(b){this.lw(b)};d.Fx=function(b){this.xw(b)};d.Ks=function(b){isNaN(b)||0>b||void 0===this.B["default"]||(this.B["default"].duration=b)};d.Ms=function(b){void 0!==this.B["default"]&&(this.B["default"].Ob=1===b)};d.Qx=function(b){void 0!==this.B["default"]&&(b=this.Fd(this.B["default"].Ka,b),this.B["default"].Gg(b))};d.Rs=function(b,d,f){if(void 0!==this.B["default"]&&!isNaN(f)){var q=this.B["default"],
c=f+"";this.Yk=d;var a="",r="";if(1===d){this.target="relative("+c+")";switch(b){case 0:a=this.d.x+f;r=q.Sa;break;case 1:a=q.ba;r=this.d.y+f;break;case 2:r=a=""+Ha(this.d.e+D(f));break;case 3:r=a=""+100*this.d.opacity+f;break;case 4:a=this.d.width+f;r=q.Sa;break;case 5:a=q.ba;r=this.d.height+f;break;case 6:r=a=f}c=a+","+r}else{switch(b){case 0:a=f;r=q.Sa;break;case 1:a=q.ba;r=f;break;case 2:r=a=f;break;case 3:r=a=f;break;case 4:a=f;r=q.Sa;break;case 5:a=q.ba;r=f;break;case 6:r=a=f}this.target=c=a+
","+r}b=this.Fd(this.B["default"].Ka,"current");c=this.Fd(this.B["default"].Ka,c);q.Gg(b);q.Nk(c)}};d.Wx=function(b){void 0!==this.B["default"]&&(this.B["default"].Ka=b)};d.Ls=function(b){void 0!==this.B["default"]&&(this.B["default"].kh=b)};d.Xx=function(b){var d=this.B["default"];this.value=b;6===d.Ka&&d.Gg(this.Fd(d.Ka,"current"))};d.Rx=function(b,d,f,q,c){if(void 0===this.B["default"])this.No(b,d,initial,f,q,c);else{var a=this.B["default"];a.Ka=b;a.kh=d;a.Gg(this.Fd(b,"current"));a.Nk(this.Fd(b,
f));a.duration=q;a.Ob=1===c}};f.ua={};f=f.ua;f.$x=function(b){var d="N/A";switch(this.B["default"].state){case 0:d="paused";break;case 1:d="playing";break;case 2:d="reversing";break;case 3:d="seeking"}b.Sb(d)};f.Ex=function(b){b.u(this.B["default"].Y/this.B["default"].duration)};f.cs=function(b){b.u(this.B["default"].duration)};f.by=function(b){var d=this.B["default"],f="N/A";switch(d.Ka){case 0:f=d.ba;break;case 1:f=d.Sa;break;case 2:f=d.ba;break;case 3:f=d.ba;break;case 4:f=d.ba;break;case 5:f=
d.Sa;break;case 6:f=d.ba}b.u(f)};f.dy=function(b){b.u(this.value)}})();function Sc(f){this.b=f;this.Sn=this.Ok=this.wi=this.Rn=0}
(function(){var f=Sc.prototype;f.La=function(b){this.behavior=b;this.b=b.b};f.La.prototype.fa=function(){};f.ya=function(b,d){this.type=b;this.behavior=b.behavior;this.d=d;this.b=b.b};var d=f.ya.prototype;d.fa=function(){this.enabled=0!==this.I[0]};d.fb=function(){return{smg:this.behavior.Rn,ss:this.behavior.wi,se:this.behavior.Ok,smd:this.behavior.Sn}};d.Ab=function(b){this.behavior.Rn=b.smg;this.behavior.wi=b.ss;this.behavior.Ok=b.se;this.behavior.Sn=b.smd};d.Fa=function(){};d.Gi=function(){if(this.enabled){var b=
this.behavior.dk.le(),d=0,f=0,q,c,a,r=0;q=0;for(c=b.length;q<c;q++){a:{a=b[q];for(var w=void 0,e=void 0,h=void 0,w=0,e=a.R.length;w<e;++w)if(h=a.R[w],h.behavior instanceof Sc){a=h;break a}a=null}a&&a.enabled&&(d+=b[q].x,f+=b[q].y,++r)}b=this.d.j.pb;c=this.b.bb.W;a=q=0;c>=this.behavior.wi&&c<this.behavior.Ok&&(q=this.behavior.Rn*Math.min(this.b.Hf,1),0===this.behavior.Sn&&(q*=1-(c-this.behavior.wi)/(this.behavior.Ok-this.behavior.wi)),c=Math.random()*Math.PI*2,a=Math.random()*q,q=Math.cos(c)*a,a*=
Math.sin(c));b.On(d/r+q);b.Pn(f/r+a)}};f.H=new function(){}})();function Tc(f){this.b=f}(function(){var f=Tc.prototype;f.La=function(b){this.behavior=b;this.b=b.b};f.La.prototype.fa=function(){};f.ya=function(b,d){this.type=b;this.behavior=b.behavior;this.d=d;this.b=b.b};var d=f.ya.prototype;d.fa=function(){this.d.M.solidEnabled=0!==this.I[0]};d.Fa=function(){};f.k=new function(){};f.H=new function(){}})();
function nc(){return[oc,pc,qc,V,rc,sc,tc,Rc,Tc,uc,Sc,tc.prototype.k.Ao,V.prototype.k.Yr,V.prototype.k.hs,V.prototype.H.Is,V.prototype.k.ks,oc.prototype.H.zl,Q.prototype.ua.$o,Q.prototype.k.gs,V.prototype.H.Go,V.prototype.ua.Pi,Q.prototype.ua.Ud,V.prototype.H.Qs,Q.prototype.ua.random,V.prototype.H.Ns,pc.prototype.ua.Pi,sc.prototype.H.Go,sc.prototype.ua.Pi,V.prototype.k.so,V.prototype.H.bs,Q.prototype.k.es,Q.prototype.H.as,Q.prototype.k.ms,V.prototype.k.vs,Q.prototype.k.Zs,Rc.prototype.H.Rs,Rc.prototype.H.Vs,
oc.prototype.H.Play,Q.prototype.k.wo,uc.prototype.H.Hs,V.prototype.H.Ws,sc.prototype.k.so,V.prototype.k.vo,Q.prototype.H.Os,Q.prototype.k.$r,V.prototype.k.Zr,V.prototype.H.Ts,tc.prototype.k.Bo,Q.prototype.H.bt,Q.prototype.ua.max,rc.prototype.H.Ss,Q.prototype.ua.floor,Q.prototype.ua.Sw,qc.prototype.H.Al,V.prototype.H.Js,Rc.prototype.H.Ks,Rc.prototype.H.Wg,Rc.prototype.H.Ls,Rc.prototype.H.Ms,V.prototype.H.Xs,V.prototype.k.Xr,Q.prototype.k.Wr,oc.prototype.H.Ps,oc.prototype.H.Wg,V.prototype.ua.Opacity,
rc.prototype.ua.Opacity]};
