forked from gotoAndDie/c2-sans-fight
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathc2runtime.js
447 lines (447 loc) · 215 KB
/
c2runtime.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,da,ea,fa,ga,ha,ia,A,ja,ka,la,oa,qa,ra,D,sa,ta,ua,va,wa,xa,za,H,Ba,Ca,Da,Fa,Ha,V,Ia,Ja,Ka,La,Ma,Na,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(a,c,b,v){this.set(a,c,b,v)}function q(){this.$a=this.Za=this.bb=this.ab=this.nb=this.mb=this.Ba=this.Aa=0}function l(a,c,b,v){a<c?b<v?(h=a<b?a:b,t=c>v?c:v):(h=a<v?a:v,t=c>b?c:b):b<v?(h=c<b?c:b,t=a>v?a:v):(h=c<v?c:v,t=a>b?a:b)}function k(){this.items=this.zd=null;this.Ch=0;y&&(this.zd=new Set);this.Gg=[];this.qe=!0}function u(a){E[C++]=a}function n(){this.Z=this.xk=this.y=this.hl=0}function p(a){this.kb=[];this.Ti=this.Vi=this.Wi=this.Ui=0;this.ei(a)}function b(a,c){this.ll=
a;this.kl=c;this.cells={}}function f(a,c){this.ll=a;this.kl=c;this.cells={}}function e(a,c,b){var v;return K.length?(v=K.pop(),v.Vl=a,v.x=c,v.y=b,v):new ca(a,c,b)}function a(a,c,b){this.Vl=a;this.x=c;this.y=b;this.qb=new da}function c(a,c,b){var v;return J.length?(v=J.pop(),v.Vl=a,v.x=c,v.y=b,v):new ea(a,c,b)}function g(a,c,b){this.Vl=a;this.x=c;this.y=b;this.qb=[];this.dg=!0;this.wd=new da;this.Og=!1}function m(a,c){return a.kd-c.kd}fa=function(a){window.console&&window.console.log&&window.console.log(a)};
ga=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ha=function(a){return"undefined"===typeof a};ia=function(a){return"number"===typeof a};A=function(a){return"string"===typeof a};ja=function(a){return 0<a&&0===(a-1&a)};ka=function(a){--a;for(var c=1;32>c;c<<=1)a=a|a>>c;return a+1};la=function(a){return 0>a?-a:a};oa=function(a,c){return a>c?a:c};qa=function(a,c){return a<c?a:c};ra=Math.PI;D=function(a){return 0<=a?a|0:(a|0)-1};sa=function(a){var c=
a|0;return c===a?c:c+1};ta=function(a,c,b,v,g,e,h,m){var r,f,t,w;a<b?(f=a,r=b):(f=b,r=a);g<h?(w=g,t=h):(w=h,t=g);if(r<w||f>t)return!1;c<v?(f=c,r=v):(f=v,r=c);e<m?(w=e,t=m):(w=m,t=e);if(r<w||f>t)return!1;r=g-a+h-b;f=e-c+m-v;a=b-a;c=v-c;g=h-g;e=m-e;m=la(c*g-e*a);return la(g*f-e*r)>m?!1:la(a*f-c*r)<=m};d.prototype.set=function(a,c,b,v){this.left=a;this.top=c;this.right=b;this.bottom=v};d.prototype.Pf=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};d.prototype.width=
function(){return this.right-this.left};d.prototype.height=function(){return this.bottom-this.top};d.prototype.offset=function(a,c){this.left+=a;this.top+=c;this.right+=a;this.bottom+=c;return this};d.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};d.prototype.Nv=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};d.prototype.Ov=
function(a,c,b){return!(a.right+c<this.left||a.bottom+b<this.top||a.left+c>this.right||a.top+b>this.bottom)};d.prototype.Xb=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};d.prototype.Yg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ua=d;q.prototype.di=function(a){this.Aa=a.left;this.Ba=a.top;this.mb=a.right;this.nb=a.top;this.ab=a.right;this.bb=a.bottom;this.Za=a.left;this.$a=a.bottom};q.prototype.Kq=function(a,
c){if(0===c)this.di(a);else{var b=Math.sin(c),v=Math.cos(c),g=a.left*b,e=a.top*b,h=a.right*b,b=a.bottom*b,m=a.left*v,r=a.top*v,f=a.right*v,v=a.bottom*v;this.Aa=m-e;this.Ba=r+g;this.mb=f-e;this.nb=r+h;this.ab=f-b;this.bb=v+h;this.Za=m-b;this.$a=v+g}};q.prototype.offset=function(a,c){this.Aa+=a;this.Ba+=c;this.mb+=a;this.nb+=c;this.ab+=a;this.bb+=c;this.Za+=a;this.$a+=c;return this};var h=0,t=0;q.prototype.oo=function(a){l(this.Aa,this.mb,this.ab,this.Za);a.left=h;a.right=t;l(this.Ba,this.nb,this.bb,
this.$a);a.top=h;a.bottom=t};q.prototype.Xb=function(a,c){var b=this.Aa,v=this.Ba,g=this.mb-b,e=this.nb-v,h=this.ab-b,m=this.bb-v,r=a-b,f=c-v,t=g*g+e*e,w=g*h+e*m,e=g*r+e*f,d=h*h+m*m,p=h*r+m*f,k=1/(t*d-w*w),g=(d*e-w*p)*k,t=(t*p-w*e)*k;if(0<=g&&0<t&&1>g+t)return!0;g=this.Za-b;e=this.$a-v;t=g*g+e*e;w=g*h+e*m;e=g*r+e*f;k=1/(t*d-w*w);g=(d*e-w*p)*k;t=(t*p-w*e)*k;return 0<=g&&0<t&&1>g+t};q.prototype.nc=function(a,c){if(c)switch(a){case 0:return this.Aa;case 1:return this.mb;case 2:return this.ab;case 3:return this.Za;
case 4:return this.Aa;default:return this.Aa}else switch(a){case 0:return this.Ba;case 1:return this.nb;case 2:return this.bb;case 3:return this.$a;case 4:return this.Ba;default:return this.Ba}};q.prototype.Qp=function(){return(this.Aa+this.mb+this.ab+this.Za)/4};q.prototype.Rp=function(){return(this.Ba+this.nb+this.bb+this.$a)/4};q.prototype.cp=function(a){var c=a.Qp(),b=a.Rp();if(this.Xb(c,b))return!0;c=this.Qp();b=this.Rp();if(a.Xb(c,b))return!0;var v,g,e,h,m,r,f,t;for(f=0;4>f;f++)for(t=0;4>t;t++)if(c=
this.nc(f,!0),b=this.nc(f,!1),v=this.nc(f+1,!0),g=this.nc(f+1,!1),e=a.nc(t,!0),h=a.nc(t,!1),m=a.nc(t+1,!0),r=a.nc(t+1,!1),ta(c,b,v,g,e,h,m,r))return!0;return!1};va=q;wa=function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b]);return a};xa=function(a,c){var b,v;c=D(c);if(!(0>c||c>=a.length)){b=c;for(v=a.length-1;b<v;b++)a[b]=a[b+1];za(a,v)}};za=function(a,c){a.length=c};H=function(a){za(a,0)};Ba=function(a,c){H(a);var b,v;b=0;for(v=c.length;b<v;++b)a[b]=c[b]};Ca=function(a,c){a.push.apply(a,c)};
Da=function(a,c){var b,v;b=0;for(v=a.length;b<v;++b)if(a[b]===c)return b;return-1};Fa=function(a,c){var b=Da(a,c);-1!==b&&xa(a,b)};Ha=function(a,c,b){return a<c?c:a>b?b:a};V=function(a){return a/(180/ra)};Ia=function(a){return 180/ra*a};Ja=function(a){a%=360;0>a&&(a+=360);return a};Ka=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};La=function(a){return Ja(Ia(a))};Ma=function(a){return Ka(V(a))};Na=function(a,c,b,v){return Math.atan2(v-c,b-a)};Pa=function(a,c){if(a===c)return 0;var b=Math.sin(a),v=Math.cos(a),
g=Math.sin(c),e=Math.cos(c),b=b*g+v*e;return 1<=b?0:-1>=b?ra:Math.acos(b)};Qa=function(a,c,b){var v=Math.sin(a),g=Math.cos(a),e=Math.sin(c),h=Math.cos(c);return Math.acos(v*e+g*h)>b?0<g*e-v*h?Ka(a+b):Ka(a-b):Ka(c)};Ra=function(a,c){var b=Math.sin(a),v=Math.cos(a),g=Math.sin(c),e=Math.cos(c);return 0>=v*g-b*e};Sa=function(a,c,b,v,g,e){if(0===b)return e?a:c;var h=Math.sin(b);b=Math.cos(b);a-=v;c-=g;var m=a*h;a=a*b-c*h;c=c*b+m;return e?a+v:c+g};Ta=function(a,c,b,v){a=b-a;c=v-c;return Math.sqrt(a*a+c*
c)};Ua=function(a,c){return!a!==!c};Va=function(a){for(var c in a)if(a.hasOwnProperty(c))return!0;return!1};Wa=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var N=+new Date;Xa=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()-N};var r=!1,
w=r=!1,W=!1;"undefined"!==typeof window&&(r=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),r=!r&&/safari/i.test(navigator.userAgent),w=/(iphone|ipod|ipad)/i.test(navigator.userAgent),W=window.c2ejecta);var y=!r&&!W&&!w&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;k.prototype.contains=function(a){return this.Pd()?!1:y?this.zd.has(a):this.items&&this.items.hasOwnProperty(a)};k.prototype.add=function(a){if(y)this.zd.has(a)||(this.zd.add(a),this.qe=
!1);else{var c=a.toString(),b=this.items;b?b.hasOwnProperty(c)||(b[c]=a,this.Ch++,this.qe=!1):(this.items={},this.items[c]=a,this.Ch=1,this.qe=!1)}};k.prototype.remove=function(a){if(!this.Pd())if(y)this.zd.has(a)&&(this.zd["delete"](a),this.qe=!1);else if(this.items){a=a.toString();var c=this.items;c.hasOwnProperty(a)&&(delete c[a],this.Ch--,this.qe=!1)}};k.prototype.clear=function(){this.Pd()||(y?this.zd.clear():(this.items=null,this.Ch=0),H(this.Gg),this.qe=!0)};k.prototype.Pd=function(){return 0===
this.count()};k.prototype.count=function(){return y?this.zd.size:this.Ch};var E=null,C=0;k.prototype.nx=function(){if(!this.qe){if(y)H(this.Gg),E=this.Gg,C=0,this.zd.forEach(u),E=null,C=0;else{var a=this.Gg;H(a);var c,b=0,v=this.items;if(v)for(c in v)v.hasOwnProperty(c)&&(a[b++]=v[c])}this.qe=!0}};k.prototype.Se=function(){this.nx();return this.Gg};da=k;new da;Ya=function(a,c){y?cb(a,c.zd):db(a,c.Se())};cb=function(a,c){var b,v,g,e;v=b=0;for(g=a.length;b<g;++b)e=a[b],c.has(e)||(a[v++]=e);za(a,v)};
db=function(a,c){var b,v,g,e;v=b=0;for(g=a.length;b<g;++b)e=a[b],-1===Da(c,e)&&(a[v++]=e);za(a,v)};n.prototype.add=function(a){this.y=a-this.hl;this.xk=this.Z+this.y;this.hl=this.xk-this.Z-this.y;this.Z=this.xk};n.prototype.reset=function(){this.Z=this.xk=this.y=this.hl=0};eb=n;fb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};p.prototype.ei=function(a){this.rq=a;this.ed=a.length/2;this.kb.length=a.length;this.Yi=this.Zi=-1;this.ro=0};p.prototype.$f=function(){return!this.rq.length};
p.prototype.Ca=function(){for(var a=this.kb,c=a[0],b=c,v=a[1],g=v,e,h,m=1,f=this.ed;m<f;++m)h=2*m,e=a[h],h=a[h+1],e<c&&(c=e),e>b&&(b=e),h<v&&(v=h),h>g&&(g=h);this.Ui=c;this.Vi=b;this.Wi=v;this.Ti=g};p.prototype.di=function(a,c,b){this.kb.length=8;this.ed=4;var v=this.kb;v[0]=a.left-c;v[1]=a.top-b;v[2]=a.right-c;v[3]=a.top-b;v[4]=a.right-c;v[5]=a.bottom-b;v[6]=a.left-c;v[7]=a.bottom-b;this.Zi=a.right-a.left;this.Yi=a.bottom-a.top;this.Ca()};p.prototype.zg=function(a,c,b,v,g){this.kb.length=8;this.ed=
4;var e=this.kb;e[0]=a.Aa-c;e[1]=a.Ba-b;e[2]=a.mb-c;e[3]=a.nb-b;e[4]=a.ab-c;e[5]=a.bb-b;e[6]=a.Za-c;e[7]=a.$a-b;this.Zi=v;this.Yi=g;this.Ca()};p.prototype.Jq=function(a){this.ed=a.ed;Ba(this.kb,a.kb);this.Ui=a.Ui;this.Wi-a.Wi;this.Vi=a.Vi;this.Ti=a.Ti};p.prototype.Mf=function(a,c,b){if(this.Zi!==a||this.Yi!==c||this.ro!==b){this.Zi=a;this.Yi=c;this.ro=b;var v,e,g,h,m,f=0,r=1,t=this.rq,w=this.kb;0!==b&&(f=Math.sin(b),r=Math.cos(b));b=0;for(g=this.ed;b<g;b++)v=2*b,e=v+1,h=t[v]*a,m=t[e]*c,w[v]=h*r-m*
f,w[e]=m*r+h*f;this.Ca()}};p.prototype.Xb=function(a,c){var b=this.kb;if(a===b[0]&&c===b[1])return!0;var v,e,g,h=this.ed,m=this.Ui-110,f=this.Wi-101,r=this.Vi+131,t=this.Ti+120,w,d,p=0,k=0;for(v=0;v<h;v++)e=2*v,g=(v+1)%h*2,w=b[e],e=b[e+1],d=b[g],g=b[g+1],ta(m,f,a,c,w,e,d,g)&&p++,ta(r,t,a,c,w,e,d,g)&&k++;return 1===p%2||1===k%2};p.prototype.nh=function(a,c,b){var v=a.kb,e=this.kb;if(this.Xb(v[0]+c,v[1]+b)||a.Xb(e[0]-c,e[1]-b))return!0;var g,h,m,f,r,t,w,d,p,k,N,n;g=0;for(f=this.ed;g<f;g++)for(h=2*g,
m=(g+1)%f*2,d=e[h],h=e[h+1],p=e[m],k=e[m+1],m=0,w=a.ed;m<w;m++)if(r=2*m,t=(m+1)%w*2,N=v[r]+c,r=v[r+1]+b,n=v[t]+c,t=v[t+1]+b,ta(d,h,p,k,N,r,n,t))return!0;return!1};gb=p;b.prototype.De=function(a,c,b){var v;v=this.cells[a];return v?(v=v[c])?v:b?(v=e(this,a,c),this.cells[a][c]=v):null:b?(v=e(this,a,c),this.cells[a]={},this.cells[a][c]=v):null};b.prototype.Sb=function(a){return D(a/this.ll)};b.prototype.Tb=function(a){return D(a/this.kl)};b.prototype.update=function(a,c,b){var v,e,g,h,m;if(c)for(v=c.left,
e=c.right;v<=e;++v)for(g=c.top,h=c.bottom;g<=h;++g)if(!b||!b.Xb(v,g))if(m=this.De(v,g,!1))m.remove(a),m.Pd()&&(m.qb.clear(),1E3>K.length&&K.push(m),this.cells[v][g]=null);if(b)for(v=b.left,e=b.right;v<=e;++v)for(g=b.top,h=b.bottom;g<=h;++g)c&&c.Xb(v,g)||this.De(v,g,!0).am(a)};b.prototype.mk=function(a,c){var b,v,g,e,h,m;b=this.Sb(a.left);g=this.Tb(a.top);v=this.Sb(a.right);for(h=this.Tb(a.bottom);b<=v;++b)for(e=g;e<=h;++e)(m=this.De(b,e,!1))&&m.dump(c)};hb=b;f.prototype.De=function(a,b,g){var v;v=
this.cells[a];return v?(v=v[b])?v:g?(v=c(this,a,b),this.cells[a][b]=v):null:g?(v=c(this,a,b),this.cells[a]={},this.cells[a][b]=v):null};f.prototype.Sb=function(a){return D(a/this.ll)};f.prototype.Tb=function(a){return D(a/this.kl)};f.prototype.update=function(a,c,b){var v,g,e,h,m;if(c)for(v=c.left,g=c.right;v<=g;++v)for(e=c.top,h=c.bottom;e<=h;++e)if(!b||!b.Xb(v,e))if(m=this.De(v,e,!1))m.remove(a),m.Pd()&&(m.reset(),1E3>J.length&&J.push(m),this.cells[v][e]=null);if(b)for(v=b.left,g=b.right;v<=g;++v)for(e=
b.top,h=b.bottom;e<=h;++e)c&&c.Xb(v,e)||this.De(v,e,!0).am(a)};f.prototype.mk=function(a,c,b,v,e){var g,h;a=this.Sb(a);c=this.Tb(c);b=this.Sb(b);for(g=this.Tb(v);a<=b;++a)for(v=c;v<=g;++v)(h=this.De(a,v,!1))&&h.dump(e)};f.prototype.fw=function(a){var c,b,v,e,g;c=a.left;v=a.top;b=a.right;for(e=a.bottom;c<=b;++c)for(a=v;a<=e;++a)if(g=this.De(c,a,!1))g.dg=!1};ib=f;var K=[];a.prototype.Pd=function(){return this.qb.Pd()};a.prototype.am=function(a){this.qb.add(a)};a.prototype.remove=function(a){this.qb.remove(a)};
a.prototype.dump=function(a){Ca(a,this.qb.Se())};ca=a;var J=[];g.prototype.Pd=function(){if(!this.qb.length)return!0;if(this.qb.length>this.wd.count())return!1;this.Fl();return!0};g.prototype.am=function(a){this.wd.contains(a)?(this.wd.remove(a),this.wd.Pd()&&(this.Og=!1)):this.qb.length?(this.qb[this.qb.length-1].rd()>a.rd()&&(this.dg=!1),this.qb.push(a)):(this.qb.push(a),this.dg=!0)};g.prototype.remove=function(a){this.wd.add(a);this.Og=!0;30<=this.wd.count()&&this.Fl()};g.prototype.Fl=function(){this.Og&&
(this.wd.count()===this.qb.length?this.reset():(Ya(this.qb,this.wd),this.wd.clear(),this.Og=!1))};g.prototype.ou=function(){this.dg||(this.qb.sort(m),this.dg=!0)};g.prototype.reset=function(){H(this.qb);this.dg=!0;this.wd.clear();this.Og=!1};g.prototype.dump=function(a){this.Fl();this.ou();this.qb.length&&a.push(this.qb)};ea=g;var x="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");jb=function(a){return 0>=a||11<=a?"source-over":
x[a-1]};kb=function(a,c,b){if(b)switch(a.Mb=b.ONE,a.Eb=b.ONE_MINUS_SRC_ALPHA,c){case 1:a.Mb=b.ONE;a.Eb=b.ONE;break;case 3:a.Mb=b.ONE;a.Eb=b.ZERO;break;case 4:a.Mb=b.ONE_MINUS_DST_ALPHA;a.Eb=b.ONE;break;case 5:a.Mb=b.DST_ALPHA;a.Eb=b.ZERO;break;case 6:a.Mb=b.ZERO;a.Eb=b.SRC_ALPHA;break;case 7:a.Mb=b.ONE_MINUS_DST_ALPHA;a.Eb=b.ZERO;break;case 8:a.Mb=b.ZERO;a.Eb=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.Mb=b.DST_ALPHA;a.Eb=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.Mb=b.ONE_MINUS_DST_ALPHA,a.Eb=b.SRC_ALPHA}};
lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,c){return"string"!==typeof a||"string"!==typeof c||a.length!==c.length?!1:a===c?!0:a.toLowerCase()===c.toLowerCase()};ob=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(d){var q=new gc(3);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2]);return q}
function ic(d){var q=new gc(16);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2],q[3]=d[3],q[4]=d[4],q[5]=d[5],q[6]=d[6],q[7]=d[7],q[8]=d[8],q[9]=d[9],q[10]=d[10],q[11]=d[11],q[12]=d[12],q[13]=d[13],q[14]=d[14],q[15]=d[15]);return q}function jc(d,q){q[0]=d[0];q[1]=d[1];q[2]=d[2];q[3]=d[3];q[4]=d[4];q[5]=d[5];q[6]=d[6];q[7]=d[7];q[8]=d[8];q[9]=d[9];q[10]=d[10];q[11]=d[11];q[12]=d[12];q[13]=d[13];q[14]=d[14];q[15]=d[15]}
function kc(d,q){var l=q[0],k=q[1];q=q[2];d[0]*=l;d[1]*=l;d[2]*=l;d[3]*=l;d[4]*=k;d[5]*=k;d[6]*=k;d[7]*=k;d[8]*=q;d[9]*=q;d[10]*=q;d[11]*=q}
function lc(d,q,l,k){k||(k=ic());var u,n,p,b,f,e,a,c,g=d[0],m=d[1];d=d[2];n=l[0];p=l[1];u=l[2];l=q[1];e=q[2];g===q[0]&&m===l&&d===e?(d=k,d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1):(l=g-q[0],e=m-q[1],a=d-q[2],c=1/Math.sqrt(l*l+e*e+a*a),l*=c,e*=c,a*=c,q=p*a-u*e,u=u*l-n*a,n=n*e-p*l,(c=Math.sqrt(q*q+u*u+n*n))?(c=1/c,q*=c,u*=c,n*=c):n=u=q=0,p=e*n-a*u,b=a*q-l*n,f=l*u-e*q,(c=Math.sqrt(p*p+b*b+f*f))?(c=1/c,p*=c,b*=c,f*=c):f=b=p=0,
k[0]=q,k[1]=p,k[2]=l,k[3]=0,k[4]=u,k[5]=b,k[6]=e,k[7]=0,k[8]=n,k[9]=f,k[10]=a,k[11]=0,k[12]=-(q*g+u*m+n*d),k[13]=-(p*g+b*m+f*d),k[14]=-(l*g+e*m+a*d),k[15]=1)}
(function(){function d(b,f,e){this.Fe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ta=!!e;this.Kj=this.qh=!1;this.tl=0;this.Jk=1;this.yn=1E3;this.wx=(this.yn-this.Jk)/32768;this.il=hc([0,0,100]);this.Ap=hc([0,0,0]);this.fr=hc([0,1,0]);this.Bi=hc([1,1,1]);this.zo=!0;this.$j=ic();this.uc=ic();this.nm=ic();this.sl=ic();this.r=b;this.Yo()}function q(b,f,e){this.r=b;this.fi=f;this.name=e;this.Ic=b.getAttribLocation(f,"aPos");this.Je=b.getAttribLocation(f,
"aTex");this.yp=b.getUniformLocation(f,"matP");this.Wj=b.getUniformLocation(f,"matMV");this.jg=b.getUniformLocation(f,"opacity");this.tm=b.getUniformLocation(f,"colorFill");this.zp=b.getUniformLocation(f,"samplerFront");this.Kh=b.getUniformLocation(f,"samplerBack");this.wf=b.getUniformLocation(f,"destStart");this.vf=b.getUniformLocation(f,"destEnd");this.Mh=b.getUniformLocation(f,"seconds");this.vm=b.getUniformLocation(f,"pixelWidth");this.um=b.getUniformLocation(f,"pixelHeight");this.Jh=b.getUniformLocation(f,
"layerScale");this.Ih=b.getUniformLocation(f,"layerAngle");this.Nh=b.getUniformLocation(f,"viewOrigin");this.Lh=b.getUniformLocation(f,"scrollPos");this.Gv=!!(this.vm||this.um||this.Mh||this.Kh||this.wf||this.vf||this.Jh||this.Ih||this.Nh||this.Lh);this.Ip=this.Jp=-999;this.Zj=1;this.Ep=this.Dp=0;this.Gp=this.Cp=this.Bp=1;this.Mp=this.Lp=this.Kp=this.Op=this.Np=this.Fp=0;this.mm=[];this.Hp=ic();this.jg&&b.uniform1f(this.jg,1);this.tm&&b.uniform4f(this.tm,1,1,1,1);this.zp&&b.uniform1i(this.zp,0);this.Kh&&
b.uniform1i(this.Kh,1);this.wf&&b.uniform2f(this.wf,0,0);this.vf&&b.uniform2f(this.vf,1,1);this.Jh&&b.uniform1f(this.Jh,1);this.Ih&&b.uniform1f(this.Ih,0);this.Nh&&b.uniform2f(this.Nh,0,0);this.Lh&&b.uniform2f(this.Lh,0,0);this.Mh&&b.uniform1f(this.Mh,0);this.kf=!1}function l(b,f){return b[0]===f[0]&&b[1]===f[1]&&b[2]===f[2]&&b[3]===f[3]&&b[4]===f[4]&&b[5]===f[5]&&b[6]===f[6]&&b[7]===f[7]&&b[8]===f[8]&&b[9]===f[9]&&b[10]===f[10]&&b[11]===f[11]&&b[12]===f[12]&&b[13]===f[13]&&b[14]===f[14]&&b[15]===
f[15]}function k(b,f){this.type=b;this.k=f;this.r=f.r;this.sd=this.Rb=this.cq=0;this.T=this.Oc=null;this.Lq=[]}var u=ic();d.prototype.Yo=function(){var b=this.r,f;this.op=1;this.rf=this.qf=null;this.ij=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.ta?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):b.disable(b.DEPTH_TEST);this.qp=b.ONE;this.mp=b.ONE_MINUS_SRC_ALPHA;
this.Gk=new Float32Array(8E3*(this.ta?3:2));this.yk=new Float32Array(16E3);this.oq=new Float32Array(32E3);this.Jm=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.Jm);b.bufferData(b.ARRAY_BUFFER,this.oq.byteLength,b.DYNAMIC_DRAW);this.vi=Array(4);this.ji=Array(4);for(f=0;4>f;f++)this.vi[f]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.vi[f]),b.bufferData(b.ARRAY_BUFFER,this.Gk.byteLength,b.DYNAMIC_DRAW),this.ji[f]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.ji[f]),b.bufferData(b.ARRAY_BUFFER,
this.yk.byteLength,b.DYNAMIC_DRAW);this.Id=0;this.Kv=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.Kv);for(var e=new Uint16Array(12E3),a=f=0;12E3>f;)e[f++]=a,e[f++]=a+1,e[f++]=a+2,e[f++]=a,e[f++]=a+2,e[f++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,e,b.STATIC_DRAW);this.Km=this.Dg=this.je=0;this.Ja=[];f=this.ta?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";e=this.Ug({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},f,"<default>");this.Ja.push(e);e=this.Ug({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},
"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.Ja.push(e);e=this.Ug({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},f,"<earlyz>");this.Ja.push(e);e=this.Ug({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
f,"<fill>");this.Ja.push(e);for(var c in mc)mc.hasOwnProperty(c)&&this.Ja.push(this.Ug(mc[c],f,c));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.pe=[];this.Hd=0;this.Hb=!1;this.vo=this.Dh=-1;this.Qf=null;this.Dl=b.createFramebuffer();this.mj=this.nk=null;this.ko=!1;this.ta&&(this.mj=b.createRenderbuffer());this.Re=hc([0,0,0]);this.Pp=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Pp&&(this.Pp=2048);this.ec(0)};q.prototype.tn=function(b){l(this.Hp,b)||(jc(b,this.Hp),this.r.uniformMatrix4fv(this.Wj,
!1,b))};d.prototype.Ug=function(b,f,e){var a=this.r,c=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(c,b.src);a.compileShader(c);if(!a.getShaderParameter(c,a.COMPILE_STATUS))return a.deleteShader(c),null;var g=a.createShader(a.VERTEX_SHADER);a.shaderSource(g,f);a.compileShader(g);if(!a.getShaderParameter(g,a.COMPILE_STATUS))return a.deleteShader(c),a.deleteShader(g),null;f=a.createProgram();a.attachShader(f,c);a.attachShader(f,g);a.linkProgram(f);if(!a.getProgramParameter(f,a.LINK_STATUS))return a.deleteShader(c),
a.deleteShader(g),a.deleteProgram(f),null;a.useProgram(f);a.deleteShader(c);a.deleteShader(g);e=new q(a,f,e);e.qj=b.qj||0;e.rj=b.rj||0;e.rl=!!b.rl;e.Kc=!!b.Kc;e.cl=!!b.cl;e.P=b.P||[];b=0;for(c=e.P.length;b<c;b++)e.P[b][1]=a.getUniformLocation(f,e.P[b][0]),e.mm.push(0),a.uniform1f(e.P[b][1],0);return e};d.prototype.Rl=function(b){var f,e;f=0;for(e=this.Ja.length;f<e;f++)if(this.Ja[f].name===b)return f;return-1};d.prototype.qq=function(b,f,e){var a=this.uc,c=this.$j,g=[0,0,0,0,0,0,0,0];g[0]=a[0]*b+
a[4]*f+a[12];g[1]=a[1]*b+a[5]*f+a[13];g[2]=a[2]*b+a[6]*f+a[14];g[3]=a[3]*b+a[7]*f+a[15];g[4]=c[0]*g[0]+c[4]*g[1]+c[8]*g[2]+c[12]*g[3];g[5]=c[1]*g[0]+c[5]*g[1]+c[9]*g[2]+c[13]*g[3];g[6]=c[2]*g[0]+c[6]*g[1]+c[10]*g[2]+c[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)};d.prototype.be=function(b,f,e){if(this.width!==b||this.height!==f||e){this.bf();e=this.r;this.width=b;this.height=f;e.viewport(0,0,b,f);lc(this.il,
this.Ap,this.fr,this.uc);if(this.ta){var a=-b/2;b=b/2;var c=f/2;f=-f/2;var g=this.Jk,m=this.yn,h=this.$j;h||(h=ic());var t=b-a,d=f-c,r=m-g;h[0]=2/t;h[1]=0;h[2]=0;h[3]=0;h[4]=0;h[5]=2/d;h[6]=0;h[7]=0;h[8]=0;h[9]=0;h[10]=-2/r;h[11]=0;h[12]=-(a+b)/t;h[13]=-(f+c)/d;h[14]=-(m+g)/r;h[15]=1;this.Bi[0]=1;this.Bi[1]=1}else f=b/f,a=this.Jk,b=this.yn,h=this.$j,m=a*Math.tan(45*Math.PI/360),f*=m,c=-f,g=-m,h||(h=ic()),t=f-c,d=m-g,r=b-a,h[0]=2*a/t,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=2*a/d,h[6]=0,h[7]=0,h[8]=(f+c)/
t,h[9]=(m+g)/d,h[10]=-(b+a)/r,h[11]=-1,h[12]=0,h[13]=0,h[14]=-(b*a*2)/r,h[15]=0,a=[0,0],b=[0,0],this.qq(0,0,a),this.qq(1,1,b),this.Bi[0]=1/(b[0]-a[0]),this.Bi[1]=-1/(b[1]-a[1]);a=0;for(b=this.Ja.length;a<b;a++)c=this.Ja[a],c.kf=!1,c.yp&&(e.useProgram(c.fi),e.uniformMatrix4fv(c.yp,!1,this.$j));e.useProgram(this.Ja[this.Dh].fi);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE1);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE0);this.rf=this.qf=null;this.mj&&(e.bindFramebuffer(e.FRAMEBUFFER,
this.Dl),e.bindRenderbuffer(e.RENDERBUFFER,this.mj),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,this.width,this.height),this.ko||(e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,this.mj),this.ko=!0),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),this.nk=null)}};d.prototype.yd=function(){lc(this.il,this.Ap,this.fr,this.uc);kc(this.uc,this.Bi)};d.prototype.translate=function(b,f){if(0!==b||0!==f){this.Re[0]=b;this.Re[1]=f;this.Re[2]=
0;var e=this.uc,a=this.Re,c=a[0],g=a[1],a=a[2];e[12]=e[0]*c+e[4]*g+e[8]*a+e[12];e[13]=e[1]*c+e[5]*g+e[9]*a+e[13];e[14]=e[2]*c+e[6]*g+e[10]*a+e[14];e[15]=e[3]*c+e[7]*g+e[11]*a+e[15]}};d.prototype.scale=function(b,f){if(1!==b||1!==f)this.Re[0]=b,this.Re[1]=f,this.Re[2]=1,kc(this.uc,this.Re)};d.prototype.Xm=function(b){if(0!==b){var f=this.uc,e,a=Math.sin(b);b=Math.cos(b);var c=f[0],g=f[1],m=f[2],h=f[3],t=f[4],d=f[5],r=f[6],w=f[7];e?f!==e&&(e[8]=f[8],e[9]=f[9],e[10]=f[10],e[11]=f[11],e[12]=f[12],e[13]=
f[13],e[14]=f[14],e[15]=f[15]):e=f;e[0]=c*b+t*a;e[1]=g*b+d*a;e[2]=m*b+r*a;e[3]=h*b+w*a;e[4]=c*-a+t*b;e[5]=g*-a+d*b;e[6]=m*-a+r*b;e[7]=h*-a+w*b}};d.prototype.jd=function(){if(!l(this.nm,this.uc)){var b=this.kc();b.type=5;b.T?jc(this.uc,b.T):b.T=ic(this.uc);jc(this.uc,this.nm);this.Hb=!1}};d.prototype.sk=function(b){this.ta&&(32760<b&&(b=32760),this.tl=this.il[2]-this.Jk-b*this.wx)};k.prototype.Zt=function(){var b=this.r,f=this.k;0!==this.Rb?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),
b.bindFramebuffer(b.FRAMEBUFFER,f.Dl),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),f.Kj=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),f.Kj=!1)};k.prototype.cu=function(){this.r.bindTexture(this.r.TEXTURE_2D,this.Oc)};k.prototype.du=function(){var b=this.r;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.Oc);b.activeTexture(b.TEXTURE0)};k.prototype.$t=function(){var b=this.cq,
f=this.k;f.ij=b;f=f.Qf;f.jg&&f.Zj!==b&&(f.Zj=b,this.r.uniform1f(f.jg,b))};k.prototype.Tt=function(){this.r.drawElements(this.r.TRIANGLES,this.sd,this.r.UNSIGNED_SHORT,this.Rb)};k.prototype.Wt=function(){this.r.blendFunc(this.Rb,this.sd)};k.prototype.eu=function(){var b,f,e,a=this.k.Ja,c=this.k.vo;b=0;for(f=a.length;b<f;b++)e=a[b],b===c&&e.Wj?(e.tn(this.T),e.kf=!0):e.kf=!1;jc(this.T,this.k.sl)};k.prototype.Ut=function(){var b=this.r,f=this.k;this.Oc?(f.rf===this.Oc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,
null),f.rf=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,f.Dl),f.Kj||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.Oc,0)):(f.ta||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};k.prototype.Rt=function(){var b=this.r,f=this.Rb;0===f?(b.clearColor(this.T[0],this.T[1],this.T[2],this.T[3]),b.clear(b.COLOR_BUFFER_BIT)):1===f?(b.enable(b.SCISSOR_TEST),b.scissor(this.T[0],this.T[1],this.T[2],
this.T[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};k.prototype.Yt=function(){var b=this.r;0!==this.Rb?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};k.prototype.St=function(){var b=this.r,f=this.k;f.ta&&b.disable(b.DEPTH_TEST);var e=f.Ja[1];b.useProgram(e.fi);!e.kf&&e.Wj&&(e.tn(f.sl),e.kf=!0);b.enableVertexAttribArray(e.Ic);b.bindBuffer(b.ARRAY_BUFFER,f.Jm);b.vertexAttribPointer(e.Ic,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.Rb/
4,this.sd);e=f.Qf;b.useProgram(e.fi);0<=e.Ic&&(b.enableVertexAttribArray(e.Ic),b.bindBuffer(b.ARRAY_BUFFER,f.vi[f.Id]),b.vertexAttribPointer(e.Ic,f.ta?3:2,b.FLOAT,!1,0,0));0<=e.Je&&(b.enableVertexAttribArray(e.Je),b.bindBuffer(b.ARRAY_BUFFER,f.ji[f.Id]),b.vertexAttribPointer(e.Je,2,b.FLOAT,!1,0,0));f.ta&&b.enable(b.DEPTH_TEST)};k.prototype.au=function(){var b=this.r,f=this.k,e=f.Ja[this.Rb];f.vo=this.Rb;f.Qf=e;b.useProgram(e.fi);!e.kf&&e.Wj&&(e.tn(f.sl),e.kf=!0);e.jg&&e.Zj!==f.ij&&(e.Zj=f.ij,b.uniform1f(e.jg,
f.ij));0<=e.Ic&&(b.enableVertexAttribArray(e.Ic),b.bindBuffer(b.ARRAY_BUFFER,f.vi[f.Id]),b.vertexAttribPointer(e.Ic,f.ta?3:2,b.FLOAT,!1,0,0));0<=e.Je&&(b.enableVertexAttribArray(e.Je),b.bindBuffer(b.ARRAY_BUFFER,f.ji[f.Id]),b.vertexAttribPointer(e.Je,2,b.FLOAT,!1,0,0))};k.prototype.Xt=function(){var b=this.T;this.r.uniform4f(this.k.Qf.tm,b[0],b[1],b[2],b[3])};k.prototype.bu=function(){var b,f,e=this.k.Qf,a=this.r;b=this.T;e.Kh&&this.k.rf!==this.Oc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,
this.Oc),this.k.rf=this.Oc,a.activeTexture(a.TEXTURE0));var c=b[0];e.vm&&c!==e.Jp&&(e.Jp=c,a.uniform1f(e.vm,c));c=b[1];e.um&&c!==e.Ip&&(e.Ip=c,a.uniform1f(e.um,c));c=b[2];f=b[3];!e.wf||c===e.Dp&&f===e.Ep||(e.Dp=c,e.Ep=f,a.uniform2f(e.wf,c,f));c=b[4];f=b[5];!e.vf||c===e.Bp&&f===e.Cp||(e.Bp=c,e.Cp=f,a.uniform2f(e.vf,c,f));c=b[6];e.Jh&&c!==e.Gp&&(e.Gp=c,a.uniform1f(e.Jh,c));c=b[7];e.Ih&&c!==e.Fp&&(e.Fp=c,a.uniform1f(e.Ih,c));c=b[8];f=b[9];!e.Nh||c===e.Np&&f===e.Op||(e.Np=c,e.Op=f,a.uniform2f(e.Nh,c,
f));c=b[10];f=b[11];!e.Lh||c===e.Kp&&f===e.Lp||(e.Kp=c,e.Lp=f,a.uniform2f(e.Lh,c,f));c=b[12];e.Mh&&c!==e.Mp&&(e.Mp=c,a.uniform1f(e.Mh,c));if(e.P.length)for(b=0,f=e.P.length;b<f;b++)c=this.Lq[b],c!==e.mm[b]&&(e.mm[b]=c,a.uniform1f(e.P[b][1],c))};d.prototype.kc=function(){this.Hd===this.pe.length&&this.pe.push(new k(0,this));return this.pe[this.Hd++]};d.prototype.bf=function(){if(0!==this.Hd&&!this.r.isContextLost()){var b=this.r;0<this.Km&&(b.bindBuffer(b.ARRAY_BUFFER,this.Jm),b.bufferSubData(b.ARRAY_BUFFER,
0,this.oq.subarray(0,this.Km)),f&&0<=f.Ic&&"<point>"===f.name&&b.vertexAttribPointer(f.Ic,4,b.FLOAT,!1,0,0));if(0<this.je){var f=this.Qf;b.bindBuffer(b.ARRAY_BUFFER,this.vi[this.Id]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Gk.subarray(0,this.je));f&&0<=f.Ic&&"<point>"!==f.name&&b.vertexAttribPointer(f.Ic,this.ta?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.ji[this.Id]);b.bufferSubData(b.ARRAY_BUFFER,0,this.yk.subarray(0,this.Dg));f&&0<=f.Je&&"<point>"!==f.name&&b.vertexAttribPointer(f.Je,2,
b.FLOAT,!1,0,0)}for(var e,b=0,f=this.Hd;b<f;b++)switch(e=this.pe[b],e.type){case 1:e.Tt();break;case 2:e.cu();break;case 3:e.$t();break;case 4:e.Wt();break;case 5:e.eu();break;case 6:e.Ut();break;case 7:e.Rt();break;case 8:e.St();break;case 9:e.au();break;case 10:e.bu();break;case 11:e.du();break;case 12:e.Xt();break;case 13:e.Yt();break;case 14:e.Zt()}this.Km=this.Dg=this.je=this.Hd=0;this.Kj=this.Hb=!1;this.Id++;4<=this.Id&&(this.Id=0)}};d.prototype.Ne=function(b){if(b!==this.op&&!this.qh){var f=
this.kc();f.type=3;this.op=f.cq=b;this.Hb=!1}};d.prototype.Pb=function(b){if(b!==this.qf){var f=this.kc();f.type=2;this.qf=f.Oc=b;this.Hb=!1}};d.prototype.Me=function(b,f){if((b!==this.qp||f!==this.mp)&&!this.qh){var e=this.kc();e.type=4;e.Rb=b;e.sd=f;this.qp=b;this.mp=f;this.Hb=!1}};d.prototype.Cq=function(){this.Me(this.r.ONE,this.r.ONE_MINUS_SRC_ALPHA)};d.prototype.$h=function(b,f,e,a,c,g,m,h){15992<=this.je&&this.bf();var t=this.je,d=this.Dg,r=this.Gk,w=this.yk,p=this.tl;if(this.Hb)this.pe[this.Hd-
1].sd+=6;else{var k=this.kc();k.type=1;k.Rb=this.ta?t:t/2*3;k.sd=6;this.Hb=!0}this.ta?(r[t++]=b,r[t++]=f,r[t++]=p,r[t++]=e,r[t++]=a,r[t++]=p,r[t++]=c,r[t++]=g,r[t++]=p,r[t++]=m,r[t++]=h,r[t++]=p):(r[t++]=b,r[t++]=f,r[t++]=e,r[t++]=a,r[t++]=c,r[t++]=g,r[t++]=m,r[t++]=h);w[d++]=0;w[d++]=0;w[d++]=1;w[d++]=0;w[d++]=1;w[d++]=1;w[d++]=0;w[d++]=1;this.je=t;this.Dg=d};d.prototype.Lc=function(b,f,e,a,c,g,m,h,t){15992<=this.je&&this.bf();var d=this.je,r=this.Dg,w=this.Gk,p=this.yk,k=this.tl;if(this.Hb)this.pe[this.Hd-
1].sd+=6;else{var n=this.kc();n.type=1;n.Rb=this.ta?d:d/2*3;n.sd=6;this.Hb=!0}var n=t.left,q=t.top,l=t.right;t=t.bottom;this.ta?(w[d++]=b,w[d++]=f,w[d++]=k,w[d++]=e,w[d++]=a,w[d++]=k,w[d++]=c,w[d++]=g,w[d++]=k,w[d++]=m,w[d++]=h,w[d++]=k):(w[d++]=b,w[d++]=f,w[d++]=e,w[d++]=a,w[d++]=c,w[d++]=g,w[d++]=m,w[d++]=h);p[r++]=n;p[r++]=q;p[r++]=l;p[r++]=q;p[r++]=l;p[r++]=t;p[r++]=n;p[r++]=t;this.je=d;this.Dg=r};d.prototype.ec=function(b){if(this.Dh!==b){if(!this.Ja[b]){if(0===this.Dh)return;b=0}var f=this.kc();
f.type=9;this.Dh=f.Rb=b;this.Hb=!1}};d.prototype.Yh=function(b){b=this.Ja[b];return!(!b.wf&&!b.vf)};d.prototype.Om=function(b){b=this.Ja[b];return!!(b.wf||b.vf||b.rl)};d.prototype.Nm=function(b){return this.Ja[b].Kc};d.prototype.Ew=function(b){b=this.Ja[b];return 0!==b.qj||0!==b.rj};d.prototype.ov=function(b){return this.Ja[b].qj};d.prototype.pv=function(b){return this.Ja[b].rj};d.prototype.qv=function(b,f){return this.Ja[b].P[f][2]};d.prototype.kk=function(b){return this.Ja[b].cl};d.prototype.xg=
function(b,f,e,a,c,g,m,h,t,d,r,w,p,k,n){var q=this.Ja[this.Dh],l,u;if(q.Gv||n.length){l=this.kc();l.type=10;l.T?jc(this.uc,l.T):l.T=ic();u=l.T;u[0]=f;u[1]=e;u[2]=a;u[3]=c;u[4]=g;u[5]=m;u[6]=h;u[7]=t;u[8]=d;u[9]=r;u[10]=w;u[11]=p;u[12]=k;q.Kh?l.Oc=b:l.Oc=null;if(n.length)for(e=l.Lq,e.length=n.length,b=0,f=n.length;b<f;b++)e[b]=n[b];this.Hb=!1}};d.prototype.clear=function(b,f,e,a){var c=this.kc();c.type=7;c.Rb=0;c.T||(c.T=ic());c.T[0]=b;c.T[1]=f;c.T[2]=e;c.T[3]=a;this.Hb=!1};d.prototype.clearRect=function(b,
f,e,a){if(!(0>e||0>a)){var c=this.kc();c.type=7;c.Rb=1;c.T||(c.T=ic());c.T[0]=b;c.T[1]=f;c.T[2]=e;c.T[3]=a;this.Hb=!1}};d.prototype.Fq=function(b){if(this.ta&&(b=!!b,this.qh!==b)){var f=this.kc();f.type=14;f.Rb=b?1:0;this.Hb=!1;this.qh=b;this.nk=null;this.qh?this.ec(2):this.ec(0)}};d.prototype.Eq=function(b){if(this.ta){var f=this.kc();f.type=13;f.Rb=b?1:0;this.Hb=!1}};d.prototype.Ko=function(){jc(this.nm,u);this.yd();this.jd();var b=this.width/2,f=this.height/2;this.$h(-b,f,b,f,b,-f,-b,-f);jc(u,
this.uc);this.jd()};d.prototype.Dq=function(b,f,e){this.ec(3);var a=this.kc();a.type=12;a.T||(a.T=ic());a.T[0]=b;a.T[1]=f;a.T[2]=e;a.T[3]=1;this.Hb=!1};d.prototype.Zw=function(){this.ec(0)};d.prototype.Kw=function(){this.ec(2)};d.prototype.Dw=function(){this.bf();this.r.flush()};var n=[],p={};d.prototype.It=function(){H(n);p={}};d.prototype.tc=function(b,f,e,a,c){f=!!f;e=!!e;var g=b.src+","+f+","+e+(f?","+c:""),m=null;if("undefined"!==typeof b.src&&p.hasOwnProperty(g))return m=p[g],m.Xi++,m;this.bf();
var h=this.r,t=ja(b.width)&&ja(b.height),m=h.createTexture();h.bindTexture(h.TEXTURE_2D,m);h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var d=h.RGBA,r=h.RGBA,w=h.UNSIGNED_BYTE;if(a&&!this.Fe)switch(a){case 1:r=d=h.RGB;break;case 2:w=h.UNSIGNED_SHORT_4_4_4_4;break;case 3:w=h.UNSIGNED_SHORT_5_5_5_1;break;case 4:r=d=h.RGB,w=h.UNSIGNED_SHORT_5_6_5}if(!t&&f){a=document.createElement("canvas");a.width=ka(b.width);a.height=ka(b.height);var k=a.getContext("2d");k.webkitImageSmoothingEnabled=e;k.mozImageSmoothingEnabled=
e;k.msImageSmoothingEnabled=e;k.imageSmoothingEnabled=e;k.drawImage(b,0,0,b.width,b.height,0,0,a.width,a.height);h.texImage2D(h.TEXTURE_2D,0,d,r,w,a)}else h.texImage2D(h.TEXTURE_2D,0,d,r,w,b);f?"repeat-x"===c?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE)):("repeat-y"===c?h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE):h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,
h.REPEAT)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE));e?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR),t&&this.zo?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR_MIPMAP_LINEAR),h.generateMipmap(h.TEXTURE_2D)):h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.NEAREST),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.NEAREST));
h.bindTexture(h.TEXTURE_2D,null);this.qf=null;m.Wc=b.width;m.Vc=b.height;m.Xi=1;m.qo=g;n.push(m);return p[g]=m};d.prototype.Dc=function(b,f,e){var a;this.bf();var c=this.r;this.Fe&&(a=!1);var g=c.createTexture();c.bindTexture(c.TEXTURE_2D,g);c.texImage2D(c.TEXTURE_2D,0,c.RGBA,b,f,0,c.RGBA,a?c.UNSIGNED_SHORT_4_4_4_4:c.UNSIGNED_BYTE,null);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,
e?c.LINEAR:c.NEAREST);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,e?c.LINEAR:c.NEAREST);c.bindTexture(c.TEXTURE_2D,null);this.qf=null;g.Wc=b;g.Vc=f;n.push(g);return g};d.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.Xi&&1<b.Xi?b.Xi--:(this.bf(),b===this.qf&&(this.r.bindTexture(this.r.TEXTURE_2D,null),this.qf=null),b===this.rf&&(this.r.activeTexture(this.r.TEXTURE1),this.r.bindTexture(this.r.TEXTURE_2D,null),this.r.activeTexture(this.r.TEXTURE0),this.rf=null),Fa(n,b),"undefined"!==
typeof b.qo&&delete p[b.qo],this.r.deleteTexture(b)))};d.prototype.Mc=function(b){if(b!==this.nk){var f=this.kc();f.type=6;this.nk=f.Oc=b;this.Hb=!1}};pb=d})();
(function(){function d(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var c=this;this.td=(this.ph=/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.xb=!!a.dc;this.dp="undefined"!==typeof window.AppMobi||
this.xb;this.ad=!!window.c2cocoonjs;this.bd=!!window.c2ejecta;this.ad&&(CocoonJS.App.onSuspended.addEventListener(function(){c.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){c.setSuspended(!1)}));this.bd&&(document.addEventListener("pagehide",function(){c.setSuspended(!0)}),document.addEventListener("pageshow",function(){c.setSuspended(!1)}),document.addEventListener("resize",function(){c.setSize(window.innerWidth,window.innerHeight)}));this.Oa=this.xb||this.ad||this.bd;this.sh=
/edge\//i.test(navigator.userAgent);this.Fe=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.sh;this.fp=/tizen/i.test(navigator.userAgent);this.Ij=/android/i.test(navigator.userAgent)&&!this.fp&&!this.Fe&&!this.sh;this.kp=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Fe&&!this.sh;this.Wv=/ipad/i.test(navigator.userAgent);this.Ah=this.kp||this.Wv||this.bd;this.oh=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Fe&&!this.sh;this.dm=/amazonwebappplatform/i.test(navigator.userAgent);this.Rv=/firefox/i.test(navigator.userAgent);this.Uv=/safari/i.test(navigator.userAgent)&&!this.oh&&!this.Fe&&!this.sh;this.Vv=/windows/i.test(navigator.userAgent);this.Qd="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.hp=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.ip=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Rd=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.km=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.gp=!!window.cr_windows10;this.jm=this.hp||this.ip||this.km||this.gp;this.Pv=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Jj=this.Ij&&!this.oh&&!this.ph&&!this.Rv&&!this.dm&&!this.Oa;this.devicePixelRatio=
1;this.uh=this.td||this.ph||this.dp||this.ad||this.Ij||this.Ah||this.Rd||this.km||this.Pv||this.fp||this.bd;this.uh||(this.uh=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.xh=!!(this.Ah&&this.td&&window.indexedDB);this.Wo=null;this.Iv="";this.xh&&(this.Wo=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.Qd||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&
!/nwjs/i.test(navigator.userAgent)||(this.Qd=!0);this.canvas=a;this.$i=document.getElementById("c2canvasdiv");this.k=this.r=null;this.Ul="(unavailable)";this.ta=!1;this.Ze=0;this.ka=null;this.Hl="";this.wj=!1;this.aq=this.bq=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.xb&&(window.c2runtime=this);this.Qd&&(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.Jj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.F=this.width;this.D=this.height;this.gj=this.width;this.Wg=this.height;this.Fh=window.innerWidth;this.Eh=window.innerHeight;this.Vu=!1;this.ga=!0;this.wh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Fa=
[];this.pm={};this.cd=[];this.Cl={};this.Ld=[];this.Ig=[];this.Ck=[];this.At=[];this.Bt=[];this.Ye={};this.fm=this.Ee=!1;this.sc=0;this.em=this.im=!1;this.Xc=[];this.rh=!1;this.Td=this.Lb=this.Tj=this.an="";this.hi=this.Oq=!1;this.vj=[];this.Be=this.Ae=0;this.Sp=30;this.ol=this.Oh=0;this.Ef=1;this.yb=new eb;this.ke=new eb;this.ck=this.yj=this.ef=this.li=this.tf=this.Gl=this.Qj=0;this.Sg=null;this.yl=[];this.Bl=[];this.pj=-1;this.wm=[[]];this.pn=this.Xj=0;this.lk(null);this.Ph=[];this.kg=-1;this.$g=
this.Vp=this.Sh=0;this.ii=[];this.kn=this.Rm=-1;this.Bh=!0;this.ig=0;this.vh=!1;this.ax=0;this.Lf=null;this.Xf=!1;this.Zp=new da;this.Dm=new da;this.$p=new da;this.vq=[];this.gd=new gb([]);this.jn=new gb([]);this.Kf=[];this.gh={};this.ve={};this.oe={};this.Hg={};this.mo={};this.wp=this.Sj=this.Wa=this.hb=this.vp=this.Rj=this.ma=null;this.Fg=this.lm=!1;this.Il=[null,null];this.ff=0;this.ah="";this.Wd={};this.gi=this.He=null;this.Qq="";this.bk=[];this.Jw()}}function q(a,c){return 128>=c?a[3]:256>=c?
a[2]:512>=c?a[1]:a[0]}function l(){try{return!!window.indexedDB}catch(a){return!1}}function k(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function u(a,c,b,e){try{var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=k;g.onerror=e;g.onsuccess=function(g){g=g.target.result;g.onerror=e;g.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:c}).onsuccess=b}}catch(h){e(h)}}function n(a,c,b){try{var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=k;g.onerror=
b;g.onsuccess=function(g){g=g.target.result;g.onerror=b;var e=g.transaction(["saves"]).objectStore("saves").get(a);e.onsuccess=function(){e.result?c(e.result.data):c(null)}}}catch(e){b(e)}}function p(){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 b(a){var c,b={};for(c in a)!a.hasOwnProperty(c)||a[c]instanceof da||a[c]&&"undefined"!==typeof a[c].Ux||
"spriteCreatedDestroyCallback"!==c&&(b[c]=a[c]);return b}var f=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Jw=function(){var a=this;if(this.xh)this.Wo.startServer({port:0,localhost_only:!0},function(c){a.Iv=c;a.Su(function(c){a.Hh(JSON.parse(c))},function(){alert("Error fetching data.js")})},function(a){alert("error starting local server: "+a)});else{var c;this.Rd?c=new ActiveXObject("Microsoft.XMLHTTP"):
c=new XMLHttpRequest;var b="data.js";if(this.hp||this.Rd||this.km||this.gp)b="data.json";c.open("GET",b,!0);var g=!1;if(!this.Oa&&"response"in c&&"responseType"in c)try{c.responseType="json",g="json"===c.responseType}catch(e){g=!1}if(!g&&"responseType"in c)try{c.responseType="text"}catch(h){}if("overrideMimeType"in c)try{c.overrideMimeType("application/json; charset=utf-8")}catch(m){}this.Rd?c.onreadystatechange=function(){4===c.readyState&&a.Hh(JSON.parse(c.responseText))}:(c.onload=function(){if(g)a.Hh(c.response);
else if(a.bd){var b=c.responseText,b=b.substr(b.indexOf("{"));a.Hh(JSON.parse(b))}else a.Hh(JSON.parse(c.responseText))},c.onerror=function(a){ga("Error requesting "+b+":");ga(a)});c.send()}};d.prototype.Mv=function(){var a=this,c,b,g,e,h,m,f,r,t;this.of=(!this.Oa||this.bd||this.td)&&this.rx&&!this.Jj;0===this.hc&&this.Ah&&(this.of=!1);this.devicePixelRatio=this.of?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Cb();b=!(!this.Vu&&
(!this.al||this.Qd||this.jm||this.Rd||this.ph||this.td||this.dm));0<this.hc&&this.setSize(window.innerWidth,window.innerHeight,!0);try{this.mu&&(this.ad||this.bd||!this.Oa)&&(c={alpha:b,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.r=this.canvas.getContext("webgl",c)||this.canvas.getContext("experimental-webgl",c))}catch(d){}if(this.r){if(c=this.r.getExtension("WEBGL_debug_renderer_info"))this.Ul=this.r.getParameter(c.UNMASKED_RENDERER_WEBGL)+" ["+this.r.getParameter(c.UNMASKED_VENDOR_WEBGL)+
"]";this.ta&&(this.Ul+=" [front-to-back enabled]");this.Oa||(this.zb=document.createElement("canvas"),jQuery(this.zb).appendTo(this.canvas.parentNode),this.zb.oncontextmenu=function(){return!1},this.zb.onselectstart=function(){return!1},this.zb.width=Math.round(this.gj*this.devicePixelRatio),this.zb.height=Math.round(this.Wg*this.devicePixelRatio),jQuery(this.zb).css({width:this.gj+"px",height:this.Wg+"px"}),this.pq(),this.Im=this.zb.getContext("2d"));this.k=new pb(this.r,this.uh,this.ta);this.k.be(this.canvas.width,
this.canvas.height);this.k.zo=0!==this.fu;this.ka=null;this.canvas.addEventListener("webglcontextlost",function(c){c.preventDefault();a.lw();fa("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.k.Yo();a.k.be(a.k.width,a.k.height,!0);a.hb=null;a.Wa=null;a.Il[0]=null;a.Il[1]=null;a.mw();a.ga=!0;fa("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);c=0;for(b=this.n.length;c<b;c++)for(h=this.n[c],g=
0,e=h.N.length;g<e;g++)f=h.N[g],f.Ya=this.k.Rl(f.id),f.Kc=this.k.Nm(f.Ya),this.Fg=this.Fg||this.k.Yh(f.Ya);c=0;for(b=this.cd.length;c<b;c++){r=this.cd[c];g=0;for(e=r.N.length;g<e;g++)f=r.N[g],f.Ya=this.k.Rl(f.id),f.Kc=this.k.Nm(f.Ya);r.hd();g=0;for(e=r.S.length;g<e;g++){t=r.S[g];h=0;for(m=t.N.length;h<m;h++)f=t.N[h],f.Ya=this.k.Rl(f.id),f.Kc=this.k.Nm(f.Ya),this.Fg=this.Fg||this.k.Yh(f.Ya);t.hd()}}}else{if(0<this.hc&&this.xb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=
function(){return!1};this.ka=AppMobi.canvas.getContext("2d");try{this.ka.samplingMode=this.O?"smooth":"sharp",this.ka.globalScale=1,this.ka.HTML5CompatibilityMode=!0,this.ka.imageSmoothingEnabled=this.O}catch(w){}0!==this.width&&0!==this.height&&(this.ka.width=this.width,this.ka.height=this.height)}this.ka||(this.ad?(c={antialias:!!this.O,alpha:b},this.ka=this.canvas.getContext("2d",c)):(c={alpha:b},this.ka=this.canvas.getContext("2d",c)),this.ka.webkitImageSmoothingEnabled=this.O,this.ka.mozImageSmoothingEnabled=
this.O,this.ka.msImageSmoothingEnabled=this.O,this.ka.imageSmoothingEnabled=this.O);this.Im=this.zb=null}this.Xq=function(c){a.lb(!1,c)};window==window.top||this.Oa||this.jm||this.Rd||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.ad&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(fa("Reloading for continuous preview"),
this.Tj="__c2_continuouspreview",this.hi=!0),this.uw&&!this.uh&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));window.addEventListener("blur",function(){a.rg()});this.Oa||(c=function(a){if(ob(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(c){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",c):window.navigator.msPointerEnabled?
document.addEventListener("MSPointerDown",c):document.addEventListener("touchstart",c),document.addEventListener("mousedown",c));0===this.hc&&this.of&&1<this.devicePixelRatio&&this.setSize(this.jb,this.ib,!0);this.cr();this.Dv();this.go();this.la={}};d.prototype.setSize=function(a,c,b){var g=0,e=0,h=0,m=0,m=0;if(this.Fh!==a||this.Eh!==c||b){this.Fh=a;this.Eh=c;var f=this.hc,r=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.vh)&&!this.td;
if(r||0!==this.hc||b)r&&0<this.ff&&(f=this.ff),b=this.devicePixelRatio,4<=f?(h=this.jb/this.ib,a/c>h?(h*=c,5===f?(m=h*b/this.jb,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),h=this.jb*m/b,m=this.ib*m/b,g=(a-h)/2,e=(c-m)/2,a=h,c=m):(g=(a-h)/2,a=h)):(m=a/h,5===f?(m=m*b/this.ib,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),h=this.jb*m/b,m=this.ib*m/b,g=(a-h)/2,e=(c-m)/2,a=h):e=(c-m)/2,c=m),r&&!this.Qd&&(e=g=0)):this.Qd&&this.vh&&0===this.Lo&&(g=Math.floor((a-this.jb)/2),e=Math.floor((c-this.ib)/2),a=
this.jb,c=this.ib),2>f&&(this.Qg=b),this.gj=Math.round(a),this.Wg=Math.round(c),this.width=Math.round(a*b),this.height=Math.round(c*b),this.ga=!0,this.or?(this.F=this.width,this.D=this.height,this.pc=!0):this.width<this.jb&&this.height<this.ib||1===f?(this.F=this.width,this.D=this.height,this.pc=!0):(this.F=this.jb,this.D=this.ib,this.pc=!1,2===f?(h=this.jb/this.ib,f=this.Fh/this.Eh,f<h?this.F=this.D*f:f>h&&(this.D=this.F/f)):3===f&&(h=this.jb/this.ib,f=this.Fh/this.Eh,f>h?this.F=this.D*f:f<h&&(this.D=
this.F/f))),this.$i&&!this.Oa&&(jQuery(this.$i).css({width:Math.round(a)+"px",height:Math.round(c)+"px","margin-left":Math.floor(g)+"px","margin-top":Math.floor(e)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(c*b),this.bd?(this.canvas.style.left=Math.floor(g)+"px",this.canvas.style.top=Math.floor(e)+"px",this.canvas.style.width=Math.round(a)+
"px",this.canvas.style.height=Math.round(c)+"px"):this.of&&!this.Oa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px")),this.zb&&(this.zb.width=Math.round(a*b),this.zb.height=Math.round(c*b),this.zb.style.width=this.gj+"px",this.zb.style.height=this.Wg+"px"),this.k&&this.k.be(Math.round(a*b),Math.round(c*b)),this.xb&&this.ka&&(this.ka.width=Math.round(a),this.ka.height=Math.round(c)),this.ka&&(this.ka.webkitImageSmoothingEnabled=this.O,this.ka.mozImageSmoothingEnabled=
this.O,this.ka.msImageSmoothingEnabled=this.O,this.ka.imageSmoothingEnabled=this.O),this.cr(),this.kp&&!this.td&&window.scrollTo(0,0)}};d.prototype.cr=function(){if(this.Dt&&0!==this.Gm){var a="portrait";2===this.Gm&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(c){console&&
console.warn&&console.warn("Failed to lock orientation: ",c)}}};d.prototype.lw=function(){this.k.It();this.lm=!0;var a,c,b;a=0;for(c=this.n.length;a<c;a++)b=this.n[a],b.Vh&&b.Vh()};d.prototype.mw=function(){this.lm=!1;var a,c,b;a=0;for(c=this.n.length;a<c;a++)b=this.n[a],b.Wh&&b.Wh()};d.prototype.pq=function(){if(!this.Oa){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.vh)&&!this.td?jQuery(this.canvas).offset():jQuery(this.canvas).position();
a.position="absolute";jQuery(this.zb).css(a)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(a){var c;if(a&&!this.wh)for(fa("[Construct 2] Suspending"),this.wh=!0,-1!==this.Rm&&e&&e(this.Rm),-1!==this.kn&&clearTimeout(this.kn),a=0,c=this.ii.length;a<c;a++)this.ii[a](!0);else if(!a&&this.wh){fa("[Construct 2] Resuming");this.wh=!1;this.Qj=Xa();this.tf=
Xa();a=this.Oh=this.yj=0;for(c=this.ii.length;a<c;a++)this.ii[a](!1);this.lb(!1)}};d.prototype.ho=function(a){this.ii.push(a)};d.prototype.me=function(a){return this.bk[a]};d.prototype.Hh=function(a){a&&a.project||ga("Project model unavailable");a=a.project;this.name=a[0];this.Go=a[1];this.hc=a[12];this.Lo=a[12];this.jb=a[10];this.ib=a[11];this.kq=this.jb/2;this.lq=this.ib/2;this.Oa&&!this.bd&&(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.Lo=this.hc=3);this.vn=a[18];this.Ie=a[19];if(0===this.Ie){var c=new Image;c.crossOrigin="anonymous";this.Gq(c,"loading-logo.png");this.He={Yj:c}}else if(4===this.Ie){c=new Image;c.src="";var b=new Image;b.src="";var g=new Image;g.src="";var e=new Image;e.src="";var h=new Image;h.src="";var m=new Image;m.src="";var f=new Image;f.src="";var r=new Image;r.src="";var t=new Image;t.src="";var d=new Image;d.src="";var w=new Image;w.src="";var p=new Image;p.src="";this.He={Yj:[c,b,g,e],Aw:[h,m,f,r],
ux:[t,d,w,p]}}this.Sh=a[21];this.bk=nc();this.Bd=new X(this);c=0;for(b=a[2].length;c<b;c++)f=a[2][c],g=this.me(f[0]),qb(f,g.prototype),r=new g(this),r.vk=f[1],r.Ge=f[2],r.Tp=f[9],r.G&&r.G(),this.plugins.push(r);this.bk=nc();c=0;for(b=a[3].length;c<b;c++){f=a[3][c];h=this.me(f[1]);r=null;g=0;for(e=this.plugins.length;g<e;g++)if(this.plugins[g]instanceof h){r=this.plugins[g];break}t=new r.ca(r);t.name=f[0];t.A=f[2];t.cm=f[3].slice(0);t.tx=f[3].length;t.Et=f[4];t.Xu=f[5];t.Y=f[11];t.A?(t.mg=[],t.Md=
this.$g++,t.za=null):(t.mg=null,t.Md=-1,t.za=[]);t.tj=null;t.Sf=null;t.Ao=null;t.Kb=!1;t.gc=null;f[6]?(t.ki=f[6][0],t.zk=f[6][1],t.Qe=f[6][2]):(t.ki=null,t.zk=0,t.Qe=0);f[7]?t.Vb=f[7]:t.Vb=null;t.index=c;t.c=[];t.kj=[];t.ge=[new rb(t)];t.nd=0;t.Ec=null;t.Ot=0;t.Bg=!0;t.Dk=sb;t.dv=tb;t.mv=ub;t.R=vb;t.Zh=wb;t.Le=xb;t.dd=yb;t.Bj=zb;t.Jl=Ab;t.Nl=Bb;t.Sc=Cb;t.Ol=Eb;t.dj=new hb(this.jb,this.ib);t.Ri=!0;t.Si=!1;t.la={};t.toString=Fb;t.Fa=[];g=0;for(e=f[8].length;g<e;g++){d=f[8][g];w=this.me(d[1]);p=null;
h=0;for(m=this.Fa.length;h<m;h++)if(this.Fa[h]instanceof w){p=this.Fa[h];break}p||(p=new w(this),p.Up=[],p.Bm=new da,p.G&&p.G(),this.Fa.push(p));-1===p.Up.indexOf(t)&&p.Up.push(t);h=new p.ca(p,t);h.name=d[0];h.Y=d[2];h.G();t.Fa.push(h)}t.global=f[9];t.hm=f[10];t.N=[];g=0;for(e=f[12].length;g<e;g++)t.N.push({id:f[12][g][0],name:f[12][g][1],Ya:-1,Kc:!1,lc:!0,index:g});t.gy=f[13];this.vn&&!t.A&&!t.hm&&r.Ge||t.G();t.name&&(this.types[t.name]=t);this.n.push(t);r.vk&&(g=new r.V(t),g.uid=this.Sh++,g.sq=
this.Vp++,g.mf=0,g.eh=Gb,g.toString=Hb,g.u=f[14],g.G(),t.c.push(g),this.Wd[g.uid.toString()]=g)}c=0;for(b=a[4].length;c<b;c++)for(h=a[4][c],m=this.n[h[0]],g=1,e=h.length;g<e;g++)f=this.n[h[g]],f.za.push(m),m.mg.push(f);c=0;for(b=a[28].length;c<b;c++){h=a[28][c];m=[];g=0;for(e=h.length;g<e;g++)m.push(this.n[h[g]]);g=0;for(e=m.length;g<e;g++)m[g].Kb=!0,m[g].gc=m}if(0<this.$g)for(c=0,b=this.n.length;c<b;c++)if(f=this.n[c],!f.A&&f.za.length){f.tj=Array(this.$g);f.Sf=Array(this.$g);f.Ao=Array(this.$g);
t=[];g=p=w=d=0;for(e=f.za.length;g<e;g++)for(r=f.za[g],f.tj[r.Md]=d,d+=r.tx,f.Sf[r.Md]=w,w+=r.Et,f.Ao[r.Md]=p,p+=r.Xu,h=0,m=r.N.length;h<m;h++)t.push(wa({},r.N[h]));f.N=t.concat(f.N);g=0;for(e=f.N.length;g<e;g++)f.N[g].index=g}c=0;for(b=a[5].length;c<b;c++)f=a[5][c],g=new Ib(this,f),this.pm[g.name]=g,this.cd.push(g);c=0;for(b=a[6].length;c<b;c++)f=a[6][c],g=new Jb(this,f),this.Cl[g.name]=g,this.Ld.push(g);c=0;for(b=this.Ld.length;c<b;c++)this.Ld[c].Sa();c=0;for(b=this.Ld.length;c<b;c++)this.Ld[c].sn();
c=0;for(b=this.Ck.length;c<b;c++)this.Ck[c].Sa();H(this.Ck);this.Ct=a[7];this.ah=a[8];this.wc=a[9];this.Qg=1;this.mu=a[13];this.O=a[14];this.al=a[15];this.rx=a[17];this.Gm=a[20];this.Dt=0<this.Gm;this.uw=a[22];this.pc=this.or=a[23];this.fu=a[24];this.Bw=a[25];this.ta=a[27]&&!this.Fe;this.wk=Date.now();H(this.bk);this.Mv()};var a=!1;d.prototype.Hk=function(c,b){c.cocoonLazyLoad=!0;c.onerror=function(b){a=c.po=!0;console&&console.error&&console.error("Error loading image '"+c.src+"': ",b)};this.bd?
c.src=b:c.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(a){c.src=a},function(g){a=c.po=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",g)}):(c.crossOrigin="anonymous",this.Gq(c,b)));this.Ig.push(c)};d.prototype.Uu=function(a){var c,b;c=0;for(b=this.Ig.length;c<b;c++)if(this.Ig[c].Jt===a)return this.Ig[c];return null};var c=0,g=!1;d.prototype.Dv=function(){this.Lf&&(c=this.Lf.Xw(this.Ct))};d.prototype.jo=function(){var a=c,b=0,e=0,h=
!0,m,f,e=0;for(m=this.Ig.length;e<m;e++){f=this.Ig[e];var r=f.pl;if(!r||0>=r)r=5E4;a+=r;f.src&&(f.complete||f.loaded)&&!f.po?b+=r:h=!1}h&&this.Bw&&this.Lf&&(g||(this.Lf.bx(),g=!0),e=this.Lf.nv(),b+=e,e<c&&(h=!1));this.$b=0==a?1:b/a;return h};var m=!1;d.prototype.go=function(){if(this.ka||this.k){var c=this.ka||this.Im;this.zb&&this.pq();this.$b=0;this.up=-1;var b=this;if(this.jo()&&(4!==this.Ie||m))this.Ev();else{var g=Date.now()-this.wk;if(c){var e=this.width,h=this.height,r=this.devicePixelRatio;
if(3>this.Ie&&(this.ad||500<=g&&this.up!=this.$b)){c.clearRect(0,0,e,h);var g=e/2,h=h/2,e=0===this.Ie&&this.He.Yj.complete,t=40*r,d=0,w=80*r,p;if(e){var k=this.He.Yj,w=k.width*r;p=k.height*r;t=w/2;d=p/2;c.drawImage(k,D(g-t),D(h-d),w,p)}1>=this.Ie?(g=D(g-t)+.5,h=D(h+(d+(e?12*r:0)))+.5,c.fillStyle=a?"red":"DodgerBlue",c.fillRect(g,h,Math.floor(w*this.$b),6*r),c.strokeStyle="black",c.strokeRect(g,h,w,6*r),c.strokeStyle="white",c.strokeRect(g-1*r,h-1*r,w+2*r,8*r)):2===this.Ie&&(c.font=this.bd?"12pt ArialMT":
"12pt Arial",c.fillStyle=a?"#f00":"#999",c.fy="middle",r=Math.round(100*this.$b)+"%",e=c.measureText?c.measureText(r):null,c.fillText(r,g-(e?e.width:0)/2,h));this.up=this.$b}else if(4===this.Ie){this.ku(c);f?f(function(){b.go()}):setTimeout(function(){b.go()},16);return}}setTimeout(function(){b.go()},this.ad?10:100)}}};var h=-1,t="undefined"===typeof cr_is_preview?200:0,N=!0,r=!1,w=0,W=0,y="undefined"===typeof cr_is_preview?3E3:0,E=null,C=null,K=0;d.prototype.ku=function(c){if(!m){for(var b=Math.ceil(this.width),
g=Math.ceil(this.height),e=this.He.Yj,f=this.He.Aw,d=this.He.ux,p=0;4>p;++p)if(!e[p].complete||!f[p].complete||!d[p].complete)return;0===K&&(h=Date.now());var p=Date.now(),k=!1,n=c,l,u;N||r?(c.clearRect(0,0,b,g),E&&E.width===b&&E.height===g||(E=document.createElement("canvas"),E.width=b,E.height=g,C=E.getContext("2d")),n=C,k=!0,N&&1===K&&(h=Date.now())):c.globalAlpha=1;n.fillStyle="#333333";n.fillRect(0,0,b,g);256<this.Wg?(l=Ha(.22*g,105,.6*b),u=.25*l,n.drawImage(q(f,l),.5*b-l/2,.2*g-u/2,l,u),u=l=
Math.min(.395*g,.95*b),n.drawImage(q(e,l),.5*b-l/2,.485*g-u/2,l,u),l=Ha(.22*g,105,.6*b),u=.25*l,n.drawImage(q(d,l),.5*b-l/2,.868*g-u/2,l,u),n.fillStyle="#3C3C3C",l=b,u=Math.max(.005*g,2),n.fillRect(0,.8*g-u/2,l,u),n.fillStyle=a?"red":"#E0FF65",l=b*this.$b,n.fillRect(.5*b-l/2,.8*g-u/2,l,u)):(u=l=.55*g,n.drawImage(q(e,l),.5*b-l/2,.45*g-u/2,l,u),n.fillStyle="#3C3C3C",l=b,u=Math.max(.005*g,2),n.fillRect(0,.85*g-u/2,l,u),n.fillStyle=a?"red":"#E0FF65",l=b*this.$b,n.fillRect(.5*b-l/2,.85*g-u/2,l,u));k&&
(N?c.globalAlpha=0===K?0:Math.min((p-h)/300,1):r&&(c.globalAlpha=Math.max(1-(p-W)/300,0)),c.drawImage(E,0,0,b,g));N&&300<=p-h&&2<=K&&(N=!1,w=p);!N&&p-w>=y&&!r&&1<=this.$b&&(r=!0,W=p);if(r&&p-W>=300+t||"undefined"!==typeof cr_is_preview&&1<=this.$b&&500>Date.now()-h)m=!0,r=N=!1,this.He=C=E=null;++K}};d.prototype.Ev=function(){this.zb&&(this.canvas.parentNode.removeChild(this.zb),this.zb=this.Im=null);this.wk=Date.now();this.tf=Xa();var a,c,b;if(this.vn)for(a=0,c=this.n.length;a<c;a++)b=this.n[a],b.A||
b.hm||!b.ba.Ge||b.G();else this.Bh=!1;a=0;for(c=this.cd.length;a<c;a++)this.cd[a].Kt();2<=this.hc&&(a=this.jb/this.ib,c=this.width/this.height,this.Qg=2!==this.hc&&c>a||2===this.hc&&c<a?this.height/this.ib:this.width/this.jb);this.Go?this.pm[this.Go].hn():this.cd[0].hn();this.vn||(this.ig=1,this.trigger(X.prototype.d.Tn,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(c=this.n.length;a<c;a++)b=this.n[a],b.kw&&b.kw();document.hidden||document.webkitHidden||
document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.lb(!1);this.xb&&AppMobi.webview.execute("onGameReady();")};d.prototype.lb=function(a,c,b){if(this.ma){var g=Xa();if(b||!this.wh||a){a||(f?this.Rm=f(this.Xq):this.kn=setTimeout(this.Xq,this.uh?1:16));c=c||g;var e=this.hc;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.td)||this.vh)&&0<this.ff&&(e=this.ff);if(0<e){var e=window.innerWidth,h=window.innerHeight;this.Fh===
e&&this.Eh===h||this.setSize(e,h)}this.Oa||(b?(this.wj||(this.Hl=jQuery(this.canvas).css("margin")||"0",this.wj=!0),this.oh||this.Qd||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.wj?(this.oh||this.Qd||jQuery(this.canvas).css("margin",this.Hl),this.Hl="",this.wj=!1,0===this.hc&&this.setSize(Math.round(this.bq/this.devicePixelRatio),Math.round(this.aq/
this.devicePixelRatio),!0)):(this.bq=this.width,this.aq=this.height));this.Bh&&(b=this.jo(),this.ig=this.$b,b&&(this.Bh=!1,this.$b=1,this.trigger(X.prototype.d.Tn,null)));this.dw(c);!this.ga&&!this.ad||this.lm||this.hi||a||(this.ga=!1,this.k?this.Fb():this.Zc(),this.gi&&(this.canvas&&this.canvas.toDataURL&&(this.Qq=this.canvas.toDataURL(this.gi[0],this.gi[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Qq),this.trigger(X.prototype.d.ps,null)),this.gi=null));this.$x||(this.li++,this.ef++,this.yj++);
this.Oh+=Xa()-g}}};d.prototype.dw=function(a){var c,b,g,e,h,m,f,r;1E3<=a-this.tf&&(this.tf+=1E3,1E3<=a-this.tf&&(this.tf=a),this.Gl=this.yj,this.yj=0,this.ol=this.Oh,this.Oh=0);0!==this.Qj&&(c=a-this.Qj,0>c&&(c=0),this.Be=c/1E3,.5<this.Be?this.Be=0:this.Be>1/this.Sp&&(this.Be=1/this.Sp));this.Qj=a;this.Ae=this.Be*this.Ef;this.yb.add(this.Ae);this.ke.add(this.Be);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.vh)&&!this.td;2<=this.hc||
a&&0<this.ff?(c=this.jb/this.ib,b=this.width/this.height,g=this.hc,a&&0<this.ff&&(g=this.ff),this.Qg=2!==g&&b>c||2===g&&b<c?this.height/this.ib:this.width/this.jb,this.ma&&(this.ma.Aq(this.ma.scrollX),this.ma.bn(this.ma.scrollY))):this.Qg=this.of?this.devicePixelRatio:1;this.Cb();this.sc++;this.Bd.Mw();this.sc--;this.Cb();this.sc++;b=this.Zp.Se();a=0;for(c=b.length;a<c;a++)b[a].by();a=0;for(c=this.n.length;a<c;a++)if(m=this.n[a],!m.A&&(m.Fa.length||m.za.length))for(b=0,g=m.c.length;b<g;b++)for(f=
m.c[b],e=0,h=f.M.length;e<h;e++)f.M[e].lb();a=0;for(c=this.n.length;a<c;a++)if(m=this.n[a],!m.A&&(m.Fa.length||m.za.length))for(b=0,g=m.c.length;b<g;b++)for(f=m.c[b],e=0,h=f.M.length;e<h;e++)r=f.M[e],r.zw&&r.zw();b=this.Dm.Se();a=0;for(c=b.length;a<c;a++)b[a].lb();this.sc--;this.Fv();for(a=0;this.Sg&&10>a++;)this.yo(this.Sg);a=0;for(c=this.Ld.length;a<c;a++)this.Ld[a].Wl=!1;this.ma.cf&&this.ma.cf.Xa();H(this.vq);this.sc++;a=0;for(c=this.n.length;a<c;a++)if(m=this.n[a],!m.A&&(m.Fa.length||m.za.length))for(b=
0,g=m.c.length;b<g;b++)for(f=m.c[b],e=0,h=f.M.length;e<h;e++)r=f.M[e],r.Wq&&r.Wq();b=this.$p.Se();a=0;for(c=b.length;a<c;a++)b[a].Wq();this.sc--};d.prototype.rg=function(){var a,c,b,g,e,h,m,f,r;a=0;for(c=this.n.length;a<c;a++)if(m=this.n[a],!m.A)for(b=0,g=m.c.length;b<g;b++)if(f=m.c[b],f.rg&&f.rg(),f.M)for(e=0,h=f.M.length;e<h;e++)r=f.M[e],r.rg&&r.rg()};d.prototype.yo=function(a){var c=this.ma;this.ma.cx();var b,g,e;if(this.k)for(b=0,g=this.n.length;b<g;b++)e=this.n[b],e.A||!e.oi||e.global&&0!==e.c.length||
-1!==a.mh.indexOf(e)||e.oi();c==a&&H(this.Bd.fc);H(this.vq);this.yq(!0);a.hn();this.yq(!1);this.ga=!0;this.Cb()};d.prototype.yq=function(a){var c,b,g,e,h,m,f,r,t;c=0;for(b=this.Fa.length;c<b;c++)g=this.Fa[c],a?g.Th&&g.Th():g.Uh&&g.Uh();c=0;for(b=this.n.length;c<b;c++)if(g=this.n[c],g.global||g.ba.vk)for(e=0,h=g.c.length;e<h;e++)if(m=g.c[e],a?m.Th&&m.Th():m.Uh&&m.Uh(),m.M)for(f=0,r=m.M.length;f<r;f++)t=m.M[f],a?t.Th&&t.Th():t.Uh&&t.Uh()};d.prototype.Df=function(a){this.Dm.add(a)};d.prototype.Dj=function(a){return a&&
-1!==a.Rh?this.Be*a.Rh:this.Ae};d.prototype.Zc=function(){this.ma.Zc(this.ka);this.xb&&this.ka.present()};d.prototype.Fb=function(){this.ta&&(this.Ze=1,this.ma.ze(this.k));this.ma.Fb(this.k);this.k.Dw()};d.prototype.yt=function(a){a&&this.yl.push(a)};d.prototype.Fj=function(a){a=a.toString();return this.Wd.hasOwnProperty(a)?this.Wd[a]:null};var J=[];d.prototype.Te=function(a){var c,b;c=a.type.name;var g=null;if(this.Ye.hasOwnProperty(c)){if(g=this.Ye[c],g.contains(a))return}else g=J.length?J.pop():
new da,this.Ye[c]=g;g.add(a);this.Ee=!0;if(a.Kb)for(c=0,b=a.siblings.length;c<b;c++)this.Te(a.siblings[c]);this.fm&&g.Gg.push(a);this.em||(this.sc++,this.trigger(Object.getPrototypeOf(a.type.ba).d.Pn,a),this.sc--)};d.prototype.Cb=function(){if(this.Ee){var a,c,b,g,e,h;this.fm=!0;b=0;for(e=this.Xc.length;b<e;++b)for(a=this.Xc[b],c=a.type,c.c.push(a),g=0,h=c.za.length;g<h;++g)c.za[g].c.push(a),c.za[g].Bg=!0;H(this.Xc);this.ds();Wa(this.Ye);this.Ee=this.fm=!1}};d.prototype.ds=function(){for(var a in this.Ye)this.Ye.hasOwnProperty(a)&&
this.xr(this.Ye[a])};d.prototype.xr=function(a){var c=a.Se(),b=c[0].type,g,e,h,m,f,r;Ya(b.c,a);b.Bg=!0;0===b.c.length&&(b.Si=!1);g=0;for(e=b.za.length;g<e;++g)r=b.za[g],Ya(r.c,a),r.Bg=!0;g=0;for(e=this.Bd.fc.length;g<e;++g)if(f=this.Bd.fc[g],f.Qb.hasOwnProperty(b.index)&&Ya(f.Qb[b.index].Od,a),!b.A)for(h=0,m=b.za.length;h<m;++h)r=b.za[h],f.Qb.hasOwnProperty(r.index)&&Ya(f.Qb[r.index].Od,a);if(f=c[0].j){if(f.Ac)for(h=f.c,g=0,e=h.length;g<e;++g)m=h[g],a.contains(m)&&(m.Ca(),f.Ab.update(m,m.ac,null),
m.ac.set(0,0,-1,-1));Ya(f.c,a);f.ci(0)}for(g=0;g<c.length;++g)this.wr(c[g],b);a.clear();J.push(a);this.ga=!0};d.prototype.wr=function(a,c){var b,g,e;b=0;for(g=this.yl.length;b<g;++b)this.yl[b](a);a.we&&c.dj.update(a,a.we,null);(b=a.j)&&b.ug(a,!0);if(a.M)for(b=0,g=a.M.length;b<g;++b)e=a.M[b],e.zf&&e.zf(),e.behavior.Bm.remove(a);this.Zp.remove(a);this.Dm.remove(a);this.$p.remove(a);a.zf&&a.zf();this.Wd.hasOwnProperty(a.uid.toString())&&delete this.Wd[a.uid.toString()];this.ck--;100>c.kj.length&&c.kj.push(a)};
d.prototype.ql=function(a,c,b,g){if(a.A){var e=D(Math.random()*a.mg.length);return this.ql(a.mg[e],c,b,g)}return a.Ec?this.xe(a.Ec,c,!1,b,g,!1):null};var x=[];d.prototype.xe=function(a,c,b,g,e,h){var m,f,r,t;if(!a)return null;var d=this.n[a[1]],p=d.ba.Ge;if(this.Bh&&p&&!d.hm||p&&!this.k&&11===a[0][11])return null;var w=c;p||(c=null);var k;d.kj.length?(k=d.kj.pop(),k.xc=!0,d.ba.V.call(k,d)):(k=new d.ba.V(d),k.xc=!1);!b||h||this.Wd.hasOwnProperty(a[2].toString())?k.uid=this.Sh++:k.uid=a[2];this.Wd[k.uid.toString()]=
k;k.sq=this.Vp++;k.mf=d.c.length;m=0;for(f=this.Xc.length;m<f;++m)this.Xc[m].type===d&&k.mf++;k.eh=Gb;k.toString=Hb;r=a[3];if(k.xc)Wa(k.la);else{k.la={};if("undefined"!==typeof cr_is_preview)for(k.bp=[],k.bp.length=r.length,m=0,f=r.length;m<f;m++)k.bp[m]=r[m][1];k.fb=[];k.fb.length=r.length}m=0;for(f=r.length;m<f;m++)k.fb[m]=r[m][0];if(p){var n=a[0];k.x=ha(g)?n[0]:g;k.y=ha(e)?n[1]:e;k.z=n[2];k.width=n[3];k.height=n[4];k.depth=n[5];k.m=n[6];k.opacity=n[7];k.Ib=n[8];k.Jb=n[9];k.Db=n[10];m=n[11];!this.k&&
d.N.length&&(k.Db=m);k.Tg=jb(k.Db);this.r&&kb(k,k.Db,this.r);if(k.xc){m=0;for(f=n[12].length;m<f;m++)for(r=0,t=n[12][m].length;r<t;r++)k.Ga[m][r]=n[12][m][r];k.Ta.set(0,0,0,0);k.we.set(0,0,-1,-1);k.ac.set(0,0,-1,-1);k.Wb.di(k.Ta);H(k.fl)}else{k.Ga=n[12].slice(0);m=0;for(f=k.Ga.length;m<f;m++)k.Ga[m]=n[12][m].slice(0);k.ea=[];k.ne=[];k.ne.length=d.N.length;k.Ta=new ua(0,0,0,0);k.we=new ua(0,0,-1,-1);k.ac=new ua(0,0,-1,-1);k.Wb=new va;k.fl=[];k.ua=Kb;k.Tx=Lb;k.Xb=Mb;k.Ca=Nb;k.ox=Ob;k.kr=Pb;k.rd=Qb}k.ni=
!1;k.jx=0;k.ix=0;k.hx=null;14===n.length&&(k.ni=!0,k.jx=n[13][0],k.ix=n[13][1],k.hx=n[13][2]);m=0;for(f=d.N.length;m<f;m++)k.ne[m]=!0;k.ee=!0;k.hd=Rb;k.hd();k.lr=!!k.ea.length;k.el=!0;k.jl=!0;d.Ri=!0;k.visible=!0;k.Rh=-1;k.j=c;k.kd=c.c.length;k.Ze=0;"undefined"===typeof k.ja&&(k.ja=null);this.ga=k.We=!0}var N;H(x);m=0;for(f=d.za.length;m<f;m++)x.push.apply(x,d.za[m].Fa);x.push.apply(x,d.Fa);if(k.xc)for(m=0,f=x.length;m<f;m++){var q=x[m];N=k.M[m];N.xc=!0;q.behavior.V.call(N,q,k);n=a[4][m];r=0;for(t=
n.length;r<t;r++)N.u[r]=n[r];N.G();q.behavior.Bm.add(k)}else for(k.M=[],m=0,f=x.length;m<f;m++)q=x[m],N=new q.behavior.V(q,k),N.xc=!1,N.u=a[4][m].slice(0),N.G(),k.M.push(N),q.behavior.Bm.add(k);n=a[5];if(k.xc)for(m=0,f=n.length;m<f;m++)k.u[m]=n[m];else k.u=n.slice(0);this.Xc.push(k);this.Ee=!0;c&&(c.Pg(k,!0),1!==c.Xd||1!==c.Yd)&&(d.Si=!0);this.ck++;if(d.Kb){if(k.Kb=!0,k.xc?H(k.siblings):k.siblings=[],!b&&!h){m=0;for(f=d.gc.length;m<f;m++)if(d.gc[m]!==d){if(!d.gc[m].Ec)return null;k.siblings.push(this.xe(d.gc[m].Ec,
w,!1,p?k.x:g,p?k.y:e,!0))}m=0;for(f=k.siblings.length;m<f;m++)for(k.siblings[m].siblings.push(k),r=0;r<f;r++)m!==r&&k.siblings[m].siblings.push(k.siblings[r])}}else k.Kb=!1,k.siblings=null;k.G();m=0;for(f=k.M.length;m<f;m++)k.M[m].yw&&k.M[m].yw();return k};d.prototype.jv=function(a){var c,b;c=0;for(b=this.ma.S.length;c<b;c++){var g=this.ma.S[c];if(mb(g.name,a))return g}return null};d.prototype.kv=function(a){a=D(a);0>a&&(a=0);a>=this.ma.S.length&&(a=this.ma.S.length-1);return this.ma.S[a]};d.prototype.ml=
function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].R().U=!0};d.prototype.Zh=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].Zh()};d.prototype.Le=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].Le()};d.prototype.dd=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].dd()};d.prototype.hr=function(a){if(a.Ri){var c,b,g=a.c;c=0;for(b=g.length;c<b;++c)g[c].kr();g=this.Xc;c=0;for(b=g.length;c<b;++c)g[c].type===a&&g[c].kr();a.Ri=!1}};d.prototype.bv=function(a,c,b,g){var e,h,m=a?1!==a.Xd||1!==a.Yd:
!1;if(c.A)for(a=0,e=c.mg.length;a<e;++a)h=c.mg[a],m||h.Si?Ca(g,h.c):(this.hr(h),h.dj.mk(b,g));else m||c.Si?Ca(g,c.c):(this.hr(c),c.dj.mk(b,g))};d.prototype.gx=function(a,c){if(!(a&&c&&a!==c&&a.We&&c.We))return!1;a.Ca();c.Ca();var b=a.j,g=c.j,e,h,m,f,r,t,d,k;if(b===g||b.Xd===g.Xd&&g.Yd===g.Yd&&b.scale===g.scale&&b.m===g.m&&b.Ci===g.Ci){if(!a.Ta.Nv(c.Ta)||!a.Wb.cp(c.Wb)||a.ni&&c.ni)return!1;if(a.ni)return this.Uq(a,c);if(c.ni)return this.Uq(c,a);d=a.ja&&!a.ja.$f();e=c.ja&&!c.ja.$f();if(!d&&!e)return!0;
d?(a.ja.Mf(a.width,a.height,a.m),d=a.ja):(this.gd.zg(a.Wb,a.x,a.y,a.width,a.height),d=this.gd);e?(c.ja.Mf(c.width,c.height,c.m),k=c.ja):(this.gd.zg(c.Wb,c.x,c.y,c.width,c.height),k=this.gd);return d.nh(k,c.x-a.x,c.y-a.y)}d=a.ja&&!a.ja.$f();e=c.ja&&!c.ja.$f();d?(a.ja.Mf(a.width,a.height,a.m),this.gd.Jq(a.ja)):this.gd.zg(a.Wb,a.x,a.y,a.width,a.height);d=this.gd;e?(c.ja.Mf(c.width,c.height,c.m),this.jn.Jq(c.ja)):this.jn.zg(c.Wb,c.x,c.y,c.width,c.height);k=this.jn;e=0;for(h=d.ed;e<h;e++)m=2*e,f=m+1,r=
d.kb[m],t=d.kb[f],d.kb[m]=b.gb(r+a.x,t+a.y,!0),d.kb[f]=b.gb(r+a.x,t+a.y,!1);d.Ca();e=0;for(h=k.ed;e<h;e++)m=2*e,f=m+1,r=k.kb[m],t=k.kb[f],k.kb[m]=g.gb(r+c.x,t+c.y,!0),k.kb[f]=g.gb(r+c.x,t+c.y,!1);k.Ca();return d.nh(k,0,0)};var O=new va;new ua(0,0,0,0);var I=[];d.prototype.Uq=function(a,c){var b,g,e,h,m=c.Ta,f=a.x,r=a.y;a.Yx(m,I);var t=c.ja&&!c.ja.$f();b=0;for(g=I.length;b<g;++b)if(e=I[b],h=e.cy,m.Ov(h,f,r)&&(O.di(h),O.offset(f,r),O.cp(c.Wb)))if(t)if(c.ja.Mf(c.width,c.height,c.m),e.Lm){if(e.Lm.nh(c.ja,
c.x-(f+h.left),c.y-(r+h.top)))return H(I),!0}else{if(this.gd.zg(O,0,0,h.right-h.left,h.bottom-h.top),this.gd.nh(c.ja,c.x,c.y))return H(I),!0}else if(e.Lm){if(this.gd.zg(c.Wb,0,0,c.width,c.height),e.Lm.nh(this.gd,-(f+h.left),-(r+h.top)))return H(I),!0}else return H(I),!0;H(I);return!1};d.prototype.dr=function(a,c){if(!c)return!1;var b,g,e,h,m;b=0;for(g=a.Fa.length;b<g;b++)if(a.Fa[b].behavior instanceof c)return!0;if(!a.A)for(b=0,g=a.za.length;b<g;b++)for(m=a.za[b],e=0,h=m.Fa.length;e<h;e++)if(m.Fa[e].behavior instanceof
c)return!0;return!1};d.prototype.qn=function(a){return this.dr(a,fc.Hx)};d.prototype.rn=function(a){return this.dr(a,fc.Ix)};var R=-1;d.prototype.trigger=function(a,c,b){if(!this.ma)return!1;var g=this.ma.cf;if(!g)return!1;var e=!1,h,m,f;R++;var r=g.wl;m=0;for(f=r.length;m<f;++m)h=this.$q(a,c,r[m],b),e=e||h;h=this.$q(a,c,g,b);R--;return e||h};d.prototype.$q=function(a,c,b,g){var e=!1,h,m,f,r;if(c)for(f=this.nn(a,c,c.type.name,b,g),e=e||f,r=c.type.za,h=0,m=r.length;h<m;++h)f=this.nn(a,c,r[h].name,
b,g),e=e||f;else f=this.nn(a,c,"system",b,g),e=e||f;return e};d.prototype.nn=function(a,c,b,g,e){var h,m=!1,f=!1,f="undefined"!==typeof e,r=(f?g.Co:g.br)[b];if(!r)return m;var t=null;g=0;for(h=r.length;g<h;++g)if(r[g].method==a){t=r[g].Zg;break}if(!t)return m;var d;f?d=t[e]:d=t;if(!d)return null;g=0;for(h=d.length;g<h;g++)a=d[g][0],e=d[g][1],f=this.Ru(c,b,a,e),m=m||f;return m};d.prototype.Ru=function(a,c,b,g){var e,h,m=!1;this.pn++;var f=this.Ha().Ka;f&&this.Zh(f.Oe);var r=1<this.pn;this.Zh(b.Oe);
r&&this.Fw();var t=this.lk(b);t.Ka=b;a&&(e=this.types[c].R(),e.U=!1,H(e.c),e.c[0]=a,this.types[c].Sc());a=!0;if(b.parent){c=t.Tq;for(e=b.parent;e;)c.push(e),e=e.parent;c.reverse();e=0;for(h=c.length;e<h;e++)if(!c[e].Ow()){a=!1;break}}a&&(this.ef++,b.vc?b.Nw(g):b.Xa(),m=m||t.sf);this.gk();r&&this.xw();this.dd(b.Oe);f&&this.dd(f.Oe);this.Ee&&0===this.sc&&0===R&&!this.im&&this.Cb();this.pn--;return m};d.prototype.Cj=function(){var a=this.Ha();return a.Ka.cb[a.Ua]};d.prototype.Qv=function(){return 0===
this.Ha().Ua};d.prototype.cv=function(){var a=this.Ha();return a.Ka.Bc[a.Ub]};d.prototype.Fw=function(){this.Xj++;this.Xj>=this.wm.length&&this.wm.push([])};d.prototype.xw=function(){this.Xj--};d.prototype.No=function(){return this.wm[this.Xj]};d.prototype.lk=function(a){this.pj++;this.pj>=this.Bl.length&&this.Bl.push(new Sb);var c=this.Ha();c.reset(a);return c};d.prototype.gk=function(){this.pj--};d.prototype.Ha=function(){return this.Bl[this.pj]};d.prototype.Pm=function(a){this.kg++;this.kg>=this.Ph.length&&
this.Ph.push(aa({name:a,index:0,pa:!1}));var c=this.Ll();c.name=a;c.index=0;c.pa=!1;return c};d.prototype.Mm=function(){this.kg--};d.prototype.Ll=function(){return this.Ph[this.kg]};d.prototype.Oo=function(a,c){for(var b,g,e,h,m,f;c;){b=0;for(g=c.Nc.length;b<g;b++)if(f=c.Nc[b],f instanceof Tb&&mb(a,f.name))return f;c=c.parent}b=0;for(g=this.Ld.length;b<g;b++)for(m=this.Ld[b],e=0,h=m.Ce.length;e<h;e++)if(f=m.Ce[e],f instanceof Tb&&mb(a,f.name))return f;return null};d.prototype.Po=function(a){var c,
b;c=0;for(b=this.cd.length;c<b;c++)if(this.cd[c].Y===a)return this.cd[c];return null};d.prototype.Gj=function(a){var c,b;c=0;for(b=this.n.length;c<b;c++)if(this.n[c].Y===a)return this.n[c];return null};d.prototype.gv=function(a){var c,b;c=0;for(b=this.Kf.length;c<b;c++)if(this.Kf[c].Y===a)return this.Kf[c];return null};d.prototype.Qt=function(a,c){this.gi=[a,c];this.ga=!0};d.prototype.Fv=function(){var a=this,c=this.an,b=this.Td,g=this.Tj,e=!1;this.Oq&&(e=!0,c="__c2_continuouspreview",this.Oq=!1);
if(c.length){this.Cb();b=this.Sw();if(l()&&!this.ad)u(c,b,function(){fa("Saved state to IndexedDB storage ("+b.length+" bytes)");a.Td=b;a.trigger(X.prototype.d.Uk,null);a.Td="";e&&p()},function(g){try{localStorage.setItem("__c2save_"+c,b),fa("Saved state to WebStorage ("+b.length+" bytes)"),a.Td=b,a.trigger(X.prototype.d.Uk,null),a.Td="",e&&p()}catch(h){fa("Failed to save game state: "+g+"; "+h)}});else try{localStorage.setItem("__c2save_"+c,b),fa("Saved state to WebStorage ("+b.length+" bytes)"),
a.Td=b,this.trigger(X.prototype.d.Uk,null),a.Td="",e&&p()}catch(h){fa("Error saving to WebStorage: "+h)}this.Lb=this.Tj=this.an=""}if(g.length){if(l()&&!this.ad)n(g,function(c){c?(a.Lb=c,fa("Loaded state from IndexedDB storage ("+a.Lb.length+" bytes)")):(a.Lb=localStorage.getItem("__c2save_"+g)||"",fa("Loaded state from WebStorage ("+a.Lb.length+" bytes)"));a.hi=!1;a.Lb.length||a.trigger(X.prototype.d.Tk,null)},function(){a.Lb=localStorage.getItem("__c2save_"+g)||"";fa("Loaded state from WebStorage ("+
a.Lb.length+" bytes)");a.hi=!1;a.Lb.length||a.trigger(X.prototype.d.Tk,null)});else{try{this.Lb=localStorage.getItem("__c2save_"+g)||"",fa("Loaded state from WebStorage ("+this.Lb.length+" bytes)")}catch(m){this.Lb=""}this.hi=!1;a.Lb.length||a.trigger(X.prototype.d.Tk,null)}this.an=this.Tj=""}this.Lb.length&&(this.Cb(),this.bw(this.Lb),this.Td=this.Lb,this.trigger(X.prototype.d.vs,null),this.Lb=this.Td="")};d.prototype.Sw=function(){var a,c,g,e,h,m,f,r={c2save:!0,version:1,rt:{time:this.yb.Z,walltime:this.ke.Z,
timescale:this.Ef,tickcount:this.li,execcount:this.ef,next_uid:this.Sh,running_layout:this.ma.Y,start_time_offset:Date.now()-this.wk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(c=this.n.length;a<c;a++)if(h=this.n[a],!h.A&&!this.qn(h)){m={instances:[]};Va(h.la)&&(m.ex=b(h.la));g=0;for(e=h.c.length;g<e;g++)m.instances.push(this.$m(h.c[g]));r.types[h.Y.toString()]=m}a=0;for(c=this.cd.length;a<c;a++)g=this.cd[a],r.layouts[g.Y.toString()]=g.Bb();e=r.events.groups;a=0;for(c=
this.Kf.length;a<c;a++)g=this.Kf[a],e[g.Y.toString()]=this.gh[g.fh].Uf;c=r.events.cnds;for(f in this.ve)this.ve.hasOwnProperty(f)&&(a=this.ve[f],Va(a.la)&&(c[f]={ex:b(a.la)}));c=r.events.acts;for(f in this.oe)this.oe.hasOwnProperty(f)&&(a=this.oe[f],Va(a.la)&&(c[f]={ex:b(a.la)}));c=r.events.vars;for(f in this.Hg)this.Hg.hasOwnProperty(f)&&(a=this.Hg[f],a.Lj||a.parent&&!a.zh||(c[f]=a.data));r.system=this.Bd.Bb();return JSON.stringify(r)};d.prototype.uq=function(){var a,c,b,g,e,h;this.Wd={};a=0;for(c=
this.n.length;a<c;a++)if(b=this.n[a],!b.A)for(g=0,e=b.c.length;g<e;g++)h=b.c[g],this.Wd[h.uid.toString()]=h};d.prototype.bw=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){this.rh=!0;var c=a.rt;this.yb.reset();this.yb.Z=c.time;this.ke.reset();this.ke.Z=c.walltime||0;this.Ef=c.timescale;this.li=c.tickcount;this.ef=c.execcount;this.wk=Date.now()-c.start_time_offset;var b=c.running_layout;if(b!==this.ma.Y)if(b=this.Po(b))this.yo(b);else return;var g,e,h,m,f,r,t;r=a.types;for(e in r)if(r.hasOwnProperty(e)&&
(m=this.Gj(parseInt(e,10)))&&!m.A&&!this.qn(m)){r[e].ex?m.la=r[e].ex:Wa(m.la);f=m.c;h=r[e].instances;b=0;for(g=qa(f.length,h.length);b<g;b++)this.Uj(f[b],h[b]);b=h.length;for(g=f.length;b<g;b++)this.Te(f[b]);b=f.length;for(g=h.length;b<g;b++){f=null;if(m.ba.Ge&&(f=this.ma.Ej(h[b].w.l),!f))continue;f=this.xe(m.Ec,f,!1,0,0,!0);this.Uj(f,h[b])}m.Bg=!0}this.Cb();this.uq();g=a.layouts;for(e in g)g.hasOwnProperty(e)&&(b=this.Po(parseInt(e,10)))&&b.Ob(g[e]);g=a.events.groups;for(e in g)g.hasOwnProperty(e)&&
(b=this.gv(parseInt(e,10)))&&this.gh[b.fh]&&this.gh[b.fh].Uw(g[e]);b=a.events.cnds;for(e in this.ve)this.ve.hasOwnProperty(e)&&(b.hasOwnProperty(e)?this.ve[e].la=b[e].ex:this.ve[e].la={});b=a.events.acts;for(e in this.oe)this.oe.hasOwnProperty(e)&&(b.hasOwnProperty(e)?this.oe[e].la=b[e].ex:this.oe[e].la={});b=a.events.vars;for(e in b)b.hasOwnProperty(e)&&this.Hg.hasOwnProperty(e)&&(this.Hg[e].data=b[e]);this.Sh=c.next_uid;this.rh=!1;b=0;for(g=this.vj.length;b<g;++b)f=this.vj[b],this.trigger(Object.getPrototypeOf(f.type.ba).d.Cd,
f);H(this.vj);this.Bd.Ob(a.system);b=0;for(g=this.n.length;b<g;b++)if(m=this.n[b],!m.A&&!this.qn(m))for(e=0,a=m.c.length;e<a;e++){f=m.c[e];if(m.Kb)for(r=f.eh(),H(f.siblings),c=0,h=m.gc.length;c<h;c++)t=m.gc[c],m!==t&&f.siblings.push(t.c[r]);f.Dd&&f.Dd();if(f.M)for(c=0,h=f.M.length;c<h;c++)r=f.M[c],r.Dd&&r.Dd()}this.ga=!0}};d.prototype.$m=function(a,c){var g,e,h,m,f;m=a.type;h=m.ba;var r={};c?r.c2=!0:r.uid=a.uid;Va(a.la)&&(r.ex=b(a.la));if(a.fb&&a.fb.length)for(r.ivs={},g=0,e=a.fb.length;g<e;g++)r.ivs[a.type.cm[g].toString()]=
a.fb[g];if(h.Ge){h={x:a.x,y:a.y,w:a.width,h:a.height,l:a.j.Y,zi:a.rd()};0!==a.m&&(h.a=a.m);1!==a.opacity&&(h.o=a.opacity);.5!==a.Ib&&(h.hX=a.Ib);.5!==a.Jb&&(h.hY=a.Jb);0!==a.Db&&(h.bm=a.Db);a.visible||(h.v=a.visible);a.We||(h.ce=a.We);-1!==a.Rh&&(h.mts=a.Rh);if(m.N.length)for(h.fx=[],g=0,e=m.N.length;g<e;g++)f=m.N[g],h.fx.push({name:f.name,active:a.ne[f.index],params:a.Ga[f.index]});r.w=h}if(a.M&&a.M.length)for(r.behs={},g=0,e=a.M.length;g<e;g++)m=a.M[g],m.Bb&&(r.behs[m.type.Y.toString()]=m.Bb());
a.Bb&&(r.data=a.Bb());return r};d.prototype.iv=function(a,c){var b,g;b=0;for(g=a.cm.length;b<g;b++)if(a.cm[b]===c)return b;return-1};d.prototype.av=function(a,c){var b,g;b=0;for(g=a.M.length;b<g;b++)if(a.M[b].type.Y===c)return b;return-1};d.prototype.Uj=function(a,c,b){var g,e,h,m,f;f=a.type;m=f.ba;if(b){if(!c.c2)return}else a.uid=c.uid;c.ex?a.la=c.ex:Wa(a.la);if(e=c.ivs)for(g in e)e.hasOwnProperty(g)&&(h=this.iv(f,parseInt(g,10)),0>h||h>=a.fb.length||(a.fb[h]=e[g]));if(m.Ge){h=c.w;a.j.Y!==h.l&&(e=
a.j,a.j=this.ma.Ej(h.l),a.j?(e.ug(a,!0),a.j.Pg(a,!0),a.ua(),a.j.ci(0)):(a.j=e,b||this.Te(a)));a.x=h.x;a.y=h.y;a.width=h.w;a.height=h.h;a.kd=h.zi;a.m=h.hasOwnProperty("a")?h.a:0;a.opacity=h.hasOwnProperty("o")?h.o:1;a.Ib=h.hasOwnProperty("hX")?h.hX:.5;a.Jb=h.hasOwnProperty("hY")?h.hY:.5;a.visible=h.hasOwnProperty("v")?h.v:!0;a.We=h.hasOwnProperty("ce")?h.ce:!0;a.Rh=h.hasOwnProperty("mts")?h.mts:-1;a.Db=h.hasOwnProperty("bm")?h.bm:0;a.Tg=jb(a.Db);this.r&&kb(a,a.Db,this.r);a.ua();if(h.hasOwnProperty("fx"))for(b=
0,e=h.fx.length;b<e;b++)m=f.Nl(h.fx[b].name),0>m||(a.ne[m]=h.fx[b].active,a.Ga[m]=h.fx[b].params);a.hd()}if(f=c.behs)for(g in f)f.hasOwnProperty(g)&&(b=this.av(a,parseInt(g,10)),0>b||a.M[b].Ob(f[g]));c.data&&a.Ob(c.data)};d.prototype.Do=function(a,c,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(c,b)},b)};d.prototype.Su=function(a,c){this.Do("data.js",function(b){var g=new FileReader;g.onload=function(c){a(c.target.result)};g.onerror=c;g.readAsText(b)},
c)};d.prototype.Eo=function(a,c,b){this.Do(a,function(a){var b=new FileReader;b.onload=function(a){c(a.target.result)};b.readAsArrayBuffer(a)},b)};d.prototype.Tu=function(a,c,b){this.Eo(a,function(a){a=URL.createObjectURL(new Blob([a]));c(a)},b)};d.prototype.Gq=function(a,c){this.xh?this.Tu(c,function(c){a.src=c},function(a){alert("Failed to load image: "+a)}):a.src=c};Ub=function(a){return new d(document.getElementById(a))};Vb=function(a,c){return new d({dc:!0,width:a,height:c})};window.cr_createRuntime=
Ub;window.cr_createDCRuntime=Vb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.lo=!0;document.body.appendChild(a);a=new d(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new d(document.getElementById("canvas"));
window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(d,q){var l=window.cr_getC2Runtime();l&&l.Qt(d,q)};window.cr_sizeCanvas=function(d,q){if(0!==d&&0!==q){var l=window.cr_getC2Runtime();l&&l.setSize(d,q)}};window.cr_setSuspended=function(d){var q=window.cr_getC2Runtime();q&&q.setSuspended(d)};
(function(){function d(a,c){this.b=a;this.cf=null;this.scrollX=this.b.jb/2;this.scrollY=this.b.ib/2;this.scale=1;this.m=0;this.Tf=!0;this.name=c[0];this.width=c[1];this.height=c[2];this.er=c[3];this.Mq=c[4];this.Y=c[5];var b=c[6],e,h;this.S=[];this.mh=[];e=0;for(h=b.length;e<h;e++){var f=new Wb(this,b[e]);f.Xp=e;this.S.push(f)}b=c[7];this.nf=[];e=0;for(h=b.length;e<h;e++){var f=b[e],d=this.b.n[f[1]];d.Ec||(d.Ec=f);this.nf.push(f);-1===this.mh.indexOf(d)&&this.mh.push(d)}this.N=[];this.ea=[];this.ee=
!0;this.Ga=[];e=0;for(h=c[8].length;e<h;e++)this.N.push({id:c[8][e][0],name:c[8][e][1],Ya:-1,Kc:!1,lc:!0,index:e}),this.Ga.push(c[8][e][2].slice(0));this.hd();this.Zd=new ua(0,0,1,1);this.Sm=new ua(0,0,1,1);this.Ke={}}function q(a,c){return a.kd-c.kd}function l(a,c){this.pb=a;this.b=a.b;this.c=[];this.scale=1;this.m=0;this.Jd=!1;this.he=new ua(0,0,0,0);this.Yq=new va;this.Da=this.xa=this.Ea=this.wa=0;this.Ff=!1;this.le=-1;this.nl=0;this.name=c[0];this.index=c[1];this.Y=c[2];this.visible=c[3];this.Tc=
c[4];this.zc=c[5];this.Xd=c[6];this.Yd=c[7];this.opacity=c[8];this.xj=c[9];this.Ac=c[10];this.Ci=c[11];this.Db=c[12];this.lu=c[13];this.Tg="source-over";this.Eb=this.Mb=0;this.Ab=null;this.Ud=k();this.fd=!0;this.hg=new ua(0,0,-1,-1);this.sb=new ua(0,0,-1,-1);this.Ac&&(this.Ab=new ib(this.b.jb,this.b.ib));this.xd=!1;var b=c[14],e,h;this.Rq=[];this.rc=[];this.Vg=[];e=0;for(h=b.length;e<h;e++){var f=b[e],d=this.b.n[f[1]];d.Ec||(d.Ec=f,d.Ot=this.index);this.rc.push(f);-1===this.pb.mh.indexOf(d)&&this.pb.mh.push(d)}Ba(this.Rq,
this.rc);this.N=[];this.ea=[];this.ee=!0;this.Ga=[];e=0;for(h=c[15].length;e<h;e++)this.N.push({id:c[15][e][0],name:c[15][e][1],Ya:-1,Kc:!1,lc:!0,index:e}),this.Ga.push(c[15][e][2].slice(0));this.hd();this.Zd=new ua(0,0,1,1);this.Sm=new ua(0,0,1,1)}function k(){return b.length?b.pop():[]}function u(a){H(a);b.push(a)}d.prototype.Rw=function(a){var c=a.type.Y.toString();this.Ke.hasOwnProperty(c)||(this.Ke[c]=[]);this.Ke[c].push(this.b.$m(a))};d.prototype.To=function(){var a=this.S[0];return!a.zc&&1===
a.opacity&&!a.xj&&a.visible};d.prototype.hd=function(){H(this.ea);this.ee=!0;var a,c,b;a=0;for(c=this.N.length;a<c;a++)b=this.N[a],b.lc&&(this.ea.push(b),b.Kc||(this.ee=!1))};d.prototype.Ml=function(a){var c,b,e;c=0;for(b=this.N.length;c<b;c++)if(e=this.N[c],e.name===a)return e;return null};var n=[],p=!0;d.prototype.hn=function(){this.Mq&&(this.cf=this.b.Cl[this.Mq],this.cf.sn());this.b.ma=this;this.scrollX=this.b.jb/2;this.scrollY=this.b.ib/2;var a,c,b,e,h,f,d;a=0;for(b=this.b.n.length;a<b;a++)if(c=
this.b.n[a],!c.A)for(h=c.c,c=0,e=h.length;c<e;c++)if(f=h[c],f.j){var r=f.j.Xp;r>=this.S.length&&(r=this.S.length-1);f.j=this.S[r];-1===f.j.c.indexOf(f)&&f.j.c.push(f);f.j.Ff=!0}if(!p)for(a=0,b=this.S.length;a<b;++a)this.S[a].c.sort(q);H(n);this.Ft();a=0;for(b=this.S.length;a<b;a++)f=this.S[a],f.Lt(),f.Ek();h=!1;if(!this.Tf){for(d in this.Ke)if(this.Ke.hasOwnProperty(d)&&(c=this.b.Gj(parseInt(d,10)))&&!c.A&&this.b.rn(c)){e=this.Ke[d];a=0;for(b=e.length;a<b;a++){f=null;if(c.ba.Ge&&(f=this.Ej(e[a].w.l),
!f))continue;f=this.b.xe(c.Ec,f,!1,0,0,!0);this.b.Uj(f,e[a]);h=!0;n.push(f)}H(e)}a=0;for(b=this.S.length;a<b;a++)this.S[a].c.sort(q),this.S[a].Ff=!0}h&&(this.b.Cb(),this.b.uq());for(a=0;a<n.length;a++)if(f=n[a],f.type.Kb)for(b=f.eh(),c=0,e=f.type.gc.length;c<e;c++)d=f.type.gc[c],f.type!==d&&(d.c.length>b?f.siblings.push(d.c[b]):d.Ec&&(h=this.b.xe(d.Ec,f.j,!0,f.x,f.y,!0),this.b.Cb(),d.Dk(),f.siblings.push(h),n.push(h)));a=0;for(b=this.nf.length;a<b;a++)this.b.xe(this.nf[a],null,!0);this.b.Sg=null;
this.b.Cb();if(this.b.ka&&!this.b.Oa)for(a=0,b=this.b.n.length;a<b;a++)d=this.b.n[a],!d.A&&d.c.length&&d.jk&&d.jk(this.b.ka);if(this.b.rh)Ba(this.b.vj,n);else for(a=0,b=n.length;a<b;a++)f=n[a],this.b.trigger(Object.getPrototypeOf(f.type.ba).d.Cd,f);H(n);this.b.rh||this.b.trigger(X.prototype.d.Sn,null);this.Tf=!1};d.prototype.Kt=function(){var a,c,b,e,h;c=a=0;for(b=this.nf.length;a<b;a++)e=this.nf[a],h=this.b.n[e[1]],h.global?h.Kb||this.b.xe(e,null,!0):(this.nf[c]=e,c++);za(this.nf,c)};d.prototype.cx=
function(){this.b.rh||this.b.trigger(X.prototype.d.us,null);this.b.em=!0;H(this.b.Bd.fc);var a,c,b,e,h,f;if(!this.Tf)for(a=0,c=this.S.length;a<c;a++)for(this.S[a].un(),h=this.S[a].c,b=0,e=h.length;b<e;b++)f=h[b],f.type.global||this.b.rn(f.type)&&this.Rw(f);a=0;for(c=this.S.length;a<c;a++){h=this.S[a].c;b=0;for(e=h.length;b<e;b++)f=h[b],f.type.global||this.b.Te(f);this.b.Cb();H(h);this.S[a].Ff=!0}a=0;for(c=this.b.n.length;a<c;a++)if(h=this.b.n[a],!(h.global||h.ba.Ge||h.ba.vk||h.A)){b=0;for(e=h.c.length;b<
e;b++)this.b.Te(h.c[b]);this.b.Cb()}p=!1;this.b.em=!1};new ua(0,0,0,0);d.prototype.Zc=function(a){var c,b=a,e=!1,h=!this.b.pc;h&&(this.b.Sj||(this.b.Sj=document.createElement("canvas"),c=this.b.Sj,c.width=this.b.F,c.height=this.b.D,this.b.wp=c.getContext("2d"),e=!0),c=this.b.Sj,b=this.b.wp,c.width!==this.b.F&&(c.width=this.b.F,e=!0),c.height!==this.b.D&&(c.height=this.b.D,e=!0),e&&(b.webkitImageSmoothingEnabled=this.b.O,b.mozImageSmoothingEnabled=this.b.O,b.msImageSmoothingEnabled=this.b.O,b.imageSmoothingEnabled=
this.b.O));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.al&&!this.To()&&b.clearRect(0,0,this.b.F,this.b.D);var f,d,e=0;for(f=this.S.length;e<f;e++)d=this.S[e],d.visible&&0<d.opacity&&11!==d.Db&&(d.c.length||!d.zc)?d.Zc(b):d.Ek();h&&a.drawImage(c,0,0,this.b.width,this.b.height)};d.prototype.ze=function(a){a.Fq(!0);this.b.Wa||(this.b.Wa=a.Dc(this.b.F,this.b.D,this.b.O));if(this.b.Wa.Wc!==this.b.F||this.b.Wa.Vc!==this.b.D)a.deleteTexture(this.b.Wa),this.b.Wa=a.Dc(this.b.F,this.b.D,
this.b.O);a.Mc(this.b.Wa);this.b.pc||a.be(this.b.F,this.b.D);var c,b;for(c=this.S.length-1;0<=c;--c)b=this.S[c],b.visible&&1===b.opacity&&b.ee&&0===b.Db&&(b.c.length||!b.zc)?b.ze(a):b.Ek();a.Fq(!1)};d.prototype.Fb=function(a){var c=0<this.ea.length||this.b.Fg||!this.b.pc||this.b.ta;if(c){this.b.Wa||(this.b.Wa=a.Dc(this.b.F,this.b.D,this.b.O));if(this.b.Wa.Wc!==this.b.F||this.b.Wa.Vc!==this.b.D)a.deleteTexture(this.b.Wa),this.b.Wa=a.Dc(this.b.F,this.b.D,this.b.O);a.Mc(this.b.Wa);this.b.pc||a.be(this.b.F,
this.b.D)}else this.b.Wa&&(a.Mc(null),a.deleteTexture(this.b.Wa),this.b.Wa=null);this.b.al&&!this.To()&&a.clear(0,0,0,0);var b,e,h;b=0;for(e=this.S.length;b<e;b++)h=this.S[b],h.visible&&0<h.opacity&&(h.c.length||!h.zc)?h.Fb(a):h.Ek();c&&(0===this.ea.length||1===this.ea.length&&this.b.pc?(1===this.ea.length?(c=this.ea[0].index,a.ec(this.ea[0].Ya),a.xg(null,1/this.b.F,1/this.b.D,0,0,1,1,this.scale,this.m,0,0,this.b.F/2,this.b.D/2,this.b.yb.Z,this.Ga[c]),a.kk(this.ea[0].Ya)&&(this.b.ga=!0)):a.ec(0),
this.b.pc||a.be(this.b.width,this.b.height),a.Mc(null),a.Eq(!1),a.Ne(1),a.Pb(this.b.Wa),a.Cq(),a.yd(),a.jd(),c=this.b.width/2,b=this.b.height/2,a.$h(-c,b,c,b,c,-b,-c,-b),a.Pb(null),a.Eq(!0)):this.Tm(a,null,null,null))};d.prototype.bh=function(){return 0<this.ea.length||this.b.Fg||!this.b.pc||this.b.ta?this.b.Wa:null};d.prototype.Qo=function(){var a=this.S[0].Gc(),c,b,e;c=1;for(b=this.S.length;c<b;c++)e=this.S[c],(0!==e.Xd||0!==e.Yd)&&e.Gc()<a&&(a=e.Gc());return a};d.prototype.Aq=function(a){if(!this.er){var c=
1/this.Qo()*this.b.F/2;a>this.width-c&&(a=this.width-c);a<c&&(a=c)}this.scrollX!==a&&(this.scrollX=a,this.b.ga=!0)};d.prototype.bn=function(a){if(!this.er){var c=1/this.Qo()*this.b.D/2;a>this.height-c&&(a=this.height-c);a<c&&(a=c)}this.scrollY!==a&&(this.scrollY=a,this.b.ga=!0)};d.prototype.Ft=function(){this.Aq(this.scrollX);this.bn(this.scrollY)};d.prototype.Tm=function(a,c,b,e){var h=b?b.ea:c?c.ea:this.ea,f=1,d=0,r=0,k=0,p=this.b.F,n=this.b.D;b?(f=b.j.Gc(),d=b.j.Ma(),r=b.j.wa,k=b.j.xa,p=b.j.Ea,
n=b.j.Da):c&&(f=c.Gc(),d=c.Ma(),r=c.wa,k=c.xa,p=c.Ea,n=c.Da);var q=this.b.Il,l,u,J,x,O=0,I=1,R,v=this.b.F,Q=this.b.D,T=v/2,B=Q/2,G=c?c.Zd:this.Zd,z=c?c.Sm:this.Sm,L=0,S=0,M=0,F=0,P=v,ma=v,U=Q,Aa=Q,na=J=0;x=b?b.j.Ma():0;if(b){l=0;for(u=h.length;l<u;l++)J+=a.ov(h[l].Ya),na+=a.pv(h[l].Ya);F=b.Ta;L=c.gb(F.left,F.top,!0,!0);M=c.gb(F.left,F.top,!1,!0);P=c.gb(F.right,F.bottom,!0,!0);U=c.gb(F.right,F.bottom,!1,!0);0!==x&&(l=c.gb(F.right,F.top,!0,!0),u=c.gb(F.right,F.top,!1,!0),S=c.gb(F.left,F.bottom,!0,!0),
F=c.gb(F.left,F.bottom,!1,!0),x=Math.min(L,P,l,S),P=Math.max(L,P,l,S),L=x,x=Math.min(M,U,u,F),U=Math.max(M,U,u,F),M=x);L-=J;M-=na;P+=J;U+=na;z.left=L/v;z.top=1-M/Q;z.right=P/v;z.bottom=1-U/Q;S=L=D(L);F=M=D(M);ma=P=sa(P);Aa=U=sa(U);S-=J;F-=na;ma+=J;Aa+=na;0>L&&(L=0);0>M&&(M=0);P>v&&(P=v);U>Q&&(U=Q);0>S&&(S=0);0>F&&(F=0);ma>v&&(ma=v);Aa>Q&&(Aa=Q);G.left=L/v;G.top=1-M/Q;G.right=P/v;G.bottom=1-U/Q}else G.left=z.left=0,G.top=z.top=0,G.right=z.right=1,G.bottom=z.bottom=1;na=b&&(a.Yh(h[0].Ya)||0!==J||0!==
na||1!==b.opacity||b.type.ba.Tp)||c&&!b&&1!==c.opacity;a.Cq();if(na){q[O]||(q[O]=a.Dc(v,Q,this.b.O));if(q[O].Wc!==v||q[O].Vc!==Q)a.deleteTexture(q[O]),q[O]=a.Dc(v,Q,this.b.O);a.ec(0);a.Mc(q[O]);R=Aa-F;a.clearRect(S,Q-F-R,ma-S,R);b?b.Fb(a):(a.Pb(this.b.hb),a.Ne(c.opacity),a.yd(),a.translate(-T,-B),a.jd(),a.Lc(L,U,P,U,P,M,L,M,G));z.left=z.top=0;z.right=z.bottom=1;b&&(x=G.top,G.top=G.bottom,G.bottom=x);O=1;I=0}a.Ne(1);J=h.length-1;var Ga=a.Om(h[J].Ya)||!c&&!b&&!this.b.pc,Ea=0;l=0;for(u=h.length;l<u;l++){q[O]||
(q[O]=a.Dc(v,Q,this.b.O));if(q[O].Wc!==v||q[O].Vc!==Q)a.deleteTexture(q[O]),q[O]=a.Dc(v,Q,this.b.O);a.ec(h[l].Ya);Ea=h[l].index;a.kk(h[l].Ya)&&(this.b.ga=!0);0!=l||na?(a.xg(e,1/v,1/Q,z.left,z.top,z.right,z.bottom,f,d,r,k,(r+p)/2,(k+n)/2,this.b.yb.Z,b?b.Ga[Ea]:c?c.Ga[Ea]:this.Ga[Ea]),a.Pb(null),l!==J||Ga?(a.Mc(q[O]),R=Aa-F,x=Q-F-R,a.clearRect(S,x,ma-S,R)):(b?a.Me(b.Mb,b.Eb):c&&a.Me(c.Mb,c.Eb),a.Mc(e)),a.Pb(q[I]),a.yd(),a.translate(-T,-B),a.jd(),a.Lc(L,U,P,U,P,M,L,M,G),l!==J||Ga||a.Pb(null)):(a.Mc(q[O]),
R=Aa-F,x=Q-F-R,a.clearRect(S,x,ma-S,R),b?(a.xg(e,1/b.width,1/b.height,z.left,z.top,z.right,z.bottom,f,d,r,k,(r+p)/2,(k+n)/2,this.b.yb.Z,b.Ga[Ea]),b.Fb(a)):(a.xg(e,1/v,1/Q,0,0,1,1,f,d,r,k,(r+p)/2,(k+n)/2,this.b.yb.Z,c?c.Ga[Ea]:this.Ga[Ea]),a.Pb(c?this.b.hb:this.b.Wa),a.yd(),a.translate(-T,-B),a.jd(),a.Lc(L,U,P,U,P,M,L,M,G)),z.left=z.top=0,z.right=z.bottom=1,b&&!Ga&&(x=U,U=M,M=x));O=0===O?1:0;I=0===O?1:0}Ga&&(a.ec(0),b?a.Me(b.Mb,b.Eb):c?a.Me(c.Mb,c.Eb):this.b.pc||(a.be(this.b.width,this.b.height),T=
this.b.width/2,B=this.b.height/2,M=L=0,P=this.b.width,U=this.b.height),a.Mc(e),a.Pb(q[I]),a.yd(),a.translate(-T,-B),a.jd(),b&&1===h.length&&!na?a.Lc(L,M,P,M,P,U,L,U,G):a.Lc(L,U,P,U,P,M,L,M,G),a.Pb(null))};d.prototype.Ej=function(a){var c,b;c=0;for(b=this.S.length;c<b;c++)if(this.S[c].Y===a)return this.S[c];return null};d.prototype.Bb=function(){var a,c,b,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.m,w:this.width,h:this.height,fv:this.Tf,persist:this.Ke,fx:[],layers:{}};a=0;for(c=this.N.length;a<
c;a++)b=this.N[a],e.fx.push({name:b.name,active:b.lc,params:this.Ga[b.index]});a=0;for(c=this.S.length;a<c;a++)b=this.S[a],e.layers[b.Y.toString()]=b.Bb();return e};d.prototype.Ob=function(a){var c,b,e,h;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.m=a.a;this.width=a.w;this.height=a.h;this.Ke=a.persist;"undefined"!==typeof a.fv&&(this.Tf=a.fv);var f=a.fx;c=0;for(b=f.length;c<b;c++)if(e=this.Ml(f[c].name))e.lc=f[c].active,this.Ga[e.index]=f[c].params;this.hd();c=a.layers;for(h in c)c.hasOwnProperty(h)&&
(a=this.Ej(parseInt(h,10)))&&a.Ob(c[h])};Ib=d;l.prototype.hd=function(){H(this.ea);this.ee=!0;var a,c,b;a=0;for(c=this.N.length;a<c;a++)b=this.N[a],b.lc&&(this.ea.push(b),b.Kc||(this.ee=!1))};l.prototype.Ml=function(a){var c,b,e;c=0;for(b=this.N.length;c<b;c++)if(e=this.N[c],e.name===a)return e;return null};l.prototype.Lt=function(){var a,c,b,e,h,f;c=a=0;for(b=this.rc.length;a<b;a++){e=this.rc[a];h=this.b.n[e[1]];f=this.b.rn(h);h=!0;if(!f||this.pb.Tf){e=this.b.xe(e,this,!0);if(!e)continue;n.push(e);
e.type.global&&(h=!1,this.Vg.push(e.uid))}h&&(this.rc[c]=this.rc[a],c++)}this.rc.length=c;this.b.Cb();!this.b.k&&this.N.length&&(this.Db=this.lu);this.Tg=jb(this.Db);this.b.r&&kb(this,this.Db,this.b.r);this.fd=!0};l.prototype.ug=function(a,c){var b=Da(this.c,a);0>b||(c&&this.Ac&&a.ac&&a.ac.right>=a.ac.left&&(a.Ca(),this.Ab.update(a,a.ac,null),a.ac.set(0,0,-1,-1)),b===this.c.length-1?this.c.pop():(xa(this.c,b),this.ci(b)),this.fd=!0)};l.prototype.Pg=function(a,c){a.kd=this.c.length;this.c.push(a);
c&&this.Ac&&a.ac&&a.ua();this.fd=!0};l.prototype.Cw=function(a){this.c.unshift(a);this.ci(0)};l.prototype.iw=function(a,c,b){var e=a.rd();c=c.rd();xa(this.c,e);e<c&&c--;b&&c++;c===this.c.length?this.c.push(a):this.c.splice(c,0,a);this.ci(e<c?e:c)};l.prototype.ci=function(a){-1===this.le?this.le=a:a<this.le&&(this.le=a);this.fd=this.Ff=!0};l.prototype.un=function(){if(this.Ff){-1===this.le&&(this.le=0);var a,c,b;if(this.Ac)for(a=this.le,c=this.c.length;a<c;++a)b=this.c[a],b.kd=a,this.Ab.fw(b.ac);else for(a=
this.le,c=this.c.length;a<c;++a)this.c[a].kd=a;this.Ff=!1;this.le=-1}};l.prototype.Gc=function(a){return this.lv()*(this.b.pc||a?this.b.Qg:1)};l.prototype.lv=function(){return(this.scale*this.pb.scale-1)*this.Ci+1};l.prototype.Ma=function(){return this.Jd?0:Ka(this.pb.m+this.m)};var b=[],f=[],e=[];l.prototype.Ql=function(){this.un();this.Ab.mk(this.wa,this.xa,this.Ea,this.Da,e);if(!e.length)return k();if(1===e.length){var a=k();Ba(a,e[0]);H(e);return a}for(var c=!0;1<e.length;){for(var a=e,b=void 0,
m=void 0,h=void 0,d=void 0,p=void 0,b=0,m=a.length;b<m-1;b+=2){var h=a[b],d=a[b+1],p=k(),r=h,w=d,n=p,q=0,l=0,C=0,K=r.length,J=w.length,x=void 0,O=void 0;for(n.length=K+J;q<K&&l<J;++C)x=r[q],O=w[l],x.kd<O.kd?(n[C]=x,++q):(n[C]=O,++l);for(;q<K;++q,++C)n[C]=r[q];for(;l<J;++l,++C)n[C]=w[l];c||(u(h),u(d));f.push(p)}1===m%2&&(c?(h=k(),Ba(h,a[m-1]),f.push(h)):f.push(a[m-1]));Ba(a,f);H(f);c=!1}a=e[0];H(e);return a};l.prototype.Zc=function(a){this.xd=this.xj||1!==this.opacity||0!==this.Db;var c=this.b.canvas,
b=a,e=!1;this.xd&&(this.b.Rj||(this.b.Rj=document.createElement("canvas"),c=this.b.Rj,c.width=this.b.F,c.height=this.b.D,this.b.vp=c.getContext("2d"),e=!0),c=this.b.Rj,b=this.b.vp,c.width!==this.b.F&&(c.width=this.b.F,e=!0),c.height!==this.b.D&&(c.height=this.b.D,e=!0),e&&(b.webkitImageSmoothingEnabled=this.b.O,b.mozImageSmoothingEnabled=this.b.O,b.msImageSmoothingEnabled=this.b.O,b.imageSmoothingEnabled=this.b.O),this.zc&&b.clearRect(0,0,this.b.F,this.b.D));b.globalAlpha=1;b.globalCompositeOperation=
"source-over";this.zc||(b.fillStyle="rgb("+this.Tc[0]+","+this.Tc[1]+","+this.Tc[2]+")",b.fillRect(0,0,this.b.F,this.b.D));b.save();this.Jd=!0;var e=this.se(!0),h=this.se(!1);this.Jd=!1;this.b.wc&&(e=Math.round(e),h=Math.round(h));this.ok(e,h,b);var f=this.Gc();b.scale(f,f);b.translate(-e,-h);this.Ac?(this.sb.left=this.Ab.Sb(this.wa),this.sb.top=this.Ab.Tb(this.xa),this.sb.right=this.Ab.Sb(this.Ea),this.sb.bottom=this.Ab.Tb(this.Da),this.fd||!this.sb.Yg(this.hg)?(u(this.Ud),e=this.Ql(),this.fd=!1,
this.hg.Pf(this.sb)):e=this.Ud):e=this.c;for(var d,r=null,h=0,f=e.length;h<f;++h)d=e[h],d!==r&&(this.gu(d,b),r=d);this.Ac&&(this.Ud=e);b.restore();this.xd&&(a.globalCompositeOperation=this.Tg,a.globalAlpha=this.opacity,a.drawImage(c,0,0))};l.prototype.gu=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.Ca();var b=a.Ta;b.right<this.wa||b.bottom<this.xa||b.left>this.Ea||b.top>this.Da||(c.globalCompositeOperation=a.Tg,a.Zc(c))}};l.prototype.Ek=function(){this.Jd=!0;var a=this.se(!0),c=this.se(!1);
this.Jd=!1;this.b.wc&&(a=Math.round(a),c=Math.round(c));this.ok(a,c,null)};l.prototype.ok=function(a,c,b){var e=this.Gc();this.wa=a;this.xa=c;this.Ea=a+1/e*this.b.F;this.Da=c+1/e*this.b.D;a=this.Ma();0!==a&&(b&&(b.translate(this.b.F/2,this.b.D/2),b.rotate(-a),b.translate(this.b.F/-2,this.b.D/-2)),this.he.set(this.wa,this.xa,this.Ea,this.Da),this.he.offset((this.wa+this.Ea)/-2,(this.xa+this.Da)/-2),this.Yq.Kq(this.he,a),this.Yq.oo(this.he),this.he.offset((this.wa+this.Ea)/2,(this.xa+this.Da)/2),this.wa=
this.he.left,this.xa=this.he.top,this.Ea=this.he.right,this.Da=this.he.bottom)};l.prototype.ze=function(a){if(this.xd=this.xj){this.b.hb||(this.b.hb=a.Dc(this.b.F,this.b.D,this.b.O));if(this.b.hb.Wc!==this.b.F||this.b.hb.Vc!==this.b.D)a.deleteTexture(this.b.hb),this.b.hb=a.Dc(this.b.F,this.b.D,this.b.O);a.Mc(this.b.hb)}this.Jd=!0;var c=this.se(!0),b=this.se(!1);this.Jd=!1;this.b.wc&&(c=Math.round(c),b=Math.round(b));this.ok(c,b,null);c=this.Gc();a.yd();a.scale(c,c);a.Xm(-this.Ma());a.translate((this.wa+
this.Ea)/-2,(this.xa+this.Da)/-2);a.jd();this.Ac?(this.sb.left=this.Ab.Sb(this.wa),this.sb.top=this.Ab.Tb(this.xa),this.sb.right=this.Ab.Sb(this.Ea),this.sb.bottom=this.Ab.Tb(this.Da),this.fd||!this.sb.Yg(this.hg)?(u(this.Ud),c=this.Ql(),this.fd=!1,this.hg.Pf(this.sb)):c=this.Ud):c=this.c;for(var e,h=null,b=c.length-1;0<=b;--b)e=c[b],e!==h&&(this.iu(c[b],a),h=e);this.Ac&&(this.Ud=c);this.zc||(this.nl=this.b.Ze++,a.sk(this.nl),a.Dq(1,1,1),a.Ko(),a.Kw())};l.prototype.Fb=function(a){var b=0,e=0;if(this.xd=
this.xj||1!==this.opacity||0<this.ea.length||0!==this.Db){this.b.hb||(this.b.hb=a.Dc(this.b.F,this.b.D,this.b.O));if(this.b.hb.Wc!==this.b.F||this.b.hb.Vc!==this.b.D)a.deleteTexture(this.b.hb),this.b.hb=a.Dc(this.b.F,this.b.D,this.b.O);a.Mc(this.b.hb);this.zc&&a.clear(0,0,0,0)}this.zc||(this.b.ta?(a.sk(this.nl),a.Dq(this.Tc[0]/255,this.Tc[1]/255,this.Tc[2]/255),a.Ko(),a.Zw()):a.clear(this.Tc[0]/255,this.Tc[1]/255,this.Tc[2]/255,1));this.Jd=!0;var f=this.se(!0),b=this.se(!1);this.Jd=!1;this.b.wc&&
(f=Math.round(f),b=Math.round(b));this.ok(f,b,null);f=this.Gc();a.yd();a.scale(f,f);a.Xm(-this.Ma());a.translate((this.wa+this.Ea)/-2,(this.xa+this.Da)/-2);a.jd();this.Ac?(this.sb.left=this.Ab.Sb(this.wa),this.sb.top=this.Ab.Tb(this.xa),this.sb.right=this.Ab.Sb(this.Ea),this.sb.bottom=this.Ab.Tb(this.Da),this.fd||!this.sb.Yg(this.hg)?(u(this.Ud),b=this.Ql(),this.fd=!1,this.hg.Pf(this.sb)):b=this.Ud):b=this.c;var h,d,k=null,e=0;for(h=b.length;e<h;++e)d=b[e],d!==k&&(this.hu(b[e],a),k=d);this.Ac&&(this.Ud=
b);this.xd&&(b=this.ea.length?this.ea[0].Ya:0,e=this.ea.length?this.ea[0].index:0,0===this.ea.length||1===this.ea.length&&!a.Om(b)&&1===this.opacity?(1===this.ea.length?(a.ec(b),a.xg(this.pb.bh(),1/this.b.F,1/this.b.D,0,0,1,1,f,this.Ma(),this.wa,this.xa,(this.wa+this.Ea)/2,(this.xa+this.Da)/2,this.b.yb.Z,this.Ga[e]),a.kk(b)&&(this.b.ga=!0)):a.ec(0),a.Mc(this.pb.bh()),a.Ne(this.opacity),a.Pb(this.b.hb),a.Me(this.Mb,this.Eb),a.yd(),a.jd(),f=this.b.F/2,b=this.b.D/2,a.$h(-f,b,f,b,f,-b,-f,-b),a.Pb(null)):
this.pb.Tm(a,this,null,this.pb.bh()))};l.prototype.hu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ca();var e=a.Ta;e.right<this.wa||e.bottom<this.xa||e.left>this.Ea||e.top>this.Da||(b.sk(a.Ze),a.lr?this.ju(a,b):(b.ec(0),b.Me(a.Mb,a.Eb),a.Fb(b)))}};l.prototype.iu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ca();var e=a.Ta;e.right<this.wa||e.bottom<this.xa||e.left>this.Ea||e.top>this.Da||(a.Ze=this.b.Ze++,0===a.Db&&1===a.opacity&&a.ee&&a.ze&&(b.sk(a.Ze),a.ze(b)))}};l.prototype.ju=
function(a,b){var e=a.ea[0].Ya,f=a.ea[0].index,h=this.Gc();if(1!==a.ea.length||b.Om(e)||b.Ew(e)||(a.m||a.j.Ma())&&b.Yh(e)||1!==a.opacity||a.type.ba.Tp)this.pb.Tm(b,this,a,this.xd?this.b.hb:this.pb.bh()),b.yd(),b.scale(h,h),b.Xm(-this.Ma()),b.translate((this.wa+this.Ea)/-2,(this.xa+this.Da)/-2),b.jd();else{b.ec(e);b.Me(a.Mb,a.Eb);b.kk(e)&&(this.b.ga=!0);var d=0,k=0,r=0,p=0;b.Yh(e)&&(e=a.Ta,d=this.gb(e.left,e.top,!0,!0),k=this.gb(e.left,e.top,!1,!0),r=this.gb(e.right,e.bottom,!0,!0),e=this.gb(e.right,
e.bottom,!1,!0),d=d/windowWidth,k=1-k/windowHeight,r=r/windowWidth,p=1-e/windowHeight);b.xg(this.xd?this.b.hb:this.pb.bh(),1/a.width,1/a.height,d,k,r,p,h,this.Ma(),this.wa,this.xa,(this.wa+this.Ea)/2,(this.xa+this.Da)/2,this.b.yb.Z,a.Ga[f]);a.Fb(b)}};l.prototype.se=function(a){var b=0,e=0,f=this.b.devicePixelRatio;this.b.of&&(b*=f,e*=f);var f=this.b.kq,h=this.b.lq,f=(this.pb.scrollX-f)*this.Xd+f,h=(this.pb.scrollY-h)*this.Yd+h,d,k,r=1/this.Gc(!1);d=f-this.b.F*r/2;k=h-this.b.D*r/2;d+=b*r;k+=e*r;e=
this.Ma();0!==e&&(d-=f,k-=h,b=Math.cos(e),e=Math.sin(e),r=d*b-k*e,k=k*b+d*e,d=r+f,k+=h);return a?d:k};l.prototype.gb=function(a,b,e,f){var h=this.b.kq,d=this.b.lq,k=(this.pb.scrollX-h)*this.Xd+h,r=(this.pb.scrollY-d)*this.Yd+d,d=k,h=r,p=this.Ma();if(0!==p){a-=k;b-=r;var n=Math.cos(-p),p=Math.sin(-p),q=a*n-b*p;b=b*n+a*p;a=q+k;b+=r}k=1/this.Gc(!f);f?(d-=this.b.F*k/2,h-=this.b.D*k/2):(d-=this.b.width*k/2,h-=this.b.height*k/2);d=(a-d)/k;h=(b-h)/k;a=this.b.devicePixelRatio;this.b.of&&!f&&(d/=a,h/=a);return e?
d:h};l.prototype.Bb=function(){var a,b,e,f={s:this.scale,a:this.m,vl:this.wa,vt:this.xa,vr:this.Ea,vb:this.Da,v:this.visible,bc:this.Tc,t:this.zc,px:this.Xd,py:this.Yd,o:this.opacity,zr:this.Ci,fx:[],cg:this.Vg,instances:[]};a=0;for(b=this.N.length;a<b;a++)e=this.N[a],f.fx.push({name:e.name,active:e.lc,params:this.Ga[e.index]});return f};l.prototype.Ob=function(a){var b,e,f;this.scale=a.s;this.m=a.a;this.wa=a.vl;this.xa=a.vt;this.Ea=a.vr;this.Da=a.vb;this.visible=a.v;this.Tc=a.bc;this.zc=a.t;this.Xd=
a.px;this.Yd=a.py;this.opacity=a.o;this.Ci=a.zr;this.Vg=a.cg||[];Ba(this.rc,this.Rq);var h=new da;b=0;for(f=this.Vg.length;b<f;++b)h.add(this.Vg[b]);e=b=0;for(f=this.rc.length;b<f;++b)h.contains(this.rc[b][2])||(this.rc[e]=this.rc[b],++e);za(this.rc,e);e=a.fx;b=0;for(f=e.length;b<f;b++)if(a=this.Ml(e[b].name))a.lc=e[b].active,this.Ga[a.index]=e[b].params;this.hd();this.c.sort(q);this.Ff=!0};Wb=l})();
(function(){function d(a,b){var c,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<e;c++)if(a[c]!==b[c])return!1;return!0}}function q(a,b){return a.index-b.index}function l(a){var b,c,e,f;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>=h.length&&(h.length=a.length+1);h[a.length]||(h[a.length]=[]);f=h[a.length];b=0;for(c=f.length;b<c;b++)if(e=f[b],d(a,e))return e;f.push(a);return a}
function k(a,b){this.b=a;this.br={};this.Co={};this.Wl=!1;this.Xo=new da;this.wl=[];this.bl=[];this.name=b[0];var c=b[1];this.Ce=[];var e,h;e=0;for(h=c.length;e<h;e++)this.Zo(c[e],null,this.Ce)}function u(a){this.type=a;this.c=[];this.H=[];this.U=!0}function n(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.X=[];this.Oe=[];this.Uo=this.Bk=this.mn=this.$l=this.group=this.gn=!1;this.cb=[];this.Bc=[];this.Nc=[];this.fh="";this.Uf=this.$l=this.group=!1;this.ej=null;c[1]&&(this.fh=c[1][1].toLowerCase(),
this.group=!0,this.$l=!!c[1][0],this.ej=[],this.Uf=this.$l,this.b.Kf.push(this),this.b.gh[this.fh]=this);this.vc=c[2];this.Y=c[4];this.group||(this.b.mo[this.Y.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var h=new Xb(this,e[a]);h.index=a;this.cb.push(h);this.fo(h.type)}e=c[6];a=0;for(b=e.length;a<b;a++)h=new Yb(this,e[a]),h.index=a,this.Bc.push(h);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Zo(c[a],this,this.Nc);this.Mj=!1;this.cb.length&&(this.Mj=null==this.cb[0].type&&
this.cb[0].wb==X.prototype.d.Hn)}function p(a,b){var c,e,h;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Kb))for(c=0,e=a.gc.length;c<e;c++)h=a.gc[c],a!==h&&-1===b.indexOf(h)&&b.push(h)}function b(a,b){this.oc=a;this.sheet=a.sheet;this.b=a.b;this.P=[];this.Ia=[];this.la={};this.index=-1;this.Ng=!1;this.wb=this.b.me(b[1]);this.trigger=0<b[3];this.Bo=2===b[3];this.ud=b[4];this.Wf=b[5];this.Xv=b[6];this.Y=b[7];this.b.ve[this.Y.toString()]=this;-1===b[0]?(this.type=null,this.Xa=this.Zm,this.Ve=null,this.Uc=-1):
(this.type=this.b.n[b[0]],this.Xa=this.Xv?this.Pw:this.Ym,b[2]?(this.Ve=this.type.Bj(b[2]),this.Uc=this.type.Jl(b[2])):(this.Ve=null,this.Uc=-1),this.oc.parent&&this.oc.parent.uk());this.Bo&&(this.Xa=this.Qw);if(10===b.length){var c,e,h=b[9];c=0;for(e=h.length;c<e;c++){var f=new Zb(this,h[c]);this.P.push(f)}this.Ia.length=h.length}}function f(a,b){this.oc=a;this.sheet=a.sheet;this.b=a.b;this.P=[];this.Ia=[];this.la={};this.index=-1;this.Ng=!1;this.wb=this.b.me(b[1]);-1===b[0]?(this.type=null,this.Xa=
this.Zm,this.Ve=null,this.Uc=-1):(this.type=this.b.n[b[0]],this.Xa=this.Ym,b[2]?(this.Ve=this.type.Bj(b[2]),this.Uc=this.type.Jl(b[2])):(this.Ve=null,this.Uc=-1));this.Y=b[3];this.b.oe[this.Y.toString()]=this;if(6===b.length){var c,e,h=b[5];c=0;for(e=h.length;c<e;c++){var f=new Zb(this,h[c]);this.P.push(f)}this.Ia.length=h.length}}function e(){N++;t.length===N&&t.push(new $b);return t[N]}function a(a,b){this.Jc=a;this.oc=a.oc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.od=null;this.fe=0;this.get=
null;this.uo=0;this.pb=null;this.key=0;this.object=null;this.index=0;this.ri=this.Af=this.ri=this.Af=this.Fo=this.df=this.si=null;this.Pc=!1;var c,e,h;switch(b[0]){case 0:case 7:this.od=new ac(this,b[1]);this.fe=0;this.get=this.uv;break;case 1:this.od=new ac(this,b[1]);this.fe=0;this.get=this.vv;break;case 5:this.od=new ac(this,b[1]);this.fe=0;this.get=this.zv;break;case 3:case 8:this.uo=b[1];this.get=this.sv;break;case 6:this.pb=this.b.pm[b[1]];this.get=this.Av;break;case 9:this.key=b[1];this.get=
this.yv;break;case 4:this.object=this.b.n[b[1]];this.get=this.Bv;this.oc.fo(this.object);this.Jc instanceof Yb?this.oc.uk():this.oc.parent&&this.oc.parent.uk();break;case 10:this.index=b[1];a.type.A?(this.get=this.wv,this.Pc=!0):this.get=this.xv;break;case 11:this.si=b[1];this.df=null;this.get=this.tv;break;case 2:case 12:this.Fo=b[1];this.get=this.rv;break;case 13:for(this.get=this.Cv,this.Af=[],this.ri=[],c=1,e=b.length;c<e;c++)h=new Zb(this.Jc,b[c]),this.Af.push(h),this.ri.push(0)}}function c(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.X=[];this.name=c[1];this.ti=c[2];this.Zl=c[3];this.zh=!!c[4];this.Lj=!!c[5];this.Y=c[6];this.b.Hg[this.Y.toString()]=this;this.data=this.Zl;this.parent?(this.xf=this.zh||this.Lj?-1:this.b.ax++,this.b.Bt.push(this)):(this.xf=-1,this.b.At.push(this))}function g(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.X=[];this.kh=null;this.Jv=c[1];this.lc=!0}function m(){this.Tq=[];this.reset(null)}var h=[];k.prototype.toString=function(){return this.name};k.prototype.Zo=
function(a,b,c){switch(a[0]){case 0:a=new bc(this,b,a);if(a.vc)for(c.push(a),c=0,b=a.cb.length;c<b;c++)a.cb[c].trigger&&this.$o(a,c);else a.jp()?this.$o(a,0):c.push(a);break;case 1:a=new Tb(this,b,a);c.push(a);break;case 2:a=new cc(this,b,a),c.push(a)}};k.prototype.Sa=function(){var a,b;a=0;for(b=this.Ce.length;a<b;a++)this.Ce[a].Sa(a<b-1&&this.Ce[a+1].Mj)};k.prototype.sn=function(){H(this.wl);H(this.bl);this.eo(this);H(this.bl)};k.prototype.eo=function(a){var b,c,e,h,f=a.wl,g=a.bl,m=this.Xo.Se();
b=0;for(c=m.length;b<c;++b)e=m[b],h=e.kh,!e.lc||a===h||-1<g.indexOf(h)||(g.push(h),h.eo(a),f.push(h))};k.prototype.Xa=function(a){this.b.ey||(this.Wl=!0,a||(this.b.im=!0));var b,c;b=0;for(c=this.Ce.length;b<c;b++){var e=this.Ce[b];e.Xa();this.b.ml(e.X);this.b.Ee&&this.b.Cb()}a||(this.b.im=!1)};k.prototype.$o=function(a,b){a.vc||this.b.Ck.push(a);var c,e,h=a.cb[b],f;h.type?f=h.type.name:f="system";var g=(c=h.Bo)?this.Co:this.br;g[f]||(g[f]=[]);f=g[f];g=h.wb;if(c){if(h.P.length&&(h=h.P[0],1===h.type&&
2===h.od.type)){h=h.od.value.toLowerCase();c=0;for(e=f.length;c<e;c++)if(f[c].method==g){c=f[c].Zg;c[h]?c[h].push([a,b]):c[h]=[[a,b]];return}c={};c[h]=[[a,b]];f.push({method:g,Zg:c})}}else{c=0;for(e=f.length;c<e;c++)if(f[c].method==g){f[c].Zg.push([a,b]);return}Y&&g===Y.prototype.d.If?f.unshift({method:g,Zg:[[a,b]]}):f.push({method:g,Zg:[[a,b]]})}};Jb=k;u.prototype.So=function(){return this.U?this.type.c.length:this.c.length};u.prototype.Zb=function(){return this.U?this.type.c:this.c};u.prototype.tg=
function(a){a&&(a.b.Ha().Ka.vc?(this.U&&(H(this.c),Ba(this.H,a.type.c),this.U=!1),a=this.H.indexOf(a),-1!==a&&(this.c.push(this.H[a]),this.H.splice(a,1))):(this.U=!1,H(this.c),this.c[0]=a))};rb=u;window._c2hh_="452B435306E1242151A43DBBE2F7065CB487A3E9";n.prototype.Sa=function(a){var b,c=this.parent;if(this.group)for(this.Bk=!0;c;){if(!c.group){this.Bk=!1;break}c=c.parent}this.mn=!this.jp()&&(!this.parent||this.parent.group&&this.parent.Bk);this.Uo=!!a;this.Oe=this.X.slice(0);for(c=this.parent;c;){a=
0;for(b=c.X.length;a<b;a++)this.zt(c.X[a]);c=c.parent}this.X=l(this.X);this.Oe=l(this.Oe);a=0;for(b=this.cb.length;a<b;a++)this.cb[a].Sa();a=0;for(b=this.Bc.length;a<b;a++)this.Bc[a].Sa();a=0;for(b=this.Nc.length;a<b;a++)this.Nc[a].Sa(a<b-1&&this.Nc[a+1].Mj)};n.prototype.Uw=function(a){if(this.Uf!==!!a){this.Uf=!!a;var b;a=0;for(b=this.ej.length;a<b;++a)this.ej[a].gr();0<b&&this.b.ma.cf&&this.b.ma.cf.sn()}};n.prototype.fo=function(a){p(a,this.X)};n.prototype.zt=function(a){p(a,this.Oe)};n.prototype.uk=
function(){this.gn=!0;this.parent&&this.parent.uk()};n.prototype.jp=function(){return this.cb.length?this.cb[0].trigger:!1};n.prototype.Xa=function(){var a,b,c=!1,e=this.b,h=this.b.Ha();h.Ka=this;var f=this.cb;this.Mj||(h.Al=!1);if(this.vc){0===f.length&&(c=!0);h.Ua=0;for(a=f.length;h.Ua<a;h.Ua++)b=f[h.Ua],b.trigger||(b=b.Xa())&&(c=!0);(h.sf=c)&&this.pk()}else{h.Ua=0;for(a=f.length;h.Ua<a;h.Ua++)if(b=f[h.Ua].Xa(),!b){h.sf=!1;this.mn&&e.Ee&&e.Cb();return}h.sf=!0;this.pk()}this.nu(h)};n.prototype.nu=
function(a){a.sf&&this.Uo&&(a.Al=!0);this.mn&&this.b.Ee&&this.b.Cb()};n.prototype.Nw=function(a){this.b.Ha().Ka=this;this.cb[a].Xa()&&(this.pk(),this.b.Ha().sf=!0)};n.prototype.pk=function(){var a=this.b.Ha(),b;a.Ub=0;for(b=this.Bc.length;a.Ub<b;a.Ub++)if(this.Bc[a.Ub].Xa())return;this.zq()};n.prototype.Lw=function(){var a=this.b.Ha(),b;for(b=this.Bc.length;a.Ub<b;a.Ub++)if(this.Bc[a.Ub].Xa())return;this.zq()};n.prototype.zq=function(){if(this.Nc.length){var a,b,c,e,h=this.Nc.length-1;this.b.lk(this);
if(this.gn)for(a=0,b=this.Nc.length;a<b;a++)c=this.Nc[a],(e=!this.Bk||!this.group&&a<h)&&this.b.Le(c.X),c.Xa(),e?this.b.dd(c.X):this.b.ml(c.X);else for(a=0,b=this.Nc.length;a<b;a++)this.Nc[a].Xa();this.b.gk()}};n.prototype.Ow=function(){var a=this.b.Ha();a.Ka=this;var b=!1,c;a.Ua=0;for(c=this.cb.length;a.Ua<c;a.Ua++)if(this.cb[a.Ua].Xa())b=!0;else if(!this.vc)return!1;return this.vc?b:!0};n.prototype.$d=function(){this.b.ef++;var a=this.b.Ha().Ua,b=this.b.lk(this);if(!this.vc)for(b.Ua=a+1,a=this.cb.length;b.Ua<
a;b.Ua++)if(!this.cb[b.Ua].Xa())return this.b.gk(),!1;this.pk();this.b.gk();return!0};n.prototype.Sv=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.cb[b].type===a.type)return!1;return!0};bc=n;b.prototype.Sa=function(){var a,b,c;a=0;for(b=this.P.length;a<b;a++)c=this.P[a],c.Sa(),c.Pc&&(this.Ng=!0)};b.prototype.Qw=function(){return!0};b.prototype.Zm=function(){var a,b;a=0;for(b=this.P.length;a<b;a++)this.Ia[a]=this.P[a].get();return Ua(this.wb.apply(this.b.Bd,this.Ia),this.Wf)};
b.prototype.Pw=function(){var a,b;a=0;for(b=this.P.length;a<b;a++)this.Ia[a]=this.P[a].get();a=this.wb.apply(this.Ve?this.Ve:this.type,this.Ia);this.type.Sc();return a};b.prototype.Ym=function(){var a,b,c,e,h,f,g,m,d=this.type,k=d.R(),t=this.oc.vc&&!this.trigger;b=0;var p=d.Kb,n=d.A,q=d.Md,l=this.Uc,u=-1<l,N=this.Ng,z=this.P,L=this.Ia,S=this.Wf,M=this.wb,F;if(N)for(b=0,h=z.length;b<h;++b)f=z[b],f.Pc||(L[b]=f.get(0));else for(b=0,h=z.length;b<h;++b)L[b]=z[b].get(0);if(k.U){H(k.c);H(k.H);F=d.c;a=0;
for(e=F.length;a<e;++a){m=F[a];if(N)for(b=0,h=z.length;b<h;++b)f=z[b],f.Pc&&(L[b]=f.get(a));u?(b=0,n&&(b=m.type.Sf[q]),b=M.apply(m.M[l+b],L)):b=M.apply(m,L);(g=Ua(b,S))?k.c.push(m):t&&k.H.push(m)}d.finish&&d.finish(!0);k.U=!1;d.Sc();return k.So()}c=0;F=(g=t&&!this.oc.Sv(this))?k.H:k.c;var P=!1;a=0;for(e=F.length;a<e;++a){m=F[a];if(N)for(b=0,h=z.length;b<h;++b)f=z[b],f.Pc&&(L[b]=f.get(a));u?(b=0,n&&(b=m.type.Sf[q]),b=M.apply(m.M[l+b],L)):b=M.apply(m,L);if(Ua(b,S))if(P=!0,g){if(k.c.push(m),p)for(b=
0,h=m.siblings.length;b<h;b++)f=m.siblings[b],f.type.R().c.push(f)}else{F[c]=m;if(p)for(b=0,h=m.siblings.length;b<h;b++)f=m.siblings[b],f.type.R().c[c]=f;c++}else if(g){F[c]=m;if(p)for(b=0,h=m.siblings.length;b<h;b++)f=m.siblings[b],f.type.R().H[c]=f;c++}else if(t&&(k.H.push(m),p))for(b=0,h=m.siblings.length;b<h;b++)f=m.siblings[b],f.type.R().H.push(f)}za(F,c);if(p)for(n=d.gc,a=0,e=n.length;a<e;a++)m=n[a].R(),g?za(m.H,c):za(m.c,c);c=P;if(g&&!P)for(a=0,e=k.c.length;a<e;a++){m=k.c[a];if(N)for(b=0,h=
z.length;b<h;b++)f=z[b],f.Pc&&(L[b]=f.get(a));b=u?M.apply(m.M[l],L):M.apply(m,L);if(Ua(b,S)){P=!0;break}}d.finish&&d.finish(c||t);return t?P:k.So()};Xb=b;f.prototype.Sa=function(){var a,b,c;a=0;for(b=this.P.length;a<b;a++)c=this.P[a],c.Sa(),c.Pc&&(this.Ng=!0)};f.prototype.Zm=function(){var a=this.b,b,c,e=this.P,h=this.Ia;b=0;for(c=e.length;b<c;++b)h[b]=e[b].get();return this.wb.apply(a.Bd,h)};f.prototype.Ym=function(){var a=this.type,b=this.Uc,c=a.Md,e=this.Ng,h=this.P,f=this.Ia,g=this.wb,m=a.R().Zb(),
a=a.A,d=-1<b,k,t,p,n,q,l;if(e)for(t=0,n=h.length;t<n;++t)q=h[t],q.Pc||(f[t]=q.get(0));else for(t=0,n=h.length;t<n;++t)f[t]=h[t].get(0);k=0;for(p=m.length;k<p;++k){l=m[k];if(e)for(t=0,n=h.length;t<n;++t)q=h[t],q.Pc&&(f[t]=q.get(k));d?(t=0,a&&(t=l.type.Sf[c]),g.apply(l.M[b+t],f)):g.apply(l,f)}return!1};Yb=f;var t=[],N=-1;a.prototype.Sa=function(){var a,b;if(11===this.type)this.df=this.b.Oo(this.si,this.oc.parent);else if(13===this.type)for(a=0,b=this.Af.length;a<b;a++)this.Af[a].Sa();this.od&&this.od.Sa()};
a.prototype.gw=function(a){this.Pc||!a||a.ba.vk||(this.Pc=!0)};a.prototype.Iq=function(){this.Pc=!0};a.prototype.uv=function(a){this.fe=a||0;a=e();this.od.get(a);N--;return a.data};a.prototype.vv=function(a){this.fe=a||0;a=e();this.od.get(a);N--;return A(a.data)?a.data:""};a.prototype.Bv=function(){return this.object};a.prototype.sv=function(){return this.uo};a.prototype.zv=function(a){this.fe=a||0;a=e();this.od.get(a);N--;return a.ob()?this.b.kv(a.data):this.b.jv(a.data)};a.prototype.Av=function(){return this.pb};
a.prototype.yv=function(){return this.key};a.prototype.xv=function(){return this.index};a.prototype.wv=function(a){a=a||0;var b=this.Jc.type,c=null,c=b.R(),e=c.Zb();if(e.length)c=e[a%e.length].type;else if(c.H.length)c=c.H[a%c.H.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.tj[b.Md]};a.prototype.tv=function(){return this.df};a.prototype.rv=function(){return this.Fo};a.prototype.Cv=function(){var a,b;a=0;for(b=this.Af.length;a<b;a++)this.ri[a]=this.Af[a].get();
return this.ri};Zb=a;c.prototype.Sa=function(){this.X=l(this.X)};c.prototype.de=function(a){var b=this.b.No();this.parent&&!this.zh&&b?(this.xf>=b.length&&(b.length=this.xf+1),b[this.xf]=a):this.data=a};c.prototype.jf=function(){var a=this.b.No();return!this.parent||this.zh||!a||this.Lj?this.data:this.xf>=a.length||"undefined"===typeof a[this.xf]?this.Zl:a[this.xf]};c.prototype.Xa=function(){!this.parent||this.zh||this.Lj||this.de(this.Zl)};Tb=c;g.prototype.toString=function(){return"include:"+this.kh.toString()};
g.prototype.Sa=function(){this.kh=this.b.Cl[this.Jv];this.sheet.Xo.add(this);this.X=l(this.X);for(var a=this.parent;a;)a.group&&a.ej.push(this),a=a.parent;this.gr()};g.prototype.Xa=function(){this.parent&&this.b.Zh(this.b.n);this.kh.Wl||this.kh.Xa(!0);this.parent&&this.b.dd(this.b.n)};g.prototype.gr=function(){for(var a=this.parent;a;){if(a.group&&!a.Uf){this.lc=!1;return}a=a.parent}this.lc=!0};cc=g;m.prototype.reset=function(a){this.Ka=a;this.Ub=this.Ua=0;H(this.Tq);this.Al=this.sf=!1};m.prototype.gm=
function(){return this.Ka.gn?!0:this.Ua<this.Ka.cb.length-1?!!this.Ka.X.length:!1};Sb=m})();
(function(){function d(d,b){this.Jc=d;this.b=d.b;this.type=b[0];this.get=[this.Eu,this.Au,this.Nu,this.Qu,this.pu,this.Ou,this.Iu,this.xu,this.Hu,this.Mu,this.qu,this.Lu,this.yu,this.Ju,this.Fu,this.Gu,this.Bu,this.Cu,this.wu,this.Pu,this.Ku,this.Du,this.vu,this.zu][this.type];var f=null;this.Vd=this.P=this.Ia=this.wb=this.Ak=this.second=this.first=this.value=null;this.Uc=-1;this.$c=null;this.mr=-1;this.df=this.si=null;this.wg=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new ac(d,b[1]);break;case 18:this.first=new ac(d,b[1]);this.second=new ac(d,b[2]);this.Ak=new ac(d,b[3]);break;case 19:this.wb=this.b.me(b[1]);this.wb!==X.prototype.g.random&&this.wb!==X.prototype.g.to||this.Jc.Iq();this.Ia=[];this.P=[];3===b.length?(f=b[2],this.Ia.length=f.length+1):this.Ia.length=1;break;case 20:this.Vd=this.b.n[b[1]];this.Uc=-1;this.wb=this.b.me(b[2]);this.wg=b[3];oc&&this.wb===oc.prototype.g.Dn&&this.Jc.Iq();b[4]?this.$c=new ac(d,b[4]):this.$c=null;this.Ia=[];this.P=[];6===b.length?
(f=b[5],this.Ia.length=f.length+1):this.Ia.length=1;break;case 21:this.Vd=this.b.n[b[1]];this.wg=b[2];b[3]?this.$c=new ac(d,b[3]):this.$c=null;this.mr=b[4];break;case 22:this.Vd=this.b.n[b[1]];this.Vd.Bj(b[2]);this.Uc=this.Vd.Jl(b[2]);this.wb=this.b.me(b[3]);this.wg=b[4];b[5]?this.$c=new ac(d,b[5]):this.$c=null;this.Ia=[];this.P=[];7===b.length?(f=b[6],this.Ia.length=f.length+1):this.Ia.length=1;break;case 23:this.si=b[1],this.df=null}this.Jc.gw(this.Vd);4<=this.type&&17>=this.type&&(this.first=new ac(d,
b[1]),this.second=new ac(d,b[2]));if(f){var e,a;e=0;for(a=f.length;e<a;e++)this.P.push(new ac(d,f[e]))}}function q(){++n;u.length===n&&u.push(new $b);return u[n]}function l(d,b,f){var e,a;e=0;for(a=d.length;e<a;++e)d[e].get(f),b[e+1]=f.data}function k(d,b){this.type=d||dc.Hf;this.data=b||0;this.yf=null;this.type==dc.Hf&&(this.data=Math.floor(this.data))}d.prototype.Sa=function(){23===this.type&&(this.df=this.Jc.b.Oo(this.si,this.Jc.oc.parent));this.first&&this.first.Sa();this.second&&this.second.Sa();
this.Ak&&this.Ak.Sa();this.$c&&this.$c.Sa();if(this.P){var d,b;d=0;for(b=this.P.length;d<b;d++)this.P[d].Sa()}};var u=[],n=-1;d.prototype.Pu=function(d){var b=this.P,f=this.Ia;f[0]=d;d=q();l(b,f,d);--n;this.wb.apply(this.b.Bd,f)};d.prototype.Ku=function(d){var b=this.Vd,f=this.Ia,e=this.P,a=this.$c,c=this.wb,g=this.Jc.fe,m=b.R(),h=m.Zb();if(!h.length)if(m.H.length)h=m.H;else{this.wg?d.na(""):d.K(0);return}f[0]=d;d.yf=b;d=q();l(e,f,d);a&&(a.get(d),d.ob()&&(g=d.data,h=b.c));--n;b=h.length;if(g>=b||
g<=-b)g%=b;0>g&&(g+=b);c.apply(h[g],f)};d.prototype.vu=function(d){var b=this.Vd,f=this.Ia,e=this.P,a=this.$c,c=this.Uc,g=this.wb,m=this.Jc.fe,h=b.R(),k=h.Zb();if(!k.length)if(h.H.length)k=h.H;else{this.wg?d.na(""):d.K(0);return}f[0]=d;d.yf=b;d=q();l(e,f,d);a&&(a.get(d),d.ob()&&(m=d.data,k=b.c));--n;e=k.length;if(m>=e||m<=-e)m%=e;0>m&&(m+=e);m=k[m];k=0;b.A&&(k=m.type.Sf[b.Md]);g.apply(m.M[c+k],f)};d.prototype.Du=function(d){var b=this.$c,f=this.Vd,e=this.mr,a=this.Jc.fe,c=f.R(),g=c.Zb();if(!g.length)if(c.H.length)g=
c.H;else{this.wg?d.na(""):d.K(0);return}if(b){c=q();b.get(c);if(c.ob()){a=c.data;g=f.c;0!==g.length&&(a%=g.length,0>a&&(a+=g.length));a=f.Ol(a);f=a.fb[e];A(f)?d.na(f):d.C(f);--n;return}--n}b=g.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=g[a];g=0;f.A&&(g=a.type.tj[f.Md]);f=a.fb[e+g];A(f)?d.na(f):d.C(f)};d.prototype.Eu=function(d){d.type=dc.Hf;d.data=this.value};d.prototype.Au=function(d){d.type=dc.Gf;d.data=this.value};d.prototype.Nu=function(d){d.type=dc.String;d.data=this.value};d.prototype.Qu=function(d){this.first.get(d);
d.ob()&&(d.data=-d.data)};d.prototype.pu=function(d){this.first.get(d);var b=q();this.second.get(b);d.ob()&&b.ob()&&(d.data+=b.data,b.ag()&&d.lg());--n};d.prototype.Ou=function(d){this.first.get(d);var b=q();this.second.get(b);d.ob()&&b.ob()&&(d.data-=b.data,b.ag()&&d.lg());--n};d.prototype.Iu=function(d){this.first.get(d);var b=q();this.second.get(b);d.ob()&&b.ob()&&(d.data*=b.data,b.ag()&&d.lg());--n};d.prototype.xu=function(d){this.first.get(d);var b=q();this.second.get(b);d.ob()&&b.ob()&&(d.data/=
b.data,d.lg());--n};d.prototype.Hu=function(d){this.first.get(d);var b=q();this.second.get(b);d.ob()&&b.ob()&&(d.data%=b.data,b.ag()&&d.lg());--n};d.prototype.Mu=function(d){this.first.get(d);var b=q();this.second.get(b);d.ob()&&b.ob()&&(d.data=Math.pow(d.data,b.data),b.ag()&&d.lg());--n};d.prototype.qu=function(d){this.first.get(d);var b=q();this.second.get(b);b.eg()||d.eg()?this.su(d,b):this.ru(d,b);--n};d.prototype.su=function(d,b){d.eg()&&b.eg()?this.uu(d,b):this.tu(d,b)};d.prototype.uu=function(d,
b){d.data+=b.data};d.prototype.tu=function(d,b){d.eg()?d.data+=(Math.round(1E10*b.data)/1E10).toString():d.na(d.data.toString()+b.data)};d.prototype.ru=function(d,b){d.K(d.data&&b.data?1:0)};d.prototype.Lu=function(d){this.first.get(d);var b=q();this.second.get(b);d.ob()&&b.ob()&&(d.data||b.data?d.K(1):d.K(0));--n};d.prototype.wu=function(d){this.first.get(d);d.data?this.second.get(d):this.Ak.get(d)};d.prototype.yu=function(d){this.first.get(d);var b=q();this.second.get(b);d.K(d.data===b.data?1:0);
--n};d.prototype.Ju=function(d){this.first.get(d);var b=q();this.second.get(b);d.K(d.data!==b.data?1:0);--n};d.prototype.Fu=function(d){this.first.get(d);var b=q();this.second.get(b);d.K(d.data<b.data?1:0);--n};d.prototype.Gu=function(d){this.first.get(d);var b=q();this.second.get(b);d.K(d.data<=b.data?1:0);--n};d.prototype.Bu=function(d){this.first.get(d);var b=q();this.second.get(b);d.K(d.data>b.data?1:0);--n};d.prototype.Cu=function(d){this.first.get(d);var b=q();this.second.get(b);d.K(d.data>=
b.data?1:0);--n};d.prototype.zu=function(d){var b=this.df.jf();ia(b)?d.C(b):d.na(b)};ac=d;k.prototype.ag=function(){return this.type===dc.Gf};k.prototype.ob=function(){return this.type===dc.Hf||this.type===dc.Gf};k.prototype.eg=function(){return this.type===dc.String};k.prototype.lg=function(){this.ag()||(this.eg()&&(this.data=parseFloat(this.data)),this.type=dc.Gf)};k.prototype.K=function(d){this.type=dc.Hf;this.data=Math.floor(d)};k.prototype.C=function(d){this.type=dc.Gf;this.data=d};k.prototype.na=
function(d){this.type=dc.String;this.data=d};k.prototype.yg=function(d){ia(d)?(this.type=dc.Gf,this.data=d):A(d)?(this.type=dc.String,this.data=d.toString()):(this.type=dc.Hf,this.data=0)};$b=k;dc={Hf:0,Gf:1,String:2}})();function X(d){this.b=d;this.fc=[]}
X.prototype.Bb=function(){var d={},q,l,k,u,n,p,b,f;d.waits=[];var e=d.waits,a;q=0;for(l=this.fc.length;q<l;q++){p=this.fc[q];a={t:p.time,st:p.Pq,s:p.en,ev:p.Rf.Y,sm:[],sols:{}};p.Rf.Bc[p.Ub]&&(a.act=p.Rf.Bc[p.Ub].Y);k=0;for(u=p.X.length;k<u;k++)a.sm.push(p.X[k].Y);for(n in p.Qb)if(p.Qb.hasOwnProperty(n)){b=this.b.n[parseInt(n,10)];f={sa:p.Qb[n].qk,insts:[]};k=0;for(u=p.Qb[n].Od.length;k<u;k++)f.insts.push(p.Qb[n].Od[k].uid);a.sols[b.Y.toString()]=f}e.push(a)}return d};
X.prototype.Ob=function(d){d=d.waits;var q,l,k,u,n,p,b,f,e,a,c;H(this.fc);q=0;for(l=d.length;q<l;q++)if(p=d[q],f=this.b.mo[p.ev.toString()]){e=-1;k=0;for(u=f.Bc.length;k<u;k++)if(f.Bc[k].Y===p.act){e=k;break}if(-1!==e){b={Qb:{},X:[],xl:!1};b.time=p.t;b.Pq=p.st||"";b.en=!!p.s;b.Rf=f;b.Ub=e;k=0;for(u=p.sm.length;k<u;k++)(f=this.b.Gj(p.sm[k]))&&b.X.push(f);for(n in p.sols)if(p.sols.hasOwnProperty(n)&&(f=this.b.Gj(parseInt(n,10)))){e=p.sols[n];a={qk:e.sa,Od:[]};k=0;for(u=e.insts.length;k<u;k++)(c=this.b.Fj(e.insts[k]))&&
a.Od.push(c);b.Qb[f.index.toString()]=a}this.fc.push(b)}}};
(function(){function d(){}function q(){}function l(){}var k=X.prototype;d.prototype.Kr=function(){return!0};d.prototype.Sn=function(){return!0};d.prototype.us=function(){return!0};d.prototype.yr=function(b,a,c){return ec(b,a,c)};d.prototype.qt=function(){var b=this.b.Ha(),a=b.Ka,c=b.gm(),b=this.b.Pm();if(c)for(c=0;!b.pa;c++)this.b.Le(a.X),b.index=c,a.$d()||(b.pa=!0),this.b.dd(a.X);else for(c=0;!b.pa;c++)b.index=c,a.$d()||(b.pa=!0);this.b.Mm();return!1};d.prototype.Mr=function(b,a,c){var f=this.b.Ha(),
d=f.Ka,f=f.gm();b=this.b.Pm(b);if(c<a)if(f)for(;a>=c&&!b.pa;--a)this.b.Le(d.X),b.index=a,d.$d(),this.b.dd(d.X);else for(;a>=c&&!b.pa;--a)b.index=a,d.$d();else if(f)for(;a<=c&&!b.pa;++a)this.b.Le(d.X),b.index=a,d.$d(),this.b.dd(d.X);else for(;a<=c&&!b.pa;++a)b.index=a,d.$d();this.b.Mm();return!1};var u=[],n=-1;d.prototype.Nr=function(b){var a=b.R();n++;u.length===n&&u.push([]);var c=u[n];Ba(c,a.Zb());var f=this.b.Ha(),d=f.Ka,h=f.gm(),f=this.b.Pm(),k,q,r,p,l,y,E=b.Kb;if(h)for(h=0,k=c.length;h<k&&!f.pa;h++){this.b.Le(d.X);
p=c[h];a=b.R();a.U=!1;H(a.c);a.c[0]=p;if(E)for(q=0,r=p.siblings.length;q<r;q++)l=p.siblings[q],y=l.type.R(),y.U=!1,H(y.c),y.c[0]=l;f.index=h;d.$d();this.b.dd(d.X)}else for(a.U=!1,H(a.c),h=0,k=c.length;h<k&&!f.pa;h++){p=c[h];a.c[0]=p;if(E)for(q=0,r=p.siblings.length;q<r;q++)l=p.siblings[q],y=l.type.R(),y.U=!1,H(y.c),y.c[0]=l;f.index=h;d.$d()}H(c);this.b.Mm();n--;return!1};d.prototype.Es=function(b,a,c,f){var d,h,k,q;if(b){n++;u.length===n&&u.push([]);var r=u[n],p=b.R();Ba(r,p.Zb());p.U&&H(p.H);var l=
this.b.Cj();k=d=0;for(h=r.length;d<h;d++)q=r[d],r[k]=q,a=l.P[1].get(d),f=l.P[3].get(d),ec(a,c,f)?k++:p.H.push(q);za(r,k);p.U=!1;Ba(p.c,r);H(r);n--;b.Sc();return!!p.c.length}};d.prototype.Fs=function(b,a){if(!b)return!1;var c=b.R(),f=c.Zb();a=D(a);if(0>a||a>=f.length)return!1;c.tg(f[a]);b.Sc();return!0};d.prototype.Er=function(b,a,c){return ec(b.jf(),a,c)};d.prototype.Xr=function(b){return(b=this.b.gh[b.toLowerCase()])&&b.Uf};d.prototype.bs=function(){return"undefined"!==typeof cr_is_preview};d.prototype.Ds=
function(b){if(!b||!b.c.length)return!1;b.R().U=!0;b.Sc();return!0};d.prototype.Hn=function(){var b=this.b.Ha();return b.Al?!1:!b.sf};d.prototype.Tn=function(){return!0};d.prototype.ps=function(){return!0};d.prototype.Jr=function(){return!!this.b.k};d.prototype.Uk=function(){return!0};d.prototype.vs=function(){return!0};d.prototype.Tk=function(){return!0};var p=[];d.prototype.Gs=function(b,a,c){if(!b)return!1;var f=b.R(),d=f.Zb(),h=this.b.Ha().Ka.vc,k=this.b.Cj(),n,r;f.U?(Ba(p,d),H(f.H),f.U=!1,H(f.c)):
h?(Ba(p,f.H),H(f.H)):(Ba(p,d),H(f.c));d=0;for(h=p.length;d<h;++d)n=p[d],n.Ca(),(r=Ua(n.Xb(a,c),k.Wf))?f.c.push(n):f.H.push(n);b.Sc();return Ua(!!f.c.length,k.Wf)};d.prototype.Lk=function(b,a,c){return Pa(V(b),V(c))<=V(a)};d.prototype.Wr=function(b,a){return Ra(V(b),V(a))};d.prototype.Ur=function(b,a,c){b=Ma(b);a=Ma(a);c=Ma(c);return Ra(c,a)?Ra(b,a)&&!Ra(b,c):!(!Ra(b,a)&&Ra(b,c))};k.d=new d;q.prototype.Pr=function(b){this.b.Bh||this.b.Sg||(this.b.Sg=b)};q.prototype.Hr=function(b,a,c,f){if(a&&b&&(a=
this.b.ql(b,a,c,f))){this.b.sc++;var d;this.b.trigger(Object.getPrototypeOf(b.ba).d.Cd,a);if(a.Kb)for(c=0,f=a.siblings.length;c<f;c++)d=a.siblings[c],this.b.trigger(Object.getPrototypeOf(d.type.ba).d.Cd,d);this.b.sc--;b=b.R();b.U=!1;H(b.c);b.c[0]=a;if(a.Kb)for(c=0,f=a.siblings.length;c<f;c++)d=a.siblings[c],b=d.type.R(),b.U=!1,H(b.c),b.c[0]=d}};q.prototype.Os=function(b){this.b.ma.bn(b)};q.prototype.et=function(b,a){0===b.ti?ia(a)?b.de(a):b.de(parseFloat(a)):1===b.ti&&b.de(a.toString())};q.prototype.rr=
function(b,a){0===b.ti?ia(a)?b.de(b.jf()+a):b.de(b.jf()+parseFloat(a)):1===b.ti&&b.de(b.jf()+a.toString())};q.prototype.nt=function(b,a){0===b.ti&&(ia(a)?b.de(b.jf()-a):b.de(b.jf()-parseFloat(a)))};q.prototype.dt=function(b){0>b&&(b=0);this.b.Ef=b};var b=[],f=[];q.prototype.pt=function(e){if(!(0>e)){var a,c,g,d=this.b.Ha(),h;b.length?h=b.pop():h={Qb:{},X:[]};h.xl=!1;h.time=this.b.yb.Z+e;h.Pq="";h.en=!1;h.Rf=d.Ka;h.Ub=d.Ub+1;e=0;for(a=this.b.n.length;e<a;e++)g=this.b.n[e],c=g.R(),c.U&&-1===d.Ka.X.indexOf(g)||
(h.X.push(g),g=void 0,f.length?g=f.pop():g={Od:[]},g.qk=!1,g.qk=c.U,Ba(g.Od,c.c),h.Qb[e.toString()]=g);this.fc.push(h);return!0}};q.prototype.Ws=function(b,a){b&&!!a!==!!b.zc&&(b.zc=!!a,this.b.ga=!0)};q.prototype.lt=function(){0>this.b.kg||(this.b.Ll().pa=!0)};k.e=new q;l.prototype["int"]=function(b,a){A(a)?(b.K(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.K(a)};l.prototype["float"]=function(b,a){A(a)?(b.C(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.C(a)};l.prototype.aw=function(b,a){b.K(a.length||
0)};l.prototype.random=function(b,a,c){void 0===c?b.C(Math.random()*a):b.C(Math.random()*(c-a)+a)};l.prototype.sqrt=function(b,a){b.C(Math.sqrt(a))};l.prototype.abs=function(b,a){b.C(Math.abs(a))};l.prototype.round=function(b,a){b.K(Math.round(a))};l.prototype.floor=function(b,a){b.K(Math.floor(a))};l.prototype.ceil=function(b,a){b.K(Math.ceil(a))};l.prototype.sin=function(b,a){b.C(Math.sin(V(a)))};l.prototype.cos=function(b,a){b.C(Math.cos(V(a)))};l.prototype.tan=function(b,a){b.C(Math.tan(V(a)))};
l.prototype.asin=function(b,a){b.C(Ia(Math.asin(a)))};l.prototype.acos=function(b,a){b.C(Ia(Math.acos(a)))};l.prototype.atan=function(b,a){b.C(Ia(Math.atan(a)))};l.prototype.exp=function(b,a){b.C(Math.exp(a))};l.prototype.log10=function(b,a){b.C(Math.log(a)/Math.LN10)};l.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,f,d;c=2;for(f=arguments.length;c<f;c++)d=arguments[c],"number"===typeof d&&a<d&&(a=d);b.C(a)};l.prototype.min=function(b){var a=arguments[1];"number"!==
typeof a&&(a=0);var c,f,d;c=2;for(f=arguments.length;c<f;c++)d=arguments[c],"number"===typeof d&&a>d&&(a=d);b.C(a)};l.prototype.Ae=function(b){b.C(this.b.Ae)};l.prototype.Ef=function(b){b.C(this.b.Ef)};l.prototype.time=function(b){b.C(this.b.yb.Z)};l.prototype.li=function(b){b.K(this.b.li)};l.prototype.ck=function(b){b.K(this.b.ck)};l.prototype.Gl=function(b){b.K(this.b.Gl)};l.prototype.ew=function(b,a){var c,f;if(this.b.Ph.length)if(a){for(f=this.b.kg;0<=f;--f)if(c=this.b.Ph[f],c.name===a){b.K(c.index);
return}b.K(0)}else c=this.b.Ll(),b.K(c?c.index:-1);else b.K(0)};l.prototype.Pt=function(b,a,c,f,d){b.C(Ta(a,c,f,d))};l.prototype.m=function(b,a,c,f,d){b.C(Ia(Na(a,c,f,d)))};l.prototype.jw=function(b){b.na("\n")};l.prototype.qx=function(b,a){b.na(A(a)?a.toUpperCase():"")};l.prototype.$v=function(b){b.K(this.b.ma.width)};l.prototype.Zv=function(b){b.K(this.b.ma.height)};l.prototype.left=function(b,a,c){b.na(A(a)?a.substr(0,c):"")};l.prototype.right=function(b,a,c){b.na(A(a)?a.substr(a.length-c):"")};
l.prototype.hw=function(b,a,c,f){b.na(A(a)?a.substr(c,f):"")};l.prototype.kx=function(b,a,c,f){A(a)&&A(f)?(a=a.split(f),c=D(c),0>c||c>=a.length?b.na(""):b.na(a[c])):b.na("")};l.prototype.lx=function(b,a,c){A(a)&&a.length?b.K(a.split(c).length):b.K(0)};l.prototype.replace=function(b,a,c,f){A(a)&&A(c)&&A(f)?b.na(a.replace(new RegExp(fb(c),"gi"),f)):b.na(A(a)?a:"")};l.prototype.trim=function(b,a){b.na(A(a)?a.trim():"")};l.prototype.vw=function(b){b.C(ra)};l.prototype.to=function(b){var a=D(Math.random()*
(arguments.length-1));b.yg(arguments[a+1])};l.prototype.xx=function(b,a,c){var f=0>a?"-":"";0>a&&(a=-a);c=c-a.toString().length;for(var d=0;d<c;d++)f+="0";b.na(f+a.toString())};l.prototype.ol=function(b){b.C(this.b.ol/1E3)};l.prototype.ig=function(b){b.C(this.b.ig)};l.prototype.Lv=function(b){b.C(Infinity)};k.g=new l;k.Mw=function(){var e,a,c,d,m,h,k=this.b.Ha();e=0;for(c=this.fc.length;e<c;e++){d=this.fc[e];if(-1===d.time){if(!d.en)continue}else if(d.time>this.b.yb.Z)continue;k.Ka=d.Rf;k.Ub=d.Ub;
k.Ua=0;for(a in d.Qb)d.Qb.hasOwnProperty(a)&&(m=this.b.n[parseInt(a,10)].R(),h=d.Qb[a],m.U=h.qk,Ba(m.c,h.Od),m=h,H(m.Od),f.push(m));d.Rf.Lw();this.b.ml(d.X);d.xl=!0}a=e=0;for(c=this.fc.length;e<c;e++)d=this.fc[e],this.fc[a]=d,d.xl?(Wa(d.Qb),H(d.X),b.push(d)):a++;za(this.fc,a)}})();
(function(){qb=function(d,l){var k=d[1],u=d[3],n=d[4],p=d[5],b=d[6],f=d[7],e=d[8];l.d||(l.d={});l.e||(l.e={});l.g||(l.g={});var a=l.d,c=l.e,g=l.g;u&&(a.Ei=function(a,b){return ec(this.x,a,b)},a.Gn=function(a,b){return ec(this.y,a,b)},a.Cx=function(){var a=this.j;this.Ca();var b=this.Ta;return!(b.right<a.wa||b.bottom<a.xa||b.left>a.Ea||b.top>a.Da)},a.Kn=function(){this.Ca();var a=this.Ta,b=this.b.ma;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Jx=function(a,b,c){var e=this.R(),f=
e.Zb();if(!f.length)return!1;var d=f[0],g=d,k=Ta(d.x,d.y,b,c),n,p,q;n=1;for(p=f.length;n<p;n++)if(d=f[n],q=Ta(d.x,d.y,b,c),0===a&&q<k||1===a&&q>k)k=q,g=d;e.tg(g);return!0},c.Jf=function(a){this.x!==a&&(this.x=a,this.ua())},c.Ni=function(a){this.y!==a&&(this.y=a,this.ua())},c.Zs=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.ua()},c.$n=function(a,b){var c=a.mv(this);if(c){var e;c.hf?(e=c.hf(b,!0),c=c.hf(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.ua()}},c.Gx=
function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.ua())},c.Fx=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.ua())},g.$k=function(a){a.C(this.x)},g.co=function(a){a.C(this.y)},g.Ae=function(a){a.C(this.b.Dj(this))});n&&(a.zx=function(a,b){return ec(this.width,a,b)},a.yx=function(a,b){return ec(this.height,a,b)},c.Mi=function(a){this.width!==a&&(this.width=a,this.ua())},c.Ji=function(a){this.height!==a&&(this.height=a,this.ua())},c.Lg=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.ua()},g.Mg=function(a){a.C(this.width)},g.Fi=function(a){a.C(this.height)},g.An=function(a){this.Ca();a.C(this.Ta.left)},g.Cn=function(a){this.Ca();a.C(this.Ta.top)},g.Bn=function(a){this.Ca();a.C(this.Ta.right)},g.zn=function(a){this.Ca();a.C(this.Ta.bottom)});p&&(a.Lk=function(a,b){return Pa(this.m,V(b))<=V(a)},a.Wr=function(a){return Ra(this.m,V(a))},a.Ur=function(a,b){var c=Ma(a),e=Ma(b),f=Ka(this.m);return Ra(e,c)?Ra(f,c)&&
!Ra(f,e):!(!Ra(f,c)&&Ra(f,e))},c.Yn=function(a){a=V(Ja(a));isNaN(a)||this.m===a||(this.m=a,this.ua())},c.Mx=function(a){0===a||isNaN(a)||(this.m+=V(a),this.m=Ka(this.m),this.ua())},c.Nx=function(a){0===a||isNaN(a)||(this.m-=V(a),this.m=Ka(this.m),this.ua())},c.Ox=function(a,b){var c=Qa(this.m,V(b),V(a));isNaN(c)||this.m===c||(this.m=c,this.ua())},c.Px=function(a,b,c){a=Qa(this.m,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.m===a||(this.m=a,this.ua())},c.Qx=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.m===c||(this.m=c,this.ua())},g.sr=function(a){a.C(La(this.m))});k||(a.Di=function(a,b,c){return ec(this.fb[a],b,c)},a.Nk=function(a){return this.fb[a]},a.Kx=function(a,b){var c=this.R(),e=c.Zb();if(!e.length)return!1;var f=e[0],d=f,g=f.fb[b],k,n,p;k=1;for(n=e.length;k<n;k++)if(f=e[k],p=f.fb[b],0===a&&p<g||1===a&&p>g)g=p,d=f;c.tg(d);return!0},a.Xn=function(a){var b,c,e,f,d;if(this.b.Cj().Wf){d=this.R();if(d.U)for(d.U=!1,H(d.c),H(d.H),e=this.c,b=0,c=e.length;b<c;b++)f=e[b],
f.uid===a?d.H.push(f):d.c.push(f);else{e=b=0;for(c=d.c.length;b<c;b++)f=d.c[b],d.c[e]=f,f.uid===a?d.H.push(f):e++;za(d.c,e)}this.Sc();return!!d.c.length}f=this.b.Fj(a);if(!f)return!1;d=this.R();if(!d.U&&-1===d.c.indexOf(f))return!1;if(this.A)for(a=f.type.za,b=0,c=a.length;b<c;b++){if(a[b]===this)return d.tg(f),this.Sc(),!0}else if(f.type===this)return d.tg(f),this.Sc(),!0;return!1},a.Cd=function(){return!0},a.Pn=function(){return!0},c.Ki=function(a,b){var c=this.fb;ia(c[a])?c[a]=ia(b)?b:parseFloat(b):
A(c[a])&&(c[a]=A(b)?b:b.toString())},c.Kk=function(a,b){var c=this.fb;ia(c[a])?c[a]=ia(b)?c[a]+b:c[a]+parseFloat(b):A(c[a])&&(c[a]=A(b)?c[a]+b:c[a]+b.toString())},c.Zk=function(a,b){var c=this.fb;ia(c[a])&&(c[a]=ia(b)?c[a]-b:c[a]-parseFloat(b))},c.Vk=function(a,b){this.fb[a]=b?1:0},c.Rx=function(a){this.fb[a]=1-this.fb[a]},c.Kg=function(){this.b.Te(this)},c.hs||(c.hs=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.Uj(this,b,!0);this.Dd&&this.Dd();if(this.M)for(a=0,b=this.M.length;a<
b;++a)c=this.M[a],c.Dd&&c.Dd()}),g.Gr=function(a){var b=a.yf.c.length,c,e,f;c=0;for(e=this.b.Xc.length;c<e;c++)f=this.b.Xc[c],a.yf.A?0<=f.type.za.indexOf(a.yf)&&b++:f.type===a.yf&&b++;a.K(b)},g.Hs=function(a){a.K(a.yf.R().Zb().length)},g.bo=function(a){a.K(this.uid)},g.Ax=function(a){a.K(this.eh())},g.Mk||(g.Mk=function(a){a.na(JSON.stringify(this.b.$m(this,!0)))}));b&&(a.Ln=function(){return this.visible},c.Li=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ga=!0)},a.Fn=function(a,b){return ec(lb(100*
this.opacity),a,b)},c.Zn=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ga=!0)},g.Opacity=function(a){a.C(lb(100*this.opacity))});f&&(a.Bx=function(a){return a?this.j===a:!1},a.Lx=function(a){var b=this.R(),c=b.Zb();if(!c.length)return!1;var e=c[0],f=e,d,g;d=1;for(g=c.length;d<g;d++)if(e=c[d],0===a){if(e.j.index>f.j.index||e.j.index===f.j.index&&e.rd()>f.rd())f=e}else if(e.j.index<f.j.index||e.j.index===f.j.index&&e.rd()<f.rd())f=e;b.tg(f);return!0},c.ls=function(){var a=
this.j,b=a.c;b.length&&b[b.length-1]===this||(a.ug(this,!1),a.Pg(this,!1),this.b.ga=!0)},c.js=function(){var a=this.j,b=a.c;b.length&&b[0]===this||(a.ug(this,!1),a.Cw(this),this.b.ga=!0)},c.ks=function(a){a&&a!=this.j&&(this.j.ug(this,!0),this.j=a,a.Pg(this,!0),this.b.ga=!0)},c.wt=function(a,b){var c=0===a;if(b){var e=b.dv(this);e&&e.uid!==this.uid&&(this.j.index!==e.j.index&&(this.j.ug(this,!0),this.j=e.j,e.j.Pg(this,!0)),this.j.iw(this,e,c),this.b.ga=!0)}},g.Ex=function(a){a.K(this.j.Xp)},g.Dx=
function(a){a.na(this.j.name)},g.Sx=function(a){a.K(this.rd())});e&&(c.Us=function(a,b){if(this.b.k){var c=this.type.Nl(b);if(!(0>c)){var e=1===a;this.ne[c]!==e&&(this.ne[c]=e,this.hd(),this.b.ga=!0)}}},c.Wk=function(a,b,c){if(this.b.k){var e=this.type.Nl(a);0>e||(a=this.type.N[e],e=this.Ga[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.k.qv(a.Ya,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.lc&&(this.b.ga=!0))))}})};Kb=function(){this.jl=this.el=!0;this.type.Ri=!0;this.b.ga=!0;var d,l,k=this.fl;d=0;for(l=k.length;d<
l;++d)k[d](this);this.j.Ac&&this.Ca()};Lb=function(d){d&&this.fl.push(d)};Nb=function(){if(this.el){var d=this.Ta,l=this.Wb;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.Ib*this.width,-this.Jb*this.height);this.m?(d.offset(-this.x,-this.y),l.Kq(d,this.m),l.offset(this.x,this.y),l.oo(d)):l.di(d);d.normalize();this.el=!1;this.ox()}};var d=new ua(0,0,0,0);Ob=function(){if(this.j.Ac){var q=this.j.Ab,l=this.Ta;d.set(q.Sb(l.left),q.Tb(l.top),q.Sb(l.right),q.Tb(l.bottom));this.ac.Yg(d)||
(this.ac.right<this.ac.left?q.update(this,null,d):q.update(this,this.ac,d),this.ac.Pf(d),this.j.fd=!0)}};Pb=function(){if(this.jl&&this.We){this.Ca();var q=this.type.dj,l=this.Ta;d.set(q.Sb(l.left),q.Tb(l.top),q.Sb(l.right),q.Tb(l.bottom));this.we.Yg(d)||(this.we.right<this.we.left?q.update(this,null,d):q.update(this,this.we,d),this.we.Pf(d),this.jl=!1)}};Mb=function(d,l){return this.Ta.Xb(d,l)&&this.Wb.Xb(d,l)?this.ja&&!this.ja.$f()?(this.ja.Mf(this.width,this.height,this.m),this.ja.Xb(d-this.x,
l-this.y)):!0:!1};Gb=function(){this.type.Dk();return this.mf};Qb=function(){this.j.un();return this.kd};Rb=function(){H(this.ea);var d,l,k,u=!0;d=0;for(l=this.ne.length;d<l;d++)this.ne[d]&&(k=this.type.N[d],this.ea.push(k),k.Kc||(u=!1));this.lr=!!this.ea.length;this.ee=u};Hb=function(){return"Inst"+this.sq};tb=function(d){if(d&&d.Kb&&d.type!=this){var l,k,u;l=0;for(k=d.siblings.length;l<k;l++)if(u=d.siblings[l],u.type==this)return u}d=this.R().Zb();return d.length?d[0]:null};ub=function(d){var l=
this.R().Zb();return l.length?l[d.eh()%l.length]:null};sb=function(){if(this.Bg&&!this.A){var d,l;d=0;for(l=this.c.length;d<l;d++)this.c[d].mf=d;var k=d,u=this.b.Xc;d=0;for(l=u.length;d<l;++d)u[d].type===this&&(u[d].mf=k++);this.Bg=!1}};Eb=function(d){if(d<this.c.length)return this.c[d];d-=this.c.length;var l=this.b.Xc,k,u;k=0;for(u=l.length;k<u;++k)if(l[k].type===this){if(0===d)return l[k];--d}return null};vb=function(){return this.ge[this.nd]};wb=function(){this.nd++;this.nd===this.ge.length?this.ge.push(new rb(this)):
(this.ge[this.nd].U=!0,H(this.ge[this.nd].H))};xb=function(){this.nd++;this.nd===this.ge.length&&this.ge.push(new rb(this));var d=this.ge[this.nd],l=this.ge[this.nd-1];l.U?(d.U=!0,H(d.H)):(d.U=!1,Ba(d.c,l.c),Ba(d.H,l.H))};yb=function(){this.nd--};zb=function(d){var l,k,u,n,p,b=0;if(!this.A)for(l=0,k=this.za.length;l<k;l++)for(p=this.za[l],u=0,n=p.Fa.length;u<n;u++){if(d===p.Fa[u].name)return this.la.lastBehIndex=b,p.Fa[u];b++}l=0;for(k=this.Fa.length;l<k;l++){if(d===this.Fa[l].name)return this.la.lastBehIndex=
b,this.Fa[l];b++}return null};Ab=function(d){return this.Bj(d)?this.la.lastBehIndex:-1};Bb=function(d){var l,k;l=0;for(k=this.N.length;l<k;l++)if(this.N[l].name===d)return l;return-1};Cb=function(){if(this.Kb&&!this.A){var d,l,k,u,n,p,b;this.Dk();p=this.R();var f=p.U,e=(d=this.b.Ha())&&d.Ka&&d.Ka.vc;d=0;for(l=this.gc.length;d<l;d++)if(n=this.gc[d],n!==this&&(n.Dk(),b=n.R(),b.U=f,!f)){H(b.c);k=0;for(u=p.c.length;k<u;++k)b.c[k]=n.Ol(p.c[k].mf);if(e)for(H(b.H),k=0,u=p.H.length;k<u;++k)b.H[k]=n.Ol(p.H[k].mf)}}};
Fb=function(){return"Type"+this.Y};ec=function(d,l,k){if("undefined"===typeof d||"undefined"===typeof k)return!1;switch(l){case 0:return d===k;case 1:return d!==k;case 2:return d<k;case 3:return d<=k;case 4:return d>k;case 5:return d>=k;default:return!1}}})();
var mc={tint:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float red;\nuniform lowp float green;\nuniform lowp float blue;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\ngl_FragColor = front * vec4(red, green, blue, 1.0);\n}",qj:0,rj:0,rl:!1,Kc:!0,cl:!1,P:[["red",0,1],["green",0,1],["blue",0,1]]}};function pc(d){this.b=d}
(function(){function d(){}function q(){}function l(){}var k=!1,u=null,n=null,p="",b=pc.prototype;b.ca=function(a){this.ba=a;this.b=a.b};b.ca.prototype.G=function(){};b.V=function(a){this.type=a;this.b=a.b;this.md=this.Sd="";this.$b=0;this.timeout=-1;if(k=this.b.Qd)u=require("path"),n=require("fs"),p=u.dirname((window.process||nw.process).execPath)+"\\"};var f=b.V.prototype,e=null;window.C2_AJAX_DCSide=function(a,b,c){e&&("success"===a?(e.md=b,e.Sd=c,e.b.trigger(pc.prototype.d.Gi,e)):"error"===a?(e.md=
b,e.b.trigger(pc.prototype.d.Sk,e)):"progress"===a&&(e.$b=c,e.md=b,e.b.trigger(pc.prototype.d.Vn,e)))};f.G=function(){e=this};f.Bb=function(){return{lastData:this.Sd}};f.Ob=function(a){this.Sd=a.lastData;this.md="";this.$b=0};var a={},c="";f.Vt=function(b,e){if(this.b.xb)AppMobi.webview.execute('C2_AJAX_WebSide("'+b+'", "'+e+'", "GET", null);');else{var f=this,d=null,l=function(){f.md=b;f.b.trigger(pc.prototype.d.Sk,f)},r=function(){if(k){var a=p+e;n.existsSync(a)?n.readFile(a,{encoding:"utf8"},function(a,
b){a?l():(f.Sd=b.replace(/\r\n/g,"\n"),f.b.trigger(pc.prototype.d.Gi,f))}):l()}else l()},u=function(a){a.lengthComputable&&(f.$b=a.loaded/a.total,f.md=b,f.b.trigger(pc.prototype.d.Vn,f))};try{this.b.Rd?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;d.onreadystatechange=function(){4===d.readyState&&(f.md=b,d.responseText?f.Sd=d.responseText.replace(/\r\n/g,"\n"):f.Sd="",400<=d.status?f.b.trigger(pc.prototype.d.Sk,f):k&&!f.Sd.length||!k&&0===d.status&&!f.Sd.length||f.b.trigger(pc.prototype.d.Gi,
f))};this.b.Rd||(d.onerror=r,d.ontimeout=r,d.onabort=r,d.onprogress=u);d.open("GET",e);!this.b.Rd&&0<=this.timeout&&"undefined"!==typeof d.timeout&&(d.timeout=this.timeout);try{d.responseType="text"}catch(q){}if(d.setRequestHeader){for(var y in a)if(a.hasOwnProperty(y))try{d.setRequestHeader(y,a[y])}catch(E){}a={}}if(c&&d.overrideMimeType){try{d.overrideMimeType(c)}catch(C){}c=""}d.send()}catch(K){r()}}};d.prototype.Gi=function(a){return mb(a,this.md)};d.prototype.Sk=function(a){return mb(a,this.md)};
d.prototype.Vn=function(a){return mb(a,this.md)};b.d=new d;q.prototype.Ns=function(a,b){this.Vt(a,b)};b.e=new q;l.prototype.gs=function(a){a.na(this.Sd)};b.g=new l})();function qc(d){this.b=d}
(function(){function d(){return b.length?b.pop():[]}function q(f){var e,a;e=0;for(a=f.length;e<a;e++)Array.isArray(f[e])&&q(f[e]);H(f);b.push(f)}function l(){}function k(){}function u(){}var n=qc.prototype;n.ca=function(b){this.ba=b;this.b=b.b};n.ca.prototype.G=function(){};n.V=function(b){this.type=b;this.b=b.b};var p=n.V.prototype,b=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});p.G=function(){this.qa=this.u[0];this.ya=this.u[1];this.La=
this.u[2];this.xc||(this.mc=d());var b=this.mc;b.length=this.qa;var e,a,c;for(e=0;e<this.qa;e++)for(b[e]||(b[e]=d()),b[e].length=this.ya,a=0;a<this.ya;a++)for(b[e][a]||(b[e][a]=d()),b[e][a].length=this.La,c=0;c<this.La;c++)b[e][a][c]=0;this.Ho=[];this.Io=[];this.Jo=[];this.Nd=-1};p.zf=function(){var b;for(b=0;b<this.qa;b++)q(this.mc[b]);H(this.mc)};p.nc=function(b,e,a){b=Math.floor(b);e=Math.floor(e);a=Math.floor(a);return isNaN(b)||0>b||b>this.qa-1||isNaN(e)||0>e||e>this.ya-1||isNaN(a)||0>a||a>this.La-
1?0:this.mc[b][e][a]};p.set=function(b,e,a,c){b=Math.floor(b);e=Math.floor(e);a=Math.floor(a);isNaN(b)||0>b||b>this.qa-1||isNaN(e)||0>e||e>this.ya-1||isNaN(a)||0>a||a>this.La-1||(this.mc[b][e][a]=c)};p.$u=function(){return JSON.stringify({c2array:!0,size:[this.qa,this.ya,this.La],data:this.mc})};p.Bb=function(){return{size:[this.qa,this.ya,this.La],data:this.mc}};p.Ob=function(b){var e=b.size;this.qa=e[0];this.ya=e[1];this.La=e[2];this.mc=b.data};p.be=function(b,e,a){0>b&&(b=0);0>e&&(e=0);0>a&&(a=
0);if(this.qa!==b||this.ya!==e||this.La!==a){this.qa=b;this.ya=e;this.La=a;var c,g,k=this.mc;k.length=b;for(b=0;b<this.qa;b++)for(ha(k[b])&&(k[b]=d()),k[b].length=e,c=0;c<this.ya;c++)for(ha(k[b][c])&&(k[b][c]=d()),k[b][c].length=a,g=0;g<this.La;g++)ha(k[b][c][g])&&(k[b][c][g]=0)}};p.Vx=function(){return 0<=this.Nd&&this.Nd<this.Ho.length?this.Ho[this.Nd]:0};p.Wx=function(){return 0<=this.Nd&&this.Nd<this.Io.length?this.Io[this.Nd]:0};p.Xx=function(){return 0<=this.Nd&&this.Nd<this.Jo.length?this.Jo[this.Nd]:
0};l.prototype.Ei=function(b,e,a){return ec(this.nc(b,0,0),e,a)};l.prototype.Fr=function(b,e,a,c){return ec(this.nc(b,e,0),a,c)};p.lo=function(b){this.b.Le(b.X);b.$d();this.b.dd(b.X)};l.prototype.Ok=function(){return 0===this.qa||0===this.ya||0===this.La};l.prototype.Cr=function(b,e,a){var c=0;switch(b){case 0:c=this.qa;break;case 1:c=this.ya;break;case 2:c=this.La}return ec(c,e,a)};n.d=new l;k.prototype.En=function(){var b,e,a;for(b=0;b<this.qa;b++)for(e=0;e<this.ya;e++)for(a=0;a<this.La;a++)this.mc[b][e][a]=
0};k.prototype.Lg=function(b,e,a){this.be(b,e,a)};k.prototype.Jf=function(b,e){this.set(b,0,0,e)};k.prototype.ft=function(b,e,a){this.set(b,e,0,a)};k.prototype.Ls=function(b,e,a){var c=0,g=0,k=0,h=this.mc;switch(a){case 0:0===b?(c=h.length,h.push(d())):(c=0,h.unshift(d()));for(h[c].length=this.ya;g<this.ya;g++)for(h[c][g]=d(),h[c][g].length=this.La,k=0;k<this.La;k++)h[c][g][k]=e;this.qa++;break;case 1:for(;c<this.qa;c++)for(0===b?(g=h[c].length,h[c].push(d())):(g=0,h[c].unshift(d())),h[c][g].length=
this.La,k=0;k<this.La;k++)h[c][g][k]=e;this.ya++;break;case 2:for(;c<this.qa;c++)for(g=0;g<this.ya;g++)0===b?h[c][g].push(e):h[c][g].unshift(e);this.La++}};k.prototype.Js=function(b,e){var a=0,c=0,d=this.mc;switch(e){case 0:if(0===this.qa)break;0===b?q(d.pop()):q(d.shift());this.qa--;break;case 1:if(0===this.ya)break;for(;a<this.qa;a++)0===b?q(d[a].pop()):q(d[a].shift());this.ya--;break;case 2:if(0===this.La)break;for(;a<this.qa;a++)for(c=0;c<this.ya;c++)0===b?d[a][c].pop():d[a][c].shift();this.La--}};
k.prototype.Ir=function(b,e){var a=0,c=0;b=Math.floor(b);var d=this.mc;if(!(0>b))switch(e){case 0:if(b>=this.qa)break;q(d[b]);d.splice(b,1);this.qa--;break;case 1:if(b>=this.ya)break;for(;a<this.qa;a++)q(d[a][b]),d[a].splice(b,1);this.ya--;break;case 2:if(b>=this.La)break;for(;a<this.qa;a++)for(c=0;c<this.ya;c++)d[a][c].splice(b,1);this.La--}};n.e=new k;u.prototype.tr=function(b,e,a,c){b.yg(this.nc(e,a||0,c||0))};u.prototype.Mg=function(b){b.K(this.qa)};u.prototype.Fi=function(b){b.K(this.ya)};u.prototype.ur=
function(b){b.yg(this.nc(this.qa-1,0,0))};u.prototype.Mk=function(b){b.na(this.$u())};n.g=new u})();function rc(d){this.b=d}
(function(){function d(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function q(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function l(a){a=a.toLowerCase();return ba.hasOwnProperty(a)&&ba[a].length?ba[a][0].qc():B.destination}function k(){return B.createGain?B.createGain():B.createGainNode()}function u(a){return B.createDelay?B.createDelay(a):B.createDelayNode(a)}function n(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function p(a,b,c,e){a.start?a.start(e||
0,b):a.noteGrainOn(e||0,b,c-b)}function b(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function f(a,b,c,e,d,f){this.type="filter";this.Ra=[a,b,c,e,d,f];this.aa=k();this.L=k();this.L.gain.value=f;this.I=k();this.I.gain.value=1-f;this.Va=B.createBiquadFilter();this.Va.type="number"===typeof this.Va.type?a:Fc[a];this.Va.frequency.value=b;this.Va.detune&&(this.Va.detune.value=c);this.Va.Q.value=e;this.Va.gain.value=d;this.aa.connect(this.Va);this.aa.connect(this.I);this.Va.connect(this.L)}function e(a,
b,c){this.type="delay";this.Ra=[a,b,c];this.aa=k();this.L=k();this.L.gain.value=c;this.I=k();this.I.gain.value=1-c;this.Qh=k();this.Fc=u(a);this.Fc.delayTime.value=a;this.lj=k();this.lj.gain.value=b;this.aa.connect(this.Qh);this.aa.connect(this.I);this.Qh.connect(this.L);this.Qh.connect(this.Fc);this.Fc.connect(this.lj);this.lj.connect(this.Qh)}function a(a,b,c,e){this.type="convolve";this.Ra=[b,c,e];this.aa=k();this.L=k();this.L.gain.value=c;this.I=k();this.I.gain.value=1-c;this.Xe=B.createConvolver();
a&&(this.Xe.normalize=b,this.Xe.buffer=a);this.aa.connect(this.Xe);this.aa.connect(this.I);this.Xe.connect(this.L)}function c(a,b,c,e,d){this.type="flanger";this.Ra=[a,b,c,e,d];this.aa=k();this.I=k();this.I.gain.value=1-d/2;this.L=k();this.L.gain.value=d/2;this.uj=k();this.uj.gain.value=e;this.Fc=u(a+b);this.Fc.delayTime.value=a;this.rb=B.createOscillator();this.rb.frequency.value=c;this.jc=k();this.jc.gain.value=b;this.aa.connect(this.Fc);this.aa.connect(this.I);this.Fc.connect(this.L);this.Fc.connect(this.uj);
this.uj.connect(this.Fc);this.rb.connect(this.jc);this.jc.connect(this.Fc.delayTime);n(this.rb)}function g(a,b,c,e,d,f){this.type="phaser";this.Ra=[a,b,c,e,d,f];this.aa=k();this.I=k();this.I.gain.value=1-f/2;this.L=k();this.L.gain.value=f/2;this.Va=B.createBiquadFilter();this.Va.type="number"===typeof this.Va.type?7:"allpass";this.Va.frequency.value=a;this.Va.detune&&(this.Va.detune.value=b);this.Va.Q.value=c;this.rb=B.createOscillator();this.rb.frequency.value=d;this.jc=k();this.jc.gain.value=e;
this.aa.connect(this.Va);this.aa.connect(this.I);this.Va.connect(this.L);this.rb.connect(this.jc);this.jc.connect(this.Va.frequency);n(this.rb)}function m(a){this.type="gain";this.Ra=[a];this.da=k();this.da.gain.value=a}function h(a,b){this.type="tremolo";this.Ra=[a,b];this.da=k();this.da.gain.value=1-b/2;this.rb=B.createOscillator();this.rb.frequency.value=a;this.jc=k();this.jc.gain.value=b/2;this.rb.connect(this.jc);this.jc.connect(this.da.gain);n(this.rb)}function t(a,b){this.type="ringmod";this.Ra=
[a,b];this.aa=k();this.L=k();this.L.gain.value=b;this.I=k();this.I.gain.value=1-b;this.ai=k();this.ai.gain.value=0;this.rb=B.createOscillator();this.rb.frequency.value=a;this.rb.connect(this.ai.gain);n(this.rb);this.aa.connect(this.ai);this.aa.connect(this.I);this.ai.connect(this.L)}function N(a,b,c,e,d){this.type="distortion";this.Ra=[a,b,c,e,d];this.aa=k();this.ik=k();this.hk=k();this.Tw(c,Math.pow(10,e/20));this.L=k();this.L.gain.value=d;this.I=k();this.I.gain.value=1-d;this.Ik=B.createWaveShaper();
this.jj=new Float32Array(65536);this.Yu(a,b);this.Ik.jj=this.jj;this.aa.connect(this.ik);this.aa.connect(this.I);this.ik.connect(this.Ik);this.Ik.connect(this.hk);this.hk.connect(this.L)}function r(a,b,c,e,d){this.type="compressor";this.Ra=[a,b,c,e,d];this.da=B.createDynamicsCompressor();try{this.da.threshold.value=a,this.da.knee.value=b,this.da.ratio.value=c,this.da.attack.value=e,this.da.release.value=d}catch(f){}}function w(a,b){this.type="analyser";this.Ra=[a,b];this.da=B.createAnalyser();this.da.fftSize=
a;this.da.smoothingTimeConstant=b;this.Wu=new Float32Array(this.da.frequencyBinCount);this.Nq=new Uint8Array(a);this.Xh=0}function W(){this.J=null;this.Vj=0;this.Pe=[];this.Am=this.Pj=this.Oj=0}function y(a,b){this.src=a;this.W=T;this.Hc=b;this.Qi=!1;var c=this;this.zm=this.Hm=null;this.sg=[];this.rk=0;this.xn=this.sj=this.Sq=this.dk=!1;1===T&&b&&!nb&&(this.W=0,this.Hm=k());this.Gd=this.fa=null;var e;switch(this.W){case 0:this.fa=new Audio;this.fa.crossOrigin="anonymous";this.fa.addEventListener("canplaythrough",
function(){c.xn=!0});1===T&&B.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Sq=!0,this.fa.addEventListener("canplay",function(){c.zm||(c.zm=B.createMediaElementSource(c.fa),c.zm.connect(c.Hm))}));this.fa.autoplay=!1;this.fa.ay="auto";this.fa.src=a;break;case 1:I.xh?I.Eo(a,function(a){c.Gd=a;c.wo()},function(){c.sj=!0}):(e=new XMLHttpRequest,e.open("GET",a,!0),e.responseType="arraybuffer",e.onload=function(){c.Gd=e.response;c.wo()},e.onerror=function(){c.sj=!0},e.send());break;
case 2:this.fa=!0;break;case 3:this.fa=!0}}function E(a,b){var c=this;this.tag=b;this.pa=this.qd=!0;this.src=a.src;this.buffer=a;this.W=T;this.Hc=a.Hc;this.playbackRate=1;this.Vf=!0;this.ic=this.yc=!1;this.cc=0;this.yh=this.bg=this.ud=!1;this.volume=1;this.Fm=function(a){if(!c.ic&&!c.yc){var b=this;b||(b=a.target);b===c.Pi&&(c.Vf=!0,c.pa=!0,v=c.tag,I.trigger(rc.prototype.d.Hi,R))}};this.Pi=null;this.Zf=1===M&&!this.Hc||2===M;this.ng=1;this.startTime=this.Zf?I.yb.Z:I.ke.Z;this.Qa=this.eb=null;this.vd=
!1;this.Pa=null;this.hq=this.gq=this.fq=this.dq=this.jq=this.iq=0;this.i=null;var e=!1;1!==this.W||0!==this.buffer.W||this.buffer.Sq||(this.W=0);switch(this.W){case 0:this.Hc?(this.i=a.fa,e=!a.Qi,a.Qi=!0):(this.i=new Audio,this.i.crossOrigin="anonymous",this.i.autoplay=!1,this.i.src=a.fa.src,e=!0);e&&this.i.addEventListener("ended",function(){v=c.tag;c.pa=!0;I.trigger(rc.prototype.d.Hi,R)});break;case 1:this.eb=k();this.eb.connect(l(b));1===this.buffer.W?a.fa&&(this.i=B.createBufferSource(),this.i.buffer=
a.fa,this.i.connect(this.eb)):(this.i=this.buffer.fa,this.buffer.Hm.connect(this.eb),this.buffer.Qi||(this.buffer.Qi=!0,this.buffer.fa.addEventListener("ended",function(){v=c.tag;c.pa=!0;I.trigger(rc.prototype.d.Hi,R)})));break;case 2:this.i=new window.Media(Q+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Vf=!0,c.pa=!0,v=c.tag,I.trigger(rc.prototype.d.Hi,R))});break;case 3:this.i=!0}}function C(a){H(pa);if(a.length){var b,c,e;b=0;for(c=z.length;b<c;b++)e=z[b],mb(a,e.tag)&&pa.push(e)}else L&&
!L.lf()&&(H(pa),pa[0]=L)}function K(a,b){ba.hasOwnProperty(a)?ba[a].push(b):ba[a]=[b];var c,e,d,f,h=B.destination;if(ba.hasOwnProperty(a)&&(d=ba[a],d.length))for(h=d[0].qc(),c=0,e=d.length;c<e;c++)f=d[c],c+1===e?f.Cc(B.destination):f.Cc(d[c+1].qc());C(a);c=0;for(e=pa.length;c<e;c++)pa[c].Gw(h);Oa&&Db===a&&(Oa.disconnect(),Oa.connect(h))}function J(){}function x(){}var O=rc.prototype;O.ca=function(a){this.ba=a;this.b=a.b};O.ca.prototype.G=function(){};var I=null,R=null,v="",Q="",T=0,B=null,G=[],z=
[],L=null,S=!1,M=0,F=!1,P=1,ma=0,U=0,Aa=!1,na=1,Ga=1,Ea=10,Ac=1E4,Bc=1,Oa=null,Db="",Za=!1,$a=[],nb=!1,ba={},Fc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");f.prototype.Cc=function(a){this.L.disconnect();this.L.connect(a);this.I.disconnect();this.I.connect(a)};f.prototype.remove=function(){this.aa.disconnect();this.Va.disconnect();this.L.disconnect();this.I.disconnect()};f.prototype.qc=function(){return this.aa};e.prototype.Cc=function(a){this.L.disconnect();this.L.connect(a);
this.I.disconnect();this.I.connect(a)};e.prototype.remove=function(){this.aa.disconnect();this.Qh.disconnect();this.Fc.disconnect();this.lj.disconnect();this.L.disconnect();this.I.disconnect()};e.prototype.qc=function(){return this.aa};a.prototype.Cc=function(a){this.L.disconnect();this.L.connect(a);this.I.disconnect();this.I.connect(a)};a.prototype.remove=function(){this.aa.disconnect();this.Xe.disconnect();this.L.disconnect();this.I.disconnect()};a.prototype.qc=function(){return this.aa};c.prototype.Cc=
function(a){this.I.disconnect();this.I.connect(a);this.L.disconnect();this.L.connect(a)};c.prototype.remove=function(){this.aa.disconnect();this.Fc.disconnect();this.rb.disconnect();this.jc.disconnect();this.I.disconnect();this.L.disconnect();this.uj.disconnect()};c.prototype.qc=function(){return this.aa};g.prototype.Cc=function(a){this.I.disconnect();this.I.connect(a);this.L.disconnect();this.L.connect(a)};g.prototype.remove=function(){this.aa.disconnect();this.Va.disconnect();this.rb.disconnect();
this.jc.disconnect();this.I.disconnect();this.L.disconnect()};g.prototype.qc=function(){return this.aa};m.prototype.Cc=function(a){this.da.disconnect();this.da.connect(a)};m.prototype.remove=function(){this.da.disconnect()};m.prototype.qc=function(){return this.da};h.prototype.Cc=function(a){this.da.disconnect();this.da.connect(a)};h.prototype.remove=function(){this.rb.disconnect();this.jc.disconnect();this.da.disconnect()};h.prototype.qc=function(){return this.da};t.prototype.Cc=function(a){this.L.disconnect();
this.L.connect(a);this.I.disconnect();this.I.connect(a)};t.prototype.remove=function(){this.rb.disconnect();this.ai.disconnect();this.aa.disconnect();this.L.disconnect();this.I.disconnect()};t.prototype.qc=function(){return this.aa};N.prototype.Tw=function(a,b){.01>a&&(a=.01);this.ik.gain.value=a;this.hk.gain.value=Math.pow(1/a,.6)*b};N.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};N.prototype.Yu=function(a,b){for(var c=Math.pow(10,
a/20),e=Math.pow(10,b/20),d=0,f=0;32768>f;++f)d=f/32768,d=this.shape(d,c,e),this.jj[32768+f]=d,this.jj[32768-f-1]=-d};N.prototype.Cc=function(a){this.L.disconnect();this.L.connect(a);this.I.disconnect();this.I.connect(a)};N.prototype.remove=function(){this.aa.disconnect();this.ik.disconnect();this.Ik.disconnect();this.hk.disconnect();this.L.disconnect();this.I.disconnect()};N.prototype.qc=function(){return this.aa};r.prototype.Cc=function(a){this.da.disconnect();this.da.connect(a)};r.prototype.remove=
function(){this.da.disconnect()};r.prototype.qc=function(){return this.da};w.prototype.lb=function(){this.da.getFloatFrequencyData(this.Wu);this.da.getByteTimeDomainData(this.Nq);for(var a=this.da.fftSize,b=0,c=this.Xh=0,e=0;b<a;b++)e=(this.Nq[b]-128)/128,0>e&&(e=-e),this.Xh<e&&(this.Xh=e),c+=e*e;this.Xh=q(this.Xh);q(Math.sqrt(c/a))};w.prototype.Cc=function(a){this.da.disconnect();this.da.connect(a)};w.prototype.remove=function(){this.da.disconnect()};w.prototype.qc=function(){return this.da};W.prototype.bi=
function(a){if(this.J=a)this.Oj=this.J.x,this.Pj=this.J.y;H(this.Pe)};W.prototype.Hj=function(){return!!this.J};W.prototype.lb=function(a){this.J&&0!==a&&(this.Am=Na(this.Oj,this.Pj,this.J.x,this.J.y),a=Ta(this.Oj,this.Pj,this.J.x,this.J.y)/a,4>this.Pe.length||this.Pe.shift(),this.Pe.push(a),this.Oj=this.J.x,this.Pj=this.J.y)};W.prototype.dh=function(){if(!this.Pe.length)return 0;var a,b,c=0;a=0;for(b=this.Pe.length;a<b;a++)c+=this.Pe[a];return c/this.Pe.length};W.prototype.Sl=function(){return Math.cos(this.Am)*
this.dh()};W.prototype.Tl=function(){return Math.sin(this.Am)*this.dh()};var Cc=!1;y.prototype.Hw=function(){var a,b,c,e;c=a=0;for(b=z.length;a<b;++a)e=z[a],z[c]=e,e.buffer===this?e.stop():++c;z.length=c;this.Gd=this.fa=null};y.prototype.wo=function(){if(!this.fa&&this.Gd){var a=this;if(B.decodeAudioData)B.decodeAudioData(this.Gd,function(b){a.fa=b;a.Gd=null;var c,e,d;if(ha(a.ek)||F)ha(a.fj)||(c=a.fj.Xe,c.normalize=a.Wp,c.buffer=b);else if(a.sg.length){c=0;for(e=a.sg.length;c<e;c++){b=a.sg[c];d=new E(a,
b.Vq);d.tk(!0);if("undefined"!==typeof b.Yp&&(b.J=I.Fj(b.Yp),!b.J))continue;if(b.J){var f=Sa(b.J.x,b.J.y,-b.J.j.Ma(),ma,U,!0),h=Sa(b.J.x,b.J.y,-b.J.j.Ma(),ma,U,!1);d.cn(f,h,Ia(b.J.m-b.J.j.Ma()),b.Xl,b.Cm,b.Em);d.bi(b.J)}else d.cn(b.x,b.y,b.xt,b.Xl,b.Cm,b.Em);d.play(a.xm,a.wn,a.rk);a.dk&&d.pause();z.push(d)}H(a.sg)}else d=new E(a,a.ek||""),d.play(a.xm,a.wn,a.rk),a.dk&&d.pause(),z.push(d)},function(){a.sj=!0});else if(this.fa=B.createBuffer(this.Gd,!1),this.Gd=null,ha(this.ek)||F)ha(this.fj)||(b=this.fj.Xe,
b.normalize=this.Wp,b.buffer=this.fa);else{var b=new E(this,this.ek);b.play(this.xm,this.wn,this.rk);this.dk&&b.pause();z.push(b)}}};y.prototype.ep=function(){switch(this.W){case 0:var a=4<=this.fa.readyState;a&&(this.xn=!0);return a||this.xn;case 1:return!!this.Gd||!!this.fa;case 2:return!0;case 3:return!0}return!1};y.prototype.Tv=function(){switch(this.W){case 0:return this.ep();case 1:return!!this.fa;case 2:return!0;case 3:return!0}return!1};y.prototype.Hv=function(){switch(this.W){case 0:return!!this.fa.error;
case 1:return this.sj}return!1};E.prototype.lf=function(){switch(this.W){case 0:return this.i.ended;case 1:return 1===this.buffer.W?!this.qd&&!this.pa&&this.i.loop||this.ic?!1:this.Vf:this.i.ended;case 2:return this.Vf;case 3:!0}return!0};E.prototype.Ht=function(){return this.qd||this.pa?!0:this.lf()};E.prototype.tk=function(a){1===T&&(!this.vd&&a?this.eb&&(this.Qa||(this.Qa=B.createPanner(),this.Qa.panningModel="number"===typeof this.Qa.panningModel?na:["equalpower","HRTF","soundfield"][na],this.Qa.distanceModel=
"number"===typeof this.Qa.distanceModel?Ga:["linear","inverse","exponential"][Ga],this.Qa.refDistance=Ea,this.Qa.maxDistance=Ac,this.Qa.rolloffFactor=Bc),this.eb.disconnect(),this.eb.connect(this.Qa),this.Qa.connect(l(this.tag)),this.vd=!0):this.vd&&!a&&this.eb&&(this.Qa.disconnect(),this.eb.disconnect(),this.eb.connect(l(this.tag)),this.vd=!1))};E.prototype.cn=function(a,b,c,e,d,f){this.vd&&1===T&&(this.Qa.setPosition(a,b,0),this.Qa.setOrientation(Math.cos(V(c)),Math.sin(V(c)),0),this.Qa.coneInnerAngle=
e,this.Qa.coneOuterAngle=d,this.Qa.coneOuterGain=f,this.iq=a,this.jq=b,this.dq=c,this.fq=e,this.gq=d,this.hq=f)};E.prototype.bi=function(a){this.vd&&1===T&&(this.Pa||(this.Pa=new W),this.Pa.bi(a))};E.prototype.lb=function(a){if(this.vd&&1===T&&this.Pa&&this.Pa.Hj()&&this.Yf()){this.Pa.lb(a);a=this.Pa.J;var b=Sa(a.x,a.y,-a.j.Ma(),ma,U,!0),c=Sa(a.x,a.y,-a.j.Ma(),ma,U,!1);this.Qa.setPosition(b,c,0);b=0;"undefined"!==typeof this.Pa.J.m&&(b=a.m-a.j.Ma(),this.Qa.setOrientation(Math.cos(b),Math.sin(b),0));
b=Sa(this.Pa.Sl(),this.Pa.Tl(),-a.j.Ma(),0,0,!0);c=Sa(this.Pa.Sl(),this.Pa.Tl(),-a.j.Ma(),0,0,!1);this.Qa.setVelocity(b,c,0)}};E.prototype.play=function(a,b,c,e){var d=this.i;this.ud=a;this.volume=b;c=c||0;e=e||0;switch(this.W){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==b*P&&(d.volume=b*P);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==c)try{d.currentTime=c}catch(f){}if(this.Hc&&Za&&!I.Xf)$a.push(this);else try{this.i.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+
this.buffer.src+"': ",h)}break;case 1:this.muted=!1;this.ng=1;if(1===this.buffer.W)this.eb.gain.value=b*P,this.qd||(this.i=B.createBufferSource(),this.i.buffer=this.buffer.fa,this.i.connect(this.eb)),this.i.onended=this.Fm,this.Pi=this.i,this.i.loop=a,this.Vf=!1,0===c?n(this.i,e):p(this.i,c,this.gf(),e);else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);d.volume=b*P;if(d.currentTime!==c)try{d.currentTime=c}catch(g){}this.Hc&&Za&&!I.Xf?$a.push(this):d.play()}break;case 2:(!this.qd&&
this.pa||0!==c)&&d.seekTo(c);d.play();this.Vf=!1;break;case 3:I.xb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Zf?I.yb.Z:I.ke.Z)-c;this.ic=this.pa=this.qd=!1};E.prototype.stop=function(){switch(this.W){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.W?b(this.i):this.i.paused||this.i.pause();break;case 2:this.i.stop();break;case 3:I.xb&&AppMobi.context.stopSound(this.src)}this.pa=!0;this.ic=!1};E.prototype.pause=
function(){if(!(this.qd||this.pa||this.lf()||this.ic)){switch(this.W){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.W?(this.cc=this.Pl(!0),this.ud&&(this.cc=this.cc%this.gf()),this.ic=!0,b(this.i)):this.i.paused||this.i.pause();break;case 2:this.i.pause();break;case 3:I.xb&&AppMobi.context.stopSound(this.src)}this.ic=!0}};E.prototype.wq=function(){if(!(this.qd||this.pa||this.lf())&&this.ic){switch(this.W){case 0:this.i.play();break;case 1:1===this.buffer.W?(this.i=B.createBufferSource(),
this.i.buffer=this.buffer.fa,this.i.connect(this.eb),this.i.onended=this.Fm,this.Pi=this.i,this.i.loop=this.ud,this.eb.gain.value=P*this.volume*this.ng,this.pi(),this.startTime=(this.Zf?I.yb.Z:I.ke.Z)-this.cc/(this.playbackRate||.001),p(this.i,this.cc,this.gf())):this.i.play();break;case 2:this.i.play();break;case 3:I.xb&&AppMobi.context.resumeSound(this.src)}this.ic=!1}};E.prototype.seek=function(a){if(!(this.qd||this.pa||this.lf()))switch(this.W){case 0:try{this.i.currentTime=a}catch(b){}break;
case 1:if(1===this.buffer.W)this.ic?this.cc=a:(this.pause(),this.cc=a,this.wq());else try{this.i.currentTime=a}catch(c){}break;case 3:I.xb&&AppMobi.context.seekSound(this.src,a)}};E.prototype.Gw=function(a){1===this.W&&(this.vd?(this.Qa.disconnect(),this.Qa.connect(a)):(this.eb.disconnect(),this.eb.connect(a)))};E.prototype.gf=function(){var a=0;switch(this.W){case 0:"undefined"!==typeof this.i.duration&&(a=this.i.duration);break;case 1:a=this.buffer.fa.duration;break;case 2:a=this.i.getDuration();
break;case 3:I.xb&&(a=AppMobi.context.getDurationSound(this.src))}return a};E.prototype.Pl=function(a){var b=this.gf(),c=0;switch(this.W){case 0:"undefined"!==typeof this.i.currentTime&&(c=this.i.currentTime);break;case 1:if(1===this.buffer.W){if(this.ic)return this.cc;c=(this.Zf?I.yb.Z:I.ke.Z)-this.startTime}else"undefined"!==typeof this.i.currentTime&&(c=this.i.currentTime);break;case 3:I.xb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.ud&&c>b&&(c=b);return c};
E.prototype.Yf=function(){return!this.ic&&!this.qd&&!this.pa&&!this.lf()};E.prototype.$w=function(){return!this.qd&&!this.pa&&!this.lf()};E.prototype.mx=function(){var a=this.volume*P;isFinite(a)||(a=0);switch(this.W){case 0:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a);break;case 1:1===this.buffer.W?this.eb.gain.value=a*this.ng:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a)}};E.prototype.nj=function(a){switch(this.W){case 0:this.i.muted!==!!a&&
(this.i.muted=!!a);break;case 1:1===this.buffer.W?(this.ng=a?0:1,this.eb.gain.value=P*this.volume*this.ng):this.i.muted!==!!a&&(this.i.muted=!!a)}};E.prototype.Vw=function(){this.bg=!0;this.nj(this.bg||this.yh)};E.prototype.Hq=function(a){this.yh=!!a;this.nj(this.bg||this.yh)};E.prototype.Ww=function(a){this.playbackRate=a;this.pi()};E.prototype.pi=function(){var a=this.playbackRate;this.Zf&&(a*=I.Ef);switch(this.W){case 0:this.i.playbackRate!==a&&(this.i.playbackRate=a);break;case 1:1===this.buffer.W?
this.i.playbackRate.value!==a&&(this.i.playbackRate.value=a):this.i.playbackRate!==a&&(this.i.playbackRate=a)}};E.prototype.Yw=function(a){switch(this.W){case 0:a?this.Yf()?(this.yc=!0,this.i.pause()):this.yc=!1:this.yc&&(this.i.play(),this.yc=!1);break;case 1:a?this.Yf()?(this.yc=!0,1===this.buffer.W?(this.cc=this.Pl(!0),this.ud&&(this.cc=this.cc%this.gf()),b(this.i)):this.i.pause()):this.yc=!1:this.yc&&(1===this.buffer.W?(this.i=B.createBufferSource(),this.i.buffer=this.buffer.fa,this.i.connect(this.eb),
this.i.onended=this.Fm,this.Pi=this.i,this.i.loop=this.ud,this.eb.gain.value=P*this.volume*this.ng,this.pi(),this.startTime=(this.Zf?I.yb.Z:I.ke.Z)-this.cc/(this.playbackRate||.001),p(this.i,this.cc,this.gf())):this.i.play(),this.yc=!1);break;case 2:a?this.Yf()?(this.i.pause(),this.yc=!0):this.yc=!1:this.yc&&(this.yc=!1,this.i.play())}};O.V=function(a){this.type=a;I=this.b=a.b;R=this;this.Nb=null;this.Gh=-600;this.b.xh&&(nb=!0);!(this.b.Ah||this.b.Ij&&(this.b.oh||this.b.Jj))||this.b.ph||this.b.Oa||
this.b.dm||nb||(Za=!0);B=null;"undefined"!==typeof AudioContext?(T=1,B=new AudioContext):"undefined"!==typeof webkitAudioContext&&(T=1,B=new webkitAudioContext);this.b.Ah&&B&&(B.close&&B.close(),"undefined"!==typeof AudioContext?B=new AudioContext:"undefined"!==typeof webkitAudioContext&&(B=new webkitAudioContext));Za&&document.addEventListener("touchend",function(){if(!Cc&&B){if(!Aa&&B.createBuffer){var a=B.createBuffer(1,220,22050),b=B.createBufferSource();b.buffer=a;b.connect(B.destination);n(b)}Cc=
!0}var c;if(Za){if(!F)for(a=0,b=$a.length;a<b;++a)c=$a[a],c.pa||c.ic||c.i.play();H($a)}},!0);1!==T&&(this.b.td&&"undefined"!==typeof window.Media?T=2:this.b.dp&&(T=3));2===T&&(Q=location.href,a=Q.lastIndexOf("/"),-1<a&&(Q=Q.substr(0,a+1)),Q=Q.replace("file://",""));if(this.b.Uv&&this.b.Vv&&"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.Te(this);else{if(this.b.xb)S=this.b.Ij;else try{S=
!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){S=!1}this.b.Df(this)}};var ya=O.V.prototype;ya.G=function(){this.b.Lf=this;M=this.u[0];this.ae=this.u[1];this.ww=0!==this.u[2];this.ak=0;na=this.u[3];Ga=this.u[4];this.Gh=-this.u[5];Ea=this.u[6];Ac=this.u[7];Bc=this.u[8];this.Nb=new W;var a=this.b.F||this.b.width,b=this.b.D||this.b.height;1===T&&("undefined"!==typeof B.listener.dopplerFactor&&(B.listener.dopplerFactor=0),B.listener.setPosition(a/2,b/2,this.Gh),B.listener.setOrientation(0,
0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Oa&&Oa.disconnect();Db=b.toLowerCase();Oa=B.createMediaStreamSource(a);Oa.connect(l(Db))});this.b.ho(function(a){R.sw(a)});var c=this;this.b.yt(function(a){c.ow(a)})};ya.ow=function(a){var b,c,e;b=0;for(c=z.length;b<c;b++)e=z[b],e.Pa&&e.Pa.J===a&&(e.Pa.J=null,e.vd&&e.Yf()&&e.ud&&e.stop());this.Nb.J===a&&(this.Nb.J=null)};ya.Bb=function(){var a={silent:F,masterVolume:P,listenerZ:this.Gh,listenerUid:this.Nb.Hj()?this.Nb.J.uid:-1,playing:[],effects:{}},
b=a.playing,c,e,d,f,h,g;c=0;for(e=z.length;c<e;c++)d=z[c],!d.$w()||3===this.ae||d.Hc&&1===this.ae||!d.Hc&&2===this.ae||(f=d.Pl(),d.ud&&(f=f%d.gf()),f={tag:d.tag,buffersrc:d.buffer.src,is_music:d.Hc,playbackTime:f,volume:d.volume,looping:d.ud,muted:d.bg,playbackRate:d.playbackRate,paused:d.ic,resume_position:d.cc},d.vd&&(f.pan={},g=f.pan,d.Pa&&d.Pa.Hj()?g.objUid=d.Pa.J.uid:(g.x=d.iq,g.y=d.jq,g.a=d.dq),g.ia=d.fq,g.oa=d.gq,g.og=d.hq),b.push(f));b=a.effects;for(h in ba)if(ba.hasOwnProperty(h)){d=[];c=
0;for(e=ba[h].length;c<e;c++)d.push({type:ba[h][c].type,params:ba[h][c].Ra});b[h]=d}return a};var ab=[];ya.Ob=function(b){var d=b.silent;P=b.masterVolume;this.Gh=b.listenerZ;this.Nb.bi(null);var k=b.listenerUid;-1!==k&&(this.Nb.Vj=k,ab.push(this.Nb));var k=b.playing,n,p,l,u,q,v,E,y,C,x,B;if(3!==this.ae)for(n=0,p=z.length;n<p;n++)C=z[n],C.Hc&&1===this.ae||(C.Hc||2!==this.ae)&&C.stop();for(q in ba)if(ba.hasOwnProperty(q))for(n=0,p=ba[q].length;n<p;n++)ba[q][n].remove();Wa(ba);for(q in b.effects)if(b.effects.hasOwnProperty(q))for(v=
b.effects[q],n=0,p=v.length;n<p;n++)switch(l=v[n].type,x=v[n].params,l){case "filter":K(q,new f(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":K(q,new e(x[0],x[1],x[2]));break;case "convolve":l=x[2];C=this.zj(l,!1);C.fa?l=new a(C.fa,x[0],x[1],l):(l=new a(null,x[0],x[1],l),C.Wp=x[0],C.fj=l);K(q,l);break;case "flanger":K(q,new c(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":K(q,new g(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":K(q,new m(x[0]));break;case "tremolo":K(q,new h(x[0],x[1]));break;
case "ringmod":K(q,new t(x[0],x[1]));break;case "distortion":K(q,new N(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":K(q,new r(x[0],x[1],x[2],x[3],x[4]));break;case "analyser":K(q,new w(x[0],x[1]))}n=0;for(p=k.length;n<p;n++)3===this.ae||(b=k[n],l=b.buffersrc,u=b.is_music,q=b.tag,v=b.playbackTime,E=b.looping,y=b.volume,B=(x=b.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,u&&1===this.ae)||!u&&2===this.ae||((C=this.Aj(l,q,u,E,y))?(C.cc=b.resume_position,C.tk(!!x),C.play(E,y,v),C.pi(),C.mx(),C.nj(C.bg||
C.yh),b.paused&&C.pause(),b.muted&&C.Vw(),C.nj(C.bg||C.yh),x&&(-1!==B?(C.Pa=C.Pa||new W,C.Pa.Vj=B,ab.push(C.Pa)):C.cn(x.x,x.y,x.a,x.ia,x.oa,x.og))):(C=this.zj(l,u),C.rk=v,C.dk=b.paused,x&&(-1!==B?C.sg.push({Yp:B,Xl:x.ia,Cm:x.oa,Em:x.og,Vq:q}):C.sg.push({x:x.x,y:x.y,xt:x.a,Xl:x.ia,Cm:x.oa,Em:x.og,Vq:q}))));if(d&&!F){n=0;for(p=z.length;n<p;n++)z[n].Hq(!0);F=!0}else if(!d&&F){n=0;for(p=z.length;n<p;n++)z[n].Hq(!1);F=!1}};ya.Dd=function(){var a,b,c,e;a=0;for(b=ab.length;a<b;a++)c=ab[a],e=this.b.Fj(c.Vj),
c.bi(e),c.Vj=-1,e&&(ma=e.x,U=e.y);H(ab)};ya.sw=function(a){if(!this.ww){!a&&B&&B.resume&&(B.resume(),Aa=!1);var b,c;b=0;for(c=z.length;b<c;b++)z[b].Yw(a);a&&B&&B.suspend&&(B.suspend(),Aa=!0)}};ya.lb=function(){var a=this.b.Ae,b,c,e;b=0;for(c=z.length;b<c;b++)e=z[b],e.lb(a),0!==M&&e.pi();var d,f;for(d in ba)if(ba.hasOwnProperty(d))for(e=ba[d],b=0,c=e.length;b<c;b++)f=e[b],f.lb&&f.lb();1===T&&this.Nb.Hj()&&(this.Nb.lb(a),ma=this.Nb.J.x,U=this.Nb.J.y,B.listener.setPosition(this.Nb.J.x,this.Nb.J.y,this.Gh),
B.listener.setVelocity(this.Nb.Sl(),this.Nb.Tl(),0))};var bb=[];ya.Xw=function(a){var b,c,e,d,f,h=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],d=e[0],e=2*e[1],(f=4<d.length&&".ogg"===d.substr(d.length-4))&&S||!f&&!S)bb.push({filename:d,size:e,J:null}),h+=e;return h};ya.bx=function(){var a,b,c,e;a=0;for(b=bb.length;a<b;++a)c=bb[a],e=this.b.ah+c.filename,c.J=this.zj(e,!1)};ya.nv=function(){var a=0,b,c,e;b=0;for(c=bb.length;b<c;++b)e=bb[b],e.J.Tv()||e.J.Hv()||this.b.Oa||this.b.Jj?a+=e.size:e.J.ep()&&(a+=Math.floor(e.size/
2));return a};ya.Iw=function(){var a,b,c,e;c=a=0;for(b=G.length;a<b;++a)e=G[a],G[c]=e,e.Hc?e.Hw():++c;G.length=c};ya.zj=function(a,b){var c,e,d,f=null;c=0;for(e=G.length;c<e;c++)if(d=G[c],d.src===a){f=d;break}f||(nb&&b&&this.Iw(),f=new y(a,b),G.push(f));return f};ya.Aj=function(a,b,c,e,d){var f,h,g;f=0;for(h=z.length;f<h;f++)if(g=z[f],g.src===a&&(g.Ht()||c))return g.tag=b,g;a=this.zj(a,c);if(!a.fa)return"<preload>"!==b&&(a.ek=b,a.xm=e,a.wn=d),null;g=new E(a,b);z.push(g);return g};var pa=[];J.prototype.Hi=
function(a){return mb(v,a)};J.prototype.cs=function(a){C(a);var b;a=0;for(b=pa.length;a<b;a++)if(pa[a].Yf())return!0;return!1};O.d=new J;x.prototype.Play=function(a,b,c,e){!F&&(c=d(c),L=this.Aj(this.b.ah+a[0]+(S?".ogg":".m4a"),e,a[1],0!==b,c))&&(L.tk(!1),L.play(0!==b,c,0,this.ak),this.ak=0)};x.prototype.Is=function(a,b,c,e,f){!F&&(e=d(e),L=this.Aj(this.b.ah+b.toLowerCase()+(S?".ogg":".m4a"),f,1===a,0!==c,e))&&(L.tk(!1),L.play(0!==c,e,0,this.ak),this.ak=0)};x.prototype.Ks=function(a){if(!F){var b=
a[1];a=this.b.ah+a[0]+(S?".ogg":".m4a");3===T?this.b.xb?AppMobi.context.loadSound(a):AppMobi.player.loadSound(a):2!==T&&this.Aj(a,"<preload>",b,!1)}};x.prototype.Ys=function(a,b){C(a);0>b&&(b=0);var c,e;c=0;for(e=pa.length;c<e;c++)pa[c].Ww(b)};x.prototype.ao=function(a){C(a);var b;a=0;for(b=pa.length;a<b;a++)pa[a].stop()};x.prototype.jt=function(){var a,b;a=0;for(b=z.length;a<b;a++)z[a].stop()};x.prototype.Xs=function(a,b){C(a);var c,e;c=0;for(e=pa.length;c<e;c++)0===b?pa[c].pause():pa[c].wq()};O.e=
new x;O.g=new function(){}})();function sc(d){this.b=d}
(function(){function d(){}function q(){}var l=sc.prototype;l.ca=function(d){this.ba=d;this.b=d.b};l.ca.prototype.G=function(){};l.V=function(d){this.type=d;this.b=d.b};l.V.prototype.G=function(){var d=this;window.addEventListener("resize",function(){d.b.trigger(sc.prototype.d.As,d)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){d.b.trigger(sc.prototype.d.xs,d)}),window.addEventListener("offline",function(){d.b.trigger(sc.prototype.d.ws,d)}));"undefined"!==typeof window.applicationCache&&
(window.applicationCache.addEventListener("updateready",function(){d.b.ig=1;d.b.trigger(sc.prototype.d.Wn,d)}),window.applicationCache.addEventListener("progress",function(l){d.b.ig=l.loaded/l.total||0}));this.b.xb||(document.addEventListener("appMobi.device.update.available",function(){d.b.trigger(sc.prototype.d.Wn,d)}),document.addEventListener("backbutton",function(){d.b.trigger(sc.prototype.d.Pk,d)}),document.addEventListener("menubutton",function(){d.b.trigger(sc.prototype.d.Un,d)}),document.addEventListener("searchbutton",
function(){d.b.trigger(sc.prototype.d.Bs,d)}),document.addEventListener("tizenhwkey",function(l){var n;switch(l.keyName){case "back":n=d.b.trigger(sc.prototype.d.Pk,d);!n&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(n=d.b.trigger(sc.prototype.d.Un,d))||l.preventDefault()}}));this.b.jm&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!d.b.trigger(sc.prototype.d.Pk,d)});this.b.ho(function(l){l?d.b.trigger(sc.prototype.d.ys,d):d.b.trigger(sc.prototype.d.zs,
d)})};d.prototype.xs=function(){return!0};d.prototype.ws=function(){return!0};d.prototype.Wn=function(){return!0};d.prototype.zs=function(){return!0};d.prototype.ys=function(){return!0};d.prototype.As=function(){return!0};d.prototype.Pk=function(){return!0};d.prototype.Un=function(){return!0};d.prototype.Bs=function(){return!0};l.d=new d;l.e=new function(){};q.prototype.Ms=function(d,l){if(this.b.Oa)d.na("");else{var n=RegExp("[?&]"+l+"=([^&]*)").exec(window.location.search);n?d.na(decodeURIComponent(n[1].replace(/\+/g,
" "))):d.na("")}};l.g=new q})();function tc(d){this.b=d}
(function(){function d(){}function q(){}function l(){}var k=tc.prototype;k.ca=function(d){this.ba=d;this.b=d.b};k.ca.prototype.G=function(){};k.V=function(d){this.type=d;this.b=d.b};var u=k.V.prototype;u.G=function(){this.Yc={};this.gg=0};u.Bb=function(){return this.Yc};u.Ob=function(d){this.Yc=d;this.gg=0;for(var k in this.Yc)this.Yc.hasOwnProperty(k)&&this.gg++};d.prototype.Qr=function(d){return this.Yc.hasOwnProperty(d)};d.prototype.Ok=function(){return 0===this.gg};k.d=new d;q.prototype.qr=function(d,
k){this.Yc.hasOwnProperty(d)||this.gg++;this.Yc[d]=k};q.prototype.En=function(){Wa(this.Yc);this.gg=0};k.e=new q;l.prototype.Or=function(d,k){this.Yc.hasOwnProperty(k)?d.yg(this.Yc[k]):d.K(0)};l.prototype.es=function(d){d.K(this.gg)};l.prototype.Mk=function(d){d.na(JSON.stringify({c2dictionary:!0,data:this.Yc}))};k.g=new l})();function oc(d){this.b=d}
(function(){function d(){this.name="";this.vg=0;this.Ra=[]}function q(){f++;f===b.length&&b.push(new d);return b[f]}function l(){return 0>f?null:b[f]}function k(){}function u(){}function n(){}var p=oc.prototype;p.ca=function(b){this.ba=b;this.b=b.b};p.ca.prototype.G=function(){};p.V=function(b){this.type=b;this.b=b.b};var b=[],f=-1;p.V.prototype.G=function(){var b=this;window.c2_callFunction=function(a,c){var d,k,h,n=q();n.name=a.toLowerCase();n.vg=0;if(c)for(n.Ra.length=c.length,d=0,k=c.length;d<
k;++d)h=c[d],n.Ra[d]="number"===typeof h||"string"===typeof h?h:"boolean"===typeof h?h?1:0:0;else H(n.Ra);b.b.trigger(oc.prototype.d.Ii,b,n.name);f--;return n.vg}};k.prototype.Ii=function(b){var a=l();return a?mb(b,a.name):!1};k.prototype.Br=function(b,a,c){var d=l();if(!d)return!1;b=D(b);return 0>b||b>=d.Ra.length?!1:ec(d.Ra[b],a,c)};p.d=new k;u.prototype.CallFunction=function(b,a){var c=q();c.name=b.toLowerCase();c.vg=0;Ba(c.Ra,a);this.b.trigger(oc.prototype.d.Ii,this,c.name);f--};u.prototype.$s=
function(b){var a=l();a&&(a.vg=b)};p.e=new u;n.prototype.Cs=function(b,a){a=D(a);var c=l();c?0<=a&&a<c.Ra.length?b.yg(c.Ra[a]):b.K(0):b.K(0)};n.prototype.Dn=function(b,a){var c=q();c.name=a.toLowerCase();c.vg=0;H(c.Ra);var d,k;d=2;for(k=arguments.length;d<k;d++)c.Ra.push(arguments[d]);this.b.trigger(oc.prototype.d.Ii,this,c.name);f--;b.yg(c.vg)};p.g=new n})();function uc(d){this.b=d}
(function(){function d(){}var q=uc.prototype;q.ca=function(d){this.ba=d;this.b=d.b};q.ca.prototype.G=function(){};q.V=function(d){this.type=d;this.b=d.b;this.fg=Array(256);this.qi=Array(256);this.ie=0};var l=q.V.prototype;l.G=function(){var d=this;this.b.Oa||(jQuery(document).keydown(function(k){d.pw(k)}),jQuery(document).keyup(function(k){d.qw(k)}))};var k=[32,33,34,35,36,37,38,39,40,44];l.pw=function(d){var n=!1;window!=window.top&&-1<k.indexOf(d.which)&&(d.preventDefault(),n=!0,d.stopPropagation());
if(this.fg[d.which])this.qi[d.which]&&!n&&d.preventDefault();else{this.fg[d.which]=!0;this.ie=d.which;this.b.Xf=!0;this.b.trigger(uc.prototype.d.ns,this);var p=this.b.trigger(uc.prototype.d.ss,this),b=this.b.trigger(uc.prototype.d.ts,this);this.b.Xf=!1;if(p||b)this.qi[d.which]=!0,n||d.preventDefault()}};l.qw=function(d){this.fg[d.which]=!1;this.ie=d.which;this.b.Xf=!0;this.b.trigger(uc.prototype.d.Nn,this);var k=this.b.trigger(uc.prototype.d.Rn,this),p=this.b.trigger(uc.prototype.d.Qn,this);this.b.Xf=
!1;if(k||p||this.qi[d.which])this.qi[d.which]=!0,d.preventDefault()};l.rg=function(){var d;for(d=0;256>d;++d)if(this.fg[d]){this.fg[d]=!1;this.ie=d;this.b.trigger(uc.prototype.d.Nn,this);var k=this.b.trigger(uc.prototype.d.Rn,this),p=this.b.trigger(uc.prototype.d.Qn,this);if(k||p)this.qi[d]=!0}};l.Bb=function(){return{triggerKey:this.ie}};l.Ob=function(d){this.ie=d.triggerKey};d.prototype.Yr=function(d){return this.fg[d]};d.prototype.ss=function(d){return d===this.ie};d.prototype.ns=function(){return!0};
d.prototype.Nn=function(){return!0};d.prototype.Rn=function(d){return d===this.ie};d.prototype.ts=function(d){return d===this.ie};d.prototype.Qn=function(d){return d===this.ie};q.d=new d;q.e=new function(){};q.g=new function(){}})();function Z(d){this.b=d}
(function(){function d(d,l,n,p,b,f,e,a,c,g){d.save();d.fillStyle=l;l=b%n;var m=f%p;0>l&&(l+=n);0>m&&(m+=p);d.translate(l+c,m+g);d.fillRect(b-l-c,f-m-g,e,a);d.restore()}var q=Z.prototype;q.ca=function(d){this.ba=d;this.b=d.b};var l=q.ca.prototype;l.G=function(){this.A||(this.q=new Image,this.q.pl=this.zk,this.b.Hk(this.q,this.ki),this.wi=this.Ai=this.yi=this.xi=this.Jg=this.p=this.no=this.Zq=this.xq=this.xp=this.El=null)};l.Vh=function(){this.A||(this.wi=this.Ai=this.yi=this.xi=this.Jg=this.p=null)};
l.Wh=function(){this.A||!this.c.length||this.p||(this.p=this.b.k.tc(this.q,!0,this.b.O,this.Qe))};l.oi=function(){this.A||this.c.length||!this.b.k||(this.b.k.deleteTexture(this.p),this.b.k.deleteTexture(this.Jg),this.b.k.deleteTexture(this.xi),this.b.k.deleteTexture(this.yi),this.b.k.deleteTexture(this.Ai),this.b.k.deleteTexture(this.wi),this.wi=this.Ai=this.yi=this.xi=this.Jg=this.p=null)};l.Ad=function(d,l,n,p){var b=document.createElement("canvas");n=n-d;p=p-l;b.width=n;b.height=p;b.getContext("2d").drawImage(this.q,
d,l,n,p,0,0,n,p);return b};l.Mt=function(d,l,n,p){var b=this.q.width,f=this.q.height,e=b-l,a=f-p;if(this.b.k){if(!this.Jg){var c=this.b.k,g=this.b.O,m=this.Qe;e>d&&a>n&&(this.Jg=c.tc(this.Ad(d,n,e,a),!0,g,m));0<d&&a>n&&(this.xi=c.tc(this.Ad(0,n,d,a),!0,g,m,"repeat-y"));0<l&&a>n&&(this.yi=c.tc(this.Ad(e,n,b,a),!0,g,m,"repeat-y"));0<n&&e>d&&(this.Ai=c.tc(this.Ad(d,0,e,n),!0,g,m,"repeat-x"));0<p&&e>d&&(this.wi=c.tc(this.Ad(d,a,e,f),!0,g,m,"repeat-x"))}}else this.El||(c=this.b.ka,e>d&&a>n&&(this.El=c.createPattern(this.Ad(d,
n,e,a),"repeat")),0<d&&a>n&&(this.xp=c.createPattern(this.Ad(0,n,d,a),"repeat")),0<l&&a>n&&(this.xq=c.createPattern(this.Ad(e,n,b,a),"repeat")),0<n&&e>d&&(this.Zq=c.createPattern(this.Ad(d,0,e,n),"repeat")),0<p&&e>d&&(this.no=c.createPattern(this.Ad(d,a,e,f),"repeat")))};q.V=function(d){this.type=d;this.b=d.b};l=q.V.prototype;l.G=function(){this.qm=this.u[0];this.Wm=this.u[1];this.ln=this.u[2];this.gl=this.u[3];this.oj=this.u[4];this.fill=this.u[5];this.visible=0===this.u[6];this.Bq=0!==this.u[8];
this.xc?this.Zd.set(0,0,0,0):this.Zd=new ua(0,0,0,0);this.b.k&&!this.type.p&&(this.type.p=this.b.k.tc(this.type.q,!1,this.b.O,this.type.Qe));this.type.Mt(this.qm,this.Wm,this.ln,this.gl)};l.Zc=function(k){var l=this.type.q,n=this.qm,p=this.Wm,b=this.ln,f=this.gl,e=l.width,a=l.height,c=e-p,g=a-f;k.globalAlpha=this.opacity;k.save();var m=this.x,h=this.y,t=this.width,q=this.height;this.b.wc&&(m=Math.round(m),h=Math.round(h));var r=-(this.Ib*this.width),w=-(this.Jb*this.height),W=r%e,y=w%a;0>W&&(W+=e);
0>y&&(y+=a);k.translate(m+W,h+y);e=r-W;w-=y;y=this.Bq?1:0;0<n&&0<b&&k.drawImage(l,0,0,n+y,b+y,e,w,n+y,b+y);0<p&&0<b&&k.drawImage(l,c-y,0,p+y,b+y,e+t-p-y,w,p+y,b+y);0<p&&0<f&&k.drawImage(l,c-y,g-y,p+y,f+y,e+t-p-y,w+q-f-y,p+y,f+y);0<n&&0<f&&k.drawImage(l,0,g-y,n+y,f+y,e,w+q-f-y,n+y,f+y);0===this.oj?(y=2===this.fill?0:y,0<n&&g>b&&d(k,this.type.xp,n,g-b,e,w+b,n+y,q-b-f,0,0),0<p&&g>b&&d(k,this.type.xq,p,g-b,e+t-p-y,w+b,p+y,q-b-f,y,0),0<b&&c>n&&d(k,this.type.Zq,c-n,b,e+n,w,t-n-p,b+y,0,0),0<f&&c>n&&d(k,
this.type.no,c-n,f,e+n,w+q-f-y,t-n-p,f+y,0,y)):1===this.oj&&(0<n&&g>b&&0<q-b-f&&k.drawImage(l,0,b,n,g-b,e,w+b,n,q-b-f),0<p&&g>b&&0<q-b-f&&k.drawImage(l,c,b,p,g-b,e+t-p,w+b,p,q-b-f),0<b&&c>n&&0<t-n-p&&k.drawImage(l,n,0,c-n,b,e+n,w,t-n-p,b),0<f&&c>n&&0<t-n-p&&k.drawImage(l,n,g,c-n,f,e+n,w+q-f,t-n-p,f));g>b&&c>n&&(0===this.fill?d(k,this.type.El,c-n,g-b,e+n,w+b,t-n-p,q-b-f,0,0):1===this.fill&&0<t-n-p&&0<q-b-f&&k.drawImage(l,n,b,c-n,g-b,e+n,w+b,t-n-p,q-b-f));k.restore()};l.Kd=function(d,l,n,p,b,f,e,a,
c,g){d.Pb(l);var m=this.Zd;m.left=n/l.Wc;m.top=p/l.Vc;m.right=(n+b)/l.Wc;m.bottom=(p+f)/l.Vc;d.Lc(e,a,e+c,a,e+c,a+g,e,a+g,m)};l.mi=function(d,l,n,p,b,f,e,a){d.Pb(l);var c=this.Zd;c.left=-e/l.Wc;c.top=-a/l.Vc;c.right=(b-e)/l.Wc;c.bottom=(f-a)/l.Vc;d.Lc(n,p,n+b,p,n+b,p+f,n,p+f,c)};l.ze=function(d){this.Fb(d)};l.Fb=function(d){var l=this.qm,n=this.Wm,p=this.ln,b=this.gl,f=this.type.q.width-n,e=this.type.q.height-b;d.Ne(this.opacity);var a=this.Wb,c=a.Aa,a=a.Ba,g=this.width,m=this.height;this.b.wc&&(c=
Math.round(c),a=Math.round(a));var h=this.Bq?1:0;0<l&&0<p&&this.Kd(d,this.type.p,0,0,l+h,p+h,c,a,l+h,p+h);0<n&&0<p&&this.Kd(d,this.type.p,f-h,0,n+h,p+h,c+g-n-h,a,n+h,p+h);0<n&&0<b&&this.Kd(d,this.type.p,f-h,e-h,n+h,b+h,c+g-n-h,a+m-b-h,n+h,b+h);0<l&&0<b&&this.Kd(d,this.type.p,0,e-h,l+h,b+h,c,a+m-b-h,l+h,b+h);0===this.oj?(h=2===this.fill?0:h,0<l&&e>p&&this.mi(d,this.type.xi,c,a+p,l+h,m-p-b,0,0),0<n&&e>p&&this.mi(d,this.type.yi,c+g-n-h,a+p,n+h,m-p-b,h,0),0<p&&f>l&&this.mi(d,this.type.Ai,c+l,a,g-l-n,
p+h,0,0),0<b&&f>l&&this.mi(d,this.type.wi,c+l,a+m-b-h,g-l-n,b+h,0,h)):1===this.oj&&(0<l&&e>p&&this.Kd(d,this.type.p,0,p,l,e-p,c,a+p,l,m-p-b),0<n&&e>p&&this.Kd(d,this.type.p,f,p,n,e-p,c+g-n,a+p,n,m-p-b),0<p&&f>l&&this.Kd(d,this.type.p,l,0,f-l,p,c+l,a,g-l-n,p),0<b&&f>l&&this.Kd(d,this.type.p,l,e,f-l,b,c+l,a+m-b,g-l-n,b));e>p&&f>l&&(0===this.fill?this.mi(d,this.type.Jg,c+l,a+p,g-l-n,m-p-b,0,0):1===this.fill&&this.Kd(d,this.type.p,l,p,f-l,e-p,c+l,a+p,g-l-n,m-p-b))};q.d=new function(){};q.e=new function(){};
q.g=new function(){}})();function Y(d){this.b=d}
(function(){function d(){if(0===this.ul.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Ag?b.drawImage(this.q,this.pg,this.qg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.q,0,0,this.width,this.height);this.ul=a.toDataURL("image/png")}return this.ul}function q(){}function l(b,d,f){if(!b)return!1;var k=0!==d||0!==f,l,n,p=!1,q,u=this.b.Cj(),K=u.type,u=u.Wf,J=b.R();q=this.b.Ha().Ka.vc;J.U?(this.Ca(),m.Pf(this.Ta),
m.offset(d,f),this.b.bv(this.j,b,m,g),J=g):J=q?this.b.Qv()&&!J.H.length&&J.c.length?J.c:J.H:J.c;e=b;c=K!==b&&!u;k&&(l=this.x,n=this.y,this.x+=d,this.y+=f,this.ua());d=0;for(f=J.length;d<f;d++)if(q=J[d],this.b.gx(this,q)){p=!0;if(u)break;K!==b&&a.add(q)}k&&(this.x=l,this.y=n,this.ua());H(g);return p}function k(){}function u(){}var n=Y.prototype;n.ca=function(a){this.ba=a;this.b=a.b};var p=n.ca.prototype;p.G=function(){if(!this.A){var a,b,c,e,f,g,k,m,l;this.Qc=[];this.ih=!1;a=0;for(b=this.Vb.length;a<
b;a++){f=this.Vb[a];k={};k.name=f[0];k.speed=f[1];k.loop=f[2];k.Um=f[3];k.Vm=f[4];k.mq=f[5];k.Y=f[6];k.frames=[];c=0;for(e=f[7].length;c<e;c++)g=f[7][c],m={},m.ki=g[0],m.zk=g[1],m.pg=g[2],m.qg=g[3],m.width=g[4],m.height=g[5],m.duration=g[6],m.Ib=g[7],m.Jb=g[8],m.Yl=g[9],m.fk=g[10],m.nq=g[11],m.Ag=0!==m.width,m.ul="",m.Zx=d,l={left:0,top:0,right:1,bottom:1},m.dn=l,m.p=null,(l=this.b.Uu(g[0]))?m.q=l:(m.q=new Image,m.q.Jt=g[0],m.q.pl=g[1],m.q.Gt=null,this.b.Hk(m.q,g[0])),k.frames.push(m),this.Qc.push(m);
this.Vb[a]=k}}};p.ir=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.hj=c.Yb.p};p.Vh=function(){if(!this.A){var a,b,c;a=0;for(b=this.Qc.length;a<b;++a)c=this.Qc[a],c.q.Gt=null,c.p=null;this.ih=!1;this.ir()}};p.Wh=function(){if(!this.A&&this.c.length){var a,b,c;a=0;for(b=this.Qc.length;a<b;++a)c=this.Qc[a],c.p=this.b.k.tc(c.q,!1,this.b.O,c.nq);this.ir()}};p.rm=function(){if(!this.A&&!this.ih&&this.b.k){var a,b,c;a=0;for(b=this.Qc.length;a<b;++a)c=this.Qc[a],c.p=this.b.k.tc(c.q,!1,
this.b.O,c.nq);this.ih=!0}};p.oi=function(){if(!this.A&&!this.c.length&&this.ih){var a,b,c;a=0;for(b=this.Qc.length;a<b;++a)c=this.Qc[a],this.b.k.deleteTexture(c.p),c.p=null;this.ih=!1}};var b=[];p.jk=function(a){var c,d,e;H(b);c=0;for(d=this.Qc.length;c<d;++c)e=this.Qc[c].q,-1===b.indexOf(e)&&(a.drawImage(e,0,0),b.push(e))};n.V=function(a){this.type=a;this.b=a.b;a=this.type.Vb[0].frames[0].fk;this.xc?this.ja.ei(a):this.ja=new gb(a)};var f=n.V.prototype;f.G=function(){this.visible=0===this.u[0];this.jh=
this.pf=!1;this.We=0!==this.u[3];1===this.type.Vb.length&&1===this.type.Vb[0].frames.length||0===this.type.Vb[0].speed||(this.b.Df(this),this.pf=!0);this.ra=this.Mo(this.u[1])||this.type.Vb[0];this.B=this.u[2];0>this.B&&(this.B=0);this.B>=this.ra.frames.length&&(this.B=this.ra.frames.length-1);var a=this.ra.frames[this.B];this.ja.ei(a.fk);this.Ib=a.Ib;this.Jb=a.Jb;this.Xg=this.ra.speed;this.ye=this.ra.Vm;this.xc?this.Rc.reset():this.Rc=new eb;this.pd=this.Rc.Z;this.Ed=!0;this.Fd=0;this.Ue=!0;this.Nf=
this.io="";this.so=0;this.Rg=-1;this.type.rm();var b,c,d,e,f,g,k,a=0;for(b=this.type.Vb.length;a<b;a++)for(e=this.type.Vb[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.q.width,f.height=f.q.height),f.Ag&&(k=f.q,g=f.dn,g.left=f.pg/k.width,g.top=f.qg/k.height,g.right=(f.pg+f.width)/k.width,g.bottom=(f.qg+f.height)/k.height,0===f.pg&&0===f.qg&&f.width===k.width&&f.height===k.height&&(f.Ag=!1));this.Yb=this.ra.frames[this.B];this.hj=this.Yb.p};f.Bb=function(){var a={a:this.ra.Y,
f:this.B,cas:this.Xg,fs:this.pd,ar:this.Fd,at:this.Rc.Z,rt:this.ye};this.Ed||(a.ap=this.Ed);this.Ue||(a.af=this.Ue);return a};f.Ob=function(a){var b=this.Zu(a.a);b&&(this.ra=b);this.B=a.f;0>this.B&&(this.B=0);this.B>=this.ra.frames.length&&(this.B=this.ra.frames.length-1);this.Xg=a.cas;this.pd=a.fs;this.Fd=a.ar;this.Rc.reset();this.Rc.Z=a.at;this.Ed=a.hasOwnProperty("ap")?a.ap:!0;this.Ue=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.ye=a.rt:this.ye=this.ra.Vm;this.Yb=this.ra.frames[this.B];
this.hj=this.Yb.p;this.ja.ei(this.Yb.fk);this.Ib=this.Yb.Ib;this.Jb=this.Yb.Jb};f.dl=function(a){this.B=a?0:this.ra.frames.length-1;this.Ed=!1;this.io=this.ra.name;this.jh=!0;this.b.trigger(Y.prototype.d.ms,this);this.b.trigger(Y.prototype.d.Mn,this);this.jh=!1;this.Fd=0};f.lo=function(){return this.Rc.Z};f.lb=function(){this.Rc.add(this.b.Dj(this));this.Nf.length&&this.xo();0<=this.Rg&&this.zl();var a=this.Rc.Z,b=this.ra,c=b.frames[this.B],d=c.duration/this.Xg;this.Ed&&a>=this.pd+d&&(this.Ue?this.B++:
this.B--,this.pd+=d,this.B>=b.frames.length&&(b.mq?(this.Ue=!1,this.B=b.frames.length-2):b.loop?this.B=this.ye:(this.Fd++,this.Fd>=b.Um?this.dl(!1):this.B=this.ye)),0>this.B&&(b.mq?(this.B=1,this.Ue=!0,b.loop||(this.Fd++,this.Fd>=b.Um&&this.dl(!0))):b.loop?this.B=this.ye:(this.Fd++,this.Fd>=b.Um?this.dl(!0):this.B=this.ye)),0>this.B?this.B=0:this.B>=b.frames.length&&(this.B=b.frames.length-1),a>this.pd+b.frames[this.B].duration/this.Xg&&(this.pd=a),a=b.frames[this.B],this.If(c,a),this.b.ga=!0)};f.Mo=
function(a){var b,c,d;b=0;for(c=this.type.Vb.length;b<c;b++)if(d=this.type.Vb[b],mb(d.name,a))return d;return null};f.Zu=function(a){var b,c,d;b=0;for(c=this.type.Vb.length;b<c;b++)if(d=this.type.Vb[b],d.Y===a)return d;return null};f.xo=function(){var a=this.ra.frames[this.B],b=this.Mo(this.Nf);this.Nf="";!b||mb(b.name,this.ra.name)&&this.Ed||(this.ra=b,this.Xg=b.speed,this.ye=b.Vm,0>this.B&&(this.B=0),this.B>=this.ra.frames.length&&(this.B=this.ra.frames.length-1),1===this.so&&(this.B=0),this.Ed=
!0,this.pd=this.Rc.Z,this.Ue=!0,this.If(a,this.ra.frames[this.B]),this.b.ga=!0)};f.zl=function(){var a=this.ra.frames[this.B],b=this.B;this.B=D(this.Rg);0>this.B&&(this.B=0);this.B>=this.ra.frames.length&&(this.B=this.ra.frames.length-1);b!==this.B&&(this.If(a,this.ra.frames[this.B]),this.pd=this.Rc.Z,this.b.ga=!0);this.Rg=-1};f.If=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.Ib=b.Ib;this.Jb=b.Jb;this.ja.ei(b.fk);this.ua();this.Yb=
b;this.hj=b.p;c=0;for(d=this.M.length;c<d;c++)e=this.M[c],e.rw&&e.rw(a,b);this.b.trigger(Y.prototype.d.If,this)};f.Zc=function(a){a.globalAlpha=this.opacity;var b=this.Yb,c=b.Ag,d=b.q,e=this.x,f=this.y,g=this.width,k=this.height;if(0===this.m&&0<=g&&0<=k)e-=this.Ib*g,f-=this.Jb*k,this.b.wc&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.pg,b.qg,b.width,b.height,e,f,g,k):a.drawImage(d,e,f,g,k);else{this.b.wc&&(e=Math.round(e),f=Math.round(f));a.save();var m=0<g?1:-1,l=0<k?1:-1;a.translate(e,f);
1===m&&1===l||a.scale(m,l);a.rotate(this.m*m*l);e=0-this.Ib*la(g);f=0-this.Jb*la(k);c?a.drawImage(d,b.pg,b.qg,b.width,b.height,e,f,la(g),la(k)):a.drawImage(d,e,f,la(g),la(k));a.restore()}};f.ze=function(a){this.Fb(a)};f.Fb=function(a){a.Pb(this.hj);a.Ne(this.opacity);var b=this.Yb,c=this.Wb;if(this.b.wc){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Ag?a.Lc(c.Aa+d,c.Ba+e,c.mb+d,c.nb+e,c.ab+d,c.bb+e,c.Za+d,c.$a+e,b.dn):a.$h(c.Aa+d,c.Ba+e,c.mb+d,c.nb+e,c.ab+d,c.bb+e,c.Za+d,c.$a+e)}else b.Ag?
a.Lc(c.Aa,c.Ba,c.mb,c.nb,c.ab,c.bb,c.Za,c.$a,b.dn):a.$h(c.Aa,c.Ba,c.mb,c.nb,c.ab,c.bb,c.Za,c.$a)};f.hv=function(a){var b=this.Yb,c,d;c=0;for(d=b.Yl.length;c<d;c++)if(mb(a,b.Yl[c][0]))return c;return-1};f.hf=function(a,b){var c=this.Yb,d=c.Yl,e;A(a)?e=this.hv(a):e=a-1;e=D(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Ib)*this.width,d=d[e][2],d=(d-c.Jb)*this.height,c=Math.cos(this.m);e=Math.sin(this.m);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var e=null,a=new da,
c=!1,g=[],m=new ua(0,0,0,0);p.finish=function(b){if(c){if(b){var d=this.b.Ha().Ka.vc;b=e.R();var f=a.Se(),g,k;if(b.U){b.U=!1;H(b.c);g=0;for(k=f.length;g<k;++g)b.c[g]=f[g];if(d)for(H(b.H),g=0,k=e.c.length;g<k;++g)f=e.c[g],a.contains(f)||b.H.push(f)}else if(d)for(d=b.c.length,g=0,k=f.length;g<k;++g)b.c[d+g]=f[g],Fa(b.H,f[g]);else Ba(b.c,f);e.Sc()}a.clear();c=!1}};q.prototype.$r=function(a){return l.call(this,a,0,0)};q.prototype.as=function(a,b,c){return l.call(this,a,b,c)};q.prototype.Tr=function(a){return this.Nf.length?
mb(this.Nf,a):mb(this.ra.name,a)};q.prototype.Mn=function(a){return mb(this.io,a)};q.prototype.ms=function(){return!0};q.prototype.If=function(){return!0};n.d=new q;k.prototype.gt=function(a,b,c){if(a&&b&&(b=this.b.ql(a,b,this.hf(c,!0),this.hf(c,!1)))){"undefined"!==typeof b.m&&(b.m=this.m,b.ua());this.b.sc++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.ba).d.Cd,b);if(b.Kb)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.ba).d.Cd,f);this.b.sc--;d=
this.b.cv();c=!1;if(ha(d.la.Spawn_LastExec)||d.la.Spawn_LastExec<this.b.ef)c=!0,d.la.Spawn_LastExec=this.b.ef;if(a!=this.type&&(a=a.R(),a.U=!1,c?(H(a.c),a.c[0]=b):a.c.push(b),b.Kb))for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],a=f.type.R(),a.U=!1,c?(H(a.c),a.c[0]=f):a.c.push(f)}};k.prototype.kt=function(){this.Ed=!1};k.prototype.it=function(a){this.Ed=!0;this.pd=this.Rc.Z;1===a&&0!==this.B&&(this.Rg=0,this.jh||this.zl());this.pf||(this.b.Df(this),this.pf=!0)};k.prototype.Qs=function(a,b){this.Nf=
a;this.so=b;this.pf||(this.b.Df(this),this.pf=!0);this.jh||this.xo()};k.prototype.Rs=function(a){this.Rg=a;this.pf||(this.b.Df(this),this.pf=!0);this.jh||this.zl()};k.prototype.Yk=function(a){var b=this.Yb,c=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width=c,this.height=a,this.ua()};n.e=new k;u.prototype.Rr=function(a,b){a.C(this.hf(b,!0))};u.prototype.Sr=function(a,b){a.C(this.hf(b,!1))};u.prototype.Jn=function(a){a.C(this.Yb.width)};u.prototype.In=
function(a){a.C(this.Yb.height)};n.g=new u})();function vc(d){this.b=d}
(function(){function d(a,b){return a.length?a.pop():new b}function q(a,b,c){if(c){var d;c=0;for(d=b.length;c<d;c++)a.length<p&&a.push(b[c]);H(b)}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<p&&a.push(b[d]),delete b[d])}function l(a,c,e){var f=a.uf;e=e.replace(/\s\s*$/,"");c>=f.length&&f.push(d(b,Object));c=f[c];c.text=e;c.width=a.ym(e);a.Eg=oa(a.Eg,c.width)}function k(){}var u=vc.prototype;u.G=function(){};u.ca=function(a){this.ba=a;this.b=a.b};var n=u.ca.prototype;n.G=function(){this.A||
(this.q=new Image,this.b.Hk(this.q,this.ki),this.p=null)};n.Vh=function(){this.A||(this.p=null)};n.Wh=function(){if(!this.A&&this.c.length){this.p||(this.p=this.b.k.tc(this.q,!1,this.b.O,this.Qe));var a,b;a=0;for(b=this.c.length;a<b;a++)this.c[a].p=this.p}};n.oi=function(){this.A||this.c.length||!this.p||(this.b.k.deleteTexture(this.p),this.p=null)};n.jk=function(a){a.drawImage(this.q,0,0)};u.V=function(a){this.type=a;this.b=a.b};n=u.V.prototype;n.zf=function(){q(b,this.uf,!0);q(f,this.bj,!1);q(e,
this.cj,!1);Wa(this.ue)};n.G=function(){this.q=this.type.q;this.aj=this.u[0];this.te=this.u[1];this.characterSet=this.u[2];this.text=this.u[3];this.ld=this.u[4];this.visible=0===this.u[5];this.hh=this.u[6]/2;this.Fk=this.u[7]/2;this.vx=0===this.u[9];this.Of=this.u[10];this.lineHeight=this.u[11];this.Bf=this.Eg=0;this.xc?(H(this.uf),Wa(this.bj),Wa(this.cj),Wa(this.ue)):(this.uf=[],this.bj={},this.cj={},this.ue={});this.Cf=!0;this.om=this.width;this.b.k&&(this.type.p||(this.type.p=this.b.k.tc(this.type.q,
!1,this.b.O,this.type.Qe)),this.p=this.type.p);this.ht()};n.Bb=function(){var a={t:this.text,csc:this.ld,csp:this.Of,lh:this.lineHeight,tw:this.Eg,th:this.Bf,lrt:this.Yv,ha:this.hh,va:this.Fk,cw:{}},b;for(b in this.ue)a.cw[b]=this.ue[b];return a};n.Ob=function(a){this.text=a.t;this.ld=a.csc;this.Of=a.csp;this.lineHeight=a.lh;this.Eg=a.tw;this.Bf=a.th;this.Yv=a.lrt;a.hasOwnProperty("ha")&&(this.hh=a.ha);a.hasOwnProperty("va")&&(this.Fk=a.va);for(var b in a.cw)this.ue[b]=a.cw[b];this.Cf=!0;this.om=
this.width};var p=1E3,b=[],f=[],e=[];n.ht=function(){for(var a=this.q,b=a.width,c=a.height,a=this.aj,k=this.te,l=a/b,n=k/c,p=this.characterSet,b=Math.floor(b/a),c=Math.floor(c/k),q=0;q<p.length&&!(q>=b*c);q++){var u=q%b,E=Math.floor(q/b),C=p.charAt(q);if(this.b.k){var K=this.cj,J=u*l,x=E*n,u=(u+1)*l,E=(E+1)*n;void 0===K[C]&&(K[C]=d(e,ua));K[C].left=J;K[C].top=x;K[C].right=u;K[C].bottom=E}else K=this.bj,u=u*a,E=E*k,J=a,x=k,void 0===K[C]&&(K[C]=d(f,Object)),K[C].x=u,K[C].y=E,K[C].nr=J,K[C].Ro=x}};var a=
[];u.ot=function(b){H(a);for(var c="",d,e=0;e<b.length;)if(d=b.charAt(e),"\n"===d)c.length&&(a.push(c),c=""),a.push("\n"),++e;else if(" "===d||"\t"===d||"-"===d){do c+=b.charAt(e),e++;while(e<b.length&&(" "===b.charAt(e)||"\t"===b.charAt(e)));a.push(c);c=""}else e<b.length&&(c+=d,e++);c.length&&a.push(c)};u.tt=function(a){var c=a.text,e=a.uf;if(c&&c.length){var f=a.width;if(2>=f)q(b,e,!0);else{var k=a.ld,l=a.Of;if(c.length*(a.aj*k+l)-l<=f&&-1===c.indexOf("\n")&&(l=a.ym(c),l<=f)){q(b,e,!0);e.push(d(b,
Object));e[0].text=c;e[0].width=l;a.Eg=l;a.Bf=a.te*k+a.lineHeight;return}this.ut(a);a.Bf=e.length*(a.te*k+a.lineHeight)}}else q(b,e,!0)};u.ut=function(c){var d=c.vx,e=c.text,f=c.uf,k=c.width;d&&(this.ot(e),e=a);var n="",q,u,y,E=0,C=!1;for(y=0;y<e.length;y++)"\n"===e[y]?(!0===C?C=!1:(l(c,E,n),E++),n=""):(C=!1,q=n,n+=e[y],u=c.ym(n.replace(/\s\s*$/,"")),u>k&&(""===q?(l(c,E,n),n="",C=!0):(l(c,E,q),n=e[y]),E++,d||" "!==n||(n="")));n.replace(/\s\s*$/,"").length&&(l(c,E,n),E++);for(y=E;y<f.length;y++)b.length<
p&&b.push(f[y]);f.length=E};n.ym=function(a){for(var b=this.Of,c=a.length,d=0,e=0;e<c;e++)d+=this.Kl(a.charAt(e))*this.ld+b;return d-(0<d?b:0)};n.Kl=function(a){var b=this.ue;return void 0!==b[a]?b[a]:this.aj};n.tq=function(){if(this.Cf||this.width!==this.om)this.Bf=this.Eg=0,this.type.ba.tt(this),this.Cf=!1,this.om=this.width};n.Zc=function(a){var b=this.q;if(""!==this.text&&null!=b&&(this.tq(),!(this.height<this.te*this.ld+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.wc&&
(b=Math.round(b),c=Math.round(c));var d=this.j.wa,e=this.j.xa,f=this.j.Ea,k=this.j.Da;a.save();a.translate(b,c);a.rotate(this.m);for(var l=this.hh,n=this.ld,p=this.te*n,q=this.lineHeight,u=this.Of,J=this.uf,x,O=-(this.Ib*this.width),I=-(this.Jb*this.height),I=I+this.Fk*oa(0,this.height-this.Bf),R,v,Q,T=0;T<J.length;T++){var B=J[T].text;x=l*oa(0,this.width-J[T].width);R=O+x;I+=q;if(c+I+p<e)I+=p;else{for(var G=0;G<B.length;G++){v=B.charAt(G);x=this.Kl(v);var z=this.bj[v];if(b+R+x*n+u<d)R+=x*n+u;else{if(R+
x*n>this.width+1E-5)break;void 0!==z&&(v=R,Q=I,0===this.m&&(v=Math.round(v),Q=Math.round(Q)),a.drawImage(this.q,z.x,z.y,z.nr,z.Ro,v,Q,z.nr*n,z.Ro*n));R+=x*n+u;if(b+R>f)break}}I+=p;if(I+p+q>this.height||c+I>k)break}}a.restore()}};var c=new va;n.Fb=function(a){a.Pb(this.p);a.Ne(this.opacity);if(this.text&&(this.tq(),!(this.height<this.te*this.ld+this.lineHeight))){this.Ca();var b=this.Wb,d=0,e=0;this.b.wc&&(d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y);var f=this.j.wa,k=this.j.xa,n=this.j.Ea,
l=this.j.Da,p=this.m,q=this.hh,u=this.Fk,K=this.ld,J=this.te*K,x=this.lineHeight,O=this.Of,I=this.uf,R=this.Bf,v,Q,T;0!==p&&(Q=Math.cos(p),T=Math.sin(p));for(var d=b.Aa+d,b=b.Ba+e,B,u=u*oa(0,this.height-R),G,z,R=0;R<I.length;R++)if(e=I[R].text,B=v=q*oa(0,this.width-I[R].width),u+=x,0===p&&b+u+J<k)u+=J;else{for(var L=0;L<e.length;L++){var S=e.charAt(L);v=this.Kl(S);S=this.cj[S];if(d+B+v*K+O<f)B+=v*K+O;else{if(B+v*K>this.width+1E-5)break;if(void 0!==S){var M=this.aj*K,F=this.te*K;G=B;z=u;0===p&&(G=
Math.round(G),z=Math.round(z));c.Aa=G;c.Ba=z;c.mb=G+M;c.nb=z;c.Za=G;c.$a=z+F;c.ab=G+M;c.bb=z+F;0!==p&&(G=c,z=Q,M=T,F=void 0,F=G.Aa*z-G.Ba*M,G.Ba=G.Ba*z+G.Aa*M,G.Aa=F,F=G.mb*z-G.nb*M,G.nb=G.nb*z+G.mb*M,G.mb=F,F=G.Za*z-G.$a*M,G.$a=G.$a*z+G.Za*M,G.Za=F,F=G.ab*z-G.bb*M,G.bb=G.bb*z+G.ab*M,G.ab=F);c.offset(d,b);a.Lc(c.Aa,c.Ba,c.mb,c.nb,c.ab,c.bb,c.Za,c.$a,S)}B+=v*K+O;if(0===p&&d+B>n)break}}u+=J;if(u+J+x>this.height||b+u>l)break}}};u.d=new function(){};k.prototype.ct=function(a){ia(a)&&1E9>a&&(a=Math.round(1E10*
a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Cf=!0,this.b.ga=!0)};k.prototype.Yk=function(a){a!==this.ld&&(this.ld=a,this.Cf=!0,this.b.ga=!0)};n.Ss=function(a,b){var c=parseInt(b,10);this.ue[a]!==c&&(this.ue[a]=c,this.Cf=!0,this.b.ga=!0)};k.prototype.Ts=function(a,b){if(""!==a)for(var c=0;c<a.length;c++)this.Ss(a.charAt(c),b)};k.prototype.Vs=function(a){this.hh=a/2;this.Cf=!0;this.b.ga=!0};u.e=new k;u.g=new function(){}})();function wc(d){this.b=d}
(function(){function d(){}var q=wc.prototype;q.ca=function(d){this.ba=d;this.b=d.b};var l=q.ca.prototype;l.G=function(){this.A||(this.q=new Image,this.q.pl=this.zk,this.b.Hk(this.q,this.ki),this.p=this.pattern=null)};l.Vh=function(){this.A||(this.p=null)};l.Wh=function(){if(!this.A&&this.c.length){this.p||(this.p=this.b.k.tc(this.q,!0,this.b.O,this.Qe));var d,l;d=0;for(l=this.c.length;d<l;d++)this.c[d].p=this.p}};l.rm=function(){this.A||this.p||!this.b.k||(this.p=this.b.k.tc(this.q,!0,this.b.O,this.Qe))};
l.oi=function(){this.A||this.c.length||!this.p||(this.b.k.deleteTexture(this.p),this.p=null)};l.jk=function(d){d.drawImage(this.q,0,0)};q.V=function(d){this.type=d;this.b=d.b};l=q.V.prototype;l.G=function(){this.visible=0===this.u[0];this.Zd=new ua(0,0,0,0);this.Vo=!1;this.q=this.type.q;this.b.k?(this.type.rm(),this.p=this.type.p):(this.type.pattern||(this.type.pattern=this.b.ka.createPattern(this.type.q,"repeat")),this.pattern=this.type.pattern)};l.Dd=function(){this.Vo=!1;this.q=this.type.q};l.zf=
function(){this.b.k&&this.Vo&&this.p&&(this.b.k.deleteTexture(this.p),this.p=null)};l.Zc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var l=this.x,n=this.y;this.b.wc&&(l=Math.round(l),n=Math.round(n));var p=-(this.Ib*this.width),b=-(this.Jb*this.height),f=p%this.q.width,e=b%this.q.height;0>f&&(f+=this.q.width);0>e&&(e+=this.q.height);d.translate(l,n);d.rotate(this.m);d.translate(f,e);d.fillRect(p-f,b-e,this.width,this.height);d.restore()};l.ze=function(d){this.Fb(d)};l.Fb=
function(d){d.Pb(this.p);d.Ne(this.opacity);var l=this.Zd;l.right=this.width/this.q.width;l.bottom=this.height/this.q.height;var n=this.Wb;if(this.b.wc){var p=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;d.Lc(n.Aa+p,n.Ba+b,n.mb+p,n.nb+b,n.ab+p,n.bb+b,n.Za+p,n.$a+b,l)}else d.Lc(n.Aa,n.Ba,n.mb,n.nb,n.ab,n.bb,n.Za,n.$a,l)};q.d=new function(){};q.e=new function(){};d.prototype.Jn=function(d){d.C(this.q.width)};d.prototype.In=function(d){d.C(this.q.height)};q.g=new d})();
function xc(d){this.b=d}
(function(){function d(){}function q(){}function l(){}var k=xc.prototype;k.ca=function(d){this.ba=d;this.b=d.b};k.ca.prototype.G=function(){};k.V=function(d){this.type=d;this.b=d.b};var u=k.V.prototype,n=window.URL||window.webkitURL||window.mozURL||window.msURL;u.G=function(){if(this.b.Oa)fa("[Construct 2] File Chooser plugin not supported on this platform - the object will not be created");else{this.Gb=document.createElement("input");this.Gb.type="file";this.Gb.setAttribute("accept",this.u[0]);0!==
this.u[1]&&this.Gb.setAttribute("multiple","");this.Gb.id=this.u[3];jQuery(this.Gb).appendTo(this.b.$i?this.b.$i:"body");this.$e=!1;0===this.u[2]&&(jQuery(this.Gb).hide(),this.visible=!1,this.$e=!0);var d=this;this.Gb.onchange=function(){d.b.trigger(xc.prototype.d.On,d)};this.sp=this.tp=this.lp=this.pp=this.rp=this.np=0;this.jr(!0);this.b.Df(this)}};u.zf=function(){this.b.Oa||(jQuery(this.Gb).remove(),this.Gb=null)};u.lb=function(){this.jr()};u.jr=function(d){if(!this.b.Oa){var b=this.j.gb(this.x,
this.y,!0),f=this.j.gb(this.x,this.y,!1),e=this.j.gb(this.x+this.width,this.y+this.height,!0),a=this.j.gb(this.x+this.width,this.y+this.height,!1),c=this.b.width/this.b.devicePixelRatio,g=this.b.height/this.b.devicePixelRatio;!this.visible||!this.j.visible||0>=e||0>=a||b>=c||f>=g?(this.$e||jQuery(this.Gb).hide(),this.$e=!0):(1>b&&(b=1),1>f&&(f=1),e>=c&&(e=c-1),a>=g&&(a=g-1),c=window.innerWidth,g=window.innerHeight,d||this.np!==b||this.rp!==f||this.pp!==e||this.lp!==a||this.tp!==c||this.sp!==g?(this.np=
b,this.rp=f,this.pp=e,this.lp=a,this.tp=c,this.sp=g,this.$e&&(jQuery(this.Gb).show(),this.$e=!1),d=Math.round(b)+jQuery(this.b.canvas).offset().left,c=Math.round(f)+jQuery(this.b.canvas).offset().top,jQuery(this.Gb).css("position","absolute"),jQuery(this.Gb).offset({left:d,top:c}),jQuery(this.Gb).width(Math.round(e-b)),jQuery(this.Gb).height(Math.round(a-f))):this.$e&&(jQuery(this.Gb).show(),this.$e=!1))}};u.Zc=function(){};u.Fb=function(){};d.prototype.On=function(){return!0};k.d=new d;q.prototype.Li=
function(d){this.b.Oa||(this.visible=0!==d)};k.e=new q;l.prototype.Lr=function(d,b){var f;if(this.b.Oa)f=null;else{f=this.Gb.files;var e=b;f?(e=Math.floor(e),f=0>e||e>=f.length?null:f[e]):f=null}f?f.c2url?d.na(f.c2url):n&&n.createObjectURL?(f.c2url=n.createObjectURL(f),d.na(f.c2url)):d.na(""):d.na("")};k.g=new l})();function yc(d){this.b=d}
(function(){function d(b){var c;if(!a[b])for(a[b]=Array(20),c=0;20>c;++c)a[b][c]=0;return a[b]}function q(a){var b;if(!c[a])for(c[a]=Array(20),b=0;20>b;++b)c[a][b]=0;return c[a]}function l(a,b){return b?4<=a?-1:a+16:16<=a?-1:a}function k(a){e[a.gamepad.index]=a.gamepad;b.trigger(yc.prototype.d.qs,f)}function u(a){b.trigger(yc.prototype.d.rs,f);e[a.gamepad.index]=null}function n(){}var p=yc.prototype;p.ca=function(a){this.ba=a;this.b=a.b};p.ca.prototype.G=function(){};var b=null,f=null,e=Array(16),
a=Array(16),c=Array(16),g="",m="",h=null,t={windows:{}};t.windows.firefox={};var N=[0,1,2,3,4,5,8,9,10,11],r=[0,1,[7,6],2,3,[14,15],[12,13]];t.windows.firefox.xbox360=function(a,b){return b?a>=r.length?-1:ia(r[a])?r[a]+16:r[a]:a>=N.length?-1:N[a]};var w=[2,0,1,3,4,6,5,7,8,9],W=[0,1,2,3,[14,15],[12,13]];t.windows.firefox.logitechdualaction=function(a,b){return b?a>=W.length?-1:ia(W[a])?W[a]+16:W[a]:a>=w.length?-1:w[a]};p.V=function(a){this.type=a;b=this.b=a.b;f=this};var y=p.V.prototype;y.G=function(){this.Nt=
this.u[0];this.Nj=0;var a=navigator.userAgent;g="windows";/mac/i.test(a)&&(g="mac");h=t[g];m="chrome";/firefox/i.test(a)&&(m="firefox");h&&(h=h[m]);window.addEventListener("webkitgamepadconnected",k,!1);window.addEventListener("webkitgamepaddisconnected",u,!1);window.addEventListener("MozGamepadConnected",k,!1);window.addEventListener("MozGamepadDisconnected",u,!1);window.addEventListener("gamepadconnected",k,!1);window.addEventListener("gamepaddisconnected",u,!1);this.b.Df(this);this.Oi=[]};y.lb=
function(){this.Oi.length=0;var b=null,f=!1;navigator.getGamepads?b=navigator.getGamepads():navigator.webkitGetGamepads?b=navigator.webkitGetGamepads():navigator.mozGetGamepads?b=navigator.mozGetGamepads():navigator.msGetGamepads?b=navigator.msGetGamepads():this.b.ip&&window.cr_getGamepads?(b=window.cr_getGamepads(),f=!0):b=navigator.gamepads||navigator.webkitGamepads||navigator.MozGamepads||e;if(b){var g,k,n,m,p,r,t;g=0;for(k=b.length;g<k;g++){var u=b[g];if(u){var w=d(g),y=q(g);m=g;n=d(m);m=q(m);
p=void 0;for(p=0;20>p;++p)m[p]=n[p];f?n=l:h?(n="",m=u.id.toLowerCase(),-1<m.indexOf("xbox 360")?n="xbox360":-1<m.indexOf("logitech dual action")&&(n="logitechdualaction"),n=h[n]||l):n=l;p=n;n=0;for(m=u.buttons.length;n<m;n++)t="undefined"!==typeof u.buttons[n].value?u.buttons[n].value:u.buttons[n],r=p(n,!1,t),0<=r&&20>r&&(w[r]=100*t,50<=w[r]&&50>y[r]&&(this.Nj=r));n=0;for(m=u.axes.length;n<m;n++)t=u.axes[n],r=p(n,!0,t),ia(r)?0<=r&&20>r&&(w[r]=100*t):(w[r[0]]=0,w[r[1]]=0,0>=t?w[r[0]]=Math.abs(100*
t):w[r[1]]=Math.abs(100*t));this.Oi.push(u)}else u=g,a[u]=null,c[u]=null}for(;20>g;++g)b=g,a[b]=null,c[b]=null}};y.Bb=function(){return{lastButton:this.Nj}};y.Ob=function(a){this.Nj=a.lastButton};n.prototype.qs=function(){return!0};n.prototype.rs=function(){return!0};n.prototype.Vr=function(a,b){a=Math.floor(a);if(0>a||a>=this.Oi.length)return!1;var c=d(a);if(!c)return!1;if(c=50<=c[b])this.Nj=b;return c};n.prototype.Ar=function(a,b,c,e){a=Math.floor(a);b=Math.floor(b);if(0>a||a>=this.Oi.length)return!1;
if(a=d(a)){var f=a[b+16],g=0,g=0===b%2?a[b+16+1]:a[b+16-1];Math.sqrt(f*f+g*g)<=this.Nt&&(f=0);return ec(f,c,e)}};p.d=new n;p.e=new function(){};p.g=new function(){}})();function zc(d){this.b=d}
(function(){function d(){}function q(){}function l(){}var k=zc.prototype;k.ca=function(d){this.behavior=d;this.b=d.b};k.ca.prototype.G=function(){};k.V=function(d,k){this.type=d;this.behavior=d.behavior;this.Na=k;this.b=d.b;this.re=this.ub=this.tb=0};var u=k.V.prototype;u.G=function(){this.Cg=this.u[0];this.Qm=this.u[1];this.enabled=0!==this.u[2]};u.Bb=function(){return{dx:this.tb,dy:this.ub,cancelStep:this.re,enabled:this.enabled,stepMode:this.Cg,pxPerStep:this.Qm}};u.Ob=function(d){this.tb=d.dx;
this.ub=d.dy;this.re=d.cancelStep;this.enabled=d.enabled;this.Cg=d.stepMode;this.Qm=d.pxPerStep};u.dh=function(){return Math.sqrt(this.tb*this.tb+this.ub*this.ub)};u.Ma=function(){return Math.atan2(this.ub,this.tb)};u.step=function(d,k,b){if(0!==d||0!==k){var f=this.Na.x,e=this.Na.y,a,c=Math.round(Math.sqrt(d*d+k*k)/this.Qm);0===c&&(c=1);var g;for(g=1;g<=c;g++)if(a=g/c,this.Na.x=f+d*a,this.Na.y=e+k*a,this.Na.ua(),this.b.trigger(b,this.Na),1===this.re){g--;a=g/c;this.Na.x=f+d*a;this.Na.y=e+k*a;this.Na.ua();
break}else if(2===this.re)break}};u.lb=function(){var d=this.b.Dj(this.Na),k=this.tb*d,d=this.ub*d;0===this.tb&&0===this.ub||!this.enabled||(this.re=0,0===this.Cg?(this.Na.x+=k,this.Na.y+=d):1===this.Cg?this.step(k,d,zc.prototype.d.os):2===this.Cg?(this.step(k,0,zc.prototype.d.Qk),this.re=0,this.step(0,d,zc.prototype.d.Rk)):3===this.Cg&&(this.step(0,d,zc.prototype.d.Rk),this.re=0,this.step(k,0,zc.prototype.d.Qk)),this.Na.ua())};d.prototype.Zr=function(){return 0!=this.tb||0!=this.ub};d.prototype.Dr=
function(d,k,b){var f;switch(d){case 0:f=this.dh();break;case 1:f=this.tb;break;case 2:f=this.ub}return ec(f,k,b)};d.prototype.os=function(){return!0};d.prototype.Qk=function(){return!0};d.prototype.Rk=function(){return!0};k.d=new d;q.prototype.ao=function(){this.ub=this.tb=0};q.prototype.bt=function(d,k){var b;switch(d){case 0:b=this.Ma();this.tb=Math.cos(b)*k;this.ub=Math.sin(b)*k;break;case 1:this.tb=k;break;case 2:this.ub=k}};q.prototype.pr=function(d,k){var b=d*this.b.Dj(this.Na),f=V(k);this.tb+=
Math.cos(f)*b;this.ub+=Math.sin(f)*b};q.prototype.Ps=function(d){d=V(d);var k=this.dh();this.tb=Math.cos(d)*k;this.ub=Math.sin(d)*k};q.prototype.mt=function(d){this.re=d+1};q.prototype.Xk=function(d){this.enabled=1===d};k.e=new q;l.prototype.tb=function(d){d.C(this.tb)};l.prototype.ub=function(d){d.C(this.ub)};k.g=new l})();function Dc(d){this.b=d}
(function(){function d(){}var q=Dc.prototype;q.ca=function(d){this.behavior=d;this.b=d.b};q.ca.prototype.G=function(){};q.V=function(d,l){this.type=d;this.behavior=d.behavior;this.Na=l;this.b=d.b};var l=q.V.prototype;l.G=function(){this.Na.la.jumpthruEnabled=0!==this.u[0]};l.lb=function(){};q.d=new function(){};d.prototype.Xk=function(d){this.Na.la.jumpthruEnabled=!!d};q.e=new d})();function Ec(d){this.b=d}
(function(){function d(){}var q=Ec.prototype;q.ca=function(d){this.behavior=d;this.b=d.b};q.ca.prototype.G=function(){};q.V=function(d,l){this.type=d;this.behavior=d.behavior;this.Na=l;this.b=d.b};var l=q.V.prototype;l.G=function(){this.Na.la.solidEnabled=0!==this.u[0]};l.lb=function(){};q.d=new function(){};d.prototype.Xk=function(d){this.Na.la.solidEnabled=!!d};q.e=new d})();
function nc(){return[Z,pc,qc,rc,tc,sc,xc,oc,yc,uc,Y,wc,vc,Ec,Dc,zc,X.prototype.d.Sn,qc.prototype.e.Lg,qc.prototype.e.Ls,oc.prototype.e.CallFunction,X.prototype.e.et,X.prototype.e.Ws,Y.prototype.e.Qs,vc.prototype.d.Di,vc.prototype.e.ct,X.prototype.g.qx,X.prototype.d.Er,rc.prototype.e.Ks,rc.prototype.e.Play,Y.prototype.e.Ki,X.prototype.e.Hr,vc.prototype.e.Ki,vc.prototype.e.Mi,vc.prototype.e.Ji,oc.prototype.d.Ii,oc.prototype.g.Cs,X.prototype.d.yr,tc.prototype.g.es,qc.prototype.g.Mg,X.prototype.d.Jr,
X.prototype.d.Hn,X.prototype.d.bs,Y.prototype.d.Di,Y.prototype.e.Kg,Y.prototype.e.Jf,tc.prototype.g.Or,zc.prototype.e.Xk,zc.prototype.e.bt,Y.prototype.g.Gr,Y.prototype.e.Kk,X.prototype.g.to,rc.prototype.e.Xs,rc.prototype.e.ao,Z.prototype.e.Kg,Y.prototype.e.Li,Z.prototype.e.Ki,rc.prototype.d.cs,Z.prototype.g.An,Z.prototype.g.Cn,Z.prototype.g.Bn,Z.prototype.g.zn,rc.prototype.e.jt,X.prototype.e.Pr,rc.prototype.e.Is,oc.prototype.d.Br,rc.prototype.e.Ys,X.prototype.g["float"],X.prototype.g["int"],Z.prototype.e.Li,
X.prototype.d.Xr,vc.prototype.e.Kg,vc.prototype.e.Lg,vc.prototype.e.Yk,X.prototype.d.Nr,Y.prototype.g.$k,Y.prototype.g.co,Y.prototype.e.Vk,X.prototype.d.Kr,qc.prototype.d.Ei,Y.prototype.e.ls,X.prototype.g.floor,X.prototype.g.random,Y.prototype.e.kt,X.prototype.g.cos,X.prototype.g.Ae,Y.prototype.e.it,Y.prototype.e.Yk,Y.prototype.e.Ni,Y.prototype.e.Mi,Y.prototype.g.Mg,Y.prototype.e.Zn,Y.prototype.g.Opacity,Y.prototype.d.Fn,Y.prototype.d.Ei,vc.prototype.e.Wk,Y.prototype.d.Mn,vc.prototype.e.Vk,qc.prototype.d.Cr,
X.prototype.d.Mr,X.prototype.g.min,X.prototype.g.ew,qc.prototype.g.tr,qc.prototype.d.Fr,X.prototype.e.rr,X.prototype.g.jw,qc.prototype.e.Ir,qc.prototype.g.ur,X.prototype.d.Ds,Y.prototype.e.$n,Z.prototype.e.Jf,Z.prototype.e.Ni,Z.prototype.e.Mi,Z.prototype.e.Vk,zc.prototype.e.Ps,Z.prototype.e.js,Z.prototype.g.Mg,Z.prototype.e.wt,X.prototype.g.sin,Z.prototype.g.$k,Z.prototype.g.co,Z.prototype.d.Nk,Z.prototype.d.Di,X.prototype.d.Es,Y.prototype.e.Yn,Y.prototype.e.Wk,Y.prototype.g.sr,oc.prototype.e.$s,
Y.prototype.d.as,Y.prototype.d.Lk,zc.prototype.g.ub,Y.prototype.g.zn,oc.prototype.g.Dn,zc.prototype.g.tb,zc.prototype.d.Dr,zc.prototype.d.Qk,Y.prototype.d.Nk,X.prototype.g.abs,zc.prototype.e.mt,zc.prototype.d.Rk,Z.prototype.e.Ji,X.prototype.g.vw,Z.prototype.d.Ei,X.prototype.g.$v,Z.prototype.d.Gn,X.prototype.g.Zv,Z.prototype.g.Fi,Z.prototype.e.Lg,Z.prototype.g.bo,Z.prototype.d.Xn,Z.prototype.e.Zk,X.prototype.d.Lk,X.prototype.g.m,Z.prototype.d.Kn,wc.prototype.e.Ki,Y.prototype.d.Gn,Y.prototype.g.Jn,
Y.prototype.e.Ji,Y.prototype.g.In,Y.prototype.e.Zk,wc.prototype.e.Li,Y.prototype.d.Kn,wc.prototype.d.Ln,wc.prototype.e.Kk,wc.prototype.d.Di,Y.prototype.g.Fi,wc.prototype.e.Zn,wc.prototype.d.Fn,wc.prototype.e.Ji,wc.prototype.e.$n,wc.prototype.e.Yn,wc.prototype.e.Mi,X.prototype.e.nt,Y.prototype.g.Bn,Y.prototype.g.An,wc.prototype.e.Jf,wc.prototype.e.Ni,Y.prototype.d.$r,Y.prototype.g.Cn,X.prototype.d.Fs,wc.prototype.e.Zs,wc.prototype.e.Lg,X.prototype.e.pt,Y.prototype.d.Tr,Y.prototype.e.Rs,Y.prototype.g.Rr,
Y.prototype.g.Sr,Y.prototype.d.Ln,X.prototype.g.time,Z.prototype.d.Cd,Z.prototype.e.Us,Z.prototype.e.Wk,X.prototype.d.Gs,Y.prototype.d.Xn,Y.prototype.g.bo,Y.prototype.g.Hs,zc.prototype.d.Zr,Y.prototype.e.ks,wc.prototype.e.Kg,Y.prototype.e.gt,zc.prototype.e.pr,wc.prototype.g.Fi,wc.prototype.g.Mg,X.prototype.g.ceil,wc.prototype.g.$k,X.prototype.g.xx,yc.prototype.d.Ar,yc.prototype.d.Vr,uc.prototype.d.Yr,tc.prototype.e.En,tc.prototype.e.qr,X.prototype.g.lx,X.prototype.g.kx,X.prototype.g.left,X.prototype.g.hw,
X.prototype.d.qt,X.prototype.e.lt,X.prototype.e.dt,vc.prototype.d.Cd,vc.prototype.e.Ts,vc.prototype.e.Kk,X.prototype.g.aw,vc.prototype.e.Zk,vc.prototype.d.Nk,vc.prototype.d.Pn,vc.prototype.e.Jf,vc.prototype.e.Ni,Y.prototype.d.Cd,qc.prototype.d.Ok,qc.prototype.e.ft,tc.prototype.d.Ok,pc.prototype.e.Ns,pc.prototype.d.Gi,pc.prototype.g.gs,vc.prototype.e.Vs,xc.prototype.e.Kg,tc.prototype.d.Qr,xc.prototype.d.On,xc.prototype.g.Lr,sc.prototype.g.Ms,X.prototype.e.Os,qc.prototype.e.Jf,X.prototype.g.Lv,X.prototype.g.Pt,
qc.prototype.e.Js]};