-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathc2runtime.js
More file actions
403 lines (403 loc) · 193 KB
/
Copy pathc2runtime.js
File metadata and controls
403 lines (403 loc) · 193 KB
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
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ea,ga,ia,x,ja,ka,la,G,ma,na,oa,pa,qa,ra,N,sa,ta,O,ua,va,ya,za,R,U,Aa,Ba,Ca,Da,X,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(a,b,c,f){this.set(a,b,c,f)}function g(){this.rb=this.qb=this.ub=this.tb=this.Bb=this.Ab=this.$a=this.Za=0}function p(a,b,c,f){a<b?c<f?(B=a<c?a:c,H=b>f?b:f):(B=a<f?a:f,H=b>c?b:c):c<f?(B=b<c?b:c,H=a>f?a:f):(B=b<f?b:f,H=a>c?a:c)}function m(){this.items=this.xd=null;this.Vg=0;M&&(this.xd=new Set);this.lg=[];this.fe=!0}function t(a){l[y++]=a}function q(){this.ca=this.Hj=this.y=this.ek=0}function r(a){this.na=[];this.Zh=this.ai=this.bi=this.$h=0;this.Eh(a)}function c(a,b){this.Qa=
a;this.ab=b;this.cells={}}function b(a,b){this.Qa=a;this.ab=b;this.cells={}}function e(a,b,c){var f;return F.length?(f=F.pop(),f.Qk=a,f.x=b,f.y=c,f):new ea(a,b,c)}function a(a,b,c){this.Qk=a;this.x=b;this.y=c;this.fb=new ga}function f(a,b,c){var f;return ca.length?(f=ca.pop(),f.Qk=a,f.x=b,f.y=c,f):new ia(a,b,c)}function h(a,b,c){this.Qk=a;this.x=b;this.y=c;this.fb=[];this.Of=!0;this.vd=new ga;this.pg=!1}function k(a,b){return a.hd-b.hd}x=function(a){window.console&&window.console.log&&window.console.log(a)};
ja=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ka=function(a){return"undefined"===typeof a};la=function(a){return"number"===typeof a};G=function(a){return"string"===typeof a};ma=function(a){return 0<a&&0===(a-1&a)};na=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,b){return a>b?a:b};qa=function(a,b){return a<b?a:b};ra=Math.PI;N=function(a){return 0<=a?a|0:(a|0)-1};sa=function(a){var b=
a|0;return b===a?b:b+1};ta=function(a,b,c,f,e,k,h,l){var n,w,z,d;a<c?(w=a,n=c):(w=c,n=a);e<h?(d=e,z=h):(d=h,z=e);if(n<d||w>z)return!1;b<f?(w=b,n=f):(w=f,n=b);k<l?(d=k,z=l):(d=l,z=k);if(n<d||w>z)return!1;n=e-a+h-c;w=k-b+l-f;a=c-a;b=f-b;e=h-e;k=l-k;l=oa(b*e-k*a);return oa(e*w-k*n)>l?!1:oa(a*w-b*n)<=l};d.prototype.set=function(a,b,c,f){this.left=a;this.top=b;this.right=c;this.bottom=f};d.prototype.Df=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};d.prototype.width=
function(){return this.right-this.left};d.prototype.height=function(){return this.bottom-this.top};d.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};d.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};d.prototype.Zn=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};d.prototype.$n=
function(a,b,c){return!(a.right+b<this.left||a.bottom+c<this.top||a.left+b>this.right||a.top+c>this.bottom)};d.prototype.Sa=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};d.prototype.yg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};O=d;g.prototype.fg=function(a){this.Za=a.left;this.$a=a.top;this.Ab=a.right;this.Bb=a.top;this.tb=a.right;this.ub=a.bottom;this.qb=a.left;this.rb=a.bottom};g.prototype.tp=function(a,
b){if(0===b)this.fg(a);else{var c=Math.sin(b),f=Math.cos(b),e=a.left*c,k=a.top*c,h=a.right*c,c=a.bottom*c,l=a.left*f,n=a.top*f,w=a.right*f,f=a.bottom*f;this.Za=l-k;this.$a=n+e;this.Ab=w-k;this.Bb=n+h;this.tb=w-c;this.ub=f+h;this.qb=l-c;this.rb=f+e}};g.prototype.offset=function(a,b){this.Za+=a;this.$a+=b;this.Ab+=a;this.Bb+=b;this.tb+=a;this.ub+=b;this.qb+=a;this.rb+=b;return this};var B=0,H=0;g.prototype.gn=function(a){p(this.Za,this.Ab,this.tb,this.qb);a.left=B;a.right=H;p(this.$a,this.Bb,this.ub,
this.rb);a.top=B;a.bottom=H};g.prototype.Sa=function(a,b){var c=this.Za,f=this.$a,e=this.Ab-c,k=this.Bb-f,h=this.tb-c,l=this.ub-f,n=a-c,w=b-f,z=e*e+k*k,d=e*h+k*l,k=e*n+k*w,v=h*h+l*l,u=h*n+l*w,y=1/(z*v-d*d),e=(v*k-d*u)*y,z=(z*u-d*k)*y;if(0<=e&&0<z&&1>e+z)return!0;e=this.qb-c;k=this.rb-f;z=e*e+k*k;d=e*h+k*l;k=e*n+k*w;y=1/(z*v-d*d);e=(v*k-d*u)*y;z=(z*u-d*k)*y;return 0<=e&&0<z&&1>e+z};g.prototype.Nb=function(a,b){if(b)switch(a){case 0:return this.Za;case 1:return this.Ab;case 2:return this.tb;case 3:return this.qb;
case 4:return this.Za;default:return this.Za}else switch(a){case 0:return this.$a;case 1:return this.Bb;case 2:return this.ub;case 3:return this.rb;case 4:return this.$a;default:return this.$a}};g.prototype.Jo=function(){return(this.Za+this.Ab+this.tb+this.qb)/4};g.prototype.Ko=function(){return(this.$a+this.Bb+this.ub+this.rb)/4};g.prototype.Ng=function(a,b,c,f){if(this.Sa(a,b)||this.Sa(c,f))return!0;var e,k,h,l,n;for(n=0;4>n;n++)if(e=this.Nb(n,!0),k=this.Nb(n,!1),h=this.Nb(n+1,!0),l=this.Nb(n+1,
!1),ta(a,b,c,f,e,k,h,l))return!0;return!1};g.prototype.Yn=function(a){var b=a.Jo(),c=a.Ko();if(this.Sa(b,c))return!0;b=this.Jo();c=this.Ko();if(a.Sa(b,c))return!0;var f,e,k,h,l,n,w,z;for(w=0;4>w;w++)for(z=0;4>z;z++)if(b=this.Nb(w,!0),c=this.Nb(w,!1),f=this.Nb(w+1,!0),e=this.Nb(w+1,!1),k=a.Nb(z,!0),h=a.Nb(z,!1),l=a.Nb(z+1,!0),n=a.Nb(z+1,!1),ta(b,c,f,e,k,h,l,n))return!0;return!1};ua=g;va=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};ya=function(a,b){var c,f;b=N(b);if(!(0>b||
b>=a.length)){c=b;for(f=a.length-1;c<f;c++)a[c]=a[c+1];za(a,f)}};za=function(a,b){a.length=b};R=function(a){za(a,0)};U=function(a,b){R(a);var c,f;c=0;for(f=b.length;c<f;++c)a[c]=b[c]};Aa=function(a,b){a.push.apply(a,b)};Ba=function(a,b){var c,f;c=0;for(f=a.length;c<f;++c)if(a[c]===b)return c;return-1};Ca=function(a,b){var c=Ba(a,b);-1!==c&&ya(a,c)};Da=function(a,b,c){return a<b?b:a>c?c:a};X=function(a){return a/(180/ra)};Ea=function(a){return 180/ra*a};Fa=function(a){a%=360;0>a&&(a+=360);return a};
Ga=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};Ha=function(a){return Fa(Ea(a))};Ia=function(a){return Ga(X(a))};Ja=function(a,b,c,f){return Math.atan2(f-b,c-a)};Ka=function(a,b){if(a===b)return 0;var c=Math.sin(a),f=Math.cos(a),e=Math.sin(b),k=Math.cos(b),c=c*e+f*k;return 1<=c?0:-1>=c?ra:Math.acos(c)};La=function(a,b,c){var f=Math.sin(a),e=Math.cos(a),k=Math.sin(b),h=Math.cos(b);return Math.acos(f*k+e*h)>c?0<e*k-f*h?Ga(a+c):Ga(a-c):Ga(b)};Ma=function(a,b){var c=Math.sin(a),f=Math.cos(a),e=Math.sin(b),
k=Math.cos(b);return 0>=f*e-c*k};Na=function(a,b,c,f){a=c-a;b=f-b;return Math.sqrt(a*a+b*b)};Oa=function(a,b){return!a!==!b};Pa=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Qa=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var C=+new Date;Ra=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();
if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-C};var n=!1,u=n=!1,v=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),n=!n&&/safari/i.test(navigator.userAgent),u=/(iphone|ipod|ipad)/i.test(navigator.userAgent),v=window.c2ejecta);var M=!n&&!v&&!u&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;m.prototype.contains=function(a){return this.Ld()?!1:M?this.xd.has(a):this.items&&this.items.hasOwnProperty(a)};
m.prototype.add=function(a){if(M)this.xd.has(a)||(this.xd.add(a),this.fe=!1);else{var b=a.toString(),c=this.items;c?c.hasOwnProperty(b)||(c[b]=a,this.Vg++,this.fe=!1):(this.items={},this.items[b]=a,this.Vg=1,this.fe=!1)}};m.prototype.remove=function(a){if(!this.Ld())if(M)this.xd.has(a)&&(this.xd["delete"](a),this.fe=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Vg--,this.fe=!1)}};m.prototype.clear=function(){this.Ld()||(M?this.xd.clear():(this.items=
null,this.Vg=0),R(this.lg),this.fe=!0)};m.prototype.Ld=function(){return 0===this.count()};m.prototype.count=function(){return M?this.xd.size:this.Vg};var l=null,y=0;m.prototype.gv=function(){if(!this.fe){if(M)R(this.lg),l=this.lg,y=0,this.xd.forEach(t),l=null,y=0;else{var a=this.lg;R(a);var b,c=0,f=this.items;if(f)for(b in f)f.hasOwnProperty(b)&&(a[c++]=f[b])}this.fe=!0}};m.prototype.Ic=function(){this.gv();return this.lg};ga=m;new ga;Sa=function(a,b){M?Ta(a,b.xd):Ua(a,b.Ic())};Ta=function(a,b){var c,
f,e,k;f=c=0;for(e=a.length;c<e;++c)k=a[c],b.has(k)||(a[f++]=k);za(a,f)};Ua=function(a,b){var c,f,e,k;f=c=0;for(e=a.length;c<e;++c)k=a[c],-1===Ba(b,k)&&(a[f++]=k);za(a,f)};q.prototype.add=function(a){this.y=a-this.ek;this.Hj=this.ca+this.y;this.ek=this.Hj-this.ca-this.y;this.ca=this.Hj};q.prototype.reset=function(){this.ca=this.Hj=this.y=this.ek=0};Va=q;Wa=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};r.prototype.Eh=function(a){this.ep=a;this.Sb=a.length/2;this.na.length=a.length;
this.di=this.ei=-1;this.kn=0};r.prototype.jf=function(){return!this.ep.length};r.prototype.ja=function(){for(var a=this.na,b=a[0],c=b,f=a[1],e=f,k,h,l=1,n=this.Sb;l<n;++l)h=2*l,k=a[h],h=a[h+1],k<b&&(b=k),k>c&&(c=k),h<f&&(f=h),h>e&&(e=h);this.$h=b;this.ai=c;this.bi=f;this.Zh=e};r.prototype.fg=function(a,b,c){this.na.length=8;this.Sb=4;var f=this.na;f[0]=a.left-b;f[1]=a.top-c;f[2]=a.right-b;f[3]=a.top-c;f[4]=a.right-b;f[5]=a.bottom-c;f[6]=a.left-b;f[7]=a.bottom-c;this.ei=a.right-a.left;this.di=a.bottom-
a.top;this.ja()};r.prototype.eg=function(a,b,c,f,e){this.na.length=8;this.Sb=4;var k=this.na;k[0]=a.Za-b;k[1]=a.$a-c;k[2]=a.Ab-b;k[3]=a.Bb-c;k[4]=a.tb-b;k[5]=a.ub-c;k[6]=a.qb-b;k[7]=a.rb-c;this.ei=f;this.di=e;this.ja()};r.prototype.sp=function(a){this.Sb=a.Sb;U(this.na,a.na);this.$h=a.$h;this.bi-a.bi;this.ai=a.ai;this.Zh=a.Zh};r.prototype.ee=function(a,b,c){if(this.ei!==a||this.di!==b||this.kn!==c){this.ei=a;this.di=b;this.kn=c;var f,e,k,h,l,n=0,w=1,z=this.ep,d=this.na;0!==c&&(n=Math.sin(c),w=Math.cos(c));
c=0;for(k=this.Sb;c<k;c++)f=2*c,e=f+1,h=z[f]*a,l=z[e]*b,d[f]=h*w-l*n,d[e]=l*w+h*n;this.ja()}};r.prototype.Sa=function(a,b){var c=this.na;if(a===c[0]&&b===c[1])return!0;var f,e,k,h=this.Sb,l=this.$h-110,n=this.bi-101,w=this.ai+131,z=this.Zh+120,d,v,u=0,y=0;for(f=0;f<h;f++)e=2*f,k=(f+1)%h*2,d=c[e],e=c[e+1],v=c[k],k=c[k+1],ta(l,n,a,b,d,e,v,k)&&u++,ta(w,z,a,b,d,e,v,k)&&y++;return 1===u%2||1===y%2};r.prototype.Mg=function(a,b,c){var f=a.na,e=this.na;if(this.Sa(f[0]+b,f[1]+c)||a.Sa(e[0]-b,e[1]-c))return!0;
var k,h,l,n,w,z,d,v,u,y,m,B;k=0;for(n=this.Sb;k<n;k++)for(h=2*k,l=(k+1)%n*2,v=e[h],h=e[h+1],u=e[l],y=e[l+1],l=0,d=a.Sb;l<d;l++)if(w=2*l,z=(l+1)%d*2,m=f[w]+b,w=f[w+1]+c,B=f[z]+b,z=f[z+1]+c,ta(v,h,u,y,m,w,B,z))return!0;return!1};r.prototype.Ng=function(a,b,c,f,e,k){var h=this.na;if(this.Sa(c-a,f-b))return!0;var l,n,w,z,d,v;l=0;for(n=this.Sb;l<n;l++)if(w=2*l,z=(l+1)%n*2,d=h[w]+a,w=h[w+1]+b,v=h[z]+a,z=h[z+1]+b,ta(c,f,e,k,d,w,v,z))return!0;return!1};r.prototype.hu=function(a){var b,c,f;b=0;for(c=this.Sb;b<
c;++b)f=2*b,this.na[f]=2*a-this.na[f]};r.prototype.$s=function(a){var b,c,f;b=0;for(c=this.Sb;b<c;++b)f=2*b+1,this.na[f]=2*a-this.na[f]};r.prototype.Kr=function(){var a,b,c,f,e;a=0;for(b=this.Sb;a<b;++a)c=2*a,f=c+1,e=this.na[c],this.na[c]=this.na[f],this.na[f]=e};Xa=r;c.prototype.me=function(a,b,c){var f;f=this.cells[a];return f?(f=f[b])?f:c?(f=e(this,a,b),this.cells[a][b]=f):null:c?(f=e(this,a,b),this.cells[a]={},this.cells[a][b]=f):null};c.prototype.Jb=function(a){return N(a/this.Qa)};c.prototype.Kb=
function(a){return N(a/this.ab)};c.prototype.update=function(a,b,c){var f,e,k,h,l;if(b)for(f=b.left,e=b.right;f<=e;++f)for(k=b.top,h=b.bottom;k<=h;++k)if(!c||!c.Sa(f,k))if(l=this.me(f,k,!1))l.remove(a),l.Ld()&&(l.fb.clear(),1E3>F.length&&F.push(l),this.cells[f][k]=null);if(c)for(f=c.left,e=c.right;f<=e;++f)for(k=c.top,h=c.bottom;k<=h;++k)b&&b.Sa(f,k)||this.me(f,k,!0).Xk(a)};c.prototype.lj=function(a,b){var c,f,e,k,h,l;c=this.Jb(a.left);e=this.Kb(a.top);f=this.Jb(a.right);for(h=this.Kb(a.bottom);c<=
f;++c)for(k=e;k<=h;++k)(l=this.me(c,k,!1))&&l.dump(b)};Ya=c;b.prototype.me=function(a,b,c){var e;e=this.cells[a];return e?(e=e[b])?e:c?(e=f(this,a,b),this.cells[a][b]=e):null:c?(e=f(this,a,b),this.cells[a]={},this.cells[a][b]=e):null};b.prototype.Jb=function(a){return N(a/this.Qa)};b.prototype.Kb=function(a){return N(a/this.ab)};b.prototype.update=function(a,b,c){var f,e,k,h,l;if(b)for(f=b.left,e=b.right;f<=e;++f)for(k=b.top,h=b.bottom;k<=h;++k)if(!c||!c.Sa(f,k))if(l=this.me(f,k,!1))l.remove(a),l.Ld()&&
(l.reset(),1E3>ca.length&&ca.push(l),this.cells[f][k]=null);if(c)for(f=c.left,e=c.right;f<=e;++f)for(k=c.top,h=c.bottom;k<=h;++k)b&&b.Sa(f,k)||this.me(f,k,!0).Xk(a)};b.prototype.lj=function(a,b,c,f,e){var k,h;a=this.Jb(a);b=this.Kb(b);c=this.Jb(c);for(k=this.Kb(f);a<=c;++a)for(f=b;f<=k;++f)(h=this.me(a,f,!1))&&h.dump(e)};b.prototype.fu=function(a){var b,c,f,e,k;b=a.left;f=a.top;c=a.right;for(e=a.bottom;b<=c;++b)for(a=f;a<=e;++a)if(k=this.me(b,a,!1))k.Of=!1};Za=b;var F=[];a.prototype.Ld=function(){return this.fb.Ld()};
a.prototype.Xk=function(a){this.fb.add(a)};a.prototype.remove=function(a){this.fb.remove(a)};a.prototype.dump=function(a){Aa(a,this.fb.Ic())};ea=a;var ca=[];h.prototype.Ld=function(){if(!this.fb.length)return!0;if(this.fb.length>this.vd.count())return!1;this.Dk();return!0};h.prototype.Xk=function(a){this.vd.contains(a)?(this.vd.remove(a),this.vd.Ld()&&(this.pg=!1)):this.fb.length?(this.fb[this.fb.length-1].sd()>a.sd()&&(this.Of=!1),this.fb.push(a)):(this.fb.push(a),this.Of=!0)};h.prototype.remove=
function(a){this.vd.add(a);this.pg=!0;30<=this.vd.count()&&this.Dk()};h.prototype.Dk=function(){this.pg&&(this.vd.count()===this.fb.length?this.reset():(Sa(this.fb,this.vd),this.vd.clear(),this.pg=!1))};h.prototype.os=function(){this.Of||(this.fb.sort(k),this.Of=!0)};h.prototype.reset=function(){R(this.fb);this.Of=!0;this.vd.clear();this.pg=!1};h.prototype.dump=function(a){this.Dk();this.os();this.fb.length&&a.push(this.fb)};ia=h;var fa="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
$a=function(a){return 0>=a||11<=a?"source-over":fa[a-1]};ab=function(a,b,c){if(c)switch(a.yb=c.ONE,a.wb=c.ONE_MINUS_SRC_ALPHA,b){case 1:a.yb=c.ONE;a.wb=c.ONE;break;case 3:a.yb=c.ONE;a.wb=c.ZERO;break;case 4:a.yb=c.ONE_MINUS_DST_ALPHA;a.wb=c.ONE;break;case 5:a.yb=c.DST_ALPHA;a.wb=c.ZERO;break;case 6:a.yb=c.ZERO;a.wb=c.SRC_ALPHA;break;case 7:a.yb=c.ONE_MINUS_DST_ALPHA;a.wb=c.ZERO;break;case 8:a.yb=c.ZERO;a.wb=c.ONE_MINUS_SRC_ALPHA;break;case 9:a.yb=c.DST_ALPHA;a.wb=c.ONE_MINUS_SRC_ALPHA;break;case 10:a.yb=
c.ONE_MINUS_DST_ALPHA,a.wb=c.SRC_ALPHA}};bb=function(a){return Math.round(1E6*a)/1E6};cb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};gb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||cb(a.tagName,"canvas")?!0:!1}})();var Yb="undefined"!==typeof Float32Array?Float32Array:Array;function Zb(d){var g=new Yb(3);d&&(g[0]=d[0],g[1]=d[1],g[2]=d[2]);return g}
function $b(d){var g=new Yb(16);d&&(g[0]=d[0],g[1]=d[1],g[2]=d[2],g[3]=d[3],g[4]=d[4],g[5]=d[5],g[6]=d[6],g[7]=d[7],g[8]=d[8],g[9]=d[9],g[10]=d[10],g[11]=d[11],g[12]=d[12],g[13]=d[13],g[14]=d[14],g[15]=d[15]);return g}function ac(d,g){g[0]=d[0];g[1]=d[1];g[2]=d[2];g[3]=d[3];g[4]=d[4];g[5]=d[5];g[6]=d[6];g[7]=d[7];g[8]=d[8];g[9]=d[9];g[10]=d[10];g[11]=d[11];g[12]=d[12];g[13]=d[13];g[14]=d[14];g[15]=d[15]}
function bc(d,g){var p=g[0],m=g[1];g=g[2];d[0]*=p;d[1]*=p;d[2]*=p;d[3]*=p;d[4]*=m;d[5]*=m;d[6]*=m;d[7]*=m;d[8]*=g;d[9]*=g;d[10]*=g;d[11]*=g}
function cc(d,g,p,m){m||(m=$b());var t,q,r,c,b,e,a,f,h=d[0],k=d[1];d=d[2];q=p[0];r=p[1];t=p[2];p=g[1];e=g[2];h===g[0]&&k===p&&d===e?(d=m,d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1):(p=h-g[0],e=k-g[1],a=d-g[2],f=1/Math.sqrt(p*p+e*e+a*a),p*=f,e*=f,a*=f,g=r*a-t*e,t=t*p-q*a,q=q*e-r*p,(f=Math.sqrt(g*g+t*t+q*q))?(f=1/f,g*=f,t*=f,q*=f):q=t=g=0,r=e*q-a*t,c=a*g-p*q,b=p*t-e*g,(f=Math.sqrt(r*r+c*c+b*b))?(f=1/f,r*=f,c*=f,b*=f):b=c=r=0,
m[0]=g,m[1]=r,m[2]=p,m[3]=0,m[4]=t,m[5]=c,m[6]=e,m[7]=0,m[8]=q,m[9]=b,m[10]=a,m[11]=0,m[12]=-(g*h+t*k+q*d),m[13]=-(r*h+c*k+b*d),m[14]=-(p*h+e*k+a*d),m[15]=1)}
(function(){function d(c,b,e){this.qe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ra=!!e;this.Gi=this.Pg=!1;this.li=0;this.Wj=1;this.zm=1E3;this.mv=(this.zm-this.Wj)/32768;this.fk=Zb([0,0,100]);this.so=Zb([0,0,0]);this.Sp=Zb([0,1,0]);this.Sh=Zb([1,1,1]);this.tn=!0;this.aj=$b();this.oc=$b();this.hl=$b();this.rk=$b();this.A=c;this.version=0===this.A.getParameter(this.A.VERSION).indexOf("WebGL 2")?2:1;this.Un()}function g(c,b,e){this.A=c;this.Fh=
b;this.name=e;this.yc=c.getAttribLocation(b,"aPos");this.ye=c.getAttribLocation(b,"aTex");this.qo=c.getUniformLocation(b,"matP");this.Wi=c.getUniformLocation(b,"matMV");this.Uf=c.getUniformLocation(b,"opacity");this.pl=c.getUniformLocation(b,"colorFill");this.ro=c.getUniformLocation(b,"samplerFront");this.bh=c.getUniformLocation(b,"samplerBack");this.of=c.getUniformLocation(b,"destStart");this.nf=c.getUniformLocation(b,"destEnd");this.eh=c.getUniformLocation(b,"seconds");this.rl=c.getUniformLocation(b,
"pixelWidth");this.ql=c.getUniformLocation(b,"pixelHeight");this.ah=c.getUniformLocation(b,"layerScale");this.$g=c.getUniformLocation(b,"layerAngle");this.fh=c.getUniformLocation(b,"viewOrigin");this.dh=c.getUniformLocation(b,"scrollPos");this.Lt=!!(this.rl||this.ql||this.eh||this.bh||this.of||this.nf||this.ah||this.$g||this.fh||this.dh);this.Ao=this.Bo=-999;this.$i=1;this.wo=this.vo=0;this.yo=this.uo=this.to=1;this.Eo=this.Do=this.Co=this.Go=this.Fo=this.xo=0;this.gl=[];this.zo=$b();this.Uf&&c.uniform1f(this.Uf,
1);this.pl&&c.uniform4f(this.pl,1,1,1,1);this.ro&&c.uniform1i(this.ro,0);this.bh&&c.uniform1i(this.bh,1);this.of&&c.uniform2f(this.of,0,0);this.nf&&c.uniform2f(this.nf,1,1);this.ah&&c.uniform1f(this.ah,1);this.$g&&c.uniform1f(this.$g,0);this.fh&&c.uniform2f(this.fh,0,0);this.dh&&c.uniform2f(this.dh,0,0);this.eh&&c.uniform1f(this.eh,0);this.ef=!1}function p(c,b){return c[0]===b[0]&&c[1]===b[1]&&c[2]===b[2]&&c[3]===b[3]&&c[4]===b[4]&&c[5]===b[5]&&c[6]===b[6]&&c[7]===b[7]&&c[8]===b[8]&&c[9]===b[9]&&
c[10]===b[10]&&c[11]===b[11]&&c[12]===b[12]&&c[13]===b[13]&&c[14]===b[14]&&c[15]===b[15]}function m(c,b){this.type=c;this.q=b;this.A=b.A;this.lc=this.zb=this.Wo=0;this.X=this.Gc=null;this.up=[]}var t=$b();d.prototype.Un=function(){var c=this.A,b;this.lo=1;this.kf=this.ue=null;this.ki=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.STENCIL_TEST);c.disable(c.DITHER);this.ra?(c.enable(c.DEPTH_TEST),c.depthFunc(c.LEQUAL)):
c.disable(c.DEPTH_TEST);this.mo=c.ONE;this.ko=c.ONE_MINUS_SRC_ALPHA;this.Rh=new Float32Array(8E3*(this.ra?3:2));this.Kh=new Float32Array(16E3);this.bp=new Float32Array(32E3);this.El=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.El);c.bufferData(c.ARRAY_BUFFER,this.bp.byteLength,c.DYNAMIC_DRAW);this.Qh=Array(4);this.Jh=Array(4);for(b=0;4>b;b++)this.Qh[b]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Qh[b]),c.bufferData(c.ARRAY_BUFFER,this.Rh.byteLength,c.DYNAMIC_DRAW),this.Jh[b]=c.createBuffer(),
c.bindBuffer(c.ARRAY_BUFFER,this.Jh[b]),c.bufferData(c.ARRAY_BUFFER,this.Kh.byteLength,c.DYNAMIC_DRAW);this.Dd=0;this.Ot=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Ot);for(var e=new Uint16Array(12E3),a=b=0;12E3>b;)e[b++]=a,e[b++]=a+1,e[b++]=a+2,e[b++]=a,e[b++]=a+2,e[b++]=a+3,a+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,e,c.STATIC_DRAW);this.Fl=this.Ke=this.Kc=0;this.Fa=[];b=this.ra?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";e=this.ug({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}"},b,"<default>");this.Fa.push(e);e=this.ug({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.Fa.push(e);e=this.ug({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"<earlyz>");this.Fa.push(e);e=this.ug({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.Fa.push(e);for(var f in dc)dc.hasOwnProperty(f)&&this.Fa.push(this.ug(dc[f],b,f));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.ld=[];this.Oc=0;this.cb=!1;this.rn=this.Wg=-1;this.Ff=null;this.Ck=c.createFramebuffer();this.ni=this.nj=null;this.dn=!1;this.ra&&(this.ni=c.createRenderbuffer());this.Le=Zb([0,0,0]);this.Ho=c.getParameter(c.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Ho&&(this.Ho=2048);this.Yb(0)};g.prototype.um=function(c){p(this.zo,c)||(ac(c,this.zo),this.A.uniformMatrix4fv(this.Wi,
!1,c))};d.prototype.ug=function(c,b,e){var a=this.A,f=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(f,c.src);a.compileShader(f);if(!a.getShaderParameter(f,a.COMPILE_STATUS))throw c=a.getShaderInfoLog(f),a.deleteShader(f),Error("error compiling fragment shader: "+c);var h=a.createShader(a.VERTEX_SHADER);a.shaderSource(h,b);a.compileShader(h);if(!a.getShaderParameter(h,a.COMPILE_STATUS))throw c=a.getShaderInfoLog(h),a.deleteShader(f),a.deleteShader(h),Error("error compiling vertex shader: "+c);b=
a.createProgram();a.attachShader(b,f);a.attachShader(b,h);a.linkProgram(b);if(!a.getProgramParameter(b,a.LINK_STATUS))throw c=a.getProgramInfoLog(b),a.deleteShader(f),a.deleteShader(h),a.deleteProgram(b),Error("error linking shader program: "+c);a.useProgram(b);a.deleteShader(f);a.deleteShader(h);f=new g(a,b,e);f.Ak=c.Ak||0;f.Bk=c.Bk||0;f.qn=!!c.qn;f.Zc=!!c.Zc;f.an=!!c.an;f.Y=c.Y||[];c=0;for(h=f.Y.length;c<h;c++)f.Y[c][1]=a.getUniformLocation(b,f.Y[c][0]),f.gl.push(0),a.uniform1f(f.Y[c][1],0);return f};
d.prototype.Ok=function(c){var b,e;b=0;for(e=this.Fa.length;b<e;b++)if(this.Fa[b].name===c)return b;return-1};d.prototype.dp=function(c,b,e){var a=this.oc,f=this.aj,h=[0,0,0,0,0,0,0,0];h[0]=a[0]*c+a[4]*b+a[12];h[1]=a[1]*c+a[5]*b+a[13];h[2]=a[2]*c+a[6]*b+a[14];h[3]=a[3]*c+a[7]*b+a[15];h[4]=f[0]*h[0]+f[4]*h[1]+f[8]*h[2]+f[12]*h[3];h[5]=f[1]*h[0]+f[5]*h[1]+f[9]*h[2]+f[13]*h[3];h[6]=f[2]*h[0]+f[6]*h[1]+f[10]*h[2]+f[14]*h[3];h[7]=-h[2];0!==h[7]&&(h[7]=1/h[7],h[4]*=h[7],h[5]*=h[7],h[6]*=h[7],e[0]=(.5*h[4]+
.5)*this.width,e[1]=(.5*h[5]+.5)*this.height)};d.prototype.Td=function(c,b,e){if(this.width!==c||this.height!==b||e){this.Fd();e=this.A;this.width=c;this.height=b;e.viewport(0,0,c,b);cc(this.fk,this.so,this.Sp,this.oc);if(this.ra){var a=-c/2;c=c/2;var f=b/2;b=-b/2;var h=this.Wj,k=this.zm,d=this.aj;d||(d=$b());var m=c-a,g=b-f,n=k-h;d[0]=2/m;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/g;d[6]=0;d[7]=0;d[8]=0;d[9]=0;d[10]=-2/n;d[11]=0;d[12]=-(a+c)/m;d[13]=-(b+f)/g;d[14]=-(k+h)/n;d[15]=1;this.Sh[0]=1;this.Sh[1]=
1}else b=c/b,a=this.Wj,c=this.zm,d=this.aj,k=a*Math.tan(45*Math.PI/360),b*=k,f=-b,h=-k,d||(d=$b()),m=b-f,g=k-h,n=c-a,d[0]=2*a/m,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=2*a/g,d[6]=0,d[7]=0,d[8]=(b+f)/m,d[9]=(k+h)/g,d[10]=-(c+a)/n,d[11]=-1,d[12]=0,d[13]=0,d[14]=-(c*a*2)/n,d[15]=0,a=[0,0],c=[0,0],this.dp(0,0,a),this.dp(1,1,c),this.Sh[0]=1/(c[0]-a[0]),this.Sh[1]=-1/(c[1]-a[1]);a=0;for(c=this.Fa.length;a<c;a++)f=this.Fa[a],f.ef=!1,f.qo&&(e.useProgram(f.Fh),e.uniformMatrix4fv(f.qo,!1,this.aj));e.useProgram(this.Fa[this.Wg].Fh);
e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE1);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE0);this.kf=this.ue=null;this.ni&&(e.bindFramebuffer(e.FRAMEBUFFER,this.Ck),e.bindRenderbuffer(e.RENDERBUFFER,this.ni),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,this.width,this.height),this.dn||(e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,this.ni),this.dn=!0),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),
this.nj=null)}};d.prototype.Dc=function(){cc(this.fk,this.so,this.Sp,this.oc);bc(this.oc,this.Sh)};d.prototype.translate=function(c,b){if(0!==c||0!==b){this.Le[0]=c;this.Le[1]=b;this.Le[2]=0;var e=this.oc,a=this.Le,f=a[0],h=a[1],a=a[2];e[12]=e[0]*f+e[4]*h+e[8]*a+e[12];e[13]=e[1]*f+e[5]*h+e[9]*a+e[13];e[14]=e[2]*f+e[6]*h+e[10]*a+e[14];e[15]=e[3]*f+e[7]*h+e[11]*a+e[15]}};d.prototype.scale=function(c,b){if(1!==c||1!==b)this.Le[0]=c,this.Le[1]=b,this.Le[2]=1,bc(this.oc,this.Le)};d.prototype.qj=function(c){if(0!==
c){var b=this.oc,e,a=Math.sin(c);c=Math.cos(c);var f=b[0],h=b[1],k=b[2],d=b[3],m=b[4],g=b[5],n=b[6],u=b[7];e?b!==e&&(e[8]=b[8],e[9]=b[9],e[10]=b[10],e[11]=b[11],e[12]=b[12],e[13]=b[13],e[14]=b[14],e[15]=b[15]):e=b;e[0]=f*c+m*a;e[1]=h*c+g*a;e[2]=k*c+n*a;e[3]=d*c+u*a;e[4]=f*-a+m*c;e[5]=h*-a+g*c;e[6]=k*-a+n*c;e[7]=d*-a+u*c}};d.prototype.rc=function(){if(!p(this.hl,this.oc)){var c=this.Tb();c.type=5;c.X?ac(this.oc,c.X):c.X=$b(this.oc);ac(this.oc,this.hl);this.cb=!1}};d.prototype.vj=function(c){this.ra&&
(32760<c&&(c=32760),this.li=this.fk[2]-this.Wj-c*this.mv)};m.prototype.Xr=function(){var c=this.A,b=this.q;0!==this.zb?(c.depthMask(!0),c.colorMask(!1,!1,!1,!1),c.disable(c.BLEND),c.bindFramebuffer(c.FRAMEBUFFER,b.Ck),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.clear(c.DEPTH_BUFFER_BIT),c.bindFramebuffer(c.FRAMEBUFFER,null),b.Gi=!0):(c.depthMask(!1),c.colorMask(!0,!0,!0,!0),c.enable(c.BLEND),b.Gi=!1)};m.prototype.as=function(){this.A.bindTexture(this.A.TEXTURE_2D,
this.Gc)};m.prototype.bs=function(){var c=this.A;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.Gc);c.activeTexture(c.TEXTURE0)};m.prototype.Yr=function(){var c=this.Wo,b=this.q;b.ki=c;b=b.Ff;b.Uf&&b.$i!==c&&(b.$i=c,this.A.uniform1f(b.Uf,c))};m.prototype.Sr=function(){this.A.drawElements(this.A.TRIANGLES,this.lc,this.A.UNSIGNED_SHORT,this.zb)};m.prototype.Ur=function(){this.A.blendFunc(this.zb,this.lc)};m.prototype.cs=function(){var c,b,e,a=this.q.Fa,f=this.q.rn;c=0;for(b=a.length;c<
b;c++)e=a[c],c===f&&e.Wi?(e.um(this.X),e.ef=!0):e.ef=!1;ac(this.X,this.q.rk)};m.prototype.Tr=function(){var c=this.A,b=this.q;this.Gc?(b.kf===this.Gc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),b.kf=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,b.Ck),b.Gi||c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Gc,0)):(b.ra||c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};
m.prototype.Pr=function(){var c=this.A,b=this.zb;0===b?(c.clearColor(this.X[0],this.X[1],this.X[2],this.X[3]),c.clear(c.COLOR_BUFFER_BIT)):1===b?(c.enable(c.SCISSOR_TEST),c.scissor(this.X[0],this.X[1],this.X[2],this.X[3]),c.clearColor(0,0,0,0),c.clear(c.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST)):c.clear(c.DEPTH_BUFFER_BIT)};m.prototype.Wr=function(){var c=this.A;0!==this.zb?c.enable(c.DEPTH_TEST):c.disable(c.DEPTH_TEST)};m.prototype.Rr=function(){var c=this.A,b=this.q;b.ra&&c.disable(c.DEPTH_TEST);
var e=b.Fa[1];c.useProgram(e.Fh);!e.ef&&e.Wi&&(e.um(b.rk),e.ef=!0);c.enableVertexAttribArray(e.yc);c.bindBuffer(c.ARRAY_BUFFER,b.El);c.vertexAttribPointer(e.yc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.zb/4,this.lc);e=b.Ff;c.useProgram(e.Fh);0<=e.yc&&(c.enableVertexAttribArray(e.yc),c.bindBuffer(c.ARRAY_BUFFER,b.Qh[b.Dd]),c.vertexAttribPointer(e.yc,b.ra?3:2,c.FLOAT,!1,0,0));0<=e.ye&&(c.enableVertexAttribArray(e.ye),c.bindBuffer(c.ARRAY_BUFFER,b.Jh[b.Dd]),c.vertexAttribPointer(e.ye,2,c.FLOAT,!1,
0,0));b.ra&&c.enable(c.DEPTH_TEST)};m.prototype.Zr=function(){var c=this.A,b=this.q,e=b.Fa[this.zb];b.rn=this.zb;b.Ff=e;c.useProgram(e.Fh);!e.ef&&e.Wi&&(e.um(b.rk),e.ef=!0);e.Uf&&e.$i!==b.ki&&(e.$i=b.ki,c.uniform1f(e.Uf,b.ki));0<=e.yc&&(c.enableVertexAttribArray(e.yc),c.bindBuffer(c.ARRAY_BUFFER,b.Qh[b.Dd]),c.vertexAttribPointer(e.yc,b.ra?3:2,c.FLOAT,!1,0,0));0<=e.ye&&(c.enableVertexAttribArray(e.ye),c.bindBuffer(c.ARRAY_BUFFER,b.Jh[b.Dd]),c.vertexAttribPointer(e.ye,2,c.FLOAT,!1,0,0))};m.prototype.Vr=
function(){var c=this.X;this.A.uniform4f(this.q.Ff.pl,c[0],c[1],c[2],c[3])};m.prototype.$r=function(){var c,b,e=this.q.Ff,a=this.A;c=this.X;e.bh&&this.q.kf!==this.Gc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.Gc),this.q.kf=this.Gc,a.activeTexture(a.TEXTURE0));var f=c[0];e.rl&&f!==e.Bo&&(e.Bo=f,a.uniform1f(e.rl,f));f=c[1];e.ql&&f!==e.Ao&&(e.Ao=f,a.uniform1f(e.ql,f));f=c[2];b=c[3];!e.of||f===e.vo&&b===e.wo||(e.vo=f,e.wo=b,a.uniform2f(e.of,f,b));f=c[4];b=c[5];!e.nf||f===e.to&&b===
e.uo||(e.to=f,e.uo=b,a.uniform2f(e.nf,f,b));f=c[6];e.ah&&f!==e.yo&&(e.yo=f,a.uniform1f(e.ah,f));f=c[7];e.$g&&f!==e.xo&&(e.xo=f,a.uniform1f(e.$g,f));f=c[8];b=c[9];!e.fh||f===e.Fo&&b===e.Go||(e.Fo=f,e.Go=b,a.uniform2f(e.fh,f,b));f=c[10];b=c[11];!e.dh||f===e.Co&&b===e.Do||(e.Co=f,e.Do=b,a.uniform2f(e.dh,f,b));f=c[12];e.eh&&f!==e.Eo&&(e.Eo=f,a.uniform1f(e.eh,f));if(e.Y.length)for(c=0,b=e.Y.length;c<b;c++)f=this.up[c],f!==e.gl[c]&&(e.gl[c]=f,a.uniform1f(e.Y[c][1],f))};d.prototype.Tb=function(){this.Oc===
this.ld.length&&this.ld.push(new m(0,this));return this.ld[this.Oc++]};d.prototype.Fd=function(){if(0!==this.Oc&&!this.A.isContextLost()){var c=this.A;0<this.Fl&&(c.bindBuffer(c.ARRAY_BUFFER,this.El),c.bufferSubData(c.ARRAY_BUFFER,0,this.bp.subarray(0,this.Fl)),b&&0<=b.yc&&"<point>"===b.name&&c.vertexAttribPointer(b.yc,4,c.FLOAT,!1,0,0));if(0<this.Kc){var b=this.Ff;c.bindBuffer(c.ARRAY_BUFFER,this.Qh[this.Dd]);c.bufferSubData(c.ARRAY_BUFFER,0,this.Rh.subarray(0,this.Kc));b&&0<=b.yc&&"<point>"!==b.name&&
c.vertexAttribPointer(b.yc,this.ra?3:2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Jh[this.Dd]);c.bufferSubData(c.ARRAY_BUFFER,0,this.Kh.subarray(0,this.Ke));b&&0<=b.ye&&"<point>"!==b.name&&c.vertexAttribPointer(b.ye,2,c.FLOAT,!1,0,0)}for(var e,c=0,b=this.Oc;c<b;c++)switch(e=this.ld[c],e.type){case 1:e.Sr();break;case 2:e.as();break;case 3:e.Yr();break;case 4:e.Ur();break;case 5:e.cs();break;case 6:e.Tr();break;case 7:e.Pr();break;case 8:e.Rr();break;case 9:e.Zr();break;case 10:e.$r();break;
case 11:e.bs();break;case 12:e.Vr();break;case 13:e.Wr();break;case 14:e.Xr()}this.Fl=this.Ke=this.Kc=this.Oc=0;this.Gi=this.cb=!1;this.Dd++;4<=this.Dd&&(this.Dd=0)}};d.prototype.He=function(c){if(c!==this.lo&&!this.Pg){var b=this.Tb();b.type=3;this.lo=b.Wo=c;this.cb=!1}};d.prototype.Wb=function(c){if(c!==this.ue){var b=this.Tb();b.type=2;this.ue=b.Gc=c;this.cb=!1}};d.prototype.Ge=function(c,b){if((c!==this.mo||b!==this.ko)&&!this.Pg){var e=this.Tb();e.type=4;e.zb=c;e.lc=b;this.mo=c;this.ko=b;this.cb=
!1}};d.prototype.lp=function(){this.Ge(this.A.ONE,this.A.ONE_MINUS_SRC_ALPHA)};d.prototype.wh=function(c,b,e,a,f,h,k,d){15992<=this.Kc&&this.Fd();var m=this.Kc,g=this.Ke,n=this.Rh,u=this.Kh,v=this.li;if(this.cb)this.ld[this.Oc-1].lc+=6;else{var p=this.Tb();p.type=1;p.zb=this.ra?m:m/2*3;p.lc=6;this.cb=!0}this.ra?(n[m++]=c,n[m++]=b,n[m++]=v,n[m++]=e,n[m++]=a,n[m++]=v,n[m++]=f,n[m++]=h,n[m++]=v,n[m++]=k,n[m++]=d,n[m++]=v):(n[m++]=c,n[m++]=b,n[m++]=e,n[m++]=a,n[m++]=f,n[m++]=h,n[m++]=k,n[m++]=d);u[g++]=
0;u[g++]=0;u[g++]=1;u[g++]=0;u[g++]=1;u[g++]=1;u[g++]=0;u[g++]=1;this.Kc=m;this.Ke=g};d.prototype.ad=function(c,b,e,a,f,h,k,d,m){15992<=this.Kc&&this.Fd();var g=this.Kc,n=this.Ke,u=this.Rh,v=this.Kh,p=this.li;if(this.cb)this.ld[this.Oc-1].lc+=6;else{var l=this.Tb();l.type=1;l.zb=this.ra?g:g/2*3;l.lc=6;this.cb=!0}var l=m.left,y=m.top,F=m.right;m=m.bottom;this.ra?(u[g++]=c,u[g++]=b,u[g++]=p,u[g++]=e,u[g++]=a,u[g++]=p,u[g++]=f,u[g++]=h,u[g++]=p,u[g++]=k,u[g++]=d,u[g++]=p):(u[g++]=c,u[g++]=b,u[g++]=e,
u[g++]=a,u[g++]=f,u[g++]=h,u[g++]=k,u[g++]=d);v[n++]=l;v[n++]=y;v[n++]=F;v[n++]=y;v[n++]=F;v[n++]=m;v[n++]=l;v[n++]=m;this.Kc=g;this.Ke=n};d.prototype.Mu=function(c,b,e,a,f,h,k,d,m,g,n,u,v,p,l,y){15992<=this.Kc&&this.Fd();var F=this.Kc,r=this.Ke,q=this.Rh,t=this.Kh,T=this.li;if(this.cb)this.ld[this.Oc-1].lc+=6;else{var J=this.Tb();J.type=1;J.zb=this.ra?F:F/2*3;J.lc=6;this.cb=!0}this.ra?(q[F++]=c,q[F++]=b,q[F++]=T,q[F++]=e,q[F++]=a,q[F++]=T,q[F++]=f,q[F++]=h,q[F++]=T,q[F++]=k,q[F++]=d,q[F++]=T):(q[F++]=
c,q[F++]=b,q[F++]=e,q[F++]=a,q[F++]=f,q[F++]=h,q[F++]=k,q[F++]=d);t[r++]=m;t[r++]=g;t[r++]=n;t[r++]=u;t[r++]=v;t[r++]=p;t[r++]=l;t[r++]=y;this.Kc=F;this.Ke=r};d.prototype.Yb=function(c){if(this.Wg!==c){if(!this.Fa[c]){if(0===this.Wg)return;c=0}var b=this.Tb();b.type=9;this.Wg=b.zb=c;this.cb=!1}};d.prototype.sh=function(c){c=this.Fa[c];return!(!c.of&&!c.nf)};d.prototype.Hl=function(c){c=this.Fa[c];return!!(c.of||c.nf||c.qn)};d.prototype.Gl=function(c){return this.Fa[c].Zc};d.prototype.Iu=function(c){c=
this.Fa[c];return 0!==c.Ak||0!==c.Bk};d.prototype.ot=function(c){return this.Fa[c].Ak};d.prototype.pt=function(c){return this.Fa[c].Bk};d.prototype.qt=function(c,b){return this.Fa[c].Y[b][2]};d.prototype.jj=function(c){return this.Fa[c].an};d.prototype.dg=function(c,b,e,a,f,h,k,d,m,g,n,u,v,p,l){var y=this.Fa[this.Wg],r,q;if(y.Lt||l.length){r=this.Tb();r.type=10;r.X?ac(this.oc,r.X):r.X=$b();q=r.X;q[0]=b;q[1]=e;q[2]=a;q[3]=f;q[4]=h;q[5]=k;q[6]=d;q[7]=m;q[8]=g;q[9]=n;q[10]=u;q[11]=v;q[12]=p;y.bh?r.Gc=
c:r.Gc=null;if(l.length)for(e=r.up,e.length=l.length,c=0,b=l.length;c<b;c++)e[c]=l[c];this.cb=!1}};d.prototype.clear=function(c,b,e,a){var f=this.Tb();f.type=7;f.zb=0;f.X||(f.X=$b());f.X[0]=c;f.X[1]=b;f.X[2]=e;f.X[3]=a;this.cb=!1};d.prototype.clearRect=function(c,b,e,a){if(!(0>e||0>a)){var f=this.Tb();f.type=7;f.zb=1;f.X||(f.X=$b());f.X[0]=c;f.X[1]=b;f.X[2]=e;f.X[3]=a;this.cb=!1}};d.prototype.op=function(c){if(this.ra&&(c=!!c,this.Pg!==c)){var b=this.Tb();b.type=14;b.zb=c?1:0;this.cb=!1;this.Pg=c;
this.nj=null;this.Pg?this.Yb(2):this.Yb(0)}};d.prototype.np=function(c){if(this.ra){var b=this.Tb();b.type=13;b.zb=c?1:0;this.cb=!1}};d.prototype.Dn=function(){ac(this.hl,t);this.Dc();this.rc();var c=this.width/2,b=this.height/2;this.wh(-c,b,c,b,c,-b,-c,-b);ac(t,this.oc);this.rc()};d.prototype.mp=function(c,b,e){this.Yb(3);var a=this.Tb();a.type=12;a.X||(a.X=$b());a.X[0]=c;a.X[1]=b;a.X[2]=e;a.X[3]=1;this.cb=!1};d.prototype.Zu=function(){this.Yb(0)};d.prototype.Qu=function(){this.Yb(2)};d.prototype.Hu=
function(){this.Fd();this.A.flush()};var q=[],r={};d.prototype.Er=function(){R(q);r={}};d.prototype.Ti=function(c,b,e,a){b=!!b;e=!!e;var f=c.src+","+b+","+e+(b?",undefined":""),h=null;if("undefined"!==typeof c.src&&r.hasOwnProperty(f))return h=r[f],h.ci++,h;this.Fd();var k=this.A,d=ma(c.width)&&ma(c.height),h=k.createTexture();k.bindTexture(k.TEXTURE_2D,h);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=k.RGBA,g=k.RGBA,n=k.UNSIGNED_BYTE;if(a&&!this.qe)switch(a){case 1:g=m=k.RGB;break;case 2:n=
k.UNSIGNED_SHORT_4_4_4_4;break;case 3:n=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:g=m=k.RGB,n=k.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!d&&b){a=document.createElement("canvas");a.width=na(c.width);a.height=na(c.height);var u=a.getContext("2d");"undefined"!==typeof u.imageSmoothingEnabled?u.imageSmoothingEnabled=e:(u.webkitImageSmoothingEnabled=e,u.mozImageSmoothingEnabled=e,u.msImageSmoothingEnabled=e);u.drawImage(c,0,0,c.width,c.height,0,0,a.width,a.height);k.texImage2D(k.TEXTURE_2D,0,m,g,n,a)}else k.texImage2D(k.TEXTURE_2D,
0,m,g,n,c);b?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));e?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.LINEAR),(d||2<=this.version)&&this.tn?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,
k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.ue=null;h.Te=c.width;h.Se=c.height;h.ci=1;h.jn=f;q.push(h);return r[f]=h};d.prototype.ec=function(c,b,e,a,f){this.Fd();var h=this.A;this.qe&&(a=!1);var k=h.createTexture();h.bindTexture(h.TEXTURE_2D,k);h.texImage2D(h.TEXTURE_2D,0,h.RGBA,c,b,0,h.RGBA,a?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,null);f?(h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.REPEAT)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE));h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,e?h.LINEAR:h.NEAREST);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,e?h.LINEAR:h.NEAREST);h.bindTexture(h.TEXTURE_2D,null);this.ue=null;k.Te=c;k.Se=b;q.push(k);return k};d.prototype.aq=function(c,b,e){this.Fd();var a=this.A;this.qe&&(e=
!1);a.bindTexture(a.TEXTURE_2D,b);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,e?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,c)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}a.bindTexture(a.TEXTURE_2D,null);this.ue=null};d.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.ci&&1<c.ci?c.ci--:(this.Fd(),c===this.ue&&(this.A.bindTexture(this.A.TEXTURE_2D,null),this.ue=null),c===this.kf&&(this.A.activeTexture(this.A.TEXTURE1),
this.A.bindTexture(this.A.TEXTURE_2D,null),this.A.activeTexture(this.A.TEXTURE0),this.kf=null),Ca(q,c),"undefined"!==typeof c.jn&&delete r[c.jn],this.A.deleteTexture(c)))};d.prototype.Ec=function(c){if(c!==this.nj){var b=this.Tb();b.type=6;this.nj=b.Gc=c;this.cb=!1}};hb=d})();
(function(){function d(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.pe=(this.Zk=/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.gf=!!a.dc;this.St="undefined"!==typeof window.AppMobi||
this.gf;this.Uc=!!window.c2cocoonjs;this.Vc=!!window.c2ejecta;this.Uc&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.Vc&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.xb=this.gf||this.Uc||this.Vc;this.Hi=
/edge\//i.test(navigator.userAgent);this.qe=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Hi;this.co=/tizen/i.test(navigator.userAgent);this.ao=/android/i.test(navigator.userAgent)&&!this.co&&!this.qe&&!this.Hi;this.jo=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.qe&&!this.Hi;this.bu=/ipad/i.test(navigator.userAgent);this.fl=this.jo||this.bu||this.Vc;this.Ut=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.qe&&!this.Hi;this.Rt=/amazonwebappplatform/i.test(navigator.userAgent);this.Wt=/firefox/i.test(navigator.userAgent);this.Ii="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.ho=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.$t=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Tg=!("undefined"===
typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.dl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.fo=!!window.cr_windows10;this.Zt=this.ho||this.$t||this.dl||this.fo;this.Tt=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.bo=this.ao&&!this.Ut&&!this.Zk&&!this.Wt&&!this.Rt&&!this.xb;this.devicePixelRatio=1;this.re=this.pe||this.Zk||this.St||this.Uc||this.ao||this.fl||this.Tg||this.dl||this.Tt||this.co||this.Vc;this.re||
(this.re=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.eo=!!(this.fl&&this.pe&&window.webkit);"undefined"===typeof cr_is_preview||this.Ii||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Ii=!0);this.canvas=a;this.ln=document.getElementById("c2canvasdiv");this.q=this.A=null;this.Pk="(unavailable)";this.ra=!1;this.Ye=0;this.wa=null;this.si=!1;this.Uo=this.Vo=
0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.gf&&(window.c2runtime=this);this.Ii&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.bo&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=
a.width;this.height=a.height;this.O=this.width;this.N=this.height;this.ii=this.width;this.wg=this.height;this.Sf=window.innerWidth;this.Rf=window.innerHeight;this.ga=!0;this.Sg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.u=[];this.Ca=[];this.nl={};this.Wc=[];this.zk={};this.Gd=[];this.ng=[];this.Qj=[];this.qr=[];this.rr=[];this.cm=null;this.Ve={};this.al=this.ne=!1;this.nc=0;this.$k=this.cl=!1;this.Qc=[];this.Qg=!1;this.Ri=this.Sl="";this.Va=null;this.Md=
"";this.Ih=this.wp=!1;this.ri=[];this.Xe=this.We=0;this.Lo=30;this.ok=this.gh=0;this.jg=1;this.Rb=new Va;this.Vj=new Va;this.cj=this.yi=this.bf=this.Hc=this.mf=this.xi=this.Mi=0;this.lk=null;this.oi=[];this.yk=[];this.pi=-1;this.sl=[[]];this.pm=this.Xi=0;this.kj(null);this.tl=[];this.Zi=-1;this.Ag=this.Qo=this.mh=0;this.Gj=[];this.mm=this.Kl=-1;this.Li=!0;this.Vi=0;this.Rg=!1;this.$u=0;this.sg=null;this.wc=this.Pn=!1;this.So=new ga;this.zl=new ga;this.To=new ga;this.zh=[];this.cd=new Xa([]);this.fm=
new Xa([]);this.Cf=[];this.Mf={};this.ge={};this.be={};this.mg={};this.en={};this.po=this.Qi=this.Na=this.Ua=this.oo=this.Pi=this.ta=null;this.kg=this.el=!1;this.Fk=[null,null];this.cf=0;this.Rd={};this.Hh=this.we=null;this.yp="";this.bj=[];this.Pu()}}function g(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function p(){try{return!!window.indexedDB}catch(a){return!1}}function m(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function t(a,b,c,f){try{var e=indexedDB.open("_C2SaveStates");
e.onupgradeneeded=m;e.onerror=f;e.onsuccess=function(e){e=e.target.result;e.onerror=f;e.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=c}}catch(k){f(k)}}function q(a,b,c){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=m;f.onerror=c;f.onsuccess=function(f){f=f.target.result;f.onerror=c;var e=f.transaction(["saves"]).objectStore("saves").get(a);e.onsuccess=function(){e.result?b(e.result.data):b(null)}}}catch(e){c(e)}}function r(){x("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(a){var b,c={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ga||a[b]&&"undefined"!==typeof a[b].cw||"spriteCreatedDestroyCallback"!==b&&(c[b]=a[b]);return c}var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Pu=
function(){var a=this;if(this.eo)this.Ws(function(b){a.Zg(JSON.parse(b))},function(){alert("Error fetching data.js")});else{var b;this.Tg?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var c="data.js";if(this.ho||this.Tg||this.dl||this.fo)c="data.json";b.open("GET",c,!0);var f=!1;if(!this.xb&&"response"in b&&"responseType"in b)try{b.responseType="json",f="json"===b.responseType}catch(e){f=!1}if(!f&&"responseType"in b)try{b.responseType="text"}catch(k){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(h){}this.Tg?
b.onreadystatechange=function(){4===b.readyState&&a.Zg(JSON.parse(b.responseText))}:(b.onload=function(){if(f)a.Zg(b.response);else if(a.Vc){var c=b.responseText,c=c.substr(c.indexOf("{"));a.Zg(JSON.parse(c))}else a.Zg(JSON.parse(b.responseText))},b.onerror=function(a){ja("Error requesting "+c+":");ja(a)});b.send()}};d.prototype.Pt=function(){var a=this,b,c,f,e,k,h,l,d,n;this.hf=(!this.xb||this.Vc||this.pe)&&this.iv&&!this.bo;0===this.Ob&&this.fl&&(this.hf=!1);this.devicePixelRatio=this.hf?window.devicePixelRatio||
window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.ob();0<this.Ob&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.lu();x("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.q.Un();a.q.Td(a.q.width,a.q.height,!0);a.Ua=null;a.Na=null;a.Fk[0]=null;a.Fk[1]=null;a.mu();a.ga=!0;x("[Construct 2] WebGL context restored");
window.cr_setSuspended(!1)},!1);try{this.ms&&(this.Uc||this.Vc||!this.xb)&&(b={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.A=this.canvas.getContext("webgl2",b)||this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(v){}if(this.A){if(b=this.A.getExtension("WEBGL_debug_renderer_info"))this.Pk=this.A.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.A.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.ra&&(this.Pk+=
" [front-to-back enabled]");this.xb||(this.lb=document.createElement("canvas"),jQuery(this.lb).appendTo(this.canvas.parentNode),this.lb.oncontextmenu=function(){return!1},this.lb.onselectstart=function(){return!1},this.lb.width=Math.round(this.ii*this.devicePixelRatio),this.lb.height=Math.round(this.wg*this.devicePixelRatio),jQuery(this.lb).css({width:this.ii+"px",height:this.wg+"px"}),this.cp(),this.Dl=this.lb.getContext("2d"));this.q=new hb(this.A,this.re,this.ra);this.q.Td(this.canvas.width,this.canvas.height);
this.q.tn=0!==this.ds;this.wa=null;b=0;for(c=this.u.length;b<c;b++)for(k=this.u[b],f=0,e=k.S.length;f<e;f++)l=k.S[f],l.Pa=this.q.Ok(l.id),l.Zc=this.q.Gl(l.Pa),this.kg=this.kg||this.q.sh(l.Pa);b=0;for(c=this.Wc.length;b<c;b++){d=this.Wc[b];f=0;for(e=d.S.length;f<e;f++)l=d.S[f],l.Pa=this.q.Ok(l.id),l.Zc=this.q.Gl(l.Pa);d.gd();f=0;for(e=d.V.length;f<e;f++){n=d.V[f];k=0;for(h=n.S.length;k<h;k++)l=n.S[k],l.Pa=this.q.Ok(l.id),l.Zc=this.q.Gl(l.Pa),this.kg=this.kg||this.q.sh(l.Pa);n.gd()}}}else{if(0<this.Ob&&
this.gf){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.wa=AppMobi.canvas.getContext("2d");try{this.wa.samplingMode=this.za?"smooth":"sharp",this.wa.globalScale=1,this.wa.HTML5CompatibilityMode=!0,this.wa.imageSmoothingEnabled=this.za}catch(m){}0!==this.width&&0!==this.height&&(this.wa.width=this.width,this.wa.height=this.height)}this.wa||(this.Uc?(b={antialias:!!this.za,alpha:!0},this.wa=this.canvas.getContext("2d",b)):(b={alpha:!0},
this.wa=this.canvas.getContext("2d",b)),this.uj(this.wa,this.za));this.Dl=this.lb=null}this.Fp=function(b){a.Hb(!1,b)};window==window.top||this.xb||this.Zt||this.Tg||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Uc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(x("Reloading for continuous preview"),
this.Ri="__c2_continuouspreview",this.Ih=!0),this.zu&&!this.re&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var b=window.parent;b&&b.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Be()});this.xb||(b=function(a){if(gb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},"undefined"!==typeof PointerEvent?
document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.Ob&&this.hf&&1<this.devicePixelRatio&&this.setSize(this.Ja,this.Ia,!0);this.Pp();this.Ht();this.go();this.I={}};d.prototype.setSize=function(a,b,c){var f=0,e=0,k=0,h=0,h=0;if(this.Sf!==a||this.Rf!==b||c){this.Sf=a;this.Rf=b;var l=this.Ob;if((k=(document.mozFullScreen||document.webkitIsFullScreen||
!!document.msFullscreenElement||document.fullScreen||this.Rg)&&!this.pe)||0!==this.Ob||c)k&&0<this.cf&&(l=this.cf),c=this.devicePixelRatio,4<=l?(k=this.Ja/this.Ia,a/b>k?(k*=b,5===l?(h=k*c/this.Ja,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),k=this.Ja*h/c,h=this.Ia*h/c,f=(a-k)/2,e=(b-h)/2,a=k,b=h):(f=(a-k)/2,a=k)):(h=a/k,5===l?(h=h*c/this.Ia,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),k=this.Ja*h/c,h=this.Ia*h/c,f=(a-k)/2,e=(b-h)/2,a=k):e=(b-h)/2,b=h)):this.Ii&&this.Rg&&0===this.En&&(f=Math.floor((a-
this.Ja)/2),e=Math.floor((b-this.Ia)/2),a=this.Ja,b=this.Ia),2>l&&(this.rg=c),this.ii=Math.round(a),this.wg=Math.round(b),this.width=Math.round(a*c),this.height=Math.round(b*c),this.ga=!0,this.bq?(this.O=this.width,this.N=this.height,this.kc=!0):this.width<this.Ja&&this.height<this.Ia||1===l?(this.O=this.width,this.N=this.height,this.kc=!0):(this.O=this.Ja,this.N=this.Ia,this.kc=!1,2===l?(k=this.Ja/this.Ia,l=this.Sf/this.Rf,l<k?this.O=this.N*l:l>k&&(this.N=this.O/l)):3===l&&(k=this.Ja/this.Ia,l=this.Sf/
this.Rf,l>k?this.O=this.N*l:l<k&&(this.N=this.O/l))),this.ln&&!this.xb&&(jQuery(this.ln).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(e)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*c),this.canvas.height=Math.round(b*c),this.Vc?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(e)+"px",
this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.hf&&!this.xb&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.lb&&(this.lb.width=Math.round(a*c),this.lb.height=Math.round(b*c),this.lb.style.width=this.ii+"px",this.lb.style.height=this.wg+"px"),this.q&&this.q.Td(Math.round(a*c),Math.round(b*c)),this.gf&&this.wa&&(this.wa.width=Math.round(a),this.wa.height=Math.round(b)),this.wa&&this.uj(this.wa,this.za),this.Pp(),
this.jo&&!this.pe&&window.scrollTo(0,0)}};d.prototype.Pp=function(){if(this.tr&&0!==this.Cl){var a="portrait";2===this.Cl&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",
b)}}};d.prototype.lu=function(){this.q.Er();this.el=!0;var a,b,c;a=0;for(b=this.u.length;a<b;a++)c=this.u[a],c.ph&&c.ph()};d.prototype.mu=function(){this.el=!1;var a,b,c;a=0;for(b=this.u.length;a<b;a++)c=this.u[a],c.dj&&c.dj()};d.prototype.cp=function(){if(!this.xb){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Rg)&&!this.pe?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.lb).css(a)}};
var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(a){var b;if(a&&!this.Sg)for(x("[Construct 2] Suspending"),this.Sg=!0,-1!==this.Kl&&e&&e(this.Kl),-1!==this.mm&&clearTimeout(this.mm),a=0,b=this.Gj.length;a<b;a++)this.Gj[a](!0);else if(!a&&this.Sg){x("[Construct 2] Resuming");this.Sg=!1;this.Mi=Ra();this.mf=Ra();a=this.gh=this.yi=0;for(b=this.Gj.length;a<
b;a++)this.Gj[a](!1);this.Hb(!1)}};d.prototype.$d=function(a){return this.bj[a]};d.prototype.Zg=function(a){a&&a.project||ja("Project model unavailable");a=a.project;this.name=a[0];this.zn=a[1];this.Ob=a[12];this.En=a[12];this.Ja=a[10];this.Ia=a[11];this.Xo=this.Ja/2;this.Yo=this.Ia/2;this.xb&&!this.Vc&&(4<=a[12]||0===a[12])&&(x("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.En=this.Ob=3);this.wm=a[18];this.xe=a[19];if(0===
this.xe){var b=new Image;b.crossOrigin="anonymous";this.pp(b,"loading-logo.png");this.we={Yi:b}}else if(4===this.xe){b=new Image;b.src="";var c=new Image;c.src="";var f=new Image;f.src="";var e=new Image;e.src="";var k=new Image;k.src="";var h=new Image;h.src="";var l=new Image;l.src="";var d=new Image;d.src="";var n=new Image;n.src="";var v=new Image;v.src="";var m=new Image;m.src="";var u=new Image;u.src="";this.we={Yi:[b,c,f,e],Eu:[k,h,l,d],lv:[n,v,m,u]}}this.mh=a[21];this.bj=ec();this.yd=new Y(this);
b=0;for(c=a[2].length;b<c;b++)l=a[2][b],f=this.$d(l[0]),ib(l,f.prototype),d=new f(this),d.Ej=l[1],d.te=l[2],d.au=l[5],d.No=l[9],d.K&&d.K(),this.plugins.push(d);this.bj=ec();b=0;for(c=a[3].length;b<c;b++){l=a[3][b];k=this.$d(l[1]);d=null;f=0;for(e=this.plugins.length;f<e;f++)if(this.plugins[f]instanceof k){d=this.plugins[f];break}n=new d.aa(d);n.name=l[0];n.J=l[2];n.Yk=l[3].slice(0);n.jv=l[3].length;n.ur=l[4];n.bt=l[5];n.Z=l[11];n.J?(n.Wf=[],n.Hd=this.Ag++,n.Aa=null):(n.Wf=null,n.Hd=-1,n.Aa=[]);n.qi=
null;n.Jf=null;n.un=null;n.jb=!1;n.cc=null;l[6]?(n.Ij=l[6][0],n.Jj=l[6][1],n.gm=l[6][2]):(n.Ij=null,n.Jj=0,n.gm=0);l[7]?n.ac=l[7]:n.ac=null;n.index=b;n.i=[];n.mi=[];n.Wd=[new jb(n)];n.nd=0;n.vc=null;n.Jr=0;n.hg=!0;n.Sj=kb;n.it=lb;n.nt=mb;n.Q=nb;n.vh=ob;n.$f=pb;n.Sd=qb;n.Bi=rb;n.Gk=sb;n.Jk=tb;n.Mc=ub;n.Kk=vb;n.fi=new Ya(this.Ja,this.Ia);n.Vh=!0;n.Wh=!1;n.I={};n.toString=wb;n.Ca=[];f=0;for(e=l[8].length;f<e;f++){v=l[8][f];m=this.$d(v[1]);u=null;k=0;for(h=this.Ca.length;k<h;k++)if(this.Ca[k]instanceof
m){u=this.Ca[k];break}u||(u=new m(this),u.yl=[],u.kh=new ga,u.K&&u.K(),this.Ca.push(u),fc&&u instanceof fc&&(this.cm=u));-1===u.yl.indexOf(n)&&u.yl.push(n);k=new u.aa(u,n);k.name=v[0];k.Z=v[2];k.K();n.Ca.push(k)}n.global=l[9];n.bl=l[10];n.S=[];f=0;for(e=l[12].length;f<e;f++)n.S.push({id:l[12][f][0],name:l[12][f][1],Pa:-1,Zc:!1,ic:!0,index:f});n.Lj=l[13];this.wm&&!n.J&&!n.bl&&d.te||n.K();n.name&&(this.types[n.name]=n);this.u.push(n);d.Ej&&(f=new d.U(n),f.uid=this.mh++,f.fp=this.Qo++,f.ff=0,f.Gg=xb,
f.toString=yb,f.D=l[14],f.K(),n.i.push(f),this.Rd[f.uid.toString()]=f)}b=0;for(c=a[4].length;b<c;b++)for(k=a[4][b],h=this.u[k[0]],f=1,e=k.length;f<e;f++)l=this.u[k[f]],l.Aa.push(h),h.Wf.push(l);b=0;for(c=a[28].length;b<c;b++){k=a[28][b];h=[];f=0;for(e=k.length;f<e;f++)h.push(this.u[k[f]]);f=0;for(e=h.length;f<e;f++)h[f].jb=!0,h[f].cc=h}if(0<this.Ag)for(b=0,c=this.u.length;b<c;b++)if(l=this.u[b],!l.J&&l.Aa.length){l.qi=Array(this.Ag);l.Jf=Array(this.Ag);l.un=Array(this.Ag);n=[];f=u=m=v=0;for(e=l.Aa.length;f<
e;f++)for(d=l.Aa[f],l.qi[d.Hd]=v,v+=d.jv,l.Jf[d.Hd]=m,m+=d.ur,l.un[d.Hd]=u,u+=d.bt,k=0,h=d.S.length;k<h;k++)n.push(va({},d.S[k]));l.S=n.concat(l.S);f=0;for(e=l.S.length;f<e;f++)l.S[f].index=f}b=0;for(c=a[5].length;b<c;b++)l=a[5][b],f=new zb(this,l),this.nl[f.name]=f,this.Wc.push(f);b=0;for(c=a[6].length;b<c;b++)l=a[6][b],f=new Ab(this,l),this.zk[f.name]=f,this.Gd.push(f);b=0;for(c=this.Gd.length;b<c;b++)this.Gd[b].Ka();b=0;for(c=this.Gd.length;b<c;b++)this.Gd[b].tm();b=0;for(c=this.Qj.length;b<c;b++)this.Qj[b].Ka();
R(this.Qj);this.sr=a[7];this.qc=a[9];this.rg=1;this.ms=a[13];this.za=a[14];this.nn=a[15];this.iv=a[17];this.Cl=a[20];this.tr=0<this.Cl;this.zu=a[22];this.kc=this.bq=a[23];this.ds=a[24];this.Fu=a[25];this.ra=a[27]&&!this.qe;this.Fj=Date.now();R(this.bj);this.Pt()};var a=!1,f=0,h=[];d.prototype.Nu=function(a,b){function c(){f--;e.Io()}var e=this;a.addEventListener("load",c);a.addEventListener("error",c);h.push([a,b]);this.Io()};d.prototype.Io=function(){for(var a;h.length&&100>f;)f++,a=h.shift(),this.pp(a[0],
a[1])};d.prototype.xm=function(b,c){b.cocoonLazyLoad=!0;b.onerror=function(c){a=b.hn=!0;console&&console.error&&console.error("Error loading image '"+b.src+"': ",c)};this.Vc?b.src=c:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(c,function(a){b.src=a},function(f){a=b.hn=!0;console&&console.error&&console.error("Error extracting image '"+c+"' from expansion file: ",f)}):(b.crossOrigin="anonymous",this.Nu(b,c)));this.ng.push(b)};d.prototype.Zs=function(a){var b,c;b=0;for(c=this.ng.length;b<
c;b++)if(this.ng[b].Fr===a)return this.ng[b];return null};var k=0,B=!1;d.prototype.Ht=function(){this.sg&&(k=this.sg.lw(this.sr))};d.prototype.cn=function(){var a=k,b=0,c=0,f=!0,e,l,c=0;for(e=this.ng.length;c<e;c++){l=this.ng[c];var h=l.pk;if(!h||0>=h)h=5E4;a+=h;l.src&&(l.complete||l.loaded)&&!l.hn?b+=h:f=!1}f&&this.Fu&&this.sg&&(B||(this.sg.mw(),B=!0),c=this.sg.ew(),b+=c,c<k&&(f=!1));this.$c=0==a?1:b/a;return f};var H=!1;d.prototype.go=function(){if(this.wa||this.q){var c=this.wa||this.Dl;this.lb&&
this.cp();var f=window.innerWidth,e=window.innerHeight;this.Sf===f&&this.Rf===e||this.setSize(f,e);this.$c=0;this.no=-1;var k=this;if(this.cn()&&(4!==this.xe||H))this.It();else{e=Date.now()-this.Fj;if(c){var l=this.width,h=this.height,f=this.devicePixelRatio;if(3>this.xe&&(this.Uc||500<=e&&this.no!=this.$c)){c.clearRect(0,0,l,h);var e=l/2,h=h/2,l=0===this.xe&&this.we.Yi.complete,n=40*f,d=0,v=80*f,u;if(l){var m=this.we.Yi,v=m.width*f;u=m.height*f;n=v/2;d=u/2;c.drawImage(m,N(e-n),N(h-d),v,u)}1>=this.xe?
(e=N(e-n)+.5,h=N(h+(d+(l?12*f:0)))+.5,c.fillStyle=a?"red":"DodgerBlue",c.fillRect(e,h,Math.floor(v*this.$c),6*f),c.strokeStyle="black",c.strokeRect(e,h,v,6*f),c.strokeStyle="white",c.strokeRect(e-1*f,h-1*f,v+2*f,8*f)):2===this.xe&&(c.font=this.Vc?"12pt ArialMT":"12pt Arial",c.fillStyle=a?"#f00":"#999",c.ow="middle",f=Math.round(100*this.$c)+"%",l=c.measureText?c.measureText(f):null,c.fillText(f,e-(l?l.width:0)/2,h));this.no=this.$c}else if(4===this.xe){this.ks(c);b?b(function(){k.go()}):setTimeout(function(){k.go()},
16);return}}setTimeout(function(){k.go()},this.Uc?10:100)}}};var C=-1,n="undefined"===typeof cr_is_preview?200:0,u=!0,v=!1,M=0,l=0,y="undefined"===typeof cr_is_preview?3E3:0,F=null,ca=null,fa=0;d.prototype.ks=function(b){if(!H){for(var c=Math.ceil(this.width),f=Math.ceil(this.height),e=this.we.Yi,k=this.we.Eu,h=this.we.lv,d=0;4>d;++d)if(!e[d].complete||!k[d].complete||!h[d].complete)return;0===fa&&(C=Date.now());var d=Date.now(),m=!1,r=b,p,B;u||v?(b.clearRect(0,0,c,f),F&&F.width===c&&F.height===f||
(F=document.createElement("canvas"),F.width=c,F.height=f,ca=F.getContext("2d")),r=ca,m=!0,u&&1===fa&&(C=Date.now())):b.globalAlpha=1;r.fillStyle="#333333";r.fillRect(0,0,c,f);256<this.wg?(p=Da(.22*f,105,.6*c),B=.25*p,r.drawImage(g(k,p),.5*c-p/2,.2*f-B/2,p,B),B=p=Math.min(.395*f,.95*c),r.drawImage(g(e,p),.5*c-p/2,.485*f-B/2,p,B),p=Da(.22*f,105,.6*c),B=.25*p,r.drawImage(g(h,p),.5*c-p/2,.868*f-B/2,p,B),r.fillStyle="#3C3C3C",p=c,B=Math.max(.005*f,2),r.fillRect(0,.8*f-B/2,p,B),r.fillStyle=a?"red":"#E0FF65",
p=c*this.$c,r.fillRect(.5*c-p/2,.8*f-B/2,p,B)):(B=p=.55*f,r.drawImage(g(e,p),.5*c-p/2,.45*f-B/2,p,B),r.fillStyle="#3C3C3C",p=c,B=Math.max(.005*f,2),r.fillRect(0,.85*f-B/2,p,B),r.fillStyle=a?"red":"#E0FF65",p=c*this.$c,r.fillRect(.5*c-p/2,.85*f-B/2,p,B));m&&(u?b.globalAlpha=0===fa?0:Math.min((d-C)/300,1):v&&(b.globalAlpha=Math.max(1-(d-l)/300,0)),b.drawImage(F,0,0,c,f));u&&300<=d-C&&2<=fa&&(u=!1,M=d);!u&&d-M>=y&&!v&&1<=this.$c&&(v=!0,l=d);if(v&&d-l>=300+n||"undefined"!==typeof cr_is_preview&&1<=this.$c&&
500>Date.now()-C)H=!0,v=u=!1,this.we=ca=F=null;++fa}};d.prototype.It=function(){this.lb&&(this.canvas.parentNode.removeChild(this.lb),this.lb=this.Dl=null);this.Fj=Date.now();this.mf=Ra();var a,b,c;if(this.wm)for(a=0,b=this.u.length;a<b;a++)c=this.u[a],c.J||c.bl||!c.ma.te||c.K();else this.Li=!1;a=0;for(b=this.Wc.length;a<b;a++)this.Wc[a].Gr();2<=this.Ob&&(a=this.Ja/this.Ia,b=this.width/this.height,this.rg=2!==this.Ob&&b>a||2===this.Ob&&b<a?this.height/this.Ia:this.width/this.Ja);this.zn?this.nl[this.zn].dm():
this.Wc[0].dm();this.wm||(this.Vi=1,this.trigger(Y.prototype.p.Mm,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.u.length;a<b;a++)c=this.u[a],c.ku&&c.ku();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Hb(!1);this.gf&&AppMobi.webview.execute("onGameReady();")};d.prototype.Hb=function(a,c,f){if(this.ta){var e=Ra();if(f||!this.Sg||a){a||
(b?this.Kl=b(this.Fp):this.mm=setTimeout(this.Fp,this.re?1:16));c=c||e;var k=this.Ob;((f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.pe)||this.Rg)&&0<this.cf&&(k=this.cf);if(0<k){var k=window.innerWidth,l=window.innerHeight;this.Sf===k&&this.Rf===l||this.setSize(k,l)}this.xb||(f?this.si||(this.si=!0):this.si?(this.si=!1,0===this.Ob&&this.setSize(Math.round(this.Vo/this.devicePixelRatio),Math.round(this.Uo/this.devicePixelRatio),
!0)):(this.Vo=this.width,this.Uo=this.height));this.Li&&(f=this.cn(),this.Vi=this.$c,f&&(this.Li=!1,this.$c=1,this.trigger(Y.prototype.p.Mm,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.eu(c);!this.ga&&!this.Uc||this.el||this.Ih||a||(this.ga=!1,this.q?this.Eb():this.Sc(),this.Hh&&(this.canvas&&this.canvas.toDataURL&&(this.yp=this.canvas.toDataURL(this.Hh[0],this.Hh[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.yp),this.trigger(Y.prototype.p.Nq,null)),this.Hh=null));this.fw||(this.Hc++,
this.bf++,this.yi++);this.gh+=Ra()-e}}};d.prototype.eu=function(a){var b,c,f,e,k,l,h,n;1E3<=a-this.mf&&(this.mf+=1E3,1E3<=a-this.mf&&(this.mf=a),this.xi=this.yi,this.yi=0,this.ok=this.gh,this.gh=0);b=0;0!==this.Mi&&(b=a-this.Mi,0>b&&(b=0),this.Xe=b/=1E3,.5<this.Xe?this.Xe=0:this.Xe>1/this.Lo&&(this.Xe=1/this.Lo));this.Mi=a;this.We=this.Xe*this.jg;this.Rb.add(this.We);this.Vj.add(b);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Rg)&&
!this.pe;2<=this.Ob||a&&0<this.cf?(b=this.Ja/this.Ia,c=this.width/this.height,f=this.Ob,a&&0<this.cf&&(f=this.cf),this.rg=2!==f&&c>b||2===f&&c<b?this.height/this.Ia:this.width/this.Ja,this.ta&&(this.ta.Tl(this.ta.scrollX),this.ta.Ul(this.ta.scrollY))):this.rg=this.hf?this.devicePixelRatio:1;this.ob();this.nc++;this.yd.Su();this.nc--;this.ob();this.nc++;c=this.So.Ic();a=0;for(b=c.length;a<b;a++)c[a].jw();a=0;for(b=this.u.length;a<b;a++)if(l=this.u[a],!l.J&&(l.Ca.length||l.Aa.length))for(c=0,f=l.i.length;c<
f;c++)for(h=l.i[c],e=0,k=h.L.length;e<k;e++)h.L[e].Hb();a=0;for(b=this.u.length;a<b;a++)if(l=this.u[a],!l.J&&(l.Ca.length||l.Aa.length))for(c=0,f=l.i.length;c<f;c++)for(h=l.i[c],e=0,k=h.L.length;e<k;e++)n=h.L[e],n.Du&&n.Du();c=this.zl.Ic();a=0;for(b=c.length;a<b;a++)c[a].Hb();this.nc--;this.Kt();for(a=0;this.lk&&10>a++;)this.sn(this.lk);a=0;for(b=this.Gd.length;a<b;a++)this.Gd[a].Sk=!1;this.ta.Ze&&this.ta.Ze.Oa();R(this.zh);this.nc++;a=0;for(b=this.u.length;a<b;a++)if(l=this.u[a],!l.J&&(l.Ca.length||
l.Aa.length))for(c=0,f=l.i.length;c<f;c++)for(h=l.i[c],e=0,k=h.L.length;e<k;e++)n=h.L[e],n.ig&&n.ig();c=this.To.Ic();a=0;for(b=c.length;a<b;a++)c[a].ig();this.nc--};d.prototype.Be=function(){var a,b,c,f,e,k,l,h,n;a=0;for(b=this.u.length;a<b;a++)if(l=this.u[a],!l.J)for(c=0,f=l.i.length;c<f;c++)if(h=l.i[c],h.Be&&h.Be(),h.L)for(e=0,k=h.L.length;e<k;e++)n=h.L[e],n.Be&&n.Be()};d.prototype.sn=function(a){var b=this.ta;this.ta.av();var c,f,e;if(this.q)for(c=0,f=this.u.length;c<f;c++)e=this.u[c],e.J||!e.Rj||
e.global&&0!==e.i.length||-1!==a.Lg.indexOf(e)||e.Rj();b==a&&R(this.yd.$b);R(this.zh);this.jp(!0);a.dm();this.jp(!1);this.ga=!0;this.ob()};d.prototype.jp=function(a){var b,c,f,e,k,l,h,n,d;b=0;for(c=this.Ca.length;b<c;b++)f=this.Ca[b],a?f.nh&&f.nh():f.oh&&f.oh();b=0;for(c=this.u.length;b<c;b++)if(f=this.u[b],f.global||f.ma.Ej)for(e=0,k=f.i.length;e<k;e++)if(l=f.i[e],a?l.nh&&l.nh():l.oh&&l.oh(),l.L)for(h=0,n=l.L.length;h<n;h++)d=l.L[h],a?d.nh&&d.nh():d.oh&&d.oh()};d.prototype.Gp=function(a){this.zl.add(a)};
d.prototype.Bg=function(a){return a&&-1!==a.lh?this.Xe*a.lh:this.We};d.prototype.Sc=function(){this.ta.Sc(this.wa);this.gf&&this.wa.present()};d.prototype.Eb=function(){this.ra&&(this.Ye=1,this.ta.ke(this.q));this.ta.Eb(this.q);this.q.Hu()};d.prototype.Ym=function(a){a&&this.oi.push(a)};d.prototype.Ou=function(a){Ca(this.oi,a)};d.prototype.Mk=function(a){a=a.toString();return this.Rd.hasOwnProperty(a)?this.Rd[a]:null};var P=[];d.prototype.Me=function(a){var b,c;b=a.type.name;var f=null;if(this.Ve.hasOwnProperty(b)){if(f=
this.Ve[b],f.contains(a))return}else f=P.length?P.pop():new ga,this.Ve[b]=f;f.add(a);this.ne=!0;if(a.jb)for(b=0,c=a.siblings.length;b<c;b++)this.Me(a.siblings[b]);this.al&&f.lg.push(a);this.$k||(this.nc++,this.trigger(Object.getPrototypeOf(a.type.ma).p.Im,a),this.nc--)};d.prototype.ob=function(){if(this.ne){var a,b,c,f,e,k;this.al=!0;c=0;for(e=this.Qc.length;c<e;++c)for(a=this.Qc[c],b=a.type,b.i.push(a),f=0,k=b.Aa.length;f<k;++f)b.Aa[f].i.push(a),b.Aa[f].hg=!0;R(this.Qc);this.Hq();Qa(this.Ve);this.ne=
this.al=!1}};d.prototype.Hq=function(){for(var a in this.Ve)this.Ve.hasOwnProperty(a)&&this.nq(this.Ve[a])};d.prototype.nq=function(a){var b=a.Ic(),c=b[0].type,f,e,k,l,h,n;Sa(c.i,a);c.hg=!0;0===c.i.length&&(c.Wh=!1);f=0;for(e=c.Aa.length;f<e;++f)n=c.Aa[f],Sa(n.i,a),n.hg=!0;f=0;for(e=this.yd.$b.length;f<e;++f)if(h=this.yd.$b[f],h.Gb.hasOwnProperty(c.index)&&Sa(h.Gb[c.index].Kd,a),!c.J)for(k=0,l=c.Aa.length;k<l;++k)n=c.Aa[k],h.Gb.hasOwnProperty(n.index)&&Sa(h.Gb[n.index].Kd,a);if(h=b[0].n){if(h.sc)for(k=
h.i,f=0,e=k.length;f<e;++f)l=k[f],a.contains(l)&&(l.ja(),h.nb.update(l,l.Vb,null),l.Vb.set(0,0,-1,-1));Sa(h.i,a);h.Dh(0)}for(f=0;f<b.length;++f)this.mq(b[f],c);a.clear();P.push(a);this.ga=!0};d.prototype.mq=function(a,b){var c,f,e;c=0;for(f=this.oi.length;c<f;++c)this.oi[c](a);a.he&&b.fi.update(a,a.he,null);(c=a.n)&&c.ag(a,!0);if(a.L)for(c=0,f=a.L.length;c<f;++c)e=a.L[c],e.ud&&e.ud(),e.behavior.kh.remove(a);this.So.remove(a);this.zl.remove(a);this.To.remove(a);a.ud&&a.ud();this.Rd.hasOwnProperty(a.uid.toString())&&
delete this.Rd[a.uid.toString()];this.cj--;100>b.mi.length&&b.mi.push(a)};d.prototype.qk=function(a,b,c,f){if(a.J){var e=N(Math.random()*a.Wf.length);return this.qk(a.Wf[e],b,c,f)}return a.vc?this.ie(a.vc,b,!1,c,f,!1):null};var T=[];d.prototype.ie=function(a,b,c,f,e,k){var l,h,n,d;if(!a)return null;var v=this.u[a[1]],u=v.ma.te;if(this.Li&&u&&!v.bl||u&&!this.q&&11===a[0][11])return null;var m=b;u||(b=null);var g;v.mi.length?(g=v.mi.pop(),g.Ub=!0,v.ma.U.call(g,v)):(g=new v.ma.U(v),g.Ub=!1);!c||k||this.Rd.hasOwnProperty(a[2].toString())?
g.uid=this.mh++:g.uid=a[2];this.Rd[g.uid.toString()]=g;g.fp=this.Qo++;g.ff=v.i.length;l=0;for(h=this.Qc.length;l<h;++l)this.Qc[l].type===v&&g.ff++;g.Gg=xb;g.toString=yb;n=a[3];if(g.Ub)Qa(g.I);else{g.I={};if("undefined"!==typeof cr_is_preview)for(g.Xn=[],g.Xn.length=n.length,l=0,h=n.length;l<h;l++)g.Xn[l]=n[l][1];g.Ta=[];g.Ta.length=n.length}l=0;for(h=n.length;l<h;l++)g.Ta[l]=n[l][0];if(u){var y=a[0];g.x=ka(f)?y[0]:f;g.y=ka(e)?y[1]:e;g.z=y[2];g.width=y[3];g.height=y[4];g.depth=y[5];g.k=y[6];g.opacity=
y[7];g.Pb=y[8];g.Qb=y[9];g.pb=y[10];l=y[11];!this.q&&v.S.length&&(g.pb=l);g.tg=$a(g.pb);this.A&&ab(g,g.pb,this.A);if(g.Ub){l=0;for(h=y[12].length;l<h;l++)for(n=0,d=y[12][l].length;n<d;n++)g.Da[l][n]=y[12][l][n];g.ua.set(0,0,0,0);g.he.set(0,0,-1,-1);g.Vb.set(0,0,-1,-1);g.sb.fg(g.ua);R(g.dk)}else{g.Da=y[12].slice(0);l=0;for(h=g.Da.length;l<h;l++)g.Da[l]=y[12][l].slice(0);g.da=[];g.ae=[];g.ae.length=v.S.length;g.ua=new O(0,0,0,0);g.he=new O(0,0,-1,-1);g.Vb=new O(0,0,-1,-1);g.sb=new ua;g.dk=[];g.P=Bb;
g.bw=Cb;g.Sa=Db;g.ja=Eb;g.hv=Fb;g.Wp=Gb;g.sd=Hb}g.wf=!1;g.Kp=0;g.Jp=0;g.Ip=null;14===y.length&&(g.wf=!0,g.Kp=y[13][0],g.Jp=y[13][1],g.Ip=y[13][2]);l=0;for(h=v.S.length;l<h;l++)g.ae[l]=!0;g.Ud=!0;g.gd=Ib;g.gd();g.Yp=!!g.da.length;g.ck=!0;g.ik=!0;v.Vh=!0;g.visible=!0;g.lh=-1;g.n=b;g.hd=b.i.length;g.Ye=0;"undefined"===typeof g.ba&&(g.ba=null);this.ga=g.md=!0}var p;R(T);l=0;for(h=v.Aa.length;l<h;l++)T.push.apply(T,v.Aa[l].Ca);T.push.apply(T,v.Ca);if(g.Ub)for(l=0,h=T.length;l<h;l++){var r=T[l];p=g.L[l];
p.Ub=!0;r.behavior.U.call(p,r,g);y=a[4][l];n=0;for(d=y.length;n<d;n++)p.D[n]=y[n];p.K();r.behavior.kh.add(g)}else for(g.L=[],l=0,h=T.length;l<h;l++)r=T[l],p=new r.behavior.U(r,g),p.Ub=!1,p.D=a[4][l].slice(0),p.K(),g.L.push(p),r.behavior.kh.add(g);y=a[5];if(g.Ub)for(l=0,h=y.length;l<h;l++)g.D[l]=y[l];else g.D=y.slice(0);this.Qc.push(g);this.ne=!0;b&&(b.qg(g,!0),1!==b.Bc||1!==b.Cc)&&(v.Wh=!0);this.cj++;if(v.jb){if(g.jb=!0,g.Ub?R(g.siblings):g.siblings=[],!c&&!k){l=0;for(h=v.cc.length;l<h;l++)if(v.cc[l]!==
v){if(!v.cc[l].vc)return null;g.siblings.push(this.ie(v.cc[l].vc,m,!1,u?g.x:f,u?g.y:e,!0))}l=0;for(h=g.siblings.length;l<h;l++)for(g.siblings[l].siblings.push(g),n=0;n<h;n++)l!==n&&g.siblings[l].siblings.push(g.siblings[n])}}else g.jb=!1,g.siblings=null;g.K();l=0;for(h=g.L.length;l<h;l++)g.L[l].Cu&&g.L[l].Cu();return g};d.prototype.Lk=function(a){var b,c;b=0;for(c=this.ta.V.length;b<c;b++){var f=this.ta.V[b];if(cb(f.name,a))return f}return null};d.prototype.Dg=function(a){a=N(a);0>a&&(a=0);a>=this.ta.V.length&&
(a=this.ta.V.length-1);return this.ta.V[a]};d.prototype.mk=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Q().R=!0};d.prototype.vh=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].vh()};d.prototype.$f=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].$f()};d.prototype.Sd=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Sd()};d.prototype.Up=function(a){if(a.Vh){var b,c,f=a.i;b=0;for(c=f.length;b<c;++b)f[b].Wp();f=this.Qc;b=0;for(c=f.length;b<c;++b)f[b].type===a&&f[b].Wp();a.Vh=!1}};d.prototype.Hk=
function(a,b,c,f){var e,l,k=a?1!==a.Bc||1!==a.Cc:!1;if(b.J)for(a=0,e=b.Wf.length;a<e;++a)l=b.Wf[a],k||l.Wh?Aa(f,l.i):(this.Up(l),l.fi.lj(c,f));else k||b.Wh?Aa(f,b.i):(this.Up(b),b.fi.lj(c,f))};d.prototype.Nn=function(a,b,c,f){var e,l;e=0;for(l=b.length;e<l;++e)this.Hk(a,b[e],c,f)};d.prototype.Ln=function(a,b,c){var f=this.cm;f&&this.Nn(a,f.yl,b,c)};d.prototype.cv=function(a,b,c){var f=a.Q(),e,l,k,h,n=this.Ga().Ma.pc,d,v,g;if(f.R)for(f.R=!1,R(f.i),e=0,h=a.i.length;e<h;e++)k=a.i[e],k.ja(),d=k.n.Cb(b,
c,!0),v=k.n.Cb(b,c,!1),k.Sa(d,v)?f.i.push(k):n&&f.T.push(k);else{l=0;g=n?f.T:f.i;e=0;for(h=g.length;e<h;e++)k=g[e],k.ja(),d=k.n.Cb(b,c,!0),v=k.n.Cb(b,c,!1),k.Sa(d,v)&&(n?f.i.push(k):(f.i[l]=f.i[e],l++));g.length=l}a.Mc();return f.Fi()};d.prototype.Je=function(a,b){if(!(a&&b&&a!==b&&a.md&&b.md))return!1;a.ja();b.ja();var c=a.n,f=b.n,e,l,k,h,n,d,v,g;if(c===f||c.Bc===f.Bc&&f.Cc===f.Cc&&c.scale===f.scale&&c.k===f.k&&c.jd===f.jd){if(!a.ua.Zn(b.ua)||!a.sb.Yn(b.sb)||a.wf&&b.wf)return!1;if(a.wf)return this.Cp(a,
b);if(b.wf)return this.Cp(b,a);v=a.ba&&!a.ba.jf();e=b.ba&&!b.ba.jf();if(!v&&!e)return!0;v?(a.ba.ee(a.width,a.height,a.k),v=a.ba):(this.cd.eg(a.sb,a.x,a.y,a.width,a.height),v=this.cd);e?(b.ba.ee(b.width,b.height,b.k),g=b.ba):(this.cd.eg(b.sb,b.x,b.y,b.width,b.height),g=this.cd);return v.Mg(g,b.x-a.x,b.y-a.y)}v=a.ba&&!a.ba.jf();e=b.ba&&!b.ba.jf();v?(a.ba.ee(a.width,a.height,a.k),this.cd.sp(a.ba)):this.cd.eg(a.sb,a.x,a.y,a.width,a.height);v=this.cd;e?(b.ba.ee(b.width,b.height,b.k),this.fm.sp(b.ba)):
this.fm.eg(b.sb,b.x,b.y,b.width,b.height);g=this.fm;e=0;for(l=v.Sb;e<l;e++)k=2*e,h=k+1,n=v.na[k],d=v.na[h],v.na[k]=c.Ba(n+a.x,d+a.y,!0),v.na[h]=c.Ba(n+a.x,d+a.y,!1);v.ja();e=0;for(l=g.Sb;e<l;e++)k=2*e,h=k+1,n=g.na[k],d=g.na[h],g.na[k]=f.Ba(n+b.x,d+b.y,!0),g.na[h]=f.Ba(n+b.x,d+b.y,!1);g.ja();return v.Mg(g,0,0)};var J=new ua,ba=new O(0,0,0,0),A=[];d.prototype.Cp=function(a,b){var c,f,e,l,k=b.ua,h=a.x,n=a.y;a.Gn(k,A);var d=b.ba&&!b.ba.jf();c=0;for(f=A.length;c<f;++c)if(e=A[c],l=e.ea,k.$n(l,h,n)&&(J.fg(l),
J.offset(h,n),J.Yn(b.sb)))if(d)if(b.ba.ee(b.width,b.height,b.k),e.Yc){if(e.Yc.Mg(b.ba,b.x-(h+l.left),b.y-(n+l.top)))return R(A),!0}else{if(this.cd.eg(J,0,0,l.right-l.left,l.bottom-l.top),this.cd.Mg(b.ba,b.x,b.y))return R(A),!0}else if(e.Yc){if(this.cd.eg(b.sb,0,0,b.width,b.height),e.Yc.Mg(this.cd,-(h+l.left),-(n+l.top)))return R(A),!0}else return R(A),!0;R(A);return!1};d.prototype.Bp=function(a,b,c,f,e){if(!e||!e.md)return!1;e.ja();ba.set(qa(a,c),qa(b,f),pa(a,c),pa(b,f));if(!e.ua.Zn(ba))return!1;
if(e.wf){e.Gn(ba,A);var l,k,h,n=e.x,d=e.y;e=0;for(l=A.length;e<l;++e)if(k=A[e],h=k.ea,ba.$n(h,n,d)&&(J.fg(h),J.offset(n,d),J.Ng(a,b,c,f)))if(k.Yc){if(k.Yc.Ng(n+h.left,d+h.top,a,b,c,f))return R(A),!0}else return R(A),!0;R(A);return!1}if(!e.sb.Ng(a,b,c,f))return!1;if(!e.ba||e.ba.jf())return!0;e.ba.ee(e.width,e.height,e.k);return e.ba.Ng(e.x,e.y,a,b,c,f)};d.prototype.Qp=function(a,b){if(!b)return!1;var c,f,e,l,k;c=0;for(f=a.Ca.length;c<f;c++)if(a.Ca[c].behavior instanceof b)return!0;if(!a.J)for(c=0,
f=a.Aa.length;c<f;c++)for(k=a.Aa[c],e=0,l=k.Ca.length;e<l;e++)if(k.Ca[e].behavior instanceof b)return!0;return!1};d.prototype.qm=function(a){return this.Qp(a,Xb.Hv)};d.prototype.rm=function(a){return this.Qp(a,Xb.Iv)};var K=[];d.prototype.dd=function(a){var b,c,f;a.ja();this.Ln(a.n,a.ua,K);b=0;for(c=K.length;b<c;++b)if(f=K[b],f.I.solidEnabled&&this.Je(a,f))return R(K),f;R(K);return null};d.prototype.Il=function(a,b,c,f){f=f||50;var e=a.x,l=a.y,k,h=null,n=null;for(k=0;k<f;k++)if(a.x=e+b*k,a.y=l+c*
k,a.P(),!this.Je(a,h)&&((h=this.dd(a))&&(n=h),!h&&!h))return n&&this.Ju(a,b,c,n),!0;a.x=e;a.y=l;a.P();return!1};d.prototype.Ju=function(a,b,c,f){var e=2,l,k=!1;l=!1;for(var h=a.x,n=a.y;16>=e;)l=1/e,e*=2,a.x+=b*l*(k?1:-1),a.y+=c*l*(k?1:-1),a.P(),this.Je(a,f)?l=k=!0:(l=k=!1,h=a.x,n=a.y);l&&(a.x=h,a.y=n,a.P())};d.prototype.gp=function(a,b){var c=ka(b)?100:b,f=0,e=a.x,l=a.y,k=0,h=0,n=0,d=this.dd(a);if(!d)return!0;for(;f<=c;){switch(k){case 0:h=0;n=-1;f++;break;case 1:h=1;n=-1;break;case 2:h=1;n=0;break;
case 3:n=h=1;break;case 4:h=0;n=1;break;case 5:h=-1;n=1;break;case 6:h=-1;n=0;break;case 7:n=h=-1}k=(k+1)%8;a.x=N(e+h*f);a.y=N(l+n*f);a.P();if(!this.Je(a,d)&&(d=this.dd(a),!d))return!0}a.x=e;a.y=l;a.P();return!1};d.prototype.yh=function(a,b){a.md&&b.md&&this.zh.push([a,b])};d.prototype.Dr=function(a,b){var c,f,e;c=0;for(f=this.zh.length;c<f;c++)if(e=this.zh[c],e[0]==a&&e[1]==b||e[0]==b&&e[1]==a)return!0;return!1};d.prototype.Br=function(a,b,c){var f=a.x,e=a.y,l=pa(10,Na(b,c,f,e)),k=Ja(b,c,f,e),h=
this.dd(a);if(!h)return Ga(k+ra);var n=h,d,v,g,u,m=X(5);for(d=1;36>d;d++)if(v=k-d*m,a.x=b+Math.cos(v)*l,a.y=c+Math.sin(v)*l,a.P(),!this.Je(a,n)&&(n=this.dd(a),!n)){g=v;break}36===d&&(g=Ga(k+ra));n=h;for(d=1;36>d;d++)if(v=k+d*m,a.x=b+Math.cos(v)*l,a.y=c+Math.sin(v)*l,a.P(),!this.Je(a,n)&&(n=this.dd(a),!n)){u=v;break}36===d&&(u=Ga(k+ra));a.x=f;a.y=e;a.P();if(u===g)return u;a=Ka(u,g)/2;a=Ma(u,g)?Ga(g+a+ra):Ga(u+a);g=Math.cos(k);k=Math.sin(k);u=Math.cos(a);a=Math.sin(a);b=g*u+k*a;return Ja(0,0,g-2*b*
u,k-2*b*a)};var wa=-1;d.prototype.trigger=function(a,b,c){if(!this.ta)return!1;var f=this.ta.Ze;if(!f)return!1;var e=!1,l,k,h;wa++;var n=f.uk;k=0;for(h=n.length;k<h;++k)l=this.Np(a,b,n[k],c),e=e||l;l=this.Np(a,b,f,c);wa--;return e||l};d.prototype.Np=function(a,b,c,f){var e=!1,l,k,h,n;if(b)for(h=this.om(a,b,b.type.name,c,f),e=e||h,n=b.type.Aa,l=0,k=n.length;l<k;++l)h=this.om(a,b,n[l].name,c,f),e=e||h;else h=this.om(a,b,"system",c,f),e=e||h;return e};d.prototype.om=function(a,b,c,f,e){var l,k=!1,h=
!1,h="undefined"!==typeof e,n=(h?f.wn:f.Op)[c];if(!n)return k;var d=null;f=0;for(l=n.length;f<l;++f)if(n[f].method==a){d=n[f].zg;break}if(!d)return k;var v;h?v=d[e]:v=d;if(!v)return null;f=0;for(l=v.length;f<l;f++)a=v[f][0],e=v[f][1],h=this.Us(b,c,a,e),k=k||h;return k};d.prototype.Us=function(a,b,c,f){var e,l,k=!1;this.pm++;var h=this.Ga().Ma;h&&this.vh(h.Ie);var n=1<this.pm;this.vh(c.Ie);n&&this.Ku();var d=this.kj(c);d.Ma=c;a&&(e=this.types[b].Q(),e.R=!1,R(e.i),e.i[0]=a,this.types[b].Mc());a=!0;
if(c.parent){b=d.Ap;for(e=c.parent;e;)b.push(e),e=e.parent;b.reverse();e=0;for(l=b.length;e<l;e++)if(!b[e].Uu()){a=!1;break}}a&&(this.bf++,c.pc?c.Tu(f):c.Oa(),k=k||d.lf);this.hj();n&&this.Au();this.Sd(c.Ie);h&&this.Sd(h.Ie);this.ne&&0===this.nc&&0===wa&&!this.cl&&this.ob();this.pm--;return k};d.prototype.Lf=function(){var a=this.Ga();return a.Ma.Ra[a.La]};d.prototype.gt=function(){return this.Lf().type};d.prototype.Vt=function(){return 0===this.Ga().La};d.prototype.ft=function(){var a=this.Ga();return a.Ma.tc[a.Mb]};
d.prototype.Ku=function(){this.Xi++;this.Xi>=this.sl.length&&this.sl.push([])};d.prototype.Au=function(){this.Xi--};d.prototype.Hn=function(){return this.sl[this.Xi]};d.prototype.kj=function(a){this.pi++;this.pi>=this.yk.length&&this.yk.push(new Jb);var b=this.Ga();b.reset(a);return b};d.prototype.hj=function(){this.pi--};d.prototype.Ga=function(){return this.yk[this.pi]};d.prototype.Lu=function(){this.Zi++;this.Zi>=this.tl.length&&this.tl.push(aa({name:void 0,index:0,em:!1}));var a=this.ht();a.name=
void 0;a.index=0;a.em=!1;return a};d.prototype.Bu=function(){this.Zi--};d.prototype.ht=function(){return this.tl[this.Zi]};d.prototype.In=function(a,b){for(var c,f,e,l,k,h;b;){c=0;for(f=b.Fc.length;c<f;c++)if(h=b.Fc[c],h instanceof Kb&&cb(a,h.name))return h;b=b.parent}c=0;for(f=this.Gd.length;c<f;c++)for(k=this.Gd[c],e=0,l=k.le.length;e<l;e++)if(h=k.le[e],h instanceof Kb&&cb(a,h.name))return h;return null};d.prototype.Jn=function(a){var b,c;b=0;for(c=this.Wc.length;b<c;b++)if(this.Wc[b].Z===a)return this.Wc[b];
return null};d.prototype.Eg=function(a){var b,c;b=0;for(c=this.u.length;b<c;b++)if(this.u[b].Z===a)return this.u[b];return null};d.prototype.jt=function(a){var b,c;b=0;for(c=this.Cf.length;b<c;b++)if(this.Cf[b].Z===a)return this.Cf[b];return null};d.prototype.Mr=function(a,b){this.Hh=[a,b];this.ga=!0};d.prototype.Kt=function(){var a=this,b=this.Sl,c=this.Md,f=this.Ri,e=!1;this.wp&&(e=!0,b="__c2_continuouspreview",this.wp=!1);if(b.length){this.ob();c=this.Yu();if(p()&&!this.Uc)t(b,c,function(){x("Saved state to IndexedDB storage ("+
c.length+" bytes)");a.Md=c;a.trigger(Y.prototype.p.Yj,null);a.Md="";e&&r()},function(f){try{localStorage.setItem("__c2save_"+b,c),x("Saved state to WebStorage ("+c.length+" bytes)"),a.Md=c,a.trigger(Y.prototype.p.Yj,null),a.Md="",e&&r()}catch(l){x("Failed to save game state: "+f+"; "+l),a.trigger(Y.prototype.p.Pm,null)}});else try{localStorage.setItem("__c2save_"+b,c),x("Saved state to WebStorage ("+c.length+" bytes)"),a.Md=c,this.trigger(Y.prototype.p.Yj,null),a.Md="",e&&r()}catch(l){x("Error saving to WebStorage: "+
l),a.trigger(Y.prototype.p.Pm,null)}this.Ri=this.Sl="";this.Va=null}if(f.length){if(p()&&!this.Uc)q(f,function(b){b?(a.Va=b,x("Loaded state from IndexedDB storage ("+a.Va.length+" bytes)")):(a.Va=localStorage.getItem("__c2save_"+f)||"",x("Loaded state from WebStorage ("+a.Va.length+" bytes)"));a.Ih=!1;a.Va||(a.Va=null,a.trigger(Y.prototype.p.Uh,null))},function(){a.Va=localStorage.getItem("__c2save_"+f)||"";x("Loaded state from WebStorage ("+a.Va.length+" bytes)");a.Ih=!1;a.Va||(a.Va=null,a.trigger(Y.prototype.p.Uh,
null))});else{try{this.Va=localStorage.getItem("__c2save_"+f)||"",x("Loaded state from WebStorage ("+this.Va.length+" bytes)")}catch(k){this.Va=null}this.Ih=!1;a.Va||(a.Va=null,a.trigger(Y.prototype.p.Uh,null))}this.Sl=this.Ri=""}null!==this.Va&&(this.ob(),this.du(this.Va)?(this.Md=this.Va,this.trigger(Y.prototype.p.Sq,null),this.Md=""):a.trigger(Y.prototype.p.Uh,null),this.Va=null)};d.prototype.Yu=function(){var a,b,f,e,l,k,h,n={c2save:!0,version:1,rt:{time:this.Rb.ca,walltime:this.Vj.ca,timescale:this.jg,
tickcount:this.Hc,execcount:this.bf,next_uid:this.mh,running_layout:this.ta.Z,start_time_offset:Date.now()-this.Fj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(b=this.u.length;a<b;a++)if(l=this.u[a],!l.J&&!this.qm(l)){k={instances:[]};Pa(l.I)&&(k.ex=c(l.I));f=0;for(e=l.i.length;f<e;f++)k.instances.push(this.Rl(l.i[f]));n.types[l.Z.toString()]=k}a=0;for(b=this.Wc.length;a<b;a++)f=this.Wc[a],n.layouts[f.Z.toString()]=f.Wa();e=n.events.groups;a=0;for(b=this.Cf.length;a<b;a++)f=
this.Cf[a],e[f.Z.toString()]=this.Mf[f.Hg].df;b=n.events.cnds;for(h in this.ge)this.ge.hasOwnProperty(h)&&(a=this.ge[h],Pa(a.I)&&(b[h]={ex:c(a.I)}));b=n.events.acts;for(h in this.be)this.be.hasOwnProperty(h)&&(a=this.be[h],Pa(a.I)&&(b[h]={ex:c(a.I)}));b=n.events.vars;for(h in this.mg)this.mg.hasOwnProperty(h)&&(a=this.mg[h],a.Ji||a.parent&&!a.Ug||(b[h]=a.data));n.system=this.yd.Wa();return JSON.stringify(n)};d.prototype.hp=function(){var a,b,c,f,e,l;this.Rd={};a=0;for(b=this.u.length;a<b;a++)if(c=
this.u[a],!c.J)for(f=0,e=c.i.length;f<e;f++)l=c.i[f],this.Rd[l.uid.toString()]=l};d.prototype.du=function(a){var b;try{b=JSON.parse(a)}catch(c){return!1}if(!b.c2save||1<b.version)return!1;this.Qg=!0;a=b.rt;this.Rb.reset();this.Rb.ca=a.time;this.Vj.reset();this.Vj.ca=a.walltime||0;this.jg=a.timescale;this.Hc=a.tickcount;this.bf=a.execcount;this.Fj=Date.now()-a.start_time_offset;var f=a.running_layout;if(f!==this.ta.Z)if(f=this.Jn(f))this.sn(f);else return;var e,l,k,h,n,d,v;d=b.types;for(l in d)if(d.hasOwnProperty(l)&&
(h=this.Eg(parseInt(l,10)))&&!h.J&&!this.qm(h)){d[l].ex?h.I=d[l].ex:Qa(h.I);n=h.i;k=d[l].instances;f=0;for(e=qa(n.length,k.length);f<e;f++)this.Si(n[f],k[f]);f=k.length;for(e=n.length;f<e;f++)this.Me(n[f]);f=n.length;for(e=k.length;f<e;f++){n=null;if(h.ma.te&&(n=this.ta.Ci(k[f].w.l),!n))continue;n=this.ie(h.vc,n,!1,0,0,!0);this.Si(n,k[f])}h.hg=!0}this.ob();this.hp();e=b.layouts;for(l in e)e.hasOwnProperty(l)&&(f=this.Jn(parseInt(l,10)))&&f.kb(e[l]);e=b.events.groups;for(l in e)e.hasOwnProperty(l)&&
(f=this.jt(parseInt(l,10)))&&this.Mf[f.Hg]&&this.Mf[f.Hg].wj(e[l]);f=b.events.cnds;for(l in this.ge)this.ge.hasOwnProperty(l)&&(f.hasOwnProperty(l)?this.ge[l].I=f[l].ex:this.ge[l].I={});f=b.events.acts;for(l in this.be)this.be.hasOwnProperty(l)&&(f.hasOwnProperty(l)?this.be[l].I=f[l].ex:this.be[l].I={});f=b.events.vars;for(l in f)f.hasOwnProperty(l)&&this.mg.hasOwnProperty(l)&&(this.mg[l].data=f[l]);this.mh=a.next_uid;this.Qg=!1;f=0;for(e=this.ri.length;f<e;++f)n=this.ri[f],this.trigger(Object.getPrototypeOf(n.type.ma).p.Ne,
n);R(this.ri);this.yd.kb(b.system);f=0;for(e=this.u.length;f<e;f++)if(h=this.u[f],!h.J&&!this.qm(h))for(b=0,l=h.i.length;b<l;b++){n=h.i[b];if(h.jb)for(d=n.Gg(),R(n.siblings),a=0,k=h.cc.length;a<k;a++)v=h.cc[a],h!==v&&n.siblings.push(v.i[d]);n.Ad&&n.Ad();if(n.L)for(a=0,k=n.L.length;a<k;a++)d=n.L[a],d.Ad&&d.Ad()}return this.ga=!0};d.prototype.Rl=function(a,b){var f,e,l,k,h;k=a.type;l=k.ma;var n={};b?n.c2=!0:n.uid=a.uid;Pa(a.I)&&(n.ex=c(a.I));if(a.Ta&&a.Ta.length)for(n.ivs={},f=0,e=a.Ta.length;f<e;f++)n.ivs[a.type.Yk[f].toString()]=
a.Ta[f];if(l.te){l={x:a.x,y:a.y,w:a.width,h:a.height,l:a.n.Z,zi:a.sd()};0!==a.k&&(l.a=a.k);1!==a.opacity&&(l.o=a.opacity);.5!==a.Pb&&(l.hX=a.Pb);.5!==a.Qb&&(l.hY=a.Qb);0!==a.pb&&(l.bm=a.pb);a.visible||(l.v=a.visible);a.md||(l.ce=a.md);-1!==a.lh&&(l.mts=a.lh);if(k.S.length)for(l.fx=[],f=0,e=k.S.length;f<e;f++)h=k.S[f],l.fx.push({name:h.name,active:a.ae[h.index],params:a.Da[h.index]});n.w=l}if(a.L&&a.L.length)for(n.behs={},f=0,e=a.L.length;f<e;f++)k=a.L[f],k.Wa&&(n.behs[k.type.Z.toString()]=k.Wa());
a.Wa&&(n.data=a.Wa());return n};d.prototype.lt=function(a,b){var c,f;c=0;for(f=a.Yk.length;c<f;c++)if(a.Yk[c]===b)return c;return-1};d.prototype.et=function(a,b){var c,f;c=0;for(f=a.L.length;c<f;c++)if(a.L[c].type.Z===b)return c;return-1};d.prototype.Si=function(a,b,c){var f,e,l,k,h;h=a.type;k=h.ma;if(c){if(!b.c2)return}else a.uid=b.uid;b.ex?a.I=b.ex:Qa(a.I);if(e=b.ivs)for(f in e)e.hasOwnProperty(f)&&(l=this.lt(h,parseInt(f,10)),0>l||l>=a.Ta.length||(a.Ta[l]=e[f]));if(k.te){l=b.w;a.n.Z!==l.l&&(e=
a.n,a.n=this.ta.Ci(l.l),a.n?(e.ag(a,!0),a.n.qg(a,!0),a.P(),a.n.Dh(0)):(a.n=e,c||this.Me(a)));a.x=l.x;a.y=l.y;a.width=l.w;a.height=l.h;a.hd=l.zi;a.k=l.hasOwnProperty("a")?l.a:0;a.opacity=l.hasOwnProperty("o")?l.o:1;a.Pb=l.hasOwnProperty("hX")?l.hX:.5;a.Qb=l.hasOwnProperty("hY")?l.hY:.5;a.visible=l.hasOwnProperty("v")?l.v:!0;a.md=l.hasOwnProperty("ce")?l.ce:!0;a.lh=l.hasOwnProperty("mts")?l.mts:-1;a.pb=l.hasOwnProperty("bm")?l.bm:0;a.tg=$a(a.pb);this.A&&ab(a,a.pb,this.A);a.P();if(l.hasOwnProperty("fx"))for(c=
0,e=l.fx.length;c<e;c++)k=h.Jk(l.fx[c].name),0>k||(a.ae[k]=l.fx[c].active,a.Da[k]=l.fx[c].params);a.gd()}if(h=b.behs)for(f in h)h.hasOwnProperty(f)&&(c=this.et(a,parseInt(f,10)),0>c||a.L[c].kb(h[f]));b.data&&a.kb(b.data)};d.prototype.xn=function(a,b,c){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,c)},c)};d.prototype.Ws=function(a,b){this.xn("data.js",function(c){var f=new FileReader;f.onload=function(b){a(b.target.result)};f.onerror=b;f.readAsText(c)},
b)};var xa=[],L=0;d.prototype.xl=function(){if(xa.length&&!(8<=L)){L++;var a=xa.shift();this.Qr(a.filename,a.bv,a.qs)}};d.prototype.Vs=function(a,b,c){var f=this;xa.push({filename:a,bv:function(a){L--;f.xl();b(a)},qs:function(a){L--;f.xl();c(a)}});this.xl()};d.prototype.Qr=function(a,b,c){this.xn(a,function(a){var c=new FileReader;c.onload=function(a){b(a.target.result)};c.readAsArrayBuffer(a)},c)};d.prototype.Xs=function(a,b,c){var f="",e=a.toLowerCase(),l=e.substr(e.length-4),e=e.substr(e.length-
5);".mp4"===l?f="video/mp4":".webm"===e?f="video/webm":".m4a"===l?f="audio/mp4":".mp3"===l&&(f="audio/mpeg");this.Vs(a,function(a){a=URL.createObjectURL(new Blob([a],{type:f}));b(a)},c)};d.prototype.Qt=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};d.prototype.pp=function(a,b){this.eo&&!this.Qt(b)?this.Xs(b,function(b){a.src=b},function(a){alert("Failed to load image: "+a)}):a.src=b};d.prototype.uj=function(a,b){"undefined"!==typeof a.imageSmoothingEnabled?
a.imageSmoothingEnabled=b:(a.webkitImageSmoothingEnabled=b,a.mozImageSmoothingEnabled=b,a.msImageSmoothingEnabled=b)};Lb=function(a){return new d(document.getElementById(a))};Mb=function(a,b){return new d({dc:!0,width:a,height:b})};window.cr_createRuntime=Lb;window.cr_createDCRuntime=Mb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Yh=!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 d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};
window.cr_getSnapshot=function(d,g){var p=window.cr_getC2Runtime();p&&p.Mr(d,g)};window.cr_sizeCanvas=function(d,g){if(0!==d&&0!==g){var p=window.cr_getC2Runtime();p&&p.setSize(d,g)}};window.cr_setSuspended=function(d){var g=window.cr_getC2Runtime();g&&g.setSuspended(d)};
(function(){function d(a,b){this.b=a;this.Ze=null;this.scrollX=this.b.Ja/2;this.scrollY=this.b.Ia/2;this.scale=1;this.k=0;this.Kf=!0;this.name=b[0];this.vu=b[1];this.uu=b[2];this.width=b[1];this.height=b[2];this.Rp=b[3];this.vp=b[4];this.Z=b[5];var c=b[6],e,d;this.V=[];this.Lg=[];e=0;for(d=c.length;e<d;e++){var g=new Nb(this,c[e]);g.Ro=e;this.V.push(g)}c=b[7];this.oe=[];e=0;for(d=c.length;e<d;e++){var g=c[e],m=this.b.u[g[1]];m.vc||(m.vc=g);this.oe.push(g);-1===this.Lg.indexOf(m)&&this.Lg.push(m)}this.S=
[];this.da=[];this.Ud=!0;this.Da=[];e=0;for(d=b[8].length;e<d;e++)this.S.push({id:b[8][e][0],name:b[8][e][1],Pa:-1,Zc:!1,ic:!0,index:e}),this.Da.push(b[8][e][2].slice(0));this.gd();this.Ee=new O(0,0,1,1);this.Ll=new O(0,0,1,1);this.Ce={}}function g(a,b){return a.hd-b.hd}function p(a,b){this.Ha=a;this.b=a.b;this.i=[];this.scale=1;this.k=0;this.Ed=!1;this.Xd=new O(0,0,0,0);this.Lp=new ua;this.oa=this.la=this.qa=this.ka=0;this.yf=!1;this.Zd=-1;this.nk=0;this.name=b[0];this.index=b[1];this.Z=b[2];this.visible=
b[3];this.Nc=b[4];this.fd=b[5];this.Bc=b[6];this.Cc=b[7];this.opacity=b[8];this.wi=b[9];this.sc=b[10];this.jd=b[11];this.pb=b[12];this.ls=b[13];this.tg="source-over";this.wb=this.yb=0;this.nb=null;this.Nd=m();this.bd=!0;this.Tf=new O(0,0,-1,-1);this.hb=new O(0,0,-1,-1);this.sc&&(this.nb=new Za(this.b.Ja,this.b.Ia));this.wd=!1;var c=b[14],e,d;this.zp=[];this.mc=[];this.vg=[];e=0;for(d=c.length;e<d;e++){var g=c[e],p=this.b.u[g[1]];p.vc||(p.vc=g,p.Jr=this.index);this.mc.push(g);-1===this.Ha.Lg.indexOf(p)&&
this.Ha.Lg.push(p)}U(this.zp,this.mc);this.S=[];this.da=[];this.Ud=!0;this.Da=[];e=0;for(d=b[15].length;e<d;e++)this.S.push({id:b[15][e][0],name:b[15][e][1],Pa:-1,Zc:!1,ic:!0,index:e}),this.Da.push(b[15][e][2].slice(0));this.gd();this.Ee=new O(0,0,1,1);this.Ll=new O(0,0,1,1)}function m(){return c.length?c.pop():[]}function t(a){R(a);c.push(a)}d.prototype.Xu=function(a){var b=a.type.Z.toString();this.Ce.hasOwnProperty(b)||(this.Ce[b]=[]);this.Ce[b].push(this.b.Rl(a))};d.prototype.Qn=function(){var a=
this.V[0];return!a.fd&&1===a.opacity&&!a.wi&&a.visible};d.prototype.gd=function(){R(this.da);this.Ud=!0;var a,b,c;a=0;for(b=this.S.length;a<b;a++)c=this.S[a],c.ic&&(this.da.push(c),c.Zc||(this.Ud=!1))};d.prototype.Ik=function(a){var b,c,e;b=0;for(c=this.S.length;b<c;b++)if(e=this.S[b],e.name===a)return e;return null};var q=[],r=!0;d.prototype.dm=function(){this.vp&&(this.Ze=this.b.zk[this.vp],this.Ze.tm());this.b.ta=this;this.width=this.vu;this.height=this.uu;this.scrollX=this.b.Ja/2;this.scrollY=
this.b.Ia/2;var a,b,c,e,d,m,p;a=0;for(c=this.b.u.length;a<c;a++)if(b=this.b.u[a],!b.J)for(d=b.i,b=0,e=d.length;b<e;b++)if(m=d[b],m.n){var n=m.n.Ro;n>=this.V.length&&(n=this.V.length-1);m.n=this.V[n];-1===m.n.i.indexOf(m)&&m.n.i.push(m);m.n.yf=!0}if(!r)for(a=0,c=this.V.length;a<c;++a)this.V[a].i.sort(g);R(q);this.yr();a=0;for(c=this.V.length;a<c;a++)m=this.V[a],m.Hr(),m.Tj();d=!1;if(!this.Kf){for(p in this.Ce)if(this.Ce.hasOwnProperty(p)&&(b=this.b.Eg(parseInt(p,10)))&&!b.J&&this.b.rm(b)){e=this.Ce[p];
a=0;for(c=e.length;a<c;a++){m=null;if(b.ma.te&&(m=this.Ci(e[a].w.l),!m))continue;m=this.b.ie(b.vc,m,!1,0,0,!0);this.b.Si(m,e[a]);d=!0;q.push(m)}R(e)}a=0;for(c=this.V.length;a<c;a++)this.V[a].i.sort(g),this.V[a].yf=!0}d&&(this.b.ob(),this.b.hp());for(a=0;a<q.length;a++)if(m=q[a],m.type.jb)for(c=m.Gg(),b=0,e=m.type.cc.length;b<e;b++)p=m.type.cc[b],m.type!==p&&(p.i.length>c?m.siblings.push(p.i[c]):p.vc&&(d=this.b.ie(p.vc,m.n,!0,m.x,m.y,!0),this.b.ob(),p.Sj(),m.siblings.push(d),q.push(d)));a=0;for(c=
this.oe.length;a<c;a++)m=this.oe[a],b=this.b.u[m[1]],b.jb||this.b.ie(this.oe[a],null,!0);this.b.lk=null;this.b.ob();if(this.b.wa&&!this.b.xb)for(a=0,c=this.b.u.length;a<c;a++)p=this.b.u[a],!p.J&&p.i.length&&p.ij&&p.ij(this.b.wa);if(this.b.Qg)U(this.b.ri,q);else for(a=0,c=q.length;a<c;a++)m=q[a],this.b.trigger(Object.getPrototypeOf(m.type.ma).p.Ne,m);R(q);this.b.Qg||this.b.trigger(Y.prototype.p.Lm,null);this.Kf=!1};d.prototype.Gr=function(){var a,b,c,e,d;b=a=0;for(c=this.oe.length;a<c;a++)e=this.oe[a],
d=this.b.u[e[1]],d.global?d.jb||this.b.ie(e,null,!0):(this.oe[b]=e,b++);za(this.oe,b)};d.prototype.av=function(){this.b.Qg||this.b.trigger(Y.prototype.p.Rq,null);this.b.$k=!0;R(this.b.yd.$b);var a,b,c,e,d,g;if(!this.Kf)for(a=0,b=this.V.length;a<b;a++)for(this.V[a].vm(),d=this.V[a].i,c=0,e=d.length;c<e;c++)g=d[c],g.type.global||this.b.rm(g.type)&&this.Xu(g);a=0;for(b=this.V.length;a<b;a++){d=this.V[a].i;c=0;for(e=d.length;c<e;c++)g=d[c],g.type.global||this.b.Me(g);this.b.ob();R(d);this.V[a].yf=!0}a=
0;for(b=this.b.u.length;a<b;a++)if(d=this.b.u[a],!(d.global||d.ma.te||d.ma.Ej||d.J)){c=0;for(e=d.i.length;c<e;c++)this.b.Me(d.i[c]);this.b.ob()}r=!1;this.b.$k=!1};new O(0,0,0,0);d.prototype.Sc=function(a){var b,c=a,e=!1,d=!this.b.kc;d&&(this.b.Qi||(this.b.Qi=document.createElement("canvas"),b=this.b.Qi,b.width=this.b.O,b.height=this.b.N,this.b.po=b.getContext("2d"),e=!0),b=this.b.Qi,c=this.b.po,b.width!==this.b.O&&(b.width=this.b.O,e=!0),b.height!==this.b.N&&(b.height=this.b.N,e=!0),e&&this.b.uj(c,
this.b.za));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.nn&&!this.Qn()&&c.clearRect(0,0,this.b.O,this.b.N);var g,m,e=0;for(g=this.V.length;e<g;e++)m=this.V[e],m.visible&&0<m.opacity&&11!==m.pb&&(m.i.length||!m.fd)?m.Sc(c):m.Tj();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};d.prototype.ke=function(a){a.op(!0);this.b.Na||(this.b.Na=a.ec(this.b.O,this.b.N,this.b.za));if(this.b.Na.Te!==this.b.O||this.b.Na.Se!==this.b.N)a.deleteTexture(this.b.Na),this.b.Na=a.ec(this.b.O,this.b.N,
this.b.za);a.Ec(this.b.Na);this.b.kc||a.Td(this.b.O,this.b.N);var b,c;for(b=this.V.length-1;0<=b;--b)c=this.V[b],c.visible&&1===c.opacity&&c.Ud&&0===c.pb&&(c.i.length||!c.fd)?c.ke(a):c.Tj();a.op(!1)};d.prototype.Eb=function(a){var b=0<this.da.length||this.b.kg||!this.b.kc||this.b.ra;if(b){this.b.Na||(this.b.Na=a.ec(this.b.O,this.b.N,this.b.za));if(this.b.Na.Te!==this.b.O||this.b.Na.Se!==this.b.N)a.deleteTexture(this.b.Na),this.b.Na=a.ec(this.b.O,this.b.N,this.b.za);a.Ec(this.b.Na);this.b.kc||a.Td(this.b.O,
this.b.N)}else this.b.Na&&(a.Ec(null),a.deleteTexture(this.b.Na),this.b.Na=null);this.b.nn&&!this.Qn()&&a.clear(0,0,0,0);var c,e,d;c=0;for(e=this.V.length;c<e;c++)d=this.V[c],d.visible&&0<d.opacity&&(d.i.length||!d.fd)?d.Eb(a):d.Tj();b&&(0===this.da.length||1===this.da.length&&this.b.kc?(1===this.da.length?(b=this.da[0].index,a.Yb(this.da[0].Pa),a.dg(null,1/this.b.O,1/this.b.N,0,0,1,1,this.scale,this.k,0,0,this.b.O/2,this.b.N/2,this.b.Rb.ca,this.Da[b]),a.jj(this.da[0].Pa)&&(this.b.ga=!0)):a.Yb(0),
this.b.kc||a.Td(this.b.width,this.b.height),a.Ec(null),a.np(!1),a.He(1),a.Wb(this.b.Na),a.lp(),a.Dc(),a.rc(),b=this.b.width/2,c=this.b.height/2,a.wh(-b,c,b,c,b,-c,-b,-c),a.Wb(null),a.np(!0)):this.Ml(a,null,null,null))};d.prototype.Fg=function(){return 0<this.da.length||this.b.kg||!this.b.kc||this.b.ra?this.b.Na:null};d.prototype.Kn=function(){var a=this.V[0].gc(),b,c,e;b=1;for(c=this.V.length;b<c;b++)e=this.V[b],(0!==e.Bc||0!==e.Cc)&&e.gc()<a&&(a=e.gc());return a};d.prototype.Tl=function(a){if(!this.Rp){var b=
1/this.Kn()*this.b.O/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ga=!0)};d.prototype.Ul=function(a){if(!this.Rp){var b=1/this.Kn()*this.b.N/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ga=!0)};d.prototype.yr=function(){this.Tl(this.scrollX);this.Ul(this.scrollY)};d.prototype.Ml=function(a,b,c,e){var d=c?c.da:b?b.da:this.da,g=1,m=0,n=0,u=0,v=this.b.O,p=this.b.N;c?(g=c.n.gc(),m=c.n.fc(),n=c.n.ka,u=c.n.la,v=c.n.qa,
p=c.n.oa):b&&(g=b.gc(),m=b.fc(),n=b.ka,u=b.la,v=b.qa,p=b.oa);var l=this.b.Fk,y,r,q,t,P=0,T=1,J,ba,A=this.b.O,K=this.b.N,wa=A/2,xa=K/2,L=b?b.Ee:this.Ee,w=b?b.Ll:this.Ll,z=0,V=0,D=0,E=0,S=A,ha=A,I=K,da=K,W=q=0;t=c?c.n.fc():0;if(c){y=0;for(r=d.length;y<r;y++)q+=a.ot(d[y].Pa),W+=a.pt(d[y].Pa);E=c.ua;z=b.Ba(E.left,E.top,!0,!0);D=b.Ba(E.left,E.top,!1,!0);S=b.Ba(E.right,E.bottom,!0,!0);I=b.Ba(E.right,E.bottom,!1,!0);0!==t&&(y=b.Ba(E.right,E.top,!0,!0),r=b.Ba(E.right,E.top,!1,!0),V=b.Ba(E.left,E.bottom,!0,
!0),E=b.Ba(E.left,E.bottom,!1,!0),t=Math.min(z,S,y,V),S=Math.max(z,S,y,V),z=t,t=Math.min(D,I,r,E),I=Math.max(D,I,r,E),D=t);z-=q;D-=W;S+=q;I+=W;w.left=z/A;w.top=1-D/K;w.right=S/A;w.bottom=1-I/K;V=z=N(z);E=D=N(D);ha=S=sa(S);da=I=sa(I);V-=q;E-=W;ha+=q;da+=W;0>z&&(z=0);0>D&&(D=0);S>A&&(S=A);I>K&&(I=K);0>V&&(V=0);0>E&&(E=0);ha>A&&(ha=A);da>K&&(da=K);L.left=z/A;L.top=1-D/K;L.right=S/A;L.bottom=1-I/K}else L.left=w.left=0,L.top=w.top=0,L.right=w.right=1,L.bottom=w.bottom=1;W=c&&(a.sh(d[0].Pa)||0!==q||0!==
W||1!==c.opacity||c.type.ma.No)||b&&!c&&1!==b.opacity;a.lp();if(W){l[P]||(l[P]=a.ec(A,K,this.b.za));if(l[P].Te!==A||l[P].Se!==K)a.deleteTexture(l[P]),l[P]=a.ec(A,K,this.b.za);a.Yb(0);a.Ec(l[P]);ba=da-E;a.clearRect(V,K-E-ba,ha-V,ba);c?c.Eb(a):(a.Wb(this.b.Ua),a.He(b.opacity),a.Dc(),a.translate(-wa,-xa),a.rc(),a.ad(z,I,S,I,S,D,z,D,L));w.left=w.top=0;w.right=w.bottom=1;c&&(t=L.top,L.top=L.bottom,L.bottom=t);P=1;T=0}a.He(1);q=d.length-1;var Q=a.Hl(d[q].Pa)||!b&&!c&&!this.b.kc;y=t=0;for(r=d.length;y<r;y++){l[P]||
(l[P]=a.ec(A,K,this.b.za));if(l[P].Te!==A||l[P].Se!==K)a.deleteTexture(l[P]),l[P]=a.ec(A,K,this.b.za);a.Yb(d[y].Pa);t=d[y].index;a.jj(d[y].Pa)&&(this.b.ga=!0);0!=y||W?(a.dg(e,1/A,1/K,w.left,w.top,w.right,w.bottom,g,m,n,u,(n+v)/2,(u+p)/2,this.b.Rb.ca,c?c.Da[t]:b?b.Da[t]:this.Da[t]),a.Wb(null),y!==q||Q?(a.Ec(l[P]),ba=da-E,J=K-E-ba,a.clearRect(V,J,ha-V,ba)):(c?a.Ge(c.yb,c.wb):b&&a.Ge(b.yb,b.wb),a.Ec(e)),a.Wb(l[T]),a.Dc(),a.translate(-wa,-xa),a.rc(),a.ad(z,I,S,I,S,D,z,D,L),y!==q||Q||a.Wb(null)):(a.Ec(l[P]),
ba=da-E,J=K-E-ba,a.clearRect(V,J,ha-V,ba),c?(c.bb&&c.bb.M?(J=c.bb.M,T=1/J.width,J=1/J.height):(T=1/c.width,J=1/c.height),a.dg(e,T,J,w.left,w.top,w.right,w.bottom,g,m,n,u,(n+v)/2,(u+p)/2,this.b.Rb.ca,c.Da[t]),c.Eb(a)):(a.dg(e,1/A,1/K,0,0,1,1,g,m,n,u,(n+v)/2,(u+p)/2,this.b.Rb.ca,b?b.Da[t]:this.Da[t]),a.Wb(b?this.b.Ua:this.b.Na),a.Dc(),a.translate(-wa,-xa),a.rc(),a.ad(z,I,S,I,S,D,z,D,L)),w.left=w.top=0,w.right=w.bottom=1,c&&!Q&&(t=I,I=D,D=t));P=0===P?1:0;T=0===P?1:0}Q&&(a.Yb(0),c?a.Ge(c.yb,c.wb):b?a.Ge(b.yb,
b.wb):this.b.kc||(a.Td(this.b.width,this.b.height),wa=this.b.width/2,xa=this.b.height/2,D=z=0,S=this.b.width,I=this.b.height),a.Ec(e),a.Wb(l[T]),a.Dc(),a.translate(-wa,-xa),a.rc(),c&&1===d.length&&!W?a.ad(z,D,S,D,S,I,z,I,L):a.ad(z,I,S,I,S,D,z,D,L),a.Wb(null))};d.prototype.Ci=function(a){var b,c;b=0;for(c=this.V.length;b<c;b++)if(this.V[b].Z===a)return this.V[b];return null};d.prototype.Wa=function(){var a,b,c,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.Kf,
persist:this.Ce,fx:[],layers:{}};a=0;for(b=this.S.length;a<b;a++)c=this.S[a],e.fx.push({name:c.name,active:c.ic,params:this.Da[c.index]});a=0;for(b=this.V.length;a<b;a++)c=this.V[a],e.layers[c.Z.toString()]=c.Wa();return e};d.prototype.kb=function(a){var b,c,e,d;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.Ce=a.persist;"undefined"!==typeof a.fv&&(this.Kf=a.fv);var g=a.fx;b=0;for(c=g.length;b<c;b++)if(e=this.Ik(g[b].name))e.ic=g[b].active,this.Da[e.index]=
g[b].params;this.gd();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.Ci(parseInt(d,10)))&&a.kb(b[d])};zb=d;p.prototype.gd=function(){R(this.da);this.Ud=!0;var a,b,c;a=0;for(b=this.S.length;a<b;a++)c=this.S[a],c.ic&&(this.da.push(c),c.Zc||(this.Ud=!1))};p.prototype.Ik=function(a){var b,c,e;b=0;for(c=this.S.length;b<c;b++)if(e=this.S[b],e.name===a)return e;return null};p.prototype.Hr=function(){var a,b,c,e,d,g;b=a=0;for(c=this.mc.length;a<c;a++){e=this.mc[a];d=this.b.u[e[1]];g=this.b.rm(d);d=!0;
if(!g||this.Ha.Kf){e=this.b.ie(e,this,!0);if(!e)continue;q.push(e);e.type.global&&(d=!1,this.vg.push(e.uid))}d&&(this.mc[b]=this.mc[a],b++)}this.mc.length=b;this.b.ob();!this.b.q&&this.S.length&&(this.pb=this.ls);this.tg=$a(this.pb);this.b.A&&ab(this,this.pb,this.b.A);this.bd=!0};p.prototype.ag=function(a,b){var c=Ba(this.i,a);0>c||(b&&this.sc&&a.Vb&&a.Vb.right>=a.Vb.left&&(a.ja(),this.nb.update(a,a.Vb,null),a.Vb.set(0,0,-1,-1)),c===this.i.length-1?this.i.pop():(ya(this.i,c),this.Dh(c)),this.bd=!0)};
p.prototype.qg=function(a,b){a.hd=this.i.length;this.i.push(a);b&&this.sc&&a.Vb&&a.P();this.bd=!0};p.prototype.Gu=function(a){this.i.unshift(a);this.Dh(0)};p.prototype.iu=function(a,b,c){var e=a.sd();b=b.sd();ya(this.i,e);e<b&&b--;c&&b++;b===this.i.length?this.i.push(a):this.i.splice(b,0,a);this.Dh(e<b?e:b)};p.prototype.Dh=function(a){-1===this.Zd?this.Zd=a:a<this.Zd&&(this.Zd=a);this.bd=this.yf=!0};p.prototype.vm=function(){if(this.yf){-1===this.Zd&&(this.Zd=0);var a,b,c;if(this.sc)for(a=this.Zd,
b=this.i.length;a<b;++a)c=this.i[a],c.hd=a,this.nb.fu(c.Vb);else for(a=this.Zd,b=this.i.length;a<b;++a)this.i[a].hd=a;this.yf=!1;this.Zd=-1}};p.prototype.gc=function(a){return this.mt()*(this.b.kc||a?this.b.rg:1)};p.prototype.mt=function(){return(this.scale*this.Ha.scale-1)*this.jd+1};p.prototype.fc=function(){return this.Ed?0:Ga(this.Ha.k+this.k)};var c=[],b=[],e=[];p.prototype.Nk=function(){this.vm();this.nb.lj(this.ka,this.la,this.qa,this.oa,e);if(!e.length)return m();if(1===e.length){var a=m();
U(a,e[0]);R(e);return a}for(var c=!0;1<e.length;){for(var a=e,d=void 0,k=void 0,g=void 0,p=void 0,r=void 0,d=0,k=a.length;d<k-1;d+=2){var g=a[d],p=a[d+1],r=m(),n=g,u=p,v=r,q=0,l=0,y=0,F=n.length,ca=u.length,fa=void 0,P=void 0;for(v.length=F+ca;q<F&&l<ca;++y)fa=n[q],P=u[l],fa.hd<P.hd?(v[y]=fa,++q):(v[y]=P,++l);for(;q<F;++q,++y)v[y]=n[q];for(;l<ca;++l,++y)v[y]=u[l];c||(t(g),t(p));b.push(r)}1===k%2&&(c?(g=m(),U(g,a[k-1]),b.push(g)):b.push(a[k-1]));U(a,b);R(b);c=!1}a=e[0];R(e);return a};p.prototype.Sc=
function(a){this.wd=this.wi||1!==this.opacity||0!==this.pb;var b=this.b.canvas,c=a,e=!1;this.wd&&(this.b.Pi||(this.b.Pi=document.createElement("canvas"),b=this.b.Pi,b.width=this.b.O,b.height=this.b.N,this.b.oo=b.getContext("2d"),e=!0),b=this.b.Pi,c=this.b.oo,b.width!==this.b.O&&(b.width=this.b.O,e=!0),b.height!==this.b.N&&(b.height=this.b.N,e=!0),e&&this.b.uj(c,this.b.za),this.fd&&c.clearRect(0,0,this.b.O,this.b.N));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.fd||(c.fillStyle="rgb("+
this.Nc[0]+","+this.Nc[1]+","+this.Nc[2]+")",c.fillRect(0,0,this.b.O,this.b.N));c.save();this.Ed=!0;var e=this.Cb(0,0,!0,!0),d=this.Cb(0,0,!1,!0);this.Ed=!1;this.b.qc&&(e=Math.round(e),d=Math.round(d));this.pj(e,d,c);var g=this.gc();c.scale(g,g);c.translate(-e,-d);this.sc?(this.hb.left=this.nb.Jb(this.ka),this.hb.top=this.nb.Kb(this.la),this.hb.right=this.nb.Jb(this.qa),this.hb.bottom=this.nb.Kb(this.oa),this.bd||!this.hb.yg(this.Tf)?(t(this.Nd),e=this.Nk(),this.bd=!1,this.Tf.Df(this.hb)):e=this.Nd):
e=this.i;for(var m,n=null,d=0,g=e.length;d<g;++d)m=e[d],m!==n&&(this.es(m,c),n=m);this.sc&&(this.Nd=e);c.restore();this.wd&&(a.globalCompositeOperation=this.tg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};p.prototype.es=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ja();var c=a.ua;c.right<this.ka||c.bottom<this.la||c.left>this.qa||c.top>this.oa||(b.globalCompositeOperation=a.tg,a.Sc(b))}};p.prototype.Tj=function(){this.Ed=!0;var a=this.Cb(0,0,!0,!0),b=this.Cb(0,0,!1,!0);this.Ed=!1;this.b.qc&&
(a=Math.round(a),b=Math.round(b));this.pj(a,b,null)};p.prototype.pj=function(a,b,c){var e=this.gc();this.ka=a;this.la=b;this.qa=a+1/e*this.b.O;this.oa=b+1/e*this.b.N;this.ka>this.qa&&(a=this.ka,this.ka=this.qa,this.qa=a);this.la>this.oa&&(a=this.la,this.la=this.oa,this.oa=a);a=this.fc();0!==a&&(c&&(c.translate(this.b.O/2,this.b.N/2),c.rotate(-a),c.translate(this.b.O/-2,this.b.N/-2)),this.Xd.set(this.ka,this.la,this.qa,this.oa),this.Xd.offset((this.ka+this.qa)/-2,(this.la+this.oa)/-2),this.Lp.tp(this.Xd,
a),this.Lp.gn(this.Xd),this.Xd.offset((this.ka+this.qa)/2,(this.la+this.oa)/2),this.ka=this.Xd.left,this.la=this.Xd.top,this.qa=this.Xd.right,this.oa=this.Xd.bottom)};p.prototype.ke=function(a){if(this.wd=this.wi){this.b.Ua||(this.b.Ua=a.ec(this.b.O,this.b.N,this.b.za));if(this.b.Ua.Te!==this.b.O||this.b.Ua.Se!==this.b.N)a.deleteTexture(this.b.Ua),this.b.Ua=a.ec(this.b.O,this.b.N,this.b.za);a.Ec(this.b.Ua)}this.Ed=!0;var b=this.Cb(0,0,!0,!0),c=this.Cb(0,0,!1,!0);this.Ed=!1;this.b.qc&&(b=Math.round(b),
c=Math.round(c));this.pj(b,c,null);b=this.gc();a.Dc();a.scale(b,b);a.qj(-this.fc());a.translate((this.ka+this.qa)/-2,(this.la+this.oa)/-2);a.rc();this.sc?(this.hb.left=this.nb.Jb(this.ka),this.hb.top=this.nb.Kb(this.la),this.hb.right=this.nb.Jb(this.qa),this.hb.bottom=this.nb.Kb(this.oa),this.bd||!this.hb.yg(this.Tf)?(t(this.Nd),b=this.Nk(),this.bd=!1,this.Tf.Df(this.hb)):b=this.Nd):b=this.i;for(var e,d=null,c=b.length-1;0<=c;--c)e=b[c],e!==d&&(this.hs(b[c],a),d=e);this.sc&&(this.Nd=b);this.fd||(this.nk=
this.b.Ye++,a.vj(this.nk),a.mp(1,1,1),a.Dn(),a.Qu())};p.prototype.Eb=function(a){var b=0,c=0;if(this.wd=this.wi||1!==this.opacity||0<this.da.length||0!==this.pb){this.b.Ua||(this.b.Ua=a.ec(this.b.O,this.b.N,this.b.za));if(this.b.Ua.Te!==this.b.O||this.b.Ua.Se!==this.b.N)a.deleteTexture(this.b.Ua),this.b.Ua=a.ec(this.b.O,this.b.N,this.b.za);a.Ec(this.b.Ua);this.fd&&a.clear(0,0,0,0)}this.fd||(this.b.ra?(a.vj(this.nk),a.mp(this.Nc[0]/255,this.Nc[1]/255,this.Nc[2]/255),a.Dn(),a.Zu()):a.clear(this.Nc[0]/
255,this.Nc[1]/255,this.Nc[2]/255,1));this.Ed=!0;var e=this.Cb(0,0,!0,!0),b=this.Cb(0,0,!1,!0);this.Ed=!1;this.b.qc&&(e=Math.round(e),b=Math.round(b));this.pj(e,b,null);e=this.gc();a.Dc();a.scale(e,e);a.qj(-this.fc());a.translate((this.ka+this.qa)/-2,(this.la+this.oa)/-2);a.rc();this.sc?(this.hb.left=this.nb.Jb(this.ka),this.hb.top=this.nb.Kb(this.la),this.hb.right=this.nb.Jb(this.qa),this.hb.bottom=this.nb.Kb(this.oa),this.bd||!this.hb.yg(this.Tf)?(t(this.Nd),b=this.Nk(),this.bd=!1,this.Tf.Df(this.hb)):
b=this.Nd):b=this.i;var d,g,m=null,c=0;for(d=b.length;c<d;++c)g=b[c],g!==m&&(this.gs(b[c],a),m=g);this.sc&&(this.Nd=b);this.wd&&(b=this.da.length?this.da[0].Pa:0,c=this.da.length?this.da[0].index:0,0===this.da.length||1===this.da.length&&!a.Hl(b)&&1===this.opacity?(1===this.da.length?(a.Yb(b),a.dg(this.Ha.Fg(),1/this.b.O,1/this.b.N,0,0,1,1,e,this.fc(),this.ka,this.la,(this.ka+this.qa)/2,(this.la+this.oa)/2,this.b.Rb.ca,this.Da[c]),a.jj(b)&&(this.b.ga=!0)):a.Yb(0),a.Ec(this.Ha.Fg()),a.He(this.opacity),
a.Wb(this.b.Ua),a.Ge(this.yb,this.wb),a.Dc(),a.rc(),e=this.b.O/2,b=this.b.N/2,a.wh(-e,b,e,b,e,-b,-e,-b),a.Wb(null)):this.Ha.Ml(a,this,null,this.Ha.Fg()))};p.prototype.gs=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ja();var c=a.ua;c.right<this.ka||c.bottom<this.la||c.left>this.qa||c.top>this.oa||(b.vj(a.Ye),a.Yp?this.js(a,b):(b.Yb(0),b.Ge(a.yb,a.wb),a.Eb(b)))}};p.prototype.hs=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ja();var c=a.ua;c.right<this.ka||c.bottom<this.la||c.left>
this.qa||c.top>this.oa||(a.Ye=this.b.Ye++,0===a.pb&&1===a.opacity&&a.Ud&&a.ke&&(b.vj(a.Ye),a.ke(b)))}};p.prototype.js=function(a,b){var c=a.da[0].Pa,e=a.da[0].index,d=this.gc();if(1!==a.da.length||b.Hl(c)||b.Iu(c)||(a.k||a.n.fc())&&b.sh(c)||1!==a.opacity||a.type.ma.No)this.Ha.Ml(b,this,a,this.wd?this.b.Ua:this.Ha.Fg()),b.Dc(),b.scale(d,d),b.qj(-this.fc()),b.translate((this.ka+this.qa)/-2,(this.la+this.oa)/-2),b.rc();else{b.Yb(c);b.Ge(a.yb,a.wb);b.jj(c)&&(this.b.ga=!0);var g=0,m=0,n=0,u=0;b.sh(c)&&
(u=a.ua,g=this.Ba(u.left,u.top,!0,!0),m=this.Ba(u.left,u.top,!1,!0),n=this.Ba(u.right,u.bottom,!0,!0),u=this.Ba(u.right,u.bottom,!1,!0),g=g/windowWidth,m=1-m/windowHeight,n=n/windowWidth,u=1-u/windowHeight);var v;a.bb&&a.bb.M?(v=a.bb.M,c=1/v.width,v=1/v.height):(c=1/a.width,v=1/a.height);b.dg(this.wd?this.b.Ua:this.Ha.Fg(),c,v,g,m,n,u,d,this.fc(),this.ka,this.la,(this.ka+this.qa)/2,(this.la+this.oa)/2,this.b.Rb.ca,a.Da[e]);a.Eb(b)}};p.prototype.Cb=function(a,b,c,e){var d=this.b.devicePixelRatio;this.b.hf&&
(a*=d,b*=d);var d=this.b.Xo,g=this.b.Yo,d=(this.Ha.scrollX-d)*this.Bc+d,g=(this.Ha.scrollY-g)*this.Cc+g,m=d,n=g,u=1/this.gc(!e);e?(m-=this.b.O*u/2,n-=this.b.N*u/2):(m-=this.b.width*u/2,n-=this.b.height*u/2);m+=a*u;n+=b*u;b=this.fc();0!==b&&(m-=d,n-=g,a=Math.cos(b),b=Math.sin(b),e=m*a-n*b,n=n*a+m*b,m=e+d,n+=g);return c?m:n};p.prototype.Ba=function(a,b,c,e){var d=this.b.Xo,g=this.b.Yo,m=(this.Ha.scrollX-d)*this.Bc+d,n=(this.Ha.scrollY-g)*this.Cc+g,g=m,d=n,u=this.fc();if(0!==u){a-=m;b-=n;var v=Math.cos(-u),
u=Math.sin(-u),p=a*v-b*u;b=b*v+a*u;a=p+m;b+=n}m=1/this.gc(!e);e?(g-=this.b.O*m/2,d-=this.b.N*m/2):(g-=this.b.width*m/2,d-=this.b.height*m/2);g=(a-g)/m;d=(b-d)/m;a=this.b.devicePixelRatio;this.b.hf&&!e&&(g/=a,d/=a);return c?g:d};p.prototype.Wa=function(){var a,b,c,e={s:this.scale,a:this.k,vl:this.ka,vt:this.la,vr:this.qa,vb:this.oa,v:this.visible,bc:this.Nc,t:this.fd,px:this.Bc,py:this.Cc,o:this.opacity,zr:this.jd,fx:[],cg:this.vg,instances:[]};a=0;for(b=this.S.length;a<b;a++)c=this.S[a],e.fx.push({name:c.name,
active:c.ic,params:this.Da[c.index]});return e};p.prototype.kb=function(a){var b,c,e;this.scale=a.s;this.k=a.a;this.ka=a.vl;this.la=a.vt;this.qa=a.vr;this.oa=a.vb;this.visible=a.v;this.Nc=a.bc;this.fd=a.t;this.Bc=a.px;this.Cc=a.py;this.opacity=a.o;this.jd=a.zr;this.vg=a.cg||[];U(this.mc,this.zp);var d=new ga;b=0;for(e=this.vg.length;b<e;++b)d.add(this.vg[b]);c=b=0;for(e=this.mc.length;b<e;++b)d.contains(this.mc[b][2])||(this.mc[c]=this.mc[b],++c);za(this.mc,c);c=a.fx;b=0;for(e=c.length;b<e;b++)if(a=
this.Ik(c[b].name))a.ic=c[b].active,this.Da[a.index]=c[b].params;this.gd();this.i.sort(g);this.yf=!0};Nb=p})();
(function(){function d(a,b){var c,e=a.length;switch(e){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<e;c++)if(a[c]!==b[c])return!1;return!0}}function g(a,b){return a.index-b.index}function p(a){var b,c,e,l;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(g);a.length>=B.length&&(B.length=a.length+1);B[a.length]||(B[a.length]=[]);l=B[a.length];b=0;for(c=l.length;b<c;b++)if(e=l[b],d(a,e))return e;l.push(a);return a}
function m(a,b){this.b=a;this.Op={};this.wn={};this.Sk=!1;this.Tn=new ga;this.uk=[];this.$j=[];this.name=b[0];var c=b[1];this.le=[];var e,l;e=0;for(l=c.length;e<l;e++)this.Vn(c[e],null,this.le)}function t(a){this.type=a;this.i=[];this.T=[];this.R=!0}function q(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.fa=[];this.Ie=[];this.Rn=this.Nj=this.nm=this.Wk=this.group=this.am=!1;this.Ra=[];this.tc=[];this.Fc=[];this.Hg="";this.df=this.Wk=this.group=!1;this.hi=null;c[1]&&(this.Hg=c[1][1].toLowerCase(),
this.group=!0,this.Wk=!!c[1][0],this.hi=[],this.df=this.Wk,this.b.Cf.push(this),this.b.Mf[this.Hg]=this);this.pc=c[2];this.Z=c[4];this.group||(this.b.en[this.Z.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var l=new Ob(this,e[a]);l.index=a;this.Ra.push(l);this.Zm(l.type)}e=c[6];a=0;for(b=e.length;a<b;a++)l=new Pb(this,e[a]),l.index=a,this.tc.push(l);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Vn(c[a],this,this.Fc);this.Ki=!1;this.Ra.length&&(this.Ki=null==this.Ra[0].type&&
this.Ra[0].ib==Y.prototype.p.Cm)}function r(a,b){var c,e,l;if(a&&(-1===b.indexOf(a)&&b.push(a),a.jb))for(c=0,e=a.cc.length;c<e;c++)l=a.cc[c],a!==l&&-1===b.indexOf(l)&&b.push(l)}function c(a,b){this.jc=a;this.sheet=a.sheet;this.b=a.b;this.Y=[];this.Ea=[];this.I={};this.index=-1;this.og=!1;this.ib=this.b.$d(b[1]);this.trigger=0<b[3];this.vn=2===b[3];this.Og=b[5];this.cu=b[6];this.Z=b[7];this.b.ge[this.Z.toString()]=this;-1===b[0]?(this.type=null,this.Oa=this.Ql,this.Qe=null,this.Pc=-1):(this.type=this.b.u[b[0]],
this.Oa=this.cu?this.Vu:this.Pl,b[2]?(this.Qe=this.type.Bi(b[2]),this.Pc=this.type.Gk(b[2])):(this.Qe=null,this.Pc=-1),this.jc.parent&&this.jc.parent.xj());this.vn&&(this.Oa=this.Wu);if(10===b.length){var c,e,l=b[9];c=0;for(e=l.length;c<e;c++){var f=new Qb(this,l[c]);this.Y.push(f)}this.Ea.length=l.length}}function b(a,b){this.jc=a;this.sheet=a.sheet;this.b=a.b;this.Y=[];this.Ea=[];this.I={};this.index=-1;this.og=!1;this.ib=this.b.$d(b[1]);-1===b[0]?(this.type=null,this.Oa=this.Ql,this.Qe=null,this.Pc=
-1):(this.type=this.b.u[b[0]],this.Oa=this.Pl,b[2]?(this.Qe=this.type.Bi(b[2]),this.Pc=this.type.Gk(b[2])):(this.Qe=null,this.Pc=-1));this.Z=b[3];this.b.be[this.Z.toString()]=this;if(6===b.length){var c,e,f=b[5];c=0;for(e=f.length;c<e;c++){var d=new Qb(this,f[c]);this.Y.push(d)}this.Ea.length=f.length}}function e(){C++;H.length===C&&H.push(new Rb);return H[C]}function a(a,b){this.Ac=a;this.jc=a.jc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.rd=null;this.Vd=0;this.get=null;this.pn=0;this.Ha=
null;this.key=0;this.object=null;this.index=0;this.Nh=this.uf=this.Nh=this.uf=this.yn=this.$e=this.Oh=null;this.Jc=!1;var c,e,f;switch(b[0]){case 0:case 7:this.rd=new Sb(this,b[1]);this.Vd=0;this.get=this.yt;break;case 1:this.rd=new Sb(this,b[1]);this.Vd=0;this.get=this.zt;break;case 5:this.rd=new Sb(this,b[1]);this.Vd=0;this.get=this.Dt;break;case 3:case 8:this.pn=b[1];this.get=this.wt;break;case 6:this.Ha=this.b.nl[b[1]];this.get=this.Et;break;case 9:this.key=b[1];this.get=this.Ct;break;case 4:this.object=
this.b.u[b[1]];this.get=this.Ft;this.jc.Zm(this.object);this.Ac instanceof Pb?this.jc.xj():this.jc.parent&&this.jc.parent.xj();break;case 10:this.index=b[1];a.type&&a.type.J?(this.get=this.At,this.Jc=!0):this.get=this.Bt;break;case 11:this.Oh=b[1];this.$e=null;this.get=this.xt;break;case 2:case 12:this.yn=b[1];this.get=this.ut;break;case 13:for(this.get=this.Gt,this.uf=[],this.Nh=[],c=1,e=b.length;c<e;c++)f=new Qb(this.Ac,b[c]),this.uf.push(f),this.Nh.push(0)}}function f(a,b,c){this.sheet=a;this.parent=
b;this.b=a.b;this.fa=[];this.name=c[1];this.$p=c[2];this.Vk=c[3];this.Ug=!!c[4];this.Ji=!!c[5];this.Z=c[6];this.b.mg[this.Z.toString()]=this;this.data=this.Vk;this.parent?(this.pf=this.Ug||this.Ji?-1:this.b.$u++,this.b.rr.push(this)):(this.pf=-1,this.b.qr.push(this))}function h(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.fa=[];this.Kg=null;this.Nt=c[1];this.ic=!0}function k(){this.Ap=[];this.reset(null)}var B=[];m.prototype.toString=function(){return this.name};m.prototype.Vn=function(a,b,c){switch(a[0]){case 0:a=
new Tb(this,b,a);if(a.pc)for(c.push(a),c=0,b=a.Ra.length;c<b;c++)a.Ra[c].trigger&&this.Wn(a,c);else a.io()?this.Wn(a,0):c.push(a);break;case 1:a=new Kb(this,b,a);c.push(a);break;case 2:a=new Ub(this,b,a),c.push(a)}};m.prototype.Ka=function(){var a,b;a=0;for(b=this.le.length;a<b;a++)this.le[a].Ka(a<b-1&&this.le[a+1].Ki)};m.prototype.tm=function(){R(this.uk);R(this.$j);this.Xm(this);R(this.$j)};m.prototype.Xm=function(a){var b,c,e,f,d=a.uk,k=a.$j,g=this.Tn.Ic();b=0;for(c=g.length;b<c;++b)e=g[b],f=e.Kg,
!e.ic||a===f||-1<k.indexOf(f)||(k.push(f),f.Xm(a),d.push(f))};m.prototype.Oa=function(a){this.b.kw||(this.Sk=!0,a||(this.b.cl=!0));var b,c;b=0;for(c=this.le.length;b<c;b++){var e=this.le[b];e.Oa();this.b.mk(e.fa);this.b.ne&&this.b.ob()}a||(this.b.cl=!1)};m.prototype.Wn=function(a,b){a.pc||this.b.Qj.push(a);var c,e,f=a.Ra[b],d;f.type?d=f.type.name:d="system";var k=(c=f.vn)?this.wn:this.Op;k[d]||(k[d]=[]);d=k[d];k=f.ib;if(c){if(f.Y.length&&(f=f.Y[0],1===f.type&&2===f.rd.type)){f=f.rd.value.toLowerCase();
c=0;for(e=d.length;c<e;c++)if(d[c].method==k){c=d[c].zg;c[f]?c[f].push([a,b]):c[f]=[[a,b]];return}c={};c[f]=[[a,b]];d.push({method:k,zg:c})}}else{c=0;for(e=d.length;c<e;c++)if(d[c].method==k){d[c].zg.push([a,b]);return}Z&&k===Z.prototype.p.Bf?d.unshift({method:k,zg:[[a,b]]}):d.push({method:k,zg:[[a,b]]})}};Ab=m;t.prototype.Fi=function(){return this.R?this.type.i.length:this.i.length};t.prototype.Fb=function(){return this.R?this.type.i:this.i};t.prototype.rh=function(a){a&&(a.b.Ga().Ma.pc?(this.R&&
(R(this.i),U(this.T,a.type.i),this.R=!1),a=this.T.indexOf(a),-1!==a&&(this.i.push(this.T[a]),this.T.splice(a,1))):(this.R=!1,R(this.i),this.i[0]=a))};jb=t;window._c2hh_="37C83F976C140139885F3C396BA11413E974CC56";q.prototype.Ka=function(a){var b,c=this.parent;if(this.group)for(this.Nj=!0;c;){if(!c.group){this.Nj=!1;break}c=c.parent}this.nm=!this.io()&&(!this.parent||this.parent.group&&this.parent.Nj);this.Rn=!!a;this.Ie=this.fa.slice(0);for(c=this.parent;c;){a=0;for(b=c.fa.length;a<b;a++)this.pr(c.fa[a]);
c=c.parent}this.fa=p(this.fa);this.Ie=p(this.Ie);a=0;for(b=this.Ra.length;a<b;a++)this.Ra[a].Ka();a=0;for(b=this.tc.length;a<b;a++)this.tc[a].Ka();a=0;for(b=this.Fc.length;a<b;a++)this.Fc[a].Ka(a<b-1&&this.Fc[a+1].Ki)};q.prototype.wj=function(a){if(this.df!==!!a){this.df=!!a;var b;a=0;for(b=this.hi.length;a<b;++a)this.hi[a].Tp();0<b&&this.b.ta.Ze&&this.b.ta.Ze.tm()}};q.prototype.Zm=function(a){r(a,this.fa)};q.prototype.pr=function(a){r(a,this.Ie)};q.prototype.xj=function(){this.am=!0;this.parent&&
this.parent.xj()};q.prototype.io=function(){return this.Ra.length?this.Ra[0].trigger:!1};q.prototype.Oa=function(){var a,b,c=!1,e=this.b,f=this.b.Ga();f.Ma=this;var d=this.Ra;this.Ki||(f.xk=!1);if(this.pc){0===d.length&&(c=!0);f.La=0;for(a=d.length;f.La<a;f.La++)b=d[f.La],b.trigger||(b=b.Oa())&&(c=!0);(f.lf=c)&&this.rj()}else{f.La=0;for(a=d.length;f.La<a;f.La++)if(b=d[f.La].Oa(),!b){f.lf=!1;this.nm&&e.ne&&e.ob();return}f.lf=!0;this.rj()}this.ns(f)};q.prototype.ns=function(a){a.lf&&this.Rn&&(a.xk=
!0);this.nm&&this.b.ne&&this.b.ob()};q.prototype.Tu=function(a){this.b.Ga().Ma=this;this.Ra[a].Oa()&&(this.rj(),this.b.Ga().lf=!0)};q.prototype.rj=function(){var a=this.b.Ga(),b;a.Mb=0;for(b=this.tc.length;a.Mb<b;a.Mb++)if(this.tc[a.Mb].Oa())return;this.kp()};q.prototype.Ru=function(){var a=this.b.Ga(),b;for(b=this.tc.length;a.Mb<b;a.Mb++)if(this.tc[a.Mb].Oa())return;this.kp()};q.prototype.kp=function(){if(this.Fc.length){var a,b,c,e,f=this.Fc.length-1;this.b.kj(this);if(this.am)for(a=0,b=this.Fc.length;a<
b;a++)c=this.Fc[a],(e=!this.Nj||!this.group&&a<f)&&this.b.$f(c.fa),c.Oa(),e?this.b.Sd(c.fa):this.b.mk(c.fa);else for(a=0,b=this.Fc.length;a<b;a++)this.Fc[a].Oa();this.b.hj()}};q.prototype.Uu=function(){var a=this.b.Ga();a.Ma=this;var b=!1,c;a.La=0;for(c=this.Ra.length;a.La<c;a.La++)if(this.Ra[a.La].Oa())b=!0;else if(!this.pc)return!1;return this.pc?b:!0};q.prototype.oj=function(){this.b.bf++;var a=this.b.Ga().La,b=this.b.kj(this);if(!this.pc)for(b.La=a+1,a=this.Ra.length;b.La<a;b.La++)if(!this.Ra[b.La].Oa()){this.b.hj();
return}this.rj();this.b.hj()};q.prototype.Xt=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Ra[b].type===a.type)return!1;return!0};Tb=q;c.prototype.Ka=function(){var a,b,c;a=0;for(b=this.Y.length;a<b;a++)c=this.Y[a],c.Ka(),c.Jc&&(this.og=!0)};c.prototype.Wu=function(){return!0};c.prototype.Ql=function(){var a,b;a=0;for(b=this.Y.length;a<b;a++)this.Ea[a]=this.Y[a].get();return Oa(this.ib.apply(this.b.yd,this.Ea),this.Og)};c.prototype.Vu=function(){var a,b;a=0;for(b=this.Y.length;a<
b;a++)this.Ea[a]=this.Y[a].get();a=this.ib.apply(this.Qe?this.Qe:this.type,this.Ea);this.type.Mc();return a};c.prototype.Pl=function(){var a,b,c,e,f,d,k,g,h=this.type,m=h.Q(),p=this.jc.pc&&!this.trigger;b=0;var r=h.jb,q=h.J,t=h.Hd,B=this.Pc,H=-1<B,C=this.og,L=this.Y,w=this.Ea,z=this.Og,V=this.ib,D;if(C)for(b=0,f=L.length;b<f;++b)d=L[b],d.Jc||(w[b]=d.get(0));else for(b=0,f=L.length;b<f;++b)w[b]=L[b].get(0);if(m.R){R(m.i);R(m.T);D=h.i;a=0;for(e=D.length;a<e;++a){g=D[a];if(C)for(b=0,f=L.length;b<f;++b)d=
L[b],d.Jc&&(w[b]=d.get(a));H?(b=0,q&&(b=g.type.Jf[t]),b=V.apply(g.L[B+b],w)):b=V.apply(g,w);(k=Oa(b,z))?m.i.push(g):p&&m.T.push(g)}h.finish&&h.finish(!0);m.R=!1;h.Mc();return m.Fi()}c=0;D=(k=p&&!this.jc.Xt(this))?m.T:m.i;var E=!1;a=0;for(e=D.length;a<e;++a){g=D[a];if(C)for(b=0,f=L.length;b<f;++b)d=L[b],d.Jc&&(w[b]=d.get(a));H?(b=0,q&&(b=g.type.Jf[t]),b=V.apply(g.L[B+b],w)):b=V.apply(g,w);if(Oa(b,z))if(E=!0,k){if(m.i.push(g),r)for(b=0,f=g.siblings.length;b<f;b++)d=g.siblings[b],d.type.Q().i.push(d)}else{D[c]=
g;if(r)for(b=0,f=g.siblings.length;b<f;b++)d=g.siblings[b],d.type.Q().i[c]=d;c++}else if(k){D[c]=g;if(r)for(b=0,f=g.siblings.length;b<f;b++)d=g.siblings[b],d.type.Q().T[c]=d;c++}else if(p&&(m.T.push(g),r))for(b=0,f=g.siblings.length;b<f;b++)d=g.siblings[b],d.type.Q().T.push(d)}za(D,c);if(r)for(q=h.cc,a=0,e=q.length;a<e;a++)g=q[a].Q(),k?za(g.T,c):za(g.i,c);c=E;if(k&&!E)for(a=0,e=m.i.length;a<e;a++){g=m.i[a];if(C)for(b=0,f=L.length;b<f;b++)d=L[b],d.Jc&&(w[b]=d.get(a));b=H?V.apply(g.L[B],w):V.apply(g,
w);if(Oa(b,z)){E=!0;break}}h.finish&&h.finish(c||p);return p?E:m.Fi()};Ob=c;b.prototype.Ka=function(){var a,b,c;a=0;for(b=this.Y.length;a<b;a++)c=this.Y[a],c.Ka(),c.Jc&&(this.og=!0)};b.prototype.Ql=function(){var a=this.b,b,c,e=this.Y,f=this.Ea;b=0;for(c=e.length;b<c;++b)f[b]=e[b].get();return this.ib.apply(a.yd,f)};b.prototype.Pl=function(){var a=this.type,b=this.Pc,c=a.Hd,e=this.og,f=this.Y,d=this.Ea,k=this.ib,g=a.Q().Fb(),a=a.J,h=-1<b,m,p,r,q,t,B;if(e)for(p=0,q=f.length;p<q;++p)t=f[p],t.Jc||(d[p]=
t.get(0));else for(p=0,q=f.length;p<q;++p)d[p]=f[p].get(0);m=0;for(r=g.length;m<r;++m){B=g[m];if(e)for(p=0,q=f.length;p<q;++p)t=f[p],t.Jc&&(d[p]=t.get(m));h?(p=0,a&&(p=B.type.Jf[c]),k.apply(B.L[b+p],d)):k.apply(B,d)}return!1};Pb=b;var H=[],C=-1;a.prototype.Ka=function(){var a,b;if(11===this.type)this.$e=this.b.In(this.Oh,this.jc.parent);else if(13===this.type)for(a=0,b=this.uf.length;a<b;a++)this.uf[a].Ka();this.rd&&this.rd.Ka()};a.prototype.gu=function(a){this.Jc||!a||a.ma.Ej||(this.Jc=!0)};a.prototype.rp=
function(){this.Jc=!0};a.prototype.yt=function(a){this.Vd=a||0;a=e();this.rd.get(a);C--;return a.data};a.prototype.zt=function(a){this.Vd=a||0;a=e();this.rd.get(a);C--;return G(a.data)?a.data:""};a.prototype.Ft=function(){return this.object};a.prototype.wt=function(){return this.pn};a.prototype.Dt=function(a){this.Vd=a||0;a=e();this.rd.get(a);C--;return a.eb()?this.b.Dg(a.data):this.b.Lk(a.data)};a.prototype.Et=function(){return this.Ha};a.prototype.Ct=function(){return this.key};a.prototype.Bt=function(){return this.index};
a.prototype.At=function(a){a=a||0;var b=this.Ac.type,c=null,c=b.Q(),e=c.Fb();if(e.length)c=e[a%e.length].type;else if(c.T.length)c=c.T[a%c.T.length].type;else if(b.i.length)c=b.i[a%b.i.length].type;else return 0;return this.index+c.qi[b.Hd]};a.prototype.xt=function(){return this.$e};a.prototype.ut=function(){return this.yn};a.prototype.Gt=function(){var a,b;a=0;for(b=this.uf.length;a<b;a++)this.Nh[a]=this.uf[a].get();return this.Nh};Qb=a;f.prototype.Ka=function(){this.fa=p(this.fa)};f.prototype.yj=
function(a){var b=this.b.Hn();this.parent&&!this.Ug&&b?(this.pf>=b.length&&(b.length=this.pf+1),b[this.pf]=a):this.data=a};f.prototype.On=function(){var a=this.b.Hn();return!this.parent||this.Ug||!a||this.Ji?this.data:this.pf>=a.length||"undefined"===typeof a[this.pf]?this.Vk:a[this.pf]};f.prototype.Oa=function(){!this.parent||this.Ug||this.Ji||this.yj(this.Vk)};Kb=f;h.prototype.toString=function(){return"include:"+this.Kg.toString()};h.prototype.Ka=function(){this.Kg=this.b.zk[this.Nt];this.sheet.Tn.add(this);
this.fa=p(this.fa);for(var a=this.parent;a;)a.group&&a.hi.push(this),a=a.parent;this.Tp()};h.prototype.Oa=function(){this.parent&&this.b.vh(this.b.u);this.Kg.Sk||this.Kg.Oa(!0);this.parent&&this.b.Sd(this.b.u)};h.prototype.Tp=function(){for(var a=this.parent;a;){if(a.group&&!a.df){this.ic=!1;return}a=a.parent}this.ic=!0};Ub=h;k.prototype.reset=function(a){this.Ma=a;this.Mb=this.La=0;R(this.Ap);this.xk=this.lf=!1};k.prototype.Yt=function(){return this.Ma.am?!0:this.La<this.Ma.Ra.length-1?!!this.Ma.fa.length:
!1};Jb=k})();
(function(){function d(d,c){this.Ac=d;this.b=d.b;this.type=c[0];this.get=[this.Hs,this.Ds,this.Qs,this.Ts,this.rs,this.Rs,this.Ls,this.As,this.Ks,this.Ps,this.ts,this.Os,this.Bs,this.Ms,this.Is,this.Js,this.Es,this.Fs,this.zs,this.Ss,this.Ns,this.Gs,this.ys,this.Cs][this.type];var b=null;this.Qd=this.Y=this.Ea=this.ib=this.Kj=this.second=this.first=this.value=null;this.Pc=-1;this.Tc=null;this.Zp=-1;this.$e=this.Oh=null;this.bg=!1;switch(this.type){case 0:case 1:case 2:this.value=c[1];break;case 3:this.first=
new Sb(d,c[1]);break;case 18:this.first=new Sb(d,c[1]);this.second=new Sb(d,c[2]);this.Kj=new Sb(d,c[3]);break;case 19:this.ib=this.b.$d(c[1]);this.ib!==Y.prototype.W.random&&this.ib!==Y.prototype.W.mn||this.Ac.rp();this.Ea=[];this.Y=[];3===c.length?(b=c[2],this.Ea.length=b.length+1):this.Ea.length=1;break;case 20:this.Qd=this.b.u[c[1]];this.Pc=-1;this.ib=this.b.$d(c[2]);this.bg=c[3];gc&&this.ib===gc.prototype.W.lq&&this.Ac.rp();c[4]?this.Tc=new Sb(d,c[4]):this.Tc=null;this.Ea=[];this.Y=[];6===c.length?
(b=c[5],this.Ea.length=b.length+1):this.Ea.length=1;break;case 21:this.Qd=this.b.u[c[1]];this.bg=c[2];c[3]?this.Tc=new Sb(d,c[3]):this.Tc=null;this.Zp=c[4];break;case 22:this.Qd=this.b.u[c[1]];this.Qd.Bi(c[2]);this.Pc=this.Qd.Gk(c[2]);this.ib=this.b.$d(c[3]);this.bg=c[4];c[5]?this.Tc=new Sb(d,c[5]):this.Tc=null;this.Ea=[];this.Y=[];7===c.length?(b=c[6],this.Ea.length=b.length+1):this.Ea.length=1;break;case 23:this.Oh=c[1],this.$e=null}this.Ac.gu(this.Qd);4<=this.type&&17>=this.type&&(this.first=new Sb(d,
c[1]),this.second=new Sb(d,c[2]));if(b){var e,a;e=0;for(a=b.length;e<a;e++)this.Y.push(new Sb(d,b[e]))}}function g(){++q;t.length===q&&t.push(new Rb);return t[q]}function p(d,c,b){var e,a;e=0;for(a=d.length;e<a;++e)d[e].get(b),c[e+1]=b.data}function m(d,c){this.type=d||Vb.Af;this.data=c||0;this.sf=null;this.type==Vb.Af&&(this.data=Math.floor(this.data))}d.prototype.Ka=function(){23===this.type&&(this.$e=this.Ac.b.In(this.Oh,this.Ac.jc.parent));this.first&&this.first.Ka();this.second&&this.second.Ka();
this.Kj&&this.Kj.Ka();this.Tc&&this.Tc.Ka();if(this.Y){var d,c;d=0;for(c=this.Y.length;d<c;d++)this.Y[d].Ka()}};var t=[],q=-1;d.prototype.Ss=function(d){var c=this.Y,b=this.Ea;b[0]=d;d=g();p(c,b,d);--q;this.ib.apply(this.b.yd,b)};d.prototype.Ns=function(d){var c=this.Qd,b=this.Ea,e=this.Y,a=this.Tc,f=this.ib,h=this.Ac.Vd,k=c.Q(),m=k.Fb();if(!m.length)if(k.T.length)m=k.T;else{this.bg?d.Xb(""):d.ia(0);return}b[0]=d;d.sf=c;d=g();p(e,b,d);a&&(a.get(d),d.eb()&&(h=d.data,m=c.i));--q;c=m.length;if(h>=c||
h<=-c)h%=c;0>h&&(h+=c);f.apply(m[h],b)};d.prototype.ys=function(d){var c=this.Qd,b=this.Ea,e=this.Y,a=this.Tc,f=this.Pc,h=this.ib,k=this.Ac.Vd,m=c.Q(),t=m.Fb();if(!t.length)if(m.T.length)t=m.T;else{this.bg?d.Xb(""):d.ia(0);return}b[0]=d;d.sf=c;d=g();p(e,b,d);a&&(a.get(d),d.eb()&&(k=d.data,t=c.i));--q;e=t.length;if(k>=e||k<=-e)k%=e;0>k&&(k+=e);k=t[k];t=0;c.J&&(t=k.type.Jf[c.Hd]);h.apply(k.L[f+t],b)};d.prototype.Gs=function(d){var c=this.Tc,b=this.Qd,e=this.Zp,a=this.Ac.Vd,f=b.Q(),h=f.Fb();if(!h.length)if(f.T.length)h=
f.T;else{this.bg?d.Xb(""):d.ia(0);return}if(c){f=g();c.get(f);if(f.eb()){a=f.data;h=b.i;0!==h.length&&(a%=h.length,0>a&&(a+=h.length));a=b.Kk(a);b=a.Ta[e];G(b)?d.Xb(b):d.H(b);--q;return}--q}c=h.length;if(a>=c||a<=-c)a%=c;0>a&&(a+=c);a=h[a];h=0;b.J&&(h=a.type.qi[b.Hd]);b=a.Ta[e+h];G(b)?d.Xb(b):d.H(b)};d.prototype.Hs=function(d){d.type=Vb.Af;d.data=this.value};d.prototype.Ds=function(d){d.type=Vb.zf;d.data=this.value};d.prototype.Qs=function(d){d.type=Vb.String;d.data=this.value};d.prototype.Ts=function(d){this.first.get(d);
d.eb()&&(d.data=-d.data)};d.prototype.rs=function(d){this.first.get(d);var c=g();this.second.get(c);d.eb()&&c.eb()&&(d.data+=c.data,c.Nf()&&d.Vf());--q};d.prototype.Rs=function(d){this.first.get(d);var c=g();this.second.get(c);d.eb()&&c.eb()&&(d.data-=c.data,c.Nf()&&d.Vf());--q};d.prototype.Ls=function(d){this.first.get(d);var c=g();this.second.get(c);d.eb()&&c.eb()&&(d.data*=c.data,c.Nf()&&d.Vf());--q};d.prototype.As=function(d){this.first.get(d);var c=g();this.second.get(c);d.eb()&&c.eb()&&(d.data/=
c.data,d.Vf());--q};d.prototype.Ks=function(d){this.first.get(d);var c=g();this.second.get(c);d.eb()&&c.eb()&&(d.data%=c.data,c.Nf()&&d.Vf());--q};d.prototype.Ps=function(d){this.first.get(d);var c=g();this.second.get(c);d.eb()&&c.eb()&&(d.data=Math.pow(d.data,c.data),c.Nf()&&d.Vf());--q};d.prototype.ts=function(d){this.first.get(d);var c=g();this.second.get(c);c.Pf()||d.Pf()?this.vs(d,c):this.us(d,c);--q};d.prototype.vs=function(d,c){d.Pf()&&c.Pf()?this.xs(d,c):this.ws(d,c)};d.prototype.xs=function(d,
c){d.data+=c.data};d.prototype.ws=function(d,c){d.Pf()?d.data+=(Math.round(1E10*c.data)/1E10).toString():d.Xb(d.data.toString()+c.data)};d.prototype.us=function(d,c){d.ia(d.data&&c.data?1:0)};d.prototype.Os=function(d){this.first.get(d);var c=g();this.second.get(c);d.eb()&&c.eb()&&(d.data||c.data?d.ia(1):d.ia(0));--q};d.prototype.zs=function(d){this.first.get(d);d.data?this.second.get(d):this.Kj.get(d)};d.prototype.Bs=function(d){this.first.get(d);var c=g();this.second.get(c);d.ia(d.data===c.data?
1:0);--q};d.prototype.Ms=function(d){this.first.get(d);var c=g();this.second.get(c);d.ia(d.data!==c.data?1:0);--q};d.prototype.Is=function(d){this.first.get(d);var c=g();this.second.get(c);d.ia(d.data<c.data?1:0);--q};d.prototype.Js=function(d){this.first.get(d);var c=g();this.second.get(c);d.ia(d.data<=c.data?1:0);--q};d.prototype.Es=function(d){this.first.get(d);var c=g();this.second.get(c);d.ia(d.data>c.data?1:0);--q};d.prototype.Fs=function(d){this.first.get(d);var c=g();this.second.get(c);d.ia(d.data>=
c.data?1:0);--q};d.prototype.Cs=function(d){var c=this.$e.On();la(c)?d.H(c):d.Xb(c)};Sb=d;m.prototype.Nf=function(){return this.type===Vb.zf};m.prototype.eb=function(){return this.type===Vb.Af||this.type===Vb.zf};m.prototype.Pf=function(){return this.type===Vb.String};m.prototype.Vf=function(){this.Nf()||(this.Pf()&&(this.data=parseFloat(this.data)),this.type=Vb.zf)};m.prototype.ia=function(d){this.type=Vb.Af;this.data=Math.floor(d)};m.prototype.H=function(d){this.type=Vb.zf;this.data=d};m.prototype.Xb=
function(d){this.type=Vb.String;this.data=d};m.prototype.Wl=function(d){la(d)?(this.type=Vb.zf,this.data=d):G(d)?(this.type=Vb.String,this.data=d.toString()):(this.type=Vb.Af,this.data=0)};Rb=m;Vb={Af:0,zf:1,String:2}})();function Y(d){this.b=d;this.$b=[]}
Y.prototype.Wa=function(){var d={},g,p,m,t,q,r,c,b;d.waits=[];var e=d.waits,a;g=0;for(p=this.$b.length;g<p;g++){r=this.$b[g];a={t:r.time,st:r.xp,s:r.$l,ev:r.Hf.Z,sm:[],sols:{}};r.Hf.tc[r.Mb]&&(a.act=r.Hf.tc[r.Mb].Z);m=0;for(t=r.fa.length;m<t;m++)a.sm.push(r.fa[m].Z);for(q in r.Gb)if(r.Gb.hasOwnProperty(q)){c=this.b.u[parseInt(q,10)];b={sa:r.Gb[q].sj,insts:[]};m=0;for(t=r.Gb[q].Kd.length;m<t;m++)b.insts.push(r.Gb[q].Kd[m].uid);a.sols[c.Z.toString()]=b}e.push(a)}return d};
Y.prototype.kb=function(d){d=d.waits;var g,p,m,t,q,r,c,b,e,a,f;R(this.$b);g=0;for(p=d.length;g<p;g++)if(r=d[g],b=this.b.en[r.ev.toString()]){e=-1;m=0;for(t=b.tc.length;m<t;m++)if(b.tc[m].Z===r.act){e=m;break}if(-1!==e){c={Gb:{},fa:[],vk:!1};c.time=r.t;c.xp=r.st||"";c.$l=!!r.s;c.Hf=b;c.Mb=e;m=0;for(t=r.sm.length;m<t;m++)(b=this.b.Eg(r.sm[m]))&&c.fa.push(b);for(q in r.sols)if(r.sols.hasOwnProperty(q)&&(b=this.b.Eg(parseInt(q,10)))){e=r.sols[q];a={sj:e.sa,Kd:[]};m=0;for(t=e.insts.length;m<t;m++)(f=this.b.Mk(e.insts[m]))&&
a.Kd.push(f);c.Gb[b.index.toString()]=a}this.$b.push(c)}}};
(function(){function d(){}function g(){}function p(){}var m=Y.prototype;d.prototype.wq=function(){return!0};d.prototype.Lm=function(){return!0};d.prototype.Rq=function(){return!0};d.prototype.oq=function(b,c,a){return Wb(b,c,a)};var t=[],q=-1;d.prototype.xq=function(b){var c=b.Q();q++;t.length===q&&t.push([]);var a=t[q];U(a,c.Fb());var f=this.b.Ga(),d=f.Ma,k=f.Yt(),f=this.b.Lu(),g,m,p,n,r,v,M=b.jb;if(k)for(k=0,g=a.length;k<g&&!f.em;k++){this.b.$f(d.fa);n=a[k];c=b.Q();c.R=!1;R(c.i);c.i[0]=n;if(M)for(m=
0,p=n.siblings.length;m<p;m++)r=n.siblings[m],v=r.type.Q(),v.R=!1,R(v.i),v.i[0]=r;f.index=k;d.oj();this.b.Sd(d.fa)}else for(c.R=!1,R(c.i),k=0,g=a.length;k<g&&!f.em;k++){n=a[k];c.i[0]=n;if(M)for(m=0,p=n.siblings.length;m<p;m++)r=n.siblings[m],v=r.type.Q(),v.R=!1,R(v.i),v.i[0]=r;f.index=k;d.oj()}R(a);this.b.Bu();q--;return!1};d.prototype.vq=function(b){var c=this.b.Lf(),a=c.I.Every_lastTime||0,f=this.b.Rb.ca;"undefined"===typeof c.I.Every_seconds&&(c.I.Every_seconds=b);var d=c.I.Every_seconds;if(f>=
a+d)return c.I.Every_lastTime=a+d,f>=c.I.Every_lastTime+.04&&(c.I.Every_lastTime=f),c.I.Every_seconds=b,!0;f<a-.1&&(c.I.Every_lastTime=f);return!1};d.prototype.pq=function(b,c,a){return Wb(b.On(),c,a)};d.prototype.Eq=function(b){return(b=this.b.Mf[b.toLowerCase()])&&b.df};d.prototype.Cm=function(){var b=this.b.Ga();return b.xk?!1:!b.lf};d.prototype.Mm=function(){return!0};d.prototype.Nq=function(){return!0};d.prototype.Yj=function(){return!0};d.prototype.Pm=function(){return!0};d.prototype.Sq=function(){return!0};
d.prototype.Uh=function(){return!0};d.prototype.jq=function(b,c,a){return Ka(X(b),X(a))<=X(c)};d.prototype.Dq=function(b,c){return Ma(X(b),X(c))};d.prototype.Aq=function(b,c,a){b=Ia(b);c=Ia(c);a=Ia(a);return Ma(a,c)?Ma(b,c)&&!Ma(b,a):!(!Ma(b,c)&&Ma(b,a))};m.p=new d;g.prototype.rq=function(b,c,a,f){if(c&&b&&(c=this.b.qk(b,c,a,f))){this.b.nc++;var d;this.b.trigger(Object.getPrototypeOf(b.ma).p.Ne,c);if(c.jb)for(a=0,f=c.siblings.length;a<f;a++)d=c.siblings[a],this.b.trigger(Object.getPrototypeOf(d.type.ma).p.Ne,
d);this.b.nc--;b=b.Q();b.R=!1;R(b.i);b.i[0]=c;if(c.jb)for(a=0,f=c.siblings.length;a<f;a++)d=c.siblings[a],b=d.type.Q(),b.R=!1,R(b.i),b.i[0]=d}};g.prototype.fr=function(b,c){0===b.$p?la(c)?b.yj(c):b.yj(parseFloat(c)):1===b.$p&&b.yj(c.toString())};g.prototype.Zq=function(b,c){var a=this.b.Mf[b.toLowerCase()];if(a)switch(c){case 0:a.wj(!1);break;case 1:a.wj(!0);break;case 2:a.wj(!a.df)}};var r=[],c=[];g.prototype.mr=function(b){if(!(0>b)){var e,a,f,d=this.b.Ga(),k;r.length?k=r.pop():k={Gb:{},fa:[]};
k.vk=!1;k.time=this.b.Rb.ca+b;k.xp="";k.$l=!1;k.Hf=d.Ma;k.Mb=d.Mb+1;b=0;for(e=this.b.u.length;b<e;b++)f=this.b.u[b],a=f.Q(),a.R&&-1===d.Ma.fa.indexOf(f)||(k.fa.push(f),f=void 0,c.length?f=c.pop():f={Kd:[]},f.sj=!1,f.sj=a.R,U(f.Kd,a.i),k.Gb[b.toString()]=f);this.$b.push(k);return!0}};m.F=new g;p.prototype["int"]=function(b,c){G(c)?(b.ia(parseInt(c,10)),isNaN(b.data)&&(b.data=0)):b.ia(c)};p.prototype["float"]=function(b,c){G(c)?(b.H(parseFloat(c)),isNaN(b.data)&&(b.data=0)):b.H(c)};p.prototype.random=
function(b,c,a){void 0===a?b.H(Math.random()*c):b.H(Math.random()*(a-c)+c)};p.prototype.sqrt=function(b,c){b.H(Math.sqrt(c))};p.prototype.abs=function(b,c){b.H(Math.abs(c))};p.prototype.round=function(b,c){b.ia(Math.round(c))};p.prototype.floor=function(b,c){b.ia(Math.floor(c))};p.prototype.ceil=function(b,c){b.ia(Math.ceil(c))};p.prototype.sin=function(b,c){b.H(Math.sin(X(c)))};p.prototype.cos=function(b,c){b.H(Math.cos(X(c)))};p.prototype.tan=function(b,c){b.H(Math.tan(X(c)))};p.prototype.asin=
function(b,c){b.H(Ea(Math.asin(c)))};p.prototype.acos=function(b,c){b.H(Ea(Math.acos(c)))};p.prototype.atan=function(b,c){b.H(Ea(Math.atan(c)))};p.prototype.exp=function(b,c){b.H(Math.exp(c))};p.prototype.log10=function(b,c){b.H(Math.log(c)/Math.LN10)};p.prototype.max=function(b){var c=arguments[1];"number"!==typeof c&&(c=0);var a,f,d;a=2;for(f=arguments.length;a<f;a++)d=arguments[a],"number"===typeof d&&c<d&&(c=d);b.H(c)};p.prototype.min=function(b){var c=arguments[1];"number"!==typeof c&&(c=0);
var a,f,d;a=2;for(f=arguments.length;a<f;a++)d=arguments[a],"number"===typeof d&&c>d&&(c=d);b.H(c)};p.prototype.We=function(b){b.H(this.b.We)};p.prototype.jg=function(b){b.H(this.b.jg)};p.prototype.time=function(b){b.H(this.b.Rb.ca)};p.prototype.Hc=function(b){b.ia(this.b.Hc)};p.prototype.cj=function(b){b.ia(this.b.cj)};p.prototype.xi=function(b){b.ia(this.b.xi)};p.prototype.Lr=function(b,c,a,d,g){b.H(Na(c,a,d,g))};p.prototype.k=function(b,c,a,d,g){b.H(Ea(Ja(c,a,d,g)))};p.prototype.left=function(b,
c,a){b.Xb(G(c)?c.substr(0,a):"")};p.prototype.right=function(b,c,a){b.Xb(G(c)?c.substr(c.length-a):"")};p.prototype.replace=function(b,c,a,d){G(c)&&G(a)&&G(d)?b.Xb(c.replace(new RegExp(Wa(a),"gi"),d)):b.Xb(G(c)?c:"")};p.prototype.trim=function(b,c){b.Xb(G(c)?c.trim():"")};p.prototype.mn=function(b){var c=N(Math.random()*(arguments.length-1));b.Wl(arguments[c+1])};p.prototype.ok=function(b){b.H(this.b.ok/1E3)};p.prototype.Vi=function(b){b.H(this.b.Vi)};p.prototype.xu=function(b){b.ia(this.b.Ja)};p.prototype.wu=
function(b){b.ia(this.b.Ia)};m.W=new p;m.Su=function(){var b,e,a,d,g,k,m=this.b.Ga();b=0;for(a=this.$b.length;b<a;b++){d=this.$b[b];if(-1===d.time){if(!d.$l)continue}else if(d.time>this.b.Rb.ca)continue;m.Ma=d.Hf;m.Mb=d.Mb;m.La=0;for(e in d.Gb)d.Gb.hasOwnProperty(e)&&(g=this.b.u[parseInt(e,10)].Q(),k=d.Gb[e],g.R=k.sj,U(g.i,k.Kd),g=k,R(g.Kd),c.push(g));d.Hf.Ru();this.b.mk(d.fa);d.vk=!0}e=b=0;for(a=this.$b.length;b<a;b++)d=this.$b[b],this.$b[e]=d,d.vk?(Qa(d.Gb),R(d.fa),r.push(d)):e++;za(this.$b,e)}})();
(function(){ib=function(d,p){var m=d[1],t=d[3],q=d[4],r=d[5],c=d[6],b=d[7],e=d[8];p.p||(p.p={});p.F||(p.F={});p.W||(p.W={});var a=p.p,f=p.F,h=p.W;t&&(a.qq=function(a,b){return Wb(this.x,a,b)},a.uv=function(a,b){return Wb(this.y,a,b)},a.yv=function(){var a=this.n;this.ja();var b=this.ua;return!(b.right<a.ka||b.bottom<a.la||b.left>a.qa||b.top>a.oa)},a.zv=function(){this.ja();var a=this.ua,b=this.b.ta;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Kv=function(a,b,c){var e=this.Q(),d=
e.Fb();if(!d.length)return!1;var f=d[0],g=f,h=Na(f.x,f.y,b,c),l,m,p;l=1;for(m=d.length;l<m;l++)if(f=d[l],p=Na(f.x,f.y,b,c),0===a&&p<h||1===a&&p>h)h=p,g=f;e.rh(g);return!0},f.Zj=function(a){this.x!==a&&(this.x=a,this.P())},f.gr=function(a){this.y!==a&&(this.y=a,this.P())},f.Rm=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.P()},f.Wv=function(a,b){var c=a.nt(this);if(c){var e;c.Cg?(e=c.Cg(b,!0),c=c.Cg(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.P()}},f.Jq=function(a){0!==
a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.P())},f.Dv=function(a,b){0!==b&&(this.x+=Math.cos(X(a))*b,this.y+=Math.sin(X(a))*b,this.P())},h.Vm=function(a){a.H(this.x)},h.Wm=function(a){a.H(this.y)},h.We=function(a){a.H(this.b.Bg(this))});q&&(a.tv=function(a,b){return Wb(this.width,a,b)},a.rv=function(a,b){return Wb(this.height,a,b)},f.Tm=function(a){this.width!==a&&(this.width=a,this.P())},f.Uv=function(a){this.height!==a&&(this.height=a,this.P())},f.br=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.P()},h.Um=function(a){a.H(this.width)},h.zq=function(a){a.H(this.height)},h.ov=function(a){this.ja();a.H(this.ua.left)},h.qv=function(a){this.ja();a.H(this.ua.top)},h.pv=function(a){this.ja();a.H(this.ua.right)},h.nv=function(a){this.ja();a.H(this.ua.bottom)});r&&(a.jq=function(a,b){return Ka(this.k,X(b))<=X(a)},a.Dq=function(a){return Ma(this.k,X(a))},a.Aq=function(a,b){var c=Ia(a),e=Ia(b),d=Ga(this.k);return Ma(e,c)?Ma(d,c)&&!Ma(d,e):!(!Ma(d,c)&&
Ma(d,e))},f.Wq=function(a){a=X(Fa(a));isNaN(a)||this.k===a||(this.k=a,this.P())},f.Ov=function(a){0===a||isNaN(a)||(this.k+=X(a),this.k=Ga(this.k),this.P())},f.Pv=function(a){0===a||isNaN(a)||(this.k-=X(a),this.k=Ga(this.k),this.P())},f.Qv=function(a,b){var c=La(this.k,X(b),X(a));isNaN(c)||this.k===c||(this.k=c,this.P())},f.Rv=function(a,b,c){a=La(this.k,Math.atan2(c-this.y,b-this.x),X(a));isNaN(a)||this.k===a||(this.k=a,this.P())},f.er=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||
this.k===c||(this.k=c,this.P())},h.iq=function(a){a.H(Ha(this.k))});m||(a.Bm=function(a,b,c){return Wb(this.Ta[a],b,c)},a.Bq=function(a){return this.Ta[a]},a.Lv=function(a,b){var c=this.Q(),e=c.Fb();if(!e.length)return!1;var d=e[0],f=d,g=d.Ta[b],h,l,m;h=1;for(l=e.length;h<l;h++)if(d=e[h],m=d.Ta[b],0===a&&m<g||1===a&&m>g)g=m,f=d;c.rh(f);return!0},a.Jv=function(a){var b,c,e,d,f;if(this.b.Lf().Og){f=this.Q();if(f.R)for(f.R=!1,R(f.i),R(f.T),e=this.i,b=0,c=e.length;b<c;b++)d=e[b],d.uid===a?f.T.push(d):
f.i.push(d);else{e=b=0;for(c=f.i.length;b<c;b++)d=f.i[b],f.i[e]=d,d.uid===a?f.T.push(d):e++;za(f.i,e)}this.Mc();return!!f.i.length}d=this.b.Mk(a);if(!d)return!1;f=this.Q();if(!f.R&&-1===f.i.indexOf(d))return!1;if(this.J)for(a=d.type.Aa,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.rh(d),this.Mc(),!0}else if(d.type===this)return f.rh(d),this.Mc(),!0;return!1},a.Ne=function(){return!0},a.Im=function(){return!0},f.Qm=function(a,b){var c=this.Ta;la(c[a])?c[a]=la(b)?b:parseFloat(b):G(c[a])&&(c[a]=G(b)?
b:b.toString())},f.hq=function(a,b){var c=this.Ta;la(c[a])?c[a]=la(b)?c[a]+b:c[a]+parseFloat(b):G(c[a])&&(c[a]=G(b)?c[a]+b:c[a]+b.toString())},f.jr=function(a,b){var c=this.Ta;la(c[a])&&(c[a]=la(b)?c[a]-b:c[a]-parseFloat(b))},f.Xq=function(a,b){this.Ta[a]=b?1:0},f.Yv=function(a){this.Ta[a]=1-this.Ta[a]},f.tq=function(){this.b.Me(this)},f.Iq||(f.Iq=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.Si(this,b,!0);this.Ad&&this.Ad();if(this.L)for(a=0,b=this.L.length;a<b;++a)c=this.L[a],c.Ad&&
c.Ad()}),h.vv=function(a){var b=a.sf.i.length,c,e,d;c=0;for(e=this.b.Qc.length;c<e;c++)d=this.b.Qc[c],a.sf.J?0<=d.type.Aa.indexOf(a.sf)&&b++:d.type===a.sf&&b++;a.ia(b)},h.Nv=function(a){a.ia(a.sf.Q().Fb().length)},h.Zv=function(a){a.ia(this.uid)},h.wv=function(a){a.ia(this.Gg())},h.Am||(h.Am=function(a){a.Xb(JSON.stringify(this.b.Rl(this,!0)))}));c&&(a.Av=function(){return this.visible},f.Xv=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ga=!0)},a.sv=function(a,b){return Wb(bb(100*this.opacity),
a,b)},f.Vv=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ga=!0)},h.Opacity=function(a){a.H(bb(100*this.opacity))});b&&(a.xv=function(a){return a?this.n===a:!1},a.Mv=function(a){var b=this.Q(),c=b.Fb();if(!c.length)return!1;var e=c[0],d=e,f,g;f=1;for(g=c.length;f<g;f++)if(e=c[f],0===a){if(e.n.index>d.n.index||e.n.index===d.n.index&&e.sd()>d.sd())d=e}else if(e.n.index<d.n.index||e.n.index===d.n.index&&e.sd()<d.sd())d=e;b.rh(d);return!0},f.Gv=function(){var a=this.n,
b=a.i;b.length&&b[b.length-1]===this||(a.ag(this,!1),a.qg(this,!1),this.b.ga=!0)},f.Ev=function(){var a=this.n,b=a.i;b.length&&b[0]===this||(a.ag(this,!1),a.Gu(this),this.b.ga=!0)},f.Fv=function(a){a&&a!=this.n&&(this.n.ag(this,!0),this.n=a,a.qg(this,!0),this.b.ga=!0)},f.aw=function(a,b){var c=0===a;if(b){var e=b.it(this);e&&e.uid!==this.uid&&(this.n.index!==e.n.index&&(this.n.ag(this,!0),this.n=e.n,e.n.qg(this,!0)),this.n.iu(this,e,c),this.b.ga=!0)}},h.Cv=function(a){a.ia(this.n.Ro)},h.Bv=function(a){a.Xb(this.n.name)},
h.$v=function(a){a.ia(this.sd())});e&&(f.Sv=function(a,b){if(this.b.q){var c=this.type.Jk(b);if(!(0>c)){var e=1===a;this.ae[c]!==e&&(this.ae[c]=e,this.gd(),this.b.ga=!0)}}},f.Tv=function(a,b,c){if(this.b.q){var e=this.type.Jk(a);0>e||(a=this.type.S[e],e=this.Da[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.q.qt(a.Pa,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.ic&&(this.b.ga=!0))))}})};Bb=function(){this.ik=this.ck=!0;this.type.Vh=!0;this.b.ga=!0;var d,p,m=this.dk;d=0;for(p=m.length;d<p;++d)m[d](this);this.n.sc&&
this.ja()};Cb=function(d){d&&this.dk.push(d)};Eb=function(){if(this.ck){var d=this.ua,p=this.sb;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.Pb*this.width,-this.Qb*this.height);this.k?(d.offset(-this.x,-this.y),p.tp(d,this.k),p.offset(this.x,this.y),p.gn(d)):p.fg(d);d.normalize();this.ck=!1;this.hv()}};var d=new O(0,0,0,0);Fb=function(){if(this.n.sc){var g=this.n.nb,p=this.ua;d.set(g.Jb(p.left),g.Kb(p.top),g.Jb(p.right),g.Kb(p.bottom));this.Vb.yg(d)||(this.Vb.right<this.Vb.left?
g.update(this,null,d):g.update(this,this.Vb,d),this.Vb.Df(d),this.n.bd=!0)}};Gb=function(){if(this.ik&&this.md){this.ja();var g=this.type.fi,p=this.ua;d.set(g.Jb(p.left),g.Kb(p.top),g.Jb(p.right),g.Kb(p.bottom));this.he.yg(d)||(this.he.right<this.he.left?g.update(this,null,d):g.update(this,this.he,d),this.he.Df(d),this.ik=!1)}};Db=function(d,p){return this.ua.Sa(d,p)&&this.sb.Sa(d,p)?this.wf?this.dv(d,p):this.ba&&!this.ba.jf()?(this.ba.ee(this.width,this.height,this.k),this.ba.Sa(d-this.x,p-this.y)):
!0:!1};xb=function(){this.type.Sj();return this.ff};Hb=function(){this.n.vm();return this.hd};Ib=function(){R(this.da);var d,p,m,t=!0;d=0;for(p=this.ae.length;d<p;d++)this.ae[d]&&(m=this.type.S[d],this.da.push(m),m.Zc||(t=!1));this.Yp=!!this.da.length;this.Ud=t};yb=function(){return"Inst"+this.fp};lb=function(d){if(d&&d.jb&&d.type!=this){var p,m,t;p=0;for(m=d.siblings.length;p<m;p++)if(t=d.siblings[p],t.type==this)return t}d=this.Q().Fb();return d.length?d[0]:null};mb=function(d){var p=this.Q().Fb();
return p.length?p[d.Gg()%p.length]:null};kb=function(){if(this.hg&&!this.J){var d,p;d=0;for(p=this.i.length;d<p;d++)this.i[d].ff=d;var m=d,t=this.b.Qc;d=0;for(p=t.length;d<p;++d)t[d].type===this&&(t[d].ff=m++);this.hg=!1}};vb=function(d){if(d<this.i.length)return this.i[d];d-=this.i.length;var p=this.b.Qc,m,t;m=0;for(t=p.length;m<t;++m)if(p[m].type===this){if(0===d)return p[m];--d}return null};nb=function(){return this.Wd[this.nd]};ob=function(){this.nd++;this.nd===this.Wd.length?this.Wd.push(new jb(this)):
(this.Wd[this.nd].R=!0,R(this.Wd[this.nd].T))};pb=function(){this.nd++;this.nd===this.Wd.length&&this.Wd.push(new jb(this));var d=this.Wd[this.nd],p=this.Wd[this.nd-1];p.R?(d.R=!0,R(d.T)):(d.R=!1,U(d.i,p.i),U(d.T,p.T))};qb=function(){this.nd--};rb=function(d){var p,m,t,q,r,c=0;if(!this.J)for(p=0,m=this.Aa.length;p<m;p++)for(r=this.Aa[p],t=0,q=r.Ca.length;t<q;t++){if(d===r.Ca[t].name)return this.I.lastBehIndex=c,r.Ca[t];c++}p=0;for(m=this.Ca.length;p<m;p++){if(d===this.Ca[p].name)return this.I.lastBehIndex=
c,this.Ca[p];c++}return null};sb=function(d){return this.Bi(d)?this.I.lastBehIndex:-1};tb=function(d){var p,m;p=0;for(m=this.S.length;p<m;p++)if(this.S[p].name===d)return p;return-1};ub=function(){if(this.jb&&!this.J){var d,p,m,t,q,r,c;this.Sj();r=this.Q();var b=r.R,e=(d=this.b.Ga())&&d.Ma&&d.Ma.pc;d=0;for(p=this.cc.length;d<p;d++)if(q=this.cc[d],q!==this&&(q.Sj(),c=q.Q(),c.R=b,!b)){R(c.i);m=0;for(t=r.i.length;m<t;++m)c.i[m]=q.Kk(r.i[m].ff);if(e)for(R(c.T),m=0,t=r.T.length;m<t;++m)c.T[m]=q.Kk(r.T[m].ff)}}};
wb=function(){return"Type"+this.Z};Wb=function(d,p,m){if("undefined"===typeof d||"undefined"===typeof m)return!1;switch(p){case 0:return d===m;case 1:return d!==m;case 2:return d<m;case 3:return d<=m;case 4:return d>m;case 5:return d>=m;default:return!1}}})();var dc={};function hc(d){this.b=d}
(function(){function d(){return c.length?c.pop():[]}function g(b){var d,a;d=0;for(a=b.length;d<a;d++)Array.isArray(b[d])&&g(b[d]);R(b);c.push(b)}function p(){}function m(){}function t(){}var q=hc.prototype;q.aa=function(b){this.ma=b;this.b=b.b};q.aa.prototype.K=function(){};q.U=function(b){this.type=b;this.b=b.b};var r=q.U.prototype,c=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});r.K=function(){this.uc=this.D[0];this.Rc=this.D[1];this.od=
this.D[2];this.Ub||(this.Cd=d());var b=this.Cd;b.length=this.uc;var c,a,f;for(c=0;c<this.uc;c++)for(b[c]||(b[c]=d()),b[c].length=this.Rc,a=0;a<this.Rc;a++)for(b[c][a]||(b[c][a]=d()),b[c][a].length=this.od,f=0;f<this.od;f++)b[c][a][f]=0;this.An=[];this.Bn=[];this.Cn=[];this.Id=-1};r.ud=function(){var b;for(b=0;b<this.uc;b++)g(this.Cd[b]);R(this.Cd)};r.Nb=function(b,c,a){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);return isNaN(b)||0>b||b>this.uc-1||isNaN(c)||0>c||c>this.Rc-1||isNaN(a)||0>a||a>this.od-
1?0:this.Cd[b][c][a]};r.set=function(b,c,a,d){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);isNaN(b)||0>b||b>this.uc-1||isNaN(c)||0>c||c>this.Rc-1||isNaN(a)||0>a||a>this.od-1||(this.Cd[b][c][a]=d)};r.dt=function(){return JSON.stringify({c2array:!0,size:[this.uc,this.Rc,this.od],data:this.Cd})};r.Wa=function(){return{size:[this.uc,this.Rc,this.od],data:this.Cd}};r.kb=function(b){var c=b.size;this.uc=c[0];this.Rc=c[1];this.od=c[2];this.Cd=b.data};r.Td=function(b,c,a){0>b&&(b=0);0>c&&(c=0);0>a&&(a=
0);if(this.uc!==b||this.Rc!==c||this.od!==a){this.uc=b;this.Rc=c;this.od=a;var f,h,g=this.Cd;g.length=b;for(b=0;b<this.uc;b++)for(ka(g[b])&&(g[b]=d()),g[b].length=c,f=0;f<this.Rc;f++)for(ka(g[b][f])&&(g[b][f]=d()),g[b][f].length=a,h=0;h<this.od;h++)ka(g[b][f][h])&&(g[b][f][h]=0)}};r.gw=function(){return 0<=this.Id&&this.Id<this.An.length?this.An[this.Id]:0};r.hw=function(){return 0<=this.Id&&this.Id<this.Bn.length?this.Bn[this.Id]:0};r.iw=function(){return 0<=this.Id&&this.Id<this.Cn.length?this.Cn[this.Id]:
0};p.prototype.qq=function(b,c,a){return Wb(this.Nb(b,0,0),c,a)};r.Yh=function(b){this.b.$f(b.fa);b.oj();this.b.Sd(b.fa)};q.p=new p;m.prototype.br=function(b,c,a){this.Td(b,c,a)};m.prototype.Zj=function(b,c){this.set(b,0,0,c)};q.F=new m;t.prototype.kq=function(b,c,a,d){b.Wl(this.Nb(c,a||0,d||0))};t.prototype.Um=function(b){b.ia(this.uc)};t.prototype.zq=function(b){b.ia(this.Rc)};t.prototype.Am=function(b){b.Xb(this.dt())};q.W=new t})();function gc(d){this.b=d}
(function(){function d(){this.name="";this.Ah=0;this.Zf=[]}function g(){c++;c===r.length&&r.push(new d);return r[c]}function p(){}function m(){}function t(){}var q=gc.prototype;q.aa=function(b){this.ma=b;this.b=b.b};q.aa.prototype.K=function(){};q.U=function(b){this.type=b;this.b=b.b};var r=[],c=-1;q.U.prototype.K=function(){var b=this;window.c2_callFunction=function(d,a){var f,h,m,p=g();p.name=d.toLowerCase();p.Ah=0;if(a)for(p.Zf.length=a.length,f=0,h=a.length;f<h;++f)m=a[f],p.Zf[f]="number"===typeof m||
"string"===typeof m?m:"boolean"===typeof m?m?1:0:0;else R(p.Zf);b.b.trigger(gc.prototype.p.Th,b,p.name);c--;return p.Ah}};p.prototype.Th=function(b){var d=0>c?null:r[c];return d?cb(b,d.name):!1};q.p=new p;m.prototype.CallFunction=function(b,d){var a=g();a.name=b.toLowerCase();a.Ah=0;U(a.Zf,d);this.b.trigger(gc.prototype.p.Th,this,a.name);c--};q.F=new m;t.prototype.lq=function(b,d){var a=g();a.name=d.toLowerCase();a.Ah=0;R(a.Zf);var f,h;f=2;for(h=arguments.length;f<h;f++)a.Zf.push(arguments[f]);this.b.trigger(gc.prototype.p.Th,
this,a.name);c--;b.Wl(a.Ah)};q.W=new t})();function ic(d){this.b=d}
(function(){function d(){}var g=ic.prototype;g.aa=function(d){this.ma=d;this.b=d.b};g.aa.prototype.K=function(){};g.U=function(d){this.type=d;this.b=d.b;this.Qf=Array(256);this.Mh=Array(256);this.Yd=0};var p=g.U.prototype;p.K=function(){var d=this;this.b.xb||(jQuery(document).keydown(function(g){d.Al(g)}),jQuery(document).keyup(function(g){d.Bl(g)}))};var m=[32,33,34,35,36,37,38,39,40,44];p.Al=function(d){var g=!1;window!=window.top&&-1<m.indexOf(d.which)&&(d.preventDefault(),g=!0,d.stopPropagation());
if(this.Qf[d.which])this.Mh[d.which]&&!g&&d.preventDefault();else{this.Qf[d.which]=!0;this.Yd=d.which;this.b.wc=!0;this.b.trigger(ic.prototype.p.Mq,this);var p=this.b.trigger(ic.prototype.p.Pq,this),c=this.b.trigger(ic.prototype.p.Qq,this);this.b.wc=!1;if(p||c)this.Mh[d.which]=!0,g||d.preventDefault()}};p.Bl=function(d){this.Qf[d.which]=!1;this.Yd=d.which;this.b.wc=!0;this.b.trigger(ic.prototype.p.Gm,this);var g=this.b.trigger(ic.prototype.p.Km,this),m=this.b.trigger(ic.prototype.p.Jm,this);this.b.wc=
!1;if(g||m||this.Mh[d.which])this.Mh[d.which]=!0,d.preventDefault()};p.Be=function(){var d;for(d=0;256>d;++d)if(this.Qf[d]){this.Qf[d]=!1;this.Yd=d;this.b.trigger(ic.prototype.p.Gm,this);var g=this.b.trigger(ic.prototype.p.Km,this),m=this.b.trigger(ic.prototype.p.Jm,this);if(g||m)this.Mh[d]=!0}};p.Wa=function(){return{triggerKey:this.Yd}};p.kb=function(d){this.Yd=d.triggerKey};d.prototype.Fq=function(d){return this.Qf[d]};d.prototype.Pq=function(d){return d===this.Yd};d.prototype.Mq=function(){return!0};
d.prototype.Gm=function(){return!0};d.prototype.Km=function(d){return d===this.Yd};d.prototype.Qq=function(d){return d===this.Yd};d.prototype.Jm=function(d){return d===this.Yd};g.p=new d;g.F=new function(){};g.W=new function(){}})();function jc(d){this.b=d}
(function(){function d(){}function g(){}var p=jc.prototype;p.aa=function(d){this.ma=d;this.b=d.b};p.aa.prototype.K=function(){};p.U=function(d){this.type=d;this.b=d.b;this.Re=Array(4);this.Mp=this.Pj=this.xf=this.Ae=this.ze=0;this.Rk=!1};var m=p.U.prototype;m.K=function(){var d=this;if(!this.b.xb){jQuery(document).mousemove(function(c){d.qu(c)});jQuery(document).mousedown(function(c){d.pu(c)});jQuery(document).mouseup(function(c){d.ru(c)});jQuery(document).dblclick(function(c){d.nu(c)});var g=function(c){d.tu(c)};
document.addEventListener("mousewheel",g,!1);document.addEventListener("DOMMouseScroll",g,!1)}};var t={left:0,top:0};m.qu=function(d){var g=this.b.xb?t:jQuery(this.b.canvas).offset();this.ze=d.pageX-g.left;this.Ae=d.pageY-g.top};m.Mo=function(){return 0<this.b.Ob?!0:0<=this.ze&&0<=this.Ae&&this.ze<this.b.width&&this.Ae<this.b.height};m.pu=function(d){this.Mo()&&(this.Re[d.which]=!0,this.b.wc=!0,this.b.trigger(jc.prototype.p.Lq,this),this.xf=d.which-1,this.Pj=0,this.b.trigger(jc.prototype.p.Hm,this),
this.b.trigger(jc.prototype.p.Nm,this),this.b.wc=!1)};m.ru=function(d){this.Re[d.which]&&(this.b.Pn&&!this.b.re&&d.preventDefault(),this.b.Pn=!0,this.Re[d.which]=!1,this.b.wc=!0,this.xf=d.which-1,this.b.trigger(jc.prototype.p.Om,this),this.b.wc=!1)};m.nu=function(d){this.Mo()&&(d.preventDefault(),this.b.wc=!0,this.xf=d.which-1,this.Pj=1,this.b.trigger(jc.prototype.p.Hm,this),this.b.trigger(jc.prototype.p.Nm,this),this.b.wc=!1)};m.tu=function(d){this.Mp=0>(d.wheelDelta?d.wheelDelta:d.detail?-d.detail:
0)?0:1;this.Rk=!1;this.b.wc=!0;this.b.trigger(jc.prototype.p.Tq,this);this.b.wc=!1;this.Rk&&gb(d)&&d.preventDefault()};m.Be=function(){var d,g;d=0;for(g=this.Re.length;d<g;++d)this.Re[d]&&(this.Re[d]=!1,this.xf=d-1,this.b.trigger(jc.prototype.p.Om,this))};d.prototype.Hm=function(d,g){return d===this.xf&&g===this.Pj};d.prototype.Lq=function(){return!0};d.prototype.Cq=function(d){return this.Re[d+1]};d.prototype.Om=function(d){return d===this.xf};d.prototype.Nm=function(d,g,c){return d!==this.xf||g!==
this.Pj?!1:this.b.cv(c,this.ze,this.Ae)};d.prototype.Tq=function(d){this.Rk=!0;return d===this.Mp};p.p=new d;p.F=new function(){};g.prototype.Vm=function(d,g){var c,b,e,a,f;ka(g)?(c=this.b.Dg(0),b=c.scale,e=c.jd,a=c.Bc,f=c.k,c.scale=1,c.jd=1,c.Bc=1,c.k=0,d.H(c.Cb(this.ze,this.Ae,!0)),c.scale=b,c.jd=e,c.Bc=a,c.k=f):(c=la(g)?this.b.Dg(g):this.b.Lk(g))?d.H(c.Cb(this.ze,this.Ae,!0)):d.H(0)};g.prototype.Wm=function(d,g){var c,b,e,a,f;ka(g)?(c=this.b.Dg(0),b=c.scale,e=c.jd,a=c.Cc,f=c.k,c.scale=1,c.jd=1,
c.Cc=1,c.k=0,d.H(c.Cb(this.ze,this.Ae,!1)),c.scale=b,c.jd=e,c.Cc=a,c.k=f):(c=la(g)?this.b.Dg(g):this.b.Lk(g))?d.H(c.Cb(this.ze,this.Ae,!1)):d.H(0)};p.W=new g})();function Z(d){this.b=d}
(function(){function d(){if(0===this.tk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.gg?b.drawImage(this.M,this.Xf,this.Yf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.M,0,0,this.width,this.height);this.tk=a.toDataURL("image/png")}return this.tk}function g(){}function p(a){a[0]=0;a[1]=0;a[2]=0;k.push(a)}function m(a,b){return a<b?""+a+","+b:""+b+","+a}function t(a,b,c,d){b=b.uid;c=c.uid;var e=m(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=k.length?k.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function q(a,b,c){b=m(b.uid,c.uid);a.hasOwnProperty(b)&&(p(a[b]),delete a[b])}function r(a,b,c){b=m(b.uid,c.uid);if(a.hasOwnProperty(b))return B=a[b][2],!0;B=-2;return!1}function c(){}function b(){}var e=Z.prototype;e.aa=function(a){this.ma=a;this.b=a.b};var a=e.aa.prototype;a.K=function(){if(!this.J){var a,b,c,e,f,g,m,h,k;this.Lc=[];this.Ig=!1;a=0;for(b=this.ac.length;a<b;a++){f=this.ac[a];m={};m.name=f[0];m.speed=f[1];m.loop=f[2];
m.Nl=f[3];m.Ol=f[4];m.Zo=f[5];m.Z=f[6];m.frames=[];c=0;for(e=f[7].length;c<e;c++)g=f[7][c],h={},h.Ij=g[0],h.Jj=g[1],h.Xf=g[2],h.Yf=g[3],h.width=g[4],h.height=g[5],h.duration=g[6],h.Pb=g[7],h.Qb=g[8],h.Uk=g[9],h.gj=g[10],h.$o=g[11],h.gg=0!==h.width,h.tk="",h.dw=d,k={left:0,top:0,right:1,bottom:1},h.Zl=k,h.xa=null,(k=this.b.Zs(g[0]))?h.M=k:(h.M=new Image,h.M.Fr=g[0],h.M.pk=g[1],h.M.Ar=null,this.b.xm(h.M,g[0])),m.frames.push(h),this.Lc.push(h);this.ac[a]=m}}};a.Vp=function(){var a,b,c;a=0;for(b=this.i.length;a<
b;a++)c=this.i[a],c.ji=c.bb.xa};a.ph=function(){if(!this.J){var a,b,c;a=0;for(b=this.Lc.length;a<b;++a)c=this.Lc[a],c.M.Ar=null,c.xa=null;this.Ig=!1;this.Vp()}};a.dj=function(){if(!this.J&&this.i.length){var a,b,c;a=0;for(b=this.Lc.length;a<b;++a)c=this.Lc[a],c.xa=this.b.q.Ti(c.M,!1,this.b.za,c.$o);this.Vp()}};a.Ui=function(){if(!this.J&&!this.Ig&&this.b.q){var a,b,c;a=0;for(b=this.Lc.length;a<b;++a)c=this.Lc[a],c.xa=this.b.q.Ti(c.M,!1,this.b.za,c.$o);this.Ig=!0}};a.Rj=function(){if(!this.J&&!this.i.length&&
this.Ig){var a,b,c;a=0;for(b=this.Lc.length;a<b;++a)c=this.Lc[a],this.b.q.deleteTexture(c.xa),c.xa=null;this.Ig=!1}};var f=[];a.ij=function(a){var b,c,d;R(f);b=0;for(c=this.Lc.length;b<c;++b)d=this.Lc[b].M,-1===f.indexOf(d)&&(a.drawImage(d,0,0),f.push(d))};e.U=function(a){this.type=a;this.b=a.b;a=this.type.ac[0].frames[0].gj;this.Ub?this.ba.Eh(a):this.ba=new Xa(a)};var h=e.U.prototype;h.K=function(){this.visible=0===this.D[0];this.md=0!==this.D[3];this.ya=this.Fn(this.D[1])||this.type.ac[0];this.G=
this.D[2];0>this.G&&(this.G=0);this.G>=this.ya.frames.length&&(this.G=this.ya.frames.length-1);var a=this.ya.frames[this.G];this.ba.Eh(a.gj);this.Pb=a.Pb;this.Qb=a.Qb;this.Ef=this.ya.speed;this.je=this.ya.Ol;1===this.type.ac.length&&1===this.type.ac[0].frames.length||0===this.Ef||this.b.Gp(this);this.Ub?this.kd.reset():this.kd=new Va;this.Jd=this.kd.ca;this.Pe=!0;this.Bd=0;this.Oe=!0;this.kk=this.$m="";this.Cr=0;this.jk=-1;this.type.Ui();var b,c,d,e,f,g,h,a=0;for(b=this.type.ac.length;a<b;a++)for(e=
this.type.ac[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.M.width,f.height=f.M.height),f.gg&&(h=f.M,g=f.Zl,g.left=f.Xf/h.width,g.top=f.Yf/h.height,g.right=(f.Xf+f.width)/h.width,g.bottom=(f.Yf+f.height)/h.height,0===f.Xf&&0===f.Yf&&f.width===h.width&&f.height===h.height&&(f.gg=!1));this.bb=this.ya.frames[this.G];this.ji=this.bb.xa};h.Wa=function(){var a={a:this.ya.Z,f:this.G,cas:this.Ef,fs:this.Jd,ar:this.Bd,at:this.kd.ca,rt:this.je};this.Pe||(a.ap=this.Pe);this.Oe||(a.af=
this.Oe);return a};h.kb=function(a){var b=this.ct(a.a);b&&(this.ya=b);this.G=a.f;0>this.G&&(this.G=0);this.G>=this.ya.frames.length&&(this.G=this.ya.frames.length-1);this.Ef=a.cas;this.Jd=a.fs;this.Bd=a.ar;this.kd.reset();this.kd.ca=a.at;this.Pe=a.hasOwnProperty("ap")?a.ap:!0;this.Oe=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.je=a.rt:this.je=this.ya.Ol;this.bb=this.ya.frames[this.G];this.ji=this.bb.xa;this.ba.Eh(this.bb.gj);this.Pb=this.bb.Pb;this.Qb=this.bb.Qb};h.bk=function(a){this.G=
a?0:this.ya.frames.length-1;this.Pe=!1;this.$m=this.ya.name;this.b.trigger(Z.prototype.p.Kq,this);this.b.trigger(Z.prototype.p.Fm,this);this.Bd=0};h.Yh=function(){return this.kd.ca};h.Hb=function(){this.kd.add(this.b.Bg(this));this.kk.length&&this.Nr();0<=this.jk&&this.Or();var a=this.kd.ca,b=this.ya,c=b.frames[this.G],d=c.duration/this.Ef;this.Pe&&a>=this.Jd+d&&(this.Oe?this.G++:this.G--,this.Jd+=d,this.G>=b.frames.length&&(b.Zo?(this.Oe=!1,this.G=b.frames.length-2):b.loop?this.G=this.je:(this.Bd++,
this.Bd>=b.Nl?this.bk(!1):this.G=this.je)),0>this.G&&(b.Zo?(this.G=1,this.Oe=!0,b.loop||(this.Bd++,this.Bd>=b.Nl&&this.bk(!0))):b.loop?this.G=this.je:(this.Bd++,this.Bd>=b.Nl?this.bk(!0):this.G=this.je)),0>this.G?this.G=0:this.G>=b.frames.length&&(this.G=b.frames.length-1),a>this.Jd+b.frames[this.G].duration/this.Ef&&(this.Jd=a),a=b.frames[this.G],this.Bf(c,a),this.b.ga=!0)};h.Fn=function(a){var b,c,d;b=0;for(c=this.type.ac.length;b<c;b++)if(d=this.type.ac[b],cb(d.name,a))return d;return null};h.ct=
function(a){var b,c,d;b=0;for(c=this.type.ac.length;b<c;b++)if(d=this.type.ac[b],d.Z===a)return d;return null};h.Nr=function(){var a=this.ya.frames[this.G],b=this.Fn(this.kk);this.kk="";!b||cb(b.name,this.ya.name)&&this.Pe||(this.ya=b,this.Ef=b.speed,this.je=b.Ol,0>this.G&&(this.G=0),this.G>=this.ya.frames.length&&(this.G=this.ya.frames.length-1),1===this.Cr&&(this.G=0),this.Pe=!0,this.Jd=this.kd.ca,this.Oe=!0,this.Bf(a,this.ya.frames[this.G]),this.b.ga=!0)};h.Or=function(){var a=this.ya.frames[this.G],
b=this.G;this.G=N(this.jk);0>this.G&&(this.G=0);this.G>=this.ya.frames.length&&(this.G=this.ya.frames.length-1);b!==this.G&&(this.Bf(a,this.ya.frames[this.G]),this.Jd=this.kd.ca,this.b.ga=!0);this.jk=-1};h.Bf=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Pb=b.Pb;this.Qb=b.Qb;this.ba.Eh(b.gj);this.P();this.bb=b;this.ji=b.xa;c=0;for(d=this.L.length;c<d;c++)e=this.L[c],e.su&&e.su(a,b);this.b.trigger(Z.prototype.p.Bf,this)};h.Sc=function(a){a.globalAlpha=
this.opacity;var b=this.bb,c=b.gg,d=b.M,e=this.x,f=this.y,g=this.width,h=this.height;if(0===this.k&&0<=g&&0<=h)e-=this.Pb*g,f-=this.Qb*h,this.b.qc&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.Xf,b.Yf,b.width,b.height,e,f,g,h):a.drawImage(d,e,f,g,h);else{this.b.qc&&(e=Math.round(e),f=Math.round(f));a.save();var m=0<g?1:-1,k=0<h?1:-1;a.translate(e,f);1===m&&1===k||a.scale(m,k);a.rotate(this.k*m*k);e=0-this.Pb*oa(g);f=0-this.Qb*oa(h);c?a.drawImage(d,b.Xf,b.Yf,b.width,b.height,e,f,oa(g),oa(h)):
a.drawImage(d,e,f,oa(g),oa(h));a.restore()}};h.ke=function(a){this.Eb(a)};h.Eb=function(a){a.Wb(this.ji);a.He(this.opacity);var b=this.bb,c=this.sb;if(this.b.qc){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.gg?a.ad(c.Za+d,c.$a+e,c.Ab+d,c.Bb+e,c.tb+d,c.ub+e,c.qb+d,c.rb+e,b.Zl):a.wh(c.Za+d,c.$a+e,c.Ab+d,c.Bb+e,c.tb+d,c.ub+e,c.qb+d,c.rb+e)}else b.gg?a.ad(c.Za,c.$a,c.Ab,c.Bb,c.tb,c.ub,c.qb,c.rb,b.Zl):a.wh(c.Za,c.$a,c.Ab,c.Bb,c.tb,c.ub,c.qb,c.rb)};h.kt=function(a){var b=this.bb,c,d;c=
0;for(d=b.Uk.length;c<d;c++)if(cb(a,b.Uk[c][0]))return c;return-1};h.Cg=function(a,b){var c=this.bb,d=c.Uk,e;G(a)?e=this.kt(a):e=a-1;e=N(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Pb)*this.width,d=d[e][2],d=(d-c.Qb)*this.height,c=Math.cos(this.k);e=Math.sin(this.k);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var k=[],B=-2,H=[];g.prototype.Oq=function(a){if(!a)return!1;var b=this.b,c=b.Lf(),d=c.type,e=null;c.I.collmemory?e=c.I.collmemory:(e={},c.I.collmemory=e);
c.I.spriteCreatedDestroyCallback||(c.I.spriteCreatedDestroyCallback=!0,b.Ym(function(a){var b=c.I.collmemory;a=a.uid;var d,e;for(d in b)b.hasOwnProperty(d)&&(e=b[d],e[0]===a||e[1]===a)&&(p(b[d]),delete b[d])}));var f=d.Q(),g=a.Q(),f=f.Fb(),h,m,k,n,v,u,M,w=this.b.Hc,z=w-1,C=b.Ga().Ma;for(m=0;m<f.length;m++){k=f[m];g.R?(k.ja(),this.b.Hk(k.n,a,k.ua,H),h=H):h=g.Fb();for(n=0;n<h.length;n++)v=h[n],b.Je(k,v)||b.Dr(k,v)?(u=r(e,k,v),u=!u||B<z,t(e,k,v,w),u&&(b.$f(C.fa),u=d.Q(),M=a.Q(),u.R=!1,M.R=!1,d===a?(u.i.length=
2,u.i[0]=k,u.i[1]=v,d.Mc()):(u.i.length=1,M.i.length=1,u.i[0]=k,M.i[0]=v,d.Mc(),a.Mc()),C.oj(),b.Sd(C.fa))):q(e,k,v);R(H)}return!1};var C=null,n=new ga,u=!1,v=[],M=new O(0,0,0,0);a.finish=function(a){if(u){if(a){var b=this.b.Ga().Ma.pc;a=C.Q();var c=n.Ic(),d,e;if(a.R){a.R=!1;R(a.i);d=0;for(e=c.length;d<e;++d)a.i[d]=c[d];if(b)for(R(a.T),d=0,e=C.i.length;d<e;++d)c=C.i[d],n.contains(c)||a.T.push(c)}else if(b)for(b=a.i.length,d=0,e=c.length;d<e;++d)a.i[b+d]=c[d],Ca(a.T,c[d]);else U(a.i,c);C.Mc()}n.clear();
u=!1}};g.prototype.Gq=function(a){if(a){var b=!1,c,d,e,f=this.b.Lf(),g=f.type,f=f.Og;c=a.Q();d=this.b.Ga().Ma.pc;var h;c.R?(this.ja(),M.Df(this.ua),M.offset(0,0),this.b.Hk(this.n,a,M,v),h=v):h=d?this.b.Vt()&&!c.T.length&&c.i.length?c.i:c.T:c.i;C=a;u=g!==a&&!f;c=0;for(d=h.length;c<d;c++)if(e=h[c],this.b.Je(this,e)){b=!0;if(f)break;g!==a&&n.add(e)}R(v);a=b}else a=!1;return a};g.prototype.Fm=function(a){return cb(this.$m,a)};g.prototype.Kq=function(){return!0};g.prototype.Bf=function(){return!0};e.p=
new g;c.prototype.ir=function(a,b,c){if(a&&b&&(b=this.b.qk(a,b,this.Cg(c,!0),this.Cg(c,!1)))){"undefined"!==typeof b.k&&(b.k=this.k,b.P());this.b.nc++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.ma).p.Ne,b);if(b.jb)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.ma).p.Ne,f);this.b.nc--;d=this.b.ft();c=!1;if(ka(d.I.Spawn_LastExec)||d.I.Spawn_LastExec<this.b.bf)c=!0,d.I.Spawn_LastExec=this.b.bf;if(a!=this.type&&(a=a.Q(),a.R=!1,c?(R(a.i),a.i[0]=b):
a.i.push(b),b.jb))for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],a=f.type.Q(),a.R=!1,c?(R(a.i),a.i[0]=f):a.i.push(f)}};e.F=new c;b.prototype.Em=function(a){a.H(this.bb.width)};e.W=new b})();function kc(d){this.b=d}
(function(){function d(){return c.length?c.pop():{}}function g(b){var d,a;d=0;for(a=b.length;d<a;d++)c.push(b[d]);R(b)}function p(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function m(){}var t=kc.prototype;t.K=function(){t.F.Tm=function(b){this.width!==b&&(this.width=b,this.vf=!0,this.P())}};t.aa=function(b){this.ma=b;this.b=b.b};var q=t.aa.prototype;q.K=function(){};q.ph=function(){if(!this.J){var b,c,a;b=0;for(c=this.i.length;b<c;b++)a=this.i[b],a.td=null,a.rf=null,
a.hc=null}};t.U=function(b){this.type=b;this.b=b.b;this.Ub?R(this.ve):this.ve=[];this.vf=!0};q=t.U.prototype;q.K=function(){this.text=this.D[0];this.visible=0===this.D[1];this.font=this.D[2];this.color=this.D[3];this.Ei=this.D[4];this.Uj=this.D[5];this.ym=0===this.D[7];this.ml=this.Pd=this.width;this.Od=this.height;this.ol=this.D[8];this.vi=this.If="";this.Dp=this.Ep=this.uh=0;this.yu();this.hc=this.rf=this.td=null;this.Po=!1;this.Xg=this.b.Hc;this.Ub?this.Ee.set(0,0,1,1):this.Ee=new O(0,0,1,1);this.b.q&&
this.b.Gp(this)};q.yu=function(){var b=this.font.split(" "),c;for(c=0;c<b.length;c++)if("pt"===b[c].substr(b[c].length-2,2)){this.uh=parseInt(b[c].substr(0,b[c].length-2));this.Jl=Math.ceil(this.uh/72*96)+4;0<c&&(this.vi=b[c-1]);this.If=b[c+1];for(c+=2;c<b.length;c++)this.If+=" "+b[c];break}};q.Wa=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Ei,va:this.Uj,wr:this.ym,lho:this.ol,fn:this.If,fs:this.vi,ps:this.uh,pxh:this.Jl,tw:this.Ep,th:this.Dp,lrt:this.Xg}};q.kb=function(b){this.text=
b.t;this.font=b.f;this.color=b.c;this.Ei=b.ha;this.Uj=b.va;this.ym=b.wr;this.ol=b.lho;this.If=b.fn;this.vi=b.fs;this.uh=b.ps;this.Jl=b.pxh;this.Ep=b.tw;this.Dp=b.th;this.Xg=b.lrt;this.vf=!0;this.ml=this.Pd=this.width;this.Od=this.height};q.Hb=function(){if(this.b.q&&this.hc&&300<=this.b.Hc-this.Xg){var b=this.n;this.ja();var c=this.ua;if(c.right<b.ka||c.bottom<b.la||c.left>b.qa||c.top>b.oa)this.b.q.deleteTexture(this.hc),this.td=this.rf=this.hc=null}};q.ud=function(){this.td=this.rf=null;this.b.q&&
this.hc&&this.b.q.deleteTexture(this.hc);this.hc=null};q.Yh=function(){this.font=this.vi+" "+this.uh.toString()+"pt "+this.If;this.vf=!0;this.b.ga=!0};q.Sc=function(b,c){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=c?1:this.opacity;var a=1;c&&(a=Math.abs(this.n.gc()),b.save(),b.scale(a,a));if(this.vf||this.width!==this.ml)this.type.ma.nr(this.text,this.ve,b,this.width,this.ym),this.vf=!1,this.ml=this.width;this.ja();var a=c?0:this.sb.Za,d=c?0:this.sb.$a;this.b.qc&&(a=
a+.5|0,d=d+.5|0);0===this.k||c||(b.save(),b.translate(a,d),b.rotate(this.k),d=a=0);var g=d+this.height,m=this.Jl,m=m+this.ol,p,q;1===this.Uj?d+=Math.max(this.height/2-this.ve.length*m/2,0):2===this.Uj&&(d+=Math.max(this.height-this.ve.length*m-2,0));for(q=0;q<this.ve.length&&!(p=a,1===this.Ei?p=a+(this.width-this.ve[q].width)/2:2===this.Ei&&(p=a+(this.width-this.ve[q].width)),b.fillText(this.ve[q].text,p,d),d+=m,d>=g-m);q++);(0!==this.k||c)&&b.restore();this.Xg=this.b.Hc};q.Eb=function(b){if(!(1>
this.width||1>this.height)){var c=this.vf||this.Po;this.Po=!1;var a=this.n.gc(),d=this.n.fc(),g=this.Ee,m=a*this.width,p=a*this.height,q=Math.ceil(m),t=Math.ceil(p),n=Math.abs(q),r=Math.abs(t),v=this.b.O/2,M=this.b.N/2;this.rf||(this.td=document.createElement("canvas"),this.td.width=n,this.td.height=r,this.Pd=n,this.Od=r,c=!0,this.rf=this.td.getContext("2d"));if(n!==this.Pd||r!==this.Od)this.td.width=n,this.td.height=r,this.hc&&(b.deleteTexture(this.hc),this.hc=null),c=!0;c&&(this.rf.clearRect(0,
0,n,r),this.Sc(this.rf,!0),this.hc||(this.hc=b.ec(n,r,this.b.za,this.b.re)),b.aq(this.td,this.hc,this.b.re));this.Pd=n;this.Od=r;b.Wb(this.hc);b.He(this.opacity);b.Dc();b.translate(-v,-M);b.rc();var l=this.sb,c=this.n.Ba(l.Za,l.$a,!0,!0),n=this.n.Ba(l.Za,l.$a,!1,!0),r=this.n.Ba(l.Ab,l.Bb,!0,!0),v=this.n.Ba(l.Ab,l.Bb,!1,!0),M=this.n.Ba(l.tb,l.ub,!0,!0),y=this.n.Ba(l.tb,l.ub,!1,!0),F=this.n.Ba(l.qb,l.rb,!0,!0),l=this.n.Ba(l.qb,l.rb,!1,!0);if(this.b.qc||0===this.k&&0===d)var ca=(c+.5|0)-c,fa=(n+.5|0)-
n,c=c+ca,n=n+fa,r=r+ca,v=v+fa,M=M+ca,y=y+fa,F=F+ca,l=l+fa;0===this.k&&0===d?(r=c+q,v=n,M=r,y=n+t,F=c,l=y,g.right=1,g.bottom=1):(g.right=m/q,g.bottom=p/t);b.ad(c,n,r,v,M,y,F,l,g);b.Dc();b.scale(a,a);b.qj(-this.n.fc());b.translate((this.n.ka+this.n.qa)/-2,(this.n.la+this.n.oa)/-2);b.rc();this.Xg=this.b.Hc}};var r=[];t.lr=function(b){R(r);for(var c="",a,d=0;d<b.length;)if(a=b.charAt(d),"\n"===a)c.length&&(r.push(c),c=""),r.push("\n"),++d;else if(" "===a||"\t"===a||"-"===a){do c+=b.charAt(d),d++;while(d<
b.length&&(" "===b.charAt(d)||"\t"===b.charAt(d)));r.push(c);c=""}else d<b.length&&(c+=a,d++);c.length&&r.push(c)};var c=[];t.nr=function(b,c,a,f,h){if(b&&b.length)if(2>=f)g(c);else{if(100>=b.length&&-1===b.indexOf("\n")){var m=a.measureText(b).width;if(m<=f){g(c);c.push(d());c[0].text=b;c[0].width=m;return}}this.or(b,c,a,f,h)}else g(c)};t.or=function(b,e,a,f,g){g&&(this.lr(b),b=r);var m="",q,t,C,n=0;for(C=0;C<b.length;C++)"\n"===b[C]?(n>=e.length&&e.push(d()),m=p(m),t=e[n],t.text=m,t.width=a.measureText(m).width,
n++,m=""):(q=m,m+=b[C],t=a.measureText(m).width,t>=f&&(n>=e.length&&e.push(d()),q=p(q),t=e[n],t.text=q,t.width=a.measureText(q).width,n++,m=b[C],g||" "!==m||(m="")));m.length&&(n>=e.length&&e.push(d()),m=p(m),t=e[n],t.text=m,t.width=a.measureText(m).width,n++);for(C=n;C<e.length;C++)c.push(e[C]);e.length=n};t.p=new function(){};m.prototype.cr=function(b){la(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.vf=!0,this.b.ga=!0)};t.F=new m;t.W=new function(){}})();
function lc(d){this.b=d}
(function(){function d(){}var g=lc.prototype;g.aa=function(d){this.ma=d;this.b=d.b};var p=g.aa.prototype;p.K=function(){this.J||(this.M=new Image,this.M.pk=this.Jj,this.b.xm(this.M,this.Ij),this.xa=this.pattern=null)};p.ph=function(){this.J||(this.xa=null)};p.dj=function(){if(!this.J&&this.i.length){this.xa||(this.xa=this.b.q.Ti(this.M,!0,this.b.za,this.gm));var d,g;d=0;for(g=this.i.length;d<g;d++)this.i[d].xa=this.xa}};p.Ui=function(){this.J||this.xa||!this.b.q||(this.xa=this.b.q.Ti(this.M,!0,this.b.za,
this.gm))};p.Rj=function(){this.J||this.i.length||!this.xa||(this.b.q.deleteTexture(this.xa),this.xa=null)};p.ij=function(d){d.drawImage(this.M,0,0)};g.U=function(d){this.type=d;this.b=d.b};p=g.U.prototype;p.K=function(){this.visible=0===this.D[0];this.Ee=new O(0,0,0,0);this.Sn=!1;this.M=this.type.M;this.b.q?(this.type.Ui(),this.xa=this.type.xa):(this.type.pattern||(this.type.pattern=this.b.wa.createPattern(this.type.M,"repeat")),this.pattern=this.type.pattern)};p.Ad=function(){this.Sn=!1;this.M=
this.type.M};p.ud=function(){this.b.q&&this.Sn&&this.xa&&(this.b.q.deleteTexture(this.xa),this.xa=null)};p.Sc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var g=this.x,p=this.y;this.b.qc&&(g=Math.round(g),p=Math.round(p));var r=-(this.Pb*this.width),c=-(this.Qb*this.height),b=r%this.M.width,e=c%this.M.height;0>b&&(b+=this.M.width);0>e&&(e+=this.M.height);d.translate(g,p);d.rotate(this.k);d.translate(b,e);d.fillRect(r-b,c-e,this.width,this.height);d.restore()};p.ke=function(d){this.Eb(d)};
p.Eb=function(d){d.Wb(this.xa);d.He(this.opacity);var g=this.Ee;g.right=this.width/this.M.width;g.bottom=this.height/this.M.height;var p=this.sb;if(this.b.qc){var r=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;d.ad(p.Za+r,p.$a+c,p.Ab+r,p.Bb+c,p.tb+r,p.ub+c,p.qb+r,p.rb+c,g)}else d.ad(p.Za,p.$a,p.Ab,p.Bb,p.tb,p.ub,p.qb,p.rb,g)};g.p=new function(){};g.F=new function(){};d.prototype.Em=function(d){d.H(this.M.width)};g.W=new d})();function mc(d){this.b=d}
(function(){function d(){this.Mj=this.id=-1;this.bn=this.Gf=this.Ph=this.Jg=!1;this.ea=new O(0,0,0,0)}function g(a){1E4>H.length&&H.push(a)}function p(){this.id=-1;this.ea=new O(0,0,0,0);this.Yc=null}function m(a){1E4>C.length&&C.push(a)}function t(a,b,c){var d;return n.length?(d=n.pop(),d.j=a,d.x=b,d.y=c,d.left=d.x*d.j.Qa*d.j.Ya,d.top=d.y*d.j.ab*d.j.Xa,d.clear(),d.xh=!1,d):new q(a,b,c)}function q(a,b,c){this.j=a;this.x=b;this.y=c;this.left=this.x*this.j.Qa*this.j.Ya;this.top=this.y*this.j.ab*this.j.Xa;
this.zd=[];this.mb=[];this.Db=[];this.xh=!1;var d,e;a=0;for(b=this.j.ab;a<b;++a){e=[];c=0;for(d=this.j.Qa;c<d;++c)e.push(-1);this.zd.push(e)}}function r(a){switch(a){case 0:return 0;case 1:return f;case 2:return h;case 3:return f|k;case 4:return f|h;case 5:return h|k;case 6:return f|h|k;case 7:return k;default:return 0}}function c(){}function b(){}var e=mc.prototype;e.aa=function(a){this.ma=a;this.b=a.b};var a=e.aa.prototype;a.K=function(){var a,b,c;if(!this.J&&(this.M=new Image,this.M.pk=this.Jj,
this.b.xm(this.M,this.Ij),this.Ue=[],this.sk=!1,this.ed=[],this.Hp=!1,this.Lj&&this.Lj.length))for(a=0,b=this.Lj.length;a<b;++a)(c=this.Lj[a])?this.ed.push({Yc:c,ti:[[[null,null],[null,null]],[[null,null],[null,null]]]}):this.ed.push(null)};a.de=function(a,b,c,d,e,f){if(!(0>a||a>=this.ed.length)&&this.ed[a]){var g=this.ed[a].ti;a=new Xa(this.ed[a].Yc);a.ee(b,c,0);f&&a.Kr();d&&a.hu(b/2);e&&a.$s(c/2);g[d?1:0][e?1:0][f?1:0]=a}};a.Mn=function(a){if(-1===a)return null;var b=a&B;return 0>b||b>=this.ed.length||
!this.ed[b]?null:this.ed[b].ti[a&f?1:0][a&h?1:0][a&k?1:0]};a.Ek=function(){var a,b,c=this.b.q;if(c)for(a=0,b=this.Ue.length;a<b;++a)c.deleteTexture(this.Ue[a]);R(this.Ue);this.sk=!1};a.wl=function(a,b,c,d,e,f,g){if(!(this.sk||0>=a||0>=b)){this.Ek();var h=this.M.width,m=this.M.height,k;for(k=d;k+b<=m;k+=b+f)for(d=c;d+a<=h;d+=a+e)this.Ue.push(this.sq(d,k,a,b,g));this.sk=!0}};a.sq=function(a,b,c,d,e){if(this.b.q)return this.Xj(a,b,c,d,!1,!1,!1,e);var f=[[[null,null],[null,null]],[[null,null],[null,null]]];
f[0][0][0]=this.Xj(a,b,c,d,!1,!1,!1,e);return{ti:f,x:a,y:b,kv:c,Jt:d}};a.Dm=function(a,b,c,d,e){if(0>a||a>=this.Ue.length)return null;a=this.Ue[a];var f=a.ti;b=b?1:0;c=c?1:0;d=d?1:0;var g=f[b][c][d];if(g)return g;g=this.Xj(a.x,a.y,a.kv,a.Jt,0!==b,0!==c,0!==d,e);return f[b][c][d]=g};a.Xj=function(a,b,c,d,e,f,g,h){var m=c,k=d;this.b.q&&!h&&(ma(m)||(m=na(m)),ma(k)||(k=na(k)));var p=document.createElement("canvas");p.width=m;p.height=k;var n=p.getContext("2d");if(this.b.wa)return e?f?(g?(n.rotate(Math.PI/
2),n.scale(-1,1)):n.scale(-1,-1),n.translate(-m,-k)):g?(n.rotate(Math.PI/2),n.translate(0,-k)):(n.scale(-1,1),n.translate(-m,0)):f?g?(n.rotate(-Math.PI/2),n.translate(-m,0)):(n.scale(1,-1),n.translate(0,-k)):g&&(n.scale(-1,1),n.rotate(Math.PI/2)),n.drawImage(this.M,a,b,c,d,0,0,m,k),h?p:this.b.wa.createPattern(p,"repeat");n.drawImage(this.M,a,b,c,d,0,0,m,k);a=this.b.q.ec(m,k,this.b.za,!1,!h);this.b.q.aq(p,a);return a};a.ph=function(){this.J||this.Ek()};a.dj=function(){};a.Ui=function(){};a.Rj=function(){this.J||
this.i.length||this.Ek()};a.ij=function(){};e.U=function(a){this.type=a;this.b=a.b};var a=e.U.prototype,f=-2147483648,h=1073741824,k=536870912,B=536870911,H=[],C=[],n=[];q.prototype.clear=function(){var a,b,c,d,e;this.zd.length=this.j.ab;a=0;for(b=this.zd.length;a<b;++a)for(e=this.zd[a],e||(e=[],this.zd[a]=e),e.length=this.j.Qa,c=0,d=e.length;c<d;++c)e[c]=-1};q.prototype.hh=function(){if(!this.xh){var a=this.j.Ya,b=this.j.Xa;if(!(0>=a||0>=b)){var c,e,n,q,t,r;c=0;for(e=this.mb.length;c<e;++c)g(this.mb[c]);
c=0;for(e=this.Db.length;c<e;++c)m(this.Db[c]);R(this.mb);R(this.Db);var u=Math.min(this.j.zc,Math.floor(this.j.width/a)),J=Math.min(this.j.Xc,Math.floor(this.j.height/b)),u=u-this.left/a,J=J-this.top/b;u>this.j.Qa&&(u=this.j.Qa);J>this.j.ab&&(J=this.j.ab);var ba=this.j.Fe,A=null;c=0;for(e=J;c<e;++c){t=this.zd[c];n=0;for(q=u;n<q;++n)r=t[n],-1===r?A&&(this.mb.push(A),A=null):ba||!A||r!==A.id?(A&&this.mb.push(A),A=H.length?H.pop():new d,A.id=r,A.Mj=r&B,A.Jg=0!==(r&f),A.Ph=0!==(r&h),A.Gf=0!==(r&k),A.bn=
A.Jg||A.Ph||A.Gf,A.ea.left=n*a+this.left,A.ea.top=c*b+this.top,A.ea.right=A.ea.left+a,A.ea.bottom=A.ea.top+b):A.ea.right+=a;A&&(this.mb.push(A),A=null)}var A=null,K=!1;c=0;for(e=J;c<e;++c){t=this.zd[c];n=0;for(q=u;n<q;++n)r=t[n],-1===r?A&&(this.Db.push(A),A=null,K=!1):(J=this.j.type.Mn(r),!A||J||K?(A&&this.Db.push(A),A=C.length?C.pop():new p,A.id=r,A.Yc=J?J:null,r=A.ea,r.left=n*a+this.left,r.top=c*b+this.top,r.right=r.left+a,r.bottom=r.top+b,K=!!J):A.ea.right+=a);A&&(this.Db.push(A),A=null,K=!1)}if(!ba)for(e=
this.mb.length,c=0;c<e;++c)for(q=this.mb[c],a=c+1;a<e;++a)if(n=this.mb[a],!(n.ea.top<q.ea.bottom)){if(n.ea.top>q.ea.bottom)break;if(n.ea.right>q.ea.right||n.ea.left>q.ea.left)break;n.id===q.id&&n.ea.left===q.ea.left&&n.ea.right===q.ea.right&&(g(this.mb[a]),this.mb.splice(a,1),--e,q.ea.bottom+=b,--a)}e=this.Db.length;for(c=0;c<e;++c)if(q=this.Db[c],!q.Yc)for(t=q.ea,a=c+1;a<e;++a)if(n=this.Db[a],q=n.ea,!(q.top<t.bottom)){if(q.top>t.bottom)break;if(q.right>t.right||q.left>t.left)break;n.Yc||q.left!==
t.left||q.right!==t.right||(m(this.Db[a]),this.Db.splice(a,1),--e,t.bottom+=b,--a)}this.xh=!0}}};q.prototype.Ch=function(a,b,c){this.zd[b][a]!==c&&(this.zd[b][a]=c,this.xh=!1,this.j.Xh=!0,this.j.qh=!0,this.j.b.ga=!0)};a.K=function(){var a,b,c;this.visible=0===this.D[0];this.Ya=this.D[1];this.Xa=this.D[2];this.im=this.D[3];this.km=this.D[4];this.jm=this.D[5];this.lm=this.D[6];this.Fe=0!==this.D[7];this.zc=this.Kp;this.Xc=this.Jp;this.Pd=this.width;this.Od=this.height;var d=this.Ya,e=this.Xa;0===d&&
(d=1);0===e&&(e=1);this.Qa=Math.ceil(this.b.Ja/d);this.ab=Math.ceil(this.b.Ia/e);if(!this.type.Hp)for(this.type.Hp=!0,a=0,b=this.type.ed.length;a<b;++a)if(c=this.type.ed[a])this.type.de(a,d,e,!1,!1,!1),this.type.de(a,d,e,!1,!1,!0),this.type.de(a,d,e,!1,!0,!1),this.type.de(a,d,e,!1,!0,!0),this.type.de(a,d,e,!0,!1,!1),this.type.de(a,d,e,!0,!1,!0),this.type.de(a,d,e,!0,!0,!1),this.type.de(a,d,e,!0,!0,!0);this.Ub||(this.Ib=[]);this.ih(!0);this.qp(this.Ip);this.type.wl(this.Ya,this.Xa,this.im,this.km,
this.jm,this.lm,this.Fe);this.qh=!1;this.Xh=!0;this.ul()};a.ul=function(){if(this.Xh){var a,b,c,d,e;a=0;for(b=this.Ib.length;a<b;++a)for(e=this.Ib[a],c=0,d=e.length;c<d;++c)e[c].hh();this.Xh=!1}};a.tj=function(){var a,b,c,d,e;a=0;for(b=this.Ib.length;a<b;++a)for(e=this.Ib[a],c=0,d=e.length;c<d;++c)e[c].xh=!1;this.Xh=!0};a.ih=function(a){var b=N(this.width/this.Ya),c=N(this.height/this.Xa);if(!(b<=this.zc&&c<=this.Xc)||a){var d;a?(a=Math.ceil(this.Xc/this.ab),d=Math.ceil(this.zc/this.Qa)):(a=this.Ib.length,
d=Math.ceil(this.zc/this.Qa),c>this.Xc&&(this.Xc=c,a=Math.ceil(this.Xc/this.ab)),b>this.zc&&(this.zc=b,d=Math.ceil(this.zc/this.Qa)),this.tj(),this.qh=!0,this.b.ga=!0);for(var e,b=0;b<a;++b)if(e=this.Ib[b])for(c=e.length;c<d;++c)e.push(t(this,c,b));else{e=[];for(c=0;c<d;++c)e.push(t(this,c,b));this.Ib[b]=e}}};a.gk=function(a,b){if(0>a||0>b)return null;var c=N(b/this.ab);if(c>=this.Ib.length)return null;var c=this.Ib[c],d=N(a/this.Qa);return d>=c.length?null:c[d]};a.hk=function(a,b){if(0>a||0>b||b>=
this.Ib.length)return null;var c=this.Ib[b];return a>=c.length?null:c[a]};a.qp=function(a){var b=[];a=a.split(",");var c,d,e,g,m;c=0;for(d=a.length;c<d;++c)if(e=a[c],g=e.indexOf("x"),-1<g)for(m=parseInt(e.substring(0,g),10),e=e.substring(g+1),g=parseInt(e,10),-1<e.indexOf("h")&&(g|=f),-1<e.indexOf("v")&&(g|=h),-1<e.indexOf("d")&&(g|=k);0<m;--m)b.push(g);else g=parseInt(e,10),-1<e.indexOf("h")&&(g|=f),-1<e.indexOf("v")&&(g|=h),-1<e.indexOf("d")&&(g|=k),b.push(g);for(c=a=0;c<this.Xc;++c)for(d=0;d<this.zc;++d)m=
b[a++],(e=this.gk(d,c))&&e.Ch(d%this.Qa,c%this.ab,m)};a.tt=function(){var a="";if(0>=this.zc||0>=this.Xc)return a;var b=1,c=this.Di(0,0),d,e,g,m,p,n,q,t;m=N(this.width/this.Ya);e=N(this.height/this.Xa);for(d=0;d<e;++d)for(g=0===d?1:0;g<m;++g)p=this.Di(g,d),p===c?++b:(-1===c?(n=-1,c=t=q=!1):(n=c&B,q=0!==(c&f),t=0!==(c&h),c=0!==(c&k)),a=1===b?a+(""+n):a+(""+b+"x"+n),q&&(a+="h"),t&&(a+="v"),c&&(a+="d"),a+=",",b=1,c=p);-1===c?(n=-1,c=t=q=!1):(n=c&B,q=0!==(c&f),t=0!==(c&h),c=0!==(c&k));a=1===b?a+(""+n):
a+(""+b+"x"+n);q&&(a+="h");t&&(a+="v");c&&(a+="d");return a};a.Di=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.zc||b>=this.Xc)return-1;var c=this.gk(a,b);return c?c.zd[b%this.ab][a%this.Qa]:-1};a.Ch=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.zc||b>=this.Xc)return-1;var d=this.gk(a,b);if(!d)return-1;d.Ch(a%this.Qa,b%this.ab,c)};a.cq=function(a){return Math.floor((a-this.x)/(this.Qa*this.Ya))};a.dq=function(a){return Math.floor((a-this.y)/(this.ab*this.Xa))};
a.fq=function(a){return Math.floor((a-this.x)/this.Ya)};a.gq=function(a){return Math.floor((a-this.y)/this.Xa)};a.Gn=function(a,b){var c=this.dq(a.top),d=this.cq(a.right),e=this.dq(a.bottom),f,g,h;for(f=this.cq(a.left);f<=d;++f)for(g=c;g<=e;++g)if(h=this.hk(f,g))h.hh(),Aa(b,h.Db)};a.dv=function(a,b){var c=this.Di(this.fq(a),this.gq(b));if(-1===c)return!1;c=this.type.Mn(c);if(!c)return!0;var d=Math.floor((b-this.y)/this.Xa)*this.Xa+this.y;a-=Math.floor((a-this.x)/this.Ya)*this.Ya+this.x;return c.Sa(a,
b-d)};a.Yh=function(a){var b,c,d,e,f,g;b=0;for(c=this.Ib.length;b<c;++b)for(f=this.Ib[b],d=0,e=f.length;d<e;++d)g=f[d],g.hh(),Aa(a,g.Db)};a.ud=function(){var a,b,c,d,e;a=0;for(b=this.Ib.length;a<b;++a){e=this.Ib[a];c=0;for(d=e.length;c<d;++c){for(var f=e[c],h=void 0,k=void 0,h=0,k=f.mb.length;h<k;++h)g(f.mb[h]);R(f.mb);h=0;for(k=f.Db.length;h<k;++h)m(f.Db[h]);R(f.Db);1E3>n.length&&n.push(f)}R(e)}R(this.Ib)};a.Wa=function(){this.ih();return{w:N(this.width/this.Ya),h:N(this.height/this.Xa),d:this.tt()}};
a.kb=function(a){this.zc=a.w;this.Xc=a.h;this.ih(!0);this.qp(a.d);this.qh=!0;this.tj()};a.Sc=function(a){if(!(0>=this.Ya||0>=this.Xa)){this.type.wl(this.Ya,this.Xa,this.im,this.km,this.jm,this.lm,this.Fe);if(this.width!==this.Pd||this.height!==this.Od)this.qh=!0,this.tj(),this.ul(),this.Pd=this.width,this.Od=this.height;a.globalAlpha=this.opacity;var b=this.n,c=b.ka,d=b.la,e=b.qa,b=b.oa,f=this.x,g=this.y,h=this.Fe,m;this.b.qc&&(f=Math.round(f),g=Math.round(g));var k=this.Qa*this.Ya,p=this.ab*this.Xa,
n=Math.floor((c-f)/k),k=Math.floor((e-f)/k),q=Math.floor((d-g)/p),p=Math.floor((b-g)/p),t=f%this.Ya,r=g%this.Xa;this.Fe&&(r=t=0);if(0!==t||0!==r)a.save(),a.translate(t,r),f-=t,g-=r,c-=t,d-=r,e-=t,b-=r;for(var u,w,z,B,D,E,C,H,I;n<=k;++n)for(u=q;u<=p;++u)if(w=this.hk(n,u))for(w.hh(),z=0,B=w.mb.length;z<B;++z)D=w.mb[z],-1!==D.id&&(m=D.ea,E=m.left+f,C=m.top+g,H=m.right+f,m=m.bottom+g,E>e||H<c||C>b||m<d||(I=this.type.Dm(D.Mj,D.Jg,D.Ph,D.Gf,this.Fe),h?a.drawImage(I,E,C):(a.fillStyle=this.type.Dm(D.Mj,D.Jg,
D.Ph,D.Gf,this.Fe),a.fillRect(E,C,H-E,m-C))));0===t&&0===r||a.restore()}};var u=new O(0,0,1,1);a.ke=function(a){this.Eb(a)};a.Eb=function(a){if(!(0>=this.Ya||0>=this.Xa)){this.type.wl(this.Ya,this.Xa,this.im,this.km,this.jm,this.lm,this.Fe);if(this.width!==this.Pd||this.height!==this.Od)this.qh=!0,this.tj(),this.ul(),this.Pd=this.width,this.Od=this.height;a.He(this.opacity);var b=this.type.Ue,c=this.n,d=c.ka,e=c.la,f=c.qa,c=c.oa,g=this.x,h=this.y,m;this.b.qc&&(g=Math.round(g),h=Math.round(h));var k=
this.Qa*this.Ya,p=this.ab*this.Xa,n=Math.floor((f-g)/k),q=Math.floor((e-h)/p),p=Math.floor((c-h)/p),t,r,B,w,z,C,D,E,H,ha,I,da,W,Q,eb,db,fb;for(eb=Math.floor((d-g)/k);eb<=n;++eb)for(db=q;db<=p;++db)if(fb=this.hk(eb,db))for(fb.hh(),k=0,t=fb.mb.length;k<t;++k)r=fb.mb[k],-1!==r.id&&(m=r.ea,B=m.left+g,w=m.top+h,z=m.right+g,m=m.bottom+h,B>f||z<d||w>c||m<e||(a.Wb(b[r.Mj]),u.right=(z-B)/this.Ya,u.bottom=(m-w)/this.Xa,r.bn?(r.Gf&&(Q=u.right,u.right=u.bottom,u.bottom=Q),D=C=0,E=u.right,H=0,ha=u.right,I=u.bottom,
da=0,W=u.bottom,r.Gf&&(Q=da,da=E,E=Q,Q=W,W=H,H=Q),r.Jg&&(Q=C,C=E,E=Q,Q=D,D=H,H=Q,Q=da,da=ha,ha=Q,Q=W,W=I,I=Q),r.Ph&&(Q=C,C=da,da=Q,Q=D,D=W,W=Q,Q=E,E=ha,ha=Q,Q=H,H=I,I=Q),a.Mu(B,w,z,w,z,m,B,m,C,D,E,H,ha,I,da,W)):a.ad(B,w,z,w,z,m,B,m,u)))}};e.p=new function(){};c.prototype.uq=function(a,b){this.ih();this.Ch(a,b,-1)};c.prototype.dr=function(a,b,c,d){this.ih();this.Ch(a,b,c&B|r(d))};e.F=new c;b.prototype.kr=function(a,b,c){b=this.Di(b,c);a.ia(-1===b?-1:b&B)};b.prototype.Uq=function(a,b){a.H(this.fq(b))};
b.prototype.Vq=function(a,b){a.H(this.gq(b))};e.W=new b})();function nc(d){this.b=d}
(function(){function d(){}var g=nc.prototype;g.aa=function(d){this.behavior=d;this.b=d.b};g.aa.prototype.K=function(){};g.U=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var p=g.U.prototype;p.K=function(){var d=this.D[0];this.Lb=this.D[1];this.Ai=this.D[2];this.xr=0!==this.D[3];this.Vl=0!==this.D[4];this.C=Math.cos(this.j.k)*d;this.B=Math.sin(this.j.k)*d;this.Ni=this.j.x;this.Oi=this.j.y;this.xc=this.j.k;this.Oj=0;this.enabled=0!==this.D[5]};p.Wa=function(){return{acc:this.Lb,
g:this.Ai,dx:this.C,dy:this.B,lx:this.Ni,ly:this.Oi,lka:this.xc,t:this.Oj,e:this.enabled}};p.kb=function(d){this.Lb=d.acc;this.Ai=d.g;this.C=d.dx;this.B=d.dy;this.Ni=d.lx;this.Oi=d.ly;this.xc=d.lka;this.Oj=d.t;this.enabled=d.e};p.Hb=function(){if(this.enabled){var d=this.b.Bg(this.j),g,p;this.j.k!==this.xc&&(this.Vl&&(g=Na(0,0,this.C,this.B),this.C=Math.cos(this.j.k)*g,this.B=Math.sin(this.j.k)*g),this.xc=this.j.k);0!==this.Lb&&(g=Na(0,0,this.C,this.B),p=0===this.C&&0===this.B?this.j.k:Ja(0,0,this.C,
this.B),g+=this.Lb*d,0>g&&(g=0),this.C=Math.cos(p)*g,this.B=Math.sin(p)*g);0!==this.Ai&&(this.B+=this.Ai*d);this.Ni=this.j.x;this.Oi=this.j.y;if(0!==this.C||0!==this.B)if(this.j.x+=this.C*d,this.j.y+=this.B*d,this.Oj+=Na(0,0,this.C*d,this.B*d),this.Vl&&(this.j.k=Ja(0,0,this.C,this.B),this.j.P(),this.xc=this.j.k),this.j.P(),this.xr&&(g=this.b.dd(this.j)))this.b.yh(this.j,g),g=Na(0,0,this.C,this.B),p=this.b.Br(this.j,this.Ni,this.Oi),this.C=Math.cos(p)*g,this.B=Math.sin(p)*g,this.j.x+=this.C*d,this.j.y+=
this.B*d,this.j.P(),this.Vl&&(this.xc=this.j.k=p,this.j.P()),this.b.Il(this.j,this.C/g,this.B/g,Math.max(2.5*g*d,30))||this.b.gp(this.j,100)}};g.p=new function(){};d.prototype.Sm=function(d){var g=Ja(0,0,this.C,this.B);this.C=Math.cos(g)*d;this.B=Math.sin(g)*d};g.F=new d;g.W=new function(){}})();function oc(d){this.b=d}
(function(){function d(){}var g=oc.prototype;g.aa=function(d){this.behavior=d;this.b=d.b};g.aa.prototype.K=function(){};g.U=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b;this.Cj=this.Bj=this.Aj=this.Dj=this.Tk=this.Bh=this.Yg=this.xg=this.Lh=!1;this.kl=this.jl=this.il=this.ll=-1;this.B=this.C=0};var p=g.U.prototype;p.K=function(){this.qf=this.D[0];this.Lb=this.D[1];this.qd=this.D[2];this.wk=this.D[3];this.ak=this.D[4];this.Ir=1===this.D[5];this.enabled=0!==this.D[6];this.Ir&&
!this.b.xb&&(jQuery(document).keydown(function(d){return function(g){d.Al(g)}}(this)),jQuery(document).keyup(function(d){return function(g){d.Bl(g)}}(this)))};p.Wa=function(){return{dx:this.C,dy:this.B,enabled:this.enabled,maxspeed:this.qf,acc:this.Lb,dec:this.qd,ignoreInput:this.Tk}};p.kb=function(d){this.C=d.dx;this.B=d.dy;this.enabled=d.enabled;this.qf=d.maxspeed;this.Lb=d.acc;this.qd=d.dec;this.Tk=d.ignoreInput;this.Cj=this.Bj=this.Aj=this.Dj=this.Bh=this.Yg=this.xg=this.Lh=!1;this.kl=this.jl=
this.il=this.ll=-1};p.Al=function(d){var g=this.b.Hc;switch(d.which){case 37:d.preventDefault();this.jl<g&&(this.Yg=!0);break;case 38:d.preventDefault();this.ll<g&&(this.Lh=!0);break;case 39:d.preventDefault();this.kl<g&&(this.Bh=!0);break;case 40:d.preventDefault(),this.il<g&&(this.xg=!0)}};p.Bl=function(d){var g=this.b.Hc;switch(d.which){case 37:d.preventDefault();this.Yg=!1;this.jl=g;break;case 38:d.preventDefault();this.Lh=!1;this.ll=g;break;case 39:d.preventDefault();this.Bh=!1;this.kl=g;break;
case 40:d.preventDefault(),this.xg=!1,this.il=g}};p.Be=function(){this.Bh=this.Yg=this.xg=this.Lh=!1};p.Hb=function(){var d=this.b.Bg(this.j),g=this.Yg||this.Bj,p=this.Bh||this.Cj,r=this.Lh||this.Dj,c=this.xg||this.Aj;this.Aj=this.Dj=this.Cj=this.Bj=!1;if(this.enabled){var b=this.b.dd(this.j);if(b&&(this.b.yh(this.j,b),!this.b.gp(this.j)))return;this.Tk&&(c=r=p=g=!1);0===this.wk?p=g=!1:1===this.wk&&(c=r=!1);2===this.wk&&(r||c)&&(p=g=!1);g==p&&(0>this.C?(this.C+=this.qd*d,0<this.C&&(this.C=0)):0<this.C&&
(this.C-=this.qd*d,0>this.C&&(this.C=0)));r==c&&(0>this.B?(this.B+=this.qd*d,0<this.B&&(this.B=0)):0<this.B&&(this.B-=this.qd*d,0>this.B&&(this.B=0)));g&&!p&&(this.C=0<this.C?this.C-(this.Lb+this.qd)*d:this.C-this.Lb*d);p&&!g&&(this.C=0>this.C?this.C+(this.Lb+this.qd)*d:this.C+this.Lb*d);r&&!c&&(this.B=0<this.B?this.B-(this.Lb+this.qd)*d:this.B-this.Lb*d);c&&!r&&(this.B=0>this.B?this.B+(this.Lb+this.qd)*d:this.B+this.Lb*d);if(0!==this.C||0!==this.B){Math.sqrt(this.C*this.C+this.B*this.B)>this.qf&&
(b=Math.atan2(this.B,this.C),this.C=this.qf*Math.cos(b),this.B=this.qf*Math.sin(b));p=this.j.x;r=this.j.y;g=this.j.k;this.j.x+=this.C*d;this.j.P();if(b=this.b.dd(this.j))this.b.Il(this.j,0>this.C?1:-1,0,Math.abs(Math.floor(this.C*d)))||(this.j.x=p),this.C=0,this.j.P(),this.b.yh(this.j,b);this.j.y+=this.B*d;this.j.P();if(b=this.b.dd(this.j))this.b.Il(this.j,0,0>this.B?1:-1,Math.abs(Math.floor(this.B*d)))||(this.j.y=r),this.B=0,this.j.P(),this.b.yh(this.j,b);d=bb(this.C);b=bb(this.B);0===d&&0===b||
!this.j.type.ma.au||(1===this.ak?this.j.k=Ia(90*Math.round(Ea(Math.atan2(b,d))/90)):2===this.ak?this.j.k=Ia(45*Math.round(Ea(Math.atan2(b,d))/45)):3===this.ak&&(this.j.k=Math.atan2(b,d)));this.j.P();this.j.k!=g&&(b=this.b.dd(this.j))&&(this.j.k=g,this.j.P(),this.b.yh(this.j,b))}}};g.p=new function(){};d.prototype.Sm=function(d){0>d&&(d=0);d>this.qf&&(d=this.qf);var g=Math.atan2(this.B,this.C);this.C=d*Math.cos(g);this.B=d*Math.sin(g)};d.prototype.hr=function(d){switch(d){case 0:this.Bj=!0;break;case 1:this.Cj=
!0;break;case 2:this.Dj=!0;break;case 3:this.Aj=!0}};g.F=new d;g.W=new function(){}})();function pc(d){this.b=d}
(function(){function d(){}function g(){}var p=pc.prototype;p.aa=function(b){this.behavior=b;this.b=b.b};var m=p.aa.prototype;m.K=function(){this.tf=[]};m.Ys=function(b){var c,a,d;c=0;for(a=b.L.length;c<a;++c)if(d=b.L[c],d instanceof pc.prototype.U&&d.type===this)return d;return null};p.U=function(b,c){this.type=b;this.behavior=b.behavior;this.j=c;this.b=b.b};m=p.U.prototype;m.K=function(){this.ju=this.D[0];this.mj=this.D[1];this.gi=X(this.D[2]);this.Xp=0!==this.D[3]};m.ud=function(){};m.Wa=function(){var b=
{r:this.mj,c:this.gi,t:[]},c,a;c=0;for(a=this.type.tf.length;c<a;c++)b.t.push(this.type.tf[c].Z);return b};m.kb=function(b){this.mj=b.r;this.gi=b.c;R(this.type.tf);var c,a,d;c=0;for(a=b.t.length;c<a;c++)(d=this.b.Eg(b.t[c]))&&this.type.tf.push(d)};m.Hb=function(){};var t=[],q=new O(0,0,0,0);m.Mt=function(b,c){var a=this.j.x,d=this.j.y,g=this.j.k;0>this.j.width&&(g+=Math.PI);if(Na(a,d,b,c)>this.mj||Ka(g,Ja(a,d,b,c))>this.gi/2)return!1;var k,m;q.set(a,d,b,c);q.normalize();if(0===this.ju)for(this.Xp?
this.b.Ln(this.j.n,q,t):(g=this.b.cm)&&Aa(t,g.kh.Ic()),g=0,k=t.length;g<k;++g){if(m=t[g],m.I.solidEnabled&&m!==this.j&&this.b.Bp(a,d,b,c,m))return R(t),!1}else{if(this.Xp)this.b.Nn(this.j.n,this.type.tf,q,t);else for(g=0,k=this.type.tf.length;g<k;++g)Aa(t,this.type.tf[g].i);g=0;for(k=t.length;g<k;++g)if(m=t[g],m!==this.j&&this.b.Bp(a,d,b,c,m))return R(t),!1}R(t);return!0};var r=new ga,c=new ga;d.prototype.yq=function(b){if(!b)return!1;var d,a,f,g,k,m,p,q,n=this.b.gt().Q();b=b.Q();var t=n.Fb(),v=b.Fb();
n.R&&R(n.T);b.R&&R(b.T);var M=this.b.Lf().Og;d=0;for(f=t.length;d<f;++d){k=t[d];q=!1;m=this.Ys(k);a=0;for(g=v.length;a<g;++a)p=v[a],k!==p&&Oa(m.Mt(p.x,p.y),M)&&(q=!0,c.add(p));q&&r.add(k)}d=r.Ic();a=c.Ic();n.R=!1;b.R=!1;U(n.i,d);U(b.i,a);r.clear();c.clear();return n.Fi()};p.p=new d;g.prototype.$q=function(b){this.mj=b};g.prototype.Yq=function(b){this.gi=X(b)};p.F=new g;p.W=new function(){}})();function qc(d){this.b=d}
(function(){var d=qc.prototype;d.aa=function(d){this.behavior=d;this.b=d.b};d.aa.prototype.K=function(){};d.U=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var g=d.U.prototype;g.K=function(){this.gb=null;this.fj=-1;this.mode=this.xc=this.hm=this.jh=this.De=this.ej=0;var d=this;this.Ub||(this.Oo=function(g){d.ou(g)});this.b.Ym(this.Oo)};g.Wa=function(){return{uid:this.gb?this.gb.uid:-1,pa:this.ej,pd:this.De,msa:this.jh,tsa:this.hm,lka:this.xc,m:this.mode}};g.kb=function(d){this.fj=
d.uid;this.ej=d.pa;this.De=d.pd;this.jh=d.msa;this.hm=d.tsa;this.xc=d.lka;this.mode=d.m};g.Ad=function(){-1===this.fj?this.gb=null:this.gb=this.b.Mk(this.fj);this.fj=-1};g.ou=function(d){this.gb==d&&(this.gb=null)};g.ud=function(){this.gb=null;this.b.Ou(this.Oo)};g.Hb=function(){};g.ig=function(){if(this.gb){this.xc!==this.j.k&&(this.jh=Ga(this.jh+(this.j.k-this.xc)));var d=this.j.x,g=this.j.y;if(3===this.mode||4===this.mode){var t=Na(this.j.x,this.j.y,this.gb.x,this.gb.y);if(t>this.De||4===this.mode&&
t<this.De)g=Ja(this.gb.x,this.gb.y,this.j.x,this.j.y),d=this.gb.x+Math.cos(g)*this.De,g=this.gb.y+Math.sin(g)*this.De}else d=this.gb.x+Math.cos(this.gb.k+this.ej)*this.De,g=this.gb.y+Math.sin(this.gb.k+this.ej)*this.De;this.xc=t=Ga(this.jh+(this.gb.k-this.hm));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.j.x===d&&this.j.y===g||(this.j.x=d,this.j.y=g,this.j.P());0!==this.mode&&2!==this.mode||this.j.k===t||(this.j.k=t,this.j.P())}};d.p=new function(){};d.F=new function(){};d.W=new function(){}})();
function rc(d){this.b=d}
(function(){var d=rc.prototype;d.aa=function(d){this.behavior=d;this.b=d.b};d.aa.prototype.K=function(){};d.U=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var g=d.U.prototype;g.K=function(){this.Zb={}};g.ud=function(){Qa(this.Zb)};g.Wa=function(){var d={},g,t;for(g in this.Zb)this.Zb.hasOwnProperty(g)&&(t=this.Zb[g],d[g]={c:t.current.ca,t:t.total.ca,d:t.duration,r:t.ip});return d};g.kb=function(d){this.Zb={};for(var g in d)d.hasOwnProperty(g)&&(this.Zb[g]={current:new Va,
total:new Va,duration:d[g].d,ip:d[g].r},this.Zb[g].current.ca=d[g].c,this.Zb[g].total.ca=d[g].t)};g.Hb=function(){var d=this.b.Bg(this.j),g,t;for(g in this.Zb)this.Zb.hasOwnProperty(g)&&(t=this.Zb[g],t.current.add(d),t.total.add(d))};g.ig=function(){var d,g;for(d in this.Zb)this.Zb.hasOwnProperty(d)&&(g=this.Zb[d],g.current.ca>=g.duration&&(g.ip?g.current.ca-=g.duration:delete this.Zb[d]))};d.p=new function(){};d.F=new function(){};d.W=new function(){}})();function sc(d){this.b=d}
(function(){var d=sc.prototype;d.aa=function(d){this.behavior=d;this.b=d.b};d.aa.prototype.K=function(){};d.U=function(d,p){this.type=d;this.behavior=d.behavior;this.j=p;this.b=d.b;this.mode=0};d=d.U.prototype;d.K=function(){this.mode=this.D[0]};d.Hb=function(){};d.ig=function(){this.j.ja();var d=this.j.ua,p=this.j.n.Ha,m=!1;0===this.mode?(0>this.j.x&&(this.j.x=0,m=!0),0>this.j.y&&(this.j.y=0,m=!0),this.j.x>p.width&&(this.j.x=p.width,m=!0),this.j.y>p.height&&(this.j.y=p.height,m=!0)):(0>d.left&&(this.j.x-=
d.left,m=!0),0>d.top&&(this.j.y-=d.top,m=!0),d.right>p.width&&(this.j.x-=d.right-p.width,m=!0),d.bottom>p.height&&(this.j.y-=d.bottom-p.height,m=!0));m&&this.j.P()}})();function tc(d){this.b=d}
(function(){var d=tc.prototype;d.aa=function(d){this.behavior=d;this.b=d.b};d.aa.prototype.K=function(){};d.U=function(d,p){this.type=d;this.behavior=d.behavior;this.j=p;this.b=d.b};d=d.U.prototype;d.K=function(){};d.Hb=function(){this.j.ja();var d=this.j.ua,p=this.j.n.Ha;(0>d.right||0>d.bottom||d.left>p.width||d.top>p.height)&&this.b.Me(this.j)}})();function uc(d){this.b=d;this.Yl=this.zj=this.Gh=this.Xl=0}
(function(){var d=uc.prototype;d.aa=function(d){this.behavior=d;this.b=d.b};d.aa.prototype.K=function(){};d.U=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var g=d.U.prototype;g.K=function(){this.enabled=0!==this.D[0]};g.Wa=function(){return{smg:this.behavior.Xl,ss:this.behavior.Gh,se:this.behavior.zj,smd:this.behavior.Yl}};g.kb=function(d){this.behavior.Xl=d.smg;this.behavior.Gh=d.ss;this.behavior.zj=d.se;this.behavior.Yl=d.smd};g.Hb=function(){};g.ig=function(){if(this.enabled){var d=
this.behavior.kh.Ic(),g=0,t=0,q,r,c,b=0;q=0;for(r=d.length;q<r;q++){a:{c=d[q];for(var e=void 0,a=void 0,f=void 0,e=0,a=c.L.length;e<a;++e)if(f=c.L[e],f.behavior instanceof uc){c=f;break a}c=null}c&&c.enabled&&(g+=d[q].x,t+=d[q].y,++b)}d=this.j.n.Ha;r=this.b.Rb.ca;c=q=0;r>=this.behavior.Gh&&r<this.behavior.zj&&(q=this.behavior.Xl*Math.min(this.b.jg,1),0===this.behavior.Yl&&(q*=1-(r-this.behavior.Gh)/(this.behavior.zj-this.behavior.Gh)),r=Math.random()*Math.PI*2,c=Math.random()*q,q=Math.cos(r)*c,c*=
Math.sin(r));d.Tl(g/b+q);d.Ul(t/b+c)}};d.F=new function(){}})();function fc(d){this.b=d}(function(){var d=fc.prototype;d.aa=function(d){this.behavior=d;this.b=d.b};d.aa.prototype.K=function(){};d.U=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var g=d.U.prototype;g.K=function(){this.j.I.solidEnabled=0!==this.D[0]};g.Hb=function(){};d.p=new function(){};d.F=new function(){}})();
function ec(){return[hc,gc,jc,ic,kc,mc,Z,lc,oc,sc,uc,pc,nc,fc,rc,qc,tc,Y.prototype.p.Lm,kc.prototype.F.Rm,Y.prototype.W.xu,Y.prototype.W.wu,Y.prototype.p.Eq,Y.prototype.p.wq,Z.prototype.F.Rm,Z.prototype.W.Vm,Z.prototype.W.Wm,Z.prototype.F.Tm,Z.prototype.W.Em,kc.prototype.F.cr,Y.prototype.W.xi,Z.prototype.p.Im,Y.prototype.F.fr,Z.prototype.F.ir,Y.prototype.F.mr,Y.prototype.F.rq,Z.prototype.p.Ne,Y.prototype.F.Zq,Z.prototype.p.Oq,Z.prototype.F.tq,Z.prototype.F.Qm,Z.prototype.F.jr,Z.prototype.p.Bm,Y.prototype.p.oq,
Y.prototype.W.random,Y.prototype.p.Cm,mc.prototype.F.dr,mc.prototype.W.Uq,mc.prototype.W.Vq,Z.prototype.p.Fm,Z.prototype.p.Gq,mc.prototype.F.Qm,mc.prototype.W.kr,mc.prototype.p.Bm,mc.prototype.F.uq,hc.prototype.F.Zj,Y.prototype.W.mn,gc.prototype.F.CallFunction,gc.prototype.p.Th,Y.prototype.p.xq,Z.prototype.p.Bq,Z.prototype.F.Xq,hc.prototype.W.kq,Y.prototype.W["int"],Y.prototype.W.Lr,Z.prototype.F.hq,Z.prototype.F.Wq,Z.prototype.W.iq,Y.prototype.W.We,pc.prototype.F.$q,pc.prototype.p.yq,nc.prototype.F.Sm,
pc.prototype.F.Yq,Y.prototype.p.pq,Y.prototype.p.vq,Z.prototype.F.Jq,Z.prototype.W.Um,Z.prototype.F.er,Y.prototype.W.floor,Z.prototype.F.Zj,Z.prototype.F.gr,jc.prototype.p.Cq,ic.prototype.p.Fq,oc.prototype.F.hr]};