// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var ba,ca,ea,G,fa,ga,L,N,ha,ja,la,ma,na,P,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,Q,za,Aa,Ba,Ca,Da,Fa,Ga,Ha,Ia,Na,Oa,Pa,Qa,Ra,S,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,U,Ob,Pb,Qb,V,Rb,Sb={},Tb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(a,n,b,c){this.set(a,n,b,c)}function m(){this.ac=this.$b=this.ec=this.cc=this.wc=this.vc=this.Eb=this.Db=0}function d(a,n,b,c){a<n?b<c?(h=a<b?a:b,t=n>c?n:c):(h=a<c?a:c,t=n>b?n:b):b<c?(h=n<b?n:b,t=a>c?a:c):(h=n<c?n:c,t=a>b?a:b)}function l(){this.items=this.Hc=null;this.gf=0;n&&(this.Hc=new Set);this.Hf=[];this.Hd=!0}function k(a){u[w++]=a}function a(){this.ea=this.Wi=this.y=this.Aj=0}function b(a){this.wf=[];this.jm=this.lm=this.mm=this.km=0;this.Yg(a)}function c(a,n){this.xq=
a;this.wq=n;this.cells={}}function g(a,n,b){var c;return B.length?(c=B.pop(),c.hs=a,c.x=n,c.y=b,c):new ca(a,n,b)}function f(a,n,b){this.hs=a;this.x=n;this.y=b;this.Fg=new ea}G=function(a){window.console&&window.console.log&&window.console.log(a)};fa=function(a){window.console&&window.console.error&&window.console.error(a)};ba=function(a){return a};ga=function(a){return"undefined"===typeof a};L=function(a){return"number"===typeof a};N=function(a){return"string"===typeof a};ha=function(a){return 0<
a&&0===(a-1&a)};ja=function(a){--a;for(var n=1;32>n;n<<=1)a|=a>>n;return a+1};la=function(a){return 0>a?-a:a};ma=function(a,n){return a<n?a:n};na=Math.PI;P=function(a){return 0<=a?a|0:(a|0)-1};oa=function(a){var n=a|0;return n===a?n:n+1};pa=function(a,n,b,c,u,g,w,d){var f,s,h,q;a<b?(s=a,f=b):(s=b,f=a);u<w?(q=u,h=w):(q=w,h=u);if(f<q||s>h)return!1;n<c?(s=n,f=c):(s=c,f=n);g<d?(q=g,h=d):(q=d,h=g);if(f<q||s>h)return!1;f=u-a+w-b;s=g-n+d-c;a=b-a;n=c-n;u=w-u;g=d-g;d=la(n*u-g*a);return la(u*s-g*f)>d?!1:la(a*
s-n*f)<=d};e.prototype.set=function(a,n,b,c){this.left=a;this.top=n;this.right=b;this.bottom=c};e.prototype.Bq=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};e.prototype.width=function(){return this.right-this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(a,n){this.left+=a;this.top+=n;this.right+=a;this.bottom+=n;return this};e.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,
this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};e.prototype.gc=function(a,n){return a>=this.left&&a<=this.right&&n>=this.top&&n<=this.bottom};e.prototype.Yq=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};qa=e;m.prototype.Xg=function(a){this.Db=a.left;this.Eb=a.top;this.vc=a.right;this.wc=a.top;this.cc=a.right;this.ec=a.bottom;this.$b=a.left;this.ac=a.bottom};m.prototype.Fo=function(a,n){if(0===n)this.Xg(a);
else{var b=Math.sin(n),c=Math.cos(n),u=a.left*b,g=a.top*b,w=a.right*b,b=a.bottom*b,d=a.left*c,f=a.top*c,s=a.right*c,c=a.bottom*c;this.Db=d-g;this.Eb=f+u;this.vc=s-g;this.wc=f+w;this.cc=s-b;this.ec=c+w;this.$b=d-b;this.ac=c+u}};m.prototype.offset=function(a,n){this.Db+=a;this.Eb+=n;this.vc+=a;this.wc+=n;this.cc+=a;this.ec+=n;this.$b+=a;this.ac+=n;return this};var h=0,t=0;m.prototype.om=function(a){d(this.Db,this.vc,this.cc,this.$b);a.left=h;a.right=t;d(this.Eb,this.wc,this.ec,this.ac);a.top=h;a.bottom=
t};m.prototype.gc=function(a,n){var b=this.vc-this.Db,c=this.wc-this.Eb,u=this.cc-this.Db,g=this.ec-this.Eb,w=a-this.Db,d=n-this.Eb,f=b*b+c*c,s=b*u+c*g,c=b*w+c*d,h=u*u+g*g,q=u*w+g*d,B=1/(f*h-s*s),b=(h*c-s*q)*B,f=(f*q-s*c)*B;if(0<=b&&0<f&&1>b+f)return!0;b=this.$b-this.Db;c=this.ac-this.Eb;f=b*b+c*c;s=b*u+c*g;c=b*w+c*d;B=1/(f*h-s*s);b=(h*c-s*q)*B;f=(f*q-s*c)*B;return 0<=b&&0<f&&1>b+f};ra=m;sa=function(a,n){for(var b in n)n.hasOwnProperty(b)&&(a[b]=n[b]);return a};ta=function(a,n){var b,c;n=P(n);if(!(0>
n||n>=a.length)){b=n;for(c=a.length-1;b<c;b++)a[b]=a[b+1];a.length=c}};ua=function(a,n){a.length=n.length;var b,c;b=0;for(c=n.length;b<c;b++)a[b]=n[b]};va=function(a,n){a.push.apply(a,n)};wa=function(a,n){var b,c;b=0;for(c=a.length;b<c;++b)if(a[b]===n)return b;return-1};xa=function(a,n){var b=wa(a,n);-1!==b&&ta(a,b)};Q=function(a){return a/(180/na)};za=function(a){return 180/na*a};Aa=function(a){a%=360;0>a&&(a+=360);return a};Ba=function(a){a%=2*na;0>a&&(a+=2*na);return a};Ca=function(a){return Aa(za(a))};
Da=function(a){return Ba(Q(a))};Fa=function(a,n,b,c){return Math.atan2(c-n,b-a)};Ga=function(a,n){if(a===n)return 0;var b=Math.sin(a),c=Math.cos(a),u=Math.sin(n),g=Math.cos(n),b=b*u+c*g;return 1<=b?0:-1>=b?na:Math.acos(b)};Ha=function(a,n,b){var c=Math.sin(a),u=Math.cos(a),g=Math.sin(n),w=Math.cos(n);return Math.acos(c*g+u*w)>b?0<u*g-c*w?Ba(a+b):Ba(a-b):Ba(n)};Ia=function(a,n){var b=Math.sin(a),c=Math.cos(a),u=Math.sin(n),g=Math.cos(n);return 0>=c*u-b*g};Na=function(a,n,b,c,u,g){if(0===b)return g?
a:n;var w=Math.sin(b);b=Math.cos(b);a-=c;n-=u;var f=a*w;a=a*b-n*w;n=n*b+f;return g?a+c:n+u};Oa=function(a,n,b,c){a=b-a;n=c-n;return Math.sqrt(a*a+n*n)};Pa=function(a,n){return!a!==!n};Qa=function(a){for(var n in a)if(a.hasOwnProperty(n))return!0;return!1};Ra=function(a){for(var n in a)a.hasOwnProperty(n)&&delete a[n]};var v=+new Date;S=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();
if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-v};var q=!1,C=q=!1,p=!1;"undefined"!==typeof window&&(q=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),q=!q&&/safari/i.test(navigator.userAgent),C=/(iphone|ipod|ipad)/i.test(navigator.userAgent),p=window.c2ejecta);var n=!q&&!p&&!C&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;l.prototype.contains=function(a){return this.$e()?!1:n?
this.Hc.has(a):this.items&&this.items.hasOwnProperty(a)};l.prototype.add=function(a){if(n)this.Hc.has(a)||(this.Hc.add(a),this.Hd=!1);else{var b=a.toString(),c=this.items;c?c.hasOwnProperty(b)||(c[b]=a,this.gf++,this.Hd=!1):(this.items={},this.items[b]=a,this.gf=1,this.Hd=!1)}};l.prototype.remove=function(a){if(!this.$e())if(n)this.Hc.has(a)&&(this.Hc["delete"](a),this.Hd=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.gf--,this.Hd=!1)}};l.prototype.clear=
function(){this.$e()||(n?this.Hc.clear():(this.items=null,this.gf=0),this.Hf.length=0,this.Hd=!0)};l.prototype.$e=function(){return 0===this.count()};l.prototype.count=function(){return n?this.Hc.size:this.gf};var u=null,w=0;l.prototype.Qt=function(){if(!this.Hd){if(n)this.Hf.length=this.Hc.size,u=this.Hf,w=0,this.Hc.forEach(k),u=null,w=0;else{var a=this.Hf;a.length=this.gf;var b,c=0,g=this.items;if(g)for(b in g)g.hasOwnProperty(b)&&(a[c++]=g[b])}this.Hd=!0}};l.prototype.Jc=function(){this.Qt();return this.Hf};
ea=l;new ea;Ua=function(a,b){n?Sa(a,b.Hc):Ta(a,b.Jc())};Sa=function(a,n){var b,c,u,g;c=b=0;for(u=a.length;b<u;++b)g=a[b],n.has(g)||(a[c++]=g);a.length=c};Ta=function(a,n){var b,c,u,g;c=b=0;for(u=a.length;b<u;++b)g=a[b],-1===wa(n,g)&&(a[c++]=g);a.length=c};a.prototype.add=function(a){this.y=a-this.Aj;this.Wi=this.ea+this.y;this.Aj=this.Wi-this.ea-this.y;this.ea=this.Wi};a.prototype.reset=function(){this.ea=this.Wi=this.y=this.Aj=0};Va=a;Wa=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};
b.prototype.Yg=function(a){this.so=a;this.Di=a.length/2;this.wf.length=a.length;this.Bj=this.Cj=-1;this.rm=0};b.prototype.Bs=function(){return!this.so.length};b.prototype.sb=function(){for(var a=this.wf,n=a[0],b=n,c=a[1],u=c,g,w,f=1,d=this.Di;f<d;++f)w=2*f,g=a[w],w=a[w+1],g<n&&(n=g),g>b&&(b=g),w<c&&(c=w),w>u&&(u=w);this.km=n;this.lm=b;this.mm=c;this.jm=u};b.prototype.Xg=function(a,n,b){this.wf.length=8;this.Di=4;var c=this.wf;c[0]=a.left-n;c[1]=a.top-b;c[2]=a.right-n;c[3]=a.top-b;c[4]=a.right-n;c[5]=
a.bottom-b;c[6]=a.left-n;c[7]=a.bottom-b;this.Cj=a.right-a.left;this.Bj=a.bottom-a.top;this.sb()};b.prototype.uq=function(a,n,b){if(this.Cj!==a||this.Bj!==n||this.rm!==b){this.Cj=a;this.Bj=n;this.rm=b;var c,u,g,w,f,d=0,s=1,h=this.so,q=this.wf;0!==b&&(d=Math.sin(b),s=Math.cos(b));b=0;for(g=this.Di;b<g;b++)c=2*b,u=c+1,w=h[c]*a,f=h[u]*n,q[c]=w*s-f*d,q[u]=f*s+w*d;this.sb()}};b.prototype.gc=function(a,n){var b=this.wf;if(a===b[0]&&n===b[1])return!0;var c,u,g,w=this.Di,f=this.km-110,d=this.mm-101,s=this.lm+
131,h=this.jm+120,q,B,l=0,k=0;for(c=0;c<w;c++)u=2*c,g=(c+1)%w*2,q=b[u],u=b[u+1],B=b[g],g=b[g+1],pa(f,d,a,n,q,u,B,g)&&l++,pa(s,h,a,n,q,u,B,g)&&k++;return 1===l%2||1===k%2};Xa=b;c.prototype.Lm=function(a,n,b){var c;c=this.cells[a];return c?(c=c[n])?c:b?(c=g(this,a,n),this.cells[a][n]=c):null:b?(c=g(this,a,n),this.cells[a]={},this.cells[a][n]=c):null};c.prototype.Ul=function(a){return P(a/this.xq)};c.prototype.Wl=function(a){return P(a/this.wq)};c.prototype.update=function(a,n,b){var c,u,g,w,f;if(n)for(c=
n.left,u=n.right;c<=u;++c)for(g=n.top,w=n.bottom;g<=w;++g)if(!b||!b.gc(c,g))if(f=this.Lm(c,g,!1))f.remove(a),f.$e()&&(f.Fg.clear(),1E3>B.length&&B.push(f),this.cells[c][g]=null);if(b)for(c=b.left,u=b.right;c<=u;++c)for(g=b.top,w=b.bottom;g<=w;++g)n&&n.gc(c,g)||this.Lm(c,g,!0).qs(a)};Ya=c;var B=[];f.prototype.$e=function(){return this.Fg.$e()};f.prototype.qs=function(a){this.Fg.add(a)};f.prototype.remove=function(a){this.Fg.remove(a)};f.prototype.dump=function(a){va(a,this.Fg.Jc())};ca=f;var s="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
Za=function(a){return 0>=a||11<=a?"source-over":s[a-1]};$a=function(a,n,b){if(b)switch(a.lb=b.ONE,a.jb=b.ONE_MINUS_SRC_ALPHA,n){case 1:a.lb=b.ONE;a.jb=b.ONE;break;case 3:a.lb=b.ONE;a.jb=b.ZERO;break;case 4:a.lb=b.ONE_MINUS_DST_ALPHA;a.jb=b.ONE;break;case 5:a.lb=b.DST_ALPHA;a.jb=b.ZERO;break;case 6:a.lb=b.ZERO;a.jb=b.SRC_ALPHA;break;case 7:a.lb=b.ONE_MINUS_DST_ALPHA;a.jb=b.ZERO;break;case 8:a.lb=b.ZERO;a.jb=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.lb=b.DST_ALPHA;a.jb=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.lb=
b.ONE_MINUS_DST_ALPHA,a.jb=b.SRC_ALPHA}};ab=function(a){return Math.round(1E6*a)/1E6};bb=function(a,n){return"string"!==typeof a||"string"!==typeof n||a.length!==n.length?!1:a===n?!0:a.toLowerCase()===n.toLowerCase()};cb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||bb(a.tagName,"canvas")?!0:!1}})();var Ub="undefined"!==typeof Float32Array?Float32Array:Array;function Vb(e){var m=new Ub(3);e&&(m[0]=e[0],m[1]=e[1],m[2]=e[2]);return m}
function Wb(e){var m=new Ub(16);e&&(m[0]=e[0],m[1]=e[1],m[2]=e[2],m[3]=e[3],m[4]=e[4],m[5]=e[5],m[6]=e[6],m[7]=e[7],m[8]=e[8],m[9]=e[9],m[10]=e[10],m[11]=e[11],m[12]=e[12],m[13]=e[13],m[14]=e[14],m[15]=e[15]);return m}function Xb(e,m){m[0]=e[0];m[1]=e[1];m[2]=e[2];m[3]=e[3];m[4]=e[4];m[5]=e[5];m[6]=e[6];m[7]=e[7];m[8]=e[8];m[9]=e[9];m[10]=e[10];m[11]=e[11];m[12]=e[12];m[13]=e[13];m[14]=e[14];m[15]=e[15]}
function Yb(e,m){var d=m[0],l=m[1];m=m[2];e[0]*=d;e[1]*=d;e[2]*=d;e[3]*=d;e[4]*=l;e[5]*=l;e[6]*=l;e[7]*=l;e[8]*=m;e[9]*=m;e[10]*=m;e[11]*=m}
function Zb(e,m,d,l){l||(l=Wb());var k,a,b,c,g,f,h,t,v=e[0],q=e[1];e=e[2];a=d[0];b=d[1];k=d[2];d=m[1];f=m[2];v===m[0]&&q===d&&e===f?(e=l,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(d=v-m[0],f=q-m[1],h=e-m[2],t=1/Math.sqrt(d*d+f*f+h*h),d*=t,f*=t,h*=t,m=b*h-k*f,k=k*d-a*h,a=a*f-b*d,(t=Math.sqrt(m*m+k*k+a*a))?(t=1/t,m*=t,k*=t,a*=t):a=k=m=0,b=f*a-h*k,c=h*m-d*a,g=d*k-f*m,(t=Math.sqrt(b*b+c*c+g*g))?(t=1/t,b*=t,c*=t,g*=t):g=c=b=0,
l[0]=m,l[1]=b,l[2]=d,l[3]=0,l[4]=k,l[5]=c,l[6]=f,l[7]=0,l[8]=a,l[9]=g,l[10]=h,l[11]=0,l[12]=-(m*v+k*q+a*e),l[13]=-(b*v+c*q+g*e),l[14]=-(d*v+f*q+h*e),l[15]=1)}
(function(){function e(a){this.bf=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.tm=Vb([0,0,100]);this.An=Vb([0,0,0]);this.Wo=Vb([0,1,0]);this.Il=Vb([1,1,1]);this.Bm=!0;this.Kk=Wb();this.pc=Wb();this.on=Wb();this.Kj=Wb();this.m=a;this.Ym()}function m(a,b,c){this.m=a;this.Zg=b;this.name=c;this.oc=a.getAttribLocation(b,"aPos");this.Od=a.getAttribLocation(b,"aTex");this.yn=a.getUniformLocation(b,"matP");this.fi=a.getUniformLocation(b,"matMV");this.kf=
a.getUniformLocation(b,"opacity");this.zn=a.getUniformLocation(b,"samplerFront");this.yg=a.getUniformLocation(b,"samplerBack");this.Be=a.getUniformLocation(b,"destStart");this.Ae=a.getUniformLocation(b,"destEnd");this.Hk=a.getUniformLocation(b,"seconds");this.Gk=a.getUniformLocation(b,"pixelWidth");this.Fk=a.getUniformLocation(b,"pixelHeight");this.xg=a.getUniformLocation(b,"layerScale");this.wg=a.getUniformLocation(b,"layerAngle");this.Ag=a.getUniformLocation(b,"viewOrigin");this.zg=a.getUniformLocation(b,
"scrollPos");this.ls=!!(this.Gk||this.Fk||this.Hk||this.yg||this.Be||this.Ae||this.xg||this.wg||this.Ag||this.zg);this.In=this.Jn=-999;this.ii=1;this.En=this.Dn=0;this.Gn=this.Cn=this.Bn=1;this.Ln=this.Kn=this.Nn=this.Mn=this.Fn=0;this.Ak=[];this.Hn=Wb();this.kf&&a.uniform1f(this.kf,1);this.zn&&a.uniform1i(this.zn,0);this.yg&&a.uniform1i(this.yg,1);this.Be&&a.uniform2f(this.Be,0,0);this.Ae&&a.uniform2f(this.Ae,1,1);this.xg&&a.uniform1f(this.xg,1);this.wg&&a.uniform1f(this.wg,0);this.Ag&&a.uniform2f(this.Ag,
0,0);this.zg&&a.uniform2f(this.zg,0,0);this.re=!1}function d(a,b){this.type=a;this.q=b;this.m=b.m;this.lc=this.Yb=this.ao=0;this.ca=this.Ic=null;this.Go=[]}e.prototype.Ym=function(){var a=this.m,b;this.pn=1;this.ye=this.xe=null;this.uh=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.rn=a.ONE;this.mn=a.ONE_MINUS_SRC_ALPHA;this.al=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.al);this.jh=
Array(4);this.dh=Array(4);for(b=0;4>b;b++)this.jh[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.jh[b]),this.dh[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.dh[b]);this.ed=0;this.os=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.os);this.El=new Float32Array(16E3);this.sl=new Float32Array(16E3);this.po=new Float32Array(32E3);for(var c=new Uint16Array(12E3),g=b=0;12E3>b;)c[b++]=g,c[b++]=g+1,c[b++]=g+2,c[b++]=g,c[b++]=g+2,c[b++]=g+3,g+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,c,
a.STATIC_DRAW);this.vf=this.Zc=0;this.Ma=[];b=this.Jj({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.Jj({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 f in $b)$b.hasOwnProperty(f)&&this.Ma.push(this.Jj($b[f],
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}",f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.dd=[];this.Lc=0;this.Mb=this.wb=!1;this.xm=this.kg=-1;this.Rf=null;this.Br=a.createFramebuffer();this.wo=null;this.Yd=Vb([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Ks=a[0];this.Lk=
a[1];2048<this.Lk&&(this.Lk=2048);this.Wc(0)};m.prototype.Al=function(a){var b=this.Hn;if(b[0]!==a[0]||b[1]!==a[1]||b[2]!==a[2]||b[3]!==a[3]||b[4]!==a[4]||b[5]!==a[5]||b[6]!==a[6]||b[7]!==a[7]||b[8]!==a[8]||b[9]!==a[9]||b[10]!==a[10]||b[11]!==a[11]||b[12]!==a[12]||b[13]!==a[13]||b[14]!==a[14]||b[15]!==a[15])Xb(a,this.Hn),this.m.uniformMatrix4fv(this.fi,!1,a)};e.prototype.Jj=function(a,b,c){var g=this.m,f=g.createShader(g.FRAGMENT_SHADER);g.shaderSource(f,a.src);g.compileShader(f);if(!g.getShaderParameter(f,
g.COMPILE_STATUS))return g.deleteShader(f),null;var d=g.createShader(g.VERTEX_SHADER);g.shaderSource(d,b);g.compileShader(d);if(!g.getShaderParameter(d,g.COMPILE_STATUS))return g.deleteShader(f),g.deleteShader(d),null;b=g.createProgram();g.attachShader(b,f);g.attachShader(b,d);g.linkProgram(b);if(!g.getProgramParameter(b,g.LINK_STATUS))return g.deleteShader(f),g.deleteShader(d),g.deleteProgram(b),null;g.useProgram(b);g.deleteShader(f);g.deleteShader(d);c=new m(g,b,c);c.Tj=a.Tj||0;c.Uj=a.Uj||0;c.wm=
!!a.wm;c.fm=!!a.fm;c.J=a.J||[];a=0;for(f=c.J.length;a<f;a++)c.J[a][1]=g.getUniformLocation(b,c.J[a][0]),c.Ak.push(0),g.uniform1f(c.J[a][1],0);return c};e.prototype.hk=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};e.prototype.ro=function(a,b,c){var g=this.pc,f=this.Kk,d=[0,0,0,0,0,0,0,0];d[0]=g[0]*a+g[4]*b+g[12];d[1]=g[1]*a+g[5]*b+g[13];d[2]=g[2]*a+g[6]*b+g[14];d[3]=g[3]*a+g[7]*b+g[15];d[4]=f[0]*d[0]+f[4]*d[1]+f[8]*d[2]+f[12]*d[3];d[5]=f[1]*d[0]+f[5]*
d[1]+f[9]*d[2]+f[13]*d[3];d[6]=f[2]*d[0]+f[6]*d[1]+f[10]*d[2]+f[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]=(.5*d[4]+.5)*this.width,c[1]=(.5*d[5]+.5)*this.height)};e.prototype.yf=function(a,b,c){if(this.width!==a||this.height!==b||c){this.Jd();this.width=a;this.height=b;this.m.viewport(0,0,a,b);b=a/b;var g=this.Kk,d;d=1*Math.tan(45*Math.PI/360);b*=d;a=-b;c=-d;g||(g=Wb());var h=b-a,l=d-c;g[0]=2/h;g[1]=0;g[2]=0;g[3]=0;g[4]=0;g[5]=2/l;g[6]=0;g[7]=0;g[8]=(b+a)/h;g[9]=
(d+c)/l;g[10]=-1001/999;g[11]=-1;g[12]=0;g[13]=0;g[14]=-2E3/999;g[15]=0;Zb(this.tm,this.An,this.Wo,this.pc);a=[0,0];b=[0,0];this.ro(0,0,a);this.ro(1,1,b);this.Il[0]=1/(b[0]-a[0]);this.Il[1]=-1/(b[1]-a[1]);a=0;for(b=this.Ma.length;a<b;a++)c=this.Ma[a],c.re=!1,c.yn&&(this.m.useProgram(c.Zg),this.m.uniformMatrix4fv(c.yn,!1,this.Kk));this.m.useProgram(this.Ma[this.kg].Zg);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE1);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE0);
this.ye=this.xe=null}};e.prototype.Sd=function(){Zb(this.tm,this.An,this.Wo,this.pc);Yb(this.pc,this.Il)};e.prototype.translate=function(a,b){if(0!==a||0!==b){this.Yd[0]=a;this.Yd[1]=b;this.Yd[2]=0;var c=this.pc,g=this.Yd,d=g[0],h=g[1],g=g[2];c[12]=c[0]*d+c[4]*h+c[8]*g+c[12];c[13]=c[1]*d+c[5]*h+c[9]*g+c[13];c[14]=c[2]*d+c[6]*h+c[10]*g+c[14];c[15]=c[3]*d+c[7]*h+c[11]*g+c[15]}};e.prototype.scale=function(a,b){if(1!==a||1!==b)this.Yd[0]=a,this.Yd[1]=b,this.Yd[2]=1,Yb(this.pc,this.Yd)};e.prototype.yo=
function(a){if(0!==a){var b=this.pc,c,g=Math.sin(a);a=Math.cos(a);var d=b[0],h=b[1],l=b[2],k=b[3],q=b[4],e=b[5],m=b[6],n=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+q*g;c[1]=h*a+e*g;c[2]=l*a+m*g;c[3]=k*a+n*g;c[4]=d*-g+q*a;c[5]=h*-g+e*a;c[6]=l*-g+m*a;c[7]=k*-g+n*a}};e.prototype.$d=function(){for(var a=!1,b=0;16>b;b++)if(this.on[b]!==this.pc[b]){a=!0;break}a&&(a=this.tc(),a.type=5,a.ca?Xb(this.pc,a.ca):a.ca=Wb(this.pc),Xb(this.pc,
this.on),this.Mb=this.wb=!1)};d.prototype.Rq=function(){this.m.bindTexture(this.m.TEXTURE_2D,this.Ic)};d.prototype.Sq=function(){var a=this.m;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Ic);a.activeTexture(a.TEXTURE0)};d.prototype.Oq=function(){var a=this.ao,b=this.q;b.uh=a;b=b.Rf;b.kf&&b.ii!==a&&(b.ii=a,this.m.uniform1f(b.kf,a))};d.prototype.Lq=function(){this.m.drawElements(this.m.TRIANGLES,this.lc,this.m.UNSIGNED_SHORT,2*this.Yb)};d.prototype.Nq=function(){this.m.blendFunc(this.Yb,
this.lc)};d.prototype.Tq=function(){var a,b,c,g=this.q.Ma,d=this.q.xm;a=0;for(b=g.length;a<b;a++)c=g[a],a===d&&c.fi?(c.Al(this.ca),c.re=!0):c.re=!1;Xb(this.ca,this.q.Kj)};d.prototype.Mq=function(){var a=this.m,b=this.q;this.Ic?(b.ye===this.Ic&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.ye=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.Br),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Ic,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,
a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};d.prototype.Jq=function(){var a=this.m;0===this.Yb?(a.clearColor(this.ca[0],this.ca[1],this.ca[2],this.ca[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),a.scissor(this.ca[0],this.ca[1],this.ca[2],this.ca[3]),a.clearColor(0,0,0,0),a.clear(this.m.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};d.prototype.Kq=function(){var a=this.m,b=this.q,c=b.Ma[1];a.useProgram(c.Zg);!c.re&&c.fi&&(c.Al(b.Kj),c.re=!0);a.enableVertexAttribArray(c.oc);
a.bindBuffer(a.ARRAY_BUFFER,b.al);a.vertexAttribPointer(c.oc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Yb/4,this.lc);c=b.Rf;a.useProgram(c.Zg);0<=c.oc&&(a.enableVertexAttribArray(c.oc),a.bindBuffer(a.ARRAY_BUFFER,b.jh[b.ed]),a.vertexAttribPointer(c.oc,2,a.FLOAT,!1,0,0));0<=c.Od&&(a.enableVertexAttribArray(c.Od),a.bindBuffer(a.ARRAY_BUFFER,b.dh[b.ed]),a.vertexAttribPointer(c.Od,2,a.FLOAT,!1,0,0))};d.prototype.Pq=function(){var a=this.m,b=this.q,c=b.Ma[this.Yb];b.xm=this.Yb;b.Rf=c;a.useProgram(c.Zg);
!c.re&&c.fi&&(c.Al(b.Kj),c.re=!0);c.kf&&c.ii!==b.uh&&(c.ii=b.uh,a.uniform1f(c.kf,b.uh));0<=c.oc&&(a.enableVertexAttribArray(c.oc),a.bindBuffer(a.ARRAY_BUFFER,b.jh[b.ed]),a.vertexAttribPointer(c.oc,2,a.FLOAT,!1,0,0));0<=c.Od&&(a.enableVertexAttribArray(c.Od),a.bindBuffer(a.ARRAY_BUFFER,b.dh[b.ed]),a.vertexAttribPointer(c.Od,2,a.FLOAT,!1,0,0))};d.prototype.Qq=function(){var a,b,c=this.q.Rf,g=this.m;a=this.ca;c.yg&&this.q.ye!==this.Ic&&(g.activeTexture(g.TEXTURE1),g.bindTexture(g.TEXTURE_2D,this.Ic),
this.q.ye=this.Ic,g.activeTexture(g.TEXTURE0));var d=a[0];c.Gk&&d!==c.Jn&&(c.Jn=d,g.uniform1f(c.Gk,d));d=a[1];c.Fk&&d!==c.In&&(c.In=d,g.uniform1f(c.Fk,d));d=a[2];b=a[3];!c.Be||d===c.Dn&&b===c.En||(c.Dn=d,c.En=b,g.uniform2f(c.Be,d,b));d=a[4];b=a[5];!c.Ae||d===c.Bn&&b===c.Cn||(c.Bn=d,c.Cn=d,g.uniform2f(c.Ae,d,b));d=a[6];c.xg&&d!==c.Gn&&(c.Gn=d,g.uniform1f(c.xg,d));d=a[7];c.wg&&d!==c.Fn&&(c.Fn=d,g.uniform1f(c.wg,d));d=a[8];b=a[9];!c.Ag||d===c.Mn&&b===c.Nn||(c.Mn=d,c.Nn=b,g.uniform2f(c.Ag,d,b));d=a[10];
b=a[11];!c.zg||d===c.Kn&&b===c.Ln||(c.Kn=d,c.Ln=b,g.uniform2f(c.zg,d,b));c.Hk&&g.uniform1f(c.Hk,S()/1E3);if(c.J.length)for(a=0,b=c.J.length;a<b;a++)d=this.Go[a],d!==c.Ak[a]&&(c.Ak[a]=d,g.uniform1f(c.J[a][1],d))};e.prototype.tc=function(){this.Lc===this.dd.length&&this.dd.push(new d(0,this));return this.dd[this.Lc++]};e.prototype.Jd=function(){if(0!==this.Lc&&!this.m.isContextLost()){var a=this.m;0<this.vf&&(a.bindBuffer(a.ARRAY_BUFFER,this.al),a.bufferData(a.ARRAY_BUFFER,this.po.subarray(0,this.vf),
a.STREAM_DRAW),b&&0<=b.oc&&"<point>"===b.name&&a.vertexAttribPointer(b.oc,4,a.FLOAT,!1,0,0));if(0<this.Zc){var b=this.Rf;a.bindBuffer(a.ARRAY_BUFFER,this.jh[this.ed]);a.bufferData(a.ARRAY_BUFFER,this.El.subarray(0,this.Zc),a.STREAM_DRAW);b&&0<=b.oc&&"<point>"!==b.name&&a.vertexAttribPointer(b.oc,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.dh[this.ed]);a.bufferData(a.ARRAY_BUFFER,this.sl.subarray(0,this.Zc),a.STREAM_DRAW);b&&0<=b.Od&&"<point>"!==b.name&&a.vertexAttribPointer(b.Od,2,a.FLOAT,
!1,0,0)}for(var c,a=0,b=this.Lc;a<b;a++)switch(c=this.dd[a],c.type){case 1:c.Lq();break;case 2:c.Rq();break;case 3:c.Oq();break;case 4:c.Nq();break;case 5:c.Tq();break;case 6:c.Mq();break;case 7:c.Jq();break;case 8:c.Kq();break;case 9:c.Pq();break;case 10:c.Qq();break;case 11:c.Sq()}this.vf=this.Zc=this.Lc=0;this.Mb=this.wb=!1;this.ed++;4<=this.ed&&(this.ed=0)}};e.prototype.Ge=function(a){if(a!==this.pn){var b=this.tc();b.type=3;this.pn=b.ao=a;this.Mb=this.wb=!1}};e.prototype.Qb=function(a){if(a!==
this.xe){var b=this.tc();b.type=2;this.xe=b.Ic=a;this.Mb=this.wb=!1}};e.prototype.Td=function(a,b){if(a!==this.rn||b!==this.mn){var c=this.tc();c.type=4;c.Yb=a;c.lc=b;this.rn=a;this.mn=b;this.Mb=this.wb=!1}};e.prototype.Co=function(){this.Td(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};e.prototype.Sg=function(a,b,c,g,d,h,l,k){15992<=this.Zc&&this.Jd();var q=this.Zc,e=this.El,m=this.sl;if(this.wb)this.dd[this.Lc-1].lc+=6;else{var n=this.tc();n.type=1;n.Yb=q/4*3;n.lc=6;this.wb=!0;this.Mb=!1}e[q]=a;m[q++]=
0;e[q]=b;m[q++]=0;e[q]=c;m[q++]=1;e[q]=g;m[q++]=0;e[q]=d;m[q++]=1;e[q]=h;m[q++]=1;e[q]=l;m[q++]=0;e[q]=k;m[q++]=1;this.Zc=q};e.prototype.vd=function(a,b,c,g,d,h,l,k,q){15992<=this.Zc&&this.Jd();var e=this.Zc,m=this.El,n=this.sl;if(this.wb)this.dd[this.Lc-1].lc+=6;else{var u=this.tc();u.type=1;u.Yb=e/4*3;u.lc=6;this.wb=!0;this.Mb=!1}var u=q.left,w=q.top,B=q.right;q=q.bottom;m[e]=a;n[e++]=u;m[e]=b;n[e++]=w;m[e]=c;n[e++]=B;m[e]=g;n[e++]=w;m[e]=d;n[e++]=B;m[e]=h;n[e++]=q;m[e]=l;n[e++]=u;m[e]=k;n[e++]=
q;this.Zc=e};e.prototype.$s=function(a,b,c,g){7996<=this.vf&&this.Jd();var d=this.vf,h=this.po;if(this.Mb)this.dd[this.Lc-1].lc++;else{var l=this.tc();l.type=8;l.Yb=d;l.lc=1;this.Mb=!0;this.wb=!1}h[d++]=a;h[d++]=b;h[d++]=c;h[d++]=g;this.vf=d};e.prototype.Wc=function(a){if(this.kg!==a){if(!this.Ma[a]){if(0===this.kg)return;a=0}var b=this.tc();b.type=9;this.kg=b.Yb=a;this.Mb=this.wb=!1}};e.prototype.Qg=function(a){a=this.Ma[a];return!(!a.Be&&!a.Ae)};e.prototype.bl=function(a){a=this.Ma[a];return!!(a.Be||
a.Ae||a.wm)};e.prototype.it=function(a){a=this.Ma[a];return 0!==a.Tj||0!==a.Uj};e.prototype.Qr=function(a){return this.Ma[a].Tj};e.prototype.Rr=function(a){return this.Ma[a].Uj};e.prototype.Sr=function(a,b){return this.Ma[a].J[b][2]};e.prototype.Ci=function(a){return this.Ma[a].fm};e.prototype.xf=function(a,b,c,g,d,h,l,e,q,k,m,n,u,w){var B=this.Ma[this.kg],s,A;if(B.ls||w.length){s=this.tc();s.type=10;s.ca?Xb(this.pc,s.ca):s.ca=Wb();A=s.ca;A[0]=b;A[1]=c;A[2]=g;A[3]=d;A[4]=h;A[5]=l;A[6]=e;A[7]=q;A[8]=
k;A[9]=m;A[10]=n;A[11]=u;s.Ic=B.yg?a:null;if(w.length)for(c=s.Go,c.length=w.length,a=0,b=w.length;a<b;a++)c[a]=w[a];this.Mb=this.wb=!1}};e.prototype.clear=function(a,b,c,d){var f=this.tc();f.type=7;f.Yb=0;f.ca||(f.ca=Wb());f.ca[0]=a;f.ca[1]=b;f.ca[2]=c;f.ca[3]=d;this.Mb=this.wb=!1};e.prototype.clearRect=function(a,b,c,d){if(!(0>c||0>d)){var f=this.tc();f.type=7;f.Yb=1;f.ca||(f.ca=Wb());f.ca[0]=a;f.ca[1]=b;f.ca[2]=c;f.ca[3]=d;this.Mb=this.wb=!1}};e.prototype.ht=function(){this.Jd();this.m.flush()};
var l=[],k={};e.prototype.Aq=function(){l.length=0;k={}};e.prototype.hf=function(a,b,c,d){b=!!b;c=!!c;var f=a.src+","+b+","+c+(b?",undefined":""),h=null;if("undefined"!==typeof a.src&&k.hasOwnProperty(f))return h=k[f],h.mh++,h;this.Jd();var e=this.m,m=ha(a.width)&&ha(a.height),h=e.createTexture();e.bindTexture(e.TEXTURE_2D,h);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var q=e.RGBA,C=e.RGBA,p=e.UNSIGNED_BYTE;if(d&&!this.bf)switch(d){case 1:C=q=e.RGB;break;case 2:p=e.UNSIGNED_SHORT_4_4_4_4;
break;case 3:p=e.UNSIGNED_SHORT_5_5_5_1;break;case 4:C=q=e.RGB,p=e.UNSIGNED_SHORT_5_6_5}if(!m&&b){d=document.createElement("canvas");d.width=ja(a.width);d.height=ja(a.height);var n=d.getContext("2d");n.webkitImageSmoothingEnabled=c;n.mozImageSmoothingEnabled=c;n.msImageSmoothingEnabled=c;n.imageSmoothingEnabled=c;n.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);e.texImage2D(e.TEXTURE_2D,0,q,C,p,d)}else e.texImage2D(e.TEXTURE_2D,0,q,C,p,a);b?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),
e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE));c?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),m&&this.Bm?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.generateMipmap(e.TEXTURE_2D)):e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,
e.TEXTURE_MIN_FILTER,e.NEAREST));e.bindTexture(e.TEXTURE_2D,null);this.xe=null;h.Nf=a.width;h.Mf=a.height;h.mh=1;h.qm=f;l.push(h);return k[f]=h};e.prototype.Id=function(a,b,c){var d;this.Jd();var f=this.m;this.bf&&(d=!1);var e=f.createTexture();f.bindTexture(f.TEXTURE_2D,e);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,b,0,f.RGBA,d?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,
f.TEXTURE_MAG_FILTER,c?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,c?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.xe=null;e.Nf=a;e.Mf=b;l.push(e);return e};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.mh&&1<a.mh?a.mh--:(this.Jd(),a===this.xe&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.xe=null),a===this.ye&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.ye=
null),xa(l,a),"undefined"!==typeof a.qm&&delete k[a.qm],this.m.deleteTexture(a)))};e.prototype.Vc=function(a){if(a!==this.wo){var b=this.tc();b.type=6;this.wo=b.Ic=a;this.Mb=this.wb=!1}};db=e})();
(function(){function e(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function m(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function d(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.mc=(this.fg=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2isphonegap&&window.c2isphonegap;this.Za=!!a.dc;this.Ze="undefined"!==typeof window.AppMobi||this.Za;this.Ub=!!window.c2cocoonjs;this.Bc=!!window.c2ejecta;this.Ub&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.Bc&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",
function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.O=this.Za||this.Ub||this.Bc;this.bf=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent);this.en=/tizen/i.test(navigator.userAgent);this.Rh=/android/i.test(navigator.userAgent)&&!this.en&&!this.bf;this.yk=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.bf;this.kn=/ipad/i.test(navigator.userAgent);
this.Xh=this.yk||this.kn||this.Bc;this.Cs=this.yk&&/os\s6/i.test(navigator.userAgent);this.eg=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent);this.bn=/amazonwebappplatform/i.test(navigator.userAgent);this.ts=/firefox/i.test(navigator.userAgent);this.dn=/safari/i.test(navigator.userAgent)&&!this.eg&&!this.bf;this.xs=/windows/i.test(navigator.userAgent);this.Md="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);this.zs=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.As=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Th=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.hn=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.gn=this.zs||this.As||this.hn;this.rs=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Sh=this.Rh&&!this.eg&&!this.fg&&!this.ts&&!this.bn&&!this.O;this.devicePixelRatio=1;this.Rc=this.mc||
this.fg||this.Ze||this.Ub||this.Rh||this.Xh||this.Th||this.hn||this.rs||this.en||this.Bc;this.Rc||(this.Rc=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Md||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.Md=!0);this.ss="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.nh=document.getElementById("c2canvasdiv");
this.fa=this.q=this.m=null;this.Zj="";this.Dh=!1;this.Zn=this.$n=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Za&&(window.c2runtime=this);this.Md&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},require("nw.gui").App.clearCache());this.Sh&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow",
"visible");this.width=a.width;this.height=a.height;this.M=this.width;this.L=this.height;this.sh=this.width;this.rh=this.height;this.mg=window.innerWidth;this.lg=window.innerHeight;this.Dr=!1;this.ma=!0;this.hg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Ca=[];this.Dk={};this.Ob=[];this.Sj={};this.kd=[];this.Jf=[];this.fj=[];this.tj=[];this.nq=[];this.ie={};this.uk=this.Ld=!1;this.qd=0;this.wk=!1;this.Nc=[];this.rd=this.pb=this.tg=this.Li="";this.ah=
this.Jo=!1;this.Hj=this.Bg=this.jd=this.le=0;this.Df=1;this.Vb=new Va;this.$c=new Va;this.$h=0;this.Pn=!0;this.ki=this.Fh=this.Ah=this.fh=this.ng=this.Yj=0;this.fe=null;this.Oj=[];this.Rj=[];this.zh=-1;this.Ik=[[]];this.xl=this.gi=0;this.Fi(null);this.lf=[];this.hi=-1;this.Tf=this.Un=this.Eg=0;this.bh=[];this.bj=this.Gi=-1;this.ff=!0;this.ei=0;this.gg=!1;this.Gt=0;this.Oe=null;this.js=!1;this.Bk=0;this.ba=this.Xe=this.cl=!1;this.Yn=new ea;this.Qk=new ea;this.Rk=new ea;this.mt=[];new Xa([]);new Xa([]);
this.Fd=[];this.Lh={};this.Qe={};this.Ne={};this.If={};this.nm={};this.xn=this.bi=this.Nb=this.Wb=this.wn=this.ai=this.da=null;this.Gf=this.xk=!1;this.$j=[null,null];this.pe=0;this.Wj="";this.Pd={};this.Qi=this.jf=null;this.ji=[];this.nt()}}function l(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function k(a,b,c,d){var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=l;g.onerror=d;g.onsuccess=function(g){g=g.target.result;g.onerror=d;g.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,
data:b}).onsuccess=c}}function a(a,b,c){var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=l;d.onerror=c;d.onsuccess=function(d){d=d.target.result;d.onerror=c;var g=d.transaction(["saves"]).objectStore("saves").get(a);g.onsuccess=function(){g.result?b(g.result.data):b(null)}}}function b(){G("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+="?continuous"}function c(a){var b,c=
{};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ea||a[b]&&"undefined"!==typeof a[b].$u||(c[b]=a[b]);return c}d.prototype.nt=function(){var a=this,b;b=this.Th?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;b.open("GET","data.js",!0);var c=!1;if(!this.O&&"response"in b&&"responseType"in b)try{b.responseType="json",c="json"===b.responseType}catch(d){c=!1}if(!c&&"responseType"in b)try{b.responseType="text"}catch(g){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(f){}b.onload=
function(){if(c)a.Ek(b.response);else if(a.Bc){var d=b.responseText,d=d.substr(d.indexOf("{"));a.Ek(JSON.parse(d))}else a.Ek(JSON.parse(b.responseText))};b.onerror=function(a){fa("Error requesting data.js:");fa(a)};b.send()};d.prototype.ps=function(){var a=this,b,c,d,g,f,h,q,l,k;this.devicePixelRatio=(this.ve=(!this.O||this.Bc)&&this.St&&!this.Sh)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.gb();c=!(!this.Dr&&(!this.vj||this.Md||
this.gn||this.Th||this.fg||this.mc||this.bn));0<this.mb&&this.setSize(e(),m(),!0);try{this.Wq&&(this.Ub||this.Bc||!this.O)&&(b={alpha:c,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.m=this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(t){}if(this.m){this.O||(this.$a=document.createElement("canvas"),jQuery(this.$a).appendTo(this.canvas.parentNode),this.$a.oncontextmenu=function(){return!1},this.$a.onselectstart=function(){return!1},this.$a.width=
this.sh,this.$a.height=this.rh,jQuery(this.$a).css({width:this.sh+"px",height:this.rh+"px"}),this.qo(),this.Zk=this.$a.getContext("2d"));this.q=new db(this.m,this.Rc);this.q.yf(this.canvas.width,this.canvas.height);this.q.Bm=0!==this.Uq;this.fa=null;this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.Ms();G("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.q.Ym();a.q.yf(a.q.width,a.q.height,
!0);a.Wb=null;a.Nb=null;a.$j[0]=null;a.$j[1]=null;a.Ns();a.ma=!0;G("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);b=0;for(c=this.n.length;b<c;b++)for(f=this.n[b],d=0,g=f.I.length;d<g;d++)q=f.I[d],q.bb=this.q.hk(q.id),this.Gf=this.Gf||this.q.Qg(q.bb);b=0;for(c=this.Ob.length;b<c;b++){l=this.Ob[b];d=0;for(g=l.I.length;d<g;d++)q=l.I[d],q.bb=this.q.hk(q.id);d=0;for(g=l.N.length;d<g;d++)for(k=l.N[d],f=0,h=k.I.length;f<h;f++)q=k.I[f],q.bb=this.q.hk(q.id),this.Gf=this.Gf||this.q.Qg(q.bb)}}else{if(0<
this.mb&&this.Za){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.fa=AppMobi.canvas.getContext("2d");try{this.fa.samplingMode=this.V?"smooth":"sharp",this.fa.globalScale=1,this.fa.HTML5CompatibilityMode=!0,this.fa.imageSmoothingEnabled=this.V}catch(p){}0!==this.width&&0!==this.height&&(this.fa.width=this.width,this.fa.height=this.height)}this.fa||(b=this.Ub?{antialias:!!this.V,alpha:c}:{alpha:c},this.fa=this.canvas.getContext("2d",b),this.fa.webkitImageSmoothingEnabled=
this.V,this.fa.mozImageSmoothingEnabled=this.V,this.fa.msImageSmoothingEnabled=this.V,this.fa.imageSmoothingEnabled=this.V);this.Zk=this.$a=null}this.$i=function(){a.Na(!1)};window==window.top||this.O||this.gn||this.Th||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Ub&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&
(G("Reloading for continuous preview"),this.tg="__c2_continuouspreview",this.ah=!0),this.Ys&&!this.Rc&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));this.O||(b=function(a){cb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur&&document.activeElement.blur()},window.navigator.pointerEnabled?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?
document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.mb&&this.ve&&1<this.devicePixelRatio&&this.setSize(this.Va,this.Ua,!0);this.So();this.es();this.go();this.ya={}};d.prototype.setSize=function(a,b,c){var d=0,g=0,f=0,e=0,e=0,q=this.Cs&&this.dn&&!navigator.standalone&&!this.O&&!this.mc;q&&(b+=60);if(this.mg!==a||this.lg!==b||c){this.mg=a;this.lg=b;var h=this.mb,l=(document.mozFullScreen||document.webkitIsFullScreen||
!!document.msFullscreenElement||document.fullScreen||this.gg)&&!this.mc;if(l||0!==this.mb||c)l&&0<this.pe&&(h=this.pe),c=this.devicePixelRatio,4<=h?(f=this.Va/this.Ua,a/b>f?(f*=b,5===h?(e=f*c/this.Va,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),f=this.Va*e/c,e=this.Ua*e/c,d=(a-f)/2,g=(b-e)/2,a=f,b=e):(d=(a-f)/2,a=f)):(e=a/f,5===h?(e=e*c/this.Ua,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),f=this.Va*e/c,e=this.Ua*e/c,d=(a-f)/2,g=(b-e)/2,a=f):g=(b-e)/2,b=e),l&&!this.Md&&(g=d=0)):this.Md&&this.gg&&
0===this.Im&&(d=Math.floor((a-this.Va)/2),g=Math.floor((b-this.Ua)/2),a=this.Va,b=this.Ua),2>h&&(this.Lf=c),this.ve&&this.kn&&1<c&&(1024<=a&&(a=1023),1024<=b&&(b=1023)),this.sh=Math.round(a),this.rh=Math.round(b),this.width=Math.round(a*c),this.height=Math.round(b*c),this.ma=!0,this.dp?(this.M=this.width,this.L=this.height,this.kc=!0):this.width<this.Va&&this.height<this.Ua||1===h?(this.M=this.width,this.L=this.height,this.kc=!0):(this.M=this.Va,this.L=this.Ua,this.kc=!1,2===h?(f=this.Va/this.Ua,
h=this.mg/this.lg,h<f?this.M=this.L*h:h>f&&(this.L=this.M/h)):3===h&&(f=this.Va/this.Ua,h=this.mg/this.lg,h>f?this.M=this.L*h:h<f&&(this.L=this.M/h))),this.nh&&!this.O&&(jQuery(this.nh).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(d)+"px","margin-top":Math.floor(g)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*c),this.canvas.height=Math.round(b*
c),this.Bc?(this.canvas.style.left=Math.floor(d)+"px",this.canvas.style.top=Math.floor(g)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.ve&&!this.O&&jQuery(this.canvas).css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.$a&&(this.$a.width=Math.round(a),this.$a.height=Math.round(b),jQuery(this.$a).css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.q&&this.q.yf(Math.round(a*c),Math.round(b*c)),this.Za&&this.fa&&(this.fa.width=
Math.round(a),this.fa.height=Math.round(b)),this.fa&&(this.fa.webkitImageSmoothingEnabled=this.V,this.fa.mozImageSmoothingEnabled=this.V,this.fa.msImageSmoothingEnabled=this.V,this.fa.imageSmoothingEnabled=this.V),this.So(),this.O||!q&&!this.yk||window.setTimeout(function(){window.scrollTo(0,1)},100)}};d.prototype.So=function(){if(this.qq&&0!==this.Xk){var a="portrait";2===this.Xk&&(a="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):
screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}};d.prototype.Ms=function(){this.q.Aq();this.xk=!0;var a,b,c;a=0;for(b=this.n.length;a<b;a++)c=this.n[a],c.li&&c.li()};d.prototype.Ns=function(){this.xk=!1;var a,b,c;a=0;for(b=this.n.length;a<b;a++)c=this.n[a],c.mi&&c.mi()};d.prototype.qo=function(){if(!this.O){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||
document.msFullscreenElement||this.gg)&&!this.mc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.$a).css(a)}};var g=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(a){var b;if(a&&!this.hg)for(G("[Construct 2] Suspending"),this.hg=!0,-1!==this.Gi&&g&&g(this.Gi),-1!==this.bj&&clearTimeout(this.bj),a=0,b=this.bh.length;a<
b;a++)this.bh[a](!0);else if(!a&&this.hg){G("[Construct 2] Resuming");this.hg=!1;this.$h=S();this.ng=S();a=this.Bg=this.Fh=0;for(b=this.bh.length;a<b;a++)this.bh[a](!1);this.Na(!1)}};d.prototype.lq=function(a){this.bh.push(a)};d.prototype.Cd=function(a){return this.ji[a]};d.prototype.Ek=function(a){a&&a.project||fa("Project model unavailable");a=a.project;this.name=a[0];this.Hm=a[1];this.mb=a[12];this.Im=a[12];this.Va=a[10];this.Ua=a[11];this.ko=this.Va/2;this.lo=this.Ua/2;this.O&&!this.Bc&&(4<=a[12]||
0===a[12])&&(G("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Im=this.mb=3);this.Cl=a[18];this.vg=a[19];0===this.vg&&(this.jf=new Image,this.jf.src="loading-logo.png");this.Eg=a[21];this.ji=ac();this.Xc=new W(this);var b,c,d,g,f,e,h,q,l;b=0;for(c=a[2].length;b<c;b++)h=a[2][b],d=this.Cd(h[0]),eb(h,d.prototype),l=new d(this),l.Oi=h[1],l.Nd=h[2],l.Sn=h[9],l.ga&&l.ga(),this.plugins.push(l);this.ji=ac();b=0;for(c=a[3].length;b<
c;b++){h=a[3][b];f=this.Cd(h[1]);l=null;d=0;for(g=this.plugins.length;d<g;d++)if(this.plugins[d]instanceof f){l=this.plugins[d];break}var k=new l.Qa(l);k.name=h[0];k.C=h[2];k.tk=h[3].slice(0);k.Ut=h[3].length;k.rq=h[4];k.Fr=h[5];k.T=h[11];k.C?(k.Qn=[],k.ld=this.Tf++,k.ra=null):(k.Qn=null,k.ld=-1,k.ra=[]);k.Bh=null;k.Te=null;k.Dm=null;k.Cc=!1;k.Jb=null;h[6]?(k.Xi=h[6][0],k.Yi=h[6][1],k.eh=h[6][2]):(k.Xi=null,k.Yi=0,k.eh=0);k.Ib=h[7]?h[7]:null;k.index=b;k.c=[];k.wh=[];k.Wd=[new fb(k)];k.hd=0;k.Oc=null;
k.Gq=0;k.Bf=!0;k.hj=gb;k.Jr=hb;k.Or=ib;k.ka=jb;k.Rg=kb;k.Ei=nb;k.Ee=ob;k.Hh=pb;k.bk=qb;k.ek=rb;k.cd=sb;k.Qm=tb;k.um=new Ya(this.Va,this.Ua);k.gm=!0;k.hm=!1;k.ya={};k.toString=ub;k.Ca=[];d=0;for(g=h[8].length;d<g;d++){q=h[8][d];var m=this.Cd(q[1]),t=null;f=0;for(e=this.Ca.length;f<e;f++)if(this.Ca[f]instanceof m){t=this.Ca[f];break}t||(t=new m(this),t.Tn=[],t.of=new ea,t.ga&&t.ga(),this.Ca.push(t));-1===t.Tn.indexOf(k)&&t.Tn.push(k);f=new t.Qa(t,k);f.name=q[0];f.T=q[2];f.ga();k.Ca.push(f)}k.global=
h[9];k.vk=h[10];k.I=[];d=0;for(g=h[12].length;d<g;d++)k.I.push({id:h[12][d][0],name:h[12][d][1],bb:-1,Ra:!0,index:d});k.nv=h[13];this.Cl&&!k.C&&!k.vk&&l.Nd||k.ga();k.name&&(this.types[k.name]=k);this.n.push(k);l.Oi&&(d=new l.ta(k),d.uid=this.Eg++,d.uo=this.Un++,d.te=0,d.Zf=vb,d.toString=wb,d.S=h[14],d.ga(),k.c.push(d),this.Pd[d.uid.toString()]=d)}b=0;for(c=a[4].length;b<c;b++)for(f=a[4][b],e=this.n[f[0]],d=1,g=f.length;d<g;d++)h=this.n[f[d]],h.ra.push(e),e.Qn.push(h);b=0;for(c=a[27].length;b<c;b++){f=
a[27][b];e=[];d=0;for(g=f.length;d<g;d++)e.push(this.n[f[d]]);d=0;for(g=e.length;d<g;d++)e[d].Cc=!0,e[d].Jb=e}if(0<this.Tf)for(b=0,c=this.n.length;b<c;b++)if(h=this.n[b],!h.C&&h.ra.length){h.Bh=Array(this.Tf);h.Te=Array(this.Tf);h.Dm=Array(this.Tf);k=[];d=t=m=q=0;for(g=h.ra.length;d<g;d++)for(l=h.ra[d],h.Bh[l.ld]=q,q+=l.Ut,h.Te[l.ld]=m,m+=l.rq,h.Dm[l.ld]=t,t+=l.Fr,f=0,e=l.I.length;f<e;f++)k.push(sa({},l.I[f]));h.I=k.concat(h.I);d=0;for(g=h.I.length;d<g;d++)h.I[d].index=d}b=0;for(c=a[5].length;b<c;b++)h=
a[5][b],d=new xb(this,h),this.Dk[d.name]=d,this.Ob.push(d);b=0;for(c=a[6].length;b<c;b++)h=a[6][b],d=new yb(this,h),this.Sj[d.name]=d,this.kd.push(d);b=0;for(c=this.kd.length;b<c;b++)this.kd[b].Ba();b=0;for(c=this.kd.length;b<c;b++)this.kd[b].zl();b=0;for(c=this.fj.length;b<c;b++)this.fj[b].Ba();this.fj.length=0;this.oq=a[7];this.Wj=a[8];this.Uc=a[9];this.Lf=1;this.Wq=a[13];this.V=a[14];this.vj=a[15];this.St=a[17];this.Xk=a[20];this.qq=0<this.Xk;this.Ys=a[22];this.kc=this.dp=a[23];this.Uq=a[24];this.gt=
a[25];this.Ti=Date.now();this.ji.length=0;this.ps()};var f=!1;d.prototype.Gl=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){f=a.pm=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.Bc?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(b){a.src=b},function(c){f=a.pm=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",c)}):a.src=b);this.Jf.push(a)};d.prototype.Cr=function(a){var b,c;b=0;for(c=
this.Jf.length;b<c;b++)if(this.Jf[b].Cq===a)return this.Jf[b];return null};var h=0,t=!1;d.prototype.es=function(){this.Oe&&(h=this.Oe.Dt(this.oq))};d.prototype.im=function(){var a=h,b=0,c=0,d=!0,g,f,c=0;for(g=this.Jf.length;c<g;c++){f=this.Jf[c];var e=f.Ij;if(!e||0>=e)e=5E4;a+=e;f.src&&(f.complete||f.loaded)&&!f.pm?b+=e:d=!1}d&&this.gt&&this.Oe&&(t||(this.Oe.Ht(),t=!0),c=this.Oe.Pr(),b+=c,c<h&&(d=!1));this.Fe=0==a?0:b/a;return d};d.prototype.go=function(){if(this.fa||this.q){var a=this.fa||this.Zk;
this.$a&&this.qo();this.Fe=0;this.vn=-1;if(this.im())this.gs();else{var b=Date.now()-this.Ti;if(a){var c=this.width,d=this.height,g=this.devicePixelRatio;this.$a&&(c=this.sh,d=this.rh,g=1);if(3!==this.vg&&(this.Ub||500<=b&&this.vn!=this.Fe)){a.clearRect(0,0,c,d);var b=c/2,d=d/2,c=0===this.vg&&this.jf.complete,h=40*g,e=0,k=80*g,q;c&&(k=this.jf.width*g,q=this.jf.height*g,h=k/2,e=q/2,a.drawImage(this.jf,P(b-h),P(d-e),k,q));1>=this.vg?(b=P(b-h)+.5,d=P(d+(e+(c?12*g:0)))+.5,a.fillStyle=f?"red":"DodgerBlue",
a.fillRect(b,d,Math.floor(k*this.Fe),6*g),a.strokeStyle="black",a.strokeRect(b,d,k,6*g),a.strokeStyle="white",a.strokeRect(b-1*g,d-1*g,k+2*g,8*g)):2===this.vg&&(a.font=this.Bc?"12pt ArialMT":"12pt Arial",a.fillStyle=f?"#f00":"#999",a.mv="middle",g=Math.round(100*this.Fe)+"%",c=a.measureText?a.measureText(g):null,a.fillText(g,b-(c?c.width:0)/2,d))}this.vn=this.Fe}setTimeout(function(a){return function(){a.go()}}(this),this.Ub?10:100)}}};d.prototype.gs=function(){this.$a&&(this.canvas.parentNode.removeChild(this.$a),
this.$a=this.Zk=null);this.Ti=Date.now();this.ng=S();var a,b,c;if(this.Cl)for(a=0,b=this.n.length;a<b;a++)c=this.n[a],c.C||c.vk||!c.wa.Nd||c.ga();else this.ff=!1;a=0;for(b=this.Ob.length;a<b;a++)this.Ob[a].Dq();2<=this.mb&&(a=this.Va/this.Ua,b=this.width/this.height,this.Lf=2!==this.mb&&b>a||2===this.mb&&b<a?this.height/this.Ua:this.width/this.Va);this.Hm?this.Dk[this.Hm].ql():this.Ob[0].ql();this.Cl||(this.ei=1,this.trigger(W.prototype.e.Ml,null));navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();a=0;for(b=this.n.length;a<b;a++)c=this.n[a],c.Ls&&c.Ls();this.Na(!1);this.Za&&AppMobi.webview.execute("onGameReady();")};var v=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Na=function(a){if(this.da){var b=S();if(this.js&&this.cl&&29>b-this.Bk)this.cl=!1,this.Bk=b,v?this.Gi=v(this.$i,this.canvas):this.bj=setTimeout(this.$i,this.Rc?1:16);else{this.cl=
!0;this.Bk=b;var c=this.mb,d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.mc;(d||this.gg)&&0<this.pe&&(c=this.pe);0<c&&(!this.Xh||window.self!==window.top)&&(c=window.innerHeight,this.mg===window.innerWidth&&this.lg===c||this.setSize(e(),m()));this.O||(d?(this.Dh||(this.Zj=jQuery(this.canvas).css("margin")||"0",this.Dh=!0),this.eg||this.Md||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.Dh?(this.eg||this.Md||jQuery(this.canvas).css("margin",this.Zj),this.Zj="",this.Dh=!1,0===this.mb&&this.setSize(Math.round(this.$n/this.devicePixelRatio),Math.round(this.Zn/this.devicePixelRatio),!0)):(this.$n=this.width,this.Zn=this.height));this.ff&&(d=this.im(),this.ei=this.Fe,d&&(this.ff=!1,this.Fe=1,this.trigger(W.prototype.e.Ml,null)));this.Gs();!this.ma&&!this.Ub||this.xk||this.ah||a||(this.ma=
!1,this.q?this.ub():this.jc(),this.Qi&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.Qi[0],this.Qi[1]),this.trigger(W.prototype.e.Cp,null)),this.Qi=null));this.hv||(this.fh++,this.Ah++,this.Fh++);this.Bg+=S()-b;this.hg||a||(v?this.Gi=v(this.$i,this.canvas):this.bj=setTimeout(this.$i,this.Rc?1:16))}}};d.prototype.Gs=function(){var a,b,c,d,g,f,h,e,k;a=S();1E3<=a-this.ng&&(this.ng+=1E3,this.Yj=this.Fh,this.Fh=0,this.Hj=this.Bg,this.Bg=0);this.Pn&&(0!==this.$h&&(b=a-this.$h,0!==b||
this.ss?(this.jd=b/1E3,.5<this.jd?this.jd=0:.1<this.jd&&(this.jd=.1)):(10<=this.ov&&(this.Pn=!1),this.jd=1/60)),this.$h=a);this.le=this.jd*this.Df;this.Vb.add(this.le);this.$c.add(this.jd);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.gg)&&!this.mc;2<=this.mb||a&&0<this.pe?(b=this.Va/this.Ua,c=this.width/this.height,d=this.mb,a&&0<this.pe&&(d=this.pe),this.Lf=2!==d&&c>b||2===d&&c<b?this.height/this.Ua:this.width/this.Va,this.da&&
(this.da.Ao(this.da.scrollX),this.da.Bo(this.da.scrollY))):this.Lf=this.ve?this.devicePixelRatio:1;this.gb();this.qd++;this.Xc.qt();this.qd--;this.gb();this.qd++;c=this.Yn.Jc();a=0;for(b=c.length;a<b;a++)c[a].jv();a=0;for(b=this.n.length;a<b;a++)if(h=this.n[a],!h.C&&(h.Ca.length||h.ra.length))for(c=0,d=h.c.length;c<d;c++)for(e=h.c[c],g=0,f=e.H.length;g<f;g++)e.H[g].Na();a=0;for(b=this.n.length;a<b;a++)if(h=this.n[a],!h.C&&(h.Ca.length||h.ra.length))for(c=0,d=h.c.length;c<d;c++)for(e=h.c[c],g=0,f=
e.H.length;g<f;g++)k=e.H[g],k.et&&k.et();c=this.Qk.Jc();a=0;for(b=c.length;a<b;a++)c[a].Na();this.qd--;this.ks();for(a=0;this.fe&&10>a++;)this.ym(this.fe);a=0;for(b=this.kd.length;a<b;a++)this.kd[a].nk=!1;this.da.ne&&this.da.ne.Ha();this.mt.length=0;this.qd++;a=0;for(b=this.n.length;a<b;a++)if(h=this.n[a],!h.C&&(h.Ca.length||h.ra.length))for(c=0,d=h.c.length;c<d;c++)for(e=h.c[c],g=0,f=e.H.length;g<f;g++)k=e.H[g],k.tl&&k.tl();c=this.Rk.Jc();a=0;for(b=c.length;a<b;a++)c[a].tl();this.qd--};d.prototype.ym=
function(a){var b=this.da;this.da.It();var c,d,g,f,h,e,k;if(this.q)for(c=0,d=this.n.length;c<d;c++)h=this.n[c],h.C||!h.gj||h.global&&0!==h.c.length||-1!==a.cg.indexOf(h)||h.gj();b==a&&(this.Xc.Fb.length=0);a.ql();c=0;for(d=this.n.length;c<d;c++)if(h=this.n[c],h.global||h.wa.Oi)for(a=0,b=h.c.length;a<b;a++)if(e=h.c[a],e.Wk&&e.Wk(),e.H)for(g=0,f=e.H.length;g<f;g++)k=e.H[g],k.Wk&&k.Wk();this.ma=!0;this.gb()};d.prototype.aj=function(a){this.Qk.add(a)};d.prototype.Jt=function(a){this.Rk.add(a)};d.prototype.ck=
function(a){return a&&-1!==a.Dg?this.jd*a.Dg:this.le};d.prototype.jc=function(){this.da.jc(this.fa);this.Za&&this.fa.present()};d.prototype.ub=function(){this.da.ub(this.q);this.q.ht()};d.prototype.jq=function(a){a&&this.Oj.push(a)};d.prototype.Jh=function(a){a=a.toString();return this.Pd.hasOwnProperty(a)?this.Pd[a]:null};var q=[];d.prototype.Bd=function(a){var b,c;b=a.type.name;var d=null;if(this.ie.hasOwnProperty(b)){if(d=this.ie[b],d.contains(a))return}else d=q.length?q.pop():new ea,this.ie[b]=
d;d.add(a);this.Ld=!0;if(a.Cc)for(b=0,c=a.siblings.length;b<c;b++)this.Bd(a.siblings[b]);this.uk&&d.Hf.push(a);this.qd++;this.trigger(Object.getPrototypeOf(a.type.wa).e.Fp,a);this.qd--};d.prototype.gb=function(){if(this.Ld){var a,b,c,d,g,f;this.uk=!0;c=0;for(g=this.Nc.length;c<g;++c)for(a=this.Nc[c],b=a.type,b.c.push(a),d=0,f=b.ra.length;d<f;++d)b.ra[d].c.push(a),b.ra[d].Bf=!0;this.Nc.length=0;this.tp();Ra(this.ie);this.Ld=this.uk=!1}};d.prototype.tp=function(){for(var a in this.ie)this.ie.hasOwnProperty(a)&&
this.ip(this.ie[a])};d.prototype.ip=function(a){var b=a.Jc(),c=b[0].type,d,g,f,h,e,k;Ua(c.c,a);c.Bf=!0;0===c.c.length&&(c.hm=!1);d=0;for(g=c.ra.length;d<g;++d)k=c.ra[d],Ua(k.c,a),k.Bf=!0;d=0;for(g=this.Xc.Fb.length;d<g;++d)if(e=this.Xc.Fb[d],e.rb.hasOwnProperty(c.index)&&Ua(e.rb[c.index].pd,a),!c.C)for(f=0,h=c.ra.length;f<h;++f)k=c.ra[f],e.rb.hasOwnProperty(k.index)&&Ua(e.rb[k.index].pd,a);(d=b[0].d)&&Ua(d.c,a);for(d=0;d<b.length;++d)this.hp(b[d],c);a.clear();q.push(a);this.ma=!0};d.prototype.hp=
function(a,b){var c,d,g;c=0;for(d=this.Oj.length;c<d;++c)this.Oj[c](a);a.oh&&b.um.update(a,a.oh,null);if(c=a.d)xa(c.c,a),c.Rb=!0;if(a.H)for(c=0,d=a.H.length;c<d;++c)g=a.H[c],g.sf&&g.sf(),g.behavior.of.remove(a);this.Yn.remove(a);this.Qk.remove(a);this.Rk.remove(a);a.sf&&a.sf();this.Pd.hasOwnProperty(a.uid.toString())&&delete this.Pd[a.uid.toString()];this.ki--;100>b.wh.length&&b.wh.push(a)};var C=[];d.prototype.he=function(a,b,c,d,g,f){var h,e,k,q;if(!a)return null;var l=this.n[a[1]],m=l.wa.Nd;if(this.ff&&
m&&!l.vk||m&&!this.q&&11===a[0][11])return null;var t=b;m||(b=null);var p;l.wh.length?(p=l.wh.pop(),p.Gc=!0,l.wa.ta.call(p,l)):(p=new l.wa.ta(l),p.Gc=!1);p.uid=c&&!f?a[2]:this.Eg++;this.Pd[p.uid.toString()]=p;p.uo=this.Un++;p.te=l.c.length;h=0;for(e=this.Nc.length;h<e;++h)this.Nc[h].type===l&&p.te++;p.Zf=vb;k=a[3];if(p.Gc)Ra(p.ya);else{p.ya={};if("undefined"!==typeof cr_is_preview)for(p.an=[],p.an.length=k.length,h=0,e=k.length;h<e;h++)p.an[h]=k[h][1];p.Ka=[];p.Ka.length=k.length}h=0;for(e=k.length;h<
e;h++)p.Ka[h]=k[h][0];if(m){var v=a[0];p.x=ga(d)?v[0]:d;p.y=ga(g)?v[1]:g;p.z=v[2];p.width=v[3];p.height=v[4];p.depth=v[5];p.j=v[6];p.opacity=v[7];p.xb=v[8];p.yb=v[9];p.tb=v[10];h=v[11];!this.q&&l.I.length&&(p.tb=h);p.Pf=Za(p.tb);this.m&&$a(p,p.tb,this.m);if(p.Gc){h=0;for(e=v[12].length;h<e;h++)for(k=0,q=v[12][h].length;k<q;k++)p.va[h][k]=v[12][h][k];p.hb.set(0,0,0,0);p.oh.set(0,0,-1,-1);p.Pe.Xg(p.hb);p.zj.length=0}else{p.va=v[12].slice(0);h=0;for(e=p.va.length;h<e;h++)p.va[h]=v[12][h].slice(0);p.Y=
[];p.Dd=[];p.Dd.length=l.I.length;p.hb=new qa(0,0,0,0);p.oh=new qa(0,0,-1,-1);p.Pe=new ra;p.zj=[];p.Ia=zb;p.mq=Ab;p.gc=Bb;p.sb=Cb;p.Rt=Db;p.Lb=Eb}p.Lt=!1;p.Nt=0;p.Mt=0;p.Kt=null;14===v.length&&(p.Lt=!0,p.Nt=v[13][0],p.Mt=v[13][1],p.Kt=v[13][2]);h=0;for(e=l.I.length;h<e;h++)p.Dd[h]=!0;p.Ad=Fb;p.Ad();p.cp=!!p.Y.length;p.kh=!0;p.Dj=!0;l.gm=!0;p.visible=!0;p.Dg=-1;p.d=b;p.Je=b.c.length;"undefined"===typeof p.Mc&&(p.Mc=null);this.ma=p.Of=!0}p.toString=wb;var I;h=C.length=0;for(e=l.ra.length;h<e;h++)C.push.apply(C,
l.ra[h].Ca);C.push.apply(C,l.Ca);if(p.Gc)for(h=0,e=C.length;h<e;h++){var y=C[h];I=p.H[h];I.Gc=!0;y.behavior.ta.call(I,y,p);v=a[4][h];k=0;for(q=v.length;k<q;k++)I.S[k]=v[k];I.ga();y.behavior.of.add(p)}else for(p.H=[],h=0,e=C.length;h<e;h++)y=C[h],I=new y.behavior.ta(y,p),I.Gc=!1,I.S=a[4][h].slice(0),I.ga(),p.H.push(I),y.behavior.of.add(p);v=a[5];if(p.Gc)for(h=0,e=v.length;h<e;h++)p.S[h]=v[h];else p.S=v.slice(0);this.Nc.push(p);this.Ld=!0;b&&(b.c.push(p),1!==b.qc||1!==b.rc)&&(l.hm=!0);this.ki++;if(l.Cc){if(p.Cc=
!0,p.Gc?p.siblings.length=0:p.siblings=[],!c&&!f){h=0;for(e=l.Jb.length;h<e;h++)if(l.Jb[h]!==l){if(!l.Jb[h].Oc)return null;p.siblings.push(this.he(l.Jb[h].Oc,t,!1,m?p.x:d,m?p.y:g,!0))}h=0;for(e=p.siblings.length;h<e;h++)for(p.siblings[h].siblings.push(p),k=0;k<e;k++)h!==k&&p.siblings[h].siblings.push(p.siblings[k])}}else p.Cc=!1,p.siblings=null;p.ga();h=0;for(e=p.H.length;h<e;h++)p.H[h].dt&&p.H[h].dt();return p};d.prototype.Wf=function(a){var b,c;b=0;for(c=this.da.N.length;b<c;b++){var d=this.da.N[b];
if(bb(d.name,a))return d}return null};d.prototype.nd=function(a){a=P(a);0>a&&(a=0);a>=this.da.N.length&&(a=this.da.N.length-1);return this.da.N[a]};d.prototype.Gj=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].ka().na=!0};d.prototype.Rg=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Rg()};d.prototype.Ei=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Ei()};d.prototype.Ee=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Ee()};d.prototype.Cf=function(a,b,c,d){var g=a.ka(),f,h,e,k,q,
l;if(g.na)for(d||(g.na=!1,g.c.length=0),f=0,k=a.c.length;f<k;f++){if(e=a.c[f],e.sb(),q=e.d.qa(b,c,!0),l=e.d.qa(b,c,!1),e.gc(q,l)){if(d)return!1;g.c.push(e)}}else{f=h=0;for(k=g.c.length;f<k;f++)if(e=g.c[f],e.sb(),q=e.d.qa(b,c,!0),l=e.d.qa(b,c,!1),e.gc(q,l)){if(d)return!1;g.c[h]=g.c[f];h++}d||(g.c.length=h)}a.cd();return d?!0:g.mk()};new ra;new qa(0,0,0,0);d.prototype.To=function(a,b){if(!b)return!1;var c,d,g,f,h;c=0;for(d=a.Ca.length;c<d;c++)if(a.Ca[c].behavior instanceof b)return!0;if(!a.C)for(c=
0,d=a.ra.length;c<d;c++)for(h=a.ra[c],g=0,f=h.Ca.length;g<f;g++)if(h.Ca[g].behavior instanceof b)return!0;return!1};d.prototype.Uo=function(a){return this.To(a,Tb.wu)};d.prototype.yl=function(a){return this.To(a,Tb.xu)};var p=-1;d.prototype.trigger=function(a,b,c){if(!this.da)return!1;var d=this.da.ne;if(!d)return!1;var g=!1,f,h,e;p++;var k=d.Mj;h=0;for(e=k.length;h<e;++h)f=this.Qo(a,b,k[h],c),g=g||f;f=this.Qo(a,b,d,c);p--;return g||f};d.prototype.Qo=function(a,b,c,d){var g=!1,f,h,e,k;if(b)for(e=
this.wl(a,b,b.type.name,c,d),g=g||e,k=b.type.ra,f=0,h=k.length;f<h;++f)e=this.wl(a,b,k[f].name,c,d),g=g||e;else e=this.wl(a,b,"system",c,d),g=g||e;return g};d.prototype.wl=function(a,b,c,d,g){var f,h=!1,e=!1,e="undefined"!==typeof g,k=(e?d.Fm:d.Ro)[c];if(!k)return h;var q=null;d=0;for(f=k.length;d<f;++d)if(k[d].method==a){q=k[d].Sf;break}if(!q)return h;a=e?q[g]:q;if(!a)return null;d=0;for(f=a.length;d<f;d++)g=a[d][0],e=a[d][1],e=this.Ar(b,c,g,e),h=h||e;return h};d.prototype.Ar=function(a,b,c,d){var g,
f,h=!1;this.xl++;var e=this.kb().ib;e&&this.Rg(e.Ud);var k=1<this.xl;this.Rg(c.Ud);k&&this.jt();var q=this.Fi(c);q.ib=c;a&&(g=this.types[b].ka(),g.na=!1,g.c.length=1,g.c[0]=a,this.types[b].cd());a=!0;if(c.parent){b=q.Mo;for(g=c.parent;g;)b.push(g),g=g.parent;b.reverse();g=0;for(f=b.length;g<f;g++)if(!b[g].ut()){a=!1;break}}a&&(this.Ah++,c.Ec?c.tt(d):c.Ha(),h=h||q.ze);this.xi();k&&this.bt();this.Ee(c.Ud);e&&this.Ee(e.Ud);this.Ld&&0===this.qd&&0===p&&!this.wk&&this.gb();this.xl--;return h};d.prototype.Mm=
function(){var a=this.kb();return a.ib.Ja[a.Da]};d.prototype.jt=function(){this.gi++;this.gi>=this.Ik.length&&this.Ik.push([])};d.prototype.bt=function(){this.gi--};d.prototype.Nm=function(){return this.Ik[this.gi]};d.prototype.Fi=function(a){this.zh++;this.zh>=this.Rj.length&&this.Rj.push(new Gb);var b=this.kb();b.reset(a);return b};d.prototype.xi=function(){this.zh--};d.prototype.kb=function(){return this.Rj[this.zh]};d.prototype.kt=function(){this.hi++;this.hi>=this.lf.length&&this.lf.push(ba({name:void 0,
index:0,cb:!1}));var a=this.Om();a.name=void 0;a.index=0;a.cb=!1;return a};d.prototype.ct=function(){this.hi--};d.prototype.Om=function(){return this.lf[this.hi]};d.prototype.Pm=function(a,b){for(var c,d,g,f,h,e;b;){c=0;for(d=b.uc.length;c<d;c++)if(e=b.uc[c],e instanceof Hb&&bb(a,e.name))return e;b=b.parent}c=0;for(d=this.kd.length;c<d;c++)for(h=this.kd[c],g=0,f=h.Kd.length;g<f;g++)if(e=h.Kd[g],e instanceof Hb&&bb(a,e.name))return e;return null};d.prototype.Rm=function(a){var b,c;b=0;for(c=this.Ob.length;b<
c;b++)if(this.Ob[b].T===a)return this.Ob[b];return null};d.prototype.Kh=function(a){var b,c;b=0;for(c=this.n.length;b<c;b++)if(this.n[b].T===a)return this.n[b];return null};d.prototype.Kr=function(a){var b,c;b=0;for(c=this.Fd.length;b<c;b++)if(this.Fd[b].T===a)return this.Fd[b];return null};d.prototype.ks=function(){var c=this,d=this.Li,g=this.rd,f=this.tg,h=!1;this.Jo&&(h=!0,d="__c2_continuouspreview",this.Jo=!1);if(d.length){this.gb();g=this.zt();if(window.indexedDB&&!this.Ub)k(d,g,function(){G("Saved state to IndexedDB storage ("+
g.length+" bytes)");c.rd=g;c.trigger(W.prototype.e.qj,null);c.rd="";h&&b()},function(a){try{localStorage.setItem("__c2save_"+d,g),G("Saved state to WebStorage ("+g.length+" bytes)"),c.rd=g,c.trigger(W.prototype.e.qj,null),c.rd="",h&&b()}catch(f){G("Failed to save game state: "+a+"; "+f)}});else try{localStorage.setItem("__c2save_"+d,g),G("Saved state to WebStorage ("+g.length+" bytes)"),c.rd=g,this.trigger(W.prototype.e.qj,null),c.rd="",h&&b()}catch(e){G("Error saving to WebStorage: "+e)}this.pb=
this.tg=this.Li=""}f.length&&(window.indexedDB&&!this.Ub?a(f,function(a){a?(c.pb=a,G("Loaded state from IndexedDB storage ("+c.pb.length+" bytes)")):(c.pb=localStorage.getItem("__c2save_"+f)||"",G("Loaded state from WebStorage ("+c.pb.length+" bytes)"));c.ah=!1;c.pb.length||c.trigger(W.prototype.e.oj,null)},function(){c.pb=localStorage.getItem("__c2save_"+f)||"";G("Loaded state from WebStorage ("+c.pb.length+" bytes)");c.ah=!1;c.pb.length||c.trigger(W.prototype.e.oj,null)}):(this.pb=localStorage.getItem("__c2save_"+
f)||"",G("Loaded state from WebStorage ("+this.pb.length+" bytes)"),this.ah=!1,c.pb.length||c.trigger(W.prototype.e.oj,null)),this.Li=this.tg="");this.pb.length&&(this.gb(),this.Fs(this.pb),this.rd=this.pb,this.trigger(W.prototype.e.Rp,null),this.pb=this.rd="")};d.prototype.zt=function(){var a,b,d,g,f,h,e,k={c2save:!0,version:1,rt:{time:this.Vb.ea,walltime:this.$c.ea,timescale:this.Df,tickcount:this.fh,execcount:this.Ah,next_uid:this.Eg,running_layout:this.da.T,start_time_offset:Date.now()-this.Ti},
types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(b=this.n.length;a<b;a++)if(f=this.n[a],!f.C&&!this.Uo(f)){h={instances:[]};Qa(f.ya)&&(h.ex=c(f.ya));d=0;for(g=f.c.length;d<g;d++)h.instances.push(this.jl(f.c[d]));k.types[f.T.toString()]=h}a=0;for(b=this.Ob.length;a<b;a++)d=this.Ob[a],k.layouts[d.T.toString()]=d.Cb();g=k.events.groups;a=0;for(b=this.Fd.length;a<b;a++)d=this.Fd[a],g[d.T.toString()]=this.Lh[d.$f].Ve;b=k.events.cnds;for(e in this.Qe)this.Qe.hasOwnProperty(e)&&(a=
this.Qe[e],Qa(a.ya)&&(b[e]={ex:c(a.ya)}));b=k.events.acts;for(e in this.Ne)this.Ne.hasOwnProperty(e)&&(a=this.Ne[e],Qa(a.ya)&&(b[e]={ex:a.ya}));b=k.events.vars;for(e in this.If)this.If.hasOwnProperty(e)&&(a=this.If[e],a.Uh||a.parent&&!a.jg||(b[e]=a.data));k.system=this.Xc.Cb();return JSON.stringify(k)};d.prototype.vo=function(){var a,b,c,d,g,f;this.Pd={};a=0;for(b=this.n.length;a<b;a++)if(c=this.n[a],!c.C)for(d=0,g=c.c.length;d<g;d++)f=c.c[d],this.Pd[f.uid.toString()]=f};d.prototype.Fs=function(a){a=
JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.Vb.reset();this.Vb.ea=b.time;this.$c.reset();this.$c.ea=b.walltime||0;this.Df=b.timescale;this.fh=b.tickcount;this.Ti=Date.now()-b.start_time_offset;var c=b.running_layout;if(c!==this.da.T)if(c=this.Rm(c))this.ym(c);else return;var d,g,f,h,e,k,q;k=a.types;for(g in k)if(k.hasOwnProperty(g)&&(h=this.Kh(parseInt(g,10)))&&!h.C&&!this.Uo(h)){k[g].ex?h.ya=k[g].ex:Ra(h.ya);e=h.c;f=k[g].instances;c=0;for(d=ma(e.length,f.length);c<d;c++)this.ci(e[c],
f[c]);c=f.length;for(d=e.length;c<d;c++)this.Bd(e[c]);c=e.length;for(d=f.length;c<d;c++){e=null;if(h.wa.Nd&&(e=this.da.Ih(f[c].w.l),!e))continue;e=this.he(h.Oc,e,!1,0,0,!0);this.ci(e,f[c])}h.Bf=!0}this.gb();this.vo();d=a.layouts;for(g in d)d.hasOwnProperty(g)&&(c=this.Rm(parseInt(g,10)))&&c.Xb(d[g]);d=a.events.groups;for(g in d)d.hasOwnProperty(g)&&(c=this.Kr(parseInt(g,10)))&&this.Lh[c.$f]&&(this.Lh[c.$f].Ve=d[g]);c=a.events.cnds;for(g in c)c.hasOwnProperty(g)&&this.Qe.hasOwnProperty(g)&&(this.Qe[g].ya=
c[g].ex);c=a.events.acts;for(g in c)c.hasOwnProperty(g)&&this.Ne.hasOwnProperty(g)&&(this.Ne[g].ya=c[g].ex);c=a.events.vars;for(g in c)c.hasOwnProperty(g)&&this.If.hasOwnProperty(g)&&(this.If[g].data=c[g]);this.Eg=b.next_uid;this.Xc.Xb(a.system);c=0;for(d=this.n.length;c<d;c++)if(h=this.n[c],!h.C)for(g=0,a=h.c.length;g<a;g++){e=h.c[g];if(h.Cc)for(k=e.Zf(),b=e.siblings.length=0,f=h.Jb.length;b<f;b++)q=h.Jb[b],h!==q&&e.siblings.push(q.c[k]);e.ad&&e.ad();if(e.H)for(b=0,f=e.H.length;b<f;b++)k=e.H[b],
k.ad&&k.ad()}this.ma=!0}};d.prototype.jl=function(a,b){var d,g,f,h,e;h=a.type;f=h.wa;var k={};b?k.c2=!0:k.uid=a.uid;Qa(a.ya)&&(k.ex=c(a.ya));if(a.Ka&&a.Ka.length)for(k.ivs={},d=0,g=a.Ka.length;d<g;d++)k.ivs[a.type.tk[d].toString()]=a.Ka[d];if(f.Nd){f={x:a.x,y:a.y,w:a.width,h:a.height,l:a.d.T,zi:a.Lb()};0!==a.j&&(f.a=a.j);1!==a.opacity&&(f.o=a.opacity);.5!==a.xb&&(f.hX=a.xb);.5!==a.yb&&(f.hY=a.yb);0!==a.tb&&(f.bm=a.tb);a.visible||(f.v=a.visible);a.Of||(f.ce=a.Of);-1!==a.Dg&&(f.mts=a.Dg);if(h.I.length)for(f.fx=
[],d=0,g=h.I.length;d<g;d++)e=h.I[d],f.fx.push({name:e.name,active:a.Dd[e.index],params:a.va[e.index]});k.w=f}if(a.H&&a.H.length)for(k.behs={},d=0,g=a.H.length;d<g;d++)h=a.H[d],h.Cb&&(k.behs[h.type.T.toString()]=h.Cb());a.Cb&&(k.data=a.Cb());return k};d.prototype.Mr=function(a,b){var c,d;c=0;for(d=a.tk.length;c<d;c++)if(a.tk[c]===b)return c;return-1};d.prototype.Ir=function(a,b){var c,d;c=0;for(d=a.H.length;c<d;c++)if(a.H[c].type.T===b)return c;return-1};d.prototype.ci=function(a,b,c){var d,g,f,h,
e;e=a.type;f=e.wa;if(c){if(!b.c2)return}else a.uid=b.uid;b.ex?a.ya=b.ex:Ra(a.ya);if(g=b.ivs)for(d in g)g.hasOwnProperty(d)&&(c=this.Mr(e,parseInt(d,10)),0>c||c>=a.Ka.length||(a.Ka[c]=g[d]));if(f.Nd){f=b.w;a.d.T!==f.l&&(c=a.d,a.d=this.da.Ih(f.l),a.d?(a.d.c.push(a),a.d.Rb=!0,xa(c.c,a),c.Rb=!0):(a.d=c,this.Bd(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.Je=f.zi;a.j=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.xb=f.hasOwnProperty("hX")?f.hX:.5;a.yb=f.hasOwnProperty("hY")?f.hY:
.5;a.visible=f.hasOwnProperty("v")?f.v:!0;a.Of=f.hasOwnProperty("ce")?f.ce:!0;a.Dg=f.hasOwnProperty("mts")?f.mts:-1;a.tb=f.hasOwnProperty("bm")?f.bm:0;a.Pf=Za(a.tb);this.m&&$a(a,a.tb,this.m);a.Ia();if(f.hasOwnProperty("fx"))for(c=0,g=f.fx.length;c<g;c++)h=e.ek(f.fx[c].name),0>h||(a.Dd[h]=f.fx[c].active,a.va[h]=f.fx[c].params);a.Ad()}if(e=b.behs)for(d in e)e.hasOwnProperty(d)&&(f=this.Ir(a,parseInt(d,10)),0>f||a.H[f].Xb(e[d]));b.data&&a.Xb(b.data)};Ib=function(a){return new d(document.getElementById(a))};
Jb=function(a,b){return new d({dc:!0,width:a,height:b})};window.cr_createRuntime=Ib;window.cr_createDCRuntime=Jb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.lv=!0;document.body.appendChild(a);a=new d(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 d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(e,m){if(0!==e&&0!==m){var d=window.cr_getC2Runtime();d&&d.setSize(e,m)}};window.cr_setSuspended=function(e){var m=window.cr_getC2Runtime();m&&m.setSuspended(e)};
(function(){function e(a,b){this.b=a;this.ne=null;this.scrollX=this.b.Va/2;this.scrollY=this.b.Ua/2;this.scale=1;this.j=0;this.Vf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Vo=b[3];this.Ho=b[4];this.T=b[5];var c=b[6],d,f;this.N=[];this.cg=[];d=0;for(f=c.length;d<f;d++){var h=new Kb(this,c[d]);h.Wn=d;this.N.push(h)}c=b[7];this.ue=[];d=0;for(f=c.length;d<f;d++){var h=c[d],e=this.b.n[h[1]];e.Oc||(e.Oc=h);this.ue.push(h);-1===this.cg.indexOf(e)&&this.cg.push(e)}this.I=[];this.Y=[];this.va=
[];d=0;for(f=b[8].length;d<f;d++)this.I.push({id:b[8][d][0],name:b[8][d][1],bb:-1,Ra:!0,index:d}),this.va.push(b[8][d][2].slice(0));this.Ad();this.Tg=new qa(0,0,1,1);this.dl=new qa(0,0,1,1);this.Qd={}}function m(a,b){return a.Je-b.Je}function d(a,b){this.la=a;this.b=a.b;this.c=[];this.scale=1;this.j=0;this.je=!1;this.yd=new qa(0,0,0,0);this.Oo=new ra;this.eb=this.Pa=this.fb=this.Oa=0;this.Rb=!1;this.name=b[0];this.index=b[1];this.T=b[2];this.visible=b[3];this.Gd=b[4];this.zd=b[5];this.qc=b[6];this.rc=
b[7];this.opacity=b[8];this.Xj=b[9];this.Gb=b[10];this.tb=b[11];this.Vq=b[12];this.Pf="source-over";this.jb=this.lb=0;this.Rd=!1;var c=b[13],d,f;this.Ye=[];d=0;for(f=c.length;d<f;d++){var h=c[d],e=this.b.n[h[1]];e.Oc||(e.Oc=h,e.Gq=this.index);this.Ye.push(h);-1===this.la.cg.indexOf(e)&&this.la.cg.push(e)}this.I=[];this.Y=[];this.va=[];d=0;for(f=b[14].length;d<f;d++)this.I.push({id:b[14][d][0],name:b[14][d][1],bb:-1,Ra:!0,index:d}),this.va.push(b[14][d][2].slice(0));this.Ad();this.Tg=new qa(0,0,1,
1);this.dl=new qa(0,0,1,1)}e.prototype.yt=function(a){var b=a.type.T.toString();this.Qd.hasOwnProperty(b)||(this.Qd[b]=[]);this.Qd[b].push(this.b.jl(a))};e.prototype.Um=function(){var a=this.N[0];return!a.zd&&1===a.opacity&&!a.Xj&&a.visible};e.prototype.Ad=function(){this.Y.length=0;var a,b,c;a=0;for(b=this.I.length;a<b;a++)c=this.I[a],c.Ra&&this.Y.push(c)};e.prototype.dk=function(a){var b,c,d;b=0;for(c=this.I.length;b<c;b++)if(d=this.I[b],d.name===a)return d;return null};var l=[],k=!0;e.prototype.ql=
function(){this.Ho&&(this.ne=this.b.Sj[this.Ho],this.ne.zl());this.b.da=this;this.scrollX=this.b.Va/2;this.scrollY=this.b.Ua/2;var a,b,c,d,f,h,e;a=0;for(c=this.b.n.length;a<c;a++)if(b=this.b.n[a],!b.C)for(f=b.c,b=0,d=f.length;b<d;b++)if(h=f[b],h.d){var v=h.d.Wn;v>=this.N.length&&(v=this.N.length-1);h.d=this.N[v];-1===h.d.c.indexOf(h)&&h.d.c.push(h);h.d.Rb=!0}if(!k)for(a=0,c=this.N.length;a<c;++a)this.N[a].c.sort(m);l.length=0;this.sq();a=0;for(c=this.N.length;a<c;a++)h=this.N[a],h.Eq(),h.Bl();f=!1;
if(!this.Vf){for(e in this.Qd)if(this.Qd.hasOwnProperty(e)&&(b=this.b.Kh(parseInt(e,10)))&&!b.C&&this.b.yl(b)){d=this.Qd[e];a=0;for(c=d.length;a<c;a++){h=null;if(b.wa.Nd&&(h=this.Ih(d[a].w.l),!h))continue;h=this.b.he(b.Oc,h,!1,0,0,!0);this.b.ci(h,d[a]);f=!0;l.push(h)}d.length=0}a=0;for(c=this.N.length;a<c;a++)this.N[a].c.sort(m),this.N[a].Rb=!0}f&&(this.b.gb(),this.b.vo());for(a=0;a<l.length;a++)if(h=l[a],h.type.Cc)for(c=h.Zf(),b=0,d=h.type.Jb.length;b<d;b++)e=h.type.Jb[b],h.type!==e&&(e.c.length>
c?h.siblings.push(e.c[c]):e.Oc&&(f=this.b.he(e.Oc,h.d,!0,h.x,h.y,!0),this.b.gb(),e.hj(),h.siblings.push(f),l.push(f)));a=0;for(c=this.ue.length;a<c;a++)this.b.he(this.ue[a],null,!0);this.b.fe=null;this.b.gb();if(this.b.fa&&!this.b.O)for(a=0,c=this.b.n.length;a<c;a++)e=this.b.n[a],!e.C&&e.c.length&&e.Bi&&e.Bi(this.b.fa);a=0;for(c=l.length;a<c;a++)h=l[a],this.b.trigger(Object.getPrototypeOf(h.type.wa).e.Ep,h);l.length=0;this.b.trigger(W.prototype.e.Ll,null);this.Vf=!1};e.prototype.Dq=function(){var a,
b,c,d,f;b=a=0;for(c=this.ue.length;a<c;a++)d=this.ue[a],f=this.b.n[d[1]],f.global?this.b.he(d,null,!0):(this.ue[b]=d,b++);this.ue.length=b};e.prototype.It=function(){this.b.trigger(W.prototype.e.Qp,null);this.b.Xc.Fb.length=0;var a,b,c,d,f,h;a=0;for(b=this.N.length;a<b;a++)for(this.N[a].bp(),f=this.N[a].c,c=0,d=f.length;c<d;c++)h=f[c],h.type.global||this.b.yl(h.type)&&this.yt(h);a=0;for(b=this.N.length;a<b;a++){f=this.N[a].c;c=0;for(d=f.length;c<d;c++)h=f[c],h.type.global||this.b.Bd(h);this.b.gb();
f.length=0;this.N[a].Rb=!0}a=0;for(b=this.b.n.length;a<b;a++)if(f=this.b.n[a],!(f.global||f.wa.Nd||f.wa.Oi||f.C)){c=0;for(d=f.c.length;c<d;c++)this.b.Bd(f.c[c]);this.b.gb()}k=!1};e.prototype.jc=function(a){var b,c=a,d=!1,f=!this.b.kc;f&&(this.b.bi||(this.b.bi=document.createElement("canvas"),b=this.b.bi,b.width=this.b.M,b.height=this.b.L,this.b.xn=b.getContext("2d"),d=!0),b=this.b.bi,c=this.b.xn,b.width!==this.b.M&&(b.width=this.b.M,d=!0),b.height!==this.b.L&&(b.height=this.b.L,d=!0),d&&(c.webkitImageSmoothingEnabled=
this.b.V,c.mozImageSmoothingEnabled=this.b.V,c.msImageSmoothingEnabled=this.b.V,c.imageSmoothingEnabled=this.b.V));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.vj&&!this.Um()&&c.clearRect(0,0,this.b.M,this.b.L);var h,e,d=0;for(h=this.N.length;d<h;d++)e=this.N[d],e.visible&&0<e.opacity&&11!==e.tb&&(e.c.length||!e.zd)?e.jc(c):e.Bl();f&&a.drawImage(b,0,0,this.b.width,this.b.height)};e.prototype.ub=function(a){var b=0<this.Y.length||this.b.Gf||!this.b.kc;if(b){this.b.Nb||(this.b.Nb=
a.Id(this.b.M,this.b.L,this.b.V));if(this.b.Nb.Nf!==this.b.M||this.b.Nb.Mf!==this.b.L)a.deleteTexture(this.b.Nb),this.b.Nb=a.Id(this.b.M,this.b.L,this.b.V);a.Vc(this.b.Nb);this.b.kc||a.yf(this.b.M,this.b.L)}else this.b.Nb&&(a.Vc(null),a.deleteTexture(this.b.Nb),this.b.Nb=null);this.b.vj&&!this.Um()&&a.clear(0,0,0,0);var c,d,f;c=0;for(d=this.N.length;c<d;c++)f=this.N[c],f.visible&&0<f.opacity&&(f.c.length||!f.zd)?f.ub(a):f.Bl();b&&(0===this.Y.length||1===this.Y.length&&this.b.kc?(1===this.Y.length?
(b=this.Y[0].index,a.Wc(this.Y[0].bb),a.xf(null,1/this.b.M,1/this.b.L,0,0,1,1,this.scale,this.j,0,0,this.b.M/2,this.b.L/2,this.va[b]),a.Ci(this.Y[0].bb)&&(this.b.ma=!0)):a.Wc(0),this.b.kc||a.yf(this.b.width,this.b.height),a.Vc(null),a.Ge(1),a.Qb(this.b.Nb),a.Co(),a.Sd(),a.$d(),b=this.b.width/2,c=this.b.height/2,a.Sg(-b,c,b,c,b,-c,-b,-c),a.Qb(null)):this.el(a,null,null,null))};e.prototype.Xf=function(){return 0<this.Y.length||this.b.Gf||!this.b.kc?this.b.Nb:null};e.prototype.Sm=function(){var a=this.N[0].Kb(),
b,c,d;b=1;for(c=this.N.length;b<c;b++)d=this.N[b],(0!==d.qc||0!==d.rc)&&d.Kb()<a&&(a=d.Kb());return a};e.prototype.Ao=function(a){if(!this.Vo){var b=1/this.Sm()*this.b.M/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ma=!0)};e.prototype.Bo=function(a){if(!this.Vo){var b=1/this.Sm()*this.b.L/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ma=!0)};e.prototype.sq=function(){this.Ao(this.scrollX);this.Bo(this.scrollY)};e.prototype.el=
function(a,b,c,d){var f=c?c.Y:b?b.Y:this.Y,h=1,e=0,k=0,q=0,l=this.b.M,m=this.b.L;c?(h=c.d.Kb(),e=c.d.Sa(),k=c.d.Oa,q=c.d.Pa,l=c.d.fb,m=c.d.eb):b&&(h=b.Kb(),e=b.Sa(),k=b.Oa,q=b.Pa,l=b.fb,m=b.eb);var n=this.b.$j,u,w,B,s,A=0,X=1,R,x=this.b.M,z=this.b.L,ia=x/2,Z=z/2,K=b?b.Tg:this.Tg,D=b?b.dl:this.dl,r=0,I=0,y=0,H=0,E=x,T=x,F=z,J=z,M=B=0,aa=c?c.d.Sa():0;if(c){u=0;for(w=f.length;u<w;u++)B+=a.Qr(f[u].bb),M+=a.Rr(f[u].bb);s=c.hb;r=b.nb(s.left,s.top,!0,!0);y=b.nb(s.left,s.top,!1,!0);E=b.nb(s.right,s.bottom,
!0,!0);F=b.nb(s.right,s.bottom,!1,!0);0!==aa&&(u=b.nb(s.right,s.top,!0,!0),w=b.nb(s.right,s.top,!1,!0),I=b.nb(s.left,s.bottom,!0,!0),H=b.nb(s.left,s.bottom,!1,!0),s=Math.min(r,E,u,I),E=Math.max(r,E,u,I),r=s,s=Math.min(y,F,w,H),F=Math.max(y,F,w,H),y=s);r-=B;y-=M;E+=B;F+=M;D.left=r/x;D.top=1-y/z;D.right=E/x;D.bottom=1-F/z;I=r=P(r);H=y=P(y);T=E=oa(E);J=F=oa(F);I-=B;H-=M;T+=B;J+=M;0>r&&(r=0);0>y&&(y=0);E>x&&(E=x);F>z&&(F=z);0>I&&(I=0);0>H&&(H=0);T>x&&(T=x);J>z&&(J=z);K.left=r/x;K.top=1-y/z;K.right=E/
x;K.bottom=1-F/z}else K.left=D.left=0,K.top=D.top=0,K.right=D.right=1,K.bottom=D.bottom=1;M=c&&((c.j||aa)&&a.Qg(f[0].bb)||0!==B||0!==M||1!==c.opacity||c.type.wa.Sn)||b&&!c&&1!==b.opacity;a.Co();if(M){n[A]||(n[A]=a.Id(x,z,this.b.V));if(n[A].Nf!==x||n[A].Mf!==z)a.deleteTexture(n[A]),n[A]=a.Id(x,z,this.b.V);a.Wc(0);a.Vc(n[A]);R=J-H;a.clearRect(I,z-H-R,T-I,R);c?c.ub(a):(a.Qb(this.b.Wb),a.Ge(b.opacity),a.Sd(),a.translate(-ia,-Z),a.$d(),a.vd(r,F,E,F,E,y,r,y,K));D.left=D.top=0;D.right=D.bottom=1;c&&(s=K.top,
K.top=K.bottom,K.bottom=s);A=1;X=0}a.Ge(1);B=f.length-1;var aa=a.bl(f[B].bb)||!b&&!c&&!this.b.kc,ka=0;u=0;for(w=f.length;u<w;u++){n[A]||(n[A]=a.Id(x,z,this.b.V));if(n[A].Nf!==x||n[A].Mf!==z)a.deleteTexture(n[A]),n[A]=a.Id(x,z,this.b.V);a.Wc(f[u].bb);ka=f[u].index;a.Ci(f[u].bb)&&(this.b.ma=!0);0!=u||M?(a.xf(d,1/x,1/z,D.left,D.top,D.right,D.bottom,h,e,k,q,(k+l)/2,(q+m)/2,c?c.va[ka]:b?b.va[ka]:this.va[ka]),a.Qb(null),u!==B||aa?(a.Vc(n[A]),R=J-H,s=z-H-R,a.clearRect(I,s,T-I,R)):(c?a.Td(c.lb,c.jb):b&&a.Td(b.lb,
b.jb),a.Vc(d)),a.Qb(n[X]),a.Sd(),a.translate(-ia,-Z),a.$d(),a.vd(r,F,E,F,E,y,r,y,K),u!==B||aa||a.Qb(null)):(a.Vc(n[A]),R=J-H,s=z-H-R,a.clearRect(I,s,T-I,R),c?(a.xf(d,1/c.width,1/c.height,D.left,D.top,D.right,D.bottom,h,e,k,q,(k+l)/2,(q+m)/2,c.va[ka]),c.ub(a)):(a.xf(d,1/x,1/z,0,0,1,1,h,e,k,q,(k+l)/2,(q+m)/2,b?b.va[ka]:this.va[ka]),a.Qb(b?this.b.Wb:this.b.Nb),a.Sd(),a.translate(-ia,-Z),a.$d(),a.vd(r,F,E,F,E,y,r,y,K)),D.left=D.top=0,D.right=D.bottom=1,c&&!aa&&(s=F,F=y,y=s));A=0===A?1:0;X=0===A?1:0}aa&&
(a.Wc(0),c?a.Td(c.lb,c.jb):b?a.Td(b.lb,b.jb):this.b.kc||(a.yf(this.b.width,this.b.height),ia=this.b.width/2,Z=this.b.height/2,y=r=0,E=this.b.width,F=this.b.height),a.Vc(d),a.Qb(n[X]),a.Sd(),a.translate(-ia,-Z),a.$d(),c&&1===f.length&&!M?a.vd(r,y,E,y,E,F,r,F,K):a.vd(r,F,E,F,E,y,r,y,K),a.Qb(null))};e.prototype.Ih=function(a){var b,c;b=0;for(c=this.N.length;b<c;b++)if(this.N[b].T===a)return this.N[b];return null};e.prototype.Cb=function(){var a,b,c,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,
w:this.width,h:this.height,fv:this.Vf,persist:this.Qd,fx:[],layers:{}};a=0;for(b=this.I.length;a<b;a++)c=this.I[a],d.fx.push({name:c.name,active:c.Ra,params:this.va[c.index]});a=0;for(b=this.N.length;a<b;a++)c=this.N[a],d.layers[c.T.toString()]=c.Cb();return d};e.prototype.Xb=function(a){var b,c,d,f;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.j=a.a;this.width=a.w;this.height=a.h;this.Qd=a.persist;"undefined"!==typeof a.fv&&(this.Vf=a.fv);var e=a.fx;b=0;for(c=e.length;b<c;b++)if(d=this.dk(e[b].name))d.Ra=
e[b].active,this.va[d.index]=e[b].params;this.Ad();b=a.layers;for(f in b)b.hasOwnProperty(f)&&(a=this.Ih(parseInt(f,10)))&&a.Xb(b[f])};xb=e;d.prototype.Ad=function(){this.Y.length=0;var a,b,c;a=0;for(b=this.I.length;a<b;a++)c=this.I[a],c.Ra&&this.Y.push(c)};d.prototype.dk=function(a){var b,c,d;b=0;for(c=this.I.length;b<c;b++)if(d=this.I[b],d.name===a)return d;return null};d.prototype.Eq=function(){var a,b,c,d,f,e;b=a=0;for(c=this.Ye.length;a<c;a++){d=this.Ye[a];f=this.b.n[d[1]];e=this.b.yl(f);f=!0;
if(!e||this.la.Vf)d=this.b.he(d,this,!0),l.push(d),d.type.global&&(f=!1);f&&(this.Ye[b]=this.Ye[a],b++)}this.Ye.length=b;this.b.gb();!this.b.q&&this.I.length&&(this.tb=this.Vq);this.Pf=Za(this.tb);this.b.m&&$a(this,this.tb,this.b.m)};d.prototype.bp=function(){if(this.Rb){var a,b;a=0;for(b=this.c.length;a<b;a++)this.c[a].Je=a;this.Rb=!1}};d.prototype.Kb=function(a){return this.Nr()*(this.b.kc||a?this.b.Lf:1)};d.prototype.Nr=function(){return(this.scale*this.la.scale-1)*this.Gb+1};d.prototype.Sa=function(){return this.je?
0:Ba(this.la.j+this.j)};d.prototype.jc=function(a){this.Rd=this.Xj||1!==this.opacity||0!==this.tb;var b=this.b.canvas,c=a,d=!1;this.Rd&&(this.b.ai||(this.b.ai=document.createElement("canvas"),b=this.b.ai,b.width=this.b.M,b.height=this.b.L,this.b.wn=b.getContext("2d"),d=!0),b=this.b.ai,c=this.b.wn,b.width!==this.b.M&&(b.width=this.b.M,d=!0),b.height!==this.b.L&&(b.height=this.b.L,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.V,c.mozImageSmoothingEnabled=this.b.V,c.msImageSmoothingEnabled=this.b.V,
c.imageSmoothingEnabled=this.b.V),this.zd&&c.clearRect(0,0,this.b.M,this.b.L));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.zd||(c.fillStyle="rgb("+this.Gd[0]+","+this.Gd[1]+","+this.Gd[2]+")",c.fillRect(0,0,this.b.M,this.b.L));c.save();this.je=!0;var d=this.qa(0,0,!0,!0),f=this.qa(0,0,!1,!0);this.je=!1;this.b.Uc&&(d=Math.round(d),f=Math.round(f));this.gl(d,f,c);var e=this.Kb();c.scale(e,e);c.translate(-d,-f);for(var k,d=0,f=this.c.length;d<f;d++)e=this.c[d],e.visible&&0!==e.width&&
0!==e.height&&(e.sb(),k=e.hb,k.right<this.Oa||k.bottom<this.Pa||k.left>this.fb||k.top>this.eb||(c.globalCompositeOperation=e.Pf,e.jc(c)));c.restore();this.Rd&&(a.globalCompositeOperation=this.Pf,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};d.prototype.Bl=function(){this.je=!0;var a=this.qa(0,0,!0,!0),b=this.qa(0,0,!1,!0);this.je=!1;this.b.Uc&&(a=Math.round(a),b=Math.round(b));this.gl(a,b,null)};d.prototype.gl=function(a,b,c){var d=this.Kb();this.Oa=a;this.Pa=b;this.fb=a+1/d*this.b.M;this.eb=b+
1/d*this.b.L;a=this.Sa();0!==a&&(c&&(c.translate(this.b.M/2,this.b.L/2),c.rotate(-a),c.translate(this.b.M/-2,this.b.L/-2)),this.yd.set(this.Oa,this.Pa,this.fb,this.eb),this.yd.offset((this.Oa+this.fb)/-2,(this.Pa+this.eb)/-2),this.Oo.Fo(this.yd,a),this.Oo.om(this.yd),this.yd.offset((this.Oa+this.fb)/2,(this.Pa+this.eb)/2),this.Oa=this.yd.left,this.Pa=this.yd.top,this.fb=this.yd.right,this.eb=this.yd.bottom)};d.prototype.ub=function(a){var b=this.b.M,c=this.b.L,d=0,f=0;if(this.Rd=this.Xj||1!==this.opacity||
0<this.Y.length||0!==this.tb){this.b.Wb||(this.b.Wb=a.Id(this.b.M,this.b.L,this.b.V));if(this.b.Wb.Nf!==this.b.M||this.b.Wb.Mf!==this.b.L)a.deleteTexture(this.b.Wb),this.b.Wb=a.Id(this.b.M,this.b.L,this.b.V);a.Vc(this.b.Wb);this.zd&&a.clear(0,0,0,0)}this.zd||a.clear(this.Gd[0]/255,this.Gd[1]/255,this.Gd[2]/255,1);this.je=!0;var f=this.qa(0,0,!0,!0),e=this.qa(0,0,!1,!0);this.je=!1;this.b.Uc&&(f=Math.round(f),e=Math.round(e));this.gl(f,e,null);e=this.Kb();a.Sd();a.scale(e,e);a.yo(-this.Sa());a.translate((this.Oa+
this.fb)/-2,(this.Pa+this.eb)/-2);a.$d();var k,l,q;k=0;for(l=this.c.length;k<l;k++)if(q=this.c[k],q.visible&&0!==q.width&&0!==q.height&&(q.sb(),d=q.hb,!(d.right<this.Oa||d.bottom<this.Pa||d.left>this.fb||d.top>this.eb)))if(q.cp)if(d=q.Y[0].bb,f=q.Y[0].index,1!==q.Y.length||a.bl(d)||a.it(d)||(q.j||q.d.Sa())&&a.Qg(d)||1!==q.opacity||q.type.wa.Sn)this.la.el(a,this,q,this.Rd?this.b.Wb:this.la.Xf()),a.Sd(),a.scale(e,e),a.yo(-this.Sa()),a.translate((this.Oa+this.fb)/-2,(this.Pa+this.eb)/-2),a.$d();else{a.Wc(d);
a.Td(q.lb,q.jb);a.Ci(d)&&(this.b.ma=!0);var m=0,p=0,n=0,u=0;a.Qg(d)&&(d=q.hb,m=this.nb(d.left,d.top,!0,!0),p=this.nb(d.left,d.top,!1,!0),n=this.nb(d.right,d.bottom,!0,!0),d=this.nb(d.right,d.bottom,!1,!0),m/=b,p=1-p/c,n/=b,u=1-d/c);a.xf(this.Rd?this.b.Wb:this.la.Xf(),1/q.width,1/q.height,m,p,n,u,this.Kb(),this.Sa(),this.Oa,this.Pa,(this.Oa+this.fb)/2,(this.Pa+this.eb)/2,q.va[f]);q.ub(a)}else a.Wc(0),a.Td(q.lb,q.jb),q.ub(a);this.Rd&&(d=this.Y.length?this.Y[0].bb:0,f=this.Y.length?this.Y[0].index:0,
0===this.Y.length||1===this.Y.length&&!a.bl(d)&&1===this.opacity?(1===this.Y.length?(a.Wc(d),a.xf(this.la.Xf(),1/this.b.M,1/this.b.L,0,0,1,1,this.Kb(),this.Sa(),this.Oa,this.Pa,(this.Oa+this.fb)/2,(this.Pa+this.eb)/2,this.va[f]),a.Ci(d)&&(this.b.ma=!0)):a.Wc(0),a.Vc(this.la.Xf()),a.Ge(this.opacity),a.Qb(this.b.Wb),a.Td(this.lb,this.jb),a.Sd(),a.$d(),b=this.b.M/2,c=this.b.L/2,a.Sg(-b,c,b,c,b,-c,-b,-c),a.Qb(null)):this.la.el(a,this,null,this.la.Xf()))};d.prototype.qa=function(a,b,c,d){var f=this.b.devicePixelRatio;
this.b.ve&&(a*=f,b*=f);var f=this.b.ko,e=this.b.lo,f=(this.la.scrollX-f)*this.qc+f,e=(this.la.scrollY-e)*this.rc+e,k=1/this.Kb(!d);d?(f-=this.b.M*k/2,e-=this.b.L*k/2):(f-=this.b.width*k/2,e-=this.b.height*k/2);f+=a*k;e+=b*k;b=this.Sa();0!==b&&(f-=this.la.scrollX,e-=this.la.scrollY,a=Math.cos(b),b=Math.sin(b),d=f*a-e*b,e=e*a+f*b,f=d+this.la.scrollX,e+=this.la.scrollY);return c?f:e};d.prototype.nb=function(a,b,c,d){var f=this.Sa();if(0!==f){a-=this.la.scrollX;b-=this.la.scrollY;var e=Math.cos(-f),f=
Math.sin(-f),k=a*e-b*f;b=b*e+a*f;a=k+this.la.scrollX;b+=this.la.scrollY}e=this.b.ko;f=this.b.lo;e=(this.la.scrollX-e)*this.qc+e;f=(this.la.scrollY-f)*this.rc+f;k=1/this.Kb(!d);d?(e-=this.b.M*k/2,f-=this.b.L*k/2):(e-=this.b.width*k/2,f-=this.b.height*k/2);e=(a-e)/k;f=(b-f)/k;a=this.b.devicePixelRatio;this.b.ve&&!d&&(e/=a,f/=a);return c?e:f};d.prototype.Cb=function(){var a,b,c,d={s:this.scale,a:this.j,vl:this.Oa,vt:this.Pa,vr:this.fb,vb:this.eb,v:this.visible,bc:this.Gd,t:this.zd,px:this.qc,py:this.rc,
o:this.opacity,zr:this.Gb,fx:[],instances:[]};a=0;for(b=this.I.length;a<b;a++)c=this.I[a],d.fx.push({name:c.name,active:c.Ra,params:this.va[c.index]});return d};d.prototype.Xb=function(a){var b,c;this.scale=a.s;this.j=a.a;this.Oa=a.vl;this.Pa=a.vt;this.fb=a.vr;this.eb=a.vb;this.visible=a.v;this.Gd=a.bc;this.zd=a.t;this.qc=a.px;this.rc=a.py;this.opacity=a.o;this.Gb=a.zr;var d=a.fx;a=0;for(b=d.length;a<b;a++)if(c=this.dk(d[a].name))c.Ra=d[a].active,this.va[c.index]=d[a].params;this.Ad();this.c.sort(m);
this.Rb=!0};Kb=d})();
(function(){function e(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function m(a,b){return a.index-b.index}function d(a){var b,c,d,g;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(m);a.length>=q.length&&(q.length=a.length+1);q[a.length]||(q[a.length]=[]);g=q[a.length];b=0;for(c=g.length;b<c;b++)if(d=g[b],e(a,d))return d;g.push(a);return a}
function l(a,b){this.b=a;this.Ro={};this.Fm={};this.nk=!1;this.Xm=new ea;this.Mj=[];this.wj=[];this.name=b[0];var c=b[1];this.Kd=[];var d,g;d=0;for(g=c.length;d<g;d++)this.Zm(c[d],null,this.Kd)}function k(a){this.type=a;this.c=[];this.Z=[];this.na=!0}function a(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ja=[];this.Ud=[];this.Vm=this.cj=this.ul=this.Qh=this.group=this.ol=!1;this.Ja=[];this.yc=[];this.uc=[];this.$f="";this.Ve=this.Qh=this.group=!1;this.ph=null;c[1]&&(this.$f=c[1][1].toLowerCase(),
this.group=!0,this.Qh=!!c[1][0],this.ph=[],this.Ve=this.Qh,this.b.Fd.push(this),this.b.Lh[this.$f]=this);this.Ec=c[2];this.T=c[4];this.group||(this.b.nm[this.T.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var g=new Lb(this,d[a]);g.index=a;this.Ja.push(g);this.am(g.type)}d=c[6];a=0;for(b=d.length;a<b;a++)g=new Mb(this,d[a]),g.index=a,this.yc.push(g);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Zm(c[a],this,this.uc);this.Vh=!1;this.Ja.length&&(this.Vh=null==this.Ja[0].type&&
this.Ja[0].Ya==W.prototype.e.np)}function b(a,b){var c,d,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Cc))for(c=0,d=a.Jb.length;c<d;c++)g=a.Jb[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function c(a,b){this.Sb=a;this.sheet=a.sheet;this.b=a.b;this.J=[];this.ha=[];this.ya={};this.index=-1;this.Kf=!1;this.Ya=this.b.Cd(b[1]);this.trigger=0<b[3];this.Em=2===b[3];this.Sc=b[4];this.dg=b[5];this.Ds=b[6];this.T=b[7];this.b.Qe[this.T.toString()]=this;-1===b[0]?(this.type=null,this.Ha=this.il,this.ee=null,this.Zb=-1):
(this.type=this.b.n[b[0]],this.Ha=this.Ds?this.wt:this.hl,b[2]?(this.ee=this.type.Hh(b[2]),this.Zb=this.type.bk(b[2])):(this.ee=null,this.Zb=-1),this.Sb.parent&&this.Sb.parent.Ni());this.Em&&(this.Ha=this.xt);if(10===b.length){var c,d,g=b[9];c=0;for(d=g.length;c<d;c++){var f=new Nb(this,g[c]);this.J.push(f)}this.ha.length=g.length}}function g(a,b){this.Sb=a;this.sheet=a.sheet;this.b=a.b;this.J=[];this.ha=[];this.ya={};this.index=-1;this.Kf=!1;this.Ya=this.b.Cd(b[1]);-1===b[0]?(this.type=null,this.Ha=
this.il,this.ee=null,this.Zb=-1):(this.type=this.b.n[b[0]],this.Ha=this.hl,b[2]?(this.ee=this.type.Hh(b[2]),this.Zb=this.type.bk(b[2])):(this.ee=null,this.Zb=-1));this.T=b[3];this.b.Ne[this.T.toString()]=this;if(6===b.length){var c,d,g=b[5];c=0;for(d=g.length;c<d;c++){var f=new Nb(this,g[c]);this.J.push(f)}this.ha.length=g.length}}function f(a,b){this.k=a;this.Sb=a.Sb;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Pc=null;this.Vd=0;this.get=null;this.vm=0;this.la=null;this.key=0;this.object=null;
this.index=0;this.hh=this.Ie=this.hh=this.Ie=this.Gm=this.oe=this.ih=null;this.xc=!1;var c,d,g;switch(b[0]){case 0:case 7:this.Pc=new U(this,b[1]);this.Vd=0;this.get=this.Wr;break;case 1:this.Pc=new U(this,b[1]);this.Vd=0;this.get=this.Xr;break;case 5:this.Pc=new U(this,b[1]);this.Vd=0;this.get=this.as;break;case 3:case 8:this.vm=b[1];this.get=this.Ur;break;case 6:this.la=this.b.Dk[b[1]];this.get=this.bs;break;case 9:this.key=b[1];this.get=this.$r;break;case 4:this.object=this.b.n[b[1]];this.get=
this.cs;this.Sb.am(this.object);this.k instanceof Mb?this.Sb.Ni():this.Sb.parent&&this.Sb.parent.Ni();break;case 10:this.index=b[1];a.type.C?(this.get=this.Yr,this.xc=!0):this.get=this.Zr;break;case 11:this.ih=b[1];this.oe=null;this.get=this.Vr;break;case 2:case 12:this.Gm=b[1];this.get=this.Tr;break;case 13:for(this.get=this.ds,this.Ie=[],this.hh=[],c=1,d=b.length;c<d;c++)g=new Nb(this.k,b[c]),this.Ie.push(g),this.hh.push(0)}}function h(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ja=[];this.name=
c[1];this.jj=c[2];this.Ph=c[3];this.jg=!!c[4];this.Uh=!!c[5];this.T=c[6];this.b.If[this.T.toString()]=this;this.data=this.Ph;this.parent?(this.Ce=this.jg||this.Uh?-1:this.b.Gt++,this.b.nq.push(this)):(this.Ce=-1,this.b.tj.push(this))}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ja=[];this.bg=null;this.ns=c[1];this.Ra=!0}function v(){this.Mo=[];this.reset(null)}var q=[];l.prototype.toString=function(){return this.name};l.prototype.Zm=function(a,b,c){switch(a[0]){case 0:a=new Ob(this,
b,a);if(a.Ec)for(c.push(a),c=0,b=a.Ja.length;c<b;c++)a.Ja[c].trigger&&this.$m(a,c);else a.jn()?this.$m(a,0):c.push(a);break;case 1:a=new Hb(this,b,a);c.push(a);break;case 2:a=new Pb(this,b,a),c.push(a)}};l.prototype.Ba=function(){var a,b;a=0;for(b=this.Kd.length;a<b;a++)this.Kd[a].Ba(a<b-1&&this.Kd[a+1].Vh)};l.prototype.zl=function(){this.Mj.length=0;this.wj.length=0;this.$l(this);this.wj.length=0};l.prototype.$l=function(a){var b,c,d,g,f=a.Mj,e=a.wj,h=this.Xm.Jc();b=0;for(c=h.length;b<c;++b)d=h[b],
g=d.bg,!d.Ra||a===g||-1<e.indexOf(g)||(e.push(g),g.$l(a),f.push(g))};l.prototype.Ha=function(a){this.b.kv||(this.nk=!0,a||(this.b.wk=!0));var b,c;b=0;for(c=this.Kd.length;b<c;b++){var d=this.Kd[b];d.Ha();this.b.Gj(d.ja);this.b.Ld&&this.b.gb()}a||(this.b.wk=!1)};l.prototype.$m=function(a,b){a.Ec||this.b.fj.push(a);var c,d,g=a.Ja[b],f;f=g.type?g.type.name:"system";var e=(c=g.Em)?this.Fm:this.Ro;e[f]||(e[f]=[]);f=e[f];e=g.Ya;if(c){if(g.J.length&&(g=g.J[0],1===g.type&&2===g.Pc.type)){g=g.Pc.value.toLowerCase();
c=0;for(d=f.length;c<d;c++)if(f[c].method==e){c=f[c].Sf;c[g]?c[g].push([a,b]):c[g]=[[a,b]];return}c={};c[g]=[[a,b]];f.push({method:e,Sf:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==e){f[c].Sf.push([a,b]);return}bc&&e===bc.prototype.e.Me?f.unshift({method:e,Sf:[[a,b]]}):f.push({method:e,Sf:[[a,b]]})}};yb=l;k.prototype.mk=function(){return this.na?this.type.c.length:this.c.length};k.prototype.Ac=function(){return this.na?this.type.c:this.c};k.prototype.Pg=function(a){a&&(a.b.kb().ib.Ec?(this.na&&
(this.c.length=0,ua(this.Z,a.type.c),this.na=!1),a=this.Z.indexOf(a),-1!==a&&(this.c.push(this.Z[a]),this.Z.splice(a,1))):(this.na=!1,this.c.length=1,this.c[0]=a))};fb=k;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";a.prototype.Ba=function(a){var b,c=this.parent;if(this.group)for(this.cj=!0;c;){if(!c.group){this.cj=!1;break}c=c.parent}this.ul=!this.jn()&&(!this.parent||this.parent.group&&this.parent.cj);this.Vm=!!a;this.Ud=this.ja.slice(0);for(c=this.parent;c;){a=0;for(b=c.ja.length;a<
b;a++)this.kq(c.ja[a]);c=c.parent}this.ja=d(this.ja);this.Ud=d(this.Ud);a=0;for(b=this.Ja.length;a<b;a++)this.Ja[a].Ba();a=0;for(b=this.yc.length;a<b;a++)this.yc[a].Ba();a=0;for(b=this.uc.length;a<b;a++)this.uc[a].Ba(a<b-1&&this.uc[a+1].Vh)};a.prototype.Bt=function(a){if(this.Ve!==!!a){this.Ve=!!a;var b;a=0;for(b=this.ph.length;a<b;++a)this.ph[a].Xo();0<b&&this.b.da.ne&&this.b.da.ne.zl()}};a.prototype.am=function(a){b(a,this.ja)};a.prototype.kq=function(a){b(a,this.Ud)};a.prototype.Ni=function(){this.ol=
!0;this.parent&&this.parent.Ni()};a.prototype.jn=function(){return this.Ja.length?this.Ja[0].trigger:!1};a.prototype.Ha=function(){var a,b=!1,c,d=this.b,g=this.b.kb();g.ib=this;var f=this.Ja;this.Vh||(g.Qj=!1);if(this.Ec){0===f.length&&(b=!0);g.Da=0;for(a=f.length;g.Da<a;g.Da++)f[g.Da].trigger||(c=f[g.Da].Ha())&&(b=!0);(g.ze=b)&&this.Ji()}else{g.Da=0;for(a=f.length;g.Da<a;g.Da++)if(c=f[g.Da].Ha(),!c){g.ze=!1;this.ul&&d.Ld&&d.gb();return}g.ze=!0;this.Ji()}this.Xq(g)};a.prototype.Xq=function(a){a.ze&&
this.Vm&&(a.Qj=!0);this.ul&&this.b.Ld&&this.b.gb()};a.prototype.tt=function(a){this.b.kb().ib=this;this.Ja[a].Ha()&&(this.Ji(),this.b.kb().ze=!0)};a.prototype.Ji=function(){var a=this.b.kb(),b;a.Hb=0;for(b=this.yc.length;a.Hb<b;a.Hb++)if(this.yc[a.Hb].Ha())return;this.zo()};a.prototype.pt=function(){var a=this.b.kb(),b;for(b=this.yc.length;a.Hb<b;a.Hb++)if(this.yc[a.Hb].Ha())return;this.zo()};a.prototype.zo=function(){if(this.uc.length){var a,b,c,d,g=this.uc.length-1;this.b.Fi(this);if(this.ol)for(a=
0,b=this.uc.length;a<b;a++)c=this.uc[a],(d=!this.cj||!this.group&&a<g)&&this.b.Ei(c.ja),c.Ha(),d?this.b.Ee(c.ja):this.b.Gj(c.ja);else for(a=0,b=this.uc.length;a<b;a++)this.uc[a].Ha();this.b.xi()}};a.prototype.ut=function(){var a=this.b.kb();a.ib=this;var b=!1,c;a.Da=0;for(c=this.Ja.length;a.Da<c;a.Da++)if(this.Ja[a.Da].Ha())b=!0;else if(!this.Ec)return!1;return this.Ec?b:!0};a.prototype.xo=function(){this.b.Ah++;var a=this.b.kb().Da,b=this.b.Fi(this);if(!this.Ec)for(b.Da=a+1,a=this.Ja.length;b.Da<
a;b.Da++)if(!this.Ja[b.Da].Ha()){this.b.xi();return}this.Ji();this.b.xi()};a.prototype.us=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Ja[b].type===a.type)return!1;return!0};Ob=a;c.prototype.Ba=function(){var a,b,c;a=0;for(b=this.J.length;a<b;a++)c=this.J[a],c.Ba(),c.xc&&(this.Kf=!0)};c.prototype.xt=function(){return!0};c.prototype.il=function(){var a,b;a=0;for(b=this.J.length;a<b;a++)this.ha[a]=this.J[a].get();return Pa(this.Ya.apply(this.b.Xc,this.ha),this.dg)};c.prototype.wt=
function(){var a,b;a=0;for(b=this.J.length;a<b;a++)this.ha[a]=this.J[a].get();a=this.Ya.apply(this.ee?this.ee:this.type,this.ha);this.type.cd();return a};c.prototype.hl=function(){var a,b,c,d,g,f,e,h,k=this.type,q=k.ka(),l=this.Sb.Ec&&!this.trigger;b=0;var m=k.Cc,p=k.C,t=k.ld,C=this.Zb,v=-1<C,y=this.Kf,H=this.J,E=this.ha,T=this.dg,F=this.Ya,J;if(y)for(b=0,g=H.length;b<g;++b)f=H[b],f.xc||(E[b]=f.get(0));else for(b=0,g=H.length;b<g;++b)E[b]=H[b].get(0);if(q.na){q.c.length=0;q.Z.length=0;J=k.c;a=0;for(d=
J.length;a<d;++a){h=J[a];if(y)for(b=0,g=H.length;b<g;++b)f=H[b],f.xc&&(E[b]=f.get(a));v?(b=0,p&&(b=h.type.Te[t]),b=F.apply(h.H[C+b],E)):b=F.apply(h,E);(e=Pa(b,T))?q.c.push(h):l&&q.Z.push(h)}k.finish&&k.finish(!0);q.na=!1;k.cd();return q.mk()}c=0;J=(e=l&&!this.Sb.us(this))?q.Z:q.c;var M=!1;a=0;for(d=J.length;a<d;++a){h=J[a];if(y)for(b=0,g=H.length;b<g;++b)f=H[b],f.xc&&(E[b]=f.get(a));v?(b=0,p&&(b=h.type.Te[t]),b=F.apply(h.H[C+b],E)):b=F.apply(h,E);if(Pa(b,T))if(M=!0,e){if(q.c.push(h),m)for(b=0,g=h.siblings.length;b<
g;b++)f=h.siblings[b],f.type.ka().c.push(f)}else{J[c]=h;if(m)for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.ka().c[c]=f;c++}else if(e){J[c]=h;if(m)for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.ka().Z[c]=f;c++}else if(l&&(q.Z.push(h),m))for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.ka().Z.push(f)}J.length=c;if(m)for(p=k.Jb,a=0,d=p.length;a<d;a++)h=p[a].ka(),e?h.Z.length=c:h.c.length=c;c=M;if(e&&!M)for(a=0,d=q.c.length;a<d;a++){h=q.c[a];if(y)for(b=0,g=H.length;b<
g;b++)f=H[b],f.xc&&(E[b]=f.get(a));b=v?F.apply(h.H[C],E):F.apply(h,E);if(Pa(b,T)){M=!0;break}}k.finish&&k.finish(c||l);return l?M:q.mk()};Lb=c;g.prototype.Ba=function(){var a,b,c;a=0;for(b=this.J.length;a<b;a++)c=this.J[a],c.Ba(),c.xc&&(this.Kf=!0)};g.prototype.il=function(){var a,b;a=0;for(b=this.J.length;a<b;a++)this.ha[a]=this.J[a].get();return this.Ya.apply(this.b.Xc,this.ha)};g.prototype.hl=function(){var a=this.type.ka().Ac(),b=this.type.C,c=this.type.ld,d=this.Zb,g=-1<d,f=this.Kf,e=this.J,
h=this.ha,k=this.Ya,q,l,m,p,t,C;if(f)for(l=0,p=e.length;l<p;++l)t=e[l],t.xc||(h[l]=t.get(0));else for(l=0,p=e.length;l<p;++l)h[l]=e[l].get(0);q=0;for(m=a.length;q<m;++q){C=a[q];if(f)for(l=0,p=e.length;l<p;++l)t=e[l],t.xc&&(h[l]=t.get(q));g?(l=0,b&&(l=C.type.Te[c]),k.apply(C.H[d+l],h)):k.apply(C,h)}return!1};Mb=g;var C=[],p=-1;f.prototype.Ba=function(){var a,b;if(11===this.type)this.oe=this.b.Pm(this.ih,this.Sb.parent);else if(13===this.type)for(a=0,b=this.Ie.length;a<b;a++)this.Ie[a].Ba();this.Pc&&
this.Pc.Ba()};f.prototype.Js=function(a){this.xc||!a||a.wa.Oi||(this.xc=!0)};f.prototype.Eo=function(){this.xc=!0};f.prototype.La=function(){p++;C.length===p&&C.push(new Qb);return C[p]};f.prototype.Ga=function(){p--};f.prototype.Wr=function(a){this.Vd=a||0;a=this.La();this.Pc.get(a);this.Ga();return a.data};f.prototype.Xr=function(a){this.Vd=a||0;a=this.La();this.Pc.get(a);this.Ga();return N(a.data)?a.data:""};f.prototype.cs=function(){return this.object};f.prototype.Ur=function(){return this.vm};
f.prototype.as=function(a){this.Vd=a||0;a=this.La();this.Pc.get(a);this.Ga();return a.Ta()?this.b.nd(a.data):this.b.Wf(a.data)};f.prototype.bs=function(){return this.la};f.prototype.$r=function(){return this.key};f.prototype.Zr=function(){return this.index};f.prototype.Yr=function(a){a=a||0;var b=this.k.type,c=null,c=b.ka(),d=c.Ac();if(d.length)c=d[a%d.length].type;else if(c.Z.length)c=c.Z[a%c.Z.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.Bh[b.ld]};f.prototype.Vr=
function(){return this.oe};f.prototype.Tr=function(){return this.Gm};f.prototype.ds=function(){var a,b;a=0;for(b=this.Ie.length;a<b;a++)this.hh[a]=this.Ie[a].get();return this.hh};Nb=f;h.prototype.Ba=function(){this.ja=d(this.ja)};h.prototype.He=function(a){var b=this.b.Nm();this.parent&&!this.jg&&b?(this.Ce>=b.length&&(b.length=this.Ce+1),b[this.Ce]=a):this.data=a};h.prototype.Yf=function(){var a=this.b.Nm();return!this.parent||this.jg||!a||this.Uh?this.data:this.Ce>=a.length||"undefined"===typeof a[this.Ce]?
this.Ph:a[this.Ce]};h.prototype.Ha=function(){!this.parent||this.jg||this.Uh||this.He(this.Ph)};Hb=h;t.prototype.toString=function(){return"include:"+this.bg.toString()};t.prototype.Ba=function(){this.bg=this.b.Sj[this.ns];this.sheet.Xm.add(this);this.ja=d(this.ja);for(var a=this.parent;a;)a.group&&a.ph.push(this),a=a.parent;this.Xo()};t.prototype.Ha=function(){this.parent&&this.b.Rg(this.b.n);this.bg.nk||this.bg.Ha(!0);this.parent&&this.b.Ee(this.b.n)};t.prototype.Xo=function(){for(var a=this.parent;a;){if(a.group&&
!a.Ve){this.Ra=!1;return}a=a.parent}this.Ra=!0};Pb=t;v.prototype.reset=function(a){this.ib=a;this.Hb=this.Da=0;this.Mo.length=0;this.Qj=this.ze=!1};v.prototype.ws=function(){return this.ib.ol?!0:this.Da<this.ib.Ja.length-1?!!this.ib.ja.length:!1};Gb=v})();
(function(){function e(d,e){this.k=d;this.b=d.b;this.type=e[0];this.get=[this.kr,this.fr,this.sr,this.wr,this.Zq,this.tr,this.or,this.cr,this.nr,this.rr,this.$q,this.qr,this.dr,this.pr,this.lr,this.mr,this.hr,this.ir,this.br,this.ur,this.Cm,this.jr,this.Cm,this.er][this.type];var k=null;this.Ab=this.J=this.ha=this.Ya=this.Zi=this.Xa=this.first=this.value=null;this.Zb=-1;this.od=null;this.Dl=-1;this.oe=this.ih=null;this.Ug=!1;switch(this.type){case 0:case 1:case 2:this.value=e[1];break;case 3:this.first=
new U(d,e[1]);break;case 18:this.first=new U(d,e[1]);this.Xa=new U(d,e[2]);this.Zi=new U(d,e[3]);break;case 19:this.Ya=this.b.Cd(e[1]);this.Ya!==W.prototype.xa.random&&this.Ya!==W.prototype.xa.zq||this.k.Eo();this.ha=[];this.J=[];3===e.length?(k=e[2],this.ha.length=k.length+1):this.ha.length=1;break;case 20:this.Ab=this.b.n[e[1]];this.Zb=-1;this.Ya=this.b.Cd(e[2]);this.Ug=e[3];Sb.Function&&this.Ya===Sb.Function.prototype.xa.au&&this.k.Eo();this.od=e[4]?new U(d,e[4]):null;this.ha=[];this.J=[];6===
e.length?(k=e[5],this.ha.length=k.length+1):this.ha.length=1;break;case 21:this.Ab=this.b.n[e[1]];this.Ug=e[2];this.od=e[3]?new U(d,e[3]):null;this.Dl=e[4];break;case 22:this.Ab=this.b.n[e[1]];this.Ab.Hh(e[2]);this.Zb=this.Ab.bk(e[2]);this.Ya=this.b.Cd(e[3]);this.Ug=e[4];this.od=e[5]?new U(d,e[5]):null;this.ha=[];this.J=[];7===e.length?(k=e[6],this.ha.length=k.length+1):this.ha.length=1;break;case 23:this.ih=e[1],this.oe=null}this.k.Js(this.Ab);4<=this.type&&17>=this.type&&(this.first=new U(d,e[1]),
this.Xa=new U(d,e[2]));if(k){var a,b;a=0;for(b=k.length;a<b;a++)this.J.push(new U(d,k[a]))}}function m(d,e){this.type=d||V.Le;this.data=e||0;this.pf=null;this.type==V.Le&&(this.data=Math.floor(this.data))}e.prototype.Ba=function(){23===this.type&&(this.oe=this.k.b.Pm(this.ih,this.k.Sb.parent));this.first&&this.first.Ba();this.Xa&&this.Xa.Ba();this.Zi&&this.Zi.Ba();this.od&&this.od.Ba();if(this.J){var d,e;d=0;for(e=this.J.length;d<e;d++)this.J[d].Ba()}};e.prototype.ur=function(d){this.ha[0]=d;d=this.k.La();
var e,k;e=0;for(k=this.J.length;e<k;e++)this.J[e].get(d),this.ha[e+1]=d.data;this.k.Ga();this.Ya.apply(this.b.Xc,this.ha)};e.prototype.Cm=function(d){var e=this.Ab.ka(),k=e.Ac();if(!k.length)if(e.Z.length)k=e.Z;else{this.Ug?d.ab(""):d.X(0);return}this.ha[0]=d;d.pf=this.Ab;d=this.k.La();var a,e=0;for(a=this.J.length;e<a;e++)this.J[e].get(d),this.ha[e+1]=d.data;e=this.k.Vd;this.od&&(this.od.get(d),d.Ta()&&(e=d.data,k=this.Ab.c));this.k.Ga();e%=k.length;0>e&&(e+=k.length);k=k[e];-1<this.Zb?(d=0,this.Ab.C&&
(d=k.type.Te[this.Ab.ld]),this.Ya.apply(k.H[this.Zb+d],this.ha)):this.Ya.apply(k,this.ha)};e.prototype.jr=function(d){var e=this.Ab.ka(),k=e.Ac();if(!k.length)if(e.Z.length)k=e.Z;else{this.Ug?d.ab(""):d.X(0);return}e=this.k.Vd;if(this.od){var a=this.k.La();this.od.get(a);if(a.Ta()){e=a.data;k=this.Ab.c;e%=k.length;0>e&&(e+=k.length);k=k[e].Ka[this.Dl];N(k)?d.ab(k):d.A(k);this.k.Ga();return}this.k.Ga()}e%=k.length;0>e&&(e+=k.length);k=k[e];e=0;this.Ab.C&&(e=k.type.Bh[this.Ab.ld]);k=k.Ka[this.Dl+e];
N(k)?d.ab(k):d.A(k)};e.prototype.kr=function(d){d.type=V.Le;d.data=this.value};e.prototype.fr=function(d){d.type=V.Ke;d.data=this.value};e.prototype.sr=function(d){d.type=V.String;d.data=this.value};e.prototype.wr=function(d){this.first.get(d);d.Ta()&&(d.data=-d.data)};e.prototype.Zq=function(d){this.first.get(d);var e=this.k.La();this.Xa.get(e);d.Ta()&&e.Ta()&&(d.data+=e.data,e.df()&&d.mf());this.k.Ga()};e.prototype.tr=function(d){this.first.get(d);var e=this.k.La();this.Xa.get(e);d.Ta()&&e.Ta()&&
(d.data-=e.data,e.df()&&d.mf());this.k.Ga()};e.prototype.or=function(d){this.first.get(d);var e=this.k.La();this.Xa.get(e);d.Ta()&&e.Ta()&&(d.data*=e.data,e.df()&&d.mf());this.k.Ga()};e.prototype.cr=function(d){this.first.get(d);var e=this.k.La();this.Xa.get(e);d.Ta()&&e.Ta()&&(d.data/=e.data,d.mf());this.k.Ga()};e.prototype.nr=function(d){this.first.get(d);var e=this.k.La();this.Xa.get(e);d.Ta()&&e.Ta()&&(d.data%=e.data,e.df()&&d.mf());this.k.Ga()};e.prototype.rr=function(d){this.first.get(d);var e=
this.k.La();this.Xa.get(e);d.Ta()&&e.Ta()&&(d.data=Math.pow(d.data,e.data),e.df()&&d.mf());this.k.Ga()};e.prototype.$q=function(d){this.first.get(d);var e=this.k.La();this.Xa.get(e);d.Ta()?e.Wh()?d.ab(d.data.toString()+e.data):d.data&&e.data?d.X(1):d.X(0):d.Wh()&&(d.data=e.Wh()?d.data+e.data:d.data+(Math.round(1E10*e.data)/1E10).toString());this.k.Ga()};e.prototype.qr=function(d){this.first.get(d);var e=this.k.La();this.Xa.get(e);d.Ta()&&e.Ta()&&(d.data||e.data?d.X(1):d.X(0));this.k.Ga()};e.prototype.br=
function(d){this.first.get(d);d.data?this.Xa.get(d):this.Zi.get(d)};e.prototype.dr=function(d){this.first.get(d);var e=this.k.La();this.Xa.get(e);d.X(d.data===e.data?1:0);this.k.Ga()};e.prototype.pr=function(d){this.first.get(d);var e=this.k.La();this.Xa.get(e);d.X(d.data!==e.data?1:0);this.k.Ga()};e.prototype.lr=function(d){this.first.get(d);var e=this.k.La();this.Xa.get(e);d.X(d.data<e.data?1:0);this.k.Ga()};e.prototype.mr=function(d){this.first.get(d);var e=this.k.La();this.Xa.get(e);d.X(d.data<=
e.data?1:0);this.k.Ga()};e.prototype.hr=function(d){this.first.get(d);var e=this.k.La();this.Xa.get(e);d.X(d.data>e.data?1:0);this.k.Ga()};e.prototype.ir=function(d){this.first.get(d);var e=this.k.La();this.Xa.get(e);d.X(d.data>=e.data?1:0);this.k.Ga()};e.prototype.er=function(d){var e=this.oe.Yf();L(e)?d.A(e):d.ab(e)};U=e;m.prototype.df=function(){return this.type===V.Ke};m.prototype.Ta=function(){return this.type===V.Le||this.type===V.Ke};m.prototype.Wh=function(){return this.type===V.String};m.prototype.mf=
function(){this.df()||(this.Wh()&&(this.data=parseFloat(this.data)),this.type=V.Ke)};m.prototype.X=function(d){this.type=V.Le;this.data=Math.floor(d)};m.prototype.A=function(d){this.type=V.Ke;this.data=d};m.prototype.ab=function(d){this.type=V.String;this.data=d};m.prototype.Ft=function(d){L(d)?(this.type=V.Ke,this.data=d):N(d)?(this.type=V.String,this.data=d.toString()):(this.type=V.Le,this.data=0)};Qb=m;V={Le:0,Ke:1,String:2}})();function W(e){this.b=e;this.Fb=[]}
W.prototype.Cb=function(){var e={},m,d,l,k,a,b,c,g;e.waits=[];var f=e.waits,h;m=0;for(d=this.Fb.length;m<d;m++){b=this.Fb[m];h={t:b.time,st:b.Ko,s:b.nl,ev:b.Se.T,sm:[],sols:{}};b.Se.yc[b.Hb]&&(h.act=b.Se.yc[b.Hb].T);l=0;for(k=b.ja.length;l<k;l++)h.sm.push(b.ja[l].T);for(a in b.rb)if(b.rb.hasOwnProperty(a)){c=this.b.n[parseInt(a,10)];g={sa:b.rb[a].Ki,insts:[]};l=0;for(k=b.rb[a].pd.length;l<k;l++)g.insts.push(b.rb[a].pd[l].uid);h.sols[c.T.toString()]=g}f.push(h)}return e};
W.prototype.Xb=function(e){e=e.waits;var m,d,l,k,a,b,c,g,f,h,t;m=this.Fb.length=0;for(d=e.length;m<d;m++)if(b=e[m],g=this.b.nm[b.ev.toString()]){f=-1;l=0;for(k=g.yc.length;l<k;l++)if(g.yc[l].T===b.act){f=l;break}if(-1!==f){c={rb:{},ja:[],Nj:!1};c.time=b.t;c.Ko=b.st||"";c.nl=!!b.s;c.Se=g;c.Hb=f;l=0;for(k=b.sm.length;l<k;l++)(g=this.b.Kh(b.sm[l]))&&c.ja.push(g);for(a in b.sols)if(b.sols.hasOwnProperty(a)&&(g=this.b.Kh(parseInt(a,10)))){f=b.sols[a];h={Ki:f.sa,pd:[]};l=0;for(k=f.insts.length;l<k;l++)(t=
this.b.Jh(f.insts[l]))&&h.pd.push(t);c.rb[g.index.toString()]=h}this.Fb.push(c)}}};
(function(){function e(){}function m(){}function d(){}var l=W.prototype;e.prototype.Ll=function(){return!0};e.prototype.Qp=function(){return!0};e.prototype.jp=function(a,c,d){return Rb(a,c,d)};e.prototype.Wp=function(a){var c=this.b.kb(),d=c.ib,e=c.ws(),c=this.b.kt();if(e)for(e=0;e<a&&!c.cb;e++)this.b.Ei(d.ja),c.index=e,d.xo(),this.b.Ee(d.ja);else for(e=0;e<a&&!c.cb;e++)c.index=e,d.xo();this.b.ct();return!1};e.prototype.lp=function(a,c,d){return Rb(a.Yf(),c,d)};e.prototype.np=function(){var a=this.b.kb();
return a.Qj?!1:!a.ze};e.prototype.Ml=function(){return!0};e.prototype.Cp=function(){return!0};e.prototype.qj=function(){return!0};e.prototype.Rp=function(){return!0};e.prototype.oj=function(){return!0};e.prototype.fp=function(a,c,d){return Ga(Q(a),Q(d))<=Q(c)};e.prototype.qp=function(a,c){return Ia(Q(a),Q(c))};e.prototype.op=function(a,c,d){a=Da(a);c=Da(c);d=Da(d);return Ia(d,c)?Ia(a,c)&&!Ia(a,d):!(!Ia(a,c)&&Ia(a,d))};l.e=new e;m.prototype.wp=function(a){if(!this.b.ff&&!this.b.fe){var c=this.b.Ob.indexOf(this.b.da);
if(!a||0!==c)if(a||c!==this.b.Ob.length-1)this.b.fe=this.b.Ob[c+(a?-1:1)]}};m.prototype.cq=function(a,c){0===a.jj?L(c)?a.He(c):a.He(parseFloat(c)):1===a.jj&&a.He(c.toString())};m.prototype.ep=function(a,c){0===a.jj?L(c)?a.He(a.Yf()+c):a.He(a.Yf()+parseFloat(c)):1===a.jj&&a.He(a.Yf()+c.toString())};var k=[],a=[];m.prototype.dq=function(b){if(!(0>b)){var c,d,e,h=this.b.kb(),m;m=k.length?k.pop():{rb:{},ja:[]};m.Nj=!1;m.time=this.b.Vb.ea+b;m.Ko="";m.nl=!1;m.Se=h.ib;m.Hb=h.Hb+1;b=0;for(c=this.b.n.length;b<
c;b++)e=this.b.n[b],d=e.ka(),d.na&&-1===h.ib.ja.indexOf(e)||(m.ja.push(e),e=void 0,e=a.length?a.pop():{pd:[]},e.Ki=!1,e.Ki=d.na,ua(e.pd,d.c),m.rb[b.toString()]=e);this.Fb.push(m);return!0}};m.prototype.Xp=function(){var a,c,d;a=0;for(c=this.b.tj.length;a<c;a++)d=this.b.tj[a],d.data=d.Ph};m.prototype.Yp=function(){if(!this.b.ff&&!this.b.fe&&this.b.da){this.b.fe=this.b.da;var a,c,d;a=0;for(c=this.b.Fd.length;a<c;a++)d=this.b.Fd[a],d.Bt(d.Qh)}};m.prototype.Zp=function(a){this.b.Li=a};m.prototype.vp=
function(a){this.b.tg=a};l.pa=new m;d.prototype["int"]=function(a,c){N(c)?(a.X(parseInt(c,10)),isNaN(a.data)&&(a.data=0)):a.X(c)};d.prototype["float"]=function(a,c){N(c)?(a.A(parseFloat(c)),isNaN(a.data)&&(a.data=0)):a.A(c)};d.prototype.Es=function(a,c){a.X(c.length||0)};d.prototype.random=function(a,c,d){void 0===d?a.A(Math.random()*c):a.A(Math.random()*(d-c)+c)};d.prototype.sqrt=function(a,c){a.A(Math.sqrt(c))};d.prototype.abs=function(a,c){a.A(Math.abs(c))};d.prototype.round=function(a,c){a.X(Math.round(c))};
d.prototype.floor=function(a,c){a.X(Math.floor(c))};d.prototype.ceil=function(a,c){a.X(Math.ceil(c))};d.prototype.sin=function(a,c){a.A(Math.sin(Q(c)))};d.prototype.cos=function(a,c){a.A(Math.cos(Q(c)))};d.prototype.tan=function(a,c){a.A(Math.tan(Q(c)))};d.prototype.asin=function(a,c){a.A(za(Math.asin(c)))};d.prototype.acos=function(a,c){a.A(za(Math.acos(c)))};d.prototype.atan=function(a,c){a.A(za(Math.atan(c)))};d.prototype.exp=function(a,c){a.A(Math.exp(c))};d.prototype.log10=function(a,c){a.A(Math.log(c)/
Math.LN10)};d.prototype.max=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var d,e,h;d=2;for(e=arguments.length;d<e;d++)h=arguments[d],"number"===typeof h&&c<h&&(c=h);a.A(c)};d.prototype.min=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var d,e,h;d=2;for(e=arguments.length;d<e;d++)h=arguments[d],"number"===typeof h&&c>h&&(c=h);a.A(c)};d.prototype.le=function(a){a.A(this.b.le)};d.prototype.Df=function(a){a.A(this.b.Df)};d.prototype.time=function(a){a.A(this.b.Vb.ea)};d.prototype.fh=
function(a){a.X(this.b.fh)};d.prototype.ki=function(a){a.X(this.b.ki)};d.prototype.Yj=function(a){a.X(this.b.Yj)};d.prototype.Hs=function(a,c){var d,e,h;if(this.b.lf.length)if(c){e=0;for(h=this.b.lf.length;e<h;e++)if(d=this.b.lf[e],d.name===c){a.X(d.index);return}a.X(0)}else d=this.b.Om(),a.X(d?d.index:-1);else a.X(0)};d.prototype.j=function(a,c,d,e,h){a.A(za(Fa(c,d,e,h)))};d.prototype.find=function(a,c,d){N(c)&&N(d)?a.X(c.search(new RegExp(Wa(d),"i"))):a.X(-1)};d.prototype.left=function(a,c,d){a.ab(N(c)?
c.substr(0,d):"")};d.prototype.right=function(a,c,d){a.ab(N(c)?c.substr(c.length-d):"")};d.prototype.Ot=function(a,c,d,e){N(c)&&N(e)?(c=c.split(e),d=P(d),0>d||d>=c.length?a.ab(""):a.ab(c[d])):a.ab("")};d.prototype.replace=function(a,c,d,e){N(c)&&N(d)&&N(e)?a.ab(c.replace(new RegExp(Wa(d),"gi"),e)):a.ab(N(c)?c:"")};d.prototype.trim=function(a,c){a.ab(N(c)?c.trim():"")};d.prototype.zq=function(a){var c=P(Math.random()*(arguments.length-1));a.Ft(arguments[c+1])};d.prototype.Hj=function(a){a.A(this.b.Hj/
1E3)};d.prototype.ei=function(a){a.A(this.b.ei)};l.xa=new d;l.qt=function(){var b,c,d,e,h,m,l=this.b.kb();b=0;for(d=this.Fb.length;b<d;b++){e=this.Fb[b];if(-1===e.time){if(!e.nl)continue}else if(e.time>this.b.Vb.ea)continue;l.ib=e.Se;l.Hb=e.Hb;l.Da=0;for(c in e.rb)e.rb.hasOwnProperty(c)&&(h=this.b.n[parseInt(c,10)].ka(),m=e.rb[c],h.na=m.Ki,ua(h.c,m.pd),h=m,h.pd.length=0,a.push(h));e.Se.pt();this.b.Gj(e.ja);e.Nj=!0}c=b=0;for(d=this.Fb.length;b<d;b++)e=this.Fb[b],this.Fb[c]=e,e.Nj?(Ra(e.rb),e.ja.length=
0,k.push(e)):c++;this.Fb.length=c}})();
(function(){eb=function(e,d){var l=e[1],k=e[3],a=e[4],b=e[5],c=e[6],g=e[7],f=e[8];d.e||(d.e={});d.pa||(d.pa={});d.xa||(d.xa={});var h=d.e,t=d.pa,v=d.xa;k&&(h.fu=function(a,b){return Rb(this.x,a,b)},h.gu=function(a,b){return Rb(this.y,a,b)},h.mu=function(){var a=this.d;this.sb();var b=this.hb;return!(b.right<a.Oa||b.bottom<a.Pa||b.left>a.fb||b.top>a.eb)},h.nu=function(){this.sb();var a=this.hb,b=this.b.da;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},h.zu=function(a,b,c){var d=this.ka(),
e=d.Ac();if(!e.length)return!1;var g=e[0],f=g,h=Oa(g.x,g.y,b,c),k,m,l;k=1;for(m=e.length;k<m;k++)if(g=e[k],l=Oa(g.x,g.y,b,c),0===a&&l<h||1===a&&l>h)h=l,f=g;d.Pg(f);return!0},t.Su=function(a){this.x!==a&&(this.x=a,this.Ia())},t.Tu=function(a){this.y!==a&&(this.y=a,this.Ia())},t.Nu=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Ia()},t.Ou=function(a,b){var c=a.Or(this);if(c){var d;c.fk?(d=c.fk(b,!0),c=c.fk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.Ia()}},
t.su=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.Ia())},t.ru=function(a,b){0!==b&&(this.x+=Math.cos(Q(a))*b,this.y+=Math.sin(Q(a))*b,this.Ia())},v.Tl=function(a){a.A(this.x)},v.Vl=function(a){a.A(this.y)},v.le=function(a){a.A(this.b.ck(this))});a&&(h.eu=function(a,b){return Rb(this.width,a,b)},h.bu=function(a,b){return Rb(this.height,a,b)},t.Ru=function(a){this.width!==a&&(this.width=a,this.Ia())},t.Lu=function(a){this.height!==a&&(this.height=a,this.Ia())},t.Pu=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Ia()},v.Xu=function(a){a.A(this.width)},v.iu=function(a){a.A(this.height)},v.Yt=function(a){this.sb();a.A(this.hb.left)},v.$t=function(a){this.sb();a.A(this.hb.top)},v.Zt=function(a){this.sb();a.A(this.hb.right)},v.Xt=function(a){this.sb();a.A(this.hb.bottom)});b&&(h.fp=function(a,b){return Ga(this.j,Q(b))<=Q(a)},h.qp=function(a){return Ia(this.j,Q(a))},h.op=function(a,b){var c=Da(a),d=Da(b),e=Ba(this.j);return Ia(d,
c)?Ia(e,c)&&!Ia(e,d):!(!Ia(e,c)&&Ia(e,d))},t.Hu=function(a){a=Q(Aa(a));isNaN(a)||this.j===a||(this.j=a,this.Ia())},t.Du=function(a){0===a||isNaN(a)||(this.j+=Q(a),this.j=Ba(this.j),this.Ia())},t.Eu=function(a){0===a||isNaN(a)||(this.j-=Q(a),this.j=Ba(this.j),this.Ia())},t.Fu=function(a,b){var c=Ha(this.j,Q(b),Q(a));isNaN(c)||this.j===c||(this.j=c,this.Ia())},t.Gu=function(a,b,c){a=Ha(this.j,Math.atan2(c-this.y,b-this.x),Q(a));isNaN(a)||this.j===a||(this.j=a,this.Ia())},t.Qu=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.j===c||(this.j=c,this.Ia())},v.Wt=function(a){a.A(Ca(this.j))});l||(h.cu=function(a,b,c){return Rb(this.Ka[a],b,c)},h.ku=function(a){return this.Ka[a]},h.Au=function(a,b){var c=this.ka(),d=c.Ac();if(!d.length)return!1;var e=d[0],g=e,f=e.Ka[b],h,k,m;h=1;for(k=d.length;h<k;h++)if(e=d[h],m=e.Ka[b],0===a&&m<f||1===a&&m>f)f=m,g=e;c.Pg(g);return!0},h.yu=function(a){var b,c,d,e,g;if(this.b.Mm().dg){g=this.ka();if(g.na)for(g.na=!1,g.c.length=0,g.Z.length=0,d=this.c,b=0,c=d.length;b<
c;b++)e=d[b],e.uid===a?g.Z.push(e):g.c.push(e);else{d=b=0;for(c=g.c.length;b<c;b++)e=g.c[b],g.c[d]=e,e.uid===a?g.Z.push(e):d++;g.c.length=d}this.cd();return!!g.c.length}e=this.b.Jh(a);if(!e)return!1;g=this.ka();if(!g.na&&-1===g.c.indexOf(e))return!1;if(this.C)for(a=e.type.ra,b=0,c=a.length;b<c;b++){if(a[b]===this)return g.Pg(e),this.cd(),!0}else if(e.type===this)return g.Pg(e),this.cd(),!0;return!1},h.Ep=function(){return!0},h.Fp=function(){return!0},t.Mu=function(a,b){var c=this.Ka;L(c[a])?c[a]=
L(b)?b:parseFloat(b):N(c[a])&&(c[a]=N(b)?b:b.toString())},t.Vt=function(a,b){var c=this.Ka;L(c[a])?c[a]=L(b)?c[a]+b:c[a]+parseFloat(b):N(c[a])&&(c[a]=N(b)?c[a]+b:c[a]+b.toString())},t.Uu=function(a,b){var c=this.Ka;L(c[a])&&(c[a]=L(b)?c[a]-b:c[a]-parseFloat(b))},t.Iu=function(a,b){this.Ka[a]=b?1:0},t.Vu=function(a){this.Ka[a]=1-this.Ka[a]},t.mp=function(){this.b.Bd(this)},t.up||(t.up=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.ci(this,b,!0);this.ad&&this.ad();if(this.H)for(a=0,
b=this.H.length;a<b;++a)c=this.H[a],c.ad&&c.ad()}),v.hu=function(a){var b=a.pf.c.length,c,d,e;c=0;for(d=this.b.Nc.length;c<d;c++)e=this.b.Nc[c],a.pf.C?0<=e.type.ra.indexOf(a.pf)&&b++:e.type===a.pf&&b++;a.X(b)},v.Cu=function(a){a.X(a.pf.ka().Ac().length)},v.Wu=function(a){a.X(this.uid)},v.ju=function(a){a.X(this.Zf())},v.gp||(v.gp=function(a){a.ab(JSON.stringify(this.b.jl(this,!0)))}));c&&(h.ou=function(){return this.visible},t.Sl=function(a){!a!==!this.visible&&(this.visible=a,this.b.ma=!0)},h.du=
function(a,b){return Rb(ab(100*this.opacity),a,b)},t.aq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ma=!0)},v.Opacity=function(a){a.A(ab(100*this.opacity))});g&&(h.lu=function(a){return a?this.d===a:!1},h.Bu=function(a){var b=this.ka(),c=b.Ac();if(!c.length)return!1;var d=c[0],e=d,g,f;g=1;for(f=c.length;g<f;g++)if(d=c[g],0===a){if(d.d.index>e.d.index||d.d.index===e.d.index&&d.Lb()>e.Lb())e=d}else if(d.d.index<e.d.index||d.d.index===e.d.index&&d.Lb()<e.Lb())e=d;b.Pg(e);
return!0},t.vu=function(){var a=this.Lb();a!==this.d.c.length-1&&(ta(this.d.c,a),this.d.c.push(this),this.b.ma=!0,this.d.Rb=!0)},t.tu=function(){var a=this.Lb();0!==a&&(ta(this.d.c,a),this.d.c.unshift(this),this.b.ma=!0,this.d.Rb=!0)},t.uu=function(a){a&&a!=this.d&&(ta(this.d.c,this.Lb()),this.d.Rb=!0,this.d=a,this.Je=a.c.length,a.c.push(this),this.b.ma=!0)},t.Zu=function(a,b){var c=0===a;if(b){var d=b.Jr(this);if(d&&d.uid!==this.uid){this.d.index!==d.d.index&&(ta(this.d.c,this.Lb()),this.d.Rb=!0,
this.d=d.d,this.Je=d.d.c.length,d.d.c.push(this));var e=this.Lb(),d=d.Lb();ta(this.d.c,e);e<d&&d--;c&&d++;d===this.d.c.length?this.d.c.push(this):this.d.c.splice(d,0,this);this.d.Rb=!0;this.b.ma=!0}}},v.qu=function(a){a.X(this.d.Wn)},v.pu=function(a){a.ab(this.d.name)},v.Yu=function(a){a.X(this.Lb())});f&&(t.Ju=function(a,b){if(this.b.q){var c=this.type.ek(b);if(!(0>c)){var d=1===a;this.Dd[c]!==d&&(this.Dd[c]=d,this.Ad(),this.b.ma=!0)}}},t.Ku=function(a,b,c){if(this.b.q){var d=this.type.ek(a);0>d||
(a=this.type.I[d],d=this.va[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.q.Sr(a.bb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ra&&(this.b.ma=!0))))}})};zb=function(){this.Dj=this.kh=!0;this.type.gm=!0;this.b.ma=!0;var e,d,l=this.zj;e=0;for(d=l.length;e<d;++e)l[e](this)};Ab=function(e){e&&this.zj.push(e)};Cb=function(){if(this.kh){var e=this.hb,d=this.Pe;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.xb*this.width,-this.yb*this.height);this.j?(e.offset(-this.x,-this.y),d.Fo(e,this.j),
d.offset(this.x,this.y),d.om(e)):d.Xg(e);e.normalize();this.kh=!1}};var e=new qa(0,0,0,0);Db=function(){if(this.Dj&&this.Of){this.sb();var m=this.type.um,d=this.oh,l=this.hb;e.set(m.Ul(l.left),m.Wl(l.top),m.Ul(l.right),m.Wl(l.bottom));d.Yq(e)||(d.right<d.left?m.update(this,null,e):m.update(this,d,e),d.Bq(e),this.Dj=!1)}};Bb=function(e,d){return this.hb.gc(e,d)&&this.Pe.gc(e,d)?this.Mc&&!this.Mc.Bs()?(this.Mc.uq(this.width,this.height,this.j),this.Mc.gc(e-this.x,d-this.y)):!0:!1};vb=function(){this.type.hj();
return this.te};Eb=function(){this.d.bp();return this.Je};Fb=function(){this.Y.length=0;var e,d;e=0;for(d=this.Dd.length;e<d;e++)this.Dd[e]&&this.Y.push(this.type.I[e]);this.cp=!!this.Y.length};wb=function(){return"Inst"+this.uo};hb=function(e){if(e&&e.Cc&&e.type!=this){var d,l,k;d=0;for(l=e.siblings.length;d<l;d++)if(k=e.siblings[d],k.type==this)return k}e=this.ka().Ac();return e.length?e[0]:null};ib=function(e){var d=this.ka().Ac();return d.length?d[e.Zf()%d.length]:null};gb=function(){if(this.Bf&&
!this.C){var e,d;e=0;for(d=this.c.length;e<d;e++)this.c[e].te=e;var l=e,k=this.b.Nc;e=0;for(d=k.length;e<d;++e)k[e].type===this&&(k[e].te=l++);this.Bf=!1}};tb=function(e){if(e<this.c.length)return this.c[e];e-=this.c.length;var d=this.b.Nc,l,k;l=0;for(k=d.length;l<k;++l)if(d[l].type===this){if(0===e)return d[l];--e}return null};jb=function(){return this.Wd[this.hd]};kb=function(){this.hd++;this.hd===this.Wd.length?this.Wd.push(new fb(this)):this.Wd[this.hd].na=!0};nb=function(){this.hd++;this.hd===
this.Wd.length&&this.Wd.push(new fb(this));var e=this.Wd[this.hd],d=this.Wd[this.hd-1];d.na?e.na=!0:(e.na=!1,ua(e.c,d.c),ua(e.Z,d.Z))};ob=function(){this.hd--};pb=function(e){var d,l,k,a,b,c=0;if(!this.C)for(d=0,l=this.ra.length;d<l;d++)for(b=this.ra[d],k=0,a=b.Ca.length;k<a;k++){if(e===b.Ca[k].name)return this.ya.lastBehIndex=c,b.Ca[k];c++}d=0;for(l=this.Ca.length;d<l;d++){if(e===this.Ca[d].name)return this.ya.lastBehIndex=c,this.Ca[d];c++}return null};qb=function(e){return this.Hh(e)?this.ya.lastBehIndex:
-1};rb=function(e){var d,l;d=0;for(l=this.I.length;d<l;d++)if(this.I[d].name===e)return d;return-1};sb=function(){if(this.Cc&&!this.C){var e,d,l,k,a,b,c;this.hj();b=this.ka();var g=b.na,f=(e=this.b.kb())&&e.ib&&e.ib.Ec;e=0;for(d=this.Jb.length;e<d;e++)if(a=this.Jb[e],a!==this&&(a.hj(),c=a.ka(),c.na=g,!g)){c.c.length=b.c.length;l=0;for(k=b.c.length;l<k;l++)c.c[l]=a.Qm(b.c[l].te);if(f)for(c.Z.length=b.Z.length,l=0,k=b.Z.length;l<k;l++)c.Z[l]=a.Qm(b.Z[l].te)}}};ub=function(){return"Type"+this.T};Rb=
function(e,d,l){if("undefined"===typeof e||"undefined"===typeof l)return!1;switch(d){case 0:return e===l;case 1:return e!==l;case 2:return e<l;case 3:return e<=l;case 4:return e>l;case 5:return e>=l;default:return!1}}})();var $b={};function cc(e){this.b=e}
(function(){function e(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function m(a){a=a.toLowerCase();return O.hasOwnProperty(a)&&O[a].length?O[a][0].Tb():r.destination}function d(){return r.createGain?r.createGain():r.createGainNode()}function l(a){return r.createDelay?r.createDelay(a):r.createDelayNode(a)}function k(a){a.start?a.start(0):a.noteOn(0)}function a(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function b(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function c(a,
b,c,e,g,f){this.type="filter";this.Fc=[a,b,c,e,g,f];this.U=d();this.G=d();this.G.gain.value=f;this.D=d();this.D.gain.value=1-f;this.Ea=r.createBiquadFilter();this.Ea.type="number"===typeof this.Ea.type?a:nc[a];this.Ea.frequency.value=b;this.Ea.detune&&(this.Ea.detune.value=c);this.Ea.Q.value=e;this.Ea.gain.value=g;this.U.connect(this.Ea);this.U.connect(this.D);this.Ea.connect(this.G)}function g(a,b,c){this.type="delay";this.Fc=[a,b,c];this.U=d();this.G=d();this.G.gain.value=c;this.D=d();this.D.gain.value=
1-c;this.Cg=d();this.ic=l(a);this.ic.delayTime.value=a;this.xh=d();this.xh.gain.value=b;this.U.connect(this.Cg);this.U.connect(this.D);this.Cg.connect(this.G);this.Cg.connect(this.ic);this.ic.connect(this.xh);this.xh.connect(this.Cg)}function f(a,b,c,e){this.type="convolve";this.Fc=[b,c,e];this.U=d();this.G=d();this.G.gain.value=c;this.D=d();this.D.gain.value=1-c;this.ge=r.createConvolver();a&&(this.ge.normalize=b,this.ge.buffer=a);this.U.connect(this.ge);this.U.connect(this.D);this.ge.connect(this.G)}
function h(a,b,c,e,g){this.type="flanger";this.Fc=[a,b,c,e,g];this.U=d();this.D=d();this.D.gain.value=1-g/2;this.G=d();this.G.gain.value=g/2;this.Ch=d();this.Ch.gain.value=e;this.ic=l(a+b);this.ic.delayTime.value=a;this.Wa=r.createOscillator();this.Wa.frequency.value=c;this.Pb=d();this.Pb.gain.value=b;this.U.connect(this.ic);this.U.connect(this.D);this.ic.connect(this.G);this.ic.connect(this.Ch);this.Ch.connect(this.ic);this.Wa.connect(this.Pb);this.Pb.connect(this.ic.delayTime);k(this.Wa)}function t(a,
b,c,e,g,f){this.type="phaser";this.Fc=[a,b,c,e,g,f];this.U=d();this.D=d();this.D.gain.value=1-f/2;this.G=d();this.G.gain.value=f/2;this.Ea=r.createBiquadFilter();this.Ea.type="number"===typeof this.Ea.type?7:"allpass";this.Ea.frequency.value=a;this.Ea.detune&&(this.Ea.detune.value=b);this.Ea.Q.value=c;this.Wa=r.createOscillator();this.Wa.frequency.value=g;this.Pb=d();this.Pb.gain.value=e;this.U.connect(this.Ea);this.U.connect(this.D);this.Ea.connect(this.G);this.Wa.connect(this.Pb);this.Pb.connect(this.Ea.frequency);
k(this.Wa)}function v(a){this.type="gain";this.Fc=[a];this.W=d();this.W.gain.value=a}function q(a,b){this.type="tremolo";this.Fc=[a,b];this.W=d();this.W.gain.value=1-b/2;this.Wa=r.createOscillator();this.Wa.frequency.value=a;this.Pb=d();this.Pb.gain.value=b/2;this.Wa.connect(this.Pb);this.Pb.connect(this.W.gain);k(this.Wa)}function C(a,b){this.type="ringmod";this.Fc=[a,b];this.U=d();this.G=d();this.G.gain.value=b;this.D=d();this.D.gain.value=1-b;this.Vg=d();this.Vg.gain.value=0;this.Wa=r.createOscillator();
this.Wa.frequency.value=a;this.Wa.connect(this.Vg.gain);k(this.Wa);this.U.connect(this.Vg);this.U.connect(this.D);this.Vg.connect(this.G)}function p(a,b,c,e,g){this.type="distortion";this.Fc=[a,b,c,e,g];this.U=d();this.Ai=d();this.yi=d();this.At(c,Math.pow(10,e/20));this.G=d();this.G.gain.value=g;this.D=d();this.D.gain.value=1-g;this.kj=r.createWaveShaper();this.vh=new Float32Array(65536);this.Gr(a,b);this.kj.vh=this.vh;this.U.connect(this.Ai);this.U.connect(this.D);this.Ai.connect(this.kj);this.kj.connect(this.yi);
this.yi.connect(this.G)}function n(a,b,c,d,e){this.type="compressor";this.Fc=[a,b,c,d,e];this.W=r.createDynamicsCompressor();try{this.W.threshold.value=a,this.W.knee.value=b,this.W.ratio.value=c,this.W.attack.value=d,this.W.release.value=e}catch(g){}}function u(a,b){this.type="analyser";this.Fc=[a,b];this.W=r.createAnalyser();this.W.fftSize=a;this.W.smoothingTimeConstant=b;this.Er=new Float32Array(this.W.frequencyBinCount);this.Io=new Uint8Array(a);this.Og=0}function w(){this.F=null;this.di=0;this.Xd=
[];this.Ok=this.Zh=this.Yh=0}function B(a,b){this.src=a;this.P=D;this.Dc=b;this.cm=!1;var c=this;this.Mk=this.Yk=null;this.uf=[];this.Mi=0;this.Hl=this.Vj=this.Lo=this.ti=!1;1===D&&b&&(this.P=0,this.Yk=d());this.de=this.aa=null;var e;switch(this.P){case 0:this.aa=new Audio;this.aa.addEventListener("canplaythrough",function(){c.Hl=!0});1===D&&r.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Lo=!0,this.aa.addEventListener("canplay",function(){c.Mk||(c.Mk=r.createMediaElementSource(c.aa),
c.Mk.connect(c.Yk))}));this.aa.autoplay=!1;this.aa.iv="auto";this.aa.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){c.de=e.response;c.Fq()};e.onerror=function(){c.Vj=!0};e.send();break;case 2:this.aa=!0;break;case 3:this.aa=!0}}function s(a,b){var c=this;this.tag=b;this.cb=this.Qc=!0;this.src=a.src;this.buffer=a;this.P=D;this.Dc=a.Dc;this.playbackRate=1;this.$k=!0;this.nc=this.wd=!1;this.Bb=0;this.ig=this.ef=this.Sc=!1;this.volume=1;this.we=
1===T&&!this.Dc||2===T;this.nf=1;this.startTime=this.we?z.Vb.ea:z.$c.ea;this.Aa=this.Fa=null;this.Tc=!1;this.za=null;this.fo=this.eo=this.co=this.bo=this.jo=this.ho=0;this.i=null;var e=!1;1!==this.P||0!==this.buffer.P||this.buffer.Lo||(this.P=0);switch(this.P){case 0:this.Dc?(this.i=a.aa,e=!a.cm,a.cm=!0):(this.i=new Audio,this.i.autoplay=!1,this.i.src=a.aa.src,e=!0);e&&this.i.addEventListener("ended",function(){Z=c.tag;c.cb=!0;z.trigger(cc.prototype.e.nj,ia)});break;case 1:this.Fa=d();this.Fa.connect(m(b));
1===this.buffer.P?a.aa&&(this.i=r.createBufferSource(),this.i.buffer=a.aa,this.i.connect(this.Fa)):(this.i=this.buffer.aa,this.buffer.Yk.connect(this.Fa));break;case 2:this.i=new window.Media(K+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.$k=!0,c.cb=!0,Z=c.tag,z.trigger(cc.prototype.e.nj,ia))});break;case 3:this.i=!0}}function A(a,b){O.hasOwnProperty(a)?O[a].push(b):O[a]=[b];var c,d,e,g,f=r.destination;if(O.hasOwnProperty(a)&&(e=O[a],e.length))for(f=e[0].Tb(),c=0,d=e.length;c<
d;c++)g=e[c],c+1===d?g.fc(r.destination):g.fc(e[c+1].Tb());Ea.length=0;if(a.length)for(c=0,d=y.length;c<d;c++)e=y[c],bb(a,e.tag)&&Ea.push(e);else H&&!H.se()&&(Ea.length=1,Ea[0]=H);c=0;for(d=Ea.length;c<d;c++)Ea[c].lt(f);ya&&lb===a&&(ya.disconnect(),ya.connect(f))}function X(){}function R(){}var x=cc.prototype;x.Qa=function(a){this.wa=a;this.b=a.b};x.Qa.prototype.ga=function(){};var z=null,ia=null,Z="",K="",D=0,r=null,I=[],y=[],H=null,E=!1,T=0,F=!1,J=1,M=0,aa=0,ka=1,mb=1,hc=10,ic=1E4,jc=1,ya=null,
lb="",Ja=!1,Ka=[],O={},nc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");c.prototype.fc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};c.prototype.remove=function(){this.U.disconnect();this.Ea.disconnect();this.G.disconnect();this.D.disconnect()};c.prototype.Tb=function(){return this.U};g.prototype.fc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};g.prototype.remove=function(){this.U.disconnect();
this.Cg.disconnect();this.ic.disconnect();this.xh.disconnect();this.G.disconnect();this.D.disconnect()};g.prototype.Tb=function(){return this.U};f.prototype.fc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};f.prototype.remove=function(){this.U.disconnect();this.ge.disconnect();this.G.disconnect();this.D.disconnect()};f.prototype.Tb=function(){return this.U};h.prototype.fc=function(a){this.D.disconnect();this.D.connect(a);this.G.disconnect();this.G.connect(a)};
h.prototype.remove=function(){this.U.disconnect();this.ic.disconnect();this.Wa.disconnect();this.Pb.disconnect();this.D.disconnect();this.G.disconnect();this.Ch.disconnect()};h.prototype.Tb=function(){return this.U};t.prototype.fc=function(a){this.D.disconnect();this.D.connect(a);this.G.disconnect();this.G.connect(a)};t.prototype.remove=function(){this.U.disconnect();this.Ea.disconnect();this.Wa.disconnect();this.Pb.disconnect();this.D.disconnect();this.G.disconnect()};t.prototype.Tb=function(){return this.U};
v.prototype.fc=function(a){this.W.disconnect();this.W.connect(a)};v.prototype.remove=function(){this.W.disconnect()};v.prototype.Tb=function(){return this.W};q.prototype.fc=function(a){this.W.disconnect();this.W.connect(a)};q.prototype.remove=function(){this.Wa.disconnect();this.Pb.disconnect();this.W.disconnect()};q.prototype.Tb=function(){return this.W};C.prototype.fc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};C.prototype.remove=function(){this.Wa.disconnect();
this.Vg.disconnect();this.U.disconnect();this.G.disconnect();this.D.disconnect()};C.prototype.Tb=function(){return this.U};p.prototype.At=function(a,b){.01>a&&(a=.01);this.Ai.gain.value=a;this.yi.gain.value=Math.pow(1/a,.6)*b};p.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};p.prototype.Gr=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,g=0;32768>g;++g)e=g/32768,e=this.shape(e,c,d),this.vh[32768+g]=e,this.vh[32768-
g-1]=-e};p.prototype.fc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};p.prototype.remove=function(){this.U.disconnect();this.Ai.disconnect();this.kj.disconnect();this.yi.disconnect();this.G.disconnect();this.D.disconnect()};p.prototype.Tb=function(){return this.U};n.prototype.fc=function(a){this.W.disconnect();this.W.connect(a)};n.prototype.remove=function(){this.W.disconnect()};n.prototype.Tb=function(){return this.W};u.prototype.Na=function(){this.W.getFloatFrequencyData(this.Er);
this.W.getByteTimeDomainData(this.Io);for(var a=this.W.fftSize,b=0,c=this.Og=0,d=0;b<a;b++)d=(this.Io[b]-128)/128,0>d&&(d=-d),this.Og<d&&(this.Og=d),c+=d*d;this.Og=e(this.Og);e(Math.sqrt(c/a))};u.prototype.fc=function(a){this.W.disconnect();this.W.connect(a)};u.prototype.remove=function(){this.W.disconnect()};u.prototype.Tb=function(){return this.W};w.prototype.Wg=function(a){if(this.F=a)this.Yh=this.F.x,this.Zh=this.F.y;this.Xd.length=0};w.prototype.Oh=function(){return!!this.F};w.prototype.Na=function(a){this.F&&
0!==a&&(this.Ok=Fa(this.Yh,this.Zh,this.F.x,this.F.y),a=Oa(this.Yh,this.Zh,this.F.x,this.F.y)/a,4>this.Xd.length||this.Xd.shift(),this.Xd.push(a),this.Yh=this.F.x,this.Zh=this.F.y)};w.prototype.Tm=function(){if(!this.Xd.length)return 0;var a,b,c=0;a=0;for(b=this.Xd.length;a<b;a++)c+=this.Xd[a];return c/this.Xd.length};w.prototype.ik=function(){return Math.cos(this.Ok)*this.Tm()};w.prototype.jk=function(){return Math.sin(this.Ok)*this.Tm()};var kc=!1;B.prototype.Fq=function(){if(!this.aa&&this.de){var a=
this;if(r.decodeAudioData)r.decodeAudioData(this.de,function(b){a.aa=b;a.de=null;var c,d,e;if(ga(a.vi)||F)ga(a.qh)||(c=a.qh.ge,c.normalize=a.Vn,c.buffer=b);else if(a.uf.length){c=0;for(d=a.uf.length;c<d;c++){b=a.uf[c];e=new s(a,b.No);e.ll(!0);if("undefined"!==typeof b.Xn&&(b.F=z.Jh(b.Xn),!b.F))continue;if(b.F){var g=Na(b.F.x,b.F.y,-b.F.d.Sa(),M,aa,!0),f=Na(b.F.x,b.F.y,-b.F.d.Sa(),M,aa,!1);e.kl(g,f,za(b.F.j-b.F.d.Sa()),b.ok,b.Pk,b.Sk);e.Wg(b.F)}else e.kl(b.x,b.y,b.fq,b.ok,b.Pk,b.Sk);e.play(a.Jk,a.Fl,
a.Mi);a.ti&&e.pause();y.push(e)}a.uf.length=0}else e=new s(a,a.vi),e.play(a.Jk,a.Fl,a.Mi),a.ti&&e.pause(),y.push(e)},function(){a.Vj=!0});else if(this.aa=r.createBuffer(this.de,!1),this.de=null,ga(this.vi)||F)ga(this.qh)||(b=this.qh.ge,b.normalize=this.Vn,b.buffer=this.aa);else{var b=new s(this,this.vi);b.play(this.Jk,this.Fl,this.Mi);this.ti&&b.pause();y.push(b)}}};B.prototype.cn=function(){switch(this.P){case 0:var a=4<=this.aa.readyState;a&&(this.Hl=!0);return a||this.Hl;case 1:return!!this.de||
!!this.aa;case 2:return!0;case 3:return!0}return!1};B.prototype.vs=function(){switch(this.P){case 0:return this.cn();case 1:return!!this.aa;case 2:return!0;case 3:return!0}return!1};B.prototype.ms=function(){switch(this.P){case 0:return!!this.aa.error;case 1:return this.Vj}return!1};s.prototype.se=function(){var a;switch(this.P){case 0:return this.i.ended;case 1:if(1===this.buffer.P){if(!this.Qc&&!this.cb&&this.i.loop||this.nc)return!1;a=this.we?z.Vb.ea:z.$c.ea;return a-this.startTime>this.buffer.aa.duration}return this.i.ended;
case 2:return this.$k;case 3:!0}return!0};s.prototype.vq=function(){return this.Qc||this.cb?!0:this.se()};s.prototype.ll=function(a){1===D&&(!this.Tc&&a?this.Fa&&(this.Aa||(this.Aa=r.createPanner(),this.Aa.panningModel="number"===typeof this.Aa.panningModel?ka:["equalpower","HRTF","soundfield"][ka],this.Aa.distanceModel="number"===typeof this.Aa.distanceModel?mb:["linear","inverse","exponential"][mb],this.Aa.refDistance=hc,this.Aa.maxDistance=ic,this.Aa.rolloffFactor=jc),this.Fa.disconnect(),this.Fa.connect(this.Aa),
this.Aa.connect(m(this.tag)),this.Tc=!0):this.Tc&&!a&&this.Fa&&(this.Aa.disconnect(),this.Fa.disconnect(),this.Fa.connect(m(this.tag)),this.Tc=!1))};s.prototype.kl=function(a,b,c,d,e,g){this.Tc&&1===D&&(this.Aa.setPosition(a,b,0),this.Aa.setOrientation(Math.cos(Q(c)),Math.sin(Q(c)),0),this.Aa.coneInnerAngle=d,this.Aa.coneOuterAngle=e,this.Aa.coneOuterGain=g,this.ho=a,this.jo=b,this.bo=c,this.co=d,this.eo=e,this.fo=g)};s.prototype.Wg=function(a){this.Tc&&1===D&&(this.za||(this.za=new w),this.za.Wg(a))};
s.prototype.Na=function(a){if(this.Tc&&1===D&&this.za&&this.za.Oh()&&this.cf()){this.za.Na(a);a=this.za.F;var b=Na(a.x,a.y,-a.d.Sa(),M,aa,!0),c=Na(a.x,a.y,-a.d.Sa(),M,aa,!1);this.Aa.setPosition(b,c,0);b=0;"undefined"!==typeof this.za.F.j&&(b=a.j-a.d.Sa(),this.Aa.setOrientation(Math.cos(b),Math.sin(b),0));b=Na(this.za.ik(),this.za.jk(),-a.d.Sa(),0,0,!0);c=Na(this.za.ik(),this.za.jk(),-a.d.Sa(),0,0,!1);this.Aa.setVelocity(b,c,0)}};s.prototype.play=function(b,c,d){var e=this.i;this.Sc=b;this.volume=
c;d=d||0;switch(this.P){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==c*J&&(e.volume=c*J);e.loop!==b&&(e.loop=b);e.muted&&(e.muted=!1);if(e.currentTime!==d)try{e.currentTime=d}catch(g){}if(this.Dc&&Ja&&!z.ba)Ka.push(this);else try{this.i.play()}catch(f){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",f)}break;case 1:this.muted=!1;this.nf=1;if(1===this.buffer.P)this.Qc||(this.i=r.createBufferSource(),this.i.buffer=this.buffer.aa,this.i.connect(this.Fa)),
this.i.loop=b,this.Fa.gain.value=c*J,0===d?k(this.i):a(this.i,d,this.qe());else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==b&&(e.loop=b);this.Fa.gain.value=c*J;if(e.currentTime!==d)try{e.currentTime=d}catch(h){}this.Dc&&Ja&&!z.ba?Ka.push(this):e.play()}break;case 2:(!this.Qc&&this.cb||0!==d)&&e.seekTo(d);e.play();this.$k=!1;break;case 3:z.Za?AppMobi.context.playSound(this.src,b):AppMobi.player.playSound(this.src,b)}this.playbackRate=1;this.startTime=(this.we?z.Vb.ea:z.$c.ea)-d;this.nc=this.cb=
this.Qc=!1};s.prototype.stop=function(){switch(this.P){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.P?b(this.i):this.i.paused||this.i.pause();break;case 2:this.i.stop();break;case 3:z.Za&&AppMobi.context.stopSound(this.src)}this.cb=!0;this.nc=!1};s.prototype.pause=function(){if(!(this.Qc||this.cb||this.se()||this.nc)){switch(this.P){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.P?(this.Bb=this.gk(),this.Sc&&(this.Bb%=this.qe()),b(this.i)):this.i.paused||this.i.pause();
break;case 2:this.i.pause();break;case 3:z.Za&&AppMobi.context.stopSound(this.src)}this.nc=!0}};s.prototype.ot=function(){if(!(this.Qc||this.cb||this.se())&&this.nc){switch(this.P){case 0:this.i.play();break;case 1:1===this.buffer.P?(this.i=r.createBufferSource(),this.i.buffer=this.buffer.aa,this.i.connect(this.Fa),this.i.loop=this.Sc,this.Fa.gain.value=J*this.volume*this.nf,this.startTime=(this.we?z.Vb.ea:z.$c.ea)-this.Bb,a(this.i,this.Bb,this.qe())):this.i.play();break;case 2:this.i.play();break;
case 3:z.Za&&AppMobi.context.resumeSound(this.src)}this.nc=!1}};s.prototype.seek=function(a){if(!(this.Qc||this.cb||this.se()))switch(this.P){case 0:try{this.i.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.P)this.nc?this.Bb=a:(this.pause(),this.Bb=a,this.ot());else try{this.i.currentTime=a}catch(c){}break;case 3:z.Za&&AppMobi.context.seekSound(this.src,a)}};s.prototype.lt=function(a){1===this.P&&(this.Tc?(this.Aa.disconnect(),this.Aa.connect(a)):(this.Fa.disconnect(),this.Fa.connect(a)))};
s.prototype.qe=function(){switch(this.P){case 0:if("undefined"!==typeof this.i.duration)return this.i.duration;break;case 1:return this.buffer.aa.duration;case 2:return this.i.getDuration();case 3:if(z.Za)return AppMobi.context.getDurationSound(this.src)}return 0};s.prototype.gk=function(){var a=this.qe(),b=0;switch(this.P){case 0:"undefined"!==typeof this.i.currentTime&&(b=this.i.currentTime);break;case 1:if(1===this.buffer.P){if(this.nc)return this.Bb;b=(this.we?z.Vb.ea:z.$c.ea)-this.startTime}else"undefined"!==
typeof this.i.currentTime&&(b=this.i.currentTime);break;case 3:z.Za&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Sc&&b>a&&(b=a);return b};s.prototype.cf=function(){return!this.nc&&!this.Qc&&!this.cb&&!this.se()};s.prototype.Pt=function(){var a=this.volume*J;switch(this.P){case 0:this.i.volume&&this.i.volume!==a&&(this.i.volume=a);break;case 1:this.Fa.gain.value=a*this.nf}};s.prototype.yh=function(a){switch(this.P){case 0:this.i.muted!==!!a&&(this.i.muted=!!a);break;case 1:this.nf=a?0:
1,this.Fa.gain.value=J*this.volume*this.nf}};s.prototype.Ct=function(){this.ef=!0;this.yh(this.ef||this.ig)};s.prototype.Do=function(a){this.ig=!!a;this.yh(this.ef||this.ig)};s.prototype.Zo=function(){var a=this.playbackRate;this.we&&(a*=z.Df);switch(this.P){case 0:this.i.playbackRate!==a&&(this.i.playbackRate=a);break;case 1:1===this.buffer.P?this.i.playbackRate.value!==a&&(this.i.playbackRate.value=a):this.i.playbackRate!==a&&(this.i.playbackRate=a)}};s.prototype.Et=function(c){switch(this.P){case 0:c?
this.cf()?(this.i.pause(),this.wd=!0):this.wd=!1:this.wd&&this.i.play();break;case 1:c?this.cf()?(1===this.buffer.P?(this.Bb=this.gk(),this.Sc&&(this.Bb%=this.qe()),b(this.i)):this.i.pause(),this.wd=!0):this.wd=!1:this.wd&&(1===this.buffer.P?(this.i=r.createBufferSource(),this.i.buffer=this.buffer.aa,this.i.connect(this.Fa),this.i.loop=this.Sc,this.Fa.gain.value=J*this.volume*this.nf,this.startTime=(this.we?z.Vb.ea:z.$c.ea)-this.Bb,a(this.i,this.Bb,this.qe())):this.i.play());break;case 2:c?this.cf()?
(this.i.pause(),this.wd=!0):this.wd=!1:this.wd&&this.i.play()}};x.ta=function(a){this.type=a;z=this.b=a.b;ia=this;this.ob=null;this.sg=-600;!(this.b.Xh||this.b.Rh&&(this.b.eg||this.b.Sh))||this.b.fg||this.b.O||(Ja=!0);r=null;"undefined"!==typeof AudioContext?(D=1,r=new AudioContext):"undefined"!==typeof webkitAudioContext&&(D=1,r=new webkitAudioContext);(this.b.Xh&&1===D||Ja)&&document.addEventListener("touchstart",function(){var a,b,c;!kc&&r&&(a=r.createBuffer(1,1,22050),b=r.createBufferSource(),
b.buffer=a,b.connect(r.destination),k(b),kc=!0);if(Ja){if(!F)for(a=0,b=Ka.length;a<b;++a)c=Ka[a],c.cb||c.nc||c.i.play();Ka.length=0}},!0);1!==D&&(this.b.mc&&"undefined"!==typeof window.Media?D=2:this.b.Ze&&(D=3));2===D&&(K=location.href,a=K.lastIndexOf("/"),-1<a&&(K=K.substr(0,a+1)),K=K.replace("file://",""));if(this.b.dn&&this.b.xs&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),this.b.Bd(this);
else{if(this.b.Za)E=this.b.Rh;else try{E=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){E=!1}this.b.aj(this)}};var da=x.ta.prototype;da.ga=function(){this.b.Oe=this;T=this.S[0];this.xd=this.S[1];this.Zs=0!==this.S[2];ka=this.S[3];mb=this.S[4];this.sg=-this.S[5];hc=this.S[6];ic=this.S[7];jc=this.S[8];this.ob=new w;var a=this.b.M||this.b.width,b=this.b.L||this.b.height;1===D&&(r.listener.speedOfSound=this.S[9],r.listener.dopplerFactor=this.S[10],r.listener.setPosition(a/2,b/2,this.sg),
r.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ya&&ya.disconnect();lb=b.toLowerCase();ya=r.createMediaStreamSource(a);ya.connect(m(lb))});this.b.lq(function(a){ia.Vs(a)});var c=this;this.b.jq(function(a){c.Qs(a)})};da.Qs=function(a){var b,c,d;b=0;for(c=y.length;b<c;b++)d=y[b],d.za&&d.za.F===a&&(d.za.F=null,d.Tc&&d.cf()&&d.Sc&&d.stop());this.ob.F===a&&(this.ob.F=null)};da.Cb=function(){var a={silent:F,masterVolume:J,listenerZ:this.sg,listenerUid:this.ob.Oh()?this.ob.F.uid:
-1,playing:[],effects:{}},b=a.playing,c,d,e,g,f,h;c=0;for(d=y.length;c<d;c++)e=y[c],!e.cf()||3===this.xd||e.Dc&&1===this.xd||!e.Dc&&2===this.xd||(g=e.gk(),e.Sc&&(g%=e.qe()),g={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Dc,playbackTime:g,volume:e.volume,looping:e.Sc,muted:e.ef,playbackRate:e.playbackRate,paused:e.nc,resume_position:e.Bb},e.Tc&&(g.pan={},h=g.pan,e.za&&e.za.Oh()?h.objUid=e.za.F.uid:(h.x=e.ho,h.y=e.jo,h.a=e.bo),h.ia=e.co,h.oa=e.eo,h.og=e.fo),b.push(g));b=a.effects;for(f in O)if(O.hasOwnProperty(f)){e=
[];c=0;for(d=O[f].length;c<d;c++)e.push({type:O[f][c].type,params:O[f][c].Fc});b[f]=e}return a};var La=[];da.Xb=function(a){var b=a.silent;J=a.masterVolume;this.sg=a.listenerZ;this.ob.Wg(null);var d=a.listenerUid;-1!==d&&(this.ob.di=d,La.push(this.ob));var d=a.playing,e,k,l,m,s,X,Z,z,x,r,R;if(3!==this.xd)for(e=0,k=y.length;e<k;e++)x=y[e],x.Dc&&1===this.xd||(x.Dc||2!==this.xd)&&x.stop();for(s in O)if(O.hasOwnProperty(s))for(e=0,k=O[s].length;e<k;e++)O[s][e].remove();Ra(O);for(s in a.effects)if(a.effects.hasOwnProperty(s))for(X=
a.effects[s],e=0,k=X.length;e<k;e++)switch(l=X[e].type,r=X[e].params,l){case "filter":A(s,new c(r[0],r[1],r[2],r[3],r[4],r[5]));break;case "delay":A(s,new g(r[0],r[1],r[2]));break;case "convolve":l=r[2];x=this.Gh(l,!1);x.aa?l=new f(x.aa,r[0],r[1],l):(l=new f(null,r[0],r[1],l),x.Vn=r[0],x.qh=l);A(s,l);break;case "flanger":A(s,new h(r[0],r[1],r[2],r[3],r[4]));break;case "phaser":A(s,new t(r[0],r[1],r[2],r[3],r[4],r[5]));break;case "gain":A(s,new v(r[0]));break;case "tremolo":A(s,new q(r[0],r[1]));break;
case "ringmod":A(s,new C(r[0],r[1]));break;case "distortion":A(s,new p(r[0],r[1],r[2],r[3],r[4]));break;case "compressor":A(s,new n(r[0],r[1],r[2],r[3],r[4]));break;case "analyser":A(s,new u(r[0],r[1]))}e=0;for(k=d.length;e<k;e++)3===this.xd||(a=d[e],l=a.buffersrc,m=a.is_music,s=a.tag,X=a.playbackTime,Z=a.looping,z=a.volume,R=(r=a.pan)&&r.hasOwnProperty("objUid")?r.objUid:-1,m&&1===this.xd)||!m&&2===this.xd||((x=this.Km(l,s,m,Z,z))?(x.Bb=a.resume_position,x.ll(!!r),x.play(Z,z,X),x.Zo(),x.Pt(),x.yh(x.ef||
x.ig),a.paused&&x.pause(),a.muted&&x.Ct(),x.yh(x.ef||x.ig),r&&(-1!==R?(x.za=x.za||new w,x.za.di=R,La.push(x.za)):x.kl(r.x,r.y,r.a,r.ia,r.oa,r.og))):(x=this.Gh(l,m),x.Mi=X,x.ti=a.paused,r&&(-1!==R?x.uf.push({Xn:R,ok:r.ia,Pk:r.oa,Sk:r.og,No:s}):x.uf.push({x:r.x,y:r.y,fq:r.a,ok:r.ia,Pk:r.oa,Sk:r.og,No:s}))));if(b&&!F){e=0;for(k=y.length;e<k;e++)y[e].Do(!0);F=!0}else if(!b&&F){e=0;for(k=y.length;e<k;e++)y[e].Do(!1);F=!1}};da.ad=function(){var a,b,c,d;a=0;for(b=La.length;a<b;a++)c=La[a],d=this.b.Jh(c.di),
c.Wg(d),c.di=-1,d&&(M=d.x,aa=d.y);La.length=0};da.Vs=function(a){if(!this.Zs){!a&&r&&r.resume&&r.resume();var b,c;b=0;for(c=y.length;b<c;b++)y[b].Et(a);a&&r&&r.suspend&&r.suspend()}};da.Na=function(){var a=this.b.le,b,c,d;b=0;for(c=y.length;b<c;b++)d=y[b],d.Na(a),0===d.P||3===d.P||d.Qc||d.cb||!d.se()||(d.cb=!0,Z=d.tag,z.trigger(cc.prototype.e.nj,ia)),0!==T&&d.Zo();var e,g;for(e in O)if(O.hasOwnProperty(e))for(d=O[e],b=0,c=d.length;b<c;b++)g=d[b],g.Na&&g.Na();1===D&&this.ob.Oh()&&(this.ob.Na(a),M=
this.ob.F.x,aa=this.ob.F.y,r.listener.setPosition(this.ob.F.x,this.ob.F.y,this.sg),r.listener.setVelocity(this.ob.ik(),this.ob.jk(),0))};var Ma=[];da.Dt=function(a){var b,c,d,e,g,f=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(g=4<e.length&&".ogg"===e.substr(e.length-4))&&E||!g&&!E)Ma.push({filename:e,size:d,F:null}),f+=d;return f};da.Ht=function(){var a,b,c,d;a=0;for(b=Ma.length;a<b;++a)c=Ma[a],d=this.b.Wj+c.filename,c.F=this.Gh(d,!1)};da.Pr=function(){var a=0,b,c,d;b=0;for(c=Ma.length;b<
c;++b)d=Ma[b],d.F.vs()||d.F.ms()||this.b.O||this.b.Sh?a+=d.size:d.F.cn()&&(a+=Math.floor(d.size/2));return a};da.Gh=function(a,b){var c,d,e,g=null;c=0;for(d=I.length;c<d;c++)if(e=I[c],e.src===a){g=e;break}g||(g=new B(a,b),I.push(g));return g};da.Km=function(a,b,c,d,e){var g,f,h;g=0;for(f=y.length;g<f;g++)if(h=y[g],h.src===a&&(h.vq()||c))return h.tag=b,h;a=this.Gh(a,c);if(!a.aa)return"<preload>"!==b&&(a.vi=b,a.Jk=d,a.Fl=e),null;h=new s(a,b);y.push(h);return h};var Ea=[];X.prototype.nj=function(a){return bb(Z,
a)};x.e=new X;R.prototype.Play=function(a,b,c,d){!F&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),H=this.Km(this.b.Wj+a[0]+(E?".ogg":".m4a"),d,a[1],0!==b,c))&&(H.ll(!1),H.play(0!==b,c))};x.pa=new R;x.xa=new function(){}})();function dc(e){this.b=e}
(function(){function e(){}var m=dc.prototype;m.Qa=function(d){this.wa=d;this.b=d.b};m.Qa.prototype.ga=function(){};m.ta=function(d){this.type=d;this.b=d.b;this.zk=Array(256);this.ij=Array(256);this.Zd=0};var d=m.ta.prototype;d.ga=function(){var d=this;this.b.O||(jQuery(document).keydown(function(a){d.Rs(a)}),jQuery(document).keyup(function(a){d.Ss(a)}))};var l=[32,33,34,35,36,37,38,39,40,44];d.Rs=function(d){var a=!1;window!=window.top&&-1<l.indexOf(d.which)&&(d.preventDefault(),a=!0,d.stopPropagation());
if(this.zk[d.which])this.ij[d.which]&&!a&&d.preventDefault();else{this.zk[d.which]=!0;this.Zd=d.which;this.b.ba=!0;this.b.trigger(dc.prototype.e.Ap,this);var b=this.b.trigger(dc.prototype.e.Kl,this),c=this.b.trigger(dc.prototype.e.Np,this);this.b.ba=!1;if(b||c)this.ij[d.which]=!0,a||d.preventDefault()}};d.Ss=function(d){this.zk[d.which]=!1;this.Zd=d.which;this.b.ba=!0;this.b.trigger(dc.prototype.e.Bp,this);var a=this.b.trigger(dc.prototype.e.Pp,this),b=this.b.trigger(dc.prototype.e.Op,this);this.b.ba=
!1;if(a||b||this.ij[d.which])this.ij[d.which]=!0,d.preventDefault()};d.Cb=function(){return{triggerKey:this.Zd}};d.Xb=function(d){this.Zd=d.triggerKey};e.prototype.Kl=function(d){return d===this.Zd};e.prototype.Ap=function(){return!0};e.prototype.Bp=function(){return!0};e.prototype.Pp=function(d){return d===this.Zd};e.prototype.Np=function(d){return d===this.Zd};e.prototype.Op=function(d){return d===this.Zd};m.e=new e;m.pa=new function(){};m.xa=new function(){}})();function ec(e){this.b=e}
(function(){function e(){}function m(){}var d=ec.prototype;d.Qa=function(a){this.wa=a;this.b=a.b};d.Qa.prototype.ga=function(){};d.ta=function(a){this.type=a;this.b=a.b;this.lh=Array(4);this.Po=this.dj=this.Ef=this.td=this.sd=0;this.lk=!1};var l=d.ta.prototype;l.ga=function(){var a=this;if(!this.b.O){jQuery(document).mousemove(function(b){a.Hg(b)});jQuery(document).mousedown(function(b){a.Gg(b)});jQuery(document).mouseup(function(b){a.Ig(b)});jQuery(document).dblclick(function(b){a.Os(b)});var b=
function(b){a.Xs(b)};document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var k={left:0,top:0};l.Hg=function(a){var b=this.b.O?k:jQuery(this.b.canvas).offset();this.sd=a.pageX-b.left;this.td=a.pageY-b.top};l.Rn=function(){return 0<this.b.mb?!0:0<=this.sd&&0<=this.td&&this.sd<this.b.width&&this.td<this.b.height};l.Gg=function(a){this.Rn()&&(this.b.Xe&&!this.b.Rc&&a.preventDefault(),this.lh[a.which]=!0,this.b.ba=!0,this.b.trigger(ec.prototype.e.zp,this),this.Ef=
a.which-1,this.dj=0,this.b.trigger(ec.prototype.e.Jl,this),this.b.trigger(ec.prototype.e.pj,this),this.b.ba=!1)};l.Ig=function(a){this.lh[a.which]&&(this.b.Xe&&!this.b.Rc&&a.preventDefault(),this.b.Xe=!0,this.lh[a.which]=!1,this.b.ba=!0,this.Ef=a.which-1,this.b.trigger(ec.prototype.e.Sp,this),this.b.ba=!1)};l.Os=function(a){this.Rn()&&(a.preventDefault(),this.b.ba=!0,this.Ef=a.which-1,this.dj=1,this.b.trigger(ec.prototype.e.Jl,this),this.b.trigger(ec.prototype.e.pj,this),this.b.ba=!1)};l.Xs=function(a){this.Po=
0>(a.wheelDelta?a.wheelDelta:a.detail?-a.detail:0)?0:1;this.lk=!1;this.b.ba=!0;this.b.trigger(ec.prototype.e.Vp,this);this.b.ba=!1;this.lk&&a.preventDefault()};e.prototype.Jl=function(a,b){return a===this.Ef&&b===this.dj};e.prototype.zp=function(){return!0};e.prototype.pp=function(a){return this.lh[a+1]};e.prototype.Sp=function(a){return a===this.Ef};e.prototype.rp=function(a){var b=this.b.Mm();return Pa(this.b.Cf(a,this.sd,this.td,b.dg),b.dg)};e.prototype.pj=function(a,b,c){return a!==this.Ef||b!==
this.dj?!1:this.b.Cf(c,this.sd,this.td,!1)};e.prototype.Vp=function(a){this.lk=!0;return a===this.Po};d.e=new e;d.pa=new function(){};m.prototype.Tl=function(a,b){var c,d,e,h,k;ga(b)?(c=this.b.nd(0),d=c.scale,e=c.Gb,h=c.qc,k=c.j,c.scale=1,c.Gb=1,c.qc=1,c.j=0,a.A(c.qa(this.sd,this.td,!0)),c.scale=d,c.Gb=e,c.qc=h,c.j=k):(c=L(b)?this.b.nd(b):this.b.Wf(b))?a.A(c.qa(this.sd,this.td,!0)):a.A(0)};m.prototype.Vl=function(a,b){var c,d,e,h,k;ga(b)?(c=this.b.nd(0),d=c.scale,e=c.Gb,h=c.rc,k=c.j,c.scale=1,c.Gb=
1,c.rc=1,c.j=0,a.A(c.qa(this.sd,this.td,!1)),c.scale=d,c.Gb=e,c.rc=h,c.j=k):(c=L(b)?this.b.nd(b):this.b.Wf(b))?a.A(c.qa(this.sd,this.td,!1)):a.A(0)};d.xa=new m})();function fc(e){this.b=e}
(function(){function e(d){this.k=d;this.Ra=!1;this.j=this.speed=this.y=this.x=0;this.opacity=1;this.Ed=this.We=this.size=this.Mh=0}var m=fc.prototype;m.Qa=function(d){this.wa=d;this.b=d.b};var d=m.Qa.prototype;d.ga=function(){this.C||(this.K=new Image,this.K.Ij=this.Yi,this.R=null,this.b.Gl(this.K,this.Xi))};d.li=function(){this.C||(this.R=null)};d.mi=function(){this.C||!this.c.length||this.R||(this.R=this.b.q.hf(this.K,!0,this.b.V,this.eh))};d.ug=function(){this.C||this.R||!this.b.q||(this.R=this.b.q.hf(this.K,
!0,this.b.V,this.eh))};d.gj=function(){this.C||this.c.length||!this.R||(this.b.q.deleteTexture(this.R),this.R=null)};d.Bi=function(d){d.drawImage(this.K,0,0)};e.prototype.init=function(){var d=this.k;this.x=d.x-d.lj/2+Math.random()*d.lj;this.y=d.y-d.mj/2+Math.random()*d.mj;this.speed=d.sk-d.Ri/2+Math.random()*d.Ri;this.j=d.j-d.Si/2+Math.random()*d.Si;this.opacity=d.qk;this.size=d.rk-d.Pi/2+Math.random()*d.Pi;this.Mh=d.kk-d.Nh/2+Math.random()*d.Nh;this.Ed=this.We=0};e.prototype.Na=function(d){var a=
this.k;this.x+=Math.cos(this.j)*this.speed*d;this.y+=Math.sin(this.j)*this.speed*d;this.y+=this.We*d;this.speed+=a.sj*d;this.size+=this.Mh*d;this.We+=a.ak*d;this.Ed+=d;1>this.size?this.Ra=!1:(0!==a.pg&&(this.j+=Math.random()*a.pg*d-a.pg*d/2),0!==a.rg&&(this.speed+=Math.random()*a.rg*d-a.rg*d/2),0!==a.qg&&(this.opacity+=Math.random()*a.qg*d-a.qg*d/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=a.Re&&this.Ed>=a.timeout&&(this.Ra=!1),2===a.Re&&0>=this.speed&&(this.Ra=!1))};e.prototype.jc=
function(d){var a=this.k.opacity*this.opacity;if(0!==a){0===this.k.Re&&(a*=1-this.Ed/this.k.timeout);d.globalAlpha=a;var a=this.x-this.size/2,b=this.y-this.size/2;this.k.b.Uc&&(a=a+.5|0,b=b+.5|0);d.drawImage(this.k.type.K,a,b,this.size,this.size)}};e.prototype.ub=function(d){var a=this.k.opacity*this.opacity;0===this.k.Re&&(a*=1-this.Ed/this.k.timeout);var b=this.size,c=b*this.k.mo,e=this.x-b/2,f=this.y-b/2;this.k.b.Uc&&(e=e+.5|0,f=f+.5|0);1>c||0===a||(c<d.Ks||c>d.Lk?(d.Ge(a),d.Sg(e,f,e+b,f,e+b,f+
b,e,f+b)):d.$s(this.x,this.y,c,a))};e.prototype.left=function(){return this.x-this.size/2};e.prototype.right=function(){return this.x+this.size/2};e.prototype.top=function(){return this.y-this.size/2};e.prototype.bottom=function(){return this.y+this.size/2};m.ta=function(d){this.type=d;this.b=d.b};var d=m.ta.prototype,l=[];d.ga=function(){var d=this.S;this.Hi=d[0];this.Si=Q(d[1]);this.zf=d[2];this.pl=!0;this.sk=d[3];this.rk=d[4];this.qk=d[5]/100;this.kk=d[6];this.lj=d[7];this.mj=d[8];this.Ri=d[9];
this.Pi=d[10];this.Nh=d[11];this.sj=d[12];this.ak=d[13];this.pg=d[14];this.rg=d[15];this.qg=d[16];this.Re=d[17];this.timeout=d[18];this.De=0;this.mo=1;this.qi=this.x;this.si=this.y;this.ri=this.x;this.pi=this.y;this.mq(function(a){a.hb.set(a.qi,a.si,a.ri,a.pi);a.Pe.Xg(a.hb);a.kh=!1;a.Rt()});this.Gc||(this.qb=[]);this.b.aj(this);this.type.ug();if(1===this.zf)for(d=0;d<this.Hi;d++)this.uj().opacity=0;this.Eh=!0};d.Cb=function(){var d={r:this.Hi,sc:this.Si,st:this.zf,s:this.pl,isp:this.sk,isz:this.rk,
io:this.qk,gr:this.kk,xr:this.lj,yr:this.mj,spr:this.Ri,szr:this.Pi,grnd:this.Nh,acc:this.sj,g:this.ak,lar:this.pg,lsr:this.rg,lor:this.qg,dm:this.Re,to:this.timeout,pcc:this.De,ft:this.Eh,p:[]},a,b,c,e=d.p;a=0;for(b=this.qb.length;a<b;a++)c=this.qb[a],e.push([c.x,c.y,c.speed,c.j,c.opacity,c.Mh,c.size,c.We,c.Ed]);return d};d.Xb=function(d){this.Hi=d.r;this.Si=d.sc;this.zf=d.st;this.pl=d.s;this.sk=d.isp;this.rk=d.isz;this.qk=d.io;this.kk=d.gr;this.lj=d.xr;this.mj=d.yr;this.Ri=d.spr;this.Pi=d.szr;this.Nh=
d.grnd;this.sj=d.acc;this.ak=d.g;this.pg=d.lar;this.rg=d.lsr;this.qg=d.lor;this.Re=d.dm;this.timeout=d.to;this.De=d.pcc;this.Eh=d.ft;l.push.apply(l,this.qb);this.qb.length=0;var a,b,c,e=d.p;d=0;for(a=e.length;d<a;d++)b=this.uj(),c=e[d],b.x=c[0],b.y=c[1],b.speed=c[2],b.j=c[3],b.opacity=c[4],b.Mh=c[5],b.size=c[6],b.We=c[7],b.Ed=c[8]};d.sf=function(){l.push.apply(l,this.qb);this.qb.length=0};d.uj=function(){var d;l.length?(d=l.pop(),d.k=this):d=new e(this);this.qb.push(d);d.Ra=!0;return d};d.Na=function(){var d=
this.b.ck(this),a,b,c,e;if(0===this.zf&&this.pl)for(this.De+=d*this.Hi,b=P(this.De),this.De-=b,a=0;a<b;a++)c=this.uj(),c.init();this.qi=this.x;this.si=this.y;this.ri=this.x;this.pi=this.y;e=a=0;for(b=this.qb.length;a<b;a++)c=this.qb[a],this.qb[e]=c,this.b.ma=!0,1===this.zf&&this.Eh&&c.init(),c.Na(d),c.Ra?(c.left()<this.qi&&(this.qi=c.left()),c.right()>this.ri&&(this.ri=c.right()),c.top()<this.si&&(this.si=c.top()),c.bottom()>this.pi&&(this.pi=c.bottom()),e++):l.push(c);this.qb.length=e;this.Ia();
this.Eh=!1;1===this.zf&&0===this.qb.length&&this.b.Bd(this)};d.jc=function(d){var a,b,c,e=this.d;a=0;for(b=this.qb.length;a<b;a++)c=this.qb[a],c.right()>=e.Oa&&c.bottom()>=e.Pa&&c.left()<=e.fb&&c.top()<=e.eb&&c.jc(d)};d.ub=function(d){this.mo=this.d.Kb();d.Qb(this.type.R);var a,b,c,e=this.d;a=0;for(b=this.qb.length;a<b;a++)c=this.qb[a],c.right()>=e.Oa&&c.bottom()>=e.Pa&&c.left()<=e.fb&&c.top()<=e.eb&&c.ub(d)};m.e=new function(){};m.pa=new function(){};m.xa=new function(){}})();
function bc(e){this.b=e}
(function(){function e(){if(0===this.Lj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Af?b.drawImage(this.K,this.qf,this.rf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.K,0,0,this.width,this.height);this.Lj=a.toDataURL("image/png")}return this.Lj}function m(){}var d=bc.prototype;d.Qa=function(a){this.wa=a;this.b=a.b};var l=d.Qa.prototype;l.ga=function(){if(!this.C){var a,b,c,d,k,l,m,p,n;this.zc=[];this.ag=
!1;a=0;for(b=this.Ib.length;a<b;a++){k=this.Ib[a];m={};m.name=k[0];m.speed=k[1];m.loop=k[2];m.fl=k[3];m.Ii=k[4];m.no=k[5];m.T=k[6];m.frames=[];c=0;for(d=k[7].length;c<d;c++)l=k[7][c],p={},p.Xi=l[0],p.Yi=l[1],p.qf=l[2],p.rf=l[3],p.width=l[4],p.height=l[5],p.duration=l[6],p.xb=l[7],p.yb=l[8],p.pk=l[9],p.wi=l[10],p.oo=l[11],p.Af=0!==p.width,p.Lj="",p.cv=e,n={left:0,top:0,right:1,bottom:1},p.ml=n,p.R=null,(n=this.b.Cr(l[0]))?p.K=n:(p.K=new Image,p.K.Cq=l[0],p.K.Ij=l[1],p.K.tq=null,this.b.Gl(p.K,l[0])),
m.frames.push(p),this.zc.push(p);this.Ib[a]=m}}};l.Yo=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.th=c.hc.R};l.li=function(){if(!this.C){var a,b,c;a=0;for(b=this.zc.length;a<b;++a)c=this.zc[a],c.K.tq=null,c.R=null;this.ag=!1;this.Yo()}};l.mi=function(){if(!this.C&&this.c.length){var a,b,c;a=0;for(b=this.zc.length;a<b;++a)c=this.zc[a],c.R=this.b.q.hf(c.K,!1,this.b.V,c.oo);this.Yo()}};l.ug=function(){if(!this.C&&!this.ag&&this.b.q){var a,b,c;a=0;for(b=this.zc.length;a<b;++a)c=
this.zc[a],c.R=this.b.q.hf(c.K,!1,this.b.V,c.oo);this.ag=!0}};l.gj=function(){if(!this.C&&!this.c.length&&this.ag){var a,b,c;a=0;for(b=this.zc.length;a<b;++a)c=this.zc[a],this.b.q.deleteTexture(c.R),c.R=null;this.ag=!1}};var k=[];l.Bi=function(a){var b,c,d;b=k.length=0;for(c=this.zc.length;b<c;++b)d=this.zc[b].K,-1===k.indexOf(d)&&(a.drawImage(d,0,0),k.push(d))};d.ta=function(a){this.type=a;this.b=a.b;a=this.type.Ib[0].frames[0].wi;this.Gc?this.Mc.Yg(a):this.Mc=new Xa(a)};var a=d.ta.prototype;a.ga=
function(){this.visible=0===this.S[0];this.Of=0!==this.S[3];1===this.type.Ib.length&&1===this.type.Ib[0].frames.length||0===this.type.Ib[0].speed||this.b.aj(this);this.ua=this.Jm(this.S[1])||this.type.Ib[0];this.B=this.S[2];0>this.B&&(this.B=0);this.B>=this.ua.frames.length&&(this.B=this.ua.frames.length-1);var a=this.ua.frames[this.B];this.Mc.Yg(a.wi);this.xb=a.xb;this.yb=a.yb;this.Qf=this.ua.speed;this.Gc?this.Kc.reset():this.Kc=new Va;this.md=this.Kc.ea;this.be=!0;this.bd=0;this.ae=!0;this.Fj=
this.em="";this.yq=0;this.Ej=-1;this.type.ug();var b,c,d,e,k,l,m,a=0;for(b=this.type.Ib.length;a<b;a++)for(e=this.type.Ib[a],c=0,d=e.frames.length;c<d;c++)k=e.frames[c],0===k.width&&(k.width=k.K.width,k.height=k.K.height),k.Af&&(m=k.K,l=k.ml,l.left=k.qf/m.width,l.top=k.rf/m.height,l.right=(k.qf+k.width)/m.width,l.bottom=(k.rf+k.height)/m.height,0===k.qf&&0===k.rf&&k.width===m.width&&k.height===m.height&&(k.Af=!1));this.hc=this.ua.frames[this.B];this.th=this.hc.R};a.Cb=function(){var a={a:this.ua.T,
f:this.B,cas:this.Qf,fs:this.md,ar:this.bd,at:this.Kc.ea};this.be||(a.ap=this.be);this.ae||(a.af=this.ae);return a};a.Xb=function(a){var b=this.Hr(a.a);b&&(this.ua=b);this.B=a.f;0>this.B&&(this.B=0);this.B>=this.ua.frames.length&&(this.B=this.ua.frames.length-1);this.Qf=a.cas;this.md=a.fs;this.bd=a.ar;this.Kc.reset();this.Kc.ea=a.at;this.be=a.hasOwnProperty("ap")?a.ap:!0;this.ae=a.hasOwnProperty("af")?a.af:!0;this.hc=this.ua.frames[this.B];this.th=this.hc.R;this.Mc.Yg(this.hc.wi);this.xb=this.hc.xb;
this.yb=this.hc.yb};a.xj=function(a){this.B=a?0:this.ua.frames.length-1;this.be=!1;this.em=this.ua.name;this.b.trigger(bc.prototype.e.yp,this);this.b.trigger(bc.prototype.e.xp,this);this.bd=0};a.gv=function(){return this.Kc.ea};a.Na=function(){this.Kc.add(this.b.ck(this));this.Fj.length&&this.Hq();0<=this.Ej&&this.Iq();var a=this.Kc.ea,b=this.ua,c=b.frames[this.B],d=c.duration/this.Qf;this.be&&a>=this.md+d&&(this.ae?this.B++:this.B--,this.md+=d,this.B>=b.frames.length&&(b.no?(this.ae=!1,this.B=b.frames.length-
2):b.loop?this.B=b.Ii:(this.bd++,this.bd>=b.fl?this.xj(!1):this.B=b.Ii)),0>this.B&&(b.no?(this.B=1,this.ae=!0,b.loop||(this.bd++,this.bd>=b.fl&&this.xj(!0))):b.loop?this.B=b.Ii:(this.bd++,this.bd>=b.fl?this.xj(!0):this.B=b.Ii)),0>this.B?this.B=0:this.B>=b.frames.length&&(this.B=b.frames.length-1),a>this.md+b.frames[this.B].duration/this.Qf&&(this.md=a),a=b.frames[this.B],this.Me(c,a),this.b.ma=!0)};a.Jm=function(a){var b,c,d;b=0;for(c=this.type.Ib.length;b<c;b++)if(d=this.type.Ib[b],bb(d.name,a))return d;
return null};a.Hr=function(a){var b,c,d;b=0;for(c=this.type.Ib.length;b<c;b++)if(d=this.type.Ib[b],d.T===a)return d;return null};a.Hq=function(){var a=this.ua.frames[this.B],b=this.Jm(this.Fj);this.Fj="";!b||bb(b.name,this.ua.name)&&this.be||(this.ua=b,this.Qf=b.speed,0>this.B&&(this.B=0),this.B>=this.ua.frames.length&&(this.B=this.ua.frames.length-1),1===this.yq&&(this.B=0),this.be=!0,this.md=this.Kc.ea,this.ae=!0,this.Me(a,this.ua.frames[this.B]),this.b.ma=!0)};a.Iq=function(){var a=this.ua.frames[this.B],
b=this.B;this.B=P(this.Ej);0>this.B&&(this.B=0);this.B>=this.ua.frames.length&&(this.B=this.ua.frames.length-1);b!==this.B&&(this.Me(a,this.ua.frames[this.B]),this.md=this.Kc.ea,this.b.ma=!0);this.Ej=-1};a.Me=function(a,b){var c=a.width,d=a.height,e=b.width,k=b.height;c!=e&&(this.width*=e/c);d!=k&&(this.height*=k/d);this.xb=b.xb;this.yb=b.yb;this.Mc.Yg(b.wi);this.Ia();this.hc=b;this.th=b.R;c=0;for(d=this.H.length;c<d;c++)e=this.H[c],e.Us&&e.Us(a,b);this.b.trigger(bc.prototype.e.Me,this)};a.jc=function(a){a.globalAlpha=
this.opacity;var b=this.hc,c=b.Af,d=b.K,e=this.x,k=this.y,l=this.width,m=this.height;if(0===this.j&&0<=l&&0<=m)e-=this.xb*l,k-=this.yb*m,this.b.Uc&&(e=Math.round(e),k=Math.round(k)),c?a.drawImage(d,b.qf,b.rf,b.width,b.height,e,k,l,m):a.drawImage(d,e,k,l,m);else{this.b.Uc&&(e=Math.round(e),k=Math.round(k));a.save();var n=0<l?1:-1,u=0<m?1:-1;a.translate(e,k);1===n&&1===u||a.scale(n,u);a.rotate(this.j*n*u);e=0-this.xb*la(l);k=0-this.yb*la(m);c?a.drawImage(d,b.qf,b.rf,b.width,b.height,e,k,la(l),la(m)):
a.drawImage(d,e,k,la(l),la(m));a.restore()}};a.ub=function(a){a.Qb(this.th);a.Ge(this.opacity);var b=this.hc,c=this.Pe;if(this.b.Uc){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Af?a.vd(c.Db+d,c.Eb+e,c.vc+d,c.wc+e,c.cc+d,c.ec+e,c.$b+d,c.ac+e,b.ml):a.Sg(c.Db+d,c.Eb+e,c.vc+d,c.wc+e,c.cc+d,c.ec+e,c.$b+d,c.ac+e)}else b.Af?a.vd(c.Db,c.Eb,c.vc,c.wc,c.cc,c.ec,c.$b,c.ac,b.ml):a.Sg(c.Db,c.Eb,c.vc,c.wc,c.cc,c.ec,c.$b,c.ac)};a.Lr=function(a){var b=this.hc,c,d;c=0;for(d=b.pk.length;c<d;c++)if(bb(a,
b.pk[c][0]))return c;return-1};a.fk=function(a,b){var c=this.hc,d=c.pk,e;e=N(a)?this.Lr(a):a-1;e=P(e);if(0>e||e>=d.length)return b?this.x:this.y;var k=(d[e][1]-c.xb)*this.width,d=d[e][2],d=(d-c.yb)*this.height,c=Math.cos(this.j);e=Math.sin(this.j);var l=k*c-d*e,d=d*c+k*e,k=l+this.x,d=d+this.y;return b?k:d};var b=new ea,c=!1;l.finish=function(a){if(c){if(a){var d=this.b.kb().ib.Ec;a=null.ka();var e=b.Jc(),k,l;if(a.na){a.na=!1;a.c.length=e.length;k=0;for(l=e.length;k<l;k++)a.c[k]=e[k];if(d)for(k=a.Z.length=
0,l=null.c.length;k<l;k++)e=null.c[k],b.contains(e)||a.Z.push(e)}else if(d)for(d=a.c.length,a.c.length=d+e.length,k=0,l=e.length;k<l;k++)a.c[d+k]=e[k],xa(a.Z,e[k]);else ua(a.c,e);null.cd()}b.clear();c=!1}};m.prototype.xp=function(a){return bb(this.em,a)};m.prototype.yp=function(){return!0};m.prototype.Me=function(){return!0};d.e=new m;d.pa=new function(){};d.xa=new function(){}})();function gc(e){this.b=e}
(function(){function e(){}function m(){}function d(){}var l=gc.prototype;l.Qa=function(a){this.wa=a;this.b=a.b};l.Qa.prototype.ga=function(){};l.ta=function(a){this.type=a;this.b=a.b};var k=l.ta.prototype,a="text password email number tel url".split(" ");-1<navigator.userAgent.indexOf("MSIE 9")&&(a[2]="text",a[3]="text",a[4]="text",a[5]="text");k.ga=function(){if(this.b.O)G("[Construct 2] Textbox plugin not supported on this platform - the object will not be created");else{6===this.S[7]?(this.u=document.createElement("textarea"),
jQuery(this.u).css("resize","none")):(this.u=document.createElement("input"),this.u.type=a[this.S[7]]);this.u.id=this.S[9];jQuery(this.u).appendTo(this.b.nh?this.b.nh:"body");this.u.autocomplete="off";this.u.value=this.S[0];this.u.placeholder=this.S[1];this.u.title=this.S[2];this.u.disabled=0===this.S[4];this.u.readOnly=1===this.S[5];this.u.spellcheck=1===this.S[6];this.pq=0!==this.S[8];this.me=!1;0===this.S[3]&&(jQuery(this.u).hide(),this.visible=!1,this.me=!0);var b=function(a){return function(){a.b.trigger(gc.prototype.e.Pl,
a)}}(this);this.u.oninput=b;-1!==navigator.userAgent.indexOf("MSIE")&&(this.u.oncut=b);this.u.onclick=function(a){return function(b){b.stopPropagation();a.b.ba=!0;a.b.trigger(gc.prototype.e.Dp,a);a.b.ba=!1}}(this);this.u.ondblclick=function(a){return function(b){b.stopPropagation();a.b.ba=!0;a.b.trigger(gc.prototype.e.Gp,a);a.b.ba=!1}}(this);this.u.addEventListener("touchstart",function(a){a.stopPropagation()},!1);this.u.addEventListener("touchmove",function(a){a.stopPropagation()},!1);this.u.addEventListener("touchend",
function(a){a.stopPropagation()},!1);jQuery(this.u).mousedown(function(a){a.stopPropagation()});jQuery(this.u).mouseup(function(a){a.stopPropagation()});jQuery(this.u).keydown(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});jQuery(this.u).keyup(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});this.tn=this.un=this.ln=this.qn=this.sn=this.nn=0;this.$o(!0);this.b.aj(this)}};k.Cb=function(){return{text:this.u.value,placeholder:this.u.placeholder,tooltip:this.u.title,disabled:!!this.u.disabled,
readonly:!!this.u.readOnly,spellcheck:!!this.u.spellcheck}};k.Xb=function(a){this.u.value=a.text;this.u.placeholder=a.placeholder;this.u.title=a.tooltip;this.u.disabled=a.disabled;this.u.readOnly=a.readonly;this.u.spellcheck=a.spellcheck};k.sf=function(){this.b.O||(jQuery(this.u).remove(),this.u=null)};k.Na=function(){this.$o()};k.$o=function(a){if(!this.b.O){var c=this.d.nb(this.x,this.y,!0),d=this.d.nb(this.x,this.y,!1),e=this.d.nb(this.x+this.width,this.y+this.height,!0),h=this.d.nb(this.x+this.width,
this.y+this.height,!1),k=this.b.width/this.b.devicePixelRatio,l=this.b.height/this.b.devicePixelRatio;!this.visible||!this.d.visible||0>=e||0>=h||c>=k||d>=l?(this.me||jQuery(this.u).hide(),this.me=!0):(1>c&&(c=1),1>d&&(d=1),e>=k&&(e=k-1),h>=l&&(h=l-1),k=window.innerWidth,l=window.innerHeight,a||this.nn!==c||this.sn!==d||this.qn!==e||this.ln!==h||this.un!==k||this.tn!==l?(this.nn=c,this.sn=d,this.qn=e,this.ln=h,this.un=k,this.tn=l,this.me&&(jQuery(this.u).show(),this.me=!1),a=Math.round(c)+jQuery(this.b.canvas).offset().left,
k=Math.round(d)+jQuery(this.b.canvas).offset().top,jQuery(this.u).css("position","absolute"),jQuery(this.u).offset({left:a,top:k}),jQuery(this.u).width(Math.round(e-c)),jQuery(this.u).height(Math.round(h-d)),this.pq&&jQuery(this.u).css("font-size",this.d.Kb(!0)/this.b.devicePixelRatio-.2+"em")):this.me&&(jQuery(this.u).show(),this.me=!1))}};k.jc=function(){};k.ub=function(){};e.prototype.kp=function(a,c){return this.b.O?!1:0===c?bb(this.u.value,a):this.u.value===a};e.prototype.Pl=function(){return!0};
e.prototype.Dp=function(){return!0};e.prototype.Gp=function(){return!0};l.e=new e;m.prototype.bq=function(a){this.b.O||(this.u.value=a)};m.prototype.Sl=function(a){this.b.O||(this.visible=0!==a)};m.prototype.$p=function(a,c){this.b.O||jQuery(this.u).css(a,c)};l.pa=new m;d.prototype.Text=function(a){this.b.O?a.ab(""):a.ab(this.u.value)};l.xa=new d})();function lc(e){this.b=e}
(function(){var e=lc.prototype;e.Qa=function(d){this.wa=d;this.b=d.b};var m=e.Qa.prototype;m.ga=function(){this.C||(this.K=new Image,this.K.Ij=this.Yi,this.b.Gl(this.K,this.Xi),this.R=this.pattern=null)};m.li=function(){this.C||(this.R=null)};m.mi=function(){if(!this.C&&this.c.length){this.R||(this.R=this.b.q.hf(this.K,!0,this.b.V,this.eh));var d,e;d=0;for(e=this.c.length;d<e;d++)this.c[d].R=this.R}};m.ug=function(){this.C||this.R||!this.b.q||(this.R=this.b.q.hf(this.K,!0,this.b.V,this.eh))};m.gj=
function(){this.C||this.c.length||!this.R||(this.b.q.deleteTexture(this.R),this.R=null)};m.Bi=function(d){d.drawImage(this.K,0,0)};e.ta=function(d){this.type=d;this.b=d.b};m=e.ta.prototype;m.ga=function(){this.visible=0===this.S[0];this.Tg=new qa(0,0,0,0);this.Wm=!1;this.K=this.type.K;this.b.q?(this.type.ug(),this.R=this.type.R):(this.type.pattern||(this.type.pattern=this.b.fa.createPattern(this.type.K,"repeat")),this.pattern=this.type.pattern)};m.ad=function(){this.Wm=!1;this.K=this.type.K};m.sf=
function(){this.b.q&&this.Wm&&this.R&&(this.b.q.deleteTexture(this.R),this.R=null)};m.jc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var e=this.x,k=this.y;this.b.Uc&&(e=Math.round(e),k=Math.round(k));var a=-(this.xb*this.width),b=-(this.yb*this.height),c=a%this.K.width,g=b%this.K.height;0>c&&(c+=this.K.width);0>g&&(g+=this.K.height);d.translate(e,k);d.rotate(this.j);d.translate(c,g);d.fillRect(a-c,b-g,this.width,this.height);d.restore()};m.ub=function(d){d.Qb(this.R);
d.Ge(this.opacity);var e=this.Tg;e.right=this.width/this.K.width;e.bottom=this.height/this.K.height;var k=this.Pe;if(this.b.Uc){var a=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;d.vd(k.Db+a,k.Eb+b,k.vc+a,k.wc+b,k.cc+a,k.ec+b,k.$b+a,k.ac+b,e)}else d.vd(k.Db,k.Eb,k.vc,k.wc,k.cc,k.ec,k.$b,k.ac,e)};e.e=new function(){};e.pa=new function(){};e.xa=new function(){}})();function Y(e){this.b=e}
(function(){function e(a){f=a.x;h=a.y;t=a.z}function m(a){v=a.x;q=a.y;C=a.z}function d(a,b,c,d){var e;e=p.length?p.pop():new l;e.init(a,b,c,d);return e}function l(){this.$g=this.id=this.y=this.x=this.Vi=this.Ui=this.Ck=this.time=this.rl=0;this.gh=this.ej=!1}function k(){}function a(){}var b=Y.prototype;b.Qa=function(a){this.wa=a;this.b=a.b};b.Qa.prototype.ga=function(){};b.ta=function(a){this.type=a;this.b=a.b;this.touches=[];this.Nk=!1};var c=b.ta.prototype,g={left:0,top:0};c.Uf=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 f=0,h=0,t=0,v=0,q=0,C=0,p=[];l.prototype.init=function(a,b,c,d){var e=S();this.rl=this.Ck=this.time=e;this.Ui=a;this.Vi=b;this.x=a;this.y=b;this.id=c;this.$g=d;this.gh=this.ej=!1};l.prototype.update=function(a,b,c){this.Ck=this.time;this.time=a;this.x=b;this.y=c;!this.gh&&15<=Oa(this.Ui,this.Vi,this.x,this.y)&&(this.gh=!0)};l.prototype.Is=function(a,b){!this.ej&&500<=S()-this.rl&&!this.gh&&15>Oa(this.Ui,this.Vi,
this.x,this.y)&&(this.ej=!0,a.Yc=this.$g,a.Ff=this.id,a.Ue=b,a.b.trigger(Y.prototype.e.Lp,a),a.fd=this.x,a.gd=this.y,a.b.trigger(Y.prototype.e.Mp,a),a.Ue=0)};var n=-1E3,u=-1E3,w=-1E4;l.prototype.On=function(a,b){if(!this.ej){var c=S();333>=c-this.rl&&!this.gh&&15>Oa(this.Ui,this.Vi,this.x,this.y)&&(a.Yc=this.$g,a.Ff=this.id,a.Ue=b,666>=c-w&&25>Oa(n,u,this.x,this.y)?(a.b.trigger(Y.prototype.e.Hp,a),a.fd=this.x,a.gd=this.y,a.b.trigger(Y.prototype.e.Ip,a),u=n=-1E3,w=-1E4):(a.b.trigger(Y.prototype.e.Tp,
a),a.fd=this.x,a.gd=this.y,a.b.trigger(Y.prototype.e.Up,a),n=this.x,u=this.y,w=c),a.Ue=0)}};c.ga=function(){this.ys=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Ue=this.Ff=this.Yc=this.gd=this.fd=this.Zl=this.Yl=this.Xl=this.iq=this.hq=this.gq=this.Ng=this.Mg=this.Lg=0;this.Tt=0!==this.S[0];var a=0<this.b.mb?document:this.b.canvas,b=document;this.b.Za?b=a=window.Canvas:this.b.Ub&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.Kg(a)},
!1),a.addEventListener("pointermove",function(a){c.Jg(a)},!1),b.addEventListener("pointerup",function(a){c.ud(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.ud(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.Kg(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Jg(a)},!1),b.addEventListener("MSPointerUp",function(a){c.ud(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.ud(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.oi(a)},
!1),a.addEventListener("touchmove",function(a){c.ni(a)},!1),b.addEventListener("touchend",function(a){c.tf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.tf(a,!0)},!1));if(this.ys){var d=function(a){a=a.reading;c.Xl=a.accelerationX;c.Yl=a.accelerationY;c.Zl=a.accelerationZ},g=function(a){a=a.reading;c.Lg=a.yawDegrees;c.Mg=a.pitchDegrees;c.Ng=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",g));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",g)):(f&&f.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",g))},!1)}else window.addEventListener("deviceorientation",function(a){c.Lg=a.alpha||
0;c.Mg=a.beta||0;c.Ng=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.gq=a.accelerationIncludingGravity.x||0,c.hq=a.accelerationIncludingGravity.y||0,c.iq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Xl=a.acceleration.x||0,c.Yl=a.acceleration.y||0,c.Zl=a.acceleration.z||0)},!1);this.Tt&&!this.b.O&&(jQuery(document).mousemove(function(a){c.Hg(a)}),jQuery(document).mousedown(function(a){c.Gg(a)}),jQuery(document).mouseup(function(a){c.Ig(a)}));
this.b.Ze&&!this.b.Za&&AppMobi.accelerometer.watchAcceleration(e,{frequency:40,adjustForRotation:!0});this.b.mc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(m,null,{frequency:40});this.b.Jt(this)};c.Jg=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Uf(a.pointerId),c=S();if(0<=b){var d=this.b.O?g: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.Kg=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&cb(a)&&a.preventDefault();var b=this.b.O?g:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;S();this.Yc=this.touches.length;this.Ff=a.pointerId;this.touches.push(d(c,b,a.pointerId,this.Yc));this.b.ba=!0;this.b.trigger(Y.prototype.e.Ol,this);this.b.trigger(Y.prototype.e.Rl,this);this.fd=c;this.gd=b;this.b.trigger(Y.prototype.e.Ql,this);this.b.ba=
!1}};c.ud=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&cb(a)&&a.preventDefault();var c=this.Uf(a.pointerId);this.Yc=0<=c?this.touches[c].$g:-1;this.Ff=0<=c?this.touches[c].id:-1;this.b.ba=!0;this.b.trigger(Y.prototype.e.Nl,this);this.b.trigger(Y.prototype.e.rj,this);0<=c&&(b||this.touches[c].On(this,c),100>p.length&&p.push(this.touches[c]),this.touches.splice(c,1));this.b.ba=!1}};c.ni=function(a){a.preventDefault&&a.preventDefault();var b=S(),
c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.Uf(e.identifier),0<=f){var h=this.b.O?g:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-h.left,e.pageY-h.top)}};c.oi=function(a){a.preventDefault&&cb(a)&&a.preventDefault();var b=this.b.O?g:jQuery(this.b.canvas).offset();S();this.b.ba=!0;var c,e,f,h;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],h=this.Uf(f.identifier),-1===h){h=f.pageX-b.left;var k=f.pageY-b.top;this.Yc=
this.touches.length;this.Ff=f.identifier;this.touches.push(d(h,k,f.identifier,this.Yc));this.b.trigger(Y.prototype.e.Ol,this);this.b.trigger(Y.prototype.e.Rl,this);this.fd=h;this.gd=k;this.b.trigger(Y.prototype.e.Ql,this)}this.b.ba=!1};c.tf=function(a,b){a.preventDefault&&cb(a)&&a.preventDefault();this.b.ba=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Uf(e.identifier),0<=e&&(this.Yc=this.touches[e].$g,this.Ff=this.touches[e].id,this.b.trigger(Y.prototype.e.Nl,
this),this.b.trigger(Y.prototype.e.rj,this),b||this.touches[e].On(this,e),100>p.length&&p.push(this.touches[e]),this.touches.splice(e,1));this.b.ba=!1};c.av=function(){return this.b.Ze&&0===this.Lg&&0!==t?90*t:this.b.mc&&0===this.Lg&&0!==C?90*C:this.Lg};c.bv=function(){return this.b.Ze&&0===this.Mg&&0!==h?-90*h:this.b.mc&&0===this.Mg&&0!==q?-90*q:this.Mg};c.dv=function(){return this.b.Ze&&0===this.Ng&&0!==f?90*f:this.b.mc&&0===this.Ng&&0!==v?90*v:this.Ng};c.Gg=function(a){a.preventDefault&&this.b.Xe&&
!this.b.Rc&&a.preventDefault();this.oi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Nk=!0};c.Hg=function(a){this.Nk&&this.ni({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};c.Ig=function(a){a.preventDefault&&this.b.Xe&&!this.b.Rc&&a.preventDefault();this.b.Xe=!0;this.tf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Nk=!1};c.tl=function(){var a,b,c,d=S();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Ck=d),c.Is(this,
a)};k.prototype.Rl=function(){return!0};k.prototype.rj=function(){return!0};k.prototype.Ql=function(a){return a?this.b.Cf(a,this.fd,this.gd,!1):!1};var B=[];k.prototype.sp=function(a){if(!a)return!1;var b=a.ka(),c=b.Ac(),d,e,g,f,h,k;g=0;for(f=c.length;g<f;g++){var l=c[g];l.sb();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.d.qa(e.x,e.y,!0),e=l.d.qa(e.x,e.y,!1),l.gc(d,e)){B.push(l);break}}return B.length?(b.na=!1,ua(b.c,B),a.cd(),B.length=0,!0):!1};k.prototype.Ol=function(a){a=Math.floor(a);
return a===this.Yc};k.prototype.Nl=function(a){a=Math.floor(a);return a===this.Yc};k.prototype.Lp=function(){return!0};k.prototype.Tp=function(){return!0};k.prototype.Hp=function(){return!0};k.prototype.Mp=function(a){return a?this.b.Cf(a,this.fd,this.gd,!1):!1};k.prototype.Up=function(a){return a?this.b.Cf(a,this.fd,this.gd,!1):!1};k.prototype.Ip=function(a){return a?this.b.Cf(a,this.fd,this.gd,!1):!1};b.e=new k;a.prototype.Tl=function(a,b){var c=this.Ue;if(0>c||c>=this.touches.length)a.A(0);else{var d,
e,g,f,h;ga(b)?(d=this.b.nd(0),e=d.scale,g=d.Gb,f=d.qc,h=d.j,d.scale=1,d.Gb=1,d.qc=1,d.j=0,a.A(d.qa(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Gb=g,d.qc=f,d.j=h):(d=L(b)?this.b.nd(b):this.b.Wf(b))?a.A(d.qa(this.touches[c].x,this.touches[c].y,!0)):a.A(0)}};a.prototype.Vl=function(a,b){var c=this.Ue;if(0>c||c>=this.touches.length)a.A(0);else{var d,e,g,f,h;ga(b)?(d=this.b.nd(0),e=d.scale,g=d.Gb,f=d.rc,h=d.j,d.scale=1,d.Gb=1,d.rc=1,d.j=0,a.A(d.qa(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.Gb=g,d.rc=f,d.j=h):(d=L(b)?this.b.nd(b):this.b.Wf(b))?a.A(d.qa(this.touches[c].x,this.touches[c].y,!1)):a.A(0)}};b.xa=new a})();
function mc(e){this.b=e;var m=this;this.b.O||(jQuery(document).mousemove(function(d){m.Hg(d)}),jQuery(document).mousedown(function(d){m.Gg(d)}),jQuery(document).mouseup(function(d){m.Ig(d)}));e=0<this.b.mb?document:this.b.canvas;this.b.Za?e=window.Canvas:this.b.Ub&&(e=window);window.navigator.pointerEnabled?(e.addEventListener("pointerdown",function(d){m.Kg(d)},!1),e.addEventListener("pointermove",function(d){m.Jg(d)},!1),e.addEventListener("pointerup",function(d){m.ud(d)},!1),e.addEventListener("pointercancel",
function(d){m.ud(d)},!1)):window.navigator.msPointerEnabled?(e.addEventListener("MSPointerDown",function(d){m.Kg(d)},!1),e.addEventListener("MSPointerMove",function(d){m.Jg(d)},!1),e.addEventListener("MSPointerUp",function(d){m.ud(d)},!1),e.addEventListener("MSPointerCancel",function(d){m.ud(d)},!1)):(e.addEventListener("touchstart",function(d){m.oi(d)},!1),e.addEventListener("touchmove",function(d){m.ni(d)},!1),e.addEventListener("touchend",function(d){m.tf(d)},!1),e.addEventListener("touchcancel",
function(d){m.tf(d)},!1))}
(function(){function e(a){var b,c;b=0;for(c=a.H.length;b<c;b++)if(a.H[b]instanceof d.ta)return a.H[b];return null}function m(){}var d=mc.prototype,l={left:0,top:0};d.Gg=function(a){1===a.which&&this.Tk("leftmouse",a.pageX,a.pageY)};d.Hg=function(a){1===a.which&&this.Uk("leftmouse",a.pageX,a.pageY)};d.Ig=function(a){1===a.which&&this.Vk("leftmouse")};d.oi=function(a){a.preventDefault&&cb(a)&&a.preventDefault();var b,c,d,e;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],e=d.identifier,
this.Tk(e?e.toString():"<none>",d.pageX,d.pageY)};d.ni=function(a){a.preventDefault&&a.preventDefault();var b,c,d,e;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],e=d.identifier,this.Uk(e?e.toString():"<none>",d.pageX,d.pageY)};d.tf=function(a){a.preventDefault&&cb(a)&&a.preventDefault();var b,c,d;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],d=d.identifier,this.Vk(d?d.toString():"<none>")};d.Kg=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&
(a.preventDefault&&cb(a)&&a.preventDefault(),this.Tk(a.pointerId.toString(),a.pageX,a.pageY))};d.Jg=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.Uk(a.pointerId.toString(),a.pageX,a.pageY))};d.ud=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&cb(a)&&a.preventDefault(),this.Vk(a.pointerId.toString()))};d.Tk=function(a,b,c){var d=this.b.O?l:jQuery(this.b.canvas).offset();b-=d.left;
c-=d.top;var f,h,k,m,d=this.of.Jc(),q,C,p,n=null;q=0;for(C=d.length;q<C;q++)if(p=d[q],f=e(p),f.enabled&&!f.ke&&(f=p.d.qa(b,c,!0),h=p.d.qa(b,c,!1),p.sb(),p.gc(f,h)))n?p.d.index>n.d.index?(n=p,k=f,m=h):p.d.index===n.d.index&&p.Lb()>n.Lb()&&(n=p,k=f,m=h):(n=p,k=f,m=h);n&&e(n).Ps(a,k,m)};d.Uk=function(a,b,c){var d=this.b.O?l:jQuery(this.b.canvas).offset();b-=d.left;c-=d.top;var f,h=this.of.Jc(),k,m,q;k=0;for(m=h.length;k<m;k++)f=h[k],q=e(f),!q.enabled||!q.ke||q.ke&&q.Pj!==a||(d=f.d.qa(b,c,!0),f=f.d.qa(b,
c,!1),q.Ts(d,f))};d.Vk=function(a){var b=this.of.Jc(),c,d,f;c=0;for(d=b.length;c<d;c++)f=b[c],f=e(f),f.ke&&f.Pj===a&&f.Ws()};d.Qa=function(a){this.behavior=a;this.b=a.b};d.Qa.prototype.ga=function(){};d.ta=function(a,b){this.type=a;this.behavior=a.behavior;this.zb=b;this.b=a.b};var k=d.ta.prototype;k.ga=function(){this.ke=!1;this.Am=this.zm=0;this.Pj="<none>";this.yj=this.S[0];this.enabled=0!==this.S[1]};k.Cb=function(){return{enabled:this.enabled}};k.Xb=function(a){this.enabled=a.enabled;this.ke=
!1};k.Ps=function(a,b,c){this.zm=b-this.zb.x;this.Am=c-this.zb.y;this.ke=!0;this.Pj=a;this.b.ba=!0;this.b.trigger(mc.prototype.e.Jp,this.zb);this.b.ba=!1};k.Ts=function(a,b){var c=a-this.zm,d=b-this.Am;if(0===this.yj){if(this.zb.x!==c||this.zb.y!==d)this.zb.x=c,this.zb.y=d,this.zb.Ia()}else 1===this.yj?this.zb.x!==c&&(this.zb.x=c,this.zb.Ia()):2===this.yj&&this.zb.y!==d&&(this.zb.y=d,this.zb.Ia())};k.Ws=function(){this.ke=!1;this.b.ba=!0;this.b.trigger(mc.prototype.e.Kp,this.zb);this.b.ba=!1};k.Na=
function(){};m.prototype.Jp=function(){return!0};m.prototype.Kp=function(){return!0};d.e=new m;d.pa=new function(){};d.xa=new function(){}})();
function ac(){return[cc,dc,ec,fc,bc,gc,lc,Y,mc,ec.prototype.e.rp,bc.prototype.pa.aq,ec.prototype.e.pj,Y.prototype.e.sp,W.prototype.pa.cq,ec.prototype.e.pp,W.prototype.e.lp,W.prototype.pa.Zp,W.prototype.pa.wp,bc.prototype.pa.Sl,cc.prototype.pa.Play,W.prototype.pa.dq,Y.prototype.e.rj,W.prototype.e.Ll,gc.prototype.e.Pl,W.prototype.e.Wp,W.prototype.xa.Es,gc.prototype.xa.Text,W.prototype.e.jp,W.prototype.xa.find,W.prototype.xa.Ot,W.prototype.xa.Hs,gc.prototype.pa.bq,W.prototype.xa.left,W.prototype.xa.right,
gc.prototype.e.kp,W.prototype.pa.ep,gc.prototype.pa.mp,dc.prototype.e.Kl,gc.prototype.pa.$p,W.prototype.pa.Xp,W.prototype.pa.Yp,W.prototype.pa.vp]};
