-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathc2runtime.js
More file actions
493 lines (493 loc) · 238 KB
/
c2runtime.js
File metadata and controls
493 lines (493 loc) · 238 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
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var ba,da,ea,fa,ga,ha,ia,ja,ka,la,oa,pa,qa,ra,C,sa,ua,va,wa,xa,ya,za,M,Aa,Ba,Ca,Da,Fa,T,Ga,Ha,Ia,Ja,Ka,La,Ma,Oa,Pa,Ra,Sa,Ta,Ua,Va,Wa,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec={},fc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(a,d,b,k){this.set(a,d,b,k)}function q(){this.Tb=this.Sb=this.Wb=this.Vb=this.ic=this.hc=this.Cb=this.Bb=0}function t(a,d,b,k){a<d?b<k?(u=a<b?a:b,w=d>k?d:k):(u=a<k?a:k,w=d>b?d:b):b<k?(u=d<b?d:b,w=a>k?a:k):(u=d<k?d:k,w=a>b?a:b)}function r(){this.items=this.Od=null;this.hi=0;aa&&(this.Od=new Set);this.lh=[];this.Ge=!0}function p(a){V[R++]=a}function v(){this.aa=this.ll=this.y=this.Ah=0}function g(a){this.ib=[];this.sj=this.uj=this.vj=this.tj=0;this.Si(a)}function a(a,d){this.Vl=
a;this.Ul=d;this.cells={}}function c(a,d){this.Vl=a;this.Ul=d;this.cells={}}function e(a,d,b){var k;return D.length?(k=D.pop(),k.Em=a,k.x=d,k.y=b,k):new ba(a,d,b)}function d(a,d,b){this.Em=a;this.x=d;this.y=b;this.nb=new da}function b(a,d,b){var k;return E.length?(k=E.pop(),k.Em=a,k.x=d,k.y=b,k):new ea(a,d,b)}function x(a,d,b){this.Em=a;this.x=d;this.y=b;this.nb=[];this.Hg=!0;this.Md=new da;this.xh=!1}function l(a,d){return a.xd-d.xd}fa=function(a){window.console&&window.console.log&&window.console.log(a)};
ga=function(a){window.console&&window.console.error&&window.console.error(a)};ha=function(a){return"undefined"===typeof a};ia=function(a){return"number"===typeof a};ja=function(a){return"string"===typeof a};ka=function(a){return 0<a&&0===(a-1&a)};la=function(a){--a;for(var d=1;32>d;d<<=1)a=a|a>>d;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,d){return a>d?a:d};qa=function(a,d){return a<d?a:d};ra=Math.PI;C=function(a){return 0<=a?a|0:(a|0)-1};sa=function(a){var d=a|0;return d===a?d:d+1};
ua=function(a,d,b,k,c,m,h,e){var l,B,A,g;a<b?(B=a,l=b):(B=b,l=a);c<h?(g=c,A=h):(g=h,A=c);if(l<g||B>A)return!1;d<k?(B=d,l=k):(B=k,l=d);m<e?(g=m,A=e):(g=e,A=m);if(l<g||B>A)return!1;l=c-a+h-b;B=m-d+e-k;a=b-a;d=k-d;c=h-c;m=e-m;e=oa(d*c-m*a);return oa(c*B-m*l)>e?!1:oa(a*B-d*l)<=e};f.prototype.set=function(a,d,b,k){this.left=a;this.top=d;this.right=b;this.bottom=k};f.prototype.Dh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};f.prototype.width=function(){return this.right-
this.left};f.prototype.height=function(){return this.bottom-this.top};f.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};f.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)};f.prototype.Xw=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};f.prototype.Yw=function(a,d,b){return!(a.right+
d<this.left||a.bottom+b<this.top||a.left+d>this.right||a.top+b>this.bottom)};f.prototype.Mb=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};f.prototype.Ih=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};va=f;q.prototype.Ri=function(a){this.Bb=a.left;this.Cb=a.top;this.hc=a.right;this.ic=a.top;this.Vb=a.right;this.Wb=a.bottom;this.Sb=a.left;this.Tb=a.bottom};q.prototype.$r=function(a,d){if(0===d)this.Ri(a);else{var b=
Math.sin(d),k=Math.cos(d),c=a.left*b,m=a.top*b,h=a.right*b,b=a.bottom*b,e=a.left*k,l=a.top*k,B=a.right*k,k=a.bottom*k;this.Bb=e-m;this.Cb=l+c;this.hc=B-m;this.ic=l+h;this.Vb=B-b;this.Wb=k+h;this.Sb=e-b;this.Tb=k+c}};q.prototype.offset=function(a,d){this.Bb+=a;this.Cb+=d;this.hc+=a;this.ic+=d;this.Vb+=a;this.Wb+=d;this.Sb+=a;this.Tb+=d;return this};var u=0,w=0;q.prototype.qp=function(a){t(this.Bb,this.hc,this.Vb,this.Sb);a.left=u;a.right=w;t(this.Cb,this.ic,this.Wb,this.Tb);a.top=u;a.bottom=w};q.prototype.Mb=
function(a,d){var b=this.Bb,k=this.Cb,c=this.hc-b,m=this.ic-k,h=this.Vb-b,e=this.Wb-k,l=a-b,B=d-k,A=c*c+m*m,g=c*h+m*e,m=c*l+m*B,x=h*h+e*e,f=h*l+e*B,u=1/(A*x-g*g),c=(x*m-g*f)*u,A=(A*f-g*m)*u;if(0<=c&&0<A&&1>c+A)return!0;c=this.Sb-b;m=this.Tb-k;A=c*c+m*m;g=c*h+m*e;m=c*l+m*B;u=1/(A*x-g*g);c=(x*m-g*f)*u;A=(A*f-g*m)*u;return 0<=c&&0<A&&1>c+A};q.prototype.Ee=function(a,d){if(d)switch(a){case 0:return this.Bb;case 1:return this.hc;case 2:return this.Vb;case 3:return this.Sb;case 4:return this.Bb;default:return this.Bb}else switch(a){case 0:return this.Cb;
case 1:return this.ic;case 2:return this.Wb;case 3:return this.Tb;case 4:return this.Cb;default:return this.Cb}};q.prototype.Sq=function(){return(this.Bb+this.hc+this.Vb+this.Sb)/4};q.prototype.Tq=function(){return(this.Cb+this.ic+this.Wb+this.Tb)/4};q.prototype.fq=function(a){var d=a.Sq(),b=a.Tq();if(this.Mb(d,b))return!0;d=this.Sq();b=this.Tq();if(a.Mb(d,b))return!0;var k,c,m,h,e,l,B,A;for(B=0;4>B;B++)for(A=0;4>A;A++)if(d=this.Ee(B,!0),b=this.Ee(B,!1),k=this.Ee(B+1,!0),c=this.Ee(B+1,!1),m=a.Ee(A,
!0),h=a.Ee(A,!1),e=a.Ee(A+1,!0),l=a.Ee(A+1,!1),ua(d,b,k,c,m,h,e,l))return!0;return!1};wa=q;xa=function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b]);return a};ya=function(a,d){var b,k;d=C(d);if(!(0>d||d>=a.length)){b=d;for(k=a.length-1;b<k;b++)a[b]=a[b+1];za(a,k)}};za=function(a,d){a.length=d};M=function(a){za(a,0)};Aa=function(a,d){M(a);var b,k;b=0;for(k=d.length;b<k;++b)a[b]=d[b]};Ba=function(a,d){a.push.apply(a,d)};Ca=function(a,d){var b,k;b=0;for(k=a.length;b<k;++b)if(a[b]===d)return b;
return-1};Da=function(a,d){var b=Ca(a,d);-1!==b&&ya(a,b)};Fa=function(a,d,b){return a<d?d:a>b?b:a};T=function(a){return a/(180/ra)};Ga=function(a){return 180/ra*a};Ha=function(a){a%=360;0>a&&(a+=360);return a};Ia=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};Ja=function(a){return Ha(Ga(a))};Ka=function(a){return Ia(T(a))};La=function(a,d,b,k){return Math.atan2(k-d,b-a)};Ma=function(a,d){if(a===d)return 0;var b=Math.sin(a),k=Math.cos(a),c=Math.sin(d),m=Math.cos(d),b=b*c+k*m;return 1<=b?0:-1>=b?ra:Math.acos(b)};
Oa=function(a,d,b){var k=Math.sin(a),c=Math.cos(a),m=Math.sin(d),h=Math.cos(d);return Math.acos(k*m+c*h)>b?0<c*m-k*h?Ia(a+b):Ia(a-b):Ia(d)};Pa=function(a,d){var b=Math.sin(a),k=Math.cos(a),c=Math.sin(d),m=Math.cos(d);return 0>=k*c-b*m};Ra=function(a,d,b,k,c,m){if(0===b)return m?a:d;var h=Math.sin(b);b=Math.cos(b);a-=k;d-=c;var e=a*h;a=a*b-d*h;d=d*b+e;return m?a+k:d+c};Sa=function(a,d,b,k){a=b-a;d=k-d;return Math.sqrt(a*a+d*d)};Ta=function(a,d){return!a!==!d};Ua=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;
return!1};Va=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var h=+new Date;Wa=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()-h};var k=!1,m=k=!1,F=!1;"undefined"!==typeof window&&(k=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
k=!k&&/safari/i.test(navigator.userAgent),m=/(iphone|ipod|ipad)/i.test(navigator.userAgent),F=window.c2ejecta);var aa=!k&&!F&&!m&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;r.prototype.contains=function(a){return this.ge()?!1:aa?this.Od.has(a):this.items&&this.items.hasOwnProperty(a)};r.prototype.add=function(a){if(aa)this.Od.has(a)||(this.Od.add(a),this.Ge=!1);else{var d=a.toString(),b=this.items;b?b.hasOwnProperty(d)||(b[d]=a,this.hi++,this.Ge=!1):(this.items={},this.items[d]=
a,this.hi=1,this.Ge=!1)}};r.prototype.remove=function(a){if(!this.ge())if(aa)this.Od.has(a)&&(this.Od["delete"](a),this.Ge=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.hi--,this.Ge=!1)}};r.prototype.clear=function(){this.ge()||(aa?this.Od.clear():(this.items=null,this.hi=0),M(this.lh),this.Ge=!0)};r.prototype.ge=function(){return 0===this.count()};r.prototype.count=function(){return aa?this.Od.size:this.hi};var V=null,R=0;r.prototype.Gy=function(){if(!this.Ge){if(aa)M(this.lh),
V=this.lh,R=0,this.Od.forEach(p),V=null,R=0;else{var a=this.lh;M(a);var d,b=0,k=this.items;if(k)for(d in k)k.hasOwnProperty(d)&&(a[b++]=k[d])}this.Ge=!0}};r.prototype.nf=function(){this.Gy();return this.lh};da=r;new da;Za=function(a,d){aa?$a(a,d.Od):ab(a,d.nf())};$a=function(a,d){var b,k,c,m;k=b=0;for(c=a.length;b<c;++b)m=a[b],d.has(m)||(a[k++]=m);za(a,k)};ab=function(a,d){var b,k,c,m;k=b=0;for(c=a.length;b<c;++b)m=a[b],-1===Ca(d,m)&&(a[k++]=m);za(a,k)};v.prototype.add=function(a){this.y=a-this.Ah;
this.ll=this.aa+this.y;this.Ah=this.ll-this.aa-this.y;this.aa=this.ll};v.prototype.reset=function(){this.aa=this.ll=this.y=this.Ah=0};bb=v;cb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};g.prototype.Si=function(a){this.Gr=a;this.rd=a.length/2;this.ib.length=a.length;this.xj=this.yj=-1;this.tp=0};g.prototype.Eg=function(){return!this.Gr.length};g.prototype.X=function(){for(var a=this.ib,d=a[0],b=d,k=a[1],c=k,m,h,e=1,l=this.rd;e<l;++e)h=2*e,m=a[h],h=a[h+1],m<d&&(d=m),m>b&&(b=m),
h<k&&(k=h),h>c&&(c=h);this.tj=d;this.uj=b;this.vj=k;this.sj=c};g.prototype.Ri=function(a,d,b){this.ib.length=8;this.rd=4;var k=this.ib;k[0]=a.left-d;k[1]=a.top-b;k[2]=a.right-d;k[3]=a.top-b;k[4]=a.right-d;k[5]=a.bottom-b;k[6]=a.left-d;k[7]=a.bottom-b;this.yj=a.right-a.left;this.xj=a.bottom-a.top;this.X()};g.prototype.eh=function(a,d,b,k,c){this.ib.length=8;this.rd=4;var m=this.ib;m[0]=a.Bb-d;m[1]=a.Cb-b;m[2]=a.hc-d;m[3]=a.ic-b;m[4]=a.Vb-d;m[5]=a.Wb-b;m[6]=a.Sb-d;m[7]=a.Tb-b;this.yj=k;this.xj=c;this.X()};
g.prototype.Zr=function(a){this.rd=a.rd;Aa(this.ib,a.ib);this.tj=a.tj;this.vj-a.vj;this.uj=a.uj;this.sj=a.sj};g.prototype.mg=function(a,d,b){if(this.yj!==a||this.xj!==d||this.tp!==b){this.yj=a;this.xj=d;this.tp=b;var k,c,m,h,e,l=0,B=1,A=this.Gr,g=this.ib;0!==b&&(l=Math.sin(b),B=Math.cos(b));b=0;for(m=this.rd;b<m;b++)k=2*b,c=k+1,h=A[k]*a,e=A[c]*d,g[k]=h*B-e*l,g[c]=e*B+h*l;this.X()}};g.prototype.Mb=function(a,d){var b=this.ib;if(a===b[0]&&d===b[1])return!0;var k,c,m,h=this.rd,e=this.tj-110,l=this.vj-
101,B=this.uj+131,A=this.sj+120,g,x,f=0,u=0;for(k=0;k<h;k++)c=2*k,m=(k+1)%h*2,g=b[c],c=b[c+1],x=b[m],m=b[m+1],ua(e,l,a,d,g,c,x,m)&&f++,ua(B,A,a,d,g,c,x,m)&&u++;return 1===f%2||1===u%2};g.prototype.Yh=function(a,d,b){var k=a.ib,c=this.ib;if(this.Mb(k[0]+d,k[1]+b)||a.Mb(c[0]-d,c[1]-b))return!0;var m,h,e,l,B,A,g,x,f,u,w,F;m=0;for(l=this.rd;m<l;m++)for(h=2*m,e=(m+1)%l*2,x=c[h],h=c[h+1],f=c[e],u=c[e+1],e=0,g=a.rd;e<g;e++)if(B=2*e,A=(e+1)%g*2,w=k[B]+d,B=k[B+1]+b,F=k[A]+d,A=k[A+1]+b,ua(x,h,f,u,w,B,F,A))return!0;
return!1};db=g;a.prototype.Oe=function(a,d,b){var k;k=this.cells[a];return k?(k=k[d])?k:b?(k=e(this,a,d),this.cells[a][d]=k):null:b?(k=e(this,a,d),this.cells[a]={},this.cells[a][d]=k):null};a.prototype.Qb=function(a){return C(a/this.Vl)};a.prototype.Rb=function(a){return C(a/this.Ul)};a.prototype.update=function(a,d,b){var k,c,m,h,e;if(d)for(k=d.left,c=d.right;k<=c;++k)for(m=d.top,h=d.bottom;m<=h;++m)if(!b||!b.Mb(k,m))if(e=this.Oe(k,m,!1))e.remove(a),e.ge()&&(e.nb.clear(),1E3>D.length&&D.push(e),
this.cells[k][m]=null);if(b)for(k=b.left,c=b.right;k<=c;++k)for(m=b.top,h=b.bottom;m<=h;++m)d&&d.Mb(k,m)||this.Oe(k,m,!0).Mm(a)};a.prototype.Yk=function(a,d){var b,k,c,m,h,e;b=this.Qb(a.left);c=this.Rb(a.top);k=this.Qb(a.right);for(h=this.Rb(a.bottom);b<=k;++b)for(m=c;m<=h;++m)(e=this.Oe(b,m,!1))&&e.dump(d)};eb=a;c.prototype.Oe=function(a,d,k){var c;c=this.cells[a];return c?(c=c[d])?c:k?(c=b(this,a,d),this.cells[a][d]=c):null:k?(c=b(this,a,d),this.cells[a]={},this.cells[a][d]=c):null};c.prototype.Qb=
function(a){return C(a/this.Vl)};c.prototype.Rb=function(a){return C(a/this.Ul)};c.prototype.update=function(a,d,b){var k,c,m,h,e;if(d)for(k=d.left,c=d.right;k<=c;++k)for(m=d.top,h=d.bottom;m<=h;++m)if(!b||!b.Mb(k,m))if(e=this.Oe(k,m,!1))e.remove(a),e.ge()&&(e.reset(),1E3>E.length&&E.push(e),this.cells[k][m]=null);if(b)for(k=b.left,c=b.right;k<=c;++k)for(m=b.top,h=b.bottom;m<=h;++m)d&&d.Mb(k,m)||this.Oe(k,m,!0).Mm(a)};c.prototype.Yk=function(a,d,b,k,c){var m,h;a=this.Qb(a);d=this.Rb(d);b=this.Qb(b);
for(m=this.Rb(k);a<=b;++a)for(k=d;k<=m;++k)(h=this.Oe(a,k,!1))&&h.dump(c)};c.prototype.vx=function(a){var d,b,k,c,m;d=a.left;k=a.top;b=a.right;for(c=a.bottom;d<=b;++d)for(a=k;a<=c;++a)if(m=this.Oe(d,a,!1))m.Hg=!1};fb=c;var D=[];d.prototype.ge=function(){return this.nb.ge()};d.prototype.Mm=function(a){this.nb.add(a)};d.prototype.remove=function(a){this.nb.remove(a)};d.prototype.dump=function(a){Ba(a,this.nb.nf())};ba=d;var E=[];x.prototype.ge=function(){if(!this.nb.length)return!0;if(this.nb.length>
this.Md.count())return!1;this.qm();return!0};x.prototype.Mm=function(a){this.Md.contains(a)?(this.Md.remove(a),this.Md.ge()&&(this.xh=!1)):this.nb.length?(this.nb[this.nb.length-1].Fd()>a.Fd()&&(this.Hg=!1),this.nb.push(a)):(this.nb.push(a),this.Hg=!0)};x.prototype.remove=function(a){this.Md.add(a);this.xh=!0;30<=this.Md.count()&&this.qm()};x.prototype.qm=function(){this.xh&&(this.Md.count()===this.nb.length?this.reset():(Za(this.nb,this.Md),this.Md.clear(),this.xh=!1))};x.prototype.Av=function(){this.Hg||
(this.nb.sort(l),this.Hg=!0)};x.prototype.reset=function(){M(this.nb);this.Hg=!0;this.Md.clear();this.xh=!1};x.prototype.dump=function(a){this.qm();this.Av();this.nb.length&&a.push(this.nb)};ea=x;var G="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");gb=function(a){return 0>=a||11<=a?"source-over":G[a-1]};hb=function(a,d,b){if(b)switch(a.Kb=b.ONE,a.Fb=b.ONE_MINUS_SRC_ALPHA,d){case 1:a.Kb=b.ONE;a.Fb=b.ONE;break;case 3:a.Kb=
b.ONE;a.Fb=b.ZERO;break;case 4:a.Kb=b.ONE_MINUS_DST_ALPHA;a.Fb=b.ONE;break;case 5:a.Kb=b.DST_ALPHA;a.Fb=b.ZERO;break;case 6:a.Kb=b.ZERO;a.Fb=b.SRC_ALPHA;break;case 7:a.Kb=b.ONE_MINUS_DST_ALPHA;a.Fb=b.ZERO;break;case 8:a.Kb=b.ZERO;a.Fb=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.Kb=b.DST_ALPHA;a.Fb=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.Kb=b.ONE_MINUS_DST_ALPHA,a.Fb=b.SRC_ALPHA}};ib=function(a){return Math.round(1E6*a)/1E6};jb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?
!1:a===d?!0:a.toLowerCase()===d.toLowerCase()};kb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||jb(a.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(f){var q=new gc(3);f&&(q[0]=f[0],q[1]=f[1],q[2]=f[2]);return q}
function ic(f){var q=new gc(16);f&&(q[0]=f[0],q[1]=f[1],q[2]=f[2],q[3]=f[3],q[4]=f[4],q[5]=f[5],q[6]=f[6],q[7]=f[7],q[8]=f[8],q[9]=f[9],q[10]=f[10],q[11]=f[11],q[12]=f[12],q[13]=f[13],q[14]=f[14],q[15]=f[15]);return q}function jc(f,q){q[0]=f[0];q[1]=f[1];q[2]=f[2];q[3]=f[3];q[4]=f[4];q[5]=f[5];q[6]=f[6];q[7]=f[7];q[8]=f[8];q[9]=f[9];q[10]=f[10];q[11]=f[11];q[12]=f[12];q[13]=f[13];q[14]=f[14];q[15]=f[15]}
function kc(f,q){var t=q[0],r=q[1];q=q[2];f[0]*=t;f[1]*=t;f[2]*=t;f[3]*=t;f[4]*=r;f[5]*=r;f[6]*=r;f[7]*=r;f[8]*=q;f[9]*=q;f[10]*=q;f[11]*=q}
function lc(f,q,t,r){r||(r=ic());var p,v,g,a,c,e,d,b,x=f[0],l=f[1];f=f[2];v=t[0];g=t[1];p=t[2];t=q[1];e=q[2];x===q[0]&&l===t&&f===e?(f=r,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(t=x-q[0],e=l-q[1],d=f-q[2],b=1/Math.sqrt(t*t+e*e+d*d),t*=b,e*=b,d*=b,q=g*d-p*e,p=p*t-v*d,v=v*e-g*t,(b=Math.sqrt(q*q+p*p+v*v))?(b=1/b,q*=b,p*=b,v*=b):v=p=q=0,g=e*v-d*p,a=d*q-t*v,c=t*p-e*q,(b=Math.sqrt(g*g+a*a+c*c))?(b=1/b,g*=b,a*=b,c*=b):c=a=g=0,
r[0]=q,r[1]=g,r[2]=t,r[3]=0,r[4]=p,r[5]=a,r[6]=e,r[7]=0,r[8]=v,r[9]=c,r[10]=d,r[11]=0,r[12]=-(q*x+p*l+v*f),r[13]=-(g*x+a*l+c*f),r[14]=-(t*x+e*l+d*f),r[15]=1)}
(function(){function f(a,c,e){this.he=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ca=!!e;this.jk=this.$h=!1;this.fm=0;this.Dl=1;this.Eo=1E3;this.Oy=(this.Eo-this.Dl)/32768;this.Sl=hc([0,0,100]);this.Aq=hc([0,0,0]);this.Fs=hc([0,1,0]);this.fj=hc([1,1,1]);this.Ep=!0;this.Ek=ic();this.Hc=ic();this.Zm=ic();this.em=ic();this.A=a;this.version=0===this.A.getParameter(this.A.VERSION).indexOf("WebGL 2")?2:1;this.aq()}function q(a,c,e){this.A=a;this.Ti=
c;this.name=e;this.Tc=a.getAttribLocation(c,"aPos");this.Xe=a.getAttribLocation(c,"aTex");this.yq=a.getUniformLocation(c,"matP");this.Ak=a.getUniformLocation(c,"matMV");this.Pg=a.getUniformLocation(c,"opacity");this.jn=a.getUniformLocation(c,"colorFill");this.zq=a.getUniformLocation(c,"samplerFront");this.si=a.getUniformLocation(c,"samplerBack");this.Pf=a.getUniformLocation(c,"destStart");this.Of=a.getUniformLocation(c,"destEnd");this.vi=a.getUniformLocation(c,"seconds");this.ln=a.getUniformLocation(c,
"pixelWidth");this.kn=a.getUniformLocation(c,"pixelHeight");this.ri=a.getUniformLocation(c,"layerScale");this.qi=a.getUniformLocation(c,"layerAngle");this.wi=a.getUniformLocation(c,"viewOrigin");this.ti=a.getUniformLocation(c,"scrollPos");this.Sw=!!(this.ln||this.kn||this.vi||this.si||this.Pf||this.Of||this.ri||this.qi||this.wi||this.ti);this.Iq=this.Jq=-999;this.Dk=1;this.Eq=this.Dq=0;this.Gq=this.Cq=this.Bq=1;this.Mq=this.Lq=this.Kq=this.Oq=this.Nq=this.Fq=0;this.Ym=[];this.Hq=ic();this.Pg&&a.uniform1f(this.Pg,
1);this.jn&&a.uniform4f(this.jn,1,1,1,1);this.zq&&a.uniform1i(this.zq,0);this.si&&a.uniform1i(this.si,1);this.Pf&&a.uniform2f(this.Pf,0,0);this.Of&&a.uniform2f(this.Of,1,1);this.ri&&a.uniform1f(this.ri,1);this.qi&&a.uniform1f(this.qi,0);this.wi&&a.uniform2f(this.wi,0,0);this.ti&&a.uniform2f(this.ti,0,0);this.vi&&a.uniform1f(this.vi,0);this.Ef=!1}function t(a,c){return a[0]===c[0]&&a[1]===c[1]&&a[2]===c[2]&&a[3]===c[3]&&a[4]===c[4]&&a[5]===c[5]&&a[6]===c[6]&&a[7]===c[7]&&a[8]===c[8]&&a[9]===c[9]&&
a[10]===c[10]&&a[11]===c[11]&&a[12]===c[12]&&a[13]===c[13]&&a[14]===c[14]&&a[15]===c[15]}function r(a,c){this.type=a;this.C=c;this.A=c.A;this.Gd=this.Pb=this.nr=0;this.R=this.$c=null;this.as=[]}var p=ic();f.prototype.aq=function(){var a=this.A,c;this.sq=1;this.Jf=this.Ue=null;this.Ej=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Ca?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.tq=a.ONE;this.rq=a.ONE_MINUS_SRC_ALPHA;this.Bl=new Float32Array(8E3*(this.Ca?3:2));this.ml=new Float32Array(16E3);this.Br=new Float32Array(32E3);this.Jn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Jn);a.bufferData(a.ARRAY_BUFFER,this.Br.byteLength,a.DYNAMIC_DRAW);this.ej=Array(4);this.Zi=Array(4);for(c=0;4>c;c++)this.ej[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.ej[c]),a.bufferData(a.ARRAY_BUFFER,this.Bl.byteLength,a.DYNAMIC_DRAW),this.Zi[c]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Zi[c]),a.bufferData(a.ARRAY_BUFFER,this.ml.byteLength,a.DYNAMIC_DRAW);this.Xd=0;this.Vw=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Vw);for(var e=new Uint16Array(12E3),d=c=0;12E3>c;)e[c++]=d,e[c++]=d+1,e[c++]=d+2,e[c++]=d,e[c++]=d+2,e[c++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,e,a.STATIC_DRAW);this.Kn=this.hh=this.we=0;this.Na=[];c=this.Ca?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";e=this.Eh({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}"},c,"<default>");this.Na.push(e);e=this.Eh({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.Na.push(e);e=this.Eh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.Na.push(e);e=this.Eh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.Na.push(e);for(var b in mc)mc.hasOwnProperty(b)&&this.Na.push(this.Eh(mc[b],c,b));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Fe=[];this.Vd=0;this.Hb=!1;this.zp=this.li=-1;this.pg=null;this.om=a.createFramebuffer();this.Jj=this.Zk=null;this.op=!1;this.Ca&&(this.Jj=a.createRenderbuffer());this.lf=hc([0,0,0]);this.Pq=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Pq&&(this.Pq=2048);this.fc(0)};q.prototype.uo=function(a){t(this.Hq,a)||(jc(a,this.Hq),this.A.uniformMatrix4fv(this.Ak,
!1,a))};f.prototype.Eh=function(a,c,e){var d=this.A,b=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(b,a.src);d.compileShader(b);if(!d.getShaderParameter(b,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(b),d.deleteShader(b),Error("error compiling fragment shader: "+a);var g=d.createShader(d.VERTEX_SHADER);d.shaderSource(g,c);d.compileShader(g);if(!d.getShaderParameter(g,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(g),d.deleteShader(b),d.deleteShader(g),Error("error compiling vertex shader: "+a);c=
d.createProgram();d.attachShader(c,b);d.attachShader(c,g);d.linkProgram(c);if(!d.getProgramParameter(c,d.LINK_STATUS))throw a=d.getProgramInfoLog(c),d.deleteShader(b),d.deleteShader(g),d.deleteProgram(c),Error("error linking shader program: "+a);d.useProgram(c);d.deleteShader(b);d.deleteShader(g);b=new q(d,c,e);b.mm=a.mm||0;b.nm=a.nm||0;b.yp=!!a.yp;b.od=!!a.od;b.mp=!!a.mp;b.T=a.T||[];a=0;for(g=b.T.length;a<g;a++)b.T[a][1]=d.getUniformLocation(c,b.T[a][0]),b.Ym.push(0),d.uniform1f(b.T[a][1],0);return b};
f.prototype.Cm=function(a){var c,e;c=0;for(e=this.Na.length;c<e;c++)if(this.Na[c].name===a)return c;return-1};f.prototype.Fr=function(a,c,e){var d=this.Hc,b=this.Ek,g=[0,0,0,0,0,0,0,0];g[0]=d[0]*a+d[4]*c+d[12];g[1]=d[1]*a+d[5]*c+d[13];g[2]=d[2]*a+d[6]*c+d[14];g[3]=d[3]*a+d[7]*c+d[15];g[4]=b[0]*g[0]+b[4]*g[1]+b[8]*g[2]+b[12]*g[3];g[5]=b[1]*g[0]+b[5]*g[1]+b[9]*g[2]+b[13]*g[3];g[6]=b[2]*g[0]+b[6]*g[1]+b[10]*g[2]+b[14]*g[3];g[7]=-g[2];0!==g[7]&&(g[7]=1/g[7],g[4]*=g[7],g[5]*=g[7],g[6]*=g[7],e[0]=(.5*g[4]+
.5)*this.width,e[1]=(.5*g[5]+.5)*this.height)};f.prototype.Yf=function(a,c,e){if(this.width!==a||this.height!==c||e){this.Le();e=this.A;this.width=a;this.height=c;e.viewport(0,0,a,c);lc(this.Sl,this.Aq,this.Fs,this.Hc);if(this.Ca){var d=-a/2;a=a/2;var b=c/2;c=-c/2;var g=this.Dl,l=this.Eo,f=this.Ek;f||(f=ic());var w=a-d,h=c-b,k=l-g;f[0]=2/w;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/h;f[6]=0;f[7]=0;f[8]=0;f[9]=0;f[10]=-2/k;f[11]=0;f[12]=-(d+a)/w;f[13]=-(c+b)/h;f[14]=-(l+g)/k;f[15]=1;this.fj[0]=1;this.fj[1]=
1}else c=a/c,d=this.Dl,a=this.Eo,f=this.Ek,l=d*Math.tan(45*Math.PI/360),c*=l,b=-c,g=-l,f||(f=ic()),w=c-b,h=l-g,k=a-d,f[0]=2*d/w,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=2*d/h,f[6]=0,f[7]=0,f[8]=(c+b)/w,f[9]=(l+g)/h,f[10]=-(a+d)/k,f[11]=-1,f[12]=0,f[13]=0,f[14]=-(a*d*2)/k,f[15]=0,d=[0,0],a=[0,0],this.Fr(0,0,d),this.Fr(1,1,a),this.fj[0]=1/(a[0]-d[0]),this.fj[1]=-1/(a[1]-d[1]);d=0;for(a=this.Na.length;d<a;d++)b=this.Na[d],b.Ef=!1,b.yq&&(e.useProgram(b.Ti),e.uniformMatrix4fv(b.yq,!1,this.Ek));e.useProgram(this.Na[this.li].Ti);
e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE1);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE0);this.Jf=this.Ue=null;this.Jj&&(e.bindFramebuffer(e.FRAMEBUFFER,this.om),e.bindRenderbuffer(e.RENDERBUFFER,this.Jj),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,this.width,this.height),this.op||(e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,this.Jj),this.op=!0),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),
this.Zk=null)}};f.prototype.Xc=function(){lc(this.Sl,this.Aq,this.Fs,this.Hc);kc(this.Hc,this.fj)};f.prototype.translate=function(a,c){if(0!==a||0!==c){this.lf[0]=a;this.lf[1]=c;this.lf[2]=0;var e=this.Hc,d=this.lf,b=d[0],g=d[1],d=d[2];e[12]=e[0]*b+e[4]*g+e[8]*d+e[12];e[13]=e[1]*b+e[5]*g+e[9]*d+e[13];e[14]=e[2]*b+e[6]*g+e[10]*d+e[14];e[15]=e[3]*b+e[7]*g+e[11]*d+e[15]}};f.prototype.scale=function(a,c){if(1!==a||1!==c)this.lf[0]=a,this.lf[1]=c,this.lf[2]=1,kc(this.Hc,this.lf)};f.prototype.al=function(a){if(0!==
a){var c=this.Hc,e,d=Math.sin(a);a=Math.cos(a);var b=c[0],g=c[1],l=c[2],f=c[3],w=c[4],h=c[5],k=c[6],m=c[7];e?c!==e&&(e[8]=c[8],e[9]=c[9],e[10]=c[10],e[11]=c[11],e[12]=c[12],e[13]=c[13],e[14]=c[14],e[15]=c[15]):e=c;e[0]=b*a+w*d;e[1]=g*a+h*d;e[2]=l*a+k*d;e[3]=f*a+m*d;e[4]=b*-d+w*a;e[5]=g*-d+h*a;e[6]=l*-d+k*a;e[7]=f*-d+m*a}};f.prototype.Kc=function(){if(!t(this.Zm,this.Hc)){var a=this.tc();a.type=5;a.R?jc(this.Hc,a.R):a.R=ic(this.Hc);jc(this.Hc,this.Zm);this.Hb=!1}};f.prototype.el=function(a){this.Ca&&
(32760<a&&(a=32760),this.fm=this.Sl[2]-this.Dl-a*this.Oy)};r.prototype.kv=function(){var a=this.A,c=this.C;0!==this.Pb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,c.om),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),c.jk=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),c.jk=!1)};r.prototype.ov=function(){this.A.bindTexture(this.A.TEXTURE_2D,
this.$c)};r.prototype.pv=function(){var a=this.A;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.$c);a.activeTexture(a.TEXTURE0)};r.prototype.lv=function(){var a=this.nr,c=this.C;c.Ej=a;c=c.pg;c.Pg&&c.Dk!==a&&(c.Dk=a,this.A.uniform1f(c.Pg,a))};r.prototype.dv=function(){this.A.drawElements(this.A.TRIANGLES,this.Gd,this.A.UNSIGNED_SHORT,this.Pb)};r.prototype.hv=function(){this.A.blendFunc(this.Pb,this.Gd)};r.prototype.qv=function(){var a,c,e,d=this.C.Na,b=this.C.zp;a=0;for(c=d.length;a<
c;a++)e=d[a],a===b&&e.Ak?(e.uo(this.R),e.Ef=!0):e.Ef=!1;jc(this.R,this.C.em)};r.prototype.gv=function(){var a=this.A,c=this.C;this.$c?(c.Jf===this.$c&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),c.Jf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.om),c.jk||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.$c,0)):(c.Ca||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};
r.prototype.av=function(){var a=this.A,c=this.Pb;0===c?(a.clearColor(this.R[0],this.R[1],this.R[2],this.R[3]),a.clear(a.COLOR_BUFFER_BIT)):1===c?(a.enable(a.SCISSOR_TEST),a.scissor(this.R[0],this.R[1],this.R[2],this.R[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};r.prototype.jv=function(){var a=this.A;0!==this.Pb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};r.prototype.cv=function(){var a=this.A,c=this.C;c.Ca&&a.disable(a.DEPTH_TEST);
var e=c.Na[1];a.useProgram(e.Ti);!e.Ef&&e.Ak&&(e.uo(c.em),e.Ef=!0);a.enableVertexAttribArray(e.Tc);a.bindBuffer(a.ARRAY_BUFFER,c.Jn);a.vertexAttribPointer(e.Tc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Pb/4,this.Gd);e=c.pg;a.useProgram(e.Ti);0<=e.Tc&&(a.enableVertexAttribArray(e.Tc),a.bindBuffer(a.ARRAY_BUFFER,c.ej[c.Xd]),a.vertexAttribPointer(e.Tc,c.Ca?3:2,a.FLOAT,!1,0,0));0<=e.Xe&&(a.enableVertexAttribArray(e.Xe),a.bindBuffer(a.ARRAY_BUFFER,c.Zi[c.Xd]),a.vertexAttribPointer(e.Xe,2,a.FLOAT,!1,
0,0));c.Ca&&a.enable(a.DEPTH_TEST)};r.prototype.mv=function(){var a=this.A,c=this.C,e=c.Na[this.Pb];c.zp=this.Pb;c.pg=e;a.useProgram(e.Ti);!e.Ef&&e.Ak&&(e.uo(c.em),e.Ef=!0);e.Pg&&e.Dk!==c.Ej&&(e.Dk=c.Ej,a.uniform1f(e.Pg,c.Ej));0<=e.Tc&&(a.enableVertexAttribArray(e.Tc),a.bindBuffer(a.ARRAY_BUFFER,c.ej[c.Xd]),a.vertexAttribPointer(e.Tc,c.Ca?3:2,a.FLOAT,!1,0,0));0<=e.Xe&&(a.enableVertexAttribArray(e.Xe),a.bindBuffer(a.ARRAY_BUFFER,c.Zi[c.Xd]),a.vertexAttribPointer(e.Xe,2,a.FLOAT,!1,0,0))};r.prototype.iv=
function(){var a=this.R;this.A.uniform4f(this.C.pg.jn,a[0],a[1],a[2],a[3])};r.prototype.nv=function(){var a,c,e=this.C.pg,d=this.A;a=this.R;e.si&&this.C.Jf!==this.$c&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.$c),this.C.Jf=this.$c,d.activeTexture(d.TEXTURE0));var b=a[0];e.ln&&b!==e.Jq&&(e.Jq=b,d.uniform1f(e.ln,b));b=a[1];e.kn&&b!==e.Iq&&(e.Iq=b,d.uniform1f(e.kn,b));b=a[2];c=a[3];!e.Pf||b===e.Dq&&c===e.Eq||(e.Dq=b,e.Eq=c,d.uniform2f(e.Pf,b,c));b=a[4];c=a[5];!e.Of||b===e.Bq&&c===
e.Cq||(e.Bq=b,e.Cq=c,d.uniform2f(e.Of,b,c));b=a[6];e.ri&&b!==e.Gq&&(e.Gq=b,d.uniform1f(e.ri,b));b=a[7];e.qi&&b!==e.Fq&&(e.Fq=b,d.uniform1f(e.qi,b));b=a[8];c=a[9];!e.wi||b===e.Nq&&c===e.Oq||(e.Nq=b,e.Oq=c,d.uniform2f(e.wi,b,c));b=a[10];c=a[11];!e.ti||b===e.Kq&&c===e.Lq||(e.Kq=b,e.Lq=c,d.uniform2f(e.ti,b,c));b=a[12];e.vi&&b!==e.Mq&&(e.Mq=b,d.uniform1f(e.vi,b));if(e.T.length)for(a=0,c=e.T.length;a<c;a++)b=this.as[a],b!==e.Ym[a]&&(e.Ym[a]=b,d.uniform1f(e.T[a][1],b))};f.prototype.tc=function(){this.Vd===
this.Fe.length&&this.Fe.push(new r(0,this));return this.Fe[this.Vd++]};f.prototype.Le=function(){if(0!==this.Vd&&!this.A.isContextLost()){var a=this.A;0<this.Kn&&(a.bindBuffer(a.ARRAY_BUFFER,this.Jn),a.bufferSubData(a.ARRAY_BUFFER,0,this.Br.subarray(0,this.Kn)),c&&0<=c.Tc&&"<point>"===c.name&&a.vertexAttribPointer(c.Tc,4,a.FLOAT,!1,0,0));if(0<this.we){var c=this.pg;a.bindBuffer(a.ARRAY_BUFFER,this.ej[this.Xd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Bl.subarray(0,this.we));c&&0<=c.Tc&&"<point>"!==c.name&&
a.vertexAttribPointer(c.Tc,this.Ca?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Zi[this.Xd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.ml.subarray(0,this.hh));c&&0<=c.Xe&&"<point>"!==c.name&&a.vertexAttribPointer(c.Xe,2,a.FLOAT,!1,0,0)}for(var e,a=0,c=this.Vd;a<c;a++)switch(e=this.Fe[a],e.type){case 1:e.dv();break;case 2:e.ov();break;case 3:e.lv();break;case 4:e.hv();break;case 5:e.qv();break;case 6:e.gv();break;case 7:e.av();break;case 8:e.cv();break;case 9:e.mv();break;case 10:e.nv();break;
case 11:e.pv();break;case 12:e.iv();break;case 13:e.jv();break;case 14:e.kv()}this.Kn=this.hh=this.we=this.Vd=0;this.jk=this.Hb=!1;this.Xd++;4<=this.Xd&&(this.Xd=0)}};f.prototype.bh=function(a){if(a!==this.sq&&!this.$h){var c=this.tc();c.type=3;this.sq=c.nr=a;this.Hb=!1}};f.prototype.Jc=function(a){if(a!==this.Ue){var c=this.tc();c.type=2;this.Ue=c.$c=a;this.Hb=!1}};f.prototype.hf=function(a,c){if((a!==this.tq||c!==this.rq)&&!this.$h){var e=this.tc();e.type=4;e.Pb=a;e.Gd=c;this.tq=a;this.rq=c;this.Hb=
!1}};f.prototype.Rr=function(){this.hf(this.A.ONE,this.A.ONE_MINUS_SRC_ALPHA)};f.prototype.Mi=function(a,c,e,d,b,g,l,f){15992<=this.we&&this.Le();var w=this.we,h=this.hh,k=this.Bl,m=this.ml,F=this.fm;if(this.Hb)this.Fe[this.Vd-1].Gd+=6;else{var p=this.tc();p.type=1;p.Pb=this.Ca?w:w/2*3;p.Gd=6;this.Hb=!0}this.Ca?(k[w++]=a,k[w++]=c,k[w++]=F,k[w++]=e,k[w++]=d,k[w++]=F,k[w++]=b,k[w++]=g,k[w++]=F,k[w++]=l,k[w++]=f,k[w++]=F):(k[w++]=a,k[w++]=c,k[w++]=e,k[w++]=d,k[w++]=b,k[w++]=g,k[w++]=l,k[w++]=f);m[h++]=
0;m[h++]=0;m[h++]=1;m[h++]=0;m[h++]=1;m[h++]=1;m[h++]=0;m[h++]=1;this.we=w;this.hh=h};f.prototype.ef=function(a,c,e,d,b,g,l,f,w){15992<=this.we&&this.Le();var h=this.we,k=this.hh,m=this.Bl,F=this.ml,p=this.fm;if(this.Hb)this.Fe[this.Vd-1].Gd+=6;else{var q=this.tc();q.type=1;q.Pb=this.Ca?h:h/2*3;q.Gd=6;this.Hb=!0}var q=w.left,v=w.top,r=w.right;w=w.bottom;this.Ca?(m[h++]=a,m[h++]=c,m[h++]=p,m[h++]=e,m[h++]=d,m[h++]=p,m[h++]=b,m[h++]=g,m[h++]=p,m[h++]=l,m[h++]=f,m[h++]=p):(m[h++]=a,m[h++]=c,m[h++]=e,
m[h++]=d,m[h++]=b,m[h++]=g,m[h++]=l,m[h++]=f);F[k++]=q;F[k++]=v;F[k++]=r;F[k++]=v;F[k++]=r;F[k++]=w;F[k++]=q;F[k++]=w;this.we=h;this.hh=k};f.prototype.fc=function(a){if(this.li!==a){if(!this.Na[a]){if(0===this.li)return;a=0}var c=this.tc();c.type=9;this.li=c.Pb=a;this.Hb=!1}};f.prototype.Ji=function(a){a=this.Na[a];return!(!a.Pf&&!a.Of)};f.prototype.Nn=function(a){a=this.Na[a];return!!(a.Pf||a.Of||a.yp)};f.prototype.Mn=function(a){return this.Na[a].od};f.prototype.Tx=function(a){a=this.Na[a];return 0!==
a.mm||0!==a.nm};f.prototype.zw=function(a){return this.Na[a].mm};f.prototype.Aw=function(a){return this.Na[a].nm};f.prototype.Bw=function(a,c){return this.Na[a].T[c][2]};f.prototype.Uk=function(a){return this.Na[a].mp};f.prototype.dh=function(a,c,e,d,b,g,l,f,w,h,k,m,F,p,q){var v=this.Na[this.li],r,t;if(v.Sw||q.length){r=this.tc();r.type=10;r.R?jc(this.Hc,r.R):r.R=ic();t=r.R;t[0]=c;t[1]=e;t[2]=d;t[3]=b;t[4]=g;t[5]=l;t[6]=f;t[7]=w;t[8]=h;t[9]=k;t[10]=m;t[11]=F;t[12]=p;v.si?r.$c=a:r.$c=null;if(q.length)for(e=
r.as,e.length=q.length,a=0,c=q.length;a<c;a++)e[a]=q[a];this.Hb=!1}};f.prototype.clear=function(a,c,e,d){var b=this.tc();b.type=7;b.Pb=0;b.R||(b.R=ic());b.R[0]=a;b.R[1]=c;b.R[2]=e;b.R[3]=d;this.Hb=!1};f.prototype.clearRect=function(a,c,e,d){if(!(0>e||0>d)){var b=this.tc();b.type=7;b.Pb=1;b.R||(b.R=ic());b.R[0]=a;b.R[1]=c;b.R[2]=e;b.R[3]=d;this.Hb=!1}};f.prototype.Vr=function(a){if(this.Ca&&(a=!!a,this.$h!==a)){var c=this.tc();c.type=14;c.Pb=a?1:0;this.Hb=!1;this.$h=a;this.Zk=null;this.$h?this.fc(2):
this.fc(0)}};f.prototype.Tr=function(a){if(this.Ca){var c=this.tc();c.type=13;c.Pb=a?1:0;this.Hb=!1}};f.prototype.Mp=function(){jc(this.Zm,p);this.Xc();this.Kc();var a=this.width/2,c=this.height/2;this.Mi(-a,c,a,c,a,-c,-a,-c);jc(p,this.Hc);this.Kc()};f.prototype.Sr=function(a,c,e){this.fc(3);var d=this.tc();d.type=12;d.R||(d.R=ic());d.R[0]=a;d.R[1]=c;d.R[2]=e;d.R[3]=1;this.Hb=!1};f.prototype.ty=function(){this.fc(0)};f.prototype.$x=function(){this.fc(2)};f.prototype.Sx=function(){this.Le();this.A.flush()};
var v=[],g={};f.prototype.Qu=function(){M(v);g={}};f.prototype.xq=function(a,c,e){var d;d=!1;c=!!c;var b=a.src+","+d+","+c+(d?",undefined":""),f=null;if("undefined"!==typeof a.src&&g.hasOwnProperty(b))return f=g[b],f.wj++,f;this.Le();var l=this.A,u=ka(a.width)&&ka(a.height),f=l.createTexture();l.bindTexture(l.TEXTURE_2D,f);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var w=l.RGBA,h=l.RGBA,k=l.UNSIGNED_BYTE;if(e&&!this.he)switch(e){case 1:h=w=l.RGB;break;case 2:k=l.UNSIGNED_SHORT_4_4_4_4;break;
case 3:k=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:h=w=l.RGB,k=l.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!u&&d){e=document.createElement("canvas");e.width=la(a.width);e.height=la(a.height);var m=e.getContext("2d");"undefined"!==typeof m.imageSmoothingEnabled?m.imageSmoothingEnabled=c:(m.webkitImageSmoothingEnabled=c,m.mozImageSmoothingEnabled=c,m.msImageSmoothingEnabled=c);m.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);l.texImage2D(l.TEXTURE_2D,0,w,h,k,e)}else l.texImage2D(l.TEXTURE_2D,0,
w,h,k,a);d?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));c?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),(u||2<=this.version)&&this.Ep?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,
l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.Ue=null;f.uf=a.width;f.tf=a.height;f.wj=1;f.sp=b;v.push(f);return g[b]=f};f.prototype.zc=function(a,c,e,d){this.Le();var b=this.A;this.he&&(d=!1);var g=b.createTexture();b.bindTexture(b.TEXTURE_2D,g);b.texImage2D(b.TEXTURE_2D,0,b.RGBA,a,c,0,b.RGBA,d?b.UNSIGNED_SHORT_4_4_4_4:b.UNSIGNED_BYTE,null);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,
b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,e?b.LINEAR:b.NEAREST);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,e?b.LINEAR:b.NEAREST);b.bindTexture(b.TEXTURE_2D,null);this.Ue=null;g.uf=a;g.tf=c;v.push(g);return g};f.prototype.Ly=function(a,c,e){this.Le();var d=this.A;this.he&&(e=!1);d.bindTexture(d.TEXTURE_2D,c);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,
e?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(b){console&&console.error&&console.error("Error updating WebGL texture: ",b)}d.bindTexture(d.TEXTURE_2D,null);this.Ue=null};f.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.wj&&1<a.wj?a.wj--:(this.Le(),a===this.Ue&&(this.A.bindTexture(this.A.TEXTURE_2D,null),this.Ue=null),a===this.Jf&&(this.A.activeTexture(this.A.TEXTURE1),this.A.bindTexture(this.A.TEXTURE_2D,null),this.A.activeTexture(this.A.TEXTURE0),this.Jf=null),Da(v,a),"undefined"!==
typeof a.sp&&delete g[a.sp],this.A.deleteTexture(a)))};f.prototype.Yc=function(a){if(a!==this.Zk){var c=this.tc();c.type=6;this.Zk=c.$c=a;this.Hb=!1}};lb=f})();
(function(){function f(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var d=this;this.Fc=(this.kk=/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.Ib=!!a.dc;this.hq="undefined"!==typeof window.AppMobi||
this.Ib;this.Rc=!!window.c2cocoonjs;this.ld=!!window.c2ejecta;this.Rc&&(CocoonJS.App.onSuspended.addEventListener(function(){d.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){d.setSuspended(!1)}));this.ld&&(document.addEventListener("pagehide",function(){d.setSuspended(!0)}),document.addEventListener("pageshow",function(){d.setSuspended(!1)}),document.addEventListener("resize",function(){d.setSize(window.innerWidth,window.innerHeight)}));this.Fa=this.Ib||this.Rc||this.ld;this.bi=
/edge\//i.test(navigator.userAgent);this.he=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.bi;this.kq=/tizen/i.test(navigator.userAgent);this.Zh=/android/i.test(navigator.userAgent)&&!this.kq&&!this.he&&!this.bi;this.oq=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.he&&!this.bi;this.mx=/ipad/i.test(navigator.userAgent);this.Jg=this.oq||this.mx||this.ld;this.Pm=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.he&&!this.bi;this.gq=/amazonwebappplatform/i.test(navigator.userAgent);this.ax=/firefox/i.test(navigator.userAgent);this.gx=/safari/i.test(navigator.userAgent)&&!this.Pm&&!this.he&&!this.bi;this.hx=/windows/i.test(navigator.userAgent);this.Sm="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.mq=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.jx=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.ei=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Vm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.nk=!!window.cr_windows10;this.lq=this.mq||this.jx||this.Vm||this.nk;this.$w=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.ik=this.Zh&&!this.Pm&&!this.kk&&!this.ax&&!this.gq&&!this.Fa;this.devicePixelRatio=
1;this.ie=this.Fc||this.kk||this.hq||this.Rc||this.Zh||this.Jg||this.ei||this.Vm||this.$w||this.kq||this.ld;this.ie||(this.ie=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.mk=!!(this.Jg&&this.Fc&&window.webkit);"undefined"===typeof cr_is_preview||this.Sm||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Sm=!0);this.canvas=a;this.up=document.getElementById("c2canvasdiv");
this.C=this.A=null;this.Dm="(unavailable)";this.Ca=!1;this.zf=0;this.Ka=null;this.Sj=!1;this.fr=this.gr=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Ib&&(window.c2runtime=this);this.Sm&&(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.ik&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.J=this.width;this.I=this.height;this.Cj=this.width;this.Gh=this.height;this.Ng=window.innerWidth;this.Mg=window.innerHeight;this.ta=!0;this.di=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.u=[];this.Ja=[];this.cn={};this.nd=[];this.lm={};
this.be=[];this.nh=[];this.ul=[];this.Ml=[];this.yu=[];this.qq=this.ls=null;this.wf={};this.Rm=this.Pe=!1;this.md=0;this.Qm=this.Um=!1;this.jd=[];this.ai=!1;this.wk=this.Zn="";this.gb=null;this.je="";this.Wi=this.es=!1;this.Rj=[];this.yf=this.xf=0;this.Uq=30;this.cm=this.xi=0;this.dg=1;this.wb=new bb;this.xe=new bb;this.Ik=this.Xj=this.Lh=this.ud=this.Lf=this.rm=this.rk=0;this.Yl=null;this.Lj=[];this.km=[];this.Nj=-1;this.mn=[[]];this.po=this.Bk=0;this.Wk(null);this.$q=this.Ci=0;this.bn=!0;this.Mh=
0;this.Xi=[];this.mo=this.Qn=-1;this.qk=!0;this.zk=0;this.lk=!1;this.wy=0;this.kg=null;this.Va=this.ek=!1;this.er=new da;this.un=new da;this.vn=new da;this.Wf=[];this.td=new db([]);this.ko=new db([]);this.jg=[];this.Uh={};this.He={};this.De={};this.mh={};this.pp={};this.wq=this.vk=this.Wa=this.fb=this.vq=this.uk=this.ua=null;this.kh=this.Wm=!1;this.tm=[null,null];this.yg=0;this.pm="";this.me={};this.Ui=this.Ve=null;this.gs="";this.Hk=[];this.Zx()}}function q(a,d){return 128>=d?a[3]:256>=d?a[2]:512>=
d?a[1]:a[0]}function t(){try{return!!window.indexedDB}catch(a){return!1}}function r(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function p(a,d,b,k){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=r;c.onerror=k;c.onsuccess=function(c){c=c.target.result;c.onerror=k;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=b}}catch(m){k(m)}}function v(a,d,b){try{var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=r;k.onerror=b;k.onsuccess=
function(k){k=k.target.result;k.onerror=b;var c=k.transaction(["saves"]).objectStore("saves").get(a);c.onsuccess=function(){c.result?d(c.result.data):d(null)}}}catch(c){b(c)}}function g(){fa("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var d,b={};for(d in a)!a.hasOwnProperty(d)||a[d]instanceof da||a[d]&&"undefined"!==typeof a[d].Tz||
"spriteCreatedDestroyCallback"!==d&&(b[d]=a[d]);return b}var c=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.Zx=function(){var a=this;if(this.mk)this.ew(function(d){a.pi(JSON.parse(d))},function(){alert("Error fetching data.js")});else{var d;this.ei?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;var b="data.js";if(this.mq||this.ei||this.Vm||this.nk)b="data.json";
d.open("GET",b,!0);var k=!1;if(!this.Fa&&"response"in d&&"responseType"in d)try{d.responseType="json",k="json"===d.responseType}catch(c){k=!1}if(!k&&"responseType"in d)try{d.responseType="text"}catch(m){}if("overrideMimeType"in d)try{d.overrideMimeType("application/json; charset=utf-8")}catch(h){}this.ei?d.onreadystatechange=function(){4===d.readyState&&a.pi(JSON.parse(d.responseText))}:(d.onload=function(){if(k)a.pi(d.response);else if(a.ld){var b=d.responseText,b=b.substr(b.indexOf("{"));a.pi(JSON.parse(b))}else a.pi(JSON.parse(d.responseText))},
d.onerror=function(a){ga("Error requesting "+b+":");ga(a)});d.send()}};f.prototype.Ww=function(){var a=this,d,b,k,c,m,h,e,g,l;this.If=(!this.Fa||this.ld||this.Fc)&&this.Iy&&!this.ik;0===this.Nb&&this.Jg&&(this.If=!1);this.devicePixelRatio=this.If?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&window.StatusBar.hide();this.Db();0<this.Nb&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",
function(d){d.preventDefault();a.Ax();fa("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.C.aq();a.C.Yf(a.C.width,a.C.height,!0);a.fb=null;a.Wa=null;a.tm[0]=null;a.tm[1]=null;a.Bx();a.ta=!0;fa("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.yv&&(this.Rc||this.ld||!this.Fa)&&(d={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.Zh||
(this.A=this.canvas.getContext("webgl2",d)),this.A||(this.A=this.canvas.getContext("webgl",d)||this.canvas.getContext("experimental-webgl",d)))}catch(f){}if(this.A){if(d=this.A.getExtension("WEBGL_debug_renderer_info"))this.Dm=this.A.getParameter(d.UNMASKED_RENDERER_WEBGL)+" ["+this.A.getParameter(d.UNMASKED_VENDOR_WEBGL)+"]";this.Ca&&(this.Dm+=" [front-to-back enabled]");this.Fa||(this.yb=document.createElement("canvas"),jQuery(this.yb).appendTo(this.canvas.parentNode),this.yb.oncontextmenu=function(){return!1},
this.yb.onselectstart=function(){return!1},this.yb.width=Math.round(this.Cj*this.devicePixelRatio),this.yb.height=Math.round(this.Gh*this.devicePixelRatio),jQuery(this.yb).css({width:this.Cj+"px",height:this.Gh+"px"}),this.Cr(),this.Gn=this.yb.getContext("2d"));this.C=new lb(this.A,this.ie,this.Ca);this.C.Yf(this.canvas.width,this.canvas.height);this.C.Ep=0!==this.rv;this.Ka=null;d=0;for(b=this.u.length;d<b;d++)for(m=this.u[d],k=0,c=m.N.length;k<c;k++)e=m.N[k],e.Za=this.C.Cm(e.id),e.od=this.C.Mn(e.Za),
this.kh=this.kh||this.C.Ji(e.Za);d=0;for(b=this.nd.length;d<b;d++){g=this.nd[d];k=0;for(c=g.N.length;k<c;k++)e=g.N[k],e.Za=this.C.Cm(e.id),e.od=this.C.Mn(e.Za);g.wd();k=0;for(c=g.O.length;k<c;k++){l=g.O[k];m=0;for(h=l.N.length;m<h;m++)e=l.N[m],e.Za=this.C.Cm(e.id),e.od=this.C.Mn(e.Za),this.kh=this.kh||this.C.Ji(e.Za);l.wd()}}}else{if(0<this.Nb&&this.Ib){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ka=AppMobi.canvas.getContext("2d");
try{this.Ka.samplingMode=this.Oa?"smooth":"sharp",this.Ka.globalScale=1,this.Ka.HTML5CompatibilityMode=!0,this.Ka.imageSmoothingEnabled=this.Oa}catch(x){}0!==this.width&&0!==this.height&&(this.Ka.width=this.width,this.Ka.height=this.height)}this.Ka||(this.Rc?(d={antialias:!!this.Oa,alpha:!0},this.Ka=this.canvas.getContext("2d",d)):(d={alpha:!0},this.Ka=this.canvas.getContext("2d",d)),this.dl(this.Ka,this.Oa));this.Gn=this.yb=null}this.xs=function(d){a.$a(!1,d)};window==window.top||this.Fa||this.lq||
this.ei||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Rc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(fa("Reloading for continuous preview"),this.wk="__c2_continuouspreview",this.Wi=!0),this.Kx&&!this.ie&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var d=
window.parent;d&&d.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.bf()});this.Fa||(d=function(a){if(kb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(d){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",d):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",d):document.addEventListener("touchstart",
d),document.addEventListener("mousedown",d));0===this.Nb&&this.If&&1<this.devicePixelRatio&&this.setSize(this.Qa,this.Pa,!0);this.Cs();this.Pw();this.go();this.H={}};f.prototype.setSize=function(a,d,b){var k=0,c=0,m=0,e=0,e=0;if(this.Ng!==a||this.Mg!==d||b){this.Ng=a;this.Mg=d;var h=this.Nb;if((m=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.lk)&&!this.Fc)||0!==this.Nb||b)m&&(h=this.yg),b=this.devicePixelRatio,4<=h?(5===h&&1!==b&&(a+=
1,d+=1),m=this.Qa/this.Pa,a/d>m?(m*=d,5===h?(e=m*b/this.Qa,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),m=this.Qa*e/b,e=this.Pa*e/b,k=(a-m)/2,c=(d-e)/2,a=m,d=e):(k=(a-m)/2,a=m)):(e=a/m,5===h?(e=e*b/this.Pa,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),m=this.Qa*e/b,e=this.Pa*e/b,k=(a-m)/2,c=(d-e)/2,a=m):c=(d-e)/2,d=e)):m&&0===h&&(k=Math.floor((a-this.Qa)/2),c=Math.floor((d-this.Pa)/2),a=this.Qa,d=this.Pa),2>h&&(this.zh=b),this.Cj=Math.round(a),this.Gh=Math.round(d),this.width=Math.round(a*b),this.height=
Math.round(d*b),this.ta=!0,this.Ns?(this.J=this.width,this.I=this.height,this.Bc=!0):this.width<this.Qa&&this.height<this.Pa||1===h?(this.J=this.width,this.I=this.height,this.Bc=!0):(this.J=this.Qa,this.I=this.Pa,this.Bc=!1,2===h?(m=this.Qa/this.Pa,h=this.Ng/this.Mg,h<m?this.J=this.I*h:h>m&&(this.I=this.J/h)):3===h&&(m=this.Qa/this.Pa,h=this.Ng/this.Mg,h>m?this.J=this.I*h:h<m&&(this.I=this.J/h))),this.up&&!this.Fa&&(jQuery(this.up).css({width:Math.round(a)+"px",height:Math.round(d)+"px","margin-left":Math.floor(k)+
"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(d)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(d*b),this.ld?(this.canvas.style.left=Math.floor(k)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px"):this.If&&!this.Fa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=
Math.round(d)+"px")),this.yb&&(this.yb.width=Math.round(a*b),this.yb.height=Math.round(d*b),this.yb.style.width=this.Cj+"px",this.yb.style.height=this.Gh+"px"),this.C&&this.C.Yf(Math.round(a*b),Math.round(d*b)),this.Ib&&this.Ka&&(this.Ka.width=Math.round(a),this.Ka.height=Math.round(d)),this.Ka&&this.dl(this.Ka,this.Oa),this.Cs(),this.oq&&!this.Fc&&window.scrollTo(0,0)}};f.prototype.Cs=function(){if(this.Eu&&0!==this.Fn){var a="portrait";2===this.Fn&&(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(d){console&&console.warn&&console.warn("Failed to lock orientation: ",d)}}};f.prototype.Ax=function(){this.C.Qu();this.Wm=!0;var a,d,b;a=0;for(d=this.u.length;a<d;a++)b=this.u[a],b.zn&&b.zn()};f.prototype.Bx=function(){this.Wm=!1;
var a,d,b;a=0;for(d=this.u.length;a<d;a++)b=this.u[a],b.kr&&b.kr()};f.prototype.Cr=function(){if(!this.Fa){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.lk)&&!this.Fc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.yb).css(a)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;
f.prototype.setSuspended=function(a){var d;if(a&&!this.di)for(fa("[Construct 2] Suspending"),this.di=!0,-1!==this.Qn&&e&&e(this.Qn),-1!==this.mo&&clearTimeout(this.mo),a=0,d=this.Xi.length;a<d;a++)this.Xi[a](!0);else if(!a&&this.di){fa("[Construct 2] Resuming");this.di=!1;this.rk=Wa();this.Lf=Wa();a=this.xi=this.Xj=0;for(d=this.Xi.length;a<d;a++)this.Xi[a](!1);this.$a(!1)}};f.prototype.ip=function(a){this.Xi.push(a)};f.prototype.Ae=function(a){return this.Hk[a]};f.prototype.pi=function(a){a&&a.project||
ga("Project model unavailable");a=a.project;this.name=a[0];this.Lp=a[1];this.Nb=a[12];this.Qa=a[10];this.Pa=a[11];this.ur=this.Qa/2;this.xr=this.Pa/2;this.Fa&&!this.ld&&(4<=a[12]||0===a[12])&&(fa("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Nb=3);this.wo=a[18];this.We=a[19];if(0===this.We){var d=new Image;d.crossOrigin="anonymous";this.Wr(d,"loading-logo.png");this.Ve={Ck:d}}else if(4===this.We){d=new Image;d.src="";var b=
new Image;b.src="";var k=new Image;k.src="";var c=new Image;c.src="";var m=new Image;m.src="";var e=new Image;e.src="";var h=new Image;h.src="";var g=new Image;g.src="";var l=new Image;l.src="";var f=new Image;f.src="";var x=new Image;x.src="";var w=new Image;w.src="";this.Ve={Ck:[d,b,k,c],Px:[m,e,h,g],Ny:[l,f,x,w]}}this.Ci=a[21];this.Hk=nc();this.Pd=new W(this);d=0;for(b=a[2].length;d<b;d++)h=a[2][d],k=this.Ae(h[0]),mb(h,k.prototype),g=new k(this),g.hl=h[1],g.Re=h[2],g.Zz=h[5],g.Wq=h[9],g.S&&g.S(),
this.plugins.push(g);this.Hk=nc();d=0;for(b=a[3].length;d<b;d++){h=a[3][d];m=this.Ae(h[1]);g=null;k=0;for(c=this.plugins.length;k<c;k++)if(this.plugins[k]instanceof m){g=this.plugins[k];break}l=new g.za(g);l.name=h[0];l.P=h[2];l.Nm=h[3].slice(0);l.Ky=h[3].length;l.Fu=h[4];l.mw=h[5];l.W=h[11];l.P?(l.Rf=[],l.de=this.Mh++,l.Ga=null):(l.Rf=null,l.de=-1,l.Ga=[]);l.Pj=null;l.wg=null;l.Fp=null;l.Xb=!1;l.kc=null;h[6]?(l.us=h[6][0],l.vs=h[6][1],l.Ay=h[6][2]):(l.us=null,l.vs=0,l.Ay=0);h[7]?l.jc=h[7]:l.jc=null;
l.index=d;l.i=[];l.Hj=[];l.te=[new pb(l)];l.Bd=0;l.Oc=null;l.Wu=0;l.gh=!0;l.wl=qb;l.Tp=rb;l.xw=sb;l.ea=tb;l.Li=ub;l.Vk=vb;l.Vf=wb;l.Zj=xb;l.vm=yb;l.xm=zb;l.fd=Ab;l.zm=Bb;l.zj=new eb(this.Qa,this.Pa);l.qj=!0;l.rj=!1;l.H={};l.toString=Cb;l.Ja=[];k=0;for(c=h[8].length;k<c;k++){f=h[8][k];x=this.Ae(f[1]);w=null;m=0;for(e=this.Ja.length;m<e;m++)if(this.Ja[m]instanceof x){w=this.Ja[m];break}w||(w=new x(this),w.Gk=[],w.rn=new da,w.S&&w.S(),this.Ja.push(w),fc.ks&&w instanceof fc.ks&&(this.ls=w),fc.ox&&w instanceof
fc.ox&&(this.qq=w));-1===w.Gk.indexOf(l)&&w.Gk.push(l);m=new w.za(w,l);m.name=f[0];m.W=f[2];m.S();l.Ja.push(m)}l.global=h[9];l.Tm=h[10];l.N=[];k=0;for(c=h[12].length;k<c;k++)l.N.push({id:h[12][k][0],name:h[12][k][1],Za:-1,od:!1,xc:!0,index:k});l.pA=h[13];this.wo&&!l.P&&!l.Tm&&g.Re||l.S();l.name&&(this.types[l.name]=l);this.u.push(l);g.hl&&(k=new g.na(l),k.uid=this.Ci++,k.Hr=this.$q++,k.Gf=0,k.Sh=Fb,k.toString=Gb,k.F=h[14],k.S(),l.i.push(k),this.me[k.uid.toString()]=k)}d=0;for(b=a[4].length;d<b;d++)for(m=
a[4][d],e=this.u[m[0]],k=1,c=m.length;k<c;k++)h=this.u[m[k]],h.Ga.push(e),e.Rf.push(h);d=0;for(b=a[28].length;d<b;d++){m=a[28][d];e=[];k=0;for(c=m.length;k<c;k++)e.push(this.u[m[k]]);k=0;for(c=e.length;k<c;k++)e[k].Xb=!0,e[k].kc=e}if(0<this.Mh)for(d=0,b=this.u.length;d<b;d++)if(h=this.u[d],!h.P&&h.Ga.length){h.Pj=Array(this.Mh);h.wg=Array(this.Mh);h.Fp=Array(this.Mh);l=[];k=w=x=f=0;for(c=h.Ga.length;k<c;k++)for(g=h.Ga[k],h.Pj[g.de]=f,f+=g.Ky,h.wg[g.de]=x,x+=g.Fu,h.Fp[g.de]=w,w+=g.mw,m=0,e=g.N.length;m<
e;m++)l.push(xa({},g.N[m]));h.N=l.concat(h.N);k=0;for(c=h.N.length;k<c;k++)h.N[k].index=k}d=0;for(b=a[5].length;d<b;d++)h=a[5][d],k=new Hb(this,h),this.cn[k.name]=k,this.nd.push(k);d=0;for(b=a[6].length;d<b;d++)h=a[6][d],k=new Ib(this,h),this.lm[k.name]=k,this.be.push(k);d=0;for(b=this.be.length;d<b;d++)this.be[d].Ra();d=0;for(b=this.be.length;d<b;d++)this.be[d].to();d=0;for(b=this.ul.length;d<b;d++)this.ul[d].Ra();M(this.ul);this.Du=a[7];this.pm=a[8];this.oe=a[9];this.zh=1;this.yv=a[13];this.Oa=
a[14];this.vp=a[15];this.Iy=a[17];this.Fn=a[20];this.Eu=0<this.Fn;this.Kx=a[22];this.Bc=this.Ns=a[23];this.rv=a[24];this.Qx=a[25];this.Ca=a[27]&&!this.he;this.il=Date.now();M(this.Hk);this.Ww()};var d=!1,b=0,x=[];f.prototype.Vx=function(a,d){function k(){b--;c.Qq()}var c=this;a.addEventListener("load",k);a.addEventListener("error",k);x.push([a,d]);this.Qq()};f.prototype.Qq=function(){for(var a;x.length&&100>b;)b++,a=x.shift(),this.Wr(a[0],a[1])};f.prototype.My=function(a,b){a.cocoonLazyLoad=!0;a.onerror=
function(b){d=a.rp=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.ld?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(d){a.src=d},function(k){d=a.rp=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",k)}):(a.crossOrigin="anonymous",this.Vx(a,b)));this.nh.push(a)};f.prototype.gw=function(a){var d,b;d=0;for(b=this.nh.length;d<b;d++)if(this.nh[d].Su===a)return this.nh[d];return null};var l=0,
u=!1;f.prototype.Pw=function(){this.kg&&(l=this.kg.qy(this.Du))};f.prototype.np=function(){var a=l,d=0,b=0,k=!0,c,m,b=0;for(c=this.nh.length;b<c;b++){m=this.nh[b];var h=m.Ru;if(!h||0>=h)h=5E4;a+=h;m.src&&(m.complete||m.loaded)&&!m.rp?d+=h:k=!1}k&&this.Qx&&this.kg&&(u||(this.kg.xy(),u=!0),b=this.kg.yw(),d+=b,b<l&&(k=!1));this.qd=0==a?1:d/a;return k};var w=!1;f.prototype.go=function(){if(this.Ka||this.C){var a=this.Ka||this.Gn;this.yb&&this.Cr();var b=window.innerWidth,k=window.innerHeight;this.Ng===
b&&this.Mg===k||this.setSize(b,k);this.qd=0;this.uq=-1;var m=this;if(this.np()&&(4!==this.We||w))this.Qw();else{k=Date.now()-this.il;if(a){var h=this.width,e=this.height,b=this.devicePixelRatio;if(3>this.We&&(this.Rc||500<=k&&this.uq!=this.qd)){a.clearRect(0,0,h,e);var k=h/2,e=e/2,h=0===this.We&&this.Ve.Ck.complete,l=40*b,g=0,f=80*b,x;if(h){var u=this.Ve.Ck,f=u.width*b;x=u.height*b;l=f/2;g=x/2;a.drawImage(u,C(k-l),C(e-g),f,x)}1>=this.We?(k=C(k-l)+.5,e=C(e+(g+(h?12*b:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",
a.fillRect(k,e,Math.floor(f*this.qd),6*b),a.strokeStyle="black",a.strokeRect(k,e,f,6*b),a.strokeStyle="white",a.strokeRect(k-1*b,e-1*b,f+2*b,8*b)):2===this.We&&(a.font=this.ld?"12pt ArialMT":"12pt Arial",a.fillStyle=d?"#f00":"#999",a.oA="middle",b=Math.round(100*this.qd)+"%",h=a.measureText?a.measureText(b):null,a.fillText(b,k-(h?h.width:0)/2,e));this.uq=this.qd}else if(4===this.We){this.wv(a);c?c(function(){m.go()}):setTimeout(function(){m.go()},16);return}}setTimeout(function(){m.go()},this.Rc?
10:100)}}};var h=-1,k="undefined"===typeof cr_is_preview?200:0,m=!0,F=!1,aa=0,V=0,R="undefined"===typeof cr_is_preview?3E3:0,D=null,E=null,G=0;f.prototype.wv=function(a){if(!w){for(var b=Math.ceil(this.width),c=Math.ceil(this.height),e=this.Ve.Ck,l=this.Ve.Px,g=this.Ve.Ny,f=0;4>f;++f)if(!e[f].complete||!l[f].complete||!g[f].complete)return;0===G&&(h=Date.now());var f=Date.now(),x=!1,u=a,p,r;m||F?(a.clearRect(0,0,b,c),D&&D.width===b&&D.height===c||(D=document.createElement("canvas"),D.width=b,D.height=
c,E=D.getContext("2d")),u=E,x=!0,m&&1===G&&(h=Date.now())):a.globalAlpha=1;u.fillStyle="#333333";u.fillRect(0,0,b,c);256<this.Gh?(p=Fa(.22*c,105,.6*b),r=.25*p,u.drawImage(q(l,p),.5*b-p/2,.2*c-r/2,p,r),r=p=Math.min(.395*c,.95*b),u.drawImage(q(e,p),.5*b-p/2,.485*c-r/2,p,r),p=Fa(.22*c,105,.6*b),r=.25*p,u.drawImage(q(g,p),.5*b-p/2,.868*c-r/2,p,r),u.fillStyle="#3C3C3C",p=b,r=Math.max(.005*c,2),u.fillRect(0,.8*c-r/2,p,r),u.fillStyle=d?"red":"#E0FF65",p=b*this.qd,u.fillRect(.5*b-p/2,.8*c-r/2,p,r)):(r=p=
.55*c,u.drawImage(q(e,p),.5*b-p/2,.45*c-r/2,p,r),u.fillStyle="#3C3C3C",p=b,r=Math.max(.005*c,2),u.fillRect(0,.85*c-r/2,p,r),u.fillStyle=d?"red":"#E0FF65",p=b*this.qd,u.fillRect(.5*b-p/2,.85*c-r/2,p,r));x&&(m?a.globalAlpha=0===G?0:Math.min((f-h)/300,1):F&&(a.globalAlpha=Math.max(1-(f-V)/300,0)),a.drawImage(D,0,0,b,c));m&&300<=f-h&&2<=G&&(m=!1,aa=f);!m&&f-aa>=R&&!F&&1<=this.qd&&(F=!0,V=f);if(F&&f-V>=300+k||"undefined"!==typeof cr_is_preview&&1<=this.qd&&500>Date.now()-h)w=!0,F=m=!1,this.Ve=E=D=null;
++G}};f.prototype.Qw=function(){this.yb&&(this.canvas.parentNode.removeChild(this.yb),this.yb=this.Gn=null);this.il=Date.now();this.Lf=Wa();var a,d,b;if(this.wo)for(a=0,d=this.u.length;a<d;a++)b=this.u[a],b.P||b.Tm||!b.Aa.Re||b.S();else this.qk=!1;a=0;for(d=this.nd.length;a<d;a++)this.nd[a].Tu();2<=this.Nb&&(a=this.Qa/this.Pa,d=this.width/this.height,this.zh=2!==this.Nb&&d>a||2===this.Nb&&d<a?this.height/this.Pa:this.width/this.Qa);this.Lp?this.cn[this.Lp].io():this.nd[0].io();this.wo||(this.zk=1,
this.trigger(W.prototype.j.Ro,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(d=this.u.length;a<d;a++)b=this.u[a],b.hr&&b.hr();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.$a(!1);this.Ib&&AppMobi.webview.execute("onGameReady();")};f.prototype.$a=function(a,d,b){if(this.ua){var k=Wa();if(b||!this.di||a){a||(c?this.Qn=c(this.xs):this.mo=setTimeout(this.xs,
this.ie?1:16));d=d||k;var m=this.Nb;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Fc)||this.lk)&&0<this.yg&&(m=this.yg);if(0<m){var m=window.innerWidth,h=window.innerHeight;this.Ng===m&&this.Mg===h||this.setSize(m,h)}this.Fa||(b?this.Sj||(this.Sj=!0):this.Sj?(this.Sj=!1,0===this.Nb&&this.setSize(Math.round(this.gr/this.devicePixelRatio),Math.round(this.fr/this.devicePixelRatio),!0)):(this.gr=this.width,this.fr=this.height));this.qk&&
(b=this.np(),this.zk=this.qd,b&&(this.qk=!1,this.qd=1,this.trigger(W.prototype.j.Ro,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.ux(d);!this.ta&&!this.Rc||this.Wm||this.Wi||a||(this.ta=!1,this.C?this.Qc():this.ae(),this.Ui&&(this.canvas&&this.canvas.toDataURL&&(this.gs=this.canvas.toDataURL(this.Ui[0],this.Ui[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.gs),this.trigger(W.prototype.j.zt,null)),this.Ui=null));this.Xz||(this.ud++,this.Lh++,this.Xj++);this.xi+=Wa()-k}}};f.prototype.ux=
function(a){var d,b,k,c,m,h,e,l;1E3<=a-this.Lf&&(this.Lf+=1E3,1E3<=a-this.Lf&&(this.Lf=a),this.rm=this.Xj,this.Xj=0,this.cm=this.xi,this.xi=0);d=0;0!==this.rk&&(d=a-this.rk,0>d&&(d=0),this.yf=d/=1E3,.5<this.yf?this.yf=0:this.yf>1/this.Uq&&(this.yf=1/this.Uq));this.rk=a;this.xf=this.yf*this.dg;this.wb.add(this.xf);this.xe.add(d);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.lk)&&!this.Fc;2<=this.Nb||a&&0<this.yg?(d=this.Qa/this.Pa,
b=this.width/this.height,k=this.Nb,a&&0<this.yg&&(k=this.yg),this.zh=2!==k&&b>d||2===k&&b<d?this.height/this.Pa:this.width/this.Qa,this.ua&&(this.ua.Pr(this.ua.scrollX),this.ua.Qr(this.ua.scrollY))):this.zh=this.If?this.devicePixelRatio:1;this.Db();this.md++;this.Pd.ey();this.md--;this.Db();this.md++;b=this.er.nf();a=0;for(d=b.length;a<d;a++)b[a].hA();a=0;for(d=this.u.length;a<d;a++)if(h=this.u[a],!h.P&&(h.Ja.length||h.Ga.length))for(b=0,k=h.i.length;b<k;b++)for(e=h.i[b],c=0,m=e.M.length;c<m;c++)e.M[c].$a();
a=0;for(d=this.u.length;a<d;a++)if(h=this.u[a],!h.P&&(h.Ja.length||h.Ga.length))for(b=0,k=h.i.length;b<k;b++)for(e=h.i[b],c=0,m=e.M.length;c<m;c++)l=e.M[c],l.Dr&&l.Dr();b=this.un.nf();a=0;for(d=b.length;a<d;a++)b[a].$a();this.md--;this.Rw();for(a=0;this.Yl&&10>a++;)this.Dp(this.Yl);a=0;for(d=this.be.length;a<d;a++)this.be[a].Hm=!1;this.ua.Af&&this.ua.Af.Ya();M(this.Wf);this.bn=!1;this.md++;a=0;for(d=this.u.length;a<d;a++)if(h=this.u[a],!h.P&&(h.Ja.length||h.Ga.length))for(b=0,k=h.i.length;b<k;b++)for(e=
h.i[b],c=0,m=e.M.length;c<m;c++)l=e.M[c],l.pl&&l.pl();b=this.vn.nf();a=0;for(d=b.length;a<d;a++)b[a].pl();this.md--};f.prototype.bf=function(){var a,d,b,k,c,m,h,e,l;a=0;for(d=this.u.length;a<d;a++)if(h=this.u[a],!h.P)for(b=0,k=h.i.length;b<k;b++)if(e=h.i[b],e.bf&&e.bf(),e.M)for(c=0,m=e.M.length;c<m;c++)l=e.M[c],l.bf&&l.bf()};f.prototype.Dp=function(a){var d=this.ua;this.ua.yy();var b,k,c;if(this.C)for(b=0,k=this.u.length;b<k;b++)c=this.u[b],c.P||!c.Es||c.global&&0!==c.i.length||-1!==a.Xh.indexOf(c)||
c.Es();d==a&&M(this.Pd.wc);M(this.Wf);this.Mr(!0);a.io();this.Mr(!1);this.bn=this.ta=!0;this.Db()};f.prototype.Mr=function(a){var d,b,k,c,m,h,e,l,g;d=0;for(b=this.Ja.length;d<b;d++)k=this.Ja[d],a?k.Di&&k.Di():k.Fi&&k.Fi();d=0;for(b=this.u.length;d<b;d++)if(k=this.u[d],k.global||k.Aa.hl)for(c=0,m=k.i.length;c<m;c++)if(h=k.i[c],a?h.Di&&h.Di():h.Fi&&h.Fi(),h.M)for(e=0,l=h.M.length;e<l;e++)g=h.M[e],a?g.Di&&g.Di():g.Fi&&g.Fi()};f.prototype.lo=function(a){this.un.add(a)};f.prototype.By=function(a){this.vn.add(a)};
f.prototype.bk=function(a){return a&&-1!==a.Bi?this.yf*a.Bi:this.xf};f.prototype.ae=function(){this.ua.ae(this.Ka);this.Ib&&this.Ka.present()};f.prototype.Qc=function(){this.Ca&&(this.zf=1,this.ua.sg(this.C));this.ua.Qc(this.C);this.C.Sx()};f.prototype.oj=function(a){a&&this.Lj.push(a)};f.prototype.Kr=function(a){Da(this.Lj,a)};f.prototype.Df=function(a){a=a.toString();return this.me.hasOwnProperty(a)?this.me[a]:null};var L=[];f.prototype.of=function(a){var d,b;d=a.type.name;var k=null;if(this.wf.hasOwnProperty(d)){if(k=
this.wf[d],k.contains(a))return}else k=L.length?L.pop():new da,this.wf[d]=k;k.add(a);this.Pe=!0;if(a.Xb)for(d=0,b=a.siblings.length;d<b;d++)this.of(a.siblings[d]);this.Rm&&k.lh.push(a);this.Qm||(this.md++,this.trigger(Object.getPrototypeOf(a.type.Aa).j.Io,a),this.md--)};f.prototype.Db=function(){if(this.Pe){var a,d,b,k,c,m;this.Rm=!0;b=0;for(c=this.jd.length;b<c;++b)for(a=this.jd[b],d=a.type,d.i.push(a),k=0,m=d.Ga.length;k<m;++k)d.Ga[k].i.push(a),d.Ga[k].gh=!0;M(this.jd);this.mt();Va(this.wf);this.Pe=
this.Rm=!1}};f.prototype.mt=function(){for(var a in this.wf)this.wf.hasOwnProperty(a)&&this.Vs(this.wf[a])};f.prototype.Vs=function(a){var d=a.nf(),b=d[0].type,k,c,m,h,e,l;Za(b.i,a);b.gh=!0;0===b.i.length&&(b.rj=!1);k=0;for(c=b.Ga.length;k<c;++k)l=b.Ga[k],Za(l.i,a),l.gh=!0;k=0;for(c=this.Pd.wc.length;k<c;++k)if(e=this.Pd.wc[k],e.vc.hasOwnProperty(b.index)&&Za(e.vc[b.index].Hf,a),!b.P)for(m=0,h=b.Ga.length;m<h;++m)l=b.Ga[m],e.vc.hasOwnProperty(l.index)&&Za(e.vc[l.index].Hf,a);if(e=d[0].n){if(e.Lc)for(m=
e.i,k=0,c=m.length;k<c;++k)h=m[k],a.contains(h)&&(h.X(),e.zb.update(h,h.ac,null),h.ac.set(0,0,-1,-1));Za(e.i,a);e.Qi(0)}for(k=0;k<d.length;++k)this.Us(d[k],b);a.clear();L.push(a);this.ta=!0};f.prototype.Us=function(a,d){var b,k,c;b=0;for(k=this.Lj.length;b<k;++b)this.Lj[b](a);a.Ie&&d.zj.update(a,a.Ie,null);(b=a.n)&&b.$g(a,!0);if(a.M)for(b=0,k=a.M.length;b<k;++b)c=a.M[b],c.$e&&c.$e(),c.behavior.rn.remove(a);this.er.remove(a);this.un.remove(a);this.vn.remove(a);a.$e&&a.$e();this.me.hasOwnProperty(a.uid.toString())&&
delete this.me[a.uid.toString()];this.Ik--;100>d.Hj.length&&d.Hj.push(a)};f.prototype.dm=function(a,d,b,k){if(a.P){var c=C(Math.random()*a.Rf.length);return this.dm(a.Rf[c],d,b,k)}return a.Oc?this.Je(a.Oc,d,!1,b,k,!1):null};var N=[];f.prototype.Je=function(a,d,b,k,c,m){var h,e,l,g;if(!a)return null;var f=this.u[a[1]],x=f.Aa.Re;if(this.qk&&x&&!f.Tm||x&&!this.C&&11===a[0][11])return null;var w=d;x||(d=null);var u;f.Hj.length?(u=f.Hj.pop(),u.$b=!0,f.Aa.na.call(u,f)):(u=new f.Aa.na(f),u.$b=!1);!b||m||
this.me.hasOwnProperty(a[2].toString())?u.uid=this.Ci++:u.uid=a[2];this.me[u.uid.toString()]=u;u.Hr=this.$q++;u.Gf=f.i.length;h=0;for(e=this.jd.length;h<e;++h)this.jd[h].type===f&&u.Gf++;u.Sh=Fb;u.toString=Gb;l=a[3];if(u.$b)Va(u.H);else{u.H={};if("undefined"!==typeof cr_is_preview)for(u.dq=[],u.dq.length=l.length,h=0,e=l.length;h<e;h++)u.dq[h]=l[h][1];u.eb=[];u.eb.length=l.length}h=0;for(e=l.length;h<e;h++)u.eb[h]=l[h][0];if(x){var p=a[0];u.x=ha(k)?p[0]:k;u.y=ha(c)?p[1]:c;u.z=p[2];u.width=p[3];u.height=
p[4];u.depth=p[5];u.k=p[6];u.opacity=p[7];u.nc=p[8];u.oc=p[9];u.Eb=p[10];h=p[11];!this.C&&f.N.length&&(u.Eb=h);u.Ch=gb(u.Eb);this.A&&hb(u,u.Eb,this.A);if(u.$b){h=0;for(e=p[12].length;h<e;h++)for(l=0,g=p[12][h].length;l<g;l++)u.La[h][l]=p[12][h][l];u.ja.set(0,0,0,0);u.Ie.set(0,0,-1,-1);u.ac.set(0,0,-1,-1);u.Ub.Ri(u.ja);M(u.Ql)}else{u.La=p[12].slice(0);h=0;for(e=u.La.length;h<e;h++)u.La[h]=p[12][h].slice(0);u.da=[];u.Ce=[];u.Ce.length=f.N.length;u.ja=new va(0,0,0,0);u.Ie=new va(0,0,-1,-1);u.ac=new va(0,
0,-1,-1);u.Ub=new wa;u.Ql=[];u.q=Jb;u.Qz=Kb;u.Mb=Lb;u.X=Mb;u.Hy=Nb;u.Ks=Ob;u.Fd=Pb}u.ih=!1;u.Ey=0;u.Dy=0;u.Cy=null;14===p.length&&(u.ih=!0,u.Ey=p[13][0],u.Dy=p[13][1],u.Cy=p[13][2]);h=0;for(e=f.N.length;h<e;h++)u.Ce[h]=!0;u.re=!0;u.wd=Qb;u.wd();u.Ls=!!u.da.length;u.Pl=!0;u.Tl=!0;f.qj=!0;u.visible=!0;u.Bi=-1;u.n=d;u.xd=d.i.length;u.zf=0;"undefined"===typeof u.ka&&(u.ka=null);this.ta=u.Wd=!0}var F;M(N);h=0;for(e=f.Ga.length;h<e;h++)N.push.apply(N,f.Ga[h].Ja);N.push.apply(N,f.Ja);if(u.$b)for(h=0,e=N.length;h<
e;h++){var r=N[h];F=u.M[h];F.$b=!0;r.behavior.na.call(F,r,u);p=a[4][h];l=0;for(g=p.length;l<g;l++)F.F[l]=p[l];F.S();r.behavior.rn.add(u)}else for(u.M=[],h=0,e=N.length;h<e;h++)r=N[h],F=new r.behavior.na(r,u),F.$b=!1,F.F=a[4][h].slice(0),F.S(),u.M.push(F),r.behavior.rn.add(u);p=a[5];if(u.$b)for(h=0,e=p.length;h<e;h++)u.F[h]=p[h];else u.F=p.slice(0);this.jd.push(u);this.Pe=!0;d&&(d.yh(u,!0),1!==d.Yb||1!==d.Zb)&&(f.rj=!0);this.Ik++;if(f.Xb){if(u.Xb=!0,u.$b?M(u.siblings):u.siblings=[],!b&&!m){h=0;for(e=
f.kc.length;h<e;h++)if(f.kc[h]!==f){if(!f.kc[h].Oc)return null;u.siblings.push(this.Je(f.kc[h].Oc,w,!1,x?u.x:k,x?u.y:c,!0))}h=0;for(e=u.siblings.length;h<e;h++)for(u.siblings[h].siblings.push(u),l=0;l<e;l++)h!==l&&u.siblings[h].siblings.push(u.siblings[l])}}else u.Xb=!1,u.siblings=null;u.S();h=0;for(e=u.M.length;h<e;h++)u.M[h].Ox&&u.M[h].Ox();return u};f.prototype.Ph=function(a){var d,b;d=0;for(b=this.ua.O.length;d<b;d++){var k=this.ua.O[d];if(jb(k.name,a))return k}return null};f.prototype.fe=function(a){a=
C(a);0>a&&(a=0);a>=this.ua.O.length&&(a=this.ua.O.length-1);return this.ua.O[a]};f.prototype.Zl=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].ea().ya=!0};f.prototype.Li=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].Li()};f.prototype.Vk=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].Vk()};f.prototype.Vf=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].Vf()};f.prototype.Hs=function(a){if(a.qj){var d,b,k=a.i;d=0;for(b=k.length;d<b;++d)k[d].Ks();k=this.jd;d=0;for(b=k.length;d<b;++d)k[d].type===
a&&k[d].Ks();a.qj=!1}};f.prototype.Pp=function(a,d,b,k){var c,h,m=a?1!==a.Yb||1!==a.Zb:!1;if(d.P)for(a=0,c=d.Rf.length;a<c;++a)h=d.Rf[a],m||h.rj?Ba(k,h.i):(this.Hs(h),h.zj.Yk(b,k));else m||d.rj?Ba(k,d.i):(this.Hs(d),d.zj.Yk(b,k))};f.prototype.Wp=function(a,d,b,k){var c,h;c=0;for(h=d.length;c<h;++c)this.Pp(a,d[c],b,k)};f.prototype.Cw=function(a,d,b){var k=this.ls;k&&this.Wp(a,k.Gk,d,b)};f.prototype.vw=function(a,d,b){var k=this.qq;k&&this.Wp(a,k.Gk,d,b)};f.prototype.Yi=function(a,d,b){var k=a.ea(),
c,h,m,e,l=this.Gb().Ac.Uc,g,f,u;if(k.ya)for(k.ya=!1,M(k.i),c=0,e=a.i.length;c<e;c++)m=a.i[c],m.X(),g=m.n.ab(d,b,!0),f=m.n.ab(d,b,!1),m.Mb(g,f)?k.i.push(m):l&&k.Y.push(m);else{h=0;u=l?k.Y:k.i;c=0;for(e=u.length;c<e;c++)m=u[c],m.X(),g=m.n.ab(d,b,!0),f=m.n.ab(d,b,!1),m.Mb(g,f)&&(l?k.i.push(m):(k.i[h]=k.i[c],h++));u.length=h}a.fd();return k.Gm()};f.prototype.gc=function(a,d){if(!(a&&d&&a!==d&&a.Wd&&d.Wd))return!1;a.X();d.X();var b=a.n,k=d.n,c,h,m,e,l,g,f,u;if(b===k||b.Yb===k.Yb&&k.Zb===k.Zb&&b.scale===
k.scale&&b.k===k.k&&b.Lb===k.Lb){if(!a.ja.Xw(d.ja)||!a.Ub.fq(d.Ub)||a.ih&&d.ih)return!1;if(a.ih)return this.rs(a,d);if(d.ih)return this.rs(d,a);f=a.ka&&!a.ka.Eg();c=d.ka&&!d.ka.Eg();if(!f&&!c)return!0;f?(a.ka.mg(a.width,a.height,a.k),f=a.ka):(this.td.eh(a.Ub,a.x,a.y,a.width,a.height),f=this.td);c?(d.ka.mg(d.width,d.height,d.k),u=d.ka):(this.td.eh(d.Ub,d.x,d.y,d.width,d.height),u=this.td);return f.Yh(u,d.x-a.x,d.y-a.y)}f=a.ka&&!a.ka.Eg();c=d.ka&&!d.ka.Eg();f?(a.ka.mg(a.width,a.height,a.k),this.td.Zr(a.ka)):
this.td.eh(a.Ub,a.x,a.y,a.width,a.height);f=this.td;c?(d.ka.mg(d.width,d.height,d.k),this.ko.Zr(d.ka)):this.ko.eh(d.Ub,d.x,d.y,d.width,d.height);u=this.ko;c=0;for(h=f.rd;c<h;c++)m=2*c,e=m+1,l=f.ib[m],g=f.ib[e],f.ib[m]=b.Ha(l+a.x,g+a.y,!0),f.ib[e]=b.Ha(l+a.x,g+a.y,!1);f.X();c=0;for(h=u.rd;c<h;c++)m=2*c,e=m+1,l=u.ib[m],g=u.ib[e],u.ib[m]=k.Ha(l+d.x,g+d.y,!0),u.ib[e]=k.Ha(l+d.x,g+d.y,!1);u.X();return f.Yh(u,0,0)};var K=new wa;new va(0,0,0,0);var y=[];f.prototype.rs=function(a,d){var b,k,c,h,m=d.ja,e=
a.x,l=a.y;a.Vz(m,y);var g=d.ka&&!d.ka.Eg();b=0;for(k=y.length;b<k;++b)if(c=y[b],h=c.kA,m.Yw(h,e,l)&&(K.Ri(h),K.offset(e,l),K.fq(d.Ub)))if(g)if(d.ka.mg(d.width,d.height,d.k),c.Ln){if(c.Ln.Yh(d.ka,d.x-(e+h.left),d.y-(l+h.top)))return M(y),!0}else{if(this.td.eh(K,0,0,h.right-h.left,h.bottom-h.top),this.td.Yh(d.ka,d.x,d.y))return M(y),!0}else if(c.Ln){if(this.td.eh(d.Ub,0,0,d.width,d.height),c.Ln.Yh(this.td,-(e+h.left),-(l+h.top)))return M(y),!0}else return M(y),!0;M(y);return!1};f.prototype.qo=function(a,
d){if(!d)return!1;var b,k,c,h,m;b=0;for(k=a.Ja.length;b<k;b++)if(a.Ja[b].behavior instanceof d)return!0;if(!a.P)for(b=0,k=a.Ga.length;b<k;b++)for(m=a.Ga[b],c=0,h=m.Ja.length;c<h;c++)if(m.Ja[c].behavior instanceof d)return!0;return!1};f.prototype.ro=function(a){return this.qo(a,fc.mz)};f.prototype.so=function(a){return this.qo(a,fc.nz)};var J=[];f.prototype.qb=function(a){var d,b,k;a.X();this.Cw(a.n,a.ja,J);d=0;for(b=J.length;d<b;++d)if(k=J[d],k.H.solidEnabled&&this.gc(a,k))return M(J),k;M(J);return null};
var P=[];f.prototype.kf=function(a,d){var b=null;d&&(b=P,M(b));a.X();this.vw(a.n,a.ja,J);var k,c,h;k=0;for(c=J.length;k<c;++k)if(h=J[k],h.H.jumpthruEnabled&&this.gc(a,h))if(d)b.push(h);else return M(J),h;M(J);return b};f.prototype.Wc=function(a,d,b,k,c,h){k=k||50;var m=a.x,e=a.y,l,g=null,f=null;for(l=0;l<k;l++)if(a.x=m+d*l,a.y=e+b*l,a.q(),!this.gc(a,g)&&((g=this.qb(a))&&(f=g),!g&&(c&&(h?g=this.gc(a,h)?h:null:g=this.kf(a),g&&(f=g)),!g)))return f&&this.Xk(a,d,b,f),!0;a.x=m;a.y=e;a.q();return!1};f.prototype.On=
function(a,d,b,k){k=k||50;var c=a.x,h=a.y,m=null,e=null,l,g,f;for(l=0;l<k;++l)for(g=0;2>g;++g)if(f=2*g-1,a.x=c+d*l*f,a.y=h+b*l*f,a.q(),!this.gc(a,m))if(m=this.qb(a))e=m;else return e&&this.Xk(a,d*f,b*f,e),!0;a.x=c;a.y=h;a.q();return!1};f.prototype.Xk=function(a,d,b,k){var c=2,h,m=!1;h=!1;for(var e=a.x,l=a.y;16>=c;)h=1/c,c*=2,a.x+=d*h*(m?1:-1),a.y+=b*h*(m?1:-1),a.q(),this.gc(a,k)?h=m=!0:(h=m=!1,e=a.x,l=a.y);h&&(a.x=e,a.y=l,a.q())};f.prototype.Ir=function(a,d){var b=ha(d)?100:d,k=0,c=a.x,h=a.y,m=0,
e=0,l=0,g=this.qb(a);if(!g)return!0;for(;k<=b;){switch(m){case 0:e=0;l=-1;k++;break;case 1:e=1;l=-1;break;case 2:e=1;l=0;break;case 3:l=e=1;break;case 4:e=0;l=1;break;case 5:e=-1;l=1;break;case 6:e=-1;l=0;break;case 7:l=e=-1}m=(m+1)%8;a.x=C(c+e*k);a.y=C(h+l*k);a.q();if(!this.gc(a,g)&&(g=this.qb(a),!g))return!0}a.x=c;a.y=h;a.q();return!1};f.prototype.pe=function(a,d){a.Wd&&d.Wd&&this.Wf.push([a,d])};f.prototype.xu=function(a,d,b){var k,c,h;k=0;for(c=this.Wf.length;k<c;++k){h=this.Wf[k];if(h[0]===a)h=
h[1];else if(h[1]===a)h=h[0];else continue;if(d.P){if(-1===d.Rf.indexOf(d))continue}else if(h.type!==d)continue;-1===b.indexOf(h)&&b.push(h)}};f.prototype.Nu=function(a,d){var b,k,c;b=0;for(k=this.Wf.length;b<k;b++)if(c=this.Wf[b],c[0]===a&&c[1]===d||c[0]===d&&c[1]===a)return!0;return!1};f.prototype.Ju=function(a,d,b){var k=a.x,c=a.y,h=pa(10,Sa(d,b,k,c)),m=La(d,b,k,c),e=this.qb(a);if(!e)return Ia(m+ra);var l=e,g,f,u,x,w=T(5);for(g=1;36>g;g++)if(f=m-g*w,a.x=d+Math.cos(f)*h,a.y=b+Math.sin(f)*h,a.q(),
!this.gc(a,l)&&(l=this.qb(a),!l)){u=f;break}36===g&&(u=Ia(m+ra));l=e;for(g=1;36>g;g++)if(f=m+g*w,a.x=d+Math.cos(f)*h,a.y=b+Math.sin(f)*h,a.q(),!this.gc(a,l)&&(l=this.qb(a),!l)){x=f;break}36===g&&(x=Ia(m+ra));a.x=k;a.y=c;a.q();if(x===u)return x;a=Ma(x,u)/2;a=Pa(x,u)?Ia(u+a+ra):Ia(x+a);u=Math.cos(m);m=Math.sin(m);x=Math.cos(a);a=Math.sin(a);d=u*x+m*a;return La(0,0,u-2*d*x,m-2*d*a)};var X=-1;f.prototype.trigger=function(a,d,b){if(!this.ua)return!1;var k=this.ua.Af;if(!k)return!1;var c=!1,h,m,e;X++;var l=
k.hm;m=0;for(e=l.length;m<e;++m)h=this.As(a,d,l[m],b),c=c||h;h=this.As(a,d,k,b);X--;return c||h};f.prototype.As=function(a,d,b,k){var c=!1,h,m,e,l;if(d)for(e=this.oo(a,d,d.type.name,b,k),c=c||e,l=d.type.Ga,h=0,m=l.length;h<m;++h)e=this.oo(a,d,l[h].name,b,k),c=c||e;else e=this.oo(a,d,"system",b,k),c=c||e;return c};f.prototype.oo=function(a,d,b,k,c){var h,m=!1,e=!1,e="undefined"!==typeof c,l=(e?k.Hp:k.Bs)[b];if(!l)return m;var g=null;k=0;for(h=l.length;k<h;++k)if(l[k].method==a){g=l[k].Kh;break}if(!g)return m;
var f;e?f=g[c]:f=g;if(!f)return null;k=0;for(h=f.length;k<h;k++)a=f[k][0],c=f[k][1],e=this.dw(d,b,a,c),m=m||e;return m};f.prototype.dw=function(a,d,b,k){var c,h,m=!1;this.po++;var e=this.Gb().Ac;e&&this.Li(e.jf);var l=1<this.po;this.Li(b.jf);l&&this.Ux();var g=this.Wk(b);g.Ac=b;a&&(c=this.types[d].ea(),c.ya=!1,M(c.i),c.i[0]=a,this.types[d].fd());a=!0;if(b.parent){d=g.qs;for(c=b.parent;c;)d.push(c),c=c.parent;d.reverse();c=0;for(h=d.length;c<h;c++)if(!d[c].gy()){a=!1;break}}a&&(this.Lh++,b.Uc?b.fy(k):
b.Ya(),m=m||g.Kf);this.Rk();l&&this.Nx();this.Vf(b.jf);e&&this.Vf(e.jf);this.Pe&&0===this.md&&0===X&&!this.Um&&this.Db();this.po--;return m};f.prototype.$j=function(){var a=this.Gb();return a.Ac.kb[a.jb]};f.prototype.Ux=function(){this.Bk++;this.Bk>=this.mn.length&&this.mn.push([])};f.prototype.Nx=function(){this.Bk--};f.prototype.Qp=function(){return this.mn[this.Bk]};f.prototype.Wk=function(a){this.Nj++;this.Nj>=this.km.length&&this.km.push(new Rb);var d=this.Gb();d.reset(a);return d};f.prototype.Rk=
function(){this.Nj--};f.prototype.Gb=function(){return this.km[this.Nj]};f.prototype.Sp=function(a,d){for(var b,k,c,h,m,e;d;){b=0;for(k=d.Zc.length;b<k;b++)if(e=d.Zc[b],e instanceof Sb&&jb(a,e.name))return e;d=d.parent}b=0;for(k=this.be.length;b<k;b++)for(m=this.be[b],c=0,h=m.Me.length;c<h;c++)if(e=m.Me[c],e instanceof Sb&&jb(a,e.name))return e;return null};f.prototype.Up=function(a){var d,b;d=0;for(b=this.nd.length;d<b;d++)if(this.nd[d].W===a)return this.nd[d];return null};f.prototype.dk=function(a){var d,
b;d=0;for(b=this.u.length;d<b;d++)if(this.u[d].W===a)return this.u[d];return null};f.prototype.rw=function(a){var d,b;d=0;for(b=this.jg.length;d<b;d++)if(this.jg[d].W===a)return this.jg[d];return null};f.prototype.Yu=function(a,d){this.Ui=[a,d];this.ta=!0};f.prototype.Rw=function(){var a=this,d=this.Zn,b=this.je,k=this.wk,c=!1;this.es&&(c=!0,d="__c2_continuouspreview",this.es=!1);if(d.length){this.Db();b=this.ky();if(t()&&!this.Rc)p(d,b,function(){fa("Saved state to IndexedDB storage ("+b.length+
" bytes)");a.je=b;a.trigger(W.prototype.j.El,null);b=a.je="";c&&g()},function(k){try{localStorage.setItem("__c2save_"+d,b),fa("Saved state to WebStorage ("+b.length+" bytes)"),a.je=b,a.trigger(W.prototype.j.El,null),b=a.je="",c&&g()}catch(h){fa("Failed to save game state: "+k+"; "+h),a.trigger(W.prototype.j.Xo,null)}});else try{localStorage.setItem("__c2save_"+d,b),fa("Saved state to WebStorage ("+b.length+" bytes)"),a.je=b,this.trigger(W.prototype.j.El,null),b=a.je="",c&&g()}catch(h){fa("Error saving to WebStorage: "+
h),a.trigger(W.prototype.j.Xo,null)}this.wk=this.Zn="";this.gb=null}if(k.length){if(t()&&!this.Rc)v(k,function(d){d?(a.gb=d,fa("Loaded state from IndexedDB storage ("+a.gb.length+" bytes)")):(a.gb=localStorage.getItem("__c2save_"+k)||"",fa("Loaded state from WebStorage ("+a.gb.length+" bytes)"));a.Wi=!1;a.gb||(a.gb=null,a.trigger(W.prototype.j.jj,null))},function(){a.gb=localStorage.getItem("__c2save_"+k)||"";fa("Loaded state from WebStorage ("+a.gb.length+" bytes)");a.Wi=!1;a.gb||(a.gb=null,a.trigger(W.prototype.j.jj,
null))});else{try{this.gb=localStorage.getItem("__c2save_"+k)||"",fa("Loaded state from WebStorage ("+this.gb.length+" bytes)")}catch(m){this.gb=null}this.Wi=!1;a.gb||(a.gb=null,a.trigger(W.prototype.j.jj,null))}this.Zn=this.wk=""}null!==this.gb&&(this.Db(),this.rx(this.gb)?(this.je=this.gb,this.trigger(W.prototype.j.Lt,null),this.je=""):a.trigger(W.prototype.j.jj,null),this.gb=null)};f.prototype.ky=function(){var d,b,k,c,h,m,e,l={c2save:!0,version:1,rt:{time:this.wb.aa,walltime:this.xe.aa,timescale:this.dg,
tickcount:this.ud,execcount:this.Lh,next_uid:this.Ci,running_layout:this.ua.W,start_time_offset:Date.now()-this.il},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(b=this.u.length;d<b;d++)if(h=this.u[d],!h.P&&!this.ro(h)){m={instances:[]};Ua(h.H)&&(m.ex=a(h.H));k=0;for(c=h.i.length;k<c;k++)m.instances.push(this.Yn(h.i[k]));l.types[h.W.toString()]=m}d=0;for(b=this.nd.length;d<b;d++)k=this.nd[d],l.layouts[k.W.toString()]=k.Ab();c=l.events.groups;d=0;for(b=this.jg.length;d<b;d++)k=
this.jg[d],c[k.W.toString()]=this.Uh[k.Th].Bg;b=l.events.cnds;for(e in this.He)this.He.hasOwnProperty(e)&&(d=this.He[e],Ua(d.H)&&(b[e]={ex:a(d.H)}));b=l.events.acts;for(e in this.De)this.De.hasOwnProperty(e)&&(d=this.De[e],Ua(d.H)&&(b[e]={ex:a(d.H)}));b=l.events.vars;for(e in this.mh)this.mh.hasOwnProperty(e)&&(d=this.mh[e],d.ok||d.parent&&!d.gi||(b[e]=d.data));l.system=this.Pd.Ab();return JSON.stringify(l)};f.prototype.Jr=function(){var a,d,b,k,c,h;this.me={};a=0;for(d=this.u.length;a<d;a++)if(b=
this.u[a],!b.P)for(k=0,c=b.i.length;k<c;k++)h=b.i[k],this.me[h.uid.toString()]=h};f.prototype.rx=function(a){var d;try{d=JSON.parse(a)}catch(b){return!1}if(!d.c2save||1<d.version)return!1;this.ai=!0;a=d.rt;this.wb.reset();this.wb.aa=a.time;this.xe.reset();this.xe.aa=a.walltime||0;this.dg=a.timescale;this.ud=a.tickcount;this.Lh=a.execcount;this.il=Date.now()-a.start_time_offset;var k=a.running_layout;if(k!==this.ua.W)if(k=this.Up(k))this.Dp(k);else return;var c,h,m,e,l,g,f;g=d.types;for(h in g)if(g.hasOwnProperty(h)&&
(e=this.dk(parseInt(h,10)))&&!e.P&&!this.ro(e)){g[h].ex?e.H=g[h].ex:Va(e.H);l=e.i;m=g[h].instances;k=0;for(c=qa(l.length,m.length);k<c;k++)this.xk(l[k],m[k]);k=m.length;for(c=l.length;k<c;k++)this.of(l[k]);k=l.length;for(c=m.length;k<c;k++){l=null;if(e.Aa.Re&&(l=this.ua.ck(m[k].w.l),!l))continue;l=this.Je(e.Oc,l,!1,0,0,!0);this.xk(l,m[k])}e.gh=!0}this.Db();this.Jr();c=d.layouts;for(h in c)c.hasOwnProperty(h)&&(k=this.Up(parseInt(h,10)))&&k.Ob(c[h]);c=d.events.groups;for(h in c)c.hasOwnProperty(h)&&
(k=this.rw(parseInt(h,10)))&&this.Uh[k.Th]&&this.Uh[k.Th].ny(c[h]);k=d.events.cnds;for(h in this.He)this.He.hasOwnProperty(h)&&(k.hasOwnProperty(h)?this.He[h].H=k[h].ex:this.He[h].H={});k=d.events.acts;for(h in this.De)this.De.hasOwnProperty(h)&&(k.hasOwnProperty(h)?this.De[h].H=k[h].ex:this.De[h].H={});k=d.events.vars;for(h in k)k.hasOwnProperty(h)&&this.mh.hasOwnProperty(h)&&(this.mh[h].data=k[h]);this.Ci=a.next_uid;this.ai=!1;k=0;for(c=this.Rj.length;k<c;++k)l=this.Rj[k],this.trigger(Object.getPrototypeOf(l.type.Aa).j.sh,
l);M(this.Rj);this.Pd.Ob(d.system);k=0;for(c=this.u.length;k<c;k++)if(e=this.u[k],!e.P&&!this.ro(e))for(d=0,h=e.i.length;d<h;d++){l=e.i[d];if(e.Xb)for(g=l.Sh(),M(l.siblings),a=0,m=e.kc.length;a<m;a++)f=e.kc[a],e!==f&&l.siblings.push(f.i[g]);l.zd&&l.zd();if(l.M)for(a=0,m=l.M.length;a<m;a++)g=l.M[a],g.zd&&g.zd()}return this.ta=!0};f.prototype.Yn=function(d,b){var k,c,h,m,e;m=d.type;h=m.Aa;var l={};b?l.c2=!0:l.uid=d.uid;Ua(d.H)&&(l.ex=a(d.H));if(d.eb&&d.eb.length)for(l.ivs={},k=0,c=d.eb.length;k<c;k++)l.ivs[d.type.Nm[k].toString()]=
d.eb[k];if(h.Re){h={x:d.x,y:d.y,w:d.width,h:d.height,l:d.n.W,zi:d.Fd()};0!==d.k&&(h.a=d.k);1!==d.opacity&&(h.o=d.opacity);.5!==d.nc&&(h.hX=d.nc);.5!==d.oc&&(h.hY=d.oc);0!==d.Eb&&(h.bm=d.Eb);d.visible||(h.v=d.visible);d.Wd||(h.ce=d.Wd);-1!==d.Bi&&(h.mts=d.Bi);if(m.N.length)for(h.fx=[],k=0,c=m.N.length;k<c;k++)e=m.N[k],h.fx.push({name:e.name,active:d.Ce[e.index],params:d.La[e.index]});l.w=h}if(d.M&&d.M.length)for(l.behs={},k=0,c=d.M.length;k<c;k++)m=d.M[k],m.Ab&&(l.behs[m.type.W.toString()]=m.Ab());
d.Ab&&(l.data=d.Ab());return l};f.prototype.uw=function(a,d){var b,k;b=0;for(k=a.Nm.length;b<k;b++)if(a.Nm[b]===d)return b;return-1};f.prototype.qw=function(a,d){var b,k;b=0;for(k=a.M.length;b<k;b++)if(a.M[b].type.W===d)return b;return-1};f.prototype.xk=function(a,d,b){var k,c,h,m,e;e=a.type;var l=e.Aa;if(b){if(!d.c2)return}else a.uid=d.uid;d.ex?a.H=d.ex:Va(a.H);if(c=d.ivs)for(k in c)c.hasOwnProperty(k)&&(h=this.uw(e,parseInt(k,10)),0>h||h>=a.eb.length||(m=c[k],null===m&&(m=NaN),a.eb[h]=m));if(l.Re){h=
d.w;a.n.W!==h.l&&(c=a.n,a.n=this.ua.ck(h.l),a.n?(c.$g(a,!0),a.n.yh(a,!0),a.q(),a.n.Qi(0)):(a.n=c,b||this.of(a)));a.x=h.x;a.y=h.y;a.width=h.w;a.height=h.h;a.xd=h.zi;a.k=h.hasOwnProperty("a")?h.a:0;a.opacity=h.hasOwnProperty("o")?h.o:1;a.nc=h.hasOwnProperty("hX")?h.hX:.5;a.oc=h.hasOwnProperty("hY")?h.hY:.5;a.visible=h.hasOwnProperty("v")?h.v:!0;a.Wd=h.hasOwnProperty("ce")?h.ce:!0;a.Bi=h.hasOwnProperty("mts")?h.mts:-1;a.Eb=h.hasOwnProperty("bm")?h.bm:0;a.Ch=gb(a.Eb);this.A&&hb(a,a.Eb,this.A);a.q();if(h.hasOwnProperty("fx"))for(b=
0,c=h.fx.length;b<c;b++)m=e.xm(h.fx[b].name),0>m||(a.Ce[m]=h.fx[b].active,a.La[m]=h.fx[b].params);a.wd()}if(e=d.behs)for(k in e)e.hasOwnProperty(k)&&(b=this.qw(a,parseInt(k,10)),0>b||a.M[b].Ob(e[k]));d.data&&a.Ob(d.data)};f.prototype.Ip=function(a,d,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(d,b)},b)};f.prototype.ew=function(a,d){this.Ip("data.js",function(b){var k=new FileReader;k.onload=function(d){a(d.target.result)};k.onerror=d;k.readAsText(b)},
d)};var U=[],z=0;f.prototype.pn=function(){if(U.length&&!(8<=z)){z++;var a=U.shift();this.bv(a.filename,a.zy,a.Bv)}};f.prototype.Jp=function(a,d,b){var k=this;U.push({filename:a,zy:function(a){z--;k.pn();d(a)},Bv:function(a){z--;k.pn();b(a)}});this.pn()};f.prototype.bv=function(a,d,b){this.Ip(a,function(a){var b=new FileReader;b.onload=function(a){d(a.target.result)};b.readAsArrayBuffer(a)},b)};f.prototype.fw=function(a,d,b){var k="",c=a.toLowerCase(),h=c.substr(c.length-4),c=c.substr(c.length-5);
".mp4"===h?k="video/mp4":".webm"===c?k="video/webm":".m4a"===h?k="audio/mp4":".mp3"===h&&(k="audio/mpeg");this.Jp(a,function(a){a=URL.createObjectURL(new Blob([a],{type:k}));d(a)},b)};f.prototype.Zw=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};f.prototype.Wr=function(a,d){this.mk&&!this.Zw(d)?this.fw(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};f.prototype.dl=function(a,d){"undefined"!==typeof a.imageSmoothingEnabled?
a.imageSmoothingEnabled=d:(a.webkitImageSmoothingEnabled=d,a.mozImageSmoothingEnabled=d,a.msImageSmoothingEnabled=d)};Tb=function(a){return new f(document.getElementById(a))};Ub=function(a,d){return new f({dc:!0,width:a,height:d})};window.cr_createRuntime=Tb;window.cr_createDCRuntime=Ub;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Ud=!0;document.body.appendChild(a);a=new f(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 f(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};
window.cr_getSnapshot=function(f,q){var t=window.cr_getC2Runtime();t&&t.Yu(f,q)};window.cr_sizeCanvas=function(f,q){if(0!==f&&0!==q){var t=window.cr_getC2Runtime();t&&t.setSize(f,q)}};window.cr_setSuspended=function(f){var q=window.cr_getC2Runtime();q&&q.setSuspended(f)};
(function(){function f(a,b){this.b=a;this.Af=null;this.scrollX=this.b.Qa/2;this.scrollY=this.b.Pa/2;this.scale=1;this.k=0;this.xg=!0;this.name=b[0];this.Ix=b[1];this.Hx=b[2];this.width=b[1];this.height=b[2];this.Ds=b[3];this.bs=b[4];this.W=b[5];var c=b[6],e,g;this.O=[];this.Xh=[];e=0;for(g=c.length;e<g;e++){var f=new Vb(this,c[e]);f.cr=e;this.O.push(f)}c=b[7];this.Qe=[];e=0;for(g=c.length;e<g;e++){var f=c[e],h=this.b.u[f[1]];h.Oc||(h.Oc=f);this.Qe.push(f);-1===this.Xh.indexOf(h)&&this.Xh.push(h)}this.N=
[];this.da=[];this.re=!0;this.La=[];e=0;for(g=b[8].length;e<g;e++)this.N.push({id:b[8][e][0],name:b[8][e][1],Za:-1,od:!1,xc:!0,index:e}),this.La.push(b[8][e][2].slice(0));this.wd();this.Zg=new va(0,0,1,1);this.Rn=new va(0,0,1,1);this.cf={}}function q(a,b){return a.xd-b.xd}function t(a,b){this.mb=a;this.b=a.b;this.i=[];this.scale=1;this.k=0;this.$d=!1;this.ue=new va(0,0,0,0);this.ys=new wa;this.wa=this.ra=this.xa=this.qa=0;this.fg=!1;this.ze=-1;this.$l=0;this.name=b[0];this.index=b[1];this.W=b[2];
this.visible=b[3];this.gd=b[4];this.vd=b[5];this.Yb=b[6];this.Zb=b[7];this.opacity=b[8];this.Wj=b[9];this.Lc=b[10];this.Lb=b[11];this.Eb=b[12];this.xv=b[13];this.Ch="source-over";this.Fb=this.Kb=0;this.zb=null;this.ke=r();this.sd=!0;this.Og=new va(0,0,-1,-1);this.tb=new va(0,0,-1,-1);this.Lc&&(this.zb=new fb(this.b.Qa,this.b.Pa));this.Nd=!1;var c=b[14],e,g;this.ns=[];this.Ec=[];this.Fh=[];e=0;for(g=c.length;e<g;e++){var f=c[e],h=this.b.u[f[1]];h.Oc||(h.Oc=f,h.Wu=this.index);this.Ec.push(f);-1===this.mb.Xh.indexOf(h)&&
this.mb.Xh.push(h)}Aa(this.ns,this.Ec);this.N=[];this.da=[];this.re=!0;this.La=[];e=0;for(g=b[15].length;e<g;e++)this.N.push({id:b[15][e][0],name:b[15][e][1],Za:-1,od:!1,xc:!0,index:e}),this.La.push(b[15][e][2].slice(0));this.wd();this.Zg=new va(0,0,1,1);this.Rn=new va(0,0,1,1)}function r(){return a.length?a.pop():[]}function p(d){M(d);a.push(d)}f.prototype.jy=function(a){var b=a.type.W.toString();this.cf.hasOwnProperty(b)||(this.cf[b]=[]);this.cf[b].push(this.b.Yn(a))};f.prototype.Xp=function(){var a=
this.O[0];return!a.vd&&1===a.opacity&&!a.Wj&&a.visible};f.prototype.wd=function(){M(this.da);this.re=!0;var a,b,c;a=0;for(b=this.N.length;a<b;a++)c=this.N[a],c.xc&&(this.da.push(c),c.od||(this.re=!1))};f.prototype.wm=function(a){var b,c,e;b=0;for(c=this.N.length;b<c;b++)if(e=this.N[b],e.name===a)return e;return null};var v=[],g=!0;f.prototype.io=function(){this.bs&&(this.Af=this.b.lm[this.bs],this.Af.to());this.b.ua=this;this.width=this.Ix;this.height=this.Hx;this.scrollX=this.b.Qa/2;this.scrollY=
this.b.Pa/2;var a,b,c,e,f,p,h;a=0;for(c=this.b.u.length;a<c;a++)if(b=this.b.u[a],!b.P)for(f=b.i,b=0,e=f.length;b<e;b++)if(p=f[b],p.n){var k=p.n.cr;k>=this.O.length&&(k=this.O.length-1);p.n=this.O[k];-1===p.n.i.indexOf(p)&&p.n.i.push(p);p.n.fg=!0}if(!g)for(a=0,c=this.O.length;a<c;++a)this.O[a].i.sort(q);M(v);this.Hu();a=0;for(c=this.O.length;a<c;a++)p=this.O[a],p.Uu(),p.yl();f=!1;if(!this.xg){for(h in this.cf)if(this.cf.hasOwnProperty(h)&&(b=this.b.dk(parseInt(h,10)))&&!b.P&&this.b.so(b)){e=this.cf[h];
a=0;for(c=e.length;a<c;a++){p=null;if(b.Aa.Re&&(p=this.ck(e[a].w.l),!p))continue;p=this.b.Je(b.Oc,p,!1,0,0,!0);this.b.xk(p,e[a]);f=!0;v.push(p)}M(e)}a=0;for(c=this.O.length;a<c;a++)this.O[a].i.sort(q),this.O[a].fg=!0}f&&(this.b.Db(),this.b.Jr());for(a=0;a<v.length;a++)if(p=v[a],p.type.Xb)for(c=p.Sh(),b=0,e=p.type.kc.length;b<e;b++)h=p.type.kc[b],p.type!==h&&(h.i.length>c?p.siblings.push(h.i[c]):h.Oc&&(f=this.b.Je(h.Oc,p.n,!0,p.x,p.y,!0),this.b.Db(),h.wl(),p.siblings.push(f),v.push(f)));a=0;for(c=
this.Qe.length;a<c;a++)p=this.Qe[a],b=this.b.u[p[1]],b.Xb||this.b.Je(this.Qe[a],null,!0);this.b.Yl=null;this.b.Db();if(this.b.Ka&&!this.b.Fa)for(a=0,c=this.b.u.length;a<c;a++)h=this.b.u[a],!h.P&&h.i.length&&h.Er&&h.Er(this.b.Ka);if(this.b.ai)Aa(this.b.Rj,v);else for(a=0,c=v.length;a<c;a++)p=v[a],this.b.trigger(Object.getPrototypeOf(p.type.Aa).j.sh,p);M(v);this.b.ai||this.b.trigger(W.prototype.j.Qo,null);this.xg=!1};f.prototype.Tu=function(){var a,b,c,e,g;b=a=0;for(c=this.Qe.length;a<c;a++)e=this.Qe[a],
g=this.b.u[e[1]],g.global?g.Xb||this.b.Je(e,null,!0):(this.Qe[b]=e,b++);za(this.Qe,b)};f.prototype.yy=function(){this.b.ai||this.b.trigger(W.prototype.j.Kt,null);this.b.Qm=!0;M(this.b.Pd.wc);var a,b,c,e,f,p;if(!this.xg)for(a=0,b=this.O.length;a<b;a++)for(this.O[a].vo(),f=this.O[a].i,c=0,e=f.length;c<e;c++)p=f[c],p.type.global||this.b.so(p.type)&&this.jy(p);a=0;for(b=this.O.length;a<b;a++){f=this.O[a].i;c=0;for(e=f.length;c<e;c++)p=f[c],p.type.global||this.b.of(p);this.b.Db();M(f);this.O[a].fg=!0}a=
0;for(b=this.b.u.length;a<b;a++)if(f=this.b.u[a],!(f.global||f.Aa.Re||f.Aa.hl||f.P)){c=0;for(e=f.i.length;c<e;c++)this.b.of(f.i[c]);this.b.Db()}g=!1;this.b.Qm=!1};new va(0,0,0,0);f.prototype.ae=function(a){var b,c=a,e=!1,g=!this.b.Bc;g&&(this.b.vk||(this.b.vk=document.createElement("canvas"),b=this.b.vk,b.width=this.b.J,b.height=this.b.I,this.b.wq=b.getContext("2d"),e=!0),b=this.b.vk,c=this.b.wq,b.width!==this.b.J&&(b.width=this.b.J,e=!0),b.height!==this.b.I&&(b.height=this.b.I,e=!0),e&&this.b.dl(c,
this.b.Oa));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.vp&&!this.Xp()&&c.clearRect(0,0,this.b.J,this.b.I);var f,h,e=0;for(f=this.O.length;e<f;e++)h=this.O[e],h.visible&&0<h.opacity&&11!==h.Eb&&(h.i.length||!h.vd)?h.ae(c):h.yl();g&&a.drawImage(b,0,0,this.b.width,this.b.height)};f.prototype.sg=function(a){a.Vr(!0);this.b.Wa||(this.b.Wa=a.zc(this.b.J,this.b.I,this.b.Oa));if(this.b.Wa.uf!==this.b.J||this.b.Wa.tf!==this.b.I)a.deleteTexture(this.b.Wa),this.b.Wa=a.zc(this.b.J,this.b.I,
this.b.Oa);a.Yc(this.b.Wa);this.b.Bc||a.Yf(this.b.J,this.b.I);var b,c;for(b=this.O.length-1;0<=b;--b)c=this.O[b],c.visible&&1===c.opacity&&c.re&&0===c.Eb&&(c.i.length||!c.vd)?c.sg(a):c.yl();a.Vr(!1)};f.prototype.Qc=function(a){var b=0<this.da.length||this.b.kh||!this.b.Bc||this.b.Ca;if(b){this.b.Wa||(this.b.Wa=a.zc(this.b.J,this.b.I,this.b.Oa));if(this.b.Wa.uf!==this.b.J||this.b.Wa.tf!==this.b.I)a.deleteTexture(this.b.Wa),this.b.Wa=a.zc(this.b.J,this.b.I,this.b.Oa);a.Yc(this.b.Wa);this.b.Bc||a.Yf(this.b.J,
this.b.I)}else this.b.Wa&&(a.Yc(null),a.deleteTexture(this.b.Wa),this.b.Wa=null);this.b.vp&&!this.Xp()&&a.clear(0,0,0,0);var c,e,g;c=0;for(e=this.O.length;c<e;c++)g=this.O[c],g.visible&&0<g.opacity&&(g.i.length||!g.vd)?g.Qc(a):g.yl();b&&(0===this.da.length||1===this.da.length&&this.b.Bc?(1===this.da.length?(b=this.da[0].index,a.fc(this.da[0].Za),a.dh(null,1/this.b.J,1/this.b.I,0,0,1,1,this.scale,this.k,0,0,this.b.J/2,this.b.I/2,this.b.wb.aa,this.La[b]),a.Uk(this.da[0].Za)&&(this.b.ta=!0)):a.fc(0),
this.b.Bc||a.Yf(this.b.width,this.b.height),a.Yc(null),a.Tr(!1),a.bh(1),a.Jc(this.b.Wa),a.Rr(),a.Xc(),a.Kc(),b=this.b.width/2,c=this.b.height/2,a.Mi(-b,c,b,c,b,-c,-b,-c),a.Jc(null),a.Tr(!0)):this.Tn(a,null,null,null))};f.prototype.Qh=function(){return 0<this.da.length||this.b.kh||!this.b.Bc||this.b.Ca?this.b.Wa:null};f.prototype.Vp=function(){var a=this.O[0].mc(),b,c,e;b=1;for(c=this.O.length;b<c;b++)e=this.O[b],(0!==e.Yb||0!==e.Zb)&&e.mc()<a&&(a=e.mc());return a};f.prototype.Pr=function(a){if(!this.Ds){var b=
1/this.Vp()*this.b.J/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ta=!0)};f.prototype.Qr=function(a){if(!this.Ds){var b=1/this.Vp()*this.b.I/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ta=!0)};f.prototype.Hu=function(){this.Pr(this.scrollX);this.Qr(this.scrollY)};f.prototype.Tn=function(a,b,c,e){var g=c?c.da:b?b.da:this.da,f=1,h=0,k=0,m=0,p=this.b.J,r=this.b.I;c?(f=c.n.mc(),h=c.n.cb(),k=c.n.qa,m=c.n.ra,p=c.n.xa,
r=c.n.wa):b&&(f=b.mc(),h=b.cb(),k=b.qa,m=b.ra,p=b.xa,r=b.wa);var q=this.b.tm,t,v,E,G,L=0,N=1,K,y,J=this.b.J,P=this.b.I,X=J/2,U=P/2,z=b?b.Zg:this.Zg,B=b?b.Rn:this.Rn,A=0,S=0,H=0,I=0,O=J,ca=J,Q=P,ma=P,na=E=0;G=c?c.n.cb():0;if(c){t=0;for(v=g.length;t<v;t++)E+=a.zw(g[t].Za),na+=a.Aw(g[t].Za);I=c.ja;A=b.Ha(I.left,I.top,!0,!0);H=b.Ha(I.left,I.top,!1,!0);O=b.Ha(I.right,I.bottom,!0,!0);Q=b.Ha(I.right,I.bottom,!1,!0);0!==G&&(t=b.Ha(I.right,I.top,!0,!0),v=b.Ha(I.right,I.top,!1,!0),S=b.Ha(I.left,I.bottom,!0,
!0),I=b.Ha(I.left,I.bottom,!1,!0),G=Math.min(A,O,t,S),O=Math.max(A,O,t,S),A=G,G=Math.min(H,Q,v,I),Q=Math.max(H,Q,v,I),H=G);A-=E;H-=na;O+=E;Q+=na;B.left=A/J;B.top=1-H/P;B.right=O/J;B.bottom=1-Q/P;S=A=C(A);I=H=C(H);ca=O=sa(O);ma=Q=sa(Q);S-=E;I-=na;ca+=E;ma+=na;0>A&&(A=0);0>H&&(H=0);O>J&&(O=J);Q>P&&(Q=P);0>S&&(S=0);0>I&&(I=0);ca>J&&(ca=J);ma>P&&(ma=P);z.left=A/J;z.top=1-H/P;z.right=O/J;z.bottom=1-Q/P}else z.left=B.left=0,z.top=B.top=0,z.right=B.right=1,z.bottom=B.bottom=1;na=c&&(a.Ji(g[0].Za)||0!==E||
0!==na||1!==c.opacity||c.type.Aa.Wq)||b&&!c&&1!==b.opacity;a.Rr();if(na){q[L]||(q[L]=a.zc(J,P,this.b.Oa));if(q[L].uf!==J||q[L].tf!==P)a.deleteTexture(q[L]),q[L]=a.zc(J,P,this.b.Oa);a.fc(0);a.Yc(q[L]);y=ma-I;a.clearRect(S,P-I-y,ca-S,y);c?c.Qc(a):(a.Jc(this.b.fb),a.bh(b.opacity),a.Xc(),a.translate(-X,-U),a.Kc(),a.ef(A,Q,O,Q,O,H,A,H,z));B.left=B.top=0;B.right=B.bottom=1;c&&(G=z.top,z.top=z.bottom,z.bottom=G);L=1;N=0}a.bh(1);E=g.length-1;var Ea=a.Nn(g[E].Za)||!b&&!c&&!this.b.Bc;t=G=0;for(v=g.length;t<
v;t++){q[L]||(q[L]=a.zc(J,P,this.b.Oa));if(q[L].uf!==J||q[L].tf!==P)a.deleteTexture(q[L]),q[L]=a.zc(J,P,this.b.Oa);a.fc(g[t].Za);G=g[t].index;a.Uk(g[t].Za)&&(this.b.ta=!0);0!=t||na?(a.dh(e,1/J,1/P,B.left,B.top,B.right,B.bottom,f,h,k,m,(k+p)/2,(m+r)/2,this.b.wb.aa,c?c.La[G]:b?b.La[G]:this.La[G]),a.Jc(null),t!==E||Ea?(a.Yc(q[L]),y=ma-I,K=P-I-y,a.clearRect(S,K,ca-S,y)):(c?a.hf(c.Kb,c.Fb):b&&a.hf(b.Kb,b.Fb),a.Yc(e)),a.Jc(q[N]),a.Xc(),a.translate(-X,-U),a.Kc(),a.ef(A,Q,O,Q,O,H,A,H,z),t!==E||Ea||a.Jc(null)):
(a.Yc(q[L]),y=ma-I,K=P-I-y,a.clearRect(S,K,ca-S,y),c?(c.sb&&c.sb.rb?(K=c.sb.rb,N=1/K.width,K=1/K.height):(N=1/c.width,K=1/c.height),a.dh(e,N,K,B.left,B.top,B.right,B.bottom,f,h,k,m,(k+p)/2,(m+r)/2,this.b.wb.aa,c.La[G]),c.Qc(a)):(a.dh(e,1/J,1/P,0,0,1,1,f,h,k,m,(k+p)/2,(m+r)/2,this.b.wb.aa,b?b.La[G]:this.La[G]),a.Jc(b?this.b.fb:this.b.Wa),a.Xc(),a.translate(-X,-U),a.Kc(),a.ef(A,Q,O,Q,O,H,A,H,z)),B.left=B.top=0,B.right=B.bottom=1,c&&!Ea&&(G=Q,Q=H,H=G));L=0===L?1:0;N=0===L?1:0}Ea&&(a.fc(0),c?a.hf(c.Kb,
c.Fb):b?a.hf(b.Kb,b.Fb):this.b.Bc||(a.Yf(this.b.width,this.b.height),X=this.b.width/2,U=this.b.height/2,H=A=0,O=this.b.width,Q=this.b.height),a.Yc(e),a.Jc(q[N]),a.Xc(),a.translate(-X,-U),a.Kc(),c&&1===g.length&&!na?a.ef(A,H,O,H,O,Q,A,Q,z):a.ef(A,Q,O,Q,O,H,A,H,z),a.Jc(null))};f.prototype.ck=function(a){var b,c;b=0;for(c=this.O.length;b<c;b++)if(this.O[b].W===a)return this.O[b];return null};f.prototype.Ab=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.xg,persist:this.cf,fx:[],layers:{}};a=0;for(b=this.N.length;a<b;a++)c=this.N[a],e.fx.push({name:c.name,active:c.xc,params:this.La[c.index]});a=0;for(b=this.O.length;a<b;a++)c=this.O[a],e.layers[c.W.toString()]=c.Ab();return e};f.prototype.Ob=function(a){var b,c,e,g;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.cf=a.persist;"undefined"!==typeof a.fv&&(this.xg=a.fv);var f=a.fx;b=0;for(c=f.length;b<c;b++)if(e=this.wm(f[b].name))e.xc=f[b].active,
this.La[e.index]=f[b].params;this.wd();b=a.layers;for(g in b)b.hasOwnProperty(g)&&(a=this.ck(parseInt(g,10)))&&a.Ob(b[g])};Hb=f;t.prototype.wd=function(){M(this.da);this.re=!0;var a,b,c;a=0;for(b=this.N.length;a<b;a++)c=this.N[a],c.xc&&(this.da.push(c),c.od||(this.re=!1))};t.prototype.wm=function(a){var b,c,e;b=0;for(c=this.N.length;b<c;b++)if(e=this.N[b],e.name===a)return e;return null};t.prototype.Uu=function(){var a,b,c,e,g,f;b=a=0;for(c=this.Ec.length;a<c;a++){e=this.Ec[a];g=this.b.u[e[1]];f=
this.b.so(g);g=!0;if(!f||this.mb.xg){e=this.b.Je(e,this,!0);if(!e)continue;v.push(e);e.type.global&&(g=!1,this.Fh.push(e.uid))}g&&(this.Ec[b]=this.Ec[a],b++)}this.Ec.length=b;this.b.Db();!this.b.C&&this.N.length&&(this.Eb=this.xv);this.Ch=gb(this.Eb);this.b.A&&hb(this,this.Eb,this.b.A);this.sd=!0};t.prototype.$g=function(a,b){var c=Ca(this.i,a);0>c||(b&&this.Lc&&a.ac&&a.ac.right>=a.ac.left&&(a.X(),this.zb.update(a,a.ac,null),a.ac.set(0,0,-1,-1)),c===this.i.length-1?this.i.pop():(ya(this.i,c),this.Qi(c)),
this.sd=!0)};t.prototype.yh=function(a,b){a.xd=this.i.length;this.i.push(a);b&&this.Lc&&a.ac&&a.q();this.sd=!0};t.prototype.Rx=function(a){this.i.unshift(a);this.Qi(0)};t.prototype.yx=function(a,b,c){var e=a.Fd();b=b.Fd();ya(this.i,e);e<b&&b--;c&&b++;b===this.i.length?this.i.push(a):this.i.splice(b,0,a);this.Qi(e<b?e:b)};t.prototype.Qi=function(a){-1===this.ze?this.ze=a:a<this.ze&&(this.ze=a);this.sd=this.fg=!0};t.prototype.vo=function(){if(this.fg){-1===this.ze&&(this.ze=0);var a,b,c;if(this.Lc)for(a=
this.ze,b=this.i.length;a<b;++a)c=this.i[a],c.xd=a,this.zb.vx(c.ac);else for(a=this.ze,b=this.i.length;a<b;++a)this.i[a].xd=a;this.fg=!1;this.ze=-1}};t.prototype.mc=function(a){return this.ww()*(this.b.Bc||a?this.b.zh:1)};t.prototype.ww=function(){return(this.scale*this.mb.scale-1)*this.Lb+1};t.prototype.cb=function(){return this.$d?0:Ia(this.mb.k+this.k)};var a=[],c=[],e=[];t.prototype.Bm=function(){this.vo();this.zb.Yk(this.qa,this.ra,this.xa,this.wa,e);if(!e.length)return r();if(1===e.length){var a=
r();Aa(a,e[0]);M(e);return a}for(var b=!0;1<e.length;){for(var a=e,g=void 0,l=void 0,f=void 0,w=void 0,h=void 0,g=0,l=a.length;g<l-1;g+=2){var f=a[g],w=a[g+1],h=r(),k=f,m=w,F=h,q=0,t=0,v=0,D=k.length,E=m.length,G=void 0,L=void 0;for(F.length=D+E;q<D&&t<E;++v)G=k[q],L=m[t],G.xd<L.xd?(F[v]=G,++q):(F[v]=L,++t);for(;q<D;++q,++v)F[v]=k[q];for(;t<E;++t,++v)F[v]=m[t];b||(p(f),p(w));c.push(h)}1===l%2&&(b?(f=r(),Aa(f,a[l-1]),c.push(f)):c.push(a[l-1]));Aa(a,c);M(c);b=!1}a=e[0];M(e);return a};t.prototype.ae=
function(a){this.Nd=this.Wj||1!==this.opacity||0!==this.Eb;var b=this.b.canvas,c=a,e=!1;this.Nd&&(this.b.uk||(this.b.uk=document.createElement("canvas"),b=this.b.uk,b.width=this.b.J,b.height=this.b.I,this.b.vq=b.getContext("2d"),e=!0),b=this.b.uk,c=this.b.vq,b.width!==this.b.J&&(b.width=this.b.J,e=!0),b.height!==this.b.I&&(b.height=this.b.I,e=!0),e&&this.b.dl(c,this.b.Oa),this.vd&&c.clearRect(0,0,this.b.J,this.b.I));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.vd||(c.fillStyle="rgb("+
this.gd[0]+","+this.gd[1]+","+this.gd[2]+")",c.fillRect(0,0,this.b.J,this.b.I));c.save();this.$d=!0;var e=this.ab(0,0,!0,!0),g=this.ab(0,0,!1,!0);this.$d=!1;this.b.oe&&(e=Math.round(e),g=Math.round(g));this.$k(e,g,c);var f=this.mc();c.scale(f,f);c.translate(-e,-g);this.Lc?(this.tb.left=this.zb.Qb(this.qa),this.tb.top=this.zb.Rb(this.ra),this.tb.right=this.zb.Qb(this.xa),this.tb.bottom=this.zb.Rb(this.wa),this.sd||!this.tb.Ih(this.Og)?(p(this.ke),e=this.Bm(),this.sd=!1,this.Og.Dh(this.tb)):e=this.ke):
e=this.i;for(var h,k=null,g=0,f=e.length;g<f;++g)h=e[g],h!==k&&(this.sv(h,c),k=h);this.Lc&&(this.ke=e);c.restore();this.Nd&&(a.globalCompositeOperation=this.Ch,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};t.prototype.sv=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.X();var c=a.ja;c.right<this.qa||c.bottom<this.ra||c.left>this.xa||c.top>this.wa||(b.globalCompositeOperation=a.Ch,a.ae(b))}};t.prototype.yl=function(){this.$d=!0;var a=this.ab(0,0,!0,!0),b=this.ab(0,0,!1,!0);this.$d=!1;this.b.oe&&
(a=Math.round(a),b=Math.round(b));this.$k(a,b,null)};t.prototype.$k=function(a,b,c){var e=this.mc();this.qa=a;this.ra=b;this.xa=a+1/e*this.b.J;this.wa=b+1/e*this.b.I;this.qa>this.xa&&(a=this.qa,this.qa=this.xa,this.xa=a);this.ra>this.wa&&(a=this.ra,this.ra=this.wa,this.wa=a);a=this.cb();0!==a&&(c&&(c.translate(this.b.J/2,this.b.I/2),c.rotate(-a),c.translate(this.b.J/-2,this.b.I/-2)),this.ue.set(this.qa,this.ra,this.xa,this.wa),this.ue.offset((this.qa+this.xa)/-2,(this.ra+this.wa)/-2),this.ys.$r(this.ue,
a),this.ys.qp(this.ue),this.ue.offset((this.qa+this.xa)/2,(this.ra+this.wa)/2),this.qa=this.ue.left,this.ra=this.ue.top,this.xa=this.ue.right,this.wa=this.ue.bottom)};t.prototype.sg=function(a){if(this.Nd=this.Wj){this.b.fb||(this.b.fb=a.zc(this.b.J,this.b.I,this.b.Oa));if(this.b.fb.uf!==this.b.J||this.b.fb.tf!==this.b.I)a.deleteTexture(this.b.fb),this.b.fb=a.zc(this.b.J,this.b.I,this.b.Oa);a.Yc(this.b.fb)}this.$d=!0;var b=this.ab(0,0,!0,!0),c=this.ab(0,0,!1,!0);this.$d=!1;this.b.oe&&(b=Math.round(b),
c=Math.round(c));this.$k(b,c,null);b=this.mc();a.Xc();a.scale(b,b);a.al(-this.cb());a.translate((this.qa+this.xa)/-2,(this.ra+this.wa)/-2);a.Kc();this.Lc?(this.tb.left=this.zb.Qb(this.qa),this.tb.top=this.zb.Rb(this.ra),this.tb.right=this.zb.Qb(this.xa),this.tb.bottom=this.zb.Rb(this.wa),this.sd||!this.tb.Ih(this.Og)?(p(this.ke),b=this.Bm(),this.sd=!1,this.Og.Dh(this.tb)):b=this.ke):b=this.i;for(var e,g=null,c=b.length-1;0<=c;--c)e=b[c],e!==g&&(this.uv(b[c],a),g=e);this.Lc&&(this.ke=b);this.vd||(this.$l=
this.b.zf++,a.el(this.$l),a.Sr(1,1,1),a.Mp(),a.$x())};t.prototype.Qc=function(a){var b=0,c=0;if(this.Nd=this.Wj||1!==this.opacity||0<this.da.length||0!==this.Eb){this.b.fb||(this.b.fb=a.zc(this.b.J,this.b.I,this.b.Oa));if(this.b.fb.uf!==this.b.J||this.b.fb.tf!==this.b.I)a.deleteTexture(this.b.fb),this.b.fb=a.zc(this.b.J,this.b.I,this.b.Oa);a.Yc(this.b.fb);this.vd&&a.clear(0,0,0,0)}this.vd||(this.b.Ca?(a.el(this.$l),a.Sr(this.gd[0]/255,this.gd[1]/255,this.gd[2]/255),a.Mp(),a.ty()):a.clear(this.gd[0]/
255,this.gd[1]/255,this.gd[2]/255,1));this.$d=!0;var e=this.ab(0,0,!0,!0),b=this.ab(0,0,!1,!0);this.$d=!1;this.b.oe&&(e=Math.round(e),b=Math.round(b));this.$k(e,b,null);e=this.mc();a.Xc();a.scale(e,e);a.al(-this.cb());a.translate((this.qa+this.xa)/-2,(this.ra+this.wa)/-2);a.Kc();this.Lc?(this.tb.left=this.zb.Qb(this.qa),this.tb.top=this.zb.Rb(this.ra),this.tb.right=this.zb.Qb(this.xa),this.tb.bottom=this.zb.Rb(this.wa),this.sd||!this.tb.Ih(this.Og)?(p(this.ke),b=this.Bm(),this.sd=!1,this.Og.Dh(this.tb)):
b=this.ke):b=this.i;var g,f,h=null,c=0;for(g=b.length;c<g;++c)f=b[c],f!==h&&(this.tv(b[c],a),h=f);this.Lc&&(this.ke=b);this.Nd&&(b=this.da.length?this.da[0].Za:0,c=this.da.length?this.da[0].index:0,0===this.da.length||1===this.da.length&&!a.Nn(b)&&1===this.opacity?(1===this.da.length?(a.fc(b),a.dh(this.mb.Qh(),1/this.b.J,1/this.b.I,0,0,1,1,e,this.cb(),this.qa,this.ra,(this.qa+this.xa)/2,(this.ra+this.wa)/2,this.b.wb.aa,this.La[c]),a.Uk(b)&&(this.b.ta=!0)):a.fc(0),a.Yc(this.mb.Qh()),a.bh(this.opacity),
a.Jc(this.b.fb),a.hf(this.Kb,this.Fb),a.Xc(),a.Kc(),e=this.b.J/2,b=this.b.I/2,a.Mi(-e,b,e,b,e,-b,-e,-b),a.Jc(null)):this.mb.Tn(a,this,null,this.mb.Qh()))};t.prototype.tv=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.X();var c=a.ja;c.right<this.qa||c.bottom<this.ra||c.left>this.xa||c.top>this.wa||(b.el(a.zf),a.Ls?this.vv(a,b):(b.fc(0),b.hf(a.Kb,a.Fb),a.Qc(b)))}};t.prototype.uv=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.X();var c=a.ja;c.right<this.qa||c.bottom<this.ra||c.left>
this.xa||c.top>this.wa||(a.zf=this.b.zf++,0===a.Eb&&1===a.opacity&&a.re&&a.sg&&(b.el(a.zf),a.sg(b)))}};t.prototype.vv=function(a,b){var c=a.da[0].Za,e=a.da[0].index,g=this.mc();if(1!==a.da.length||b.Nn(c)||b.Tx(c)||(a.k||a.n.cb())&&b.Ji(c)||1!==a.opacity||a.type.Aa.Wq)this.mb.Tn(b,this,a,this.Nd?this.b.fb:this.mb.Qh()),b.Xc(),b.scale(g,g),b.al(-this.cb()),b.translate((this.qa+this.xa)/-2,(this.ra+this.wa)/-2),b.Kc();else{b.fc(c);b.hf(a.Kb,a.Fb);b.Uk(c)&&(this.b.ta=!0);var f=0,h=0,k=0,m=0;b.Ji(c)&&
(m=a.ja,f=this.Ha(m.left,m.top,!0,!0),h=this.Ha(m.left,m.top,!1,!0),k=this.Ha(m.right,m.bottom,!0,!0),m=this.Ha(m.right,m.bottom,!1,!0),f=f/windowWidth,h=1-h/windowHeight,k=k/windowWidth,m=1-m/windowHeight);var p;a.sb&&a.sb.rb?(p=a.sb.rb,c=1/p.width,p=1/p.height):(c=1/a.width,p=1/a.height);b.dh(this.Nd?this.b.fb:this.mb.Qh(),c,p,f,h,k,m,g,this.cb(),this.qa,this.ra,(this.qa+this.xa)/2,(this.ra+this.wa)/2,this.b.wb.aa,a.La[e]);a.Qc(b)}};t.prototype.ab=function(a,b,c,e){var g=this.b.devicePixelRatio;
this.b.If&&(a*=g,b*=g);var g=this.b.ur,f=this.b.xr,g=(this.mb.scrollX-g)*this.Yb+g,f=(this.mb.scrollY-f)*this.Zb+f,h=g,k=f,m=1/this.mc(!e);e?(h-=this.b.J*m/2,k-=this.b.I*m/2):(h-=this.b.width*m/2,k-=this.b.height*m/2);h+=a*m;k+=b*m;b=this.cb();0!==b&&(h-=g,k-=f,a=Math.cos(b),b=Math.sin(b),e=h*a-k*b,k=k*a+h*b,h=e+g,k+=f);return c?h:k};t.prototype.Ha=function(a,b,c,e){var g=this.b.ur,f=this.b.xr,h=(this.mb.scrollX-g)*this.Yb+g,k=(this.mb.scrollY-f)*this.Zb+f,f=h,g=k,m=this.cb();if(0!==m){a-=h;b-=k;
var p=Math.cos(-m),m=Math.sin(-m),q=a*p-b*m;b=b*p+a*m;a=q+h;b+=k}h=1/this.mc(!e);e?(f-=this.b.J*h/2,g-=this.b.I*h/2):(f-=this.b.width*h/2,g-=this.b.height*h/2);f=(a-f)/h;g=(b-g)/h;a=this.b.devicePixelRatio;this.b.If&&!e&&(f/=a,g/=a);return c?f:g};t.prototype.Ab=function(){var a,b,c,e={s:this.scale,a:this.k,vl:this.qa,vt:this.ra,vr:this.xa,vb:this.wa,v:this.visible,bc:this.gd,t:this.vd,px:this.Yb,py:this.Zb,o:this.opacity,zr:this.Lb,fx:[],cg:this.Fh,instances:[]};a=0;for(b=this.N.length;a<b;a++)c=
this.N[a],e.fx.push({name:c.name,active:c.xc,params:this.La[c.index]});return e};t.prototype.Ob=function(a){var b,c,e;this.scale=a.s;this.k=a.a;this.qa=a.vl;this.ra=a.vt;this.xa=a.vr;this.wa=a.vb;this.visible=a.v;this.gd=a.bc;this.vd=a.t;this.Yb=a.px;this.Zb=a.py;this.opacity=a.o;this.Lb=a.zr;this.Fh=a.cg||[];Aa(this.Ec,this.ns);var g=new da;b=0;for(e=this.Fh.length;b<e;++b)g.add(this.Fh[b]);c=b=0;for(e=this.Ec.length;b<e;++b)g.contains(this.Ec[b][2])||(this.Ec[c]=this.Ec[b],++c);za(this.Ec,c);c=
a.fx;b=0;for(e=c.length;b<e;b++)if(a=this.wm(c[b].name))a.xc=c[b].active,this.La[a.index]=c[b].params;this.wd();this.i.sort(q);this.fg=!0};Vb=t})();
(function(){function f(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function q(a,b){return a.index-b.index}function t(a){var b,c,d,h;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(q);a.length>=u.length&&(u.length=a.length+1);u[a.length]||(u[a.length]=[]);h=u[a.length];b=0;for(c=h.length;b<c;b++)if(d=h[b],f(a,d))return d;h.push(a);return a}
function r(a,b){this.b=a;this.Bs={};this.Hp={};this.Hm=!1;this.$p=new da;this.hm=[];this.Nl=[];this.name=b[0];var c=b[1];this.Me=[];var d,h;d=0;for(h=c.length;d<h;d++)this.bq(c[d],null,this.Me)}function p(a){this.type=a;this.i=[];this.Y=[];this.ya=!0}function v(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ia=[];this.jf=[];this.Yp=this.ql=this.no=this.Lm=this.group=this.hs=!1;this.kb=[];this.cd=[];this.Zc=[];this.Th="";this.Bg=this.Lm=this.group=!1;this.Aj=null;c[1]&&(this.Th=c[1][1].toLowerCase(),
this.group=!0,this.Lm=!!c[1][0],this.Aj=[],this.Bg=this.Lm,this.b.jg.push(this),this.b.Uh[this.Th]=this);this.Uc=c[2];this.W=c[4];this.group||(this.b.pp[this.W.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var h=new Wb(this,d[a]);h.index=a;this.kb.push(h);this.hp(h.type)}d=c[6];a=0;for(b=d.length;a<b;a++)h=new Xb(this,d[a]),h.index=a,this.cd.push(h);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.bq(c[a],this,this.Zc);this.pk=!1;this.kb.length&&(this.pk=null==this.kb[0].type&&
this.kb[0].ub==W.prototype.j.bt)}function g(a,b){var c,d,h;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Xb))for(c=0,d=a.kc.length;c<d;c++)h=a.kc[c],a!==h&&-1===b.indexOf(h)&&b.push(h)}function a(a,b){this.yc=a;this.sheet=a.sheet;this.b=a.b;this.T=[];this.Ma=[];this.H={};this.index=-1;this.wh=!1;this.ub=this.b.Ae(b[1]);this.trigger=0<b[3];this.Gp=2===b[3];this.Jd=b[4];this.Om=b[5];this.nx=b[6];this.W=b[7];this.b.He[this.W.toString()]=this;-1===b[0]?(this.type=null,this.Ya=this.Xn,this.sf=null,this.hd=-1):
(this.type=this.b.u[b[0]],this.Ya=this.nx?this.hy:this.Wn,b[2]?(this.sf=this.type.Zj(b[2]),this.hd=this.type.vm(b[2])):(this.sf=null,this.hd=-1),this.yc.parent&&this.yc.parent.fl());this.Gp&&(this.Ya=this.iy);if(10===b.length){var c,d,h=b[9];c=0;for(d=h.length;c<d;c++){var e=new Yb(this,h[c]);this.T.push(e)}this.Ma.length=h.length}}function c(a,b){this.yc=a;this.sheet=a.sheet;this.b=a.b;this.T=[];this.Ma=[];this.H={};this.index=-1;this.wh=!1;this.ub=this.b.Ae(b[1]);-1===b[0]?(this.type=null,this.Ya=
this.Xn,this.sf=null,this.hd=-1):(this.type=this.b.u[b[0]],this.Ya=this.Wn,b[2]?(this.sf=this.type.Zj(b[2]),this.hd=this.type.vm(b[2])):(this.sf=null,this.hd=-1));this.W=b[3];this.b.De[this.W.toString()]=this;if(6===b.length){var c,d,h=b[5];c=0;for(d=h.length;c<d;c++){var e=new Yb(this,h[c]);this.T.push(e)}this.Ma.length=h.length}}function e(){h++;w.length===h&&w.push(new Zb);return w[h]}function d(a,b){this.Vc=a;this.yc=a.yc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Dd=null;this.se=0;this.get=
null;this.wp=0;this.mb=null;this.key=0;this.object=null;this.index=0;this.bj=this.$f=this.bj=this.$f=this.Kp=this.Bf=this.cj=null;this.ad=!1;var c,d,h;switch(b[0]){case 0:case 7:this.Dd=new $b(this,b[1]);this.se=0;this.get=this.Gw;break;case 1:this.Dd=new $b(this,b[1]);this.se=0;this.get=this.Hw;break;case 5:this.Dd=new $b(this,b[1]);this.se=0;this.get=this.Lw;break;case 3:case 8:this.wp=b[1];this.get=this.Ew;break;case 6:this.mb=this.b.cn[b[1]];this.get=this.Mw;break;case 9:this.key=b[1];this.get=
this.Kw;break;case 4:this.object=this.b.u[b[1]];this.get=this.Nw;this.yc.hp(this.object);this.Vc instanceof Xb?this.yc.fl():this.yc.parent&&this.yc.parent.fl();break;case 10:this.index=b[1];a.type&&a.type.P?(this.get=this.Iw,this.ad=!0):this.get=this.Jw;break;case 11:this.cj=b[1];this.Bf=null;this.get=this.Fw;break;case 2:case 12:this.Kp=b[1];this.get=this.Dw;break;case 13:for(this.get=this.Ow,this.$f=[],this.bj=[],c=1,d=b.length;c<d;c++)h=new Yb(this.Vc,b[c]),this.$f.push(h),this.bj.push(0)}}function b(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ia=[];this.name=c[1];this.Al=c[2];this.hk=c[3];this.gi=!!c[4];this.ok=!!c[5];this.W=c[6];this.b.mh[this.W.toString()]=this;this.data=this.hk;this.parent?(this.Qf=this.gi||this.ok?-1:this.b.wy++,this.b.yu.push(this)):(this.Qf=-1,this.b.Ml.push(this))}function x(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ia=[];this.Wh=null;this.Uw=c[1];this.xc=!0}function l(){this.qs=[];this.reset(null)}var u=[];r.prototype.toString=function(){return this.name};
r.prototype.bq=function(a,b,c){switch(a[0]){case 0:a=new ac(this,b,a);if(a.Uc)for(c.push(a),c=0,b=a.kb.length;c<b;c++)a.kb[c].trigger&&this.cq(a,c);else a.nq()?this.cq(a,0):c.push(a);break;case 1:a=new Sb(this,b,a);c.push(a);break;case 2:a=new bc(this,b,a),c.push(a)}};r.prototype.Ra=function(){var a,b;a=0;for(b=this.Me.length;a<b;a++)this.Me[a].Ra(a<b-1&&this.Me[a+1].pk)};r.prototype.to=function(){M(this.hm);M(this.Nl);this.gp(this);M(this.Nl)};r.prototype.gp=function(a){var b,c,d,h,e=a.hm,g=a.Nl,
f=this.$p.nf();b=0;for(c=f.length;b<c;++b)d=f[b],h=d.Wh,!d.xc||a===h||-1<g.indexOf(h)||(g.push(h),h.gp(a),e.push(h))};r.prototype.Ya=function(a){this.b.lA||(this.Hm=!0,a||(this.b.Um=!0));var b,c;b=0;for(c=this.Me.length;b<c;b++){var d=this.Me[b];d.Ya();this.b.Zl(d.Ia);this.b.Pe&&this.b.Db()}a||(this.b.Um=!1)};r.prototype.cq=function(a,b){a.Uc||this.b.ul.push(a);var c,d,h=a.kb[b],e;h.type?e=h.type.name:e="system";var g=(c=h.Gp)?this.Hp:this.Bs;g[e]||(g[e]=[]);e=g[e];g=h.ub;if(c){if(h.T.length&&(h=
h.T[0],1===h.type&&2===h.Dd.type)){h=h.Dd.value.toLowerCase();c=0;for(d=e.length;c<d;c++)if(e[c].method==g){c=e[c].Kh;c[h]?c[h].push([a,b]):c[h]=[[a,b]];return}c={};c[h]=[[a,b]];e.push({method:g,Kh:c})}}else{c=0;for(d=e.length;c<d;c++)if(e[c].method==g){e[c].Kh.push([a,b]);return}oc&&g===oc.prototype.j.ig?e.unshift({method:g,Kh:[[a,b]]}):e.push({method:g,Kh:[[a,b]]})}};Ib=r;p.prototype.Gm=function(){return this.ya?this.type.i.length:this.i.length};p.prototype.Dc=function(){return this.ya?this.type.i:
this.i};p.prototype.Hi=function(a){a&&(a.b.Gb().Ac.Uc?(this.ya&&(M(this.i),Aa(this.Y,a.type.i),this.ya=!1),a=this.Y.indexOf(a),-1!==a&&(this.i.push(this.Y[a]),this.Y.splice(a,1))):(this.ya=!1,M(this.i),this.i[0]=a))};pb=p;window._c2hh_="98F16B2B39DCFA0DACFB4856069B10F0FDFD5BF0";v.prototype.Ra=function(a){var b,c=this.parent;if(this.group)for(this.ql=!0;c;){if(!c.group){this.ql=!1;break}c=c.parent}this.no=!this.nq()&&(!this.parent||this.parent.group&&this.parent.ql);this.Yp=!!a;this.jf=this.Ia.slice(0);
for(c=this.parent;c;){a=0;for(b=c.Ia.length;a<b;a++)this.wu(c.Ia[a]);c=c.parent}this.Ia=t(this.Ia);this.jf=t(this.jf);a=0;for(b=this.kb.length;a<b;a++)this.kb[a].Ra();a=0;for(b=this.cd.length;a<b;a++)this.cd[a].Ra();a=0;for(b=this.Zc.length;a<b;a++)this.Zc[a].Ra(a<b-1&&this.Zc[a+1].pk)};v.prototype.ny=function(a){if(this.Bg!==!!a){this.Bg=!!a;var b;a=0;for(b=this.Aj.length;a<b;++a)this.Aj[a].Gs();0<b&&this.b.ua.Af&&this.b.ua.Af.to()}};v.prototype.hp=function(a){g(a,this.Ia)};v.prototype.wu=function(a){g(a,
this.jf)};v.prototype.fl=function(){this.hs=!0;this.parent&&this.parent.fl()};v.prototype.nq=function(){return this.kb.length?this.kb[0].trigger:!1};v.prototype.Ya=function(){var a,b,c=!1,d=this.b,h=this.b.Gb();h.Ac=this;var e=this.kb;this.pk||(h.im=!1);if(this.Uc){0===e.length&&(c=!0);h.jb=0;for(a=e.length;h.jb<a;h.jb++)b=e[h.jb],b.trigger||(b=b.Ya())&&(c=!0);(h.Kf=c)&&this.bl()}else{h.jb=0;for(a=e.length;h.jb<a;h.jb++)if(b=e[h.jb].Ya(),!b){h.Kf=!1;this.no&&d.Pe&&d.Db();return}h.Kf=!0;this.bl()}this.zv(h)};
v.prototype.zv=function(a){a.Kf&&this.Yp&&(a.im=!0);this.no&&this.b.Pe&&this.b.Db()};v.prototype.fy=function(a){this.b.Gb().Ac=this;this.kb[a].Ya()&&(this.bl(),this.b.Gb().Kf=!0)};v.prototype.bl=function(){var a=this.b.Gb(),b;a.Mc=0;for(b=this.cd.length;a.Mc<b;a.Mc++)if(this.cd[a.Mc].Ya())return;this.Nr()};v.prototype.by=function(){var a=this.b.Gb(),b;for(b=this.cd.length;a.Mc<b;a.Mc++)if(this.cd[a.Mc].Ya())return;this.Nr()};v.prototype.Nr=function(){if(this.Zc.length){var a,b,c,d,h=this.Zc.length-
1;this.b.Wk(this);if(this.hs)for(a=0,b=this.Zc.length;a<b;a++)c=this.Zc[a],(d=!this.ql||!this.group&&a<h)&&this.b.Vk(c.Ia),c.Ya(),d?this.b.Vf(c.Ia):this.b.Zl(c.Ia);else for(a=0,b=this.Zc.length;a<b;a++)this.Zc[a].Ya();this.b.Rk()}};v.prototype.gy=function(){var a=this.b.Gb();a.Ac=this;var b=!1,c;a.jb=0;for(c=this.kb.length;a.jb<c;a.jb++)if(this.kb[a.jb].Ya())b=!0;else if(!this.Uc)return!1;return this.Uc?b:!0};v.prototype.cy=function(){this.b.Lh++;var a=this.b.Gb().jb,b=this.b.Wk(this);if(!this.Uc)for(b.jb=
a+1,a=this.kb.length;b.jb<a;b.jb++)if(!this.kb[b.jb].Ya()){this.b.Rk();return}this.bl();this.b.Rk()};v.prototype.bx=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.kb[b].type===a.type)return!1;return!0};ac=v;a.prototype.Ra=function(){var a,b,c;a=0;for(b=this.T.length;a<b;a++)c=this.T[a],c.Ra(),c.ad&&(this.wh=!0)};a.prototype.iy=function(){return!0};a.prototype.Xn=function(){var a,b;a=0;for(b=this.T.length;a<b;a++)this.Ma[a]=this.T[a].get();return Ta(this.ub.apply(this.b.Pd,this.Ma),
this.Om)};a.prototype.hy=function(){var a,b;a=0;for(b=this.T.length;a<b;a++)this.Ma[a]=this.T[a].get();a=this.ub.apply(this.sf?this.sf:this.type,this.Ma);this.type.fd();return a};a.prototype.Wn=function(){var a,b,c,d,h,e,g,f,l=this.type,p=l.ea(),u=this.yc.Uc&&!this.trigger;b=0;var q=l.Xb,r=l.P,t=l.de,v=this.hd,w=-1<v,x=this.wh,z=this.T,B=this.Ma,A=this.Om,S=this.ub,H;if(x)for(b=0,h=z.length;b<h;++b)e=z[b],e.ad||(B[b]=e.get(0));else for(b=0,h=z.length;b<h;++b)B[b]=z[b].get(0);if(p.ya){M(p.i);M(p.Y);
H=l.i;a=0;for(d=H.length;a<d;++a){f=H[a];if(x)for(b=0,h=z.length;b<h;++b)e=z[b],e.ad&&(B[b]=e.get(a));w?(b=0,r&&(b=f.type.wg[t]),b=S.apply(f.M[v+b],B)):b=S.apply(f,B);(g=Ta(b,A))?p.i.push(f):u&&p.Y.push(f)}l.finish&&l.finish(!0);p.ya=!1;l.fd();return p.Gm()}c=0;H=(g=u&&!this.yc.bx(this))?p.Y:p.i;var I=!1;a=0;for(d=H.length;a<d;++a){f=H[a];if(x)for(b=0,h=z.length;b<h;++b)e=z[b],e.ad&&(B[b]=e.get(a));w?(b=0,r&&(b=f.type.wg[t]),b=S.apply(f.M[v+b],B)):b=S.apply(f,B);if(Ta(b,A))if(I=!0,g){if(p.i.push(f),
q)for(b=0,h=f.siblings.length;b<h;b++)e=f.siblings[b],e.type.ea().i.push(e)}else{H[c]=f;if(q)for(b=0,h=f.siblings.length;b<h;b++)e=f.siblings[b],e.type.ea().i[c]=e;c++}else if(g){H[c]=f;if(q)for(b=0,h=f.siblings.length;b<h;b++)e=f.siblings[b],e.type.ea().Y[c]=e;c++}else if(u&&(p.Y.push(f),q))for(b=0,h=f.siblings.length;b<h;b++)e=f.siblings[b],e.type.ea().Y.push(e)}za(H,c);if(q)for(r=l.kc,a=0,d=r.length;a<d;a++)f=r[a].ea(),g?za(f.Y,c):za(f.i,c);c=I;if(g&&!I)for(a=0,d=p.i.length;a<d;a++){f=p.i[a];if(x)for(b=
0,h=z.length;b<h;b++)e=z[b],e.ad&&(B[b]=e.get(a));b=w?S.apply(f.M[v],B):S.apply(f,B);if(Ta(b,A)){I=!0;break}}l.finish&&l.finish(c||u);return u?I:p.Gm()};Wb=a;c.prototype.Ra=function(){var a,b,c;a=0;for(b=this.T.length;a<b;a++)c=this.T[a],c.Ra(),c.ad&&(this.wh=!0)};c.prototype.Xn=function(){var a=this.b,b,c,d=this.T,h=this.Ma;b=0;for(c=d.length;b<c;++b)h[b]=d[b].get();return this.ub.apply(a.Pd,h)};c.prototype.Wn=function(){var a=this.type,b=this.hd,c=a.de,d=this.wh,h=this.T,e=this.Ma,g=this.ub,f=a.ea().Dc(),
a=a.P,l=-1<b,p,u,q,r,t,v;if(d)for(u=0,r=h.length;u<r;++u)t=h[u],t.ad||(e[u]=t.get(0));else for(u=0,r=h.length;u<r;++u)e[u]=h[u].get(0);p=0;for(q=f.length;p<q;++p){v=f[p];if(d)for(u=0,r=h.length;u<r;++u)t=h[u],t.ad&&(e[u]=t.get(p));l?(u=0,a&&(u=v.type.wg[c]),g.apply(v.M[b+u],e)):g.apply(v,e)}return!1};Xb=c;var w=[],h=-1;d.prototype.Ra=function(){var a,b;if(11===this.type)this.Bf=this.b.Sp(this.cj,this.yc.parent);else if(13===this.type)for(a=0,b=this.$f.length;a<b;a++)this.$f[a].Ra();this.Dd&&this.Dd.Ra()};
d.prototype.xx=function(a){this.ad||!a||a.Aa.hl||(this.ad=!0)};d.prototype.Yr=function(){this.ad=!0};d.prototype.Gw=function(a){this.se=a||0;a=e();this.Dd.get(a);h--;return a.data};d.prototype.Hw=function(a){this.se=a||0;a=e();this.Dd.get(a);h--;return ja(a.data)?a.data:""};d.prototype.Nw=function(){return this.object};d.prototype.Ew=function(){return this.wp};d.prototype.Lw=function(a){this.se=a||0;a=e();this.Dd.get(a);h--;return a.lb()?this.b.fe(a.data):this.b.Ph(a.data)};d.prototype.Mw=function(){return this.mb};
d.prototype.Kw=function(){return this.key};d.prototype.Jw=function(){return this.index};d.prototype.Iw=function(a){a=a||0;var b=this.Vc.type,c=null,c=b.ea(),d=c.Dc();if(d.length)c=d[a%d.length].type;else if(c.Y.length)c=c.Y[a%c.Y.length].type;else if(b.i.length)c=b.i[a%b.i.length].type;else return 0;return this.index+c.Pj[b.de]};d.prototype.Fw=function(){return this.Bf};d.prototype.Dw=function(){return this.Kp};d.prototype.Ow=function(){var a,b;a=0;for(b=this.$f.length;a<b;a++)this.bj[a]=this.$f[a].get();
return this.bj};Yb=d;b.prototype.Ra=function(){this.Ia=t(this.Ia)};b.prototype.Zf=function(a){var b=this.b.Qp();this.parent&&!this.gi&&b?(this.Qf>=b.length&&(b.length=this.Qf+1),b[this.Qf]=a):this.data=a};b.prototype.Rh=function(){var a=this.b.Qp();return!this.parent||this.gi||!a||this.ok?this.data:this.Qf>=a.length||"undefined"===typeof a[this.Qf]?this.hk:a[this.Qf]};b.prototype.Ya=function(){!this.parent||this.gi||this.ok||this.Zf(this.hk)};Sb=b;x.prototype.toString=function(){return"include:"+
this.Wh.toString()};x.prototype.Ra=function(){this.Wh=this.b.lm[this.Uw];this.sheet.$p.add(this);this.Ia=t(this.Ia);for(var a=this.parent;a;)a.group&&a.Aj.push(this),a=a.parent;this.Gs()};x.prototype.Ya=function(){this.parent&&this.b.Li(this.b.u);this.Wh.Hm||this.Wh.Ya(!0);this.parent&&this.b.Vf(this.b.u)};x.prototype.Gs=function(){for(var a=this.parent;a;){if(a.group&&!a.Bg){this.xc=!1;return}a=a.parent}this.xc=!0};bc=x;l.prototype.reset=function(a){this.Ac=a;this.Mc=this.jb=0;M(this.qs);this.im=
this.Kf=!1};Rb=l})();
(function(){function f(g,a){this.Vc=g;this.b=g.b;this.type=a[0];this.get=[this.Rv,this.Nv,this.$v,this.cw,this.Cv,this.aw,this.Vv,this.Kv,this.Uv,this.Zv,this.Dv,this.Yv,this.Lv,this.Wv,this.Sv,this.Tv,this.Ov,this.Pv,this.Jv,this.bw,this.Xv,this.Qv,this.Iv,this.Mv][this.type];var c=null;this.le=this.T=this.Ma=this.ub=this.ol=this.second=this.first=this.value=null;this.hd=-1;this.kd=null;this.Ms=-1;this.Bf=this.cj=null;this.ah=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new $b(g,a[1]);break;case 18:this.first=new $b(g,a[1]);this.second=new $b(g,a[2]);this.ol=new $b(g,a[3]);break;case 19:this.ub=this.b.Ae(a[1]);this.ub!==W.prototype.Da.random&&this.ub!==W.prototype.Da.Ou||this.Vc.Yr();this.Ma=[];this.T=[];3===a.length?(c=a[2],this.Ma.length=c.length+1):this.Ma.length=1;break;case 20:this.le=this.b.u[a[1]];this.hd=-1;this.ub=this.b.Ae(a[2]);this.ah=a[3];ec.Function&&this.ub===ec.Function.prototype.Da.Fo&&this.Vc.Yr();a[4]?this.kd=new $b(g,a[4]):this.kd=null;this.Ma=
[];this.T=[];6===a.length?(c=a[5],this.Ma.length=c.length+1):this.Ma.length=1;break;case 21:this.le=this.b.u[a[1]];this.ah=a[2];a[3]?this.kd=new $b(g,a[3]):this.kd=null;this.Ms=a[4];break;case 22:this.le=this.b.u[a[1]];this.le.Zj(a[2]);this.hd=this.le.vm(a[2]);this.ub=this.b.Ae(a[3]);this.ah=a[4];a[5]?this.kd=new $b(g,a[5]):this.kd=null;this.Ma=[];this.T=[];7===a.length?(c=a[6],this.Ma.length=c.length+1):this.Ma.length=1;break;case 23:this.cj=a[1],this.Bf=null}this.Vc.xx(this.le);4<=this.type&&17>=
this.type&&(this.first=new $b(g,a[1]),this.second=new $b(g,a[2]));if(c){var e,d;e=0;for(d=c.length;e<d;e++)this.T.push(new $b(g,c[e]))}}function q(){++v;p.length===v&&p.push(new Zb);return p[v]}function t(g,a,c){var e,d;e=0;for(d=g.length;e<d;++e)g[e].get(c),a[e+1]=c.data}function r(g,a){this.type=g||cc.hg;this.data=a||0;this.Tf=null;this.type==cc.hg&&(this.data=Math.floor(this.data))}f.prototype.Ra=function(){23===this.type&&(this.Bf=this.Vc.b.Sp(this.cj,this.Vc.yc.parent));this.first&&this.first.Ra();
this.second&&this.second.Ra();this.ol&&this.ol.Ra();this.kd&&this.kd.Ra();if(this.T){var g,a;g=0;for(a=this.T.length;g<a;g++)this.T[g].Ra()}};var p=[],v=-1;f.prototype.bw=function(g){var a=this.T,c=this.Ma;c[0]=g;g=q();t(a,c,g);--v;this.ub.apply(this.b.Pd,c)};f.prototype.Xv=function(g){var a=this.le,c=this.Ma,e=this.T,d=this.kd,b=this.ub,f=this.Vc.se,l=a.ea(),p=l.Dc();if(!p.length)if(l.Y.length)p=l.Y;else{this.ah?g.uc(""):g.Ba(0);return}c[0]=g;g.Tf=a;g=q();t(e,c,g);d&&(d.get(g),g.lb()&&(f=g.data,
p=a.i));--v;a=p.length;if(f>=a||f<=-a)f%=a;0>f&&(f+=a);b.apply(p[f],c)};f.prototype.Iv=function(g){var a=this.le,c=this.Ma,e=this.T,d=this.kd,b=this.hd,f=this.ub,l=this.Vc.se,p=a.ea(),r=p.Dc();if(!r.length)if(p.Y.length)r=p.Y;else{this.ah?g.uc(""):g.Ba(0);return}c[0]=g;g.Tf=a;g=q();t(e,c,g);d&&(d.get(g),g.lb()&&(l=g.data,r=a.i));--v;e=r.length;if(l>=e||l<=-e)l%=e;0>l&&(l+=e);l=r[l];r=0;a.P&&(r=l.type.wg[a.de]);f.apply(l.M[b+r],c)};f.prototype.Qv=function(g){var a=this.kd,c=this.le,e=this.Ms,d=this.Vc.se,
b=c.ea(),f=b.Dc();if(!f.length)if(b.Y.length)f=b.Y;else{this.ah?g.uc(""):g.Ba(0);return}if(a){b=q();a.get(b);if(b.lb()){d=b.data;f=c.i;0!==f.length&&(d%=f.length,0>d&&(d+=f.length));d=c.zm(d);c=d.eb[e];ja(c)?g.uc(c):g.D(c);--v;return}--v}a=f.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=f[d];f=0;c.P&&(f=d.type.Pj[c.de]);c=d.eb[e+f];ja(c)?g.uc(c):g.D(c)};f.prototype.Rv=function(g){g.type=cc.hg;g.data=this.value};f.prototype.Nv=function(g){g.type=cc.gg;g.data=this.value};f.prototype.$v=function(g){g.type=
cc.String;g.data=this.value};f.prototype.cw=function(g){this.first.get(g);g.lb()&&(g.data=-g.data)};f.prototype.Cv=function(g){this.first.get(g);var a=q();this.second.get(a);g.lb()&&a.lb()&&(g.data+=a.data,a.Fg()&&g.Qg());--v};f.prototype.aw=function(g){this.first.get(g);var a=q();this.second.get(a);g.lb()&&a.lb()&&(g.data-=a.data,a.Fg()&&g.Qg());--v};f.prototype.Vv=function(g){this.first.get(g);var a=q();this.second.get(a);g.lb()&&a.lb()&&(g.data*=a.data,a.Fg()&&g.Qg());--v};f.prototype.Kv=function(g){this.first.get(g);
var a=q();this.second.get(a);g.lb()&&a.lb()&&(g.data/=a.data,g.Qg());--v};f.prototype.Uv=function(g){this.first.get(g);var a=q();this.second.get(a);g.lb()&&a.lb()&&(g.data%=a.data,a.Fg()&&g.Qg());--v};f.prototype.Zv=function(g){this.first.get(g);var a=q();this.second.get(a);g.lb()&&a.lb()&&(g.data=Math.pow(g.data,a.data),a.Fg()&&g.Qg());--v};f.prototype.Dv=function(g){this.first.get(g);var a=q();this.second.get(a);a.Ig()||g.Ig()?this.Fv(g,a):this.Ev(g,a);--v};f.prototype.Fv=function(g,a){g.Ig()&&
a.Ig()?this.Hv(g,a):this.Gv(g,a)};f.prototype.Hv=function(g,a){g.data+=a.data};f.prototype.Gv=function(g,a){g.Ig()?g.data+=(Math.round(1E10*a.data)/1E10).toString():g.uc(g.data.toString()+a.data)};f.prototype.Ev=function(g,a){g.Ba(g.data&&a.data?1:0)};f.prototype.Yv=function(g){this.first.get(g);var a=q();this.second.get(a);g.lb()&&a.lb()&&(g.data||a.data?g.Ba(1):g.Ba(0));--v};f.prototype.Jv=function(g){this.first.get(g);g.data?this.second.get(g):this.ol.get(g)};f.prototype.Lv=function(g){this.first.get(g);
var a=q();this.second.get(a);g.Ba(g.data===a.data?1:0);--v};f.prototype.Wv=function(g){this.first.get(g);var a=q();this.second.get(a);g.Ba(g.data!==a.data?1:0);--v};f.prototype.Sv=function(g){this.first.get(g);var a=q();this.second.get(a);g.Ba(g.data<a.data?1:0);--v};f.prototype.Tv=function(g){this.first.get(g);var a=q();this.second.get(a);g.Ba(g.data<=a.data?1:0);--v};f.prototype.Ov=function(g){this.first.get(g);var a=q();this.second.get(a);g.Ba(g.data>a.data?1:0);--v};f.prototype.Pv=function(g){this.first.get(g);
var a=q();this.second.get(a);g.Ba(g.data>=a.data?1:0);--v};f.prototype.Mv=function(g){var a=this.Bf.Rh();ia(a)?g.D(a):g.uc(a)};$b=f;r.prototype.Fg=function(){return this.type===cc.gg};r.prototype.lb=function(){return this.type===cc.hg||this.type===cc.gg};r.prototype.Ig=function(){return this.type===cc.String};r.prototype.Qg=function(){this.Fg()||(this.Ig()&&(this.data=parseFloat(this.data)),this.type=cc.gg)};r.prototype.Ba=function(g){this.type=cc.hg;this.data=Math.floor(g)};r.prototype.D=function(g){this.type=
cc.gg;this.data=g};r.prototype.uc=function(g){this.type=cc.String;this.data=g};r.prototype.co=function(g){ia(g)?(this.type=cc.gg,this.data=g):ja(g)?(this.type=cc.String,this.data=g.toString()):(this.type=cc.hg,this.data=0)};Zb=r;cc={hg:0,gg:1,String:2}})();function W(f){this.b=f;this.wc=[]}
W.prototype.Ab=function(){var f={},q,t,r,p,v,g,a,c;f.waits=[];var e=f.waits,d;q=0;for(t=this.wc.length;q<t;q++){g=this.wc[q];d={t:g.time,st:g.vy,s:g.ds,ev:g.Jh.W,sm:[],sols:{}};g.Jh.cd[g.Mc]&&(d.act=g.Jh.cd[g.Mc].W);r=0;for(p=g.Ia.length;r<p;r++)d.sm.push(g.Ia[r].W);for(v in g.vc)if(g.vc.hasOwnProperty(v)){a=this.b.u[parseInt(v,10)];c={sa:g.vc[v].Or,insts:[]};r=0;for(p=g.vc[v].Hf.length;r<p;r++)c.insts.push(g.vc[v].Hf[r].uid);d.sols[a.W.toString()]=c}e.push(d)}return f};
W.prototype.Ob=function(f){f=f.waits;var q,t,r,p,v,g,a,c,e,d,b;M(this.wc);q=0;for(t=f.length;q<t;q++)if(g=f[q],c=this.b.pp[g.ev.toString()]){e=-1;r=0;for(p=c.cd.length;r<p;r++)if(c.cd[r].W===g.act){e=r;break}if(-1!==e){a={vc:{},Ia:[],Cp:!1};a.time=g.t;a.vy=g.st||"";a.ds=!!g.s;a.Jh=c;a.Mc=e;r=0;for(p=g.sm.length;r<p;r++)(c=this.b.dk(g.sm[r]))&&a.Ia.push(c);for(v in g.sols)if(g.sols.hasOwnProperty(v)&&(c=this.b.dk(parseInt(v,10)))){e=g.sols[v];d={Or:e.sa,Hf:[]};r=0;for(p=e.insts.length;r<p;r++)(b=this.b.Df(e.insts[r]))&&
d.Hf.push(b);a.vc[c.index.toString()]=d}this.wc.push(a)}}};
(function(){function f(){}function q(){}function t(){}var r=W.prototype;f.prototype.dt=function(){return!0};f.prototype.Qo=function(){return!0};f.prototype.Kt=function(){return!0};f.prototype.mu=function(){var g=this.b.$j().H;"undefined"===typeof g.TriggerOnce_lastTick&&(g.TriggerOnce_lastTick=-1);var a=g.TriggerOnce_lastTick,c=this.b.ud;g.TriggerOnce_lastTick=c;return this.b.bn||a!==c-1};f.prototype.ct=function(g){var a=this.b.$j(),c=a.H.Every_lastTime||0,e=this.b.wb.aa;"undefined"===typeof a.H.Every_seconds&&
(a.H.Every_seconds=g);var d=a.H.Every_seconds;if(e>=c+d)return a.H.Every_lastTime=c+d,e>=a.H.Every_lastTime+.04&&(a.H.Every_lastTime=e),a.H.Every_seconds=g,!0;e<c-.1&&(a.H.Every_lastTime=e);return!1};f.prototype.Xs=function(g,a,c){return dc(g.Rh(),a,c)};f.prototype.jt=function(g){return(g=this.b.Uh[g.toLowerCase()])&&g.Bg};f.prototype.bt=function(){var g=this.b.Gb();return g.im?!1:!g.Kf};f.prototype.Ro=function(){return!0};f.prototype.zt=function(){return!0};f.prototype.El=function(){return!0};f.prototype.Xo=
function(){return!0};f.prototype.Lt=function(){return!0};f.prototype.jj=function(){return!0};f.prototype.Qs=function(g,a,c){return Ma(T(g),T(c))<=T(a)};f.prototype.it=function(g,a){return Pa(T(g),T(a))};f.prototype.gt=function(g,a,c){g=Ka(g);a=Ka(a);c=Ka(c);return Pa(c,a)?Pa(g,a)&&!Pa(g,c):!(!Pa(g,a)&&Pa(g,c))};r.j=new f;q.prototype.Zs=function(g,a,c,e){if(a&&g&&(a=this.b.dm(g,a,c,e))){this.b.md++;var d;this.b.trigger(Object.getPrototypeOf(g.Aa).j.sh,a);if(a.Xb)for(c=0,e=a.siblings.length;c<e;c++)d=
a.siblings[c],this.b.trigger(Object.getPrototypeOf(d.type.Aa).j.sh,d);this.b.md--;g=g.ea();g.ya=!1;M(g.i);g.i[0]=a;if(a.Xb)for(c=0,e=a.siblings.length;c<e;c++)d=a.siblings[c],g=d.type.ea(),g.ya=!1,M(g.i),g.i[0]=d}};q.prototype.hu=function(g,a){0===g.Al?ia(a)?g.Zf(a):g.Zf(parseFloat(a)):1===g.Al&&g.Zf(a.toString())};q.prototype.Os=function(g,a){0===g.Al?ia(a)?g.Zf(g.Rh()+a):g.Zf(g.Rh()+parseFloat(a)):1===g.Al&&g.Zf(g.Rh()+a.toString())};q.prototype.gu=function(g){0>g&&(g=0);this.b.dg=g};var p=[],v=
[];q.prototype.au=function(){var g,a,c;g=0;for(a=this.b.Ml.length;g<a;g++)c=this.b.Ml[g],c.data=c.hk};r.U=new q;t.prototype["int"]=function(g,a){ja(a)?(g.Ba(parseInt(a,10)),isNaN(g.data)&&(g.data=0)):g.Ba(a)};t.prototype["float"]=function(g,a){ja(a)?(g.D(parseFloat(a)),isNaN(g.data)&&(g.data=0)):g.D(a)};t.prototype.random=function(g,a,c){void 0===c?g.D(Math.random()*a):g.D(Math.random()*(c-a)+a)};t.prototype.sqrt=function(g,a){g.D(Math.sqrt(a))};t.prototype.abs=function(g,a){g.D(Math.abs(a))};t.prototype.round=
function(g,a){g.Ba(Math.round(a))};t.prototype.floor=function(g,a){g.Ba(Math.floor(a))};t.prototype.ceil=function(g,a){g.Ba(Math.ceil(a))};t.prototype.sin=function(g,a){g.D(Math.sin(T(a)))};t.prototype.cos=function(g,a){g.D(Math.cos(T(a)))};t.prototype.tan=function(g,a){g.D(Math.tan(T(a)))};t.prototype.asin=function(g,a){g.D(Ga(Math.asin(a)))};t.prototype.acos=function(g,a){g.D(Ga(Math.acos(a)))};t.prototype.atan=function(g,a){g.D(Ga(Math.atan(a)))};t.prototype.exp=function(g,a){g.D(Math.exp(a))};
t.prototype.log10=function(g,a){g.D(Math.log(a)/Math.LN10)};t.prototype.max=function(g){var a=arguments[1];"number"!==typeof a&&(a=0);var c,e,d;c=2;for(e=arguments.length;c<e;c++)d=arguments[c],"number"===typeof d&&a<d&&(a=d);g.D(a)};t.prototype.min=function(g){var a=arguments[1];"number"!==typeof a&&(a=0);var c,e,d;c=2;for(e=arguments.length;c<e;c++)d=arguments[c],"number"===typeof d&&a>d&&(a=d);g.D(a)};t.prototype.xf=function(g){g.D(this.b.xf)};t.prototype.dg=function(g){g.D(this.b.dg)};t.prototype.time=
function(g){g.D(this.b.wb.aa)};t.prototype.ud=function(g){g.Ba(this.b.ud)};t.prototype.Ik=function(g){g.Ba(this.b.Ik)};t.prototype.rm=function(g){g.Ba(this.b.rm)};t.prototype.k=function(g,a,c,e,d){g.D(Ga(La(a,c,e,d)))};t.prototype.qx=function(g){g.Ba(this.b.ua.width)};t.prototype.left=function(g,a,c){g.uc(ja(a)?a.substr(0,c):"")};t.prototype.right=function(g,a,c){g.uc(ja(a)?a.substr(a.length-c):"")};t.prototype.replace=function(g,a,c,e){ja(a)&&ja(c)&&ja(e)?g.uc(a.replace(new RegExp(cb(c),"gi"),e)):
g.uc(ja(a)?a:"")};t.prototype.trim=function(g,a){g.uc(ja(a)?a.trim():"")};t.prototype.Ou=function(g){var a=C(Math.random()*(arguments.length-1));g.co(arguments[a+1])};t.prototype.cm=function(g){g.D(this.b.cm/1E3)};t.prototype.zk=function(g){g.D(this.b.zk)};r.Da=new t;r.ey=function(){var g,a,c,e,d,b,f=this.b.Gb();g=0;for(c=this.wc.length;g<c;g++){e=this.wc[g];if(-1===e.time){if(!e.ds)continue}else if(e.time>this.b.wb.aa)continue;f.Ac=e.Jh;f.Mc=e.Mc;f.jb=0;for(a in e.vc)e.vc.hasOwnProperty(a)&&(d=this.b.u[parseInt(a,
10)].ea(),b=e.vc[a],d.ya=b.Or,Aa(d.i,b.Hf),d=b,M(d.Hf),v.push(d));e.Jh.by();this.b.Zl(e.Ia);e.Cp=!0}a=g=0;for(c=this.wc.length;g<c;g++)e=this.wc[g],this.wc[a]=e,e.Cp?(Va(e.vc),M(e.Ia),p.push(e)):a++;za(this.wc,a)}})();
(function(){mb=function(f,t){var r=f[1],p=f[3],v=f[4],g=f[5],a=f[6],c=f[7],e=f[8];t.j||(t.j={});t.U||(t.U={});t.Da||(t.Da={});var d=t.j,b=t.U,x=t.Da;p&&(d.Ys=function(a,b){return dc(this.x,a,b)},d.Zy=function(a,b){return dc(this.y,a,b)},d.dz=function(){var a=this.n;this.X();var b=this.ja;return!(b.right<a.qa||b.bottom<a.ra||b.left>a.xa||b.top>a.wa)},d.ez=function(){this.X();var a=this.ja,b=this.b.ua;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.pz=function(a,b,c){var d=this.ea(),
e=d.Dc();if(!e.length)return!1;var g=e[0],f=g,p=Sa(g.x,g.y,b,c),r,q,t;r=1;for(q=e.length;r<q;r++)if(g=e[r],t=Sa(g.x,g.y,b,c),0===a&&t<p||1===a&&t>p)p=t,f=g;d.Hi(f);return!0},b.Iz=function(a){this.x!==a&&(this.x=a,this.q())},b.Jz=function(a){this.y!==a&&(this.y=a,this.q())},b.Ez=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.q()},b.Fz=function(a,b){var c=a.xw(this);if(c){var d;c.ym?(d=c.ym(b,!0),c=c.ym(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.q()}},b.iz=
function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.q())},b.hz=function(a,b){0!==b&&(this.x+=Math.cos(T(a))*b,this.y+=Math.sin(T(a))*b,this.q())},x.Hl=function(a){a.D(this.x)},x.Il=function(a){a.D(this.y)},x.xf=function(a){a.D(this.b.bk(this))});v&&(d.Yy=function(a,b){return dc(this.width,a,b)},d.Vy=function(a,b){return dc(this.height,a,b)},b.ku=function(a){this.width!==a&&(this.width=a,this.q())},b.Bz=function(a){this.height!==a&&(this.height=a,this.q())},b.Gz=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.q()},x.nu=function(a){a.D(this.width)},x.az=function(a){a.D(this.height)},x.Sy=function(a){this.X();a.D(this.ja.left)},x.Uy=function(a){this.X();a.D(this.ja.top)},x.Ty=function(a){this.X();a.D(this.ja.right)},x.Ry=function(a){this.X();a.D(this.ja.bottom)});g&&(d.Qs=function(a,b){return Ma(this.k,T(b))<=T(a)},d.it=function(a){return Pa(this.k,T(a))},d.gt=function(a,b){var c=Ka(a),d=Ka(b),e=Ia(this.k);return Pa(d,c)?Pa(e,c)&&!Pa(e,
d):!(!Pa(e,c)&&Pa(e,d))},b.yz=function(a){a=T(Ha(a));isNaN(a)||this.k===a||(this.k=a,this.q())},b.uz=function(a){0===a||isNaN(a)||(this.k+=T(a),this.k=Ia(this.k),this.q())},b.vz=function(a){0===a||isNaN(a)||(this.k-=T(a),this.k=Ia(this.k),this.q())},b.wz=function(a,b){var c=Oa(this.k,T(b),T(a));isNaN(c)||this.k===c||(this.k=c,this.q())},b.xz=function(a,b,c){a=Oa(this.k,Math.atan2(c-this.y,b-this.x),T(a));isNaN(a)||this.k===a||(this.k=a,this.q())},b.Hz=function(a,b){var c=Math.atan2(b-this.y,a-this.x);
isNaN(c)||this.k===c||(this.k=c,this.q())},x.Qy=function(a){a.D(Ja(this.k))});r||(d.Wy=function(a,b,c){return dc(this.eb[a],b,c)},d.ht=function(a){return this.eb[a]},d.qz=function(a,b){var c=this.ea(),d=c.Dc();if(!d.length)return!1;var e=d[0],g=e,f=e.eb[b],p,r,q;p=1;for(r=d.length;p<r;p++)if(e=d[p],q=e.eb[b],0===a&&q<f||1===a&&q>f)f=q,g=e;c.Hi(g);return!0},d.oz=function(a){var b,c,d,e,g;if(this.b.$j().Om){g=this.ea();if(g.ya)for(g.ya=!1,M(g.i),M(g.Y),d=this.i,b=0,c=d.length;b<c;b++)e=d[b],e.uid===
a?g.Y.push(e):g.i.push(e);else{d=b=0;for(c=g.i.length;b<c;b++)e=g.i[b],g.i[d]=e,e.uid===a?g.Y.push(e):d++;za(g.i,d)}this.fd();return!!g.i.length}e=this.b.Df(a);if(!e)return!1;g=this.ea();if(!g.ya&&-1===g.i.indexOf(e))return!1;if(this.P)for(a=e.type.Ga,b=0,c=a.length;b<c;b++){if(a[b]===this)return g.Hi(e),this.fd(),!0}else if(e.type===this)return g.Hi(e),this.fd(),!0;return!1},d.sh=function(){return!0},d.Io=function(){return!0},b.Cz=function(a,b){var c=this.eb;ia(c[a])?c[a]=ia(b)?b:parseFloat(b):ja(c[a])&&
(c[a]=ja(b)?b:b.toString())},b.Py=function(a,b){var c=this.eb;ia(c[a])?c[a]=ia(b)?c[a]+b:c[a]+parseFloat(b):ja(c[a])&&(c[a]=ja(b)?c[a]+b:c[a]+b.toString())},b.Kz=function(a,b){var c=this.eb;ia(c[a])&&(c[a]=ia(b)?c[a]-b:c[a]-parseFloat(b))},b.cu=function(a,b){this.eb[a]=b?1:0},b.Lz=function(a){this.eb[a]=1-this.eb[a]},b.$s=function(){this.b.of(this)},b.nt||(b.nt=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.xk(this,b,!0);this.zd&&this.zd();if(this.M)for(a=0,b=this.M.length;a<b;++a)c=
this.M[a],c.zd&&c.zd()}),x.$y=function(a){var b=a.Tf.i.length,c,d,e;c=0;for(d=this.b.jd.length;c<d;c++)e=this.b.jd[c],a.Tf.P?0<=e.type.Ga.indexOf(a.Tf)&&b++:e.type===a.Tf&&b++;a.Ba(b)},x.sz=function(a){a.Ba(a.Tf.ea().Dc().length)},x.Mz=function(a){a.Ba(this.uid)},x.bz=function(a){a.Ba(this.Sh())},x.Rs||(x.Rs=function(a){a.uc(JSON.stringify(this.b.Yn(this,!0)))}));a&&(d.kt=function(){return this.visible},b.ju=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ta=!0)},d.Xy=function(a,b){return dc(ib(100*
this.opacity),a,b)},b.Dz=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ta=!0)},x.Opacity=function(a){a.D(ib(100*this.opacity))});c&&(d.cz=function(a){return a?this.n===a:!1},d.rz=function(a){var b=this.ea(),c=b.Dc();if(!c.length)return!1;var d=c[0],e=d,g,f;g=1;for(f=c.length;g<f;g++)if(d=c[g],0===a){if(d.n.index>e.n.index||d.n.index===e.n.index&&d.Fd()>e.Fd())e=d}else if(d.n.index<e.n.index||d.n.index===e.n.index&&d.Fd()<e.Fd())e=d;b.Hi(e);return!0},b.lz=function(){var a=
this.n,b=a.i;b.length&&b[b.length-1]===this||(a.$g(this,!1),a.yh(this,!1),this.b.ta=!0)},b.jz=function(){var a=this.n,b=a.i;b.length&&b[0]===this||(a.$g(this,!1),a.Rx(this),this.b.ta=!0)},b.kz=function(a){a&&a!=this.n&&(this.n.$g(this,!0),this.n=a,a.yh(this,!0),this.b.ta=!0)},b.Oz=function(a,b){var c=0===a;if(b){var d=b.Tp(this);d&&d.uid!==this.uid&&(this.n.index!==d.n.index&&(this.n.$g(this,!0),this.n=d.n,d.n.yh(this,!0)),this.n.yx(this,d,c),this.b.ta=!0)}},x.gz=function(a){a.Ba(this.n.cr)},x.fz=
function(a){a.uc(this.n.name)},x.Nz=function(a){a.Ba(this.Fd())});e&&(b.zz=function(a,b){if(this.b.C){var c=this.type.xm(b);if(!(0>c)){var d=1===a;this.Ce[c]!==d&&(this.Ce[c]=d,this.wd(),this.b.ta=!0)}}},b.Az=function(a,b,c){if(this.b.C){var d=this.type.xm(a);0>d||(a=this.type.N[d],d=this.La[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.C.Bw(a.Za,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.xc&&(this.b.ta=!0))))}})};Jb=function(){this.Tl=this.Pl=!0;this.type.qj=!0;this.b.ta=!0;var f,t,r=this.Ql;f=0;for(t=
r.length;f<t;++f)r[f](this);this.n.Lc&&this.X()};Kb=function(f){f&&this.Ql.push(f)};Mb=function(){if(this.Pl){var f=this.ja,t=this.Ub;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.nc*this.width,-this.oc*this.height);this.k?(f.offset(-this.x,-this.y),t.$r(f,this.k),t.offset(this.x,this.y),t.qp(f)):t.Ri(f);f.normalize();this.Pl=!1;this.Hy()}};var f=new va(0,0,0,0);Nb=function(){if(this.n.Lc){var q=this.n.zb,t=this.ja;f.set(q.Qb(t.left),q.Rb(t.top),q.Qb(t.right),q.Rb(t.bottom));
this.ac.Ih(f)||(this.ac.right<this.ac.left?q.update(this,null,f):q.update(this,this.ac,f),this.ac.Dh(f),this.n.sd=!0)}};Ob=function(){if(this.Tl&&this.Wd){this.X();var q=this.type.zj,t=this.ja;f.set(q.Qb(t.left),q.Rb(t.top),q.Qb(t.right),q.Rb(t.bottom));this.Ie.Ih(f)||(this.Ie.right<this.Ie.left?q.update(this,null,f):q.update(this,this.Ie,f),this.Ie.Dh(f),this.Tl=!1)}};Lb=function(f,t){return this.ja.Mb(f,t)&&this.Ub.Mb(f,t)?this.ih?this.nA(f,t):this.ka&&!this.ka.Eg()?(this.ka.mg(this.width,this.height,
this.k),this.ka.Mb(f-this.x,t-this.y)):!0:!1};Fb=function(){this.type.wl();return this.Gf};Pb=function(){this.n.vo();return this.xd};Qb=function(){M(this.da);var f,t,r,p=!0;f=0;for(t=this.Ce.length;f<t;f++)this.Ce[f]&&(r=this.type.N[f],this.da.push(r),r.od||(p=!1));this.Ls=!!this.da.length;this.re=p};Gb=function(){return"Inst"+this.Hr};rb=function(f){if(f&&f.Xb&&f.type!=this){var t,r,p;t=0;for(r=f.siblings.length;t<r;t++)if(p=f.siblings[t],p.type==this)return p}f=this.ea().Dc();return f.length?f[0]:
null};sb=function(f){var t=this.ea().Dc();return t.length?t[f.Sh()%t.length]:null};qb=function(){if(this.gh&&!this.P){var f,t;f=0;for(t=this.i.length;f<t;f++)this.i[f].Gf=f;var r=f,p=this.b.jd;f=0;for(t=p.length;f<t;++f)p[f].type===this&&(p[f].Gf=r++);this.gh=!1}};Bb=function(f){if(f<this.i.length)return this.i[f];f-=this.i.length;var t=this.b.jd,r,p;r=0;for(p=t.length;r<p;++r)if(t[r].type===this){if(0===f)return t[r];--f}return null};tb=function(){return this.te[this.Bd]};ub=function(){this.Bd++;
this.Bd===this.te.length?this.te.push(new pb(this)):(this.te[this.Bd].ya=!0,M(this.te[this.Bd].Y))};vb=function(){this.Bd++;this.Bd===this.te.length&&this.te.push(new pb(this));var f=this.te[this.Bd],t=this.te[this.Bd-1];t.ya?f.ya=!0:(f.ya=!1,Aa(f.i,t.i));M(f.Y)};wb=function(){this.Bd--};xb=function(f){var t,r,p,v,g,a=0;if(!this.P)for(t=0,r=this.Ga.length;t<r;t++)for(g=this.Ga[t],p=0,v=g.Ja.length;p<v;p++){if(f===g.Ja[p].name)return this.H.lastBehIndex=a,g.Ja[p];a++}t=0;for(r=this.Ja.length;t<r;t++){if(f===
this.Ja[t].name)return this.H.lastBehIndex=a,this.Ja[t];a++}return null};yb=function(f){return this.Zj(f)?this.H.lastBehIndex:-1};zb=function(f){var t,r;t=0;for(r=this.N.length;t<r;t++)if(this.N[t].name===f)return t;return-1};Ab=function(){if(this.Xb&&!this.P){var f,t,r,p,v,g,a;this.wl();g=this.ea();var c=g.ya,e=(f=this.b.Gb())&&f.Ac&&f.Ac.Uc;f=0;for(t=this.kc.length;f<t;f++)if(v=this.kc[f],v!==this&&(v.wl(),a=v.ea(),a.ya=c,!c)){M(a.i);r=0;for(p=g.i.length;r<p;++r)a.i[r]=v.zm(g.i[r].Gf);if(e)for(M(a.Y),
r=0,p=g.Y.length;r<p;++r)a.Y[r]=v.zm(g.Y[r].Gf)}}};Cb=function(){return"Type"+this.W};dc=function(f,t,r){if("undefined"===typeof f||"undefined"===typeof r)return!1;switch(t){case 0:return f===r;case 1:return f!==r;case 2:return f<r;case 3:return f<=r;case 4:return f>r;case 5:return f>=r;default:return!1}}})();var mc={};function pc(f){this.b=f}
(function(){function f(a){-1===nb.indexOf(a)&&nb.push(a)}function q(a){var b=a.p,c;try{c=b.play()}catch(d){f(a);return}c?c.catch(function(){f(a)}):Ec&&!y.Va&&f(a)}function t(){var a,b,c,d;Fc||na||!z||(r(),"running"===z.state&&(Fc=!0));var e=nb.slice(0);M(nb);if(!O)for(a=0,b=e.length;a<b;++a)c=e[a],c.ec||c.pc||(d=c.p.play())&&d.catch(function(){f(c)})}function r(){"suspended"===z.state&&z.resume&&z.resume();if(z.createBuffer){var a=z.createBuffer(1,220,22050),b=z.createBufferSource();b.buffer=a;b.connect(z.destination);
c(b)}}function p(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function v(a){a=a.toLowerCase();return Y.hasOwnProperty(a)&&Y[a].length?Y[a][0].Cc():z.destination}function g(){return z.createGain?z.createGain():z.createGainNode()}function a(a){return z.createDelay?z.createDelay(a):z.createDelayNode(a)}function c(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function e(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||0,b,c-b)}function d(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function b(a,
b,c,d,e,h){this.type="filter";this.pb=[a,b,c,d,e,h];this.Z=g();this.L=g();this.L.gain.value=h;this.K=g();this.K.gain.value=1-h;this.Ua=z.createBiquadFilter();this.Ua.type="number"===typeof this.Ua.type?a:Hc[a];this.Ua.frequency.value=b;this.Ua.detune&&(this.Ua.detune.value=c);this.Ua.Q.value=d;this.Ua.gain.value=e;this.Z.connect(this.Ua);this.Z.connect(this.K);this.Ua.connect(this.L)}function x(b,c,d){this.type="delay";this.pb=[b,c,d];this.Z=g();this.L=g();this.L.gain.value=d;this.K=g();this.K.gain.value=
1-d;this.yi=g();this.Pc=a(b);this.Pc.delayTime.value=b;this.Ij=g();this.Ij.gain.value=c;this.Z.connect(this.yi);this.Z.connect(this.K);this.yi.connect(this.L);this.yi.connect(this.Pc);this.Pc.connect(this.Ij);this.Ij.connect(this.yi)}function l(a,b,c,d){this.type="convolve";this.pb=[b,c,d];this.Z=g();this.L=g();this.L.gain.value=c;this.K=g();this.K.gain.value=1-c;this.vf=z.createConvolver();a&&(this.vf.normalize=b,this.vf.buffer=a);this.Z.connect(this.vf);this.Z.connect(this.K);this.vf.connect(this.L)}
function u(b,d,e,h,k){this.type="flanger";this.pb=[b,d,e,h,k];this.Z=g();this.K=g();this.K.gain.value=1-k/2;this.L=g();this.L.gain.value=k/2;this.Qj=g();this.Qj.gain.value=h;this.Pc=a(b+d);this.Pc.delayTime.value=b;this.ob=z.createOscillator();this.ob.frequency.value=e;this.sc=g();this.sc.gain.value=d;this.Z.connect(this.Pc);this.Z.connect(this.K);this.Pc.connect(this.L);this.Pc.connect(this.Qj);this.Qj.connect(this.Pc);this.ob.connect(this.sc);this.sc.connect(this.Pc.delayTime);c(this.ob)}function w(a,
b,d,e,h,k){this.type="phaser";this.pb=[a,b,d,e,h,k];this.Z=g();this.K=g();this.K.gain.value=1-k/2;this.L=g();this.L.gain.value=k/2;this.Ua=z.createBiquadFilter();this.Ua.type="number"===typeof this.Ua.type?7:"allpass";this.Ua.frequency.value=a;this.Ua.detune&&(this.Ua.detune.value=b);this.Ua.Q.value=d;this.ob=z.createOscillator();this.ob.frequency.value=h;this.sc=g();this.sc.gain.value=e;this.Z.connect(this.Ua);this.Z.connect(this.K);this.Ua.connect(this.L);this.ob.connect(this.sc);this.sc.connect(this.Ua.frequency);
c(this.ob)}function h(a){this.type="gain";this.pb=[a];this.ca=g();this.ca.gain.value=a}function k(a,b){this.type="tremolo";this.pb=[a,b];this.ca=g();this.ca.gain.value=1-b/2;this.ob=z.createOscillator();this.ob.frequency.value=a;this.sc=g();this.sc.gain.value=b/2;this.ob.connect(this.sc);this.sc.connect(this.ca.gain);c(this.ob)}function m(a,b){this.type="ringmod";this.pb=[a,b];this.Z=g();this.L=g();this.L.gain.value=b;this.K=g();this.K.gain.value=1-b;this.Oi=g();this.Oi.gain.value=0;this.ob=z.createOscillator();
this.ob.frequency.value=a;this.ob.connect(this.Oi.gain);c(this.ob);this.Z.connect(this.Oi);this.Z.connect(this.K);this.Oi.connect(this.L)}function F(a,b,c,d,e){this.type="distortion";this.pb=[a,b,c,d,e];this.Z=g();this.Tk=g();this.Sk=g();this.my(c,Math.pow(10,d/20));this.L=g();this.L.gain.value=e;this.K=g();this.K.gain.value=1-e;this.Cl=z.createWaveShaper();this.Fj=new Float32Array(65536);this.ow(a,b);this.Cl.Fj=this.Fj;this.Z.connect(this.Tk);this.Z.connect(this.K);this.Tk.connect(this.Cl);this.Cl.connect(this.Sk);
this.Sk.connect(this.L)}function aa(a,b,c,d,e){this.type="compressor";this.pb=[a,b,c,d,e];this.ca=z.createDynamicsCompressor();try{this.ca.threshold.value=a,this.ca.knee.value=b,this.ca.ratio.value=c,this.ca.attack.value=d,this.ca.release.value=e}catch(h){}}function V(a,b){this.type="analyser";this.pb=[a,b];this.ca=z.createAnalyser();this.ca.fftSize=a;this.ca.smoothingTimeConstant=b;this.jw=new Float32Array(this.ca.frequencyBinCount);this.cs=new Uint8Array(a);this.Gi=0}function R(){this.la=null;this.yk=
0}function D(a,b){this.src=a;this.V=U;this.Hd=b;this.pj=!1;var c=this;this.Sg=this.Xg=null;this.Yg=[];this.cl=0;this.yo=this.Oj=this.os=this.Nk=!1;1===U&&b&&!ob&&(this.V=0,this.Xg=g());this.Td=this.ba=null;var d;switch(this.V){case 0:this.ba=new Audio;this.ba.crossOrigin="anonymous";this.ba.addEventListener("canplaythrough",function(){c.yo=!0});1===U&&z.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.os=!0,this.ba.addEventListener("canplay",function(){!c.Sg&&c.ba&&(c.Sg=z.createMediaElementSource(c.ba),
c.Sg.connect(c.Xg))}));this.ba.autoplay=!1;this.ba.gA="auto";this.ba.src=a;break;case 1:y.mk?y.Jp(a,function(a){c.Td=a;c.Ap()},function(){c.Oj=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.Td=d.response;c.Ap()},d.onerror=function(){c.Oj=!0},d.send());break;case 2:this.ba=!0;break;case 3:this.ba=!0}}function E(a,b){var c=this;this.tag=b;this.ec=this.Ed=!0;this.src=a.src;this.buffer=a;this.V=U;this.Hd=a.Hd;this.playbackRate=1;this.Cg=!0;this.pc=this.Ic=
!1;this.cc=0;this.fi=this.Gg=this.Jd=!1;this.volume=1;this.En=function(a){if(!c.pc&&!c.Ic){var b=this;b||(b=a.target);b===c.nj&&(c.Cg=!0,c.ec=!0,P=c.tag,y.trigger(pc.prototype.j.hj,J))}};this.nj=null;this.Dg=1===I&&!this.Hd||2===I;this.Tg=1;this.startTime=this.Dg?y.wb.aa:y.xe.aa;this.Xa=this.bb=null;this.Ld=!1;this.xb=null;this.rr=this.qr=this.pr=this.or=this.tr=this.sr=0;this.p=null;var d=!1;1!==this.V||0!==this.buffer.V||this.buffer.os||(this.V=0);switch(this.V){case 0:this.Hd?(this.p=a.ba,d=!a.pj,
a.pj=!0):(this.p=new Audio,this.p.crossOrigin="anonymous",this.p.autoplay=!1,this.p.src=a.ba.src,d=!0);d&&this.p.addEventListener("ended",function(){P=c.tag;c.ec=!0;y.trigger(pc.prototype.j.hj,J)});break;case 1:this.bb=g();this.bb.connect(v(b));1===this.buffer.V?a.ba&&(this.p=z.createBufferSource(),this.p.buffer=a.ba,this.p.connect(this.bb)):(this.p=this.buffer.ba,this.buffer.Xg.connect(this.bb),this.buffer.pj||(this.buffer.pj=!0,this.buffer.ba.addEventListener("ended",function(){P=c.tag;c.ec=!0;
y.trigger(pc.prototype.j.hj,J)})));break;case 2:this.p=new window.Media(X+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Cg=!0,c.ec=!0,P=c.tag,y.trigger(pc.prototype.j.hj,J))});break;case 3:this.p=!0}}function G(a,b){Y.hasOwnProperty(a)?Y[a].push(b):Y[a]=[b];var c,d,e,h,k=z.destination;if(Y.hasOwnProperty(a)&&(e=Y[a],e.length))for(k=e[0].Cc(),c=0,d=e.length;c<d;c++)h=e[c],c+1===d?h.Nc(z.destination):h.Nc(e[c+1].Cc());M(Qa);if(a.length)for(c=0,d=A.length;c<d;c++)e=A[c],jb(a,e.tag)&&
Qa.push(e);else S&&!S.Ff()&&(M(Qa),Qa[0]=S);c=0;for(d=Qa.length;c<d;c++)Qa[c].Wx(k);Na&&Eb===a&&(Na.disconnect(),Na.connect(k))}function L(){}function N(){}var K=pc.prototype;K.za=function(a){this.Aa=a;this.b=a.b};K.za.prototype.S=function(){};var y=null,J=null,P="",X="",U=0,z=null,B=[],A=[],S=null,H=!1,I=0,O=!1,ca=1,Q=0,ma=0,na=!1,Ea=1,Db=1,Ac=10,Bc=1E4,Dc=1,Na=null,Eb="",Ec=!1,nb=[],ob=!1,Fc=!1;document.addEventListener("pointerup",t,!0);document.addEventListener("touchend",t,!0);document.addEventListener("click",
t,!0);document.addEventListener("keydown",t,!0);document.addEventListener("gamepadconnected",t,!0);var Y={},Hc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.Nc=function(a){this.L.disconnect();this.L.connect(a);this.K.disconnect();this.K.connect(a)};b.prototype.remove=function(){this.Z.disconnect();this.Ua.disconnect();this.L.disconnect();this.K.disconnect()};b.prototype.Cc=function(){return this.Z};x.prototype.Nc=function(a){this.L.disconnect();this.L.connect(a);
this.K.disconnect();this.K.connect(a)};x.prototype.remove=function(){this.Z.disconnect();this.yi.disconnect();this.Pc.disconnect();this.Ij.disconnect();this.L.disconnect();this.K.disconnect()};x.prototype.Cc=function(){return this.Z};l.prototype.Nc=function(a){this.L.disconnect();this.L.connect(a);this.K.disconnect();this.K.connect(a)};l.prototype.remove=function(){this.Z.disconnect();this.vf.disconnect();this.L.disconnect();this.K.disconnect()};l.prototype.Cc=function(){return this.Z};u.prototype.Nc=
function(a){this.K.disconnect();this.K.connect(a);this.L.disconnect();this.L.connect(a)};u.prototype.remove=function(){this.Z.disconnect();this.Pc.disconnect();this.ob.disconnect();this.sc.disconnect();this.K.disconnect();this.L.disconnect();this.Qj.disconnect()};u.prototype.Cc=function(){return this.Z};w.prototype.Nc=function(a){this.K.disconnect();this.K.connect(a);this.L.disconnect();this.L.connect(a)};w.prototype.remove=function(){this.Z.disconnect();this.Ua.disconnect();this.ob.disconnect();
this.sc.disconnect();this.K.disconnect();this.L.disconnect()};w.prototype.Cc=function(){return this.Z};h.prototype.Nc=function(a){this.ca.disconnect();this.ca.connect(a)};h.prototype.remove=function(){this.ca.disconnect()};h.prototype.Cc=function(){return this.ca};k.prototype.Nc=function(a){this.ca.disconnect();this.ca.connect(a)};k.prototype.remove=function(){this.ob.disconnect();this.sc.disconnect();this.ca.disconnect()};k.prototype.Cc=function(){return this.ca};m.prototype.Nc=function(a){this.L.disconnect();
this.L.connect(a);this.K.disconnect();this.K.connect(a)};m.prototype.remove=function(){this.ob.disconnect();this.Oi.disconnect();this.Z.disconnect();this.L.disconnect();this.K.disconnect()};m.prototype.Cc=function(){return this.Z};F.prototype.my=function(a,b){.01>a&&(a=.01);this.Tk.gain.value=a;this.Sk.gain.value=Math.pow(1/a,.6)*b};F.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};F.prototype.ow=function(a,b){for(var c=Math.pow(10,
a/20),d=Math.pow(10,b/20),e=0,h=0;32768>h;++h)e=h/32768,e=this.shape(e,c,d),this.Fj[32768+h]=e,this.Fj[32768-h-1]=-e};F.prototype.Nc=function(a){this.L.disconnect();this.L.connect(a);this.K.disconnect();this.K.connect(a)};F.prototype.remove=function(){this.Z.disconnect();this.Tk.disconnect();this.Cl.disconnect();this.Sk.disconnect();this.L.disconnect();this.K.disconnect()};F.prototype.Cc=function(){return this.Z};aa.prototype.Nc=function(a){this.ca.disconnect();this.ca.connect(a)};aa.prototype.remove=
function(){this.ca.disconnect()};aa.prototype.Cc=function(){return this.ca};V.prototype.$a=function(){this.ca.getFloatFrequencyData(this.jw);this.ca.getByteTimeDomainData(this.cs);for(var a=this.ca.fftSize,b=0,c=this.Gi=0,d=0;b<a;b++)d=(this.cs[b]-128)/128,0>d&&(d=-d),this.Gi<d&&(this.Gi=d),c+=d*d;this.Gi=p(this.Gi);p(Math.sqrt(c/a))};V.prototype.Nc=function(a){this.ca.disconnect();this.ca.connect(a)};V.prototype.remove=function(){this.ca.disconnect()};V.prototype.Cc=function(){return this.ca};R.prototype.Pi=
function(a){this.la=a};R.prototype.gk=function(){return!!this.la};R.prototype.$a=function(){};D.prototype.Xx=function(){var a,b,c,d;c=a=0;for(b=A.length;a<b;++a)d=A[a],A[c]=d,d.buffer===this?d.stop():++c;A.length=c;this.Sg&&(this.Sg.disconnect(),this.Sg=null);this.Xg&&(this.Xg.disconnect(),this.Xg=null);this.Td=this.ba=null};D.prototype.Ap=function(){if(!this.ba&&this.Td){var a=this;if(z.decodeAudioData)z.decodeAudioData(this.Td,function(b){a.ba=b;a.Td=null;var c,d,e;if(ha(a.Pk)||O)ha(a.Bj)||(c=a.Bj.vf,
c.normalize=a.br,c.buffer=b);else if(a.Yg.length){c=0;for(d=a.Yg.length;c<d;c++){b=a.Yg[c];e=new E(a,b.ws);e.bo(!0);if("undefined"!==typeof b.dr&&(b.la=y.Df(b.dr),!b.la))continue;if(b.la){var h=Ra(b.la.x,b.la.y,-b.la.n.cb(),Q,ma,!0),k=Ra(b.la.x,b.la.y,-b.la.n.cb(),Q,ma,!1);e.ao(h,k,Ga(b.la.k-b.la.n.cb()),b.Im,b.tn,b.wn);e.Pi(b.la)}else e.ao(b.x,b.y,b.su,b.Im,b.tn,b.wn);e.play(a.nn,a.xo,a.cl);a.Nk&&e.pause();A.push(e)}M(a.Yg)}else e=new E(a,a.Pk||""),e.play(a.nn,a.xo,a.cl),a.Nk&&e.pause(),A.push(e)},
function(){a.Oj=!0});else if(this.ba=z.createBuffer(this.Td,!1),this.Td=null,ha(this.Pk)||O)ha(this.Bj)||(b=this.Bj.vf,b.normalize=this.br,b.buffer=this.ba);else{var b=new E(this,this.Pk);b.play(this.nn,this.xo,this.cl);this.Nk&&b.pause();A.push(b)}}};D.prototype.iq=function(){switch(this.V){case 0:var a=4<=this.ba.readyState;a&&(this.yo=!0);return a||this.yo;case 1:return!!this.Td||!!this.ba;case 2:return!0;case 3:return!0}return!1};D.prototype.cx=function(){switch(this.V){case 0:return this.iq();
case 1:return!!this.ba;case 2:return!0;case 3:return!0}return!1};D.prototype.Tw=function(){switch(this.V){case 0:return!!this.ba.error;case 1:return this.Oj}return!1};E.prototype.Ff=function(){switch(this.V){case 0:return this.p.ended;case 1:return 1===this.buffer.V?!this.Ed&&!this.ec&&this.p.loop||this.pc?!1:this.Cg:this.p.ended;case 2:return this.Cg;case 3:!0}return!0};E.prototype.Lu=function(){return this.Ed||this.ec?!0:this.Ff()};E.prototype.bo=function(a){1===U&&(!this.Ld&&a?this.bb&&(this.Xa||
(this.Xa=z.createPanner(),this.Xa.panningModel="number"===typeof this.Xa.panningModel?Ea:["equalpower","HRTF","soundfield"][Ea],this.Xa.distanceModel="number"===typeof this.Xa.distanceModel?Db:["linear","inverse","exponential"][Db],this.Xa.refDistance=Ac,this.Xa.maxDistance=Bc,this.Xa.rolloffFactor=Dc),this.bb.disconnect(),this.bb.connect(this.Xa),this.Xa.connect(v(this.tag)),this.Ld=!0):this.Ld&&!a&&this.bb&&(this.Xa.disconnect(),this.bb.disconnect(),this.bb.connect(v(this.tag)),this.Ld=!1))};E.prototype.ao=
function(a,b,c,d,e,h){this.Ld&&1===U&&(this.Xa.setPosition(a,b,0),this.Xa.setOrientation(Math.cos(T(c)),Math.sin(T(c)),0),this.Xa.coneInnerAngle=d,this.Xa.coneOuterAngle=e,this.Xa.coneOuterGain=h,this.sr=a,this.tr=b,this.or=c,this.pr=d,this.qr=e,this.rr=h)};E.prototype.Pi=function(a){this.Ld&&1===U&&(this.xb||(this.xb=new R),this.xb.Pi(a))};E.prototype.$a=function(a){if(this.Ld&&1===U&&this.xb&&this.xb.gk()&&this.ci()){this.xb.$a(a);a=this.xb.la;var b=Ra(a.x,a.y,-a.n.cb(),Q,ma,!0),c=Ra(a.x,a.y,-a.n.cb(),
Q,ma,!1);this.Xa.setPosition(b,c,0);b=0;"undefined"!==typeof this.xb.la.k&&(b=a.k-a.n.cb(),this.Xa.setOrientation(Math.cos(b),Math.sin(b),0))}};E.prototype.play=function(a,b,d,h){var k=this.p;this.Jd=a;this.volume=b;d=d||0;h=h||0;switch(this.V){case 0:1!==k.playbackRate&&(k.playbackRate=1);k.volume!==b*ca&&(k.volume=b*ca);k.loop!==a&&(k.loop=a);k.muted&&(k.muted=!1);if(k.currentTime!==d)try{k.currentTime=d}catch(g){}q(this);break;case 1:this.muted=!1;this.Tg=1;if(1===this.buffer.V)this.bb.gain.value=
b*ca,this.Ed||(this.p=z.createBufferSource(),this.p.buffer=this.buffer.ba,this.p.connect(this.bb)),this.p.onended=this.En,this.nj=this.p,this.p.loop=a,this.Cg=!1,0===d?c(this.p,h):e(this.p,d,this.Cf(),h);else{1!==k.playbackRate&&(k.playbackRate=1);k.loop!==a&&(k.loop=a);k.volume=b*ca;if(k.currentTime!==d)try{k.currentTime=d}catch(f){}q(this)}break;case 2:(!this.Ed&&this.ec||0!==d)&&k.seekTo(d);k.play();this.Cg=!1;break;case 3:y.Ib?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,
a)}this.playbackRate=1;this.startTime=(this.Dg?y.wb.aa:y.xe.aa)-d;this.pc=this.ec=this.Ed=!1};E.prototype.stop=function(){switch(this.V){case 0:this.p.paused||this.p.pause();break;case 1:1===this.buffer.V?d(this.p):this.p.paused||this.p.pause();break;case 2:this.p.stop();break;case 3:y.Ib&&AppMobi.context.stopSound(this.src)}this.ec=!0;this.pc=!1};E.prototype.pause=function(){if(!(this.Ed||this.ec||this.Ff()||this.pc)){switch(this.V){case 0:this.p.paused||this.p.pause();break;case 1:1===this.buffer.V?
(this.cc=this.Am(!0),this.Jd&&(this.cc=this.cc%this.Cf()),this.pc=!0,d(this.p)):this.p.paused||this.p.pause();break;case 2:this.p.pause();break;case 3:y.Ib&&AppMobi.context.stopSound(this.src)}this.pc=!0}};E.prototype.ay=function(){if(!(this.Ed||this.ec||this.Ff())&&this.pc){switch(this.V){case 0:q(this);break;case 1:1===this.buffer.V?(this.p=z.createBufferSource(),this.p.buffer=this.buffer.ba,this.p.connect(this.bb),this.p.onended=this.En,this.nj=this.p,this.p.loop=this.Jd,this.bb.gain.value=ca*
this.volume*this.Tg,this.xl(),this.startTime=(this.Dg?y.wb.aa:y.xe.aa)-this.cc/(this.playbackRate||.001),e(this.p,this.cc,this.Cf())):q(this);break;case 2:this.p.play();break;case 3:y.Ib&&AppMobi.context.resumeSound(this.src)}this.pc=!1}};E.prototype.seek=function(a){if(!(this.Ed||this.ec||this.Ff()))switch(this.V){case 0:try{this.p.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.V)this.pc?this.cc=a:(this.pause(),this.cc=a,this.ay());else try{this.p.currentTime=a}catch(c){}break;case 3:y.Ib&&
AppMobi.context.seekSound(this.src,a)}};E.prototype.Wx=function(a){1===this.V&&(this.Ld?(this.Xa.disconnect(),this.Xa.connect(a)):(this.bb.disconnect(),this.bb.connect(a)))};E.prototype.Cf=function(){var a=0;switch(this.V){case 0:"undefined"!==typeof this.p.duration&&(a=this.p.duration);break;case 1:a=this.buffer.ba.duration;break;case 2:a=this.p.getDuration();break;case 3:y.Ib&&(a=AppMobi.context.getDurationSound(this.src))}return a};E.prototype.Am=function(a){var b=this.Cf(),c=0;switch(this.V){case 0:"undefined"!==
typeof this.p.currentTime&&(c=this.p.currentTime);break;case 1:if(1===this.buffer.V){if(this.pc)return this.cc;c=(this.Dg?y.wb.aa:y.xe.aa)-this.startTime}else"undefined"!==typeof this.p.currentTime&&(c=this.p.currentTime);break;case 3:y.Ib&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Jd&&c>b&&(c=b);return c};E.prototype.ci=function(){return!this.pc&&!this.Ed&&!this.ec&&!this.Ff()};E.prototype.uy=function(){return!this.Ed&&!this.ec&&!this.Ff()};E.prototype.Fy=
function(){var a=this.volume*ca;isFinite(a)||(a=0);switch(this.V){case 0:"undefined"!==typeof this.p.volume&&this.p.volume!==a&&(this.p.volume=a);break;case 1:1===this.buffer.V?this.bb.gain.value=a*this.Tg:"undefined"!==typeof this.p.volume&&this.p.volume!==a&&(this.p.volume=a)}};E.prototype.Mj=function(a){switch(this.V){case 0:this.p.muted!==!!a&&(this.p.muted=!!a);break;case 1:1===this.buffer.V?(this.Tg=a?0:1,this.bb.gain.value=ca*this.volume*this.Tg):this.p.muted!==!!a&&(this.p.muted=!!a)}};E.prototype.oy=
function(){this.Gg=!0;this.Mj(this.Gg||this.fi)};E.prototype.Xr=function(a){this.fi=!!a;this.Mj(this.Gg||this.fi)};E.prototype.xl=function(){var a=this.playbackRate;this.Dg&&(a*=y.dg);switch(this.V){case 0:this.p.playbackRate!==a&&(this.p.playbackRate=a);break;case 1:1===this.buffer.V?this.p.playbackRate.value!==a&&(this.p.playbackRate.value=a):this.p.playbackRate!==a&&(this.p.playbackRate=a)}};E.prototype.ry=function(a){switch(this.V){case 0:a?this.ci()?(this.Ic=!0,this.p.pause()):this.Ic=!1:this.Ic&&
(this.p.play(),this.Ic=!1);break;case 1:a?this.ci()?(this.Ic=!0,1===this.buffer.V?(this.cc=this.Am(!0),this.Jd&&(this.cc=this.cc%this.Cf()),d(this.p)):this.p.pause()):this.Ic=!1:this.Ic&&(1===this.buffer.V?(this.p=z.createBufferSource(),this.p.buffer=this.buffer.ba,this.p.connect(this.bb),this.p.onended=this.En,this.nj=this.p,this.p.loop=this.Jd,this.bb.gain.value=ca*this.volume*this.Tg,this.xl(),this.startTime=(this.Dg?y.wb.aa:y.xe.aa)-this.cc/(this.playbackRate||.001),e(this.p,this.cc,this.Cf())):
this.p.play(),this.Ic=!1);break;case 2:a?this.ci()?(this.p.pause(),this.Ic=!0):this.Ic=!1:this.Ic&&(this.Ic=!1,this.p.play())}};K.na=function(a){this.type=a;y=this.b=a.b;J=this;this.qc=null;this.oi=-600;this.b.mk&&(ob=!0);!(this.b.Jg||this.b.Zh&&(this.b.Pm||this.b.ik))||this.b.kk||this.b.Fa||this.b.gq||ob||(Ec=!0);z=null;"undefined"!==typeof AudioContext?(U=1,z=new AudioContext):"undefined"!==typeof webkitAudioContext&&(U=1,z=new webkitAudioContext);this.b.Jg&&z&&(z.close&&z.close(),"undefined"!==
typeof AudioContext?z=new AudioContext:"undefined"!==typeof webkitAudioContext&&(z=new webkitAudioContext));1!==U&&(this.b.Fc&&"undefined"!==typeof window.Media?U=2:this.b.hq&&(U=3));2===U&&(X=location.href,a=X.lastIndexOf("/"),-1<a&&(X=X.substr(0,a+1)),X=X.replace("file://",""));if(this.b.gx&&this.b.hx&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime. Audio cannot be played until Quicktime is installed."),this.b.of(this);else{if(this.b.Ib)H=this.b.Zh;
else try{H=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.nk}catch(b){H=!1}this.b.lo(this)}};var ta=K.na.prototype;ta.S=function(){this.b.kg=this;I=this.F[0];this.qe=this.F[1];this.Lx=0!==this.F[2];this.Zq=0;Ea=this.F[3];Db=this.F[4];this.oi=-this.F[5];Ac=this.F[6];Bc=this.F[7];Dc=this.F[8];this.qc=new R;var a=this.b.J||this.b.width,b=this.b.I||this.b.height;1===U&&(z.listener.setPosition(a/2,b/2,this.oi),z.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,
b){Na&&Na.disconnect();Eb=b.toLowerCase();Na=z.createMediaStreamSource(a);Na.connect(v(Eb))});this.b.ip(function(a){J.Fx(a)});var c=this;this.b.oj(function(a){c.Ei(a)})};ta.Ei=function(a){var b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],d.xb&&d.xb.la===a&&(d.xb.la=null,d.Ld&&d.ci()&&d.Jd&&d.stop());this.qc.la===a&&(this.qc.la=null)};ta.Ab=function(){var a={silent:O,masterVolume:ca,listenerZ:this.oi,listenerUid:this.qc.gk()?this.qc.la.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,h,k,g;c=0;for(d=A.length;c<
d;c++)e=A[c],!e.uy()||3===this.qe||e.Hd&&1===this.qe||!e.Hd&&2===this.qe||(h=e.Am(),e.Jd&&(h=h%e.Cf()),h={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Hd,playbackTime:h,volume:e.volume,looping:e.Jd,muted:e.Gg,playbackRate:e.playbackRate,paused:e.pc,resume_position:e.cc},e.Ld&&(h.pan={},g=h.pan,e.xb&&e.xb.gk()?g.objUid=e.xb.la.uid:(g.x=e.sr,g.y=e.tr,g.a=e.or),g.ia=e.pr,g.oa=e.qr,g.og=e.rr),b.push(h));b=a.effects;for(k in Y)if(Y.hasOwnProperty(k)){e=[];c=0;for(d=Y[k].length;c<d;c++)e.push({type:Y[k][c].type,
params:Y[k][c].pb});b[k]=e}return a};var Xa=[];ta.Ob=function(a){var c=a.silent;ca=a.masterVolume;this.oi=a.listenerZ;this.qc.Pi(null);var d=a.listenerUid;-1!==d&&(this.qc.yk=d,Xa.push(this.qc));var d=a.playing,e,g,f,p,r,t,v,q,D,y,z;if(3!==this.qe)for(e=0,g=A.length;e<g;e++)D=A[e],D.Hd&&1===this.qe||(D.Hd||2!==this.qe)&&D.stop();for(r in Y)if(Y.hasOwnProperty(r))for(e=0,g=Y[r].length;e<g;e++)Y[r][e].remove();Va(Y);for(r in a.effects)if(a.effects.hasOwnProperty(r))for(t=a.effects[r],e=0,g=t.length;e<
g;e++)switch(f=t[e].type,y=t[e].params,f){case "filter":G(r,new b(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "delay":G(r,new x(y[0],y[1],y[2]));break;case "convolve":f=y[2];D=this.Yj(f,!1);D.ba?f=new l(D.ba,y[0],y[1],f):(f=new l(null,y[0],y[1],f),D.br=y[0],D.Bj=f);G(r,f);break;case "flanger":G(r,new u(y[0],y[1],y[2],y[3],y[4]));break;case "phaser":G(r,new w(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "gain":G(r,new h(y[0]));break;case "tremolo":G(r,new k(y[0],y[1]));break;case "ringmod":G(r,new m(y[0],
y[1]));break;case "distortion":G(r,new F(y[0],y[1],y[2],y[3],y[4]));break;case "compressor":G(r,new aa(y[0],y[1],y[2],y[3],y[4]));break;case "analyser":G(r,new V(y[0],y[1]))}e=0;for(g=d.length;e<g;e++)3===this.qe||(a=d[e],f=a.buffersrc,p=a.is_music,r=a.tag,t=a.playbackTime,v=a.looping,q=a.volume,z=(y=a.pan)&&y.hasOwnProperty("objUid")?y.objUid:-1,p&&1===this.qe)||!p&&2===this.qe||((D=this.Op(f,r,p,v,q))?(D.cc=a.resume_position,D.bo(!!y),D.play(v,q,t),D.xl(),D.Fy(),D.Mj(D.Gg||D.fi),a.paused&&D.pause(),
a.muted&&D.oy(),D.Mj(D.Gg||D.fi),y&&(-1!==z?(D.xb=D.xb||new R,D.xb.yk=z,Xa.push(D.xb)):D.ao(y.x,y.y,y.a,y.ia,y.oa,y.og))):(D=this.Yj(f,p),D.cl=t,D.Nk=a.paused,y&&(-1!==z?D.Yg.push({dr:z,Im:y.ia,tn:y.oa,wn:y.og,ws:r}):D.Yg.push({x:y.x,y:y.y,su:y.a,Im:y.ia,tn:y.oa,wn:y.og,ws:r}))));if(c&&!O){e=0;for(g=A.length;e<g;e++)A[e].Xr(!0);O=!0}else if(!c&&O){e=0;for(g=A.length;e<g;e++)A[e].Xr(!1);O=!1}};ta.zd=function(){var a,b,c,d;a=0;for(b=Xa.length;a<b;a++)c=Xa[a],d=this.b.Df(c.yk),c.Pi(d),c.yk=-1,d&&(Q=
d.x,ma=d.y);M(Xa)};ta.Fx=function(a){if(!this.Lx){!a&&z&&z.resume&&(z.resume(),na=!1);var b,c;b=0;for(c=A.length;b<c;b++)A[b].ry(a);a&&z&&z.suspend&&(z.suspend(),na=!0)}};ta.$a=function(){var a=this.b.xf,b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],d.$a(a),0!==I&&d.xl();var e,h;for(e in Y)if(Y.hasOwnProperty(e))for(d=Y[e],b=0,c=d.length;b<c;b++)h=d[b],h.$a&&h.$a();1===U&&this.qc.gk()&&(this.qc.$a(a),Q=this.qc.la.x,ma=this.qc.la.y,z.listener.setPosition(this.qc.la.x,this.qc.la.y,this.oi))};var Ya=[];ta.qy=
function(a){var b,c,d,e,h,k=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(h=4<e.length&&".ogg"===e.substr(e.length-4))&&H||!h&&!H)Ya.push({filename:e,size:d,la:null}),k+=d;return k};ta.xy=function(){var a,b,c,d;a=0;for(b=Ya.length;a<b;++a)c=Ya[a],d=this.b.pm+c.filename,c.la=this.Yj(d,!1)};ta.yw=function(){var a=0,b,c,d;b=0;for(c=Ya.length;b<c;++b)d=Ya[b],d.la.cx()||d.la.Tw()||this.b.Fa||this.b.ik?a+=d.size:d.la.iq()&&(a+=Math.floor(d.size/2));return a};ta.Yx=function(){var a,b,c,d;c=a=0;
for(b=B.length;a<b;++a)d=B[a],B[c]=d,d.Hd?d.Xx():++c;B.length=c};ta.Yj=function(a,b){var c,d,e,h=null;c=0;for(d=B.length;c<d;c++)if(e=B[c],e.src===a){h=e;break}h||(ob&&b&&this.Yx(),h=new D(a,b),B.push(h));return h};ta.Op=function(a,b,c,d,e){var h,k,g;h=0;for(k=A.length;h<k;h++)if(g=A[h],g.src===a&&(g.Lu()||c))return g.tag=b,g;a=this.Yj(a,c);if(!a.ba)return"<preload>"!==b&&(a.Pk=b,a.nn=d,a.xo=e),null;g=new E(a,b);A.push(g);return g};var Qa=[];L.prototype.hj=function(a){return jb(P,a)};K.j=new L;N.prototype.$t=
function(a,b,c,d,e){!O&&(d=Math.pow(10,d/20),isFinite(d)||(d=0),0>d&&(d=0),1<d&&(d=1),S=this.Op(this.b.pm+b.toLowerCase()+(H?".ogg":".m4a"),e,1===a,0!==c,d))&&(S.bo(!1),S.play(0!==c,d,0,this.Zq),this.Zq=0)};K.U=new N;K.Da=new function(){}})();function qc(f){this.b=f}
(function(){function f(){v&&g&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(c){a.Dx(c)})}function q(){}function t(){}var r=qc.prototype;r.za=function(a){this.Aa=a;this.b=a.b};var p=r.za.prototype;p.S=function(){};var v=!1,g=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var a=document.createElement("script");a.onload=function(){v=!0;f()};a.src="offlineClient.js";document.head.appendChild(a)}});var a=null;
p.hr=function(){g=!0;f()};r.na=function(a){this.type=a;this.b=a.b};p=r.na.prototype;p.S=function(){var c=this;window.addEventListener("resize",function(){c.b.trigger(qc.prototype.j.St,c)});a=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){c.b.trigger(qc.prototype.j.Pt,c)}),window.addEventListener("offline",function(){c.b.trigger(qc.prototype.j.Nt,c)}));this.b.Ib||(document.addEventListener("appMobi.device.update.available",function(){c.b.trigger(qc.prototype.j.Gl,
c)}),document.addEventListener("backbutton",function(){c.b.trigger(qc.prototype.j.gj,c)}),document.addEventListener("menubutton",function(){c.b.trigger(qc.prototype.j.So,c)}),document.addEventListener("searchbutton",function(){c.b.trigger(qc.prototype.j.Tt,c)}),document.addEventListener("tizenhwkey",function(a){var d;switch(a.keyName){case "back":d=c.b.trigger(qc.prototype.j.gj,c);!d&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(d=c.b.trigger(qc.prototype.j.So,
c))||a.preventDefault()}}));this.b.nk&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(a){c.b.trigger(qc.prototype.j.gj,c)&&(a.handled=!0)}):this.b.lq&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!c.b.trigger(qc.prototype.j.gj,c)});this.b.ip(function(a){a?c.b.trigger(qc.prototype.j.Qt,c):c.b.trigger(qc.prototype.j.Rt,c)})};p.Dx=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(qc.prototype.j.Xt,
this):"update-ready"===a||"update-pending"===a?this.b.trigger(qc.prototype.j.Gl,this):"offline-ready"===a&&this.b.trigger(qc.prototype.j.Ot,this)};q.prototype.Pt=function(){return!0};q.prototype.Nt=function(){return!0};q.prototype.Gl=function(){return!0};q.prototype.Rt=function(){return!0};q.prototype.Qt=function(){return!0};q.prototype.St=function(){return!0};q.prototype.gj=function(){return!0};q.prototype.So=function(){return!0};q.prototype.Tt=function(){return!0};q.prototype.Xt=function(){return!0};
q.prototype.Gl=function(){return!0};q.prototype.Ot=function(){return!0};r.j=new q;t.prototype.Ps=function(a){this.b.Fa||alert(a.toString())};r.U=new t;r.Da=new function(){}})();function rc(f){this.b=f}
(function(){function f(){}var q=rc.prototype;q.za=function(f){this.Aa=f;this.b=f.b};q.za.prototype.S=function(){};q.na=function(f){this.type=f;this.b=f.b;this.ki=Array(256);this.aj=Array(256);this.ve=0};var t=q.na.prototype;t.S=function(){var f=this;this.b.Fa||(jQuery(document).keydown(function(r){f.xn(r)}),jQuery(document).keyup(function(r){f.yn(r)}))};var r=[32,33,34,35,36,37,38,39,40,44];t.xn=function(f){var t=!1;window!=window.top&&-1<r.indexOf(f.which)&&(f.preventDefault(),t=!0,f.stopPropagation());
if(this.ki[f.which])this.aj[f.which]&&!t&&f.preventDefault();else{this.ki[f.which]=!0;this.ve=f.which;this.b.Va=!0;this.b.trigger(rc.prototype.j.yt,this);var g=this.b.trigger(rc.prototype.j.No,this),a=this.b.trigger(rc.prototype.j.It,this);this.b.Va=!1;if(g||a)this.aj[f.which]=!0,t||f.preventDefault()}};t.yn=function(f){this.ki[f.which]=!1;this.ve=f.which;this.b.Va=!0;this.b.trigger(rc.prototype.j.Go,this);var r=this.b.trigger(rc.prototype.j.Po,this),g=this.b.trigger(rc.prototype.j.Oo,this);this.b.Va=
!1;if(r||g||this.aj[f.which])this.aj[f.which]=!0,f.preventDefault()};t.bf=function(){var f;for(f=0;256>f;++f)if(this.ki[f]){this.ki[f]=!1;this.ve=f;this.b.trigger(rc.prototype.j.Go,this);var r=this.b.trigger(rc.prototype.j.Po,this),g=this.b.trigger(rc.prototype.j.Oo,this);if(r||g)this.aj[f]=!0}};t.Ab=function(){return{triggerKey:this.ve}};t.Ob=function(f){this.ve=f.triggerKey};f.prototype.No=function(f){return f===this.ve};f.prototype.yt=function(){return!0};f.prototype.Go=function(){return!0};f.prototype.Po=
function(f){return f===this.ve};f.prototype.It=function(f){return f===this.ve};f.prototype.Oo=function(f){return f===this.ve};q.j=new f;q.U=new function(){};q.Da=new function(){}})();var sc=!1;
try{!function(){var f,q,t;!function(){var r={},p={};f=function(f,g,a){r[f]={Xu:g,Ku:a}};t=q=function(f){function g(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=f.split("/").slice(0,-1),c=0,d=a.length;d>c;c++){var e=a[c];".."===e?b.pop():"."!==e&&b.push(e)}return b.join("/")}if(t.Pz=r,p[f])return p[f];if(p[f]={},!r[f])throw Error("Could not find module "+f);for(var a,c=r[f],e=c.Xu,c=c.Ku,d=[],b=0,x=e.length;x>b;b++)"exports"===e[b]?d.push(a={}):d.push(q(g(e[b])));e=c.apply(this,d);return p[f]=
a||e}}();f("promise/all",["./utils","exports"],function(f,p){var t=f.isArray,g=f.isFunction;p.all=function(a){if(!t(a))throw new TypeError("You must pass an array to all.");return new this(function(c,e){function d(a){return function(b){f[a]=b;0===--l&&c(f)}}var b,f=[],l=a.length;0===l&&c([]);for(var p=0;p<a.length;p++)(b=a[p])&&g(b.then)?b.then(d(p),e):(f[p]=b,0===--l&&c(f))})}});f("promise/asap",["exports"],function(f){function p(){return function(){process.fA(a)}}function t(){var b=0,c=new d(a),
e=document.createTextNode("");return c.observe(e,{characterData:!0}),function(){e.data=b=++b%2}}function g(){return function(){b.setTimeout(a,1)}}function a(){for(var a=0;a<q.length;a++){var b=q[a];(0,b[0])(b[1])}q=[]}var c,e="undefined"!=typeof window?window:{},d=e.MutationObserver||e.WebKitMutationObserver,b="undefined"!=typeof global?global:void 0===this?window:this,q=[];c="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?p():d?t():g();f.Cu=function(a,b){1===q.push([a,
b])&&c()}});f("promise/config",["exports"],function(f){var p={Yz:!1};f.xp=p;f.Pu=function(f,g){return 2!==arguments.length?p[f]:void(p[f]=g)}});f("promise/polyfill",["./promise","./utils","exports"],function(f,p,t){var g=f.Promise,a=p.isFunction;t.Mx=function(){var c;c="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in c&&"resolve"in c.Promise&&"reject"in c.Promise&&"all"in c.Promise&&"race"in c.Promise&&function(){var e;return new c.Promise(function(a){e=
a}),a(e)}()||(c.Promise=g)}});f("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(f,p,t,g,a,c,e,d){function b(a){if(!E(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof b))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.mj=[];q(a,this)}function q(a,b){function c(a){k(b,
a)}function d(a){F(b,a)}try{a(c,d)}catch(e){d(e)}}function l(a,b,c,d){var e,f,g,m,l=E(c);if(l)try{e=c(d),g=!0}catch(p){m=!0,f=p}else e=d,g=!0;h(b,e)||(l&&g?k(b,e):m?F(b,f):a===N?k(b,e):a===K&&F(b,e))}function u(a,b,c,d){a=a.mj;var e=a.length;a[e]=b;a[e+N]=c;a[e+K]=d}function w(a,b){for(var c,d,e=a.mj,h=a.lj,k=0;k<e.length;k+=3)c=e[k],d=e[k+b],l(b,c,d,h);a.mj=null}function h(a,b){var c,d=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(D(b)&&(d=b.then,
E(d)))return d.call(b,function(d){return c?!0:(c=!0,void(b!==d?k(a,d):m(a,d)))},function(b){return c?!0:(c=!0,void F(a,b))}),!0}catch(e){return c?!0:(F(a,e),!0)}return!1}function k(a,b){a===b?m(a,b):h(a,b)||m(a,b)}function m(a,b){a.Rd===G&&(a.Rd=L,a.lj=b,R.async(aa,a))}function F(a,b){a.Rd===G&&(a.Rd=L,a.lj=b,R.async(V,a))}function aa(a){w(a,a.Rd=N)}function V(a){w(a,a.Rd=K)}var R=f.xp,D=(f.Pu,p.zx),E=p.isFunction;f=(p.now,t.all);g=g.race;a=a.resolve;c=c.reject;R.async=e.Cu;var G=void 0,L=0,N=1,K=
2;b.prototype={constructor:b,Rd:void 0,lj:void 0,mj:void 0,then:function(a,b){var c=this,d=new this.constructor(function(){});if(this.Rd){var e=arguments;R.async(function(){l(c.Rd,d,e[c.Rd-1],c.lj)})}else u(this,d,a,b);return d},"catch":function(a){return this.then(null,a)}};b.all=f;b.race=g;b.resolve=a;b.reject=c;d.Promise=b});f("promise/race",["./utils","exports"],function(f,p){var t=f.isArray;p.race=function(f){if(!t(f))throw new TypeError("You must pass an array to race.");return new this(function(a,
c){for(var e,d=0;d<f.length;d++)(e=f[d])&&"function"==typeof e.then?e.then(a,c):a(e)})}});f("promise/reject",["exports"],function(f){f.reject=function(f){return new this(function(r,g){g(f)})}});f("promise/resolve",["exports"],function(f){f.resolve=function(f){return f&&"object"==typeof f&&f.constructor===this?f:new this(function(r){r(f)})}});f("promise/utils",["exports"],function(f){function p(f){return"function"==typeof f}var t=Date.now||function(){return(new Date).getTime()};f.zx=function(f){return p(f)||
"object"==typeof f&&null!==f};f.isFunction=p;f.isArray=function(f){return"[object Array]"===Object.prototype.toString.call(f)};f.now=t});q("promise/polyfill").Mx()}();var tc=function(){return function(f){function q(r){if(t[r])return t[r].Cd;var p=t[r]={Cd:{},id:r,loaded:!1};return f[r].call(p.Cd,p,p.Cd,q),p.loaded=!0,p.Cd}var t={};return q.Ud=f,q.Ah=t,q.Gj="",q(0)}([function(f,q,t){q.kj=!0;var r=function(f){function r(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function g(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(l(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function a(a){for(var b in e)if(e.hasOwnProperty(b)&&e[b]===a)return!0;return!1}var c={},e={qh:"asyncStorage",rh:"localStorageWrapper",uh:"webSQLStorage"},d="clear getItem iterate key keys length removeItem setItem".split(" "),b={description:"",tg:[e.qh,e.uh,e.rh].slice(),name:"localforage",size:4980736,ma:"keyvaluepairs",
version:1},q=function(a){var b={},c;try{var d=d||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.Zp||a.msIndexedDB;c="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:d&&"function"==typeof d.open&&"undefined"!=typeof a.IDBKeyRange}catch(f){c=!1}b[e.qh]=!!c;var g;try{g=a.openDatabase}catch(l){g=!1}b[e.uh]=!!g;var p;try{p=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(r){p=
!1}return b[e.rh]=!!p,b}(f),l=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function f(a){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");this.qh=e.qh;this.rh=e.rh;this.uh=e.uh;this.Jl=g({},b);this.pf=g({},this.Jl,a);this.bp=this.yd=null;this.Be=!1;this.fa=null;this.cp();this.Ur(this.pf.tg)}return f.prototype.xp=function(a){if("object"==typeof a){if(this.Be)return Error("Can't call config() after localforage has been used.");
for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this.pf[b]=a[b];return"driver"in a&&a.tg&&this.Ur(this.pf.tg),!0}return"string"==typeof a?this.pf[a]:this.pf},f.prototype.tg=function(){return this.vh||null},f.prototype.Rp=function(b,d,e){var f=this,g=function(){if(a(b))switch(b){case f.qh:return new Promise(function(a){a(t(1))});case f.rh:return new Promise(function(a){a(t(2))});case f.uh:return new Promise(function(a){a(t(4))})}else if(c[b])return Promise.resolve(c[b]);return Promise.reject(Error("Driver not found."))}();
return g.then(d,e),g},f.prototype.ready=function(a){var b=this,c=b.yd.then(function(){return null===b.Be&&(b.Be=b.bp()),b.Be});return c.then(a,a),c},f.prototype.Ur=function(a,b,c){function d(){f.pf.tg=f.tg()}function e(a){return function(){function b(){for(;c<a.length;){var e=a[c];return c++,f.fa=null,f.Be=null,f.Rp(e).then(function(a){return f.qu(a),d(),f.Be=f.Ll(f.pf),f.Be})["catch"](b)}d();return f.yd=Promise.reject(Error("No available storage method found.")),f.yd}var c=0;return b()}}var f=this;
l(a)||(a=[a]);var g=this.ru(a);return this.yd=(null!==this.yd?this.yd["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=g[0];return f.fa=null,f.Be=null,f.Rp(a).then(function(a){f.vh=a.vh;d();f.cp();f.bp=e(g)})})["catch"](function(){d();return f.yd=Promise.reject(Error("No available storage method found.")),f.yd}),this.yd.then(b,c),this.yd},f.prototype.supports=function(a){return!!q[a]},f.prototype.qu=function(a){g(this,a)},f.prototype.ru=function(a){for(var b=
[],c=0,d=a.length;d>c;c++){var e=a[c];this.supports(e)&&b.push(e)}return b},f.prototype.cp=function(){for(var a=0;a<d.length;a++)r(this,d[a])},f.prototype.dm=function(a){return new f(a)},f}())}("undefined"!=typeof window?window:self);q["default"]=r;f.Cd=q["default"]},function(f,q){q.kj=!0;q["default"]=function(f){function r(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(c){if("TypeError"!==c.name)throw c;for(var d=new (f.BlobBuilder||f.Ud||f.Gj||f.WebKitBlobBuilder),e=0;e<a.length;e+=1)d.append(a[e]);
return d.getBlob(b.type)}}function p(a){return new Promise(function(b,c){var d=new XMLHttpRequest;d.open("GET",a);d.withCredentials=!0;d.responseType="arraybuffer";d.onreadystatechange=function(){return 4===d.readyState?200===d.status?b({response:d.response,type:d.getResponseHeader("Content-Type")}):void c({status:d.status,response:d.response}):void 0};d.send()})}function q(a){return(new Promise(function(b,c){var d=r([""],{type:"image/png"}),e=a.transaction([G],"readwrite");e.objectStore(G).put(d,
"key");e.oncomplete=function(){var d=a.transaction([G],"readwrite").objectStore(G).get("key");d.onerror=c;d.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);p(c).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(c)})}};e.onerror=e.onabort=c}))["catch"](function(){return!1})}function g(a){return"boolean"==typeof D?Promise.resolve(D):q(a).then(function(a){return D=a})}function a(a){return new Promise(function(b,c){var d=new FileReader;
d.onerror=c;d.onloadend=function(c){b({$o:!0,data:btoa(c.target.result||""),type:a.type})};d.readAsBinaryString(a)})}function c(a){for(var b=atob(a.data),c=b.length,d=new ArrayBuffer(c),e=new Uint8Array(d),h=0;c>h;h++)e[h]=b.charCodeAt(h);return r([d],{type:a.type})}function e(a){var b=this,c=b.Kl().then(function(){var a=E[b.fa.name];return a&&a.qg?a.qg:void 0});return c.then(a,a),c}function d(a){a=E[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.Bp.push(b);a.qg?a.qg=a.qg.then(function(){return b.promise}):
a.qg=b.promise}function b(a){function b(){return Promise.resolve()}var c=this,d={db:null};if(a)for(var h in a)d[h]=a[h];E||(E={});var k=E[d.name];k||(k={Vj:[],db:null,qg:null,Bp:[]},E[d.name]=k);k.Vj.push(c);c.Kl||(c.Kl=c.ready,c.ready=e);a=[];for(h=0;h<k.Vj.length;h++){var g=k.Vj[h];g!==c&&a.push(g.Kl()["catch"](b))}var m=k.Vj.slice(0);return Promise.all(a).then(function(){return d.db=k.db,x(d,!1)}).then(function(a){d.db=a;var b;b=c.Jl.version;if(d.db){var e=!d.db.objectStoreNames.contains(d.ma),
h=d.version>d.db.version;(d.version<d.db.version&&(d.version!==b&&f.console.warn('The database "'+d.name+"\" can't be downgraded from version "+d.db.version+" to version "+d.version+"."),d.version=d.db.version),h||e)?(e&&(b=d.db.version+1,b>d.version&&(d.version=b)),b=!0):b=!1}else b=!0;return b?x(d,!0):a}).then(function(a){d.db=k.db=a;c.fa=d;for(a=0;a<m.length;a++){var b=m[a];b!==c&&(b.fa.db=d.db,b.fa.version=d.version)}})}function x(a,b){return new Promise(function(c,e){if(a.db){if(!b)return c(a.db);
d(a);a.db.close()}var h=[a.name];b&&h.push(a.version);var k=R.open.apply(R,h);b&&(k.onupgradeneeded=function(b){var c=k.result;try{c.createObjectStore(a.ma),1>=b.oldVersion&&c.createObjectStore(G)}catch(d){if("ConstraintError"!==d.name)throw d;f.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.ma+'" already exists.')}});k.onerror=function(){e(k.error)};k.onsuccess=function(){c(k.result);var b=E[a.name].Bp.pop();
b&&b.resolve()}})}function l(a,b){var d=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(b,e){d.ready().then(function(){var h=d.fa,f=h.db.transaction(h.ma,"readonly").objectStore(h.ma).get(a);f.onsuccess=function(){var a=f.result;void 0===a&&(a=null);a&&a.$o&&(a=c(a));b(a)};f.onerror=function(){e(f.error)}})["catch"](e)});return V(e,b),e}function u(a,b){var d=this,e=new Promise(function(b,e){d.ready().then(function(){var h=
d.fa,f=h.db.transaction(h.ma,"readonly").objectStore(h.ma).openCursor(),k=1;f.onsuccess=function(){var d=f.result;if(d){var e=d.value;e&&e.$o&&(e=c(e));e=a(e,d.key,k++);void 0!==e?b(e):d["continue"]()}else b()};f.onerror=function(){e(f.error)}})["catch"](e)});return V(e,b),e}function w(b,c,d){var e=this;"string"!=typeof b&&(f.console.warn(b+" used as a key, but it is not a string."),b=String(b));var h=new Promise(function(d,h){var f;e.ready().then(function(){return f=e.fa,c instanceof Blob?g(f.db).then(function(b){return b?
c:a(c)}):c}).then(function(a){var c=f.db.transaction(f.ma,"readwrite"),e=c.objectStore(f.ma);null===a&&(a=void 0);c.oncomplete=function(){void 0===a&&(a=null);d(a)};c.onabort=c.onerror=function(){h(k.error?k.error:k.transaction.error)};var k=e.put(a,b)})["catch"](h)});return V(h,d),h}function h(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.fa,h=e.db.transaction(e.ma,"readwrite"),
f=h.objectStore(e.ma)["delete"](a);h.oncomplete=function(){b()};h.onerror=function(){d(f.error)};h.onabort=function(){d(f.error?f.error:f.transaction.error)}})["catch"](d)});return V(d,b),d}function k(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.fa,e=d.db.transaction(d.ma,"readwrite"),h=e.objectStore(d.ma).clear();e.oncomplete=function(){a()};e.onabort=e.onerror=function(){c(h.error?h.error:h.transaction.error)}})["catch"](c)});return V(c,a),c}function m(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var d=b.fa,e=d.db.transaction(d.ma,"readonly").objectStore(d.ma).count();e.onsuccess=function(){a(e.result)};e.onerror=function(){c(e.error)}})["catch"](c)});return V(c,a),c}function F(a,b){var c=this,d=new Promise(function(b,d){return 0>a?void b(null):void c.ready().then(function(){var e=c.fa,h=!1,f=e.db.transaction(e.ma,"readonly").objectStore(e.ma).openCursor();f.onsuccess=function(){var c=f.result;return c?void(0===a?b(c.key):h?b(c.key):(h=
!0,c.advance(a))):void b(null)};f.onerror=function(){d(f.error)}})["catch"](d)});return V(d,b),d}function aa(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.fa,e=d.db.transaction(d.ma,"readonly").objectStore(d.ma).openCursor(),h=[];e.onsuccess=function(){var b=e.result;return b?(h.push(b.key),void b["continue"]()):void a(h)};e.onerror=function(){c(e.error)}})["catch"](c)});return V(c,a),c}function V(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var R=R||f.indexedDB||
f.webkitIndexedDB||f.mozIndexedDB||f.Zp||f.msIndexedDB;if(R){var D,E,G="local-forage-detect-blob-support";return{vh:"asyncStorage",Ll:b,pq:u,getItem:l,setItem:w,removeItem:h,clear:k,length:m,key:F,keys:aa}}}("undefined"!=typeof window?window:self);f.Cd=q["default"]},function(f,q,t){q.kj=!0;q["default"]=function(f){function p(a,c){c&&a.then(function(a){c(null,a)},function(a){c(a)})}var q=null;try{if(!(f.localStorage&&"setItem"in f.localStorage))return;q=f.localStorage}catch(g){return}return{vh:"localStorageWrapper",
Ll:function(a){var c={};if(a)for(var e in a)c[e]=a[e];return c.Id=c.name+"/",c.ma!==this.Jl.ma&&(c.Id+=c.ma+"/"),this.fa=c,(new Promise(function(a){a(t(3))})).then(function(a){return c.Xf=a,Promise.resolve()})},pq:function(a,c){var e=this,d=e.ready().then(function(){for(var b=e.fa,c=b.Id,d=c.length,f=q.length,g=1,h=0;f>h;h++){var k=q.key(h);if(0===k.indexOf(c)){var m=q.getItem(k);if(m&&(m=b.Xf.Kj(m)),m=a(m,k.substring(d),g++),void 0!==m)return m}}});return p(d,c),d},getItem:function(a,c){var e=this;
"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=e.ready().then(function(){var b=e.fa,c=q.getItem(b.Id+a);return c&&(c=b.Xf.Kj(c)),c});return p(d,c),d},setItem:function(a,c,e){var d=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var b=d.ready().then(function(){void 0===c&&(c=null);var b=c;return new Promise(function(e,f){var g=d.fa;g.Xf.serialize(c,function(c,d){if(d)f(d);else try{q.setItem(g.Id+
a,c),e(b)}catch(m){"QuotaExceededError"!==m.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==m.name||f(m),f(m)}})})});return p(b,e),b},removeItem:function(a,c){var e=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=e.ready().then(function(){q.removeItem(e.fa.Id+a)});return p(d,c),d},clear:function(a){var c=this,e=c.ready().then(function(){for(var a=c.fa.Id,b=q.length-1;0<=b;b--){var e=q.key(b);0===e.indexOf(a)&&q.removeItem(e)}});return p(e,a),e},length:function(a){var c=
this.keys().then(function(a){return a.length});return p(c,a),c},key:function(a,c){var e=this,d=e.ready().then(function(){var b,c=e.fa;try{b=q.key(a)}catch(d){b=null}return b&&(b=b.substring(c.Id.length)),b});return p(d,c),d},keys:function(a){var c=this,e=c.ready().then(function(){for(var a=c.fa,b=q.length,e=[],f=0;b>f;f++)0===q.key(f).indexOf(a.Id)&&e.push(q.key(f).substring(a.Id.length));return e});return p(e,a),e}}}("undefined"!=typeof window?window:self);f.Cd=q["default"]},function(f,q){q.kj=!0;
q["default"]=function(f){function r(a){var c,e,d,b,f;c=.75*a.length;var g=a.length,p=0;"="===a[a.length-1]&&(c--,"="===a[a.length-2]&&c--);var r=new ArrayBuffer(c),h=new Uint8Array(r);for(c=0;g>c;c+=4)e=q.indexOf(a[c]),d=q.indexOf(a[c+1]),b=q.indexOf(a[c+2]),f=q.indexOf(a[c+3]),h[p++]=e<<2|d>>4,h[p++]=(15&d)<<4|b>>2,h[p++]=(3&b)<<6|63&f;return r}function p(a){var c=new Uint8Array(a),e="";for(a=0;a<c.length;a+=3)e+=q[c[a]>>2],e+=q[(3&c[a])<<4|c[a+1]>>4],e+=q[(15&c[a+1])<<2|c[a+2]>>6],e+=q[63&c[a+2]];
return 2===c.length%3?e=e.substring(0,e.length-1)+"=":1===c.length%3&&(e=e.substring(0,e.length-2)+"=="),e}var q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=/^~~local_forage_type~([^~]+)~/;return{serialize:function(a,c){var e="";if(a&&(e=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var d,b="__lfsc__:";a instanceof ArrayBuffer?(d=a,b+="arbf"):(d=a.buffer,"[object Int8Array]"===e?b+="si08":"[object Uint8Array]"===
e?b+="ui08":"[object Uint8ClampedArray]"===e?b+="uic8":"[object Int16Array]"===e?b+="si16":"[object Uint16Array]"===e?b+="ur16":"[object Int32Array]"===e?b+="si32":"[object Uint32Array]"===e?b+="ui32":"[object Float32Array]"===e?b+="fl32":"[object Float64Array]"===e?b+="fl64":c(Error("Failed to get type for BinaryArray")));c(b+p(d))}else if("[object Blob]"===e)e=new FileReader,e.onload=function(){var b="~~local_forage_type~"+a.type+"~"+p(this.result);c("__lfsc__:blob"+b)},e.readAsArrayBuffer(a);else try{c(JSON.stringify(a))}catch(f){console.error("Couldn't convert value into a JSON string: ",
a),c(null,f)}},Kj:function(a){if("__lfsc__:"!==a.substring(0,9))return JSON.parse(a);var c,e=a.substring(13);a=a.substring(9,13);if("blob"===a&&g.test(e)){var d=e.match(g);c=d[1];e=e.substring(d[0].length)}e=r(e);switch(a){case "arbf":return e;case "blob":var b;e=[e];c={type:c};e=e||[];c=c||{};try{b=new Blob(e,c)}catch(p){if("TypeError"!==p.name)throw p;b=new (f.BlobBuilder||f.Ud||f.Gj||f.WebKitBlobBuilder);for(a=0;a<e.length;a+=1)b.append(e[a]);b=b.getBlob(c.type)}return b;case "si08":return new Int8Array(e);
case "ui08":return new Uint8Array(e);case "uic8":return new Uint8ClampedArray(e);case "si16":return new Int16Array(e);case "ur16":return new Uint16Array(e);case "si32":return new Int32Array(e);case "ui32":return new Uint32Array(e);case "fl32":return new Float32Array(e);case "fl64":return new Float64Array(e);default:throw Error("Unkown type: "+a);}},mA:r,Sz:p}}("undefined"!=typeof window?window:self);f.Cd=q["default"]},function(f,q,t){q.kj=!0;q["default"]=function(f){function p(a){var b=this,c={db:null};
if(a)for(var d in a)c[d]="string"!=typeof a[d]?a[d].toString():a[d];var e=new Promise(function(a,d){try{c.db=u(c.name,String(c.version),c.description,c.size)}catch(e){return d(e)}c.db.transaction(function(e){e.executeSql("CREATE TABLE IF NOT EXISTS "+c.ma+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.fa=c;a()},function(a,b){d(b)})})});return(new Promise(function(a){a(t(3))})).then(function(a){return c.Xf=a,e})}function q(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.fa;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.ma+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=e.Xf.Kj(d));b(d)},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function g(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var e=c.fa;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.ma,[],function(c,d){for(var h=d.rows,
f=h.length,k=0;f>k;k++){var g=h.item(k),m=g.value;if(m&&(m=e.Xf.Kj(m)),m=a(m,g.key,k+1),void 0!==m)return void b(m)}b()},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function a(a,b,c){var d=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(c,e){d.ready().then(function(){void 0===b&&(b=null);var f=b,k=d.fa;k.Xf.serialize(b,function(b,d){d?e(d):k.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+k.ma+
" (key, value) VALUES (?, ?)",[a,b],function(){c(f)},function(a,b){e(b)})},function(a){a.code===a.QUOTA_ERR&&e(a)})})})["catch"](e)});return l(e,c),e}function c(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.fa;e.db.transaction(function(c){c.executeSql("DELETE FROM "+e.ma+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function e(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.fa;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.ma,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return l(c,a),c}function d(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.fa;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.ma,[],function(b,c){var d=c.rows.item(0).Ah;a(d)},function(a,b){c(b)})})})["catch"](c)});return l(c,a),c}function b(a,b){var c=this,
d=new Promise(function(b,d){c.ready().then(function(){var e=c.fa;e.db.transaction(function(c){c.executeSql("SELECT key FROM "+e.ma+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function x(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.fa;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.ma,[],function(b,c){for(var d=[],e=0;e<c.rows.length;e++)d.push(c.rows.item(e).key);
a(d)},function(a,b){c(b)})})})["catch"](c)});return l(c,a),c}function l(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var u=f.openDatabase;if(u)return{vh:"webSQLStorage",Ll:p,pq:g,getItem:q,setItem:a,removeItem:c,clear:e,length:d,key:b,keys:x}}("undefined"!=typeof window?window:self);f.Cd=q["default"]}])};"object"==typeof exports&&"object"==typeof module?module.Cd=tc():"function"==typeof define&&define.Rz?define([],tc):"object"==typeof exports?exports.localforage=tc():this.localforage=
tc()}catch(uc){sc=!0}function Z(f){this.b=f}
(function(){function f(a){a.b.trigger(Z.prototype.j.ij,a)}function q(){}function t(){}function r(){}var p="",v="",g="";"undefined"!==typeof window.is_scirra_arcade&&(g="sa"+window.scirra_arcade_id+"_");var a=Z.prototype;a.za=function(a){this.Aa=a;this.b=a.b};a.za.prototype.S=function(){};a.na=function(a){this.type=a;this.b=a.b};var c=a.na.prototype;c.S=function(){this.Hn=this.In=0};c.$e=function(){};c.Ab=function(){return{}};c.Ob=function(){};q.prototype.Gt=function(a){return p===a};q.prototype.xt=
function(){return!0};q.prototype.Lo=function(a){return p===a};q.prototype.wt=function(){return!0};q.prototype.ij=function(){return!0};q.prototype.Ko=function(a){return p===a};q.prototype.Mo=function(a){return p===a};q.prototype.Ws=function(a,c){return dc(v,a,c)};q.prototype.pt=function(){return!0};q.prototype.ot=function(){return!0};a.j=new q;t.prototype.du=function(a,c){if(sc)f(this);else{var b=g+a;this.In++;var r=this;localforage.setItem(b,c,function(b,c){r.In--;b?r.b.trigger(Z.prototype.j.ij,r):
(p=a,v=c,r.b.trigger(Z.prototype.j.xt,r),r.b.trigger(Z.prototype.j.Gt,r),v=p="");0===r.In&&r.b.trigger(Z.prototype.j.pt,r)})}};t.prototype.et=function(a){if(sc)f(this);else{var c=g+a;this.Hn++;var b=this;localforage.getItem(c,function(c,d){b.Hn--;if(c)b.b.trigger(Z.prototype.j.ij,b);else{p=a;v=d;if("undefined"===typeof v||null===v)v="";b.b.trigger(Z.prototype.j.wt,b);b.b.trigger(Z.prototype.j.Lo,b);v=p=""}0===b.Hn&&b.b.trigger(Z.prototype.j.ot,b)})}};t.prototype.Ts=function(a){if(sc)f(this);else{var c=
this;localforage.getItem(g+a,function(b,f){b?c.b.trigger(Z.prototype.j.ij,c):(p=a,null===f?(v="",c.b.trigger(Z.prototype.j.Mo,c)):(v=f,c.b.trigger(Z.prototype.j.Ko,c)),v=p="")})}};a.U=new t;r.prototype.lt=function(a){a.co(v)};a.Da=new r})();function vc(f){this.b=f}
(function(){function f(){}function q(){}var t=vc.prototype;t.za=function(f){this.Aa=f;this.b=f.b};t.za.prototype.S=function(){};t.na=function(f){this.type=f;this.b=f.b;this.lg=Array(4);this.zs=this.sl=this.eg=this.Ze=this.Ye=0;this.Fm=!1};var r=t.na.prototype;r.S=function(){var f=this;if(!this.b.Fa){jQuery(document).mousemove(function(a){f.Bn(a)});jQuery(document).mousedown(function(a){f.An(a)});jQuery(document).mouseup(function(a){f.Cn(a)});jQuery(document).dblclick(function(a){f.Cx(a)});var g=function(a){f.Gx(a)};
document.addEventListener("mousewheel",g,!1);document.addEventListener("DOMMouseScroll",g,!1)}};var p={left:0,top:0};r.Bn=function(f){var g=this.b.Fa?p:jQuery(this.b.canvas).offset();this.Ye=f.pageX-g.left;this.Ze=f.pageY-g.top};r.Vq=function(){return 0<this.b.Nb?!0:0<=this.Ye&&0<=this.Ze&&this.Ye<this.b.width&&this.Ze<this.b.height};r.An=function(f){this.Vq()&&(this.lg[f.which]=!0,this.b.Va=!0,this.b.trigger(vc.prototype.j.ut,this),this.eg=f.which-1,this.sl=0,this.b.trigger(vc.prototype.j.Ho,this),
this.b.trigger(vc.prototype.j.Vo,this),this.b.Va=!1)};r.Cn=function(f){this.lg[f.which]&&(this.b.ek&&!this.b.ie&&f.preventDefault(),this.b.ek=!0,this.lg[f.which]=!1,this.b.Va=!0,this.eg=f.which-1,this.b.trigger(vc.prototype.j.Wo,this),this.b.Va=!1)};r.Cx=function(f){this.Vq()&&(f.preventDefault(),this.b.Va=!0,this.eg=f.which-1,this.sl=1,this.b.trigger(vc.prototype.j.Ho,this),this.b.trigger(vc.prototype.j.Vo,this),this.b.Va=!1)};r.Gx=function(f){this.zs=0>(f.wheelDelta?f.wheelDelta:f.detail?-f.detail:
0)?0:1;this.Fm=!1;this.b.Va=!0;this.b.trigger(vc.prototype.j.Yt,this);this.b.Va=!1;this.Fm&&kb(f)&&f.preventDefault()};r.bf=function(){var f,g;f=0;for(g=this.lg.length;f<g;++f)this.lg[f]&&(this.lg[f]=!1,this.eg=f-1,this.b.trigger(vc.prototype.j.Wo,this))};f.prototype.Ho=function(f,g){return f===this.eg&&g===this.sl};f.prototype.ut=function(){return!0};f.prototype.Wo=function(f){return f===this.eg};f.prototype.Vo=function(f,g,a){return f!==this.eg||g!==this.sl?!1:this.b.Yi(a,this.Ye,this.Ze)};f.prototype.Yt=
function(f){this.Fm=!0;return f===this.zs};t.j=new f;t.U=new function(){};q.prototype.Hl=function(f,g){var a,c,e,d,b;ha(g)?(a=this.b.fe(0),c=a.scale,e=a.Lb,d=a.Yb,b=a.k,a.scale=1,a.Lb=1,a.Yb=1,a.k=0,f.D(a.ab(this.Ye,this.Ze,!0)),a.scale=c,a.Lb=e,a.Yb=d,a.k=b):(a=ia(g)?this.b.fe(g):this.b.Ph(g))?f.D(a.ab(this.Ye,this.Ze,!0)):f.D(0)};q.prototype.Il=function(f,g){var a,c,e,d,b;ha(g)?(a=this.b.fe(0),c=a.scale,e=a.Lb,d=a.Zb,b=a.k,a.scale=1,a.Lb=1,a.Zb=1,a.k=0,f.D(a.ab(this.Ye,this.Ze,!1)),a.scale=c,a.Lb=
e,a.Zb=d,a.k=b):(a=ia(g)?this.b.fe(g):this.b.Ph(g))?f.D(a.ab(this.Ye,this.Ze,!1)):f.D(0)};t.Da=new q})();function oc(f){this.b=f}
(function(){function f(){if(0===this.gm.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.fh?b.drawImage(this.rb,this.Vg,this.Wg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.rb,0,0,this.width,this.height);this.gm=a.toDataURL("image/png")}return this.gm}function q(){}function t(a){a[0]=0;a[1]=0;a[2]=0;b.push(a)}function r(a,b){return a<b?""+a+","+b:""+b+","+a}function p(a,c,d,e){c=c.uid;d=d.uid;var f=r(c,d);if(a.hasOwnProperty(f))a[f][2]=
e;else{var g=b.length?b.pop():[0,0,0];g[0]=c;g[1]=d;g[2]=e;a[f]=g}}function v(a,b,c){b=r(b.uid,c.uid);a.hasOwnProperty(b)&&(t(a[b]),delete a[b])}function g(a,b,c){b=r(b.uid,c.uid);if(a.hasOwnProperty(b))return x=a[b][2],!0;x=-2;return!1}var a=oc.prototype;a.za=function(a){this.Aa=a;this.b=a.b};var c=a.za.prototype;c.S=function(){if(!this.P){var a,b,c,d,e,g,p,l,r;this.dd=[];this.Vh=!1;a=0;for(b=this.jc.length;a<b;a++){e=this.jc[a];p={};p.name=e[0];p.speed=e[1];p.loop=e[2];p.Un=e[3];p.Vn=e[4];p.yr=
e[5];p.W=e[6];p.frames=[];c=0;for(d=e[7].length;c<d;c++)g=e[7][c],l={},l.us=g[0],l.vs=g[1],l.Vg=g[2],l.Wg=g[3],l.width=g[4],l.height=g[5],l.duration=g[6],l.nc=g[7],l.oc=g[8],l.Km=g[9],l.Qk=g[10],l.Ar=g[11],l.fh=0!==l.width,l.gm="",l.Wz=f,r={left:0,top:0,right:1,bottom:1},l.eo=r,l.ye=null,(r=this.b.gw(g[0]))?l.rb=r:(l.rb=new Image,l.rb.Su=g[0],l.rb.Ru=g[1],l.rb.Iu=null,this.b.My(l.rb,g[0])),p.frames.push(l),this.dd.push(l);this.jc[a]=p}}};c.Is=function(){var a,b,c;a=0;for(b=this.i.length;a<b;a++)c=
this.i[a],c.Dj=c.sb.ye};c.zn=function(){if(!this.P){var a,b,c;a=0;for(b=this.dd.length;a<b;++a)c=this.dd[a],c.rb.Iu=null,c.ye=null;this.Vh=!1;this.Is()}};c.kr=function(){if(!this.P&&this.i.length){var a,b,c;a=0;for(b=this.dd.length;a<b;++a)c=this.dd[a],c.ye=this.b.C.xq(c.rb,this.b.Oa,c.Ar);this.Is()}};c.tx=function(){if(!this.P&&!this.Vh&&this.b.C){var a,b,c;a=0;for(b=this.dd.length;a<b;++a)c=this.dd[a],c.ye=this.b.C.xq(c.rb,this.b.Oa,c.Ar);this.Vh=!0}};c.Es=function(){if(!this.P&&!this.i.length&&
this.Vh){var a,b,c;a=0;for(b=this.dd.length;a<b;++a)c=this.dd[a],this.b.C.deleteTexture(c.ye),c.ye=null;this.Vh=!1}};var e=[];c.Er=function(a){var b,c,d;M(e);b=0;for(c=this.dd.length;b<c;++b)d=this.dd[b].rb,-1===e.indexOf(d)&&(a.drawImage(d,0,0),e.push(d))};a.na=function(a){this.type=a;this.b=a.b;a=this.type.jc[0].frames[0].Qk;this.$b?this.ka.Si(a):this.ka=new db(a)};var d=a.na.prototype;d.S=function(){this.visible=0===this.F[0];this.Wd=0!==this.F[3];this.Ea=this.Np(this.F[1])||this.type.jc[0];this.G=
this.F[2];0>this.G&&(this.G=0);this.G>=this.Ea.frames.length&&(this.G=this.Ea.frames.length-1);var a=this.Ea.frames[this.G];this.ka.Si(a.Qk);this.nc=a.nc;this.oc=a.oc;this.ng=this.Ea.speed;this.Ke=this.Ea.Vn;1===this.type.jc.length&&1===this.type.jc[0].frames.length||0===this.ng||this.b.lo(this);this.$b?this.Ad.reset():this.Ad=new bb;this.ee=this.Ad.aa;this.rf=!0;this.Sd=0;this.qf=!0;this.Xl=this.lp="";this.Mu=0;this.Wl=-1;this.type.tx();var b,c,d,e,f,g,l,a=0;for(b=this.type.jc.length;a<b;a++)for(e=
this.type.jc[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.rb.width,f.height=f.rb.height),f.fh&&(l=f.rb,g=f.eo,g.left=f.Vg/l.width,g.top=f.Wg/l.height,g.right=(f.Vg+f.width)/l.width,g.bottom=(f.Wg+f.height)/l.height,0===f.Vg&&0===f.Wg&&f.width===l.width&&f.height===l.height&&(f.fh=!1));this.sb=this.Ea.frames[this.G];this.Dj=this.sb.ye};d.Ab=function(){var a={a:this.Ea.W,f:this.G,cas:this.ng,fs:this.ee,ar:this.Sd,at:this.Ad.aa,rt:this.Ke};this.rf||(a.ap=this.rf);this.qf||(a.af=
this.qf);return a};d.Ob=function(a){var b=this.pw(a.a);b&&(this.Ea=b);this.G=a.f;0>this.G&&(this.G=0);this.G>=this.Ea.frames.length&&(this.G=this.Ea.frames.length-1);this.ng=a.cas;this.ee=a.fs;this.Sd=a.ar;this.Ad.reset();this.Ad.aa=a.at;this.rf=a.hasOwnProperty("ap")?a.ap:!0;this.qf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Ke=a.rt:this.Ke=this.Ea.Vn;this.sb=this.Ea.frames[this.G];this.Dj=this.sb.ye;this.ka.Si(this.sb.Qk);this.nc=this.sb.nc;this.oc=this.sb.oc};d.Ol=function(a){this.G=
a?0:this.Ea.frames.length-1;this.rf=!1;this.lp=this.Ea.name;this.b.trigger(oc.prototype.j.tt,this);this.b.trigger(oc.prototype.j.qt,this);this.Sd=0};d.Ud=function(){return this.Ad.aa};d.$a=function(){this.Ad.add(this.b.bk(this));this.Xl.length&&this.Zu();0<=this.Wl&&this.$u();var a=this.Ad.aa,b=this.Ea,c=b.frames[this.G],d=c.duration/this.ng;this.rf&&a>=this.ee+d&&(this.qf?this.G++:this.G--,this.ee+=d,this.G>=b.frames.length&&(b.yr?(this.qf=!1,this.G=b.frames.length-2):b.loop?this.G=this.Ke:(this.Sd++,
this.Sd>=b.Un?this.Ol(!1):this.G=this.Ke)),0>this.G&&(b.yr?(this.G=1,this.qf=!0,b.loop||(this.Sd++,this.Sd>=b.Un&&this.Ol(!0))):b.loop?this.G=this.Ke:(this.Sd++,this.Sd>=b.Un?this.Ol(!0):this.G=this.Ke)),0>this.G?this.G=0:this.G>=b.frames.length&&(this.G=b.frames.length-1),a>this.ee+b.frames[this.G].duration/this.ng&&(this.ee=a),a=b.frames[this.G],this.ig(c,a),this.b.ta=!0)};d.Np=function(a){var b,c,d;b=0;for(c=this.type.jc.length;b<c;b++)if(d=this.type.jc[b],jb(d.name,a))return d;return null};d.pw=
function(a){var b,c,d;b=0;for(c=this.type.jc.length;b<c;b++)if(d=this.type.jc[b],d.W===a)return d;return null};d.Zu=function(){var a=this.Ea.frames[this.G],b=this.Np(this.Xl);this.Xl="";!b||jb(b.name,this.Ea.name)&&this.rf||(this.Ea=b,this.ng=b.speed,this.Ke=b.Vn,0>this.G&&(this.G=0),this.G>=this.Ea.frames.length&&(this.G=this.Ea.frames.length-1),1===this.Mu&&(this.G=0),this.rf=!0,this.ee=this.Ad.aa,this.qf=!0,this.ig(a,this.Ea.frames[this.G]),this.b.ta=!0)};d.$u=function(){var a=this.Ea.frames[this.G],
b=this.G;this.G=C(this.Wl);0>this.G&&(this.G=0);this.G>=this.Ea.frames.length&&(this.G=this.Ea.frames.length-1);b!==this.G&&(this.ig(a,this.Ea.frames[this.G]),this.ee=this.Ad.aa,this.b.ta=!0);this.Wl=-1};d.ig=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.nc=b.nc;this.oc=b.oc;this.ka.Si(b.Qk);this.q();this.sb=b;this.Dj=b.ye;c=0;for(d=this.M.length;c<d;c++)e=this.M[c],e.Ex&&e.Ex(a,b);this.b.trigger(oc.prototype.j.ig,this)};d.ae=function(a){a.globalAlpha=
this.opacity;var b=this.sb,c=b.fh,d=b.rb,e=this.x,f=this.y,g=this.width,l=this.height;if(0===this.k&&0<=g&&0<=l)e-=this.nc*g,f-=this.oc*l,this.b.oe&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.Vg,b.Wg,b.width,b.height,e,f,g,l):a.drawImage(d,e,f,g,l);else{this.b.oe&&(e=Math.round(e),f=Math.round(f));a.save();var p=0<g?1:-1,r=0<l?1:-1;a.translate(e,f);1===p&&1===r||a.scale(p,r);a.rotate(this.k*p*r);e=0-this.nc*oa(g);f=0-this.oc*oa(l);c?a.drawImage(d,b.Vg,b.Wg,b.width,b.height,e,f,oa(g),oa(l)):
a.drawImage(d,e,f,oa(g),oa(l));a.restore()}};d.sg=function(a){this.Qc(a)};d.Qc=function(a){a.Jc(this.Dj);a.bh(this.opacity);var b=this.sb,c=this.Ub;if(this.b.oe){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.fh?a.ef(c.Bb+d,c.Cb+e,c.hc+d,c.ic+e,c.Vb+d,c.Wb+e,c.Sb+d,c.Tb+e,b.eo):a.Mi(c.Bb+d,c.Cb+e,c.hc+d,c.ic+e,c.Vb+d,c.Wb+e,c.Sb+d,c.Tb+e)}else b.fh?a.ef(c.Bb,c.Cb,c.hc,c.ic,c.Vb,c.Wb,c.Sb,c.Tb,b.eo):a.Mi(c.Bb,c.Cb,c.hc,c.ic,c.Vb,c.Wb,c.Sb,c.Tb)};d.sw=function(a){var b=this.sb,c,d;c=
0;for(d=b.Km.length;c<d;c++)if(jb(a,b.Km[c][0]))return c;return-1};d.ym=function(a,b){var c=this.sb,d=c.Km,e;ja(a)?e=this.sw(a):e=a-1;e=C(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.nc)*this.width,d=d[e][2],d=(d-c.oc)*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 b=[],x=-2,l=[];q.prototype.At=function(a){if(!a)return!1;var b=this.b,c=b.$j(),d=c.type,e=null;c.H.collmemory?e=c.H.collmemory:(e={},c.H.collmemory=e);
c.H.spriteCreatedDestroyCallback||(c.H.spriteCreatedDestroyCallback=!0,b.oj(function(a){var b=c.H.collmemory;a=a.uid;var d,e;for(d in b)b.hasOwnProperty(d)&&(e=b[d],e[0]===a||e[1]===a)&&(t(b[d]),delete b[d])}));var f=d.ea(),r=a.ea(),f=f.Dc(),q,u,w,L,N,K,y,J=this.b.ud,P=J-1,X=b.Gb().Ac;for(u=0;u<f.length;u++){w=f[u];r.ya?(w.X(),this.b.Pp(w.n,a,w.ja,l),q=l,this.b.xu(w,a,q)):q=r.Dc();for(L=0;L<q.length;L++)N=q[L],b.gc(w,N)||b.Nu(w,N)?(K=g(e,w,N),K=!K||x<P,p(e,w,N,J),K&&(b.Vk(X.Ia),K=d.ea(),y=a.ea(),
K.ya=!1,y.ya=!1,d===a?(K.i.length=2,K.i[0]=w,K.i[1]=N,d.fd()):(K.i.length=1,y.i.length=1,K.i[0]=w,y.i[0]=N,d.fd(),a.fd()),X.cy(),b.Vf(X.Ia))):v(e,w,N);M(l)}return!1};var u=new da,w=!1;new va(0,0,0,0);c.finish=function(a){if(w){if(a){var b=this.b.Gb().Ac.Uc;a=null.ea();var c=u.nf(),d,e;if(a.ya){a.ya=!1;M(a.i);d=0;for(e=c.length;d<e;++d)a.i[d]=c[d];if(b)for(M(a.Y),d=0,e=null.i.length;d<e;++d)c=null.i[d],u.contains(c)||a.Y.push(c)}else if(b)for(b=a.i.length,d=0,e=c.length;d<e;++d)a.i[b+d]=c[d],Da(a.Y,
c[d]);else Aa(a.i,c);null.fd()}u.clear();w=!1}};q.prototype.qt=function(a){return jb(this.lp,a)};q.prototype.tt=function(){return!0};q.prototype.ig=function(){return!0};a.j=new q;a.U=new function(){};a.Da=new function(){}})();function wc(f){this.b=f}
(function(){function f(){return a.length?a.pop():{}}function q(c){var e,d;e=0;for(d=c.length;e<d;e++)a.push(c[e]);M(c)}function t(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function r(){}var p=wc.prototype;p.S=function(){p.U.ku=function(a){this.width!==a&&(this.width=a,this.bg=!0,this.q())}};p.za=function(a){this.Aa=a;this.b=a.b};var v=p.za.prototype;v.S=function(){};v.zn=function(){if(!this.P){var a,e,d;a=0;for(e=this.i.length;a<e;a++)d=this.i[a],d.Kd=null,d.Sf=null,
d.rc=null}};p.na=function(a){this.type=a;this.b=a.b;this.$b?M(this.Sc):this.Sc=[];this.bg=!0};v=p.na.prototype;v.S=function(){this.text=this.F[0];this.visible=0===this.F[1];this.font=this.F[2];this.color=this.F[3];this.fk=this.F[4];this.zl=this.F[5];this.zo=0===this.F[7];this.an=this.tk=this.width;this.sk=this.height;this.dn=this.F[8];this.Uj=this.ug="";this.ss=this.ts=this.Ki=0;this.Jx();this.rc=this.Sf=this.Kd=null;this.Yq=!1;this.mi=this.b.ud;this.$b?this.Zg.set(0,0,1,1):this.Zg=new va(0,0,1,1);
this.b.C&&this.b.lo(this)};v.Jx=function(){var a=this.font.split(" "),e;for(e=0;e<a.length;e++)if("pt"===a[e].substr(a[e].length-2,2)){this.Ki=parseInt(a[e].substr(0,a[e].length-2));this.Pn=Math.ceil(this.Ki/72*96)+4;0<e&&(this.Uj=a[e-1]);this.ug=a[e+1];for(e+=2;e<a.length;e++)this.ug+=" "+a[e];break}};v.Ab=function(){return{t:this.text,f:this.font,c:this.color,ha:this.fk,va:this.zl,wr:this.zo,lho:this.dn,fn:this.ug,fs:this.Uj,ps:this.Ki,pxh:this.Pn,tw:this.ts,th:this.ss,lrt:this.mi}};v.Ob=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.fk=a.ha;this.zl=a.va;this.zo=a.wr;this.dn=a.lho;this.ug=a.fn;this.Uj=a.fs;this.Ki=a.ps;this.Pn=a.pxh;this.ts=a.tw;this.ss=a.th;this.mi=a.lrt;this.bg=!0;this.an=this.tk=this.width;this.sk=this.height};v.$a=function(){if(this.b.C&&this.rc&&300<=this.b.ud-this.mi){var a=this.n;this.X();var e=this.ja;if(e.right<a.qa||e.bottom<a.ra||e.left>a.xa||e.top>a.wa)this.b.C.deleteTexture(this.rc),this.Kd=this.Sf=this.rc=null}};v.$e=function(){this.Kd=this.Sf=null;this.b.C&&
this.rc&&this.b.C.deleteTexture(this.rc);this.rc=null};v.Ud=function(){this.font=this.Uj+" "+this.Ki.toString()+"pt "+this.ug;this.bg=!0;this.b.ta=!0};v.ae=function(a,e){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=e?1:this.opacity;var d=1;e&&(d=Math.abs(this.n.mc()),a.save(),a.scale(d,d));if(this.bg||this.width!==this.an)this.type.Aa.ou(this.text,this.Sc,a,this.width,this.zo),this.bg=!1,this.an=this.width;this.X();var d=e?0:this.Ub.Bb,b=e?0:this.Ub.Cb;this.b.oe&&(d=
d+.5|0,b=b+.5|0);0===this.k||e||(a.save(),a.translate(d,b),a.rotate(this.k),b=d=0);var f=b+this.height,g=this.Pn,g=g+this.dn,p,r;1===this.zl?b+=Math.max(this.height/2-this.Sc.length*g/2,0):2===this.zl&&(b+=Math.max(this.height-this.Sc.length*g-2,0));for(r=0;r<this.Sc.length&&!(p=d,1===this.fk?p=d+(this.width-this.Sc[r].width)/2:2===this.fk&&(p=d+(this.width-this.Sc[r].width)),a.fillText(this.Sc[r].text,p,b),b+=g,b>=f-g);r++);(0!==this.k||e)&&a.restore();this.mi=this.b.ud};v.Qc=function(a){if(!(1>
this.width||1>this.height)){var e=this.bg||this.Yq;this.Yq=!1;var d=this.n.mc(),b=this.n.cb(),f=this.Zg,g=d*this.width,p=d*this.height,r=Math.ceil(g),h=Math.ceil(p),k=Math.abs(r),m=Math.abs(h),t=this.b.J/2,q=this.b.I/2;this.Sf||(this.Kd=document.createElement("canvas"),this.Kd.width=k,this.Kd.height=m,this.tk=k,this.sk=m,e=!0,this.Sf=this.Kd.getContext("2d"));if(k!==this.tk||m!==this.sk)this.Kd.width=k,this.Kd.height=m,this.rc&&(a.deleteTexture(this.rc),this.rc=null),e=!0;e&&(this.Sf.clearRect(0,
0,k,m),this.ae(this.Sf,!0),this.rc||(this.rc=a.zc(k,m,this.b.Oa,this.b.ie)),a.Ly(this.Kd,this.rc,this.b.ie));this.tk=k;this.sk=m;a.Jc(this.rc);a.bh(this.opacity);a.Xc();a.translate(-t,-q);a.Kc();var v=this.Ub,e=this.n.Ha(v.Bb,v.Cb,!0,!0),k=this.n.Ha(v.Bb,v.Cb,!1,!0),m=this.n.Ha(v.hc,v.ic,!0,!0),t=this.n.Ha(v.hc,v.ic,!1,!0),q=this.n.Ha(v.Vb,v.Wb,!0,!0),R=this.n.Ha(v.Vb,v.Wb,!1,!0),D=this.n.Ha(v.Sb,v.Tb,!0,!0),v=this.n.Ha(v.Sb,v.Tb,!1,!0);if(this.b.oe||0===this.k&&0===b)var E=(e+.5|0)-e,G=(k+.5|0)-
k,e=e+E,k=k+G,m=m+E,t=t+G,q=q+E,R=R+G,D=D+E,v=v+G;0===this.k&&0===b?(m=e+r,t=k,q=m,R=k+h,D=e,v=R,f.right=1,f.bottom=1):(f.right=g/r,f.bottom=p/h);a.ef(e,k,m,t,q,R,D,v,f);a.Xc();a.scale(d,d);a.al(-this.n.cb());a.translate((this.n.qa+this.n.xa)/-2,(this.n.ra+this.n.wa)/-2);a.Kc();this.mi=this.b.ud}};var g=[];p.lu=function(a){M(g);for(var e="",d,b=0;b<a.length;)if(d=a.charAt(b),"\n"===d)e.length&&(g.push(e),e=""),g.push("\n"),++b;else if(" "===d||"\t"===d||"-"===d){do e+=a.charAt(b),b++;while(b<a.length&&
(" "===a.charAt(b)||"\t"===a.charAt(b)));g.push(e);e=""}else b<a.length&&(e+=d,b++);e.length&&g.push(e)};var a=[];p.ou=function(a,e,d,b,g){if(a&&a.length)if(2>=b)q(e);else{if(100>=a.length&&-1===a.indexOf("\n")){var l=d.measureText(a).width;if(l<=b){q(e);e.push(f());e[0].text=a;e[0].width=l;return}}this.pu(a,e,d,b,g)}else q(e)};p.pu=function(c,e,d,b,p){p&&(this.lu(c),c=g);var l="",r,q,h,k=0;for(h=0;h<c.length;h++)"\n"===c[h]?(k>=e.length&&e.push(f()),l=t(l),q=e[k],q.text=l,q.width=d.measureText(l).width,
k++,l=""):(r=l,l+=c[h],q=d.measureText(l).width,q>=b&&(k>=e.length&&e.push(f()),r=t(r),q=e[k],q.text=r,q.width=d.measureText(r).width,k++,l=c[h],p||" "!==l||(l="")));l.length&&(k>=e.length&&e.push(f()),l=t(l),q=e[k],q.text=l,q.width=d.measureText(l).width,k++);for(h=k;h<e.length;h++)a.push(e[h]);e.length=k};p.j=new function(){};r.prototype.fu=function(a){ia(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.bg=!0,this.b.ta=!0)};p.U=new r;p.Da=new function(){}})();
function xc(f){this.b=f}
(function(){function f(a){e=a.x;d=a.y;b=a.z}function q(a,b,c,d){var e;e=x.length?x.pop():new t;e.init(a,b,c,d);return e}function t(){this.Vi=this.id=this.Nf=this.Mf=this.y=this.x=this.kl=this.jl=this.$m=this.time=this.jo=0;this.$i=this.tl=!1}function r(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function p(){}function v(){}var g=xc.prototype;g.za=function(a){this.Aa=
a;this.b=a.b};g.za.prototype.S=function(){};g.na=function(a){this.type=a;this.b=a.b;this.touches=[];this.qn=!1};var a=g.na.prototype,c={left:0,top:0};a.Nh=function(a){var b,c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var e=0,d=0,b=0,x=[];t.prototype.init=function(a,b,c,d){var e=Wa();this.jo=this.$m=this.time=e;this.jl=a;this.kl=b;this.x=a;this.y=b;this.Mf=a;this.Nf=b;this.pressure=this.height=this.width=0;this.id=c;this.Vi=d;this.$i=this.tl=!1};t.prototype.update=
function(a,b,c,d,e,f){this.$m=this.time;this.time=a;this.Mf=this.x;this.Nf=this.y;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.$i&&15<=Sa(this.jl,this.kl,this.x,this.y)&&(this.$i=!0)};t.prototype.wx=function(a,b){!this.tl&&500<=Wa()-this.jo&&!this.$i&&15>Sa(this.jl,this.kl,this.x,this.y)&&(this.tl=!0,a.Qd=this.Vi,a.jh=this.id,a.Ag=b,a.b.trigger(xc.prototype.j.Et,a),a.Yd=this.x,a.Zd=this.y,a.b.trigger(xc.prototype.j.Ft,a),a.Ag=0)};var l=-1E3,u=-1E3,w=-1E4;t.prototype.Rq=function(a,
b){if(!this.tl){var c=Wa();333>=c-this.jo&&!this.$i&&15>Sa(this.jl,this.kl,this.x,this.y)&&(a.Qd=this.Vi,a.jh=this.id,a.Ag=b,666>=c-w&&25>Sa(l,u,this.x,this.y)?(a.b.trigger(xc.prototype.j.Bt,a),a.Yd=this.x,a.Zd=this.y,a.b.trigger(xc.prototype.j.Ct,a),u=l=-1E3,w=-1E4):(a.b.trigger(xc.prototype.j.Vt,a),a.Yd=this.x,a.Zd=this.y,a.b.trigger(xc.prototype.j.Wt,a),l=this.x,u=this.y,w=c),a.Ag=0)}};a.S=function(){this.ix=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Ag=this.jh=this.Qd=
this.Zd=this.Yd=this.fp=this.ep=this.dp=this.vu=this.uu=this.tu=this.Mk=this.Lk=this.Kk=0;this.Jy=0!==this.F[0];var a=0<this.b.Nb?document:this.b.canvas,b=document;this.b.Ib?b=a=window.Canvas:this.b.Rc&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.jr(a)},!1),a.addEventListener("pointermove",function(a){c.ir(a)},!1),b.addEventListener("pointerup",function(a){c.Jk(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Jk(a,!0)},!1),this.b.canvas&&
(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.jr(a)},!1),a.addEventListener("MSPointerMove",function(a){c.ir(a)},!1),b.addEventListener("MSPointerUp",
function(a){c.Jk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Jk(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.mr(a)},!1),a.addEventListener("touchmove",function(a){c.lr(a)},!1),b.addEventListener("touchend",function(a){c.Dn(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Dn(a,!0)},
!1));if(this.ix){var d=function(a){a=a.reading;c.dp=a.accelerationX;c.ep=a.accelerationY;c.fp=a.accelerationZ},e=function(a){a=a.reading;c.Kk=a.yawDegrees;c.Lk=a.pitchDegrees;c.Mk=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",d));var l=Windows.Devices.Sensors.Inclinometer.getDefault();l&&(l.reportInterval=Math.max(l.minimumReportInterval,16),l.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",
function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),l&&l.removeEventListener("readingchanged",e)):(g&&g.addEventListener("readingchanged",d),l&&l.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.Kk=a.alpha||0;c.Lk=a.beta||0;c.Mk=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.tu=a.accelerationIncludingGravity.x||0,c.uu=a.accelerationIncludingGravity.y||
0,c.vu=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.dp=a.acceleration.x||0,c.ep=a.acceleration.y||0,c.fp=a.acceleration.z||0)},!1);this.Jy&&!this.b.Fa&&(jQuery(document).mousemove(function(a){c.Bn(a)}),jQuery(document).mousedown(function(a){c.An(a)}),jQuery(document).mouseup(function(a){c.Cn(a)}));!this.b.Jg&&this.b.Fc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(f,null,{frequency:40});this.b.By(this)};a.ir=function(a){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Nh(a.pointerId),d=Wa();if(0<=b){var e=this.b.Fa?c:jQuery(this.b.canvas).offset(),b=this.touches[b];2>d-b.time||b.update(d,a.pageX-e.left,a.pageY-e.top,a.width||0,a.height||0,a.pressure||0)}}};a.jr=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&kb(a)&&a.preventDefault();var b=this.b.Fa?c:jQuery(this.b.canvas).offset(),d=a.pageX-b.left,b=a.pageY-b.top;Wa();
this.Qd=this.touches.length;this.jh=a.pointerId;this.touches.push(q(d,b,a.pointerId,this.Qd));this.b.Va=!0;this.b.trigger(xc.prototype.j.Uo,this);this.b.trigger(xc.prototype.j.Zo,this);this.Yd=d;this.Zd=b;this.b.trigger(xc.prototype.j.Fl,this);this.b.Va=!1}};a.Jk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&kb(a)&&a.preventDefault();var c=this.Nh(a.pointerId);this.Qd=0<=c?this.touches[c].Vi:-1;this.jh=0<=c?this.touches[c].id:-1;this.b.Va=!0;this.b.trigger(xc.prototype.j.To,
this);this.b.trigger(xc.prototype.j.Yo,this);0<=c&&(b||this.touches[c].Rq(this,c),100>x.length&&x.push(this.touches[c]),this.touches.splice(c,1));this.b.Va=!1}};a.lr=function(a){a.preventDefault&&a.preventDefault();var b=Wa(),d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.Nh(f.identifier),0<=g){var l=this.b.Fa?c:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,f.pageX-l.left,f.pageY-l.top,2*(f.iA||f.rA||f.aA||f.dA||0),2*(f.jA||f.sA||f.bA||
f.eA||0),f.Uz||f.qA||f.$z||f.cA||0)}};a.mr=function(a){a.preventDefault&&kb(a)&&a.preventDefault();var b=this.b.Fa?c:jQuery(this.b.canvas).offset();Wa();this.b.Va=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.Nh(f.identifier),-1===g){g=f.pageX-b.left;var l=f.pageY-b.top;this.Qd=this.touches.length;this.jh=f.identifier;this.touches.push(q(g,l,f.identifier,this.Qd));this.b.trigger(xc.prototype.j.Uo,this);this.b.trigger(xc.prototype.j.Zo,this);this.Yd=g;this.Zd=
l;this.b.trigger(xc.prototype.j.Fl,this)}this.b.Va=!1};a.Dn=function(a,b){a.preventDefault&&kb(a)&&a.preventDefault();this.b.Va=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Nh(e.identifier),0<=e&&(this.Qd=this.touches[e].Vi,this.jh=this.touches[e].id,this.b.trigger(xc.prototype.j.To,this),this.b.trigger(xc.prototype.j.Yo,this),b||this.touches[e].Rq(this,e),100>x.length&&x.push(this.touches[e]),this.touches.splice(e,1));this.b.Va=!1};a.Ud=function(){return this.b.Fc&&
0===this.Kk&&0!==b?90*b:this.Kk};a.Gj=function(){return this.b.Fc&&0===this.Lk&&0!==d?90*d:this.Lk};a.Zp=function(){return this.b.Fc&&0===this.Mk&&0!==e?90*e:this.Mk};a.An=function(a){r(a)||(this.mr({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.qn=!0)};a.Bn=function(a){this.qn&&!r(a)&&this.lr({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.Cn=function(a){a.preventDefault&&this.b.ek&&!this.b.ie&&a.preventDefault();this.b.ek=!0;r(a)||(this.Dn({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]}),this.qn=!1)};a.pl=function(){var a,b,c,d=Wa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.$m=d),c.wx(this,a)};p.prototype.Zo=function(){return!0};p.prototype.Yo=function(){return!0};p.prototype.Fl=function(a){return a?this.b.Yi(a,this.Yd,this.Zd):!1};p.prototype.Uo=function(a){a=Math.floor(a);return a===this.Qd};p.prototype.To=function(a){a=Math.floor(a);return a===this.Qd};p.prototype.Et=function(){return!0};p.prototype.Vt=function(){return!0};
p.prototype.Bt=function(){return!0};p.prototype.Ft=function(a){return a?this.b.Yi(a,this.Yd,this.Zd):!1};p.prototype.Wt=function(a){return a?this.b.Yi(a,this.Yd,this.Zd):!1};p.prototype.Ct=function(a){return a?this.b.Yi(a,this.Yd,this.Zd):!1};g.j=new p;g.U=new function(){};v.prototype.Hl=function(a,b){var c=this.Ag;if(0>c||c>=this.touches.length)a.D(0);else{var d,e,f,g,l;ha(b)?(d=this.b.fe(0),e=d.scale,f=d.Lb,g=d.Yb,l=d.k,d.scale=1,d.Lb=1,d.Yb=1,d.k=0,a.D(d.ab(this.touches[c].x,this.touches[c].y,
!0)),d.scale=e,d.Lb=f,d.Yb=g,d.k=l):(d=ia(b)?this.b.fe(b):this.b.Ph(b))?a.D(d.ab(this.touches[c].x,this.touches[c].y,!0)):a.D(0)}};v.prototype.Il=function(a,b){var c=this.Ag;if(0>c||c>=this.touches.length)a.D(0);else{var d,e,f,g,l;ha(b)?(d=this.b.fe(0),e=d.scale,f=d.Lb,g=d.Zb,l=d.k,d.scale=1,d.Lb=1,d.Zb=1,d.k=0,a.D(d.ab(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Lb=f,d.Zb=g,d.k=l):(d=ia(b)?this.b.fe(b):this.b.Ph(b))?a.D(d.ab(this.touches[c].x,this.touches[c].y,!1)):a.D(0)}};g.Da=new v})();
function yc(f){this.b=f}
(function(){var f=yc.prototype;f.za=function(f){this.behavior=f;this.b=f.b};f.za.prototype.S=function(){};f.na=function(f,r){this.type=f;this.behavior=f.behavior;this.d=r;this.b=f.b};var q=f.na.prototype;q.S=function(){this.jp=this.F[0];this.kp=this.F[1];this.Bu=this.F[2];this.Au=this.F[3];this.d.X();this.Ao=this.d.ja.left;this.Do=this.d.ja.top;this.Bo=this.b.Qa-this.d.ja.left;this.Co=this.b.Pa-this.d.ja.top;this.Sn=this.b.Qa-this.d.ja.right;this.Rl=this.b.Pa-this.d.ja.bottom;this.enabled=0!==this.F[4]};
q.Ab=function(){return{xleft:this.Ao,ytop:this.Do,xright:this.Bo,ybottom:this.Co,rdiff:this.Sn,bdiff:this.Rl,enabled:this.enabled}};q.Ob=function(f){this.Ao=f.xleft;this.Do=f.ytop;this.Bo=f.xright;this.Co=f.ybottom;this.Sn=f.rdiff;this.Rl=f.bdiff;this.enabled=f.enabled};q.$a=function(){if(this.enabled){var f,r=this.d.n,p=this.d,q=this.d.ja;0===this.jp?(p.X(),f=r.qa+this.Ao-q.left,0!==f&&(p.x+=f,p.q())):1===this.jp&&(p.X(),f=r.xa-this.Bo-q.left,0!==f&&(p.x+=f,p.q()));0===this.kp?(p.X(),f=r.ra+this.Do-
q.top,0!==f&&(p.y+=f,p.q())):1===this.kp&&(p.X(),f=r.wa-this.Co-q.top,0!==f&&(p.y+=f,p.q()));1===this.Bu&&(p.X(),f=r.xa-this.Sn-q.right,0!==f&&(p.width+=f,0>p.width&&(p.width=0),p.q()));1===this.Au&&(p.X(),f=r.wa-this.Rl-q.bottom,0!==f&&(p.height+=f,0>p.height&&(p.height=0),p.q()))}};f.j=new function(){};f.U=new function(){};f.Da=new function(){}})();function zc(f){this.b=f}
(function(){function f(){}var q=zc.prototype;q.za=function(f){this.behavior=f;this.b=f.b};q.za.prototype.S=function(){};q.na=function(f,p){this.type=f;this.behavior=f.behavior;this.d=p;this.b=f.b};var t=q.na.prototype;t.S=function(){var f=this.F[0];this.bd=this.F[1];this.lc=this.F[2];this.Gu=0!==this.F[3];this.$n=0!==this.F[4];this.r=Math.cos(this.d.k)*f;this.B=Math.sin(this.d.k)*f;this.Mf=this.d.x;this.Nf=this.d.y;this.Gc=this.d.k;this.rl=0;this.enabled=0!==this.F[5]};t.Ab=function(){return{acc:this.bd,
g:this.lc,dx:this.r,dy:this.B,lx:this.Mf,ly:this.Nf,lka:this.Gc,t:this.rl,e:this.enabled}};t.Ob=function(f){this.bd=f.acc;this.lc=f.g;this.r=f.dx;this.B=f.dy;this.Mf=f.lx;this.Nf=f.ly;this.Gc=f.lka;this.rl=f.t;this.enabled=f.e};t.$a=function(){if(this.enabled){var f=this.b.bk(this.d),p,q;this.d.k!==this.Gc&&(this.$n&&(p=Sa(0,0,this.r,this.B),this.r=Math.cos(this.d.k)*p,this.B=Math.sin(this.d.k)*p),this.Gc=this.d.k);0!==this.bd&&(p=Sa(0,0,this.r,this.B),q=0===this.r&&0===this.B?this.d.k:La(0,0,this.r,
this.B),p+=this.bd*f,0>p&&(p=0),this.r=Math.cos(q)*p,this.B=Math.sin(q)*p);0!==this.lc&&(this.B+=this.lc*f);this.Mf=this.d.x;this.Nf=this.d.y;if(0!==this.r||0!==this.B)if(this.d.x+=this.r*f,this.d.y+=this.B*f,this.rl+=Sa(0,0,this.r*f,this.B*f),this.$n&&(this.d.k=La(0,0,this.r,this.B),this.d.q(),this.Gc=this.d.k),this.d.q(),this.Gu&&(p=this.b.qb(this.d)))this.b.pe(this.d,p),p=Sa(0,0,this.r,this.B),q=this.b.Ju(this.d,this.Mf,this.Nf),this.r=Math.cos(q)*p,this.B=Math.sin(q)*p,this.d.x+=this.r*f,this.d.y+=
this.B*f,this.d.q(),this.$n&&(this.Gc=this.d.k=q,this.d.q()),this.b.Wc(this.d,this.r/p,this.B/p,Math.max(2.5*p*f,30))||this.b.Ir(this.d,100)}};q.j=new function(){};f.prototype.eu=function(f){var p=La(0,0,this.r,this.B);this.r=Math.cos(p)*f;this.B=Math.sin(p)*f};f.prototype.bu=function(f){f=T(f);var p=Sa(0,0,this.r,this.B);this.r=Math.cos(f)*p;this.B=Math.sin(f)*p};q.U=new f;q.Da=new function(){}})();function Cc(f){this.b=f}
(function(){function f(){}var q=Cc.prototype;q.za=function(f){this.behavior=f;this.b=f.b};q.za.prototype.S=function(){};q.na=function(f,p){this.type=f;this.behavior=f.behavior;this.d=p;this.b=f.b};var t=q.na.prototype;t.S=function(){this.hb=null;this.Ok=-1;this.mode=this.Gc=this.nl=this.Ug=this.ne=this.Ii=0;var f=this;this.$b||(this.Ai=function(p){f.Ei(p)});this.b.oj(this.Ai)};t.Ab=function(){return{uid:this.hb?this.hb.uid:-1,pa:this.Ii,pd:this.ne,msa:this.Ug,tsa:this.nl,lka:this.Gc,m:this.mode}};
t.Ob=function(f){this.Ok=f.uid;this.Ii=f.pa;this.ne=f.pd;this.Ug=f.msa;this.nl=f.tsa;this.Gc=f.lka;this.mode=f.m};t.zd=function(){-1===this.Ok?this.hb=null:this.hb=this.b.Df(this.Ok);this.Ok=-1};t.Ei=function(f){this.hb==f&&(this.hb=null)};t.$e=function(){this.hb=null;this.b.Kr(this.Ai)};t.$a=function(){};t.pl=function(){if(this.hb){this.Gc!==this.d.k&&(this.Ug=Ia(this.Ug+(this.d.k-this.Gc)));var f=this.d.x,p=this.d.y;if(3===this.mode||4===this.mode){var q=Sa(this.d.x,this.d.y,this.hb.x,this.hb.y);
if(q>this.ne||4===this.mode&&q<this.ne)p=La(this.hb.x,this.hb.y,this.d.x,this.d.y),f=this.hb.x+Math.cos(p)*this.ne,p=this.hb.y+Math.sin(p)*this.ne}else f=this.hb.x+Math.cos(this.hb.k+this.Ii)*this.ne,p=this.hb.y+Math.sin(this.hb.k+this.Ii)*this.ne;this.Gc=q=Ia(this.Ug+(this.hb.k-this.nl));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.d.x===f&&this.d.y===p||(this.d.x=f,this.d.y=p,this.d.q());0!==this.mode&&2!==this.mode||this.d.k===q||(this.d.k=q,this.d.q())}};q.j=new function(){};
f.prototype.Zt=function(f,p){if(f){var q=f.Tp(this.d);q&&(this.hb=q,this.Ii=La(q.x,q.y,this.d.x,this.d.y)-q.k,this.ne=Sa(q.x,q.y,this.d.x,this.d.y),this.Gc=this.Ug=this.d.k,this.nl=q.k,this.mode=p)}};q.U=new f;q.Da=new function(){}})();function Gc(f){this.b=f}
(function(){function f(){}function q(){}var t=Gc.prototype;t.za=function(f){this.behavior=f;this.b=f.b};t.za.prototype.S=function(){};t.na=function(f,q){this.type=f;this.behavior=f.behavior;this.d=q;this.b=f.b;this.gl=this.ho=this.fo=this.Jm=this.Bh=this.Hh=this.Kg=this.Lg=this.Ni=this.ni=!1;this.Jb=null;this.gn=-1;this.Te=this.Se=0;this.Oh=!1;this.vg=this.ed=0;this.Tj=!0;this.B=this.r=0};var r=t.na.prototype;r.Js=function(){this.Sa=Math.cos(this.zg);this.Ta=Math.sin(this.zg);this.ff=Math.cos(this.zg-
Math.PI/2);this.gf=Math.sin(this.zg-Math.PI/2);this.Sa=ib(this.Sa);this.Ta=ib(this.Ta);this.ff=ib(this.ff);this.gf=ib(this.gf);this.um=this.lc;0>this.lc&&(this.Sa*=-1,this.Ta*=-1,this.lc=Math.abs(this.lc))};r.S=function(){this.Rg=this.F[0];this.bd=this.F[1];this.rg=this.F[2];this.ji=this.F[3];this.um=this.lc=this.F[4];this.Fk=this.F[5];this.jm=0!==this.F[6];this.Xm=this.F[7]/1E3;this.Vu=1===this.F[8];this.enabled=0!==this.F[9];this.oh=!1;this.ph=this.b.kf(this.d);this.hn=-1;this.ag=0;this.zg=T(90);
this.Js();var f=this;this.Vu&&!this.b.Fa&&(jQuery(document).keydown(function(q){f.xn(q)}),jQuery(document).keyup(function(q){f.yn(q)}));this.$b||(this.Ai=function(q){f.Ei(q)});this.b.oj(this.Ai);this.d.H.isPlatformBehavior=!0};r.Ab=function(){return{ii:this.Jm,lfx:this.Se,lfy:this.Te,lfo:this.Jb?this.Jb.uid:-1,am:this.ed,en:this.enabled,fall:this.vg,ft:this.Tj,dx:this.r,dy:this.B,ms:this.Rg,acc:this.bd,dec:this.rg,js:this.ji,g:this.lc,g1:this.um,mf:this.Fk,wof:this.oh,woj:this.ph?this.ph.uid:-1,ga:this.zg,
edj:this.jm,cdj:this.Bh,dj:this.Hh,sus:this.Xm}};r.Ob=function(f){this.Jm=f.ii;this.Se=f.lfx;this.Te=f.lfy;this.gn=f.lfo;this.ed=f.am;this.enabled=f.en;this.vg=f.fall;this.Tj=f.ft;this.r=f.dx;this.B=f.dy;this.Rg=f.ms;this.bd=f.acc;this.rg=f.dec;this.ji=f.js;this.lc=f.g;this.um=f.g1;this.Fk=f.mf;this.oh=f.wof;this.hn=f.woj;this.zg=f.ga;this.jm=f.edj;this.Bh=f.cdj;this.Hh=f.dj;this.Xm=f.sus;this.gl=this.ho=this.fo=this.Kg=this.Lg=this.Ni=this.ni=!1;this.ag=0;this.Js()};r.zd=function(){-1===this.gn?
this.Jb=null:this.Jb=this.b.Df(this.gn);-1===this.hn?this.ph=null:this.ph=this.b.Df(this.hn)};r.Ei=function(f){this.Jb==f&&(this.Jb=null)};r.$e=function(){this.Jb=null;this.b.Kr(this.Ai)};r.xn=function(f){switch(f.which){case 38:f.preventDefault();this.Lg=!0;break;case 37:f.preventDefault();this.ni=!0;break;case 39:f.preventDefault(),this.Ni=!0}};r.yn=function(f){switch(f.which){case 38:f.preventDefault();this.Kg=this.Lg=!1;break;case 37:f.preventDefault();this.ni=!1;break;case 39:f.preventDefault(),
this.Ni=!1}};r.bf=function(){this.Lg=this.Ni=this.ni=!1};r.Ud=function(){return 0>this.lc?-1:1};r.jq=function(){var f=null,q=null,g,a;g=this.d.x;a=this.d.y;this.d.x+=this.Sa;this.d.y+=this.Ta;this.d.q();if(this.Jb&&this.b.gc(this.d,this.Jb)&&(!this.b.qo(this.Jb.type,fc.ks)||this.Jb.H.solidEnabled))return this.d.x=g,this.d.y=a,this.d.q(),this.Jb;(f=this.b.qb(this.d))||0!==this.vg||(q=this.b.kf(this.d,!0));this.d.x=g;this.d.y=a;this.d.q();if(f){if(this.b.gc(this.d,f))return null;this.Oh=!1;return f}if(q&&
q.length){a=f=0;for(g=q.length;f<g;f++)q[a]=q[f],this.b.gc(this.d,q[f])||a++;if(1<=a)return this.Oh=!0,q[0]}return null};r.$a=function(){};r.Dr=function(){var f=this.b.bk(this.d),q,g,a,c,e,d,b,r,l;this.Lg||this.gl||(this.Kg=!1);var t=this.ni||this.fo;a=this.Ni||this.ho;var w=(c=this.Lg||this.gl)&&!this.Kg;this.gl=this.ho=this.fo=!1;if(this.enabled){this.Jm&&(w=c=a=t=!1);c||(this.ag=0);r=this.Jb;l=!1;this.Tj&&((this.b.qb(this.d)||this.b.kf(this.d))&&this.b.Wc(this.d,-this.Sa,-this.Ta,4,!0),this.Tj=
!1);!r||0!==this.B||r.y===this.Te&&r.x===this.Se||(q=r.x-this.Se,g=r.y-this.Te,this.d.x+=q,this.d.y+=g,this.d.q(),this.Se=r.x,this.Te=r.y,l=!0,this.b.qb(this.d)&&this.b.Wc(this.d,-q,-g,2.5*Math.sqrt(q*q+g*g)));var h=this.jq();if(g=this.b.qb(this.d))if(e=Math.abs(this.d.width),d=Math.abs(this.d.height),this.d.H.inputPredicted)this.b.Wc(this.d,-this.Sa,-this.Ta,10,!1);else if(this.b.On(this.d,-this.Sa,-this.Ta,d/8))this.b.pe(this.d,g);else if(this.b.On(this.d,this.ff,this.gf,e/2))this.b.pe(this.d,g);
else if(this.b.On(this.d,this.Sa,this.Ta,d/2))this.b.pe(this.d,g);else if(this.b.Ir(this.d,Math.max(e,d)/2))this.b.pe(this.d,g);else return;h?(this.Bh=this.Hh=!1,0<this.B&&(this.oh||(this.b.Xk(this.d,-this.Sa,-this.Ta,h),this.oh=!0),this.B=0),r!=h)?(this.Jb=h,this.Se=h.x,this.Te=h.y,this.b.pe(this.d,h)):l&&(g=this.b.qb(this.d))&&(this.b.pe(this.d,g),0!==q&&(0<q?this.b.Wc(this.d,-this.ff,-this.gf):this.b.Wc(this.d,this.ff,this.gf)),this.b.Wc(this.d,-this.Sa,-this.Ta)):c||(this.Bh=!0);if(h&&w||!h&&
this.jm&&c&&this.Bh&&!this.Hh)r=this.d.x,l=this.d.y,this.d.x-=this.Sa,this.d.y-=this.Ta,this.d.q(),this.b.qb(this.d)?w=!1:(this.ag=this.Xm,this.b.trigger(Gc.prototype.j.Ht,this.d),this.ed=2,this.B=-this.ji,w=!0,h?this.Kg=!0:this.Hh=!0),this.d.x=r,this.d.y=l,this.d.q();h||(c&&0<this.ag?(this.B=-this.ji,this.ag-=f):(this.Jb=null,this.B+=this.lc*f,this.B>this.Fk&&(this.B=this.Fk)),w&&(this.Kg=!0));this.oh=!!h;t==a&&(0>this.r?(this.r+=this.rg*f,0<this.r&&(this.r=0)):0<this.r&&(this.r-=this.rg*f,0>this.r&&
(this.r=0)));t&&!a&&(this.r=0<this.r?this.r-(this.bd+this.rg)*f:this.r-this.bd*f);a&&!t&&(this.r=0>this.r?this.r+(this.bd+this.rg)*f:this.r+this.bd*f);this.r>this.Rg?this.r=this.Rg:this.r<-this.Rg&&(this.r=-this.Rg);t=!1;0!==this.r&&(r=this.d.x,l=this.d.y,q=this.r*f*this.ff,g=this.r*f*this.gf,this.d.x+=this.ff*(1<this.r?1:-1)-this.Sa,this.d.y+=this.gf*(1<this.r?1:-1)-this.Ta,this.d.q(),c=!1,e=this.b.qb(this.d),this.d.x=r+q,this.d.y=l+g,this.d.q(),a=this.b.qb(this.d),!a&&h&&(a=this.b.kf(this.d))&&
(this.d.x=r,this.d.y=l,this.d.q(),this.b.gc(this.d,a)?(a=null,c=!1):c=!0,this.d.x=r+q,this.d.y=l+g,this.d.q()),a?(q=Math.abs(this.r*f)+2,e||!this.b.Wc(this.d,-this.Sa,-this.Ta,q,c,a))?(this.b.pe(this.d,a),q=Math.max(Math.abs(this.r*f*2.5),30),this.b.Wc(this.d,this.ff*(0>this.r?1:-1),this.gf*(0>this.r?1:-1),q,!1)?!h||c||this.Oh||(r=this.d.x,l=this.d.y,this.d.x+=this.Sa,this.d.y+=this.Ta,this.b.qb(this.d)?this.b.Wc(this.d,-this.Sa,-this.Ta,3,!1)||(this.d.x=r,this.d.y=l,this.d.q()):(this.d.x=r,this.d.y=
l,this.d.q())):(this.d.x=r,this.d.y=l,this.d.q()),c||(this.r=0)):!e&&!w&&Math.abs(this.B)<Math.abs(this.ji/4)&&(this.B=0,h||(t=!0)):(r=this.jq(),h&&!r?(g=Math.ceil(Math.abs(this.r*f))+2,r=this.d.x,l=this.d.y,this.d.x+=this.Sa*g,this.d.y+=this.Ta*g,this.d.q(),this.b.qb(this.d)||this.b.kf(this.d)?this.b.Wc(this.d,-this.Sa,-this.Ta,g+2,!0):(this.d.x=r,this.d.y=l,this.d.q())):r&&(!h&&this.Oh&&(this.Jb=r,this.Se=r.x,this.Te=r.y,this.B=0,t=!0),0===this.B&&this.b.Xk(this.d,-this.Sa,-this.Ta,r))));if(0!==
this.B){r=this.d.x;l=this.d.y;this.d.x+=this.B*f*this.Sa;this.d.y+=this.B*f*this.Ta;q=this.d.x;a=this.d.y;this.d.q();g=this.b.qb(this.d);c=!1;if(!g&&0<this.B&&!h){if((c=0<this.vg?null:this.b.kf(this.d,!0))&&c.length){if(this.ph){this.d.x=r;this.d.y=l;this.d.q();b=e=0;for(d=c.length;e<d;e++)c[b]=c[e],this.b.gc(this.d,c[e])||b++;c.length=b;this.d.x=q;this.d.y=a;this.d.q()}1<=c.length&&(g=c[0])}c=!!g}g&&(this.b.pe(this.d,g),this.ag=0,q=c?Math.abs(this.B*f*2.5+10):Math.max(Math.abs(this.B*f*2.5+10),30),
this.b.Wc(this.d,this.Sa*(0>this.B?1:-1),this.Ta*(0>this.B?1:-1),q,c,g)?(this.Jb=g,this.Se=g.x,this.Te=g.y,(this.Oh=c)&&(t=!0),this.B=0):(this.d.x=r,this.d.y=l,this.d.q(),this.oh=!0,c||(this.B=0)))}3!==this.ed&&0<this.B&&!h&&(this.b.trigger(Gc.prototype.j.Dt,this.d),this.ed=3);(h||t)&&0<=this.B&&(3===this.ed||t||w&&0===this.B?(this.b.trigger(Gc.prototype.j.Jt,this.d),this.ed=0===this.r&&0===this.B?0:1):(0!==this.ed&&0===this.r&&0===this.B&&(this.b.trigger(Gc.prototype.j.Ut,this.d),this.ed=0),1===
this.ed||0===this.r&&0===this.B||w||(this.b.trigger(Gc.prototype.j.Mt,this.d),this.ed=1)));0<this.vg&&this.vg--;this.ph=this.b.kf(this.d)}};f.prototype.Ht=function(){return!0};f.prototype.Dt=function(){return!0};f.prototype.Ut=function(){return!0};f.prototype.Mt=function(){return!0};f.prototype.Jt=function(){return!0};t.j=new f;q.prototype.iu=function(f){this.B=f};t.U=new q;t.Da=new function(){}})();function Ic(f){this.b=f}
(function(){function f(a){for(var c in a)delete a[c]}function q(){this.stack=[];this.df=-1}function t(){this.Sc=[]}function r(){this.name="";this.Lr=0;this.pb=[];this.sn={};this.Xq={}}function p(){}function v(){}function g(){}var a=Ic.prototype;a.za=function(a){this.behavior=a;this.b=a.b};a.za.prototype.S=function(){};a.na=function(a,c){this.type=a;this.behavior=a.behavior;this.d=c;this.b=a.b};var c=a.na.prototype,e=t.prototype;e.zu=function(){return 0<this.Sc.length?this.Sc.pop():null};e.iw=function(a){this.Sc.push(a)};
e.hw=function(a){var c,d;c=0;for(d=a.length;c<d;c++)this.iw(a[c]);a.length=0};var d=new t,e=q.prototype;e.reset=function(){d.hw(this.stack);this.df=-1};e.push=function(){this.df++;if(this.df===this.stack.length){var a=d.zu()||new r;this.stack.push(a)}return this.stack[this.df]};e.ak=function(){return 0>this.df?null:this.stack[this.df]};e.Ud=function(){if(!this.stack.length)return null;var a=this.df+1;a>=this.stack.length&&(a=this.stack.length-1);return this.stack[a]};e.pop=function(){this.df--};c.S=
function(){this.kx="undefined"!==typeof log&&1==this.F[0];this.$b||(this.Ne=new q);this.Ne.push().name="__main__";this.Uf=0};c.$e=function(){this.Ne.reset()};c.$a=function(){};c.lw=function(){this.Uf=0};c.kw=function(){var a=this.Ne.ak();f(a.Xq);f(a.sn)};c.Ud=function(a,c){var d=this.Ne.ak();if(!d)return!1;d.sn[a]=this.Uf;if(this.Uf>=d.pb.length){d.pb.length=this.Uf+1;var e=d.Xq[a];null==e&&(e=c);d.pb[this.Uf]=e}this.Uf+=1;return!0};c.Gj=function(a){var c=this.Ne.ak();if(!c)return null;if("string"==
typeof a){if(a=c.sn[a],null==a)return null}else a=C(a);return 0<=a&&a<c.pb.length?(c=c.pb[a],null==c&&(c=0),c):null};a.j=new p;p.prototype.Jo=function(a){var c=this.Ne.ak();return c?jb(a,c.name):!1};a.U=new v;v.prototype.Ss=function(){};a.Da=new g;g.prototype.Fo=function(a,c){var d=this.Ne.push();d.name=c.toLowerCase();d.Lr=0;d.pb.length=0;var e,f;e=2;for(f=arguments.length;e<f;e++)d.pb.push(arguments[e]);if(this.kx)for(e=1;e<funcStackPtr;e++);this.lw();this.b.trigger(Ic.prototype.j.Jo,this.d,d.name);
this.kw();this.Ne.pop();a.co(d.Lr)}})();
function nc(){return[pc,qc,rc,Z,vc,oc,wc,xc,yc,zc,Gc,Ic,Cc,oc.prototype.j.sh,W.prototype.U.au,oc.prototype.U.$s,W.prototype.U.gu,Ic.prototype.j.Jo,wc.prototype.j.kt,wc.prototype.U.ju,Gc.prototype.U.iu,oc.prototype.j.At,W.prototype.U.hu,W.prototype.j.ct,W.prototype.Da.random,W.prototype.j.Xs,W.prototype.U.Zs,W.prototype.Da.qx,oc.prototype.Da.nu,zc.prototype.U.bu,oc.prototype.Da.Hl,oc.prototype.Da.Il,oc.prototype.j.Ys,oc.prototype.j.ht,pc.prototype.U.$t,W.prototype.U.Os,oc.prototype.U.cu,oc.prototype.j.Io,
zc.prototype.U.eu,W.prototype.j.jt,xc.prototype.j.Fl,Ic.prototype.U.Ss,Ic.prototype.Da.Fo,rc.prototype.j.No,W.prototype.j.mu,qc.prototype.U.Ps,W.prototype.j.Qo,Cc.prototype.U.Zt,W.prototype.j.dt,wc.prototype.U.fu,Z.prototype.U.Ts,Z.prototype.j.Ko,Z.prototype.Da.lt,Z.prototype.j.Mo,Z.prototype.U.du,Z.prototype.U.et,Z.prototype.j.Lo,Z.prototype.j.Ws]};