Файловый менеджер - Редактировать - /home/jogoso94/public_html/jogos/woblox/c2runtime.js
�азад
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com 'use strict';var ba,ca,fa,ga,B,ia,ja,M,O,ka,la,ma,oa,ta,ua,P,va,wa,Q,za,Aa,Ba,R,Ca,Da,Ea,S,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,T,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,U,Qb,Rb,V,Sb,Tb={},Ub={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype}); (function(){function g(d,l,a,f){this.set(d,l,a,f)}function q(){this.Ca=this.Ba=this.Ea=this.Da=this.Qa=this.Pa=this.fa=this.ea=0}function p(d,l,a,f){d<l?a<f?(s=d<a?d:a,x=l>f?l:f):(s=d<f?d:f,x=l>a?l:a):a<f?(s=l<a?l:a,x=d>f?d:f):(s=l<f?l:f,x=d>a?d:a)}function r(){this.items=this.sc=null;this.Ye=0;v&&(this.sc=new Set);this.yf=[];this.wd=!0}function u(d){w[aa++]=d}function c(){this.la=this.wi=this.y=this.Ui=0}function b(d){this.Na=[];this.Zg=this.ah=this.bh=this.$g=0;this.Fg(d)}function h(d,l){this.Xi= d;this.Wi=l;this.cells={}}function e(d,l){this.Xi=d;this.Wi=l;this.cells={}}function m(d,l,a){var f;return pa.length?(f=pa.pop(),f.wj=d,f.x=l,f.y=a,f):new ca(d,l,a)}function a(d,l,a){this.wj=d;this.x=l;this.y=a;this.Ta=new fa}function k(d,l,a){var f;return qa.length?(f=qa.pop(),f.wj=d,f.x=l,f.y=a,f):new ga(d,l,a)}function n(d,l,a){this.wj=d;this.x=l;this.y=a;this.Ta=[];this.Xe=!0;this.Ec=new fa;this.Cf=!1}function f(d,l){return d.xc-l.xc}B=function(d){window.console&&window.console.log&&window.console.log(d)}; ia=function(d){window.console&&window.console.error&&window.console.error(d)};ba=function(d){return d};ja=function(d){return"undefined"===typeof d};M=function(d){return"number"===typeof d};O=function(d){return"string"===typeof d};ka=function(d){return 0<d&&0===(d-1&d)};la=function(d){--d;for(var l=1;32>l;l<<=1)d|=d>>l;return d+1};ma=function(d){return 0>d?-d:d};oa=function(d,l){return d>l?d:l};ta=function(d,l){return d<l?d:l};ua=Math.PI;P=function(d){return 0<=d?d|0:(d|0)-1};va=function(d){var l= d|0;return l===d?l:l+1};wa=function(d,l,a,f,b,v,w,k){var e,n,s,t;d<a?(n=d,e=a):(n=a,e=d);b<w?(t=b,s=w):(t=w,s=b);if(e<t||n>s)return!1;l<f?(n=l,e=f):(n=f,e=l);v<k?(t=v,s=k):(t=k,s=v);if(e<t||n>s)return!1;e=b-d+w-a;n=v-l+k-f;d=a-d;l=f-l;b=w-b;v=k-v;k=ma(l*b-v*d);return ma(b*n-v*e)>k?!1:ma(d*n-l*e)<=k};g.prototype.set=function(d,l,a,f){this.left=d;this.top=l;this.right=a;this.bottom=f};g.prototype.Jf=function(d){this.left=d.left;this.top=d.top;this.right=d.right;this.bottom=d.bottom};g.prototype.width= function(){return this.right-this.left};g.prototype.height=function(){return this.bottom-this.top};g.prototype.offset=function(d,l){this.left+=d;this.top+=l;this.right+=d;this.bottom+=l;return this};g.prototype.normalize=function(){var d=0;this.left>this.right&&(d=this.left,this.left=this.right,this.right=d);this.top>this.bottom&&(d=this.top,this.top=this.bottom,this.bottom=d)};g.prototype.Er=function(d){return!(d.right<this.left||d.bottom<this.top||d.left>this.right||d.top>this.bottom)};g.prototype.Fr= function(d,l,a){return!(d.right+l<this.left||d.bottom+a<this.top||d.left+l>this.right||d.top+a>this.bottom)};g.prototype.ab=function(d,l){return d>=this.left&&d<=this.right&&l>=this.top&&l<=this.bottom};g.prototype.uh=function(d){return this.left===d.left&&this.top===d.top&&this.right===d.right&&this.bottom===d.bottom};Q=g;q.prototype.Eg=function(d){this.ea=d.left;this.fa=d.top;this.Pa=d.right;this.Qa=d.top;this.Da=d.right;this.Ea=d.bottom;this.Ba=d.left;this.Ca=d.bottom};q.prototype.En=function(d, l){if(0===l)this.Eg(d);else{var a=Math.sin(l),f=Math.cos(l),b=d.left*a,v=d.top*a,k=d.right*a,a=d.bottom*a,w=d.left*f,e=d.top*f,n=d.right*f,f=d.bottom*f;this.ea=w-v;this.fa=e+b;this.Pa=n-v;this.Qa=e+k;this.Da=n-a;this.Ea=f+k;this.Ba=w-a;this.Ca=f+b}};q.prototype.offset=function(d,l){this.ea+=d;this.fa+=l;this.Pa+=d;this.Qa+=l;this.Da+=d;this.Ea+=l;this.Ba+=d;this.Ca+=l;return this};var s=0,x=0;q.prototype.ol=function(d){p(this.ea,this.Pa,this.Da,this.Ba);d.left=s;d.right=x;p(this.fa,this.Qa,this.Ea, this.Ca);d.top=s;d.bottom=x};q.prototype.ab=function(d,l){var a=this.Pa-this.ea,f=this.Qa-this.fa,b=this.Da-this.ea,v=this.Ea-this.fa,k=d-this.ea,w=l-this.fa,e=a*a+f*f,n=a*b+f*v,f=a*k+f*w,s=b*b+v*v,t=b*k+v*w,c=1/(e*s-n*n),a=(s*f-n*t)*c,e=(e*t-n*f)*c;if(0<=a&&0<e&&1>a+e)return!0;a=this.Ba-this.ea;f=this.Ca-this.fa;e=a*a+f*f;n=a*b+f*v;f=a*k+f*w;c=1/(e*s-n*n);a=(s*f-n*t)*c;e=(e*t-n*f)*c;return 0<=a&&0<e&&1>a+e};q.prototype.hc=function(d,l){if(l)switch(d){case 0:return this.ea;case 1:return this.Pa;case 2:return this.Da; case 3:return this.Ba;case 4:return this.ea;default:return this.ea}else switch(d){case 0:return this.fa;case 1:return this.Qa;case 2:return this.Ea;case 3:return this.Ca;case 4:return this.fa;default:return this.fa}};q.prototype.Um=function(){return(this.ea+this.Pa+this.Da+this.Ba)/4};q.prototype.Vm=function(){return(this.fa+this.Qa+this.Ea+this.Ca)/4};q.prototype.km=function(d){var l=d.Um(),a=d.Vm();if(this.ab(l,a))return!0;l=this.Um();a=this.Vm();if(d.ab(l,a))return!0;var f,b,v,k,w,e,n,s;for(n= 0;4>n;n++)for(s=0;4>s;s++)if(l=this.hc(n,!0),a=this.hc(n,!1),f=this.hc(n+1,!0),b=this.hc(n+1,!1),v=d.hc(s,!0),k=d.hc(s,!1),w=d.hc(s+1,!0),e=d.hc(s+1,!1),wa(l,a,f,b,v,k,w,e))return!0;return!1};za=q;Aa=function(d,l){for(var a in l)l.hasOwnProperty(a)&&(d[a]=l[a]);return d};Ba=function(d,l){var a,f;l=P(l);if(!(0>l||l>=d.length)){a=l;for(f=d.length-1;a<f;a++)d[a]=d[a+1];d.length=f}};R=function(d,l){d.length=l.length;var a,f;a=0;for(f=l.length;a<f;a++)d[a]=l[a]};Ca=function(d,l){d.push.apply(d,l)};Da= function(d,l){var a,f;a=0;for(f=d.length;a<f;++a)if(d[a]===l)return a;return-1};Ea=function(d,l){var a=Da(d,l);-1!==a&&Ba(d,a)};S=function(d){return d/(180/ua)};Fa=function(d){return 180/ua*d};Ga=function(d){d%=360;0>d&&(d+=360);return d};Ha=function(d){d%=2*ua;0>d&&(d+=2*ua);return d};Ia=function(d){return Ga(Fa(d))};Ja=function(d){return Ha(S(d))};Ka=function(d,l,a,f){return Math.atan2(f-l,a-d)};La=function(d,l){if(d===l)return 0;var a=Math.sin(d),f=Math.cos(d),b=Math.sin(l),v=Math.cos(l),a=a*b+ f*v;return 1<=a?0:-1>=a?ua:Math.acos(a)};Ma=function(d,l,a){var f=Math.sin(d),b=Math.cos(d),v=Math.sin(l),k=Math.cos(l);return Math.acos(f*v+b*k)>a?0<b*v-f*k?Ha(d+a):Ha(d-a):Ha(l)};Na=function(d,l){var a=Math.sin(d),f=Math.cos(d),b=Math.sin(l),v=Math.cos(l);return 0>=f*b-a*v};Oa=function(d,l,a,f){d=a-d;l=f-l;return Math.sqrt(d*d+l*l)};Pa=function(d,l){return!d!==!l};Qa=function(d,l,a){return d+(l-d)*a};Ra=function(d){for(var l in d)if(d.hasOwnProperty(l))return!0;return!1};Sa=function(d){for(var l in d)d.hasOwnProperty(l)&& delete d[l]};var F=+new Date;T=function(){if("undefined"!==typeof window.performance){var d=window.performance;if("undefined"!==typeof d.now)return d.now();if("undefined"!==typeof d.webkitNow)return d.webkitNow();if("undefined"!==typeof d.mozNow)return d.mozNow();if("undefined"!==typeof d.msNow)return d.msNow()}return Date.now()-F};var t=!1,d=t=!1,l=!1;"undefined"!==typeof window&&(t=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),t=!t&&/safari/i.test(navigator.userAgent), d=/(iphone|ipod|ipad)/i.test(navigator.userAgent),l=window.c2ejecta);var v=!t&&!l&&!d&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;r.prototype.contains=function(d){return this.bd()?!1:v?this.sc.has(d):this.items&&this.items.hasOwnProperty(d)};r.prototype.add=function(d){if(v)this.sc.has(d)||(this.sc.add(d),this.wd=!1);else{var l=d.toString(),a=this.items;a?a.hasOwnProperty(l)||(a[l]=d,this.Ye++,this.wd=!1):(this.items={},this.items[l]=d,this.Ye=1,this.wd=!1)}};r.prototype.remove= function(d){if(!this.bd())if(v)this.sc.has(d)&&(this.sc["delete"](d),this.wd=!1);else if(this.items){d=d.toString();var l=this.items;l.hasOwnProperty(d)&&(delete l[d],this.Ye--,this.wd=!1)}};r.prototype.clear=function(){this.bd()||(v?this.sc.clear():(this.items=null,this.Ye=0),this.yf.length=0,this.wd=!0)};r.prototype.bd=function(){return 0===this.count()};r.prototype.count=function(){return v?this.sc.size:this.Ye};var w=null,aa=0;r.prototype.Fs=function(){if(!this.wd){if(v)this.yf.length=this.sc.size, w=this.yf,aa=0,this.sc.forEach(u),w=null,aa=0;else{var d=this.yf;d.length=this.Ye;var l,a=0,f=this.items;if(f)for(l in f)f.hasOwnProperty(l)&&(d[a++]=f[l])}this.wd=!0}};r.prototype.wc=function(){this.Fs();return this.yf};fa=r;new fa;Ta=function(d,l){v?Ua(d,l.sc):Va(d,l.wc())};Ua=function(d,l){var a,f,b,v;f=a=0;for(b=d.length;a<b;++a)v=d[a],l.has(v)||(d[f++]=v);d.length=f};Va=function(d,l){var a,f,b,v;f=a=0;for(b=d.length;a<b;++a)v=d[a],-1===Da(l,v)&&(d[f++]=v);d.length=f};c.prototype.add=function(d){this.y= d-this.Ui;this.wi=this.la+this.y;this.Ui=this.wi-this.la-this.y;this.la=this.wi};c.prototype.reset=function(){this.la=this.wi=this.y=this.Ui=0};Wa=c;Xa=function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.Fg=function(d){this.pn=d;this.qc=d.length/2;this.Na.length=d.length;this.eh=this.fh=-1;this.rl=0};b.prototype.Ve=function(){return!this.pn.length};b.prototype.ga=function(){for(var d=this.Na,l=d[0],a=l,f=d[1],b=f,v,k,w=1,e=this.qc;w<e;++w)k=2*w,v=d[k],k=d[k+1],v<l&&(l=v), v>a&&(a=v),k<f&&(f=k),k>b&&(b=k);this.$g=l;this.ah=a;this.bh=f;this.Zg=b};b.prototype.Eg=function(d,l,a){this.Na.length=8;this.qc=4;var f=this.Na;f[0]=d.left-l;f[1]=d.top-a;f[2]=d.right-l;f[3]=d.top-a;f[4]=d.right-l;f[5]=d.bottom-a;f[6]=d.left-l;f[7]=d.bottom-a;this.fh=d.right-d.left;this.eh=d.bottom-d.top;this.ga()};b.prototype.rf=function(d,l,a,f,b){this.Na.length=8;this.qc=4;var v=this.Na;v[0]=d.ea-l;v[1]=d.fa-a;v[2]=d.Pa-l;v[3]=d.Qa-a;v[4]=d.Da-l;v[5]=d.Ea-a;v[6]=d.Ba-l;v[7]=d.Ca-a;this.fh=f; this.eh=b;this.ga()};b.prototype.Dn=function(d){this.qc=d.qc;R(this.Na,d.Na);this.$g=d.$g;this.bh-d.bh;this.ah=d.ah;this.Zg=d.Zg};b.prototype.Ne=function(d,l,a){if(this.fh!==d||this.eh!==l||this.rl!==a){this.fh=d;this.eh=l;this.rl=a;var f,b,v,k,w,e=0,n=1,s=this.pn,t=this.Na;0!==a&&(e=Math.sin(a),n=Math.cos(a));a=0;for(v=this.qc;a<v;a++)f=2*a,b=f+1,k=s[f]*d,w=s[b]*l,t[f]=k*n-w*e,t[b]=w*n+k*e;this.ga()}};b.prototype.ab=function(d,l){var a=this.Na;if(d===a[0]&&l===a[1])return!0;var f,b,v,k=this.qc,w= this.$g-110,e=this.bh-101,n=this.ah+131,s=this.Zg+120,t,c,m=0,h=0;for(f=0;f<k;f++)b=2*f,v=(f+1)%k*2,t=a[b],b=a[b+1],c=a[v],v=a[v+1],wa(w,e,d,l,t,b,c,v)&&m++,wa(n,s,d,l,t,b,c,v)&&h++;return 1===m%2||1===h%2};b.prototype.$f=function(d,l,a){var f=d.Na,b=this.Na;if(this.ab(f[0]+l,f[1]+a)||d.ab(b[0]-l,b[1]-a))return!0;var v,k,w,e,n,s,t,c,m,h,aa,x;v=0;for(e=this.qc;v<e;v++)for(k=2*v,w=(v+1)%e*2,c=b[k],k=b[k+1],m=b[w],h=b[w+1],w=0,t=d.qc;w<t;w++)if(n=2*w,s=(w+1)%t*2,aa=f[n]+l,n=f[n+1]+a,x=f[s]+l,s=f[s+1]+ a,wa(c,k,m,h,aa,n,x,s))return!0;return!1};Ya=b;h.prototype.Fd=function(d,l,a){var f;f=this.cells[d];return f?(f=f[l])?f:a?(f=m(this,d,l),this.cells[d][l]=f):null:a?(f=m(this,d,l),this.cells[d]={},this.cells[d][l]=f):null};h.prototype.Ab=function(d){return P(d/this.Xi)};h.prototype.Bb=function(d){return P(d/this.Wi)};h.prototype.update=function(d,l,a){var f,b,v,k,w;if(l)for(f=l.left,b=l.right;f<=b;++f)for(v=l.top,k=l.bottom;v<=k;++v)if(!a||!a.ab(f,v))if(w=this.Fd(f,v,!1))w.remove(d),w.bd()&&(w.Ta.clear(), 1E3>pa.length&&pa.push(w),this.cells[f][v]=null);if(a)for(f=a.left,b=a.right;f<=b;++f)for(v=a.top,k=a.bottom;v<=k;++v)l&&l.ab(f,v)||this.Fd(f,v,!0).Cj(d)};h.prototype.li=function(d,l){var a,f,b,v,k,w;a=this.Ab(d.left);b=this.Bb(d.top);f=this.Ab(d.right);for(k=this.Bb(d.bottom);a<=f;++a)for(v=b;v<=k;++v)(w=this.Fd(a,v,!1))&&w.dump(l)};Za=h;e.prototype.Fd=function(d,l,a){var f;f=this.cells[d];return f?(f=f[l])?f:a?(f=k(this,d,l),this.cells[d][l]=f):null:a?(f=k(this,d,l),this.cells[d]={},this.cells[d][l]= f):null};e.prototype.Ab=function(d){return P(d/this.Xi)};e.prototype.Bb=function(d){return P(d/this.Wi)};e.prototype.update=function(d,l,a){var f,b,v,k,w;if(l)for(f=l.left,b=l.right;f<=b;++f)for(v=l.top,k=l.bottom;v<=k;++v)if(!a||!a.ab(f,v))if(w=this.Fd(f,v,!1))w.remove(d),w.bd()&&(w.reset(),1E3>qa.length&&qa.push(w),this.cells[f][v]=null);if(a)for(f=a.left,b=a.right;f<=b;++f)for(v=a.top,k=a.bottom;v<=k;++v)l&&l.ab(f,v)||this.Fd(f,v,!0).Cj(d)};e.prototype.li=function(d,l,a,f,b){var v,k;d=this.Ab(d); l=this.Bb(l);a=this.Ab(a);for(v=this.Bb(f);d<=a;++d)for(f=l;f<=v;++f)(k=this.Fd(d,f,!1))&&k.dump(b)};e.prototype.Ur=function(d){var l,a,f,b,v;l=d.left;f=d.top;a=d.right;for(b=d.bottom;l<=a;++l)for(d=f;d<=b;++d)if(v=this.Fd(l,d,!1))v.Xe=!1};$a=e;var pa=[];a.prototype.bd=function(){return this.Ta.bd()};a.prototype.Cj=function(d){this.Ta.add(d)};a.prototype.remove=function(d){this.Ta.remove(d)};a.prototype.dump=function(d){Ca(d,this.Ta.wc())};ca=a;var qa=[];n.prototype.bd=function(){if(!this.Ta.length)return!0; if(this.Ta.length>this.Ec.count())return!1;this.kj();return!0};n.prototype.Cj=function(d){this.Ec.contains(d)?(this.Ec.remove(d),this.Ec.bd()&&(this.Cf=!1)):this.Ta.length?(this.Ta[this.Ta.length-1].Qb()>d.Qb()&&(this.Xe=!1),this.Ta.push(d)):(this.Ta.push(d),this.Xe=!0)};n.prototype.remove=function(d){this.Ec.add(d);this.Cf=!0;30<=this.Ec.count()&&this.kj()};n.prototype.kj=function(){this.Cf&&(this.Ec.count()===this.Ta.length?this.reset():(Ta(this.Ta,this.Ec),this.Ec.clear(),this.Cf=!1))};n.prototype.sq= function(){this.Xe||(this.Ta.sort(f),this.Xe=!0)};n.prototype.reset=function(){this.Ta.length=0;this.Xe=!0;this.Ec.clear();this.Cf=!1};n.prototype.dump=function(d){this.kj();this.sq();this.Ta.length&&d.push(this.Ta)};ga=n;var C="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");ab=function(d){return 0>=d||11<=d?"source-over":C[d-1]};bb=function(d,l,a){if(a)switch(d.cb=a.ONE,d.bb=a.ONE_MINUS_SRC_ALPHA,l){case 1:d.cb=a.ONE; d.bb=a.ONE;break;case 3:d.cb=a.ONE;d.bb=a.ZERO;break;case 4:d.cb=a.ONE_MINUS_DST_ALPHA;d.bb=a.ONE;break;case 5:d.cb=a.DST_ALPHA;d.bb=a.ZERO;break;case 6:d.cb=a.ZERO;d.bb=a.SRC_ALPHA;break;case 7:d.cb=a.ONE_MINUS_DST_ALPHA;d.bb=a.ZERO;break;case 8:d.cb=a.ZERO;d.bb=a.ONE_MINUS_SRC_ALPHA;break;case 9:d.cb=a.DST_ALPHA;d.bb=a.ONE_MINUS_SRC_ALPHA;break;case 10:d.cb=a.ONE_MINUS_DST_ALPHA,d.bb=a.SRC_ALPHA}};cb=function(d){return Math.round(1E6*d)/1E6};db=function(d,l){return"string"!==typeof d||"string"!== typeof l||d.length!==l.length?!1:d===l?!0:d.toLowerCase()===l.toLowerCase()};eb=function(d){d=d.target;return!d||d===document||d===window||document&&document.body&&d===document.body||db(d.tagName,"canvas")?!0:!1}})();var Vb="undefined"!==typeof Float32Array?Float32Array:Array;function Wb(g){var q=new Vb(3);g&&(q[0]=g[0],q[1]=g[1],q[2]=g[2]);return q} function Xb(g){var q=new Vb(16);g&&(q[0]=g[0],q[1]=g[1],q[2]=g[2],q[3]=g[3],q[4]=g[4],q[5]=g[5],q[6]=g[6],q[7]=g[7],q[8]=g[8],q[9]=g[9],q[10]=g[10],q[11]=g[11],q[12]=g[12],q[13]=g[13],q[14]=g[14],q[15]=g[15]);return q}function Yb(g,q){q[0]=g[0];q[1]=g[1];q[2]=g[2];q[3]=g[3];q[4]=g[4];q[5]=g[5];q[6]=g[6];q[7]=g[7];q[8]=g[8];q[9]=g[9];q[10]=g[10];q[11]=g[11];q[12]=g[12];q[13]=g[13];q[14]=g[14];q[15]=g[15]} function Zb(g,q){var p=q[0],r=q[1];q=q[2];g[0]*=p;g[1]*=p;g[2]*=p;g[3]*=p;g[4]*=r;g[5]*=r;g[6]*=r;g[7]*=r;g[8]*=q;g[9]*=q;g[10]*=q;g[11]*=q} function $b(g,q,p,r){r||(r=Xb());var u,c,b,h,e,m,a,k,n=g[0],f=g[1];g=g[2];c=p[0];b=p[1];u=p[2];p=q[1];m=q[2];n===q[0]&&f===p&&g===m?(g=r,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(p=n-q[0],m=f-q[1],a=g-q[2],k=1/Math.sqrt(p*p+m*m+a*a),p*=k,m*=k,a*=k,q=b*a-u*m,u=u*p-c*a,c=c*m-b*p,(k=Math.sqrt(q*q+u*u+c*c))?(k=1/k,q*=k,u*=k,c*=k):c=u=q=0,b=m*c-a*u,h=a*q-p*c,e=p*u-m*q,(k=Math.sqrt(b*b+h*h+e*e))?(k=1/k,b*=k,h*=k,e*=k):e=h=b=0, r[0]=q,r[1]=b,r[2]=p,r[3]=0,r[4]=u,r[5]=h,r[6]=m,r[7]=0,r[8]=c,r[9]=e,r[10]=a,r[11]=0,r[12]=-(q*n+u*f+c*g),r[13]=-(b*n+h*f+e*g),r[14]=-(p*n+m*f+a*g),r[15]=1)} (function(){function g(c){this.ne=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.sl=Wb([0,0,100]);this.Em=Wb([0,0,0]);this.Un=Wb([0,1,0]);this.Ok=Wb([1,1,1]);this.Hl=!0;this.Tj=Xb();this.Vb=Xb();this.wm=Xb();this.aj=Xb();this.k=c;this.gm()}function q(c,b,h){this.k=c;this.Gg=b;this.name=h;this.Ub=c.getAttribLocation(b,"aPos");this.Ld=c.getAttribLocation(b,"aTex");this.Cm=c.getUniformLocation(b,"matP");this.Wh=c.getUniformLocation(b,"matMV");this.ef= c.getUniformLocation(b,"opacity");this.Dm=c.getUniformLocation(b,"samplerFront");this.ng=c.getUniformLocation(b,"samplerBack");this.xe=c.getUniformLocation(b,"destStart");this.we=c.getUniformLocation(b,"destEnd");this.Rj=c.getUniformLocation(b,"seconds");this.Qj=c.getUniformLocation(b,"pixelWidth");this.Pj=c.getUniformLocation(b,"pixelHeight");this.mg=c.getUniformLocation(b,"layerScale");this.lg=c.getUniformLocation(b,"layerAngle");this.pg=c.getUniformLocation(b,"viewOrigin");this.og=c.getUniformLocation(b, "scrollPos");this.Ar=!!(this.Qj||this.Pj||this.Rj||this.ng||this.xe||this.we||this.mg||this.lg||this.pg||this.og);this.Mm=this.Nm=-999;this.Zh=1;this.Im=this.Hm=0;this.Km=this.Gm=this.Fm=1;this.Pm=this.Om=this.Rm=this.Qm=this.Jm=0;this.Kj=[];this.Lm=Xb();this.ef&&c.uniform1f(this.ef,1);this.Dm&&c.uniform1i(this.Dm,0);this.ng&&c.uniform1i(this.ng,1);this.xe&&c.uniform2f(this.xe,0,0);this.we&&c.uniform2f(this.we,1,1);this.mg&&c.uniform1f(this.mg,1);this.lg&&c.uniform1f(this.lg,0);this.pg&&c.uniform2f(this.pg, 0,0);this.og&&c.uniform2f(this.og,0,0);this.je=!1}function p(c,b){this.type=c;this.n=b;this.k=b.k;this.Dc=this.ac=this.en=0;this.Z=this.uc=null;this.Fn=[]}g.prototype.gm=function(){var c=this.k,b;this.xm=1;this.se=this.re=null;this.rh=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.ym=c.ONE;this.vm=c.ONE_MINUS_SRC_ALPHA;this.gk=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.gk);this.Tg= Array(4);this.Kg=Array(4);for(b=0;4>b;b++)this.Tg[b]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Tg[b]),this.Kg[b]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Kg[b]);this.Sc=0;this.Cr=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Cr);this.Mk=new Float32Array(16E3);this.zk=new Float32Array(16E3);this.ds=new Float32Array(32E3);for(var h=new Uint16Array(12E3),e=b=0;12E3>b;)h[b++]=e,h[b++]=e+1,h[b++]=e+2,h[b++]=e,h[b++]=e+2,h[b++]=e+3,e+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,h, c.STATIC_DRAW);this.hk=this.Oc=0;this.Oa=[];b=this.$i({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>"); this.Oa.push(b);b=this.$i({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.Oa.push(b);for(var m in ac)ac.hasOwnProperty(m)&&this.Oa.push(this.$i(ac[m], "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}",m));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.vd=[];this.Qc=0;this.sb=!1;this.Al=this.hg=-1;this.Mf=null;this.Sq=c.createFramebuffer();this.un=null;this.Ud=Wb([0,0,0]);this.Sm=c.getParameter(c.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Sm&& (this.Sm=2048);this.Kc(0)};q.prototype.Ik=function(c){var b=this.Lm;if(b[0]!==c[0]||b[1]!==c[1]||b[2]!==c[2]||b[3]!==c[3]||b[4]!==c[4]||b[5]!==c[5]||b[6]!==c[6]||b[7]!==c[7]||b[8]!==c[8]||b[9]!==c[9]||b[10]!==c[10]||b[11]!==c[11]||b[12]!==c[12]||b[13]!==c[13]||b[14]!==c[14]||b[15]!==c[15])Yb(c,this.Lm),this.k.uniformMatrix4fv(this.Wh,!1,c)};g.prototype.$i=function(c,b,h){var e=this.k,m=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(m,c.src);e.compileShader(m);if(!e.getShaderParameter(m,e.COMPILE_STATUS))return e.deleteShader(m), null;var a=e.createShader(e.VERTEX_SHADER);e.shaderSource(a,b);e.compileShader(a);if(!e.getShaderParameter(a,e.COMPILE_STATUS))return e.deleteShader(m),e.deleteShader(a),null;b=e.createProgram();e.attachShader(b,m);e.attachShader(b,a);e.linkProgram(b);if(!e.getProgramParameter(b,e.LINK_STATUS))return e.deleteShader(m),e.deleteShader(a),e.deleteProgram(b),null;e.useProgram(b);e.deleteShader(m);e.deleteShader(a);h=new q(e,b,h);h.ij=c.ij||0;h.jj=c.jj||0;h.zl=!!c.zl;h.ll=!!c.ll;h.J=c.J||[];c=0;for(m= h.J.length;c<m;c++)h.J[c][1]=e.getUniformLocation(b,h.J[c][0]),h.Kj.push(0),e.uniform1f(h.J[c][1],0);return h};g.prototype.vj=function(c){var b,h;b=0;for(h=this.Oa.length;b<h;b++)if(this.Oa[b].name===c)return b;return-1};g.prototype.nn=function(c,b,h){var e=this.Vb,m=this.Tj,a=[0,0,0,0,0,0,0,0];a[0]=e[0]*c+e[4]*b+e[12];a[1]=e[1]*c+e[5]*b+e[13];a[2]=e[2]*c+e[6]*b+e[14];a[3]=e[3]*c+e[7]*b+e[15];a[4]=m[0]*a[0]+m[4]*a[1]+m[8]*a[2]+m[12]*a[3];a[5]=m[1]*a[0]+m[5]*a[1]+m[9]*a[2]+m[13]*a[3];a[6]=m[2]*a[0]+ m[6]*a[1]+m[10]*a[2]+m[14]*a[3];a[7]=-a[2];0!==a[7]&&(a[7]=1/a[7],a[4]*=a[7],a[5]*=a[7],a[6]*=a[7],h[0]=(.5*a[4]+.5)*this.width,h[1]=(.5*a[5]+.5)*this.height)};g.prototype.Rd=function(c,b,h){if(this.width!==c||this.height!==b||h){this.ee();this.width=c;this.height=b;this.k.viewport(0,0,c,b);b=c/b;var e=this.Tj,m;m=1*Math.tan(45*Math.PI/360);b*=m;c=-b;h=-m;e||(e=Xb());var a=b-c,k=m-h;e[0]=2/a;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/k;e[6]=0;e[7]=0;e[8]=(b+c)/a;e[9]=(m+h)/k;e[10]=-1001/999;e[11]=-1;e[12]= 0;e[13]=0;e[14]=-2E3/999;e[15]=0;$b(this.sl,this.Em,this.Un,this.Vb);c=[0,0];b=[0,0];this.nn(0,0,c);this.nn(1,1,b);this.Ok[0]=1/(b[0]-c[0]);this.Ok[1]=-1/(b[1]-c[1]);c=0;for(b=this.Oa.length;c<b;c++)h=this.Oa[c],h.je=!1,h.Cm&&(this.k.useProgram(h.Gg),this.k.uniformMatrix4fv(h.Cm,!1,this.Tj));this.k.useProgram(this.Oa[this.hg].Gg);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE1);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE0);this.se= this.re=null}};g.prototype.Pd=function(){$b(this.sl,this.Em,this.Un,this.Vb);Zb(this.Vb,this.Ok)};g.prototype.translate=function(c,b){if(0!==c||0!==b){this.Ud[0]=c;this.Ud[1]=b;this.Ud[2]=0;var h=this.Vb,e=this.Ud,m=e[0],a=e[1],e=e[2];h[12]=h[0]*m+h[4]*a+h[8]*e+h[12];h[13]=h[1]*m+h[5]*a+h[9]*e+h[13];h[14]=h[2]*m+h[6]*a+h[10]*e+h[14];h[15]=h[3]*m+h[7]*a+h[11]*e+h[15]}};g.prototype.scale=function(c,b){if(1!==c||1!==b)this.Ud[0]=c,this.Ud[1]=b,this.Ud[2]=1,Zb(this.Vb,this.Ud)};g.prototype.vn=function(c){if(0!== c){var b=this.Vb,h,e=Math.sin(c);c=Math.cos(c);var m=b[0],a=b[1],k=b[2],n=b[3],f=b[4],s=b[5],x=b[6],p=b[7];h?b!==h&&(h[8]=b[8],h[9]=b[9],h[10]=b[10],h[11]=b[11],h[12]=b[12],h[13]=b[13],h[14]=b[14],h[15]=b[15]):h=b;h[0]=m*c+f*e;h[1]=a*c+s*e;h[2]=k*c+x*e;h[3]=n*c+p*e;h[4]=m*-e+f*c;h[5]=a*-e+s*c;h[6]=k*-e+x*c;h[7]=n*-e+p*c}};g.prototype.Vd=function(){for(var c=!1,b=0;16>b;b++)if(this.wm[b]!==this.Vb[b]){c=!0;break}c&&(c=this.rc(),c.type=5,c.Z?Yb(this.Vb,c.Z):c.Z=Xb(this.Vb),Yb(this.Vb,this.wm),this.sb= !1)};p.prototype.iq=function(){this.k.bindTexture(this.k.TEXTURE_2D,this.uc)};p.prototype.jq=function(){var c=this.k;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.uc);c.activeTexture(c.TEXTURE0)};p.prototype.fq=function(){var c=this.en,b=this.n;b.rh=c;b=b.Mf;b.ef&&b.Zh!==c&&(b.Zh=c,this.k.uniform1f(b.ef,c))};p.prototype.bq=function(){this.k.drawElements(this.k.TRIANGLES,this.Dc,this.k.UNSIGNED_SHORT,2*this.ac)};p.prototype.dq=function(){this.k.blendFunc(this.ac,this.Dc)};p.prototype.kq= function(){var c,b,h,e=this.n.Oa,m=this.n.Al;c=0;for(b=e.length;c<b;c++)h=e[c],c===m&&h.Wh?(h.Ik(this.Z),h.je=!0):h.je=!1;Yb(this.Z,this.n.aj)};p.prototype.cq=function(){var c=this.k,b=this.n;this.uc?(b.se===this.uc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),b.se=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,b.Sq),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.uc,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D, null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};p.prototype.$p=function(){var c=this.k;0===this.ac?(c.clearColor(this.Z[0],this.Z[1],this.Z[2],this.Z[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.Z[0],this.Z[1],this.Z[2],this.Z[3]),c.clearColor(0,0,0,0),c.clear(this.k.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};p.prototype.aq=function(){var c=this.k,b=this.n,h=b.Oa[1];c.useProgram(h.Gg);!h.je&&h.Wh&&(h.Ik(b.aj),h.je=!0);c.enableVertexAttribArray(h.Ub);c.bindBuffer(c.ARRAY_BUFFER, b.gk);c.vertexAttribPointer(h.Ub,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.ac/4,this.Dc);h=b.Mf;c.useProgram(h.Gg);0<=h.Ub&&(c.enableVertexAttribArray(h.Ub),c.bindBuffer(c.ARRAY_BUFFER,b.Tg[b.Sc]),c.vertexAttribPointer(h.Ub,2,c.FLOAT,!1,0,0));0<=h.Ld&&(c.enableVertexAttribArray(h.Ld),c.bindBuffer(c.ARRAY_BUFFER,b.Kg[b.Sc]),c.vertexAttribPointer(h.Ld,2,c.FLOAT,!1,0,0))};p.prototype.gq=function(){var c=this.k,b=this.n,h=b.Oa[this.ac];b.Al=this.ac;b.Mf=h;c.useProgram(h.Gg);!h.je&&h.Wh&&(h.Ik(b.aj), h.je=!0);h.ef&&h.Zh!==b.rh&&(h.Zh=b.rh,c.uniform1f(h.ef,b.rh));0<=h.Ub&&(c.enableVertexAttribArray(h.Ub),c.bindBuffer(c.ARRAY_BUFFER,b.Tg[b.Sc]),c.vertexAttribPointer(h.Ub,2,c.FLOAT,!1,0,0));0<=h.Ld&&(c.enableVertexAttribArray(h.Ld),c.bindBuffer(c.ARRAY_BUFFER,b.Kg[b.Sc]),c.vertexAttribPointer(h.Ld,2,c.FLOAT,!1,0,0))};p.prototype.hq=function(){var c,b,h=this.n.Mf,e=this.k;c=this.Z;h.ng&&this.n.se!==this.uc&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.uc),this.n.se=this.uc,e.activeTexture(e.TEXTURE0)); var m=c[0];h.Qj&&m!==h.Nm&&(h.Nm=m,e.uniform1f(h.Qj,m));m=c[1];h.Pj&&m!==h.Mm&&(h.Mm=m,e.uniform1f(h.Pj,m));m=c[2];b=c[3];!h.xe||m===h.Hm&&b===h.Im||(h.Hm=m,h.Im=b,e.uniform2f(h.xe,m,b));m=c[4];b=c[5];!h.we||m===h.Fm&&b===h.Gm||(h.Fm=m,h.Gm=m,e.uniform2f(h.we,m,b));m=c[6];h.mg&&m!==h.Km&&(h.Km=m,e.uniform1f(h.mg,m));m=c[7];h.lg&&m!==h.Jm&&(h.Jm=m,e.uniform1f(h.lg,m));m=c[8];b=c[9];!h.pg||m===h.Qm&&b===h.Rm||(h.Qm=m,h.Rm=b,e.uniform2f(h.pg,m,b));m=c[10];b=c[11];!h.og||m===h.Om&&b===h.Pm||(h.Om=m,h.Pm= b,e.uniform2f(h.og,m,b));h.Rj&&e.uniform1f(h.Rj,T()/1E3);if(h.J.length)for(c=0,b=h.J.length;c<b;c++)m=this.Fn[c],m!==h.Kj[c]&&(h.Kj[c]=m,e.uniform1f(h.J[c][1],m))};g.prototype.rc=function(){this.Qc===this.vd.length&&this.vd.push(new p(0,this));return this.vd[this.Qc++]};g.prototype.ee=function(){if(0!==this.Qc&&!this.k.isContextLost()){var c=this.k;0<this.hk&&(c.bindBuffer(c.ARRAY_BUFFER,this.gk),c.bufferData(c.ARRAY_BUFFER,this.ds.subarray(0,this.hk),c.STREAM_DRAW),b&&0<=b.Ub&&"<point>"===b.name&& c.vertexAttribPointer(b.Ub,4,c.FLOAT,!1,0,0));if(0<this.Oc){var b=this.Mf;c.bindBuffer(c.ARRAY_BUFFER,this.Tg[this.Sc]);c.bufferData(c.ARRAY_BUFFER,this.Mk.subarray(0,this.Oc),c.STREAM_DRAW);b&&0<=b.Ub&&"<point>"!==b.name&&c.vertexAttribPointer(b.Ub,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Kg[this.Sc]);c.bufferData(c.ARRAY_BUFFER,this.zk.subarray(0,this.Oc),c.STREAM_DRAW);b&&0<=b.Ld&&"<point>"!==b.name&&c.vertexAttribPointer(b.Ld,2,c.FLOAT,!1,0,0)}for(var h,c=0,b=this.Qc;c<b;c++)switch(h= this.vd[c],h.type){case 1:h.bq();break;case 2:h.iq();break;case 3:h.fq();break;case 4:h.dq();break;case 5:h.kq();break;case 6:h.cq();break;case 7:h.$p();break;case 8:h.aq();break;case 9:h.gq();break;case 10:h.hq();break;case 11:h.jq()}this.hk=this.Oc=this.Qc=0;this.sb=!1;this.Sc++;4<=this.Sc&&(this.Sc=0)}};g.prototype.Ee=function(c){if(c!==this.xm){var b=this.rc();b.type=3;this.xm=b.en=c;this.sb=!1}};g.prototype.zb=function(c){if(c!==this.re){var b=this.rc();b.type=2;this.re=b.uc=c;this.sb=!1}};g.prototype.Qd= function(c,b){if(c!==this.ym||b!==this.vm){var h=this.rc();h.type=4;h.ac=c;h.Dc=b;this.ym=c;this.vm=b;this.sb=!1}};g.prototype.zn=function(){this.Qd(this.k.ONE,this.k.ONE_MINUS_SRC_ALPHA)};g.prototype.ki=function(c,b,h,e,m,a,k,n){15992<=this.Oc&&this.ee();var f=this.Oc,s=this.Mk,x=this.zk;if(this.sb)this.vd[this.Qc-1].Dc+=6;else{var p=this.rc();p.type=1;p.ac=f/4*3;p.Dc=6;this.sb=!0}s[f]=c;x[f++]=0;s[f]=b;x[f++]=0;s[f]=h;x[f++]=1;s[f]=e;x[f++]=0;s[f]=m;x[f++]=1;s[f]=a;x[f++]=1;s[f]=k;x[f++]=0;s[f]= n;x[f++]=1;this.Oc=f};g.prototype.Ic=function(c,b,h,e,m,a,k,n,f){15992<=this.Oc&&this.ee();var s=this.Oc,x=this.Mk,p=this.zk;if(this.sb)this.vd[this.Qc-1].Dc+=6;else{var t=this.rc();t.type=1;t.ac=s/4*3;t.Dc=6;this.sb=!0}var t=f.left,d=f.top,l=f.right;f=f.bottom;x[s]=c;p[s++]=t;x[s]=b;p[s++]=d;x[s]=h;p[s++]=l;x[s]=e;p[s++]=d;x[s]=m;p[s++]=l;x[s]=a;p[s++]=f;x[s]=k;p[s++]=t;x[s]=n;p[s++]=f;this.Oc=s};g.prototype.Kc=function(c){if(this.hg!==c){if(!this.Oa[c]){if(0===this.hg)return;c=0}var b=this.rc(); b.type=9;this.hg=b.ac=c;this.sb=!1}};g.prototype.zg=function(c){c=this.Oa[c];return!(!c.xe&&!c.we)};g.prototype.jk=function(c){c=this.Oa[c];return!!(c.xe||c.we||c.zl)};g.prototype.ms=function(c){c=this.Oa[c];return 0!==c.ij||0!==c.jj};g.prototype.gr=function(c){return this.Oa[c].ij};g.prototype.hr=function(c){return this.Oa[c].jj};g.prototype.ir=function(c,b){return this.Oa[c].J[b][2]};g.prototype.ii=function(c){return this.Oa[c].ll};g.prototype.qf=function(c,b,h,e,m,a,k,n,f,s,x,p,t,d){var l=this.Oa[this.hg], v,w;if(l.Ar||d.length){v=this.rc();v.type=10;v.Z?Yb(this.Vb,v.Z):v.Z=Xb();w=v.Z;w[0]=b;w[1]=h;w[2]=e;w[3]=m;w[4]=a;w[5]=k;w[6]=n;w[7]=f;w[8]=s;w[9]=x;w[10]=p;w[11]=t;v.uc=l.ng?c:null;if(d.length)for(h=v.Fn,h.length=d.length,c=0,b=d.length;c<b;c++)h[c]=d[c];this.sb=!1}};g.prototype.clear=function(c,b,h,e){var m=this.rc();m.type=7;m.ac=0;m.Z||(m.Z=Xb());m.Z[0]=c;m.Z[1]=b;m.Z[2]=h;m.Z[3]=e;this.sb=!1};g.prototype.clearRect=function(c,b,h,e){if(!(0>h||0>e)){var m=this.rc();m.type=7;m.ac=1;m.Z||(m.Z=Xb()); m.Z[0]=c;m.Z[1]=b;m.Z[2]=h;m.Z[3]=e;this.sb=!1}};g.prototype.ls=function(){this.ee();this.k.flush()};var r=[],u={};g.prototype.Up=function(){r.length=0;u={}};g.prototype.bf=function(c,b,h,e){b=!!b;h=!!h;var m=c.src+","+b+","+h+(b?",undefined":""),a=null;if("undefined"!==typeof c.src&&u.hasOwnProperty(m))return a=u[m],a.dh++,a;this.ee();var k=this.k,n=ka(c.width)&&ka(c.height),a=k.createTexture();k.bindTexture(k.TEXTURE_2D,a);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var f=k.RGBA,s=k.RGBA, x=k.UNSIGNED_BYTE;if(e&&!this.ne)switch(e){case 1:s=f=k.RGB;break;case 2:x=k.UNSIGNED_SHORT_4_4_4_4;break;case 3:x=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:s=f=k.RGB,x=k.UNSIGNED_SHORT_5_6_5}if(!n&&b){e=document.createElement("canvas");e.width=la(c.width);e.height=la(c.height);var p=e.getContext("2d");p.webkitImageSmoothingEnabled=h;p.mozImageSmoothingEnabled=h;p.msImageSmoothingEnabled=h;p.imageSmoothingEnabled=h;p.drawImage(c,0,0,c.width,c.height,0,0,e.width,e.height);k.texImage2D(k.TEXTURE_2D,0,f, s,x,e)}else k.texImage2D(k.TEXTURE_2D,0,f,s,x,c);b?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));h?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.LINEAR),n&&this.Hl?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D, k.TEXTURE_MIN_FILTER,k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.re=null;a.Hf=c.width;a.Gf=c.height;a.dh=1;a.ql=m;r.push(a);return u[m]=a};g.prototype.Bd=function(c,b,h){var e;this.ee();var m=this.k;this.ne&&(e=!1);var a=m.createTexture();m.bindTexture(m.TEXTURE_2D,a);m.texImage2D(m.TEXTURE_2D,0,m.RGBA,c,b,0,m.RGBA,e?m.UNSIGNED_SHORT_4_4_4_4:m.UNSIGNED_BYTE,null);m.texParameteri(m.TEXTURE_2D, m.TEXTURE_WRAP_S,m.CLAMP_TO_EDGE);m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.CLAMP_TO_EDGE);m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,h?m.LINEAR:m.NEAREST);m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,h?m.LINEAR:m.NEAREST);m.bindTexture(m.TEXTURE_2D,null);this.re=null;a.Hf=c;a.Gf=b;r.push(a);return a};g.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.dh&&1<c.dh?c.dh--:(this.ee(),c===this.re&&(this.k.bindTexture(this.k.TEXTURE_2D,null),this.re=null),c===this.se&&(this.k.activeTexture(this.k.TEXTURE1), this.k.bindTexture(this.k.TEXTURE_2D,null),this.k.activeTexture(this.k.TEXTURE0),this.se=null),Ea(r,c),"undefined"!==typeof c.ql&&delete u[c.ql],this.k.deleteTexture(c)))};g.prototype.Jc=function(c){if(c!==this.un){var b=this.rc();b.type=6;this.un=b.uc=c;this.sb=!1}};fb=g})(); (function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function q(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function p(d){if(d&&(d.getContext||d.dc)&&!d.c2runtime){d.c2runtime=this;var l=this;this.Rb=(this.Kh=/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.nc=!!d.dc;this.ag="undefined"!==typeof window.AppMobi||this.nc;this.tb=!!window.c2cocoonjs;this.Sb=!!window.c2ejecta;this.tb&&(CocoonJS.App.onSuspended.addEventListener(function(){l.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){l.setSuspended(!1)}));this.Sb&&(document.addEventListener("pagehide",function(){l.setSuspended(!0)}),document.addEventListener("pageshow", function(){l.setSuspended(!1)}),document.addEventListener("resize",function(){l.setSize(window.innerWidth,window.innerHeight)}));this.ha=this.nc||this.tb||this.Sb;this.ne=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.pm=/tizen/i.test(navigator.userAgent);this.mm=/android/i.test(navigator.userAgent)&&!this.pm&&!this.ne;this.Jj=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&& !this.ne;this.um=/ipad/i.test(navigator.userAgent);this.tm=this.Jj||this.um||this.Sb;this.Nr=this.Jj&&/os\s6/i.test(navigator.userAgent);this.Jh=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.ne;this.lm=/amazonwebappplatform/i.test(navigator.userAgent);this.Hr=/firefox/i.test(navigator.userAgent);this.Jr=/safari/i.test(navigator.userAgent)&&!this.Jh&&!this.ne;this.Id="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)|| /nwjs/i.test(navigator.userAgent);this.qm=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Lr=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Ue=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Lh=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Hj=this.qm||this.Lr||this.Lh;this.Gr=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.nm=this.mm&&!this.Jh&& !this.Kh&&!this.Hr&&!this.lm&&!this.ha;this.devicePixelRatio=1;this.oe=this.Rb||this.Kh||this.ag||this.tb||this.mm||this.tm||this.Ue||this.Lh||this.Gr||this.pm||this.Sb;this.oe||(this.oe=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Id||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Id=!0);this.canvas=d;this.tl=document.getElementById("c2canvasdiv"); this.aa=this.n=this.k=null;this.nj="";this.yh=!1;this.an=this.bn=0;this.canvas.oncontextmenu=function(d){d.preventDefault&&d.preventDefault();return!1};this.canvas.onselectstart=function(d){d.preventDefault&&d.preventDefault();return!1};this.nc&&(window.c2runtime=this);this.Id&&(window.ondragover=function(d){d.preventDefault();return!1},window.ondrop=function(d){d.preventDefault();return!1},require("nw.gui").App.clearCache());this.nm&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow", "visible");this.width=d.width;this.height=d.height;this.L=this.width;this.K=this.height;this.ph=this.width;this.oh=this.height;this.jg=window.innerWidth;this.ig=window.innerHeight;this.Uq=!1;this.W=!0;this.dg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.m=[];this.va=[];this.$e={};this.pc=[];this.hj={};this.Xc=[];this.Af=[];this.Ei=[];this.Mp=[];this.Np=[];this.ae={};this.Ej=this.Gd=!1;this.oc=0;this.Gj=!1;this.jc=[];this.cd=this.hb=this.Th=this.sk="";this.Ig= this.Hn=!1;this.Zi=this.qg=this.Dd=this.de=0;this.Og=1;this.Kd=new Wa;this.Hi=new Wa;this.ai=this.zh=this.Of=this.vf=this.ue=this.mj=this.Qh=0;this.Rc=null;this.Bl=[];this.gj=[];this.vh=-1;this.Sj=[[]];this.Fk=this.Xh=0;this.ji(null);this.ff=[];this.Yh=-1;this.Ym=this.sg=0;this.Nj=!0;this.Qf=0;this.Jg=[];this.Ck=this.kk=-1;this.qe=!0;this.df=0;this.bg=!1;this.ys=0;this.Ff=null;this.Tb=this.xj=!1;this.$m=new fa;this.Wj=new fa;this.Xj=new fa;this.os=[];this.tc=new Ya([]);this.yk=new Ya([]);this.sd= [];this.Fh={};this.Pe={};this.Me={};this.zf={};this.nl={};this.Bm=this.Sh=this.xb=this.Fb=this.Am=this.Rh=this.ba=null;this.xf=this.Ij=!1;this.oj=[null,null];this.he=0;this.ed={};this.ri=this.cf=null;this.$h=[];this.ps()}}function r(d){d.target.result.createObjectStore("saves",{keyPath:"slot"})}function u(d,l,a,f){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=r;b.onerror=f;b.onsuccess=function(b){b=b.target.result;b.onerror=f;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:d, data:l}).onsuccess=a}}function c(d,l,a){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=r;f.onerror=a;f.onsuccess=function(f){f=f.target.result;f.onerror=a;var b=f.transaction(["saves"]).objectStore("saves").get(d);b.onsuccess=function(){b.result?l(b.result.data):l(null)}}}function b(){B("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+="?continuous"}function h(d){var l,a= {};for(l in d)!d.hasOwnProperty(l)||d[l]instanceof fa||d[l]&&"undefined"!==typeof d[l].Kt||(a[l]=d[l]);return a}p.prototype.ps=function(){var d=this,l;l=this.Ue?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var a="data.js";if(this.qm||this.Ue||this.Lh)a="data.json";l.open("GET",a,!0);var f=!1;if(!this.ha&&"response"in l&&"responseType"in l)try{l.responseType="json",f="json"===l.responseType}catch(b){f=!1}if(!f&&"responseType"in l)try{l.responseType="text"}catch(k){}if("overrideMimeType"in l)try{l.overrideMimeType("application/json; charset=utf-8")}catch(e){}this.Ue?l.onreadystatechange=function(){4===l.readyState&&d.Vh(JSON.parse(l.responseText))}:(l.onload=function(){if(f)d.Vh(l.response);else if(d.Sb){var a=l.responseText,a=a.substr(a.indexOf("{"));d.Vh(JSON.parse(a))}else d.Vh(JSON.parse(l.responseText))},l.onerror=function(d){ia("Error requesting "+a+":");ia(d)});l.send()};p.prototype.Dr=function(){var d=this,l,a,f,b,k,e,n,s,t;this.devicePixelRatio=(this.pe=(!this.ha||this.Sb)&& this.Hs&&!this.nm)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.$a();a=!(!this.Uq&&(!this.Oi||this.Id||this.Hj||this.Ue||this.Kh||this.Rb||this.lm));0<this.kb&&this.setSize(g(),q(),!0);try{this.qq&&(this.tb||this.Sb||!this.ha)&&(l={alpha:a,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.k=this.canvas.getContext("webgl",l)||this.canvas.getContext("experimental-webgl",l))}catch(c){}if(this.k){this.ha||(this.Ya=document.createElement("canvas"), jQuery(this.Ya).appendTo(this.canvas.parentNode),this.Ya.oncontextmenu=function(){return!1},this.Ya.onselectstart=function(){return!1},this.Ya.width=this.ph,this.Ya.height=this.oh,jQuery(this.Ya).css({width:this.ph+"px",height:this.oh+"px"}),this.mn(),this.fk=this.Ya.getContext("2d"));this.n=new fb(this.k,this.oe);this.n.Rd(this.canvas.width,this.canvas.height);this.n.Hl=0!==this.lq;this.aa=null;this.canvas.addEventListener("webglcontextlost",function(l){l.preventDefault();d.Zr();B("[Construct 2] WebGL context lost"); window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){d.n.gm();d.n.Rd(d.n.width,d.n.height,!0);d.Fb=null;d.xb=null;d.oj[0]=null;d.oj[1]=null;d.$r();d.W=!0;B("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);l=0;for(a=this.m.length;l<a;l++)for(k=this.m[l],f=0,b=k.G.length;f<b;f++)n=k.G[f],n.Za=this.n.vj(n.id),this.xf=this.xf||this.n.zg(n.Za);l=0;for(a=this.pc.length;l<a;l++){s=this.pc[l];f=0;for(b=s.G.length;f<b;f++)n=s.G[f],n.Za=this.n.vj(n.id); f=0;for(b=s.I.length;f<b;f++)for(t=s.I[f],k=0,e=t.G.length;k<e;k++)n=t.G[k],n.Za=this.n.vj(n.id),this.xf=this.xf||this.n.zg(n.Za)}}else{if(0<this.kb&&this.nc){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.aa=AppMobi.canvas.getContext("2d");try{this.aa.samplingMode=this.S?"smooth":"sharp",this.aa.globalScale=1,this.aa.HTML5CompatibilityMode=!0,this.aa.imageSmoothingEnabled=this.S}catch(m){}0!==this.width&&0!==this.height&&(this.aa.width= this.width,this.aa.height=this.height)}this.aa||(l=this.tb?{antialias:!!this.S,alpha:a}:{alpha:a},this.aa=this.canvas.getContext("2d",l),this.aa.webkitImageSmoothingEnabled=this.S,this.aa.mozImageSmoothingEnabled=this.S,this.aa.msImageSmoothingEnabled=this.S,this.aa.imageSmoothingEnabled=this.S);this.fk=this.Ya=null}this.Mn=function(l){d.Mc(!1,l)};window==window.top||this.ha||this.Hj||this.Ue||(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.Th="__c2_continuouspreview",this.Ig=!0),this.cs&&!this.oe&&(jQuery(window).focus(function(){d.setSuspended(!1)}),jQuery(window).blur(function(){d.setSuspended(!0)})));this.ha||(l=function(d){if(eb(d)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&& document.activeElement.blur)try{document.activeElement.blur()}catch(l){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",l):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",l):document.addEventListener("touchstart",l),document.addEventListener("mousedown",l));0===this.kb&&this.pe&&1<this.devicePixelRatio&&this.setSize(this.Ma,this.La,!0);this.Qn();this.wr();this.go();this.V={}};p.prototype.setSize=function(d,l,a){var f=0,b=0,k=0,e=0,e=0,n=this.Nr&& this.Jr&&!navigator.standalone&&!this.ha&&!this.Rb;n&&(l+=60);if(this.jg!==d||this.ig!==l||a){this.jg=d;this.ig=l;var s=this.kb,t=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.bg)&&!this.Rb;if(t||0!==this.kb||a)t&&0<this.he&&(s=this.he),a=this.devicePixelRatio,4<=s?(k=this.Ma/this.La,d/l>k?(k*=l,5===s?(e=k*a/this.Ma,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),k=this.Ma*e/a,e=this.La*e/a,f=(d-k)/2,b=(l-e)/2,d=k,l=e):(f=(d-k)/2,d=k)): (e=d/k,5===s?(e=e*a/this.La,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),k=this.Ma*e/a,e=this.La*e/a,f=(d-k)/2,b=(l-e)/2,d=k):b=(l-e)/2,l=e),t&&!this.Id&&(b=f=0)):this.Id&&this.bg&&0===this.Ql&&(f=Math.floor((d-this.Ma)/2),b=Math.floor((l-this.La)/2),d=this.Ma,l=this.La),2>s&&(this.Ef=a),this.pe&&this.um&&1<a&&(1024<=d&&(d=1023),1024<=l&&(l=1023)),this.ph=Math.round(d),this.oh=Math.round(l),this.width=Math.round(d*a),this.height=Math.round(l*a),this.W=!0,this.co?(this.L=this.width,this.K=this.height, this.Ob=!0):this.width<this.Ma&&this.height<this.La||1===s?(this.L=this.width,this.K=this.height,this.Ob=!0):(this.L=this.Ma,this.K=this.La,this.Ob=!1,2===s?(k=this.Ma/this.La,s=this.jg/this.ig,s<k?this.L=this.K*s:s>k&&(this.K=this.L/s)):3===s&&(k=this.Ma/this.La,s=this.jg/this.ig,s>k?this.L=this.K*s:s<k&&(this.K=this.L/s))),this.tl&&!this.ha&&(jQuery(this.tl).css({width:Math.round(d)+"px",height:Math.round(l)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(b)+"px"}),"undefined"!==typeof cr_is_preview&& jQuery("#borderwrap").css({width:Math.round(d)+"px",height:Math.round(l)+"px"})),this.canvas&&(this.canvas.width=Math.round(d*a),this.canvas.height=Math.round(l*a),this.Sb?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(b)+"px",this.canvas.style.width=Math.round(d)+"px",this.canvas.style.height=Math.round(l)+"px"):this.pe&&!this.ha&&jQuery(this.canvas).css({width:Math.round(d)+"px",height:Math.round(l)+"px"})),this.Ya&&(this.Ya.width=Math.round(d),this.Ya.height=Math.round(l), jQuery(this.Ya).css({width:Math.round(d)+"px",height:Math.round(l)+"px"})),this.n&&this.n.Rd(Math.round(d*a),Math.round(l*a)),this.nc&&this.aa&&(this.aa.width=Math.round(d),this.aa.height=Math.round(l)),this.aa&&(this.aa.webkitImageSmoothingEnabled=this.S,this.aa.mozImageSmoothingEnabled=this.S,this.aa.msImageSmoothingEnabled=this.S,this.aa.imageSmoothingEnabled=this.S),this.Qn(),this.ha||!n&&!this.Jj||window.setTimeout(function(){window.scrollTo(0,1)},100)}};p.prototype.Qn=function(){if(this.Pp&& 0!==this.ek){var d="portrait";2===this.ek&&(d="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(d):screen.lockOrientation?screen.lockOrientation(d):screen.webkitLockOrientation?screen.webkitLockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation&&screen.msLockOrientation(d)}};p.prototype.Zr=function(){this.n.Up();this.Ij=!0;var d,l,a;d=0;for(l=this.m.length;d<l;d++)a=this.m[d],a.bi&&a.bi()};p.prototype.$r=function(){this.Ij= !1;var d,l,a;d=0;for(l=this.m.length;d<l;d++)a=this.m[d],a.ci&&a.ci()};p.prototype.mn=function(){if(!this.ha){var d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.bg)&&!this.Rb?jQuery(this.canvas).offset():jQuery(this.canvas).position();d.position="absolute";jQuery(this.Ya).css(d)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame; p.prototype.setSuspended=function(d){var l;if(d&&!this.dg)for(B("[Construct 2] Suspending"),this.dg=!0,-1!==this.kk&&e&&e(this.kk),-1!==this.Ck&&clearTimeout(this.Ck),d=0,l=this.Jg.length;d<l;d++)this.Jg[d](!0);else if(!d&&this.dg){B("[Construct 2] Resuming");this.dg=!1;this.Qh=T();this.ue=T();d=this.qg=this.zh=0;for(l=this.Jg.length;d<l;d++)this.Jg[d](!1);this.Mc(!1)}};p.prototype.Lp=function(d){this.Jg.push(d)};p.prototype.pd=function(d){return this.$h[d]};p.prototype.Vh=function(d){d&&d.project|| ia("Project model unavailable");d=d.project;this.name=d[0];this.Ml=d[1];this.kb=d[12];this.Ql=d[12];this.Ma=d[10];this.La=d[11];this.gn=this.Ma/2;this.hn=this.La/2;this.ha&&!this.Sb&&(4<=d[12]||0===d[12])&&(B("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Ql=this.kb=3);this.Lk=d[18];this.kg=d[19];0===this.kg&&(this.cf=new Image,this.cf.src="loading-logo.png");this.sg=d[21];this.$h=bc();this.Lc=new W(this);var l,a,f,b,k,e,n, s,t;l=0;for(a=d[2].length;l<a;l++)n=d[2][l],f=this.pd(n[0]),gb(n,f.prototype),t=new f(this),t.qi=n[1],t.Jd=n[2],t.Wm=n[9],t.T&&t.T(),this.plugins.push(t);this.$h=bc();l=0;for(a=d[3].length;l<a;l++){n=d[3][l];k=this.pd(n[1]);t=null;f=0;for(b=this.plugins.length;f<b;f++)if(this.plugins[f]instanceof k){t=this.plugins[f];break}var c=new t.ma(t);c.name=n[0];c.A=n[2];c.Dj=n[3].slice(0);c.Js=n[3].length;c.Qp=n[4];c.Vq=n[5];c.N=n[11];c.A?(c.hf=[],c.Yc=this.Qf++,c.ja=null):(c.hf=null,c.Yc=-1,c.ja=[]);c.xh= null;c.Re=null;c.Il=null;c.ub=!1;c.rb=null;n[6]?(c.yi=n[6][0],c.Ak=n[6][1],c.Mg=n[6][2]):(c.yi=null,c.Ak=0,c.Mg=0);c.pb=n[7]?n[7]:null;c.index=l;c.c=[];c.sh=[];c.Td=[new hb(c)];c.Vc=0;c.Mb=null;c.Yp=0;c.tf=!0;c.Gi=ib;c.$q=jb;c.fr=kb;c.P=lb;c.Ag=mb;c.Ce=nb;c.Hc=ob;c.Ah=pb;c.pj=qb;c.sj=rb;c.td=sb;c.Vl=tb;c.mh=new Za(this.Ma,this.La);c.Xg=!0;c.Yg=!1;c.V={};c.toString=ub;c.va=[];f=0;for(b=n[8].length;f<b;f++){s=n[8][f];var m=this.pd(s[1]),h=null;k=0;for(e=this.va.length;k<e;k++)if(this.va[k]instanceof m){h=this.va[k];break}h||(h=new m(this),h.Xm=[],h.jf=new fa,h.T&&h.T(),this.va.push(h));-1===h.Xm.indexOf(c)&&h.Xm.push(c);k=new h.ma(h,c);k.name=s[0];k.N=s[2];k.T();c.va.push(k)}c.global=n[9];c.Fj=n[10];c.G=[];f=0;for(b=n[12].length;f<b;f++)c.G.push({id:n[12][f][0],name:n[12][f][1],Za:-1,Va:!0,index:f});c.eu=n[13];this.Lk&&!c.A&&!c.Fj&&t.Jd||c.T();c.name&&(this.types[c.name]=c);this.m.push(c);t.qi&&(f=new t.da(c),f.uid=this.sg++,f.qn=this.Ym++,f.ke=0,f.Uf=vb,f.toString=wb,f.D=n[14],f.T(),c.c.push(f), this.ed[f.uid.toString()]=f)}l=0;for(a=d[4].length;l<a;l++)for(k=d[4][l],e=this.m[k[0]],f=1,b=k.length;f<b;f++)n=this.m[k[f]],n.ja.push(e),e.hf.push(n);l=0;for(a=d[27].length;l<a;l++){k=d[27][l];e=[];f=0;for(b=k.length;f<b;f++)e.push(this.m[k[f]]);f=0;for(b=e.length;f<b;f++)e[f].ub=!0,e[f].rb=e}if(0<this.Qf)for(l=0,a=this.m.length;l<a;l++)if(n=this.m[l],!n.A&&n.ja.length){n.xh=Array(this.Qf);n.Re=Array(this.Qf);n.Il=Array(this.Qf);c=[];f=h=m=s=0;for(b=n.ja.length;f<b;f++)for(t=n.ja[f],n.xh[t.Yc]= s,s+=t.Js,n.Re[t.Yc]=m,m+=t.Qp,n.Il[t.Yc]=h,h+=t.Vq,k=0,e=t.G.length;k<e;k++)c.push(Aa({},t.G[k]));n.G=c.concat(n.G);f=0;for(b=n.G.length;f<b;f++)n.G[f].index=f}l=0;for(a=d[5].length;l<a;l++)n=d[5][l],f=new xb(this,n),this.$e[f.name]=f,this.pc.push(f);l=0;for(a=d[6].length;l<a;l++)n=d[6][l],f=new yb(this,n),this.hj[f.name]=f,this.Xc.push(f);l=0;for(a=this.Xc.length;l<a;l++)this.Xc[l].ta();l=0;for(a=this.Xc.length;l<a;l++)this.Xc[l].Hk();l=0;for(a=this.Ei.length;l<a;l++)this.Ei[l].ta();this.Ei.length= 0;this.Op=d[7];this.Gc=d[9];this.Ef=1;this.qq=d[13];this.S=d[14];this.Oi=d[15];this.Hs=d[17];this.ek=d[20];this.Pp=0<this.ek;this.cs=d[22];this.Ob=this.co=d[23];this.lq=d[24];this.js=d[25];this.si=Date.now();this.$h.length=0;this.Dr()};var m=!1;p.prototype.Nk=function(d,l){d.cocoonLazyLoad=!0;d.onerror=function(l){m=d.pl=!0;console&&console.error&&console.error("Error loading image '"+d.src+"': ",l)};this.Sb?d.src=l:d.src||("undefined"!==typeof XAPKReader?XAPKReader.get(l,function(l){d.src=l},function(a){m= d.pl=!0;console&&console.error&&console.error("Error extracting image '"+l+"' from expansion file: ",a)}):d.src=l);this.Af.push(d)};p.prototype.Tq=function(d){var l,a;l=0;for(a=this.Af.length;l<a;l++)if(this.Af[l].Vp===d)return this.Af[l];return null};var a=0,k=!1;p.prototype.wr=function(){this.Ff&&(a=this.Ff.bu(this.Op))};p.prototype.ml=function(){var d=a,l=0,f=0,b=!0,n,e,f=0;for(n=this.Af.length;f<n;f++){e=this.Af[f];var c=e.xl;if(!c||0>=c)c=5E4;d+=c;e.src&&(e.complete||e.loaded)&&!e.pl?l+=c:b= !1}b&&this.js&&this.Ff&&(k||(this.Ff.cu(),k=!0),f=this.Ff.Wt(),l+=f,f<a&&(b=!1));this.Be=0==d?0:l/d;return b};p.prototype.go=function(){if(this.aa||this.n){var d=this.aa||this.fk;this.Ya&&this.mn();this.Be=0;this.zm=-1;if(this.ml())this.xr();else{var l=Date.now()-this.si;if(d){var a=this.width,f=this.height,b=this.devicePixelRatio;this.Ya&&(a=this.ph,f=this.oh,b=1);if(3!==this.kg&&(this.tb||500<=l&&this.zm!=this.Be)){d.clearRect(0,0,a,f);var l=a/2,f=f/2,a=0===this.kg&&this.cf.complete,k=40*b,n=0, e=80*b,c;a&&(e=this.cf.width*b,c=this.cf.height*b,k=e/2,n=c/2,d.drawImage(this.cf,P(l-k),P(f-n),e,c));1>=this.kg?(l=P(l-k)+.5,f=P(f+(n+(a?12*b:0)))+.5,d.fillStyle=m?"red":"DodgerBlue",d.fillRect(l,f,Math.floor(e*this.Be),6*b),d.strokeStyle="black",d.strokeRect(l,f,e,6*b),d.strokeStyle="white",d.strokeRect(l-1*b,f-1*b,e+2*b,8*b)):2===this.kg&&(d.font=this.Sb?"12pt ArialMT":"12pt Arial",d.fillStyle=m?"#f00":"#999",d.du="middle",b=Math.round(100*this.Be)+"%",a=d.measureText?d.measureText(b):null,d.fillText(b, l-(a?a.width:0)/2,f))}this.zm=this.Be}setTimeout(function(d){return function(){d.go()}}(this),this.tb?10:100)}}};p.prototype.xr=function(){this.Ya&&(this.canvas.parentNode.removeChild(this.Ya),this.Ya=this.fk=null);this.si=Date.now();this.ue=T();var d,l,a;if(this.Lk)for(d=0,l=this.m.length;d<l;d++)a=this.m[d],a.A||a.Fj||!a.ia.Jd||a.T();else this.qe=!1;d=0;for(l=this.pc.length;d<l;d++)this.pc[d].Wp();2<=this.kb&&(d=this.Ma/this.La,l=this.width/this.height,this.Ef=2!==this.kb&&l>d||2===this.kb&&l<d? this.height/this.La:this.width/this.Ma);this.Ml?this.$e[this.Ml].wk():this.pc[0].wk();this.Lk||(this.df=1,this.trigger(W.prototype.e.Vk,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();d=0;for(l=this.m.length;d<l;d++)a=this.m[d],a.Yr&&a.Yr();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Mc(!1);this.nc&&AppMobi.webview.execute("onGameReady();")};var n=window.requestAnimationFrame||window.mozRequestAnimationFrame|| window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;p.prototype.Mc=function(d,l,a){if(this.ba){var f=T();if(a||!this.dg||d){d||(n?this.kk=n(this.Mn):this.Ck=setTimeout(this.Mn,this.oe?1:16));l=l||f;var b=this.kb;((a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Rb)||this.bg)&&0<this.he&&(b=this.he);0<b&&(!this.tm||window.self!==window.top)&&(b=window.innerHeight,this.jg===window.innerWidth&& this.ig===b||this.setSize(g(),q()));this.ha||(a?(this.yh||(this.nj=jQuery(this.canvas).css("margin")||"0",this.yh=!0),this.Jh||this.Id||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.yh?(this.Jh||this.Id||jQuery(this.canvas).css("margin",this.nj),this.nj="",this.yh=!1,0===this.kb&&this.setSize(Math.round(this.bn/this.devicePixelRatio),Math.round(this.an/ this.devicePixelRatio),!0)):(this.bn=this.width,this.an=this.height));this.qe&&(a=this.ml(),this.df=this.Be,a&&(this.qe=!1,this.Be=1,this.trigger(W.prototype.e.Vk,null)));this.Sr(l);!this.W&&!this.tb||this.Ij||this.Ig||d||(this.W=!1,this.n?this.Nb():this.Wc(),this.ri&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.ri[0],this.ri[1]),this.trigger(W.prototype.e.No,null)),this.ri=null));this.Xt||(this.vf++,this.Of++,this.zh++);this.qg+=T()-f}}};p.prototype.Sr=function(d){var l,a,f,b, k,n,e,c;1E3<=d-this.ue&&(this.ue+=1E3,1E3<=d-this.ue&&(this.ue=d),this.mj=this.zh,this.zh=0,this.Zi=this.qg,this.qg=0);0!==this.Qh&&(l=d-this.Qh,0>l&&(l=0),this.Dd=l/1E3,.5<this.Dd?this.Dd=0:.1<this.Dd&&(this.Dd=.1));this.Qh=d;this.de=this.Dd*this.Og;this.Kd.add(this.de);this.Hi.add(this.Dd);d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.bg)&&!this.Rb;2<=this.kb||d&&0<this.he?(l=this.Ma/this.La,a=this.width/this.height,f=this.kb,d&& 0<this.he&&(f=this.he),this.Ef=2!==f&&a>l||2===f&&a<l?this.height/this.La:this.width/this.Ma,this.ba&&(this.ba.xn(this.ba.scrollX),this.ba.yn(this.ba.scrollY))):this.Ef=this.pe?this.devicePixelRatio:1;this.$a();this.oc++;this.Lc.rs();this.oc--;this.$a();this.oc++;a=this.$m.wc();d=0;for(l=a.length;d<l;d++)a[d].Yt();d=0;for(l=this.m.length;d<l;d++)if(n=this.m[d],!n.A&&(n.va.length||n.ja.length))for(a=0,f=n.c.length;a<f;a++)for(e=n.c[a],b=0,k=e.F.length;b<k;b++)e.F[b].Mc();d=0;for(l=this.m.length;d< l;d++)if(n=this.m[d],!n.A&&(n.va.length||n.ja.length))for(a=0,f=n.c.length;a<f;a++)for(e=n.c[a],b=0,k=e.F.length;b<k;b++)c=e.F[b],c.hs&&c.hs();a=this.Wj.wc();d=0;for(l=a.length;d<l;d++)a[d].Mc();this.oc--;this.yr();for(d=0;this.Rc&&10>d++;)this.El(this.Rc);d=0;for(l=this.Xc.length;d<l;d++)this.Xc[d].zj=!1;this.ba.fe&&this.ba.fe.xa();this.os.length=0;this.Nj=!1;this.oc++;d=0;for(l=this.m.length;d<l;d++)if(n=this.m[d],!n.A&&(n.va.length||n.ja.length))for(a=0,f=n.c.length;a<f;a++)for(e=n.c[a],b=0,k= e.F.length;b<k;b++)c=e.F[b],c.Bi&&c.Bi();a=this.Xj.wc();d=0;for(l=a.length;d<l;d++)a[d].Bi();this.oc--};p.prototype.El=function(d){var l=this.ba;this.ba.zs();var a,f,b,k,n,e,c;if(this.n)for(a=0,f=this.m.length;a<f;a++)n=this.m[a],n.A||!n.Fi||n.global&&0!==n.c.length||-1!==d.Zf.indexOf(n)||n.Fi();l==d&&(this.Lc.nb.length=0);d.wk();a=0;for(f=this.m.length;a<f;a++)if(n=this.m[a],n.global||n.ia.qi)for(d=0,l=n.c.length;d<l;d++)if(e=n.c[d],e.ak&&e.ak(),e.F)for(b=0,k=e.F.length;b<k;b++)c=e.F[b],c.ak&&c.ak(); this.Nj=this.W=!0;this.$a()};p.prototype.Bk=function(d){this.Wj.add(d)};p.prototype.Bs=function(d){this.Xj.add(d)};p.prototype.Ch=function(d){return d&&-1!==d.rg?this.Dd*d.rg:this.de};p.prototype.Wc=function(){this.ba.Wc(this.aa);this.nc&&this.aa.present()};p.prototype.Nb=function(){this.ba.Nb(this.n);this.n.ls()};p.prototype.Yl=function(d){d=d.toString();return this.ed.hasOwnProperty(d)?this.ed[d]:null};var f=[];p.prototype.Wd=function(d){var a,b;a=d.type.name;var k=null;if(this.ae.hasOwnProperty(a)){if(k= this.ae[a],k.contains(d))return}else k=f.length?f.pop():new fa,this.ae[a]=k;k.add(d);this.Gd=!0;if(d.ub)for(a=0,b=d.siblings.length;a<b;a++)this.Wd(d.siblings[a]);this.Ej&&k.yf.push(d);this.oc++;this.trigger(Object.getPrototypeOf(d.type.ia).e.Oo,d);this.oc--};p.prototype.$a=function(){if(this.Gd){var d,a,f,b,k,n;this.Ej=!0;f=0;for(k=this.jc.length;f<k;++f)for(d=this.jc[f],a=d.type,a.c.push(d),b=0,n=a.ja.length;b<n;++b)a.ja[b].c.push(d),a.ja[b].tf=!0;this.jc.length=0;this.Go();Sa(this.ae);this.Gd= this.Ej=!1}};p.prototype.Go=function(){for(var d in this.ae)this.ae.hasOwnProperty(d)&&this.jo(this.ae[d])};p.prototype.jo=function(d){var a=d.wc(),b=a[0].type,k,n,e,c,s,t;Ta(b.c,d);b.tf=!0;0===b.c.length&&(b.Yg=!1);k=0;for(n=b.ja.length;k<n;++k)t=b.ja[k],Ta(t.c,d),t.tf=!0;k=0;for(n=this.Lc.nb.length;k<n;++k)if(s=this.Lc.nb[k],s.ib.hasOwnProperty(b.index)&&Ta(s.ib[b.index].ad,d),!b.A)for(e=0,c=b.ja.length;e<c;++e)t=b.ja[e],s.ib.hasOwnProperty(t.index)&&Ta(s.ib[t.index].ad,d);if(s=a[0].g){if(s.vc)for(e= s.c,k=0,n=e.length;k<n;++k)c=e[k],d.contains(c)&&(c.ga(),s.yb.update(c,c.lb,null),c.lb.set(0,0,-1,-1));Ta(s.c,d);s.Dg(0)}for(k=0;k<a.length;++k)this.io(a[k],b);d.clear();f.push(d);this.W=!0};p.prototype.io=function(d,a){var f,b,k;f=0;for(b=this.Bl.length;f<b;++f)this.Bl[f](d);d.Ad&&a.mh.update(d,d.Ad,null);(f=d.g)&&f.of(d,!0);if(d.F)for(f=0,b=d.F.length;f<b;++f)k=d.F[f],k.mf&&k.mf(),k.behavior.jf.remove(d);this.$m.remove(d);this.Wj.remove(d);this.Xj.remove(d);d.mf&&d.mf();this.ed.hasOwnProperty(d.uid.toString())&& delete this.ed[d.uid.toString()];this.ai--;100>a.sh.length&&a.sh.push(d)};p.prototype.yl=function(d,a,f,b){if(d.A){var k=P(Math.random()*d.hf.length);return this.yl(d.hf[k],a,f,b)}return d.Mb?this.Cd(d.Mb,a,!1,f,b,!1):null};var s=[];p.prototype.Cd=function(d,a,f,b,k,n){var e,c,t,h;if(!d)return null;var m=this.m[d[1]],p=m.ia.Jd;if(this.qe&&p&&!m.Fj||p&&!this.n&&11===d[0][11])return null;var x=a;p||(a=null);var g;m.sh.length?(g=m.sh.pop(),g.Hb=!0,m.ia.da.call(g,m)):(g=new m.ia.da(m),g.Hb=!1);g.uid= !f||n||this.ed.hasOwnProperty(d[2].toString())?this.sg++:d[2];this.ed[g.uid.toString()]=g;g.qn=this.Ym++;g.ke=m.c.length;e=0;for(c=this.jc.length;e<c;++e)this.jc[e].type===m&&g.ke++;g.Uf=vb;g.toString=wb;t=d[3];if(g.Hb)Sa(g.V);else{g.V={};if("undefined"!==typeof cr_is_preview)for(g.jm=[],g.jm.length=t.length,e=0,c=t.length;e<c;e++)g.jm[e]=t[e][1];g.Ha=[];g.Ha.length=t.length}e=0;for(c=t.length;e<c;e++)g.Ha[e]=t[e][0];if(p){var q=d[0];g.x=ja(b)?q[0]:b;g.y=ja(k)?q[1]:k;g.z=q[2];g.width=q[3];g.height= q[4];g.depth=q[5];g.j=q[6];g.opacity=q[7];g.eb=q[8];g.fb=q[9];g.jb=q[10];e=q[11];!this.n&&m.G.length&&(g.jb=e);g.If=ab(g.jb);this.k&&bb(g,g.jb,this.k);if(g.Hb){e=0;for(c=q[12].length;e<c;e++)for(t=0,h=q[12][e].length;t<h;t++)g.oa[e][t]=q[12][e][t];g.ua.set(0,0,0,0);g.Ad.set(0,0,-1,-1);g.lb.set(0,0,-1,-1);g.qb.Eg(g.ua);g.Ti.length=0}else{g.oa=q[12].slice(0);e=0;for(c=g.oa.length;e<c;e++)g.oa[e]=q[12][e].slice(0);g.U=[];g.qd=[];g.qd.length=m.G.length;g.ua=new Q(0,0,0,0);g.Ad=new Q(0,0,-1,-1);g.lb=new Q(0, 0,-1,-1);g.qb=new za;g.Ti=[];g.ka=zb;g.Jt=Ab;g.ab=Bb;g.ga=Cb;g.Gs=Db;g.Yn=Eb;g.Qb=Fb}g.Ng=!1;g.Es=0;g.Ds=0;g.Cs=null;14===q.length&&(g.Ng=!0,g.Es=q[13][0],g.Ds=q[13][1],g.Cs=q[13][2]);e=0;for(c=m.G.length;e<c;e++)g.qd[e]=!0;g.md=Gb;g.md();g.Zn=!!g.U.length;g.Si=!0;g.Vi=!0;m.Xg=!0;g.visible=!0;g.rg=-1;g.g=a;g.xc=a.c.length;"undefined"===typeof g.Y&&(g.Y=null);this.W=g.$d=!0}var F;e=s.length=0;for(c=m.ja.length;e<c;e++)s.push.apply(s,m.ja[e].va);s.push.apply(s,m.va);if(g.Hb)for(e=0,c=s.length;e<c;e++){var r= s[e];F=g.F[e];F.Hb=!0;r.behavior.da.call(F,r,g);q=d[4][e];t=0;for(h=q.length;t<h;t++)F.D[t]=q[t];F.T();r.behavior.jf.add(g)}else for(g.F=[],e=0,c=s.length;e<c;e++)r=s[e],F=new r.behavior.da(r,g),F.Hb=!1,F.D=d[4][e].slice(0),F.T(),g.F.push(F),r.behavior.jf.add(g);q=d[5];if(g.Hb)for(e=0,c=q.length;e<c;e++)g.D[e]=q[e];else g.D=q.slice(0);this.jc.push(g);this.Gd=!0;a&&(a.Df(g,!0),1!==a.Yb||1!==a.Zb)&&(m.Yg=!0);this.ai++;if(m.ub){if(g.ub=!0,g.Hb?g.siblings.length=0:g.siblings=[],!f&&!n){e=0;for(c=m.rb.length;e< c;e++)if(m.rb[e]!==m){if(!m.rb[e].Mb)return null;g.siblings.push(this.Cd(m.rb[e].Mb,x,!1,p?g.x:b,p?g.y:k,!0))}e=0;for(c=g.siblings.length;e<c;e++)for(g.siblings[e].siblings.push(g),t=0;t<c;t++)e!==t&&g.siblings[e].siblings.push(g.siblings[t])}}else g.ub=!1,g.siblings=null;g.T();e=0;for(c=g.F.length;e<c;e++)g.F[e].gs&&g.F[e].gs();return g};p.prototype.uj=function(d){var a,f;a=0;for(f=this.ba.I.length;a<f;a++){var b=this.ba.I[a];if(db(b.name,d))return b}return null};p.prototype.Sf=function(d){d=P(d); 0>d&&(d=0);d>=this.ba.I.length&&(d=this.ba.I.length-1);return this.ba.I[d]};p.prototype.Yi=function(d){var a,f;a=0;for(f=d.length;a<f;a++)d[a].P().X=!0};p.prototype.Ag=function(d){var a,f;a=0;for(f=d.length;a<f;a++)d[a].Ag()};p.prototype.Ce=function(d){var a,f;a=0;for(f=d.length;a<f;a++)d[a].Ce()};p.prototype.Hc=function(d){var a,f;a=0;for(f=d.length;a<f;a++)d[a].Hc()};p.prototype.Wn=function(d){if(d.Xg){var a,f,b=d.c;a=0;for(f=b.length;a<f;++a)b[a].Yn();b=this.jc;a=0;for(f=b.length;a<f;++a)b[a].type=== d&&b[a].Yn();d.Xg=!1}};p.prototype.Zq=function(d,a,f,b){var e,k,n=d?1!==d.Yb||1!==d.Zb:!1;if(a.A)for(d=0,e=a.hf.length;d<e;++d)k=a.hf[d],n||k.Yg?Ca(b,k.c):(this.Wn(k),k.mh.li(f,b));else n||a.Yg?Ca(b,a.c):(this.Wn(a),a.mh.li(f,b))};p.prototype.xi=function(d,a,f){var b=d.P(),e,k,n,c,t,s;if(b.X)for(b.X=!1,e=b.c.length=0,c=d.c.length;e<c;e++)n=d.c[e],n.ga(),t=n.g.Wa(a,f,!0),s=n.g.Wa(a,f,!1),n.ab(t,s)&&b.c.push(n);else{e=k=0;for(c=b.c.length;e<c;e++)n=b.c[e],n.ga(),t=n.g.Wa(a,f,!0),s=n.g.Wa(a,f,!1),n.ab(t, s)&&(b.c[k]=b.c[e],k++);b.c.length=k}d.td();return b.yj()};p.prototype.As=function(d,a){if(!(d&&a&&d!==a&&d.$d&&a.$d))return!1;d.ga();a.ga();var f=d.g,b=a.g,e,k,n,c,t,s,m,h;if(f===b||f.Yb===b.Yb&&b.Zb===b.Zb&&f.scale===b.scale&&f.j===b.j&&f.yc===b.yc){if(!d.ua.Er(a.ua)||!d.qb.km(a.qb)||d.Ng&&a.Ng)return!1;if(d.Ng)return this.Ln(d,a);if(a.Ng)return this.Ln(a,d);m=d.Y&&!d.Y.Ve();e=a.Y&&!a.Y.Ve();if(!m&&!e)return!0;m?(d.Y.Ne(d.width,d.height,d.j),m=d.Y):(this.tc.rf(d.qb,d.x,d.y,d.width,d.height),m=this.tc); e?(a.Y.Ne(a.width,a.height,a.j),h=a.Y):(this.tc.rf(a.qb,a.x,a.y,a.width,a.height),h=this.tc);return m.$f(h,a.x-d.x,a.y-d.y)}m=d.Y&&!d.Y.Ve();e=a.Y&&!a.Y.Ve();m?(d.Y.Ne(d.width,d.height,d.j),this.tc.Dn(d.Y)):this.tc.rf(d.qb,d.x,d.y,d.width,d.height);m=this.tc;e?(a.Y.Ne(a.width,a.height,a.j),this.yk.Dn(a.Y)):this.yk.rf(a.qb,a.x,a.y,a.width,a.height);h=this.yk;e=0;for(k=m.qc;e<k;e++)n=2*e,c=n+1,t=m.Na[n],s=m.Na[c],m.Na[n]=f.gb(t+d.x,s+d.y,!0),m.Na[c]=f.gb(t+d.x,s+d.y,!1);m.ga();e=0;for(k=h.qc;e<k;e++)n= 2*e,c=n+1,t=h.Na[n],s=h.Na[c],h.Na[n]=b.gb(t+a.x,s+a.y,!0),h.Na[c]=b.gb(t+a.x,s+a.y,!1);h.ga();return m.$f(h,0,0)};var x=new za;new Q(0,0,0,0);var F=[];p.prototype.Ln=function(d,a){var f,b,e,k,n=a.ua,c=d.x,t=d.y;d.Pt(n,F);var s=a.Y&&!a.Y.Ve();f=0;for(b=F.length;f<b;++f)if(e=F[f],k=e.Zt,n.Fr(k,c,t)&&(x.Eg(k),x.offset(c,t),x.km(a.qb)))if(s)if(a.Y.Ne(a.width,a.height,a.j),e.ik){if(e.ik.$f(a.Y,a.x-(c+k.left),a.y-(t+k.top)))return F.length=0,!0}else{if(this.tc.rf(x,0,0,k.right-k.left,k.bottom-k.top),this.tc.$f(a.Y, a.x,a.y))return F.length=0,!0}else if(e.ik){if(this.tc.rf(a.qb,0,0,a.width,a.height),e.ik.$f(this.tc,-(c+k.left),-(t+k.top)))return F.length=0,!0}else return F.length=0,!0;F.length=0;return!1};p.prototype.Rn=function(d,a){if(!a)return!1;var f,b,e,k,n;f=0;for(b=d.va.length;f<b;f++)if(d.va[f].behavior instanceof a)return!0;if(!d.A)for(f=0,b=d.ja.length;f<b;f++)for(n=d.ja[f],e=0,k=n.va.length;e<k;e++)if(n.va[e].behavior instanceof a)return!0;return!1};p.prototype.Sn=function(d){return this.Rn(d,Ub.gt)}; p.prototype.Gk=function(d){return this.Rn(d,Ub.ht)};var t=-1;p.prototype.trigger=function(d,a,f){if(!this.ba)return!1;var b=this.ba.fe;if(!b)return!1;var e=!1,k,n,c;t++;var s=b.cj;n=0;for(c=s.length;n<c;++n)k=this.On(d,a,s[n],f),e=e||k;k=this.On(d,a,b,f);t--;return e||k};p.prototype.On=function(d,a,f,b){var e=!1,k,n,c,t;if(a)for(c=this.Ek(d,a,a.type.name,f,b),e=e||c,t=a.type.ja,k=0,n=t.length;k<n;++k)c=this.Ek(d,a,t[k].name,f,b),e=e||c;else c=this.Ek(d,a,"system",f,b),e=e||c;return e};p.prototype.Ek= function(d,a,f,b,e){var k,n=!1,c=!1,c="undefined"!==typeof e,t=(c?b.Kl:b.Pn)[f];if(!t)return n;var s=null;b=0;for(k=t.length;b<k;++b)if(t[b].method==d){s=t[b].Nf;break}if(!s)return n;d=c?s[e]:s;if(!d)return null;b=0;for(k=d.length;b<k;b++)e=d[b][0],c=d[b][1],c=this.Rq(a,f,e,c),n=n||c;return n};p.prototype.Rq=function(d,a,f,b){var e,k,n=!1;this.Fk++;var c=this.Sa().Ra;c&&this.Ag(c.Sd);var s=1<this.Fk;this.Ag(f.Sd);s&&this.ns();var m=this.ji(f);m.Ra=f;d&&(e=this.types[a].P(),e.X=!1,e.c.length=1,e.c[0]= d,this.types[a].td());d=!0;if(f.parent){a=m.Kn;for(e=f.parent;e;)a.push(e),e=e.parent;a.reverse();e=0;for(k=a.length;e<k;e++)if(!a[e].ts()){d=!1;break}}d&&(this.Of++,f.Wb?f.ss(b):f.xa(),n=n||m.te);this.gi();s&&this.es();this.Hc(f.Sd);c&&this.Hc(c.Sd);this.Gd&&0===this.oc&&0===t&&!this.Gj&&this.$a();this.Fk--;return n};p.prototype.Bh=function(){var d=this.Sa();return d.Ra.Fa[d.wa]};p.prototype.ns=function(){this.Xh++;this.Xh>=this.Sj.length&&this.Sj.push([])};p.prototype.es=function(){this.Xh--};p.prototype.Sl= function(){return this.Sj[this.Xh]};p.prototype.ji=function(d){this.vh++;this.vh>=this.gj.length&&this.gj.push(new Hb);var a=this.Sa();a.reset(d);return a};p.prototype.gi=function(){this.vh--};p.prototype.Sa=function(){return this.gj[this.vh]};p.prototype.rn=function(d){this.Yh++;this.Yh>=this.ff.length&&this.ff.push(ba({name:d,index:0,Fe:!1}));var a=this.Tl();a.name=d;a.index=0;a.Fe=!1;return a};p.prototype.ln=function(){this.Yh--};p.prototype.Tl=function(){return this.ff[this.Yh]};p.prototype.Ul= function(d,a){for(var f,b,e,k,n,c;a;){f=0;for(b=a.cc.length;f<b;f++)if(c=a.cc[f],c instanceof Ib&&db(d,c.name))return c;a=a.parent}f=0;for(b=this.Xc.length;f<b;f++)for(n=this.Xc[f],e=0,k=n.Ed.length;e<k;e++)if(c=n.Ed[e],c instanceof Ib&&db(d,c.name))return c;return null};p.prototype.Wl=function(d){var a,f;a=0;for(f=this.pc.length;a<f;a++)if(this.pc[a].N===d)return this.pc[a];return null};p.prototype.Eh=function(d){var a,f;a=0;for(f=this.m.length;a<f;a++)if(this.m[a].N===d)return this.m[a];return null}; p.prototype.br=function(d){var a,f;a=0;for(f=this.sd.length;a<f;a++)if(this.sd[a].N===d)return this.sd[a];return null};p.prototype.yr=function(){var d=this,a=this.sk,f=this.cd,e=this.Th,k=!1;this.Hn&&(k=!0,a="__c2_continuouspreview",this.Hn=!1);if(a.length){this.$a();f=this.xs();if(window.indexedDB&&!this.tb)u(a,f,function(){B("Saved state to IndexedDB storage ("+f.length+" bytes)");d.cd=f;d.trigger(W.prototype.e.Li,null);d.cd="";k&&b()},function(e){try{localStorage.setItem("__c2save_"+a,f),B("Saved state to WebStorage ("+ f.length+" bytes)"),d.cd=f,d.trigger(W.prototype.e.Li,null),d.cd="",k&&b()}catch(n){B("Failed to save game state: "+e+"; "+n)}});else try{localStorage.setItem("__c2save_"+a,f),B("Saved state to WebStorage ("+f.length+" bytes)"),d.cd=f,this.trigger(W.prototype.e.Li,null),d.cd="",k&&b()}catch(n){B("Error saving to WebStorage: "+n)}this.hb=this.Th=this.sk=""}e.length&&(window.indexedDB&&!this.tb?c(e,function(a){a?(d.hb=a,B("Loaded state from IndexedDB storage ("+d.hb.length+" bytes)")):(d.hb=localStorage.getItem("__c2save_"+ e)||"",B("Loaded state from WebStorage ("+d.hb.length+" bytes)"));d.Ig=!1;d.hb.length||d.trigger(W.prototype.e.Ki,null)},function(){d.hb=localStorage.getItem("__c2save_"+e)||"";B("Loaded state from WebStorage ("+d.hb.length+" bytes)");d.Ig=!1;d.hb.length||d.trigger(W.prototype.e.Ki,null)}):(this.hb=localStorage.getItem("__c2save_"+e)||"",B("Loaded state from WebStorage ("+this.hb.length+" bytes)"),this.Ig=!1,d.hb.length||d.trigger(W.prototype.e.Ki,null)),this.sk=this.Th="");this.hb.length&&(this.$a(), this.Rr(this.hb),this.cd=this.hb,this.trigger(W.prototype.e.Xo,null),this.hb=this.cd="")};p.prototype.xs=function(){var d,a,f,b,e,k,n,c={c2save:!0,version:1,rt:{time:this.Kd.la,walltime:this.Hi.la,timescale:this.Og,tickcount:this.vf,execcount:this.Of,next_uid:this.sg,running_layout:this.ba.N,start_time_offset:Date.now()-this.si},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(a=this.m.length;d<a;d++)if(e=this.m[d],!e.A&&!this.Sn(e)){k={instances:[]};Ra(e.V)&&(k.ex=h(e.V)); f=0;for(b=e.c.length;f<b;f++)k.instances.push(this.rk(e.c[f]));c.types[e.N.toString()]=k}d=0;for(a=this.pc.length;d<a;d++)f=this.pc[d],c.layouts[f.N.toString()]=f.mb();b=c.events.groups;d=0;for(a=this.sd.length;d<a;d++)f=this.sd[d],b[f.N.toString()]=this.Fh[f.Wf].Vf;a=c.events.cnds;for(n in this.Pe)this.Pe.hasOwnProperty(n)&&(d=this.Pe[n],Ra(d.V)&&(a[n]={ex:h(d.V)}));a=c.events.acts;for(n in this.Me)this.Me.hasOwnProperty(n)&&(d=this.Me[n],Ra(d.V)&&(a[n]={ex:d.V}));a=c.events.vars;for(n in this.zf)this.zf.hasOwnProperty(n)&& (d=this.zf[n],d.Mh||d.parent&&!d.fg||(a[n]=d.data));c.system=this.Lc.mb();return JSON.stringify(c)};p.prototype.tn=function(){var d,a,f,b,e,k;this.ed={};d=0;for(a=this.m.length;d<a;d++)if(f=this.m[d],!f.A)for(b=0,e=f.c.length;b<e;b++)k=f.c[b],this.ed[k.uid.toString()]=k};p.prototype.Rr=function(d){d=JSON.parse(d);if(d.c2save&&!(1<d.version)){var a=d.rt;this.Kd.reset();this.Kd.la=a.time;this.Hi.reset();this.Hi.la=a.walltime||0;this.Og=a.timescale;this.vf=a.tickcount;this.Of=a.execcount;this.si=Date.now()- a.start_time_offset;var f=a.running_layout;if(f!==this.ba.N)if(f=this.Wl(f))this.El(f);else return;var b,e,k,n,c,t,s;t=d.types;for(e in t)if(t.hasOwnProperty(e)&&(n=this.Eh(parseInt(e,10)))&&!n.A&&!this.Sn(n)){t[e].ex?n.V=t[e].ex:Sa(n.V);c=n.c;k=t[e].instances;f=0;for(b=ta(c.length,k.length);f<b;f++)this.Uh(c[f],k[f]);f=k.length;for(b=c.length;f<b;f++)this.Wd(c[f]);f=c.length;for(b=k.length;f<b;f++){c=null;if(n.ia.Jd&&(c=this.ba.Dh(k[f].w.l),!c))continue;c=this.Cd(n.Mb,c,!1,0,0,!0);this.Uh(c,k[f])}n.tf= !0}this.$a();this.tn();b=d.layouts;for(e in b)b.hasOwnProperty(e)&&(f=this.Wl(parseInt(e,10)))&&f.Gb(b[e]);b=d.events.groups;for(e in b)b.hasOwnProperty(e)&&(f=this.br(parseInt(e,10)))&&this.Fh[f.Wf]&&this.Fh[f.Wf].An(b[e]);f=d.events.cnds;for(e in f)f.hasOwnProperty(e)&&this.Pe.hasOwnProperty(e)&&(this.Pe[e].V=f[e].ex);f=d.events.acts;for(e in f)f.hasOwnProperty(e)&&this.Me.hasOwnProperty(e)&&(this.Me[e].V=f[e].ex);f=d.events.vars;for(e in f)f.hasOwnProperty(e)&&this.zf.hasOwnProperty(e)&&(this.zf[e].data= f[e]);this.sg=a.next_uid;this.Lc.Gb(d.system);f=0;for(b=this.m.length;f<b;f++)if(n=this.m[f],!n.A)for(e=0,d=n.c.length;e<d;e++){c=n.c[e];if(n.ub)for(t=c.Uf(),a=c.siblings.length=0,k=n.rb.length;a<k;a++)s=n.rb[a],n!==s&&c.siblings.push(s.c[t]);c.rd&&c.rd();if(c.F)for(a=0,k=c.F.length;a<k;a++)t=c.F[a],t.rd&&t.rd()}this.W=!0}};p.prototype.rk=function(d,a){var f,b,e,k,n;k=d.type;e=k.ia;var c={};a?c.c2=!0:c.uid=d.uid;Ra(d.V)&&(c.ex=h(d.V));if(d.Ha&&d.Ha.length)for(c.ivs={},f=0,b=d.Ha.length;f<b;f++)c.ivs[d.type.Dj[f].toString()]= d.Ha[f];if(e.Jd){e={x:d.x,y:d.y,w:d.width,h:d.height,l:d.g.N,zi:d.Qb()};0!==d.j&&(e.a=d.j);1!==d.opacity&&(e.o=d.opacity);.5!==d.eb&&(e.hX=d.eb);.5!==d.fb&&(e.hY=d.fb);0!==d.jb&&(e.bm=d.jb);d.visible||(e.v=d.visible);d.$d||(e.ce=d.$d);-1!==d.rg&&(e.mts=d.rg);if(k.G.length)for(e.fx=[],f=0,b=k.G.length;f<b;f++)n=k.G[f],e.fx.push({name:n.name,active:d.qd[n.index],params:d.oa[n.index]});c.w=e}if(d.F&&d.F.length)for(c.behs={},f=0,b=d.F.length;f<b;f++)k=d.F[f],k.mb&&(c.behs[k.type.N.toString()]=k.mb()); d.mb&&(c.data=d.mb());return c};p.prototype.dr=function(d,a){var f,b;f=0;for(b=d.Dj.length;f<b;f++)if(d.Dj[f]===a)return f;return-1};p.prototype.Yq=function(d,a){var f,b;f=0;for(b=d.F.length;f<b;f++)if(d.F[f].type.N===a)return f;return-1};p.prototype.Uh=function(d,a,f){var b,e,k,n,c;c=d.type;k=c.ia;if(f){if(!a.c2)return}else d.uid=a.uid;a.ex?d.V=a.ex:Sa(d.V);if(e=a.ivs)for(b in e)e.hasOwnProperty(b)&&(f=this.dr(c,parseInt(b,10)),0>f||f>=d.Ha.length||(d.Ha[f]=e[b]));if(k.Jd){k=a.w;d.g.N!==k.l&&(f= d.g,d.g=this.ba.Dh(k.l),d.g?(f.of(d,!0),d.g.Df(d,!0),d.ka(),d.g.Dg(0)):(d.g=f,this.Wd(d)));d.x=k.x;d.y=k.y;d.width=k.w;d.height=k.h;d.xc=k.zi;d.j=k.hasOwnProperty("a")?k.a:0;d.opacity=k.hasOwnProperty("o")?k.o:1;d.eb=k.hasOwnProperty("hX")?k.hX:.5;d.fb=k.hasOwnProperty("hY")?k.hY:.5;d.visible=k.hasOwnProperty("v")?k.v:!0;d.$d=k.hasOwnProperty("ce")?k.ce:!0;d.rg=k.hasOwnProperty("mts")?k.mts:-1;d.jb=k.hasOwnProperty("bm")?k.bm:0;d.If=ab(d.jb);this.k&&bb(d,d.jb,this.k);d.ka();if(k.hasOwnProperty("fx"))for(f= 0,e=k.fx.length;f<e;f++)n=c.sj(k.fx[f].name),0>n||(d.qd[n]=k.fx[f].active,d.oa[n]=k.fx[f].params);d.md()}if(c=a.behs)for(b in c)c.hasOwnProperty(b)&&(k=this.Yq(d,parseInt(b,10)),0>k||d.F[k].Gb(c[b]));a.data&&d.Gb(a.data)};Jb=function(d){return new p(document.getElementById(d))};Kb=function(d,a){return new p({dc:!0,width:d,height:a})};window.cr_createRuntime=Jb;window.cr_createDCRuntime=Kb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var d=document.createElement("screencanvas")||document.createElement("canvas"); d.au=!0;document.body.appendChild(d);d=new p(d);window.c2runtime=d;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d};window.createEjectaRuntime=function(){var d=new p(document.getElementById("canvas"));window.c2runtime=d;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d}})(); window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(g,q){if(0!==g&&0!==q){var p=window.cr_getC2Runtime();p&&p.setSize(g,q)}};window.cr_setSuspended=function(g){var q=window.cr_getC2Runtime();q&&q.setSuspended(g)}; (function(){function g(a,b){this.b=a;this.fe=null;this.scrollX=this.b.Ma/2;this.scrollY=this.b.La/2;this.scale=1;this.j=0;this.Se=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Tn=b[3];this.Gn=b[4];this.N=b[5];var e=b[6],f,c;this.I=[];this.Zf=[];f=0;for(c=e.length;f<c;f++){var m=new Lb(this,e[f]);m.Zm=f;this.I.push(m)}e=b[7];this.me=[];f=0;for(c=e.length;f<c;f++){var m=e[f],h=this.b.m[m[1]];h.Mb||(h.Mb=m);this.me.push(m);-1===this.Zf.indexOf(h)&&this.Zf.push(h)}this.G=[];this.U=[];this.oa= [];f=0;for(c=b[8].length;f<c;f++)this.G.push({id:b[8][f][0],name:b[8][f][1],Za:-1,Va:!0,index:f}),this.oa.push(b[8][f][2].slice(0));this.md();this.Cg=new Q(0,0,1,1);this.lk=new Q(0,0,1,1);this.Nd={}}function q(a,b){return a.xc-b.xc}function p(a,b){this.Ja=a;this.b=a.b;this.c=[];this.scale=1;this.j=0;this.be=!1;this.kd=new Q(0,0,0,0);this.Nn=new za;this.za=this.ra=this.Aa=this.qa=0;this.Ie=!1;this.od=-1;this.name=b[0];this.index=b[1];this.N=b[2];this.visible=b[3];this.ud=b[4];this.ld=b[5];this.Yb= b[6];this.Zb=b[7];this.opacity=b[8];this.lj=b[9];this.vc=b[10];this.yc=b[11];this.jb=b[12];this.pq=b[13];this.If="source-over";this.bb=this.cb=0;this.yb=null;this.Ze=r();this.gd=!0;this.Ph=new Q(0,0,-1,-1);this.Kb=new Q(0,0,-1,-1);this.vc&&(this.yb=new $a(this.b.Ma,this.b.La));this.Od=!1;var e=b[14],f,c;this.Jn=[];this.Eb=[];this.Kf=[];f=0;for(c=e.length;f<c;f++){var m=e[f],h=this.b.m[m[1]];h.Mb||(h.Mb=m,h.Yp=this.index);this.Eb.push(m);-1===this.Ja.Zf.indexOf(h)&&this.Ja.Zf.push(h)}R(this.Jn,this.Eb); this.G=[];this.U=[];this.oa=[];f=0;for(c=b[15].length;f<c;f++)this.G.push({id:b[15][f][0],name:b[15][f][1],Za:-1,Va:!0,index:f}),this.oa.push(b[15][f][2].slice(0));this.md();this.Cg=new Q(0,0,1,1);this.lk=new Q(0,0,1,1)}function r(){return h.length?h.pop():[]}function u(a){a.length=0;h.push(a)}g.prototype.ws=function(a){var b=a.type.N.toString();this.Nd.hasOwnProperty(b)||(this.Nd[b]=[]);this.Nd[b].push(this.b.rk(a))};g.prototype.cm=function(){var a=this.I[0];return!a.ld&&1===a.opacity&&!a.lj&&a.visible}; g.prototype.md=function(){this.U.length=0;var a,b,e;a=0;for(b=this.G.length;a<b;a++)e=this.G[a],e.Va&&this.U.push(e)};g.prototype.rj=function(a){var b,e,f;b=0;for(e=this.G.length;b<e;b++)if(f=this.G[b],f.name===a)return f;return null};var c=[],b=!0;g.prototype.wk=function(){this.Gn&&(this.fe=this.b.hj[this.Gn],this.fe.Hk());this.b.ba=this;this.scrollX=this.b.Ma/2;this.scrollY=this.b.La/2;var a,e,n,f,s,m,h;a=0;for(n=this.b.m.length;a<n;a++)if(e=this.b.m[a],!e.A)for(s=e.c,e=0,f=s.length;e<f;e++)if(m= s[e],m.g){var t=m.g.Zm;t>=this.I.length&&(t=this.I.length-1);m.g=this.I[t];-1===m.g.c.indexOf(m)&&m.g.c.push(m);m.g.Ie=!0}if(!b)for(a=0,n=this.I.length;a<n;++a)this.I[a].c.sort(q);c.length=0;this.Rp();a=0;for(n=this.I.length;a<n;a++)m=this.I[a],m.Xp(),m.Jk();s=!1;if(!this.Se){for(h in this.Nd)if(this.Nd.hasOwnProperty(h)&&(e=this.b.Eh(parseInt(h,10)))&&!e.A&&this.b.Gk(e)){f=this.Nd[h];a=0;for(n=f.length;a<n;a++){m=null;if(e.ia.Jd&&(m=this.Dh(f[a].w.l),!m))continue;m=this.b.Cd(e.Mb,m,!1,0,0,!0);this.b.Uh(m, f[a]);s=!0;c.push(m)}f.length=0}a=0;for(n=this.I.length;a<n;a++)this.I[a].c.sort(q),this.I[a].Ie=!0}s&&(this.b.$a(),this.b.tn());for(a=0;a<c.length;a++)if(m=c[a],m.type.ub)for(n=m.Uf(),e=0,f=m.type.rb.length;e<f;e++)h=m.type.rb[e],m.type!==h&&(h.c.length>n?m.siblings.push(h.c[n]):h.Mb&&(s=this.b.Cd(h.Mb,m.g,!0,m.x,m.y,!0),this.b.$a(),h.Gi(),m.siblings.push(s),c.push(s)));a=0;for(n=this.me.length;a<n;a++)this.b.Cd(this.me[a],null,!0);this.b.Rc=null;this.b.$a();if(this.b.aa&&!this.b.ha)for(a=0,n=this.b.m.length;a< n;a++)h=this.b.m[a],!h.A&&h.c.length&&h.hi&&h.hi(this.b.aa);a=0;for(n=c.length;a<n;a++)m=c[a],this.b.trigger(Object.getPrototypeOf(m.type.ia).e.Wg,m);c.length=0;this.b.trigger(W.prototype.e.Uk,null);this.Se=!1};g.prototype.Wp=function(){var a,b,e,f,c;b=a=0;for(e=this.me.length;a<e;a++)f=this.me[a],c=this.b.m[f[1]],c.global?this.b.Cd(f,null,!0):(this.me[b]=f,b++);this.me.length=b};g.prototype.zs=function(){this.b.trigger(W.prototype.e.Tk,null);this.b.Lc.nb.length=0;var a,e,c,f,s,m;if(!this.Se)for(a= 0,e=this.I.length;a<e;a++)for(this.I[a].Kk(),s=this.I[a].c,c=0,f=s.length;c<f;c++)m=s[c],m.type.global||this.b.Gk(m.type)&&this.ws(m);a=0;for(e=this.I.length;a<e;a++){s=this.I[a].c;c=0;for(f=s.length;c<f;c++)m=s[c],m.type.global||this.b.Wd(m);this.b.$a();s.length=0;this.I[a].Ie=!0}a=0;for(e=this.b.m.length;a<e;a++)if(s=this.b.m[a],!(s.global||s.ia.Jd||s.ia.qi||s.A)){c=0;for(f=s.c.length;c<f;c++)this.b.Wd(s.c[c]);this.b.$a()}b=!1};new Q(0,0,0,0);g.prototype.Wc=function(a){var b,e=a,f=!1,c=!this.b.Ob; c&&(this.b.Sh||(this.b.Sh=document.createElement("canvas"),b=this.b.Sh,b.width=this.b.L,b.height=this.b.K,this.b.Bm=b.getContext("2d"),f=!0),b=this.b.Sh,e=this.b.Bm,b.width!==this.b.L&&(b.width=this.b.L,f=!0),b.height!==this.b.K&&(b.height=this.b.K,f=!0),f&&(e.webkitImageSmoothingEnabled=this.b.S,e.mozImageSmoothingEnabled=this.b.S,e.msImageSmoothingEnabled=this.b.S,e.imageSmoothingEnabled=this.b.S));e.globalAlpha=1;e.globalCompositeOperation="source-over";this.b.Oi&&!this.cm()&&e.clearRect(0,0,this.b.L, this.b.K);var m,h,f=0;for(m=this.I.length;f<m;f++)h=this.I[f],h.visible&&0<h.opacity&&11!==h.jb&&(h.c.length||!h.ld)?h.Wc(e):h.Jk();c&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.Nb=function(a){var b=0<this.U.length||this.b.xf||!this.b.Ob;if(b){this.b.xb||(this.b.xb=a.Bd(this.b.L,this.b.K,this.b.S));if(this.b.xb.Hf!==this.b.L||this.b.xb.Gf!==this.b.K)a.deleteTexture(this.b.xb),this.b.xb=a.Bd(this.b.L,this.b.K,this.b.S);a.Jc(this.b.xb);this.b.Ob||a.Rd(this.b.L,this.b.K)}else this.b.xb&& (a.Jc(null),a.deleteTexture(this.b.xb),this.b.xb=null);this.b.Oi&&!this.cm()&&a.clear(0,0,0,0);var e,f,c;e=0;for(f=this.I.length;e<f;e++)c=this.I[e],c.visible&&0<c.opacity&&(c.c.length||!c.ld)?c.Nb(a):c.Jk();b&&(0===this.U.length||1===this.U.length&&this.b.Ob?(1===this.U.length?(b=this.U[0].index,a.Kc(this.U[0].Za),a.qf(null,1/this.b.L,1/this.b.K,0,0,1,1,this.scale,this.j,0,0,this.b.L/2,this.b.K/2,this.oa[b]),a.ii(this.U[0].Za)&&(this.b.W=!0)):a.Kc(0),this.b.Ob||a.Rd(this.b.width,this.b.height),a.Jc(null), a.Ee(1),a.zb(this.b.xb),a.zn(),a.Pd(),a.Vd(),b=this.b.width/2,e=this.b.height/2,a.ki(-b,e,b,e,b,-e,-b,-e),a.zb(null)):this.mk(a,null,null,null))};g.prototype.Tf=function(){return 0<this.U.length||this.b.xf||!this.b.Ob?this.b.xb:null};g.prototype.Xl=function(){var a=this.I[0].mc(),b,e,f;b=1;for(e=this.I.length;b<e;b++)f=this.I[b],(0!==f.Yb||0!==f.Zb)&&f.mc()<a&&(a=f.mc());return a};g.prototype.xn=function(a){if(!this.Tn){var b=1/this.Xl()*this.b.L/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!== a&&(this.scrollX=a,this.b.W=!0)};g.prototype.yn=function(a){if(!this.Tn){var b=1/this.Xl()*this.b.K/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.W=!0)};g.prototype.Rp=function(){this.xn(this.scrollX);this.yn(this.scrollY)};g.prototype.mk=function(a,b,e,f){var c=e?e.U:b?b.U:this.U,m=1,h=0,t=0,d=0,l=this.b.L,g=this.b.K;e?(m=e.g.mc(),h=e.g.lc(),t=e.g.qa,d=e.g.ra,l=e.g.Aa,g=e.g.za):b&&(m=b.mc(),h=b.lc(),t=b.qa,d=b.ra,l=b.Aa,g=b.za);var p=this.b.oj,q,r,u,C,I= 0,na=1,K,G=this.b.L,E=this.b.K,da=G/2,ea=E/2,J=b?b.Cg:this.Cg,y=b?b.lk:this.lk,z=0,N=0,D=0,H=0,A=G,ra=G,L=E,sa=E,ha=u=0,xa=e?e.g.lc():0;if(e){q=0;for(r=c.length;q<r;q++)u+=a.gr(c[q].Za),ha+=a.hr(c[q].Za);C=e.ua;z=b.gb(C.left,C.top,!0,!0);D=b.gb(C.left,C.top,!1,!0);A=b.gb(C.right,C.bottom,!0,!0);L=b.gb(C.right,C.bottom,!1,!0);0!==xa&&(q=b.gb(C.right,C.top,!0,!0),r=b.gb(C.right,C.top,!1,!0),N=b.gb(C.left,C.bottom,!0,!0),H=b.gb(C.left,C.bottom,!1,!0),C=Math.min(z,A,q,N),A=Math.max(z,A,q,N),z=C,C=Math.min(D, L,r,H),L=Math.max(D,L,r,H),D=C);z-=u;D-=ha;A+=u;L+=ha;y.left=z/G;y.top=1-D/E;y.right=A/G;y.bottom=1-L/E;N=z=P(z);H=D=P(D);ra=A=va(A);sa=L=va(L);N-=u;H-=ha;ra+=u;sa+=ha;0>z&&(z=0);0>D&&(D=0);A>G&&(A=G);L>E&&(L=E);0>N&&(N=0);0>H&&(H=0);ra>G&&(ra=G);sa>E&&(sa=E);J.left=z/G;J.top=1-D/E;J.right=A/G;J.bottom=1-L/E}else J.left=y.left=0,J.top=y.top=0,J.right=y.right=1,J.bottom=y.bottom=1;ha=e&&((e.j||xa)&&a.zg(c[0].Za)||0!==u||0!==ha||1!==e.opacity||e.type.ia.Wm)||b&&!e&&1!==b.opacity;a.zn();if(ha){p[I]|| (p[I]=a.Bd(G,E,this.b.S));if(p[I].Hf!==G||p[I].Gf!==E)a.deleteTexture(p[I]),p[I]=a.Bd(G,E,this.b.S);a.Kc(0);a.Jc(p[I]);K=sa-H;a.clearRect(N,E-H-K,ra-N,K);e?e.Nb(a):(a.zb(this.b.Fb),a.Ee(b.opacity),a.Pd(),a.translate(-da,-ea),a.Vd(),a.Ic(z,L,A,L,A,D,z,D,J));y.left=y.top=0;y.right=y.bottom=1;e&&(C=J.top,J.top=J.bottom,J.bottom=C);I=1;na=0}a.Ee(1);u=c.length-1;var xa=a.jk(c[u].Za)||!b&&!e&&!this.b.Ob,ya=0;q=0;for(r=c.length;q<r;q++){p[I]||(p[I]=a.Bd(G,E,this.b.S));if(p[I].Hf!==G||p[I].Gf!==E)a.deleteTexture(p[I]), p[I]=a.Bd(G,E,this.b.S);a.Kc(c[q].Za);ya=c[q].index;a.ii(c[q].Za)&&(this.b.W=!0);0!=q||ha?(a.qf(f,1/G,1/E,y.left,y.top,y.right,y.bottom,m,h,t,d,(t+l)/2,(d+g)/2,e?e.oa[ya]:b?b.oa[ya]:this.oa[ya]),a.zb(null),q!==u||xa?(a.Jc(p[I]),K=sa-H,C=E-H-K,a.clearRect(N,C,ra-N,K)):(e?a.Qd(e.cb,e.bb):b&&a.Qd(b.cb,b.bb),a.Jc(f)),a.zb(p[na]),a.Pd(),a.translate(-da,-ea),a.Vd(),a.Ic(z,L,A,L,A,D,z,D,J),q!==u||xa||a.zb(null)):(a.Jc(p[I]),K=sa-H,C=E-H-K,a.clearRect(N,C,ra-N,K),e?(a.qf(f,1/e.width,1/e.height,y.left,y.top, y.right,y.bottom,m,h,t,d,(t+l)/2,(d+g)/2,e.oa[ya]),e.Nb(a)):(a.qf(f,1/G,1/E,0,0,1,1,m,h,t,d,(t+l)/2,(d+g)/2,b?b.oa[ya]:this.oa[ya]),a.zb(b?this.b.Fb:this.b.xb),a.Pd(),a.translate(-da,-ea),a.Vd(),a.Ic(z,L,A,L,A,D,z,D,J)),y.left=y.top=0,y.right=y.bottom=1,e&&!xa&&(C=L,L=D,D=C));I=0===I?1:0;na=0===I?1:0}xa&&(a.Kc(0),e?a.Qd(e.cb,e.bb):b?a.Qd(b.cb,b.bb):this.b.Ob||(a.Rd(this.b.width,this.b.height),da=this.b.width/2,ea=this.b.height/2,D=z=0,A=this.b.width,L=this.b.height),a.Jc(f),a.zb(p[na]),a.Pd(),a.translate(-da, -ea),a.Vd(),e&&1===c.length&&!ha?a.Ic(z,D,A,D,A,L,z,L,J):a.Ic(z,L,A,L,A,D,z,D,J),a.zb(null))};g.prototype.Dh=function(a){var b,e;b=0;for(e=this.I.length;b<e;b++)if(this.I[b].N===a)return this.I[b];return null};g.prototype.mb=function(){var a,b,e,f={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,fv:this.Se,persist:this.Nd,fx:[],layers:{}};a=0;for(b=this.G.length;a<b;a++)e=this.G[a],f.fx.push({name:e.name,active:e.Va,params:this.oa[e.index]});a=0;for(b=this.I.length;a< b;a++)e=this.I[a],f.layers[e.N.toString()]=e.mb();return f};g.prototype.Gb=function(a){var b,e,f,c;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.Nd=a.persist;"undefined"!==typeof a.fv&&(this.Se=a.fv);var m=a.fx;b=0;for(e=m.length;b<e;b++)if(f=this.rj(m[b].name))f.Va=m[b].active,this.oa[f.index]=m[b].params;this.md();b=a.layers;for(c in b)b.hasOwnProperty(c)&&(a=this.Dh(parseInt(c,10)))&&a.Gb(b[c])};xb=g;p.prototype.md=function(){this.U.length=0; var a,b,e;a=0;for(b=this.G.length;a<b;a++)e=this.G[a],e.Va&&this.U.push(e)};p.prototype.rj=function(a){var b,e,f;b=0;for(e=this.G.length;b<e;b++)if(f=this.G[b],f.name===a)return f;return null};p.prototype.Xp=function(){var a,b,e,f,m,h;b=a=0;for(e=this.Eb.length;a<e;a++){f=this.Eb[a];m=this.b.m[f[1]];h=this.b.Gk(m);m=!0;if(!h||this.Ja.Se)f=this.b.Cd(f,this,!0),c.push(f),f.type.global&&(m=!1,this.Kf.push(f.uid));m&&(this.Eb[b]=this.Eb[a],b++)}this.Eb.length=b;this.b.$a();!this.b.n&&this.G.length&&(this.jb= this.pq);this.If=ab(this.jb);this.b.k&&bb(this,this.jb,this.b.k);this.gd=!0};p.prototype.of=function(a,b){var e=Da(this.c,a);0>e||(b&&this.vc&&a.lb&&a.lb.right>=a.lb.left&&(a.ga(),this.yb.update(a,a.lb,null),a.lb.set(0,0,-1,-1)),e===this.c.length-1?this.c.pop():(Ba(this.c,e),this.Dg(e)),this.gd=!0)};p.prototype.Df=function(a,b){a.xc=this.c.length;this.c.push(a);b&&this.vc&&a.lb&&a.ka();this.gd=!0};p.prototype.ks=function(a){this.c.unshift(a);this.Dg(0)};p.prototype.Xr=function(a,b,e){var f=a.Qb(); b=b.Qb();Ba(this.c,f);f<b&&b--;e&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.Dg(f<b?f:b)};p.prototype.Dg=function(a){-1===this.od?this.od=a:a<this.od&&(this.od=a);this.gd=this.Ie=!0};p.prototype.Kk=function(){if(this.Ie){-1===this.od&&(this.od=0);var a,b,e;if(this.vc)for(a=this.od,b=this.c.length;a<b;++a)e=this.c[a],e.xc=a,this.yb.Ur(e.lb);else for(a=this.od,b=this.c.length;a<b;++a)this.c[a].xc=a;this.Ie=!1;this.od=-1}};p.prototype.mc=function(a){return this.er()*(this.b.Ob||a? this.b.Ef:1)};p.prototype.er=function(){return(this.scale*this.Ja.scale-1)*this.yc+1};p.prototype.lc=function(){return this.be?0:Ha(this.Ja.j+this.j)};var h=[],e=[],m=[];p.prototype.Zl=function(){this.Kk();this.yb.li(this.qa,this.ra,this.Aa,this.za,m);if(!m.length)return r();if(1===m.length){var a=r();R(a,m[0]);m.length=0;return a}for(var b=!0;1<m.length;){for(var a=m,c=void 0,f=void 0,h=void 0,g=void 0,p=void 0,c=0,f=a.length;c<f-1;c+=2){var h=a[c],g=a[c+1],p=r(),t=h,d=g,l=p,q=0,w=0,aa=0,pa=t.length, qa=d.length,C=void 0,I=void 0;for(l.length=pa+qa;q<pa&&w<qa;++aa)C=t[q],I=d[w],C.xc<I.xc?(l[aa]=C,++q):(l[aa]=I,++w);for(;q<pa;++q,++aa)l[aa]=t[q];for(;w<qa;++w,++aa)l[aa]=d[w];b||(u(h),u(g));e.push(p)}1===f%2&&(b?(h=r(),R(h,a[f-1]),e.push(h)):e.push(a[f-1]));R(a,e);e.length=0;b=!1}a=m[0];m.length=0;return a};p.prototype.Wc=function(a){this.Od=this.lj||1!==this.opacity||0!==this.jb;var b=this.b.canvas,e=a,f=!1;this.Od&&(this.b.Rh||(this.b.Rh=document.createElement("canvas"),b=this.b.Rh,b.width=this.b.L, b.height=this.b.K,this.b.Am=b.getContext("2d"),f=!0),b=this.b.Rh,e=this.b.Am,b.width!==this.b.L&&(b.width=this.b.L,f=!0),b.height!==this.b.K&&(b.height=this.b.K,f=!0),f&&(e.webkitImageSmoothingEnabled=this.b.S,e.mozImageSmoothingEnabled=this.b.S,e.msImageSmoothingEnabled=this.b.S,e.imageSmoothingEnabled=this.b.S),this.ld&&e.clearRect(0,0,this.b.L,this.b.K));e.globalAlpha=1;e.globalCompositeOperation="source-over";this.ld||(e.fillStyle="rgb("+this.ud[0]+","+this.ud[1]+","+this.ud[2]+")",e.fillRect(0, 0,this.b.L,this.b.K));e.save();this.be=!0;var f=this.Wa(0,0,!0,!0),c=this.Wa(0,0,!1,!0);this.be=!1;this.b.Gc&&(f=Math.round(f),c=Math.round(c));this.ok(f,c,e);var m=this.mc();e.scale(m,m);e.translate(-f,-c);this.vc?(this.Kb.left=this.yb.Ab(this.qa),this.Kb.top=this.yb.Bb(this.ra),this.Kb.right=this.yb.Ab(this.Aa),this.Kb.bottom=this.yb.Bb(this.za),this.gd||!this.Kb.uh(this.Ph)?(u(this.Ze),f=this.Zl(),this.gd=!1,this.Ph.Jf(this.Kb)):f=this.Ze):f=this.c;for(var h,t=null,c=0,m=f.length;c<m;++c)h=f[c], h!==t&&(this.mq(h,e),t=h);this.vc&&(this.Ze=f);e.restore();this.Od&&(a.globalCompositeOperation=this.If,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};p.prototype.mq=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ga();var e=a.ua;e.right<this.qa||e.bottom<this.ra||e.left>this.Aa||e.top>this.za||(b.globalCompositeOperation=a.If,a.Wc(b))}};p.prototype.Jk=function(){this.be=!0;var a=this.Wa(0,0,!0,!0),b=this.Wa(0,0,!1,!0);this.be=!1;this.b.Gc&&(a=Math.round(a),b=Math.round(b));this.ok(a,b, null)};p.prototype.ok=function(a,b,e){var f=this.mc();this.qa=a;this.ra=b;this.Aa=a+1/f*this.b.L;this.za=b+1/f*this.b.K;a=this.lc();0!==a&&(e&&(e.translate(this.b.L/2,this.b.K/2),e.rotate(-a),e.translate(this.b.L/-2,this.b.K/-2)),this.kd.set(this.qa,this.ra,this.Aa,this.za),this.kd.offset((this.qa+this.Aa)/-2,(this.ra+this.za)/-2),this.Nn.En(this.kd,a),this.Nn.ol(this.kd),this.kd.offset((this.qa+this.Aa)/2,(this.ra+this.za)/2),this.qa=this.kd.left,this.ra=this.kd.top,this.Aa=this.kd.right,this.za= this.kd.bottom)};p.prototype.Nb=function(a){var b=0,e=0;if(this.Od=this.lj||1!==this.opacity||0<this.U.length||0!==this.jb){this.b.Fb||(this.b.Fb=a.Bd(this.b.L,this.b.K,this.b.S));if(this.b.Fb.Hf!==this.b.L||this.b.Fb.Gf!==this.b.K)a.deleteTexture(this.b.Fb),this.b.Fb=a.Bd(this.b.L,this.b.K,this.b.S);a.Jc(this.b.Fb);this.ld&&a.clear(0,0,0,0)}this.ld||a.clear(this.ud[0]/255,this.ud[1]/255,this.ud[2]/255,1);this.be=!0;var f=this.Wa(0,0,!0,!0),b=this.Wa(0,0,!1,!0);this.be=!1;this.b.Gc&&(f=Math.round(f), b=Math.round(b));this.ok(f,b,null);f=this.mc();a.Pd();a.scale(f,f);a.vn(-this.lc());a.translate((this.qa+this.Aa)/-2,(this.ra+this.za)/-2);a.Vd();this.vc?(this.Kb.left=this.yb.Ab(this.qa),this.Kb.top=this.yb.Bb(this.ra),this.Kb.right=this.yb.Ab(this.Aa),this.Kb.bottom=this.yb.Bb(this.za),this.gd||!this.Kb.uh(this.Ph)?(u(this.Ze),b=this.Zl(),this.gd=!1,this.Ph.Jf(this.Kb)):b=this.Ze):b=this.c;var c,m,h=null,e=0;for(c=b.length;e<c;++e)m=b[e],m!==h&&(this.nq(b[e],a),h=m);this.vc&&(this.Ze=b);this.Od&& (b=this.U.length?this.U[0].Za:0,e=this.U.length?this.U[0].index:0,0===this.U.length||1===this.U.length&&!a.jk(b)&&1===this.opacity?(1===this.U.length?(a.Kc(b),a.qf(this.Ja.Tf(),1/this.b.L,1/this.b.K,0,0,1,1,f,this.lc(),this.qa,this.ra,(this.qa+this.Aa)/2,(this.ra+this.za)/2,this.oa[e]),a.ii(b)&&(this.b.W=!0)):a.Kc(0),a.Jc(this.Ja.Tf()),a.Ee(this.opacity),a.zb(this.b.Fb),a.Qd(this.cb,this.bb),a.Pd(),a.Vd(),f=this.b.L/2,b=this.b.K/2,a.ki(-f,b,f,b,f,-b,-f,-b),a.zb(null)):this.Ja.mk(a,this,null,this.Ja.Tf()))}; p.prototype.nq=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ga();var e=a.ua;e.right<this.qa||e.bottom<this.ra||e.left>this.Aa||e.top>this.za||(a.Zn?this.oq(a,b):(b.Kc(0),b.Qd(a.cb,a.bb),a.Nb(b)))}};p.prototype.oq=function(a,b){var e=a.U[0].Za,f=a.U[0].index,c=this.mc();if(1!==a.U.length||b.jk(e)||b.ms(e)||(a.j||a.g.lc())&&b.zg(e)||1!==a.opacity||a.type.ia.Wm)this.Ja.mk(b,this,a,this.Od?this.b.Fb:this.Ja.Tf()),b.Pd(),b.scale(c,c),b.vn(-this.lc()),b.translate((this.qa+this.Aa)/-2,(this.ra+ this.za)/-2),b.Vd();else{b.Kc(e);b.Qd(a.cb,a.bb);b.ii(e)&&(this.b.W=!0);var m=0,h=0,t=0,d=0;b.zg(e)&&(e=a.ua,m=this.gb(e.left,e.top,!0,!0),h=this.gb(e.left,e.top,!1,!0),t=this.gb(e.right,e.bottom,!0,!0),e=this.gb(e.right,e.bottom,!1,!0),m/=windowWidth,h=1-h/windowHeight,t/=windowWidth,d=1-e/windowHeight);b.qf(this.Od?this.b.Fb:this.Ja.Tf(),1/a.width,1/a.height,m,h,t,d,c,this.lc(),this.qa,this.ra,(this.qa+this.Aa)/2,(this.ra+this.za)/2,a.oa[f]);a.Nb(b)}};p.prototype.Wa=function(a,b,e,f){var c=this.b.devicePixelRatio; this.b.pe&&(a*=c,b*=c);var c=this.b.gn,m=this.b.hn,c=(this.Ja.scrollX-c)*this.Yb+c,m=(this.Ja.scrollY-m)*this.Zb+m,h=c,t=m,d=1/this.mc(!f);f?(h-=this.b.L*d/2,t-=this.b.K*d/2):(h-=this.b.width*d/2,t-=this.b.height*d/2);h+=a*d;t+=b*d;b=this.lc();0!==b&&(h-=c,t-=m,a=Math.cos(b),b=Math.sin(b),f=h*a-t*b,t=t*a+h*b,h=f+c,t+=m);return e?h:t};p.prototype.gb=function(a,b,e,f){var c=this.b.gn,m=this.b.hn,h=(this.Ja.scrollX-c)*this.Yb+c,t=(this.Ja.scrollY-m)*this.Zb+m,m=h,c=t,d=this.lc();if(0!==d){a-=h;b-=t; var l=Math.cos(-d),d=Math.sin(-d),g=a*l-b*d;b=b*l+a*d;a=g+h;b+=t}h=1/this.mc(!f);f?(m-=this.b.L*h/2,c-=this.b.K*h/2):(m-=this.b.width*h/2,c-=this.b.height*h/2);m=(a-m)/h;c=(b-c)/h;a=this.b.devicePixelRatio;this.b.pe&&!f&&(m/=a,c/=a);return e?m:c};p.prototype.mb=function(){var a,b,e,f={s:this.scale,a:this.j,vl:this.qa,vt:this.ra,vr:this.Aa,vb:this.za,v:this.visible,bc:this.ud,t:this.ld,px:this.Yb,py:this.Zb,o:this.opacity,zr:this.yc,fx:[],cg:this.Kf,instances:[]};a=0;for(b=this.G.length;a<b;a++)e= this.G[a],f.fx.push({name:e.name,active:e.Va,params:this.oa[e.index]});return f};p.prototype.Gb=function(a){var b,e,f;this.scale=a.s;this.j=a.a;this.qa=a.vl;this.ra=a.vt;this.Aa=a.vr;this.za=a.vb;this.visible=a.v;this.ud=a.bc;this.ld=a.t;this.Yb=a.px;this.Zb=a.py;this.opacity=a.o;this.yc=a.zr;this.Kf=a.cg||[];R(this.Eb,this.Jn);var c=new fa;b=0;for(f=this.Kf.length;b<f;++b)c.add(this.Kf[b]);e=b=0;for(f=this.Eb.length;b<f;++b)c.contains(this.Eb[b][2])||(this.Eb[e]=this.Eb[b],++e);this.Eb.length=e; e=a.fx;b=0;for(f=e.length;b<f;b++)if(a=this.rj(e[b].name))a.Va=e[b].active,this.oa[a.index]=e[b].params;this.md();this.c.sort(q);this.Ie=!0};Lb=p})(); (function(){function g(a,d){var b,f=a.length;switch(f){case 0:return!0;case 1:return a[0]===d[0];case 2:return a[0]===d[0]&&a[1]===d[1];default:for(b=0;b<f;b++)if(a[b]!==d[b])return!1;return!0}}function q(a,d){return a.index-d.index}function p(a){var d,b,f,e;2===a.length?a[0].index>a[1].index&&(d=a[0],a[0]=a[1],a[1]=d):2<a.length&&a.sort(q);a.length>=s.length&&(s.length=a.length+1);s[a.length]||(s[a.length]=[]);e=s[a.length];d=0;for(b=e.length;d<b;d++)if(f=e[d],g(a,f))return f;e.push(a);return a} function r(a,d){this.b=a;this.Pn={};this.Kl={};this.zj=!1;this.fm=new fa;this.cj=[];this.Pi=[];this.name=d[0];var b=d[1];this.Ed=[];var f,e;f=0;for(e=b.length;f<e;f++)this.hm(b[f],null,this.Ed)}function u(a){this.type=a;this.c=[];this.O=[];this.X=!0}function c(a,d,b){this.sheet=a;this.parent=d;this.b=a.b;this.R=[];this.Sd=[];this.dm=this.Ci=this.Dk=this.Hh=this.group=this.vk=!1;this.Fa=[];this.fc=[];this.cc=[];this.Wf="";this.Vf=this.Hh=this.group=!1;this.nh=null;b[1]&&(this.Wf=b[1][1].toLowerCase(), this.group=!0,this.Hh=!!b[1][0],this.nh=[],this.Vf=this.Hh,this.b.sd.push(this),this.b.Fh[this.Wf]=this);this.Wb=b[2];this.N=b[4];this.group||(this.b.nl[this.N.toString()]=this);var f=b[5];a=0;for(d=f.length;a<d;a++){var e=new Mb(this,f[a]);e.index=a;this.Fa.push(e);this.jl(e.type)}f=b[6];a=0;for(d=f.length;a<d;a++)e=new Nb(this,f[a]),e.index=a,this.fc.push(e);if(8===b.length)for(b=b[7],a=0,d=b.length;a<d;a++)this.sheet.hm(b[a],this,this.cc);this.Nh=!1;this.Fa.length&&(this.Nh=null==this.Fa[0].type&& this.Fa[0].Xa==W.prototype.e.so)}function b(a,d){var b,f,e;if(a&&(-1===d.indexOf(a)&&d.push(a),a.ub))for(b=0,f=a.rb.length;b<f;b++)e=a.rb[b],a!==e&&-1===d.indexOf(e)&&d.push(e)}function h(a,d){this.Cb=a;this.sheet=a.sheet;this.b=a.b;this.J=[];this.pa=[];this.V={};this.index=-1;this.Bf=!1;this.Xa=this.b.pd(d[1]);this.trigger=0<d[3];this.Jl=2===d[3];this.Ih=d[5];this.Or=d[6];this.N=d[7];this.b.Pe[this.N.toString()]=this;-1===d[0]?(this.type=null,this.xa=this.qk,this.Zd=null,this.ic=-1):(this.type=this.b.m[d[0]], this.xa=this.Or?this.us:this.pk,d[2]?(this.Zd=this.type.Ah(d[2]),this.ic=this.type.pj(d[2])):(this.Zd=null,this.ic=-1),this.Cb.parent&&this.Cb.parent.pi());this.Jl&&(this.xa=this.vs);if(10===d.length){var b,f,e=d[9];b=0;for(f=e.length;b<f;b++){var c=new Ob(this,e[b]);this.J.push(c)}this.pa.length=e.length}}function e(a,d){this.Cb=a;this.sheet=a.sheet;this.b=a.b;this.J=[];this.pa=[];this.V={};this.index=-1;this.Bf=!1;this.Xa=this.b.pd(d[1]);-1===d[0]?(this.type=null,this.xa=this.qk,this.Zd=null,this.ic= -1):(this.type=this.b.m[d[0]],this.xa=this.pk,d[2]?(this.Zd=this.type.Ah(d[2]),this.ic=this.type.pj(d[2])):(this.Zd=null,this.ic=-1));this.N=d[3];this.b.Me[this.N.toString()]=this;if(6===d.length){var b,f,e=d[5];b=0;for(f=e.length;b<f;b++){var c=new Ob(this,e[b]);this.J.push(c)}this.pa.length=e.length}}function m(){F++;x.length===F&&x.push(new Pb);return x[F]}function a(a,d){this.Xb=a;this.Cb=a.Cb;this.sheet=a.sheet;this.b=a.b;this.type=d[0];this.Cc=null;this.jd=0;this.get=null;this.wl=0;this.Ja= null;this.key=0;this.object=null;this.index=0;this.Qg=this.Ge=this.Qg=this.Ge=this.Ll=this.ge=this.Rg=null;this.ec=!1;var b,f,e;switch(d[0]){case 0:case 7:this.Cc=new U(this,d[1]);this.jd=0;this.get=this.mr;break;case 1:this.Cc=new U(this,d[1]);this.jd=0;this.get=this.nr;break;case 5:this.Cc=new U(this,d[1]);this.jd=0;this.get=this.rr;break;case 3:case 8:this.wl=d[1];this.get=this.kr;break;case 6:this.Ja=this.b.$e[d[1]];this.get=this.sr;break;case 9:this.key=d[1];this.get=this.qr;break;case 4:this.object= this.b.m[d[1]];this.get=this.tr;this.Cb.jl(this.object);this.Xb instanceof Nb?this.Cb.pi():this.Cb.parent&&this.Cb.parent.pi();break;case 10:this.index=d[1];a.type.A?(this.get=this.or,this.ec=!0):this.get=this.pr;break;case 11:this.Rg=d[1];this.ge=null;this.get=this.lr;break;case 2:case 12:this.Ll=d[1];this.get=this.jr;break;case 13:for(this.get=this.ur,this.Ge=[],this.Qg=[],b=1,f=d.length;b<f;b++)e=new Ob(this.Xb,d[b]),this.Ge.push(e),this.Qg.push(0)}}function k(a,d,b){this.sheet=a;this.parent=d; this.b=a.b;this.R=[];this.name=b[1];this.Sg=b[2];this.Bj=b[3];this.fg=!!b[4];this.Mh=!!b[5];this.N=b[6];this.b.zf[this.N.toString()]=this;this.data=this.Bj;this.parent?(this.ye=this.fg||this.Mh?-1:this.b.ys++,this.b.Np.push(this)):(this.ye=-1,this.b.Mp.push(this))}function n(a,d,b){this.sheet=a;this.parent=d;this.b=a.b;this.R=[];this.Yf=null;this.Br=b[1];this.Va=!0}function f(){this.Kn=[];this.reset(null)}var s=[];r.prototype.toString=function(){return this.name};r.prototype.hm=function(a,d,b){switch(a[0]){case 0:a= new Qb(this,d,a);if(a.Wb)for(b.push(a),b=0,d=a.Fa.length;b<d;b++)a.Fa[b].trigger&&this.im(a,b);else a.rm()?this.im(a,0):b.push(a);break;case 1:a=new Ib(this,d,a);b.push(a);break;case 2:a=new Rb(this,d,a),b.push(a)}};r.prototype.ta=function(){var a,d;a=0;for(d=this.Ed.length;a<d;a++)this.Ed[a].ta(a<d-1&&this.Ed[a+1].Nh)};r.prototype.Hk=function(){this.cj.length=0;this.Pi.length=0;this.il(this);this.Pi.length=0};r.prototype.il=function(a){var d,b,f,e,c=a.cj,m=a.Pi,h=this.fm.wc();d=0;for(b=h.length;d< b;++d)f=h[d],e=f.Yf,!f.Va||a===e||-1<m.indexOf(e)||(m.push(e),e.il(a),c.push(e))};r.prototype.xa=function(a){this.b.$t||(this.zj=!0,a||(this.b.Gj=!0));var d,b;d=0;for(b=this.Ed.length;d<b;d++){var f=this.Ed[d];f.xa();this.b.Yi(f.R);this.b.Gd&&this.b.$a()}a||(this.b.Gj=!1)};r.prototype.im=function(a,d){a.Wb||this.b.Ei.push(a);var b,f,e=a.Fa[d],c;c=e.type?e.type.name:"system";var m=(b=e.Jl)?this.Kl:this.Pn;m[c]||(m[c]=[]);c=m[c];m=e.Xa;if(b){if(e.J.length&&(e=e.J[0],1===e.type&&2===e.Cc.type)){e=e.Cc.value.toLowerCase(); b=0;for(f=c.length;b<f;b++)if(c[b].method==m){b=c[b].Nf;b[e]?b[e].push([a,d]):b[e]=[[a,d]];return}b={};b[e]=[[a,d]];c.push({method:m,Nf:b})}}else{b=0;for(f=c.length;b<f;b++)if(c[b].method==m){c[b].Nf.push([a,d]);return}X&&m===X.prototype.e.Le?c.unshift({method:m,Nf:[[a,d]]}):c.push({method:m,Nf:[[a,d]]})}};yb=r;u.prototype.yj=function(){return this.X?this.type.c.length:this.c.length};u.prototype.Pb=function(){return this.X?this.type.c:this.c};u.prototype.yg=function(a){a&&(a.b.Sa().Ra.Wb?(this.X&& (this.c.length=0,R(this.O,a.type.c),this.X=!1),a=this.O.indexOf(a),-1!==a&&(this.c.push(this.O[a]),this.O.splice(a,1))):(this.X=!1,this.c.length=1,this.c[0]=a))};hb=u;window._c2hh_="CFF39BA4132C0EA6E8A7303A5381A8E04976E3E3";c.prototype.ta=function(a){var d,b=this.parent;if(this.group)for(this.Ci=!0;b;){if(!b.group){this.Ci=!1;break}b=b.parent}this.Dk=!this.rm()&&(!this.parent||this.parent.group&&this.parent.Ci);this.dm=!!a;this.Sd=this.R.slice(0);for(b=this.parent;b;){a=0;for(d=b.R.length;a<d;a++)this.Kp(b.R[a]); b=b.parent}this.R=p(this.R);this.Sd=p(this.Sd);a=0;for(d=this.Fa.length;a<d;a++)this.Fa[a].ta();a=0;for(d=this.fc.length;a<d;a++)this.fc[a].ta();a=0;for(d=this.cc.length;a<d;a++)this.cc[a].ta(a<d-1&&this.cc[a+1].Nh)};c.prototype.An=function(a){if(this.Vf!==!!a){this.Vf=!!a;var d;a=0;for(d=this.nh.length;a<d;++a)this.nh[a].Vn();0<d&&this.b.ba.fe&&this.b.ba.fe.Hk()}};c.prototype.jl=function(a){b(a,this.R)};c.prototype.Kp=function(a){b(a,this.Sd)};c.prototype.pi=function(){this.vk=!0;this.parent&&this.parent.pi()}; c.prototype.rm=function(){return this.Fa.length?this.Fa[0].trigger:!1};c.prototype.xa=function(){var a,d=!1,b,f=this.b,e=this.b.Sa();e.Ra=this;var c=this.Fa;this.Nh||(e.fj=!1);if(this.Wb){0===c.length&&(d=!0);e.wa=0;for(a=c.length;e.wa<a;e.wa++)c[e.wa].trigger||(b=c[e.wa].xa())&&(d=!0);(e.te=d)&&this.ni()}else{e.wa=0;for(a=c.length;e.wa<a;e.wa++)if(b=c[e.wa].xa(),!b){e.te=!1;this.Dk&&f.Gd&&f.$a();return}e.te=!0;this.ni()}this.rq(e)};c.prototype.rq=function(a){a.te&&this.dm&&(a.fj=!0);this.Dk&&this.b.Gd&& this.b.$a()};c.prototype.ss=function(a){this.b.Sa().Ra=this;this.Fa[a].xa()&&(this.ni(),this.b.Sa().te=!0)};c.prototype.ni=function(){var a=this.b.Sa(),d;a.ob=0;for(d=this.fc.length;a.ob<d;a.ob++)if(this.fc[a.ob].xa())return;this.wn()};c.prototype.qs=function(){var a=this.b.Sa(),d;for(d=this.fc.length;a.ob<d;a.ob++)if(this.fc[a.ob].xa())return;this.wn()};c.prototype.wn=function(){if(this.cc.length){var a,d,b,f,e=this.cc.length-1;this.b.ji(this);if(this.vk)for(a=0,d=this.cc.length;a<d;a++)b=this.cc[a], (f=!this.Ci||!this.group&&a<e)&&this.b.Ce(b.R),b.xa(),f?this.b.Hc(b.R):this.b.Yi(b.R);else for(a=0,d=this.cc.length;a<d;a++)this.cc[a].xa();this.b.gi()}};c.prototype.ts=function(){var a=this.b.Sa();a.Ra=this;var d=!1,b;a.wa=0;for(b=this.Fa.length;a.wa<b;a.wa++)if(this.Fa[a.wa].xa())d=!0;else if(!this.Wb)return!1;return this.Wb?d:!0};c.prototype.De=function(){this.b.Of++;var a=this.b.Sa().wa,d=this.b.ji(this);if(!this.Wb)for(d.wa=a+1,a=this.Fa.length;d.wa<a;d.wa++)if(!this.Fa[d.wa].xa()){this.b.gi(); return}this.ni();this.b.gi()};c.prototype.Ir=function(a){var d=a.index;if(0===d)return!0;for(--d;0<=d;--d)if(this.Fa[d].type===a.type)return!1;return!0};Qb=c;h.prototype.ta=function(){var a,d,b;a=0;for(d=this.J.length;a<d;a++)b=this.J[a],b.ta(),b.ec&&(this.Bf=!0)};h.prototype.vs=function(){return!0};h.prototype.qk=function(){var a,d;a=0;for(d=this.J.length;a<d;a++)this.pa[a]=this.J[a].get();return Pa(this.Xa.apply(this.b.Lc,this.pa),this.Ih)};h.prototype.us=function(){var a,d;a=0;for(d=this.J.length;a< d;a++)this.pa[a]=this.J[a].get();a=this.Xa.apply(this.Zd?this.Zd:this.type,this.pa);this.type.td();return a};h.prototype.pk=function(){var a,d,b,f,e,c,m,h,n=this.type,k=n.P(),s=this.Cb.Wb&&!this.trigger;d=0;var g=n.ub,p=n.A,q=n.Yc,x=this.ic,r=-1<x,F=this.Bf,u=this.J,z=this.pa,N=this.Ih,D=this.Xa,H;if(F)for(d=0,e=u.length;d<e;++d)c=u[d],c.ec||(z[d]=c.get(0));else for(d=0,e=u.length;d<e;++d)z[d]=u[d].get(0);if(k.X){k.c.length=0;k.O.length=0;H=n.c;a=0;for(f=H.length;a<f;++a){h=H[a];if(F)for(d=0,e=u.length;d< e;++d)c=u[d],c.ec&&(z[d]=c.get(a));r?(d=0,p&&(d=h.type.Re[q]),d=D.apply(h.F[x+d],z)):d=D.apply(h,z);(m=Pa(d,N))?k.c.push(h):s&&k.O.push(h)}n.finish&&n.finish(!0);k.X=!1;n.td();return k.yj()}b=0;H=(m=s&&!this.Cb.Ir(this))?k.O:k.c;var A=!1;a=0;for(f=H.length;a<f;++a){h=H[a];if(F)for(d=0,e=u.length;d<e;++d)c=u[d],c.ec&&(z[d]=c.get(a));r?(d=0,p&&(d=h.type.Re[q]),d=D.apply(h.F[x+d],z)):d=D.apply(h,z);if(Pa(d,N))if(A=!0,m){if(k.c.push(h),g)for(d=0,e=h.siblings.length;d<e;d++)c=h.siblings[d],c.type.P().c.push(c)}else{H[b]= h;if(g)for(d=0,e=h.siblings.length;d<e;d++)c=h.siblings[d],c.type.P().c[b]=c;b++}else if(m){H[b]=h;if(g)for(d=0,e=h.siblings.length;d<e;d++)c=h.siblings[d],c.type.P().O[b]=c;b++}else if(s&&(k.O.push(h),g))for(d=0,e=h.siblings.length;d<e;d++)c=h.siblings[d],c.type.P().O.push(c)}H.length=b;if(g)for(p=n.rb,a=0,f=p.length;a<f;a++)h=p[a].P(),m?h.O.length=b:h.c.length=b;b=A;if(m&&!A)for(a=0,f=k.c.length;a<f;a++){h=k.c[a];if(F)for(d=0,e=u.length;d<e;d++)c=u[d],c.ec&&(z[d]=c.get(a));d=r?D.apply(h.F[x],z): D.apply(h,z);if(Pa(d,N)){A=!0;break}}n.finish&&n.finish(b||s);return s?A:k.yj()};Mb=h;e.prototype.ta=function(){var a,d,b;a=0;for(d=this.J.length;a<d;a++)b=this.J[a],b.ta(),b.ec&&(this.Bf=!0)};e.prototype.qk=function(){var a=this.b,d,b,f=this.J,e=this.pa;d=0;for(b=f.length;d<b;++d)e[d]=f[d].get();return this.Xa.apply(a.Lc,e)};e.prototype.pk=function(){var a=this.type,d=this.ic,b=a.Yc,f=this.Bf,e=this.J,c=this.pa,m=this.Xa,h=a.P().Pb(),a=a.A,n=-1<d,k,s,g,p,q,x;if(f)for(s=0,p=e.length;s<p;++s)q=e[s], q.ec||(c[s]=q.get(0));else for(s=0,p=e.length;s<p;++s)c[s]=e[s].get(0);k=0;for(g=h.length;k<g;++k){x=h[k];if(f)for(s=0,p=e.length;s<p;++s)q=e[s],q.ec&&(c[s]=q.get(k));n?(s=0,a&&(s=x.type.Re[b]),m.apply(x.F[d+s],c)):m.apply(x,c)}return!1};Nb=e;var x=[],F=-1;a.prototype.ta=function(){var a,d;if(11===this.type)this.ge=this.b.Ul(this.Rg,this.Cb.parent);else if(13===this.type)for(a=0,d=this.Ge.length;a<d;a++)this.Ge[a].ta();this.Cc&&this.Cc.ta()};a.prototype.Wr=function(a){this.ec||!a||a.ia.qi||(this.ec= !0)};a.prototype.Bn=function(){this.ec=!0};a.prototype.mr=function(a){this.jd=a||0;a=m();this.Cc.get(a);F--;return a.data};a.prototype.nr=function(a){this.jd=a||0;a=m();this.Cc.get(a);F--;return O(a.data)?a.data:""};a.prototype.tr=function(){return this.object};a.prototype.kr=function(){return this.wl};a.prototype.rr=function(a){this.jd=a||0;a=m();this.Cc.get(a);F--;return a.Ia()?this.b.Sf(a.data):this.b.uj(a.data)};a.prototype.sr=function(){return this.Ja};a.prototype.qr=function(){return this.key}; a.prototype.pr=function(){return this.index};a.prototype.or=function(a){a=a||0;var d=this.Xb.type,b=null,b=d.P(),f=b.Pb();if(f.length)b=f[a%f.length].type;else if(b.O.length)b=b.O[a%b.O.length].type;else if(d.c.length)b=d.c[a%d.c.length].type;else return 0;return this.index+b.xh[d.Yc]};a.prototype.lr=function(){return this.ge};a.prototype.jr=function(){return this.Ll};a.prototype.ur=function(){var a,d;a=0;for(d=this.Ge.length;a<d;a++)this.Qg[a]=this.Ge[a].get();return this.Qg};Ob=a;k.prototype.ta= function(){this.R=p(this.R)};k.prototype.hd=function(a){var d=this.b.Sl();this.parent&&!this.fg&&d?(this.ye>=d.length&&(d.length=this.ye+1),d[this.ye]=a):this.data=a};k.prototype.ie=function(){var a=this.b.Sl();return!this.parent||this.fg||!a||this.Mh?this.data:this.ye>=a.length||"undefined"===typeof a[this.ye]?this.Bj:a[this.ye]};k.prototype.xa=function(){!this.parent||this.fg||this.Mh||this.hd(this.Bj)};Ib=k;n.prototype.toString=function(){return"include:"+this.Yf.toString()};n.prototype.ta=function(){this.Yf= this.b.hj[this.Br];this.sheet.fm.add(this);this.R=p(this.R);for(var a=this.parent;a;)a.group&&a.nh.push(this),a=a.parent;this.Vn()};n.prototype.xa=function(){this.parent&&this.b.Ag(this.b.m);this.Yf.zj||this.Yf.xa(!0);this.parent&&this.b.Hc(this.b.m)};n.prototype.Vn=function(){for(var a=this.parent;a;){if(a.group&&!a.Vf){this.Va=!1;return}a=a.parent}this.Va=!0};Rb=n;f.prototype.reset=function(a){this.Ra=a;this.ob=this.wa=0;this.Kn.length=0;this.fj=this.te=!1};f.prototype.om=function(){return this.Ra.vk? !0:this.wa<this.Ra.Fa.length-1?!!this.Ra.R.length:!1};Hb=f})(); (function(){function g(b,c){this.Xb=b;this.b=b.b;this.type=c[0];this.get=[this.Eq,this.Aq,this.Nq,this.Qq,this.tq,this.Oq,this.Iq,this.xq,this.Hq,this.Mq,this.uq,this.Lq,this.yq,this.Jq,this.Fq,this.Gq,this.Bq,this.Cq,this.wq,this.Pq,this.Kq,this.Dq,this.vq,this.zq][this.type];var e=null;this.dd=this.J=this.pa=this.Xa=this.Ai=this.Ua=this.first=this.value=null;this.ic=-1;this.Hd=null;this.ao=-1;this.ge=this.Rg=null;this.pf=!1;switch(this.type){case 0:case 1:case 2:this.value=c[1];break;case 3:this.first= new U(b,c[1]);break;case 18:this.first=new U(b,c[1]);this.Ua=new U(b,c[2]);this.Ai=new U(b,c[3]);break;case 19:this.Xa=this.b.pd(c[1]);this.Xa!==W.prototype.ca.random&&this.Xa!==W.prototype.ca.Tp||this.Xb.Bn();this.pa=[];this.J=[];3===c.length?(e=c[2],this.pa.length=e.length+1):this.pa.length=1;break;case 20:this.dd=this.b.m[c[1]];this.ic=-1;this.Xa=this.b.pd(c[2]);this.pf=c[3];Tb.Function&&this.Xa===Tb.Function.prototype.ca.Rs&&this.Xb.Bn();this.Hd=c[4]?new U(b,c[4]):null;this.pa=[];this.J=[];6=== c.length?(e=c[5],this.pa.length=e.length+1):this.pa.length=1;break;case 21:this.dd=this.b.m[c[1]];this.pf=c[2];this.Hd=c[3]?new U(b,c[3]):null;this.ao=c[4];break;case 22:this.dd=this.b.m[c[1]];this.dd.Ah(c[2]);this.ic=this.dd.pj(c[2]);this.Xa=this.b.pd(c[3]);this.pf=c[4];this.Hd=c[5]?new U(b,c[5]):null;this.pa=[];this.J=[];7===c.length?(e=c[6],this.pa.length=e.length+1):this.pa.length=1;break;case 23:this.Rg=c[1],this.ge=null}this.Xb.Wr(this.dd);4<=this.type&&17>=this.type&&(this.first=new U(b,c[1]), this.Ua=new U(b,c[2]));if(e){var m,a;m=0;for(a=e.length;m<a;m++)this.J.push(new U(b,e[m]))}}function q(){++c;u.length===c&&u.push(new Pb);return u[c]}function p(b,c,e){var m,a;m=0;for(a=b.length;m<a;++m)b[m].get(e),c[m+1]=e.data}function r(b,c){this.type=b||V.Ke;this.data=c||0;this.Ae=null;this.type==V.Ke&&(this.data=Math.floor(this.data))}g.prototype.ta=function(){23===this.type&&(this.ge=this.Xb.b.Ul(this.Rg,this.Xb.Cb.parent));this.first&&this.first.ta();this.Ua&&this.Ua.ta();this.Ai&&this.Ai.ta(); this.Hd&&this.Hd.ta();if(this.J){var b,c;b=0;for(c=this.J.length;b<c;b++)this.J[b].ta()}};var u=[],c=-1;g.prototype.Pq=function(b){var h=this.J,e=this.pa;e[0]=b;b=q();p(h,e,b);--c;this.Xa.apply(this.b.Lc,e)};g.prototype.Kq=function(b){var h=this.dd,e=this.pa,m=this.J,a=this.Hd,k=this.Xa,n=this.Xb.jd,f=h.P(),s=f.Pb();if(!s.length)if(f.O.length)s=f.O;else{this.pf?b.ya(""):b.M(0);return}e[0]=b;b.Ae=h;b=q();p(m,e,b);a&&(a.get(b),b.Ia()&&(n=b.data,s=h.c));--c;h=s.length;if(n>=h||n<=-h)n%=h;0>n&&(n+=h); k.apply(s[n],e)};g.prototype.vq=function(b){var h=this.dd,e=this.pa,m=this.J,a=this.Hd,k=this.ic,n=this.Xa,f=this.Xb.jd,s=h.P(),g=s.Pb();if(!g.length)if(s.O.length)g=s.O;else{this.pf?b.ya(""):b.M(0);return}e[0]=b;b.Ae=h;b=q();p(m,e,b);a&&(a.get(b),b.Ia()&&(f=b.data,g=h.c));--c;m=g.length;if(f>=m||f<=-m)f%=m;0>f&&(f+=m);f=g[f];g=0;h.A&&(g=f.type.Re[h.Yc]);n.apply(f.F[k+g],e)};g.prototype.Dq=function(b){var h=this.Hd,e=this.dd,m=this.ao,a=this.Xb.jd,k=e.P(),n=k.Pb();if(!n.length)if(k.O.length)n=k.O; else{this.pf?b.ya(""):b.M(0);return}if(h){k=q();h.get(k);if(k.Ia()){a=k.data;e=e.c;a%=e.length;0>a&&(a+=e.length);m=e[a].Ha[m];O(m)?b.ya(m):b.u(m);--c;return}--c}h=n.length;if(a>=h||a<=-h)a%=h;0>a&&(a+=h);a=n[a];n=0;e.A&&(n=a.type.xh[e.Yc]);m=a.Ha[m+n];O(m)?b.ya(m):b.u(m)};g.prototype.Eq=function(b){b.type=V.Ke;b.data=this.value};g.prototype.Aq=function(b){b.type=V.Je;b.data=this.value};g.prototype.Nq=function(b){b.type=V.String;b.data=this.value};g.prototype.Qq=function(b){this.first.get(b);b.Ia()&& (b.data=-b.data)};g.prototype.tq=function(b){this.first.get(b);var h=q();this.Ua.get(h);b.Ia()&&h.Ia()&&(b.data+=h.data,h.We()&&b.gf());--c};g.prototype.Oq=function(b){this.first.get(b);var h=q();this.Ua.get(h);b.Ia()&&h.Ia()&&(b.data-=h.data,h.We()&&b.gf());--c};g.prototype.Iq=function(b){this.first.get(b);var h=q();this.Ua.get(h);b.Ia()&&h.Ia()&&(b.data*=h.data,h.We()&&b.gf());--c};g.prototype.xq=function(b){this.first.get(b);var h=q();this.Ua.get(h);b.Ia()&&h.Ia()&&(b.data/=h.data,b.gf());--c}; g.prototype.Hq=function(b){this.first.get(b);var h=q();this.Ua.get(h);b.Ia()&&h.Ia()&&(b.data%=h.data,h.We()&&b.gf());--c};g.prototype.Mq=function(b){this.first.get(b);var h=q();this.Ua.get(h);b.Ia()&&h.Ia()&&(b.data=Math.pow(b.data,h.data),h.We()&&b.gf());--c};g.prototype.uq=function(b){this.first.get(b);var h=q();this.Ua.get(h);b.Ia()?h.Oh()?b.ya(b.data.toString()+h.data):b.data&&h.data?b.M(1):b.M(0):b.Oh()&&(b.data=h.Oh()?b.data+h.data:b.data+(Math.round(1E10*h.data)/1E10).toString());--c};g.prototype.Lq= function(b){this.first.get(b);var h=q();this.Ua.get(h);b.Ia()&&h.Ia()&&(b.data||h.data?b.M(1):b.M(0));--c};g.prototype.wq=function(b){this.first.get(b);b.data?this.Ua.get(b):this.Ai.get(b)};g.prototype.yq=function(b){this.first.get(b);var h=q();this.Ua.get(h);b.M(b.data===h.data?1:0);--c};g.prototype.Jq=function(b){this.first.get(b);var h=q();this.Ua.get(h);b.M(b.data!==h.data?1:0);--c};g.prototype.Fq=function(b){this.first.get(b);var h=q();this.Ua.get(h);b.M(b.data<h.data?1:0);--c};g.prototype.Gq= function(b){this.first.get(b);var h=q();this.Ua.get(h);b.M(b.data<=h.data?1:0);--c};g.prototype.Bq=function(b){this.first.get(b);var h=q();this.Ua.get(h);b.M(b.data>h.data?1:0);--c};g.prototype.Cq=function(b){this.first.get(b);var h=q();this.Ua.get(h);b.M(b.data>=h.data?1:0);--c};g.prototype.zq=function(b){var c=this.ge.ie();M(c)?b.u(c):b.ya(c)};U=g;r.prototype.We=function(){return this.type===V.Je};r.prototype.Ia=function(){return this.type===V.Ke||this.type===V.Je};r.prototype.Oh=function(){return this.type=== V.String};r.prototype.gf=function(){this.We()||(this.Oh()&&(this.data=parseFloat(this.data)),this.type=V.Je)};r.prototype.M=function(b){this.type=V.Ke;this.data=Math.floor(b)};r.prototype.u=function(b){this.type=V.Je;this.data=b};r.prototype.ya=function(b){this.type=V.String;this.data=b};r.prototype.Cn=function(b){M(b)?(this.type=V.Je,this.data=b):O(b)?(this.type=V.String,this.data=b.toString()):(this.type=V.Ke,this.data=0)};Pb=r;V={Ke:0,Je:1,String:2}})();function W(g){this.b=g;this.nb=[]} W.prototype.mb=function(){var g={},q,p,r,u,c,b,h,e;g.waits=[];var m=g.waits,a;q=0;for(p=this.nb.length;q<p;q++){b=this.nb[q];a={t:b.time,st:b.In,s:b.uk,ev:b.Qe.N,sm:[],sols:{}};b.Qe.fc[b.ob]&&(a.act=b.Qe.fc[b.ob].N);r=0;for(u=b.R.length;r<u;r++)a.sm.push(b.R[r].N);for(c in b.ib)if(b.ib.hasOwnProperty(c)){h=this.b.m[parseInt(c,10)];e={sa:b.ib[c].oi,insts:[]};r=0;for(u=b.ib[c].ad.length;r<u;r++)e.insts.push(b.ib[c].ad[r].uid);a.sols[h.N.toString()]=e}m.push(a)}return g}; W.prototype.Gb=function(g){g=g.waits;var q,p,r,u,c,b,h,e,m,a,k;q=this.nb.length=0;for(p=g.length;q<p;q++)if(b=g[q],e=this.b.nl[b.ev.toString()]){m=-1;r=0;for(u=e.fc.length;r<u;r++)if(e.fc[r].N===b.act){m=r;break}if(-1!==m){h={ib:{},R:[],dj:!1};h.time=b.t;h.In=b.st||"";h.uk=!!b.s;h.Qe=e;h.ob=m;r=0;for(u=b.sm.length;r<u;r++)(e=this.b.Eh(b.sm[r]))&&h.R.push(e);for(c in b.sols)if(b.sols.hasOwnProperty(c)&&(e=this.b.Eh(parseInt(c,10)))){m=b.sols[c];a={oi:m.sa,ad:[]};r=0;for(u=m.insts.length;r<u;r++)(k= this.b.Yl(m.insts[r]))&&a.ad.push(k);h.ib[e.index.toString()]=a}this.nb.push(h)}}}; (function(){function g(){}function q(){}function p(){}var r=W.prototype;g.prototype.uo=function(){return!0};g.prototype.Uk=function(){return!0};g.prototype.Tk=function(){return!0};g.prototype.vo=function(b,c,a){var h=this.b.Sa(),n=h.Ra,h=h.om();b=this.b.rn(b);if(a<c)if(h)for(;c>=a&&!b.Fe;--c)this.b.Ce(n.R),b.index=c,n.De(),this.b.Hc(n.R);else for(;c>=a&&!b.Fe;--c)b.index=c,n.De();else if(h)for(;c<=a&&!b.Fe;++c)this.b.Ce(n.R),b.index=c,n.De(),this.b.Hc(n.R);else for(;c<=a&&!b.Fe;++c)b.index=c,n.De(); this.b.ln();return!1};var u=[],c=-1;g.prototype.wo=function(b){var m=b.P();c++;u.length===c&&u.push([]);var a=u[c];R(a,m.Pb());var h=this.b.Sa(),n=h.Ra,f=h.om(),h=this.b.rn(),s,g,p,q,d,l,r=b.ub;if(f)for(f=0,s=a.length;f<s&&!h.Fe;f++){this.b.Ce(n.R);q=a[f];m=b.P();m.X=!1;m.c.length=1;m.c[0]=q;if(r)for(g=0,p=q.siblings.length;g<p;g++)d=q.siblings[g],l=d.type.P(),l.X=!1,l.c.length=1,l.c[0]=d;h.index=f;n.De();this.b.Hc(n.R)}else for(m.X=!1,m.c.length=1,f=0,s=a.length;f<s&&!h.Fe;f++){q=a[f];m.c[0]=q;if(r)for(g= 0,p=q.siblings.length;g<p;g++)d=q.siblings[g],l=d.type.P(),l.X=!1,l.c.length=1,l.c[0]=d;h.index=f;n.De()}a.length=0;this.b.ln();c--;return!1};g.prototype.Dp=function(){var b=this.b.Bh().V;"undefined"===typeof b.TriggerOnce_lastTick&&(b.TriggerOnce_lastTick=-1);var c=b.TriggerOnce_lastTick,a=this.b.vf;b.TriggerOnce_lastTick=a;return this.b.Nj||c!==a-1};g.prototype.to=function(b){var c=this.b.Bh(),a=c.V.Every_lastTime||0,h=this.b.Kd.la;"undefined"===typeof c.V.Every_seconds&&(c.V.Every_seconds=b);var n= c.V.Every_seconds;if(h>=a+n)return c.V.Every_lastTime=a+n,h>=c.V.Every_lastTime+.04&&(c.V.Every_lastTime=h),c.V.Every_seconds=b,!0;h<a-.1&&(c.V.Every_lastTime=h);return!1};g.prototype.oo=function(b,c,a){return Sb(b.ie(),c,a)};g.prototype.ko=function(b,c,a){return b>=c&&b<=a};g.prototype.so=function(){var b=this.b.Sa();return b.fj?!1:!b.te};g.prototype.Vk=function(){return!0};g.prototype.No=function(){return!0};g.prototype.Li=function(){return!0};g.prototype.Xo=function(){return!0};g.prototype.Ki= function(){return!0};g.prototype.fo=function(b,c,a){return La(S(b),S(a))<=S(c)};g.prototype.Co=function(b,c){return Na(S(b),S(c))};g.prototype.Ao=function(b,c,a){b=Ja(b);c=Ja(c);a=Ja(a);return Na(a,c)?Na(b,c)&&!Na(b,a):!(!Na(b,c)&&Na(b,a))};r.e=new g;q.prototype.xo=function(b){this.b.qe||this.b.Rc||(this.b.Rc=b)};q.prototype.po=function(b,c,a,h){if(c&&b&&(c=this.b.yl(b,c,a,h))){this.b.oc++;var n;this.b.trigger(Object.getPrototypeOf(b.ia).e.Wg,c);if(c.ub)for(a=0,h=c.siblings.length;a<h;a++)n=c.siblings[a], this.b.trigger(Object.getPrototypeOf(n.type.ia).e.Wg,n);this.b.oc--;b=b.P();b.X=!1;b.c.length=1;b.c[0]=c;if(c.ub)for(a=0,h=c.siblings.length;a<h;a++)n=c.siblings[a],b=n.type.P(),b.X=!1,b.c.length=1,b.c[0]=n}};q.prototype.wp=function(b,c){0===b.Sg?M(c)?b.hd(c):b.hd(parseFloat(c)):1===b.Sg&&b.hd(c.toString())};q.prototype.eo=function(b,c){0===b.Sg?M(c)?b.hd(b.ie()+c):b.hd(b.ie()+parseFloat(c)):1===b.Sg&&b.hd(b.ie()+c.toString())};q.prototype.Bp=function(b,c){0===b.Sg&&(M(c)?b.hd(b.ie()-c):b.hd(b.ie()- parseFloat(c)))};var b=[],h=[];q.prototype.Ep=function(e){if(!(0>e)){var c,a,k,n=this.b.Sa(),f;f=b.length?b.pop():{ib:{},R:[]};f.dj=!1;f.time=this.b.Kd.la+e;f.In="";f.uk=!1;f.Qe=n.Ra;f.ob=n.ob+1;e=0;for(c=this.b.m.length;e<c;e++)k=this.b.m[e],a=k.P(),a.X&&-1===n.Ra.R.indexOf(k)||(f.R.push(k),k=void 0,k=h.length?h.pop():{ad:[]},k.oi=!1,k.oi=a.X,R(k.ad,a.c),f.ib[e.toString()]=k);this.nb.push(f);return!0}};q.prototype.yo=function(b){if(!this.b.qe&&!this.b.Rc)for(var c in this.b.$e)if(this.b.$e.hasOwnProperty(c)&& db(c,b)){this.b.Rc=this.b.$e[c];break}};q.prototype.hp=function(){if(!this.b.qe&&!this.b.Rc&&this.b.ba){this.b.Rc=this.b.ba;var b,c,a;b=0;for(c=this.b.sd.length;b<c;b++)a=this.b.sd[b],a.An(a.Hh)}};r.C=new q;p.prototype["int"]=function(b,c){O(c)?(b.M(parseInt(c,10)),isNaN(b.data)&&(b.data=0)):b.M(c)};p.prototype["float"]=function(b,c){O(c)?(b.u(parseFloat(c)),isNaN(b.data)&&(b.data=0)):b.u(c)};p.prototype.random=function(b,c,a){void 0===a?b.u(Math.random()*c):b.u(Math.random()*(a-c)+c)};p.prototype.sqrt= function(b,c){b.u(Math.sqrt(c))};p.prototype.abs=function(b,c){b.u(Math.abs(c))};p.prototype.round=function(b,c){b.M(Math.round(c))};p.prototype.floor=function(b,c){b.M(Math.floor(c))};p.prototype.ceil=function(b,c){b.M(Math.ceil(c))};p.prototype.sin=function(b,c){b.u(Math.sin(S(c)))};p.prototype.cos=function(b,c){b.u(Math.cos(S(c)))};p.prototype.tan=function(b,c){b.u(Math.tan(S(c)))};p.prototype.asin=function(b,c){b.u(Fa(Math.asin(c)))};p.prototype.acos=function(b,c){b.u(Fa(Math.acos(c)))};p.prototype.atan= function(b,c){b.u(Fa(Math.atan(c)))};p.prototype.exp=function(b,c){b.u(Math.exp(c))};p.prototype.log10=function(b,c){b.u(Math.log(c)/Math.LN10)};p.prototype.max=function(b){var c=arguments[1];"number"!==typeof c&&(c=0);var a,h,n;a=2;for(h=arguments.length;a<h;a++)n=arguments[a],"number"===typeof n&&c<n&&(c=n);b.u(c)};p.prototype.min=function(b){var c=arguments[1];"number"!==typeof c&&(c=0);var a,h,n;a=2;for(h=arguments.length;a<h;a++)n=arguments[a],"number"===typeof n&&c>n&&(c=n);b.u(c)};p.prototype.de= function(b){b.u(this.b.de)};p.prototype.Og=function(b){b.u(this.b.Og)};p.prototype.time=function(b){b.u(this.b.Kd.la)};p.prototype.vf=function(b){b.M(this.b.vf)};p.prototype.ai=function(b){b.M(this.b.ai)};p.prototype.mj=function(b){b.M(this.b.mj)};p.prototype.Tr=function(b,c){var a,h,n;if(this.b.ff.length)if(c){h=0;for(n=this.b.ff.length;h<n;h++)if(a=this.b.ff[h],a.name===c){b.M(a.index);return}b.M(0)}else a=this.b.Tl(),b.M(a?a.index:-1);else b.M(0)};p.prototype.j=function(b,c,a,h,n){b.u(Fa(Ka(c, a,h,n)))};p.prototype.Qr=function(b,c,a,h){b.u(Qa(c,a,h))};p.prototype.find=function(b,c,a){O(c)&&O(a)?b.M(c.search(new RegExp(Xa(a),"i"))):b.M(-1)};p.prototype.left=function(b,c,a){b.ya(O(c)?c.substr(0,a):"")};p.prototype.right=function(b,c,a){b.ya(O(c)?c.substr(c.length-a):"")};p.prototype.replace=function(b,c,a,h){O(c)&&O(a)&&O(h)?b.ya(c.replace(new RegExp(Xa(a),"gi"),h)):b.ya(O(c)?c:"")};p.prototype.trim=function(b,c){b.ya(O(c)?c.trim():"")};p.prototype.Tp=function(b){var c=P(Math.random()*(arguments.length- 1));b.Cn(arguments[c+1])};p.prototype.Zi=function(b){b.u(this.b.Zi/1E3)};p.prototype.df=function(b){b.u(this.b.df)};r.ca=new p;r.rs=function(){var c,m,a,k,n,f,s=this.b.Sa();c=0;for(a=this.nb.length;c<a;c++){k=this.nb[c];if(-1===k.time){if(!k.uk)continue}else if(k.time>this.b.Kd.la)continue;s.Ra=k.Qe;s.ob=k.ob;s.wa=0;for(m in k.ib)k.ib.hasOwnProperty(m)&&(n=this.b.m[parseInt(m,10)].P(),f=k.ib[m],n.X=f.oi,R(n.c,f.ad),n=f,n.ad.length=0,h.push(n));k.Qe.qs();this.b.Yi(k.R);k.dj=!0}m=c=0;for(a=this.nb.length;c< a;c++)k=this.nb[c],this.nb[m]=k,k.dj?(Sa(k.ib),k.R.length=0,b.push(k)):m++;this.nb.length=m}})(); (function(){gb=function(g,p){var r=g[1],u=g[3],c=g[4],b=g[5],h=g[6],e=g[7],m=g[8];p.e||(p.e={});p.C||(p.C={});p.ca||(p.ca={});var a=p.e,k=p.C,n=p.ca;u&&(a.Qk=function(a,b){return Sb(this.x,a,b)},a.Us=function(a,b){return Sb(this.y,a,b)},a.Ys=function(){var a=this.g;this.ga();var b=this.ua;return!(b.right<a.qa||b.bottom<a.ra||b.left>a.Aa||b.top>a.za)},a.Eo=function(){this.ga();var a=this.ua,b=this.b.ba;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.jt=function(a,b,c){var e=this.P(), h=e.Pb();if(!h.length)return!1;var d=h[0],l=d,n=Oa(d.x,d.y,b,c),m,k,g;m=1;for(k=h.length;m<k;m++)if(d=h[m],g=Oa(d.x,d.y,b,c),0===a&&g<n||1===a&&g>n)n=g,l=d;e.yg(l);return!0},k.bl=function(a){this.x!==a&&(this.x=a,this.ka())},k.Dt=function(a){this.y!==a&&(this.y=a,this.ka())},k.tp=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.ka()},k.At=function(a,b){var c=a.fr(this);if(c){var e;c.tj?(e=c.tj(b,!0),c=c.tj(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.ka()}}, k.dt=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.ka())},k.ct=function(a,b){0!==b&&(this.x+=Math.cos(S(a))*b,this.y+=Math.sin(S(a))*b,this.ka())},n.dl=function(a){a.u(this.x)},n.el=function(a){a.u(this.y)},n.de=function(a){a.u(this.b.Ch(this))});c&&(a.Ts=function(a,b){return Sb(this.width,a,b)},a.Ss=function(a,b){return Sb(this.height,a,b)},k.yp=function(a){this.width!==a&&(this.width=a,this.ka())},k.zt=function(a){this.height!==a&&(this.height=a,this.ka())},k.up= function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.ka()},n.cl=function(a){a.u(this.width)},n.Rk=function(a){a.u(this.height)},n.Os=function(a){this.ga();a.u(this.ua.left)},n.Qs=function(a){this.ga();a.u(this.ua.top)},n.Ps=function(a){this.ga();a.u(this.ua.right)},n.Ns=function(a){this.ga();a.u(this.ua.bottom)});b&&(a.fo=function(a,b){return La(this.j,S(b))<=S(a)},a.Co=function(a){return Na(this.j,S(a))},a.Ao=function(a,b){var c=Ja(a),e=Ja(b),h=Ha(this.j);return Na(e, c)?Na(h,c)&&!Na(h,e):!(!Na(h,c)&&Na(h,e))},k.tt=function(a){a=S(Ga(a));isNaN(a)||this.j===a||(this.j=a,this.ka())},k.nt=function(a){0===a||isNaN(a)||(this.j+=S(a),this.j=Ha(this.j),this.ka())},k.ot=function(a){0===a||isNaN(a)||(this.j-=S(a),this.j=Ha(this.j),this.ka())},k.pt=function(a,b){var c=Ma(this.j,S(b),S(a));isNaN(c)||this.j===c||(this.j=c,this.ka())},k.qt=function(a,b,c){a=Ma(this.j,Math.atan2(c-this.y,b-this.x),S(a));isNaN(a)||this.j===a||(this.j=a,this.ka())},k.Bt=function(a,b){var c=Math.atan2(b- this.y,a-this.x);isNaN(c)||this.j===c||(this.j=c,this.ka())},n.Ms=function(a){a.u(Ia(this.j))});r||(a.Pk=function(a,b,c){return Sb(this.Ha[a],b,c)},a.Bo=function(a){return this.Ha[a]},a.kt=function(a,b){var c=this.P(),e=c.Pb();if(!e.length)return!1;var h=e[0],d=h,l=h.Ha[b],n,m,k;n=1;for(m=e.length;n<m;n++)if(h=e[n],k=h.Ha[b],0===a&&k<l||1===a&&k>l)l=k,d=h;c.yg(d);return!0},a.it=function(a){var b,c,e,h,d;if(this.b.Bh().Ih){d=this.P();if(d.X)for(d.X=!1,d.c.length=0,d.O.length=0,e=this.c,b=0,c=e.length;b< c;b++)h=e[b],h.uid===a?d.O.push(h):d.c.push(h);else{e=b=0;for(c=d.c.length;b<c;b++)h=d.c[b],d.c[e]=h,h.uid===a?d.O.push(h):e++;d.c.length=e}this.td();return!!d.c.length}h=this.b.Yl(a);if(!h)return!1;d=this.P();if(!d.X&&-1===d.c.indexOf(h))return!1;if(this.A)for(a=h.type.ja,b=0,c=a.length;b<c;b++){if(a[b]===this)return d.yg(h),this.td(),!0}else if(h.type===this)return d.yg(h),this.td(),!0;return!1},a.Wg=function(){return!0},a.Oo=function(){return!0},k.op=function(a,b){var c=this.Ha;M(c[a])?c[a]=M(b)? b:parseFloat(b):O(c[a])&&(c[a]=O(b)?b:b.toString())},k.Ls=function(a,b){var c=this.Ha;M(c[a])?c[a]=M(b)?c[a]+b:c[a]+parseFloat(b):O(c[a])&&(c[a]=O(b)?c[a]+b:c[a]+b.toString())},k.Et=function(a,b){var c=this.Ha;M(c[a])&&(c[a]=M(b)?c[a]-b:c[a]-parseFloat(b))},k.ut=function(a,b){this.Ha[a]=b?1:0},k.Ft=function(a){this.Ha[a]=1-this.Ha[a]},k.qo=function(){this.b.Wd(this)},k.Ho||(k.Ho=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.Uh(this,b,!0);this.rd&&this.rd();if(this.F)for(a=0,b=this.F.length;a< b;++a)c=this.F[a],c.rd&&c.rd()}),n.Vs=function(a){var b=a.Ae.c.length,c,e,h;c=0;for(e=this.b.jc.length;c<e;c++)h=this.b.jc[c],a.Ae.A?0<=h.type.ja.indexOf(a.Ae)&&b++:h.type===a.Ae&&b++;a.M(b)},n.mt=function(a){a.M(a.Ae.P().Pb().length)},n.Gt=function(a){a.M(this.uid)},n.Ws=function(a){a.M(this.Uf())},n.Vg||(n.Vg=function(a){a.ya(JSON.stringify(this.b.rk(this,!0)))}));h&&(a.Zs=function(){return this.visible},k.Ct=function(a){!a!==!this.visible&&(this.visible=a,this.b.W=!0)},a.no=function(a,b){return Sb(cb(100* this.opacity),a,b)},k.rp=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.W=!0)},n.Opacity=function(a){a.u(cb(100*this.opacity))});e&&(a.Xs=function(a){return a?this.g===a:!1},a.lt=function(a){var b=this.P(),c=b.Pb();if(!c.length)return!1;var e=c[0],h=e,d,l;d=1;for(l=c.length;d<l;d++)if(e=c[d],0===a){if(e.g.index>h.g.index||e.g.index===h.g.index&&e.Qb()>h.Qb())h=e}else if(e.g.index<h.g.index||e.g.index===h.g.index&&e.Qb()<h.Qb())h=e;b.yg(h);return!0},k.Ko=function(){var a= this.g,b=a.c;b.length&&b[b.length-1]===this||(a.of(this,!1),a.Df(this,!1),this.b.W=!0)},k.et=function(){var a=this.g,b=a.c;b.length&&b[0]===this||(a.of(this,!1),a.ks(this),this.b.W=!0)},k.ft=function(a){a&&a!=this.g&&(this.g.of(this,!0),this.g=a,a.Df(this,!0),this.b.W=!0)},k.It=function(a,b){var c=0===a;if(b){var e=b.$q(this);e&&e.uid!==this.uid&&(this.g.index!==e.g.index&&(this.g.of(this,!0),this.g=e.g,e.g.Df(this,!0)),this.g.Xr(this,e,c),this.b.W=!0)}},n.bt=function(a){a.M(this.g.Zm)},n.$s=function(a){a.ya(this.g.name)}, n.Ht=function(a){a.M(this.Qb())});m&&(k.xt=function(a,b){if(this.b.n){var c=this.type.sj(b);if(!(0>c)){var e=1===a;this.qd[c]!==e&&(this.qd[c]=e,this.md(),this.b.W=!0)}}},k.yt=function(a,b,c){if(this.b.n){var e=this.type.sj(a);0>e||(a=this.type.G[e],e=this.oa[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.n.ir(a.Za,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Va&&(this.b.W=!0))))}})};zb=function(){this.Vi=this.Si=!0;this.type.Xg=!0;this.b.W=!0;var g,p,r=this.Ti;g=0;for(p=r.length;g<p;++g)r[g](this);this.g.vc&& this.ga()};Ab=function(g){g&&this.Ti.push(g)};Cb=function(){if(this.Si){var g=this.ua,p=this.qb;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.eb*this.width,-this.fb*this.height);this.j?(g.offset(-this.x,-this.y),p.En(g,this.j),p.offset(this.x,this.y),p.ol(g)):p.Eg(g);g.normalize();this.Si=!1;this.Gs()}};var g=new Q(0,0,0,0);Db=function(){if(this.g.vc){var q=this.g.yb,p=this.ua;g.set(q.Ab(p.left),q.Bb(p.top),q.Ab(p.right),q.Bb(p.bottom));this.lb.uh(g)||(this.lb.right<this.lb.left? q.update(this,null,g):q.update(this,this.lb,g),this.lb.Jf(g),this.g.gd=!0)}};Eb=function(){if(this.Vi&&this.$d){this.ga();var q=this.type.mh,p=this.ua;g.set(q.Ab(p.left),q.Bb(p.top),q.Ab(p.right),q.Bb(p.bottom));this.Ad.uh(g)||(this.Ad.right<this.Ad.left?q.update(this,null,g):q.update(this,this.Ad,g),this.Ad.Jf(g),this.Vi=!1)}};Bb=function(g,p){return this.ua.ab(g,p)&&this.qb.ab(g,p)?this.Y&&!this.Y.Ve()?(this.Y.Ne(this.width,this.height,this.j),this.Y.ab(g-this.x,p-this.y)):!0:!1};vb=function(){this.type.Gi(); return this.ke};Fb=function(){this.g.Kk();return this.xc};Gb=function(){this.U.length=0;var g,p;g=0;for(p=this.qd.length;g<p;g++)this.qd[g]&&this.U.push(this.type.G[g]);this.Zn=!!this.U.length};wb=function(){return"Inst"+this.qn};jb=function(g){if(g&&g.ub&&g.type!=this){var p,r,u;p=0;for(r=g.siblings.length;p<r;p++)if(u=g.siblings[p],u.type==this)return u}g=this.P().Pb();return g.length?g[0]:null};kb=function(g){var p=this.P().Pb();return p.length?p[g.Uf()%p.length]:null};ib=function(){if(this.tf&& !this.A){var g,p;g=0;for(p=this.c.length;g<p;g++)this.c[g].ke=g;var r=g,u=this.b.jc;g=0;for(p=u.length;g<p;++g)u[g].type===this&&(u[g].ke=r++);this.tf=!1}};tb=function(g){if(g<this.c.length)return this.c[g];g-=this.c.length;var p=this.b.jc,r,u;r=0;for(u=p.length;r<u;++r)if(p[r].type===this){if(0===g)return p[r];--g}return null};lb=function(){return this.Td[this.Vc]};mb=function(){this.Vc++;this.Vc===this.Td.length?this.Td.push(new hb(this)):this.Td[this.Vc].X=!0};nb=function(){this.Vc++;this.Vc=== this.Td.length&&this.Td.push(new hb(this));var g=this.Td[this.Vc],p=this.Td[this.Vc-1];p.X?g.X=!0:(g.X=!1,R(g.c,p.c),R(g.O,p.O))};ob=function(){this.Vc--};pb=function(g){var p,r,u,c,b,h=0;if(!this.A)for(p=0,r=this.ja.length;p<r;p++)for(b=this.ja[p],u=0,c=b.va.length;u<c;u++){if(g===b.va[u].name)return this.V.lastBehIndex=h,b.va[u];h++}p=0;for(r=this.va.length;p<r;p++){if(g===this.va[p].name)return this.V.lastBehIndex=h,this.va[p];h++}return null};qb=function(g){return this.Ah(g)?this.V.lastBehIndex: -1};rb=function(g){var p,r;p=0;for(r=this.G.length;p<r;p++)if(this.G[p].name===g)return p;return-1};sb=function(){if(this.ub&&!this.A){var g,p,r,u,c,b,h;this.Gi();b=this.P();var e=b.X,m=(g=this.b.Sa())&&g.Ra&&g.Ra.Wb;g=0;for(p=this.rb.length;g<p;g++)if(c=this.rb[g],c!==this&&(c.Gi(),h=c.P(),h.X=e,!e)){h.c.length=b.c.length;r=0;for(u=b.c.length;r<u;r++)h.c[r]=c.Vl(b.c[r].ke);if(m)for(h.O.length=b.O.length,r=0,u=b.O.length;r<u;r++)h.O[r]=c.Vl(b.O[r].ke)}}};ub=function(){return"Type"+this.N};Sb=function(g, p,r){if("undefined"===typeof g||"undefined"===typeof r)return!1;switch(p){case 0:return g===r;case 1:return g!==r;case 2:return g<r;case 3:return g<=r;case 4:return g>r;case 5:return g>=r;default:return!1}}})();var ac={};function cc(g){this.b=g} (function(){function g(){return h.length?h.pop():[]}function q(b){var c,a;c=0;for(a=b.length;c<a;c++)Array.isArray(b[c])&&q(b[c]);b.length=0;h.push(b)}function p(){}function r(){}function u(){}var c=cc.prototype;c.ma=function(b){this.ia=b;this.b=b.b};c.ma.prototype.T=function(){};c.da=function(b){this.type=b;this.b=b.b};var b=c.da.prototype,h=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});b.T=function(){this.Db=this.D[0];this.Lb=this.D[1]; this.kc=this.D[2];this.Hb||(this.Ac=g());var b=this.Ac;b.length=this.Db;var c,a,h;for(c=0;c<this.Db;c++)for(b[c]||(b[c]=g()),b[c].length=this.Lb,a=0;a<this.Lb;a++)for(b[c][a]||(b[c][a]=g()),b[c][a].length=this.kc,h=0;h<this.kc;h++)b[c][a][h]=0;this.Nl=[];this.Ol=[];this.Pl=[];this.Zc=-1};b.mf=function(){var b;for(b=0;b<this.Db;b++)q(this.Ac[b]);this.Ac.length=0};b.hc=function(b,c,a){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);return isNaN(b)||0>b||b>this.Db-1||isNaN(c)||0>c||c>this.Lb-1||isNaN(a)|| 0>a||a>this.kc-1?0:this.Ac[b][c][a]};b.set=function(b,c,a,h){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);isNaN(b)||0>b||b>this.Db-1||isNaN(c)||0>c||c>this.Lb-1||isNaN(a)||0>a||a>this.kc-1||(this.Ac[b][c][a]=h)};b.Xq=function(){return JSON.stringify({c2array:!0,size:[this.Db,this.Lb,this.kc],data:this.Ac})};b.mb=function(){return{size:[this.Db,this.Lb,this.kc],data:this.Ac}};b.Gb=function(b){var c=b.size;this.Db=c[0];this.Lb=c[1];this.kc=c[2];this.Ac=b.data};b.Rd=function(b,c,a){0>b&&(b=0);0>c&& (c=0);0>a&&(a=0);if(this.Db!==b||this.Lb!==c||this.kc!==a){this.Db=b;this.Lb=c;this.kc=a;var h,n,f=this.Ac;f.length=b;for(b=0;b<this.Db;b++)for(ja(f[b])&&(f[b]=g()),f[b].length=c,h=0;h<this.Lb;h++)for(ja(f[b][h])&&(f[b][h]=g()),f[b][h].length=a,n=0;n<this.kc;n++)ja(f[b][h][n])&&(f[b][h][n]=0)}};b.Rt=function(){return 0<=this.Zc&&this.Zc<this.Nl.length?this.Nl[this.Zc]:0};b.St=function(){return 0<=this.Zc&&this.Zc<this.Ol.length?this.Ol[this.Zc]:0};b.Tt=function(){return 0<=this.Zc&&this.Zc<this.Pl.length? this.Pl[this.Zc]:0};p.prototype.Qk=function(b,c,a){return Sb(this.hc(b,0,0),c,a)};b.Lt=function(b){this.b.Ce(b.R);b.De();this.b.Hc(b.R)};c.e=new p;r.prototype.up=function(b,c,a){this.Rd(b,c,a)};r.prototype.bl=function(b,c){this.set(b,0,0,c)};r.prototype.Sk=function(b){var c;try{c=JSON.parse(b)}catch(a){return}c.c2array&&(b=c.size,this.Db=b[0],this.Lb=b[1],this.kc=b[2],this.Ac=c.data)};c.C=new r;u.prototype.ho=function(b,c,a,h){b.Cn(this.hc(c,a||0,h||0))};u.prototype.cl=function(b){b.M(this.Db)};u.prototype.Rk= function(b){b.M(this.Lb)};u.prototype.Vg=function(b){b.ya(this.Xq())};c.ca=new u})();function Y(g){this.b=g} (function(){function g(){}function q(){}function p(){}var r=Y.prototype;r.ma=function(g){this.ia=g;this.b=g.b};r.ma.prototype.T=function(){};r.da=function(g){this.type=g;this.b=g.b};r.da.prototype.T=function(){var g=this;window.addEventListener("resize",function(){g.b.trigger(Y.prototype.e.cp,g)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){g.b.trigger(Y.prototype.e.Zo,g)}),window.addEventListener("offline",function(){g.b.trigger(Y.prototype.e.Yo,g)}));"undefined"!== typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){g.b.df=1;g.b.trigger(Y.prototype.e.al,g)}),window.applicationCache.addEventListener("progress",function(c){g.b.df=c.loaded/c.total}));this.b.nc||(document.addEventListener("appMobi.device.update.available",function(){g.b.trigger(Y.prototype.e.al,g)}),document.addEventListener("backbutton",function(){g.b.trigger(Y.prototype.e.Ji,g)}),document.addEventListener("menubutton",function(){g.b.trigger(Y.prototype.e.Wk, g)}),document.addEventListener("searchbutton",function(){g.b.trigger(Y.prototype.e.dp,g)}),document.addEventListener("tizenhwkey",function(c){var b;switch(c.keyName){case "back":b=g.b.trigger(Y.prototype.e.Ji,g);!b&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(b=g.b.trigger(Y.prototype.e.Wk,g))||c.preventDefault()}}));this.b.Lh&&(WinJS.Application.onbackclick=function(){return!!g.b.trigger(Y.prototype.e.Ji,g)});this.b.Lp(function(c){c?g.b.trigger(Y.prototype.e.$o, g):g.b.trigger(Y.prototype.e.bp,g)});this.Mr="undefined"!==typeof window.is_scirra_arcade};g.prototype.Zo=function(){return!0};g.prototype.Yo=function(){return!0};g.prototype.al=function(){return!0};g.prototype.bp=function(){return!0};g.prototype.$o=function(){return!0};g.prototype.cp=function(){return!0};g.prototype.Ji=function(){return!0};g.prototype.Wk=function(){return!0};g.prototype.dp=function(){return!0};r.e=new g;q.prototype.zo=function(g,c){this.b.tb?CocoonJS.App.openURL(g):this.b.Sb?ejecta.openURL(g): this.b.Hj?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(g)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(g,{openExternal:!0}):this.b.Rb?window.open(g,"_system"):this.Mr||this.b.ha||window.open(g,c)};r.C=new q;p.prototype.URL=function(g){g.ya(this.b.ha?"":window.location.toString())};r.ca=new p})();function X(g){this.b=g} (function(){function g(){if(0===this.bj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.sf?b.drawImage(this.B,this.kf,this.lf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.B,0,0,this.width,this.height);this.bj=a.toDataURL("image/png")}return this.bj}function q(){}function p(){}var r=X.prototype;r.ma=function(a){this.ia=a;this.b=a.b};var u=r.ma.prototype;u.T=function(){if(!this.A){var a,b,c,e,h,k,d,l,m;this.gc= [];this.Xf=!1;a=0;for(b=this.pb.length;a<b;a++){h=this.pb[a];d={};d.name=h[0];d.speed=h[1];d.loop=h[2];d.nk=h[3];d.mi=h[4];d.jn=h[5];d.N=h[6];d.frames=[];c=0;for(e=h[7].length;c<e;c++)k=h[7][c],l={},l.yi=k[0],l.Ak=k[1],l.kf=k[2],l.lf=k[3],l.width=k[4],l.height=k[5],l.duration=k[6],l.eb=k[7],l.fb=k[8],l.Aj=k[9],l.fi=k[10],l.kn=k[11],l.sf=0!==l.width,l.bj="",l.Qt=g,m={left:0,top:0,right:1,bottom:1},l.tk=m,l.H=null,(m=this.b.Tq(k[0]))?l.B=m:(l.B=new Image,l.B.Vp=k[0],l.B.xl=k[1],l.B.Sp=null,this.b.Nk(l.B, k[0])),d.frames.push(l),this.gc.push(l);this.pb[a]=d}}};u.Xn=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.qh=c.Jb.H};u.bi=function(){if(!this.A){var a,b,c;a=0;for(b=this.gc.length;a<b;++a)c=this.gc[a],c.B.Sp=null,c.H=null;this.Xf=!1;this.Xn()}};u.ci=function(){if(!this.A&&this.c.length){var a,b,c;a=0;for(b=this.gc.length;a<b;++a)c=this.gc[a],c.H=this.b.n.bf(c.B,!1,this.b.S,c.kn);this.Xn()}};u.Oj=function(){if(!this.A&&!this.Xf&&this.b.n){var a,b,c;a=0;for(b=this.gc.length;a< b;++a)c=this.gc[a],c.H=this.b.n.bf(c.B,!1,this.b.S,c.kn);this.Xf=!0}};u.Fi=function(){if(!this.A&&!this.c.length&&this.Xf){var a,b,c;a=0;for(b=this.gc.length;a<b;++a)c=this.gc[a],this.b.n.deleteTexture(c.H),c.H=null;this.Xf=!1}};var c=[];u.hi=function(a){var b,e,h;b=c.length=0;for(e=this.gc.length;b<e;++b)h=this.gc[b].B,-1===c.indexOf(h)&&(a.drawImage(h,0,0),c.push(h))};r.da=function(a){this.type=a;this.b=a.b;a=this.type.pb[0].frames[0].fi;this.Hb?this.Y.Fg(a):this.Y=new Ya(a)};var b=r.da.prototype; b.T=function(){this.visible=0===this.D[0];this.Gh=this.eg=!1;this.$d=0!==this.D[3];1===this.type.pb.length&&1===this.type.pb[0].frames.length||0===this.type.pb[0].speed||(this.b.Bk(this),this.eg=!0);this.na=this.Rl(this.D[1])||this.type.pb[0];this.q=this.D[2];0>this.q&&(this.q=0);this.q>=this.na.frames.length&&(this.q=this.na.frames.length-1);var a=this.na.frames[this.q];this.Y.Fg(a.fi);this.eb=a.eb;this.fb=a.fb;this.Lf=this.na.speed;this.Hb?this.zc.reset():this.zc=new Wa;this.$c=this.zc.la;this.Yd= !0;this.Pc=0;this.Xd=!0;this.hh=this.kl="";this.ul=0;this.gh=-1;this.type.Oj();var b,c,e,h,g,d,l,a=0;for(b=this.type.pb.length;a<b;a++)for(h=this.type.pb[a],c=0,e=h.frames.length;c<e;c++)g=h.frames[c],0===g.width&&(g.width=g.B.width,g.height=g.B.height),g.sf&&(l=g.B,d=g.tk,d.left=g.kf/l.width,d.top=g.lf/l.height,d.right=(g.kf+g.width)/l.width,d.bottom=(g.lf+g.height)/l.height,0===g.kf&&0===g.lf&&g.width===l.width&&g.height===l.height&&(g.sf=!1));this.Jb=this.na.frames[this.q];this.qh=this.Jb.H};b.mb= function(){var a={a:this.na.N,f:this.q,cas:this.Lf,fs:this.$c,ar:this.Pc,at:this.zc.la};this.Yd||(a.ap=this.Yd);this.Xd||(a.af=this.Xd);return a};b.Gb=function(a){var b=this.Wq(a.a);b&&(this.na=b);this.q=a.f;0>this.q&&(this.q=0);this.q>=this.na.frames.length&&(this.q=this.na.frames.length-1);this.Lf=a.cas;this.$c=a.fs;this.Pc=a.ar;this.zc.reset();this.zc.la=a.at;this.Yd=a.hasOwnProperty("ap")?a.ap:!0;this.Xd=a.hasOwnProperty("af")?a.af:!0;this.Jb=this.na.frames[this.q];this.qh=this.Jb.H;this.Y.Fg(this.Jb.fi); this.eb=this.Jb.eb;this.fb=this.Jb.fb};b.Qi=function(a){this.q=a?0:this.na.frames.length-1;this.Yd=!1;this.kl=this.na.name;this.Gh=!0;this.b.trigger(X.prototype.e.Mo,this);this.b.trigger(X.prototype.e.Lo,this);this.Gh=!1;this.Pc=0};b.Vt=function(){return this.zc.la};b.Mc=function(){this.zc.add(this.b.Ch(this));this.hh.length&&this.Cl();0<=this.gh&&this.Dl();var a=this.zc.la,b=this.na,c=b.frames[this.q],e=c.duration/this.Lf;this.Yd&&a>=this.$c+e&&(this.Xd?this.q++:this.q--,this.$c+=e,this.q>=b.frames.length&& (b.jn?(this.Xd=!1,this.q=b.frames.length-2):b.loop?this.q=b.mi:(this.Pc++,this.Pc>=b.nk?this.Qi(!1):this.q=b.mi)),0>this.q&&(b.jn?(this.q=1,this.Xd=!0,b.loop||(this.Pc++,this.Pc>=b.nk&&this.Qi(!0))):b.loop?this.q=b.mi:(this.Pc++,this.Pc>=b.nk?this.Qi(!0):this.q=b.mi)),0>this.q?this.q=0:this.q>=b.frames.length&&(this.q=b.frames.length-1),a>this.$c+b.frames[this.q].duration/this.Lf&&(this.$c=a),a=b.frames[this.q],this.Le(c,a),this.b.W=!0)};b.Rl=function(a){var b,c,e;b=0;for(c=this.type.pb.length;b< c;b++)if(e=this.type.pb[b],db(e.name,a))return e;return null};b.Wq=function(a){var b,c,e;b=0;for(c=this.type.pb.length;b<c;b++)if(e=this.type.pb[b],e.N===a)return e;return null};b.Cl=function(){var a=this.na.frames[this.q],b=this.Rl(this.hh);this.hh="";!b||db(b.name,this.na.name)&&this.Yd||(this.na=b,this.Lf=b.speed,0>this.q&&(this.q=0),this.q>=this.na.frames.length&&(this.q=this.na.frames.length-1),1===this.ul&&(this.q=0),this.Yd=!0,this.$c=this.zc.la,this.Xd=!0,this.Le(a,this.na.frames[this.q]), this.b.W=!0)};b.Dl=function(){var a=this.na.frames[this.q],b=this.q;this.q=P(this.gh);0>this.q&&(this.q=0);this.q>=this.na.frames.length&&(this.q=this.na.frames.length-1);b!==this.q&&(this.Le(a,this.na.frames[this.q]),this.$c=this.zc.la,this.b.W=!0);this.gh=-1};b.Le=function(a,b){var c=a.width,e=a.height,h=b.width,g=b.height;c!=h&&(this.width*=h/c);e!=g&&(this.height*=g/e);this.eb=b.eb;this.fb=b.fb;this.Y.Fg(b.fi);this.ka();this.Jb=b;this.qh=b.H;c=0;for(e=this.F.length;c<e;c++)h=this.F[c],h.cn&&h.cn(a, b);this.b.trigger(X.prototype.e.Le,this)};b.Wc=function(a){a.globalAlpha=this.opacity;var b=this.Jb,c=b.sf,e=b.B,h=this.x,g=this.y,d=this.width,l=this.height;if(0===this.j&&0<=d&&0<=l)h-=this.eb*d,g-=this.fb*l,this.b.Gc&&(h=Math.round(h),g=Math.round(g)),c?a.drawImage(e,b.kf,b.lf,b.width,b.height,h,g,d,l):a.drawImage(e,h,g,d,l);else{this.b.Gc&&(h=Math.round(h),g=Math.round(g));a.save();var k=0<d?1:-1,m=0<l?1:-1;a.translate(h,g);1===k&&1===m||a.scale(k,m);a.rotate(this.j*k*m);h=0-this.eb*ma(d);g=0- this.fb*ma(l);c?a.drawImage(e,b.kf,b.lf,b.width,b.height,h,g,ma(d),ma(l)):a.drawImage(e,h,g,ma(d),ma(l));a.restore()}};b.Nb=function(a){a.zb(this.qh);a.Ee(this.opacity);var b=this.Jb,c=this.qb;if(this.b.Gc){var e=Math.round(this.x)-this.x,h=Math.round(this.y)-this.y;b.sf?a.Ic(c.ea+e,c.fa+h,c.Pa+e,c.Qa+h,c.Da+e,c.Ea+h,c.Ba+e,c.Ca+h,b.tk):a.ki(c.ea+e,c.fa+h,c.Pa+e,c.Qa+h,c.Da+e,c.Ea+h,c.Ba+e,c.Ca+h)}else b.sf?a.Ic(c.ea,c.fa,c.Pa,c.Qa,c.Da,c.Ea,c.Ba,c.Ca,b.tk):a.ki(c.ea,c.fa,c.Pa,c.Qa,c.Da,c.Ea,c.Ba, c.Ca)};b.cr=function(a){var b=this.Jb,c,e;c=0;for(e=b.Aj.length;c<e;c++)if(db(a,b.Aj[c][0]))return c;return-1};b.tj=function(a,b){var c=this.Jb,e=c.Aj,h;h=O(a)?this.cr(a):a-1;h=P(h);if(0>h||h>=e.length)return b?this.x:this.y;var g=(e[h][1]-c.eb)*this.width,e=e[h][2],e=(e-c.fb)*this.height,c=Math.cos(this.j);h=Math.sin(this.j);var d=g*c-e*h,e=e*c+g*h,g=d+this.x,e=e+this.y;return b?g:e};var h=null,e=new fa,m=!1,a=[],k=new Q(0,0,0,0);u.finish=function(a){if(m){if(a){var b=this.b.Sa().Ra.Wb;a=h.P();var c= e.wc(),g,k;if(a.X){a.X=!1;a.c.length=c.length;g=0;for(k=c.length;g<k;g++)a.c[g]=c[g];if(b)for(g=a.O.length=0,k=h.c.length;g<k;g++)c=h.c[g],e.contains(c)||a.O.push(c)}else if(b)for(b=a.c.length,a.c.length=b+c.length,g=0,k=c.length;g<k;g++)a.c[b+g]=c[g],Ea(a.O,c[g]);else R(a.c,c);h.td()}e.clear();m=!1}};q.prototype.Fo=function(b){if(b){var c=!1,g,p,q,r=this.b.Bh(),d=r.type,r=r.Ih;g=b.P();p=this.b.Sa().Ra.Wb;var l;g.X?(this.ga(),k.Jf(this.ua),k.offset(0,0),this.b.Zq(this.g,b,k,a),l=a):l=p?g.O:g.c;h= b;m=d!==b&&!r;g=0;for(p=l.length;g<p;g++)if(q=l[g],this.b.As(this,q)){c=!0;if(r)break;d!==b&&e.add(q)}a.length=0;b=c}else b=!1;return b};q.prototype.lo=function(a,b){return Sb(this.q,a,b)};q.prototype.Lo=function(a){return db(this.kl,a)};q.prototype.Mo=function(){return!0};q.prototype.Le=function(){return!0};r.e=new q;p.prototype.jp=function(a,b){this.hh=a;this.ul=b;this.eg||(this.b.Bk(this),this.eg=!0);this.Gh||this.Cl()};p.prototype.kp=function(a){this.gh=a;this.eg||(this.b.Bk(this),this.eg=!0); this.Gh||this.Dl()};r.C=new p;r.ca=new function(){}})();function dc(g){this.b=g} (function(){function g(a,b){return a.length?a.pop():new b}function q(a,b,c){if(c){var e;c=0;for(e=b.length;c<e;c++)a.length<h&&a.push(b[c]);b.length=0}else for(e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a.length<h&&a.push(b[e]),delete b[e])}function p(a,b,c){var h=a.ve;c=c.replace(/\s\s*$/,"");b>=h.length&&h.push(g(e,Object));b=h[b];b.text=c;b.width=a.Uj(c);a.uf=oa(a.uf,b.width)}function r(){}function u(){}var c=dc.prototype;c.T=function(){};c.ma=function(a){this.ia=a;this.b=a.b};var b=c.ma.prototype; b.T=function(){this.A||(this.B=new Image,this.b.Nk(this.B,this.yi),this.H=null)};b.bi=function(){this.A||(this.H=null)};b.ci=function(){if(!this.A&&this.c.length){this.H||(this.H=this.b.n.bf(this.B,!1,this.b.S,this.Mg));var a,b;a=0;for(b=this.c.length;a<b;a++)this.c[a].H=this.H}};b.Fi=function(){this.A||this.c.length||!this.H||(this.b.n.deleteTexture(this.H),this.H=null)};b.hi=function(a){a.drawImage(this.B,0,0)};c.da=function(a){this.type=a;this.b=a.b};b=c.da.prototype;b.mf=function(){q(e,this.ve, !0);q(m,this.jh,!1);q(a,this.kh,!1);Sa(this.zd)};b.T=function(){this.B=this.type.B;this.ih=this.D[0];this.xd=this.D[1];this.characterSet=this.D[2];this.text=this.D[3];this.yd=this.D[4];this.visible=0===this.D[5];this.am=this.D[6]/2;this.$n=this.D[7]/2;this.Ks=0===this.D[9];this.Oe=this.D[10];this.lineHeight=this.D[11];this.He=this.uf=0;this.Hb?(this.ve.length=0,Sa(this.jh),Sa(this.kh),Sa(this.zd)):(this.ve=[],this.jh={},this.kh={},this.zd={});this.Lg=!0;this.Mj=this.width;this.b.n&&(this.type.H|| (this.type.H=this.b.n.bf(this.type.B,!1,this.b.S,this.type.Mg)),this.H=this.type.H);this.zp()};b.mb=function(){var a={t:this.text,csc:this.yd,csp:this.Oe,lh:this.lineHeight,tw:this.uf,th:this.He,lrt:this.Pr,cw:{}},b;for(b in this.zd)a.cw[b]=this.zd[b];return a};b.Gb=function(a){this.text=a.t;this.yd=a.csc;this.Oe=a.csp;this.lineHeight=a.lh;this.uf=a.tw;this.He=a.th;this.Pr=a.lrt;for(var b in a.cw)this.zd[b]=a.cw[b];this.Lg=!0;this.Mj=this.width};var h=1E3,e=[],m=[],a=[];b.zp=function(){for(var b= this.B,c=b.width,e=b.height,b=this.ih,h=this.xd,k=b/c,d=h/e,l=this.characterSet,c=Math.floor(c/b),e=Math.floor(e/h),n=0;n<l.length&&!(n>=c*e);n++){var p=n%c,q=Math.floor(n/c),r=l.charAt(n);if(this.b.n){var u=this.kh,C=p*k,I=q*d,p=(p+1)*k,q=(q+1)*d;void 0===u[r]&&(u[r]=g(a,Q));u[r].left=C;u[r].top=I;u[r].right=p;u[r].bottom=q}else u=this.jh,p*=b,q*=h,C=b,I=h,void 0===u[r]&&(u[r]=g(m,Object)),u[r].x=p,u[r].y=q,u[r].bo=C,u[r].$l=I}};var k=[];c.Cp=function(a){k.length=0;for(var b="",c,e=0;e<a.length;)if(c= a.charAt(e),"\n"===c)b.length&&(k.push(b),b=""),k.push("\n"),++e;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(e),e++;while(e<a.length&&(" "===a.charAt(e)||"\t"===a.charAt(e)));k.push(b);b=""}else e<a.length&&(b+=c,e++);b.length&&k.push(b)};c.Fp=function(a){var b=a.text,c=a.ve;if(b&&b.length){var h=a.width;if(2>=h)q(e,c,!0);else{var k=a.yd,d=a.Oe;if(b.length*(a.ih*k+d)-d<=h&&-1===b.indexOf("\n")&&(d=a.Uj(b),d<=h)){q(e,c,!0);c.push(g(e,Object));c[0].text=b;c[0].width=d;a.uf=d;a.He=a.xd*k+a.lineHeight; return}this.Gp(a);a.He=c.length*(a.xd*k+a.lineHeight)}}else q(e,c,!0)};c.Gp=function(a){var b=a.Ks,c=a.text,g=a.ve,m=a.width;b&&(this.Cp(c),c=k);var d="",l,n,q,r=0,u=!1;for(q=0;q<c.length;q++)"\n"===c[q]?(!0===u?u=!1:(p(a,r,d),r++),d=""):(u=!1,l=d,d+=c[q],n=a.Uj(d.replace(/\s\s*$/,"")),n>m&&(""===l?(p(a,r,d),d="",u=!0):(p(a,r,l),d=c[q]),r++,b||" "!==d||(d="")));d.replace(/\s\s*$/,"").length&&(p(a,r,d),r++);for(q=r;q<g.length;q++)e.length<h&&e.push(g[q]);g.length=r};b.Uj=function(a){for(var b=this.Oe, c=a.length,e=0,h=0;h<c;h++)e+=this.qj(a.charAt(h))*this.yd+b;return e-(0<e?b:0)};b.qj=function(a){var b=this.zd;return void 0!==b[a]?b[a]:this.ih};b.sn=function(){if(this.Lg||this.width!==this.Mj)this.He=this.uf=0,this.type.ia.Fp(this),this.Lg=!1,this.Mj=this.width};b.Wc=function(a){var b=this.B;if(""!==this.text&&null!=b&&(this.sn(),!(this.height<this.xd*this.yd+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.Gc&&(b=Math.round(b),c=Math.round(c));var e=this.g.qa,h=this.g.ra, d=this.g.Aa,g=this.g.za;a.save();a.translate(b,c);a.rotate(this.j);for(var k=this.am,m=this.yd,n=this.xd*m,p=this.lineHeight,q=this.Oe,r=this.ve,u,na=-(this.eb*this.width),K=-(this.fb*this.height),K=K+this.$n*oa(0,this.height-this.He),G,E,da,ea=0;ea<r.length;ea++){var J=r[ea].text;u=k*oa(0,this.width-r[ea].width);G=na+u;K+=p;if(c+K+n<h)K+=n;else{for(var y=0;y<J.length;y++){E=J.charAt(y);u=this.qj(E);var z=this.jh[E];if(b+G+u*m+q<e)G+=u*m+q;else{if(G+u*m>this.width+1E-5)break;void 0!==z&&(E=G,da=K, 0===this.j&&(E=Math.round(E),da=Math.round(da)),a.drawImage(this.B,z.x,z.y,z.bo,z.$l,E,da,z.bo*m,z.$l*m));G+=u*m+q;if(b+G>d)break}}K+=n;if(K+n+p>this.height||c+K>g)break}}a.restore()}};var n=new za;b.Nb=function(a){a.zb(this.H);a.Ee(this.opacity);if(this.text&&(this.sn(),!(this.height<this.xd*this.yd+this.lineHeight))){this.ga();var b=this.qb,c=0,e=0;this.b.Gc&&(c=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y);var h=this.g.qa,d=this.g.ra,g=this.g.Aa,k=this.g.za,m=this.j,p=this.am,q=this.$n, r=this.yd,u=this.xd*r,I=this.lineHeight,na=this.Oe,K=this.ve,G=this.He,E,da,ea;0!==m&&(da=Math.cos(m),ea=Math.sin(m));for(var c=b.ea+c,b=b.fa+e,J,q=q*oa(0,this.height-G),y,z,G=0;G<K.length;G++)if(e=K[G].text,J=E=p*oa(0,this.width-K[G].width),q+=I,0===m&&b+q+u<d)q+=u;else{for(var N=0;N<e.length;N++){var D=e.charAt(N);E=this.qj(D);D=this.kh[D];if(c+J+E*r+na<h)J+=E*r+na;else{if(J+E*r>this.width+1E-5)break;if(void 0!==D){var H=this.ih*r,A=this.xd*r;y=J;z=q;0===m&&(y=Math.round(y),z=Math.round(z));n.ea= y;n.fa=z;n.Pa=y+H;n.Qa=z;n.Ba=y;n.Ca=z+A;n.Da=y+H;n.Ea=z+A;0!==m&&(y=n,z=da,H=ea,A=void 0,A=y.ea*z-y.fa*H,y.fa=y.fa*z+y.ea*H,y.ea=A,A=y.Pa*z-y.Qa*H,y.Qa=y.Qa*z+y.Pa*H,y.Pa=A,A=y.Ba*z-y.Ca*H,y.Ca=y.Ca*z+y.Ba*H,y.Ba=A,A=y.Da*z-y.Ea*H,y.Ea=y.Ea*z+y.Da*H,y.Da=A);n.offset(c,b);a.Ic(n.ea,n.fa,n.Pa,n.Qa,n.Da,n.Ea,n.Ba,n.Ca,D)}J+=E*r+na;if(0===m&&c+J>g)break}}q+=u;if(q+u+I>this.height||b+q>k)break}}};c.e=new function(){};r.prototype.vp=function(a){M(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!== a&&(this.text=a,this.Lg=!0,this.b.W=!0)};b.lp=function(a,b){var c=parseInt(b,10);this.zd[a]!==c&&(this.zd[a]=c,this.Lg=!0,this.b.W=!0)};r.prototype.mp=function(a,b){if(""!==a)for(var c=0;c<a.length;c++)this.lp(a.charAt(c),b)};c.C=new r;u.prototype.Text=function(a){a.ya(this.text)};c.ca=new u})();function ec(g){this.b=g} (function(){var g=ec.prototype;g.ma=function(g){this.ia=g;this.b=g.b};var q=g.ma.prototype;q.T=function(){this.A||(this.B=new Image,this.B.xl=this.Ak,this.b.Nk(this.B,this.yi),this.H=this.pattern=null)};q.bi=function(){this.A||(this.H=null)};q.ci=function(){if(!this.A&&this.c.length){this.H||(this.H=this.b.n.bf(this.B,!0,this.b.S,this.Mg));var g,q;g=0;for(q=this.c.length;g<q;g++)this.c[g].H=this.H}};q.Oj=function(){this.A||this.H||!this.b.n||(this.H=this.b.n.bf(this.B,!0,this.b.S,this.Mg))};q.Fi= function(){this.A||this.c.length||!this.H||(this.b.n.deleteTexture(this.H),this.H=null)};q.hi=function(g){g.drawImage(this.B,0,0)};g.da=function(g){this.type=g;this.b=g.b};q=g.da.prototype;q.T=function(){this.visible=0===this.D[0];this.Cg=new Q(0,0,0,0);this.em=!1;this.B=this.type.B;this.b.n?(this.type.Oj(),this.H=this.type.H):(this.type.pattern||(this.type.pattern=this.b.aa.createPattern(this.type.B,"repeat")),this.pattern=this.type.pattern)};q.rd=function(){this.em=!1;this.B=this.type.B};q.mf=function(){this.b.n&& this.em&&this.H&&(this.b.n.deleteTexture(this.H),this.H=null)};q.Wc=function(g){g.globalAlpha=this.opacity;g.save();g.fillStyle=this.pattern;var q=this.x,u=this.y;this.b.Gc&&(q=Math.round(q),u=Math.round(u));var c=-(this.eb*this.width),b=-(this.fb*this.height),h=c%this.B.width,e=b%this.B.height;0>h&&(h+=this.B.width);0>e&&(e+=this.B.height);g.translate(q,u);g.rotate(this.j);g.translate(h,e);g.fillRect(c-h,b-e,this.width,this.height);g.restore()};q.Nb=function(g){g.zb(this.H);g.Ee(this.opacity);var q= this.Cg;q.right=this.width/this.B.width;q.bottom=this.height/this.B.height;var u=this.qb;if(this.b.Gc){var c=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;g.Ic(u.ea+c,u.fa+b,u.Pa+c,u.Qa+b,u.Da+c,u.Ea+b,u.Ba+c,u.Ca+b,q)}else g.Ic(u.ea,u.fa,u.Pa,u.Qa,u.Da,u.Ea,u.Ba,u.Ca,q)};g.e=new function(){};g.C=new function(){};g.ca=new function(){}})();function Z(g){this.b=g} (function(){function g(b){m=b.x;a=b.y;k=b.z}function q(a){n=a.x;f=a.y;s=a.z}function p(a,b,c,d){var e;e=x.length?x.pop():new r;e.init(a,b,c,d);return e}function r(){this.Hg=this.id=this.y=this.x=this.vi=this.ti=this.Lj=this.time=this.xk=0;this.Pg=this.Di=!1}function u(){}function c(){}var b=Z.prototype;b.ma=function(a){this.ia=a;this.b=a.b};b.ma.prototype.T=function(){};b.da=function(a){this.type=a;this.b=a.b;this.touches=[];this.Vj=!1};var h=b.da.prototype,e={left:0,top:0};h.Rf=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 m=0,a=0,k=0,n=0,f=0,s=0,x=[];r.prototype.init=function(a,b,c,d){var e=T();this.xk=this.Lj=this.time=e;this.ti=a;this.vi=b;this.x=a;this.y=b;this.id=c;this.Hg=d;this.Pg=this.Di=!1};r.prototype.update=function(a,b,c){this.Lj=this.time;this.time=a;this.x=b;this.y=c;!this.Pg&&15<=Oa(this.ti,this.vi,this.x,this.y)&&(this.Pg=!0)};r.prototype.Vr=function(a,b){!this.Di&&500<=T()-this.xk&&!this.Pg&&15>Oa(this.ti,this.vi, this.x,this.y)&&(this.Di=!0,a.Nc=this.Hg,a.wf=this.id,a.Te=b,a.b.trigger(Z.prototype.e.Vo,a),a.Tc=this.x,a.Uc=this.y,a.b.trigger(Z.prototype.e.Wo,a),a.Te=0)};var F=-1E3,t=-1E3,d=-1E4;r.prototype.Tm=function(a,b){if(!this.Di){var c=T();333>=c-this.xk&&!this.Pg&&15>Oa(this.ti,this.vi,this.x,this.y)&&(a.Nc=this.Hg,a.wf=this.id,a.Te=b,666>=c-d&&25>Oa(F,t,this.x,this.y)?(a.b.trigger(Z.prototype.e.Po,a),a.Tc=this.x,a.Uc=this.y,a.b.trigger(Z.prototype.e.Qo,a),t=F=-1E3,d=-1E4):(a.b.trigger(Z.prototype.e.ep, a),a.Tc=this.x,a.Uc=this.y,a.b.trigger(Z.prototype.e.fp,a),F=this.x,t=this.y,d=c),a.Te=0)}};h.T=function(){this.Kr=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Te=this.wf=this.Nc=this.Uc=this.Tc=this.hl=this.gl=this.fl=this.Jp=this.Ip=this.Hp=this.xg=this.wg=this.vg=0;this.Is=0!==this.D[0];var a=0<this.b.kb?document:this.b.canvas,b=document;this.b.nc?b=a=window.Canvas:this.b.tb&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.ug(a)}, !1),a.addEventListener("pointermove",function(a){c.tg(a)},!1),b.addEventListener("pointerup",function(a){c.fd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.fd(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.ug(a)},!1),a.addEventListener("MSPointerMove",function(a){c.tg(a)},!1),b.addEventListener("MSPointerUp",function(a){c.fd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.fd(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.ei(a)}, !1),a.addEventListener("touchmove",function(a){c.di(a)},!1),b.addEventListener("touchend",function(a){c.nf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.nf(a,!0)},!1));if(this.Kr){var d=function(a){a=a.reading;c.fl=a.accelerationX;c.gl=a.accelerationY;c.hl=a.accelerationZ},e=function(a){a=a.reading;c.vg=a.yawDegrees;c.wg=a.pitchDegrees;c.xg=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged", d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.vg=a.alpha|| 0;c.wg=a.beta||0;c.xg=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Hp=a.accelerationIncludingGravity.x||0,c.Ip=a.accelerationIncludingGravity.y||0,c.Jp=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.fl=a.acceleration.x||0,c.gl=a.acceleration.y||0,c.hl=a.acceleration.z||0)},!1);this.Is&&!this.b.ha&&(jQuery(document).mousemove(function(a){c.ck(a)}),jQuery(document).mousedown(function(a){c.bk(a)}),jQuery(document).mouseup(function(a){c.dk(a)})); this.b.ag&&!this.b.nc&&AppMobi.accelerometer.watchAcceleration(g,{frequency:40,adjustForRotation:!0});this.b.Rb&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(q,null,{frequency:40});this.b.Bs(this)};h.tg=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Rf(a.pointerId),c=T();if(0<=b){var d=this.b.ha?e:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time|| b.update(c,a.pageX-d.left,a.pageY-d.top)}}};h.ug=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&eb(a)&&a.preventDefault();var b=this.b.ha?e:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;T();this.Nc=this.touches.length;this.wf=a.pointerId;this.touches.push(p(c,b,a.pointerId,this.Nc));this.b.Tb=!0;this.b.trigger(Z.prototype.e.Yk,this);this.b.trigger(Z.prototype.e.Ni,this);this.Tc=c;this.Uc=b;this.b.trigger(Z.prototype.e.Mi,this);this.b.Tb= !1}};h.fd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&eb(a)&&a.preventDefault();var c=this.Rf(a.pointerId);this.Nc=0<=c?this.touches[c].Hg:-1;this.wf=0<=c?this.touches[c].id:-1;this.b.Tb=!0;this.b.trigger(Z.prototype.e.Xk,this);this.b.trigger(Z.prototype.e.$k,this);0<=c&&(b||this.touches[c].Tm(this,c),100>x.length&&x.push(this.touches[c]),this.touches.splice(c,1));this.b.Tb=!1}};h.di=function(a){a.preventDefault&&a.preventDefault();var b=T(), c,d,f,h;c=0;for(d=a.changedTouches.length;c<d;c++)if(f=a.changedTouches[c],h=this.Rf(f.identifier),0<=h){var g=this.b.ha?e:jQuery(this.b.canvas).offset();h=this.touches[h];2>b-h.time||h.update(b,f.pageX-g.left,f.pageY-g.top)}};h.ei=function(a){a.preventDefault&&eb(a)&&a.preventDefault();var b=this.b.ha?e:jQuery(this.b.canvas).offset();T();this.b.Tb=!0;var c,d,f,h;c=0;for(d=a.changedTouches.length;c<d;c++)if(f=a.changedTouches[c],h=this.Rf(f.identifier),-1===h){h=f.pageX-b.left;var g=f.pageY-b.top; this.Nc=this.touches.length;this.wf=f.identifier;this.touches.push(p(h,g,f.identifier,this.Nc));this.b.trigger(Z.prototype.e.Yk,this);this.b.trigger(Z.prototype.e.Ni,this);this.Tc=h;this.Uc=g;this.b.trigger(Z.prototype.e.Mi,this)}this.b.Tb=!1};h.nf=function(a,b){a.preventDefault&&eb(a)&&a.preventDefault();this.b.Tb=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Rf(e.identifier),0<=e&&(this.Nc=this.touches[e].Hg,this.wf=this.touches[e].id,this.b.trigger(Z.prototype.e.Xk, this),this.b.trigger(Z.prototype.e.$k,this),b||this.touches[e].Tm(this,e),100>x.length&&x.push(this.touches[e]),this.touches.splice(e,1));this.b.Tb=!1};h.Nt=function(){return this.b.ag&&0===this.vg&&0!==k?90*k:this.b.Rb&&0===this.vg&&0!==s?90*s:this.vg};h.Ot=function(){return this.b.ag&&0===this.wg&&0!==a?-90*a:this.b.Rb&&0===this.wg&&0!==f?90*f:this.wg};h.Ut=function(){return this.b.ag&&0===this.xg&&0!==m?90*m:this.b.Rb&&0===this.xg&&0!==n?90*n:this.xg};h.bk=function(a){a.preventDefault&&this.b.xj&& !this.b.oe&&a.preventDefault();this.ei({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Vj=!0};h.ck=function(a){this.Vj&&this.di({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};h.dk=function(a){a.preventDefault&&this.b.xj&&!this.b.oe&&a.preventDefault();this.b.xj=!0;this.nf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Vj=!1};h.Bi=function(){var a,b,c,d=T();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Lj=d),c.Vr(this, a)};u.prototype.Ni=function(){return!0};u.prototype.$k=function(){return!0};u.prototype.Mi=function(a){return a?this.b.xi(a,this.Tc,this.Uc):!1};u.prototype.Yk=function(a){a=Math.floor(a);return a===this.Nc};u.prototype.Xk=function(a){a=Math.floor(a);return a===this.Nc};u.prototype.Vo=function(){return!0};u.prototype.ep=function(){return!0};u.prototype.Po=function(){return!0};u.prototype.Wo=function(a){return a?this.b.xi(a,this.Tc,this.Uc):!1};u.prototype.fp=function(a){return a?this.b.xi(a,this.Tc, this.Uc):!1};u.prototype.Qo=function(a){return a?this.b.xi(a,this.Tc,this.Uc):!1};b.e=new u;c.prototype.dl=function(a,b){var c=this.Te;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,h,g;ja(b)?(d=this.b.Sf(0),e=d.scale,f=d.yc,h=d.Yb,g=d.j,d.scale=1,d.yc=1,d.Yb=1,d.j=0,a.u(d.Wa(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.yc=f,d.Yb=h,d.j=g):(d=M(b)?this.b.Sf(b):this.b.uj(b))?a.u(d.Wa(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};c.prototype.el=function(a,b){var c=this.Te;if(0>c||c>= this.touches.length)a.u(0);else{var d,e,f,h,g;ja(b)?(d=this.b.Sf(0),e=d.scale,f=d.yc,h=d.Zb,g=d.j,d.scale=1,d.yc=1,d.Zb=1,d.j=0,a.u(d.Wa(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.yc=f,d.Zb=h,d.j=g):(d=M(b)?this.b.Sf(b):this.b.uj(b))?a.u(d.Wa(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};b.ca=new c})();function fc(g){this.b=g} (function(){function g(){}function q(){}function p(){}var r=fc.prototype;r.ma=function(b){this.ia=b;this.b=b.b};r.ma.prototype.T=function(){};r.da=function(b){this.type=b;this.b=b.b};var u=r.da.prototype,c="",b="undefined"!==typeof window.is_scirra_arcade;b&&(c="arcade"+window.scirra_arcade_id);u.T=function(){"undefined"===typeof localStorage&&B("[Construct 2] Webstorage plugin: local storage is not supported on this platform.");"undefined"===typeof sessionStorage&&B("[Construct 2] Webstorage plugin: session storage is not supported on this platform.")}; g.prototype.Io=function(b){return"undefined"===typeof localStorage?!1:null!=localStorage.getItem(c+b)};g.prototype.Zk=function(){return!0};r.e=new g;q.prototype.Ap=function(b,e){if("undefined"!==typeof localStorage)try{localStorage.setItem(c+b,e)}catch(g){this.b.trigger(fc.prototype.e.Zk,this)}};q.prototype.Sk=function(h,e){if("undefined"!==typeof localStorage){var g;try{g=JSON.parse(h)}catch(a){return}if(g.c2dictionary){g=g.data;0!==e||b||localStorage.clear();for(var k in g)if(g.hasOwnProperty(k))try{localStorage.setItem(c+ k,g[k])}catch(n){this.b.trigger(fc.prototype.e.Zk,this);break}}}};r.C=new q;p.prototype.Jo=function(b,e){"undefined"===typeof localStorage?b.ya(""):b.ya(localStorage.getItem(c+e)||"")};p.prototype.Vg=function(h){if("undefined"===typeof localStorage)h.ya("");else{var e={},g,a,k;g=0;for(a=localStorage.length;g<a;g++)k=localStorage.key(g),b?k.substr(0,c.length)===c&&(e[k.substr(c.length)]=localStorage.getItem(k)):e[k]=localStorage.getItem(k);h.ya(JSON.stringify({c2dictionary:!0,data:e}))}};r.ca=new p})(); function gc(g){this.b=g;var q=this;this.b.ha||(jQuery(document).mousemove(function(g){q.ck(g)}),jQuery(document).mousedown(function(g){q.bk(g)}),jQuery(document).mouseup(function(g){q.dk(g)}));g=0<this.b.kb?document:this.b.canvas;this.b.nc?g=window.Canvas:this.b.tb&&(g=window);window.navigator.pointerEnabled?(g.addEventListener("pointerdown",function(g){q.ug(g)},!1),g.addEventListener("pointermove",function(g){q.tg(g)},!1),g.addEventListener("pointerup",function(g){q.fd(g)},!1),g.addEventListener("pointercancel", function(g){q.fd(g)},!1)):window.navigator.msPointerEnabled?(g.addEventListener("MSPointerDown",function(g){q.ug(g)},!1),g.addEventListener("MSPointerMove",function(g){q.tg(g)},!1),g.addEventListener("MSPointerUp",function(g){q.fd(g)},!1),g.addEventListener("MSPointerCancel",function(g){q.fd(g)},!1)):(g.addEventListener("touchstart",function(g){q.ei(g)},!1),g.addEventListener("touchmove",function(g){q.di(g)},!1),g.addEventListener("touchend",function(g){q.nf(g)},!1),g.addEventListener("touchcancel", function(g){q.nf(g)},!1))} (function(){function g(b){var c,e;c=0;for(e=b.F.length;c<e;c++)if(b.F[c]instanceof r.da)return b.F[c];return null}function q(){}function p(){}var r=gc.prototype,u={left:0,top:0};r.bk=function(b){1===b.which&&this.Yj("leftmouse",b.pageX,b.pageY)};r.ck=function(b){1===b.which&&this.Zj("leftmouse",b.pageX,b.pageY)};r.dk=function(b){1===b.which&&this.$j("leftmouse")};r.ei=function(b){b.preventDefault&&eb(b)&&b.preventDefault();var c,e,g,a;c=0;for(e=b.changedTouches.length;c<e;c++)g=b.changedTouches[c], a=g.identifier,this.Yj(a?a.toString():"<none>",g.pageX,g.pageY)};r.di=function(b){b.preventDefault&&b.preventDefault();var c,e,g,a;c=0;for(e=b.changedTouches.length;c<e;c++)g=b.changedTouches[c],a=g.identifier,this.Zj(a?a.toString():"<none>",g.pageX,g.pageY)};r.nf=function(b){b.preventDefault&&eb(b)&&b.preventDefault();var c,e,g;c=0;for(e=b.changedTouches.length;c<e;c++)g=b.changedTouches[c],g=g.identifier,this.$j(g?g.toString():"<none>")};r.ug=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&& "mouse"!==b.pointerType&&(b.preventDefault&&eb(b)&&b.preventDefault(),this.Yj(b.pointerId.toString(),b.pageX,b.pageY))};r.tg=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&b.preventDefault(),this.Zj(b.pointerId.toString(),b.pageX,b.pageY))};r.fd=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&eb(b)&&b.preventDefault(),this.$j(b.pointerId.toString()))};r.Yj=function(b,c,e){var m=this.b.ha?u:jQuery(this.b.canvas).offset(); c-=m.left;e-=m.top;var a,k,n,f,m=this.jf.wc(),p,q,r,t=null;p=0;for(q=m.length;p<q;p++)if(r=m[p],a=g(r),a.enabled&&!a.Bc&&(a=r.g.Wa(c,e,!0),k=r.g.Wa(c,e,!1),r.ga(),r.ab(a,k)))t?r.g.index>t.g.index?(t=r,n=a,f=k):r.g.index===t.g.index&&r.Qb()>t.Qb()&&(t=r,n=a,f=k):(t=r,n=a,f=k);t&&g(t).as(b,n,f)};r.Zj=function(b,c,e){var m=this.b.ha?u:jQuery(this.b.canvas).offset();c-=m.left;e-=m.top;var a,k=this.jf.wc(),n,f,p;n=0;for(f=k.length;n<f;n++)a=k[n],p=g(a),!p.enabled||!p.Bc||p.Bc&&p.ej!==b||(m=a.g.Wa(c,e, !0),a=a.g.Wa(c,e,!1),p.bs(m,a))};r.$j=function(b){var c=this.jf.wc(),e,m,a;e=0;for(m=c.length;e<m;e++)a=c[e],a=g(a),a.Bc&&a.ej===b&&a.dn()};r.ma=function(b){this.behavior=b;this.b=b.b};r.ma.prototype.T=function(){};r.da=function(b,c){this.type=b;this.behavior=b.behavior;this.d=c;this.b=b.b};var c=r.da.prototype;c.T=function(){this.Bc=!1;this.Gl=this.Fl=0;this.ej="<none>";this.Ri=this.D[0];this.enabled=0!==this.D[1]};c.mb=function(){return{enabled:this.enabled}};c.Gb=function(b){this.enabled=b.enabled; this.Bc=!1};c.as=function(b,c,e){this.Fl=c-this.d.x;this.Gl=e-this.d.y;this.Bc=!0;this.ej=b;this.b.Tb=!0;this.b.trigger(gc.prototype.e.Ro,this.d);this.b.Tb=!1};c.bs=function(b,c){var e=b-this.Fl,g=c-this.Gl;if(0===this.Ri){if(this.d.x!==e||this.d.y!==g)this.d.x=e,this.d.y=g,this.d.ka()}else 1===this.Ri?this.d.x!==e&&(this.d.x=e,this.d.ka()):2===this.Ri&&this.d.y!==g&&(this.d.y=g,this.d.ka())};c.dn=function(){this.Bc=!1;this.b.Tb=!0;this.b.trigger(gc.prototype.e.So,this.d);this.b.Tb=!1};c.Mc=function(){}; q.prototype.Do=function(){return this.Bc};q.prototype.Ro=function(){return!0};q.prototype.So=function(){return!0};r.e=new q;p.prototype.np=function(b){this.enabled=0!==b;this.enabled||(this.Bc=!1)};p.prototype.ro=function(){this.Bc&&this.dn()};r.C=new p;r.ca=new function(){}})();function hc(g){this.b=g} (function(){function g(){}var q=hc.prototype;q.ma=function(g){this.behavior=g;this.b=g.b};q.ma.prototype.T=function(){};q.da=function(g,p){this.type=g;this.behavior=g.behavior;this.d=p;this.b=g.b};var p=q.da.prototype;p.T=function(){var g=1===this.D[0];this.Pf=this.D[1];this.Ug=this.D[2];this.wh=this.D[3];this.Zp=this.D[4];this.Ib=g?0:3;this.Hb?this.$b.reset():this.$b=new Wa;this.ze=this.d.opacity?this.d.opacity:1;g&&(0===this.Pf?(this.Ib=1,0===this.Ug&&(this.Ib=2)):(this.d.opacity=0,this.b.W=!0))}; p.mb=function(){return{fit:this.Pf,wt:this.Ug,fot:this.wh,s:this.Ib,st:this.$b.la,mo:this.ze}};p.Gb=function(g){this.Pf=g.fit;this.Ug=g.wt;this.wh=g.fot;this.Ib=g.s;this.$b.reset();this.$b.la=g.st;this.ze=g.mo};p.Mc=function(){this.$b.add(this.b.Ch(this.d));0===this.Ib&&(this.d.opacity=this.$b.la/this.Pf*this.ze,this.b.W=!0,this.d.opacity>=this.ze&&(this.d.opacity=this.ze,this.Ib=1,this.$b.reset(),this.b.trigger(hc.prototype.e.To,this.d)));1===this.Ib&&this.$b.la>=this.Ug&&(this.Ib=2,this.$b.reset(), this.b.trigger(hc.prototype.e.gp,this.d));2===this.Ib&&0!==this.wh&&(this.d.opacity=this.ze-this.$b.la/this.wh*this.ze,this.b.W=!0,0>this.d.opacity&&(this.d.opacity=0,this.Ib=3,this.$b.reset(),this.b.trigger(hc.prototype.e.Uo,this.d),1===this.Zp&&this.b.Wd(this.d)))};p.Mt=function(){this.Ib=0;this.$b.reset();0===this.Pf?(this.Ib=1,0===this.Ug&&(this.Ib=2)):(this.d.opacity=0,this.b.W=!0)};g.prototype.Uo=function(){return!0};g.prototype.To=function(){return!0};g.prototype.gp=function(){return!0};q.e= new g;q.C=new function(){};q.ca=new function(){}})();function ic(g){this.b=g} (function(){function g(){}var q=ic.prototype;q.ma=function(b){this.behavior=b;this.b=b.b};q.ma.prototype.T=function(){};q.da=function(b,c){this.type=b;this.behavior=b.behavior;this.d=c;this.b=b.b;this.Ga=0};var p=q.da.prototype,r=2*Math.PI,u=Math.PI/2,c=3*Math.PI/2;p.T=function(){this.Va=1===this.D[0];this.Md=this.D[1];this.Ii=this.D[2];this.Fc=this.D[3];this.Fc+=Math.random()*this.D[4];0===this.Fc?this.Ga=0:(this.Ga=this.D[5]/this.Fc*r,this.Ga+=Math.random()*this.D[6]/this.Fc*r);this.Ka=this.D[7]; this.Ka+=Math.random()*this.D[8];this.Bg=this.le=this.Q=0;this.init()};p.mb=function(){return{i:this.Ga,a:this.Va,mv:this.Md,w:this.Ii,p:this.Fc,mag:this.Ka,iv:this.Q,iv2:this.le,r:this.Bg,lkv:this.wb,lkv2:this.gg}};p.Gb=function(b){this.Ga=b.i;this.Va=b.a;this.Md=b.mv;this.Ii=b.w;this.Fc=b.p;this.Ka=b.mag;this.Q=b.iv;this.le=b.iv2||0;this.Bg=b.r;this.wb=b.lkv;this.gg=b.lkv2||0};p.init=function(){switch(this.Md){case 0:this.Q=this.d.x;break;case 1:this.Q=this.d.y;break;case 2:this.Q=this.d.width; this.Bg=this.d.height/this.d.width;break;case 3:this.Q=this.d.width;break;case 4:this.Q=this.d.height;break;case 5:this.Q=this.d.j;this.Ka=S(this.Ka);break;case 6:this.Q=this.d.opacity;break;case 7:this.Q=0;break;case 8:this.Q=this.d.x,this.le=this.d.y}this.wb=this.Q;this.gg=this.le};p.nd=function(b){b%=r;switch(this.Ii){case 0:return Math.sin(b);case 1:return b<=u?b/u:b<=c?1-2*(b-u)/Math.PI:(b-c)/u-1;case 2:return 2*b/r-1;case 3:return-2*b/r+1;case 4:return b<Math.PI?-1:1}return 0};p.Mc=function(){var b= this.b.Ch(this.d);if(this.Va&&0!==b){0===this.Fc?this.Ga=0:(this.Ga+=b/this.Fc*r,this.Ga%=r);switch(this.Md){case 0:this.d.x!==this.wb&&(this.Q+=this.d.x-this.wb);this.d.x=this.Q+this.nd(this.Ga)*this.Ka;this.wb=this.d.x;break;case 1:this.d.y!==this.wb&&(this.Q+=this.d.y-this.wb);this.d.y=this.Q+this.nd(this.Ga)*this.Ka;this.wb=this.d.y;break;case 2:this.d.width=this.Q+this.nd(this.Ga)*this.Ka;this.d.height=this.d.width*this.Bg;break;case 3:this.d.width=this.Q+this.nd(this.Ga)*this.Ka;break;case 4:this.d.height= this.Q+this.nd(this.Ga)*this.Ka;break;case 5:this.d.j!==this.wb&&(this.Q=Ha(this.Q+(this.d.j-this.wb)));this.d.j=Ha(this.Q+this.nd(this.Ga)*this.Ka);this.wb=this.d.j;break;case 6:this.d.opacity=this.Q+this.nd(this.Ga)*this.Ka/100;0>this.d.opacity?this.d.opacity=0:1<this.d.opacity&&(this.d.opacity=1);break;case 8:this.d.x!==this.wb&&(this.Q+=this.d.x-this.wb),this.d.y!==this.gg&&(this.le+=this.d.y-this.gg),this.d.x=this.Q+Math.cos(this.d.j)*this.nd(this.Ga)*this.Ka,this.d.y=this.le+Math.sin(this.d.j)* this.nd(this.Ga)*this.Ka,this.wb=this.d.x,this.gg=this.d.y}this.d.ka()}};p.cn=function(b,c){switch(this.Md){case 2:this.Q*=c.width/b.width;this.Bg=c.height/c.width;break;case 3:this.Q*=c.width/b.width;break;case 4:this.Q*=c.height/b.height}};q.e=new function(){};g.prototype.ip=function(b){this.Va=1===b};g.prototype.sp=function(b){this.Fc=b};g.prototype.pp=function(b){this.Ka=b;5===this.Md&&(this.Ka=S(this.Ka))};g.prototype.qp=function(b){5===this.Md&&(this.Ka=Fa(this.Ka));this.Md=b;this.init()};g.prototype.xp= function(b){this.Ii=b};q.C=new g;q.ca=new function(){}})();function jc(g){this.b=g} (function(){var g=jc.prototype;g.ma=function(g){this.behavior=g;this.b=g.b};g.ma.prototype.T=function(){};g.da=function(g,p){this.type=g;this.behavior=g.behavior;this.d=p;this.b=g.b;this.mode=0};g=g.da.prototype;g.T=function(){this.mode=this.D[0]};g.Mc=function(){};g.Bi=function(){this.d.ga();var g=this.d.ua,p=this.d.g.Ja,r=!1;0===this.mode?(0>this.d.x&&(this.d.x=0,r=!0),0>this.d.y&&(this.d.y=0,r=!0),this.d.x>p.width&&(this.d.x=p.width,r=!0),this.d.y>p.height&&(this.d.y=p.height,r=!0)):(0>g.left&& (this.d.x-=g.left,r=!0),0>g.top&&(this.d.y-=g.top,r=!0),g.right>p.width&&(this.d.x-=g.right-p.width,r=!0),g.bottom>p.height&&(this.d.y-=g.bottom-p.height,r=!0));r&&this.d.ka()}})(); function bc(){return[cc,Y,Z,dc,X,ec,fc,gc,jc,ic,hc,W.prototype.e.uo,gc.prototype.e.Do,X.prototype.C.tp,W.prototype.ca.Qr,X.prototype.ca.dl,W.prototype.ca.round,X.prototype.ca.el,X.prototype.e.Fo,gc.prototype.C.ro,X.prototype.e.Eo,X.prototype.C.op,X.prototype.e.Bo,gc.prototype.C.np,X.prototype.e.Pk,X.prototype.C.rp,W.prototype.e.Dp,cc.prototype.C.bl,W.prototype.ca.max,cc.prototype.ca.ho,X.prototype.C.kp,W.prototype.C.eo,dc.prototype.e.Wg,cc.prototype.C.Sk,W.prototype.e.vo,cc.prototype.ca.Rk,dc.prototype.C.mp, W.prototype.ca.Tr,W.prototype.e.Uk,dc.prototype.e.Pk,W.prototype.e.oo,dc.prototype.C.vp,W.prototype.C.wp,Z.prototype.e.Mi,W.prototype.C.yo,X.prototype.e.no,Y.prototype.C.zo,ic.prototype.C.ip,W.prototype.C.po,ic.prototype.C.qp,ic.prototype.C.pp,ic.prototype.C.sp,ic.prototype.C.xp,W.prototype.e.to,W.prototype.e.ko,W.prototype.C.hp,dc.prototype.C.qo,X.prototype.C.Ko,W.prototype.e.Tk,fc.prototype.C.Ap,cc.prototype.ca.Vg,W.prototype.C.xo,fc.prototype.e.Io,fc.prototype.ca.Jo,W.prototype.C.Bp,X.prototype.e.lo, cc.prototype.e.Qk,W.prototype.e.wo,X.prototype.C.jp,W.prototype.C.Ep,Z.prototype.e.Ni,ec.prototype.C.yp,ec.prototype.ca.cl,W.prototype.ca.de]};
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка