// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,qa,ra,sa,ta,ua,va,wa,xa,ya,Aa,Ba,x,Ca,Da,Ea,Ha,Ia,E,Ja,Ka,O,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ua,Va,Xa,Ya,Za,$a,ab,bb,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic={},jc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(a,c,h,d){this.set(a,c,h,d)}function e(){this.Lb=this.Kb=this.Ob=this.Nb=this.Zb=this.Yb=this.rb=this.qb=0}function b(a,c,h,d){a<c?h<d?(K=a<h?a:h,C=c>d?c:d):(K=a<d?a:d,C=c>h?c:h):h<d?(K=c<h?c:h,C=a>d?a:d):(K=c<d?c:d,C=a>h?a:h)}function p(){this.items=this.r=null;this.ki=0;T&&(this.r=new Set);this.uh=[];this.Pe=!0}function m(a){D[Q++]=a}function q(){this.fa=this.rl=this.y=this.Yl=0}function f(a){this.pb=[];this.oj=this.qj=this.rj=this.pj=0;this.Ri(a)}function a(a,c){this.cm=a;
this.am=c;this.cells={}}function l(a,c){this.cm=a;this.am=c;this.cells={}}function r(a,c,h){var d;return u.length?(d=u.pop(),d.Lm=a,d.x=c,d.y=h,d):new ea(a,c,h)}function c(a,c,h){this.Lm=a;this.x=c;this.y=h;this.wb=new fa}function d(a,c,h){var d;return v.length?(d=v.pop(),d.Lm=a,d.x=c,d.y=h,d):new ga(a,c,h)}function t(a,c,h){this.Lm=a;this.x=c;this.y=h;this.wb=[];this.Og=!0;this.Rd=new fa;this.zh=!1}function k(a,c){return a.zd-c.zd}ha=function(a){window.console&&window.console.log&&window.console.log(a)};
ia=function(a){window.console&&window.console.error&&window.console.error(a)};ja=function(a){return"undefined"===typeof a};ka=function(a){return"number"===typeof a};la=function(a){return"string"===typeof a};ma=function(a){return 0<a&&0===(a-1&a)};na=function(a){--a;for(var c=1;32>c;c<<=1)a=a|a>>c;return a+1};oa=function(a){return 0>a?-a:a};qa=function(a,c){return a>c?a:c};ra=function(a,c){return a<c?a:c};sa=Math.PI;ta=function(a){return 0<=a?a|0:(a|0)-1};ua=function(a){var c=a|0;return c===a?c:c+
1};va=function(a,c,h,d,l,b,n,k){var B,w,r,f;a<h?(w=a,B=h):(w=h,B=a);l<n?(f=l,r=n):(f=n,r=l);if(B<f||w>r)return!1;c<d?(w=c,B=d):(w=d,B=c);b<k?(f=b,r=k):(f=k,r=b);if(B<f||w>r)return!1;B=l-a+n-h;w=b-c+k-d;a=h-a;c=d-c;l=n-l;b=k-b;k=oa(c*l-b*a);return oa(l*w-b*B)>k?!1:oa(a*w-c*B)<=k};g.prototype.set=function(a,c,h,d){this.left=a;this.top=c;this.right=h;this.bottom=d};g.prototype.Eh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};g.prototype.width=function(){return this.right-
this.left};g.prototype.height=function(){return this.bottom-this.top};g.prototype.offset=function(a,c){this.left+=a;this.top+=c;this.right+=a;this.bottom+=c;return this};g.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};g.prototype.mq=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};g.prototype.nq=function(a,c,h){return!(a.right+
c<this.left||a.bottom+h<this.top||a.left+c>this.right||a.top+h>this.bottom)};g.prototype.Pb=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};g.prototype.Kh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};wa=g;e.prototype.lg=function(a){this.qb=a.left;this.rb=a.top;this.Yb=a.right;this.Zb=a.top;this.Nb=a.right;this.Ob=a.bottom;this.Kb=a.left;this.Lb=a.bottom};e.prototype.Zr=function(a,c){if(0===c)this.lg(a);else{var h=
Math.sin(c),d=Math.cos(c),l=a.left*h,b=a.top*h,n=a.right*h,h=a.bottom*h,k=a.left*d,B=a.top*d,w=a.right*d,d=a.bottom*d;this.qb=k-b;this.rb=B+l;this.Yb=w-b;this.Zb=B+n;this.Nb=w-h;this.Ob=d+n;this.Kb=k-h;this.Lb=d+l}};e.prototype.offset=function(a,c){this.qb+=a;this.rb+=c;this.Yb+=a;this.Zb+=c;this.Nb+=a;this.Ob+=c;this.Kb+=a;this.Lb+=c;return this};var K=0,C=0;e.prototype.pp=function(a){b(this.qb,this.Yb,this.Nb,this.Kb);a.left=K;a.right=C;b(this.rb,this.Zb,this.Ob,this.Lb);a.top=K;a.bottom=C};e.prototype.Pb=
function(a,c){var h=this.qb,d=this.rb,l=this.Yb-h,b=this.Zb-d,n=this.Nb-h,k=this.Ob-d,B=a-h,w=c-d,r=l*l+b*b,f=l*n+b*k,b=l*B+b*w,e=n*n+k*k,g=n*B+k*w,t=1/(r*e-f*f),l=(e*b-f*g)*t,r=(r*g-f*b)*t;if(0<=l&&0<r&&1>l+r)return!0;l=this.Kb-h;b=this.Lb-d;r=l*l+b*b;f=l*n+b*k;b=l*B+b*w;t=1/(r*e-f*f);l=(e*b-f*g)*t;r=(r*g-f*b)*t;return 0<=l&&0<r&&1>l+r};e.prototype.Ne=function(a,c){if(c)switch(a){case 0:return this.qb;case 1:return this.Yb;case 2:return this.Nb;case 3:return this.Kb;case 4:return this.qb;default:return this.qb}else switch(a){case 0:return this.rb;
case 1:return this.Zb;case 2:return this.Ob;case 3:return this.Lb;case 4:return this.rb;default:return this.rb}};e.prototype.Yq=function(){return(this.qb+this.Yb+this.Nb+this.Kb)/4};e.prototype.Zq=function(){return(this.rb+this.Zb+this.Ob+this.Lb)/4};e.prototype.Wm=function(a){var c=a.Yq(),h=a.Zq();if(this.Pb(c,h))return!0;c=this.Yq();h=this.Zq();if(a.Pb(c,h))return!0;var d,l,b,n,k,B,w,r;for(w=0;4>w;w++)for(r=0;4>r;r++)if(c=this.Ne(w,!0),h=this.Ne(w,!1),d=this.Ne(w+1,!0),l=this.Ne(w+1,!1),b=a.Ne(r,
!0),n=a.Ne(r,!1),k=a.Ne(r+1,!0),B=a.Ne(r+1,!1),va(c,h,d,l,b,n,k,B))return!0;return!1};xa=e;ya=function(a,c){for(var h in c)c.hasOwnProperty(h)&&(a[h]=c[h]);return a};Aa=function(a,c){var h,d;c=ta(c);if(!(0>c||c>=a.length)){h=c;for(d=a.length-1;h<d;h++)a[h]=a[h+1];Ba(a,d)}};Ba=function(a,c){a.length=c};x=function(a){Ba(a,0)};Ca=function(a,c){x(a);var h,d;h=0;for(d=c.length;h<d;++h)a[h]=c[h]};Da=function(a,c){a.push.apply(a,c)};Ea=function(a,c){var h,d;h=0;for(d=a.length;h<d;++h)if(a[h]===c)return h;
return-1};Ha=function(a,c){var h=Ea(a,c);-1!==h&&Aa(a,h)};Ia=function(a,c,h){return a<c?c:a>h?h:a};E=function(a){return a/(180/sa)};Ja=function(a){return 180/sa*a};Ka=function(a){a%=360;0>a&&(a+=360);return a};O=function(a){a%=2*sa;0>a&&(a+=2*sa);return a};La=function(a){return Ka(Ja(a))};Ma=function(a){return O(E(a))};Na=function(a,c,h,d){return Math.atan2(d-c,h-a)};Oa=function(a,c){if(a===c)return 0;var h=Math.sin(a),d=Math.cos(a),l=Math.sin(c),b=Math.cos(c),h=h*l+d*b;return 1<=h?0:-1>=h?sa:Math.acos(h)};
Pa=function(a,c,h){var d=Math.sin(a),l=Math.cos(a),b=Math.sin(c),n=Math.cos(c);return Math.acos(d*b+l*n)>h?0<l*b-d*n?O(a+h):O(a-h):O(c)};Qa=function(a,c){var h=Math.sin(a),d=Math.cos(a),l=Math.sin(c),b=Math.cos(c);return 0>=d*l-h*b};Ra=function(a,c,h,d,l,b){if(0===h)return b?a:c;var n=Math.sin(h);h=Math.cos(h);a-=d;c-=l;var k=a*n;a=a*h-c*n;c=c*h+k;return b?a+d:c+l};Sa=function(a,c,h,d){a=h-a;c=d-c;return Math.sqrt(a*a+c*c)};Ua=function(a,c){return!a!==!c};Va=function(a){for(var c in a)if(a.hasOwnProperty(c))return!0;
return!1};Xa=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var F=+new Date;Ya=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-F};var h=!1,n=h=!1,z=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
h=!h&&/safari/i.test(navigator.userAgent),n=/(iphone|ipod|ipad)/i.test(navigator.userAgent),z=window.c2ejecta);var T=!h&&!z&&!n&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.me()?!1:T?this.r.has(a):this.items&&this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(T)this.r.has(a)||(this.r.add(a),this.Pe=!1);else{var c=a.toString(),h=this.items;h?h.hasOwnProperty(c)||(h[c]=a,this.ki++,this.Pe=!1):(this.items={},this.items[c]=
a,this.ki=1,this.Pe=!1)}};p.prototype.remove=function(a){if(!this.me())if(T)this.r.has(a)&&(this.r["delete"](a),this.Pe=!1);else if(this.items){a=a.toString();var c=this.items;c.hasOwnProperty(a)&&(delete c[a],this.ki--,this.Pe=!1)}};p.prototype.clear=function(){this.me()||(T?this.r.clear():(this.items=null,this.ki=0),x(this.uh),this.Pe=!0)};p.prototype.me=function(){return 0===this.count()};p.prototype.count=function(){return T?this.r.size:this.ki};var D=null,Q=0;p.prototype.hy=function(){if(!this.Pe){if(T)x(this.uh),
D=this.uh,Q=0,this.r.forEach(m),D=null,Q=0;else{var a=this.uh;x(a);var c,h=0,d=this.items;if(d)for(c in d)d.hasOwnProperty(c)&&(a[h++]=d[c])}this.Pe=!0}};p.prototype.Fe=function(){this.hy();return this.uh};fa=p;new fa;Za=function(a,c){T?$a(a,c.r):ab(a,c.Fe())};$a=function(a,c){var h,d,l,b;d=h=0;for(l=a.length;h<l;++h)b=a[h],c.has(b)||(a[d++]=b);Ba(a,d)};ab=function(a,c){var h,d,l,b;d=h=0;for(l=a.length;h<l;++h)b=a[h],-1===Ea(c,b)&&(a[d++]=b);Ba(a,d)};q.prototype.add=function(a){this.y=a-this.Yl;this.rl=
this.fa+this.y;this.Yl=this.rl-this.fa-this.y;this.fa=this.rl};q.prototype.reset=function(){this.fa=this.rl=this.y=this.Yl=0};bb=q;eb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};f.prototype.Ri=function(a){this.Jr=a;this.td=a.length/2;this.pb.length=a.length;this.uj=this.vj=-1;this.sp=0};f.prototype.Qf=function(){return!this.Jr.length};f.prototype.R=function(){for(var a=this.pb,c=a[0],h=c,d=a[1],l=d,b,n,k=1,B=this.td;k<B;++k)n=2*k,b=a[n],n=a[n+1],b<c&&(c=b),b>h&&(h=b),n<d&&(d=
n),n>l&&(l=n);this.pj=c;this.qj=h;this.rj=d;this.oj=l};f.prototype.lg=function(a,c,h){this.pb.length=8;this.td=4;var d=this.pb;d[0]=a.left-c;d[1]=a.top-h;d[2]=a.right-c;d[3]=a.top-h;d[4]=a.right-c;d[5]=a.bottom-h;d[6]=a.left-c;d[7]=a.bottom-h;this.vj=a.right-a.left;this.uj=a.bottom-a.top;this.R()};f.prototype.kg=function(a,c,h,d,l){this.pb.length=8;this.td=4;var b=this.pb;b[0]=a.qb-c;b[1]=a.rb-h;b[2]=a.Yb-c;b[3]=a.Zb-h;b[4]=a.Nb-c;b[5]=a.Ob-h;b[6]=a.Kb-c;b[7]=a.Lb-h;this.vj=d;this.uj=l;this.R()};
f.prototype.Yr=function(a){this.td=a.td;Ca(this.pb,a.pb);this.pj=a.pj;this.rj-a.rj;this.qj=a.qj;this.oj=a.oj};f.prototype.zf=function(a,c,h){if(this.vj!==a||this.uj!==c||this.sp!==h){this.vj=a;this.uj=c;this.sp=h;var d,l,b,n,k,B=0,w=1,r=this.Jr,f=this.pb;0!==h&&(B=Math.sin(h),w=Math.cos(h));h=0;for(b=this.td;h<b;h++)d=2*h,l=d+1,n=r[d]*a,k=r[l]*c,f[d]=n*w-k*B,f[l]=k*w+n*B;this.R()}};f.prototype.Pb=function(a,c){var h=this.pb;if(a===h[0]&&c===h[1])return!0;var d,l,b,n=this.td,k=this.pj-110,B=this.rj-
101,w=this.qj+131,r=this.oj+120,f,e,g=0,t=0;for(d=0;d<n;d++)l=2*d,b=(d+1)%n*2,f=h[l],l=h[l+1],e=h[b],b=h[b+1],va(k,B,a,c,f,l,e,b)&&g++,va(w,r,a,c,f,l,e,b)&&t++;return 1===g%2||1===t%2};f.prototype.Nf=function(a,c,h){var d=a.pb,l=this.pb;if(this.Pb(d[0]+c,d[1]+h)||a.Pb(l[0]-c,l[1]-h))return!0;var b,n,k,B,w,r,f,e,g,t,p,z;b=0;for(B=this.td;b<B;b++)for(n=2*b,k=(b+1)%B*2,e=l[n],n=l[n+1],g=l[k],t=l[k+1],k=0,f=a.td;k<f;k++)if(w=2*k,r=(k+1)%f*2,p=d[w]+c,w=d[w+1]+h,z=d[r]+c,r=d[r+1]+h,va(e,n,g,t,p,w,z,r))return!0;
return!1};fb=f;a.prototype.Xe=function(a,c,h){var d;d=this.cells[a];return d?(d=d[c])?d:h?(d=r(this,a,c),this.cells[a][c]=d):null:h?(d=r(this,a,c),this.cells[a]={},this.cells[a][c]=d):null};a.prototype.fc=function(a){return ta(a/this.cm)};a.prototype.gc=function(a){return ta(a/this.am)};a.prototype.update=function(a,c,h){var d,l,b,n,k;if(c)for(d=c.left,l=c.right;d<=l;++d)for(b=c.top,n=c.bottom;b<=n;++b)if(!h||!h.Pb(d,b))if(k=this.Xe(d,b,!1))k.remove(a),k.me()&&(k.wb.clear(),1E3>u.length&&u.push(k),
this.cells[d][b]=null);if(h)for(d=h.left,l=h.right;d<=l;++d)for(b=h.top,n=h.bottom;b<=n;++b)c&&c.Pb(d,b)||this.Xe(d,b,!0).Um(a)};a.prototype.Uk=function(a,c){var h,d,l,b,n,k;h=this.fc(a.left);l=this.gc(a.top);d=this.fc(a.right);for(n=this.gc(a.bottom);h<=d;++h)for(b=l;b<=n;++b)(k=this.Xe(h,b,!1))&&k.dump(c)};gb=a;l.prototype.Xe=function(a,c,h){var l;l=this.cells[a];return l?(l=l[c])?l:h?(l=d(this,a,c),this.cells[a][c]=l):null:h?(l=d(this,a,c),this.cells[a]={},this.cells[a][c]=l):null};l.prototype.fc=
function(a){return ta(a/this.cm)};l.prototype.gc=function(a){return ta(a/this.am)};l.prototype.update=function(a,c,h){var d,l,b,n,k;if(c)for(d=c.left,l=c.right;d<=l;++d)for(b=c.top,n=c.bottom;b<=n;++b)if(!h||!h.Pb(d,b))if(k=this.Xe(d,b,!1))k.remove(a),k.me()&&(k.reset(),1E3>v.length&&v.push(k),this.cells[d][b]=null);if(h)for(d=h.left,l=h.right;d<=l;++d)for(b=h.top,n=h.bottom;b<=n;++b)c&&c.Pb(d,b)||this.Xe(d,b,!0).Um(a)};l.prototype.Uk=function(a,c,h,d,l){var b,n;a=this.fc(a);c=this.gc(c);h=this.fc(h);
for(b=this.gc(d);a<=h;++a)for(d=c;d<=b;++d)(n=this.Xe(a,d,!1))&&n.dump(l)};l.prototype.Lw=function(a){var c,h,d,l,b;c=a.left;d=a.top;h=a.right;for(l=a.bottom;c<=h;++c)for(a=d;a<=l;++a)if(b=this.Xe(c,a,!1))b.Og=!1};hb=l;var u=[];c.prototype.me=function(){return this.wb.me()};c.prototype.Um=function(a){this.wb.add(a)};c.prototype.remove=function(a){this.wb.remove(a)};c.prototype.dump=function(a){Da(a,this.wb.Fe())};ea=c;var v=[];t.prototype.me=function(){if(!this.wb.length)return!0;if(this.wb.length>
this.Rd.count())return!1;this.xm();return!0};t.prototype.Um=function(a){this.Rd.contains(a)?(this.Rd.remove(a),this.Rd.me()&&(this.zh=!1)):this.wb.length?(this.wb[this.wb.length-1].Hd()>a.Hd()&&(this.Og=!1),this.wb.push(a)):(this.wb.push(a),this.Og=!0)};t.prototype.remove=function(a){this.Rd.add(a);this.zh=!0;30<=this.Rd.count()&&this.xm()};t.prototype.xm=function(){this.zh&&(this.Rd.count()===this.wb.length?this.reset():(Za(this.wb,this.Rd),this.Rd.clear(),this.zh=!1))};t.prototype.cv=function(){this.Og||
(this.wb.sort(k),this.Og=!0)};t.prototype.reset=function(){x(this.wb);this.Og=!0;this.Rd.clear();this.zh=!1};t.prototype.dump=function(a){this.xm();this.cv();this.wb.length&&a.push(this.wb)};ga=t;var N="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");ib=function(a){return 0>=a||11<=a?"source-over":N[a-1]};jb=function(a,c,h){if(h)switch(a.Xb=h.ONE,a.Qb=h.ONE_MINUS_SRC_ALPHA,c){case 1:a.Xb=h.ONE;a.Qb=h.ONE;break;case 3:a.Xb=
h.ONE;a.Qb=h.ZERO;break;case 4:a.Xb=h.ONE_MINUS_DST_ALPHA;a.Qb=h.ONE;break;case 5:a.Xb=h.DST_ALPHA;a.Qb=h.ZERO;break;case 6:a.Xb=h.ZERO;a.Qb=h.SRC_ALPHA;break;case 7:a.Xb=h.ONE_MINUS_DST_ALPHA;a.Qb=h.ZERO;break;case 8:a.Xb=h.ZERO;a.Qb=h.ONE_MINUS_SRC_ALPHA;break;case 9:a.Xb=h.DST_ALPHA;a.Qb=h.ONE_MINUS_SRC_ALPHA;break;case 10:a.Xb=h.ONE_MINUS_DST_ALPHA,a.Qb=h.SRC_ALPHA}};kb=function(a){return Math.round(1E6*a)/1E6};lb=function(a,c){return"string"!==typeof a||"string"!==typeof c||a.length!==c.length?
!1:a===c?!0:a.toLowerCase()===c.toLowerCase()};mb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||lb(a.tagName,"canvas")?!0:!1}})();var kc="undefined"!==typeof Float32Array?Float32Array:Array;function lc(g){var e=new kc(3);g&&(e[0]=g[0],e[1]=g[1],e[2]=g[2]);return e}
function mc(g){var e=new kc(16);g&&(e[0]=g[0],e[1]=g[1],e[2]=g[2],e[3]=g[3],e[4]=g[4],e[5]=g[5],e[6]=g[6],e[7]=g[7],e[8]=g[8],e[9]=g[9],e[10]=g[10],e[11]=g[11],e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15]);return e}function nc(g,e){e[0]=g[0];e[1]=g[1];e[2]=g[2];e[3]=g[3];e[4]=g[4];e[5]=g[5];e[6]=g[6];e[7]=g[7];e[8]=g[8];e[9]=g[9];e[10]=g[10];e[11]=g[11];e[12]=g[12];e[13]=g[13];e[14]=g[14];e[15]=g[15]}
function oc(g,e){var b=e[0],p=e[1];e=e[2];g[0]*=b;g[1]*=b;g[2]*=b;g[3]*=b;g[4]*=p;g[5]*=p;g[6]*=p;g[7]*=p;g[8]*=e;g[9]*=e;g[10]*=e;g[11]*=e}
function pc(g,e,b,p){p||(p=mc());var m,q,f,a,l,r,c,d,t=g[0],k=g[1];g=g[2];q=b[0];f=b[1];m=b[2];b=e[1];r=e[2];t===e[0]&&k===b&&g===r?(g=p,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(b=t-e[0],r=k-e[1],c=g-e[2],d=1/Math.sqrt(b*b+r*r+c*c),b*=d,r*=d,c*=d,e=f*c-m*r,m=m*b-q*c,q=q*r-f*b,(d=Math.sqrt(e*e+m*m+q*q))?(d=1/d,e*=d,m*=d,q*=d):q=m=e=0,f=r*q-c*m,a=c*e-b*q,l=b*m-r*e,(d=Math.sqrt(f*f+a*a+l*l))?(d=1/d,f*=d,a*=d,l*=d):l=a=f=0,
p[0]=e,p[1]=f,p[2]=b,p[3]=0,p[4]=m,p[5]=a,p[6]=r,p[7]=0,p[8]=q,p[9]=l,p[10]=c,p[11]=0,p[12]=-(e*t+m*k+q*g),p[13]=-(f*t+a*k+l*g),p[14]=-(b*t+r*k+c*g),p[15]=1)}
(function(){function g(a,l,b){this.ne=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ca=!!b;this.ek=this.ci=!1;this.jm=0;this.Ml=1;this.Ko=1E3;this.oy=(this.Ko-this.Ml)/32768;this.Zl=lc([0,0,100]);this.Gq=lc([0,0,0]);this.Cs=lc([0,1,0]);this.fj=lc([1,1,1]);this.Jp=!0;this.xk=mc();this.Qc=mc();this.ln=mc();this.hm=mc();this.A=a;this.version=0===this.A.getParameter(this.A.VERSION).indexOf("WebGL 2")?2:1;this.iq()}function e(a,l,b){this.A=a;this.Si=
l;this.name=b;this.Zc=a.getAttribLocation(l,"aPos");this.gf=a.getAttribLocation(l,"aTex");this.Eq=a.getUniformLocation(l,"matP");this.tk=a.getUniformLocation(l,"matMV");this.Wg=a.getUniformLocation(l,"opacity");this.tn=a.getUniformLocation(l,"colorFill");this.Fq=a.getUniformLocation(l,"samplerFront");this.si=a.getUniformLocation(l,"samplerBack");this.Yf=a.getUniformLocation(l,"destStart");this.Xf=a.getUniformLocation(l,"destEnd");this.vi=a.getUniformLocation(l,"seconds");this.vn=a.getUniformLocation(l,
"pixelWidth");this.un=a.getUniformLocation(l,"pixelHeight");this.ri=a.getUniformLocation(l,"layerScale");this.qi=a.getUniformLocation(l,"layerAngle");this.wi=a.getUniformLocation(l,"viewOrigin");this.ti=a.getUniformLocation(l,"scrollPos");this.sw=!!(this.vn||this.un||this.vi||this.si||this.Yf||this.Xf||this.ri||this.qi||this.wi||this.ti);this.Oq=this.Pq=-999;this.wk=1;this.Kq=this.Jq=0;this.Mq=this.Iq=this.Hq=1;this.Sq=this.Rq=this.Qq=this.Uq=this.Tq=this.Lq=0;this.kn=[];this.Nq=mc();this.Wg&&a.uniform1f(this.Wg,
1);this.tn&&a.uniform4f(this.tn,1,1,1,1);this.Fq&&a.uniform1i(this.Fq,0);this.si&&a.uniform1i(this.si,1);this.Yf&&a.uniform2f(this.Yf,0,0);this.Xf&&a.uniform2f(this.Xf,1,1);this.ri&&a.uniform1f(this.ri,1);this.qi&&a.uniform1f(this.qi,0);this.wi&&a.uniform2f(this.wi,0,0);this.ti&&a.uniform2f(this.ti,0,0);this.vi&&a.uniform1f(this.vi,0);this.Jf=!1}function b(a,l){return a[0]===l[0]&&a[1]===l[1]&&a[2]===l[2]&&a[3]===l[3]&&a[4]===l[4]&&a[5]===l[5]&&a[6]===l[6]&&a[7]===l[7]&&a[8]===l[8]&&a[9]===l[9]&&
a[10]===l[10]&&a[11]===l[11]&&a[12]===l[12]&&a[13]===l[13]&&a[14]===l[14]&&a[15]===l[15]}function p(a,l){this.type=a;this.p=l;this.A=l.A;this.Id=this.ec=this.tr=0;this.S=this.ed=null;this.$r=[]}var m=mc();g.prototype.iq=function(){var a=this.A,l;this.zq=1;this.Sf=this.cf=null;this.Cj=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Ca?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Aq=a.ONE;this.yq=a.ONE_MINUS_SRC_ALPHA;this.Gl=new Float32Array(8E3*(this.Ca?3:2));this.tl=new Float32Array(16E3);this.Gr=new Float32Array(32E3);this.On=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.On);a.bufferData(a.ARRAY_BUFFER,this.Gr.byteLength,a.DYNAMIC_DRAW);this.ej=Array(4);this.$i=Array(4);for(l=0;4>l;l++)this.ej[l]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.ej[l]),a.bufferData(a.ARRAY_BUFFER,this.Gl.byteLength,a.DYNAMIC_DRAW),this.$i[l]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.$i[l]),a.bufferData(a.ARRAY_BUFFER,this.tl.byteLength,a.DYNAMIC_DRAW);this.ae=0;this.ww=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.ww);for(var b=new Uint16Array(12E3),c=l=0;12E3>l;)b[l++]=c,b[l++]=c+1,b[l++]=c+2,b[l++]=c,b[l++]=c+2,b[l++]=c+3,c+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,a.STATIC_DRAW);this.Pn=this.qh=this.Ge=0;this.Xa=[];l=this.Ca?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";b=this.Fh({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},l,"<default>");this.Xa.push(b);b=this.Fh({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.Xa.push(b);b=this.Fh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},l,"<earlyz>");this.Xa.push(b);b=this.Fh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
l,"<fill>");this.Xa.push(b);for(var d in qc)qc.hasOwnProperty(d)&&this.Xa.push(this.Fh(qc[d],l,d));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Oe=[];this.Zd=0;this.Tb=!1;this.Dp=this.li=-1;this.Cg=null;this.vm=a.createFramebuffer();this.Ij=this.Wk=null;this.np=!1;this.Ca&&(this.Ij=a.createRenderbuffer());this.rf=lc([0,0,0]);this.Vq=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Vq&&(this.Vq=2048);this.qc(0)};e.prototype.Do=function(a){b(this.Nq,a)||(nc(a,this.Nq),this.A.uniformMatrix4fv(this.tk,
!1,a))};g.prototype.Fh=function(a,l,b){var c=this.A,d=c.createShader(c.FRAGMENT_SHADER);c.shaderSource(d,a.src);c.compileShader(d);if(!c.getShaderParameter(d,c.COMPILE_STATUS))throw a=c.getShaderInfoLog(d),c.deleteShader(d),Error("error compiling fragment shader: "+a);var f=c.createShader(c.VERTEX_SHADER);c.shaderSource(f,l);c.compileShader(f);if(!c.getShaderParameter(f,c.COMPILE_STATUS))throw a=c.getShaderInfoLog(f),c.deleteShader(d),c.deleteShader(f),Error("error compiling vertex shader: "+a);l=
c.createProgram();c.attachShader(l,d);c.attachShader(l,f);c.linkProgram(l);if(!c.getProgramParameter(l,c.LINK_STATUS))throw a=c.getProgramInfoLog(l),c.deleteShader(d),c.deleteShader(f),c.deleteProgram(l),Error("error linking shader program: "+a);c.useProgram(l);c.deleteShader(d);c.deleteShader(f);d=new e(c,l,b);d.tm=a.tm||0;d.um=a.um||0;d.Cp=!!a.Cp;d.sd=!!a.sd;d.lp=!!a.lp;d.T=a.T||[];a=0;for(f=d.T.length;a<f;a++)d.T[a][1]=c.getUniformLocation(l,d.T[a][0]),d.kn.push(0),c.uniform1f(d.T[a][1],0);return d};
g.prototype.Jm=function(a){var l,b;l=0;for(b=this.Xa.length;l<b;l++)if(this.Xa[l].name===a)return l;return-1};g.prototype.Ir=function(a,l,b){var c=this.Qc,d=this.xk,f=[0,0,0,0,0,0,0,0];f[0]=c[0]*a+c[4]*l+c[12];f[1]=c[1]*a+c[5]*l+c[13];f[2]=c[2]*a+c[6]*l+c[14];f[3]=c[3]*a+c[7]*l+c[15];f[4]=d[0]*f[0]+d[4]*f[1]+d[8]*f[2]+d[12]*f[3];f[5]=d[1]*f[0]+d[5]*f[1]+d[9]*f[2]+d[13]*f[3];f[6]=d[2]*f[0]+d[6]*f[1]+d[10]*f[2]+d[14]*f[3];f[7]=-f[2];0!==f[7]&&(f[7]=1/f[7],f[4]*=f[7],f[5]*=f[7],f[6]*=f[7],b[0]=(.5*f[4]+
.5)*this.width,b[1]=(.5*f[5]+.5)*this.height)};g.prototype.jg=function(a,l,b){if(this.width!==a||this.height!==l||b){this.Ve();b=this.A;this.width=a;this.height=l;b.viewport(0,0,a,l);pc(this.Zl,this.Gq,this.Cs,this.Qc);if(this.Ca){var c=-a/2;a=a/2;var d=l/2;l=-l/2;var f=this.Ml,k=this.Ko,e=this.xk;e||(e=mc());var g=a-c,p=l-d,h=k-f;e[0]=2/g;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/p;e[6]=0;e[7]=0;e[8]=0;e[9]=0;e[10]=-2/h;e[11]=0;e[12]=-(c+a)/g;e[13]=-(l+d)/p;e[14]=-(k+f)/h;e[15]=1;this.fj[0]=1;this.fj[1]=
1}else l=a/l,c=this.Ml,a=this.Ko,e=this.xk,k=c*Math.tan(45*Math.PI/360),l*=k,d=-l,f=-k,e||(e=mc()),g=l-d,p=k-f,h=a-c,e[0]=2*c/g,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*c/p,e[6]=0,e[7]=0,e[8]=(l+d)/g,e[9]=(k+f)/p,e[10]=-(a+c)/h,e[11]=-1,e[12]=0,e[13]=0,e[14]=-(a*c*2)/h,e[15]=0,c=[0,0],a=[0,0],this.Ir(0,0,c),this.Ir(1,1,a),this.fj[0]=1/(a[0]-c[0]),this.fj[1]=-1/(a[1]-c[1]);c=0;for(a=this.Xa.length;c<a;c++)d=this.Xa[c],d.Jf=!1,d.Eq&&(b.useProgram(d.Si),b.uniformMatrix4fv(d.Eq,!1,this.xk));b.useProgram(this.Xa[this.li].Si);
b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);this.Sf=this.cf=null;this.Ij&&(b.bindFramebuffer(b.FRAMEBUFFER,this.vm),b.bindRenderbuffer(b.RENDERBUFFER,this.Ij),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.np||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.Ij),this.np=!0),b.bindRenderbuffer(b.RENDERBUFFER,null),b.bindFramebuffer(b.FRAMEBUFFER,null),
this.Wk=null)}};g.prototype.bd=function(){pc(this.Zl,this.Gq,this.Cs,this.Qc);oc(this.Qc,this.fj)};g.prototype.translate=function(a,l){if(0!==a||0!==l){this.rf[0]=a;this.rf[1]=l;this.rf[2]=0;var b=this.Qc,c=this.rf,d=c[0],f=c[1],c=c[2];b[12]=b[0]*d+b[4]*f+b[8]*c+b[12];b[13]=b[1]*d+b[5]*f+b[9]*c+b[13];b[14]=b[2]*d+b[6]*f+b[10]*c+b[14];b[15]=b[3]*d+b[7]*f+b[11]*c+b[15]}};g.prototype.scale=function(a,b){if(1!==a||1!==b)this.rf[0]=a,this.rf[1]=b,this.rf[2]=1,oc(this.Qc,this.rf)};g.prototype.Zk=function(a){if(0!==
a){var b=this.Qc,f,c=Math.sin(a);a=Math.cos(a);var d=b[0],e=b[1],k=b[2],g=b[3],p=b[4],m=b[5],h=b[6],n=b[7];f?b!==f&&(f[8]=b[8],f[9]=b[9],f[10]=b[10],f[11]=b[11],f[12]=b[12],f[13]=b[13],f[14]=b[14],f[15]=b[15]):f=b;f[0]=d*a+p*c;f[1]=e*a+m*c;f[2]=k*a+h*c;f[3]=g*a+n*c;f[4]=d*-c+p*a;f[5]=e*-c+m*a;f[6]=k*-c+h*a;f[7]=g*-c+n*a}};g.prototype.Sc=function(){if(!b(this.ln,this.Qc)){var a=this.Ec();a.type=5;a.S?nc(this.Qc,a.S):a.S=mc(this.Qc);nc(this.Qc,this.ln);this.Tb=!1}};g.prototype.cl=function(a){this.Ca&&
(32760<a&&(a=32760),this.jm=this.Zl[2]-this.Ml-a*this.oy)};p.prototype.Mu=function(){var a=this.A,b=this.p;0!==this.ec?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,b.vm),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.ek=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.ek=!1)};p.prototype.Qu=function(){this.A.bindTexture(this.A.TEXTURE_2D,
this.ed)};p.prototype.Ru=function(){var a=this.A;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.ed);a.activeTexture(a.TEXTURE0)};p.prototype.Nu=function(){var a=this.tr,b=this.p;b.Cj=a;b=b.Cg;b.Wg&&b.wk!==a&&(b.wk=a,this.A.uniform1f(b.Wg,a))};p.prototype.Hu=function(){this.A.drawElements(this.A.TRIANGLES,this.Id,this.A.UNSIGNED_SHORT,this.ec)};p.prototype.Ju=function(){this.A.blendFunc(this.ec,this.Id)};p.prototype.Su=function(){var a,b,f,c=this.p.Xa,d=this.p.Dp;a=0;for(b=c.length;a<
b;a++)f=c[a],a===d&&f.tk?(f.Do(this.S),f.Jf=!0):f.Jf=!1;nc(this.S,this.p.hm)};p.prototype.Iu=function(){var a=this.A,b=this.p;this.ed?(b.Sf===this.ed&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.Sf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.vm),b.ek||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.ed,0)):(b.Ca||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};
p.prototype.Eu=function(){var a=this.A,b=this.ec;0===b?(a.clearColor(this.S[0],this.S[1],this.S[2],this.S[3]),a.clear(a.COLOR_BUFFER_BIT)):1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.S[0],this.S[1],this.S[2],this.S[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};p.prototype.Lu=function(){var a=this.A;0!==this.ec?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};p.prototype.Gu=function(){var a=this.A,b=this.p;b.Ca&&a.disable(a.DEPTH_TEST);
var f=b.Xa[1];a.useProgram(f.Si);!f.Jf&&f.tk&&(f.Do(b.hm),f.Jf=!0);a.enableVertexAttribArray(f.Zc);a.bindBuffer(a.ARRAY_BUFFER,b.On);a.vertexAttribPointer(f.Zc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.ec/4,this.Id);f=b.Cg;a.useProgram(f.Si);0<=f.Zc&&(a.enableVertexAttribArray(f.Zc),a.bindBuffer(a.ARRAY_BUFFER,b.ej[b.ae]),a.vertexAttribPointer(f.Zc,b.Ca?3:2,a.FLOAT,!1,0,0));0<=f.gf&&(a.enableVertexAttribArray(f.gf),a.bindBuffer(a.ARRAY_BUFFER,b.$i[b.ae]),a.vertexAttribPointer(f.gf,2,a.FLOAT,!1,
0,0));b.Ca&&a.enable(a.DEPTH_TEST)};p.prototype.Ou=function(){var a=this.A,b=this.p,f=b.Xa[this.ec];b.Dp=this.ec;b.Cg=f;a.useProgram(f.Si);!f.Jf&&f.tk&&(f.Do(b.hm),f.Jf=!0);f.Wg&&f.wk!==b.Cj&&(f.wk=b.Cj,a.uniform1f(f.Wg,b.Cj));0<=f.Zc&&(a.enableVertexAttribArray(f.Zc),a.bindBuffer(a.ARRAY_BUFFER,b.ej[b.ae]),a.vertexAttribPointer(f.Zc,b.Ca?3:2,a.FLOAT,!1,0,0));0<=f.gf&&(a.enableVertexAttribArray(f.gf),a.bindBuffer(a.ARRAY_BUFFER,b.$i[b.ae]),a.vertexAttribPointer(f.gf,2,a.FLOAT,!1,0,0))};p.prototype.Ku=
function(){var a=this.S;this.A.uniform4f(this.p.Cg.tn,a[0],a[1],a[2],a[3])};p.prototype.Pu=function(){var a,b,f=this.p.Cg,c=this.A;a=this.S;f.si&&this.p.Sf!==this.ed&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,this.ed),this.p.Sf=this.ed,c.activeTexture(c.TEXTURE0));var d=a[0];f.vn&&d!==f.Pq&&(f.Pq=d,c.uniform1f(f.vn,d));d=a[1];f.un&&d!==f.Oq&&(f.Oq=d,c.uniform1f(f.un,d));d=a[2];b=a[3];!f.Yf||d===f.Jq&&b===f.Kq||(f.Jq=d,f.Kq=b,c.uniform2f(f.Yf,d,b));d=a[4];b=a[5];!f.Xf||d===f.Hq&&b===
f.Iq||(f.Hq=d,f.Iq=b,c.uniform2f(f.Xf,d,b));d=a[6];f.ri&&d!==f.Mq&&(f.Mq=d,c.uniform1f(f.ri,d));d=a[7];f.qi&&d!==f.Lq&&(f.Lq=d,c.uniform1f(f.qi,d));d=a[8];b=a[9];!f.wi||d===f.Tq&&b===f.Uq||(f.Tq=d,f.Uq=b,c.uniform2f(f.wi,d,b));d=a[10];b=a[11];!f.ti||d===f.Qq&&b===f.Rq||(f.Qq=d,f.Rq=b,c.uniform2f(f.ti,d,b));d=a[12];f.vi&&d!==f.Sq&&(f.Sq=d,c.uniform1f(f.vi,d));if(f.T.length)for(a=0,b=f.T.length;a<b;a++)d=this.$r[a],d!==f.kn[a]&&(f.kn[a]=d,c.uniform1f(f.T[a][1],d))};g.prototype.Ec=function(){this.Zd===
this.Oe.length&&this.Oe.push(new p(0,this));return this.Oe[this.Zd++]};g.prototype.Ve=function(){if(0!==this.Zd&&!this.A.isContextLost()){var a=this.A;0<this.Pn&&(a.bindBuffer(a.ARRAY_BUFFER,this.On),a.bufferSubData(a.ARRAY_BUFFER,0,this.Gr.subarray(0,this.Pn)),b&&0<=b.Zc&&"<point>"===b.name&&a.vertexAttribPointer(b.Zc,4,a.FLOAT,!1,0,0));if(0<this.Ge){var b=this.Cg;a.bindBuffer(a.ARRAY_BUFFER,this.ej[this.ae]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Gl.subarray(0,this.Ge));b&&0<=b.Zc&&"<point>"!==b.name&&
a.vertexAttribPointer(b.Zc,this.Ca?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.$i[this.ae]);a.bufferSubData(a.ARRAY_BUFFER,0,this.tl.subarray(0,this.qh));b&&0<=b.gf&&"<point>"!==b.name&&a.vertexAttribPointer(b.gf,2,a.FLOAT,!1,0,0)}for(var f,a=0,b=this.Zd;a<b;a++)switch(f=this.Oe[a],f.type){case 1:f.Hu();break;case 2:f.Qu();break;case 3:f.Nu();break;case 4:f.Ju();break;case 5:f.Su();break;case 6:f.Iu();break;case 7:f.Eu();break;case 8:f.Gu();break;case 9:f.Ou();break;case 10:f.Pu();break;
case 11:f.Ru();break;case 12:f.Ku();break;case 13:f.Lu();break;case 14:f.Mu()}this.Pn=this.qh=this.Ge=this.Zd=0;this.ek=this.Tb=!1;this.ae++;4<=this.ae&&(this.ae=0)}};g.prototype.ig=function(a){if(a!==this.zq&&!this.ci){var b=this.Ec();b.type=3;this.zq=b.tr=a;this.Tb=!1}};g.prototype.Gc=function(a){if(a!==this.cf){var b=this.Ec();b.type=2;this.cf=b.ed=a;this.Tb=!1}};g.prototype.pf=function(a,b){if((a!==this.Aq||b!==this.yq)&&!this.ci){var f=this.Ec();f.type=4;f.ec=a;f.Id=b;this.Aq=a;this.yq=b;this.Tb=
!1}};g.prototype.Rr=function(){this.pf(this.A.ONE,this.A.ONE_MINUS_SRC_ALPHA)};g.prototype.Li=function(a,b,f,c,d,e,k,g){15992<=this.Ge&&this.Ve();var p=this.Ge,m=this.qh,h=this.Gl,n=this.tl,z=this.jm;if(this.Tb)this.Oe[this.Zd-1].Id+=6;else{var q=this.Ec();q.type=1;q.ec=this.Ca?p:p/2*3;q.Id=6;this.Tb=!0}this.Ca?(h[p++]=a,h[p++]=b,h[p++]=z,h[p++]=f,h[p++]=c,h[p++]=z,h[p++]=d,h[p++]=e,h[p++]=z,h[p++]=k,h[p++]=g,h[p++]=z):(h[p++]=a,h[p++]=b,h[p++]=f,h[p++]=c,h[p++]=d,h[p++]=e,h[p++]=k,h[p++]=g);n[m++]=
0;n[m++]=0;n[m++]=1;n[m++]=0;n[m++]=1;n[m++]=1;n[m++]=0;n[m++]=1;this.Ge=p;this.qh=m};g.prototype.Sd=function(a,b,f,c,d,e,k,g,p){15992<=this.Ge&&this.Ve();var m=this.Ge,h=this.qh,n=this.Gl,z=this.tl,q=this.jm;if(this.Tb)this.Oe[this.Zd-1].Id+=6;else{var D=this.Ec();D.type=1;D.ec=this.Ca?m:m/2*3;D.Id=6;this.Tb=!0}var D=p.left,Q=p.top,u=p.right;p=p.bottom;this.Ca?(n[m++]=a,n[m++]=b,n[m++]=q,n[m++]=f,n[m++]=c,n[m++]=q,n[m++]=d,n[m++]=e,n[m++]=q,n[m++]=k,n[m++]=g,n[m++]=q):(n[m++]=a,n[m++]=b,n[m++]=f,
n[m++]=c,n[m++]=d,n[m++]=e,n[m++]=k,n[m++]=g);z[h++]=D;z[h++]=Q;z[h++]=u;z[h++]=Q;z[h++]=u;z[h++]=p;z[h++]=D;z[h++]=p;this.Ge=m;this.qh=h};g.prototype.qc=function(a){if(this.li!==a){if(!this.Xa[a]){if(0===this.li)return;a=0}var b=this.Ec();b.type=9;this.li=b.ec=a;this.Tb=!1}};g.prototype.Ii=function(a){a=this.Xa[a];return!(!a.Yf&&!a.Xf)};g.prototype.Sn=function(a){a=this.Xa[a];return!!(a.Yf||a.Xf||a.Cp)};g.prototype.Rn=function(a){return this.Xa[a].sd};g.prototype.ox=function(a){a=this.Xa[a];return 0!==
a.tm||0!==a.um};g.prototype.$v=function(a){return this.Xa[a].tm};g.prototype.aw=function(a){return this.Xa[a].um};g.prototype.bw=function(a,b){return this.Xa[a].T[b][2]};g.prototype.Rk=function(a){return this.Xa[a].lp};g.prototype.nh=function(a,b,f,c,d,e,k,g,p,m,h,n,z,q,D){var Q=this.Xa[this.li],u,v;if(Q.sw||D.length){u=this.Ec();u.type=10;u.S?nc(this.Qc,u.S):u.S=mc();v=u.S;v[0]=b;v[1]=f;v[2]=c;v[3]=d;v[4]=e;v[5]=k;v[6]=g;v[7]=p;v[8]=m;v[9]=h;v[10]=n;v[11]=z;v[12]=q;Q.si?u.ed=a:u.ed=null;if(D.length)for(f=
u.$r,f.length=D.length,a=0,b=D.length;a<b;a++)f[a]=D[a];this.Tb=!1}};g.prototype.clear=function(a,b,f,c){var d=this.Ec();d.type=7;d.ec=0;d.S||(d.S=mc());d.S[0]=a;d.S[1]=b;d.S[2]=f;d.S[3]=c;this.Tb=!1};g.prototype.clearRect=function(a,b,f,c){if(!(0>f||0>c)){var d=this.Ec();d.type=7;d.ec=1;d.S||(d.S=mc());d.S[0]=a;d.S[1]=b;d.S[2]=f;d.S[3]=c;this.Tb=!1}};g.prototype.Ur=function(a){if(this.Ca&&(a=!!a,this.ci!==a)){var b=this.Ec();b.type=14;b.ec=a?1:0;this.Tb=!1;this.ci=a;this.Wk=null;this.ci?this.qc(2):
this.qc(0)}};g.prototype.Tr=function(a){if(this.Ca){var b=this.Ec();b.type=13;b.ec=a?1:0;this.Tb=!1}};g.prototype.Sp=function(){nc(this.ln,m);this.bd();this.Sc();var a=this.width/2,b=this.height/2;this.Li(-a,b,a,b,a,-b,-a,-b);nc(m,this.Qc);this.Sc()};g.prototype.Sr=function(a,b,f){this.qc(3);var c=this.Ec();c.type=12;c.S||(c.S=mc());c.S[0]=a;c.S[1]=b;c.S[2]=f;c.S[3]=1;this.Tb=!1};g.prototype.Tx=function(){this.qc(0)};g.prototype.Cx=function(){this.qc(2)};g.prototype.nx=function(){this.Ve();this.A.flush()};
var q=[],f={};g.prototype.vu=function(){x(q);f={}};g.prototype.rk=function(a,b,e,c){b=!!b;e=!!e;var d=a.src+","+b+","+e+(b?",undefined":""),g=null;if("undefined"!==typeof a.src&&f.hasOwnProperty(d))return g=f[d],g.tj++,g;this.Ve();var k=this.A,p=ma(a.width)&&ma(a.height),g=k.createTexture();k.bindTexture(k.TEXTURE_2D,g);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=k.RGBA,F=k.RGBA,h=k.UNSIGNED_BYTE;if(c&&!this.ne)switch(c){case 1:F=m=k.RGB;break;case 2:h=k.UNSIGNED_SHORT_4_4_4_4;break;
case 3:h=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:F=m=k.RGB,h=k.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!p&&b){c=document.createElement("canvas");c.width=na(a.width);c.height=na(a.height);var n=c.getContext("2d");"undefined"!==typeof n.imageSmoothingEnabled?n.imageSmoothingEnabled=e:(n.webkitImageSmoothingEnabled=e,n.mozImageSmoothingEnabled=e,n.msImageSmoothingEnabled=e);n.drawImage(a,0,0,a.width,a.height,0,0,c.width,c.height);k.texImage2D(k.TEXTURE_2D,0,m,F,h,c)}else k.texImage2D(k.TEXTURE_2D,0,
m,F,h,a);b?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));e?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.LINEAR),(p||2<=this.version)&&this.Jp?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,
k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.cf=null;g.yf=a.width;g.xf=a.height;g.tj=1;g.rp=d;q.push(g);return f[d]=g};g.prototype.Kc=function(a,b,f,c){this.Ve();var d=this.A;this.ne&&(c=!1);var e=d.createTexture();d.bindTexture(d.TEXTURE_2D,e);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,a,b,0,d.RGBA,c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,
d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,f?d.LINEAR:d.NEAREST);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,f?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.cf=null;e.yf=a;e.xf=b;q.push(e);return e};g.prototype.my=function(a,b,f){this.Ve();var c=this.A;this.ne&&(f=!1);c.bindTexture(c.TEXTURE_2D,b);c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,
f?c.UNSIGNED_SHORT_4_4_4_4:c.UNSIGNED_BYTE,a)}catch(d){console&&console.error&&console.error("Error updating WebGL texture: ",d)}c.bindTexture(c.TEXTURE_2D,null);this.cf=null};g.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.tj&&1<a.tj?a.tj--:(this.Ve(),a===this.cf&&(this.A.bindTexture(this.A.TEXTURE_2D,null),this.cf=null),a===this.Sf&&(this.A.activeTexture(this.A.TEXTURE1),this.A.bindTexture(this.A.TEXTURE_2D,null),this.A.activeTexture(this.A.TEXTURE0),this.Sf=null),Ha(q,a),"undefined"!==
typeof a.rp&&delete f[a.rp],this.A.deleteTexture(a)))};g.prototype.cd=function(a){if(a!==this.Wk){var b=this.Ec();b.type=6;this.Wk=b.ed=a;this.Tb=!1}};nb=g})();
(function(){function g(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var c=this;this.yc=(this.fk=/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.Ub=!!a.dc;this.pq="undefined"!==typeof window.AppMobi||
this.Ub;this.xc=!!window.c2cocoonjs;this.Yc=!!window.c2ejecta;this.xc&&(CocoonJS.App.onSuspended.addEventListener(function(){c.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){c.setSuspended(!1)}));this.Yc&&(document.addEventListener("pagehide",function(){c.setSuspended(!0)}),document.addEventListener("pageshow",function(){c.setSuspended(!1)}),document.addEventListener("resize",function(){c.setSize(window.innerWidth,window.innerHeight)}));this.Aa=this.Ub||this.xc||this.Yc;this.ei=
/edge\//i.test(navigator.userAgent);this.ne=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.ei;this.tq=/tizen/i.test(navigator.userAgent);this.ck=/android/i.test(navigator.userAgent)&&!this.tq&&!this.ne&&!this.ei;this.xq=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.ne&&!this.ei;this.Hw=/ipad/i.test(navigator.userAgent);this.Qg=this.xq||this.Hw||this.Yc;this.Ym=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.ne&&!this.ei;this.oq=/amazonwebappplatform/i.test(navigator.userAgent);this.Aw=/firefox/i.test(navigator.userAgent);this.Dw=/safari/i.test(navigator.userAgent)&&!this.Ym&&!this.ne&&!this.ei;this.Ew=/windows/i.test(navigator.userAgent);this.sq=this.fi="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.uq=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.Gw=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.hi=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.hn=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.gn=!!window.cr_windows10;this.dn=this.uq||this.Gw||this.hn||this.gn;this.zw=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.dk=this.ck&&!this.Ym&&!this.fk&&!this.Aw&&!this.oq&&!this.Aa;
this.devicePixelRatio=1;this.pe=this.yc||this.fk||this.pq||this.xc||this.ck||this.Qg||this.hi||this.hn||this.zw||this.tq||this.Yc;this.pe||(this.pe=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.gk=!!(this.Qg&&this.yc&&window.webkit);"undefined"===typeof cr_is_preview||this.fi||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.fi=!0);this.qq="undefined"!==
typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.vp=document.getElementById("c2canvasdiv");this.p=this.A=null;this.Km="(unavailable)";this.Ca=!1;this.Ff=0;this.Ga=null;this.Rj=!1;this.mr=this.nr=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Ub&&(window.c2runtime=
this);this.fi&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.dk&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.F=this.width;this.D=this.height;this.Aj=this.width;this.Hh=this.height;this.Tg=window.innerWidth;this.Sg=window.innerHeight;this.ta=!0;this.gi=!1;Date.now||(Date.now=
function(){return+new Date});this.plugins=[];this.types={};this.q=[];this.Ra=[];this.qn={};this.Ac=[];this.rm={};this.he=[];this.wh=[];this.Al=[];this.iu=[];this.ju=[];this.js=null;this.Cf={};this.$m=this.Ze=!1;this.oe=0;this.Zm=this.bn=!1;this.nd=[];this.di=!1;this.pk=this.co="";this.ob=null;this.te="";this.Xi=this.es=!1;this.Qj=[];this.Ef=this.Ue=0;this.$q=30;this.gm=this.xi=0;this.sg=1;this.Bb=new bb;this.He=new bb;this.Ak=this.Uj=this.Nh=this.Vd=this.Uf=this.ym=this.kk=0;this.$d=null;this.Jj=
[];this.qm=[];this.Mj=-1;this.wn=[[]];this.yo=this.uk=0;this.Tk(null);this.Oh=this.hr=this.Di=0;this.Yi=[];this.vo=this.Vn=-1;this.Rf=!0;this.Vg=0;this.Jd=!1;this.Xx=0;this.zg=null;this.Vb=this.Zj=!1;this.lr=new fa;this.Cn=new fa;this.Dn=new fa;this.hg=[];this.rc=new fb([]);this.po=new fb([]);this.Me=[];this.Yj={};this.Qe={};this.Le={};this.vh={};this.op={};this.Dq=this.ok=this.gb=this.nb=this.Cq=this.nk=this.aa=null;this.sh=this.jn=!1;this.Am=[null,null];this.ke=0;this.wm="";this.we={};this.Ui=this.ef=
null;this.gs="";this.zk=[];this.Bx()}}function e(a,c){return 128>=c?a[3]:256>=c?a[2]:512>=c?a[1]:a[0]}function b(){try{return!!window.indexedDB}catch(a){return!1}}function p(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function m(a,c,h,b){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=p;d.onerror=b;d.onsuccess=function(d){d=d.target.result;d.onerror=b;d.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:c}).onsuccess=h}}catch(f){b(f)}}function q(a,
c,h){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=p;d.onerror=h;d.onsuccess=function(d){d=d.target.result;d.onerror=h;var b=d.transaction(["saves"]).objectStore("saves").get(a);b.onsuccess=function(){b.result?c(b.result.data):c(null)}}}catch(b){h(b)}}function f(){ha("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var c,h=
{};for(c in a)!a.hasOwnProperty(c)||a[c]instanceof fa||a[c]&&"undefined"!==typeof a[c].Qz||"spriteCreatedDestroyCallback"!==c&&(h[c]=a[c]);return h}var l=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;g.prototype.Bx=function(){var a=this;if(this.gk)this.Jv(function(c){a.pi(JSON.parse(c))},function(){alert("Error fetching data.js")});else{var c;this.hi?c=new ActiveXObject("Microsoft.XMLHTTP"):
c=new XMLHttpRequest;var h="data.js";if(this.uq||this.hi||this.hn||this.gn)h="data.json";c.open("GET",h,!0);var d=!1;if(!this.Aa&&"response"in c&&"responseType"in c)try{c.responseType="json",d="json"===c.responseType}catch(b){d=!1}if(!d&&"responseType"in c)try{c.responseType="text"}catch(f){}if("overrideMimeType"in c)try{c.overrideMimeType("application/json; charset=utf-8")}catch(n){}this.hi?c.onreadystatechange=function(){4===c.readyState&&a.pi(JSON.parse(c.responseText))}:(c.onload=function(){if(d)a.pi(c.response);
else if(a.Yc){var h=c.responseText,h=h.substr(h.indexOf("{"));a.pi(JSON.parse(h))}else a.pi(JSON.parse(c.responseText))},c.onerror=function(a){ia("Error requesting "+h+":");ia(a)});c.send()}};g.prototype.xw=function(){var a=this,c,h,d,b,f,n,k,l,e;this.Pf=(!this.Aa||this.Yc||this.yc)&&this.jy&&!this.dk;0===this.ac&&this.Qg&&(this.Pf=!1);this.devicePixelRatio=this.Pf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Hb();0<this.ac&&
this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(c){c.preventDefault();a.Qw();ha("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.p.iq();a.p.jg(a.p.width,a.p.height,!0);a.nb=null;a.gb=null;a.Am[0]=null;a.Am[1]=null;a.Rw();a.ta=!0;ha("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.$u&&(this.xc||this.Yc||!this.Aa)&&(c={alpha:!0,
depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.A=this.canvas.getContext("webgl2",c)||this.canvas.getContext("webgl",c)||this.canvas.getContext("experimental-webgl",c))}catch(g){}if(this.A){if(c=this.A.getExtension("WEBGL_debug_renderer_info"))this.Km=this.A.getParameter(c.UNMASKED_RENDERER_WEBGL)+" ["+this.A.getParameter(c.UNMASKED_VENDOR_WEBGL)+"]";this.Ca&&(this.Km+=" [front-to-back enabled]");this.Aa||(this.Eb=document.createElement("canvas"),jQuery(this.Eb).appendTo(this.canvas.parentNode),
this.Eb.oncontextmenu=function(){return!1},this.Eb.onselectstart=function(){return!1},this.Eb.width=Math.round(this.Aj*this.devicePixelRatio),this.Eb.height=Math.round(this.Hh*this.devicePixelRatio),jQuery(this.Eb).css({width:this.Aj+"px",height:this.Hh+"px"}),this.Hr(),this.Nn=this.Eb.getContext("2d"));this.p=new nb(this.A,this.pe,this.Ca);this.p.jg(this.canvas.width,this.canvas.height);this.p.Jp=0!==this.Tu;this.Ga=null;c=0;for(h=this.q.length;c<h;c++)for(f=this.q[c],d=0,b=f.N.length;d<b;d++)k=
f.N[d],k.jb=this.p.Jm(k.id),k.sd=this.p.Rn(k.jb),this.sh=this.sh||this.p.Ii(k.jb);c=0;for(h=this.Ac.length;c<h;c++){l=this.Ac[c];d=0;for(b=l.N.length;d<b;d++)k=l.N[d],k.jb=this.p.Jm(k.id),k.sd=this.p.Rn(k.jb);l.yd();d=0;for(b=l.O.length;d<b;d++){e=l.O[d];f=0;for(n=e.N.length;f<n;f++)k=e.N[f],k.jb=this.p.Jm(k.id),k.sd=this.p.Rn(k.jb),this.sh=this.sh||this.p.Ii(k.jb);e.yd()}}}else{if(0<this.ac&&this.Ub){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};
this.Ga=AppMobi.canvas.getContext("2d");try{this.Ga.samplingMode=this.Ka?"smooth":"sharp",this.Ga.globalScale=1,this.Ga.HTML5CompatibilityMode=!0,this.Ga.imageSmoothingEnabled=this.Ka}catch(p){}0!==this.width&&0!==this.height&&(this.Ga.width=this.width,this.Ga.height=this.height)}this.Ga||(this.xc?(c={antialias:!!this.Ka,alpha:!0},this.Ga=this.canvas.getContext("2d",c)):(c={alpha:!0},this.Ga=this.canvas.getContext("2d",c)),this.bl(this.Ga,this.Ka));this.Nn=this.Eb=null}this.us=function(c){a.Pa(!1,
c)};window==window.top||this.Aa||this.dn||this.hi||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.xc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ha("Reloading for continuous preview"),this.pk="__c2_continuouspreview",this.Xi=!0),this.dx&&!this.pe&&(jQuery(window).focus(function(){a.setSuspended(!1)}),
jQuery(window).blur(function(){var c=window.parent;c&&c.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.eg()});this.Aa||(c=function(a){if(mb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(c){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",c):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",
c):document.addEventListener("touchstart",c),document.addEventListener("mousedown",c));0===this.ac&&this.Pf&&1<this.devicePixelRatio&&this.setSize(this.Ma,this.La,!0);this.zs();this.pw();this.go();this.ca={}};g.prototype.setSize=function(a,c,h){var d=0,b=0,f=0,n=0,n=0;if(this.Tg!==a||this.Sg!==c||h){this.Tg=a;this.Sg=c;var k=this.ac;if((f=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Jd)&&!this.yc)||0!==this.ac||h)f&&0<this.ke&&(k=
this.ke),h=this.devicePixelRatio,4<=k?(f=this.Ma/this.La,a/c>f?(f*=c,5===k?(n=f*h/this.Ma,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),f=this.Ma*n/h,n=this.La*n/h,d=(a-f)/2,b=(c-n)/2,a=f,c=n):(d=(a-f)/2,a=f)):(n=a/f,5===k?(n=n*h/this.La,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),f=this.Ma*n/h,n=this.La*n/h,d=(a-f)/2,b=(c-n)/2,a=f):b=(c-n)/2,c=n)):this.fi&&this.Jd&&0===this.Tp&&(d=Math.floor((a-this.Ma)/2),b=Math.floor((c-this.La)/2),a=this.Ma,c=this.La),2>k&&(this.Bh=h),this.Aj=Math.round(a),
this.Hh=Math.round(c),this.width=Math.round(a*h),this.height=Math.round(c*h),this.ta=!0,this.Ls?(this.F=this.width,this.D=this.height,this.Mc=!0):this.width<this.Ma&&this.height<this.La||1===k?(this.F=this.width,this.D=this.height,this.Mc=!0):(this.F=this.Ma,this.D=this.La,this.Mc=!1,2===k?(f=this.Ma/this.La,k=this.Tg/this.Sg,k<f?this.F=this.D*k:k>f&&(this.D=this.F/k)):3===k&&(f=this.Ma/this.La,k=this.Tg/this.Sg,k>f?this.F=this.D*k:k<f&&(this.D=this.F/k))),this.vp&&!this.Aa&&(jQuery(this.vp).css({width:Math.round(a)+
"px",height:Math.round(c)+"px","margin-left":Math.floor(d)+"px","margin-top":Math.floor(b)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*h),this.canvas.height=Math.round(c*h),this.Yc?(this.canvas.style.left=Math.floor(d)+"px",this.canvas.style.top=Math.floor(b)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px"):this.Pf&&!this.Aa&&(this.canvas.style.width=
Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px")),this.Eb&&(this.Eb.width=Math.round(a*h),this.Eb.height=Math.round(c*h),this.Eb.style.width=this.Aj+"px",this.Eb.style.height=this.Hh+"px"),this.p&&this.p.jg(Math.round(a*h),Math.round(c*h)),this.Ub&&this.Ga&&(this.Ga.width=Math.round(a),this.Ga.height=Math.round(c)),this.Ga&&this.bl(this.Ga,this.Ka),this.zs(),this.xq&&!this.yc&&window.scrollTo(0,0)}};g.prototype.zs=function(){if(this.nu&&0!==this.Mn){var a="portrait";2===this.Mn&&(a=
"landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(c){console&&console.warn&&console.warn("Failed to lock orientation: ",c)}}};g.prototype.Qw=function(){this.p.vu();this.jn=!0;var a,c,h;a=0;for(c=this.q.length;a<c;a++)h=
this.q[a],h.Ck&&h.Ck()};g.prototype.Rw=function(){this.jn=!1;var a,c,h;a=0;for(c=this.q.length;a<c;a++)h=this.q[a],h.Jn&&h.Jn()};g.prototype.Hr=function(){if(!this.Aa){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Jd)&&!this.yc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Eb).css(a)}};var r=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||
window.msCancelAnimationFrame||window.oCancelAnimationFrame;g.prototype.setSuspended=function(a){var c;if(a&&!this.gi)for(ha("[Construct 2] Suspending"),this.gi=!0,-1!==this.Vn&&r&&r(this.Vn),-1!==this.vo&&clearTimeout(this.vo),a=0,c=this.Yi.length;a<c;a++)this.Yi[a](!0);else if(!a&&this.gi){ha("[Construct 2] Resuming");this.gi=!1;this.kk=Ya();this.Uf=Ya();a=this.xi=this.Uj=0;for(c=this.Yi.length;a<c;a++)this.Yi[a](!1);this.Pa(!1)}};g.prototype.fp=function(a){this.Yi.push(a)};g.prototype.Je=function(a){return this.zk[a]};
g.prototype.pi=function(a){a&&a.project||ia("Project model unavailable");a=a.project;this.name=a[0];this.Rp=a[1];this.ac=a[12];this.Tp=a[12];this.Ma=a[10];this.La=a[11];this.Dr=this.Ma/2;this.Er=this.La/2;this.Aa&&!this.Yc&&(4<=a[12]||0===a[12])&&(ha("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Tp=this.ac=3);this.Go=a[18];this.ff=a[19];if(0===this.ff){var c=new Image;c.crossOrigin="anonymous";this.Wr(c,"loading-logo.png");
this.ef={vk:c}}else if(4===this.ff){c=new Image;c.src="";var h=new Image;h.src="";var d=new Image;d.src="";var b=new Image;b.src="";var f=new Image;f.src="";var n=new Image;n.src="";var k=new Image;k.src="";var l=new Image;l.src="";var e=new Image;e.src="";var g=new Image;g.src="";var p=new Image;p.src="";var z=new Image;z.src="";this.ef={vk:[c,h,d,b],kx:[f,n,k,l],ny:[e,g,p,z]}}this.Di=a[21];this.zk=rc();this.Ud=new P(this);c=0;for(h=a[2].length;c<h;c++)k=a[2][c],d=this.Je(k[0]),ob(k,d.prototype),
l=new d(this),l.ml=k[1],l.bf=k[2],l.Wz=k[5],l.cr=k[9],l.K&&l.K(),this.plugins.push(l);this.zk=rc();c=0;for(h=a[3].length;c<h;c++){k=a[3][c];f=this.Je(k[1]);l=null;d=0;for(b=this.plugins.length;d<b;d++)if(this.plugins[d]instanceof f){l=this.plugins[d];break}e=new l.na(l);e.name=k[0];e.G=k[2];e.Vm=k[3].slice(0);e.ly=k[3].length;e.ou=k[4];e.Nv=k[5];e.U=k[11];e.G?(e.Zg=[],e.ie=this.Oh++,e.Ha=null):(e.Zg=null,e.ie=-1,e.Ha=[]);e.Oj=null;e.Fg=null;e.Kp=null;e.Pc=!1;e.tc=null;k[6]?(e.ro=k[6][0],e.so=k[6][1],
e.to=k[6][2]):(e.ro=null,e.so=0,e.to=0);k[7]?e.sc=k[7]:e.sc=null;e.index=c;e.e=[];e.Ej=[];e.Ce=[new pb(e)];e.Cd=0;e.Dd=null;e.Bu=0;e.ph=!0;e.Bl=qb;e.Tv=rb;e.Yv=sb;e.qa=tb;e.Ki=wb;e.Sk=xb;e.fg=yb;e.Wj=zb;e.Bm=Ab;e.Em=Bb;e.Vc=Cb;e.Gm=Db;e.xj=new gb(this.Ma,this.La);e.lj=!0;e.mj=!1;e.ca={};e.toString=Eb;e.Ra=[];d=0;for(b=k[8].length;d<b;d++){g=k[8][d];p=this.Je(g[1]);z=null;f=0;for(n=this.Ra.length;f<n;f++)if(this.Ra[f]instanceof p){z=this.Ra[f];break}z||(z=new p(this),z.An=[],z.yk=new fa,z.K&&z.K(),
this.Ra.push(z),sc&&z instanceof sc&&(this.js=z));-1===z.An.indexOf(e)&&z.An.push(e);f=new z.na(z,e);f.name=g[0];f.U=g[2];f.K();e.Ra.push(f)}e.global=k[9];e.an=k[10];e.N=[];d=0;for(b=k[12].length;d<b;d++)e.N.push({id:k[12][d][0],name:k[12][d][1],jb:-1,sd:!1,Ib:!0,index:d});e.jA=k[13];this.Go&&!e.G&&!e.an&&l.bf||e.K();e.name&&(this.types[e.name]=e);this.q.push(e);l.ml&&(d=new l.ba(e),d.uid=this.Di++,d.Kr=this.hr++,d.Lf=0,d.Wh=Fb,d.toString=Gb,d.n=k[14],d.K(),e.e.push(d),this.we[d.uid.toString()]=d)}c=
0;for(h=a[4].length;c<h;c++)for(f=a[4][c],n=this.q[f[0]],d=1,b=f.length;d<b;d++)k=this.q[f[d]],k.Ha.push(n),n.Zg.push(k);c=0;for(h=a[28].length;c<h;c++){f=a[28][c];n=[];d=0;for(b=f.length;d<b;d++)n.push(this.q[f[d]]);d=0;for(b=n.length;d<b;d++)n[d].Pc=!0,n[d].tc=n}if(0<this.Oh)for(c=0,h=this.q.length;c<h;c++)if(k=this.q[c],!k.G&&k.Ha.length){k.Oj=Array(this.Oh);k.Fg=Array(this.Oh);k.Kp=Array(this.Oh);e=[];d=z=p=g=0;for(b=k.Ha.length;d<b;d++)for(l=k.Ha[d],k.Oj[l.ie]=g,g+=l.ly,k.Fg[l.ie]=p,p+=l.ou,
k.Kp[l.ie]=z,z+=l.Nv,f=0,n=l.N.length;f<n;f++)e.push(ya({},l.N[f]));k.N=e.concat(k.N);d=0;for(b=k.N.length;d<b;d++)k.N[d].index=d}c=0;for(h=a[5].length;c<h;c++)k=a[5][c],d=new Hb(this,k),this.qn[d.name]=d,this.Ac.push(d);c=0;for(h=a[6].length;c<h;c++)k=a[6][c],d=new Mb(this,k),this.rm[d.name]=d,this.he.push(d);c=0;for(h=this.he.length;c<h;c++)this.he[c].ab();c=0;for(h=this.he.length;c<h;c++)this.he[c].Co();c=0;for(h=this.Al.length;c<h;c++)this.Al[c].ab();x(this.Al);this.mu=a[7];this.wm=a[8];this.rd=
a[9];this.Bh=1;this.$u=a[13];this.Ka=a[14];this.xp=a[15];this.jy=a[17];this.Mn=a[20];this.nu=0<this.Mn;this.dx=a[22];this.Mc=this.Ls=a[23];this.Tu=a[24];this.lx=a[25];this.Ca=a[27]&&!this.ne;this.nl=Date.now();x(this.zk);this.xw()};var c=!1,d=0,t=[];g.prototype.vx=function(a,c){function h(){d--;b.Wq()}var b=this;a.addEventListener("load",h);a.addEventListener("error",h);t.push([a,c]);this.Wq()};g.prototype.Wq=function(){for(var a;t.length&&100>d;)d++,a=t.shift(),this.Wr(a[0],a[1])};g.prototype.Ks=
function(a,h){a.cocoonLazyLoad=!0;a.onerror=function(h){c=a.qp=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",h)};this.Yc?a.src=h:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(h,function(c){a.src=c},function(d){c=a.qp=!0;console&&console.error&&console.error("Error extracting image '"+h+"' from expansion file: ",d)}):(a.crossOrigin="anonymous",this.vx(a,h)));this.wh.push(a)};g.prototype.Lv=function(a){var c,h;c=0;for(h=this.wh.length;c<h;c++)if(this.wh[c].xu===
a)return this.wh[c];return null};var k=0,K=!1;g.prototype.pw=function(){this.zg&&(k=this.zg.Qx(this.mu))};g.prototype.mp=function(){var a=k,c=0,h=0,d=!0,b,f,h=0;for(b=this.wh.length;h<b;h++){f=this.wh[h];var n=f.Bp;if(!n||0>=n)n=5E4;a+=n;f.src&&(f.complete||f.loaded)&&!f.qp?c+=n:d=!1}d&&this.lx&&this.zg&&(K||(this.zg.Yx(),K=!0),h=this.zg.Zv(),c+=h,h<k&&(d=!1));this.X=0==a?1:c/a;return d};var C=!1;g.prototype.go=function(){if(this.Ga||this.p){var a=this.Ga||this.Nn;this.Eb&&this.Hr();var h=window.innerWidth,
d=window.innerHeight;this.Tg===h&&this.Sg===d||this.setSize(h,d);this.X=0;this.Bq=-1;var b=this;if(this.mp()&&(4!==this.ff||C))this.qw();else{d=Date.now()-this.nl;if(a){var f=this.width,k=this.height,h=this.devicePixelRatio;if(3>this.ff&&(this.xc||500<=d&&this.Bq!=this.X)){a.clearRect(0,0,f,k);var d=f/2,k=k/2,f=0===this.ff&&this.ef.vk.complete,n=40*h,e=0,g=80*h,p;if(f){var z=this.ef.vk,g=z.width*h;p=z.height*h;n=g/2;e=p/2;a.drawImage(z,ta(d-n),ta(k-e),g,p)}1>=this.ff?(d=ta(d-n)+.5,k=ta(k+(e+(f?12*
h:0)))+.5,a.fillStyle=c?"red":"DodgerBlue",a.fillRect(d,k,Math.floor(g*this.X),6*h),a.strokeStyle="black",a.strokeRect(d,k,g,6*h),a.strokeStyle="white",a.strokeRect(d-1*h,k-1*h,g+2*h,8*h)):2===this.ff&&(a.font=this.Yc?"12pt ArialMT":"12pt Arial",a.fillStyle=c?"#f00":"#999",a.iA="middle",h=Math.round(100*this.X)+"%",f=a.measureText?a.measureText(h):null,a.fillText(h,d-(f?f.width:0)/2,k));this.Bq=this.X}else if(4===this.ff){this.Yu(a);l?l(function(){b.go()}):setTimeout(function(){b.go()},16);return}}setTimeout(function(){b.go()},
this.xc?10:100)}}};var F=-1,h="undefined"===typeof cr_is_preview?200:0,n=!0,z=!1,T=0,D=0,Q="undefined"===typeof cr_is_preview?3E3:0,u=null,v=null,N=0;g.prototype.Yu=function(a){if(!C){for(var d=Math.ceil(this.width),b=Math.ceil(this.height),f=this.ef.vk,k=this.ef.kx,l=this.ef.ny,g=0;4>g;++g)if(!f[g].complete||!k[g].complete||!l[g].complete)return;0===N&&(F=Date.now());var g=Date.now(),p=!1,t=a,m,r;n||z?(a.clearRect(0,0,d,b),u&&u.width===d&&u.height===b||(u=document.createElement("canvas"),u.width=
d,u.height=b,v=u.getContext("2d")),t=v,p=!0,n&&1===N&&(F=Date.now())):a.globalAlpha=1;t.fillStyle="#333333";t.fillRect(0,0,d,b);256<this.Hh?(m=Ia(.22*b,105,.6*d),r=.25*m,t.drawImage(e(k,m),.5*d-m/2,.2*b-r/2,m,r),r=m=Math.min(.395*b,.95*d),t.drawImage(e(f,m),.5*d-m/2,.485*b-r/2,m,r),m=Ia(.22*b,105,.6*d),r=.25*m,t.drawImage(e(l,m),.5*d-m/2,.868*b-r/2,m,r),t.fillStyle="#3C3C3C",m=d,r=Math.max(.005*b,2),t.fillRect(0,.8*b-r/2,m,r),t.fillStyle=c?"red":"#E0FF65",m=d*this.X,t.fillRect(.5*d-m/2,.8*b-r/2,m,
r)):(r=m=.55*b,t.drawImage(e(f,m),.5*d-m/2,.45*b-r/2,m,r),t.fillStyle="#3C3C3C",m=d,r=Math.max(.005*b,2),t.fillRect(0,.85*b-r/2,m,r),t.fillStyle=c?"red":"#E0FF65",m=d*this.X,t.fillRect(.5*d-m/2,.85*b-r/2,m,r));p&&(n?a.globalAlpha=0===N?0:Math.min((g-F)/300,1):z&&(a.globalAlpha=Math.max(1-(g-D)/300,0)),a.drawImage(u,0,0,d,b));n&&300<=g-F&&2<=N&&(n=!1,T=g);!n&&g-T>=Q&&!z&&1<=this.X&&(z=!0,D=g);if(z&&g-D>=300+h||"undefined"!==typeof cr_is_preview&&1<=this.X&&500>Date.now()-F)C=!0,z=n=!1,this.ef=v=u=
null;++N}};g.prototype.qw=function(){this.Eb&&(this.canvas.parentNode.removeChild(this.Eb),this.Eb=this.Nn=null);this.nl=Date.now();this.Uf=Ya();var a,c,h;if(this.Go)for(a=0,c=this.q.length;a<c;a++)h=this.q[a],h.G||h.an||!h.Na.bf||h.K();else this.Rf=!1;a=0;for(c=this.Ac.length;a<c;a++)this.Ac[a].yu();2<=this.ac&&(a=this.Ma/this.La,c=this.width/this.height,this.Bh=2!==this.ac&&c>a||2===this.ac&&c<a?this.height/this.La:this.width/this.Ma);this.Rp?this.qn[this.Rp].no():this.Ac[0].no();this.Go||(this.Vg=
1,this.trigger(P.prototype.i.Po,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(c=this.q.length;a<c;a++)h=this.q[a],h.or&&h.or();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Pa(!1);this.Ub&&AppMobi.webview.execute("onGameReady();")};g.prototype.Pa=function(a,c,h){if(this.aa){var d=Ya();if(h||!this.gi||a){a||(l?this.Vn=l(this.us):this.vo=setTimeout(this.us,
this.pe?1:16));c=c||d;var b=this.ac;((h=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.yc)||this.Jd)&&0<this.ke&&(b=this.ke);if(0<b){var b=window.innerWidth,f=window.innerHeight;this.Tg===b&&this.Sg===f||this.setSize(b,f)}this.Aa||(h?this.Rj||(this.Rj=!0):this.Rj?(this.Rj=!1,0===this.ac&&this.setSize(Math.round(this.nr/this.devicePixelRatio),Math.round(this.mr/this.devicePixelRatio),!0)):(this.nr=this.width,this.mr=this.height));this.Rf&&
(h=this.mp(),this.Vg=this.X,h&&(this.Rf=!1,this.X=1,this.trigger(P.prototype.i.Po,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Kw(c);!this.ta&&!this.xc||this.jn||this.Xi||a||(this.ta=!1,this.p?this.uc():this.Ed(),this.Ui&&(this.canvas&&this.canvas.toDataURL&&(this.gs=this.canvas.toDataURL(this.Ui[0],this.Ui[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.gs),this.trigger(P.prototype.i.nt,null)),this.Ui=null));this.Vz||(this.Vd++,this.Nh++,this.Uj++);this.xi+=Ya()-d}}};g.prototype.Kw=
function(a){var c,h,d,b,f,k,n,e;1E3<=a-this.Uf&&(this.Uf+=1E3,1E3<=a-this.Uf&&(this.Uf=a),this.ym=this.Uj,this.Uj=0,this.gm=this.xi,this.xi=0);c=0;0!==this.kk&&(c=a-this.kk,0>c&&(c=0),this.Ef=c/=1E3,.5<this.Ef?this.Ef=0:this.Ef>1/this.$q&&(this.Ef=1/this.$q));this.kk=a;this.Ue=this.Ef*this.sg;this.Bb.add(this.Ue);this.He.add(c);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Jd)&&!this.yc;2<=this.ac||a&&0<this.ke?(c=this.Ma/this.La,
h=this.width/this.height,d=this.ac,a&&0<this.ke&&(d=this.ke),this.Bh=2!==d&&h>c||2===d&&h<c?this.height/this.La:this.width/this.Ma,this.aa&&(this.aa.eo(this.aa.scrollX),this.aa.fo(this.aa.scrollY))):this.Bh=this.Pf?this.devicePixelRatio:1;this.Hb();this.oe++;this.Ud.Hx();this.oe--;this.Hb();this.oe++;h=this.lr.Fe();a=0;for(c=h.length;a<c;a++)h[a].dA();a=0;for(c=this.q.length;a<c;a++)if(k=this.q[a],!k.G&&(k.Ra.length||k.Ha.length))for(h=0,d=k.e.length;h<d;h++)for(n=k.e[h],b=0,f=n.I.length;b<f;b++)n.I[b].Pa();
a=0;for(c=this.q.length;a<c;a++)if(k=this.q[a],!k.G&&(k.Ra.length||k.Ha.length))for(h=0,d=k.e.length;h<d;h++)for(n=k.e[h],b=0,f=n.I.length;b<f;b++)e=n.I[b],e.jx&&e.jx();h=this.Cn.Fe();a=0;for(c=h.length;a<c;a++)h[a].Pa();this.oe--;this.rw();for(a=0;this.$d&&10>a++;)this.Hp(this.$d);a=0;for(c=this.he.length;a<c;a++)this.he[a].Om=!1;this.aa.Gf&&this.aa.Gf.ib();x(this.hg);this.oe++;a=0;for(c=this.q.length;a<c;a++)if(k=this.q[a],!k.G&&(k.Ra.length||k.Ha.length))for(h=0,d=k.e.length;h<d;h++)for(n=k.e[h],
b=0,f=n.I.length;b<f;b++)e=n.I[b],e.qg&&e.qg();h=this.Dn.Fe();a=0;for(c=h.length;a<c;a++)h[a].qg();this.oe--};g.prototype.eg=function(){var a,c,h,d,b,f,k,n,e;a=0;for(c=this.q.length;a<c;a++)if(k=this.q[a],!k.G)for(h=0,d=k.e.length;h<d;h++)if(n=k.e[h],n.eg&&n.eg(),n.I)for(b=0,f=n.I.length;b<f;b++)e=n.I[b],e.eg&&e.eg()};g.prototype.Hp=function(a){var c=this.aa;this.aa.Zx();var h,d,b;if(this.p)for(h=0,d=this.q.length;h<d;h++)b=this.q[h],b.G||!b.Bo||b.global&&0!==b.e.length||-1!==a.ai.indexOf(b)||b.Bo();
c==a&&x(this.Ud.Ic);x(this.hg);this.Or(!0);a.no();this.Or(!1);this.ta=!0;this.Hb()};g.prototype.Or=function(a){var c,h,d,b,f,k,n,e,l;c=0;for(h=this.Ra.length;c<h;c++)d=this.Ra[c],a?d.eh&&d.eh():d.Ei&&d.Ei();c=0;for(h=this.q.length;c<h;c++)if(d=this.q[c],d.global||d.Na.ml)for(b=0,f=d.e.length;b<f;b++)if(k=d.e[b],a?k.eh&&k.eh():k.Ei&&k.Ei(),k.I)for(n=0,e=k.I.length;n<e;n++)l=k.I[n],a?l.eh&&l.eh():l.Ei&&l.Ei()};g.prototype.wl=function(a){this.Cn.add(a)};g.prototype.cy=function(a){this.Dn.add(a)};g.prototype.Sh=
function(a){return a&&-1!==a.Ci?this.Ef*a.Ci:this.Ue};g.prototype.Ed=function(){this.aa.Ed(this.Ga);this.Ub&&this.Ga.present()};g.prototype.uc=function(){this.Ca&&(this.Ff=1,this.aa.Df(this.p));this.aa.uc(this.p);this.p.nx()};g.prototype.Tl=function(a){a&&this.Jj.push(a)};g.prototype.Ax=function(a){Ha(this.Jj,a)};g.prototype.Uh=function(a){a=a.toString();return this.we.hasOwnProperty(a)?this.we[a]:null};var R=[];g.prototype.sf=function(a){var c,h;c=a.type.name;var d=null;if(this.Cf.hasOwnProperty(c)){if(d=
this.Cf[c],d.contains(a))return}else d=R.length?R.pop():new fa,this.Cf[c]=d;d.add(a);this.Ze=!0;if(a.Pc)for(c=0,h=a.siblings.length;c<h;c++)this.sf(a.siblings[c]);this.$m&&d.uh.push(a);this.Zm||(this.oe++,this.trigger(Object.getPrototypeOf(a.type.Na).i.pt,a),this.oe--)};g.prototype.Hb=function(){if(this.Ze){var a,c,h,d,b,f;this.$m=!0;h=0;for(b=this.nd.length;h<b;++h)for(a=this.nd[h],c=a.type,c.e.push(a),d=0,f=c.Ha.length;d<f;++d)c.Ha[d].e.push(a),c.Ha[d].ph=!0;x(this.nd);this.et();Xa(this.Cf);this.Ze=
this.$m=!1}};g.prototype.et=function(){for(var a in this.Cf)this.Cf.hasOwnProperty(a)&&this.Rs(this.Cf[a])};g.prototype.Rs=function(a){var c=a.Fe(),h=c[0].type,d,b,f,k,n,e;Za(h.e,a);h.ph=!0;0===h.e.length&&(h.mj=!1);d=0;for(b=h.Ha.length;d<b;++d)e=h.Ha[d],Za(e.e,a),e.ph=!0;d=0;for(b=this.Ud.Ic.length;d<b;++d)if(n=this.Ud.Ic[d],n.Hc.hasOwnProperty(h.index)&&Za(n.Hc[h.index].Mf,a),!h.G)for(f=0,k=h.Ha.length;f<k;++f)e=h.Ha[f],n.Hc.hasOwnProperty(e.index)&&Za(n.Hc[e.index].Mf,a);if(n=c[0].j){if(n.Tc)for(f=
n.e,d=0,b=f.length;d<b;++d)k=f[d],a.contains(k)&&(k.R(),n.Fb.update(k,k.mc,null),k.mc.set(0,0,-1,-1));Za(n.e,a);n.Qi(0)}for(d=0;d<c.length;++d)this.Qs(c[d],h);a.clear();R.push(a);this.ta=!0};g.prototype.Qs=function(a,c){var h,d,b;h=0;for(d=this.Jj.length;h<d;++h)this.Jj[h](a);a.Re&&c.xj.update(a,a.Re,null);(h=a.j)&&h.kh(a,!0);if(a.I)for(h=0,d=a.I.length;h<d;++h)b=a.I[h],b.dg&&b.dg(),b.behavior.yk.remove(a);this.lr.remove(a);this.Cn.remove(a);this.Dn.remove(a);a.dg&&a.dg();this.we.hasOwnProperty(a.uid.toString())&&
delete this.we[a.uid.toString()];this.Ak--;100>c.Ej.length&&c.Ej.push(a)};var W=[];g.prototype.Bf=function(a,c,h,d,b,f){var k,n,e,l;if(!a)return null;var g=this.q[a[1]],p=g.Na.bf;if(this.Rf&&p&&!g.an||p&&!this.p&&11===a[0][11])return null;var z=c;p||(c=null);var m;g.Ej.length?(m=g.Ej.pop(),m.Fc=!0,g.Na.ba.call(m,g)):(m=new g.Na.ba(g),m.Fc=!1);!h||f||this.we.hasOwnProperty(a[2].toString())?m.uid=this.Di++:m.uid=a[2];this.we[m.uid.toString()]=m;m.Kr=this.hr++;m.Lf=g.e.length;k=0;for(n=this.nd.length;k<
n;++k)this.nd[k].type===g&&m.Lf++;m.Wh=Fb;m.toString=Gb;e=a[3];if(m.Fc)Xa(m.ca);else{m.ca={};if("undefined"!==typeof cr_is_preview)for(m.lq=[],m.lq.length=e.length,k=0,n=e.length;k<n;k++)m.lq[k]=e[k][1];m.mb=[];m.mb.length=e.length}k=0;for(n=e.length;k<n;k++)m.mb[k]=e[k][0];if(p){var t=a[0];m.x=ja(d)?t[0]:d;m.y=ja(b)?t[1]:b;m.z=t[2];m.width=t[3];m.height=t[4];m.depth=t[5];m.g=t[6];m.opacity=t[7];m.hc=t[8];m.ic=t[9];m.Jb=t[10];k=t[11];!this.p&&g.N.length&&(m.Jb=k);m.Dh=ib(m.Jb);this.A&&jb(m,m.Jb,this.A);
if(m.Fc){k=0;for(n=t[12].length;k<n;k++)for(e=0,l=t[12][k].length;e<l;e++)m.Ua[k][e]=t[12][k][e];m.P.set(0,0,0,0);m.Re.set(0,0,-1,-1);m.mc.set(0,0,-1,-1);m.Mb.lg(m.P);x(m.Xl)}else{m.Ua=t[12].slice(0);k=0;for(n=m.Ua.length;k<n;k++)m.Ua[k]=t[12][k].slice(0);m.ma=[];m.Ke=[];m.Ke.length=g.N.length;m.P=new wa(0,0,0,0);m.Re=new wa(0,0,-1,-1);m.mc=new wa(0,0,-1,-1);m.Mb=new xa;m.Xl=[];m.H=Nb;m.Pz=Ob;m.Pb=Pb;m.R=Qb;m.iy=Rb;m.Gs=Sb;m.Hd=Tb}m.rg=!1;m.fy=0;m.ey=0;m.dy=null;14===t.length&&(m.rg=!0,m.fy=t[13][0],
m.ey=t[13][1],m.dy=t[13][2]);k=0;for(n=g.N.length;k<n;k++)m.Ke[k]=!0;m.Ae=!0;m.yd=Ub;m.yd();m.Hs=!!m.ma.length;m.Wl=!0;m.$l=!0;g.lj=!0;m.visible=!0;m.Ci=-1;m.j=c;m.zd=c.e.length;m.Ff=0;"undefined"===typeof m.Z&&(m.Z=null);this.ta=m.Bd=!0}var r;x(W);k=0;for(n=g.Ha.length;k<n;k++)W.push.apply(W,g.Ha[k].Ra);W.push.apply(W,g.Ra);if(m.Fc)for(k=0,n=W.length;k<n;k++){var D=W[k];r=m.I[k];r.Fc=!0;D.behavior.ba.call(r,D,m);t=a[4][k];e=0;for(l=t.length;e<l;e++)r.n[e]=t[e];r.K();D.behavior.yk.add(m)}else for(m.I=
[],k=0,n=W.length;k<n;k++)D=W[k],r=new D.behavior.ba(D,m),r.Fc=!1,r.n=a[4][k].slice(0),r.K(),m.I.push(r),D.behavior.yk.add(m);t=a[5];if(m.Fc)for(k=0,n=t.length;k<n;k++)m.n[k]=t[k];else m.n=t.slice(0);this.nd.push(m);this.Ze=!0;c&&(c.Ah(m,!0),1!==c.kc||1!==c.lc)&&(g.mj=!0);this.Ak++;if(g.Pc){if(m.Pc=!0,m.Fc?x(m.siblings):m.siblings=[],!h&&!f){k=0;for(n=g.tc.length;k<n;k++)if(g.tc[k]!==g){if(!g.tc[k].Dd)return null;m.siblings.push(this.Bf(g.tc[k].Dd,z,!1,p?m.x:d,p?m.y:b,!0))}k=0;for(n=m.siblings.length;k<
n;k++)for(m.siblings[k].siblings.push(m),e=0;e<n;e++)k!==e&&m.siblings[k].siblings.push(m.siblings[e])}}else m.Pc=!1,m.siblings=null;m.K();k=0;for(n=m.I.length;k<n;k++)m.I[k].ix&&m.I[k].ix();return m};g.prototype.Th=function(a){var c,h;c=0;for(h=this.aa.O.length;c<h;c++){var d=this.aa.O[c];if(lb(d.name,a))return d}return null};g.prototype.le=function(a){a=ta(a);0>a&&(a=0);a>=this.aa.O.length&&(a=this.aa.O.length-1);return this.aa.O[a]};g.prototype.em=function(a){var c,h;c=0;for(h=a.length;c<h;c++)a[c].qa().Ba=
!0};g.prototype.Ki=function(a){var c,h;c=0;for(h=a.length;c<h;c++)a[c].Ki()};g.prototype.Sk=function(a){var c,h;c=0;for(h=a.length;c<h;c++)a[c].Sk()};g.prototype.fg=function(a){var c,h;c=0;for(h=a.length;c<h;c++)a[c].fg()};g.prototype.Es=function(a){if(a.lj){var c,h,d=a.e;c=0;for(h=d.length;c<h;++c)d[c].Gs();d=this.nd;c=0;for(h=d.length;c<h;++c)d[c].type===a&&d[c].Gs();a.lj=!1}};g.prototype.Cm=function(a,c,h,d){var b,f,k=a?1!==a.kc||1!==a.lc:!1;if(c.G)for(a=0,b=c.Zg.length;a<b;++a)f=c.Zg[a],k||f.mj?
Da(d,f.e):(this.Es(f),f.xj.Uk(h,d));else k||c.mj?Da(d,c.e):(this.Es(c),c.xj.Uk(h,d))};g.prototype.bq=function(a,c,h,d){var b,f;b=0;for(f=c.length;b<f;++b)this.Cm(a,c[b],h,d)};g.prototype.aq=function(a,c,h){var d=this.js;d&&this.bq(a,d.An,c,h)};g.prototype.Zi=function(a,c,h){var d=a.qa(),b,f,k,n,e=this.Sb().Lc.$c,l,g,m;if(d.Ba)for(d.Ba=!1,x(d.e),b=0,n=a.e.length;b<n;b++)k=a.e[b],k.R(),l=k.j.Za(c,h,!0),g=k.j.Za(c,h,!1),k.Pb(l,g)?d.e.push(k):e&&d.V.push(k);else{f=0;m=e?d.V:d.e;b=0;for(n=m.length;b<n;b++)k=
m[b],k.R(),l=k.j.Za(c,h,!0),g=k.j.Za(c,h,!1),k.Pb(l,g)&&(e?d.e.push(k):(d.e[f]=d.e[b],f++));m.length=f}a.Vc();return d.Nm()};g.prototype.ng=function(a,c){if(!(a&&c&&a!==c&&a.Bd&&c.Bd))return!1;a.R();c.R();var h=a.j,d=c.j,b,f,k,n,e,l,g,m;if(h===d||h.kc===d.kc&&d.lc===d.lc&&h.scale===d.scale&&h.g===d.g&&h.$b===d.$b){if(!a.P.mq(c.P)||!a.Mb.Wm(c.Mb)||a.rg&&c.rg)return!1;if(a.rg)return this.os(a,c);if(c.rg)return this.os(c,a);g=a.Z&&!a.Z.Qf();b=c.Z&&!c.Z.Qf();if(!g&&!b)return!0;g?(a.Z.zf(a.width,a.height,
a.g),g=a.Z):(this.rc.kg(a.Mb,a.x,a.y,a.width,a.height),g=this.rc);b?(c.Z.zf(c.width,c.height,c.g),m=c.Z):(this.rc.kg(c.Mb,c.x,c.y,c.width,c.height),m=this.rc);return g.Nf(m,c.x-a.x,c.y-a.y)}g=a.Z&&!a.Z.Qf();b=c.Z&&!c.Z.Qf();g?(a.Z.zf(a.width,a.height,a.g),this.rc.Yr(a.Z)):this.rc.kg(a.Mb,a.x,a.y,a.width,a.height);g=this.rc;b?(c.Z.zf(c.width,c.height,c.g),this.po.Yr(c.Z)):this.po.kg(c.Mb,c.x,c.y,c.width,c.height);m=this.po;b=0;for(f=g.td;b<f;b++)k=2*b,n=k+1,e=g.pb[k],l=g.pb[n],g.pb[k]=h.Ja(e+a.x,l+
a.y,!0),g.pb[n]=h.Ja(e+a.x,l+a.y,!1);g.R();b=0;for(f=m.td;b<f;b++)k=2*b,n=k+1,e=m.pb[k],l=m.pb[n],m.pb[k]=d.Ja(e+c.x,l+c.y,!0),m.pb[n]=d.Ja(e+c.x,l+c.y,!1);m.R();return g.Nf(m,0,0)};var S=new xa;new wa(0,0,0,0);var I=[];g.prototype.os=function(a,c){var h,d,b,f,k=c.P,n=a.x,e=a.y;a.Sv(k,I);var l=c.Z&&!c.Z.Qf();h=0;for(d=I.length;h<d;++h)if(b=I[h],f=b.wx,k.nq(f,n,e)&&(S.lg(f),S.offset(n,e),S.Wm(c.Mb)))if(l)if(c.Z.zf(c.width,c.height,c.g),b.Hi){if(b.Hi.Nf(c.Z,c.x-(n+f.left),c.y-(e+f.top)))return x(I),
!0}else{if(this.rc.kg(S,0,0,f.right-f.left,f.bottom-f.top),this.rc.Nf(c.Z,c.x,c.y))return x(I),!0}else if(b.Hi){if(this.rc.kg(c.Mb,0,0,c.width,c.height),b.Hi.Nf(this.rc,-(n+f.left),-(e+f.top)))return x(I),!0}else return x(I),!0;x(I);return!1};g.prototype.qo=function(a,c){if(!c||!c.Bd)return!1;c.R();if(!c.P.mq(a))return!1;if(c.rg){c.Sv(a,I);var h,d,b,f,k=c.x,n=c.y;h=0;for(d=I.length;h<d;++h)if(b=I[h],f=b.wx,a.nq(f,k,n))if(b.Hi){if(this.rc.lg(a,0,0),b.Hi.Nf(this.rc,-(k+f.left),-(n+f.top)))return x(I),
!0}else return x(I),!0;x(I);return!1}S.lg(a);if(!c.Mb.Wm(S))return!1;if(!c.Z||c.Z.Qf())return!0;c.Z.zf(c.width,c.height,c.g);S.offset(-a.left,-a.top);this.rc.kg(S,0,0,1,1);return c.Z.Nf(this.rc,a.left-c.x,a.top-c.y)};g.prototype.As=function(a,c){if(!c)return!1;var h,d,b,f,k;h=0;for(d=a.Ra.length;h<d;h++)if(a.Ra[h].behavior instanceof c)return!0;if(!a.G)for(h=0,d=a.Ha.length;h<d;h++)for(k=a.Ha[h],b=0,f=k.Ra.length;b<f;b++)if(k.Ra[b].behavior instanceof c)return!0;return!1};g.prototype.zo=function(a){return this.As(a,
jc.Xy)};g.prototype.Ao=function(a){return this.As(a,jc.Yy)};var L=[];g.prototype.De=function(a){var c,h,d;a.R();this.aq(a.j,a.P,L);c=0;for(h=L.length;c<h;++c)if(d=L[c],d.ca.solidEnabled&&this.ng(a,d))return x(L),d;x(L);return null};g.prototype.by=function(a){var c,h,d;this.aq(null,a,L);c=0;for(h=L.length;c<h;++c)if(d=L[c],d.ca.solidEnabled&&this.qo(a,d))return x(L),d;x(L);return null};g.prototype.ux=function(a,c,h,d){d=d||50;var b=a.x,f=a.y,k,n=null,e=null;for(k=0;k<d;k++)if(a.x=b+c*k,a.y=f+h*k,a.H(),
!this.ng(a,n)&&((n=this.De(a))&&(e=n),!n&&!n))return e&&this.qx(a,c,h,e),!0;a.x=b;a.y=f;a.H();return!1};g.prototype.qx=function(a,c,h,d){var b=2,f,k=!1;f=!1;for(var n=a.x,e=a.y;16>=b;)f=1/b,b*=2,a.x+=c*f*(k?1:-1),a.y+=h*f*(k?1:-1),a.H(),this.ng(a,d)?f=k=!0:(f=k=!1,n=a.x,e=a.y);f&&(a.x=n,a.y=e,a.H())};g.prototype.Tn=function(a,c){var h=ja(c)?100:c,d=0,b=a.x,f=a.y,k=0,n=0,e=0,l=this.De(a);if(!l)return!0;for(;d<=h;){switch(k){case 0:n=0;e=-1;d++;break;case 1:n=1;e=-1;break;case 2:n=1;e=0;break;case 3:e=
n=1;break;case 4:n=0;e=1;break;case 5:n=-1;e=1;break;case 6:n=-1;e=0;break;case 7:e=n=-1}k=(k+1)%8;a.x=ta(b+n*d);a.y=ta(f+e*d);a.H();if(!this.ng(a,l)&&(l=this.De(a),!l))return!0}a.x=b;a.y=f;a.H();return!1};g.prototype.Nr=function(a,c){a.Bd&&c.Bd&&this.hg.push([a,c])};g.prototype.hu=function(a,c,h){var d,b,f;d=0;for(b=this.hg.length;d<b;++d){f=this.hg[d];if(f[0]===a)f=f[1];else if(f[1]===a)f=f[0];else continue;if(c.G){if(-1===c.Zg.indexOf(c))continue}else if(f.type!==c)continue;-1===h.indexOf(f)&&
h.push(f)}};g.prototype.uu=function(a,c){var h,d,b;h=0;for(d=this.hg.length;h<d;h++)if(b=this.hg[h],b[0]===a&&b[1]===c||b[0]===c&&b[1]===a)return!0;return!1};g.prototype.ru=function(a,c,h){var d=a.x,b=a.y,f=qa(10,Sa(c,h,d,b)),k=Na(c,h,d,b),n=this.De(a);if(!n)return O(k+sa);var e=n,l,g,m,p,z=E(5);for(l=1;36>l;l++)if(g=k-l*z,a.x=c+Math.cos(g)*f,a.y=h+Math.sin(g)*f,a.H(),!this.ng(a,e)&&(e=this.De(a),!e)){m=g;break}36===l&&(m=O(k+sa));e=n;for(l=1;36>l;l++)if(g=k+l*z,a.x=c+Math.cos(g)*f,a.y=h+Math.sin(g)*
f,a.H(),!this.ng(a,e)&&(e=this.De(a),!e)){p=g;break}36===l&&(p=O(k+sa));a.x=d;a.y=b;a.H();if(p===m)return p;a=Oa(p,m)/2;a=Qa(p,m)?O(m+a+sa):O(p+a);m=Math.cos(k);k=Math.sin(k);p=Math.cos(a);a=Math.sin(a);c=m*p+k*a;return Na(0,0,m-2*c*p,k-2*c*a)};var M=-1;g.prototype.trigger=function(a,c,h){if(!this.aa)return!1;var d=this.aa.Gf;if(!d)return!1;var b=!1,f,k,n;M++;var e=d.lm;k=0;for(n=e.length;k<n;++k)f=this.xs(a,c,e[k],h),b=b||f;f=this.xs(a,c,d,h);M--;return b||f};g.prototype.xs=function(a,c,h,d){var b=
!1,f,k,n,e;if(c)for(n=this.xo(a,c,c.type.name,h,d),b=b||n,e=c.type.Ha,f=0,k=e.length;f<k;++f)n=this.xo(a,c,e[f].name,h,d),b=b||n;else n=this.xo(a,c,"system",h,d),b=b||n;return b};g.prototype.xo=function(a,c,h,d,b){var f,k=!1,n=!1,n="undefined"!==typeof b,e=(n?d.Mp:d.ys)[h];if(!e)return k;var l=null;d=0;for(f=e.length;d<f;++d)if(e[d].method==a){l=e[d].Mh;break}if(!l)return k;var g;n?g=l[b]:g=l;if(!g)return null;d=0;for(f=g.length;d<f;d++)a=g[d][0],b=g[d][1],n=this.Iv(c,h,a,b),k=k||n;return k};g.prototype.Iv=
function(a,c,h,d){var b,f,k=!1;this.yo++;var n=this.Sb().Lc;n&&this.Ki(n.qf);var e=1<this.yo;this.Ki(h.qf);e&&this.tx();var l=this.Tk(h);l.Lc=h;a&&(b=this.types[c].qa(),b.Ba=!1,x(b.e),b.e[0]=a,this.types[c].Vc());a=!0;if(h.parent){c=l.ns;for(b=h.parent;b;)c.push(b),b=b.parent;c.reverse();b=0;for(f=c.length;b<f;b++)if(!c[b].Jx()){a=!1;break}}a&&(this.Nh++,h.$c?h.Ix(d):h.ib(),k=k||l.Tf);this.Ok();e&&this.hx();this.fg(h.qf);n&&this.fg(n.qf);this.Ze&&0===this.oe&&0===M&&!this.bn&&this.Hb();this.yo--;
return k};g.prototype.Wp=function(){var a=this.Sb();return a.Lc.tb[a.sb]};g.prototype.tx=function(){this.uk++;this.uk>=this.wn.length&&this.wn.push([])};g.prototype.hx=function(){this.uk--};g.prototype.Xp=function(){return this.wn[this.uk]};g.prototype.Tk=function(a){this.Mj++;this.Mj>=this.qm.length&&this.qm.push(new Vb);var c=this.Sb();c.reset(a);return c};g.prototype.Ok=function(){this.Mj--};g.prototype.Sb=function(){return this.qm[this.Mj]};g.prototype.Yp=function(a,c){for(var h,d,b,f,k,n;c;){h=
0;for(d=c.dd.length;h<d;h++)if(n=c.dd[h],n instanceof Wb&&lb(a,n.name))return n;c=c.parent}h=0;for(d=this.he.length;h<d;h++)for(k=this.he[h],b=0,f=k.We.length;b<f;b++)if(n=k.We[b],n instanceof Wb&&lb(a,n.name))return n;return null};g.prototype.Zp=function(a){var c,h;c=0;for(h=this.Ac.length;c<h;c++)if(this.Ac[c].U===a)return this.Ac[c];return null};g.prototype.Hg=function(a){var c,h;c=0;for(h=this.q.length;c<h;c++)if(this.q[c].U===a)return this.q[c];return null};g.prototype.Uv=function(a){var c,h;
c=0;for(h=this.Me.length;c<h;c++)if(this.Me[c].U===a)return this.Me[c];return null};g.prototype.Cu=function(a,c){this.Ui=[a,c];this.ta=!0};g.prototype.rw=function(){var a=this,c=this.co,h=this.te,d=this.pk,k=!1;this.es&&(k=!0,c="__c2_continuouspreview",this.es=!1);if(c.length){this.Hb();h=this.Nx();if(b()&&!this.xc)m(c,h,function(){ha("Saved state to IndexedDB storage ("+h.length+" bytes)");a.te=h;a.trigger(P.prototype.i.Ol,null);a.te="";k&&f()},function(d){try{localStorage.setItem("__c2save_"+c,
h),ha("Saved state to WebStorage ("+h.length+" bytes)"),a.te=h,a.trigger(P.prototype.i.Ol,null),a.te="",k&&f()}catch(b){ha("Failed to save game state: "+d+"; "+b),a.trigger(P.prototype.i.Vo,null)}});else try{localStorage.setItem("__c2save_"+c,h),ha("Saved state to WebStorage ("+h.length+" bytes)"),a.te=h,this.trigger(P.prototype.i.Ol,null),a.te="",k&&f()}catch(n){ha("Error saving to WebStorage: "+n),a.trigger(P.prototype.i.Vo,null)}this.pk=this.co="";this.ob=null}if(d.length){if(b()&&!this.xc)q(d,
function(c){c?(a.ob=c,ha("Loaded state from IndexedDB storage ("+a.ob.length+" bytes)")):(a.ob=localStorage.getItem("__c2save_"+d)||"",ha("Loaded state from WebStorage ("+a.ob.length+" bytes)"));a.Xi=!1;a.ob||(a.ob=null,a.trigger(P.prototype.i.hj,null))},function(){a.ob=localStorage.getItem("__c2save_"+d)||"";ha("Loaded state from WebStorage ("+a.ob.length+" bytes)");a.Xi=!1;a.ob||(a.ob=null,a.trigger(P.prototype.i.hj,null))});else{try{this.ob=localStorage.getItem("__c2save_"+d)||"",ha("Loaded state from WebStorage ("+
this.ob.length+" bytes)")}catch(e){this.ob=null}this.Xi=!1;a.ob||(a.ob=null,a.trigger(P.prototype.i.hj,null))}this.co=this.pk=""}null!==this.ob&&(this.Hb(),this.Jw(this.ob)?(this.te=this.ob,this.trigger(P.prototype.i.At,null),this.te=""):a.trigger(P.prototype.i.hj,null),this.ob=null)};g.prototype.Nx=function(){var c,h,d,b,f,k,n,e={c2save:!0,version:1,rt:{time:this.Bb.fa,walltime:this.He.fa,timescale:this.sg,tickcount:this.Vd,execcount:this.Nh,next_uid:this.Di,running_layout:this.aa.U,start_time_offset:Date.now()-
this.nl},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};c=0;for(h=this.q.length;c<h;c++)if(f=this.q[c],!f.G&&!this.zo(f)){k={instances:[]};Va(f.ca)&&(k.ex=a(f.ca));d=0;for(b=f.e.length;d<b;d++)k.instances.push(this.bo(f.e[d]));e.types[f.U.toString()]=k}c=0;for(h=this.Ac.length;c<h;c++)d=this.Ac[c],e.layouts[d.U.toString()]=d.Gb();b=e.events.groups;c=0;for(h=this.Me.length;c<h;c++)d=this.Me[c],b[d.U.toString()]=this.Yj[d.Yh].Xh;h=e.events.cnds;for(n in this.Qe)this.Qe.hasOwnProperty(n)&&
(c=this.Qe[n],Va(c.ca)&&(h[n]={ex:a(c.ca)}));h=e.events.acts;for(n in this.Le)this.Le.hasOwnProperty(n)&&(c=this.Le[n],Va(c.ca)&&(h[n]={ex:a(c.ca)}));h=e.events.vars;for(n in this.vh)this.vh.hasOwnProperty(n)&&(c=this.vh[n],c.hk||c.parent&&!c.ji||(h[n]=c.data));e.system=this.Ud.Gb();return JSON.stringify(e)};g.prototype.Mr=function(){var a,c,h,d,b,f;this.we={};a=0;for(c=this.q.length;a<c;a++)if(h=this.q[a],!h.G)for(d=0,b=h.e.length;d<b;d++)f=h.e[d],this.we[f.uid.toString()]=f};g.prototype.Jw=function(a){var c;
try{c=JSON.parse(a)}catch(h){return!1}if(!c.c2save||1<c.version)return!1;this.di=!0;a=c.rt;this.Bb.reset();this.Bb.fa=a.time;this.He.reset();this.He.fa=a.walltime||0;this.sg=a.timescale;this.Vd=a.tickcount;this.Nh=a.execcount;this.nl=Date.now()-a.start_time_offset;var d=a.running_layout;if(d!==this.aa.U)if(d=this.Zp(d))this.Hp(d);else return;var b,f,k,n,e,l,g;l=c.types;for(f in l)if(l.hasOwnProperty(f)&&(n=this.Hg(parseInt(f,10)))&&!n.G&&!this.zo(n)){l[f].ex?n.ca=l[f].ex:Xa(n.ca);e=n.e;k=l[f].instances;
d=0;for(b=ra(e.length,k.length);d<b;d++)this.qk(e[d],k[d]);d=k.length;for(b=e.length;d<b;d++)this.sf(e[d]);d=e.length;for(b=k.length;d<b;d++){e=null;if(n.Na.bf&&(e=this.aa.Xj(k[d].w.l),!e))continue;e=this.Bf(n.Dd,e,!1,0,0,!0);this.qk(e,k[d])}n.ph=!0}this.Hb();this.Mr();b=c.layouts;for(f in b)b.hasOwnProperty(f)&&(d=this.Zp(parseInt(f,10)))&&d.cc(b[f]);b=c.events.groups;for(f in b)b.hasOwnProperty(f)&&(d=this.Uv(parseInt(f,10)))&&this.Yj[d.Yh]&&this.Yj[d.Yh].Vr(b[f]);d=c.events.cnds;for(f in this.Qe)this.Qe.hasOwnProperty(f)&&
(d.hasOwnProperty(f)?this.Qe[f].ca=d[f].ex:this.Qe[f].ca={});d=c.events.acts;for(f in this.Le)this.Le.hasOwnProperty(f)&&(d.hasOwnProperty(f)?this.Le[f].ca=d[f].ex:this.Le[f].ca={});d=c.events.vars;for(f in d)d.hasOwnProperty(f)&&this.vh.hasOwnProperty(f)&&(this.vh[f].data=d[f]);this.Di=a.next_uid;this.di=!1;d=0;for(b=this.Qj.length;d<b;++d)e=this.Qj[d],this.trigger(Object.getPrototypeOf(e.type.Na).i.No,e);x(this.Qj);this.Ud.cc(c.system);d=0;for(b=this.q.length;d<b;d++)if(n=this.q[d],!n.G&&!this.zo(n))for(c=
0,f=n.e.length;c<f;c++){e=n.e[c];if(n.Pc)for(l=e.Wh(),x(e.siblings),a=0,k=n.tc.length;a<k;a++)g=n.tc[a],n!==g&&e.siblings.push(g.e[l]);e.hd&&e.hd();if(e.I)for(a=0,k=e.I.length;a<k;a++)l=e.I[a],l.hd&&l.hd()}return this.ta=!0};g.prototype.bo=function(c,h){var d,b,f,k,n;k=c.type;f=k.Na;var e={};h?e.c2=!0:e.uid=c.uid;Va(c.ca)&&(e.ex=a(c.ca));if(c.mb&&c.mb.length)for(e.ivs={},d=0,b=c.mb.length;d<b;d++)e.ivs[c.type.Vm[d].toString()]=c.mb[d];if(f.bf){f={x:c.x,y:c.y,w:c.width,h:c.height,l:c.j.U,zi:c.Hd()};
0!==c.g&&(f.a=c.g);1!==c.opacity&&(f.o=c.opacity);.5!==c.hc&&(f.hX=c.hc);.5!==c.ic&&(f.hY=c.ic);0!==c.Jb&&(f.bm=c.Jb);c.visible||(f.v=c.visible);c.Bd||(f.ce=c.Bd);-1!==c.Ci&&(f.mts=c.Ci);if(k.N.length)for(f.fx=[],d=0,b=k.N.length;d<b;d++)n=k.N[d],f.fx.push({name:n.name,active:c.Ke[n.index],params:c.Ua[n.index]});e.w=f}if(c.I&&c.I.length)for(e.behs={},d=0,b=c.I.length;d<b;d++)k=c.I[d],k.Gb&&(e.behs[k.type.U.toString()]=k.Gb());c.Gb&&(e.data=c.Gb());return e};g.prototype.Wv=function(a,c){var h,d;h=
0;for(d=a.Vm.length;h<d;h++)if(a.Vm[h]===c)return h;return-1};g.prototype.Rv=function(a,c){var h,d;h=0;for(d=a.I.length;h<d;h++)if(a.I[h].type.U===c)return h;return-1};g.prototype.qk=function(a,c,h){var d,b,f,k,n;n=a.type;var e=n.Na;if(h){if(!c.c2)return}else a.uid=c.uid;c.ex?a.ca=c.ex:Xa(a.ca);if(b=c.ivs)for(d in b)b.hasOwnProperty(d)&&(f=this.Wv(n,parseInt(d,10)),0>f||f>=a.mb.length||(k=b[d],null===k&&(k=NaN),a.mb[f]=k));if(e.bf){f=c.w;a.j.U!==f.l&&(b=a.j,a.j=this.aa.Xj(f.l),a.j?(b.kh(a,!0),a.j.Ah(a,
!0),a.H(),a.j.Qi(0)):(a.j=b,h||this.sf(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.zd=f.zi;a.g=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.hc=f.hasOwnProperty("hX")?f.hX:.5;a.ic=f.hasOwnProperty("hY")?f.hY:.5;a.visible=f.hasOwnProperty("v")?f.v:!0;a.Bd=f.hasOwnProperty("ce")?f.ce:!0;a.Ci=f.hasOwnProperty("mts")?f.mts:-1;a.Jb=f.hasOwnProperty("bm")?f.bm:0;a.Dh=ib(a.Jb);this.A&&jb(a,a.Jb,this.A);a.H();if(f.hasOwnProperty("fx"))for(h=0,b=f.fx.length;h<b;h++)k=n.Em(f.fx[h].name),
0>k||(a.Ke[k]=f.fx[h].active,a.Ua[k]=f.fx[h].params);a.yd()}if(n=c.behs)for(d in n)n.hasOwnProperty(d)&&(h=this.Rv(a,parseInt(d,10)),0>h||a.I[h].cc(n[d]));c.data&&a.cc(c.data)};g.prototype.Np=function(a,c,h){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(c,h)},h)};g.prototype.Jv=function(a,c){this.Np("data.js",function(h){var d=new FileReader;d.onload=function(c){a(c.target.result)};d.onerror=c;d.readAsText(h)},c)};var J=[],ca=0;g.prototype.yn=function(){if(J.length&&
!(8<=ca)){ca++;var a=J.shift();this.Fu(a.filename,a.ay,a.dv)}};g.prototype.Op=function(a,c,h){var d=this;J.push({filename:a,ay:function(a){ca--;d.yn();c(a)},dv:function(a){ca--;d.yn();h(a)}});this.yn()};g.prototype.Fu=function(a,c,h){this.Np(a,function(a){var h=new FileReader;h.onload=function(a){c(a.target.result)};h.readAsArrayBuffer(a)},h)};g.prototype.Kv=function(a,c,h){var d="",b=a.toLowerCase(),f=b.substr(b.length-4),b=b.substr(b.length-5);".mp4"===f?d="video/mp4":".webm"===b?d="video/webm":
".m4a"===f?d="audio/mp4":".mp3"===f&&(d="audio/mpeg");this.Op(a,function(a){a=URL.createObjectURL(new Blob([a],{type:d}));c(a)},h)};g.prototype.yw=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};g.prototype.Wr=function(a,c){this.gk&&!this.yw(c)?this.Kv(c,function(c){a.src=c},function(a){alert("Failed to load image: "+a)}):a.src=c};g.prototype.bl=function(a,c){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=c:(a.webkitImageSmoothingEnabled=
c,a.mozImageSmoothingEnabled=c,a.msImageSmoothingEnabled=c)};Xb=function(a){return new g(document.getElementById(a))};Yb=function(a,c){return new g({dc:!0,width:a,height:c})};window.cr_createRuntime=Xb;window.cr_createDCRuntime=Yb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Ch=!0;document.body.appendChild(a);a=new g(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 g(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(g,e){var b=window.cr_getC2Runtime();b&&b.Cu(g,e)};
window.cr_sizeCanvas=function(g,e){if(0!==g&&0!==e){var b=window.cr_getC2Runtime();b&&b.setSize(g,e)}};window.cr_setSuspended=function(g){var e=window.cr_getC2Runtime();e&&e.setSuspended(g)};
(function(){function g(a,d){this.b=a;this.Gf=null;this.scrollX=this.b.Ma/2;this.scrollY=this.b.La/2;this.scale=1;this.g=0;this.Gg=!0;this.name=d[0];this.$w=d[1];this.Zw=d[2];this.width=d[1];this.height=d[2];this.Bs=d[3];this.as=d[4];this.U=d[5];var b=d[6],f,e;this.O=[];this.ai=[];f=0;for(e=b.length;f<e;f++){var l=new Zb(this,b[f]);l.jr=f;this.O.push(l)}b=d[7];this.$e=[];f=0;for(e=b.length;f<e;f++){var l=b[f],g=this.b.q[l[1]];g.Dd||(g.Dd=l);this.$e.push(l);-1===this.ai.indexOf(g)&&this.ai.push(g)}this.N=
[];this.ma=[];this.Ae=!0;this.Ua=[];f=0;for(e=d[8].length;f<e;f++)this.N.push({id:d[8][f][0],name:d[8][f][1],jb:-1,sd:!1,Ib:!0,index:f}),this.Ua.push(d[8][f][2].slice(0));this.yd();this.of=new wa(0,0,1,1);this.Wn=new wa(0,0,1,1);this.mf={}}function e(a,d){return a.zd-d.zd}function b(a,d){this.fb=a;this.b=a.b;this.e=[];this.scale=1;this.g=0;this.ge=!1;this.Ee=new wa(0,0,0,0);this.vs=new xa;this.xa=this.wa=this.ya=this.ua=0;this.ug=!1;this.Ie=-1;this.fm=0;this.name=d[0];this.index=d[1];this.U=d[2];
this.visible=d[3];this.kd=d[4];this.xd=d[5];this.kc=d[6];this.lc=d[7];this.opacity=d[8];this.Tj=d[9];this.Tc=d[10];this.$b=d[11];this.Jb=d[12];this.Zu=d[13];this.Dh="source-over";this.Qb=this.Xb=0;this.Fb=null;this.ue=p();this.wd=!0;this.Ug=new wa(0,0,-1,-1);this.zb=new wa(0,0,-1,-1);this.Tc&&(this.Fb=new hb(this.b.Ma,this.b.La));this.Td=!1;var b=d[14],f,e;this.ks=[];this.Oc=[];this.Gh=[];f=0;for(e=b.length;f<e;f++){var l=b[f],g=this.b.q[l[1]];g.Dd||(g.Dd=l,g.Bu=this.index);this.Oc.push(l);-1===this.fb.ai.indexOf(g)&&
this.fb.ai.push(g)}Ca(this.ks,this.Oc);this.N=[];this.ma=[];this.Ae=!0;this.Ua=[];f=0;for(e=d[15].length;f<e;f++)this.N.push({id:d[15][f][0],name:d[15][f][1],jb:-1,sd:!1,Ib:!0,index:f}),this.Ua.push(d[15][f][2].slice(0));this.yd();this.of=new wa(0,0,1,1);this.Wn=new wa(0,0,1,1)}function p(){return a.length?a.pop():[]}function m(c){x(c);a.push(c)}g.prototype.Mx=function(a){var d=a.type.U.toString();this.mf.hasOwnProperty(d)||(this.mf[d]=[]);this.mf[d].push(this.b.bo(a))};g.prototype.dq=function(){var a=
this.O[0];return!a.xd&&1===a.opacity&&!a.Tj&&a.visible};g.prototype.yd=function(){x(this.ma);this.Ae=!0;var a,d,b;a=0;for(d=this.N.length;a<d;a++)b=this.N[a],b.Ib&&(this.ma.push(b),b.sd||(this.Ae=!1))};g.prototype.Dm=function(a){var d,b,f;d=0;for(b=this.N.length;d<b;d++)if(f=this.N[d],f.name===a)return f;return null};var q=[],f=!0;g.prototype.no=function(){this.as&&(this.Gf=this.b.rm[this.as],this.Gf.Co());this.b.aa=this;this.width=this.$w;this.height=this.Zw;this.scrollX=this.b.Ma/2;this.scrollY=
this.b.La/2;var a,d,b,k,l,g,m;a=0;for(b=this.b.q.length;a<b;a++)if(d=this.b.q[a],!d.G)for(l=d.e,d=0,k=l.length;d<k;d++)if(g=l[d],g.j){var h=g.j.jr;h>=this.O.length&&(h=this.O.length-1);g.j=this.O[h];-1===g.j.e.indexOf(g)&&g.j.e.push(g);g.j.ug=!0}if(!f)for(a=0,b=this.O.length;a<b;++a)this.O[a].e.sort(e);x(q);this.pu();a=0;for(b=this.O.length;a<b;a++)g=this.O[a],g.zu(),g.Dl();l=!1;if(!this.Gg){for(m in this.mf)if(this.mf.hasOwnProperty(m)&&(d=this.b.Hg(parseInt(m,10)))&&!d.G&&this.b.Ao(d)){k=this.mf[m];
a=0;for(b=k.length;a<b;a++){g=null;if(d.Na.bf&&(g=this.Xj(k[a].w.l),!g))continue;g=this.b.Bf(d.Dd,g,!1,0,0,!0);this.b.qk(g,k[a]);l=!0;q.push(g)}x(k)}a=0;for(b=this.O.length;a<b;a++)this.O[a].e.sort(e),this.O[a].ug=!0}l&&(this.b.Hb(),this.b.Mr());for(a=0;a<q.length;a++)if(g=q[a],g.type.Pc)for(b=g.Wh(),d=0,k=g.type.tc.length;d<k;d++)m=g.type.tc[d],g.type!==m&&(m.e.length>b?g.siblings.push(m.e[b]):m.Dd&&(l=this.b.Bf(m.Dd,g.j,!0,g.x,g.y,!0),this.b.Hb(),m.Bl(),g.siblings.push(l),q.push(l)));a=0;for(b=
this.$e.length;a<b;a++)g=this.$e[a],d=this.b.q[g[1]],d.Pc||this.b.Bf(this.$e[a],null,!0);this.b.$d=null;this.b.Hb();if(this.b.Ga&&!this.b.Aa)for(a=0,b=this.b.q.length;a<b;a++)m=this.b.q[a],!m.G&&m.e.length&&m.Qn&&m.Qn(this.b.Ga);if(this.b.di)Ca(this.b.Qj,q);else for(a=0,b=q.length;a<b;a++)g=q[a],this.b.trigger(Object.getPrototypeOf(g.type.Na).i.No,g);x(q);this.b.di||this.b.trigger(P.prototype.i.Oo,null);this.Gg=!1};g.prototype.yu=function(){var a,d,b,f,e;d=a=0;for(b=this.$e.length;a<b;a++)f=this.$e[a],
e=this.b.q[f[1]],e.global?e.Pc||this.b.Bf(f,null,!0):(this.$e[d]=f,d++);Ba(this.$e,d)};g.prototype.Zx=function(){this.b.di||this.b.trigger(P.prototype.i.zt,null);this.b.Zm=!0;x(this.b.Ud.Ic);var a,d,b,k,e,l;if(!this.Gg)for(a=0,d=this.O.length;a<d;a++)for(this.O[a].Fo(),e=this.O[a].e,b=0,k=e.length;b<k;b++)l=e[b],l.type.global||this.b.Ao(l.type)&&this.Mx(l);a=0;for(d=this.O.length;a<d;a++){e=this.O[a].e;b=0;for(k=e.length;b<k;b++)l=e[b],l.type.global||this.b.sf(l);this.b.Hb();x(e);this.O[a].ug=!0}a=
0;for(d=this.b.q.length;a<d;a++)if(e=this.b.q[a],!(e.global||e.Na.bf||e.Na.ml||e.G)){b=0;for(k=e.e.length;b<k;b++)this.b.sf(e.e[b]);this.b.Hb()}f=!1;this.b.Zm=!1};new wa(0,0,0,0);g.prototype.Ed=function(a){var d,b=a,f=!1,e=!this.b.Mc;e&&(this.b.ok||(this.b.ok=document.createElement("canvas"),d=this.b.ok,d.width=this.b.F,d.height=this.b.D,this.b.Dq=d.getContext("2d"),f=!0),d=this.b.ok,b=this.b.Dq,d.width!==this.b.F&&(d.width=this.b.F,f=!0),d.height!==this.b.D&&(d.height=this.b.D,f=!0),f&&this.b.bl(b,
this.b.Ka));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.xp&&!this.dq()&&b.clearRect(0,0,this.b.F,this.b.D);var l,g,f=0;for(l=this.O.length;f<l;f++)g=this.O[f],g.visible&&0<g.opacity&&11!==g.Jb&&(g.e.length||!g.xd)?g.Ed(b):g.Dl();e&&a.drawImage(d,0,0,this.b.width,this.b.height)};g.prototype.Df=function(a){a.Ur(!0);this.b.gb||(this.b.gb=a.Kc(this.b.F,this.b.D,this.b.Ka));if(this.b.gb.yf!==this.b.F||this.b.gb.xf!==this.b.D)a.deleteTexture(this.b.gb),this.b.gb=a.Kc(this.b.F,this.b.D,
this.b.Ka);a.cd(this.b.gb);this.b.Mc||a.jg(this.b.F,this.b.D);var d,b;for(d=this.O.length-1;0<=d;--d)b=this.O[d],b.visible&&1===b.opacity&&b.Ae&&0===b.Jb&&(b.e.length||!b.xd)?b.Df(a):b.Dl();a.Ur(!1)};g.prototype.uc=function(a){var d=0<this.ma.length||this.b.sh||!this.b.Mc||this.b.Ca;if(d){this.b.gb||(this.b.gb=a.Kc(this.b.F,this.b.D,this.b.Ka));if(this.b.gb.yf!==this.b.F||this.b.gb.xf!==this.b.D)a.deleteTexture(this.b.gb),this.b.gb=a.Kc(this.b.F,this.b.D,this.b.Ka);a.cd(this.b.gb);this.b.Mc||a.jg(this.b.F,
this.b.D)}else this.b.gb&&(a.cd(null),a.deleteTexture(this.b.gb),this.b.gb=null);this.b.xp&&!this.dq()&&a.clear(0,0,0,0);var b,f,e;b=0;for(f=this.O.length;b<f;b++)e=this.O[b],e.visible&&0<e.opacity&&(e.e.length||!e.xd)?e.uc(a):e.Dl();d&&(0===this.ma.length||1===this.ma.length&&this.b.Mc?(1===this.ma.length?(d=this.ma[0].index,a.qc(this.ma[0].jb),a.nh(null,1/this.b.F,1/this.b.D,0,0,1,1,this.scale,this.g,0,0,this.b.F/2,this.b.D/2,this.b.Bb.fa,this.Ua[d]),a.Rk(this.ma[0].jb)&&(this.b.ta=!0)):a.qc(0),
this.b.Mc||a.jg(this.b.width,this.b.height),a.cd(null),a.Tr(!1),a.ig(1),a.Gc(this.b.gb),a.Rr(),a.bd(),a.Sc(),d=this.b.width/2,b=this.b.height/2,a.Li(-d,b,d,b,d,-b,-d,-b),a.Gc(null),a.Tr(!0)):this.Xn(a,null,null,null))};g.prototype.Vh=function(){return 0<this.ma.length||this.b.sh||!this.b.Mc||this.b.Ca?this.b.gb:null};g.prototype.$p=function(){var a=this.O[0].wc(),d,b,f;d=1;for(b=this.O.length;d<b;d++)f=this.O[d],(0!==f.kc||0!==f.lc)&&f.wc()<a&&(a=f.wc());return a};g.prototype.eo=function(a){if(!this.Bs){var d=
1/this.$p()*this.b.F/2;a>this.width-d&&(a=this.width-d);a<d&&(a=d)}this.scrollX!==a&&(this.scrollX=a,this.b.ta=!0)};g.prototype.fo=function(a){if(!this.Bs){var d=1/this.$p()*this.b.D/2;a>this.height-d&&(a=this.height-d);a<d&&(a=d)}this.scrollY!==a&&(this.scrollY=a,this.b.ta=!0)};g.prototype.pu=function(){this.eo(this.scrollX);this.fo(this.scrollY)};g.prototype.Xn=function(a,d,b,f){var e=b?b.ma:d?d.ma:this.ma,l=1,g=0,h=0,n=0,m=this.b.F,p=this.b.D;b?(l=b.j.wc(),g=b.j.lb(),h=b.j.ua,n=b.j.wa,m=b.j.ya,
p=b.j.xa):d&&(l=d.wc(),g=d.lb(),h=d.ua,n=d.wa,m=d.ya,p=d.xa);var r=this.b.Am,q,u,v,N,R=0,W=1,S,I,L=this.b.F,M=this.b.D,J=L/2,ca=M/2,B=d?d.of:this.of,w=d?d.Wn:this.Wn,G=0,y=0,H=0,A=0,U=L,pa=L,V=M,aa=M,ba=v=0;N=b?b.j.lb():0;if(b){q=0;for(u=e.length;q<u;q++)v+=a.$v(e[q].jb),ba+=a.aw(e[q].jb);A=b.P;G=d.Ja(A.left,A.top,!0,!0);H=d.Ja(A.left,A.top,!1,!0);U=d.Ja(A.right,A.bottom,!0,!0);V=d.Ja(A.right,A.bottom,!1,!0);0!==N&&(q=d.Ja(A.right,A.top,!0,!0),u=d.Ja(A.right,A.top,!1,!0),y=d.Ja(A.left,A.bottom,!0,
!0),A=d.Ja(A.left,A.bottom,!1,!0),N=Math.min(G,U,q,y),U=Math.max(G,U,q,y),G=N,N=Math.min(H,V,u,A),V=Math.max(H,V,u,A),H=N);G-=v;H-=ba;U+=v;V+=ba;w.left=G/L;w.top=1-H/M;w.right=U/L;w.bottom=1-V/M;y=G=ta(G);A=H=ta(H);pa=U=ua(U);aa=V=ua(V);y-=v;A-=ba;pa+=v;aa+=ba;0>G&&(G=0);0>H&&(H=0);U>L&&(U=L);V>M&&(V=M);0>y&&(y=0);0>A&&(A=0);pa>L&&(pa=L);aa>M&&(aa=M);B.left=G/L;B.top=1-H/M;B.right=U/L;B.bottom=1-V/M}else B.left=w.left=0,B.top=w.top=0,B.right=w.right=1,B.bottom=w.bottom=1;ba=b&&(a.Ii(e[0].jb)||0!==
v||0!==ba||1!==b.opacity||b.type.Na.cr)||d&&!b&&1!==d.opacity;a.Rr();if(ba){r[R]||(r[R]=a.Kc(L,M,this.b.Ka));if(r[R].yf!==L||r[R].xf!==M)a.deleteTexture(r[R]),r[R]=a.Kc(L,M,this.b.Ka);a.qc(0);a.cd(r[R]);I=aa-A;a.clearRect(y,M-A-I,pa-y,I);b?b.uc(a):(a.Gc(this.b.nb),a.ig(d.opacity),a.bd(),a.translate(-J,-ca),a.Sc(),a.Sd(G,V,U,V,U,H,G,H,B));w.left=w.top=0;w.right=w.bottom=1;b&&(N=B.top,B.top=B.bottom,B.bottom=N);R=1;W=0}a.ig(1);v=e.length-1;var Fa=a.Sn(e[v].jb)||!d&&!b&&!this.b.Mc;q=N=0;for(u=e.length;q<
u;q++){r[R]||(r[R]=a.Kc(L,M,this.b.Ka));if(r[R].yf!==L||r[R].xf!==M)a.deleteTexture(r[R]),r[R]=a.Kc(L,M,this.b.Ka);a.qc(e[q].jb);N=e[q].index;a.Rk(e[q].jb)&&(this.b.ta=!0);0!=q||ba?(a.nh(f,1/L,1/M,w.left,w.top,w.right,w.bottom,l,g,h,n,(h+m)/2,(n+p)/2,this.b.Bb.fa,b?b.Ua[N]:d?d.Ua[N]:this.Ua[N]),a.Gc(null),q!==v||Fa?(a.cd(r[R]),I=aa-A,S=M-A-I,a.clearRect(y,S,pa-y,I)):(b?a.pf(b.Xb,b.Qb):d&&a.pf(d.Xb,d.Qb),a.cd(f)),a.Gc(r[W]),a.bd(),a.translate(-J,-ca),a.Sc(),a.Sd(G,V,U,V,U,H,G,H,B),q!==v||Fa||a.Gc(null)):
(a.cd(r[R]),I=aa-A,S=M-A-I,a.clearRect(y,S,pa-y,I),b?(b.Ta&&b.Ta.Y?(S=b.Ta.Y,W=1/S.width,S=1/S.height):(W=1/b.width,S=1/b.height),a.nh(f,W,S,w.left,w.top,w.right,w.bottom,l,g,h,n,(h+m)/2,(n+p)/2,this.b.Bb.fa,b.Ua[N]),b.uc(a)):(a.nh(f,1/L,1/M,0,0,1,1,l,g,h,n,(h+m)/2,(n+p)/2,this.b.Bb.fa,d?d.Ua[N]:this.Ua[N]),a.Gc(d?this.b.nb:this.b.gb),a.bd(),a.translate(-J,-ca),a.Sc(),a.Sd(G,V,U,V,U,H,G,H,B)),w.left=w.top=0,w.right=w.bottom=1,b&&!Fa&&(N=V,V=H,H=N));R=0===R?1:0;W=0===R?1:0}Fa&&(a.qc(0),b?a.pf(b.Xb,
b.Qb):d?a.pf(d.Xb,d.Qb):this.b.Mc||(a.jg(this.b.width,this.b.height),J=this.b.width/2,ca=this.b.height/2,H=G=0,U=this.b.width,V=this.b.height),a.cd(f),a.Gc(r[W]),a.bd(),a.translate(-J,-ca),a.Sc(),b&&1===e.length&&!ba?a.Sd(G,H,U,H,U,V,G,V,B):a.Sd(G,V,U,V,U,H,G,H,B),a.Gc(null))};g.prototype.Xj=function(a){var d,b;d=0;for(b=this.O.length;d<b;d++)if(this.O[d].U===a)return this.O[d];return null};g.prototype.Gb=function(){var a,d,b,f={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.g,w:this.width,h:this.height,
fv:this.Gg,persist:this.mf,fx:[],layers:{}};a=0;for(d=this.N.length;a<d;a++)b=this.N[a],f.fx.push({name:b.name,active:b.Ib,params:this.Ua[b.index]});a=0;for(d=this.O.length;a<d;a++)b=this.O[a],f.layers[b.U.toString()]=b.Gb();return f};g.prototype.cc=function(a){var d,b,f,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.g=a.a;this.width=a.w;this.height=a.h;this.mf=a.persist;"undefined"!==typeof a.fv&&(this.Gg=a.fv);var l=a.fx;d=0;for(b=l.length;d<b;d++)if(f=this.Dm(l[d].name))f.Ib=l[d].active,
this.Ua[f.index]=l[d].params;this.yd();d=a.layers;for(e in d)d.hasOwnProperty(e)&&(a=this.Xj(parseInt(e,10)))&&a.cc(d[e])};Hb=g;b.prototype.yd=function(){x(this.ma);this.Ae=!0;var a,d,b;a=0;for(d=this.N.length;a<d;a++)b=this.N[a],b.Ib&&(this.ma.push(b),b.sd||(this.Ae=!1))};b.prototype.Dm=function(a){var d,b,f;d=0;for(b=this.N.length;d<b;d++)if(f=this.N[d],f.name===a)return f;return null};b.prototype.zu=function(){var a,b,f,k,e,l;b=a=0;for(f=this.Oc.length;a<f;a++){k=this.Oc[a];e=this.b.q[k[1]];l=
this.b.Ao(e);e=!0;if(!l||this.fb.Gg){k=this.b.Bf(k,this,!0);if(!k)continue;q.push(k);k.type.global&&(e=!1,this.Gh.push(k.uid))}e&&(this.Oc[b]=this.Oc[a],b++)}this.Oc.length=b;this.b.Hb();!this.b.p&&this.N.length&&(this.Jb=this.Zu);this.Dh=ib(this.Jb);this.b.A&&jb(this,this.Jb,this.b.A);this.wd=!0};b.prototype.kh=function(a,b){var f=Ea(this.e,a);0>f||(b&&this.Tc&&a.mc&&a.mc.right>=a.mc.left&&(a.R(),this.Fb.update(a,a.mc,null),a.mc.set(0,0,-1,-1)),f===this.e.length-1?this.e.pop():(Aa(this.e,f),this.Qi(f)),
this.wd=!0)};b.prototype.Ah=function(a,b){a.zd=this.e.length;this.e.push(a);b&&this.Tc&&a.mc&&a.H();this.wd=!0};b.prototype.mx=function(a){this.e.unshift(a);this.Qi(0)};b.prototype.Ow=function(a,b,f){var k=a.Hd();b=b.Hd();Aa(this.e,k);k<b&&b--;f&&b++;b===this.e.length?this.e.push(a):this.e.splice(b,0,a);this.Qi(k<b?k:b)};b.prototype.Qi=function(a){-1===this.Ie?this.Ie=a:a<this.Ie&&(this.Ie=a);this.wd=this.ug=!0};b.prototype.Fo=function(){if(this.ug){-1===this.Ie&&(this.Ie=0);var a,b,f;if(this.Tc)for(a=
this.Ie,b=this.e.length;a<b;++a)f=this.e[a],f.zd=a,this.Fb.Lw(f.mc);else for(a=this.Ie,b=this.e.length;a<b;++a)this.e[a].zd=a;this.ug=!1;this.Ie=-1}};b.prototype.wc=function(a){return this.Xv()*(this.b.Mc||a?this.b.Bh:1)};b.prototype.Xv=function(){return(this.scale*this.fb.scale-1)*this.$b+1};b.prototype.lb=function(){return this.ge?0:O(this.fb.g+this.g)};var a=[],l=[],r=[];b.prototype.Im=function(){this.Fo();this.Fb.Uk(this.ua,this.wa,this.ya,this.xa,r);if(!r.length)return p();if(1===r.length){var a=
p();Ca(a,r[0]);x(r);return a}for(var b=!0;1<r.length;){for(var a=r,f=void 0,k=void 0,e=void 0,g=void 0,q=void 0,f=0,k=a.length;f<k-1;f+=2){var e=a[f],g=a[f+1],q=p(),h=e,n=g,z=q,T=0,D=0,Q=0,u=h.length,v=n.length,N=void 0,R=void 0;for(z.length=u+v;T<u&&D<v;++Q)N=h[T],R=n[D],N.zd<R.zd?(z[Q]=N,++T):(z[Q]=R,++D);for(;T<u;++T,++Q)z[Q]=h[T];for(;D<v;++D,++Q)z[Q]=n[D];b||(m(e),m(g));l.push(q)}1===k%2&&(b?(e=p(),Ca(e,a[k-1]),l.push(e)):l.push(a[k-1]));Ca(a,l);x(l);b=!1}a=r[0];x(r);return a};b.prototype.Ed=
function(a){this.Td=this.Tj||1!==this.opacity||0!==this.Jb;var b=this.b.canvas,f=a,k=!1;this.Td&&(this.b.nk||(this.b.nk=document.createElement("canvas"),b=this.b.nk,b.width=this.b.F,b.height=this.b.D,this.b.Cq=b.getContext("2d"),k=!0),b=this.b.nk,f=this.b.Cq,b.width!==this.b.F&&(b.width=this.b.F,k=!0),b.height!==this.b.D&&(b.height=this.b.D,k=!0),k&&this.b.bl(f,this.b.Ka),this.xd&&f.clearRect(0,0,this.b.F,this.b.D));f.globalAlpha=1;f.globalCompositeOperation="source-over";this.xd||(f.fillStyle="rgb("+
this.kd[0]+","+this.kd[1]+","+this.kd[2]+")",f.fillRect(0,0,this.b.F,this.b.D));f.save();this.ge=!0;var k=this.Za(0,0,!0,!0),e=this.Za(0,0,!1,!0);this.ge=!1;this.b.rd&&(k=Math.round(k),e=Math.round(e));this.Yk(k,e,f);var l=this.wc();f.scale(l,l);f.translate(-k,-e);this.Tc?(this.zb.left=this.Fb.fc(this.ua),this.zb.top=this.Fb.gc(this.wa),this.zb.right=this.Fb.fc(this.ya),this.zb.bottom=this.Fb.gc(this.xa),this.wd||!this.zb.Kh(this.Ug)?(m(this.ue),k=this.Im(),this.wd=!1,this.Ug.Eh(this.zb)):k=this.ue):
k=this.e;for(var g,h=null,e=0,l=k.length;e<l;++e)g=k[e],g!==h&&(this.Uu(g,f),h=g);this.Tc&&(this.ue=k);f.restore();this.Td&&(a.globalCompositeOperation=this.Dh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};b.prototype.Uu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.R();var f=a.P;f.right<this.ua||f.bottom<this.wa||f.left>this.ya||f.top>this.xa||(b.globalCompositeOperation=a.Dh,a.Ed(b))}};b.prototype.Dl=function(){this.ge=!0;var a=this.Za(0,0,!0,!0),b=this.Za(0,0,!1,!0);this.ge=!1;this.b.rd&&
(a=Math.round(a),b=Math.round(b));this.Yk(a,b,null)};b.prototype.Yk=function(a,b,f){var e=this.wc();this.ua=a;this.wa=b;this.ya=a+1/e*this.b.F;this.xa=b+1/e*this.b.D;this.ua>this.ya&&(a=this.ua,this.ua=this.ya,this.ya=a);this.wa>this.xa&&(a=this.wa,this.wa=this.xa,this.xa=a);a=this.lb();0!==a&&(f&&(f.translate(this.b.F/2,this.b.D/2),f.rotate(-a),f.translate(this.b.F/-2,this.b.D/-2)),this.Ee.set(this.ua,this.wa,this.ya,this.xa),this.Ee.offset((this.ua+this.ya)/-2,(this.wa+this.xa)/-2),this.vs.Zr(this.Ee,
a),this.vs.pp(this.Ee),this.Ee.offset((this.ua+this.ya)/2,(this.wa+this.xa)/2),this.ua=this.Ee.left,this.wa=this.Ee.top,this.ya=this.Ee.right,this.xa=this.Ee.bottom)};b.prototype.Df=function(a){if(this.Td=this.Tj){this.b.nb||(this.b.nb=a.Kc(this.b.F,this.b.D,this.b.Ka));if(this.b.nb.yf!==this.b.F||this.b.nb.xf!==this.b.D)a.deleteTexture(this.b.nb),this.b.nb=a.Kc(this.b.F,this.b.D,this.b.Ka);a.cd(this.b.nb)}this.ge=!0;var b=this.Za(0,0,!0,!0),f=this.Za(0,0,!1,!0);this.ge=!1;this.b.rd&&(b=Math.round(b),
f=Math.round(f));this.Yk(b,f,null);b=this.wc();a.bd();a.scale(b,b);a.Zk(-this.lb());a.translate((this.ua+this.ya)/-2,(this.wa+this.xa)/-2);a.Sc();this.Tc?(this.zb.left=this.Fb.fc(this.ua),this.zb.top=this.Fb.gc(this.wa),this.zb.right=this.Fb.fc(this.ya),this.zb.bottom=this.Fb.gc(this.xa),this.wd||!this.zb.Kh(this.Ug)?(m(this.ue),b=this.Im(),this.wd=!1,this.Ug.Eh(this.zb)):b=this.ue):b=this.e;for(var e,l=null,f=b.length-1;0<=f;--f)e=b[f],e!==l&&(this.Wu(b[f],a),l=e);this.Tc&&(this.ue=b);this.xd||(this.fm=
this.b.Ff++,a.cl(this.fm),a.Sr(1,1,1),a.Sp(),a.Cx())};b.prototype.uc=function(a){var b=0,f=0;if(this.Td=this.Tj||1!==this.opacity||0<this.ma.length||0!==this.Jb){this.b.nb||(this.b.nb=a.Kc(this.b.F,this.b.D,this.b.Ka));if(this.b.nb.yf!==this.b.F||this.b.nb.xf!==this.b.D)a.deleteTexture(this.b.nb),this.b.nb=a.Kc(this.b.F,this.b.D,this.b.Ka);a.cd(this.b.nb);this.xd&&a.clear(0,0,0,0)}this.xd||(this.b.Ca?(a.cl(this.fm),a.Sr(this.kd[0]/255,this.kd[1]/255,this.kd[2]/255),a.Sp(),a.Tx()):a.clear(this.kd[0]/
255,this.kd[1]/255,this.kd[2]/255,1));this.ge=!0;var e=this.Za(0,0,!0,!0),b=this.Za(0,0,!1,!0);this.ge=!1;this.b.rd&&(e=Math.round(e),b=Math.round(b));this.Yk(e,b,null);e=this.wc();a.bd();a.scale(e,e);a.Zk(-this.lb());a.translate((this.ua+this.ya)/-2,(this.wa+this.xa)/-2);a.Sc();this.Tc?(this.zb.left=this.Fb.fc(this.ua),this.zb.top=this.Fb.gc(this.wa),this.zb.right=this.Fb.fc(this.ya),this.zb.bottom=this.Fb.gc(this.xa),this.wd||!this.zb.Kh(this.Ug)?(m(this.ue),b=this.Im(),this.wd=!1,this.Ug.Eh(this.zb)):
b=this.ue):b=this.e;var l,g,p=null,f=0;for(l=b.length;f<l;++f)g=b[f],g!==p&&(this.Vu(b[f],a),p=g);this.Tc&&(this.ue=b);this.Td&&(b=this.ma.length?this.ma[0].jb:0,f=this.ma.length?this.ma[0].index:0,0===this.ma.length||1===this.ma.length&&!a.Sn(b)&&1===this.opacity?(1===this.ma.length?(a.qc(b),a.nh(this.fb.Vh(),1/this.b.F,1/this.b.D,0,0,1,1,e,this.lb(),this.ua,this.wa,(this.ua+this.ya)/2,(this.wa+this.xa)/2,this.b.Bb.fa,this.Ua[f]),a.Rk(b)&&(this.b.ta=!0)):a.qc(0),a.cd(this.fb.Vh()),a.ig(this.opacity),
a.Gc(this.b.nb),a.pf(this.Xb,this.Qb),a.bd(),a.Sc(),e=this.b.F/2,b=this.b.D/2,a.Li(-e,b,e,b,e,-b,-e,-b),a.Gc(null)):this.fb.Xn(a,this,null,this.fb.Vh()))};b.prototype.Vu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.R();var f=a.P;f.right<this.ua||f.bottom<this.wa||f.left>this.ya||f.top>this.xa||(b.cl(a.Ff),a.Hs?this.Xu(a,b):(b.qc(0),b.pf(a.Xb,a.Qb),a.uc(b)))}};b.prototype.Wu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.R();var f=a.P;f.right<this.ua||f.bottom<this.wa||f.left>
this.ya||f.top>this.xa||(a.Ff=this.b.Ff++,0===a.Jb&&1===a.opacity&&a.Ae&&a.Df&&(b.cl(a.Ff),a.Df(b)))}};b.prototype.Xu=function(a,b){var f=a.ma[0].jb,e=a.ma[0].index,l=this.wc();if(1!==a.ma.length||b.Sn(f)||b.ox(f)||(a.g||a.j.lb())&&b.Ii(f)||1!==a.opacity||a.type.Na.cr)this.fb.Xn(b,this,a,this.Td?this.b.nb:this.fb.Vh()),b.bd(),b.scale(l,l),b.Zk(-this.lb()),b.translate((this.ua+this.ya)/-2,(this.wa+this.xa)/-2),b.Sc();else{b.qc(f);b.pf(a.Xb,a.Qb);b.Rk(f)&&(this.b.ta=!0);var g=0,m=0,h=0,n=0;b.Ii(f)&&
(n=a.P,g=this.Ja(n.left,n.top,!0,!0),m=this.Ja(n.left,n.top,!1,!0),h=this.Ja(n.right,n.bottom,!0,!0),n=this.Ja(n.right,n.bottom,!1,!0),g=g/windowWidth,m=1-m/windowHeight,h=h/windowWidth,n=1-n/windowHeight);var p;a.Ta&&a.Ta.Y?(p=a.Ta.Y,f=1/p.width,p=1/p.height):(f=1/a.width,p=1/a.height);b.nh(this.Td?this.b.nb:this.fb.Vh(),f,p,g,m,h,n,l,this.lb(),this.ua,this.wa,(this.ua+this.ya)/2,(this.wa+this.xa)/2,this.b.Bb.fa,a.Ua[e]);a.uc(b)}};b.prototype.Za=function(a,b,f,e){var l=this.b.devicePixelRatio;this.b.Pf&&
(a*=l,b*=l);var l=this.b.Dr,g=this.b.Er,l=(this.fb.scrollX-l)*this.kc+l,g=(this.fb.scrollY-g)*this.lc+g,m=l,h=g,n=1/this.wc(!e);e?(m-=this.b.F*n/2,h-=this.b.D*n/2):(m-=this.b.width*n/2,h-=this.b.height*n/2);m+=a*n;h+=b*n;b=this.lb();0!==b&&(m-=l,h-=g,a=Math.cos(b),b=Math.sin(b),e=m*a-h*b,h=h*a+m*b,m=e+l,h+=g);return f?m:h};b.prototype.Ja=function(a,b,f,e){var l=this.b.Dr,g=this.b.Er,m=(this.fb.scrollX-l)*this.kc+l,h=(this.fb.scrollY-g)*this.lc+g,g=m,l=h,n=this.lb();if(0!==n){a-=m;b-=h;var p=Math.cos(-n),
n=Math.sin(-n),r=a*p-b*n;b=b*p+a*n;a=r+m;b+=h}m=1/this.wc(!e);e?(g-=this.b.F*m/2,l-=this.b.D*m/2):(g-=this.b.width*m/2,l-=this.b.height*m/2);g=(a-g)/m;l=(b-l)/m;a=this.b.devicePixelRatio;this.b.Pf&&!e&&(g/=a,l/=a);return f?g:l};b.prototype.Gb=function(){var a,b,f,e={s:this.scale,a:this.g,vl:this.ua,vt:this.wa,vr:this.ya,vb:this.xa,v:this.visible,bc:this.kd,t:this.xd,px:this.kc,py:this.lc,o:this.opacity,zr:this.$b,fx:[],cg:this.Gh,instances:[]};a=0;for(b=this.N.length;a<b;a++)f=this.N[a],e.fx.push({name:f.name,
active:f.Ib,params:this.Ua[f.index]});return e};b.prototype.cc=function(a){var b,f,k;this.scale=a.s;this.g=a.a;this.ua=a.vl;this.wa=a.vt;this.ya=a.vr;this.xa=a.vb;this.visible=a.v;this.kd=a.bc;this.xd=a.t;this.kc=a.px;this.lc=a.py;this.opacity=a.o;this.$b=a.zr;this.Gh=a.cg||[];Ca(this.Oc,this.ks);var l=new fa;b=0;for(k=this.Gh.length;b<k;++b)l.add(this.Gh[b]);f=b=0;for(k=this.Oc.length;b<k;++b)l.contains(this.Oc[b][2])||(this.Oc[f]=this.Oc[b],++f);Ba(this.Oc,f);f=a.fx;b=0;for(k=f.length;b<k;b++)if(a=
this.Dm(f[b].name))a.Ib=f[b].active,this.Ua[a.index]=f[b].params;this.yd();this.e.sort(e);this.ug=!0};Zb=b})();
(function(){function g(a,b){var c,f=a.length;switch(f){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<f;c++)if(a[c]!==b[c])return!1;return!0}}function e(a,b){return a.index-b.index}function b(a){var b,c,f,d;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(e);a.length>=K.length&&(K.length=a.length+1);K[a.length]||(K[a.length]=[]);d=K[a.length];b=0;for(c=d.length;b<c;b++)if(f=d[b],g(a,f))return f;d.push(a);return a}
function p(a,b){this.b=a;this.ys={};this.Mp={};this.Om=!1;this.hq=new fa;this.lm=[];this.Ul=[];this.name=b[0];var c=b[1];this.We=[];var f,d;f=0;for(d=c.length;f<d;f++)this.jq(c[f],null,this.We)}function m(a){this.type=a;this.e=[];this.V=[];this.Ba=!0}function q(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Oa=[];this.qf=[];this.fq=this.xl=this.wo=this.bk=this.group=this.hs=!1;this.tb=[];this.gd=[];this.dd=[];this.Yh="";this.Xh=this.bk=this.group=!1;this.yj=null;c[1]&&(this.Yh=c[1][1].toLowerCase(),
this.group=!0,this.bk=!!c[1][0],this.yj=[],this.Xh=this.bk,this.b.Me.push(this),this.b.Yj[this.Yh]=this);this.$c=c[2];this.U=c[4];this.group||(this.b.op[this.U.toString()]=this);var f=c[5];a=0;for(b=f.length;a<b;a++){var d=new $b(this,f[a]);d.index=a;this.tb.push(d);this.ep(d.type)}f=c[6];a=0;for(b=f.length;a<b;a++)d=new ac(this,f[a]),d.index=a,this.gd.push(d);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.jq(c[a],this,this.dd);this.jk=!1;this.tb.length&&(this.jk=null==this.tb[0].type&&
this.tb[0].Ab==P.prototype.i.Lo)}function f(a,b){var c,f,d;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Pc))for(c=0,f=a.tc.length;c<f;c++)d=a.tc[c],a!==d&&-1===b.indexOf(d)&&b.push(d)}function a(a,b){this.Jc=a;this.sheet=a.sheet;this.b=a.b;this.T=[];this.Wa=[];this.ca={};this.index=-1;this.yh=!1;this.Ab=this.b.Je(b[1]);this.trigger=0<b[3];this.Lp=2===b[3];this.Md=b[4];this.Xm=b[5];this.Iw=b[6];this.U=b[7];this.b.Qe[this.U.toString()]=this;-1===b[0]?(this.type=null,this.ib=this.ao,this.wf=null,this.ld=-1):
(this.type=this.b.q[b[0]],this.ib=this.Iw?this.Kx:this.$n,b[2]?(this.wf=this.type.Wj(b[2]),this.ld=this.type.Bm(b[2])):(this.wf=null,this.ld=-1),this.Jc.parent&&this.Jc.parent.el());this.Lp&&(this.ib=this.Lx);if(10===b.length){var c,f,d=b[9];c=0;for(f=d.length;c<f;c++){var e=new bc(this,d[c]);this.T.push(e)}this.Wa.length=d.length}}function l(a,b){this.Jc=a;this.sheet=a.sheet;this.b=a.b;this.T=[];this.Wa=[];this.ca={};this.index=-1;this.yh=!1;this.Ab=this.b.Je(b[1]);-1===b[0]?(this.type=null,this.ib=
this.ao,this.wf=null,this.ld=-1):(this.type=this.b.q[b[0]],this.ib=this.$n,b[2]?(this.wf=this.type.Wj(b[2]),this.ld=this.type.Bm(b[2])):(this.wf=null,this.ld=-1));this.U=b[3];this.b.Le[this.U.toString()]=this;if(6===b.length){var c,f,d=b[5];c=0;for(f=d.length;c<f;c++){var e=new bc(this,d[c]);this.T.push(e)}this.Wa.length=d.length}}function r(){F++;C.length===F&&C.push(new cc);return C[F]}function c(a,b){this.ad=a;this.Jc=a.Jc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Fd=null;this.Be=0;this.get=
null;this.zp=0;this.fb=null;this.key=0;this.object=null;this.index=0;this.cj=this.mg=this.cj=this.mg=this.Pp=this.Hf=this.dj=null;this.fd=!1;var c,f,d;switch(b[0]){case 0:case 7:this.Fd=new dc(this,b[1]);this.Be=0;this.get=this.fw;break;case 1:this.Fd=new dc(this,b[1]);this.Be=0;this.get=this.gw;break;case 5:this.Fd=new dc(this,b[1]);this.Be=0;this.get=this.kw;break;case 3:case 8:this.zp=b[1];this.get=this.dw;break;case 6:this.fb=this.b.qn[b[1]];this.get=this.lw;break;case 9:this.key=b[1];this.get=
this.jw;break;case 4:this.object=this.b.q[b[1]];this.get=this.mw;this.Jc.ep(this.object);this.ad instanceof ac?this.Jc.el():this.Jc.parent&&this.Jc.parent.el();break;case 10:this.index=b[1];a.type&&a.type.G?(this.get=this.hw,this.fd=!0):this.get=this.iw;break;case 11:this.dj=b[1];this.Hf=null;this.get=this.ew;break;case 2:case 12:this.Pp=b[1];this.get=this.cw;break;case 13:for(this.get=this.ow,this.mg=[],this.cj=[],c=1,f=b.length;c<f;c++)d=new bc(this.ad,b[c]),this.mg.push(d),this.cj.push(0)}}function d(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Oa=[];this.name=c[1];this.Js=c[2];this.Tm=c[3];this.ji=!!c[4];this.hk=!!c[5];this.U=c[6];this.b.vh[this.U.toString()]=this;this.data=this.Tm;this.parent?(this.Zf=this.ji||this.hk?-1:this.b.Xx++,this.b.ju.push(this)):(this.Zf=-1,this.b.iu.push(this))}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Oa=[];this.$h=null;this.vw=c[1];this.Ib=!0}function k(){this.ns=[];this.reset(null)}var K=[];p.prototype.toString=function(){return this.name};
p.prototype.jq=function(a,b,c){switch(a[0]){case 0:a=new ec(this,b,a);if(a.$c)for(c.push(a),c=0,b=a.tb.length;c<b;c++)a.tb[c].trigger&&this.kq(a,c);else a.wq()?this.kq(a,0):c.push(a);break;case 1:a=new Wb(this,b,a);c.push(a);break;case 2:a=new fc(this,b,a),c.push(a)}};p.prototype.ab=function(){var a,b;a=0;for(b=this.We.length;a<b;a++)this.We[a].ab(a<b-1&&this.We[a+1].jk)};p.prototype.Co=function(){x(this.lm);x(this.Ul);this.dp(this);x(this.Ul)};p.prototype.dp=function(a){var b,c,f,d,e=a.lm,k=a.Ul,
l=this.hq.Fe();b=0;for(c=l.length;b<c;++b)f=l[b],d=f.$h,!f.Ib||a===d||-1<k.indexOf(d)||(k.push(d),d.dp(a),e.push(d))};p.prototype.ib=function(a){this.b.gA||(this.Om=!0,a||(this.b.bn=!0));var b,c;b=0;for(c=this.We.length;b<c;b++){var f=this.We[b];f.ib();this.b.em(f.Oa);this.b.Ze&&this.b.Hb()}a||(this.b.bn=!1)};p.prototype.kq=function(a,b){a.$c||this.b.Al.push(a);var c,f,d=a.tb[b],e;d.type?e=d.type.name:e="system";var k=(c=d.Lp)?this.Mp:this.ys;k[e]||(k[e]=[]);e=k[e];k=d.Ab;if(c){if(d.T.length&&(d=
d.T[0],1===d.type&&2===d.Fd.type)){d=d.Fd.value.toLowerCase();c=0;for(f=e.length;c<f;c++)if(e[c].method==k){c=e[c].Mh;c[d]?c[d].push([a,b]):c[d]=[[a,b]];return}c={};c[d]=[[a,b]];e.push({method:k,Mh:c})}}else{c=0;for(f=e.length;c<f;c++)if(e[c].method==k){e[c].Mh.push([a,b]);return}tc&&k===tc.prototype.i.xg?e.unshift({method:k,Mh:[[a,b]]}):e.push({method:k,Mh:[[a,b]]})}};Mb=p;m.prototype.Nm=function(){return this.Ba?this.type.e.length:this.e.length};m.prototype.vc=function(){return this.Ba?this.type.e:
this.e};m.prototype.Gi=function(a){a&&(a.b.Sb().Lc.$c?(this.Ba&&(x(this.e),Ca(this.V,a.type.e),this.Ba=!1),a=this.V.indexOf(a),-1!==a&&(this.e.push(this.V[a]),this.V.splice(a,1))):(this.Ba=!1,x(this.e),this.e[0]=a))};pb=m;window._c2hh_="A16AF58E7D25594A6A684FA3B13239069089EECC";q.prototype.ab=function(a){var c,d=this.parent;if(this.group)for(this.xl=!0;d;){if(!d.group){this.xl=!1;break}d=d.parent}this.wo=!this.wq()&&(!this.parent||this.parent.group&&this.parent.xl);this.fq=!!a;this.qf=this.Oa.slice(0);
for(d=this.parent;d;){a=0;for(c=d.Oa.length;a<c;a++)this.gu(d.Oa[a]);d=d.parent}this.Oa=b(this.Oa);this.qf=b(this.qf);a=0;for(c=this.tb.length;a<c;a++)this.tb[a].ab();a=0;for(c=this.gd.length;a<c;a++)this.gd[a].ab();a=0;for(c=this.dd.length;a<c;a++)this.dd[a].ab(a<c-1&&this.dd[a+1].jk)};q.prototype.Vr=function(a){if(this.Xh!==!!a){this.Xh=!!a;var b;a=0;for(b=this.yj.length;a<b;++a)this.yj[a].Ds();0<b&&this.b.aa.Gf&&this.b.aa.Gf.Co()}};q.prototype.ep=function(a){f(a,this.Oa)};q.prototype.gu=function(a){f(a,
this.qf)};q.prototype.el=function(){this.hs=!0;this.parent&&this.parent.el()};q.prototype.wq=function(){return this.tb.length?this.tb[0].trigger:!1};q.prototype.ib=function(){var a,b,c=!1,d=this.b,f=this.b.Sb();f.Lc=this;var e=this.tb;this.jk||(f.pm=!1);if(this.$c){0===e.length&&(c=!0);f.sb=0;for(a=e.length;f.sb<a;f.sb++)b=e[f.sb],b.trigger||(b=b.ib())&&(c=!0);(f.Tf=c)&&this.$k()}else{f.sb=0;for(a=e.length;f.sb<a;f.sb++)if(b=e[f.sb].ib(),!b){f.Tf=!1;this.wo&&d.Ze&&d.Hb();return}f.Tf=!0;this.$k()}this.bv(f)};
q.prototype.bv=function(a){a.Tf&&this.fq&&(a.pm=!0);this.wo&&this.b.Ze&&this.b.Hb()};q.prototype.Ix=function(a){this.b.Sb().Lc=this;this.tb[a].ib()&&(this.$k(),this.b.Sb().Tf=!0)};q.prototype.$k=function(){var a=this.b.Sb(),b;a.Uc=0;for(b=this.gd.length;a.Uc<b;a.Uc++)if(this.gd[a.Uc].ib())return;this.Pr()};q.prototype.Ex=function(){var a=this.b.Sb(),b;for(b=this.gd.length;a.Uc<b;a.Uc++)if(this.gd[a.Uc].ib())return;this.Pr()};q.prototype.Pr=function(){if(this.dd.length){var a,b,c,d,f=this.dd.length-
1;this.b.Tk(this);if(this.hs)for(a=0,b=this.dd.length;a<b;a++)c=this.dd[a],(d=!this.xl||!this.group&&a<f)&&this.b.Sk(c.Oa),c.ib(),d?this.b.fg(c.Oa):this.b.em(c.Oa);else for(a=0,b=this.dd.length;a<b;a++)this.dd[a].ib();this.b.Ok()}};q.prototype.Jx=function(){var a=this.b.Sb();a.Lc=this;var b=!1,c;a.sb=0;for(c=this.tb.length;a.sb<c;a.sb++)if(this.tb[a.sb].ib())b=!0;else if(!this.$c)return!1;return this.$c?b:!0};q.prototype.Fx=function(){this.b.Nh++;var a=this.b.Sb().sb,b=this.b.Tk(this);if(!this.$c)for(b.sb=
a+1,a=this.tb.length;b.sb<a;b.sb++)if(!this.tb[b.sb].ib()){this.b.Ok();return}this.$k();this.b.Ok()};q.prototype.Bw=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.tb[b].type===a.type)return!1;return!0};ec=q;a.prototype.ab=function(){var a,b,c;a=0;for(b=this.T.length;a<b;a++)c=this.T[a],c.ab(),c.fd&&(this.yh=!0)};a.prototype.Lx=function(){return!0};a.prototype.ao=function(){var a,b;a=0;for(b=this.T.length;a<b;a++)this.Wa[a]=this.T[a].get();return Ua(this.Ab.apply(this.b.Ud,this.Wa),
this.Xm)};a.prototype.Kx=function(){var a,b;a=0;for(b=this.T.length;a<b;a++)this.Wa[a]=this.T[a].get();a=this.Ab.apply(this.wf?this.wf:this.type,this.Wa);this.type.Vc();return a};a.prototype.$n=function(){var a,b,c,d,f,e,k,l,g=this.type,m=g.qa(),p=this.Jc.$c&&!this.trigger;b=0;var r=g.Pc,q=g.G,t=g.ie,K=this.ld,C=-1<K,F=this.yh,B=this.T,w=this.Wa,G=this.Xm,y=this.Ab,H;if(F)for(b=0,f=B.length;b<f;++b)e=B[b],e.fd||(w[b]=e.get(0));else for(b=0,f=B.length;b<f;++b)w[b]=B[b].get(0);if(m.Ba){x(m.e);x(m.V);
H=g.e;a=0;for(d=H.length;a<d;++a){l=H[a];if(F)for(b=0,f=B.length;b<f;++b)e=B[b],e.fd&&(w[b]=e.get(a));C?(b=0,q&&(b=l.type.Fg[t]),b=y.apply(l.I[K+b],w)):b=y.apply(l,w);(k=Ua(b,G))?m.e.push(l):p&&m.V.push(l)}g.finish&&g.finish(!0);m.Ba=!1;g.Vc();return m.Nm()}c=0;H=(k=p&&!this.Jc.Bw(this))?m.V:m.e;var A=!1;a=0;for(d=H.length;a<d;++a){l=H[a];if(F)for(b=0,f=B.length;b<f;++b)e=B[b],e.fd&&(w[b]=e.get(a));C?(b=0,q&&(b=l.type.Fg[t]),b=y.apply(l.I[K+b],w)):b=y.apply(l,w);if(Ua(b,G))if(A=!0,k){if(m.e.push(l),
r)for(b=0,f=l.siblings.length;b<f;b++)e=l.siblings[b],e.type.qa().e.push(e)}else{H[c]=l;if(r)for(b=0,f=l.siblings.length;b<f;b++)e=l.siblings[b],e.type.qa().e[c]=e;c++}else if(k){H[c]=l;if(r)for(b=0,f=l.siblings.length;b<f;b++)e=l.siblings[b],e.type.qa().V[c]=e;c++}else if(p&&(m.V.push(l),r))for(b=0,f=l.siblings.length;b<f;b++)e=l.siblings[b],e.type.qa().V.push(e)}Ba(H,c);if(r)for(q=g.tc,a=0,d=q.length;a<d;a++)l=q[a].qa(),k?Ba(l.V,c):Ba(l.e,c);c=A;if(k&&!A)for(a=0,d=m.e.length;a<d;a++){l=m.e[a];if(F)for(b=
0,f=B.length;b<f;b++)e=B[b],e.fd&&(w[b]=e.get(a));b=C?y.apply(l.I[K],w):y.apply(l,w);if(Ua(b,G)){A=!0;break}}g.finish&&g.finish(c||p);return p?A:m.Nm()};$b=a;l.prototype.ab=function(){var a,b,c;a=0;for(b=this.T.length;a<b;a++)c=this.T[a],c.ab(),c.fd&&(this.yh=!0)};l.prototype.ao=function(){var a=this.b,b,c,f=this.T,d=this.Wa;b=0;for(c=f.length;b<c;++b)d[b]=f[b].get();return this.Ab.apply(a.Ud,d)};l.prototype.$n=function(){var a=this.type,b=this.ld,c=a.ie,f=this.yh,d=this.T,e=this.Wa,k=this.Ab,l=a.qa().vc(),
a=a.G,g=-1<b,m,p,r,q,t,K;if(f)for(p=0,q=d.length;p<q;++p)t=d[p],t.fd||(e[p]=t.get(0));else for(p=0,q=d.length;p<q;++p)e[p]=d[p].get(0);m=0;for(r=l.length;m<r;++m){K=l[m];if(f)for(p=0,q=d.length;p<q;++p)t=d[p],t.fd&&(e[p]=t.get(m));g?(p=0,a&&(p=K.type.Fg[c]),k.apply(K.I[b+p],e)):k.apply(K,e)}return!1};ac=l;var C=[],F=-1;c.prototype.ab=function(){var a,b;if(11===this.type)this.Hf=this.b.Yp(this.dj,this.Jc.parent);else if(13===this.type)for(a=0,b=this.mg.length;a<b;a++)this.mg[a].ab();this.Fd&&this.Fd.ab()};
c.prototype.Nw=function(a){this.fd||!a||a.Na.ml||(this.fd=!0)};c.prototype.Xr=function(){this.fd=!0};c.prototype.fw=function(a){this.Be=a||0;a=r();this.Fd.get(a);F--;return a.data};c.prototype.gw=function(a){this.Be=a||0;a=r();this.Fd.get(a);F--;return la(a.data)?a.data:""};c.prototype.mw=function(){return this.object};c.prototype.dw=function(){return this.zp};c.prototype.kw=function(a){this.Be=a||0;a=r();this.Fd.get(a);F--;return a.ub()?this.b.le(a.data):this.b.Th(a.data)};c.prototype.lw=function(){return this.fb};
c.prototype.jw=function(){return this.key};c.prototype.iw=function(){return this.index};c.prototype.hw=function(a){a=a||0;var b=this.ad.type,c=null,c=b.qa(),f=c.vc();if(f.length)c=f[a%f.length].type;else if(c.V.length)c=c.V[a%c.V.length].type;else if(b.e.length)c=b.e[a%b.e.length].type;else return 0;return this.index+c.Oj[b.ie]};c.prototype.ew=function(){return this.Hf};c.prototype.cw=function(){return this.Pp};c.prototype.ow=function(){var a,b;a=0;for(b=this.mg.length;a<b;a++)this.cj[a]=this.mg[a].get();
return this.cj};bc=c;d.prototype.ab=function(){this.Oa=b(this.Oa)};d.prototype.gl=function(a){var b=this.b.Xp();this.parent&&!this.ji&&b?(this.Zf>=b.length&&(b.length=this.Zf+1),b[this.Zf]=a):this.data=a};d.prototype.cq=function(){var a=this.b.Xp();return!this.parent||this.ji||!a||this.hk?this.data:this.Zf>=a.length||"undefined"===typeof a[this.Zf]?this.Tm:a[this.Zf]};d.prototype.ib=function(){!this.parent||this.ji||this.hk||this.gl(this.Tm)};Wb=d;t.prototype.toString=function(){return"include:"+
this.$h.toString()};t.prototype.ab=function(){this.$h=this.b.rm[this.vw];this.sheet.hq.add(this);this.Oa=b(this.Oa);for(var a=this.parent;a;)a.group&&a.yj.push(this),a=a.parent;this.Ds()};t.prototype.ib=function(){this.parent&&this.b.Ki(this.b.q);this.$h.Om||this.$h.ib(!0);this.parent&&this.b.fg(this.b.q)};t.prototype.Ds=function(){for(var a=this.parent;a;){if(a.group&&!a.Xh){this.Ib=!1;return}a=a.parent}this.Ib=!0};fc=t;k.prototype.reset=function(a){this.Lc=a;this.Uc=this.sb=0;x(this.ns);this.pm=
this.Tf=!1};Vb=k})();
(function(){function g(b,a){this.ad=b;this.b=b.b;this.type=a[0];this.get=[this.vv,this.rv,this.Ev,this.Hv,this.gv,this.Fv,this.zv,this.ov,this.yv,this.Dv,this.hv,this.Cv,this.pv,this.Av,this.wv,this.xv,this.sv,this.tv,this.nv,this.Gv,this.Bv,this.uv,this.mv,this.qv][this.type];var e=null;this.ve=this.T=this.Wa=this.Ab=this.ul=this.second=this.first=this.value=null;this.ld=-1;this.od=null;this.Is=-1;this.Hf=this.dj=null;this.lh=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new dc(b,a[1]);break;case 18:this.first=new dc(b,a[1]);this.second=new dc(b,a[2]);this.ul=new dc(b,a[3]);break;case 19:this.Ab=this.b.Je(a[1]);this.Ab!==P.prototype.$a.random&&this.Ab!==P.prototype.$a.wp||this.ad.Xr();this.Wa=[];this.T=[];3===a.length?(e=a[2],this.Wa.length=e.length+1):this.Wa.length=1;break;case 20:this.ve=this.b.q[a[1]];this.ld=-1;this.Ab=this.b.Je(a[2]);this.lh=a[3];ic.Function&&this.Ab===ic.Function.prototype.$a.yy&&this.ad.Xr();a[4]?this.od=new dc(b,a[4]):this.od=null;this.Wa=
[];this.T=[];6===a.length?(e=a[5],this.Wa.length=e.length+1):this.Wa.length=1;break;case 21:this.ve=this.b.q[a[1]];this.lh=a[2];a[3]?this.od=new dc(b,a[3]):this.od=null;this.Is=a[4];break;case 22:this.ve=this.b.q[a[1]];this.ve.Wj(a[2]);this.ld=this.ve.Bm(a[2]);this.Ab=this.b.Je(a[3]);this.lh=a[4];a[5]?this.od=new dc(b,a[5]):this.od=null;this.Wa=[];this.T=[];7===a.length?(e=a[6],this.Wa.length=e.length+1):this.Wa.length=1;break;case 23:this.dj=a[1],this.Hf=null}this.ad.Nw(this.ve);4<=this.type&&17>=
this.type&&(this.first=new dc(b,a[1]),this.second=new dc(b,a[2]));if(e){var g,c;g=0;for(c=e.length;g<c;g++)this.T.push(new dc(b,e[g]))}}function e(){++q;m.length===q&&m.push(new cc);return m[q]}function b(b,a,e){var g,c;g=0;for(c=b.length;g<c;++g)b[g].get(e),a[g+1]=e.data}function p(b,a){this.type=b||gc.wg;this.data=a||0;this.bg=null;this.type==gc.wg&&(this.data=Math.floor(this.data))}g.prototype.ab=function(){23===this.type&&(this.Hf=this.ad.b.Yp(this.dj,this.ad.Jc.parent));this.first&&this.first.ab();
this.second&&this.second.ab();this.ul&&this.ul.ab();this.od&&this.od.ab();if(this.T){var b,a;b=0;for(a=this.T.length;b<a;b++)this.T[b].ab()}};var m=[],q=-1;g.prototype.Gv=function(f){var a=this.T,l=this.Wa;l[0]=f;f=e();b(a,l,f);--q;this.Ab.apply(this.b.Ud,l)};g.prototype.Bv=function(f){var a=this.ve,l=this.Wa,g=this.T,c=this.od,d=this.Ab,m=this.ad.Be,k=a.qa(),p=k.vc();if(!p.length)if(k.V.length)p=k.V;else{this.lh?f.oc(""):f.Da(0);return}l[0]=f;f.bg=a;f=e();b(g,l,f);c&&(c.get(f),f.ub()&&(m=f.data,
p=a.e));--q;a=p.length;if(m>=a||m<=-a)m%=a;0>m&&(m+=a);d.apply(p[m],l)};g.prototype.mv=function(f){var a=this.ve,l=this.Wa,g=this.T,c=this.od,d=this.ld,m=this.Ab,k=this.ad.Be,p=a.qa(),C=p.vc();if(!C.length)if(p.V.length)C=p.V;else{this.lh?f.oc(""):f.Da(0);return}l[0]=f;f.bg=a;f=e();b(g,l,f);c&&(c.get(f),f.ub()&&(k=f.data,C=a.e));--q;g=C.length;if(k>=g||k<=-g)k%=g;0>k&&(k+=g);k=C[k];C=0;a.G&&(C=k.type.Fg[a.ie]);m.apply(k.I[d+C],l)};g.prototype.uv=function(b){var a=this.od,l=this.ve,g=this.Is,c=this.ad.Be,
d=l.qa(),m=d.vc();if(!m.length)if(d.V.length)m=d.V;else{this.lh?b.oc(""):b.Da(0);return}if(a){d=e();a.get(d);if(d.ub()){c=d.data;m=l.e;0!==m.length&&(c%=m.length,0>c&&(c+=m.length));c=l.Gm(c);l=c.mb[g];la(l)?b.oc(l):b.u(l);--q;return}--q}a=m.length;if(c>=a||c<=-a)c%=a;0>c&&(c+=a);c=m[c];m=0;l.G&&(m=c.type.Oj[l.ie]);l=c.mb[g+m];la(l)?b.oc(l):b.u(l)};g.prototype.vv=function(b){b.type=gc.wg;b.data=this.value};g.prototype.rv=function(b){b.type=gc.vg;b.data=this.value};g.prototype.Ev=function(b){b.type=
gc.String;b.data=this.value};g.prototype.Hv=function(b){this.first.get(b);b.ub()&&(b.data=-b.data)};g.prototype.gv=function(b){this.first.get(b);var a=e();this.second.get(a);b.ub()&&a.ub()&&(b.data+=a.data,a.Mg()&&b.Xg());--q};g.prototype.Fv=function(b){this.first.get(b);var a=e();this.second.get(a);b.ub()&&a.ub()&&(b.data-=a.data,a.Mg()&&b.Xg());--q};g.prototype.zv=function(b){this.first.get(b);var a=e();this.second.get(a);b.ub()&&a.ub()&&(b.data*=a.data,a.Mg()&&b.Xg());--q};g.prototype.ov=function(b){this.first.get(b);
var a=e();this.second.get(a);b.ub()&&a.ub()&&(b.data/=a.data,b.Xg());--q};g.prototype.yv=function(b){this.first.get(b);var a=e();this.second.get(a);b.ub()&&a.ub()&&(b.data%=a.data,a.Mg()&&b.Xg());--q};g.prototype.Dv=function(b){this.first.get(b);var a=e();this.second.get(a);b.ub()&&a.ub()&&(b.data=Math.pow(b.data,a.data),a.Mg()&&b.Xg());--q};g.prototype.hv=function(b){this.first.get(b);var a=e();this.second.get(a);a.Pg()||b.Pg()?this.jv(b,a):this.iv(b,a);--q};g.prototype.jv=function(b,a){b.Pg()&&
a.Pg()?this.lv(b,a):this.kv(b,a)};g.prototype.lv=function(b,a){b.data+=a.data};g.prototype.kv=function(b,a){b.Pg()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.oc(b.data.toString()+a.data)};g.prototype.iv=function(b,a){b.Da(b.data&&a.data?1:0)};g.prototype.Cv=function(b){this.first.get(b);var a=e();this.second.get(a);b.ub()&&a.ub()&&(b.data||a.data?b.Da(1):b.Da(0));--q};g.prototype.nv=function(b){this.first.get(b);b.data?this.second.get(b):this.ul.get(b)};g.prototype.pv=function(b){this.first.get(b);
var a=e();this.second.get(a);b.Da(b.data===a.data?1:0);--q};g.prototype.Av=function(b){this.first.get(b);var a=e();this.second.get(a);b.Da(b.data!==a.data?1:0);--q};g.prototype.wv=function(b){this.first.get(b);var a=e();this.second.get(a);b.Da(b.data<a.data?1:0);--q};g.prototype.xv=function(b){this.first.get(b);var a=e();this.second.get(a);b.Da(b.data<=a.data?1:0);--q};g.prototype.sv=function(b){this.first.get(b);var a=e();this.second.get(a);b.Da(b.data>a.data?1:0);--q};g.prototype.tv=function(b){this.first.get(b);
var a=e();this.second.get(a);b.Da(b.data>=a.data?1:0);--q};g.prototype.qv=function(b){var a=this.Hf.cq();ka(a)?b.u(a):b.oc(a)};dc=g;p.prototype.Mg=function(){return this.type===gc.vg};p.prototype.ub=function(){return this.type===gc.wg||this.type===gc.vg};p.prototype.Pg=function(){return this.type===gc.String};p.prototype.Xg=function(){this.Mg()||(this.Pg()&&(this.data=parseFloat(this.data)),this.type=gc.vg)};p.prototype.Da=function(b){this.type=gc.wg;this.data=Math.floor(b)};p.prototype.u=function(b){this.type=
gc.vg;this.data=b};p.prototype.oc=function(b){this.type=gc.String;this.data=b};p.prototype.Ux=function(b){ka(b)?(this.type=gc.vg,this.data=b):la(b)?(this.type=gc.String,this.data=b.toString()):(this.type=gc.wg,this.data=0)};cc=p;gc={wg:0,vg:1,String:2}})();function P(g){this.b=g;this.Ic=[]}
P.prototype.Gb=function(){var g={},e,b,p,m,q,f,a,l;g.waits=[];var r=g.waits,c;e=0;for(b=this.Ic.length;e<b;e++){f=this.Ic[e];c={t:f.time,st:f.Wx,s:f.ds,ev:f.Lh.U,sm:[],sols:{}};f.Lh.gd[f.Uc]&&(c.act=f.Lh.gd[f.Uc].U);p=0;for(m=f.Oa.length;p<m;p++)c.sm.push(f.Oa[p].U);for(q in f.Hc)if(f.Hc.hasOwnProperty(q)){a=this.b.q[parseInt(q,10)];l={sa:f.Hc[q].Qr,insts:[]};p=0;for(m=f.Hc[q].Mf.length;p<m;p++)l.insts.push(f.Hc[q].Mf[p].uid);c.sols[a.U.toString()]=l}r.push(c)}return g};
P.prototype.cc=function(g){g=g.waits;var e,b,p,m,q,f,a,l,r,c,d;x(this.Ic);e=0;for(b=g.length;e<b;e++)if(f=g[e],l=this.b.op[f.ev.toString()]){r=-1;p=0;for(m=l.gd.length;p<m;p++)if(l.gd[p].U===f.act){r=p;break}if(-1!==r){a={Hc:{},Oa:[],Fp:!1};a.time=f.t;a.Wx=f.st||"";a.ds=!!f.s;a.Lh=l;a.Uc=r;p=0;for(m=f.sm.length;p<m;p++)(l=this.b.Hg(f.sm[p]))&&a.Oa.push(l);for(q in f.sols)if(f.sols.hasOwnProperty(q)&&(l=this.b.Hg(parseInt(q,10)))){r=f.sols[q];c={Qr:r.sa,Mf:[]};p=0;for(m=r.insts.length;p<m;p++)(d=this.b.Uh(r.insts[p]))&&
c.Mf.push(d);a.Hc[l.index.toString()]=c}this.Ic.push(a)}}};
(function(){function g(){}function e(){}function b(){}var p=P.prototype;g.prototype.Ws=function(){return!0};g.prototype.Oo=function(){return!0};g.prototype.zt=function(){return!0};g.prototype.ft=function(b){return b?b.visible:!1};g.prototype.Us=function(b,a,e){return hc(b.cq(),a,e)};g.prototype.Lo=function(){var b=this.b.Sb();return b.pm?!1:!b.Tf};g.prototype.Po=function(){return!0};g.prototype.nt=function(){return!0};g.prototype.Ol=function(){return!0};g.prototype.Vo=function(){return!0};g.prototype.At=
function(){return!0};g.prototype.hj=function(){return!0};g.prototype.Ns=function(b,a,e){return Oa(E(b),E(e))<=E(a)};g.prototype.bt=function(b,a){return Qa(E(b),E(a))};g.prototype.$s=function(b,a,e){b=Ma(b);a=Ma(a);e=Ma(e);return Qa(e,a)?Qa(b,a)&&!Qa(b,e):!(!Qa(b,a)&&Qa(b,e))};p.i=new g;e.prototype.Ys=function(b){this.b.Rf||this.b.$d||(this.b.$d=b)};e.prototype.it=function(b){if(!this.b.Rf&&!this.b.$d){var a=this.b.Ac.indexOf(this.b.aa);if(!b||0!==a)if(b||a!==this.b.Ac.length-1)this.b.$d=this.b.Ac[a+
(b?-1:1)]}};e.prototype.St=function(b,a){b&&b.visible!==a&&(b.visible=a,this.b.ta=!0)};e.prototype.Vt=function(b,a){0===b.Js?ka(a)?b.gl(a):b.gl(parseFloat(a)):1===b.Js&&b.gl(a.toString())};var m=[],q=[];e.prototype.Pt=function(){if(!this.b.Rf&&!this.b.$d&&this.b.aa){this.b.$d=this.b.aa;var b,a,e;b=0;for(a=this.b.Me.length;b<a;b++)e=this.b.Me[b],e.Vr(e.bk)}};p.M=new e;b.prototype["int"]=function(b,a){la(a)?(b.Da(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.Da(a)};b.prototype["float"]=function(b,a){la(a)?
(b.u(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.u(a)};b.prototype.random=function(b,a,e){void 0===e?b.u(Math.random()*a):b.u(Math.random()*(e-a)+a)};b.prototype.sqrt=function(b,a){b.u(Math.sqrt(a))};b.prototype.abs=function(b,a){b.u(Math.abs(a))};b.prototype.round=function(b,a){b.Da(Math.round(a))};b.prototype.floor=function(b,a){b.Da(Math.floor(a))};b.prototype.ceil=function(b,a){b.Da(Math.ceil(a))};b.prototype.sin=function(b,a){b.u(Math.sin(E(a)))};b.prototype.cos=function(b,a){b.u(Math.cos(E(a)))};
b.prototype.tan=function(b,a){b.u(Math.tan(E(a)))};b.prototype.asin=function(b,a){b.u(Ja(Math.asin(a)))};b.prototype.acos=function(b,a){b.u(Ja(Math.acos(a)))};b.prototype.atan=function(b,a){b.u(Ja(Math.atan(a)))};b.prototype.exp=function(b,a){b.u(Math.exp(a))};b.prototype.log10=function(b,a){b.u(Math.log(a)/Math.LN10)};b.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var e,g,c;e=2;for(g=arguments.length;e<g;e++)c=arguments[e],"number"===typeof c&&a<c&&(a=c);b.u(a)};b.prototype.min=
function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var e,g,c;e=2;for(g=arguments.length;e<g;e++)c=arguments[e],"number"===typeof c&&a>c&&(a=c);b.u(a)};b.prototype.Ue=function(b){b.u(this.b.Ue)};b.prototype.sg=function(b){b.u(this.b.sg)};b.prototype.time=function(b){b.u(this.b.Bb.fa)};b.prototype.Vd=function(b){b.Da(this.b.Vd)};b.prototype.Ak=function(b){b.Da(this.b.Ak)};b.prototype.ym=function(b){b.Da(this.b.ym)};b.prototype.g=function(b,a,e,g,c){b.u(Ja(Na(a,e,g,c)))};b.prototype.left=function(b,
a,e){b.oc(la(a)?a.substr(0,e):"")};b.prototype.right=function(b,a,e){b.oc(la(a)?a.substr(a.length-e):"")};b.prototype.replace=function(b,a,e,g){la(a)&&la(e)&&la(g)?b.oc(a.replace(new RegExp(eb(e),"gi"),g)):b.oc(la(a)?a:"")};b.prototype.trim=function(b,a){b.oc(la(a)?a.trim():"")};b.prototype.wp=function(b){var a=ta(Math.random()*(arguments.length-1));b.Ux(arguments[a+1])};b.prototype.gm=function(b){b.u(this.b.gm/1E3)};b.prototype.Vg=function(b){b.u(this.b.Vg)};p.$a=new b;p.Hx=function(){var b,a,e,
g,c,d,p=this.b.Sb();b=0;for(e=this.Ic.length;b<e;b++){g=this.Ic[b];if(-1===g.time){if(!g.ds)continue}else if(g.time>this.b.Bb.fa)continue;p.Lc=g.Lh;p.Uc=g.Uc;p.sb=0;for(a in g.Hc)g.Hc.hasOwnProperty(a)&&(c=this.b.q[parseInt(a,10)].qa(),d=g.Hc[a],c.Ba=d.Qr,Ca(c.e,d.Mf),c=d,x(c.Mf),q.push(c));g.Lh.Ex();this.b.em(g.Oa);g.Fp=!0}a=b=0;for(e=this.Ic.length;b<e;b++)g=this.Ic[b],this.Ic[a]=g,g.Fp?(Xa(g.Hc),x(g.Oa),m.push(g)):a++;Ba(this.Ic,a)}})();
(function(){ob=function(e,b){var g=e[1],m=e[3],q=e[4],f=e[5],a=e[6],l=e[7],r=e[8];b.i||(b.i={});b.M||(b.M={});b.$a||(b.$a={});var c=b.i,d=b.M,t=b.$a;m&&(c.Dy=function(a,b){return hc(this.x,a,b)},c.Ey=function(a,b){return hc(this.y,a,b)},c.My=function(){var a=this.j;this.R();var b=this.P;return!(b.right<a.ua||b.bottom<a.wa||b.left>a.ya||b.top>a.xa)},c.Ny=function(){this.R();var a=this.P,b=this.b.aa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},c.$y=function(a,b,c){var d=this.qa(),h=
d.vc();if(!h.length)return!1;var f=h[0],e=f,g=Sa(f.x,f.y,b,c),l,m,p;l=1;for(m=h.length;l<m;l++)if(f=h[l],p=Sa(f.x,f.y,b,c),0===a&&p<g||1===a&&p>g)g=p,e=f;d.Gi(e);return!0},d.Dz=function(a){this.x!==a&&(this.x=a,this.H())},d.Ez=function(a){this.y!==a&&(this.y=a,this.H())},d.wz=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.H()},d.xz=function(a,b){var c=a.Yv(this);if(c){var d;c.Fm?(d=c.Fm(b,!0),c=c.Fm(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.H()}},d.Ty=function(a){0!==
a&&(this.x+=Math.cos(this.g)*a,this.y+=Math.sin(this.g)*a,this.H())},d.Sy=function(a,b){0!==b&&(this.x+=Math.cos(E(a))*b,this.y+=Math.sin(E(a))*b,this.H())},t.Rl=function(a){a.u(this.x)},t.Sl=function(a){a.u(this.y)},t.Ue=function(a){a.u(this.b.Sh(this))});q&&(c.Cy=function(a,b){return hc(this.width,a,b)},c.zy=function(a,b){return hc(this.height,a,b)},d.Xt=function(a){this.width!==a&&(this.width=a,this.H())},d.rz=function(a){this.height!==a&&(this.height=a,this.H())},d.yz=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.H()},t.Mz=function(a){a.u(this.width)},t.Hy=function(a){a.u(this.height)},t.vy=function(a){this.R();a.u(this.P.left)},t.xy=function(a){this.R();a.u(this.P.top)},t.wy=function(a){this.R();a.u(this.P.right)},t.uy=function(a){this.R();a.u(this.P.bottom)});f&&(c.Ns=function(a,b){return Oa(this.g,E(b))<=E(a)},c.bt=function(a){return Qa(this.g,E(a))},c.$s=function(a,b){var c=Ma(a),d=Ma(b),h=O(this.g);return Qa(d,c)?Qa(h,c)&&!Qa(h,d):!(!Qa(h,c)&&Qa(h,d))},
d.kz=function(a){a=E(Ka(a));isNaN(a)||this.g===a||(this.g=a,this.H())},d.gz=function(a){0===a||isNaN(a)||(this.g+=E(a),this.g=O(this.g),this.H())},d.hz=function(a){0===a||isNaN(a)||(this.g-=E(a),this.g=O(this.g),this.H())},d.iz=function(a,b){var c=Pa(this.g,E(b),E(a));isNaN(c)||this.g===c||(this.g=c,this.H())},d.jz=function(a,b,c){a=Pa(this.g,Math.atan2(c-this.y,b-this.x),E(a));isNaN(a)||this.g===a||(this.g=a,this.H())},d.Az=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||this.g===c||
(this.g=c,this.H())},t.ty=function(a){a.u(La(this.g))});g||(c.Ts=function(a,b,c){return hc(this.mb[a],b,c)},c.Ky=function(a){return this.mb[a]},c.az=function(a,b){var c=this.qa(),d=c.vc();if(!d.length)return!1;var h=d[0],f=h,e=h.mb[b],g,l,m;g=1;for(l=d.length;g<l;g++)if(h=d[g],m=h.mb[b],0===a&&m<e||1===a&&m>e)e=m,f=h;c.Gi(f);return!0},c.Zy=function(a){var b,c,d,h,f;if(this.b.Wp().Xm){f=this.qa();if(f.Ba)for(f.Ba=!1,x(f.e),x(f.V),d=this.e,b=0,c=d.length;b<c;b++)h=d[b],h.uid===a?f.V.push(h):f.e.push(h);
else{d=b=0;for(c=f.e.length;b<c;b++)h=f.e[b],f.e[d]=h,h.uid===a?f.V.push(h):d++;Ba(f.e,d)}this.Vc();return!!f.e.length}h=this.b.Uh(a);if(!h)return!1;f=this.qa();if(!f.Ba&&-1===f.e.indexOf(h))return!1;if(this.G)for(a=h.type.Ha,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.Gi(h),this.Vc(),!0}else if(h.type===this)return f.Gi(h),this.Vc(),!0;return!1},c.No=function(){return!0},c.pt=function(){return!0},d.Rt=function(a,b){var c=this.mb;ka(c[a])?c[a]=ka(b)?b:parseFloat(b):la(c[a])&&(c[a]=la(b)?b:b.toString())},
d.qy=function(a,b){var c=this.mb;ka(c[a])?c[a]=ka(b)?c[a]+b:c[a]+parseFloat(b):la(c[a])&&(c[a]=la(b)?c[a]+b:c[a]+b.toString())},d.$t=function(a,b){var c=this.mb;ka(c[a])&&(c[a]=ka(b)?c[a]-b:c[a]-parseFloat(b))},d.lz=function(a,b){this.mb[a]=b?1:0},d.Iz=function(a){this.mb[a]=1-this.mb[a]},d.Gy=function(){this.b.sf(this)},d.ht||(d.ht=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.qk(this,b,!0);this.hd&&this.hd();if(this.I)for(a=0,b=this.I.length;a<b;++a)c=this.I[a],c.hd&&c.hd()}),t.Fy=
function(a){var b=a.bg.e.length,c,d,h;c=0;for(d=this.b.nd.length;c<d;c++)h=this.b.nd[c],a.bg.G?0<=h.type.Ha.indexOf(a.bg)&&b++:h.type===a.bg&&b++;a.Da(b)},t.cz=function(a){a.Da(a.bg.qa().vc().length)},t.Kz=function(a){a.Da(this.uid)},t.Iy=function(a){a.Da(this.Wh())},t.Os||(t.Os=function(a){a.oc(JSON.stringify(this.b.bo(this,!0)))}));a&&(c.Py=function(){return this.visible},d.Wt=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ta=!0)},c.Ay=function(a,b){return hc(kb(100*this.opacity),a,b)},
d.uz=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ta=!0)},t.Opacity=function(a){a.u(kb(100*this.opacity))});l&&(c.Ly=function(a){return a?this.j===a:!1},c.bz=function(a){var b=this.qa(),c=b.vc();if(!c.length)return!1;var d=c[0],h=d,f,e;f=1;for(e=c.length;f<e;f++)if(d=c[f],0===a){if(d.j.index>h.j.index||d.j.index===h.j.index&&d.Hd()>h.Hd())h=d}else if(d.j.index<h.j.index||d.j.index===h.j.index&&d.Hd()<h.Hd())h=d;b.Gi(h);return!0},d.Wy=function(){var a=this.j,b=a.e;
b.length&&b[b.length-1]===this||(a.kh(this,!1),a.Ah(this,!1),this.b.ta=!0)},d.Uy=function(){var a=this.j,b=a.e;b.length&&b[0]===this||(a.kh(this,!1),a.mx(this),this.b.ta=!0)},d.Vy=function(a){a&&a!=this.j&&(this.j.kh(this,!0),this.j=a,a.Ah(this,!0),this.b.ta=!0)},d.Oz=function(a,b){var c=0===a;if(b){var d=b.Tv(this);d&&d.uid!==this.uid&&(this.j.index!==d.j.index&&(this.j.kh(this,!0),this.j=d.j,d.j.Ah(this,!0)),this.j.Ow(this,d,c),this.b.ta=!0)}},t.Ry=function(a){a.Da(this.j.jr)},t.Qy=function(a){a.oc(this.j.name)},
t.Nz=function(a){a.Da(this.Hd())});r&&(d.oz=function(a,b){if(this.b.p){var c=this.type.Em(b);if(!(0>c)){var d=1===a;this.Ke[c]!==d&&(this.Ke[c]=d,this.yd(),this.b.ta=!0)}}},d.pz=function(a,b,c){if(this.b.p){var d=this.type.Em(a);0>d||(a=this.type.N[d],d=this.Ua[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.p.bw(a.jb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ib&&(this.b.ta=!0))))}})};Nb=function(){this.$l=this.Wl=!0;this.type.lj=!0;this.b.ta=!0;var e,b,g=this.Xl;e=0;for(b=g.length;e<b;++e)g[e](this);this.j.Tc&&
this.R()};Ob=function(e){e&&this.Xl.push(e)};Qb=function(){if(this.Wl){var e=this.P,b=this.Mb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.hc*this.width,-this.ic*this.height);this.g?(e.offset(-this.x,-this.y),b.Zr(e,this.g),b.offset(this.x,this.y),b.pp(e)):b.lg(e);e.normalize();this.Wl=!1;this.iy()}};var g=new wa(0,0,0,0);Rb=function(){if(this.j.Tc){var e=this.j.Fb,b=this.P;g.set(e.fc(b.left),e.gc(b.top),e.fc(b.right),e.gc(b.bottom));this.mc.Kh(g)||(this.mc.right<this.mc.left?
e.update(this,null,g):e.update(this,this.mc,g),this.mc.Eh(g),this.j.wd=!0)}};Sb=function(){if(this.$l&&this.Bd){this.R();var e=this.type.xj,b=this.P;g.set(e.fc(b.left),e.gc(b.top),e.fc(b.right),e.gc(b.bottom));this.Re.Kh(g)||(this.Re.right<this.Re.left?e.update(this,null,g):e.update(this,this.Re,g),this.Re.Eh(g),this.$l=!1)}};Pb=function(e,b){return this.P.Pb(e,b)&&this.Mb.Pb(e,b)?this.rg?this.hA(e,b):this.Z&&!this.Z.Qf()?(this.Z.zf(this.width,this.height,this.g),this.Z.Pb(e-this.x,b-this.y)):!0:
!1};Fb=function(){this.type.Bl();return this.Lf};Tb=function(){this.j.Fo();return this.zd};Ub=function(){x(this.ma);var e,b,g,m=!0;e=0;for(b=this.Ke.length;e<b;e++)this.Ke[e]&&(g=this.type.N[e],this.ma.push(g),g.sd||(m=!1));this.Hs=!!this.ma.length;this.Ae=m};Gb=function(){return"Inst"+this.Kr};rb=function(e){if(e&&e.Pc&&e.type!=this){var b,g,m;b=0;for(g=e.siblings.length;b<g;b++)if(m=e.siblings[b],m.type==this)return m}e=this.qa().vc();return e.length?e[0]:null};sb=function(e){var b=this.qa().vc();
return b.length?b[e.Wh()%b.length]:null};qb=function(){if(this.ph&&!this.G){var e,b;e=0;for(b=this.e.length;e<b;e++)this.e[e].Lf=e;var g=e,m=this.b.nd;e=0;for(b=m.length;e<b;++e)m[e].type===this&&(m[e].Lf=g++);this.ph=!1}};Db=function(e){if(e<this.e.length)return this.e[e];e-=this.e.length;var b=this.b.nd,g,m;g=0;for(m=b.length;g<m;++g)if(b[g].type===this){if(0===e)return b[g];--e}return null};tb=function(){return this.Ce[this.Cd]};wb=function(){this.Cd++;this.Cd===this.Ce.length?this.Ce.push(new pb(this)):
(this.Ce[this.Cd].Ba=!0,x(this.Ce[this.Cd].V))};xb=function(){this.Cd++;this.Cd===this.Ce.length&&this.Ce.push(new pb(this));var e=this.Ce[this.Cd],b=this.Ce[this.Cd-1];b.Ba?(e.Ba=!0,x(e.V)):(e.Ba=!1,Ca(e.e,b.e),Ca(e.V,b.V))};yb=function(){this.Cd--};zb=function(e){var b,g,m,q,f,a=0;if(!this.G)for(b=0,g=this.Ha.length;b<g;b++)for(f=this.Ha[b],m=0,q=f.Ra.length;m<q;m++){if(e===f.Ra[m].name)return this.ca.lastBehIndex=a,f.Ra[m];a++}b=0;for(g=this.Ra.length;b<g;b++){if(e===this.Ra[b].name)return this.ca.lastBehIndex=
a,this.Ra[b];a++}return null};Ab=function(e){return this.Wj(e)?this.ca.lastBehIndex:-1};Bb=function(e){var b,g;b=0;for(g=this.N.length;b<g;b++)if(this.N[b].name===e)return b;return-1};Cb=function(){if(this.Pc&&!this.G){var e,b,g,m,q,f,a;this.Bl();f=this.qa();var l=f.Ba,r=(e=this.b.Sb())&&e.Lc&&e.Lc.$c;e=0;for(b=this.tc.length;e<b;e++)if(q=this.tc[e],q!==this&&(q.Bl(),a=q.qa(),a.Ba=l,!l)){x(a.e);g=0;for(m=f.e.length;g<m;++g)a.e[g]=q.Gm(f.e[g].Lf);if(r)for(x(a.V),g=0,m=f.V.length;g<m;++g)a.V[g]=q.Gm(f.V[g].Lf)}}};
Eb=function(){return"Type"+this.U};hc=function(e,b,g){if("undefined"===typeof e||"undefined"===typeof g)return!1;switch(b){case 0:return e===g;case 1:return e!==g;case 2:return e<g;case 3:return e<=g;case 4:return e>g;case 5:return e>=g;default:return!1}}})();var qc={};function uc(g){this.b=g}
(function(){function g(a){-1===ub.indexOf(a)&&ub.push(a)}function e(a){var b=a.k,c;try{c=b.play()}catch(d){g(a);return}c?c.catch(function(){g(a)}):Mc&&!J.Vb&&g(a)}function b(){var a,b,c,d;Nc||Ib||!y||(p(),"running"===y.state&&(Nc=!0));var h=ub.slice(0);x(ub);if(!aa)for(a=0,b=h.length;a<b;++a)c=h[a],c.pc||c.zc||(d=c.k.play())&&d.catch(function(){g(c)})}function p(){"suspended"===y.state&&y.resume&&y.resume();if(y.createBuffer){var a=y.createBuffer(1,220,22050),b=y.createBufferSource();b.buffer=a;b.connect(y.destination);
l(b)}}function m(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function q(a){a=a.toLowerCase();return da.hasOwnProperty(a)&&da[a].length?da[a][0].Nc():y.destination}function f(){return y.createGain?y.createGain():y.createGainNode()}function a(a){return y.createDelay?y.createDelay(a):y.createDelayNode(a)}function l(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function r(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||0,b,c-b)}function c(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function d(a,b,c,d,h,e){this.type="filter";this.qd=[a,b,c,d,h,e];this.da=f();this.L=f();this.L.gain.value=e;this.J=f();this.J.gain.value=1-e;this.bb=y.createBiquadFilter();this.bb.type="number"===typeof this.bb.type?a:cd[a];this.bb.frequency.value=b;this.bb.detune&&(this.bb.detune.value=c);this.bb.Q.value=d;this.bb.gain.value=h;this.da.connect(this.bb);this.da.connect(this.J);this.bb.connect(this.L)}function t(b,c,d){this.type="delay";this.qd=[b,c,d];this.da=f();this.L=f();this.L.gain.value=d;this.J=
f();this.J.gain.value=1-d;this.yi=f();this.Xc=a(b);this.Xc.delayTime.value=b;this.Fj=f();this.Fj.gain.value=c;this.da.connect(this.yi);this.da.connect(this.J);this.yi.connect(this.L);this.yi.connect(this.Xc);this.Xc.connect(this.Fj);this.Fj.connect(this.yi)}function k(a,b,c,d){this.type="convolve";this.qd=[b,c,d];this.da=f();this.L=f();this.L.gain.value=c;this.J=f();this.J.gain.value=1-c;this.Af=y.createConvolver();a&&(this.Af.normalize=b,this.Af.buffer=a);this.da.connect(this.Af);this.da.connect(this.J);
this.Af.connect(this.L)}function K(b,c,d,h,e){this.type="flanger";this.qd=[b,c,d,h,e];this.da=f();this.J=f();this.J.gain.value=1-e/2;this.L=f();this.L.gain.value=e/2;this.Pj=f();this.Pj.gain.value=h;this.Xc=a(b+c);this.Xc.delayTime.value=b;this.xb=y.createOscillator();this.xb.frequency.value=d;this.Dc=f();this.Dc.gain.value=c;this.da.connect(this.Xc);this.da.connect(this.J);this.Xc.connect(this.L);this.Xc.connect(this.Pj);this.Pj.connect(this.Xc);this.xb.connect(this.Dc);this.Dc.connect(this.Xc.delayTime);
l(this.xb)}function C(a,b,c,d,h,e){this.type="phaser";this.qd=[a,b,c,d,h,e];this.da=f();this.J=f();this.J.gain.value=1-e/2;this.L=f();this.L.gain.value=e/2;this.bb=y.createBiquadFilter();this.bb.type="number"===typeof this.bb.type?7:"allpass";this.bb.frequency.value=a;this.bb.detune&&(this.bb.detune.value=b);this.bb.Q.value=c;this.xb=y.createOscillator();this.xb.frequency.value=h;this.Dc=f();this.Dc.gain.value=d;this.da.connect(this.bb);this.da.connect(this.J);this.bb.connect(this.L);this.xb.connect(this.Dc);
this.Dc.connect(this.bb.frequency);l(this.xb)}function F(a){this.type="gain";this.qd=[a];this.la=f();this.la.gain.value=a}function h(a,b){this.type="tremolo";this.qd=[a,b];this.la=f();this.la.gain.value=1-b/2;this.xb=y.createOscillator();this.xb.frequency.value=a;this.Dc=f();this.Dc.gain.value=b/2;this.xb.connect(this.Dc);this.Dc.connect(this.la.gain);l(this.xb)}function n(a,b){this.type="ringmod";this.qd=[a,b];this.da=f();this.L=f();this.L.gain.value=b;this.J=f();this.J.gain.value=1-b;this.Oi=f();
this.Oi.gain.value=0;this.xb=y.createOscillator();this.xb.frequency.value=a;this.xb.connect(this.Oi.gain);l(this.xb);this.da.connect(this.Oi);this.da.connect(this.J);this.Oi.connect(this.L)}function z(a,b,c,d,h){this.type="distortion";this.qd=[a,b,c,d,h];this.da=f();this.Qk=f();this.Pk=f();this.Ox(c,Math.pow(10,d/20));this.L=f();this.L.gain.value=h;this.J=f();this.J.gain.value=1-h;this.Hl=y.createWaveShaper();this.Dj=new Float32Array(65536);this.Ov(a,b);this.Hl.Dj=this.Dj;this.da.connect(this.Qk);
this.da.connect(this.J);this.Qk.connect(this.Hl);this.Hl.connect(this.Pk);this.Pk.connect(this.L)}function T(a,b,c,d,h){this.type="compressor";this.qd=[a,b,c,d,h];this.la=y.createDynamicsCompressor();try{this.la.threshold.value=a,this.la.knee.value=b,this.la.ratio.value=c,this.la.attack.value=d,this.la.release.value=h}catch(f){}}function D(a,b){this.type="analyser";this.qd=[a,b];this.la=y.createAnalyser();this.la.fftSize=a;this.la.smoothingTimeConstant=b;this.Mv=new Float32Array(this.la.frequencyBinCount);
this.bs=new Uint8Array(a);this.Fi=0}function Q(){this.ea=null;this.sk=0}function u(a,b){this.src=a;this.W=G;this.Kd=b;this.kj=!1;var c=this;this.Yg=this.gh=null;this.hh=[];this.al=0;this.Io=this.Nj=this.ls=this.Jk=!1;1===G&&b&&!vb&&(this.W=0,this.gh=f());this.Yd=this.ja=null;var d;switch(this.W){case 0:this.ja=new Audio;this.ja.crossOrigin="anonymous";this.ja.addEventListener("canplaythrough",function(){c.Io=!0});1===G&&y.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.ls=!0,this.ja.addEventListener("canplay",
function(){!c.Yg&&c.ja&&(c.Yg=y.createMediaElementSource(c.ja),c.Yg.connect(c.gh))}));this.ja.autoplay=!1;this.ja.cA="auto";this.ja.src=a;break;case 1:J.gk?J.Op(a,function(a){c.Yd=a;c.Ep()},function(){c.Nj=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.Yd=d.response;c.Ep()},d.onerror=function(){c.Nj=!0},d.send());break;case 2:this.ja=!0;break;case 3:this.ja=!0}}function v(a,b){var c=this;this.tag=b;this.pc=this.Gd=!0;this.src=a.src;this.buffer=a;this.W=
G;this.Kd=a.Kd;this.playbackRate=1;this.Kg=!0;this.zc=this.Rc=!1;this.nc=0;this.ii=this.Ng=this.Md=!1;this.volume=1;this.Ln=function(a){if(!c.zc&&!c.Rc){var b=this;b||(b=a.target);b===c.jj&&(c.Kg=!0,c.pc=!0,B=c.tag,J.trigger(uc.prototype.i.gj,ca))}};this.jj=null;this.Lg=1===V&&!this.Kd||2===V;this.$g=1;this.startTime=this.Lg?J.Bb.fa:J.He.fa;this.hb=this.kb=null;this.Pd=!1;this.Db=null;this.Ar=this.yr=this.xr=this.ur=this.Cr=this.Br=0;this.k=null;var d=!1;1!==this.W||0!==this.buffer.W||this.buffer.ls||
(this.W=0);switch(this.W){case 0:this.Kd?(this.k=a.ja,d=!a.kj,a.kj=!0):(this.k=new Audio,this.k.crossOrigin="anonymous",this.k.autoplay=!1,this.k.src=a.ja.src,d=!0);d&&this.k.addEventListener("ended",function(){B=c.tag;c.pc=!0;J.trigger(uc.prototype.i.gj,ca)});break;case 1:this.kb=f();this.kb.connect(q(b));1===this.buffer.W?a.ja&&(this.k=y.createBufferSource(),this.k.buffer=a.ja,this.k.connect(this.kb)):(this.k=this.buffer.ja,this.buffer.gh.connect(this.kb),this.buffer.kj||(this.buffer.kj=!0,this.buffer.ja.addEventListener("ended",
function(){B=c.tag;c.pc=!0;J.trigger(uc.prototype.i.gj,ca)})));break;case 2:this.k=new window.Media(w+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Kg=!0,c.pc=!0,B=c.tag,J.trigger(uc.prototype.i.gj,ca))});break;case 3:this.k=!0}}function N(a,b){var c=a.Of()?1:0,d=b.Of()?1:0;return c===d?0:c<d?1:-1}function R(a,b){x(Ga);if(a.length){var c,d,h;c=0;for(d=A.length;c<d;c++)h=A[c],lb(a,h.tag)&&Ga.push(h);b&&Ga.sort(N)}else U&&!U.Kf()&&(x(Ga),Ga[0]=U)}function W(a,b){da.hasOwnProperty(a)?
da[a].push(b):da[a]=[b];var c,d,h,f,e=y.destination;if(da.hasOwnProperty(a)&&(h=da[a],h.length))for(e=h[0].Nc(),c=0,d=h.length;c<d;c++)f=h[c],c+1===d?f.Wc(y.destination):f.Wc(h[c+1].Nc());R(a);c=0;for(d=Ga.length;c<d;c++)Ga[c].xx(e);Ta&&Lb===a&&(Ta.disconnect(),Ta.connect(e))}function S(){}function I(){}function L(){}var M=uc.prototype;M.na=function(a){this.Na=a;this.b=a.b};M.na.prototype.K=function(){};var J=null,ca=null,B="",w="",G=0,y=null,H=[],A=[],U=null,pa=!1,V=0,aa=!1,ba=1,Fa=0,Wa=0,Ib=!1,
Jb=1,Kb=1,Lc=10,Oc=1E4,Pc=1,Ta=null,Lb="",Mc=!1,ub=[],vb=!1,Nc=!1;document.addEventListener("touchend",b,!0);document.addEventListener("click",b,!0);document.addEventListener("keydown",b,!0);var da={},cd="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");d.prototype.Wc=function(a){this.L.disconnect();this.L.connect(a);this.J.disconnect();this.J.connect(a)};d.prototype.remove=function(){this.da.disconnect();this.bb.disconnect();this.L.disconnect();this.J.disconnect()};
d.prototype.Nc=function(){return this.da};t.prototype.Wc=function(a){this.L.disconnect();this.L.connect(a);this.J.disconnect();this.J.connect(a)};t.prototype.remove=function(){this.da.disconnect();this.yi.disconnect();this.Xc.disconnect();this.Fj.disconnect();this.L.disconnect();this.J.disconnect()};t.prototype.Nc=function(){return this.da};k.prototype.Wc=function(a){this.L.disconnect();this.L.connect(a);this.J.disconnect();this.J.connect(a)};k.prototype.remove=function(){this.da.disconnect();this.Af.disconnect();
this.L.disconnect();this.J.disconnect()};k.prototype.Nc=function(){return this.da};K.prototype.Wc=function(a){this.J.disconnect();this.J.connect(a);this.L.disconnect();this.L.connect(a)};K.prototype.remove=function(){this.da.disconnect();this.Xc.disconnect();this.xb.disconnect();this.Dc.disconnect();this.J.disconnect();this.L.disconnect();this.Pj.disconnect()};K.prototype.Nc=function(){return this.da};C.prototype.Wc=function(a){this.J.disconnect();this.J.connect(a);this.L.disconnect();this.L.connect(a)};
C.prototype.remove=function(){this.da.disconnect();this.bb.disconnect();this.xb.disconnect();this.Dc.disconnect();this.J.disconnect();this.L.disconnect()};C.prototype.Nc=function(){return this.da};F.prototype.Wc=function(a){this.la.disconnect();this.la.connect(a)};F.prototype.remove=function(){this.la.disconnect()};F.prototype.Nc=function(){return this.la};h.prototype.Wc=function(a){this.la.disconnect();this.la.connect(a)};h.prototype.remove=function(){this.xb.disconnect();this.Dc.disconnect();this.la.disconnect()};
h.prototype.Nc=function(){return this.la};n.prototype.Wc=function(a){this.L.disconnect();this.L.connect(a);this.J.disconnect();this.J.connect(a)};n.prototype.remove=function(){this.xb.disconnect();this.Oi.disconnect();this.da.disconnect();this.L.disconnect();this.J.disconnect()};n.prototype.Nc=function(){return this.da};z.prototype.Ox=function(a,b){.01>a&&(a=.01);this.Qk.gain.value=a;this.Pk.gain.value=Math.pow(1/a,.6)*b};z.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};z.prototype.Ov=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),h=0,f=0;32768>f;++f)h=f/32768,h=this.shape(h,c,d),this.Dj[32768+f]=h,this.Dj[32768-f-1]=-h};z.prototype.Wc=function(a){this.L.disconnect();this.L.connect(a);this.J.disconnect();this.J.connect(a)};z.prototype.remove=function(){this.da.disconnect();this.Qk.disconnect();this.Hl.disconnect();this.Pk.disconnect();this.L.disconnect();this.J.disconnect()};z.prototype.Nc=function(){return this.da};
T.prototype.Wc=function(a){this.la.disconnect();this.la.connect(a)};T.prototype.remove=function(){this.la.disconnect()};T.prototype.Nc=function(){return this.la};D.prototype.Pa=function(){this.la.getFloatFrequencyData(this.Mv);this.la.getByteTimeDomainData(this.bs);for(var a=this.la.fftSize,b=0,c=this.Fi=0,d=0;b<a;b++)d=(this.bs[b]-128)/128,0>d&&(d=-d),this.Fi<d&&(this.Fi=d),c+=d*d;this.Fi=m(this.Fi);m(Math.sqrt(c/a))};D.prototype.Wc=function(a){this.la.disconnect();this.la.connect(a)};D.prototype.remove=
function(){this.la.disconnect()};D.prototype.Nc=function(){return this.la};Q.prototype.Pi=function(a){this.ea=a};Q.prototype.ak=function(){return!!this.ea};Q.prototype.Pa=function(){};u.prototype.yx=function(){var a,b,c,d;c=a=0;for(b=A.length;a<b;++a)d=A[a],A[c]=d,d.buffer===this?d.stop():++c;A.length=c;this.Yg&&(this.Yg.disconnect(),this.Yg=null);this.gh&&(this.gh.disconnect(),this.gh=null);this.Yd=this.ja=null};u.prototype.Ep=function(){if(!this.ja&&this.Yd){var a=this;if(y.decodeAudioData)y.decodeAudioData(this.Yd,
function(b){a.ja=b;a.Yd=null;var c,d,h;if(ja(a.Mk)||aa)ja(a.zj)||(c=a.zj.Af,c.normalize=a.ir,c.buffer=b);else if(a.hh.length){c=0;for(d=a.hh.length;c<d;c++){b=a.hh[c];h=new v(a,b.ts);h.jo(!0);if("undefined"!==typeof b.kr&&(b.ea=J.Uh(b.kr),!b.ea))continue;if(b.ea){var f=Ra(b.ea.x,b.ea.y,-b.ea.j.lb(),Fa,Wa,!0),e=Ra(b.ea.x,b.ea.y,-b.ea.j.lb(),Fa,Wa,!1);h.io(f,e,Ja(b.ea.g-b.ea.j.lb()),b.Pm,b.Bn,b.En);h.Pi(b.ea)}else h.io(b.x,b.y,b.za,b.Pm,b.Bn,b.En);h.play(a.xn,a.Ho,a.al);a.Jk&&h.pause();A.push(h)}x(a.hh)}else h=
new v(a,a.Mk||""),h.play(a.xn,a.Ho,a.al),a.Jk&&h.pause(),A.push(h)},function(){a.Nj=!0});else if(this.ja=y.createBuffer(this.Yd,!1),this.Yd=null,ja(this.Mk)||aa)ja(this.zj)||(b=this.zj.Af,b.normalize=this.ir,b.buffer=this.ja);else{var b=new v(this,this.Mk);b.play(this.xn,this.Ho,this.al);this.Jk&&b.pause();A.push(b)}}};u.prototype.rq=function(){switch(this.W){case 0:var a=4<=this.ja.readyState;a&&(this.Io=!0);return a||this.Io;case 1:return!!this.Yd||!!this.ja;case 2:return!0;case 3:return!0}return!1};
u.prototype.Cw=function(){switch(this.W){case 0:return this.rq();case 1:return!!this.ja;case 2:return!0;case 3:return!0}return!1};u.prototype.uw=function(){switch(this.W){case 0:return!!this.ja.error;case 1:return this.Nj}return!1};v.prototype.Kf=function(){switch(this.W){case 0:return this.k.ended;case 1:return 1===this.buffer.W?!this.Gd&&!this.pc&&this.k.loop||this.zc?!1:this.Kg:this.k.ended;case 2:return this.Kg;case 3:!0}return!0};v.prototype.su=function(){return this.Gd||this.pc?!0:this.Kf()};
v.prototype.jo=function(a){1===G&&(!this.Pd&&a?this.kb&&(this.hb||(this.hb=y.createPanner(),this.hb.panningModel="number"===typeof this.hb.panningModel?Jb:["equalpower","HRTF","soundfield"][Jb],this.hb.distanceModel="number"===typeof this.hb.distanceModel?Kb:["linear","inverse","exponential"][Kb],this.hb.refDistance=Lc,this.hb.maxDistance=Oc,this.hb.rolloffFactor=Pc),this.kb.disconnect(),this.kb.connect(this.hb),this.hb.connect(q(this.tag)),this.Pd=!0):this.Pd&&!a&&this.kb&&(this.hb.disconnect(),
this.kb.disconnect(),this.kb.connect(q(this.tag)),this.Pd=!1))};v.prototype.io=function(a,b,c,d,h,f){this.Pd&&1===G&&(this.hb.setPosition(a,b,0),this.hb.setOrientation(Math.cos(E(c)),Math.sin(E(c)),0),this.hb.coneInnerAngle=d,this.hb.coneOuterAngle=h,this.hb.coneOuterGain=f,this.Br=a,this.Cr=b,this.ur=c,this.xr=d,this.yr=h,this.Ar=f)};v.prototype.Pi=function(a){this.Pd&&1===G&&(this.Db||(this.Db=new Q),this.Db.Pi(a))};v.prototype.Pa=function(a){if(this.Pd&&1===G&&this.Db&&this.Db.ak()&&this.Of()){this.Db.Pa(a);
a=this.Db.ea;var b=Ra(a.x,a.y,-a.j.lb(),Fa,Wa,!0),c=Ra(a.x,a.y,-a.j.lb(),Fa,Wa,!1);this.hb.setPosition(b,c,0);b=0;"undefined"!==typeof this.Db.ea.g&&(b=a.g-a.j.lb(),this.hb.setOrientation(Math.cos(b),Math.sin(b),0))}};v.prototype.play=function(a,b,c,d){var h=this.k;this.Md=a;this.volume=b;c=c||0;d=d||0;switch(this.W){case 0:1!==h.playbackRate&&(h.playbackRate=1);h.volume!==b*ba&&(h.volume=b*ba);h.loop!==a&&(h.loop=a);h.muted&&(h.muted=!1);if(h.currentTime!==c)try{h.currentTime=c}catch(f){}e(this);
break;case 1:this.muted=!1;this.$g=1;if(1===this.buffer.W)this.kb.gain.value=b*ba,this.Gd||(this.k=y.createBufferSource(),this.k.buffer=this.buffer.ja,this.k.connect(this.kb)),this.k.onended=this.Ln,this.jj=this.k,this.k.loop=a,this.Kg=!1,0===c?l(this.k,d):r(this.k,c,this.Ye(),d);else{1!==h.playbackRate&&(h.playbackRate=1);h.loop!==a&&(h.loop=a);h.volume=b*ba;if(h.currentTime!==c)try{h.currentTime=c}catch(g){}e(this)}break;case 2:(!this.Gd&&this.pc||0!==c)&&h.seekTo(c);h.play();this.Kg=!1;break;case 3:J.Ub?
AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Lg?J.Bb.fa:J.He.fa)-c;this.zc=this.pc=this.Gd=!1};v.prototype.stop=function(){switch(this.W){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.W?c(this.k):this.k.paused||this.k.pause();break;case 2:this.k.stop();break;case 3:J.Ub&&AppMobi.context.stopSound(this.src)}this.pc=!0;this.zc=!1};v.prototype.pause=function(){if(!(this.Gd||this.pc||this.Kf()||this.zc)){switch(this.W){case 0:this.k.paused||
this.k.pause();break;case 1:1===this.buffer.W?(this.nc=this.Hm(!0),this.Md&&(this.nc=this.nc%this.Ye()),this.zc=!0,c(this.k)):this.k.paused||this.k.pause();break;case 2:this.k.pause();break;case 3:J.Ub&&AppMobi.context.stopSound(this.src)}this.zc=!0}};v.prototype.Dx=function(){if(!(this.Gd||this.pc||this.Kf())&&this.zc){switch(this.W){case 0:e(this);break;case 1:1===this.buffer.W?(this.k=y.createBufferSource(),this.k.buffer=this.buffer.ja,this.k.connect(this.kb),this.k.onended=this.Ln,this.jj=this.k,
this.k.loop=this.Md,this.kb.gain.value=ba*this.volume*this.$g,this.Cl(),this.startTime=(this.Lg?J.Bb.fa:J.He.fa)-this.nc/(this.playbackRate||.001),r(this.k,this.nc,this.Ye())):e(this);break;case 2:this.k.play();break;case 3:J.Ub&&AppMobi.context.resumeSound(this.src)}this.zc=!1}};v.prototype.seek=function(a){if(!(this.Gd||this.pc||this.Kf()))switch(this.W){case 0:try{this.k.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.W)this.zc?this.nc=a:(this.pause(),this.nc=a,this.Dx());else try{this.k.currentTime=
a}catch(c){}break;case 3:J.Ub&&AppMobi.context.seekSound(this.src,a)}};v.prototype.xx=function(a){1===this.W&&(this.Pd?(this.hb.disconnect(),this.hb.connect(a)):(this.kb.disconnect(),this.kb.connect(a)))};v.prototype.Ye=function(){var a=0;switch(this.W){case 0:"undefined"!==typeof this.k.duration&&(a=this.k.duration);break;case 1:a=this.buffer.ja.duration;break;case 2:a=this.k.getDuration();break;case 3:J.Ub&&(a=AppMobi.context.getDurationSound(this.src))}return a};v.prototype.Hm=function(a){var b=
this.Ye(),c=0;switch(this.W){case 0:"undefined"!==typeof this.k.currentTime&&(c=this.k.currentTime);break;case 1:if(1===this.buffer.W){if(this.zc)return this.nc;c=(this.Lg?J.Bb.fa:J.He.fa)-this.startTime}else"undefined"!==typeof this.k.currentTime&&(c=this.k.currentTime);break;case 3:J.Ub&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Md&&c>b&&(c=b);return c};v.prototype.Of=function(){return!this.zc&&!this.Gd&&!this.pc&&!this.Kf()};v.prototype.Vx=function(){return!this.Gd&&
!this.pc&&!this.Kf()};v.prototype.gy=function(){var a=this.volume*ba;isFinite(a)||(a=0);switch(this.W){case 0:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a);break;case 1:1===this.buffer.W?this.kb.gain.value=a*this.$g:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a)}};v.prototype.Lj=function(a){switch(this.W){case 0:this.k.muted!==!!a&&(this.k.muted=!!a);break;case 1:1===this.buffer.W?(this.$g=a?0:1,this.kb.gain.value=ba*this.volume*this.$g):this.k.muted!==
!!a&&(this.k.muted=!!a)}};v.prototype.Px=function(){this.Ng=!0;this.Lj(this.Ng||this.ii)};v.prototype.dl=function(a){this.ii=!!a;this.Lj(this.Ng||this.ii)};v.prototype.Cl=function(){var a=this.playbackRate;this.Lg&&(a*=J.sg);switch(this.W){case 0:this.k.playbackRate!==a&&(this.k.playbackRate=a);break;case 1:1===this.buffer.W?this.k.playbackRate.value!==a&&(this.k.playbackRate.value=a):this.k.playbackRate!==a&&(this.k.playbackRate=a)}};v.prototype.Sx=function(a){switch(this.W){case 0:a?this.Of()?(this.Rc=
!0,this.k.pause()):this.Rc=!1:this.Rc&&(this.k.play(),this.Rc=!1);break;case 1:a?this.Of()?(this.Rc=!0,1===this.buffer.W?(this.nc=this.Hm(!0),this.Md&&(this.nc=this.nc%this.Ye()),c(this.k)):this.k.pause()):this.Rc=!1:this.Rc&&(1===this.buffer.W?(this.k=y.createBufferSource(),this.k.buffer=this.buffer.ja,this.k.connect(this.kb),this.k.onended=this.Ln,this.jj=this.k,this.k.loop=this.Md,this.kb.gain.value=ba*this.volume*this.$g,this.Cl(),this.startTime=(this.Lg?J.Bb.fa:J.He.fa)-this.nc/(this.playbackRate||
.001),r(this.k,this.nc,this.Ye())):this.k.play(),this.Rc=!1);break;case 2:a?this.Of()?(this.k.pause(),this.Rc=!0):this.Rc=!1:this.Rc&&(this.Rc=!1,this.k.play())}};M.ba=function(a){this.type=a;J=this.b=a.b;ca=this;this.Bc=null;this.oi=-600;this.b.gk&&(vb=!0);!(this.b.Qg||this.b.ck&&(this.b.Ym||this.b.dk))||this.b.fk||this.b.Aa||this.b.oq||vb||(Mc=!0);y=null;"undefined"!==typeof AudioContext?(G=1,y=new AudioContext):"undefined"!==typeof webkitAudioContext&&(G=1,y=new webkitAudioContext);this.b.Qg&&
y&&(y.close&&y.close(),"undefined"!==typeof AudioContext?y=new AudioContext:"undefined"!==typeof webkitAudioContext&&(y=new webkitAudioContext));1!==G&&(this.b.yc&&"undefined"!==typeof window.Media?G=2:this.b.pq&&(G=3));2===G&&(w=location.href,a=w.lastIndexOf("/"),-1<a&&(w=w.substr(0,a+1)),w=w.replace("file://",""));if(this.b.Dw&&this.b.Ew&&"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.sf(this);
else{if(this.b.Ub)pa=this.b.ck;else try{pa=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){pa=!1}this.b.wl(this)}};var za=M.ba.prototype;za.K=function(){this.b.zg=this;V=this.n[0];this.ze=this.n[1];this.gx=0!==this.n[2];this.gr=0;Jb=this.n[3];Kb=this.n[4];this.oi=-this.n[5];Lc=this.n[6];Oc=this.n[7];Pc=this.n[8];this.Bc=new Q;var a=this.b.F||this.b.width,b=this.b.D||this.b.height;1===G&&(y.listener.setPosition(a/2,b/2,this.oi),y.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=
function(a,b){Ta&&Ta.disconnect();Lb=b.toLowerCase();Ta=y.createMediaStreamSource(a);Ta.connect(q(Lb))});this.b.fp(function(a){ca.Xw(a)});var c=this;this.b.Tl(function(a){c.Fn(a)})};za.Fn=function(a){var b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],d.Db&&d.Db.ea===a&&(d.Db.ea=null,d.Pd&&d.Of()&&d.Md&&d.stop());this.Bc.ea===a&&(this.Bc.ea=null)};za.Gb=function(){var a={silent:aa,masterVolume:ba,listenerZ:this.oi,listenerUid:this.Bc.ak()?this.Bc.ea.uid:-1,playing:[],effects:{}},b=a.playing,c,d,h,f,e,g;c=
0;for(d=A.length;c<d;c++)h=A[c],!h.Vx()||3===this.ze||h.Kd&&1===this.ze||!h.Kd&&2===this.ze||(f=h.Hm(),h.Md&&(f=f%h.Ye()),f={tag:h.tag,buffersrc:h.buffer.src,is_music:h.Kd,playbackTime:f,volume:h.volume,looping:h.Md,muted:h.Ng,playbackRate:h.playbackRate,paused:h.zc,resume_position:h.nc},h.Pd&&(f.pan={},g=f.pan,h.Db&&h.Db.ak()?g.objUid=h.Db.ea.uid:(g.x=h.Br,g.y=h.Cr,g.a=h.ur),g.ia=h.xr,g.oa=h.yr,g.og=h.Ar),b.push(f));b=a.effects;for(e in da)if(da.hasOwnProperty(e)){h=[];c=0;for(d=da[e].length;c<d;c++)h.push({type:da[e][c].type,
params:da[e][c].qd});b[e]=h}return a};var cb=[];za.cc=function(a){var b=a.silent;ba=a.masterVolume;this.oi=a.listenerZ;this.Bc.Pi(null);var c=a.listenerUid;-1!==c&&(this.Bc.sk=c,cb.push(this.Bc));var c=a.playing,f,e,g,l,m,p,q,r,v,u,w;if(3!==this.ze)for(f=0,e=A.length;f<e;f++)v=A[f],v.Kd&&1===this.ze||(v.Kd||2!==this.ze)&&v.stop();for(m in da)if(da.hasOwnProperty(m))for(f=0,e=da[m].length;f<e;f++)da[m][f].remove();Xa(da);for(m in a.effects)if(a.effects.hasOwnProperty(m))for(p=a.effects[m],f=0,e=p.length;f<
e;f++)switch(g=p[f].type,u=p[f].params,g){case "filter":W(m,new d(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "delay":W(m,new t(u[0],u[1],u[2]));break;case "convolve":g=u[2];v=this.Vj(g,!1);v.ja?g=new k(v.ja,u[0],u[1],g):(g=new k(null,u[0],u[1],g),v.ir=u[0],v.zj=g);W(m,g);break;case "flanger":W(m,new K(u[0],u[1],u[2],u[3],u[4]));break;case "phaser":W(m,new C(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "gain":W(m,new F(u[0]));break;case "tremolo":W(m,new h(u[0],u[1]));break;case "ringmod":W(m,new n(u[0],
u[1]));break;case "distortion":W(m,new z(u[0],u[1],u[2],u[3],u[4]));break;case "compressor":W(m,new T(u[0],u[1],u[2],u[3],u[4]));break;case "analyser":W(m,new D(u[0],u[1]))}f=0;for(e=c.length;f<e;f++)3===this.ze||(a=c[f],g=a.buffersrc,l=a.is_music,m=a.tag,p=a.playbackTime,q=a.looping,r=a.volume,w=(u=a.pan)&&u.hasOwnProperty("objUid")?u.objUid:-1,l&&1===this.ze)||!l&&2===this.ze||((v=this.Vp(g,m,l,q,r))?(v.nc=a.resume_position,v.jo(!!u),v.play(q,r,p),v.Cl(),v.gy(),v.Lj(v.Ng||v.ii),a.paused&&v.pause(),
a.muted&&v.Px(),v.Lj(v.Ng||v.ii),u&&(-1!==w?(v.Db=v.Db||new Q,v.Db.sk=w,cb.push(v.Db)):v.io(u.x,u.y,u.a,u.ia,u.oa,u.og))):(v=this.Vj(g,l),v.al=p,v.Jk=a.paused,u&&(-1!==w?v.hh.push({kr:w,Pm:u.ia,Bn:u.oa,En:u.og,ts:m}):v.hh.push({x:u.x,y:u.y,za:u.a,Pm:u.ia,Bn:u.oa,En:u.og,ts:m}))));if(b&&!aa){f=0;for(e=A.length;f<e;f++)A[f].dl(!0);aa=!0}else if(!b&&aa){f=0;for(e=A.length;f<e;f++)A[f].dl(!1);aa=!1}};za.hd=function(){var a,b,c,d;a=0;for(b=cb.length;a<b;a++)c=cb[a],d=this.b.Uh(c.sk),c.Pi(d),c.sk=-1,d&&
(Fa=d.x,Wa=d.y);x(cb)};za.Xw=function(a){if(!this.gx){!a&&y&&y.resume&&(y.resume(),Ib=!1);var b,c;b=0;for(c=A.length;b<c;b++)A[b].Sx(a);a&&y&&y.suspend&&(y.suspend(),Ib=!0)}};za.Pa=function(){var a=this.b.Ue,b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],d.Pa(a),0!==V&&d.Cl();var h,f;for(h in da)if(da.hasOwnProperty(h))for(d=da[h],b=0,c=d.length;b<c;b++)f=d[b],f.Pa&&f.Pa();1===G&&this.Bc.ak()&&(this.Bc.Pa(a),Fa=this.Bc.ea.x,Wa=this.Bc.ea.y,y.listener.setPosition(this.Bc.ea.x,this.Bc.ea.y,this.oi))};var db=
[];za.Qx=function(a){var b,c,d,h,f,e=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],h=d[0],d=2*d[1],(f=4<h.length&&".ogg"===h.substr(h.length-4))&&pa||!f&&!pa)db.push({filename:h,size:d,ea:null}),e+=d;return e};za.Yx=function(){var a,b,c,d;a=0;for(b=db.length;a<b;++a)c=db[a],d=this.b.wm+c.filename,c.ea=this.Vj(d,!1)};za.Zv=function(){var a=0,b,c,d;b=0;for(c=db.length;b<c;++b)d=db[b],d.ea.Cw()||d.ea.uw()||this.b.Aa||this.b.dk?a+=d.size:d.ea.rq()&&(a+=Math.floor(d.size/2));return a};za.zx=function(){var a,
b,c,d;c=a=0;for(b=H.length;a<b;++a)d=H[a],H[c]=d,d.Kd?d.yx():++c;H.length=c};za.Vj=function(a,b){var c,d,h,f=null;c=0;for(d=H.length;c<d;c++)if(h=H[c],h.src===a){f=h;break}f||(vb&&b&&this.zx(),f=new u(a,b),H.push(f));return f};za.Vp=function(a,b,c,d,h){var f,e,g;f=0;for(e=A.length;f<e;f++)if(g=A[f],g.src===a&&(g.su()||c))return g.tag=b,g;a=this.Vj(a,c);if(!a.ja)return"<preload>"!==b&&(a.Mk=b,a.xn=d,a.Ho=h),null;g=new v(a,b);A.push(g);return g};var Ga=[];S.prototype.gj=function(a){return lb(B,a)};
M.i=new S;I.prototype.Play=function(a,b,c,d){!aa&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),U=this.Vp(this.b.wm+a[0]+(pa?".ogg":".m4a"),d,a[1],0!==b,c))&&(U.jo(!1),U.play(0!==b,c,0,this.gr),this.gr=0)};I.prototype.Ql=function(a){R(a);var b;a=0;for(b=Ga.length;a<b;a++)Ga[a].stop()};I.prototype.Tt=function(a){var b;2===a&&(a=aa?1:0);if(0===a&&!aa){a=0;for(b=A.length;a<b;a++)A[a].dl(!0);aa=!0}else if(1===a&&aa){a=0;for(b=A.length;a<b;a++)A[a].dl(!1);aa=!1}};M.M=new I;L.prototype.Vs=
function(a,b){R(b,!0);Ga.length?a.u(Ga[0].Ye()):a.u(0)};M.$a=new L})();function X(g){this.b=g}
(function(){function g(){f&&a&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(a){l.Vw(a)})}function e(){}function b(){}function p(a){console&&console.warn&&console.warn("Fullscreen request failed: ",a);c.setSize(window.innerWidth,window.innerHeight)}var m=X.prototype;m.na=function(a){this.Na=a;this.b=a.b};var q=m.na.prototype;q.K=function(){};var f=!1,a=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.Ch){var a=document.createElement("script");
a.onload=function(){f=!0;g()};a.src="offlineClient.js";document.head.appendChild(a)}});var l=null;q.or=function(){a=!0;g()};m.ba=function(a){this.type=a;this.b=a.b};q=m.ba.prototype;q.K=function(){var a=this;window.addEventListener("resize",function(){a.b.trigger(X.prototype.i.Gt,a)});l=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(X.prototype.i.Dt,a)}),window.addEventListener("offline",function(){a.b.trigger(X.prototype.i.Bt,a)}));"undefined"!==
typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){a.b.Vg=1;a.b.trigger(X.prototype.i.ij,a)}),window.applicationCache.addEventListener("progress",function(b){a.b.Vg=b.loaded/b.total||0}));this.b.Ub||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(X.prototype.i.ij,a)}),document.addEventListener("backbutton",function(){a.b.trigger(X.prototype.i.xh,a)}),document.addEventListener("menubutton",function(){a.b.trigger(X.prototype.i.Qo,
a)}),document.addEventListener("searchbutton",function(){a.b.trigger(X.prototype.i.Jt,a)}),document.addEventListener("tizenhwkey",function(b){var c;switch(b.keyName){case "back":c=a.b.trigger(X.prototype.i.xh,a);!c&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=a.b.trigger(X.prototype.i.Qo,a))||b.preventDefault()}}));this.b.gn&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){a.b.trigger(X.prototype.i.xh,
a)&&(b.handled=!0)}):this.b.dn&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(X.prototype.i.xh,a)});this.b.fp(function(b){b?a.b.trigger(X.prototype.i.Et,a):a.b.trigger(X.prototype.i.Ft,a)});this.vq="undefined"!==typeof window.is_scirra_arcade};q.Vw=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(X.prototype.i.Mt,this):"update-ready"===a||"update-pending"===a?this.b.trigger(X.prototype.i.ij,this):"offline-ready"===a&&this.b.trigger(X.prototype.i.Ct,
this)};e.prototype.Dt=function(){return!0};e.prototype.Bt=function(){return!0};e.prototype.ij=function(){return!0};e.prototype.Ft=function(){return!0};e.prototype.Et=function(){return!0};e.prototype.Gt=function(){return!0};e.prototype.ct=function(){return!!(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||this.b.Jd)};e.prototype.xh=function(){return!0};e.prototype.Qo=function(){return!0};e.prototype.Jt=function(){return!0};e.prototype.Mt=function(){return!0};e.prototype.ij=
function(){return!0};e.prototype.Ct=function(){return!0};m.i=new e;b.prototype.Ss=function(){this.b.xc?CocoonJS.App.forceToFinish():window.tizen?window.tizen.application.getCurrentApplication().exit():navigator.app&&navigator.app.exitApp?navigator.app.exitApp():navigator.device&&navigator.device.exitApp?navigator.device.exitApp():this.vq||this.b.Aa||window.close()};b.prototype.Zs=function(a,b){this.b.xc?CocoonJS.App.openURL(a):this.b.Yc?ejecta.openURL(a):this.b.dn?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(a)):
navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(a,{openExternal:!0}):this.b.yc?window.open(a,"_system"):this.vq||this.b.Aa||window.open(a,b)};var r=!0,c=null;b.prototype.Ot=function(a){this.b.Aa?ha("[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored"):(2<=a&&(a+=1),6===a&&(a=2),this.b.sq?this.b.qq?debuggerFullscreen(!0):!this.b.Jd&&window.nwgui&&(window.nwgui.Window.get().enterFullscreen(),this.b.Jd=!0,this.b.ke=2<=a?a:0):document.mozFullScreen||
document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||document.fullScreenElement||(this.b.ke=2<=a?a:0,a=document.documentElement,r&&(r=!1,c=this.b,a.addEventListener("mozfullscreenerror",p),a.addEventListener("webkitfullscreenerror",p),a.addEventListener("MSFullscreenError",p),a.addEventListener("fullscreenerror",p)),a.requestFullscreen?a.requestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.webkitRequestFullScreen&&
("undefined"!==typeof Element&&"undefined"!==typeof Element.ALLOW_KEYBOARD_INPUT?a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):a.webkitRequestFullScreen())))};b.prototype.Ps=function(){this.b.Aa?ha("[Construct 2] Exiting fullscreen is not supported on this platform - the request has been ignored"):this.b.sq?this.b.qq?debuggerFullscreen(!1):this.b.Jd&&window.nwgui&&(window.nwgui.Window.get().leaveFullscreen(),this.b.Jd=!1):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?
document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()};m.M=new b;m.$a=new function(){}})();function vc(g){this.b=g}
(function(){function g(){}function e(){}var b=vc.prototype;b.na=function(b){this.Na=b;this.b=b.b};b.na.prototype.K=function(){};b.ba=function(b){this.type=b;this.b=b.b;this.Ag=Array(4);this.ws=this.yl=this.tg=this.kf=this.jf=0;this.Mm=!1};var p=b.ba.prototype;p.K=function(){var b=this;if(!this.b.Aa){jQuery(document).mousemove(function(a){b.Hn(a)});jQuery(document).mousedown(function(a){b.Gn(a)});jQuery(document).mouseup(function(a){b.In(a)});jQuery(document).dblclick(function(a){b.Sw(a)});var f=function(a){b.Yw(a)};
document.addEventListener("mousewheel",f,!1);document.addEventListener("DOMMouseScroll",f,!1)}};var m={left:0,top:0};p.Hn=function(b){var f=this.b.Aa?m:jQuery(this.b.canvas).offset();this.jf=b.pageX-f.left;this.kf=b.pageY-f.top};p.br=function(){return 0<this.b.ac?!0:0<=this.jf&&0<=this.kf&&this.jf<this.b.width&&this.kf<this.b.height};p.Gn=function(b){this.br()&&(this.Ag[b.which]=!0,this.b.Vb=!0,this.b.trigger(vc.prototype.i.lt,this),this.tg=b.which-1,this.yl=0,this.b.trigger(vc.prototype.i.Mo,this),
this.b.trigger(vc.prototype.i.Nl,this),this.b.Vb=!1)};p.In=function(b){this.Ag[b.which]&&(this.b.Zj&&!this.b.pe&&b.preventDefault(),this.b.Zj=!0,this.Ag[b.which]=!1,this.b.Vb=!0,this.tg=b.which-1,this.b.trigger(vc.prototype.i.Uo,this),this.b.Vb=!1)};p.Sw=function(b){this.br()&&(b.preventDefault(),this.b.Vb=!0,this.tg=b.which-1,this.yl=1,this.b.trigger(vc.prototype.i.Mo,this),this.b.trigger(vc.prototype.i.Nl,this),this.b.Vb=!1)};p.Yw=function(b){this.ws=0>(b.wheelDelta?b.wheelDelta:b.detail?-b.detail:
0)?0:1;this.Mm=!1;this.b.Vb=!0;this.b.trigger(vc.prototype.i.Nt,this);this.b.Vb=!1;this.Mm&&mb(b)&&b.preventDefault()};p.eg=function(){var b,f;b=0;for(f=this.Ag.length;b<f;++b)this.Ag[b]&&(this.Ag[b]=!1,this.tg=b-1,this.b.trigger(vc.prototype.i.Uo,this))};g.prototype.Mo=function(b,f){return b===this.tg&&f===this.yl};g.prototype.lt=function(){return!0};g.prototype.Uo=function(b){return b===this.tg};g.prototype.Nl=function(b,f,a){return b!==this.tg||f!==this.yl?!1:this.b.Zi(a,this.jf,this.kf)};g.prototype.Nt=
function(b){this.Mm=!0;return b===this.ws};b.i=new g;b.M=new function(){};e.prototype.Rl=function(b,f){var a,e,g,c,d;ja(f)?(a=this.b.le(0),e=a.scale,g=a.$b,c=a.kc,d=a.g,a.scale=1,a.$b=1,a.kc=1,a.g=0,b.u(a.Za(this.jf,this.kf,!0)),a.scale=e,a.$b=g,a.kc=c,a.g=d):(a=ka(f)?this.b.le(f):this.b.Th(f))?b.u(a.Za(this.jf,this.kf,!0)):b.u(0)};e.prototype.Sl=function(b,f){var a,e,g,c,d;ja(f)?(a=this.b.le(0),e=a.scale,g=a.$b,c=a.lc,d=a.g,a.scale=1,a.$b=1,a.lc=1,a.g=0,b.u(a.Za(this.jf,this.kf,!1)),a.scale=e,a.$b=
g,a.lc=c,a.g=d):(a=ka(f)?this.b.le(f):this.b.Th(f))?b.u(a.Za(this.jf,this.kf,!1)):b.u(0)};b.$a=new e})();function tc(g){this.b=g}
(function(){function g(){if(0===this.km.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.oh?b.drawImage(this.Y,this.bh,this.dh,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Y,0,0,this.width,this.height);this.km=a.toDataURL("image/png")}return this.km}function e(){}function b(a){a[0]=0;a[1]=0;a[2]=0;t.push(a)}function p(a,b){return a<b?""+a+","+b:""+b+","+a}function m(a,b,c,d){b=b.uid;c=c.uid;var f=p(b,c);if(a.hasOwnProperty(f))a[f][2]=
d;else{var e=t.length?t.pop():[0,0,0];e[0]=b;e[1]=c;e[2]=d;a[f]=e}}function q(a,c,d){c=p(c.uid,d.uid);a.hasOwnProperty(c)&&(b(a[c]),delete a[c])}function f(a,b,c){b=p(b.uid,c.uid);if(a.hasOwnProperty(b))return k=a[b][2],!0;k=-2;return!1}function a(){}var l=tc.prototype;l.na=function(a){this.Na=a;this.b=a.b};var r=l.na.prototype;r.K=function(){if(!this.G){var a,b,c,d,f,e,l,m,k;this.jd=[];this.Zh=!1;a=0;for(b=this.sc.length;a<b;a++){f=this.sc[a];l={};l.name=f[0];l.speed=f[1];l.loop=f[2];l.Yn=f[3];l.Zn=
f[4];l.ye=f[5];l.U=f[6];l.frames=[];c=0;for(d=f[7].length;c<d;c++)e=f[7][c],m={},m.ro=e[0],m.so=e[1],m.bh=e[2],m.dh=e[3],m.width=e[4],m.height=e[5],m.duration=e[6],m.hc=e[7],m.ic=e[8],m.Rm=e[9],m.Nk=e[10],m.Fr=e[11],m.oh=0!==m.width,m.km="",m.Uz=g,k={left:0,top:0,right:1,bottom:1},m.mo=k,m.Ea=null,(k=this.b.Lv(e[0]))?m.Y=k:(m.Y=new Image,m.Y.xu=e[0],m.Y.Bp=e[1],m.Y.qu=null,this.b.Ks(m.Y,e[0])),l.frames.push(m),this.jd.push(m);this.sc[a]=l}}};r.Fs=function(){var a,b,c;a=0;for(b=this.e.length;a<b;a++)c=
this.e[a],c.Bj=c.Ta.Ea};r.Ck=function(){if(!this.G){var a,b,c;a=0;for(b=this.jd.length;a<b;++a)c=this.jd[a],c.Y.qu=null,c.Ea=null;this.Zh=!1;this.Fs()}};r.Jn=function(){if(!this.G&&this.e.length){var a,b,c;a=0;for(b=this.jd.length;a<b;++a)c=this.jd[a],c.Ea=this.b.p.rk(c.Y,!1,this.b.Ka,c.Fr);this.Fs()}};r.sn=function(){if(!this.G&&!this.Zh&&this.b.p){var a,b,c;a=0;for(b=this.jd.length;a<b;++a)c=this.jd[a],c.Ea=this.b.p.rk(c.Y,!1,this.b.Ka,c.Fr);this.Zh=!0}};r.Bo=function(){if(!this.G&&!this.e.length&&
this.Zh){var a,b,c;a=0;for(b=this.jd.length;a<b;++a)c=this.jd[a],this.b.p.deleteTexture(c.Ea),c.Ea=null;this.Zh=!1}};var c=[];r.Qn=function(a){var b,d,f;x(c);b=0;for(d=this.jd.length;b<d;++b)f=this.jd[b].Y,-1===c.indexOf(f)&&(a.drawImage(f,0,0),c.push(f))};l.ba=function(a){this.type=a;this.b=a.b;a=this.type.sc[0].frames[0].Nk;this.Fc?this.Z.Ri(a):this.Z=new fb(a)};var d=l.ba.prototype;d.K=function(){this.visible=0===this.n[0];this.Sm=this.cn=!1;this.Bd=0!==this.n[3];this.Fa=this.Up(this.n[1])||this.type.sc[0];
this.C=this.n[2];0>this.C&&(this.C=0);this.C>=this.Fa.frames.length&&(this.C=this.Fa.frames.length-1);var a=this.Fa.frames[this.C];this.Z.Ri(a.Nk);this.hc=a.hc;this.ic=a.ic;this.Bg=this.Fa.speed;this.Te=this.Fa.Zn;1===this.type.sc.length&&1===this.type.sc[0].frames.length||0===this.Bg||(this.b.wl(this),this.cn=!0);this.Fc?this.Ad.reset():this.Ad=new bb;this.je=this.Ad.fa;this.vf=!0;this.Xd=0;this.uf=!0;this.dm=this.kp="";this.tu=0;this.wj=-1;this.type.sn();var b,c,d,f,e,g,l,a=0;for(b=this.type.sc.length;a<
b;a++)for(f=this.type.sc[a],c=0,d=f.frames.length;c<d;c++)e=f.frames[c],0===e.width&&(e.width=e.Y.width,e.height=e.Y.height),e.oh&&(l=e.Y,g=e.mo,g.left=e.bh/l.width,g.top=e.dh/l.height,g.right=(e.bh+e.width)/l.width,g.bottom=(e.dh+e.height)/l.height,0===e.bh&&0===e.dh&&e.width===l.width&&e.height===l.height&&(e.oh=!1));this.Ta=this.Fa.frames[this.C];this.Bj=this.Ta.Ea};d.Gb=function(){var a={a:this.Fa.U,f:this.C,cas:this.Bg,fs:this.je,ar:this.Xd,at:this.Ad.fa,rt:this.Te};this.vf||(a.ap=this.vf);this.uf||
(a.af=this.uf);return a};d.cc=function(a){var b=this.Qv(a.a);b&&(this.Fa=b);this.C=a.f;0>this.C&&(this.C=0);this.C>=this.Fa.frames.length&&(this.C=this.Fa.frames.length-1);this.Bg=a.cas;this.je=a.fs;this.Xd=a.ar;this.Ad.reset();this.Ad.fa=a.at;this.vf=a.hasOwnProperty("ap")?a.ap:!0;this.uf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Te=a.rt:this.Te=this.Fa.Zn;this.Ta=this.Fa.frames[this.C];this.Bj=this.Ta.Ea;this.Z.Ri(this.Ta.Nk);this.hc=this.Ta.hc;this.ic=this.Ta.ic};d.Vl=function(a){this.C=
a?0:this.Fa.frames.length-1;this.vf=!1;this.kp=this.Fa.name;this.Sm=!0;this.b.trigger(tc.prototype.i.kt,this);this.b.trigger(tc.prototype.i.jt,this);this.Sm=!1;this.Xd=0};d.Ch=function(){return this.Ad.fa};d.Pa=function(){this.Ad.add(this.b.Sh(this));this.dm.length&&this.Du();0<=this.wj&&this.Gp();var a=this.Ad.fa,b=this.Fa,c=b.frames[this.C],d=c.duration/this.Bg;this.vf&&a>=this.je+d&&(this.uf?this.C++:this.C--,this.je+=d,this.C>=b.frames.length&&(b.ye?(this.uf=!1,this.C=b.frames.length-2):b.loop?
this.C=this.Te:(this.Xd++,this.Xd>=b.Yn?this.Vl(!1):this.C=this.Te)),0>this.C&&(b.ye?(this.C=1,this.uf=!0,b.loop||(this.Xd++,this.Xd>=b.Yn&&this.Vl(!0))):b.loop?this.C=this.Te:(this.Xd++,this.Xd>=b.Yn?this.Vl(!0):this.C=this.Te)),0>this.C?this.C=0:this.C>=b.frames.length&&(this.C=b.frames.length-1),a>this.je+b.frames[this.C].duration/this.Bg&&(this.je=a),a=b.frames[this.C],this.xg(c,a),this.b.ta=!0)};d.Up=function(a){var b,c,d;b=0;for(c=this.type.sc.length;b<c;b++)if(d=this.type.sc[b],lb(d.name,a))return d;
return null};d.Qv=function(a){var b,c,d;b=0;for(c=this.type.sc.length;b<c;b++)if(d=this.type.sc[b],d.U===a)return d;return null};d.Du=function(){var a=this.Fa.frames[this.C],b=this.Up(this.dm);this.dm="";!b||lb(b.name,this.Fa.name)&&this.vf||(this.Fa=b,this.Bg=b.speed,this.Te=b.Zn,0>this.C&&(this.C=0),this.C>=this.Fa.frames.length&&(this.C=this.Fa.frames.length-1),1===this.tu&&(this.C=0),this.vf=!0,this.je=this.Ad.fa,this.uf=!0,this.xg(a,this.Fa.frames[this.C]),this.b.ta=!0)};d.Gp=function(){var a=
this.Fa.frames[this.C],b=this.C;this.C=ta(this.wj);0>this.C&&(this.C=0);this.C>=this.Fa.frames.length&&(this.C=this.Fa.frames.length-1);b!==this.C&&(this.xg(a,this.Fa.frames[this.C]),this.je=this.Ad.fa,this.b.ta=!0);this.wj=-1};d.xg=function(a,b){var c=a.width,d=a.height,f=b.width,e=b.height;c!=f&&(this.width*=f/c);d!=e&&(this.height*=e/d);this.hc=b.hc;this.ic=b.ic;this.Z.Ri(b.Nk);this.H();this.Ta=b;this.Bj=b.Ea;c=0;for(d=this.I.length;c<d;c++)f=this.I[c],f.Ww&&f.Ww(a,b);this.b.trigger(tc.prototype.i.xg,
this)};d.Ed=function(a){a.globalAlpha=this.opacity;var b=this.Ta,c=b.oh,d=b.Y,f=this.x,e=this.y,g=this.width,l=this.height;if(0===this.g&&0<=g&&0<=l)f-=this.hc*g,e-=this.ic*l,this.b.rd&&(f=Math.round(f),e=Math.round(e)),c?a.drawImage(d,b.bh,b.dh,b.width,b.height,f,e,g,l):a.drawImage(d,f,e,g,l);else{this.b.rd&&(f=Math.round(f),e=Math.round(e));a.save();var m=0<g?1:-1,k=0<l?1:-1;a.translate(f,e);1===m&&1===k||a.scale(m,k);a.rotate(this.g*m*k);f=0-this.hc*oa(g);e=0-this.ic*oa(l);c?a.drawImage(d,b.bh,
b.dh,b.width,b.height,f,e,oa(g),oa(l)):a.drawImage(d,f,e,oa(g),oa(l));a.restore()}};d.Df=function(a){this.uc(a)};d.uc=function(a){a.Gc(this.Bj);a.ig(this.opacity);var b=this.Ta,c=this.Mb;if(this.b.rd){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.oh?a.Sd(c.qb+d,c.rb+f,c.Yb+d,c.Zb+f,c.Nb+d,c.Ob+f,c.Kb+d,c.Lb+f,b.mo):a.Li(c.qb+d,c.rb+f,c.Yb+d,c.Zb+f,c.Nb+d,c.Ob+f,c.Kb+d,c.Lb+f)}else b.oh?a.Sd(c.qb,c.rb,c.Yb,c.Zb,c.Nb,c.Ob,c.Kb,c.Lb,b.mo):a.Li(c.qb,c.rb,c.Yb,c.Zb,c.Nb,c.Ob,c.Kb,c.Lb)};
d.Vv=function(a){var b=this.Ta,c,d;c=0;for(d=b.Rm.length;c<d;c++)if(lb(a,b.Rm[c][0]))return c;return-1};d.Fm=function(a,b){var c=this.Ta,d=c.Rm,f;la(a)?f=this.Vv(a):f=a-1;f=ta(f);if(0>f||f>=d.length)return b?this.x:this.y;var e=(d[f][1]-c.hc)*this.width,d=d[f][2],d=(d-c.ic)*this.height,c=Math.cos(this.g);f=Math.sin(this.g);var g=e*c-d*f,d=d*c+e*f,e=g+this.x,d=d+this.y;return b?e:d};var t=[],k=-2,K=[];e.prototype.ot=function(a){if(!a)return!1;var c=this.b,d=c.Wp(),e=d.type,g=null;d.ca.collmemory?g=
d.ca.collmemory:(g={},d.ca.collmemory=g);d.ca.spriteCreatedDestroyCallback||(d.ca.spriteCreatedDestroyCallback=!0,c.Tl(function(a){var c=d.ca.collmemory;a=a.uid;var f,e;for(f in c)c.hasOwnProperty(f)&&(e=c[f],e[0]===a||e[1]===a)&&(b(c[f]),delete c[f])}));var l=e.qa(),p=a.qa(),l=l.vc(),r,t,C,F,S,I,L,M=this.b.Vd,J=M-1,ca=c.Sb().Lc;for(t=0;t<l.length;t++){C=l[t];p.Ba?(C.R(),this.b.Cm(C.j,a,C.P,K),r=K,this.b.hu(C,a,r)):r=p.vc();for(F=0;F<r.length;F++)S=r[F],c.ng(C,S)||c.uu(C,S)?(I=f(g,C,S),I=!I||k<J,
m(g,C,S,M),I&&(c.Sk(ca.Oa),I=e.qa(),L=a.qa(),I.Ba=!1,L.Ba=!1,e===a?(I.e.length=2,I.e[0]=C,I.e[1]=S,e.Vc()):(I.e.length=1,L.e.length=1,I.e[0]=C,L.e[0]=S,e.Vc(),a.Vc()),ca.Fx(),c.fg(ca.Oa))):q(g,C,S);x(K)}return!1};var C=new fa,F=!1;new wa(0,0,0,0);r.finish=function(a){if(F){if(a){var b=this.b.Sb().Lc.$c;a=null.qa();var c=C.Fe(),d,f;if(a.Ba){a.Ba=!1;x(a.e);d=0;for(f=c.length;d<f;++d)a.e[d]=c[d];if(b)for(x(a.V),d=0,f=null.e.length;d<f;++d)c=null.e[d],C.contains(c)||a.V.push(c)}else if(b)for(b=a.e.length,
d=0,f=c.length;d<f;++d)a.e[b+d]=c[d],Ha(a.V,c[d]);else Ca(a.e,c);null.Vc()}C.clear();F=!1}};e.prototype.jt=function(a){return lb(this.kp,a)};e.prototype.kt=function(){return!0};e.prototype.xg=function(){return!0};l.i=new e;a.prototype.Qt=function(a){this.wj=a;this.cn||(this.b.wl(this),this.cn=!0);this.Sm||this.Gp()};l.M=new a;l.$a=new function(){}})();function wc(g){this.b=g}
(function(){function g(){return a.length?a.pop():{}}function e(b){var f,c;f=0;for(c=b.length;f<c;f++)a.push(b[f]);x(b)}function b(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function p(){}var m=wc.prototype;m.K=function(){m.M.Xt=function(a){this.width!==a&&(this.width=a,this.pg=!0,this.H())}};m.na=function(a){this.Na=a;this.b=a.b};var q=m.na.prototype;q.K=function(){};q.Ck=function(){if(!this.G){var a,b,c;a=0;for(b=this.e.length;a<b;a++)c=this.e[a],c.Od=null,c.ag=null,
c.Cc=null}};m.ba=function(a){this.type=a;this.b=a.b;this.Fc?x(this.df):this.df=[];this.pg=!0};q=m.ba.prototype;q.K=function(){this.text=this.n[0];this.visible=0===this.n[1];this.font=this.n[2];this.color=this.n[3];this.$j=this.n[4];this.Fl=this.n[5];this.Jo=0===this.n[7];this.pn=this.mk=this.width;this.lk=this.height;this.rn=this.n[8];this.Sj=this.Eg="";this.qs=this.rs=this.Ji=0;this.ax();this.Cc=this.ag=this.Od=null;this.er=!1;this.mi=this.b.Vd;this.Fc?this.of.set(0,0,1,1):this.of=new wa(0,0,1,1);
this.b.p&&this.b.wl(this)};q.ax=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Ji=parseInt(a[b].substr(0,a[b].length-2));this.Un=Math.ceil(this.Ji/72*96)+4;0<b&&(this.Sj=a[b-1]);this.Eg=a[b+1];for(b+=2;b<a.length;b++)this.Eg+=" "+a[b];break}};q.Gb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.$j,va:this.Fl,wr:this.Jo,lho:this.rn,fn:this.Eg,fs:this.Sj,ps:this.Ji,pxh:this.Un,tw:this.rs,th:this.qs,lrt:this.mi}};q.cc=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.$j=a.ha;this.Fl=a.va;this.Jo=a.wr;this.rn=a.lho;this.Eg=a.fn;this.Sj=a.fs;this.Ji=a.ps;this.Un=a.pxh;this.rs=a.tw;this.qs=a.th;this.mi=a.lrt;this.pg=!0;this.pn=this.mk=this.width;this.lk=this.height};q.Pa=function(){if(this.b.p&&this.Cc&&300<=this.b.Vd-this.mi){var a=this.j;this.R();var b=this.P;if(b.right<a.ua||b.bottom<a.wa||b.left>a.ya||b.top>a.xa)this.b.p.deleteTexture(this.Cc),this.Od=this.ag=this.Cc=null}};q.dg=function(){this.Od=this.ag=null;this.b.p&&
this.Cc&&this.b.p.deleteTexture(this.Cc);this.Cc=null};q.Ch=function(){this.font=this.Sj+" "+this.Ji.toString()+"pt "+this.Eg;this.pg=!0;this.b.ta=!0};q.Ed=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=Math.abs(this.j.wc()),a.save(),a.scale(c,c));if(this.pg||this.width!==this.pn)this.type.Na.bu(this.text,this.df,a,this.width,this.Jo),this.pg=!1,this.pn=this.width;this.R();var c=b?0:this.Mb.qb,d=b?0:this.Mb.rb;this.b.rd&&(c=
c+.5|0,d=d+.5|0);0===this.g||b||(a.save(),a.translate(c,d),a.rotate(this.g),d=c=0);var f=d+this.height,e=this.Un,e=e+this.rn,g,m;1===this.Fl?d+=Math.max(this.height/2-this.df.length*e/2,0):2===this.Fl&&(d+=Math.max(this.height-this.df.length*e-2,0));for(m=0;m<this.df.length&&!(g=c,1===this.$j?g=c+(this.width-this.df[m].width)/2:2===this.$j&&(g=c+(this.width-this.df[m].width)),a.fillText(this.df[m].text,g,d),d+=e,d>=f-e);m++);(0!==this.g||b)&&a.restore();this.mi=this.b.Vd};q.uc=function(a){if(!(1>
this.width||1>this.height)){var b=this.pg||this.er;this.er=!1;var c=this.j.wc(),d=this.j.lb(),f=this.of,e=c*this.width,g=c*this.height,m=Math.ceil(e),p=Math.ceil(g),h=Math.abs(m),n=Math.abs(p),q=this.b.F/2,T=this.b.D/2;this.ag||(this.Od=document.createElement("canvas"),this.Od.width=h,this.Od.height=n,this.mk=h,this.lk=n,b=!0,this.ag=this.Od.getContext("2d"));if(h!==this.mk||n!==this.lk)this.Od.width=h,this.Od.height=n,this.Cc&&(a.deleteTexture(this.Cc),this.Cc=null),b=!0;b&&(this.ag.clearRect(0,
0,h,n),this.Ed(this.ag,!0),this.Cc||(this.Cc=a.Kc(h,n,this.b.Ka,this.b.pe)),a.my(this.Od,this.Cc,this.b.pe));this.mk=h;this.lk=n;a.Gc(this.Cc);a.ig(this.opacity);a.bd();a.translate(-q,-T);a.Sc();var D=this.Mb,b=this.j.Ja(D.qb,D.rb,!0,!0),h=this.j.Ja(D.qb,D.rb,!1,!0),n=this.j.Ja(D.Yb,D.Zb,!0,!0),q=this.j.Ja(D.Yb,D.Zb,!1,!0),T=this.j.Ja(D.Nb,D.Ob,!0,!0),Q=this.j.Ja(D.Nb,D.Ob,!1,!0),u=this.j.Ja(D.Kb,D.Lb,!0,!0),D=this.j.Ja(D.Kb,D.Lb,!1,!0);if(this.b.rd||0===this.g&&0===d)var v=(b+.5|0)-b,N=(h+.5|0)-
h,b=b+v,h=h+N,n=n+v,q=q+N,T=T+v,Q=Q+N,u=u+v,D=D+N;0===this.g&&0===d?(n=b+m,q=h,T=n,Q=h+p,u=b,D=Q,f.right=1,f.bottom=1):(f.right=e/m,f.bottom=g/p);a.Sd(b,h,n,q,T,Q,u,D,f);a.bd();a.scale(c,c);a.Zk(-this.j.lb());a.translate((this.j.ua+this.j.ya)/-2,(this.j.wa+this.j.xa)/-2);a.Sc();this.mi=this.b.Vd}};var f=[];m.au=function(a){x(f);for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(f.push(b),b=""),f.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&
(" "===a.charAt(d)||"\t"===a.charAt(d)));f.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&f.push(b)};var a=[];m.bu=function(a,b,c,d,f){if(a&&a.length)if(2>=d)e(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var m=c.measureText(a).width;if(m<=d){e(b);b.push(g());b[0].text=a;b[0].width=m;return}}this.cu(a,b,c,d,f)}else e(b)};m.cu=function(e,m,c,d,p){p&&(this.au(e),e=f);var k="",q,C,F,h=0;for(F=0;F<e.length;F++)"\n"===e[F]?(h>=m.length&&m.push(g()),k=b(k),C=m[h],C.text=k,C.width=c.measureText(k).width,
h++,k=""):(q=k,k+=e[F],C=c.measureText(k).width,C>=d&&(h>=m.length&&m.push(g()),q=b(q),C=m[h],C.text=q,C.width=c.measureText(q).width,h++,k=e[F],p||" "!==k||(k="")));k.length&&(h>=m.length&&m.push(g()),k=b(k),C=m[h],C.text=k,C.width=c.measureText(k).width,h++);for(F=h;F<m.length;F++)a.push(m[F]);m.length=h};m.i=new function(){};p.prototype.Ut=function(a){ka(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.pg=!0,this.b.ta=!0)};m.M=new p;m.$a=new function(){}})();
function xc(g){this.b=g}
(function(){var g=xc.prototype;g.na=function(b){this.Na=b;this.b=b.b};var e=g.na.prototype;e.K=function(){this.G||(this.Y=new Image,this.Y.Bp=this.so,this.b.Ks(this.Y,this.ro),this.Ea=this.pattern=null)};e.Ck=function(){this.G||(this.Ea=null)};e.Jn=function(){if(!this.G&&this.e.length){this.Ea||(this.Ea=this.b.p.rk(this.Y,!0,this.b.Ka,this.to));var b,e;b=0;for(e=this.e.length;b<e;b++)this.e[b].Ea=this.Ea}};e.sn=function(){this.G||this.Ea||!this.b.p||(this.Ea=this.b.p.rk(this.Y,!0,this.b.Ka,this.to))};
e.Bo=function(){this.G||this.e.length||!this.Ea||(this.b.p.deleteTexture(this.Ea),this.Ea=null)};e.Qn=function(b){b.drawImage(this.Y,0,0)};g.ba=function(b){this.type=b;this.b=b.b};e=g.ba.prototype;e.K=function(){this.visible=0===this.n[0];this.of=new wa(0,0,0,0);this.gq=!1;this.Y=this.type.Y;this.b.p?(this.type.sn(),this.Ea=this.type.Ea):(this.type.pattern||(this.type.pattern=this.b.Ga.createPattern(this.type.Y,"repeat")),this.pattern=this.type.pattern)};e.hd=function(){this.gq=!1;this.Y=this.type.Y};
e.dg=function(){this.b.p&&this.gq&&this.Ea&&(this.b.p.deleteTexture(this.Ea),this.Ea=null)};e.Ed=function(b){b.globalAlpha=this.opacity;b.save();b.fillStyle=this.pattern;var e=this.x,g=this.y;this.b.rd&&(e=Math.round(e),g=Math.round(g));var q=-(this.hc*this.width),f=-(this.ic*this.height),a=q%this.Y.width,l=f%this.Y.height;0>a&&(a+=this.Y.width);0>l&&(l+=this.Y.height);b.translate(e,g);b.rotate(this.g);b.translate(a,l);b.fillRect(q-a,f-l,this.width,this.height);b.restore()};e.Df=function(b){this.uc(b)};
e.uc=function(b){b.Gc(this.Ea);b.ig(this.opacity);var e=this.of;e.right=this.width/this.Y.width;e.bottom=this.height/this.Y.height;var g=this.Mb;if(this.b.rd){var q=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Sd(g.qb+q,g.rb+f,g.Yb+q,g.Zb+f,g.Nb+q,g.Ob+f,g.Kb+q,g.Lb+f,e)}else b.Sd(g.qb,g.rb,g.Yb,g.Zb,g.Nb,g.Ob,g.Kb,g.Lb,e)};g.i=new function(){};g.M=new function(){};g.$a=new function(){}})();function yc(g){this.b=g}
(function(){function g(a){r=a.x;c=a.y;d=a.z}function e(a,c,d,f){var e;e=t.length?t.pop():new b;e.init(a,c,d,f);return e}function b(){this.Wi=this.id=this.Wf=this.Vf=this.y=this.x=this.pl=this.ol=this.nn=this.time=this.oo=0;this.aj=this.zl=!1}function p(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function m(){}function q(){}var f=yc.prototype;f.na=function(a){this.Na=
a;this.b=a.b};f.na.prototype.K=function(){};f.ba=function(a){this.type=a;this.b=a.b;this.touches=[];this.zn=!1};var a=f.ba.prototype,l={left:0,top:0};a.Ph=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 r=0,c=0,d=0,t=[];b.prototype.init=function(a,b,c,d){var f=Ya();this.oo=this.nn=this.time=f;this.ol=a;this.pl=b;this.x=a;this.y=b;this.Vf=a;this.Wf=b;this.pressure=this.height=this.width=0;this.id=c;this.Wi=d;this.aj=this.zl=!1};b.prototype.update=
function(a,b,c,d,f,e){this.nn=this.time;this.time=a;this.Vf=this.x;this.Wf=this.y;this.x=b;this.y=c;this.width=d;this.height=f;this.pressure=e;!this.aj&&15<=Sa(this.ol,this.pl,this.x,this.y)&&(this.aj=!0)};b.prototype.Mw=function(a,b){!this.zl&&500<=Ya()-this.oo&&!this.aj&&15>Sa(this.ol,this.pl,this.x,this.y)&&(this.zl=!0,a.Wd=this.Wi,a.rh=this.id,a.Ig=b,a.b.trigger(yc.prototype.i.xt,a),a.be=this.x,a.ee=this.y,a.b.trigger(yc.prototype.i.yt,a),a.Ig=0)};var k=-1E3,K=-1E3,C=-1E4;b.prototype.Xq=function(a,
b){if(!this.zl){var c=Ya();333>=c-this.oo&&!this.aj&&15>Sa(this.ol,this.pl,this.x,this.y)&&(a.Wd=this.Wi,a.rh=this.id,a.Ig=b,666>=c-C&&25>Sa(k,K,this.x,this.y)?(a.b.trigger(yc.prototype.i.qt,a),a.be=this.x,a.ee=this.y,a.b.trigger(yc.prototype.i.tt,a),K=k=-1E3,C=-1E4):(a.b.trigger(yc.prototype.i.Lt,a),a.be=this.x,a.ee=this.y,a.b.trigger(yc.prototype.i.Wo,a),k=this.x,K=this.y,C=c),a.Ig=0)}};a.K=function(){this.Fw=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Ig=this.rh=this.Wd=
this.ee=this.be=this.cp=this.bp=this.$o=this.fu=this.eu=this.du=this.Ik=this.Hk=this.Gk=0;this.ky=0!==this.n[0];var a=0<this.b.ac?document:this.b.canvas,b=document;this.b.Ub?b=a=window.Canvas:this.b.xc&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.qr(a)},!1),a.addEventListener("pointermove",function(a){c.pr(a)},!1),b.addEventListener("pointerup",function(a){c.Dk(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Dk(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.qr(a)},!1),a.addEventListener("MSPointerMove",function(a){c.pr(a)},!1),b.addEventListener("MSPointerUp",
function(a){c.Dk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Dk(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.sr(a)},!1),a.addEventListener("touchmove",function(a){c.rr(a)},!1),b.addEventListener("touchend",function(a){c.Kn(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Kn(a,!0)},
!1));if(this.Fw){var d=function(a){a=a.reading;c.$o=a.accelerationX;c.bp=a.accelerationY;c.cp=a.accelerationZ},f=function(a){a=a.reading;c.Gk=a.yawDegrees;c.Hk=a.pitchDegrees;c.Ik=a.rollDegrees},e=Windows.Devices.Sensors.Accelerometer.getDefault();e&&(e.reportInterval=Math.max(e.minimumReportInterval,16),e.addEventListener("readingchanged",d));var m=Windows.Devices.Sensors.Inclinometer.getDefault();m&&(m.reportInterval=Math.max(m.minimumReportInterval,16),m.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",
function(){document.hidden||document.msHidden?(e&&e.removeEventListener("readingchanged",d),m&&m.removeEventListener("readingchanged",f)):(e&&e.addEventListener("readingchanged",d),m&&m.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.Gk=a.alpha||0;c.Hk=a.beta||0;c.Ik=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.du=a.accelerationIncludingGravity.x||0,c.eu=a.accelerationIncludingGravity.y||
0,c.fu=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.$o=a.acceleration.x||0,c.bp=a.acceleration.y||0,c.cp=a.acceleration.z||0)},!1);this.ky&&!this.b.Aa&&(jQuery(document).mousemove(function(a){c.Hn(a)}),jQuery(document).mousedown(function(a){c.Gn(a)}),jQuery(document).mouseup(function(a){c.In(a)}));!this.b.Qg&&this.b.yc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(g,null,{frequency:40});this.b.cy(this)};a.pr=function(a){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Ph(a.pointerId),c=Ya();if(0<=b){var d=this.b.Aa?l:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||b.update(c,a.pageX-d.left,a.pageY-d.top,a.width||0,a.height||0,a.pressure||0)}}};a.qr=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&mb(a)&&a.preventDefault();var b=this.b.Aa?l:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Ya();
this.Wd=this.touches.length;this.rh=a.pointerId;this.touches.push(e(c,b,a.pointerId,this.Wd));this.b.Vb=!0;this.b.trigger(yc.prototype.i.So,this);this.b.trigger(yc.prototype.i.Zo,this);this.be=c;this.ee=b;this.b.trigger(yc.prototype.i.Yo,this);this.b.Vb=!1}};a.Dk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&mb(a)&&a.preventDefault();var c=this.Ph(a.pointerId);this.Wd=0<=c?this.touches[c].Wi:-1;this.rh=0<=c?this.touches[c].id:-1;this.b.Vb=!0;this.b.trigger(yc.prototype.i.Ro,
this);this.b.trigger(yc.prototype.i.Xo,this);0<=c&&(b||this.touches[c].Xq(this,c),100>t.length&&t.push(this.touches[c]),this.touches.splice(c,1));this.b.Vb=!1}};a.rr=function(a){a.preventDefault&&a.preventDefault();var b=Ya(),c,d,f,e;c=0;for(d=a.changedTouches.length;c<d;c++)if(f=a.changedTouches[c],e=this.Ph(f.identifier),0<=e){var g=this.b.Aa?l:jQuery(this.b.canvas).offset();e=this.touches[e];2>b-e.time||e.update(b,f.pageX-g.left,f.pageY-g.top,2*(f.eA||f.lA||f.Yz||f.aA||0),2*(f.fA||f.mA||f.Zz||
f.bA||0),f.Tz||f.kA||f.Xz||f.$z||0)}};a.sr=function(a){a.preventDefault&&mb(a)&&a.preventDefault();var b=this.b.Aa?l:jQuery(this.b.canvas).offset();Ya();this.b.Vb=!0;var c,d,f,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(f=a.changedTouches[c],g=this.Ph(f.identifier),-1===g){g=f.pageX-b.left;var m=f.pageY-b.top;this.Wd=this.touches.length;this.rh=f.identifier;this.touches.push(e(g,m,f.identifier,this.Wd));this.b.trigger(yc.prototype.i.So,this);this.b.trigger(yc.prototype.i.Zo,this);this.be=g;this.ee=
m;this.b.trigger(yc.prototype.i.Yo,this)}this.b.Vb=!1};a.Kn=function(a,b){a.preventDefault&&mb(a)&&a.preventDefault();this.b.Vb=!0;var c,d,f;c=0;for(d=a.changedTouches.length;c<d;c++)f=a.changedTouches[c],f=this.Ph(f.identifier),0<=f&&(this.Wd=this.touches[f].Wi,this.rh=this.touches[f].id,this.b.trigger(yc.prototype.i.Ro,this),this.b.trigger(yc.prototype.i.Xo,this),b||this.touches[f].Xq(this,f),100>t.length&&t.push(this.touches[f]),this.touches.splice(f,1));this.b.Vb=!1};a.Ch=function(){return this.b.yc&&
0===this.Gk&&0!==d?90*d:this.Gk};a.Rz=function(){return this.b.yc&&0===this.Hk&&0!==c?90*c:this.Hk};a.Sz=function(){return this.b.yc&&0===this.Ik&&0!==r?90*r:this.Ik};a.Gn=function(a){p(a)||(this.sr({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.zn=!0)};a.Hn=function(a){this.zn&&!p(a)&&this.rr({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.In=function(a){a.preventDefault&&this.b.Zj&&!this.b.pe&&a.preventDefault();this.b.Zj=!0;p(a)||(this.Kn({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]}),this.zn=!1)};a.qg=function(){var a,b,c,d=Ya();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.nn=d),c.Mw(this,a)};m.prototype.Zo=function(){return!0};m.prototype.Xo=function(){return!0};m.prototype.Yo=function(a){return a?this.b.Zi(a,this.be,this.ee):!1};var F=[];m.prototype.dt=function(a){if(!a)return!1;var b=a.qa(),c=b.vc(),d,f,e,g,m,l;e=0;for(g=c.length;e<g;e++){var k=c[e];k.R();m=0;for(l=this.touches.length;m<l;m++)if(f=this.touches[m],d=
k.j.Za(f.x,f.y,!0),f=k.j.Za(f.x,f.y,!1),k.Pb(d,f)){F.push(k);break}}return F.length?(b.Ba=!1,Ca(b.e,F),a.Vc(),x(F),!0):!1};m.prototype.So=function(a){a=Math.floor(a);return a===this.Wd};m.prototype.Ro=function(a){a=Math.floor(a);return a===this.Wd};m.prototype.xt=function(){return!0};m.prototype.Lt=function(){return!0};m.prototype.qt=function(){return!0};m.prototype.yt=function(a){return a?this.b.Zi(a,this.be,this.ee):!1};m.prototype.Wo=function(a){return a?this.b.Zi(a,this.be,this.ee):!1};m.prototype.tt=
function(a){return a?this.b.Zi(a,this.be,this.ee):!1};f.i=new m;q.prototype.Rl=function(a,b){var c=this.Ig;if(0>c||c>=this.touches.length)a.u(0);else{var d,f,e,g,m;ja(b)?(d=this.b.le(0),f=d.scale,e=d.$b,g=d.kc,m=d.g,d.scale=1,d.$b=1,d.kc=1,d.g=0,a.u(d.Za(this.touches[c].x,this.touches[c].y,!0)),d.scale=f,d.$b=e,d.kc=g,d.g=m):(d=ka(b)?this.b.le(b):this.b.Th(b))?a.u(d.Za(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};q.prototype.Sl=function(a,b){var c=this.Ig;if(0>c||c>=this.touches.length)a.u(0);
else{var d,f,e,g,m;ja(b)?(d=this.b.le(0),f=d.scale,e=d.$b,g=d.lc,m=d.g,d.scale=1,d.$b=1,d.lc=1,d.g=0,a.u(d.Za(this.touches[c].x,this.touches[c].y,!1)),d.scale=f,d.$b=e,d.lc=g,d.g=m):(d=ka(b)?this.b.le(b):this.b.Th(b))?a.u(d.Za(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};f.$a=new q})();function zc(g){this.b=g}
(function(){function g(){}var e=zc.prototype;e.na=function(b){this.behavior=b;this.b=b.b};e.na.prototype.K=function(){};e.ba=function(b,e){this.type=b;this.behavior=b.behavior;this.d=e;this.b=b.b};var b=e.ba.prototype;b.K=function(){this.ip=this.n[0];this.jp=this.n[1];this.lu=this.n[2];this.ku=this.n[3];this.d.R();this.Il=this.d.P.left;this.Ll=this.d.P.top;this.Jl=this.b.Ma-this.d.P.left;this.Kl=this.b.La-this.d.P.top;this.Vk=this.b.Ma-this.d.P.right;this.sj=this.b.La-this.d.P.bottom;this.enabled=
0!==this.n[4]};b.Gb=function(){return{xleft:this.Il,ytop:this.Ll,xright:this.Jl,ybottom:this.Kl,rdiff:this.Vk,bdiff:this.sj,enabled:this.enabled}};b.cc=function(b){this.Il=b.xleft;this.Ll=b.ytop;this.Jl=b.xright;this.Kl=b.ybottom;this.Vk=b.rdiff;this.sj=b.bdiff;this.enabled=b.enabled};b.Pa=function(){if(this.enabled){var b,e=this.d.j,g=this.d,f=this.d.P;0===this.ip?(g.R(),b=e.ua+this.Il-f.left,0!==b&&(g.x+=b,g.H())):1===this.ip&&(g.R(),b=e.ya-this.Jl-f.left,0!==b&&(g.x+=b,g.H()));0===this.jp?(g.R(),
b=e.wa+this.Ll-f.top,0!==b&&(g.y+=b,g.H())):1===this.jp&&(g.R(),b=e.xa-this.Kl-f.top,0!==b&&(g.y+=b,g.H()));1===this.lu&&(g.R(),b=e.ya-this.Vk-f.right,0!==b&&(g.width+=b,0>g.width&&(g.width=0),g.H()));1===this.ku&&(g.R(),b=e.xa-this.sj-f.bottom,0!==b&&(g.height+=b,0>g.height&&(g.height=0),g.H()))}};e.i=new function(){};g.prototype.yg=function(b){this.enabled&&0===b?this.enabled=!1:this.enabled||0===b||(this.d.R(),this.Il=this.d.P.left,this.Ll=this.d.P.top,this.Jl=this.b.Ma-this.d.P.left,this.Kl=this.b.La-
this.d.P.top,this.Vk=this.b.Ma-this.d.P.right,this.sj=this.b.La-this.d.P.bottom,this.enabled=!0)};e.M=new g;e.$a=new function(){}})();function Ac(g){this.b=g}
(function(){function g(){}var e=Ac.prototype;e.na=function(b){this.behavior=b;this.b=b.b};e.na.prototype.K=function(){};e.ba=function(b,e){this.type=b;this.behavior=b.behavior;this.d=e;this.b=b.b;this.kl=this.jl=this.il=this.ll=this.Qm=this.Ni=this.ni=this.Ih=this.bj=!1;this.r=0;this.Wb=this.za=this.d.g};var b=e.ba.prototype;b.K=function(){this.hf=this.n[0];this.tf=this.n[1];this.fe=this.n[2];this.ql=E(this.n[3]);this.nm=E(this.n[4]);this.zm=this.n[5];this.ho=1===this.n[6];this.Au=1===this.n[7];this.enabled=
0!==this.n[8];this.Vf=this.d.x;this.Wf=this.d.y;this.Rg=this.d.g;this.Au&&!this.b.Aa&&(jQuery(document).keydown(function(b){return function(e){b.Tw(e)}}(this)),jQuery(document).keyup(function(b){return function(e){b.Uw(e)}}(this)))};b.Gb=function(){return{ignoreInput:this.Qm,enabled:this.enabled,s:this.r,a:this.za,m:this.Wb,maxspeed:this.hf,acc:this.tf,dec:this.fe,steerSpeed:this.ql,driftRecover:this.nm,friction:this.zm,lastx:this.Vf,lasty:this.Wf,lastAngle:this.Rg}};b.cc=function(b){this.Qm=b.ignoreInput;
this.enabled=b.enabled;this.r=b.s;this.za=b.a;this.Wb=b.m;this.hf=b.maxspeed;this.tf=b.acc;this.fe=b.dec;this.ql=b.steerSpeed;this.nm=b.driftRecover;this.zm=b.friction;this.Vf=b.lastx;this.Wf=b.lasty;this.Rg=b.lastAngle;this.kl=this.jl=this.il=this.ll=this.Ni=this.ni=this.Ih=this.bj=!1};b.Tw=function(b){switch(b.which){case 37:b.preventDefault();this.ni=!0;break;case 38:b.preventDefault();this.bj=!0;break;case 39:b.preventDefault();this.Ni=!0;break;case 40:b.preventDefault(),this.Ih=!0}};b.Uw=function(b){switch(b.which){case 37:b.preventDefault();
this.ni=!1;break;case 38:b.preventDefault();this.bj=!1;break;case 39:b.preventDefault();this.Ni=!1;break;case 40:b.preventDefault(),this.Ih=!1}};b.eg=function(){this.Ni=this.ni=this.Ih=this.bj=!1};b.Pa=function(){var b=this.b.Sh(this.d),e=this.ni||this.jl,g=this.Ni||this.kl,f=this.bj||this.ll,a=this.Ih||this.il;this.il=this.ll=this.kl=this.jl=!1;if(this.enabled){this.ho&&this.d.g!==this.Rg&&(this.Rg=this.Wb=this.za=this.d.g);var l=this.b.De(this.d);if(l&&(this.b.Nr(this.d,l),!this.b.Tn(this.d)))return;
this.Qm&&(a=f=g=e=!1);f&&!a&&(this.r+=this.tf*b,this.r>this.hf&&(this.r=this.hf));a&&!f&&(this.r-=this.fe*b,this.r<-this.hf&&(this.r=-this.hf));a===f&&(0<this.r?(this.r-=this.fe*b*.1,0>this.r&&(this.r=0)):0>this.r&&(this.r+=this.fe*b*.1,0<this.r&&(this.r=0)));0>this.r&&(f=e,e=g,g=f);e&&!g&&(this.za=O(this.za-this.ql*b*(Math.abs(this.r)/this.hf)));g&&!e&&(this.za=O(this.za+this.ql*b*(Math.abs(this.r)/this.hf)));e=this.nm*b;g=Oa(this.za,this.Wb);g>E(90)&&(e+=g-E(90));g<=e?this.Wb=O(this.za):Qa(this.za,
this.Wb)?this.Wb=O(this.Wb+e):this.Wb=O(this.Wb-e);this.Vf=this.d.x;this.Wf=this.d.y;if(0!==this.r&&0!==b){if(this.d.x+=Math.cos(this.Wb)*this.r*b,this.d.y+=Math.sin(this.Wb)*this.r*b,this.ho&&(this.Rg=this.d.g=this.za),this.d.H(),e=this.b.De(this.d))this.b.Nr(this.d,e),this.r=Math.abs(this.r),this.Wb=this.b.ru(this.d,this.Vf,this.Wf),this.d.x+=Math.cos(this.Wb)*this.r*b,this.d.y+=Math.sin(this.Wb)*this.r*b,this.d.H(),this.r*=1-this.zm,this.b.ux(this.d,Math.cos(this.Wb),Math.sin(this.Wb),Math.max(2.5*
this.r*b,30))||this.b.Tn(this.d,100)}else this.ho&&this.d.g!==this.za&&(this.Rg=this.d.g=this.za,this.d.H(),this.b.De(this.d)&&this.b.Tn(this.d,100))}};e.i=new function(){};g.prototype.Ql=function(){this.r=0};g.prototype.Yt=function(b){switch(b){case 0:this.jl=!0;break;case 1:this.kl=!0;break;case 2:this.ll=!0;break;case 3:this.il=!0}};g.prototype.yg=function(b){this.enabled=1===b};e.M=new g;e.$a=new function(){}})();function Bc(g){this.b=g}
(function(){function g(){}function e(){}var b={},p=Bc.prototype;p.eh=function(){var a,f;for(a in b)b.hasOwnProperty(a)&&(f=b[a],f.xe.unsetReady(),f.Mi=!0)};p.na=function(a){this.behavior=a;this.b=a.b};p.na.prototype.K=function(){this.ah=[];this.Se=[]};p.ba=function(a,b){this.type=a;this.behavior=a.behavior;this.d=b;this.b=a.b};var m=p.ba.prototype;m.K=function(){this.Sa=this.n[0];3>this.Sa&&(this.Sa=3);this.md=this.n[1];this.Pw=this.n[2];this.Nd=this.n[3];this.tf=this.n[4];this.fe=this.n[5];this.nj=
E(this.n[6]);this.Xk=0!==this.n[7];this.Kj=0!==this.n[8];this.enabled=0!==this.n[9];this.Jg=this.Qh=this.Ai=this.qe=!1;this.jc=0;this.Ld=this.za=this.d.g;this.jh=this.vd=this.ud=this.r=0;this.lf=Math.ceil(this.b.aa.width/this.Sa);this.$f=Math.ceil(this.b.aa.height/this.Sa);this.Va=[];this.Dg=!1;this.Hj=this.Gj=0;this.bi=this.ik=!1;this.up=this.tp=0;this.Qp=!0;var a=this;this.Fc||(this.cx=function(){a.ik||(a.bi=!1,a.wu(),a.Jg=0<a.Va.length,a.jc=0,a.b.trigger(Bc.prototype.i.To,a.d),a.mm())},this.bx=
function(){a.ik||(a.bi=!1,a.yp(),a.Jg=!1,a.qe=!1,a.jc=0,a.b.trigger(Bc.prototype.i.wt,a.d),a.mm())})};m.dg=function(){this.ik=!0;this.Dg=!1};m.Gb=function(){var a={cs:this.Sa,cb:this.md,ms:this.Nd,acc:this.tf,dec:this.fe,av:this.nj,re:this.Xk,de:this.Kj,im:this.qe,mfs:this.Ai,ftmwm:this.Qh,hp:this.Jg,mn:this.jc,a:this.za,lka:this.Ld,s:this.r,rx:this.ud,ry:this.vd,ra:this.jh,myhc:this.lf,myvc:this.$f,path:this.Va,en:this.enabled,fr:this.Qp,obs:[],costs:[]};this.bi?(a.dfp=!0,a.dpx=this.tp,a.dpy=this.up):
(a.dfp=this.Dg,a.dpx=this.Gj,a.dpy=this.Hj);var b,f;b=0;for(f=this.type.ah.length;b<f;b++)a.obs.push(this.type.ah[b].U);b=0;for(f=this.type.Se.length;b<f;b++)a.costs.push({sid:this.type.Se[b].ea.U,cost:this.type.Se[b].Ap});return a};m.cc=function(a){this.Sa=a.cs;this.md=a.cb;this.Nd=a.ms;this.tf=a.acc;this.fe=a.dec;this.nj=a.av;this.Xk=a.re;this.Kj=a.de;this.qe=a.im;this.Ai=a.mfs;this.Qh=a.ftmwm;this.Jg=a.hp;this.jc=a.mn;this.za=a.a;this.Ld=a.lka;this.r=a.s;this.ud=a.rx;this.vd=a.ry;this.jh=a.ra;
this.lf=a.myhc;this.$f=a.myvc;this.Va=a.path;this.enabled=a.en;this.Qp=a.fr;this.Dg=a.dfp;this.Gj=a.dpx;this.Hj=a.dpy;x(this.type.ah);var b=a.obs,f,c,d;f=0;for(c=b.length;f<c;f++)(d=this.b.Hg(b[f]))&&this.type.ah.push(d);x(this.type.Se);a=a.costs;f=0;for(c=a.length;f<c;f++)(d=this.b.Hg(a[f].sid))&&this.type.Se.push({ea:d,Ap:a[f].cost});this.If().xe.setDiagonals(this.Kj)};m.hd=function(){this.If().Mi=!0};m.Pa=function(){if(this.enabled&&this.qe){this.Xk&&this.d.g!==this.Ld&&(this.za=this.d.g);var a=
this.b.Sh(this.d),b,f,c,d,e,g=this.d,m=Math.min(.4*this.Nd,2*Math.abs(this.d.width)),p=Math.max(1.5*this.r,30);this.jc<this.Va.length?(d=this.Va[this.jc].x,e=this.Va[this.jc].y,c=Sa(this.ud,this.vd,d,e),c<3*p*a&&(this.jc++,this.ud=d,this.vd=e,this.jc<this.Va.length&&(d=this.Va[this.jc].x,e=this.Va[this.jc].y))):(d=this.Va[this.Va.length-1].x,e=this.Va[this.Va.length-1].y);this.jh=Na(this.ud,this.vd,d,e);c=Sa(g.x,g.y,this.ud,this.vd);c<m&&this.jc<this.Va.length&&(this.Qh?this.Qh=!1:m=p*a,this.ud+=
Math.cos(this.jh)*m,this.vd+=Math.sin(this.jh)*m);b=Na(g.x,g.y,this.ud,this.vd);f=Oa(this.za,b);m=Sa(g.x,g.y,this.Va[this.Va.length-1].x,this.Va[this.Va.length-1].y);p=this.Nd*this.Nd/(2*this.fe);1<c&&(this.za=Pa(this.za,b,this.nj*a),.5>=Ja(f)?f=this.Nd:120<=Ja(f)||this.Ai&&0===this.jc?(f=0,this.Ai=!0):(b=f/this.nj,c=Sa(g.x,g.y,this.ud,this.vd),c=c/(2*Math.sin(f)),f=c*f/b,0>f&&(f=0),f>this.Nd&&(f=this.Nd)),m<p&&(f=Math.min(f,m/p*this.Nd+this.Nd/40)),this.r+=this.tf*a,this.r>f&&(this.r=f));g.x+=Math.cos(this.za)*
this.r*a;g.y+=Math.sin(this.za)*this.r*a;this.Xk&&(this.Ld=g.g=this.za);g.H();this.jc===this.Va.length&&Sa(g.x,g.y,d,e)<Math.max(3*this.r*a,10)&&(this.Jg=this.qe=!1,this.r=this.jc=0,this.b.trigger(Bc.prototype.i.mt,g))}};m.qg=function(){this.enabled&&(this.Pv(),this.mm())};m.mm=function(){this.Dg&&!this.ik&&(this.Dg=!1,this.Ip(this.d.x,this.d.y,this.Gj,this.Hj))};m.If=function(){var a=""+this.Sa+","+this.md;b.hasOwnProperty(a)||(b[a]={xe:new window.Pathfinder,cells:null,Mi:!1,gg:[]});return b[a]};
m.Pv=function(){var a=this.If();if(!a.xe.isReady()||a.Mi||a.gg.length){var b,f,c,d,e,g,m,p,q,h;if(!a.xe.isReady()||a.Mi){this.lf=Math.ceil(this.b.aa.width/this.Sa);this.$f=Math.ceil(this.b.aa.height/this.Sa);b=[];d=b.length=this.lf;e=this.$f;for(f=0;f<d;++f)for(b[f]=[],b[f].length=e,c=0;c<e;++c)b[f][c]=this.Lr(f,c);a.cells=b;a.xe.init(this.lf,this.$f,b,this.Kj);a.Mi=!1;x(a.gg)}else if(a.gg.length){g=0;for(m=a.gg.length;g<m;++g){b=a.gg[g];p=b[0];q=b[1];d=b[2];f=b[3];b=[];d=d-p;e=f-q;b.length=d;for(f=
0;f<d;++f)for(b[f]=[],b[f].length=e,c=0;c<e;++c)h=this.Lr(p+f,q+c),b[f][c]=h,a.cells[p+f][q+c]=h;a.xe.updateRegion(p,q,d,e,b)}x(a.gg)}}};m.yp=function(){var a,b;a=0;for(b=this.Va.length;a<b;a++)window.freeResultNode(this.Va[a]);x(this.Va)};m.wu=function(){var a=this.If().xe.pathList;this.yp();var b,f,c,d;b=0;for(f=a.length;b<f;b++)c=a[b],d=window.allocResultNode(),d.x=(c.x+.5)*this.Sa,d.y=(c.y+.5)*this.Sa,this.Va.push(d)};var q=[],f=new wa;m.Lr=function(a,b){var e,c,d,g,m,p=0;f.left=a*this.Sa-this.md;
f.top=b*this.Sa-this.md;f.right=(a+1)*this.Sa+this.md;f.bottom=(b+1)*this.Sa+this.md;if(0===this.Pw){if(this.b.by(f))return window.PF_OBSTACLE}else{this.b.bq(this.d.j,this.type.ah,f,q);e=0;for(c=q.length;e<c;++e)if(this.b.qo(f,q[e]))return x(q),window.PF_OBSTACLE;q.length=0}e=0;for(c=this.type.Se.length;e<c;e++){d=this.type.Se[e].ea;m=this.type.Se[e].Ap;this.b.Cm(this.d.j,d,f,q);d=0;for(g=q.length;d<g;++d)this.b.qo(f,q[d])&&(p+=m);x(q)}return p};m.Ip=function(a,b,f,c){var d=this.If().xe;if(d.isReady()){this.bi=
!0;this.tp=f;this.up=c;a=Math.floor(a/this.Sa);b=Math.floor(b/this.Sa);f=Math.floor(f/this.Sa);c=Math.floor(c/this.Sa);var e,g,m,p,q,h,n;if(d.at(f,c)===window.PF_OBSTACLE){e=1E6;for(p=m=g=0;p<this.lf;p++)for(q=0;q<this.$f;q++)d.at(p,q)!==window.PF_OBSTACLE&&(h=f-p,n=c-q,h=h*h+n*n,h<e&&(e=h,g=p,m=q));f=g;c=m}d.findPath(a,b,f,c,this.cx,this.bx)}};g.prototype.To=function(){return!0};g.prototype.wt=function(){return!0};g.prototype.mt=function(){return!0};p.i=new g;e.prototype.Xs=function(a,b){this.enabled&&
(this.bi||!this.If().xe.isReady()?(this.Dg=!0,this.Gj=a,this.Hj=b):this.Ip(this.d.x,this.d.y,a,b))};e.prototype.Zt=function(){this.Jg&&(this.qe&&(this.Qh=!0),this.Ai=!this.qe,this.qe=!0,this.ud=this.d.x,this.vd=this.d.y,this.jh=this.d.g)};e.prototype.Ql=function(){this.qe=!1};e.prototype.yg=function(a){this.enabled=0!==a};e.prototype.Ms=function(a){var b=this.type.ah;if(-1===b.indexOf(a)){var f,c,d;f=0;for(c=b.length;f<c;f++)if(d=b[f],d.G&&-1!==d.Zg.indexOf(a))return;b.push(a)}};m.Ch=function(a,b,
f,c){var d=Math.min(a,f)-this.md,e=Math.min(b,c)-this.md;a=Math.max(a,f)+this.md;b=Math.max(b,c)+this.md;d=Math.max(Math.floor(d/this.Sa),0);e=Math.max(Math.floor(e/this.Sa),0);a=Math.min(Math.ceil(a/this.Sa),this.lf);b=Math.min(Math.ceil(b/this.Sa),this.$f);d>=a||e>=b||this.If().gg.push([d,e,a,b])};p.M=new e;p.$a=new function(){}})();function Cc(g){this.b=g}
(function(){var g=Cc.prototype;g.na=function(b){this.behavior=b;this.b=b.b};g.na.prototype.K=function(){};g.ba=function(b,e){this.type=b;this.behavior=b.behavior;this.d=e;this.b=b.b};var e=g.ba.prototype;e.K=function(){this.yb=null;this.Lk=-1;this.mode=this.Ld=this.uo=this.Bi=this.nf=this.Kk=0;var b=this;this.Fc||(this.dr=function(e){b.Fn(e)});this.b.Tl(this.dr)};e.Gb=function(){return{uid:this.yb?this.yb.uid:-1,pa:this.Kk,pd:this.nf,msa:this.Bi,tsa:this.uo,lka:this.Ld,m:this.mode}};e.cc=function(b){this.Lk=
b.uid;this.Kk=b.pa;this.nf=b.pd;this.Bi=b.msa;this.uo=b.tsa;this.Ld=b.lka;this.mode=b.m};e.hd=function(){-1===this.Lk?this.yb=null:this.yb=this.b.Uh(this.Lk);this.Lk=-1};e.Fn=function(b){this.yb==b&&(this.yb=null)};e.dg=function(){this.yb=null;this.b.Ax(this.dr)};e.Pa=function(){};e.qg=function(){if(this.yb){this.Ld!==this.d.g&&(this.Bi=O(this.Bi+(this.d.g-this.Ld)));var b=this.d.x,e=this.d.y;if(3===this.mode||4===this.mode){var g=Sa(this.d.x,this.d.y,this.yb.x,this.yb.y);if(g>this.nf||4===this.mode&&
g<this.nf)e=Na(this.yb.x,this.yb.y,this.d.x,this.d.y),b=this.yb.x+Math.cos(e)*this.nf,e=this.yb.y+Math.sin(e)*this.nf}else b=this.yb.x+Math.cos(this.yb.g+this.Kk)*this.nf,e=this.yb.y+Math.sin(this.yb.g+this.Kk)*this.nf;this.Ld=g=O(this.Bi+(this.yb.g-this.uo));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.d.x===b&&this.d.y===e||(this.d.x=b,this.d.y=e,this.d.H());0!==this.mode&&2!==this.mode||this.d.g===g||(this.d.g=g,this.d.H())}};g.i=new function(){};g.M=new function(){};g.$a=new function(){}})();
function Dc(g){this.b=g}
(function(){var g=Dc.prototype;g.na=function(e){this.behavior=e;this.b=e.b};g.na.prototype.K=function(){};g.ba=function(e,b){this.type=e;this.behavior=e.behavior;this.d=b;this.b=e.b;this.mode=0};g=g.ba.prototype;g.K=function(){this.mode=this.n[0]};g.Pa=function(){};g.qg=function(){this.d.R();var e=this.d.P,b=this.d.j.fb,g=!1;0===this.mode?(0>this.d.x&&(this.d.x=0,g=!0),0>this.d.y&&(this.d.y=0,g=!0),this.d.x>b.width&&(this.d.x=b.width,g=!0),this.d.y>b.height&&(this.d.y=b.height,g=!0)):(0>e.left&&(this.d.x-=
e.left,g=!0),0>e.top&&(this.d.y-=e.top,g=!0),e.right>b.width&&(this.d.x-=e.right-b.width,g=!0),e.bottom>b.height&&(this.d.y-=e.bottom-b.height,g=!0));g&&this.d.H()}})();var Ec=[],Fc=[],Gc=[],Hc=[],Ic=[],Jc=[],Kc=[],Qc=[],Rc=[];function Sc(g,e){return Math.round(g/e*1E4)}
function Tc(g,e,b,p){var m=0;switch(g){case 0:m=1*e/b+0;break;case 1:m=1*(e/=b)*e+0;break;case 2:m=-1*(e/=b)*(e-2)+0;break;case 3:m=1>(e/=b/2)?.5*e*e+0:-.5*(--e*(e-2)-1)+0;break;case 4:m=1*(e/=b)*e*e+0;break;case 5:m=1*((e=e/b-1)*e*e+1)+0;break;case 6:m=1>(e/=b/2)?.5*e*e*e+0:.5*((e-=2)*e*e+2)+0;break;case 7:m=1*(e/=b)*e*e*e+0;break;case 8:m=-1*((e=e/b-1)*e*e*e-1)+0;break;case 9:m=1>(e/=b/2)?.5*e*e*e*e+0:-.5*((e-=2)*e*e*e-2)+0;break;case 10:m=1*(e/=b)*e*e*e*e+0;break;case 11:m=1*((e=e/b-1)*e*e*e*e+
1)+0;break;case 12:m=1>(e/=b/2)?.5*e*e*e*e*e+0:.5*((e-=2)*e*e*e*e+2)+0;break;case 13:m=Ic[Sc(e,b)];break;case 14:m=Jc[Sc(e,b)];break;case 15:m=Kc[Sc(e,b)];break;case 16:g=0;0==g&&(g=1.70158);m=1*(e/=b)*e*((g+1)*e-g)+0;break;case 17:m=Qc[Sc(e,b)];break;case 18:m=Rc[Sc(e,b)];break;case 19:m=Fc[Sc(e,b)];break;case 20:m=Gc[Sc(e,b)];break;case 21:m=Hc[Sc(e,b)];break;case 22:m=1-Ec[Sc(b-e,b)]+0;break;case 23:m=Ec[Sc(e,b)];break;case 24:m=e<b/2?.5*(1-Ec[Sc(b-2*e,b)]+0)+0:.5*Ec[Sc(2*e-b,b)]+.5;break;case 25:e=
e/b/2;m=2*e*e*(3-2*e);break;case 26:e=(e/b+1)/2;m=2*e*e*(3-2*e)-1;break;case 27:e=e/b,m=e*e*(3-2*e)}return p?1-m:m}
for(var Uc=0,Vc=0,Wc=0,Y=0,Z=0,Xc=0;1E4>=Xc;Xc++){Y=Xc/1E4;(Y/=1)<1/2.75||(Y<2/2.75?Y-=1.5/2.75:Y<2.5/2.75?Y-=2.25/2.75:Y-=2.625/2.75);var Yc,Zc=Xc/1E4;Yc=(Zc/=1)<1/2.75?7.5625*Zc*Zc+0:Zc<2/2.75?1*(7.5625*(Zc-=1.5/2.75)*Zc+.75)+0:Zc<2.5/2.75?1*(7.5625*(Zc-=2.25/2.75)*Zc+.9375)+0:1*(7.5625*(Zc-=2.625/2.75)*Zc+.984375)+0;Ec[Xc]=Yc;Y=Xc/1E4;Wc=Vc=0;Y/=1;0==Wc&&(Wc=.3);0==Vc||Vc<Math.abs(1)?(Vc=1,Z=Wc/4):Z=Wc/(2*Math.PI)*Math.asin(1/Vc);Uc=-(Vc*Math.pow(2,10*--Y)*Math.sin(2*(1*Y-Z)*Math.PI/Wc))+0;Fc[Xc]=
Uc;Y=Xc/1E4;Wc=Vc=0;Y/=1;0==Wc&&(Wc=.3);0==Vc||Vc<Math.abs(1)?(Vc=1,Z=Wc/4):Z=Wc/(2*Math.PI)*Math.asin(1/Vc);Uc=Vc*Math.pow(2,-10*Y)*Math.sin(2*(1*Y-Z)*Math.PI/Wc)+1;Gc[Xc]=Uc;Y=Xc/1E4;Wc=Vc=0;Y/=.5;0==Wc&&(Wc=.3*1.5);0==Vc||Vc<Math.abs(1)?(Vc=1,Z=Wc/4):Z=Wc/(2*Math.PI)*Math.asin(1/Vc);Uc=1>Y?-.5*Vc*Math.pow(2,10*--Y)*Math.sin(2*(1*Y-Z)*Math.PI/Wc)+0:Vc*Math.pow(2,-10*--Y)*Math.sin(2*(1*Y-Z)*Math.PI/Wc)*.5+1;Hc[Xc]=Uc;Y=Xc/1E4;Ic[Xc]=-(Math.sqrt(1-Y*Y)-1);Y=Xc/1E4;Jc[Xc]=Math.sqrt(1-(Y-1)*(Y-1));
Y=Xc/1E4;Uc=1>(Y/=.5)?-.5*(Math.sqrt(1-Y*Y)-1)+0:.5*(Math.sqrt(1-(Y-=2)*Y)+1)+0;Kc[Xc]=Uc;Y=Xc/1E4;Z=0;0==Z&&(Z=1.70158);Uc=1*((Y=Y/1-1)*Y*((Z+1)*Y+Z)+1)+0;Qc[Xc]=Uc;Y=Xc/1E4;Z=0;0==Z&&(Z=1.70158);Uc=1>(Y/=.5)?.5*Y*Y*(((Z*=1.525)+1)*Y-Z)+0:.5*((Y-=2)*Y*(((Z*=1.525)+1)*Y+Z)+2)+0;Rc[Xc]=Uc}
function $c(g,e,b,p,m,q,f){this.name=g;this.value=0;this.mh(p);this.fl(m);this.Jh=b;this.Qa=e;this.duration=q;this.state=this.X=0;this.Ek=this.Fk=this.Bk=this.fh=!1;this.Cb=this.Ia=0;this.Rb=f;this.ye=1;this.Rh=!1}$c.prototype={};$c.prototype.mh=function(g){this.ka=parseFloat(g.split(",")[0]);this.eb=parseFloat(g.split(",")[1]);this.Cb=this.Ia=0};$c.prototype.fl=function(g){this.ga=parseFloat(g.split(",")[0]);this.Ya=parseFloat(g.split(",")[1]);isNaN(this.Ya)&&(this.Ya=this.ga)};
$c.prototype.Pl=function(g){if(0===this.state)return-1;1===this.state&&(this.X+=g);2===this.state&&(this.X-=g);3===this.state&&(this.state=0);if(4===this.state||6===this.state)this.X+=g*this.ye;5===this.state&&(this.X+=g*this.ye);return 0>this.X?(this.X=0,4===this.state?this.ye=1:6===this.state?(this.ye=1,this.Rh=!1):this.state=0,this.Ek=!0,0):this.X>this.duration?(this.X=this.duration,4===this.state?this.ye=-1:6===this.state?(this.ye=-1,this.Rh=!0):5===this.state?this.X=0:this.state=0,this.Bk=!0,
1):this.Rh?Tc(this.Jh,this.duration-this.X,this.duration,this.Rh):Tc(this.Jh,this.X,this.duration,this.Rh)};function ad(g){this.b=g}
(function(){var g=ad.prototype;g.na=function(b){this.behavior=b;this.b=b.b};g.na.prototype.K=function(){};g.ba=function(b,e){this.type=b;this.behavior=b.behavior;this.d=e;this.b=b.b};var e=g.ba.prototype;e.K=function(){this.ih=this.n[0];this.Ib=1==this.ih||2==this.ih||3==this.ih||4==this.ih;this.Qa=this.n[1];this.om=this.n[2];this.target=this.n[3];this.sl=this.n[4];this.El=!1;1===this.sl&&(this.target="relative("+this.target+")");this.duration=this.n[5];this.Rb=1===this.n[6];this.value=0;this.B={};
this.gp(this.Qa,this.om,"current",this.target,this.duration,this.Rb);1===this.n[0]&&this.Vi(0);2===this.n[0]&&this.Vi(2);3===this.n[0]&&this.Vi(3);4===this.n[0]&&this.Vi(4)};e.Qd=function(b,e){void 0===e&&(e="current");var g=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"");e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"");var q=this.value;if("current"===e)switch(b){case 0:g=this.d.x+","+this.d.y;break;case 1:g=this.d.width+","+this.d.height;break;case 2:g=this.d.width+","+this.d.height;break;case 3:g=this.d.width+
","+this.d.height;break;case 4:g=Ja(this.d.g)+","+Ja(this.d.g);break;case 5:g=100*this.d.opacity+","+100*this.d.opacity;break;case 6:g=q+","+q;break;case 7:g=this.d.x+","+this.d.y;break;case 8:g=this.d.x+","+this.d.y;break;case 9:g=void 0!==this.d.Ta?this.d.width/this.d.Ta.width+","+this.d.height/this.d.Ta.height:"1,1"}if("relative"===e.substring(0,8)){var f=e.match(/\((.*?)\)/);if(f)var a=parseFloat(f[1].split(",")[0]),l=parseFloat(f[1].split(",")[1]);isNaN(a)&&(a=0);isNaN(l)&&(l=0);switch(b){case 0:g=
this.d.x+a+","+(this.d.y+l);break;case 1:g=this.d.width+a+","+(this.d.height+l);break;case 2:g=this.d.width+a+","+(this.d.height+l);break;case 3:g=this.d.width+a+","+(this.d.height+l);break;case 4:g=Ja(this.d.g)+a+","+(Ja(this.d.g)+l);break;case 5:g=100*this.d.opacity+a+","+(100*this.d.opacity+l);break;case 6:g=q+a+","+q+a;break;case 7:g=this.d.x+a+","+this.d.y;break;case 8:g=this.d.x+","+(this.d.y+a);break;case 9:g=a+","+l}}return g};e.gp=function(b,e,g,q,f,a){g=this.Qd(b,g);q=this.Qd(b,q);void 0!==
this.B["default"]&&delete this.B["default"];this.B["default"]=new $c("default",b,e,g,q,f,a);this.B["default"].Ue=0};e.Gb=function(){JSON.stringify(this.B["default"]);return{playmode:this.ih,active:this.Ib,tweened:this.Qa,easing:this.om,target:this.target,targetmode:this.sl,useCurrent:this.El,duration:this.duration,enforce:this.Rb,value:this.value,tweenlist:JSON.stringify(this.B["default"])}};$c.gt=function(b,e,g,q,f,a,l,r){e=new $c(e,g,q,f,a,l,r);for(var c in b)e[c]=b[c];return e};e.cc=function(b){var e=
JSON.parse(b.tweenlist),e=$c.gt(e,e.name,e.Qa,e.Jh,e.ka+","+e.eb,e.ga+","+e.Ya,e.duration,e.Rb);this.B["default"]=e;this.ih=b.playmode;this.Ib=b.active;this.om=b.easing;this.target=b.target;this.sl=b.targetmode;this.El=b.useCurrent;this.duration=b.duration;this.Rb=b.enforce;this.value=b.value};e.Rx=function(b){1<b&&(b=1);0>b&&(b=0);for(var e in this.B){var g=this.B[e];g.Ia=0;g.Cb=0;g.state=3;g.X=b*g.duration;var q=g.Pl(0);this.Eo(g,q)}};e.Vi=function(b){for(var e in this.B){var g=this.B[e];if(this.El){var q=
this.Qd(g.Qa,"current"),f=this.Qd(g.Qa,this.target);g.mh(q);g.fl(f)}0===b&&(g.X=1E-6,g.Ia=0,g.Cb=0,g.fh=!0,g.state=1);1===b&&(g.state=1);if(2===b||4===b)g.X=1E-6,g.Ia=0,g.Cb=0,g.fh=!0,2==b&&(g.state=4),4==b&&(g.state=6);3===b&&(g.X=1E-6,g.Ia=0,g.Cb=0,g.fh=!0,g.state=5)}};e.$x=function(b){for(var e in this.B){var g=this.B[e];1===b&&(g.X=0);2===b&&(g.X=g.duration);g.state=3;var q=g.Pl(0);this.Eo(g,q)}};e.Gx=function(b){for(var e in this.B){var g=this.B[e];1===b&&(g.X=g.duration,g.Ia=0,g.Cb=0,g.Fk=!0);
g.state=2}};e.Eo=function(b,e){var g=1,q=1;0>this.d.width&&(g=-1);0>this.d.height&&(q=-1);0===b.Qa?b.Rb?(this.d.x=b.ka+(b.ga-b.ka)*e,this.d.y=b.eb+(b.Ya-b.eb)*e):(this.d.x+=(b.ga-b.ka)*e-b.Ia,this.d.y+=(b.Ya-b.eb)*e-b.Cb,b.Ia=(b.ga-b.ka)*e,b.Cb=(b.Ya-b.eb)*e):1===b.Qa?b.Rb?(this.d.width=g*b.ka+(b.ga-b.ka)*e*g,this.d.height=q*b.eb+(b.Ya-b.eb)*e*q):(this.d.width+=g*(b.ga-b.ka)*e-b.Ia,this.d.height+=q*(b.Ya-b.eb)*e-b.Cb,b.Ia=g*(b.ga-b.ka)*e,b.Cb=q*(b.Ya-b.eb)*e):2===b.Qa?b.Rb?this.d.width=g*b.ka+(b.ga-
b.ka)*e*g:(this.d.width+=g*(b.ga-b.ka)*e-b.Ia,b.Ia=g*(b.ga-b.ka)*e):3===b.Qa?b.Rb?this.d.height=q*b.eb+(b.Ya-b.eb)*e*q:(this.d.height+=q*(b.Ya-b.eb)*e-b.Cb,b.Cb=q*(b.Ya-b.eb)*e):4===b.Qa?b.Rb?(g=b.ka+(b.ga-b.ka)*e,this.d.g=O(E(g))):(g=(b.ga-b.ka)*e-b.Ia,this.d.g=O(this.d.g+E(g)),b.Ia=(b.ga-b.ka)*e):5===b.Qa?b.Rb?this.d.opacity=(b.ka+(b.ga-b.ka)*e)/100:(this.d.opacity+=((b.ga-b.ka)*e-b.Ia)/100,b.Ia=(b.ga-b.ka)*e):6===b.Qa?b.Rb?this.value=b.ka+(b.ga-b.ka)*e:(this.value+=(b.ga-b.ka)*e-b.Ia,b.Ia=(b.ga-
b.ka)*e):7===b.Qa?b.Rb?this.d.x=b.ka+(b.ga-b.ka)*e:(this.d.x+=(b.ga-b.ka)*e-b.Ia,b.Ia=(b.ga-b.ka)*e):8===b.Qa?b.Rb?this.d.y=b.eb+(b.Ya-b.eb)*e:(this.d.y+=(b.Ya-b.eb)*e-b.Cb,b.Cb=(b.Ya-b.eb)*e):9===b.Qa&&(g=b.ka+(b.ga-b.ka)*e,q=b.eb+(b.Ya-b.eb)*e,0>this.d.width&&(g=b.ka+(b.ga+b.ka)*-e),0>this.d.height&&(q=b.eb+(b.Ya+b.eb)*-e),b.Rb?(this.d.width=this.d.Ta.width*g,this.d.height=this.d.Ta.height*q):(0>this.d.width?(this.d.width=this.d.width/(-1+b.Ia)*g,b.Ia=g+1):(this.d.width=this.d.width/(1+b.Ia)*g,
b.Ia=g-1),0>this.d.height?(this.d.height=this.d.height/(-1+b.Cb)*q,b.Cb=q+1):(this.d.height=this.d.height/(1+b.Cb)*q,b.Cb=q-1)));this.d.H()};e.Pa=function(){var b=this.b.Sh(this.d),e=this.B["default"];0!==e.state&&(e.fh&&(this.b.trigger(ad.prototype.i.Kt,this.d),e.fh=!1),e.Fk&&(this.b.trigger(ad.prototype.i.It,this.d),e.Fk=!1),this.Ib=1==e.state||2==e.state||4==e.state||5==e.state||6==e.state,b=e.Pl(b),this.Eo(e,b),e.Bk&&(this.b.trigger(ad.prototype.i.ut,this.d),e.Bk=!1),e.Ek&&(this.b.trigger(ad.prototype.i.Ht,
this.d),e.Ek=!1))};g.i={};e=g.i;e.Jy=function(){return 0!==this.B["default"].state};e.Oy=function(){return 2==this.B["default"].state};e.By=function(b,e){var g=this.B["default"];return hc(g.X/g.duration,b,e)};e.Kt=function(){return void 0===this.B["default"]?!1:this.B["default"].fh};e.It=function(){return void 0===this.B["default"]?!1:this.B["default"].Fk};e.ut=function(){return void 0===this.B["default"]?!1:this.B["default"].Bk};e.Ht=function(){return void 0===this.B["default"]?!1:this.B["default"].Ek};
g.M={};e=g.M;e.Fz=function(b,e){this.El=1==e;this.Vi(b)};e.Ql=function(b){this.$x(b)};e.fz=function(b){this.Gx(b)};e.ez=function(b){this.Rx(b)};e.mz=function(b){isNaN(b)||0>b||void 0===this.B["default"]||(this.B["default"].duration=b)};e.qz=function(b){void 0!==this.B["default"]&&(this.B["default"].Rb=1===b)};e.sz=function(b){void 0!==this.B["default"]&&(b=this.Qd(this.B["default"].Qa,b),this.B["default"].mh(b))};e.zz=function(b,e,g){if(void 0!==this.B["default"]&&!isNaN(g)){var q=this.B["default"],
f=g+"";this.sl=e;var a="",l="";if(1===e){this.target="relative("+f+")";switch(b){case 0:a=this.d.x+g;l=q.Ya;break;case 1:a=q.ga;l=this.d.y+g;break;case 2:l=a=""+Ja(this.d.g+E(g));break;case 3:l=a=""+100*this.d.opacity+g;break;case 4:a=this.d.width+g;l=q.Ya;break;case 5:a=q.ga;l=this.d.height+g;break;case 6:l=a=g}f=a+","+l}else{switch(b){case 0:a=g;l=q.Ya;break;case 1:a=q.ga;l=g;break;case 2:l=a=g;break;case 3:l=a=g;break;case 4:a=g;l=q.Ya;break;case 5:a=q.ga;l=g;break;case 6:l=a=g}this.target=f=a+
","+l}b=this.Qd(this.B["default"].Qa,"current");f=this.Qd(this.B["default"].Qa,f);q.mh(b);q.fl(f)}};e.Bz=function(b){void 0!==this.B["default"]&&(this.B["default"].Qa=b)};e.nz=function(b){void 0!==this.B["default"]&&(this.B["default"].Jh=b)};e.Cz=function(b){var e=this.B["default"];this.value=b;6===e.Qa&&e.mh(this.Qd(e.Qa,"current"))};e.vz=function(b,e,g,q,f){if(void 0===this.B["default"])this.gp(b,e,initial,g,q,f);else{var a=this.B["default"];a.Qa=b;a.Jh=e;a.mh(this.Qd(b,"current"));a.fl(this.Qd(b,
g));a.duration=q;a.Rb=1===f}};g.$a={};g=g.$a;g.Gz=function(b){var e="N/A";switch(this.B["default"].state){case 0:e="paused";break;case 1:e="playing";break;case 2:e="reversing";break;case 3:e="seeking"}b.oc(e)};g.dz=function(b){b.u(this.B["default"].X/this.B["default"].duration)};g.Vs=function(b){b.u(this.B["default"].duration)};g.Hz=function(b){var e=this.B["default"],g="N/A";switch(e.Qa){case 0:g=e.ga;break;case 1:g=e.Ya;break;case 2:g=e.ga;break;case 3:g=e.ga;break;case 4:g=e.ga;break;case 5:g=
e.Ya;break;case 6:g=e.ga}b.u(g)};g.Lz=function(b){b.u(this.value)};g.Jz=function(b,e,g,q,f){q=1<q?1:q;f=Tc(f,0>q?0:q,1,!1);b.u(e+f*(g-e))}})();function bd(g){this.b=g;this.lo=this.hl=this.Ti=this.ko=0}
(function(){function g(){}var e=bd.prototype;e.na=function(b){this.behavior=b;this.b=b.b};e.na.prototype.K=function(){};e.ba=function(b,e){this.type=b;this.behavior=b.behavior;this.d=e;this.b=b.b};var b=e.ba.prototype;b.K=function(){this.enabled=0!==this.n[0]};b.Gb=function(){return{smg:this.behavior.ko,ss:this.behavior.Ti,se:this.behavior.hl,smd:this.behavior.lo}};b.cc=function(b){this.behavior.ko=b.smg;this.behavior.Ti=b.ss;this.behavior.hl=b.se;this.behavior.lo=b.smd};b.Pa=function(){};b.qg=function(){if(this.enabled){var b=
this.behavior.yk.Fe(),e=0,g=0,f,a,l,r=0;f=0;for(a=b.length;f<a;f++){a:{l=b[f];for(var c=void 0,d=void 0,t=void 0,c=0,d=l.I.length;c<d;++c)if(t=l.I[c],t.behavior instanceof bd){l=t;break a}l=null}l&&l.enabled&&(e+=b[f].x,g+=b[f].y,++r)}b=this.d.j.fb;a=this.b.Bb.fa;l=f=0;a>=this.behavior.Ti&&a<this.behavior.hl&&(f=this.behavior.ko*Math.min(this.b.sg,1),0===this.behavior.lo&&(f*=1-(a-this.behavior.Ti)/(this.behavior.hl-this.behavior.Ti)),a=Math.random()*Math.PI*2,l=Math.random()*f,f=Math.cos(a)*l,l*=
Math.sin(a));b.eo(e/r+f);b.fo(g/r+l)}};g.prototype.yg=function(b){this.enabled=0!==b};e.M=new g})();function sc(g){this.b=g}(function(){function g(){}var e=sc.prototype;e.na=function(b){this.behavior=b;this.b=b.b};e.na.prototype.K=function(){};e.ba=function(b,e){this.type=b;this.behavior=b.behavior;this.d=e;this.b=b.b};var b=e.ba.prototype;b.K=function(){this.d.ca.solidEnabled=0!==this.n[0]};b.Pa=function(){};e.i=new function(){};g.prototype.yg=function(b){this.d.ca.solidEnabled=!!b};e.M=new g})();
function rc(){return[uc,X,vc,xc,wc,tc,yc,Ac,bd,Dc,Bc,sc,ad,Cc,zc,P.prototype.i.Oo,tc.prototype.M.Qt,P.prototype.$a.wp,Bc.prototype.M.Ms,Bc.prototype.M.Xs,tc.prototype.$a.Rl,tc.prototype.$a.Sl,P.prototype.M.St,Bc.prototype.i.To,Bc.prototype.M.Zt,tc.prototype.i.ot,tc.prototype.i.Ts,tc.prototype.M.Rt,tc.prototype.M.$t,P.prototype.i.Ws,wc.prototype.M.Ut,Bc.prototype.M.yg,Ac.prototype.M.yg,tc.prototype.M.Wt,vc.prototype.i.Nl,P.prototype.i.ft,P.prototype.M.Pt,P.prototype.M.it,yc.prototype.i.Wo,X.prototype.M.Zs,
X.prototype.i.ct,X.prototype.M.Ps,P.prototype.i.Lo,X.prototype.M.Ot,X.prototype.i.xh,X.prototype.M.Ss,yc.prototype.i.dt,Ac.prototype.M.Yt,P.prototype.i.Us,uc.prototype.M.Tt,P.prototype.M.Vt,P.prototype.M.Ys,uc.prototype.M.Play]};
