// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';function ba(){return function(){}}function ca(k){return function(){return this[k]}}function w(k){return function(){return k}}var da,fa,z,ga,D,F,ha,ia,ja,ka,la,K,ma,na,oa,pa,qa,ra,sa,ta,ua,L,va,xa,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,N,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,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,O,Bb,Cb,Db,R,Eb,Fb={},Gb={};
"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(k){return k.__proto__}:function(k){return k.constructor.prototype});
(function(){function k(e,a,b,m){this.set(e,a,b,m)}function p(){this.rb=this.qb=this.tb=this.sb=this.Ib=this.Hb=this.La=this.Ka=0}function g(e,a,b,m){e<a?b<m?(v=e<b?e:b,n=a>m?a:m):(v=e<m?e:m,n=a>b?a:b):b<m?(v=a<b?a:b,n=e>m?e:m):(v=a<m?a:m,n=e>b?e:b)}function l(){this.Hc=this.ic=null;this.ae=0;m&&(this.ic=new Set);this.xe=[];this.Rc=!0}function d(e){r[y++]=e}function a(){this.Qa=this.Fg=this.y=this.Yg=0}function b(e){this.le=[];this.jj=this.lj=this.mj=this.kj=0;this.xf(e)}function c(e,a){this.qm=e;
this.pm=a;this.cells={}}function f(e,a,b){var m;return B.length?(m=B.pop(),m.Tn=e,m.x=a,m.y=b,m):new da(e,a,b)}function h(e,a,b){this.Tn=e;this.x=a;this.y=b;this.og=new fa}z=function(e){window.console&&window.console.log&&window.console.log(e)};ga=function(e){return"undefined"===typeof e};D=function(e){return"number"===typeof e};F=function(e){return"string"===typeof e};ha=function(e){return 0<e&&0===(e-1&e)};ia=function(e){--e;for(var a=1;32>a;a<<=1)e|=e>>a;return e+1};ja=function(e){return 0>e?-e:
e};ka=function(e,a){return e<a?e:a};la=Math.PI;K=function(e){return 0<=e?e|0:(e|0)-1};ma=function(e){var a=e|0;return a===e?a:a+1};na=function(e,a,b,m,c,r,t,u){var f,s,h,d;e<b?(s=e,f=b):(s=b,f=e);c<t?(d=c,h=t):(d=t,h=c);if(f<d||s>h)return!1;a<m?(s=a,f=m):(s=m,f=a);r<u?(d=r,h=u):(d=u,h=r);if(f<d||s>h)return!1;f=c-e+t-b;s=r-a+u-m;e=b-e;a=m-a;c=t-c;r=u-r;u=ja(a*c-r*e);return ja(c*s-r*f)>u?!1:ja(e*s-a*f)<=u};k.prototype.set=function(e,a,b,m){this.left=e;this.top=a;this.right=b;this.bottom=m};k.prototype.copy=
function(e){this.left=e.left;this.top=e.top;this.right=e.right;this.bottom=e.bottom};k.prototype.width=function(){return this.right-this.left};k.prototype.height=function(){return this.bottom-this.top};k.prototype.offset=function(e,a){this.left+=e;this.top+=a;this.right+=e;this.bottom+=a;return this};k.prototype.normalize=function(){var e=0;this.left>this.right&&(e=this.left,this.left=this.right,this.right=e);this.top>this.bottom&&(e=this.top,this.top=this.bottom,this.bottom=e)};k.prototype.Mb=function(e,
a){return e>=this.left&&e<=this.right&&a>=this.top&&a<=this.bottom};k.prototype.Qm=function(e){return this.left===e.left&&this.top===e.top&&this.right===e.right&&this.bottom===e.bottom};oa=k;p.prototype.yg=function(e){this.Ka=e.left;this.La=e.top;this.Hb=e.right;this.Ib=e.top;this.sb=e.right;this.tb=e.bottom;this.qb=e.left;this.rb=e.bottom};p.prototype.cl=function(e,a){if(0===a)this.yg(e);else{var b=Math.sin(a),m=Math.cos(a),c=e.left*b,r=e.top*b,t=e.right*b,b=e.bottom*b,u=e.left*m,f=e.top*m,s=e.right*
m,m=e.bottom*m;this.Ka=u-r;this.La=f+c;this.Hb=s-r;this.Ib=f+t;this.sb=s-b;this.tb=m+t;this.qb=u-b;this.rb=m+c}};p.prototype.offset=function(e,a){this.Ka+=e;this.La+=a;this.Hb+=e;this.Ib+=a;this.sb+=e;this.tb+=a;this.qb+=e;this.rb+=a;return this};var v=0,n=0;p.prototype.oj=function(e){g(this.Ka,this.Hb,this.sb,this.qb);e.left=v;e.right=n;g(this.La,this.Ib,this.tb,this.rb);e.top=v;e.bottom=n};p.prototype.Mb=function(e,a){var b=this.Hb-this.Ka,m=this.Ib-this.La,c=this.sb-this.Ka,r=this.tb-this.La,t=
e-this.Ka,u=a-this.La,f=b*b+m*m,s=b*c+m*r,m=b*t+m*u,h=c*c+r*r,d=c*t+r*u,n=1/(f*h-s*s),b=(h*m-s*d)*n,f=(f*d-s*m)*n;if(0<=b&&0<f&&1>b+f)return!0;b=this.qb-this.Ka;m=this.rb-this.La;f=b*b+m*m;s=b*c+m*r;m=b*t+m*u;n=1/(f*h-s*s);b=(h*m-s*d)*n;f=(f*d-s*m)*n;return 0<=b&&0<f&&1>b+f};pa=p;qa=function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b]);return e};ra=function(e,a){var b,m;a=K(a);if(!(0>a||a>=e.length)){b=a;for(m=e.length-1;b<m;b++)e[b]=e[b+1];e.length=m}};sa=function(e,a){e.length=a.length;
var b,m;b=0;for(m=a.length;b<m;b++)e[b]=a[b]};ta=function(e,a){var b,m;b=0;for(m=e.length;b<m;++b)if(e[b]===a)return b;return-1};ua=function(e,a){var b=ta(e,a);-1!==b&&ra(e,b)};L=function(e){return e/(180/la)};va=function(e){return e*(180/la)};xa=function(e){e%=360;0>e&&(e+=360);return e};za=function(e){e%=2*la;0>e&&(e+=2*la);return e};Aa=function(e){return xa(va(e))};Ba=function(e){return za(L(e))};Ca=function(e,a,b,m){return Math.atan2(m-a,b-e)};Da=function(e,a){if(e===a)return 0;var b=Math.sin(e),
m=Math.cos(e),c=Math.sin(a),r=Math.cos(a),b=b*c+m*r;return 1<=b?0:-1>=b?la:Math.acos(b)};Ea=function(e,a,b){var m=Math.sin(e),c=Math.cos(e),r=Math.sin(a),t=Math.cos(a);return Math.acos(m*r+c*t)>b?0<c*r-m*t?za(e+b):za(e-b):za(a)};Fa=function(e,a){var b=Math.sin(e),m=Math.cos(e),c=Math.sin(a),r=Math.cos(a);return 0>=m*c-b*r};Ga=function(e,a,b,m){e=b-e;a=m-a;return Math.sqrt(e*e+a*a)};Ha=function(e,a){return!e!==!a};Ia=function(e){for(var a in e)if(e.hasOwnProperty(a))return!0;return!1};Ja=function(e){for(var a in e)e.hasOwnProperty(a)&&
delete e[a]};var q=+new Date;N=function(){if("undefined"!==typeof window.performance){var e=window.performance;if("undefined"!==typeof e.now)return e.now();if("undefined"!==typeof e.webkitNow)return e.webkitNow();if("undefined"!==typeof e.mozNow)return e.mozNow();if("undefined"!==typeof e.msNow)return e.msNow()}return Date.now()-q};var e=!1,t=e=!1,u=!1;"undefined"!==typeof window&&(e=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),e=!e&&/safari/i.test(navigator.userAgent),
t=/(iphone|ipod|ipad)/i.test(navigator.userAgent),u=window.c2ejecta);var m=!e&&!u&&!t&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;l.prototype.contains=function(e){return this.Qb()?!1:m?this.ic.has(e):this.Hc&&this.Hc.hasOwnProperty(e)};l.prototype.add=function(e){if(m)this.ic.has(e)||(this.ic.add(e),this.Rc=!1);else{var a=e.toString(),b=this.Hc;b?b.hasOwnProperty(a)||(b[a]=e,this.ae++,this.Rc=!1):(this.Hc={},this.Hc[a]=e,this.ae=1,this.Rc=!1)}};l.prototype.remove=function(e){if(!this.Qb())if(m)this.ic.has(e)&&
(this.ic["delete"](e),this.Rc=!1);else if(this.Hc){e=e.toString();var a=this.Hc;a.hasOwnProperty(e)&&(delete a[e],this.ae--,this.Rc=!1)}};l.prototype.clear=function(){this.Qb()||(m?this.ic.clear():(this.Hc=null,this.ae=0),this.xe.length=0,this.Rc=!0)};l.prototype.Qb=function(){return 0===this.count()};l.prototype.count=function(){return m?this.ic.size:this.ae};var r=null,y=0;l.prototype.gp=function(){if(!this.Rc){if(m)this.xe.length=this.ic.size,r=this.xe,y=0,this.ic.forEach(d),r=null,y=0;else{var e=
this.xe;e.length=this.ae;var a,b=0,c=this.Hc;if(c)for(a in c)c.hasOwnProperty(a)&&(e[b++]=c[a])}this.Rc=!0}};l.prototype.we=function(){this.gp();return this.xe};fa=l;new fa;a.prototype.add=function(e){this.y=e-this.Yg;this.Fg=this.Qa+this.y;this.Yg=this.Fg-this.Qa-this.y;this.Qa=this.Fg};a.prototype.reset=function(){this.Qa=this.Fg=this.y=this.Yg=0};Ka=a;La=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.xf=function(e){this.Tk=e;this.tg=e.length/2;this.le.length=e.length;
this.Zg=this.$g=-1;this.qj=0};b.prototype.lo=function(){return!this.Tk.length};b.prototype.Ga=function(){for(var e=this.le,a=e[0],b=a,m=e[1],c=m,r,t,f=1,u=this.tg;f<u;++f)t=2*f,r=e[t],t=e[t+1],r<a&&(a=r),r>b&&(b=r),t<m&&(m=t),t>c&&(c=t);this.kj=a;this.lj=b;this.mj=m;this.jj=c};b.prototype.yg=function(e,a,b){this.le.length=8;this.tg=4;var m=this.le;m[0]=e.left-a;m[1]=e.top-b;m[2]=e.right-a;m[3]=e.top-b;m[4]=e.right-a;m[5]=e.bottom-b;m[6]=e.left-a;m[7]=e.bottom-b;this.$g=e.right-e.left;this.Zg=e.bottom-
e.top;this.Ga()};b.prototype.om=function(e,a,b){if(this.$g!==e||this.Zg!==a||this.qj!==b){this.$g=e;this.Zg=a;this.qj=b;var m,c,r,t,f,u=0,s=1,h=this.Tk,d=this.le;0!==b&&(u=Math.sin(b),s=Math.cos(b));b=0;for(r=this.tg;b<r;b++)m=2*b,c=m+1,t=h[m]*e,f=h[c]*a,d[m]=t*s-f*u,d[c]=f*s+t*u;this.Ga()}};b.prototype.Mb=function(e,a){var b=this.le;if(e===b[0]&&a===b[1])return!0;var m,c,r,t=this.tg,f=this.kj-110,u=this.mj-101,s=this.lj+131,h=this.jj+120,d,n,y=0,g=0;for(m=0;m<t;m++)c=2*m,r=2*((m+1)%t),d=b[c],c=b[c+
1],n=b[r],r=b[r+1],na(f,u,e,a,d,c,n,r)&&y++,na(s,h,e,a,d,c,n,r)&&g++;return 1===y%2||1===g%2};Ma=b;c.prototype.Lj=function(e,a,b){var m;m=this.cells[e];return m?(m=m[a])?m:b?(m=f(this,e,a),this.cells[e][a]=m):null:b?(m=f(this,e,a),this.cells[e]={},this.cells[e][a]=m):null};c.prototype.Xi=function(e){return K(e/this.qm)};c.prototype.Zi=function(e){return K(e/this.pm)};c.prototype.update=function(e,a,b){var m,c,r,t,f;if(a)for(m=a.left,c=a.right;m<=c;++m)for(r=a.top,t=a.bottom;r<=t;++r)if(!b||!b.Mb(m,
r))if(f=this.Lj(m,r,!1))f.remove(e),f.Qb()&&(f.og.clear(),1E3>B.length&&B.push(f),this.cells[m][r]=null);if(b)for(m=b.left,c=b.right;m<=c;++m)for(r=b.top,t=b.bottom;r<=t;++r)a&&a.Mb(m,r)||this.Lj(m,r,!0).Zn(e)};Na=c;var B=[];h.prototype.Qb=function(){return this.og.Qb()};h.prototype.Zn=function(e){this.og.add(e)};h.prototype.remove=function(e){this.og.remove(e)};da=h;var s="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
Oa=function(e){return 0>=e||11<=e?"source-over":s[e-1]};Pa=function(e,a,b){if(b)switch(e.Ea=b.ONE,e.Ca=b.ONE_MINUS_SRC_ALPHA,a){case 1:e.Ea=b.ONE;e.Ca=b.ONE;break;case 3:e.Ea=b.ONE;e.Ca=b.ZERO;break;case 4:e.Ea=b.ONE_MINUS_DST_ALPHA;e.Ca=b.ONE;break;case 5:e.Ea=b.DST_ALPHA;e.Ca=b.ZERO;break;case 6:e.Ea=b.ZERO;e.Ca=b.SRC_ALPHA;break;case 7:e.Ea=b.ONE_MINUS_DST_ALPHA;e.Ca=b.ZERO;break;case 8:e.Ea=b.ZERO;e.Ca=b.ONE_MINUS_SRC_ALPHA;break;case 9:e.Ea=b.DST_ALPHA;e.Ca=b.ONE_MINUS_SRC_ALPHA;break;case 10:e.Ea=
b.ONE_MINUS_DST_ALPHA,e.Ca=b.SRC_ALPHA}};Qa=function(e){return Math.round(1E6*e)/1E6};Ra=function(e,a){return"string"!==typeof e||"string"!==typeof a||e.length!==a.length?!1:e===a?!0:e.toLowerCase()===a.toLowerCase()};Sa=function(e){e=e.target;return!e||e===document||e===window||document&&document.body&&e===document.body||Ra(e.tagName,"canvas")?!0:!1}})();var Hb="undefined"!==typeof Float32Array?Float32Array:Array;function Ib(k){var p=new Hb(3);k&&(p[0]=k[0],p[1]=k[1],p[2]=k[2]);return p}
function Jb(k){var p=new Hb(16);k&&(p[0]=k[0],p[1]=k[1],p[2]=k[2],p[3]=k[3],p[4]=k[4],p[5]=k[5],p[6]=k[6],p[7]=k[7],p[8]=k[8],p[9]=k[9],p[10]=k[10],p[11]=k[11],p[12]=k[12],p[13]=k[13],p[14]=k[14],p[15]=k[15]);return p}function Kb(k,p){p[0]=k[0];p[1]=k[1];p[2]=k[2];p[3]=k[3];p[4]=k[4];p[5]=k[5];p[6]=k[6];p[7]=k[7];p[8]=k[8];p[9]=k[9];p[10]=k[10];p[11]=k[11];p[12]=k[12];p[13]=k[13];p[14]=k[14];p[15]=k[15]}
function Lb(k,p){var g=p[0],l=p[1];p=p[2];k[0]*=g;k[1]*=g;k[2]*=g;k[3]*=g;k[4]*=l;k[5]*=l;k[6]*=l;k[7]*=l;k[8]*=p;k[9]*=p;k[10]*=p;k[11]*=p}
function Mb(k,p,g,l){l||(l=Jb());var d,a,b,c,f,h,v,n,q=k[0],e=k[1];k=k[2];a=g[0];b=g[1];d=g[2];g=p[1];h=p[2];q===p[0]&&e===g&&k===h?(k=l,k[0]=1,k[1]=0,k[2]=0,k[3]=0,k[4]=0,k[5]=1,k[6]=0,k[7]=0,k[8]=0,k[9]=0,k[10]=1,k[11]=0,k[12]=0,k[13]=0,k[14]=0,k[15]=1):(g=q-p[0],h=e-p[1],v=k-p[2],n=1/Math.sqrt(g*g+h*h+v*v),g*=n,h*=n,v*=n,p=b*v-d*h,d=d*g-a*v,a=a*h-b*g,(n=Math.sqrt(p*p+d*d+a*a))?(n=1/n,p*=n,d*=n,a*=n):a=d=p=0,b=h*a-v*d,c=v*p-g*a,f=g*d-h*p,(n=Math.sqrt(b*b+c*c+f*f))?(n=1/n,b*=n,c*=n,f*=n):f=c=b=0,
l[0]=p,l[1]=b,l[2]=g,l[3]=0,l[4]=d,l[5]=c,l[6]=h,l[7]=0,l[8]=a,l[9]=f,l[10]=v,l[11]=0,l[12]=-(p*q+d*e+a*k),l[13]=-(b*q+c*e+f*k),l[14]=-(g*q+h*e+v*k),l[15]=1)}
(function(){function k(a){this.zd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.rj=Ib([0,0,100]);this.rk=Ib([0,0,0]);this.yl=Ib([0,1,0]);this.Pi=Ib([1,1,1]);this.Cj=!0;this.Yh=Jb();this.Ab=Jb();this.ik=Jb();this.hh=Jb();this.j=a;this.Wj()}function p(a,b,c){this.j=a;this.yf=b;this.name=c;this.zb=a.getAttribLocation(b,"aPos");this.Zc=a.getAttribLocation(b,"aTex");this.pk=a.getUniformLocation(b,"matP");this.ee=a.getUniformLocation(b,"matMV");this.fe=
a.getUniformLocation(b,"opacity");this.qk=a.getUniformLocation(b,"samplerFront");this.kf=a.getUniformLocation(b,"samplerBack");this.Dd=a.getUniformLocation(b,"destStart");this.Cd=a.getUniformLocation(b,"destEnd");this.Wh=a.getUniformLocation(b,"seconds");this.Vh=a.getUniformLocation(b,"pixelWidth");this.Uh=a.getUniformLocation(b,"pixelHeight");this.jf=a.getUniformLocation(b,"layerScale");this.hf=a.getUniformLocation(b,"layerAngle");this.lf=a.getUniformLocation(b,"viewOrigin");this.Wn=!!(this.Vh||
this.Uh||this.Wh||this.kf||this.Dd||this.Cd||this.jf||this.hf||this.lf);this.fe&&a.uniform1f(this.fe,1);this.qk&&a.uniform1i(this.qk,0);this.kf&&a.uniform1i(this.kf,1);this.Dd&&a.uniform2f(this.Dd,0,0);this.Cd&&a.uniform2f(this.Cd,1,1);this.jf&&a.uniform1f(this.jf,1);this.hf&&a.uniform1f(this.hf,0);this.lf&&a.uniform2f(this.lf,0,0);this.vd=!1}function g(a,b){this.type=a;this.q=b;this.j=b.j;this.cc=this.Fb=this.Kk=0;this.N=this.Vb=null;this.dl=[]}k.prototype.Wj=function(){var a=this.j,b;this.jk=1;
this.Ad=this.Xc=null;this.xj=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.DEPTH_TEST);this.kk=a.ONE;this.hk=a.ONE_MINUS_SRC_ALPHA;this.ki=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.ki);this.Hf=Array(4);this.Cf=Array(4);for(b=0;4>b;b++)this.Hf[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Hf[b]),this.Cf[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Cf[b]);this.uc=0;this.Yn=a.createBuffer();
a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Yn);this.Oi=new Float32Array(16E3);this.Gi=new Float32Array(16E3);this.Bo=new Float32Array(32E3);for(var c=new Uint16Array(12E3),f=b=0;12E3>b;)c[b++]=f,c[b++]=f+1,c[b++]=f+2,c[b++]=f,c[b++]=f+2,c[b++]=f+3,f+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,c,a.STATIC_DRAW);this.li=this.oc=0;this.ma=[];b=this.gh({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},
"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.ma.push(b);b=this.gh({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}",
"<point>");this.ma.push(b);for(var h in Nb)Nb.hasOwnProperty(h)&&this.ma.push(this.gh(Nb[h],"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}",h));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Qc=[];this.sc=0;this.Xa=!1;this.yj=this.bf=-1;this.Je=null;this.pn=a.createFramebuffer();this.Wk=
null;this.ld=Ib([0,0,0]);this.sk=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.sk&&(this.sk=2048);this.kc(0)};k.prototype.gh=function(a,b,c){var f=this.j,h=f.createShader(f.FRAGMENT_SHADER);f.shaderSource(h,a.src);f.compileShader(h);if(!f.getShaderParameter(h,f.COMPILE_STATUS))return f.deleteShader(h),null;var d=f.createShader(f.VERTEX_SHADER);f.shaderSource(d,b);f.compileShader(d);if(!f.getShaderParameter(d,f.COMPILE_STATUS))return f.deleteShader(h),f.deleteShader(d),null;b=f.createProgram();
f.attachShader(b,h);f.attachShader(b,d);f.linkProgram(b);if(!f.getProgramParameter(b,f.LINK_STATUS))return f.deleteShader(h),f.deleteShader(d),f.deleteProgram(b),null;f.useProgram(b);f.deleteShader(h);f.deleteShader(d);c=new p(f,b,c);c.oh=a.oh||0;c.ph=a.ph||0;c.wj=!!a.wj;c.fj=!!a.fj;c.B=a.B||[];a=0;for(h=c.B.length;a<h;a++)c.B[a][1]=f.getUniformLocation(b,c.B[a][0]),f.uniform1f(c.B[a][1],0);return c};k.prototype.zh=function(a){var b,c;b=0;for(c=this.ma.length;b<c;b++)if(this.ma[b].name===a)return b;
return-1};k.prototype.Sk=function(a,b,c){var f=this.Ab,h=this.Yh,d=[0,0,0,0,0,0,0,0];d[0]=f[0]*a+f[4]*b+f[12];d[1]=f[1]*a+f[5]*b+f[13];d[2]=f[2]*a+f[6]*b+f[14];d[3]=f[3]*a+f[7]*b+f[15];d[4]=h[0]*d[0]+h[4]*d[1]+h[8]*d[2]+h[12]*d[3];d[5]=h[1]*d[0]+h[5]*d[1]+h[9]*d[2]+h[13]*d[3];d[6]=h[2]*d[0]+h[6]*d[1]+h[10]*d[2]+h[14]*d[3];d[7]=-d[2];0!==d[7]&&(d[7]=1/d[7],d[4]*=d[7],d[5]*=d[7],d[6]*=d[7],c[0]=(0.5*d[4]+0.5)*this.width,c[1]=(0.5*d[5]+0.5)*this.height)};k.prototype.pe=function(a,b,c){if(this.width!==
a||this.height!==b||c){this.Tc();this.width=a;this.height=b;this.j.viewport(0,0,a,b);b=a/b;var f=this.Yh,d;d=1*Math.tan(45*Math.PI/360);b*=d;a=-b;c=-d;f||(f=Jb());var g=b-a,n=d-c;f[0]=2/g;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/n;f[6]=0;f[7]=0;f[8]=(b+a)/g;f[9]=(d+c)/n;f[10]=-1001/999;f[11]=-1;f[12]=0;f[13]=0;f[14]=-2E3/999;f[15]=0;Mb(this.rj,this.rk,this.yl,this.Ab);a=[0,0];b=[0,0];this.Sk(0,0,a);this.Sk(1,1,b);this.Pi[0]=1/(b[0]-a[0]);this.Pi[1]=-1/(b[1]-a[1]);a=0;for(b=this.ma.length;a<b;a++)c=this.ma[a],
c.vd=!1,c.pk&&(this.j.useProgram(c.yf),this.j.uniformMatrix4fv(c.pk,!1,this.Yh));this.j.useProgram(this.ma[this.bf].yf);this.j.bindTexture(this.j.TEXTURE_2D,null);this.j.activeTexture(this.j.TEXTURE1);this.j.bindTexture(this.j.TEXTURE_2D,null);this.j.activeTexture(this.j.TEXTURE0);this.Ad=this.Xc=null}};k.prototype.hc=function(){Mb(this.rj,this.rk,this.yl,this.Ab);Lb(this.Ab,this.Pi)};k.prototype.translate=function(a,b){if(0!==a||0!==b){this.ld[0]=a;this.ld[1]=b;this.ld[2]=0;var c=this.Ab,f=this.ld,
d=f[0],g=f[1],f=f[2];c[12]=c[0]*d+c[4]*g+c[8]*f+c[12];c[13]=c[1]*d+c[5]*g+c[9]*f+c[13];c[14]=c[2]*d+c[6]*g+c[10]*f+c[14];c[15]=c[3]*d+c[7]*g+c[11]*f+c[15]}};k.prototype.scale=function(a,b){if(1!==a||1!==b)this.ld[0]=a,this.ld[1]=b,this.ld[2]=1,Lb(this.Ab,this.ld)};k.prototype.wi=function(a){if(0!==a){var b=this.Ab,c,f=Math.sin(a);a=Math.cos(a);var d=b[0],g=b[1],n=b[2],l=b[3],e=b[4],t=b[5],u=b[6],m=b[7];c?b!==c&&(c[8]=b[8],c[9]=b[9],c[10]=b[10],c[11]=b[11],c[12]=b[12],c[13]=b[13],c[14]=b[14],c[15]=
b[15]):c=b;c[0]=d*a+e*f;c[1]=g*a+t*f;c[2]=n*a+u*f;c[3]=l*a+m*f;c[4]=d*-f+e*a;c[5]=g*-f+t*a;c[6]=n*-f+u*a;c[7]=l*-f+m*a}};k.prototype.nc=function(){for(var a=!1,b=0;16>b;b++)if(this.ik[b]!==this.Ab[b]){a=!0;break}a&&(a=this.Tb(),a.type=5,a.N?Kb(this.Ab,a.N):a.N=Jb(this.Ab),Kb(this.Ab,this.ik),this.Xa=!1)};g.prototype.Jm=function(){this.j.bindTexture(this.j.TEXTURE_2D,this.Vb)};g.prototype.Km=function(){var a=this.j;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Vb);a.activeTexture(a.TEXTURE0)};
g.prototype.Gm=function(){var a=this.Kk,b=this.q;b.xj=a;b=b.Je;b.fe&&this.j.uniform1f(b.fe,a)};g.prototype.Dm=function(){this.j.drawElements(this.j.TRIANGLES,this.cc,this.j.UNSIGNED_SHORT,2*this.Fb)};g.prototype.Fm=function(){this.j.blendFunc(this.Fb,this.cc)};g.prototype.Lm=function(){var a,b,c,f=this.q.ma,d=this.q.yj;a=0;for(b=f.length;a<b;a++)c=f[a],a===d&&c.ee?(this.j.uniformMatrix4fv(c.ee,!1,this.N),c.vd=!0):c.vd=!1;Kb(this.N,this.q.hh)};g.prototype.Em=function(){var a=this.j,b=this.q;this.Vb?
(b.Ad===this.Vb&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.Ad=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.pn),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Vb,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};g.prototype.Bm=function(){var a=this.j;0===this.Fb?(a.clearColor(this.N[0],this.N[1],this.N[2],this.N[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),
a.scissor(this.N[0],this.N[1],this.N[2],this.N[3]),a.clearColor(0,0,0,0),a.clear(this.j.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};g.prototype.Cm=function(){var a=this.j,b=this.q,c=b.ma[1];a.useProgram(c.yf);!c.vd&&c.ee&&(a.uniformMatrix4fv(c.ee,!1,b.hh),c.vd=!0);a.enableVertexAttribArray(c.zb);a.bindBuffer(a.ARRAY_BUFFER,b.ki);a.vertexAttribPointer(c.zb,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Fb/4,this.cc);c=b.Je;a.useProgram(c.yf);0<=c.zb&&(a.enableVertexAttribArray(c.zb),a.bindBuffer(a.ARRAY_BUFFER,
b.Hf[b.uc]),a.vertexAttribPointer(c.zb,2,a.FLOAT,!1,0,0));0<=c.Zc&&(a.enableVertexAttribArray(c.Zc),a.bindBuffer(a.ARRAY_BUFFER,b.Cf[b.uc]),a.vertexAttribPointer(c.Zc,2,a.FLOAT,!1,0,0))};g.prototype.Hm=function(){var a=this.j,b=this.q,c=b.ma[this.Fb];b.yj=this.Fb;b.Je=c;a.useProgram(c.yf);!c.vd&&c.ee&&(a.uniformMatrix4fv(c.ee,!1,b.hh),c.vd=!0);c.fe&&a.uniform1f(c.fe,b.xj);0<=c.zb&&(a.enableVertexAttribArray(c.zb),a.bindBuffer(a.ARRAY_BUFFER,b.Hf[b.uc]),a.vertexAttribPointer(c.zb,2,a.FLOAT,!1,0,0));
0<=c.Zc&&(a.enableVertexAttribArray(c.Zc),a.bindBuffer(a.ARRAY_BUFFER,b.Cf[b.uc]),a.vertexAttribPointer(c.Zc,2,a.FLOAT,!1,0,0))};g.prototype.Im=function(){var a,b,c=this.q.Je,f=this.j;a=this.N;c.kf&&this.q.Ad!==this.Vb&&(f.activeTexture(f.TEXTURE1),f.bindTexture(f.TEXTURE_2D,this.Vb),this.q.Ad=this.Vb,f.activeTexture(f.TEXTURE0));c.Vh&&f.uniform1f(c.Vh,a[0]);c.Uh&&f.uniform1f(c.Uh,a[1]);c.Dd&&f.uniform2f(c.Dd,a[2],a[3]);c.Cd&&f.uniform2f(c.Cd,a[4],a[5]);c.jf&&f.uniform1f(c.jf,a[6]);c.hf&&f.uniform1f(c.hf,
a[7]);c.lf&&f.uniform2f(c.lf,a[8],a[9]);c.Wh&&f.uniform1f(c.Wh,N()/1E3);if(c.B.length)for(a=0,b=c.B.length;a<b;a++)f.uniform1f(c.B[a][1],this.dl[a])};k.prototype.Tb=function(){this.sc===this.Qc.length&&this.Qc.push(new g(0,this));return this.Qc[this.sc++]};k.prototype.Tc=function(){if(0!==this.sc&&!this.j.isContextLost()){var a=this.j;0<this.li&&(a.bindBuffer(a.ARRAY_BUFFER,this.ki),a.bufferData(a.ARRAY_BUFFER,this.Bo.subarray(0,this.li),a.STREAM_DRAW),b&&0<=b.zb&&"<point>"===b.name&&a.vertexAttribPointer(b.zb,
4,a.FLOAT,!1,0,0));if(0<this.oc){var b=this.Je;a.bindBuffer(a.ARRAY_BUFFER,this.Hf[this.uc]);a.bufferData(a.ARRAY_BUFFER,this.Oi.subarray(0,this.oc),a.STREAM_DRAW);b&&0<=b.zb&&"<point>"!==b.name&&a.vertexAttribPointer(b.zb,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Cf[this.uc]);a.bufferData(a.ARRAY_BUFFER,this.Gi.subarray(0,this.oc),a.STREAM_DRAW);b&&0<=b.Zc&&"<point>"!==b.name&&a.vertexAttribPointer(b.Zc,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.sc;a<b;a++)switch(c=this.Qc[a],c.type){case 1:c.Dm();
break;case 2:c.Jm();break;case 3:c.Gm();break;case 4:c.Fm();break;case 5:c.Lm();break;case 6:c.Em();break;case 7:c.Bm();break;case 8:c.Cm();break;case 9:c.Hm();break;case 10:c.Im();break;case 11:c.Km()}this.li=this.oc=this.sc=0;this.Xa=!1;this.uc++;4<=this.uc&&(this.uc=0)}};k.prototype.ne=function(a){if(a!==this.jk){var b=this.Tb();b.type=3;this.jk=b.Kk=a;this.Xa=!1}};k.prototype.mb=function(a){if(a!==this.Xc){var b=this.Tb();b.type=2;this.Xc=b.Vb=a;this.Xa=!1}};k.prototype.gd=function(a,b){if(a!==
this.kk||b!==this.hk){var c=this.Tb();c.type=4;c.Fb=a;c.cc=b;this.kk=a;this.hk=b;this.Xa=!1}};k.prototype.al=function(){this.gd(this.j.ONE,this.j.ONE_MINUS_SRC_ALPHA)};k.prototype.ug=function(a,b,c,f,d,g,n,l){15992<=this.oc&&this.Tc();var e=this.oc,t=this.Oi,u=this.Gi;if(this.Xa)this.Qc[this.sc-1].cc+=6;else{var m=this.Tb();m.type=1;m.Fb=3*(e/4);m.cc=6;this.Xa=!0}t[e]=a;u[e++]=0;t[e]=b;u[e++]=0;t[e]=c;u[e++]=1;t[e]=f;u[e++]=0;t[e]=d;u[e++]=1;t[e]=g;u[e++]=1;t[e]=n;u[e++]=0;t[e]=l;u[e++]=1;this.oc=
e};k.prototype.ed=function(a,b,c,d,h,g,n,l,e){15992<=this.oc&&this.Tc();var t=this.oc,u=this.Oi,m=this.Gi;if(this.Xa)this.Qc[this.sc-1].cc+=6;else{var r=this.Tb();r.type=1;r.Fb=3*(t/4);r.cc=6;this.Xa=!0}var r=e.left,y=e.top,B=e.right;e=e.bottom;u[t]=a;m[t++]=r;u[t]=b;m[t++]=y;u[t]=c;m[t++]=B;u[t]=d;m[t++]=y;u[t]=h;m[t++]=B;u[t]=g;m[t++]=e;u[t]=n;m[t++]=r;u[t]=l;m[t++]=e;this.oc=t};k.prototype.kc=function(a){if(this.bf!==a){if(!this.ma[a]){if(0===this.bf)return;a=0}var b=this.Tb();b.type=9;this.bf=
b.Fb=a;this.Xa=!1}};k.prototype.tf=function(a){a=this.ma[a];return!(!a.Dd&&!a.Cd)};k.prototype.mi=function(a){a=this.ma[a];return!!(a.Dd||a.Cd||a.wj)};k.prototype.Ho=function(a){a=this.ma[a];return 0!==a.oh||0!==a.ph};k.prototype.Bn=function(a){return this.ma[a].oh};k.prototype.Cn=function(a){return this.ma[a].ph};k.prototype.Dn=function(a,b){return this.ma[a].B[b][2]};k.prototype.sg=function(a){return this.ma[a].fj};k.prototype.oe=function(a,b,c,d,h,g,n,l,e,t,u,m){var r=this.ma[this.bf],y,B;if(r.Wn||
m.length){y=this.Tb();y.type=10;y.N?Kb(this.Ab,y.N):y.N=Jb();B=y.N;B[0]=b;B[1]=c;B[2]=d;B[3]=h;B[4]=g;B[5]=n;B[6]=l;B[7]=e;B[8]=t;B[9]=u;y.Vb=r.kf?a:null;if(m.length)for(c=y.dl,c.length=m.length,a=0,b=m.length;a<b;a++)c[a]=m[a];this.Xa=!1}};k.prototype.clear=function(a,b,c,d){var h=this.Tb();h.type=7;h.Fb=0;h.N||(h.N=Jb());h.N[0]=a;h.N[1]=b;h.N[2]=c;h.N[3]=d;this.Xa=!1};k.prototype.clearRect=function(a,b,c,d){if(!(0>c||0>d)){var h=this.Tb();h.type=7;h.Fb=1;h.N||(h.N=Jb());h.N[0]=a;h.N[1]=b;h.N[2]=
c;h.N[3]=d;this.Xa=!1}};k.prototype.Go=function(){this.Tc();this.j.flush()};var l=[],d={};k.prototype.ok=function(a,b,c){var f;f=!1;b=!!b;var h=a.src+","+f+","+b+(f?",undefined":""),g=null;if("undefined"!==typeof a.src&&d.hasOwnProperty(h))return g=d[h],g.Jf++,g;this.Tc();var n=this.j,k=ha(a.width)&&ha(a.height),g=n.createTexture();n.bindTexture(n.TEXTURE_2D,g);n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var e=n.RGBA,t=n.RGBA,u=n.UNSIGNED_BYTE;if(c&&!this.zd)switch(c){case 1:t=e=n.RGB;break;
case 2:u=n.UNSIGNED_SHORT_4_4_4_4;break;case 3:u=n.UNSIGNED_SHORT_5_5_5_1;break;case 4:t=e=n.RGB,u=n.UNSIGNED_SHORT_5_6_5}if(!k&&f){c=document.createElement("canvas");c.width=ia(a.width);c.height=ia(a.height);var m=c.getContext("2d");m.webkitImageSmoothingEnabled=b;m.mozImageSmoothingEnabled=b;m.msImageSmoothingEnabled=b;m.imageSmoothingEnabled=b;m.drawImage(a,0,0,a.width,a.height,0,0,c.width,c.height);n.texImage2D(n.TEXTURE_2D,0,e,t,u,c)}else n.texImage2D(n.TEXTURE_2D,0,e,t,u,a);f?(n.texParameteri(n.TEXTURE_2D,
n.TEXTURE_WRAP_S,n.REPEAT),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.REPEAT)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE));b?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),k&&this.Cj?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR_MIPMAP_LINEAR),n.generateMipmap(n.TEXTURE_2D)):n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,
n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.NEAREST));n.bindTexture(n.TEXTURE_2D,null);this.Xc=null;g.Ee=a.width;g.De=a.height;g.Jf=1;g.pj=h;l.push(g);return d[h]=g};k.prototype.tc=function(a,b,c,d){this.Tc();var h=this.j;this.zd&&(d=!1);var g=h.createTexture();h.bindTexture(h.TEXTURE_2D,g);h.texImage2D(h.TEXTURE_2D,0,h.RGBA,a,b,0,h.RGBA,d?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,null);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,
h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,c?h.LINEAR:h.NEAREST);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,c?h.LINEAR:h.NEAREST);h.bindTexture(h.TEXTURE_2D,null);this.Xc=null;g.Ee=a;g.De=b;l.push(g);return g};k.prototype.kp=function(a,b,c){this.Tc();var d=this.j;this.zd&&(c=!1);d.bindTexture(d.TEXTURE_2D,b);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a);d.bindTexture(d.TEXTURE_2D,
null);this.Xc=null};k.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Jf&&1<a.Jf?a.Jf--:(this.Tc(),a===this.Xc&&(this.j.bindTexture(this.j.TEXTURE_2D,null),this.Xc=null),a===this.Ad&&(this.j.activeTexture(this.j.TEXTURE1),this.j.bindTexture(this.j.TEXTURE_2D,null),this.j.activeTexture(this.j.TEXTURE0),this.Ad=null),ua(l,a),"undefined"!==typeof a.pj&&delete d[a.pj],this.j.deleteTexture(a)))};k.prototype.jc=function(a){if(a!==this.Wk){var b=this.Tb();b.type=6;this.Wk=b.Vb=a;this.Xa=!1}};
Ta=k})();
(function(){function k(e){if(e&&(e.getContext||e.dc)&&!e.c2runtime){e.c2runtime=this;var a=this;this.Ih=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk);this.ec=!this.Ih&&"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2isphonegap&&window.c2isphonegap;this.Ec=!!e.dc;this.We="undefined"!==typeof window.AppMobi||
this.Ec;this.xb=!!window.c2cocoonjs;this.Fc=!!window.c2ejecta;this.xb&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Fc&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.ga=this.Ec||this.xb||this.Fc;this.zd=
/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent);this.ak=/tizen/i.test(navigator.userAgent);this.$j=/android/i.test(navigator.userAgent)&&!this.ak&&!this.zd;this.Oh=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.zd;this.fk=/ipad/i.test(navigator.userAgent);this.ek=this.Oh||this.fk||this.Fc;this.mo=this.Oh&&/os\s6/i.test(navigator.userAgent);this.ag=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent);
this.$n=/amazonwebappplatform/i.test(navigator.userAgent);this.eo=/firefox/i.test(navigator.userAgent);this.ho=/safari/i.test(navigator.userAgent)&&!this.ag&&!this.zd;this.Vc="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);this.jo=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.ko=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Mh=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);
this.ck=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.bk=this.jo||this.ko||this.ck;this.bo=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.ao=this.$j&&!this.ag&&!this.eo&&!this.$n&&!this.ga;this.devicePixelRatio=1;this.yb=this.ec||this.Ih||this.We||this.xb||this.$j||this.ek||this.Mh||this.ck||this.bo||this.ak||this.Fc;this.yb||(this.yb=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));
"undefined"===typeof cr_is_preview||this.Vc||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.Vc=!0);this.co="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=e;this.sj=document.getElementById("c2canvasdiv");this.O=this.q=this.j=null;this.sh="";this.Rf=!1;this.Dk=this.Ek=0;this.canvas.oncontextmenu=function(e){e.preventDefault&&e.preventDefault();return!1};this.canvas.onselectstart=function(e){e.preventDefault&&e.preventDefault();
return!1};this.Ec&&(window.c2runtime=this);this.Vc&&(window.ondragover=function(e){e.preventDefault();return!1},window.ondrop=function(e){e.preventDefault();return!1},require("nw.gui").App.clearCache());this.width=e.width;this.height=e.height;this.F=this.width;this.D=this.height;this.Mf=this.width;this.Lf=this.height;this.df=window.innerWidth;this.cf=window.innerHeight;this.R=!0;this.Ye=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.k=[];this.ba=[];this.Sh=
{};this.Sb=[];this.mh={};this.zc=[];this.ze=[];this.Mg=[];this.gm=[];this.hm=[];this.Yb=new fa;this.Jh=!1;this.Gc=0;this.Lh=!1;this.Ua=[];this.Ic=this.Ja=this.jg=this.Ci="";this.Af=this.gl=!1;this.fh=this.mf=this.Sc=this.Td=0;this.Df=1;this.be=new Ka;this.eg=0;this.uk=!0;this.ng=this.Tf=this.nh=this.Kc=this.ef=this.rh=0;this.Fe=null;this.Aj=[];this.lh=[];this.Pf=-1;this.Xh=[[]];this.Ki=this.mg=0;this.oi(null);this.Ne=this.Ak=this.of=0;this.Eg=[];this.Ig=this.vg=-1;this.$e=!0;this.lg=0;this.Xe=!1;
this.Vo=0;this.Ce=null;this.Un=!1;this.Ph=0;this.Ia=this.Xd=this.qi=!1;this.Ck=new fa;this.ai=new fa;this.bi=new fa;this.Jo=[];new Ma([]);new Ma([]);this.Qd=[];this.Yf={};this.Sd={};this.Pd={};this.ye={};this.nj={};this.nk=this.ig=this.$a=this.lb=this.mk=this.hg=this.J=null;this.ve=this.Nh=!1;this.uh=[null,null];this.ud=0;this.bd={};this.Ag=this.de=null;this.load();this.devicePixelRatio=(this.Zd=(!this.ga||this.Fc)&&this.hp&&!this.ao)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||
window.msDevicePixelRatio||1:1;this.Aa();var b,m=this.Sg&&!(this.Vc||this.bk||this.Mh||this.Ih);0<this.Oa&&this.setSize(window.innerWidth,window.innerHeight,!0);try{this.Om&&(this.xb||this.Fc||!this.ga)&&(b={alpha:m,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.j=e.getContext("webgl",b)||e.getContext("experimental-webgl",b))}catch(c){}if(this.j){this.ga||(this.ua=document.createElement("canvas"),jQuery(this.ua).appendTo(this.canvas.parentNode),this.ua.oncontextmenu=w(!1),this.ua.onselectstart=
w(!1),this.ua.width=this.Mf,this.ua.height=this.Lf,jQuery(this.ua).css({width:this.Mf+"px",height:this.Lf+"px"}),this.Qk(),this.ji=this.ua.getContext("2d"));this.q=new Ta(this.j,this.yb);this.q.pe(e.width,e.height);this.q.Cj=0!==this.Mm;this.O=null;this.canvas.addEventListener("webglcontextlost",function(e){e.preventDefault();a.uo();console.log("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.q.Wj();a.q.pe(a.q.width,
a.q.height,!0);a.lb=null;a.$a=null;a.uh[0]=null;a.uh[1]=null;a.vo();a.R=!0;console.log("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);var d,f,s,h,n,g;e=0;for(b=this.k.length;e<b;e++)for(f=this.k[e],m=0,d=f.A.length;m<d;m++)h=f.A[m],h.xa=this.q.zh(h.id),this.ve=this.ve||this.q.tf(h.xa);e=0;for(b=this.Sb.length;e<b;e++){n=this.Sb[e];m=0;for(d=n.A.length;m<d;m++)h=n.A[m],h.xa=this.q.zh(h.id);m=0;for(d=n.I.length;m<d;m++)for(g=n.I[m],f=0,s=g.A.length;f<s;f++)h=g.A[f],h.xa=this.q.zh(h.id),
this.ve=this.ve||this.q.tf(h.xa)}}else{if(0<this.Oa&&this.Ec){this.canvas=null;document.oncontextmenu=w(!1);document.onselectstart=w(!1);this.O=AppMobi.canvas.getContext("2d");try{this.O.samplingMode=this.M?"smooth":"sharp",this.O.globalScale=1,this.O.HTML5CompatibilityMode=!0,this.O.imageSmoothingEnabled=this.M}catch(l){}0!==this.width&&0!==this.height&&(this.O.width=this.width,this.O.height=this.height)}this.O||(b=this.xb?{antialias:!!this.M,alpha:m}:{alpha:m},this.O=e.getContext("2d",b),this.O.webkitImageSmoothingEnabled=
this.M,this.O.mozImageSmoothingEnabled=this.M,this.O.msImageSmoothingEnabled=this.M,this.O.imageSmoothingEnabled=this.M);this.ji=this.ua=null}this.Hg=function(){a.Id(!1)};window==window.top||this.ga||this.bk||this.Mh||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.xb&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&
(z("Reloading for continuous preview"),this.jg="__c2_continuouspreview",this.Af=!0),this.Ao&&!this.yb&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));e=function(e){Sa(e)&&document.activeElement&&document.activeElement.blur&&document.activeElement.blur()};window.navigator.pointerEnabled?document.addEventListener("pointerdown",e):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",e):document.addEventListener("touchstart",
e);0===this.Oa&&this.Zd&&1<this.devicePixelRatio&&this.setSize(this.qa,this.pa,!0);this.sl();this.Rn();this.go();this.Z={}}}function p(e){e.target.result.createObjectStore("saves",{keyPath:"slot"})}function g(e,a,b,m){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=p;c.onerror=m;c.onsuccess=function(c){c=c.target.result;c.onerror=m;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:e,data:a}).onsuccess=b}}function l(e,a,b){var m=indexedDB.open("_C2SaveStates");m.onupgradeneeded=
p;m.onerror=b;m.onsuccess=function(m){m=m.target.result;m.onerror=b;var c=m.transaction(["saves"]).objectStore("saves").get(e);c.onsuccess=function(){c.result?a(c.result.data):a(null)}}}function d(){z("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+="?continuous"}function a(e){var a,b={};for(a in e)!e.hasOwnProperty(a)||e[a]instanceof fa||e[a]&&"undefined"!==typeof e[a].yq||(b[a]=
e[a]);return b}k.prototype.setSize=function(e,a,b){var m=0,c=0,d=0,f=0,f=0,s=this.mo&&this.ho&&!navigator.standalone&&!this.ga&&!this.ec;s&&(a+=60);if(this.df!==e||this.cf!==a||b){this.df=e;this.cf=a;var h=this.Oa,n=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Xe)&&!this.ec;if(n||0!==this.Oa||b)n&&0<this.ud&&(h=this.ud),b=this.devicePixelRatio,4<=h?(d=this.qa/this.pa,e/a>d?(d*=a,5===h?(f=d*b/this.qa,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/
f)),d=this.qa*f/b,f=this.pa*f/b,m=(e-d)/2,c=(a-f)/2,e=d,a=f):(m=(e-d)/2,e=d)):(f=e/d,5===h?(f=f*b/this.pa,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),d=this.qa*f/b,f=this.pa*f/b,m=(e-d)/2,c=(a-f)/2,e=d):c=(a-f)/2,a=f),n&&!this.Vc&&(c=m=0)):this.Vc&&this.Xe&&0===this.Jj&&(m=Math.floor((e-this.qa)/2),c=Math.floor((a-this.pa)/2),e=this.qa,a=this.pa),2>h&&(this.Be=b),this.Zd&&this.fk&&1<b&&(1024<=e&&(e=1023),1024<=a&&(a=1023)),this.Mf=Math.round(e),this.Lf=Math.round(a),this.width=Math.round(e*b),this.height=
Math.round(a*b),this.R=!0,this.Bl?(this.F=this.width,this.D=this.height,this.wb=!0):this.width<this.qa&&this.height<this.pa||1===h?(this.F=this.width,this.D=this.height,this.wb=!0):(this.F=this.qa,this.D=this.pa,this.wb=!1,2===h?(d=this.qa/this.pa,h=this.df/this.cf,h<d?this.F=this.D*h:h>d&&(this.D=this.F/h)):3===h&&(d=this.qa/this.pa,h=this.df/this.cf,h>d?this.F=this.D*h:h<d&&(this.D=this.F/h))),this.sj&&!this.ga&&(jQuery(this.sj).css({width:Math.round(e)+"px",height:Math.round(a)+"px","margin-left":Math.floor(m)+
"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(e)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(e*b),this.canvas.height=Math.round(a*b),this.Fc?(this.canvas.style.left=Math.floor(m)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(e)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Zd&&!this.ga&&jQuery(this.canvas).css({width:Math.round(e)+"px",height:Math.round(a)+
"px"})),this.ua&&(this.ua.width=Math.round(e),this.ua.height=Math.round(a),jQuery(this.ua).css({width:Math.round(e)+"px",height:Math.round(a)+"px"})),this.q&&this.q.pe(Math.round(e*b),Math.round(a*b)),this.Ec&&this.O&&(this.O.width=Math.round(e),this.O.height=Math.round(a)),this.O&&(this.O.webkitImageSmoothingEnabled=this.M,this.O.mozImageSmoothingEnabled=this.M,this.O.msImageSmoothingEnabled=this.M,this.O.imageSmoothingEnabled=this.M),this.sl(),this.ga||!s&&!this.Oh||window.setTimeout(function(){window.scrollTo(0,
1)},100)}};k.prototype.sl=function(){if(this.jm&&0!==this.ii){var e="portrait";2===this.ii&&(e="landscape");screen.lockOrientation?screen.lockOrientation(e):screen.webkitLockOrientation?screen.webkitLockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):screen.msLockOrientation&&screen.msLockOrientation(e)}};k.prototype.uo=function(){this.Nh=!0;var e,a,b;e=0;for(a=this.k.length;e<a;e++)b=this.k[e],b.di&&b.di()};k.prototype.vo=function(){this.Nh=!1;var e,a,b;e=0;for(a=this.k.length;e<
a;e++)b=this.k[e],b.Hk&&b.Hk()};k.prototype.Qk=function(){if(!this.ga){var e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Xe)&&!this.ec?jQuery(this.canvas).offset():jQuery(this.canvas).position();e.position="absolute";jQuery(this.ua).css(e)}};var b=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;k.prototype.setSuspended=function(e){var a;
if(e&&!this.Ye)for(z("[Construct 2] Suspending"),this.Ye=!0,-1!==this.vg&&b&&b(this.vg),-1!==this.Ig&&clearTimeout(this.Ig),e=0,a=this.Eg.length;e<a;e++)this.Eg[e](!0);else if(!e&&this.Ye){z("[Construct 2] Resuming");this.Ye=!1;this.eg=N();this.ef=N();e=this.mf=this.Tf=0;for(a=this.Eg.length;e<a;e++)this.Eg[e](!1);this.Id(!1)}};k.prototype.load=function(){var e=Ob();this.name=e[0];this.Ij=e[1];this.Oa=e[12];this.Jj=e[12];this.qa=e[10];this.pa=e[11];this.Lk=this.qa/2;this.Mk=this.pa/2;this.ga&&!this.Fc&&
(4<=e[12]||0===e[12])&&(z("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Jj=this.Oa=3);this.Mi=e[18];this.gf=e[19];0===this.gf&&(this.de=new Image,this.de.src="loading-logo.png");this.of=e[21];this.lc=new S(this);var a,b,m,c,d,f,s,h,n;a=0;for(b=e[2].length;a<b;a++)s=e[2][a],Ua(s),n=new s[0](this),n.zg=s[1],n.Wc=s[2],n.xk=s[9],n.oa&&n.oa(),this.plugins.push(n);e=Ob();a=0;for(b=e[3].length;a<b;a++){s=e[3][a];d=s[1];n=null;m=
0;for(c=this.plugins.length;m<c;m++)if(this.plugins[m]instanceof d){n=this.plugins[m];break}var g=new n.pc(n);g.name=s[0];g.H=s[2];g.Gh=s[3].slice(0);g.jp=s[3].length;g.km=s[4];g.rn=s[5];g.G=s[11];g.H?(g.vk=[],g.Ac=this.Ne++,g.U=null):(g.vk=null,g.Ac=-1,g.U=[]);g.Qf=null;g.Vd=null;g.Ej=null;g.Rb=!1;g.Ta=null;s[6]?(g.ll=s[6][0],g.ml=s[6][1],g.Xo=s[6][2]):(g.ll=null,g.ml=0,g.Xo=0);g.Sa=s[7]?s[7]:null;g.index=a;g.d=[];g.Of=[];g.kd=[new Va(g)];g.xc=0;g.Zb=null;g.ym=0;g.re=!0;g.Ng=Wa;g.vn=Xa;g.An=Ya;g.S=
Za;g.vf=$a;g.ni=ab;g.ke=bb;g.Uf=cb;g.vh=db;g.xh=eb;g.rc=fb;g.Pj=gb;g.tj=new Na(this.qa,this.pa);g.gj=!0;g.hj=!1;g.Z={};g.toString=hb;g.ba=[];m=0;for(c=s[8].length;m<c;m++){h=s[8][m];var l=h[1],k=null;d=0;for(f=this.ba.length;d<f;d++)if(this.ba[d]instanceof l){k=this.ba[d];break}k||(k=new l(this),k.yk=[],k.$h=new fa,k.oa&&k.oa(),this.ba.push(k));-1===k.yk.indexOf(g)&&k.yk.push(g);d=new k.pc(k,g);d.name=h[0];d.G=h[2];d.oa();g.ba.push(d)}g.global=s[9];g.Kh=s[10];g.A=[];m=0;for(c=s[12].length;m<c;m++)g.A.push({id:s[12][m][0],
name:s[12][m][1],xa:-1,hb:!0,index:m});g.Mq=s[13];this.Mi&&!g.H&&!g.Kh&&n.Wc||g.oa();g.name&&(this.types[g.name]=g);this.k.push(g);n.zg&&(m=new n.nb(g),m.uid=this.of++,m.Uk=this.Ak++,m.wd=0,m.Se=ib,m.toString=jb,m.Da=s[14],m.oa(),g.d.push(m),this.bd[m.uid.toString()]=m)}a=0;for(b=e[4].length;a<b;a++)for(d=e[4][a],f=this.k[d[0]],m=1,c=d.length;m<c;m++)s=this.k[d[m]],s.U.push(f),f.vk.push(s);a=0;for(b=e[26].length;a<b;a++){d=e[26][a];f=[];m=0;for(c=d.length;m<c;m++)f.push(this.k[d[m]]);m=0;for(c=f.length;m<
c;m++)f[m].Rb=!0,f[m].Ta=f}if(0<this.Ne)for(a=0,b=this.k.length;a<b;a++)if(s=this.k[a],!s.H&&s.U.length){s.Qf=Array(this.Ne);s.Vd=Array(this.Ne);s.Ej=Array(this.Ne);g=[];m=k=l=h=0;for(c=s.U.length;m<c;m++)for(n=s.U[m],s.Qf[n.Ac]=h,h+=n.jp,s.Vd[n.Ac]=l,l+=n.km,s.Ej[n.Ac]=k,k+=n.rn,d=0,f=n.A.length;d<f;d++)g.push(qa({},n.A[d]));s.A=g.concat(s.A);m=0;for(c=s.A.length;m<c;m++)s.A[m].index=m}a=0;for(b=e[5].length;a<b;a++)s=e[5][a],m=new kb(this,s),this.Sh[m.name]=m,this.Sb.push(m);a=0;for(b=e[6].length;a<
b;a++)s=e[6][a],m=new lb(this,s),this.mh[m.name]=m,this.zc.push(m);a=0;for(b=this.zc.length;a<b;a++)this.zc[a].$();a=0;for(b=this.zc.length;a<b;a++)this.zc[a].zl();a=0;for(b=this.Mg.length;a<b;a++)this.Mg[a].$();this.Mg.length=0;this.im=e[7];this.dd=e[9];this.Be=1;this.Om=e[13];this.M=e[14];this.Sg=e[15];this.hp=e[17];this.ii=e[20];this.jm=0<this.ii;this.Ao=e[22];this.wb=this.Bl=e[23];this.Mm=e[24];this.Fo=e[25];this.Bg=Date.now()};var c=!1;k.prototype.lp=function(e){e.onerror=function(a){c=e.mm=
!0;console&&console.error&&console.error("Error loading image '"+e.src+"': ",a)};this.ze.push(e)};k.prototype.qn=function(e){var a,b;a=0;for(b=this.ze.length;a<b;a++)if(this.ze[a].vm===e)return this.ze[a];return null};var f=0,h=!1;k.prototype.Rn=function(){this.Ce&&(f=this.Ce.Jq(this.im))};k.prototype.ij=function(){var e=f,a=0,b=0,m=!0,c,d,b=0;for(c=this.ze.length;b<c;b++){d=this.ze[b];var n=d.um;if(!n||0>=n)n=5E4;e+=n;!d.complete&&!d.loaded||d.mm?m=!1:a+=n}m&&this.Fo&&this.Ce&&(h||(this.Ce.Kq(),
h=!0),b=this.Ce.Eq(),a+=b,b<f&&(m=!1));this.Gd=0==e?0:a/e;return m};k.prototype.go=function(){if(this.O||this.q){var e=this.O||this.ji;this.ua&&this.Qk();this.Gd=0;this.lk=-1;if(this.ij())this.Sn();else{var a=Date.now()-this.Bg;if(e){var b=this.width,m=this.height,d=this.devicePixelRatio;this.ua&&(b=this.Mf,m=this.Lf,d=1);if(3!==this.gf&&(this.xb||500<=a&&this.lk!=this.Gd)){e.clearRect(0,0,b,m);var a=b/2,m=m/2,b=0===this.gf&&this.de.complete,f=40*d,h=0,s=80*d,n;b&&(s=this.de.width*d,n=this.de.height*
d,f=s/2,h=n/2,e.drawImage(this.de,K(a-f),K(m-h),s,n));1>=this.gf?(a=K(a-f)+0.5,m=K(m+(h+(b?12*d:0)))+0.5,e.fillStyle=c?"red":"DodgerBlue",e.fillRect(a,m,Math.floor(s*this.Gd),6*d),e.strokeStyle="black",e.strokeRect(a,m,s,6*d),e.strokeStyle="white",e.strokeRect(a-1*d,m-1*d,s+2*d,8*d)):2===this.gf&&(e.font=this.Fc?"12pt ArialMT":"12pt Arial",e.fillStyle=c?"#f00":"#999",e.Lq="middle",d=Math.round(100*this.Gd)+"%",b=e.measureText?e.measureText(d):null,e.fillText(d,a-(b?b.width:0)/2,m))}this.lk=this.Gd}setTimeout(function(e){return function(){e.go()}}(this),
this.xb?10:100)}}};k.prototype.Sn=function(){this.ua&&(this.canvas.parentNode.removeChild(this.ua),this.ua=this.ji=null);this.Bg=Date.now();this.ef=N();var e,a,b;if(this.Mi)for(e=0,a=this.k.length;e<a;e++)b=this.k[e],b.H||b.Kh||!b.ja.Wc||b.oa();else this.$e=!1;e=0;for(a=this.Sb.length;e<a;e++)this.Sb[e].wm();2<=this.Oa&&(e=this.qa/this.pa,a=this.width/this.height,this.Be=2!==this.Oa&&a>e||2===this.Oa&&a<e?this.height/this.pa:this.width/this.qa);this.Ij?this.Sh[this.Ij].Ei():this.Sb[0].Ei();this.Mi||
(this.lg=1,this.trigger(S.prototype.e.Si,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();e=0;for(a=this.k.length;e<a;e++)b=this.k[e],b.to&&b.to();this.Id(!1);this.Ec&&AppMobi.webview.execute("onGameReady();")};var v=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;k.prototype.Id=function(e){if(this.J){var a=N();if(this.Un&&this.qi&&29>a-this.Ph)this.qi=
!1,this.Ph=a,v?this.vg=v(this.Hg,this.canvas):this.Ig=setTimeout(this.Hg,this.yb?1:16);else{this.qi=!0;this.Ph=a;var b=this.Oa,m=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.ec;(m||this.Xe)&&0<this.ud&&(b=this.ud);if(0<b&&(!this.ek||window.self!==window.top)){var b=window.innerWidth,c=window.innerHeight;this.df===b&&this.cf===c||this.setSize(b,c)}this.ga||(m?(this.Rf||(this.sh=jQuery(this.canvas).css("margin")||"0",this.Rf=!0),this.ag||
this.Vc||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.Rf?(this.ag||this.Vc||jQuery(this.canvas).css("margin",this.sh),this.sh="",this.Rf=!1,0===this.Oa&&this.setSize(Math.round(this.Ek/this.devicePixelRatio),Math.round(this.Dk/this.devicePixelRatio),!0)):(this.Ek=this.width,this.Dk=this.height));this.$e&&(m=this.ij(),this.lg=this.Gd,m&&(this.$e=
!1,this.Gd=1,this.trigger(S.prototype.e.Si,null)));this.qo();!this.R&&!this.xb||this.Nh||this.Af||e||(this.R=!1,this.q?this.Ob():this.yc(),this.Ag&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.Ag[0],this.Ag[1]),this.trigger(S.prototype.e.Kl,null)),this.Ag=null));this.Fq||(this.Kc++,this.nh++,this.Tf++);this.mf+=N()-a;this.Ye||e||(v?this.vg=v(this.Hg,this.canvas):this.Ig=setTimeout(this.Hg,this.yb?1:16))}}};k.prototype.qo=function(){var e,a,b,m,c,d,f,h,n;e=N();1E3<=e-this.ef&&(this.ef+=
1E3,this.rh=this.Tf,this.Tf=0,this.fh=this.mf,this.mf=0);this.uk&&(0!==this.eg&&(a=e-this.eg,0!==a||this.co?(this.Sc=a/1E3,0.5<this.Sc?this.Sc=0:0.1<this.Sc&&(this.Sc=0.1)):(10<=this.Pq&&(this.uk=!1),this.Sc=1/60)),this.eg=e);this.Td=this.Sc*this.Df;this.be.add(this.Td);e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Xe)&&!this.ec;2<=this.Oa||e&&0<this.ud?(a=this.qa/this.pa,b=this.width/this.height,m=this.Oa,e&&0<this.ud&&(m=this.ud),
this.Be=2!==m&&b>a||2===m&&b<a?this.height/this.pa:this.width/this.qa,this.J&&(this.J.Zk(this.J.scrollX),this.J.$k(this.J.scrollY))):this.Be=this.Zd?this.devicePixelRatio:1;this.Aa();this.Gc++;this.lc.Lo();this.Gc--;this.Aa();this.Gc++;b=this.Ck.we();e=0;for(a=b.length;e<a;e++)b[e].Gq();e=0;for(a=this.k.length;e<a;e++)if(f=this.k[e],!f.H&&(f.ba.length||f.U.length))for(b=0,m=f.d.length;b<m;b++)for(h=f.d[b],c=0,d=h.C.length;c<d;c++)h.C[c].Id();e=0;for(a=this.k.length;e<a;e++)if(f=this.k[e],!f.H&&(f.ba.length||
f.U.length))for(b=0,m=f.d.length;b<m;b++)for(h=f.d[b],c=0,d=h.C.length;c<d;c++)n=h.C[c],n.Eo&&n.Eo();b=this.ai.we();e=0;for(a=b.length;e<a;e++)b[e].Id();this.Gc--;this.Vn();for(e=0;this.Fe&&10>e++;)this.Bj(this.Fe);e=0;for(a=this.zc.length;e<a;e++)this.zc[e].Ch=!1;this.J.Le&&this.J.Le.la();this.Jo.length=0;this.Gc++;e=0;for(a=this.k.length;e<a;e++)if(f=this.k[e],!f.H&&(f.ba.length||f.U.length))for(b=0,m=f.d.length;b<m;b++)for(h=f.d[b],c=0,d=h.C.length;c<d;c++)n=h.C[c],n.Hi&&n.Hi();b=this.bi.we();
e=0;for(a=b.length;e<a;e++)b[e].Hi();this.Gc--};k.prototype.Bj=function(e){var a=this.J;this.J.Wo();var b,m,c,d,f,h,n;if(this.q)for(b=0,m=this.k.length;b<m;b++)f=this.k[b],f.H||!f.xl||f.global&&0!==f.d.length||-1!==e.Ve.indexOf(f)||f.xl();a==e&&(this.lc.fb.length=0);e.Ei();b=0;for(m=this.k.length;b<m;b++)if(f=this.k[b],f.global||f.ja.zg)for(e=0,a=f.d.length;e<a;e++)if(h=f.d[e],h.ci&&h.ci(),h.C)for(c=0,d=h.C.length;c<d;c++)n=h.C[c],n.ci&&n.ci();this.R=!0;this.Aa()};k.prototype.nl=function(e){this.ai.add(e)};
k.prototype.Yo=function(e){this.bi.add(e)};k.prototype.Nj=function(e){return e&&-1!==e.nf?this.Sc*e.nf:this.Td};k.prototype.yc=function(){this.J.yc(this.O);this.Ec&&this.O.present()};k.prototype.Ob=function(){this.J.Ob(this.q);this.q.Go()};k.prototype.Sj=function(e){e=e.toString();return this.bd.hasOwnProperty(e)?this.bd[e]:null};k.prototype.Ld=function(e){var a,b;if(!this.Yb.contains(e)){this.Yb.add(e);if(e.Rb)for(a=0,b=e.siblings.length;a<b;a++)this.Ld(e.siblings[a]);this.Jh&&this.Yb.xe.push(e);
this.Gc++;this.trigger(Object.getPrototypeOf(e.type.ja).e.Ml,e);this.Gc--}};k.prototype.Aa=function(){var e,a,b,m,c,d,f,h,n,g;this.Jh=!0;m=0;for(d=this.Ua.length;m<d;m++)for(e=this.Ua[m],a=e.type,a.d.push(e),c=0,f=a.U.length;c<f;c++)a.U[c].d.push(e),a.U[c].re=!0;this.Ua.length=0;d=this.Yb.we();for(m=0;m<d.length;m++){e=d[m];a=e.type;b=a.d;c=0;for(f=this.Aj.length;c<f;c++)this.Aj[c](e);ua(b,e);0===b.length&&(a.hj=!1);e.Kf&&a.tj.update(e,e.Kf,null);e.g&&(ra(e.g.d,e.kb()),e.g.gb=!0);c=0;for(f=a.U.length;c<
f;c++)ua(a.U[c].d,e),a.U[c].re=!0;if(e.C)for(c=0,f=e.C.length;c<f;c++)b=e.C[c],b.pg&&b.pg(),b.Rd.$h.remove(e);this.Ck.remove(e);this.ai.remove(e);this.bi.remove(e);c=0;for(f=this.lc.fb.length;c<f;c++)if(n=this.lc.fb[c],n.bb.hasOwnProperty(a.index)&&ua(n.bb[a.index].yd,e),!a.H)for(b=0,h=a.U.length;b<h;b++)g=a.U[b],n.bb.hasOwnProperty(g.index)&&ua(n.bb[g.index].yd,e);e.pg&&e.pg();this.bd.hasOwnProperty(e.uid.toString())&&delete this.bd[e.uid.toString()];this.ng--;64>a.Of.length&&a.Of.push(e);a.re=!0}this.Yb.Qb()||
(this.R=!0);this.Yb.clear();this.Jh=!1};var n=[];k.prototype.rd=function(e,a,b,m,c,d){var f,h,g,k;if(!e)return null;var l=this.k[e[1]],v=l.ja.Wc;if(this.$e&&v&&!l.Kh||v&&!this.q&&11===e[0][11])return null;var p=a;v||(a=null);var q;l.Of.length?(q=l.Of.pop(),q.Db=!0,l.ja.nb.call(q,l)):(q=new l.ja.nb(l),q.Db=!1);q.uid=b&&!d?e[2]:this.of++;this.bd[q.uid.toString()]=q;q.Uk=this.Ak++;q.wd=l.d.length;f=0;for(h=this.Ua.length;f<h;++f)this.Ua[f].type===l&&q.wd++;q.Se=ib;g=e[3];if(q.Db)Ja(q.Z);else{q.Z={};
if("undefined"!==typeof cr_is_preview)for(q.Zj=[],q.Zj.length=g.length,f=0,h=g.length;f<h;f++)q.Zj[f]=g[f][1];q.fa=[];q.fa.length=g.length}f=0;for(h=g.length;f<h;f++)q.fa[f]=g[f][0];if(v){var x=e[0];q.x=ga(m)?x[0]:m;q.y=ga(c)?x[1]:c;q.z=x[2];q.width=x[3];q.height=x[4];q.depth=x[5];q.i=x[6];q.opacity=x[7];q.Ya=x[8];q.Za=x[9];q.Ma=x[10];f=x[11];!this.q&&l.A.length&&(q.Ma=f);q.He=Oa(q.Ma);this.j&&Pa(q,q.Ma,this.j);if(q.Db){f=0;for(h=x[12].length;f<h;f++)for(g=0,k=x[12][f].length;g<k;g++)q.Y[f][g]=x[12][f][g];
q.Ha.set(0,0,0,0);q.Kf.set(0,0,-1,-1);q.qd.yg(q.Ha);q.Wg.length=0}else{q.Y=x[12].slice(0);f=0;for(h=q.Y.length;f<h;f++)q.Y[f]=x[12][f].slice(0);q.K=[];q.Oc=[];q.Oc.length=l.A.length;q.Ha=new oa(0,0,0,0);q.Kf=new oa(0,0,-1,-1);q.qd=new pa;q.Wg=[];q.wa=mb;q.xq=nb;q.Mb=ob;q.Ga=pb;q.Oq=qb;q.kb=rb}q.$o=!1;q.cp=0;q.bp=0;q.Zo=null;14===x.length&&(q.$o=!0,q.cp=x[13][0],q.bp=x[13][1],q.Zo=x[13][2]);f=0;for(h=l.A.length;f<h;f++)q.Oc[f]=!0;q.Mc=sb;q.Mc();q.Al=!!q.K.length;q.Vg=!0;q.ah=!0;l.gj=!0;q.visible=!0;
q.nf=-1;q.g=a;q.Kd=a.d.length;"undefined"===typeof q.Xb&&(q.Xb=null);this.R=q.Ge=!0}q.toString=jb;var G;f=n.length=0;for(h=l.U.length;f<h;f++)n.push.apply(n,l.U[f].ba);n.push.apply(n,l.ba);if(q.Db)for(f=0,h=n.length;f<h;f++){var C=n[f];G=q.C[f];G.Db=!0;C.Rd.nb.call(G,C,q);x=e[4][f];g=0;for(k=x.length;g<k;g++)G.Da[g]=x[g];G.oa();C.Rd.$h.add(q)}else for(q.C=[],f=0,h=n.length;f<h;f++)C=n[f],G=new C.Rd.nb(C,q),G.Db=!1,G.Da=e[4][f].slice(0),G.oa(),q.C.push(G),C.Rd.$h.add(q);x=e[5];if(q.Db)for(f=0,h=x.length;f<
h;f++)q.Da[f]=x[f];else q.Da=x.slice(0);this.Ua.push(q);a&&(a.d.push(q),1!==a.Bb||1!==a.Cb)&&(l.hj=!0);this.ng++;if(l.Rb){if(q.Rb=!0,q.Db?q.siblings.length=0:q.siblings=[],!b&&!d){f=0;for(h=l.Ta.length;f<h;f++)if(l.Ta[f]!==l){if(!l.Ta[f].Zb)return null;q.siblings.push(this.rd(l.Ta[f].Zb,p,!1,v?q.x:m,v?q.y:c,!0))}f=0;for(h=q.siblings.length;f<h;f++)for(q.siblings[f].siblings.push(q),g=0;g<h;g++)f!==g&&q.siblings[f].siblings.push(q.siblings[g])}}else q.Rb=!1,q.siblings=null;q.oa();f=0;for(h=q.C.length;f<
h;f++)q.C[f].Do&&q.C[f].Do();return q};k.prototype.Qe=function(e){var a,b;a=0;for(b=this.J.I.length;a<b;a++){var m=this.J.I[a];if(Ra(m.name,e))return m}return null};k.prototype.Cc=function(e){e=K(e);0>e&&(e=0);e>=this.J.I.length&&(e=this.J.I.length-1);return this.J.I[e]};k.prototype.eh=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].S().V=!0};k.prototype.vf=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].vf()};k.prototype.ni=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].ni()};k.prototype.ke=
function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].ke()};k.prototype.Bf=function(a,b,c){var m=a.S(),f,d,h,n,g,l;if(m.V)for(m.V=!1,f=m.d.length=0,n=a.d.length;f<n;f++)h=a.d[f],h.Ga(),g=h.g.ea(b,c,!0),l=h.g.ea(b,c,!1),h.Mb(g,l)&&m.d.push(h);else{f=d=0;for(n=m.d.length;f<n;f++)h=m.d[f],h.Ga(),g=h.g.ea(b,c,!0),l=h.g.ea(b,c,!1),h.Mb(g,l)&&(m.d[d]=m.d[f],d++);m.d.length=d}a.rc();return m.Bh()};new pa;new oa(0,0,0,0);k.prototype.tl=function(a,b){if(!b)return!1;var c,m,f,d,h;c=0;for(m=a.ba.length;c<m;c++)if(a.ba[c].Rd instanceof
b)return!0;if(!a.H)for(c=0,m=a.U.length;c<m;c++)for(h=a.U[c],f=0,d=h.ba.length;f<d;f++)if(h.ba[f].Rd instanceof b)return!0;return!1};k.prototype.ul=function(a){return this.tl(a,Gb.Sp)};k.prototype.Li=function(a){return this.tl(a,Gb.Tp)};var q=-1;k.prototype.trigger=function(a,b,c){if(!this.J)return!1;var m=this.J.Le;if(!m)return!1;var f=!1,d,h,n;q++;var g=m.jh;h=0;for(n=g.length;h<n;++h)d=this.ql(a,b,g[h],c),f=f||d;d=this.ql(a,b,m,c);q--;return f||d};k.prototype.ql=function(a,b,c,m){var f=!1,d,h,
n,g;if(b)for(n=this.Ji(a,b,b.type.name,c,m),f=f||n,g=b.type.U,d=0,h=g.length;d<h;++d)n=this.Ji(a,b,g[d].name,c,m),f=f||n;else n=this.Ji(a,b,"system",c,m),f=f||n;return f};k.prototype.Ji=function(a,b,c,m,f){var d,h=!1,n=!1,n="undefined"!==typeof f,g=(n?m.Gj:m.rl)[c];if(!g)return h;var l=null;m=0;for(d=g.length;m<d;++m)if(g[m].method==a){l=g[m].Me;break}if(!l)return h;a=n?l[f]:l;if(!a)return null;m=0;for(d=a.length;m<d;m++)f=a[m][0],n=a[m][1],n=this.on(b,c,f,n),h=h||n;return h};k.prototype.on=function(a,
b,c,m){var f,d,h=!1;this.Ki++;var n=this.Va().Nb;n&&this.vf(n.hd);var g=1<this.Ki;this.vf(c.hd);g&&this.Io();var l=this.oi(c);l.Nb=c;a&&(f=this.types[b].S(),f.V=!1,f.d.length=1,f.d[0]=a,this.types[b].rc());a=!0;if(c.parent){b=l.il;for(f=c.parent;f;)b.push(f),f=f.parent;b.reverse();f=0;for(d=b.length;f<d;f++)if(!b[f].No()){a=!1;break}}a&&(this.nh++,c.gc?c.Mo(m):c.la(),h=h||l.Bd);this.Pk();g&&this.Co();this.ke(c.hd);n&&this.ke(n.hd);0!==this.Gc||0!==q||this.Lh||this.Yb.Qb()&&!this.Ua.length||this.Aa();
this.Ki--;return h};k.prototype.un=function(){var a=this.Va();return a.Nb.Ba[a.Na]};k.prototype.Io=function(){this.mg++;this.mg>=this.Xh.length&&this.Xh.push([])};k.prototype.Co=function(){this.mg--};k.prototype.Mj=function(){return this.Xh[this.mg]};k.prototype.oi=function(a){this.Pf++;this.Pf>=this.lh.length&&this.lh.push(new tb);var b=this.Va();b.reset(a);return b};k.prototype.Pk=function(){this.Pf--};k.prototype.Va=function(){return this.lh[this.Pf]};k.prototype.Oj=function(a,b){for(var c,m,f,
d,h,n;b;){c=0;for(m=b.Gb.length;c<m;c++)if(n=b.Gb[c],n instanceof ub&&Ra(a,n.name))return n;b=b.parent}c=0;for(m=this.zc.length;c<m;c++)for(h=this.zc[c],f=0,d=h.Uc.length;f<d;f++)if(n=h.Uc[f],n instanceof ub&&Ra(a,n.name))return n;return null};k.prototype.Qj=function(a){var b,c;b=0;for(c=this.Sb.length;b<c;b++)if(this.Sb[b].G===a)return this.Sb[b];return null};k.prototype.Wf=function(a){var b,c;b=0;for(c=this.k.length;b<c;b++)if(this.k[b].G===a)return this.k[b];return null};k.prototype.wn=function(a){var b,
c;b=0;for(c=this.Qd.length;b<c;b++)if(this.Qd[b].G===a)return this.Qd[b];return null};k.prototype.Vn=function(){var a=this,b=this.Ci,c=this.Ic,m=this.jg,f=!1;this.gl&&(f=!0,b="__c2_continuouspreview",this.gl=!1);if(b.length){this.Aa();c=this.Ro();if(window.indexedDB&&!this.xb)g(b,c,function(){z("Saved state to IndexedDB storage ("+c.length+" bytes)");a.Ic=c;a.trigger(S.prototype.e.Qg,null);a.Ic="";f&&d()},function(m){try{localStorage.setItem("__c2save_"+b,c),z("Saved state to WebStorage ("+c.length+
" bytes)"),a.Ic=c,a.trigger(S.prototype.e.Qg,null),a.Ic="",f&&d()}catch(h){z("Failed to save game state: "+m+"; "+h)}});else try{localStorage.setItem("__c2save_"+b,c),z("Saved state to WebStorage ("+c.length+" bytes)"),a.Ic=c,this.trigger(S.prototype.e.Qg,null),a.Ic="",f&&d()}catch(h){z("Error saving to WebStorage: "+h)}this.Ja=this.jg=this.Ci=""}m.length&&(window.indexedDB&&!this.xb?l(m,function(b){b?(a.Ja=b,z("Loaded state from IndexedDB storage ("+a.Ja.length+" bytes)")):(a.Ja=localStorage.getItem("__c2save_"+
m)||"",z("Loaded state from WebStorage ("+a.Ja.length+" bytes)"));a.Af=!1;a.Ja.length||a.trigger(S.prototype.e.Pg,null)},function(){a.Ja=localStorage.getItem("__c2save_"+m)||"";z("Loaded state from WebStorage ("+a.Ja.length+" bytes)");a.Af=!1;a.Ja.length||a.trigger(S.prototype.e.Pg,null)}):(this.Ja=localStorage.getItem("__c2save_"+m)||"",z("Loaded state from WebStorage ("+this.Ja.length+" bytes)"),this.Af=!1,a.Ja.length||a.trigger(S.prototype.e.Pg,null)),this.Ci=this.jg="");this.Ja.length&&(this.Aa(),
this.oo(this.Ja),this.Ic=this.Ja,this.trigger(S.prototype.e.Tl,null),this.Ja=this.Ic="")};k.prototype.Ro=function(){var b,c,f,m,d,h,n,g={c2save:!0,version:1,rt:{time:this.be.Qa,timescale:this.Df,tickcount:this.Kc,execcount:this.nh,next_uid:this.of,running_layout:this.J.G,start_time_offset:Date.now()-this.Bg},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};b=0;for(c=this.k.length;b<c;b++)if(d=this.k[b],!d.H&&!this.ul(d)){h={instances:[]};Ia(d.Z)&&(h.ex=a(d.Z));f=0;for(m=d.d.length;f<
m;f++)h.instances.push(this.Bi(d.d[f]));g.types[d.G.toString()]=h}b=0;for(c=this.Sb.length;b<c;b++)f=this.Sb[b],g.layouts[f.G.toString()]=f.Ub();m=g.events.groups;b=0;for(c=this.Qd.length;b<c;b++)f=this.Qd[b],m[f.G.toString()]=this.Yf[f.Te].Xf;c=g.events.cnds;for(n in this.Sd)this.Sd.hasOwnProperty(n)&&(b=this.Sd[n],Ia(b.Z)&&(c[n]={ex:a(b.Z)}));c=g.events.acts;for(n in this.Pd)this.Pd.hasOwnProperty(n)&&(b=this.Pd[n],Ia(b.Z)&&(c[n]={ex:b.Z}));c=g.events.vars;for(n in this.ye)this.ye.hasOwnProperty(n)&&
(b=this.ye[n],b.bg||b.parent&&!b.Ze||(c[n]=b.data));g.system=this.lc.Ub();return JSON.stringify(g)};k.prototype.Vk=function(){var a,b,c,m,f,d;this.bd={};a=0;for(b=this.k.length;a<b;a++)if(c=this.k[a],!c.H)for(m=0,f=c.d.length;m<f;m++)d=c.d[m],this.bd[d.uid.toString()]=d};k.prototype.oo=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.be.reset();this.be.Qa=b.time;this.Df=b.timescale;this.Kc=b.tickcount;this.Bg=Date.now()-b.start_time_offset;var c=b.running_layout;if(c!==this.J.G)if(c=
this.Qj(c))this.Bj(c);else return;var m,f,d,h,n,g,l;g=a.types;for(f in g)if(g.hasOwnProperty(f)&&(h=this.Wf(parseInt(f,10)))&&!h.H&&!this.ul(h)){g[f].ex?h.Z=g[f].ex:Ja(h.Z);n=h.d;d=g[f].instances;c=0;for(m=ka(n.length,d.length);c<m;c++)this.kg(n[c],d[c]);c=d.length;for(m=n.length;c<m;c++)this.Ld(n[c]);c=n.length;for(m=d.length;c<m;c++){n=null;if(h.ja.Wc&&(n=this.J.Vf(d[c].w.l),!n))continue;n=this.rd(h.Zb,n,!1,0,0,!0);this.kg(n,d[c])}h.re=!0}this.Aa();this.Vk();m=a.layouts;for(f in m)m.hasOwnProperty(f)&&
(c=this.Qj(parseInt(f,10)))&&c.Jc(m[f]);m=a.events.groups;for(f in m)m.hasOwnProperty(f)&&(c=this.wn(parseInt(f,10)))&&this.Yf[c.Te]&&(this.Yf[c.Te].Xf=m[f]);c=a.events.cnds;for(f in c)c.hasOwnProperty(f)&&this.Sd.hasOwnProperty(f)&&(this.Sd[f].Z=c[f].ex);c=a.events.acts;for(f in c)c.hasOwnProperty(f)&&this.Pd.hasOwnProperty(f)&&(this.Pd[f].Z=c[f].ex);c=a.events.vars;for(f in c)c.hasOwnProperty(f)&&this.ye.hasOwnProperty(f)&&(this.ye[f].data=c[f]);this.of=b.next_uid;this.lc.Jc(a.system);c=0;for(m=
this.k.length;c<m;c++)if(h=this.k[c],!h.H)for(f=0,a=h.d.length;f<a;f++){n=h.d[f];if(h.Rb)for(g=n.Se(),b=n.siblings.length=0,d=h.Ta.length;b<d;b++)l=h.Ta[b],h!==l&&n.siblings.push(l.d[g]);n.md&&n.md();if(n.C)for(b=0,d=n.C.length;b<d;b++)g=n.C[b],g.md&&g.md()}this.R=!0}};k.prototype.Bi=function(b,c){var f,m,d,h,n;h=b.type;d=h.ja;var g={};c?g.c2=!0:g.uid=b.uid;Ia(b.Z)&&(g.ex=a(b.Z));if(b.fa&&b.fa.length)for(g.ivs={},f=0,m=b.fa.length;f<m;f++)g.ivs[b.type.Gh[f].toString()]=b.fa[f];if(d.Wc){d={x:b.x,y:b.y,
w:b.width,h:b.height,l:b.g.G,zi:b.kb()};0!==b.i&&(d.a=b.i);1!==b.opacity&&(d.o=b.opacity);0.5!==b.Ya&&(d.hX=b.Ya);0.5!==b.Za&&(d.hY=b.Za);0!==b.Ma&&(d.bm=b.Ma);b.visible||(d.v=b.visible);b.Ge||(d.ce=b.Ge);-1!==b.nf&&(d.mts=b.nf);if(h.A.length)for(d.fx=[],f=0,m=h.A.length;f<m;f++)n=h.A[f],d.fx.push({name:n.name,active:b.Oc[n.index],params:b.Y[n.index]});g.w=d}if(b.C&&b.C.length)for(g.behs={},f=0,m=b.C.length;f<m;f++)h=b.C[f],h.Ub&&(g.behs[h.type.G.toString()]=h.Ub());b.Ub&&(g.data=b.Ub());return g};
k.prototype.yn=function(a,b){var c,f;c=0;for(f=a.Gh.length;c<f;c++)if(a.Gh[c]===b)return c;return-1};k.prototype.tn=function(a,b){var c,f;c=0;for(f=a.C.length;c<f;c++)if(a.C[c].type.G===b)return c;return-1};k.prototype.kg=function(a,b,c){var f,d,h,n,g;g=a.type;h=g.ja;if(c){if(!b.c2)return}else a.uid=b.uid;b.ex?a.Z=b.ex:Ja(a.Z);if(d=b.ivs)for(f in d)d.hasOwnProperty(f)&&(c=this.yn(g,parseInt(f,10)),0>c||c>=a.fa.length||(a.fa[c]=d[f]));if(h.Wc){h=b.w;a.g.G!==h.l&&(c=a.g,a.g=this.J.Vf(h.l),a.g?(a.g.d.push(a),
a.g.gb=!0,ua(c.d,a),c.gb=!0):(a.g=c,this.Ld(a)));a.x=h.x;a.y=h.y;a.width=h.w;a.height=h.h;a.Kd=h.zi;a.i=h.hasOwnProperty("a")?h.a:0;a.opacity=h.hasOwnProperty("o")?h.o:1;a.Ya=h.hasOwnProperty("hX")?h.hX:0.5;a.Za=h.hasOwnProperty("hY")?h.hY:0.5;a.visible=h.hasOwnProperty("v")?h.v:!0;a.Ge=h.hasOwnProperty("ce")?h.ce:!0;a.nf=h.hasOwnProperty("mts")?h.mts:-1;a.Ma=h.hasOwnProperty("bm")?h.bm:0;a.He=Oa(a.Ma);this.j&&Pa(a,a.Ma,this.j);a.wa();if(h.hasOwnProperty("fx"))for(c=0,d=h.fx.length;c<d;c++)n=g.xh(h.fx[c].name),
0>n||(a.Oc[n]=h.fx[c].active,a.Y[n]=h.fx[c].params);a.Mc()}if(g=b.behs)for(f in g)g.hasOwnProperty(f)&&(h=this.tn(a,parseInt(f,10)),0>h||a.C[h].Jc(g[f]));b.data&&a.Jc(b.data)};vb=function(a){return new k(document.getElementById(a))};wb=function(a,b){return new k({dc:!0,width:a,height:b})};window.cr_createRuntime=vb;window.cr_createDCRuntime=wb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Iq=!0;document.body.appendChild(a);
a=new k(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new k(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var k=document.getElementById("c2canvas");return k?k.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(k,p){if(0!==k&&0!==p){var g=window.cr_getC2Runtime();g&&g.setSize(k,p)}};window.cr_setSuspended=function(k){var p=window.cr_getC2Runtime();p&&p.setSuspended(k)};
(function(){function k(d,a){this.b=d;this.Le=null;this.scrollX=this.b.qa/2;this.scrollY=this.b.pa/2;this.scale=1;this.i=0;this.Pe=!0;this.name=a[0];this.width=a[1];this.height=a[2];this.wl=a[3];this.el=a[4];this.G=a[5];var b=a[6],c,f;this.I=[];this.Ve=[];c=0;for(f=b.length;c<f;c++){var h=new xb(this,b[c]);h.Bk=c;this.I.push(h)}b=a[7];this.xd=[];c=0;for(f=b.length;c<f;c++){var h=b[c],g=this.b.k[h[1]];g.Zb||(g.Zb=h);this.xd.push(h);-1===this.Ve.indexOf(g)&&this.Ve.push(g)}this.A=[];this.K=[];this.Y=
[];c=0;for(f=a[8].length;c<f;c++)this.A.push({id:a[8][c][0],name:a[8][c][1],xa:-1,hb:!0,index:c}),this.Y.push(a[8][c][2].slice(0));this.Mc();this.me=new oa(0,0,1,1);this.ri=new oa(0,0,1,1);this.cd={}}function p(d,a){this.Q=d;this.b=d.b;this.d=[];this.scale=1;this.i=0;this.sd=!1;this.Lc=new oa(0,0,0,0);this.ol=new pa;this.cb=this.za=this.eb=this.ya=0;this.gb=!1;this.name=a[0];this.index=a[1];this.G=a[2];this.visible=a[3];this.Pc=a[4];this.Jd=a[5];this.Bb=a[6];this.Cb=a[7];this.opacity=a[8];this.qh=
a[9];this.Ra=a[10];this.Ma=a[11];this.Nm=a[12];this.He="source-over";this.Ca=this.Ea=0;this.fd=!1;var b=a[13],c,f;this.Yd=[];c=0;for(f=b.length;c<f;c++){var h=b[c],g=this.b.k[h[1]];g.Zb||(g.Zb=h,g.ym=this.index);this.Yd.push(h);-1===this.Q.Ve.indexOf(g)&&this.Q.Ve.push(g)}this.A=[];this.K=[];this.Y=[];c=0;for(f=a[14].length;c<f;c++)this.A.push({id:a[14][c][0],name:a[14][c][1],xa:-1,hb:!0,index:c}),this.Y.push(a[14][c][2].slice(0));this.Mc();this.me=new oa(0,0,1,1);this.ri=new oa(0,0,1,1)}function g(d,
a){return d.Kd-a.Kd}k.prototype.Qo=function(d){var a=d.type.G.toString();this.cd.hasOwnProperty(a)||(this.cd[a]=[]);this.cd[a].push(this.b.Bi(d))};k.prototype.Tj=function(){var d=this.I[0];return!d.Jd&&1===d.opacity&&!d.qh&&d.visible};k.prototype.Mc=function(){this.K.length=0;var d,a,b;d=0;for(a=this.A.length;d<a;d++)b=this.A[d],b.hb&&this.K.push(b)};k.prototype.wh=function(d){var a,b,c;a=0;for(b=this.A.length;a<b;a++)if(c=this.A[a],c.name===d)return c;return null};var l=[];k.prototype.Ei=function(){this.el&&
(this.Le=this.b.mh[this.el],this.Le.zl());this.b.J=this;this.scrollX=this.b.qa/2;this.scrollY=this.b.pa/2;var d,a,b,c,f,h,k;d=0;for(b=this.b.k.length;d<b;d++)if(a=this.b.k[d],!a.H)for(f=a.d,a=0,c=f.length;a<c;a++)if(h=f[a],h.g){var n=h.g.Bk;n>=this.I.length&&(n=this.I.length-1);h.g=this.I[n];-1===h.g.d.indexOf(h)&&h.g.d.push(h);h.g.gb=!0}l.length=0;this.lm();d=0;for(b=this.I.length;d<b;d++)h=this.I[d],h.xm(),h.sd=!0,a=h.ea(0,0,!0,!0),c=h.ea(0,0,!1,!0),h.sd=!1,this.b.dd&&(a=a+0.5|0,c=c+0.5|0),h.vi(a,
c,null);f=!1;if(!this.Pe){for(k in this.cd)if(this.cd.hasOwnProperty(k)&&(a=this.b.Wf(parseInt(k,10)))&&!a.H&&this.b.Li(a)){c=this.cd[k];d=0;for(b=c.length;d<b;d++){h=null;if(a.ja.Wc&&(h=this.Vf(c[d].w.l),!h))continue;h=this.b.rd(a.Zb,h,!1,0,0,!0);this.b.kg(h,c[d]);f=!0;l.push(h)}c.length=0}d=0;for(b=this.I.length;d<b;d++)this.I[d].d.sort(g),this.I[d].gb=!0}f&&(this.b.Aa(),this.b.Vk());for(d=0;d<l.length;d++)if(h=l[d],h.type.Rb)for(b=h.Se(),a=0,c=h.type.Ta.length;a<c;a++)k=h.type.Ta[a],h.type!==k&&
(k.d.length>b?h.siblings.push(k.d[b]):k.Zb&&(f=this.b.rd(k.Zb,h.g,!0,h.x,h.y,!0),this.b.Aa(),k.Ng(),h.siblings.push(f),l.push(f)));d=0;for(b=this.xd.length;d<b;d++)this.b.rd(this.xd[d],null,!0);this.b.Fe=null;this.b.Aa();if(this.b.O&&!this.b.ga)for(d=0,b=this.b.k.length;d<b;d++)k=this.b.k[d],!k.H&&k.d.length&&k.Rk&&k.Rk(this.b.O);d=0;for(b=l.length;d<b;d++)h=l[d],this.b.trigger(Object.getPrototypeOf(h.type.ja).e.Ll,h);l.length=0;this.b.trigger(S.prototype.e.Sl,null);this.Pe=!1};k.prototype.wm=function(){var d,
a,b,c,f;a=d=0;for(b=this.xd.length;d<b;d++)c=this.xd[d],f=this.b.k[c[1]],f.global?this.b.rd(c,null,!0):(this.xd[a]=c,a++);this.xd.length=a};k.prototype.Wo=function(){this.b.trigger(S.prototype.e.Rl,null);this.b.lc.fb.length=0;var d,a,b,c,f,h;d=0;for(a=this.I.length;d<a;d++){f=this.I[d].d;b=0;for(c=f.length;b<c;b++)h=f[b],h.type.global||(this.b.Li(h.type)&&this.Qo(h),this.b.Ld(h));this.b.Aa();f.length=0;this.I[d].gb=!0}d=0;for(a=this.b.k.length;d<a;d++)if(f=this.b.k[d],!(f.global||f.ja.Wc||f.ja.zg||
f.H)){b=0;for(c=f.d.length;b<c;b++)this.b.Ld(f.d[b]);this.b.Aa()}};k.prototype.yc=function(d){var a,b=d,c=!1,f=!this.b.wb;f&&(this.b.ig||(this.b.ig=document.createElement("canvas"),a=this.b.ig,a.width=this.b.F,a.height=this.b.D,this.b.nk=a.getContext("2d"),c=!0),a=this.b.ig,b=this.b.nk,a.width!==this.b.F&&(a.width=this.b.F,c=!0),a.height!==this.b.D&&(a.height=this.b.D,c=!0),c&&(b.webkitImageSmoothingEnabled=this.b.M,b.mozImageSmoothingEnabled=this.b.M,b.msImageSmoothingEnabled=this.b.M,b.imageSmoothingEnabled=
this.b.M));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.Sg&&!this.Tj()&&b.clearRect(0,0,this.b.F,this.b.D);var h,g,c=0;for(h=this.I.length;c<h;c++)g=this.I[c],g.visible&&0<g.opacity&&11!==g.Ma&&g.yc(b);f&&d.drawImage(a,0,0,this.b.width,this.b.height)};k.prototype.Ob=function(d){var a=0<this.K.length||this.b.ve||!this.b.wb;if(a){this.b.$a||(this.b.$a=d.tc(this.b.F,this.b.D,this.b.M));if(this.b.$a.Ee!==this.b.F||this.b.$a.De!==this.b.D)d.deleteTexture(this.b.$a),this.b.$a=d.tc(this.b.F,
this.b.D,this.b.M);d.jc(this.b.$a);this.b.wb||d.pe(this.b.F,this.b.D)}else this.b.$a&&(d.jc(null),d.deleteTexture(this.b.$a),this.b.$a=null);this.b.Sg&&!this.Tj()&&d.clear(0,0,0,0);var b,c;b=0;for(c=this.I.length;b<c;b++)this.I[b].visible&&0<this.I[b].opacity&&this.I[b].Ob(d);a&&(0===this.K.length||1===this.K.length&&this.b.wb?(1===this.K.length?(a=this.K[0].index,d.kc(this.K[0].xa),d.oe(null,1/this.b.F,1/this.b.D,0,0,1,1,this.scale,this.i,0,0,this.Y[a]),d.sg(this.K[0].xa)&&(this.b.R=!0)):d.kc(0),
this.b.wb||d.pe(this.b.width,this.b.height),d.jc(null),d.ne(1),d.mb(this.b.$a),d.al(),d.hc(),d.nc(),a=this.b.width/2,b=this.b.height/2,d.ug(-a,b,a,b,a,-b,-a,-b),d.mb(null)):this.si(d,null,null,null))};k.prototype.Re=function(){return 0<this.K.length||this.b.ve||!this.b.wb?this.b.$a:null};k.prototype.Rj=function(){var d=this.I[0].Wa(),a,b,c;a=1;for(b=this.I.length;a<b;a++)c=this.I[a],(0!==c.Bb||0!==c.Cb)&&c.Wa()<d&&(d=c.Wa());return d};k.prototype.Zk=function(d){if(!this.wl){var a=this.b.F*(1/this.Rj())/
2;d>this.width-a&&(d=this.width-a);d<a&&(d=a)}this.scrollX!==d&&(this.scrollX=d,this.b.R=!0)};k.prototype.$k=function(d){if(!this.wl){var a=this.b.D*(1/this.Rj())/2;d>this.height-a&&(d=this.height-a);d<a&&(d=a)}this.scrollY!==d&&(this.scrollY=d,this.b.R=!0)};k.prototype.lm=function(){this.Zk(this.scrollX);this.$k(this.scrollY)};k.prototype.si=function(d,a,b,c){var f=b?b.K:a?a.K:this.K,h=1,g=0,n=0,l=0;b?(h=b.g.Wa(),g=b.g.jb(),n=b.g.ya,l=b.g.za):a&&(h=a.Wa(),g=a.jb(),n=a.ya,l=a.za);var e=this.b.uh,
k,p,m,r,y=0,B=1,s,H=this.b.F,E=this.b.D,ea=H/2,wa=E/2,P=a?a.me:this.me,I=a?a.ri:this.ri,x=0,G=0,C=0,X=0,J=H,aa=H,A=E,M=E,U=m=0,Y=b?b.g.jb():0;if(b){k=0;for(p=f.length;k<p;k++)m+=d.Bn(f[k].xa),U+=d.Cn(f[k].xa);r=b.Ha;x=a.ia(r.left,r.top,!0);C=a.ia(r.left,r.top,!1);J=a.ia(r.right,r.bottom,!0);A=a.ia(r.right,r.bottom,!1);0!==Y&&(k=a.ia(r.right,r.top,!0),p=a.ia(r.right,r.top,!1),G=a.ia(r.left,r.bottom,!0),X=a.ia(r.left,r.bottom,!1),r=Math.min(x,J,k,G),J=Math.max(x,J,k,G),x=r,r=Math.min(C,A,p,X),A=Math.max(C,
A,p,X),C=r);x-=m;C-=U;J+=m;A+=U;I.left=x/H;I.top=1-C/E;I.right=J/H;I.bottom=1-A/E;G=x=K(x);X=C=K(C);aa=J=ma(J);M=A=ma(A);G-=m;X-=U;aa+=m;M+=U;0>x&&(x=0);0>C&&(C=0);J>H&&(J=H);A>E&&(A=E);0>G&&(G=0);0>X&&(X=0);aa>H&&(aa=H);M>E&&(M=E);P.left=x/H;P.top=1-C/E;P.right=J/H;P.bottom=1-A/E}else P.left=I.left=0,P.top=I.top=0,P.right=I.right=1,P.bottom=I.bottom=1;U=b&&((b.i||Y)&&d.tf(f[0].xa)||0!==m||0!==U||1!==b.opacity||b.type.ja.xk)||a&&!b&&1!==a.opacity;d.al();if(U){e[y]||(e[y]=d.tc(H,E,this.b.M));if(e[y].Ee!==
H||e[y].De!==E)d.deleteTexture(e[y]),e[y]=d.tc(H,E,this.b.M);d.kc(0);d.jc(e[y]);s=M-X;d.clearRect(G,E-X-s,aa-G,s);b?b.Ob(d):(d.mb(this.b.lb),d.ne(a.opacity),d.hc(),d.translate(-ea,-wa),d.nc(),d.ed(x,A,J,A,J,C,x,C,P));I.left=I.top=0;I.right=I.bottom=1;b&&(r=P.top,P.top=P.bottom,P.bottom=r);y=1;B=0}d.ne(1);m=f.length-1;var Y=d.mi(f[m].xa)||!a&&!b&&!this.b.wb,Q=0;k=0;for(p=f.length;k<p;k++){e[y]||(e[y]=d.tc(H,E,this.b.M));if(e[y].Ee!==H||e[y].De!==E)d.deleteTexture(e[y]),e[y]=d.tc(H,E,this.b.M);d.kc(f[k].xa);
Q=f[k].index;d.sg(f[k].xa)&&(this.b.R=!0);0!=k||U?(d.oe(c,1/H,1/E,I.left,I.top,I.right,I.bottom,h,g,n,l,b?b.Y[Q]:a?a.Y[Q]:this.Y[Q]),d.mb(null),k!==m||Y?(d.jc(e[y]),s=M-X,r=E-X-s,d.clearRect(G,r,aa-G,s)):(b?d.gd(b.Ea,b.Ca):a&&d.gd(a.Ea,a.Ca),d.jc(c)),d.mb(e[B]),d.hc(),d.translate(-ea,-wa),d.nc(),d.ed(x,A,J,A,J,C,x,C,P),k!==m||Y||d.mb(null)):(d.jc(e[y]),s=M-X,r=E-X-s,d.clearRect(G,r,aa-G,s),b?(d.oe(c,1/b.width,1/b.height,I.left,I.top,I.right,I.bottom,h,g,n,l,b.Y[Q]),b.Ob(d)):(d.oe(c,1/H,1/E,0,0,1,
1,h,g,n,l,a?a.Y[Q]:this.Y[Q]),d.mb(a?this.b.lb:this.b.$a),d.hc(),d.translate(-ea,-wa),d.nc(),d.ed(x,A,J,A,J,C,x,C,P)),I.left=I.top=0,I.right=I.bottom=1,b&&!Y&&(r=A,A=C,C=r));y=0===y?1:0;B=0===y?1:0}Y&&(d.kc(0),b?d.gd(b.Ea,b.Ca):a?d.gd(a.Ea,a.Ca):this.b.wb||(d.pe(this.b.width,this.b.height),ea=this.b.width/2,wa=this.b.height/2,C=x=0,J=this.b.width,A=this.b.height),d.jc(c),d.mb(e[B]),d.hc(),d.translate(-ea,-wa),d.nc(),b&&1===f.length&&!U?d.ed(x,C,J,C,J,A,x,A,P):d.ed(x,A,J,A,J,C,x,C,P),d.mb(null))};
k.prototype.Vf=function(d){var a,b;a=0;for(b=this.I.length;a<b;a++)if(this.I[a].G===d)return this.I[a];return null};k.prototype.Ub=function(){var d,a,b,c={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.i,w:this.width,h:this.height,fv:this.Pe,persist:this.cd,fx:[],layers:{}};d=0;for(a=this.A.length;d<a;d++)b=this.A[d],c.fx.push({name:b.name,active:b.hb,params:this.Y[b.index]});d=0;for(a=this.I.length;d<a;d++)b=this.I[d],c.layers[b.G.toString()]=b.Ub();return c};k.prototype.Jc=function(d){var a,
b,c,f;this.scrollX=d.sx;this.scrollY=d.sy;this.scale=d.s;this.i=d.a;this.width=d.w;this.height=d.h;this.cd=d.persist;"undefined"!==typeof d.fv&&(this.Pe=d.fv);var h=d.fx;a=0;for(b=h.length;a<b;a++)if(c=this.wh(h[a].name))c.hb=h[a].active,this.Y[c.index]=h[a].params;this.Mc();a=d.layers;for(f in a)a.hasOwnProperty(f)&&(d=this.Vf(parseInt(f,10)))&&d.Jc(a[f])};kb=k;p.prototype.Mc=function(){this.K.length=0;var d,a,b;d=0;for(a=this.A.length;d<a;d++)b=this.A[d],b.hb&&this.K.push(b)};p.prototype.wh=function(d){var a,
b,c;a=0;for(b=this.A.length;a<b;a++)if(c=this.A[a],c.name===d)return c;return null};p.prototype.xm=function(){var d,a,b,c,f,h;a=d=0;for(b=this.Yd.length;d<b;d++){c=this.Yd[d];f=this.b.k[c[1]];h=this.b.Li(f);f=!0;if(!h||this.Q.Pe)c=this.b.rd(c,this,!0),l.push(c),c.type.global&&(f=!1);f&&(this.Yd[a]=this.Yd[d],a++)}this.Yd.length=a;this.b.Aa();!this.b.q&&this.A.length&&(this.Ma=this.Nm);this.He=Oa(this.Ma);this.b.j&&Pa(this,this.Ma,this.b.j)};p.prototype.fp=function(){if(this.gb){var d,a;d=0;for(a=
this.d.length;d<a;d++)this.d[d].Kd=d;this.gb=!1}};p.prototype.Wa=function(d){return this.zn()*(this.b.wb||d?this.b.Be:1)};p.prototype.zn=function(){return(this.scale*this.Q.scale-1)*this.Ra+1};p.prototype.jb=function(){return this.sd?0:za(this.Q.i+this.i)};p.prototype.yc=function(d){this.fd=this.qh||1!==this.opacity||0!==this.Ma;var a=this.b.canvas,b=d,c=!1;this.fd&&(this.b.hg||(this.b.hg=document.createElement("canvas"),a=this.b.hg,a.width=this.b.F,a.height=this.b.D,this.b.mk=a.getContext("2d"),
c=!0),a=this.b.hg,b=this.b.mk,a.width!==this.b.F&&(a.width=this.b.F,c=!0),a.height!==this.b.D&&(a.height=this.b.D,c=!0),c&&(b.webkitImageSmoothingEnabled=this.b.M,b.mozImageSmoothingEnabled=this.b.M,b.msImageSmoothingEnabled=this.b.M,b.imageSmoothingEnabled=this.b.M),this.Jd&&b.clearRect(0,0,this.b.F,this.b.D));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.Jd||(b.fillStyle="rgb("+this.Pc[0]+","+this.Pc[1]+","+this.Pc[2]+")",b.fillRect(0,0,this.b.F,this.b.D));b.save();this.sd=!0;var c=
this.ea(0,0,!0,!0),f=this.ea(0,0,!1,!0);this.sd=!1;this.b.dd&&(c=c+0.5|0,f=f+0.5|0);this.vi(c,f,b);var h=this.Wa();b.scale(h,h);b.translate(-c,-f);for(var g,c=0,f=this.d.length;c<f;c++)h=this.d[c],h.visible&&0!==h.width&&0!==h.height&&(h.Ga(),g=h.Ha,g.right<this.ya||g.bottom<this.za||g.left>this.eb||g.top>this.cb||(b.globalCompositeOperation=h.He,h.yc(b)));b.restore();this.fd&&(d.globalCompositeOperation=this.He,d.globalAlpha=this.opacity,d.drawImage(a,0,0))};p.prototype.vi=function(d,a,b){var c=
this.Wa();this.ya=d;this.za=a;this.eb=d+this.b.F*(1/c);this.cb=a+this.b.D*(1/c);d=this.jb();0!==d&&(b&&(b.translate(this.b.F/2,this.b.D/2),b.rotate(-d),b.translate(this.b.F/-2,this.b.D/-2)),this.Lc.set(this.ya,this.za,this.eb,this.cb),this.Lc.offset((this.ya+this.eb)/-2,(this.za+this.cb)/-2),this.ol.cl(this.Lc,d),this.ol.oj(this.Lc),this.Lc.offset((this.ya+this.eb)/2,(this.za+this.cb)/2),this.ya=this.Lc.left,this.za=this.Lc.top,this.eb=this.Lc.right,this.cb=this.Lc.bottom)};p.prototype.Ob=function(d){var a=
this.b.F,b=this.b.D,c=0,f=0;if(this.fd=this.qh||1!==this.opacity||0<this.K.length||0!==this.Ma){this.b.lb||(this.b.lb=d.tc(this.b.F,this.b.D,this.b.M));if(this.b.lb.Ee!==this.b.F||this.b.lb.De!==this.b.D)d.deleteTexture(this.b.lb),this.b.lb=d.tc(this.b.F,this.b.D,this.b.M);d.jc(this.b.lb);this.Jd&&d.clear(0,0,0,0)}this.Jd||d.clear(this.Pc[0]/255,this.Pc[1]/255,this.Pc[2]/255,1);this.sd=!0;var f=this.ea(0,0,!0,!0),h=this.ea(0,0,!1,!0);this.sd=!1;this.b.dd&&(f=f+0.5|0,h=h+0.5|0);this.vi(f,h,null);h=
this.Wa();d.hc();d.scale(h,h);d.wi(-this.jb());d.translate((this.ya+this.eb)/-2,(this.za+this.cb)/-2);d.nc();var g,n,l;g=0;for(n=this.d.length;g<n;g++)if(l=this.d[g],l.visible&&0!==l.width&&0!==l.height&&(l.Ga(),c=l.Ha,!(c.right<this.ya||c.bottom<this.za||c.left>this.eb||c.top>this.cb)))if(l.Al)if(c=l.K[0].xa,f=l.K[0].index,1!==l.K.length||d.mi(c)||d.Ho(c)||(l.i||l.g.jb())&&d.tf(c)||1!==l.opacity||l.type.ja.xk)this.Q.si(d,this,l,this.fd?this.b.lb:this.Q.Re()),d.hc(),d.scale(h,h),d.wi(-this.jb()),
d.translate((this.ya+this.eb)/-2,(this.za+this.cb)/-2),d.nc();else{d.kc(c);d.gd(l.Ea,l.Ca);d.sg(c)&&(this.b.R=!0);var e=0,k=0,p=0,m=0;d.tf(c)&&(c=l.Ha,e=this.ia(c.left,c.top,!0),k=this.ia(c.left,c.top,!1),p=this.ia(c.right,c.bottom,!0),c=this.ia(c.right,c.bottom,!1),e/=a,k=1-k/b,p/=a,m=1-c/b);d.oe(this.fd?this.b.lb:this.Q.Re(),1/l.width,1/l.height,e,k,p,m,this.Wa(),this.jb(),this.ya,this.za,l.Y[f]);l.Ob(d)}else d.kc(0),d.gd(l.Ea,l.Ca),l.Ob(d);this.fd&&(c=this.K.length?this.K[0].xa:0,f=this.K.length?
this.K[0].index:0,0===this.K.length||1===this.K.length&&!d.mi(c)&&1===this.opacity?(1===this.K.length?(d.kc(c),d.oe(this.Q.Re(),1/this.b.F,1/this.b.D,0,0,1,1,this.Wa(),this.jb(),this.ya,this.za,this.Y[f]),d.sg(c)&&(this.b.R=!0)):d.kc(0),d.jc(this.Q.Re()),d.ne(this.opacity),d.mb(this.b.lb),d.gd(this.Ea,this.Ca),d.hc(),d.nc(),a=this.b.F/2,b=this.b.D/2,d.ug(-a,b,a,b,a,-b,-a,-b),d.mb(null)):this.Q.si(d,this,null,this.Q.Re()))};p.prototype.ea=function(d,a,b,c){var f=this.b.devicePixelRatio;this.b.Zd&&
(d*=f,a*=f);var f=this.b.Lk,h=this.b.Mk,f=(this.Q.scrollX-f)*this.Bb+f,h=(this.Q.scrollY-h)*this.Cb+h,g=1/this.Wa(!c);c?(f-=this.b.F*g/2,h-=this.b.D*g/2):(f-=this.b.width*g/2,h-=this.b.height*g/2);f+=d*g;h+=a*g;a=this.jb();0!==a&&(f-=this.Q.scrollX,h-=this.Q.scrollY,d=Math.cos(a),a=Math.sin(a),c=f*d-h*a,h=h*d+f*a,f=c+this.Q.scrollX,h+=this.Q.scrollY);return b?f:h};p.prototype.ia=function(d,a,b){var c=this.jb();if(0!==c){d-=this.Q.scrollX;a-=this.Q.scrollY;var f=Math.cos(-c),c=Math.sin(-c),h=d*f-a*
c;a=a*f+d*c;d=h+this.Q.scrollX;a+=this.Q.scrollY}f=this.b.Lk;c=this.b.Mk;f=(this.Q.scrollX-f)*this.Bb+f;c=(this.Q.scrollY-c)*this.Cb+c;h=1/this.Wa(!1);f-=this.b.F*h/2;c-=this.b.D*h/2;f=(d-f)/h;return b?f:(a-c)/h};p.prototype.Ub=function(){var d,a,b,c={s:this.scale,a:this.i,vl:this.ya,vt:this.za,vr:this.eb,vb:this.cb,v:this.visible,bc:this.Pc,t:this.Jd,px:this.Bb,py:this.Cb,o:this.opacity,zr:this.Ra,fx:[],instances:[]};d=0;for(a=this.A.length;d<a;d++)b=this.A[d],c.fx.push({name:b.name,active:b.hb,
params:this.Y[b.index]});return c};p.prototype.Jc=function(d){var a,b;this.scale=d.s;this.i=d.a;this.ya=d.vl;this.za=d.vt;this.eb=d.vr;this.cb=d.vb;this.visible=d.v;this.Pc=d.bc;this.Jd=d.t;this.Bb=d.px;this.Cb=d.py;this.opacity=d.o;this.Ra=d.zr;var c=d.fx;d=0;for(a=c.length;d<a;d++)if(b=this.wh(c[d].name))b.hb=c[d].active,this.Y[b.index]=c[d].params;this.Mc();this.d.sort(g);this.gb=!0};xb=p})();
(function(){function k(a,b){var c,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<e;c++)if(a[c]!==b[c])return!1;return!0}}function p(a,b){return a.index-b.index}function g(a){var b,c,f,d;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(p);a.length>=e.length&&(e.length=a.length+1);e[a.length]||(e[a.length]=[]);d=e[a.length];b=0;for(c=d.length;b<c;b++)if(f=d[b],k(a,f))return f;d.push(a);return a}
function l(a,b){this.b=a;this.rl={};this.Gj={};this.Ch=!1;this.Vj=new fa;this.jh=[];this.Tg=[];this.name=b[0];var c=b[1];this.Uc=[];var e,f;e=0;for(f=c.length;e<f;e++)this.Xj(c[e],null,this.Uc)}function d(a){this.type=a;this.d=[];this.L=[];this.V=!0}function a(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.aa=[];this.hd=[];this.Uj=this.Jg=this.Ii=this.Fh=this.group=this.hl=!1;this.Ba=[];this.Kb=[];this.Gb=[];this.Te="";this.Xf=this.Fh=this.group=!1;this.vj=null;c[1]&&(this.Te=c[1][1].toLowerCase(),
this.group=!0,this.Fh=!!c[1][0],this.vj=[],this.Xf=this.Fh,this.b.Qd.push(this),this.b.Yf[this.Te]=this);this.gc=c[2];this.G=c[4];this.group||(this.b.nj[this.G.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var f=new yb(this,e[a]);f.index=a;this.Ba.push(f);this.dj(f.type)}e=c[6];a=0;for(b=e.length;a<b;a++)f=new zb(this,e[a]),f.index=a,this.Kb.push(f);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Xj(c[a],this,this.Gb);this.cg=!1;this.Ba.length&&(this.cg=null==this.Ba[0].type&&
this.Ba[0].ta==S.prototype.e.Dl)}function b(a,b){var c,e,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Rb))for(c=0,e=a.Ta.length;c<e;c++)f=a.Ta[c],a!==f&&-1===b.indexOf(f)&&b.push(f)}function c(a,b){this.ib=a;this.sheet=a.sheet;this.b=a.b;this.B=[];this.P=[];this.Z={};this.index=-1;this.Ae=!1;this.ta=b[1];this.trigger=0<b[3];this.Fj=2===b[3];this.Hh=b[5];this.no=b[6];this.G=b[7];this.b.Sd[this.G.toString()]=this;-1===b[0]?(this.type=null,this.la=this.Ai,this.pd=null,this.pb=-1):(this.type=this.b.k[b[0]],
this.la=this.no?this.Oo:this.yi,b[2]?(this.pd=this.type.Uf(b[2]),this.pb=this.type.vh(b[2])):(this.pd=null,this.pb=-1),this.ib.parent&&this.ib.parent.xg());this.Fj&&(this.la=this.Po);if(10===b.length){var c,e,f=b[9];c=0;for(e=f.length;c<e;c++){var d=new Ab(this,f[c]);this.B.push(d)}this.P.length=f.length}}function f(a,b){this.ib=a;this.sheet=a.sheet;this.b=a.b;this.B=[];this.P=[];this.Z={};this.index=-1;this.Ae=!1;this.ta=b[1];-1===b[0]?(this.type=null,this.la=this.Ai,this.pd=null,this.pb=-1):(this.type=
this.b.k[b[0]],this.la=this.yi,b[2]?(this.pd=this.type.Uf(b[2]),this.pb=this.type.vh(b[2])):(this.pd=null,this.pb=-1));this.G=b[3];this.b.Pd[this.G.toString()]=this;if(6===b.length){var c,e,f=b[5];c=0;for(e=f.length;c<e;c++){var d=new Ab(this,f[c]);this.B.push(d)}this.P.length=f.length}}function h(a,b){this.p=a;this.ib=a.ib;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.$b=null;this.jd=0;this.get=null;this.uj=0;this.Q=null;this.key=0;this.object=null;this.index=0;this.Ff=this.Hd=this.Ff=this.Hd=
this.Hj=this.td=this.Gf=null;this.Jb=!1;var c,e,f;switch(b[0]){case 0:case 7:this.$b=new O(this,b[1]);this.jd=0;this.get=this.In;break;case 1:this.$b=new O(this,b[1]);this.jd=0;this.get=this.Jn;break;case 5:this.$b=new O(this,b[1]);this.jd=0;this.get=this.Nn;break;case 3:case 8:this.uj=b[1];this.get=this.Gn;break;case 6:this.Q=this.b.Sh[b[1]];this.get=this.On;break;case 9:this.key=b[1];this.get=this.Mn;break;case 4:this.object=this.b.k[b[1]];this.get=this.Pn;this.ib.dj(this.object);this.p instanceof
zb?this.ib.xg():this.ib.parent&&this.ib.parent.xg();break;case 10:this.index=b[1];a.type.H?(this.get=this.Kn,this.Jb=!0):this.get=this.Ln;break;case 11:this.Gf=b[1];this.td=null;this.get=this.Hn;break;case 2:case 12:this.Hj=b[1];this.get=this.Fn;break;case 13:for(this.get=this.Qn,this.Hd=[],this.Ff=[],c=1,e=b.length;c<e;c++)f=new Ab(this.p,b[c]),this.Hd.push(f),this.Ff.push(0)}}function v(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.aa=[];this.name=c[1];this.Eh=c[3];this.Ze=!!c[4];this.bg=!!c[5];
this.G=c[6];this.b.ye[this.G.toString()]=this;this.data=this.Eh;this.parent?(this.Ed=this.Ze||this.bg?-1:this.b.Vo++,this.b.hm.push(this)):(this.Ed=-1,this.b.gm.push(this))}function n(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.aa=[];this.Ue=null;this.Xn=c[1];this.hb=!0}function q(){this.il=[];this.reset(null)}var e=[];l.prototype.toString=ca("name");l.prototype.Xj=function(a,b,c){switch(a[0]){case 0:a=new Bb(this,b,a);if(a.gc)for(c.push(a),c=0,b=a.Ba.length;c<b;c++)a.Ba[c].trigger&&this.Yj(a,
c);else a.dk()?this.Yj(a,0):c.push(a);break;case 1:a=new ub(this,b,a);c.push(a);break;case 2:a=new Cb(this,b,a),c.push(a)}};l.prototype.$=function(){var a,b;a=0;for(b=this.Uc.length;a<b;a++)this.Uc[a].$(a<b-1&&this.Uc[a+1].cg)};l.prototype.zl=function(){this.jh.length=0;this.Tg.length=0;this.cj(this);this.Tg.length=0};l.prototype.cj=function(a){var b,c,e,f,d=a.jh,h=a.Tg,g=this.Vj.we();b=0;for(c=g.length;b<c;++b)e=g[b],f=e.Ue,!e.hb||a===f||-1<h.indexOf(f)||(h.push(f),f.cj(a),d.push(f))};l.prototype.la=
function(a){this.b.Hq||(this.Ch=!0,a||(this.b.Lh=!0));var b,c;b=0;for(c=this.Uc.length;b<c;b++){var e=this.Uc[b];e.la();this.b.eh(e.aa);this.b.Yb.Qb()&&!this.b.Ua.length||this.b.Aa()}a||(this.b.Lh=!1)};l.prototype.Yj=function(a,b){a.gc||this.b.Mg.push(a);var c,e,f=a.Ba[b],d;d=f.type?f.type.name:"system";var h=(c=f.Fj)?this.Gj:this.rl;h[d]||(h[d]=[]);d=h[d];h=f.ta;if(c){if(f.B.length&&(f=f.B[0],1===f.type&&2===f.$b.type)){f=f.$b.value.toLowerCase();c=0;for(e=d.length;c<e;c++)if(d[c].method==h){c=d[c].Me;
c[f]?c[f].push([a,b]):c[f]=[[a,b]];return}c={};c[f]=[[a,b]];d.push({method:h,Me:c})}}else{c=0;for(e=d.length;c<e;c++)if(d[c].method==h){d[c].Me.push([a,b]);return}T&&h===T.prototype.e.Od?d.unshift({method:h,Me:[[a,b]]}):d.push({method:h,Me:[[a,b]]})}};lb=l;d.prototype.Bh=function(){return this.V?this.type.d.length:this.d.length};d.prototype.Pb=function(){return this.V?this.type.d:this.d};d.prototype.sf=function(a){a&&(a.b.Va().Nb.gc?(this.V&&(this.d.length=0,sa(this.L,a.type.d),this.V=!1),a=this.L.indexOf(a),
-1!==a&&(this.d.push(this.L[a]),this.L.splice(a,1))):(this.V=!1,this.d.length=1,this.d[0]=a))};Va=d;window._c2hh_="";a.prototype.$=function(a){var b,c=this.parent;if(this.group)for(this.Jg=!0;c;){if(!c.group){this.Jg=!1;break}c=c.parent}this.Ii=!this.dk()&&(!this.parent||this.parent.group&&this.parent.Jg);this.Uj=!!a;this.hd=this.aa.slice(0);for(c=this.parent;c;){a=0;for(b=c.aa.length;a<b;a++)this.fm(c.aa[a]);c=c.parent}this.aa=g(this.aa);this.hd=g(this.hd);a=0;for(b=this.Ba.length;a<b;a++)this.Ba[a].$();
a=0;for(b=this.Kb.length;a<b;a++)this.Kb[a].$();a=0;for(b=this.Gb.length;a<b;a++)this.Gb[a].$(a<b-1&&this.Gb[a+1].cg)};a.prototype.dj=function(a){b(a,this.aa)};a.prototype.fm=function(a){b(a,this.hd)};a.prototype.xg=function(){this.hl=!0;this.parent&&this.parent.xg()};a.prototype.dk=function(){return this.Ba.length?this.Ba[0].trigger:!1};a.prototype.la=function(){var a,b=!1,c,e=this.b,f=this.b.Va();f.Nb=this;var d=this.Ba;this.cg||(f.kh=!1);if(this.gc){0===d.length&&(b=!0);f.Na=0;for(a=d.length;f.Na<
a;f.Na++)d[f.Na].trigger||(c=d[f.Na].la())&&(b=!0);(f.Bd=b)&&this.xi()}else{f.Na=0;for(a=d.length;f.Na<a;f.Na++)if(c=d[f.Na].la(),!c){f.Bd=!1;!this.Ii||e.Yb.Qb()&&!e.Ua.length||e.Aa();return}f.Bd=!0;this.xi()}this.Pm(f)};a.prototype.Pm=function(a){a.Bd&&this.Uj&&(a.kh=!0);!this.Ii||this.b.Yb.Qb()&&!this.b.Ua.length||this.b.Aa()};a.prototype.Mo=function(a){this.b.Va().Nb=this;this.Ba[a].la()&&(this.xi(),this.b.Va().Bd=!0)};a.prototype.xi=function(){var a=this.b.Va(),b;a.ob=0;for(b=this.Kb.length;a.ob<
b;a.ob++)if(this.Kb[a.ob].la())return;this.Xk()};a.prototype.Ko=function(){var a=this.b.Va(),b;for(b=this.Kb.length;a.ob<b;a.ob++)if(this.Kb[a.ob].la())return;this.Xk()};a.prototype.Xk=function(){if(this.Gb.length){var a,b,c,e,f=this.Gb.length-1;this.b.oi(this);if(this.hl)for(a=0,b=this.Gb.length;a<b;a++)c=this.Gb[a],(e=!this.Jg||!this.group&&a<f)&&this.b.ni(c.aa),c.la(),e?this.b.ke(c.aa):this.b.eh(c.aa);else for(a=0,b=this.Gb.length;a<b;a++)this.Gb[a].la();this.b.Pk()}};a.prototype.No=function(){var a=
this.b.Va();a.Nb=this;var b=!1,c;a.Na=0;for(c=this.Ba.length;a.Na<c;a.Na++)if(this.Ba[a.Na].la())b=!0;else if(!this.gc)return!1;return this.gc?b:!0};a.prototype.fo=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Ba[b].type===a.type)return!1;return!0};Bb=a;c.prototype.$=function(){var a,b,c;a=0;for(b=this.B.length;a<b;a++)c=this.B[a],c.$(),c.Jb&&(this.Ae=!0)};c.prototype.Po=w(!0);c.prototype.Ai=function(){var a,b;a=0;for(b=this.B.length;a<b;a++)this.P[a]=this.B[a].get();return Ha(this.ta.apply(this.b.lc,
this.P),this.Hh)};c.prototype.Oo=function(){var a,b;a=0;for(b=this.B.length;a<b;a++)this.P[a]=this.B[a].get();a=this.ta.apply(this.pd?this.pd:this.type,this.P);this.type.rc();return a};c.prototype.yi=function(){var a,b,c,e,f,d,h,g,n=this.type,l=n.S(),k=this.ib.gc&&!this.trigger;b=0;var q=n.Rb,p=n.H,v=n.Ac,t=this.pb,u=-1<t,aa=this.Ae,A=this.B,M=this.P,U=this.Hh,Y=this.ta,Q;if(aa)for(b=0,f=A.length;b<f;++b)d=A[b],d.Jb||(M[b]=d.get(0));else for(b=0,f=A.length;b<f;++b)M[b]=A[b].get(0);if(l.V){l.d.length=
0;l.L.length=0;Q=n.d;a=0;for(e=Q.length;a<e;++a){g=Q[a];if(aa)for(b=0,f=A.length;b<f;++b)d=A[b],d.Jb&&(M[b]=d.get(a));u?(b=0,p&&(b=g.type.Vd[v]),b=Y.apply(g.C[t+b],M)):b=Y.apply(g,M);(h=Ha(b,U))?l.d.push(g):k&&l.L.push(g)}n.finish&&n.finish(!0);l.V=!1;n.rc();return l.Bh()}c=0;Q=(h=k&&!this.ib.fo(this))?l.L:l.d;var ya=!1;a=0;for(e=Q.length;a<e;++a){g=Q[a];if(aa)for(b=0,f=A.length;b<f;++b)d=A[b],d.Jb&&(M[b]=d.get(a));u?(b=0,p&&(b=g.type.Vd[v]),b=Y.apply(g.C[t+b],M)):b=Y.apply(g,M);if(Ha(b,U))if(ya=
!0,h){if(l.d.push(g),q)for(b=0,f=g.siblings.length;b<f;b++)d=g.siblings[b],d.type.S().d.push(d)}else{Q[c]=g;if(q)for(b=0,f=g.siblings.length;b<f;b++)d=g.siblings[b],d.type.S().d[c]=d;c++}else if(h){Q[c]=g;if(q)for(b=0,f=g.siblings.length;b<f;b++)d=g.siblings[b],d.type.S().L[c]=d;c++}else if(k&&(l.L.push(g),q))for(b=0,f=g.siblings.length;b<f;b++)d=g.siblings[b],d.type.S().L.push(d)}Q.length=c;if(q)for(p=n.Ta,a=0,e=p.length;a<e;a++)g=p[a].S(),h?g.L.length=c:g.d.length=c;c=ya;if(h&&!ya)for(a=0,e=l.d.length;a<
e;a++){g=l.d[a];if(aa)for(b=0,f=A.length;b<f;b++)d=A[b],d.Jb&&(M[b]=d.get(a));b=u?Y.apply(g.C[t],M):Y.apply(g,M);if(Ha(b,U)){ya=!0;break}}n.finish&&n.finish(c||k);return k?ya:l.Bh()};yb=c;f.prototype.$=function(){var a,b,c;a=0;for(b=this.B.length;a<b;a++)c=this.B[a],c.$(),c.Jb&&(this.Ae=!0)};f.prototype.Ai=function(){var a,b;a=0;for(b=this.B.length;a<b;a++)this.P[a]=this.B[a].get();return this.ta.apply(this.b.lc,this.P)};f.prototype.yi=function(){var a=this.type.S().Pb(),b=this.type.H,c=this.type.Ac,
e=this.pb,f=-1<e,d=this.Ae,h=this.B,g=this.P,n=this.ta,l,k,q,p,v,t;if(d)for(k=0,p=h.length;k<p;++k)v=h[k],v.Jb||(g[k]=v.get(0));else for(k=0,p=h.length;k<p;++k)g[k]=h[k].get(0);l=0;for(q=a.length;l<q;++l){t=a[l];if(d)for(k=0,p=h.length;k<p;++k)v=h[k],v.Jb&&(g[k]=v.get(l));f?(k=0,b&&(k=t.type.Vd[c]),n.apply(t.C[e+k],g)):n.apply(t,g)}return!1};zb=f;var t=[],u=-1;h.prototype.$=function(){var a,b;if(11===this.type)this.td=this.b.Oj(this.Gf,this.ib.parent);else if(13===this.type)for(a=0,b=this.Hd.length;a<
b;a++)this.Hd[a].$();this.$b&&this.$b.$()};h.prototype.so=function(a){this.Jb||!a||a.ja.zg||(this.Jb=!0)};h.prototype.bl=function(){this.Jb=!0};h.prototype.ka=function(){u++;t.length===u&&t.push(new Db);return t[u]};h.prototype.ca=function(){u--};h.prototype.In=function(a){this.jd=a||0;a=this.ka();this.$b.get(a);this.ca();return a.data};h.prototype.Jn=function(a){this.jd=a||0;a=this.ka();this.$b.get(a);this.ca();return F(a.data)?a.data:""};h.prototype.Pn=ca("object");h.prototype.Gn=ca("uj");h.prototype.Nn=
function(a){this.jd=a||0;a=this.ka();this.$b.get(a);this.ca();return a.na()?this.b.Cc(a.data):this.b.Qe(a.data)};h.prototype.On=ca("Q");h.prototype.Mn=ca("key");h.prototype.Ln=ca("index");h.prototype.Kn=function(a){a=a||0;var b=this.p.type,c=null,c=b.S(),e=c.Pb();if(e.length)c=e[a%e.length].type;else if(c.L.length)c=c.L[a%c.L.length].type;else if(b.d.length)c=b.d[a%b.d.length].type;else return 0;return this.index+c.Qf[b.Ac]};h.prototype.Hn=ca("td");h.prototype.Fn=ca("Hj");h.prototype.Qn=function(){var a,
b;a=0;for(b=this.Hd.length;a<b;a++)this.Ff[a]=this.Hd[a].get();return this.Ff};Ab=h;v.prototype.$=function(){this.aa=g(this.aa)};v.prototype.So=function(a){var b=this.b.Mj();this.parent&&!this.Ze&&b?(this.Ed>=b.length&&(b.length=this.Ed+1),b[this.Ed]=a):this.data=a};v.prototype.En=function(){var a=this.b.Mj();return!this.parent||this.Ze||!a||this.bg?this.data:this.Ed>=a.length||"undefined"===typeof a[this.Ed]?this.Eh:a[this.Ed]};v.prototype.la=function(){!this.parent||this.Ze||this.bg||this.So(this.Eh)};
ub=v;n.prototype.toString=function(){return"include:"+this.Ue.toString()};n.prototype.$=function(){this.Ue=this.b.mh[this.Xn];this.sheet.Vj.add(this);this.aa=g(this.aa);for(var a=this.parent;a;)a.group&&a.vj.push(this),a=a.parent;this.dp()};n.prototype.la=function(){this.parent&&this.b.vf(this.b.k);this.Ue.Ch||this.Ue.la(!0);this.parent&&this.b.ke(this.b.k)};n.prototype.dp=function(){for(var a=this.parent;a;){if(a.group&&!a.Xf){this.hb=!1;return}a=a.parent}this.hb=!0};Cb=n;q.prototype.reset=function(a){this.Nb=
a;this.ob=this.Na=0;this.il.length=0;this.kh=this.Bd=!1};tb=q})();
(function(){function k(g,l){this.p=g;this.b=g.b;this.type=l[0];this.get=[this.an,this.Xm,this.kn,this.nn,this.Rm,this.ln,this.en,this.Um,this.dn,this.jn,this.Sm,this.hn,this.Vm,this.gn,this.bn,this.cn,this.Ym,this.Zm,this.Tm,this.mn,this.Dj,this.$m,this.Dj,this.Wm][this.type];var d=null;this.Pa=this.B=this.P=this.ta=this.Gg=this.ra=this.first=this.value=null;this.pb=-1;this.Dc=null;this.Ni=-1;this.td=this.Gf=null;this.wf=!1;switch(this.type){case 0:case 1:case 2:this.value=l[1];break;case 3:this.first=
new O(g,l[1]);break;case 18:this.first=new O(g,l[1]);this.ra=new O(g,l[2]);this.Gg=new O(g,l[3]);break;case 19:this.ta=l[1];this.ta!==S.prototype.ac.random&&this.ta!==S.prototype.ac.tm||this.p.bl();this.P=[];this.B=[];3===l.length?(d=l[2],this.P.length=d.length+1):this.P.length=1;break;case 20:this.Pa=this.b.k[l[1]];this.pb=-1;this.ta=l[2];this.wf=l[3];Fb.El&&this.ta===Fb.El.prototype.ac.tp&&this.p.bl();this.Dc=l[4]?new O(g,l[4]):null;this.P=[];this.B=[];6===l.length?(d=l[5],this.P.length=d.length+
1):this.P.length=1;break;case 21:this.Pa=this.b.k[l[1]];this.wf=l[2];this.Dc=l[3]?new O(g,l[3]):null;this.Ni=l[4];break;case 22:this.Pa=this.b.k[l[1]];this.Pa.Uf(l[2]);this.pb=this.Pa.vh(l[2]);this.ta=l[3];this.wf=l[4];this.Dc=l[5]?new O(g,l[5]):null;this.P=[];this.B=[];7===l.length?(d=l[6],this.P.length=d.length+1):this.P.length=1;break;case 23:this.Gf=l[1],this.td=null}this.p.so(this.Pa);4<=this.type&&17>=this.type&&(this.first=new O(g,l[1]),this.ra=new O(g,l[2]));if(d){var a,b;a=0;for(b=d.length;a<
b;a++)this.B.push(new O(g,d[a]))}}function p(g,l){this.type=g||R.Nd;this.data=l||0;this.he=null;this.type==R.Nd&&(this.data=Math.floor(this.data))}k.prototype.$=function(){23===this.type&&(this.td=this.p.b.Oj(this.Gf,this.p.ib.parent));this.first&&this.first.$();this.ra&&this.ra.$();this.Gg&&this.Gg.$();this.Dc&&this.Dc.$();if(this.B){var g,l;g=0;for(l=this.B.length;g<l;g++)this.B[g].$()}};k.prototype.mn=function(g){this.P[0]=g;g=this.p.ka();var l,d;l=0;for(d=this.B.length;l<d;l++)this.B[l].get(g),
this.P[l+1]=g.data;this.p.ca();this.ta.apply(this.b.lc,this.P)};k.prototype.Dj=function(g){var l=this.Pa.S(),d=l.Pb();if(!d.length)if(l.L.length)d=l.L;else{this.wf?g.Eb(""):g.T(0);return}this.P[0]=g;g.he=this.Pa;g=this.p.ka();var a,l=0;for(a=this.B.length;l<a;l++)this.B[l].get(g),this.P[l+1]=g.data;l=this.p.jd;this.Dc&&(this.Dc.get(g),g.na()&&(l=g.data,d=this.Pa.d));this.p.ca();l%=d.length;0>l&&(l+=d.length);d=d[l];-1<this.pb?(g=0,this.Pa.H&&(g=d.type.Vd[this.Pa.Ac]),this.ta.apply(d.C[this.pb+g],
this.P)):this.ta.apply(d,this.P)};k.prototype.$m=function(g){var l=this.Pa.S(),d=l.Pb();if(!d.length)if(l.L.length)d=l.L;else{this.wf?g.Eb(""):g.T(0);return}l=this.p.jd;if(this.Dc){var a=this.p.ka();this.Dc.get(a);if(a.na()){l=a.data;d=this.Pa.d;l%=d.length;0>l&&(l+=d.length);d=d[l].fa[this.Ni];F(d)?g.Eb(d):g.r(d);this.p.ca();return}this.p.ca()}l%=d.length;0>l&&(l+=d.length);d=d[l];l=0;this.Pa.H&&(l=d.type.Qf[this.Pa.Ac]);d=d.fa[this.Ni+l];F(d)?g.Eb(d):g.r(d)};k.prototype.an=function(g){g.type=R.Nd;
g.data=this.value};k.prototype.Xm=function(g){g.type=R.Md;g.data=this.value};k.prototype.kn=function(g){g.type=R.If;g.data=this.value};k.prototype.nn=function(g){this.first.get(g);g.na()&&(g.data=-g.data)};k.prototype.Rm=function(g){this.first.get(g);var l=this.p.ka();this.ra.get(l);g.na()&&l.na()&&(g.data+=l.data,l.$d()&&g.ge());this.p.ca()};k.prototype.ln=function(g){this.first.get(g);var l=this.p.ka();this.ra.get(l);g.na()&&l.na()&&(g.data-=l.data,l.$d()&&g.ge());this.p.ca()};k.prototype.en=function(g){this.first.get(g);
var l=this.p.ka();this.ra.get(l);g.na()&&l.na()&&(g.data*=l.data,l.$d()&&g.ge());this.p.ca()};k.prototype.Um=function(g){this.first.get(g);var l=this.p.ka();this.ra.get(l);g.na()&&l.na()&&(g.data/=l.data,g.ge());this.p.ca()};k.prototype.dn=function(g){this.first.get(g);var l=this.p.ka();this.ra.get(l);g.na()&&l.na()&&(g.data%=l.data,l.$d()&&g.ge());this.p.ca()};k.prototype.jn=function(g){this.first.get(g);var l=this.p.ka();this.ra.get(l);g.na()&&l.na()&&(g.data=Math.pow(g.data,l.data),l.$d()&&g.ge());
this.p.ca()};k.prototype.Sm=function(g){this.first.get(g);var l=this.p.ka();this.ra.get(l);g.na()?l.dg()?g.Eb(g.data.toString()+l.data):g.data&&l.data?g.T(1):g.T(0):g.dg()&&(g.data=l.dg()?g.data+l.data:g.data+(Math.round(1E10*l.data)/1E10).toString());this.p.ca()};k.prototype.hn=function(g){this.first.get(g);var l=this.p.ka();this.ra.get(l);g.na()&&l.na()&&(g.data||l.data?g.T(1):g.T(0));this.p.ca()};k.prototype.Tm=function(g){this.first.get(g);g.data?this.ra.get(g):this.Gg.get(g)};k.prototype.Vm=
function(g){this.first.get(g);var l=this.p.ka();this.ra.get(l);g.T(g.data===l.data?1:0);this.p.ca()};k.prototype.gn=function(g){this.first.get(g);var l=this.p.ka();this.ra.get(l);g.T(g.data!==l.data?1:0);this.p.ca()};k.prototype.bn=function(g){this.first.get(g);var l=this.p.ka();this.ra.get(l);g.T(g.data<l.data?1:0);this.p.ca()};k.prototype.cn=function(g){this.first.get(g);var l=this.p.ka();this.ra.get(l);g.T(g.data<=l.data?1:0);this.p.ca()};k.prototype.Ym=function(g){this.first.get(g);var l=this.p.ka();
this.ra.get(l);g.T(g.data>l.data?1:0);this.p.ca()};k.prototype.Zm=function(g){this.first.get(g);var l=this.p.ka();this.ra.get(l);g.T(g.data>=l.data?1:0);this.p.ca()};k.prototype.Wm=function(g){var l=this.td.En();D(l)?g.r(l):g.Eb(l)};O=k;p.prototype.$d=function(){return this.type===R.Md};p.prototype.na=function(){return this.type===R.Nd||this.type===R.Md};p.prototype.dg=function(){return this.type===R.If};p.prototype.ge=function(){this.$d()||(this.dg()&&(this.data=parseFloat(this.data)),this.type=
R.Md)};p.prototype.T=function(g){this.type=R.Nd;this.data=Math.floor(g)};p.prototype.r=function(g){this.type=R.Md;this.data=g};p.prototype.Eb=function(g){this.type=R.If;this.data=g};p.prototype.To=function(g){D(g)?(this.type=R.Md,this.data=g):F(g)?(this.type=R.If,this.data=g.toString()):(this.type=R.Nd,this.data=0)};Db=p;R={Nd:0,Md:1,If:2}})();function S(k){this.b=k;this.fb=[]}
S.prototype.Ub=function(){var k={},p,g,l,d,a,b,c,f;k.waits=[];var h=k.waits,v;p=0;for(g=this.fb.length;p<g;p++){b=this.fb[p];v={t:b.time,st:b.Uo,s:b.fl,ev:b.Ke.G,sm:[],sols:{}};b.Ke.Kb[b.ob]&&(v.act=b.Ke.Kb[b.ob].G);l=0;for(d=b.aa.length;l<d;l++)v.sm.push(b.aa[l].G);for(a in b.bb)if(b.bb.hasOwnProperty(a)){c=this.b.k[parseInt(a,10)];f={sa:b.bb[a].Yk,insts:[]};l=0;for(d=b.bb[a].yd.length;l<d;l++)f.insts.push(b.bb[a].yd[l].uid);v.sols[c.G.toString()]=f}h.push(v)}return k};
S.prototype.Jc=function(k){k=k.waits;var p,g,l,d,a,b,c,f,h,v,n;p=this.fb.length=0;for(g=k.length;p<g;p++)if(b=k[p],f=this.b.nj[b.ev.toString()]){h=-1;l=0;for(d=f.Kb.length;l<d;l++)if(f.Kb[l].G===b.act){h=l;break}if(-1!==h){c={bb:{},aa:[],zj:!1};c.time=b.t;c.Uo=b.st||"";c.fl=!!b.s;c.Ke=f;c.ob=h;l=0;for(d=b.sm.length;l<d;l++)(f=this.b.Wf(b.sm[l]))&&c.aa.push(f);for(a in b.sols)if(b.sols.hasOwnProperty(a)&&(f=this.b.Wf(parseInt(a,10)))){h=b.sols[a];v={Yk:h.sa,yd:[]};l=0;for(d=h.insts.length;l<d;l++)(n=
this.b.Sj(h.insts[l]))&&v.yd.push(n);c.bb[f.index.toString()]=v}this.fb.push(c)}}};
(function(){function k(){}function p(){}function g(){}var l=S.prototype;k.prototype.Sl=w(!0);k.prototype.Rl=w(!0);k.prototype.Dl=function(){var a=this.b.Va();return a.kh?!1:!a.Bd};k.prototype.Si=w(!0);k.prototype.Kl=w(!0);k.prototype.Qg=w(!0);k.prototype.Tl=w(!0);k.prototype.Pg=w(!0);l.e=new k;p.prototype.u=function(a){this.b.$e||this.b.Fe||(this.b.Fe=a)};var d=[],a=[];l.m=new p;g.prototype["int"]=function(a,c){F(c)?(a.T(parseInt(c,10)),isNaN(a.data)&&(a.data=0)):a.T(c)};g.prototype["float"]=function(a,
c){F(c)?(a.r(parseFloat(c)),isNaN(a.data)&&(a.data=0)):a.r(c)};g.prototype.random=function(a,c,f){void 0===f?a.r(Math.random()*c):a.r(Math.random()*(f-c)+c)};g.prototype.sqrt=function(a,c){a.r(Math.sqrt(c))};g.prototype.round=function(a,c){a.T(Math.round(c))};g.prototype.floor=function(a,c){a.T(Math.floor(c))};g.prototype.ceil=function(a,c){a.T(Math.ceil(c))};g.prototype.sin=function(a,c){a.r(Math.sin(L(c)))};g.prototype.cos=function(a,c){a.r(Math.cos(L(c)))};g.prototype.tan=function(a,c){a.r(Math.tan(L(c)))};
g.prototype.acos=function(a,c){a.r(va(Math.acos(c)))};g.prototype.max=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var f,d,g;f=2;for(d=arguments.length;f<d;f++)g=arguments[f],"number"===typeof g&&c<g&&(c=g);a.r(c)};g.prototype.min=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var f,d,g;f=2;for(d=arguments.length;f<d;f++)g=arguments[f],"number"===typeof g&&c>g&&(c=g);a.r(c)};g.prototype.Td=function(a){a.r(this.b.Td)};g.prototype.Df=function(a){a.r(this.b.Df)};g.prototype.time=
function(a){a.r(this.b.be.Qa)};g.prototype.Kc=function(a){a.T(this.b.Kc)};g.prototype.ng=function(a){a.T(this.b.ng)};g.prototype.rh=function(a){a.T(this.b.rh)};g.prototype.i=function(a,c,f,d,g){a.r(va(Ca(c,f,d,g)))};g.prototype.left=function(a,c,f){a.Eb(F(c)?c.substr(0,f):"")};g.prototype.right=function(a,c,f){a.Eb(F(c)?c.substr(c.length-f):"")};g.prototype.replace=function(a,c,f,d){F(c)&&F(f)&&F(d)?a.Eb(c.replace(RegExp(La(f),"gi"),d)):a.Eb(F(c)?c:"")};g.prototype.tm=function(a){var c=K(Math.random()*
(arguments.length-1));a.To(arguments[c+1])};g.prototype.fh=function(a){a.r(this.b.fh/1E3)};g.prototype.lg=function(a){a.r(this.b.lg)};l.ac=new g;l.Lo=function(){var b,c,f,h,g,n,l=this.b.Va();b=0;for(f=this.fb.length;b<f;b++){h=this.fb[b];if(-1===h.time){if(!h.fl)continue}else if(h.time>this.b.be.Qa)continue;l.Nb=h.Ke;l.ob=h.ob;l.Na=0;for(c in h.bb)h.bb.hasOwnProperty(c)&&(g=this.b.k[parseInt(c,10)].S(),n=h.bb[c],g.V=n.Yk,sa(g.d,n.yd),g=n,g.yd.length=0,a.push(g));h.Ke.Ko();this.b.eh(h.aa);h.zj=!0}c=
b=0;for(f=this.fb.length;b<f;b++)h=this.fb[b],this.fb[c]=h,h.zj?(Ja(h.bb),h.aa.length=0,d.push(h)):c++;this.fb.length=c}})();
(function(){Ua=function(k){var g=k[0].prototype,l=k[1],d=k[3],a=k[4],b=k[5],c=k[6],f=k[7];k=k[8];g.e||(g.e={});g.m||(g.m={});g.ac||(g.ac={});var h=g.e,v=g.m,g=g.ac;d&&(h.yp=function(a,b){return Eb(this.x,a,b)},h.zp=function(a,b){return Eb(this.y,a,b)},h.Ip=function(){var a=this.g;this.Ga();var b=this.Ha;return!(b.right<a.ya||b.bottom<a.za||b.left>a.eb||b.top>a.cb)},h.Jp=function(){this.Ga();var a=this.Ha,b=this.b.J;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},h.Vp=function(a,b,c){var f=
this.S(),d=f.Pb();if(!d.length)return!1;var h=d[0],g=h,l=Ga(h.x,h.y,b,c),k,s,p;k=1;for(s=d.length;k<s;k++)if(h=d[k],p=Ga(h.x,h.y,b,c),0===a&&p<l||1===a&&p>l)l=p,g=h;f.sf(g);return!0},v.pq=function(a){this.x!==a&&(this.x=a,this.wa())},v.qq=function(a){this.y!==a&&(this.y=a,this.wa())},v.kq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.wa()},v.lq=function(a,b){var c=a.An(this);if(c){var f;c.yh?(f=c.yh(b,!0),c=c.yh(b,!1)):(f=c.x,c=c.y);if(this.x!==f||this.y!==c)this.x=f,this.y=c,this.wa()}},
v.Op=function(a){0!==a&&(this.x+=Math.cos(this.i)*a,this.y+=Math.sin(this.i)*a,this.wa())},v.Np=function(a,b){0!==b&&(this.x+=Math.cos(L(a))*b,this.y+=Math.sin(L(a))*b,this.wa())},g.Wi=function(a){a.r(this.x)},g.Yi=function(a){a.r(this.y)},g.Td=function(a){a.r(this.b.Nj(this))});a&&(h.xp=function(a,b){return Eb(this.width,a,b)},h.up=function(a,b){return Eb(this.height,a,b)},v.Yl=function(a){this.width!==a&&(this.width=a,this.wa())},v.hq=function(a){this.height!==a&&(this.height=a,this.wa())},v.mq=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.wa()},g.uq=function(a){a.r(this.width)},g.Cp=function(a){a.r(this.height)},g.qp=function(a){this.Ga();a.r(this.Ha.left)},g.sp=function(a){this.Ga();a.r(this.Ha.top)},g.rp=function(a){this.Ga();a.r(this.Ha.right)},g.pp=function(a){this.Ga();a.r(this.Ha.bottom)});b&&(h.op=function(a,b){return Da(this.i,L(b))<=L(a)},h.Gp=function(a){return Fa(this.i,L(a))},h.Ep=function(a,b){var c=Ba(a),f=Ba(b),d=za(this.i);return Fa(f,
c)?Fa(d,c)&&!Fa(d,f):!(!Fa(d,c)&&Fa(d,f))},v.cq=function(a){a=L(xa(a));isNaN(a)||this.i===a||(this.i=a,this.wa())},v.Zp=function(a){0===a||isNaN(a)||(this.i+=L(a),this.i=za(this.i),this.wa())},v.$p=function(a){0===a||isNaN(a)||(this.i-=L(a),this.i=za(this.i),this.wa())},v.aq=function(a,b){var c=Ea(this.i,L(b),L(a));isNaN(c)||this.i===c||(this.i=c,this.wa())},v.bq=function(a,b,c){a=Ea(this.i,Math.atan2(c-this.y,b-this.x),L(a));isNaN(a)||this.i===a||(this.i=a,this.wa())},v.nq=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.i===c||(this.i=c,this.wa())},g.np=function(a){a.r(Aa(this.i))});l||(h.vp=function(a,b,c){return Eb(this.fa[a],b,c)},h.Fp=function(a){return this.fa[a]},h.Wp=function(a,b){var c=this.S(),f=c.Pb();if(!f.length)return!1;var d=f[0],h=d,g=d.fa[b],l,k,s;l=1;for(k=f.length;l<k;l++)if(d=f[l],s=d.fa[b],0===a&&s<g||1===a&&s>g)g=s,h=d;c.sf(h);return!0},h.Up=function(a){var b,c,f,d,h;if(this.b.un().Hh){h=this.S();if(h.V)for(h.V=!1,h.d.length=0,h.L.length=0,f=this.d,b=0,c=f.length;b<
c;b++)d=f[b],d.uid===a?h.L.push(d):h.d.push(d);else{f=b=0;for(c=h.d.length;b<c;b++)d=h.d[b],h.d[f]=d,d.uid===a?h.L.push(d):f++;h.d.length=f}this.rc();return!!h.d.length}d=this.b.Sj(a);if(!d)return!1;h=this.S();if(!h.V&&-1===h.d.indexOf(d))return!1;if(this.H)for(a=d.type.U,b=0,c=a.length;b<c;b++){if(a[b]===this)return h.sf(d),this.rc(),!0}else if(d.type===this)return h.sf(d),this.rc(),!0;return!1},h.Ll=w(!0),h.Ml=w(!0),v.iq=function(a,b){var c=this.fa;D(c[a])?c[a]=D(b)?b:parseFloat(b):F(c[a])&&(c[a]=
F(b)?b:b.toString())},v.mp=function(a,b){var c=this.fa;D(c[a])?c[a]=D(b)?c[a]+b:c[a]+parseFloat(b):F(c[a])&&(c[a]=F(b)?c[a]+b:c[a]+b.toString())},v.rq=function(a,b){var c=this.fa;D(c[a])&&(c[a]=D(b)?c[a]-b:c[a]-parseFloat(b))},v.dq=function(a,b){this.fa[a]=b?1:0},v.sq=function(a){this.fa[a]=1-this.fa[a]},v.Bp=function(){this.b.Ld(this)},v.Gl||(v.Gl=function(a){var b,c;try{b=JSON.parse(a)}catch(f){return}this.b.kg(this,b,!0);this.md&&this.md();if(this.C)for(a=0,b=this.C.length;a<b;++a)c=this.C[a],
c.md&&c.md()}),g.Ap=function(a){var b=a.he.d.length,c,f,d;c=0;for(f=this.b.Ua.length;c<f;c++)d=this.b.Ua[c],a.he.H?0<=d.type.U.indexOf(a.he)&&b++:d.type===a.he&&b++;a.T(b)},g.Yp=function(a){a.T(a.he.S().Pb().length)},g.tq=function(a){a.T(this.uid)},g.Dp=function(a){a.T(this.Se())},g.Cl||(g.Cl=function(a){a.Eb(JSON.stringify(this.b.Bi(this,!0)))}));c&&(h.Kp=ca("visible"),v.oq=function(a){!a!==!this.visible&&(this.visible=a,this.b.R=!0)},h.wp=function(a,b){return Eb(Qa(100*this.opacity),a,b)},v.jq=
function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.R=!0)},g.Opacity=function(a){a.r(Qa(100*this.opacity))});f&&(h.Hp=function(a){return a?this.g===a:!1},h.Xp=function(a){var b=this.S(),c=b.Pb();if(!c.length)return!1;var f=c[0],d=f,h,g;h=1;for(g=c.length;h<g;h++)if(f=c[h],0===a){if(f.g.index>d.g.index||f.g.index===d.g.index&&f.kb()>d.kb())d=f}else if(f.g.index<d.g.index||f.g.index===d.g.index&&f.kb()<d.kb())d=f;b.sf(d);return!0},v.Rp=function(){var a=this.kb();a!==this.g.d.length-
1&&(ra(this.g.d,a),this.g.d.push(this),this.b.R=!0,this.g.gb=!0)},v.Pp=function(){var a=this.kb();0!==a&&(ra(this.g.d,a),this.g.d.unshift(this),this.b.R=!0,this.g.gb=!0)},v.Qp=function(a){a&&a!=this.g&&(ra(this.g.d,this.kb()),this.g.gb=!0,this.g=a,this.Kd=a.d.length,a.d.push(this),this.b.R=!0)},v.wq=function(a,b){var c=0===a;if(b){var f=b.vn(this);if(f&&f.uid!==this.uid){this.g.index!==f.g.index&&(ra(this.g.d,this.kb()),this.g.gb=!0,this.g=f.g,this.Kd=f.g.d.length,f.g.d.push(this));var d=this.kb(),
f=f.kb();ra(this.g.d,d);d<f&&f--;c&&f++;f===this.g.d.length?this.g.d.push(this):this.g.d.splice(f,0,this);this.g.gb=!0;this.b.R=!0}}},g.Mp=function(a){a.T(this.g.Bk)},g.Lp=function(a){a.Eb(this.g.name)},g.vq=function(a){a.T(this.kb())});k&&(v.fq=function(a,b){if(this.b.q){var c=this.type.xh(b);if(!(0>c)){var f=1===a;this.Oc[c]!==f&&(this.Oc[c]=f,this.Mc(),this.b.R=!0)}}},v.gq=function(a,b,c){if(this.b.q){var f=this.type.xh(a);0>f||(a=this.type.A[f],f=this.Y[f],b=Math.floor(b),0>b||b>=f.length||(1===
this.b.q.Dn(a.xa,b)&&(c/=100),f[b]!==c&&(f[b]=c,a.hb&&(this.b.R=!0))))}})};mb=function(){this.ah=this.Vg=!0;this.type.gj=!0;this.b.R=!0;var k,g,l=this.Wg;k=0;for(g=l.length;k<g;++k)l[k](this)};nb=function(k){k&&this.Wg.push(k)};pb=function(){if(this.Vg){var k=this.Ha,g=this.qd;k.set(this.x,this.y,this.x+this.width,this.y+this.height);k.offset(-this.Ya*this.width,-this.Za*this.height);this.i?(k.offset(-this.x,-this.y),g.cl(k,this.i),g.offset(this.x,this.y),g.oj(k)):g.yg(k);k.normalize();this.Vg=!1}};
var k=new oa(0,0,0,0);qb=function(){if(this.ah&&this.Ge){this.Ga();var p=this.type.tj,g=this.Kf,l=this.Ha;k.set(p.Xi(l.left),p.Zi(l.top),p.Xi(l.right),p.Zi(l.bottom));g.Qm(k)||(g.right<g.left?p.update(this,null,k):p.update(this,g,k),g.copy(k),this.ah=!1)}};ob=function(k,g){return this.Ha.Mb(k,g)&&this.qd.Mb(k,g)?this.Xb&&!this.Xb.lo()?(this.Xb.om(this.width,this.height,this.i),this.Xb.Mb(k-this.x,g-this.y)):!0:!1};ib=function(){this.type.Ng();return this.wd};rb=function(){this.g.fp();return this.Kd};
sb=function(){this.K.length=0;var k,g;k=0;for(g=this.Oc.length;k<g;k++)this.Oc[k]&&this.K.push(this.type.A[k]);this.Al=!!this.K.length};jb=function(){return"Inst"+this.Uk};Xa=function(k){if(k&&k.Rb&&k.type!=this){var g,l,d;g=0;for(l=k.siblings.length;g<l;g++)if(d=k.siblings[g],d.type==this)return d}k=this.S().Pb();return k.length?k[0]:null};Ya=function(k){var g=this.S().Pb();return g.length?g[k.Se()%g.length]:null};Wa=function(){if(this.re&&!this.H){var k,g;k=0;for(g=this.d.length;k<g;k++)this.d[k].wd=
k;var l=k,d=this.b.Ua;k=0;for(g=d.length;k<g;++k)d[k].type===this&&(d[k].wd=l++);this.re=!1}};gb=function(k){if(k<this.d.length)return this.d[k];k-=this.d.length;var g=this.b.Ua,l,d;l=0;for(d=g.length;l<d;++l)if(g[l].type===this){if(0===k)return g[l];--k}return null};Za=function(){return this.kd[this.xc]};$a=function(){this.xc++;this.xc===this.kd.length?this.kd.push(new Va(this)):this.kd[this.xc].V=!0};ab=function(){this.xc++;this.xc===this.kd.length&&this.kd.push(new Va(this));var k=this.kd[this.xc],
g=this.kd[this.xc-1];g.V?k.V=!0:(k.V=!1,sa(k.d,g.d),sa(k.L,g.L))};bb=function(){this.xc--};cb=function(k){var g,l,d,a,b,c=0;if(!this.H)for(g=0,l=this.U.length;g<l;g++)for(b=this.U[g],d=0,a=b.ba.length;d<a;d++){if(k===b.ba[d].name)return this.Z.gk=c,b.ba[d];c++}g=0;for(l=this.ba.length;g<l;g++){if(k===this.ba[g].name)return this.Z.gk=c,this.ba[g];c++}return null};db=function(k){return this.Uf(k)?this.Z.gk:-1};eb=function(k){var g,l;g=0;for(l=this.A.length;g<l;g++)if(this.A[g].name===k)return g;return-1};
fb=function(){if(this.Rb&&!this.H){var k,g,l,d,a,b,c;this.Ng();b=this.S();var f=b.V,h=(k=this.b.Va())&&k.Nb&&k.Nb.gc;k=0;for(g=this.Ta.length;k<g;k++)if(a=this.Ta[k],a!==this&&(a.Ng(),c=a.S(),c.V=f,!f)){c.d.length=b.d.length;l=0;for(d=b.d.length;l<d;l++)c.d[l]=a.Pj(b.d[l].wd);if(h)for(c.L.length=b.L.length,l=0,d=b.L.length;l<d;l++)c.L[l]=a.Pj(b.L[l].wd)}}};hb=function(){return"Type"+this.G};Eb=function(k,g,l){if("undefined"===typeof k||"undefined"===typeof l)return!1;switch(g){case 0:return k===l;
case 1:return k!==l;case 2:return k<l;case 3:return k<=l;case 4:return k>l;case 5:return k>=l;default:return!1}}})();var Nb={};function V(k){this.b=k}
(function(){function k(){}function p(){}var g=V.prototype;g.pc=function(a){this.ja=a;this.b=a.b};g.pc.prototype.oa=ba();g.nb=function(a){this.type=a;this.b=a.b;this.Xg=Array(4);this.pl=this.Kg=this.te=this.ad=this.$c=0;this.Ah=!1};var l=g.nb.prototype;l.oa=function(){var a=this;if(!this.b.ga){jQuery(document).mousemove(function(b){a.fi(b)});jQuery(document).mousedown(function(b){a.ei(b)});jQuery(document).mouseup(function(b){a.gi(b)});jQuery(document).dblclick(function(b){a.wo(b)});var b=function(b){a.yo(b)};
document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var d={left:0,top:0};l.fi=function(a){var b=this.b.ga?d:jQuery(this.b.canvas).offset();this.$c=a.pageX-b.left;this.ad=a.pageY-b.top};l.wk=function(){return 0<this.b.Oa?!0:0<=this.$c&&0<=this.ad&&this.$c<this.b.width&&this.ad<this.b.height};l.ei=function(a){this.wk()&&(this.b.Xd&&!this.b.yb&&a.preventDefault(),this.Xg[a.which]=!0,this.b.Ia=!0,this.b.trigger(V.prototype.e.Jl,this),this.te=a.which-1,this.Kg=
0,this.b.trigger(V.prototype.e.Ri,this),this.b.trigger(V.prototype.e.W,this),this.b.Ia=!1)};l.gi=function(a){this.Xg[a.which]&&(this.b.Xd&&!this.b.yb&&a.preventDefault(),this.b.Xd=!0,this.Xg[a.which]=!1,this.b.Ia=!0,this.te=a.which-1,this.b.trigger(V.prototype.e.Ul,this),this.b.Ia=!1)};l.wo=function(a){this.wk()&&(a.preventDefault(),this.b.Ia=!0,this.te=a.which-1,this.Kg=1,this.b.trigger(V.prototype.e.Ri,this),this.b.trigger(V.prototype.e.W,this),this.b.Ia=!1)};l.yo=function(a){this.pl=0>(a.wheelDelta?
a.wheelDelta:a.detail?-a.detail:0)?0:1;this.Ah=!1;this.b.Ia=!0;this.b.trigger(V.prototype.e.Xl,this);this.b.Ia=!1;this.Ah&&a.preventDefault()};k.prototype.Ri=function(a,b){return a===this.te&&b===this.Kg};k.prototype.Jl=w(!0);k.prototype.Ul=function(a){return a===this.te};k.prototype.W=function(a,b,c){return a!==this.te||b!==this.Kg?!1:this.b.Bf(c,this.$c,this.ad)};k.prototype.Xl=function(a){this.Ah=!0;return a===this.pl};g.e=new k;g.m=new (ba());p.prototype.Wi=function(a,b){var c,f,d,g,k;ga(b)?(c=
this.b.Cc(0),f=c.scale,d=c.Ra,g=c.Bb,k=c.i,c.scale=this.b.J.scale,c.Ra=1,c.Bb=1,c.i=this.b.J.i,a.r(c.ea(this.$c,this.ad,!0)),c.scale=f,c.Ra=d,c.Bb=g,c.i=k):(c=D(b)?this.b.Cc(b):this.b.Qe(b))?a.r(c.ea(this.$c,this.ad,!0)):a.r(0)};p.prototype.Yi=function(a,b){var c,f,d,g,k;ga(b)?(c=this.b.Cc(0),f=c.scale,d=c.Ra,g=c.Cb,k=c.i,c.scale=this.b.J.scale,c.Ra=1,c.Cb=1,c.i=this.b.J.i,a.r(c.ea(this.$c,this.ad,!1)),c.scale=f,c.Ra=d,c.Cb=g,c.i=k):(c=D(b)?this.b.Cc(b):this.b.Qe(b))?a.r(c.ea(this.$c,this.ad,!1)):
a.r(0)};g.ac=new p})();function T(k){this.b=k}
(function(){function k(){if(0===this.ih.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.qe?b.drawImage(this.Fa,this.ie,this.je,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Fa,0,0,this.width,this.height);this.ih=a.toDataURL("image/png")}return this.ih}function p(){}var g=T.prototype;g.pc=function(a){this.ja=a;this.b=a.b};var l=g.pc.prototype;l.oa=function(){if(!this.H){var a,b,c,d,g,e,l,p,m;this.Lb=[];this.$f=
!1;a=0;for(b=this.Sa.length;a<b;a++){g=this.Sa[a];l={};l.name=g[0];l.speed=g[1];l.loop=g[2];l.ti=g[3];l.wg=g[4];l.Nk=g[5];l.G=g[6];l.frames=[];c=0;for(d=g[7].length;c<d;c++)e=g[7][c],p={},p.ll=e[0],p.ml=e[1],p.ie=e[2],p.je=e[3],p.width=e[4],p.height=e[5],p.duration=e[6],p.Ya=e[7],p.Za=e[8],p.Dh=e[9],p.rg=e[10],p.Ok=e[11],p.qe=0!==p.width,p.ih="",p.Bq=k,m={left:0,top:0,right:1,bottom:1},p.Di=m,p.Nc=null,(m=this.b.qn(e[0]))?p.Fa=m:(p.Fa=new Image,p.Fa.idtkLoadDisposed=!0,p.Fa.src=e[0],p.Fa.vm=e[0],
p.Fa.um=e[1],p.Fa.nm=null,this.b.lp(p.Fa)),l.frames.push(p),this.Lb.push(p);this.Sa[a]=l}}};l.ep=function(){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.Nf=c.ub.Nc};l.di=function(){if(!this.H){var a,b,c;a=0;for(b=this.Lb.length;a<b;++a)c=this.Lb[a],c.Fa.nm=null,c.Nc=null}};l.Hk=function(){if(!this.H&&this.d.length){var a,b,c;a=0;for(b=this.Lb.length;a<b;++a)c=this.Lb[a],c.Nc=this.b.q.ok(c.Fa,this.b.M,c.Ok);this.ep()}};l.po=function(){if(!this.H&&!this.$f&&this.b.q){var a,b,c;a=0;for(b=
this.Lb.length;a<b;++a)c=this.Lb[a],c.Nc=this.b.q.ok(c.Fa,this.b.M,c.Ok);this.$f=!0}};l.xl=function(){if(!this.H&&!this.d.length&&this.$f){var a,b,c;a=0;for(b=this.Lb.length;a<b;++a)c=this.Lb[a],this.b.q.deleteTexture(c.Nc),c.Nc=null;this.$f=!1}};var d=[];l.Rk=function(a){var b,c,g;b=d.length=0;for(c=this.Lb.length;b<c;++b)g=this.Lb[b].Fa,-1===d.indexOf(g)&&(a.drawImage(g,0,0),d.push(g))};g.nb=function(a){this.type=a;this.b=a.b;a=this.type.Sa[0].frames[0].rg;this.Db?this.Xb.xf(a):this.Xb=new Ma(a)};
var a=g.nb.prototype;a.oa=function(){this.visible=0===this.Da[0];this.Ge=0!==this.Da[3];1===this.type.Sa.length&&1===this.type.Sa[0].frames.length||0===this.type.Sa[0].speed||this.b.nl(this);this.X=this.Kj(this.Da[1])||this.type.Sa[0];this.n=this.Da[2];0>this.n&&(this.n=0);this.n>=this.X.frames.length&&(this.n=this.X.frames.length-1);var a=this.X.frames[this.n];this.Xb.xf(a.rg);this.Ya=a.Ya;this.Za=a.Za;this.Ie=this.X.speed;this.Db?this.Wb.reset():this.Wb=new Ka;this.Bc=this.Wb.Qa;this.od=!0;this.qc=
0;this.nd=!0;this.dh=this.ej="";this.rm=0;this.bh=-1;this.type.po();var b,c,d,g,e,k,l,a=0;for(b=this.type.Sa.length;a<b;a++)for(g=this.type.Sa[a],c=0,d=g.frames.length;c<d;c++)e=g.frames[c],0===e.width&&(e.width=e.Fa.width,e.height=e.Fa.height),e.qe&&(l=e.Fa,k=e.Di,k.left=e.ie/l.width,k.top=e.je/l.height,k.right=(e.ie+e.width)/l.width,k.bottom=(e.je+e.height)/l.height,0===e.ie&&0===e.je&&e.width===l.width&&e.height===l.height&&(e.qe=!1));this.ub=this.X.frames[this.n];this.Nf=this.ub.Nc};a.Ub=function(){var a=
{a:this.X.G,f:this.n,cas:this.Ie,fs:this.Bc,ar:this.qc,at:this.Wb.Qa};this.od||(a.ap=this.od);this.nd||(a.af=this.nd);return a};a.Jc=function(a){var b=this.sn(a.a);b&&(this.X=b);this.n=a.f;0>this.n&&(this.n=0);this.n>=this.X.frames.length&&(this.n=this.X.frames.length-1);this.Ie=a.cas;this.Bc=a.fs;this.qc=a.ar;this.Wb.reset();this.Wb.Qa=a.at;this.od=a.hasOwnProperty("ap")?a.ap:!0;this.nd=a.hasOwnProperty("af")?a.af:!0;this.ub=this.X.frames[this.n];this.Nf=this.ub.Nc;this.Xb.xf(this.ub.rg);this.Ya=
this.ub.Ya;this.Za=this.ub.Za};a.Ug=function(a){this.n=a?0:this.X.frames.length-1;this.od=!1;this.ej=this.X.name;this.b.trigger(T.prototype.e.Il,this);this.b.trigger(T.prototype.e.Hl,this);this.qc=0};a.Dq=function(){return this.Wb.Qa};a.Id=function(){this.Wb.add(this.b.Nj(this));this.dh.length&&this.zm();0<=this.bh&&this.Am();var a=this.Wb.Qa,b=this.X,c=b.frames[this.n],d=c.duration/this.Ie;this.od&&a>=this.Bc+d&&(this.nd?this.n++:this.n--,this.Bc+=d,this.n>=b.frames.length&&(b.Nk?(this.nd=!1,this.n=
b.frames.length-2):b.loop?this.n=b.wg:(this.qc++,this.qc>=b.ti?this.Ug(!1):this.n=b.wg)),0>this.n&&(b.Nk?(this.n=1,this.nd=!0,b.loop||(this.qc++,this.qc>=b.ti&&this.Ug(!0))):b.loop?this.n=b.wg:(this.qc++,this.qc>=b.ti?this.Ug(!0):this.n=b.wg)),0>this.n?this.n=0:this.n>=b.frames.length&&(this.n=b.frames.length-1),a>this.Bc+b.frames[this.n].duration/this.Ie&&(this.Bc=a),a=b.frames[this.n],this.Od(c,a),this.b.R=!0)};a.Kj=function(a){var b,c,d;b=0;for(c=this.type.Sa.length;b<c;b++)if(d=this.type.Sa[b],
Ra(d.name,a))return d;return null};a.sn=function(a){var b,c,d;b=0;for(c=this.type.Sa.length;b<c;b++)if(d=this.type.Sa[b],d.G===a)return d;return null};a.zm=function(){var a=this.X.frames[this.n],b=this.Kj(this.dh);this.dh="";!b||Ra(b.name,this.X.name)&&this.od||(this.X=b,this.Ie=b.speed,0>this.n&&(this.n=0),this.n>=this.X.frames.length&&(this.n=this.X.frames.length-1),1===this.rm&&(this.n=0),this.od=!0,this.Bc=this.Wb.Qa,this.nd=!0,this.Od(a,this.X.frames[this.n]),this.b.R=!0)};a.Am=function(){var a=
this.X.frames[this.n],b=this.n;this.n=K(this.bh);0>this.n&&(this.n=0);this.n>=this.X.frames.length&&(this.n=this.X.frames.length-1);b!==this.n&&(this.Od(a,this.X.frames[this.n]),this.Bc=this.Wb.Qa,this.b.R=!0);this.bh=-1};a.Od=function(a,b){var c=a.width,d=a.height,g=b.width,e=b.height;c!=g&&(this.width*=g/c);d!=e&&(this.height*=e/d);this.Ya=b.Ya;this.Za=b.Za;this.Xb.xf(b.rg);this.wa();this.ub=b;this.Nf=b.Nc;c=0;for(d=this.C.length;c<d;c++)g=this.C[c],g.xo&&g.xo(a,b);this.b.trigger(T.prototype.e.Od,
this)};a.yc=function(a){a.globalAlpha=this.opacity;var b=this.ub,c=b.qe,d=b.Fa,g=this.x,e=this.y,k=this.width,l=this.height;if(0===this.i&&0<=k&&0<=l)g-=this.Ya*k,e-=this.Za*l,this.b.dd&&(g=g+0.5|0,e=e+0.5|0),c?a.drawImage(d,b.ie,b.je,b.width,b.height,g,e,k,l):a.drawImage(d,g,e,k,l);else{this.b.dd&&(g=g+0.5|0,e=e+0.5|0);a.save();var m=0<k?1:-1,p=0<l?1:-1;a.translate(g,e);1===m&&1===p||a.scale(m,p);a.rotate(this.i*m*p);g=0-this.Ya*ja(k);e=0-this.Za*ja(l);c?a.drawImage(d,b.ie,b.je,b.width,b.height,
g,e,ja(k),ja(l)):a.drawImage(d,g,e,ja(k),ja(l));a.restore()}};a.Ob=function(a){a.mb(this.Nf);a.ne(this.opacity);var b=this.ub,c=this.qd;if(this.b.dd){var d=(this.x+0.5|0)-this.x,g=(this.y+0.5|0)-this.y;b.qe?a.ed(c.Ka+d,c.La+g,c.Hb+d,c.Ib+g,c.sb+d,c.tb+g,c.qb+d,c.rb+g,b.Di):a.ug(c.Ka+d,c.La+g,c.Hb+d,c.Ib+g,c.sb+d,c.tb+g,c.qb+d,c.rb+g)}else b.qe?a.ed(c.Ka,c.La,c.Hb,c.Ib,c.sb,c.tb,c.qb,c.rb,b.Di):a.ug(c.Ka,c.La,c.Hb,c.Ib,c.sb,c.tb,c.qb,c.rb)};a.xn=function(a){var b=this.ub,c,d;c=0;for(d=b.Dh.length;c<
d;c++)if(Ra(a,b.Dh[c][0]))return c;return-1};a.yh=function(a,b){var c=this.ub,d=c.Dh,g;g=F(a)?this.xn(a):a-1;g=K(g);if(0>g||g>=d.length)return b?this.x:this.y;var e=(d[g][1]-c.Ya)*this.width,d=d[g][2],d=(d-c.Za)*this.height,c=Math.cos(this.i);g=Math.sin(this.i);var k=e*c-d*g,d=d*c+e*g,e=k+this.x,d=d+this.y;return b?e:d};var b=new fa,c=!1;l.finish=function(a){if(c){if(a){var d=this.b.Va().Nb.gc;a=null.S();var g=b.we(),k,l;if(a.V){a.V=!1;a.d.length=g.length;k=0;for(l=g.length;k<l;k++)a.d[k]=g[k];if(d)for(k=
a.L.length=0,l=null.d.length;k<l;k++)g=null.d[k],b.contains(g)||a.L.push(g)}else if(d)for(d=a.d.length,a.d.length=d+g.length,k=0,l=g.length;k<l;k++)a.d[d+k]=g[k],ua(a.L,g[k]);else sa(a.d,g);null.rc()}b.clear();c=!1}};p.prototype.Hl=function(a){return Ra(this.ej,a)};p.prototype.Il=w(!0);p.prototype.Od=w(!0);g.e=new p;g.m=new (ba());g.ac=new (ba())})();function W(k){this.b=k}
(function(){function k(){return a.length?a.pop():{}}function p(b){var c,d;c=0;for(d=b.length;c<d;c++)a.push(b[c]);b.length=0}var g=W.prototype;g.oa=function(){g.m.Yl=function(a){this.width!==a&&(this.width=a,this.se=!0,this.wa())}};g.pc=function(a){this.ja=a;this.b=a.b};var l=g.pc.prototype;l.oa=ba();l.di=function(){if(!this.H){var a,c,d;a=0;for(c=this.d.length;a<c;a++)d=this.d[a],d.fc=null,d.Fd=null,d.ab=null}};g.nb=function(a){this.type=a;this.b=a.b;this.Db?this.Yc.length=0:this.Yc=[];this.se=!0};
l=g.nb.prototype;l.oa=function(){this.text=this.Da[0];this.visible=0===this.Da[1];this.font=this.Da[2];this.color=this.Da[3];this.Zf=this.Da[4];this.Og=this.Da[5];this.Qi=0===this.Da[7];this.Rh=this.gg=this.width;this.fg=this.height;this.Th=this.Da[8];this.Sf=this.Ud="";this.jl=this.kl=this.uf=0;this.zo();this.ab=this.Fd=this.fc=null;this.zk=!1;this.ff=this.b.Kc;this.Db?this.me.set(0,0,1,1):this.me=new oa(0,0,1,1);this.b.q&&this.b.nl(this)};l.zo=function(){var a=this.font.split(" "),c;for(c=0;c<a.length;c++)if("pt"===
a[c].substr(a[c].length-2,2)){this.uf=parseInt(a[c].substr(0,a[c].length-2));this.pi=Math.ceil(96*(this.uf/72))+4;0<c&&(this.Sf=a[c-1]);this.Ud=a[c+1];for(c+=2;c<a.length;c++)this.Ud+=" "+a[c];break}};l.Ub=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Zf,va:this.Og,wr:this.Qi,lho:this.Th,fn:this.Ud,fs:this.Sf,ps:this.uf,pxh:this.pi,tw:this.kl,th:this.jl,lrt:this.ff}};l.Jc=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.Zf=a.ha;this.Og=a.va;this.Qi=a.wr;this.Th=a.lho;this.Ud=
a.fn;this.Sf=a.fs;this.uf=a.ps;this.pi=a.pxh;this.kl=a.tw;this.jl=a.th;this.ff=a.lrt;this.se=!0;this.Rh=this.gg=this.width;this.fg=this.height};l.Id=function(){if(this.b.q&&this.ab&&300<=this.b.Kc-this.ff){var a=this.g;this.Ga();var c=this.Ha;if(c.right<a.ya||c.bottom<a.za||c.left>a.eb||c.top>a.cb)this.b.q.deleteTexture(this.ab),this.fc=this.Fd=this.ab=null}};l.pg=function(){this.fc=this.Fd=null;this.b.q&&this.ab&&this.b.q.deleteTexture(this.ab);this.ab=null};l.Nq=function(){this.font=this.Sf+" "+
this.uf.toString()+"pt "+this.Ud;this.se=!0;this.b.R=!0};l.yc=function(a,c){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=c?1:this.opacity;var d=1;c&&(d=this.g.Wa(),a.save(),a.scale(d,d));if(this.se||this.width!==this.Rh)this.type.ja.$l(this.text,this.Yc,a,this.width,this.Qi),this.se=!1,this.Rh=this.width;this.Ga();var d=c?0:this.qd.Ka,g=c?0:this.qd.La;this.b.dd&&(d=d+0.5|0,g=g+0.5|0);0===this.i||c||(a.save(),a.translate(d,g),a.rotate(this.i),g=d=0);var k=g+this.height,
l=this.pi,l=l+this.Th,p,e;1===this.Og?g+=Math.max(this.height/2-this.Yc.length*l/2,0):2===this.Og&&(g+=Math.max(this.height-this.Yc.length*l-2,0));for(e=0;e<this.Yc.length&&!(p=d,1===this.Zf?p=d+(this.width-this.Yc[e].width)/2:2===this.Zf&&(p=d+(this.width-this.Yc[e].width)),a.fillText(this.Yc[e].text,p,g),g+=l,g>=k-l);e++);(0!==this.i||c)&&a.restore();this.ff=this.b.Kc};l.Ob=function(a){if(!(1>this.width||1>this.height)){var c=this.se||this.zk;this.zk=!1;var d=this.g.Wa(),g=this.g.jb(),k=this.me,
l=d*this.width,p=d*this.height,e=Math.ceil(l),t=Math.ceil(p),u=this.b.F/2,m=this.b.D/2;this.Fd||(this.fc=document.createElement("canvas"),this.fc.width=e,this.fc.height=t,this.gg=e,this.fg=t,c=!0,this.Fd=this.fc.getContext("2d"));if(e!==this.gg||t!==this.fg)this.fc.width=e,this.fc.height=t,this.ab&&(a.deleteTexture(this.ab),this.ab=null),c=!0;c&&(this.Fd.clearRect(0,0,e,t),this.yc(this.Fd,!0),this.ab||(this.ab=a.tc(e,t,this.b.M,this.b.yb)),a.kp(this.fc,this.ab,this.b.yb));this.gg=e;this.fg=t;a.mb(this.ab);
a.ne(this.opacity);a.hc();a.translate(-u,-m);a.nc();var r=this.qd,c=this.g.ia(r.Ka,r.La,!0),u=this.g.ia(r.Ka,r.La,!1),m=this.g.ia(r.Hb,r.Ib,!0),y=this.g.ia(r.Hb,r.Ib,!1),B=this.g.ia(r.sb,r.tb,!0),s=this.g.ia(r.sb,r.tb,!1),H=this.g.ia(r.qb,r.rb,!0),r=this.g.ia(r.qb,r.rb,!1);if(this.b.dd||0===this.i&&0===g)var E=(c+0.5|0)-c,ea=(u+0.5|0)-u,c=c+E,u=u+ea,m=m+E,y=y+ea,B=B+E,s=s+ea,H=H+E,r=r+ea;0===this.i&&0===g?(m=c+e,y=u,B=m,s=u+t,H=c,r=s,k.right=1,k.bottom=1):(k.right=l/e,k.bottom=p/t);a.ed(c,u,m,y,B,
s,H,r,k);a.hc();a.scale(d,d);a.wi(-this.g.jb());a.translate((this.g.ya+this.g.eb)/-2,(this.g.za+this.g.cb)/-2);a.nc();this.ff=this.b.Kc}};var d=[];g.Zl=function(a){d.length=0;for(var c="",f,g=0;g<a.length;)if(f=a.charAt(g),"\n"===f)c.length&&(d.push(c),c=""),d.push("\n"),++g;else if(" "===f||"\t"===f||"-"===f){do c+=a.charAt(g),g++;while(g<a.length&&(" "===a.charAt(g)||"\t"===a.charAt(g)));d.push(c);c=""}else g<a.length&&(c+=f,g++);c.length&&d.push(c)};var a=[];g.$l=function(a,c,d,g,l){if(a&&a.length)if(2>=
g)p(c);else{if(100>=a.length&&-1===a.indexOf("\n")){var n=d.measureText(a).width;if(n<=g){p(c);c.push(k());c[0].text=a;c[0].width=n;return}}this.am(a,c,d,g,l)}else p(c)};g.am=function(b,c,f,g,l){l&&(this.Zl(b),b=d);var n="",p,e,t,u=0;for(t=0;t<b.length;t++)"\n"===b[t]?(u>=c.length&&c.push(k()),e=c[u],e.text=n,e.width=f.measureText(n).width,u++,n=""):(p=n,n+=b[t],e=f.measureText(n).width,e>=g&&(u>=c.length&&c.push(k()),e=c[u],e.text=p,e.width=f.measureText(p).width,u++,n=b[t],l||" "!==n||(n="")));
n.length&&(u>=c.length&&c.push(k()),e=c[u],e.text=n,e.width=f.measureText(n).width,u++);for(t=u;t<c.length;t++)a.push(c[t]);c.length=u};g.e=new (ba());g.m=new (ba());g.ac=new (ba())})();function Z(k){this.b=k}
(function(){function k(a){h=a.x;v=a.y;n=a.z}function p(a){q=a.x;e=a.y;t=a.z}function g(a,b,c,d){var e;e=u.length?u.pop():new l;e.init(a,b,c,d);return e}function l(){this.zf=this.id=this.y=this.x=this.Dg=this.Cg=this.Qh=this.time=this.Fi=0;this.Ef=this.Lg=!1}function d(){}function a(){}var b=Z.prototype;b.pc=function(a){this.ja=a;this.b=a.b};b.pc.prototype.oa=ba();b.nb=function(a){this.type=a;this.b=a.b;this.touches=[];this.Zh=!1};var c=b.nb.prototype,f={left:0,top:0};c.Oe=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 h=0,v=0,n=0,q=0,e=0,t=0,u=[];l.prototype.init=function(a,b,c,d){var e=N();this.Fi=this.Qh=this.time=e;this.Cg=a;this.Dg=b;this.x=a;this.y=b;this.id=c;this.zf=d;this.Ef=this.Lg=!1};l.prototype.update=function(a,b,c){this.Qh=this.time;this.time=a;this.x=b;this.y=c;!this.Ef&&15<=Ga(this.Cg,this.Dg,this.x,this.y)&&(this.Ef=!0)};l.prototype.ro=function(a,b){!this.Lg&&500<=N()-this.Fi&&!this.Ef&&15>Ga(this.Cg,this.Dg,this.x,
this.y)&&(this.Lg=!0,a.mc=this.zf,a.ue=this.id,a.Wd=b,a.b.trigger(Z.prototype.e.Pl,a),a.vc=this.x,a.wc=this.y,a.b.trigger(Z.prototype.e.Ql,a),a.Wd=0)};var m=-1E3,r=-1E3,y=-1E4;l.prototype.tk=function(a,b){if(!this.Lg){var c=N();333>=c-this.Fi&&!this.Ef&&15>Ga(this.Cg,this.Dg,this.x,this.y)&&(a.mc=this.zf,a.ue=this.id,a.Wd=b,666>=c-y&&25>Ga(m,r,this.x,this.y)?(a.b.trigger(Z.prototype.e.Nl,a),a.vc=this.x,a.wc=this.y,a.b.trigger(Z.prototype.e.Ol,a),r=m=-1E3,y=-1E4):(a.b.trigger(Z.prototype.e.Vl,a),a.vc=
this.x,a.wc=this.y,a.b.trigger(Z.prototype.e.Wl,a),m=this.x,r=this.y,y=c),a.Wd=0)}};c.oa=function(){this.io=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Wd=this.ue=this.mc=this.wc=this.vc=this.bj=this.aj=this.$i=this.em=this.dm=this.cm=this.rf=this.qf=this.pf=0;this.ip=0!==this.Da[0];var a=0<this.b.Oa?document:this.b.canvas,b=document;this.b.Ec?b=a=window.Canvas:this.b.xb&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.Gk(a)},
!1),a.addEventListener("pointermove",function(a){c.Fk(a)},!1),b.addEventListener("pointerup",function(a){c.qg(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.qg(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.Gk(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Fk(a)},!1),b.addEventListener("MSPointerUp",function(a){c.qg(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.qg(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.Jk(a)},
!1),a.addEventListener("touchmove",function(a){c.Ik(a)},!1),b.addEventListener("touchend",function(a){c.hi(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.hi(a,!0)},!1));if(this.io){var d=function(a){a=a.reading;c.$i=a.accelerationX;c.aj=a.accelerationY;c.bj=a.accelerationZ},e=function(a){a=a.reading;c.pf=a.yawDegrees;c.qf=a.pitchDegrees;c.rf=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var g=Windows.Devices.Sensors.Inclinometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),g&&g.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),g&&g.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.pf=a.alpha||
0;c.qf=a.beta||0;c.rf=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.cm=a.accelerationIncludingGravity.x||0,c.dm=a.accelerationIncludingGravity.y||0,c.em=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.$i=a.acceleration.x||0,c.aj=a.acceleration.y||0,c.bj=a.acceleration.z||0)},!1);this.ip&&!this.b.ga&&(jQuery(document).mousemove(function(a){c.fi(a)}),jQuery(document).mousedown(function(a){c.ei(a)}),jQuery(document).mouseup(function(a){c.gi(a)}));
this.b.We&&!this.b.Ec&&AppMobi.accelerometer.watchAcceleration(k,{frequency:40,adjustForRotation:!0});this.b.ec&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(p,null,{frequency:40});this.b.Yo(this)};c.Fk=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Oe(a.pointerId),c=N();if(0<=b){var d=this.b.ga?f:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};c.Gk=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&Sa(a)&&a.preventDefault();var b=this.b.ga?f:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;N();this.mc=this.touches.length;this.ue=a.pointerId;this.touches.push(g(c,b,a.pointerId,this.mc));this.b.Ia=!0;this.b.trigger(Z.prototype.e.Ui,this);this.b.trigger(Z.prototype.e.Rg,this);this.vc=c;this.wc=b;this.b.trigger(Z.prototype.e.da,this);this.b.Ia=
!1}};c.qg=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&Sa(a)&&a.preventDefault();var c=this.Oe(a.pointerId);this.mc=0<=c?this.touches[c].zf:-1;this.ue=0<=c?this.touches[c].id:-1;this.b.Ia=!0;this.b.trigger(Z.prototype.e.Ti,this);this.b.trigger(Z.prototype.e.Vi,this);0<=c&&(b||this.touches[c].tk(this,c),100>u.length&&u.push(this.touches[c]),this.touches.splice(c,1));this.b.Ia=!1}};c.Ik=function(a){a.preventDefault&&a.preventDefault();var b=N(),
c,d,e,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],g=this.Oe(e.identifier),0<=g){var h=this.b.ga?f:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,e.pageX-h.left,e.pageY-h.top)}};c.Jk=function(a){a.preventDefault&&Sa(a)&&a.preventDefault();var b=this.b.ga?f:jQuery(this.b.canvas).offset();N();this.b.Ia=!0;var c,d,e,h;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],h=this.Oe(e.identifier),-1===h){h=e.pageX-b.left;var k=e.pageY-b.top;
this.mc=this.touches.length;this.ue=e.identifier;this.touches.push(g(h,k,e.identifier,this.mc));this.b.trigger(Z.prototype.e.Ui,this);this.b.trigger(Z.prototype.e.Rg,this);this.vc=h;this.wc=k;this.b.trigger(Z.prototype.e.da,this)}this.b.Ia=!1};c.hi=function(a,b){a.preventDefault&&Sa(a)&&a.preventDefault();this.b.Ia=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Oe(e.identifier),0<=e&&(this.mc=this.touches[e].zf,this.ue=this.touches[e].id,this.b.trigger(Z.prototype.e.Ti,
this),this.b.trigger(Z.prototype.e.Vi,this),b||this.touches[e].tk(this,e),100>u.length&&u.push(this.touches[e]),this.touches.splice(e,1));this.b.Ia=!1};c.zq=function(){return this.b.We&&0===this.pf&&0!==n?90*n:this.b.ec&&0===this.pf&&0!==t?90*t:this.pf};c.Aq=function(){return this.b.We&&0===this.qf&&0!==v?-90*v:this.b.ec&&0===this.qf&&0!==e?-90*e:this.qf};c.Cq=function(){return this.b.We&&0===this.rf&&0!==h?90*h:this.b.ec&&0===this.rf&&0!==q?90*q:this.rf};c.ei=function(a){a.preventDefault&&this.b.Xd&&
!this.b.yb&&a.preventDefault();this.Jk({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Zh=!0};c.fi=function(a){this.Zh&&this.Ik({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};c.gi=function(a){a.preventDefault&&this.b.Xd&&!this.b.yb&&a.preventDefault();this.b.Xd=!0;this.hi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Zh=!1};c.Hi=function(){var a,b,c,d=N();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Qh=d),c.ro(this,
a)};d.prototype.Rg=w(!0);d.prototype.Vi=w(!0);d.prototype.da=function(a){return a?this.b.Bf(a,this.vc,this.wc):!1};var B=[];d.prototype.Fl=function(a){if(!a)return!1;var b=a.S(),c=b.Pb(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.Ga();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.g.ea(e.x,e.y,!0),e=l.g.ea(e.x,e.y,!1),l.Mb(d,e)){B.push(l);break}}return B.length?(b.V=!1,sa(b.d,B),a.rc(),B.length=0,!0):!1};d.prototype.Ui=function(a){a=Math.floor(a);return a===this.mc};d.prototype.Ti=
function(a){a=Math.floor(a);return a===this.mc};d.prototype.Pl=w(!0);d.prototype.Vl=w(!0);d.prototype.Nl=w(!0);d.prototype.Ql=function(a){return a?this.b.Bf(a,this.vc,this.wc):!1};d.prototype.Wl=function(a){return a?this.b.Bf(a,this.vc,this.wc):!1};d.prototype.Ol=function(a){return a?this.b.Bf(a,this.vc,this.wc):!1};b.e=new d;a.prototype.Wi=function(a,b){var c=this.Wd;if(0>c||c>=this.touches.length)a.r(0);else{var d,e,f,g,h;ga(b)?(d=this.b.Cc(0),e=d.scale,f=d.Ra,g=d.Bb,h=d.i,d.scale=this.b.J.scale,
d.Ra=1,d.Bb=1,d.i=this.b.J.i,a.r(d.ea(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Ra=f,d.Bb=g,d.i=h):(d=D(b)?this.b.Cc(b):this.b.Qe(b))?a.r(d.ea(this.touches[c].x,this.touches[c].y,!0)):a.r(0)}};a.prototype.Yi=function(a,b){var c=this.Wd;if(0>c||c>=this.touches.length)a.r(0);else{var d,e,f,g,h;ga(b)?(d=this.b.Cc(0),e=d.scale,f=d.Ra,g=d.Cb,h=d.i,d.scale=this.b.J.scale,d.Ra=1,d.Cb=1,d.i=this.b.J.i,a.r(d.ea(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Ra=f,d.Cb=g,d.i=h):(d=D(b)?this.b.Cc(b):
this.b.Qe(b))?a.r(d.ea(this.touches[c].x,this.touches[c].y,!1)):a.r(0)}};b.ac=new a})();
function Ob(){return[null,null,[[V,!0,!1,!1,!1,!1,!1,!1,!1,!1],[W,!1,!0,!0,!0,!0,!0,!0,!0,!1],[Z,!0,!1,!1,!1,!1,!1,!1,!1,!1],[T,!1,!0,!0,!0,!0,!0,!0,!0,!1]],[["t0",T,!1,[],0,0,null,[["Default",5,!1,1,0,!1,720355987747638,[["images/sprite-sheet0.png",673543,0,0,800,1024,1,0.5,0.5,[],[-0.3274999856948853,-0.365234375,0,-0.095703125,0.3025000095367432,-0.345703125,0.4162499904632568,0,0.4599999785423279,0.46875,0,0.4873046875,-0.4612500071525574,0.4697265625,-0.4350000023841858,0],0]]]],[],!1,!1,8564060974225991,
[],null],["t1",T,!1,[],0,0,null,[["Default",5,!1,1,0,!1,9220293671621126,[["images/sprite2-sheet0.png",84755,0,0,647,349,1,0.5007727742195129,0.5014326572418213,[],[-0.1020092368125916,0.2378223538398743,-0.001545578241348267,-0.01719197630882263,0.4374034404754639,-0.3868194818496704,0.4930448532104492,-0.002865314483642578,0.4574961662292481,0.4212034344673157,-0.001545578241348267,0.4957020282745361,-0.497681587934494,0.4928366541862488,-0.007727950811386108,-0.002865314483642578],0]]]],[],!1,
!1,4866886756397412,[],null],["t2",W,!1,[],0,0,null,null,[],!1,!1,8869399473818854,[],null],["t3",T,!1,[],0,0,null,[["Default",5,!1,1,0,!1,9428529968312476,[["images/sprite4-sheet0.png",155,0,0,250,250,1,0.5,0.5,[],[],1]]]],[],!1,!1,8092398053344217,[],null],["t4",W,!1,[],0,0,null,null,[],!1,!1,0xf19c9b2a62b85,[],null],["t5",W,!1,[],0,0,null,null,[],!1,!1,6811875490190272,[],null],["t6",W,!1,[],0,0,null,null,[],!1,!1,0xb27ebad23dee0,[],null],["t7",W,!1,[],0,0,null,null,[],!1,!1,5188552354657576,[],
null],["t8",W,!1,[],0,0,null,null,[],!1,!1,7385963429948683,[],null],["t9",Z,!1,[],0,0,null,null,[],!1,!1,8618505523279349,[],null,[1]],["t10",V,!1,[],0,0,null,null,[],!1,!1,5631304070583157,[],null,[]],["t11",W,!1,[],0,0,null,null,[],!1,!1,8680774830337993,[],null],["t12",T,!1,[],0,0,null,[["Default",5,!1,1,0,!1,7022218945422754,[["images/sprite3-sheet0.png",155,0,0,250,250,1,0.5,0.5,[],[],1]]]],[],!1,!1,0x3cdf126f45bb1,[],null],["t13",W,!1,[],0,0,null,null,[],!1,!1,0xe71e0856fd60c,[],null],["t14",
W,!1,[],0,0,null,null,[],!1,!1,0x505379f45f5f7,[],null],["t15",W,!1,[],0,0,null,null,[],!1,!1,9046697539194836,[],null],["t16",W,!1,[],0,0,null,null,[],!1,!1,6922390317472729,[],null],["t17",W,!1,[],0,0,null,null,[],!1,!1,7649242432598035,[],null],["t18",W,!1,[],0,0,null,null,[],!1,!1,6729456478538175,[],null],["t19",W,!1,[],0,0,null,null,[],!1,!1,0x7bc8ac30081ea,[],null],["t20",W,!1,[],0,0,null,null,[],!1,!1,0x65e75d488aa69,[],null],["t21",T,!1,[],0,0,null,[["Default",5,!1,1,0,!1,0xba4022c900435,
[["images/sprite5-sheet0.png",6177,0,0,241,456,1,0.5020747184753418,0.5,[],[],1]]]],[],!1,!1,0x9580ebb55cd2f,[],null],["t22",T,!1,[],0,0,null,[["Default",5,!1,1,0,!1,7741761424732589,[["images/sprite6-sheet0.png",7853,0,0,319,456,1,0.5015674233436584,0.5,[],[],1]]]],[],!1,!1,9077457240995360,[],null],["t23",W,!1,[],0,0,null,null,[],!1,!1,0xd15baa0fd5e10,[],null],["t24",W,!1,[],0,0,null,null,[],!1,!1,6236357794110021,[],null],["t25",T,!1,[],0,0,null,[["Default",5,!1,1,0,!1,4522367336041091,[["images/sprite7-sheet0.png",
15559,0,0,1033,354,1,0.500484049320221,0.5,[],[],1]]]],[],!1,!1,0x3af42a2173f9d,[],null],["t26",W,!1,[],0,0,null,null,[],!1,!1,8083011403640769,[],null],["t27",T,!1,[],0,0,null,[["Default",5,!1,1,0,!1,5823216543398859,[["images/sprite8-sheet0.png",16186,0,0,1069,354,1,0.5004677176475525,0.5,[],[],1]]]],[],!1,!1,0xf47a681801be6,[],null],["t28",W,!1,[],0,0,null,null,[],!1,!1,4603270686560522,[],null],["t29",W,!1,[],0,0,null,null,[],!1,!1,0x840ec31c97a39,[],null],["t30",T,!1,[],0,0,null,[["Default",
5,!1,1,0,!1,9754528369140688,[["images/sprite9-sheet0.png",26618,0,0,1105,579,1,0.5004525184631348,0.5008635520935059,[],[],1]]]],[],!1,!1,9782283184780856,[],null],["t31",T,!1,[],0,0,null,[["Default",5,!1,1,0,!1,7976819612115738,[["images/sprite10-sheet0.png",26359,0,0,1105,579,1,0.5004525184631348,0.5008635520935059,[],[],1]]]],[],!1,!1,337585507841871,[],null],["t32",T,!1,[],0,0,null,[["Default",5,!1,1,0,!1,470147006882815,[["images/sprite11-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[],
!1,!1,6747408203258143,[],null],["t33",W,!1,[],0,0,null,null,[],!1,!1,0x77842148dc1de,[],null],["t34",T,!1,[],0,0,null,[["Default",5,!1,1,0,!1,8684231084820583,[["images/sprite12-sheet0.png",27190,0,0,1023,422,1,0.5004887580871582,0.5,[],[],1]]]],[],!1,!1,0x92ab02b9f98e7,[],null],["t35",W,!1,[],0,0,null,null,[],!1,!1,9541059699192484,[],null],["t36",T,!1,[],0,0,null,[["Default",5,!1,1,0,!1,0xaeff8ee46d48d,[["images/sprite13-sheet0.png",2466,0,0,225,246,1,0.5022222399711609,0.5,[],[],1]]]],[],!1,!1,
0x411d4a61c61d6,[],null],["t37",W,!1,[],0,0,null,null,[],!1,!1,9818685540759546,[],null],["t38",T,!1,[],0,0,null,[["Default",5,!1,1,0,!1,8022087431491115,[["images/sprite14-sheet0.png",5948,0,0,497,552,1,0.501006007194519,0.5,[],[],1]]]],[],!1,!1,0x84cc4a9b924d7,[],null],["t39",W,!1,[],0,0,null,null,[],!1,!1,0xb48f7e54a4673,[],null]],[],[["Layout 1",1708,960,!1,"Event sheet 1",0xfee1e9cbd6543,[["Layer 0",0,6116626969201157,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[151,367,0,346,478,0,0,1,0.5,0.5,0,0,
[]],0,0,[],[],[0,"Default",0,1]],[[228.3538970947266,501.790771484375,0,458,203,0,0,1,0.5007727742195129,0.5014326572418213,0,0,[]],1,1,[],[],[0,"Default",0,1]],[[3,28,0,504,169,0,0,1,0,0,0,0,[]],2,2,[],[],["Hyderabad Trains",0,"72pt Freestyle Script","rgb(0,0,0)",0,0,0,0,0]]],[]]],[],[]],["Layout 2",708,960,!1,"Event sheet 2",5471905504922106,[["Layer 0",0,0x913cb29de2a44,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[225,301,0,456,606,0,0,1,0.5,0.5,0,0,[]],3,3,[],[],[0,"Default",0,1]],[[53,16,0,385,120,
0,0,1,0,0,0,0,[]],4,4,[],[],["Train Timings",0,"72pt Freestyle Script","rgb(0,0,0)",0,0,0,0,0]],[[182,144,0,144,116,0,0,1,0,0,0,0,[]],5,5,[],[],["Map",0,"72pt Freestyle Script","rgb(0,0,0)",0,0,0,0,0]],[[70,277,0,342,116,0,0,1,0,0,0,0,[]],6,6,[],[],["Train Fares",0,"72pt Freestyle Script","rgb(0,0,0)",0,0,0,0,0]],[[30,410,0,406,114,0,0,1,0,0,0,0,[]],7,7,[],[],["Train Arrivals",0,"72pt Freestyle Script","rgb(0,0,0)",0,0,0,0,0]],[[333,536,0,292,90,0,0,1,0,0,0,0,[]],8,8,[],[],["back",0,"36pt Calibri",
"rgb(255,255,255)",0,0,0,0,0]]],[]]],[],[]],["Layout 3",1708,960,!1,"Event sheet 3",0x9599a9d9f7307,[["Layer 0",0,6304857951194685,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[224,299,0,462,606,0,0,1,0.5,0.5,0,0,[]],12,11,[],[],[0,"Default",0,1]],[[16,2,0,418,78,0,0,1,0,0,0,0,[]],13,12,[],[],["Hyderabad to Falaknuma",0,"48pt Freestyle Script","rgb(255,255,255)",0,0,0,0,0]],[[13,77,0,418,82,0,0,1,0,0,0,0,[]],14,13,[],[],["Falaknuma to Hyderabad",0,"48pt Freestyle Script","rgb(255,255,255)",0,0,0,0,0]],[[201,
300,0,200,30,0,0,1,0,0,0,0,[]],15,14,[],[],["Hyderabad to Lingampally",0,"48pt Freestyle Script","rgb(0,0,0)",0,0,0,0,0]],[[15,194,0,427,81,0,0,1,0,0,0,0,[]],16,15,[],[],["Hyderabad to Lingampally",0,"48pt Freestyle Script","rgb(255,255,255)",0,0,0,0,0]],[[11,264,0,462,106,0,0,1,0,0,0,0,[]],17,16,[],[],["Lingampally to Hyderabad",0,"48pt Freestyle Script","rgb(255,255,255)",0,0,0,0,0]],[[9,376,0,428,81,0,0,1,0,0,0,0,[]],18,17,[],[],["Lingampally to Falaknuma",0,"48pt Freestyle Script","rgb(255,255,255)",
0,0,0,0,0]],[[14,449,0,431,82,0,0,1,0,0,0,0,[]],19,18,[],[],["Falaknuma to Lingampally",0,"48pt Freestyle Script","rgb(255,255,255)",0,0,0,0,0]],[[329,541,0,331,111,0,0,1,0,0,0,0,[]],20,19,[],[],["back",0,"36pt Calibri","rgb(0,0,255)",0,0,0,0,0]]],[]]],[],[]],["Layout 4",1708,960,!1,"Event sheet 4",0x7736fea13694f,[["Layer 0",0,5543789665121459,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[226.4398498535156,275.5,0,453,555,0,0,1,0.5020747184753418,0.5,0,0,[]],21,20,[],[],[0,"Default",0,1]],[[349,554,0,289,
80,0,0,1,0,0,0,0,[]],24,23,[],[],["back",0,"36pt Calibri","rgb(255,0,0)",0,0,0,0,0]]],[]]],[],[]],["Layout 5",1708,960,!1,"Event sheet 5",0x8d641517dd1f4,[["Layer 0",0,0xaf079b349ffb3,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[225.705322265625,278.5,0,450,557,0,0,1,0.5015674233436584,0.5,0,0,[]],22,21,[],[],[0,"Default",0,1]],[[345,558,0,235,79,0,0,1,0,0,0,0,[]],23,22,[],[],["back",0,"36pt Calibri","rgb(255,0,0)",0,0,0,0,0]]],[]]],[],[]],["Layout 6",1708,960,!0,"Event sheet 6",8865004346724254,[["Layer 0",
0,0x6c958f94348d6,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[437.4220886230469,270,0,872,538,0,0,1,0.500484049320221,0.5,0,0,[]],25,24,[],[],[0,"Default",0,1]],[[344,552,0,137,69,0,0,1,0,0,0,0,[]],26,25,[],[],["back",0,"36pt Calibri","rgb(255,0,0)",0,0,0,0,0]]],[]]],[],[]],["Layout 7",1708,960,!1,"Event sheet 7",0xc2ef56813c503,[["Layer 0",0,0xa9be3139e3009,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[439,281,0,880,558,0,0,1,0.5004677176475525,0.5,0,0,[]],27,26,[],[],[0,"Default",0,1]],[[353,559,0,139,67,0,0.01722661778330803,
1,0,0,0,0,[]],28,27,[],[],["back",0,"36pt Calibri","rgb(255,0,0)",0,0,0,0,0]]],[]]],[],[]],["Layout 8",1708,960,!1,"Event sheet 8",6984964171222305,[["Layer 0",0,0xd7cca5e6cebb9,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[348,549,0,119,66,0,0,1,0,0,0,0,[]],29,28,[],[],["back",0,"36pt Calibri","rgb(255,0,0)",0,0,0,0,0]],[[436.8940734863281,269.4783935546875,0,871,554,0,0,1,0.5004525184631348,0.5008635520935059,0,0,[]],30,29,[],[],[0,"Default",0,1]]],[]]],[],[]],["Layout 9",1708,960,!1,"Event sheet 9",9922210702980872,
[["Layer 0",0,0x3f82cd9506562,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[392,271,0,791,546,0,0,1,0.5004525184631348,0.5008635520935059,0,0,[]],31,30,[],[],[0,"Default",0,1]],[[341,553,0,134,81,0,0,1,0,0,0,0,[]],33,31,[],[],["back",0,"36pt Calibri","rgb(255,0,0)",0,0,0,0,0]]],[]]],[],[]],["Layout 10",1708,960,!1,"Event sheet 10",0x8a8b088338beb,[["Layer 0",0,7404956372672116,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[227.6376647949219,301.3060302734375,0,602,445,0,1.568113327026367,1,0.5004887580871582,0.5,
0,0,[]],34,32,[],[],[0,"Default",0,1]],[[14,551,0,133,76,0,0,1,0,0,0,0,[]],35,33,[],[],["back",0,"36pt Calibri","rgb(0,0,255)",0,0,0,0,0]]],[]]],[],[]],["Layout 11",1708,960,!1,"Event sheet 11",5431285052438983,[["Layer 0",0,0x4b101b4e488aa,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[218.6266479492188,263.5,0,507,537,0,0,1,0.5022222399711609,0.5,0,0,[]],36,34,[],[],[0,"Default",0,1]],[[324,544,0,108,73,0,0,1,0,0,0,0,[]],37,35,[],[],["back",0,"36pt Calibri","rgb(0,0,255)",0,0,0,0,0]]],[]]],[],[]],["Layout 12",
1708,960,!1,"Event sheet 12",7307053537396879,[["Layer 0",0,5145035093247091,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[228.9577484130859,278,0,455,552,0,0,1,0.501006007194519,0.5,0,0,[]],38,36,[],[],[0,"Default",0,1]],[[337,558,0,163,71,0,0,1,0,0,0,0,[]],39,37,[],[],["back",0,"36pt Calibri","rgb(0,0,255)",0,0,0,0,0]]],[]]],[],[]]],[["Event sheet 1",[[0,null,!1,null,8628785754656844,[[9,Z.prototype.e.Rg,null,1,!1,!1,!1,940956096182757,!1]],[[-1,S.prototype.m.u,null,0xe0e1afd007fa0,!1,[[6,"Layout 2"]]]]]]],
["Event sheet 2",[[0,null,!1,null,7322010057473185,[[9,Z.prototype.e.Fl,null,0,!1,!1,!1,7902800006009351,!1,[[4,8]]]],[[-1,S.prototype.m.u,null,5025875393574021,!1,[[6,"Layout 1"]]]]],[0,null,!1,null,5977007832634036,[[10,V.prototype.e.W,null,1,!1,!1,!1,0xd88ffaa674fb,!1,[[3,0],[3,0],[4,8]]]],[[-1,S.prototype.m.u,null,9466298949642436,!1,[[6,"Layout 1"]]]]],[0,null,!1,null,9726459434525236,[[10,V.prototype.e.W,null,1,!1,!1,!1,6665462936428542,!1,[[3,0],[3,0],[4,4]]]],[[-1,S.prototype.m.u,null,5582968279093183,
!1,[[6,"Layout 3"]]]]],[0,null,!1,null,0xacd632d47ec8,[[9,Z.prototype.e.da,null,1,!1,!1,!1,0x71079f947dad6,!1,[[4,4]]]],[[-1,S.prototype.m.u,null,6172769743057383,!1,[[6,"Layout 3"]]]]],[0,null,!1,null,6397833210787769,[[10,V.prototype.e.W,null,1,!1,!1,!1,7169956251861366,!1,[[3,0],[3,0],[4,5]]]],[[-1,S.prototype.m.u,null,9534120819196844,!1,[[6,"Layout 10"]]]]],[0,null,!1,null,9898883482887340,[[9,Z.prototype.e.da,null,1,!1,!1,!1,6997921361672784,!1,[[4,5]]]],[[-1,S.prototype.m.u,null,9605390211624492,
!1,[[6,"Layout 10"]]]]],[0,null,!1,null,0x4bfc84b5b2d98,[[10,V.prototype.e.W,null,1,!1,!1,!1,7691678173089124,!1,[[3,0],[3,0],[4,6]]]],[[-1,S.prototype.m.u,null,825480313617568,!1,[[6,"Layout 11"]]]]],[0,null,!1,null,0x5a77ff90d5976,[[9,Z.prototype.e.da,null,1,!1,!1,!1,6519993382308055,!1,[[4,6]]]],[[-1,S.prototype.m.u,null,0xeda4deb6c358a,!1,[[6,"Layout 11"]]]]],[0,null,!1,null,8495506073314219,[[10,V.prototype.e.W,null,1,!1,!1,!1,0x4cdf41b23fc88,!1,[[3,0],[3,0],[4,7]]]],[[-1,S.prototype.m.u,null,
5370602083365549,!1,[[6,"Layout 12"]]]]],[0,null,!1,null,0xec4201d09cbc7,[[9,Z.prototype.e.da,null,1,!1,!1,!1,0x5a1fc5ded6806,!1,[[4,7]]]],[[-1,S.prototype.m.u,null,0x83d696b4d3a55,!1,[[6,"Layout 12"]]]]]]],["Event sheet 3",[[0,null,!1,null,8595265250665279,[[9,Z.prototype.e.da,null,1,!1,!1,!1,0xf9460727f1358,!1,[[4,20]]]],[[-1,S.prototype.m.u,null,7908531073579688,!1,[[6,"Layout 2"]]]]],[0,null,!1,null,0x5ab98e32cba83,[[10,V.prototype.e.W,null,1,!1,!1,!1,0xfe51f1ea6a177,!1,[[3,0],[3,0],[4,20]]]],
[[-1,S.prototype.m.u,null,8866327539265295,!1,[[6,"Layout 2"]]]]],[0,null,!1,null,6900177008607435,[[9,Z.prototype.e.da,null,1,!1,!1,!1,6878891012991497,!1,[[4,13]]]],[[-1,S.prototype.m.u,null,0x6a857978d5793,!1,[[6,"Layout 4"]]]]],[0,null,!1,null,9375100086394964,[[10,V.prototype.e.W,null,1,!1,!1,!1,7639144690040557,!1,[[3,0],[3,0],[4,13]]]],[[-1,S.prototype.m.u,null,0xe972c7fcdee3b,!1,[[6,"Layout 4"]]]]],[0,null,!1,null,0xb798fce2f9485,[[9,Z.prototype.e.da,null,1,!1,!1,!1,8446270868484764,!1,[[4,
14]]]],[[-1,S.prototype.m.u,null,0xe741af5cfca6c,!1,[[6,"Layout 5"]]]]],[0,null,!1,null,9594085340712674,[[10,V.prototype.e.W,null,1,!1,!1,!1,9396712075665996,!1,[[3,0],[3,0],[4,14]]]],[[-1,S.prototype.m.u,null,8045438886428519,!1,[[6,"Layout 5"]]]]],[0,null,!1,null,521077934341103,[[9,Z.prototype.e.da,null,1,!1,!1,!1,7647123270024357,!1,[[4,16]]]],[[-1,S.prototype.m.u,null,7427901106537522,!1,[[6,"Layout 6"]]]]],[0,null,!1,null,0x7bde1fbe63e15,[[10,V.prototype.e.W,null,1,!1,!1,!1,0xc2f13f1ba7139,
!1,[[3,0],[3,0],[4,16]]]],[[-1,S.prototype.m.u,null,7109278061835389,!1,[[6,"Layout 6"]]]]],[0,null,!1,null,0x9cec4def29dbd,[[10,V.prototype.e.W,null,1,!1,!1,!1,0xc68588b32ed1d,!1,[[3,0],[3,0],[4,17]]]],[[-1,S.prototype.m.u,null,7554589066203753,!1,[[6,"Layout 7"]]]]],[0,null,!1,null,0x3fa52e0918c62,[[9,Z.prototype.e.da,null,1,!1,!1,!1,611632077248944,!1,[[4,17]]]],[[-1,S.prototype.m.u,null,9046502545229488,!1,[[6,"Layout 7"]]]]],[0,null,!1,null,9813126236755964,[[9,Z.prototype.e.da,null,1,!1,!1,
!1,5831648128202838,!1,[[4,19]]]],[[-1,S.prototype.m.u,null,9942718595754752,!1,[[6,"Layout 8"]]]]],[0,null,!1,null,0xd5bbf71323fb6,[[10,V.prototype.e.W,null,1,!1,!1,!1,588255550716173,!1,[[3,0],[3,0],[4,19]]]],[[-1,S.prototype.m.u,null,0x4a51d35ae1834,!1,[[6,"Layout 8"]]]]],[0,null,!1,null,0x6c6b4e8967858,[[9,Z.prototype.e.da,null,1,!1,!1,!1,0xe5717e0b49f2d,!1,[[4,18]]]],[[-1,S.prototype.m.u,null,9012025657994562,!1,[[6,"Layout 9"]]]]],[0,null,!1,null,7787397953412424,[[10,V.prototype.e.W,null,1,
!1,!1,!1,6855678739224207,!1,[[3,0],[3,0],[4,18]]]],[[-1,S.prototype.m.u,null,7542497708159888,!1,[[6,"Layout 9"]]]]]]],["Event sheet 4",[[0,null,!1,null,5041059003128384,[[10,V.prototype.e.W,null,1,!1,!1,!1,291497887774029,!1,[[3,0],[3,0],[4,24]]]],[[-1,S.prototype.m.u,null,7120102237843579,!1,[[6,"Layout 3"]]]]]]],["Event sheet 5",[[0,null,!1,null,6635873473893622,[[10,V.prototype.e.W,null,1,!1,!1,!1,0xf2e9a6fe9322c,!1,[[3,0],[3,0],[4,23]]]],[[-1,S.prototype.m.u,null,9686459081415336,!1,[[6,"Layout 3"]]]]]]],
["Event sheet 6",[[0,null,!1,null,6322387338014719,[[10,V.prototype.e.W,null,1,!1,!1,!1,6205224060494595,!1,[[3,0],[3,0],[4,26]]]],[[-1,S.prototype.m.u,null,4992041009390791,!1,[[6,"Layout 3"]]]]],[0,null,!1,null,0xebbd2abc973f7,[[9,Z.prototype.e.da,null,1,!1,!1,!1,7221165103518229,!1,[[4,26]]]],[[-1,S.prototype.m.u,null,8931762804925554,!1,[[6,"Layout 3"]]]]]]],["Event sheet 7",[[0,null,!1,null,0xc3d4061671c0b,[[10,V.prototype.e.W,null,1,!1,!1,!1,0xdf3b206bb0fc8,!1,[[3,0],[3,0],[4,28]]]],[[-1,S.prototype.m.u,
null,8587041100554896,!1,[[6,"Layout 3"]]]]],[0,null,!1,null,0xf0b82fab0bea2,[[9,Z.prototype.e.da,null,1,!1,!1,!1,0xd651eb66a9a9,!1,[[4,28]]]],[[-1,S.prototype.m.u,null,6355298022251443,!1,[[6,"Layout 3"]]]]]]],["Event sheet 8",[[0,null,!1,null,5840498964993476,[[10,V.prototype.e.W,null,1,!1,!1,!1,0x95d450008ea3f,!1,[[3,0],[3,0],[4,29]]]],[[-1,S.prototype.m.u,null,5293293686838244,!1,[[6,"Layout 3"]]]]],[0,null,!1,null,0xd0e5308fc7a96,[[9,Z.prototype.e.da,null,1,!1,!1,!1,6939131057322114,!1,[[4,29]]]],
[[-1,S.prototype.m.u,null,7714850445837841,!1,[[6,"Layout 3"]]]]]]],["Event sheet 9",[[0,null,!1,null,8107809088352974,[[10,V.prototype.e.W,null,1,!1,!1,!1,427068743315417,!1,[[3,0],[3,0],[4,33]]]],[[-1,S.prototype.m.u,null,5388572316447806,!1,[[6,"Layout 3"]]]]],[0,null,!1,null,727440207321568,[[9,Z.prototype.e.da,null,1,!1,!1,!1,4534380047539353,!1,[[4,33]]]],[[-1,S.prototype.m.u,null,959279781804683,!1,[[6,"Layout 3"]]]]]]],["Event sheet 10",[[0,null,!1,null,0x4bb0f34c87944,[[10,V.prototype.e.W,
null,1,!1,!1,!1,0xdc58507b0f9ce,!1,[[3,0],[3,0],[4,35]]]],[[-1,S.prototype.m.u,null,0xba967fca4bb3a,!1,[[6,"Layout 2"]]]]],[0,null,!1,null,0x9832d11a125b1,[[9,Z.prototype.e.da,null,1,!1,!1,!1,8165267631231847,!1,[[4,35]]]],[[-1,S.prototype.m.u,null,6765060844951869,!1,[[6,"Layout 2"]]]]]]],["Event sheet 11",[[0,null,!1,null,6806219990344831,[[10,V.prototype.e.W,null,1,!1,!1,!1,0x7c5c3f07a4db0,!1,[[3,0],[3,0],[4,37]]]],[[-1,S.prototype.m.u,null,8089352672688276,!1,[[6,"Layout 2"]]]]],[0,null,!1,null,
4565433691419843,[[9,Z.prototype.e.da,null,1,!1,!1,!1,25963960414478,!1,[[4,37]]]],[[-1,S.prototype.m.u,null,0xd21bb36d6805a,!1,[[6,"Layout 2"]]]]]]],["Event sheet 12",[[0,null,!1,null,0xd85263b529f9f,[[10,V.prototype.e.W,null,1,!1,!1,!1,0xf39c2f423f3be,!1,[[3,0],[3,0],[4,39]]]],[[-1,S.prototype.m.u,null,6221902751112015,!1,[[6,"Layout 2"]]]]],[0,null,!1,null,6306117760737614,[[9,Z.prototype.e.da,null,1,!1,!1,!1,7648834422812433,!1,[[4,39]]]],[[-1,S.prototype.m.u,null,0x8ac79479edb00,!1,[[6,"Layout 2"]]]]]]]],
[],"media/",!1,450,600,4,!0,!0,!0,"1.0.0.0",!0,!1,0,0,38,!1,!0,1,!0,[]]};
