-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathc2runtime.js
427 lines (427 loc) · 204 KB
/
c2runtime.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,da,ea,I,ga,ha,ia,R,ja,na,oa,pa,ra,sa,S,ta,ua,T,xa,ya,za,Aa,V,Ba,Ca,Da,Ea,W,Fa,Ga,X,Ha,Ia,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac={},bc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(k){return k.__proto__}:function(k){return k.constructor.prototype});
(function(){function k(f,a,b,c){this.set(f,a,b,c)}function h(){this.Db=this.Cb=this.Gb=this.Fb=this.Ob=this.Nb=this.pb=this.ob=0}function d(f,a,b,c){f<a?b<c?(B=f<b?f:b,A=a>c?a:c):(B=f<c?f:c,A=a>b?a:b):b<c?(B=a<b?a:b,A=f>c?f:c):(B=a<c?a:c,A=f>b?f:b)}function p(){this.items=this.Nd=null;this.Qh=0;f&&(this.Nd=new Set);this.eh=[];this.Je=!0}function r(f){v[y++]=f}function b(){this.da=this.el=this.y=this.Kl=0}function a(f){this.mb=[];this.cj=this.fj=this.gj=this.ej=0;this.Hi(f)}function c(f,a){this.Nl=
f;this.Ml=a;this.cells={}}function u(f,a){this.Nl=f;this.Ml=a;this.cells={}}function e(f,a,b){var c;return F.length?(c=F.pop(),c.xm=f,c.x=a,c.y=b,c):new aa(f,a,b)}function g(f,a,b){this.xm=f;this.x=a;this.y=b;this.ub=new da}function l(f,a,b){var c;return J.length?(c=J.pop(),c.xm=f,c.x=a,c.y=b,c):new ea(f,a,b)}function t(f,a,b){this.xm=f;this.x=a;this.y=b;this.ub=[];this.Eg=!0;this.Jd=new da;this.kh=!1}function n(f,a){return f.zd-a.zd}I=function(f){window.console&&window.console.log&&window.console.log(f)};
ga=function(f){window.console&&window.console.error&&window.console.error(f)};ha=function(f){return"undefined"===typeof f};ia=function(f){return"number"===typeof f};R=function(f){return"string"===typeof f};ja=function(f){return 0<f&&0===(f-1&f)};na=function(f){--f;for(var a=1;32>a;a<<=1)f=f|f>>a;return f+1};oa=function(f){return 0>f?-f:f};pa=function(f,a){return f>a?f:a};ra=function(f,a){return f<a?f:a};sa=Math.PI;S=function(f){return 0<=f?f|0:(f|0)-1};ta=function(f){var a=f|0;return a===f?a:a+1};
ua=function(f,a,b,c,v,g,m,y){var l,n,q,d;f<b?(n=f,l=b):(n=b,l=f);v<m?(d=v,q=m):(d=m,q=v);if(l<d||n>q)return!1;a<c?(n=a,l=c):(n=c,l=a);g<y?(d=g,q=y):(d=y,q=g);if(l<d||n>q)return!1;l=v-f+m-b;n=g-a+y-c;f=b-f;a=c-a;v=m-v;g=y-g;y=oa(a*v-g*f);return oa(v*n-g*l)>y?!1:oa(f*n-a*l)<=y};k.prototype.set=function(f,a,b,c){this.left=f;this.top=a;this.right=b;this.bottom=c};k.prototype.pj=function(f){this.left=f.left;this.top=f.top;this.right=f.right;this.bottom=f.bottom};k.prototype.width=function(){return this.right-
this.left};k.prototype.height=function(){return this.bottom-this.top};k.prototype.offset=function(f,a){this.left+=f;this.top+=a;this.right+=f;this.bottom+=a;return this};k.prototype.normalize=function(){var f=0;this.left>this.right&&(f=this.left,this.left=this.right,this.right=f);this.top>this.bottom&&(f=this.top,this.top=this.bottom,this.bottom=f)};k.prototype.ov=function(f){return!(f.right<this.left||f.bottom<this.top||f.left>this.right||f.top>this.bottom)};k.prototype.pv=function(f,a,b){return!(f.right+
a<this.left||f.bottom+b<this.top||f.left+a>this.right||f.top+b>this.bottom)};k.prototype.Pb=function(f,a){return f>=this.left&&f<=this.right&&a>=this.top&&a<=this.bottom};k.prototype.Aj=function(f){return this.left===f.left&&this.top===f.top&&this.right===f.right&&this.bottom===f.bottom};T=k;h.prototype.Wg=function(f){this.ob=f.left;this.pb=f.top;this.Nb=f.right;this.Ob=f.top;this.Fb=f.right;this.Gb=f.bottom;this.Cb=f.left;this.Db=f.bottom};h.prototype.$q=function(f,a){if(0===a)this.Wg(f);else{var b=
Math.sin(a),c=Math.cos(a),v=f.left*b,g=f.top*b,m=f.right*b,b=f.bottom*b,y=f.left*c,l=f.top*c,n=f.right*c,c=f.bottom*c;this.ob=y-g;this.pb=l+v;this.Nb=n-g;this.Ob=l+m;this.Fb=n-b;this.Gb=c+m;this.Cb=y-b;this.Db=c+v}};h.prototype.offset=function(f,a){this.ob+=f;this.pb+=a;this.Nb+=f;this.Ob+=a;this.Fb+=f;this.Gb+=a;this.Cb+=f;this.Db+=a;return this};var B=0,A=0;h.prototype.Qo=function(f){d(this.ob,this.Nb,this.Fb,this.Cb);f.left=B;f.right=A;d(this.pb,this.Ob,this.Gb,this.Db);f.top=B;f.bottom=A};h.prototype.Pb=
function(f,a){var b=this.ob,c=this.pb,v=this.Nb-b,g=this.Ob-c,m=this.Fb-b,y=this.Gb-c,l=f-b,n=a-c,q=v*v+g*g,d=v*m+g*y,g=v*l+g*n,u=m*m+y*y,F=m*l+y*n,e=1/(q*u-d*d),v=(u*g-d*F)*e,q=(q*F-d*g)*e;if(0<=v&&0<q&&1>v+q)return!0;v=this.Cb-b;g=this.Db-c;q=v*v+g*g;d=v*m+g*y;g=v*l+g*n;e=1/(q*u-d*d);v=(u*g-d*F)*e;q=(q*F-d*g)*e;return 0<=v&&0<q&&1>v+q};h.prototype.He=function(f,a){if(a)switch(f){case 0:return this.ob;case 1:return this.Nb;case 2:return this.Fb;case 3:return this.Cb;case 4:return this.ob;default:return this.ob}else switch(f){case 0:return this.pb;
case 1:return this.Ob;case 2:return this.Gb;case 3:return this.Db;case 4:return this.pb;default:return this.pb}};h.prototype.mq=function(){return(this.ob+this.Nb+this.Fb+this.Cb)/4};h.prototype.nq=function(){return(this.pb+this.Ob+this.Gb+this.Db)/4};h.prototype.Ep=function(f){var a=f.mq(),b=f.nq();if(this.Pb(a,b))return!0;a=this.mq();b=this.nq();if(f.Pb(a,b))return!0;var c,v,g,m,y,l,n,q;for(n=0;4>n;n++)for(q=0;4>q;q++)if(a=this.He(n,!0),b=this.He(n,!1),c=this.He(n+1,!0),v=this.He(n+1,!1),g=f.He(q,
!0),m=f.He(q,!1),y=f.He(q+1,!0),l=f.He(q+1,!1),ua(a,b,c,v,g,m,y,l))return!0;return!1};xa=h;ya=function(f,a){for(var b in a)a.hasOwnProperty(b)&&(f[b]=a[b]);return f};za=function(f,a){var b,c;a=S(a);if(!(0>a||a>=f.length)){b=a;for(c=f.length-1;b<c;b++)f[b]=f[b+1];Aa(f,c)}};Aa=function(f,a){f.length=a};V=function(f){Aa(f,0)};Ba=function(f,a){V(f);var b,c;b=0;for(c=a.length;b<c;++b)f[b]=a[b]};Ca=function(f,a){f.push.apply(f,a)};Da=function(f,a){var b,c;b=0;for(c=f.length;b<c;++b)if(f[b]===a)return b;
return-1};Ea=function(f,a){var b=Da(f,a);-1!==b&&za(f,b)};W=function(f){return f/(180/sa)};Fa=function(f){return 180/sa*f};Ga=function(f){f%=360;0>f&&(f+=360);return f};X=function(f){f%=2*sa;0>f&&(f+=2*sa);return f};Ha=function(f){return Ga(Fa(f))};Ia=function(f){return X(W(f))};Ka=function(f,a,b,c){return Math.atan2(c-a,b-f)};La=function(f,a){if(f===a)return 0;var b=Math.sin(f),c=Math.cos(f),v=Math.sin(a),g=Math.cos(a),b=b*v+c*g;return 1<=b?0:-1>=b?sa:Math.acos(b)};Ma=function(f,a,b){var c=Math.sin(f),
v=Math.cos(f),g=Math.sin(a),m=Math.cos(a);return Math.acos(c*g+v*m)>b?0<v*g-c*m?X(f+b):X(f-b):X(a)};Na=function(f,a){var b=Math.sin(f),c=Math.cos(f),v=Math.sin(a),g=Math.cos(a);return 0>=c*v-b*g};Oa=function(f,a,b,c,v,g){if(0===b)return g?f:a;var m=Math.sin(b);b=Math.cos(b);f-=c;a-=v;var y=f*m;f=f*b-a*m;a=a*b+y;return g?f+c:a+v};Pa=function(f,a,b,c){f=b-f;a=c-a;return Math.sqrt(f*f+a*a)};Qa=function(f,a){return!f!==!a};Ra=function(f){for(var a in f)if(f.hasOwnProperty(a))return!0;return!1};Wa=function(f){for(var a in f)f.hasOwnProperty(a)&&
delete f[a]};var z=+new Date;Xa=function(){if("undefined"!==typeof window.performance){var f=window.performance;if("undefined"!==typeof f.now)return f.now();if("undefined"!==typeof f.webkitNow)return f.webkitNow();if("undefined"!==typeof f.mozNow)return f.mozNow();if("undefined"!==typeof f.msNow)return f.msNow()}return Date.now()-z};var m=!1,q=m=!1,D=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),
q=/(iphone|ipod|ipad)/i.test(navigator.userAgent),D=window.c2ejecta);var f=!m&&!D&&!q&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.he()?!1:f?this.Nd.has(a):this.items&&this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(f)this.Nd.has(a)||(this.Nd.add(a),this.Je=!1);else{var b=a.toString(),c=this.items;c?c.hasOwnProperty(b)||(c[b]=a,this.Qh++,this.Je=!1):(this.items={},this.items[b]=a,this.Qh=1,this.Je=!1)}};p.prototype.remove=
function(a){if(!this.he())if(f)this.Nd.has(a)&&(this.Nd["delete"](a),this.Je=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Qh--,this.Je=!1)}};p.prototype.clear=function(){this.he()||(f?this.Nd.clear():(this.items=null,this.Qh=0),V(this.eh),this.Je=!0)};p.prototype.he=function(){return 0===this.count()};p.prototype.count=function(){return f?this.Nd.size:this.Qh};var v=null,y=0;p.prototype.Aw=function(){if(!this.Je){if(f)V(this.eh),v=this.eh,y=0,this.Nd.forEach(r),
v=null,y=0;else{var a=this.eh;V(a);var b,c=0,g=this.items;if(g)for(b in g)g.hasOwnProperty(b)&&(a[c++]=g[b])}this.Je=!0}};p.prototype.ye=function(){this.Aw();return this.eh};da=p;new da;Ya=function(a,b){f?Za(a,b.Nd):$a(a,b.ye())};Za=function(f,a){var b,c,v,g;c=b=0;for(v=f.length;b<v;++b)g=f[b],a.has(g)||(f[c++]=g);Aa(f,c)};$a=function(f,a){var b,c,v,g;c=b=0;for(v=f.length;b<v;++b)g=f[b],-1===Da(a,g)&&(f[c++]=g);Aa(f,c)};b.prototype.add=function(f){this.y=f-this.Kl;this.el=this.da+this.y;this.Kl=this.el-
this.da-this.y;this.da=this.el};b.prototype.reset=function(){this.da=this.el=this.y=this.Kl=0};ab=b;bb=function(f){return f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.Hi=function(f){this.Pq=f;this.wd=f.length/2;this.mb.length=f.length;this.jj=this.kj=-1;this.To=0};a.prototype.Bg=function(){return!this.Pq.length};a.prototype.Ba=function(){for(var f=this.mb,a=f[0],b=a,c=f[1],v=c,g,m,y=1,l=this.wd;y<l;++y)m=2*y,g=f[m],m=f[m+1],g<a&&(a=g),g>b&&(b=g),m<c&&(c=m),m>v&&(v=m);this.ej=a;this.fj=
b;this.gj=c;this.cj=v};a.prototype.Wg=function(f,a,b){this.mb.length=8;this.wd=4;var c=this.mb;c[0]=f.left-a;c[1]=f.top-b;c[2]=f.right-a;c[3]=f.top-b;c[4]=f.right-a;c[5]=f.bottom-b;c[6]=f.left-a;c[7]=f.bottom-b;this.kj=f.right-f.left;this.jj=f.bottom-f.top;this.Ba()};a.prototype.Vg=function(f,a,b,c,v){this.mb.length=8;this.wd=4;var g=this.mb;g[0]=f.ob-a;g[1]=f.pb-b;g[2]=f.Nb-a;g[3]=f.Ob-b;g[4]=f.Fb-a;g[5]=f.Gb-b;g[6]=f.Cb-a;g[7]=f.Db-b;this.kj=c;this.jj=v;this.Ba()};a.prototype.Zq=function(f){this.wd=
f.wd;Ba(this.mb,f.mb);this.ej=f.ej;this.gj-f.gj;this.fj=f.fj;this.cj=f.cj};a.prototype.jg=function(f,a,b){if(this.kj!==f||this.jj!==a||this.To!==b){this.kj=f;this.jj=a;this.To=b;var c,v,g,m,y,l=0,n=1,q=this.Pq,d=this.mb;0!==b&&(l=Math.sin(b),n=Math.cos(b));b=0;for(g=this.wd;b<g;b++)c=2*b,v=c+1,m=q[c]*f,y=q[v]*a,d[c]=m*n-y*l,d[v]=y*n+m*l;this.Ba()}};a.prototype.Pb=function(f,a){var b=this.mb;if(f===b[0]&&a===b[1])return!0;var c,v,g,m=this.wd,y=this.ej-110,l=this.gj-101,n=this.fj+131,q=this.cj+120,
d,u,F=0,e=0;for(c=0;c<m;c++)v=2*c,g=(c+1)%m*2,d=b[v],v=b[v+1],u=b[g],g=b[g+1],ua(y,l,f,a,d,v,u,g)&&F++,ua(n,q,f,a,d,v,u,g)&&e++;return 1===F%2||1===e%2};a.prototype.Hh=function(f,a,b){var c=f.mb,v=this.mb;if(this.Pb(c[0]+a,c[1]+b)||f.Pb(v[0]-a,v[1]-b))return!0;var g,m,y,l,n,q,d,u,F,e,J,k;g=0;for(l=this.wd;g<l;g++)for(m=2*g,y=(g+1)%l*2,u=v[m],m=v[m+1],F=v[y],e=v[y+1],y=0,d=f.wd;y<d;y++)if(n=2*y,q=(y+1)%d*2,J=c[n]+a,n=c[n+1]+b,k=c[q]+a,q=c[q+1]+b,ua(u,m,F,e,J,n,k,q))return!0;return!1};cb=a;c.prototype.Oe=
function(f,a,b){var c;c=this.cells[f];return c?(c=c[a])?c:b?(c=e(this,f,a),this.cells[f][a]=c):null:b?(c=e(this,f,a),this.cells[f]={},this.cells[f][a]=c):null};c.prototype.Ec=function(f){return S(f/this.Nl)};c.prototype.Fc=function(f){return S(f/this.Ml)};c.prototype.update=function(f,a,b){var c,v,g,m,y;if(a)for(c=a.left,v=a.right;c<=v;++c)for(g=a.top,m=a.bottom;g<=m;++g)if(!b||!b.Pb(c,g))if(y=this.Oe(c,g,!1))y.remove(f),y.he()&&(y.ub.clear(),1E3>F.length&&F.push(y),this.cells[c][g]=null);if(b)for(c=
b.left,v=b.right;c<=v;++c)for(g=b.top,m=b.bottom;g<=m;++g)a&&a.Pb(c,g)||this.Oe(c,g,!0).Jm(f)};c.prototype.Qk=function(f,a){var b,c,v,g,m,y;b=this.Ec(f.left);v=this.Fc(f.top);c=this.Ec(f.right);for(m=this.Fc(f.bottom);b<=c;++b)for(g=v;g<=m;++g)(y=this.Oe(b,g,!1))&&y.dump(a)};db=c;u.prototype.Oe=function(f,a,b){var c;c=this.cells[f];return c?(c=c[a])?c:b?(c=l(this,f,a),this.cells[f][a]=c):null:b?(c=l(this,f,a),this.cells[f]={},this.cells[f][a]=c):null};u.prototype.Ec=function(f){return S(f/this.Nl)};
u.prototype.Fc=function(f){return S(f/this.Ml)};u.prototype.update=function(f,a,b){var c,v,g,m,y;if(a)for(c=a.left,v=a.right;c<=v;++c)for(g=a.top,m=a.bottom;g<=m;++g)if(!b||!b.Pb(c,g))if(y=this.Oe(c,g,!1))y.remove(f),y.he()&&(y.reset(),1E3>J.length&&J.push(y),this.cells[c][g]=null);if(b)for(c=b.left,v=b.right;c<=v;++c)for(g=b.top,m=b.bottom;g<=m;++g)a&&a.Pb(c,g)||this.Oe(c,g,!0).Jm(f)};u.prototype.Qk=function(f,a,b,c,v){var g,m;f=this.Ec(f);a=this.Fc(a);b=this.Ec(b);for(g=this.Fc(c);f<=b;++f)for(c=
a;c<=g;++c)(m=this.Oe(f,c,!1))&&m.dump(v)};u.prototype.Cv=function(f){var a,b,c,v,g;a=f.left;c=f.top;b=f.right;for(v=f.bottom;a<=b;++a)for(f=c;f<=v;++f)if(g=this.Oe(a,f,!1))g.Eg=!1};eb=u;var F=[];g.prototype.he=function(){return this.ub.he()};g.prototype.Jm=function(f){this.ub.add(f)};g.prototype.remove=function(f){this.ub.remove(f)};g.prototype.dump=function(f){Ca(f,this.ub.ye())};aa=g;var J=[];t.prototype.he=function(){if(!this.ub.length)return!0;if(this.ub.length>this.Jd.count())return!1;this.im();
return!0};t.prototype.Jm=function(f){this.Jd.contains(f)?(this.Jd.remove(f),this.Jd.he()&&(this.kh=!1)):this.ub.length?(this.ub[this.ub.length-1].Fd()>f.Fd()&&(this.Eg=!1),this.ub.push(f)):(this.ub.push(f),this.Eg=!0)};t.prototype.remove=function(f){this.Jd.add(f);this.kh=!0;30<=this.Jd.count()&&this.im()};t.prototype.im=function(){this.kh&&(this.Jd.count()===this.ub.length?this.reset():(Ya(this.ub,this.Jd),this.Jd.clear(),this.kh=!1))};t.prototype.Ut=function(){this.Eg||(this.ub.sort(n),this.Eg=
!0)};t.prototype.reset=function(){V(this.ub);this.Eg=!0;this.Jd.clear();this.kh=!1};t.prototype.dump=function(f){this.im();this.Ut();this.ub.length&&f.push(this.ub)};ea=t;var w="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");fb=function(f){return 0>=f||11<=f?"source-over":w[f-1]};gb=function(f,a,b){if(b)switch(f.Mb=b.ONE,f.Ib=b.ONE_MINUS_SRC_ALPHA,a){case 1:f.Mb=b.ONE;f.Ib=b.ONE;break;case 3:f.Mb=b.ONE;f.Ib=b.ZERO;break;
case 4:f.Mb=b.ONE_MINUS_DST_ALPHA;f.Ib=b.ONE;break;case 5:f.Mb=b.DST_ALPHA;f.Ib=b.ZERO;break;case 6:f.Mb=b.ZERO;f.Ib=b.SRC_ALPHA;break;case 7:f.Mb=b.ONE_MINUS_DST_ALPHA;f.Ib=b.ZERO;break;case 8:f.Mb=b.ZERO;f.Ib=b.ONE_MINUS_SRC_ALPHA;break;case 9:f.Mb=b.DST_ALPHA;f.Ib=b.ONE_MINUS_SRC_ALPHA;break;case 10:f.Mb=b.ONE_MINUS_DST_ALPHA,f.Ib=b.SRC_ALPHA}};hb=function(f){return Math.round(1E6*f)/1E6};ib=function(f,a){return"string"!==typeof f||"string"!==typeof a||f.length!==a.length?!1:f===a?!0:f.toLowerCase()===
a.toLowerCase()};jb=function(f){f=f.target;return!f||f===document||f===window||document&&document.body&&f===document.body||ib(f.tagName,"canvas")?!0:!1}})();var cc="undefined"!==typeof Float32Array?Float32Array:Array;function dc(k){var h=new cc(3);k&&(h[0]=k[0],h[1]=k[1],h[2]=k[2]);return h}
function ec(k){var h=new cc(16);k&&(h[0]=k[0],h[1]=k[1],h[2]=k[2],h[3]=k[3],h[4]=k[4],h[5]=k[5],h[6]=k[6],h[7]=k[7],h[8]=k[8],h[9]=k[9],h[10]=k[10],h[11]=k[11],h[12]=k[12],h[13]=k[13],h[14]=k[14],h[15]=k[15]);return h}function fc(k,h){h[0]=k[0];h[1]=k[1];h[2]=k[2];h[3]=k[3];h[4]=k[4];h[5]=k[5];h[6]=k[6];h[7]=k[7];h[8]=k[8];h[9]=k[9];h[10]=k[10];h[11]=k[11];h[12]=k[12];h[13]=k[13];h[14]=k[14];h[15]=k[15]}
function gc(k,h){var d=h[0],p=h[1];h=h[2];k[0]*=d;k[1]*=d;k[2]*=d;k[3]*=d;k[4]*=p;k[5]*=p;k[6]*=p;k[7]*=p;k[8]*=h;k[9]*=h;k[10]*=h;k[11]*=h}
function hc(k,h,d,p){p||(p=ec());var r,b,a,c,u,e,g,l,t=k[0],n=k[1];k=k[2];b=d[0];a=d[1];r=d[2];d=h[1];e=h[2];t===h[0]&&n===d&&k===e?(k=p,k[0]=1,k[1]=0,k[2]=0,k[3]=0,k[4]=0,k[5]=1,k[6]=0,k[7]=0,k[8]=0,k[9]=0,k[10]=1,k[11]=0,k[12]=0,k[13]=0,k[14]=0,k[15]=1):(d=t-h[0],e=n-h[1],g=k-h[2],l=1/Math.sqrt(d*d+e*e+g*g),d*=l,e*=l,g*=l,h=a*g-r*e,r=r*d-b*g,b=b*e-a*d,(l=Math.sqrt(h*h+r*r+b*b))?(l=1/l,h*=l,r*=l,b*=l):b=r=h=0,a=e*b-g*r,c=g*h-d*b,u=d*r-e*h,(l=Math.sqrt(a*a+c*c+u*u))?(l=1/l,a*=l,c*=l,u*=l):u=c=a=0,
p[0]=h,p[1]=a,p[2]=d,p[3]=0,p[4]=r,p[5]=c,p[6]=e,p[7]=0,p[8]=b,p[9]=u,p[10]=g,p[11]=0,p[12]=-(h*t+r*n+b*k),p[13]=-(a*t+c*n+u*k),p[14]=-(d*t+e*n+g*k),p[15]=1)}
(function(){function k(b){this.Se=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Uo=dc([0,0,100]);this.Yp=dc([0,0,0]);this.Fr=dc([0,1,0]);this.wo=dc([1,1,1]);this.cp=!0;this.ln=ec();this.Xc=ec();this.Qp=ec();this.Ul=ec();this.F=b;this.Ap()}function h(b,a,c){this.F=b;this.Ii=a;this.name=c;this.Wc=b.getAttribLocation(a,"aPos");this.Ze=b.getAttribLocation(a,"aTex");this.Wp=b.getUniformLocation(a,"matP");this.rk=b.getUniformLocation(a,"matMV");this.Jg=
b.getUniformLocation(a,"opacity");this.Xp=b.getUniformLocation(a,"samplerFront");this.fi=b.getUniformLocation(a,"samplerBack");this.Pf=b.getUniformLocation(a,"destStart");this.Of=b.getUniformLocation(a,"destEnd");this.hn=b.getUniformLocation(a,"seconds");this.gn=b.getUniformLocation(a,"pixelWidth");this.dn=b.getUniformLocation(a,"pixelHeight");this.ei=b.getUniformLocation(a,"layerScale");this.di=b.getUniformLocation(a,"layerAngle");this.hi=b.getUniformLocation(a,"viewOrigin");this.gi=b.getUniformLocation(a,
"scrollPos");this.hv=!!(this.gn||this.dn||this.hn||this.fi||this.Pf||this.Of||this.ei||this.di||this.hi||this.gi);this.gq=this.hq=-999;this.tk=1;this.bq=this.aq=0;this.dq=this.$p=this.Zp=1;this.jq=this.iq=this.lq=this.kq=this.cq=0;this.Um=[];this.fq=ec();this.Jg&&b.uniform1f(this.Jg,1);this.Xp&&b.uniform1i(this.Xp,0);this.fi&&b.uniform1i(this.fi,1);this.Pf&&b.uniform2f(this.Pf,0,0);this.Of&&b.uniform2f(this.Of,1,1);this.ei&&b.uniform1f(this.ei,1);this.di&&b.uniform1f(this.di,0);this.hi&&b.uniform2f(this.hi,
0,0);this.gi&&b.uniform2f(this.gi,0,0);this.Df=!1}function d(b,a){this.type=b;this.G=a;this.F=a.F;this.Uc=this.Nc=this.Aq=0;this.ya=this.dd=null;this.br=[]}k.prototype.Ap=function(){var b=this.F,a;this.Rp=1;this.Kf=this.Xe=null;this.tj=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.DEPTH_TEST);this.Sp=b.ONE;this.Pp=b.ONE_MINUS_SRC_ALPHA;this.tl=new Float32Array(16E3);this.fl=new Float32Array(16E3);this.zn=
new Float32Array(32E3);this.yn=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.yn);b.bufferData(b.ARRAY_BUFFER,this.zn.byteLength,b.DYNAMIC_DRAW);this.Ti=Array(4);this.Oi=Array(4);for(a=0;4>a;a++)this.Ti[a]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Ti[a]),b.bufferData(b.ARRAY_BUFFER,this.tl.byteLength,b.DYNAMIC_DRAW),this.Oi[a]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Oi[a]),b.bufferData(b.ARRAY_BUFFER,this.fl.byteLength,b.DYNAMIC_DRAW);this.Yd=0;this.lv=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,
this.lv);for(var c=new Uint16Array(12E3),d=a=0;12E3>a;)c[a++]=d,c[a++]=d+1,c[a++]=d+2,c[a++]=d,c[a++]=d+2,c[a++]=d+3,d+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,c,b.STATIC_DRAW);this.Qg=this.Sd=0;this.nb=[];a=this.Sl({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}",
"<default>");this.nb.push(a);a=this.Sl({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.nb.push(a);for(var e in ic)ic.hasOwnProperty(e)&&
this.nb.push(this.Sl(ic[e],"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}",e));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.Ud=[];this.Dd=0;this.nc=this.Yb=!1;this.Zo=this.Uh=-1;this.sh=null;this.xu=b.createFramebuffer();this.Tq=null;this.pf=dc([0,0,0]);b=b.getParameter(b.ALIASED_POINT_SIZE_RANGE);
this.Ev=b[0];this.mn=b[1];2048<this.mn&&(this.mn=2048);this.Pd(0)};h.prototype.lo=function(b){var a=this.fq;if(a[0]!==b[0]||a[1]!==b[1]||a[2]!==b[2]||a[3]!==b[3]||a[4]!==b[4]||a[5]!==b[5]||a[6]!==b[6]||a[7]!==b[7]||a[8]!==b[8]||a[9]!==b[9]||a[10]!==b[10]||a[11]!==b[11]||a[12]!==b[12]||a[13]!==b[13]||a[14]!==b[14]||a[15]!==b[15])fc(b,this.fq),this.F.uniformMatrix4fv(this.rk,!1,b)};k.prototype.Sl=function(b,a,c){var d=this.F,e=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(e,b.src);d.compileShader(e);
if(!d.getShaderParameter(e,d.COMPILE_STATUS))return d.deleteShader(e),null;var g=d.createShader(d.VERTEX_SHADER);d.shaderSource(g,a);d.compileShader(g);if(!d.getShaderParameter(g,d.COMPILE_STATUS))return d.deleteShader(e),d.deleteShader(g),null;a=d.createProgram();d.attachShader(a,e);d.attachShader(a,g);d.linkProgram(a);if(!d.getProgramParameter(a,d.LINK_STATUS))return d.deleteShader(e),d.deleteShader(g),d.deleteProgram(a),null;d.useProgram(a);d.deleteShader(e);d.deleteShader(g);c=new h(d,a,c);c.Cj=
b.Cj||0;c.Dj=b.Dj||0;c.Tl=!!b.Tl;c.Gl=!!b.Gl;c.V=b.V||[];b=0;for(e=c.V.length;b<e;b++)c.V[b][1]=d.getUniformLocation(a,c.V[b][0]),c.Um.push(0),d.uniform1f(c.V[b][1],0);return c};k.prototype.um=function(b){var a,c;a=0;for(c=this.nb.length;a<c;a++)if(this.nb[a].name===b)return a;return-1};k.prototype.Oq=function(b,a,c){var d=this.Xc,e=this.ln,g=[0,0,0,0,0,0,0,0];g[0]=d[0]*b+d[4]*a+d[12];g[1]=d[1]*b+d[5]*a+d[13];g[2]=d[2]*b+d[6]*a+d[14];g[3]=d[3]*b+d[7]*a+d[15];g[4]=e[0]*g[0]+e[4]*g[1]+e[8]*g[2]+e[12]*
g[3];g[5]=e[1]*g[0]+e[5]*g[1]+e[9]*g[2]+e[13]*g[3];g[6]=e[2]*g[0]+e[6]*g[1]+e[10]*g[2]+e[14]*g[3];g[7]=-g[2];0!==g[7]&&(g[7]=1/g[7],g[4]*=g[7],g[5]*=g[7],g[6]*=g[7],c[0]=(.5*g[4]+.5)*this.width,c[1]=(.5*g[5]+.5)*this.height)};k.prototype.Ug=function(b,a,c){if(this.width!==b||this.height!==a||c){this.$d();this.width=b;this.height=a;this.F.viewport(0,0,b,a);a=b/a;var d=this.ln,e;e=1*Math.tan(45*Math.PI/360);a*=e;b=-a;c=-e;d||(d=ec());var g=a-b,l=e-c;d[0]=2/g;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/l;d[6]=
0;d[7]=0;d[8]=(a+b)/g;d[9]=(e+c)/l;d[10]=-1001/999;d[11]=-1;d[12]=0;d[13]=0;d[14]=-2E3/999;d[15]=0;hc(this.Uo,this.Yp,this.Fr,this.Xc);b=[0,0];a=[0,0];this.Oq(0,0,b);this.Oq(1,1,a);this.wo[0]=1/(a[0]-b[0]);this.wo[1]=-1/(a[1]-b[1]);b=0;for(a=this.nb.length;b<a;b++)c=this.nb[b],c.Df=!1,c.Wp&&(this.F.useProgram(c.Ii),this.F.uniformMatrix4fv(c.Wp,!1,this.ln));this.F.useProgram(this.nb[this.Uh].Ii);this.F.bindTexture(this.F.TEXTURE_2D,null);this.F.activeTexture(this.F.TEXTURE1);this.F.bindTexture(this.F.TEXTURE_2D,
null);this.F.activeTexture(this.F.TEXTURE0);this.Kf=this.Xe=null}};k.prototype.Md=function(){hc(this.Uo,this.Yp,this.Fr,this.Xc);gc(this.Xc,this.wo)};k.prototype.translate=function(b,a){if(0!==b||0!==a){this.pf[0]=b;this.pf[1]=a;this.pf[2]=0;var c=this.Xc,d=this.pf,e=d[0],g=d[1],d=d[2];c[12]=c[0]*e+c[4]*g+c[8]*d+c[12];c[13]=c[1]*e+c[5]*g+c[9]*d+c[13];c[14]=c[2]*e+c[6]*g+c[10]*d+c[14];c[15]=c[3]*e+c[7]*g+c[11]*d+c[15]}};k.prototype.scale=function(b,a){if(1!==b||1!==a)this.pf[0]=b,this.pf[1]=a,this.pf[2]=
1,gc(this.Xc,this.pf)};k.prototype.Kn=function(b){if(0!==b){var a=this.Xc,c,d=Math.sin(b);b=Math.cos(b);var e=a[0],g=a[1],l=a[2],k=a[3],n=a[4],h=a[5],p=a[6],r=a[7];c?a!==c&&(c[8]=a[8],c[9]=a[9],c[10]=a[10],c[11]=a[11],c[12]=a[12],c[13]=a[13],c[14]=a[14],c[15]=a[15]):c=a;c[0]=e*b+n*d;c[1]=g*b+h*d;c[2]=l*b+p*d;c[3]=k*b+r*d;c[4]=e*-d+n*b;c[5]=g*-d+h*b;c[6]=l*-d+p*b;c[7]=k*-d+r*b}};k.prototype.Rd=function(){for(var b=!1,a=0;16>a;a++)if(this.Qp[a]!==this.Xc[a]){b=!0;break}b&&(b=this.ad(),b.type=5,b.ya?
fc(this.Xc,b.ya):b.ya=ec(this.Xc),fc(this.Xc,this.Qp),this.nc=this.Yb=!1)};d.prototype.Jt=function(){this.F.bindTexture(this.F.TEXTURE_2D,this.dd)};d.prototype.Kt=function(){var b=this.F;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.dd);b.activeTexture(b.TEXTURE0)};d.prototype.Gt=function(){var b=this.Aq,a=this.G;a.tj=b;a=a.sh;a.Jg&&a.tk!==b&&(a.tk=b,this.F.uniform1f(a.Jg,b))};d.prototype.Dt=function(){this.F.drawElements(this.F.TRIANGLES,this.Uc,this.F.UNSIGNED_SHORT,2*this.Nc)};d.prototype.Ft=
function(){this.F.blendFunc(this.Nc,this.Uc)};d.prototype.Mt=function(){var b,a,c,d=this.G.nb,e=this.G.Zo;b=0;for(a=d.length;b<a;b++)c=d[b],b===e&&c.rk?(c.lo(this.ya),c.Df=!0):c.Df=!1;fc(this.ya,this.G.Ul)};d.prototype.Et=function(){var b=this.F,a=this.G;this.dd?(a.Kf===this.dd&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),a.Kf=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,a.xu),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.dd,0)):
(b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};d.prototype.Bt=function(){var b=this.F;0===this.Nc?(b.clearColor(this.ya[0],this.ya[1],this.ya[2],this.ya[3]),b.clear(b.COLOR_BUFFER_BIT)):(b.enable(b.SCISSOR_TEST),b.scissor(this.ya[0],this.ya[1],this.ya[2],this.ya[3]),b.clearColor(0,0,0,0),b.clear(this.F.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST))};d.prototype.Ct=function(){var b=this.F,a=this.G,c=a.nb[1];b.useProgram(c.Ii);!c.Df&&
c.rk&&(c.lo(a.Ul),c.Df=!0);b.enableVertexAttribArray(c.Wc);b.bindBuffer(b.ARRAY_BUFFER,a.yn);b.vertexAttribPointer(c.Wc,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.Nc/4,this.Uc);c=a.sh;b.useProgram(c.Ii);0<=c.Wc&&(b.enableVertexAttribArray(c.Wc),b.bindBuffer(b.ARRAY_BUFFER,a.Ti[a.Yd]),b.vertexAttribPointer(c.Wc,2,b.FLOAT,!1,0,0));0<=c.Ze&&(b.enableVertexAttribArray(c.Ze),b.bindBuffer(b.ARRAY_BUFFER,a.Oi[a.Yd]),b.vertexAttribPointer(c.Ze,2,b.FLOAT,!1,0,0))};d.prototype.Ht=function(){var b=this.F,
a=this.G,c=a.nb[this.Nc];a.Zo=this.Nc;a.sh=c;b.useProgram(c.Ii);!c.Df&&c.rk&&(c.lo(a.Ul),c.Df=!0);c.Jg&&c.tk!==a.tj&&(c.tk=a.tj,b.uniform1f(c.Jg,a.tj));0<=c.Wc&&(b.enableVertexAttribArray(c.Wc),b.bindBuffer(b.ARRAY_BUFFER,a.Ti[a.Yd]),b.vertexAttribPointer(c.Wc,2,b.FLOAT,!1,0,0));0<=c.Ze&&(b.enableVertexAttribArray(c.Ze),b.bindBuffer(b.ARRAY_BUFFER,a.Oi[a.Yd]),b.vertexAttribPointer(c.Ze,2,b.FLOAT,!1,0,0))};d.prototype.It=function(){var b,a,c=this.G.sh,d=this.F;b=this.ya;c.fi&&this.G.Kf!==this.dd&&
(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.dd),this.G.Kf=this.dd,d.activeTexture(d.TEXTURE0));var e=b[0];c.gn&&e!==c.hq&&(c.hq=e,d.uniform1f(c.gn,e));e=b[1];c.dn&&e!==c.gq&&(c.gq=e,d.uniform1f(c.dn,e));e=b[2];a=b[3];!c.Pf||e===c.aq&&a===c.bq||(c.aq=e,c.bq=a,d.uniform2f(c.Pf,e,a));e=b[4];a=b[5];!c.Of||e===c.Zp&&a===c.$p||(c.Zp=e,c.$p=e,d.uniform2f(c.Of,e,a));e=b[6];c.ei&&e!==c.dq&&(c.dq=e,d.uniform1f(c.ei,e));e=b[7];c.di&&e!==c.cq&&(c.cq=e,d.uniform1f(c.di,e));e=b[8];a=b[9];!c.hi||
e===c.kq&&a===c.lq||(c.kq=e,c.lq=a,d.uniform2f(c.hi,e,a));e=b[10];a=b[11];!c.gi||e===c.iq&&a===c.jq||(c.iq=e,c.jq=a,d.uniform2f(c.gi,e,a));c.hn&&d.uniform1f(c.hn,Xa()/1E3);if(c.V.length)for(b=0,a=c.V.length;b<a;b++)e=this.br[b],e!==c.Um[b]&&(c.Um[b]=e,d.uniform1f(c.V[b][1],e))};k.prototype.ad=function(){this.Dd===this.Ud.length&&this.Ud.push(new d(0,this));return this.Ud[this.Dd++]};k.prototype.$d=function(){if(0!==this.Dd&&!this.F.isContextLost()){var b=this.F;0<this.Qg&&(b.bindBuffer(b.ARRAY_BUFFER,
this.yn),b.bufferSubData(b.ARRAY_BUFFER,0,this.zn.subarray(0,this.Qg)),a&&0<=a.Wc&&"<point>"===a.name&&b.vertexAttribPointer(a.Wc,4,b.FLOAT,!1,0,0));if(0<this.Sd){var a=this.sh;b.bindBuffer(b.ARRAY_BUFFER,this.Ti[this.Yd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.tl.subarray(0,this.Sd));a&&0<=a.Wc&&"<point>"!==a.name&&b.vertexAttribPointer(a.Wc,2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.Oi[this.Yd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.fl.subarray(0,this.Sd));a&&0<=a.Ze&&"<point>"!==a.name&&
b.vertexAttribPointer(a.Ze,2,b.FLOAT,!1,0,0)}for(var c,b=0,a=this.Dd;b<a;b++)switch(c=this.Ud[b],c.type){case 1:c.Dt();break;case 2:c.Jt();break;case 3:c.Gt();break;case 4:c.Ft();break;case 5:c.Mt();break;case 6:c.Et();break;case 7:c.Bt();break;case 8:c.Ct();break;case 9:c.Ht();break;case 10:c.It();break;case 11:c.Kt()}this.Qg=this.Sd=this.Dd=0;this.nc=this.Yb=!1;this.Yd++;4<=this.Yd&&(this.Yd=0)}};k.prototype.jf=function(b){if(b!==this.Rp){var a=this.ad();a.type=3;this.Rp=a.Aq=b;this.nc=this.Yb=
!1}};k.prototype.gc=function(b){if(b!==this.Xe){var a=this.ad();a.type=2;this.Xe=a.dd=b;this.nc=this.Yb=!1}};k.prototype.hf=function(b,a){if(b!==this.Sp||a!==this.Pp){var c=this.ad();c.type=4;c.Nc=b;c.Uc=a;this.Sp=b;this.Pp=a;this.nc=this.Yb=!1}};k.prototype.Vq=function(){this.hf(this.F.ONE,this.F.ONE_MINUS_SRC_ALPHA)};k.prototype.Bi=function(b,a,c,d,e,g,l,k){15992<=this.Sd&&this.$d();var n=this.Sd,h=this.tl,p=this.fl;if(this.Yb)this.Ud[this.Dd-1].Uc+=6;else{var r=this.ad();r.type=1;r.Nc=n/4*3;r.Uc=
6;this.Yb=!0;this.nc=!1}h[n]=b;p[n++]=0;h[n]=a;p[n++]=0;h[n]=c;p[n++]=1;h[n]=d;p[n++]=0;h[n]=e;p[n++]=1;h[n]=g;p[n++]=1;h[n]=l;p[n++]=0;h[n]=k;p[n++]=1;this.Sd=n};k.prototype.Kd=function(b,a,c,d,e,g,l,k,n){15992<=this.Sd&&this.$d();var h=this.Sd,p=this.tl,r=this.fl;if(this.Yb)this.Ud[this.Dd-1].Uc+=6;else{var m=this.ad();m.type=1;m.Nc=h/4*3;m.Uc=6;this.Yb=!0;this.nc=!1}var m=n.left,q=n.top,D=n.right;n=n.bottom;p[h]=b;r[h++]=m;p[h]=a;r[h++]=q;p[h]=c;r[h++]=D;p[h]=d;r[h++]=q;p[h]=e;r[h++]=D;p[h]=g;
r[h++]=n;p[h]=l;r[h++]=m;p[h]=k;r[h++]=n;this.Sd=h};k.prototype.Sv=function(b,a,c,d){7996<=this.Qg&&this.$d();var e=this.Qg,g=this.zn;if(this.nc)this.Ud[this.Dd-1].Uc++;else{var l=this.ad();l.type=8;l.Nc=e;l.Uc=1;this.nc=!0;this.Yb=!1}g[e++]=b;g[e++]=a;g[e++]=c;g[e++]=d;this.Qg=e};k.prototype.Pd=function(b){if(this.Uh!==b){if(!this.nb[b]){if(0===this.Uh)return;b=0}var a=this.ad();a.type=9;this.Uh=a.Nc=b;this.nc=this.Yb=!1}};k.prototype.xi=function(b){b=this.nb[b];return!(!b.Pf&&!b.Of)};k.prototype.Bn=
function(b){b=this.nb[b];return!!(b.Pf||b.Of||b.Tl)};k.prototype.Yv=function(b){b=this.nb[b];return 0!==b.Cj||0!==b.Dj};k.prototype.Nu=function(b){return this.nb[b].Cj};k.prototype.Ou=function(b){return this.nb[b].Dj};k.prototype.rp=function(b,a){return this.nb[b].V[a][2]};k.prototype.Nk=function(b){return this.nb[b].Gl};k.prototype.Tg=function(b,a,c,d,e,g,l,h,n,k,p,r,m,q){var D=this.nb[this.Uh],f,v;if(D.hv||q.length){f=this.ad();f.type=10;f.ya?fc(this.Xc,f.ya):f.ya=ec();v=f.ya;v[0]=a;v[1]=c;v[2]=
d;v[3]=e;v[4]=g;v[5]=l;v[6]=h;v[7]=n;v[8]=k;v[9]=p;v[10]=r;v[11]=m;D.fi?f.dd=b:f.dd=null;if(q.length)for(c=f.br,c.length=q.length,b=0,a=q.length;b<a;b++)c[b]=q[b];this.nc=this.Yb=!1}};k.prototype.clear=function(b,a,c,d){var e=this.ad();e.type=7;e.Nc=0;e.ya||(e.ya=ec());e.ya[0]=b;e.ya[1]=a;e.ya[2]=c;e.ya[3]=d;this.nc=this.Yb=!1};k.prototype.clearRect=function(b,a,c,d){if(!(0>c||0>d)){var e=this.ad();e.type=7;e.Nc=1;e.ya||(e.ya=ec());e.ya[0]=b;e.ya[1]=a;e.ya[2]=c;e.ya[3]=d;this.nc=this.Yb=!1}};k.prototype.Xv=
function(){this.$d();this.F.flush()};var p=[],r={};k.prototype.ot=function(){p.length=0;r={}};k.prototype.Ig=function(b,a,c,d){a=!!a;c=!!c;var e=b.src+","+a+","+c+(a?",undefined":""),g=null;if("undefined"!==typeof b.src&&r.hasOwnProperty(e))return g=r[e],g.ij++,g;this.$d();var l=this.F,h=ja(b.width)&&ja(b.height),g=l.createTexture();l.bindTexture(l.TEXTURE_2D,g);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=l.RGBA,k=l.RGBA,A=l.UNSIGNED_BYTE;if(d&&!this.Se)switch(d){case 1:k=n=l.RGB;break;
case 2:A=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:A=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:k=n=l.RGB,A=l.UNSIGNED_SHORT_5_6_5}if(!h&&a){d=document.createElement("canvas");d.width=na(b.width);d.height=na(b.height);var z=d.getContext("2d");z.webkitImageSmoothingEnabled=c;z.mozImageSmoothingEnabled=c;z.msImageSmoothingEnabled=c;z.imageSmoothingEnabled=c;z.drawImage(b,0,0,b.width,b.height,0,0,d.width,d.height);l.texImage2D(l.TEXTURE_2D,0,n,k,A,d)}else l.texImage2D(l.TEXTURE_2D,0,n,k,A,b);a?(l.texParameteri(l.TEXTURE_2D,
l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));c?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),h&&this.cp?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,
l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.Xe=null;g.oh=b.width;g.nh=b.height;g.ij=1;g.So=e;p.push(g);return r[e]=g};k.prototype.Xd=function(b,a,c,d){this.$d();var e=this.F;this.Se&&(d=!1);var g=e.createTexture();e.bindTexture(e.TEXTURE_2D,g);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,b,a,0,e.RGBA,d?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,
e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,c?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,c?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.Xe=null;g.oh=b;g.nh=a;p.push(g);return g};k.prototype.Ew=function(b,a,c){this.$d();var d=this.F;this.Se&&(c=!1);d.bindTexture(d.TEXTURE_2D,a);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,b)}catch(e){console&&
console.error&&console.error("Error updating WebGL texture: ",e)}d.bindTexture(d.TEXTURE_2D,null);this.Xe=null};k.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.ij&&1<b.ij?b.ij--:(this.$d(),b===this.Xe&&(this.F.bindTexture(this.F.TEXTURE_2D,null),this.Xe=null),b===this.Kf&&(this.F.activeTexture(this.F.TEXTURE1),this.F.bindTexture(this.F.TEXTURE_2D,null),this.F.activeTexture(this.F.TEXTURE0),this.Kf=null),Ea(p,b),"undefined"!==typeof b.So&&delete r[b.So],this.F.deleteTexture(b)))};
k.prototype.Od=function(b){if(b!==this.Tq){var a=this.ad();a.type=6;this.Tq=a.dd=b;this.nc=this.Yb=!1}};kb=k})();
(function(){function k(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function h(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function d(f){if(f&&(f.getContext||f.dc)&&!f.c2runtime){f.c2runtime=this;var a=this;this.Re=(this.Jh=/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.ac=!!f.dc;this.Fp="undefined"!==typeof window.AppMobi||this.ac;this.qd=!!window.c2cocoonjs;this.rd=!!window.c2ejecta;this.qd&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.rd&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",
function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.Ua=this.ac||this.qd||this.rd;this.Se=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Jp=/tizen/i.test(navigator.userAgent);this.Yj=/android/i.test(navigator.userAgent)&&!this.Jp&&!this.Se;this.Sm=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Se;this.Np=/ipad/i.test(navigator.userAgent);this.Ph=this.Sm||this.Np||this.rd;this.wv=this.Sm&&/os\s6/i.test(navigator.userAgent);this.Ih=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Se;this.Mm=/amazonwebappplatform/i.test(navigator.userAgent);this.rv=/firefox/i.test(navigator.userAgent);this.Ip=/safari/i.test(navigator.userAgent)&&!this.Ih&&!this.Se;this.uv=/windows/i.test(navigator.userAgent);this.Ue="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Lp=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.vv=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Ag=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Qm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Kp=this.Lp||this.vv||this.Qm;this.qv=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.Zj=this.Yj&&!this.Ih&&!this.Jh&&!this.rv&&!this.Mm&&!this.Ua;this.devicePixelRatio=1;this.Te=this.Re||this.Jh||this.Fp||this.qd||this.Yj||this.Ph||this.Ag||this.Qm||this.qv||this.Jp||this.rd;this.Te||(this.Te=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Ue||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.Ue=!0);this.canvas=f;this.Vo=document.getElementById("c2canvasdiv");this.xa=this.G=this.F=null;this.lm="";this.Hj=!1;this.xq=this.yq=0;this.canvas.oncontextmenu=function(f){f.preventDefault&&f.preventDefault();return!1};this.canvas.onselectstart=function(f){f.preventDefault&&f.preventDefault();return!1};this.ac&&(window.c2runtime=this);this.Ue&&(window.ondragover=function(f){f.preventDefault();return!1},window.ondrop=function(f){f.preventDefault();return!1},require("nw.gui").App.clearCache());
this.Zj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=f.width;this.height=f.height;this.X=this.width;this.W=this.height;this.rj=this.width;this.qj=this.height;this.Wh=window.innerWidth;this.Vh=window.innerHeight;this.zu=!1;this.la=!0;this.Lh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.H=[];this.Za=[];this.$m={};this.vc=[];this.fm={};this.ae=[];this.gh=[];this.nl=[];this.bt=[];this.ct=[];this.Op=this.jr=null;
this.vf={};this.Nm=this.Qe=!1;this.sd=0;this.Pm=!1;this.nd=[];this.ie=this.Lb=this.mk=this.On="";this.Mi=this.er=!1;this.Ql=this.ji=this.Me=this.xf=0;this.ag=1;this.rc=new ab;this.ze=new ab;this.yk=this.Mj=this.wh=this.ed=this.Mf=this.km=this.fk=0;this.Vd=null;this.xj=[];this.em=[];this.Bj=-1;this.jn=[[]];this.fo=this.sk=0;this.Pk(null);this.yh=this.rq=this.pi=0;this.Ni=[];this.bo=this.Fn=-1;this.Hf=!0;this.qk=0;this.Kh=!1;this.rw=0;this.ig=null;this.oc=this.vp=!1;this.vq=new da;this.rn=new da;this.wq=
new da;this.Di=[];this.xd=new cb([]);this.$n=new cb([]);this.Fe=[];this.Dh={};this.kg={};this.hg={};this.fh={};this.Po={};this.Vp=this.lk=this.uc=this.Lc=this.Up=this.kk=this.ma=null;this.dh=this.Rm=!1;this.mm=[null,null];this.Af=0;this.hm="";this.le={};this.Li=this.Nf=null;this.hr="";this.xk=[];this.aw()}}function p(f){f.target.result.createObjectStore("saves",{keyPath:"slot"})}function r(f,a,b,c){var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=p;g.onerror=c;g.onsuccess=function(g){g=g.target.result;
g.onerror=c;g.transaction(["saves"],"readwrite").objectStore("saves").put({slot:f,data:a}).onsuccess=b}}function b(f,a,b){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=p;c.onerror=b;c.onsuccess=function(c){c=c.target.result;c.onerror=b;var g=c.transaction(["saves"]).objectStore("saves").get(f);g.onsuccess=function(){g.result?a(g.result.data):a(null)}}}function a(){I("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 c(f){var a,b={};for(a in f)!f.hasOwnProperty(a)||f[a]instanceof da||f[a]&&"undefined"!==typeof f[a].Lx||(b[a]=f[a]);return b}d.prototype.aw=function(){var f=this,a;this.Ag?a=new ActiveXObject("Microsoft.XMLHTTP"):a=new XMLHttpRequest;var b="data.js";if(this.Lp||this.Ag||this.Qm)b="data.json";a.open("GET",b,!0);var c=!1;if(!this.Ua&&"response"in a&&"responseType"in a)try{a.responseType="json",c="json"===a.responseType}catch(g){c=
!1}if(!c&&"responseType"in a)try{a.responseType="text"}catch(m){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(d){}this.Ag?a.onreadystatechange=function(){4===a.readyState&&f.ok(JSON.parse(a.responseText))}:(a.onload=function(){if(c)f.ok(a.response);else if(f.rd){var b=a.responseText,b=b.substr(b.indexOf("{"));f.ok(JSON.parse(b))}else f.ok(JSON.parse(a.responseText))},a.onerror=function(f){ga("Error requesting "+b+":");ga(f)});a.send()};d.prototype.nv=function(){var f=
this,a,b,c,g,m,d,l,n,q;this.Ve=(!this.Ua||this.rd)&&this.Cw&&!this.Zj;0===this.Xb&&this.Ph&&(this.Ve=!1);this.devicePixelRatio=this.Ve?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Bb();b=!(!this.zu&&(!this.Dl||this.Ue||this.Kp||this.Ag||this.Jh||this.Re||this.Mm));0<this.Xb&&this.setSize(k(),h(),!0);try{this.St&&(this.qd||this.rd||!this.Ua)&&(a={alpha:b,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.F=this.canvas.getContext("webgl",
a)||this.canvas.getContext("experimental-webgl",a))}catch(e){}if(this.F){this.F.getExtension("WEBGL_debug_renderer_info");this.Ua||(this.xb=document.createElement("canvas"),jQuery(this.xb).appendTo(this.canvas.parentNode),this.xb.oncontextmenu=function(){return!1},this.xb.onselectstart=function(){return!1},this.xb.width=this.rj,this.xb.height=this.qj,jQuery(this.xb).css({width:this.rj+"px",height:this.qj+"px"}),this.Mq(),this.xn=this.xb.getContext("2d"));this.G=new kb(this.F,this.Te);this.G.Ug(this.canvas.width,
this.canvas.height);this.G.cp=0!==this.Nt;this.xa=null;this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();f.Hv();I("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){f.G.Ap();f.G.Ug(f.G.width,f.G.height,!0);f.Lc=null;f.uc=null;f.mm[0]=null;f.mm[1]=null;f.Iv();f.la=!0;I("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(b=this.H.length;a<b;a++)for(m=this.H[a],c=0,
g=m.R.length;c<g;c++)l=m.R[c],l.zb=this.G.um(l.id),this.dh=this.dh||this.G.xi(l.zb);a=0;for(b=this.vc.length;a<b;a++){n=this.vc[a];c=0;for(g=n.R.length;c<g;c++)l=n.R[c],l.zb=this.G.um(l.id);c=0;for(g=n.Y.length;c<g;c++)for(q=n.Y[c],m=0,d=q.R.length;m<d;m++)l=q.R[m],l.zb=this.G.um(l.id),this.dh=this.dh||this.G.xi(l.zb)}}else{if(0<this.Xb&&this.ac){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.xa=AppMobi.canvas.getContext("2d");try{this.xa.samplingMode=
this.ka?"smooth":"sharp",this.xa.globalScale=1,this.xa.HTML5CompatibilityMode=!0,this.xa.imageSmoothingEnabled=this.ka}catch(p){}0!==this.width&&0!==this.height&&(this.xa.width=this.width,this.xa.height=this.height)}this.xa||(this.qd?(a={antialias:!!this.ka,alpha:b},this.xa=this.canvas.getContext("2d",a)):(a={alpha:b},this.xa=this.canvas.getContext("2d",a)),this.xa.webkitImageSmoothingEnabled=this.ka,this.xa.mozImageSmoothingEnabled=this.ka,this.xa.msImageSmoothingEnabled=this.ka,this.xa.imageSmoothingEnabled=
this.ka);this.xn=this.xb=null}this.rr=function(a){f.Aa(!1,a)};window==window.top||this.Ua||this.Kp||this.Ag||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.qd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(I("Reloading for continuous preview"),this.mk="__c2_continuouspreview",this.Mi=!0),this.Qv&&
!this.Te&&(jQuery(window).focus(function(){f.setSuspended(!1)}),jQuery(window).blur(function(){f.setSuspended(!0)})));this.Ua||(a=function(f){if(jb(f)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",
a),document.addEventListener("mousedown",a));0===this.Xb&&this.Ve&&1<this.devicePixelRatio&&this.setSize(this.lb,this.kb,!0);this.Br();this.cv();this.go();this.ea={}};d.prototype.setSize=function(f,a,b){var c=0,g=0,m=0,d=0,d=0,l=this.wv&&this.Ip&&!navigator.standalone&&!this.Ua&&!this.Re;l&&(a+=60);if(this.Wh!==f||this.Vh!==a||b){this.Wh=f;this.Vh=a;var n=this.Xb,q=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Kh)&&!this.Re;if(q||0!==
this.Xb||b)q&&0<this.Af&&(n=this.Af),b=this.devicePixelRatio,4<=n?(m=this.lb/this.kb,f/a>m?(m*=a,5===n?(d=m*b/this.lb,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),m=this.lb*d/b,d=this.kb*d/b,c=(f-m)/2,g=(a-d)/2,f=m,a=d):(c=(f-m)/2,f=m)):(d=f/m,5===n?(d=d*b/this.kb,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),m=this.lb*d/b,d=this.kb*d/b,c=(f-m)/2,g=(a-d)/2,f=m):g=(a-d)/2,a=d),q&&!this.Ue&&(g=c=0)):this.Ue&&this.Kh&&0===this.ip&&(c=Math.floor((f-this.lb)/2),g=Math.floor((a-this.kb)/2),f=this.lb,a=
this.kb),2>n&&(this.mh=b),this.Ve&&this.Np&&1<b&&(1024<=f&&(f=1023),1024<=a&&(a=1023)),this.rj=Math.round(f),this.qj=Math.round(a),this.width=Math.round(f*b),this.height=Math.round(a*b),this.la=!0,this.Mr?(this.X=this.width,this.W=this.height,this.Tc=!0):this.width<this.lb&&this.height<this.kb||1===n?(this.X=this.width,this.W=this.height,this.Tc=!0):(this.X=this.lb,this.W=this.kb,this.Tc=!1,2===n?(m=this.lb/this.kb,n=this.Wh/this.Vh,n<m?this.X=this.W*n:n>m&&(this.W=this.X/n)):3===n&&(m=this.lb/this.kb,
n=this.Wh/this.Vh,n>m?this.X=this.W*n:n<m&&(this.W=this.X/n))),this.Vo&&!this.Ua&&(jQuery(this.Vo).css({width:Math.round(f)+"px",height:Math.round(a)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(g)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(f)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(f*b),this.canvas.height=Math.round(a*b),this.rd?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(g)+
"px",this.canvas.style.width=Math.round(f)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Ve&&!this.Ua&&(this.canvas.style.width=Math.round(f)+"px",this.canvas.style.height=Math.round(a)+"px")),this.xb&&(this.xb.width=Math.round(f),this.xb.height=Math.round(a),this.xb.style.width=Math.round(f)+"px",this.xb.style.height=Math.round(a)+"px"),this.G&&this.G.Ug(Math.round(f*b),Math.round(a*b)),this.ac&&this.xa&&(this.xa.width=Math.round(f),this.xa.height=Math.round(a)),this.xa&&(this.xa.webkitImageSmoothingEnabled=
this.ka,this.xa.mozImageSmoothingEnabled=this.ka,this.xa.msImageSmoothingEnabled=this.ka,this.xa.imageSmoothingEnabled=this.ka),this.Br(),this.Ua||!l&&!this.Sm||window.setTimeout(function(){window.scrollTo(0,1)},100)}};d.prototype.Br=function(){if(this.et&&0!==this.vn){var f="portrait";2===this.vn&&(f="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(f):screen.lockOrientation?screen.lockOrientation(f):screen.webkitLockOrientation?screen.webkitLockOrientation(f):screen.mozLockOrientation?
screen.mozLockOrientation(f):screen.msLockOrientation&&screen.msLockOrientation(f)}};d.prototype.Hv=function(){this.G.ot();this.Rm=!0;var f,a,b;f=0;for(a=this.H.length;f<a;f++)b=this.H[f],b.ti&&b.ti()};d.prototype.Iv=function(){this.Rm=!1;var f,a,b;f=0;for(a=this.H.length;f<a;f++)b=this.H[f],b.zk&&b.zk()};d.prototype.Mq=function(){if(!this.Ua){var f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Kh)&&!this.Re?jQuery(this.canvas).offset():
jQuery(this.canvas).position();f.position="absolute";jQuery(this.xb).css(f)}};var u=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(f){var a;if(f&&!this.Lh)for(I("[Construct 2] Suspending"),this.Lh=!0,-1!==this.Fn&&u&&u(this.Fn),-1!==this.bo&&clearTimeout(this.bo),f=0,a=this.Ni.length;f<a;f++)this.Ni[f](!0);else if(!f&&this.Lh){I("[Construct 2] Resuming");this.Lh=
!1;this.fk=Xa();this.Mf=Xa();f=this.ji=this.Mj=0;for(a=this.Ni.length;f<a;f++)this.Ni[f](!1);this.Aa(!1)}};d.prototype.Zs=function(f){this.Ni.push(f)};d.prototype.Ce=function(f){return this.xk[f]};d.prototype.ok=function(f){f&&f.project||ga("Project model unavailable");f=f.project;this.name=f[0];this.hp=f[1];this.Xb=f[12];this.ip=f[12];this.lb=f[10];this.kb=f[11];this.Hq=this.lb/2;this.Iq=this.kb/2;this.Ua&&!this.rd&&(4<=f[12]||0===f[12])&&(I("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.ip=this.Xb=3);this.qo=f[18];this.ci=f[19];0===this.ci&&(this.Nf=new Image,this.Nf.crossOrigin="anonymous",this.Nf.src="loading-logo.png");this.pi=f[21];this.xk=jc();this.Qd=new Y(this);var a,b,c,g,m,d,l,n,q;a=0;for(b=f[2].length;a<b;a++)l=f[2][a],c=this.Ce(l[0]),lb(l,c.prototype),q=new c(this),q.$k=l[1],q.We=l[2],q.pq=l[9],q.K&&q.K(),this.plugins.push(q);this.xk=jc();a=0;for(b=f[3].length;a<b;a++){l=f[3][a];m=this.Ce(l[1]);q=null;c=0;for(g=this.plugins.length;c<g;c++)if(this.plugins[c]instanceof
m){q=this.plugins[c];break}var e=new q.ba(q);e.name=l[0];e.J=l[2];e.Km=l[3].slice(0);e.Dw=l[3].length;e.gt=l[4];e.Bu=l[5];e.ca=l[11];e.J?(e.Lg=[],e.be=this.yh++,e.Ma=null):(e.Lg=null,e.be=-1,e.Ma=[]);e.Fj=null;e.rg=null;e.dp=null;e.pc=!1;e.kc=null;l[6]?(e.gl=l[6][0],e.hl=l[6][1],e.Pi=l[6][2]):(e.gl=null,e.hl=0,e.Pi=0);l[7]?e.Vb=l[7]:e.Vb=null;e.index=a;e.j=[];e.vj=[];e.lf=[new mb(e)];e.Zd=0;e.Rc=null;e.xt=0;e.Zg=!0;e.pl=nb;e.Fu=ob;e.Lu=pb;e.na=qb;e.Ai=rb;e.Ok=sb;e.Vf=tb;e.Pj=vb;e.nm=wb;e.pm=xb;e.ld=
yb;e.op=zb;e.mj=new db(this.lb,this.kb);e.$i=!0;e.aj=!1;e.ea={};e.toString=Ab;e.Za=[];c=0;for(g=l[8].length;c<g;c++){n=l[8][c];var k=this.Ce(n[1]),h=null;m=0;for(d=this.Za.length;m<d;m++)if(this.Za[m]instanceof k){h=this.Za[m];break}h||(h=new k(this),h.wk=[],h.vk=new da,h.K&&h.K(),this.Za.push(h),kc&&h instanceof kc&&(this.jr=h),bc.yv&&h instanceof bc.yv&&(this.Op=h));-1===h.wk.indexOf(e)&&h.wk.push(e);m=new h.ba(h,e);m.name=n[0];m.ca=n[2];m.K();e.Za.push(m)}e.global=l[9];e.Om=l[10];e.R=[];c=0;for(g=
l[12].length;c<g;c++)e.R.push({id:l[12][c][0],name:l[12][c][1],zb:-1,Ka:!0,index:c});e.Vx=l[13];this.qo&&!e.J&&!e.Om&&q.We||e.K();e.name&&(this.types[e.name]=e);this.H.push(e);q.$k&&(c=new q.U(e),c.uid=this.pi++,c.Qq=this.rq++,c.Ef=0,c.Bh=Bb,c.toString=Cb,c.D=l[14],c.K(),e.j.push(c),this.le[c.uid.toString()]=c)}a=0;for(b=f[4].length;a<b;a++)for(m=f[4][a],d=this.H[m[0]],c=1,g=m.length;c<g;c++)l=this.H[m[c]],l.Ma.push(d),d.Lg.push(l);a=0;for(b=f[27].length;a<b;a++){m=f[27][a];d=[];c=0;for(g=m.length;c<
g;c++)d.push(this.H[m[c]]);c=0;for(g=d.length;c<g;c++)d[c].pc=!0,d[c].kc=d}if(0<this.yh)for(a=0,b=this.H.length;a<b;a++)if(l=this.H[a],!l.J&&l.Ma.length){l.Fj=Array(this.yh);l.rg=Array(this.yh);l.dp=Array(this.yh);e=[];c=h=k=n=0;for(g=l.Ma.length;c<g;c++)for(q=l.Ma[c],l.Fj[q.be]=n,n+=q.Dw,l.rg[q.be]=k,k+=q.gt,l.dp[q.be]=h,h+=q.Bu,m=0,d=q.R.length;m<d;m++)e.push(ya({},q.R[m]));l.R=e.concat(l.R);c=0;for(g=l.R.length;c<g;c++)l.R[c].index=c}a=0;for(b=f[5].length;a<b;a++)l=f[5][a],c=new Db(this,l),this.$m[c.name]=
c,this.vc.push(c);a=0;for(b=f[6].length;a<b;a++)l=f[6][a],c=new Eb(this,l),this.fm[c.name]=c,this.ae.push(c);a=0;for(b=this.ae.length;a<b;a++)this.ae[a].Ya();a=0;for(b=this.ae.length;a<b;a++)this.ae[a].jo();a=0;for(b=this.nl.length;a<b;a++)this.nl[a].Ya();this.nl.length=0;this.dt=f[7];this.hm=f[8];this.$c=f[9];this.mh=1;this.St=f[13];this.ka=f[14];this.Dl=f[15];this.Cw=f[17];this.vn=f[20];this.et=0<this.vn;this.Qv=f[22];this.Tc=this.Mr=f[23];this.Nt=f[24];this.Vv=f[25];this.dl=Date.now();this.xk.length=
0;this.nv()};var e=!1;d.prototype.so=function(f,a){f.cocoonLazyLoad=!0;f.onerror=function(a){e=f.Ro=!0;console&&console.error&&console.error("Error loading image '"+f.src+"': ",a)};this.rd?f.src=a:f.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){f.src=a},function(b){e=f.Ro=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):(f.crossOrigin="anonymous",f.src=a));this.gh.push(f)};d.prototype.yu=function(f){var a,b;a=0;for(b=this.gh.length;a<
b;a++)if(this.gh[a].pt===f)return this.gh[a];return null};var g=0,l=!1;d.prototype.cv=function(){this.ig&&(g=this.ig.nw(this.dt))};d.prototype.Oo=function(){var f=g,a=0,b=0,c=!0,m,d,b=0;for(m=this.gh.length;b<m;b++){d=this.gh[b];var n=d.Rl;if(!n||0>=n)n=5E4;f+=n;d.src&&(d.complete||d.loaded)&&!d.Ro?a+=n:c=!1}c&&this.Vv&&this.ig&&(l||(this.ig.sw(),l=!0),b=this.ig.Mu(),a+=b,b<g&&(c=!1));this.Wf=0==f?0:a/f;return c};d.prototype.go=function(){if(this.xa||this.G){var f=this.xa||this.xn;this.xb&&this.Mq();
this.Wf=0;this.Tp=-1;if(this.Oo())this.dv();else{var a=Date.now()-this.dl;if(f){var b=this.width,c=this.height,g=this.devicePixelRatio;this.xb&&(b=this.rj,c=this.qj,g=1);if(3!==this.ci&&(this.qd||500<=a&&this.Tp!=this.Wf)){f.clearRect(0,0,b,c);var a=b/2,c=c/2,b=0===this.ci&&this.Nf.complete,m=40*g,d=0,l=80*g,n;b&&(l=this.Nf.width*g,n=this.Nf.height*g,m=l/2,d=n/2,f.drawImage(this.Nf,S(a-m),S(c-d),l,n));1>=this.ci?(a=S(a-m)+.5,c=S(c+(d+(b?12*g:0)))+.5,f.fillStyle=e?"red":"DodgerBlue",f.fillRect(a,c,
Math.floor(l*this.Wf),6*g),f.strokeStyle="black",f.strokeRect(a,c,l,6*g),f.strokeStyle="white",f.strokeRect(a-1*g,c-1*g,l+2*g,8*g)):2===this.ci&&(f.font=this.rd?"12pt ArialMT":"12pt Arial",f.fillStyle=e?"#f00":"#999",f.Ux="middle",g=Math.round(100*this.Wf)+"%",b=f.measureText?f.measureText(g):null,f.fillText(g,a-(b?b.width:0)/2,c))}this.Tp=this.Wf}setTimeout(function(f){return function(){f.go()}}(this),this.qd?10:100)}}};d.prototype.dv=function(){this.xb&&(this.canvas.parentNode.removeChild(this.xb),
this.xb=this.xn=null);this.dl=Date.now();this.Mf=Xa();var f,a,b;if(this.qo)for(f=0,a=this.H.length;f<a;f++)b=this.H[f],b.J||b.Om||!b.Ja.We||b.K();else this.Hf=!1;f=0;for(a=this.vc.length;f<a;f++)this.vc[f].qt();2<=this.Xb&&(f=this.lb/this.kb,a=this.width/this.height,this.mh=2!==this.Xb&&a>f||2===this.Xb&&a<f?this.height/this.kb:this.width/this.lb);this.hp?this.$m[this.hp].Zn():this.vc[0].Zn();this.qo||(this.qk=1,this.trigger(Y.prototype.B.Co,null));navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();f=0;for(a=this.H.length;f<a;f++)b=this.H[f],b.Gv&&b.Gv();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Aa(!1);this.ac&&AppMobi.webview.execute("onGameReady();")};var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Aa=function(f,a,b){if(this.ma){var c=Xa();if(b||!this.Lh||f){f||(t?
this.Fn=t(this.rr):this.bo=setTimeout(this.rr,this.Te?1:16));a=a||c;var g=this.Xb;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Re)||this.Kh)&&0<this.Af&&(g=this.Af);0<g&&(!this.Ph||window.self!==window.top)&&(g=window.innerHeight,this.Wh===window.innerWidth&&this.Vh===g||this.setSize(k(),h()));this.Ua||(b?(this.Hj||(this.lm=jQuery(this.canvas).css("margin")||"0",this.Hj=!0),this.Ih||this.Ue||jQuery(this.canvas).css({"margin-left":""+
Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.Hj?(this.Ih||this.Ue||jQuery(this.canvas).css("margin",this.lm),this.lm="",this.Hj=!1,0===this.Xb&&this.setSize(Math.round(this.yq/this.devicePixelRatio),Math.round(this.xq/this.devicePixelRatio),!0)):(this.yq=this.width,this.xq=this.height));this.Hf&&(b=this.Oo(),this.qk=this.Wf,b&&(this.Hf=!1,this.Wf=1,this.trigger(Y.prototype.B.Co,null)));
this.Bv(a);!this.la&&!this.qd||this.Rm||this.Mi||f||(this.la=!1,this.G?this.Jb():this.Hc(),this.Li&&(this.canvas&&this.canvas.toDataURL&&(this.hr=this.canvas.toDataURL(this.Li[0],this.Li[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.hr),this.trigger(Y.prototype.B.os,null)),this.Li=null));this.Px||(this.ed++,this.wh++,this.Mj++);this.ji+=Xa()-c}}};d.prototype.Bv=function(f){var a,b,c,g,m,d,l,n;1E3<=f-this.Mf&&(this.Mf+=1E3,1E3<=f-this.Mf&&(this.Mf=f),this.km=this.Mj,this.Mj=0,this.Ql=this.ji,
this.ji=0);0!==this.fk&&(a=f-this.fk,0>a&&(a=0),this.Me=a/1E3,.5<this.Me?this.Me=0:.1<this.Me&&(this.Me=.1));this.fk=f;this.xf=this.Me*this.ag;this.rc.add(this.xf);this.ze.add(this.Me);f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Kh)&&!this.Re;2<=this.Xb||f&&0<this.Af?(a=this.lb/this.kb,b=this.width/this.height,c=this.Xb,f&&0<this.Af&&(c=this.Af),this.mh=2!==c&&b>a||2===c&&b<a?this.height/this.kb:this.width/this.lb,this.ma&&(this.ma.Pn(this.ma.scrollX),
this.ma.Qn(this.ma.scrollY))):this.mh=this.Ve?this.devicePixelRatio:1;this.Bb();this.sd++;this.Qd.ew();this.sd--;this.Bb();this.sd++;b=this.vq.ye();f=0;for(a=b.length;f<a;f++)b[f].Rx();f=0;for(a=this.H.length;f<a;f++)if(d=this.H[f],!d.J&&(d.Za.length||d.Ma.length))for(b=0,c=d.j.length;b<c;b++)for(l=d.j[b],g=0,m=l.S.length;g<m;g++)l.S[g].Aa();f=0;for(a=this.H.length;f<a;f++)if(d=this.H[f],!d.J&&(d.Za.length||d.Ma.length))for(b=0,c=d.j.length;b<c;b++)for(l=d.j[b],g=0,m=l.S.length;g<m;g++)n=l.S[g],n.Nq&&
n.Nq();b=this.rn.ye();f=0;for(a=b.length;f<a;f++)b[f].Aa();this.sd--;this.gv();for(f=0;this.Vd&&10>f++;)this.bp(this.Vd);f=0;for(a=this.ae.length;f<a;f++)this.ae[f].Bm=!1;this.ma.yf&&this.ma.yf.fb();this.Di.length=0;this.sd++;f=0;for(a=this.H.length;f<a;f++)if(d=this.H[f],!d.J&&(d.Za.length||d.Ma.length))for(b=0,c=d.j.length;b<c;b++)for(l=d.j[b],g=0,m=l.S.length;g<m;g++)n=l.S[g],n.jl&&n.jl();b=this.wq.ye();f=0;for(a=b.length;f<a;f++)b[f].jl();this.sd--};d.prototype.bp=function(f){var a=this.ma;this.ma.uw();
var b,c,g,m,d,l,n;if(this.G)for(b=0,c=this.H.length;b<c;b++)d=this.H[b],d.J||!d.ol||d.global&&0!==d.j.length||-1!==f.Gh.indexOf(d)||d.ol();a==f&&(this.Qd.hc.length=0);this.Di.length=0;f.Zn();b=0;for(c=this.H.length;b<c;b++)if(d=this.H[b],d.global||d.Ja.$k)for(f=0,a=d.j.length;f<a;f++)if(l=d.j[f],l.tn&&l.tn(),l.S)for(g=0,m=l.S.length;g<m;g++)n=l.S[g],n.tn&&n.tn();this.la=!0;this.Bb()};d.prototype.ah=function(f){this.rn.add(f)};d.prototype.Pe=function(f){return f&&-1!==f.oi?this.Me*f.oi:this.xf};d.prototype.Hc=
function(){this.ma.Hc(this.xa);this.ac&&this.xa.present()};d.prototype.Jb=function(){this.ma.Jb(this.G);this.G.Xv()};d.prototype.Yi=function(f){f&&this.xj.push(f)};d.prototype.Sq=function(f){Ea(this.xj,f)};d.prototype.Cf=function(f){f=f.toString();return this.le.hasOwnProperty(f)?this.le[f]:null};var n=[];d.prototype.Bd=function(f){var a,b;a=f.type.name;var c=null;if(this.vf.hasOwnProperty(a)){if(c=this.vf[a],c.contains(f))return}else c=n.length?n.pop():new da,this.vf[a]=c;c.add(f);this.Qe=!0;if(f.pc)for(a=
0,b=f.siblings.length;a<b;a++)this.Bd(f.siblings[a]);this.Nm&&c.eh.push(f);this.sd++;this.trigger(Object.getPrototypeOf(f.type.Ja).B.Ao,f);this.sd--};d.prototype.Bb=function(){if(this.Qe){var a,b,c,g,m,d;this.Nm=!0;c=0;for(m=this.nd.length;c<m;++c)for(a=this.nd[c],b=a.type,b.j.push(a),g=0,d=b.Ma.length;g<d;++g)b.Ma[g].j.push(a),b.Ma[g].Zg=!0;this.nd.length=0;this.ds();Wa(this.vf);this.Qe=this.Nm=!1}};d.prototype.ds=function(){for(var a in this.vf)this.vf.hasOwnProperty(a)&&this.Qr(this.vf[a])};d.prototype.Qr=
function(a){var b=a.ye(),c=b[0].type,g,m,d,l,q,e;Ya(c.j,a);c.Zg=!0;0===c.j.length&&(c.aj=!1);g=0;for(m=c.Ma.length;g<m;++g)e=c.Ma[g],Ya(e.j,a),e.Zg=!0;g=0;for(m=this.Qd.hc.length;g<m;++g)if(q=this.Qd.hc[g],q.Ub.hasOwnProperty(c.index)&&Ya(q.Ub[c.index].ge,a),!c.J)for(d=0,l=c.Ma.length;d<l;++d)e=c.Ma[d],q.Ub.hasOwnProperty(e.index)&&Ya(q.Ub[e.index].ge,a);if(q=b[0].n){if(q.yd)for(d=q.j,g=0,m=d.length;g<m;++g)l=d[g],a.contains(l)&&(l.Ba(),q.zc.update(l,l.ec,null),l.ec.set(0,0,-1,-1));Ya(q.j,a);q.Gi(0)}for(g=
0;g<b.length;++g)this.Pr(b[g],c);a.clear();n.push(a);this.la=!0};d.prototype.Pr=function(a,b){var c,g,m;c=0;for(g=this.xj.length;c<g;++c)this.xj[c](a);a.Ke&&b.mj.update(a,a.Ke,null);(c=a.n)&&c.Rg(a,!0);if(a.S)for(c=0,g=a.S.length;c<g;++c)m=a.S[c],m.cf&&m.cf(),m.behavior.vk.remove(a);this.vq.remove(a);this.rn.remove(a);this.wq.remove(a);a.cf&&a.cf();this.le.hasOwnProperty(a.uid.toString())&&delete this.le[a.uid.toString()];this.yk--;100>b.vj.length&&b.vj.push(a)};d.prototype.Yo=function(a,b,c,g){if(a.J){var m=
S(Math.random()*a.Lg.length);return this.Yo(a.Lg[m],b,c,g)}return a.Rc?this.Le(a.Rc,b,!1,c,g,!1):null};var B=[];d.prototype.Le=function(a,b,c,g,m,d){var l,n,q,e;if(!a)return null;var h=this.H[a[1]],k=h.Ja.We;if(this.Hf&&k&&!h.Om||k&&!this.G&&11===a[0][11])return null;var p=b;k||(b=null);var t;h.vj.length?(t=h.vj.pop(),t.Tb=!0,h.Ja.U.call(t,h)):(t=new h.Ja.U(h),t.Tb=!1);!c||d||this.le.hasOwnProperty(a[2].toString())?t.uid=this.pi++:t.uid=a[2];this.le[t.uid.toString()]=t;t.Qq=this.rq++;t.Ef=h.j.length;
l=0;for(n=this.nd.length;l<n;++l)this.nd[l].type===h&&t.Ef++;t.Bh=Bb;t.toString=Cb;q=a[3];if(t.Tb)Wa(t.ea);else{t.ea={};if("undefined"!==typeof cr_is_preview)for(t.Dp=[],t.Dp.length=q.length,l=0,n=q.length;l<n;l++)t.Dp[l]=q[l][1];t.jb=[];t.jb.length=q.length}l=0;for(n=q.length;l<n;l++)t.jb[l]=q[l][0];if(k){var u=a[0];t.x=ha(g)?u[0]:g;t.y=ha(m)?u[1]:m;t.z=u[2];t.width=u[3];t.height=u[4];t.depth=u[5];t.k=u[6];t.opacity=u[7];t.Zb=u[8];t.$b=u[9];t.Wb=u[10];l=u[11];!this.G&&h.R.length&&(t.Wb=l);t.qh=fb(t.Wb);
this.F&&gb(t,t.Wb,this.F);if(t.Tb){l=0;for(n=u[12].length;l<n;l++)for(q=0,e=u[12][l].length;q<e;q++)t.La[l][q]=u[12][l][q];t.Ca.set(0,0,0,0);t.Ke.set(0,0,-1,-1);t.ec.set(0,0,-1,-1);t.Eb.Wg(t.Ca);t.Il.length=0}else{t.La=u[12].slice(0);l=0;for(n=t.La.length;l<n;l++)t.La[l]=u[12][l].slice(0);t.ra=[];t.De=[];t.De.length=h.R.length;t.Ca=new T(0,0,0,0);t.Ke=new T(0,0,-1,-1);t.ec=new T(0,0,-1,-1);t.Eb=new xa;t.Il=[];t.C=Fb;t.$s=Gb;t.Pb=Hb;t.Ba=Ib;t.Bw=Jb;t.po=Kb;t.Fd=Lb}t.Qi=!1;t.yw=0;t.xw=0;t.ww=null;14===
u.length&&(t.Qi=!0,t.yw=u[13][0],t.xw=u[13][1],t.ww=u[13][2]);l=0;for(n=h.R.length;l<n;l++)t.De[l]=!0;t.xe=Mb;t.xe();t.Kr=!!t.ra.length;t.hj=!0;t.Ll=!0;h.$i=!0;t.visible=!0;t.oi=-1;t.n=b;t.zd=b.j.length;"undefined"===typeof t.wa&&(t.wa=null);this.la=t.Wd=!0}var r;l=B.length=0;for(n=h.Ma.length;l<n;l++)B.push.apply(B,h.Ma[l].Za);B.push.apply(B,h.Za);if(t.Tb)for(l=0,n=B.length;l<n;l++){var D=B[l];r=t.S[l];r.Tb=!0;D.behavior.U.call(r,D,t);u=a[4][l];q=0;for(e=u.length;q<e;q++)r.D[q]=u[q];r.K();D.behavior.vk.add(t)}else for(t.S=
[],l=0,n=B.length;l<n;l++)D=B[l],r=new D.behavior.U(D,t),r.Tb=!1,r.D=a[4][l].slice(0),r.K(),t.S.push(r),D.behavior.vk.add(t);u=a[5];if(t.Tb)for(l=0,n=u.length;l<n;l++)t.D[l]=u[l];else t.D=u.slice(0);this.nd.push(t);this.Qe=!0;b&&(b.lh(t,!0),1!==b.Yc||1!==b.Zc)&&(h.aj=!0);this.yk++;if(h.pc){if(t.pc=!0,t.Tb?t.siblings.length=0:t.siblings=[],!c&&!d){l=0;for(n=h.kc.length;l<n;l++)if(h.kc[l]!==h){if(!h.kc[l].Rc)return null;t.siblings.push(this.Le(h.kc[l].Rc,p,!1,k?t.x:g,k?t.y:m,!0))}l=0;for(n=t.siblings.length;l<
n;l++)for(t.siblings[l].siblings.push(t),q=0;q<n;q++)l!==q&&t.siblings[l].siblings.push(t.siblings[q])}}else t.pc=!1,t.siblings=null;t.K();l=0;for(n=t.S.length;l<n;l++)t.S[l].Uv&&t.S[l].Uv();return t};d.prototype.rm=function(a){var b,c;b=0;for(c=this.ma.Y.length;b<c;b++){var g=this.ma.Y[b];if(ib(g.name,a))return g}return null};d.prototype.zh=function(a){a=S(a);0>a&&(a=0);a>=this.ma.Y.length&&(a=this.ma.Y.length-1);return this.ma.Y[a]};d.prototype.Pl=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].na().za=
!0};d.prototype.Ai=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Ai()};d.prototype.Ok=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Ok()};d.prototype.Vf=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Vf()};d.prototype.Hr=function(a){if(a.$i){var b,c,g=a.j;b=0;for(c=g.length;b<c;++b)g[b].po();g=this.nd;b=0;for(c=g.length;b<c;++b)g[b].type===a&&g[b].po();a.$i=!1}};d.prototype.lp=function(a,b,c,g){var m,d,l=a?1!==a.Yc||1!==a.Zc:!1;if(b.J)for(a=0,m=b.Lg.length;a<m;++a)d=b.Lg[a],l||d.aj?
Ca(g,d.j):(this.Hr(d),d.mj.Qk(c,g));else l||b.aj?Ca(g,b.j):(this.Hr(b),b.mj.Qk(c,g))};d.prototype.up=function(a,b,c,g){var m,d;m=0;for(d=b.length;m<d;++m)this.lp(a,b[m],c,g)};d.prototype.Pu=function(a,b,c){var g=this.jr;g&&this.up(a,g.wk,b,c)};d.prototype.Ju=function(a,b,c){var g=this.Op;g&&this.up(a,g.wk,b,c)};d.prototype.vw=function(a,b,c){var g=a.na(),m,d,l,n,q,e;if(g.za)for(g.za=!1,m=g.j.length=0,n=a.j.length;m<n;m++)l=a.j[m],l.Ba(),q=l.n.jc(b,c,!0),e=l.n.jc(b,c,!1),l.Pb(q,e)&&g.j.push(l);else{m=
d=0;for(n=g.j.length;m<n;m++)l=g.j[m],l.Ba(),q=l.n.jc(b,c,!0),e=l.n.jc(b,c,!1),l.Pb(q,e)&&(g.j[d]=g.j[m],d++);g.j.length=d}a.ld();return g.Am()};d.prototype.Dc=function(a,b){if(!(a&&b&&a!==b&&a.Wd&&b.Wd))return!1;a.Ba();b.Ba();var c=a.n,g=b.n,m,d,l,n,q,e,h,t;if(c===g||c.Yc===g.Yc&&g.Zc===g.Zc&&c.scale===g.scale&&c.k===g.k&&c.Ad===g.Ad){if(!a.Ca.ov(b.Ca)||!a.Eb.Ep(b.Eb)||a.Qi&&b.Qi)return!1;if(a.Qi)return this.nr(a,b);if(b.Qi)return this.nr(b,a);h=a.wa&&!a.wa.Bg();m=b.wa&&!b.wa.Bg();if(!h&&!m)return!0;
h?(a.wa.jg(a.width,a.height,a.k),h=a.wa):(this.xd.Vg(a.Eb,a.x,a.y,a.width,a.height),h=this.xd);m?(b.wa.jg(b.width,b.height,b.k),t=b.wa):(this.xd.Vg(b.Eb,b.x,b.y,b.width,b.height),t=this.xd);return h.Hh(t,b.x-a.x,b.y-a.y)}h=a.wa&&!a.wa.Bg();m=b.wa&&!b.wa.Bg();h?(a.wa.jg(a.width,a.height,a.k),this.xd.Zq(a.wa)):this.xd.Vg(a.Eb,a.x,a.y,a.width,a.height);h=this.xd;m?(b.wa.jg(b.width,b.height,b.k),this.$n.Zq(b.wa)):this.$n.Vg(b.Eb,b.x,b.y,b.width,b.height);t=this.$n;m=0;for(d=h.wd;m<d;m++)l=2*m,n=l+1,q=
h.mb[l],e=h.mb[n],h.mb[l]=c.Na(q+a.x,e+a.y,!0),h.mb[n]=c.Na(q+a.x,e+a.y,!1);h.Ba();m=0;for(d=t.wd;m<d;m++)l=2*m,n=l+1,q=t.mb[l],e=t.mb[n],t.mb[l]=g.Na(q+b.x,e+b.y,!0),t.mb[n]=g.Na(q+b.x,e+b.y,!1);t.Ba();return h.Hh(t,0,0)};var A=new xa;new T(0,0,0,0);var z=[];d.prototype.nr=function(a,b){var c,g,m,d,l=b.Ca,n=a.x,q=a.y;a.Nx(l,z);var e=b.wa&&!b.wa.Bg();c=0;for(g=z.length;c<g;++c)if(m=z[c],d=m.Sx,l.pv(d,n,q)&&(A.Wg(d),A.offset(n,q),A.Ep(b.Eb)))if(e)if(b.wa.jg(b.width,b.height,b.k),m.An){if(m.An.Hh(b.wa,
b.x-(n+d.left),b.y-(q+d.top)))return z.length=0,!0}else{if(this.xd.Vg(A,0,0,d.right-d.left,d.bottom-d.top),this.xd.Hh(b.wa,b.x,b.y))return z.length=0,!0}else if(m.An){if(this.xd.Vg(b.Eb,0,0,b.width,b.height),m.An.Hh(this.xd,-(n+d.left),-(q+d.top)))return z.length=0,!0}else return z.length=0,!0;z.length=0;return!1};d.prototype.Cr=function(a,b){if(!b)return!1;var c,g,m,d,l;c=0;for(g=a.Za.length;c<g;c++)if(a.Za[c].behavior instanceof b)return!0;if(!a.J)for(c=0,g=a.Ma.length;c<g;c++)for(l=a.Ma[c],m=0,
d=l.Za.length;m<d;m++)if(l.Za[m].behavior instanceof b)return!0;return!1};d.prototype.Dr=function(a){return this.Cr(a,bc.gx)};d.prototype.ho=function(a){return this.Cr(a,bc.hx)};var m=[];d.prototype.Ta=function(a){var b,c,g;a.Ba();this.Pu(a.n,a.Ca,m);b=0;for(c=m.length;b<c;++b)if(g=m[b],g.ea.solidEnabled&&this.Dc(a,g))return m.length=0,g;m.length=0;return null};var q=[];d.prototype.of=function(a,b){var c=null;b&&(c=q,c.length=0);a.Ba();this.Ju(a.n,a.Ca,m);var g,d,l;g=0;for(d=m.length;g<d;++g)if(l=
m[g],l.ea.jumpthruEnabled&&this.Dc(a,l))if(b)c.push(l);else return m.length=0,l;m.length=0;return c};d.prototype.Mc=function(a,b,c,g,m,d){g=g||50;var l=a.x,n=a.y,q,e=null,h=null;for(q=0;q<g;q++)if(a.x=l+b*q,a.y=n+c*q,a.C(),!this.Dc(a,e)&&((e=this.Ta(a))&&(h=e),!e&&(m&&(d?e=this.Dc(a,d)?d:null:e=this.of(a),e&&(h=e)),!e)))return h&&this.Cn(a,b,c,h),!0;a.x=l;a.y=n;a.C();return!1};d.prototype.Cn=function(a,b,c,g){var m=2,d,l=!1;d=!1;for(var n=a.x,q=a.y;16>=m;)d=1/m,m*=2,a.x+=b*d*(l?1:-1),a.y+=c*d*(l?
1:-1),a.C(),this.Dc(a,g)?d=l=!0:(d=l=!1,n=a.x,q=a.y);d&&(a.x=n,a.y=q,a.C())};d.prototype.Dn=function(a,b){var c=ha(b)?100:b,g=0,m=a.x,d=a.y,l=0,n=0,q=0,e=this.Ta(a);if(!e)return!0;for(;g<=c;){switch(l){case 0:n=0;q=-1;g++;break;case 1:n=1;q=-1;break;case 2:n=1;q=0;break;case 3:q=n=1;break;case 4:n=0;q=1;break;case 5:n=-1;q=1;break;case 6:n=-1;q=0;break;case 7:q=n=-1}l=(l+1)%8;a.x=S(m+n*g);a.y=S(d+q*g);a.C();if(!this.Dc(a,e)&&(e=this.Ta(a),!e))return!0}a.x=m;a.y=d;a.C();return!1};d.prototype.Ld=function(a,
b){a.Wd&&b.Wd&&this.Di.push([a,b])};d.prototype.mt=function(a,b){var c,g,m;c=0;for(g=this.Di.length;c<g;c++)if(m=this.Di[c],m[0]==a&&m[1]==b||m[0]==b&&m[1]==a)return!0;return!1};d.prototype.kt=function(a,b,c){var g=a.x,m=a.y,d=pa(10,Pa(b,c,g,m)),l=Ka(b,c,g,m),n=this.Ta(a);if(!n)return X(l+sa);var q=n,e,h,t,k,u=W(5);for(e=1;36>e;e++)if(h=l-e*u,a.x=b+Math.cos(h)*d,a.y=c+Math.sin(h)*d,a.C(),!this.Dc(a,q)&&(q=this.Ta(a),!q)){t=h;break}36===e&&(t=X(l+sa));q=n;for(e=1;36>e;e++)if(h=l+e*u,a.x=b+Math.cos(h)*
d,a.y=c+Math.sin(h)*d,a.C(),!this.Dc(a,q)&&(q=this.Ta(a),!q)){k=h;break}36===e&&(k=X(l+sa));a.x=g;a.y=m;a.C();if(k===t)return k;a=La(k,t)/2;a=Na(k,t)?X(t+a+sa):X(k+a);t=Math.cos(l);l=Math.sin(l);k=Math.cos(a);a=Math.sin(a);b=t*k+l*a;return Ka(0,0,t-2*b*k,l-2*b*a)};var D=-1;d.prototype.trigger=function(a,b,c){if(!this.ma)return!1;var g=this.ma.yf;if(!g)return!1;var m=!1,d,l,n;D++;var q=g.Wl;l=0;for(n=q.length;l<n;++l)d=this.ur(a,b,q[l],c),m=m||d;d=this.ur(a,b,g,c);D--;return m||d};d.prototype.ur=function(a,
b,c,g){var m=!1,d,l,n,q;if(b)for(n=this.eo(a,b,b.type.name,c,g),m=m||n,q=b.type.Ma,d=0,l=q.length;d<l;++d)n=this.eo(a,b,q[d].name,c,g),m=m||n;else n=this.eo(a,b,"system",c,g),m=m||n;return m};d.prototype.eo=function(a,b,c,g,m){var d,l=!1,n=!1,n="undefined"!==typeof m,q=(n?g.fp:g.Ar)[c];if(!q)return l;var e=null;g=0;for(d=q.length;g<d;++g)if(q[g].method==a){e=q[g].vh;break}if(!e)return l;var h;n?h=e[m]:h=e;if(!h)return null;g=0;for(d=h.length;g<d;g++)a=h[g][0],m=h[g][1],n=this.wu(b,c,a,m),l=l||n;return l};
d.prototype.wu=function(a,b,c,g){var m,d,l=!1;this.fo++;var n=this.Kb().lc;n&&this.Ai(n.kf);var q=1<this.fo;this.Ai(c.kf);q&&this.Zv();var e=this.Pk(c);e.lc=c;a&&(m=this.types[b].na(),m.za=!1,m.j.length=1,m.j[0]=a,this.types[b].ld());a=!0;if(c.parent){b=e.mr;for(m=c.parent;m;)b.push(m),m=m.parent;b.reverse();m=0;for(d=b.length;m<d;m++)if(!b[m].gw()){a=!1;break}}a&&(this.wh++,c.ud?c.fw(g):c.fb(),l=l||e.Lf);this.Jk();q&&this.Tv();this.Vf(c.kf);n&&this.Vf(n.kf);this.Qe&&0===this.sd&&0===D&&!this.Pm&&
this.Bb();this.fo--;return l};d.prototype.om=function(){var a=this.Kb();return a.lc.rb[a.qb]};d.prototype.Zv=function(){this.sk++;this.sk>=this.jn.length&&this.jn.push([])};d.prototype.Tv=function(){this.sk--};d.prototype.mp=function(){return this.jn[this.sk]};d.prototype.Pk=function(a){this.Bj++;this.Bj>=this.em.length&&this.em.push(new Nb);var b=this.Kb();b.reset(a);return b};d.prototype.Jk=function(){this.Bj--};d.prototype.Kb=function(){return this.em[this.Bj]};d.prototype.np=function(a,b){for(var c,
g,m,d,l,n;b;){c=0;for(g=b.cd.length;c<g;c++)if(n=b.cd[c],n instanceof Ob&&ib(a,n.name))return n;b=b.parent}c=0;for(g=this.ae.length;c<g;c++)for(l=this.ae[c],m=0,d=l.Ne.length;m<d;m++)if(n=l.Ne[m],n instanceof Ob&&ib(a,n.name))return n;return null};d.prototype.pp=function(a){var b,c;b=0;for(c=this.vc.length;b<c;b++)if(this.vc[b].ca===a)return this.vc[b];return null};d.prototype.Sj=function(a){var b,c;b=0;for(c=this.H.length;b<c;b++)if(this.H[b].ca===a)return this.H[b];return null};d.prototype.Gu=function(a){var b,
c;b=0;for(c=this.Fe.length;b<c;b++)if(this.Fe[b].ca===a)return this.Fe[b];return null};d.prototype.zt=function(a,b){this.Li=[a,b];this.la=!0};d.prototype.gv=function(){var c=this,g=this.On,m=this.ie,d=this.mk,l=!1;this.er&&(l=!0,g="__c2_continuouspreview",this.er=!1);if(g.length){this.Bb();m=this.kw();if(window.indexedDB&&!this.qd)r(g,m,function(){I("Saved state to IndexedDB storage ("+m.length+" bytes)");c.ie=m;c.trigger(Y.prototype.B.Al,null);c.ie="";l&&a()},function(b){try{localStorage.setItem("__c2save_"+
g,m),I("Saved state to WebStorage ("+m.length+" bytes)"),c.ie=m,c.trigger(Y.prototype.B.Al,null),c.ie="",l&&a()}catch(d){I("Failed to save game state: "+b+"; "+d)}});else try{localStorage.setItem("__c2save_"+g,m),I("Saved state to WebStorage ("+m.length+" bytes)"),c.ie=m,this.trigger(Y.prototype.B.Al,null),c.ie="",l&&a()}catch(n){I("Error saving to WebStorage: "+n)}this.Lb=this.mk=this.On=""}if(d.length){if(window.indexedDB&&!this.qd)b(d,function(a){a?(c.Lb=a,I("Loaded state from IndexedDB storage ("+
c.Lb.length+" bytes)")):(c.Lb=localStorage.getItem("__c2save_"+d)||"",I("Loaded state from WebStorage ("+c.Lb.length+" bytes)"));c.Mi=!1;c.Lb.length||c.trigger(Y.prototype.B.yl,null)},function(){c.Lb=localStorage.getItem("__c2save_"+d)||"";I("Loaded state from WebStorage ("+c.Lb.length+" bytes)");c.Mi=!1;c.Lb.length||c.trigger(Y.prototype.B.yl,null)});else{try{this.Lb=localStorage.getItem("__c2save_"+d)||"",I("Loaded state from WebStorage ("+this.Lb.length+" bytes)")}catch(q){this.Lb=""}this.Mi=!1;
c.Lb.length||c.trigger(Y.prototype.B.yl,null)}this.On=this.mk=""}this.Lb.length&&(this.Bb(),this.Av(this.Lb),this.ie=this.Lb,this.trigger(Y.prototype.B.Cs,null),this.Lb=this.ie="")};d.prototype.kw=function(){var a,b,g,m,d,l,n,q={c2save:!0,version:1,rt:{time:this.rc.da,walltime:this.ze.da,timescale:this.ag,tickcount:this.ed,execcount:this.wh,next_uid:this.pi,running_layout:this.ma.ca,start_time_offset:Date.now()-this.dl},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(b=this.H.length;a<
b;a++)if(d=this.H[a],!d.J&&!this.Dr(d)){l={instances:[]};Ra(d.ea)&&(l.ex=c(d.ea));g=0;for(m=d.j.length;g<m;g++)l.instances.push(this.Nn(d.j[g]));q.types[d.ca.toString()]=l}a=0;for(b=this.vc.length;a<b;a++)g=this.vc[a],q.layouts[g.ca.toString()]=g.gb();m=q.events.groups;a=0;for(b=this.Fe.length;a<b;a++)g=this.Fe[a],m[g.ca.toString()]=this.Dh[g.Ch].ug;b=q.events.cnds;for(n in this.kg)this.kg.hasOwnProperty(n)&&(a=this.kg[n],Ra(a.ea)&&(b[n]={ex:c(a.ea)}));b=q.events.acts;for(n in this.hg)this.hg.hasOwnProperty(n)&&
(a=this.hg[n],Ra(a.ea)&&(b[n]={ex:a.ea}));b=q.events.vars;for(n in this.fh)this.fh.hasOwnProperty(n)&&(a=this.fh[n],a.$j||a.parent&&!a.Oh||(b[n]=a.data));q.system=this.Qd.gb();return JSON.stringify(q)};d.prototype.Rq=function(){var a,b,c,g,m,d;this.le={};a=0;for(b=this.H.length;a<b;a++)if(c=this.H[a],!c.J)for(g=0,m=c.j.length;g<m;g++)d=c.j[g],this.le[d.uid.toString()]=d};d.prototype.Av=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.rc.reset();this.rc.da=b.time;this.ze.reset();
this.ze.da=b.walltime||0;this.ag=b.timescale;this.ed=b.tickcount;this.wh=b.execcount;this.dl=Date.now()-b.start_time_offset;var c=b.running_layout;if(c!==this.ma.ca)if(c=this.pp(c))this.bp(c);else return;var g,m,d,l,n,q,e;q=a.types;for(m in q)if(q.hasOwnProperty(m)&&(l=this.Sj(parseInt(m,10)))&&!l.J&&!this.Dr(l)){q[m].ex?l.ea=q[m].ex:Wa(l.ea);n=l.j;d=q[m].instances;c=0;for(g=ra(n.length,d.length);c<g;c++)this.nk(n[c],d[c]);c=d.length;for(g=n.length;c<g;c++)this.Bd(n[c]);c=n.length;for(g=d.length;c<
g;c++){n=null;if(l.Ja.We&&(n=this.ma.Rj(d[c].w.l),!n))continue;n=this.Le(l.Rc,n,!1,0,0,!0);this.nk(n,d[c])}l.Zg=!0}this.Bb();this.Rq();g=a.layouts;for(m in g)g.hasOwnProperty(m)&&(c=this.pp(parseInt(m,10)))&&c.tb(g[m]);g=a.events.groups;for(m in g)g.hasOwnProperty(m)&&(c=this.Gu(parseInt(m,10)))&&this.Dh[c.Ch]&&this.Dh[c.Ch].Wq(g[m]);c=a.events.cnds;for(m in c)c.hasOwnProperty(m)&&this.kg.hasOwnProperty(m)&&(this.kg[m].ea=c[m].ex);c=a.events.acts;for(m in c)c.hasOwnProperty(m)&&this.hg.hasOwnProperty(m)&&
(this.hg[m].ea=c[m].ex);c=a.events.vars;for(m in c)c.hasOwnProperty(m)&&this.fh.hasOwnProperty(m)&&(this.fh[m].data=c[m]);this.pi=b.next_uid;this.Qd.tb(a.system);c=0;for(g=this.H.length;c<g;c++)if(l=this.H[c],!l.J)for(m=0,a=l.j.length;m<a;m++){n=l.j[m];if(l.pc)for(q=n.Bh(),b=n.siblings.length=0,d=l.kc.length;b<d;b++)e=l.kc[b],l!==e&&n.siblings.push(e.j[q]);n.hd&&n.hd();if(n.S)for(b=0,d=n.S.length;b<d;b++)q=n.S[b],q.hd&&q.hd()}this.la=!0}};d.prototype.Nn=function(a,b){var g,m,d,l,n;l=a.type;d=l.Ja;
var q={};b?q.c2=!0:q.uid=a.uid;Ra(a.ea)&&(q.ex=c(a.ea));if(a.jb&&a.jb.length)for(q.ivs={},g=0,m=a.jb.length;g<m;g++)q.ivs[a.type.Km[g].toString()]=a.jb[g];if(d.We){d={x:a.x,y:a.y,w:a.width,h:a.height,l:a.n.ca,zi:a.Fd()};0!==a.k&&(d.a=a.k);1!==a.opacity&&(d.o=a.opacity);.5!==a.Zb&&(d.hX=a.Zb);.5!==a.$b&&(d.hY=a.$b);0!==a.Wb&&(d.bm=a.Wb);a.visible||(d.v=a.visible);a.Wd||(d.ce=a.Wd);-1!==a.oi&&(d.mts=a.oi);if(l.R.length)for(d.fx=[],g=0,m=l.R.length;g<m;g++)n=l.R[g],d.fx.push({name:n.name,active:a.De[n.index],
params:a.La[n.index]});q.w=d}if(a.S&&a.S.length)for(q.behs={},g=0,m=a.S.length;g<m;g++)l=a.S[g],l.gb&&(q.behs[l.type.ca.toString()]=l.gb());a.gb&&(q.data=a.gb());return q};d.prototype.Iu=function(a,b){var c,g;c=0;for(g=a.Km.length;c<g;c++)if(a.Km[c]===b)return c;return-1};d.prototype.Eu=function(a,b){var c,g;c=0;for(g=a.S.length;c<g;c++)if(a.S[c].type.ca===b)return c;return-1};d.prototype.nk=function(a,b,c){var g,m,d,l,n;n=a.type;l=n.Ja;if(c){if(!b.c2)return}else a.uid=b.uid;b.ex?a.ea=b.ex:Wa(a.ea);
if(m=b.ivs)for(g in m)m.hasOwnProperty(g)&&(d=this.Iu(n,parseInt(g,10)),0>d||d>=a.jb.length||(a.jb[d]=m[g]));if(l.We){d=b.w;a.n.ca!==d.l&&(m=a.n,a.n=this.ma.Rj(d.l),a.n?(m.Rg(a,!0),a.n.lh(a,!0),a.C(),a.n.Gi(0)):(a.n=m,c||this.Bd(a)));a.x=d.x;a.y=d.y;a.width=d.w;a.height=d.h;a.zd=d.zi;a.k=d.hasOwnProperty("a")?d.a:0;a.opacity=d.hasOwnProperty("o")?d.o:1;a.Zb=d.hasOwnProperty("hX")?d.hX:.5;a.$b=d.hasOwnProperty("hY")?d.hY:.5;a.visible=d.hasOwnProperty("v")?d.v:!0;a.Wd=d.hasOwnProperty("ce")?d.ce:!0;
a.oi=d.hasOwnProperty("mts")?d.mts:-1;a.Wb=d.hasOwnProperty("bm")?d.bm:0;a.qh=fb(a.Wb);this.F&&gb(a,a.Wb,this.F);a.C();if(d.hasOwnProperty("fx"))for(c=0,m=d.fx.length;c<m;c++)l=n.pm(d.fx[c].name),0>l||(a.De[l]=d.fx[c].active,a.La[l]=d.fx[c].params);a.xe()}if(n=b.behs)for(g in n)n.hasOwnProperty(g)&&(c=this.Eu(a,parseInt(g,10)),0>c||a.S[c].tb(n[g]));b.data&&a.tb(b.data)};Pb=function(a){return new d(document.getElementById(a))};Qb=function(a,b){return new d({dc:!0,width:a,height:b})};window.cr_createRuntime=
Pb;window.cr_createDCRuntime=Qb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.bj=!0;document.body.appendChild(a);a=new d(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new d(document.getElementById("canvas"));
window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var k=document.getElementById("c2canvas");return k?k.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(k,h){var d=window.cr_getC2Runtime();d&&d.zt(k,h)};window.cr_sizeCanvas=function(k,h){if(0!==k&&0!==h){var d=window.cr_getC2Runtime();d&&d.setSize(k,h)}};window.cr_setSuspended=function(k){var h=window.cr_getC2Runtime();h&&h.setSuspended(k)};
(function(){function k(a,b){this.b=a;this.yf=null;this.scrollX=this.b.lb/2;this.scrollY=this.b.kb/2;this.scale=1;this.k=0;this.sg=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Er=b[3];this.cr=b[4];this.ca=b[5];var c=b[6],d,e;this.Y=[];this.Gh=[];d=0;for(e=c.length;d<e;d++){var h=new Rb(this,c[d]);h.tq=d;this.Y.push(h)}c=b[7];this.Gf=[];d=0;for(e=c.length;d<e;d++){var h=c[d],k=this.b.H[h[1]];k.Rc||(k.Rc=h);this.Gf.push(h);-1===this.Gh.indexOf(k)&&this.Gh.push(k)}this.R=[];this.ra=[];this.La=
[];d=0;for(e=b[8].length;d<e;d++)this.R.push({id:b[8][d][0],name:b[8][d][1],zb:-1,Ka:!0,index:d}),this.La.push(b[8][d][2].slice(0));this.xe();this.ff=new T(0,0,1,1);this.Gn=new T(0,0,1,1);this.df={}}function h(a,b){return a.zd-b.zd}function d(a,b){this.Va=a;this.b=a.b;this.j=[];this.scale=1;this.k=0;this.wf=!1;this.ve=new T(0,0,0,0);this.sr=new xa;this.Oa=this.Ia=this.Pa=this.Ha=0;this.bg=!1;this.Be=-1;this.name=b[0];this.index=b[1];this.ca=b[2];this.visible=b[3];this.Ie=b[4];this.we=b[5];this.Yc=
b[6];this.Zc=b[7];this.opacity=b[8];this.jm=b[9];this.yd=b[10];this.Ad=b[11];this.Wb=b[12];this.Rt=b[13];this.qh="source-over";this.Ib=this.Mb=0;this.zc=null;this.Hg=p();this.ne=!0;this.ek=new T(0,0,-1,-1);this.Qc=new T(0,0,-1,-1);this.yd&&(this.zc=new eb(this.b.lb,this.b.kb));this.gf=!1;var c=b[14],d,e;this.kr=[];this.Kc=[];this.rh=[];d=0;for(e=c.length;d<e;d++){var h=c[d],k=this.b.H[h[1]];k.Rc||(k.Rc=h,k.xt=this.index);this.Kc.push(h);-1===this.Va.Gh.indexOf(k)&&this.Va.Gh.push(k)}Ba(this.kr,this.Kc);
this.R=[];this.ra=[];this.La=[];d=0;for(e=b[15].length;d<e;d++)this.R.push({id:b[15][d][0],name:b[15][d][1],zb:-1,Ka:!0,index:d}),this.La.push(b[15][d][2].slice(0));this.xe();this.ff=new T(0,0,1,1);this.Gn=new T(0,0,1,1)}function p(){return c.length?c.pop():[]}function r(a){a.length=0;c.push(a)}k.prototype.jw=function(a){var b=a.type.ca.toString();this.df.hasOwnProperty(b)||(this.df[b]=[]);this.df[b].push(this.b.Nn(a))};k.prototype.wp=function(){var a=this.Y[0];return!a.we&&1===a.opacity&&!a.jm&&
a.visible};k.prototype.xe=function(){this.ra.length=0;var a,b,c;a=0;for(b=this.R.length;a<b;a++)c=this.R[a],c.Ka&&this.ra.push(c)};k.prototype.Qj=function(a){var b,c,d;b=0;for(c=this.R.length;b<c;b++)if(d=this.R[b],d.name===a)return d;return null};var b=[],a=!0;k.prototype.Zn=function(){this.cr&&(this.yf=this.b.fm[this.cr],this.yf.jo());this.b.ma=this;this.scrollX=this.b.lb/2;this.scrollY=this.b.kb/2;var c,d,e,n,k,u,r;c=0;for(e=this.b.H.length;c<e;c++)if(d=this.b.H[c],!d.J)for(k=d.j,d=0,n=k.length;d<
n;d++)if(u=k[d],u.n){var m=u.n.tq;m>=this.Y.length&&(m=this.Y.length-1);u.n=this.Y[m];-1===u.n.j.indexOf(u)&&u.n.j.push(u);u.n.bg=!0}if(!a)for(c=0,e=this.Y.length;c<e;++c)this.Y[c].j.sort(h);b.length=0;this.it();c=0;for(e=this.Y.length;c<e;c++)u=this.Y[c],u.tt(),u.no();k=!1;if(!this.sg){for(r in this.df)if(this.df.hasOwnProperty(r)&&(d=this.b.Sj(parseInt(r,10)))&&!d.J&&this.b.ho(d)){n=this.df[r];c=0;for(e=n.length;c<e;c++){u=null;if(d.Ja.We&&(u=this.Rj(n[c].w.l),!u))continue;u=this.b.Le(d.Rc,u,!1,
0,0,!0);this.b.nk(u,n[c]);k=!0;b.push(u)}n.length=0}c=0;for(e=this.Y.length;c<e;c++)this.Y[c].j.sort(h),this.Y[c].bg=!0}k&&(this.b.Bb(),this.b.Rq());for(c=0;c<b.length;c++)if(u=b[c],u.type.pc)for(e=u.Bh(),d=0,n=u.type.kc.length;d<n;d++)r=u.type.kc[d],u.type!==r&&(r.j.length>e?u.siblings.push(r.j[e]):r.Rc&&(k=this.b.Le(r.Rc,u.n,!0,u.x,u.y,!0),this.b.Bb(),r.pl(),u.siblings.push(k),b.push(k)));c=0;for(e=this.Gf.length;c<e;c++)this.b.Le(this.Gf[c],null,!0);this.b.Vd=null;this.b.Bb();if(this.b.xa&&!this.b.Ua)for(c=
0,e=this.b.H.length;c<e;c++)r=this.b.H[c],!r.J&&r.j.length&&r.Mk&&r.Mk(this.b.xa);c=0;for(e=b.length;c<e;c++)u=b[c],this.b.trigger(Object.getPrototypeOf(u.type.Ja).B.Vi,u);b.length=0;this.b.trigger(Y.prototype.B.Bs,null);this.sg=!1};k.prototype.qt=function(){var a,b,c,d,e;b=a=0;for(c=this.Gf.length;a<c;a++)d=this.Gf[a],e=this.b.H[d[1]],e.global?e.pc||this.b.Le(d,null,!0):(this.Gf[b]=d,b++);this.Gf.length=b};k.prototype.uw=function(){this.b.trigger(Y.prototype.B.As,null);this.b.Qd.hc.length=0;var b,
c,d,n,e,h;if(!this.sg)for(b=0,c=this.Y.length;b<c;b++)for(this.Y[b].oo(),e=this.Y[b].j,d=0,n=e.length;d<n;d++)h=e[d],h.type.global||this.b.ho(h.type)&&this.jw(h);b=0;for(c=this.Y.length;b<c;b++){e=this.Y[b].j;d=0;for(n=e.length;d<n;d++)h=e[d],h.type.global||this.b.Bd(h);this.b.Bb();e.length=0;this.Y[b].bg=!0}b=0;for(c=this.b.H.length;b<c;b++)if(e=this.b.H[b],!(e.global||e.Ja.We||e.Ja.$k||e.J)){d=0;for(n=e.j.length;d<n;d++)this.b.Bd(e.j[d]);this.b.Bb()}a=!1};new T(0,0,0,0);k.prototype.Hc=function(a){var b,
c=a,d=!1,e=!this.b.Tc;e&&(this.b.lk||(this.b.lk=document.createElement("canvas"),b=this.b.lk,b.width=this.b.X,b.height=this.b.W,this.b.Vp=b.getContext("2d"),d=!0),b=this.b.lk,c=this.b.Vp,b.width!==this.b.X&&(b.width=this.b.X,d=!0),b.height!==this.b.W&&(b.height=this.b.W,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.ka,c.mozImageSmoothingEnabled=this.b.ka,c.msImageSmoothingEnabled=this.b.ka,c.imageSmoothingEnabled=this.b.ka));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Dl&&!this.wp()&&
c.clearRect(0,0,this.b.X,this.b.W);var h,k,d=0;for(h=this.Y.length;d<h;d++)k=this.Y[d],k.visible&&0<k.opacity&&11!==k.Wb&&(k.j.length||!k.we)?k.Hc(c):k.no();e&&a.drawImage(b,0,0,this.b.width,this.b.height)};k.prototype.Jb=function(a){var b=0<this.ra.length||this.b.dh||!this.b.Tc;if(b){this.b.uc||(this.b.uc=a.Xd(this.b.X,this.b.W,this.b.ka));if(this.b.uc.oh!==this.b.X||this.b.uc.nh!==this.b.W)a.deleteTexture(this.b.uc),this.b.uc=a.Xd(this.b.X,this.b.W,this.b.ka);a.Od(this.b.uc);this.b.Tc||a.Ug(this.b.X,
this.b.W)}else this.b.uc&&(a.Od(null),a.deleteTexture(this.b.uc),this.b.uc=null);this.b.Dl&&!this.wp()&&a.clear(0,0,0,0);var c,d,e;c=0;for(d=this.Y.length;c<d;c++)e=this.Y[c],e.visible&&0<e.opacity&&(e.j.length||!e.we)?e.Jb(a):e.no();b&&(0===this.ra.length||1===this.ra.length&&this.b.Tc?(1===this.ra.length?(b=this.ra[0].index,a.Pd(this.ra[0].zb),a.Tg(null,1/this.b.X,1/this.b.W,0,0,1,1,this.scale,this.k,0,0,this.b.X/2,this.b.W/2,this.La[b]),a.Nk(this.ra[0].zb)&&(this.b.la=!0)):a.Pd(0),this.b.Tc||a.Ug(this.b.width,
this.b.height),a.Od(null),a.jf(1),a.gc(this.b.uc),a.Vq(),a.Md(),a.Rd(),b=this.b.width/2,c=this.b.height/2,a.Bi(-b,c,b,c,b,-c,-b,-c),a.gc(null)):this.Hn(a,null,null,null))};k.prototype.Ah=function(){return 0<this.ra.length||this.b.dh||!this.b.Tc?this.b.uc:null};k.prototype.qp=function(){var a=this.Y[0].mc(),b,c,d;b=1;for(c=this.Y.length;b<c;b++)d=this.Y[b],(0!==d.Yc||0!==d.Zc)&&d.mc()<a&&(a=d.mc());return a};k.prototype.Pn=function(a){if(!this.Er){var b=1/this.qp()*this.b.X/2;a>this.width-b&&(a=this.width-
b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.la=!0)};k.prototype.Qn=function(a){if(!this.Er){var b=1/this.qp()*this.b.W/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.la=!0)};k.prototype.it=function(){this.Pn(this.scrollX);this.Qn(this.scrollY)};k.prototype.Hn=function(a,b,c,d){var e=c?c.ra:b?b.ra:this.ra,h=1,k=0,m=0,q=0,u=this.b.X,f=this.b.W;c?(h=c.n.mc(),k=c.n.eb(),m=c.n.Ha,q=c.n.Ia,u=c.n.Pa,f=c.n.Oa):b&&(h=b.mc(),k=b.eb(),m=b.Ha,q=b.Ia,u=b.Pa,
f=b.Oa);var r=this.b.mm,p,F,J,w,N=0,va=1,ba,C=this.b.X,x=this.b.W,ka=C/2,L=x/2,P=b?b.ff:this.ff,G=b?b.Gn:this.Gn,H=0,Q=0,E=0,M=0,K=C,la=C,O=x,qa=x,fa=J=0,wa=c?c.n.eb():0;if(c){p=0;for(F=e.length;p<F;p++)J+=a.Nu(e[p].zb),fa+=a.Ou(e[p].zb);w=c.Ca;H=b.Na(w.left,w.top,!0,!0);E=b.Na(w.left,w.top,!1,!0);K=b.Na(w.right,w.bottom,!0,!0);O=b.Na(w.right,w.bottom,!1,!0);0!==wa&&(p=b.Na(w.right,w.top,!0,!0),F=b.Na(w.right,w.top,!1,!0),Q=b.Na(w.left,w.bottom,!0,!0),M=b.Na(w.left,w.bottom,!1,!0),w=Math.min(H,K,
p,Q),K=Math.max(H,K,p,Q),H=w,w=Math.min(E,O,F,M),O=Math.max(E,O,F,M),E=w);H-=J;E-=fa;K+=J;O+=fa;G.left=H/C;G.top=1-E/x;G.right=K/C;G.bottom=1-O/x;Q=H=S(H);M=E=S(E);la=K=ta(K);qa=O=ta(O);Q-=J;M-=fa;la+=J;qa+=fa;0>H&&(H=0);0>E&&(E=0);K>C&&(K=C);O>x&&(O=x);0>Q&&(Q=0);0>M&&(M=0);la>C&&(la=C);qa>x&&(qa=x);P.left=H/C;P.top=1-E/x;P.right=K/C;P.bottom=1-O/x}else P.left=G.left=0,P.top=G.top=0,P.right=G.right=1,P.bottom=G.bottom=1;fa=c&&((c.k||wa)&&a.xi(e[0].zb)||0!==J||0!==fa||1!==c.opacity||c.type.Ja.pq)||
b&&!c&&1!==b.opacity;a.Vq();if(fa){r[N]||(r[N]=a.Xd(C,x,this.b.ka));if(r[N].oh!==C||r[N].nh!==x)a.deleteTexture(r[N]),r[N]=a.Xd(C,x,this.b.ka);a.Pd(0);a.Od(r[N]);ba=qa-M;a.clearRect(Q,x-M-ba,la-Q,ba);c?c.Jb(a):(a.gc(this.b.Lc),a.jf(b.opacity),a.Md(),a.translate(-ka,-L),a.Rd(),a.Kd(H,O,K,O,K,E,H,E,P));G.left=G.top=0;G.right=G.bottom=1;c&&(w=P.top,P.top=P.bottom,P.bottom=w);N=1;va=0}a.jf(1);J=e.length-1;var wa=a.Bn(e[J].zb)||!b&&!c&&!this.b.Tc,ca=0;p=0;for(F=e.length;p<F;p++){r[N]||(r[N]=a.Xd(C,x,this.b.ka));
if(r[N].oh!==C||r[N].nh!==x)a.deleteTexture(r[N]),r[N]=a.Xd(C,x,this.b.ka);a.Pd(e[p].zb);ca=e[p].index;a.Nk(e[p].zb)&&(this.b.la=!0);0!=p||fa?(a.Tg(d,1/C,1/x,G.left,G.top,G.right,G.bottom,h,k,m,q,(m+u)/2,(q+f)/2,c?c.La[ca]:b?b.La[ca]:this.La[ca]),a.gc(null),p!==J||wa?(a.Od(r[N]),ba=qa-M,w=x-M-ba,a.clearRect(Q,w,la-Q,ba)):(c?a.hf(c.Mb,c.Ib):b&&a.hf(b.Mb,b.Ib),a.Od(d)),a.gc(r[va]),a.Md(),a.translate(-ka,-L),a.Rd(),a.Kd(H,O,K,O,K,E,H,E,P),p!==J||wa||a.gc(null)):(a.Od(r[N]),ba=qa-M,w=x-M-ba,a.clearRect(Q,
w,la-Q,ba),c?(a.Tg(d,1/c.width,1/c.height,G.left,G.top,G.right,G.bottom,h,k,m,q,(m+u)/2,(q+f)/2,c.La[ca]),c.Jb(a)):(a.Tg(d,1/C,1/x,0,0,1,1,h,k,m,q,(m+u)/2,(q+f)/2,b?b.La[ca]:this.La[ca]),a.gc(b?this.b.Lc:this.b.uc),a.Md(),a.translate(-ka,-L),a.Rd(),a.Kd(H,O,K,O,K,E,H,E,P)),G.left=G.top=0,G.right=G.bottom=1,c&&!wa&&(w=O,O=E,E=w));N=0===N?1:0;va=0===N?1:0}wa&&(a.Pd(0),c?a.hf(c.Mb,c.Ib):b?a.hf(b.Mb,b.Ib):this.b.Tc||(a.Ug(this.b.width,this.b.height),ka=this.b.width/2,L=this.b.height/2,E=H=0,K=this.b.width,
O=this.b.height),a.Od(d),a.gc(r[va]),a.Md(),a.translate(-ka,-L),a.Rd(),c&&1===e.length&&!fa?a.Kd(H,E,K,E,K,O,H,O,P):a.Kd(H,O,K,O,K,E,H,E,P),a.gc(null))};k.prototype.Rj=function(a){var b,c;b=0;for(c=this.Y.length;b<c;b++)if(this.Y[b].ca===a)return this.Y[b];return null};k.prototype.gb=function(){var a,b,c,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.sg,persist:this.df,fx:[],layers:{}};a=0;for(b=this.R.length;a<b;a++)c=this.R[a],d.fx.push({name:c.name,
active:c.Ka,params:this.La[c.index]});a=0;for(b=this.Y.length;a<b;a++)c=this.Y[a],d.layers[c.ca.toString()]=c.gb();return d};k.prototype.tb=function(a){var b,c,d,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.k=a.a;this.width=a.w;this.height=a.h;this.df=a.persist;"undefined"!==typeof a.fv&&(this.sg=a.fv);var h=a.fx;b=0;for(c=h.length;b<c;b++)if(d=this.Qj(h[b].name))d.Ka=h[b].active,this.La[d.index]=h[b].params;this.xe();b=a.layers;for(e in b)b.hasOwnProperty(e)&&(a=this.Rj(parseInt(e,10)))&&
a.tb(b[e])};Db=k;d.prototype.xe=function(){this.ra.length=0;var a,b,c;a=0;for(b=this.R.length;a<b;a++)c=this.R[a],c.Ka&&this.ra.push(c)};d.prototype.Qj=function(a){var b,c,d;b=0;for(c=this.R.length;b<c;b++)if(d=this.R[b],d.name===a)return d;return null};d.prototype.tt=function(){var a,c,d,n,e,h;c=a=0;for(d=this.Kc.length;a<d;a++){n=this.Kc[a];e=this.b.H[n[1]];h=this.b.ho(e);e=!0;if(!h||this.Va.sg)n=this.b.Le(n,this,!0),b.push(n),n.type.global&&(e=!1,this.rh.push(n.uid));e&&(this.Kc[c]=this.Kc[a],
c++)}this.Kc.length=c;this.b.Bb();!this.b.G&&this.R.length&&(this.Wb=this.Rt);this.qh=fb(this.Wb);this.b.F&&gb(this,this.Wb,this.b.F);this.ne=!0};d.prototype.Rg=function(a,b){var c=Da(this.j,a);0>c||(b&&this.yd&&a.ec&&a.ec.right>=a.ec.left&&(a.Ba(),this.zc.update(a,a.ec,null),a.ec.set(0,0,-1,-1)),c===this.j.length-1?this.j.pop():(za(this.j,c),this.Gi(c)),this.ne=!0)};d.prototype.lh=function(a,b){a.zd=this.j.length;this.j.push(a);b&&this.yd&&a.ec&&a.C();this.ne=!0};d.prototype.Wv=function(a){this.j.unshift(a);
this.Gi(0)};d.prototype.Fv=function(a,b,c){var d=a.Fd();b=b.Fd();za(this.j,d);d<b&&b--;c&&b++;b===this.j.length?this.j.push(a):this.j.splice(b,0,a);this.Gi(d<b?d:b)};d.prototype.Gi=function(a){-1===this.Be?this.Be=a:a<this.Be&&(this.Be=a);this.ne=this.bg=!0};d.prototype.oo=function(){if(this.bg){-1===this.Be&&(this.Be=0);var a,b,c;if(this.yd)for(a=this.Be,b=this.j.length;a<b;++a)c=this.j[a],c.zd=a,this.zc.Cv(c.ec);else for(a=this.Be,b=this.j.length;a<b;++a)this.j[a].zd=a;this.bg=!1;this.Be=-1}};d.prototype.mc=
function(a){return this.Ku()*(this.b.Tc||a?this.b.mh:1)};d.prototype.Ku=function(){return(this.scale*this.Va.scale-1)*this.Ad+1};d.prototype.eb=function(){return this.wf?0:X(this.Va.k+this.k)};var c=[],u=[],e=[];d.prototype.sp=function(){this.oo();this.zc.Qk(this.Ha,this.Ia,this.Pa,this.Oa,e);if(!e.length)return p();if(1===e.length){var a=p();Ba(a,e[0]);e.length=0;return a}for(var b=!0;1<e.length;){for(var a=e,c=void 0,d=void 0,h=void 0,k=void 0,z=void 0,c=0,d=a.length;c<d-1;c+=2){var h=a[c],k=a[c+
1],z=p(),m=h,q=k,D=z,f=0,v=0,y=0,F=m.length,J=q.length,w=void 0,N=void 0;for(D.length=F+J;f<F&&v<J;++y)w=m[f],N=q[v],w.zd<N.zd?(D[y]=w,++f):(D[y]=N,++v);for(;f<F;++f,++y)D[y]=m[f];for(;v<J;++v,++y)D[y]=q[v];b||(r(h),r(k));u.push(z)}1===d%2&&(b?(h=p(),Ba(h,a[d-1]),u.push(h)):u.push(a[d-1]));Ba(a,u);u.length=0;b=!1}a=e[0];e.length=0;return a};d.prototype.Hc=function(a){this.gf=this.jm||1!==this.opacity||0!==this.Wb;var b=this.b.canvas,c=a,d=!1;this.gf&&(this.b.kk||(this.b.kk=document.createElement("canvas"),
b=this.b.kk,b.width=this.b.X,b.height=this.b.W,this.b.Up=b.getContext("2d"),d=!0),b=this.b.kk,c=this.b.Up,b.width!==this.b.X&&(b.width=this.b.X,d=!0),b.height!==this.b.W&&(b.height=this.b.W,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.ka,c.mozImageSmoothingEnabled=this.b.ka,c.msImageSmoothingEnabled=this.b.ka,c.imageSmoothingEnabled=this.b.ka),this.we&&c.clearRect(0,0,this.b.X,this.b.W));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.we||(c.fillStyle="rgb("+this.Ie[0]+","+this.Ie[1]+
","+this.Ie[2]+")",c.fillRect(0,0,this.b.X,this.b.W));c.save();this.wf=!0;var d=this.jc(0,0,!0,!0),e=this.jc(0,0,!1,!0);this.wf=!1;this.b.$c&&(d=Math.round(d),e=Math.round(e));this.Jn(d,e,c);var h=this.mc();c.scale(h,h);c.translate(-d,-e);this.yd?(this.Qc.left=this.zc.Ec(this.Ha),this.Qc.top=this.zc.Fc(this.Ia),this.Qc.right=this.zc.Ec(this.Pa),this.Qc.bottom=this.zc.Fc(this.Oa),this.ne||!this.Qc.Aj(this.ek)?(r(this.Hg),d=this.sp(),this.ne=!1,this.ek.pj(this.Qc)):d=this.Hg):d=this.j;for(var k,m=null,
e=0,h=d.length;e<h;++e)k=d[e],k!==m&&(this.Ot(k,c),m=k);this.yd&&(this.Hg=d);c.restore();this.gf&&(a.globalCompositeOperation=this.qh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};d.prototype.Ot=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ba();var c=a.Ca;c.right<this.Ha||c.bottom<this.Ia||c.left>this.Pa||c.top>this.Oa||(b.globalCompositeOperation=a.qh,a.Hc(b))}};d.prototype.no=function(){this.wf=!0;var a=this.jc(0,0,!0,!0),b=this.jc(0,0,!1,!0);this.wf=!1;this.b.$c&&(a=Math.round(a),
b=Math.round(b));this.Jn(a,b,null)};d.prototype.Jn=function(a,b,c){var d=this.mc();this.Ha=a;this.Ia=b;this.Pa=a+1/d*this.b.X;this.Oa=b+1/d*this.b.W;a=this.eb();0!==a&&(c&&(c.translate(this.b.X/2,this.b.W/2),c.rotate(-a),c.translate(this.b.X/-2,this.b.W/-2)),this.ve.set(this.Ha,this.Ia,this.Pa,this.Oa),this.ve.offset((this.Ha+this.Pa)/-2,(this.Ia+this.Oa)/-2),this.sr.$q(this.ve,a),this.sr.Qo(this.ve),this.ve.offset((this.Ha+this.Pa)/2,(this.Ia+this.Oa)/2),this.Ha=this.ve.left,this.Ia=this.ve.top,
this.Pa=this.ve.right,this.Oa=this.ve.bottom)};d.prototype.Jb=function(a){var b=0,c=0;if(this.gf=this.jm||1!==this.opacity||0<this.ra.length||0!==this.Wb){this.b.Lc||(this.b.Lc=a.Xd(this.b.X,this.b.W,this.b.ka));if(this.b.Lc.oh!==this.b.X||this.b.Lc.nh!==this.b.W)a.deleteTexture(this.b.Lc),this.b.Lc=a.Xd(this.b.X,this.b.W,this.b.ka);a.Od(this.b.Lc);this.we&&a.clear(0,0,0,0)}this.we||a.clear(this.Ie[0]/255,this.Ie[1]/255,this.Ie[2]/255,1);this.wf=!0;var d=this.jc(0,0,!0,!0),b=this.jc(0,0,!1,!0);this.wf=
!1;this.b.$c&&(d=Math.round(d),b=Math.round(b));this.Jn(d,b,null);d=this.mc();a.Md();a.scale(d,d);a.Kn(-this.eb());a.translate((this.Ha+this.Pa)/-2,(this.Ia+this.Oa)/-2);a.Rd();this.yd?(this.Qc.left=this.zc.Ec(this.Ha),this.Qc.top=this.zc.Fc(this.Ia),this.Qc.right=this.zc.Ec(this.Pa),this.Qc.bottom=this.zc.Fc(this.Oa),this.ne||!this.Qc.Aj(this.ek)?(r(this.Hg),b=this.sp(),this.ne=!1,this.ek.pj(this.Qc)):b=this.Hg):b=this.j;var e,h,k=null,c=0;for(e=b.length;c<e;++c)h=b[c],h!==k&&(this.Pt(b[c],a),k=
h);this.yd&&(this.Hg=b);this.gf&&(b=this.ra.length?this.ra[0].zb:0,c=this.ra.length?this.ra[0].index:0,0===this.ra.length||1===this.ra.length&&!a.Bn(b)&&1===this.opacity?(1===this.ra.length?(a.Pd(b),a.Tg(this.Va.Ah(),1/this.b.X,1/this.b.W,0,0,1,1,d,this.eb(),this.Ha,this.Ia,(this.Ha+this.Pa)/2,(this.Ia+this.Oa)/2,this.La[c]),a.Nk(b)&&(this.b.la=!0)):a.Pd(0),a.Od(this.Va.Ah()),a.jf(this.opacity),a.gc(this.b.Lc),a.hf(this.Mb,this.Ib),a.Md(),a.Rd(),d=this.b.X/2,b=this.b.W/2,a.Bi(-d,b,d,b,d,-b,-d,-b),
a.gc(null)):this.Va.Hn(a,this,null,this.Va.Ah()))};d.prototype.Pt=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ba();var c=a.Ca;c.right<this.Ha||c.bottom<this.Ia||c.left>this.Pa||c.top>this.Oa||(a.Kr?this.Qt(a,b):(b.Pd(0),b.hf(a.Mb,a.Ib),a.Jb(b)))}};d.prototype.Qt=function(a,b){var c=a.ra[0].zb,d=a.ra[0].index,e=this.mc();if(1!==a.ra.length||b.Bn(c)||b.Yv(c)||(a.k||a.n.eb())&&b.xi(c)||1!==a.opacity||a.type.Ja.pq)this.Va.Hn(b,this,a,this.gf?this.b.Lc:this.Va.Ah()),b.Md(),b.scale(e,e),b.Kn(-this.eb()),
b.translate((this.Ha+this.Pa)/-2,(this.Ia+this.Oa)/-2),b.Rd();else{b.Pd(c);b.hf(a.Mb,a.Ib);b.Nk(c)&&(this.b.la=!0);var h=0,k=0,m=0,q=0;b.xi(c)&&(c=a.Ca,h=this.Na(c.left,c.top,!0,!0),k=this.Na(c.left,c.top,!1,!0),m=this.Na(c.right,c.bottom,!0,!0),c=this.Na(c.right,c.bottom,!1,!0),h=h/windowWidth,k=1-k/windowHeight,m=m/windowWidth,q=1-c/windowHeight);b.Tg(this.gf?this.b.Lc:this.Va.Ah(),1/a.width,1/a.height,h,k,m,q,e,this.eb(),this.Ha,this.Ia,(this.Ha+this.Pa)/2,(this.Ia+this.Oa)/2,a.La[d]);a.Jb(b)}};
d.prototype.jc=function(a,b,c,d){var e=this.b.devicePixelRatio;this.b.Ve&&(a*=e,b*=e);var e=this.b.Hq,h=this.b.Iq,e=(this.Va.scrollX-e)*this.Yc+e,h=(this.Va.scrollY-h)*this.Zc+h,k=e,m=h,q=1/this.mc(!d);d?(k-=this.b.X*q/2,m-=this.b.W*q/2):(k-=this.b.width*q/2,m-=this.b.height*q/2);k+=a*q;m+=b*q;b=this.eb();0!==b&&(k-=e,m-=h,a=Math.cos(b),b=Math.sin(b),d=k*a-m*b,m=m*a+k*b,k=d+e,m+=h);return c?k:m};d.prototype.Na=function(a,b,c,d){var e=this.b.Hq,h=this.b.Iq,k=(this.Va.scrollX-e)*this.Yc+e,m=(this.Va.scrollY-
h)*this.Zc+h,h=k,e=m,q=this.eb();if(0!==q){a-=k;b-=m;var u=Math.cos(-q),q=Math.sin(-q),f=a*u-b*q;b=b*u+a*q;a=f+k;b+=m}k=1/this.mc(!d);d?(h-=this.b.X*k/2,e-=this.b.W*k/2):(h-=this.b.width*k/2,e-=this.b.height*k/2);h=(a-h)/k;e=(b-e)/k;a=this.b.devicePixelRatio;this.b.Ve&&!d&&(h/=a,e/=a);return c?h:e};d.prototype.gb=function(){var a,b,c,d={s:this.scale,a:this.k,vl:this.Ha,vt:this.Ia,vr:this.Pa,vb:this.Oa,v:this.visible,bc:this.Ie,t:this.we,px:this.Yc,py:this.Zc,o:this.opacity,zr:this.Ad,fx:[],cg:this.rh,
instances:[]};a=0;for(b=this.R.length;a<b;a++)c=this.R[a],d.fx.push({name:c.name,active:c.Ka,params:this.La[c.index]});return d};d.prototype.tb=function(a){var b,c,d;this.scale=a.s;this.k=a.a;this.Ha=a.vl;this.Ia=a.vt;this.Pa=a.vr;this.Oa=a.vb;this.visible=a.v;this.Ie=a.bc;this.we=a.t;this.Yc=a.px;this.Zc=a.py;this.opacity=a.o;this.Ad=a.zr;this.rh=a.cg||[];Ba(this.Kc,this.kr);var e=new da;b=0;for(d=this.rh.length;b<d;++b)e.add(this.rh[b]);c=b=0;for(d=this.Kc.length;b<d;++b)e.contains(this.Kc[b][2])||
(this.Kc[c]=this.Kc[b],++c);this.Kc.length=c;c=a.fx;b=0;for(d=c.length;b<d;b++)if(a=this.Qj(c[b].name))a.Ka=c[b].active,this.La[a.index]=c[b].params;this.xe();this.j.sort(h);this.bg=!0};Rb=d})();
(function(){function k(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function h(a,b){return a.index-b.index}function d(a){var b,c,d,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(h);a.length>=B.length&&(B.length=a.length+1);B[a.length]||(B[a.length]=[]);e=B[a.length];b=0;for(c=e.length;b<c;b++)if(d=e[b],k(a,d))return d;e.push(a);return a}
function p(a,b){this.b=a;this.Ar={};this.fp={};this.Bm=!1;this.zp=new da;this.Wl=[];this.El=[];this.name=b[0];var c=b[1];this.Ne=[];var d,e;d=0;for(e=c.length;d<e;d++)this.Bp(c[d],null,this.Ne)}function r(a){this.type=a;this.j=[];this.ta=[];this.za=!0}function b(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ea=[];this.kf=[];this.xp=this.kl=this.co=this.Xj=this.group=this.ir=!1;this.rb=[];this.gd=[];this.cd=[];this.Ch="";this.ug=this.Xj=this.group=!1;this.nj=null;c[1]&&(this.Ch=c[1][1].toLowerCase(),
this.group=!0,this.Xj=!!c[1][0],this.nj=[],this.ug=this.Xj,this.b.Fe.push(this),this.b.Dh[this.Ch]=this);this.ud=c[2];this.ca=c[4];this.group||(this.b.Po[this.ca.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var e=new Sb(this,d[a]);e.index=a;this.rb.push(e);this.Mo(e.type)}d=c[6];a=0;for(b=d.length;a<b;a++)e=new Tb(this,d[a]),e.index=a,this.gd.push(e);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Bp(c[a],this,this.cd);this.ak=!1;this.rb.length&&(this.ak=null==this.rb[0].type&&
this.rb[0].Ab==Y.prototype.B.Xr)}function a(a,b){var c,d,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.pc))for(c=0,d=a.kc.length;c<d;c++)e=a.kc[c],a!==e&&-1===b.indexOf(e)&&b.push(e)}function c(a,b){this.Gc=a;this.sheet=a.sheet;this.b=a.b;this.V=[];this.Sa=[];this.ea={};this.index=-1;this.jh=!1;this.Ab=this.b.Ce(b[1]);this.trigger=0<b[3];this.ep=2===b[3];this.Gd=b[4];this.Lm=b[5];this.xv=b[6];this.ca=b[7];this.b.kg[this.ca.toString()]=this;-1===b[0]?(this.type=null,this.fb=this.Mn,this.tf=null,this.md=
-1):(this.type=this.b.H[b[0]],this.fb=this.xv?this.hw:this.Ln,b[2]?(this.tf=this.type.Pj(b[2]),this.md=this.type.nm(b[2])):(this.tf=null,this.md=-1),this.Gc.parent&&this.Gc.parent.Wk());this.ep&&(this.fb=this.iw);if(10===b.length){var c,d,e=b[9];c=0;for(d=e.length;c<d;c++){var g=new Ub(this,e[c]);this.V.push(g)}this.Sa.length=e.length}}function u(a,b){this.Gc=a;this.sheet=a.sheet;this.b=a.b;this.V=[];this.Sa=[];this.ea={};this.index=-1;this.jh=!1;this.Ab=this.b.Ce(b[1]);-1===b[0]?(this.type=null,
this.fb=this.Mn,this.tf=null,this.md=-1):(this.type=this.b.H[b[0]],this.fb=this.Ln,b[2]?(this.tf=this.type.Pj(b[2]),this.md=this.type.nm(b[2])):(this.tf=null,this.md=-1));this.ca=b[3];this.b.hg[this.ca.toString()]=this;if(6===b.length){var c,d,e=b[5];c=0;for(d=e.length;c<d;c++){var g=new Ub(this,e[c]);this.V.push(g)}this.Sa.length=e.length}}function e(){z++;A.length===z&&A.push(new Vb);return A[z]}function g(a,b){this.Ga=a;this.Gc=a.Gc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Ed=null;this.ue=
0;this.get=null;this.Xo=0;this.Va=null;this.key=0;this.object=null;this.index=0;this.Ri=this.Zf=this.Ri=this.Zf=this.gp=this.zf=this.Si=null;this.fd=!1;var c,d,e;switch(b[0]){case 0:case 7:this.Ed=new Wb(this,b[1]);this.ue=0;this.get=this.Uu;break;case 1:this.Ed=new Wb(this,b[1]);this.ue=0;this.get=this.Vu;break;case 5:this.Ed=new Wb(this,b[1]);this.ue=0;this.get=this.Zu;break;case 3:case 8:this.Xo=b[1];this.get=this.Su;break;case 6:this.Va=this.b.$m[b[1]];this.get=this.$u;break;case 9:this.key=b[1];
this.get=this.Yu;break;case 4:this.object=this.b.H[b[1]];this.get=this.av;this.Gc.Mo(this.object);this.Ga instanceof Tb?this.Gc.Wk():this.Gc.parent&&this.Gc.parent.Wk();break;case 10:this.index=b[1];a.type.J?(this.get=this.Wu,this.fd=!0):this.get=this.Xu;break;case 11:this.Si=b[1];this.zf=null;this.get=this.Tu;break;case 2:case 12:this.gp=b[1];this.get=this.Ru;break;case 13:for(this.get=this.bv,this.Zf=[],this.Ri=[],c=1,d=b.length;c<d;c++)e=new Ub(this.Ga,b[c]),this.Zf.push(e),this.Ri.push(0)}}function l(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ea=[];this.name=c[1];this.Fm=c[3];this.Oh=!!c[4];this.$j=!!c[5];this.ca=c[6];this.b.fh[this.ca.toString()]=this;this.data=this.Fm;this.parent?(this.Qf=this.Oh||this.$j?-1:this.b.rw++,this.b.ct.push(this)):(this.Qf=-1,this.b.bt.push(this))}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ea=[];this.Fh=null;this.kv=c[1];this.Ka=!0}function n(){this.mr=[];this.reset(null)}var B=[];p.prototype.toString=function(){return this.name};p.prototype.Bp=
function(a,b,c){switch(a[0]){case 0:a=new Xb(this,b,a);if(a.ud)for(c.push(a),c=0,b=a.rb.length;c<b;c++)a.rb[c].trigger&&this.Cp(a,c);else a.Mp()?this.Cp(a,0):c.push(a);break;case 1:a=new Ob(this,b,a);c.push(a);break;case 2:a=new Yb(this,b,a),c.push(a)}};p.prototype.Ya=function(){var a,b;a=0;for(b=this.Ne.length;a<b;a++)this.Ne[a].Ya(a<b-1&&this.Ne[a+1].ak)};p.prototype.jo=function(){V(this.Wl);V(this.El);this.Lo(this);V(this.El)};p.prototype.Lo=function(a){var b,c,d,e,g=a.Wl,n=a.El,h=this.zp.ye();
b=0;for(c=h.length;b<c;++b)d=h[b],e=d.Fh,!d.Ka||a===e||-1<n.indexOf(e)||(n.push(e),e.Lo(a),g.push(e))};p.prototype.fb=function(a){this.b.Tx||(this.Bm=!0,a||(this.b.Pm=!0));var b,c;b=0;for(c=this.Ne.length;b<c;b++){var d=this.Ne[b];d.fb();this.b.Pl(d.Ea);this.b.Qe&&this.b.Bb()}a||(this.b.Pm=!1)};p.prototype.Cp=function(a,b){a.ud||this.b.nl.push(a);var c,d,e=a.rb[b],g;e.type?g=e.type.name:g="system";var n=(c=e.ep)?this.fp:this.Ar;n[g]||(n[g]=[]);g=n[g];n=e.Ab;if(c){if(e.V.length&&(e=e.V[0],1===e.type&&
2===e.Ed.type)){e=e.Ed.value.toLowerCase();c=0;for(d=g.length;c<d;c++)if(g[c].method==n){c=g[c].vh;c[e]?c[e].push([a,b]):c[e]=[[a,b]];return}c={};c[e]=[[a,b]];g.push({method:n,vh:c})}}else{c=0;for(d=g.length;c<d;c++)if(g[c].method==n){g[c].vh.push([a,b]);return}Z&&n===Z.prototype.B.fg?g.unshift({method:n,vh:[[a,b]]}):g.push({method:n,vh:[[a,b]]})}};Eb=p;r.prototype.Am=function(){return this.za?this.type.j.length:this.j.length};r.prototype.Jc=function(){return this.za?this.type.j:this.j};r.prototype.wi=
function(a){a&&(a.b.Kb().lc.ud?(this.za&&(V(this.j),Ba(this.ta,a.type.j),this.za=!1),a=this.ta.indexOf(a),-1!==a&&(this.j.push(this.ta[a]),this.ta.splice(a,1))):(this.za=!1,V(this.j),this.j[0]=a))};mb=r;window._c2hh_="";b.prototype.Ya=function(a){var b,c=this.parent;if(this.group)for(this.kl=!0;c;){if(!c.group){this.kl=!1;break}c=c.parent}this.co=!this.Mp()&&(!this.parent||this.parent.group&&this.parent.kl);this.xp=!!a;this.kf=this.Ea.slice(0);for(c=this.parent;c;){a=0;for(b=c.Ea.length;a<b;a++)this.Ys(c.Ea[a]);
c=c.parent}this.Ea=d(this.Ea);this.kf=d(this.kf);a=0;for(b=this.rb.length;a<b;a++)this.rb[a].Ya();a=0;for(b=this.gd.length;a<b;a++)this.gd[a].Ya();a=0;for(b=this.cd.length;a<b;a++)this.cd[a].Ya(a<b-1&&this.cd[a+1].ak)};b.prototype.Wq=function(a){if(this.ug!==!!a){this.ug=!!a;var b;a=0;for(b=this.nj.length;a<b;++a)this.nj[a].Gr();0<b&&this.b.ma.yf&&this.b.ma.yf.jo()}};b.prototype.Mo=function(b){a(b,this.Ea)};b.prototype.Ys=function(b){a(b,this.kf)};b.prototype.Wk=function(){this.ir=!0;this.parent&&
this.parent.Wk()};b.prototype.Mp=function(){return this.rb.length?this.rb[0].trigger:!1};b.prototype.fb=function(){var a,b,c=!1,d=this.b,e=this.b.Kb();e.lc=this;var g=this.rb;this.ak||(e.$l=!1);if(this.ud){0===g.length&&(c=!0);e.qb=0;for(a=g.length;e.qb<a;e.qb++)b=g[e.qb],b.trigger||(b=b.fb())&&(c=!0);(e.Lf=c)&&this.Tk()}else{e.qb=0;for(a=g.length;e.qb<a;e.qb++)if(b=g[e.qb].fb(),!b){e.Lf=!1;this.co&&d.Qe&&d.Bb();return}e.Lf=!0;this.Tk()}this.Tt(e)};b.prototype.Tt=function(a){a.Lf&&this.xp&&(a.$l=
!0);this.co&&this.b.Qe&&this.b.Bb()};b.prototype.fw=function(a){this.b.Kb().lc=this;this.rb[a].fb()&&(this.Tk(),this.b.Kb().Lf=!0)};b.prototype.Tk=function(){var a=this.b.Kb(),b;a.ic=0;for(b=this.gd.length;a.ic<b;a.ic++)if(this.gd[a.ic].fb())return;this.Uq()};b.prototype.cw=function(){var a=this.b.Kb(),b;for(b=this.gd.length;a.ic<b;a.ic++)if(this.gd[a.ic].fb())return;this.Uq()};b.prototype.Uq=function(){if(this.cd.length){var a,b,c,d,e=this.cd.length-1;this.b.Pk(this);if(this.ir)for(a=0,b=this.cd.length;a<
b;a++)c=this.cd[a],(d=!this.kl||!this.group&&a<e)&&this.b.Ok(c.Ea),c.fb(),d?this.b.Vf(c.Ea):this.b.Pl(c.Ea);else for(a=0,b=this.cd.length;a<b;a++)this.cd[a].fb();this.b.Jk()}};b.prototype.gw=function(){var a=this.b.Kb();a.lc=this;var b=!1,c;a.qb=0;for(c=this.rb.length;a.qb<c;a.qb++)if(this.rb[a.qb].fb())b=!0;else if(!this.ud)return!1;return this.ud?b:!0};b.prototype.dw=function(){this.b.wh++;var a=this.b.Kb().qb,b=this.b.Pk(this);if(!this.ud)for(b.qb=a+1,a=this.rb.length;b.qb<a;b.qb++)if(!this.rb[b.qb].fb()){this.b.Jk();
return}this.Tk();this.b.Jk()};b.prototype.sv=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.rb[b].type===a.type)return!1;return!0};Xb=b;c.prototype.Ya=function(){var a,b,c;a=0;for(b=this.V.length;a<b;a++)c=this.V[a],c.Ya(),c.fd&&(this.jh=!0)};c.prototype.iw=function(){return!0};c.prototype.Mn=function(){var a,b;a=0;for(b=this.V.length;a<b;a++)this.Sa[a]=this.V[a].get();return Qa(this.Ab.apply(this.b.Qd,this.Sa),this.Lm)};c.prototype.hw=function(){var a,b;a=0;for(b=this.V.length;a<
b;a++)this.Sa[a]=this.V[a].get();a=this.Ab.apply(this.tf?this.tf:this.type,this.Sa);this.type.ld();return a};c.prototype.Ln=function(){var a,b,c,d,e,g,n,h,l=this.type,k=l.na(),u=this.Gc.ud&&!this.trigger;b=0;var r=l.pc,p=l.J,t=l.be,B=this.md,A=-1<B,z=this.jh,G=this.V,H=this.Sa,Q=this.Lm,E=this.Ab,M;if(z)for(b=0,e=G.length;b<e;++b)g=G[b],g.fd||(H[b]=g.get(0));else for(b=0,e=G.length;b<e;++b)H[b]=G[b].get(0);if(k.za){V(k.j);V(k.ta);M=l.j;a=0;for(d=M.length;a<d;++a){h=M[a];if(z)for(b=0,e=G.length;b<
e;++b)g=G[b],g.fd&&(H[b]=g.get(a));A?(b=0,p&&(b=h.type.rg[t]),b=E.apply(h.S[B+b],H)):b=E.apply(h,H);(n=Qa(b,Q))?k.j.push(h):u&&k.ta.push(h)}l.finish&&l.finish(!0);k.za=!1;l.ld();return k.Am()}c=0;M=(n=u&&!this.Gc.sv(this))?k.ta:k.j;var K=!1;a=0;for(d=M.length;a<d;++a){h=M[a];if(z)for(b=0,e=G.length;b<e;++b)g=G[b],g.fd&&(H[b]=g.get(a));A?(b=0,p&&(b=h.type.rg[t]),b=E.apply(h.S[B+b],H)):b=E.apply(h,H);if(Qa(b,Q))if(K=!0,n){if(k.j.push(h),r)for(b=0,e=h.siblings.length;b<e;b++)g=h.siblings[b],g.type.na().j.push(g)}else{M[c]=
h;if(r)for(b=0,e=h.siblings.length;b<e;b++)g=h.siblings[b],g.type.na().j[c]=g;c++}else if(n){M[c]=h;if(r)for(b=0,e=h.siblings.length;b<e;b++)g=h.siblings[b],g.type.na().ta[c]=g;c++}else if(u&&(k.ta.push(h),r))for(b=0,e=h.siblings.length;b<e;b++)g=h.siblings[b],g.type.na().ta.push(g)}Aa(M,c);if(r)for(p=l.kc,a=0,d=p.length;a<d;a++)h=p[a].na(),n?Aa(h.ta,c):Aa(h.j,c);c=K;if(n&&!K)for(a=0,d=k.j.length;a<d;a++){h=k.j[a];if(z)for(b=0,e=G.length;b<e;b++)g=G[b],g.fd&&(H[b]=g.get(a));b=A?E.apply(h.S[B],H):
E.apply(h,H);if(Qa(b,Q)){K=!0;break}}l.finish&&l.finish(c||u);return u?K:k.Am()};Sb=c;u.prototype.Ya=function(){var a,b,c;a=0;for(b=this.V.length;a<b;a++)c=this.V[a],c.Ya(),c.fd&&(this.jh=!0)};u.prototype.Mn=function(){var a=this.b,b,c,d=this.V,e=this.Sa;b=0;for(c=d.length;b<c;++b)e[b]=d[b].get();return this.Ab.apply(a.Qd,e)};u.prototype.Ln=function(){var a=this.type,b=this.md,c=a.be,d=this.jh,e=this.V,g=this.Sa,n=this.Ab,h=a.na().Jc(),a=a.J,l=-1<b,k,u,r,p,t,B;if(d)for(u=0,p=e.length;u<p;++u)t=e[u],
t.fd||(g[u]=t.get(0));else for(u=0,p=e.length;u<p;++u)g[u]=e[u].get(0);k=0;for(r=h.length;k<r;++k){B=h[k];if(d)for(u=0,p=e.length;u<p;++u)t=e[u],t.fd&&(g[u]=t.get(k));l?(u=0,a&&(u=B.type.rg[c]),n.apply(B.S[b+u],g)):n.apply(B,g)}return!1};Tb=u;var A=[],z=-1;g.prototype.Ya=function(){var a,b;if(11===this.type)this.zf=this.b.np(this.Si,this.Gc.parent);else if(13===this.type)for(a=0,b=this.Zf.length;a<b;a++)this.Zf[a].Ya();this.Ed&&this.Ed.Ya()};g.prototype.Dv=function(a){this.fd||!a||a.Ja.$k||(this.fd=
!0)};g.prototype.Yq=function(){this.fd=!0};g.prototype.Uu=function(a){this.ue=a||0;a=e();this.Ed.get(a);z--;return a.data};g.prototype.Vu=function(a){this.ue=a||0;a=e();this.Ed.get(a);z--;return R(a.data)?a.data:""};g.prototype.av=function(){return this.object};g.prototype.Su=function(){return this.Xo};g.prototype.Zu=function(a){this.ue=a||0;a=e();this.Ed.get(a);z--;return a.sb()?this.b.zh(a.data):this.b.rm(a.data)};g.prototype.$u=function(){return this.Va};g.prototype.Yu=function(){return this.key};
g.prototype.Xu=function(){return this.index};g.prototype.Wu=function(a){a=a||0;var b=this.Ga.type,c=null,c=b.na(),d=c.Jc();if(d.length)c=d[a%d.length].type;else if(c.ta.length)c=c.ta[a%c.ta.length].type;else if(b.j.length)c=b.j[a%b.j.length].type;else return 0;return this.index+c.Fj[b.be]};g.prototype.Tu=function(){return this.zf};g.prototype.Ru=function(){return this.gp};g.prototype.bv=function(){var a,b;a=0;for(b=this.Zf.length;a<b;a++)this.Ri[a]=this.Zf[a].get();return this.Ri};Ub=g;l.prototype.Ya=
function(){this.Ea=d(this.Ea)};l.prototype.pw=function(a){var b=this.b.mp();this.parent&&!this.Oh&&b?(this.Qf>=b.length&&(b.length=this.Qf+1),b[this.Qf]=a):this.data=a};l.prototype.Qu=function(){var a=this.b.mp();return!this.parent||this.Oh||!a||this.$j?this.data:this.Qf>=a.length||"undefined"===typeof a[this.Qf]?this.Fm:a[this.Qf]};l.prototype.fb=function(){!this.parent||this.Oh||this.$j||this.pw(this.Fm)};Ob=l;t.prototype.toString=function(){return"include:"+this.Fh.toString()};t.prototype.Ya=function(){this.Fh=
this.b.fm[this.kv];this.sheet.zp.add(this);this.Ea=d(this.Ea);for(var a=this.parent;a;)a.group&&a.nj.push(this),a=a.parent;this.Gr()};t.prototype.fb=function(){this.parent&&this.b.Ai(this.b.H);this.Fh.Bm||this.Fh.fb(!0);this.parent&&this.b.Vf(this.b.H)};t.prototype.Gr=function(){for(var a=this.parent;a;){if(a.group&&!a.ug){this.Ka=!1;return}a=a.parent}this.Ka=!0};Yb=t;n.prototype.reset=function(a){this.lc=a;this.ic=this.qb=0;V(this.mr);this.$l=this.Lf=!1};Nb=n})();
(function(){function k(a,b){this.Ga=a;this.b=a.b;this.type=b[0];this.get=[this.ju,this.fu,this.su,this.vu,this.Vt,this.tu,this.nu,this.cu,this.mu,this.ru,this.Wt,this.qu,this.du,this.ou,this.ku,this.lu,this.gu,this.hu,this.bu,this.uu,this.pu,this.iu,this.au,this.eu][this.type];var d=null;this.ke=this.V=this.Sa=this.Ab=this.il=this.second=this.first=this.value=null;this.md=-1;this.od=null;this.Lr=-1;this.zf=this.Si=null;this.Sg=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Wb(a,b[1]);break;case 18:this.first=new Wb(a,b[1]);this.second=new Wb(a,b[2]);this.il=new Wb(a,b[3]);break;case 19:this.Ab=this.b.Ce(b[1]);this.Ab!==Y.prototype.Ra.random&&this.Ab!==Y.prototype.Ra.nt||this.Ga.Yq();this.Sa=[];this.V=[];3===b.length?(d=b[2],this.Sa.length=d.length+1):this.Sa.length=1;break;case 20:this.ke=this.b.H[b[1]];this.md=-1;this.Ab=this.b.Ce(b[2]);this.Sg=b[3];ac.Function&&this.Ab===ac.Function.prototype.Ra.Lw&&this.Ga.Yq();b[4]?this.od=new Wb(a,b[4]):this.od=null;this.Sa=
[];this.V=[];6===b.length?(d=b[5],this.Sa.length=d.length+1):this.Sa.length=1;break;case 21:this.ke=this.b.H[b[1]];this.Sg=b[2];b[3]?this.od=new Wb(a,b[3]):this.od=null;this.Lr=b[4];break;case 22:this.ke=this.b.H[b[1]];this.ke.Pj(b[2]);this.md=this.ke.nm(b[2]);this.Ab=this.b.Ce(b[3]);this.Sg=b[4];b[5]?this.od=new Wb(a,b[5]):this.od=null;this.Sa=[];this.V=[];7===b.length?(d=b[6],this.Sa.length=d.length+1):this.Sa.length=1;break;case 23:this.Si=b[1],this.zf=null}this.Ga.Dv(this.ke);4<=this.type&&17>=
this.type&&(this.first=new Wb(a,b[1]),this.second=new Wb(a,b[2]));if(d){var e,g;e=0;for(g=d.length;e<g;e++)this.V.push(new Wb(a,d[e]))}}function h(){++b;r.length===b&&r.push(new Vb);return r[b]}function d(a,b,d){var e,g;e=0;for(g=a.length;e<g;++e)a[e].get(d),b[e+1]=d.data}function p(a,b){this.type=a||Zb.eg;this.data=b||0;this.Tf=null;this.type==Zb.eg&&(this.data=Math.floor(this.data))}k.prototype.Ya=function(){23===this.type&&(this.zf=this.Ga.b.np(this.Si,this.Ga.Gc.parent));this.first&&this.first.Ya();
this.second&&this.second.Ya();this.il&&this.il.Ya();this.od&&this.od.Ya();if(this.V){var a,b;a=0;for(b=this.V.length;a<b;a++)this.V[a].Ya()}};var r=[],b=-1;k.prototype.uu=function(a){var c=this.V,k=this.Sa;k[0]=a;a=h();d(c,k,a);--b;this.Ab.apply(this.b.Qd,k)};k.prototype.pu=function(a){var c=this.ke,k=this.Sa,e=this.V,g=this.od,l=this.Ab,r=this.Ga.ue,n=c.na(),p=n.Jc();if(!p.length)if(n.ta.length)p=n.ta;else{this.Sg?a.Ac(""):a.Da(0);return}k[0]=a;a.Tf=c;a=h();d(e,k,a);g&&(g.get(a),a.sb()&&(r=a.data,
p=c.j));--b;c=p.length;if(r>=c||r<=-c)r%=c;0>r&&(r+=c);l.apply(p[r],k)};k.prototype.au=function(a){var c=this.ke,k=this.Sa,e=this.V,g=this.od,l=this.md,r=this.Ab,n=this.Ga.ue,p=c.na(),A=p.Jc();if(!A.length)if(p.ta.length)A=p.ta;else{this.Sg?a.Ac(""):a.Da(0);return}k[0]=a;a.Tf=c;a=h();d(e,k,a);g&&(g.get(a),a.sb()&&(n=a.data,A=c.j));--b;e=A.length;if(n>=e||n<=-e)n%=e;0>n&&(n+=e);n=A[n];A=0;c.J&&(A=n.type.rg[c.be]);r.apply(n.S[l+A],k)};k.prototype.iu=function(a){var c=this.od,d=this.ke,e=this.Lr,g=this.Ga.ue,
l=d.na(),k=l.Jc();if(!k.length)if(l.ta.length)k=l.ta;else{this.Sg?a.Ac(""):a.Da(0);return}if(c){l=h();c.get(l);if(l.sb()){g=l.data;d=d.j;g%=d.length;0>g&&(g+=d.length);e=d[g].jb[e];R(e)?a.Ac(e):a.L(e);--b;return}--b}c=k.length;if(g>=c||g<=-c)g%=c;0>g&&(g+=c);g=k[g];k=0;d.J&&(k=g.type.Fj[d.be]);e=g.jb[e+k];R(e)?a.Ac(e):a.L(e)};k.prototype.ju=function(a){a.type=Zb.eg;a.data=this.value};k.prototype.fu=function(a){a.type=Zb.dg;a.data=this.value};k.prototype.su=function(a){a.type=Zb.String;a.data=this.value};
k.prototype.vu=function(a){this.first.get(a);a.sb()&&(a.data=-a.data)};k.prototype.Vt=function(a){this.first.get(a);var c=h();this.second.get(c);a.sb()&&c.sb()&&(a.data+=c.data,c.Cg()&&a.Kg());--b};k.prototype.tu=function(a){this.first.get(a);var c=h();this.second.get(c);a.sb()&&c.sb()&&(a.data-=c.data,c.Cg()&&a.Kg());--b};k.prototype.nu=function(a){this.first.get(a);var c=h();this.second.get(c);a.sb()&&c.sb()&&(a.data*=c.data,c.Cg()&&a.Kg());--b};k.prototype.cu=function(a){this.first.get(a);var c=
h();this.second.get(c);a.sb()&&c.sb()&&(a.data/=c.data,a.Kg());--b};k.prototype.mu=function(a){this.first.get(a);var c=h();this.second.get(c);a.sb()&&c.sb()&&(a.data%=c.data,c.Cg()&&a.Kg());--b};k.prototype.ru=function(a){this.first.get(a);var c=h();this.second.get(c);a.sb()&&c.sb()&&(a.data=Math.pow(a.data,c.data),c.Cg()&&a.Kg());--b};k.prototype.Wt=function(a){this.first.get(a);var c=h();this.second.get(c);c.Fg()||a.Fg()?this.Yt(a,c):this.Xt(a,c);--b};k.prototype.Yt=function(a,b){a.Fg()&&b.Fg()?
this.$t(a,b):this.Zt(a,b)};k.prototype.$t=function(a,b){a.data+=b.data};k.prototype.Zt=function(a,b){a.Fg()?a.data+=(Math.round(1E10*b.data)/1E10).toString():a.Ac(a.data.toString()+b.data)};k.prototype.Xt=function(a,b){a.Da(a.data&&b.data?1:0)};k.prototype.qu=function(a){this.first.get(a);var c=h();this.second.get(c);a.sb()&&c.sb()&&(a.data||c.data?a.Da(1):a.Da(0));--b};k.prototype.bu=function(a){this.first.get(a);a.data?this.second.get(a):this.il.get(a)};k.prototype.du=function(a){this.first.get(a);
var c=h();this.second.get(c);a.Da(a.data===c.data?1:0);--b};k.prototype.ou=function(a){this.first.get(a);var c=h();this.second.get(c);a.Da(a.data!==c.data?1:0);--b};k.prototype.ku=function(a){this.first.get(a);var c=h();this.second.get(c);a.Da(a.data<c.data?1:0);--b};k.prototype.lu=function(a){this.first.get(a);var c=h();this.second.get(c);a.Da(a.data<=c.data?1:0);--b};k.prototype.gu=function(a){this.first.get(a);var c=h();this.second.get(c);a.Da(a.data>c.data?1:0);--b};k.prototype.hu=function(a){this.first.get(a);
var c=h();this.second.get(c);a.Da(a.data>=c.data?1:0);--b};k.prototype.eu=function(a){var b=this.zf.Qu();ia(b)?a.L(b):a.Ac(b)};Wb=k;p.prototype.Cg=function(){return this.type===Zb.dg};p.prototype.sb=function(){return this.type===Zb.eg||this.type===Zb.dg};p.prototype.Fg=function(){return this.type===Zb.String};p.prototype.Kg=function(){this.Cg()||(this.Fg()&&(this.data=parseFloat(this.data)),this.type=Zb.dg)};p.prototype.Da=function(a){this.type=Zb.eg;this.data=Math.floor(a)};p.prototype.L=function(a){this.type=
Zb.dg;this.data=a};p.prototype.Ac=function(a){this.type=Zb.String;this.data=a};p.prototype.qw=function(a){ia(a)?(this.type=Zb.dg,this.data=a):R(a)?(this.type=Zb.String,this.data=a.toString()):(this.type=Zb.eg,this.data=0)};Vb=p;Zb={eg:0,dg:1,String:2}})();function Y(k){this.b=k;this.hc=[]}
Y.prototype.gb=function(){var k={},h,d,p,r,b,a,c,u;k.waits=[];var e=k.waits,g;h=0;for(d=this.hc.length;h<d;h++){a=this.hc[h];g={t:a.time,st:a.fr,s:a.Xn,ev:a.ng.ca,sm:[],sols:{}};a.ng.gd[a.ic]&&(g.act=a.ng.gd[a.ic].ca);p=0;for(r=a.Ea.length;p<r;p++)g.sm.push(a.Ea[p].ca);for(b in a.Ub)if(a.Ub.hasOwnProperty(b)){c=this.b.H[parseInt(b,10)];u={sa:a.Ub[b].Uk,insts:[]};p=0;for(r=a.Ub[b].ge.length;p<r;p++)u.insts.push(a.Ub[b].ge[p].uid);g.sols[c.ca.toString()]=u}e.push(g)}return k};
Y.prototype.tb=function(k){k=k.waits;var h,d,p,r,b,a,c,u,e,g,l;V(this.hc);h=0;for(d=k.length;h<d;h++)if(a=k[h],u=this.b.Po[a.ev.toString()]){e=-1;p=0;for(r=u.gd.length;p<r;p++)if(u.gd[p].ca===a.act){e=p;break}if(-1!==e){c={Ub:{},Ea:[],Yl:!1};c.time=a.t;c.fr=a.st||"";c.Xn=!!a.s;c.ng=u;c.ic=e;p=0;for(r=a.sm.length;p<r;p++)(u=this.b.Sj(a.sm[p]))&&c.Ea.push(u);for(b in a.sols)if(a.sols.hasOwnProperty(b)&&(u=this.b.Sj(parseInt(b,10)))){e=a.sols[b];g={Uk:e.sa,ge:[]};p=0;for(r=e.insts.length;p<r;p++)(l=
this.b.Cf(e.insts[p]))&&g.ge.push(l);c.Ub[u.index.toString()]=g}this.hc.push(c)}}};
(function(){function k(){}function h(){}function d(){}var p=Y.prototype;k.prototype.Bs=function(){return!0};k.prototype.As=function(){return!0};k.prototype.Sr=function(a,b){var d=this.b.rc.da;if(0===a){var e=this.b.om();return!e.ea.CompareTime_executed&&d>=b?e.ea.CompareTime_executed=!0:!1}return $b(d,a,b)};k.prototype.as=function(a){return(a=this.b.Dh[a.toLowerCase()])&&a.ug};k.prototype.Xr=function(){var a=this.b.Kb();return a.$l?!1:!a.Lf};k.prototype.Co=function(){return!0};k.prototype.os=function(){return!0};
k.prototype.Al=function(){return!0};k.prototype.Cs=function(){return!0};k.prototype.yl=function(){return!0};k.prototype.Nr=function(a,b,d){return La(W(a),W(d))<=W(b)};k.prototype.$r=function(a,b){return Na(W(a),W(b))};k.prototype.Zr=function(a,b,d){a=Ia(a);b=Ia(b);d=Ia(d);return Na(d,b)?Na(a,b)&&!Na(a,d):!(!Na(a,b)&&Na(a,d))};p.B=new k;h.prototype.Yr=function(a){this.b.Hf||this.b.Vd||(this.b.Vd=a)};h.prototype.gs=function(a){if(!this.b.Hf&&!this.b.Vd){var b=this.b.vc.indexOf(this.b.ma);if(!a||0!==
b)if(a||b!==this.b.vc.length-1)this.b.Vd=this.b.vc[b+(a?-1:1)]}};h.prototype.Vr=function(a,b,d,e){if(b&&a&&(b=this.b.Yo(a,b,d,e))){this.b.sd++;var g;this.b.trigger(Object.getPrototypeOf(a.Ja).B.Vi,b);if(b.pc)for(d=0,e=b.siblings.length;d<e;d++)g=b.siblings[d],this.b.trigger(Object.getPrototypeOf(g.type.Ja).B.Vi,g);this.b.sd--;a=a.na();a.za=!1;V(a.j);a.j[0]=b;if(b.pc)for(d=0,e=b.siblings.length;d<e;d++)g=b.siblings[d],a=g.type.na(),a.za=!1,V(a.j),a.j[0]=g}};var r=[],b=[];h.prototype.Us=function(a){if(!(0>
a)){var c,d,e,g=this.b.Kb(),h;r.length?h=r.pop():h={Ub:{},Ea:[]};h.Yl=!1;h.time=this.b.rc.da+a;h.fr="";h.Xn=!1;h.ng=g.lc;h.ic=g.ic+1;a=0;for(c=this.b.H.length;a<c;a++)e=this.b.H[a],d=e.na(),d.za&&-1===g.lc.Ea.indexOf(e)||(h.Ea.push(e),e=void 0,b.length?e=b.pop():e={ge:[]},e.Uk=!1,e.Uk=d.za,Ba(e.ge,d.j),h.Ub[a.toString()]=e);this.hc.push(h);return!0}};h.prototype.Is=function(){if(!this.b.Hf&&!this.b.Vd&&this.b.ma){this.b.Vd=this.b.ma;var a,b,d;a=0;for(b=this.b.Fe.length;a<b;a++)d=this.b.Fe[a],d.Wq(d.Xj)}};
h.prototype.Ms=function(a,b,d){if(this.b.ma&&this.b.G&&(a=this.b.ma.Qj(a))){var e=this.b.ma.La[a.index];b=Math.floor(b);0>b||b>=e.length||(1===this.b.G.rp(a.zb,b)&&(d/=100),e[b]!==d&&(e[b]=d,a.Ka&&(this.b.la=!0)))}};p.M=new h;d.prototype["int"]=function(a,b){R(b)?(a.Da(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.Da(b)};d.prototype["float"]=function(a,b){R(b)?(a.L(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.L(b)};d.prototype.random=function(a,b,d){void 0===d?a.L(Math.random()*b):a.L(Math.random()*
(d-b)+b)};d.prototype.sqrt=function(a,b){a.L(Math.sqrt(b))};d.prototype.abs=function(a,b){a.L(Math.abs(b))};d.prototype.round=function(a,b){a.Da(Math.round(b))};d.prototype.floor=function(a,b){a.Da(Math.floor(b))};d.prototype.ceil=function(a,b){a.Da(Math.ceil(b))};d.prototype.sin=function(a,b){a.L(Math.sin(W(b)))};d.prototype.cos=function(a,b){a.L(Math.cos(W(b)))};d.prototype.tan=function(a,b){a.L(Math.tan(W(b)))};d.prototype.asin=function(a,b){a.L(Fa(Math.asin(b)))};d.prototype.acos=function(a,b){a.L(Fa(Math.acos(b)))};
d.prototype.atan=function(a,b){a.L(Fa(Math.atan(b)))};d.prototype.exp=function(a,b){a.L(Math.exp(b))};d.prototype.log10=function(a,b){a.L(Math.log(b)/Math.LN10)};d.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,e,g;d=2;for(e=arguments.length;d<e;d++)g=arguments[d],"number"===typeof g&&b<g&&(b=g);a.L(b)};d.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,e,g;d=2;for(e=arguments.length;d<e;d++)g=arguments[d],"number"===typeof g&&b>g&&(b=g);
a.L(b)};d.prototype.xf=function(a){a.L(this.b.xf)};d.prototype.ag=function(a){a.L(this.b.ag)};d.prototype.time=function(a){a.L(this.b.rc.da)};d.prototype.ed=function(a){a.Da(this.b.ed)};d.prototype.yk=function(a){a.Da(this.b.yk)};d.prototype.km=function(a){a.Da(this.b.km)};d.prototype.k=function(a,b,d,e,g){a.L(Fa(Ka(b,d,e,g)))};d.prototype.zv=function(a){a.Da(this.b.ma.width)};d.prototype.left=function(a,b,d){a.Ac(R(b)?b.substr(0,d):"")};d.prototype.right=function(a,b,d){a.Ac(R(b)?b.substr(b.length-
d):"")};d.prototype.replace=function(a,b,d,e){R(b)&&R(d)&&R(e)?a.Ac(b.replace(new RegExp(bb(d),"gi"),e)):a.Ac(R(b)?b:"")};d.prototype.trim=function(a,b){a.Ac(R(b)?b.trim():"")};d.prototype.nt=function(a){var b=S(Math.random()*(arguments.length-1));a.qw(arguments[b+1])};d.prototype.Ql=function(a){a.L(this.b.Ql/1E3)};d.prototype.qk=function(a){a.L(this.b.qk)};p.Ra=new d;p.ew=function(){var a,c,d,e,g,h,k=this.b.Kb();a=0;for(d=this.hc.length;a<d;a++){e=this.hc[a];if(-1===e.time){if(!e.Xn)continue}else if(e.time>
this.b.rc.da)continue;k.lc=e.ng;k.ic=e.ic;k.qb=0;for(c in e.Ub)e.Ub.hasOwnProperty(c)&&(g=this.b.H[parseInt(c,10)].na(),h=e.Ub[c],g.za=h.Uk,Ba(g.j,h.ge),g=h,V(g.ge),b.push(g));e.ng.cw();this.b.Pl(e.Ea);e.Yl=!0}c=a=0;for(d=this.hc.length;a<d;a++)e=this.hc[a],this.hc[c]=e,e.Yl?(Wa(e.Ub),V(e.Ea),r.push(e)):c++;Aa(this.hc,c)}})();
(function(){lb=function(h,d){var k=h[1],r=h[3],b=h[4],a=h[5],c=h[6],u=h[7],e=h[8];d.B||(d.B={});d.M||(d.M={});d.Ra||(d.Ra={});var g=d.B,l=d.M,t=d.Ra;r&&(g.Tr=function(a,b){return $b(this.x,a,b)},g.Ur=function(a,b){return $b(this.y,a,b)},g.Uw=function(){var a=this.n;this.Ba();var b=this.Ca;return!(b.right<a.Ha||b.bottom<a.Ia||b.left>a.Pa||b.top>a.Oa)},g.Vw=function(){this.Ba();var a=this.Ca,b=this.b.ma;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},g.jx=function(a,b,c){var d=this.na(),
e=d.Jc();if(!e.length)return!1;var g=e[0],h=g,f=Pa(g.x,g.y,b,c),k,l,r;k=1;for(l=e.length;k<l;k++)if(g=e[k],r=Pa(g.x,g.y,b,c),0===a&&r<f||1===a&&r>f)f=r,h=g;d.wi(h);return!0},l.Ps=function(a){this.x!==a&&(this.x=a,this.C())},l.Qs=function(a){this.y!==a&&(this.y=a,this.C())},l.Ax=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.C()},l.Bx=function(a,b){var c=a.Lu(this);if(c){var d;c.qm?(d=c.qm(b,!0),c=c.qm(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.C()}},l.$w=
function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.C())},l.Zw=function(a,b){0!==b&&(this.x+=Math.cos(W(a))*b,this.y+=Math.sin(W(a))*b,this.C())},t.Jo=function(a){a.L(this.x)},t.Ko=function(a){a.L(this.y)},t.xf=function(a){a.L(this.b.Pe(this))});b&&(g.Ow=function(a,b){return $b(this.width,a,b)},g.Mw=function(a,b){return $b(this.height,a,b)},l.Os=function(a){this.width!==a&&(this.width=a,this.C())},l.yx=function(a){this.height!==a&&(this.height=a,this.C())},l.Cx=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.C()},t.Ix=function(a){a.L(this.width)},t.Qw=function(a){a.L(this.height)},t.Iw=function(a){this.Ba();a.L(this.Ca.left)},t.Kw=function(a){this.Ba();a.L(this.Ca.top)},t.Jw=function(a){this.Ba();a.L(this.Ca.right)},t.Hw=function(a){this.Ba();a.L(this.Ca.bottom)});a&&(g.Nr=function(a,b){return La(this.k,W(b))<=W(a)},g.$r=function(a){return Na(this.k,W(a))},g.Zr=function(a,b){var c=Ia(a),d=Ia(b),e=X(this.k);return Na(d,c)?Na(e,c)&&!Na(e,
d):!(!Na(e,c)&&Na(e,d))},l.ux=function(a){a=W(Ga(a));isNaN(a)||this.k===a||(this.k=a,this.C())},l.ox=function(a){0===a||isNaN(a)||(this.k+=W(a),this.k=X(this.k),this.C())},l.qx=function(a){0===a||isNaN(a)||(this.k-=W(a),this.k=X(this.k),this.C())},l.rx=function(a,b){var c=Ma(this.k,W(b),W(a));isNaN(c)||this.k===c||(this.k=c,this.C())},l.tx=function(a,b,c){a=Ma(this.k,Math.atan2(c-this.y,b-this.x),W(a));isNaN(a)||this.k===a||(this.k=a,this.C())},l.Dx=function(a,b){var c=Math.atan2(b-this.y,a-this.x);
isNaN(c)||this.k===c||(this.k=c,this.C())},t.Gw=function(a){a.L(Ha(this.k))});k||(g.Rr=function(a,b,c){return $b(this.jb[a],b,c)},g.Sw=function(a){return this.jb[a]},g.kx=function(a,b){var c=this.na(),d=c.Jc();if(!d.length)return!1;var e=d[0],g=e,h=e.jb[b],f,k,l;f=1;for(k=d.length;f<k;f++)if(e=d[f],l=e.jb[b],0===a&&l<h||1===a&&l>h)h=l,g=e;c.wi(g);return!0},g.ix=function(a){var b,c,d,e,g;if(this.b.om().Lm){g=this.na();if(g.za)for(g.za=!1,V(g.j),V(g.ta),d=this.j,b=0,c=d.length;b<c;b++)e=d[b],e.uid===
a?g.ta.push(e):g.j.push(e);else{d=b=0;for(c=g.j.length;b<c;b++)e=g.j[b],g.j[d]=e,e.uid===a?g.ta.push(e):d++;Aa(g.j,d)}this.ld();return!!g.j.length}e=this.b.Cf(a);if(!e)return!1;g=this.na();if(!g.za&&-1===g.j.indexOf(e))return!1;if(this.J)for(a=e.type.Ma,b=0,c=a.length;b<c;b++){if(a[b]===this)return g.wi(e),this.ld(),!0}else if(e.type===this)return g.wi(e),this.ld(),!0;return!1},g.Vi=function(){return!0},g.Ao=function(){return!0},l.Ls=function(a,b){var c=this.jb;ia(c[a])?c[a]=ia(b)?b:parseFloat(b):
R(c[a])&&(c[a]=R(b)?b:b.toString())},l.Fw=function(a,b){var c=this.jb;ia(c[a])?c[a]=ia(b)?c[a]+b:c[a]+parseFloat(b):R(c[a])&&(c[a]=R(b)?c[a]+b:c[a]+b.toString())},l.Fx=function(a,b){var c=this.jb;ia(c[a])&&(c[a]=ia(b)?c[a]-b:c[a]-parseFloat(b))},l.vx=function(a,b){this.jb[a]=b?1:0},l.Gx=function(a){this.jb[a]=1-this.jb[a]},l.Wr=function(){this.b.Bd(this)},l.es||(l.es=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.nk(this,b,!0);this.hd&&this.hd();if(this.S)for(a=0,b=this.S.length;a<
b;++a)c=this.S[a],c.hd&&c.hd()}),t.Pw=function(a){var b=a.Tf.j.length,c,d,e;c=0;for(d=this.b.nd.length;c<d;c++)e=this.b.nd[c],a.Tf.J?0<=e.type.Ma.indexOf(a.Tf)&&b++:e.type===a.Tf&&b++;a.Da(b)},t.nx=function(a){a.Da(a.Tf.na().Jc().length)},t.Hx=function(a){a.Da(this.uid)},t.Rw=function(a){a.Da(this.Bh())},t.Or||(t.Or=function(a){a.Ac(JSON.stringify(this.b.Nn(this,!0)))}));c&&(g.Ww=function(){return this.visible},l.Ex=function(a){!a!==!this.visible&&(this.visible=a,this.b.la=!0)},g.Nw=function(a,b){return $b(hb(100*
this.opacity),a,b)},l.zx=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.la=!0)},t.Opacity=function(a){a.L(hb(100*this.opacity))});u&&(g.Tw=function(a){return a?this.n===a:!1},g.mx=function(a){var b=this.na(),c=b.Jc();if(!c.length)return!1;var d=c[0],e=d,g,h;g=1;for(h=c.length;g<h;g++)if(d=c[g],0===a){if(d.n.index>e.n.index||d.n.index===e.n.index&&d.Fd()>e.Fd())e=d}else if(d.n.index<e.n.index||d.n.index===e.n.index&&d.Fd()<e.Fd())e=d;b.wi(e);return!0},l.cx=function(){var a=
this.n,b=a.j;b.length&&b[b.length-1]===this||(a.Rg(this,!1),a.lh(this,!1),this.b.la=!0)},l.ax=function(){var a=this.n,b=a.j;b.length&&b[0]===this||(a.Rg(this,!1),a.Wv(this),this.b.la=!0)},l.bx=function(a){a&&a!=this.n&&(this.n.Rg(this,!0),this.n=a,a.lh(this,!0),this.b.la=!0)},l.Kx=function(a,b){var c=0===a;if(b){var d=b.Fu(this);d&&d.uid!==this.uid&&(this.n.index!==d.n.index&&(this.n.Rg(this,!0),this.n=d.n,d.n.lh(this,!0)),this.n.Fv(this,d,c),this.b.la=!0)}},t.Yw=function(a){a.Da(this.n.tq)},t.Xw=
function(a){a.Ac(this.n.name)},t.Jx=function(a){a.Da(this.Fd())});e&&(l.wx=function(a,b){if(this.b.G){var c=this.type.pm(b);if(!(0>c)){var d=1===a;this.De[c]!==d&&(this.De[c]=d,this.xe(),this.b.la=!0)}}},l.xx=function(a,b,c){if(this.b.G){var d=this.type.pm(a);0>d||(a=this.type.R[d],d=this.La[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.G.rp(a.zb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ka&&(this.b.la=!0))))}})};Fb=function(){this.Ll=this.hj=!0;this.type.$i=!0;this.b.la=!0;var h,d,k=this.Il;h=0;for(d=
k.length;h<d;++h)k[h](this);this.n.yd&&this.Ba()};Gb=function(h){h&&this.Il.push(h)};Ib=function(){if(this.hj){var h=this.Ca,d=this.Eb;h.set(this.x,this.y,this.x+this.width,this.y+this.height);h.offset(-this.Zb*this.width,-this.$b*this.height);this.k?(h.offset(-this.x,-this.y),d.$q(h,this.k),d.offset(this.x,this.y),d.Qo(h)):d.Wg(h);h.normalize();this.hj=!1;this.Bw()}};var k=new T(0,0,0,0);Jb=function(){if(this.n.yd){var h=this.n.zc,d=this.Ca;k.set(h.Ec(d.left),h.Fc(d.top),h.Ec(d.right),h.Fc(d.bottom));
this.ec.Aj(k)||(this.ec.right<this.ec.left?h.update(this,null,k):h.update(this,this.ec,k),this.ec.pj(k),this.n.ne=!0)}};Kb=function(){if(this.Ll&&this.Wd){this.Ba();var h=this.type.mj,d=this.Ca;k.set(h.Ec(d.left),h.Fc(d.top),h.Ec(d.right),h.Fc(d.bottom));this.Ke.Aj(k)||(this.Ke.right<this.Ke.left?h.update(this,null,k):h.update(this,this.Ke,k),this.Ke.pj(k),this.Ll=!1)}};Hb=function(h,d){return this.Ca.Pb(h,d)&&this.Eb.Pb(h,d)?this.wa&&!this.wa.Bg()?(this.wa.jg(this.width,this.height,this.k),this.wa.Pb(h-
this.x,d-this.y)):!0:!1};Bb=function(){this.type.pl();return this.Ef};Lb=function(){this.n.oo();return this.zd};Mb=function(){V(this.ra);var h,d;h=0;for(d=this.De.length;h<d;h++)this.De[h]&&this.ra.push(this.type.R[h]);this.Kr=!!this.ra.length};Cb=function(){return"Inst"+this.Qq};ob=function(h){if(h&&h.pc&&h.type!=this){var d,k,r;d=0;for(k=h.siblings.length;d<k;d++)if(r=h.siblings[d],r.type==this)return r}h=this.na().Jc();return h.length?h[0]:null};pb=function(h){var d=this.na().Jc();return d.length?
d[h.Bh()%d.length]:null};nb=function(){if(this.Zg&&!this.J){var h,d;h=0;for(d=this.j.length;h<d;h++)this.j[h].Ef=h;var k=h,r=this.b.nd;h=0;for(d=r.length;h<d;++h)r[h].type===this&&(r[h].Ef=k++);this.Zg=!1}};zb=function(h){if(h<this.j.length)return this.j[h];h-=this.j.length;var d=this.b.nd,k,r;k=0;for(r=d.length;k<r;++k)if(d[k].type===this){if(0===h)return d[k];--h}return null};qb=function(){return this.lf[this.Zd]};rb=function(){this.Zd++;this.Zd===this.lf.length?this.lf.push(new mb(this)):this.lf[this.Zd].za=
!0};sb=function(){this.Zd++;this.Zd===this.lf.length&&this.lf.push(new mb(this));var h=this.lf[this.Zd],d=this.lf[this.Zd-1];d.za?h.za=!0:(h.za=!1,Ba(h.j,d.j),Ba(h.ta,d.ta))};tb=function(){this.Zd--};vb=function(h){var d,k,r,b,a,c=0;if(!this.J)for(d=0,k=this.Ma.length;d<k;d++)for(a=this.Ma[d],r=0,b=a.Za.length;r<b;r++){if(h===a.Za[r].name)return this.ea.lastBehIndex=c,a.Za[r];c++}d=0;for(k=this.Za.length;d<k;d++){if(h===this.Za[d].name)return this.ea.lastBehIndex=c,this.Za[d];c++}return null};wb=
function(h){return this.Pj(h)?this.ea.lastBehIndex:-1};xb=function(h){var d,k;d=0;for(k=this.R.length;d<k;d++)if(this.R[d].name===h)return d;return-1};yb=function(){if(this.pc&&!this.J){var h,d,k,r,b,a,c;this.pl();a=this.na();var u=a.za,e=(h=this.b.Kb())&&h.lc&&h.lc.ud;h=0;for(d=this.kc.length;h<d;h++)if(b=this.kc[h],b!==this&&(b.pl(),c=b.na(),c.za=u,!u)){V(c.j);k=0;for(r=a.j.length;k<r;++k)c.j[k]=b.op(a.j[k].Ef);if(e)for(V(c.ta),k=0,r=a.ta.length;k<r;++k)c.ta[k]=b.op(a.ta[k].Ef)}}};Ab=function(){return"Type"+
this.ca};$b=function(h,d,k){if("undefined"===typeof h||"undefined"===typeof k)return!1;switch(d){case 0:return h===k;case 1:return h!==k;case 2:return h<k;case 3:return h<=k;case 4:return h>k;case 5:return h>=k;default:return!1}}})();
var ic={warpripple:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float seconds;\nuniform mediump float pixelWidth;\nuniform mediump float layerScale;\nuniform mediump float freq;\nuniform mediump float amp;\nuniform mediump float speed;\nconst mediump float PI = 3.1415926;\nvoid main(void)\n{\nmediump vec2 p = vTex;\nmediump vec2 tex = vTex * 2.0 - 1.0;\nmediump float d = length(tex);\nmediump float a = atan(tex.y, tex.x);\nd += sin((d * 2.0 * PI) * freq / layerScale / (pixelWidth * 750.0) + (seconds * speed)) * amp * (pixelWidth * 750.0) * layerScale;\ntex.x = cos(a) * d;\ntex.y = sin(a) * d;\ntex = (tex + 1.0) / 2.0;\ngl_FragColor = texture2D(samplerFront, tex);\n}",Cj:50,
Dj:50,Tl:!1,Gl:!0,V:[["freq",0,0],["amp",0,1],["speed",0,0]]}};function lc(k){this.b=k}
(function(){function k(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function h(a){a=a.toLowerCase();return U.hasOwnProperty(a)&&U[a].length?U[a][0].Ic():x.destination}function d(){return x.createGain?x.createGain():x.createGainNode()}function p(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function r(a){a.start?a.start(0):a.noteOn(0)}function b(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function c(a,
b,c,f,e,g){this.type="filter";this.vd=[a,b,c,f,e,g];this.ja=d();this.P=d();this.P.gain.value=g;this.N=d();this.N.gain.value=1-g;this.bb=x.createBiquadFilter();this.bb.type="number"===typeof this.bb.type?a:Bc[a];this.bb.frequency.value=b;this.bb.detune&&(this.bb.detune.value=c);this.bb.Q.value=f;this.bb.gain.value=e;this.ja.connect(this.bb);this.ja.connect(this.N);this.bb.connect(this.P)}function u(a,b,c){this.type="delay";this.vd=[a,b,c];this.ja=d();this.P=d();this.P.gain.value=c;this.N=d();this.N.gain.value=
1-c;this.ki=d();this.Sc=p(a);this.Sc.delayTime.value=a;this.wj=d();this.wj.gain.value=b;this.ja.connect(this.ki);this.ja.connect(this.N);this.ki.connect(this.P);this.ki.connect(this.Sc);this.Sc.connect(this.wj);this.wj.connect(this.ki)}function e(a,b,c,f){this.type="convolve";this.vd=[b,c,f];this.ja=d();this.P=d();this.P.gain.value=c;this.N=d();this.N.gain.value=1-c;this.uf=x.createConvolver();a&&(this.uf.normalize=b,this.uf.buffer=a);this.ja.connect(this.uf);this.ja.connect(this.N);this.uf.connect(this.P)}
function g(a,b,c,f,e){this.type="flanger";this.vd=[a,b,c,f,e];this.ja=d();this.N=d();this.N.gain.value=1-e/2;this.P=d();this.P.gain.value=e/2;this.Gj=d();this.Gj.gain.value=f;this.Sc=p(a+b);this.Sc.delayTime.value=a;this.wb=x.createOscillator();this.wb.frequency.value=c;this.yc=d();this.yc.gain.value=b;this.ja.connect(this.Sc);this.ja.connect(this.N);this.Sc.connect(this.P);this.Sc.connect(this.Gj);this.Gj.connect(this.Sc);this.wb.connect(this.yc);this.yc.connect(this.Sc.delayTime);r(this.wb)}function l(a,
b,c,f,e,g){this.type="phaser";this.vd=[a,b,c,f,e,g];this.ja=d();this.N=d();this.N.gain.value=1-g/2;this.P=d();this.P.gain.value=g/2;this.bb=x.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.wb=x.createOscillator();this.wb.frequency.value=e;this.yc=d();this.yc.gain.value=f;this.ja.connect(this.bb);this.ja.connect(this.N);this.bb.connect(this.P);this.wb.connect(this.yc);this.yc.connect(this.bb.frequency);
r(this.wb)}function t(a){this.type="gain";this.vd=[a];this.qa=d();this.qa.gain.value=a}function n(a,b){this.type="tremolo";this.vd=[a,b];this.qa=d();this.qa.gain.value=1-b/2;this.wb=x.createOscillator();this.wb.frequency.value=a;this.yc=d();this.yc.gain.value=b/2;this.wb.connect(this.yc);this.yc.connect(this.qa.gain);r(this.wb)}function B(a,b){this.type="ringmod";this.vd=[a,b];this.ja=d();this.P=d();this.P.gain.value=b;this.N=d();this.N.gain.value=1-b;this.Ei=d();this.Ei.gain.value=0;this.wb=x.createOscillator();
this.wb.frequency.value=a;this.wb.connect(this.Ei.gain);r(this.wb);this.ja.connect(this.Ei);this.ja.connect(this.N);this.Ei.connect(this.P)}function A(a,b,c,f,e){this.type="distortion";this.vd=[a,b,c,f,e];this.ja=d();this.Lk=d();this.Kk=d();this.lw(c,Math.pow(10,f/20));this.P=d();this.P.gain.value=e;this.N=d();this.N.gain.value=1-e;this.ul=x.createWaveShaper();this.uj=new Float32Array(65536);this.Cu(a,b);this.ul.uj=this.uj;this.ja.connect(this.Lk);this.ja.connect(this.N);this.Lk.connect(this.ul);
this.ul.connect(this.Kk);this.Kk.connect(this.P)}function z(a,b,c,d,f){this.type="compressor";this.vd=[a,b,c,d,f];this.qa=x.createDynamicsCompressor();try{this.qa.threshold.value=a,this.qa.knee.value=b,this.qa.ratio.value=c,this.qa.attack.value=d,this.qa.release.value=f}catch(e){}}function m(a,b){this.type="analyser";this.vd=[a,b];this.qa=x.createAnalyser();this.qa.fftSize=a;this.qa.smoothingTimeConstant=b;this.Au=new Float32Array(this.qa.frequencyBinCount);this.dr=new Uint8Array(a);this.vi=0}function q(){this.O=
null;this.pk=0;this.nf=[];this.pn=this.dk=this.ck=0}function D(a,b){this.src=a;this.Z=C;this.td=b;this.Zi=!1;var c=this;this.nn=this.wn=null;this.Pg=[];this.Vk=0;this.uo=this.gm=this.lr=this.Ek=!1;1===C&&b&&(this.Z=0,this.wn=d());this.sf=this.ua=null;var f;switch(this.Z){case 0:this.ua=new Audio;this.ua.crossOrigin="anonymous";this.ua.addEventListener("canplaythrough",function(){c.uo=!0});1===C&&x.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.lr=!0,this.ua.addEventListener("canplay",
function(){c.nn||(c.nn=x.createMediaElementSource(c.ua),c.nn.connect(c.wn))}));this.ua.autoplay=!1;this.ua.Qx="auto";this.ua.src=a;break;case 1:f=new XMLHttpRequest;f.open("GET",a,!0);f.responseType="arraybuffer";f.onload=function(){c.sf=f.response;c.ut()};f.onerror=function(){c.gm=!0};f.send();break;case 2:this.ua=!0;break;case 3:this.ua=!0}}function f(a,b){var c=this;this.tag=b;this.Cc=this.ee=!0;this.src=a.src;this.buffer=a;this.Z=C;this.td=a.td;this.playbackRate=1;this.xg=!0;this.qc=this.oe=!1;
this.fc=0;this.Nh=this.Dg=this.Gd=!1;this.volume=1;this.un=function(){c.qc||this!==c.Xi||(c.xg=!0,c.Cc=!0,va=c.tag,w.trigger(lc.prototype.B.Wi,N))};this.Xi=null;this.zg=1===H&&!this.td||2===H;this.Mg=1;this.startTime=this.zg?w.rc.da:w.ze.da;this.Xa=this.hb=null;this.Id=!1;this.Wa=null;this.Eq=this.Dq=this.Cq=this.Bq=this.Gq=this.Fq=0;this.u=null;var f=!1;1!==this.Z||0!==this.buffer.Z||this.buffer.lr||(this.Z=0);switch(this.Z){case 0:this.td?(this.u=a.ua,f=!a.Zi,a.Zi=!0):(this.u=new Audio,this.u.crossOrigin=
"anonymous",this.u.autoplay=!1,this.u.src=a.ua.src,f=!0);f&&this.u.addEventListener("ended",function(){va=c.tag;c.Cc=!0;w.trigger(lc.prototype.B.Wi,N)});break;case 1:this.hb=d();this.hb.connect(h(b));1===this.buffer.Z?a.ua&&(this.u=x.createBufferSource(),this.u.buffer=a.ua,this.u.connect(this.hb)):(this.u=this.buffer.ua,this.buffer.wn.connect(this.hb),this.buffer.Zi||(this.buffer.Zi=!0,this.buffer.ua.addEventListener("ended",function(){va=c.tag;c.Cc=!0;w.trigger(lc.prototype.B.Wi,N)})));break;case 2:this.u=
new window.Media(ba+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.xg=!0,c.Cc=!0,va=c.tag,w.trigger(lc.prototype.B.Wi,N))});break;case 3:this.u=!0}}function v(a,b){U.hasOwnProperty(a)?U[a].push(b):U[a]=[b];var c,d,f,e,g=x.destination;if(U.hasOwnProperty(a)&&(f=U[a],f.length))for(g=f[0].Ic(),c=0,d=f.length;c<d;c++)e=f[c],c+1===d?e.Oc(x.destination):e.Oc(f[c+1].Ic());V(Ja);if(a.length)for(c=0,d=L.length;c<d;c++)f=L[c],ib(a,f.tag)&&Ja.push(f);else P&&!P.wg()&&(V(Ja),Ja[0]=P);c=0;for(d=
Ja.length;c<d;c++)Ja[c].$v(g);ca&&ub===a&&(ca.disconnect(),ca.connect(g))}function y(){}function F(){}var J=lc.prototype;J.ba=function(a){this.Ja=a;this.b=a.b};J.ba.prototype.K=function(){};var w=null,N=null,va="",ba="",C=0,x=null,ka=[],L=[],P=null,G=!1,H=0,Q=!1,E=1,M=0,K=0,la=1,O=1,qa=10,fa=1E4,wa=1,ca=null,ub="",Sa=!1,Ta=[],U={},Bc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");c.prototype.Oc=function(a){this.P.disconnect();this.P.connect(a);this.N.disconnect();
this.N.connect(a)};c.prototype.remove=function(){this.ja.disconnect();this.bb.disconnect();this.P.disconnect();this.N.disconnect()};c.prototype.Ic=function(){return this.ja};u.prototype.Oc=function(a){this.P.disconnect();this.P.connect(a);this.N.disconnect();this.N.connect(a)};u.prototype.remove=function(){this.ja.disconnect();this.ki.disconnect();this.Sc.disconnect();this.wj.disconnect();this.P.disconnect();this.N.disconnect()};u.prototype.Ic=function(){return this.ja};e.prototype.Oc=function(a){this.P.disconnect();
this.P.connect(a);this.N.disconnect();this.N.connect(a)};e.prototype.remove=function(){this.ja.disconnect();this.uf.disconnect();this.P.disconnect();this.N.disconnect()};e.prototype.Ic=function(){return this.ja};g.prototype.Oc=function(a){this.N.disconnect();this.N.connect(a);this.P.disconnect();this.P.connect(a)};g.prototype.remove=function(){this.ja.disconnect();this.Sc.disconnect();this.wb.disconnect();this.yc.disconnect();this.N.disconnect();this.P.disconnect();this.Gj.disconnect()};g.prototype.Ic=
function(){return this.ja};l.prototype.Oc=function(a){this.N.disconnect();this.N.connect(a);this.P.disconnect();this.P.connect(a)};l.prototype.remove=function(){this.ja.disconnect();this.bb.disconnect();this.wb.disconnect();this.yc.disconnect();this.N.disconnect();this.P.disconnect()};l.prototype.Ic=function(){return this.ja};t.prototype.Oc=function(a){this.qa.disconnect();this.qa.connect(a)};t.prototype.remove=function(){this.qa.disconnect()};t.prototype.Ic=function(){return this.qa};n.prototype.Oc=
function(a){this.qa.disconnect();this.qa.connect(a)};n.prototype.remove=function(){this.wb.disconnect();this.yc.disconnect();this.qa.disconnect()};n.prototype.Ic=function(){return this.qa};B.prototype.Oc=function(a){this.P.disconnect();this.P.connect(a);this.N.disconnect();this.N.connect(a)};B.prototype.remove=function(){this.wb.disconnect();this.Ei.disconnect();this.ja.disconnect();this.P.disconnect();this.N.disconnect()};B.prototype.Ic=function(){return this.ja};A.prototype.lw=function(a,b){.01>
a&&(a=.01);this.Lk.gain.value=a;this.Kk.gain.value=Math.pow(1/a,.6)*b};A.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};A.prototype.Cu=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),f=0,e=0;32768>e;++e)f=e/32768,f=this.shape(f,c,d),this.uj[32768+e]=f,this.uj[32768-e-1]=-f};A.prototype.Oc=function(a){this.P.disconnect();this.P.connect(a);this.N.disconnect();this.N.connect(a)};A.prototype.remove=function(){this.ja.disconnect();
this.Lk.disconnect();this.ul.disconnect();this.Kk.disconnect();this.P.disconnect();this.N.disconnect()};A.prototype.Ic=function(){return this.ja};z.prototype.Oc=function(a){this.qa.disconnect();this.qa.connect(a)};z.prototype.remove=function(){this.qa.disconnect()};z.prototype.Ic=function(){return this.qa};m.prototype.Aa=function(){this.qa.getFloatFrequencyData(this.Au);this.qa.getByteTimeDomainData(this.dr);for(var a=this.qa.fftSize,b=0,c=this.vi=0,d=0;b<a;b++)d=(this.dr[b]-128)/128,0>d&&(d=-d),
this.vi<d&&(this.vi=d),c+=d*d;this.vi=k(this.vi);k(Math.sqrt(c/a))};m.prototype.Oc=function(a){this.qa.disconnect();this.qa.connect(a)};m.prototype.remove=function(){this.qa.disconnect()};m.prototype.Ic=function(){return this.qa};q.prototype.Fi=function(a){if(this.O=a)this.ck=this.O.x,this.dk=this.O.y;V(this.nf)};q.prototype.Wj=function(){return!!this.O};q.prototype.Aa=function(a){this.O&&0!==a&&(this.pn=Ka(this.ck,this.dk,this.O.x,this.O.y),a=Pa(this.ck,this.dk,this.O.x,this.O.y)/a,4>this.nf.length||
this.nf.shift(),this.nf.push(a),this.ck=this.O.x,this.dk=this.O.y)};q.prototype.tp=function(){if(!this.nf.length)return 0;var a,b,c=0;a=0;for(b=this.nf.length;a<b;a++)c+=this.nf[a];return c/this.nf.length};q.prototype.vm=function(){return Math.cos(this.pn)*this.tp()};q.prototype.wm=function(){return Math.sin(this.pn)*this.tp()};var tc=!1;D.prototype.ut=function(){if(!this.ua&&this.sf){var a=this;if(x.decodeAudioData)x.decodeAudioData(this.sf,function(b){a.ua=b;a.sf=null;var c,d,e;if(ha(a.Hk)||Q)ha(a.oj)||
(c=a.oj.uf,c.normalize=a.sq,c.buffer=b);else if(a.Pg.length){c=0;for(d=a.Pg.length;c<d;c++){b=a.Pg[c];e=new f(a,b.qr);e.Tn(!0);if("undefined"!==typeof b.uq&&(b.O=w.Cf(b.uq),!b.O))continue;if(b.O){var g=Oa(b.O.x,b.O.y,-b.O.n.eb(),M,K,!0),h=Oa(b.O.x,b.O.y,-b.O.n.eb(),M,K,!1);e.Sn(g,h,Fa(b.O.k-b.O.n.eb()),b.Cm,b.qn,b.sn);e.Fi(b.O)}else e.Sn(b.x,b.y,b.Xs,b.Cm,b.qn,b.sn);e.play(a.kn,a.ro,a.Vk);a.Ek&&e.pause();L.push(e)}V(a.Pg)}else e=new f(a,a.Hk||""),e.play(a.kn,a.ro,a.Vk),a.Ek&&e.pause(),L.push(e)},
function(){a.gm=!0});else if(this.ua=x.createBuffer(this.sf,!1),this.sf=null,ha(this.Hk)||Q)ha(this.oj)||(b=this.oj.uf,b.normalize=this.sq,b.buffer=this.ua);else{var b=new f(this,this.Hk);b.play(this.kn,this.ro,this.Vk);this.Ek&&b.pause();L.push(b)}}};D.prototype.Gp=function(){switch(this.Z){case 0:var a=4<=this.ua.readyState;a&&(this.uo=!0);return a||this.uo;case 1:return!!this.sf||!!this.ua;case 2:return!0;case 3:return!0}return!1};D.prototype.tv=function(){switch(this.Z){case 0:return this.Gp();
case 1:return!!this.ua;case 2:return!0;case 3:return!0}return!1};D.prototype.jv=function(){switch(this.Z){case 0:return!!this.ua.error;case 1:return this.gm}return!1};f.prototype.wg=function(){switch(this.Z){case 0:return this.u.ended;case 1:return 1===this.buffer.Z?!this.ee&&!this.Cc&&this.u.loop||this.qc?!1:this.xg:this.u.ended;case 2:return this.xg;case 3:!0}return!0};f.prototype.lt=function(){return this.ee||this.Cc?!0:this.wg()};f.prototype.Tn=function(a){1===C&&(!this.Id&&a?this.hb&&(this.Xa||
(this.Xa=x.createPanner(),this.Xa.panningModel="number"===typeof this.Xa.panningModel?la:["equalpower","HRTF","soundfield"][la],this.Xa.distanceModel="number"===typeof this.Xa.distanceModel?O:["linear","inverse","exponential"][O],this.Xa.refDistance=qa,this.Xa.maxDistance=fa,this.Xa.rolloffFactor=wa),this.hb.disconnect(),this.hb.connect(this.Xa),this.Xa.connect(h(this.tag)),this.Id=!0):this.Id&&!a&&this.hb&&(this.Xa.disconnect(),this.hb.disconnect(),this.hb.connect(h(this.tag)),this.Id=!1))};f.prototype.Sn=
function(a,b,c,d,f,e){this.Id&&1===C&&(this.Xa.setPosition(a,b,0),this.Xa.setOrientation(Math.cos(W(c)),Math.sin(W(c)),0),this.Xa.coneInnerAngle=d,this.Xa.coneOuterAngle=f,this.Xa.coneOuterGain=e,this.Fq=a,this.Gq=b,this.Bq=c,this.Cq=d,this.Dq=f,this.Eq=e)};f.prototype.Fi=function(a){this.Id&&1===C&&(this.Wa||(this.Wa=new q),this.Wa.Fi(a))};f.prototype.Aa=function(a){if(this.Id&&1===C&&this.Wa&&this.Wa.Wj()&&this.yg()){this.Wa.Aa(a);a=this.Wa.O;var b=Oa(a.x,a.y,-a.n.eb(),M,K,!0),c=Oa(a.x,a.y,-a.n.eb(),
M,K,!1);this.Xa.setPosition(b,c,0);b=0;"undefined"!==typeof this.Wa.O.k&&(b=a.k-a.n.eb(),this.Xa.setOrientation(Math.cos(b),Math.sin(b),0));b=Oa(this.Wa.vm(),this.Wa.wm(),-a.n.eb(),0,0,!0);c=Oa(this.Wa.vm(),this.Wa.wm(),-a.n.eb(),0,0,!1);this.Xa.setVelocity(b,c,0)}};f.prototype.play=function(a,c,d){var f=this.u;this.Gd=a;this.volume=c;d=d||0;switch(this.Z){case 0:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==c*E&&(f.volume=c*E);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==d)try{f.currentTime=
d}catch(e){}if(this.td&&Sa&&!w.oc)Ta.push(this);else try{this.u.play()}catch(g){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",g)}break;case 1:this.muted=!1;this.Mg=1;if(1===this.buffer.Z)this.hb.gain.value=c*E,this.ee||(this.u=x.createBufferSource(),this.u.buffer=this.buffer.ua,this.u.connect(this.hb)),this.u.onended=this.un,this.Xi=this.u,this.u.loop=a,this.xg=!1,0===d?r(this.u):b(this.u,d,this.Bf());else{1!==f.playbackRate&&(f.playbackRate=
1);f.loop!==a&&(f.loop=a);f.volume=c*E;if(f.currentTime!==d)try{f.currentTime=d}catch(h){}this.td&&Sa&&!w.oc?Ta.push(this):f.play()}break;case 2:(!this.ee&&this.Cc||0!==d)&&f.seekTo(d);f.play();this.xg=!1;break;case 3:w.ac?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.zg?w.rc.da:w.ze.da)-d;this.qc=this.Cc=this.ee=!1};f.prototype.stop=function(){switch(this.Z){case 0:this.u.paused||this.u.pause();break;case 1:1===this.buffer.Z?a(this.u):
this.u.paused||this.u.pause();break;case 2:this.u.stop();break;case 3:w.ac&&AppMobi.context.stopSound(this.src)}this.Cc=!0;this.qc=!1};f.prototype.pause=function(){if(!(this.ee||this.Cc||this.wg()||this.qc)){switch(this.Z){case 0:this.u.paused||this.u.pause();break;case 1:1===this.buffer.Z?(this.fc=this.tm(),this.Gd&&(this.fc=this.fc%this.Bf()),this.qc=!0,a(this.u)):this.u.paused||this.u.pause();break;case 2:this.u.pause();break;case 3:w.ac&&AppMobi.context.stopSound(this.src)}this.qc=!0}};f.prototype.bw=
function(){if(!(this.ee||this.Cc||this.wg())&&this.qc){switch(this.Z){case 0:this.u.play();break;case 1:1===this.buffer.Z?(this.u=x.createBufferSource(),this.u.buffer=this.buffer.ua,this.u.connect(this.hb),this.u.onended=this.un,this.Xi=this.u,this.u.loop=this.Gd,this.hb.gain.value=E*this.volume*this.Mg,this.startTime=(this.zg?w.rc.da:w.ze.da)-this.fc,b(this.u,this.fc,this.Bf())):this.u.play();break;case 2:this.u.play();break;case 3:w.ac&&AppMobi.context.resumeSound(this.src)}this.qc=!1}};f.prototype.seek=
function(a){if(!(this.ee||this.Cc||this.wg()))switch(this.Z){case 0:try{this.u.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.Z)this.qc?this.fc=a:(this.pause(),this.fc=a,this.bw());else try{this.u.currentTime=a}catch(c){}break;case 3:w.ac&&AppMobi.context.seekSound(this.src,a)}};f.prototype.$v=function(a){1===this.Z&&(this.Id?(this.Xa.disconnect(),this.Xa.connect(a)):(this.hb.disconnect(),this.hb.connect(a)))};f.prototype.Bf=function(){switch(this.Z){case 0:if("undefined"!==typeof this.u.duration)return this.u.duration;
break;case 1:return this.buffer.ua.duration;case 2:return this.u.getDuration();case 3:if(w.ac)return AppMobi.context.getDurationSound(this.src)}return 0};f.prototype.tm=function(){var a=this.Bf(),b=0;switch(this.Z){case 0:"undefined"!==typeof this.u.currentTime&&(b=this.u.currentTime);break;case 1:if(1===this.buffer.Z){if(this.qc)return this.fc;b=(this.zg?w.rc.da:w.ze.da)-this.startTime}else"undefined"!==typeof this.u.currentTime&&(b=this.u.currentTime);break;case 3:w.ac&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Gd&&
b>a&&(b=a);return b};f.prototype.yg=function(){return!this.qc&&!this.ee&&!this.Cc&&!this.wg()};f.prototype.zw=function(){var a=this.volume*E;isFinite(a)||(a=0);switch(this.Z){case 0:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a);break;case 1:1===this.buffer.Z?this.hb.gain.value=a*this.Mg:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a)}};f.prototype.yj=function(a){switch(this.Z){case 0:this.u.muted!==!!a&&(this.u.muted=!!a);break;case 1:1===this.buffer.Z?
(this.Mg=a?0:1,this.hb.gain.value=E*this.volume*this.Mg):this.u.muted!==!!a&&(this.u.muted=!!a)}};f.prototype.mw=function(){this.Dg=!0;this.yj(this.Dg||this.Nh)};f.prototype.Xq=function(a){this.Nh=!!a;this.yj(this.Dg||this.Nh)};f.prototype.Jr=function(){var a=this.playbackRate;this.zg&&(a*=w.ag);switch(this.Z){case 0:this.u.playbackRate!==a&&(this.u.playbackRate=a);break;case 1:1===this.buffer.Z?this.u.playbackRate.value!==a&&(this.u.playbackRate.value=a):this.u.playbackRate!==a&&(this.u.playbackRate=
a)}};f.prototype.ow=function(c){switch(this.Z){case 0:c?this.yg()?(this.u.pause(),this.oe=!0):this.oe=!1:this.oe&&this.u.play();break;case 1:c?this.yg()?(1===this.buffer.Z?(this.fc=this.tm(),this.Gd&&(this.fc=this.fc%this.Bf()),a(this.u)):this.u.pause(),this.oe=!0):this.oe=!1:this.oe&&(1===this.buffer.Z?(this.u=x.createBufferSource(),this.u.buffer=this.buffer.ua,this.u.connect(this.hb),this.u.onended=this.un,this.Xi=this.u,this.u.loop=this.Gd,this.hb.gain.value=E*this.volume*this.Mg,this.startTime=
(this.zg?w.rc.da:w.ze.da)-this.fc,b(this.u,this.fc,this.Bf())):this.u.play());break;case 2:c?this.yg()?(this.u.pause(),this.oe=!0):this.oe=!1:this.oe&&this.u.play()}};J.U=function(a){this.type=a;w=this.b=a.b;N=this;this.Rb=null;this.ai=-600;!(this.b.Ph||this.b.Yj&&(this.b.Ih||this.b.Zj))||this.b.Jh||this.b.Ua||this.b.Mm||(Sa=!0);x=null;"undefined"!==typeof AudioContext?(C=1,x=new AudioContext):"undefined"!==typeof webkitAudioContext&&(C=1,x=new webkitAudioContext);(this.b.Ph&&1===C||Sa)&&document.addEventListener("touchstart",
function(){var a,b,c;!tc&&x&&(a=x.createBuffer(1,1,22050),b=x.createBufferSource(),b.buffer=a,b.connect(x.destination),r(b),tc=!0);if(Sa){if(!Q)for(a=0,b=Ta.length;a<b;++a)c=Ta[a],c.Cc||c.qc||c.u.play();V(Ta)}},!0);1!==C&&(this.b.Re&&"undefined"!==typeof window.Media?C=2:this.b.Fp&&(C=3));2===C&&(ba=location.href,a=ba.lastIndexOf("/"),-1<a&&(ba=ba.substr(0,a+1)),ba=ba.replace("file://",""));if(this.b.Ip&&this.b.uv&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime. Audio cannot be played until Quicktime is installed."),
this.b.Bd(this);else{if(this.b.ac)G=this.b.Yj;else try{G=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){G=!1}this.b.ah(this)}};var ma=J.U.prototype;ma.K=function(){this.b.ig=this;H=this.D[0];this.qe=this.D[1];this.Rv=0!==this.D[2];la=this.D[3];O=this.D[4];this.ai=-this.D[5];qa=this.D[6];fa=this.D[7];wa=this.D[8];this.Rb=new q;var a=this.b.X||this.b.width,b=this.b.W||this.b.height;1===C&&("undefined"!==typeof x.listener.dopplerFactor&&(x.listener.dopplerFactor=0),x.listener.setPosition(a/
2,b/2,this.ai),x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ca&&ca.disconnect();ub=b.toLowerCase();ca=x.createMediaStreamSource(a);ca.connect(h(ub))});this.b.Zs(function(a){N.Nv(a)});var c=this;this.b.Yi(function(a){c.qi(a)})};ma.qi=function(a){var b,c,d;b=0;for(c=L.length;b<c;b++)d=L[b],d.Wa&&d.Wa.O===a&&(d.Wa.O=null,d.Id&&d.yg()&&d.Gd&&d.stop());this.Rb.O===a&&(this.Rb.O=null)};ma.gb=function(){var a={silent:Q,masterVolume:E,listenerZ:this.ai,listenerUid:this.Rb.Wj()?
this.Rb.O.uid:-1,playing:[],effects:{}},b=a.playing,c,d,f,e,g,h;c=0;for(d=L.length;c<d;c++)f=L[c],!f.yg()||3===this.qe||f.td&&1===this.qe||!f.td&&2===this.qe||(e=f.tm(),f.Gd&&(e=e%f.Bf()),e={tag:f.tag,buffersrc:f.buffer.src,is_music:f.td,playbackTime:e,volume:f.volume,looping:f.Gd,muted:f.Dg,playbackRate:f.playbackRate,paused:f.qc,resume_position:f.fc},f.Id&&(e.pan={},h=e.pan,f.Wa&&f.Wa.Wj()?h.objUid=f.Wa.O.uid:(h.x=f.Fq,h.y=f.Gq,h.a=f.Bq),h.ia=f.Cq,h.oa=f.Dq,h.og=f.Eq),b.push(e));b=a.effects;for(g in U)if(U.hasOwnProperty(g)){f=
[];c=0;for(d=U[g].length;c<d;c++)f.push({type:U[g][c].type,params:U[g][c].vd});b[g]=f}return a};var Ua=[];ma.tb=function(a){var b=a.silent;E=a.masterVolume;this.ai=a.listenerZ;this.Rb.Fi(null);var d=a.listenerUid;-1!==d&&(this.Rb.pk=d,Ua.push(this.Rb));var d=a.playing,f,h,k,r,p,D,y,J,x,w,F;if(3!==this.qe)for(f=0,h=L.length;f<h;f++)x=L[f],x.td&&1===this.qe||(x.td||2!==this.qe)&&x.stop();for(p in U)if(U.hasOwnProperty(p))for(f=0,h=U[p].length;f<h;f++)U[p][f].remove();Wa(U);for(p in a.effects)if(a.effects.hasOwnProperty(p))for(D=
a.effects[p],f=0,h=D.length;f<h;f++)switch(k=D[f].type,w=D[f].params,k){case "filter":v(p,new c(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "delay":v(p,new u(w[0],w[1],w[2]));break;case "convolve":k=w[2];x=this.Oj(k,!1);x.ua?k=new e(x.ua,w[0],w[1],k):(k=new e(null,w[0],w[1],k),x.sq=w[0],x.oj=k);v(p,k);break;case "flanger":v(p,new g(w[0],w[1],w[2],w[3],w[4]));break;case "phaser":v(p,new l(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "gain":v(p,new t(w[0]));break;case "tremolo":v(p,new n(w[0],w[1]));break;
case "ringmod":v(p,new B(w[0],w[1]));break;case "distortion":v(p,new A(w[0],w[1],w[2],w[3],w[4]));break;case "compressor":v(p,new z(w[0],w[1],w[2],w[3],w[4]));break;case "analyser":v(p,new m(w[0],w[1]))}f=0;for(h=d.length;f<h;f++)3===this.qe||(a=d[f],k=a.buffersrc,r=a.is_music,p=a.tag,D=a.playbackTime,y=a.looping,J=a.volume,F=(w=a.pan)&&w.hasOwnProperty("objUid")?w.objUid:-1,r&&1===this.qe)||!r&&2===this.qe||((x=this.kp(k,p,r,y,J))?(x.fc=a.resume_position,x.Tn(!!w),x.play(y,J,D),x.Jr(),x.zw(),x.yj(x.Dg||
x.Nh),a.paused&&x.pause(),a.muted&&x.mw(),x.yj(x.Dg||x.Nh),w&&(-1!==F?(x.Wa=x.Wa||new q,x.Wa.pk=F,Ua.push(x.Wa)):x.Sn(w.x,w.y,w.a,w.ia,w.oa,w.og))):(x=this.Oj(k,r),x.Vk=D,x.Ek=a.paused,w&&(-1!==F?x.Pg.push({uq:F,Cm:w.ia,qn:w.oa,sn:w.og,qr:p}):x.Pg.push({x:w.x,y:w.y,Xs:w.a,Cm:w.ia,qn:w.oa,sn:w.og,qr:p}))));if(b&&!Q){f=0;for(h=L.length;f<h;f++)L[f].Xq(!0);Q=!0}else if(!b&&Q){f=0;for(h=L.length;f<h;f++)L[f].Xq(!1);Q=!1}};ma.hd=function(){var a,b,c,d;a=0;for(b=Ua.length;a<b;a++)c=Ua[a],d=this.b.Cf(c.pk),
c.Fi(d),c.pk=-1,d&&(M=d.x,K=d.y);V(Ua)};ma.Nv=function(a){if(!this.Rv){!a&&x&&x.resume&&x.resume();var b,c;b=0;for(c=L.length;b<c;b++)L[b].ow(a);a&&x&&x.suspend&&x.suspend()}};ma.Aa=function(){var a=this.b.xf,b,c,d;b=0;for(c=L.length;b<c;b++)d=L[b],d.Aa(a),0!==H&&d.Jr();var f,e;for(f in U)if(U.hasOwnProperty(f))for(d=U[f],b=0,c=d.length;b<c;b++)e=d[b],e.Aa&&e.Aa();1===C&&this.Rb.Wj()&&(this.Rb.Aa(a),M=this.Rb.O.x,K=this.Rb.O.y,x.listener.setPosition(this.Rb.O.x,this.Rb.O.y,this.ai),x.listener.setVelocity(this.Rb.vm(),
this.Rb.wm(),0))};var Va=[];ma.nw=function(a){var b,c,d,f,e,g=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],f=d[0],d=2*d[1],(e=4<f.length&&".ogg"===f.substr(f.length-4))&&G||!e&&!G)Va.push({filename:f,size:d,O:null}),g+=d;return g};ma.sw=function(){var a,b,c,d;a=0;for(b=Va.length;a<b;++a)c=Va[a],d=this.b.hm+c.filename,c.O=this.Oj(d,!1)};ma.Mu=function(){var a=0,b,c,d;b=0;for(c=Va.length;b<c;++b)d=Va[b],d.O.tv()||d.O.jv()||this.b.Ua||this.b.Zj?a+=d.size:d.O.Gp()&&(a+=Math.floor(d.size/2));return a};ma.Oj=
function(a,b){var c,d,f,e=null;c=0;for(d=ka.length;c<d;c++)if(f=ka[c],f.src===a){e=f;break}e||(e=new D(a,b),ka.push(e));return e};ma.kp=function(a,b,c,d,e){var g,h,k;g=0;for(h=L.length;g<h;g++)if(k=L[g],k.src===a&&(k.lt()||c))return k.tag=b,k;a=this.Oj(a,c);if(!a.ua)return"<preload>"!==b&&(a.Hk=b,a.kn=d,a.ro=e),null;k=new f(a,b);L.push(k);return k};var Ja=[];y.prototype.Wi=function(a){return ib(va,a)};J.B=new y;F.prototype.Play=function(a,b,c,d){!Q&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),P=this.kp(this.b.hm+
a[0]+(G?".ogg":".m4a"),d,a[1],0!==b,c))&&(P.Tn(!1),P.play(0!==b,c))};F.prototype.Ss=function(){var a,b;a=0;for(b=L.length;a<b;a++)L[a].stop()};J.M=new F;J.Ra=new function(){}})();function mc(k){this.b=k}
(function(){function k(){}var h=mc.prototype;h.ba=function(d){this.Ja=d;this.b=d.b};h.ba.prototype.K=function(){};h.U=function(d){this.type=d;this.b=d.b;this.bk=Array(256);this.rl=Array(256);this.qf=0};var d=h.U.prototype;d.K=function(){var d=this;this.b.Ua||(jQuery(document).keydown(function(b){d.ri(b)}),jQuery(document).keyup(function(b){d.si(b)}))};var p=[32,33,34,35,36,37,38,39,40,44];d.ri=function(d){var b=!1;window!=window.top&&-1<p.indexOf(d.which)&&(d.preventDefault(),b=!0,d.stopPropagation());
if(this.bk[d.which])this.rl[d.which]&&!b&&d.preventDefault();else{this.bk[d.which]=!0;this.qf=d.which;this.b.oc=!0;this.b.trigger(mc.prototype.B.ls,this);var a=this.b.trigger(mc.prototype.B.Bo,this),c=this.b.trigger(mc.prototype.B.ws,this);this.b.oc=!1;if(a||c)this.rl[d.which]=!0,b||d.preventDefault()}};d.si=function(d){this.bk[d.which]=!1;this.qf=d.which;this.b.oc=!0;this.b.trigger(mc.prototype.B.ns,this);var b=this.b.trigger(mc.prototype.B.ys,this),a=this.b.trigger(mc.prototype.B.xs,this);this.b.oc=
!1;if(b||a||this.rl[d.which])this.rl[d.which]=!0,d.preventDefault()};d.gb=function(){return{triggerKey:this.qf}};d.tb=function(d){this.qf=d.triggerKey};k.prototype.bs=function(d){return this.bk[d]};k.prototype.Bo=function(d){return d===this.qf};k.prototype.ls=function(){return!0};k.prototype.ns=function(){return!0};k.prototype.ys=function(d){return d===this.qf};k.prototype.ws=function(d){return d===this.qf};k.prototype.xs=function(d){return d===this.qf};h.B=new k;h.M=new function(){};h.Ra=new function(){}})();
function nc(k){this.b=k}
(function(){function k(){}function h(){}var d=nc.prototype;d.ba=function(b){this.Ja=b;this.b=b.b};d.ba.prototype.K=function(){};d.U=function(b){this.type=b;this.b=b.b;this.Jl=Array(4);this.tr=this.ml=this.bh=this.bf=this.$e=0;this.zm=!1};var p=d.U.prototype;p.K=function(){var b=this;if(!this.b.Ua){jQuery(document).mousemove(function(a){b.Lv(a)});jQuery(document).mousedown(function(a){b.Kv(a)});jQuery(document).mouseup(function(a){b.Mv(a)});jQuery(document).dblclick(function(a){b.Jv(a)});var a=function(a){b.Ov(a)};
document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var r={left:0,top:0};p.Lv=function(b){var a=this.b.Ua?r:jQuery(this.b.canvas).offset();this.$e=b.pageX-a.left;this.bf=b.pageY-a.top};p.oq=function(){return 0<this.b.Xb?!0:0<=this.$e&&0<=this.bf&&this.$e<this.b.width&&this.bf<this.b.height};p.Kv=function(b){this.oq()&&(this.Jl[b.which]=!0,this.b.oc=!0,this.b.trigger(nc.prototype.B.ks,this),this.bh=b.which-1,this.ml=0,this.b.trigger(nc.prototype.B.zo,this),
this.b.trigger(nc.prototype.B.zl,this),this.b.oc=!1)};p.Mv=function(b){this.Jl[b.which]&&(this.b.vp&&!this.b.Te&&b.preventDefault(),this.b.vp=!0,this.Jl[b.which]=!1,this.b.oc=!0,this.bh=b.which-1,this.b.trigger(nc.prototype.B.Es,this),this.b.oc=!1)};p.Jv=function(b){this.oq()&&(b.preventDefault(),this.b.oc=!0,this.bh=b.which-1,this.ml=1,this.b.trigger(nc.prototype.B.zo,this),this.b.trigger(nc.prototype.B.zl,this),this.b.oc=!1)};p.Ov=function(b){this.tr=0>(b.wheelDelta?b.wheelDelta:b.detail?-b.detail:
0)?0:1;this.zm=!1;this.b.oc=!0;this.b.trigger(nc.prototype.B.Hs,this);this.b.oc=!1;this.zm&&jb(b)&&b.preventDefault()};k.prototype.zo=function(b,a){return b===this.bh&&a===this.ml};k.prototype.ks=function(){return!0};k.prototype.Es=function(b){return b===this.bh};k.prototype.zl=function(b,a,c){return b!==this.bh||a!==this.ml?!1:this.b.vw(c,this.$e,this.bf)};k.prototype.Hs=function(b){this.zm=!0;return b===this.tr};d.B=new k;d.M=new function(){};h.prototype.Jo=function(b,a){var c,d,e,g,h;ha(a)?(c=
this.b.zh(0),d=c.scale,e=c.Ad,g=c.Yc,h=c.k,c.scale=1,c.Ad=1,c.Yc=1,c.k=0,b.L(c.jc(this.$e,this.bf,!0)),c.scale=d,c.Ad=e,c.Yc=g,c.k=h):(c=ia(a)?this.b.zh(a):this.b.rm(a))?b.L(c.jc(this.$e,this.bf,!0)):b.L(0)};h.prototype.Ko=function(b,a){var c,d,e,g,h;ha(a)?(c=this.b.zh(0),d=c.scale,e=c.Ad,g=c.Zc,h=c.k,c.scale=1,c.Ad=1,c.Zc=1,c.k=0,b.L(c.jc(this.$e,this.bf,!1)),c.scale=d,c.Ad=e,c.Zc=g,c.k=h):(c=ia(a)?this.b.zh(a):this.b.rm(a))?b.L(c.jc(this.$e,this.bf,!1)):b.L(0)};d.Ra=new h})();
function oc(k){this.b=k}
(function(){function k(b){this.Ga=b;this.Ka=!1;this.k=this.speed=this.y=this.x=0;this.opacity=1;this.Ee=this.vg=this.size=this.Tj=0}function h(){}var d=oc.prototype;d.ba=function(b){this.Ja=b;this.b=b.b};var p=d.ba.prototype;p.K=function(){this.J||(this.T=new Image,this.T.Rl=this.hl,this.aa=null,this.b.so(this.T,this.gl))};p.ti=function(){this.J||(this.aa=null)};p.zk=function(){this.J||!this.j.length||this.aa||(this.aa=this.b.G.Ig(this.T,!0,this.b.ka,this.Pi))};p.bi=function(){this.J||this.aa||!this.b.G||
(this.aa=this.b.G.Ig(this.T,!0,this.b.ka,this.Pi))};p.ol=function(){this.J||this.j.length||!this.aa||(this.b.G.deleteTexture(this.aa),this.aa=null)};p.Mk=function(b){b.drawImage(this.T,0,0)};k.prototype.init=function(){var b=this.Ga;this.x=b.x-b.wl/2+Math.random()*b.wl;this.y=b.y-b.xl/2+Math.random()*b.xl;this.speed=b.Im-b.bl/2+Math.random()*b.bl;this.k=b.k-b.cl/2+Math.random()*b.cl;this.opacity=b.Gm;this.size=b.Hm-b.al/2+Math.random()*b.al;this.Tj=b.ym-b.Uj/2+Math.random()*b.Uj;this.Ee=this.vg=0};
k.prototype.Aa=function(b){var a=this.Ga;this.x+=Math.cos(this.k)*this.speed*b;this.y+=Math.sin(this.k)*this.speed*b;this.y+=this.vg*b;this.speed+=a.Fa*b;this.size+=this.Tj*b;this.vg+=a.cb*b;this.Ee+=b;1>this.size?this.Ka=!1:(0!==a.Yh&&(this.k+=Math.random()*a.Yh*b-a.Yh*b/2),0!==a.$h&&(this.speed+=Math.random()*a.$h*b-a.$h*b/2),0!==a.Zh&&(this.opacity+=Math.random()*a.Zh*b-a.Zh*b/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=a.mg&&this.Ee>=a.timeout&&(this.Ka=!1),2===a.mg&&
0>=this.speed&&(this.Ka=!1))};k.prototype.Hc=function(b){var a=this.Ga.opacity*this.opacity;if(0!==a){0===this.Ga.mg&&(a*=1-this.Ee/this.Ga.timeout);b.globalAlpha=a;var a=this.x-this.size/2,c=this.y-this.size/2;this.Ga.b.$c&&(a=a+.5|0,c=c+.5|0);b.drawImage(this.Ga.type.T,a,c,this.size,this.size)}};k.prototype.Jb=function(b){var a=this.Ga.opacity*this.opacity;0===this.Ga.mg&&(a*=1-this.Ee/this.Ga.timeout);var c=this.size,d=c*this.Ga.Jq,e=this.x-c/2,g=this.y-c/2;this.Ga.b.$c&&(e=e+.5|0,g=g+.5|0);1>
d||0===a||(d<b.Ev||d>b.mn?(b.jf(a),b.Bi(e,g,e+c,g,e+c,g+c,e,g+c)):b.Sv(this.x,this.y,d,a))};k.prototype.left=function(){return this.x-this.size/2};k.prototype.right=function(){return this.x+this.size/2};k.prototype.top=function(){return this.y-this.size/2};k.prototype.bottom=function(){return this.y+this.size/2};d.U=function(b){this.type=b;this.b=b.b};var p=d.U.prototype,r=[];p.K=function(){var b=this.D;this.Rk=b[0];this.cl=W(b[1]);this.Xg=b[2];this.Yn=!0;this.Im=b[3];this.Hm=b[4];this.Gm=b[5]/100;
this.ym=b[6];this.wl=b[7];this.xl=b[8];this.bl=b[9];this.al=b[10];this.Uj=b[11];this.Fa=b[12];this.cb=b[13];this.Yh=b[14];this.$h=b[15];this.Zh=b[16];this.mg=b[17];this.timeout=b[18];this.Uf=0;this.Jq=1;this.Bk=this.x;this.Dk=this.y;this.Ck=this.x;this.Ak=this.y;this.$s(function(a){a.Ca.set(a.Bk,a.Dk,a.Ck,a.Ak);a.Eb.Wg(a.Ca);a.hj=!1;a.po()});this.Tb||(this.Sb=[]);this.b.ah(this);this.type.bi();if(1===this.Xg)for(b=0;b<this.Rk;b++)this.Cl().opacity=0;this.Jj=!0};p.gb=function(){var b={r:this.Rk,sc:this.cl,
st:this.Xg,s:this.Yn,isp:this.Im,isz:this.Hm,io:this.Gm,gr:this.ym,xr:this.wl,yr:this.xl,spr:this.bl,szr:this.al,grnd:this.Uj,acc:this.Fa,g:this.cb,lar:this.Yh,lsr:this.$h,lor:this.Zh,dm:this.mg,to:this.timeout,pcc:this.Uf,ft:this.Jj,p:[]},a,c,d,e=b.p;a=0;for(c=this.Sb.length;a<c;a++)d=this.Sb[a],e.push([d.x,d.y,d.speed,d.k,d.opacity,d.Tj,d.size,d.vg,d.Ee]);return b};p.tb=function(b){this.Rk=b.r;this.cl=b.sc;this.Xg=b.st;this.Yn=b.s;this.Im=b.isp;this.Hm=b.isz;this.Gm=b.io;this.ym=b.gr;this.wl=b.xr;
this.xl=b.yr;this.bl=b.spr;this.al=b.szr;this.Uj=b.grnd;this.Fa=b.acc;this.cb=b.g;this.Yh=b.lar;this.$h=b.lsr;this.Zh=b.lor;this.mg=b.dm;this.timeout=b.to;this.Uf=b.pcc;this.Jj=b.ft;r.push.apply(r,this.Sb);V(this.Sb);var a,c,d,e=b.p;b=0;for(a=e.length;b<a;b++)c=this.Cl(),d=e[b],c.x=d[0],c.y=d[1],c.speed=d[2],c.k=d[3],c.opacity=d[4],c.Tj=d[5],c.size=d[6],c.vg=d[7],c.Ee=d[8]};p.cf=function(){r.push.apply(r,this.Sb);V(this.Sb)};p.Cl=function(){var b;r.length?(b=r.pop(),b.Ga=this):b=new k(this);this.Sb.push(b);
b.Ka=!0;return b};p.Aa=function(){var b=this.b.Pe(this),a,c,d,e;if(0===this.Xg&&this.Yn)for(this.Uf+=b*this.Rk,c=S(this.Uf),this.Uf-=c,a=0;a<c;a++)d=this.Cl(),d.init();this.Bk=this.x;this.Dk=this.y;this.Ck=this.x;this.Ak=this.y;e=a=0;for(c=this.Sb.length;a<c;a++)d=this.Sb[a],this.Sb[e]=d,this.b.la=!0,1===this.Xg&&this.Jj&&d.init(),d.Aa(b),d.Ka?(d.left()<this.Bk&&(this.Bk=d.left()),d.right()>this.Ck&&(this.Ck=d.right()),d.top()<this.Dk&&(this.Dk=d.top()),d.bottom()>this.Ak&&(this.Ak=d.bottom()),e++):
r.push(d);Aa(this.Sb,e);this.C();this.Jj=!1;1===this.Xg&&0===this.Sb.length&&this.b.Bd(this)};p.Hc=function(b){var a,c,d,e=this.n;a=0;for(c=this.Sb.length;a<c;a++)d=this.Sb[a],d.right()>=e.Ha&&d.bottom()>=e.Ia&&d.left()<=e.Pa&&d.top()<=e.Oa&&d.Hc(b)};p.Jb=function(b){this.Jq=this.n.mc();b.gc(this.type.aa);var a,c,d,e=this.n;a=0;for(c=this.Sb.length;a<c;a++)d=this.Sb[a],d.right()>=e.Ha&&d.bottom()>=e.Ia&&d.left()<=e.Pa&&d.top()<=e.Oa&&d.Jb(b)};d.B=new function(){};h.prototype.Bl=function(b){this.cb=
b};d.M=new h;d.Ra=new function(){}})();function Z(k){this.b=k}
(function(){function k(){if(0===this.Vl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Yg?b.drawImage(this.T,this.Ng,this.Og,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.T,0,0,this.width,this.height);this.Vl=a.toDataURL("image/png")}return this.Vl}function h(){}function d(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 r(a,b,c,d){b=b.uid;c=c.uid;var e=p(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var g=t.length?t.pop():[0,0,0];g[0]=b;g[1]=c;g[2]=d;a[e]=g}}function b(a,b,c){b=p(b.uid,c.uid);a.hasOwnProperty(b)&&(d(a[b]),delete a[b])}function a(a,b,c){b=p(b.uid,c.uid);if(a.hasOwnProperty(b))return n=a[b][2],!0;n=-2;return!1}function c(){}var u=Z.prototype;u.ba=function(a){this.Ja=a;this.b=a.b};var e=u.ba.prototype;e.K=function(){if(!this.J){var a,b,c,d,e,g,h,l,n;this.jd=[];this.Eh=!1;a=0;for(b=this.Vb.length;a<b;a++){e=this.Vb[a];h={};h.name=e[0];h.speed=e[1];h.loop=e[2];h.In=e[3];h.Sk=
e[4];h.Kq=e[5];h.ca=e[6];h.frames=[];c=0;for(d=e[7].length;c<d;c++)g=e[7][c],l={},l.gl=g[0],l.hl=g[1],l.Ng=g[2],l.Og=g[3],l.width=g[4],l.height=g[5],l.duration=g[6],l.Zb=g[7],l.$b=g[8],l.Dm=g[9],l.Ik=g[10],l.Lq=g[11],l.Yg=0!==l.width,l.Vl="",l.Ox=k,n={left:0,top:0,right:1,bottom:1},l.Wn=n,l.aa=null,(n=this.b.yu(g[0]))?l.T=n:(l.T=new Image,l.T.pt=g[0],l.T.Rl=g[1],l.T.jt=null,this.b.so(l.T,g[0])),h.frames.push(l),this.jd.push(l);this.Vb[a]=h}}};e.Ir=function(){var a,b,c;a=0;for(b=this.j.length;a<b;a++)c=
this.j[a],c.sj=c.Pc.aa};e.ti=function(){if(!this.J){var a,b,c;a=0;for(b=this.jd.length;a<b;++a)c=this.jd[a],c.T.jt=null,c.aa=null;this.Eh=!1;this.Ir()}};e.zk=function(){if(!this.J&&this.j.length){var a,b,c;a=0;for(b=this.jd.length;a<b;++a)c=this.jd[a],c.aa=this.b.G.Ig(c.T,!1,this.b.ka,c.Lq);this.Ir()}};e.bi=function(){if(!this.J&&!this.Eh&&this.b.G){var a,b,c;a=0;for(b=this.jd.length;a<b;++a)c=this.jd[a],c.aa=this.b.G.Ig(c.T,!1,this.b.ka,c.Lq);this.Eh=!0}};e.ol=function(){if(!this.J&&!this.j.length&&
this.Eh){var a,b,c;a=0;for(b=this.jd.length;a<b;++a)c=this.jd[a],this.b.G.deleteTexture(c.aa),c.aa=null;this.Eh=!1}};var g=[];e.Mk=function(a){var b,c,d;V(g);b=0;for(c=this.jd.length;b<c;++b)d=this.jd[b].T,-1===g.indexOf(d)&&(a.drawImage(d,0,0),g.push(d))};u.U=function(a){this.type=a;this.b=a.b;a=this.type.Vb[0].frames[0].Ik;this.Tb?this.wa.Hi(a):this.wa=new cb(a)};var l=u.U.prototype;l.K=function(){this.visible=0===this.D[0];this.Em=this.Mh=!1;this.Wd=0!==this.D[3];1===this.type.Vb.length&&1===this.type.Vb[0].frames.length||
0===this.type.Vb[0].speed||(this.b.ah(this),this.Mh=!0);this.Qa=this.jp(this.D[1])||this.type.Vb[0];this.I=this.D[2];0>this.I&&(this.I=0);this.I>=this.Qa.frames.length&&(this.I=this.Qa.frames.length-1);var a=this.Qa.frames[this.I];this.wa.Hi(a.Ik);this.Zb=a.Zb;this.$b=a.$b;this.lg=this.Qa.speed;this.Tb?this.Cd.reset():this.Cd=new ab;this.de=this.Cd.da;this.rf=!0;this.Td=0;this.Ge=!0;this.lj=this.No="";this.Wo=0;this.Ol=-1;this.type.bi();var b,c,d,e,g,h,k,a=0;for(b=this.type.Vb.length;a<b;a++)for(e=
this.type.Vb[a],c=0,d=e.frames.length;c<d;c++)g=e.frames[c],0===g.width&&(g.width=g.T.width,g.height=g.T.height),g.Yg&&(k=g.T,h=g.Wn,h.left=g.Ng/k.width,h.top=g.Og/k.height,h.right=(g.Ng+g.width)/k.width,h.bottom=(g.Og+g.height)/k.height,0===g.Ng&&0===g.Og&&g.width===k.width&&g.height===k.height&&(g.Yg=!1));this.Pc=this.Qa.frames[this.I];this.sj=this.Pc.aa};l.gb=function(){var a={a:this.Qa.ca,f:this.I,cas:this.lg,fs:this.de,ar:this.Td,at:this.Cd.da};this.rf||(a.ap=this.rf);this.Ge||(a.af=this.Ge);
return a};l.tb=function(a){var b=this.Du(a.a);b&&(this.Qa=b);this.I=a.f;0>this.I&&(this.I=0);this.I>=this.Qa.frames.length&&(this.I=this.Qa.frames.length-1);this.lg=a.cas;this.de=a.fs;this.Td=a.ar;this.Cd.reset();this.Cd.da=a.at;this.rf=a.hasOwnProperty("ap")?a.ap:!0;this.Ge=a.hasOwnProperty("af")?a.af:!0;this.Pc=this.Qa.frames[this.I];this.sj=this.Pc.aa;this.wa.Hi(this.Pc.Ik);this.Zb=this.Pc.Zb;this.$b=this.Pc.$b};l.Hl=function(a){this.I=a?0:this.Qa.frames.length-1;this.rf=!1;this.No=this.Qa.name;
this.Em=!0;this.b.trigger(Z.prototype.B.hs,this);this.b.trigger(Z.prototype.B.yo,this);this.Em=!1;this.Td=0};l.Mx=function(){return this.Cd.da};l.Aa=function(){this.Cd.add(this.b.Pe(this));this.lj.length&&this.$o();0<=this.Ol&&this.At();var a=this.Cd.da,b=this.Qa,c=b.frames[this.I],d=c.duration/this.lg;this.rf&&a>=this.de+d&&(this.Ge?this.I++:this.I--,this.de+=d,this.I>=b.frames.length&&(b.Kq?(this.Ge=!1,this.I=b.frames.length-2):b.loop?this.I=b.Sk:(this.Td++,this.Td>=b.In?this.Hl(!1):this.I=b.Sk)),
0>this.I&&(b.Kq?(this.I=1,this.Ge=!0,b.loop||(this.Td++,this.Td>=b.In&&this.Hl(!0))):b.loop?this.I=b.Sk:(this.Td++,this.Td>=b.In?this.Hl(!0):this.I=b.Sk)),0>this.I?this.I=0:this.I>=b.frames.length&&(this.I=b.frames.length-1),a>this.de+b.frames[this.I].duration/this.lg&&(this.de=a),a=b.frames[this.I],this.fg(c,a),this.b.la=!0)};l.jp=function(a){var b,c,d;b=0;for(c=this.type.Vb.length;b<c;b++)if(d=this.type.Vb[b],ib(d.name,a))return d;return null};l.Du=function(a){var b,c,d;b=0;for(c=this.type.Vb.length;b<
c;b++)if(d=this.type.Vb[b],d.ca===a)return d;return null};l.$o=function(){var a=this.Qa.frames[this.I],b=this.jp(this.lj);this.lj="";!b||ib(b.name,this.Qa.name)&&this.rf||(this.Qa=b,this.lg=b.speed,0>this.I&&(this.I=0),this.I>=this.Qa.frames.length&&(this.I=this.Qa.frames.length-1),1===this.Wo&&(this.I=0),this.rf=!0,this.de=this.Cd.da,this.Ge=!0,this.fg(a,this.Qa.frames[this.I]),this.b.la=!0)};l.At=function(){var a=this.Qa.frames[this.I],b=this.I;this.I=S(this.Ol);0>this.I&&(this.I=0);this.I>=this.Qa.frames.length&&
(this.I=this.Qa.frames.length-1);b!==this.I&&(this.fg(a,this.Qa.frames[this.I]),this.de=this.Cd.da,this.b.la=!0);this.Ol=-1};l.fg=function(a,b){var c=a.width,d=a.height,e=b.width,g=b.height;c!=e&&(this.width*=e/c);d!=g&&(this.height*=g/d);this.Zb=b.Zb;this.$b=b.$b;this.wa.Hi(b.Ik);this.C();this.Pc=b;this.sj=b.aa;c=0;for(d=this.S.length;c<d;c++)e=this.S[c],e.zq&&e.zq(a,b);this.b.trigger(Z.prototype.B.fg,this)};l.Hc=function(a){a.globalAlpha=this.opacity;var b=this.Pc,c=b.Yg,d=b.T,e=this.x,g=this.y,
h=this.width,k=this.height;if(0===this.k&&0<=h&&0<=k)e-=this.Zb*h,g-=this.$b*k,this.b.$c&&(e=Math.round(e),g=Math.round(g)),c?a.drawImage(d,b.Ng,b.Og,b.width,b.height,e,g,h,k):a.drawImage(d,e,g,h,k);else{this.b.$c&&(e=Math.round(e),g=Math.round(g));a.save();var l=0<h?1:-1,n=0<k?1:-1;a.translate(e,g);1===l&&1===n||a.scale(l,n);a.rotate(this.k*l*n);e=0-this.Zb*oa(h);g=0-this.$b*oa(k);c?a.drawImage(d,b.Ng,b.Og,b.width,b.height,e,g,oa(h),oa(k)):a.drawImage(d,e,g,oa(h),oa(k));a.restore()}};l.bj=function(a){this.Jb(a)};
l.Jb=function(a){a.gc(this.sj);a.jf(this.opacity);var b=this.Pc,c=this.Eb;if(this.b.$c){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Yg?a.Kd(c.ob+d,c.pb+e,c.Nb+d,c.Ob+e,c.Fb+d,c.Gb+e,c.Cb+d,c.Db+e,b.Wn):a.Bi(c.ob+d,c.pb+e,c.Nb+d,c.Ob+e,c.Fb+d,c.Gb+e,c.Cb+d,c.Db+e)}else b.Yg?a.Kd(c.ob,c.pb,c.Nb,c.Ob,c.Fb,c.Gb,c.Cb,c.Db,b.Wn):a.Bi(c.ob,c.pb,c.Nb,c.Ob,c.Fb,c.Gb,c.Cb,c.Db)};l.Hu=function(a){var b=this.Pc,c,d;c=0;for(d=b.Dm.length;c<d;c++)if(ib(a,b.Dm[c][0]))return c;return-1};l.qm=function(a,
b){var c=this.Pc,d=c.Dm,e;R(a)?e=this.Hu(a):e=a-1;e=S(e);if(0>e||e>=d.length)return b?this.x:this.y;var g=(d[e][1]-c.Zb)*this.width,d=d[e][2],d=(d-c.$b)*this.height,c=Math.cos(this.k);e=Math.sin(this.k);var h=g*c-d*e,d=d*c+g*e,g=h+this.x,d=d+this.y;return b?g:d};var t=[],n=-2,B=[];h.prototype.qs=function(c){if(!c)return!1;var e=this.b,g=e.om(),f=g.type,h=null;g.ea.collmemory?h=g.ea.collmemory:(h={},g.ea.collmemory=h,e.Yi(function(a){var b=g.ea.collmemory;a=a.uid;var c,e;for(c in b)b.hasOwnProperty(c)&&
(e=b[c],e[0]===a||e[1]===a)&&(d(b[c]),delete b[c])}));var k=f.na(),l=c.na(),k=k.Jc(),p,u,t,A,z,C,x,ka=this.b.ed,L=ka-1,P=e.Kb().lc;for(u=0;u<k.length;u++){t=k[u];l.za?(t.Ba(),this.b.lp(t.n,c,t.Ca,B),p=B):p=l.Jc();for(A=0;A<p.length;A++)z=p[A],e.Dc(t,z)||e.mt(t,z)?(C=a(h,t,z),C=!C||n<L,r(h,t,z,ka),C&&(e.Ok(P.Ea),C=f.na(),x=c.na(),C.za=!1,x.za=!1,f===c?(C.j.length=2,C.j[0]=t,C.j[1]=z,f.ld()):(C.j.length=1,x.j.length=1,C.j[0]=t,x.j[0]=z,f.ld(),c.ld()),P.dw(),e.Vf(P.Ea))):b(h,t,z);V(B)}return!1};var A=
new da,z=!1;new T(0,0,0,0);e.finish=function(a){if(z){if(a){var b=this.b.Kb().lc.ud;a=null.na();var c=A.ye(),d,e;if(a.za){a.za=!1;V(a.j);d=0;for(e=c.length;d<e;++d)a.j[d]=c[d];if(b)for(V(a.ta),d=0,e=null.j.length;d<e;++d)c=null.j[d],A.contains(c)||a.ta.push(c)}else if(b)for(b=a.j.length,d=0,e=c.length;d<e;++d)a.j[b+d]=c[d],Ea(a.ta,c[d]);else Ba(a.j,c);null.ld()}A.clear();z=!1}};h.prototype.yo=function(a){return ib(this.No,a)};h.prototype.hs=function(){return!0};h.prototype.fg=function(){return!0};
h.prototype.cs=function(){return 0>this.width};u.B=new h;c.prototype.Js=function(a,b){this.lj=a;this.Wo=b;this.Mh||(this.b.ah(this),this.Mh=!0);this.Em||this.$o()};c.prototype.Ks=function(a){this.lg=oa(a);this.Ge=0<=a;this.Mh||(this.b.ah(this),this.Mh=!0)};c.prototype.Ns=function(a){a=oa(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.C())};u.M=new c;u.Ra=new function(){}})();function pc(k){this.b=k}
(function(){function k(){return b.length?b.pop():{}}function h(a){var c,d;c=0;for(d=a.length;c<d;c++)b.push(a[c]);V(a)}var d=pc.prototype;d.K=function(){d.M.Os=function(a){this.width!==a&&(this.width=a,this.$g=!0,this.C())}};d.ba=function(a){this.Ja=a;this.b=a.b};var p=d.ba.prototype;p.K=function(){};p.ti=function(){if(!this.J){var a,b,d;a=0;for(b=this.j.length;a<b;a++)d=this.j[a],d.Hd=null,d.Sf=null,d.xc=null}};d.U=function(a){this.type=a;this.b=a.b;this.Tb?V(this.Ye):this.Ye=[];this.$g=!0};p=d.U.prototype;
p.K=function(){this.text=this.D[0];this.visible=0===this.D[1];this.font=this.D[2];this.color=this.D[3];this.Vj=this.D[4];this.sl=this.D[5];this.xo=0===this.D[7];this.Zm=this.hk=this.width;this.gk=this.height;this.an=this.D[8];this.Lj=this.pg="";this.or=this.pr=this.yi=0;this.Pv();this.xc=this.Sf=this.Hd=null;this.qq=!1;this.Xh=this.b.ed;this.Tb?this.ff.set(0,0,1,1):this.ff=new T(0,0,1,1);this.b.G&&this.b.ah(this)};p.Pv=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.yi=parseInt(a[b].substr(0,a[b].length-2));this.En=Math.ceil(this.yi/72*96)+4;0<b&&(this.Lj=a[b-1]);this.pg=a[b+1];for(b+=2;b<a.length;b++)this.pg+=" "+a[b];break}};p.gb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Vj,va:this.sl,wr:this.xo,lho:this.an,fn:this.pg,fs:this.Lj,ps:this.yi,pxh:this.En,tw:this.pr,th:this.or,lrt:this.Xh}};p.tb=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.Vj=a.ha;this.sl=a.va;this.xo=a.wr;this.an=a.lho;this.pg=a.fn;this.Lj=a.fs;this.yi=
a.ps;this.En=a.pxh;this.pr=a.tw;this.or=a.th;this.Xh=a.lrt;this.$g=!0;this.Zm=this.hk=this.width;this.gk=this.height};p.Aa=function(){if(this.b.G&&this.xc&&300<=this.b.ed-this.Xh){var a=this.n;this.Ba();var b=this.Ca;if(b.right<a.Ha||b.bottom<a.Ia||b.left>a.Pa||b.top>a.Oa)this.b.G.deleteTexture(this.xc),this.Hd=this.Sf=this.xc=null}};p.cf=function(){this.Hd=this.Sf=null;this.b.G&&this.xc&&this.b.G.deleteTexture(this.xc);this.xc=null};p.bj=function(){this.font=this.Lj+" "+this.yi.toString()+"pt "+
this.pg;this.$g=!0;this.b.la=!0};p.Hc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var d=1;b&&(d=this.n.mc(),a.save(),a.scale(d,d));if(this.$g||this.width!==this.Zm)this.type.Ja.Vs(this.text,this.Ye,a,this.width,this.xo),this.$g=!1,this.Zm=this.width;this.Ba();var d=b?0:this.Eb.ob,e=b?0:this.Eb.pb;this.b.$c&&(d=d+.5|0,e=e+.5|0);0===this.k||b||(a.save(),a.translate(d,e),a.rotate(this.k),e=d=0);var g=e+this.height,h=this.En,h=h+this.an,k,
n;1===this.sl?e+=Math.max(this.height/2-this.Ye.length*h/2,0):2===this.sl&&(e+=Math.max(this.height-this.Ye.length*h-2,0));for(n=0;n<this.Ye.length&&!(k=d,1===this.Vj?k=d+(this.width-this.Ye[n].width)/2:2===this.Vj&&(k=d+(this.width-this.Ye[n].width)),a.fillText(this.Ye[n].text,k,e),e+=h,e>=g-h);n++);(0!==this.k||b)&&a.restore();this.Xh=this.b.ed};p.Jb=function(a){if(!(1>this.width||1>this.height)){var b=this.$g||this.qq;this.qq=!1;var d=this.n.mc(),e=this.n.eb(),g=this.ff,h=d*this.width,k=d*this.height,
n=Math.ceil(h),r=Math.ceil(k),p=this.b.X/2,z=this.b.W/2;this.Sf||(this.Hd=document.createElement("canvas"),this.Hd.width=n,this.Hd.height=r,this.hk=n,this.gk=r,b=!0,this.Sf=this.Hd.getContext("2d"));if(n!==this.hk||r!==this.gk)this.Hd.width=n,this.Hd.height=r,this.xc&&(a.deleteTexture(this.xc),this.xc=null),b=!0;b&&(this.Sf.clearRect(0,0,n,r),this.Hc(this.Sf,!0),this.xc||(this.xc=a.Xd(n,r,this.b.ka,this.b.Te)),a.Ew(this.Hd,this.xc,this.b.Te));this.hk=n;this.gk=r;a.gc(this.xc);a.jf(this.opacity);a.Md();
a.translate(-p,-z);a.Rd();var m=this.Eb,b=this.n.Na(m.ob,m.pb,!0,!0),p=this.n.Na(m.ob,m.pb,!1,!0),z=this.n.Na(m.Nb,m.Ob,!0,!0),q=this.n.Na(m.Nb,m.Ob,!1,!0),D=this.n.Na(m.Fb,m.Gb,!0,!0),f=this.n.Na(m.Fb,m.Gb,!1,!0),v=this.n.Na(m.Cb,m.Db,!0,!0),m=this.n.Na(m.Cb,m.Db,!1,!0);if(this.b.$c||0===this.k&&0===e)var y=(b+.5|0)-b,F=(p+.5|0)-p,b=b+y,p=p+F,z=z+y,q=q+F,D=D+y,f=f+F,v=v+y,m=m+F;0===this.k&&0===e?(z=b+n,q=p,D=z,f=p+r,v=b,m=f,g.right=1,g.bottom=1):(g.right=h/n,g.bottom=k/r);a.Kd(b,p,z,q,D,f,v,m,g);
a.Md();a.scale(d,d);a.Kn(-this.n.eb());a.translate((this.n.Ha+this.n.Pa)/-2,(this.n.Ia+this.n.Oa)/-2);a.Rd();this.Xh=this.b.ed}};var r=[];d.Ts=function(a){V(r);for(var b="",d,e=0;e<a.length;)if(d=a.charAt(e),"\n"===d)b.length&&(r.push(b),b=""),r.push("\n"),++e;else if(" "===d||"\t"===d||"-"===d){do b+=a.charAt(e),e++;while(e<a.length&&(" "===a.charAt(e)||"\t"===a.charAt(e)));r.push(b);b=""}else e<a.length&&(b+=d,e++);b.length&&r.push(b)};var b=[];d.Vs=function(a,b,d,e,g){if(a&&a.length)if(2>=e)h(b);
else{if(100>=a.length&&-1===a.indexOf("\n")){var l=d.measureText(a).width;if(l<=e){h(b);b.push(k());b[0].text=a;b[0].width=l;return}}this.Ws(a,b,d,e,g)}else h(b)};d.Ws=function(a,c,d,e,g){g&&(this.Ts(a),a=r);var h="",p,n,B,A=0;for(B=0;B<a.length;B++)"\n"===a[B]?(A>=c.length&&c.push(k()),n=c[A],n.text=h,n.width=d.measureText(h).width,A++,h=""):(p=h,h+=a[B],n=d.measureText(h).width,n>=e&&(A>=c.length&&c.push(k()),n=c[A],n.text=p,n.width=d.measureText(p).width,A++,h=a[B],g||" "!==h||(h="")));h.length&&
(A>=c.length&&c.push(k()),n=c[A],n.text=h,n.width=d.measureText(h).width,A++);for(B=A;B<c.length;B++)b.push(c[B]);c.length=A};d.B=new function(){};d.M=new function(){};d.Ra=new function(){}})();function qc(k){this.b=k}
(function(){var k=qc.prototype;k.ba=function(d){this.Ja=d;this.b=d.b};var h=k.ba.prototype;h.K=function(){this.J||(this.T=new Image,this.T.Rl=this.hl,this.b.so(this.T,this.gl),this.aa=this.pattern=null)};h.ti=function(){this.J||(this.aa=null)};h.zk=function(){if(!this.J&&this.j.length){this.aa||(this.aa=this.b.G.Ig(this.T,!0,this.b.ka,this.Pi));var d,h;d=0;for(h=this.j.length;d<h;d++)this.j[d].aa=this.aa}};h.bi=function(){this.J||this.aa||!this.b.G||(this.aa=this.b.G.Ig(this.T,!0,this.b.ka,this.Pi))};
h.ol=function(){this.J||this.j.length||!this.aa||(this.b.G.deleteTexture(this.aa),this.aa=null)};h.Mk=function(d){d.drawImage(this.T,0,0)};k.U=function(d){this.type=d;this.b=d.b};h=k.U.prototype;h.K=function(){this.visible=0===this.D[0];this.ff=new T(0,0,0,0);this.yp=!1;this.T=this.type.T;this.b.G?(this.type.bi(),this.aa=this.type.aa):(this.type.pattern||(this.type.pattern=this.b.xa.createPattern(this.type.T,"repeat")),this.pattern=this.type.pattern)};h.hd=function(){this.yp=!1;this.T=this.type.T};
h.cf=function(){this.b.G&&this.yp&&this.aa&&(this.b.G.deleteTexture(this.aa),this.aa=null)};h.Hc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var h=this.x,k=this.y;this.b.$c&&(h=Math.round(h),k=Math.round(k));var b=-(this.Zb*this.width),a=-(this.$b*this.height),c=b%this.T.width,u=a%this.T.height;0>c&&(c+=this.T.width);0>u&&(u+=this.T.height);d.translate(h,k);d.rotate(this.k);d.translate(c,u);d.fillRect(b-c,a-u,this.width,this.height);d.restore()};h.bj=function(d){this.Jb(d)};
h.Jb=function(d){d.gc(this.aa);d.jf(this.opacity);var h=this.ff;h.right=this.width/this.T.width;h.bottom=this.height/this.T.height;var k=this.Eb;if(this.b.$c){var b=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;d.Kd(k.ob+b,k.pb+a,k.Nb+b,k.Ob+a,k.Fb+b,k.Gb+a,k.Cb+b,k.Db+a,h)}else d.Kd(k.ob,k.pb,k.Nb,k.Ob,k.Fb,k.Gb,k.Cb,k.Db,h)};k.B=new function(){};k.M=new function(){};k.Ra=new function(){}})();function rc(k){this.b=k}
(function(){function k(){}var h=rc.prototype;h.ba=function(d){this.behavior=d;this.b=d.b};h.ba.prototype.K=function(){};h.U=function(d,h){this.type=d;this.behavior=d.behavior;this.d=h;this.b=d.b};var d=h.U.prototype;d.K=function(){var d=this.D[0];this.Fa=this.D[1];this.cb=this.D[2];this.ht=0!==this.D[3];this.Rn=0!==this.D[4];this.q=Math.cos(this.d.k)*d;this.A=Math.sin(this.d.k)*d;this.ik=this.d.x;this.jk=this.d.y;this.Vc=this.d.k;this.ll=0;this.enabled=0!==this.D[5]};d.gb=function(){return{acc:this.Fa,
g:this.cb,dx:this.q,dy:this.A,lx:this.ik,ly:this.jk,lka:this.Vc,t:this.ll,e:this.enabled}};d.tb=function(d){this.Fa=d.acc;this.cb=d.g;this.q=d.dx;this.A=d.dy;this.ik=d.lx;this.jk=d.ly;this.Vc=d.lka;this.ll=d.t;this.enabled=d.e};d.Aa=function(){if(this.enabled){var d=this.b.Pe(this.d),h,b;this.d.k!==this.Vc&&(this.Rn&&(h=Pa(0,0,this.q,this.A),this.q=Math.cos(this.d.k)*h,this.A=Math.sin(this.d.k)*h),this.Vc=this.d.k);0!==this.Fa&&(h=Pa(0,0,this.q,this.A),b=0===this.q&&0===this.A?this.d.k:Ka(0,0,this.q,
this.A),h+=this.Fa*d,0>h&&(h=0),this.q=Math.cos(b)*h,this.A=Math.sin(b)*h);0!==this.cb&&(this.A+=this.cb*d);this.ik=this.d.x;this.jk=this.d.y;if(0!==this.q||0!==this.A)if(this.d.x+=this.q*d,this.d.y+=this.A*d,this.ll+=Pa(0,0,this.q*d,this.A*d),this.Rn&&(this.d.k=Ka(0,0,this.q,this.A),this.d.C(),this.Vc=this.d.k),this.d.C(),this.ht&&(h=this.b.Ta(this.d)))this.b.Ld(this.d,h),h=Pa(0,0,this.q,this.A),b=this.b.kt(this.d,this.ik,this.jk),this.q=Math.cos(b)*h,this.A=Math.sin(b)*h,this.d.x+=this.q*d,this.d.y+=
this.A*d,this.d.C(),this.Rn&&(this.Vc=this.d.k=b,this.d.C()),this.b.Mc(this.d,this.q/h,this.A/h,Math.max(2.5*h*d,30))||this.b.Dn(this.d,100)}};h.B=new function(){};k.prototype.Eo=function(d){var h=Ka(0,0,this.q,this.A);this.q=Math.cos(h)*d;this.A=Math.sin(h)*d};k.prototype.Bl=function(d){this.cb=d};k.prototype.gg=function(d){this.enabled=1===d};h.M=new k;h.Ra=new function(){}})();function sc(k){this.b=k}
(function(){function k(){}function h(){}var d=sc.prototype;d.ba=function(d){this.behavior=d;this.b=d.b};d.ba.prototype.K=function(){};d.U=function(d,b){this.type=d;this.behavior=d.behavior;this.d=b;this.b=d.b;this.te=this.re=this.Yk=this.Zk=this.fe=this.pe=this.je=this.zj=this.ql=!1;this.Xm=this.Wm=this.Vm=this.Ym=-1;this.A=this.q=0};var p=d.U.prototype;p.K=function(){this.wc=this.D[0];this.Fa=this.D[1];this.Hb=this.D[2];this.Zl=this.D[3];this.Fl=this.D[4];this.Xl=1===this.D[5];this.enabled=0!==this.D[6];
this.Xl&&!this.b.Ua&&(jQuery(document).keydown(function(d){return function(b){d.ri(b)}}(this)),jQuery(document).keyup(function(d){return function(b){d.si(b)}}(this)))};p.gb=function(){return{dx:this.q,dy:this.A,enabled:this.enabled,maxspeed:this.wc,acc:this.Fa,dec:this.Hb,ignoreInput:this.fe}};p.tb=function(d){this.q=d.dx;this.A=d.dy;this.enabled=d.enabled;this.wc=d.maxspeed;this.Fa=d.acc;this.Hb=d.dec;this.fe=d.ignoreInput;this.te=this.re=this.Yk=this.Zk=this.pe=this.je=this.zj=this.ql=!1;this.Xm=
this.Wm=this.Vm=this.Ym=-1};p.ri=function(d){var b=this.b.ed;switch(d.which){case 37:d.preventDefault();this.Wm<b&&(this.je=!0);break;case 38:d.preventDefault();this.Ym<b&&(this.ql=!0);break;case 39:d.preventDefault();this.Xm<b&&(this.pe=!0);break;case 40:d.preventDefault(),this.Vm<b&&(this.zj=!0)}};p.si=function(d){var b=this.b.ed;switch(d.which){case 37:d.preventDefault();this.je=!1;this.Wm=b;break;case 38:d.preventDefault();this.ql=!1;this.Ym=b;break;case 39:d.preventDefault();this.pe=!1;this.Xm=
b;break;case 40:d.preventDefault(),this.zj=!1,this.Vm=b}};p.Aa=function(){var d=this.b.Pe(this.d),b=this.je||this.re,a=this.pe||this.te,c=this.ql||this.Zk,h=this.zj||this.Yk;this.Yk=this.Zk=this.te=this.re=!1;if(this.enabled){var e=this.b.Ta(this.d);if(e&&(this.b.Ld(this.d,e),!this.b.Dn(this.d)))return;this.fe&&(h=c=a=b=!1);0===this.Zl?a=b=!1:1===this.Zl&&(h=c=!1);2===this.Zl&&(c||h)&&(a=b=!1);b==a&&(0>this.q?(this.q+=this.Hb*d,0<this.q&&(this.q=0)):0<this.q&&(this.q-=this.Hb*d,0>this.q&&(this.q=
0)));c==h&&(0>this.A?(this.A+=this.Hb*d,0<this.A&&(this.A=0)):0<this.A&&(this.A-=this.Hb*d,0>this.A&&(this.A=0)));b&&!a&&(this.q=0<this.q?this.q-(this.Fa+this.Hb)*d:this.q-this.Fa*d);a&&!b&&(this.q=0>this.q?this.q+(this.Fa+this.Hb)*d:this.q+this.Fa*d);c&&!h&&(this.A=0<this.A?this.A-(this.Fa+this.Hb)*d:this.A-this.Fa*d);h&&!c&&(this.A=0>this.A?this.A+(this.Fa+this.Hb)*d:this.A+this.Fa*d);if(0!==this.q||0!==this.A){Math.sqrt(this.q*this.q+this.A*this.A)>this.wc&&(e=Math.atan2(this.A,this.q),this.q=
this.wc*Math.cos(e),this.A=this.wc*Math.sin(e));a=this.d.x;c=this.d.y;b=this.d.k;this.d.x+=this.q*d;this.d.C();if(e=this.b.Ta(this.d))this.d.x=a,this.q=0,this.d.C(),this.b.Ld(this.d,e);this.d.y+=this.A*d;this.d.C();if(e=this.b.Ta(this.d))this.d.y=c,this.A=0,this.d.C(),this.b.Ld(this.d,e);d=hb(this.q);e=hb(this.A);if(0!==d||0!==e)1===this.Fl?this.d.k=Ia(90*Math.round(Fa(Math.atan2(e,d))/90)):2===this.Fl?this.d.k=Ia(45*Math.round(Fa(Math.atan2(e,d))/45)):3===this.Fl&&(this.d.k=Math.atan2(e,d));this.d.C();
this.d.k!=b&&(e=this.b.Ta(this.d))&&(this.d.k=b,this.d.C(),this.b.Ld(this.d,e))}}};d.B=new function(){};k.prototype.Do=function(d){this.fe=d};k.prototype.Eo=function(d){0>d&&(d=0);d>this.wc&&(d=this.wc);var b=Math.atan2(this.A,this.q);this.q=d*Math.cos(b);this.A=d*Math.sin(b)};k.prototype.Ho=function(d){switch(d){case 0:this.re=!0;break;case 1:this.te=!0;break;case 2:this.Zk=!0;break;case 3:this.Yk=!0}};k.prototype.gg=function(d){this.enabled=1===d};k.prototype.Fo=function(d){this.q=d};k.prototype.Go=
function(d){this.A=d};d.M=new k;h.prototype.Io=function(d){d.L(this.A)};d.Ra=new h})();function uc(k){this.b=k}
(function(){function k(){}function h(){}var d=uc.prototype;d.ba=function(d){this.behavior=d;this.b=d.b};d.ba.prototype.K=function(){};d.U=function(d,b){this.type=d;this.behavior=d.behavior;this.d=b;this.b=d.b};var p=d.U.prototype;p.K=function(){var d=1===this.D[0];this.xh=this.D[1];this.Ui=this.D[2];this.Ej=this.D[3];this.yt=this.D[4];this.Bc=d?0:3;this.Tb?this.bd.reset():this.bd=new ab;this.Rf=this.d.opacity?this.d.opacity:1;d&&(0===this.xh?(this.Bc=1,0===this.Ui&&(this.Bc=2)):(this.d.opacity=0,
this.b.la=!0))};p.gb=function(){return{fit:this.xh,wt:this.Ui,fot:this.Ej,s:this.Bc,st:this.bd.da,mo:this.Rf}};p.tb=function(d){this.xh=d.fit;this.Ui=d.wt;this.Ej=d.fot;this.Bc=d.s;this.bd.reset();this.bd.da=d.st;this.Rf=d.mo};p.Aa=function(){this.bd.add(this.b.Pe(this.d));0===this.Bc&&(this.d.opacity=this.bd.da/this.xh*this.Rf,this.b.la=!0,this.d.opacity>=this.Rf&&(this.d.opacity=this.Rf,this.Bc=1,this.bd.reset(),this.b.trigger(uc.prototype.B.rs,this.d)));1===this.Bc&&this.bd.da>=this.Ui&&(this.Bc=
2,this.bd.reset(),this.b.trigger(uc.prototype.B.Gs,this.d));2===this.Bc&&0!==this.Ej&&(this.d.opacity=this.Rf-this.bd.da/this.Ej*this.Rf,this.b.la=!0,0>this.d.opacity&&(this.d.opacity=0,this.Bc=3,this.bd.reset(),this.b.trigger(uc.prototype.B.ts,this.d),1===this.yt&&this.b.Bd(this.d)))};p.Lt=function(){this.Bc=0;this.bd.reset();0===this.xh?(this.Bc=1,0===this.Ui&&(this.Bc=2)):(this.d.opacity=0,this.b.la=!0)};k.prototype.ts=function(){return!0};k.prototype.rs=function(){return!0};k.prototype.Gs=function(){return!0};
d.B=new k;h.prototype.Rs=function(){3===this.Bc&&this.Lt()};d.M=new h;d.Ra=new function(){}})();function vc(k){this.b=k}
(function(){var k=vc.prototype;k.ba=function(d){this.behavior=d;this.b=d.b};k.ba.prototype.K=function(){};k.U=function(d,h){this.type=d;this.behavior=d.behavior;this.d=h;this.b=d.b};var h=k.U.prototype;h.K=function(){this.yb=null;this.Gk=-1;this.mode=this.Vc=this.ao=this.ni=this.ef=this.Fk=0;var d=this;this.Tb||(this.mi=function(h){d.qi(h)});this.b.Yi(this.mi)};h.gb=function(){return{uid:this.yb?this.yb.uid:-1,pa:this.Fk,pd:this.ef,msa:this.ni,tsa:this.ao,lka:this.Vc,m:this.mode}};h.tb=function(d){this.Gk=
d.uid;this.Fk=d.pa;this.ef=d.pd;this.ni=d.msa;this.ao=d.tsa;this.Vc=d.lka;this.mode=d.m};h.hd=function(){-1===this.Gk?this.yb=null:this.yb=this.b.Cf(this.Gk);this.Gk=-1};h.qi=function(d){this.yb==d&&(this.yb=null)};h.cf=function(){this.yb=null;this.b.Sq(this.mi)};h.Aa=function(){};h.jl=function(){if(this.yb){this.Vc!==this.d.k&&(this.ni=X(this.ni+(this.d.k-this.Vc)));var d=this.d.x,h=this.d.y;if(3===this.mode||4===this.mode){var k=Pa(this.d.x,this.d.y,this.yb.x,this.yb.y);if(k>this.ef||4===this.mode&&
k<this.ef)h=Ka(this.yb.x,this.yb.y,this.d.x,this.d.y),d=this.yb.x+Math.cos(h)*this.ef,h=this.yb.y+Math.sin(h)*this.ef}else d=this.yb.x+Math.cos(this.yb.k+this.Fk)*this.ef,h=this.yb.y+Math.sin(this.yb.k+this.Fk)*this.ef;this.Vc=k=X(this.ni+(this.yb.k-this.ao));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.d.x===d&&this.d.y===h||(this.d.x=d,this.d.y=h,this.d.C());0!==this.mode&&2!==this.mode||this.d.k===k||(this.d.k=k,this.d.C())}};k.B=new function(){};k.M=new function(){};k.Ra=new function(){}})();
function wc(k){this.b=k}
(function(){function k(){}function h(){}function d(){}var p=wc.prototype;p.ba=function(b){this.behavior=b;this.b=b.b};p.ba.prototype.K=function(){};p.U=function(b,a){this.type=b;this.behavior=b.behavior;this.d=a;this.b=b.b;this.Ki=this.te=this.re=this.fe=this.ph=this.uh=this.Gg=this.Sh=this.pe=this.je=!1;this.Qb=null;this.bn=-1;this.Jf=this.If=0;this.Kj=!1;this.qg=this.kd=0;this.Ij=!0;this.A=this.q=0};var r=p.U.prototype;r.ko=function(){this.$a=Math.cos(this.tg);this.ab=Math.sin(this.tg);this.Xf=
Math.cos(this.tg-Math.PI/2);this.Yf=Math.sin(this.tg-Math.PI/2);this.$a=hb(this.$a);this.ab=hb(this.ab);this.Xf=hb(this.Xf);this.Yf=hb(this.Yf);this.Nj=this.cb;0>this.cb&&(this.$a*=-1,this.ab*=-1,this.cb=Math.abs(this.cb))};r.K=function(){this.wc=this.D[0];this.Fa=this.D[1];this.Hb=this.D[2];this.Rh=this.D[3];this.Nj=this.cb=this.D[4];this.uk=this.D[5];this.cm=0!==this.D[6];this.Tm=this.D[7]/1E3;this.Xl=1===this.D[8];this.enabled=0!==this.D[9];this.hh=!1;this.ih=this.b.of(this.d);this.cn=-1;this.$f=
0;this.tg=W(90);this.ko();var b=this;this.Xl&&!this.b.Ua&&(jQuery(document).keydown(function(a){b.ri(a)}),jQuery(document).keyup(function(a){b.si(a)}));this.Tb||(this.mi=function(a){b.qi(a)});this.b.Yi(this.mi);this.d.ea.isPlatformBehavior=!0};r.gb=function(){return{ii:this.fe,lfx:this.If,lfy:this.Jf,lfo:this.Qb?this.Qb.uid:-1,am:this.kd,en:this.enabled,fall:this.qg,ft:this.Ij,dx:this.q,dy:this.A,ms:this.wc,acc:this.Fa,dec:this.Hb,js:this.Rh,g:this.cb,g1:this.Nj,mf:this.uk,wof:this.hh,woj:this.ih?
this.ih.uid:-1,ga:this.tg,edj:this.cm,cdj:this.ph,dj:this.uh,sus:this.Tm}};r.tb=function(b){this.fe=b.ii;this.If=b.lfx;this.Jf=b.lfy;this.bn=b.lfo;this.kd=b.am;this.enabled=b.en;this.qg=b.fall;this.Ij=b.ft;this.q=b.dx;this.A=b.dy;this.wc=b.ms;this.Fa=b.acc;this.Hb=b.dec;this.Rh=b.js;this.cb=b.g;this.Nj=b.g1;this.uk=b.mf;this.hh=b.wof;this.cn=b.woj;this.tg=b.ga;this.cm=b.edj;this.ph=b.cdj;this.uh=b.dj;this.Tm=b.sus;this.Ki=this.te=this.re=this.Gg=this.Sh=this.pe=this.je=!1;this.$f=0;this.ko()};r.hd=
function(){-1===this.bn?this.Qb=null:this.Qb=this.b.Cf(this.bn);-1===this.cn?this.ih=null:this.ih=this.b.Cf(this.cn)};r.qi=function(b){this.Qb==b&&(this.Qb=null)};r.cf=function(){this.Qb=null;this.b.Sq(this.mi)};r.ri=function(b){switch(b.which){case 38:b.preventDefault();this.Sh=!0;break;case 37:b.preventDefault();this.je=!0;break;case 39:b.preventDefault(),this.pe=!0}};r.si=function(b){switch(b.which){case 38:b.preventDefault();this.Gg=this.Sh=!1;break;case 37:b.preventDefault();this.je=!1;break;
case 39:b.preventDefault(),this.pe=!1}};r.bj=function(){return 0>this.cb?-1:1};r.Hp=function(){var b=null,a=null,c,d;c=this.d.x;d=this.d.y;this.d.x+=this.$a;this.d.y+=this.ab;this.d.C();if(this.Qb&&this.b.Dc(this.d,this.Qb))return this.d.x=c,this.d.y=d,this.d.C(),this.Qb;(b=this.b.Ta(this.d))||0!==this.qg||(a=this.b.of(this.d,!0));this.d.x=c;this.d.y=d;this.d.C();if(b){if(this.b.Dc(this.d,b))return null;this.Kj=!1;return b}if(a&&a.length){d=b=0;for(c=a.length;b<c;b++)a[d]=a[b],this.b.Dc(this.d,a[b])||
d++;if(1<=d)return this.Kj=!0,a[0]}return null};r.Aa=function(){};r.Nq=function(){var b=this.b.Pe(this.d),a,c,d,e,g,h,k,n,p;this.Sh||this.Ki||(this.Gg=!1);var r=this.je||this.re;d=this.pe||this.te;var z=(e=this.Sh||this.Ki)&&!this.Gg;this.Ki=this.te=this.re=!1;if(this.enabled){this.fe&&(z=e=d=r=!1);e||(this.$f=0);n=this.Qb;p=!1;this.Ij&&((this.b.Ta(this.d)||this.b.of(this.d))&&this.b.Mc(this.d,-this.$a,-this.ab,4,!0),this.Ij=!1);!n||0!==this.A||n.y===this.Jf&&n.x===this.If||(a=n.x-this.If,c=n.y-this.Jf,
this.d.x+=a,this.d.y+=c,this.d.C(),this.If=n.x,this.Jf=n.y,p=!0,this.b.Ta(this.d)&&this.b.Mc(this.d,-a,-c,2.5*Math.sqrt(a*a+c*c)));var m=this.Hp();if(c=this.b.Ta(this.d))if(this.d.ea.inputPredicted)this.b.Mc(this.d,-this.$a,-this.ab,10,!1);else if(this.b.Dn(this.d,Math.max(this.d.width,this.d.height)/2))this.b.Ld(this.d,c);else return;m?(this.ph=this.uh=!1,0<this.A&&(this.hh||(this.b.Cn(this.d,-this.$a,-this.ab,m),this.hh=!0),this.A=0),n!=m)?(this.Qb=m,this.If=m.x,this.Jf=m.y,this.b.Ld(this.d,m)):
p&&(c=this.b.Ta(this.d))&&(this.b.Ld(this.d,c),0!==a&&(0<a?this.b.Mc(this.d,-this.Xf,-this.Yf):this.b.Mc(this.d,this.Xf,this.Yf)),this.b.Mc(this.d,-this.$a,-this.ab)):e||(this.ph=!0);if(m&&z||!m&&this.cm&&e&&this.ph&&!this.uh)n=this.d.x,p=this.d.y,this.d.x-=this.$a,this.d.y-=this.ab,this.d.C(),this.b.Ta(this.d)?z=!1:(this.$f=this.Tm,this.b.trigger(wc.prototype.B.vs,this.d),this.kd=2,this.A=-this.Rh,z=!0,m?this.Gg=!0:this.uh=!0),this.d.x=n,this.d.y=p,this.d.C();m||(e&&0<this.$f?(this.A=-this.Rh,this.$f-=
b):(this.Qb=null,this.A+=this.cb*b,this.A>this.uk&&(this.A=this.uk)),z&&(this.Gg=!0));this.hh=!!m;r==d&&(0>this.q?(this.q+=this.Hb*b,0<this.q&&(this.q=0)):0<this.q&&(this.q-=this.Hb*b,0>this.q&&(this.q=0)));r&&!d&&(this.q=0<this.q?this.q-(this.Fa+this.Hb)*b:this.q-this.Fa*b);d&&!r&&(this.q=0>this.q?this.q+(this.Fa+this.Hb)*b:this.q+this.Fa*b);this.q>this.wc?this.q=this.wc:this.q<-this.wc&&(this.q=-this.wc);r=!1;0!==this.q&&(n=this.d.x,p=this.d.y,a=this.q*b*this.Xf,c=this.q*b*this.Yf,this.d.x+=this.Xf*
(1<this.q?1:-1)-this.$a,this.d.y+=this.Yf*(1<this.q?1:-1)-this.ab,this.d.C(),e=!1,g=this.b.Ta(this.d),this.d.x=n+a,this.d.y=p+c,this.d.C(),d=this.b.Ta(this.d),!d&&m&&(d=this.b.of(this.d))&&(this.d.x=n,this.d.y=p,this.d.C(),this.b.Dc(this.d,d)?(d=null,e=!1):e=!0,this.d.x=n+a,this.d.y=p+c,this.d.C()),d?(a=Math.abs(this.q*b)+2,g||!this.b.Mc(this.d,-this.$a,-this.ab,a,e,d))?(this.b.Ld(this.d,d),a=Math.max(Math.abs(this.q*b*2.5),30),this.b.Mc(this.d,this.Xf*(0>this.q?1:-1),this.Yf*(0>this.q?1:-1),a,!1)?
!m||e||this.Kj||(n=this.d.x,p=this.d.y,this.d.x+=this.$a,this.d.y+=this.ab,this.b.Ta(this.d)?this.b.Mc(this.d,-this.$a,-this.ab,3,!1)||(this.d.x=n,this.d.y=p,this.d.C()):(this.d.x=n,this.d.y=p,this.d.C())):(this.d.x=n,this.d.y=p,this.d.C()),e||(this.q=0)):!g&&!z&&Math.abs(this.A)<Math.abs(this.Rh/4)&&(this.A=0,m||(r=!0)):(n=this.Hp(),m&&!n?(c=Math.ceil(Math.abs(this.q*b))+2,n=this.d.x,p=this.d.y,this.d.x+=this.$a*c,this.d.y+=this.ab*c,this.d.C(),this.b.Ta(this.d)||this.b.of(this.d)?this.b.Mc(this.d,
-this.$a,-this.ab,c+2,!0):(this.d.x=n,this.d.y=p,this.d.C())):n&&0===this.A&&this.b.Cn(this.d,-this.$a,-this.ab,n)));if(0!==this.A){n=this.d.x;p=this.d.y;this.d.x+=this.A*b*this.$a;this.d.y+=this.A*b*this.ab;a=this.d.x;d=this.d.y;this.d.C();c=this.b.Ta(this.d);e=!1;if(!c&&0<this.A&&!m){if((e=0<this.qg?null:this.b.of(this.d,!0))&&e.length){if(this.ih){this.d.x=n;this.d.y=p;this.d.C();k=g=0;for(h=e.length;g<h;g++)e[k]=e[g],this.b.Dc(this.d,e[g])||k++;e.length=k;this.d.x=a;this.d.y=d;this.d.C()}1<=e.length&&
(c=e[0])}e=!!c}c&&(this.b.Ld(this.d,c),this.$f=0,a=e?Math.abs(this.A*b*2.5+10):Math.max(Math.abs(this.A*b*2.5+10),30),this.b.Mc(this.d,this.$a*(0>this.A?1:-1),this.ab*(0>this.A?1:-1),a,e,c)?(this.Qb=c,this.If=c.x,this.Jf=c.y,(this.Kj=e)&&(r=!0),this.A=0):(this.d.x=n,this.d.y=p,this.d.C(),this.hh=!0,e||(this.A=0)))}3!==this.kd&&0<this.A&&!m&&(this.b.trigger(wc.prototype.B.us,this.d),this.kd=3);if(m||r)3===this.kd||r||z&&0===this.A?(this.b.trigger(wc.prototype.B.zs,this.d),this.kd=0===this.q&&0===this.A?
0:1):(0!==this.kd&&0===this.q&&0===this.A&&(this.b.trigger(wc.prototype.B.Fs,this.d),this.kd=0),1===this.kd||0===this.q&&0===this.A||z||(this.b.trigger(wc.prototype.B.Ds,this.d),this.kd=1));0<this.qg&&this.qg--;this.ih=this.b.of(this.d)}};k.prototype.vs=function(){return!0};k.prototype.us=function(){return!0};k.prototype.Fs=function(){return!0};k.prototype.Ds=function(){return!0};k.prototype.zs=function(){return!0};p.B=new k;h.prototype.Do=function(b){this.fe=b};h.prototype.Bl=function(b){this.Nj!==
b&&(this.cb=b,this.ko(),this.b.Ta(this.d)&&(this.b.Mc(this.d,this.$a,this.ab,10),this.d.x+=2*this.$a,this.d.y+=2*this.ab,this.d.C()),this.Qb=null)};h.prototype.Ho=function(b){switch(b){case 0:this.re=!0;break;case 1:this.te=!0;break;case 2:this.Ki=!0}};h.prototype.Fo=function(b){this.q=b};h.prototype.Go=function(b){this.A=b};h.prototype.gg=function(b){this.enabled!==(1===b)&&(this.enabled=1===b,this.enabled||(this.Qb=null))};p.M=new h;d.prototype.Io=function(b){b.L(this.A)};p.Ra=new d})();
function xc(k){this.b=k}
(function(){var k=xc.prototype;k.ba=function(b){this.behavior=b;this.b=b.b};k.ba.prototype.K=function(){};k.U=function(b,a){this.type=b;this.behavior=b.behavior;this.d=a;this.b=b.b;this.ib=0};var h=k.U.prototype,d=2*Math.PI,p=Math.PI/2,r=3*Math.PI/2;h.K=function(){this.Ka=1===this.D[0];this.li=this.D[1];this.vo=this.D[2];this.me=this.D[3];this.me+=Math.random()*this.D[4];0===this.me?this.ib=0:(this.ib=this.D[5]/this.me*d,this.ib+=Math.random()*this.D[6]/this.me*d);this.cc=this.D[7];this.cc+=Math.random()*
this.D[8];this.Ci=this.Ff=this.fa=0;this.init()};h.gb=function(){return{i:this.ib,a:this.Ka,mv:this.li,w:this.vo,p:this.me,mag:this.cc,iv:this.fa,iv2:this.Ff,r:this.Ci,lkv:this.tc,lkv2:this.Th}};h.tb=function(b){this.ib=b.i;this.Ka=b.a;this.li=b.mv;this.vo=b.w;this.me=b.p;this.cc=b.mag;this.fa=b.iv;this.Ff=b.iv2||0;this.Ci=b.r;this.tc=b.lkv;this.Th=b.lkv2||0};h.init=function(){switch(this.li){case 0:this.fa=this.d.x;break;case 1:this.fa=this.d.y;break;case 2:this.fa=this.d.width;this.Ci=this.d.height/
this.d.width;break;case 3:this.fa=this.d.width;break;case 4:this.fa=this.d.height;break;case 5:this.fa=this.d.k;this.cc=W(this.cc);break;case 6:this.fa=this.d.opacity;break;case 7:this.fa=0;break;case 8:this.fa=this.d.x,this.Ff=this.d.y}this.tc=this.fa;this.Th=this.Ff};h.Ae=function(b){b=b%d;switch(this.vo){case 0:return Math.sin(b);case 1:return b<=p?b/p:b<=r?1-2*(b-p)/Math.PI:(b-r)/p-1;case 2:return 2*b/d-1;case 3:return-2*b/d+1;case 4:return b<Math.PI?-1:1}return 0};h.Aa=function(){var b=this.b.Pe(this.d);
if(this.Ka&&0!==b){0===this.me?this.ib=0:(this.ib+=b/this.me*d,this.ib=this.ib%d);switch(this.li){case 0:this.d.x!==this.tc&&(this.fa+=this.d.x-this.tc);this.d.x=this.fa+this.Ae(this.ib)*this.cc;this.tc=this.d.x;break;case 1:this.d.y!==this.tc&&(this.fa+=this.d.y-this.tc);this.d.y=this.fa+this.Ae(this.ib)*this.cc;this.tc=this.d.y;break;case 2:this.d.width=this.fa+this.Ae(this.ib)*this.cc;this.d.height=this.d.width*this.Ci;break;case 3:this.d.width=this.fa+this.Ae(this.ib)*this.cc;break;case 4:this.d.height=
this.fa+this.Ae(this.ib)*this.cc;break;case 5:this.d.k!==this.tc&&(this.fa=X(this.fa+(this.d.k-this.tc)));this.d.k=X(this.fa+this.Ae(this.ib)*this.cc);this.tc=this.d.k;break;case 6:this.d.opacity=this.fa+this.Ae(this.ib)*this.cc/100;0>this.d.opacity?this.d.opacity=0:1<this.d.opacity&&(this.d.opacity=1);break;case 8:this.d.x!==this.tc&&(this.fa+=this.d.x-this.tc),this.d.y!==this.Th&&(this.Ff+=this.d.y-this.Th),this.d.x=this.fa+Math.cos(this.d.k)*this.Ae(this.ib)*this.cc,this.d.y=this.Ff+Math.sin(this.d.k)*
this.Ae(this.ib)*this.cc,this.tc=this.d.x,this.Th=this.d.y}this.d.C()}};h.zq=function(b,a){switch(this.li){case 2:this.fa*=a.width/b.width;this.Ci=a.height/a.width;break;case 3:this.fa*=a.width/b.width;break;case 4:this.fa*=a.height/b.height}};k.B=new function(){};k.M=new function(){};k.Ra=new function(){}})();function yc(k){this.b=k}
(function(){var k=yc.prototype;k.ba=function(h){this.behavior=h;this.b=h.b};k.ba.prototype.K=function(){};k.U=function(h,d){this.type=h;this.behavior=h.behavior;this.d=d;this.b=h.b};k=k.U.prototype;k.K=function(){};k.Aa=function(){this.d.Ba();var h=this.d.Ca,d=this.d.n.Va;(0>h.right||0>h.bottom||h.left>d.width||h.top>d.height)&&this.b.Bd(this.d)}})();function zc(k){this.b=k;this.Vn=this.Xk=this.Ji=this.Un=0}
(function(){function k(){}var h=zc.prototype;h.ba=function(d){this.behavior=d;this.b=d.b};h.ba.prototype.K=function(){};h.U=function(d,h){this.type=d;this.behavior=d.behavior;this.d=h;this.b=d.b};var d=h.U.prototype;d.K=function(){this.enabled=0!==this.D[0]};d.gb=function(){return{smg:this.behavior.Un,ss:this.behavior.Ji,se:this.behavior.Xk,smd:this.behavior.Vn}};d.tb=function(d){this.behavior.Un=d.smg;this.behavior.Ji=d.ss;this.behavior.Xk=d.se;this.behavior.Vn=d.smd};d.Aa=function(){};d.jl=function(){if(this.enabled){var d=
this.behavior.vk.ye(),h=0,b=0,a,c,k,e=0;a=0;for(c=d.length;a<c;a++){a:{k=d[a];for(var g=void 0,l=void 0,t=void 0,g=0,l=k.S.length;g<l;++g)if(t=k.S[g],t.behavior instanceof zc){k=t;break a}k=null}k&&k.enabled&&(h+=d[a].x,b+=d[a].y,++e)}d=this.d.n.Va;c=this.b.rc.da;k=a=0;c>=this.behavior.Ji&&c<this.behavior.Xk&&(a=this.behavior.Un*Math.min(this.b.ag,1),0===this.behavior.Vn&&(a*=1-(c-this.behavior.Ji)/(this.behavior.Xk-this.behavior.Ji)),c=Math.random()*Math.PI*2,k=Math.random()*a,a=Math.cos(c)*k,k*=
Math.sin(c));d.Pn(h/e+a);d.Qn(b/e+k)}};k.prototype.gg=function(d){this.enabled=0!==d};h.M=new k})();function kc(k){this.b=k}(function(){function k(){}var h=kc.prototype;h.ba=function(d){this.behavior=d;this.b=d.b};h.ba.prototype.K=function(){};h.U=function(d,h){this.type=d;this.behavior=d.behavior;this.d=h;this.b=d.b};var d=h.U.prototype;d.K=function(){this.d.ea.solidEnabled=0!==this.D[0]};d.Aa=function(){};h.B=new function(){};k.prototype.gg=function(d){this.d.ea.solidEnabled=!!d};h.M=new k})();
function Ac(k){this.b=k}
(function(){var k=Ac.prototype;k.ba=function(h){this.behavior=h;this.b=h.b};k.ba.prototype.K=function(){};k.U=function(h,d){this.type=h;this.behavior=h.behavior;this.d=d;this.b=h.b};k=k.U.prototype;k.K=function(){this.mode=this.D[0]};k.Aa=function(){var h=this.d;h.Ba();var d=h.Ca,k=h.n,r=k.Va,b=0,a=0,c=0,u=0;0===this.mode?(a=r.width,u=r.height):(b=k.Ha,a=k.Pa,c=k.Ia,u=k.Oa);d.right<b?(h.x=a-1+(h.x-d.left),h.C()):d.left>a?(h.x=b+1-(d.right-h.x),h.C()):d.bottom<c?(h.y=u-1+(h.y-d.top),h.C()):d.top>u&&
(h.y=c+1-(d.bottom-h.y),h.C())}})();
function jc(){return[mc,nc,oc,Z,pc,qc,lc,wc,kc,zc,uc,sc,Ac,xc,rc,vc,yc,Y.prototype.B.as,Z.prototype.B.Ao,Y.prototype.M.Is,wc.prototype.M.Do,Y.prototype.M.Us,Z.prototype.B.yo,Z.prototype.M.Js,mc.prototype.B.Bo,Z.prototype.M.Ns,Z.prototype.B.Rr,Y.prototype.M.Vr,Z.prototype.Ra.Jo,Z.prototype.Ra.Ko,Z.prototype.M.Ls,Z.prototype.B.cs,rc.prototype.M.Eo,mc.prototype.B.bs,wc.prototype.M.Ho,Z.prototype.B.Ur,sc.prototype.M.Fo,Z.prototype.B.Tr,Z.prototype.M.Ps,Y.prototype.Ra.zv,Z.prototype.B.qs,uc.prototype.M.Rs,
lc.prototype.M.Play,kc.prototype.M.gg,wc.prototype.M.gg,Y.prototype.M.gs,lc.prototype.M.Ss,Y.prototype.M.Yr,Z.prototype.B.Vi,Z.prototype.M.Ks,Z.prototype.M.Wr,wc.prototype.M.Bl,wc.prototype.M.Go,wc.prototype.Ra.Io,Z.prototype.M.Qs,nc.prototype.B.zl,Y.prototype.M.Ms,Y.prototype.B.Sr]};