-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathc2runtime.js
432 lines (432 loc) · 206 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
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,da,ga,w,ha,ia,B,C,ja,ka,la,ma,na,oa,K,qa,ra,Q,sa,ua,va,wa,xa,ya,Aa,Ba,T,Ca,Fa,Ga,Ha,Ia,U,Ja,Ka,V,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb={},$b={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(a,d,f,b){this.set(a,d,f,b)}function q(){this.Ob=this.Nb=this.Qb=this.Pb=this.$b=this.Zb=this.kb=this.jb=0}function m(a,d,f,b){a<d?f<b?(l=a<f?a:f,E=d>b?d:b):(l=a<b?a:b,E=d>f?d:f):f<b?(l=d<f?d:f,E=a>b?a:b):(l=d<b?d:b,E=a>f?a:f)}function k(){this.items=this.xd=null;this.yh=0;y&&(this.xd=new Set);this.Ig=[];this.qe=!0}function r(a){R[G++]=a}function h(){this.ja=this.Ck=this.y=this.jl=0}function c(a){this.eb=[];this.Ii=this.Ki=this.Li=this.Ji=0;this.fi(a)}function a(a,d){this.nl=
a;this.ml=d;this.cells={}}function b(a,d){this.nl=a;this.ml=d;this.cells={}}function g(a,d,f){var b;return D.length?(b=D.pop(),b.Ul=a,b.x=d,b.y=f,b):new ca(a,d,f)}function d(a,d,f){this.Ul=a;this.x=d;this.y=f;this.ib=new da}function f(a,d,f){var b;return A.length?(b=A.pop(),b.Ul=a,b.x=d,b.y=f,b):new ga(a,d,f)}function v(a,d,f){this.Ul=a;this.x=d;this.y=f;this.ib=[];this.fg=!0;this.sd=new da;this.Qg=!1}function u(a,d){return a.gd-d.gd}w=function(a){window.console&&window.console.log&&window.console.log(a)};
ha=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ia=function(a){return"undefined"===typeof a};B=function(a){return"number"===typeof a};C=function(a){return"string"===typeof a};ja=function(a){return 0<a&&0===(a-1&a)};ka=function(a){--a;for(var d=1;32>d;d<<=1)a=a|a>>d;return a+1};la=function(a){return 0>a?-a:a};ma=function(a,d){return a>d?a:d};na=function(a,d){return a<d?a:d};oa=Math.PI;K=function(a){return 0<=a?a|0:(a|0)-1};qa=function(a){var d=
a|0;return d===a?d:d+1};ra=function(a,d,f,b,g,l,n,c){var z,x,p,h;a<f?(x=a,z=f):(x=f,z=a);g<n?(h=g,p=n):(h=n,p=g);if(z<h||x>p)return!1;d<b?(x=d,z=b):(x=b,z=d);l<c?(h=l,p=c):(h=c,p=l);if(z<h||x>p)return!1;z=g-a+n-f;x=l-d+c-b;a=f-a;d=b-d;g=n-g;l=c-l;c=la(d*g-l*a);return la(g*x-l*z)>c?!1:la(a*x-d*z)<=c};e.prototype.set=function(a,d,f,b){this.left=a;this.top=d;this.right=f;this.bottom=b};e.prototype.Pf=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};e.prototype.width=
function(){return this.right-this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};e.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)};e.prototype.yw=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};e.prototype.zw=
function(a,d,f){return!(a.right+d<this.left||a.bottom+f<this.top||a.left+d>this.right||a.top+f>this.bottom)};e.prototype.Db=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};e.prototype.Zg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};Q=e;q.prototype.xg=function(a){this.jb=a.left;this.kb=a.top;this.Zb=a.right;this.$b=a.top;this.Pb=a.right;this.Qb=a.bottom;this.Nb=a.left;this.Ob=a.bottom};q.prototype.or=function(a,
d){if(0===d)this.xg(a);else{var f=Math.sin(d),b=Math.cos(d),g=a.left*f,l=a.top*f,n=a.right*f,f=a.bottom*f,c=a.left*b,z=a.top*b,x=a.right*b,b=a.bottom*b;this.jb=c-l;this.kb=z+g;this.Zb=x-l;this.$b=z+n;this.Pb=x-f;this.Qb=b+n;this.Nb=c-f;this.Ob=b+g}};q.prototype.offset=function(a,d){this.jb+=a;this.kb+=d;this.Zb+=a;this.$b+=d;this.Pb+=a;this.Qb+=d;this.Nb+=a;this.Ob+=d;return this};var l=0,E=0;q.prototype.cp=function(a){m(this.jb,this.Zb,this.Pb,this.Nb);a.left=l;a.right=E;m(this.kb,this.$b,this.Qb,
this.Ob);a.top=l;a.bottom=E};q.prototype.Db=function(a,d){var f=this.jb,b=this.kb,g=this.Zb-f,l=this.$b-b,n=this.Pb-f,c=this.Qb-b,z=a-f,x=d-b,p=g*g+l*l,h=g*n+l*c,l=g*z+l*x,t=n*n+c*c,v=n*z+c*x,u=1/(p*t-h*h),g=(t*l-h*v)*u,p=(p*v-h*l)*u;if(0<=g&&0<p&&1>g+p)return!0;g=this.Nb-f;l=this.Ob-b;p=g*g+l*l;h=g*n+l*c;l=g*z+l*x;u=1/(p*t-h*h);g=(t*l-h*v)*u;p=(p*v-h*l)*u;return 0<=g&&0<p&&1>g+p};q.prototype.pe=function(a,d){if(d)switch(a){case 0:return this.jb;case 1:return this.Zb;case 2:return this.Pb;case 3:return this.Nb;
case 4:return this.jb;default:return this.jb}else switch(a){case 0:return this.kb;case 1:return this.$b;case 2:return this.Qb;case 3:return this.Ob;case 4:return this.kb;default:return this.kb}};q.prototype.xq=function(){return(this.jb+this.Zb+this.Pb+this.Nb)/4};q.prototype.yq=function(){return(this.kb+this.$b+this.Qb+this.Ob)/4};q.prototype.Np=function(a){var d=a.xq(),f=a.yq();if(this.Db(d,f))return!0;d=this.xq();f=this.yq();if(a.Db(d,f))return!0;var b,g,l,n,c,z,x,p;for(x=0;4>x;x++)for(p=0;4>p;p++)if(d=
this.pe(x,!0),f=this.pe(x,!1),b=this.pe(x+1,!0),g=this.pe(x+1,!1),l=a.pe(p,!0),n=a.pe(p,!1),c=a.pe(p+1,!0),z=a.pe(p+1,!1),ra(d,f,b,g,l,n,c,z))return!0;return!1};sa=q;ua=function(a,d,f){return Math.max(Math.min(a,255),0)|Math.max(Math.min(d,255),0)<<8|Math.max(Math.min(f,255),0)<<16};va=function(a){return a&255};wa=function(a){return(a&65280)>>8};xa=function(a){return(a&16711680)>>16};ya=function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f]);return a};Aa=function(a,d){var f,b;d=K(d);if(!(0>
d||d>=a.length)){f=d;for(b=a.length-1;f<b;f++)a[f]=a[f+1];Ba(a,b)}};Ba=function(a,d){a.length=d};T=function(a){Ba(a,0)};Ca=function(a,d){T(a);var f,b;f=0;for(b=d.length;f<b;++f)a[f]=d[f]};Fa=function(a,d){a.push.apply(a,d)};Ga=function(a,d){var f,b;f=0;for(b=a.length;f<b;++f)if(a[f]===d)return f;return-1};Ha=function(a,d){var f=Ga(a,d);-1!==f&&Aa(a,f)};Ia=function(a,d,f){return a<d?d:a>f?f:a};U=function(a){return a/(180/oa)};Ja=function(a){return 180/oa*a};Ka=function(a){a%=360;0>a&&(a+=360);return a};
V=function(a){a%=2*oa;0>a&&(a+=2*oa);return a};La=function(a){return Ka(Ja(a))};Ma=function(a){return V(U(a))};Na=function(a,d,f,b){return Math.atan2(b-d,f-a)};Oa=function(a,d){if(a===d)return 0;var f=Math.sin(a),b=Math.cos(a),g=Math.sin(d),l=Math.cos(d),f=f*g+b*l;return 1<=f?0:-1>=f?oa:Math.acos(f)};Pa=function(a,d,f){var b=Math.sin(a),g=Math.cos(a),l=Math.sin(d),n=Math.cos(d);return Math.acos(b*l+g*n)>f?0<g*l-b*n?V(a+f):V(a-f):V(d)};Qa=function(a,d){var f=Math.sin(a),b=Math.cos(a),g=Math.sin(d),
l=Math.cos(d);return 0>=b*g-f*l};Ra=function(a,d,f,b){a=f-a;d=b-d;return Math.sqrt(a*a+d*d)};Sa=function(a,d){return!a!==!d};Ta=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;return!1};Ua=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var t=+new Date;Va=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()-t};var n=!1,p=n=!1,fa=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),n=!n&&/safari/i.test(navigator.userAgent),p=/(iphone|ipod|ipad)/i.test(navigator.userAgent),fa=window.c2ejecta);var y=!n&&!fa&&!p&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;k.prototype.contains=function(a){return this.Sd()?!1:y?this.xd.has(a):this.items&&this.items.hasOwnProperty(a)};
k.prototype.add=function(a){if(y)this.xd.has(a)||(this.xd.add(a),this.qe=!1);else{var d=a.toString(),f=this.items;f?f.hasOwnProperty(d)||(f[d]=a,this.yh++,this.qe=!1):(this.items={},this.items[d]=a,this.yh=1,this.qe=!1)}};k.prototype.remove=function(a){if(!this.Sd())if(y)this.xd.has(a)&&(this.xd["delete"](a),this.qe=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.yh--,this.qe=!1)}};k.prototype.clear=function(){this.Sd()||(y?this.xd.clear():(this.items=
null,this.yh=0),T(this.Ig),this.qe=!0)};k.prototype.Sd=function(){return 0===this.count()};k.prototype.count=function(){return y?this.xd.size:this.yh};var R=null,G=0;k.prototype.$x=function(){if(!this.qe){if(y)T(this.Ig),R=this.Ig,G=0,this.xd.forEach(r),R=null,G=0;else{var a=this.Ig;T(a);var d,f=0,b=this.items;if(b)for(d in b)b.hasOwnProperty(d)&&(a[f++]=b[d])}this.qe=!0}};k.prototype.Cd=function(){this.$x();return this.Ig};da=k;new da;Wa=function(a,d){y?Xa(a,d.xd):Ya(a,d.Cd())};Xa=function(a,d){var f,
b,g,l;b=f=0;for(g=a.length;f<g;++f)l=a[f],d.has(l)||(a[b++]=l);Ba(a,b)};Ya=function(a,d){var f,b,g,l;b=f=0;for(g=a.length;f<g;++f)l=a[f],-1===Ga(d,l)&&(a[b++]=l);Ba(a,b)};h.prototype.add=function(a){this.y=a-this.jl;this.Ck=this.ja+this.y;this.jl=this.Ck-this.ja-this.y;this.ja=this.Ck};h.prototype.reset=function(){this.ja=this.Ck=this.y=this.jl=0};Za=h;$a=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};c.prototype.fi=function(a){this.Uq=a;this.Zc=a.length/2;this.eb.length=a.length;
this.Oi=this.Pi=-1;this.fp=0};c.prototype.dg=function(){return!this.Uq.length};c.prototype.ra=function(){for(var a=this.eb,d=a[0],f=d,b=a[1],g=b,l,n,c=1,z=this.Zc;c<z;++c)n=2*c,l=a[n],n=a[n+1],l<d&&(d=l),l>f&&(f=l),n<b&&(b=n),n>g&&(g=n);this.Ji=d;this.Ki=f;this.Li=b;this.Ii=g};c.prototype.xg=function(a,d,f){this.eb.length=8;this.Zc=4;var b=this.eb;b[0]=a.left-d;b[1]=a.top-f;b[2]=a.right-d;b[3]=a.top-f;b[4]=a.right-d;b[5]=a.bottom-f;b[6]=a.left-d;b[7]=a.bottom-f;this.Pi=a.right-a.left;this.Oi=a.bottom-
a.top;this.ra()};c.prototype.wg=function(a,d,f,b,g){this.eb.length=8;this.Zc=4;var l=this.eb;l[0]=a.jb-d;l[1]=a.kb-f;l[2]=a.Zb-d;l[3]=a.$b-f;l[4]=a.Pb-d;l[5]=a.Qb-f;l[6]=a.Nb-d;l[7]=a.Ob-f;this.Pi=b;this.Oi=g;this.ra()};c.prototype.nr=function(a){this.Zc=a.Zc;Ca(this.eb,a.eb);this.Ji=a.Ji;this.Li-a.Li;this.Ki=a.Ki;this.Ii=a.Ii};c.prototype.Of=function(a,d,f){if(this.Pi!==a||this.Oi!==d||this.fp!==f){this.Pi=a;this.Oi=d;this.fp=f;var b,g,l,n,c,z=0,x=1,p=this.Uq,h=this.eb;0!==f&&(z=Math.sin(f),x=Math.cos(f));
f=0;for(l=this.Zc;f<l;f++)b=2*f,g=b+1,n=p[b]*a,c=p[g]*d,h[b]=n*x-c*z,h[g]=c*x+n*z;this.ra()}};c.prototype.Db=function(a,d){var f=this.eb;if(a===f[0]&&d===f[1])return!0;var b,g,l,n=this.Zc,c=this.Ji-110,z=this.Li-101,x=this.Ki+131,p=this.Ii+120,h,t,v=0,u=0;for(b=0;b<n;b++)g=2*b,l=(b+1)%n*2,h=f[g],g=f[g+1],t=f[l],l=f[l+1],ra(c,z,a,d,h,g,t,l)&&v++,ra(x,p,a,d,h,g,t,l)&&u++;return 1===v%2||1===u%2};c.prototype.qh=function(a,d,f){var b=a.eb,g=this.eb;if(this.Db(b[0]+d,b[1]+f)||a.Db(g[0]-d,g[1]-f))return!0;
var l,n,c,z,x,p,h,t,v,u,e,k;l=0;for(z=this.Zc;l<z;l++)for(n=2*l,c=(l+1)%z*2,t=g[n],n=g[n+1],v=g[c],u=g[c+1],c=0,h=a.Zc;c<h;c++)if(x=2*c,p=(c+1)%h*2,e=b[x]+d,x=b[x+1]+f,k=b[p]+d,p=b[p+1]+f,ra(t,n,v,u,e,x,k,p))return!0;return!1};ab=c;a.prototype.ye=function(a,d,f){var b;b=this.cells[a];return b?(b=b[d])?b:f?(b=g(this,a,d),this.cells[a][d]=b):null:f?(b=g(this,a,d),this.cells[a]={},this.cells[a][d]=b):null};a.prototype.Kb=function(a){return K(a/this.nl)};a.prototype.Lb=function(a){return K(a/this.ml)};
a.prototype.update=function(a,d,f){var b,g,l,n,c;if(d)for(b=d.left,g=d.right;b<=g;++b)for(l=d.top,n=d.bottom;l<=n;++l)if(!f||!f.Db(b,l))if(c=this.ye(b,l,!1))c.remove(a),c.Sd()&&(c.ib.clear(),1E3>D.length&&D.push(c),this.cells[b][l]=null);if(f)for(b=f.left,g=f.right;b<=g;++b)for(l=f.top,n=f.bottom;l<=n;++l)d&&d.Db(b,l)||this.ye(b,l,!0).im(a)};a.prototype.dk=function(a,d){var f,b,g,l,n,c;f=this.Kb(a.left);g=this.Lb(a.top);b=this.Kb(a.right);for(n=this.Lb(a.bottom);f<=b;++f)for(l=g;l<=n;++l)(c=this.ye(f,
l,!1))&&c.dump(d)};bb=a;b.prototype.ye=function(a,d,b){var g;g=this.cells[a];return g?(g=g[d])?g:b?(g=f(this,a,d),this.cells[a][d]=g):null:b?(g=f(this,a,d),this.cells[a]={},this.cells[a][d]=g):null};b.prototype.Kb=function(a){return K(a/this.nl)};b.prototype.Lb=function(a){return K(a/this.ml)};b.prototype.update=function(a,d,f){var b,g,l,n,c;if(d)for(b=d.left,g=d.right;b<=g;++b)for(l=d.top,n=d.bottom;l<=n;++l)if(!f||!f.Db(b,l))if(c=this.ye(b,l,!1))c.remove(a),c.Sd()&&(c.reset(),1E3>A.length&&A.push(c),
this.cells[b][l]=null);if(f)for(b=f.left,g=f.right;b<=g;++b)for(l=f.top,n=f.bottom;l<=n;++l)d&&d.Db(b,l)||this.ye(b,l,!0).im(a)};b.prototype.dk=function(a,d,f,b,g){var l,n;a=this.Kb(a);d=this.Lb(d);f=this.Kb(f);for(l=this.Lb(b);a<=f;++a)for(b=d;b<=l;++b)(n=this.ye(a,b,!1))&&n.dump(g)};b.prototype.Tw=function(a){var d,f,b,g,l;d=a.left;b=a.top;f=a.right;for(g=a.bottom;d<=f;++d)for(a=b;a<=g;++a)if(l=this.ye(d,a,!1))l.fg=!1};cb=b;var D=[];d.prototype.Sd=function(){return this.ib.Sd()};d.prototype.im=
function(a){this.ib.add(a)};d.prototype.remove=function(a){this.ib.remove(a)};d.prototype.dump=function(a){Fa(a,this.ib.Cd())};ca=d;var A=[];v.prototype.Sd=function(){if(!this.ib.length)return!0;if(this.ib.length>this.sd.count())return!1;this.Jl();return!0};v.prototype.im=function(a){this.sd.contains(a)?(this.sd.remove(a),this.sd.Sd()&&(this.Qg=!1)):this.ib.length?(this.ib[this.ib.length-1].qd()>a.qd()&&(this.fg=!1),this.ib.push(a)):(this.ib.push(a),this.fg=!0)};v.prototype.remove=function(a){this.sd.add(a);
this.Qg=!0;30<=this.sd.count()&&this.Jl()};v.prototype.Jl=function(){this.Qg&&(this.sd.count()===this.ib.length?this.reset():(Wa(this.ib,this.sd),this.sd.clear(),this.Qg=!1))};v.prototype.$u=function(){this.fg||(this.ib.sort(u),this.fg=!0)};v.prototype.reset=function(){T(this.ib);this.fg=!0;this.sd.clear();this.Qg=!1};v.prototype.dump=function(a){this.Jl();this.$u();this.ib.length&&a.push(this.ib)};ga=v;var I="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
db=function(a){return 0>=a||11<=a?"source-over":I[a-1]};fb=function(a,d,f){if(f)switch(a.Ab=f.ONE,a.wb=f.ONE_MINUS_SRC_ALPHA,d){case 1:a.Ab=f.ONE;a.wb=f.ONE;break;case 3:a.Ab=f.ONE;a.wb=f.ZERO;break;case 4:a.Ab=f.ONE_MINUS_DST_ALPHA;a.wb=f.ONE;break;case 5:a.Ab=f.DST_ALPHA;a.wb=f.ZERO;break;case 6:a.Ab=f.ZERO;a.wb=f.SRC_ALPHA;break;case 7:a.Ab=f.ONE_MINUS_DST_ALPHA;a.wb=f.ZERO;break;case 8:a.Ab=f.ZERO;a.wb=f.ONE_MINUS_SRC_ALPHA;break;case 9:a.Ab=f.DST_ALPHA;a.wb=f.ONE_MINUS_SRC_ALPHA;break;case 10:a.Ab=
f.ONE_MINUS_DST_ALPHA,a.wb=f.SRC_ALPHA}};gb=function(a){return Math.round(1E6*a)/1E6};hb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?!1:a===d?!0:a.toLowerCase()===d.toLowerCase()};ib=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||hb(a.tagName,"canvas")?!0:!1}})();var ac="undefined"!==typeof Float32Array?Float32Array:Array;function bc(e){var q=new ac(3);e&&(q[0]=e[0],q[1]=e[1],q[2]=e[2]);return q}
function cc(e){var q=new ac(16);e&&(q[0]=e[0],q[1]=e[1],q[2]=e[2],q[3]=e[3],q[4]=e[4],q[5]=e[5],q[6]=e[6],q[7]=e[7],q[8]=e[8],q[9]=e[9],q[10]=e[10],q[11]=e[11],q[12]=e[12],q[13]=e[13],q[14]=e[14],q[15]=e[15]);return q}function dc(e,q){q[0]=e[0];q[1]=e[1];q[2]=e[2];q[3]=e[3];q[4]=e[4];q[5]=e[5];q[6]=e[6];q[7]=e[7];q[8]=e[8];q[9]=e[9];q[10]=e[10];q[11]=e[11];q[12]=e[12];q[13]=e[13];q[14]=e[14];q[15]=e[15]}
function ec(e,q){var m=q[0],k=q[1];q=q[2];e[0]*=m;e[1]*=m;e[2]*=m;e[3]*=m;e[4]*=k;e[5]*=k;e[6]*=k;e[7]*=k;e[8]*=q;e[9]*=q;e[10]*=q;e[11]*=q}
function fc(e,q,m,k){k||(k=cc());var r,h,c,a,b,g,d,f,v=e[0],u=e[1];e=e[2];h=m[0];c=m[1];r=m[2];m=q[1];g=q[2];v===q[0]&&u===m&&e===g?(e=k,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(m=v-q[0],g=u-q[1],d=e-q[2],f=1/Math.sqrt(m*m+g*g+d*d),m*=f,g*=f,d*=f,q=c*d-r*g,r=r*m-h*d,h=h*g-c*m,(f=Math.sqrt(q*q+r*r+h*h))?(f=1/f,q*=f,r*=f,h*=f):h=r=q=0,c=g*h-d*r,a=d*q-m*h,b=m*r-g*q,(f=Math.sqrt(c*c+a*a+b*b))?(f=1/f,c*=f,a*=f,b*=f):b=a=c=0,
k[0]=q,k[1]=c,k[2]=m,k[3]=0,k[4]=r,k[5]=a,k[6]=g,k[7]=0,k[8]=h,k[9]=b,k[10]=d,k[11]=0,k[12]=-(q*v+r*u+h*e),k[13]=-(c*v+a*u+b*e),k[14]=-(m*v+g*u+d*e),k[15]=1)}
(function(){function e(a,b,g){this.Ce=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.xa=!!g;this.qj=this.rh=!1;this.xl=0;this.Wk=1;this.jo=1E3;this.jy=(this.jo-this.Wk)/32768;this.kl=bc([0,0,100]);this.gq=bc([0,0,0]);this.Nr=bc([0,1,0]);this.Ci=bc([1,1,1]);this.pp=!0;this.Lj=cc();this.qc=cc();this.wm=cc();this.wl=cc();this.G=a;this.version=0===this.G.getParameter(this.G.VERSION).indexOf("WebGL 2")?2:1;this.Jp()}function q(a,b,g){this.G=a;this.gi=
b;this.name=g;this.Ec=a.getAttribLocation(b,"aPos");this.He=a.getAttribLocation(b,"aTex");this.dq=a.getUniformLocation(b,"matP");this.Gj=a.getUniformLocation(b,"matMV");this.lg=a.getUniformLocation(b,"opacity");this.Im=a.getUniformLocation(b,"colorFill");this.fq=a.getUniformLocation(b,"samplerFront");this.Lh=a.getUniformLocation(b,"samplerBack");this.tf=a.getUniformLocation(b,"destStart");this.sf=a.getUniformLocation(b,"destEnd");this.Nh=a.getUniformLocation(b,"seconds");this.Km=a.getUniformLocation(b,
"pixelWidth");this.Jm=a.getUniformLocation(b,"pixelHeight");this.Kh=a.getUniformLocation(b,"layerScale");this.Jh=a.getUniformLocation(b,"layerAngle");this.Oh=a.getUniformLocation(b,"viewOrigin");this.Mh=a.getUniformLocation(b,"scrollPos");this.sw=!!(this.Km||this.Jm||this.Nh||this.Lh||this.tf||this.sf||this.Kh||this.Jh||this.Oh||this.Mh);this.oq=this.pq=-999;this.Kj=1;this.kq=this.jq=0;this.mq=this.iq=this.hq=1;this.sq=this.rq=this.qq=this.uq=this.tq=this.lq=0;this.vm=[];this.nq=cc();this.lg&&a.uniform1f(this.lg,
1);this.Im&&a.uniform4f(this.Im,1,1,1,1);this.fq&&a.uniform1i(this.fq,0);this.Lh&&a.uniform1i(this.Lh,1);this.tf&&a.uniform2f(this.tf,0,0);this.sf&&a.uniform2f(this.sf,1,1);this.Kh&&a.uniform1f(this.Kh,1);this.Jh&&a.uniform1f(this.Jh,0);this.Oh&&a.uniform2f(this.Oh,0,0);this.Mh&&a.uniform2f(this.Mh,0,0);this.Nh&&a.uniform1f(this.Nh,0);this.jf=!1}function m(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]&&a[4]===b[4]&&a[5]===b[5]&&a[6]===b[6]&&a[7]===b[7]&&a[8]===b[8]&&a[9]===b[9]&&
a[10]===b[10]&&a[11]===b[11]&&a[12]===b[12]&&a[13]===b[13]&&a[14]===b[14]&&a[15]===b[15]}function k(a,b){this.type=a;this.B=b;this.G=b.G;this.Bc=this.Bb=this.Mq=0;this.X=this.Jc=null;this.pr=[]}var r=cc();e.prototype.Jp=function(){var a=this.G,b;this.Yp=1;this.nf=this.Ee=null;this.Vi=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.xa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Zp=a.ONE;this.Xp=a.ONE_MINUS_SRC_ALPHA;this.Tk=new Float32Array(8E3*(this.xa?3:2));this.Ek=new Float32Array(16E3);this.jn=new Float32Array(32E3);this.hn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.hn);a.bufferData(a.ARRAY_BUFFER,this.jn.byteLength,a.DYNAMIC_DRAW);this.vi=Array(4);this.mi=Array(4);for(b=0;4>b;b++)this.vi[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.vi[b]),a.bufferData(a.ARRAY_BUFFER,this.Tk.byteLength,a.DYNAMIC_DRAW),this.mi[b]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.mi[b]),a.bufferData(a.ARRAY_BUFFER,this.Ek.byteLength,a.DYNAMIC_DRAW);this.Id=0;this.ww=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.ww);for(var g=new Uint16Array(12E3),d=b=0;12E3>b;)g[b++]=d,g[b++]=d+1,g[b++]=d+2,g[b++]=d,g[b++]=d+2,g[b++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,g,a.STATIC_DRAW);this.rg=this.Bg=this.ge=0;this.Ja=[];b=this.xa?"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}";g=this.Vg({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},b,"<default>");this.Ja.push(g);g=this.Vg({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(g);g=this.Vg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"<earlyz>");this.Ja.push(g);g=this.Vg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.Ja.push(g);for(var f in gc)gc.hasOwnProperty(f)&&this.Ja.push(this.Vg(gc[f],b,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Gd=[];this.jd=0;this.yb=this.nb=!1;this.lp=this.Bh=-1;this.Rf=null;this.Hl=a.createFramebuffer();this.Xi=this.fk=null;this.Yo=!1;this.xa&&(this.Xi=a.createRenderbuffer());this.Te=bc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Ww=a[0];this.Nm=a[1];2048<this.Nm&&(this.Nm=2048);this.Yb(0)};q.prototype.$n=function(a){m(this.nq,
a)||(dc(a,this.nq),this.G.uniformMatrix4fv(this.Gj,!1,a))};e.prototype.Vg=function(a,b,g){var d=this.G,f=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(f,a.src);d.compileShader(f);if(!d.getShaderParameter(f,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(f),d.deleteShader(f),Error("error compiling fragment shader: "+a);var c=d.createShader(d.VERTEX_SHADER);d.shaderSource(c,b);d.compileShader(c);if(!d.getShaderParameter(c,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(c),d.deleteShader(f),d.deleteShader(c),
Error("error compiling vertex shader: "+a);b=d.createProgram();d.attachShader(b,f);d.attachShader(b,c);d.linkProgram(b);if(!d.getProgramParameter(b,d.LINK_STATUS))throw a=d.getProgramInfoLog(b),d.deleteShader(f),d.deleteShader(c),d.deleteProgram(b),Error("error linking shader program: "+a);d.useProgram(b);d.deleteShader(f);d.deleteShader(c);f=new q(d,b,g);f.Fl=a.Fl||0;f.Gl=a.Gl||0;f.kp=!!a.kp;f.Xc=!!a.Xc;f.Wo=!!a.Wo;f.Y=a.Y||[];a=0;for(c=f.Y.length;a<c;a++)f.Y[a][1]=d.getUniformLocation(b,f.Y[a][0]),
f.vm.push(0),d.uniform1f(f.Y[a][1],0);return f};e.prototype.Rl=function(a){var b,g;b=0;for(g=this.Ja.length;b<g;b++)if(this.Ja[b].name===a)return b;return-1};e.prototype.Tq=function(a,b,g){var d=this.qc,f=this.Lj,c=[0,0,0,0,0,0,0,0];c[0]=d[0]*a+d[4]*b+d[12];c[1]=d[1]*a+d[5]*b+d[13];c[2]=d[2]*a+d[6]*b+d[14];c[3]=d[3]*a+d[7]*b+d[15];c[4]=f[0]*c[0]+f[4]*c[1]+f[8]*c[2]+f[12]*c[3];c[5]=f[1]*c[0]+f[5]*c[1]+f[9]*c[2]+f[13]*c[3];c[6]=f[2]*c[0]+f[6]*c[1]+f[10]*c[2]+f[14]*c[3];c[7]=-c[2];0!==c[7]&&(c[7]=1/
c[7],c[4]*=c[7],c[5]*=c[7],c[6]*=c[7],g[0]=(.5*c[4]+.5)*this.width,g[1]=(.5*c[5]+.5)*this.height)};e.prototype.Ff=function(a,b,g){if(this.width!==a||this.height!==b||g){this.Nd();g=this.G;this.width=a;this.height=b;g.viewport(0,0,a,b);fc(this.kl,this.gq,this.Nr,this.qc);if(this.xa){var d=-a/2;a=a/2;var f=b/2;b=-b/2;var c=this.Wk,h=this.jo,l=this.Lj;l||(l=cc());var e=a-d,t=b-f,n=h-c;l[0]=2/e;l[1]=0;l[2]=0;l[3]=0;l[4]=0;l[5]=2/t;l[6]=0;l[7]=0;l[8]=0;l[9]=0;l[10]=-2/n;l[11]=0;l[12]=-(d+a)/e;l[13]=-(b+
f)/t;l[14]=-(h+c)/n;l[15]=1;this.Ci[0]=1;this.Ci[1]=1}else b=a/b,d=this.Wk,a=this.jo,l=this.Lj,h=d*Math.tan(45*Math.PI/360),b*=h,f=-b,c=-h,l||(l=cc()),e=b-f,t=h-c,n=a-d,l[0]=2*d/e,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=2*d/t,l[6]=0,l[7]=0,l[8]=(b+f)/e,l[9]=(h+c)/t,l[10]=-(a+d)/n,l[11]=-1,l[12]=0,l[13]=0,l[14]=-(a*d*2)/n,l[15]=0,d=[0,0],a=[0,0],this.Tq(0,0,d),this.Tq(1,1,a),this.Ci[0]=1/(a[0]-d[0]),this.Ci[1]=-1/(a[1]-d[1]);d=0;for(a=this.Ja.length;d<a;d++)f=this.Ja[d],f.jf=!1,f.dq&&(g.useProgram(f.gi),
g.uniformMatrix4fv(f.dq,!1,this.Lj));g.useProgram(this.Ja[this.Bh].gi);g.bindTexture(g.TEXTURE_2D,null);g.activeTexture(g.TEXTURE1);g.bindTexture(g.TEXTURE_2D,null);g.activeTexture(g.TEXTURE0);this.nf=this.Ee=null;this.Xi&&(g.bindFramebuffer(g.FRAMEBUFFER,this.Hl),g.bindRenderbuffer(g.RENDERBUFFER,this.Xi),g.renderbufferStorage(g.RENDERBUFFER,g.DEPTH_COMPONENT16,this.width,this.height),this.Yo||(g.framebufferRenderbuffer(g.FRAMEBUFFER,g.DEPTH_ATTACHMENT,g.RENDERBUFFER,this.Xi),this.Yo=!0),g.bindRenderbuffer(g.RENDERBUFFER,
null),g.bindFramebuffer(g.FRAMEBUFFER,null),this.fk=null)}};e.prototype.Fc=function(){fc(this.kl,this.gq,this.Nr,this.qc);ec(this.qc,this.Ci)};e.prototype.translate=function(a,b){if(0!==a||0!==b){this.Te[0]=a;this.Te[1]=b;this.Te[2]=0;var g=this.qc,d=this.Te,f=d[0],c=d[1],d=d[2];g[12]=g[0]*f+g[4]*c+g[8]*d+g[12];g[13]=g[1]*f+g[5]*c+g[9]*d+g[13];g[14]=g[2]*f+g[6]*c+g[10]*d+g[14];g[15]=g[3]*f+g[7]*c+g[11]*d+g[15]}};e.prototype.scale=function(a,b){if(1!==a||1!==b)this.Te[0]=a,this.Te[1]=b,this.Te[2]=
1,ec(this.qc,this.Te)};e.prototype.ik=function(a){if(0!==a){var b=this.qc,g,d=Math.sin(a);a=Math.cos(a);var f=b[0],c=b[1],h=b[2],l=b[3],e=b[4],t=b[5],n=b[6],p=b[7];g?b!==g&&(g[8]=b[8],g[9]=b[9],g[10]=b[10],g[11]=b[11],g[12]=b[12],g[13]=b[13],g[14]=b[14],g[15]=b[15]):g=b;g[0]=f*a+e*d;g[1]=c*a+t*d;g[2]=h*a+n*d;g[3]=l*a+p*d;g[4]=f*-d+e*a;g[5]=c*-d+t*a;g[6]=h*-d+n*a;g[7]=l*-d+p*a}};e.prototype.wc=function(){if(!m(this.wm,this.qc)){var a=this.Wb();a.type=5;a.X?dc(this.qc,a.X):a.X=cc(this.qc);dc(this.qc,
this.wm);this.yb=this.nb=!1}};e.prototype.mk=function(a){this.xa&&(32760<a&&(a=32760),this.xl=this.kl[2]-this.Wk-a*this.jy)};k.prototype.Ku=function(){var a=this.G,b=this.B;0!==this.Bb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,b.Hl),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.qj=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.qj=
!1)};k.prototype.Ou=function(){this.G.bindTexture(this.G.TEXTURE_2D,this.Jc)};k.prototype.Pu=function(){var a=this.G;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Jc);a.activeTexture(a.TEXTURE0)};k.prototype.Lu=function(){var a=this.Mq,b=this.B;b.Vi=a;b=b.Rf;b.lg&&b.Kj!==a&&(b.Kj=a,this.G.uniform1f(b.lg,a))};k.prototype.Fu=function(){this.G.drawElements(this.G.TRIANGLES,this.Bc,this.G.UNSIGNED_SHORT,this.Bb)};k.prototype.Hu=function(){this.G.blendFunc(this.Bb,this.Bc)};k.prototype.Qu=
function(){var a,b,g,d=this.B.Ja,f=this.B.lp;a=0;for(b=d.length;a<b;a++)g=d[a],a===f&&g.Gj?(g.$n(this.X),g.jf=!0):g.jf=!1;dc(this.X,this.B.wl)};k.prototype.Gu=function(){var a=this.G,b=this.B;this.Jc?(b.nf===this.Jc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.nf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.Hl),b.qj||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Jc,0)):(b.xa||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,
a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};k.prototype.Cu=function(){var a=this.G,b=this.Bb;0===b?(a.clearColor(this.X[0],this.X[1],this.X[2],this.X[3]),a.clear(a.COLOR_BUFFER_BIT)):1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.X[0],this.X[1],this.X[2],this.X[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};k.prototype.Ju=function(){var a=this.G;0!==this.Bb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};k.prototype.Eu=
function(){var a=this.G,b=this.B;b.xa&&a.disable(a.DEPTH_TEST);var g=b.Ja[1];a.useProgram(g.gi);!g.jf&&g.Gj&&(g.$n(b.wl),g.jf=!0);a.enableVertexAttribArray(g.Ec);a.bindBuffer(a.ARRAY_BUFFER,b.hn);a.vertexAttribPointer(g.Ec,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Bb/4,this.Bc);g=b.Rf;a.useProgram(g.gi);0<=g.Ec&&(a.enableVertexAttribArray(g.Ec),a.bindBuffer(a.ARRAY_BUFFER,b.vi[b.Id]),a.vertexAttribPointer(g.Ec,b.xa?3:2,a.FLOAT,!1,0,0));0<=g.He&&(a.enableVertexAttribArray(g.He),a.bindBuffer(a.ARRAY_BUFFER,
b.mi[b.Id]),a.vertexAttribPointer(g.He,2,a.FLOAT,!1,0,0));b.xa&&a.enable(a.DEPTH_TEST)};k.prototype.Mu=function(){var a=this.G,b=this.B,g=b.Ja[this.Bb];b.lp=this.Bb;b.Rf=g;a.useProgram(g.gi);!g.jf&&g.Gj&&(g.$n(b.wl),g.jf=!0);g.lg&&g.Kj!==b.Vi&&(g.Kj=b.Vi,a.uniform1f(g.lg,b.Vi));0<=g.Ec&&(a.enableVertexAttribArray(g.Ec),a.bindBuffer(a.ARRAY_BUFFER,b.vi[b.Id]),a.vertexAttribPointer(g.Ec,b.xa?3:2,a.FLOAT,!1,0,0));0<=g.He&&(a.enableVertexAttribArray(g.He),a.bindBuffer(a.ARRAY_BUFFER,b.mi[b.Id]),a.vertexAttribPointer(g.He,
2,a.FLOAT,!1,0,0))};k.prototype.Iu=function(){var a=this.X;this.G.uniform4f(this.B.Rf.Im,a[0],a[1],a[2],a[3])};k.prototype.Nu=function(){var a,b,g=this.B.Rf,d=this.G;a=this.X;g.Lh&&this.B.nf!==this.Jc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.Jc),this.B.nf=this.Jc,d.activeTexture(d.TEXTURE0));var f=a[0];g.Km&&f!==g.pq&&(g.pq=f,d.uniform1f(g.Km,f));f=a[1];g.Jm&&f!==g.oq&&(g.oq=f,d.uniform1f(g.Jm,f));f=a[2];b=a[3];!g.tf||f===g.jq&&b===g.kq||(g.jq=f,g.kq=b,d.uniform2f(g.tf,f,b));
f=a[4];b=a[5];!g.sf||f===g.hq&&b===g.iq||(g.hq=f,g.iq=b,d.uniform2f(g.sf,f,b));f=a[6];g.Kh&&f!==g.mq&&(g.mq=f,d.uniform1f(g.Kh,f));f=a[7];g.Jh&&f!==g.lq&&(g.lq=f,d.uniform1f(g.Jh,f));f=a[8];b=a[9];!g.Oh||f===g.tq&&b===g.uq||(g.tq=f,g.uq=b,d.uniform2f(g.Oh,f,b));f=a[10];b=a[11];!g.Mh||f===g.qq&&b===g.rq||(g.qq=f,g.rq=b,d.uniform2f(g.Mh,f,b));f=a[12];g.Nh&&f!==g.sq&&(g.sq=f,d.uniform1f(g.Nh,f));if(g.Y.length)for(a=0,b=g.Y.length;a<b;a++)f=this.pr[a],f!==g.vm[a]&&(g.vm[a]=f,d.uniform1f(g.Y[a][1],f))};
e.prototype.Wb=function(){this.jd===this.Gd.length&&this.Gd.push(new k(0,this));return this.Gd[this.jd++]};e.prototype.Nd=function(){if(0!==this.jd&&!this.G.isContextLost()){var a=this.G;0<this.rg&&(a.bindBuffer(a.ARRAY_BUFFER,this.hn),a.bufferSubData(a.ARRAY_BUFFER,0,this.jn.subarray(0,this.rg)),b&&0<=b.Ec&&"<point>"===b.name&&a.vertexAttribPointer(b.Ec,4,a.FLOAT,!1,0,0));if(0<this.ge){var b=this.Rf;a.bindBuffer(a.ARRAY_BUFFER,this.vi[this.Id]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Tk.subarray(0,
this.ge));b&&0<=b.Ec&&"<point>"!==b.name&&a.vertexAttribPointer(b.Ec,this.xa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.mi[this.Id]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Ek.subarray(0,this.Bg));b&&0<=b.He&&"<point>"!==b.name&&a.vertexAttribPointer(b.He,2,a.FLOAT,!1,0,0)}for(var g,a=0,b=this.jd;a<b;a++)switch(g=this.Gd[a],g.type){case 1:g.Fu();break;case 2:g.Ou();break;case 3:g.Lu();break;case 4:g.Hu();break;case 5:g.Qu();break;case 6:g.Gu();break;case 7:g.Cu();break;case 8:g.Eu();break;
case 9:g.Mu();break;case 10:g.Nu();break;case 11:g.Pu();break;case 12:g.Iu();break;case 13:g.Ju();break;case 14:g.Ku()}this.rg=this.Bg=this.ge=this.jd=0;this.qj=this.yb=this.nb=!1;this.Id++;4<=this.Id&&(this.Id=0)}};e.prototype.Qe=function(a){if(a!==this.Yp&&!this.rh){var b=this.Wb();b.type=3;this.Yp=b.Mq=a;this.yb=this.nb=!1}};e.prototype.Hb=function(a){if(a!==this.Ee){var b=this.Wb();b.type=2;this.Ee=b.Jc=a;this.yb=this.nb=!1}};e.prototype.Pe=function(a,b){if((a!==this.Zp||b!==this.Xp)&&!this.rh){var g=
this.Wb();g.type=4;g.Bb=a;g.Bc=b;this.Zp=a;this.Xp=b;this.yb=this.nb=!1}};e.prototype.er=function(){this.Pe(this.G.ONE,this.G.ONE_MINUS_SRC_ALPHA)};e.prototype.sg=function(a,b,g,d,f,c,h,l){15992<=this.ge&&this.Nd();var e=this.ge,t=this.Bg,n=this.Tk,p=this.Ek,k=this.xl;if(this.nb)this.Gd[this.jd-1].Bc+=6;else{var q=this.Wb();q.type=1;q.Bb=this.xa?e:e/2*3;q.Bc=6;this.nb=!0;this.yb=!1}this.xa?(n[e++]=a,n[e++]=b,n[e++]=k,n[e++]=g,n[e++]=d,n[e++]=k,n[e++]=f,n[e++]=c,n[e++]=k,n[e++]=h,n[e++]=l,n[e++]=k):
(n[e++]=a,n[e++]=b,n[e++]=g,n[e++]=d,n[e++]=f,n[e++]=c,n[e++]=h,n[e++]=l);p[t++]=0;p[t++]=0;p[t++]=1;p[t++]=0;p[t++]=1;p[t++]=1;p[t++]=0;p[t++]=1;this.ge=e;this.Bg=t};e.prototype.ud=function(a,b,g,d,f,c,h,l,e){15992<=this.ge&&this.Nd();var t=this.ge,n=this.Bg,p=this.Tk,k=this.Ek,q=this.xl;if(this.nb)this.Gd[this.jd-1].Bc+=6;else{var m=this.Wb();m.type=1;m.Bb=this.xa?t:t/2*3;m.Bc=6;this.nb=!0;this.yb=!1}var m=e.left,r=e.top,D=e.right;e=e.bottom;this.xa?(p[t++]=a,p[t++]=b,p[t++]=q,p[t++]=g,p[t++]=d,
p[t++]=q,p[t++]=f,p[t++]=c,p[t++]=q,p[t++]=h,p[t++]=l,p[t++]=q):(p[t++]=a,p[t++]=b,p[t++]=g,p[t++]=d,p[t++]=f,p[t++]=c,p[t++]=h,p[t++]=l);k[n++]=m;k[n++]=r;k[n++]=D;k[n++]=r;k[n++]=D;k[n++]=e;k[n++]=m;k[n++]=e;this.ge=t;this.Bg=n};e.prototype.nx=function(a,b,g,d){7996<=this.rg&&this.Nd();var f=this.rg,c=this.jn;if(this.yb)this.Gd[this.jd-1].Bc++;else{var h=this.Wb();h.type=8;h.Bb=f;h.Bc=1;this.yb=!0;this.nb=!1}c[f++]=a;c[f++]=b;c[f++]=g;c[f++]=d;this.rg=f};e.prototype.Yb=function(a){if(this.Bh!==
a){if(!this.Ja[a]){if(0===this.Bh)return;a=0}var b=this.Wb();b.type=9;this.Bh=b.Bb=a;this.yb=this.nb=!1}};e.prototype.Zh=function(a){a=this.Ja[a];return!(!a.tf&&!a.sf)};e.prototype.nn=function(a){a=this.Ja[a];return!!(a.tf||a.sf||a.kp)};e.prototype.mn=function(a){return this.Ja[a].Xc};e.prototype.zx=function(a){a=this.Ja[a];return 0!==a.Fl||0!==a.Gl};e.prototype.Wv=function(a){return this.Ja[a].Fl};e.prototype.Xv=function(a){return this.Ja[a].Gl};e.prototype.Yv=function(a,b){return this.Ja[a].Y[b][2]};
e.prototype.ak=function(a){return this.Ja[a].Wo};e.prototype.vg=function(a,b,g,d,f,c,h,l,e,t,n,p,k,q,m){var r=this.Ja[this.Bh],D,A;if(r.sw||m.length){D=this.Wb();D.type=10;D.X?dc(this.qc,D.X):D.X=cc();A=D.X;A[0]=b;A[1]=g;A[2]=d;A[3]=f;A[4]=c;A[5]=h;A[6]=l;A[7]=e;A[8]=t;A[9]=n;A[10]=p;A[11]=k;A[12]=q;r.Lh?D.Jc=a:D.Jc=null;if(m.length)for(g=D.pr,g.length=m.length,a=0,b=m.length;a<b;a++)g[a]=m[a];this.yb=this.nb=!1}};e.prototype.clear=function(a,b,g,d){var f=this.Wb();f.type=7;f.Bb=0;f.X||(f.X=cc());
f.X[0]=a;f.X[1]=b;f.X[2]=g;f.X[3]=d;this.yb=this.nb=!1};e.prototype.clearRect=function(a,b,g,d){if(!(0>g||0>d)){var f=this.Wb();f.type=7;f.Bb=1;f.X||(f.X=cc());f.X[0]=a;f.X[1]=b;f.X[2]=g;f.X[3]=d;this.yb=this.nb=!1}};e.prototype.ir=function(a){if(this.xa&&(a=!!a,this.rh!==a)){var b=this.Wb();b.type=14;b.Bb=a?1:0;this.yb=this.nb=!1;this.rh=a;this.fk=null;this.rh?this.Yb(2):this.Yb(0)}};e.prototype.hr=function(a){if(this.xa){var b=this.Wb();b.type=13;b.Bb=a?1:0;this.yb=this.nb=!1}};e.prototype.wp=function(){dc(this.wm,
r);this.Fc();this.wc();var a=this.width/2,b=this.height/2;this.sg(-a,b,a,b,a,-b,-a,-b);dc(r,this.qc);this.wc()};e.prototype.fr=function(a,b,g){this.Yb(3);var d=this.Wb();d.type=12;d.X||(d.X=cc());d.X[0]=a;d.X[1]=b;d.X[2]=g;d.X[3]=1;this.yb=this.nb=!1};e.prototype.Rx=function(){this.Yb(0)};e.prototype.Fx=function(){this.Yb(2)};e.prototype.yx=function(){this.Nd();this.G.flush()};var h=[],c={};e.prototype.qu=function(){T(h);c={}};e.prototype.Wc=function(a,b,g,d,f){b=!!b;g=!!g;var e=a.src+","+b+","+g+
(b?","+f:""),u=null;if("undefined"!==typeof a.src&&c.hasOwnProperty(e))return u=c[e],u.Ni++,u;this.Nd();var l=this.G,k=ja(a.width)&&ja(a.height),u=l.createTexture();l.bindTexture(l.TEXTURE_2D,u);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var t=l.RGBA,n=l.RGBA,p=l.UNSIGNED_BYTE;if(d&&!this.Ce)switch(d){case 1:n=t=l.RGB;break;case 2:p=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:p=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:n=t=l.RGB,p=l.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!k&&b){d=document.createElement("canvas");
d.width=ka(a.width);d.height=ka(a.height);var q=d.getContext("2d");"undefined"!==typeof q.imageSmoothingEnabled?q.imageSmoothingEnabled=g:(q.webkitImageSmoothingEnabled=g,q.mozImageSmoothingEnabled=g,q.msImageSmoothingEnabled=g);q.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);l.texImage2D(l.TEXTURE_2D,0,t,n,p,d)}else l.texImage2D(l.TEXTURE_2D,0,t,n,p,a);b?"repeat-x"===f?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE)):
("repeat-y"===f?l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));g?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),(k||2<=this.version)&&this.pp?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):
l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.Ee=null;u.Pc=a.width;u.Oc=a.height;u.Ni=1;u.ep=e;h.push(u);return c[e]=u};e.prototype.kc=function(a,b,g,d){this.Nd();var f=this.G;this.Ce&&(d=!1);var c=f.createTexture();f.bindTexture(f.TEXTURE_2D,c);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,b,0,f.RGBA,d?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,
null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,g?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,g?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Ee=null;c.Pc=a;c.Oc=b;h.push(c);return c};e.prototype.ey=function(a,b,g){this.Nd();var d=this.G;this.Ce&&(g=!1);d.bindTexture(d.TEXTURE_2D,b);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,
!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,g?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}d.bindTexture(d.TEXTURE_2D,null);this.Ee=null};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Ni&&1<a.Ni?a.Ni--:(this.Nd(),a===this.Ee&&(this.G.bindTexture(this.G.TEXTURE_2D,null),this.Ee=null),a===this.nf&&(this.G.activeTexture(this.G.TEXTURE1),this.G.bindTexture(this.G.TEXTURE_2D,null),this.G.activeTexture(this.G.TEXTURE0),
this.nf=null),Ha(h,a),"undefined"!==typeof a.ep&&delete c[a.ep],this.G.deleteTexture(a)))};e.prototype.Gc=function(a){if(a!==this.fk){var b=this.Wb();b.type=6;this.fk=b.Jc=a;this.yb=this.nb=!1}};jb=e})();
(function(){function e(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var d=this;this.Dc=(this.km=/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.Be=!!a.dc;this.Cw="undefined"!==typeof window.AppMobi||
this.Be;this.Cc=!!window.c2cocoonjs;this.Tc=!!window.c2ejecta;this.Cc&&(CocoonJS.App.onSuspended.addEventListener(function(){d.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){d.setSuspended(!1)}));this.Tc&&(document.addEventListener("pagehide",function(){d.setSuspended(!0)}),document.addEventListener("pageshow",function(){d.setSuspended(!1)}),document.addEventListener("resize",function(){d.setSize(window.innerWidth,window.innerHeight)}));this.Ma=this.Be||this.Cc||this.Tc;this.rj=
/edge\//i.test(navigator.userAgent);this.Ce=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.rj;this.Rp=/tizen/i.test(navigator.userAgent);this.Op=/android/i.test(navigator.userAgent)&&!this.Rp&&!this.Ce&&!this.rj;this.Wp=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Ce&&!this.rj;this.Nw=/ipad/i.test(navigator.userAgent);this.vj=this.Wp||this.Nw||this.Tc;this.Ew=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Ce&&!this.rj;this.Bw=/amazonwebappplatform/i.test(navigator.userAgent);this.Gw=/firefox/i.test(navigator.userAgent);this.sj="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Up=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Lw=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.wh=!("undefined"===
typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.rm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Tp=!!window.cr_windows10;this.Jw=this.Up||this.Lw||this.rm||this.Tp;this.Dw=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Pp=this.Op&&!this.Ew&&!this.km&&!this.Gw&&!this.Bw&&!this.Ma;this.devicePixelRatio=1;this.Td=this.Dc||this.km||this.Cw||this.Cc||this.Op||this.vj||this.wh||this.rm||this.Dw||this.Rp||this.Tc;this.Td||
(this.Td=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Sp=!!(this.vj&&this.Dc&&window.webkit);"undefined"===typeof cr_is_preview||this.sj||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.sj=!0);this.canvas=a;this.gp=document.getElementById("c2canvasdiv");this.B=this.G=null;this.Tl="(unavailable)";this.xa=!1;this.$e=0;this.Ba=null;this.dj=!1;this.Fq=this.Gq=
0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Be&&(window.c2runtime=this);this.sj&&(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.Pp&&"undefined"!==
typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.P=this.width;this.O=this.height;this.Ti=this.width;this.Xg=this.height;this.jg=window.innerWidth;this.ig=window.innerHeight;this.S=!0;this.vh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.C=[];this.Fa=[];this.Em={};this.Uc=[];this.El={};this.Od=[];this.Lg=[];this.Ok=[];this.hu=[];this.iu=[];this.Ln=null;this.Xe={};this.mm=this.ze=!1;this.oc=0;
this.lm=this.pm=!1;this.Qc=[];this.sh=!1;this.Dj=this.Cn="";this.cb=null;this.Ud="";this.ki=this.rr=!1;this.cj=[];this.Ze=this.Tf=0;this.zq=30;this.sl=this.Ph=0;this.Fg=1;this.Fb=new Za;this.Uk=new Za;this.Nj=this.hj=this.df=this.vc=this.pf=this.Kl=this.yj=0;this.pl=null;this.Yi=[];this.Dl=[];this.$i=-1;this.Lm=[[]];this.Wn=this.Hj=0;this.ck(null);this.Mm=[];this.Jj=-1;this.Cq=this.Th=0;this.Dm=!0;this.dh=0;this.Bk=[];this.Sn=this.rn=-1;this.wj=!0;this.Fj=0;this.uh=!1;this.Sx=0;this.Tg=null;this.ab=
this.nj=!1;this.Eq=new da;this.Sm=new da;this.Tm=new da;this.tn=[];this.cd=new ab([]);this.Qn=new ab([]);this.Mf=[];this.ag={};this.te={};this.le={};this.Jg={};this.Zo={};this.bq=this.Cj=this.Ra=this.bb=this.aq=this.Bj=this.ea=null;this.Hg=this.um=!1;this.Ll=[null,null];this.ef=0;this.Xd={};this.ii=this.Fe=null;this.tr="";this.Mj=[];this.Ex()}}function q(a,d){return 128>=d?a[3]:256>=d?a[2]:512>=d?a[1]:a[0]}function m(){try{return!!window.indexedDB}catch(a){return!1}}function k(a){a.target.result.createObjectStore("saves",
{keyPath:"slot"})}function r(a,d,f,b){try{var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=k;g.onerror=b;g.onsuccess=function(g){g=g.target.result;g.onerror=b;g.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=f}}catch(l){b(l)}}function h(a,d,f){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=k;b.onerror=f;b.onsuccess=function(b){b=b.target.result;b.onerror=f;var g=b.transaction(["saves"]).objectStore("saves").get(a);g.onsuccess=function(){g.result?
d(g.result.data):d(null)}}}catch(g){f(g)}}function c(){w("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var d,f={};for(d in a)!a.hasOwnProperty(d)||a[d]instanceof da||a[d]&&"undefined"!==typeof a[d].Oy||"spriteCreatedDestroyCallback"!==d&&(f[d]=a[d]);return f}var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
window.msRequestAnimationFrame||window.oRequestAnimationFrame;e.prototype.Ex=function(){var a=this;if(this.Sp)this.Jv(function(d){a.Ih(JSON.parse(d))},function(){alert("Error fetching data.js")});else{var d;this.wh?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;var f="data.js";if(this.Up||this.wh||this.rm||this.Tp)f="data.json";d.open("GET",f,!0);var b=!1;if(!this.Ma&&"response"in d&&"responseType"in d)try{d.responseType="json",b="json"===d.responseType}catch(g){b=!1}if(!b&&"responseType"in
d)try{d.responseType="text"}catch(l){}if("overrideMimeType"in d)try{d.overrideMimeType("application/json; charset=utf-8")}catch(c){}this.wh?d.onreadystatechange=function(){4===d.readyState&&a.Ih(JSON.parse(d.responseText))}:(d.onload=function(){if(b)a.Ih(d.response);else if(a.Tc){var f=d.responseText,f=f.substr(f.indexOf("{"));a.Ih(JSON.parse(f))}else a.Ih(JSON.parse(d.responseText))},d.onerror=function(a){ha("Error requesting "+f+":");ha(a)});d.send()}};e.prototype.xw=function(){var a=this,d,f,b,
g,l,c,n,h,p;this.mf=(!this.Ma||this.Tc||this.Dc)&&this.ay&&!this.Pp;0===this.Eb&&this.vj&&(this.mf=!1);this.devicePixelRatio=this.mf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.sb();0<this.Eb&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(d){d.preventDefault();a.$w();w("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",
function(){a.B.Jp();a.B.Ff(a.B.width,a.B.height,!0);a.bb=null;a.Ra=null;a.Ll[0]=null;a.Ll[1]=null;a.ax();a.S=!0;w("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Yu&&(this.Cc||this.Tc||!this.Ma)&&(d={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.G=this.canvas.getContext("webgl2",d)||this.canvas.getContext("webgl",d)||this.canvas.getContext("experimental-webgl",d))}catch(e){}if(this.G){if(d=this.G.getExtension("WEBGL_debug_renderer_info"))this.Tl=
this.G.getParameter(d.UNMASKED_RENDERER_WEBGL)+" ["+this.G.getParameter(d.UNMASKED_VENDOR_WEBGL)+"]";this.xa&&(this.Tl+=" [front-to-back enabled]");this.Ma||(this.qb=document.createElement("canvas"),jQuery(this.qb).appendTo(this.canvas.parentNode),this.qb.oncontextmenu=function(){return!1},this.qb.onselectstart=function(){return!1},this.qb.width=Math.round(this.Ti*this.devicePixelRatio),this.qb.height=Math.round(this.Xg*this.devicePixelRatio),jQuery(this.qb).css({width:this.Ti+"px",height:this.Xg+
"px"}),this.Sq(),this.gn=this.qb.getContext("2d"));this.B=new jb(this.G,this.Td,this.xa);this.B.Ff(this.canvas.width,this.canvas.height);this.B.pp=0!==this.Ru;this.Ba=null;d=0;for(f=this.C.length;d<f;d++)for(l=this.C[d],b=0,g=l.T.length;b<g;b++)n=l.T[b],n.Wa=this.B.Rl(n.id),n.Xc=this.B.mn(n.Wa),this.Hg=this.Hg||this.B.Zh(n.Wa);d=0;for(f=this.Uc.length;d<f;d++){h=this.Uc[d];b=0;for(g=h.T.length;b<g;b++)n=h.T[b],n.Wa=this.B.Rl(n.id),n.Xc=this.B.mn(n.Wa);h.fd();b=0;for(g=h.V.length;b<g;b++){p=h.V[b];
l=0;for(c=p.T.length;l<c;l++)n=p.T[l],n.Wa=this.B.Rl(n.id),n.Xc=this.B.mn(n.Wa),this.Hg=this.Hg||this.B.Zh(n.Wa);p.fd()}}}else{if(0<this.Eb&&this.Be){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ba=AppMobi.canvas.getContext("2d");try{this.Ba.samplingMode=this.wa?"smooth":"sharp",this.Ba.globalScale=1,this.Ba.HTML5CompatibilityMode=!0,this.Ba.imageSmoothingEnabled=this.wa}catch(t){}0!==this.width&&0!==this.height&&(this.Ba.width=this.width,
this.Ba.height=this.height)}this.Ba||(this.Cc?(d={antialias:!!this.wa,alpha:!0},this.Ba=this.canvas.getContext("2d",d)):(d={alpha:!0},this.Ba=this.canvas.getContext("2d",d)),this.lk(this.Ba,this.wa));this.gn=this.qb=null}this.Er=function(d){a.Ka(!1,d)};window==window.top||this.Ma||this.Jw||this.wh||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Cc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),
-1<window.location.search.indexOf("continuous")&&(w("Reloading for continuous preview"),this.Dj="__c2_continuouspreview",this.ki=!0),this.mx&&!this.Td&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var d=window.parent;d&&d.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Le()});this.Ma||(d=function(a){if(ib(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(d){}},
"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",d):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",d):document.addEventListener("touchstart",d),document.addEventListener("mousedown",d));0===this.Eb&&this.mf&&1<this.devicePixelRatio&&this.setSize(this.Ua,this.Ta,!0);this.Kr();this.pw();this.go();this.U={}};e.prototype.setSize=function(a,d,f){var b=0,g=0,l=0,c=0,c=0;if(this.jg!==a||this.ig!==d||f){this.jg=a;this.ig=d;var n=this.Eb;if((l=(document.mozFullScreen||
document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.uh)&&!this.Dc)||0!==this.Eb||f)l&&0<this.ef&&(n=this.ef),f=this.devicePixelRatio,4<=n?(l=this.Ua/this.Ta,a/d>l?(l*=d,5===n?(c=l*f/this.Ua,1<c?c=Math.floor(c):1>c&&(c=1/Math.ceil(1/c)),l=this.Ua*c/f,c=this.Ta*c/f,b=(a-l)/2,g=(d-c)/2,a=l,d=c):(b=(a-l)/2,a=l)):(c=a/l,5===n?(c=c*f/this.Ta,1<c?c=Math.floor(c):1>c&&(c=1/Math.ceil(1/c)),l=this.Ua*c/f,c=this.Ta*c/f,b=(a-l)/2,g=(d-c)/2,a=l):g=(d-c)/2,d=c)):this.sj&&this.uh&&
0===this.xp&&(b=Math.floor((a-this.Ua)/2),g=Math.floor((d-this.Ta)/2),a=this.Ua,d=this.Ta),2>n&&(this.Sg=f),this.Ti=Math.round(a),this.Xg=Math.round(d),this.width=Math.round(a*f),this.height=Math.round(d*f),this.S=!0,this.Wr?(this.P=this.width,this.O=this.height,this.mc=!0):this.width<this.Ua&&this.height<this.Ta||1===n?(this.P=this.width,this.O=this.height,this.mc=!0):(this.P=this.Ua,this.O=this.Ta,this.mc=!1,2===n?(l=this.Ua/this.Ta,n=this.jg/this.ig,n<l?this.P=this.O*n:n>l&&(this.O=this.P/n)):
3===n&&(l=this.Ua/this.Ta,n=this.jg/this.ig,n>l?this.P=this.O*n:n<l&&(this.O=this.P/n))),this.gp&&!this.Ma&&(jQuery(this.gp).css({width:Math.round(a)+"px",height:Math.round(d)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(g)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(d)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*f),this.canvas.height=Math.round(d*f),this.Tc?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=
Math.floor(g)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px"):this.mf&&!this.Ma&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px")),this.qb&&(this.qb.width=Math.round(a*f),this.qb.height=Math.round(d*f),this.qb.style.width=this.Ti+"px",this.qb.style.height=this.Xg+"px"),this.B&&this.B.Ff(Math.round(a*f),Math.round(d*f)),this.Be&&this.Ba&&(this.Ba.width=Math.round(a),this.Ba.height=Math.round(d)),this.Ba&&this.lk(this.Ba,
this.wa),this.Kr(),this.Wp&&!this.Dc&&window.scrollTo(0,0)}};e.prototype.Kr=function(){if(this.ku&&0!==this.dn){var a="portrait";2===this.dn&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(d){console&&console.warn&&
console.warn("Failed to lock orientation: ",d)}}};e.prototype.$w=function(){this.B.qu();this.um=!0;var a,d,f;a=0;for(d=this.C.length;a<d;a++)f=this.C[a],f.Xh&&f.Xh()};e.prototype.ax=function(){this.um=!1;var a,d,f;a=0;for(d=this.C.length;a<d;a++)f=this.C[a],f.Pj&&f.Pj()};e.prototype.Sq=function(){if(!this.Ma){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.uh)&&!this.Dc?jQuery(this.canvas).offset():jQuery(this.canvas).position();
a.position="absolute";jQuery(this.qb).css(a)}};var g=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;e.prototype.setSuspended=function(a){var d;if(a&&!this.vh)for(w("[Construct 2] Suspending"),this.vh=!0,-1!==this.rn&&g&&g(this.rn),-1!==this.Sn&&clearTimeout(this.Sn),a=0,d=this.Bk.length;a<d;a++)this.Bk[a](!0);else if(!a&&this.vh){w("[Construct 2] Resuming");this.vh=!1;this.yj=Va();this.pf=
Va();a=this.Ph=this.hj=0;for(d=this.Bk.length;a<d;a++)this.Bk[a](!1);this.Ka(!1)}};e.prototype.je=function(a){return this.Mj[a]};e.prototype.Ih=function(a){a&&a.project||ha("Project model unavailable");a=a.project;this.name=a[0];this.vp=a[1];this.Eb=a[12];this.xp=a[12];this.Ua=a[10];this.Ta=a[11];this.Nq=this.Ua/2;this.Oq=this.Ta/2;this.Ma&&!this.Tc&&(4<=a[12]||0===a[12])&&(w("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.xp=
this.Eb=3);this.co=a[18];this.Ge=a[19];if(0===this.Ge){var d=new Image;d.crossOrigin="anonymous";this.jr(d,"loading-logo.png");this.Fe={Ij:d}}else if(4===this.Ge){d=new Image;d.src="";var f=new Image;f.src="";var b=new Image;b.src="";var g=new Image;g.src="";var l=new Image;l.src="";var c=new Image;c.src="";var n=new Image;n.src="";var h=new Image;h.src="";var p=new Image;p.src="";var e=new Image;e.src="";var t=new Image;t.src="";var u=new Image;u.src="";this.Fe={Ij:[d,f,b,g],vx:[l,c,n,h],hy:[p,e,
t,u]}}this.Th=a[21];this.Mj=hc();this.zd=new W(this);d=0;for(f=a[2].length;d<f;d++)n=a[2][d],b=this.je(n[0]),kb(n,b.prototype),h=new b(this),h.uk=n[1],h.De=n[2],h.Mw=n[5],h.Bq=n[9],h.K&&h.K(),this.plugins.push(h);this.Mj=hc();d=0;for(f=a[3].length;d<f;d++){n=a[3][d];l=this.je(n[1]);h=null;b=0;for(g=this.plugins.length;b<g;b++)if(this.plugins[b]instanceof l){h=this.plugins[b];break}p=new h.R(h);p.name=n[0];p.M=n[2];p.jm=n[3].slice(0);p.cy=n[3].length;p.lu=n[4];p.Mv=n[5];p.Z=n[11];p.M?(p.wf=[],p.Pd=
this.dh++,p.Ca=null):(p.wf=null,p.Pd=-1,p.Ca=[]);p.bj=null;p.Wf=null;p.qp=null;p.ob=!1;p.ec=null;n[6]?(p.Fk=n[6][0],p.Gk=n[6][1],p.Cg=n[6][2]):(p.Fk=null,p.Gk=0,p.Cg=0);n[7]?p.cc=n[7]:p.cc=null;p.index=d;p.j=[];p.Wi=[];p.ae=[new lb(p)];p.kd=0;p.zc=null;p.xu=0;p.Ag=!0;p.Qk=mb;p.Cp=nb;p.Vv=ob;p.ba=pb;p.$h=qb;p.bk=rb;p.Ef=sb;p.ij=tb;p.Ml=ub;p.Ol=vb;p.oe=wb;p.Pl=xb;p.Ri=new bb(this.Ua,this.Ta);p.Gi=!0;p.Hi=!1;p.U={};p.toString=yb;p.Fa=[];b=0;for(g=n[8].length;b<g;b++){e=n[8][b];t=this.je(e[1]);u=null;
l=0;for(c=this.Fa.length;l<c;l++)if(this.Fa[l]instanceof t){u=this.Fa[l];break}u||(u=new t(this),u.Qm=[],u.Rh=new da,u.K&&u.K(),this.Fa.push(u),ic&&u instanceof ic&&(this.Ln=u));-1===u.Qm.indexOf(p)&&u.Qm.push(p);l=new u.R(u,p);l.name=e[0];l.Z=e[2];l.K();p.Fa.push(l)}p.global=n[9];p.nm=n[10];p.T=[];b=0;for(g=n[12].length;b<g;b++)p.T.push({id:n[12][b][0],name:n[12][b][1],Wa:-1,Xc:!1,Ea:!0,index:b});p.kz=n[13];this.co&&!p.M&&!p.nm&&h.De||p.K();p.name&&(this.types[p.name]=p);this.C.push(p);h.uk&&(b=
new h.N(p),b.uid=this.Th++,b.Vq=this.Cq++,b.kf=0,b.kh=zb,b.toString=Ab,b.A=n[14],b.K(),p.j.push(b),this.Xd[b.uid.toString()]=b)}d=0;for(f=a[4].length;d<f;d++)for(l=a[4][d],c=this.C[l[0]],b=1,g=l.length;b<g;b++)n=this.C[l[b]],n.Ca.push(c),c.wf.push(n);d=0;for(f=a[28].length;d<f;d++){l=a[28][d];c=[];b=0;for(g=l.length;b<g;b++)c.push(this.C[l[b]]);b=0;for(g=c.length;b<g;b++)c[b].ob=!0,c[b].ec=c}if(0<this.dh)for(d=0,f=this.C.length;d<f;d++)if(n=this.C[d],!n.M&&n.Ca.length){n.bj=Array(this.dh);n.Wf=Array(this.dh);
n.qp=Array(this.dh);p=[];b=u=t=e=0;for(g=n.Ca.length;b<g;b++)for(h=n.Ca[b],n.bj[h.Pd]=e,e+=h.cy,n.Wf[h.Pd]=t,t+=h.lu,n.qp[h.Pd]=u,u+=h.Mv,l=0,c=h.T.length;l<c;l++)p.push(ya({},h.T[l]));n.T=p.concat(n.T);b=0;for(g=n.T.length;b<g;b++)n.T[b].index=b}d=0;for(f=a[5].length;d<f;d++)n=a[5][d],b=new Bb(this,n),this.Em[b.name]=b,this.Uc.push(b);d=0;for(f=a[6].length;d<f;d++)n=a[6][d],b=new Cb(this,n),this.El[b.name]=b,this.Od.push(b);d=0;for(f=this.Od.length;d<f;d++)this.Od[d].Oa();d=0;for(f=this.Od.length;d<
f;d++)this.Od[d].Zn();d=0;for(f=this.Ok.length;d<f;d++)this.Ok[d].Oa();T(this.Ok);this.ju=a[7];this.uc=a[9];this.Sg=1;this.Yu=a[13];this.wa=a[14];this.ip=a[15];this.ay=a[17];this.dn=a[20];this.ku=0<this.dn;this.mx=a[22];this.mc=this.Wr=a[23];this.Ru=a[24];this.wx=a[25];this.xa=a[27]&&!this.Ce;this.yk=Date.now();T(this.Mj);this.xw()};var d=!1,f=0,v=[];e.prototype.Dx=function(a,d){function b(){f--;g.vq()}var g=this;a.addEventListener("load",b);a.addEventListener("error",b);v.push([a,d]);this.vq()};
e.prototype.vq=function(){for(var a;v.length&&100>f;)f++,a=v.shift(),this.jr(a[0],a[1])};e.prototype.eo=function(a,f){a.cocoonLazyLoad=!0;a.onerror=function(f){d=a.dp=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",f)};this.Tc?a.src=f:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(f,function(d){a.src=d},function(b){d=a.dp=!0;console&&console.error&&console.error("Error extracting image '"+f+"' from expansion file: ",b)}):(a.crossOrigin="anonymous",this.Dx(a,f)));
this.Lg.push(a)};e.prototype.Lv=function(a){var d,f;d=0;for(f=this.Lg.length;d<f;d++)if(this.Lg[d].ru===a)return this.Lg[d];return null};var u=0,l=!1;e.prototype.pw=function(){this.Tg&&(u=this.Tg.gz(this.ju))};e.prototype.Xo=function(){var a=u,d=0,f=0,b=!0,g,c,f=0;for(g=this.Lg.length;f<g;f++){c=this.Lg[f];var n=c.tl;if(!n||0>=n)n=5E4;a+=n;c.src&&(c.complete||c.loaded)&&!c.dp?d+=n:b=!1}b&&this.wx&&this.Tg&&(l||(this.Tg.hz(),l=!0),f=this.Tg.Ty(),d+=f,f<u&&(b=!1));this.Yc=0==a?1:d/a;return b};var E=
!1;e.prototype.go=function(){if(this.Ba||this.B){var a=this.Ba||this.gn;this.qb&&this.Sq();var f=window.innerWidth,g=window.innerHeight;this.jg===f&&this.ig===g||this.setSize(f,g);this.Yc=0;this.$p=-1;var l=this;if(this.Xo()&&(4!==this.Ge||E))this.qw();else{g=Date.now()-this.yk;if(a){var c=this.width,n=this.height,f=this.devicePixelRatio;if(3>this.Ge&&(this.Cc||500<=g&&this.$p!=this.Yc)){a.clearRect(0,0,c,n);var g=c/2,n=n/2,c=0===this.Ge&&this.Fe.Ij.complete,p=40*f,h=0,e=80*f,t;if(c){var u=this.Fe.Ij,
e=u.width*f;t=u.height*f;p=e/2;h=t/2;a.drawImage(u,K(g-p),K(n-h),e,t)}1>=this.Ge?(g=K(g-p)+.5,n=K(n+(h+(c?12*f:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(g,n,Math.floor(e*this.Yc),6*f),a.strokeStyle="black",a.strokeRect(g,n,e,6*f),a.strokeStyle="white",a.strokeRect(g-1*f,n-1*f,e+2*f,8*f)):2===this.Ge&&(a.font=this.Tc?"12pt ArialMT":"12pt Arial",a.fillStyle=d?"#f00":"#999",a.jz="middle",f=Math.round(100*this.Yc)+"%",c=a.measureText?a.measureText(f):null,a.fillText(f,g-(c?c.width:0)/2,n));
this.$p=this.Yc}else if(4===this.Ge){this.Wu(a);b?b(function(){l.go()}):setTimeout(function(){l.go()},16);return}}setTimeout(function(){l.go()},this.Cc?10:100)}}};var t=-1,n="undefined"===typeof cr_is_preview?200:0,p=!0,fa=!1,y=0,R=0,G="undefined"===typeof cr_is_preview?3E3:0,D=null,A=null,I=0;e.prototype.Wu=function(a){if(!E){for(var f=Math.ceil(this.width),b=Math.ceil(this.height),g=this.Fe.Ij,l=this.Fe.vx,c=this.Fe.hy,h=0;4>h;++h)if(!g[h].complete||!l[h].complete||!c[h].complete)return;0===I&&
(t=Date.now());var h=Date.now(),e=!1,u=a,k,v;p||fa?(a.clearRect(0,0,f,b),D&&D.width===f&&D.height===b||(D=document.createElement("canvas"),D.width=f,D.height=b,A=D.getContext("2d")),u=A,e=!0,p&&1===I&&(t=Date.now())):a.globalAlpha=1;u.fillStyle="#333333";u.fillRect(0,0,f,b);256<this.Xg?(k=Ia(.22*b,105,.6*f),v=.25*k,u.drawImage(q(l,k),.5*f-k/2,.2*b-v/2,k,v),v=k=Math.min(.395*b,.95*f),u.drawImage(q(g,k),.5*f-k/2,.485*b-v/2,k,v),k=Ia(.22*b,105,.6*f),v=.25*k,u.drawImage(q(c,k),.5*f-k/2,.868*b-v/2,k,v),
u.fillStyle="#3C3C3C",k=f,v=Math.max(.005*b,2),u.fillRect(0,.8*b-v/2,k,v),u.fillStyle=d?"red":"#E0FF65",k=f*this.Yc,u.fillRect(.5*f-k/2,.8*b-v/2,k,v)):(v=k=.55*b,u.drawImage(q(g,k),.5*f-k/2,.45*b-v/2,k,v),u.fillStyle="#3C3C3C",k=f,v=Math.max(.005*b,2),u.fillRect(0,.85*b-v/2,k,v),u.fillStyle=d?"red":"#E0FF65",k=f*this.Yc,u.fillRect(.5*f-k/2,.85*b-v/2,k,v));e&&(p?a.globalAlpha=0===I?0:Math.min((h-t)/300,1):fa&&(a.globalAlpha=Math.max(1-(h-R)/300,0)),a.drawImage(D,0,0,f,b));p&&300<=h-t&&2<=I&&(p=!1,
y=h);!p&&h-y>=G&&!fa&&1<=this.Yc&&(fa=!0,R=h);if(fa&&h-R>=300+n||"undefined"!==typeof cr_is_preview&&1<=this.Yc&&500>Date.now()-t)E=!0,fa=p=!1,this.Fe=A=D=null;++I}};e.prototype.qw=function(){this.qb&&(this.canvas.parentNode.removeChild(this.qb),this.qb=this.gn=null);this.yk=Date.now();this.pf=Va();var a,d,f;if(this.co)for(a=0,d=this.C.length;a<d;a++)f=this.C[a],f.M||f.nm||!f.qa.De||f.K();else this.wj=!1;a=0;for(d=this.Uc.length;a<d;a++)this.Uc[a].su();2<=this.Eb&&(a=this.Ua/this.Ta,d=this.width/
this.height,this.Sg=2!==this.Eb&&d>a||2===this.Eb&&d<a?this.height/this.Ta:this.width/this.Ua);this.vp?this.Em[this.vp].Nn():this.Uc[0].Nn();this.co||(this.Fj=1,this.trigger(W.prototype.n.yo,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(d=this.C.length;a<d;a++)f=this.C[a],f.Zw&&f.Zw();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ka(!1);this.Be&&
AppMobi.webview.execute("onGameReady();")};e.prototype.Ka=function(a,d,f){if(this.ea){var g=Va();if(f||!this.vh||a){a||(b?this.rn=b(this.Er):this.Sn=setTimeout(this.Er,this.Td?1:16));d=d||g;var l=this.Eb;((f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Dc)||this.uh)&&0<this.ef&&(l=this.ef);if(0<l){var l=window.innerWidth,c=window.innerHeight;this.jg===l&&this.ig===c||this.setSize(l,c)}this.Ma||(f?this.dj||(this.dj=!0):this.dj?(this.dj=
!1,0===this.Eb&&this.setSize(Math.round(this.Gq/this.devicePixelRatio),Math.round(this.Fq/this.devicePixelRatio),!0)):(this.Gq=this.width,this.Fq=this.height));this.wj&&(f=this.Xo(),this.Fj=this.Yc,f&&(this.wj=!1,this.Yc=1,this.trigger(W.prototype.n.yo,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Qw(d);!this.S&&!this.Cc||this.um||this.ki||a||(this.S=!1,this.B?this.xb():this.lc(),this.ii&&(this.canvas&&this.canvas.toDataURL&&(this.tr=this.canvas.toDataURL(this.ii[0],this.ii[1]),window.cr_onSnapshot&&
window.cr_onSnapshot(this.tr),this.trigger(W.prototype.n.Ws,null)),this.ii=null));this.Uy||(this.vc++,this.df++,this.hj++);this.Ph+=Va()-g}}};e.prototype.Qw=function(a){var d,f,b,g,l,c,n,p;1E3<=a-this.pf&&(this.pf+=1E3,1E3<=a-this.pf&&(this.pf=a),this.Kl=this.hj,this.hj=0,this.sl=this.Ph,this.Ph=0);d=0;0!==this.yj&&(d=a-this.yj,0>d&&(d=0),this.Ze=d/=1E3,.5<this.Ze?this.Ze=0:this.Ze>1/this.zq&&(this.Ze=1/this.zq));this.yj=a;this.Tf=this.Ze*this.Fg;this.Fb.add(this.Tf);this.Uk.add(d);a=(document.mozFullScreen||
document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.uh)&&!this.Dc;2<=this.Eb||a&&0<this.ef?(d=this.Ua/this.Ta,f=this.width/this.height,b=this.Eb,a&&0<this.ef&&(b=this.ef),this.Sg=2!==b&&f>d||2===b&&f<d?this.height/this.Ta:this.width/this.Ua,this.ea&&(this.ea.Dn(this.ea.scrollX),this.ea.En(this.ea.scrollY))):this.Sg=this.mf?this.devicePixelRatio:1;this.sb();this.oc++;this.zd.Ix();this.oc--;this.sb();this.oc++;f=this.Eq.Cd();a=0;for(d=f.length;a<d;a++)f[a].bz();a=
0;for(d=this.C.length;a<d;a++)if(c=this.C[a],!c.M&&(c.Fa.length||c.Ca.length))for(f=0,b=c.j.length;f<b;f++)for(n=c.j[f],g=0,l=n.Q.length;g<l;g++)n.Q[g].Ka();a=0;for(d=this.C.length;a<d;a++)if(c=this.C[a],!c.M&&(c.Fa.length||c.Ca.length))for(f=0,b=c.j.length;f<b;f++)for(n=c.j[f],g=0,l=n.Q.length;g<l;g++)p=n.Q[g],p.ux&&p.ux();f=this.Sm.Cd();a=0;for(d=f.length;a<d;a++)f[a].Ka();this.oc--;this.rw();for(a=0;this.pl&&10>a++;)this.np(this.pl);a=0;for(d=this.Od.length;a<d;a++)this.Od[a].Yl=!1;this.ea.bf&&
this.ea.bf.Va();T(this.tn);this.Dm=!1;this.oc++;a=0;for(d=this.C.length;a<d;a++)if(c=this.C[a],!c.M&&(c.Fa.length||c.Ca.length))for(f=0,b=c.j.length;f<b;f++)for(n=c.j[f],g=0,l=n.Q.length;g<l;g++)p=n.Q[g],p.Dg&&p.Dg();f=this.Tm.Cd();a=0;for(d=f.length;a<d;a++)f[a].Dg();this.oc--};e.prototype.Le=function(){var a,d,f,b,g,c,l,n,p;a=0;for(d=this.C.length;a<d;a++)if(l=this.C[a],!l.M)for(f=0,b=l.j.length;f<b;f++)if(n=l.j[f],n.Le&&n.Le(),n.Q)for(g=0,c=n.Q.length;g<c;g++)p=n.Q[g],p.Le&&p.Le()};e.prototype.np=
function(a){var d=this.ea;this.ea.Tx();var f,b,g;if(this.B)for(f=0,b=this.C.length;f<b;f++)g=this.C[f],g.M||!g.Pk||g.global&&0!==g.j.length||-1!==a.ph.indexOf(g)||g.Pk();d==a&&T(this.zd.ac);T(this.tn);this.br(!0);a.Nn();this.br(!1);this.Dm=this.S=!0;this.sb()};e.prototype.br=function(a){var d,f,b,g,c,l,n,p,h;d=0;for(f=this.Fa.length;d<f;d++)b=this.Fa[d],a?b.Vh&&b.Vh():b.Wh&&b.Wh();d=0;for(f=this.C.length;d<f;d++)if(b=this.C[d],b.global||b.qa.uk)for(g=0,c=b.j.length;g<c;g++)if(l=b.j[g],a?l.Vh&&l.Vh():
l.Wh&&l.Wh(),l.Q)for(n=0,p=l.Q.length;n<p;n++)h=l.Q[n],a?h.Vh&&h.Vh():h.Wh&&h.Wh()};e.prototype.Jk=function(a){this.Sm.add(a)};e.prototype.Vx=function(a){this.Tm.add(a)};e.prototype.od=function(a){return a&&-1!==a.Sh?this.Ze*a.Sh:this.Tf};e.prototype.lc=function(){this.ea.lc(this.Ba);this.Be&&this.Ba.present()};e.prototype.xb=function(){this.xa&&(this.$e=1,this.ea.Ye(this.B));this.ea.xb(this.B);this.B.yx()};e.prototype.To=function(a){a&&this.Yi.push(a)};e.prototype.Yq=function(a){Ha(this.Yi,a)};e.prototype.ih=
function(a){a=a.toString();return this.Xd.hasOwnProperty(a)?this.Xd[a]:null};var J=[];e.prototype.Dd=function(a){var d,f;d=a.type.name;var b=null;if(this.Xe.hasOwnProperty(d)){if(b=this.Xe[d],b.contains(a))return}else b=J.length?J.pop():new da,this.Xe[d]=b;b.add(a);this.ze=!0;if(a.ob)for(d=0,f=a.siblings.length;d<f;d++)this.Dd(a.siblings[d]);this.mm&&b.Ig.push(a);this.lm||(this.oc++,this.trigger(Object.getPrototypeOf(a.type.qa).n.Xs,a),this.oc--)};e.prototype.sb=function(){if(this.ze){var a,d,f,b,
g,l;this.mm=!0;f=0;for(g=this.Qc.length;f<g;++f)for(a=this.Qc[f],d=a.type,d.j.push(a),b=0,l=d.Ca.length;b<l;++b)d.Ca[b].j.push(a),d.Ca[b].Ag=!0;T(this.Qc);this.Ns();Ua(this.Xe);this.ze=this.mm=!1}};e.prototype.Ns=function(){for(var a in this.Xe)this.Xe.hasOwnProperty(a)&&this.gs(this.Xe[a])};e.prototype.gs=function(a){var d=a.Cd(),f=d[0].type,b,g,l,c,n,p;Wa(f.j,a);f.Ag=!0;0===f.j.length&&(f.Hi=!1);b=0;for(g=f.Ca.length;b<g;++b)p=f.Ca[b],Wa(p.j,a),p.Ag=!0;b=0;for(g=this.zd.ac.length;b<g;++b)if(n=this.zd.ac[b],
n.Jb.hasOwnProperty(f.index)&&Wa(n.Jb[f.index].Rd,a),!f.M)for(l=0,c=f.Ca.length;l<c;++l)p=f.Ca[l],n.Jb.hasOwnProperty(p.index)&&Wa(n.Jb[p.index].Rd,a);if(n=d[0].q){if(n.xc)for(l=n.j,b=0,g=l.length;b<g;++b)c=l[b],a.contains(c)&&(c.ra(),n.rb.update(c,c.Xb,null),c.Xb.set(0,0,-1,-1));Wa(n.j,a);n.ei(0)}for(b=0;b<d.length;++b)this.es(d[b],f);a.clear();J.push(a);this.S=!0};e.prototype.es=function(a,d){var f,b,g;f=0;for(b=this.Yi.length;f<b;++f)this.Yi[f](a);a.ue&&d.Ri.update(a,a.ue,null);(f=a.q)&&f.tg(a,
!0);if(a.Q)for(f=0,b=a.Q.length;f<b;++f)g=a.Q[f],g.Cf&&g.Cf(),g.behavior.Rh.remove(a);this.Eq.remove(a);this.Sm.remove(a);this.Tm.remove(a);a.Cf&&a.Cf();this.Xd.hasOwnProperty(a.uid.toString())&&delete this.Xd[a.uid.toString()];this.Nj--;100>d.Wi.length&&d.Wi.push(a)};e.prototype.ul=function(a,d,f,b){if(a.M){var g=K(Math.random()*a.wf.length);return this.ul(a.wf[g],d,f,b)}return a.zc?this.ve(a.zc,d,!1,f,b,!1):null};var ba=[];e.prototype.ve=function(a,d,f,b,g,l){var c,n,p,h;if(!a)return null;var e=
this.C[a[1]],t=e.qa.De;if(this.wj&&t&&!e.nm||t&&!this.B&&11===a[0][11])return null;var u=d;t||(d=null);var k;e.Wi.length?(k=e.Wi.pop(),k.zb=!0,e.qa.N.call(k,e)):(k=new e.qa.N(e),k.zb=!1);!f||l||this.Xd.hasOwnProperty(a[2].toString())?k.uid=this.Th++:k.uid=a[2];this.Xd[k.uid.toString()]=k;k.Vq=this.Cq++;k.kf=e.j.length;c=0;for(n=this.Qc.length;c<n;++c)this.Qc[c].type===e&&k.kf++;k.kh=zb;k.toString=Ab;p=a[3];if(k.zb)Ua(k.U);else{k.U={};if("undefined"!==typeof cr_is_preview)for(k.Mp=[],k.Mp.length=p.length,
c=0,n=p.length;c<n;c++)k.Mp[c]=p[c][1];k.$a=[];k.$a.length=p.length}c=0;for(n=p.length;c<n;c++)k.$a[c]=p[c][0];if(t){var v=a[0];k.x=ia(b)?v[0]:b;k.y=ia(g)?v[1]:g;k.z=v[2];k.width=v[3];k.height=v[4];k.depth=v[5];k.k=v[6];k.opacity=v[7];k.Sb=v[8];k.Tb=v[9];k.tb=v[10];c=v[11];!this.B&&e.T.length&&(k.tb=c);k.Ug=db(k.tb);this.G&&fb(k,k.tb,this.G);if(k.zb){c=0;for(n=v[12].length;c<n;c++)for(p=0,h=v[12][c].length;p<h;p++)k.Ga[c][p]=v[12][c][p];k.ua.set(0,0,0,0);k.ue.set(0,0,-1,-1);k.Xb.set(0,0,-1,-1);k.ub.xg(k.ua);
T(k.hl)}else{k.Ga=v[12].slice(0);c=0;for(n=k.Ga.length;c<n;c++)k.Ga[c]=v[12][c].slice(0);k.ia=[];k.ke=[];k.ke.length=e.T.length;k.ua=new Q(0,0,0,0);k.ue=new Q(0,0,-1,-1);k.Xb=new Q(0,0,-1,-1);k.ub=new sa;k.hl=[];k.I=Db;k.gu=Eb;k.Db=Fb;k.ra=Gb;k.Sr=Hb;k.bo=Ib;k.qd=Jb}k.Eg=!1;k.Yx=0;k.Xx=0;k.Wx=null;14===v.length&&(k.Eg=!0,k.Yx=v[13][0],k.Xx=v[13][1],k.Wx=v[13][2]);c=0;for(n=e.T.length;c<n;c++)k.ke[c]=!0;k.Zd=!0;k.fd=Kb;k.fd();k.Ur=!!k.ia.length;k.Mi=!0;k.ll=!0;e.Gi=!0;k.visible=!0;k.Sh=-1;k.q=d;k.gd=
d.j.length;k.$e=0;"undefined"===typeof k.ka&&(k.ka=null);this.S=k.Hd=!0}var E;T(ba);c=0;for(n=e.Ca.length;c<n;c++)ba.push.apply(ba,e.Ca[c].Fa);ba.push.apply(ba,e.Fa);if(k.zb)for(c=0,n=ba.length;c<n;c++){var q=ba[c];E=k.Q[c];E.zb=!0;q.behavior.N.call(E,q,k);v=a[4][c];p=0;for(h=v.length;p<h;p++)E.A[p]=v[p];E.K();q.behavior.Rh.add(k)}else for(k.Q=[],c=0,n=ba.length;c<n;c++)q=ba[c],E=new q.behavior.N(q,k),E.zb=!1,E.A=a[4][c].slice(0),E.K(),k.Q.push(E),q.behavior.Rh.add(k);v=a[5];if(k.zb)for(c=0,n=v.length;c<
n;c++)k.A[c]=v[c];else k.A=v.slice(0);this.Qc.push(k);this.ze=!0;d&&(d.Rg(k,!0),1!==d.Ub||1!==d.Vb)&&(e.Hi=!0);this.Nj++;if(e.ob){if(k.ob=!0,k.zb?T(k.siblings):k.siblings=[],!f&&!l){c=0;for(n=e.ec.length;c<n;c++)if(e.ec[c]!==e){if(!e.ec[c].zc)return null;k.siblings.push(this.ve(e.ec[c].zc,u,!1,t?k.x:b,t?k.y:g,!0))}c=0;for(n=k.siblings.length;c<n;c++)for(k.siblings[c].siblings.push(k),p=0;p<n;p++)c!==p&&k.siblings[c].siblings.push(k.siblings[p])}}else k.ob=!1,k.siblings=null;k.K();c=0;for(n=k.Q.length;c<
n;c++)k.Q[c].tx&&k.Q[c].tx();return k};e.prototype.Yf=function(a){var d,f;d=0;for(f=this.ea.V.length;d<f;d++){var b=this.ea.V[d];if(hb(b.name,a))return b}return null};e.prototype.pd=function(a){a=K(a);0>a&&(a=0);a>=this.ea.V.length&&(a=this.ea.V.length-1);return this.ea.V[a]};e.prototype.Dp=function(a){return B(a)?this.pd(a):this.Yf(a.toString())};e.prototype.ql=function(a){var d,f;d=0;for(f=a.length;d<f;d++)a[d].ba().fa=!0};e.prototype.$h=function(a){var d,f;d=0;for(f=a.length;d<f;d++)a[d].$h()};
e.prototype.bk=function(a){var d,f;d=0;for(f=a.length;d<f;d++)a[d].bk()};e.prototype.Ef=function(a){var d,f;d=0;for(f=a.length;d<f;d++)a[d].Ef()};e.prototype.Pr=function(a){if(a.Gi){var d,f,b=a.j;d=0;for(f=b.length;d<f;++d)b[d].bo();b=this.Qc;d=0;for(f=b.length;d<f;++d)b[d].type===a&&b[d].bo();a.Gi=!1}};e.prototype.zp=function(a,d,f,b){var g,c,l=a?1!==a.Ub||1!==a.Vb:!1;if(d.M)for(a=0,g=d.wf.length;a<g;++a)c=d.wf[a],l||c.Hi?Fa(b,c.j):(this.Pr(c),c.Ri.dk(f,b));else l||d.Hi?Fa(b,d.j):(this.Pr(d),d.Ri.dk(f,
b))};e.prototype.Sl=function(a,d,f,b){var g,c;g=0;for(c=d.length;g<c;++g)this.zp(a,d[g],f,b)};e.prototype.Zv=function(a,d,f){var b=this.Ln;b&&this.Sl(a,b.Qm,d,f)};e.prototype.li=function(a,d,f){var b=a.ba(),g,c,l,n,p=this.Qa().Za.rc,h,k,e;if(b.fa)for(b.fa=!1,T(b.j),g=0,n=a.j.length;g<n;g++)l=a.j[g],l.ra(),h=l.q.Xa(d,f,!0),k=l.q.Xa(d,f,!1),l.Db(h,k)?b.j.push(l):p&&b.W.push(l);else{c=0;e=p?b.W:b.j;g=0;for(n=e.length;g<n;g++)l=e[g],l.ra(),h=l.q.Xa(d,f,!0),k=l.q.Xa(d,f,!1),l.Db(h,k)&&(p?b.j.push(l):(b.j[c]=
b.j[g],c++));e.length=c}a.oe();return b.Xl()};e.prototype.de=function(a,d){if(!(a&&d&&a!==d&&a.Hd&&d.Hd))return!1;a.ra();d.ra();var f=a.q,b=d.q,g,c,l,n,p,h,k,e;if(f===b||f.Ub===b.Ub&&b.Vb===b.Vb&&f.scale===b.scale&&f.k===b.k&&f.Cb===b.Cb){if(!a.ua.yw(d.ua)||!a.ub.Np(d.ub)||a.Eg&&d.Eg)return!1;if(a.Eg)return this.Br(a,d);if(d.Eg)return this.Br(d,a);k=a.ka&&!a.ka.dg();g=d.ka&&!d.ka.dg();if(!k&&!g)return!0;k?(a.ka.Of(a.width,a.height,a.k),k=a.ka):(this.cd.wg(a.ub,a.x,a.y,a.width,a.height),k=this.cd);
g?(d.ka.Of(d.width,d.height,d.k),e=d.ka):(this.cd.wg(d.ub,d.x,d.y,d.width,d.height),e=this.cd);return k.qh(e,d.x-a.x,d.y-a.y)}k=a.ka&&!a.ka.dg();g=d.ka&&!d.ka.dg();k?(a.ka.Of(a.width,a.height,a.k),this.cd.nr(a.ka)):this.cd.wg(a.ub,a.x,a.y,a.width,a.height);k=this.cd;g?(d.ka.Of(d.width,d.height,d.k),this.Qn.nr(d.ka)):this.Qn.wg(d.ub,d.x,d.y,d.width,d.height);e=this.Qn;g=0;for(c=k.Zc;g<c;g++)l=2*g,n=l+1,p=k.eb[l],h=k.eb[n],k.eb[l]=f.Da(p+a.x,h+a.y,!0),k.eb[n]=f.Da(p+a.x,h+a.y,!1);k.ra();g=0;for(c=e.Zc;g<
c;g++)l=2*g,n=l+1,p=e.eb[l],h=e.eb[n],e.eb[l]=b.Da(p+d.x,h+d.y,!0),e.eb[n]=b.Da(p+d.x,h+d.y,!1);e.ra();return k.qh(e,0,0)};var ea=new sa;new Q(0,0,0,0);var X=[];e.prototype.Br=function(a,d){var f,b,g,c,l=d.ua,n=a.x,p=a.y;a.Ry(l,X);var h=d.ka&&!d.ka.dg();f=0;for(b=X.length;f<b;++f)if(g=X[f],c=g.ez,l.zw(c,n,p)&&(ea.xg(c),ea.offset(n,p),ea.Np(d.ub)))if(h)if(d.ka.Of(d.width,d.height,d.k),g.kn){if(g.kn.qh(d.ka,d.x-(n+c.left),d.y-(p+c.top)))return T(X),!0}else{if(this.cd.wg(ea,0,0,c.right-c.left,c.bottom-
c.top),this.cd.qh(d.ka,d.x,d.y))return T(X),!0}else if(g.kn){if(this.cd.wg(d.ub,0,0,d.width,d.height),g.kn.qh(this.cd,-(n+c.left),-(p+c.top)))return T(X),!0}else return T(X),!0;T(X);return!1};e.prototype.Lr=function(a,d){if(!d)return!1;var f,b,g,c,l;f=0;for(b=a.Fa.length;f<b;f++)if(a.Fa[f].behavior instanceof d)return!0;if(!a.M)for(f=0,b=a.Ca.length;f<b;f++)for(l=a.Ca[f],g=0,c=l.Fa.length;g<c;g++)if(l.Fa[g].behavior instanceof d)return!0;return!1};e.prototype.Xn=function(a){return this.Lr(a,$b.xy)};
e.prototype.Yn=function(a){return this.Lr(a,$b.yy)};var N=[];e.prototype.dd=function(a){var d,f,b;a.ra();this.Zv(a.q,a.ua,N);d=0;for(f=N.length;d<f;++d)if(b=N[d],b.U.solidEnabled&&this.de(a,b))return T(N),b;T(N);return null};e.prototype.qn=function(a,d,f,b){b=b||50;var g=a.x,c=a.y,l,n=null,p=null;for(l=0;l<b;l++)if(a.x=g+d*l,a.y=c+f*l,a.I(),!this.de(a,n)&&((n=this.dd(a))&&(p=n),!n&&!n))return p&&this.Ax(a,d,f,p),!0;a.x=g;a.y=c;a.I();return!1};e.prototype.Ax=function(a,d,f,b){var g=2,c,l=!1;c=!1;for(var n=
a.x,p=a.y;16>=g;)c=1/g,g*=2,a.x+=d*c*(l?1:-1),a.y+=f*c*(l?1:-1),a.I(),this.de(a,b)?c=l=!0:(c=l=!1,n=a.x,p=a.y);c&&(a.x=n,a.y=p,a.I())};e.prototype.Wq=function(a,d){var f=ia(d)?100:d,b=0,g=a.x,c=a.y,l=0,n=0,p=0,h=this.dd(a);if(!h)return!0;for(;b<=f;){switch(l){case 0:n=0;p=-1;b++;break;case 1:n=1;p=-1;break;case 2:n=1;p=0;break;case 3:p=n=1;break;case 4:n=0;p=1;break;case 5:n=-1;p=1;break;case 6:n=-1;p=0;break;case 7:p=n=-1}l=(l+1)%8;a.x=K(g+n*b);a.y=K(c+p*b);a.I();if(!this.de(a,h)&&(h=this.dd(a),
!h))return!0}a.x=g;a.y=c;a.I();return!1};e.prototype.ci=function(a,d){a.Hd&&d.Hd&&this.tn.push([a,d])};e.prototype.ou=function(a,d,f){var b=a.x,g=a.y,c=ma(10,Ra(d,f,b,g)),l=Na(d,f,b,g),n=this.dd(a);if(!n)return V(l+oa);var p=n,h,k,e,t,u=U(5);for(h=1;36>h;h++)if(k=l-h*u,a.x=d+Math.cos(k)*c,a.y=f+Math.sin(k)*c,a.I(),!this.de(a,p)&&(p=this.dd(a),!p)){e=k;break}36===h&&(e=V(l+oa));p=n;for(h=1;36>h;h++)if(k=l+h*u,a.x=d+Math.cos(k)*c,a.y=f+Math.sin(k)*c,a.I(),!this.de(a,p)&&(p=this.dd(a),!p)){t=k;break}36===
h&&(t=V(l+oa));a.x=b;a.y=g;a.I();if(t===e)return t;a=Oa(t,e)/2;a=Qa(t,e)?V(e+a+oa):V(t+a);e=Math.cos(l);l=Math.sin(l);t=Math.cos(a);a=Math.sin(a);d=e*t+l*a;return Na(0,0,e-2*d*t,l-2*d*a)};var M=-1;e.prototype.trigger=function(a,d,f){if(!this.ea)return!1;var b=this.ea.bf;if(!b)return!1;var g=!1,c,l,n;M++;var p=b.zl;l=0;for(n=p.length;l<n;++l)c=this.Ir(a,d,p[l],f),g=g||c;c=this.Ir(a,d,b,f);M--;return g||c};e.prototype.Ir=function(a,d,f,b){var g=!1,c,l,n,p;if(d)for(n=this.Vn(a,d,d.type.name,f,b),g=g||
n,p=d.type.Ca,c=0,l=p.length;c<l;++c)n=this.Vn(a,d,p[c].name,f,b),g=g||n;else n=this.Vn(a,d,"system",f,b),g=g||n;return g};e.prototype.Vn=function(a,d,f,b,g){var c,l=!1,n=!1,n="undefined"!==typeof g,p=(n?b.sp:b.Jr)[f];if(!p)return l;var h=null;b=0;for(c=p.length;b<c;++b)if(p[b].method==a){h=p[b].$g;break}if(!h)return l;var k;n?k=h[g]:k=h;if(!k)return null;b=0;for(c=k.length;b<c;b++)a=k[b][0],g=k[b][1],n=this.Hv(d,f,a,g),l=l||n;return l};e.prototype.Hv=function(a,d,f,b){var g,c,l=!1;this.Wn++;var n=
this.Qa().Za;n&&this.$h(n.Re);var p=1<this.Wn;this.$h(f.Re);p&&this.Bx();var h=this.ck(f);h.Za=f;a&&(g=this.types[d].ba(),g.fa=!1,T(g.j),g.j[0]=a,this.types[d].oe());a=!0;if(f.parent){d=h.Ar;for(g=f.parent;g;)d.push(g),g=g.parent;d.reverse();g=0;for(c=d.length;g<c;g++)if(!d[g].Kx()){a=!1;break}}a&&(this.df++,f.rc?f.Jx(b):f.Va(),l=l||h.of);this.Zj();p&&this.qx();this.Ef(f.Re);n&&this.Ef(n.Re);this.ze&&0===this.oc&&0===M&&!this.pm&&this.sb();this.Wn--;return l};e.prototype.jj=function(){var a=this.Qa();
return a.Za.Ya[a.Pa]};e.prototype.Fw=function(){return 0===this.Qa().Pa};e.prototype.Pv=function(){var a=this.Qa();return a.Za.yc[a.Mb]};e.prototype.Bx=function(){this.Hj++;this.Hj>=this.Lm.length&&this.Lm.push([])};e.prototype.qx=function(){this.Hj--};e.prototype.Ap=function(){return this.Lm[this.Hj]};e.prototype.ck=function(a){this.$i++;this.$i>=this.Dl.length&&this.Dl.push(new Lb);var d=this.Qa();d.reset(a);return d};e.prototype.Zj=function(){this.$i--};e.prototype.Qa=function(){return this.Dl[this.$i]};
e.prototype.Cx=function(){this.Jj++;this.Jj>=this.Mm.length&&this.Mm.push(aa({name:void 0,index:0,Pn:!1}));var a=this.Qv();a.name=void 0;a.index=0;a.Pn=!1;return a};e.prototype.rx=function(){this.Jj--};e.prototype.Qv=function(){return this.Mm[this.Jj]};e.prototype.Bp=function(a,d){for(var f,b,g,c,l,n;d;){f=0;for(b=d.Ic.length;f<b;f++)if(n=d.Ic[f],n instanceof Mb&&hb(a,n.name))return n;d=d.parent}f=0;for(b=this.Od.length;f<b;f++)for(l=this.Od[f],g=0,c=l.xe.length;g<c;g++)if(n=l.xe[g],n instanceof Mb&&
hb(a,n.name))return n;return null};e.prototype.Ep=function(a){var d,f;d=0;for(f=this.Uc.length;d<f;d++)if(this.Uc[d].Z===a)return this.Uc[d];return null};e.prototype.Zf=function(a){var d,f;d=0;for(f=this.C.length;d<f;d++)if(this.C[d].Z===a)return this.C[d];return null};e.prototype.Rv=function(a){var d,f;d=0;for(f=this.Mf.length;d<f;d++)if(this.Mf[d].Z===a)return this.Mf[d];return null};e.prototype.Au=function(a,d){this.ii=[a,d];this.S=!0};e.prototype.rw=function(){var a=this,d=this.Cn,f=this.Ud,b=
this.Dj,g=!1;this.rr&&(g=!0,d="__c2_continuouspreview",this.rr=!1);if(d.length){this.sb();f=this.Ox();if(m()&&!this.Cc)r(d,f,function(){w("Saved state to IndexedDB storage ("+f.length+" bytes)");a.Ud=f;a.trigger(W.prototype.n.Xk,null);a.Ud="";g&&c()},function(b){try{localStorage.setItem("__c2save_"+d,f),w("Saved state to WebStorage ("+f.length+" bytes)"),a.Ud=f,a.trigger(W.prototype.n.Xk,null),a.Ud="",g&&c()}catch(l){w("Failed to save game state: "+b+"; "+l),a.trigger(W.prototype.n.Do,null)}});else try{localStorage.setItem("__c2save_"+
d,f),w("Saved state to WebStorage ("+f.length+" bytes)"),a.Ud=f,this.trigger(W.prototype.n.Xk,null),a.Ud="",g&&c()}catch(l){w("Error saving to WebStorage: "+l),a.trigger(W.prototype.n.Do,null)}this.Dj=this.Cn="";this.cb=null}if(b.length){if(m()&&!this.Cc)h(b,function(d){d?(a.cb=d,w("Loaded state from IndexedDB storage ("+a.cb.length+" bytes)")):(a.cb=localStorage.getItem("__c2save_"+b)||"",w("Loaded state from WebStorage ("+a.cb.length+" bytes)"));a.ki=!1;a.cb||(a.cb=null,a.trigger(W.prototype.n.Ei,
null))},function(){a.cb=localStorage.getItem("__c2save_"+b)||"";w("Loaded state from WebStorage ("+a.cb.length+" bytes)");a.ki=!1;a.cb||(a.cb=null,a.trigger(W.prototype.n.Ei,null))});else{try{this.cb=localStorage.getItem("__c2save_"+b)||"",w("Loaded state from WebStorage ("+this.cb.length+" bytes)")}catch(n){this.cb=null}this.ki=!1;a.cb||(a.cb=null,a.trigger(W.prototype.n.Ei,null))}this.Cn=this.Dj=""}null!==this.cb&&(this.sb(),this.Pw(this.cb)?(this.Ud=this.cb,this.trigger(W.prototype.n.ht,null),
this.Ud=""):a.trigger(W.prototype.n.Ei,null),this.cb=null)};e.prototype.Ox=function(){var d,f,b,g,c,l,n,p={c2save:!0,version:1,rt:{time:this.Fb.ja,walltime:this.Uk.ja,timescale:this.Fg,tickcount:this.vc,execcount:this.df,next_uid:this.Th,running_layout:this.ea.Z,start_time_offset:Date.now()-this.yk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(f=this.C.length;d<f;d++)if(c=this.C[d],!c.M&&!this.Xn(c)){l={instances:[]};Ta(c.U)&&(l.ex=a(c.U));b=0;for(g=c.j.length;b<g;b++)l.instances.push(this.Bn(c.j[b]));
p.types[c.Z.toString()]=l}d=0;for(f=this.Uc.length;d<f;d++)b=this.Uc[d],p.layouts[b.Z.toString()]=b.Ia();g=p.events.groups;d=0;for(f=this.Mf.length;d<f;d++)b=this.Mf[d],g[b.Z.toString()]=this.ag[b.lh].hf;f=p.events.cnds;for(n in this.te)this.te.hasOwnProperty(n)&&(d=this.te[n],Ta(d.U)&&(f[n]={ex:a(d.U)}));f=p.events.acts;for(n in this.le)this.le.hasOwnProperty(n)&&(d=this.le[n],Ta(d.U)&&(f[n]={ex:a(d.U)}));f=p.events.vars;for(n in this.Jg)this.Jg.hasOwnProperty(n)&&(d=this.Jg[n],d.tj||d.parent&&!d.xh||
(f[n]=d.data));p.system=this.zd.Ia();return JSON.stringify(p)};e.prototype.Xq=function(){var a,d,f,b,g,c;this.Xd={};a=0;for(d=this.C.length;a<d;a++)if(f=this.C[a],!f.M)for(b=0,g=f.j.length;b<g;b++)c=f.j[b],this.Xd[c.uid.toString()]=c};e.prototype.Pw=function(a){var d;try{d=JSON.parse(a)}catch(f){return!1}if(!d.c2save||1<d.version)return!1;this.sh=!0;a=d.rt;this.Fb.reset();this.Fb.ja=a.time;this.Uk.reset();this.Uk.ja=a.walltime||0;this.Fg=a.timescale;this.vc=a.tickcount;this.df=a.execcount;this.yk=
Date.now()-a.start_time_offset;var b=a.running_layout;if(b!==this.ea.Z)if(b=this.Ep(b))this.np(b);else return;var g,c,l,n,p,h,k;h=d.types;for(c in h)if(h.hasOwnProperty(c)&&(n=this.Zf(parseInt(c,10)))&&!n.M&&!this.Xn(n)){h[c].ex?n.U=h[c].ex:Ua(n.U);p=n.j;l=h[c].instances;b=0;for(g=na(p.length,l.length);b<g;b++)this.Ej(p[b],l[b]);b=l.length;for(g=p.length;b<g;b++)this.Dd(p[b]);b=p.length;for(g=l.length;b<g;b++){p=null;if(n.qa.De&&(p=this.ea.kj(l[b].w.l),!p))continue;p=this.ve(n.zc,p,!1,0,0,!0);this.Ej(p,
l[b])}n.Ag=!0}this.sb();this.Xq();g=d.layouts;for(c in g)g.hasOwnProperty(c)&&(b=this.Ep(parseInt(c,10)))&&b.Sa(g[c]);g=d.events.groups;for(c in g)g.hasOwnProperty(c)&&(b=this.Rv(parseInt(c,10)))&&this.ag[b.lh]&&this.ag[b.lh].nk(g[c]);b=d.events.cnds;for(c in this.te)this.te.hasOwnProperty(c)&&(b.hasOwnProperty(c)?this.te[c].U=b[c].ex:this.te[c].U={});b=d.events.acts;for(c in this.le)this.le.hasOwnProperty(c)&&(b.hasOwnProperty(c)?this.le[c].U=b[c].ex:this.le[c].U={});b=d.events.vars;for(c in b)b.hasOwnProperty(c)&&
this.Jg.hasOwnProperty(c)&&(this.Jg[c].data=b[c]);this.Th=a.next_uid;this.sh=!1;b=0;for(g=this.cj.length;b<g;++b)p=this.cj[b],this.trigger(Object.getPrototypeOf(p.type.qa).n.Ue,p);T(this.cj);this.zd.Sa(d.system);b=0;for(g=this.C.length;b<g;b++)if(n=this.C[b],!n.M&&!this.Xn(n))for(d=0,c=n.j.length;d<c;d++){p=n.j[d];if(n.ob)for(h=p.kh(),T(p.siblings),a=0,l=n.ec.length;a<l;a++)k=n.ec[a],n!==k&&p.siblings.push(k.j[h]);p.Ed&&p.Ed();if(p.Q)for(a=0,l=p.Q.length;a<l;a++)h=p.Q[a],h.Ed&&h.Ed()}return this.S=
!0};e.prototype.Bn=function(d,f){var b,g,c,l,n;l=d.type;c=l.qa;var p={};f?p.c2=!0:p.uid=d.uid;Ta(d.U)&&(p.ex=a(d.U));if(d.$a&&d.$a.length)for(p.ivs={},b=0,g=d.$a.length;b<g;b++)p.ivs[d.type.jm[b].toString()]=d.$a[b];if(c.De){c={x:d.x,y:d.y,w:d.width,h:d.height,l:d.q.Z,zi:d.qd()};0!==d.k&&(c.a=d.k);1!==d.opacity&&(c.o=d.opacity);.5!==d.Sb&&(c.hX=d.Sb);.5!==d.Tb&&(c.hY=d.Tb);0!==d.tb&&(c.bm=d.tb);d.visible||(c.v=d.visible);d.Hd||(c.ce=d.Hd);-1!==d.Sh&&(c.mts=d.Sh);if(l.T.length)for(c.fx=[],b=0,g=l.T.length;b<
g;b++)n=l.T[b],c.fx.push({name:n.name,active:d.ke[n.index],params:d.Ga[n.index]});p.w=c}if(d.Q&&d.Q.length)for(p.behs={},b=0,g=d.Q.length;b<g;b++)l=d.Q[b],l.Ia&&(p.behs[l.type.Z.toString()]=l.Ia());d.Ia&&(p.data=d.Ia());return p};e.prototype.Tv=function(a,d){var f,b;f=0;for(b=a.jm.length;f<b;f++)if(a.jm[f]===d)return f;return-1};e.prototype.Ov=function(a,d){var f,b;f=0;for(b=a.Q.length;f<b;f++)if(a.Q[f].type.Z===d)return f;return-1};e.prototype.Ej=function(a,d,f){var b,g,c,l,n;n=a.type;var p=n.qa;
if(f){if(!d.c2)return}else a.uid=d.uid;d.ex?a.U=d.ex:Ua(a.U);if(g=d.ivs)for(b in g)g.hasOwnProperty(b)&&(c=this.Tv(n,parseInt(b,10)),0>c||c>=a.$a.length||(l=g[b],null===l&&(l=NaN),a.$a[c]=l));if(p.De){c=d.w;a.q.Z!==c.l&&(g=a.q,a.q=this.ea.kj(c.l),a.q?(g.tg(a,!0),a.q.Rg(a,!0),a.I(),a.q.ei(0)):(a.q=g,f||this.Dd(a)));a.x=c.x;a.y=c.y;a.width=c.w;a.height=c.h;a.gd=c.zi;a.k=c.hasOwnProperty("a")?c.a:0;a.opacity=c.hasOwnProperty("o")?c.o:1;a.Sb=c.hasOwnProperty("hX")?c.hX:.5;a.Tb=c.hasOwnProperty("hY")?
c.hY:.5;a.visible=c.hasOwnProperty("v")?c.v:!0;a.Hd=c.hasOwnProperty("ce")?c.ce:!0;a.Sh=c.hasOwnProperty("mts")?c.mts:-1;a.tb=c.hasOwnProperty("bm")?c.bm:0;a.Ug=db(a.tb);this.G&&fb(a,a.tb,this.G);a.I();if(c.hasOwnProperty("fx"))for(f=0,g=c.fx.length;f<g;f++)l=n.Ol(c.fx[f].name),0>l||(a.ke[l]=c.fx[f].active,a.Ga[l]=c.fx[f].params);a.fd()}if(n=d.behs)for(b in n)n.hasOwnProperty(b)&&(f=this.Ov(a,parseInt(b,10)),0>f||a.Q[f].Sa(n[b]));d.data&&a.Sa(d.data)};e.prototype.tp=function(a,d,f){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+
"www/"+a,function(a){a.file(d,f)},f)};e.prototype.Jv=function(a,d){this.tp("data.js",function(f){var b=new FileReader;b.onload=function(d){a(d.target.result)};b.onerror=d;b.readAsText(f)},d)};var za=[],ta=0;e.prototype.Om=function(){if(za.length&&!(8<=ta)){ta++;var a=za.shift();this.Du(a.filename,a.Ux,a.av)}};e.prototype.Iv=function(a,d,f){var b=this;za.push({filename:a,Ux:function(a){ta--;b.Om();d(a)},av:function(a){ta--;b.Om();f(a)}});this.Om()};e.prototype.Du=function(a,d,f){this.tp(a,function(a){var f=
new FileReader;f.onload=function(a){d(a.target.result)};f.readAsArrayBuffer(a)},f)};e.prototype.Kv=function(a,d,f){var b="",c=a.toLowerCase(),g=c.substr(c.length-4),c=c.substr(c.length-5);".mp4"===g?b="video/mp4":".webm"===c?b="video/webm":".m4a"===g?b="audio/mp4":".mp3"===g&&(b="audio/mpeg");this.Iv(a,function(a){a=URL.createObjectURL(new Blob([a],{type:b}));d(a)},f)};e.prototype.Aw=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};e.prototype.jr=function(a,
d){this.Sp&&!this.Aw(d)?this.Kv(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};e.prototype.lk=function(a,d){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=d:(a.webkitImageSmoothingEnabled=d,a.mozImageSmoothingEnabled=d,a.msImageSmoothingEnabled=d)};Nb=function(a){return new e(document.getElementById(a))};Ob=function(a,d){return new e({dc:!0,width:a,height:d})};window.cr_createRuntime=Nb;window.cr_createDCRuntime=Ob;window.createCocoonJSRuntime=
function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.gl=!0;document.body.appendChild(a);a=new e(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 e(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,
window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(e,q){var m=window.cr_getC2Runtime();m&&m.Au(e,q)};window.cr_sizeCanvas=function(e,q){if(0!==e&&0!==q){var m=window.cr_getC2Runtime();m&&m.setSize(e,q)}};window.cr_setSuspended=function(e){var q=window.cr_getC2Runtime();q&&q.setSuspended(e)};
(function(){function e(a,f){this.b=a;this.bf=null;this.scrollX=this.b.Ua/2;this.scrollY=this.b.Ta/2;this.scale=1;this.k=0;this.Xf=!0;this.name=f[0];this.hx=f[1];this.gx=f[2];this.width=f[1];this.height=f[2];this.Mr=f[3];this.qr=f[4];this.Z=f[5];var b=f[6],c,g;this.V=[];this.ph=[];c=0;for(g=b.length;c<g;c++){var h=new Pb(this,b[c]);h.Dq=c;this.V.push(h)}b=f[7];this.Ae=[];c=0;for(g=b.length;c<g;c++){var h=b[c],k=this.b.C[h[1]];k.zc||(k.zc=h);this.Ae.push(h);-1===this.ph.indexOf(k)&&this.ph.push(k)}this.T=
[];this.ia=[];this.Zd=!0;this.Ga=[];c=0;for(g=f[8].length;c<g;c++)this.T.push({id:f[8][c][0],name:f[8][c][1],Wa:-1,Xc:!1,Ea:!0,index:c}),this.Ga.push(f[8][c][2].slice(0));this.fd();this.vd=new Q(0,0,1,1);this.sn=new Q(0,0,1,1);this.Me={}}function q(a,f){return a.gd-f.gd}function m(a,f){this.Na=a;this.b=a.b;this.j=[];this.scale=1;this.k=0;this.Ld=!1;this.ee=new Q(0,0,0,0);this.Fr=new sa;this.na=this.ma=this.oa=this.la=0;this.If=!1;this.ie=-1;this.rl=0;this.name=f[0];this.index=f[1];this.Z=f[2];this.visible=
f[3];this.Mc=f[4];this.ed=f[5];this.Ub=f[6];this.Vb=f[7];this.opacity=f[8];this.gj=f[9];this.xc=f[10];this.Cb=f[11];this.tb=f[12];this.Xu=f[13];this.Ug="source-over";this.wb=this.Ab=0;this.rb=null;this.Vd=k();this.$c=!0;this.kg=new Q(0,0,-1,-1);this.lb=new Q(0,0,-1,-1);this.xc&&(this.rb=new cb(this.b.Ua,this.b.Ta));this.wd=!1;var b=f[14],c,g;this.ur=[];this.nc=[];this.Wg=[];c=0;for(g=b.length;c<g;c++){var h=b[c],e=this.b.C[h[1]];e.zc||(e.zc=h,e.xu=this.index);this.nc.push(h);-1===this.Na.ph.indexOf(e)&&
this.Na.ph.push(e)}Ca(this.ur,this.nc);this.T=[];this.ia=[];this.Zd=!0;this.Ga=[];c=0;for(g=f[15].length;c<g;c++)this.T.push({id:f[15][c][0],name:f[15][c][1],Wa:-1,Xc:!1,Ea:!0,index:c}),this.Ga.push(f[15][c][2].slice(0));this.fd();this.vd=new Q(0,0,1,1);this.sn=new Q(0,0,1,1)}function k(){return a.length?a.pop():[]}function r(d){T(d);a.push(d)}e.prototype.Nx=function(a){var f=a.type.Z.toString();this.Me.hasOwnProperty(f)||(this.Me[f]=[]);this.Me[f].push(this.b.Bn(a))};e.prototype.Gp=function(){var a=
this.V[0];return!a.ed&&1===a.opacity&&!a.gj&&a.visible};e.prototype.fd=function(){T(this.ia);this.Zd=!0;var a,f,b;a=0;for(f=this.T.length;a<f;a++)b=this.T[a],b.Ea&&(this.ia.push(b),b.Xc||(this.Zd=!1))};e.prototype.Nl=function(a){var f,b,c;f=0;for(b=this.T.length;f<b;f++)if(c=this.T[f],c.name===a)return c;return null};var h=[],c=!0;e.prototype.Nn=function(){this.qr&&(this.bf=this.b.El[this.qr],this.bf.Zn());this.b.ea=this;this.width=this.hx;this.height=this.gx;this.scrollX=this.b.Ua/2;this.scrollY=
this.b.Ta/2;var a,f,b,g,l,k,e;a=0;for(b=this.b.C.length;a<b;a++)if(f=this.b.C[a],!f.M)for(l=f.j,f=0,g=l.length;f<g;f++)if(k=l[f],k.q){var n=k.q.Dq;n>=this.V.length&&(n=this.V.length-1);k.q=this.V[n];-1===k.q.j.indexOf(k)&&k.q.j.push(k);k.q.If=!0}if(!c)for(a=0,b=this.V.length;a<b;++a)this.V[a].j.sort(q);T(h);this.bp();a=0;for(b=this.V.length;a<b;a++)k=this.V[a],k.tu(),k.Rk();l=!1;if(!this.Xf){for(e in this.Me)if(this.Me.hasOwnProperty(e)&&(f=this.b.Zf(parseInt(e,10)))&&!f.M&&this.b.Yn(f)){g=this.Me[e];
a=0;for(b=g.length;a<b;a++){k=null;if(f.qa.De&&(k=this.kj(g[a].w.l),!k))continue;k=this.b.ve(f.zc,k,!1,0,0,!0);this.b.Ej(k,g[a]);l=!0;h.push(k)}T(g)}a=0;for(b=this.V.length;a<b;a++)this.V[a].j.sort(q),this.V[a].If=!0}l&&(this.b.sb(),this.b.Xq());for(a=0;a<h.length;a++)if(k=h[a],k.type.ob)for(b=k.kh(),f=0,g=k.type.ec.length;f<g;f++)e=k.type.ec[f],k.type!==e&&(e.j.length>b?k.siblings.push(e.j[b]):e.zc&&(l=this.b.ve(e.zc,k.q,!0,k.x,k.y,!0),this.b.sb(),e.Qk(),k.siblings.push(l),h.push(l)));a=0;for(b=
this.Ae.length;a<b;a++)k=this.Ae[a],f=this.b.C[k[1]],f.ob||this.b.ve(this.Ae[a],null,!0);this.b.pl=null;this.b.sb();if(this.b.Ba&&!this.b.Ma)for(a=0,b=this.b.C.length;a<b;a++)e=this.b.C[a],!e.M&&e.j.length&&e.ln&&e.ln(this.b.Ba);if(this.b.sh)Ca(this.b.cj,h);else for(a=0,b=h.length;a<b;a++)k=h[a],this.b.trigger(Object.getPrototypeOf(k.type.qa).n.Ue,k);T(h);this.b.sh||this.b.trigger(W.prototype.n.xo,null);this.Xf=!1};e.prototype.su=function(){var a,f,b,c,g;f=a=0;for(b=this.Ae.length;a<b;a++)c=this.Ae[a],
g=this.b.C[c[1]],g.global?g.ob||this.b.ve(c,null,!0):(this.Ae[f]=c,f++);Ba(this.Ae,f)};e.prototype.Tx=function(){this.b.sh||this.b.trigger(W.prototype.n.gt,null);this.b.lm=!0;T(this.b.zd.ac);var a,f,b,g,l,h;if(!this.Xf)for(a=0,f=this.V.length;a<f;a++)for(this.V[a].ao(),l=this.V[a].j,b=0,g=l.length;b<g;b++)h=l[b],h.type.global||this.b.Yn(h.type)&&this.Nx(h);a=0;for(f=this.V.length;a<f;a++){l=this.V[a].j;b=0;for(g=l.length;b<g;b++)h=l[b],h.type.global||this.b.Dd(h);this.b.sb();T(l);this.V[a].If=!0}a=
0;for(f=this.b.C.length;a<f;a++)if(l=this.b.C[a],!(l.global||l.qa.De||l.qa.uk||l.M)){b=0;for(g=l.j.length;b<g;b++)this.b.Dd(l.j[b]);this.b.sb()}c=!1;this.b.lm=!1};new Q(0,0,0,0);e.prototype.lc=function(a){var b,c=a,g=!1,l=!this.b.mc;l&&(this.b.Cj||(this.b.Cj=document.createElement("canvas"),b=this.b.Cj,b.width=this.b.P,b.height=this.b.O,this.b.bq=b.getContext("2d"),g=!0),b=this.b.Cj,c=this.b.bq,b.width!==this.b.P&&(b.width=this.b.P,g=!0),b.height!==this.b.O&&(b.height=this.b.O,g=!0),g&&this.b.lk(c,
this.b.wa));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.ip&&!this.Gp()&&c.clearRect(0,0,this.b.P,this.b.O);var h,k,g=0;for(h=this.V.length;g<h;g++)k=this.V[g],k.visible&&0<k.opacity&&11!==k.tb&&(k.j.length||!k.ed)?k.lc(c):k.Rk();l&&a.drawImage(b,0,0,this.b.width,this.b.height)};e.prototype.Ye=function(a){a.ir(!0);this.b.Ra||(this.b.Ra=a.kc(this.b.P,this.b.O,this.b.wa));if(this.b.Ra.Pc!==this.b.P||this.b.Ra.Oc!==this.b.O)a.deleteTexture(this.b.Ra),this.b.Ra=a.kc(this.b.P,this.b.O,
this.b.wa);a.Gc(this.b.Ra);this.b.mc||a.Ff(this.b.P,this.b.O);var b,c;for(b=this.V.length-1;0<=b;--b)c=this.V[b],c.visible&&1===c.opacity&&c.Zd&&0===c.tb&&(c.j.length||!c.ed)?c.Ye(a):c.Rk();a.ir(!1)};e.prototype.xb=function(a){var b=0<this.ia.length||this.b.Hg||!this.b.mc||this.b.xa;if(b){this.b.Ra||(this.b.Ra=a.kc(this.b.P,this.b.O,this.b.wa));if(this.b.Ra.Pc!==this.b.P||this.b.Ra.Oc!==this.b.O)a.deleteTexture(this.b.Ra),this.b.Ra=a.kc(this.b.P,this.b.O,this.b.wa);a.Gc(this.b.Ra);this.b.mc||a.Ff(this.b.P,
this.b.O)}else this.b.Ra&&(a.Gc(null),a.deleteTexture(this.b.Ra),this.b.Ra=null);this.b.ip&&!this.Gp()&&a.clear(0,0,0,0);var c,g,l;c=0;for(g=this.V.length;c<g;c++)l=this.V[c],l.visible&&0<l.opacity&&(l.j.length||!l.ed)?l.xb(a):l.Rk();b&&(0===this.ia.length||1===this.ia.length&&this.b.mc?(1===this.ia.length?(b=this.ia[0].index,a.Yb(this.ia[0].Wa),a.vg(null,1/this.b.P,1/this.b.O,0,0,1,1,this.scale,this.k,0,0,this.b.P/2,this.b.O/2,this.b.Fb.ja,this.Ga[b]),a.ak(this.ia[0].Wa)&&(this.b.S=!0)):a.Yb(0),
this.b.mc||a.Ff(this.b.width,this.b.height),a.Gc(null),a.hr(!1),a.Qe(1),a.Hb(this.b.Ra),a.er(),a.Fc(),a.wc(),b=this.b.width/2,c=this.b.height/2,a.sg(-b,c,b,c,b,-c,-b,-c),a.Hb(null),a.hr(!0)):this.un(a,null,null,null))};e.prototype.jh=function(){return 0<this.ia.length||this.b.Hg||!this.b.mc||this.b.xa?this.b.Ra:null};e.prototype.Fp=function(){var a=this.V[0].Rb(),b,c,g;b=1;for(c=this.V.length;b<c;b++)g=this.V[b],(0!==g.Ub||0!==g.Vb)&&g.Rb()<a&&(a=g.Rb());return a};e.prototype.Dn=function(a){if(!this.Mr){var b=
1/this.Fp()*this.b.P/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.S=!0)};e.prototype.En=function(a){if(!this.Mr){var b=1/this.Fp()*this.b.O/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.S=!0)};e.prototype.bp=function(){this.Dn(this.scrollX);this.En(this.scrollY)};e.prototype.un=function(a,b,c,g){var l=c?c.ia:b?b.ia:this.ia,h=1,k=0,n=0,p=0,e=this.b.P,q=this.b.O;c?(h=c.q.Rb(),k=c.q.fc(),n=c.q.la,p=c.q.ma,e=c.q.oa,q=
c.q.na):b&&(h=b.Rb(),k=b.fc(),n=b.la,p=b.ma,e=b.oa,q=b.na);var m=this.b.Ll,r,D,A,I,J=0,ba=1,ea,X,N=this.b.P,M=this.b.O,za=N/2,ta=M/2,z=b?b.vd:this.vd,x=b?b.sn:this.sn,L=0,S=0,H=0,F=0,P=N,Da=N,O=M,Ea=M,pa=A=0;I=c?c.q.fc():0;if(c){r=0;for(D=l.length;r<D;r++)A+=a.Wv(l[r].Wa),pa+=a.Xv(l[r].Wa);F=c.ua;L=b.Da(F.left,F.top,!0,!0);H=b.Da(F.left,F.top,!1,!0);P=b.Da(F.right,F.bottom,!0,!0);O=b.Da(F.right,F.bottom,!1,!0);0!==I&&(r=b.Da(F.right,F.top,!0,!0),D=b.Da(F.right,F.top,!1,!0),S=b.Da(F.left,F.bottom,
!0,!0),F=b.Da(F.left,F.bottom,!1,!0),I=Math.min(L,P,r,S),P=Math.max(L,P,r,S),L=I,I=Math.min(H,O,D,F),O=Math.max(H,O,D,F),H=I);L-=A;H-=pa;P+=A;O+=pa;x.left=L/N;x.top=1-H/M;x.right=P/N;x.bottom=1-O/M;S=L=K(L);F=H=K(H);Da=P=qa(P);Ea=O=qa(O);S-=A;F-=pa;Da+=A;Ea+=pa;0>L&&(L=0);0>H&&(H=0);P>N&&(P=N);O>M&&(O=M);0>S&&(S=0);0>F&&(F=0);Da>N&&(Da=N);Ea>M&&(Ea=M);z.left=L/N;z.top=1-H/M;z.right=P/N;z.bottom=1-O/M}else z.left=x.left=0,z.top=x.top=0,z.right=x.right=1,z.bottom=x.bottom=1;pa=c&&(a.Zh(l[0].Wa)||0!==
A||0!==pa||1!==c.opacity||c.type.qa.Bq)||b&&!c&&1!==b.opacity;a.er();if(pa){m[J]||(m[J]=a.kc(N,M,this.b.wa));if(m[J].Pc!==N||m[J].Oc!==M)a.deleteTexture(m[J]),m[J]=a.kc(N,M,this.b.wa);a.Yb(0);a.Gc(m[J]);X=Ea-F;a.clearRect(S,M-F-X,Da-S,X);c?c.xb(a):(a.Hb(this.b.bb),a.Qe(b.opacity),a.Fc(),a.translate(-za,-ta),a.wc(),a.ud(L,O,P,O,P,H,L,H,z));x.left=x.top=0;x.right=x.bottom=1;c&&(I=z.top,z.top=z.bottom,z.bottom=I);J=1;ba=0}a.Qe(1);A=l.length-1;var eb=a.nn(l[A].Wa)||!b&&!c&&!this.b.mc;r=I=0;for(D=l.length;r<
D;r++){m[J]||(m[J]=a.kc(N,M,this.b.wa));if(m[J].Pc!==N||m[J].Oc!==M)a.deleteTexture(m[J]),m[J]=a.kc(N,M,this.b.wa);a.Yb(l[r].Wa);I=l[r].index;a.ak(l[r].Wa)&&(this.b.S=!0);0!=r||pa?(a.vg(g,1/N,1/M,x.left,x.top,x.right,x.bottom,h,k,n,p,(n+e)/2,(p+q)/2,this.b.Fb.ja,c?c.Ga[I]:b?b.Ga[I]:this.Ga[I]),a.Hb(null),r!==A||eb?(a.Gc(m[J]),X=Ea-F,ea=M-F-X,a.clearRect(S,ea,Da-S,X)):(c?a.Pe(c.Ab,c.wb):b&&a.Pe(b.Ab,b.wb),a.Gc(g)),a.Hb(m[ba]),a.Fc(),a.translate(-za,-ta),a.wc(),a.ud(L,O,P,O,P,H,L,H,z),r!==A||eb||a.Hb(null)):
(a.Gc(m[J]),X=Ea-F,ea=M-F-X,a.clearRect(S,ea,Da-S,X),c?(c.gb&&c.gb.aa?(ea=c.gb.aa,ba=1/ea.width,ea=1/ea.height):(ba=1/c.width,ea=1/c.height),a.vg(g,ba,ea,x.left,x.top,x.right,x.bottom,h,k,n,p,(n+e)/2,(p+q)/2,this.b.Fb.ja,c.Ga[I]),c.xb(a)):(a.vg(g,1/N,1/M,0,0,1,1,h,k,n,p,(n+e)/2,(p+q)/2,this.b.Fb.ja,b?b.Ga[I]:this.Ga[I]),a.Hb(b?this.b.bb:this.b.Ra),a.Fc(),a.translate(-za,-ta),a.wc(),a.ud(L,O,P,O,P,H,L,H,z)),x.left=x.top=0,x.right=x.bottom=1,c&&!eb&&(I=O,O=H,H=I));J=0===J?1:0;ba=0===J?1:0}eb&&(a.Yb(0),
c?a.Pe(c.Ab,c.wb):b?a.Pe(b.Ab,b.wb):this.b.mc||(a.Ff(this.b.width,this.b.height),za=this.b.width/2,ta=this.b.height/2,H=L=0,P=this.b.width,O=this.b.height),a.Gc(g),a.Hb(m[ba]),a.Fc(),a.translate(-za,-ta),a.wc(),c&&1===l.length&&!pa?a.ud(L,H,P,H,P,O,L,O,z):a.ud(L,O,P,O,P,H,L,H,z),a.Hb(null))};e.prototype.kj=function(a){var b,c;b=0;for(c=this.V.length;b<c;b++)if(this.V[b].Z===a)return this.V[b];return null};e.prototype.Ia=function(){var a,b,c,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,
w:this.width,h:this.height,fv:this.Xf,persist:this.Me,fx:[],layers:{}};a=0;for(b=this.T.length;a<b;a++)c=this.T[a],g.fx.push({name:c.name,active:c.Ea,params:this.Ga[c.index]});a=0;for(b=this.V.length;a<b;a++)c=this.V[a],g.layers[c.Z.toString()]=c.Ia();return g};e.prototype.Sa=function(a){var b,c,g,l;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.k=a.a;this.width=a.w;this.height=a.h;this.Me=a.persist;"undefined"!==typeof a.fv&&(this.Xf=a.fv);var h=a.fx;b=0;for(c=h.length;b<c;b++)if(g=this.Nl(h[b].name))g.Ea=
h[b].active,this.Ga[g.index]=h[b].params;this.fd();b=a.layers;for(l in b)b.hasOwnProperty(l)&&(a=this.kj(parseInt(l,10)))&&a.Sa(b[l])};Bb=e;m.prototype.fd=function(){T(this.ia);this.Zd=!0;var a,b,c;a=0;for(b=this.T.length;a<b;a++)c=this.T[a],c.Ea&&(this.ia.push(c),c.Xc||(this.Zd=!1))};m.prototype.Nl=function(a){var b,c,g;b=0;for(c=this.T.length;b<c;b++)if(g=this.T[b],g.name===a)return g;return null};m.prototype.tu=function(){var a,b,c,g,l,k;b=a=0;for(c=this.nc.length;a<c;a++){g=this.nc[a];l=this.b.C[g[1]];
k=this.b.Yn(l);l=!0;if(!k||this.Na.Xf){g=this.b.ve(g,this,!0);if(!g)continue;h.push(g);g.type.global&&(l=!1,this.Wg.push(g.uid))}l&&(this.nc[b]=this.nc[a],b++)}this.nc.length=b;this.b.sb();!this.b.B&&this.T.length&&(this.tb=this.Xu);this.Ug=db(this.tb);this.b.G&&fb(this,this.tb,this.b.G);this.$c=!0};m.prototype.tg=function(a,b){var c=Ga(this.j,a);0>c||(b&&this.xc&&a.Xb&&a.Xb.right>=a.Xb.left&&(a.ra(),this.rb.update(a,a.Xb,null),a.Xb.set(0,0,-1,-1)),c===this.j.length-1?this.j.pop():(Aa(this.j,c),this.ei(c)),
this.$c=!0)};m.prototype.Rg=function(a,b){a.gd=this.j.length;this.j.push(a);b&&this.xc&&a.Xb&&a.I();this.$c=!0};m.prototype.xx=function(a){this.j.unshift(a);this.ei(0)};m.prototype.Xw=function(a,b,c){var g=a.qd();b=b.qd();Aa(this.j,g);g<b&&b--;c&&b++;b===this.j.length?this.j.push(a):this.j.splice(b,0,a);this.ei(g<b?g:b)};m.prototype.ei=function(a){-1===this.ie?this.ie=a:a<this.ie&&(this.ie=a);this.$c=this.If=!0};m.prototype.ao=function(){if(this.If){-1===this.ie&&(this.ie=0);var a,b,c;if(this.xc)for(a=
this.ie,b=this.j.length;a<b;++a)c=this.j[a],c.gd=a,this.rb.Tw(c.Xb);else for(a=this.ie,b=this.j.length;a<b;++a)this.j[a].gd=a;this.If=!1;this.ie=-1}};m.prototype.Rb=function(a){return this.Uv()*(this.b.mc||a?this.b.Sg:1)};m.prototype.Uv=function(){return(this.scale*this.Na.scale-1)*this.Cb+1};m.prototype.fc=function(){return this.Ld?0:V(this.Na.k+this.k)};var a=[],b=[],g=[];m.prototype.Ql=function(){this.ao();this.rb.dk(this.la,this.ma,this.oa,this.na,g);if(!g.length)return k();if(1===g.length){var a=
k();Ca(a,g[0]);T(g);return a}for(var c=!0;1<g.length;){for(var a=g,h=void 0,e=void 0,l=void 0,q=void 0,t=void 0,h=0,e=a.length;h<e-1;h+=2){var l=a[h],q=a[h+1],t=k(),n=l,p=q,m=t,y=0,R=0,G=0,D=n.length,A=p.length,I=void 0,J=void 0;for(m.length=D+A;y<D&&R<A;++G)I=n[y],J=p[R],I.gd<J.gd?(m[G]=I,++y):(m[G]=J,++R);for(;y<D;++y,++G)m[G]=n[y];for(;R<A;++R,++G)m[G]=p[R];c||(r(l),r(q));b.push(t)}1===e%2&&(c?(l=k(),Ca(l,a[e-1]),b.push(l)):b.push(a[e-1]));Ca(a,b);T(b);c=!1}a=g[0];T(g);return a};m.prototype.lc=
function(a){this.wd=this.gj||1!==this.opacity||0!==this.tb;var b=this.b.canvas,c=a,g=!1;this.wd&&(this.b.Bj||(this.b.Bj=document.createElement("canvas"),b=this.b.Bj,b.width=this.b.P,b.height=this.b.O,this.b.aq=b.getContext("2d"),g=!0),b=this.b.Bj,c=this.b.aq,b.width!==this.b.P&&(b.width=this.b.P,g=!0),b.height!==this.b.O&&(b.height=this.b.O,g=!0),g&&this.b.lk(c,this.b.wa),this.ed&&c.clearRect(0,0,this.b.P,this.b.O));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.ed||(c.fillStyle="rgb("+
this.Mc[0]+","+this.Mc[1]+","+this.Mc[2]+")",c.fillRect(0,0,this.b.P,this.b.O));c.save();this.Ld=!0;var g=this.Xa(0,0,!0,!0),l=this.Xa(0,0,!1,!0);this.Ld=!1;this.b.uc&&(g=Math.round(g),l=Math.round(l));this.hk(g,l,c);var h=this.Rb();c.scale(h,h);c.translate(-g,-l);this.xc?(this.lb.left=this.rb.Kb(this.la),this.lb.top=this.rb.Lb(this.ma),this.lb.right=this.rb.Kb(this.oa),this.lb.bottom=this.rb.Lb(this.na),this.$c||!this.lb.Zg(this.kg)?(r(this.Vd),g=this.Ql(),this.$c=!1,this.kg.Pf(this.lb)):g=this.Vd):
g=this.j;for(var k,n=null,l=0,h=g.length;l<h;++l)k=g[l],k!==n&&(this.Su(k,c),n=k);this.xc&&(this.Vd=g);c.restore();this.wd&&(a.globalCompositeOperation=this.Ug,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};m.prototype.Su=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ra();var c=a.ua;c.right<this.la||c.bottom<this.ma||c.left>this.oa||c.top>this.na||(b.globalCompositeOperation=a.Ug,a.lc(b))}};m.prototype.Rk=function(){this.Ld=!0;var a=this.Xa(0,0,!0,!0),b=this.Xa(0,0,!1,!0);this.Ld=!1;this.b.uc&&
(a=Math.round(a),b=Math.round(b));this.hk(a,b,null)};m.prototype.hk=function(a,b,c){var g=this.Rb();this.la=a;this.ma=b;this.oa=a+1/g*this.b.P;this.na=b+1/g*this.b.O;this.la>this.oa&&(a=this.la,this.la=this.oa,this.oa=a);this.ma>this.na&&(a=this.ma,this.ma=this.na,this.na=a);a=this.fc();0!==a&&(c&&(c.translate(this.b.P/2,this.b.O/2),c.rotate(-a),c.translate(this.b.P/-2,this.b.O/-2)),this.ee.set(this.la,this.ma,this.oa,this.na),this.ee.offset((this.la+this.oa)/-2,(this.ma+this.na)/-2),this.Fr.or(this.ee,
a),this.Fr.cp(this.ee),this.ee.offset((this.la+this.oa)/2,(this.ma+this.na)/2),this.la=this.ee.left,this.ma=this.ee.top,this.oa=this.ee.right,this.na=this.ee.bottom)};m.prototype.Ye=function(a){if(this.wd=this.gj){this.b.bb||(this.b.bb=a.kc(this.b.P,this.b.O,this.b.wa));if(this.b.bb.Pc!==this.b.P||this.b.bb.Oc!==this.b.O)a.deleteTexture(this.b.bb),this.b.bb=a.kc(this.b.P,this.b.O,this.b.wa);a.Gc(this.b.bb)}this.Ld=!0;var b=this.Xa(0,0,!0,!0),c=this.Xa(0,0,!1,!0);this.Ld=!1;this.b.uc&&(b=Math.round(b),
c=Math.round(c));this.hk(b,c,null);b=this.Rb();a.Fc();a.scale(b,b);a.ik(-this.fc());a.translate((this.la+this.oa)/-2,(this.ma+this.na)/-2);a.wc();this.xc?(this.lb.left=this.rb.Kb(this.la),this.lb.top=this.rb.Lb(this.ma),this.lb.right=this.rb.Kb(this.oa),this.lb.bottom=this.rb.Lb(this.na),this.$c||!this.lb.Zg(this.kg)?(r(this.Vd),b=this.Ql(),this.$c=!1,this.kg.Pf(this.lb)):b=this.Vd):b=this.j;for(var g,l=null,c=b.length-1;0<=c;--c)g=b[c],g!==l&&(this.Uu(b[c],a),l=g);this.xc&&(this.Vd=b);this.ed||(this.rl=
this.b.$e++,a.mk(this.rl),a.fr(1,1,1),a.wp(),a.Fx())};m.prototype.xb=function(a){var b=0,c=0;if(this.wd=this.gj||1!==this.opacity||0<this.ia.length||0!==this.tb){this.b.bb||(this.b.bb=a.kc(this.b.P,this.b.O,this.b.wa));if(this.b.bb.Pc!==this.b.P||this.b.bb.Oc!==this.b.O)a.deleteTexture(this.b.bb),this.b.bb=a.kc(this.b.P,this.b.O,this.b.wa);a.Gc(this.b.bb);this.ed&&a.clear(0,0,0,0)}this.ed||(this.b.xa?(a.mk(this.rl),a.fr(this.Mc[0]/255,this.Mc[1]/255,this.Mc[2]/255),a.wp(),a.Rx()):a.clear(this.Mc[0]/
255,this.Mc[1]/255,this.Mc[2]/255,1));this.Ld=!0;var g=this.Xa(0,0,!0,!0),b=this.Xa(0,0,!1,!0);this.Ld=!1;this.b.uc&&(g=Math.round(g),b=Math.round(b));this.hk(g,b,null);g=this.Rb();a.Fc();a.scale(g,g);a.ik(-this.fc());a.translate((this.la+this.oa)/-2,(this.ma+this.na)/-2);a.wc();this.xc?(this.lb.left=this.rb.Kb(this.la),this.lb.top=this.rb.Lb(this.ma),this.lb.right=this.rb.Kb(this.oa),this.lb.bottom=this.rb.Lb(this.na),this.$c||!this.lb.Zg(this.kg)?(r(this.Vd),b=this.Ql(),this.$c=!1,this.kg.Pf(this.lb)):
b=this.Vd):b=this.j;var l,h,k=null,c=0;for(l=b.length;c<l;++c)h=b[c],h!==k&&(this.Tu(b[c],a),k=h);this.xc&&(this.Vd=b);this.wd&&(b=this.ia.length?this.ia[0].Wa:0,c=this.ia.length?this.ia[0].index:0,0===this.ia.length||1===this.ia.length&&!a.nn(b)&&1===this.opacity?(1===this.ia.length?(a.Yb(b),a.vg(this.Na.jh(),1/this.b.P,1/this.b.O,0,0,1,1,g,this.fc(),this.la,this.ma,(this.la+this.oa)/2,(this.ma+this.na)/2,this.b.Fb.ja,this.Ga[c]),a.ak(b)&&(this.b.S=!0)):a.Yb(0),a.Gc(this.Na.jh()),a.Qe(this.opacity),
a.Hb(this.b.bb),a.Pe(this.Ab,this.wb),a.Fc(),a.wc(),g=this.b.P/2,b=this.b.O/2,a.sg(-g,b,g,b,g,-b,-g,-b),a.Hb(null)):this.Na.un(a,this,null,this.Na.jh()))};m.prototype.Tu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ra();var c=a.ua;c.right<this.la||c.bottom<this.ma||c.left>this.oa||c.top>this.na||(b.mk(a.$e),a.Ur?this.Vu(a,b):(b.Yb(0),b.Pe(a.Ab,a.wb),a.xb(b)))}};m.prototype.Uu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ra();var c=a.ua;c.right<this.la||c.bottom<this.ma||c.left>
this.oa||c.top>this.na||(a.$e=this.b.$e++,0===a.tb&&1===a.opacity&&a.Zd&&a.Ye&&(b.mk(a.$e),a.Ye(b)))}};m.prototype.Vu=function(a,b){var c=a.ia[0].Wa,g=a.ia[0].index,l=this.Rb();if(1!==a.ia.length||b.nn(c)||b.zx(c)||(a.k||a.q.fc())&&b.Zh(c)||1!==a.opacity||a.type.qa.Bq)this.Na.un(b,this,a,this.wd?this.b.bb:this.Na.jh()),b.Fc(),b.scale(l,l),b.ik(-this.fc()),b.translate((this.la+this.oa)/-2,(this.ma+this.na)/-2),b.wc();else{b.Yb(c);b.Pe(a.Ab,a.wb);b.ak(c)&&(this.b.S=!0);var h=0,k=0,n=0,p=0;b.Zh(c)&&
(p=a.ua,h=this.Da(p.left,p.top,!0,!0),k=this.Da(p.left,p.top,!1,!0),n=this.Da(p.right,p.bottom,!0,!0),p=this.Da(p.right,p.bottom,!1,!0),h=h/windowWidth,k=1-k/windowHeight,n=n/windowWidth,p=1-p/windowHeight);var e;a.gb&&a.gb.aa?(e=a.gb.aa,c=1/e.width,e=1/e.height):(c=1/a.width,e=1/a.height);b.vg(this.wd?this.b.bb:this.Na.jh(),c,e,h,k,n,p,l,this.fc(),this.la,this.ma,(this.la+this.oa)/2,(this.ma+this.na)/2,this.b.Fb.ja,a.Ga[g]);a.xb(b)}};m.prototype.Xa=function(a,b,c,g){var l=this.b.devicePixelRatio;
this.b.mf&&(a*=l,b*=l);var l=this.b.Nq,h=this.b.Oq,l=(this.Na.scrollX-l)*this.Ub+l,h=(this.Na.scrollY-h)*this.Vb+h,k=l,n=h,p=1/this.Rb(!g);g?(k-=this.b.P*p/2,n-=this.b.O*p/2):(k-=this.b.width*p/2,n-=this.b.height*p/2);k+=a*p;n+=b*p;b=this.fc();0!==b&&(k-=l,n-=h,a=Math.cos(b),b=Math.sin(b),g=k*a-n*b,n=n*a+k*b,k=g+l,n+=h);return c?k:n};m.prototype.Da=function(a,b,c,g){var l=this.b.Nq,h=this.b.Oq,k=(this.Na.scrollX-l)*this.Ub+l,n=(this.Na.scrollY-h)*this.Vb+h,h=k,l=n,p=this.fc();if(0!==p){a-=k;b-=n;
var e=Math.cos(-p),p=Math.sin(-p),q=a*e-b*p;b=b*e+a*p;a=q+k;b+=n}k=1/this.Rb(!g);g?(h-=this.b.P*k/2,l-=this.b.O*k/2):(h-=this.b.width*k/2,l-=this.b.height*k/2);h=(a-h)/k;l=(b-l)/k;a=this.b.devicePixelRatio;this.b.mf&&!g&&(h/=a,l/=a);return c?h:l};m.prototype.Ia=function(){var a,b,c,g={s:this.scale,a:this.k,vl:this.la,vt:this.ma,vr:this.oa,vb:this.na,v:this.visible,bc:this.Mc,t:this.ed,px:this.Ub,py:this.Vb,o:this.opacity,zr:this.Cb,fx:[],cg:this.Wg,instances:[]};a=0;for(b=this.T.length;a<b;a++)c=
this.T[a],g.fx.push({name:c.name,active:c.Ea,params:this.Ga[c.index]});return g};m.prototype.Sa=function(a){var b,c,g;this.scale=a.s;this.k=a.a;this.la=a.vl;this.ma=a.vt;this.oa=a.vr;this.na=a.vb;this.visible=a.v;this.Mc=a.bc;this.ed=a.t;this.Ub=a.px;this.Vb=a.py;this.opacity=a.o;this.Cb=a.zr;this.Wg=a.cg||[];Ca(this.nc,this.ur);var l=new da;b=0;for(g=this.Wg.length;b<g;++b)l.add(this.Wg[b]);c=b=0;for(g=this.nc.length;b<g;++b)l.contains(this.nc[b][2])||(this.nc[c]=this.nc[b],++c);Ba(this.nc,c);c=
a.fx;b=0;for(g=c.length;b<g;b++)if(a=this.Nl(c[b].name))a.Ea=c[b].active,this.Ga[a.index]=c[b].params;this.fd();this.j.sort(q);this.If=!0};Pb=m})();
(function(){function e(a,b){var d,c=a.length;switch(c){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0}}function q(a,b){return a.index-b.index}function m(a){var b,d,c,g;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>=l.length&&(l.length=a.length+1);l[a.length]||(l[a.length]=[]);g=l[a.length];b=0;for(d=g.length;b<d;b++)if(c=g[b],e(a,c))return c;g.push(a);return a}
function k(a,b){this.b=a;this.Jr={};this.sp={};this.Yl=!1;this.Ip=new da;this.zl=[];this.dl=[];this.name=b[0];var d=b[1];this.xe=[];var c,g;c=0;for(g=d.length;c<g;c++)this.Kp(d[c],null,this.xe)}function r(a){this.type=a;this.j=[];this.W=[];this.fa=!0}function h(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.ta=[];this.Re=[];this.Hp=this.Kk=this.Un=this.em=this.group=this.Kn=!1;this.Ya=[];this.yc=[];this.Ic=[];this.lh="";this.hf=this.em=this.group=!1;this.Si=null;d[1]&&(this.lh=d[1][1].toLowerCase(),
this.group=!0,this.em=!!d[1][0],this.Si=[],this.hf=this.em,this.b.Mf.push(this),this.b.ag[this.lh]=this);this.rc=d[2];this.Z=d[4];this.group||(this.b.Zo[this.Z.toString()]=this);var c=d[5];a=0;for(b=c.length;a<b;a++){var g=new Qb(this,c[a]);g.index=a;this.Ya.push(g);this.Uo(g.type)}c=d[6];a=0;for(b=c.length;a<b;a++)g=new Rb(this,c[a]),g.index=a,this.yc.push(g);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.Kp(d[a],this,this.Ic);this.uj=!1;this.Ya.length&&(this.uj=null==this.Ya[0].type&&
this.Ya[0].mb==W.prototype.n.xs)}function c(a,b){var d,c,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.ob))for(d=0,c=a.ec.length;d<c;d++)g=a.ec[d],a!==g&&-1===b.indexOf(g)&&b.push(g)}function a(a,b){this.jc=a;this.sheet=a.sheet;this.b=a.b;this.Y=[];this.Ha=[];this.U={};this.index=-1;this.Pg=!1;this.mb=this.b.je(b[1]);this.trigger=0<b[3];this.rp=2===b[3];this.pj=b[5];this.Ow=b[6];this.Z=b[7];this.b.te[this.Z.toString()]=this;-1===b[0]?(this.type=null,this.Va=this.An,this.We=null,this.Nc=-1):(this.type=this.b.C[b[0]],
this.Va=this.Ow?this.Lx:this.zn,b[2]?(this.We=this.type.ij(b[2]),this.Nc=this.type.Ml(b[2])):(this.We=null,this.Nc=-1),this.jc.parent&&this.jc.parent.ok());this.rp&&(this.Va=this.Mx);if(10===b.length){var d,c,g=b[9];d=0;for(c=g.length;d<c;d++){var f=new Sb(this,g[d]);this.Y.push(f)}this.Ha.length=g.length}}function b(a,b){this.jc=a;this.sheet=a.sheet;this.b=a.b;this.Y=[];this.Ha=[];this.U={};this.index=-1;this.Pg=!1;this.mb=this.b.je(b[1]);-1===b[0]?(this.type=null,this.Va=this.An,this.We=null,this.Nc=
-1):(this.type=this.b.C[b[0]],this.Va=this.zn,b[2]?(this.We=this.type.ij(b[2]),this.Nc=this.type.Ml(b[2])):(this.We=null,this.Nc=-1));this.Z=b[3];this.b.le[this.Z.toString()]=this;if(6===b.length){var d,c,g=b[5];d=0;for(c=g.length;d<c;d++){var f=new Sb(this,g[d]);this.Y.push(f)}this.Ha.length=g.length}}function g(){t++;E.length===t&&E.push(new Tb);return E[t]}function d(a,b){this.ya=a;this.jc=a.jc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.md=null;this.$d=0;this.get=null;this.jp=0;this.Na=
null;this.key=0;this.object=null;this.index=0;this.ri=this.Gf=this.ri=this.Gf=this.up=this.cf=this.si=null;this.Kc=!1;var d,c,g;switch(b[0]){case 0:case 7:this.md=new Ub(this,b[1]);this.$d=0;this.get=this.ew;break;case 1:this.md=new Ub(this,b[1]);this.$d=0;this.get=this.fw;break;case 5:this.md=new Ub(this,b[1]);this.$d=0;this.get=this.jw;break;case 3:case 8:this.jp=b[1];this.get=this.cw;break;case 6:this.Na=this.b.Em[b[1]];this.get=this.kw;break;case 9:this.key=b[1];this.get=this.iw;break;case 4:this.object=
this.b.C[b[1]];this.get=this.lw;this.jc.Uo(this.object);this.ya instanceof Rb?this.jc.ok():this.jc.parent&&this.jc.parent.ok();break;case 10:this.index=b[1];a.type&&a.type.M?(this.get=this.gw,this.Kc=!0):this.get=this.hw;break;case 11:this.si=b[1];this.cf=null;this.get=this.dw;break;case 2:case 12:this.up=b[1];this.get=this.aw;break;case 13:for(this.get=this.ow,this.Gf=[],this.ri=[],d=1,c=b.length;d<c;d++)g=new Sb(this.ya,b[d]),this.Gf.push(g),this.ri.push(0)}}function f(a,b,d){this.sheet=a;this.parent=
b;this.b=a.b;this.ta=[];this.name=d[1];this.ti=d[2];this.cm=d[3];this.xh=!!d[4];this.tj=!!d[5];this.Z=d[6];this.b.Jg[this.Z.toString()]=this;this.data=this.cm;this.parent?(this.uf=this.xh||this.tj?-1:this.b.Sx++,this.b.iu.push(this)):(this.uf=-1,this.b.hu.push(this))}function v(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.ta=[];this.oh=null;this.vw=d[1];this.Ea=!0}function u(){this.Ar=[];this.reset(null)}var l=[];k.prototype.toString=function(){return this.name};k.prototype.Kp=function(a,b,d){switch(a[0]){case 0:a=
new Vb(this,b,a);if(a.rc)for(d.push(a),d=0,b=a.Ya.length;d<b;d++)a.Ya[d].trigger&&this.Lp(a,d);else a.Vp()?this.Lp(a,0):d.push(a);break;case 1:a=new Mb(this,b,a);d.push(a);break;case 2:a=new Wb(this,b,a),d.push(a)}};k.prototype.Oa=function(){var a,b;a=0;for(b=this.xe.length;a<b;a++)this.xe[a].Oa(a<b-1&&this.xe[a+1].uj)};k.prototype.Zn=function(){T(this.zl);T(this.dl);this.So(this);T(this.dl)};k.prototype.So=function(a){var b,d,c,g,f=a.zl,l=a.dl,h=this.Ip.Cd();b=0;for(d=h.length;b<d;++b)c=h[b],g=c.oh,
!c.Ea||a===g||-1<l.indexOf(g)||(l.push(g),g.So(a),f.push(g))};k.prototype.Va=function(a){this.b.fz||(this.Yl=!0,a||(this.b.pm=!0));var b,d;b=0;for(d=this.xe.length;b<d;b++){var c=this.xe[b];c.Va();this.b.ql(c.ta);this.b.ze&&this.b.sb()}a||(this.b.pm=!1)};k.prototype.Lp=function(a,b){a.rc||this.b.Ok.push(a);var d,c,g=a.Ya[b],f;g.type?f=g.type.name:f="system";var l=(d=g.rp)?this.sp:this.Jr;l[f]||(l[f]=[]);f=l[f];l=g.mb;if(d){if(g.Y.length&&(g=g.Y[0],1===g.type&&2===g.md.type)){g=g.md.value.toLowerCase();
d=0;for(c=f.length;d<c;d++)if(f[d].method==l){d=f[d].$g;d[g]?d[g].push([a,b]):d[g]=[[a,b]];return}d={};d[g]=[[a,b]];f.push({method:l,$g:d})}}else{d=0;for(c=f.length;d<c;d++)if(f[d].method==l){f[d].$g.push([a,b]);return}Y&&l===Y.prototype.n.Lf?f.unshift({method:l,$g:[[a,b]]}):f.push({method:l,$g:[[a,b]]})}};Cb=k;r.prototype.Xl=function(){return this.fa?this.type.j.length:this.j.length};r.prototype.Ac=function(){return this.fa?this.type.j:this.j};r.prototype.Yh=function(a){a&&(a.b.Qa().Za.rc?(this.fa&&
(T(this.j),Ca(this.W,a.type.j),this.fa=!1),a=this.W.indexOf(a),-1!==a&&(this.j.push(this.W[a]),this.W.splice(a,1))):(this.fa=!1,T(this.j),this.j[0]=a))};lb=r;window._c2hh_="3615EBEEAE04BCDE5FE385421DC5D2A350E287DB";h.prototype.Oa=function(a){var b,d=this.parent;if(this.group)for(this.Kk=!0;d;){if(!d.group){this.Kk=!1;break}d=d.parent}this.Un=!this.Vp()&&(!this.parent||this.parent.group&&this.parent.Kk);this.Hp=!!a;this.Re=this.ta.slice(0);for(d=this.parent;d;){a=0;for(b=d.ta.length;a<b;a++)this.eu(d.ta[a]);
d=d.parent}this.ta=m(this.ta);this.Re=m(this.Re);a=0;for(b=this.Ya.length;a<b;a++)this.Ya[a].Oa();a=0;for(b=this.yc.length;a<b;a++)this.yc[a].Oa();a=0;for(b=this.Ic.length;a<b;a++)this.Ic[a].Oa(a<b-1&&this.Ic[a+1].uj)};h.prototype.nk=function(a){if(this.hf!==!!a){this.hf=!!a;var b;a=0;for(b=this.Si.length;a<b;++a)this.Si[a].Or();0<b&&this.b.ea.bf&&this.b.ea.bf.Zn()}};h.prototype.Uo=function(a){c(a,this.ta)};h.prototype.eu=function(a){c(a,this.Re)};h.prototype.ok=function(){this.Kn=!0;this.parent&&
this.parent.ok()};h.prototype.Vp=function(){return this.Ya.length?this.Ya[0].trigger:!1};h.prototype.Va=function(){var a,b,d=!1,c=this.b,g=this.b.Qa();g.Za=this;var f=this.Ya;this.uj||(g.Cl=!1);if(this.rc){0===f.length&&(d=!0);g.Pa=0;for(a=f.length;g.Pa<a;g.Pa++)b=f[g.Pa],b.trigger||(b=b.Va())&&(d=!0);(g.of=d)&&this.jk()}else{g.Pa=0;for(a=f.length;g.Pa<a;g.Pa++)if(b=f[g.Pa].Va(),!b){g.of=!1;this.Un&&c.ze&&c.sb();return}g.of=!0;this.jk()}this.Zu(g)};h.prototype.Zu=function(a){a.of&&this.Hp&&(a.Cl=
!0);this.Un&&this.b.ze&&this.b.sb()};h.prototype.Jx=function(a){this.b.Qa().Za=this;this.Ya[a].Va()&&(this.jk(),this.b.Qa().of=!0)};h.prototype.jk=function(){var a=this.b.Qa(),b;a.Mb=0;for(b=this.yc.length;a.Mb<b;a.Mb++)if(this.yc[a.Mb].Va())return;this.cr()};h.prototype.Gx=function(){var a=this.b.Qa(),b;for(b=this.yc.length;a.Mb<b;a.Mb++)if(this.yc[a.Mb].Va())return;this.cr()};h.prototype.cr=function(){if(this.Ic.length){var a,b,d,c,g=this.Ic.length-1;this.b.ck(this);if(this.Kn)for(a=0,b=this.Ic.length;a<
b;a++)d=this.Ic[a],(c=!this.Kk||!this.group&&a<g)&&this.b.bk(d.ta),d.Va(),c?this.b.Ef(d.ta):this.b.ql(d.ta);else for(a=0,b=this.Ic.length;a<b;a++)this.Ic[a].Va();this.b.Zj()}};h.prototype.Kx=function(){var a=this.b.Qa();a.Za=this;var b=!1,d;a.Pa=0;for(d=this.Ya.length;a.Pa<d;a.Pa++)if(this.Ya[a.Pa].Va())b=!0;else if(!this.rc)return!1;return this.rc?b:!0};h.prototype.Zq=function(){this.b.df++;var a=this.b.Qa().Pa,b=this.b.ck(this);if(!this.rc)for(b.Pa=a+1,a=this.Ya.length;b.Pa<a;b.Pa++)if(!this.Ya[b.Pa].Va()){this.b.Zj();
return}this.jk();this.b.Zj()};h.prototype.Hw=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Ya[b].type===a.type)return!1;return!0};Vb=h;a.prototype.Oa=function(){var a,b,d;a=0;for(b=this.Y.length;a<b;a++)d=this.Y[a],d.Oa(),d.Kc&&(this.Pg=!0)};a.prototype.Mx=function(){return!0};a.prototype.An=function(){var a,b;a=0;for(b=this.Y.length;a<b;a++)this.Ha[a]=this.Y[a].get();return Sa(this.mb.apply(this.b.zd,this.Ha),this.pj)};a.prototype.Lx=function(){var a,b;a=0;for(b=this.Y.length;a<
b;a++)this.Ha[a]=this.Y[a].get();a=this.mb.apply(this.We?this.We:this.type,this.Ha);this.type.oe();return a};a.prototype.zn=function(){var a,b,d,c,g,f,l,h,k=this.type,e=k.ba(),t=this.jc.rc&&!this.trigger;b=0;var q=k.ob,m=k.M,u=k.Pd,r=this.Nc,E=-1<r,v=this.Pg,z=this.Y,x=this.Ha,L=this.pj,S=this.mb,H;if(v)for(b=0,g=z.length;b<g;++b)f=z[b],f.Kc||(x[b]=f.get(0));else for(b=0,g=z.length;b<g;++b)x[b]=z[b].get(0);if(e.fa){T(e.j);T(e.W);H=k.j;a=0;for(c=H.length;a<c;++a){h=H[a];if(v)for(b=0,g=z.length;b<g;++b)f=
z[b],f.Kc&&(x[b]=f.get(a));E?(b=0,m&&(b=h.type.Wf[u]),b=S.apply(h.Q[r+b],x)):b=S.apply(h,x);(l=Sa(b,L))?e.j.push(h):t&&e.W.push(h)}k.finish&&k.finish(!0);e.fa=!1;k.oe();return e.Xl()}d=0;H=(l=t&&!this.jc.Hw(this))?e.W:e.j;var F=!1;a=0;for(c=H.length;a<c;++a){h=H[a];if(v)for(b=0,g=z.length;b<g;++b)f=z[b],f.Kc&&(x[b]=f.get(a));E?(b=0,m&&(b=h.type.Wf[u]),b=S.apply(h.Q[r+b],x)):b=S.apply(h,x);if(Sa(b,L))if(F=!0,l){if(e.j.push(h),q)for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.ba().j.push(f)}else{H[d]=
h;if(q)for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.ba().j[d]=f;d++}else if(l){H[d]=h;if(q)for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.ba().W[d]=f;d++}else if(t&&(e.W.push(h),q))for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.ba().W.push(f)}Ba(H,d);if(q)for(m=k.ec,a=0,c=m.length;a<c;a++)h=m[a].ba(),l?Ba(h.W,d):Ba(h.j,d);d=F;if(l&&!F)for(a=0,c=e.j.length;a<c;a++){h=e.j[a];if(v)for(b=0,g=z.length;b<g;b++)f=z[b],f.Kc&&(x[b]=f.get(a));b=E?S.apply(h.Q[r],x):S.apply(h,
x);if(Sa(b,L)){F=!0;break}}k.finish&&k.finish(d||t);return t?F:e.Xl()};Qb=a;b.prototype.Oa=function(){var a,b,d;a=0;for(b=this.Y.length;a<b;a++)d=this.Y[a],d.Oa(),d.Kc&&(this.Pg=!0)};b.prototype.An=function(){var a=this.b,b,d,c=this.Y,g=this.Ha;b=0;for(d=c.length;b<d;++b)g[b]=c[b].get();return this.mb.apply(a.zd,g)};b.prototype.zn=function(){var a=this.type,b=this.Nc,d=a.Pd,c=this.Pg,g=this.Y,f=this.Ha,l=this.mb,h=a.ba().Ac(),a=a.M,k=-1<b,e,t,q,m,u,r;if(c)for(t=0,m=g.length;t<m;++t)u=g[t],u.Kc||(f[t]=
u.get(0));else for(t=0,m=g.length;t<m;++t)f[t]=g[t].get(0);e=0;for(q=h.length;e<q;++e){r=h[e];if(c)for(t=0,m=g.length;t<m;++t)u=g[t],u.Kc&&(f[t]=u.get(e));k?(t=0,a&&(t=r.type.Wf[d]),l.apply(r.Q[b+t],f)):l.apply(r,f)}return!1};Rb=b;var E=[],t=-1;d.prototype.Oa=function(){var a,b;if(11===this.type)this.cf=this.b.Bp(this.si,this.jc.parent);else if(13===this.type)for(a=0,b=this.Gf.length;a<b;a++)this.Gf[a].Oa();this.md&&this.md.Oa()};d.prototype.Vw=function(a){this.Kc||!a||a.qa.uk||(this.Kc=!0)};d.prototype.lr=
function(){this.Kc=!0};d.prototype.ew=function(a){this.$d=a||0;a=g();this.md.get(a);t--;return a.data};d.prototype.fw=function(a){this.$d=a||0;a=g();this.md.get(a);t--;return C(a.data)?a.data:""};d.prototype.lw=function(){return this.object};d.prototype.cw=function(){return this.jp};d.prototype.jw=function(a){this.$d=a||0;a=g();this.md.get(a);t--;return a.hb()?this.b.pd(a.data):this.b.Yf(a.data)};d.prototype.kw=function(){return this.Na};d.prototype.iw=function(){return this.key};d.prototype.hw=function(){return this.index};
d.prototype.gw=function(a){a=a||0;var b=this.ya.type,d=null,d=b.ba(),c=d.Ac();if(c.length)d=c[a%c.length].type;else if(d.W.length)d=d.W[a%d.W.length].type;else if(b.j.length)d=b.j[a%b.j.length].type;else return 0;return this.index+d.bj[b.Pd]};d.prototype.dw=function(){return this.cf};d.prototype.aw=function(){return this.up};d.prototype.ow=function(){var a,b;a=0;for(b=this.Gf.length;a<b;a++)this.ri[a]=this.Gf[a].get();return this.ri};Sb=d;f.prototype.Oa=function(){this.ta=m(this.ta)};f.prototype.Yd=
function(a){var b=this.b.Ap();this.parent&&!this.xh&&b?(this.uf>=b.length&&(b.length=this.uf+1),b[this.uf]=a):this.data=a};f.prototype.gf=function(){var a=this.b.Ap();return!this.parent||this.xh||!a||this.tj?this.data:this.uf>=a.length||"undefined"===typeof a[this.uf]?this.cm:a[this.uf]};f.prototype.Va=function(){!this.parent||this.xh||this.tj||this.Yd(this.cm)};Mb=f;v.prototype.toString=function(){return"include:"+this.oh.toString()};v.prototype.Oa=function(){this.oh=this.b.El[this.vw];this.sheet.Ip.add(this);
this.ta=m(this.ta);for(var a=this.parent;a;)a.group&&a.Si.push(this),a=a.parent;this.Or()};v.prototype.Va=function(){this.parent&&this.b.$h(this.b.C);this.oh.Yl||this.oh.Va(!0);this.parent&&this.b.Ef(this.b.C)};v.prototype.Or=function(){for(var a=this.parent;a;){if(a.group&&!a.hf){this.Ea=!1;return}a=a.parent}this.Ea=!0};Wb=v;u.prototype.reset=function(a){this.Za=a;this.Mb=this.Pa=0;T(this.Ar);this.Cl=this.of=!1};u.prototype.Iw=function(){return this.Za.Kn?!0:this.Pa<this.Za.Ya.length-1?!!this.Za.ta.length:
!1};Lb=u})();
(function(){function e(c,a){this.ya=c;this.b=c.b;this.type=a[0];this.get=[this.uv,this.qv,this.Dv,this.Gv,this.bv,this.Ev,this.yv,this.nv,this.xv,this.Cv,this.cv,this.Bv,this.ov,this.zv,this.vv,this.wv,this.rv,this.sv,this.lv,this.Fv,this.Av,this.tv,this.kv,this.pv][this.type];var b=null;this.Wd=this.Y=this.Ha=this.mb=this.Ik=this.second=this.first=this.value=null;this.Nc=-1;this.Sc=null;this.Vr=-1;this.cf=this.si=null;this.ug=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new Ub(c,a[1]);break;case 18:this.first=new Ub(c,a[1]);this.second=new Ub(c,a[2]);this.Ik=new Ub(c,a[3]);break;case 19:this.mb=this.b.je(a[1]);this.mb!==W.prototype.F.random&&this.mb!==W.prototype.F.hp||this.ya.lr();this.Ha=[];this.Y=[];3===a.length?(b=a[2],this.Ha.length=b.length+1):this.Ha.length=1;break;case 20:this.Wd=this.b.C[a[1]];this.Nc=-1;this.mb=this.b.je(a[2]);this.ug=a[3];Zb.Function&&this.mb===Zb.Function.prototype.F.qy&&this.ya.lr();a[4]?this.Sc=new Ub(c,a[4]):this.Sc=null;this.Ha=[];
this.Y=[];6===a.length?(b=a[5],this.Ha.length=b.length+1):this.Ha.length=1;break;case 21:this.Wd=this.b.C[a[1]];this.ug=a[2];a[3]?this.Sc=new Ub(c,a[3]):this.Sc=null;this.Vr=a[4];break;case 22:this.Wd=this.b.C[a[1]];this.Wd.ij(a[2]);this.Nc=this.Wd.Ml(a[2]);this.mb=this.b.je(a[3]);this.ug=a[4];a[5]?this.Sc=new Ub(c,a[5]):this.Sc=null;this.Ha=[];this.Y=[];7===a.length?(b=a[6],this.Ha.length=b.length+1):this.Ha.length=1;break;case 23:this.si=a[1],this.cf=null}this.ya.Vw(this.Wd);4<=this.type&&17>=this.type&&
(this.first=new Ub(c,a[1]),this.second=new Ub(c,a[2]));if(b){var g,d;g=0;for(d=b.length;g<d;g++)this.Y.push(new Ub(c,b[g]))}}function q(){++h;r.length===h&&r.push(new Tb);return r[h]}function m(c,a,b){var g,d;g=0;for(d=c.length;g<d;++g)c[g].get(b),a[g+1]=b.data}function k(c,a){this.type=c||Xb.Kf;this.data=a||0;this.zf=null;this.type==Xb.Kf&&(this.data=Math.floor(this.data))}e.prototype.Oa=function(){23===this.type&&(this.cf=this.ya.b.Bp(this.si,this.ya.jc.parent));this.first&&this.first.Oa();this.second&&
this.second.Oa();this.Ik&&this.Ik.Oa();this.Sc&&this.Sc.Oa();if(this.Y){var c,a;c=0;for(a=this.Y.length;c<a;c++)this.Y[c].Oa()}};var r=[],h=-1;e.prototype.Fv=function(c){var a=this.Y,b=this.Ha;b[0]=c;c=q();m(a,b,c);--h;this.mb.apply(this.b.zd,b)};e.prototype.Av=function(c){var a=this.Wd,b=this.Ha,g=this.Y,d=this.Sc,f=this.mb,k=this.ya.$d,e=a.ba(),l=e.Ac();if(!l.length)if(e.W.length)l=e.W;else{this.ug?c.Ib(""):c.ga(0);return}b[0]=c;c.zf=a;c=q();m(g,b,c);d&&(d.get(c),c.hb()&&(k=c.data,l=a.j));--h;a=
l.length;if(k>=a||k<=-a)k%=a;0>k&&(k+=a);f.apply(l[k],b)};e.prototype.kv=function(c){var a=this.Wd,b=this.Ha,g=this.Y,d=this.Sc,f=this.Nc,k=this.mb,e=this.ya.$d,l=a.ba(),r=l.Ac();if(!r.length)if(l.W.length)r=l.W;else{this.ug?c.Ib(""):c.ga(0);return}b[0]=c;c.zf=a;c=q();m(g,b,c);d&&(d.get(c),c.hb()&&(e=c.data,r=a.j));--h;g=r.length;if(e>=g||e<=-g)e%=g;0>e&&(e+=g);e=r[e];r=0;a.M&&(r=e.type.Wf[a.Pd]);k.apply(e.Q[f+r],b)};e.prototype.tv=function(c){var a=this.Sc,b=this.Wd,g=this.Vr,d=this.ya.$d,f=b.ba(),
k=f.Ac();if(!k.length)if(f.W.length)k=f.W;else{this.ug?c.Ib(""):c.ga(0);return}if(a){f=q();a.get(f);if(f.hb()){d=f.data;k=b.j;0!==k.length&&(d%=k.length,0>d&&(d+=k.length));d=b.Pl(d);b=d.$a[g];C(b)?c.Ib(b):c.D(b);--h;return}--h}a=k.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=k[d];k=0;b.M&&(k=d.type.bj[b.Pd]);b=d.$a[g+k];C(b)?c.Ib(b):c.D(b)};e.prototype.uv=function(c){c.type=Xb.Kf;c.data=this.value};e.prototype.qv=function(c){c.type=Xb.Jf;c.data=this.value};e.prototype.Dv=function(c){c.type=Xb.String;
c.data=this.value};e.prototype.Gv=function(c){this.first.get(c);c.hb()&&(c.data=-c.data)};e.prototype.bv=function(c){this.first.get(c);var a=q();this.second.get(a);c.hb()&&a.hb()&&(c.data+=a.data,a.eg()&&c.mg());--h};e.prototype.Ev=function(c){this.first.get(c);var a=q();this.second.get(a);c.hb()&&a.hb()&&(c.data-=a.data,a.eg()&&c.mg());--h};e.prototype.yv=function(c){this.first.get(c);var a=q();this.second.get(a);c.hb()&&a.hb()&&(c.data*=a.data,a.eg()&&c.mg());--h};e.prototype.nv=function(c){this.first.get(c);
var a=q();this.second.get(a);c.hb()&&a.hb()&&(c.data/=a.data,c.mg());--h};e.prototype.xv=function(c){this.first.get(c);var a=q();this.second.get(a);c.hb()&&a.hb()&&(c.data%=a.data,a.eg()&&c.mg());--h};e.prototype.Cv=function(c){this.first.get(c);var a=q();this.second.get(a);c.hb()&&a.hb()&&(c.data=Math.pow(c.data,a.data),a.eg()&&c.mg());--h};e.prototype.cv=function(c){this.first.get(c);var a=q();this.second.get(a);a.gg()||c.gg()?this.gv(c,a):this.dv(c,a);--h};e.prototype.gv=function(c,a){c.gg()&&
a.gg()?this.jv(c,a):this.hv(c,a)};e.prototype.jv=function(c,a){c.data+=a.data};e.prototype.hv=function(c,a){c.gg()?c.data+=(Math.round(1E10*a.data)/1E10).toString():c.Ib(c.data.toString()+a.data)};e.prototype.dv=function(c,a){c.ga(c.data&&a.data?1:0)};e.prototype.Bv=function(c){this.first.get(c);var a=q();this.second.get(a);c.hb()&&a.hb()&&(c.data||a.data?c.ga(1):c.ga(0));--h};e.prototype.lv=function(c){this.first.get(c);c.data?this.second.get(c):this.Ik.get(c)};e.prototype.ov=function(c){this.first.get(c);
var a=q();this.second.get(a);c.ga(c.data===a.data?1:0);--h};e.prototype.zv=function(c){this.first.get(c);var a=q();this.second.get(a);c.ga(c.data!==a.data?1:0);--h};e.prototype.vv=function(c){this.first.get(c);var a=q();this.second.get(a);c.ga(c.data<a.data?1:0);--h};e.prototype.wv=function(c){this.first.get(c);var a=q();this.second.get(a);c.ga(c.data<=a.data?1:0);--h};e.prototype.rv=function(c){this.first.get(c);var a=q();this.second.get(a);c.ga(c.data>a.data?1:0);--h};e.prototype.sv=function(c){this.first.get(c);
var a=q();this.second.get(a);c.ga(c.data>=a.data?1:0);--h};e.prototype.pv=function(c){var a=this.cf.gf();B(a)?c.D(a):c.Ib(a)};Ub=e;k.prototype.eg=function(){return this.type===Xb.Jf};k.prototype.hb=function(){return this.type===Xb.Kf||this.type===Xb.Jf};k.prototype.gg=function(){return this.type===Xb.String};k.prototype.mg=function(){this.eg()||(this.gg()&&(this.data=parseFloat(this.data)),this.type=Xb.Jf)};k.prototype.ga=function(c){this.type=Xb.Kf;this.data=Math.floor(c)};k.prototype.D=function(c){this.type=
Xb.Jf;this.data=c};k.prototype.Ib=function(c){this.type=Xb.String;this.data=c};k.prototype.mr=function(c){B(c)?(this.type=Xb.Jf,this.data=c):C(c)?(this.type=Xb.String,this.data=c.toString()):(this.type=Xb.Kf,this.data=0)};Tb=k;Xb={Kf:0,Jf:1,String:2}})();function W(e){this.b=e;this.ac=[]}
W.prototype.Ia=function(){var e={},q,m,k,r,h,c,a,b;e.waits=[];var g=e.waits,d;q=0;for(m=this.ac.length;q<m;q++){c=this.ac[q];d={t:c.time,st:c.sr,s:c.Jn,ev:c.Uf.Z,sm:[],sols:{}};c.Uf.yc[c.Mb]&&(d.act=c.Uf.yc[c.Mb].Z);k=0;for(r=c.ta.length;k<r;k++)d.sm.push(c.ta[k].Z);for(h in c.Jb)if(c.Jb.hasOwnProperty(h)){a=this.b.C[parseInt(h,10)];b={sa:c.Jb[h].kk,insts:[]};k=0;for(r=c.Jb[h].Rd.length;k<r;k++)b.insts.push(c.Jb[h].Rd[k].uid);d.sols[a.Z.toString()]=b}g.push(d)}return e};
W.prototype.Sa=function(e){e=e.waits;var q,m,k,r,h,c,a,b,g,d,f;T(this.ac);q=0;for(m=e.length;q<m;q++)if(c=e[q],b=this.b.Zo[c.ev.toString()]){g=-1;k=0;for(r=b.yc.length;k<r;k++)if(b.yc[k].Z===c.act){g=k;break}if(-1!==g){a={Jb:{},ta:[],Al:!1};a.time=c.t;a.sr=c.st||"";a.Jn=!!c.s;a.Uf=b;a.Mb=g;k=0;for(r=c.sm.length;k<r;k++)(b=this.b.Zf(c.sm[k]))&&a.ta.push(b);for(h in c.sols)if(c.sols.hasOwnProperty(h)&&(b=this.b.Zf(parseInt(h,10)))){g=c.sols[h];d={kk:g.sa,Rd:[]};k=0;for(r=g.insts.length;k<r;k++)(f=this.b.ih(g.insts[k]))&&
d.Rd.push(f);a.Jb[b.index.toString()]=d}this.ac.push(a)}}};
(function(){function e(){}function q(){}function m(){}var k=W.prototype;e.prototype.zs=function(){return!0};e.prototype.xo=function(){return!0};e.prototype.gt=function(){return!0};e.prototype.hs=function(a,c,d){return Yb(a,c,d)};e.prototype.Ps=function(a){return a?a.visible:!1};var r=[],h=-1;e.prototype.As=function(a){var c=a.ba();h++;r.length===h&&r.push([]);var d=r[h];Ca(d,c.Ac());var f=this.b.Qa(),k=f.Za,e=f.Iw(),f=this.b.Cx(),l,q,t,n,p,m,y=a.ob;if(e)for(e=0,l=d.length;e<l&&!f.Pn;e++){this.b.bk(k.ta);
n=d[e];c=a.ba();c.fa=!1;T(c.j);c.j[0]=n;if(y)for(q=0,t=n.siblings.length;q<t;q++)p=n.siblings[q],m=p.type.ba(),m.fa=!1,T(m.j),m.j[0]=p;f.index=e;k.Zq();this.b.Ef(k.ta)}else for(c.fa=!1,T(c.j),e=0,l=d.length;e<l&&!f.Pn;e++){n=d[e];c.j[0]=n;if(y)for(q=0,t=n.siblings.length;q<t;q++)p=n.siblings[q],m=p.type.ba(),m.fa=!1,T(m.j),m.j[0]=p;f.index=e;k.Zq()}T(d);this.b.rx();h--;return!1};e.prototype.Yt=function(){var a=this.b.jj().U;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);
var c=a.TriggerOnce_lastTick,d=this.b.vc;a.TriggerOnce_lastTick=d;return this.b.Dm||c!==d-1};e.prototype.ys=function(a){var c=this.b.jj(),d=c.U.Every_lastTime||0,f=this.b.Fb.ja;"undefined"===typeof c.U.Every_seconds&&(c.U.Every_seconds=a);var h=c.U.Every_seconds;if(f>=d+h)return c.U.Every_lastTime=d+h,f>=c.U.Every_lastTime+.04&&(c.U.Every_lastTime=f),c.U.Every_seconds=a,!0;f<d-.1&&(c.U.Every_lastTime=f);return!1};e.prototype.ms=function(a,c,d){return Yb(a.gf(),c,d)};e.prototype.Fs=function(a){return(a=
this.b.ag[a.toLowerCase()])&&a.hf};e.prototype.xs=function(){var a=this.b.Qa();return a.Cl?!1:!a.of};e.prototype.yo=function(){return!0};e.prototype.Ws=function(){return!0};e.prototype.Xk=function(){return!0};e.prototype.Do=function(){return!0};e.prototype.ht=function(){return!0};e.prototype.Ei=function(){return!0};e.prototype.$r=function(a,c,d){return Oa(U(a),U(d))<=U(c)};e.prototype.Ds=function(a,c){return Qa(U(a),U(c))};e.prototype.Cs=function(a,c,d){a=Ma(a);c=Ma(c);d=Ma(d);return Qa(d,c)?Qa(a,
c)&&!Qa(a,d):!(!Qa(a,c)&&Qa(a,d))};k.n=new e;q.prototype.us=function(a,c,d,f){if(c&&a&&(c=this.b.ul(a,c,d,f))){this.b.oc++;var h;this.b.trigger(Object.getPrototypeOf(a.qa).n.Ue,c);if(c.ob)for(d=0,f=c.siblings.length;d<f;d++)h=c.siblings[d],this.b.trigger(Object.getPrototypeOf(h.type.qa).n.Ue,h);this.b.oc--;a=a.ba();a.fa=!1;T(a.j);a.j[0]=c;if(c.ob)for(d=0,f=c.siblings.length;d<f;d++)h=c.siblings[d],a=h.type.ba(),a.fa=!1,T(a.j),a.j[0]=h}};q.prototype.Dt=function(a,c){a&&a.visible!==c&&(a.visible=c,
this.b.S=!0)};q.prototype.Et=function(a){this.b.ea&&this.b.ea.scale!==a&&(this.b.ea.scale=a,this.b.ea.bp(),this.b.S=!0)};q.prototype.Lt=function(a,c){0===a.ti?B(c)?a.Yd(c):a.Yd(parseFloat(c)):1===a.ti&&a.Yd(c.toString())};q.prototype.Yr=function(a,c){0===a.ti?B(c)?a.Yd(a.gf()+c):a.Yd(a.gf()+parseFloat(c)):1===a.ti&&a.Yd(a.gf()+c.toString())};q.prototype.Ut=function(a,c){0===a.ti&&(B(c)?a.Yd(a.gf()-c):a.Yd(a.gf()-parseFloat(c)))};q.prototype.At=function(a,c){var d=this.b.ag[a.toLowerCase()];if(d)switch(c){case 0:d.nk(!1);
break;case 1:d.nk(!0);break;case 2:d.nk(!d.hf)}};var c=[],a=[];q.prototype.Zt=function(b){if(!(0>b)){var g,d,f,h=this.b.Qa(),k;c.length?k=c.pop():k={Jb:{},ta:[]};k.Al=!1;k.time=this.b.Fb.ja+b;k.sr="";k.Jn=!1;k.Uf=h.Za;k.Mb=h.Mb+1;b=0;for(g=this.b.C.length;b<g;b++)f=this.b.C[b],d=f.ba(),d.fa&&-1===h.Za.ta.indexOf(f)||(k.ta.push(f),f=void 0,a.length?f=a.pop():f={Rd:[]},f.kk=!1,f.kk=d.fa,Ca(f.Rd,d.j),k.Jb[b.toString()]=f);this.ac.push(k);return!0}};k.u=new q;m.prototype["int"]=function(a,c){C(c)?(a.ga(parseInt(c,
10)),isNaN(a.data)&&(a.data=0)):a.ga(c)};m.prototype["float"]=function(a,c){C(c)?(a.D(parseFloat(c)),isNaN(a.data)&&(a.data=0)):a.D(c)};m.prototype.random=function(a,c,d){void 0===d?a.D(Math.random()*c):a.D(Math.random()*(d-c)+c)};m.prototype.sqrt=function(a,c){a.D(Math.sqrt(c))};m.prototype.abs=function(a,c){a.D(Math.abs(c))};m.prototype.round=function(a,c){a.ga(Math.round(c))};m.prototype.floor=function(a,c){a.ga(Math.floor(c))};m.prototype.ceil=function(a,c){a.ga(Math.ceil(c))};m.prototype.sin=
function(a,c){a.D(Math.sin(U(c)))};m.prototype.cos=function(a,c){a.D(Math.cos(U(c)))};m.prototype.tan=function(a,c){a.D(Math.tan(U(c)))};m.prototype.asin=function(a,c){a.D(Ja(Math.asin(c)))};m.prototype.acos=function(a,c){a.D(Ja(Math.acos(c)))};m.prototype.atan=function(a,c){a.D(Ja(Math.atan(c)))};m.prototype.exp=function(a,c){a.D(Math.exp(c))};m.prototype.log10=function(a,c){a.D(Math.log(c)/Math.LN10)};m.prototype.max=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var d,f,h;d=2;for(f=
arguments.length;d<f;d++)h=arguments[d],"number"===typeof h&&c<h&&(c=h);a.D(c)};m.prototype.min=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var d,f,h;d=2;for(f=arguments.length;d<f;d++)h=arguments[d],"number"===typeof h&&c>h&&(c=h);a.D(c)};m.prototype.Tf=function(a){a.D(this.b.Tf)};m.prototype.Fg=function(a){a.D(this.b.Fg)};m.prototype.time=function(a){a.D(this.b.Fb.ja)};m.prototype.vc=function(a){a.ga(this.b.vc)};m.prototype.Nj=function(a){a.ga(this.b.Nj)};m.prototype.Kl=function(a){a.ga(this.b.Kl)};
m.prototype.zu=function(a,c,d,f,h){a.D(Ra(c,d,f,h))};m.prototype.k=function(a,c,d,f,h){a.D(Ja(Na(c,d,f,h)))};m.prototype.Px=function(a){a.D(this.b.ea.scrollX)};m.prototype.Qx=function(a){a.D(this.b.ea.scrollY)};m.prototype.Yw=function(a){a.Ib("\n")};m.prototype.iy=function(a){a.ga(this.b.width)};m.prototype.left=function(a,c,d){a.Ib(C(c)?c.substr(0,d):"")};m.prototype.right=function(a,c,d){a.Ib(C(c)?c.substr(c.length-d):"")};m.prototype.replace=function(a,c,d,f){C(c)&&C(d)&&C(f)?a.Ib(c.replace(new RegExp($a(d),
"gi"),f)):a.Ib(C(c)?c:"")};m.prototype.trim=function(a,c){a.Ib(C(c)?c.trim():"")};m.prototype.hp=function(a){var c=K(Math.random()*(arguments.length-1));a.mr(arguments[c+1])};m.prototype.Hx=function(a,c,d,f){a.ga(ua(c,d,f))};m.prototype.sl=function(a){a.D(this.b.sl/1E3)};m.prototype.gy=function(a,c){var d=this.b.Dp(c);a.D(d?d.oa:0)};m.prototype.fy=function(a,c){var d=this.b.Dp(c);a.D(d?d.na:0)};m.prototype.Fj=function(a){a.D(this.b.Fj)};m.prototype.jx=function(a){a.ga(this.b.Ua)};m.prototype.ix=function(a){a.ga(this.b.Ta)};
k.F=new m;k.Ix=function(){var b,g,d,f,h,k,l=this.b.Qa();b=0;for(d=this.ac.length;b<d;b++){f=this.ac[b];if(-1===f.time){if(!f.Jn)continue}else if(f.time>this.b.Fb.ja)continue;l.Za=f.Uf;l.Mb=f.Mb;l.Pa=0;for(g in f.Jb)f.Jb.hasOwnProperty(g)&&(h=this.b.C[parseInt(g,10)].ba(),k=f.Jb[g],h.fa=k.kk,Ca(h.j,k.Rd),h=k,T(h.Rd),a.push(h));f.Uf.Gx();this.b.ql(f.ta);f.Al=!0}g=b=0;for(d=this.ac.length;b<d;b++)f=this.ac[b],this.ac[g]=f,f.Al?(Ua(f.Jb),T(f.ta),c.push(f)):g++;Ba(this.ac,g)}})();
(function(){kb=function(e,m){var k=e[1],r=e[3],h=e[4],c=e[5],a=e[6],b=e[7],g=e[8];m.n||(m.n={});m.u||(m.u={});m.F||(m.F={});var d=m.n,f=m.u,v=m.F;r&&(d.os=function(a,b){return Yb(this.x,a,b)},d.qs=function(a,b){return Yb(this.y,a,b)},d.Hs=function(){var a=this.q;this.ra();var b=this.ua;return!(b.right<a.la||b.bottom<a.ma||b.left>a.oa||b.top>a.na)},d.Is=function(){this.ra();var a=this.ua,b=this.b.ea;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.nt=function(a,b,c){var d=this.ba(),
g=d.Ac();if(!g.length)return!1;var f=g[0],h=f,k=Ra(f.x,f.y,b,c),e,m,q;e=1;for(m=g.length;e<m;e++)if(f=g[e],q=Ra(f.x,f.y,b,c),0===a&&q<k||1===a&&q>k)k=q,h=f;d.Yh(h);return!0},f.Nt=function(a){this.x!==a&&(this.x=a,this.I())},f.No=function(a){this.y!==a&&(this.y=a,this.I())},f.$k=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.I()},f.Ko=function(a,b){var c=a.Vv(this);if(c){var d;c.ff?(d=c.ff(b,!0),c=c.ff(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.I()}},f.wy=
function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.I())},f.vy=function(a,b){0!==b&&(this.x+=Math.cos(U(a))*b,this.y+=Math.sin(U(a))*b,this.I())},v.Ng=function(a){a.D(this.x)},v.Og=function(a){a.D(this.y)},v.Tf=function(a){a.D(this.b.od(this))});h&&(d.ns=function(a,b){return Yb(this.width,a,b)},d.js=function(a,b){return Yb(this.height,a,b)},f.Mo=function(a){this.width!==a&&(this.width=a,this.I())},f.Bt=function(a){this.height!==a&&(this.height=a,this.I())},f.al=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.I()},v.Oo=function(a){a.D(this.width)},v.lo=function(a){a.D(this.height)},v.cs=function(a){this.ra();a.D(this.ua.left)},v.ds=function(a){this.ra();a.D(this.ua.top)},v.ny=function(a){this.ra();a.D(this.ua.right)},v.my=function(a){this.ra();a.D(this.ua.bottom)});c&&(d.$r=function(a,b){return Oa(this.k,U(b))<=U(a)},d.Ds=function(a){return Qa(this.k,U(a))},d.Cs=function(a,b){var c=Ma(a),d=Ma(b),g=V(this.k);return Qa(d,c)?Qa(g,c)&&!Qa(g,
d):!(!Qa(g,c)&&Qa(g,d))},f.Io=function(a){a=U(Ka(a));isNaN(a)||this.k===a||(this.k=a,this.I())},f.Dy=function(a){0===a||isNaN(a)||(this.k+=U(a),this.k=V(this.k),this.I())},f.Ey=function(a){0===a||isNaN(a)||(this.k-=U(a),this.k=V(this.k),this.I())},f.tt=function(a,b){var c=Pa(this.k,U(b),U(a));isNaN(c)||this.k===c||(this.k=c,this.I())},f.Fy=function(a,b,c){a=Pa(this.k,Math.atan2(c-this.y,b-this.x),U(a));isNaN(a)||this.k===a||(this.k=a,this.I())},f.Kt=function(a,b){var c=Math.atan2(b-this.y,a-this.x);
isNaN(c)||this.k===c||(this.k=c,this.I())},v.Zr=function(a){a.D(La(this.k))});k||(d.ks=function(a,b,c){return Yb(this.$a[a],b,c)},d.ty=function(a){return this.$a[a]},d.Ay=function(a,b){var c=this.ba(),d=c.Ac();if(!d.length)return!1;var g=d[0],f=g,h=g.$a[b],k,e,m;k=1;for(e=d.length;k<e;k++)if(g=d[k],m=g.$a[b],0===a&&m<h||1===a&&m>h)h=m,f=g;c.Yh(f);return!0},d.zy=function(a){var b,c,d,g,f;if(this.b.jj().pj){f=this.ba();if(f.fa)for(f.fa=!1,T(f.j),T(f.W),d=this.j,b=0,c=d.length;b<c;b++)g=d[b],g.uid===
a?f.W.push(g):f.j.push(g);else{d=b=0;for(c=f.j.length;b<c;b++)g=f.j[b],f.j[d]=g,g.uid===a?f.W.push(g):d++;Ba(f.j,d)}this.oe();return!!f.j.length}g=this.b.ih(a);if(!g)return!1;f=this.ba();if(!f.fa&&-1===f.j.indexOf(g))return!1;if(this.M)for(a=g.type.Ca,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.Yh(g),this.oe(),!0}else if(g.type===this)return f.Yh(g),this.oe(),!0;return!1},d.Ue=function(){return!0},d.Xs=function(){return!0},f.Ct=function(a,b){var c=this.$a;B(c[a])?c[a]=B(b)?b:parseFloat(b):C(c[a])&&
(c[a]=C(b)?b:b.toString())},f.ky=function(a,b){var c=this.$a;B(c[a])?c[a]=B(b)?c[a]+b:c[a]+parseFloat(b):C(c[a])&&(c[a]=C(b)?c[a]+b:c[a]+b.toString())},f.Jy=function(a,b){var c=this.$a;B(c[a])&&(c[a]=B(b)?c[a]-b:c[a]-parseFloat(b))},f.Gy=function(a,b){this.$a[a]=b?1:0},f.Ky=function(a){this.$a[a]=1-this.$a[a]},f.ws=function(){this.b.Dd(this)},f.Qs||(f.Qs=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Ej(this,b,!0);this.Ed&&this.Ed();if(this.Q)for(a=0,b=this.Q.length;a<b;++a)c=this.Q[a],
c.Ed&&c.Ed()}),v.ts=function(a){var b=a.zf.j.length,c,d,g;c=0;for(d=this.b.Qc.length;c<d;c++)g=this.b.Qc[c],a.zf.M?0<=g.type.Ca.indexOf(a.zf)&&b++:g.type===a.zf&&b++;a.ga(b)},v.Cy=function(a){a.ga(a.zf.ba().Ac().length)},v.Ly=function(a){a.ga(this.uid)},v.ry=function(a){a.ga(this.kh())},v.bs||(v.bs=function(a){a.Ib(JSON.stringify(this.b.Bn(this,!0)))}));a&&(d.Ms=function(){return this.visible},f.Lo=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.S=!0)},d.ko=function(a,b){return Yb(gb(100*
this.opacity),a,b)},f.Zk=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.S=!0)},v.Opacity=function(a){a.D(gb(100*this.opacity))});b&&(d.Gs=function(a){return a?this.q===a:!1},d.By=function(a){var b=this.ba(),c=b.Ac();if(!c.length)return!1;var d=c[0],g=d,f,h;f=1;for(h=c.length;f<h;f++)if(d=c[f],0===a){if(d.q.index>g.q.index||d.q.index===g.q.index&&d.qd()>g.qd())g=d}else if(d.q.index<g.q.index||d.q.index===g.q.index&&d.qd()<g.qd())g=d;b.Yh(g);return!0},f.po=function(){var a=
this.q,b=a.j;b.length&&b[b.length-1]===this||(a.tg(this,!1),a.Rg(this,!1),this.b.S=!0)},f.oo=function(){var a=this.q,b=a.j;b.length&&b[0]===this||(a.tg(this,!1),a.xx(this),this.b.S=!0)},f.Rs=function(a){a&&a!=this.q&&(this.q.tg(this,!0),this.q=a,a.Rg(this,!0),this.b.S=!0)},f.Ny=function(a,b){var c=0===a;if(b){var d=b.Cp(this);d&&d.uid!==this.uid&&(this.q.index!==d.q.index&&(this.q.tg(this,!0),this.q=d.q,d.q.Rg(this,!0)),this.q.Xw(this,d,c),this.b.S=!0)}},v.Os=function(a){a.ga(this.q.Dq)},v.uy=function(a){a.Ib(this.q.name)},
v.My=function(a){a.ga(this.qd())});g&&(f.Hy=function(a,b){if(this.b.B){var c=this.type.Ol(b);if(!(0>c)){var d=1===a;this.ke[c]!==d&&(this.ke[c]=d,this.fd(),this.b.S=!0)}}},f.Iy=function(a,b,c){if(this.b.B){var d=this.type.Ol(a);0>d||(a=this.type.T[d],d=this.Ga[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.B.Yv(a.Wa,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ea&&(this.b.S=!0))))}})};Db=function(){this.ll=this.Mi=!0;this.type.Gi=!0;this.b.S=!0;var e,m,k=this.hl;e=0;for(m=k.length;e<m;++e)k[e](this);this.q.xc&&
this.ra()};Eb=function(e){e&&this.hl.push(e)};Gb=function(){if(this.Mi){var e=this.ua,m=this.ub;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Sb*this.width,-this.Tb*this.height);this.k?(e.offset(-this.x,-this.y),m.or(e,this.k),m.offset(this.x,this.y),m.cp(e)):m.xg(e);e.normalize();this.Mi=!1;this.Sr()}};var e=new Q(0,0,0,0);Hb=function(){if(this.q.xc){var q=this.q.rb,m=this.ua;e.set(q.Kb(m.left),q.Lb(m.top),q.Kb(m.right),q.Lb(m.bottom));this.Xb.Zg(e)||(this.Xb.right<this.Xb.left?
q.update(this,null,e):q.update(this,this.Xb,e),this.Xb.Pf(e),this.q.$c=!0)}};Ib=function(){if(this.ll&&this.Hd){this.ra();var q=this.type.Ri,m=this.ua;e.set(q.Kb(m.left),q.Lb(m.top),q.Kb(m.right),q.Lb(m.bottom));this.ue.Zg(e)||(this.ue.right<this.ue.left?q.update(this,null,e):q.update(this,this.ue,e),this.ue.Pf(e),this.ll=!1)}};Fb=function(e,m){return this.ua.Db(e,m)&&this.ub.Db(e,m)?this.Eg?this.iz(e,m):this.ka&&!this.ka.dg()?(this.ka.Of(this.width,this.height,this.k),this.ka.Db(e-this.x,m-this.y)):
!0:!1};zb=function(){this.type.Qk();return this.kf};Jb=function(){this.q.ao();return this.gd};Kb=function(){T(this.ia);var e,m,k,r=!0;e=0;for(m=this.ke.length;e<m;e++)this.ke[e]&&(k=this.type.T[e],this.ia.push(k),k.Xc||(r=!1));this.Ur=!!this.ia.length;this.Zd=r};Ab=function(){return"Inst"+this.Vq};nb=function(e){if(e&&e.ob&&e.type!=this){var m,k,r;m=0;for(k=e.siblings.length;m<k;m++)if(r=e.siblings[m],r.type==this)return r}e=this.ba().Ac();return e.length?e[0]:null};ob=function(e){var m=this.ba().Ac();
return m.length?m[e.kh()%m.length]:null};mb=function(){if(this.Ag&&!this.M){var e,m;e=0;for(m=this.j.length;e<m;e++)this.j[e].kf=e;var k=e,r=this.b.Qc;e=0;for(m=r.length;e<m;++e)r[e].type===this&&(r[e].kf=k++);this.Ag=!1}};xb=function(e){if(e<this.j.length)return this.j[e];e-=this.j.length;var m=this.b.Qc,k,r;k=0;for(r=m.length;k<r;++k)if(m[k].type===this){if(0===e)return m[k];--e}return null};pb=function(){return this.ae[this.kd]};qb=function(){this.kd++;this.kd===this.ae.length?this.ae.push(new lb(this)):
(this.ae[this.kd].fa=!0,T(this.ae[this.kd].W))};rb=function(){this.kd++;this.kd===this.ae.length&&this.ae.push(new lb(this));var e=this.ae[this.kd],m=this.ae[this.kd-1];m.fa?(e.fa=!0,T(e.W)):(e.fa=!1,Ca(e.j,m.j),Ca(e.W,m.W))};sb=function(){this.kd--};tb=function(e){var m,k,r,h,c,a=0;if(!this.M)for(m=0,k=this.Ca.length;m<k;m++)for(c=this.Ca[m],r=0,h=c.Fa.length;r<h;r++){if(e===c.Fa[r].name)return this.U.lastBehIndex=a,c.Fa[r];a++}m=0;for(k=this.Fa.length;m<k;m++){if(e===this.Fa[m].name)return this.U.lastBehIndex=
a,this.Fa[m];a++}return null};ub=function(e){return this.ij(e)?this.U.lastBehIndex:-1};vb=function(e){var m,k;m=0;for(k=this.T.length;m<k;m++)if(this.T[m].name===e)return m;return-1};wb=function(){if(this.ob&&!this.M){var e,m,k,r,h,c,a;this.Qk();c=this.ba();var b=c.fa,g=(e=this.b.Qa())&&e.Za&&e.Za.rc;e=0;for(m=this.ec.length;e<m;e++)if(h=this.ec[e],h!==this&&(h.Qk(),a=h.ba(),a.fa=b,!b)){T(a.j);k=0;for(r=c.j.length;k<r;++k)a.j[k]=h.Pl(c.j[k].kf);if(g)for(T(a.W),k=0,r=c.W.length;k<r;++k)a.W[k]=h.Pl(c.W[k].kf)}}};
yb=function(){return"Type"+this.Z};Yb=function(e,m,k){if("undefined"===typeof e||"undefined"===typeof k)return!1;switch(m){case 0:return e===k;case 1:return e!==k;case 2:return e<k;case 3:return e<=k;case 4:return e>k;case 5:return e>=k;default:return!1}}})();var gc={};function jc(e){this.b=e}
(function(){function e(){}var q=jc.prototype;q.R=function(k){this.qa=k;this.b=k.b};q.R.prototype.K=function(){};q.N=function(k){this.type=k;this.b=k.b;this.zh=Array(256);this.qi=Array(256);this.fe=0};var m=q.N.prototype;m.K=function(){var k=this;this.b.Ma||(jQuery(document).keydown(function(h){k.Xm(h)}),jQuery(document).keyup(function(h){k.Ym(h)}))};var k=[32,33,34,35,36,37,38,39,40,44];m.Xm=function(e){var h=!1;window!=window.top&&-1<k.indexOf(e.which)&&(e.preventDefault(),h=!0,e.stopPropagation());
if(this.zh[e.which])this.qi[e.which]&&!h&&e.preventDefault();else{this.zh[e.which]=!0;this.fe=e.which;this.b.ab=!0;this.b.trigger(jc.prototype.n.Vs,this);var c=this.b.trigger(jc.prototype.n.uo,this),a=this.b.trigger(jc.prototype.n.et,this);this.b.ab=!1;if(c||a)this.qi[e.which]=!0,h||e.preventDefault()}};m.Ym=function(e){this.zh[e.which]=!1;this.fe=e.which;this.b.ab=!0;this.b.trigger(jc.prototype.n.qo,this);var h=this.b.trigger(jc.prototype.n.wo,this),c=this.b.trigger(jc.prototype.n.vo,this);this.b.ab=
!1;if(h||c||this.qi[e.which])this.qi[e.which]=!0,e.preventDefault()};m.Le=function(){var e;for(e=0;256>e;++e)if(this.zh[e]){this.zh[e]=!1;this.fe=e;this.b.trigger(jc.prototype.n.qo,this);var h=this.b.trigger(jc.prototype.n.wo,this),c=this.b.trigger(jc.prototype.n.vo,this);if(h||c)this.qi[e]=!0}};m.Ia=function(){return{triggerKey:this.fe}};m.Sa=function(e){this.fe=e.triggerKey};e.prototype.uo=function(e){return e===this.fe};e.prototype.Vs=function(){return!0};e.prototype.qo=function(){return!0};e.prototype.wo=
function(e){return e===this.fe};e.prototype.et=function(e){return e===this.fe};e.prototype.vo=function(e){return e===this.fe};q.n=new e;q.u=new function(){};q.F=new function(){}})();function kc(e){this.b=e}
(function(){function e(){}function q(){}var m=kc.prototype;m.R=function(h){this.qa=h;this.b=h.b};m.R.prototype.K=function(){};m.N=function(h){this.type=h;this.b=h.b;this.Nf=Array(4);this.Hr=this.Mk=this.Hf=this.Ke=this.Je=0;this.Wl=!1};var k=m.N.prototype;k.K=function(){var h=this;if(!this.b.Ma){jQuery(document).mousemove(function(a){h.$m(a)});jQuery(document).mousedown(function(a){h.Zm(a)});jQuery(document).mouseup(function(a){h.an(a)});jQuery(document).dblclick(function(a){h.bx(a)});var c=function(a){h.cx(a)};
document.addEventListener("mousewheel",c,!1);document.addEventListener("DOMMouseScroll",c,!1)}};var r={left:0,top:0};k.$m=function(h){var c=this.b.Ma?r:jQuery(this.b.canvas).offset();this.Je=h.pageX-c.left;this.Ke=h.pageY-c.top};k.Aq=function(){return 0<this.b.Eb?!0:0<=this.Je&&0<=this.Ke&&this.Je<this.b.width&&this.Ke<this.b.height};k.Zm=function(h){this.Aq()&&(this.Nf[h.which]=!0,this.b.ab=!0,this.b.trigger(kc.prototype.n.Us,this),this.Hf=h.which-1,this.Mk=0,this.b.trigger(kc.prototype.n.ro,this),
this.b.trigger(kc.prototype.n.Bo,this),this.b.ab=!1)};k.an=function(h){this.Nf[h.which]&&(this.b.nj&&!this.b.Td&&h.preventDefault(),this.b.nj=!0,this.Nf[h.which]=!1,this.b.ab=!0,this.Hf=h.which-1,this.b.trigger(kc.prototype.n.Co,this),this.b.ab=!1)};k.bx=function(h){this.Aq()&&(h.preventDefault(),this.b.ab=!0,this.Hf=h.which-1,this.Mk=1,this.b.trigger(kc.prototype.n.ro,this),this.b.trigger(kc.prototype.n.Bo,this),this.b.ab=!1)};k.cx=function(h){this.Hr=0>(h.wheelDelta?h.wheelDelta:h.detail?-h.detail:
0)?0:1;this.Wl=!1;this.b.ab=!0;this.b.trigger(kc.prototype.n.mt,this);this.b.ab=!1;this.Wl&&ib(h)&&h.preventDefault()};k.Le=function(){var h,c;h=0;for(c=this.Nf.length;h<c;++h)this.Nf[h]&&(this.Nf[h]=!1,this.Hf=h-1,this.b.trigger(kc.prototype.n.Co,this))};e.prototype.ro=function(h,c){return h===this.Hf&&c===this.Mk};e.prototype.Us=function(){return!0};e.prototype.Co=function(h){return h===this.Hf};e.prototype.Bo=function(h,c,a){return h!==this.Hf||c!==this.Mk?!1:this.b.li(a,this.Je,this.Ke)};e.prototype.mt=
function(h){this.Wl=!0;return h===this.Hr};m.n=new e;m.u=new function(){};q.prototype.Ng=function(h,c){var a,b,g,d,f;ia(c)?(a=this.b.pd(0),b=a.scale,g=a.Cb,d=a.Ub,f=a.k,a.scale=1,a.Cb=1,a.Ub=1,a.k=0,h.D(a.Xa(this.Je,this.Ke,!0)),a.scale=b,a.Cb=g,a.Ub=d,a.k=f):(a=B(c)?this.b.pd(c):this.b.Yf(c))?h.D(a.Xa(this.Je,this.Ke,!0)):h.D(0)};q.prototype.Og=function(h,c){var a,b,g,d,f;ia(c)?(a=this.b.pd(0),b=a.scale,g=a.Cb,d=a.Vb,f=a.k,a.scale=1,a.Cb=1,a.Vb=1,a.k=0,h.D(a.Xa(this.Je,this.Ke,!1)),a.scale=b,a.Cb=
g,a.Vb=d,a.k=f):(a=B(c)?this.b.pd(c):this.b.Yf(c))?h.D(a.Xa(this.Je,this.Ke,!1)):h.D(0)};m.F=new q})();function lc(e){this.b=e}
(function(){function e(e,m,h,c,a,b,g,d,f,q){e.save();e.fillStyle=m;m=a%h;var u=b%c;0>m&&(m+=h);0>u&&(u+=c);e.translate(m+f,u+q);e.fillRect(a-m-f,b-u-q,g,d);e.restore()}var q=lc.prototype;q.R=function(e){this.qa=e;this.b=e.b};var m=q.R.prototype;m.K=function(){this.M||(this.aa=new Image,this.aa.tl=this.Gk,this.b.eo(this.aa,this.Fk),this.wi=this.Ai=this.yi=this.xi=this.Mg=this.ca=this.$o=this.Gr=this.$q=this.cq=this.Il=null)};m.Xh=function(){this.M||(this.wi=this.Ai=this.yi=this.xi=this.Mg=this.ca=
null)};m.Pj=function(){this.M||!this.j.length||this.ca||(this.ca=this.b.B.Wc(this.aa,!0,this.b.wa,this.Cg))};m.Pk=function(){this.M||this.j.length||!this.b.B||(this.b.B.deleteTexture(this.ca),this.b.B.deleteTexture(this.Mg),this.b.B.deleteTexture(this.xi),this.b.B.deleteTexture(this.yi),this.b.B.deleteTexture(this.Ai),this.b.B.deleteTexture(this.wi),this.wi=this.Ai=this.yi=this.xi=this.Mg=this.ca=null)};m.yd=function(e,m,h,c){var a=document.createElement("canvas");h=h-e;c=c-m;a.width=h;a.height=c;
a.getContext("2d").drawImage(this.aa,e,m,h,c,0,0,h,c);return a};m.uu=function(e,m,h,c){var a=this.aa.width,b=this.aa.height,g=a-m,d=b-c;if(this.b.B){if(!this.Mg){var f=this.b.B,q=this.b.wa,u=this.Cg;g>e&&d>h&&(this.Mg=f.Wc(this.yd(e,h,g,d),!0,q,u));0<e&&d>h&&(this.xi=f.Wc(this.yd(0,h,e,d),!0,q,u,"repeat-y"));0<m&&d>h&&(this.yi=f.Wc(this.yd(g,h,a,d),!0,q,u,"repeat-y"));0<h&&g>e&&(this.Ai=f.Wc(this.yd(e,0,g,h),!0,q,u,"repeat-x"));0<c&&g>e&&(this.wi=f.Wc(this.yd(e,d,g,b),!0,q,u,"repeat-x"))}}else this.Il||
(f=this.b.Ba,g>e&&d>h&&(this.Il=f.createPattern(this.yd(e,h,g,d),"repeat")),0<e&&d>h&&(this.cq=f.createPattern(this.yd(0,h,e,d),"repeat")),0<m&&d>h&&(this.$q=f.createPattern(this.yd(g,h,a,d),"repeat")),0<h&&g>e&&(this.Gr=f.createPattern(this.yd(e,0,g,h),"repeat")),0<c&&g>e&&(this.$o=f.createPattern(this.yd(e,d,g,b),"repeat")))};q.N=function(e){this.type=e;this.b=e.b};m=q.N.prototype;m.K=function(){this.Fm=this.A[0];this.xn=this.A[1];this.Tn=this.A[2];this.il=this.A[3];this.Zi=this.A[4];this.fill=
this.A[5];this.visible=0===this.A[6];this.dr=0!==this.A[8];this.zb?this.vd.set(0,0,0,0):this.vd=new Q(0,0,0,0);this.b.B&&!this.type.ca&&(this.type.ca=this.b.B.Wc(this.type.aa,!1,this.b.wa,this.type.Cg));this.type.uu(this.Fm,this.xn,this.Tn,this.il)};m.lc=function(k){var m=this.type.aa,h=this.Fm,c=this.xn,a=this.Tn,b=this.il,g=m.width,d=m.height,f=g-c,q=d-b;k.globalAlpha=this.opacity;k.save();var u=this.x,l=this.y,E=this.width,t=this.height;this.b.uc&&(u=Math.round(u),l=Math.round(l));var n=-(this.Sb*
this.width),p=-(this.Tb*this.height),fa=n%g,y=p%d;0>fa&&(fa+=g);0>y&&(y+=d);k.translate(u+fa,l+y);g=n-fa;p-=y;y=this.dr?1:0;0<h&&0<a&&k.drawImage(m,0,0,h+y,a+y,g,p,h+y,a+y);0<c&&0<a&&k.drawImage(m,f-y,0,c+y,a+y,g+E-c-y,p,c+y,a+y);0<c&&0<b&&k.drawImage(m,f-y,q-y,c+y,b+y,g+E-c-y,p+t-b-y,c+y,b+y);0<h&&0<b&&k.drawImage(m,0,q-y,h+y,b+y,g,p+t-b-y,h+y,b+y);0===this.Zi?(y=2===this.fill?0:y,0<h&&q>a&&e(k,this.type.cq,h,q-a,g,p+a,h+y,t-a-b,0,0),0<c&&q>a&&e(k,this.type.$q,c,q-a,g+E-c-y,p+a,c+y,t-a-b,y,0),0<
a&&f>h&&e(k,this.type.Gr,f-h,a,g+h,p,E-h-c,a+y,0,0),0<b&&f>h&&e(k,this.type.$o,f-h,b,g+h,p+t-b-y,E-h-c,b+y,0,y)):1===this.Zi&&(0<h&&q>a&&0<t-a-b&&k.drawImage(m,0,a,h,q-a,g,p+a,h,t-a-b),0<c&&q>a&&0<t-a-b&&k.drawImage(m,f,a,c,q-a,g+E-c,p+a,c,t-a-b),0<a&&f>h&&0<E-h-c&&k.drawImage(m,h,0,f-h,a,g+h,p,E-h-c,a),0<b&&f>h&&0<E-h-c&&k.drawImage(m,h,q,f-h,b,g+h,p+t-b,E-h-c,b));q>a&&f>h&&(0===this.fill?e(k,this.type.Il,f-h,q-a,g+h,p+a,E-h-c,t-a-b,0,0):1===this.fill&&0<E-h-c&&0<t-a-b&&k.drawImage(m,h,a,f-h,q-a,
g+h,p+a,E-h-c,t-a-b));k.restore()};m.Md=function(e,m,h,c,a,b,g,d,f,q){e.Hb(m);var u=this.vd;u.left=h/m.Pc;u.top=c/m.Oc;u.right=(h+a)/m.Pc;u.bottom=(c+b)/m.Oc;e.ud(g,d,g+f,d,g+f,d+q,g,d+q,u)};m.ni=function(e,m,h,c,a,b,g,d){e.Hb(m);var f=this.vd;f.left=-g/m.Pc;f.top=-d/m.Oc;f.right=(a-g)/m.Pc;f.bottom=(b-d)/m.Oc;e.ud(h,c,h+a,c,h+a,c+b,h,c+b,f)};m.Ye=function(e){this.xb(e)};m.xb=function(e){var m=this.Fm,h=this.xn,c=this.Tn,a=this.il,b=this.type.aa.width-h,g=this.type.aa.height-a;e.Qe(this.opacity);
var d=this.ub,f=d.jb,d=d.kb,q=this.width,u=this.height;this.b.uc&&(f=Math.round(f),d=Math.round(d));var l=this.dr?1:0;0<m&&0<c&&this.Md(e,this.type.ca,0,0,m+l,c+l,f,d,m+l,c+l);0<h&&0<c&&this.Md(e,this.type.ca,b-l,0,h+l,c+l,f+q-h-l,d,h+l,c+l);0<h&&0<a&&this.Md(e,this.type.ca,b-l,g-l,h+l,a+l,f+q-h-l,d+u-a-l,h+l,a+l);0<m&&0<a&&this.Md(e,this.type.ca,0,g-l,m+l,a+l,f,d+u-a-l,m+l,a+l);0===this.Zi?(l=2===this.fill?0:l,0<m&&g>c&&this.ni(e,this.type.xi,f,d+c,m+l,u-c-a,0,0),0<h&&g>c&&this.ni(e,this.type.yi,
f+q-h-l,d+c,h+l,u-c-a,l,0),0<c&&b>m&&this.ni(e,this.type.Ai,f+m,d,q-m-h,c+l,0,0),0<a&&b>m&&this.ni(e,this.type.wi,f+m,d+u-a-l,q-m-h,a+l,0,l)):1===this.Zi&&(0<m&&g>c&&this.Md(e,this.type.ca,0,c,m,g-c,f,d+c,m,u-c-a),0<h&&g>c&&this.Md(e,this.type.ca,b,c,h,g-c,f+q-h,d+c,h,u-c-a),0<c&&b>m&&this.Md(e,this.type.ca,m,0,b-m,c,f+m,d,q-m-h,c),0<a&&b>m&&this.Md(e,this.type.ca,m,g,b-m,a,f+m,d+u-a,q-m-h,a));g>c&&b>m&&(0===this.fill?this.ni(e,this.type.Mg,f+m,d+c,q-m-h,u-c-a,0,0):1===this.fill&&this.Md(e,this.type.ca,
m,c,b-m,g-c,f+m,d+c,q-m-h,u-c-a))};q.n=new function(){};q.u=new function(){};q.F=new function(){}})();function mc(e){this.b=e}
(function(){function e(e){this.ya=e;this.Ea=!1;this.k=this.speed=this.y=this.x=0;this.opacity=1;this.me=this.bg=this.size=this.lj=0}function q(){}var m=mc.prototype;m.R=function(e){this.qa=e;this.b=e.b};var k=m.R.prototype;k.K=function(){this.M||(this.aa=new Image,this.aa.tl=this.Gk,this.ca=null,this.b.eo(this.aa,this.Fk))};k.Xh=function(){this.M||(this.ca=null)};k.Pj=function(){this.M||!this.j.length||this.ca||(this.ca=this.b.B.Wc(this.aa,!0,this.b.wa,this.Cg))};k.Hm=function(){this.M||this.ca||
!this.b.B||(this.ca=this.b.B.Wc(this.aa,!0,this.b.wa,this.Cg))};k.Pk=function(){this.M||this.j.length||!this.ca||(this.b.B.deleteTexture(this.ca),this.ca=null)};k.ln=function(e){e.drawImage(this.aa,0,0)};e.prototype.init=function(){var e=this.ya;this.x=e.x-e.Di/2+Math.random()*e.Di;this.y=e.y-e.Vk/2+Math.random()*e.Vk;this.speed=e.hm-e.wk/2+Math.random()*e.wk;this.k=e.k-e.xk/2+Math.random()*e.xk;this.opacity=e.fm;this.size=e.gm-e.vk/2+Math.random()*e.vk;this.lj=e.Vl-e.mj/2+Math.random()*e.mj;this.me=
this.bg=0};e.prototype.Ka=function(e){var c=this.ya;this.x+=Math.cos(this.k)*this.speed*e;this.y+=Math.sin(this.k)*this.speed*e;this.y+=this.bg*e;this.speed+=c.Aa*e;this.size+=this.lj*e;this.bg+=c.nd*e;this.me+=e;1>this.size?this.Ea=!1:(0!==c.Eh&&(this.k+=Math.random()*c.Eh*e-c.Eh*e/2),0!==c.Gh&&(this.speed+=Math.random()*c.Gh*e-c.Gh*e/2),0!==c.Fh&&(this.opacity+=Math.random()*c.Fh*e-c.Fh*e/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=c.Sf&&this.me>=c.timeout&&(this.Ea=!1),
2===c.Sf&&0>=this.speed&&(this.Ea=!1))};e.prototype.lc=function(e){var c=this.ya.opacity*this.opacity;if(0!==c){0===this.ya.Sf&&(c*=1-this.me/this.ya.timeout);e.globalAlpha=c;var c=this.x-this.size/2,a=this.y-this.size/2;this.ya.b.uc&&(c=c+.5|0,a=a+.5|0);e.drawImage(this.ya.type.aa,c,a,this.size,this.size)}};e.prototype.xb=function(e){var c=this.ya.opacity*this.opacity;0===this.ya.Sf&&(c*=1-this.me/this.ya.timeout);var a=this.size,b=a*this.ya.Pq,g=this.x-a/2,d=this.y-a/2;this.ya.b.uc&&(g=g+.5|0,d=
d+.5|0);1>b||0===c||(b<e.Ww||b>e.Nm?(e.Qe(c),e.sg(g,d,g+a,d,g+a,d+a,g,d+a)):e.nx(this.x,this.y,b,c))};e.prototype.left=function(){return this.x-this.size/2};e.prototype.right=function(){return this.x+this.size/2};e.prototype.top=function(){return this.y-this.size/2};e.prototype.bottom=function(){return this.y+this.size/2};m.N=function(e){this.type=e;this.b=e.b};var k=m.N.prototype,r=[];k.K=function(){var e=this.A;this.ek=e[0];this.xk=U(e[1]);this.yg=e[2];this.Mn=!0;this.hm=e[3];this.gm=e[4];this.fm=
e[5]/100;this.Vl=e[6];this.Di=e[7];this.Vk=e[8];this.wk=e[9];this.vk=e[10];this.mj=e[11];this.Aa=e[12];this.nd=e[13];this.Eh=e[14];this.Gh=e[15];this.Fh=e[16];this.Sf=e[17];this.timeout=e[18];this.Df=0;this.Pq=1;this.Uj=this.x;this.Wj=this.y;this.Vj=this.x;this.Tj=this.y;this.gu(function(c){c.ua.set(c.Uj,c.Wj,c.Vj,c.Tj);c.ub.xg(c.ua);c.Mi=!1;c.bo();c.Sr()});this.zb||(this.Gb=[]);this.b.Jk(this);this.type.Hm();if(1===this.yg)for(e=0;e<this.ek;e++)this.cl().opacity=0;this.ej=!0};k.Ia=function(){var e=
{r:this.ek,sc:this.xk,st:this.yg,s:this.Mn,isp:this.hm,isz:this.gm,io:this.fm,gr:this.Vl,xr:this.Di,yr:this.Vk,spr:this.wk,szr:this.vk,grnd:this.mj,acc:this.Aa,g:this.nd,lar:this.Eh,lsr:this.Gh,lor:this.Fh,dm:this.Sf,to:this.timeout,pcc:this.Df,ft:this.ej,p:[]},c,a,b,g=e.p;c=0;for(a=this.Gb.length;c<a;c++)b=this.Gb[c],g.push([b.x,b.y,b.speed,b.k,b.opacity,b.lj,b.size,b.bg,b.me]);return e};k.Sa=function(e){this.ek=e.r;this.xk=e.sc;this.yg=e.st;this.Mn=e.s;this.hm=e.isp;this.gm=e.isz;this.fm=e.io;this.Vl=
e.gr;this.Di=e.xr;this.Vk=e.yr;this.wk=e.spr;this.vk=e.szr;this.mj=e.grnd;this.Aa=e.acc;this.nd=e.g;this.Eh=e.lar;this.Gh=e.lsr;this.Fh=e.lor;this.Sf=e.dm;this.timeout=e.to;this.Df=e.pcc;this.ej=e.ft;r.push.apply(r,this.Gb);T(this.Gb);var c,a,b,g=e.p;e=0;for(c=g.length;e<c;e++)a=this.cl(),b=g[e],a.x=b[0],a.y=b[1],a.speed=b[2],a.k=b[3],a.opacity=b[4],a.lj=b[5],a.size=b[6],a.bg=b[7],a.me=b[8]};k.Cf=function(){r.push.apply(r,this.Gb);T(this.Gb)};k.cl=function(){var h;r.length?(h=r.pop(),h.ya=this):h=
new e(this);this.Gb.push(h);h.Ea=!0;return h};k.Ka=function(){var e=this.b.od(this),c,a,b,g;if(0===this.yg&&this.Mn)for(this.Df+=e*this.ek,a=K(this.Df),this.Df-=a,c=0;c<a;c++)b=this.cl(),b.init();this.Uj=this.x;this.Wj=this.y;this.Vj=this.x;this.Tj=this.y;g=c=0;for(a=this.Gb.length;c<a;c++)b=this.Gb[c],this.Gb[g]=b,this.b.S=!0,1===this.yg&&this.ej&&b.init(),b.Ka(e),b.Ea?(b.left()<this.Uj&&(this.Uj=b.left()),b.right()>this.Vj&&(this.Vj=b.right()),b.top()<this.Wj&&(this.Wj=b.top()),b.bottom()>this.Tj&&
(this.Tj=b.bottom()),g++):r.push(b);Ba(this.Gb,g);this.I();this.ej=!1;1===this.yg&&0===this.Gb.length&&this.b.Dd(this)};k.lc=function(e){var c,a,b,g=this.q;c=0;for(a=this.Gb.length;c<a;c++)b=this.Gb[c],b.right()>=g.la&&b.bottom()>=g.ma&&b.left()<=g.oa&&b.top()<=g.na&&b.lc(e)};k.xb=function(e){this.Pq=this.q.Rb();e.Hb(this.type.ca);var c,a,b,g=this.q;c=0;for(a=this.Gb.length;c<a;c++)b=this.Gb[c],b.right()>=g.la&&b.bottom()>=g.ma&&b.left()<=g.oa&&b.top()<=g.na&&b.xb(e)};m.n=new function(){};q.prototype.Ot=
function(e){this.Di=e};q.prototype.Jo=function(e){this.nd=e};m.u=new q;m.F=new function(){}})();function Y(e){this.b=e}
(function(){function e(){if(0===this.yl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.zg?b.drawImage(this.aa,this.pg,this.qg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.aa,0,0,this.width,this.height);this.yl=a.toDataURL("image/png")}return this.yl}function q(){}function m(a,b,c){if(!a)return!1;var e=0!==b||0!==c,k,h,m=!1,q,r=this.b.jj(),D=r.type,r=r.pj,A=a.ba();q=this.b.Qa().Za.rc;A.fa?(this.ra(),u.Pf(this.ua),
u.offset(b,c),this.b.zp(this.q,a,u,v),A=v):A=q?this.b.Fw()&&!A.W.length&&A.j.length?A.j:A.W:A.j;g=a;f=D!==a&&!r;e&&(k=this.x,h=this.y,this.x+=b,this.y+=c,this.I());b=0;for(c=A.length;b<c;b++)if(q=A[b],this.b.de(this,q)){m=!0;if(r)break;D!==a&&d.add(q)}e&&(this.x=k,this.y=h,this.I());T(v);return m}function k(){}function r(){}var h=Y.prototype;h.R=function(a){this.qa=a;this.b=a.b};var c=h.R.prototype;c.K=function(){if(!this.M){var a,b,c,d,g,f,k,h,m;this.Lc=[];this.mh=!1;a=0;for(b=this.cc.length;a<b;a++){g=
this.cc[a];k={};k.name=g[0];k.speed=g[1];k.loop=g[2];k.vn=g[3];k.wn=g[4];k.Qq=g[5];k.Z=g[6];k.frames=[];c=0;for(d=g[7].length;c<d;c++)f=g[7][c],h={},h.Fk=f[0],h.Gk=f[1],h.pg=f[2],h.qg=f[3],h.width=f[4],h.height=f[5],h.duration=f[6],h.Sb=f[7],h.Tb=f[8],h.$l=f[9],h.Yj=f[10],h.Rq=f[11],h.zg=0!==h.width,h.yl="",h.Sy=e,m={left:0,top:0,right:1,bottom:1},h.In=m,h.ca=null,(m=this.b.Lv(f[0]))?h.aa=m:(h.aa=new Image,h.aa.ru=f[0],h.aa.tl=f[1],h.aa.nu=null,this.b.eo(h.aa,f[0])),k.frames.push(h),this.Lc.push(h);
this.cc[a]=k}}};c.Qr=function(){var a,b,c;a=0;for(b=this.j.length;a<b;a++)c=this.j[a],c.Ui=c.gb.ca};c.Xh=function(){if(!this.M){var a,b,c;a=0;for(b=this.Lc.length;a<b;++a)c=this.Lc[a],c.aa.nu=null,c.ca=null;this.mh=!1;this.Qr()}};c.Pj=function(){if(!this.M&&this.j.length){var a,b,c;a=0;for(b=this.Lc.length;a<b;++a)c=this.Lc[a],c.ca=this.b.B.Wc(c.aa,!1,this.b.wa,c.Rq);this.Qr()}};c.Hm=function(){if(!this.M&&!this.mh&&this.b.B){var a,b,c;a=0;for(b=this.Lc.length;a<b;++a)c=this.Lc[a],c.ca=this.b.B.Wc(c.aa,
!1,this.b.wa,c.Rq);this.mh=!0}};c.Pk=function(){if(!this.M&&!this.j.length&&this.mh){var a,b,c;a=0;for(b=this.Lc.length;a<b;++a)c=this.Lc[a],this.b.B.deleteTexture(c.ca),c.ca=null;this.mh=!1}};var a=[];c.ln=function(b){var c,d,g;T(a);c=0;for(d=this.Lc.length;c<d;++c)g=this.Lc[c].aa,-1===a.indexOf(g)&&(b.drawImage(g,0,0),a.push(g))};h.N=function(a){this.type=a;this.b=a.b;a=this.type.cc[0].frames[0].Yj;this.zb?this.ka.fi(a):this.ka=new ab(a)};var b=h.N.prototype;b.K=function(){this.visible=0===this.A[0];
this.am=this.qm=!1;this.Hd=0!==this.A[3];this.za=this.yp(this.A[1])||this.type.cc[0];this.L=this.A[2];0>this.L&&(this.L=0);this.L>=this.za.frames.length&&(this.L=this.za.frames.length-1);var a=this.za.frames[this.L];this.ka.fi(a.Yj);this.Sb=a.Sb;this.Tb=a.Tb;this.Qf=this.za.speed;this.we=this.za.wn;1===this.type.cc.length&&1===this.type.cc[0].frames.length||0===this.Qf||(this.b.Jk(this),this.qm=!0);this.zb?this.hd.reset():this.hd=new Za;this.Qd=this.hd.ja;this.ne=!0;this.Fd=0;this.Ve=!0;this.ol=this.Vo=
"";this.pu=0;this.Qi=-1;this.type.Hm();var b,c,d,g,f,e,h,a=0;for(b=this.type.cc.length;a<b;a++)for(g=this.type.cc[a],c=0,d=g.frames.length;c<d;c++)f=g.frames[c],0===f.width&&(f.width=f.aa.width,f.height=f.aa.height),f.zg&&(h=f.aa,e=f.In,e.left=f.pg/h.width,e.top=f.qg/h.height,e.right=(f.pg+f.width)/h.width,e.bottom=(f.qg+f.height)/h.height,0===f.pg&&0===f.qg&&f.width===h.width&&f.height===h.height&&(f.zg=!1));this.gb=this.za.frames[this.L];this.Ui=this.gb.ca};b.Ia=function(){var a={a:this.za.Z,f:this.L,
cas:this.Qf,fs:this.Qd,ar:this.Fd,at:this.hd.ja,rt:this.we};this.ne||(a.ap=this.ne);this.Ve||(a.af=this.Ve);return a};b.Sa=function(a){var b=this.Nv(a.a);b&&(this.za=b);this.L=a.f;0>this.L&&(this.L=0);this.L>=this.za.frames.length&&(this.L=this.za.frames.length-1);this.Qf=a.cas;this.Qd=a.fs;this.Fd=a.ar;this.hd.reset();this.hd.ja=a.at;this.ne=a.hasOwnProperty("ap")?a.ap:!0;this.Ve=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.we=a.rt:this.we=this.za.wn;this.gb=this.za.frames[this.L];
this.Ui=this.gb.ca;this.ka.fi(this.gb.Yj);this.Sb=this.gb.Sb;this.Tb=this.gb.Tb};b.fl=function(a){this.L=a?0:this.za.frames.length-1;this.ne=!1;this.Vo=this.za.name;this.am=!0;this.b.trigger(Y.prototype.n.Ts,this);this.b.trigger(Y.prototype.n.Ss,this);this.am=!1;this.Fd=0};b.gl=function(){return this.hd.ja};b.Ka=function(){this.hd.add(this.b.od(this));this.ol.length&&this.Bu();0<=this.Qi&&this.mp();var a=this.hd.ja,b=this.za,c=b.frames[this.L],d=c.duration/this.Qf;this.ne&&a>=this.Qd+d&&(this.Ve?
this.L++:this.L--,this.Qd+=d,this.L>=b.frames.length&&(b.Qq?(this.Ve=!1,this.L=b.frames.length-2):b.loop?this.L=this.we:(this.Fd++,this.Fd>=b.vn?this.fl(!1):this.L=this.we)),0>this.L&&(b.Qq?(this.L=1,this.Ve=!0,b.loop||(this.Fd++,this.Fd>=b.vn&&this.fl(!0))):b.loop?this.L=this.we:(this.Fd++,this.Fd>=b.vn?this.fl(!0):this.L=this.we)),0>this.L?this.L=0:this.L>=b.frames.length&&(this.L=b.frames.length-1),a>this.Qd+b.frames[this.L].duration/this.Qf&&(this.Qd=a),a=b.frames[this.L],this.Lf(c,a),this.b.S=
!0)};b.yp=function(a){var b,c,d;b=0;for(c=this.type.cc.length;b<c;b++)if(d=this.type.cc[b],hb(d.name,a))return d;return null};b.Nv=function(a){var b,c,d;b=0;for(c=this.type.cc.length;b<c;b++)if(d=this.type.cc[b],d.Z===a)return d;return null};b.Bu=function(){var a=this.za.frames[this.L],b=this.yp(this.ol);this.ol="";!b||hb(b.name,this.za.name)&&this.ne||(this.za=b,this.Qf=b.speed,this.we=b.wn,0>this.L&&(this.L=0),this.L>=this.za.frames.length&&(this.L=this.za.frames.length-1),1===this.pu&&(this.L=
0),this.ne=!0,this.Qd=this.hd.ja,this.Ve=!0,this.Lf(a,this.za.frames[this.L]),this.b.S=!0)};b.mp=function(){var a=this.za.frames[this.L],b=this.L;this.L=K(this.Qi);0>this.L&&(this.L=0);this.L>=this.za.frames.length&&(this.L=this.za.frames.length-1);b!==this.L&&(this.Lf(a,this.za.frames[this.L]),this.Qd=this.hd.ja,this.b.S=!0);this.Qi=-1};b.Lf=function(a,b){var c=a.width,d=a.height,g=b.width,f=b.height;c!=g&&(this.width*=g/c);d!=f&&(this.height*=f/d);this.Sb=b.Sb;this.Tb=b.Tb;this.ka.fi(b.Yj);this.I();
this.gb=b;this.Ui=b.ca;c=0;for(d=this.Q.length;c<d;c++)g=this.Q[c],g.Jq&&g.Jq(a,b);this.b.trigger(Y.prototype.n.Lf,this)};b.lc=function(a){a.globalAlpha=this.opacity;var b=this.gb,c=b.zg,d=b.aa,g=this.x,f=this.y,e=this.width,h=this.height;if(0===this.k&&0<=e&&0<=h)g-=this.Sb*e,f-=this.Tb*h,this.b.uc&&(g=Math.round(g),f=Math.round(f)),c?a.drawImage(d,b.pg,b.qg,b.width,b.height,g,f,e,h):a.drawImage(d,g,f,e,h);else{this.b.uc&&(g=Math.round(g),f=Math.round(f));a.save();var k=0<e?1:-1,m=0<h?1:-1;a.translate(g,
f);1===k&&1===m||a.scale(k,m);a.rotate(this.k*k*m);g=0-this.Sb*la(e);f=0-this.Tb*la(h);c?a.drawImage(d,b.pg,b.qg,b.width,b.height,g,f,la(e),la(h)):a.drawImage(d,g,f,la(e),la(h));a.restore()}};b.Ye=function(a){this.xb(a)};b.xb=function(a){a.Hb(this.Ui);a.Qe(this.opacity);var b=this.gb,c=this.ub;if(this.b.uc){var d=Math.round(this.x)-this.x,g=Math.round(this.y)-this.y;b.zg?a.ud(c.jb+d,c.kb+g,c.Zb+d,c.$b+g,c.Pb+d,c.Qb+g,c.Nb+d,c.Ob+g,b.In):a.sg(c.jb+d,c.kb+g,c.Zb+d,c.$b+g,c.Pb+d,c.Qb+g,c.Nb+d,c.Ob+g)}else b.zg?
a.ud(c.jb,c.kb,c.Zb,c.$b,c.Pb,c.Qb,c.Nb,c.Ob,b.In):a.sg(c.jb,c.kb,c.Zb,c.$b,c.Pb,c.Qb,c.Nb,c.Ob)};b.Sv=function(a){var b=this.gb,c,d;c=0;for(d=b.$l.length;c<d;c++)if(hb(a,b.$l[c][0]))return c;return-1};b.ff=function(a,b){var c=this.gb,d=c.$l,g;C(a)?g=this.Sv(a):g=a-1;g=K(g);if(0>g||g>=d.length)return b?this.x:this.y;var f=(d[g][1]-c.Sb)*this.width,d=d[g][2],d=(d-c.Tb)*this.height,c=Math.cos(this.k);g=Math.sin(this.k);var e=f*c-d*g,d=d*c+f*g,f=e+this.x,d=d+this.y;return b?f:d};var g=null,d=new da,
f=!1,v=[],u=new Q(0,0,0,0);c.finish=function(a){if(f){if(a){var b=this.b.Qa().Za.rc;a=g.ba();var c=d.Cd(),e,h;if(a.fa){a.fa=!1;T(a.j);e=0;for(h=c.length;e<h;++e)a.j[e]=c[e];if(b)for(T(a.W),e=0,h=g.j.length;e<h;++e)c=g.j[e],d.contains(c)||a.W.push(c)}else if(b)for(b=a.j.length,e=0,h=c.length;e<h;++e)a.j[b+e]=c[e],Ha(a.W,c[e]);else Ca(a.j,c);g.oe()}d.clear();f=!1}};q.prototype.Js=function(a){return m.call(this,a,0,0)};q.prototype.Ks=function(a,b,c){return m.call(this,a,b,c)};q.prototype.Ss=function(a){return hb(this.Vo,
a)};q.prototype.Ts=function(){return!0};q.prototype.Lf=function(){return!0};q.prototype.Es=function(){return 0>this.height};h.n=new q;k.prototype.Qt=function(a,b,c){if(a&&b&&(b=this.b.ul(a,b,this.ff(c,!0),this.ff(c,!1)))){"undefined"!==typeof b.k&&(b.k=this.k,b.I());this.b.oc++;var d,g,f;this.b.trigger(Object.getPrototypeOf(a.qa).n.Ue,b);if(b.ob)for(d=0,g=b.siblings.length;d<g;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.qa).n.Ue,f);this.b.oc--;d=this.b.Pv();c=!1;if(ia(d.U.Spawn_LastExec)||
d.U.Spawn_LastExec<this.b.df)c=!0,d.U.Spawn_LastExec=this.b.df;if(a!=this.type&&(a=a.ba(),a.fa=!1,c?(T(a.j),a.j[0]=b):a.j.push(b),b.ob))for(d=0,g=b.siblings.length;d<g;d++)f=b.siblings[d],a=f.type.ba(),a.fa=!1,c?(T(a.j),a.j[0]=f):a.j.push(f)}};k.prototype.St=function(){this.ne=!1};k.prototype.ut=function(a){this.Qi=a;this.qm||(this.b.Jk(this),this.qm=!0);this.am||this.mp()};k.prototype.xt=function(a){a=la(this.height)*(0===a?-1:1);this.height!==a&&(this.height=a,this.I())};k.prototype.It=function(a){var b=
this.gb,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.I()};h.u=new k;r.prototype.no=function(a,b){a.D(this.ff(b,!0))};r.prototype.Bs=function(a,b){a.D(this.ff(b,!1))};h.F=new r})();function nc(e){this.b=e}
(function(){function e(){return b.length?b.pop():{}}function q(a){var c,f;c=0;for(f=a.length;c<f;c++)b.push(a[c]);T(a)}function m(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function k(){}function r(){}var h=nc.prototype;h.K=function(){h.u.Mo=function(a){this.width!==a&&(this.width=a,this.Se=!0,this.I())}};h.R=function(a){this.qa=a;this.b=a.b};var c=h.R.prototype;c.K=function(){};c.Xh=function(){if(!this.M){var a,b,c;a=0;for(b=this.j.length;a<b;a++)c=this.j[a],c.rd=
null,c.yf=null,c.hc=null}};h.N=function(a){this.type=a;this.b=a.b;this.zb?T(this.Vc):this.Vc=[];this.Se=!0};c=h.N.prototype;c.K=function(){this.text=this.A[0];this.visible=0===this.A[1];this.font=this.A[2];this.color=this.A[3];this.oj=this.A[4];this.Sk=this.A[5];this.ho=0===this.A[7];this.Cm=this.Aj=this.width;this.zj=this.height;this.Hh=this.A[8];this.fj=this.Vf="";this.Cr=this.Dr=this.Ne=0;this.kx();this.hc=this.yf=this.rd=null;this.Rm=!1;this.Ch=this.b.vc;this.zb?this.vd.set(0,0,1,1):this.vd=new Q(0,
0,1,1);this.b.B&&this.b.Jk(this)};c.kx=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Ne=parseInt(a[b].substr(0,a[b].length-2));this.ai=Math.ceil(this.Ne/72*96)+4;0<b&&(this.fj=a[b-1]);this.Vf=a[b+1];for(b+=2;b<a.length;b++)this.Vf+=" "+a[b];break}};c.Ia=function(){return{t:this.text,f:this.font,c:this.color,ha:this.oj,va:this.Sk,wr:this.ho,lho:this.Hh,fn:this.Vf,fs:this.fj,ps:this.Ne,pxh:this.ai,tw:this.Dr,th:this.Cr,lrt:this.Ch}};c.Sa=
function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.oj=a.ha;this.Sk=a.va;this.ho=a.wr;this.Hh=a.lho;this.Vf=a.fn;this.fj=a.fs;this.Ne=a.ps;this.ai=a.pxh;this.Dr=a.tw;this.Cr=a.th;this.Ch=a.lrt;this.Se=!0;this.Cm=this.Aj=this.width;this.zj=this.height};c.Ka=function(){if(this.b.B&&this.hc&&300<=this.b.vc-this.Ch){var a=this.q;this.ra();var b=this.ua;if(b.right<a.la||b.bottom<a.ma||b.left>a.oa||b.top>a.na)this.b.B.deleteTexture(this.hc),this.rd=this.yf=this.hc=null}};c.Cf=function(){this.rd=
this.yf=null;this.b.B&&this.hc&&this.b.B.deleteTexture(this.hc);this.hc=null};c.Zx=function(){this.font=this.fj+" "+this.Ne.toString()+"pt "+this.Vf;this.Se=!0;this.b.S=!0};c.lc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=Math.abs(this.q.Rb()),a.save(),a.scale(c,c));if(this.Se||this.width!==this.Cm)this.type.qa.$t(this.text,this.Vc,a,this.width,this.ho),this.Se=!1,this.Cm=this.width;this.ra();var c=b?0:this.ub.jb,e=b?0:this.ub.kb;
this.b.uc&&(c=c+.5|0,e=e+.5|0);0===this.k||b||(a.save(),a.translate(c,e),a.rotate(this.k),e=c=0);var h=e+this.height,k=this.ai,k=k+this.Hh,m,q;1===this.Sk?e+=Math.max(this.height/2-this.Vc.length*k/2,0):2===this.Sk&&(e+=Math.max(this.height-this.Vc.length*k-2,0));for(q=0;q<this.Vc.length&&!(m=c,1===this.oj?m=c+(this.width-this.Vc[q].width)/2:2===this.oj&&(m=c+(this.width-this.Vc[q].width)),a.fillText(this.Vc[q].text,m,e),e+=k,e>=h-k);q++);(0!==this.k||b)&&a.restore();this.Ch=this.b.vc};c.xb=function(a){if(!(1>
this.width||1>this.height)){var b=this.Se||this.Rm;this.Rm=!1;var c=this.q.Rb(),e=this.q.fc(),h=this.vd,k=c*this.width,m=c*this.height,q=Math.ceil(k),n=Math.ceil(m),p=Math.abs(q),r=Math.abs(n),y=this.b.P/2,R=this.b.O/2;this.yf||(this.rd=document.createElement("canvas"),this.rd.width=p,this.rd.height=r,this.Aj=p,this.zj=r,b=!0,this.yf=this.rd.getContext("2d"));if(p!==this.Aj||r!==this.zj)this.rd.width=p,this.rd.height=r,this.hc&&(a.deleteTexture(this.hc),this.hc=null),b=!0;b&&(this.yf.clearRect(0,
0,p,r),this.lc(this.yf,!0),this.hc||(this.hc=a.kc(p,r,this.b.wa,this.b.Td)),a.ey(this.rd,this.hc,this.b.Td));this.Aj=p;this.zj=r;a.Hb(this.hc);a.Qe(this.opacity);a.Fc();a.translate(-y,-R);a.wc();var G=this.ub,b=this.q.Da(G.jb,G.kb,!0,!0),p=this.q.Da(G.jb,G.kb,!1,!0),r=this.q.Da(G.Zb,G.$b,!0,!0),y=this.q.Da(G.Zb,G.$b,!1,!0),R=this.q.Da(G.Pb,G.Qb,!0,!0),D=this.q.Da(G.Pb,G.Qb,!1,!0),A=this.q.Da(G.Nb,G.Ob,!0,!0),G=this.q.Da(G.Nb,G.Ob,!1,!0);if(this.b.uc||0===this.k&&0===e)var I=(b+.5|0)-b,J=(p+.5|0)-
p,b=b+I,p=p+J,r=r+I,y=y+J,R=R+I,D=D+J,A=A+I,G=G+J;0===this.k&&0===e?(r=b+q,y=p,R=r,D=p+n,A=b,G=D,h.right=1,h.bottom=1):(h.right=k/q,h.bottom=m/n);a.ud(b,p,r,y,R,D,A,G,h);a.Fc();a.scale(c,c);a.ik(-this.q.fc());a.translate((this.q.la+this.q.oa)/-2,(this.q.ma+this.q.na)/-2);a.wc();this.Ch=this.b.vc}};var a=[];h.Xt=function(b){T(a);for(var c="",f,e=0;e<b.length;)if(f=b.charAt(e),"\n"===f)c.length&&(a.push(c),c=""),a.push("\n"),++e;else if(" "===f||"\t"===f||"-"===f){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+=f,e++);c.length&&a.push(c)};var b=[];h.$t=function(a,b,c,h,k){if(a&&a.length)if(2>=h)q(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var l=c.measureText(a).width;if(l<=h){q(b);b.push(e());b[0].text=a;b[0].width=l;return}}this.au(a,b,c,h,k)}else q(b)};h.au=function(c,d,f,h,k){k&&(this.Xt(c),c=a);var l="",q,t,n,p=0;for(n=0;n<c.length;n++)"\n"===c[n]?(p>=d.length&&d.push(e()),l=m(l),t=d[p],t.text=l,t.width=f.measureText(l).width,
p++,l=""):(q=l,l+=c[n],t=f.measureText(l).width,t>=h&&(p>=d.length&&d.push(e()),q=m(q),t=d[p],t.text=q,t.width=f.measureText(q).width,p++,l=c[n],k||" "!==l||(l="")));l.length&&(p>=d.length&&d.push(e()),l=m(l),t=d[p],t.text=l,t.width=f.measureText(l).width,p++);for(n=p;n<d.length;n++)b.push(d[n]);d.length=p};h.n=new function(){};k.prototype.Jt=function(a){B(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Se=!0,this.b.S=!0)};k.prototype.as=function(a){B(a)&&(a=
Math.round(1E10*a)/1E10);if(a=a.toString())this.text+=a,this.Se=!0,this.b.S=!0};k.prototype.zt=function(a){this.Ne!==a&&(this.Ne=a,this.ai=Math.ceil(this.Ne/72*96)+4,this.Zx())};k.prototype.yt=function(a){a="rgb("+va(a).toString()+","+wa(a).toString()+","+xa(a).toString()+")";a!==this.color&&(this.color=a,this.Rm=!0,this.b.S=!0)};h.u=new k;r.prototype.Wt=function(a){var b=0,c,e,h;c=0;for(e=this.Vc.length;c<e;c++)h=this.Vc[c].width,b<h&&(b=h);a.ga(b)};r.prototype.Vt=function(a){a.ga(this.Vc.length*
(this.ai+this.Hh)-this.Hh)};h.F=new r})();function Z(e){this.b=e}
(function(){function e(a){g=a.x;d=a.y;f=a.z}function q(a,b,c,d){var f;f=v.length?v.pop():new m;f.init(a,b,c,d);return f}function m(){this.ji=this.id=this.rf=this.qf=this.y=this.x=this.Ak=this.zk=this.Am=this.time=this.On=0;this.oi=this.Nk=!1}function k(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function r(){}function h(){}var c=Z.prototype;c.R=function(a){this.qa=a;
this.b=a.b};c.R.prototype.K=function(){};c.N=function(a){this.type=a;this.b=a.b;this.touches=[];this.Pm=!1};var a=c.N.prototype,b={left:0,top:0};a.eh=function(a){var b,c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var g=0,d=0,f=0,v=[];m.prototype.init=function(a,b,c,d){var f=Va();this.On=this.Am=this.time=f;this.zk=a;this.Ak=b;this.x=a;this.y=b;this.qf=a;this.rf=b;this.pressure=this.height=this.width=0;this.id=c;this.ji=d;this.oi=this.Nk=!1};m.prototype.update=
function(a,b,c,d,f,g){this.Am=this.time;this.time=a;this.qf=this.x;this.rf=this.y;this.x=b;this.y=c;this.width=d;this.height=f;this.pressure=g;!this.oi&&15<=Ra(this.zk,this.Ak,this.x,this.y)&&(this.oi=!0)};m.prototype.Uw=function(a,b){!this.Nk&&500<=Va()-this.On&&!this.oi&&15>Ra(this.zk,this.Ak,this.x,this.y)&&(this.Nk=!0,a.Bd=this.ji,a.Gg=this.id,a.$f=b,a.b.trigger(Z.prototype.n.ct,a),a.Jd=this.x,a.Kd=this.y,a.b.trigger(Z.prototype.n.dt,a),a.$f=0)};var u=-1E3,l=-1E3,E=-1E4;m.prototype.wq=function(a,
b){if(!this.Nk){var c=Va();333>=c-this.On&&!this.oi&&15>Ra(this.zk,this.Ak,this.x,this.y)&&(a.Bd=this.ji,a.Gg=this.id,a.$f=b,666>=c-E&&25>Ra(u,l,this.x,this.y)?(a.b.trigger(Z.prototype.n.Ys,a),a.Jd=this.x,a.Kd=this.y,a.b.trigger(Z.prototype.n.Zs,a),l=u=-1E3,E=-1E4):(a.b.trigger(Z.prototype.n.jt,a),a.Jd=this.x,a.Kd=this.y,a.b.trigger(Z.prototype.n.kt,a),u=this.x,l=this.y,E=c),a.$f=0)}};a.K=function(){this.Kw=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.$f=this.Gg=this.Bd=
this.Kd=this.Jd=this.Ro=this.Qo=this.Po=this.du=this.cu=this.bu=this.Sj=this.Rj=this.Qj=0;this.by=0!==this.A[0];var a=0<this.b.Eb?document:this.b.canvas,b=document;this.b.Be?b=a=window.Canvas:this.b.Cc&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Iq(a)},!1),a.addEventListener("pointermove",function(a){c.Hq(a)},!1),b.addEventListener("pointerup",function(a){c.Oj(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Oj(a,!0)},!1),this.b.canvas&&
(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.Iq(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Hq(a)},!1),b.addEventListener("MSPointerUp",
function(a){c.Oj(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Oj(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Lq(a)},!1),a.addEventListener("touchmove",function(a){c.Kq(a)},!1),b.addEventListener("touchend",function(a){c.bn(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.bn(a,!0)},
!1));if(this.Kw){var d=function(a){a=a.reading;c.Po=a.accelerationX;c.Qo=a.accelerationY;c.Ro=a.accelerationZ},f=function(a){a=a.reading;c.Qj=a.yawDegrees;c.Rj=a.pitchDegrees;c.Sj=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",
function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.Qj=a.alpha||0;c.Rj=a.beta||0;c.Sj=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.bu=a.accelerationIncludingGravity.x||0,c.cu=a.accelerationIncludingGravity.y||
0,c.du=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Po=a.acceleration.x||0,c.Qo=a.acceleration.y||0,c.Ro=a.acceleration.z||0)},!1);this.by&&!this.b.Ma&&(jQuery(document).mousemove(function(a){c.$m(a)}),jQuery(document).mousedown(function(a){c.Zm(a)}),jQuery(document).mouseup(function(a){c.an(a)}));!this.b.vj&&this.b.Dc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(e,null,{frequency:40});this.b.Vx(this)};a.Hq=function(a){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var c=this.eh(a.pointerId),d=Va();if(0<=c){var f=this.b.Ma?b:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,a.pageX-f.left,a.pageY-f.top,a.width||0,a.height||0,a.pressure||0)}}};a.Iq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ib(a)&&a.preventDefault();var c=this.b.Ma?b:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;Va();
this.Bd=this.touches.length;this.Gg=a.pointerId;this.touches.push(q(d,c,a.pointerId,this.Bd));this.b.ab=!0;this.b.trigger(Z.prototype.n.Ao,this);this.b.trigger(Z.prototype.n.Ho,this);this.Jd=d;this.Kd=c;this.b.trigger(Z.prototype.n.Go,this);this.b.ab=!1}};a.Oj=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ib(a)&&a.preventDefault();var c=this.eh(a.pointerId);this.Bd=0<=c?this.touches[c].ji:-1;this.Gg=0<=c?this.touches[c].id:-1;this.b.ab=!0;this.b.trigger(Z.prototype.n.zo,
this);this.b.trigger(Z.prototype.n.Fo,this);0<=c&&(b||this.touches[c].wq(this,c),100>v.length&&v.push(this.touches[c]),this.touches.splice(c,1));this.b.ab=!1}};a.Kq=function(a){a.preventDefault&&a.preventDefault();var c=Va(),d,f,g,e;d=0;for(f=a.changedTouches.length;d<f;d++)if(g=a.changedTouches[d],e=this.eh(g.identifier),0<=e){var h=this.b.Ma?b:jQuery(this.b.canvas).offset();e=this.touches[e];2>c-e.time||e.update(c,g.pageX-h.left,g.pageY-h.top,2*(g.cz||g.mz||g.Xy||g.$y||0),2*(g.dz||g.nz||g.Yy||g.az||
0),g.Qy||g.lz||g.Wy||g.Zy||0)}};a.Lq=function(a){a.preventDefault&&ib(a)&&a.preventDefault();var c=this.b.Ma?b:jQuery(this.b.canvas).offset();Va();this.b.ab=!0;var d,f,g,e;d=0;for(f=a.changedTouches.length;d<f;d++)if(g=a.changedTouches[d],e=this.eh(g.identifier),-1===e){e=g.pageX-c.left;var h=g.pageY-c.top;this.Bd=this.touches.length;this.Gg=g.identifier;this.touches.push(q(e,h,g.identifier,this.Bd));this.b.trigger(Z.prototype.n.Ao,this);this.b.trigger(Z.prototype.n.Ho,this);this.Jd=e;this.Kd=h;this.b.trigger(Z.prototype.n.Go,
this)}this.b.ab=!1};a.bn=function(a,b){a.preventDefault&&ib(a)&&a.preventDefault();this.b.ab=!0;var c,d,f;c=0;for(d=a.changedTouches.length;c<d;c++)f=a.changedTouches[c],f=this.eh(f.identifier),0<=f&&(this.Bd=this.touches[f].ji,this.Gg=this.touches[f].id,this.b.trigger(Z.prototype.n.zo,this),this.b.trigger(Z.prototype.n.Fo,this),b||this.touches[f].wq(this,f),100>v.length&&v.push(this.touches[f]),this.touches.splice(f,1));this.b.ab=!1};a.gl=function(){return this.b.Dc&&0===this.Qj&&0!==f?90*f:this.Qj};
a.Py=function(){return this.b.Dc&&0===this.Rj&&0!==d?90*d:this.Rj};a.Vy=function(){return this.b.Dc&&0===this.Sj&&0!==g?90*g:this.Sj};a.Zm=function(a){k(a)||(this.Lq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.Pm=!0)};a.$m=function(a){this.Pm&&!k(a)&&this.Kq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.an=function(a){a.preventDefault&&this.b.nj&&!this.b.Td&&a.preventDefault();this.b.nj=!0;k(a)||(this.bn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),
this.Pm=!1)};a.Dg=function(){var a,b,c,d=Va();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Am=d),c.Uw(this,a)};r.prototype.Ho=function(){return!0};r.prototype.Fo=function(){return!0};r.prototype.Go=function(a){return a?this.b.li(a,this.Jd,this.Kd):!1};r.prototype.Ao=function(a){a=Math.floor(a);return a===this.Bd};r.prototype.zo=function(a){a=Math.floor(a);return a===this.Bd};r.prototype.ct=function(){return!0};r.prototype.jt=function(){return!0};r.prototype.Ys=function(){return!0};
r.prototype.dt=function(a){return a?this.b.li(a,this.Jd,this.Kd):!1};r.prototype.kt=function(a){return a?this.b.li(a,this.Jd,this.Kd):!1};r.prototype.Zs=function(a){return a?this.b.li(a,this.Jd,this.Kd):!1};c.n=new r;h.prototype.Ng=function(a,b){var c=this.$f;if(0>c||c>=this.touches.length)a.D(0);else{var d,f,g,e,h;ia(b)?(d=this.b.pd(0),f=d.scale,g=d.Cb,e=d.Ub,h=d.k,d.scale=1,d.Cb=1,d.Ub=1,d.k=0,a.D(d.Xa(this.touches[c].x,this.touches[c].y,!0)),d.scale=f,d.Cb=g,d.Ub=e,d.k=h):(d=B(b)?this.b.pd(b):
this.b.Yf(b))?a.D(d.Xa(this.touches[c].x,this.touches[c].y,!0)):a.D(0)}};h.prototype.Og=function(a,b){var c=this.$f;if(0>c||c>=this.touches.length)a.D(0);else{var d,f,g,e,h;ia(b)?(d=this.b.pd(0),f=d.scale,g=d.Cb,e=d.Vb,h=d.k,d.scale=1,d.Cb=1,d.Vb=1,d.k=0,a.D(d.Xa(this.touches[c].x,this.touches[c].y,!1)),d.scale=f,d.Cb=g,d.Vb=e,d.k=h):(d=B(b)?this.b.pd(b):this.b.Yf(b))?a.D(d.Xa(this.touches[c].x,this.touches[c].y,!1)):a.D(0)}};c.F=new h})();function oc(e){this.b=e}
(function(){function e(){}var q=oc.prototype;q.R=function(e){this.behavior=e;this.b=e.b};q.R.prototype.K=function(){};q.N=function(e,m){this.type=e;this.behavior=e.behavior;this.d=m;this.b=e.b};var m=q.N.prototype;m.K=function(){var e=this.A[0];this.Aa=this.A[1];this.nd=this.A[2];this.mu=0!==this.A[3];this.Fn=0!==this.A[4];this.J=Math.cos(this.d.k)*e;this.H=Math.sin(this.d.k)*e;this.qf=this.d.x;this.rf=this.d.y;this.pc=this.d.k;this.Lk=0;this.enabled=0!==this.A[5]};m.Ia=function(){return{acc:this.Aa,
g:this.nd,dx:this.J,dy:this.H,lx:this.qf,ly:this.rf,lka:this.pc,t:this.Lk,e:this.enabled}};m.Sa=function(e){this.Aa=e.acc;this.nd=e.g;this.J=e.dx;this.H=e.dy;this.qf=e.lx;this.rf=e.ly;this.pc=e.lka;this.Lk=e.t;this.enabled=e.e};m.Ka=function(){if(this.enabled){var e=this.b.od(this.d),m,h;this.d.k!==this.pc&&(this.Fn&&(m=Ra(0,0,this.J,this.H),this.J=Math.cos(this.d.k)*m,this.H=Math.sin(this.d.k)*m),this.pc=this.d.k);0!==this.Aa&&(m=Ra(0,0,this.J,this.H),h=0===this.J&&0===this.H?this.d.k:Na(0,0,this.J,
this.H),m+=this.Aa*e,0>m&&(m=0),this.J=Math.cos(h)*m,this.H=Math.sin(h)*m);0!==this.nd&&(this.H+=this.nd*e);this.qf=this.d.x;this.rf=this.d.y;if(0!==this.J||0!==this.H)if(this.d.x+=this.J*e,this.d.y+=this.H*e,this.Lk+=Ra(0,0,this.J*e,this.H*e),this.Fn&&(this.d.k=Na(0,0,this.J,this.H),this.d.I(),this.pc=this.d.k),this.d.I(),this.mu&&(m=this.b.dd(this.d)))this.b.ci(this.d,m),m=Ra(0,0,this.J,this.H),h=this.b.ou(this.d,this.qf,this.rf),this.J=Math.cos(h)*m,this.H=Math.sin(h)*m,this.d.x+=this.J*e,this.d.y+=
this.H*e,this.d.I(),this.Fn&&(this.pc=this.d.k=h,this.d.I()),this.b.qn(this.d,this.J/m,this.H/m,Math.max(2.5*m*e,30))||this.b.Wq(this.d,100)}};q.n=new function(){};e.prototype.Fi=function(e){var m=Na(0,0,this.J,this.H);this.J=Math.cos(m)*e;this.H=Math.sin(m)*e};e.prototype.Jo=function(e){this.nd=e};q.u=new e;q.F=new function(){}})();function pc(e){this.b=e}
(function(){function e(){}var q=pc.prototype;q.R=function(e){this.behavior=e;this.b=e.b};q.R.prototype.K=function(){};q.N=function(e,m){this.type=e;this.behavior=e.behavior;this.d=m;this.b=e.b;this.sk=this.rk=this.qk=this.tk=this.Zl=this.di=this.Dh=this.Yg=this.pi=!1;this.zm=this.ym=this.xm=this.Bm=-1;this.H=this.J=0};var m=q.N.prototype;m.K=function(){this.vf=this.A[0];this.Aa=this.A[1];this.ld=this.A[2];this.Bl=this.A[3];this.el=this.A[4];this.wu=1===this.A[5];this.enabled=0!==this.A[6];this.wu&&
!this.b.Ma&&(jQuery(document).keydown(function(e){return function(m){e.Xm(m)}}(this)),jQuery(document).keyup(function(e){return function(m){e.Ym(m)}}(this)))};m.Ia=function(){return{dx:this.J,dy:this.H,enabled:this.enabled,maxspeed:this.vf,acc:this.Aa,dec:this.ld,ignoreInput:this.Zl}};m.Sa=function(e){this.J=e.dx;this.H=e.dy;this.enabled=e.enabled;this.vf=e.maxspeed;this.Aa=e.acc;this.ld=e.dec;this.Zl=e.ignoreInput;this.sk=this.rk=this.qk=this.tk=this.di=this.Dh=this.Yg=this.pi=!1;this.zm=this.ym=
this.xm=this.Bm=-1};m.Xm=function(e){var m=this.b.vc;switch(e.which){case 37:e.preventDefault();this.ym<m&&(this.Dh=!0);break;case 38:e.preventDefault();this.Bm<m&&(this.pi=!0);break;case 39:e.preventDefault();this.zm<m&&(this.di=!0);break;case 40:e.preventDefault(),this.xm<m&&(this.Yg=!0)}};m.Ym=function(e){var m=this.b.vc;switch(e.which){case 37:e.preventDefault();this.Dh=!1;this.ym=m;break;case 38:e.preventDefault();this.pi=!1;this.Bm=m;break;case 39:e.preventDefault();this.di=!1;this.zm=m;break;
case 40:e.preventDefault(),this.Yg=!1,this.xm=m}};m.Le=function(){this.di=this.Dh=this.Yg=this.pi=!1};m.Ka=function(){var e=this.b.od(this.d),m=this.Dh||this.rk,h=this.di||this.sk,c=this.pi||this.tk,a=this.Yg||this.qk;this.qk=this.tk=this.sk=this.rk=!1;if(this.enabled){var b=this.b.dd(this.d);if(b&&(this.b.ci(this.d,b),!this.b.Wq(this.d)))return;this.Zl&&(a=c=h=m=!1);0===this.Bl?h=m=!1:1===this.Bl&&(a=c=!1);2===this.Bl&&(c||a)&&(h=m=!1);m==h&&(0>this.J?(this.J+=this.ld*e,0<this.J&&(this.J=0)):0<this.J&&
(this.J-=this.ld*e,0>this.J&&(this.J=0)));c==a&&(0>this.H?(this.H+=this.ld*e,0<this.H&&(this.H=0)):0<this.H&&(this.H-=this.ld*e,0>this.H&&(this.H=0)));m&&!h&&(this.J=0<this.J?this.J-(this.Aa+this.ld)*e:this.J-this.Aa*e);h&&!m&&(this.J=0>this.J?this.J+(this.Aa+this.ld)*e:this.J+this.Aa*e);c&&!a&&(this.H=0<this.H?this.H-(this.Aa+this.ld)*e:this.H-this.Aa*e);a&&!c&&(this.H=0>this.H?this.H+(this.Aa+this.ld)*e:this.H+this.Aa*e);if(0!==this.J||0!==this.H){Math.sqrt(this.J*this.J+this.H*this.H)>this.vf&&
(b=Math.atan2(this.H,this.J),this.J=this.vf*Math.cos(b),this.H=this.vf*Math.sin(b));h=this.d.x;c=this.d.y;m=this.d.k;this.d.x+=this.J*e;this.d.I();if(b=this.b.dd(this.d))this.b.qn(this.d,0>this.J?1:-1,0,Math.abs(Math.floor(this.J*e)))||(this.d.x=h),this.J=0,this.d.I(),this.b.ci(this.d,b);this.d.y+=this.H*e;this.d.I();if(b=this.b.dd(this.d))this.b.qn(this.d,0,0>this.H?1:-1,Math.abs(Math.floor(this.H*e)))||(this.d.y=c),this.H=0,this.d.I(),this.b.ci(this.d,b);e=gb(this.J);b=gb(this.H);0===e&&0===b||
!this.d.type.qa.Mw||(1===this.el?this.d.k=Ma(90*Math.round(Ja(Math.atan2(b,e))/90)):2===this.el?this.d.k=Ma(45*Math.round(Ja(Math.atan2(b,e))/45)):3===this.el&&(this.d.k=Math.atan2(b,e)));this.d.I();this.d.k!=m&&(b=this.b.dd(this.d))&&(this.d.k=m,this.d.I(),this.b.ci(this.d,b))}}};q.n=new function(){};e.prototype.Fi=function(e){0>e&&(e=0);e>this.vf&&(e=this.vf);var m=Math.atan2(this.H,this.J);this.J=e*Math.cos(m);this.H=e*Math.sin(m)};e.prototype.Pt=function(e){switch(e){case 0:this.rk=!0;break;case 1:this.sk=
!0;break;case 2:this.tk=!0;break;case 3:this.qk=!0}};q.u=new e;q.F=new function(){}})();function qc(e){this.b=e}
(function(){function e(){}function q(){}var m=qc.prototype;m.R=function(e){this.behavior=e;this.b=e.b};m.R.prototype.K=function(){};m.N=function(e,h){this.type=e;this.behavior=e.behavior;this.d=h;this.b=e.b};var k=m.N.prototype;k.K=function(){this.bl=1===this.A[0];this.kr=!1;this.bh=this.A[1];this.Kg=this.A[2];this.aj=this.A[3];this.yu=this.A[4];this.fb=this.bl?0:3;this.zb?this.Hc.reset():this.Hc=new Za;this.Ie=this.d.opacity?this.d.opacity:1;this.bl&&(0===this.bh?(this.fb=1,0===this.Kg&&(this.fb=
2)):(this.d.opacity=0,this.b.S=!0))};k.Ia=function(){return{fit:this.bh,wt:this.Kg,fot:this.aj,s:this.fb,st:this.Hc.ja,mo:this.Ie}};k.Sa=function(e){this.bh=e.fit;this.Kg=e.wt;this.aj=e.fot;this.fb=e.s;this.Hc.reset();this.Hc.ja=e.st;this.Ie=e.mo};k.Ka=function(){this.Hc.add(this.b.od(this.d));0===this.fb&&(this.d.opacity=this.Hc.ja/this.bh*this.Ie,this.b.S=!0,this.d.opacity>=this.Ie&&(this.d.opacity=this.Ie,this.fb=1,this.Hc.reset(),this.b.trigger(qc.prototype.n.so,this.d)));1===this.fb&&this.Hc.ja>=
this.Kg&&(this.fb=2,this.Hc.reset(),this.b.trigger(qc.prototype.n.lt,this.d));2===this.fb&&0!==this.aj&&(this.d.opacity=this.Ie-this.Hc.ja/this.aj*this.Ie,this.b.S=!0,0>this.d.opacity&&(this.d.opacity=0,this.fb=3,this.Hc.reset(),this.b.trigger(qc.prototype.n.$s,this.d),1===this.yu&&this.b.Dd(this.d)))};k.op=function(){this.fb=0;this.Hc.reset();0===this.bh?(this.fb=1,0===this.Kg&&(this.fb=2)):(this.d.opacity=0,this.b.S=!0)};e.prototype.$s=function(){return!0};e.prototype.so=function(){return!0};e.prototype.lt=
function(){return!0};m.n=new e;q.prototype.Rt=function(){this.bl||this.kr||(this.Ie=this.d.opacity?this.d.opacity:1,this.kr=!0);3===this.fb&&this.op()};q.prototype.qt=function(){this.op()};q.prototype.Mt=function(e){0>e&&(e=0);this.Kg=e};m.u=new q;m.F=new function(){}})();function rc(e){this.b=e}
(function(){function e(){}function q(){}var m=rc.prototype;m.R=function(e){this.behavior=e;this.b=e.b};m.R.prototype.K=function(){};m.N=function(e,h){this.type=e;this.behavior=e.behavior;this.d=h;this.b=e.b};var k=m.N.prototype;k.K=function(){this.Ad=this.be=this.fb=this.Vm=this.cn=0};k.Ia=function(){return{ontime:this.cn,offtime:this.Vm,stage:this.fb,stagetimeleft:this.be,timeleft:this.Ad}};k.Sa=function(e){this.cn=e.ontime;this.Vm=e.offtime;this.fb=e.stage;this.be=e.stagetimeleft;this.Ad=e.timeleft;
null===this.Ad&&(this.Ad=Infinity)};k.Ka=function(){if(!(0>=this.Ad)){var e=this.b.od(this.d);this.Ad-=e;0>=this.Ad?(this.Ad=0,this.d.visible=!0,this.b.S=!0,this.b.trigger(rc.prototype.n.bt,this.d)):(this.be-=e,0>=this.be&&(0===this.fb?(this.d.visible=!1,this.fb=1,this.be+=this.Vm):(this.d.visible=!0,this.fb=0,this.be+=this.cn),this.b.S=!0))}};e.prototype.bt=function(){return!0};m.n=new e;q.prototype.Tt=function(){this.Ad=0;this.d.visible=!0;this.b.S=!0};m.u=new q;m.F=new function(){}})();
function sc(e){this.b=e}
(function(){function e(){}var q=sc.prototype;q.R=function(e){this.behavior=e;this.b=e.b};q.R.prototype.K=function(){this.Uh=[]};q.N=function(e,c){this.type=e;this.behavior=e.behavior;this.d=c;this.b=e.b};var m=q.N.prototype;m.K=function(){this.enabled=0!==this.A[0];this.ng=this.A[1];this.Um=this.A[2];this.ah=-1};m.Ka=function(){this.enabled&&(0===this.Um?this.Yk():this.Yk(this.type.Uh))};m.Bi=function(e){e!=this.d.width&&(this.d.width=e,this.d.I())};var k=[];m.bw=function(e){k.length=0;if(null==e){var c=
this.b.Ln;c&&Fa(k,c.Rh.Cd())}else for(var a=e.length,c=0;c<a;c++)Fa(k,e[c].j);e=this.d.width;this.Bi(1);a=k.length;for(c=a-1;0<=c;c--)this.b.de(this.d,k[c])&&Aa(k,c);this.Bi(e);return k};m.Rn=function(e){var c,a=e.length;for(c=0;c<a;c++)if(this.b.de(this.d,e[c]))return e[c].uid;return null};m.Yk=function(e){e=this.bw(e);0===e.length?(this.Bi(this.ng),this.ah=-1):(this.vu(e),this.uw(e))};m.vu=function(e){if(null!==this.Rn(e))for(var c=this.d.width,a=1,b;;){c-=a;b=0>c;this.Bi(b?0:c);if(b)break;if(null==
this.Rn(e))break;else a*=2}};m.uw=function(e){for(var c=this.d.width,a=1,b;;){c+=a;b=c>this.ng;this.Bi(b?this.ng:c);if(b){this.ah=-1;break}b=this.Rn(e);if(null!=b)if(1===a){this.ah=b;break}else c-=a,a=1;else for(a*=2;c+a>this.ng&&(a/=2,1!==a););}};m.gl=function(e,c,a,b){e=this.b.ih(e);if(null==e)return 0;c=Na(e.x,e.y,c,a)-e.k;c=V(c);a=Math.atan2(e.height,e.width);a=V(a);e=e.k;if(c>a&&c<3.141592653589793-a||c>3.141592653589793+a&&c<6.283185307179586-a)e+=1.5707963268;b&&(e=La(e));return e};m.Ia=function(){var e,
c,a=[];e=0;for(c=this.type.Uh.length;e<c;e++)a.push(this.type.Uh[e].Z);return{en:this.enabled,mw:this.ng,hU:this.ah,om:this.Um,obs:a}};m.Sa=function(e){this.enabled=e.en;this.ng=e.mw;this.ah=e.hU;this.Um=e.om;T(this.type.Uh);e=e.obs;var c,a,b;c=0;for(a=e.length;c<a;c++)(b=this.b.Zf(e[c]))&&this.type.Uh.push(b)};q.n=new function(){};q.u=new e;var r=[];e.prototype.pt=function(e){r.length=0;e&&r.push(e);this.Yk(r)};q.F=new function(){}})();function tc(e){this.b=e}
(function(){function e(){}function q(){}var m=tc.prototype;m.R=function(e){this.behavior=e;this.b=e.b};m.R.prototype.K=function(){Y?(this.gh=Y.prototype.F.no,this.hh=Y.prototype.F.Bs):this.hh=this.gh=null};m.N=function(e,c){this.type=e;this.behavior=e.behavior;this.d=c;this.b=e.b};var k=m.N.prototype;k.K=function(){this.tc=null;this.Xj=-1;this.nh=null;this.pc=this.Hk=this.og=0;this.mode=null;var e=this;this.zb||(this.Qh=function(c){e.Wm(c)});this.b.To(this.Qh)};k.Ia=function(){return{uid:this.tc?
this.tc.uid:-1,imgpt:this.nh,msa:this.og,tsa:this.Hk,lka:this.pc,m:this.mode}};k.Sa=function(e){this.Xj=e.uid;this.nh=e.imgpt;this.og=e.msa;this.Hk=e.tsa;this.pc=e.lka;this.mode=e.m};k.Ed=function(){-1===this.Xj?this.tc=null:this.tc=this.b.ih(this.Xj);this.Xj=-1};k.Wm=function(e){this.tc==e&&(this.tc=null)};k.Cf=function(){this.tc=null;this.b.Yq(this.Qh)};k.Ka=function(){};var r={value:0,mr:function(e){this.value=e},ga:function(e){this.value=e},D:function(e){this.value=e},Ib:function(e){this.value=
e}};k.gh=function(e,c){this.type.gh.call(e,r,c);return r.value};k.hh=function(e,c){this.type.hh.call(e,r,c);return r.value};k.Dg=function(){if(this.tc&&this.type.gh&&this.type.hh){var e=this.gh(this.tc,this.nh),c=this.hh(this.tc,this.nh);if(this.d.x!==e||this.d.y!==c)this.d.x=e,this.d.y=c,this.d.I();if(1==this.mode){this.pc!==this.d.k&&(this.og=V(this.og+(this.d.k-this.pc)));var a=V(this.og+(this.tc.k-this.Hk));this.pc=a}1==this.mode&&this.d.k!==a&&(this.d.k=a,this.d.I())}};m.n=new e;e.prototype.Ls=
function(){return!!this.tc};m.u=new q;q.prototype.ot=function(e,c,a){e&&(e=e.Cp(this.d))&&(this.tc=e,this.nh=c,this.pc=this.og=this.d.k,this.Hk=e.k,this.mode=a)};m.F=new function(){}})();function uc(e){this.b=e}
(function(){function e(){}var q=uc.prototype;q.R=function(e){this.behavior=e;this.b=e.b};q.R.prototype.K=function(){};q.N=function(e,m){this.type=e;this.behavior=e.behavior;this.d=m;this.b=e.b};var m=q.N.prototype;m.K=function(){this.speed=U(this.A[0]);this.Aa=U(this.A[1])};m.Ia=function(){return{speed:this.speed,acc:this.Aa}};m.Sa=function(e){this.speed=e.speed;this.Aa=e.acc};m.Ka=function(){var e=this.b.od(this.d);0!==e&&(0!==this.Aa&&(this.speed+=this.Aa*e),0!==this.speed&&(this.d.k=V(this.d.k+
this.speed*e),this.d.I()))};q.n=new function(){};e.prototype.Fi=function(e){this.speed=U(e)};q.u=new e;q.F=new function(){}})();function vc(e){this.b=e}
(function(){function e(){}function q(){}var m=vc.prototype;m.R=function(a){this.behavior=a;this.b=a.b};m.R.prototype.K=function(){};m.N=function(a,b){this.type=a;this.behavior=a.behavior;this.d=b;this.b=a.b;this.La=0};var k=m.N.prototype,r=2*Math.PI,h=Math.PI/2,c=3*Math.PI/2;k.K=function(){this.Ea=1===this.A[0];this.xf=this.A[1];this.fo=this.A[2];this.td=this.A[3];this.td+=Math.random()*this.A[4];0===this.td?this.La=0:(this.La=this.A[5]/this.td*r,this.La+=Math.random()*this.A[6]/this.td*r);this.pb=
this.A[7];this.pb+=Math.random()*this.A[8];this.bi=this.lf=this.da=0;5===this.xf&&(this.pb=U(this.pb));this.init()};k.Ia=function(){return{i:this.La,a:this.Ea,mv:this.xf,w:this.fo,p:this.td,mag:this.pb,iv:this.da,iv2:this.lf,r:this.bi,lkv:this.gc,lkv2:this.Ah}};k.Sa=function(a){this.La=a.i;this.Ea=a.a;this.xf=a.mv;this.fo=a.w;this.td=a.p;this.pb=a.mag;this.da=a.iv;this.lf=a.iv2||0;this.bi=a.r;this.gc=a.lkv;this.Ah=a.lkv2||0};k.init=function(){switch(this.xf){case 0:this.da=this.d.x;break;case 1:this.da=
this.d.y;break;case 2:this.da=this.d.width;this.bi=this.d.height/this.d.width;break;case 3:this.da=this.d.width;break;case 4:this.da=this.d.height;break;case 5:this.da=this.d.k;break;case 6:this.da=this.d.opacity;break;case 7:this.da=0;break;case 8:this.da=this.d.x,this.lf=this.d.y}this.gc=this.da;this.Ah=this.lf};k.he=function(a){a=a%r;switch(this.fo){case 0:return Math.sin(a);case 1:return a<=h?a/h:a<=c?1-2*(a-h)/Math.PI:(a-c)/h-1;case 2:return 2*a/r-1;case 3:return-2*a/r+1;case 4:return a<Math.PI?
-1:1}return 0};k.Ka=function(){var a=this.b.od(this.d);this.Ea&&0!==a&&(0===this.td?this.La=0:(this.La+=a/this.td*r,this.La=this.La%r),this.Rr())};k.Rr=function(){switch(this.xf){case 0:this.d.x!==this.gc&&(this.da+=this.d.x-this.gc);this.d.x=this.da+this.he(this.La)*this.pb;this.gc=this.d.x;break;case 1:this.d.y!==this.gc&&(this.da+=this.d.y-this.gc);this.d.y=this.da+this.he(this.La)*this.pb;this.gc=this.d.y;break;case 2:this.d.width=this.da+this.he(this.La)*this.pb;this.d.height=this.d.width*this.bi;
break;case 3:this.d.width=this.da+this.he(this.La)*this.pb;break;case 4:this.d.height=this.da+this.he(this.La)*this.pb;break;case 5:this.d.k!==this.gc&&(this.da=V(this.da+(this.d.k-this.gc)));this.d.k=V(this.da+this.he(this.La)*this.pb);this.gc=this.d.k;break;case 6:this.d.opacity=this.da+this.he(this.La)*this.pb/100;0>this.d.opacity?this.d.opacity=0:1<this.d.opacity&&(this.d.opacity=1);break;case 8:this.d.x!==this.gc&&(this.da+=this.d.x-this.gc),this.d.y!==this.Ah&&(this.lf+=this.d.y-this.Ah),this.d.x=
this.da+Math.cos(this.d.k)*this.he(this.La)*this.pb,this.d.y=this.lf+Math.sin(this.d.k)*this.he(this.La)*this.pb,this.gc=this.d.x,this.Ah=this.d.y}this.d.I()};k.Jq=function(a,b){switch(this.xf){case 2:this.da*=b.width/a.width;this.bi=b.height/b.width;break;case 3:this.da*=b.width/a.width;break;case 4:this.da*=b.height/a.height}};m.n=new function(){};e.prototype.Gt=function(a){this.td=a};e.prototype.Ft=function(a){this.pb=a;5===this.xf&&(this.pb=U(this.pb))};e.prototype.Ht=function(a){this.La=a*r%
r;this.Rr()};m.u=new e;q.prototype.vs=function(a){a.D(this.La/r)};m.F=new q})();function wc(e){this.b=e}
(function(){function e(){}function q(){}var m=wc.prototype;m.R=function(c){this.behavior=c;this.b=c.b};m.R.prototype.K=function(){this.bd=[]};m.N=function(c,a){this.type=c;this.behavior=c.behavior;this.d=a;this.b=c.b};var k=m.N.prototype;k.K=function(){this.ic=this.A[0];this.Oe=this.A[1];this.gk=0!==this.A[2];this.yn=U(this.A[3]);this.Dk=this.A[4];this.$j=0!==this.A[5];this.pn=this.A[6];this.enabled=0!==this.A[7];this.Tr=0!==this.A[8];this.xj=0;this.Rc=this.Oe;this.currentTarget=null;this.Gm=-1;this.Bf=
this.Af=0;this.hg=[0,0,0,0];this.ad=0;this.fh=!0;var c=this;this.zb||(this.Qh=function(a){c.Wm(a)});this.b.To(this.Qh)};k.Ia=function(){var c={r:this.ic,rof:this.Oe,re:this.gk,rs:this.yn,tm:this.Dk,pa:this.$j,ps:this.pn,en:this.enabled,lct:this.xj,ftc:this.Rc,target:this.currentTarget?this.currentTarget.uid:-1,ox:this.Af,oy:this.Bf,ls:this.hg,sc:this.ad,targs:[]},a,b;a=0;for(b=this.type.bd.length;a<b;a++)c.targs.push(this.type.bd[a].Z);return c};k.Sa=function(c){this.ic=c.r;this.Oe=c.rof;this.gk=
c.re;this.yn=c.rs;this.Dk=c.tm;this.$j=c.pa;this.pn=c.ps;this.enabled=c.en;this.xj=c.lct;this.Rc=c.ftc||0;this.Gm=c.target;this.Af=c.ox;this.Bf=c.oy;this.hg=c.ls;this.ad=c.sc;T(this.type.bd);var a,b,e;a=0;for(b=c.targs.length;a<b;a++)(e=this.b.Zf(c.targs[a]))&&this.type.bd.push(e)};k.Ed=function(){-1===this.Gm?this.currentTarget=null:this.currentTarget=this.b.ih(this.Gm)};k.Wm=function(c){this.currentTarget==c&&(this.currentTarget=null)};k.Cf=function(){this.currentTarget=null;this.b.Yq(this.Qh)};
k.fu=function(c){4>this.ad?(this.hg[this.ad]=c,this.ad++):(this.hg.shift(),this.hg.push(c))};k.$v=function(){for(var c=0,a=0;a<this.ad;a++)c+=this.hg[a];return c/this.ad};k.Qp=function(c){var a=this.d,b=c.x-a.x;c=c.y-a.y;return b*b+c*c<=this.ic*this.ic};var r=new Q(0,0,0,0),h=[];k.Rw=function(){var c,a,b;r.left=this.d.x-this.ic;r.top=this.d.y-this.ic;r.right=this.d.x+this.ic;r.bottom=this.d.y+this.ic;if(this.Tr)this.b.Sl(null,this.type.bd,r,h);else for(c=0,a=this.type.bd.length;c<a;++c)Fa(h,this.type.bd[c].j);
c=0;for(a=h.length;c<a;++c)if(b=h[c],this.Qp(b)){this.currentTarget=b;T(h);return}T(h)};k.Sw=function(){var c,a,b,e,d,f=this.d.x,k=this.d.y,m=this.ic*this.ic;this.currentTarget=null;r.left=f-this.ic;r.top=k-this.ic;r.right=f+this.ic;r.bottom=k+this.ic;if(this.Tr)this.b.Sl(null,this.type.bd,r,h);else for(c=0,a=this.type.bd.length;c<a;++c)Fa(h,this.type.bd[c].j);c=0;for(a=h.length;c<a;++c)b=h[c],e=f-b.x,d=k-b.y,e=e*e+d*d,e<m&&(this.currentTarget=b,m=e);h.length=0};k.Ka=function(){var c=this.b.od(this.d),
a=this.b.Fb.ja,b=this.d;if(this.enabled){this.currentTarget&&!this.Qp(this.currentTarget)&&(this.currentTarget=null,this.ad=0,this.fh=!0);a>=this.xj+.1&&((this.xj=a,0!==this.Dk||this.currentTarget)?1===this.Dk&&(a=this.currentTarget,this.Sw(),this.currentTarget&&this.currentTarget!==a&&(this.ad=0,this.fh=!0,this.Af=this.currentTarget.x,this.Bf=this.currentTarget.y,this.b.trigger(wc.prototype.n.Eo,this.d))):(this.Rw(),this.currentTarget&&(this.ad=0,this.fh=!0,this.Af=this.currentTarget.x,this.Bf=this.currentTarget.y,
this.b.trigger(wc.prototype.n.Eo,this.d))));this.Rc+=c;if(this.currentTarget){a=Na(b.x,b.y,this.currentTarget.x,this.currentTarget.y);if(this.$j){var e=b.x,d=b.y,f=this.currentTarget.x,h=this.currentTarget.y,k=Na(f,h,this.Af,this.Bf);this.fh||this.fu(Ra(f,h,this.Af,this.Bf)/c);var l=this.$v(),m=h-d,q=f-e,e=(l*Math.sin(k)*(e-f)-l*Math.cos(k)*(d-h))/this.pn,m=Math.asin(e/Math.sqrt(m*m+q*q))-Math.atan2(m,-q)+Math.PI;isNaN(m)||(a=m)}this.gk&&(b.k=Pa(b.k,a,this.yn*c),b.I());this.Rc>=this.Oe&&(!this.gk||
.1>=Ja(Oa(b.k,a)))&&(!this.$j||4<=this.ad)&&(this.Rc-=this.Oe,this.Rc>=this.Oe&&(this.Rc=0),this.b.trigger(wc.prototype.n.it,this.d));this.currentTarget&&(this.Af=this.currentTarget.x,this.Bf=this.currentTarget.y);this.fh=!1}this.Rc>this.Oe&&(this.Rc=this.Oe)}};e.prototype.it=function(){return!0};e.prototype.Eo=function(){return!0};m.n=new e;q.prototype.Xr=function(c){var a=this.type.bd;if(-1===a.indexOf(c)){var b,e,d;b=0;for(e=a.length;b<e;b++)if(d=a[b],d.M&&-1!==d.wf.indexOf(c))return;a.push(c)}};
m.u=new q;m.F=new function(){}})();function xc(e){this.b=e}
(function(){var e=xc.prototype;e.R=function(e){this.behavior=e;this.b=e.b};e.R.prototype.K=function(){};e.N=function(e,m){this.type=e;this.behavior=e.behavior;this.d=m;this.b=e.b;this.mode=0};e=e.N.prototype;e.K=function(){this.mode=this.A[0]};e.Ka=function(){};e.Dg=function(){this.d.ra();var e=this.d.ua,m=this.d.q.Na,k=!1;0===this.mode?(0>this.d.x&&(this.d.x=0,k=!0),0>this.d.y&&(this.d.y=0,k=!0),this.d.x>m.width&&(this.d.x=m.width,k=!0),this.d.y>m.height&&(this.d.y=m.height,k=!0)):(0>e.left&&(this.d.x-=
e.left,k=!0),0>e.top&&(this.d.y-=e.top,k=!0),e.right>m.width&&(this.d.x-=e.right-m.width,k=!0),e.bottom>m.height&&(this.d.y-=e.bottom-m.height,k=!0));k&&this.d.I()}})();function yc(e){this.b=e}
(function(){var e=yc.prototype;e.R=function(e){this.behavior=e;this.b=e.b};e.R.prototype.K=function(){};e.N=function(e,m){this.type=e;this.behavior=e.behavior;this.d=m;this.b=e.b};e=e.N.prototype;e.K=function(){};e.Ka=function(){this.d.ra();var e=this.d.ua,m=this.d.q.Na;(0>e.right||0>e.bottom||e.left>m.width||e.top>m.height)&&this.b.Dd(this.d)}})();function zc(e){this.b=e;this.Hn=this.pk=this.hi=this.Gn=0}
(function(){var e=zc.prototype;e.R=function(e){this.behavior=e;this.b=e.b};e.R.prototype.K=function(){};e.N=function(e,k){this.type=e;this.behavior=e.behavior;this.d=k;this.b=e.b};var q=e.N.prototype;q.K=function(){this.enabled=0!==this.A[0]};q.Ia=function(){return{smg:this.behavior.Gn,ss:this.behavior.hi,se:this.behavior.pk,smd:this.behavior.Hn}};q.Sa=function(e){this.behavior.Gn=e.smg;this.behavior.hi=e.ss;this.behavior.pk=e.se;this.behavior.Hn=e.smd};q.Ka=function(){};q.Dg=function(){if(this.enabled){var e=
this.behavior.Rh.Cd(),k=0,q=0,h,c,a,b=0;h=0;for(c=e.length;h<c;h++){a:{a=e[h];for(var g=void 0,d=void 0,f=void 0,g=0,d=a.Q.length;g<d;++g)if(f=a.Q[g],f.behavior instanceof zc){a=f;break a}a=null}a&&a.enabled&&(k+=e[h].x,q+=e[h].y,++b)}e=this.d.q.Na;c=this.b.Fb.ja;a=h=0;c>=this.behavior.hi&&c<this.behavior.pk&&(h=this.behavior.Gn*Math.min(this.b.Fg,1),0===this.behavior.Hn&&(h*=1-(c-this.behavior.hi)/(this.behavior.pk-this.behavior.hi)),c=Math.random()*Math.PI*2,a=Math.random()*h,h=Math.cos(c)*a,a*=
Math.sin(c));e.Dn(k/b+h);e.En(q/b+a)}};e.u=new function(){}})();function ic(e){this.b=e}(function(){var e=ic.prototype;e.R=function(e){this.behavior=e;this.b=e.b};e.R.prototype.K=function(){};e.N=function(e,k){this.type=e;this.behavior=e.behavior;this.d=k;this.b=e.b};var q=e.N.prototype;q.K=function(){this.d.U.solidEnabled=0!==this.A[0]};q.Ka=function(){};e.n=new function(){};e.u=new function(){}})();
function hc(){return[lc,jc,kc,mc,Y,nc,Z,oc,qc,ic,xc,uc,tc,yc,zc,wc,pc,vc,sc,rc,W.prototype.n.xo,Y.prototype.u.$k,W.prototype.F.fy,Y.prototype.F.lo,W.prototype.F.gy,W.prototype.F.random,Y.prototype.u.Ko,Y.prototype.u.Mo,W.prototype.F.zu,Y.prototype.F.Ng,Y.prototype.F.Og,W.prototype.n.zs,Y.prototype.u.Kt,Y.prototype.u.ut,Y.prototype.n.Ks,Y.prototype.u.Qt,Y.prototype.n.Ue,Y.prototype.u.St,Y.prototype.u.Rs,Y.prototype.u.Io,Y.prototype.F.Zr,Y.prototype.u.It,tc.prototype.u.ot,W.prototype.n.ms,Y.prototype.F.Oo,
Y.prototype.u.al,W.prototype.F.hp,Y.prototype.n.Es,Y.prototype.u.xt,Y.prototype.u.Lo,W.prototype.n.ys,Y.prototype.n.Is,qc.prototype.u.qt,tc.prototype.n.Ls,Y.prototype.u.ws,Y.prototype.u.Ct,Y.prototype.u.oo,W.prototype.n.As,Y.prototype.u.Nt,Y.prototype.n.ks,Y.prototype.F.no,Y.prototype.n.js,Y.prototype.u.Bt,Y.prototype.u.po,Y.prototype.n.Gs,Y.prototype.u.No,W.prototype.u.Lt,Y.prototype.u.Zk,Y.prototype.n.Ms,mc.prototype.u.Io,mc.prototype.u.po,mc.prototype.u.Ot,mc.prototype.u.No,W.prototype.n.hs,W.prototype.u.At,
W.prototype.n.Fs,W.prototype.F.Qx,W.prototype.u.Yr,W.prototype.u.Ut,W.prototype.u.Et,Y.prototype.n.Hs,Y.prototype.n.nt,Y.prototype.n.ns,Y.prototype.n.os,W.prototype.n.Yt,W.prototype.u.Dt,W.prototype.u.us,W.prototype.F.jx,W.prototype.F.Px,Y.prototype.n.ko,vc.prototype.F.vs,rc.prototype.u.Tt,W.prototype.n.Ps,vc.prototype.u.Ft,vc.prototype.u.Gt,W.prototype.F.iy,Y.prototype.n.Js,W.prototype.F.vc,oc.prototype.u.Jo,Y.prototype.F.Os,sc.prototype.u.pt,uc.prototype.u.Fi,Y.prototype.F.ts,oc.prototype.u.Fi,
wc.prototype.u.Xr,Y.prototype.u.tt,W.prototype.F.ix,nc.prototype.u.Ko,nc.prototype.u.Jt,W.prototype.F.Yw,W.prototype.F["int"],nc.prototype.u.zt,nc.prototype.u.al,nc.prototype.u.as,nc.prototype.u.yt,W.prototype.F.Hx,nc.prototype.u.Lo,jc.prototype.n.uo,vc.prototype.u.Ht,lc.prototype.F.Ng,lc.prototype.F.Og,lc.prototype.u.$k,nc.prototype.F.Ng,nc.prototype.F.Og,lc.prototype.u.al,nc.prototype.F.Wt,nc.prototype.F.Vt,qc.prototype.u.Mt,nc.prototype.F.lo,nc.prototype.u.$k,lc.prototype.F.cs,nc.prototype.F.Oo,
lc.prototype.F.ds,W.prototype.u.Zt,qc.prototype.u.Rt,lc.prototype.u.oo,qc.prototype.n.so,nc.prototype.u.Zk,lc.prototype.u.Zk,lc.prototype.n.ko,pc.prototype.u.Pt,Y.prototype.n.qs]};