// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,ea,L,fa,ga,ha,P,ia,ja,ma,na,qa,Q,ra,ta,T,ua,wa,xa,ya,za,Aa,Ba,U,Ca,Da,Ea,Fa,Ga,Ia,Ja,Ka,La,Qa,Ra,Sa,Ta,Ua,V,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,W,Wb,Xb={},Yb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(d,n,a,g){this.set(d,n,a,g)}function p(){this.yb=this.xb=this.Ab=this.zb=this.Qb=this.Pb=this.Wa=this.Va=0}function b(d,n,a,g){d<n?a<g?(s=d<a?d:a,u=n>g?n:g):(s=d<g?d:g,u=n>a?n:a):a<g?(s=n<a?n:a,u=d>g?d:g):(s=n<g?n:g,u=d>a?d:a)}function k(){this.items=this.Sc=null;this.Ef=0;n&&(this.Sc=new Set);this.hg=[];this.Zd=!0}function r(d){B[R++]=d}function e(){this.ea=this.Cj=this.y=this.ik=0}function a(d){this.Qa=[];this.Nh=this.Ph=this.Qh=this.Oh=0;this.zh(d)}function c(d,n){this.lk=
d;this.kk=n;this.cells={}}function t(d,n){this.lk=d;this.kk=n;this.cells={}}function w(d,n,a){var g;return oa.length?(g=oa.pop(),g.Vk=d,g.x=n,g.y=a,g):new aa(d,n,a)}function g(d,n,a){this.Vk=d;this.x=n;this.y=a;this.bb=new ca}function l(d,n,a){var g;return v.length?(g=v.pop(),g.Vk=d,g.x=n,g.y=a,g):new ea(d,n,a)}function q(d,n,a){this.Vk=d;this.x=n;this.y=a;this.bb=[];this.Cf=!0;this.gd=new ca;this.lg=!1}function h(d,n){return d.Xc-n.Xc}L=function(d){window.console&&window.console.log&&window.console.log(d)};
fa=function(d){window.console&&window.console.error&&window.console.error(d)};ga=function(d){return"undefined"===typeof d};ha=function(d){return"number"===typeof d};P=function(d){return"string"===typeof d};ia=function(d){return 0<d&&0===(d-1&d)};ja=function(d){--d;for(var n=1;32>n;n<<=1)d|=d>>n;return d+1};ma=function(d){return 0>d?-d:d};na=function(d,n){return d<n?d:n};qa=Math.PI;Q=function(d){return 0<=d?d|0:(d|0)-1};ra=function(d){var n=d|0;return n===d?n:n+1};ta=function(d,n,a,g,e,c,x,m){var b,
h,l,B;d<a?(h=d,b=a):(h=a,b=d);e<x?(B=e,l=x):(B=x,l=e);if(b<B||h>l)return!1;n<g?(h=n,b=g):(h=g,b=n);c<m?(B=c,l=m):(B=m,l=c);if(b<B||h>l)return!1;b=e-d+x-a;h=c-n+m-g;d=a-d;n=g-n;e=x-e;c=m-c;m=ma(n*e-c*d);return ma(e*h-c*b)>m?!1:ma(d*h-n*b)<=m};f.prototype.set=function(d,n,a,g){this.left=d;this.top=n;this.right=a;this.bottom=g};f.prototype.tg=function(d){this.left=d.left;this.top=d.top;this.right=d.right;this.bottom=d.bottom};f.prototype.width=function(){return this.right-this.left};f.prototype.height=
function(){return this.bottom-this.top};f.prototype.offset=function(d,n){this.left+=d;this.top+=n;this.right+=d;this.bottom+=n;return this};f.prototype.normalize=function(){var d=0;this.left>this.right&&(d=this.left,this.left=this.right,this.right=d);this.top>this.bottom&&(d=this.top,this.top=this.bottom,this.bottom=d)};f.prototype.dt=function(d){return!(d.right<this.left||d.bottom<this.top||d.left>this.right||d.top>this.bottom)};f.prototype.et=function(d,n,a){return!(d.right+n<this.left||d.bottom+
a<this.top||d.left+n>this.right||d.top+a>this.bottom)};f.prototype.fb=function(d,n){return d>=this.left&&d<=this.right&&n>=this.top&&n<=this.bottom};f.prototype.gi=function(d){return this.left===d.left&&this.top===d.top&&this.right===d.right&&this.bottom===d.bottom};T=f;p.prototype.Yf=function(d){this.Va=d.left;this.Wa=d.top;this.Pb=d.right;this.Qb=d.top;this.zb=d.right;this.Ab=d.bottom;this.xb=d.left;this.yb=d.bottom};p.prototype.pp=function(d,n){if(0===n)this.Yf(d);else{var a=Math.sin(n),g=Math.cos(n),
e=d.left*a,c=d.top*a,x=d.right*a,a=d.bottom*a,m=d.left*g,b=d.top*g,h=d.right*g,g=d.bottom*g;this.Va=m-c;this.Wa=b+e;this.Pb=h-c;this.Qb=b+x;this.zb=h-a;this.Ab=g+x;this.xb=m-a;this.yb=g+e}};p.prototype.offset=function(d,n){this.Va+=d;this.Wa+=n;this.Pb+=d;this.Qb+=n;this.zb+=d;this.Ab+=n;this.xb+=d;this.yb+=n;return this};var s=0,u=0;p.prototype.Zm=function(d){b(this.Va,this.Pb,this.zb,this.xb);d.left=s;d.right=u;b(this.Wa,this.Qb,this.Ab,this.yb);d.top=s;d.bottom=u};p.prototype.fb=function(d,n){var a=
this.Pb-this.Va,g=this.Qb-this.Wa,e=this.zb-this.Va,c=this.Ab-this.Wa,x=d-this.Va,m=n-this.Wa,b=a*a+g*g,h=a*e+g*c,g=a*x+g*m,l=e*e+c*c,B=e*x+c*m,q=1/(b*l-h*h),a=(l*g-h*B)*q,b=(b*B-h*g)*q;if(0<=a&&0<b&&1>a+b)return!0;a=this.xb-this.Va;g=this.yb-this.Wa;b=a*a+g*g;h=a*e+g*c;g=a*x+g*m;q=1/(b*l-h*h);a=(l*g-h*B)*q;b=(b*B-h*g)*q;return 0<=a&&0<b&&1>a+b};p.prototype.Xd=function(d,n){if(n)switch(d){case 0:return this.Va;case 1:return this.Pb;case 2:return this.zb;case 3:return this.xb;case 4:return this.Va;
default:return this.Va}else switch(d){case 0:return this.Wa;case 1:return this.Qb;case 2:return this.Ab;case 3:return this.yb;case 4:return this.Wa;default:return this.Wa}};p.prototype.Bo=function(){return(this.Va+this.Pb+this.zb+this.xb)/4};p.prototype.Co=function(){return(this.Wa+this.Qb+this.Ab+this.yb)/4};p.prototype.Kn=function(d){var n=d.Bo(),a=d.Co();if(this.fb(n,a))return!0;n=this.Bo();a=this.Co();if(d.fb(n,a))return!0;var g,e,c,x,m,b,h,l;for(h=0;4>h;h++)for(l=0;4>l;l++)if(n=this.Xd(h,!0),
a=this.Xd(h,!1),g=this.Xd(h+1,!0),e=this.Xd(h+1,!1),c=d.Xd(l,!0),x=d.Xd(l,!1),m=d.Xd(l+1,!0),b=d.Xd(l+1,!1),ta(n,a,g,e,c,x,m,b))return!0;return!1};ua=p;wa=function(d,n){for(var a in n)n.hasOwnProperty(a)&&(d[a]=n[a]);return d};xa=function(d,n){var a,g;n=Q(n);if(!(0>n||n>=d.length)){a=n;for(g=d.length-1;a<g;a++)d[a]=d[a+1];d.length=g}};ya=function(d,n){d.length=n.length;var a,g;a=0;for(g=n.length;a<g;a++)d[a]=n[a]};za=function(d,n){d.push.apply(d,n)};Aa=function(d,n){var a,g;a=0;for(g=d.length;a<g;++a)if(d[a]===
n)return a;return-1};Ba=function(d,n){var a=Aa(d,n);-1!==a&&xa(d,a)};U=function(d){return d/(180/qa)};Ca=function(d){return 180/qa*d};Da=function(d){d%=360;0>d&&(d+=360);return d};Ea=function(d){d%=2*qa;0>d&&(d+=2*qa);return d};Fa=function(d){return Da(Ca(d))};Ga=function(d){return Ea(U(d))};Ia=function(d,n,a,g){return Math.atan2(g-n,a-d)};Ja=function(d,n){if(d===n)return 0;var a=Math.sin(d),g=Math.cos(d),e=Math.sin(n),c=Math.cos(n),a=a*e+g*c;return 1<=a?0:-1>=a?qa:Math.acos(a)};Ka=function(d,n,a){var g=
Math.sin(d),e=Math.cos(d),c=Math.sin(n),x=Math.cos(n);return Math.acos(g*c+e*x)>a?0<e*c-g*x?Ea(d+a):Ea(d-a):Ea(n)};La=function(d,n){var a=Math.sin(d),g=Math.cos(d),e=Math.sin(n),c=Math.cos(n);return 0>=g*e-a*c};Qa=function(d,n,a,g,e,c){if(0===a)return c?d:n;var x=Math.sin(a);a=Math.cos(a);d-=g;n-=e;var m=d*x;d=d*a-n*x;n=n*a+m;return c?d+g:n+e};Ra=function(d,n,a,g){d=a-d;n=g-n;return Math.sqrt(d*d+n*n)};Sa=function(d,n){return!d!==!n};Ta=function(d){for(var n in d)if(d.hasOwnProperty(n))return!0;return!1};
Ua=function(d){for(var n in d)d.hasOwnProperty(n)&&delete d[n]};var m=+new Date;V=function(){if("undefined"!==typeof window.performance){var d=window.performance;if("undefined"!==typeof d.now)return d.now();if("undefined"!==typeof d.webkitNow)return d.webkitNow();if("undefined"!==typeof d.mozNow)return d.mozNow();if("undefined"!==typeof d.msNow)return d.msNow()}return Date.now()-m};var A=!1,d=A=!1,x=!1;"undefined"!==typeof window&&(A=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
A=!A&&/safari/i.test(navigator.userAgent),d=/(iphone|ipod|ipad)/i.test(navigator.userAgent),x=window.c2ejecta);var n=!A&&!x&&!d&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;k.prototype.contains=function(d){return this.Ed()?!1:n?this.Sc.has(d):this.items&&this.items.hasOwnProperty(d)};k.prototype.add=function(d){if(n)this.Sc.has(d)||(this.Sc.add(d),this.Zd=!1);else{var a=d.toString(),g=this.items;g?g.hasOwnProperty(a)||(g[a]=d,this.Ef++,this.Zd=!1):(this.items={},this.items[a]=
d,this.Ef=1,this.Zd=!1)}};k.prototype.remove=function(d){if(!this.Ed())if(n)this.Sc.has(d)&&(this.Sc["delete"](d),this.Zd=!1);else if(this.items){d=d.toString();var a=this.items;a.hasOwnProperty(d)&&(delete a[d],this.Ef--,this.Zd=!1)}};k.prototype.clear=function(){this.Ed()||(n?this.Sc.clear():(this.items=null,this.Ef=0),this.hg.length=0,this.Zd=!0)};k.prototype.Ed=function(){return 0===this.count()};k.prototype.count=function(){return n?this.Sc.size:this.Ef};var B=null,R=0;k.prototype.yu=function(){if(!this.Zd){if(n)this.hg.length=
this.Sc.size,B=this.hg,R=0,this.Sc.forEach(r),B=null,R=0;else{var d=this.hg;d.length=this.Ef;var a,g=0,e=this.items;if(e)for(a in e)e.hasOwnProperty(a)&&(d[g++]=e[a])}this.Zd=!0}};k.prototype.Wc=function(){this.yu();return this.hg};ca=k;new ca;Va=function(d,a){n?Wa(d,a.Sc):Xa(d,a.Wc())};Wa=function(d,n){var a,g,e,c;g=a=0;for(e=d.length;a<e;++a)c=d[a],n.has(c)||(d[g++]=c);d.length=g};Xa=function(d,n){var a,g,e,c;g=a=0;for(e=d.length;a<e;++a)c=d[a],-1===Aa(n,c)&&(d[g++]=c);d.length=g};e.prototype.add=
function(d){this.y=d-this.ik;this.Cj=this.ea+this.y;this.ik=this.Cj-this.ea-this.y;this.ea=this.Cj};e.prototype.reset=function(){this.ea=this.Cj=this.y=this.ik=0};Ya=e;Za=function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.zh=function(d){this.dp=d;this.Qc=d.length/2;this.Qa.length=d.length;this.Uh=this.Vh=-1;this.bn=0};a.prototype.zf=function(){return!this.dp.length};a.prototype.qa=function(){for(var d=this.Qa,n=d[0],a=n,g=d[1],e=g,c,x,m=1,b=this.Qc;m<b;++m)x=2*m,c=d[x],x=
d[x+1],c<n&&(n=c),c>a&&(a=c),x<g&&(g=x),x>e&&(e=x);this.Oh=n;this.Ph=a;this.Qh=g;this.Nh=e};a.prototype.Yf=function(d,n,a){this.Qa.length=8;this.Qc=4;var g=this.Qa;g[0]=d.left-n;g[1]=d.top-a;g[2]=d.right-n;g[3]=d.top-a;g[4]=d.right-n;g[5]=d.bottom-a;g[6]=d.left-n;g[7]=d.bottom-a;this.Vh=d.right-d.left;this.Uh=d.bottom-d.top;this.qa()};a.prototype.Xf=function(d,n,a,g,e){this.Qa.length=8;this.Qc=4;var c=this.Qa;c[0]=d.Va-n;c[1]=d.Wa-a;c[2]=d.Pb-n;c[3]=d.Qb-a;c[4]=d.zb-n;c[5]=d.Ab-a;c[6]=d.xb-n;c[7]=
d.yb-a;this.Vh=g;this.Uh=e;this.qa()};a.prototype.op=function(d){this.Qc=d.Qc;ya(this.Qa,d.Qa);this.Oh=d.Oh;this.Qh-d.Qh;this.Ph=d.Ph;this.Nh=d.Nh};a.prototype.kf=function(d,n,a){if(this.Vh!==d||this.Uh!==n||this.bn!==a){this.Vh=d;this.Uh=n;this.bn=a;var g,c,e,x,m,b=0,h=1,l=this.dp,B=this.Qa;0!==a&&(b=Math.sin(a),h=Math.cos(a));a=0;for(e=this.Qc;a<e;a++)g=2*a,c=g+1,x=l[g]*d,m=l[c]*n,B[g]=x*h-m*b,B[c]=m*h+x*b;this.qa()}};a.prototype.fb=function(d,n){var a=this.Qa;if(d===a[0]&&n===a[1])return!0;var g,
c,e,x=this.Qc,m=this.Oh-110,b=this.Qh-101,h=this.Ph+131,l=this.Nh+120,B,q,s=0,A=0;for(g=0;g<x;g++)c=2*g,e=(g+1)%x*2,B=a[c],c=a[c+1],q=a[e],e=a[e+1],ta(m,b,d,n,B,c,q,e)&&s++,ta(h,l,d,n,B,c,q,e)&&A++;return 1===s%2||1===A%2};a.prototype.Hg=function(d,n,a){var g=d.Qa,c=this.Qa;if(this.fb(g[0]+n,g[1]+a)||d.fb(c[0]-n,c[1]-a))return!0;var e,x,m,b,h,l,B,q,s,A,R,z;e=0;for(b=this.Qc;e<b;e++)for(x=2*e,m=(e+1)%b*2,q=c[x],x=c[x+1],s=c[m],A=c[m+1],m=0,B=d.Qc;m<B;m++)if(h=2*m,l=(m+1)%B*2,R=g[h]+n,h=g[h+1]+a,z=
g[l]+n,l=g[l+1]+a,ta(q,x,s,A,R,h,z,l))return!0;return!1};$a=a;c.prototype.ee=function(d,n,a){var g;g=this.cells[d];return g?(g=g[n])?g:a?(g=w(this,d,n),this.cells[d][n]=g):null:a?(g=w(this,d,n),this.cells[d]={},this.cells[d][n]=g):null};c.prototype.fc=function(d){return Q(d/this.lk)};c.prototype.gc=function(d){return Q(d/this.kk)};c.prototype.update=function(d,n,a){var g,c,e,x,m;if(n)for(g=n.left,c=n.right;g<=c;++g)for(e=n.top,x=n.bottom;e<=x;++e)if(!a||!a.fb(g,e))if(m=this.ee(g,e,!1))m.remove(d),
m.Ed()&&(m.bb.clear(),1E3>oa.length&&oa.push(m),this.cells[g][e]=null);if(a)for(g=a.left,c=a.right;g<=c;++g)for(e=a.top,x=a.bottom;e<=x;++e)n&&n.fb(g,e)||this.ee(g,e,!0).el(d)};c.prototype.mj=function(d,n){var a,g,e,c,x,m;a=this.fc(d.left);e=this.gc(d.top);g=this.fc(d.right);for(x=this.gc(d.bottom);a<=g;++a)for(c=e;c<=x;++c)(m=this.ee(a,c,!1))&&m.dump(n)};ab=c;t.prototype.ee=function(d,n,a){var g;g=this.cells[d];return g?(g=g[n])?g:a?(g=l(this,d,n),this.cells[d][n]=g):null:a?(g=l(this,d,n),this.cells[d]=
{},this.cells[d][n]=g):null};t.prototype.fc=function(d){return Q(d/this.lk)};t.prototype.gc=function(d){return Q(d/this.kk)};t.prototype.update=function(d,n,a){var g,e,c,x,m;if(n)for(g=n.left,e=n.right;g<=e;++g)for(c=n.top,x=n.bottom;c<=x;++c)if(!a||!a.fb(g,c))if(m=this.ee(g,c,!1))m.remove(d),m.Ed()&&(m.reset(),1E3>v.length&&v.push(m),this.cells[g][c]=null);if(a)for(g=a.left,e=a.right;g<=e;++g)for(c=a.top,x=a.bottom;c<=x;++c)n&&n.fb(g,c)||this.ee(g,c,!0).el(d)};t.prototype.mj=function(d,n,a,g,c){var e,
x;d=this.fc(d);n=this.gc(n);a=this.fc(a);for(e=this.gc(g);d<=a;++d)for(g=n;g<=e;++g)(x=this.ee(d,g,!1))&&x.dump(c)};t.prototype.ut=function(d){var n,a,g,c,e;n=d.left;g=d.top;a=d.right;for(c=d.bottom;n<=a;++n)for(d=g;d<=c;++d)if(e=this.ee(n,d,!1))e.Cf=!1};bb=t;var oa=[];g.prototype.Ed=function(){return this.bb.Ed()};g.prototype.el=function(d){this.bb.add(d)};g.prototype.remove=function(d){this.bb.remove(d)};g.prototype.dump=function(d){za(d,this.bb.Wc())};aa=g;var v=[];q.prototype.Ed=function(){if(!this.bb.length)return!0;
if(this.bb.length>this.gd.count())return!1;this.Gk();return!0};q.prototype.el=function(d){this.gd.contains(d)?(this.gd.remove(d),this.gd.Ed()&&(this.lg=!1)):this.bb.length?(this.bb[this.bb.length-1].yc()>d.yc()&&(this.Cf=!1),this.bb.push(d)):(this.bb.push(d),this.Cf=!0)};q.prototype.remove=function(d){this.gd.add(d);this.lg=!0;30<=this.gd.count()&&this.Gk()};q.prototype.Gk=function(){this.lg&&(this.gd.count()===this.bb.length?this.reset():(Va(this.bb,this.gd),this.gd.clear(),this.lg=!1))};q.prototype.Qr=
function(){this.Cf||(this.bb.sort(h),this.Cf=!0)};q.prototype.reset=function(){this.bb.length=0;this.Cf=!0;this.gd.clear();this.lg=!1};q.prototype.dump=function(d){this.Gk();this.Qr();this.bb.length&&d.push(this.bb)};ea=q;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");cb=function(d){return 0>=d||11<=d?"source-over":z[d-1]};db=function(d,n,a){if(a)switch(d.nb=a.ONE,d.mb=a.ONE_MINUS_SRC_ALPHA,n){case 1:d.nb=a.ONE;
d.mb=a.ONE;break;case 3:d.nb=a.ONE;d.mb=a.ZERO;break;case 4:d.nb=a.ONE_MINUS_DST_ALPHA;d.mb=a.ONE;break;case 5:d.nb=a.DST_ALPHA;d.mb=a.ZERO;break;case 6:d.nb=a.ZERO;d.mb=a.SRC_ALPHA;break;case 7:d.nb=a.ONE_MINUS_DST_ALPHA;d.mb=a.ZERO;break;case 8:d.nb=a.ZERO;d.mb=a.ONE_MINUS_SRC_ALPHA;break;case 9:d.nb=a.DST_ALPHA;d.mb=a.ONE_MINUS_SRC_ALPHA;break;case 10:d.nb=a.ONE_MINUS_DST_ALPHA,d.mb=a.SRC_ALPHA}};eb=function(d){return Math.round(1E6*d)/1E6};fb=function(d,n){return"string"!==typeof d||"string"!==
typeof n||d.length!==n.length?!1:d===n?!0:d.toLowerCase()===n.toLowerCase()};gb=function(d){d=d.target;return!d||d===document||d===window||document&&document.body&&d===document.body||fb(d.tagName,"canvas")?!0:!1}})();var Zb="undefined"!==typeof Float32Array?Float32Array:Array;function $b(f){var p=new Zb(3);f&&(p[0]=f[0],p[1]=f[1],p[2]=f[2]);return p}
function ac(f){var p=new Zb(16);f&&(p[0]=f[0],p[1]=f[1],p[2]=f[2],p[3]=f[3],p[4]=f[4],p[5]=f[5],p[6]=f[6],p[7]=f[7],p[8]=f[8],p[9]=f[9],p[10]=f[10],p[11]=f[11],p[12]=f[12],p[13]=f[13],p[14]=f[14],p[15]=f[15]);return p}function bc(f,p){p[0]=f[0];p[1]=f[1];p[2]=f[2];p[3]=f[3];p[4]=f[4];p[5]=f[5];p[6]=f[6];p[7]=f[7];p[8]=f[8];p[9]=f[9];p[10]=f[10];p[11]=f[11];p[12]=f[12];p[13]=f[13];p[14]=f[14];p[15]=f[15]}
function cc(f,p){var b=p[0],k=p[1];p=p[2];f[0]*=b;f[1]*=b;f[2]*=b;f[3]*=b;f[4]*=k;f[5]*=k;f[6]*=k;f[7]*=k;f[8]*=p;f[9]*=p;f[10]*=p;f[11]*=p}
function dc(f,p,b,k){k||(k=ac());var r,e,a,c,t,w,g,l,q=f[0],h=f[1];f=f[2];e=b[0];a=b[1];r=b[2];b=p[1];w=p[2];q===p[0]&&h===b&&f===w?(f=k,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(b=q-p[0],w=h-p[1],g=f-p[2],l=1/Math.sqrt(b*b+w*w+g*g),b*=l,w*=l,g*=l,p=a*g-r*w,r=r*b-e*g,e=e*w-a*b,(l=Math.sqrt(p*p+r*r+e*e))?(l=1/l,p*=l,r*=l,e*=l):e=r=p=0,a=w*e-g*r,c=g*p-b*e,t=b*r-w*p,(l=Math.sqrt(a*a+c*c+t*t))?(l=1/l,a*=l,c*=l,t*=l):t=c=a=0,
k[0]=p,k[1]=a,k[2]=b,k[3]=0,k[4]=r,k[5]=c,k[6]=w,k[7]=0,k[8]=e,k[9]=t,k[10]=g,k[11]=0,k[12]=-(p*q+r*h+e*f),k[13]=-(a*q+c*h+t*f),k[14]=-(b*q+w*h+g*f),k[15]=1)}
(function(){function f(e){this.Oe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.cn=$b([0,0,100]);this.ko=$b([0,0,0]);this.Ip=$b([0,1,0]);this.Dm=$b([1,1,1]);this.ln=!0;this.yl=ac();this.Dc=ac();this.Wn=ac();this.tk=ac();this.m=e;this.Gn()}function p(e,a,c){this.m=e;this.Ah=a;this.name=c;this.Cc=e.getAttribLocation(a,"aPos");this.ie=e.getAttribLocation(a,"aTex");this.ho=e.getUniformLocation(a,"matP");this.Si=e.getUniformLocation(a,"matMV");this.If=
e.getUniformLocation(a,"opacity");this.jo=e.getUniformLocation(a,"samplerFront");this.$g=e.getUniformLocation(a,"samplerBack");this.We=e.getUniformLocation(a,"destStart");this.Ve=e.getUniformLocation(a,"destEnd");this.ul=e.getUniformLocation(a,"seconds");this.tl=e.getUniformLocation(a,"pixelWidth");this.sl=e.getUniformLocation(a,"pixelHeight");this.Zg=e.getUniformLocation(a,"layerScale");this.Yg=e.getUniformLocation(a,"layerAngle");this.bh=e.getUniformLocation(a,"viewOrigin");this.ah=e.getUniformLocation(a,
"scrollPos");this.Ys=!!(this.tl||this.sl||this.ul||this.$g||this.We||this.Ve||this.Zg||this.Yg||this.bh||this.ah);this.so=this.uo=-999;this.Ui=1;this.oo=this.no=0;this.qo=this.mo=this.lo=1;this.wo=this.vo=this.yo=this.xo=this.po=0;this.nl=[];this.ro=ac();this.If&&e.uniform1f(this.If,1);this.jo&&e.uniform1i(this.jo,0);this.$g&&e.uniform1i(this.$g,1);this.We&&e.uniform2f(this.We,0,0);this.Ve&&e.uniform2f(this.Ve,1,1);this.Zg&&e.uniform1f(this.Zg,1);this.Yg&&e.uniform1f(this.Yg,0);this.bh&&e.uniform2f(this.bh,
0,0);this.ah&&e.uniform2f(this.ah,0,0);this.Ke=!1}function b(e,a){this.type=e;this.q=a;this.m=a.m;this.zc=this.oc=this.No=0;this.ca=this.Uc=null;this.qp=[]}f.prototype.Gn=function(){var e=this.m,a;this.Xn=1;this.Se=this.Re=null;this.bi=1;e.clearColor(0,0,0,0);e.clear(e.COLOR_BUFFER_BIT);e.enable(e.BLEND);e.blendFunc(e.ONE,e.ONE_MINUS_SRC_ALPHA);e.disable(e.CULL_FACE);e.disable(e.DEPTH_TEST);this.Zn=e.ONE;this.Un=e.ONE_MINUS_SRC_ALPHA;this.Ol=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,this.Ol);this.Kh=
Array(4);this.Eh=Array(4);for(a=0;4>a;a++)this.Kh[a]=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.Kh[a]),this.Eh[a]=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.Eh[a]);this.td=0;this.bt=e.createBuffer();e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.bt);this.zm=new Float32Array(16E3);this.lm=new Float32Array(16E3);this.Zo=new Float32Array(32E3);for(var c=new Uint16Array(12E3),b=a=0;12E3>a;)c[a++]=b,c[a++]=b+1,c[a++]=b+2,c[a++]=b,c[a++]=b+2,c[a++]=b+3,b+=4;e.bufferData(e.ELEMENT_ARRAY_BUFFER,c,
e.STATIC_DRAW);this.Sf=this.nd=0;this.Ta=[];a=this.sk({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.Ta.push(a);a=this.sk({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.Ta.push(a);for(var k in ec)ec.hasOwnProperty(k)&&this.Ta.push(this.sk(ec[k],
"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}",k));e.activeTexture(e.TEXTURE0);e.bindTexture(e.TEXTURE_2D,null);this.sd=[];this.Zc=0;this.Xb=this.Eb=!1;this.gn=this.Og=-1;this.vg=null;this.ps=e.createFramebuffer();this.gp=null;this.se=$b([0,0,0]);e=e.getParameter(e.ALIASED_POINT_SIZE_RANGE);this.yt=e[0];this.zl=
e[1];2048<this.zl&&(this.zl=2048);this.kd(0)};p.prototype.tm=function(e){var a=this.ro;if(a[0]!==e[0]||a[1]!==e[1]||a[2]!==e[2]||a[3]!==e[3]||a[4]!==e[4]||a[5]!==e[5]||a[6]!==e[6]||a[7]!==e[7]||a[8]!==e[8]||a[9]!==e[9]||a[10]!==e[10]||a[11]!==e[11]||a[12]!==e[12]||a[13]!==e[13]||a[14]!==e[14]||a[15]!==e[15])bc(e,this.ro),this.m.uniformMatrix4fv(this.Si,!1,e)};f.prototype.sk=function(e,a,c){var b=this.m,k=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(k,e.src);b.compileShader(k);if(!b.getShaderParameter(k,
b.COMPILE_STATUS))return b.deleteShader(k),null;var g=b.createShader(b.VERTEX_SHADER);b.shaderSource(g,a);b.compileShader(g);if(!b.getShaderParameter(g,b.COMPILE_STATUS))return b.deleteShader(k),b.deleteShader(g),null;a=b.createProgram();b.attachShader(a,k);b.attachShader(a,g);b.linkProgram(a);if(!b.getProgramParameter(a,b.LINK_STATUS))return b.deleteShader(k),b.deleteShader(g),b.deleteProgram(a),null;b.useProgram(a);b.deleteShader(k);b.deleteShader(g);c=new p(b,a,c);c.Ck=e.Ck||0;c.Dk=e.Dk||0;c.en=
!!e.en;c.Wm=!!e.Wm;c.J=e.J||[];e=0;for(k=c.J.length;e<k;e++)c.J[e][1]=b.getUniformLocation(a,c.J[e][0]),c.nl.push(0),b.uniform1f(c.J[e][1],0);return c};f.prototype.Sk=function(e){var a,c;a=0;for(c=this.Ta.length;a<c;a++)if(this.Ta[a].name===e)return a;return-1};f.prototype.cp=function(e,a,c){var b=this.Dc,k=this.yl,g=[0,0,0,0,0,0,0,0];g[0]=b[0]*e+b[4]*a+b[12];g[1]=b[1]*e+b[5]*a+b[13];g[2]=b[2]*e+b[6]*a+b[14];g[3]=b[3]*e+b[7]*a+b[15];g[4]=k[0]*g[0]+k[4]*g[1]+k[8]*g[2]+k[12]*g[3];g[5]=k[1]*g[0]+k[5]*
g[1]+k[9]*g[2]+k[13]*g[3];g[6]=k[2]*g[0]+k[6]*g[1]+k[10]*g[2]+k[14]*g[3];g[7]=-g[2];0!==g[7]&&(g[7]=1/g[7],g[4]*=g[7],g[5]*=g[7],g[6]*=g[7],c[0]=(.5*g[4]+.5)*this.width,c[1]=(.5*g[5]+.5)*this.height)};f.prototype.Wf=function(e,a,c){if(this.width!==e||this.height!==a||c){this.be();this.width=e;this.height=a;this.m.viewport(0,0,e,a);a=e/a;var b=this.yl,k;k=1*Math.tan(45*Math.PI/360);a*=k;e=-a;c=-k;b||(b=ac());var g=a-e,l=k-c;b[0]=2/g;b[1]=0;b[2]=0;b[3]=0;b[4]=0;b[5]=2/l;b[6]=0;b[7]=0;b[8]=(a+e)/g;b[9]=
(k+c)/l;b[10]=-1001/999;b[11]=-1;b[12]=0;b[13]=0;b[14]=-2E3/999;b[15]=0;dc(this.cn,this.ko,this.Ip,this.Dc);e=[0,0];a=[0,0];this.cp(0,0,e);this.cp(1,1,a);this.Dm[0]=1/(a[0]-e[0]);this.Dm[1]=-1/(a[1]-e[1]);e=0;for(a=this.Ta.length;e<a;e++)c=this.Ta[e],c.Ke=!1,c.ho&&(this.m.useProgram(c.Ah),this.m.uniformMatrix4fv(c.ho,!1,this.yl));this.m.useProgram(this.Ta[this.Og].Ah);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.Se=this.Re=null}};f.prototype.me=function(){dc(this.cn,this.ko,this.Ip,this.Dc);cc(this.Dc,this.Dm)};f.prototype.translate=function(e,a){if(0!==e||0!==a){this.se[0]=e;this.se[1]=a;this.se[2]=0;var c=this.Dc,b=this.se,k=b[0],g=b[1],b=b[2];c[12]=c[0]*k+c[4]*g+c[8]*b+c[12];c[13]=c[1]*k+c[5]*g+c[9]*b+c[13];c[14]=c[2]*k+c[6]*g+c[10]*b+c[14];c[15]=c[3]*k+c[7]*g+c[11]*b+c[15]}};f.prototype.scale=function(e,a){if(1!==e||1!==a)this.se[0]=e,this.se[1]=a,this.se[2]=1,cc(this.Dc,this.se)};f.prototype.hp=
function(e){if(0!==e){var a=this.Dc,c,b=Math.sin(e);e=Math.cos(e);var k=a[0],g=a[1],l=a[2],q=a[3],h=a[4],s=a[5],r=a[6],m=a[7];c?a!==c&&(c[8]=a[8],c[9]=a[9],c[10]=a[10],c[11]=a[11],c[12]=a[12],c[13]=a[13],c[14]=a[14],c[15]=a[15]):c=a;c[0]=k*e+h*b;c[1]=g*e+s*b;c[2]=l*e+r*b;c[3]=q*e+m*b;c[4]=k*-b+h*e;c[5]=g*-b+s*e;c[6]=l*-b+r*e;c[7]=q*-b+m*e}};f.prototype.ue=function(){for(var e=!1,a=0;16>a;a++)if(this.Wn[a]!==this.Dc[a]){e=!0;break}e&&(e=this.Ec(),e.type=5,e.ca?bc(this.Dc,e.ca):e.ca=ac(this.Dc),bc(this.Dc,
this.Wn),this.Xb=this.Eb=!1)};b.prototype.Gr=function(){this.m.bindTexture(this.m.TEXTURE_2D,this.Uc)};b.prototype.Hr=function(){var e=this.m;e.activeTexture(e.TEXTURE1);e.bindTexture(e.TEXTURE_2D,this.Uc);e.activeTexture(e.TEXTURE0)};b.prototype.Dr=function(){var e=this.No,a=this.q;a.bi=e;a=a.vg;a.If&&a.Ui!==e&&(a.Ui=e,this.m.uniform1f(a.If,e))};b.prototype.Ar=function(){this.m.drawElements(this.m.TRIANGLES,this.zc,this.m.UNSIGNED_SHORT,2*this.oc)};b.prototype.Cr=function(){this.m.blendFunc(this.oc,
this.zc)};b.prototype.Ir=function(){var e,a,c,b=this.q.Ta,k=this.q.gn;e=0;for(a=b.length;e<a;e++)c=b[e],e===k&&c.Si?(c.tm(this.ca),c.Ke=!0):c.Ke=!1;bc(this.ca,this.q.tk)};b.prototype.Br=function(){var e=this.m,a=this.q;this.Uc?(a.Se===this.Uc&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,null),a.Se=null,e.activeTexture(e.TEXTURE0)),e.bindFramebuffer(e.FRAMEBUFFER,a.ps),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.Uc,0)):(e.framebufferTexture2D(e.FRAMEBUFFER,
e.COLOR_ATTACHMENT0,e.TEXTURE_2D,null,0),e.bindFramebuffer(e.FRAMEBUFFER,null))};b.prototype.ur=function(){var e=this.m;0===this.oc?(e.clearColor(this.ca[0],this.ca[1],this.ca[2],this.ca[3]),e.clear(e.COLOR_BUFFER_BIT)):(e.enable(e.SCISSOR_TEST),e.scissor(this.ca[0],this.ca[1],this.ca[2],this.ca[3]),e.clearColor(0,0,0,0),e.clear(this.m.COLOR_BUFFER_BIT),e.disable(e.SCISSOR_TEST))};b.prototype.wr=function(){var e=this.m,a=this.q,c=a.Ta[1];e.useProgram(c.Ah);!c.Ke&&c.Si&&(c.tm(a.tk),c.Ke=!0);e.enableVertexAttribArray(c.Cc);
e.bindBuffer(e.ARRAY_BUFFER,a.Ol);e.vertexAttribPointer(c.Cc,4,e.FLOAT,!1,0,0);e.drawArrays(e.POINTS,this.oc/4,this.zc);c=a.vg;e.useProgram(c.Ah);0<=c.Cc&&(e.enableVertexAttribArray(c.Cc),e.bindBuffer(e.ARRAY_BUFFER,a.Kh[a.td]),e.vertexAttribPointer(c.Cc,2,e.FLOAT,!1,0,0));0<=c.ie&&(e.enableVertexAttribArray(c.ie),e.bindBuffer(e.ARRAY_BUFFER,a.Eh[a.td]),e.vertexAttribPointer(c.ie,2,e.FLOAT,!1,0,0))};b.prototype.Er=function(){var e=this.m,a=this.q,c=a.Ta[this.oc];a.gn=this.oc;a.vg=c;e.useProgram(c.Ah);
!c.Ke&&c.Si&&(c.tm(a.tk),c.Ke=!0);c.If&&c.Ui!==a.bi&&(c.Ui=a.bi,e.uniform1f(c.If,a.bi));0<=c.Cc&&(e.enableVertexAttribArray(c.Cc),e.bindBuffer(e.ARRAY_BUFFER,a.Kh[a.td]),e.vertexAttribPointer(c.Cc,2,e.FLOAT,!1,0,0));0<=c.ie&&(e.enableVertexAttribArray(c.ie),e.bindBuffer(e.ARRAY_BUFFER,a.Eh[a.td]),e.vertexAttribPointer(c.ie,2,e.FLOAT,!1,0,0))};b.prototype.Fr=function(){var e,a,c=this.q.vg,b=this.m;e=this.ca;c.$g&&this.q.Se!==this.Uc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,this.Uc),
this.q.Se=this.Uc,b.activeTexture(b.TEXTURE0));var k=e[0];c.tl&&k!==c.uo&&(c.uo=k,b.uniform1f(c.tl,k));k=e[1];c.sl&&k!==c.so&&(c.so=k,b.uniform1f(c.sl,k));k=e[2];a=e[3];!c.We||k===c.no&&a===c.oo||(c.no=k,c.oo=a,b.uniform2f(c.We,k,a));k=e[4];a=e[5];!c.Ve||k===c.lo&&a===c.mo||(c.lo=k,c.mo=k,b.uniform2f(c.Ve,k,a));k=e[6];c.Zg&&k!==c.qo&&(c.qo=k,b.uniform1f(c.Zg,k));k=e[7];c.Yg&&k!==c.po&&(c.po=k,b.uniform1f(c.Yg,k));k=e[8];a=e[9];!c.bh||k===c.xo&&a===c.yo||(c.xo=k,c.yo=a,b.uniform2f(c.bh,k,a));k=e[10];
a=e[11];!c.ah||k===c.vo&&a===c.wo||(c.vo=k,c.wo=a,b.uniform2f(c.ah,k,a));c.ul&&b.uniform1f(c.ul,V()/1E3);if(c.J.length)for(e=0,a=c.J.length;e<a;e++)k=this.qp[e],k!==c.nl[e]&&(c.nl[e]=k,b.uniform1f(c.J[e][1],k))};f.prototype.Ec=function(){this.Zc===this.sd.length&&this.sd.push(new b(0,this));return this.sd[this.Zc++]};f.prototype.be=function(){if(0!==this.Zc&&!this.m.isContextLost()){var b=this.m;0<this.Sf&&(b.bindBuffer(b.ARRAY_BUFFER,this.Ol),b.bufferData(b.ARRAY_BUFFER,this.Zo.subarray(0,this.Sf),
b.STREAM_DRAW),a&&0<=a.Cc&&"<point>"===a.name&&b.vertexAttribPointer(a.Cc,4,b.FLOAT,!1,0,0));if(0<this.nd){var a=this.vg;b.bindBuffer(b.ARRAY_BUFFER,this.Kh[this.td]);b.bufferData(b.ARRAY_BUFFER,this.zm.subarray(0,this.nd),b.STREAM_DRAW);a&&0<=a.Cc&&"<point>"!==a.name&&b.vertexAttribPointer(a.Cc,2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.Eh[this.td]);b.bufferData(b.ARRAY_BUFFER,this.lm.subarray(0,this.nd),b.STREAM_DRAW);a&&0<=a.ie&&"<point>"!==a.name&&b.vertexAttribPointer(a.ie,2,b.FLOAT,
!1,0,0)}for(var c,b=0,a=this.Zc;b<a;b++)switch(c=this.sd[b],c.type){case 1:c.Ar();break;case 2:c.Gr();break;case 3:c.Dr();break;case 4:c.Cr();break;case 5:c.Ir();break;case 6:c.Br();break;case 7:c.ur();break;case 8:c.wr();break;case 9:c.Er();break;case 10:c.Fr();break;case 11:c.Hr()}this.Sf=this.nd=this.Zc=0;this.Xb=this.Eb=!1;this.td++;4<=this.td&&(this.td=0)}};f.prototype.$e=function(b){if(b!==this.Xn){var a=this.Ec();a.type=3;this.Xn=a.No=b;this.Xb=this.Eb=!1}};f.prototype.cc=function(b){if(b!==
this.Re){var a=this.Ec();a.type=2;this.Re=a.Uc=b;this.Xb=this.Eb=!1}};f.prototype.ne=function(b,a){if(b!==this.Zn||a!==this.Un){var c=this.Ec();c.type=4;c.oc=b;c.zc=a;this.Zn=b;this.Un=a;this.Xb=this.Eb=!1}};f.prototype.lp=function(){this.ne(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};f.prototype.th=function(b,a,c,k,r,g,l,q){15992<=this.nd&&this.be();var h=this.nd,s=this.zm,u=this.lm;if(this.Eb)this.sd[this.Zc-1].zc+=6;else{var m=this.Ec();m.type=1;m.oc=h/4*3;m.zc=6;this.Eb=!0;this.Xb=!1}s[h]=b;u[h++]=
0;s[h]=a;u[h++]=0;s[h]=c;u[h++]=1;s[h]=k;u[h++]=0;s[h]=r;u[h++]=1;s[h]=g;u[h++]=1;s[h]=l;u[h++]=0;s[h]=q;u[h++]=1;this.nd=h};f.prototype.Kd=function(b,a,c,k,r,g,l,q,h){15992<=this.nd&&this.be();var s=this.nd,u=this.zm,m=this.lm;if(this.Eb)this.sd[this.Zc-1].zc+=6;else{var A=this.Ec();A.type=1;A.oc=s/4*3;A.zc=6;this.Eb=!0;this.Xb=!1}var A=h.left,d=h.top,x=h.right;h=h.bottom;u[s]=b;m[s++]=A;u[s]=a;m[s++]=d;u[s]=c;m[s++]=x;u[s]=k;m[s++]=d;u[s]=r;m[s++]=x;u[s]=g;m[s++]=h;u[s]=l;m[s++]=A;u[s]=q;m[s++]=
h;this.nd=s};f.prototype.Pt=function(b,a,c,k){7996<=this.Sf&&this.be();var r=this.Sf,g=this.Zo;if(this.Xb)this.sd[this.Zc-1].zc++;else{var l=this.Ec();l.type=8;l.oc=r;l.zc=1;this.Xb=!0;this.Eb=!1}g[r++]=b;g[r++]=a;g[r++]=c;g[r++]=k;this.Sf=r};f.prototype.kd=function(b){if(this.Og!==b){if(!this.Ta[b]){if(0===this.Og)return;b=0}var a=this.Ec();a.type=9;this.Og=a.oc=b;this.Xb=this.Eb=!1}};f.prototype.rh=function(b){b=this.Ta[b];return!(!b.We&&!b.Ve)};f.prototype.Ql=function(b){b=this.Ta[b];return!!(b.We||
b.Ve||b.en)};f.prototype.Wt=function(b){b=this.Ta[b];return 0!==b.Ck||0!==b.Dk};f.prototype.Fs=function(b){return this.Ta[b].Ck};f.prototype.Gs=function(b){return this.Ta[b].Dk};f.prototype.Hs=function(b,a){return this.Ta[b].J[a][2]};f.prototype.lj=function(b){return this.Ta[b].Wm};f.prototype.Vf=function(b,a,c,k,r,g,l,q,h,s,u,m,A,d){var x=this.Ta[this.Og],n,B;if(x.Ys||d.length){n=this.Ec();n.type=10;n.ca?bc(this.Dc,n.ca):n.ca=ac();B=n.ca;B[0]=a;B[1]=c;B[2]=k;B[3]=r;B[4]=g;B[5]=l;B[6]=q;B[7]=h;B[8]=
s;B[9]=u;B[10]=m;B[11]=A;n.Uc=x.$g?b:null;if(d.length)for(c=n.qp,c.length=d.length,b=0,a=d.length;b<a;b++)c[b]=d[b];this.Xb=this.Eb=!1}};f.prototype.clear=function(b,a,c,k){var r=this.Ec();r.type=7;r.oc=0;r.ca||(r.ca=ac());r.ca[0]=b;r.ca[1]=a;r.ca[2]=c;r.ca[3]=k;this.Xb=this.Eb=!1};f.prototype.clearRect=function(b,a,c,k){if(!(0>c||0>k)){var r=this.Ec();r.type=7;r.oc=1;r.ca||(r.ca=ac());r.ca[0]=b;r.ca[1]=a;r.ca[2]=c;r.ca[3]=k;this.Xb=this.Eb=!1}};f.prototype.Vt=function(){this.be();this.m.flush()};
var k=[],r={};f.prototype.mr=function(){k.length=0;r={}};f.prototype.Gf=function(b,a,c,f){a=!!a;c=!!c;var p=b.src+","+a+","+c+(a?",undefined":""),g=null;if("undefined"!==typeof b.src&&r.hasOwnProperty(p))return g=r[p],g.Th++,g;this.be();var l=this.m,q=ia(b.width)&&ia(b.height),g=l.createTexture();l.bindTexture(l.TEXTURE_2D,g);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var h=l.RGBA,s=l.RGBA,u=l.UNSIGNED_BYTE;if(f&&!this.Oe)switch(f){case 1:s=h=l.RGB;break;case 2:u=l.UNSIGNED_SHORT_4_4_4_4;
break;case 3:u=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:s=h=l.RGB,u=l.UNSIGNED_SHORT_5_6_5}if(!q&&a){f=document.createElement("canvas");f.width=ja(b.width);f.height=ja(b.height);var m=f.getContext("2d");m.webkitImageSmoothingEnabled=c;m.mozImageSmoothingEnabled=c;m.msImageSmoothingEnabled=c;m.imageSmoothingEnabled=c;m.drawImage(b,0,0,b.width,b.height,0,0,f.width,f.height);l.texImage2D(l.TEXTURE_2D,0,h,s,u,f)}else l.texImage2D(l.TEXTURE_2D,0,h,s,u,b);a?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),
l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));c?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),q&&this.ln?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,
l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.Re=null;g.qg=b.width;g.pg=b.height;g.Th=1;g.an=p;k.push(g);return r[p]=g};f.prototype.$d=function(b,a,c){var r;this.be();var f=this.m;this.Oe&&(r=!1);var g=f.createTexture();f.bindTexture(f.TEXTURE_2D,g);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,b,a,0,f.RGBA,r?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.Re=null;g.qg=b;g.pg=a;k.push(g);return g};f.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.Th&&1<b.Th?b.Th--:(this.be(),b===this.Re&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.Re=null),b===this.Se&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.Se=
null),Ba(k,b),"undefined"!==typeof b.an&&delete r[b.an],this.m.deleteTexture(b)))};f.prototype.jd=function(b){if(b!==this.gp){var a=this.Ec();a.type=6;this.gp=a.Uc=b;this.Xb=this.Eb=!1}};hb=f})();
(function(){function f(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function p(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function b(d){if(d&&(d.getContext||d.dc)&&!d.c2runtime){d.c2runtime=this;var a=this;this.Ac=(this.Jg=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.hb=!!d.dc;this.wf="undefined"!==typeof window.AppMobi||this.hb;this.kc=!!window.c2cocoonjs;this.Lc=!!window.c2ejecta;this.kc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Lc&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",
function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.O=this.hb||this.kc||this.Lc;this.Oe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.On=/tizen/i.test(navigator.userAgent);this.Ci=/android/i.test(navigator.userAgent)&&!this.On&&!this.Oe;this.ll=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Oe;this.Sn=/ipad/i.test(navigator.userAgent);this.Hi=this.ll||this.Sn||this.Lc;this.ot=this.ll&&/os\s6/i.test(navigator.userAgent);this.Ig=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Oe;this.Ln=/amazonwebappplatform/i.test(navigator.userAgent);this.it=/firefox/i.test(navigator.userAgent);this.Nn=/safari/i.test(navigator.userAgent)&&!this.Ig&&!this.Oe;this.lt=/windows/i.test(navigator.userAgent);this.ge="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);
this.Qn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.nt=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.yf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.jl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Pn=this.Qn||this.nt||this.jl;this.gt=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Di=this.Ci&&!this.Ig&&!this.Jg&&!this.it&&!this.Ln&&
!this.O;this.devicePixelRatio=1;this.dd=this.Ac||this.Jg||this.wf||this.kc||this.Ci||this.Hi||this.yf||this.jl||this.gt||this.On||this.Lc;this.dd||(this.dd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.ge||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.ge=!0);this.ht="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=
d;this.Wh=document.getElementById("c2canvasdiv");this.ga=this.q=this.m=null;this.Jk="";this.li=!1;this.Lo=this.Mo=0;this.canvas.oncontextmenu=function(d){d.preventDefault&&d.preventDefault();return!1};this.canvas.onselectstart=function(d){d.preventDefault&&d.preventDefault();return!1};this.hb&&(window.c2runtime=this);this.ge&&(window.ondragover=function(d){d.preventDefault();return!1},window.ondrop=function(d){d.preventDefault();return!1},require("nw.gui").App.clearCache());this.Di&&"undefined"!==
typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=d.width;this.height=d.height;this.N=this.width;this.M=this.height;this.$h=this.width;this.Zh=this.height;this.Qg=window.innerWidth;this.Pg=window.innerHeight;this.rs=!1;this.ma=!0;this.Lg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Ga=[];this.rl={};this.Zb=[];this.Bk={};this.yd=[];this.jg=[];this.Mj=[];this.bk=[];this.br=[];this.Ce={};this.gl=this.fe=!1;this.Fd=0;
this.il=!1;this.Jc=[];this.Gd=this.sb=this.Vg=this.rj="";this.Ch=this.tp=!1;this.qk=this.dh=this.xd=this.Ee=0;this.dg=1;this.lc=new Ya;this.od=new Ya;this.Li=0;this.Ao=!0;this.Xi=this.ni=this.ii=this.cg=this.Ue=this.Ik=0;this.ze=null;this.xk=[];this.Ak=[];this.hi=-1;this.wl=[[]];this.pm=this.Ti=0;this.Sl(null);this.Go=this.gh=0;this.ql=!0;this.xg=0;this.Dh=[];this.Ij=this.nj=-1;this.Df=!0;this.Ri=0;this.Kg=!1;this.pu=0;this.jf=null;this.Ws=!1;this.ol=0;this.ba=this.tf=this.Tl=!1;this.Ko=new ca;this.El=
new ca;this.Fl=new ca;this.Zt=[];this.Tc=new $a([]);this.km=new $a([]);this.Wd=[];this.vi={};this.lf={};this.hf={};this.ig={};this.Ym={};this.fo=this.Ni=this.Yb=this.mc=this.eo=this.Mi=this.da=null;this.gg=this.kl=!1;this.Kk=[null,null];this.Ie=0;this.Fk="";this.je={};this.wj=this.Hf=null;this.Wi=[];this.$t()}}function k(d){d.target.result.createObjectStore("saves",{keyPath:"slot"})}function r(d,a,n,b){var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=k;g.onerror=b;g.onsuccess=function(g){g=
g.target.result;g.onerror=b;g.transaction(["saves"],"readwrite").objectStore("saves").put({slot:d,data:a}).onsuccess=n}}function e(d,a,n){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=k;b.onerror=n;b.onsuccess=function(b){b=b.target.result;b.onerror=n;var g=b.transaction(["saves"]).objectStore("saves").get(d);g.onsuccess=function(){g.result?a(g.result.data):a(null)}}}function a(){L("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function c(d){var a,n={};for(a in d)!d.hasOwnProperty(a)||d[a]instanceof ca||d[a]&&"undefined"!==typeof d[a].Iv||(n[a]=d[a]);return n}b.prototype.$t=function(){var d=this,a;a=this.yf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var n="data.js";if(this.Qn||this.yf||this.jl)n="data.json";a.open("GET",n,!0);var b=!1;if(!this.O&&"response"in a&&"responseType"in a)try{a.responseType="json",b="json"===a.responseType}catch(g){b=!1}if(!b&&
"responseType"in a)try{a.responseType="text"}catch(c){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(m){}this.yf?a.onreadystatechange=function(){4===a.readyState&&d.Pi(JSON.parse(a.responseText))}:(a.onload=function(){if(b)d.Pi(a.response);else if(d.Lc){var n=a.responseText,n=n.substr(n.indexOf("{"));d.Pi(JSON.parse(n))}else d.Pi(JSON.parse(a.responseText))},a.onerror=function(d){fa("Error requesting "+n+":");fa(d)});a.send()};b.prototype.ct=function(){var d=
this,a,n,b,g,c,m,e,h,l;this.devicePixelRatio=(this.Pe=(!this.O||this.Lc)&&this.Au&&!this.Di)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.kb();n=!(!this.rs&&(!this.dk||this.ge||this.Pn||this.yf||this.Jg||this.Ac||this.Ln));0<this.pb&&this.setSize(f(),p(),!0);try{this.Or&&(this.kc||this.Lc||!this.O)&&(a={alpha:n,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.m=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",
a))}catch(q){}if(this.m){this.O||(this.ib=document.createElement("canvas"),jQuery(this.ib).appendTo(this.canvas.parentNode),this.ib.oncontextmenu=function(){return!1},this.ib.onselectstart=function(){return!1},this.ib.width=this.$h,this.ib.height=this.Zh,jQuery(this.ib).css({width:this.$h+"px",height:this.Zh+"px"}),this.bp(),this.Nl=this.ib.getContext("2d"));this.q=new hb(this.m,this.dd);this.q.Wf(this.canvas.width,this.canvas.height);this.q.ln=0!==this.Jr;this.ga=null;this.canvas.addEventListener("webglcontextlost",
function(a){a.preventDefault();d.Bt();L("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){d.q.Gn();d.q.Wf(d.q.width,d.q.height,!0);d.mc=null;d.Yb=null;d.Kk[0]=null;d.Kk[1]=null;d.Ct();d.ma=!0;L("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(n=this.n.length;a<n;a++)for(c=this.n[a],b=0,g=c.I.length;b<g;b++)e=c.I[b],e.jb=this.q.Sk(e.id),this.gg=this.gg||this.q.rh(e.jb);a=0;for(n=this.Zb.length;a<
n;a++){h=this.Zb[a];b=0;for(g=h.I.length;b<g;b++)e=h.I[b],e.jb=this.q.Sk(e.id);b=0;for(g=h.L.length;b<g;b++)for(l=h.L[b],c=0,m=l.I.length;c<m;c++)e=l.I[c],e.jb=this.q.Sk(e.id),this.gg=this.gg||this.q.rh(e.jb)}}else{if(0<this.pb&&this.hb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ga=AppMobi.canvas.getContext("2d");try{this.ga.samplingMode=this.V?"smooth":"sharp",this.ga.globalScale=1,this.ga.HTML5CompatibilityMode=!0,this.ga.imageSmoothingEnabled=
this.V}catch(k){}0!==this.width&&0!==this.height&&(this.ga.width=this.width,this.ga.height=this.height)}this.ga||(a=this.kc?{antialias:!!this.V,alpha:n}:{alpha:n},this.ga=this.canvas.getContext("2d",a),this.ga.webkitImageSmoothingEnabled=this.V,this.ga.mozImageSmoothingEnabled=this.V,this.ga.msImageSmoothingEnabled=this.V,this.ga.imageSmoothingEnabled=this.V);this.Nl=this.ib=null}this.Gj=function(){d.Ua(!1)};window==window.top||this.O||this.Pn||this.yf||(document.addEventListener("mousedown",function(){window.focus()},
!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.kc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(L("Reloading for continuous preview"),this.Vg="__c2_continuouspreview",this.Ch=!0),this.Nt&&!this.dd&&(jQuery(window).focus(function(){d.setSuspended(!1)}),jQuery(window).blur(function(){d.setSuspended(!0)})));this.O||(a=function(d){if(gb(d)&&document.activeElement&&
document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.pb&&this.Pe&&1<this.devicePixelRatio&&this.setSize(this.Pa,this.Oa,!0);this.Ep();this.Us();this.go();this.ya={}};
b.prototype.setSize=function(d,a,n){var b=0,g=0,c=0,m=0,m=0,e=this.ot&&this.Nn&&!navigator.standalone&&!this.O&&!this.Ac;e&&(a+=60);if(this.Qg!==d||this.Pg!==a||n){this.Qg=d;this.Pg=a;var h=this.pb,l=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Kg)&&!this.Ac;if(l||0!==this.pb||n)l&&0<this.Ie&&(h=this.Ie),n=this.devicePixelRatio,4<=h?(c=this.Pa/this.Oa,d/a>c?(c*=a,5===h?(m=c*n/this.Pa,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),c=
this.Pa*m/n,m=this.Oa*m/n,b=(d-c)/2,g=(a-m)/2,d=c,a=m):(b=(d-c)/2,d=c)):(m=d/c,5===h?(m=m*n/this.Oa,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),c=this.Pa*m/n,m=this.Oa*m/n,b=(d-c)/2,g=(a-m)/2,d=c):g=(a-m)/2,a=m),l&&!this.ge&&(g=b=0)):this.ge&&this.Kg&&0===this.sn&&(b=Math.floor((d-this.Pa)/2),g=Math.floor((a-this.Oa)/2),d=this.Pa,a=this.Oa),2>h&&(this.ng=n),this.Pe&&this.Sn&&1<n&&(1024<=d&&(d=1023),1024<=a&&(a=1023)),this.$h=Math.round(d),this.Zh=Math.round(a),this.width=Math.round(d*n),this.height=
Math.round(a*n),this.ma=!0,this.Pp?(this.N=this.width,this.M=this.height,this.xc=!0):this.width<this.Pa&&this.height<this.Oa||1===h?(this.N=this.width,this.M=this.height,this.xc=!0):(this.N=this.Pa,this.M=this.Oa,this.xc=!1,2===h?(c=this.Pa/this.Oa,h=this.Qg/this.Pg,h<c?this.N=this.M*h:h>c&&(this.M=this.N/h)):3===h&&(c=this.Pa/this.Oa,h=this.Qg/this.Pg,h>c?this.N=this.M*h:h<c&&(this.M=this.N/h))),this.Wh&&!this.O&&(jQuery(this.Wh).css({width:Math.round(d)+"px",height:Math.round(a)+"px","margin-left":Math.floor(b)+
"px","margin-top":Math.floor(g)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(d)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(d*n),this.canvas.height=Math.round(a*n),this.Lc?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(g)+"px",this.canvas.style.width=Math.round(d)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Pe&&!this.O&&jQuery(this.canvas).css({width:Math.round(d)+"px",height:Math.round(a)+
"px"})),this.ib&&(this.ib.width=Math.round(d),this.ib.height=Math.round(a),jQuery(this.ib).css({width:Math.round(d)+"px",height:Math.round(a)+"px"})),this.q&&this.q.Wf(Math.round(d*n),Math.round(a*n)),this.hb&&this.ga&&(this.ga.width=Math.round(d),this.ga.height=Math.round(a)),this.ga&&(this.ga.webkitImageSmoothingEnabled=this.V,this.ga.mozImageSmoothingEnabled=this.V,this.ga.msImageSmoothingEnabled=this.V,this.ga.imageSmoothingEnabled=this.V),this.Ep(),this.O||!e&&!this.ll||window.setTimeout(function(){window.scrollTo(0,
1)},100)}};b.prototype.Ep=function(){if(this.er&&0!==this.Ll){var d="portrait";2===this.Ll&&(d="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(d):screen.lockOrientation?screen.lockOrientation(d):screen.webkitLockOrientation?screen.webkitLockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation&&screen.msLockOrientation(d)}};b.prototype.Bt=function(){this.q.mr();this.kl=!0;var d,a,n;d=0;for(a=this.n.length;d<a;d++)n=this.n[d],
n.Yi&&n.Yi()};b.prototype.Ct=function(){this.kl=!1;var d,a,n;d=0;for(a=this.n.length;d<a;d++)n=this.n[d],n.Zi&&n.Zi()};b.prototype.bp=function(){if(!this.O){var d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Kg)&&!this.Ac?jQuery(this.canvas).offset():jQuery(this.canvas).position();d.position="absolute";jQuery(this.ib).css(d)}};var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||
window.oCancelAnimationFrame;b.prototype.setSuspended=function(d){var a;if(d&&!this.Lg)for(L("[Construct 2] Suspending"),this.Lg=!0,-1!==this.nj&&t&&t(this.nj),-1!==this.Ij&&clearTimeout(this.Ij),d=0,a=this.Dh.length;d<a;d++)this.Dh[d](!0);else if(!d&&this.Lg){L("[Construct 2] Resuming");this.Lg=!1;this.Li=V();this.Ue=V();d=this.dh=this.ni=0;for(a=this.Dh.length;d<a;d++)this.Dh[d](!1);this.Ua(!1)}};b.prototype.Zq=function(d){this.Dh.push(d)};b.prototype.Td=function(d){return this.Wi[d]};b.prototype.Pi=
function(d){d&&d.project||fa("Project model unavailable");d=d.project;this.name=d[0];this.rn=d[1];this.pb=d[12];this.sn=d[12];this.Pa=d[10];this.Oa=d[11];this.Uo=this.Pa/2;this.Vo=this.Oa/2;this.O&&!this.Lc&&(4<=d[12]||0===d[12])&&(L("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.sn=this.pb=3);this.xm=d[18];this.Xg=d[19];0===this.Xg&&(this.Hf=new Image,this.Hf.src="loading-logo.png");this.gh=d[21];this.Wi=fc();this.ld=new Y(this);
var a,n,b,g,c,m,h,e,l;a=0;for(n=d[2].length;a<n;a++)h=d[2][a],b=this.Td(h[0]),ib(h,b.prototype),l=new b(this),l.uj=h[1],l.he=h[2],l.Eo=h[9],l.ja&&l.ja(),this.plugins.push(l);this.Wi=fc();a=0;for(n=d[3].length;a<n;a++){h=d[3][a];c=this.Td(h[1]);l=null;b=0;for(g=this.plugins.length;b<g;b++)if(this.plugins[b]instanceof c){l=this.plugins[b];break}var q=new l.Xa(l);q.name=h[0];q.C=h[2];q.fl=h[3].slice(0);q.Cu=h[3].length;q.fr=h[4];q.ts=h[5];q.T=h[11];q.C?(q.Vi=[],q.zd=this.xg++,q.ta=null):(q.Vi=null,q.zd=
-1,q.ta=[]);q.ji=null;q.of=null;q.nn=null;q.Mc=!1;q.Vb=null;h[6]?(q.Dj=h[6][0],q.Ej=h[6][1],q.Fh=h[6][2]):(q.Dj=null,q.Ej=0,q.Fh=0);q.Tb=h[7]?h[7]:null;q.index=a;q.c=[];q.di=[];q.qe=[new jb(q)];q.wd=0;q.ad=null;q.rr=0;q.ag=!0;q.Oj=kb;q.ys=lb;q.Ds=mb;q.ha=nb;q.sh=ob;q.Rl=pb;q.Tf=rb;q.pi=sb;q.Mk=tb;q.Pk=ub;q.rd=vb;q.xn=wb;q.rg=new ab(this.Pa,this.Oa);q.Lh=!0;q.Mh=!1;q.ya={};q.toString=xb;q.Ga=[];b=0;for(g=h[8].length;b<g;b++){e=h[8][b];var k=this.Td(e[1]),s=null;c=0;for(m=this.Ga.length;c<m;c++)if(this.Ga[c]instanceof
k){s=this.Ga[c];break}s||(s=new k(this),s.Fo=[],s.Lf=new ca,s.ja&&s.ja(),this.Ga.push(s));-1===s.Fo.indexOf(q)&&s.Fo.push(q);c=new s.Xa(s,q);c.name=e[0];c.T=e[2];c.ja();q.Ga.push(c)}q.global=h[9];q.hl=h[10];q.I=[];b=0;for(g=h[12].length;b<g;b++)q.I.push({id:h[12][b][0],name:h[12][b][1],jb:-1,Ya:!0,index:b});q.Wv=h[13];this.xm&&!q.C&&!q.hl&&l.he||q.ja();q.name&&(this.types[q.name]=q);this.n.push(q);l.uj&&(b=new l.va(q),b.uid=this.gh++,b.ep=this.Go++,b.Me=0,b.Cg=yb,b.toString=zb,b.S=h[14],b.ja(),q.c.push(b),
this.je[b.uid.toString()]=b)}a=0;for(n=d[4].length;a<n;a++)for(c=d[4][a],m=this.n[c[0]],b=1,g=c.length;b<g;b++)h=this.n[c[b]],h.ta.push(m),m.Vi.push(h);a=0;for(n=d[27].length;a<n;a++){c=d[27][a];m=[];b=0;for(g=c.length;b<g;b++)m.push(this.n[c[b]]);b=0;for(g=m.length;b<g;b++)m[b].Mc=!0,m[b].Vb=m}if(0<this.xg)for(a=0,n=this.n.length;a<n;a++)if(h=this.n[a],!h.C&&h.ta.length){h.ji=Array(this.xg);h.of=Array(this.xg);h.nn=Array(this.xg);q=[];b=s=k=e=0;for(g=h.ta.length;b<g;b++)for(l=h.ta[b],h.ji[l.zd]=
e,e+=l.Cu,h.of[l.zd]=k,k+=l.fr,h.nn[l.zd]=s,s+=l.ts,c=0,m=l.I.length;c<m;c++)q.push(wa({},l.I[c]));h.I=q.concat(h.I);b=0;for(g=h.I.length;b<g;b++)h.I[b].index=b}a=0;for(n=d[5].length;a<n;a++)h=d[5][a],b=new Ab(this,h),this.rl[b.name]=b,this.Zb.push(b);a=0;for(n=d[6].length;a<n;a++)h=d[6][a],b=new Bb(this,h),this.Bk[b.name]=b,this.yd.push(b);a=0;for(n=this.yd.length;a<n;a++)this.yd[a].Fa();a=0;for(n=this.yd.length;a<n;a++)this.yd[a].rm();a=0;for(n=this.Mj.length;a<n;a++)this.Mj[a].Fa();this.Mj.length=
0;this.cr=d[7];this.Fk=d[8];this.hd=d[9];this.ng=1;this.Or=d[13];this.V=d[14];this.dk=d[15];this.Au=d[17];this.Ll=d[20];this.er=0<this.Ll;this.Nt=d[22];this.xc=this.Pp=d[23];this.Jr=d[24];this.Tt=d[25];this.zj=Date.now();this.Wi.length=0;this.ct()};var w=!1;b.prototype.Bm=function(d,a){d.cocoonLazyLoad=!0;d.onerror=function(a){w=d.$m=!0;console&&console.error&&console.error("Error loading image '"+d.src+"': ",a)};this.Lc?d.src=a:d.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){d.src=
a},function(b){w=d.$m=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):d.src=a);this.jg.push(d)};b.prototype.qs=function(d){var a,b;a=0;for(b=this.jg.length;a<b;a++)if(this.jg[a].nr===d)return this.jg[a];return null};var g=0,l=!1;b.prototype.Us=function(){this.jf&&(g=this.jf.mu(this.cr))};b.prototype.Xm=function(){var d=g,a=0,b=0,c=!0,m,h,b=0;for(m=this.jg.length;b<m;b++){h=this.jg[b];var e=h.rk;if(!e||0>=e)e=5E4;d+=e;h.src&&(h.complete||h.loaded)&&
!h.$m?a+=e:c=!1}c&&this.Tt&&this.jf&&(l||(this.jf.qu(),l=!0),b=this.jf.Es(),a+=b,b<g&&(c=!1));this.Ze=0==d?0:a/d;return c};b.prototype.go=function(){if(this.ga||this.q){var d=this.ga||this.Nl;this.ib&&this.bp();this.Ze=0;this.co=-1;if(this.Xm())this.Vs();else{var a=Date.now()-this.zj;if(d){var b=this.width,g=this.height,c=this.devicePixelRatio;this.ib&&(b=this.$h,g=this.Zh,c=1);if(3!==this.Xg&&(this.kc||500<=a&&this.co!=this.Ze)){d.clearRect(0,0,b,g);var a=b/2,g=g/2,b=0===this.Xg&&this.Hf.complete,
m=40*c,h=0,e=80*c,l;b&&(e=this.Hf.width*c,l=this.Hf.height*c,m=e/2,h=l/2,d.drawImage(this.Hf,Q(a-m),Q(g-h),e,l));1>=this.Xg?(a=Q(a-m)+.5,g=Q(g+(h+(b?12*c:0)))+.5,d.fillStyle=w?"red":"DodgerBlue",d.fillRect(a,g,Math.floor(e*this.Ze),6*c),d.strokeStyle="black",d.strokeRect(a,g,e,6*c),d.strokeStyle="white",d.strokeRect(a-1*c,g-1*c,e+2*c,8*c)):2===this.Xg&&(d.font=this.Lc?"12pt ArialMT":"12pt Arial",d.fillStyle=w?"#f00":"#999",d.Vv="middle",c=Math.round(100*this.Ze)+"%",b=d.measureText?d.measureText(c):
null,d.fillText(c,a-(b?b.width:0)/2,g))}this.co=this.Ze}setTimeout(function(d){return function(){d.go()}}(this),this.kc?10:100)}}};b.prototype.Vs=function(){this.ib&&(this.canvas.parentNode.removeChild(this.ib),this.ib=this.Nl=null);this.zj=Date.now();this.Ue=V();var d,a,b;if(this.xm)for(d=0,a=this.n.length;d<a;d++)b=this.n[d],b.C||b.hl||!b.za.he||b.ja();else this.Df=!1;d=0;for(a=this.Zb.length;d<a;d++)this.Zb[d].or();2<=this.pb&&(d=this.Pa/this.Oa,a=this.width/this.height,this.ng=2!==this.pb&&a>
d||2===this.pb&&a<d?this.height/this.Oa:this.width/this.Pa);this.rn?this.rl[this.rn].im():this.Zb[0].im();this.xm||(this.Ri=1,this.trigger(Y.prototype.e.Hm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();d=0;for(a=this.n.length;d<a;d++)b=this.n[d],b.At&&b.At();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ua(!1);this.hb&&AppMobi.webview.execute("onGameReady();")};var q=window.requestAnimationFrame||
window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;b.prototype.Ua=function(d){if(this.da){var a=V();if(this.Ws&&this.Tl&&29>a-this.ol)this.Tl=!1,this.ol=a,q?this.nj=q(this.Gj,this.canvas):this.Ij=setTimeout(this.Gj,this.dd?1:16);else{this.Tl=!0;this.ol=a;var b=this.pb,g=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Ac;(g||this.Kg)&&0<this.Ie&&(b=this.Ie);
0<b&&(!this.Hi||window.self!==window.top)&&(b=window.innerHeight,this.Qg===window.innerWidth&&this.Pg===b||this.setSize(f(),p()));this.O||(g?(this.li||(this.Jk=jQuery(this.canvas).css("margin")||"0",this.li=!0),this.Ig||this.ge||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.li?(this.Ig||this.ge||jQuery(this.canvas).css("margin",this.Jk),this.Jk=
"",this.li=!1,0===this.pb&&this.setSize(Math.round(this.Mo/this.devicePixelRatio),Math.round(this.Lo/this.devicePixelRatio),!0)):(this.Mo=this.width,this.Lo=this.height));this.Df&&(g=this.Xm(),this.Ri=this.Ze,g&&(this.Df=!1,this.Ze=1,this.trigger(Y.prototype.e.Hm,null)));this.tt();!this.ma&&!this.kc||this.kl||this.Ch||d||(this.ma=!1,this.q?this.Cb():this.wc(),this.wj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.wj[0],this.wj[1]),this.trigger(Y.prototype.e.oq,null)),this.wj=null));
this.Pv||(this.cg++,this.ii++,this.ni++);this.dh+=V()-a;this.Lg||d||(q?this.nj=q(this.Gj,this.canvas):this.Ij=setTimeout(this.Gj,this.dd?1:16))}}};b.prototype.tt=function(){var d,a,b,g,c,m,h,e,l;d=V();1E3<=d-this.Ue&&(this.Ue+=1E3,1E3<=d-this.Ue&&(this.Ue=d),this.Ik=this.ni,this.ni=0,this.qk=this.dh,this.dh=0);this.Ao&&(0!==this.Li&&(a=d-this.Li,0!==a||this.ht?(this.xd=a/1E3,.5<this.xd?this.xd=0:.1<this.xd&&(this.xd=.1)):(10<=this.Xv&&(this.Ao=!1),this.xd=1/60)),this.Li=d);this.Ee=this.xd*this.dg;
this.lc.add(this.Ee);this.od.add(this.xd);d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Kg)&&!this.Ac;2<=this.pb||d&&0<this.Ie?(a=this.Pa/this.Oa,b=this.width/this.height,g=this.pb,d&&0<this.Ie&&(g=this.Ie),this.ng=2!==g&&b>a||2===g&&b<a?this.height/this.Oa:this.width/this.Pa,this.da&&(this.da.jp(this.da.scrollX),this.da.kp(this.da.scrollY))):this.ng=this.Pe?this.devicePixelRatio:1;this.kb();this.Fd++;this.ld.cu();this.Fd--;this.kb();
this.Fd++;b=this.Ko.Wc();d=0;for(a=b.length;d<a;d++)b[d].Rv();d=0;for(a=this.n.length;d<a;d++)if(h=this.n[d],!h.C&&(h.Ga.length||h.ta.length))for(b=0,g=h.c.length;b<g;b++)for(e=h.c[b],c=0,m=e.H.length;c<m;c++)e.H[c].Ua();d=0;for(a=this.n.length;d<a;d++)if(h=this.n[d],!h.C&&(h.Ga.length||h.ta.length))for(b=0,g=h.c.length;b<g;b++)for(e=h.c[b],c=0,m=e.H.length;c<m;c++)l=e.H[c],l.St&&l.St();b=this.El.Wc();d=0;for(a=b.length;d<a;d++)b[d].Ua();this.Fd--;this.Xs();for(d=0;this.ze&&10>d++;)this.hn(this.ze);
d=0;for(a=this.yd.length;d<a;d++)this.yd[d].Zk=!1;this.da.Ge&&this.da.Ge.Sa();this.Zt.length=0;this.ql=!1;this.Fd++;d=0;for(a=this.n.length;d<a;d++)if(h=this.n[d],!h.C&&(h.Ga.length||h.ta.length))for(b=0,g=h.c.length;b<g;b++)for(e=h.c[b],c=0,m=e.H.length;c<m;c++)l=e.H[c],l.mm&&l.mm();b=this.Fl.Wc();d=0;for(a=b.length;d<a;d++)b[d].mm();this.Fd--};b.prototype.hn=function(d){var a=this.da;this.da.ru();var b,g,c,h,m,e,l;if(this.q)for(b=0,g=this.n.length;b<g;b++)m=this.n[b],m.C||!m.Nj||m.global&&0!==m.c.length||
-1!==d.Gg.indexOf(m)||m.Nj();a==d&&(this.ld.Rb.length=0);d.im();b=0;for(g=this.n.length;b<g;b++)if(m=this.n[b],m.global||m.za.uj)for(d=0,a=m.c.length;d<a;d++)if(e=m.c[d],e.Kl&&e.Kl(),e.H)for(c=0,h=e.H.length;c<h;c++)l=e.H[c],l.Kl&&l.Kl();this.ql=this.ma=!0;this.kb()};b.prototype.Hj=function(d){this.El.add(d)};b.prototype.tu=function(d){this.Fl.add(d)};b.prototype.Nk=function(d){return d&&-1!==d.fh?this.xd*d.fh:this.Ee};b.prototype.wc=function(){this.da.wc(this.ga);this.hb&&this.ga.present()};b.prototype.Cb=
function(){this.da.Cb(this.q);this.q.Vt()};b.prototype.Xq=function(d){d&&this.xk.push(d)};b.prototype.si=function(d){d=d.toString();return this.je.hasOwnProperty(d)?this.je[d]:null};var h=[];b.prototype.Sd=function(d){var a,b;a=d.type.name;var g=null;if(this.Ce.hasOwnProperty(a)){if(g=this.Ce[a],g.contains(d))return}else g=h.length?h.pop():new ca,this.Ce[a]=g;g.add(d);this.fe=!0;if(d.Mc)for(a=0,b=d.siblings.length;a<b;a++)this.Sd(d.siblings[a]);this.gl&&g.hg.push(d);this.Fd++;this.trigger(Object.getPrototypeOf(d.type.za).e.rq,
d);this.Fd--};b.prototype.kb=function(){if(this.fe){var d,a,b,g,c,m;this.gl=!0;b=0;for(c=this.Jc.length;b<c;++b)for(d=this.Jc[b],a=d.type,a.c.push(d),g=0,m=a.ta.length;g<m;++g)a.ta[g].c.push(d),a.ta[g].ag=!0;this.Jc.length=0;this.gq();Ua(this.Ce);this.fe=this.gl=!1}};b.prototype.gq=function(){for(var d in this.Ce)this.Ce.hasOwnProperty(d)&&this.Up(this.Ce[d])};b.prototype.Up=function(d){var a=d.Wc(),b=a[0].type,g,c,m,e,l,q;Va(b.c,d);b.ag=!0;0===b.c.length&&(b.Mh=!1);g=0;for(c=b.ta.length;g<c;++g)q=
b.ta[g],Va(q.c,d),q.ag=!0;g=0;for(c=this.ld.Rb.length;g<c;++g)if(l=this.ld.Rb[g],l.ub.hasOwnProperty(b.index)&&Va(l.ub[b.index].Dd,d),!b.C)for(m=0,e=b.ta.length;m<e;++m)q=b.ta[m],l.ub.hasOwnProperty(q.index)&&Va(l.ub[q.index].Dd,d);if(l=a[0].d){if(l.Vc)for(m=l.c,g=0,c=m.length;g<c;++g)e=m[g],d.contains(e)&&(e.qa(),l.ac.update(e,e.Lb,null),e.Lb.set(0,0,-1,-1));Va(l.c,d);l.yh(0)}for(g=0;g<a.length;++g)this.Tp(a[g],b);d.clear();h.push(d);this.ma=!0};b.prototype.Tp=function(d,a){var b,g,c;b=0;for(g=this.xk.length;b<
g;++b)this.xk[b](d);d.qc&&a.rg.update(d,d.qc,null);(b=d.d)&&b.Uf(d,!0);if(d.H)for(b=0,g=d.H.length;b<g;++b)c=d.H[b],c.Pf&&c.Pf(),c.behavior.Lf.remove(d);this.Ko.remove(d);this.El.remove(d);this.Fl.remove(d);d.Pf&&d.Pf();this.je.hasOwnProperty(d.uid.toString())&&delete this.je[d.uid.toString()];this.Xi--;100>a.di.length&&a.di.push(d)};var s=[];b.prototype.Be=function(d,a,b,g,c,m){var h,e,l,q;if(!d)return null;var k=this.n[d[1]],A=k.za.he;if(this.Df&&A&&!k.hl||A&&!this.q&&11===d[0][11])return null;
var r=a;A||(a=null);var f;k.di.length?(f=k.di.pop(),f.Rc=!0,k.za.va.call(f,k)):(f=new k.za.va(k),f.Rc=!1);f.uid=b&&!m?d[2]:this.gh++;this.je[f.uid.toString()]=f;f.ep=this.Go++;f.Me=k.c.length;h=0;for(e=this.Jc.length;h<e;++h)this.Jc[h].type===k&&f.Me++;f.Cg=yb;f.toString=zb;l=d[3];if(f.Rc)Ua(f.ya);else{f.ya={};if("undefined"!==typeof cr_is_preview)for(f.Jn=[],f.Jn.length=l.length,h=0,e=l.length;h<e;h++)f.Jn[h]=l[h][1];f.Ma=[];f.Ma.length=l.length}h=0;for(e=l.length;h<e;h++)f.Ma[h]=l[h][0];if(A){var u=
d[0];f.x=ga(g)?u[0]:g;f.y=ga(c)?u[1]:c;f.z=u[2];f.width=u[3];f.height=u[4];f.depth=u[5];f.i=u[6];f.opacity=u[7];f.Fb=u[8];f.Gb=u[9];f.wb=u[10];h=u[11];!this.q&&k.I.length&&(f.wb=h);f.sg=cb(f.wb);this.m&&db(f,f.wb,this.m);if(f.Rc){h=0;for(e=u[12].length;h<e;h++)for(l=0,q=u[12][h].length;l<q;l++)f.xa[h][l]=u[12][h][l];f.Ca.set(0,0,0,0);f.qc.set(0,0,-1,-1);f.Lb.set(0,0,-1,-1);f.Ub.Yf(f.Ca);f.hk.length=0}else{f.xa=u[12].slice(0);h=0;for(e=f.xa.length;h<e;h++)f.xa[h]=u[12][h].slice(0);f.X=[];f.Ud=[];f.Ud.length=
k.I.length;f.Ca=new T(0,0,0,0);f.qc=new T(0,0,-1,-1);f.Lb=new T(0,0,-1,-1);f.Ub=new ua;f.hk=[];f.ua=Cb;f.$q=Db;f.fb=Eb;f.qa=Fb;f.zu=Gb;f.wm=Hb;f.yc=Ib}f.Gh=!1;f.wu=0;f.vu=0;f.uu=null;14===u.length&&(f.Gh=!0,f.wu=u[13][0],f.vu=u[13][1],f.uu=u[13][2]);h=0;for(e=k.I.length;h<e;h++)f.Ud[h]=!0;f.Qd=Jb;f.Qd();f.Op=!!f.X.length;f.Rh=!0;f.jk=!0;k.Lh=!0;f.visible=!0;f.fh=-1;f.d=a;f.Xc=a.c.length;"undefined"===typeof f.Z&&(f.Z=null);this.ma=f.$c=!0}var p;h=s.length=0;for(e=k.ta.length;h<e;h++)s.push.apply(s,
k.ta[h].Ga);s.push.apply(s,k.Ga);if(f.Rc)for(h=0,e=s.length;h<e;h++){var t=s[h];p=f.H[h];p.Rc=!0;t.behavior.va.call(p,t,f);u=d[4][h];l=0;for(q=u.length;l<q;l++)p.S[l]=u[l];p.ja();t.behavior.Lf.add(f)}else for(f.H=[],h=0,e=s.length;h<e;h++)t=s[h],p=new t.behavior.va(t,f),p.Rc=!1,p.S=d[4][h].slice(0),p.ja(),f.H.push(p),t.behavior.Lf.add(f);u=d[5];if(f.Rc)for(h=0,e=u.length;h<e;h++)f.S[h]=u[h];else f.S=u.slice(0);this.Jc.push(f);this.fe=!0;a&&(a.mg(f,!0),1!==a.Jb||1!==a.Kb)&&(k.Mh=!0);this.Xi++;if(k.Mc){if(f.Mc=
!0,f.Rc?f.siblings.length=0:f.siblings=[],!b&&!m){h=0;for(e=k.Vb.length;h<e;h++)if(k.Vb[h]!==k){if(!k.Vb[h].ad)return null;f.siblings.push(this.Be(k.Vb[h].ad,r,!1,A?f.x:g,A?f.y:c,!0))}h=0;for(e=f.siblings.length;h<e;h++)for(f.siblings[h].siblings.push(f),l=0;l<e;l++)h!==l&&f.siblings[h].siblings.push(f.siblings[l])}}else f.Mc=!1,f.siblings=null;f.ja();h=0;for(e=f.H.length;h<e;h++)f.H[h].Rt&&f.H[h].Rt();return f};b.prototype.zg=function(d){var a,b;a=0;for(b=this.da.L.length;a<b;a++){var g=this.da.L[a];
if(fb(g.name,d))return g}return null};b.prototype.Bd=function(d){d=Q(d);0>d&&(d=0);d>=this.da.L.length&&(d=this.da.L.length-1);return this.da.L[d]};b.prototype.ok=function(d){var a,b;a=0;for(b=d.length;a<b;a++)d[a].ha().na=!0};b.prototype.sh=function(d){var a,b;a=0;for(b=d.length;a<b;a++)d[a].sh()};b.prototype.Rl=function(d){var a,b;a=0;for(b=d.length;a<b;a++)d[a].Rl()};b.prototype.Tf=function(d){var a,b;a=0;for(b=d.length;a<b;a++)d[a].Tf()};b.prototype.Kp=function(d){if(d.Lh){var a,b,g=d.c;a=0;for(b=
g.length;a<b;++a)g[a].wm();g=this.Jc;a=0;for(b=g.length;a<b;++a)g[a].type===d&&g[a].wm();d.Lh=!1}};b.prototype.xs=function(d,a,b,g){var c,h,m=d?1!==d.Jb||1!==d.Kb:!1;if(a.C)for(d=0,c=a.Vi.length;d<c;++d)h=a.Vi[d],m||h.Mh?za(g,h.c):(this.Kp(h),h.rg.mj(b,g));else m||a.Mh?za(g,a.c):(this.Kp(a),a.rg.mj(b,g))};b.prototype.bg=function(d,a,b,g){var c=d.ha(),h,m,e,l,q,f;if(c.na)for(g||(c.na=!1,c.c.length=0),h=0,l=d.c.length;h<l;h++){if(e=d.c[h],e.qa(),q=e.d.ra(a,b,!0),f=e.d.ra(a,b,!1),e.fb(q,f)){if(g)return!1;
c.c.push(e)}}else{h=m=0;for(l=c.c.length;h<l;h++)if(e=c.c[h],e.qa(),q=e.d.ra(a,b,!0),f=e.d.ra(a,b,!1),e.fb(q,f)){if(g)return!1;c.c[m]=c.c[h];m++}g||(c.c.length=m)}d.rd();return g?!0:c.Yk()};b.prototype.su=function(d,a){if(!(d&&a&&d!==a&&d.$c&&a.$c))return!1;d.qa();a.qa();var b=d.d,g=a.d,c,h,m,e,l,q,f,k;if(b===g||b.Jb===g.Jb&&g.Kb===g.Kb&&b.scale===g.scale&&b.i===g.i&&b.ob===g.ob){if(!d.Ca.dt(a.Ca)||!d.Ub.Kn(a.Ub)||d.Gh&&a.Gh)return!1;if(d.Gh)return this.yp(d,a);if(a.Gh)return this.yp(a,d);f=d.Z&&
!d.Z.zf();c=a.Z&&!a.Z.zf();if(!f&&!c)return!0;f?(d.Z.kf(d.width,d.height,d.i),f=d.Z):(this.Tc.Xf(d.Ub,d.x,d.y,d.width,d.height),f=this.Tc);c?(a.Z.kf(a.width,a.height,a.i),k=a.Z):(this.Tc.Xf(a.Ub,a.x,a.y,a.width,a.height),k=this.Tc);return f.Hg(k,a.x-d.x,a.y-d.y)}f=d.Z&&!d.Z.zf();c=a.Z&&!a.Z.zf();f?(d.Z.kf(d.width,d.height,d.i),this.Tc.op(d.Z)):this.Tc.Xf(d.Ub,d.x,d.y,d.width,d.height);f=this.Tc;c?(a.Z.kf(a.width,a.height,a.i),this.km.op(a.Z)):this.km.Xf(a.Ub,a.x,a.y,a.width,a.height);k=this.km;c=
0;for(h=f.Qc;c<h;c++)m=2*c,e=m+1,l=f.Qa[m],q=f.Qa[e],f.Qa[m]=b.Na(l+d.x,q+d.y,!0),f.Qa[e]=b.Na(l+d.x,q+d.y,!1);f.qa();c=0;for(h=k.Qc;c<h;c++)m=2*c,e=m+1,l=k.Qa[m],q=k.Qa[e],k.Qa[m]=g.Na(l+a.x,q+a.y,!0),k.Qa[e]=g.Na(l+a.x,q+a.y,!1);k.qa();return f.Hg(k,0,0)};var u=new ua;new T(0,0,0,0);var m=[];b.prototype.yp=function(d,a){var b,g,c,h,e=a.Ca,l=d.x,q=d.y;d.Lv(e,m);var f=a.Z&&!a.Z.zf();b=0;for(g=m.length;b<g;++b)if(c=m[b],h=c.Sv,e.et(h,l,q)&&(u.Yf(h),u.offset(l,q),u.Kn(a.Ub)))if(f)if(a.Z.kf(a.width,
a.height,a.i),c.Pl){if(c.Pl.Hg(a.Z,a.x-(l+h.left),a.y-(q+h.top)))return m.length=0,!0}else{if(this.Tc.Xf(u,0,0,h.right-h.left,h.bottom-h.top),this.Tc.Hg(a.Z,a.x,a.y))return m.length=0,!0}else if(c.Pl){if(this.Tc.Xf(a.Ub,0,0,a.width,a.height),c.Pl.Hg(this.Tc,-(l+h.left),-(q+h.top)))return m.length=0,!0}else return m.length=0,!0;m.length=0;return!1};b.prototype.Fp=function(d,a){if(!a)return!1;var b,g,c,h,m;b=0;for(g=d.Ga.length;b<g;b++)if(d.Ga[b].behavior instanceof a)return!0;if(!d.C)for(b=0,g=d.ta.length;b<
g;b++)for(m=d.ta[b],c=0,h=m.Ga.length;c<h;c++)if(m.Ga[c].behavior instanceof a)return!0;return!1};b.prototype.Gp=function(d){return this.Fp(d,Yb.dv)};b.prototype.qm=function(d){return this.Fp(d,Yb.gv)};var A=-1;b.prototype.trigger=function(d,a,b){if(!this.da)return!1;var g=this.da.Ge;if(!g)return!1;var c=!1,h,m,e;A++;var l=g.vk;m=0;for(e=l.length;m<e;++m)h=this.Cp(d,a,l[m],b),c=c||h;h=this.Cp(d,a,g,b);A--;return c||h};b.prototype.Cp=function(d,a,b,g){var c=!1,h,m,e,l;if(a)for(e=this.om(d,a,a.type.name,
b,g),c=c||e,l=a.type.ta,h=0,m=l.length;h<m;++h)e=this.om(d,a,l[h].name,b,g),c=c||e;else e=this.om(d,a,"system",b,g),c=c||e;return c};b.prototype.om=function(d,a,b,g,c){var h,m=!1,e=!1,e="undefined"!==typeof c,l=(e?g.pn:g.Dp)[b];if(!l)return m;var q=null;g=0;for(h=l.length;g<h;++g)if(l[g].method==d){q=l[g].wg;break}if(!q)return m;d=e?q[c]:q;if(!d)return null;g=0;for(h=d.length;g<h;g++)c=d[g][0],e=d[g][1],e=this.os(a,b,c,e),m=m||e;return m};b.prototype.os=function(d,a,b,g){var c,h,m=!1;this.pm++;var e=
this.qb().Wb;e&&this.sh(e.oe);var l=1<this.pm;this.sh(b.oe);l&&this.Xt();var q=this.Sl(b);q.Wb=b;d&&(c=this.types[a].ha(),c.na=!1,c.c.length=1,c.c[0]=d,this.types[a].rd());d=!0;if(b.parent){a=q.xp;for(c=b.parent;c;)a.push(c),c=c.parent;a.reverse();c=0;for(h=a.length;c<h;c++)if(!a[c].eu()){d=!1;break}}d&&(this.ii++,b.Oc?b.du(g):b.Sa(),m=m||q.Te);this.$o();l&&this.Qt();this.Tf(b.oe);e&&this.Tf(e.oe);this.fe&&0===this.Fd&&0===A&&!this.il&&this.kb();this.pm--;return m};b.prototype.qi=function(){var d=
this.qb();return d.Wb.lb[d.Bb]};b.prototype.Xt=function(){this.Ti++;this.Ti>=this.wl.length&&this.wl.push([])};b.prototype.Qt=function(){this.Ti--};b.prototype.vn=function(){return this.wl[this.Ti]};b.prototype.Sl=function(d){this.hi++;this.hi>=this.Ak.length&&this.Ak.push(new Kb);var a=this.qb();a.reset(d);return a};b.prototype.$o=function(){this.hi--};b.prototype.qb=function(){return this.Ak[this.hi]};b.prototype.wn=function(d,a){for(var b,g,c,h,m,e;a;){b=0;for(g=a.Fc.length;b<g;b++)if(e=a.Fc[b],
e instanceof Lb&&fb(d,e.name))return e;a=a.parent}b=0;for(g=this.yd.length;b<g;b++)for(m=this.yd[b],c=0,h=m.de.length;c<h;c++)if(e=m.de[c],e instanceof Lb&&fb(d,e.name))return e;return null};b.prototype.yn=function(d){var a,b;a=0;for(b=this.Zb.length;a<b;a++)if(this.Zb[a].T===d)return this.Zb[a];return null};b.prototype.ti=function(d){var a,b;a=0;for(b=this.n.length;a<b;a++)if(this.n[a].T===d)return this.n[a];return null};b.prototype.zs=function(d){var a,b;a=0;for(b=this.Wd.length;a<b;a++)if(this.Wd[a].T===
d)return this.Wd[a];return null};b.prototype.Xs=function(){var d=this,b=this.rj,g=this.Gd,c=this.Vg,h=!1;this.tp&&(h=!0,b="__c2_continuouspreview",this.tp=!1);if(b.length){this.kb();g=this.iu();if(window.indexedDB&&!this.kc)r(b,g,function(){L("Saved state to IndexedDB storage ("+g.length+" bytes)");d.Gd=g;d.trigger(Y.prototype.e.Xj,null);d.Gd="";h&&a()},function(c){try{localStorage.setItem("__c2save_"+b,g),L("Saved state to WebStorage ("+g.length+" bytes)"),d.Gd=g,d.trigger(Y.prototype.e.Xj,null),
d.Gd="",h&&a()}catch(m){L("Failed to save game state: "+c+"; "+m)}});else try{localStorage.setItem("__c2save_"+b,g),L("Saved state to WebStorage ("+g.length+" bytes)"),d.Gd=g,this.trigger(Y.prototype.e.Xj,null),d.Gd="",h&&a()}catch(m){L("Error saving to WebStorage: "+m)}this.sb=this.Vg=this.rj=""}c.length&&(window.indexedDB&&!this.kc?e(c,function(a){a?(d.sb=a,L("Loaded state from IndexedDB storage ("+d.sb.length+" bytes)")):(d.sb=localStorage.getItem("__c2save_"+c)||"",L("Loaded state from WebStorage ("+
d.sb.length+" bytes)"));d.Ch=!1;d.sb.length||d.trigger(Y.prototype.e.Vj,null)},function(){d.sb=localStorage.getItem("__c2save_"+c)||"";L("Loaded state from WebStorage ("+d.sb.length+" bytes)");d.Ch=!1;d.sb.length||d.trigger(Y.prototype.e.Vj,null)}):(this.sb=localStorage.getItem("__c2save_"+c)||"",L("Loaded state from WebStorage ("+this.sb.length+" bytes)"),this.Ch=!1,d.sb.length||d.trigger(Y.prototype.e.Vj,null)),this.rj=this.Vg="");this.sb.length&&(this.kb(),this.qt(this.sb),this.Gd=this.sb,this.trigger(Y.prototype.e.Eq,
null),this.sb=this.Gd="")};b.prototype.iu=function(){var d,a,b,g,h,m,e,l={c2save:!0,version:1,rt:{time:this.lc.ea,walltime:this.od.ea,timescale:this.dg,tickcount:this.cg,execcount:this.ii,next_uid:this.gh,running_layout:this.da.T,start_time_offset:Date.now()-this.zj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(a=this.n.length;d<a;d++)if(h=this.n[d],!h.C&&!this.Gp(h)){m={instances:[]};Ta(h.ya)&&(m.ex=c(h.ya));b=0;for(g=h.c.length;b<g;b++)m.instances.push(this.am(h.c[b]));
l.types[h.T.toString()]=m}d=0;for(a=this.Zb.length;d<a;d++)b=this.Zb[d],l.layouts[b.T.toString()]=b.Nb();g=l.events.groups;d=0;for(a=this.Wd.length;d<a;d++)b=this.Wd[d],g[b.T.toString()]=this.vi[b.Dg].rf;a=l.events.cnds;for(e in this.lf)this.lf.hasOwnProperty(e)&&(d=this.lf[e],Ta(d.ya)&&(a[e]={ex:c(d.ya)}));a=l.events.acts;for(e in this.hf)this.hf.hasOwnProperty(e)&&(d=this.hf[e],Ta(d.ya)&&(a[e]={ex:d.ya}));a=l.events.vars;for(e in this.ig)this.ig.hasOwnProperty(e)&&(d=this.ig[e],d.Ei||d.parent&&
!d.Ng||(a[e]=d.data));l.system=this.ld.Nb();return JSON.stringify(l)};b.prototype.fp=function(){var d,a,b,g,c,h;this.je={};d=0;for(a=this.n.length;d<a;d++)if(b=this.n[d],!b.C)for(g=0,c=b.c.length;g<c;g++)h=b.c[g],this.je[h.uid.toString()]=h};b.prototype.qt=function(d){d=JSON.parse(d);if(d.c2save&&!(1<d.version)){var a=d.rt;this.lc.reset();this.lc.ea=a.time;this.od.reset();this.od.ea=a.walltime||0;this.dg=a.timescale;this.cg=a.tickcount;this.ii=a.execcount;this.zj=Date.now()-a.start_time_offset;var b=
a.running_layout;if(b!==this.da.T)if(b=this.yn(b))this.hn(b);else return;var g,c,h,m,e,l,q;l=d.types;for(c in l)if(l.hasOwnProperty(c)&&(m=this.ti(parseInt(c,10)))&&!m.C&&!this.Gp(m)){l[c].ex?m.ya=l[c].ex:Ua(m.ya);e=m.c;h=l[c].instances;b=0;for(g=na(e.length,h.length);b<g;b++)this.Oi(e[b],h[b]);b=h.length;for(g=e.length;b<g;b++)this.Sd(e[b]);b=e.length;for(g=h.length;b<g;b++){e=null;if(m.za.he&&(e=this.da.ri(h[b].w.l),!e))continue;e=this.Be(m.ad,e,!1,0,0,!0);this.Oi(e,h[b])}m.ag=!0}this.kb();this.fp();
g=d.layouts;for(c in g)g.hasOwnProperty(c)&&(b=this.yn(parseInt(c,10)))&&b.nc(g[c]);g=d.events.groups;for(c in g)g.hasOwnProperty(c)&&(b=this.zs(parseInt(c,10)))&&this.vi[b.Dg]&&(this.vi[b.Dg].rf=g[c]);b=d.events.cnds;for(c in b)b.hasOwnProperty(c)&&this.lf.hasOwnProperty(c)&&(this.lf[c].ya=b[c].ex);b=d.events.acts;for(c in b)b.hasOwnProperty(c)&&this.hf.hasOwnProperty(c)&&(this.hf[c].ya=b[c].ex);b=d.events.vars;for(c in b)b.hasOwnProperty(c)&&this.ig.hasOwnProperty(c)&&(this.ig[c].data=b[c]);this.gh=
a.next_uid;this.ld.nc(d.system);b=0;for(g=this.n.length;b<g;b++)if(m=this.n[b],!m.C)for(c=0,d=m.c.length;c<d;c++){e=m.c[c];if(m.Mc)for(l=e.Cg(),a=e.siblings.length=0,h=m.Vb.length;a<h;a++)q=m.Vb[a],m!==q&&e.siblings.push(q.c[l]);e.pd&&e.pd();if(e.H)for(a=0,h=e.H.length;a<h;a++)l=e.H[a],l.pd&&l.pd()}this.ma=!0}};b.prototype.am=function(a,b){var g,h,m,e,l;e=a.type;m=e.za;var q={};b?q.c2=!0:q.uid=a.uid;Ta(a.ya)&&(q.ex=c(a.ya));if(a.Ma&&a.Ma.length)for(q.ivs={},g=0,h=a.Ma.length;g<h;g++)q.ivs[a.type.fl[g].toString()]=
a.Ma[g];if(m.he){m={x:a.x,y:a.y,w:a.width,h:a.height,l:a.d.T,zi:a.yc()};0!==a.i&&(m.a=a.i);1!==a.opacity&&(m.o=a.opacity);.5!==a.Fb&&(m.hX=a.Fb);.5!==a.Gb&&(m.hY=a.Gb);0!==a.wb&&(m.bm=a.wb);a.visible||(m.v=a.visible);a.$c||(m.ce=a.$c);-1!==a.fh&&(m.mts=a.fh);if(e.I.length)for(m.fx=[],g=0,h=e.I.length;g<h;g++)l=e.I[g],m.fx.push({name:l.name,active:a.Ud[l.index],params:a.xa[l.index]});q.w=m}if(a.H&&a.H.length)for(q.behs={},g=0,h=a.H.length;g<h;g++)e=a.H[g],e.Nb&&(q.behs[e.type.T.toString()]=e.Nb());
a.Nb&&(q.data=a.Nb());return q};b.prototype.Bs=function(a,b){var g,c;g=0;for(c=a.fl.length;g<c;g++)if(a.fl[g]===b)return g;return-1};b.prototype.ws=function(a,b){var g,c;g=0;for(c=a.H.length;g<c;g++)if(a.H[g].type.T===b)return g;return-1};b.prototype.Oi=function(a,b,g){var c,h,m,e,l;l=a.type;m=l.za;if(g){if(!b.c2)return}else a.uid=b.uid;b.ex?a.ya=b.ex:Ua(a.ya);if(h=b.ivs)for(c in h)h.hasOwnProperty(c)&&(g=this.Bs(l,parseInt(c,10)),0>g||g>=a.Ma.length||(a.Ma[g]=h[c]));if(m.he){m=b.w;a.d.T!==m.l&&(g=
a.d,a.d=this.da.ri(m.l),a.d?(g.Uf(a,!0),a.d.mg(a,!0),a.ua(),a.d.yh(0)):(a.d=g,this.Sd(a)));a.x=m.x;a.y=m.y;a.width=m.w;a.height=m.h;a.Xc=m.zi;a.i=m.hasOwnProperty("a")?m.a:0;a.opacity=m.hasOwnProperty("o")?m.o:1;a.Fb=m.hasOwnProperty("hX")?m.hX:.5;a.Gb=m.hasOwnProperty("hY")?m.hY:.5;a.visible=m.hasOwnProperty("v")?m.v:!0;a.$c=m.hasOwnProperty("ce")?m.ce:!0;a.fh=m.hasOwnProperty("mts")?m.mts:-1;a.wb=m.hasOwnProperty("bm")?m.bm:0;a.sg=cb(a.wb);this.m&&db(a,a.wb,this.m);a.ua();if(m.hasOwnProperty("fx"))for(g=
0,h=m.fx.length;g<h;g++)e=l.Pk(m.fx[g].name),0>e||(a.Ud[e]=m.fx[g].active,a.xa[e]=m.fx[g].params);a.Qd()}if(l=b.behs)for(c in l)l.hasOwnProperty(c)&&(m=this.ws(a,parseInt(c,10)),0>m||a.H[m].nc(l[c]));b.data&&a.nc(b.data)};Mb=function(a){return new b(document.getElementById(a))};Nb=function(a,g){return new b({dc:!0,width:a,height:g})};window.cr_createRuntime=Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");
a.Uv=!0;document.body.appendChild(a);a=new b(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new b(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(f,p){if(0!==f&&0!==p){var b=window.cr_getC2Runtime();b&&b.setSize(f,p)}};window.cr_setSuspended=function(f){var p=window.cr_getC2Runtime();p&&p.setSuspended(f)};
(function(){function f(a,b){this.b=a;this.Ge=null;this.scrollX=this.b.Pa/2;this.scrollY=this.b.Oa/2;this.scale=1;this.i=0;this.pf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Hp=b[3];this.rp=b[4];this.T=b[5];var c=b[6],h,e;this.L=[];this.Gg=[];h=0;for(e=c.length;h<e;h++){var f=new Ob(this,c[h]);f.Io=h;this.L.push(f)}c=b[7];this.Ne=[];h=0;for(e=c.length;h<e;h++){var f=c[h],m=this.b.n[f[1]];m.ad||(m.ad=f);this.Ne.push(f);-1===this.Gg.indexOf(m)&&this.Gg.push(m)}this.I=[];this.X=[];this.xa=
[];h=0;for(e=b[8].length;h<e;h++)this.I.push({id:b[8][h][0],name:b[8][h][1],jb:-1,Ya:!0,index:h}),this.xa.push(b[8][h][2].slice(0));this.Qd();this.uh=new T(0,0,1,1);this.Ul=new T(0,0,1,1);this.ke={}}function p(a,b){return a.Xc-b.Xc}function b(a,b){this.ab=a;this.b=a.b;this.c=[];this.scale=1;this.i=0;this.De=!1;this.Od=new T(0,0,0,0);this.Ap=new ua;this.Ka=this.Ba=this.La=this.Aa=0;this.df=!1;this.Rd=-1;this.name=b[0];this.index=b[1];this.T=b[2];this.visible=b[3];this.Yd=b[4];this.Pd=b[5];this.Jb=
b[6];this.Kb=b[7];this.opacity=b[8];this.Hk=b[9];this.Vc=b[10];this.ob=b[11];this.wb=b[12];this.Nr=b[13];this.sg="source-over";this.mb=this.nb=0;this.ac=null;this.Ff=k();this.Ld=!0;this.Ki=new T(0,0,-1,-1);this.uc=new T(0,0,-1,-1);this.Vc&&(this.ac=new bb(this.b.Pa,this.b.Oa));this.le=!1;var c=b[14],h,e;this.uf=[];h=0;for(e=c.length;h<e;h++){var f=c[h],m=this.b.n[f[1]];m.ad||(m.ad=f,m.rr=this.index);this.uf.push(f);-1===this.ab.Gg.indexOf(m)&&this.ab.Gg.push(m)}this.I=[];this.X=[];this.xa=[];h=0;
for(e=b[15].length;h<e;h++)this.I.push({id:b[15][h][0],name:b[15][h][1],jb:-1,Ya:!0,index:h}),this.xa.push(b[15][h][2].slice(0));this.Qd();this.uh=new T(0,0,1,1);this.Ul=new T(0,0,1,1)}function k(){return c.length?c.pop():[]}function r(a){a.length=0;c.push(a)}f.prototype.hu=function(a){var b=a.type.T.toString();this.ke.hasOwnProperty(b)||(this.ke[b]=[]);this.ke[b].push(this.b.am(a))};f.prototype.Cn=function(){var a=this.L[0];return!a.Pd&&1===a.opacity&&!a.Hk&&a.visible};f.prototype.Qd=function(){this.X.length=
0;var a,b,c;a=0;for(b=this.I.length;a<b;a++)c=this.I[a],c.Ya&&this.X.push(c)};f.prototype.Ok=function(a){var b,c,h;b=0;for(c=this.I.length;b<c;b++)if(h=this.I[b],h.name===a)return h;return null};var e=[],a=!0;f.prototype.im=function(){this.rp&&(this.Ge=this.b.Bk[this.rp],this.Ge.rm());this.b.da=this;this.scrollX=this.b.Pa/2;this.scrollY=this.b.Oa/2;var b,c,q,h,f,k,m;b=0;for(q=this.b.n.length;b<q;b++)if(c=this.b.n[b],!c.C)for(f=c.c,c=0,h=f.length;c<h;c++)if(k=f[c],k.d){var A=k.d.Io;A>=this.L.length&&
(A=this.L.length-1);k.d=this.L[A];-1===k.d.c.indexOf(k)&&k.d.c.push(k);k.d.df=!0}if(!a)for(b=0,q=this.L.length;b<q;++b)this.L[b].c.sort(p);e.length=0;this.hr();b=0;for(q=this.L.length;b<q;b++)k=this.L[b],k.pr(),k.um();f=!1;if(!this.pf){for(m in this.ke)if(this.ke.hasOwnProperty(m)&&(c=this.b.ti(parseInt(m,10)))&&!c.C&&this.b.qm(c)){h=this.ke[m];b=0;for(q=h.length;b<q;b++){k=null;if(c.za.he&&(k=this.ri(h[b].w.l),!k))continue;k=this.b.Be(c.ad,k,!1,0,0,!0);this.b.Oi(k,h[b]);f=!0;e.push(k)}h.length=0}b=
0;for(q=this.L.length;b<q;b++)this.L[b].c.sort(p),this.L[b].df=!0}f&&(this.b.kb(),this.b.fp());for(b=0;b<e.length;b++)if(k=e[b],k.type.Mc)for(q=k.Cg(),c=0,h=k.type.Vb.length;c<h;c++)m=k.type.Vb[c],k.type!==m&&(m.c.length>q?k.siblings.push(m.c[q]):m.ad&&(f=this.b.Be(m.ad,k.d,!0,k.x,k.y,!0),this.b.kb(),m.Oj(),k.siblings.push(f),e.push(f)));b=0;for(q=this.Ne.length;b<q;b++)this.b.Be(this.Ne[b],null,!0);this.b.ze=null;this.b.kb();if(this.b.ga&&!this.b.O)for(b=0,q=this.b.n.length;b<q;b++)m=this.b.n[b],
!m.C&&m.c.length&&m.kj&&m.kj(this.b.ga);b=0;for(q=e.length;b<q;b++)k=e[b],this.b.trigger(Object.getPrototypeOf(k.type.za).e.qq,k);e.length=0;this.b.trigger(Y.prototype.e.Gm,null);this.pf=!1};f.prototype.or=function(){var a,b,c,h,e;b=a=0;for(c=this.Ne.length;a<c;a++)h=this.Ne[a],e=this.b.n[h[1]],e.global?this.b.Be(h,null,!0):(this.Ne[b]=h,b++);this.Ne.length=b};f.prototype.ru=function(){this.b.trigger(Y.prototype.e.Dq,null);this.b.ld.Rb.length=0;var b,c,e,h,f,k;if(!this.pf)for(b=0,c=this.L.length;b<
c;b++)for(this.L[b].vm(),f=this.L[b].c,e=0,h=f.length;e<h;e++)k=f[e],k.type.global||this.b.qm(k.type)&&this.hu(k);b=0;for(c=this.L.length;b<c;b++){f=this.L[b].c;e=0;for(h=f.length;e<h;e++)k=f[e],k.type.global||this.b.Sd(k);this.b.kb();f.length=0;this.L[b].df=!0}b=0;for(c=this.b.n.length;b<c;b++)if(f=this.b.n[b],!(f.global||f.za.he||f.za.uj||f.C)){e=0;for(h=f.c.length;e<h;e++)this.b.Sd(f.c[e]);this.b.kb()}a=!1};new T(0,0,0,0);f.prototype.wc=function(a){var b,c=a,h=!1,e=!this.b.xc;e&&(this.b.Ni||(this.b.Ni=
document.createElement("canvas"),b=this.b.Ni,b.width=this.b.N,b.height=this.b.M,this.b.fo=b.getContext("2d"),h=!0),b=this.b.Ni,c=this.b.fo,b.width!==this.b.N&&(b.width=this.b.N,h=!0),b.height!==this.b.M&&(b.height=this.b.M,h=!0),h&&(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.dk&&!this.Cn()&&c.clearRect(0,0,this.b.N,this.b.M);var f,m,
h=0;for(f=this.L.length;h<f;h++)m=this.L[h],m.visible&&0<m.opacity&&11!==m.wb&&(m.c.length||!m.Pd)?m.wc(c):m.um();e&&a.drawImage(b,0,0,this.b.width,this.b.height)};f.prototype.Cb=function(a){var b=0<this.X.length||this.b.gg||!this.b.xc;if(b){this.b.Yb||(this.b.Yb=a.$d(this.b.N,this.b.M,this.b.V));if(this.b.Yb.qg!==this.b.N||this.b.Yb.pg!==this.b.M)a.deleteTexture(this.b.Yb),this.b.Yb=a.$d(this.b.N,this.b.M,this.b.V);a.jd(this.b.Yb);this.b.xc||a.Wf(this.b.N,this.b.M)}else this.b.Yb&&(a.jd(null),a.deleteTexture(this.b.Yb),
this.b.Yb=null);this.b.dk&&!this.Cn()&&a.clear(0,0,0,0);var c,h,e;c=0;for(h=this.L.length;c<h;c++)e=this.L[c],e.visible&&0<e.opacity&&(e.c.length||!e.Pd)?e.Cb(a):e.um();b&&(0===this.X.length||1===this.X.length&&this.b.xc?(1===this.X.length?(b=this.X[0].index,a.kd(this.X[0].jb),a.Vf(null,1/this.b.N,1/this.b.M,0,0,1,1,this.scale,this.i,0,0,this.b.N/2,this.b.M/2,this.xa[b]),a.lj(this.X[0].jb)&&(this.b.ma=!0)):a.kd(0),this.b.xc||a.Wf(this.b.width,this.b.height),a.jd(null),a.$e(1),a.cc(this.b.Yb),a.lp(),
a.me(),a.ue(),b=this.b.width/2,c=this.b.height/2,a.th(-b,c,b,c,b,-c,-b,-c),a.cc(null)):this.Vl(a,null,null,null))};f.prototype.Ag=function(){return 0<this.X.length||this.b.gg||!this.b.xc?this.b.Yb:null};f.prototype.zn=function(){var a=this.L[0].jc(),b,c,h;b=1;for(c=this.L.length;b<c;b++)h=this.L[b],(0!==h.Jb||0!==h.Kb)&&h.jc()<a&&(a=h.jc());return a};f.prototype.jp=function(a){if(!this.Hp){var b=1/this.zn()*this.b.N/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ma=
!0)};f.prototype.kp=function(a){if(!this.Hp){var b=1/this.zn()*this.b.M/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ma=!0)};f.prototype.hr=function(){this.jp(this.scrollX);this.kp(this.scrollY)};f.prototype.Vl=function(a,b,c,h){var e=c?c.X:b?b.X:this.X,f=1,m=0,k=0,d=0,r=this.b.N,n=this.b.M;c?(f=c.d.jc(),m=c.d.Za(),k=c.d.Aa,d=c.d.Ba,r=c.d.La,n=c.d.Ka):b&&(f=b.jc(),m=b.Za(),k=b.Aa,d=b.Ba,r=b.La,n=b.Ka);var p=this.b.Kk,t,w,v,z,M=0,D=1,X,F=this.b.N,y=this.b.M,
va=F/2,H=y/2,G=b?b.uh:this.uh,E=b?b.Ul:this.Ul,I=0,J=0,C=0,O=0,K=F,ka=F,N=y,pa=y,da=v=0,sa=c?c.d.Za():0;if(c){t=0;for(w=e.length;t<w;t++)v+=a.Fs(e[t].jb),da+=a.Gs(e[t].jb);z=c.Ca;I=b.Na(z.left,z.top,!0,!0);C=b.Na(z.left,z.top,!1,!0);K=b.Na(z.right,z.bottom,!0,!0);N=b.Na(z.right,z.bottom,!1,!0);0!==sa&&(t=b.Na(z.right,z.top,!0,!0),w=b.Na(z.right,z.top,!1,!0),J=b.Na(z.left,z.bottom,!0,!0),O=b.Na(z.left,z.bottom,!1,!0),z=Math.min(I,K,t,J),K=Math.max(I,K,t,J),I=z,z=Math.min(C,N,w,O),N=Math.max(C,N,w,
O),C=z);I-=v;C-=da;K+=v;N+=da;E.left=I/F;E.top=1-C/y;E.right=K/F;E.bottom=1-N/y;J=I=Q(I);O=C=Q(C);ka=K=ra(K);pa=N=ra(N);J-=v;O-=da;ka+=v;pa+=da;0>I&&(I=0);0>C&&(C=0);K>F&&(K=F);N>y&&(N=y);0>J&&(J=0);0>O&&(O=0);ka>F&&(ka=F);pa>y&&(pa=y);G.left=I/F;G.top=1-C/y;G.right=K/F;G.bottom=1-N/y}else G.left=E.left=0,G.top=E.top=0,G.right=E.right=1,G.bottom=E.bottom=1;da=c&&((c.i||sa)&&a.rh(e[0].jb)||0!==v||0!==da||1!==c.opacity||c.type.za.Eo)||b&&!c&&1!==b.opacity;a.lp();if(da){p[M]||(p[M]=a.$d(F,y,this.b.V));
if(p[M].qg!==F||p[M].pg!==y)a.deleteTexture(p[M]),p[M]=a.$d(F,y,this.b.V);a.kd(0);a.jd(p[M]);X=pa-O;a.clearRect(J,y-O-X,ka-J,X);c?c.Cb(a):(a.cc(this.b.mc),a.$e(b.opacity),a.me(),a.translate(-va,-H),a.ue(),a.Kd(I,N,K,N,K,C,I,C,G));E.left=E.top=0;E.right=E.bottom=1;c&&(z=G.top,G.top=G.bottom,G.bottom=z);M=1;D=0}a.$e(1);v=e.length-1;var sa=a.Ql(e[v].jb)||!b&&!c&&!this.b.xc,ba=0;t=0;for(w=e.length;t<w;t++){p[M]||(p[M]=a.$d(F,y,this.b.V));if(p[M].qg!==F||p[M].pg!==y)a.deleteTexture(p[M]),p[M]=a.$d(F,y,
this.b.V);a.kd(e[t].jb);ba=e[t].index;a.lj(e[t].jb)&&(this.b.ma=!0);0!=t||da?(a.Vf(h,1/F,1/y,E.left,E.top,E.right,E.bottom,f,m,k,d,(k+r)/2,(d+n)/2,c?c.xa[ba]:b?b.xa[ba]:this.xa[ba]),a.cc(null),t!==v||sa?(a.jd(p[M]),X=pa-O,z=y-O-X,a.clearRect(J,z,ka-J,X)):(c?a.ne(c.nb,c.mb):b&&a.ne(b.nb,b.mb),a.jd(h)),a.cc(p[D]),a.me(),a.translate(-va,-H),a.ue(),a.Kd(I,N,K,N,K,C,I,C,G),t!==v||sa||a.cc(null)):(a.jd(p[M]),X=pa-O,z=y-O-X,a.clearRect(J,z,ka-J,X),c?(a.Vf(h,1/c.width,1/c.height,E.left,E.top,E.right,E.bottom,
f,m,k,d,(k+r)/2,(d+n)/2,c.xa[ba]),c.Cb(a)):(a.Vf(h,1/F,1/y,0,0,1,1,f,m,k,d,(k+r)/2,(d+n)/2,b?b.xa[ba]:this.xa[ba]),a.cc(b?this.b.mc:this.b.Yb),a.me(),a.translate(-va,-H),a.ue(),a.Kd(I,N,K,N,K,C,I,C,G)),E.left=E.top=0,E.right=E.bottom=1,c&&!sa&&(z=N,N=C,C=z));M=0===M?1:0;D=0===M?1:0}sa&&(a.kd(0),c?a.ne(c.nb,c.mb):b?a.ne(b.nb,b.mb):this.b.xc||(a.Wf(this.b.width,this.b.height),va=this.b.width/2,H=this.b.height/2,C=I=0,K=this.b.width,N=this.b.height),a.jd(h),a.cc(p[D]),a.me(),a.translate(-va,-H),a.ue(),
c&&1===e.length&&!da?a.Kd(I,C,K,C,K,N,I,N,G):a.Kd(I,N,K,N,K,C,I,C,G),a.cc(null))};f.prototype.ri=function(a){var b,c;b=0;for(c=this.L.length;b<c;b++)if(this.L[b].T===a)return this.L[b];return null};f.prototype.Nb=function(){var a,b,c,h={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.i,w:this.width,h:this.height,fv:this.pf,persist:this.ke,fx:[],layers:{}};a=0;for(b=this.I.length;a<b;a++)c=this.I[a],h.fx.push({name:c.name,active:c.Ya,params:this.xa[c.index]});a=0;for(b=this.L.length;a<b;a++)c=
this.L[a],h.layers[c.T.toString()]=c.Nb();return h};f.prototype.nc=function(a){var b,c,h,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.i=a.a;this.width=a.w;this.height=a.h;this.ke=a.persist;"undefined"!==typeof a.fv&&(this.pf=a.fv);var f=a.fx;b=0;for(c=f.length;b<c;b++)if(h=this.Ok(f[b].name))h.Ya=f[b].active,this.xa[h.index]=f[b].params;this.Qd();b=a.layers;for(e in b)b.hasOwnProperty(e)&&(a=this.ri(parseInt(e,10)))&&a.nc(b[e])};Ab=f;b.prototype.Qd=function(){this.X.length=0;var a,b,
c;a=0;for(b=this.I.length;a<b;a++)c=this.I[a],c.Ya&&this.X.push(c)};b.prototype.Ok=function(a){var b,c,h;b=0;for(c=this.I.length;b<c;b++)if(h=this.I[b],h.name===a)return h;return null};b.prototype.pr=function(){var a,b,c,h,f,k;b=a=0;for(c=this.uf.length;a<c;a++){h=this.uf[a];f=this.b.n[h[1]];k=this.b.qm(f);f=!0;if(!k||this.ab.pf)h=this.b.Be(h,this,!0),e.push(h),h.type.global&&(f=!1);f&&(this.uf[b]=this.uf[a],b++)}this.uf.length=b;this.b.kb();!this.b.q&&this.I.length&&(this.wb=this.Nr);this.sg=cb(this.wb);
this.b.m&&db(this,this.wb,this.b.m);this.Ld=!0};b.prototype.Uf=function(a,b){var c=Aa(this.c,a);0>c||(b&&this.Vc&&a.Lb&&a.Lb.right>=a.Lb.left&&(a.qa(),this.ac.update(a,a.Lb,null),a.Lb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(xa(this.c,c),this.yh(c)),this.Ld=!0)};b.prototype.mg=function(a,b){a.Xc=this.c.length;this.c.push(a);b&&this.Vc&&a.Lb&&a.ua();this.Ld=!0};b.prototype.Ut=function(a){this.c.unshift(a);this.yh(0)};b.prototype.zt=function(a,b,c){var h=a.yc();b=b.yc();xa(this.c,h);h<b&&b--;
c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.yh(h<b?h:b)};b.prototype.yh=function(a){-1===this.Rd?this.Rd=a:a<this.Rd&&(this.Rd=a);this.Ld=this.df=!0};b.prototype.vm=function(){if(this.df){-1===this.Rd&&(this.Rd=0);var a,b,c;if(this.Vc)for(a=this.Rd,b=this.c.length;a<b;++a)c=this.c[a],c.Xc=a,this.ac.ut(c.Lb);else for(a=this.Rd,b=this.c.length;a<b;++a)this.c[a].Xc=a;this.df=!1;this.Rd=-1}};b.prototype.jc=function(a){return this.Cs()*(this.b.xc||a?this.b.ng:1)};b.prototype.Cs=function(){return(this.scale*
this.ab.scale-1)*this.ob+1};b.prototype.Za=function(){return this.De?0:Ea(this.ab.i+this.i)};var c=[],t=[],w=[];b.prototype.An=function(){this.vm();this.ac.mj(this.Aa,this.Ba,this.La,this.Ka,w);if(!w.length)return k();if(1===w.length){var a=k();ya(a,w[0]);w.length=0;return a}for(var b=!0;1<w.length;){for(var a=w,c=void 0,h=void 0,e=void 0,f=void 0,m=void 0,c=0,h=a.length;c<h-1;c+=2){var e=a[c],f=a[c+1],m=k(),A=e,d=f,p=m,n=0,B=0,R=0,oa=A.length,v=d.length,z=void 0,M=void 0;for(p.length=oa+v;n<oa&&
B<v;++R)z=A[n],M=d[B],z.Xc<M.Xc?(p[R]=z,++n):(p[R]=M,++B);for(;n<oa;++n,++R)p[R]=A[n];for(;B<v;++B,++R)p[R]=d[B];b||(r(e),r(f));t.push(m)}1===h%2&&(b?(e=k(),ya(e,a[h-1]),t.push(e)):t.push(a[h-1]));ya(a,t);t.length=0;b=!1}a=w[0];w.length=0;return a};b.prototype.wc=function(a){this.le=this.Hk||1!==this.opacity||0!==this.wb;var b=this.b.canvas,c=a,h=!1;this.le&&(this.b.Mi||(this.b.Mi=document.createElement("canvas"),b=this.b.Mi,b.width=this.b.N,b.height=this.b.M,this.b.eo=b.getContext("2d"),h=!0),b=
this.b.Mi,c=this.b.eo,b.width!==this.b.N&&(b.width=this.b.N,h=!0),b.height!==this.b.M&&(b.height=this.b.M,h=!0),h&&(c.webkitImageSmoothingEnabled=this.b.V,c.mozImageSmoothingEnabled=this.b.V,c.msImageSmoothingEnabled=this.b.V,c.imageSmoothingEnabled=this.b.V),this.Pd&&c.clearRect(0,0,this.b.N,this.b.M));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Pd||(c.fillStyle="rgb("+this.Yd[0]+","+this.Yd[1]+","+this.Yd[2]+")",c.fillRect(0,0,this.b.N,this.b.M));c.save();this.De=!0;var h=this.ra(0,
0,!0,!0),e=this.ra(0,0,!1,!0);this.De=!1;this.b.hd&&(h=Math.round(h),e=Math.round(e));this.Xl(h,e,c);var f=this.jc();c.scale(f,f);c.translate(-h,-e);this.Vc?(this.uc.left=this.ac.fc(this.Aa),this.uc.top=this.ac.gc(this.Ba),this.uc.right=this.ac.fc(this.La),this.uc.bottom=this.ac.gc(this.Ka),this.Ld||!this.uc.gi(this.Ki)?(r(this.Ff),h=this.An(),this.Ld=!1,this.Ki.tg(this.uc)):h=this.Ff):h=this.c;for(var m,k=null,e=0,f=h.length;e<f;++e)m=h[e],m!==k&&(this.Kr(m,c),k=m);this.Vc&&(this.Ff=h);c.restore();
this.le&&(a.globalCompositeOperation=this.sg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};b.prototype.Kr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.qa();var c=a.Ca;c.right<this.Aa||c.bottom<this.Ba||c.left>this.La||c.top>this.Ka||(b.globalCompositeOperation=a.sg,a.wc(b))}};b.prototype.um=function(){this.De=!0;var a=this.ra(0,0,!0,!0),b=this.ra(0,0,!1,!0);this.De=!1;this.b.hd&&(a=Math.round(a),b=Math.round(b));this.Xl(a,b,null)};b.prototype.Xl=function(a,b,c){var h=this.jc();this.Aa=
a;this.Ba=b;this.La=a+1/h*this.b.N;this.Ka=b+1/h*this.b.M;a=this.Za();0!==a&&(c&&(c.translate(this.b.N/2,this.b.M/2),c.rotate(-a),c.translate(this.b.N/-2,this.b.M/-2)),this.Od.set(this.Aa,this.Ba,this.La,this.Ka),this.Od.offset((this.Aa+this.La)/-2,(this.Ba+this.Ka)/-2),this.Ap.pp(this.Od,a),this.Ap.Zm(this.Od),this.Od.offset((this.Aa+this.La)/2,(this.Ba+this.Ka)/2),this.Aa=this.Od.left,this.Ba=this.Od.top,this.La=this.Od.right,this.Ka=this.Od.bottom)};b.prototype.Cb=function(a){var b=0,c=0;if(this.le=
this.Hk||1!==this.opacity||0<this.X.length||0!==this.wb){this.b.mc||(this.b.mc=a.$d(this.b.N,this.b.M,this.b.V));if(this.b.mc.qg!==this.b.N||this.b.mc.pg!==this.b.M)a.deleteTexture(this.b.mc),this.b.mc=a.$d(this.b.N,this.b.M,this.b.V);a.jd(this.b.mc);this.Pd&&a.clear(0,0,0,0)}this.Pd||a.clear(this.Yd[0]/255,this.Yd[1]/255,this.Yd[2]/255,1);this.De=!0;var h=this.ra(0,0,!0,!0),b=this.ra(0,0,!1,!0);this.De=!1;this.b.hd&&(h=Math.round(h),b=Math.round(b));this.Xl(h,b,null);h=this.jc();a.me();a.scale(h,
h);a.hp(-this.Za());a.translate((this.Aa+this.La)/-2,(this.Ba+this.Ka)/-2);a.ue();this.Vc?(this.uc.left=this.ac.fc(this.Aa),this.uc.top=this.ac.gc(this.Ba),this.uc.right=this.ac.fc(this.La),this.uc.bottom=this.ac.gc(this.Ka),this.Ld||!this.uc.gi(this.Ki)?(r(this.Ff),b=this.An(),this.Ld=!1,this.Ki.tg(this.uc)):b=this.Ff):b=this.c;var e,f,m=null,c=0;for(e=b.length;c<e;++c)f=b[c],f!==m&&(this.Lr(b[c],a),m=f);this.Vc&&(this.Ff=b);this.le&&(b=this.X.length?this.X[0].jb:0,c=this.X.length?this.X[0].index:
0,0===this.X.length||1===this.X.length&&!a.Ql(b)&&1===this.opacity?(1===this.X.length?(a.kd(b),a.Vf(this.ab.Ag(),1/this.b.N,1/this.b.M,0,0,1,1,h,this.Za(),this.Aa,this.Ba,(this.Aa+this.La)/2,(this.Ba+this.Ka)/2,this.xa[c]),a.lj(b)&&(this.b.ma=!0)):a.kd(0),a.jd(this.ab.Ag()),a.$e(this.opacity),a.cc(this.b.mc),a.ne(this.nb,this.mb),a.me(),a.ue(),h=this.b.N/2,b=this.b.M/2,a.th(-h,b,h,b,h,-b,-h,-b),a.cc(null)):this.ab.Vl(a,this,null,this.ab.Ag()))};b.prototype.Lr=function(a,b){if(a.visible&&0!==a.width&&
0!==a.height){a.qa();var c=a.Ca;c.right<this.Aa||c.bottom<this.Ba||c.left>this.La||c.top>this.Ka||(a.Op?this.Mr(a,b):(b.kd(0),b.ne(a.nb,a.mb),a.Cb(b)))}};b.prototype.Mr=function(a,b){var c=a.X[0].jb,h=a.X[0].index,e=this.jc();if(1!==a.X.length||b.Ql(c)||b.Wt(c)||(a.i||a.d.Za())&&b.rh(c)||1!==a.opacity||a.type.za.Eo)this.ab.Vl(b,this,a,this.le?this.b.mc:this.ab.Ag()),b.me(),b.scale(e,e),b.hp(-this.Za()),b.translate((this.Aa+this.La)/-2,(this.Ba+this.Ka)/-2),b.ue();else{b.kd(c);b.ne(a.nb,a.mb);b.lj(c)&&
(this.b.ma=!0);var f=0,m=0,k=0,d=0;b.rh(c)&&(c=a.Ca,f=this.Na(c.left,c.top,!0,!0),m=this.Na(c.left,c.top,!1,!0),k=this.Na(c.right,c.bottom,!0,!0),c=this.Na(c.right,c.bottom,!1,!0),f/=windowWidth,m=1-m/windowHeight,k/=windowWidth,d=1-c/windowHeight);b.Vf(this.le?this.b.mc:this.ab.Ag(),1/a.width,1/a.height,f,m,k,d,e,this.Za(),this.Aa,this.Ba,(this.Aa+this.La)/2,(this.Ba+this.Ka)/2,a.xa[h]);a.Cb(b)}};b.prototype.ra=function(a,b,c,h){var e=this.b.devicePixelRatio;this.b.Pe&&(a*=e,b*=e);var e=this.b.Uo,
f=this.b.Vo,e=(this.ab.scrollX-e)*this.Jb+e,f=(this.ab.scrollY-f)*this.Kb+f,m=e,k=f,d=1/this.jc(!h);h?(m-=this.b.N*d/2,k-=this.b.M*d/2):(m-=this.b.width*d/2,k-=this.b.height*d/2);m+=a*d;k+=b*d;b=this.Za();0!==b&&(m-=e,k-=f,a=Math.cos(b),b=Math.sin(b),h=m*a-k*b,k=k*a+m*b,m=h+e,k+=f);return c?m:k};b.prototype.Na=function(a,b,c,e){var f=this.b.Uo,k=this.b.Vo,m=(this.ab.scrollX-f)*this.Jb+f,A=(this.ab.scrollY-k)*this.Kb+k,k=m,f=A,d=this.Za();if(0!==d){a-=m;b-=A;var r=Math.cos(-d),d=Math.sin(-d),n=a*r-
b*d;b=b*r+a*d;a=n+m;b+=A}m=1/this.jc(!e);e?(k-=this.b.N*m/2,f-=this.b.M*m/2):(k-=this.b.width*m/2,f-=this.b.height*m/2);k=(a-k)/m;f=(b-f)/m;a=this.b.devicePixelRatio;this.b.Pe&&!e&&(k/=a,f/=a);return c?k:f};b.prototype.Nb=function(){var a,b,c,e={s:this.scale,a:this.i,vl:this.Aa,vt:this.Ba,vr:this.La,vb:this.Ka,v:this.visible,bc:this.Yd,t:this.Pd,px:this.Jb,py:this.Kb,o:this.opacity,zr:this.ob,fx:[],instances:[]};a=0;for(b=this.I.length;a<b;a++)c=this.I[a],e.fx.push({name:c.name,active:c.Ya,params:this.xa[c.index]});
return e};b.prototype.nc=function(a){var b,c;this.scale=a.s;this.i=a.a;this.Aa=a.vl;this.Ba=a.vt;this.La=a.vr;this.Ka=a.vb;this.visible=a.v;this.Yd=a.bc;this.Pd=a.t;this.Jb=a.px;this.Kb=a.py;this.opacity=a.o;this.ob=a.zr;var e=a.fx;a=0;for(b=e.length;a<b;a++)if(c=this.Ok(e[a].name))c.Ya=e[a].active,this.xa[c.index]=e[a].params;this.Qd();this.c.sort(p);this.df=!0};Ob=b})();
(function(){function f(a,b){var d,c=a.length;switch(c){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0}}function p(a,b){return a.index-b.index}function b(a){var b,d,c,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(p);a.length>=h.length&&(h.length=a.length+1);h[a.length]||(h[a.length]=[]);e=h[a.length];b=0;for(d=e.length;b<d;b++)if(c=e[b],f(a,c))return c;e.push(a);return a}
function k(a,b){this.b=a;this.Dp={};this.pn={};this.Zk=!1;this.Fn=new ca;this.vk=[];this.ek=[];this.name=b[0];var d=b[1];this.de=[];var c,e;c=0;for(e=d.length;c<e;c++)this.Hn(d[c],null,this.de)}function r(a){this.type=a;this.c=[];this.Y=[];this.na=!0}function e(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.pa=[];this.oe=[];this.Dn=this.Jj=this.nm=this.Bi=this.group=this.vp=!1;this.lb=[];this.Hc=[];this.Fc=[];this.Dg="";this.rf=this.Bi=this.group=!1;this.Xh=null;d[1]&&(this.Dg=d[1][1].toLowerCase(),
this.group=!0,this.Bi=!!d[1][0],this.Xh=[],this.rf=this.Bi,this.b.Wd.push(this),this.b.vi[this.Dg]=this);this.Oc=d[2];this.T=d[4];this.group||(this.b.Ym[this.T.toString()]=this);var c=d[5];a=0;for(b=c.length;a<b;a++){var e=new Pb(this,c[a]);e.index=a;this.lb.push(e);this.Tm(e.type)}c=d[6];a=0;for(b=c.length;a<b;a++)e=new Qb(this,c[a]),e.index=a,this.Hc.push(e);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.Hn(d[a],this,this.Fc);this.Fi=!1;this.lb.length&&(this.Fi=null==this.lb[0].type&&
this.lb[0].gb==Y.prototype.e.Yp)}function a(a,b){var d,c,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Mc))for(d=0,c=a.Vb.length;d<c;d++)e=a.Vb[d],a!==e&&-1===b.indexOf(e)&&b.push(e)}function c(a,b){this.hc=a;this.sheet=a.sheet;this.b=a.b;this.J=[];this.ka=[];this.ya={};this.index=-1;this.kg=!1;this.gb=this.b.Td(b[1]);this.trigger=0<b[3];this.on=2===b[3];this.ed=b[4];this.vf=b[5];this.pt=b[6];this.T=b[7];this.b.lf[this.T.toString()]=this;-1===b[0]?(this.type=null,this.Sa=this.$l,this.ye=null,this.pc=-1):
(this.type=this.b.n[b[0]],this.Sa=this.pt?this.fu:this.Zl,b[2]?(this.ye=this.type.pi(b[2]),this.pc=this.type.Mk(b[2])):(this.ye=null,this.pc=-1),this.hc.parent&&this.hc.parent.tj());this.on&&(this.Sa=this.gu);if(10===b.length){var d,c,e=b[9];d=0;for(c=e.length;d<c;d++){var h=new Rb(this,e[d]);this.J.push(h)}this.ka.length=e.length}}function t(a,b){this.hc=a;this.sheet=a.sheet;this.b=a.b;this.J=[];this.ka=[];this.ya={};this.index=-1;this.kg=!1;this.gb=this.b.Td(b[1]);-1===b[0]?(this.type=null,this.Sa=
this.$l,this.ye=null,this.pc=-1):(this.type=this.b.n[b[0]],this.Sa=this.Zl,b[2]?(this.ye=this.type.pi(b[2]),this.pc=this.type.Mk(b[2])):(this.ye=null,this.pc=-1));this.T=b[3];this.b.hf[this.T.toString()]=this;if(6===b.length){var d,c,e=b[5];d=0;for(c=e.length;d<c;d++){var h=new Rb(this,e[d]);this.J.push(h)}this.ka.length=e.length}}function w(a,b){this.k=a;this.hc=a.hc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.bd=null;this.pe=0;this.get=null;this.dn=0;this.ab=null;this.key=0;this.object=null;
this.index=0;this.Ih=this.cf=this.Ih=this.cf=this.qn=this.He=this.Jh=null;this.Gc=!1;var d,c,e;switch(b[0]){case 0:case 7:this.bd=new Sb(this,b[1]);this.pe=0;this.get=this.Ls;break;case 1:this.bd=new Sb(this,b[1]);this.pe=0;this.get=this.Ms;break;case 5:this.bd=new Sb(this,b[1]);this.pe=0;this.get=this.Qs;break;case 3:case 8:this.dn=b[1];this.get=this.Js;break;case 6:this.ab=this.b.rl[b[1]];this.get=this.Rs;break;case 9:this.key=b[1];this.get=this.Ps;break;case 4:this.object=this.b.n[b[1]];this.get=
this.Ss;this.hc.Tm(this.object);this.k instanceof Qb?this.hc.tj():this.hc.parent&&this.hc.parent.tj();break;case 10:this.index=b[1];a.type.C?(this.get=this.Ns,this.Gc=!0):this.get=this.Os;break;case 11:this.Jh=b[1];this.He=null;this.get=this.Ks;break;case 2:case 12:this.qn=b[1];this.get=this.Is;break;case 13:for(this.get=this.Ts,this.cf=[],this.Ih=[],d=1,c=b.length;d<c;d++)e=new Rb(this.k,b[d]),this.cf.push(e),this.Ih.push(0)}}function g(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.pa=[];this.name=
d[1];this.Qj=d[2];this.Ai=d[3];this.Ng=!!d[4];this.Ei=!!d[5];this.T=d[6];this.b.ig[this.T.toString()]=this;this.data=this.Ai;this.parent?(this.Xe=this.Ng||this.Ei?-1:this.b.pu++,this.b.br.push(this)):(this.Xe=-1,this.b.bk.push(this))}function l(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.pa=[];this.Fg=null;this.$s=d[1];this.Ya=!0}function q(){this.xp=[];this.reset(null)}var h=[];k.prototype.toString=function(){return this.name};k.prototype.Hn=function(a,b,d){switch(a[0]){case 0:a=new Tb(this,
b,a);if(a.Oc)for(d.push(a),d=0,b=a.lb.length;d<b;d++)a.lb[d].trigger&&this.In(a,d);else a.Rn()?this.In(a,0):d.push(a);break;case 1:a=new Lb(this,b,a);d.push(a);break;case 2:a=new Ub(this,b,a),d.push(a)}};k.prototype.Fa=function(){var a,b;a=0;for(b=this.de.length;a<b;a++)this.de[a].Fa(a<b-1&&this.de[a+1].Fi)};k.prototype.rm=function(){this.vk.length=0;this.ek.length=0;this.Sm(this);this.ek.length=0};k.prototype.Sm=function(a){var b,d,c,e,h=a.vk,g=a.ek,f=this.Fn.Wc();b=0;for(d=f.length;b<d;++b)c=f[b],
e=c.Fg,!c.Ya||a===e||-1<g.indexOf(e)||(g.push(e),e.Sm(a),h.push(e))};k.prototype.Sa=function(a){this.b.Tv||(this.Zk=!0,a||(this.b.il=!0));var b,d;b=0;for(d=this.de.length;b<d;b++){var c=this.de[b];c.Sa();this.b.ok(c.pa);this.b.fe&&this.b.kb()}a||(this.b.il=!1)};k.prototype.In=function(a,b){a.Oc||this.b.Mj.push(a);var d,c,e=a.lb[b],h;h=e.type?e.type.name:"system";var g=(d=e.on)?this.pn:this.Dp;g[h]||(g[h]=[]);h=g[h];g=e.gb;if(d){if(e.J.length&&(e=e.J[0],1===e.type&&2===e.bd.type)){e=e.bd.value.toLowerCase();
d=0;for(c=h.length;d<c;d++)if(h[d].method==g){d=h[d].wg;d[e]?d[e].push([a,b]):d[e]=[[a,b]];return}d={};d[e]=[[a,b]];h.push({method:g,wg:d})}}else{d=0;for(c=h.length;d<c;d++)if(h[d].method==g){h[d].wg.push([a,b]);return}gc&&g===gc.prototype.e.gf?h.unshift({method:g,wg:[[a,b]]}):h.push({method:g,wg:[[a,b]]})}};Bb=k;r.prototype.Yk=function(){return this.na?this.type.c.length:this.c.length};r.prototype.Kc=function(){return this.na?this.type.c:this.c};r.prototype.qh=function(a){a&&(a.b.qb().Wb.Oc?(this.na&&
(this.c.length=0,ya(this.Y,a.type.c),this.na=!1),a=this.Y.indexOf(a),-1!==a&&(this.c.push(this.Y[a]),this.Y.splice(a,1))):(this.na=!1,this.c.length=1,this.c[0]=a))};jb=r;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";e.prototype.Fa=function(a){var c,d=this.parent;if(this.group)for(this.Jj=!0;d;){if(!d.group){this.Jj=!1;break}d=d.parent}this.nm=!this.Rn()&&(!this.parent||this.parent.group&&this.parent.Jj);this.Dn=!!a;this.oe=this.pa.slice(0);for(d=this.parent;d;){a=0;for(c=d.pa.length;a<
c;a++)this.Yq(d.pa[a]);d=d.parent}this.pa=b(this.pa);this.oe=b(this.oe);a=0;for(c=this.lb.length;a<c;a++)this.lb[a].Fa();a=0;for(c=this.Hc.length;a<c;a++)this.Hc[a].Fa();a=0;for(c=this.Fc.length;a<c;a++)this.Fc[a].Fa(a<c-1&&this.Fc[a+1].Fi)};e.prototype.ku=function(a){if(this.rf!==!!a){this.rf=!!a;var b;a=0;for(b=this.Xh.length;a<b;++a)this.Xh[a].Jp();0<b&&this.b.da.Ge&&this.b.da.Ge.rm()}};e.prototype.Tm=function(b){a(b,this.pa)};e.prototype.Yq=function(b){a(b,this.oe)};e.prototype.tj=function(){this.vp=
!0;this.parent&&this.parent.tj()};e.prototype.Rn=function(){return this.lb.length?this.lb[0].trigger:!1};e.prototype.Sa=function(){var a,b=!1,d,c=this.b,e=this.b.qb();e.Wb=this;var h=this.lb;this.Fi||(e.zk=!1);if(this.Oc){0===h.length&&(b=!0);e.Bb=0;for(a=h.length;e.Bb<a;e.Bb++)h[e.Bb].trigger||(d=h[e.Bb].Sa())&&(b=!0);(e.Te=b)&&this.Yl()}else{e.Bb=0;for(a=h.length;e.Bb<a;e.Bb++)if(d=h[e.Bb].Sa(),!d){e.Te=!1;this.nm&&c.fe&&c.kb();return}e.Te=!0;this.Yl()}this.Pr(e)};e.prototype.Pr=function(a){a.Te&&
this.Dn&&(a.zk=!0);this.nm&&this.b.fe&&this.b.kb()};e.prototype.du=function(a){this.b.qb().Wb=this;this.lb[a].Sa()&&(this.Yl(),this.b.qb().Te=!0)};e.prototype.Yl=function(){var a=this.b.qb(),b;a.Sb=0;for(b=this.Hc.length;a.Sb<b;a.Sb++)if(this.Hc[a.Sb].Sa())return;this.ip()};e.prototype.bu=function(){var a=this.b.qb(),b;for(b=this.Hc.length;a.Sb<b;a.Sb++)if(this.Hc[a.Sb].Sa())return;this.ip()};e.prototype.ip=function(){if(this.Fc.length){var a,b,c,e,h=this.Fc.length-1;this.b.Sl(this);if(this.vp)for(a=
0,b=this.Fc.length;a<b;a++)c=this.Fc[a],(e=!this.Jj||!this.group&&a<h)&&this.b.Rl(c.pa),c.Sa(),e?this.b.Tf(c.pa):this.b.ok(c.pa);else for(a=0,b=this.Fc.length;a<b;a++)this.Fc[a].Sa();this.b.$o()}};e.prototype.eu=function(){var a=this.b.qb();a.Wb=this;var b=!1,c;a.Bb=0;for(c=this.lb.length;a.Bb<c;a.Bb++)if(this.lb[a.Bb].Sa())b=!0;else if(!this.Oc)return!1;return this.Oc?b:!0};e.prototype.jt=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.lb[b].type===a.type)return!1;return!0};
Tb=e;c.prototype.Fa=function(){var a,b,c;a=0;for(b=this.J.length;a<b;a++)c=this.J[a],c.Fa(),c.Gc&&(this.kg=!0)};c.prototype.gu=function(){return!0};c.prototype.$l=function(){var a,b;a=0;for(b=this.J.length;a<b;a++)this.ka[a]=this.J[a].get();return Sa(this.gb.apply(this.b.ld,this.ka),this.vf)};c.prototype.fu=function(){var a,b;a=0;for(b=this.J.length;a<b;a++)this.ka[a]=this.J[a].get();a=this.gb.apply(this.ye?this.ye:this.type,this.ka);this.type.rd();return a};c.prototype.Zl=function(){var a,b,c,e,
h,g,f,k,q=this.type,r=q.ha(),l=this.hc.Oc&&!this.trigger;b=0;var p=q.Mc,s=q.C,u=q.zd,t=this.pc,w=-1<t,H=this.kg,G=this.J,E=this.ka,I=this.vf,J=this.gb,C;if(H)for(b=0,h=G.length;b<h;++b)g=G[b],g.Gc||(E[b]=g.get(0));else for(b=0,h=G.length;b<h;++b)E[b]=G[b].get(0);if(r.na){r.c.length=0;r.Y.length=0;C=q.c;a=0;for(e=C.length;a<e;++a){k=C[a];if(H)for(b=0,h=G.length;b<h;++b)g=G[b],g.Gc&&(E[b]=g.get(a));w?(b=0,s&&(b=k.type.of[u]),b=J.apply(k.H[t+b],E)):b=J.apply(k,E);(f=Sa(b,I))?r.c.push(k):l&&r.Y.push(k)}q.finish&&
q.finish(!0);r.na=!1;q.rd();return r.Yk()}c=0;C=(f=l&&!this.hc.jt(this))?r.Y:r.c;var O=!1;a=0;for(e=C.length;a<e;++a){k=C[a];if(H)for(b=0,h=G.length;b<h;++b)g=G[b],g.Gc&&(E[b]=g.get(a));w?(b=0,s&&(b=k.type.of[u]),b=J.apply(k.H[t+b],E)):b=J.apply(k,E);if(Sa(b,I))if(O=!0,f){if(r.c.push(k),p)for(b=0,h=k.siblings.length;b<h;b++)g=k.siblings[b],g.type.ha().c.push(g)}else{C[c]=k;if(p)for(b=0,h=k.siblings.length;b<h;b++)g=k.siblings[b],g.type.ha().c[c]=g;c++}else if(f){C[c]=k;if(p)for(b=0,h=k.siblings.length;b<
h;b++)g=k.siblings[b],g.type.ha().Y[c]=g;c++}else if(l&&(r.Y.push(k),p))for(b=0,h=k.siblings.length;b<h;b++)g=k.siblings[b],g.type.ha().Y.push(g)}C.length=c;if(p)for(s=q.Vb,a=0,e=s.length;a<e;a++)k=s[a].ha(),f?k.Y.length=c:k.c.length=c;c=O;if(f&&!O)for(a=0,e=r.c.length;a<e;a++){k=r.c[a];if(H)for(b=0,h=G.length;b<h;b++)g=G[b],g.Gc&&(E[b]=g.get(a));b=w?J.apply(k.H[t],E):J.apply(k,E);if(Sa(b,I)){O=!0;break}}q.finish&&q.finish(c||l);return l?O:r.Yk()};Pb=c;t.prototype.Fa=function(){var a,b,c;a=0;for(b=
this.J.length;a<b;a++)c=this.J[a],c.Fa(),c.Gc&&(this.kg=!0)};t.prototype.$l=function(){var a,b;a=0;for(b=this.J.length;a<b;a++)this.ka[a]=this.J[a].get();return this.gb.apply(this.b.ld,this.ka)};t.prototype.Zl=function(){var a=this.type.ha().Kc(),b=this.type.C,c=this.type.zd,e=this.pc,h=-1<e,g=this.kg,f=this.J,k=this.ka,r=this.gb,q,l,p,s,u,t;if(g)for(l=0,s=f.length;l<s;++l)u=f[l],u.Gc||(k[l]=u.get(0));else for(l=0,s=f.length;l<s;++l)k[l]=f[l].get(0);q=0;for(p=a.length;q<p;++q){t=a[q];if(g)for(l=0,
s=f.length;l<s;++l)u=f[l],u.Gc&&(k[l]=u.get(q));h?(l=0,b&&(l=t.type.of[c]),r.apply(t.H[e+l],k)):r.apply(t,k)}return!1};Qb=t;var s=[],u=-1;w.prototype.Fa=function(){var a,b;if(11===this.type)this.He=this.b.wn(this.Jh,this.hc.parent);else if(13===this.type)for(a=0,b=this.cf.length;a<b;a++)this.cf[a].Fa();this.bd&&this.bd.Fa()};w.prototype.xt=function(a){this.Gc||!a||a.za.uj||(this.Gc=!0)};w.prototype.np=function(){this.Gc=!0};w.prototype.Ra=function(){u++;s.length===u&&s.push(new Vb);return s[u]};w.prototype.Ja=
function(){u--};w.prototype.Ls=function(a){this.pe=a||0;a=this.Ra();this.bd.get(a);this.Ja();return a.data};w.prototype.Ms=function(a){this.pe=a||0;a=this.Ra();this.bd.get(a);this.Ja();return P(a.data)?a.data:""};w.prototype.Ss=function(){return this.object};w.prototype.Js=function(){return this.dn};w.prototype.Qs=function(a){this.pe=a||0;a=this.Ra();this.bd.get(a);this.Ja();return a.$a()?this.b.Bd(a.data):this.b.zg(a.data)};w.prototype.Rs=function(){return this.ab};w.prototype.Ps=function(){return this.key};
w.prototype.Os=function(){return this.index};w.prototype.Ns=function(a){a=a||0;var b=this.k.type,c=null,c=b.ha(),e=c.Kc();if(e.length)c=e[a%e.length].type;else if(c.Y.length)c=c.Y[a%c.Y.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.ji[b.zd]};w.prototype.Ks=function(){return this.He};w.prototype.Is=function(){return this.qn};w.prototype.Ts=function(){var a,b;a=0;for(b=this.cf.length;a<b;a++)this.Ih[a]=this.cf[a].get();return this.Ih};Rb=w;g.prototype.Fa=
function(){this.pa=b(this.pa)};g.prototype.bf=function(a){var b=this.b.vn();this.parent&&!this.Ng&&b?(this.Xe>=b.length&&(b.length=this.Xe+1),b[this.Xe]=a):this.data=a};g.prototype.Bg=function(){var a=this.b.vn();return!this.parent||this.Ng||!a||this.Ei?this.data:this.Xe>=a.length||"undefined"===typeof a[this.Xe]?this.Ai:a[this.Xe]};g.prototype.Sa=function(){!this.parent||this.Ng||this.Ei||this.bf(this.Ai)};Lb=g;l.prototype.toString=function(){return"include:"+this.Fg.toString()};l.prototype.Fa=function(){this.Fg=
this.b.Bk[this.$s];this.sheet.Fn.add(this);this.pa=b(this.pa);for(var a=this.parent;a;)a.group&&a.Xh.push(this),a=a.parent;this.Jp()};l.prototype.Sa=function(){this.parent&&this.b.sh(this.b.n);this.Fg.Zk||this.Fg.Sa(!0);this.parent&&this.b.Tf(this.b.n)};l.prototype.Jp=function(){for(var a=this.parent;a;){if(a.group&&!a.rf){this.Ya=!1;return}a=a.parent}this.Ya=!0};Ub=l;q.prototype.reset=function(a){this.Wb=a;this.Sb=this.Bb=0;this.xp.length=0;this.zk=this.Te=!1};Kb=q})();
(function(){function f(b,f){this.k=b;this.b=b.b;this.type=f[0];this.get=[this.as,this.Xr,this.ks,this.ns,this.Rr,this.ls,this.es,this.Ur,this.ds,this.js,this.Sr,this.hs,this.Vr,this.gs,this.bs,this.cs,this.Yr,this.Zr,this.Tr,this.ms,this.mn,this.$r,this.mn,this.Wr][this.type];var r=null;this.Ib=this.J=this.ka=this.gb=this.Fj=this.eb=this.first=this.value=null;this.pc=-1;this.Cd=null;this.ym=-1;this.He=this.Jh=null;this.vh=!1;switch(this.type){case 0:case 1:case 2:this.value=f[1];break;case 3:this.first=
new Sb(b,f[1]);break;case 18:this.first=new Sb(b,f[1]);this.eb=new Sb(b,f[2]);this.Fj=new Sb(b,f[3]);break;case 19:this.gb=this.b.Td(f[1]);this.gb!==Y.prototype.Db.random&&this.gb!==Y.prototype.Db.lr||this.k.np();this.ka=[];this.J=[];3===f.length?(r=f[2],this.ka.length=r.length+1):this.ka.length=1;break;case 20:this.Ib=this.b.n[f[1]];this.pc=-1;this.gb=this.b.Td(f[2]);this.vh=f[3];Xb.Function&&this.gb===Xb.Function.prototype.Db.Ju&&this.k.np();this.Cd=f[4]?new Sb(b,f[4]):null;this.ka=[];this.J=[];
6===f.length?(r=f[5],this.ka.length=r.length+1):this.ka.length=1;break;case 21:this.Ib=this.b.n[f[1]];this.vh=f[2];this.Cd=f[3]?new Sb(b,f[3]):null;this.ym=f[4];break;case 22:this.Ib=this.b.n[f[1]];this.Ib.pi(f[2]);this.pc=this.Ib.Mk(f[2]);this.gb=this.b.Td(f[3]);this.vh=f[4];this.Cd=f[5]?new Sb(b,f[5]):null;this.ka=[];this.J=[];7===f.length?(r=f[6],this.ka.length=r.length+1):this.ka.length=1;break;case 23:this.Jh=f[1],this.He=null}this.k.xt(this.Ib);4<=this.type&&17>=this.type&&(this.first=new Sb(b,
f[1]),this.eb=new Sb(b,f[2]));if(r){var e,a;e=0;for(a=r.length;e<a;e++)this.J.push(new Sb(b,r[e]))}}function p(b,f){this.type=b||W.ff;this.data=f||0;this.Mf=null;this.type==W.ff&&(this.data=Math.floor(this.data))}f.prototype.Fa=function(){23===this.type&&(this.He=this.k.b.wn(this.Jh,this.k.hc.parent));this.first&&this.first.Fa();this.eb&&this.eb.Fa();this.Fj&&this.Fj.Fa();this.Cd&&this.Cd.Fa();if(this.J){var b,f;b=0;for(f=this.J.length;b<f;b++)this.J[b].Fa()}};f.prototype.ms=function(b){this.ka[0]=
b;b=this.k.Ra();var f,r;f=0;for(r=this.J.length;f<r;f++)this.J[f].get(b),this.ka[f+1]=b.data;this.k.Ja();this.gb.apply(this.b.ld,this.ka)};f.prototype.mn=function(b){var f=this.Ib.ha(),r=f.Kc();if(!r.length)if(f.Y.length)r=f.Y;else{this.vh?b.Ob(""):b.la(0);return}this.ka[0]=b;b.Mf=this.Ib;b=this.k.Ra();var e,f=0;for(e=this.J.length;f<e;f++)this.J[f].get(b),this.ka[f+1]=b.data;f=this.k.pe;this.Cd&&(this.Cd.get(b),b.$a()&&(f=b.data,r=this.Ib.c));this.k.Ja();f%=r.length;0>f&&(f+=r.length);r=r[f];-1<
this.pc?(b=0,this.Ib.C&&(b=r.type.of[this.Ib.zd]),this.gb.apply(r.H[this.pc+b],this.ka)):this.gb.apply(r,this.ka)};f.prototype.$r=function(b){var f=this.Ib.ha(),r=f.Kc();if(!r.length)if(f.Y.length)r=f.Y;else{this.vh?b.Ob(""):b.la(0);return}f=this.k.pe;if(this.Cd){var e=this.k.Ra();this.Cd.get(e);if(e.$a()){f=e.data;r=this.Ib.c;f%=r.length;0>f&&(f+=r.length);r=r[f].Ma[this.ym];P(r)?b.Ob(r):b.A(r);this.k.Ja();return}this.k.Ja()}f%=r.length;0>f&&(f+=r.length);r=r[f];f=0;this.Ib.C&&(f=r.type.ji[this.Ib.zd]);
r=r.Ma[this.ym+f];P(r)?b.Ob(r):b.A(r)};f.prototype.as=function(b){b.type=W.ff;b.data=this.value};f.prototype.Xr=function(b){b.type=W.ef;b.data=this.value};f.prototype.ks=function(b){b.type=W.String;b.data=this.value};f.prototype.ns=function(b){this.first.get(b);b.$a()&&(b.data=-b.data)};f.prototype.Rr=function(b){this.first.get(b);var f=this.k.Ra();this.eb.get(f);b.$a()&&f.$a()&&(b.data+=f.data,f.Af()&&b.Jf());this.k.Ja()};f.prototype.ls=function(b){this.first.get(b);var f=this.k.Ra();this.eb.get(f);
b.$a()&&f.$a()&&(b.data-=f.data,f.Af()&&b.Jf());this.k.Ja()};f.prototype.es=function(b){this.first.get(b);var f=this.k.Ra();this.eb.get(f);b.$a()&&f.$a()&&(b.data*=f.data,f.Af()&&b.Jf());this.k.Ja()};f.prototype.Ur=function(b){this.first.get(b);var f=this.k.Ra();this.eb.get(f);b.$a()&&f.$a()&&(b.data/=f.data,b.Jf());this.k.Ja()};f.prototype.ds=function(b){this.first.get(b);var f=this.k.Ra();this.eb.get(f);b.$a()&&f.$a()&&(b.data%=f.data,f.Af()&&b.Jf());this.k.Ja()};f.prototype.js=function(b){this.first.get(b);
var f=this.k.Ra();this.eb.get(f);b.$a()&&f.$a()&&(b.data=Math.pow(b.data,f.data),f.Af()&&b.Jf());this.k.Ja()};f.prototype.Sr=function(b){this.first.get(b);var f=this.k.Ra();this.eb.get(f);b.$a()?f.Gi()?b.Ob(b.data.toString()+f.data):b.data&&f.data?b.la(1):b.la(0):b.Gi()&&(b.data=f.Gi()?b.data+f.data:b.data+(Math.round(1E10*f.data)/1E10).toString());this.k.Ja()};f.prototype.hs=function(b){this.first.get(b);var f=this.k.Ra();this.eb.get(f);b.$a()&&f.$a()&&(b.data||f.data?b.la(1):b.la(0));this.k.Ja()};
f.prototype.Tr=function(b){this.first.get(b);b.data?this.eb.get(b):this.Fj.get(b)};f.prototype.Vr=function(b){this.first.get(b);var f=this.k.Ra();this.eb.get(f);b.la(b.data===f.data?1:0);this.k.Ja()};f.prototype.gs=function(b){this.first.get(b);var f=this.k.Ra();this.eb.get(f);b.la(b.data!==f.data?1:0);this.k.Ja()};f.prototype.bs=function(b){this.first.get(b);var f=this.k.Ra();this.eb.get(f);b.la(b.data<f.data?1:0);this.k.Ja()};f.prototype.cs=function(b){this.first.get(b);var f=this.k.Ra();this.eb.get(f);
b.la(b.data<=f.data?1:0);this.k.Ja()};f.prototype.Yr=function(b){this.first.get(b);var f=this.k.Ra();this.eb.get(f);b.la(b.data>f.data?1:0);this.k.Ja()};f.prototype.Zr=function(b){this.first.get(b);var f=this.k.Ra();this.eb.get(f);b.la(b.data>=f.data?1:0);this.k.Ja()};f.prototype.Wr=function(b){var f=this.He.Bg();ha(f)?b.A(f):b.Ob(f)};Sb=f;p.prototype.Af=function(){return this.type===W.ef};p.prototype.$a=function(){return this.type===W.ff||this.type===W.ef};p.prototype.Gi=function(){return this.type===
W.String};p.prototype.Jf=function(){this.Af()||(this.Gi()&&(this.data=parseFloat(this.data)),this.type=W.ef)};p.prototype.la=function(b){this.type=W.ff;this.data=Math.floor(b)};p.prototype.A=function(b){this.type=W.ef;this.data=b};p.prototype.Ob=function(b){this.type=W.String;this.data=b};p.prototype.ou=function(b){ha(b)?(this.type=W.ef,this.data=b):P(b)?(this.type=W.String,this.data=b.toString()):(this.type=W.ff,this.data=0)};Vb=p;W={ff:0,ef:1,String:2}})();function Y(f){this.b=f;this.Rb=[]}
Y.prototype.Nb=function(){var f={},p,b,k,r,e,a,c,t;f.waits=[];var w=f.waits,g;p=0;for(b=this.Rb.length;p<b;p++){a=this.Rb[p];g={t:a.time,st:a.up,s:a.gm,ev:a.nf.T,sm:[],sols:{}};a.nf.Hc[a.Sb]&&(g.act=a.nf.Hc[a.Sb].T);k=0;for(r=a.pa.length;k<r;k++)g.sm.push(a.pa[k].T);for(e in a.ub)if(a.ub.hasOwnProperty(e)){c=this.b.n[parseInt(e,10)];t={sa:a.ub[e].qj,insts:[]};k=0;for(r=a.ub[e].Dd.length;k<r;k++)t.insts.push(a.ub[e].Dd[k].uid);g.sols[c.T.toString()]=t}w.push(g)}return f};
Y.prototype.nc=function(f){f=f.waits;var p,b,k,r,e,a,c,t,w,g,l;p=this.Rb.length=0;for(b=f.length;p<b;p++)if(a=f[p],t=this.b.Ym[a.ev.toString()]){w=-1;k=0;for(r=t.Hc.length;k<r;k++)if(t.Hc[k].T===a.act){w=k;break}if(-1!==w){c={ub:{},pa:[],wk:!1};c.time=a.t;c.up=a.st||"";c.gm=!!a.s;c.nf=t;c.Sb=w;k=0;for(r=a.sm.length;k<r;k++)(t=this.b.ti(a.sm[k]))&&c.pa.push(t);for(e in a.sols)if(a.sols.hasOwnProperty(e)&&(t=this.b.ti(parseInt(e,10)))){w=a.sols[e];g={qj:w.sa,Dd:[]};k=0;for(r=w.insts.length;k<r;k++)(l=
this.b.si(w.insts[k]))&&g.Dd.push(l);c.ub[t.index.toString()]=g}this.Rb.push(c)}}};
(function(){function f(){}function p(){}function b(){}var k=Y.prototype;f.prototype.Gm=function(){return!0};f.prototype.Dq=function(){return!0};f.prototype.Rq=function(){var a=this.b.qi().ya;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,e=this.b.cg;a.TriggerOnce_lastTick=e;return this.b.ql||b!==e-1};f.prototype.Wp=function(a,b,e){return Wb(a.Bg(),b,e)};f.prototype.Yp=function(){var a=this.b.qb();return a.zk?!1:!a.Te};f.prototype.Hm=function(){return!0};
f.prototype.oq=function(){return!0};f.prototype.Xj=function(){return!0};f.prototype.Eq=function(){return!0};f.prototype.Vj=function(){return!0};f.prototype.Rp=function(a,b,e){return Ja(U(a),U(e))<=U(b)};f.prototype.aq=function(a,b){return La(U(a),U(b))};f.prototype.Zp=function(a,b,e){a=Ga(a);b=Ga(b);e=Ga(e);return La(e,b)?La(a,b)&&!La(a,e):!(!La(a,b)&&La(a,e))};k.e=new f;p.prototype.jq=function(a){if(!this.b.Df&&!this.b.ze){var b=this.b.Zb.indexOf(this.b.da);if(!a||0!==b)if(a||b!==this.b.Zb.length-
1)this.b.ze=this.b.Zb[b+(a?-1:1)]}};p.prototype.Qq=function(a,b){0===a.Qj?ha(b)?a.bf(b):a.bf(parseFloat(b)):1===a.Qj&&a.bf(b.toString())};p.prototype.Qp=function(a,b){0===a.Qj?ha(b)?a.bf(a.Bg()+b):a.bf(a.Bg()+parseFloat(b)):1===a.Qj&&a.bf(a.Bg()+b.toString())};var r=[],e=[];p.prototype.Sq=function(a){if(!(0>a)){var b,f,k,g=this.b.qb(),l;l=r.length?r.pop():{ub:{},pa:[]};l.wk=!1;l.time=this.b.lc.ea+a;l.up="";l.gm=!1;l.nf=g.Wb;l.Sb=g.Sb+1;a=0;for(b=this.b.n.length;a<b;a++)k=this.b.n[a],f=k.ha(),f.na&&
-1===g.Wb.pa.indexOf(k)||(l.pa.push(k),k=void 0,k=e.length?e.pop():{Dd:[]},k.qj=!1,k.qj=f.na,ya(k.Dd,f.c),l.ub[a.toString()]=k);this.Rb.push(l);return!0}};p.prototype.Jq=function(){var a,b,e;a=0;for(b=this.b.bk.length;a<b;a++)e=this.b.bk[a],e.data=e.Ai};p.prototype.Kq=function(){if(!this.b.Df&&!this.b.ze&&this.b.da){this.b.ze=this.b.da;var a,b,e;a=0;for(b=this.b.Wd.length;a<b;a++)e=this.b.Wd[a],e.ku(e.Bi)}};p.prototype.Lq=function(a){this.b.rj=a};p.prototype.iq=function(a){this.b.Vg=a};k.fa=new p;
b.prototype["int"]=function(a,b){P(b)?(a.la(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.la(b)};b.prototype["float"]=function(a,b){P(b)?(a.A(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.A(b)};b.prototype.random=function(a,b,e){void 0===e?a.A(Math.random()*b):a.A(Math.random()*(e-b)+b)};b.prototype.sqrt=function(a,b){a.A(Math.sqrt(b))};b.prototype.abs=function(a,b){a.A(Math.abs(b))};b.prototype.round=function(a,b){a.la(Math.round(b))};b.prototype.floor=function(a,b){a.la(Math.floor(b))};b.prototype.ceil=
function(a,b){a.la(Math.ceil(b))};b.prototype.sin=function(a,b){a.A(Math.sin(U(b)))};b.prototype.cos=function(a,b){a.A(Math.cos(U(b)))};b.prototype.tan=function(a,b){a.A(Math.tan(U(b)))};b.prototype.asin=function(a,b){a.A(Ca(Math.asin(b)))};b.prototype.acos=function(a,b){a.A(Ca(Math.acos(b)))};b.prototype.atan=function(a,b){a.A(Ca(Math.atan(b)))};b.prototype.exp=function(a,b){a.A(Math.exp(b))};b.prototype.log10=function(a,b){a.A(Math.log(b)/Math.LN10)};b.prototype.max=function(a){var b=arguments[1];
"number"!==typeof b&&(b=0);var e,f,g;e=2;for(f=arguments.length;e<f;e++)g=arguments[e],"number"===typeof g&&b<g&&(b=g);a.A(b)};b.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var e,f,g;e=2;for(f=arguments.length;e<f;e++)g=arguments[e],"number"===typeof g&&b>g&&(b=g);a.A(b)};b.prototype.Ee=function(a){a.A(this.b.Ee)};b.prototype.dg=function(a){a.A(this.b.dg)};b.prototype.time=function(a){a.A(this.b.lc.ea)};b.prototype.cg=function(a){a.la(this.b.cg)};b.prototype.Xi=function(a){a.la(this.b.Xi)};
b.prototype.Ik=function(a){a.la(this.b.Ik)};b.prototype.i=function(a,b,e,f,g){a.A(Ca(Ia(b,e,f,g)))};b.prototype.find=function(a,b,e){P(b)&&P(e)?a.la(b.search(new RegExp(Za(e),"i"))):a.la(-1)};b.prototype.left=function(a,b,e){a.Ob(P(b)?b.substr(0,e):"")};b.prototype.right=function(a,b,e){a.Ob(P(b)?b.substr(b.length-e):"")};b.prototype.replace=function(a,b,e,f){P(b)&&P(e)&&P(f)?a.Ob(b.replace(new RegExp(Za(e),"gi"),f)):a.Ob(P(b)?b:"")};b.prototype.trim=function(a,b){a.Ob(P(b)?b.trim():"")};b.prototype.lr=
function(a){var b=Q(Math.random()*(arguments.length-1));a.ou(arguments[b+1])};b.prototype.qk=function(a){a.A(this.b.qk/1E3)};b.prototype.Ri=function(a){a.A(this.b.Ri)};k.Db=new b;k.cu=function(){var a,b,f,k,g,l,q=this.b.qb();a=0;for(f=this.Rb.length;a<f;a++){k=this.Rb[a];if(-1===k.time){if(!k.gm)continue}else if(k.time>this.b.lc.ea)continue;q.Wb=k.nf;q.Sb=k.Sb;q.Bb=0;for(b in k.ub)k.ub.hasOwnProperty(b)&&(g=this.b.n[parseInt(b,10)].ha(),l=k.ub[b],g.na=l.qj,ya(g.c,l.Dd),g=l,g.Dd.length=0,e.push(g));
k.nf.bu();this.b.ok(k.pa);k.wk=!0}b=a=0;for(f=this.Rb.length;a<f;a++)k=this.Rb[a],this.Rb[b]=k,k.wk?(Ua(k.ub),k.pa.length=0,r.push(k)):b++;this.Rb.length=b}})();
(function(){ib=function(f,b){var k=f[1],r=f[3],e=f[4],a=f[5],c=f[6],t=f[7],w=f[8];b.e||(b.e={});b.fa||(b.fa={});b.Db||(b.Db={});var g=b.e,l=b.fa,q=b.Db;r&&(g.Ou=function(a,b){return Wb(this.x,a,b)},g.Pu=function(a,b){return Wb(this.y,a,b)},g.Vu=function(){var a=this.d;this.qa();var b=this.Ca;return!(b.right<a.Aa||b.bottom<a.Ba||b.left>a.La||b.top>a.Ka)},g.Wu=function(){this.qa();var a=this.Ca,b=this.b.da;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},g.iv=function(a,b,c){var e=this.ha(),
f=e.Kc();if(!f.length)return!1;var d=f[0],g=d,n=Ra(d.x,d.y,b,c),k,q,r;k=1;for(q=f.length;k<q;k++)if(d=f[k],r=Ra(d.x,d.y,b,c),0===a&&r<n||1===a&&r>n)n=r,g=d;e.qh(g);return!0},l.Av=function(a){this.x!==a&&(this.x=a,this.ua())},l.Bv=function(a){this.y!==a&&(this.y=a,this.ua())},l.Pq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.ua()},l.wv=function(a,b){var c=a.Ds(this);if(c){var e;c.Qk?(e=c.Qk(b,!0),c=c.Qk(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.ua()}},
l.$u=function(a){0!==a&&(this.x+=Math.cos(this.i)*a,this.y+=Math.sin(this.i)*a,this.ua())},l.Zu=function(a,b){0!==b&&(this.x+=Math.cos(U(a))*b,this.y+=Math.sin(U(a))*b,this.ua())},q.Nm=function(a){a.A(this.x)},q.Om=function(a){a.A(this.y)},q.Ee=function(a){a.A(this.b.Nk(this))});e&&(g.Nu=function(a,b){return Wb(this.width,a,b)},g.Ku=function(a,b){return Wb(this.height,a,b)},l.zv=function(a){this.width!==a&&(this.width=a,this.ua())},l.uv=function(a){this.height!==a&&(this.height=a,this.ua())},l.xv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.ua()},q.Fv=function(a){a.A(this.width)},q.Ru=function(a){a.A(this.height)},q.Gu=function(a){this.qa();a.A(this.Ca.left)},q.Iu=function(a){this.qa();a.A(this.Ca.top)},q.Hu=function(a){this.qa();a.A(this.Ca.right)},q.Fu=function(a){this.qa();a.A(this.Ca.bottom)});a&&(g.Rp=function(a,b){return Ja(this.i,U(b))<=U(a)},g.aq=function(a){return La(this.i,U(a))},g.Zp=function(a,b){var c=Ga(a),e=Ga(b),f=Ea(this.i);return La(e,
c)?La(f,c)&&!La(f,e):!(!La(f,c)&&La(f,e))},l.qv=function(a){a=U(Da(a));isNaN(a)||this.i===a||(this.i=a,this.ua())},l.mv=function(a){0===a||isNaN(a)||(this.i+=U(a),this.i=Ea(this.i),this.ua())},l.nv=function(a){0===a||isNaN(a)||(this.i-=U(a),this.i=Ea(this.i),this.ua())},l.ov=function(a,b){var c=Ka(this.i,U(b),U(a));isNaN(c)||this.i===c||(this.i=c,this.ua())},l.pv=function(a,b,c){a=Ka(this.i,Math.atan2(c-this.y,b-this.x),U(a));isNaN(a)||this.i===a||(this.i=a,this.ua())},l.yv=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.i===c||(this.i=c,this.ua())},q.Eu=function(a){a.A(Fa(this.i))});k||(g.Lu=function(a,b,c){return Wb(this.Ma[a],b,c)},g.Tu=function(a){return this.Ma[a]},g.jv=function(a,b){var c=this.ha(),e=c.Kc();if(!e.length)return!1;var f=e[0],d=f,g=f.Ma[b],n,k,r;n=1;for(k=e.length;n<k;n++)if(f=e[n],r=f.Ma[b],0===a&&r<g||1===a&&r>g)g=r,d=f;c.qh(d);return!0},g.hv=function(a){var b,c,e,f,d;if(this.b.qi().vf){d=this.ha();if(d.na)for(d.na=!1,d.c.length=0,d.Y.length=0,e=this.c,b=0,c=e.length;b<
c;b++)f=e[b],f.uid===a?d.Y.push(f):d.c.push(f);else{e=b=0;for(c=d.c.length;b<c;b++)f=d.c[b],d.c[e]=f,f.uid===a?d.Y.push(f):e++;d.c.length=e}this.rd();return!!d.c.length}f=this.b.si(a);if(!f)return!1;d=this.ha();if(!d.na&&-1===d.c.indexOf(f))return!1;if(this.C)for(a=f.type.ta,b=0,c=a.length;b<c;b++){if(a[b]===this)return d.qh(f),this.rd(),!0}else if(f.type===this)return d.qh(f),this.rd(),!0;return!1},g.qq=function(){return!0},g.rq=function(){return!0},l.vv=function(a,b){var c=this.Ma;ha(c[a])?c[a]=
ha(b)?b:parseFloat(b):P(c[a])&&(c[a]=P(b)?b:b.toString())},l.Du=function(a,b){var c=this.Ma;ha(c[a])?c[a]=ha(b)?c[a]+b:c[a]+parseFloat(b):P(c[a])&&(c[a]=P(b)?c[a]+b:c[a]+b.toString())},l.Cv=function(a,b){var c=this.Ma;ha(c[a])&&(c[a]=ha(b)?c[a]-b:c[a]-parseFloat(b))},l.rv=function(a,b){this.Ma[a]=b?1:0},l.Dv=function(a){this.Ma[a]=1-this.Ma[a]},l.Xp=function(){this.b.Sd(this)},l.hq||(l.hq=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.Oi(this,b,!0);this.pd&&this.pd();if(this.H)for(a=
0,b=this.H.length;a<b;++a)c=this.H[a],c.pd&&c.pd()}),q.Qu=function(a){var b=a.Mf.c.length,c,e,f;c=0;for(e=this.b.Jc.length;c<e;c++)f=this.b.Jc[c],a.Mf.C?0<=f.type.ta.indexOf(a.Mf)&&b++:f.type===a.Mf&&b++;a.la(b)},q.lv=function(a){a.la(a.Mf.ha().Kc().length)},q.Ev=function(a){a.la(this.uid)},q.Su=function(a){a.la(this.Cg())},q.Sp||(q.Sp=function(a){a.Ob(JSON.stringify(this.b.am(this,!0)))}));c&&(g.fq=function(){return this.visible},l.$j=function(a){!a!==!this.visible&&(this.visible=a,this.b.ma=!0)},
g.Mu=function(a,b){return Wb(eb(100*this.opacity),a,b)},l.Oq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ma=!0)},q.Opacity=function(a){a.A(eb(100*this.opacity))});t&&(g.Uu=function(a){return a?this.d===a:!1},g.kv=function(a){var b=this.ha(),c=b.Kc();if(!c.length)return!1;var e=c[0],f=e,d,g;d=1;for(g=c.length;d<g;d++)if(e=c[d],0===a){if(e.d.index>f.d.index||e.d.index===f.d.index&&e.yc()>f.yc())f=e}else if(e.d.index<f.d.index||e.d.index===f.d.index&&e.yc()<f.yc())f=
e;b.qh(f);return!0},l.cv=function(){var a=this.d,b=a.c;b.length&&b[b.length-1]===this||(a.Uf(this,!1),a.mg(this,!1),this.b.ma=!0)},l.av=function(){var a=this.d,b=a.c;b.length&&b[0]===this||(a.Uf(this,!1),a.Ut(this),this.b.ma=!0)},l.bv=function(a){a&&a!=this.d&&(this.d.Uf(this,!0),this.d=a,a.mg(this,!0),this.b.ma=!0)},l.Hv=function(a,b){var c=0===a;if(b){var e=b.ys(this);e&&e.uid!==this.uid&&(this.d.index!==e.d.index&&(this.d.Uf(this,!0),this.d=e.d,e.d.mg(this,!0)),this.d.zt(this,e,c),this.b.ma=!0)}},
q.Yu=function(a){a.la(this.d.Io)},q.Xu=function(a){a.Ob(this.d.name)},q.Gv=function(a){a.la(this.yc())});w&&(l.sv=function(a,b){if(this.b.q){var c=this.type.Pk(b);if(!(0>c)){var e=1===a;this.Ud[c]!==e&&(this.Ud[c]=e,this.Qd(),this.b.ma=!0)}}},l.tv=function(a,b,c){if(this.b.q){var e=this.type.Pk(a);0>e||(a=this.type.I[e],e=this.xa[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.q.Hs(a.jb,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Ya&&(this.b.ma=!0))))}})};Cb=function(){this.jk=this.Rh=!0;this.type.Lh=!0;this.b.ma=
!0;var f,b,k=this.hk;f=0;for(b=k.length;f<b;++f)k[f](this);this.d.Vc&&this.qa()};Db=function(f){f&&this.hk.push(f)};Fb=function(){if(this.Rh){var f=this.Ca,b=this.Ub;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.Fb*this.width,-this.Gb*this.height);this.i?(f.offset(-this.x,-this.y),b.pp(f,this.i),b.offset(this.x,this.y),b.Zm(f)):b.Yf(f);f.normalize();this.Rh=!1;this.zu()}};var f=new T(0,0,0,0);Gb=function(){if(this.d.Vc){var p=this.d.ac,b=this.Ca;f.set(p.fc(b.left),p.gc(b.top),
p.fc(b.right),p.gc(b.bottom));this.Lb.gi(f)||(this.Lb.right<this.Lb.left?p.update(this,null,f):p.update(this,this.Lb,f),this.Lb.tg(f),this.d.Ld=!0)}};Hb=function(){if(this.jk&&this.$c){this.qa();var p=this.type.rg,b=this.Ca;f.set(p.fc(b.left),p.gc(b.top),p.fc(b.right),p.gc(b.bottom));this.qc.gi(f)||(this.qc.right<this.qc.left?p.update(this,null,f):p.update(this,this.qc,f),this.qc.tg(f),this.jk=!1)}};Eb=function(f,b){return this.Ca.fb(f,b)&&this.Ub.fb(f,b)?this.Z&&!this.Z.zf()?(this.Z.kf(this.width,
this.height,this.i),this.Z.fb(f-this.x,b-this.y)):!0:!1};yb=function(){this.type.Oj();return this.Me};Ib=function(){this.d.vm();return this.Xc};Jb=function(){this.X.length=0;var f,b;f=0;for(b=this.Ud.length;f<b;f++)this.Ud[f]&&this.X.push(this.type.I[f]);this.Op=!!this.X.length};zb=function(){return"Inst"+this.ep};lb=function(f){if(f&&f.Mc&&f.type!=this){var b,k,r;b=0;for(k=f.siblings.length;b<k;b++)if(r=f.siblings[b],r.type==this)return r}f=this.ha().Kc();return f.length?f[0]:null};mb=function(f){var b=
this.ha().Kc();return b.length?b[f.Cg()%b.length]:null};kb=function(){if(this.ag&&!this.C){var f,b;f=0;for(b=this.c.length;f<b;f++)this.c[f].Me=f;var k=f,r=this.b.Jc;f=0;for(b=r.length;f<b;++f)r[f].type===this&&(r[f].Me=k++);this.ag=!1}};wb=function(f){if(f<this.c.length)return this.c[f];f-=this.c.length;var b=this.b.Jc,k,r;k=0;for(r=b.length;k<r;++k)if(b[k].type===this){if(0===f)return b[k];--f}return null};nb=function(){return this.qe[this.wd]};ob=function(){this.wd++;this.wd===this.qe.length?this.qe.push(new jb(this)):
this.qe[this.wd].na=!0};pb=function(){this.wd++;this.wd===this.qe.length&&this.qe.push(new jb(this));var f=this.qe[this.wd],b=this.qe[this.wd-1];b.na?f.na=!0:(f.na=!1,ya(f.c,b.c),ya(f.Y,b.Y))};rb=function(){this.wd--};sb=function(f){var b,k,r,e,a,c=0;if(!this.C)for(b=0,k=this.ta.length;b<k;b++)for(a=this.ta[b],r=0,e=a.Ga.length;r<e;r++){if(f===a.Ga[r].name)return this.ya.lastBehIndex=c,a.Ga[r];c++}b=0;for(k=this.Ga.length;b<k;b++){if(f===this.Ga[b].name)return this.ya.lastBehIndex=c,this.Ga[b];c++}return null};
tb=function(f){return this.pi(f)?this.ya.lastBehIndex:-1};ub=function(f){var b,k;b=0;for(k=this.I.length;b<k;b++)if(this.I[b].name===f)return b;return-1};vb=function(){if(this.Mc&&!this.C){var f,b,k,r,e,a,c;this.Oj();a=this.ha();var t=a.na,w=(f=this.b.qb())&&f.Wb&&f.Wb.Oc;f=0;for(b=this.Vb.length;f<b;f++)if(e=this.Vb[f],e!==this&&(e.Oj(),c=e.ha(),c.na=t,!t)){c.c.length=a.c.length;k=0;for(r=a.c.length;k<r;k++)c.c[k]=e.xn(a.c[k].Me);if(w)for(c.Y.length=a.Y.length,k=0,r=a.Y.length;k<r;k++)c.Y[k]=e.xn(a.Y[k].Me)}}};
xb=function(){return"Type"+this.T};Wb=function(f,b,k){if("undefined"===typeof f||"undefined"===typeof k)return!1;switch(b){case 0:return f===k;case 1:return f!==k;case 2:return f<k;case 3:return f<=k;case 4:return f>k;case 5:return f>=k;default:return!1}}})();var ec={};function hc(f){this.b=f}
(function(){function f(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function p(a){a=a.toLowerCase();return S.hasOwnProperty(a)&&S[a].length?S[a][0].ic():y.destination}function b(){return y.createGain?y.createGain():y.createGainNode()}function k(a){return y.createDelay?y.createDelay(a):y.createDelayNode(a)}function r(a){a.start?a.start(0):a.noteOn(0)}function e(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function c(a,
c,d,e,f,g){this.type="filter";this.Pc=[a,c,d,e,f,g];this.U=b();this.G=b();this.G.gain.value=g;this.D=b();this.D.gain.value=1-g;this.Ha=y.createBiquadFilter();this.Ha.type="number"===typeof this.Ha.type?a:pc[a];this.Ha.frequency.value=c;this.Ha.detune&&(this.Ha.detune.value=d);this.Ha.Q.value=e;this.Ha.gain.value=f;this.U.connect(this.Ha);this.U.connect(this.D);this.Ha.connect(this.G)}function t(a,c,d){this.type="delay";this.Pc=[a,c,d];this.U=b();this.G=b();this.G.gain.value=d;this.D=b();this.D.gain.value=
1-d;this.eh=b();this.vc=k(a);this.vc.delayTime.value=a;this.ei=b();this.ei.gain.value=c;this.U.connect(this.eh);this.U.connect(this.D);this.eh.connect(this.G);this.eh.connect(this.vc);this.vc.connect(this.ei);this.ei.connect(this.eh)}function w(a,c,d,e){this.type="convolve";this.Pc=[c,d,e];this.U=b();this.G=b();this.G.gain.value=d;this.D=b();this.D.gain.value=1-d;this.Ae=y.createConvolver();a&&(this.Ae.normalize=c,this.Ae.buffer=a);this.U.connect(this.Ae);this.U.connect(this.D);this.Ae.connect(this.G)}
function g(a,c,d,e,f){this.type="flanger";this.Pc=[a,c,d,e,f];this.U=b();this.D=b();this.D.gain.value=1-f/2;this.G=b();this.G.gain.value=f/2;this.ki=b();this.ki.gain.value=e;this.vc=k(a+c);this.vc.delayTime.value=a;this.cb=y.createOscillator();this.cb.frequency.value=d;this.$b=b();this.$b.gain.value=c;this.U.connect(this.vc);this.U.connect(this.D);this.vc.connect(this.G);this.vc.connect(this.ki);this.ki.connect(this.vc);this.cb.connect(this.$b);this.$b.connect(this.vc.delayTime);r(this.cb)}function l(a,
c,d,e,f,g){this.type="phaser";this.Pc=[a,c,d,e,f,g];this.U=b();this.D=b();this.D.gain.value=1-g/2;this.G=b();this.G.gain.value=g/2;this.Ha=y.createBiquadFilter();this.Ha.type="number"===typeof this.Ha.type?7:"allpass";this.Ha.frequency.value=a;this.Ha.detune&&(this.Ha.detune.value=c);this.Ha.Q.value=d;this.cb=y.createOscillator();this.cb.frequency.value=f;this.$b=b();this.$b.gain.value=e;this.U.connect(this.Ha);this.U.connect(this.D);this.Ha.connect(this.G);this.cb.connect(this.$b);this.$b.connect(this.Ha.frequency);
r(this.cb)}function q(a){this.type="gain";this.Pc=[a];this.W=b();this.W.gain.value=a}function h(a,c){this.type="tremolo";this.Pc=[a,c];this.W=b();this.W.gain.value=1-c/2;this.cb=y.createOscillator();this.cb.frequency.value=a;this.$b=b();this.$b.gain.value=c/2;this.cb.connect(this.$b);this.$b.connect(this.W.gain);r(this.cb)}function s(a,c){this.type="ringmod";this.Pc=[a,c];this.U=b();this.G=b();this.G.gain.value=c;this.D=b();this.D.gain.value=1-c;this.wh=b();this.wh.gain.value=0;this.cb=y.createOscillator();
this.cb.frequency.value=a;this.cb.connect(this.wh.gain);r(this.cb);this.U.connect(this.wh);this.U.connect(this.D);this.wh.connect(this.G)}function u(a,c,d,e,f){this.type="distortion";this.Pc=[a,c,d,e,f];this.U=b();this.jj=b();this.ij=b();this.ju(d,Math.pow(10,e/20));this.G=b();this.G.gain.value=f;this.D=b();this.D.gain.value=1-f;this.Rj=y.createWaveShaper();this.ci=new Float32Array(65536);this.us(a,c);this.Rj.ci=this.ci;this.U.connect(this.jj);this.U.connect(this.D);this.jj.connect(this.Rj);this.Rj.connect(this.ij);
this.ij.connect(this.G)}function m(a,b,c,d,e){this.type="compressor";this.Pc=[a,b,c,d,e];this.W=y.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(f){}}function A(a,b){this.type="analyser";this.Pc=[a,b];this.W=y.createAnalyser();this.W.fftSize=a;this.W.smoothingTimeConstant=b;this.ss=new Float32Array(this.W.frequencyBinCount);this.sp=new Uint8Array(a);this.ph=0}function d(){this.F=null;this.Qi=0;this.re=
[];this.Cl=this.Ji=this.Ii=0}function x(a,c){this.src=a;this.P=F;this.Nc=c;this.Um=!1;var d=this;this.Al=this.Ml=null;this.Rf=[];this.sj=0;this.Cm=this.Ek=this.wp=this.fj=!1;1===F&&c&&(this.P=0,this.Ml=b());this.xe=this.aa=null;var e;switch(this.P){case 0:this.aa=new Audio;this.aa.addEventListener("canplaythrough",function(){d.Cm=!0});1===F&&y.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.wp=!0,this.aa.addEventListener("canplay",function(){d.Al||(d.Al=y.createMediaElementSource(d.aa),
d.Al.connect(d.Ml))}));this.aa.autoplay=!1;this.aa.Qv="auto";this.aa.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){d.xe=e.response;d.qr()};e.onerror=function(){d.Ek=!0};e.send();break;case 2:this.aa=!0;break;case 3:this.aa=!0}}function n(a,c){var d=this;this.tag=c;this.ec=this.cd=!0;this.src=a.src;this.buffer=a;this.P=F;this.Nc=a.Nc;this.playbackRate=1;this.pk=!0;this.Bc=this.Md=!1;this.Mb=0;this.Mg=this.Bf=this.ed=!1;this.volume=1;this.Qe=
1===I&&!this.Nc||2===I;this.Kf=1;this.startTime=this.Qe?z.lc.ea:z.od.ea;this.Ea=this.Ia=null;this.fd=!1;this.Da=null;this.Ro=this.Qo=this.Po=this.Oo=this.To=this.So=0;this.j=null;var e=!1;1!==this.P||0!==this.buffer.P||this.buffer.wp||(this.P=0);switch(this.P){case 0:this.Nc?(this.j=a.aa,e=!a.Um,a.Um=!0):(this.j=new Audio,this.j.autoplay=!1,this.j.src=a.aa.src,e=!0);e&&this.j.addEventListener("ended",function(){D=d.tag;d.ec=!0;z.trigger(hc.prototype.e.Uj,M)});break;case 1:this.Ia=b();this.Ia.connect(p(c));
1===this.buffer.P?a.aa&&(this.j=y.createBufferSource(),this.j.buffer=a.aa,this.j.connect(this.Ia)):(this.j=this.buffer.aa,this.buffer.Ml.connect(this.Ia));break;case 2:this.j=new window.Media(X+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.pk=!0,d.ec=!0,D=d.tag,z.trigger(hc.prototype.e.Uj,M))});break;case 3:this.j=!0}}function B(a,b){S.hasOwnProperty(a)?S[a].push(b):S[a]=[b];var c,d,e,f,g=y.destination;if(S.hasOwnProperty(a)&&(e=S[a],e.length))for(g=e[0].ic(),c=0,d=e.length;c<
d;c++)f=e[c],c+1===d?f.rc(y.destination):f.rc(e[c+1].ic());Ha.length=0;if(a.length)for(c=0,d=H.length;c<d;c++)e=H[c],fb(a,e.tag)&&Ha.push(e);else G&&!G.Le()&&(Ha.length=1,Ha[0]=G);c=0;for(d=Ha.length;c<d;c++)Ha[c].Yt(g);ba&&qb===a&&(ba.disconnect(),ba.connect(g))}function R(){}function oa(){}var v=hc.prototype;v.Xa=function(a){this.za=a;this.b=a.b};v.Xa.prototype.ja=function(){};var z=null,M=null,D="",X="",F=0,y=null,va=[],H=[],G=null,E=!1,I=0,J=!1,C=1,O=0,K=0,ka=1,N=1,pa=10,da=1E4,sa=1,ba=null,qb=
"",Ma=!1,Na=[],S={},pc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");c.prototype.rc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};c.prototype.remove=function(){this.U.disconnect();this.Ha.disconnect();this.G.disconnect();this.D.disconnect()};c.prototype.ic=function(){return this.U};t.prototype.rc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};t.prototype.remove=function(){this.U.disconnect();
this.eh.disconnect();this.vc.disconnect();this.ei.disconnect();this.G.disconnect();this.D.disconnect()};t.prototype.ic=function(){return this.U};w.prototype.rc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};w.prototype.remove=function(){this.U.disconnect();this.Ae.disconnect();this.G.disconnect();this.D.disconnect()};w.prototype.ic=function(){return this.U};g.prototype.rc=function(a){this.D.disconnect();this.D.connect(a);this.G.disconnect();this.G.connect(a)};
g.prototype.remove=function(){this.U.disconnect();this.vc.disconnect();this.cb.disconnect();this.$b.disconnect();this.D.disconnect();this.G.disconnect();this.ki.disconnect()};g.prototype.ic=function(){return this.U};l.prototype.rc=function(a){this.D.disconnect();this.D.connect(a);this.G.disconnect();this.G.connect(a)};l.prototype.remove=function(){this.U.disconnect();this.Ha.disconnect();this.cb.disconnect();this.$b.disconnect();this.D.disconnect();this.G.disconnect()};l.prototype.ic=function(){return this.U};
q.prototype.rc=function(a){this.W.disconnect();this.W.connect(a)};q.prototype.remove=function(){this.W.disconnect()};q.prototype.ic=function(){return this.W};h.prototype.rc=function(a){this.W.disconnect();this.W.connect(a)};h.prototype.remove=function(){this.cb.disconnect();this.$b.disconnect();this.W.disconnect()};h.prototype.ic=function(){return this.W};s.prototype.rc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};s.prototype.remove=function(){this.cb.disconnect();
this.wh.disconnect();this.U.disconnect();this.G.disconnect();this.D.disconnect()};s.prototype.ic=function(){return this.U};u.prototype.ju=function(a,b){.01>a&&(a=.01);this.jj.gain.value=a;this.ij.gain.value=Math.pow(1/a,.6)*b};u.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};u.prototype.us=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,c,d),this.ci[32768+f]=e,this.ci[32768-
f-1]=-e};u.prototype.rc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};u.prototype.remove=function(){this.U.disconnect();this.jj.disconnect();this.Rj.disconnect();this.ij.disconnect();this.G.disconnect();this.D.disconnect()};u.prototype.ic=function(){return this.U};m.prototype.rc=function(a){this.W.disconnect();this.W.connect(a)};m.prototype.remove=function(){this.W.disconnect()};m.prototype.ic=function(){return this.W};A.prototype.Ua=function(){this.W.getFloatFrequencyData(this.ss);
this.W.getByteTimeDomainData(this.sp);for(var a=this.W.fftSize,b=0,c=this.ph=0,d=0;b<a;b++)d=(this.sp[b]-128)/128,0>d&&(d=-d),this.ph<d&&(this.ph=d),c+=d*d;this.ph=f(this.ph);f(Math.sqrt(c/a))};A.prototype.rc=function(a){this.W.disconnect();this.W.connect(a)};A.prototype.remove=function(){this.W.disconnect()};A.prototype.ic=function(){return this.W};d.prototype.xh=function(a){if(this.F=a)this.Ii=this.F.x,this.Ji=this.F.y;this.re.length=0};d.prototype.yi=function(){return!!this.F};d.prototype.Ua=function(a){this.F&&
0!==a&&(this.Cl=Ia(this.Ii,this.Ji,this.F.x,this.F.y),a=Ra(this.Ii,this.Ji,this.F.x,this.F.y)/a,4>this.re.length||this.re.shift(),this.re.push(a),this.Ii=this.F.x,this.Ji=this.F.y)};d.prototype.Bn=function(){if(!this.re.length)return 0;var a,b,c=0;a=0;for(b=this.re.length;a<b;a++)c+=this.re[a];return c/this.re.length};d.prototype.Tk=function(){return Math.cos(this.Cl)*this.Bn()};d.prototype.Uk=function(){return Math.sin(this.Cl)*this.Bn()};var mc=!1;x.prototype.qr=function(){if(!this.aa&&this.xe){var a=
this;if(y.decodeAudioData)y.decodeAudioData(this.xe,function(b){a.aa=b;a.xe=null;var c,d,e;if(ga(a.gj)||J)ga(a.Yh)||(c=a.Yh.Ae,c.normalize=a.Ho,c.buffer=b);else if(a.Rf.length){c=0;for(d=a.Rf.length;c<d;c++){b=a.Rf[c];e=new n(a,b.zp);e.em(!0);if("undefined"!==typeof b.Jo&&(b.F=z.si(b.Jo),!b.F))continue;if(b.F){var f=Qa(b.F.x,b.F.y,-b.F.d.Za(),O,K,!0),g=Qa(b.F.x,b.F.y,-b.F.d.Za(),O,K,!1);e.cm(f,g,Ca(b.F.i-b.F.d.Za()),b.$k,b.Dl,b.Gl);e.xh(b.F)}else e.cm(b.x,b.y,b.Tq,b.$k,b.Dl,b.Gl);e.play(a.xl,a.Am,
a.sj);a.fj&&e.pause();H.push(e)}a.Rf.length=0}else e=new n(a,a.gj),e.play(a.xl,a.Am,a.sj),a.fj&&e.pause(),H.push(e)},function(){a.Ek=!0});else if(this.aa=y.createBuffer(this.xe,!1),this.xe=null,ga(this.gj)||J)ga(this.Yh)||(b=this.Yh.Ae,b.normalize=this.Ho,b.buffer=this.aa);else{var b=new n(this,this.gj);b.play(this.xl,this.Am,this.sj);this.fj&&b.pause();H.push(b)}}};x.prototype.Mn=function(){switch(this.P){case 0:var a=4<=this.aa.readyState;a&&(this.Cm=!0);return a||this.Cm;case 1:return!!this.xe||
!!this.aa;case 2:return!0;case 3:return!0}return!1};x.prototype.kt=function(){switch(this.P){case 0:return this.Mn();case 1:return!!this.aa;case 2:return!0;case 3:return!0}return!1};x.prototype.Zs=function(){switch(this.P){case 0:return!!this.aa.error;case 1:return this.Ek}return!1};n.prototype.Le=function(){var a;switch(this.P){case 0:return this.j.ended;case 1:if(1===this.buffer.P){if(!this.cd&&!this.ec&&this.j.loop||this.Bc)return!1;a=this.Qe?z.lc.ea:z.od.ea;return a-this.startTime>this.buffer.aa.duration}return this.j.ended;
case 2:return this.pk;case 3:!0}return!0};n.prototype.jr=function(){return this.cd||this.ec?!0:this.Le()};n.prototype.em=function(a){1===F&&(!this.fd&&a?this.Ia&&(this.Ea||(this.Ea=y.createPanner(),this.Ea.panningModel="number"===typeof this.Ea.panningModel?ka:["equalpower","HRTF","soundfield"][ka],this.Ea.distanceModel="number"===typeof this.Ea.distanceModel?N:["linear","inverse","exponential"][N],this.Ea.refDistance=pa,this.Ea.maxDistance=da,this.Ea.rolloffFactor=sa),this.Ia.disconnect(),this.Ia.connect(this.Ea),
this.Ea.connect(p(this.tag)),this.fd=!0):this.fd&&!a&&this.Ia&&(this.Ea.disconnect(),this.Ia.disconnect(),this.Ia.connect(p(this.tag)),this.fd=!1))};n.prototype.cm=function(a,b,c,d,e,f){this.fd&&1===F&&(this.Ea.setPosition(a,b,0),this.Ea.setOrientation(Math.cos(U(c)),Math.sin(U(c)),0),this.Ea.coneInnerAngle=d,this.Ea.coneOuterAngle=e,this.Ea.coneOuterGain=f,this.So=a,this.To=b,this.Oo=c,this.Po=d,this.Qo=e,this.Ro=f)};n.prototype.xh=function(a){this.fd&&1===F&&(this.Da||(this.Da=new d),this.Da.xh(a))};
n.prototype.Ua=function(a){if(this.fd&&1===F&&this.Da&&this.Da.yi()&&this.xf()){this.Da.Ua(a);a=this.Da.F;var b=Qa(a.x,a.y,-a.d.Za(),O,K,!0),c=Qa(a.x,a.y,-a.d.Za(),O,K,!1);this.Ea.setPosition(b,c,0);b=0;"undefined"!==typeof this.Da.F.i&&(b=a.i-a.d.Za(),this.Ea.setOrientation(Math.cos(b),Math.sin(b),0));b=Qa(this.Da.Tk(),this.Da.Uk(),-a.d.Za(),0,0,!0);c=Qa(this.Da.Tk(),this.Da.Uk(),-a.d.Za(),0,0,!1);this.Ea.setVelocity(b,c,0)}};n.prototype.play=function(a,b,c){var d=this.j;this.ed=a;this.volume=b;
c=c||0;switch(this.P){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==b*C&&(d.volume=b*C);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==c)try{d.currentTime=c}catch(f){}if(this.Nc&&Ma&&!z.ba)Na.push(this);else try{this.j.play()}catch(g){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",g)}break;case 1:this.muted=!1;this.Kf=1;if(1===this.buffer.P)this.cd||(this.j=y.createBufferSource(),this.j.buffer=this.buffer.aa,this.j.connect(this.Ia)),
this.j.loop=a,this.Ia.gain.value=b*C,0===c?r(this.j):e(this.j,c,this.Je());else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);this.Ia.gain.value=b*C;if(d.currentTime!==c)try{d.currentTime=c}catch(h){}this.Nc&&Ma&&!z.ba?Na.push(this):d.play()}break;case 2:(!this.cd&&this.ec||0!==c)&&d.seekTo(c);d.play();this.pk=!1;break;case 3:z.hb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Qe?z.lc.ea:z.od.ea)-c;this.Bc=this.ec=
this.cd=!1};n.prototype.stop=function(){switch(this.P){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.P?a(this.j):this.j.paused||this.j.pause();break;case 2:this.j.stop();break;case 3:z.hb&&AppMobi.context.stopSound(this.src)}this.ec=!0;this.Bc=!1};n.prototype.pause=function(){if(!(this.cd||this.ec||this.Le()||this.Bc)){switch(this.P){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.P?(this.Mb=this.Rk(),this.ed&&(this.Mb%=this.Je()),a(this.j)):this.j.paused||this.j.pause();
break;case 2:this.j.pause();break;case 3:z.hb&&AppMobi.context.stopSound(this.src)}this.Bc=!0}};n.prototype.au=function(){if(!(this.cd||this.ec||this.Le())&&this.Bc){switch(this.P){case 0:this.j.play();break;case 1:1===this.buffer.P?(this.j=y.createBufferSource(),this.j.buffer=this.buffer.aa,this.j.connect(this.Ia),this.j.loop=this.ed,this.Ia.gain.value=C*this.volume*this.Kf,this.startTime=(this.Qe?z.lc.ea:z.od.ea)-this.Mb,e(this.j,this.Mb,this.Je())):this.j.play();break;case 2:this.j.play();break;
case 3:z.hb&&AppMobi.context.resumeSound(this.src)}this.Bc=!1}};n.prototype.seek=function(a){if(!(this.cd||this.ec||this.Le()))switch(this.P){case 0:try{this.j.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.P)this.Bc?this.Mb=a:(this.pause(),this.Mb=a,this.au());else try{this.j.currentTime=a}catch(c){}break;case 3:z.hb&&AppMobi.context.seekSound(this.src,a)}};n.prototype.Yt=function(a){1===this.P&&(this.fd?(this.Ea.disconnect(),this.Ea.connect(a)):(this.Ia.disconnect(),this.Ia.connect(a)))};
n.prototype.Je=function(){switch(this.P){case 0:if("undefined"!==typeof this.j.duration)return this.j.duration;break;case 1:return this.buffer.aa.duration;case 2:return this.j.getDuration();case 3:if(z.hb)return AppMobi.context.getDurationSound(this.src)}return 0};n.prototype.Rk=function(){var a=this.Je(),b=0;switch(this.P){case 0:"undefined"!==typeof this.j.currentTime&&(b=this.j.currentTime);break;case 1:if(1===this.buffer.P){if(this.Bc)return this.Mb;b=(this.Qe?z.lc.ea:z.od.ea)-this.startTime}else"undefined"!==
typeof this.j.currentTime&&(b=this.j.currentTime);break;case 3:z.hb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.ed&&b>a&&(b=a);return b};n.prototype.xf=function(){return!this.Bc&&!this.cd&&!this.ec&&!this.Le()};n.prototype.xu=function(){var a=this.volume*C;switch(this.P){case 0:this.j.volume&&this.j.volume!==a&&(this.j.volume=a);break;case 1:this.Ia.gain.value=a*this.Kf}};n.prototype.fi=function(a){switch(this.P){case 0:this.j.muted!==!!a&&(this.j.muted=!!a);break;case 1:this.Kf=a?0:
1,this.Ia.gain.value=C*this.volume*this.Kf}};n.prototype.lu=function(){this.Bf=!0;this.fi(this.Bf||this.Mg)};n.prototype.mp=function(a){this.Mg=!!a;this.fi(this.Bf||this.Mg)};n.prototype.Mp=function(){var a=this.playbackRate;this.Qe&&(a*=z.dg);switch(this.P){case 0:this.j.playbackRate!==a&&(this.j.playbackRate=a);break;case 1:1===this.buffer.P?this.j.playbackRate.value!==a&&(this.j.playbackRate.value=a):this.j.playbackRate!==a&&(this.j.playbackRate=a)}};n.prototype.nu=function(b){switch(this.P){case 0:b?
this.xf()?(this.j.pause(),this.Md=!0):this.Md=!1:this.Md&&this.j.play();break;case 1:b?this.xf()?(1===this.buffer.P?(this.Mb=this.Rk(),this.ed&&(this.Mb%=this.Je()),a(this.j)):this.j.pause(),this.Md=!0):this.Md=!1:this.Md&&(1===this.buffer.P?(this.j=y.createBufferSource(),this.j.buffer=this.buffer.aa,this.j.connect(this.Ia),this.j.loop=this.ed,this.Ia.gain.value=C*this.volume*this.Kf,this.startTime=(this.Qe?z.lc.ea:z.od.ea)-this.Mb,e(this.j,this.Mb,this.Je())):this.j.play());break;case 2:b?this.xf()?
(this.j.pause(),this.Md=!0):this.Md=!1:this.Md&&this.j.play()}};v.va=function(a){this.type=a;z=this.b=a.b;M=this;this.rb=null;this.Ug=-600;!(this.b.Hi||this.b.Ci&&(this.b.Ig||this.b.Di))||this.b.Jg||this.b.O||(Ma=!0);y=null;"undefined"!==typeof AudioContext?(F=1,y=new AudioContext):"undefined"!==typeof webkitAudioContext&&(F=1,y=new webkitAudioContext);(this.b.Hi&&1===F||Ma)&&document.addEventListener("touchstart",function(){var a,b,c;!mc&&y&&(a=y.createBuffer(1,1,22050),b=y.createBufferSource(),
b.buffer=a,b.connect(y.destination),r(b),mc=!0);if(Ma){if(!J)for(a=0,b=Na.length;a<b;++a)c=Na[a],c.ec||c.Bc||c.j.play();Na.length=0}},!0);1!==F&&(this.b.Ac&&"undefined"!==typeof window.Media?F=2:this.b.wf&&(F=3));2===F&&(X=location.href,a=X.lastIndexOf("/"),-1<a&&(X=X.substr(0,a+1)),X=X.replace("file://",""));if(this.b.Nn&&this.b.lt&&"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.Sd(this);
else{if(this.b.hb)E=this.b.Ci;else try{E=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){E=!1}this.b.Hj(this)}};var la=v.va.prototype;la.ja=function(){this.b.jf=this;I=this.S[0];this.Nd=this.S[1];this.Ot=0!==this.S[2];ka=this.S[3];N=this.S[4];this.Ug=-this.S[5];pa=this.S[6];da=this.S[7];sa=this.S[8];this.rb=new d;var a=this.b.N||this.b.width,b=this.b.M||this.b.height;1===F&&(y.listener.speedOfSound=this.S[9],y.listener.dopplerFactor=this.S[10],y.listener.setPosition(a/2,b/2,this.Ug),
y.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ba&&ba.disconnect();qb=b.toLowerCase();ba=y.createMediaStreamSource(a);ba.connect(p(qb))});this.b.Zq(function(a){M.Kt(a)});var c=this;this.b.Xq(function(a){c.Ft(a)})};la.Ft=function(a){var b,c,d;b=0;for(c=H.length;b<c;b++)d=H[b],d.Da&&d.Da.F===a&&(d.Da.F=null,d.fd&&d.xf()&&d.ed&&d.stop());this.rb.F===a&&(this.rb.F=null)};la.Nb=function(){var a={silent:J,masterVolume:C,listenerZ:this.Ug,listenerUid:this.rb.yi()?this.rb.F.uid:
-1,playing:[],effects:{}},b=a.playing,c,d,e,f,g,h;c=0;for(d=H.length;c<d;c++)e=H[c],!e.xf()||3===this.Nd||e.Nc&&1===this.Nd||!e.Nc&&2===this.Nd||(f=e.Rk(),e.ed&&(f%=e.Je()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Nc,playbackTime:f,volume:e.volume,looping:e.ed,muted:e.Bf,playbackRate:e.playbackRate,paused:e.Bc,resume_position:e.Mb},e.fd&&(f.pan={},h=f.pan,e.Da&&e.Da.yi()?h.objUid=e.Da.F.uid:(h.x=e.So,h.y=e.To,h.a=e.Oo),h.ia=e.Po,h.oa=e.Qo,h.og=e.Ro),b.push(f));b=a.effects;for(g in S)if(S.hasOwnProperty(g)){e=
[];c=0;for(d=S[g].length;c<d;c++)e.push({type:S[g][c].type,params:S[g][c].Pc});b[g]=e}return a};var Oa=[];la.nc=function(a){var b=a.silent;C=a.masterVolume;this.Ug=a.listenerZ;this.rb.xh(null);var e=a.listenerUid;-1!==e&&(this.rb.Qi=e,Oa.push(this.rb));var e=a.playing,f,n,k,r,p,x,R,z,D,v,y;if(3!==this.Nd)for(f=0,n=H.length;f<n;f++)D=H[f],D.Nc&&1===this.Nd||(D.Nc||2!==this.Nd)&&D.stop();for(p in S)if(S.hasOwnProperty(p))for(f=0,n=S[p].length;f<n;f++)S[p][f].remove();Ua(S);for(p in a.effects)if(a.effects.hasOwnProperty(p))for(x=
a.effects[p],f=0,n=x.length;f<n;f++)switch(k=x[f].type,v=x[f].params,k){case "filter":B(p,new c(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":B(p,new t(v[0],v[1],v[2]));break;case "convolve":k=v[2];D=this.oi(k,!1);D.aa?k=new w(D.aa,v[0],v[1],k):(k=new w(null,v[0],v[1],k),D.Ho=v[0],D.Yh=k);B(p,k);break;case "flanger":B(p,new g(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":B(p,new l(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":B(p,new q(v[0]));break;case "tremolo":B(p,new h(v[0],v[1]));break;
case "ringmod":B(p,new s(v[0],v[1]));break;case "distortion":B(p,new u(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":B(p,new m(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":B(p,new A(v[0],v[1]))}f=0;for(n=e.length;f<n;f++)3===this.Nd||(a=e[f],k=a.buffersrc,r=a.is_music,p=a.tag,x=a.playbackTime,R=a.looping,z=a.volume,y=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,r&&1===this.Nd)||!r&&2===this.Nd||((D=this.un(k,p,r,R,z))?(D.Mb=a.resume_position,D.em(!!v),D.play(R,z,x),D.Mp(),D.xu(),D.fi(D.Bf||
D.Mg),a.paused&&D.pause(),a.muted&&D.lu(),D.fi(D.Bf||D.Mg),v&&(-1!==y?(D.Da=D.Da||new d,D.Da.Qi=y,Oa.push(D.Da)):D.cm(v.x,v.y,v.a,v.ia,v.oa,v.og))):(D=this.oi(k,r),D.sj=x,D.fj=a.paused,v&&(-1!==y?D.Rf.push({Jo:y,$k:v.ia,Dl:v.oa,Gl:v.og,zp:p}):D.Rf.push({x:v.x,y:v.y,Tq:v.a,$k:v.ia,Dl:v.oa,Gl:v.og,zp:p}))));if(b&&!J){f=0;for(n=H.length;f<n;f++)H[f].mp(!0);J=!0}else if(!b&&J){f=0;for(n=H.length;f<n;f++)H[f].mp(!1);J=!1}};la.pd=function(){var a,b,c,d;a=0;for(b=Oa.length;a<b;a++)c=Oa[a],d=this.b.si(c.Qi),
c.xh(d),c.Qi=-1,d&&(O=d.x,K=d.y);Oa.length=0};la.Kt=function(a){if(!this.Ot){!a&&y&&y.resume&&y.resume();var b,c;b=0;for(c=H.length;b<c;b++)H[b].nu(a);a&&y&&y.suspend&&y.suspend()}};la.Ua=function(){var a=this.b.Ee,b,c,d;b=0;for(c=H.length;b<c;b++)d=H[b],d.Ua(a),0===d.P||3===d.P||d.cd||d.ec||!d.Le()||(d.ec=!0,D=d.tag,z.trigger(hc.prototype.e.Uj,M)),0!==I&&d.Mp();var e,f;for(e in S)if(S.hasOwnProperty(e))for(d=S[e],b=0,c=d.length;b<c;b++)f=d[b],f.Ua&&f.Ua();1===F&&this.rb.yi()&&(this.rb.Ua(a),O=this.rb.F.x,
K=this.rb.F.y,y.listener.setPosition(this.rb.F.x,this.rb.F.y,this.Ug),y.listener.setVelocity(this.rb.Tk(),this.rb.Uk(),0))};var Pa=[];la.mu=function(a){var b,c,d,e,f,g=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&E||!f&&!E)Pa.push({filename:e,size:d,F:null}),g+=d;return g};la.qu=function(){var a,b,c,d;a=0;for(b=Pa.length;a<b;++a)c=Pa[a],d=this.b.Fk+c.filename,c.F=this.oi(d,!1)};la.Es=function(){var a=0,b,c,d;b=0;for(c=Pa.length;b<c;++b)d=Pa[b],
d.F.kt()||d.F.Zs()||this.b.O||this.b.Di?a+=d.size:d.F.Mn()&&(a+=Math.floor(d.size/2));return a};la.oi=function(a,b){var c,d,e,f=null;c=0;for(d=va.length;c<d;c++)if(e=va[c],e.src===a){f=e;break}f||(f=new x(a,b),va.push(f));return f};la.un=function(a,b,c,d,e){var f,g,h;f=0;for(g=H.length;f<g;f++)if(h=H[f],h.src===a&&(h.jr()||c))return h.tag=b,h;a=this.oi(a,c);if(!a.aa)return"<preload>"!==b&&(a.gj=b,a.xl=d,a.Am=e),null;h=new n(a,b);H.push(h);return h};var Ha=[];R.prototype.Uj=function(a){return fb(D,
a)};v.e=new R;oa.prototype.Play=function(a,b,c,d){!J&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),G=this.un(this.b.Fk+a[0]+(E?".ogg":".m4a"),d,a[1],0!==b,c))&&(G.em(!1),G.play(0!==b,c))};v.fa=new oa;v.Db=new function(){}})();function ic(f){this.b=f}
(function(){function f(){}var p=ic.prototype;p.Xa=function(b){this.za=b;this.b=b.b};p.Xa.prototype.ja=function(){};p.va=function(b){this.type=b;this.b=b.b;this.ml=Array(256);this.Pj=Array(256);this.te=0};var b=p.va.prototype;b.ja=function(){var b=this;this.b.O||(jQuery(document).keydown(function(e){b.Gt(e)}),jQuery(document).keyup(function(e){b.Ht(e)}))};var k=[32,33,34,35,36,37,38,39,40,44];b.Gt=function(b){var e=!1;window!=window.top&&-1<k.indexOf(b.which)&&(b.preventDefault(),e=!0,b.stopPropagation());
if(this.ml[b.which])this.Pj[b.which]&&!e&&b.preventDefault();else{this.ml[b.which]=!0;this.te=b.which;this.b.ba=!0;this.b.trigger(ic.prototype.e.mq,this);var a=this.b.trigger(ic.prototype.e.zq,this),c=this.b.trigger(ic.prototype.e.Aq,this);this.b.ba=!1;if(a||c)this.Pj[b.which]=!0,e||b.preventDefault()}};b.Ht=function(b){this.ml[b.which]=!1;this.te=b.which;this.b.ba=!0;this.b.trigger(ic.prototype.e.nq,this);var e=this.b.trigger(ic.prototype.e.Cq,this),a=this.b.trigger(ic.prototype.e.Bq,this);this.b.ba=
!1;if(e||a||this.Pj[b.which])this.Pj[b.which]=!0,b.preventDefault()};b.Nb=function(){return{triggerKey:this.te}};b.nc=function(b){this.te=b.triggerKey};f.prototype.zq=function(b){return b===this.te};f.prototype.mq=function(){return!0};f.prototype.nq=function(){return!0};f.prototype.Cq=function(b){return b===this.te};f.prototype.Aq=function(b){return b===this.te};f.prototype.Bq=function(b){return b===this.te};p.e=new f;p.fa=new function(){};p.Db=new function(){}})();function jc(f){this.b=f}
(function(){function f(){}function p(){}var b=jc.prototype;b.Xa=function(b){this.za=b;this.b=b.b};b.Xa.prototype.ja=function(){};b.va=function(b){this.type=b;this.b=b.b;this.Sh=Array(4);this.Bp=this.Kj=this.eg=this.Id=this.Hd=0;this.Xk=!1};var k=b.va.prototype;k.ja=function(){var b=this;if(!this.b.O){jQuery(document).mousemove(function(a){b.ih(a)});jQuery(document).mousedown(function(a){b.hh(a)});jQuery(document).mouseup(function(a){b.jh(a)});jQuery(document).dblclick(function(a){b.Dt(a)});var a=
function(a){b.Mt(a)};document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var r={left:0,top:0};k.ih=function(b){var a=this.b.O?r:jQuery(this.b.canvas).offset();this.Hd=b.pageX-a.left;this.Id=b.pageY-a.top};k.Do=function(){return 0<this.b.pb?!0:0<=this.Hd&&0<=this.Id&&this.Hd<this.b.width&&this.Id<this.b.height};k.hh=function(b){this.Do()&&(this.b.tf&&!this.b.dd&&b.preventDefault(),this.Sh[b.which]=!0,this.b.ba=!0,this.b.trigger(jc.prototype.e.Em,this),this.eg=
b.which-1,this.Kj=0,this.b.trigger(jc.prototype.e.Fm,this),this.b.trigger(jc.prototype.e.Wj,this),this.b.ba=!1)};k.jh=function(b){this.Sh[b.which]&&(this.b.tf&&!this.b.dd&&b.preventDefault(),this.b.tf=!0,this.Sh[b.which]=!1,this.b.ba=!0,this.eg=b.which-1,this.b.trigger(jc.prototype.e.Fq,this),this.b.ba=!1)};k.Dt=function(b){this.Do()&&(b.preventDefault(),this.b.ba=!0,this.eg=b.which-1,this.Kj=1,this.b.trigger(jc.prototype.e.Fm,this),this.b.trigger(jc.prototype.e.Wj,this),this.b.ba=!1)};k.Mt=function(b){this.Bp=
0>(b.wheelDelta?b.wheelDelta:b.detail?-b.detail:0)?0:1;this.Xk=!1;this.b.ba=!0;this.b.trigger(jc.prototype.e.Iq,this);this.b.ba=!1;this.Xk&&gb(b)&&b.preventDefault()};f.prototype.Fm=function(b,a){return b===this.eg&&a===this.Kj};f.prototype.Em=function(){return!0};f.prototype.$p=function(b){return this.Sh[b+1]};f.prototype.Fq=function(b){return b===this.eg};f.prototype.bq=function(b){var a=this.b.qi();return Sa(this.b.bg(b,this.Hd,this.Id,a.vf),a.vf)};f.prototype.Wj=function(b,a,c){return b!==this.eg||
a!==this.Kj?!1:this.b.bg(c,this.Hd,this.Id,!1)};f.prototype.Iq=function(b){this.Xk=!0;return b===this.Bp};b.e=new f;b.fa=new function(){};p.prototype.Nm=function(b,a){var c,f,k,g,l;ga(a)?(c=this.b.Bd(0),f=c.scale,k=c.ob,g=c.Jb,l=c.i,c.scale=1,c.ob=1,c.Jb=1,c.i=0,b.A(c.ra(this.Hd,this.Id,!0)),c.scale=f,c.ob=k,c.Jb=g,c.i=l):(c=ha(a)?this.b.Bd(a):this.b.zg(a))?b.A(c.ra(this.Hd,this.Id,!0)):b.A(0)};p.prototype.Om=function(b,a){var c,f,k,g,l;ga(a)?(c=this.b.Bd(0),f=c.scale,k=c.ob,g=c.Kb,l=c.i,c.scale=
1,c.ob=1,c.Kb=1,c.i=0,b.A(c.ra(this.Hd,this.Id,!1)),c.scale=f,c.ob=k,c.Kb=g,c.i=l):(c=ha(a)?this.b.Bd(a):this.b.zg(a))?b.A(c.ra(this.Hd,this.Id,!1)):b.A(0)};b.Db=new p})();function kc(f){this.b=f}
(function(){function f(b){this.k=b;this.Ya=!1;this.i=this.speed=this.y=this.x=0;this.opacity=1;this.Vd=this.sf=this.size=this.wi=0}var p=kc.prototype;p.Xa=function(b){this.za=b;this.b=b.b};var b=p.Xa.prototype;b.ja=function(){this.C||(this.K=new Image,this.K.rk=this.Ej,this.R=null,this.b.Bm(this.K,this.Dj))};b.Yi=function(){this.C||(this.R=null)};b.Zi=function(){this.C||!this.c.length||this.R||(this.R=this.b.q.Gf(this.K,!0,this.b.V,this.Fh))};b.Wg=function(){this.C||this.R||!this.b.q||(this.R=this.b.q.Gf(this.K,
!0,this.b.V,this.Fh))};b.Nj=function(){this.C||this.c.length||!this.R||(this.b.q.deleteTexture(this.R),this.R=null)};b.kj=function(b){b.drawImage(this.K,0,0)};f.prototype.init=function(){var b=this.k;this.x=b.x-b.Sj/2+Math.random()*b.Sj;this.y=b.y-b.Tj/2+Math.random()*b.Tj;this.speed=b.dl-b.xj/2+Math.random()*b.xj;this.i=b.i-b.yj/2+Math.random()*b.yj;this.opacity=b.bl;this.size=b.cl-b.vj/2+Math.random()*b.vj;this.wi=b.Wk-b.xi/2+Math.random()*b.xi;this.Vd=this.sf=0};f.prototype.Ua=function(b){var e=
this.k;this.x+=Math.cos(this.i)*this.speed*b;this.y+=Math.sin(this.i)*this.speed*b;this.y+=this.sf*b;this.speed+=e.ak*b;this.size+=this.wi*b;this.sf+=e.Lk*b;this.Vd+=b;1>this.size?this.Ya=!1:(0!==e.Rg&&(this.i+=Math.random()*e.Rg*b-e.Rg*b/2),0!==e.Tg&&(this.speed+=Math.random()*e.Tg*b-e.Tg*b/2),0!==e.Sg&&(this.opacity+=Math.random()*e.Sg*b-e.Sg*b/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=e.mf&&this.Vd>=e.timeout&&(this.Ya=!1),2===e.mf&&0>=this.speed&&(this.Ya=!1))};f.prototype.wc=
function(b){var e=this.k.opacity*this.opacity;if(0!==e){0===this.k.mf&&(e*=1-this.Vd/this.k.timeout);b.globalAlpha=e;var e=this.x-this.size/2,a=this.y-this.size/2;this.k.b.hd&&(e=e+.5|0,a=a+.5|0);b.drawImage(this.k.type.K,e,a,this.size,this.size)}};f.prototype.Cb=function(b){var e=this.k.opacity*this.opacity;0===this.k.mf&&(e*=1-this.Vd/this.k.timeout);var a=this.size,c=a*this.k.Wo,f=this.x-a/2,k=this.y-a/2;this.k.b.hd&&(f=f+.5|0,k=k+.5|0);1>c||0===e||(c<b.yt||c>b.zl?(b.$e(e),b.th(f,k,f+a,k,f+a,k+
a,f,k+a)):b.Pt(this.x,this.y,c,e))};f.prototype.left=function(){return this.x-this.size/2};f.prototype.right=function(){return this.x+this.size/2};f.prototype.top=function(){return this.y-this.size/2};f.prototype.bottom=function(){return this.y+this.size/2};p.va=function(b){this.type=b;this.b=b.b};var b=p.va.prototype,k=[];b.ja=function(){var b=this.S;this.oj=b[0];this.yj=U(b[1]);this.Zf=b[2];this.hm=!0;this.dl=b[3];this.cl=b[4];this.bl=b[5]/100;this.Wk=b[6];this.Sj=b[7];this.Tj=b[8];this.xj=b[9];
this.vj=b[10];this.xi=b[11];this.ak=b[12];this.Lk=b[13];this.Rg=b[14];this.Tg=b[15];this.Sg=b[16];this.mf=b[17];this.timeout=b[18];this.Ye=0;this.Wo=1;this.cj=this.x;this.ej=this.y;this.dj=this.x;this.bj=this.y;this.$q(function(b){b.Ca.set(b.cj,b.ej,b.dj,b.bj);b.Ub.Yf(b.Ca);b.Rh=!1;b.wm()});this.Rc||(this.tb=[]);this.b.Hj(this);this.type.Wg();if(1===this.Zf)for(b=0;b<this.oj;b++)this.ck().opacity=0;this.mi=!0};b.Nb=function(){var b={r:this.oj,sc:this.yj,st:this.Zf,s:this.hm,isp:this.dl,isz:this.cl,
io:this.bl,gr:this.Wk,xr:this.Sj,yr:this.Tj,spr:this.xj,szr:this.vj,grnd:this.xi,acc:this.ak,g:this.Lk,lar:this.Rg,lsr:this.Tg,lor:this.Sg,dm:this.mf,to:this.timeout,pcc:this.Ye,ft:this.mi,p:[]},e,a,c,f=b.p;e=0;for(a=this.tb.length;e<a;e++)c=this.tb[e],f.push([c.x,c.y,c.speed,c.i,c.opacity,c.wi,c.size,c.sf,c.Vd]);return b};b.nc=function(b){this.oj=b.r;this.yj=b.sc;this.Zf=b.st;this.hm=b.s;this.dl=b.isp;this.cl=b.isz;this.bl=b.io;this.Wk=b.gr;this.Sj=b.xr;this.Tj=b.yr;this.xj=b.spr;this.vj=b.szr;this.xi=
b.grnd;this.ak=b.acc;this.Lk=b.g;this.Rg=b.lar;this.Tg=b.lsr;this.Sg=b.lor;this.mf=b.dm;this.timeout=b.to;this.Ye=b.pcc;this.mi=b.ft;k.push.apply(k,this.tb);this.tb.length=0;var e,a,c,f=b.p;b=0;for(e=f.length;b<e;b++)a=this.ck(),c=f[b],a.x=c[0],a.y=c[1],a.speed=c[2],a.i=c[3],a.opacity=c[4],a.wi=c[5],a.size=c[6],a.sf=c[7],a.Vd=c[8]};b.Pf=function(){k.push.apply(k,this.tb);this.tb.length=0};b.ck=function(){var b;k.length?(b=k.pop(),b.k=this):b=new f(this);this.tb.push(b);b.Ya=!0;return b};b.Ua=function(){var b=
this.b.Nk(this),e,a,c,f;if(0===this.Zf&&this.hm)for(this.Ye+=b*this.oj,a=Q(this.Ye),this.Ye-=a,e=0;e<a;e++)c=this.ck(),c.init();this.cj=this.x;this.ej=this.y;this.dj=this.x;this.bj=this.y;f=e=0;for(a=this.tb.length;e<a;e++)c=this.tb[e],this.tb[f]=c,this.b.ma=!0,1===this.Zf&&this.mi&&c.init(),c.Ua(b),c.Ya?(c.left()<this.cj&&(this.cj=c.left()),c.right()>this.dj&&(this.dj=c.right()),c.top()<this.ej&&(this.ej=c.top()),c.bottom()>this.bj&&(this.bj=c.bottom()),f++):k.push(c);this.tb.length=f;this.ua();
this.mi=!1;1===this.Zf&&0===this.tb.length&&this.b.Sd(this)};b.wc=function(b){var e,a,c,f=this.d;e=0;for(a=this.tb.length;e<a;e++)c=this.tb[e],c.right()>=f.Aa&&c.bottom()>=f.Ba&&c.left()<=f.La&&c.top()<=f.Ka&&c.wc(b)};b.Cb=function(b){this.Wo=this.d.jc();b.cc(this.type.R);var e,a,c,f=this.d;e=0;for(a=this.tb.length;e<a;e++)c=this.tb[e],c.right()>=f.Aa&&c.bottom()>=f.Ba&&c.left()<=f.La&&c.top()<=f.Ka&&c.Cb(b)};p.e=new function(){};p.fa=new function(){};p.Db=new function(){}})();
function gc(f){this.b=f}
(function(){function f(){if(0===this.uk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.$f?b.drawImage(this.K,this.Nf,this.Of,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.K,0,0,this.width,this.height);this.uk=a.toDataURL("image/png")}return this.uk}function p(){}function b(){}var k=gc.prototype;k.Xa=function(a){this.za=a;this.b=a.b};var r=k.Xa.prototype;r.ja=function(){if(!this.C){var a,b,c,e,g,k,d,l,n;this.Ic=
[];this.Eg=!1;a=0;for(b=this.Tb.length;a<b;a++){g=this.Tb[a];d={};d.name=g[0];d.speed=g[1];d.loop=g[2];d.Wl=g[3];d.pj=g[4];d.Xo=g[5];d.T=g[6];d.frames=[];c=0;for(e=g[7].length;c<e;c++)k=g[7][c],l={},l.Dj=k[0],l.Ej=k[1],l.Nf=k[2],l.Of=k[3],l.width=k[4],l.height=k[5],l.duration=k[6],l.Fb=k[7],l.Gb=k[8],l.al=k[9],l.hj=k[10],l.Yo=k[11],l.$f=0!==l.width,l.uk="",l.Mv=f,n={left:0,top:0,right:1,bottom:1},l.fm=n,l.R=null,(n=this.b.qs(k[0]))?l.K=n:(l.K=new Image,l.K.nr=k[0],l.K.rk=k[1],l.K.ir=null,this.b.Bm(l.K,
k[0])),d.frames.push(l),this.Ic.push(l);this.Tb[a]=d}}};r.Lp=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.ai=c.tc.R};r.Yi=function(){if(!this.C){var a,b,c;a=0;for(b=this.Ic.length;a<b;++a)c=this.Ic[a],c.K.ir=null,c.R=null;this.Eg=!1;this.Lp()}};r.Zi=function(){if(!this.C&&this.c.length){var a,b,c;a=0;for(b=this.Ic.length;a<b;++a)c=this.Ic[a],c.R=this.b.q.Gf(c.K,!1,this.b.V,c.Yo);this.Lp()}};r.Wg=function(){if(!this.C&&!this.Eg&&this.b.q){var a,b,c;a=0;for(b=this.Ic.length;a<
b;++a)c=this.Ic[a],c.R=this.b.q.Gf(c.K,!1,this.b.V,c.Yo);this.Eg=!0}};r.Nj=function(){if(!this.C&&!this.c.length&&this.Eg){var a,b,c;a=0;for(b=this.Ic.length;a<b;++a)c=this.Ic[a],this.b.q.deleteTexture(c.R),c.R=null;this.Eg=!1}};var e=[];r.kj=function(a){var b,c,f;b=e.length=0;for(c=this.Ic.length;b<c;++b)f=this.Ic[b].K,-1===e.indexOf(f)&&(a.drawImage(f,0,0),e.push(f))};k.va=function(a){this.type=a;this.b=a.b;a=this.type.Tb[0].frames[0].hj;this.Rc?this.Z.zh(a):this.Z=new $a(a)};var a=k.va.prototype;
a.ja=function(){this.visible=0===this.S[0];this.$c=0!==this.S[3];1===this.type.Tb.length&&1===this.type.Tb[0].frames.length||0===this.type.Tb[0].speed||this.b.Hj(this);this.wa=this.tn(this.S[1])||this.type.Tb[0];this.B=this.S[2];0>this.B&&(this.B=0);this.B>=this.wa.frames.length&&(this.B=this.wa.frames.length-1);var a=this.wa.frames[this.B];this.Z.zh(a.hj);this.Fb=a.Fb;this.Gb=a.Gb;this.ug=this.wa.speed;this.Rc?this.Yc.reset():this.Yc=new Ya;this.Ad=this.Yc.ea;this.we=!0;this.qd=0;this.ve=!0;this.nk=
this.Vm="";this.kr=0;this.mk=-1;this.type.Wg();var b,c,e,f,g,d,k,a=0;for(b=this.type.Tb.length;a<b;a++)for(f=this.type.Tb[a],c=0,e=f.frames.length;c<e;c++)g=f.frames[c],0===g.width&&(g.width=g.K.width,g.height=g.K.height),g.$f&&(k=g.K,d=g.fm,d.left=g.Nf/k.width,d.top=g.Of/k.height,d.right=(g.Nf+g.width)/k.width,d.bottom=(g.Of+g.height)/k.height,0===g.Nf&&0===g.Of&&g.width===k.width&&g.height===k.height&&(g.$f=!1));this.tc=this.wa.frames[this.B];this.ai=this.tc.R};a.Nb=function(){var a={a:this.wa.T,
f:this.B,cas:this.ug,fs:this.Ad,ar:this.qd,at:this.Yc.ea};this.we||(a.ap=this.we);this.ve||(a.af=this.ve);return a};a.nc=function(a){var b=this.vs(a.a);b&&(this.wa=b);this.B=a.f;0>this.B&&(this.B=0);this.B>=this.wa.frames.length&&(this.B=this.wa.frames.length-1);this.ug=a.cas;this.Ad=a.fs;this.qd=a.ar;this.Yc.reset();this.Yc.ea=a.at;this.we=a.hasOwnProperty("ap")?a.ap:!0;this.ve=a.hasOwnProperty("af")?a.af:!0;this.tc=this.wa.frames[this.B];this.ai=this.tc.R;this.Z.zh(this.tc.hj);this.Fb=this.tc.Fb;
this.Gb=this.tc.Gb};a.fk=function(a){this.B=a?0:this.wa.frames.length-1;this.we=!1;this.Vm=this.wa.name;this.b.trigger(gc.prototype.e.lq,this);this.b.trigger(gc.prototype.e.kq,this);this.qd=0};a.Ov=function(){return this.Yc.ea};a.Ua=function(){this.Yc.add(this.b.Nk(this));this.nk.length&&this.sr();0<=this.mk&&this.tr();var a=this.Yc.ea,b=this.wa,c=b.frames[this.B],e=c.duration/this.ug;this.we&&a>=this.Ad+e&&(this.ve?this.B++:this.B--,this.Ad+=e,this.B>=b.frames.length&&(b.Xo?(this.ve=!1,this.B=b.frames.length-
2):b.loop?this.B=b.pj:(this.qd++,this.qd>=b.Wl?this.fk(!1):this.B=b.pj)),0>this.B&&(b.Xo?(this.B=1,this.ve=!0,b.loop||(this.qd++,this.qd>=b.Wl&&this.fk(!0))):b.loop?this.B=b.pj:(this.qd++,this.qd>=b.Wl?this.fk(!0):this.B=b.pj)),0>this.B?this.B=0:this.B>=b.frames.length&&(this.B=b.frames.length-1),a>this.Ad+b.frames[this.B].duration/this.ug&&(this.Ad=a),a=b.frames[this.B],this.gf(c,a),this.b.ma=!0)};a.tn=function(a){var b,c,e;b=0;for(c=this.type.Tb.length;b<c;b++)if(e=this.type.Tb[b],fb(e.name,a))return e;
return null};a.vs=function(a){var b,c,e;b=0;for(c=this.type.Tb.length;b<c;b++)if(e=this.type.Tb[b],e.T===a)return e;return null};a.sr=function(){var a=this.wa.frames[this.B],b=this.tn(this.nk);this.nk="";!b||fb(b.name,this.wa.name)&&this.we||(this.wa=b,this.ug=b.speed,0>this.B&&(this.B=0),this.B>=this.wa.frames.length&&(this.B=this.wa.frames.length-1),1===this.kr&&(this.B=0),this.we=!0,this.Ad=this.Yc.ea,this.ve=!0,this.gf(a,this.wa.frames[this.B]),this.b.ma=!0)};a.tr=function(){var a=this.wa.frames[this.B],
b=this.B;this.B=Q(this.mk);0>this.B&&(this.B=0);this.B>=this.wa.frames.length&&(this.B=this.wa.frames.length-1);b!==this.B&&(this.gf(a,this.wa.frames[this.B]),this.Ad=this.Yc.ea,this.b.ma=!0);this.mk=-1};a.gf=function(a,b){var c=a.width,e=a.height,f=b.width,g=b.height;c!=f&&(this.width*=f/c);e!=g&&(this.height*=g/e);this.Fb=b.Fb;this.Gb=b.Gb;this.Z.zh(b.hj);this.ua();this.tc=b;this.ai=b.R;c=0;for(e=this.H.length;c<e;c++)f=this.H[c],f.Jt&&f.Jt(a,b);this.b.trigger(gc.prototype.e.gf,this)};a.wc=function(a){a.globalAlpha=
this.opacity;var b=this.tc,c=b.$f,e=b.K,f=this.x,g=this.y,d=this.width,k=this.height;if(0===this.i&&0<=d&&0<=k)f-=this.Fb*d,g-=this.Gb*k,this.b.hd&&(f=Math.round(f),g=Math.round(g)),c?a.drawImage(e,b.Nf,b.Of,b.width,b.height,f,g,d,k):a.drawImage(e,f,g,d,k);else{this.b.hd&&(f=Math.round(f),g=Math.round(g));a.save();var n=0<d?1:-1,l=0<k?1:-1;a.translate(f,g);1===n&&1===l||a.scale(n,l);a.rotate(this.i*n*l);f=0-this.Fb*ma(d);g=0-this.Gb*ma(k);c?a.drawImage(e,b.Nf,b.Of,b.width,b.height,f,g,ma(d),ma(k)):
a.drawImage(e,f,g,ma(d),ma(k));a.restore()}};a.Cb=function(a){a.cc(this.ai);a.$e(this.opacity);var b=this.tc,c=this.Ub;if(this.b.hd){var e=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.$f?a.Kd(c.Va+e,c.Wa+f,c.Pb+e,c.Qb+f,c.zb+e,c.Ab+f,c.xb+e,c.yb+f,b.fm):a.th(c.Va+e,c.Wa+f,c.Pb+e,c.Qb+f,c.zb+e,c.Ab+f,c.xb+e,c.yb+f)}else b.$f?a.Kd(c.Va,c.Wa,c.Pb,c.Qb,c.zb,c.Ab,c.xb,c.yb,b.fm):a.th(c.Va,c.Wa,c.Pb,c.Qb,c.zb,c.Ab,c.xb,c.yb)};a.As=function(a){var b=this.tc,c,e;c=0;for(e=b.al.length;c<e;c++)if(fb(a,
b.al[c][0]))return c;return-1};a.Qk=function(a,b){var c=this.tc,e=c.al,f;f=P(a)?this.As(a):a-1;f=Q(f);if(0>f||f>=e.length)return b?this.x:this.y;var g=(e[f][1]-c.Fb)*this.width,e=e[f][2],e=(e-c.Gb)*this.height,c=Math.cos(this.i);f=Math.sin(this.i);var d=g*c-e*f,e=e*c+g*f,g=d+this.x,e=e+this.y;return b?g:e};var c=null,t=new ca,w=!1,g=[],l=new T(0,0,0,0);r.finish=function(a){if(w){if(a){var b=this.b.qb().Wb.Oc;a=c.ha();var e=t.Wc(),f,g;if(a.na){a.na=!1;a.c.length=e.length;f=0;for(g=e.length;f<g;f++)a.c[f]=
e[f];if(b)for(f=a.Y.length=0,g=c.c.length;f<g;f++)e=c.c[f],t.contains(e)||a.Y.push(e)}else if(b)for(b=a.c.length,a.c.length=b+e.length,f=0,g=e.length;f<g;f++)a.c[b+f]=e[f],Ba(a.Y,e[f]);else ya(a.c,e);c.rd()}t.clear();w=!1}};p.prototype.cq=function(a){if(a){var b=!1,e,f,k,p=this.b.qi(),d=p.type,p=p.vf;e=a.ha();f=this.b.qb().Wb.Oc;var r;e.na?(this.qa(),l.tg(this.Ca),l.offset(0,0),this.b.xs(this.d,a,l,g),r=g):r=f?e.Y:e.c;c=a;w=d!==a&&!p;e=0;for(f=r.length;e<f;e++)if(k=r[e],this.b.su(this,k)){b=!0;if(p)break;
d!==a&&t.add(k)}g.length=0;a=b}else a=!1;return a};p.prototype.kq=function(a){return fb(this.Vm,a)};p.prototype.lq=function(){return!0};p.prototype.gf=function(){return!0};k.e=new p;b.prototype.Nq=function(a){this.$c!==(0!==a)&&((this.$c=0!==a)?this.ua():(this.qc.right>=this.qc.left&&this.type.rg.update(this,this.qc,null),this.qc.set(0,0,-1,-1)))};k.fa=new b;k.Db=new function(){}})();function lc(f){this.b=f}
(function(){function f(){}function p(){}function b(){}var k=lc.prototype;k.Xa=function(a){this.za=a;this.b=a.b};k.Xa.prototype.ja=function(){};k.va=function(a){this.type=a;this.b=a.b};var r=k.va.prototype,e="text password email number tel url".split(" ");-1<navigator.userAgent.indexOf("MSIE 9")&&(e[2]="text",e[3]="text",e[4]="text",e[5]="text");r.ja=function(){if(this.b.O)L("[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=e[this.S[7]]);this.u.id=this.S[9];jQuery(this.u).appendTo(this.b.Wh?this.b.Wh:"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.dr=0!==this.S[8];this.Fe=!1;0===this.S[3]&&(jQuery(this.u).hide(),this.visible=!1,this.Fe=!0);var a=function(a){return function(){a.b.trigger(lc.prototype.e.Km,
a)}}(this);this.u.oninput=a;-1!==navigator.userAgent.indexOf("MSIE")&&(this.u.oncut=a);this.u.onclick=function(a){return function(b){b.stopPropagation();a.b.ba=!0;a.b.trigger(lc.prototype.e.pq,a);a.b.ba=!1}}(this);this.u.ondblclick=function(a){return function(b){b.stopPropagation();a.b.ba=!0;a.b.trigger(lc.prototype.e.sq,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.ao=this.bo=this.Tn=this.Yn=this.$n=this.Vn=0;this.Np(!0);this.b.Hj(this)}};r.Nb=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}};r.nc=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};r.Pf=function(){this.b.O||(jQuery(this.u).remove(),this.u=null)};r.Ua=function(){this.Np()};r.Np=function(a){if(!this.b.O){var b=this.d.Na(this.x,this.y,!0),e=this.d.Na(this.x,this.y,!1),f=this.d.Na(this.x+this.width,this.y+this.height,!0),g=this.d.Na(this.x+this.width,
this.y+this.height,!1),k=this.b.width/this.b.devicePixelRatio,p=this.b.height/this.b.devicePixelRatio;!this.visible||!this.d.visible||0>=f||0>=g||b>=k||e>=p?(this.Fe||jQuery(this.u).hide(),this.Fe=!0):(1>b&&(b=1),1>e&&(e=1),f>=k&&(f=k-1),g>=p&&(g=p-1),k=window.innerWidth,p=window.innerHeight,a||this.Vn!==b||this.$n!==e||this.Yn!==f||this.Tn!==g||this.bo!==k||this.ao!==p?(this.Vn=b,this.$n=e,this.Yn=f,this.Tn=g,this.bo=k,this.ao=p,this.Fe&&(jQuery(this.u).show(),this.Fe=!1),a=Math.round(b)+jQuery(this.b.canvas).offset().left,
k=Math.round(e)+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(f-b)),jQuery(this.u).height(Math.round(g-e)),this.dr&&jQuery(this.u).css("font-size",this.d.jc(!0)/this.b.devicePixelRatio-.2+"em")):this.Fe&&(jQuery(this.u).show(),this.Fe=!1))}};r.wc=function(){};r.Cb=function(){};f.prototype.Vp=function(a,b){return this.b.O?!1:0===b?fb(this.u.value,a):this.u.value===a};f.prototype.Km=function(){return!0};
f.prototype.pq=function(){return!0};f.prototype.sq=function(){return!0};k.e=new f;p.prototype.$j=function(a){this.b.O||(this.visible=0!==a)};p.prototype.Zj=function(a){this.b.O||(this.u.disabled=0===a)};p.prototype.Mq=function(a,b){this.b.O||jQuery(this.u).css(a,b)};k.fa=new p;b.prototype.Text=function(a){this.b.O?a.Ob(""):a.Ob(this.u.value)};k.Db=new b})();function nc(f){this.b=f}
(function(){var f=nc.prototype;f.Xa=function(b){this.za=b;this.b=b.b};var p=f.Xa.prototype;p.ja=function(){this.C||(this.K=new Image,this.K.rk=this.Ej,this.b.Bm(this.K,this.Dj),this.R=this.pattern=null)};p.Yi=function(){this.C||(this.R=null)};p.Zi=function(){if(!this.C&&this.c.length){this.R||(this.R=this.b.q.Gf(this.K,!0,this.b.V,this.Fh));var b,f;b=0;for(f=this.c.length;b<f;b++)this.c[b].R=this.R}};p.Wg=function(){this.C||this.R||!this.b.q||(this.R=this.b.q.Gf(this.K,!0,this.b.V,this.Fh))};p.Nj=
function(){this.C||this.c.length||!this.R||(this.b.q.deleteTexture(this.R),this.R=null)};p.kj=function(b){b.drawImage(this.K,0,0)};f.va=function(b){this.type=b;this.b=b.b};p=f.va.prototype;p.ja=function(){this.visible=0===this.S[0];this.uh=new T(0,0,0,0);this.En=!1;this.K=this.type.K;this.b.q?(this.type.Wg(),this.R=this.type.R):(this.type.pattern||(this.type.pattern=this.b.ga.createPattern(this.type.K,"repeat")),this.pattern=this.type.pattern)};p.pd=function(){this.En=!1;this.K=this.type.K};p.Pf=
function(){this.b.q&&this.En&&this.R&&(this.b.q.deleteTexture(this.R),this.R=null)};p.wc=function(b){b.globalAlpha=this.opacity;b.save();b.fillStyle=this.pattern;var f=this.x,p=this.y;this.b.hd&&(f=Math.round(f),p=Math.round(p));var e=-(this.Fb*this.width),a=-(this.Gb*this.height),c=e%this.K.width,t=a%this.K.height;0>c&&(c+=this.K.width);0>t&&(t+=this.K.height);b.translate(f,p);b.rotate(this.i);b.translate(c,t);b.fillRect(e-c,a-t,this.width,this.height);b.restore()};p.Cb=function(b){b.cc(this.R);
b.$e(this.opacity);var f=this.uh;f.right=this.width/this.K.width;f.bottom=this.height/this.K.height;var p=this.Ub;if(this.b.hd){var e=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;b.Kd(p.Va+e,p.Wa+a,p.Pb+e,p.Qb+a,p.zb+e,p.Ab+a,p.xb+e,p.yb+a,f)}else b.Kd(p.Va,p.Wa,p.Pb,p.Qb,p.zb,p.Ab,p.xb,p.yb,f)};f.e=new function(){};f.fa=new function(){};f.Db=new function(){}})();function Z(f){this.b=f}
(function(){function f(a){w=a.x;g=a.y;l=a.z}function p(a){q=a.x;h=a.y;s=a.z}function b(a,b,c,d){var e;e=u.length?u.pop():new k;e.init(a,b,c,d);return e}function k(){this.Bh=this.id=this.y=this.x=this.Bj=this.Aj=this.pl=this.time=this.jm=0;this.Hh=this.Lj=!1}function r(){}function e(){}var a=Z.prototype;a.Xa=function(a){this.za=a;this.b=a.b};a.Xa.prototype.ja=function(){};a.va=function(a){this.type=a;this.b=a.b;this.touches=[];this.Bl=!1};var c=a.va.prototype,t={left:0,top:0};c.yg=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 w=0,g=0,l=0,q=0,h=0,s=0,u=[];k.prototype.init=function(a,b,c,d){var e=V();this.jm=this.pl=this.time=e;this.Aj=a;this.Bj=b;this.x=a;this.y=b;this.id=c;this.Bh=d;this.Hh=this.Lj=!1};k.prototype.update=function(a,b,c){this.pl=this.time;this.time=a;this.x=b;this.y=c;!this.Hh&&15<=Ra(this.Aj,this.Bj,this.x,this.y)&&(this.Hh=!0)};k.prototype.wt=function(a,b){!this.Lj&&500<=V()-this.jm&&!this.Hh&&15>Ra(this.Aj,this.Bj,
this.x,this.y)&&(this.Lj=!0,a.md=this.Bh,a.fg=this.id,a.qf=b,a.b.trigger(Z.prototype.e.xq,a),a.ud=this.x,a.vd=this.y,a.b.trigger(Z.prototype.e.yq,a),a.qf=0)};var m=-1E3,A=-1E3,d=-1E4;k.prototype.zo=function(a,b){if(!this.Lj){var c=V();333>=c-this.jm&&!this.Hh&&15>Ra(this.Aj,this.Bj,this.x,this.y)&&(a.md=this.Bh,a.fg=this.id,a.qf=b,666>=c-d&&25>Ra(m,A,this.x,this.y)?(a.b.trigger(Z.prototype.e.tq,a),a.ud=this.x,a.vd=this.y,a.b.trigger(Z.prototype.e.uq,a),A=m=-1E3,d=-1E4):(a.b.trigger(Z.prototype.e.Gq,
a),a.ud=this.x,a.vd=this.y,a.b.trigger(Z.prototype.e.Hq,a),m=this.x,A=this.y,d=c),a.qf=0)}};c.ja=function(){this.mt=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.qf=this.fg=this.md=this.vd=this.ud=this.Rm=this.Qm=this.Pm=this.Wq=this.Vq=this.Uq=this.oh=this.nh=this.mh=0;this.Bu=0!==this.S[0];var a=0<this.b.pb?document:this.b.canvas,b=document;this.b.hb?b=a=window.Canvas:this.b.kc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.lh(a)},
!1),a.addEventListener("pointermove",function(a){c.kh(a)},!1),b.addEventListener("pointerup",function(a){c.Jd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Jd(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.lh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.kh(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Jd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Jd(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.aj(a)},
!1),a.addEventListener("touchmove",function(a){c.$i(a)},!1),b.addEventListener("touchend",function(a){c.Qf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Qf(a,!0)},!1));if(this.mt){var d=function(a){a=a.reading;c.Pm=a.accelerationX;c.Qm=a.accelerationY;c.Rm=a.accelerationZ},e=function(a){a=a.reading;c.mh=a.yawDegrees;c.nh=a.pitchDegrees;c.oh=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.mh=a.alpha||
0;c.nh=a.beta||0;c.oh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Uq=a.accelerationIncludingGravity.x||0,c.Vq=a.accelerationIncludingGravity.y||0,c.Wq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Pm=a.acceleration.x||0,c.Qm=a.acceleration.y||0,c.Rm=a.acceleration.z||0)},!1);this.Bu&&!this.b.O&&(jQuery(document).mousemove(function(a){c.ih(a)}),jQuery(document).mousedown(function(a){c.hh(a)}),jQuery(document).mouseup(function(a){c.jh(a)}));
this.b.wf&&!this.b.hb&&AppMobi.accelerometer.watchAcceleration(f,{frequency:40,adjustForRotation:!0});this.b.Ac&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(p,null,{frequency:40});this.b.tu(this)};c.kh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.yg(a.pointerId),c=V();if(0<=b){var d=this.b.O?t: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.lh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.b.O?t:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;V();this.md=this.touches.length;this.fg=a.pointerId;this.touches.push(b(d,c,a.pointerId,this.md));this.b.ba=!0;this.b.trigger(Z.prototype.e.Jm,this);this.b.trigger(Z.prototype.e.Mm,this);this.ud=d;this.vd=c;this.b.trigger(Z.prototype.e.Lm,this);this.b.ba=
!1}};c.Jd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.yg(a.pointerId);this.md=0<=c?this.touches[c].Bh:-1;this.fg=0<=c?this.touches[c].id:-1;this.b.ba=!0;this.b.trigger(Z.prototype.e.Im,this);this.b.trigger(Z.prototype.e.Yj,this);0<=c&&(b||this.touches[c].zo(this,c),100>u.length&&u.push(this.touches[c]),this.touches.splice(c,1));this.b.ba=!1}};c.$i=function(a){a.preventDefault&&a.preventDefault();var b=V(),
c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.yg(e.identifier),0<=f){var g=this.b.O?t:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};c.aj=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.b.O?t:jQuery(this.b.canvas).offset();V();this.b.ba=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.yg(f.identifier),-1===g){g=f.pageX-c.left;var h=f.pageY-c.top;this.md=
this.touches.length;this.fg=f.identifier;this.touches.push(b(g,h,f.identifier,this.md));this.b.trigger(Z.prototype.e.Jm,this);this.b.trigger(Z.prototype.e.Mm,this);this.ud=g;this.vd=h;this.b.trigger(Z.prototype.e.Lm,this)}this.b.ba=!1};c.Qf=function(a,b){a.preventDefault&&gb(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.yg(e.identifier),0<=e&&(this.md=this.touches[e].Bh,this.fg=this.touches[e].id,this.b.trigger(Z.prototype.e.Im,
this),this.b.trigger(Z.prototype.e.Yj,this),b||this.touches[e].zo(this,e),100>u.length&&u.push(this.touches[e]),this.touches.splice(e,1));this.b.ba=!1};c.Jv=function(){return this.b.wf&&0===this.mh&&0!==l?90*l:this.b.Ac&&0===this.mh&&0!==s?90*s:this.mh};c.Kv=function(){return this.b.wf&&0===this.nh&&0!==g?-90*g:this.b.Ac&&0===this.nh&&0!==h?90*h:this.nh};c.Nv=function(){return this.b.wf&&0===this.oh&&0!==w?90*w:this.b.Ac&&0===this.oh&&0!==q?90*q:this.oh};c.hh=function(a){a.preventDefault&&this.b.tf&&
!this.b.dd&&a.preventDefault();this.aj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Bl=!0};c.ih=function(a){this.Bl&&this.$i({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};c.jh=function(a){a.preventDefault&&this.b.tf&&!this.b.dd&&a.preventDefault();this.b.tf=!0;this.Qf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Bl=!1};c.mm=function(){var a,b,c,d=V();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.pl=d),c.wt(this,
a)};r.prototype.Mm=function(){return!0};r.prototype.Yj=function(){return!0};r.prototype.Lm=function(a){return a?this.b.bg(a,this.ud,this.vd,!1):!1};var x=[];r.prototype.dq=function(a){if(!a)return!1;var b=a.ha(),c=b.Kc(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.qa();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.d.ra(e.x,e.y,!0),e=l.d.ra(e.x,e.y,!1),l.fb(d,e)){x.push(l);break}}return x.length?(b.na=!1,ya(b.c,x),a.rd(),x.length=0,!0):!1};r.prototype.Jm=function(a){a=Math.floor(a);
return a===this.md};r.prototype.Im=function(a){a=Math.floor(a);return a===this.md};r.prototype.xq=function(){return!0};r.prototype.Gq=function(){return!0};r.prototype.tq=function(){return!0};r.prototype.yq=function(a){return a?this.b.bg(a,this.ud,this.vd,!1):!1};r.prototype.Hq=function(a){return a?this.b.bg(a,this.ud,this.vd,!1):!1};r.prototype.uq=function(a){return a?this.b.bg(a,this.ud,this.vd,!1):!1};a.e=new r;e.prototype.Nm=function(a,b){var c=this.qf;if(0>c||c>=this.touches.length)a.A(0);else{var d,
e,f,g,h;ga(b)?(d=this.b.Bd(0),e=d.scale,f=d.ob,g=d.Jb,h=d.i,d.scale=1,d.ob=1,d.Jb=1,d.i=0,a.A(d.ra(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.ob=f,d.Jb=g,d.i=h):(d=ha(b)?this.b.Bd(b):this.b.zg(b))?a.A(d.ra(this.touches[c].x,this.touches[c].y,!0)):a.A(0)}};e.prototype.Om=function(a,b){var c=this.qf;if(0>c||c>=this.touches.length)a.A(0);else{var d,e,f,g,h;ga(b)?(d=this.b.Bd(0),e=d.scale,f=d.ob,g=d.Kb,h=d.i,d.scale=1,d.ob=1,d.Kb=1,d.i=0,a.A(d.ra(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.ob=f,d.Kb=g,d.i=h):(d=ha(b)?this.b.Bd(b):this.b.zg(b))?a.A(d.ra(this.touches[c].x,this.touches[c].y,!1)):a.A(0)}};a.Db=new e})();
function oc(f){this.b=f;var p=this;this.b.O||(jQuery(document).mousemove(function(b){p.ih(b)}),jQuery(document).mousedown(function(b){p.hh(b)}),jQuery(document).mouseup(function(b){p.jh(b)}));f=0<this.b.pb?document:this.b.canvas;this.b.hb?f=window.Canvas:this.b.kc&&(f=window);window.navigator.pointerEnabled?(f.addEventListener("pointerdown",function(b){p.lh(b)},!1),f.addEventListener("pointermove",function(b){p.kh(b)},!1),f.addEventListener("pointerup",function(b){p.Jd(b)},!1),f.addEventListener("pointercancel",
function(b){p.Jd(b)},!1)):window.navigator.msPointerEnabled?(f.addEventListener("MSPointerDown",function(b){p.lh(b)},!1),f.addEventListener("MSPointerMove",function(b){p.kh(b)},!1),f.addEventListener("MSPointerUp",function(b){p.Jd(b)},!1),f.addEventListener("MSPointerCancel",function(b){p.Jd(b)},!1)):(f.addEventListener("touchstart",function(b){p.aj(b)},!1),f.addEventListener("touchmove",function(b){p.$i(b)},!1),f.addEventListener("touchend",function(b){p.Qf(b)},!1),f.addEventListener("touchcancel",
function(b){p.Qf(b)},!1))}
(function(){function f(a){var b,e;b=0;for(e=a.H.length;b<e;b++)if(a.H[b]instanceof k.va)return a.H[b];return null}function p(){}function b(){}var k=oc.prototype,r={left:0,top:0};k.hh=function(a){1===a.which&&this.Hl("leftmouse",a.pageX,a.pageY)};k.ih=function(a){1===a.which&&this.Il("leftmouse",a.pageX,a.pageY)};k.jh=function(a){1===a.which&&this.Jl("leftmouse")};k.aj=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b,e,f,g;b=0;for(e=a.changedTouches.length;b<e;b++)f=a.changedTouches[b],
g=f.identifier,this.Hl(g?g.toString():"<none>",f.pageX,f.pageY)};k.$i=function(a){a.preventDefault&&a.preventDefault();var b,e,f,g;b=0;for(e=a.changedTouches.length;b<e;b++)f=a.changedTouches[b],g=f.identifier,this.Il(g?g.toString():"<none>",f.pageX,f.pageY)};k.Qf=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b,e,f;b=0;for(e=a.changedTouches.length;b<e;b++)f=a.changedTouches[b],f=f.identifier,this.Jl(f?f.toString():"<none>")};k.lh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType&&(a.preventDefault&&gb(a)&&a.preventDefault(),this.Hl(a.pointerId.toString(),a.pageX,a.pageY))};k.kh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.Il(a.pointerId.toString(),a.pageX,a.pageY))};k.Jd=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&gb(a)&&a.preventDefault(),this.Jl(a.pointerId.toString()))};k.Hl=function(a,b,e){var k=this.b.O?r:jQuery(this.b.canvas).offset();
b-=k.left;e-=k.top;var g,l,p,h,k=this.Lf.Wc(),s,u,m,A=null;s=0;for(u=k.length;s<u;s++)if(m=k[s],g=f(m),g.enabled&&!g.ae&&(g=m.d.ra(b,e,!0),l=m.d.ra(b,e,!1),m.qa(),m.fb(g,l)))A?m.d.index>A.d.index?(A=m,p=g,h=l):m.d.index===A.d.index&&m.yc()>A.yc()&&(A=m,p=g,h=l):(A=m,p=g,h=l);A&&f(A).Et(a,p,h)};k.Il=function(a,b,e){var k=this.b.O?r:jQuery(this.b.canvas).offset();b-=k.left;e-=k.top;var g,l=this.Lf.Wc(),p,h,s;p=0;for(h=l.length;p<h;p++)g=l[p],s=f(g),!s.enabled||!s.ae||s.ae&&s.yk!==a||(k=g.d.ra(b,e,!0),
g=g.d.ra(b,e,!1),s.It(k,g))};k.Jl=function(a){var b=this.Lf.Wc(),e,k,g;e=0;for(k=b.length;e<k;e++)g=b[e],g=f(g),g.ae&&g.yk===a&&g.Lt()};k.Xa=function(a){this.behavior=a;this.b=a.b};k.Xa.prototype.ja=function(){};k.va=function(a,b){this.type=a;this.behavior=a.behavior;this.Hb=b;this.b=a.b};var e=k.va.prototype;e.ja=function(){this.ae=!1;this.kn=this.jn=0;this.yk="<none>";this.gk=this.S[0];this.enabled=0!==this.S[1]};e.Nb=function(){return{enabled:this.enabled}};e.nc=function(a){this.enabled=a.enabled;
this.ae=!1};e.Et=function(a,b,e){this.jn=b-this.Hb.x;this.kn=e-this.Hb.y;this.ae=!0;this.yk=a;this.b.ba=!0;this.b.trigger(oc.prototype.e.vq,this.Hb);this.b.ba=!1};e.It=function(a,b){var e=a-this.jn,f=b-this.kn;if(0===this.gk){if(this.Hb.x!==e||this.Hb.y!==f)this.Hb.x=e,this.Hb.y=f,this.Hb.ua()}else 1===this.gk?this.Hb.x!==e&&(this.Hb.x=e,this.Hb.ua()):2===this.gk&&this.Hb.y!==f&&(this.Hb.y=f,this.Hb.ua())};e.Lt=function(){this.ae=!1;this.b.ba=!0;this.b.trigger(oc.prototype.e.wq,this.Hb);this.b.ba=
!1};e.Ua=function(){};p.prototype.vq=function(){return!0};p.prototype.wq=function(){return!0};k.e=new p;b.prototype.Zj=function(a){this.enabled=0!==a;this.enabled||(this.ae=!1)};k.fa=new b;k.Db=new function(){}})();
function fc(){return[hc,ic,jc,kc,gc,lc,nc,Z,oc,jc.prototype.e.bq,gc.prototype.fa.Oq,jc.prototype.e.Wj,Z.prototype.e.dq,Y.prototype.fa.Qq,jc.prototype.e.$p,Y.prototype.e.Wp,Y.prototype.fa.Lq,Y.prototype.fa.jq,hc.prototype.fa.Play,gc.prototype.fa.$j,Y.prototype.fa.Sq,Z.prototype.e.Yj,Y.prototype.e.Gm,lc.prototype.fa.Mq,jc.prototype.e.Em,gc.prototype.e.fq,Y.prototype.e.Rq,gc.prototype.fa.Xp,lc.prototype.fa.$j,lc.prototype.e.Km,lc.prototype.e.Vp,lc.prototype.fa.Zj,gc.prototype.e.cq,gc.prototype.fa.Pq,
Y.prototype.fa.Qp,gc.prototype.fa.Nq,oc.prototype.fa.Zj,Y.prototype.fa.Jq,Y.prototype.fa.Kq,Y.prototype.fa.iq]};
