Файловый менеджер - Редактировать - /home/jogoso94/public_html/jogos/amelia_dress/c2runtime.js
�азад
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com 'use strict';var aa,ba,da,B,ea,fa,ga,Q,ha,ja,ka,la,ma,pa,qa,ra,ua,va,wa,xa,ya,R,za,Ba,Ca,Da,Ea,V,Fa,Ia,Ja,Ka,La,Ma,Na,Oa,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype}); (function(){function e(a,b,d,u){this.set(a,b,d,u)}function q(){this.Lc=this.Kc=this.Nc=this.Mc=this.jd=this.hd=this.fd=this.ed=0}function m(a,b,d,u){a<b?d<u?(z=a<d?a:d,n=b>u?b:u):(z=a<u?a:u,n=b>d?b:d):d<u?(z=b<d?b:d,n=a>u?a:u):(z=b<u?b:u,n=a>d?a:d)}function r(){this.items=this.cd=null;this.Dg=0;H&&(this.cd=new Set);this.Qf=[];this.Td=!0}function v(a){S[K++]=a}function t(){this.T=this.Si=this.y=this.mj=0}function c(a){this.Gf=[];this.Zl=this.am=this.cm=this.$l=0;this.fh(a)}function b(a,b){this.sj= a;this.rj=b;this.cells={}}function l(a,b){this.sj=a;this.rj=b;this.cells={}}function f(a,b,d){var u;return Y.length?(u=Y.pop(),u.Yj=a,u.x=b,u.y=d,u):new aa(a,b,d)}function a(a,b,d){this.Yj=a;this.x=b;this.y=d;this.Oa=new ba}function d(a,b,d){var u;return O.length?(u=O.pop(),u.Yj=a,u.x=b,u.y=d,u):new da(a,b,d)}function g(a,b,d){this.Yj=a;this.x=b;this.y=d;this.Oa=[];this.rf=!0;this.Zc=new ba;this.Uf=!1}function h(a,b){return a.Ic-b.Ic}B=function(a){window.console&&window.console.log&&window.console.log(a)}; ea=function(a){window.console&&window.console.error&&window.console.error(a)};fa=function(a){return"undefined"===typeof a};ga=function(a){return"number"===typeof a};Q=function(a){return"string"===typeof a};ha=function(a){return 0<a&&0===(a-1&a)};ja=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};ka=function(a){return 0>a?-a:a};la=function(a,b){return a<b?a:b};ma=Math.PI;pa=function(a){return 0<=a?a|0:(a|0)-1};qa=function(a){var b=a|0;return b===a?b:b+1};ra=function(a,b,d,u,C,w,k,h){var f, g,n,l;a<d?(g=a,f=d):(g=d,f=a);C<k?(l=C,n=k):(l=k,n=C);if(f<l||g>n)return!1;b<u?(g=b,f=u):(g=u,f=b);w<h?(l=w,n=h):(l=h,n=w);if(f<l||g>n)return!1;f=C-a+k-d;g=w-b+h-u;a=d-a;b=u-b;C=k-C;w=h-w;h=ka(b*C-w*a);return ka(C*g-w*f)>h?!1:ka(a*g-b*f)<=h};e.prototype.set=function(a,b,d,u){this.left=a;this.top=b;this.right=d;this.bottom=u};e.prototype.$f=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};e.prototype.width=function(){return this.right-this.left};e.prototype.height= function(){return this.bottom-this.top};e.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};e.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)};e.prototype.Zb=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};e.prototype.eg=function(a){return this.left===a.left&&this.top===a.top&&this.right=== a.right&&this.bottom===a.bottom};ua=e;q.prototype.Ni=function(a){this.ed=a.left;this.fd=a.top;this.hd=a.right;this.jd=a.top;this.Mc=a.right;this.Nc=a.bottom;this.Kc=a.left;this.Lc=a.bottom};q.prototype.Co=function(a,b){if(0===b)this.Ni(a);else{var d=Math.sin(b),u=Math.cos(b),k=a.left*d,w=a.top*d,h=a.right*d,d=a.bottom*d,f=a.left*u,g=a.top*u,n=a.right*u,u=a.bottom*u;this.ed=f-w;this.fd=g+k;this.hd=n-w;this.jd=g+h;this.Mc=n-d;this.Nc=u+h;this.Kc=f-d;this.Lc=u+k}};q.prototype.offset=function(a,b){this.ed+= a;this.fd+=b;this.hd+=a;this.jd+=b;this.Mc+=a;this.Nc+=b;this.Kc+=a;this.Lc+=b;return this};var z=0,n=0;q.prototype.em=function(a){m(this.ed,this.hd,this.Mc,this.Kc);a.left=z;a.right=n;m(this.fd,this.jd,this.Nc,this.Lc);a.top=z;a.bottom=n};q.prototype.Zb=function(a,b){var d=this.ed,u=this.fd,k=this.hd-d,w=this.jd-u,h=this.Mc-d,f=this.Nc-u,g=a-d,n=b-u,l=k*k+w*w,p=k*h+w*f,w=k*g+w*n,c=h*h+f*f,z=h*g+f*n,e=1/(l*c-p*p),k=(c*w-p*z)*e,l=(l*z-p*w)*e;if(0<=k&&0<l&&1>k+l)return!0;k=this.Kc-d;w=this.Lc-u;l=k* k+w*w;p=k*h+w*f;w=k*g+w*n;e=1/(l*c-p*p);k=(c*w-p*z)*e;l=(l*z-p*w)*e;return 0<=k&&0<l&&1>k+l};va=q;wa=function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);return a};xa=function(a,b){var d,u;b=pa(b);if(!(0>b||b>=a.length)){d=b;for(u=a.length-1;d<u;d++)a[d]=a[d+1];ya(a,u)}};ya=function(a,b){a.length=b};R=function(a){ya(a,0)};za=function(a,b){R(a);var d,u;d=0;for(u=b.length;d<u;++d)a[d]=b[d]};Ba=function(a,b){a.push.apply(a,b)};Ca=function(a,b){var d,u;d=0;for(u=a.length;d<u;++d)if(a[d]===b)return d; return-1};Da=function(a,b){var d=Ca(a,b);-1!==d&&xa(a,d)};Ea=function(a,b,d){return a<b?b:a>d?d:a};V=function(a){return a/(180/ma)};Fa=function(a){return 180/ma*a};Ia=function(a){a%=360;0>a&&(a+=360);return a};Ja=function(a){a%=2*ma;0>a&&(a+=2*ma);return a};Ka=function(a){return Ia(Fa(a))};La=function(a){return Ja(V(a))};Ma=function(a,b,d,u){return Math.atan2(u-b,d-a)};Na=function(a,b){if(a===b)return 0;var d=Math.sin(a),u=Math.cos(a),k=Math.sin(b),w=Math.cos(b),d=d*k+u*w;return 1<=d?0:-1>=d?ma:Math.acos(d)}; Oa=function(a,b,d){var u=Math.sin(a),k=Math.cos(a),w=Math.sin(b),h=Math.cos(b);return Math.acos(u*w+k*h)>d?0<k*w-u*h?Ja(a+d):Ja(a-d):Ja(b)};Ua=function(a,b){var d=Math.sin(a),u=Math.cos(a),k=Math.sin(b),w=Math.cos(b);return 0>=u*k-d*w};Va=function(a,b,d,u,k,w){if(0===d)return w?a:b;var h=Math.sin(d);d=Math.cos(d);a-=u;b-=k;var f=a*h;a=a*d-b*h;b=b*d+f;return w?a+u:b+k};Wa=function(a,b,d,u){a=d-a;b=u-b;return Math.sqrt(a*a+b*b)};Xa=function(a,b){return!a!==!b};Ya=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0; return!1};Za=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var x=+new Date;$a=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()-x};var k=!1,p=k=!1,ca=!1;"undefined"!==typeof window&&(k=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent), k=!k&&/safari/i.test(navigator.userAgent),p=/(iphone|ipod|ipad)/i.test(navigator.userAgent),ca=window.c2ejecta);var H=!k&&!ca&&!p&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;r.prototype.contains=function(a){return this.ud()?!1:H?this.cd.has(a):this.items&&this.items.hasOwnProperty(a)};r.prototype.add=function(a){if(H)this.cd.has(a)||(this.cd.add(a),this.Td=!1);else{var b=a.toString(),d=this.items;d?d.hasOwnProperty(b)||(d[b]=a,this.Dg++,this.Td=!1):(this.items={},this.items[b]= a,this.Dg=1,this.Td=!1)}};r.prototype.remove=function(a){if(!this.ud())if(H)this.cd.has(a)&&(this.cd["delete"](a),this.Td=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Dg--,this.Td=!1)}};r.prototype.clear=function(){this.ud()||(H?this.cd.clear():(this.items=null,this.Dg=0),R(this.Qf),this.Td=!0)};r.prototype.ud=function(){return 0===this.count()};r.prototype.count=function(){return H?this.cd.size:this.Dg};var S=null,K=0;r.prototype.Qt=function(){if(!this.Td){if(H)R(this.Qf), S=this.Qf,K=0,this.cd.forEach(v),S=null,K=0;else{var a=this.Qf;R(a);var b,d=0,u=this.items;if(u)for(b in u)u.hasOwnProperty(b)&&(a[d++]=u[b])}this.Td=!0}};r.prototype.le=function(){this.Qt();return this.Qf};ba=r;new ba;ab=function(a,b){H?bb(a,b.cd):cb(a,b.le())};bb=function(a,b){var d,u,k,h;u=d=0;for(k=a.length;d<k;++d)h=a[d],b.has(h)||(a[u++]=h);ya(a,u)};cb=function(a,b){var d,u,k,h;u=d=0;for(k=a.length;d<k;++d)h=a[d],-1===Ca(b,h)&&(a[u++]=h);ya(a,u)};t.prototype.add=function(a){this.y=a-this.mj; this.Si=this.T+this.y;this.mj=this.Si-this.T-this.y;this.T=this.Si};t.prototype.reset=function(){this.T=this.Si=this.y=this.mj=0};db=t;fb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};c.prototype.fh=function(a){this.ko=a;this.Fi=a.length/2;this.Gf.length=a.length;this.nj=this.oj=-1;this.hm=0};c.prototype.Bs=function(){return!this.ko.length};c.prototype.Za=function(){for(var a=this.Gf,b=a[0],d=b,u=a[1],k=u,h,f,g=1,n=this.Fi;g<n;++g)f=2*g,h=a[f],f=a[f+1],h<b&&(b=h),h>d&&(d=h),f<u&& (u=f),f>k&&(k=f);this.$l=b;this.am=d;this.cm=u;this.Zl=k};c.prototype.Ni=function(a,b,d){this.Gf.length=8;this.Fi=4;var u=this.Gf;u[0]=a.left-b;u[1]=a.top-d;u[2]=a.right-b;u[3]=a.top-d;u[4]=a.right-b;u[5]=a.bottom-d;u[6]=a.left-b;u[7]=a.bottom-d;this.oj=a.right-a.left;this.nj=a.bottom-a.top;this.Za()};c.prototype.lq=function(a,b,d){if(this.oj!==a||this.nj!==b||this.hm!==d){this.oj=a;this.nj=b;this.hm=d;var u,k,h,f,g,n=0,l=1,p=this.ko,c=this.Gf;0!==d&&(n=Math.sin(d),l=Math.cos(d));d=0;for(h=this.Fi;d< h;d++)u=2*d,k=u+1,f=p[u]*a,g=p[k]*b,c[u]=f*l-g*n,c[k]=g*l+f*n;this.Za()}};c.prototype.Zb=function(a,b){var d=this.Gf;if(a===d[0]&&b===d[1])return!0;var u,k,h,f=this.Fi,g=this.$l-110,n=this.cm-101,l=this.am+131,p=this.Zl+120,c,z,e=0,x=0;for(u=0;u<f;u++)k=2*u,h=(u+1)%f*2,c=d[k],k=d[k+1],z=d[h],h=d[h+1],ra(g,n,a,b,c,k,z,h)&&e++,ra(l,p,a,b,c,k,z,h)&&x++;return 1===e%2||1===x%2};gb=c;b.prototype.Zd=function(a,b,d){var u;u=this.cells[a];return u?(u=u[b])?u:d?(u=f(this,a,b),this.cells[a][b]=u):null:d?(u= f(this,a,b),this.cells[a]={},this.cells[a][b]=u):null};b.prototype.pb=function(a){return pa(a/this.sj)};b.prototype.qb=function(a){return pa(a/this.rj)};b.prototype.update=function(a,b,d){var u,k,h,f,g;if(b)for(u=b.left,k=b.right;u<=k;++u)for(h=b.top,f=b.bottom;h<=f;++h)if(!d||!d.Zb(u,h))if(g=this.Zd(u,h,!1))g.remove(a),g.ud()&&(g.Oa.clear(),1E3>Y.length&&Y.push(g),this.cells[u][h]=null);if(d)for(u=d.left,k=d.right;u<=k;++u)for(h=d.top,f=d.bottom;h<=f;++h)b&&b.Zb(u,h)||this.Zd(u,h,!0).gk(a)};b.prototype.mo= function(a,b){var d,u,k,h,f,g;d=this.pb(a.left);k=this.qb(a.top);u=this.pb(a.right);for(f=this.qb(a.bottom);d<=u;++d)for(h=k;h<=f;++h)(g=this.Zd(d,h,!1))&&g.dump(b)};hb=b;l.prototype.Zd=function(a,b,k){var u;u=this.cells[a];return u?(u=u[b])?u:k?(u=d(this,a,b),this.cells[a][b]=u):null:k?(u=d(this,a,b),this.cells[a]={},this.cells[a][b]=u):null};l.prototype.pb=function(a){return pa(a/this.sj)};l.prototype.qb=function(a){return pa(a/this.rj)};l.prototype.update=function(a,b,d){var u,k,h,f,g;if(b)for(u= b.left,k=b.right;u<=k;++u)for(h=b.top,f=b.bottom;h<=f;++h)if(!d||!d.Zb(u,h))if(g=this.Zd(u,h,!1))g.remove(a),g.ud()&&(g.reset(),1E3>O.length&&O.push(g),this.cells[u][h]=null);if(d)for(u=d.left,k=d.right;u<=k;++u)for(h=d.top,f=d.bottom;h<=f;++h)b&&b.Zb(u,h)||this.Zd(u,h,!0).gk(a)};l.prototype.mo=function(a,b,d,u,h){var k,f;a=this.pb(a);b=this.qb(b);d=this.pb(d);for(k=this.qb(u);a<=d;++a)for(u=b;u<=k;++u)(f=this.Zd(a,u,!1))&&f.dump(h)};l.prototype.Hs=function(a){var b,d,u,h,k;b=a.left;u=a.top;d=a.right; for(h=a.bottom;b<=d;++b)for(a=u;a<=h;++a)if(k=this.Zd(b,a,!1))k.rf=!1};ib=l;var Y=[];a.prototype.ud=function(){return this.Oa.ud()};a.prototype.gk=function(a){this.Oa.add(a)};a.prototype.remove=function(a){this.Oa.remove(a)};a.prototype.dump=function(a){Ba(a,this.Oa.le())};aa=a;var O=[];g.prototype.ud=function(){if(!this.Oa.length)return!0;if(this.Oa.length>this.Zc.count())return!1;this.Jj();return!0};g.prototype.gk=function(a){this.Zc.contains(a)?(this.Zc.remove(a),this.Zc.ud()&&(this.Uf=!1)):this.Oa.length? (this.Oa[this.Oa.length-1].Tc()>a.Tc()&&(this.rf=!1),this.Oa.push(a)):(this.Oa.push(a),this.rf=!0)};g.prototype.remove=function(a){this.Zc.add(a);this.Uf=!0;30<=this.Zc.count()&&this.Jj()};g.prototype.Jj=function(){this.Uf&&(this.Zc.count()===this.Oa.length?this.reset():(ab(this.Oa,this.Zc),this.Zc.clear(),this.Uf=!1))};g.prototype.Vq=function(){this.rf||(this.Oa.sort(h),this.rf=!0)};g.prototype.reset=function(){R(this.Oa);this.rf=!0;this.Zc.clear();this.Uf=!1};g.prototype.dump=function(a){this.Jj(); this.Vq();this.Oa.length&&a.push(this.Oa)};da=g;var G="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":G[a-1]};kb=function(a,b,d){if(d)switch(a.kb=d.ONE,a.fb=d.ONE_MINUS_SRC_ALPHA,b){case 1:a.kb=d.ONE;a.fb=d.ONE;break;case 3:a.kb=d.ONE;a.fb=d.ZERO;break;case 4:a.kb=d.ONE_MINUS_DST_ALPHA;a.fb=d.ONE;break;case 5:a.kb=d.DST_ALPHA;a.fb=d.ZERO;break;case 6:a.kb=d.ZERO;a.fb=d.SRC_ALPHA; break;case 7:a.kb=d.ONE_MINUS_DST_ALPHA;a.fb=d.ZERO;break;case 8:a.kb=d.ZERO;a.fb=d.ONE_MINUS_SRC_ALPHA;break;case 9:a.kb=d.DST_ALPHA;a.fb=d.ONE_MINUS_SRC_ALPHA;break;case 10:a.kb=d.ONE_MINUS_DST_ALPHA,a.fb=d.SRC_ALPHA}};lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.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 fc="undefined"!==typeof Float32Array?Float32Array:Array;function gc(e){var q=new fc(3);e&&(q[0]=e[0],q[1]=e[1],q[2]=e[2]);return q}function hc(e){var q=new fc(16);e&&(q[0]=e[0],q[1]=e[1],q[2]=e[2],q[3]=e[3],q[4]=e[4],q[5]=e[5],q[6]=e[6],q[7]=e[7],q[8]=e[8],q[9]=e[9],q[10]=e[10],q[11]=e[11],q[12]=e[12],q[13]=e[13],q[14]=e[14],q[15]=e[15]);return q} function ic(e,q){q[0]=e[0];q[1]=e[1];q[2]=e[2];q[3]=e[3];q[4]=e[4];q[5]=e[5];q[6]=e[6];q[7]=e[7];q[8]=e[8];q[9]=e[9];q[10]=e[10];q[11]=e[11];q[12]=e[12];q[13]=e[13];q[14]=e[14];q[15]=e[15]}function jc(e,q){var m=q[0],r=q[1];q=q[2];e[0]*=m;e[1]*=m;e[2]*=m;e[3]*=m;e[4]*=r;e[5]*=r;e[6]*=r;e[7]*=r;e[8]*=q;e[9]*=q;e[10]*=q;e[11]*=q} function kc(e,q,m,r){r||(r=hc());var v,t,c,b,l,f,a,d,g=e[0],h=e[1];e=e[2];t=m[0];c=m[1];v=m[2];m=q[1];f=q[2];g===q[0]&&h===m&&e===f?(e=r,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(m=g-q[0],f=h-q[1],a=e-q[2],d=1/Math.sqrt(m*m+f*f+a*a),m*=d,f*=d,a*=d,q=c*a-v*f,v=v*m-t*a,t=t*f-c*m,(d=Math.sqrt(q*q+v*v+t*t))?(d=1/d,q*=d,v*=d,t*=d):t=v=q=0,c=f*t-a*v,b=a*q-m*t,l=m*v-f*q,(d=Math.sqrt(c*c+b*b+l*l))?(d=1/d,c*=d,b*=d,l*=d):l=b=c=0, r[0]=q,r[1]=c,r[2]=m,r[3]=0,r[4]=v,r[5]=b,r[6]=f,r[7]=0,r[8]=t,r[9]=l,r[10]=a,r[11]=0,r[12]=-(q*g+v*h+t*e),r[13]=-(c*g+b*h+l*e),r[14]=-(m*g+f*h+a*e),r[15]=1)} (function(){function e(b,l,f){this.ae=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.da=!!f;this.bi=this.ug=!1;this.yj=0;this.dj=1;this.Bl=1E3;this.Xt=(this.Bl-this.dj)/32768;this.pj=gc([0,0,100]);this.jn=gc([0,0,0]);this.Yo=gc([0,1,0]);this.rh=gc([1,1,1]);this.tm=!0;this.pi=hc();this.Ub=hc();this.tk=hc();this.xj=hc();this.m=b;this.Pm()}function q(b,l,f){this.m=b;this.gh=l;this.name=f;this.kc=b.getAttribLocation(l,"aPos");this.ge=b.getAttribLocation(l, "aTex");this.gn=b.getUniformLocation(l,"matP");this.li=b.getUniformLocation(l,"matMV");this.zf=b.getUniformLocation(l,"opacity");this.wk=b.getUniformLocation(l,"colorFill");this.hn=b.getUniformLocation(l,"samplerFront");this.Jg=b.getUniformLocation(l,"samplerBack");this.Pe=b.getUniformLocation(l,"destStart");this.Oe=b.getUniformLocation(l,"destEnd");this.Lg=b.getUniformLocation(l,"seconds");this.yk=b.getUniformLocation(l,"pixelWidth");this.xk=b.getUniformLocation(l,"pixelHeight");this.Ig=b.getUniformLocation(l, "layerScale");this.Hg=b.getUniformLocation(l,"layerAngle");this.Mg=b.getUniformLocation(l,"viewOrigin");this.Kg=b.getUniformLocation(l,"scrollPos");this.ls=!!(this.yk||this.xk||this.Lg||this.Jg||this.Pe||this.Oe||this.Ig||this.Hg||this.Mg||this.Kg);this.sn=this.tn=-999;this.oi=1;this.nn=this.mn=0;this.qn=this.ln=this.kn=1;this.wn=this.vn=this.un=this.yn=this.xn=this.pn=0;this.sk=[];this.rn=hc();this.zf&&b.uniform1f(this.zf,1);this.wk&&b.uniform4f(this.wk,1,1,1,1);this.hn&&b.uniform1i(this.hn,0);this.Jg&& b.uniform1i(this.Jg,1);this.Pe&&b.uniform2f(this.Pe,0,0);this.Oe&&b.uniform2f(this.Oe,1,1);this.Ig&&b.uniform1f(this.Ig,1);this.Hg&&b.uniform1f(this.Hg,0);this.Mg&&b.uniform2f(this.Mg,0,0);this.Kg&&b.uniform2f(this.Kg,0,0);this.Lg&&b.uniform1f(this.Lg,0);this.De=!1}function m(b,l){return b[0]===l[0]&&b[1]===l[1]&&b[2]===l[2]&&b[3]===l[3]&&b[4]===l[4]&&b[5]===l[5]&&b[6]===l[6]&&b[7]===l[7]&&b[8]===l[8]&&b[9]===l[9]&&b[10]===l[10]&&b[11]===l[11]&&b[12]===l[12]&&b[13]===l[13]&&b[14]===l[14]&&b[15]=== l[15]}function r(b,l){this.type=b;this.q=l;this.m=l.m;this.Uc=this.nb=this.Tn=0;this.J=this.qc=null;this.Do=[]}var v=hc();e.prototype.Pm=function(){var b=this.m,l;this.$m=1;this.Le=this.Ke=null;this.Fh=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.da?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):b.disable(b.DEPTH_TEST);this.an=b.ONE;this.Zm=b.ONE_MINUS_SRC_ALPHA; this.bj=new Float32Array(8E3*(this.da?3:2));this.Ui=new Float32Array(16E3);this.eo=new Float32Array(32E3);this.Pk=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.Pk);b.bufferData(b.ARRAY_BUFFER,this.eo.byteLength,b.DYNAMIC_DRAW);this.qh=Array(4);this.lh=Array(4);for(l=0;4>l;l++)this.qh[l]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.qh[l]),b.bufferData(b.ARRAY_BUFFER,this.bj.byteLength,b.DYNAMIC_DRAW),this.lh[l]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.lh[l]),b.bufferData(b.ARRAY_BUFFER, this.Ui.byteLength,b.DYNAMIC_DRAW);this.nd=0;this.ps=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.ps);for(var f=new Uint16Array(12E3),a=l=0;12E3>l;)f[l++]=a,f[l++]=a+1,f[l++]=a+2,f[l++]=a,f[l++]=a+2,f[l++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,f,b.STATIC_DRAW);this.Qk=this.Mf=this.Hd=0;this.ta=[];l=this.da?"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}";f=this.ag({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}"},l,"<default>");this.ta.push(f);f=this.ag({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.ta.push(f);f=this.ag({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},l,"<earlyz>");this.ta.push(f);f=this.ag({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, l,"<fill>");this.ta.push(f);for(var d in lc)lc.hasOwnProperty(d)&&this.ta.push(this.ag(lc[d],l,d));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.Sd=[];this.md=0;this.gb=!1;this.nm=this.Fg=-1;this.df=null;this.Hj=b.createFramebuffer();this.Jh=this.Gi=null;this.Xl=!1;this.da&&(this.Jh=b.createRenderbuffer());this.ke=gc([0,0,0]);this.zn=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048<this.zn&&(this.zn=2048);this.zb(0)};q.prototype.ul=function(b){m(this.rn,b)||(ic(b,this.rn),this.m.uniformMatrix4fv(this.li, !1,b))};e.prototype.ag=function(b,l,f){var a=this.m,d=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(d,b.src);a.compileShader(d);if(!a.getShaderParameter(d,a.COMPILE_STATUS))return a.deleteShader(d),null;var g=a.createShader(a.VERTEX_SHADER);a.shaderSource(g,l);a.compileShader(g);if(!a.getShaderParameter(g,a.COMPILE_STATUS))return a.deleteShader(d),a.deleteShader(g),null;l=a.createProgram();a.attachShader(l,d);a.attachShader(l,g);a.linkProgram(l);if(!a.getProgramParameter(l,a.LINK_STATUS))return a.deleteShader(d), a.deleteShader(g),a.deleteProgram(l),null;a.useProgram(l);a.deleteShader(d);a.deleteShader(g);f=new q(a,l,f);f.Fj=b.Fj||0;f.Gj=b.Gj||0;f.mm=!!b.mm;f.Cc=!!b.Cc;f.Tl=!!b.Tl;f.K=b.K||[];b=0;for(d=f.K.length;b<d;b++)f.K[b][1]=a.getUniformLocation(l,f.K[b][0]),f.sk.push(0),a.uniform1f(f.K[b][1],0);return f};e.prototype.Wj=function(b){var l,f;l=0;for(f=this.ta.length;l<f;l++)if(this.ta[l].name===b)return l;return-1};e.prototype.jo=function(b,l,f){var a=this.Ub,d=this.pi,g=[0,0,0,0,0,0,0,0];g[0]=a[0]*b+ a[4]*l+a[12];g[1]=a[1]*b+a[5]*l+a[13];g[2]=a[2]*b+a[6]*l+a[14];g[3]=a[3]*b+a[7]*l+a[15];g[4]=d[0]*g[0]+d[4]*g[1]+d[8]*g[2]+d[12]*g[3];g[5]=d[1]*g[0]+d[5]*g[1]+d[9]*g[2]+d[13]*g[3];g[6]=d[2]*g[0]+d[6]*g[1]+d[10]*g[2]+d[14]*g[3];g[7]=-g[2];0!==g[7]&&(g[7]=1/g[7],g[4]*=g[7],g[5]*=g[7],g[6]*=g[7],f[0]=(.5*g[4]+.5)*this.width,f[1]=(.5*g[5]+.5)*this.height)};e.prototype.Ue=function(b,l,f){if(this.width!==b||this.height!==l||f){this.ye();f=this.m;this.width=b;this.height=l;f.viewport(0,0,b,l);kc(this.pj, this.jn,this.Yo,this.Ub);if(this.da){var a=-b/2;b=b/2;var d=l/2;l=-l/2;var g=this.dj,h=this.Bl,c=this.pi;c||(c=hc());var n=b-a,e=l-d,k=h-g;c[0]=2/n;c[1]=0;c[2]=0;c[3]=0;c[4]=0;c[5]=2/e;c[6]=0;c[7]=0;c[8]=0;c[9]=0;c[10]=-2/k;c[11]=0;c[12]=-(a+b)/n;c[13]=-(l+d)/e;c[14]=-(h+g)/k;c[15]=1;this.rh[0]=1;this.rh[1]=1}else l=b/l,a=this.dj,b=this.Bl,c=this.pi,h=a*Math.tan(45*Math.PI/360),l*=h,d=-l,g=-h,c||(c=hc()),n=l-d,e=h-g,k=b-a,c[0]=2*a/n,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=2*a/e,c[6]=0,c[7]=0,c[8]=(l+d)/ n,c[9]=(h+g)/e,c[10]=-(b+a)/k,c[11]=-1,c[12]=0,c[13]=0,c[14]=-(b*a*2)/k,c[15]=0,a=[0,0],b=[0,0],this.jo(0,0,a),this.jo(1,1,b),this.rh[0]=1/(b[0]-a[0]),this.rh[1]=-1/(b[1]-a[1]);a=0;for(b=this.ta.length;a<b;a++)d=this.ta[a],d.De=!1,d.gn&&(f.useProgram(d.gh),f.uniformMatrix4fv(d.gn,!1,this.pi));f.useProgram(this.ta[this.Fg].gh);f.bindTexture(f.TEXTURE_2D,null);f.activeTexture(f.TEXTURE1);f.bindTexture(f.TEXTURE_2D,null);f.activeTexture(f.TEXTURE0);this.Le=this.Ke=null;this.Jh&&(f.bindFramebuffer(f.FRAMEBUFFER, this.Hj),f.bindRenderbuffer(f.RENDERBUFFER,this.Jh),f.renderbufferStorage(f.RENDERBUFFER,f.DEPTH_COMPONENT16,this.width,this.height),this.Xl||(f.framebufferRenderbuffer(f.FRAMEBUFFER,f.DEPTH_ATTACHMENT,f.RENDERBUFFER,this.Jh),this.Xl=!0),f.bindRenderbuffer(f.RENDERBUFFER,null),f.bindFramebuffer(f.FRAMEBUFFER,null),this.Gi=null)}};e.prototype.bd=function(){kc(this.pj,this.jn,this.Yo,this.Ub);jc(this.Ub,this.rh)};e.prototype.translate=function(b,c){if(0!==b||0!==c){this.ke[0]=b;this.ke[1]=c;this.ke[2]= 0;var f=this.Ub,a=this.ke,d=a[0],g=a[1],a=a[2];f[12]=f[0]*d+f[4]*g+f[8]*a+f[12];f[13]=f[1]*d+f[5]*g+f[9]*a+f[13];f[14]=f[2]*d+f[6]*g+f[10]*a+f[14];f[15]=f[3]*d+f[7]*g+f[11]*a+f[15]}};e.prototype.scale=function(b,c){if(1!==b||1!==c)this.ke[0]=b,this.ke[1]=c,this.ke[2]=1,jc(this.Ub,this.ke)};e.prototype.al=function(b){if(0!==b){var c=this.Ub,f,a=Math.sin(b);b=Math.cos(b);var d=c[0],g=c[1],h=c[2],e=c[3],n=c[4],x=c[5],k=c[6],p=c[7];f?c!==f&&(f[8]=c[8],f[9]=c[9],f[10]=c[10],f[11]=c[11],f[12]=c[12],f[13]= c[13],f[14]=c[14],f[15]=c[15]):f=c;f[0]=d*b+n*a;f[1]=g*b+x*a;f[2]=h*b+k*a;f[3]=e*b+p*a;f[4]=d*-a+n*b;f[5]=g*-a+x*b;f[6]=h*-a+k*b;f[7]=e*-a+p*b}};e.prototype.Hc=function(){if(!m(this.tk,this.Ub)){var b=this.Kb();b.type=5;b.J?ic(this.Ub,b.J):b.J=hc(this.Ub);ic(this.Ub,this.tk);this.gb=!1}};e.prototype.Ki=function(b){this.da&&(32760<b&&(b=32760),this.yj=this.pj[2]-this.dj-b*this.Xt)};r.prototype.Fq=function(){var b=this.m,c=this.q;0!==this.nb?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND), b.bindFramebuffer(b.FRAMEBUFFER,c.Hj),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),c.bi=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),c.bi=!1)};r.prototype.Jq=function(){this.m.bindTexture(this.m.TEXTURE_2D,this.qc)};r.prototype.Kq=function(){var b=this.m;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.qc);b.activeTexture(b.TEXTURE0)};r.prototype.Gq=function(){var b=this.Tn, c=this.q;c.Fh=b;c=c.df;c.zf&&c.oi!==b&&(c.oi=b,this.m.uniform1f(c.zf,b))};r.prototype.Aq=function(){this.m.drawElements(this.m.TRIANGLES,this.Uc,this.m.UNSIGNED_SHORT,this.nb)};r.prototype.Cq=function(){this.m.blendFunc(this.nb,this.Uc)};r.prototype.Lq=function(){var b,c,f,a=this.q.ta,d=this.q.nm;b=0;for(c=a.length;b<c;b++)f=a[b],b===d&&f.li?(f.ul(this.J),f.De=!0):f.De=!1;ic(this.J,this.q.xj)};r.prototype.Bq=function(){var b=this.m,c=this.q;this.qc?(c.Le===this.qc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D, null),c.Le=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,c.Hj),c.bi||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.qc,0)):(c.da||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};r.prototype.xq=function(){var b=this.m,c=this.nb;0===c?(b.clearColor(this.J[0],this.J[1],this.J[2],this.J[3]),b.clear(b.COLOR_BUFFER_BIT)):1===c?(b.enable(b.SCISSOR_TEST),b.scissor(this.J[0],this.J[1],this.J[2], this.J[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};r.prototype.Eq=function(){var b=this.m;0!==this.nb?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};r.prototype.zq=function(){var b=this.m,c=this.q;c.da&&b.disable(b.DEPTH_TEST);var f=c.ta[1];b.useProgram(f.gh);!f.De&&f.li&&(f.ul(c.xj),f.De=!0);b.enableVertexAttribArray(f.kc);b.bindBuffer(b.ARRAY_BUFFER,c.Pk);b.vertexAttribPointer(f.kc,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.nb/ 4,this.Uc);f=c.df;b.useProgram(f.gh);0<=f.kc&&(b.enableVertexAttribArray(f.kc),b.bindBuffer(b.ARRAY_BUFFER,c.qh[c.nd]),b.vertexAttribPointer(f.kc,c.da?3:2,b.FLOAT,!1,0,0));0<=f.ge&&(b.enableVertexAttribArray(f.ge),b.bindBuffer(b.ARRAY_BUFFER,c.lh[c.nd]),b.vertexAttribPointer(f.ge,2,b.FLOAT,!1,0,0));c.da&&b.enable(b.DEPTH_TEST)};r.prototype.Hq=function(){var b=this.m,c=this.q,f=c.ta[this.nb];c.nm=this.nb;c.df=f;b.useProgram(f.gh);!f.De&&f.li&&(f.ul(c.xj),f.De=!0);f.zf&&f.oi!==c.Fh&&(f.oi=c.Fh,b.uniform1f(f.zf, c.Fh));0<=f.kc&&(b.enableVertexAttribArray(f.kc),b.bindBuffer(b.ARRAY_BUFFER,c.qh[c.nd]),b.vertexAttribPointer(f.kc,c.da?3:2,b.FLOAT,!1,0,0));0<=f.ge&&(b.enableVertexAttribArray(f.ge),b.bindBuffer(b.ARRAY_BUFFER,c.lh[c.nd]),b.vertexAttribPointer(f.ge,2,b.FLOAT,!1,0,0))};r.prototype.Dq=function(){var b=this.J;this.m.uniform4f(this.q.df.wk,b[0],b[1],b[2],b[3])};r.prototype.Iq=function(){var b,c,f=this.q.df,a=this.m;b=this.J;f.Jg&&this.q.Le!==this.qc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D, this.qc),this.q.Le=this.qc,a.activeTexture(a.TEXTURE0));var d=b[0];f.yk&&d!==f.tn&&(f.tn=d,a.uniform1f(f.yk,d));d=b[1];f.xk&&d!==f.sn&&(f.sn=d,a.uniform1f(f.xk,d));d=b[2];c=b[3];!f.Pe||d===f.mn&&c===f.nn||(f.mn=d,f.nn=c,a.uniform2f(f.Pe,d,c));d=b[4];c=b[5];!f.Oe||d===f.kn&&c===f.ln||(f.kn=d,f.ln=c,a.uniform2f(f.Oe,d,c));d=b[6];f.Ig&&d!==f.qn&&(f.qn=d,a.uniform1f(f.Ig,d));d=b[7];f.Hg&&d!==f.pn&&(f.pn=d,a.uniform1f(f.Hg,d));d=b[8];c=b[9];!f.Mg||d===f.xn&&c===f.yn||(f.xn=d,f.yn=c,a.uniform2f(f.Mg,d, c));d=b[10];c=b[11];!f.Kg||d===f.un&&c===f.vn||(f.un=d,f.vn=c,a.uniform2f(f.Kg,d,c));d=b[12];f.Lg&&d!==f.wn&&(f.wn=d,a.uniform1f(f.Lg,d));if(f.K.length)for(b=0,c=f.K.length;b<c;b++)d=this.Do[b],d!==f.sk[b]&&(f.sk[b]=d,a.uniform1f(f.K[b][1],d))};e.prototype.Kb=function(){this.md===this.Sd.length&&this.Sd.push(new r(0,this));return this.Sd[this.md++]};e.prototype.ye=function(){if(0!==this.md&&!this.m.isContextLost()){var b=this.m;0<this.Qk&&(b.bindBuffer(b.ARRAY_BUFFER,this.Pk),b.bufferSubData(b.ARRAY_BUFFER, 0,this.eo.subarray(0,this.Qk)),c&&0<=c.kc&&"<point>"===c.name&&b.vertexAttribPointer(c.kc,4,b.FLOAT,!1,0,0));if(0<this.Hd){var c=this.df;b.bindBuffer(b.ARRAY_BUFFER,this.qh[this.nd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.bj.subarray(0,this.Hd));c&&0<=c.kc&&"<point>"!==c.name&&b.vertexAttribPointer(c.kc,this.da?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.lh[this.nd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Ui.subarray(0,this.Mf));c&&0<=c.ge&&"<point>"!==c.name&&b.vertexAttribPointer(c.ge,2, b.FLOAT,!1,0,0)}for(var f,b=0,c=this.md;b<c;b++)switch(f=this.Sd[b],f.type){case 1:f.Aq();break;case 2:f.Jq();break;case 3:f.Gq();break;case 4:f.Cq();break;case 5:f.Lq();break;case 6:f.Bq();break;case 7:f.xq();break;case 8:f.zq();break;case 9:f.Hq();break;case 10:f.Iq();break;case 11:f.Kq();break;case 12:f.Dq();break;case 13:f.Eq();break;case 14:f.Fq()}this.Qk=this.Mf=this.Hd=this.md=0;this.bi=this.gb=!1;this.nd++;4<=this.nd&&(this.nd=0)}};e.prototype.dh=function(b){if(b!==this.$m&&!this.ug){var c= this.Kb();c.type=3;this.$m=c.Tn=b;this.gb=!1}};e.prototype.oc=function(b){if(b!==this.Ke){var c=this.Kb();c.type=2;this.Ke=c.qc=b;this.gb=!1}};e.prototype.ie=function(b,c){if((b!==this.an||c!==this.Zm)&&!this.ug){var f=this.Kb();f.type=4;f.nb=b;f.Uc=c;this.an=b;this.Zm=c;this.gb=!1}};e.prototype.uo=function(){this.ie(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};e.prototype.Yg=function(b,c,f,a,d,g,h,e){15992<=this.Hd&&this.ye();var n=this.Hd,x=this.Mf,k=this.bj,p=this.Ui,q=this.yj;if(this.gb)this.Sd[this.md- 1].Uc+=6;else{var m=this.Kb();m.type=1;m.nb=this.da?n:n/2*3;m.Uc=6;this.gb=!0}this.da?(k[n++]=b,k[n++]=c,k[n++]=q,k[n++]=f,k[n++]=a,k[n++]=q,k[n++]=d,k[n++]=g,k[n++]=q,k[n++]=h,k[n++]=e,k[n++]=q):(k[n++]=b,k[n++]=c,k[n++]=f,k[n++]=a,k[n++]=d,k[n++]=g,k[n++]=h,k[n++]=e);p[x++]=0;p[x++]=0;p[x++]=1;p[x++]=0;p[x++]=1;p[x++]=1;p[x++]=0;p[x++]=1;this.Hd=n;this.Mf=x};e.prototype.Te=function(b,c,f,a,d,g,h,e,n){15992<=this.Hd&&this.ye();var x=this.Hd,k=this.Mf,p=this.bj,q=this.Ui,m=this.yj;if(this.gb)this.Sd[this.md- 1].Uc+=6;else{var r=this.Kb();r.type=1;r.nb=this.da?x:x/2*3;r.Uc=6;this.gb=!0}var r=n.left,K=n.top,t=n.right;n=n.bottom;this.da?(p[x++]=b,p[x++]=c,p[x++]=m,p[x++]=f,p[x++]=a,p[x++]=m,p[x++]=d,p[x++]=g,p[x++]=m,p[x++]=h,p[x++]=e,p[x++]=m):(p[x++]=b,p[x++]=c,p[x++]=f,p[x++]=a,p[x++]=d,p[x++]=g,p[x++]=h,p[x++]=e);q[k++]=r;q[k++]=K;q[k++]=t;q[k++]=K;q[k++]=t;q[k++]=n;q[k++]=r;q[k++]=n;this.Hd=x;this.Mf=k};e.prototype.zb=function(b){if(this.Fg!==b){if(!this.ta[b]){if(0===this.Fg)return;b=0}var c=this.Kb(); c.type=9;this.Fg=c.nb=b;this.gb=!1}};e.prototype.Wg=function(b){b=this.ta[b];return!(!b.Pe&&!b.Oe)};e.prototype.Sk=function(b){b=this.ta[b];return!!(b.Pe||b.Oe||b.mm)};e.prototype.Rk=function(b){return this.ta[b].Cc};e.prototype.et=function(b){b=this.ta[b];return 0!==b.Fj||0!==b.Gj};e.prototype.Sr=function(b){return this.ta[b].Fj};e.prototype.Tr=function(b){return this.ta[b].Gj};e.prototype.Ur=function(b,c){return this.ta[b].K[c][2]};e.prototype.Ei=function(b){return this.ta[b].Tl};e.prototype.Jf= function(b,c,f,a,d,g,h,e,n,x,k,p,q,m,r){var K=this.ta[this.Fg],t,v;if(K.ls||r.length){t=this.Kb();t.type=10;t.J?ic(this.Ub,t.J):t.J=hc();v=t.J;v[0]=c;v[1]=f;v[2]=a;v[3]=d;v[4]=g;v[5]=h;v[6]=e;v[7]=n;v[8]=x;v[9]=k;v[10]=p;v[11]=q;v[12]=m;K.Jg?t.qc=b:t.qc=null;if(r.length)for(f=t.Do,f.length=r.length,b=0,c=r.length;b<c;b++)f[b]=r[b];this.gb=!1}};e.prototype.clear=function(b,c,f,a){var d=this.Kb();d.type=7;d.nb=0;d.J||(d.J=hc());d.J[0]=b;d.J[1]=c;d.J[2]=f;d.J[3]=a;this.gb=!1};e.prototype.clearRect=function(b, c,f,a){if(!(0>f||0>a)){var d=this.Kb();d.type=7;d.nb=1;d.J||(d.J=hc());d.J[0]=b;d.J[1]=c;d.J[2]=f;d.J[3]=a;this.gb=!1}};e.prototype.xo=function(b){if(this.da&&(b=!!b,this.ug!==b)){var c=this.Kb();c.type=14;c.nb=b?1:0;this.gb=!1;this.ug=b;this.Gi=null;this.ug?this.zb(2):this.zb(0)}};e.prototype.wo=function(b){if(this.da){var c=this.Kb();c.type=13;c.nb=b?1:0;this.gb=!1}};e.prototype.Cm=function(){ic(this.tk,v);this.bd();this.Hc();var b=this.width/2,c=this.height/2;this.Yg(-b,c,b,c,b,-c,-b,-c);ic(v, this.Ub);this.Hc()};e.prototype.vo=function(b,c,f){this.zb(3);var a=this.Kb();a.type=12;a.J||(a.J=hc());a.J[0]=b;a.J[1]=c;a.J[2]=f;a.J[3]=1;this.gb=!1};e.prototype.Ct=function(){this.zb(0)};e.prototype.kt=function(){this.zb(2)};e.prototype.dt=function(){this.ye();this.m.flush()};var t=[],c={};e.prototype.pq=function(){R(t);c={}};e.prototype.en=function(b,e,f){var a;a=!1;e=!!e;var d=b.src+","+a+","+e+(a?",undefined":""),g=null;if("undefined"!==typeof b.src&&c.hasOwnProperty(d))return g=c[d],g.zh++, g;this.ye();var h=this.m,z=ha(b.width)&&ha(b.height),g=h.createTexture();h.bindTexture(h.TEXTURE_2D,g);h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=h.RGBA,x=h.RGBA,k=h.UNSIGNED_BYTE;if(f&&!this.ae)switch(f){case 1:x=n=h.RGB;break;case 2:k=h.UNSIGNED_SHORT_4_4_4_4;break;case 3:k=h.UNSIGNED_SHORT_5_5_5_1;break;case 4:x=n=h.RGB,k=h.UNSIGNED_SHORT_5_6_5}if(!z&&a){f=document.createElement("canvas");f.width=ja(b.width);f.height=ja(b.height);var p=f.getContext("2d");"undefined"!==typeof p.imageSmoothingEnabled? p.imageSmoothingEnabled=e:(p.webkitImageSmoothingEnabled=e,p.mozImageSmoothingEnabled=e,p.msImageSmoothingEnabled=e);p.drawImage(b,0,0,b.width,b.height,0,0,f.width,f.height);h.texImage2D(h.TEXTURE_2D,0,n,x,k,f)}else h.texImage2D(h.TEXTURE_2D,0,n,x,k,b);a?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.REPEAT)):(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));e?(h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MAG_FILTER,h.LINEAR),z&&this.tm?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR_MIPMAP_LINEAR),h.generateMipmap(h.TEXTURE_2D)):h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.NEAREST),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.NEAREST));h.bindTexture(h.TEXTURE_2D,null);this.Ke=null;g.re=b.width;g.qe=b.height;g.zh=1;g.gm=d;t.push(g);return c[d]=g};e.prototype.$b=function(b,c,f){var a;this.ye();var d=this.m; this.ae&&(a=!1);var g=d.createTexture();d.bindTexture(d.TEXTURE_2D,g);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,b,c,0,d.RGBA,a?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,f?d.LINEAR:d.NEAREST);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,f?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.Ke=null;g.re=b;g.qe=c;t.push(g); return g};e.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.zh&&1<b.zh?b.zh--:(this.ye(),b===this.Ke&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.Ke=null),b===this.Le&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.Le=null),Da(t,b),"undefined"!==typeof b.gm&&delete c[b.gm],this.m.deleteTexture(b)))};e.prototype.nc=function(b){if(b!==this.Gi){var c=this.Kb();c.type=6;this.Gi=c.qc=b;this.gb=!1}};ob=e})(); (function(){function e(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.tb=(this.tg=/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.hb=!!a.dc;this.Tm="undefined"!==typeof window.AppMobi|| this.hb;this.Tb=!!window.c2cocoonjs;this.hc=!!window.c2ejecta;this.Tb&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.hc&&(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.za=this.hb||this.Tb||this.hc;this.wg= /edge\//i.test(navigator.userAgent);this.ae=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.wg;this.Vm=/tizen/i.test(navigator.userAgent);this.$h=/android/i.test(navigator.userAgent)&&!this.Vm&&!this.ae&&!this.wg;this.Ym=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.ae&&!this.wg;this.Cs=/ipad/i.test(navigator.userAgent);this.tf=this.Ym||this.Cs||this.hc;this.sg=(/chrome/i.test(navigator.userAgent)|| /chromium/i.test(navigator.userAgent))&&!this.ae&&!this.wg;this.jk=/amazonwebappplatform/i.test(navigator.userAgent);this.ts=/firefox/i.test(navigator.userAgent);this.ws=/safari/i.test(navigator.userAgent)&&!this.sg&&!this.ae&&!this.wg;this.xs=/windows/i.test(navigator.userAgent);this.be="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Wm=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8); this.zs=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.of=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.qk=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.pk=!!window.cr_windows10;this.ci=this.Wm||this.zs||this.qk||this.pk;this.ss=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.ai=this.$h&&!this.sg&&!this.tg&&!this.ts&&!this.jk&&!this.za;this.devicePixelRatio= 1;this.Je=this.tb||this.tg||this.Tm||this.Tb||this.$h||this.tf||this.of||this.qk||this.ss||this.Vm||this.hc;this.Je||(this.Je=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.zg=!!(this.tf&&this.tb&&window.webkit);this.ak=null;this.ns="";this.zg&&(this.ak=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.be||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&& !/nwjs/i.test(navigator.userAgent)||(this.be=!0);this.canvas=a;this.im=document.getElementById("c2canvasdiv");this.q=this.m=null;this.Xj="(unavailable)";this.da=!1;this.xe=0;this.na=null;this.Lj="";this.Rh=!1;this.Kn=this.Ln=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.hb&&(window.c2runtime=this);this.be&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop= function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.ai&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.C=this.width;this.B=this.height;this.Dh=this.width;this.dg=this.height;this.vf=window.innerWidth;this.uf=window.innerHeight;this.Er=!1;this.aa=!0;this.yg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.k=[];this.ma= [];this.vk={};this.Ac=[];this.Ej={};this.rd=[];this.Sf=[];this.Yi=[];this.dq=[];this.fq=[];this.te={};this.lk=this.$d=!1;this.zc=0;this.kk=this.nk=!1;this.Pc=[];this.vg=!1;this.vd=this.jb=this.ii=this.fl="";this.jh=this.Ho=!1;this.Qh=[];this.we=this.ve=0;this.Bn=30;this.wj=this.Ng=0;this.Nf=1;this.ib=new db;this.Id=new db;this.si=this.Th=this.Mh=this.mh=this.Ne=this.Kj=this.fi=0;this.Xf=null;this.Bj=[];this.Dj=[];this.Lh=-1;this.zk=[[]];this.ql=this.mi=0;this.Uk(null);this.hg=this.Fn=this.Rg=0;this.kh= [];this.nl=this.Vk=-1;this.Cg=!0;this.yf=0;this.xg=!1;this.Ft=0;this.bf=null;this.Vc=this.Lm=!1;this.Jn=new ba;this.Gk=new ba;this.Hk=new ba;this.oo=[];new gb([]);new gb([]);this.$e=[];this.ng={};this.Ud={};this.Pd={};this.Rf={};this.dm={};this.dn=this.hi=this.Aa=this.Ha=this.cn=this.gi=this.Y=null;this.Pf=this.rk=!1;this.Mj=[null,null];this.Be=0;this.Ij="";this.yd={};this.hh=this.ee=null;this.Io="";this.ri=[];this.jt()}}function q(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function m(){try{return!!window.indexedDB}catch(a){return!1}} function r(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function v(a,b,d,h){try{var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=r;k.onerror=h;k.onsuccess=function(k){k=k.target.result;k.onerror=h;k.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=d}}catch(c){h(c)}}function t(a,b,d){try{var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=r;k.onerror=d;k.onsuccess=function(k){k=k.target.result;k.onerror=d;var h=k.transaction(["saves"]).objectStore("saves").get(a); h.onsuccess=function(){h.result?b(h.result.data):b(null)}}}catch(h){d(h)}}function c(){B("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function b(a){var b,d={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ba||a[b]&&"undefined"!==typeof a[b].$u||"spriteCreatedDestroyCallback"!==b&&(d[b]=a[b]);return d}var l=window.requestAnimationFrame||window.mozRequestAnimationFrame|| window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;e.prototype.jt=function(){var a=this;if(this.zg)this.ak?this.ak.startServer({port:0,localhost_only:!0},function(b){a.ns=b;a.zm(function(b){a.xf(JSON.parse(b))},function(){alert("Error fetching data.js")})},function(a){alert("error starting local server: "+a)}):this.zm(function(b){a.xf(JSON.parse(b))},function(){alert("Error fetching data.js")});else{var b;this.of?b=new ActiveXObject("Microsoft.XMLHTTP"): b=new XMLHttpRequest;var d="data.js";if(this.Wm||this.of||this.qk||this.pk)d="data.json";b.open("GET",d,!0);var k=!1;if(!this.za&&"response"in b&&"responseType"in b)try{b.responseType="json",k="json"===b.responseType}catch(h){k=!1}if(!k&&"responseType"in b)try{b.responseType="text"}catch(c){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(f){}this.of?b.onreadystatechange=function(){4===b.readyState&&a.xf(JSON.parse(b.responseText))}:(b.onload=function(){if(k)a.xf(b.response); else if(a.hc){var d=b.responseText,d=d.substr(d.indexOf("{"));a.xf(JSON.parse(d))}else a.xf(JSON.parse(b.responseText))},b.onerror=function(a){ea("Error requesting "+d+":");ea(a)});b.send()}};e.prototype.qs=function(){var a=this,b,d,k,h,c,f,g,n,p;this.mf=(!this.za||this.hc||this.tb)&&this.St&&!this.ai;0===this.rb&&this.tf&&(this.mf=!1);this.devicePixelRatio=this.mf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.$a();d=!(!this.Er&& (!this.hj||this.be||this.ci||this.of||this.tg||this.tb||this.jk));0<this.rb&&this.setSize(window.innerWidth,window.innerHeight,!0);try{this.Tq&&(this.Tb||this.hc||!this.za)&&(b={alpha:d,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.m=this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(e){}if(this.m){if(b=this.m.getExtension("WEBGL_debug_renderer_info"))this.Xj=this.m.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.m.getParameter(b.UNMASKED_VENDOR_WEBGL)+ "]";this.da&&(this.Xj+=" [front-to-back enabled]");this.za||(this.Wa=document.createElement("canvas"),jQuery(this.Wa).appendTo(this.canvas.parentNode),this.Wa.oncontextmenu=function(){return!1},this.Wa.onselectstart=function(){return!1},this.Wa.width=Math.round(this.Dh*this.devicePixelRatio),this.Wa.height=Math.round(this.dg*this.devicePixelRatio),jQuery(this.Wa).css({width:this.Dh+"px",height:this.dg+"px"}),this.ho(),this.Ok=this.Wa.getContext("2d"));this.q=new ob(this.m,this.Je,this.da);this.q.Ue(this.canvas.width, this.canvas.height);this.q.tm=0!==this.Mq;this.na=null;this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.Ms();B("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.q.Pm();a.q.Ue(a.q.width,a.q.height,!0);a.Ha=null;a.Aa=null;a.Mj[0]=null;a.Mj[1]=null;a.Ns();a.aa=!0;B("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);b=0;for(d=this.k.length;b<d;b++)for(c=this.k[b],k=0, h=c.G.length;k<h;k++)g=c.G[k],g.Da=this.q.Wj(g.id),g.Cc=this.q.Rk(g.Da),this.Pf=this.Pf||this.q.Wg(g.Da);b=0;for(d=this.Ac.length;b<d;b++){n=this.Ac[b];k=0;for(h=n.G.length;k<h;k++)g=n.G[k],g.Da=this.q.Wj(g.id),g.Cc=this.q.Rk(g.Da);n.Gc();k=0;for(h=n.H.length;k<h;k++){p=n.H[k];c=0;for(f=p.G.length;c<f;c++)g=p.G[c],g.Da=this.q.Wj(g.id),g.Cc=this.q.Rk(g.Da),this.Pf=this.Pf||this.q.Wg(g.Da);p.Gc()}}}else{if(0<this.rb&&this.hb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart= function(){return!1};this.na=AppMobi.canvas.getContext("2d");try{this.na.samplingMode=this.Ba?"smooth":"sharp",this.na.globalScale=1,this.na.HTML5CompatibilityMode=!0,this.na.imageSmoothingEnabled=this.Ba}catch(z){}0!==this.width&&0!==this.height&&(this.na.width=this.width,this.na.height=this.height)}this.na||(this.Tb?(b={antialias:!!this.Ba,alpha:d},this.na=this.canvas.getContext("2d",b)):(b={alpha:d},this.na=this.canvas.getContext("2d",b)),this.Ji(this.na,this.Ba));this.Ok=this.Wa=null}this.Qo= function(b){a.ob(!1,b)};window==window.top||this.za||this.ci||this.of||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Tb&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(B("Reloading for continuous preview"),this.ii="__c2_continuouspreview",this.jh=!0),this.Vs&&!this.Je&&(jQuery(window).focus(function(){a.setSuspended(!1)}), jQuery(window).blur(function(){var b=window.parent;b&&b.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){});this.za||(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.rb&&this.mf&&1<this.devicePixelRatio&&this.setSize(this.Ja,this.Ia,!0);this.Uo();this.hs();this.go();this.ka={}};e.prototype.setSize=function(a,b,d){var k=0,h=0,c=0,f=0,f=0;if(this.vf!==a||this.uf!==b||d){this.vf=a;this.uf=b;var g=this.rb,n=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.xg)&&!this.tb;if(n||0!==this.rb||d)n&&0<this.Be&&(g=this.Be),d=this.devicePixelRatio,4<=g?(c=this.Ja/ this.Ia,a/b>c?(c*=b,5===g?(f=c*d/this.Ja,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),c=this.Ja*f/d,f=this.Ia*f/d,k=(a-c)/2,h=(b-f)/2,a=c,b=f):(k=(a-c)/2,a=c)):(f=a/c,5===g?(f=f*d/this.Ia,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),c=this.Ja*f/d,f=this.Ia*f/d,k=(a-c)/2,h=(b-f)/2,a=c):h=(b-f)/2,b=f),n&&!this.be&&(h=k=0)):this.be&&this.xg&&0===this.Dm&&(k=Math.floor((a-this.Ja)/2),h=Math.floor((b-this.Ia)/2),a=this.Ja,b=this.Ia),2>g&&(this.Wf=d),this.Dh=Math.round(a),this.dg=Math.round(b),this.width= Math.round(a*d),this.height=Math.round(b*d),this.aa=!0,this.ep?(this.C=this.width,this.B=this.height,this.Qb=!0):this.width<this.Ja&&this.height<this.Ia||1===g?(this.C=this.width,this.B=this.height,this.Qb=!0):(this.C=this.Ja,this.B=this.Ia,this.Qb=!1,2===g?(c=this.Ja/this.Ia,g=this.vf/this.uf,g<c?this.C=this.B*g:g>c&&(this.B=this.C/g)):3===g&&(c=this.Ja/this.Ia,g=this.vf/this.uf,g>c?this.C=this.B*g:g<c&&(this.B=this.C/g))),this.im&&!this.za&&(jQuery(this.im).css({width:Math.round(a)+"px",height:Math.round(b)+ "px","margin-left":Math.floor(k)+"px","margin-top":Math.floor(h)+"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*d),this.canvas.height=Math.round(b*d),this.hc?(this.canvas.style.left=Math.floor(k)+"px",this.canvas.style.top=Math.floor(h)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.mf&&!this.za&&(this.canvas.style.width=Math.round(a)+ "px",this.canvas.style.height=Math.round(b)+"px")),this.Wa&&(this.Wa.width=Math.round(a*d),this.Wa.height=Math.round(b*d),this.Wa.style.width=this.Dh+"px",this.Wa.style.height=this.dg+"px"),this.q&&this.q.Ue(Math.round(a*d),Math.round(b*d)),this.hb&&this.na&&(this.na.width=Math.round(a),this.na.height=Math.round(b)),this.na&&this.Ji(this.na,this.Ba),this.Uo(),this.Ym&&!this.tb&&window.scrollTo(0,0)}};e.prototype.Uo=function(){if(this.hq&&0!==this.Mk){var a="portrait";2===this.Mk&&(a="landscape"); try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",b)}}};e.prototype.Ms=function(){this.q.pq();this.rk=!0;var a,b,d;a=0;for(b=this.k.length;a<b;a++)d=this.k[a],d.Mn&& d.Mn()};e.prototype.Ns=function(){this.rk=!1;var a,b,d;a=0;for(b=this.k.length;a<b;a++)d=this.k[a],d.Pn&&d.Pn()};e.prototype.ho=function(){if(!this.za){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.xg)&&!this.tb?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Wa).css(a)}};var f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame|| window.oCancelAnimationFrame;e.prototype.setSuspended=function(a){var b;if(a&&!this.yg)for(B("[Construct 2] Suspending"),this.yg=!0,-1!==this.Vk&&f&&f(this.Vk),-1!==this.nl&&clearTimeout(this.nl),a=0,b=this.kh.length;a<b;a++)this.kh[a](!0);else if(!a&&this.yg){B("[Construct 2] Resuming");this.yg=!1;this.fi=$a();this.Ne=$a();a=this.Ng=this.Th=0;for(b=this.kh.length;a<b;a++)this.kh[a](!1);this.ob(!1)}};e.prototype.Rl=function(a){this.kh.push(a)};e.prototype.Nd=function(a){return this.ri[a]};e.prototype.xf= function(a){a&&a.project||ea("Project model unavailable");a=a.project;this.name=a[0];this.Bm=a[1];this.rb=a[12];this.Dm=a[12];this.Ja=a[10];this.Ia=a[11];this.$n=this.Ja/2;this.ao=this.Ia/2;this.za&&!this.hc&&(4<=a[12]||0===a[12])&&(B("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Dm=this.rb=3);this.xl=a[18];this.fe=a[19];if(0===this.fe){var b=new Image;b.crossOrigin="anonymous";this.yo(b,"loading-logo.png");this.ee={ni:b}}else if(4=== this.fe){b=new Image;b.src="";var d=new Image;d.src="";var k=new Image;k.src="";var h=new Image;h.src="";var c=new Image;c.src="";var f=new Image;f.src="";var g=new Image;g.src="";var n=new Image;n.src="";var p=new Image;p.src="";var e=new Image;e.src="";var z=new Image;z.src="";var x=new Image;x.src="";this.ee={ni:[b,d,k,h],$s:[c,f,g,n],Wt:[p,e,z,x]}}this.Rg=a[21];this.ri=mc();this.dd=new W(this);b=0;for(d=a[2].length;b<d;b++)g=a[2][b],k=this.Nd(g[0]),pb(g,k.prototype),n=new k(this),n.Oi=g[1],n.de= g[2],n.Cn=g[9],n.ua&&n.ua(),this.plugins.push(n);this.ri=mc();b=0;for(d=a[3].length;b<d;b++){g=a[3][b];c=this.Nd(g[1]);n=null;k=0;for(h=this.plugins.length;k<h;k++)if(this.plugins[k]instanceof c){n=this.plugins[k];break}p=new n.Ob(n);p.name=g[0];p.R=g[2];p.hk=g[3].slice(0);p.Ut=g[3].length;p.iq=g[4];p.Gr=g[5];p.N=g[11];p.R?(p.qi=[],p.sd=this.hg++,p.la=null):(p.qi=null,p.sd=-1,p.la=[]);p.Oh=null;p.ff=null;p.um=null;p.Fb=!1;p.Cb=null;g[6]?(p.No=g[6][0],p.Oo=g[6][1],p.Jt=g[6][2]):(p.No=null,p.Oo=0,p.Jt= 0);g[7]?p.Ab=g[7]:p.Ab=null;p.index=b;p.c=[];p.Hh=[];p.Fd=[new qb(p)];p.Qc=0;p.cc=null;p.uq=0;p.Lf=!0;p.Zi=rb;p.Lr=sb;p.Qr=tb;p.X=vb;p.Xg=wb;p.Tk=xb;p.Ff=yb;p.Vh=zb;p.Nj=Ab;p.Qj=Bb;p.Rd=Cb;p.Sj=Db;p.jm=new hb(this.Ja,this.Ia);p.Ul=!0;p.Vl=!1;p.ka={};p.toString=Eb;p.ma=[];k=0;for(h=g[8].length;k<h;k++){e=g[8][k];z=this.Nd(e[1]);x=null;c=0;for(f=this.ma.length;c<f;c++)if(this.ma[c]instanceof z){x=this.ma[c];break}x||(x=new z(this),x.Dn=[],x.Ek=new ba,x.ua&&x.ua(),this.ma.push(x));-1===x.Dn.indexOf(p)&& x.Dn.push(p);c=new x.Ob(x,p);c.name=e[0];c.N=e[2];c.ua();p.ma.push(c)}p.global=g[9];p.mk=g[10];p.G=[];k=0;for(h=g[12].length;k<h;k++)p.G.push({id:g[12][k][0],name:g[12][k][1],Da:-1,Cc:!1,ab:!0,index:k});p.wv=g[13];this.xl&&!p.R&&!p.mk&&n.de||p.ua();p.name&&(this.types[p.name]=p);this.k.push(p);n.Oi&&(k=new n.lb(p),k.uid=this.Rg++,k.lo=this.Fn++,k.Fe=0,k.lg=Fb,k.toString=Gb,k.Z=g[14],k.ua(),p.c.push(k),this.yd[k.uid.toString()]=k)}b=0;for(d=a[4].length;b<d;b++)for(c=a[4][b],f=this.k[c[0]],k=1,h=c.length;k< h;k++)g=this.k[c[k]],g.la.push(f),f.qi.push(g);b=0;for(d=a[28].length;b<d;b++){c=a[28][b];f=[];k=0;for(h=c.length;k<h;k++)f.push(this.k[c[k]]);k=0;for(h=f.length;k<h;k++)f[k].Fb=!0,f[k].Cb=f}if(0<this.hg)for(b=0,d=this.k.length;b<d;b++)if(g=this.k[b],!g.R&&g.la.length){g.Oh=Array(this.hg);g.ff=Array(this.hg);g.um=Array(this.hg);p=[];k=x=z=e=0;for(h=g.la.length;k<h;k++)for(n=g.la[k],g.Oh[n.sd]=e,e+=n.Ut,g.ff[n.sd]=z,z+=n.iq,g.um[n.sd]=x,x+=n.Gr,c=0,f=n.G.length;c<f;c++)p.push(wa({},n.G[c]));g.G=p.concat(g.G); k=0;for(h=g.G.length;k<h;k++)g.G[k].index=k}b=0;for(d=a[5].length;b<d;b++)g=a[5][b],k=new Hb(this,g),this.vk[k.name]=k,this.Ac.push(k);b=0;for(d=a[6].length;b<d;b++)g=a[6][b],k=new Ib(this,g),this.Ej[k.name]=k,this.rd.push(k);b=0;for(d=this.rd.length;b<d;b++)this.rd[b].va();b=0;for(d=this.rd.length;b<d;b++)this.rd[b].tl();b=0;for(d=this.Yi.length;b<d;b++)this.Yi[b].va();R(this.Yi);this.gq=a[7];this.Ij=a[8];this.Se=a[9];this.Wf=1;this.Tq=a[13];this.Ba=a[14];this.hj=a[15];this.St=a[17];this.Mk=a[20]; this.hq=0<this.Mk;this.Vs=a[22];this.Qb=this.ep=a[23];this.Mq=a[24];this.bt=a[25];this.da=a[27]&&!this.ae;this.Pi=Date.now();R(this.ri);this.qs()};var a=!1;e.prototype.Vt=function(b,d){b.cocoonLazyLoad=!0;b.onerror=function(d){a=b.fm=!0;console&&console.error&&console.error("Error loading image '"+b.src+"': ",d)};this.hc?b.src=d:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(d,function(a){b.src=a},function(k){a=b.fm=!0;console&&console.error&&console.error("Error extracting image '"+d+"' from expansion file: ", k)}):(b.crossOrigin="anonymous",this.yo(b,d)));this.Sf.push(b)};e.prototype.Dr=function(a){var b,d;b=0;for(d=this.Sf.length;b<d;b++)if(this.Sf[b].rq===a)return this.Sf[b];return null};var d=0,g=!1;e.prototype.hs=function(){this.bf&&(d=this.bf.At(this.gq))};e.prototype.Wl=function(){var a=d,b=0,k=0,h=!0,c,f,k=0;for(c=this.Sf.length;k<c;k++){f=this.Sf[k];var p=f.qq;if(!p||0>=p)p=5E4;a+=p;f.src&&(f.complete||f.loaded)&&!f.fm?b+=p:h=!1}h&&this.bt&&this.bf&&(g||(this.bf.Gt(),g=!0),k=this.bf.Rr(),b+=k, k<d&&(h=!1));this.Dc=0==a?1:b/a;return h};var h=!1;e.prototype.go=function(){if(this.na||this.q){var b=this.na||this.Ok;this.Wa&&this.ho();var d=window.innerWidth,k=window.innerHeight;this.vf===d&&this.uf===k||this.setSize(d,k);this.Dc=0;this.bn=-1;var c=this;if(this.Wl()&&(4!==this.fe||h))this.js();else{k=Date.now()-this.Pi;if(b){var f=this.width,g=this.height,d=this.devicePixelRatio;if(3>this.fe&&(this.Tb||500<=k&&this.bn!=this.Dc)){b.clearRect(0,0,f,g);var k=f/2,g=g/2,f=0===this.fe&&this.ee.ni.complete, p=40*d,n=0,e=80*d,z;if(f){var x=this.ee.ni,e=x.width*d;z=x.height*d;p=e/2;n=z/2;b.drawImage(x,pa(k-p),pa(g-n),e,z)}1>=this.fe?(k=pa(k-p)+.5,g=pa(g+(n+(f?12*d:0)))+.5,b.fillStyle=a?"red":"DodgerBlue",b.fillRect(k,g,Math.floor(e*this.Dc),6*d),b.strokeStyle="black",b.strokeRect(k,g,e,6*d),b.strokeStyle="white",b.strokeRect(k-1*d,g-1*d,e+2*d,8*d)):2===this.fe&&(b.font=this.hc?"12pt ArialMT":"12pt Arial",b.fillStyle=a?"#f00":"#999",b.vv="middle",d=Math.round(100*this.Dc)+"%",f=b.measureText?b.measureText(d): null,b.fillText(d,k-(f?f.width:0)/2,g));this.bn=this.Dc}else if(4===this.fe){this.Rq(b);l?l(function(){c.go()}):setTimeout(function(){c.go()},16);return}}setTimeout(function(){c.go()},this.Tb?10:100)}}};var z=-1,n="undefined"===typeof cr_is_preview?200:0,x=!0,k=!1,p=0,ca=0,H="undefined"===typeof cr_is_preview?3E3:0,S=null,K=null,Y=0;e.prototype.Rq=function(b){if(!h){for(var d=Math.ceil(this.width),c=Math.ceil(this.height),g=this.ee.ni,f=this.ee.$s,e=this.ee.Wt,l=0;4>l;++l)if(!g[l].complete||!f[l].complete|| !e[l].complete)return;0===Y&&(z=Date.now());var l=Date.now(),m=!1,r=b,t,v;x||k?(b.clearRect(0,0,d,c),S&&S.width===d&&S.height===c||(S=document.createElement("canvas"),S.width=d,S.height=c,K=S.getContext("2d")),r=K,m=!0,x&&1===Y&&(z=Date.now())):b.globalAlpha=1;r.fillStyle="#333333";r.fillRect(0,0,d,c);256<this.dg?(t=Ea(.22*c,105,.6*d),v=.25*t,r.drawImage(q(f,t),.5*d-t/2,.2*c-v/2,t,v),v=t=Math.min(.395*c,.95*d),r.drawImage(q(g,t),.5*d-t/2,.485*c-v/2,t,v),t=Ea(.22*c,105,.6*d),v=.25*t,r.drawImage(q(e, t),.5*d-t/2,.868*c-v/2,t,v),r.fillStyle="#3C3C3C",t=d,v=Math.max(.005*c,2),r.fillRect(0,.8*c-v/2,t,v),r.fillStyle=a?"red":"#E0FF65",t=d*this.Dc,r.fillRect(.5*d-t/2,.8*c-v/2,t,v)):(v=t=.55*c,r.drawImage(q(g,t),.5*d-t/2,.45*c-v/2,t,v),r.fillStyle="#3C3C3C",t=d,v=Math.max(.005*c,2),r.fillRect(0,.85*c-v/2,t,v),r.fillStyle=a?"red":"#E0FF65",t=d*this.Dc,r.fillRect(.5*d-t/2,.85*c-v/2,t,v));m&&(x?b.globalAlpha=0===Y?0:Math.min((l-z)/300,1):k&&(b.globalAlpha=Math.max(1-(l-ca)/300,0)),b.drawImage(S,0,0,d,c)); x&&300<=l-z&&2<=Y&&(x=!1,p=l);!x&&l-p>=H&&!k&&1<=this.Dc&&(k=!0,ca=l);if(k&&l-ca>=300+n||"undefined"!==typeof cr_is_preview&&1<=this.Dc&&500>Date.now()-z)h=!0,k=x=!1,this.ee=K=S=null;++Y}};e.prototype.js=function(){this.Wa&&(this.canvas.parentNode.removeChild(this.Wa),this.Wa=this.Ok=null);this.Pi=Date.now();this.Ne=$a();var a,b,d;if(this.xl)for(a=0,b=this.k.length;a<b;a++)d=this.k[a],d.R||d.mk||!d.qa.de||d.ua();else this.Cg=!1;a=0;for(b=this.Ac.length;a<b;a++)this.Ac[a].sq();2<=this.rb&&(a=this.Ja/ this.Ia,b=this.width/this.height,this.Wf=2!==this.rb&&b>a||2===this.rb&&b<a?this.height/this.Ia:this.width/this.Ja);this.Bm?this.vk[this.Bm].jl():this.Ac[0].jl();this.xl||(this.yf=1,this.trigger(W.prototype.e.El,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.k.length;a<b;a++)d=this.k[a],d.Ls&&d.Ls();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0): this.ob(!1);this.hb&&AppMobi.webview.execute("onGameReady();")};e.prototype.ob=function(a,b,d){if(this.Y){var k=$a();if(d||!this.yg||a){a||(l?this.Vk=l(this.Qo):this.nl=setTimeout(this.Qo,this.Je?1:16));b=b||k;var c=this.rb;((d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.tb)||this.xg)&&0<this.Be&&(c=this.Be);if(0<c){var c=window.innerWidth,h=window.innerHeight;this.vf===c&&this.uf===h||this.setSize(c,h)}this.za||(d?(this.Rh||(this.Lj= jQuery(this.canvas).css("margin")||"0",this.Rh=!0),this.sg||this.be||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.Rh?(this.sg||this.be||jQuery(this.canvas).css("margin",this.Lj),this.Lj="",this.Rh=!1,0===this.rb&&this.setSize(Math.round(this.Ln/this.devicePixelRatio),Math.round(this.Kn/this.devicePixelRatio),!0)):(this.Ln=this.width,this.Kn=this.height)); this.Cg&&(d=this.Wl(),this.yf=this.Dc,d&&(this.Cg=!1,this.Dc=1,this.trigger(W.prototype.e.El,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Gs(b);!this.aa&&!this.Tb||this.rk||this.jh||a||(this.aa=!1,this.q?this.wc():this.ue(),this.hh&&(this.canvas&&this.canvas.toDataURL&&(this.Io=this.canvas.toDataURL(this.hh[0],this.hh[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Io),this.trigger(W.prototype.e.Bp,null)),this.hh=null));this.hv||(this.mh++,this.Mh++,this.Th++);this.Ng+=$a()-k}}}; e.prototype.Gs=function(a){var b,d,k,c,h,g,f,p;1E3<=a-this.Ne&&(this.Ne+=1E3,1E3<=a-this.Ne&&(this.Ne=a),this.Kj=this.Th,this.Th=0,this.wj=this.Ng,this.Ng=0);b=0;0!==this.fi&&(b=a-this.fi,0>b&&(b=0),this.we=b/=1E3,.5<this.we?this.we=0:this.we>1/this.Bn&&(this.we=1/this.Bn));this.fi=a;this.ve=this.we*this.Nf;this.ib.add(this.ve);this.Id.add(b);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.xg)&&!this.tb;2<=this.rb||a&&0<this.Be?(b= this.Ja/this.Ia,d=this.width/this.height,k=this.rb,a&&0<this.Be&&(k=this.Be),this.Wf=2!==k&&d>b||2===k&&d<b?this.height/this.Ia:this.width/this.Ja,this.Y&&(this.Y.so(this.Y.scrollX),this.Y.to(this.Y.scrollY))):this.Wf=this.mf?this.devicePixelRatio:1;this.$a();this.zc++;this.dd.nt();this.zc--;this.$a();this.zc++;d=this.Jn.le();a=0;for(b=d.length;a<b;a++)d[a].rv();a=0;for(b=this.k.length;a<b;a++)if(g=this.k[a],!g.R&&(g.ma.length||g.la.length))for(d=0,k=g.c.length;d<k;d++)for(f=g.c[d],c=0,h=f.I.length;c< h;c++)f.I[c].ob();a=0;for(b=this.k.length;a<b;a++)if(g=this.k[a],!g.R&&(g.ma.length||g.la.length))for(d=0,k=g.c.length;d<k;d++)for(f=g.c[d],c=0,h=f.I.length;c<h;c++)p=f.I[c],p.Zs&&p.Zs();d=this.Gk.le();a=0;for(b=d.length;a<b;a++)d[a].ob();this.zc--;this.ks();for(a=0;this.Xf&&10>a++;)this.rm(this.Xf);a=0;for(b=this.rd.length;a<b;a++)this.rd[a].$j=!1;this.Y.ze&&this.Y.ze.Ka();R(this.oo);this.zc++;a=0;for(b=this.k.length;a<b;a++)if(g=this.k[a],!g.R&&(g.ma.length||g.la.length))for(d=0,k=g.c.length;d< k;d++)for(f=g.c[d],c=0,h=f.I.length;c<h;c++)p=f.I[c],p.ll&&p.ll();d=this.Hk.le();a=0;for(b=d.length;a<b;a++)d[a].ll();this.zc--};e.prototype.rm=function(a){var b=this.Y;this.Y.Ht();var d,k,c;if(this.q)for(d=0,k=this.k.length;d<k;d++)c=this.k[d],c.R||!c.Xo||c.global&&0!==c.c.length||-1!==a.rg.indexOf(c)||c.Xo();b==a&&R(this.dd.Nb);R(this.oo);this.po(!0);a.jl();this.po(!1);this.aa=!0;this.$a()};e.prototype.po=function(a){var b,d,k,c,h,g,f,p,n;b=0;for(d=this.ma.length;b<d;b++)k=this.ma[b],a?k.Sg&&k.Sg(): k.Tg&&k.Tg();b=0;for(d=this.k.length;b<d;b++)if(k=this.k[b],k.global||k.qa.Oi)for(c=0,h=k.c.length;c<h;c++)if(g=k.c[c],a?g.Sg&&g.Sg():g.Tg&&g.Tg(),g.I)for(f=0,p=g.I.length;f<p;f++)n=g.I[f],a?n.Sg&&n.Sg():n.Tg&&n.Tg()};e.prototype.ml=function(a){this.Gk.add(a)};e.prototype.Kt=function(a){this.Hk.add(a)};e.prototype.Oj=function(a){return a&&-1!==a.Qg?this.we*a.Qg:this.ve};e.prototype.ue=function(){this.Y.ue(this.na);this.hb&&this.na.present()};e.prototype.wc=function(){this.da&&(this.xe=1,this.Y.ef(this.q)); this.Y.wc(this.q);this.q.dt()};e.prototype.bq=function(a){a&&this.Bj.push(a)};e.prototype.Xh=function(a){a=a.toString();return this.yd.hasOwnProperty(a)?this.yd[a]:null};var O=[];e.prototype.me=function(a){var b,d;b=a.type.name;var k=null;if(this.te.hasOwnProperty(b)){if(k=this.te[b],k.contains(a))return}else k=O.length?O.pop():new ba,this.te[b]=k;k.add(a);this.$d=!0;if(a.Fb)for(b=0,d=a.siblings.length;b<d;b++)this.me(a.siblings[b]);this.lk&&k.Qf.push(a);this.kk||(this.zc++,this.trigger(Object.getPrototypeOf(a.type.qa).e.Cp, a),this.zc--)};e.prototype.$a=function(){if(this.$d){var a,b,d,k,c,h;this.lk=!0;d=0;for(c=this.Pc.length;d<c;++d)for(a=this.Pc[d],b=a.type,b.c.push(a),k=0,h=b.la.length;k<h;++k)b.la[k].c.push(a),b.la[k].Lf=!0;R(this.Pc);this.wp();Za(this.te);this.$d=this.lk=!1}};e.prototype.wp=function(){for(var a in this.te)this.te.hasOwnProperty(a)&&this.kp(this.te[a])};e.prototype.kp=function(a){var b=a.le(),d=b[0].type,k,c,h,g,f,p;ab(d.c,a);d.Lf=!0;0===d.c.length&&(d.Vl=!1);k=0;for(c=d.la.length;k<c;++k)p=d.la[k], ab(p.c,a),p.Lf=!0;k=0;for(c=this.dd.Nb.length;k<c;++k)if(f=this.dd.Nb[k],f.Mb.hasOwnProperty(d.index)&&ab(f.Mb[d.index].Ie,a),!d.R)for(h=0,g=d.la.length;h<g;++h)p=d.la[h],f.Mb.hasOwnProperty(p.index)&&ab(f.Mb[p.index].Ie,a);if(f=b[0].g){if(f.Wb)for(h=f.c,k=0,c=h.length;k<c;++k)g=h[k],a.contains(g)&&(g.Za(),f.Ya.update(g,g.wb,null),g.wb.set(0,0,-1,-1));ab(f.c,a);f.eh(0)}for(k=0;k<b.length;++k)this.jp(b[k],d);a.clear();O.push(a);this.aa=!0};e.prototype.jp=function(a,b){var d,k,c;d=0;for(k=this.Bj.length;d< k;++d)this.Bj[d](a);a.Vd&&b.jm.update(a,a.Vd,null);(d=a.g)&&d.Hf(a,!0);if(a.I)for(d=0,k=a.I.length;d<k;++d)c=a.I[d],c.Jk&&c.Jk(),c.behavior.Ek.remove(a);this.Jn.remove(a);this.Gk.remove(a);this.Hk.remove(a);a.Jk&&a.Jk();this.yd.hasOwnProperty(a.uid.toString())&&delete this.yd[a.uid.toString()];this.si--;100>b.Hh.length&&b.Hh.push(a)};e.prototype.lm=function(a,b,d,k){if(a.R){var c=pa(Math.random()*a.qi.length);return this.lm(a.qi[c],b,d,k)}return a.cc?this.Wd(a.cc,b,!1,d,k,!1):null};var G=[];e.prototype.Wd= function(a,b,d,k,c,h){var g,f,p,n;if(!a)return null;var e=this.k[a[1]],z=e.qa.de;if(this.Cg&&z&&!e.mk||z&&!this.q&&11===a[0][11])return null;var x=b;z||(b=null);var l;e.Hh.length?(l=e.Hh.pop(),l.$c=!0,e.qa.lb.call(l,e)):(l=new e.qa.lb(e),l.$c=!1);!d||h||this.yd.hasOwnProperty(a[2].toString())?l.uid=this.Rg++:l.uid=a[2];this.yd[l.uid.toString()]=l;l.lo=this.Fn++;l.Fe=e.c.length;g=0;for(f=this.Pc.length;g<f;++g)this.Pc[g].type===e&&l.Fe++;l.lg=Fb;l.toString=Gb;p=a[3];if(l.$c)Za(l.ka);else{l.ka={};if("undefined"!== typeof cr_is_preview)for(l.Sm=[],l.Sm.length=p.length,g=0,f=p.length;g<f;g++)l.Sm[g]=p[g][1];l.Ga=[];l.Ga.length=p.length}g=0;for(f=p.length;g<f;g++)l.Ga[g]=p[g][0];if(z){var q=a[0];l.x=fa(k)?q[0]:k;l.y=fa(c)?q[1]:c;l.z=q[2];l.width=q[3];l.height=q[4];l.depth=q[5];l.j=q[6];l.opacity=q[7];l.Db=q[8];l.Eb=q[9];l.cb=q[10];g=q[11];!this.q&&e.G.length&&(l.cb=g);l.Zf=jb(l.cb);this.m&&kb(l,l.cb,this.m);if(l.$c){g=0;for(f=q[12].length;g<f;g++)for(p=0,n=q[12][g].length;p<n;p++)l.pa[g][p]=q[12][g][p];l.bb.set(0, 0,0,0);l.Vd.set(0,0,-1,-1);l.wb.set(0,0,-1,-1);l.yh.Ni(l.bb);R(l.lj)}else{l.pa=q[12].slice(0);g=0;for(f=l.pa.length;g<f;g++)l.pa[g]=q[12][g].slice(0);l.U=[];l.Od=[];l.Od.length=e.G.length;l.bb=new ua(0,0,0,0);l.Vd=new ua(0,0,-1,-1);l.wb=new ua(0,0,-1,-1);l.yh=new va;l.lj=[];l.La=Jb;l.Zu=Kb;l.Zb=Lb;l.Za=Mb;l.Rt=Nb;l.xv=Ob;l.Tc=Pb}l.Mt=!1;l.Ot=0;l.Nt=0;l.Lt=null;14===q.length&&(l.Mt=!0,l.Ot=q[13][0],l.Nt=q[13][1],l.Lt=q[13][2]);g=0;for(f=e.G.length;g<f;g++)l.Od[g]=!0;l.Dd=!0;l.Gc=Qb;l.Gc();l.bp=!!l.U.length; l.kj=!0;l.qj=!0;e.Ul=!0;l.visible=!0;l.Qg=-1;l.g=b;l.Ic=b.c.length;l.xe=0;"undefined"===typeof l.Oc&&(l.Oc=null);this.aa=l.Yf=!0}var m;R(G);g=0;for(f=e.la.length;g<f;g++)G.push.apply(G,e.la[g].ma);G.push.apply(G,e.ma);if(l.$c)for(g=0,f=G.length;g<f;g++){var r=G[g];m=l.I[g];m.$c=!0;r.behavior.lb.call(m,r,l);q=a[4][g];p=0;for(n=q.length;p<n;p++)m.Z[p]=q[p];m.ua();r.behavior.Ek.add(l)}else for(l.I=[],g=0,f=G.length;g<f;g++)r=G[g],m=new r.behavior.lb(r,l),m.$c=!1,m.Z=a[4][g].slice(0),m.ua(),l.I.push(m), r.behavior.Ek.add(l);q=a[5];if(l.$c)for(g=0,f=q.length;g<f;g++)l.Z[g]=q[g];else l.Z=q.slice(0);this.Pc.push(l);this.$d=!0;b&&(b.Vf(l,!0),1!==b.zd||1!==b.Ad)&&(e.Vl=!0);this.si++;if(e.Fb){if(l.Fb=!0,l.$c?R(l.siblings):l.siblings=[],!d&&!h){g=0;for(f=e.Cb.length;g<f;g++)if(e.Cb[g]!==e){if(!e.Cb[g].cc)return null;l.siblings.push(this.Wd(e.Cb[g].cc,x,!1,z?l.x:k,z?l.y:c,!0))}g=0;for(f=l.siblings.length;g<f;g++)for(l.siblings[g].siblings.push(l),p=0;p<f;p++)g!==p&&l.siblings[g].siblings.push(l.siblings[p])}}else l.Fb= !1,l.siblings=null;l.ua();g=0;for(f=l.I.length;g<f;g++)l.I[g].Ys&&l.I[g].Ys();return l};e.prototype.Tj=function(a){var b,d;b=0;for(d=this.Y.H.length;b<d;b++){var k=this.Y.H[b];if(mb(k.name,a))return k}return null};e.prototype.jg=function(a){a=pa(a);0>a&&(a=0);a>=this.Y.H.length&&(a=this.Y.H.length-1);return this.Y.H[a]};e.prototype.uj=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].X().ga=!0};e.prototype.Xg=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].Xg()};e.prototype.Tk=function(a){var b, d;b=0;for(d=a.length;b<d;b++)a[b].Tk()};e.prototype.Ff=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].Ff()};e.prototype.Ti=function(a,b,d){var k=a.X(),c,g,h,f,p=this.sb().ac.Bc,n,e,l;if(k.ga)for(k.ga=!1,R(k.c),c=0,f=a.c.length;c<f;c++)h=a.c[c],h.Za(),n=h.g.mb(b,d,!0),e=h.g.mb(b,d,!1),h.Zb(n,e)?k.c.push(h):p&&k.L.push(h);else{g=0;l=p?k.L:k.c;c=0;for(f=l.length;c<f;c++)h=l[c],h.Za(),n=h.g.mb(b,d,!0),e=h.g.mb(b,d,!1),h.Zb(n,e)&&(p?k.c.push(h):(k.c[g]=k.c[c],g++));l.length=g}a.Rd();return k.Zj()}; new va;new ua(0,0,0,0);e.prototype.Vo=function(a,b){if(!b)return!1;var d,k,c,g,h;d=0;for(k=a.ma.length;d<k;d++)if(a.ma[d].behavior instanceof b)return!0;if(!a.R)for(d=0,k=a.la.length;d<k;d++)for(h=a.la[d],c=0,g=h.ma.length;c<g;c++)if(h.ma[c].behavior instanceof b)return!0;return!1};e.prototype.rl=function(a){return this.Vo(a,ec.vu)};e.prototype.sl=function(a){return this.Vo(a,ec.wu)};var y=-1;e.prototype.trigger=function(a,b,d){if(!this.Y)return!1;var k=this.Y.ze;if(!k)return!1;var c=!1,g,h,f;y++; var p=k.Aj;h=0;for(f=p.length;h<f;++h)g=this.So(a,b,p[h],d),c=c||g;g=this.So(a,b,k,d);y--;return c||g};e.prototype.So=function(a,b,d,k){var c=!1,g,h,f,p;if(b)for(f=this.pl(a,b,b.type.name,d,k),c=c||f,p=b.type.la,g=0,h=p.length;g<h;++g)f=this.pl(a,b,p[g].name,d,k),c=c||f;else f=this.pl(a,b,"system",d,k),c=c||f;return c};e.prototype.pl=function(a,b,d,k,c){var g,h=!1,f=!1,f="undefined"!==typeof c,p=(f?k.wm:k.To)[d];if(!p)return h;var n=null;k=0;for(g=p.length;k<g;++k)if(p[k].method==a){n=p[k].gg;break}if(!n)return h; var e;f?e=n[c]:e=n;if(!e)return null;k=0;for(g=e.length;k<g;k++)a=e[k][0],c=e[k][1],f=this.Br(b,d,a,c),h=h||f;return h};e.prototype.Br=function(a,b,d,k){var c,g,h=!1;this.ql++;var f=this.sb().ac;f&&this.Xg(f.je);var p=1<this.ql;this.Xg(d.je);p&&this.ft();var n=this.Uk(d);n.ac=d;a&&(c=this.types[b].X(),c.ga=!1,R(c.c),c.c[0]=a,this.types[b].Rd());a=!0;if(d.parent){b=n.Mo;for(c=d.parent;c;)b.push(c),c=c.parent;b.reverse();c=0;for(g=b.length;c<g;c++)if(!b[c].pt()){a=!1;break}}a&&(this.Mh++,d.Bc?d.ot(k): d.Ka(),h=h||n.Me);this.fo();p&&this.Xs();this.Ff(d.je);f&&this.Ff(f.je);this.$d&&0===this.zc&&0===y&&!this.nk&&this.$a();this.ql--;return h};e.prototype.Kr=function(){var a=this.sb();return a.ac.eb[a.Bb]};e.prototype.ft=function(){this.mi++;this.mi>=this.zk.length&&this.zk.push([])};e.prototype.Xs=function(){this.mi--};e.prototype.Gm=function(){return this.zk[this.mi]};e.prototype.Uk=function(a){this.Lh++;this.Lh>=this.Dj.length&&this.Dj.push(new Rb);var b=this.sb();b.reset(a);return b};e.prototype.fo= function(){this.Lh--};e.prototype.sb=function(){return this.Dj[this.Lh]};e.prototype.Hm=function(a,b){for(var d,k,c,g,h,f;b;){d=0;for(k=b.pc.length;d<k;d++)if(f=b.pc[d],f instanceof Sb&&mb(a,f.name))return f;b=b.parent}d=0;for(k=this.rd.length;d<k;d++)for(h=this.rd[d],c=0,g=h.Yd.length;c<g;c++)if(f=h.Yd[c],f instanceof Sb&&mb(a,f.name))return f;return null};e.prototype.Im=function(a){var b,d;b=0;for(d=this.Ac.length;b<d;b++)if(this.Ac[b].N===a)return this.Ac[b];return null};e.prototype.Yh=function(a){var b, d;b=0;for(d=this.k.length;b<d;b++)if(this.k[b].N===a)return this.k[b];return null};e.prototype.Mr=function(a){var b,d;b=0;for(d=this.$e.length;b<d;b++)if(this.$e[b].N===a)return this.$e[b];return null};e.prototype.vq=function(a,b){this.hh=[a,b];this.aa=!0};e.prototype.ks=function(){var a=this,b=this.fl,d=this.vd,k=this.ii,g=!1;this.Ho&&(g=!0,b="__c2_continuouspreview",this.Ho=!1);if(b.length){this.$a();d=this.wt();if(m()&&!this.Tb)v(b,d,function(){B("Saved state to IndexedDB storage ("+d.length+" bytes)"); a.vd=d;a.trigger(W.prototype.e.fj,null);a.vd="";g&&c()},function(k){try{localStorage.setItem("__c2save_"+b,d),B("Saved state to WebStorage ("+d.length+" bytes)"),a.vd=d,a.trigger(W.prototype.e.fj,null),a.vd="",g&&c()}catch(h){B("Failed to save game state: "+k+"; "+h),a.trigger(W.prototype.e.Il,null)}});else try{localStorage.setItem("__c2save_"+b,d),B("Saved state to WebStorage ("+d.length+" bytes)"),a.vd=d,this.trigger(W.prototype.e.fj,null),a.vd="",g&&c()}catch(h){B("Error saving to WebStorage: "+ h),a.trigger(W.prototype.e.Il,null)}this.jb=this.ii=this.fl=""}if(k.length){if(m()&&!this.Tb)t(k,function(b){b?(a.jb=b,B("Loaded state from IndexedDB storage ("+a.jb.length+" bytes)")):(a.jb=localStorage.getItem("__c2save_"+k)||"",B("Loaded state from WebStorage ("+a.jb.length+" bytes)"));a.jh=!1;a.jb.length||a.trigger(W.prototype.e.ej,null)},function(){a.jb=localStorage.getItem("__c2save_"+k)||"";B("Loaded state from WebStorage ("+a.jb.length+" bytes)");a.jh=!1;a.jb.length||a.trigger(W.prototype.e.ej, null)});else{try{this.jb=localStorage.getItem("__c2save_"+k)||"",B("Loaded state from WebStorage ("+this.jb.length+" bytes)")}catch(f){this.jb=""}this.jh=!1;a.jb.length||a.trigger(W.prototype.e.ej,null)}this.fl=this.ii=""}this.jb.length&&(this.$a(),this.Es(this.jb),this.vd=this.jb,this.trigger(W.prototype.e.Ip,null),this.jb=this.vd="")};e.prototype.wt=function(){var a,d,k,c,g,h,f,p={c2save:!0,version:1,rt:{time:this.ib.T,walltime:this.Id.T,timescale:this.Nf,tickcount:this.mh,execcount:this.Mh,next_uid:this.Rg, running_layout:this.Y.N,start_time_offset:Date.now()-this.Pi},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(d=this.k.length;a<d;a++)if(g=this.k[a],!g.R&&!this.rl(g)){h={instances:[]};Ya(g.ka)&&(h.ex=b(g.ka));k=0;for(c=g.c.length;k<c;k++)h.instances.push(this.el(g.c[k]));p.types[g.N.toString()]=h}a=0;for(d=this.Ac.length;a<d;a++)k=this.Ac[a],p.layouts[k.N.toString()]=k.mc();c=p.events.groups;a=0;for(d=this.$e.length;a<d;a++)k=this.$e[a],c[k.N.toString()]=this.ng[k.mg].jf; d=p.events.cnds;for(f in this.Ud)this.Ud.hasOwnProperty(f)&&(a=this.Ud[f],Ya(a.ka)&&(d[f]={ex:b(a.ka)}));d=p.events.acts;for(f in this.Pd)this.Pd.hasOwnProperty(f)&&(a=this.Pd[f],Ya(a.ka)&&(d[f]={ex:b(a.ka)}));d=p.events.vars;for(f in this.Rf)this.Rf.hasOwnProperty(f)&&(a=this.Rf[f],a.di||a.parent&&!a.Bg||(d[f]=a.data));p.system=this.dd.mc();return JSON.stringify(p)};e.prototype.no=function(){var a,b,d,k,c,g;this.yd={};a=0;for(b=this.k.length;a<b;a++)if(d=this.k[a],!d.R)for(k=0,c=d.c.length;k<c;k++)g= d.c[k],this.yd[g.uid.toString()]=g};e.prototype.Es=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){this.vg=!0;var b=a.rt;this.ib.reset();this.ib.T=b.time;this.Id.reset();this.Id.T=b.walltime||0;this.Nf=b.timescale;this.mh=b.tickcount;this.Mh=b.execcount;this.Pi=Date.now()-b.start_time_offset;var d=b.running_layout;if(d!==this.Y.N)if(d=this.Im(d))this.rm(d);else return;var k,c,g,h,f,p,n;p=a.types;for(c in p)if(p.hasOwnProperty(c)&&(h=this.Yh(parseInt(c,10)))&&!h.R&&!this.rl(h)){p[c].ex?h.ka= p[c].ex:Za(h.ka);f=h.c;g=p[c].instances;d=0;for(k=la(f.length,g.length);d<k;d++)this.ji(f[d],g[d]);d=g.length;for(k=f.length;d<k;d++)this.me(f[d]);d=f.length;for(k=g.length;d<k;d++){f=null;if(h.qa.de&&(f=this.Y.Wh(g[d].w.l),!f))continue;f=this.Wd(h.cc,f,!1,0,0,!0);this.ji(f,g[d])}h.Lf=!0}this.$a();this.no();k=a.layouts;for(c in k)k.hasOwnProperty(c)&&(d=this.Im(parseInt(c,10)))&&d.Wc(k[c]);k=a.events.groups;for(c in k)k.hasOwnProperty(c)&&(d=this.Mr(parseInt(c,10)))&&this.ng[d.mg]&&this.ng[d.mg].yt(k[c]); d=a.events.cnds;for(c in this.Ud)this.Ud.hasOwnProperty(c)&&(d.hasOwnProperty(c)?this.Ud[c].ka=d[c].ex:this.Ud[c].ka={});d=a.events.acts;for(c in this.Pd)this.Pd.hasOwnProperty(c)&&(d.hasOwnProperty(c)?this.Pd[c].ka=d[c].ex:this.Pd[c].ka={});d=a.events.vars;for(c in d)d.hasOwnProperty(c)&&this.Rf.hasOwnProperty(c)&&(this.Rf[c].data=d[c]);this.Rg=b.next_uid;this.vg=!1;d=0;for(k=this.Qh.length;d<k;++d)f=this.Qh[d],this.trigger(Object.getPrototypeOf(f.type.qa).e.th,f);R(this.Qh);this.dd.Wc(a.system); d=0;for(k=this.k.length;d<k;d++)if(h=this.k[d],!h.R&&!this.rl(h))for(c=0,a=h.c.length;c<a;c++){f=h.c[c];if(h.Fb)for(p=f.lg(),R(f.siblings),b=0,g=h.Cb.length;b<g;b++)n=h.Cb[b],h!==n&&f.siblings.push(n.c[p]);f.Qd&&f.Qd();if(f.I)for(b=0,g=f.I.length;b<g;b++)p=f.I[b],p.Qd&&p.Qd()}this.aa=!0}};e.prototype.el=function(a,d){var k,c,g,h,f;h=a.type;g=h.qa;var p={};d?p.c2=!0:p.uid=a.uid;Ya(a.ka)&&(p.ex=b(a.ka));if(a.Ga&&a.Ga.length)for(p.ivs={},k=0,c=a.Ga.length;k<c;k++)p.ivs[a.type.hk[k].toString()]=a.Ga[k]; if(g.de){g={x:a.x,y:a.y,w:a.width,h:a.height,l:a.g.N,zi:a.Tc()};0!==a.j&&(g.a=a.j);1!==a.opacity&&(g.o=a.opacity);.5!==a.Db&&(g.hX=a.Db);.5!==a.Eb&&(g.hY=a.Eb);0!==a.cb&&(g.bm=a.cb);a.visible||(g.v=a.visible);a.Yf||(g.ce=a.Yf);-1!==a.Qg&&(g.mts=a.Qg);if(h.G.length)for(g.fx=[],k=0,c=h.G.length;k<c;k++)f=h.G[k],g.fx.push({name:f.name,active:a.Od[f.index],params:a.pa[f.index]});p.w=g}if(a.I&&a.I.length)for(p.behs={},k=0,c=a.I.length;k<c;k++)h=a.I[k],h.mc&&(p.behs[h.type.N.toString()]=h.mc());a.mc&&(p.data= a.mc());return p};e.prototype.Or=function(a,b){var d,k;d=0;for(k=a.hk.length;d<k;d++)if(a.hk[d]===b)return d;return-1};e.prototype.Jr=function(a,b){var d,k;d=0;for(k=a.I.length;d<k;d++)if(a.I[d].type.N===b)return d;return-1};e.prototype.ji=function(a,b,d){var k,c,g,h,f;f=a.type;h=f.qa;if(d){if(!b.c2)return}else a.uid=b.uid;b.ex?a.ka=b.ex:Za(a.ka);if(c=b.ivs)for(k in c)c.hasOwnProperty(k)&&(g=this.Or(f,parseInt(k,10)),0>g||g>=a.Ga.length||(a.Ga[g]=c[k]));if(h.de){g=b.w;a.g.N!==g.l&&(c=a.g,a.g=this.Y.Wh(g.l), a.g?(c.Hf(a,!0),a.g.Vf(a,!0),a.La(),a.g.eh(0)):(a.g=c,d||this.me(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.Ic=g.zi;a.j=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.Db=g.hasOwnProperty("hX")?g.hX:.5;a.Eb=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.Yf=g.hasOwnProperty("ce")?g.ce:!0;a.Qg=g.hasOwnProperty("mts")?g.mts:-1;a.cb=g.hasOwnProperty("bm")?g.bm:0;a.Zf=jb(a.cb);this.m&&kb(a,a.cb,this.m);a.La();if(g.hasOwnProperty("fx"))for(d=0,c=g.fx.length;d< c;d++)h=f.Qj(g.fx[d].name),0>h||(a.Od[h]=g.fx[d].active,a.pa[h]=g.fx[d].params);a.Gc()}if(f=b.behs)for(k in f)f.hasOwnProperty(k)&&(d=this.Jr(a,parseInt(k,10)),0>d||a.I[d].Wc(f[k]));b.data&&a.Wc(b.data)};e.prototype.xm=function(a,b,d){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,d)},d)};e.prototype.zm=function(a,b){this.xm("data.js",function(d){var k=new FileReader;k.onload=function(b){a(b.target.result)};k.onerror=b;k.readAsText(d)},b)};var X=[], T=0;e.prototype.Bk=function(){if(X.length&&!(8<=T)){T++;var a=X.shift();this.yq(a.filename,a.It,a.Wq)}};e.prototype.ym=function(a,b,d){var k=this;X.push({filename:a,It:function(a){T--;k.Bk();b(a)},Wq:function(a){T--;k.Bk();d(a)}});this.Bk()};e.prototype.yq=function(a,b,d){this.xm(a,function(a){var d=new FileReader;d.onload=function(a){b(a.target.result)};d.readAsArrayBuffer(a)},d)};e.prototype.Cr=function(a,b,d){this.ym(a,function(a){a=URL.createObjectURL(new Blob([a]));b(a)},d)};e.prototype.rs=function(a){return/^(?:[a-z]+:)?\/\//.test(a)|| "data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};e.prototype.yo=function(a,b){this.zg&&!this.rs(b)?this.Cr(b,function(b){a.src=b},function(a){alert("Failed to load image: "+a)}):a.src=b};e.prototype.Ji=function(a,b){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=b:(a.webkitImageSmoothingEnabled=b,a.mozImageSmoothingEnabled=b,a.msImageSmoothingEnabled=b)};Tb=function(a){return new e(document.getElementById(a))};Ub=function(a,b){return new e({dc:!0,width:a,height:b})};window.cr_createRuntime= Tb;window.cr_createDCRuntime=Ub;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Yl=!0;document.body.appendChild(a);a=new e(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 e(document.getElementById("canvas")); window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(e,q){var m=window.cr_getC2Runtime();m&&m.vq(e,q)};window.cr_sizeCanvas=function(e,q){if(0!==e&&0!==q){var m=window.cr_getC2Runtime();m&&m.setSize(e,q)}};window.cr_setSuspended=function(e){var q=window.cr_getC2Runtime();q&&q.setSuspended(e)}; (function(){function e(a,b){this.b=a;this.ze=null;this.scrollX=this.b.Ja/2;this.scrollY=this.b.Ia/2;this.scale=1;this.j=0;this.gf=!0;this.name=b[0];this.Us=b[1];this.Ts=b[2];this.width=b[1];this.height=b[2];this.Wo=b[3];this.Eo=b[4];this.N=b[5];var c=b[6],h,f;this.H=[];this.rg=[];h=0;for(f=c.length;h<f;h++){var n=new Vb(this,c[h]);n.Hn=h;this.H.push(n)}c=b[7];this.He=[];h=0;for(f=c.length;h<f;h++){var n=c[h],e=this.b.k[n[1]];e.cc||(e.cc=n);this.He.push(n);-1===this.rg.indexOf(e)&&this.rg.push(e)}this.G= [];this.U=[];this.Dd=!0;this.pa=[];h=0;for(f=b[8].length;h<f;h++)this.G.push({id:b[8][h][0],name:b[8][h][1],Da:-1,Cc:!1,ab:!0,index:h}),this.pa.push(b[8][h][2].slice(0));this.Gc();this.Wk=new ua(0,0,1,1);this.Xk=new ua(0,0,1,1);this.he={}}function q(a,b){return a.Ic-b.Ic}function m(a,b){this.Na=a;this.b=a.b;this.c=[];this.scale=1;this.j=0;this.qd=!1;this.Gd=new ua(0,0,0,0);this.Ro=new va;this.ha=this.ca=this.ja=this.ba=0;this.We=!1;this.Ld=-1;this.vj=0;this.name=b[0];this.index=b[1];this.N=b[2];this.visible= b[3];this.uc=b[4];this.Fc=b[5];this.zd=b[6];this.Ad=b[7];this.opacity=b[8];this.Sh=b[9];this.Wb=b[10];this.Md=b[11];this.cb=b[12];this.Sq=b[13];this.Zf="source-over";this.fb=this.kb=0;this.Ya=null;this.wd=r();this.Ec=!0;this.wf=new ua(0,0,-1,-1);this.Sa=new ua(0,0,-1,-1);this.Wb&&(this.Ya=new ib(this.b.Ja,this.b.Ia));this.ad=!1;var c=b[14],h,f;this.Ko=[];this.Sb=[];this.bg=[];h=0;for(f=c.length;h<f;h++){var n=c[h],e=this.b.k[n[1]];e.cc||(e.cc=n,e.uq=this.index);this.Sb.push(n);-1===this.Na.rg.indexOf(e)&& this.Na.rg.push(e)}za(this.Ko,this.Sb);this.G=[];this.U=[];this.Dd=!0;this.pa=[];h=0;for(f=b[15].length;h<f;h++)this.G.push({id:b[15][h][0],name:b[15][h][1],Da:-1,Cc:!1,ab:!0,index:h}),this.pa.push(b[15][h][2].slice(0));this.Gc();this.Wk=new ua(0,0,1,1);this.Xk=new ua(0,0,1,1)}function r(){return b.length?b.pop():[]}function v(a){R(a);b.push(a)}e.prototype.ut=function(a){var b=a.type.N.toString();this.he.hasOwnProperty(b)||(this.he[b]=[]);this.he[b].push(this.b.el(a))};e.prototype.Mm=function(){var a= this.H[0];return!a.Fc&&1===a.opacity&&!a.Sh&&a.visible};e.prototype.Gc=function(){R(this.U);this.Dd=!0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.ab&&(this.U.push(c),c.Cc||(this.Dd=!1))};e.prototype.Pj=function(a){var b,c,h;b=0;for(c=this.G.length;b<c;b++)if(h=this.G[b],h.name===a)return h;return null};var t=[],c=!0;e.prototype.jl=function(){this.Eo&&(this.ze=this.b.Ej[this.Eo],this.ze.tl());this.b.Y=this;this.width=this.Us;this.height=this.Ts;this.scrollX=this.b.Ja/2;this.scrollY=this.b.Ia/ 2;var a,b,g,h,f,n,e;a=0;for(g=this.b.k.length;a<g;a++)if(b=this.b.k[a],!b.R)for(f=b.c,b=0,h=f.length;b<h;b++)if(n=f[b],n.g){var k=n.g.Hn;k>=this.H.length&&(k=this.H.length-1);n.g=this.H[k];-1===n.g.c.indexOf(n)&&n.g.c.push(n);n.g.We=!0}if(!c)for(a=0,g=this.H.length;a<g;++a)this.H[a].c.sort(q);R(t);this.jq();a=0;for(g=this.H.length;a<g;a++)n=this.H[a],n.tq(),n.aj();f=!1;if(!this.gf){for(e in this.he)if(this.he.hasOwnProperty(e)&&(b=this.b.Yh(parseInt(e,10)))&&!b.R&&this.b.sl(b)){h=this.he[e];a=0;for(g= h.length;a<g;a++){n=null;if(b.qa.de&&(n=this.Wh(h[a].w.l),!n))continue;n=this.b.Wd(b.cc,n,!1,0,0,!0);this.b.ji(n,h[a]);f=!0;t.push(n)}R(h)}a=0;for(g=this.H.length;a<g;a++)this.H[a].c.sort(q),this.H[a].We=!0}f&&(this.b.$a(),this.b.no());for(a=0;a<t.length;a++)if(n=t[a],n.type.Fb)for(g=n.lg(),b=0,h=n.type.Cb.length;b<h;b++)e=n.type.Cb[b],n.type!==e&&(e.c.length>g?n.siblings.push(e.c[g]):e.cc&&(f=this.b.Wd(e.cc,n.g,!0,n.x,n.y,!0),this.b.$a(),e.Zi(),n.siblings.push(f),t.push(f)));a=0;for(g=this.He.length;a< g;a++)this.b.Wd(this.He[a],null,!0);this.b.Xf=null;this.b.$a();if(this.b.na&&!this.b.za)for(a=0,g=this.b.k.length;a<g;a++)e=this.b.k[a],!e.R&&e.c.length&&e.io&&e.io(this.b.na);if(this.b.vg)za(this.b.Qh,t);else for(a=0,g=t.length;a<g;a++)n=t[a],this.b.trigger(Object.getPrototypeOf(n.type.qa).e.th,n);R(t);this.b.vg||this.b.trigger(W.prototype.e.Dl,null);this.gf=!1};e.prototype.sq=function(){var a,b,c,h,f;b=a=0;for(c=this.He.length;a<c;a++)h=this.He[a],f=this.b.k[h[1]],f.global?f.Fb||this.b.Wd(h,null, !0):(this.He[b]=h,b++);ya(this.He,b)};e.prototype.Ht=function(){this.b.vg||this.b.trigger(W.prototype.e.Hp,null);this.b.kk=!0;R(this.b.dd.Nb);var a,b,g,h,f,n;if(!this.gf)for(a=0,b=this.H.length;a<b;a++)for(this.H[a].wl(),f=this.H[a].c,g=0,h=f.length;g<h;g++)n=f[g],n.type.global||this.b.sl(n.type)&&this.ut(n);a=0;for(b=this.H.length;a<b;a++){f=this.H[a].c;g=0;for(h=f.length;g<h;g++)n=f[g],n.type.global||this.b.me(n);this.b.$a();R(f);this.H[a].We=!0}a=0;for(b=this.b.k.length;a<b;a++)if(f=this.b.k[a], !(f.global||f.qa.de||f.qa.Oi||f.R)){g=0;for(h=f.c.length;g<h;g++)this.b.me(f.c[g]);this.b.$a()}c=!1;this.b.kk=!1};new ua(0,0,0,0);e.prototype.ue=function(a){var b,c=a,f=!1,e=!this.b.Qb;e&&(this.b.hi||(this.b.hi=document.createElement("canvas"),b=this.b.hi,b.width=this.b.C,b.height=this.b.B,this.b.dn=b.getContext("2d"),f=!0),b=this.b.hi,c=this.b.dn,b.width!==this.b.C&&(b.width=this.b.C,f=!0),b.height!==this.b.B&&(b.height=this.b.B,f=!0),f&&this.b.Ji(c,this.b.Ba));c.globalAlpha=1;c.globalCompositeOperation= "source-over";this.b.hj&&!this.Mm()&&c.clearRect(0,0,this.b.C,this.b.B);var n,l,f=0;for(n=this.H.length;f<n;f++)l=this.H[f],l.visible&&0<l.opacity&&11!==l.cb&&(l.c.length||!l.Fc)?l.ue(c):l.aj();e&&a.drawImage(b,0,0,this.b.width,this.b.height)};e.prototype.ef=function(a){a.xo(!0);this.b.Aa||(this.b.Aa=a.$b(this.b.C,this.b.B,this.b.Ba));if(this.b.Aa.re!==this.b.C||this.b.Aa.qe!==this.b.B)a.deleteTexture(this.b.Aa),this.b.Aa=a.$b(this.b.C,this.b.B,this.b.Ba);a.nc(this.b.Aa);this.b.Qb||a.Ue(this.b.C, this.b.B);var b,c;for(b=this.H.length-1;0<=b;--b)c=this.H[b],c.visible&&1===c.opacity&&c.Dd&&0===c.cb&&(c.c.length||!c.Fc)?c.ef(a):c.aj();a.xo(!1)};e.prototype.wc=function(a){var b=0<this.U.length||this.b.Pf||!this.b.Qb||this.b.da;if(b){this.b.Aa||(this.b.Aa=a.$b(this.b.C,this.b.B,this.b.Ba));if(this.b.Aa.re!==this.b.C||this.b.Aa.qe!==this.b.B)a.deleteTexture(this.b.Aa),this.b.Aa=a.$b(this.b.C,this.b.B,this.b.Ba);a.nc(this.b.Aa);this.b.Qb||a.Ue(this.b.C,this.b.B)}else this.b.Aa&&(a.nc(null),a.deleteTexture(this.b.Aa), this.b.Aa=null);this.b.hj&&!this.Mm()&&a.clear(0,0,0,0);var c,f,e;c=0;for(f=this.H.length;c<f;c++)e=this.H[c],e.visible&&0<e.opacity&&(e.c.length||!e.Fc)?e.wc(a):e.aj();b&&(0===this.U.length||1===this.U.length&&this.b.Qb?(1===this.U.length?(b=this.U[0].index,a.zb(this.U[0].Da),a.Jf(null,1/this.b.C,1/this.b.B,0,0,1,1,this.scale,this.j,0,0,this.b.C/2,this.b.B/2,this.b.ib.T,this.pa[b]),a.Ei(this.U[0].Da)&&(this.b.aa=!0)):a.zb(0),this.b.Qb||a.Ue(this.b.width,this.b.height),a.nc(null),a.wo(!1),a.dh(1), a.oc(this.b.Aa),a.uo(),a.bd(),a.Hc(),b=this.b.width/2,c=this.b.height/2,a.Yg(-b,c,b,c,b,-c,-b,-c),a.oc(null),a.wo(!0)):this.Yk(a,null,null,null))};e.prototype.kg=function(){return 0<this.U.length||this.b.Pf||!this.b.Qb||this.b.da?this.b.Aa:null};e.prototype.Jm=function(){var a=this.H[0].gc(),b,c,f;b=1;for(c=this.H.length;b<c;b++)f=this.H[b],(0!==f.zd||0!==f.Ad)&&f.gc()<a&&(a=f.gc());return a};e.prototype.so=function(a){if(!this.Wo){var b=1/this.Jm()*this.b.C/2;a>this.width-b&&(a=this.width-b);a<b&& (a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.aa=!0)};e.prototype.to=function(a){if(!this.Wo){var b=1/this.Jm()*this.b.B/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.aa=!0)};e.prototype.jq=function(){this.so(this.scrollX);this.to(this.scrollY)};e.prototype.Yk=function(a,b,c,f){var e=c?c.U:b?b.U:this.U,n=1,l=0,k=0,p=0,q=this.b.C,m=this.b.B;c?(n=c.g.gc(),l=c.g.Ua(),k=c.g.ba,p=c.g.ca,q=c.g.ja,m=c.g.ha):b&&(n=b.gc(),l=b.Ua(),k=b.ba,p=b.ca,q=b.ja,m=b.ha);var r= this.b.Mj,t,v,O,G,y=0,X=1,T,u,C=this.b.C,w=this.b.B,na=C/2,J=w/2,I=b?b.Wk:this.Wk,F=b?b.Xk:this.Xk,L=0,M=0,D=0,E=0,N=C,sa=C,P=w,ta=w,ia=O=0;G=c?c.g.Ua():0;if(c){t=0;for(v=e.length;t<v;t++)O+=a.Sr(e[t].Da),ia+=a.Tr(e[t].Da);E=c.bb;L=b.jc(E.left,E.top,!0);D=b.jc(E.left,E.top,!1);N=b.jc(E.right,E.bottom,!0);P=b.jc(E.right,E.bottom,!1);0!==G&&(t=b.jc(E.right,E.top,!0),v=b.jc(E.right,E.top,!1),M=b.jc(E.left,E.bottom,!0),E=b.jc(E.left,E.bottom,!1),G=Math.min(L,N,t,M),N=Math.max(L,N,t,M),L=G,G=Math.min(D, P,v,E),P=Math.max(D,P,v,E),D=G);L-=O;D-=ia;N+=O;P+=ia;F.left=L/C;F.top=1-D/w;F.right=N/C;F.bottom=1-P/w;M=L=pa(L);E=D=pa(D);sa=N=qa(N);ta=P=qa(P);M-=O;E-=ia;sa+=O;ta+=ia;0>L&&(L=0);0>D&&(D=0);N>C&&(N=C);P>w&&(P=w);0>M&&(M=0);0>E&&(E=0);sa>C&&(sa=C);ta>w&&(ta=w);I.left=L/C;I.top=1-D/w;I.right=N/C;I.bottom=1-P/w}else I.left=F.left=0,I.top=F.top=0,I.right=F.right=1,I.bottom=F.bottom=1;ia=c&&(a.Wg(e[0].Da)||0!==O||0!==ia||1!==c.opacity||c.type.qa.Cn)||b&&!c&&1!==b.opacity;a.uo();if(ia){r[y]||(r[y]=a.$b(C, w,this.b.Ba));if(r[y].re!==C||r[y].qe!==w)a.deleteTexture(r[y]),r[y]=a.$b(C,w,this.b.Ba);a.zb(0);a.nc(r[y]);u=ta-E;a.clearRect(M,w-E-u,sa-M,u);c?c.wc(a):(a.oc(this.b.Ha),a.dh(b.opacity),a.bd(),a.translate(-na,-J),a.Hc(),a.Te(L,P,N,P,N,D,L,D,I));F.left=F.top=0;F.right=F.bottom=1;c&&(G=I.top,I.top=I.bottom,I.bottom=G);y=1;X=0}a.dh(1);O=e.length-1;var Ga=a.Sk(e[O].Da)||!b&&!c&&!this.b.Qb;t=G=0;for(v=e.length;t<v;t++){r[y]||(r[y]=a.$b(C,w,this.b.Ba));if(r[y].re!==C||r[y].qe!==w)a.deleteTexture(r[y]), r[y]=a.$b(C,w,this.b.Ba);a.zb(e[t].Da);G=e[t].index;a.Ei(e[t].Da)&&(this.b.aa=!0);0!=t||ia?(a.Jf(f,1/C,1/w,F.left,F.top,F.right,F.bottom,n,l,k,p,(k+q)/2,(p+m)/2,this.b.ib.T,c?c.pa[G]:b?b.pa[G]:this.pa[G]),a.oc(null),t!==O||Ga?(a.nc(r[y]),u=ta-E,T=w-E-u,a.clearRect(M,T,sa-M,u)):(c?a.ie(c.kb,c.fb):b&&a.ie(b.kb,b.fb),a.nc(f)),a.oc(r[X]),a.bd(),a.translate(-na,-J),a.Hc(),a.Te(L,P,N,P,N,D,L,D,I),t!==O||Ga||a.oc(null)):(a.nc(r[y]),u=ta-E,T=w-E-u,a.clearRect(M,T,sa-M,u),c?(c.Ra&&c.Ra.Qa?(T=c.Ra.Qa,X=1/T.width, T=1/T.height):(X=1/c.width,T=1/c.height),a.Jf(f,X,T,F.left,F.top,F.right,F.bottom,n,l,k,p,(k+q)/2,(p+m)/2,this.b.ib.T,c.pa[G]),c.wc(a)):(a.Jf(f,1/C,1/w,0,0,1,1,n,l,k,p,(k+q)/2,(p+m)/2,this.b.ib.T,b?b.pa[G]:this.pa[G]),a.oc(b?this.b.Ha:this.b.Aa),a.bd(),a.translate(-na,-J),a.Hc(),a.Te(L,P,N,P,N,D,L,D,I)),F.left=F.top=0,F.right=F.bottom=1,c&&!Ga&&(G=P,P=D,D=G));y=0===y?1:0;X=0===y?1:0}Ga&&(a.zb(0),c?a.ie(c.kb,c.fb):b?a.ie(b.kb,b.fb):this.b.Qb||(a.Ue(this.b.width,this.b.height),na=this.b.width/2,J=this.b.height/ 2,D=L=0,N=this.b.width,P=this.b.height),a.nc(f),a.oc(r[X]),a.bd(),a.translate(-na,-J),a.Hc(),c&&1===e.length&&!ia?a.Te(L,D,N,D,N,P,L,P,I):a.Te(L,P,N,P,N,D,L,D,I),a.oc(null))};e.prototype.Wh=function(a){var b,c;b=0;for(c=this.H.length;b<c;b++)if(this.H[b].N===a)return this.H[b];return null};e.prototype.mc=function(){var a,b,c,f={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,fv:this.gf,persist:this.he,fx:[],layers:{}};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],f.fx.push({name:c.name, active:c.ab,params:this.pa[c.index]});a=0;for(b=this.H.length;a<b;a++)c=this.H[a],f.layers[c.N.toString()]=c.mc();return f};e.prototype.Wc=function(a){var b,c,f,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.j=a.a;this.width=a.w;this.height=a.h;this.he=a.persist;"undefined"!==typeof a.fv&&(this.gf=a.fv);var n=a.fx;b=0;for(c=n.length;b<c;b++)if(f=this.Pj(n[b].name))f.ab=n[b].active,this.pa[f.index]=n[b].params;this.Gc();b=a.layers;for(e in b)b.hasOwnProperty(e)&&(a=this.Wh(parseInt(e,10)))&& a.Wc(b[e])};Hb=e;m.prototype.Gc=function(){R(this.U);this.Dd=!0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.ab&&(this.U.push(c),c.Cc||(this.Dd=!1))};m.prototype.Pj=function(a){var b,c,f;b=0;for(c=this.G.length;b<c;b++)if(f=this.G[b],f.name===a)return f;return null};m.prototype.tq=function(){var a,b,c,f,e,n;b=a=0;for(c=this.Sb.length;a<c;a++){f=this.Sb[a];e=this.b.k[f[1]];n=this.b.sl(e);e=!0;if(!n||this.Na.gf){f=this.b.Wd(f,this,!0);if(!f)continue;t.push(f);f.type.global&&(e=!1,this.bg.push(f.uid))}e&& (this.Sb[b]=this.Sb[a],b++)}this.Sb.length=b;this.b.$a();!this.b.q&&this.G.length&&(this.cb=this.Sq);this.Zf=jb(this.cb);this.b.m&&kb(this,this.cb,this.b.m);this.Ec=!0};m.prototype.Hf=function(a,b){var c=Ca(this.c,a);0>c||(b&&this.Wb&&a.wb&&a.wb.right>=a.wb.left&&(a.Za(),this.Ya.update(a,a.wb,null),a.wb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(xa(this.c,c),this.eh(c)),this.Ec=!0)};m.prototype.Vf=function(a,b){a.Ic=this.c.length;this.c.push(a);b&&this.Wb&&a.wb&&a.La();this.Ec=!0};m.prototype.ct= function(a){this.c.unshift(a);this.eh(0)};m.prototype.Ks=function(a,b,c){var f=a.Tc();b=b.Tc();xa(this.c,f);f<b&&b--;c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.eh(f<b?f:b)};m.prototype.eh=function(a){-1===this.Ld?this.Ld=a:a<this.Ld&&(this.Ld=a);this.Ec=this.We=!0};m.prototype.wl=function(){if(this.We){-1===this.Ld&&(this.Ld=0);var a,b,c;if(this.Wb)for(a=this.Ld,b=this.c.length;a<b;++a)c=this.c[a],c.Ic=a,this.Ya.Hs(c.wb);else for(a=this.Ld,b=this.c.length;a<b;++a)this.c[a].Ic= a;this.We=!1;this.Ld=-1}};m.prototype.gc=function(a){return this.Pr()*(this.b.Qb||a?this.b.Wf:1)};m.prototype.Pr=function(){return(this.scale*this.Na.scale-1)*this.Md+1};m.prototype.Ua=function(){return this.qd?0:Ja(this.Na.j+this.j)};var b=[],l=[],f=[];m.prototype.Vj=function(){this.wl();this.Ya.mo(this.ba,this.ca,this.ja,this.ha,f);if(!f.length)return r();if(1===f.length){var a=r();za(a,f[0]);R(f);return a}for(var b=!0;1<f.length;){for(var a=f,c=void 0,h=void 0,e=void 0,n=void 0,q=void 0,c=0,h= a.length;c<h-1;c+=2){var e=a[c],n=a[c+1],q=r(),k=e,p=n,m=q,t=0,S=0,K=0,Y=k.length,O=p.length,G=void 0,y=void 0;for(m.length=Y+O;t<Y&&S<O;++K)G=k[t],y=p[S],G.Ic<y.Ic?(m[K]=G,++t):(m[K]=y,++S);for(;t<Y;++t,++K)m[K]=k[t];for(;S<O;++S,++K)m[K]=p[S];b||(v(e),v(n));l.push(q)}1===h%2&&(b?(e=r(),za(e,a[h-1]),l.push(e)):l.push(a[h-1]));za(a,l);R(l);b=!1}a=f[0];R(f);return a};m.prototype.ue=function(a){this.ad=this.Sh||1!==this.opacity||0!==this.cb;var b=this.b.canvas,c=a,f=!1;this.ad&&(this.b.gi||(this.b.gi= document.createElement("canvas"),b=this.b.gi,b.width=this.b.C,b.height=this.b.B,this.b.cn=b.getContext("2d"),f=!0),b=this.b.gi,c=this.b.cn,b.width!==this.b.C&&(b.width=this.b.C,f=!0),b.height!==this.b.B&&(b.height=this.b.B,f=!0),f&&this.b.Ji(c,this.b.Ba),this.Fc&&c.clearRect(0,0,this.b.C,this.b.B));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Fc||(c.fillStyle="rgb("+this.uc[0]+","+this.uc[1]+","+this.uc[2]+")",c.fillRect(0,0,this.b.C,this.b.B));c.save();this.qd=!0;var f=this.mb(0, 0,!0,!0),e=this.mb(0,0,!1,!0);this.qd=!1;this.b.Se&&(f=Math.round(f),e=Math.round(e));this.Hi(f,e,c);var n=this.gc();c.scale(n,n);c.translate(-f,-e);this.Wb?(this.Sa.left=this.Ya.pb(this.ba),this.Sa.top=this.Ya.qb(this.ca),this.Sa.right=this.Ya.pb(this.ja),this.Sa.bottom=this.Ya.qb(this.ha),this.Ec||!this.Sa.eg(this.wf)?(v(this.wd),f=this.Vj(),this.Ec=!1,this.wf.$f(this.Sa)):f=this.wd):f=this.c;for(var l,k=null,e=0,n=f.length;e<n;++e)l=f[e],l!==k&&(this.Nq(l,c),k=l);this.Wb&&(this.wd=f);c.restore(); this.ad&&(a.globalCompositeOperation=this.Zf,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};m.prototype.Nq=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Za();var c=a.bb;c.right<this.ba||c.bottom<this.ca||c.left>this.ja||c.top>this.ha||(b.globalCompositeOperation=a.Zf,a.ue(b))}};m.prototype.aj=function(){this.qd=!0;var a=this.mb(0,0,!0,!0),b=this.mb(0,0,!1,!0);this.qd=!1;this.b.Se&&(a=Math.round(a),b=Math.round(b));this.Hi(a,b,null)};m.prototype.Hi=function(a,b,c){var f=this.gc();this.ba= a;this.ca=b;this.ja=a+1/f*this.b.C;this.ha=b+1/f*this.b.B;this.ba>this.ja&&(a=this.ba,this.ba=this.ja,this.ja=a);this.ca>this.ha&&(a=this.ca,this.ca=this.ha,this.ha=a);a=this.Ua();0!==a&&(c&&(c.translate(this.b.C/2,this.b.B/2),c.rotate(-a),c.translate(this.b.C/-2,this.b.B/-2)),this.Gd.set(this.ba,this.ca,this.ja,this.ha),this.Gd.offset((this.ba+this.ja)/-2,(this.ca+this.ha)/-2),this.Ro.Co(this.Gd,a),this.Ro.em(this.Gd),this.Gd.offset((this.ba+this.ja)/2,(this.ca+this.ha)/2),this.ba=this.Gd.left,this.ca= this.Gd.top,this.ja=this.Gd.right,this.ha=this.Gd.bottom)};m.prototype.ef=function(a){if(this.ad=this.Sh){this.b.Ha||(this.b.Ha=a.$b(this.b.C,this.b.B,this.b.Ba));if(this.b.Ha.re!==this.b.C||this.b.Ha.qe!==this.b.B)a.deleteTexture(this.b.Ha),this.b.Ha=a.$b(this.b.C,this.b.B,this.b.Ba);a.nc(this.b.Ha)}this.qd=!0;var b=this.mb(0,0,!0,!0),c=this.mb(0,0,!1,!0);this.qd=!1;this.b.Se&&(b=Math.round(b),c=Math.round(c));this.Hi(b,c,null);b=this.gc();a.bd();a.scale(b,b);a.al(-this.Ua());a.translate((this.ba+ this.ja)/-2,(this.ca+this.ha)/-2);a.Hc();this.Wb?(this.Sa.left=this.Ya.pb(this.ba),this.Sa.top=this.Ya.qb(this.ca),this.Sa.right=this.Ya.pb(this.ja),this.Sa.bottom=this.Ya.qb(this.ha),this.Ec||!this.Sa.eg(this.wf)?(v(this.wd),b=this.Vj(),this.Ec=!1,this.wf.$f(this.Sa)):b=this.wd):b=this.c;for(var f,e=null,c=b.length-1;0<=c;--c)f=b[c],f!==e&&(this.Pq(b[c],a),e=f);this.Wb&&(this.wd=b);this.Fc||(this.vj=this.b.xe++,a.Ki(this.vj),a.vo(1,1,1),a.Cm(),a.kt())};m.prototype.wc=function(a){var b=0,c=0;if(this.ad= this.Sh||1!==this.opacity||0<this.U.length||0!==this.cb){this.b.Ha||(this.b.Ha=a.$b(this.b.C,this.b.B,this.b.Ba));if(this.b.Ha.re!==this.b.C||this.b.Ha.qe!==this.b.B)a.deleteTexture(this.b.Ha),this.b.Ha=a.$b(this.b.C,this.b.B,this.b.Ba);a.nc(this.b.Ha);this.Fc&&a.clear(0,0,0,0)}this.Fc||(this.b.da?(a.Ki(this.vj),a.vo(this.uc[0]/255,this.uc[1]/255,this.uc[2]/255),a.Cm(),a.Ct()):a.clear(this.uc[0]/255,this.uc[1]/255,this.uc[2]/255,1));this.qd=!0;var f=this.mb(0,0,!0,!0),b=this.mb(0,0,!1,!0);this.qd= !1;this.b.Se&&(f=Math.round(f),b=Math.round(b));this.Hi(f,b,null);f=this.gc();a.bd();a.scale(f,f);a.al(-this.Ua());a.translate((this.ba+this.ja)/-2,(this.ca+this.ha)/-2);a.Hc();this.Wb?(this.Sa.left=this.Ya.pb(this.ba),this.Sa.top=this.Ya.qb(this.ca),this.Sa.right=this.Ya.pb(this.ja),this.Sa.bottom=this.Ya.qb(this.ha),this.Ec||!this.Sa.eg(this.wf)?(v(this.wd),b=this.Vj(),this.Ec=!1,this.wf.$f(this.Sa)):b=this.wd):b=this.c;var e,n,l=null,c=0;for(e=b.length;c<e;++c)n=b[c],n!==l&&(this.Oq(b[c],a),l= n);this.Wb&&(this.wd=b);this.ad&&(b=this.U.length?this.U[0].Da:0,c=this.U.length?this.U[0].index:0,0===this.U.length||1===this.U.length&&!a.Sk(b)&&1===this.opacity?(1===this.U.length?(a.zb(b),a.Jf(this.Na.kg(),1/this.b.C,1/this.b.B,0,0,1,1,f,this.Ua(),this.ba,this.ca,(this.ba+this.ja)/2,(this.ca+this.ha)/2,this.b.ib.T,this.pa[c]),a.Ei(b)&&(this.b.aa=!0)):a.zb(0),a.nc(this.Na.kg()),a.dh(this.opacity),a.oc(this.b.Ha),a.ie(this.kb,this.fb),a.bd(),a.Hc(),f=this.b.C/2,b=this.b.B/2,a.Yg(-f,b,f,b,f,-b,-f, -b),a.oc(null)):this.Na.Yk(a,this,null,this.Na.kg()))};m.prototype.Oq=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Za();var c=a.bb;c.right<this.ba||c.bottom<this.ca||c.left>this.ja||c.top>this.ha||(b.Ki(a.xe),a.bp?this.Qq(a,b):(b.zb(0),b.ie(a.kb,a.fb),a.wc(b)))}};m.prototype.Pq=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Za();var c=a.bb;c.right<this.ba||c.bottom<this.ca||c.left>this.ja||c.top>this.ha||(a.xe=this.b.xe++,0===a.cb&&1===a.opacity&&a.Dd&&a.ef&&(b.Ki(a.xe),a.ef(b)))}}; m.prototype.Qq=function(a,b){var c=a.U[0].Da,f=a.U[0].index,e=this.gc();if(1!==a.U.length||b.Sk(c)||b.et(c)||(a.j||a.g.Ua())&&b.Wg(c)||1!==a.opacity||a.type.qa.Cn)this.Na.Yk(b,this,a,this.ad?this.b.Ha:this.Na.kg()),b.bd(),b.scale(e,e),b.al(-this.Ua()),b.translate((this.ba+this.ja)/-2,(this.ca+this.ha)/-2),b.Hc();else{b.zb(c);b.ie(a.kb,a.fb);b.Ei(c)&&(this.b.aa=!0);var n=0,l=0,k=0,p=0;b.Wg(c)&&(p=a.bb,n=this.jc(p.left,p.top,!0),l=this.jc(p.left,p.top,!1),k=this.jc(p.right,p.bottom,!0),p=this.jc(p.right, p.bottom,!1),n=n/windowWidth,l=1-l/windowHeight,k=k/windowWidth,p=1-p/windowHeight);var q;a.Ra&&a.Ra.Qa?(q=a.Ra.Qa,c=1/q.width,q=1/q.height):(c=1/a.width,q=1/a.height);b.Jf(this.ad?this.b.Ha:this.Na.kg(),c,q,n,l,k,p,e,this.Ua(),this.ba,this.ca,(this.ba+this.ja)/2,(this.ca+this.ha)/2,this.b.ib.T,a.pa[f]);a.wc(b)}};m.prototype.mb=function(a,b,c,f){var e=this.b.devicePixelRatio;this.b.mf&&(a*=e,b*=e);var e=this.b.$n,n=this.b.ao,e=(this.Na.scrollX-e)*this.zd+e,n=(this.Na.scrollY-n)*this.Ad+n,l=e,k=n, p=1/this.gc(!f);f?(l-=this.b.C*p/2,k-=this.b.B*p/2):(l-=this.b.width*p/2,k-=this.b.height*p/2);l+=a*p;k+=b*p;b=this.Ua();0!==b&&(l-=e,k-=n,a=Math.cos(b),b=Math.sin(b),f=l*a-k*b,k=k*a+l*b,l=f+e,k+=n);return c?l:k};m.prototype.jc=function(a,b,c){var f=this.b.$n,e=this.b.ao,f=(this.Na.scrollX-f)*this.zd+f,n=(this.Na.scrollY-e)*this.Ad+e,e=f,l=n,k=this.Ua();if(0!==k){a-=f;b-=n;var p=Math.cos(-k),k=Math.sin(-k),q=a*p-b*k;b=b*p+a*k;a=q+f;b+=n}f=1/this.gc(!1);e-=this.b.C*f/2;l-=this.b.B*f/2;e=(a-e)/f;return c? e:(b-l)/f};m.prototype.mc=function(){var a,b,c,f={s:this.scale,a:this.j,vl:this.ba,vt:this.ca,vr:this.ja,vb:this.ha,v:this.visible,bc:this.uc,t:this.Fc,px:this.zd,py:this.Ad,o:this.opacity,zr:this.Md,fx:[],cg:this.bg,instances:[]};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],f.fx.push({name:c.name,active:c.ab,params:this.pa[c.index]});return f};m.prototype.Wc=function(a){var b,c,f;this.scale=a.s;this.j=a.a;this.ba=a.vl;this.ca=a.vt;this.ja=a.vr;this.ha=a.vb;this.visible=a.v;this.uc=a.bc;this.Fc=a.t; this.zd=a.px;this.Ad=a.py;this.opacity=a.o;this.Md=a.zr;this.bg=a.cg||[];za(this.Sb,this.Ko);var e=new ba;b=0;for(f=this.bg.length;b<f;++b)e.add(this.bg[b]);c=b=0;for(f=this.Sb.length;b<f;++b)e.contains(this.Sb[b][2])||(this.Sb[c]=this.Sb[b],++c);ya(this.Sb,c);c=a.fx;b=0;for(f=c.length;b<f;b++)if(a=this.Pj(c[b].name))a.ab=c[b].active,this.pa[a.index]=c[b].params;this.Gc();this.c.sort(q);this.We=!0};Vb=m})(); (function(){function e(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function q(a,b){return a.index-b.index}function m(a){var b,c,d,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(q);a.length>=z.length&&(z.length=a.length+1);z[a.length]||(z[a.length]=[]);f=z[a.length];b=0;for(c=f.length;b<c;b++)if(d=f[b],e(a,d))return d;f.push(a);return a} function r(a,b){this.b=a;this.To={};this.wm={};this.$j=!1;this.Om=new ba;this.Aj=[];this.ij=[];this.name=b[0];var c=b[1];this.Yd=[];var d,f;d=0;for(f=c.length;d<f;d++)this.Qm(c[d],null,this.Yd)}function v(a){this.type=a;this.c=[];this.L=[];this.ga=!0}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.wa=[];this.je=[];this.Nm=this.Wi=this.ol=this.fk=this.group=this.Jo=!1;this.eb=[];this.sc=[];this.pc=[];this.mg="";this.jf=this.fk=this.group=!1;this.Bh=null;c[1]&&(this.mg=c[1][1].toLowerCase(), this.group=!0,this.fk=!!c[1][0],this.Bh=[],this.jf=this.fk,this.b.$e.push(this),this.b.ng[this.mg]=this);this.Bc=c[2];this.N=c[4];this.group||(this.b.dm[this.N.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var f=new Wb(this,d[a]);f.index=a;this.eb.push(f);this.Ql(f.type)}d=c[6];a=0;for(b=d.length;a<b;a++)f=new Xb(this,d[a]),f.index=a,this.sc.push(f);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Qm(c[a],this,this.pc);this.ei=!1;this.eb.length&&(this.ei=null==this.eb[0].type&& this.eb[0].Ta==W.prototype.e.Cl)}function c(a,b){var c,d,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Fb))for(c=0,d=a.Cb.length;c<d;c++)f=a.Cb[c],a!==f&&-1===b.indexOf(f)&&b.push(f)}function b(a,b){this.Pb=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.ra=[];this.ka={};this.index=-1;this.Tf=!1;this.Ta=this.b.Nd(b[1]);this.trigger=0<b[3];this.vm=2===b[3];this.Xc=b[4];this.ik=b[5];this.Ds=b[6];this.N=b[7];this.b.Ud[this.N.toString()]=this;-1===b[0]?(this.type=null,this.Ka=this.dl,this.pe=null,this.vc=-1): (this.type=this.b.k[b[0]],this.Ka=this.Ds?this.qt:this.cl,b[2]?(this.pe=this.type.Vh(b[2]),this.vc=this.type.Nj(b[2])):(this.pe=null,this.vc=-1),this.Pb.parent&&this.Pb.parent.Li());this.vm&&(this.Ka=this.tt);if(10===b.length){var c,d,f=b[9];c=0;for(d=f.length;c<d;c++){var h=new Yb(this,f[c]);this.K.push(h)}this.ra.length=f.length}}function l(a,b){this.Pb=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.ra=[];this.ka={};this.index=-1;this.Tf=!1;this.Ta=this.b.Nd(b[1]);-1===b[0]?(this.type=null,this.Ka= this.dl,this.pe=null,this.vc=-1):(this.type=this.b.k[b[0]],this.Ka=this.cl,b[2]?(this.pe=this.type.Vh(b[2]),this.vc=this.type.Nj(b[2])):(this.pe=null,this.vc=-1));this.N=b[3];this.b.Pd[this.N.toString()]=this;if(6===b.length){var c,d,f=b[5];c=0;for(d=f.length;c<d;c++){var h=new Yb(this,f[c]);this.K.push(h)}this.ra.length=f.length}}function f(){x++;n.length===x&&n.push(new Zb);return n[x]}function a(a,b){this.lc=a;this.Pb=a.Pb;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Rc=null;this.Ed=0;this.get= null;this.km=0;this.Na=null;this.key=0;this.object=null;this.index=0;this.oh=this.Ve=this.oh=this.Ve=this.Am=this.Ae=this.ph=null;this.rc=!1;var c,d,f;switch(b[0]){case 0:case 7:this.Rc=new $b(this,b[1]);this.Ed=0;this.get=this.Yr;break;case 1:this.Rc=new $b(this,b[1]);this.Ed=0;this.get=this.Zr;break;case 5:this.Rc=new $b(this,b[1]);this.Ed=0;this.get=this.cs;break;case 3:case 8:this.km=b[1];this.get=this.Wr;break;case 6:this.Na=this.b.vk[b[1]];this.get=this.ds;break;case 9:this.key=b[1];this.get= this.bs;break;case 4:this.object=this.b.k[b[1]];this.get=this.es;this.Pb.Ql(this.object);this.lc instanceof Xb?this.Pb.Li():this.Pb.parent&&this.Pb.parent.Li();break;case 10:this.index=b[1];a.type&&a.type.R?(this.get=this.$r,this.rc=!0):this.get=this.as;break;case 11:this.ph=b[1];this.Ae=null;this.get=this.Xr;break;case 2:case 12:this.Am=b[1];this.get=this.Vr;break;case 13:for(this.get=this.gs,this.Ve=[],this.oh=[],c=1,d=b.length;c<d;c++)f=new Yb(this.lc,b[c]),this.Ve.push(f),this.oh.push(0)}}function d(a, b,c){this.sheet=a;this.parent=b;this.b=a.b;this.wa=[];this.name=c[1];this.dp=c[2];this.ek=c[3];this.Bg=!!c[4];this.di=!!c[5];this.N=c[6];this.b.Rf[this.N.toString()]=this;this.data=this.ek;this.parent?(this.Qe=this.Bg||this.di?-1:this.b.Ft++,this.b.fq.push(this)):(this.Qe=-1,this.b.dq.push(this))}function g(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.wa=[];this.qg=null;this.os=c[1];this.ab=!0}function h(){this.Mo=[];this.reset(null)}var z=[];r.prototype.toString=function(){return this.name}; r.prototype.Qm=function(a,b,c){switch(a[0]){case 0:a=new ac(this,b,a);if(a.Bc)for(c.push(a),c=0,b=a.eb.length;c<b;c++)a.eb[c].trigger&&this.Rm(a,c);else a.Xm()?this.Rm(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)}};r.prototype.va=function(){var a,b;a=0;for(b=this.Yd.length;a<b;a++)this.Yd[a].va(a<b-1&&this.Yd[a+1].ei)};r.prototype.tl=function(){R(this.Aj);R(this.ij);this.Pl(this);R(this.ij)};r.prototype.Pl=function(a){var b,c,d,f,h=a.Aj,g=a.ij, e=this.Om.le();b=0;for(c=e.length;b<c;++b)d=e[b],f=d.qg,!d.ab||a===f||-1<g.indexOf(f)||(g.push(f),f.Pl(a),h.push(f))};r.prototype.Ka=function(a){this.b.uv||(this.$j=!0,a||(this.b.nk=!0));var b,c;b=0;for(c=this.Yd.length;b<c;b++){var d=this.Yd[b];d.Ka();this.b.uj(d.wa);this.b.$d&&this.b.$a()}a||(this.b.nk=!1)};r.prototype.Rm=function(a,b){a.Bc||this.b.Yi.push(a);var c,d,f=a.eb[b],h;f.type?h=f.type.name:h="system";var g=(c=f.vm)?this.wm:this.To;g[h]||(g[h]=[]);h=g[h];g=f.Ta;if(c){if(f.K.length&&(f= f.K[0],1===f.type&&2===f.Rc.type)){f=f.Rc.value.toLowerCase();c=0;for(d=h.length;c<d;c++)if(h[c].method==g){c=h[c].gg;c[f]?c[f].push([a,b]):c[f]=[[a,b]];return}c={};c[f]=[[a,b]];h.push({method:g,gg:c})}}else{c=0;for(d=h.length;c<d;c++)if(h[c].method==g){h[c].gg.push([a,b]);return}nc&&g===nc.prototype.e.Ze?h.unshift({method:g,gg:[[a,b]]}):h.push({method:g,gg:[[a,b]]})}};Ib=r;v.prototype.Zj=function(){return this.ga?this.type.c.length:this.c.length};v.prototype.xc=function(){return this.ga?this.type.c: this.c};v.prototype.Vg=function(a){a&&(a.b.sb().ac.Bc?(this.ga&&(R(this.c),za(this.L,a.type.c),this.ga=!1),a=this.L.indexOf(a),-1!==a&&(this.c.push(this.L[a]),this.L.splice(a,1))):(this.ga=!1,R(this.c),this.c[0]=a))};qb=v;window._c2hh_="595E09B44298EB3B8CBCAEB682CEB86C9AE43304";t.prototype.va=function(a){var b,c=this.parent;if(this.group)for(this.Wi=!0;c;){if(!c.group){this.Wi=!1;break}c=c.parent}this.ol=!this.Xm()&&(!this.parent||this.parent.group&&this.parent.Wi);this.Nm=!!a;this.je=this.wa.slice(0); for(c=this.parent;c;){a=0;for(b=c.wa.length;a<b;a++)this.cq(c.wa[a]);c=c.parent}this.wa=m(this.wa);this.je=m(this.je);a=0;for(b=this.eb.length;a<b;a++)this.eb[a].va();a=0;for(b=this.sc.length;a<b;a++)this.sc[a].va();a=0;for(b=this.pc.length;a<b;a++)this.pc[a].va(a<b-1&&this.pc[a+1].ei)};t.prototype.yt=function(a){if(this.jf!==!!a){this.jf=!!a;var b;a=0;for(b=this.Bh.length;a<b;++a)this.Bh[a].Zo();0<b&&this.b.Y.ze&&this.b.Y.ze.tl()}};t.prototype.Ql=function(a){c(a,this.wa)};t.prototype.cq=function(a){c(a, this.je)};t.prototype.Li=function(){this.Jo=!0;this.parent&&this.parent.Li()};t.prototype.Xm=function(){return this.eb.length?this.eb[0].trigger:!1};t.prototype.Ka=function(){var a,b,c=!1,f=this.b,d=this.b.sb();d.ac=this;var h=this.eb;this.ei||(d.Cj=!1);if(this.Bc){0===h.length&&(c=!0);d.Bb=0;for(a=h.length;d.Bb<a;d.Bb++)b=h[d.Bb],b.trigger||(b=b.Ka())&&(c=!0);(d.Me=c)&&this.bl()}else{d.Bb=0;for(a=h.length;d.Bb<a;d.Bb++)if(b=h[d.Bb].Ka(),!b){d.Me=!1;this.ol&&f.$d&&f.$a();return}d.Me=!0;this.bl()}this.Uq(d)}; t.prototype.Uq=function(a){a.Me&&this.Nm&&(a.Cj=!0);this.ol&&this.b.$d&&this.b.$a()};t.prototype.ot=function(a){this.b.sb().ac=this;this.eb[a].Ka()&&(this.bl(),this.b.sb().Me=!0)};t.prototype.bl=function(){var a=this.b.sb(),b;a.Xb=0;for(b=this.sc.length;a.Xb<b;a.Xb++)if(this.sc[a.Xb].Ka())return;this.qo()};t.prototype.mt=function(){var a=this.b.sb(),b;for(b=this.sc.length;a.Xb<b;a.Xb++)if(this.sc[a.Xb].Ka())return;this.qo()};t.prototype.qo=function(){if(this.pc.length){var a,b,c,d,f=this.pc.length- 1;this.b.Uk(this);if(this.Jo)for(a=0,b=this.pc.length;a<b;a++)c=this.pc[a],(d=!this.Wi||!this.group&&a<f)&&this.b.Tk(c.wa),c.Ka(),d?this.b.Ff(c.wa):this.b.uj(c.wa);else for(a=0,b=this.pc.length;a<b;a++)this.pc[a].Ka();this.b.fo()}};t.prototype.pt=function(){var a=this.b.sb();a.ac=this;var b=!1,c;a.Bb=0;for(c=this.eb.length;a.Bb<c;a.Bb++)if(this.eb[a.Bb].Ka())b=!0;else if(!this.Bc)return!1;return this.Bc?b:!0};t.prototype.us=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.eb[b].type=== a.type)return!1;return!0};ac=t;b.prototype.va=function(){var a,b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.va(),c.rc&&(this.Tf=!0)};b.prototype.tt=function(){return!0};b.prototype.dl=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.ra[a]=this.K[a].get();return Xa(this.Ta.apply(this.b.dd,this.ra),this.ik)};b.prototype.qt=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.ra[a]=this.K[a].get();a=this.Ta.apply(this.pe?this.pe:this.type,this.ra);this.type.Rd();return a};b.prototype.cl= function(){var a,b,c,d,f,h,g,e,n=this.type,l=n.X(),q=this.Pb.Bc&&!this.trigger;b=0;var m=n.Fb,r=n.R,x=n.sd,z=this.vc,t=-1<z,v=this.Tf,I=this.K,F=this.ra,L=this.ik,M=this.Ta,D;if(v)for(b=0,f=I.length;b<f;++b)h=I[b],h.rc||(F[b]=h.get(0));else for(b=0,f=I.length;b<f;++b)F[b]=I[b].get(0);if(l.ga){R(l.c);R(l.L);D=n.c;a=0;for(d=D.length;a<d;++a){e=D[a];if(v)for(b=0,f=I.length;b<f;++b)h=I[b],h.rc&&(F[b]=h.get(a));t?(b=0,r&&(b=e.type.ff[x]),b=M.apply(e.I[z+b],F)):b=M.apply(e,F);(g=Xa(b,L))?l.c.push(e):q&& l.L.push(e)}n.finish&&n.finish(!0);l.ga=!1;n.Rd();return l.Zj()}c=0;D=(g=q&&!this.Pb.us(this))?l.L:l.c;var E=!1;a=0;for(d=D.length;a<d;++a){e=D[a];if(v)for(b=0,f=I.length;b<f;++b)h=I[b],h.rc&&(F[b]=h.get(a));t?(b=0,r&&(b=e.type.ff[x]),b=M.apply(e.I[z+b],F)):b=M.apply(e,F);if(Xa(b,L))if(E=!0,g){if(l.c.push(e),m)for(b=0,f=e.siblings.length;b<f;b++)h=e.siblings[b],h.type.X().c.push(h)}else{D[c]=e;if(m)for(b=0,f=e.siblings.length;b<f;b++)h=e.siblings[b],h.type.X().c[c]=h;c++}else if(g){D[c]=e;if(m)for(b= 0,f=e.siblings.length;b<f;b++)h=e.siblings[b],h.type.X().L[c]=h;c++}else if(q&&(l.L.push(e),m))for(b=0,f=e.siblings.length;b<f;b++)h=e.siblings[b],h.type.X().L.push(h)}ya(D,c);if(m)for(r=n.Cb,a=0,d=r.length;a<d;a++)e=r[a].X(),g?ya(e.L,c):ya(e.c,c);c=E;if(g&&!E)for(a=0,d=l.c.length;a<d;a++){e=l.c[a];if(v)for(b=0,f=I.length;b<f;b++)h=I[b],h.rc&&(F[b]=h.get(a));b=t?M.apply(e.I[z],F):M.apply(e,F);if(Xa(b,L)){E=!0;break}}n.finish&&n.finish(c||q);return q?E:l.Zj()};Wb=b;l.prototype.va=function(){var a, b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.va(),c.rc&&(this.Tf=!0)};l.prototype.dl=function(){var a=this.b,b,c,f=this.K,d=this.ra;b=0;for(c=f.length;b<c;++b)d[b]=f[b].get();return this.Ta.apply(a.dd,d)};l.prototype.cl=function(){var a=this.type,b=this.vc,c=a.sd,f=this.Tf,d=this.K,h=this.ra,g=this.Ta,e=a.X().xc(),a=a.R,n=-1<b,l,q,m,r,x,z;if(f)for(q=0,r=d.length;q<r;++q)x=d[q],x.rc||(h[q]=x.get(0));else for(q=0,r=d.length;q<r;++q)h[q]=d[q].get(0);l=0;for(m=e.length;l<m;++l){z=e[l];if(f)for(q= 0,r=d.length;q<r;++q)x=d[q],x.rc&&(h[q]=x.get(l));n?(q=0,a&&(q=z.type.ff[c]),g.apply(z.I[b+q],h)):g.apply(z,h)}return!1};Xb=l;var n=[],x=-1;a.prototype.va=function(){var a,b;if(11===this.type)this.Ae=this.b.Hm(this.ph,this.Pb.parent);else if(13===this.type)for(a=0,b=this.Ve.length;a<b;a++)this.Ve[a].va();this.Rc&&this.Rc.va()};a.prototype.Js=function(a){this.rc||!a||a.qa.Oi||(this.rc=!0)};a.prototype.Ao=function(){this.rc=!0};a.prototype.Yr=function(a){this.Ed=a||0;a=f();this.Rc.get(a);x--;return a.data}; a.prototype.Zr=function(a){this.Ed=a||0;a=f();this.Rc.get(a);x--;return Q(a.data)?a.data:""};a.prototype.es=function(){return this.object};a.prototype.Wr=function(){return this.km};a.prototype.cs=function(a){this.Ed=a||0;a=f();this.Rc.get(a);x--;return a.Ma()?this.b.jg(a.data):this.b.Tj(a.data)};a.prototype.ds=function(){return this.Na};a.prototype.bs=function(){return this.key};a.prototype.as=function(){return this.index};a.prototype.$r=function(a){a=a||0;var b=this.lc.type,c=null,c=b.X(),d=c.xc(); if(d.length)c=d[a%d.length].type;else if(c.L.length)c=c.L[a%c.L.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.Oh[b.sd]};a.prototype.Xr=function(){return this.Ae};a.prototype.Vr=function(){return this.Am};a.prototype.gs=function(){var a,b;a=0;for(b=this.Ve.length;a<b;a++)this.oh[a]=this.Ve[a].get();return this.oh};Yb=a;d.prototype.va=function(){this.wa=m(this.wa)};d.prototype.Mi=function(a){var b=this.b.Gm();this.parent&&!this.Bg&&b?(this.Qe>=b.length&& (b.length=this.Qe+1),b[this.Qe]=a):this.data=a};d.prototype.Km=function(){var a=this.b.Gm();return!this.parent||this.Bg||!a||this.di?this.data:this.Qe>=a.length||"undefined"===typeof a[this.Qe]?this.ek:a[this.Qe]};d.prototype.Ka=function(){!this.parent||this.Bg||this.di||this.Mi(this.ek)};Sb=d;g.prototype.toString=function(){return"include:"+this.qg.toString()};g.prototype.va=function(){this.qg=this.b.Ej[this.os];this.sheet.Om.add(this);this.wa=m(this.wa);for(var a=this.parent;a;)a.group&&a.Bh.push(this), a=a.parent;this.Zo()};g.prototype.Ka=function(){this.parent&&this.b.Xg(this.b.k);this.qg.$j||this.qg.Ka(!0);this.parent&&this.b.Ff(this.b.k)};g.prototype.Zo=function(){for(var a=this.parent;a;){if(a.group&&!a.jf){this.ab=!1;return}a=a.parent}this.ab=!0};bc=g;h.prototype.reset=function(a){this.ac=a;this.Xb=this.Bb=0;R(this.Mo);this.Cj=this.Me=!1};Rb=h})(); (function(){function e(c,b){this.lc=c;this.b=c.b;this.type=b[0];this.get=[this.mr,this.ir,this.wr,this.Ar,this.Xq,this.xr,this.qr,this.fr,this.pr,this.ur,this.Yq,this.tr,this.gr,this.rr,this.nr,this.or,this.jr,this.kr,this.er,this.yr,this.sr,this.lr,this.dr,this.hr][this.type];var e=null;this.xd=this.K=this.ra=this.Ta=this.Vi=this.second=this.first=this.value=null;this.vc=-1;this.yc=null;this.cp=-1;this.Ae=this.ph=null;this.If=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first= new $b(c,b[1]);break;case 18:this.first=new $b(c,b[1]);this.second=new $b(c,b[2]);this.Vi=new $b(c,b[3]);break;case 19:this.Ta=this.b.Nd(b[1]);this.Ta!==W.prototype.fc.random&&this.Ta!==W.prototype.fc.oq||this.lc.Ao();this.ra=[];this.K=[];3===b.length?(e=b[2],this.ra.length=e.length+1):this.ra.length=1;break;case 20:this.xd=this.b.k[b[1]];this.vc=-1;this.Ta=this.b.Nd(b[2]);this.If=b[3];oc&&this.Ta===oc.prototype.fc.ip&&this.lc.Ao();b[4]?this.yc=new $b(c,b[4]):this.yc=null;this.ra=[];this.K=[];6=== b.length?(e=b[5],this.ra.length=e.length+1):this.ra.length=1;break;case 21:this.xd=this.b.k[b[1]];this.If=b[2];b[3]?this.yc=new $b(c,b[3]):this.yc=null;this.cp=b[4];break;case 22:this.xd=this.b.k[b[1]];this.xd.Vh(b[2]);this.vc=this.xd.Nj(b[2]);this.Ta=this.b.Nd(b[3]);this.If=b[4];b[5]?this.yc=new $b(c,b[5]):this.yc=null;this.ra=[];this.K=[];7===b.length?(e=b[6],this.ra.length=e.length+1):this.ra.length=1;break;case 23:this.ph=b[1],this.Ae=null}this.lc.Js(this.xd);4<=this.type&&17>=this.type&&(this.first= new $b(c,b[1]),this.second=new $b(c,b[2]));if(e){var f,a;f=0;for(a=e.length;f<a;f++)this.K.push(new $b(c,e[f]))}}function q(){++t;v.length===t&&v.push(new Zb);return v[t]}function m(c,b,e){var f,a;f=0;for(a=c.length;f<a;++f)c[f].get(e),b[f+1]=e.data}function r(c,b){this.type=c||cc.Ye;this.data=b||0;this.Re=null;this.type==cc.Ye&&(this.data=Math.floor(this.data))}e.prototype.va=function(){23===this.type&&(this.Ae=this.lc.b.Hm(this.ph,this.lc.Pb.parent));this.first&&this.first.va();this.second&&this.second.va(); this.Vi&&this.Vi.va();this.yc&&this.yc.va();if(this.K){var c,b;c=0;for(b=this.K.length;c<b;c++)this.K[c].va()}};var v=[],t=-1;e.prototype.yr=function(c){var b=this.K,e=this.ra;e[0]=c;c=q();m(b,e,c);--t;this.Ta.apply(this.b.dd,e)};e.prototype.sr=function(c){var b=this.xd,e=this.ra,f=this.K,a=this.yc,d=this.Ta,g=this.lc.Ed,h=b.X(),r=h.xc();if(!r.length)if(h.L.length)r=h.L;else{this.If?c.Lb(""):c.ea(0);return}e[0]=c;c.Re=b;c=q();m(f,e,c);a&&(a.get(c),c.Ma()&&(g=c.data,r=b.c));--t;b=r.length;if(g>=b|| g<=-b)g%=b;0>g&&(g+=b);d.apply(r[g],e)};e.prototype.dr=function(c){var b=this.xd,e=this.ra,f=this.K,a=this.yc,d=this.vc,g=this.Ta,h=this.lc.Ed,r=b.X(),n=r.xc();if(!n.length)if(r.L.length)n=r.L;else{this.If?c.Lb(""):c.ea(0);return}e[0]=c;c.Re=b;c=q();m(f,e,c);a&&(a.get(c),c.Ma()&&(h=c.data,n=b.c));--t;f=n.length;if(h>=f||h<=-f)h%=f;0>h&&(h+=f);h=n[h];n=0;b.R&&(n=h.type.ff[b.sd]);g.apply(h.I[d+n],e)};e.prototype.lr=function(c){var b=this.yc,e=this.xd,f=this.cp,a=this.lc.Ed,d=e.X(),g=d.xc();if(!g.length)if(d.L.length)g= d.L;else{this.If?c.Lb(""):c.ea(0);return}if(b){d=q();b.get(d);if(d.Ma()){a=d.data;g=e.c;0!==g.length&&(a%=g.length,0>a&&(a+=g.length));a=e.Sj(a);e=a.Ga[f];Q(e)?c.Lb(e):c.A(e);--t;return}--t}b=g.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=g[a];g=0;e.R&&(g=a.type.Oh[e.sd]);e=a.Ga[f+g];Q(e)?c.Lb(e):c.A(e)};e.prototype.mr=function(c){c.type=cc.Ye;c.data=this.value};e.prototype.ir=function(c){c.type=cc.Xe;c.data=this.value};e.prototype.wr=function(c){c.type=cc.String;c.data=this.value};e.prototype.Ar=function(c){this.first.get(c); c.Ma()&&(c.data=-c.data)};e.prototype.Xq=function(c){this.first.get(c);var b=q();this.second.get(b);c.Ma()&&b.Ma()&&(c.data+=b.data,b.pf()&&c.Af());--t};e.prototype.xr=function(c){this.first.get(c);var b=q();this.second.get(b);c.Ma()&&b.Ma()&&(c.data-=b.data,b.pf()&&c.Af());--t};e.prototype.qr=function(c){this.first.get(c);var b=q();this.second.get(b);c.Ma()&&b.Ma()&&(c.data*=b.data,b.pf()&&c.Af());--t};e.prototype.fr=function(c){this.first.get(c);var b=q();this.second.get(b);c.Ma()&&b.Ma()&&(c.data/= b.data,c.Af());--t};e.prototype.pr=function(c){this.first.get(c);var b=q();this.second.get(b);c.Ma()&&b.Ma()&&(c.data%=b.data,b.pf()&&c.Af());--t};e.prototype.ur=function(c){this.first.get(c);var b=q();this.second.get(b);c.Ma()&&b.Ma()&&(c.data=Math.pow(c.data,b.data),b.pf()&&c.Af());--t};e.prototype.Yq=function(c){this.first.get(c);var b=q();this.second.get(b);b.sf()||c.sf()?this.$q(c,b):this.Zq(c,b);--t};e.prototype.$q=function(c,b){c.sf()&&b.sf()?this.cr(c,b):this.br(c,b)};e.prototype.cr=function(c, b){c.data+=b.data};e.prototype.br=function(c,b){c.sf()?c.data+=(Math.round(1E10*b.data)/1E10).toString():c.Lb(c.data.toString()+b.data)};e.prototype.Zq=function(c,b){c.ea(c.data&&b.data?1:0)};e.prototype.tr=function(c){this.first.get(c);var b=q();this.second.get(b);c.Ma()&&b.Ma()&&(c.data||b.data?c.ea(1):c.ea(0));--t};e.prototype.er=function(c){this.first.get(c);c.data?this.second.get(c):this.Vi.get(c)};e.prototype.gr=function(c){this.first.get(c);var b=q();this.second.get(b);c.ea(c.data===b.data? 1:0);--t};e.prototype.rr=function(c){this.first.get(c);var b=q();this.second.get(b);c.ea(c.data!==b.data?1:0);--t};e.prototype.nr=function(c){this.first.get(c);var b=q();this.second.get(b);c.ea(c.data<b.data?1:0);--t};e.prototype.or=function(c){this.first.get(c);var b=q();this.second.get(b);c.ea(c.data<=b.data?1:0);--t};e.prototype.jr=function(c){this.first.get(c);var b=q();this.second.get(b);c.ea(c.data>b.data?1:0);--t};e.prototype.kr=function(c){this.first.get(c);var b=q();this.second.get(b);c.ea(c.data>= b.data?1:0);--t};e.prototype.hr=function(c){var b=this.Ae.Km();ga(b)?c.A(b):c.Lb(b)};$b=e;r.prototype.pf=function(){return this.type===cc.Xe};r.prototype.Ma=function(){return this.type===cc.Ye||this.type===cc.Xe};r.prototype.sf=function(){return this.type===cc.String};r.prototype.Af=function(){this.pf()||(this.sf()&&(this.data=parseFloat(this.data)),this.type=cc.Xe)};r.prototype.ea=function(c){this.type=cc.Ye;this.data=Math.floor(c)};r.prototype.A=function(c){this.type=cc.Xe;this.data=c};r.prototype.Lb= function(c){this.type=cc.String;this.data=c};r.prototype.Bo=function(c){ga(c)?(this.type=cc.Xe,this.data=c):Q(c)?(this.type=cc.String,this.data=c.toString()):(this.type=cc.Ye,this.data=0)};Zb=r;cc={Ye:0,Xe:1,String:2}})();function W(e){this.b=e;this.Nb=[]} W.prototype.mc=function(){var e={},q,m,r,v,t,c,b,l;e.waits=[];var f=e.waits,a;q=0;for(m=this.Nb.length;q<m;q++){c=this.Nb[q];a={t:c.time,st:c.Et,s:c.Go,ev:c.fg.N,sm:[],sols:{}};c.fg.sc[c.Xb]&&(a.act=c.fg.sc[c.Xb].N);r=0;for(v=c.wa.length;r<v;r++)a.sm.push(c.wa[r].N);for(t in c.Mb)if(c.Mb.hasOwnProperty(t)){b=this.b.k[parseInt(t,10)];l={sa:c.Mb[t].ro,insts:[]};r=0;for(v=c.Mb[t].Ie.length;r<v;r++)l.insts.push(c.Mb[t].Ie[r].uid);a.sols[b.N.toString()]=l}f.push(a)}return e}; W.prototype.Wc=function(e){e=e.waits;var q,m,r,v,t,c,b,l,f,a,d;R(this.Nb);q=0;for(m=e.length;q<m;q++)if(c=e[q],l=this.b.dm[c.ev.toString()]){f=-1;r=0;for(v=l.sc.length;r<v;r++)if(l.sc[r].N===c.act){f=r;break}if(-1!==f){b={Mb:{},wa:[],pm:!1};b.time=c.t;b.Et=c.st||"";b.Go=!!c.s;b.fg=l;b.Xb=f;r=0;for(v=c.sm.length;r<v;r++)(l=this.b.Yh(c.sm[r]))&&b.wa.push(l);for(t in c.sols)if(c.sols.hasOwnProperty(t)&&(l=this.b.Yh(parseInt(t,10)))){f=c.sols[t];a={ro:f.sa,Ie:[]};r=0;for(v=f.insts.length;r<v;r++)(d=this.b.Xh(f.insts[r]))&& a.Ie.push(d);b.Mb[l.index.toString()]=a}this.Nb.push(b)}}}; (function(){function e(){}function q(){}function m(){}var r=W.prototype;e.prototype.Dl=function(){return!0};e.prototype.Hp=function(){return!0};e.prototype.lp=function(c,b,e){return dc(c.Km(),b,e)};e.prototype.sp=function(c){return(c=this.b.ng[c.toLowerCase()])&&c.jf};e.prototype.tp=function(){return this.b.Je};e.prototype.Cl=function(){var c=this.b.sb();return c.Cj?!1:!c.Me};e.prototype.El=function(){return!0};e.prototype.Bp=function(){return!0};e.prototype.fj=function(){return!0};e.prototype.Il= function(){return!0};e.prototype.Ip=function(){return!0};e.prototype.ej=function(){return!0};e.prototype.gp=function(c,b,e){return Na(V(c),V(e))<=V(b)};e.prototype.rp=function(c,b){return Ua(V(c),V(b))};e.prototype.qp=function(c,b,e){c=La(c);b=La(b);e=La(e);return Ua(e,b)?Ua(c,b)&&!Ua(c,e):!(!Ua(c,b)&&Ua(c,e))};r.e=new e;q.prototype.op=function(c){this.b.Cg||this.b.Xf||(this.b.Xf=c)};q.prototype.mp=function(c,b,e,f){if(b&&c&&(b=this.b.lm(c,b,e,f))){this.b.zc++;var a;this.b.trigger(Object.getPrototypeOf(c.qa).e.th, b);if(b.Fb)for(e=0,f=b.siblings.length;e<f;e++)a=b.siblings[e],this.b.trigger(Object.getPrototypeOf(a.type.qa).e.th,a);this.b.zc--;c=c.X();c.ga=!1;R(c.c);c.c[0]=b;if(b.Fb)for(e=0,f=b.siblings.length;e<f;e++)a=b.siblings[e],c=a.type.X(),c.ga=!1,R(c.c),c.c[0]=a}};q.prototype.Tp=function(c,b){0===c.dp?ga(b)?c.Mi(b):c.Mi(parseFloat(b)):1===c.dp&&c.Mi(b.toString())};var v=[],t=[];r.xa=new q;m.prototype["int"]=function(c,b){Q(b)?(c.ea(parseInt(b,10)),isNaN(c.data)&&(c.data=0)):c.ea(b)};m.prototype["float"]= function(c,b){Q(b)?(c.A(parseFloat(b)),isNaN(c.data)&&(c.data=0)):c.A(b)};m.prototype.random=function(c,b,e){void 0===e?c.A(Math.random()*b):c.A(Math.random()*(e-b)+b)};m.prototype.sqrt=function(c,b){c.A(Math.sqrt(b))};m.prototype.abs=function(c,b){c.A(Math.abs(b))};m.prototype.round=function(c,b){c.ea(Math.round(b))};m.prototype.floor=function(c,b){c.ea(Math.floor(b))};m.prototype.ceil=function(c,b){c.ea(Math.ceil(b))};m.prototype.sin=function(c,b){c.A(Math.sin(V(b)))};m.prototype.cos=function(c, b){c.A(Math.cos(V(b)))};m.prototype.tan=function(c,b){c.A(Math.tan(V(b)))};m.prototype.asin=function(c,b){c.A(Fa(Math.asin(b)))};m.prototype.acos=function(c,b){c.A(Fa(Math.acos(b)))};m.prototype.atan=function(c,b){c.A(Fa(Math.atan(b)))};m.prototype.exp=function(c,b){c.A(Math.exp(b))};m.prototype.log10=function(c,b){c.A(Math.log(b)/Math.LN10)};m.prototype.max=function(c){var b=arguments[1];"number"!==typeof b&&(b=0);var e,f,a;e=2;for(f=arguments.length;e<f;e++)a=arguments[e],"number"===typeof a&&b< a&&(b=a);c.A(b)};m.prototype.min=function(c){var b=arguments[1];"number"!==typeof b&&(b=0);var e,f,a;e=2;for(f=arguments.length;e<f;e++)a=arguments[e],"number"===typeof a&&b>a&&(b=a);c.A(b)};m.prototype.ve=function(c){c.A(this.b.ve)};m.prototype.Nf=function(c){c.A(this.b.Nf)};m.prototype.time=function(c){c.A(this.b.ib.T)};m.prototype.mh=function(c){c.ea(this.b.mh)};m.prototype.si=function(c){c.ea(this.b.si)};m.prototype.Kj=function(c){c.ea(this.b.Kj)};m.prototype.j=function(c,b,e,f,a){c.A(Fa(Ma(b, e,f,a)))};m.prototype.left=function(c,b,e){c.Lb(Q(b)?b.substr(0,e):"")};m.prototype.right=function(c,b,e){c.Lb(Q(b)?b.substr(b.length-e):"")};m.prototype.replace=function(c,b,e,f){Q(b)&&Q(e)&&Q(f)?c.Lb(b.replace(new RegExp(fb(e),"gi"),f)):c.Lb(Q(b)?b:"")};m.prototype.trim=function(c,b){c.Lb(Q(b)?b.trim():"")};m.prototype.oq=function(c){var b=pa(Math.random()*(arguments.length-1));c.Bo(arguments[b+1])};m.prototype.wj=function(c){c.A(this.b.wj/1E3)};m.prototype.yf=function(c){c.A(this.b.yf)};r.fc=new m; r.nt=function(){var c,b,e,f,a,d,g=this.b.sb();c=0;for(e=this.Nb.length;c<e;c++){f=this.Nb[c];if(-1===f.time){if(!f.Go)continue}else if(f.time>this.b.ib.T)continue;g.ac=f.fg;g.Xb=f.Xb;g.Bb=0;for(b in f.Mb)f.Mb.hasOwnProperty(b)&&(a=this.b.k[parseInt(b,10)].X(),d=f.Mb[b],a.ga=d.ro,za(a.c,d.Ie),a=d,R(a.Ie),t.push(a));f.fg.mt();this.b.uj(f.wa);f.pm=!0}b=c=0;for(e=this.Nb.length;c<e;c++)f=this.Nb[c],this.Nb[b]=f,f.pm?(Za(f.Mb),R(f.wa),v.push(f)):b++;ya(this.Nb,b)}})(); (function(){pb=function(e,m){var r=e[1],v=e[3],t=e[4],c=e[5],b=e[6],l=e[7],f=e[8];m.e||(m.e={});m.xa||(m.xa={});m.fc||(m.fc={});var a=m.e,d=m.xa,g=m.fc;v&&(a.gu=function(a,b){return dc(this.x,a,b)},a.hu=function(a,b){return dc(this.y,a,b)},a.nu=function(){var a=this.g;this.Za();var b=this.bb;return!(b.right<a.ba||b.bottom<a.ca||b.left>a.ja||b.top>a.ha)},a.ou=function(){this.Za();var a=this.bb,b=this.b.Y;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.yu=function(a,b,c){var d=this.X(), f=d.xc();if(!f.length)return!1;var e=f[0],g=e,l=Wa(e.x,e.y,b,c),q,r,m;q=1;for(r=f.length;q<r;q++)if(e=f[q],m=Wa(e.x,e.y,b,c),0===a&&m<l||1===a&&m>l)l=m,g=e;d.Vg(g);return!0},d.Ru=function(a){this.x!==a&&(this.x=a,this.La())},d.Su=function(a){this.y!==a&&(this.y=a,this.La())},d.Mu=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.La()},d.Nu=function(a,b){var c=a.Qr(this);if(c){var d;c.Rj?(d=c.Rj(b,!0),c=c.Rj(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.La()}}, d.su=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.La())},d.ru=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.La())},g.Wp=function(a){a.A(this.x)},g.Xp=function(a){a.A(this.y)},g.ve=function(a){a.A(this.b.Oj(this))});t&&(a.fu=function(a,b){return dc(this.width,a,b)},a.cu=function(a,b){return dc(this.height,a,b)},d.Qu=function(a){this.width!==a&&(this.width=a,this.La())},d.Ku=function(a){this.height!==a&&(this.height=a,this.La())},d.Ou= function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.La()},g.Wu=function(a){a.A(this.width)},g.ju=function(a){a.A(this.height)},g.$t=function(a){this.Za();a.A(this.bb.left)},g.bu=function(a){this.Za();a.A(this.bb.top)},g.au=function(a){this.Za();a.A(this.bb.right)},g.Zt=function(a){this.Za();a.A(this.bb.bottom)});c&&(a.gp=function(a,b){return Na(this.j,V(b))<=V(a)},a.rp=function(a){return Ua(this.j,V(a))},a.qp=function(a,b){var c=La(a),d=La(b),f=Ja(this.j);return Ua(d, c)?Ua(f,c)&&!Ua(f,d):!(!Ua(f,c)&&Ua(f,d))},d.Gu=function(a){a=V(Ia(a));isNaN(a)||this.j===a||(this.j=a,this.La())},d.Cu=function(a){0===a||isNaN(a)||(this.j+=V(a),this.j=Ja(this.j),this.La())},d.Du=function(a){0===a||isNaN(a)||(this.j-=V(a),this.j=Ja(this.j),this.La())},d.Eu=function(a,b){var c=Oa(this.j,V(b),V(a));isNaN(c)||this.j===c||(this.j=c,this.La())},d.Fu=function(a,b,c){a=Oa(this.j,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.j===a||(this.j=a,this.La())},d.Pu=function(a,b){var c=Math.atan2(b- this.y,a-this.x);isNaN(c)||this.j===c||(this.j=c,this.La())},g.Yt=function(a){a.A(Ka(this.j))});r||(a.du=function(a,b,c){return dc(this.Ga[a],b,c)},a.lu=function(a){return this.Ga[a]},a.zu=function(a,b){var c=this.X(),d=c.xc();if(!d.length)return!1;var f=d[0],e=f,g=f.Ga[b],l,q,r;l=1;for(q=d.length;l<q;l++)if(f=d[l],r=f.Ga[b],0===a&&r<g||1===a&&r>g)g=r,e=f;c.Vg(e);return!0},a.xu=function(a){var b,c,d,f,e;if(this.b.Kr().ik){e=this.X();if(e.ga)for(e.ga=!1,R(e.c),R(e.L),d=this.c,b=0,c=d.length;b<c;b++)f= d[b],f.uid===a?e.L.push(f):e.c.push(f);else{d=b=0;for(c=e.c.length;b<c;b++)f=e.c[b],e.c[d]=f,f.uid===a?e.L.push(f):d++;ya(e.c,d)}this.Rd();return!!e.c.length}f=this.b.Xh(a);if(!f)return!1;e=this.X();if(!e.ga&&-1===e.c.indexOf(f))return!1;if(this.R)for(a=f.type.la,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.Vg(f),this.Rd(),!0}else if(f.type===this)return e.Vg(f),this.Rd(),!0;return!1},a.th=function(){return!0},a.Cp=function(){return!0},d.Sp=function(a,b){var c=this.Ga;ga(c[a])?c[a]=ga(b)?b:parseFloat(b): Q(c[a])&&(c[a]=Q(b)?b:b.toString())},d.fp=function(a,b){var c=this.Ga;ga(c[a])?c[a]=ga(b)?c[a]+b:c[a]+parseFloat(b):Q(c[a])&&(c[a]=Q(b)?c[a]+b:c[a]+b.toString())},d.Tu=function(a,b){var c=this.Ga;ga(c[a])&&(c[a]=ga(b)?c[a]-b:c[a]-parseFloat(b))},d.Hu=function(a,b){this.Ga[a]=b?1:0},d.Uu=function(a){this.Ga[a]=1-this.Ga[a]},d.np=function(){this.b.me(this)},d.xp||(d.xp=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.ji(this,b,!0);this.Qd&&this.Qd();if(this.I)for(a=0,b=this.I.length;a< b;++a)c=this.I[a],c.Qd&&c.Qd()}),g.iu=function(a){var b=a.Re.c.length,c,d,f;c=0;for(d=this.b.Pc.length;c<d;c++)f=this.b.Pc[c],a.Re.R?0<=f.type.la.indexOf(a.Re)&&b++:f.type===a.Re&&b++;a.ea(b)},g.Bu=function(a){a.ea(a.Re.X().xc().length)},g.Vu=function(a){a.ea(this.uid)},g.ku=function(a){a.ea(this.lg())},g.hp||(g.hp=function(a){a.Lb(JSON.stringify(this.b.el(this,!0)))}));b&&(a.vp=function(){return this.visible},d.Up=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.aa=!0)},a.eu=function(a,b){return dc(lb(100* this.opacity),a,b)},d.Lu=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.aa=!0)},g.Opacity=function(a){a.A(lb(100*this.opacity))});l&&(a.mu=function(a){return a?this.g===a:!1},a.Au=function(a){var b=this.X(),c=b.xc();if(!c.length)return!1;var d=c[0],f=d,e,g;e=1;for(g=c.length;e<g;e++)if(d=c[e],0===a){if(d.g.index>f.g.index||d.g.index===f.g.index&&d.Tc()>f.Tc())f=d}else if(d.g.index<f.g.index||d.g.index===f.g.index&&d.Tc()<f.Tc())f=d;b.Vg(f);return!0},d.uu=function(){var a= this.g,b=a.c;b.length&&b[b.length-1]===this||(a.Hf(this,!1),a.Vf(this,!1),this.b.aa=!0)},d.yp=function(){var a=this.g,b=a.c;b.length&&b[0]===this||(a.Hf(this,!1),a.ct(this),this.b.aa=!0)},d.tu=function(a){a&&a!=this.g&&(this.g.Hf(this,!0),this.g=a,a.Vf(this,!0),this.b.aa=!0)},d.Yu=function(a,b){var c=0===a;if(b){var d=b.Lr(this);d&&d.uid!==this.uid&&(this.g.index!==d.g.index&&(this.g.Hf(this,!0),this.g=d.g,d.g.Vf(this,!0)),this.g.Ks(this,d,c),this.b.aa=!0)}},g.qu=function(a){a.ea(this.g.Hn)},g.pu= function(a){a.Lb(this.g.name)},g.Xu=function(a){a.ea(this.Tc())});f&&(d.Iu=function(a,b){if(this.b.q){var c=this.type.Qj(b);if(!(0>c)){var d=1===a;this.Od[c]!==d&&(this.Od[c]=d,this.Gc(),this.b.aa=!0)}}},d.Ju=function(a,b,c){if(this.b.q){var d=this.type.Qj(a);0>d||(a=this.type.G[d],d=this.pa[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.q.Ur(a.Da,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.ab&&(this.b.aa=!0))))}})};Jb=function(){this.qj=this.kj=!0;this.type.Ul=!0;this.b.aa=!0;var e,m,r=this.lj;e=0;for(m= r.length;e<m;++e)r[e](this);this.g.Wb&&this.Za()};Kb=function(e){e&&this.lj.push(e)};Mb=function(){if(this.kj){var e=this.bb,m=this.yh;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Db*this.width,-this.Eb*this.height);this.j?(e.offset(-this.x,-this.y),m.Co(e,this.j),m.offset(this.x,this.y),m.em(e)):m.Ni(e);e.normalize();this.kj=!1;this.Rt()}};var e=new ua(0,0,0,0);Nb=function(){if(this.g.Wb){var q=this.g.Ya,m=this.bb;e.set(q.pb(m.left),q.qb(m.top),q.pb(m.right),q.qb(m.bottom)); this.wb.eg(e)||(this.wb.right<this.wb.left?q.update(this,null,e):q.update(this,this.wb,e),this.wb.$f(e),this.g.Ec=!0)}};Ob=function(){if(this.qj&&this.Yf){this.Za();var q=this.type.jm,m=this.bb;e.set(q.pb(m.left),q.qb(m.top),q.pb(m.right),q.qb(m.bottom));this.Vd.eg(e)||(this.Vd.right<this.Vd.left?q.update(this,null,e):q.update(this,this.Vd,e),this.Vd.$f(e),this.qj=!1)}};Lb=function(e,m){return this.bb.Zb(e,m)&&this.yh.Zb(e,m)?this.Oc&&!this.Oc.Bs()?(this.Oc.lq(this.width,this.height,this.j),this.Oc.Zb(e- this.x,m-this.y)):!0:!1};Fb=function(){this.type.Zi();return this.Fe};Pb=function(){this.g.wl();return this.Ic};Qb=function(){R(this.U);var e,m,r,v=!0;e=0;for(m=this.Od.length;e<m;e++)this.Od[e]&&(r=this.type.G[e],this.U.push(r),r.Cc||(v=!1));this.bp=!!this.U.length;this.Dd=v};Gb=function(){return"Inst"+this.lo};sb=function(e){if(e&&e.Fb&&e.type!=this){var m,r,v;m=0;for(r=e.siblings.length;m<r;m++)if(v=e.siblings[m],v.type==this)return v}e=this.X().xc();return e.length?e[0]:null};tb=function(e){var m= this.X().xc();return m.length?m[e.lg()%m.length]:null};rb=function(){if(this.Lf&&!this.R){var e,m;e=0;for(m=this.c.length;e<m;e++)this.c[e].Fe=e;var r=e,v=this.b.Pc;e=0;for(m=v.length;e<m;++e)v[e].type===this&&(v[e].Fe=r++);this.Lf=!1}};Db=function(e){if(e<this.c.length)return this.c[e];e-=this.c.length;var m=this.b.Pc,r,v;r=0;for(v=m.length;r<v;++r)if(m[r].type===this){if(0===e)return m[r];--e}return null};vb=function(){return this.Fd[this.Qc]};wb=function(){this.Qc++;this.Qc===this.Fd.length?this.Fd.push(new qb(this)): (this.Fd[this.Qc].ga=!0,R(this.Fd[this.Qc].L))};xb=function(){this.Qc++;this.Qc===this.Fd.length&&this.Fd.push(new qb(this));var e=this.Fd[this.Qc],m=this.Fd[this.Qc-1];m.ga?(e.ga=!0,R(e.L)):(e.ga=!1,za(e.c,m.c),za(e.L,m.L))};yb=function(){this.Qc--};zb=function(e){var m,r,v,t,c,b=0;if(!this.R)for(m=0,r=this.la.length;m<r;m++)for(c=this.la[m],v=0,t=c.ma.length;v<t;v++){if(e===c.ma[v].name)return this.ka.lastBehIndex=b,c.ma[v];b++}m=0;for(r=this.ma.length;m<r;m++){if(e===this.ma[m].name)return this.ka.lastBehIndex= b,this.ma[m];b++}return null};Ab=function(e){return this.Vh(e)?this.ka.lastBehIndex:-1};Bb=function(e){var m,r;m=0;for(r=this.G.length;m<r;m++)if(this.G[m].name===e)return m;return-1};Cb=function(){if(this.Fb&&!this.R){var e,m,r,v,t,c,b;this.Zi();c=this.X();var l=c.ga,f=(e=this.b.sb())&&e.ac&&e.ac.Bc;e=0;for(m=this.Cb.length;e<m;e++)if(t=this.Cb[e],t!==this&&(t.Zi(),b=t.X(),b.ga=l,!l)){R(b.c);r=0;for(v=c.c.length;r<v;++r)b.c[r]=t.Sj(c.c[r].Fe);if(f)for(R(b.L),r=0,v=c.L.length;r<v;++r)b.L[r]=t.Sj(c.L[r].Fe)}}}; Eb=function(){return"Type"+this.N};dc=function(e,m,r){if("undefined"===typeof e||"undefined"===typeof r)return!1;switch(m){case 0:return e===r;case 1:return e!==r;case 2:return e<r;case 3:return e<=r;case 4:return e>r;case 5:return e>=r;default:return!1}}})();var lc={};function pc(e){this.b=e} (function(){function e(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function q(a){a=a.toLowerCase();return U.hasOwnProperty(a)&&U[a].length?U[a][0].Rb():w.destination}function m(){return w.createGain?w.createGain():w.createGainNode()}function r(a){return w.createDelay?w.createDelay(a):w.createDelayNode(a)}function v(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function t(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||0,b,c-b)}function c(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}} function b(a,b,c,d,f,e){this.type="filter";this.Xa=[a,b,c,d,f,e];this.P=m();this.F=m();this.F.gain.value=e;this.D=m();this.D.gain.value=1-e;this.ya=w.createBiquadFilter();this.ya.type="number"===typeof this.ya.type?a:tc[a];this.ya.frequency.value=b;this.ya.detune&&(this.ya.detune.value=c);this.ya.Q.value=d;this.ya.gain.value=f;this.P.connect(this.ya);this.P.connect(this.D);this.ya.connect(this.F)}function l(a,b,c){this.type="delay";this.Xa=[a,b,c];this.P=m();this.F=m();this.F.gain.value=c;this.D= m();this.D.gain.value=1-c;this.Og=m();this.ec=r(a);this.ec.delayTime.value=a;this.Ih=m();this.Ih.gain.value=b;this.P.connect(this.Og);this.P.connect(this.D);this.Og.connect(this.F);this.Og.connect(this.ec);this.ec.connect(this.Ih);this.Ih.connect(this.Og)}function f(a,b,c,d){this.type="convolve";this.Xa=[b,c,d];this.P=m();this.F=m();this.F.gain.value=c;this.D=m();this.D.gain.value=1-c;this.se=w.createConvolver();a&&(this.se.normalize=b,this.se.buffer=a);this.P.connect(this.se);this.P.connect(this.D); this.se.connect(this.F)}function a(a,b,c,d,f){this.type="flanger";this.Xa=[a,b,c,d,f];this.P=m();this.D=m();this.D.gain.value=1-f/2;this.F=m();this.F.gain.value=f/2;this.Ph=m();this.Ph.gain.value=d;this.ec=r(a+b);this.ec.delayTime.value=a;this.Pa=w.createOscillator();this.Pa.frequency.value=c;this.Jb=m();this.Jb.gain.value=b;this.P.connect(this.ec);this.P.connect(this.D);this.ec.connect(this.F);this.ec.connect(this.Ph);this.Ph.connect(this.ec);this.Pa.connect(this.Jb);this.Jb.connect(this.ec.delayTime); v(this.Pa)}function d(a,b,c,d,f,e){this.type="phaser";this.Xa=[a,b,c,d,f,e];this.P=m();this.D=m();this.D.gain.value=1-e/2;this.F=m();this.F.gain.value=e/2;this.ya=w.createBiquadFilter();this.ya.type="number"===typeof this.ya.type?7:"allpass";this.ya.frequency.value=a;this.ya.detune&&(this.ya.detune.value=b);this.ya.Q.value=c;this.Pa=w.createOscillator();this.Pa.frequency.value=f;this.Jb=m();this.Jb.gain.value=d;this.P.connect(this.ya);this.P.connect(this.D);this.ya.connect(this.F);this.Pa.connect(this.Jb); this.Jb.connect(this.ya.frequency);v(this.Pa)}function g(a){this.type="gain";this.Xa=[a];this.S=m();this.S.gain.value=a}function h(a,b){this.type="tremolo";this.Xa=[a,b];this.S=m();this.S.gain.value=1-b/2;this.Pa=w.createOscillator();this.Pa.frequency.value=a;this.Jb=m();this.Jb.gain.value=b/2;this.Pa.connect(this.Jb);this.Jb.connect(this.S.gain);v(this.Pa)}function z(a,b){this.type="ringmod";this.Xa=[a,b];this.P=m();this.F=m();this.F.gain.value=b;this.D=m();this.D.gain.value=1-b;this.ah=m();this.ah.gain.value= 0;this.Pa=w.createOscillator();this.Pa.frequency.value=a;this.Pa.connect(this.ah.gain);v(this.Pa);this.P.connect(this.ah);this.P.connect(this.D);this.ah.connect(this.F)}function n(a,b,c,d,f){this.type="distortion";this.Xa=[a,b,c,d,f];this.P=m();this.Di=m();this.Ci=m();this.xt(c,Math.pow(10,d/20));this.F=m();this.F.gain.value=f;this.D=m();this.D.gain.value=1-f;this.cj=w.createWaveShaper();this.Gh=new Float32Array(65536);this.Hr(a,b);this.cj.Gh=this.Gh;this.P.connect(this.Di);this.P.connect(this.D); this.Di.connect(this.cj);this.cj.connect(this.Ci);this.Ci.connect(this.F)}function x(a,b,c,d,f){this.type="compressor";this.Xa=[a,b,c,d,f];this.S=w.createDynamicsCompressor();try{this.S.threshold.value=a,this.S.knee.value=b,this.S.ratio.value=c,this.S.attack.value=d,this.S.release.value=f}catch(e){}}function k(a,b){this.type="analyser";this.Xa=[a,b];this.S=w.createAnalyser();this.S.fftSize=a;this.S.smoothingTimeConstant=b;this.Fr=new Float32Array(this.S.frequencyBinCount);this.Fo=new Uint8Array(a); this.Ug=0}function p(){this.W=null;this.ki=0}function ca(a,b){this.src=a;this.M=C;this.ic=b;this.xh=!1;var c=this;this.Ck=this.Nk=null;this.Ef=[];this.Ii=0;this.zl=this.Nh=this.Lo=this.yi=!1;1===C&&b&&!Pa&&(this.M=0,this.Nk=m());this.ld=this.V=null;var d;switch(this.M){case 0:this.V=new Audio;this.V.crossOrigin="anonymous";this.V.addEventListener("canplaythrough",function(){c.zl=!0});1===C&&w.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Lo=!0,this.V.addEventListener("canplay", function(){c.Ck||(c.Ck=w.createMediaElementSource(c.V),c.Ck.connect(c.Nk))}));this.V.autoplay=!1;this.V.qv="auto";this.V.src=a;break;case 1:y.zg?y.ym(a,function(a){c.ld=a;c.om()},function(){c.Nh=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.ld=d.response;c.om()},d.onerror=function(){c.Nh=!0},d.send());break;case 2:this.V=!0;break;case 3:this.V=!0}}function H(a,b){var c=this;this.tag=b;this.yb=this.Sc=!0;this.src=a.src;this.buffer=a;this.M=C;this.ic= a.ic;this.playbackRate=1;this.kf=!0;this.Gb=this.Vb=!1;this.xb=0;this.Ag=this.qf=this.Xc=!1;this.volume=1;this.Lk=function(a){if(!c.Gb&&!c.Vb){var b=this;b||(b=a.target);b===c.wh&&(c.kf=!0,c.yb=!0,T=c.tag,y.trigger(pc.prototype.e.uh,X))}};this.wh=null;this.nf=1===L&&!this.ic||2===L;this.Bf=1;this.startTime=this.nf?y.ib.T:y.Id.T;this.Ca=this.Ea=null;this.Yc=!1;this.Va=null;this.Xn=this.Wn=this.Vn=this.Un=this.Zn=this.Yn=0;this.d=null;var d=!1;1!==this.M||0!==this.buffer.M||this.buffer.Lo||(this.M= 0);switch(this.M){case 0:this.ic?(this.d=a.V,d=!a.xh,a.xh=!0):(this.d=new Audio,this.d.crossOrigin="anonymous",this.d.autoplay=!1,this.d.src=a.V.src,d=!0);d&&this.d.addEventListener("ended",function(){T=c.tag;c.yb=!0;y.trigger(pc.prototype.e.uh,X)});break;case 1:this.Ea=m();this.Ea.connect(q(b));1===this.buffer.M?a.V&&(this.d=w.createBufferSource(),this.d.buffer=a.V,this.d.connect(this.Ea)):(this.d=this.buffer.V,this.buffer.Nk.connect(this.Ea),this.buffer.xh||(this.buffer.xh=!0,this.buffer.V.addEventListener("ended", function(){T=c.tag;c.yb=!0;y.trigger(pc.prototype.e.uh,X)})));break;case 2:this.d=new window.Media(u+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.kf=!0,c.yb=!0,T=c.tag,y.trigger(pc.prototype.e.uh,X))});break;case 3:this.d=!0}}function S(a){R(Aa);if(a.length){var b,c,d;b=0;for(c=J.length;b<c;b++)d=J[b],mb(a,d.tag)&&Aa.push(d)}else I&&!I.Ee()&&(R(Aa),Aa[0]=I)}function K(a,b){U.hasOwnProperty(a)?U[a].push(b):U[a]=[b];var c,d,f,e,g=w.destination;if(U.hasOwnProperty(a)&&(f=U[a],f.length))for(g= f[0].Rb(),c=0,d=f.length;c<d;c++)e=f[c],c+1===d?e.Yb(w.destination):e.Yb(f[c+1].Rb());S(a);c=0;for(d=Aa.length;c<d;c++)Aa[c].gt(g);Ha&&ub===a&&(Ha.disconnect(),Ha.connect(g))}function Y(){}function O(){}var G=pc.prototype;G.Ob=function(a){this.qa=a;this.b=a.b};G.Ob.prototype.ua=function(){};var y=null,X=null,T="",u="",C=0,w=null,na=[],J=[],I=null,F=!1,L=0,M=!1,D=1,E=0,N=0,sa=!1,P=1,ta=1,ia=10,Ga=1E4,rc=1,Ha=null,ub="",Qa=!1,Ra=[],Pa=!1,U={},tc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" "); b.prototype.Yb=function(a){this.F.disconnect();this.F.connect(a);this.D.disconnect();this.D.connect(a)};b.prototype.remove=function(){this.P.disconnect();this.ya.disconnect();this.F.disconnect();this.D.disconnect()};b.prototype.Rb=function(){return this.P};l.prototype.Yb=function(a){this.F.disconnect();this.F.connect(a);this.D.disconnect();this.D.connect(a)};l.prototype.remove=function(){this.P.disconnect();this.Og.disconnect();this.ec.disconnect();this.Ih.disconnect();this.F.disconnect();this.D.disconnect()}; l.prototype.Rb=function(){return this.P};f.prototype.Yb=function(a){this.F.disconnect();this.F.connect(a);this.D.disconnect();this.D.connect(a)};f.prototype.remove=function(){this.P.disconnect();this.se.disconnect();this.F.disconnect();this.D.disconnect()};f.prototype.Rb=function(){return this.P};a.prototype.Yb=function(a){this.D.disconnect();this.D.connect(a);this.F.disconnect();this.F.connect(a)};a.prototype.remove=function(){this.P.disconnect();this.ec.disconnect();this.Pa.disconnect();this.Jb.disconnect(); this.D.disconnect();this.F.disconnect();this.Ph.disconnect()};a.prototype.Rb=function(){return this.P};d.prototype.Yb=function(a){this.D.disconnect();this.D.connect(a);this.F.disconnect();this.F.connect(a)};d.prototype.remove=function(){this.P.disconnect();this.ya.disconnect();this.Pa.disconnect();this.Jb.disconnect();this.D.disconnect();this.F.disconnect()};d.prototype.Rb=function(){return this.P};g.prototype.Yb=function(a){this.S.disconnect();this.S.connect(a)};g.prototype.remove=function(){this.S.disconnect()}; g.prototype.Rb=function(){return this.S};h.prototype.Yb=function(a){this.S.disconnect();this.S.connect(a)};h.prototype.remove=function(){this.Pa.disconnect();this.Jb.disconnect();this.S.disconnect()};h.prototype.Rb=function(){return this.S};z.prototype.Yb=function(a){this.F.disconnect();this.F.connect(a);this.D.disconnect();this.D.connect(a)};z.prototype.remove=function(){this.Pa.disconnect();this.ah.disconnect();this.P.disconnect();this.F.disconnect();this.D.disconnect()};z.prototype.Rb=function(){return this.P}; n.prototype.xt=function(a,b){.01>a&&(a=.01);this.Di.gain.value=a;this.Ci.gain.value=Math.pow(1/a,.6)*b};n.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};n.prototype.Hr=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),f=0,e=0;32768>e;++e)f=e/32768,f=this.shape(f,c,d),this.Gh[32768+e]=f,this.Gh[32768-e-1]=-f};n.prototype.Yb=function(a){this.F.disconnect();this.F.connect(a);this.D.disconnect();this.D.connect(a)}; n.prototype.remove=function(){this.P.disconnect();this.Di.disconnect();this.cj.disconnect();this.Ci.disconnect();this.F.disconnect();this.D.disconnect()};n.prototype.Rb=function(){return this.P};x.prototype.Yb=function(a){this.S.disconnect();this.S.connect(a)};x.prototype.remove=function(){this.S.disconnect()};x.prototype.Rb=function(){return this.S};k.prototype.ob=function(){this.S.getFloatFrequencyData(this.Fr);this.S.getByteTimeDomainData(this.Fo);for(var a=this.S.fftSize,b=0,c=this.Ug=0,d=0;b< a;b++)d=(this.Fo[b]-128)/128,0>d&&(d=-d),this.Ug<d&&(this.Ug=d),c+=d*d;this.Ug=e(this.Ug);e(Math.sqrt(c/a))};k.prototype.Yb=function(a){this.S.disconnect();this.S.connect(a)};k.prototype.remove=function(){this.S.disconnect()};k.prototype.Rb=function(){return this.S};p.prototype.bh=function(a){this.W=a};p.prototype.Zh=function(){return!!this.W};p.prototype.ob=function(){};var eb=!1;ca.prototype.ht=function(){var a,b,c,d;c=a=0;for(b=J.length;a<b;++a)d=J[a],J[c]=d,d.buffer===this?d.stop():++c;J.length= c;this.ld=this.V=null};ca.prototype.om=function(){if(!this.V&&this.ld){var a=this;if(w.decodeAudioData)w.decodeAudioData(this.ld,function(b){a.V=b;a.ld=null;var c,d,f;if(fa(a.Ai)||M)fa(a.Ch)||(c=a.Ch.se,c.normalize=a.Gn,c.buffer=b);else if(a.Ef.length){c=0;for(d=a.Ef.length;c<d;c++){b=a.Ef[c];f=new H(a,b.Po);f.hl(!0);if("undefined"!==typeof b.In&&(b.W=y.Xh(b.In),!b.W))continue;if(b.W){var e=Va(b.W.x,b.W.y,-b.W.g.Ua(),E,N,!0),g=Va(b.W.x,b.W.y,-b.W.g.Ua(),E,N,!1);f.gl(e,g,Fa(b.W.j-b.W.g.Ua()),b.bk, b.Fk,b.Ik);f.bh(b.W)}else f.gl(b.x,b.y,b.Yp,b.bk,b.Fk,b.Ik);f.play(a.Ak,a.yl,a.Ii);a.yi&&f.pause();J.push(f)}R(a.Ef)}else f=new H(a,a.Ai||""),f.play(a.Ak,a.yl,a.Ii),a.yi&&f.pause(),J.push(f)},function(){a.Nh=!0});else if(this.V=w.createBuffer(this.ld,!1),this.ld=null,fa(this.Ai)||M)fa(this.Ch)||(b=this.Ch.se,b.normalize=this.Gn,b.buffer=this.V);else{var b=new H(this,this.Ai);b.play(this.Ak,this.yl,this.Ii);this.yi&&b.pause();J.push(b)}}};ca.prototype.Um=function(){switch(this.M){case 0:var a=4<=this.V.readyState; a&&(this.zl=!0);return a||this.zl;case 1:return!!this.ld||!!this.V;case 2:return!0;case 3:return!0}return!1};ca.prototype.vs=function(){switch(this.M){case 0:return this.Um();case 1:return!!this.V;case 2:return!0;case 3:return!0}return!1};ca.prototype.ms=function(){switch(this.M){case 0:return!!this.V.error;case 1:return this.Nh}return!1};H.prototype.Ee=function(){switch(this.M){case 0:return this.d.ended;case 1:return 1===this.buffer.M?!this.Sc&&!this.yb&&this.d.loop||this.Gb?!1:this.kf:this.d.ended; case 2:return this.kf;case 3:!0}return!0};H.prototype.mq=function(){return this.Sc||this.yb?!0:this.Ee()};H.prototype.hl=function(a){1===C&&(!this.Yc&&a?this.Ea&&(this.Ca||(this.Ca=w.createPanner(),this.Ca.panningModel="number"===typeof this.Ca.panningModel?P:["equalpower","HRTF","soundfield"][P],this.Ca.distanceModel="number"===typeof this.Ca.distanceModel?ta:["linear","inverse","exponential"][ta],this.Ca.refDistance=ia,this.Ca.maxDistance=Ga,this.Ca.rolloffFactor=rc),this.Ea.disconnect(),this.Ea.connect(this.Ca), this.Ca.connect(q(this.tag)),this.Yc=!0):this.Yc&&!a&&this.Ea&&(this.Ca.disconnect(),this.Ea.disconnect(),this.Ea.connect(q(this.tag)),this.Yc=!1))};H.prototype.gl=function(a,b,c,d,f,e){this.Yc&&1===C&&(this.Ca.setPosition(a,b,0),this.Ca.setOrientation(Math.cos(V(c)),Math.sin(V(c)),0),this.Ca.coneInnerAngle=d,this.Ca.coneOuterAngle=f,this.Ca.coneOuterGain=e,this.Yn=a,this.Zn=b,this.Un=c,this.Vn=d,this.Wn=f,this.Xn=e)};H.prototype.bh=function(a){this.Yc&&1===C&&(this.Va||(this.Va=new p),this.Va.bh(a))}; H.prototype.ob=function(a){if(this.Yc&&1===C&&this.Va&&this.Va.Zh()&&this.lf()){this.Va.ob(a);a=this.Va.W;var b=Va(a.x,a.y,-a.g.Ua(),E,N,!0),c=Va(a.x,a.y,-a.g.Ua(),E,N,!1);this.Ca.setPosition(b,c,0);b=0;"undefined"!==typeof this.Va.W.j&&(b=a.j-a.g.Ua(),this.Ca.setOrientation(Math.cos(b),Math.sin(b),0))}};H.prototype.play=function(a,b,c,d){var f=this.d;this.Xc=a;this.volume=b;c=c||0;d=d||0;switch(this.M){case 0:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==b*D&&(f.volume=b*D);f.loop!==a&&(f.loop= a);f.muted&&(f.muted=!1);if(f.currentTime!==c)try{f.currentTime=c}catch(e){}if(this.ic&&Qa&&!y.Vc)Ra.push(this);else try{this.d.play()}catch(g){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",g)}break;case 1:this.muted=!1;this.Bf=1;if(1===this.buffer.M)this.Ea.gain.value=b*D,this.Sc||(this.d=w.createBufferSource(),this.d.buffer=this.buffer.V,this.d.connect(this.Ea)),this.d.onended=this.Lk,this.wh=this.d,this.d.loop=a,this.kf=!1,0===c?v(this.d, d):t(this.d,c,this.Ce(),d);else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);f.volume=b*D;if(f.currentTime!==c)try{f.currentTime=c}catch(k){}this.ic&&Qa&&!y.Vc?Ra.push(this):f.play()}break;case 2:(!this.Sc&&this.yb||0!==c)&&f.seekTo(c);f.play();this.kf=!1;break;case 3:y.hb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.nf?y.ib.T:y.Id.T)-c;this.Gb=this.yb=this.Sc=!1};H.prototype.stop=function(){switch(this.M){case 0:this.d.paused|| this.d.pause();break;case 1:1===this.buffer.M?c(this.d):this.d.paused||this.d.pause();break;case 2:this.d.stop();break;case 3:y.hb&&AppMobi.context.stopSound(this.src)}this.yb=!0;this.Gb=!1};H.prototype.pause=function(){if(!(this.Sc||this.yb||this.Ee()||this.Gb)){switch(this.M){case 0:this.d.paused||this.d.pause();break;case 1:1===this.buffer.M?(this.xb=this.Uj(!0),this.Xc&&(this.xb=this.xb%this.Ce()),this.Gb=!0,c(this.d)):this.d.paused||this.d.pause();break;case 2:this.d.pause();break;case 3:y.hb&& AppMobi.context.stopSound(this.src)}this.Gb=!0}};H.prototype.lt=function(){if(!(this.Sc||this.yb||this.Ee())&&this.Gb){switch(this.M){case 0:this.d.play();break;case 1:1===this.buffer.M?(this.d=w.createBufferSource(),this.d.buffer=this.buffer.V,this.d.connect(this.Ea),this.d.onended=this.Lk,this.wh=this.d,this.d.loop=this.Xc,this.Ea.gain.value=D*this.volume*this.Bf,this.$i(),this.startTime=(this.nf?y.ib.T:y.Id.T)-this.xb/(this.playbackRate||.001),t(this.d,this.xb,this.Ce())):this.d.play();break;case 2:this.d.play(); break;case 3:y.hb&&AppMobi.context.resumeSound(this.src)}this.Gb=!1}};H.prototype.seek=function(a){if(!(this.Sc||this.yb||this.Ee()))switch(this.M){case 0:try{this.d.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.M)this.Gb?this.xb=a:(this.pause(),this.xb=a,this.lt());else try{this.d.currentTime=a}catch(c){}break;case 3:y.hb&&AppMobi.context.seekSound(this.src,a)}};H.prototype.gt=function(a){1===this.M&&(this.Yc?(this.Ca.disconnect(),this.Ca.connect(a)):(this.Ea.disconnect(),this.Ea.connect(a)))}; H.prototype.Ce=function(){var a=0;switch(this.M){case 0:"undefined"!==typeof this.d.duration&&(a=this.d.duration);break;case 1:a=this.buffer.V.duration;break;case 2:a=this.d.getDuration();break;case 3:y.hb&&(a=AppMobi.context.getDurationSound(this.src))}return a};H.prototype.Uj=function(a){var b=this.Ce(),c=0;switch(this.M){case 0:"undefined"!==typeof this.d.currentTime&&(c=this.d.currentTime);break;case 1:if(1===this.buffer.M){if(this.Gb)return this.xb;c=(this.nf?y.ib.T:y.Id.T)-this.startTime}else"undefined"!== typeof this.d.currentTime&&(c=this.d.currentTime);break;case 3:y.hb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Xc&&c>b&&(c=b);return c};H.prototype.lf=function(){return!this.Gb&&!this.Sc&&!this.yb&&!this.Ee()};H.prototype.Dt=function(){return!this.Sc&&!this.yb&&!this.Ee()};H.prototype.Pt=function(){var a=this.volume*D;isFinite(a)||(a=0);switch(this.M){case 0:"undefined"!==typeof this.d.volume&&this.d.volume!==a&&(this.d.volume=a);break;case 1:1===this.buffer.M? this.Ea.gain.value=a*this.Bf:"undefined"!==typeof this.d.volume&&this.d.volume!==a&&(this.d.volume=a)}};H.prototype.Kh=function(a){switch(this.M){case 0:this.d.muted!==!!a&&(this.d.muted=!!a);break;case 1:1===this.buffer.M?(this.Bf=a?0:1,this.Ea.gain.value=D*this.volume*this.Bf):this.d.muted!==!!a&&(this.d.muted=!!a)}};H.prototype.zt=function(){this.qf=!0;this.Kh(this.qf||this.Ag)};H.prototype.zo=function(a){this.Ag=!!a;this.Kh(this.qf||this.Ag)};H.prototype.$i=function(){var a=this.playbackRate; this.nf&&(a*=y.Nf);switch(this.M){case 0:this.d.playbackRate!==a&&(this.d.playbackRate=a);break;case 1:1===this.buffer.M?this.d.playbackRate.value!==a&&(this.d.playbackRate.value=a):this.d.playbackRate!==a&&(this.d.playbackRate=a)}};H.prototype.Bt=function(a){switch(this.M){case 0:a?this.lf()?(this.Vb=!0,this.d.pause()):this.Vb=!1:this.Vb&&(this.d.play(),this.Vb=!1);break;case 1:a?this.lf()?(this.Vb=!0,1===this.buffer.M?(this.xb=this.Uj(!0),this.Xc&&(this.xb=this.xb%this.Ce()),c(this.d)):this.d.pause()): this.Vb=!1:this.Vb&&(1===this.buffer.M?(this.d=w.createBufferSource(),this.d.buffer=this.buffer.V,this.d.connect(this.Ea),this.d.onended=this.Lk,this.wh=this.d,this.d.loop=this.Xc,this.Ea.gain.value=D*this.volume*this.Bf,this.$i(),this.startTime=(this.nf?y.ib.T:y.Id.T)-this.xb/(this.playbackRate||.001),t(this.d,this.xb,this.Ce())):this.d.play(),this.Vb=!1);break;case 2:a?this.lf()?(this.d.pause(),this.Vb=!0):this.Vb=!1:this.Vb&&(this.Vb=!1,this.d.play())}};G.lb=function(a){function b(){if(!sa&&w.createBuffer){var a= w.createBuffer(1,220,22050),c=w.createBufferSource();c.buffer=a;c.connect(w.destination);v(c)}}this.type=a;y=this.b=a.b;X=this;this.Ib=null;this.Gg=-600;this.b.zg&&(Pa=!0);!(this.b.tf||this.b.$h&&(this.b.sg||this.b.ai))||this.b.tg||this.b.za||this.b.jk||Pa||(Qa=!0);w=null;"undefined"!==typeof AudioContext?(C=1,w=new AudioContext):"undefined"!==typeof webkitAudioContext&&(C=1,w=new webkitAudioContext);this.b.tf&&w&&(w.close&&w.close(),"undefined"!==typeof AudioContext?w=new AudioContext:"undefined"!== typeof webkitAudioContext&&(w=new webkitAudioContext));Qa?document.addEventListener("touchend",function(){!eb&&w&&(b(),eb=!0);var a,c,d;if(Qa){if(!M)for(a=0,c=Ra.length;a<c;++a)d=Ra[a],d.yb||d.Gb||d.d.play();R(Ra)}},!0):Pa&&document.addEventListener("touchend",function(){!eb&&w&&(b(),eb=!0)},!0);1!==C&&(this.b.tb&&"undefined"!==typeof window.Media?C=2:this.b.Tm&&(C=3));2===C&&(u=location.href,a=u.lastIndexOf("/"),-1<a&&(u=u.substr(0,a+1)),u=u.replace("file://",""));if(this.b.ws&&this.b.xs&&"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.me(this);else{if(this.b.hb)F=this.b.$h;else try{F=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){F=!1}this.b.ml(this)}};var oa=G.lb.prototype;oa.ua=function(){this.b.bf=this;L=this.Z[0];this.Cd=this.Z[1];this.Ws=0!==this.Z[2];this.En=0;P=this.Z[3];ta=this.Z[4];this.Gg=-this.Z[5];ia=this.Z[6];Ga=this.Z[7];rc=this.Z[8];this.Ib=new p;var a= this.b.C||this.b.width,b=this.b.B||this.b.height;1===C&&(w.listener.setPosition(a/2,b/2,this.Gg),w.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ha&&Ha.disconnect();ub=b.toLowerCase();Ha=w.createMediaStreamSource(a);Ha.connect(q(ub))});this.b.Rl(function(a){X.Ss(a)});var c=this;this.b.bq(function(a){c.Os(a)})};oa.Os=function(a){var b,c,d;b=0;for(c=J.length;b<c;b++)d=J[b],d.Va&&d.Va.W===a&&(d.Va.W=null,d.Yc&&d.lf()&&d.Xc&&d.stop());this.Ib.W===a&&(this.Ib.W=null)};oa.mc= function(){var a={silent:M,masterVolume:D,listenerZ:this.Gg,listenerUid:this.Ib.Zh()?this.Ib.W.uid:-1,playing:[],effects:{}},b=a.playing,c,d,f,e,g,k;c=0;for(d=J.length;c<d;c++)f=J[c],!f.Dt()||3===this.Cd||f.ic&&1===this.Cd||!f.ic&&2===this.Cd||(e=f.Uj(),f.Xc&&(e=e%f.Ce()),e={tag:f.tag,buffersrc:f.buffer.src,is_music:f.ic,playbackTime:e,volume:f.volume,looping:f.Xc,muted:f.qf,playbackRate:f.playbackRate,paused:f.Gb,resume_position:f.xb},f.Yc&&(e.pan={},k=e.pan,f.Va&&f.Va.Zh()?k.objUid=f.Va.W.uid:(k.x= f.Yn,k.y=f.Zn,k.a=f.Un),k.ia=f.Vn,k.oa=f.Wn,k.og=f.Xn),b.push(e));b=a.effects;for(g in U)if(U.hasOwnProperty(g)){f=[];c=0;for(d=U[g].length;c<d;c++)f.push({type:U[g][c].type,params:U[g][c].Xa});b[g]=f}return a};var Sa=[];oa.Wc=function(c){var e=c.silent;D=c.masterVolume;this.Gg=c.listenerZ;this.Ib.bh(null);var r=c.listenerUid;-1!==r&&(this.Ib.ki=r,Sa.push(this.Ib));var r=c.playing,m,q,t,u,v,w,H,ca,y,A,C;if(3!==this.Cd)for(m=0,q=J.length;m<q;m++)y=J[m],y.ic&&1===this.Cd||(y.ic||2!==this.Cd)&&y.stop(); for(v in U)if(U.hasOwnProperty(v))for(m=0,q=U[v].length;m<q;m++)U[v][m].remove();Za(U);for(v in c.effects)if(c.effects.hasOwnProperty(v))for(w=c.effects[v],m=0,q=w.length;m<q;m++)switch(t=w[m].type,A=w[m].params,t){case "filter":K(v,new b(A[0],A[1],A[2],A[3],A[4],A[5]));break;case "delay":K(v,new l(A[0],A[1],A[2]));break;case "convolve":t=A[2];y=this.Uh(t,!1);y.V?t=new f(y.V,A[0],A[1],t):(t=new f(null,A[0],A[1],t),y.Gn=A[0],y.Ch=t);K(v,t);break;case "flanger":K(v,new a(A[0],A[1],A[2],A[3],A[4])); break;case "phaser":K(v,new d(A[0],A[1],A[2],A[3],A[4],A[5]));break;case "gain":K(v,new g(A[0]));break;case "tremolo":K(v,new h(A[0],A[1]));break;case "ringmod":K(v,new z(A[0],A[1]));break;case "distortion":K(v,new n(A[0],A[1],A[2],A[3],A[4]));break;case "compressor":K(v,new x(A[0],A[1],A[2],A[3],A[4]));break;case "analyser":K(v,new k(A[0],A[1]))}m=0;for(q=r.length;m<q;m++)3===this.Cd||(c=r[m],t=c.buffersrc,u=c.is_music,v=c.tag,w=c.playbackTime,H=c.looping,ca=c.volume,C=(A=c.pan)&&A.hasOwnProperty("objUid")? A.objUid:-1,u&&1===this.Cd)||!u&&2===this.Cd||((y=this.Fm(t,v,u,H,ca))?(y.xb=c.resume_position,y.hl(!!A),y.play(H,ca,w),y.$i(),y.Pt(),y.Kh(y.qf||y.Ag),c.paused&&y.pause(),c.muted&&y.zt(),y.Kh(y.qf||y.Ag),A&&(-1!==C?(y.Va=y.Va||new p,y.Va.ki=C,Sa.push(y.Va)):y.gl(A.x,A.y,A.a,A.ia,A.oa,A.og))):(y=this.Uh(t,u),y.Ii=w,y.yi=c.paused,A&&(-1!==C?y.Ef.push({In:C,bk:A.ia,Fk:A.oa,Ik:A.og,Po:v}):y.Ef.push({x:A.x,y:A.y,Yp:A.a,bk:A.ia,Fk:A.oa,Ik:A.og,Po:v}))));if(e&&!M){m=0;for(q=J.length;m<q;m++)J[m].zo(!0); M=!0}else if(!e&&M){m=0;for(q=J.length;m<q;m++)J[m].zo(!1);M=!1}};oa.Qd=function(){var a,b,c,d;a=0;for(b=Sa.length;a<b;a++)c=Sa[a],d=this.b.Xh(c.ki),c.bh(d),c.ki=-1,d&&(E=d.x,N=d.y);R(Sa)};oa.Ss=function(a){if(!this.Ws){!a&&w&&w.resume&&(w.resume(),sa=!1);var b,c;b=0;for(c=J.length;b<c;b++)J[b].Bt(a);a&&w&&w.suspend&&(w.suspend(),sa=!0)}};oa.ob=function(){var a=this.b.ve,b,c,d;b=0;for(c=J.length;b<c;b++)d=J[b],d.ob(a),0!==L&&d.$i();var f,e;for(f in U)if(U.hasOwnProperty(f))for(d=U[f],b=0,c=d.length;b< c;b++)e=d[b],e.ob&&e.ob();1===C&&this.Ib.Zh()&&(this.Ib.ob(a),E=this.Ib.W.x,N=this.Ib.W.y,w.listener.setPosition(this.Ib.W.x,this.Ib.W.y,this.Gg))};var Ta=[];oa.At=function(a){var b,c,d,f,e,g=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],f=d[0],d=2*d[1],(e=4<f.length&&".ogg"===f.substr(f.length-4))&&F||!e&&!F)Ta.push({filename:f,size:d,W:null}),g+=d;return g};oa.Gt=function(){var a,b,c,d;a=0;for(b=Ta.length;a<b;++a)c=Ta[a],d=this.b.Ij+c.filename,c.W=this.Uh(d,!1)};oa.Rr=function(){var a=0,b,c,d;b=0;for(c= Ta.length;b<c;++b)d=Ta[b],d.W.vs()||d.W.ms()||this.b.za||this.b.ai?a+=d.size:d.W.Um()&&(a+=Math.floor(d.size/2));return a};oa.it=function(){var a,b,c,d;c=a=0;for(b=na.length;a<b;++a)d=na[a],na[c]=d,d.ic?d.ht():++c;na.length=c};oa.Uh=function(a,b){var c,d,f,e=null;c=0;for(d=na.length;c<d;c++)if(f=na[c],f.src===a){e=f;break}e||(Pa&&b&&this.it(),e=new ca(a,b),na.push(e));return e};oa.Fm=function(a,b,c,d,f){var e,g,k;e=0;for(g=J.length;e<g;e++)if(k=J[e],k.src===a&&(k.mq()||c))return k.tag=b,k;a=this.Uh(a, c);if(!a.V)return"<preload>"!==b&&(a.Ai=b,a.Ak=d,a.yl=f),null;k=new H(a,b);J.push(k);return k};var Aa=[];Y.prototype.uh=function(a){return mb(T,a)};Y.prototype.up=function(a){S(a);var b;a=0;for(b=Aa.length;a<b;a++)if(Aa[a].lf())return!0;return!1};G.e=new Y;O.prototype.Play=function(a,b,c,d){!M&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),I=this.Fm(this.b.Ij+a[0]+(F?".ogg":".m4a"),d,a[1],0!==b,c))&&(I.hl(!1),I.play(0!==b,c,0,this.En),this.En=0)};O.prototype.Vp=function(){var a,b; a=0;for(b=J.length;a<b;a++)J[a].stop()};G.xa=new O;G.fc=new function(){}})();function qc(e){this.b=e} (function(){function e(){}function q(){}var m=qc.prototype;m.Ob=function(e){this.qa=e;this.b=e.b};m.Ob.prototype.ua=function(){};m.lb=function(e){this.type=e;this.b=e.b};m.lb.prototype.ua=function(){var e=this;window.addEventListener("resize",function(){e.b.trigger(qc.prototype.e.Np,e)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){e.b.trigger(qc.prototype.e.Kp,e)}),window.addEventListener("offline",function(){e.b.trigger(qc.prototype.e.Jp,e)}));"undefined"!== typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){e.b.yf=1;e.b.trigger(qc.prototype.e.Ll,e)}),window.applicationCache.addEventListener("progress",function(m){e.b.yf=m.loaded/m.total||0}));this.b.hb||(document.addEventListener("appMobi.device.update.available",function(){e.b.trigger(qc.prototype.e.Ll,e)}),document.addEventListener("backbutton",function(){e.b.trigger(qc.prototype.e.sh,e)}),document.addEventListener("menubutton",function(){e.b.trigger(qc.prototype.e.Fl, e)}),document.addEventListener("searchbutton",function(){e.b.trigger(qc.prototype.e.Op,e)}),document.addEventListener("tizenhwkey",function(m){var q;switch(m.keyName){case "back":q=e.b.trigger(qc.prototype.e.sh,e);!q&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(q=e.b.trigger(qc.prototype.e.Fl,e))||m.preventDefault()}}));this.b.pk&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(m){e.b.trigger(qc.prototype.e.sh, e)&&(m.gv=!0)}):this.b.ci&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!e.b.trigger(qc.prototype.e.sh,e)});this.b.Rl(function(m){m?e.b.trigger(qc.prototype.e.Lp,e):e.b.trigger(qc.prototype.e.Mp,e)});this.As="undefined"!==typeof window.is_scirra_arcade};e.prototype.Kp=function(){return!0};e.prototype.Jp=function(){return!0};e.prototype.Ll=function(){return!0};e.prototype.Mp=function(){return!0};e.prototype.Lp=function(){return!0};e.prototype.Np=function(){return!0};e.prototype.sh= function(){return!0};e.prototype.Fl=function(){return!0};e.prototype.Op=function(){return!0};m.e=new e;q.prototype.pp=function(e,m){this.b.Tb?CocoonJS.App.openURL(e):this.b.hc?ejecta.openURL(e):this.b.ci?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(e)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(e,{openExternal:!0}):this.b.tb?window.open(e,"_system"):this.As||this.b.za||window.open(e,m)};m.xa=new q;m.fc=new function(){}})();function oc(e){this.b=e} (function(){function e(){this.name="";this.$g=0;this.Xa=[]}function q(){b++;b===c.length&&c.push(new e);return c[b]}function m(){}function r(){}function v(){}var t=oc.prototype;t.Ob=function(b){this.qa=b;this.b=b.b};t.Ob.prototype.ua=function(){};t.lb=function(b){this.type=b;this.b=b.b};var c=[],b=-1;t.lb.prototype.ua=function(){var c=this;window.c2_callFunction=function(f,a){var d,e,h,m=q();m.name=f.toLowerCase();m.$g=0;if(a)for(m.Xa.length=a.length,d=0,e=a.length;d<e;++d)h=a[d],m.Xa[d]="number"=== typeof h||"string"===typeof h?h:"boolean"===typeof h?h?1:0:0;else R(m.Xa);c.b.trigger(oc.prototype.e.vh,c,m.name);b--;return m.$g}};m.prototype.vh=function(e){var f=0>b?null:c[b];return f?mb(e,f.name):!1};t.e=new m;r.prototype.CallFunction=function(c,f){var a=q();a.name=c.toLowerCase();a.$g=0;za(a.Xa,f);this.b.trigger(oc.prototype.e.vh,this,a.name);b--};t.xa=new r;v.prototype.ip=function(c,f){var a=q();a.name=f.toLowerCase();a.$g=0;R(a.Xa);var d,e;d=2;for(e=arguments.length;d<e;d++)a.Xa.push(arguments[d]); this.b.trigger(oc.prototype.e.vh,this,a.name);b--;c.Bo(a.$g)};t.fc=new v})();function nc(e){this.b=e} (function(){function e(){if(0===this.zj.length){var b=document.createElement("canvas");b.width=this.width;b.height=this.height;var a=b.getContext("2d");this.Kf?a.drawImage(this.Qa,this.Cf,this.Df,this.width,this.height,0,0,this.width,this.height):a.drawImage(this.Qa,0,0,this.width,this.height);this.zj=b.toDataURL("image/png")}return this.zj}function q(){}function m(){}var r=nc.prototype;r.Ob=function(b){this.qa=b;this.b=b.b};var v=r.Ob.prototype;v.ua=function(){if(!this.R){var b,a,c,g,h,l,n,m,k;this.tc= [];this.pg=!1;b=0;for(a=this.Ab.length;b<a;b++){h=this.Ab[b];n={};n.name=h[0];n.speed=h[1];n.loop=h[2];n.Zk=h[3];n.$k=h[4];n.bo=h[5];n.N=h[6];n.frames=[];c=0;for(g=h[7].length;c<g;c++)l=h[7][c],m={},m.No=l[0],m.Oo=l[1],m.Cf=l[2],m.Df=l[3],m.width=l[4],m.height=l[5],m.duration=l[6],m.Db=l[7],m.Eb=l[8],m.ck=l[9],m.Bi=l[10],m.co=l[11],m.Kf=0!==m.width,m.zj="",m.dv=e,k={left:0,top:0,right:1,bottom:1},m.il=k,m.Kd=null,(k=this.b.Dr(l[0]))?m.Qa=k:(m.Qa=new Image,m.Qa.rq=l[0],m.Qa.qq=l[1],m.Qa.kq=null,this.b.Vt(m.Qa, l[0])),n.frames.push(m),this.tc.push(m);this.Ab[b]=n}}};v.$o=function(){var b,a,c;b=0;for(a=this.c.length;b<a;b++)c=this.c[b],c.Eh=c.Ra.Kd};v.Mn=function(){if(!this.R){var b,a,c;b=0;for(a=this.tc.length;b<a;++b)c=this.tc[b],c.Qa.kq=null,c.Kd=null;this.pg=!1;this.$o()}};v.Pn=function(){if(!this.R&&this.c.length){var b,a,c;b=0;for(a=this.tc.length;b<a;++b)c=this.tc[b],c.Kd=this.b.q.en(c.Qa,this.b.Ba,c.co);this.$o()}};v.Fs=function(){if(!this.R&&!this.pg&&this.b.q){var b,a,c;b=0;for(a=this.tc.length;b< a;++b)c=this.tc[b],c.Kd=this.b.q.en(c.Qa,this.b.Ba,c.co);this.pg=!0}};v.Xo=function(){if(!this.R&&!this.c.length&&this.pg){var b,a,c;b=0;for(a=this.tc.length;b<a;++b)c=this.tc[b],this.b.q.deleteTexture(c.Kd),c.Kd=null;this.pg=!1}};var t=[];v.io=function(b){var a,c,e;R(t);a=0;for(c=this.tc.length;a<c;++a)e=this.tc[a].Qa,-1===t.indexOf(e)&&(b.drawImage(e,0,0),t.push(e))};r.lb=function(b){this.type=b;this.b=b.b;b=this.type.Ab[0].frames[0].Bi;this.$c?this.Oc.fh(b):this.Oc=new gb(b)};var c=r.lb.prototype; c.ua=function(){this.visible=0===this.Z[0];this.dk=this.ok=!1;this.Yf=0!==this.Z[3];this.fa=this.Em(this.Z[1])||this.type.Ab[0];this.n=this.Z[2];0>this.n&&(this.n=0);this.n>=this.fa.frames.length&&(this.n=this.fa.frames.length-1);var b=this.fa.frames[this.n];this.Oc.fh(b.Bi);this.Db=b.Db;this.Eb=b.Eb;this.cf=this.fa.speed;this.Xd=this.fa.$k;1===this.type.Ab.length&&1===this.type.Ab[0].frames.length||0===this.cf||(this.b.ml(this),this.ok=!0);this.$c?this.Jc.reset():this.Jc=new db;this.td=this.Jc.T; this.oe=!0;this.kd=0;this.ne=!0;this.tj=this.Sl="";this.nq=0;this.Ah=-1;this.type.Fs();var a,c,e,h,l,n,m,b=0;for(a=this.type.Ab.length;b<a;b++)for(h=this.type.Ab[b],c=0,e=h.frames.length;c<e;c++)l=h.frames[c],0===l.width&&(l.width=l.Qa.width,l.height=l.Qa.height),l.Kf&&(m=l.Qa,n=l.il,n.left=l.Cf/m.width,n.top=l.Df/m.height,n.right=(l.Cf+l.width)/m.width,n.bottom=(l.Df+l.height)/m.height,0===l.Cf&&0===l.Df&&l.width===m.width&&l.height===m.height&&(l.Kf=!1));this.Ra=this.fa.frames[this.n];this.Eh=this.Ra.Kd}; c.mc=function(){var b={a:this.fa.N,f:this.n,cas:this.cf,fs:this.td,ar:this.kd,at:this.Jc.T,rt:this.Xd};this.oe||(b.ap=this.oe);this.ne||(b.af=this.ne);return b};c.Wc=function(b){var a=this.Ir(b.a);a&&(this.fa=a);this.n=b.f;0>this.n&&(this.n=0);this.n>=this.fa.frames.length&&(this.n=this.fa.frames.length-1);this.cf=b.cas;this.td=b.fs;this.kd=b.ar;this.Jc.reset();this.Jc.T=b.at;this.oe=b.hasOwnProperty("ap")?b.ap:!0;this.ne=b.hasOwnProperty("af")?b.af:!0;b.hasOwnProperty("rt")?this.Xd=b.rt:this.Xd= this.fa.$k;this.Ra=this.fa.frames[this.n];this.Eh=this.Ra.Kd;this.Oc.fh(this.Ra.Bi);this.Db=this.Ra.Db;this.Eb=this.Ra.Eb};c.jj=function(b){this.n=b?0:this.fa.frames.length-1;this.oe=!1;this.Sl=this.fa.name;this.dk=!0;this.b.trigger(nc.prototype.e.Ap,this);this.b.trigger(nc.prototype.e.zp,this);this.dk=!1;this.kd=0};c.Yl=function(){return this.Jc.T};c.ob=function(){this.Jc.add(this.b.Oj(this));this.tj.length&&this.wq();0<=this.Ah&&this.qm();var b=this.Jc.T,a=this.fa,c=a.frames[this.n],e=c.duration/ this.cf;this.oe&&b>=this.td+e&&(this.ne?this.n++:this.n--,this.td+=e,this.n>=a.frames.length&&(a.bo?(this.ne=!1,this.n=a.frames.length-2):a.loop?this.n=this.Xd:(this.kd++,this.kd>=a.Zk?this.jj(!1):this.n=this.Xd)),0>this.n&&(a.bo?(this.n=1,this.ne=!0,a.loop||(this.kd++,this.kd>=a.Zk&&this.jj(!0))):a.loop?this.n=this.Xd:(this.kd++,this.kd>=a.Zk?this.jj(!0):this.n=this.Xd)),0>this.n?this.n=0:this.n>=a.frames.length&&(this.n=a.frames.length-1),b>this.td+a.frames[this.n].duration/this.cf&&(this.td=b), b=a.frames[this.n],this.Ze(c,b),this.b.aa=!0)};c.Em=function(b){var a,c,e;a=0;for(c=this.type.Ab.length;a<c;a++)if(e=this.type.Ab[a],mb(e.name,b))return e;return null};c.Ir=function(b){var a,c,e;a=0;for(c=this.type.Ab.length;a<c;a++)if(e=this.type.Ab[a],e.N===b)return e;return null};c.wq=function(){var b=this.fa.frames[this.n],a=this.Em(this.tj);this.tj="";!a||mb(a.name,this.fa.name)&&this.oe||(this.fa=a,this.cf=a.speed,this.Xd=a.$k,0>this.n&&(this.n=0),this.n>=this.fa.frames.length&&(this.n=this.fa.frames.length- 1),1===this.nq&&(this.n=0),this.oe=!0,this.td=this.Jc.T,this.ne=!0,this.Ze(b,this.fa.frames[this.n]),this.b.aa=!0)};c.qm=function(){var b=this.fa.frames[this.n],a=this.n;this.n=pa(this.Ah);0>this.n&&(this.n=0);this.n>=this.fa.frames.length&&(this.n=this.fa.frames.length-1);a!==this.n&&(this.Ze(b,this.fa.frames[this.n]),this.td=this.Jc.T,this.b.aa=!0);this.Ah=-1};c.Ze=function(b,a){var c=b.width,e=b.height,h=a.width,l=a.height;c!=h&&(this.width*=h/c);e!=l&&(this.height*=l/e);this.Db=a.Db;this.Eb=a.Eb; this.Oc.fh(a.Bi);this.La();this.Ra=a;this.Eh=a.Kd;c=0;for(e=this.I.length;c<e;c++)h=this.I[c],h.Qn&&h.Qn(b,a);this.b.trigger(nc.prototype.e.Ze,this)};c.ue=function(b){b.globalAlpha=this.opacity;var a=this.Ra,c=a.Kf,e=a.Qa,h=this.x,l=this.y,n=this.width,m=this.height;if(0===this.j&&0<=n&&0<=m)h-=this.Db*n,l-=this.Eb*m,this.b.Se&&(h=Math.round(h),l=Math.round(l)),c?b.drawImage(e,a.Cf,a.Df,a.width,a.height,h,l,n,m):b.drawImage(e,h,l,n,m);else{this.b.Se&&(h=Math.round(h),l=Math.round(l));b.save();var k= 0<n?1:-1,p=0<m?1:-1;b.translate(h,l);1===k&&1===p||b.scale(k,p);b.rotate(this.j*k*p);h=0-this.Db*ka(n);l=0-this.Eb*ka(m);c?b.drawImage(e,a.Cf,a.Df,a.width,a.height,h,l,ka(n),ka(m)):b.drawImage(e,h,l,ka(n),ka(m));b.restore()}};c.ef=function(b){this.wc(b)};c.wc=function(b){b.oc(this.Eh);b.dh(this.opacity);var a=this.Ra,c=this.yh;if(this.b.Se){var e=Math.round(this.x)-this.x,h=Math.round(this.y)-this.y;a.Kf?b.Te(c.ed+e,c.fd+h,c.hd+e,c.jd+h,c.Mc+e,c.Nc+h,c.Kc+e,c.Lc+h,a.il):b.Yg(c.ed+e,c.fd+h,c.hd+e, c.jd+h,c.Mc+e,c.Nc+h,c.Kc+e,c.Lc+h)}else a.Kf?b.Te(c.ed,c.fd,c.hd,c.jd,c.Mc,c.Nc,c.Kc,c.Lc,a.il):b.Yg(c.ed,c.fd,c.hd,c.jd,c.Mc,c.Nc,c.Kc,c.Lc)};c.Nr=function(b){var a=this.Ra,c,e;c=0;for(e=a.ck.length;c<e;c++)if(mb(b,a.ck[c][0]))return c;return-1};c.Rj=function(b,a){var c=this.Ra,e=c.ck,h;Q(b)?h=this.Nr(b):h=b-1;h=pa(h);if(0>h||h>=e.length)return a?this.x:this.y;var l=(e[h][1]-c.Db)*this.width,e=e[h][2],e=(e-c.Eb)*this.height,c=Math.cos(this.j);h=Math.sin(this.j);var n=l*c-e*h,e=e*c+l*h,l=n+this.x, e=e+this.y;return a?l:e};var b=new ba,l=!1;new ua(0,0,0,0);v.finish=function(c){if(l){if(c){var a=this.b.sb().ac.Bc;c=null.X();var d=b.le(),e,h;if(c.ga){c.ga=!1;R(c.c);e=0;for(h=d.length;e<h;++e)c.c[e]=d[e];if(a)for(R(c.L),e=0,h=null.c.length;e<h;++e)d=null.c[e],b.contains(d)||c.L.push(d)}else if(a)for(a=c.c.length,e=0,h=d.length;e<h;++e)c.c[a+e]=d[e],Da(c.L,d[e]);else za(c.c,d);null.Rd()}b.clear();l=!1}};q.prototype.zp=function(b){return mb(this.Sl,b)};q.prototype.Ap=function(){return!0};q.prototype.Ze= function(){return!0};r.e=new q;m.prototype.Rp=function(b){this.Ah=b;this.ok||(this.b.ml(this),this.ok=!0);this.dk||this.qm()};r.xa=new m;r.fc=new function(){}})();function Z(e){this.b=e} (function(){function e(b){l=b.x;f=b.y;a=b.z}function q(a,b,c,f){var e;e=d.length?d.pop():new m;e.init(a,b,c,f);return e}function m(){this.ih=this.id=this.y=this.x=this.Ri=this.Qi=this.uk=this.time=this.kl=0;this.nh=this.Xi=!1}function r(){}function v(){}var t=Z.prototype;t.Ob=function(a){this.qa=a;this.b=a.b};t.Ob.prototype.ua=function(){};t.lb=function(a){this.type=a;this.b=a.b;this.touches=[];this.Dk=!1};var c=t.lb.prototype,b={left:0,top:0};c.ig=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 l=0,f=0,a=0,d=[];m.prototype.init=function(a,b,c,d){var f=$a();this.kl=this.uk=this.time=f;this.Qi=a;this.Ri=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.ih=d;this.nh=this.Xi=!1};m.prototype.update=function(a,b,c,d,f,e){this.uk=this.time;this.time=a;this.x=b;this.y=c;this.width=d;this.height=f;this.pressure=e;!this.nh&&15<=Wa(this.Qi,this.Ri,this.x,this.y)&&(this.nh=!0)};m.prototype.Is=function(a,b){!this.Xi&&500<= $a()-this.kl&&!this.nh&&15>Wa(this.Qi,this.Ri,this.x,this.y)&&(this.Xi=!0,a.gd=this.ih,a.Of=this.id,a.hf=b,a.b.trigger(Z.prototype.e.Fp,a),a.od=this.x,a.pd=this.y,a.b.trigger(Z.prototype.e.Gp,a),a.hf=0)};var g=-1E3,h=-1E3,z=-1E4;m.prototype.An=function(a,b){if(!this.Xi){var c=$a();333>=c-this.kl&&!this.nh&&15>Wa(this.Qi,this.Ri,this.x,this.y)&&(a.gd=this.ih,a.Of=this.id,a.hf=b,666>=c-z&&25>Wa(g,h,this.x,this.y)?(a.b.trigger(Z.prototype.e.Dp,a),a.od=this.x,a.pd=this.y,a.b.trigger(Z.prototype.e.Ep, a),h=g=-1E3,z=-1E4):(a.b.trigger(Z.prototype.e.Pp,a),a.od=this.x,a.pd=this.y,a.b.trigger(Z.prototype.e.Qp,a),g=this.x,h=this.y,z=c),a.hf=0)}};c.ua=function(){this.ys=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.hf=this.Of=this.gd=this.pd=this.od=this.Ol=this.Nl=this.Ml=this.aq=this.$p=this.Zp=this.xi=this.wi=this.vi=0;this.Tt=0!==this.Z[0];var a=0<this.b.rb?document:this.b.canvas,b=document;this.b.hb?b=a=window.Canvas:this.b.Tb&&(b=a=window);var c=this;window.navigator.pointerEnabled? (a.addEventListener("pointerdown",function(a){c.On(a)},!1),a.addEventListener("pointermove",function(a){c.Nn(a)},!1),b.addEventListener("pointerup",function(a){c.ti(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.ti(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.On(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Nn(a)},!1),b.addEventListener("MSPointerUp",function(a){c.ti(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.ti(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.Sn(a)},!1),a.addEventListener("touchmove",function(a){c.Rn(a)},!1),b.addEventListener("touchend",function(a){c.Kk(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Kk(a,!0)},!1));if(this.ys){var d=function(a){a=a.reading;c.Ml=a.accelerationX;c.Nl=a.accelerationY;c.Ol=a.accelerationZ},f=function(a){a=a.reading;c.vi=a.yawDegrees;c.wi=a.pitchDegrees;c.xi=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16), g.addEventListener("readingchanged",d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation", function(a){c.vi=a.alpha||0;c.wi=a.beta||0;c.xi=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Zp=a.accelerationIncludingGravity.x||0,c.$p=a.accelerationIncludingGravity.y||0,c.aq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Ml=a.acceleration.x||0,c.Nl=a.acceleration.y||0,c.Ol=a.acceleration.z||0)},!1);this.Tt&&!this.b.za&&(jQuery(document).mousemove(function(a){c.Qs(a)}),jQuery(document).mousedown(function(a){c.Ps(a)}),jQuery(document).mouseup(function(a){c.Rs(a)})); !this.b.tf&&this.b.tb&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(e,null,{frequency:40});this.b.Kt(this)};c.Nn=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var c=this.ig(a.pointerId),d=$a();if(0<=c){var f=this.b.za?b:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,a.pageX-f.left,a.pageY-f.top,a.width||0,a.height||0,a.pressure||0)}}};c.On= function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.b.za?b:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;$a();this.gd=this.touches.length;this.Of=a.pointerId;this.touches.push(q(d,c,a.pointerId,this.gd));this.b.Vc=!0;this.b.trigger(Z.prototype.e.Hl,this);this.b.trigger(Z.prototype.e.Kl,this);this.od=d;this.pd=c;this.b.trigger(Z.prototype.e.gj,this);this.b.Vc=!1}};c.ti=function(a,b){if(a.pointerType!== a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.ig(a.pointerId);this.gd=0<=c?this.touches[c].ih:-1;this.Of=0<=c?this.touches[c].id:-1;this.b.Vc=!0;this.b.trigger(Z.prototype.e.Gl,this);this.b.trigger(Z.prototype.e.Jl,this);0<=c&&(b||this.touches[c].An(this,c),100>d.length&&d.push(this.touches[c]),this.touches.splice(c,1));this.b.Vc=!1}};c.Rn=function(a){a.preventDefault&&a.preventDefault();var c=$a(),d,f,e,g;d=0;for(f=a.changedTouches.length;d< f;d++)if(e=a.changedTouches[d],g=this.ig(e.identifier),0<=g){var h=this.b.za?b:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,e.pageX-h.left,e.pageY-h.top,2*(e.sv||e.zv||e.kv||e.ov||0),2*(e.tv||e.Av||e.lv||e.pv||0),e.cv||e.yv||e.jv||e.nv||0)}};c.Sn=function(a){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.b.za?b:jQuery(this.b.canvas).offset();$a();this.b.Vc=!0;var d,f,e,g;d=0;for(f=a.changedTouches.length;d<f;d++)if(e=a.changedTouches[d],g=this.ig(e.identifier),-1=== g){g=e.pageX-c.left;var h=e.pageY-c.top;this.gd=this.touches.length;this.Of=e.identifier;this.touches.push(q(g,h,e.identifier,this.gd));this.b.trigger(Z.prototype.e.Hl,this);this.b.trigger(Z.prototype.e.Kl,this);this.od=g;this.pd=h;this.b.trigger(Z.prototype.e.gj,this)}this.b.Vc=!1};c.Kk=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.Vc=!0;var c,f,e;c=0;for(f=a.changedTouches.length;c<f;c++)e=a.changedTouches[c],e=this.ig(e.identifier),0<=e&&(this.gd=this.touches[e].ih,this.Of=this.touches[e].id, this.b.trigger(Z.prototype.e.Gl,this),this.b.trigger(Z.prototype.e.Jl,this),b||this.touches[e].An(this,e),100>d.length&&d.push(this.touches[e]),this.touches.splice(e,1));this.b.Vc=!1};c.Yl=function(){return this.b.tb&&0===this.vi&&0!==a?90*a:this.vi};c.av=function(){return this.b.tb&&0===this.wi&&0!==f?90*f:this.wi};c.bv=function(){return this.b.tb&&0===this.xi&&0!==l?90*l:this.xi};c.Ps=function(a){this.Sn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Dk=!0};c.Qs=function(a){this.Dk&& this.Rn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};c.Rs=function(a){a.preventDefault&&this.b.Lm&&!this.b.Je&&a.preventDefault();this.b.Lm=!0;this.Kk({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Dk=!1};c.ll=function(){var a,b,c,d=$a();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.uk=d),c.Is(this,a)};r.prototype.Kl=function(){return!0};r.prototype.Jl=function(){return!0};r.prototype.gj=function(a){return a?this.b.Ti(a,this.od,this.pd): !1};r.prototype.Hl=function(a){a=Math.floor(a);return a===this.gd};r.prototype.Gl=function(a){a=Math.floor(a);return a===this.gd};r.prototype.Fp=function(){return!0};r.prototype.Pp=function(){return!0};r.prototype.Dp=function(){return!0};r.prototype.Gp=function(a){return a?this.b.Ti(a,this.od,this.pd):!1};r.prototype.Qp=function(a){return a?this.b.Ti(a,this.od,this.pd):!1};r.prototype.Ep=function(a){return a?this.b.Ti(a,this.od,this.pd):!1};t.e=new r;v.prototype.Wp=function(a,b){var c=this.hf;if(0> c||c>=this.touches.length)a.A(0);else{var d,f,e,g,h;fa(b)?(d=this.b.jg(0),f=d.scale,e=d.Md,g=d.zd,h=d.j,d.scale=1,d.Md=1,d.zd=1,d.j=0,a.A(d.mb(this.touches[c].x,this.touches[c].y,!0)),d.scale=f,d.Md=e,d.zd=g,d.j=h):(d=ga(b)?this.b.jg(b):this.b.Tj(b))?a.A(d.mb(this.touches[c].x,this.touches[c].y,!0)):a.A(0)}};v.prototype.Xp=function(a,b){var c=this.hf;if(0>c||c>=this.touches.length)a.A(0);else{var d,f,e,g,h;fa(b)?(d=this.b.jg(0),f=d.scale,e=d.Md,g=d.Ad,h=d.j,d.scale=1,d.Md=1,d.Ad=1,d.j=0,a.A(d.mb(this.touches[c].x, this.touches[c].y,!1)),d.scale=f,d.Md=e,d.Ad=g,d.j=h):(d=ga(b)?this.b.jg(b):this.b.Tj(b))?a.A(d.mb(this.touches[c].x,this.touches[c].y,!1)):a.A(0)}};t.fc=new v})();function sc(e){this.b=e} (function(){var e=sc.prototype;e.Ob=function(e){this.behavior=e;this.b=e.b};e.Ob.prototype.ua=function(){};e.lb=function(e,c){this.type=e;this.behavior=e.behavior;this.u=c;this.b=e.b;this.Fa=0};var q=e.lb.prototype,m=2*Math.PI,r=Math.PI/2,v=3*Math.PI/2;q.ua=function(){this.ab=1===this.Z[0];this.Pg=this.Z[1];this.Al=this.Z[2];this.Bd=this.Z[3];this.Bd+=Math.random()*this.Z[4];0===this.Bd?this.Fa=0:(this.Fa=this.Z[5]/this.Bd*m,this.Fa+=Math.random()*this.Z[6]/this.Bd*m);this.ub=this.Z[7];this.ub+=Math.random()* this.Z[8];this.Zg=this.Ge=this.O=0;this.init()};q.mc=function(){return{i:this.Fa,a:this.ab,mv:this.Pg,w:this.Al,p:this.Bd,mag:this.ub,iv:this.O,iv2:this.Ge,r:this.Zg,lkv:this.Hb,lkv2:this.Eg}};q.Wc=function(e){this.Fa=e.i;this.ab=e.a;this.Pg=e.mv;this.Al=e.w;this.Bd=e.p;this.ub=e.mag;this.O=e.iv;this.Ge=e.iv2||0;this.Zg=e.r;this.Hb=e.lkv;this.Eg=e.lkv2||0};q.init=function(){switch(this.Pg){case 0:this.O=this.u.x;break;case 1:this.O=this.u.y;break;case 2:this.O=this.u.width;this.Zg=this.u.height/this.u.width; break;case 3:this.O=this.u.width;break;case 4:this.O=this.u.height;break;case 5:this.O=this.u.j;this.ub=V(this.ub);break;case 6:this.O=this.u.opacity;break;case 7:this.O=0;break;case 8:this.O=this.u.x,this.Ge=this.u.y}this.Hb=this.O;this.Eg=this.Ge};q.Jd=function(e){e=e%m;switch(this.Al){case 0:return Math.sin(e);case 1:return e<=r?e/r:e<=v?1-2*(e-r)/Math.PI:(e-v)/r-1;case 2:return 2*e/m-1;case 3:return-2*e/m+1;case 4:return e<Math.PI?-1:1}return 0};q.ob=function(){var e=this.b.Oj(this.u);if(this.ab&& 0!==e){0===this.Bd?this.Fa=0:(this.Fa+=e/this.Bd*m,this.Fa=this.Fa%m);switch(this.Pg){case 0:this.u.x!==this.Hb&&(this.O+=this.u.x-this.Hb);this.u.x=this.O+this.Jd(this.Fa)*this.ub;this.Hb=this.u.x;break;case 1:this.u.y!==this.Hb&&(this.O+=this.u.y-this.Hb);this.u.y=this.O+this.Jd(this.Fa)*this.ub;this.Hb=this.u.y;break;case 2:this.u.width=this.O+this.Jd(this.Fa)*this.ub;this.u.height=this.u.width*this.Zg;break;case 3:this.u.width=this.O+this.Jd(this.Fa)*this.ub;break;case 4:this.u.height=this.O+ this.Jd(this.Fa)*this.ub;break;case 5:this.u.j!==this.Hb&&(this.O=Ja(this.O+(this.u.j-this.Hb)));this.u.j=Ja(this.O+this.Jd(this.Fa)*this.ub);this.Hb=this.u.j;break;case 6:this.u.opacity=this.O+this.Jd(this.Fa)*this.ub/100;0>this.u.opacity?this.u.opacity=0:1<this.u.opacity&&(this.u.opacity=1);break;case 8:this.u.x!==this.Hb&&(this.O+=this.u.x-this.Hb),this.u.y!==this.Eg&&(this.Ge+=this.u.y-this.Eg),this.u.x=this.O+Math.cos(this.u.j)*this.Jd(this.Fa)*this.ub,this.u.y=this.Ge+Math.sin(this.u.j)*this.Jd(this.Fa)* this.ub,this.Hb=this.u.x,this.Eg=this.u.y}this.u.La()}};q.Qn=function(e,c){switch(this.Pg){case 2:this.O*=c.width/e.width;this.Zg=c.height/c.width;break;case 3:this.O*=c.width/e.width;break;case 4:this.O*=c.height/e.height}};e.e=new function(){};e.xa=new function(){};e.fc=new function(){}})(); function mc(){return[pc,qc,oc,nc,Z,sc,W.prototype.e.Dl,W.prototype.xa.mp,oc.prototype.xa.CallFunction,W.prototype.e.lp,nc.prototype.xa.Up,W.prototype.e.sp,Z.prototype.e.gj,nc.prototype.e.vp,nc.prototype.xa.np,W.prototype.xa.Tp,W.prototype.e.Cl,nc.prototype.xa.Sp,oc.prototype.e.vh,nc.prototype.xa.fp,nc.prototype.xa.Rp,nc.prototype.xa.yp,W.prototype.xa.op,pc.prototype.xa.Vp,pc.prototype.xa.Play,pc.prototype.e.up,W.prototype.e.tp,qc.prototype.xa.pp]};
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка