/* ADOBE SYSTEMS INCORPORATED Copyright 2013 Adobe Systems Incorporated All Rights Reserved. NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms of the Adobe license agreement accompanying it. If you have received this file from a source other than Adobe, then your use, modification, or distribution of it requires the prior written permission of Adobe. Version: 0.2.0 Build number: 15.0.0.173 */ function aa(){return function(){}}function g(c){return function(d){this[c]=d}}function z(c){return function(){return this[c]}}var N;(function(c){(function(c){var f=function(){function b(a,h,b,e){this.v=a;this.re=h;this.Xd=b;this.xg=e}b.prototype.i=z("v");return b}();c.Yh=f})(c.e||(c.e={}))})(N||(N={})); (function(c){(function(d){var f=function(){function b(a,h){this.x=a;this.y=h}b.prototype.add=function(a){var h=new c.c.k(this.x,this.y);h.x+=a.x;h.y+=a.y;return h};b.prototype.sub=function(a){var h=new c.c.k(this.x,this.y);h.x-=a.x;h.y-=a.y;return h};return b}();d.k=f})(c.c||(c.c={}))})(N||(N={}));window.flwebgl=N;N.geom=N.c;N.c.Point=N.c.k; (function(c){(function(d){var f=function(){function b(a){this.rotate=function(a){var b=Math.cos(a);a=Math.sin(a);var e=this.b[0],k=this.b[4],l=this.b[12];this.b[0]=e*b-this.b[1]*a;this.b[1]=e*a+this.b[1]*b;this.b[4]=k*b-this.b[5]*a;this.b[5]=k*a+this.b[5]*b;this.b[12]=l*b-this.b[13]*a;this.b[13]=l*a+this.b[13]*b;this.L=1==this.b[0]&&1==this.b[5]&&0==this.b[1]&&0==this.b[4]&&0==this.b[12]&&0==this.b[13];return this};this.scale=function(a,b){this.b[0]*=a;this.b[5]*=b;this.b[4]*=a;this.b[1]*=b;this.b[12]*= a;this.b[13]*=b;this.L=1==this.b[0]&&1==this.b[5]&&0==this.b[1]&&0==this.b[4]&&0==this.b[12]&&0==this.b[13];return this};this.L=!1;this.b=Array(16);this.ja();void 0!==a&&6<=a.length&&this.bk(a)}b.prototype.C=function(){return(new c.c.u).copy(this)};b.prototype.ja=function(){this.b=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];this.L=!0;return this};b.prototype.hh=z("L");b.prototype.copy=function(a){for(var h=0;16>h;h++)this.b[h]=a.b[h];this.L=a.L;return this};b.prototype.Dm=function(){var a=Array(6);a[0]=this.b[0]; a[1]=this.b[1];a[2]=this.b[4];a[3]=this.b[5];a[4]=this.b[12];a[5]=this.b[13];return a};b.prototype.bk=function(a){void 0!==a&&6<=a.length&&(this.b[0]=a[0],this.b[1]=a[1],this.b[4]=a[2],this.b[5]=a[3],this.b[12]=a[4],this.b[13]=a[5],1!=a[0]||1!=a[3]||0!=a[1]||0!=a[2]||0!=a[4]||0!=a[5])&&(this.L=!1)};b.prototype.concat=function(a){if(this.L){if(a.L)return this.b[10]*=a.b[10],this;this.b[0]=a.b[0];this.b[1]=a.b[1];this.b[4]=a.b[4];this.b[5]=a.b[5];this.b[10]*=a.b[10];this.b[12]=a.b[12];this.b[13]=a.b[13]; this.L=a.L;return this}if(a.L)return this.b[10]*=a.b[10],this;var h=a.b[1]*this.b[0]+a.b[5]*this.b[1],b=a.b[0]*this.b[4]+a.b[4]*this.b[5],e=a.b[1]*this.b[4]+a.b[5]*this.b[5],k=a.b[0]*this.b[12]+a.b[4]*this.b[13]+a.b[12],l=a.b[1]*this.b[12]+a.b[5]*this.b[13]+a.b[13],c=a.b[10]*this.b[10];this.b[0]=a.b[0]*this.b[0]+a.b[4]*this.b[1];this.b[1]=h;this.b[4]=b;this.b[5]=e;this.b[10]=c;this.b[12]=k;this.b[13]=l;return this};b.prototype.Ga=function(a){if(this.L)a.L?this.b[10]*=a.b[10]:(this.b[0]=a.b[0],this.b[1]= a.b[1],this.b[4]=a.b[4],this.b[5]=a.b[5],this.b[10]*=a.b[10],this.b[12]=a.b[12],this.b[13]=a.b[13],this.L=a.L);else if(a.L)this.b[10]*=a.b[10];else{var h=this.b[1]*a.b[0]+this.b[5]*a.b[1],b=this.b[0]*a.b[4]+this.b[4]*a.b[5],e=this.b[1]*a.b[4]+this.b[5]*a.b[5],k=this.b[0]*a.b[12]+this.b[4]*a.b[13]+this.b[12],l=this.b[1]*a.b[12]+this.b[5]*a.b[13]+this.b[13],c=this.b[10]*a.b[10];this.b[0]=this.b[0]*a.b[0]+this.b[4]*a.b[1];this.b[1]=h;this.b[4]=b;this.b[5]=e;this.b[10]=c;this.b[12]=k;this.b[13]=l}};b.prototype.J= function(a){var h=new c.c.k(0,0);h.x=this.b[0]*a.x+this.b[4]*a.y+this.b[12];h.y=this.b[1]*a.x+this.b[5]*a.y+this.b[13];return h};b.prototype.ck=function(a){var h=new c.c.k(a.left,a.top),b=this.J(h);h.x=a.left+a.width;var e=this.J(h);h.y=a.top+a.height;var k=this.J(h);h.x=a.left;var l=this.J(h);a=Math.min(b.x,e.x,k.x,l.x);var h=Math.max(b.x,e.x,k.x,l.x),d=Math.min(b.y,e.y,k.y,l.y),b=Math.max(b.y,e.y,k.y,l.y);return new c.c.M(a,d,h-a,b-d)};b.prototype.Rb=function(){if(this.L)return this;var a=this.b[0], h=this.b[1],b=this.b[4],e=this.b[5],k=this.b[12],l=this.b[13],c=h*b-a*e;if(0==c)return this.ja(),this;this.ja();this.b[0]=-e/c;this.b[1]=h/c;this.b[4]=b/c;this.b[5]=-a/c;this.b[12]=(k*e-l*b)/c;this.b[13]=(l*a-k*h)/c;this.L=!1;return this};b.prototype.Hc=function(a){return this.b[0]!=a.b[0]||this.b[1]!=a.b[1]||this.b[4]!=a.b[4]||this.b[5]!=a.b[5]||this.b[12]!=a.b[12]||this.b[13]!=a.b[13]||this.b[10]!=a.b[10]?!1:!0};b.prototype.translate=function(a,h){this.b[12]+=a;this.b[13]+=h;if(0!==this.b[12]|| 0!==this.b[13])this.L=!1;return this};b.prototype.Km=function(){return this.L?!1:0==this.b[1]*this.b[4]-this.b[0]*this.b[5]};b.prototype.set=function(a,h,b){this.b[4*h+a]=b;2!=a&&2!=h&&(this.L=!1)};b.prototype.get=function(a,h){return this.b[4*h+a]};return b}();d.u=f})(c.c||(c.c={}))})(N||(N={}));window.flwebgl=N;N.geom=N.c;N.c.Matrix=N.c.u;N.c.u.prototype.clone=N.c.u.prototype.C;N.c.u.prototype.identity=N.c.u.prototype.ja;N.c.u.prototype.isIdentity=N.c.u.prototype.hh;N.c.u.prototype.copy=N.c.u.prototype.copy; N.c.u.prototype.equals=N.c.u.prototype.Hc;N.c.u.prototype.concat=N.c.u.prototype.concat;N.c.u.prototype.translate=N.c.u.prototype.translate;N.c.u.prototype.rotate=N.c.u.prototype.rotate;N.c.u.prototype.scale=N.c.u.prototype.scale;N.c.u.prototype.transformPoint=N.c.u.prototype.J;N.c.u.prototype.getValues=N.c.u.prototype.Dm;N.c.u.prototype.setValues=N.c.u.prototype.bk; (function(c){(function(c){var f=function(){function b(a,h,b,e){"undefined"===typeof e&&(e=255);this.Kf=a;this.wf=h;this.sf=b;this.xe=e;this.red=a;this.green=h;this.blue=b;this.alpha=e}b.prototype.Hc=function(a){return this.Kf!=a.Kf||this.wf!=a.wf||this.sf!=a.sf||this.xe!=a.xe?!1:!0};return b}();c.Tc=f})(c.c||(c.c={}))})(N||(N={}));window.flwebgl=N;N.geom=N.c;N.c.Color=N.c.Tc; (function(c){(function(d){var f;(function(a){a[a.k_None=0]="k_None";a[a.k_Extend=1]="k_Extend";a[a.k_Repeat=2]="k_Repeat";a[a.k_Reflect=3]="k_Reflect"})(f||(f={}));d.Un=function(){return aa()}();d.na=function(){return function(a,h,b,e){this.byteOffset=a;this.pc=h;this.type=b;this.size=e}}();d.di=function(){return function(a,h){this.vb=a;this.aa=h}}();var b=function(){return function(){this.ta=[]}}();d.Sn=b;d.Rd=function(){return function(a,h){this.ba=a;this.jc=h}}();f=function(){function a(a,n){this.cd= a;this.Sg={};this.Gi=void 0;this.je=new b;this.tl=n;this.le=0}a.prototype.nc=function(a){"undefined"===typeof a&&(a=void 0);return void 0===a?void 0:this.Sg[a]};a.prototype.rj=function(){var a=[],b;for(b in this.Sg)a.push(b);return a};a.prototype.sa=function(){return this.Gi.length};a.prototype.Sb=z("tl");a.prototype.i=function(){return-1};a.prototype.ze=function(a,b){this.Sg[a]=b;for(var e=0;ethis.left+this.width||a.left+a.widththis.top+this.height||a.top+a.height=b.Ej&&console.log("INFO: "+a)};b.warn=function(a){b.ef>=b.Gj&&console.log("WARN: "+a)};b.error=function(a){b.ef>=b.Dj&&console.log("ERROR: "+a)};b.Fj=-1;b.Dj=0;b.Gj=1;b.Ej=2;b.ef=b.Fj;return b}();c.w=f})(c.l||(c.l={}))})(N||(N={}));window.flwebgl=N;N.util=N.l;N.l.Logger=N.l.w;N.l.w.setLevel=N.l.w.Bn;N.l.w.info=N.l.w.info;N.l.w.warn=N.l.w.warn;N.l.w.error=N.l.w.error;N.l.w.kLevel_OFF=N.l.w.Fj; N.l.w.kLevel_Error=N.l.w.Dj;N.l.w.kLevel_Warn=N.l.w.Gj;N.l.w.kLevel_Info=N.l.w.Ej;(function(c){(function(c){c.ok=function(){return function(c,b){"undefined"===typeof c&&(c=-1);"undefined"===typeof b&&(b=-1);this.Nd=c;this.fh=b}}()})(c.e||(c.e={}))})(N||(N={})); (function(c){(function(c){var f=function(){function b(a,h,b,e){this.location=a;this.type=h;this.size=b;this.oo=e}b.Kd=0;b.Q=1;return b}();c.q=f;f=function(){return function(b){this.ue=b;for(b=this.si=this.co=0;bthis.hd&&(this.hd=e.i())}a=this.Am();h=a.length; for(b=0;bthis.hd&&(this.hd=e.i())}return++this.hd};b.prototype.zl=function(a){var h=this.Cd(a);h&&delete h;this.nd[a]=void 0};b.prototype.Al=function(a){var h=this.Af(a);h&&delete h;this.fc[a]=void 0};b.prototype.s=function(){for(var a in this.nd)this.zl(a);for(a in this.fc)this.Al(a)};return b}();c.vk=f})(c.l||(c.l={}))})(N||(N={}));(function(c){var d=function(){function c(b,a){this.og=a;this.Ql=b}c.prototype.xf=z("og");c.prototype.tj=z("Ql");return c}();c.Qd=d})(N||(N={})); window.flwebgl=N;N.TextureAtlas=N.Qd;N.Qd.prototype.getImageURL=N.Qd.prototype.xf;N.Qd.prototype.getTextureJSON=N.Qd.prototype.tj; (function(c){(function(d){var f=function(){function b(a){this.b=Array(9);a instanceof c.c.Wf?this.copy(a):a instanceof Array&&9==a.length?this.Lk(a):this.ja()}b.prototype.ja=function(){this.b=[1,0,0,0,1,0,0,0,1]};b.prototype.copy=function(a){for(var h=0;9>h;h++)this.b[h]=a.b[h]};b.prototype.concat=function(a){var h=this.b[1]*a.b[0]+this.b[4]*a.b[1]+this.b[7]*a.b[2],b=this.b[2]*a.b[0]+this.b[5]*a.b[1]+this.b[8]*a.b[2],e=this.b[0]*a.b[3]+this.b[3]*a.b[4]+this.b[6]*a.b[5],k=this.b[1]*a.b[3]+this.b[4]* a.b[4]+this.b[7]*a.b[5],l=this.b[2]*a.b[3]+this.b[5]*a.b[4]+this.b[8]*a.b[5],c=this.b[0]*a.b[6]+this.b[3]*a.b[7]+this.b[6]*a.b[8],d=this.b[1]*a.b[6]+this.b[4]*a.b[7]+this.b[7]*a.b[8],p=this.b[2]*a.b[6]+this.b[5]*a.b[7]+this.b[8]*a.b[8];this.b[0]=this.b[0]*a.b[0]+this.b[3]*a.b[1]+this.b[6]*a.b[2];this.b[1]=h;this.b[2]=b;this.b[3]=e;this.b[4]=k;this.b[5]=l;this.b[6]=c;this.b[7]=d;this.b[8]=p};b.prototype.J=function(a){var h=new c.c.k(0,0);h.x=this.b[0]*a.x+this.b[3]*a.y+this.b[6];h.y=this.b[1]*a.x+ this.b[4]*a.y+this.b[7];return h};b.prototype.Rb=function(){var a=this.b[0],h=this.b[1],b=this.b[3],e=this.b[4],k=this.b[6],l=this.b[7],c=a*(e-l)+b*(l-h)+k*(h-e);0!=c&&(this.b[0]=e-l,this.b[1]=l-h,this.b[2]=h-e,this.b[3]=k-b,this.b[4]=a-k,this.b[5]=b-a,this.b[6]=b*l-k*e,this.b[7]=k*h-a*l,this.b[8]=a*e-b*h,this.im(c))};b.prototype.im=function(a){this.b[0]/=a;this.b[1]/=a;this.b[2]/=a;this.b[3]/=a;this.b[4]/=a;this.b[5]/=a;this.b[6]/=a;this.b[7]/=a;this.b[8]/=a};b.prototype.Lk=function(a){for(var h= 0;9>h;h++)this.b[h]=a[h]};return b}();d.Wf=f})(c.c||(c.c={}))})(N||(N={})); (function(c){(function(d){var f=function(){function b(a){this.Da=a;this.ya=!0;this.Gb={};this.Gb[d.t.Z]=[];this.Gb[d.t.P]=[];this.Gb[d.t.bb]=[]}b.prototype.Fa=function(){return this.Da.Fa()};b.prototype.Je=function(a){this.Da.Fa()!=a&&(this.Da.Je(a),this.ya=!0)};b.prototype.Mc=z("ya");b.prototype.Ke=g("ya");b.prototype.ra=function(a){return this.Da.Lc().ra(a)};b.prototype.ab=function(a,h,b){var e=this.Gb[a][h];if(!e){var e=this.Da.Lc(),k=e.zf(a,h);if(!k)return;e=new c.e.nk(c.l.U.dm(e.i(),h,a),k,b.De(k.cd).i(), this);this.Gb[a][h]=e}return e};b.prototype.ub=function(){return this.Da.Pb()};b.prototype.La=function(){return this.Da.Jc()};b.prototype.s=function(){for(var a=[d.t.Z,d.t.P,d.t.bb],h=0;hthis.Bd())return!1;0>n&&(n=0);e&&b.Mf(-1);void 0!==b.getParent()&&b.getParent().removeChild(b);if(k)return this.Y.push({Vb:n,wd:b}),this.m.splice(n,0,null),!0;b.Of(this);b.Ea(this.ea,this.za);this.m.splice(n,0,b);n=new c.r.A(c.r.A.Uf,!0);b.dispatchEvent(n);if(b instanceof a){for(n=this;n.getParent();)n=n.getParent();n==this.gb.dh()&&0==b.Ce()&&(b.Md(),b.yh(),b.Sc(),b.Rf(),b.Sf(),b.Tf())}return!0};a.prototype.removeChild= function(a){return this.Ie(this.bh(a))};a.prototype.Ie=function(a){if(!(0>a||void 0==a||null==a||a>=this.Bd())){var b=this.ia(a);if(!this.Vd){var e=new c.r.A(c.r.A.Nh,!0);b.dispatchEvent(e)}b.Of(void 0);this.m.splice(a,1);b.pn();return b}};a.prototype.Bd=function(){return this.m.length};a.prototype.pj=function(){return this.m.slice(0)};a.prototype.ia=function(a,b){"undefined"===typeof b&&(b=!1);var e;if(aa||a>this.te))if(a==this.xa+1)!1===b?this.play():this.stop();else{this.Sc(!0);this.play();aa||a>=this.m.length||0>b|| b>=this.m.length)){var e=this.m.splice(a,1);this.m.splice(b,0,e[0]);for(e=0;ea&&k.Vb--,k.Vb>=b&&k.Vb++)}}};a.prototype.Mf=g("v");a.prototype.i=z("v");a.prototype.En=g("gb");a.prototype.Dn=g("ff");a.prototype.uc=function(a){b.prototype.uc.call(this,a);this.getParent()&&(a.ah()&&!a.$i)&&this.getParent().uc(a)};a.prototype.Md=function(a,b){"undefined"===typeof a&&(a=!1);"undefined"===typeof b&&(b=!1);var e=!0;this.jf||(e=!1);e&&(!this.ff&&this.xa== this.te-1)&&(e=!1);e&&(0==this.xa&&1==this.te)&&(e=!1);if(e){this.xa++;if(this.xa==this.te)this.Ki(a,b),this.Sc(a);else{a&&!b&&(this.Vd=!0);for(var e=this.Va.qj(this.xa),k=0;k=k&&a[l].Ka<=e&&(b=a[l].name,k=a[l].Ka);return b};a.prototype.Of=g("Ba");a.prototype.Ob=function(a){if(0>a)return-1;for(var b=0;ba.ia(e).i();)e++;e>b&&e--;a.vh(b,e);0===(c.W&4)&&c.Ne(!0, !1);return!0}return 0>this.Gk(a,e,k,c)?!1:!0};b.prototype.Gk=function(a,b,c,e){var k=null;void 0===b.Cd(this.Bg)?(k=c.Yg(this.Bg,this.X),e&&k.Md(!0,!1)):k=c.lj(this.Bg,this.X);k.Ld(this.hc,!1);void 0!==this.Hi&&k.Nf(this.Hi);for(e=a.Ob(this.hf)+1;a.ia(e)&&0>a.ia(e).i();)e++;return a.Tg(k,e,!1,!0)?e:-1};return b}();d.Xf=f})(c.B||(c.B={}))})(N||(N={})); (function(c){(function(c){var f=function(){function b(a){this.X=a[0]}b.prototype.execute=function(a){var b=a.Ob(this.X);if(0>b)return!1;var c=a.ia(b);a.Ie(b)&&c.s();return!0};return b}();c.Ph=f})(c.B||(c.B={}))})(N||(N={})); (function(c){(function(d){var f=function(){function b(a){this.X=a[0];this.hf=a[1];2b)return!1;for(var c=a.ia(b),e=a.Ob(this.hf)+1;a.ia(e)&&0>a.ia(e).i();)e++;e>b&&e--;b!=e&&a.vh(b,e);0===(c.W&1)&&c.Ld(this.hc,!1);return!0};return b}();d.bi=f})(c.B||(c.B={}))})(N||(N={})); (function(c){(function(d){var f=function(){function b(a){this.X=a[0];a=a.slice(1);this.eg=void 0!==a&&8==a.length?new c.c.p(a[0],a[1]/100,a[2],a[3]/100,a[4],a[5]/100,a[6],a[7]/100):new c.c.p}b.prototype.execute=function(a){var b=a.Ob(this.X);if(0>b)return!1;a=a.ia(b,!0);0===(a.W&2)&&a.Le(this.eg,!1);return!0};return b}();d.ai=f})(c.B||(c.B={}))})(N||(N={})); (function(c){(function(c){var f=function(){function b(a){this.X=a[0];this.Ul=1===a[1]}b.prototype.execute=function(a){var b=a.Ob(this.X);if(0>b)return!1;a=a.ia(b,!0);0===(a.W&4)&&a.Ne(this.Ul,!1);return!0};return b}();c.Vh=f})(c.B||(c.B={}))})(N||(N={})); (function(c){(function(d){var f=function(){function b(a){this.X=a[0];this.Td=new c.c.Tc(a[2],a[3],a[4],a[1])}b.prototype.execute=function(a,b){var d=a.Ob(this.X);if(0>d)return!1;d=a.ia(d,!0);if(d.Vi)return!0;var e=a.Jc().C(),k=new c.e.xk,d=new c.e.Ak(d,this.Td,e,k);return b.od.on(d)};return b}();d.Wh=f})(c.B||(c.B={}))})(N||(N={})); (function(c){(function(c){var f=function(){function b(a){this.X=a[0];this.Pl=a[1];this.ml=a[2]}b.prototype.execute=function(a,b,c,e){"undefined"===typeof c&&(c=!1);"undefined"===typeof e&&(e=!1);c&&!e||b.Dc.ln(this.X.toString(),this.Pl,this.ml);return!0};return b}();c.Mh=f})(c.media||(c.media={}))})(N||(N={})); (function(c){(function(d){var f=function(){return function(a,b,h,e,c,d){this.Pn=a;this.On=b;this.Nn=h;this.km=e;this.loop=c;this.rn=d}}();d.Tn=f;var b=function(){function b(a){this.T=a}b.prototype.gh=function(a,b,h){if(void 0!==b)for(var k=0;k=f.length&&0>=r.length&&0>=u.length&&0>=A.length)return C;var v=[],y=c.e.t.Z;0U?C+U:T,L=C-A,A=[],R=[],H=0,F=0,W=this.ec(7),J,y=B,B=Bv;v++){var y=b[h+v];A[C+f]=C;var B=0;u[r+B++]=a[2*y+0];u[r+B++]=a[2*y+1];u[r+B++]=c[v].x;u[r+B++]=c[v].y;for(u[r+B++]=e;Bc.e.d.la?e+c.e.d.la:b.length,k=this.af(a,b,k,e,d,1E5),h.push(k);return h};b.prototype.xl=function(a,h,e,d){for(var f=[],w=0,t=0,q=0,r=0,u=q=0,A=q=0,C=h.length+e.length+d.length,v=[b.Oe[0],b.Oe[1],b.Oe[2]],y=[new c.c.k(0,0),new c.c.k(0,1),new c.c.k(0,0)];tc.e.d.la?t+c.e.d.la:C,w=t-w,B=new n,q=r,r=r=n))for(d=new c.c.k(d.left+d.width/2,d.top+d.height/2),d.x/=k,d.y/=e,k=0;k=d||6!=n.length)){n=new c.c.u(n);n.Ga(b.Lm); var f=n.Km();f||n.Rb();for(var t=0,q=e;t=k||6!=e.length))for(e=new c.c.u(e),e.Rb(),d/=20,n/=20,e.set(0,0,e.get(0,0)/d),e.set(1,0,e.get(1,0)/n),e.set(0,1,e.get(0,1)/d),e.set(1,1,e.get(1,1)/n),e.set(0,3,e.get(0,3)/d),e.set(1,3,e.get(1,3)/n),n=0,d=h;nthis.fd&&(this.fd=1);0.5>this.Fc?this.Fc=0.5:1this.$b||this.$be;e++){var c=this.Di(this.Oa);this.wa.push(c)}}else return;this.kb=[];this.$n={};this.Yc={};this.Zc={};for(e=0;ethis.$b)return!1;for(var b=a.i(),e=a.sa(),c=0;cc?-c:0,f=f-(d+2*c);if(0===a||f>=a)f===a?b.push(e):(a=f,delete b,b=[e])}e=b[0];if(1a&&(b=this.Di(this.Oa));return b};a.prototype.Bi=function(a,b){for(var e=[],c=[],d=0;d=c){var e=this.Fk(c);if(void 0!==e)return this.Ib[b]=e,this.Hb[b]=c,this.Ec-=c,this.gf[b]=!0,this.pf(b),e}else{var d=this.al(c);if(void 0!==d){var l=this.Ib[d],f=this.Hb[d];this.Ib[d]=void 0;this.Hb[d]=void 0;this.pf(d);this.gf[b]=!0;this.Ib[b]=l;this.Hb[b]=f;this.pf(b); f-c>a.Mm&&(this.Hk({$:f-c,startOffset:l+c}),this.Ec+=f-c,this.Hb[b]=c);return e}}};a.prototype.mn=function(a){return void 0===this.Ib[a]?!1:!0};a.prototype.get=function(a){var b=this.Ib[a];void 0!==b&&(this.gf[a]=!0,this.pf(a));return b};a.prototype.end=aa();a.prototype.Im=function(){this.Ib={};this.Hb={};this.Ec=this.Ng;this.K=[{$:this.Ng,startOffset:0}];this.bc={};void 0!==this.fb.vf&&this.fb.vf(this.v)};a.prototype.s=function(){delete this.K;delete this.Ib;delete this.Hb;delete this.bc};a.prototype.Fk= function(a){for(var b=-1,e=0;em)d=m,e=f}void 0!==this.fb.Lf&&this.fb.Lf();if(void 0===c&&void 0!==e)return l[e].Sj;if(void 0!==c)return l[c].Sj};a.Rm=3;a.Mm=30;return a}()})(c.e||(c.e={}))})(N||(N={})); (function(c){(function(d){var f=function(){function b(){this.sd={}}b.prototype.O=g("a");b.prototype.Vg=function(a,b){this.Oa=a;this.Xc=b;this.gc=0;var c=a.ta[0].aa;if(void 0===this.sd[c]){var e=d.d.la*this.Oa.ta[0].aa*Float32Array.BYTES_PER_ELEMENT,k=this.a.createBuffer();this.a.ga(d.d.ARRAY_BUFFER,k);this.a.uf(d.d.ARRAY_BUFFER,e,d.d.DYNAMIC_DRAW);this.qe();this.sd[c]=k}this.Dg=this.sd[c];this.kb=[]};b.prototype.Zg=function(){this.a.$g(d.d.ARRAY_BUFFER)!==this.Dg&&(this.a.ga(d.d.ARRAY_BUFFER,this.Dg), this.qe());for(var a=[],b=0,n=this.Oa.ta[0].aa,e=0;ed.d.la)return!1;this.kb.push(a);this.gc+=a.sa();return!0};b.prototype.s=function(){for(var a in this.sd)this.a.deleteBuffer(this.sd[a]);this.Dg=this.kb=this.sd=void 0};b.prototype.qe=function(){for(var a=this.Oa.ta,b=0;bc.e.d.la)return!1;this.ag+=a.sa();this.F.push(a);return!0};b.prototype.s=function(){for(var a in this.yb)for(var b=0;bc?b.push(e):b.push(e-c-0.95*n)}a=-1;e=-d.d.la;for(h=0;he&&(e=b[h],a=h);return 0>e&&this.zb[this.qa].lengththis.v)return this.a.deleteProgram(this.h),c.l.w.error("Program linking failed."),!1;var a=this.a.getUniformLocation(this.h,"uSampler"),b=this.a.getUniformLocation(this.h,"uColorXformMultiplier"),f=this.a.getUniformLocation(this.h,"uColorXformOffset"),e=this.a.getUniformLocation(this.h, "uOverflowType"),k=this.a.getUniformLocation(this.h,"uFrame"),l=new d.q(this.a.getUniformLocation(this.h,"uMVMatrix"),d.d.FLOAT_MAT4,1,d.q.Kd),a=new d.q(a,d.d.SAMPLER_2D,1,d.q.Q),b=new d.q(b,d.d.FLOAT_VEC4,1,d.q.Q),f=new d.q(f,d.d.FLOAT_VEC4,1,d.q.Q),e=new d.q(e,d.d.INT,1,d.q.Q),k=new d.q(k,d.d.FLOAT_VEC4,1,d.q.Q);this.Pg=new d.Se([l,a,b,f,e,k]);this.o={};this.o.uMVMatrix=l;this.o.uSampler=a;this.o.uColorXformMultiplier=b;this.o.uColorXformOffset=f;this.o.uOverflowType=e;this.o.uFrame=k;a=this.a.getAttribLocation(this.h, "aLoopBlinnTextureCoord");e=this.a.getAttribLocation(this.h,"aIsConvex");k=this.a.getAttribLocation(this.h,"aTextureCoord");l=new d.R(this.a.getAttribLocation(this.h,"aVertexPosition"),"POSITION0",d.d.FLOAT,2);a=new d.R(a,"TEXCOORD0",d.d.FLOAT,2);e=new d.R(e,"TEXCOORD1",d.d.FLOAT,1);k=new d.R(k,"TEXCOORD2",d.d.FLOAT,2);this.wb=new c.e.Pe([l,a,e,k]);return!0};b.prototype.s=function(){this.a.deleteShader(this.fa);this.a.deleteShader(this.da);this.a.deleteProgram(this.h)};b.Pm=7;return b}();d.Ck=f})(c.e|| (c.e={}))})(N||(N={})); (function(c){(function(d){var f=function(){function b(){}b.prototype.i=z("v");b.prototype.O=function(a){this.a=a;this.V=new c.c.u;this.N=new c.c.u;return this.Ua()};b.prototype.Za=z("wb");b.prototype.e=function(a){for(var b=a.F.length,c=this.a.kf,e=0;ethis.v)return this.a.deleteProgram(this.h),c.l.w.error("Program linking failed."),!1;var a=this.a.getUniformLocation(this.h,"uMVMatrixInv"),b=this.a.getUniformLocation(this.h,"uSampler"),f=this.a.getUniformLocation(this.h,"uColorXformMultiplier"),e=this.a.getUniformLocation(this.h, "uColorXformOffset"),k=this.a.getUniformLocation(this.h,"uOverflowType"),l=this.a.getUniformLocation(this.h,"uFrame"),s=new d.q(this.a.getUniformLocation(this.h,"uMVMatrix"),d.d.FLOAT_MAT4,1,d.q.Kd),a=new d.q(a,d.d.FLOAT_VEC4,1,d.q.Kd),b=new d.q(b,d.d.SAMPLER_2D,1,d.q.Q),f=new d.q(f,d.d.FLOAT_VEC4,1,d.q.Q),e=new d.q(e,d.d.FLOAT_VEC4,1,d.q.Q),k=new d.q(k,d.d.INT,1,d.q.Q),l=new d.q(l,d.d.FLOAT_VEC4,1,d.q.Q);this.Pg=new d.Se([s,a,b,f,e,k,l]);this.o={};this.o.uMVMatrix=s;this.o.uMVMatrixInv=a;this.o.uSampler= b;this.o.uColorXformMultiplier=f;this.o.uColorXformOffset=e;this.o.uOverflowType=k;this.o.uFrame=l;a=this.a.getAttribLocation(this.h,"aLoopBlinnTextureCoord");b=this.a.getAttribLocation(this.h,"aIsConvex");e=this.a.getAttribLocation(this.h,"aTextureCoord");k=this.a.getAttribLocation(this.h,"adfdx");l=this.a.getAttribLocation(this.h,"adfdy");s=new d.R(this.a.getAttribLocation(this.h,"aVertexPosition"),"POSITION0",d.d.FLOAT,2);a=new d.R(a,"TEXCOORD0",d.d.FLOAT,2);b=new d.R(b,"TEXCOORD1",d.d.FLOAT,1); e=new d.R(e,"TEXCOORD2",d.d.FLOAT,2);k=new d.R(k,"TEXCOORD3",d.d.FLOAT,2);l=new d.R(l,"TEXCOORD4",d.d.FLOAT,2);this.wb=new c.e.Pe([s,a,b,k,l,e]);return!0};b.prototype.s=function(){this.a.deleteShader(this.fa);this.a.deleteShader(this.da);this.a.deleteProgram(this.h)};b.Pm=11;return b}();d.Dk=f})(c.e||(c.e={}))})(N||(N={})); (function(c){(function(d){var f=function(){function b(){}b.prototype.O=function(a){this.a=a;a.Ic("OES_standard_derivatives")?this.Pa=new d.Ck:this.Pa=new d.Dk;this.qc=[];this.qc[b.Ge]=new c.e.Qe;this.qc[b.Fd]=new c.e.Qe;this.gg=[];this.gg[b.Ge]=this.lm;this.gg[b.Fd]=this.Zl;return this.Pa.O(a)};b.prototype.e=function(a){this.md();this.Rg(a);a=[b.Ge,b.Fd];for(var c=0;cthis.v)return this.a.deleteProgram(this.h),c.l.w.error("Program linking failed."),!1;this.cg=this.a.getUniformLocation(this.h,"uColorMap");this.Mk=this.a.getUniformLocation(this.h,"uCoverageMap");this.lg=new Float32Array([-1,-1,1,-1,1,1,-1,1,0,0,1,0,1,1,0,1]);this.ce=new Uint16Array([0,1,2,0,2,3]);this.a.bufferData(d.d.ARRAY_BUFFER,this.lg,d.d.STATIC_DRAW);this.a.bufferData(d.d.ELEMENT_ARRAY_BUFFER,this.ce,d.d.STATIC_DRAW);return!0};b.prototype.s=function(){this.a.deleteBuffer(this.Db); this.a.deleteBuffer(this.Cb);this.a.deleteShader(this.fa);this.a.deleteShader(this.da);this.a.deleteProgram(this.h)};return b}();d.gk=f})(c.e||(c.e={}))})(N||(N={})); (function(c){(function(d){var f=function(){function b(){}b.prototype.i=z("v");b.prototype.O=function(a){this.a=a;if(!this.Ua())return!1;this.V=new c.c.u;return!0};b.prototype.Za=z("wb");b.prototype.Xb=function(){this.a.useProgram(this.h)};b.prototype.e=function(a,b){"undefined"===typeof b&&(b=void 0);switch(b){case d.ma.oc:this.yg(a);break;case d.ma.Tb:this.Ag(a);break;case d.ma.Pc:this.zg(a)}};b.prototype.yg=function(a){this.Gg();this.Ia(a,d.ma.oc)};b.prototype.Ag=function(a){this.Ig();this.Ia(a, d.ma.Tb)};b.prototype.zg=function(a){this.Hg();this.Ia(a,d.ma.Pc)};b.prototype.Ia=function(a,b){for(var c=a.F.length,e=this.a.kf,f=0;fthis.v)return this.a.deleteProgram(this.h),c.l.w.error("Program linking failed."),!1;var a=this.a.getUniformLocation(this.h,"uSamplers"),b=this.a.getUniformLocation(this.h,"uSamplerIndex"),f=this.a.getUniformLocation(this.h,"uColorXformMultiplier"),e=this.a.getUniformLocation(this.h, "uColorXformOffset"),k=this.a.getUniformLocation(this.h,"uOverflowTypeAndPassIndex"),l=this.a.getUniformLocation(this.h,"uFrame"),s=new d.q(this.a.getUniformLocation(this.h,"uMVMatrix"),d.d.FLOAT_MAT4,1,d.q.Kd),a=new d.q(a,d.d.SAMPLER_2D,this.bo,d.q.Q),b=new d.q(b,d.d.INT,1,d.q.Q),f=new d.q(f,d.d.FLOAT_VEC4,1,d.q.Q),e=new d.q(e,d.d.FLOAT_VEC4,1,d.q.Q),k=new d.q(k,d.d.INT_VEC2,1,d.q.Q),l=new d.q(l,d.d.FLOAT_VEC4,1,d.q.Q);this.Pg=new d.Se([s,a,f,e,k,l]);this.o={};this.o.uMVMatrix=s;this.o.uSamplers= a;this.o.uSamplerIndex=b;this.o.uColorXformMultiplier=f;this.o.uColorXformOffset=e;this.o.uOverflowTypeAndPassIndex=k;this.o.uFrame=l;a=this.a.getAttribLocation(this.h,"aLoopBlinnTextureCoord");k=this.a.getAttribLocation(this.h,"aIsConvex");l=this.a.getAttribLocation(this.h,"aTextureCoord");s=new d.R(this.a.getAttribLocation(this.h,"aVertexPosition"),"POSITION0",d.d.FLOAT,2);a=new d.R(a,"TEXCOORD0",d.d.FLOAT,2);k=new d.R(k,"TEXCOORD1",d.d.FLOAT,1);l=new d.R(l,"TEXCOORD2",d.d.FLOAT,2);this.wb=new c.e.Pe([s, a,k,l]);return!0};b.prototype.s=function(){this.a.deleteShader(this.fa);this.a.deleteShader(this.da);this.a.deleteProgram(this.h)};return b}();d.jk=f})(c.e||(c.e={}))})(N||(N={})); (function(c){(function(d){var f=function(){function b(){}b.prototype.i=z("v");b.prototype.O=function(a){this.a=a;if(!this.Ua())return!1;this.V=new c.c.u;this.N=new c.c.u;return!0};b.prototype.Za=z("wb");b.prototype.Xb=function(){this.a.useProgram(this.h)};b.prototype.e=function(a,b){"undefined"===typeof b&&(b=void 0);switch(b){case d.ma.oc:this.yg(a);break;case d.ma.Tb:this.Ag(a);break;case d.ma.Pc:this.zg(a)}};b.prototype.yg=function(a){this.Gg();this.Ia(a,d.ma.oc)};b.prototype.Ag=function(a){this.Ig(); this.Ia(a,d.ma.Tb)};b.prototype.zg=function(a){this.Hg();this.Ia(a,d.ma.Pc)};b.prototype.Ia=function(a,b){for(var c=a.F.length,e=this.a.kf,f=0;fthis.v)return this.a.deleteProgram(this.h),c.l.w.error("Program linking failed."),!1;var a=this.a.getUniformLocation(this.h,"uMVMatrixInv"),b=this.a.getUniformLocation(this.h,"uSampler"),f=this.a.getUniformLocation(this.h,"uColorXformMultiplier"),e=this.a.getUniformLocation(this.h, "uColorXformOffset"),k=this.a.getUniformLocation(this.h,"uOverflowTypeAndPassIndex"),l=this.a.getUniformLocation(this.h,"uFrame"),s=new d.q(this.a.getUniformLocation(this.h,"uMVMatrix"),d.d.FLOAT_MAT4,1,d.q.Kd),a=new d.q(a,d.d.FLOAT_VEC4,1,d.q.Kd),b=new d.q(b,d.d.SAMPLER_2D,1,d.q.Q),f=new d.q(f,d.d.FLOAT_VEC4,1,d.q.Q),e=new d.q(e,d.d.FLOAT_VEC4,1,d.q.Q),k=new d.q(k,d.d.INT_VEC2,1,d.q.Q),l=new d.q(l,d.d.FLOAT_VEC4,1,d.q.Q);this.Pg=new d.Se([s,a,b,f,e,k,l]);this.o={};this.o.uMVMatrix=s;this.o.uMVMatrixInv= a;this.o.uSampler=b;this.o.uColorXformMultiplier=f;this.o.uColorXformOffset=e;this.o.uOverflowTypeAndPassIndex=k;this.o.uFrame=l;a=this.a.getAttribLocation(this.h,"aLoopBlinnTextureCoord");b=this.a.getAttribLocation(this.h,"aIsConvex");e=this.a.getAttribLocation(this.h,"aTextureCoord");k=this.a.getAttribLocation(this.h,"adfdx");l=this.a.getAttribLocation(this.h,"adfdy");s=new d.R(this.a.getAttribLocation(this.h,"aVertexPosition"),"POSITION0",d.d.FLOAT,2);a=new d.R(a,"TEXCOORD0",d.d.FLOAT,2);b=new d.R(b, "TEXCOORD1",d.d.FLOAT,1);e=new d.R(e,"TEXCOORD2",d.d.FLOAT,2);k=new d.R(k,"TEXCOORD3",d.d.FLOAT,2);l=new d.R(l,"TEXCOORD4",d.d.FLOAT,2);this.wb=new c.e.Pe([s,a,b,k,l,e]);return!0};b.prototype.s=function(){this.a.deleteShader(this.fa);this.a.deleteShader(this.da);this.a.deleteProgram(this.h)};return b}();d.kk=f})(c.e||(c.e={}))})(N||(N={})); (function(c){(function(d){var f=function(){function b(){this.he=0}b.prototype.O=function(a){this.a=a;a.Ic("OES_standard_derivatives")?this.Pa=new d.jk:this.Pa=new d.kk;this.We=new d.gk;this.dg=new c.e.Qe;this.Ab=[];this.wg=[];this.he=0;this.Ve={};this.Xe={};return this.Pa.O(a)?this.We.O(a):!1};b.prototype.e=function(a){this.sl=this.a.eh();this.md();this.Rg(a);this.nf(b.oc);this.Ia(b.oc,this.dg);for(a=0;athis.v)return this.a.deleteProgram(this.h),c.l.w.error("Program linking failed."),!1;this.cg=this.a.getUniformLocation(this.h,"uColorMap");this.lg=new Float32Array([-1,-1,1,-1,1,1,-1,1,0,0,1,0,1,1,0,1]);this.ce=new Uint16Array([0,1,2,0,2,3]);this.a.bufferData(d.d.ARRAY_BUFFER,this.lg,d.d.STATIC_DRAW);this.a.bufferData(d.d.ELEMENT_ARRAY_BUFFER,this.ce,d.d.STATIC_DRAW);return!0};b.prototype.s=function(){this.a.deleteBuffer(this.Db);this.a.deleteBuffer(this.Cb); this.a.deleteShader(this.fa);this.a.deleteShader(this.da);this.a.deleteProgram(this.h)};return b}();d.rk=f})(c.e||(c.e={}))})(N||(N={})); (function(c){(function(d){var f=function(){function b(){}b.prototype.O=function(a){this.a=a;this.pg=new d.ma;var b=this.a.Ed();this.ha=this.a.xd(b.width,b.height);var b=this.a.lc(),f=new c.c.Tc(0,0,0,0),e=this.a.Ha(this.ha);this.a.Wb(f);this.a.clear(!0,!0,!1);this.a.Ha(e);this.a.Wb(b);this.lf=new d.rk;return this.lf.O(a)?this.pg.O(a):!1};b.prototype.e=function(a){this.md();var b=this.a.Ha(this.ha);this.pg.e(a);this.a.Ha(b);this.lf.Xb();this.a.Wg(this.ha);this.lf.e(void 0,this.ha.i())};b.prototype.md= function(){this.pe()};b.prototype.pe=aa();b.prototype.s=function(){this.lf.s();this.pg.s();this.a.Ae(this.ha)};return b}();d.tk=f})(c.e||(c.e={}))})(N||(N={})); (function(c){(function(d){var f=function(){function b(a,b){"undefined"===typeof b&&(b=void 0);this.H=new c.e.d(a,b);this.tg=b[d.d.Nc]===d.d.Fe?new d.mk:new d.ma;this.ke=void 0;this.oa=[]}b.prototype.O=function(){this.tg.O(this.H)};b.prototype.Ed=function(){return this.H.Ed()};b.prototype.Rc=function(a,b){"undefined"===typeof b&&(b=!0);this.H.Rc(a,b)};b.prototype.lc=function(){return this.H.lc()};b.prototype.Wb=function(a){this.H.Wb(a)};b.prototype.depthMask=function(a){this.H.depthMask(a)};b.prototype.depthFunc= function(a){this.H.depthFunc(a)};b.prototype.clearDepth=function(a){this.H.clearDepth(a)};b.prototype.yd=function(a){this.H.yd(a)};b.prototype.blendFunc=function(a,b){this.H.blendFunc(a,b)};b.prototype.clear=function(a,b,c){"undefined"===typeof b&&(b=!1);"undefined"===typeof c&&(c=!1);this.H.clear(a,b,c)};b.prototype.enable=function(a){this.H.enable(a)};b.prototype.disable=function(a){this.H.disable(a)};b.prototype.scissor=function(a){this.H.scissor(a)};b.prototype.jj=function(a){"undefined"===typeof a&& (a=b.Ij);switch(a){case b.Ij:this.Lg=this.tg;break;case b.Hj:void 0===this.ke&&(this.ke=new d.tk,this.ke.O(this.H)),this.Lg=this.ke}};b.prototype.mj=function(){this.oe();this.Lg.e(this.oa);for(var a=0;athis.Lb||this.Wc)return!1;if(a>this.Lb/2)return 0===this.m.length;if(0===this.m.length)return!0;for(var b=0;4>b;++b)if(this.m[b].kj(a))return!0;return!1};b.prototype.ij=function(a){if(!(a>this.Lb||this.Wc)){var b=void 0;if(a>this.Lb/2)0===this.m.length&&(b=this.Sa,this.Wc=!0);else{0===this.m.length&&this.Nl();for(var c=0;4>c&&(b=this.m[c].ij(a),void 0===b);++c);}return b}}; b.prototype.nj=function(a){var b=a.x-this.Sa.x,c=a.y-this.Sa.y;if(0>b||b>=this.Lb||0>c||c>=this.Lb)return!1;if(this.Wc)return 0===b&&0===c?(this.Wc=!1,!0):!1;if(0===this.m.length)return!1;var e=0;b>=this.Lb/2&&e++;c>=this.Lb/2&&(e+=2);if(a=this.m[e].nj(a))for(b=0;4>b;++b)if(a=this.m[b].Jm(),!a)return!1;this.m.length=0;return!0};b.prototype.Nl=function(){var a=this.Lb/2;this.m.push(new c.c.Od(new c.c.k(this.Sa.x,this.Sa.y),a));this.m.push(new c.c.Od(new c.c.k(this.Sa.x+a,this.Sa.y),a));this.m.push(new c.c.Od(new c.c.k(this.Sa.x, this.Sa.y+a),a));this.m.push(new c.c.Od(new c.c.k(this.Sa.x+a,this.Sa.y+a),a))};b.prototype.Jm=function(){return!this.Wc&&0===this.m.length};return b}();d.Od=f})(c.c||(c.c={}))})(N||(N={})); (function(c){(function(d){var f=function(){function b(a,b){this.ha=a;this.se=b;this.pl=0;this.wc={};this.ug=new c.c.Od(new c.c.k(0,0),d.d.MAX_TEXTURE_SIZE)}b.prototype.am=function(a,d){var f=c.l.U.vd(a),e=c.l.U.vd(d);return this.ug.kj(Math.max(f,e,b.Lh))};b.prototype.Yl=function(a,d){var f=c.l.U.vd(a),e=c.l.U.vd(d),f=this.ug.ij(Math.max(f,e,b.Lh));if(void 0!==f)return f=new c.c.M(f.x,f.y,a,d),e=c.l.U.fm(this.se.i(),this.pl++),this.se.$j(e,f),e};b.prototype.oj=function(a){a=this.se.$a(a);void 0!== a&&this.ug.nj(new c.c.k(a.left,a.top))};b.prototype.$a=function(a){return this.se.$a(a)};b.prototype.Dd=function(){return this.ha.i()};b.prototype.nn=function(a,b,c){void 0===this.wc[b]&&(this.wc[b]={color:c,Yj:[]});b=this.wc[b].Yj;c=a.length;for(var e=0;ee||b>e)){for(var k=void 0,l=0;2>l;++l){for(var s in this.Yb)if(this.Yb[s].am(a,b)){k=this.Yb[s];break}if(void 0===k&&this.hithis.xc&&(this.xc=1),this.bf=1E3/this.xc,this.I=this.Wd.Yg(void 0,-1),this.hb.Ln(this.I),this.I.Dn(this.Li),d.Uh):d.Gh};d.prototype.Rc=function(b){this.a.Rc(b);this.a.clear(!0,!0,!1)};d.prototype.play=function(b){"undefined"===typeof b&&(b=void 0);var a=0,h=this.kd;this.kd=!0;if(b&&b.length){for(var n=!1,e=0;ea&&this.bf-a=this.bf&&(this.Tl(),this.Qk())}}catch(h){throw c.l.w.error(h.message),this.stop(),h;}};d.prototype.Qk=function(){this.dc=(new Date).getTime();this.oe();this.a.jj();for(var b=this.oa.length,a=0;a