-
Notifications
You must be signed in to change notification settings - Fork 0
/
c2runtime.js
338 lines (338 loc) · 163 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
// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var aa,ca,da,x,ea,fa,A,M,ha,ka,la,ma,na,O,oa,pa,P,sa,ta,va,wa,xa,ya,za,Aa,Q,Ba,Ca,Da,Ea,Fa,R,Ga,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,S,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,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,V,Wb,Xb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(h){return h.__proto__}:function(h){return h.constructor.prototype});
(function(){function h(a,b,d,c){this.set(a,b,d,c)}function l(){this.Gb=this.Fb=this.Ib=this.Hb=this.Wb=this.Vb=this.Cb=this.Bb=0}function p(a,b,d,c){a<b?d<c?(w=a<d?a:d,z=b>c?b:c):(w=a<c?a:c,z=b>d?b:d):d<c?(w=b<d?b:d,z=a>c?a:c):(w=b<c?b:c,z=a>d?a:d)}function r(){this.items=this.zc=null;this.Lf=0;ia&&(this.zc=new Set);this.cf=[];this.ld=!0}function u(a){ua[X++]=a}function t(){this.L=this.Kh=this.y=this.gi=0}function f(a){this.Re=[];this.Ik=this.Kk=this.Lk=this.Jk=0;this.hg(a)}function b(a,b){this.mi=
a;this.li=b;this.cells={}}function e(a,b){this.mi=a;this.li=b;this.cells={}}function c(a,b,d){var c;return B.length?(c=B.pop(),c.Qi=a,c.x=b,c.y=d,c):new aa(a,b,d)}function a(a,b,d){this.Qi=a;this.x=b;this.y=d;this.Ba=new ca}function d(a,b,d){var c;return U.length?(c=U.pop(),c.Qi=a,c.x=b,c.y=d,c):new da(a,b,d)}function k(a,b,d){this.Qi=a;this.x=b;this.y=d;this.Ba=[];this.Ge=!0;this.xc=new ca;this.gf=!1}function g(a,b){return a.mc-b.mc}x=function(a){window.console&&window.console.log&&window.console.log(a)};
ea=function(a){window.console&&window.console.error&&window.console.error(a)};fa=function(a){return"undefined"===typeof a};A=function(a){return"number"===typeof a};M=function(a){return"string"===typeof a};ha=function(a){return 0<a&&0===(a-1&a)};ka=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};la=function(a){return 0>a?-a:a};ma=function(a,b){return a<b?a:b};na=Math.PI;O=function(a){return 0<=a?a|0:(a|0)-1};oa=function(a){var b=a|0;return b===a?b:b+1};pa=function(a,b,d,c,g,v,m,k){var e,
n,f,q;a<d?(n=a,e=d):(n=d,e=a);g<m?(q=g,f=m):(q=m,f=g);if(e<q||n>f)return!1;b<c?(n=b,e=c):(n=c,e=b);v<k?(q=v,f=k):(q=k,f=v);if(e<q||n>f)return!1;e=g-a+m-d;n=v-b+k-c;a=d-a;b=c-b;g=m-g;v=k-v;k=la(b*g-v*a);return la(g*n-v*e)>k?!1:la(a*n-b*e)<=k};h.prototype.set=function(a,b,d,c){this.left=a;this.top=b;this.right=d;this.bottom=c};h.prototype.of=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};h.prototype.width=function(){return this.right-this.left};h.prototype.height=
function(){return this.bottom-this.top};h.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};h.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)};h.prototype.Jb=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};h.prototype.sf=function(a){return this.left===a.left&&this.top===a.top&&this.right===
a.right&&this.bottom===a.bottom};P=h;l.prototype.Fh=function(a){this.Bb=a.left;this.Cb=a.top;this.Vb=a.right;this.Wb=a.top;this.Hb=a.right;this.Ib=a.bottom;this.Fb=a.left;this.Gb=a.bottom};l.prototype.Xm=function(a,b){if(0===b)this.Fh(a);else{var d=Math.sin(b),c=Math.cos(b),g=a.left*d,v=a.top*d,m=a.right*d,d=a.bottom*d,k=a.left*c,e=a.top*c,n=a.right*c,c=a.bottom*c;this.Bb=k-v;this.Cb=e+g;this.Vb=n-v;this.Wb=e+m;this.Hb=n-d;this.Ib=c+m;this.Fb=k-d;this.Gb=c+g}};l.prototype.offset=function(a,b){this.Bb+=
a;this.Cb+=b;this.Vb+=a;this.Wb+=b;this.Hb+=a;this.Ib+=b;this.Fb+=a;this.Gb+=b;return this};var w=0,z=0;l.prototype.Nk=function(a){p(this.Bb,this.Vb,this.Hb,this.Fb);a.left=w;a.right=z;p(this.Cb,this.Wb,this.Ib,this.Gb);a.top=w;a.bottom=z};l.prototype.Jb=function(a,b){var d=this.Bb,c=this.Cb,g=this.Vb-d,v=this.Wb-c,m=this.Hb-d,k=this.Ib-c,e=a-d,n=b-c,f=g*g+v*v,q=g*m+v*k,v=g*e+v*n,w=m*m+k*k,h=m*e+k*n,z=1/(f*w-q*q),g=(w*v-q*h)*z,f=(f*h-q*v)*z;if(0<=g&&0<f&&1>g+f)return!0;g=this.Fb-d;v=this.Gb-c;f=g*
g+v*v;q=g*m+v*k;v=g*e+v*n;z=1/(f*w-q*q);g=(w*v-q*h)*z;f=(f*h-q*v)*z;return 0<=g&&0<f&&1>g+f};sa=l;ta=function(a,b,d){return Math.max(Math.min(a,255),0)|Math.max(Math.min(b,255),0)<<8|Math.max(Math.min(d,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,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);return a};za=function(a,b){var d,c;b=O(b);if(!(0>b||b>=a.length)){d=b;for(c=a.length-1;d<c;d++)a[d]=a[d+1];Aa(a,c)}};
Aa=function(a,b){a.length=b};Q=function(a){Aa(a,0)};Ba=function(a,b){Q(a);var d,c;d=0;for(c=b.length;d<c;++d)a[d]=b[d]};Ca=function(a,b){a.push.apply(a,b)};Da=function(a,b){var d,c;d=0;for(c=a.length;d<c;++d)if(a[d]===b)return d;return-1};Ea=function(a,b){var d=Da(a,b);-1!==d&&za(a,d)};Fa=function(a,b,d){return a<b?b:a>d?d:a};R=function(a){return a/(180/na)};Ga=function(a){return 180/na*a};Ja=function(a){a%=360;0>a&&(a+=360);return a};Ka=function(a){a%=2*na;0>a&&(a+=2*na);return a};La=function(a){return Ja(Ga(a))};
Ma=function(a){return Ka(R(a))};Na=function(a,b,d,c){return Math.atan2(c-b,d-a)};Oa=function(a,b){if(a===b)return 0;var d=Math.sin(a),c=Math.cos(a),g=Math.sin(b),v=Math.cos(b),d=d*g+c*v;return 1<=d?0:-1>=d?na:Math.acos(d)};Pa=function(a,b,d){var c=Math.sin(a),g=Math.cos(a),v=Math.sin(b),m=Math.cos(b);return Math.acos(c*v+g*m)>d?0<g*v-c*m?Ka(a+d):Ka(a-d):Ka(b)};Qa=function(a,b){var d=Math.sin(a),c=Math.cos(a),g=Math.sin(b),v=Math.cos(b);return 0>=c*g-d*v};Ra=function(a,b,d,c){a=d-a;b=c-b;return Math.sqrt(a*
a+b*b)};Sa=function(a,b){return!a!==!b};Ta=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Ua=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var q=+new Date;S=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()-q};var m=
!1,n=m=!1,y=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),n=/(iphone|ipod|ipad)/i.test(navigator.userAgent),y=window.c2ejecta);var ia=!m&&!y&&!n&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;r.prototype.contains=function(a){return this.Oc()?!1:ia?this.zc.has(a):this.items&&this.items.hasOwnProperty(a)};r.prototype.add=function(a){if(ia)this.zc.has(a)||(this.zc.add(a),this.ld=
!1);else{var b=a.toString(),d=this.items;d?d.hasOwnProperty(b)||(d[b]=a,this.Lf++,this.ld=!1):(this.items={},this.items[b]=a,this.Lf=1,this.ld=!1)}};r.prototype.remove=function(a){if(!this.Oc())if(ia)this.zc.has(a)&&(this.zc["delete"](a),this.ld=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Lf--,this.ld=!1)}};r.prototype.clear=function(){this.Oc()||(ia?this.zc.clear():(this.items=null,this.Lf=0),Q(this.cf),this.ld=!0)};r.prototype.Oc=function(){return 0===
this.count()};r.prototype.count=function(){return ia?this.zc.size:this.Lf};var ua=null,X=0;r.prototype.ls=function(){if(!this.ld){if(ia)Q(this.cf),ua=this.cf,X=0,this.zc.forEach(u),ua=null,X=0;else{var a=this.cf;Q(a);var b,d=0,c=this.items;if(c)for(b in c)c.hasOwnProperty(b)&&(a[d++]=c[b])}this.ld=!0}};r.prototype.Kd=function(){this.ls();return this.cf};ca=r;new ca;Wa=function(a,b){ia?Xa(a,b.zc):Ya(a,b.Kd())};Xa=function(a,b){var d,c,g,v;c=d=0;for(g=a.length;d<g;++d)v=a[d],b.has(v)||(a[c++]=v);Aa(a,
c)};Ya=function(a,b){var d,c,g,v;c=d=0;for(g=a.length;d<g;++d)v=a[d],-1===Da(b,v)&&(a[c++]=v);Aa(a,c)};t.prototype.add=function(a){this.y=a-this.gi;this.Kh=this.L+this.y;this.gi=this.Kh-this.L-this.y;this.L=this.Kh};t.prototype.reset=function(){this.L=this.Kh=this.y=this.gi=0};Za=t;$a=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};f.prototype.hg=function(a){this.Gm=a;this.xh=a.length/2;this.Re.length=a.length;this.hi=this.ii=-1;this.Qk=0};f.prototype.er=function(){return!this.Gm.length};
f.prototype.xa=function(){for(var a=this.Re,b=a[0],d=b,c=a[1],g=c,v,m,k=1,e=this.xh;k<e;++k)m=2*k,v=a[m],m=a[m+1],v<b&&(b=v),v>d&&(d=v),m<c&&(c=m),m>g&&(g=m);this.Jk=b;this.Kk=d;this.Lk=c;this.Ik=g};f.prototype.Fh=function(a,b,d){this.Re.length=8;this.xh=4;var c=this.Re;c[0]=a.left-b;c[1]=a.top-d;c[2]=a.right-b;c[3]=a.top-d;c[4]=a.right-b;c[5]=a.bottom-d;c[6]=a.left-b;c[7]=a.bottom-d;this.ii=a.right-a.left;this.hi=a.bottom-a.top;this.xa()};f.prototype.Wo=function(a,b,d){if(this.ii!==a||this.hi!==
b||this.Qk!==d){this.ii=a;this.hi=b;this.Qk=d;var c,g,v,m,k,e=0,n=1,f=this.Gm,q=this.Re;0!==d&&(e=Math.sin(d),n=Math.cos(d));d=0;for(v=this.xh;d<v;d++)c=2*d,g=c+1,m=f[c]*a,k=f[g]*b,q[c]=m*n-k*e,q[g]=k*n+m*e;this.xa()}};f.prototype.Jb=function(a,b){var d=this.Re;if(a===d[0]&&b===d[1])return!0;var c,g,v,m=this.xh,k=this.Jk-110,e=this.Lk-101,n=this.Kk+131,f=this.Ik+120,q,w,h=0,z=0;for(c=0;c<m;c++)g=2*c,v=(c+1)%m*2,q=d[g],g=d[g+1],w=d[v],v=d[v+1],pa(k,e,a,b,q,g,w,v)&&h++,pa(n,f,a,b,q,g,w,v)&&z++;return 1===
h%2||1===z%2};ab=f;b.prototype.rd=function(a,b,d){var g;g=this.cells[a];return g?(g=g[b])?g:d?(g=c(this,a,b),this.cells[a][b]=g):null:d?(g=c(this,a,b),this.cells[a]={},this.cells[a][b]=g):null};b.prototype.Wa=function(a){return O(a/this.mi)};b.prototype.Xa=function(a){return O(a/this.li)};b.prototype.update=function(a,b,d){var c,g,v,m,k;if(b)for(c=b.left,g=b.right;c<=g;++c)for(v=b.top,m=b.bottom;v<=m;++v)if(!d||!d.Jb(c,v))if(k=this.rd(c,v,!1))k.remove(a),k.Oc()&&(k.Ba.clear(),1E3>B.length&&B.push(k),
this.cells[c][v]=null);if(d)for(c=d.left,g=d.right;c<=g;++c)for(v=d.top,m=d.bottom;v<=m;++v)b&&b.Jb(c,v)||this.rd(c,v,!0).Xi(a)};b.prototype.Im=function(a,b){var d,c,g,v,m,k;d=this.Wa(a.left);g=this.Xa(a.top);c=this.Wa(a.right);for(m=this.Xa(a.bottom);d<=c;++d)for(v=g;v<=m;++v)(k=this.rd(d,v,!1))&&k.dump(b)};bb=b;e.prototype.rd=function(a,b,c){var g;g=this.cells[a];return g?(g=g[b])?g:c?(g=d(this,a,b),this.cells[a][b]=g):null:c?(g=d(this,a,b),this.cells[a]={},this.cells[a][b]=g):null};e.prototype.Wa=
function(a){return O(a/this.mi)};e.prototype.Xa=function(a){return O(a/this.li)};e.prototype.update=function(a,b,d){var c,g,v,m,k;if(b)for(c=b.left,g=b.right;c<=g;++c)for(v=b.top,m=b.bottom;v<=m;++v)if(!d||!d.Jb(c,v))if(k=this.rd(c,v,!1))k.remove(a),k.Oc()&&(k.reset(),1E3>U.length&&U.push(k),this.cells[c][v]=null);if(d)for(c=d.left,g=d.right;c<=g;++c)for(v=d.top,m=d.bottom;v<=m;++v)b&&b.Jb(c,v)||this.rd(c,v,!0).Xi(a)};e.prototype.Im=function(a,b,d,c,g){var v,m;a=this.Wa(a);b=this.Xa(b);d=this.Wa(d);
for(v=this.Xa(c);a<=d;++a)for(c=b;c<=v;++c)(m=this.rd(a,c,!1))&&m.dump(g)};e.prototype.mr=function(a){var b,d,c,g,v;b=a.left;c=a.top;d=a.right;for(g=a.bottom;b<=d;++b)for(a=c;a<=g;++a)if(v=this.rd(b,a,!1))v.Ge=!1};cb=e;var B=[];a.prototype.Oc=function(){return this.Ba.Oc()};a.prototype.Xi=function(a){this.Ba.add(a)};a.prototype.remove=function(a){this.Ba.remove(a)};a.prototype.dump=function(a){Ca(a,this.Ba.Kd())};aa=a;var U=[];k.prototype.Oc=function(){if(!this.Ba.length)return!0;if(this.Ba.length>
this.xc.count())return!1;this.Ei();return!0};k.prototype.Xi=function(a){this.xc.contains(a)?(this.xc.remove(a),this.xc.Oc()&&(this.gf=!1)):this.Ba.length?(this.Ba[this.Ba.length-1].tc()>a.tc()&&(this.Ge=!1),this.Ba.push(a)):(this.Ba.push(a),this.Ge=!0)};k.prototype.remove=function(a){this.xc.add(a);this.gf=!0;30<=this.xc.count()&&this.Ei()};k.prototype.Ei=function(){this.gf&&(this.xc.count()===this.Ba.length?this.reset():(Wa(this.Ba,this.xc),this.xc.clear(),this.gf=!1))};k.prototype.Gp=function(){this.Ge||
(this.Ba.sort(g),this.Ge=!0)};k.prototype.reset=function(){Q(this.Ba);this.Ge=!0;this.xc.clear();this.gf=!1};k.prototype.dump=function(a){this.Ei();this.Gp();this.Ba.length&&a.push(this.Ba)};da=k;var F="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":F[a-1]};eb=function(a,b,d){if(d)switch(a.Pa=d.ONE,a.Ma=d.ONE_MINUS_SRC_ALPHA,b){case 1:a.Pa=d.ONE;a.Ma=d.ONE;break;case 3:a.Pa=
d.ONE;a.Ma=d.ZERO;break;case 4:a.Pa=d.ONE_MINUS_DST_ALPHA;a.Ma=d.ONE;break;case 5:a.Pa=d.DST_ALPHA;a.Ma=d.ZERO;break;case 6:a.Pa=d.ZERO;a.Ma=d.SRC_ALPHA;break;case 7:a.Pa=d.ONE_MINUS_DST_ALPHA;a.Ma=d.ZERO;break;case 8:a.Pa=d.ZERO;a.Ma=d.ONE_MINUS_SRC_ALPHA;break;case 9:a.Pa=d.DST_ALPHA;a.Ma=d.ONE_MINUS_SRC_ALPHA;break;case 10:a.Pa=d.ONE_MINUS_DST_ALPHA,a.Ma=d.SRC_ALPHA}};fb=function(a){return Math.round(1E6*a)/1E6};gb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?
!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};hb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||gb(a.tagName,"canvas")?!0:!1}})();var Yb="undefined"!==typeof Float32Array?Float32Array:Array;function Zb(h){var l=new Yb(3);h&&(l[0]=h[0],l[1]=h[1],l[2]=h[2]);return l}
function $b(h){var l=new Yb(16);h&&(l[0]=h[0],l[1]=h[1],l[2]=h[2],l[3]=h[3],l[4]=h[4],l[5]=h[5],l[6]=h[6],l[7]=h[7],l[8]=h[8],l[9]=h[9],l[10]=h[10],l[11]=h[11],l[12]=h[12],l[13]=h[13],l[14]=h[14],l[15]=h[15]);return l}function ac(h,l){l[0]=h[0];l[1]=h[1];l[2]=h[2];l[3]=h[3];l[4]=h[4];l[5]=h[5];l[6]=h[6];l[7]=h[7];l[8]=h[8];l[9]=h[9];l[10]=h[10];l[11]=h[11];l[12]=h[12];l[13]=h[13];l[14]=h[14];l[15]=h[15]}
function bc(h,l){var p=l[0],r=l[1];l=l[2];h[0]*=p;h[1]*=p;h[2]*=p;h[3]*=p;h[4]*=r;h[5]*=r;h[6]*=r;h[7]*=r;h[8]*=l;h[9]*=l;h[10]*=l;h[11]*=l}
function cc(h,l,p,r){r||(r=$b());var u,t,f,b,e,c,a,d,k=h[0],g=h[1];h=h[2];t=p[0];f=p[1];u=p[2];p=l[1];c=l[2];k===l[0]&&g===p&&h===c?(h=r,h[0]=1,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=1,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=1,h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1):(p=k-l[0],c=g-l[1],a=h-l[2],d=1/Math.sqrt(p*p+c*c+a*a),p*=d,c*=d,a*=d,l=f*a-u*c,u=u*p-t*a,t=t*c-f*p,(d=Math.sqrt(l*l+u*u+t*t))?(d=1/d,l*=d,u*=d,t*=d):t=u=l=0,f=c*t-a*u,b=a*l-p*t,e=p*u-c*l,(d=Math.sqrt(f*f+b*b+e*e))?(d=1/d,f*=d,b*=d,e*=d):e=b=f=0,
r[0]=l,r[1]=f,r[2]=p,r[3]=0,r[4]=u,r[5]=b,r[6]=c,r[7]=0,r[8]=t,r[9]=e,r[10]=a,r[11]=0,r[12]=-(l*k+u*g+t*h),r[13]=-(f*k+b*g+e*h),r[14]=-(p*k+c*g+a*h),r[15]=1)}
(function(){function h(b,e,c){this.ud=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.U=!!c;this.Ug=this.Ff=!1;this.si=0;this.Xh=1;this.mk=1E3;this.vs=(this.mk-this.Xh)/32768;this.ji=Zb([0,0,100]);this.Ol=Zb([0,0,0]);this.vn=Zb([0,1,0]);this.ug=Zb([1,1,1]);this.al=!0;this.mh=$b();this.yb=$b();this.mj=$b();this.ri=$b();this.j=b;this.version=0===this.j.getParameter(this.j.VERSION).indexOf("WebGL 2")?2:1;this.tl()}function l(b,e,c){this.j=b;this.ig=
e;this.name=c;this.Nb=b.getAttribLocation(e,"aPos");this.Cd=b.getAttribLocation(e,"aTex");this.Ml=b.getUniformLocation(e,"matP");this.ih=b.getUniformLocation(e,"matMV");this.Le=b.getUniformLocation(e,"opacity");this.rj=b.getUniformLocation(e,"colorFill");this.Nl=b.getUniformLocation(e,"samplerFront");this.Rf=b.getUniformLocation(e,"samplerBack");this.fe=b.getUniformLocation(e,"destStart");this.ee=b.getUniformLocation(e,"destEnd");this.Tf=b.getUniformLocation(e,"seconds");this.tj=b.getUniformLocation(e,
"pixelWidth");this.sj=b.getUniformLocation(e,"pixelHeight");this.Qf=b.getUniformLocation(e,"layerScale");this.Pf=b.getUniformLocation(e,"layerAngle");this.Uf=b.getUniformLocation(e,"viewOrigin");this.Sf=b.getUniformLocation(e,"scrollPos");this.Rq=!!(this.tj||this.sj||this.Tf||this.Rf||this.fe||this.ee||this.Qf||this.Pf||this.Uf||this.Sf);this.Wl=this.Xl=-999;this.lh=1;this.Sl=this.Rl=0;this.Ul=this.Ql=this.Pl=1;this.$l=this.Zl=this.Yl=this.cm=this.am=this.Tl=0;this.lj=[];this.Vl=$b();this.Le&&b.uniform1f(this.Le,
1);this.rj&&b.uniform4f(this.rj,1,1,1,1);this.Nl&&b.uniform1i(this.Nl,0);this.Rf&&b.uniform1i(this.Rf,1);this.fe&&b.uniform2f(this.fe,0,0);this.ee&&b.uniform2f(this.ee,1,1);this.Qf&&b.uniform1f(this.Qf,1);this.Pf&&b.uniform1f(this.Pf,0);this.Uf&&b.uniform2f(this.Uf,0,0);this.Sf&&b.uniform2f(this.Sf,0,0);this.Tf&&b.uniform1f(this.Tf,0);this.Zd=!1}function p(b,e){return b[0]===e[0]&&b[1]===e[1]&&b[2]===e[2]&&b[3]===e[3]&&b[4]===e[4]&&b[5]===e[5]&&b[6]===e[6]&&b[7]===e[7]&&b[8]===e[8]&&b[9]===e[9]&&
b[10]===e[10]&&b[11]===e[11]&&b[12]===e[12]&&b[13]===e[13]&&b[14]===e[14]&&b[15]===e[15]}function r(b,e){this.type=b;this.m=e;this.j=e.j;this.uc=this.Va=this.wm=0;this.C=this.Ub=null;this.Ym=[]}var u=$b();h.prototype.tl=function(){var b=this.j,e;this.Gl=1;this.ae=this.yd=null;this.Dg=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.U?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):
b.disable(b.DEPTH_TEST);this.Hl=b.ONE;this.Fl=b.ONE_MINUS_SRC_ALPHA;this.Vh=new Float32Array(8E3*(this.U?3:2));this.Mh=new Float32Array(16E3);this.Bm=new Float32Array(32E3);this.Fj=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.Fj);b.bufferData(b.ARRAY_BUFFER,this.Bm.byteLength,b.DYNAMIC_DRAW);this.sg=Array(4);this.ng=Array(4);for(e=0;4>e;e++)this.sg[e]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.sg[e]),b.bufferData(b.ARRAY_BUFFER,this.Vh.byteLength,b.DYNAMIC_DRAW),this.ng[e]=b.createBuffer(),
b.bindBuffer(b.ARRAY_BUFFER,this.ng[e]),b.bufferData(b.ARRAY_BUFFER,this.Mh.byteLength,b.DYNAMIC_DRAW);this.Ec=0;this.Tq=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.Tq);for(var c=new Uint16Array(12E3),a=e=0;12E3>e;)c[e++]=a,c[e++]=a+1,c[e++]=a+2,c[e++]=a,c[e++]=a+2,c[e++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,c,b.STATIC_DRAW);this.Gj=this.Ze=this.bd=0;this.ea=[];e=this.U?"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}";c=this.pf({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}"},e,"<default>");this.ea.push(c);c=this.pf({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.ea.push(c);c=this.pf({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},e,"<earlyz>");this.ea.push(c);c=this.pf({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
e,"<fill>");this.ea.push(c);for(var d in dc)dc.hasOwnProperty(d)&&this.ea.push(this.pf(dc[d],e,d));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.kd=[];this.Dc=0;this.Na=!1;this.Xk=this.Mf=-1;this.te=null;this.Di=b.createFramebuffer();this.Fg=this.yh=null;this.Hk=!1;this.U&&(this.Fg=b.createRenderbuffer());this.Jd=Zb([0,0,0]);this.dm=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048<this.dm&&(this.dm=2048);this.$a(0)};l.prototype.ik=function(b){p(this.Vl,b)||(ac(b,this.Vl),this.j.uniformMatrix4fv(this.ih,
!1,b))};h.prototype.pf=function(b,e,c){var a=this.j,d=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(d,b.src);a.compileShader(d);if(!a.getShaderParameter(d,a.COMPILE_STATUS))throw b=a.getShaderInfoLog(d),a.deleteShader(d),Error("error compiling fragment shader: "+b);var k=a.createShader(a.VERTEX_SHADER);a.shaderSource(k,e);a.compileShader(k);if(!a.getShaderParameter(k,a.COMPILE_STATUS))throw b=a.getShaderInfoLog(k),a.deleteShader(d),a.deleteShader(k),Error("error compiling vertex shader: "+b);e=
a.createProgram();a.attachShader(e,d);a.attachShader(e,k);a.linkProgram(e);if(!a.getProgramParameter(e,a.LINK_STATUS))throw b=a.getProgramInfoLog(e),a.deleteShader(d),a.deleteShader(k),a.deleteProgram(e),Error("error linking shader program: "+b);a.useProgram(e);a.deleteShader(d);a.deleteShader(k);d=new l(a,e,c);d.Bi=b.Bi||0;d.Ci=b.Ci||0;d.Wk=!!b.Wk;d.hc=!!b.hc;d.Dk=!!b.Dk;d.D=b.D||[];b=0;for(k=d.D.length;b<k;b++)d.D[b][1]=a.getUniformLocation(e,d.D[b][0]),d.lj.push(0),a.uniform1f(d.D[b][1],0);return d};
h.prototype.Oi=function(b){var e,c;e=0;for(c=this.ea.length;e<c;e++)if(this.ea[e].name===b)return e;return-1};h.prototype.Fm=function(b,e,c){var a=this.yb,d=this.mh,k=[0,0,0,0,0,0,0,0];k[0]=a[0]*b+a[4]*e+a[12];k[1]=a[1]*b+a[5]*e+a[13];k[2]=a[2]*b+a[6]*e+a[14];k[3]=a[3]*b+a[7]*e+a[15];k[4]=d[0]*k[0]+d[4]*k[1]+d[8]*k[2]+d[12]*k[3];k[5]=d[1]*k[0]+d[5]*k[1]+d[9]*k[2]+d[13]*k[3];k[6]=d[2]*k[0]+d[6]*k[1]+d[10]*k[2]+d[14]*k[3];k[7]=-k[2];0!==k[7]&&(k[7]=1/k[7],k[4]*=k[7],k[5]*=k[7],k[6]*=k[7],c[0]=(.5*k[4]+
.5)*this.width,c[1]=(.5*k[5]+.5)*this.height)};h.prototype.je=function(b,e,c){if(this.width!==b||this.height!==e||c){this.pd();c=this.j;this.width=b;this.height=e;c.viewport(0,0,b,e);cc(this.ji,this.Ol,this.vn,this.yb);if(this.U){var a=-b/2;b=b/2;var d=e/2;e=-e/2;var k=this.Xh,g=this.mk,f=this.mh;f||(f=$b());var h=b-a,q=e-d,m=g-k;f[0]=2/h;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/q;f[6]=0;f[7]=0;f[8]=0;f[9]=0;f[10]=-2/m;f[11]=0;f[12]=-(a+b)/h;f[13]=-(e+d)/q;f[14]=-(g+k)/m;f[15]=1;this.ug[0]=1;this.ug[1]=
1}else e=b/e,a=this.Xh,b=this.mk,f=this.mh,g=a*Math.tan(45*Math.PI/360),e*=g,d=-e,k=-g,f||(f=$b()),h=e-d,q=g-k,m=b-a,f[0]=2*a/h,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=2*a/q,f[6]=0,f[7]=0,f[8]=(e+d)/h,f[9]=(g+k)/q,f[10]=-(b+a)/m,f[11]=-1,f[12]=0,f[13]=0,f[14]=-(b*a*2)/m,f[15]=0,a=[0,0],b=[0,0],this.Fm(0,0,a),this.Fm(1,1,b),this.ug[0]=1/(b[0]-a[0]),this.ug[1]=-1/(b[1]-a[1]);a=0;for(b=this.ea.length;a<b;a++)d=this.ea[a],d.Zd=!1,d.Ml&&(c.useProgram(d.ig),c.uniformMatrix4fv(d.Ml,!1,this.mh));c.useProgram(this.ea[this.Mf].ig);
c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE0);this.ae=this.yd=null;this.Fg&&(c.bindFramebuffer(c.FRAMEBUFFER,this.Di),c.bindRenderbuffer(c.RENDERBUFFER,this.Fg),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,this.width,this.height),this.Hk||(c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,this.Fg),this.Hk=!0),c.bindRenderbuffer(c.RENDERBUFFER,null),c.bindFramebuffer(c.FRAMEBUFFER,null),
this.yh=null)}};h.prototype.Pb=function(){cc(this.ji,this.Ol,this.vn,this.yb);bc(this.yb,this.ug)};h.prototype.translate=function(b,e){if(0!==b||0!==e){this.Jd[0]=b;this.Jd[1]=e;this.Jd[2]=0;var c=this.yb,a=this.Jd,d=a[0],k=a[1],a=a[2];c[12]=c[0]*d+c[4]*k+c[8]*a+c[12];c[13]=c[1]*d+c[5]*k+c[9]*a+c[13];c[14]=c[2]*d+c[6]*k+c[10]*a+c[14];c[15]=c[3]*d+c[7]*k+c[11]*a+c[15]}};h.prototype.scale=function(b,e){if(1!==b||1!==e)this.Jd[0]=b,this.Jd[1]=e,this.Jd[2]=1,bc(this.yb,this.Jd)};h.prototype.Ah=function(b){if(0!==
b){var e=this.yb,c,a=Math.sin(b);b=Math.cos(b);var d=e[0],k=e[1],g=e[2],f=e[3],h=e[4],q=e[5],m=e[6],n=e[7];c?e!==c&&(c[8]=e[8],c[9]=e[9],c[10]=e[10],c[11]=e[11],c[12]=e[12],c[13]=e[13],c[14]=e[14],c[15]=e[15]):c=e;c[0]=d*b+h*a;c[1]=k*b+q*a;c[2]=g*b+m*a;c[3]=f*b+n*a;c[4]=d*-a+h*b;c[5]=k*-a+q*b;c[6]=g*-a+m*b;c[7]=f*-a+n*b}};h.prototype.Db=function(){if(!p(this.mj,this.yb)){var b=this.nb();b.type=5;b.C?ac(this.yb,b.C):b.C=$b(this.yb);ac(this.yb,this.mj);this.Na=!1}};h.prototype.Dh=function(b){this.U&&
(32760<b&&(b=32760),this.si=this.ji[2]-this.Xh-b*this.vs)};r.prototype.pp=function(){var b=this.j,e=this.m;0!==this.Va?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),b.bindFramebuffer(b.FRAMEBUFFER,e.Di),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),e.Ug=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),e.Ug=!1)};r.prototype.tp=function(){this.j.bindTexture(this.j.TEXTURE_2D,
this.Ub)};r.prototype.up=function(){var b=this.j;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.Ub);b.activeTexture(b.TEXTURE0)};r.prototype.qp=function(){var b=this.wm,e=this.m;e.Dg=b;e=e.te;e.Le&&e.lh!==b&&(e.lh=b,this.j.uniform1f(e.Le,b))};r.prototype.kp=function(){this.j.drawElements(this.j.TRIANGLES,this.uc,this.j.UNSIGNED_SHORT,this.Va)};r.prototype.mp=function(){this.j.blendFunc(this.Va,this.uc)};r.prototype.wp=function(){var b,e,c,a=this.m.ea,d=this.m.Xk;b=0;for(e=a.length;b<
e;b++)c=a[b],b===d&&c.ih?(c.ik(this.C),c.Zd=!0):c.Zd=!1;ac(this.C,this.m.ri)};r.prototype.lp=function(){var b=this.j,e=this.m;this.Ub?(e.ae===this.Ub&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),e.ae=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,e.Di),e.Ug||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.Ub,0)):(e.U||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};
r.prototype.hp=function(){var b=this.j,e=this.Va;0===e?(b.clearColor(this.C[0],this.C[1],this.C[2],this.C[3]),b.clear(b.COLOR_BUFFER_BIT)):1===e?(b.enable(b.SCISSOR_TEST),b.scissor(this.C[0],this.C[1],this.C[2],this.C[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};r.prototype.op=function(){var b=this.j;0!==this.Va?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};r.prototype.jp=function(){var b=this.j,e=this.m;e.U&&b.disable(b.DEPTH_TEST);
var c=e.ea[1];b.useProgram(c.ig);!c.Zd&&c.ih&&(c.ik(e.ri),c.Zd=!0);b.enableVertexAttribArray(c.Nb);b.bindBuffer(b.ARRAY_BUFFER,e.Fj);b.vertexAttribPointer(c.Nb,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.Va/4,this.uc);c=e.te;b.useProgram(c.ig);0<=c.Nb&&(b.enableVertexAttribArray(c.Nb),b.bindBuffer(b.ARRAY_BUFFER,e.sg[e.Ec]),b.vertexAttribPointer(c.Nb,e.U?3:2,b.FLOAT,!1,0,0));0<=c.Cd&&(b.enableVertexAttribArray(c.Cd),b.bindBuffer(b.ARRAY_BUFFER,e.ng[e.Ec]),b.vertexAttribPointer(c.Cd,2,b.FLOAT,!1,
0,0));e.U&&b.enable(b.DEPTH_TEST)};r.prototype.rp=function(){var b=this.j,e=this.m,c=e.ea[this.Va];e.Xk=this.Va;e.te=c;b.useProgram(c.ig);!c.Zd&&c.ih&&(c.ik(e.ri),c.Zd=!0);c.Le&&c.lh!==e.Dg&&(c.lh=e.Dg,b.uniform1f(c.Le,e.Dg));0<=c.Nb&&(b.enableVertexAttribArray(c.Nb),b.bindBuffer(b.ARRAY_BUFFER,e.sg[e.Ec]),b.vertexAttribPointer(c.Nb,e.U?3:2,b.FLOAT,!1,0,0));0<=c.Cd&&(b.enableVertexAttribArray(c.Cd),b.bindBuffer(b.ARRAY_BUFFER,e.ng[e.Ec]),b.vertexAttribPointer(c.Cd,2,b.FLOAT,!1,0,0))};r.prototype.np=
function(){var b=this.C;this.j.uniform4f(this.m.te.rj,b[0],b[1],b[2],b[3])};r.prototype.sp=function(){var b,e,c=this.m.te,a=this.j;b=this.C;c.Rf&&this.m.ae!==this.Ub&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.Ub),this.m.ae=this.Ub,a.activeTexture(a.TEXTURE0));var d=b[0];c.tj&&d!==c.Xl&&(c.Xl=d,a.uniform1f(c.tj,d));d=b[1];c.sj&&d!==c.Wl&&(c.Wl=d,a.uniform1f(c.sj,d));d=b[2];e=b[3];!c.fe||d===c.Rl&&e===c.Sl||(c.Rl=d,c.Sl=e,a.uniform2f(c.fe,d,e));d=b[4];e=b[5];!c.ee||d===c.Pl&&e===
c.Ql||(c.Pl=d,c.Ql=e,a.uniform2f(c.ee,d,e));d=b[6];c.Qf&&d!==c.Ul&&(c.Ul=d,a.uniform1f(c.Qf,d));d=b[7];c.Pf&&d!==c.Tl&&(c.Tl=d,a.uniform1f(c.Pf,d));d=b[8];e=b[9];!c.Uf||d===c.am&&e===c.cm||(c.am=d,c.cm=e,a.uniform2f(c.Uf,d,e));d=b[10];e=b[11];!c.Sf||d===c.Yl&&e===c.Zl||(c.Yl=d,c.Zl=e,a.uniform2f(c.Sf,d,e));d=b[12];c.Tf&&d!==c.$l&&(c.$l=d,a.uniform1f(c.Tf,d));if(c.D.length)for(b=0,e=c.D.length;b<e;b++)d=this.Ym[b],d!==c.lj[b]&&(c.lj[b]=d,a.uniform1f(c.D[b][1],d))};h.prototype.nb=function(){this.Dc===
this.kd.length&&this.kd.push(new r(0,this));return this.kd[this.Dc++]};h.prototype.pd=function(){if(0!==this.Dc&&!this.j.isContextLost()){var b=this.j;0<this.Gj&&(b.bindBuffer(b.ARRAY_BUFFER,this.Fj),b.bufferSubData(b.ARRAY_BUFFER,0,this.Bm.subarray(0,this.Gj)),e&&0<=e.Nb&&"<point>"===e.name&&b.vertexAttribPointer(e.Nb,4,b.FLOAT,!1,0,0));if(0<this.bd){var e=this.te;b.bindBuffer(b.ARRAY_BUFFER,this.sg[this.Ec]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Vh.subarray(0,this.bd));e&&0<=e.Nb&&"<point>"!==e.name&&
b.vertexAttribPointer(e.Nb,this.U?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.ng[this.Ec]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Mh.subarray(0,this.Ze));e&&0<=e.Cd&&"<point>"!==e.name&&b.vertexAttribPointer(e.Cd,2,b.FLOAT,!1,0,0)}for(var c,b=0,e=this.Dc;b<e;b++)switch(c=this.kd[b],c.type){case 1:c.kp();break;case 2:c.tp();break;case 3:c.qp();break;case 4:c.mp();break;case 5:c.wp();break;case 6:c.lp();break;case 7:c.hp();break;case 8:c.jp();break;case 9:c.rp();break;case 10:c.sp();break;case 11:c.up();
break;case 12:c.np();break;case 13:c.op();break;case 14:c.pp()}this.Gj=this.Ze=this.bd=this.Dc=0;this.Ug=this.Na=!1;this.Ec++;4<=this.Ec&&(this.Ec=0)}};h.prototype.Ve=function(b){if(b!==this.Gl&&!this.Ff){var e=this.nb();e.type=3;this.Gl=e.wm=b;this.Na=!1}};h.prototype.Ab=function(b){if(b!==this.yd){var e=this.nb();e.type=2;this.yd=e.Ub=b;this.Na=!1}};h.prototype.Gd=function(b,e){if((b!==this.Hl||e!==this.Fl)&&!this.Ff){var c=this.nb();c.type=4;c.Va=b;c.uc=e;this.Hl=b;this.Fl=e;this.Na=!1}};h.prototype.Pm=
function(){this.Gd(this.j.ONE,this.j.ONE_MINUS_SRC_ALPHA)};h.prototype.eg=function(b,e,c,a,d,k,g,f){15992<=this.bd&&this.pd();var h=this.bd,q=this.Ze,m=this.Vh,n=this.Mh,y=this.si;if(this.Na)this.kd[this.Dc-1].uc+=6;else{var l=this.nb();l.type=1;l.Va=this.U?h:h/2*3;l.uc=6;this.Na=!0}this.U?(m[h++]=b,m[h++]=e,m[h++]=y,m[h++]=c,m[h++]=a,m[h++]=y,m[h++]=d,m[h++]=k,m[h++]=y,m[h++]=g,m[h++]=f,m[h++]=y):(m[h++]=b,m[h++]=e,m[h++]=c,m[h++]=a,m[h++]=d,m[h++]=k,m[h++]=g,m[h++]=f);n[q++]=0;n[q++]=0;n[q++]=1;
n[q++]=0;n[q++]=1;n[q++]=1;n[q++]=0;n[q++]=1;this.bd=h;this.Ze=q};h.prototype.Fd=function(b,e,c,a,d,k,g,f,h){15992<=this.bd&&this.pd();var q=this.bd,m=this.Ze,n=this.Vh,y=this.Mh,l=this.si;if(this.Na)this.kd[this.Dc-1].uc+=6;else{var p=this.nb();p.type=1;p.Va=this.U?q:q/2*3;p.uc=6;this.Na=!0}var p=h.left,r=h.top,B=h.right;h=h.bottom;this.U?(n[q++]=b,n[q++]=e,n[q++]=l,n[q++]=c,n[q++]=a,n[q++]=l,n[q++]=d,n[q++]=k,n[q++]=l,n[q++]=g,n[q++]=f,n[q++]=l):(n[q++]=b,n[q++]=e,n[q++]=c,n[q++]=a,n[q++]=d,n[q++]=
k,n[q++]=g,n[q++]=f);y[m++]=p;y[m++]=r;y[m++]=B;y[m++]=r;y[m++]=B;y[m++]=h;y[m++]=p;y[m++]=h;this.bd=q;this.Ze=m};h.prototype.$a=function(b){if(this.Mf!==b){if(!this.ea[b]){if(0===this.Mf)return;b=0}var e=this.nb();e.type=9;this.Mf=e.Va=b;this.Na=!1}};h.prototype.ag=function(b){b=this.ea[b];return!(!b.fe&&!b.ee)};h.prototype.Ij=function(b){b=this.ea[b];return!!(b.fe||b.ee||b.Wk)};h.prototype.Hj=function(b){return this.ea[b].hc};h.prototype.Lr=function(b){b=this.ea[b];return 0!==b.Bi||0!==b.Ci};h.prototype.zq=
function(b){return this.ea[b].Bi};h.prototype.Aq=function(b){return this.ea[b].Ci};h.prototype.Bq=function(b,e){return this.ea[b].D[e][2]};h.prototype.wh=function(b){return this.ea[b].Dk};h.prototype.We=function(b,e,c,a,d,k,g,f,h,q,m,n,l,p,r){var X=this.ea[this.Mf],B,t;if(X.Rq||r.length){B=this.nb();B.type=10;B.C?ac(this.yb,B.C):B.C=$b();t=B.C;t[0]=e;t[1]=c;t[2]=a;t[3]=d;t[4]=k;t[5]=g;t[6]=f;t[7]=h;t[8]=q;t[9]=m;t[10]=n;t[11]=l;t[12]=p;X.Rf?B.Ub=b:B.Ub=null;if(r.length)for(c=B.Ym,c.length=r.length,
b=0,e=r.length;b<e;b++)c[b]=r[b];this.Na=!1}};h.prototype.clear=function(b,e,c,a){var d=this.nb();d.type=7;d.Va=0;d.C||(d.C=$b());d.C[0]=b;d.C[1]=e;d.C[2]=c;d.C[3]=a;this.Na=!1};h.prototype.clearRect=function(b,e,c,a){if(!(0>c||0>a)){var d=this.nb();d.type=7;d.Va=1;d.C||(d.C=$b());d.C[0]=b;d.C[1]=e;d.C[2]=c;d.C[3]=a;this.Na=!1}};h.prototype.Sm=function(b){if(this.U&&(b=!!b,this.Ff!==b)){var e=this.nb();e.type=14;e.Va=b?1:0;this.Na=!1;this.Ff=b;this.yh=null;this.Ff?this.$a(2):this.$a(0)}};h.prototype.Rm=
function(b){if(this.U){var e=this.nb();e.type=13;e.Va=b?1:0;this.Na=!1}};h.prototype.hl=function(){ac(this.mj,u);this.Pb();this.Db();var b=this.width/2,e=this.height/2;this.eg(-b,e,b,e,b,-e,-b,-e);ac(u,this.yb);this.Db()};h.prototype.Qm=function(b,e,c){this.$a(3);var a=this.nb();a.type=12;a.C||(a.C=$b());a.C[0]=b;a.C[1]=e;a.C[2]=c;a.C[3]=1;this.Na=!1};h.prototype.as=function(){this.$a(0)};h.prototype.Qr=function(){this.$a(2)};h.prototype.Kr=function(){this.pd();this.j.flush()};var t=[],f={};h.prototype.Yo=
function(){Q(t);f={}};h.prototype.Ll=function(b,e,c){var a;a=!1;e=!!e;var d=b.src+","+a+","+e+(a?",undefined":""),k=null;if("undefined"!==typeof b.src&&f.hasOwnProperty(d))return k=f[d],k.yg++,k;this.pd();var g=this.j,h=ha(b.width)&&ha(b.height),k=g.createTexture();g.bindTexture(g.TEXTURE_2D,k);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var l=g.RGBA,q=g.RGBA,m=g.UNSIGNED_BYTE;if(c&&!this.ud)switch(c){case 1:q=l=g.RGB;break;case 2:m=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:m=g.UNSIGNED_SHORT_5_5_5_1;
break;case 4:q=l=g.RGB,m=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!h&&a){c=document.createElement("canvas");c.width=ka(b.width);c.height=ka(b.height);var n=c.getContext("2d");"undefined"!==typeof n.imageSmoothingEnabled?n.imageSmoothingEnabled=e:(n.webkitImageSmoothingEnabled=e,n.mozImageSmoothingEnabled=e,n.msImageSmoothingEnabled=e);n.drawImage(b,0,0,b.width,b.height,0,0,c.width,c.height);g.texImage2D(g.TEXTURE_2D,0,l,q,m,c)}else g.texImage2D(g.TEXTURE_2D,0,l,q,m,b);a?(g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));e?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(h||2<=this.version)&&this.al?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.yd=null;k.Sd=b.width;k.Rd=b.height;k.yg=1;k.Pk=d;t.push(k);return f[d]=k};h.prototype.sb=function(b,e,c,a){this.pd();var d=this.j;this.ud&&(a=!1);var k=d.createTexture();d.bindTexture(d.TEXTURE_2D,k);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,b,e,0,d.RGBA,a?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,
d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,c?d.LINEAR:d.NEAREST);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,c?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.yd=null;k.Sd=b;k.Rd=e;t.push(k);return k};h.prototype.ss=function(b,e,c){this.pd();var a=this.j;this.ud&&(c=!1);a.bindTexture(a.TEXTURE_2D,e);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,c?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(d){console&&
console.error&&console.error("Error updating WebGL texture: ",d)}a.bindTexture(a.TEXTURE_2D,null);this.yd=null};h.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.yg&&1<b.yg?b.yg--:(this.pd(),b===this.yd&&(this.j.bindTexture(this.j.TEXTURE_2D,null),this.yd=null),b===this.ae&&(this.j.activeTexture(this.j.TEXTURE1),this.j.bindTexture(this.j.TEXTURE_2D,null),this.j.activeTexture(this.j.TEXTURE0),this.ae=null),Ea(t,b),"undefined"!==typeof b.Pk&&delete f[b.Pk],this.j.deleteTexture(b)))};
h.prototype.Rb=function(b){if(b!==this.yh){var e=this.nb();e.type=6;this.yh=e.Ub=b;this.Na=!1}};ib=h})();
(function(){function h(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.Lb=(this.aj=/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.Nc=!!a.dc;this.Xq="undefined"!==typeof window.AppMobi||
this.Nc;this.wb=!!window.c2cocoonjs;this.Mb=!!window.c2ejecta;this.wb&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.Mb&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.na=this.Nc||this.wb||this.Mb;this.Vg=
/edge\//i.test(navigator.userAgent);this.ud=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Vg;this.zl=/tizen/i.test(navigator.userAgent);this.$i=/android/i.test(navigator.userAgent)&&!this.zl&&!this.ud&&!this.Vg;this.El=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.ud&&!this.Vg;this.fr=/ipad/i.test(navigator.userAgent);this.Zg=this.El||this.fr||this.Mb;this.Zq=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.ud&&!this.Vg;this.Wq=/amazonwebappplatform/i.test(navigator.userAgent);this.$q=/firefox/i.test(navigator.userAgent);this.dj="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Bl=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.dr=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.If=!("undefined"===
typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.jj=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.ij=!!window.cr_windows10;this.hj=this.Bl||this.dr||this.jj||this.ij;this.Yq=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.yl=this.$i&&!this.Zq&&!this.aj&&!this.$q&&!this.Wq&&!this.na;this.devicePixelRatio=1;this.wd=this.Lb||this.aj||this.Xq||this.wb||this.$i||this.Zg||this.If||this.jj||this.Yq||this.zl||this.Mb;this.wd||
(this.wd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Al=!!(this.Zg&&this.Lb&&window.webkit);"undefined"===typeof cr_is_preview||this.dj||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.dj=!0);this.canvas=a;this.Rk=document.getElementById("c2canvasdiv");this.m=this.j=null;this.Pi="(unavailable)";this.U=!1;this.Wd=0;this.aa=null;this.Lg=!1;this.nm=this.om=
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.Nc&&(window.c2runtime=this);this.dj&&(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.yl&&"undefined"!==
typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.r=this.width;this.q=this.height;this.Bg=this.width;this.rf=this.height;this.Je=window.innerWidth;this.Ie=window.innerHeight;this.F=!0;this.Hf=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.i=[];this.Z=[];this.pj={};this.fc=[];this.Ai={};this.Jc=[];this.ef=[];this.Qh=[];this.Po=[];this.Qo=[];this.Ud={};this.cj=this.sd=!1;this.Pc=0;this.bj=this.fj=
!1;this.pc=[];this.Gf=!1;this.fh=this.Vj="";this.qa=null;this.Qc="";this.lg=this.$m=!1;this.Kg=[];this.Vd=this.ve=0;this.hm=30;this.qi=this.Vf=0;this.og=1;this.lb=new Za;this.Wh=new Za;this.oh=this.Og=this.Hg=this.$c=this.de=this.Fi=this.$g=0;this.lf=null;this.Yk=[];this.yi=[];this.Gg=-1;this.uj=[[]];this.ek=this.jh=0;this.Kj(null);this.vf=this.km=this.Xf=0;this.mg=[];this.bk=this.Mj=-1;this.Kf=!0;this.hh=0;this.Wg=!1;this.bs=0;this.kf=null;this.vd=this.pl=!1;this.mm=new ca;this.zj=new ca;this.Aj=
new ca;this.Km=[];new ab([]);new ab([]);this.re=[];this.Bf={};this.md={};this.hd={};this.df={};this.Mk={};this.Kl=this.eh=this.ka=this.pa=this.Jl=this.dh=this.O=null;this.bf=this.kj=!1;this.Gi=[null,null];this.Ae=0;this.Tc={};this.jg=this.Ad=null;this.bn="";this.nh=[];this.Pr()}}function l(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function p(){try{return!!window.indexedDB}catch(a){return!1}}function r(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function u(a,b,d,c){try{var g=
indexedDB.open("_C2SaveStates");g.onupgradeneeded=r;g.onerror=c;g.onsuccess=function(g){g=g.target.result;g.onerror=c;g.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=d}}catch(m){c(m)}}function t(a,b,d){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=r;c.onerror=d;c.onsuccess=function(c){c=c.target.result;c.onerror=d;var g=c.transaction(["saves"]).objectStore("saves").get(a);g.onsuccess=function(){g.result?b(g.result.data):b(null)}}}catch(g){d(g)}}
function f(){x("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function b(a){var b,d={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ca||a[b]&&"undefined"!==typeof a[b].Et||"spriteCreatedDestroyCallback"!==b&&(d[b]=a[b]);return d}var e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||
window.oRequestAnimationFrame;h.prototype.Pr=function(){var a=this;if(this.Al)this.mq(function(b){a.Of(JSON.parse(b))},function(){alert("Error fetching data.js")});else{var b;this.If?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var d="data.js";if(this.Bl||this.If||this.jj||this.ij)d="data.json";b.open("GET",d,!0);var c=!1;if(!this.na&&"response"in b&&"responseType"in b)try{b.responseType="json",c="json"===b.responseType}catch(g){c=!1}if(!c&&"responseType"in b)try{b.responseType="text"}catch(m){}if("overrideMimeType"in
b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(k){}this.If?b.onreadystatechange=function(){4===b.readyState&&a.Of(JSON.parse(b.responseText))}:(b.onload=function(){if(c)a.Of(b.response);else if(a.Mb){var d=b.responseText,d=d.substr(d.indexOf("{"));a.Of(JSON.parse(d))}else a.Of(JSON.parse(b.responseText))},b.onerror=function(a){ea("Error requesting "+d+":");ea(a)});b.send()}};h.prototype.Uq=function(){var a=this,b,d,c,g,m,k,e,f,n;this.Ee=(!this.na||this.Mb||this.Lb)&&this.ns&&!this.yl;
0===this.Ya&&this.Zg&&(this.Ee=!1);this.devicePixelRatio=this.Ee?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&window.StatusBar.hide();this.Ja();0<this.Ya&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.qr();x("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",
function(){a.m.tl();a.m.je(a.m.width,a.m.height,!0);a.pa=null;a.ka=null;a.Gi[0]=null;a.Gi[1]=null;a.rr();a.F=!0;x("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Ep&&(this.wb||this.Mb||!this.na)&&(b={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.$i||(this.j=this.canvas.getContext("webgl2",b)),this.j||(this.j=this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b)))}catch(q){}if(this.j){if(b=
this.j.getExtension("WEBGL_debug_renderer_info"))this.Pi=this.j.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.j.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.U&&(this.Pi+=" [front-to-back enabled]");this.na||(this.Ha=document.createElement("canvas"),jQuery(this.Ha).appendTo(this.canvas.parentNode),this.Ha.oncontextmenu=function(){return!1},this.Ha.onselectstart=function(){return!1},this.Ha.width=Math.round(this.Bg*this.devicePixelRatio),this.Ha.height=Math.round(this.rf*this.devicePixelRatio),
jQuery(this.Ha).css({width:this.Bg+"px",height:this.rf+"px"}),this.Dm(),this.Ej=this.Ha.getContext("2d"));this.m=new ib(this.j,this.wd,this.U);this.m.je(this.canvas.width,this.canvas.height);this.m.al=0!==this.xp;this.aa=null;b=0;for(d=this.i.length;b<d;b++)for(m=this.i[b],c=0,g=m.u.length;c<g;c++)e=m.u[c],e.la=this.m.Oi(e.id),e.hc=this.m.Hj(e.la),this.bf=this.bf||this.m.ag(e.la);b=0;for(d=this.fc.length;b<d;b++){f=this.fc[b];c=0;for(g=f.u.length;c<g;c++)e=f.u[c],e.la=this.m.Oi(e.id),e.hc=this.m.Hj(e.la);
f.lc();c=0;for(g=f.A.length;c<g;c++){n=f.A[c];m=0;for(k=n.u.length;m<k;m++)e=n.u[m],e.la=this.m.Oi(e.id),e.hc=this.m.Hj(e.la),this.bf=this.bf||this.m.ag(e.la);n.lc()}}}else{if(0<this.Ya&&this.Nc){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.aa=AppMobi.canvas.getContext("2d");try{this.aa.samplingMode=this.fa?"smooth":"sharp",this.aa.globalScale=1,this.aa.HTML5CompatibilityMode=!0,this.aa.imageSmoothingEnabled=this.fa}catch(h){}0!==this.width&&
0!==this.height&&(this.aa.width=this.width,this.aa.height=this.height)}this.aa||(this.wb?(b={antialias:!!this.fa,alpha:!0},this.aa=this.canvas.getContext("2d",b)):(b={alpha:!0},this.aa=this.canvas.getContext("2d",b)),this.Ch(this.aa,this.fa));this.Ej=this.Ha=null}this.ln=function(b){a.Id(!1,b)};window==window.top||this.na||this.hj||this.If||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&
(this.wb&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(x("Reloading for continuous preview"),this.fh="__c2_continuouspreview",this.lg=!0),this.Dr&&!this.wd&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var b=window.parent;b&&b.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){});this.na||(b=function(a){if(hb(a)&&document.activeElement&&document.activeElement!==
document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.Ya&&this.Ee&&1<this.devicePixelRatio&&this.setSize(this.ta,this.ra,!0);this.rn();this.Oq();this.go();this.J={}};h.prototype.setSize=function(a,
b,d){var c=0,g=0,m=0,k=0,k=0;if(this.Je!==a||this.Ie!==b||d){this.Je=a;this.Ie=b;var e=this.Ya;if((m=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Wg)&&!this.Lb)||0!==this.Ya||d)m&&(e=this.Ae),d=this.devicePixelRatio,4<=e?(5===e&&1!==d&&(a+=1,b+=1),m=this.ta/this.ra,a/b>m?(m*=b,5===e?(k=m*d/this.ta,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),m=this.ta*k/d,k=this.ra*k/d,c=(a-m)/2,g=(b-k)/2,a=m,b=k):(c=(a-m)/2,a=m)):(k=a/m,5===e?(k=
k*d/this.ra,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),m=this.ta*k/d,k=this.ra*k/d,c=(a-m)/2,g=(b-k)/2,a=m):g=(b-k)/2,b=k)):m&&0===e&&(c=Math.floor((a-this.ta)/2),g=Math.floor((b-this.ra)/2),a=this.ta,b=this.ra),2>e&&(this.jf=d),this.Bg=Math.round(a),this.rf=Math.round(b),this.width=Math.round(a*d),this.height=Math.round(b*d),this.F=!0,this.An?(this.r=this.width,this.q=this.height,this.tb=!0):this.width<this.ta&&this.height<this.ra||1===e?(this.r=this.width,this.q=this.height,this.tb=!0):(this.r=
this.ta,this.q=this.ra,this.tb=!1,2===e?(m=this.ta/this.ra,e=this.Je/this.Ie,e<m?this.r=this.q*e:e>m&&(this.q=this.r/e)):3===e&&(m=this.ta/this.ra,e=this.Je/this.Ie,e>m?this.r=this.q*e:e<m&&(this.q=this.r/e))),this.Rk&&!this.na&&(jQuery(this.Rk).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(g)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=
Math.round(a*d),this.canvas.height=Math.round(b*d),this.Mb?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(g)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.Ee&&!this.na&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.Ha&&(this.Ha.width=Math.round(a*d),this.Ha.height=Math.round(b*d),this.Ha.style.width=this.Bg+"px",this.Ha.style.height=this.rf+"px"),this.m&&this.m.je(Math.round(a*
d),Math.round(b*d)),this.Nc&&this.aa&&(this.aa.width=Math.round(a),this.aa.height=Math.round(b)),this.aa&&this.Ch(this.aa,this.fa),this.rn(),this.El&&!this.Lb&&window.scrollTo(0,0)}};h.prototype.rn=function(){if(this.So&&0!==this.Dj){var a="portrait";2===this.Dj&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?
screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",b)}}};h.prototype.qr=function(){this.m.Yo();this.kj=!0;var a,b,d;a=0;for(b=this.i.length;a<b;a++)d=this.i[a],d.Bj&&d.Bj()};h.prototype.rr=function(){this.kj=!1;var a,b,d;a=0;for(b=this.i.length;a<b;a++)d=this.i[a],d.tm&&d.tm()};h.prototype.Dm=function(){if(!this.na){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||
document.msFullscreenElement||this.Wg)&&!this.Lb?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Ha).css(a)}};var c=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;h.prototype.setSuspended=function(a){var b;if(a&&!this.Hf)for(x("[Construct 2] Suspending"),this.Hf=!0,-1!==this.Mj&&c&&c(this.Mj),-1!==this.bk&&clearTimeout(this.bk),a=0,b=this.mg.length;a<
b;a++)this.mg[a](!0);else if(!a&&this.Hf){x("[Construct 2] Resuming");this.Hf=!1;this.$g=S();this.de=S();a=this.Vf=this.Og=0;for(b=this.mg.length;a<b;a++)this.mg[a](!1);this.Id(!1)}};h.prototype.Oo=function(a){this.mg.push(a)};h.prototype.fd=function(a){return this.nh[a]};h.prototype.Of=function(a){a&&a.project||ea("Project model unavailable");a=a.project;this.name=a[0];this.gl=a[1];this.Ya=a[12];this.ta=a[10];this.ra=a[11];this.xm=this.ta/2;this.ym=this.ra/2;this.na&&!this.Mb&&(4<=a[12]||0===a[12])&&
(x("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Ya=3);this.kk=a[18];this.Bd=a[19];if(0===this.Bd){var b=new Image;b.crossOrigin="anonymous";this.Tm(b,"loading-logo.png");this.Ad={kh:b}}else if(4===this.Bd){b=new Image;b.src="";var d=new Image;d.src="";var c=new Image;c.src="";var g=new Image;g.src="";var m=new Image;m.src="";var k=new Image;k.src="";var e=new Image;e.src="";var f=new Image;f.src="";var n=new Image;n.src=
"";var q=new Image;q.src="";var h=new Image;h.src="";var w=new Image;w.src="";this.Ad={kh:[b,d,c,g],Hr:[m,k,e,f],us:[n,q,h,w]}}this.Xf=a[21];this.nh=ec();this.Ac=new W(this);b=0;for(d=a[2].length;b<d;b++)e=a[2][b],c=this.fd(e[0]),jb(e,c.prototype),f=new c(this),f.Gh=e[1],f.xd=e[2],f.Lt=e[5],f.im=e[9],f.ca&&f.ca(),this.plugins.push(f);this.nh=ec();b=0;for(d=a[3].length;b<d;b++){e=a[3][b];m=this.fd(e[1]);f=null;c=0;for(g=this.plugins.length;c<g;c++)if(this.plugins[c]instanceof m){f=this.plugins[c];
break}n=new f.pb(f);n.name=e[0];n.I=e[2];n.Yi=e[3].slice(0);n.qs=e[3].length;n.To=e[4];n.pq=e[5];n.G=e[11];n.I?(n.gm=[],n.Kc=this.vf++,n.Y=null):(n.gm=null,n.Kc=-1,n.Y=[]);n.Jg=null;n.ye=null;n.bl=null;n.xb=!1;n.fb=null;e[6]?(n.jn=e[6][0],n.kn=e[6][1],n.es=e[6][2]):(n.jn=null,n.kn=0,n.es=0);e[7]?n.cb=e[7]:n.cb=null;n.index=b;n.d=[];n.Eg=[];n.Zc=[new kb(n)];n.qc=0;n.rc=null;n.dp=0;n.Ye=!0;n.Rh=lb;n.sq=mb;n.yq=nb;n.R=ob;n.dg=pb;n.Jj=qb;n.Qe=rb;n.Pg=sb;n.Hi=tb;n.Ki=ub;n.jd=vb;n.Mi=wb;n.Uk=new bb(this.ta,
this.ra);n.Ek=!0;n.Fk=!1;n.J={};n.toString=xb;n.Z=[];c=0;for(g=e[8].length;c<g;c++){q=e[8][c];h=this.fd(q[1]);w=null;m=0;for(k=this.Z.length;m<k;m++)if(this.Z[m]instanceof h){w=this.Z[m];break}w||(w=new h(this),w.jm=[],w.xj=new ca,w.ca&&w.ca(),this.Z.push(w));-1===w.jm.indexOf(n)&&w.jm.push(n);m=new w.pb(w,n);m.name=q[0];m.G=q[2];m.ca();n.Z.push(m)}n.global=e[9];n.ej=e[10];n.u=[];c=0;for(g=e[12].length;c<g;c++)n.u.push({id:e[12][c][0],name:e[12][c][1],la:-1,hc:!1,qb:!0,index:c});n.$t=e[13];this.kk&&
!n.I&&!n.ej&&f.xd||n.ca();n.name&&(this.types[n.name]=n);this.i.push(n);f.Gh&&(c=new f.Qa(n),c.uid=this.Xf++,c.Hm=this.km++,c.$d=0,c.zf=yb,c.toString=zb,c.ja=e[14],c.ca(),n.d.push(c),this.Tc[c.uid.toString()]=c)}b=0;for(d=a[4].length;b<d;b++)for(m=a[4][b],k=this.i[m[0]],c=1,g=m.length;c<g;c++)e=this.i[m[c]],e.Y.push(k),k.gm.push(e);b=0;for(d=a[28].length;b<d;b++){m=a[28][b];k=[];c=0;for(g=m.length;c<g;c++)k.push(this.i[m[c]]);c=0;for(g=k.length;c<g;c++)k[c].xb=!0,k[c].fb=k}if(0<this.vf)for(b=0,d=
this.i.length;b<d;b++)if(e=this.i[b],!e.I&&e.Y.length){e.Jg=Array(this.vf);e.ye=Array(this.vf);e.bl=Array(this.vf);n=[];c=w=h=q=0;for(g=e.Y.length;c<g;c++)for(f=e.Y[c],e.Jg[f.Kc]=q,q+=f.qs,e.ye[f.Kc]=h,h+=f.To,e.bl[f.Kc]=w,w+=f.pq,m=0,k=f.u.length;m<k;m++)n.push(ya({},f.u[m]));e.u=n.concat(e.u);c=0;for(g=e.u.length;c<g;c++)e.u[c].index=c}b=0;for(d=a[5].length;b<d;b++)e=a[5][b],c=new Ab(this,e),this.pj[c.name]=c,this.fc.push(c);b=0;for(d=a[6].length;b<d;b++)e=a[6][b],c=new Bb(this,e),this.Ai[c.name]=
c,this.Jc.push(c);b=0;for(d=this.Jc.length;b<d;b++)this.Jc[b].ia();b=0;for(d=this.Jc.length;b<d;b++)this.Jc[b].hk();b=0;for(d=this.Qh.length;b<d;b++)this.Qh[b].ia();Q(this.Qh);this.Ro=a[7];this.Wc=a[9];this.jf=1;this.Ep=a[13];this.fa=a[14];this.Tk=a[15];this.rs=a[16];this.ns=a[17];this.Dj=a[20];this.So=0<this.Dj;this.Dr=a[22];this.tb=this.An=a[23];this.xp=a[24];this.Ir=a[25];this.U=a[27]&&!this.ud;this.Hh=Date.now();Q(this.nh);this.Uq()};var a=!1,d=0,k=[];h.prototype.Or=function(a,b){function c(){d--;
g.em()}var g=this;a.addEventListener("load",c);a.addEventListener("error",c);k.push([a,b]);this.em()};h.prototype.em=function(){for(var a;k.length&&100>d;)d++,a=k.shift(),this.Tm(a[0],a[1])};h.prototype.ts=function(b,d){b.cocoonLazyLoad=!0;b.onerror=function(d){a=b.Ok=!0;console&&console.error&&console.error("Error loading image '"+b.src+"': ",d)};this.Mb?b.src=d:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(d,function(a){b.src=a},function(c){a=b.Ok=!0;console&&console.error&&console.error("Error extracting image '"+
d+"' from expansion file: ",c)}):(b.crossOrigin="anonymous",this.Or(b,d)));this.ef.push(b)};h.prototype.oq=function(a){var b,d;b=0;for(d=this.ef.length;b<d;b++)if(this.ef[b].$o===a)return this.ef[b];return null};var g=0,w=!1;h.prototype.Oq=function(){this.kf&&(g=this.kf.Wt(this.Ro))};h.prototype.Gk=function(){var a=g,b=0,d=0,c=!0,m,k,d=0;for(m=this.ef.length;d<m;d++){k=this.ef[d];var e=k.Zo;if(!e||0>=e)e=5E4;a+=e;k.src&&(k.complete||k.loaded)&&!k.Ok?b+=e:c=!1}c&&this.Ir&&this.kf&&(w||(this.kf.Xt(),
w=!0),d=this.kf.Jt(),b+=d,d<g&&(c=!1));this.ic=0==a?1:b/a;return c};var z=!1;h.prototype.go=function(){if(this.aa||this.m){var b=this.aa||this.Ej;this.Ha&&this.Dm();var d=window.innerWidth,c=window.innerHeight;this.Je===d&&this.Ie===c||this.setSize(d,c);this.ic=0;this.Il=-1;var g=this;if(this.Gk()&&(4!==this.Bd||z))this.Pq();else{c=Date.now()-this.Hh;if(b){var m=this.width,k=this.height,d=this.devicePixelRatio;if(3>this.Bd&&(this.wb||500<=c&&this.Il!=this.ic)){b.clearRect(0,0,m,k);var c=m/2,k=k/2,
m=0===this.Bd&&this.Ad.kh.complete,n=40*d,f=0,q=80*d,h;if(m){var w=this.Ad.kh,q=w.width*d;h=w.height*d;n=q/2;f=h/2;b.drawImage(w,O(c-n),O(k-f),q,h)}1>=this.Bd?(c=O(c-n)+.5,k=O(k+(f+(m?12*d:0)))+.5,b.fillStyle=a?"red":"DodgerBlue",b.fillRect(c,k,Math.floor(q*this.ic),6*d),b.strokeStyle="black",b.strokeRect(c,k,q,6*d),b.strokeStyle="white",b.strokeRect(c-1*d,k-1*d,q+2*d,8*d)):2===this.Bd&&(b.font=this.Mb?"12pt ArialMT":"12pt Arial",b.fillStyle=a?"#f00":"#999",b.Zt="middle",d=Math.round(100*this.ic)+
"%",m=b.measureText?b.measureText(d):null,b.fillText(d,c-(m?m.width:0)/2,k));this.Il=this.ic}else if(4===this.Bd){this.Cp(b);e?e(function(){g.go()}):setTimeout(function(){g.go()},16);return}}setTimeout(function(){g.go()},this.wb?10:100)}}};var q=-1,m="undefined"===typeof cr_is_preview?200:0,n=!0,y=!1,ia=0,ua=0,X="undefined"===typeof cr_is_preview?3E3:0,B=null,U=null,F=0;h.prototype.Cp=function(b){if(!z){for(var d=Math.ceil(this.width),c=Math.ceil(this.height),g=this.Ad.kh,k=this.Ad.Hr,e=this.Ad.us,
f=0;4>f;++f)if(!g[f].complete||!k[f].complete||!e[f].complete)return;0===F&&(q=Date.now());var f=Date.now(),h=!1,w=b,p,r;n||y?(b.clearRect(0,0,d,c),B&&B.width===d&&B.height===c||(B=document.createElement("canvas"),B.width=d,B.height=c,U=B.getContext("2d")),w=U,h=!0,n&&1===F&&(q=Date.now())):b.globalAlpha=1;w.fillStyle="#333333";w.fillRect(0,0,d,c);256<this.rf?(p=Fa(.22*c,105,.6*d),r=.25*p,w.drawImage(l(k,p),.5*d-p/2,.2*c-r/2,p,r),r=p=Math.min(.395*c,.95*d),w.drawImage(l(g,p),.5*d-p/2,.485*c-r/2,p,
r),p=Fa(.22*c,105,.6*d),r=.25*p,w.drawImage(l(e,p),.5*d-p/2,.868*c-r/2,p,r),w.fillStyle="#3C3C3C",p=d,r=Math.max(.005*c,2),w.fillRect(0,.8*c-r/2,p,r),w.fillStyle=a?"red":"#E0FF65",p=d*this.ic,w.fillRect(.5*d-p/2,.8*c-r/2,p,r)):(r=p=.55*c,w.drawImage(l(g,p),.5*d-p/2,.45*c-r/2,p,r),w.fillStyle="#3C3C3C",p=d,r=Math.max(.005*c,2),w.fillRect(0,.85*c-r/2,p,r),w.fillStyle=a?"red":"#E0FF65",p=d*this.ic,w.fillRect(.5*d-p/2,.85*c-r/2,p,r));h&&(n?b.globalAlpha=0===F?0:Math.min((f-q)/300,1):y&&(b.globalAlpha=
Math.max(1-(f-ua)/300,0)),b.drawImage(B,0,0,d,c));n&&300<=f-q&&2<=F&&(n=!1,ia=f);!n&&f-ia>=X&&!y&&1<=this.ic&&(y=!0,ua=f);if(y&&f-ua>=300+m||"undefined"!==typeof cr_is_preview&&1<=this.ic&&500>Date.now()-q)z=!0,y=n=!1,this.Ad=U=B=null;++F}};h.prototype.Pq=function(){this.Ha&&(this.canvas.parentNode.removeChild(this.Ha),this.Ha=this.Ej=null);this.Hh=Date.now();this.de=S();var a,b,d;if(this.kk)for(a=0,b=this.i.length;a<b;a++)d=this.i[a],d.I||d.ej||!d.ga.xd||d.ca();else this.Kf=!1;a=0;for(b=this.fc.length;a<
b;a++)this.fc[a].bp();2<=this.Ya&&(a=this.ta/this.ra,b=this.width/this.height,this.jf=2!==this.Ya&&b>a||2===this.Ya&&b<a?this.height/this.ra:this.width/this.ta);this.gl?this.pj[this.gl].Yj():this.fc[0].Yj();this.kk||(this.hh=1,this.trigger(W.prototype.e.pk,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.i.length;a<b;a++)d=this.i[a],d.pm&&d.pm();document.hidden||document.webkitHidden||document.mozHidden||
document.msHidden?window.cr_setSuspended(!0):this.Id(!1);this.Nc&&AppMobi.webview.execute("onGameReady();")};h.prototype.Id=function(a,b,d){if(this.O){var c=S();if(d||!this.Hf||a){a||(e?this.Mj=e(this.ln):this.bk=setTimeout(this.ln,this.wd?1:16));b=b||c;var g=this.Ya;((d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Lb)||this.Wg)&&0<this.Ae&&(g=this.Ae);if(0<g){var g=window.innerWidth,m=window.innerHeight;this.Je===g&&this.Ie===m||
this.setSize(g,m)}this.na||(d?this.Lg||(this.Lg=!0):this.Lg?(this.Lg=!1,0===this.Ya&&this.setSize(Math.round(this.om/this.devicePixelRatio),Math.round(this.nm/this.devicePixelRatio),!0)):(this.om=this.width,this.nm=this.height));this.Kf&&(d=this.Gk(),this.hh=this.ic,d&&(this.Kf=!1,this.ic=1,this.trigger(W.prototype.e.pk,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.lr(b);!this.F&&!this.wb||this.kj||this.lg||a||(this.F=!1,this.m?this.Kb():this.Ic(),this.jg&&(this.canvas&&this.canvas.toDataURL&&
(this.bn=this.canvas.toDataURL(this.jg[0],this.jg[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.bn),this.trigger(W.prototype.e.Xn,null)),this.jg=null));this.Kt||(this.$c++,this.Hg++,this.Og++);this.Vf+=S()-c}}};h.prototype.lr=function(a){var b,d,c,g,m,k,e,n;1E3<=a-this.de&&(this.de+=1E3,1E3<=a-this.de&&(this.de=a),this.Fi=this.Og,this.Og=0,this.qi=this.Vf,this.Vf=0);b=0;0!==this.$g&&(b=a-this.$g,0>b&&(b=0),this.Vd=b/=1E3,.5<this.Vd?this.Vd=0:this.Vd>1/this.hm&&(this.Vd=1/this.hm));this.$g=a;
this.ve=this.Vd*this.og;this.lb.add(this.ve);this.Wh.add(b);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Wg)&&!this.Lb;2<=this.Ya||a&&0<this.Ae?(b=this.ta/this.ra,d=this.width/this.height,c=this.Ya,a&&0<this.Ae&&(c=this.Ae),this.jf=2!==c&&d>b||2===c&&d<b?this.height/this.ra:this.width/this.ta,this.O&&(this.O.Nm(this.O.scrollX),this.O.Om(this.O.scrollY))):this.jf=this.Ee?this.devicePixelRatio:1;this.Ja();this.Pc++;this.Ac.Tr();this.Pc--;
this.Ja();this.Pc++;d=this.mm.Kd();a=0;for(b=d.length;a<b;a++)d[a].St();a=0;for(b=this.i.length;a<b;a++)if(k=this.i[a],!k.I&&(k.Z.length||k.Y.length))for(d=0,c=k.d.length;d<c;d++)for(e=k.d[d],g=0,m=e.B.length;g<m;g++)e.B[g].Id();a=0;for(b=this.i.length;a<b;a++)if(k=this.i[a],!k.I&&(k.Z.length||k.Y.length))for(d=0,c=k.d.length;d<c;d++)for(e=k.d[d],g=0,m=e.B.length;g<m;g++)n=e.B[g],n.Gr&&n.Gr();d=this.zj.Kd();a=0;for(b=d.length;a<b;a++)d[a].Id();this.Pc--;this.Qq();for(a=0;this.lf&&10>a++;)this.$k(this.lf);
a=0;for(b=this.Jc.length;a<b;a++)this.Jc[a].Si=!1;this.O.Xd&&this.O.Xd.ua();Q(this.Km);this.Pc++;a=0;for(b=this.i.length;a<b;a++)if(k=this.i[a],!k.I&&(k.Z.length||k.Y.length))for(d=0,c=k.d.length;d<c;d++)for(e=k.d[d],g=0,m=e.B.length;g<m;g++)n=e.B[g],n.$j&&n.$j();d=this.Aj.Kd();a=0;for(b=d.length;a<b;a++)d[a].$j();this.Pc--};h.prototype.$k=function(a){var b=this.O;this.O.cs();var d,c,g;if(this.m)for(d=0,c=this.i.length;d<c;d++)g=this.i[d],g.I||!g.un||g.global&&0!==g.d.length||-1!==a.Ef.indexOf(g)||
g.un();b==a&&Q(this.Ac.ab);Q(this.Km);this.Lm(!0);a.Yj();this.Lm(!1);this.F=!0;this.Ja()};h.prototype.Lm=function(a){var b,d,c,g,m,k,e,n,f;b=0;for(d=this.Z.length;b<d;b++)c=this.Z[b],a?c.Yf&&c.Yf():c.Zf&&c.Zf();b=0;for(d=this.i.length;b<d;b++)if(c=this.i[b],c.global||c.ga.Gh)for(g=0,m=c.d.length;g<m;g++)if(k=c.d[g],a?k.Yf&&k.Yf():k.Zf&&k.Zf(),k.B)for(e=0,n=k.B.length;e<n;e++)f=k.B[e],a?f.Yf&&f.Yf():f.Zf&&f.Zf()};h.prototype.ak=function(a){this.zj.add(a)};h.prototype.gs=function(a){this.Aj.add(a)};
h.prototype.Ii=function(a){return a&&-1!==a.Wf?this.Vd*a.Wf:this.ve};h.prototype.Ic=function(){this.O.Ic(this.aa);this.Nc&&this.aa.present()};h.prototype.Kb=function(){this.U&&(this.Wd=1,this.O.ue(this.m));this.O.Kb(this.m);this.m.Kr()};h.prototype.ol=function(a){a=a.toString();return this.Tc.hasOwnProperty(a)?this.Tc[a]:null};var G=[];h.prototype.Ld=function(a){var b,d;b=a.type.name;var c=null;if(this.Ud.hasOwnProperty(b)){if(c=this.Ud[b],c.contains(a))return}else c=G.length?G.pop():new ca,this.Ud[b]=
c;c.add(a);this.sd=!0;if(a.xb)for(b=0,d=a.siblings.length;b<d;b++)this.Ld(a.siblings[b]);this.cj&&c.cf.push(a);this.bj||(this.Pc++,this.trigger(Object.getPrototypeOf(a.type.ga).e.Yn,a),this.Pc--)};h.prototype.Ja=function(){if(this.sd){var a,b,d,c,g,m;this.cj=!0;d=0;for(g=this.pc.length;d<g;++d)for(a=this.pc[d],b=a.type,b.d.push(a),c=0,m=b.Y.length;c<m;++c)b.Y[c].d.push(a),b.Y[c].Ye=!0;Q(this.pc);this.Tn();Ua(this.Ud);this.sd=this.cj=!1}};h.prototype.Tn=function(){for(var a in this.Ud)this.Ud.hasOwnProperty(a)&&
this.Gn(this.Ud[a])};h.prototype.Gn=function(a){var b=a.Kd(),d=b[0].type,c,g,m,k,e,n;Wa(d.d,a);d.Ye=!0;0===d.d.length&&(d.Fk=!1);c=0;for(g=d.Y.length;c<g;++c)n=d.Y[c],Wa(n.d,a),n.Ye=!0;c=0;for(g=this.Ac.ab.length;c<g;++c)if(e=this.Ac.ab[c],e.Ua.hasOwnProperty(d.index)&&Wa(e.Ua[d.index].Mc,a),!d.I)for(m=0,k=d.Y.length;m<k;++m)n=d.Y[m],e.Ua.hasOwnProperty(n.index)&&Wa(e.Ua[n.index].Mc,a);if(e=b[0].g){if(e.Eb)for(m=e.d,c=0,g=m.length;c<g;++c)k=m[c],a.contains(k)&&(k.xa(),e.Ia.update(k,k.Za,null),k.Za.set(0,
0,-1,-1));Wa(e.d,a);e.gg(0)}for(c=0;c<b.length;++c)this.Fn(b[c],d);a.clear();G.push(a);this.F=!0};h.prototype.Fn=function(a,b){var d,c,g;d=0;for(c=this.Yk.length;d<c;++d)this.Yk[d](a);a.nd&&b.Uk.update(a,a.nd,null);(d=a.g)&&d.Te(a,!0);if(a.B)for(d=0,c=a.B.length;d<c;++d)g=a.B[d],g.ph&&g.ph(),g.behavior.xj.remove(a);this.mm.remove(a);this.zj.remove(a);this.Aj.remove(a);a.ph&&a.ph();this.Tc.hasOwnProperty(a.uid.toString())&&delete this.Tc[a.uid.toString()];this.oh--;100>b.Eg.length&&b.Eg.push(a)};var T=
[];h.prototype.Td=function(a,b,d,c,g,m){var k,e,n,f;if(!a)return null;var q=this.i[a[1]],h=q.ga.xd;if(this.Kf&&h&&!q.ej||h&&!this.m&&11===a[0][11])return null;var w=b;h||(b=null);var l;q.Eg.length?(l=q.Eg.pop(),l.zb=!0,q.ga.Qa.call(l,q)):(l=new q.ga.Qa(q),l.zb=!1);!d||m||this.Tc.hasOwnProperty(a[2].toString())?l.uid=this.Xf++:l.uid=a[2];this.Tc[l.uid.toString()]=l;l.Hm=this.km++;l.$d=q.d.length;k=0;for(e=this.pc.length;k<e;++k)this.pc[k].type===q&&l.$d++;l.zf=yb;l.toString=zb;n=a[3];if(l.zb)Ua(l.J);
else{l.J={};if("undefined"!==typeof cr_is_preview)for(l.xl=[],l.xl.length=n.length,k=0,e=n.length;k<e;k++)l.xl[k]=n[k][1];l.ma=[];l.ma.length=n.length}k=0;for(e=n.length;k<e;k++)l.ma[k]=n[k][0];if(h){var y=a[0];l.x=fa(c)?y[0]:c;l.y=fa(g)?y[1]:g;l.z=y[2];l.width=y[3];l.height=y[4];l.depth=y[5];l.k=y[6];l.opacity=y[7];l.jb=y[8];l.kb=y[9];l.Ka=y[10];k=y[11];!this.m&&q.u.length&&(l.Ka=k);l.nf=db(l.Ka);this.j&&eb(l,l.Ka,this.j);if(l.zb){k=0;for(e=y[12].length;k<e;k++)for(n=0,f=y[12][k].length;n<f;n++)l.ba[k][n]=
y[12][k][n];l.Da.set(0,0,0,0);l.nd.set(0,0,-1,-1);l.Za.set(0,0,-1,-1);l.Qd.Fh(l.Da);Q(l.fi)}else{l.ba=y[12].slice(0);k=0;for(e=l.ba.length;k<e;k++)l.ba[k]=y[12][k].slice(0);l.K=[];l.gd=[];l.gd.length=q.u.length;l.Da=new P(0,0,0,0);l.nd=new P(0,0,-1,-1);l.Za=new P(0,0,-1,-1);l.Qd=new sa;l.fi=[];l.wa=Cb;l.Dt=Db;l.Jb=Eb;l.xa=Fb;l.ms=Gb;l.au=Hb;l.tc=Ib}l.mn=!1;l.ks=0;l.js=0;l.hs=null;14===y.length&&(l.mn=!0,l.ks=y[13][0],l.js=y[13][1],l.hs=y[13][2]);k=0;for(e=q.u.length;k<e;k++)l.gd[k]=!0;l.Xc=!0;l.lc=
Jb;l.lc();l.yn=!!l.K.length;l.ei=!0;l.ki=!0;q.Ek=!0;l.visible=!0;l.Wf=-1;l.g=b;l.mc=b.d.length;l.Wd=0;"undefined"===typeof l.oc&&(l.oc=null);this.F=l.mf=!0}var z;Q(T);k=0;for(e=q.Y.length;k<e;k++)T.push.apply(T,q.Y[k].Z);T.push.apply(T,q.Z);if(l.zb)for(k=0,e=T.length;k<e;k++){var p=T[k];z=l.B[k];z.zb=!0;p.behavior.Qa.call(z,p,l);y=a[4][k];n=0;for(f=y.length;n<f;n++)z.ja[n]=y[n];z.ca();p.behavior.xj.add(l)}else for(l.B=[],k=0,e=T.length;k<e;k++)p=T[k],z=new p.behavior.Qa(p,l),z.zb=!1,z.ja=a[4][k].slice(0),
z.ca(),l.B.push(z),p.behavior.xj.add(l);y=a[5];if(l.zb)for(k=0,e=y.length;k<e;k++)l.ja[k]=y[k];else l.ja=y.slice(0);this.pc.push(l);this.sd=!0;b&&(b.hf(l,!0),1!==b.Uc||1!==b.Vc)&&(q.Fk=!0);this.oh++;if(q.xb){if(l.xb=!0,l.zb?Q(l.siblings):l.siblings=[],!d&&!m){k=0;for(e=q.fb.length;k<e;k++)if(q.fb[k]!==q){if(!q.fb[k].rc)return null;l.siblings.push(this.Td(q.fb[k].rc,w,!1,h?l.x:c,h?l.y:g,!0))}k=0;for(e=l.siblings.length;k<e;k++)for(l.siblings[k].siblings.push(l),n=0;n<e;n++)k!==n&&l.siblings[k].siblings.push(l.siblings[n])}}else l.xb=
!1,l.siblings=null;l.ca();k=0;for(e=l.B.length;k<e;k++)l.B[k].Fr&&l.B[k].Fr();return l};h.prototype.Qg=function(a){var b,d;b=0;for(d=this.O.A.length;b<d;b++){var c=this.O.A[b];if(gb(c.name,a))return c}return null};h.prototype.Be=function(a){a=O(a);0>a&&(a=0);a>=this.O.A.length&&(a=this.O.A.length-1);return this.O.A[a]};h.prototype.wq=function(a){return A(a)?this.Be(a):this.Qg(a.toString())};h.prototype.oi=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].R().W=!0};h.prototype.dg=function(a){var b,
d;b=0;for(d=a.length;b<d;b++)a[b].dg()};h.prototype.Jj=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].Jj()};h.prototype.Qe=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].Qe()};h.prototype.Lh=function(a,b,d){var c=a.R(),g,k,m,e,n=this.Sa().gb.gc,f,q,h;if(c.W)for(c.W=!1,Q(c.d),g=0,e=a.d.length;g<e;g++)m=a.d[g],m.xa(),f=m.g.Ra(b,d,!0),q=m.g.Ra(b,d,!1),m.Jb(f,q)?c.d.push(m):n&&c.H.push(m);else{k=0;h=n?c.H:c.d;g=0;for(e=h.length;g<e;g++)m=h[g],m.xa(),f=m.g.Ra(b,d,!0),q=m.g.Ra(b,d,!1),m.Jb(f,
q)&&(n?c.d.push(m):(c.d[k]=c.d[g],k++));h.length=k}a.jd();return c.Ri()};new sa;new P(0,0,0,0);h.prototype.sn=function(a,b){if(!b)return!1;var d,c,g,k,m;d=0;for(c=a.Z.length;d<c;d++)if(a.Z[d].behavior instanceof b)return!0;if(!a.I)for(d=0,c=a.Y.length;d<c;d++)for(m=a.Y[d],g=0,k=m.Z.length;g<k;g++)if(m.Z[g].behavior instanceof b)return!0;return!1};h.prototype.fk=function(a){return this.sn(a,Xb.Xs)};h.prototype.gk=function(a){return this.sn(a,Xb.Ys)};var ba=-1;h.prototype.trigger=function(a,b,d){if(!this.O)return!1;
var c=this.O.Xd;if(!c)return!1;var g=!1,k,m,e;ba++;var n=c.vi;m=0;for(e=n.length;m<e;++m)k=this.pn(a,b,n[m],d),g=g||k;k=this.pn(a,b,c,d);ba--;return g||k};h.prototype.pn=function(a,b,d,c){var g=!1,k,m,e,n;if(b)for(e=this.dk(a,b,b.type.name,d,c),g=g||e,n=b.type.Y,k=0,m=n.length;k<m;++k)e=this.dk(a,b,n[k].name,d,c),g=g||e;else e=this.dk(a,b,"system",d,c),g=g||e;return g};h.prototype.dk=function(a,b,d,c,g){var k,m=!1,e=!1,e="undefined"!==typeof g,n=(e?c.dl:c.qn)[d];if(!n)return m;var f=null;c=0;for(k=
n.length;c<k;++c)if(n[c].method==a){f=n[c].tf;break}if(!f)return m;var q;e?q=f[g]:q=f;if(!q)return null;c=0;for(k=q.length;c<k;c++)a=q[c][0],g=q[c][1],e=this.kq(b,d,a,g),m=m||e;return m};h.prototype.kq=function(a,b,d,c){var g,k,m=!1;this.ek++;var e=this.Sa().gb;e&&this.dg(e.Hd);var n=1<this.ek;this.dg(d.Hd);n&&this.Nr();var f=this.Kj(d);f.gb=d;a&&(g=this.types[b].R(),g.W=!1,Q(g.d),g.d[0]=a,this.types[b].jd());a=!0;if(d.parent){b=f.en;for(g=d.parent;g;)b.push(g),g=g.parent;b.reverse();g=0;for(k=b.length;g<
k;g++)if(!b[g].Vr()){a=!1;break}}a&&(this.Hg++,d.gc?d.Ur(c):d.ua(),m=m||f.be);this.Cm();n&&this.Er();this.Qe(d.Hd);e&&this.Qe(e.Hd);this.sd&&0===this.Pc&&0===ba&&!this.fj&&this.Ja();this.ek--;return m};h.prototype.jl=function(){var a=this.Sa();return a.gb.La[a.eb]};h.prototype.Nr=function(){this.jh++;this.jh>=this.uj.length&&this.uj.push([])};h.prototype.Er=function(){this.jh--};h.prototype.kl=function(){return this.uj[this.jh]};h.prototype.Kj=function(a){this.Gg++;this.Gg>=this.yi.length&&this.yi.push(new Kb);
var b=this.Sa();b.reset(a);return b};h.prototype.Cm=function(){this.Gg--};h.prototype.Sa=function(){return this.yi[this.Gg]};h.prototype.ll=function(a,b){for(var d,c,g,k,m,e;b;){d=0;for(c=b.Tb.length;d<c;d++)if(e=b.Tb[d],e instanceof Lb&&gb(a,e.name))return e;b=b.parent}d=0;for(c=this.Jc.length;d<c;d++)for(m=this.Jc[d],g=0,k=m.qd.length;g<k;g++)if(e=m.qd[g],e instanceof Lb&&gb(a,e.name))return e;return null};h.prototype.ml=function(a){var b,d;b=0;for(d=this.fc.length;b<d;b++)if(this.fc[b].G===a)return this.fc[b];
return null};h.prototype.Sg=function(a){var b,d;b=0;for(d=this.i.length;b<d;b++)if(this.i[b].G===a)return this.i[b];return null};h.prototype.tq=function(a){var b,d;b=0;for(d=this.re.length;b<d;b++)if(this.re[b].G===a)return this.re[b];return null};h.prototype.fp=function(a,b){this.jg=[a,b];this.F=!0};h.prototype.Qq=function(){var a=this,b=this.Vj,d=this.Qc,c=this.fh,g=!1;this.$m&&(g=!0,b="__c2_continuouspreview",this.$m=!1);if(b.length){this.Ja();d=this.Zr();if(p()&&!this.wb)u(b,d,function(){x("Saved state to IndexedDB storage ("+
d.length+" bytes)");a.Qc=d;a.trigger(W.prototype.e.Yh,null);d=a.Qc="";g&&f()},function(c){try{localStorage.setItem("__c2save_"+b,d),x("Saved state to WebStorage ("+d.length+" bytes)"),a.Qc=d,a.trigger(W.prototype.e.Yh,null),d=a.Qc="",g&&f()}catch(k){x("Failed to save game state: "+c+"; "+k),a.trigger(W.prototype.e.tk,null)}});else try{localStorage.setItem("__c2save_"+b,d),x("Saved state to WebStorage ("+d.length+" bytes)"),a.Qc=d,this.trigger(W.prototype.e.Yh,null),d=a.Qc="",g&&f()}catch(k){x("Error saving to WebStorage: "+
k),a.trigger(W.prototype.e.tk,null)}this.fh=this.Vj="";this.qa=null}if(c.length){if(p()&&!this.wb)t(c,function(b){b?(a.qa=b,x("Loaded state from IndexedDB storage ("+a.qa.length+" bytes)")):(a.qa=localStorage.getItem("__c2save_"+c)||"",x("Loaded state from WebStorage ("+a.qa.length+" bytes)"));a.lg=!1;a.qa||(a.qa=null,a.trigger(W.prototype.e.xg,null))},function(){a.qa=localStorage.getItem("__c2save_"+c)||"";x("Loaded state from WebStorage ("+a.qa.length+" bytes)");a.lg=!1;a.qa||(a.qa=null,a.trigger(W.prototype.e.xg,
null))});else{try{this.qa=localStorage.getItem("__c2save_"+c)||"",x("Loaded state from WebStorage ("+this.qa.length+" bytes)")}catch(m){this.qa=null}this.lg=!1;a.qa||(a.qa=null,a.trigger(W.prototype.e.xg,null))}this.Vj=this.fh=""}null!==this.qa&&(this.Ja(),this.jr(this.qa)?(this.Qc=this.qa,this.trigger(W.prototype.e.ho,null),this.Qc=""):a.trigger(W.prototype.e.xg,null),this.qa=null)};h.prototype.Zr=function(){var a,d,c,g,k,m,e,n={c2save:!0,version:1,rt:{time:this.lb.L,walltime:this.Wh.L,timescale:this.og,
tickcount:this.$c,execcount:this.Hg,next_uid:this.Xf,running_layout:this.O.G,start_time_offset:Date.now()-this.Hh},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(d=this.i.length;a<d;a++)if(k=this.i[a],!k.I&&!this.fk(k)){m={instances:[]};Ta(k.J)&&(m.ex=b(k.J));c=0;for(g=k.d.length;c<g;c++)m.instances.push(this.Uj(k.d[c]));n.types[k.G.toString()]=m}a=0;for(d=this.fc.length;a<d;a++)c=this.fc[a],n.layouts[c.G.toString()]=c.Qb();g=n.events.groups;a=0;for(d=this.re.length;a<d;a++)c=
this.re[a],g[c.G.toString()]=this.Bf[c.Af].De;d=n.events.cnds;for(e in this.md)this.md.hasOwnProperty(e)&&(a=this.md[e],Ta(a.J)&&(d[e]={ex:b(a.J)}));d=n.events.acts;for(e in this.hd)this.hd.hasOwnProperty(e)&&(a=this.hd[e],Ta(a.J)&&(d[e]={ex:b(a.J)}));d=n.events.vars;for(e in this.df)this.df.hasOwnProperty(e)&&(a=this.df[e],a.Xg||a.parent&&!a.Jf||(d[e]=a.data));n.system=this.Ac.Qb();return JSON.stringify(n)};h.prototype.Jm=function(){var a,b,d,c,g,k;this.Tc={};a=0;for(b=this.i.length;a<b;a++)if(d=
this.i[a],!d.I)for(c=0,g=d.d.length;c<g;c++)k=d.d[c],this.Tc[k.uid.toString()]=k};h.prototype.jr=function(a){var b;try{b=JSON.parse(a)}catch(d){return!1}if(!b.c2save||1<b.version)return!1;this.Gf=!0;a=b.rt;this.lb.reset();this.lb.L=a.time;this.Wh.reset();this.Wh.L=a.walltime||0;this.og=a.timescale;this.$c=a.tickcount;this.Hg=a.execcount;this.Hh=Date.now()-a.start_time_offset;var c=a.running_layout;if(c!==this.O.G)if(c=this.ml(c))this.$k(c);else return;var g,k,m,e,n,f,q;f=b.types;for(k in f)if(f.hasOwnProperty(k)&&
(e=this.Sg(parseInt(k,10)))&&!e.I&&!this.fk(e)){f[k].ex?e.J=f[k].ex:Ua(e.J);n=e.d;m=f[k].instances;c=0;for(g=ma(n.length,m.length);c<g;c++)this.gh(n[c],m[c]);c=m.length;for(g=n.length;c<g;c++)this.Ld(n[c]);c=n.length;for(g=m.length;c<g;c++){n=null;if(e.ga.xd&&(n=this.O.Rg(m[c].w.l),!n))continue;n=this.Td(e.rc,n,!1,0,0,!0);this.gh(n,m[c])}e.Ye=!0}this.Ja();this.Jm();g=b.layouts;for(k in g)g.hasOwnProperty(k)&&(c=this.ml(parseInt(k,10)))&&c.vc(g[k]);g=b.events.groups;for(k in g)g.hasOwnProperty(k)&&
(c=this.tq(parseInt(k,10)))&&this.Bf[c.Af]&&this.Bf[c.Af].$r(g[k]);c=b.events.cnds;for(k in this.md)this.md.hasOwnProperty(k)&&(c.hasOwnProperty(k)?this.md[k].J=c[k].ex:this.md[k].J={});c=b.events.acts;for(k in this.hd)this.hd.hasOwnProperty(k)&&(c.hasOwnProperty(k)?this.hd[k].J=c[k].ex:this.hd[k].J={});c=b.events.vars;for(k in c)c.hasOwnProperty(k)&&this.df.hasOwnProperty(k)&&(this.df[k].data=c[k]);this.Xf=a.next_uid;this.Gf=!1;c=0;for(g=this.Kg.length;c<g;++c)n=this.Kg[c],this.trigger(Object.getPrototypeOf(n.type.ga).e.nk,
n);Q(this.Kg);this.Ac.vc(b.system);c=0;for(g=this.i.length;c<g;c++)if(e=this.i[c],!e.I&&!this.fk(e))for(b=0,k=e.d.length;b<k;b++){n=e.d[b];if(e.xb)for(f=n.zf(),Q(n.siblings),a=0,m=e.fb.length;a<m;a++)q=e.fb[a],e!==q&&n.siblings.push(q.d[f]);n.Md&&n.Md();if(n.B)for(a=0,m=n.B.length;a<m;a++)f=n.B[a],f.Md&&f.Md()}return this.F=!0};h.prototype.Uj=function(a,d){var c,g,k,m,e;m=a.type;k=m.ga;var n={};d?n.c2=!0:n.uid=a.uid;Ta(a.J)&&(n.ex=b(a.J));if(a.ma&&a.ma.length)for(n.ivs={},c=0,g=a.ma.length;c<g;c++)n.ivs[a.type.Yi[c].toString()]=
a.ma[c];if(k.xd){k={x:a.x,y:a.y,w:a.width,h:a.height,l:a.g.G,zi:a.tc()};0!==a.k&&(k.a=a.k);1!==a.opacity&&(k.o=a.opacity);.5!==a.jb&&(k.hX=a.jb);.5!==a.kb&&(k.hY=a.kb);0!==a.Ka&&(k.bm=a.Ka);a.visible||(k.v=a.visible);a.mf||(k.ce=a.mf);-1!==a.Wf&&(k.mts=a.Wf);if(m.u.length)for(k.fx=[],c=0,g=m.u.length;c<g;c++)e=m.u[c],k.fx.push({name:e.name,active:a.gd[e.index],params:a.ba[e.index]});n.w=k}if(a.B&&a.B.length)for(n.behs={},c=0,g=a.B.length;c<g;c++)m=a.B[c],m.Qb&&(n.behs[m.type.G.toString()]=m.Qb());
a.Qb&&(n.data=a.Qb());return n};h.prototype.vq=function(a,b){var d,c;d=0;for(c=a.Yi.length;d<c;d++)if(a.Yi[d]===b)return d;return-1};h.prototype.rq=function(a,b){var d,c;d=0;for(c=a.B.length;d<c;d++)if(a.B[d].type.G===b)return d;return-1};h.prototype.gh=function(a,b,d){var c,g,k,m,e;e=a.type;var n=e.ga;if(d){if(!b.c2)return}else a.uid=b.uid;b.ex?a.J=b.ex:Ua(a.J);if(g=b.ivs)for(c in g)g.hasOwnProperty(c)&&(k=this.vq(e,parseInt(c,10)),0>k||k>=a.ma.length||(m=g[c],null===m&&(m=NaN),a.ma[k]=m));if(n.xd){k=
b.w;a.g.G!==k.l&&(g=a.g,a.g=this.O.Rg(k.l),a.g?(g.Te(a,!0),a.g.hf(a,!0),a.wa(),a.g.gg(0)):(a.g=g,d||this.Ld(a)));a.x=k.x;a.y=k.y;a.width=k.w;a.height=k.h;a.mc=k.zi;a.k=k.hasOwnProperty("a")?k.a:0;a.opacity=k.hasOwnProperty("o")?k.o:1;a.jb=k.hasOwnProperty("hX")?k.hX:.5;a.kb=k.hasOwnProperty("hY")?k.hY:.5;a.visible=k.hasOwnProperty("v")?k.v:!0;a.mf=k.hasOwnProperty("ce")?k.ce:!0;a.Wf=k.hasOwnProperty("mts")?k.mts:-1;a.Ka=k.hasOwnProperty("bm")?k.bm:0;a.nf=db(a.Ka);this.j&&eb(a,a.Ka,this.j);a.wa();
if(k.hasOwnProperty("fx"))for(d=0,g=k.fx.length;d<g;d++)m=e.Ki(k.fx[d].name),0>m||(a.gd[m]=k.fx[d].active,a.ba[m]=k.fx[d].params);a.lc()}if(e=b.behs)for(c in e)e.hasOwnProperty(c)&&(d=this.rq(a,parseInt(c,10)),0>d||a.B[d].vc(e[c]));b.data&&a.vc(b.data)};h.prototype.el=function(a,b,d){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,d)},d)};h.prototype.mq=function(a,b){this.el("data.js",function(d){var c=new FileReader;c.onload=function(b){a(b.target.result)};
c.onerror=b;c.readAsText(d)},b)};var ga=[],K=0;h.prototype.vj=function(){if(ga.length&&!(8<=K)){K++;var a=ga.shift();this.ip(a.filename,a.ds,a.Hp)}};h.prototype.lq=function(a,b,d){var c=this;ga.push({filename:a,ds:function(a){K--;c.vj();b(a)},Hp:function(a){K--;c.vj();d(a)}});this.vj()};h.prototype.ip=function(a,b,d){this.el(a,function(a){var d=new FileReader;d.onload=function(a){b(a.target.result)};d.readAsArrayBuffer(a)},d)};h.prototype.nq=function(a,b,d){var c="",g=a.toLowerCase(),k=g.substr(g.length-
4),g=g.substr(g.length-5);".mp4"===k?c="video/mp4":".webm"===g?c="video/webm":".m4a"===k?c="audio/mp4":".mp3"===k&&(c="audio/mpeg");this.lq(a,function(a){a=URL.createObjectURL(new Blob([a],{type:c}));b(a)},d)};h.prototype.Vq=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};h.prototype.Tm=function(a,b){this.Al&&!this.Vq(b)?this.nq(b,function(b){a.src=b},function(a){alert("Failed to load image: "+a)}):a.src=b};h.prototype.Ch=function(a,b){"undefined"!==
typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=b:(a.webkitImageSmoothingEnabled=b,a.mozImageSmoothingEnabled=b,a.msImageSmoothingEnabled=b)};Mb=function(a){return new h(document.getElementById(a))};Nb=function(a,b){return new h({dc:!0,width:a,height:b})};window.cr_createRuntime=Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.di=!0;document.body.appendChild(a);a=new h(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 h(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var h=document.getElementById("c2canvas");return h?h.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(h,l){var p=window.cr_getC2Runtime();p&&p.fp(h,l)};window.cr_sizeCanvas=function(h,l){if(0!==h&&0!==l){var p=window.cr_getC2Runtime();p&&p.setSize(h,l)}};window.cr_setSuspended=function(h){var l=window.cr_getC2Runtime();l&&l.setSuspended(h)};
(function(){function h(a,b){this.b=a;this.Xd=null;this.scrollX=this.b.ta/2;this.scrollY=this.b.ra/2;this.scale=1;this.k=0;this.ze=!0;this.name=b[0];this.Br=b[1];this.Ar=b[2];this.width=b[1];this.height=b[2];this.tn=b[3];this.Zm=b[4];this.G=b[5];var c=b[6],g,e;this.A=[];this.Ef=[];g=0;for(e=c.length;g<e;g++){var f=new Ob(this,c[g]);f.lm=g;this.A.push(f)}c=b[7];this.td=[];g=0;for(e=c.length;g<e;g++){var f=c[g],q=this.b.i[f[1]];q.rc||(q.rc=f);this.td.push(f);-1===this.Ef.indexOf(q)&&this.Ef.push(q)}this.u=
[];this.K=[];this.Xc=!0;this.ba=[];g=0;for(e=b[8].length;g<e;g++)this.u.push({id:b[8][g][0],name:b[8][g][1],la:-1,hc:!1,qb:!0,index:g}),this.ba.push(b[8][g][2].slice(0));this.lc();this.Se=new P(0,0,1,1);this.Nj=new P(0,0,1,1);this.Ed={}}function l(a,b){return a.mc-b.mc}function p(a,b){this.Aa=a;this.b=a.b;this.d=[];this.scale=1;this.k=0;this.Hc=!1;this.ad=new P(0,0,0,0);this.nn=new sa;this.S=this.N=this.T=this.M=0;this.ne=!1;this.dd=-1;this.pi=0;this.name=b[0];this.index=b[1];this.G=b[2];this.visible=
b[3];this.$b=b[4];this.kc=b[5];this.Uc=b[6];this.Vc=b[7];this.opacity=b[8];this.Ng=b[9];this.Eb=b[10];this.ed=b[11];this.Ka=b[12];this.Dp=b[13];this.nf="source-over";this.Ma=this.Pa=0;this.Ia=null;this.Rc=r();this.jc=!0;this.Ke=new P(0,0,-1,-1);this.Fa=new P(0,0,-1,-1);this.Eb&&(this.Ia=new cb(this.b.ta,this.b.ra));this.yc=!1;var c=b[14],g,e;this.dn=[];this.ub=[];this.qf=[];g=0;for(e=c.length;g<e;g++){var f=c[g],q=this.b.i[f[1]];q.rc||(q.rc=f,q.dp=this.index);this.ub.push(f);-1===this.Aa.Ef.indexOf(q)&&
this.Aa.Ef.push(q)}Ba(this.dn,this.ub);this.u=[];this.K=[];this.Xc=!0;this.ba=[];g=0;for(e=b[15].length;g<e;g++)this.u.push({id:b[15][g][0],name:b[15][g][1],la:-1,hc:!1,qb:!0,index:g}),this.ba.push(b[15][g][2].slice(0));this.lc();this.Se=new P(0,0,1,1);this.Nj=new P(0,0,1,1)}function r(){return b.length?b.pop():[]}function u(a){Q(a);b.push(a)}h.prototype.Yr=function(a){var b=a.type.G.toString();this.Ed.hasOwnProperty(b)||(this.Ed[b]=[]);this.Ed[b].push(this.b.Uj(a))};h.prototype.ql=function(){var a=
this.A[0];return!a.kc&&1===a.opacity&&!a.Ng&&a.visible};h.prototype.lc=function(){Q(this.K);this.Xc=!0;var a,b,c;a=0;for(b=this.u.length;a<b;a++)c=this.u[a],c.qb&&(this.K.push(c),c.hc||(this.Xc=!1))};h.prototype.Ji=function(a){var b,c,g;b=0;for(c=this.u.length;b<c;b++)if(g=this.u[b],g.name===a)return g;return null};var t=[],f=!0;h.prototype.Yj=function(){this.Zm&&(this.Xd=this.b.Ai[this.Zm],this.Xd.hk());this.b.O=this;this.width=this.Br;this.height=this.Ar;this.scrollX=this.b.ta/2;this.scrollY=this.b.ra/
2;var a,b,c,g,e,h,q;a=0;for(c=this.b.i.length;a<c;a++)if(b=this.b.i[a],!b.I)for(e=b.d,b=0,g=e.length;b<g;b++)if(h=e[b],h.g){var m=h.g.lm;m>=this.A.length&&(m=this.A.length-1);h.g=this.A[m];-1===h.g.d.indexOf(h)&&h.g.d.push(h);h.g.ne=!0}if(!f)for(a=0,c=this.A.length;a<c;++a)this.A[a].d.sort(l);Q(t);this.Uo();a=0;for(c=this.A.length;a<c;a++)h=this.A[a],h.cp(),h.Sh();e=!1;if(!this.ze){for(q in this.Ed)if(this.Ed.hasOwnProperty(q)&&(b=this.b.Sg(parseInt(q,10)))&&!b.I&&this.b.gk(b)){g=this.Ed[q];a=0;for(c=
g.length;a<c;a++){h=null;if(b.ga.xd&&(h=this.Rg(g[a].w.l),!h))continue;h=this.b.Td(b.rc,h,!1,0,0,!0);this.b.gh(h,g[a]);e=!0;t.push(h)}Q(g)}a=0;for(c=this.A.length;a<c;a++)this.A[a].d.sort(l),this.A[a].ne=!0}e&&(this.b.Ja(),this.b.Jm());for(a=0;a<t.length;a++)if(h=t[a],h.type.xb)for(c=h.zf(),b=0,g=h.type.fb.length;b<g;b++)q=h.type.fb[b],h.type!==q&&(q.d.length>c?h.siblings.push(q.d[c]):q.rc&&(e=this.b.Td(q.rc,h.g,!0,h.x,h.y,!0),this.b.Ja(),q.Rh(),h.siblings.push(e),t.push(e)));a=0;for(c=this.td.length;a<
c;a++)h=this.td[a],b=this.b.i[h[1]],b.xb||this.b.Td(this.td[a],null,!0);this.b.lf=null;this.b.Ja();if(this.b.aa&&!this.b.na)for(a=0,c=this.b.i.length;a<c;a++)q=this.b.i[a],!q.I&&q.d.length&&q.Em&&q.Em(this.b.aa);if(this.b.Gf)Ba(this.b.Kg,t);else for(a=0,c=t.length;a<c;a++)h=t[a],this.b.trigger(Object.getPrototypeOf(h.type.ga).e.nk,h);Q(t);this.b.Gf||this.b.trigger(W.prototype.e.ok,null);this.ze=!1};h.prototype.bp=function(){var a,b,c,g,e;b=a=0;for(c=this.td.length;a<c;a++)g=this.td[a],e=this.b.i[g[1]],
e.global?e.xb||this.b.Td(g,null,!0):(this.td[b]=g,b++);Aa(this.td,b)};h.prototype.cs=function(){this.b.Gf||this.b.trigger(W.prototype.e.fo,null);this.b.bj=!0;Q(this.b.Ac.ab);var a,b,c,g,e,h;if(!this.ze)for(a=0,b=this.A.length;a<b;a++)for(this.A[a].jk(),e=this.A[a].d,c=0,g=e.length;c<g;c++)h=e[c],h.type.global||this.b.gk(h.type)&&this.Yr(h);a=0;for(b=this.A.length;a<b;a++){e=this.A[a].d;c=0;for(g=e.length;c<g;c++)h=e[c],h.type.global||this.b.Ld(h);this.b.Ja();Q(e);this.A[a].ne=!0}a=0;for(b=this.b.i.length;a<
b;a++)if(e=this.b.i[a],!(e.global||e.ga.xd||e.ga.Gh||e.I)){c=0;for(g=e.d.length;c<g;c++)this.b.Ld(e.d[c]);this.b.Ja()}f=!1;this.b.bj=!1};new P(0,0,0,0);h.prototype.Ic=function(a){var b,c=a,g=!1,e=!this.b.tb;e&&(this.b.eh||(this.b.eh=document.createElement("canvas"),b=this.b.eh,b.width=this.b.r,b.height=this.b.q,this.b.Kl=b.getContext("2d"),g=!0),b=this.b.eh,c=this.b.Kl,b.width!==this.b.r&&(b.width=this.b.r,g=!0),b.height!==this.b.q&&(b.height=this.b.q,g=!0),g&&this.b.Ch(c,this.b.fa));c.globalAlpha=
1;c.globalCompositeOperation="source-over";this.b.Tk&&!this.ql()&&c.clearRect(0,0,this.b.r,this.b.q);var f,q,g=0;for(f=this.A.length;g<f;g++)q=this.A[g],q.visible&&0<q.opacity&&11!==q.Ka&&(q.d.length||!q.kc)?q.Ic(c):q.Sh();e&&a.drawImage(b,0,0,this.b.width,this.b.height)};h.prototype.ue=function(a){a.Sm(!0);this.b.ka||(this.b.ka=a.sb(this.b.r,this.b.q,this.b.fa));if(this.b.ka.Sd!==this.b.r||this.b.ka.Rd!==this.b.q)a.deleteTexture(this.b.ka),this.b.ka=a.sb(this.b.r,this.b.q,this.b.fa);a.Rb(this.b.ka);
this.b.tb||a.je(this.b.r,this.b.q);var b,c;for(b=this.A.length-1;0<=b;--b)c=this.A[b],c.visible&&1===c.opacity&&c.Xc&&0===c.Ka&&(c.d.length||!c.kc)?c.ue(a):c.Sh();a.Sm(!1)};h.prototype.Kb=function(a){var b=0<this.K.length||this.b.bf||!this.b.tb||this.b.U;if(b){this.b.ka||(this.b.ka=a.sb(this.b.r,this.b.q,this.b.fa));if(this.b.ka.Sd!==this.b.r||this.b.ka.Rd!==this.b.q)a.deleteTexture(this.b.ka),this.b.ka=a.sb(this.b.r,this.b.q,this.b.fa);a.Rb(this.b.ka);this.b.tb||a.je(this.b.r,this.b.q)}else this.b.ka&&
(a.Rb(null),a.deleteTexture(this.b.ka),this.b.ka=null);this.b.Tk&&!this.ql()&&a.clear(0,0,0,0);var c,g,e;c=0;for(g=this.A.length;c<g;c++)e=this.A[c],e.visible&&0<e.opacity&&(e.d.length||!e.kc)?e.Kb(a):e.Sh();b&&(0===this.K.length||1===this.K.length&&this.b.tb?(1===this.K.length?(b=this.K[0].index,a.$a(this.K[0].la),a.We(null,1/this.b.r,1/this.b.q,0,0,1,1,this.scale,this.k,0,0,this.b.r/2,this.b.q/2,this.b.lb.L,this.ba[b]),a.wh(this.K[0].la)&&(this.b.F=!0)):a.$a(0),this.b.tb||a.je(this.b.width,this.b.height),
a.Rb(null),a.Rm(!1),a.Ve(1),a.Ab(this.b.ka),a.Pm(),a.Pb(),a.Db(),b=this.b.width/2,c=this.b.height/2,a.eg(-b,c,b,c,b,-c,-b,-c),a.Ab(null),a.Rm(!0)):this.Oj(a,null,null,null))};h.prototype.xf=function(){return 0<this.K.length||this.b.bf||!this.b.tb||this.b.U?this.b.ka:null};h.prototype.nl=function(){var a=this.A[0].ib(),b,c,g;b=1;for(c=this.A.length;b<c;b++)g=this.A[b],(0!==g.Uc||0!==g.Vc)&&g.ib()<a&&(a=g.ib());return a};h.prototype.Nm=function(a){if(!this.tn){var b=1/this.nl()*this.b.r/2;a>this.width-
b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.F=!0)};h.prototype.Om=function(a){if(!this.tn){var b=1/this.nl()*this.b.q/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.F=!0)};h.prototype.Uo=function(){this.Nm(this.scrollX);this.Om(this.scrollY)};h.prototype.Oj=function(a,b,c,g){var e=c?c.K:b?b.K:this.K,f=1,q=0,m=0,n=0,h=this.b.r,l=this.b.q;c?(f=c.g.ib(),q=c.g.hb(),m=c.g.M,n=c.g.N,h=c.g.T,l=c.g.S):b&&(f=b.ib(),q=b.hb(),m=b.M,n=b.N,
h=b.T,l=b.S);var p=this.b.Gi,r,t,u,F,G=0,T=1,ba,ga,K=this.b.r,v=this.b.q,Ha=K/2,Ia=v/2,H=b?b.Se:this.Se,D=b?b.Nj:this.Nj,I=0,N=0,E=0,C=0,L=K,ra=K,J=v,qa=v,ja=u=0;F=c?c.g.hb():0;if(c){r=0;for(t=e.length;r<t;r++)u+=a.zq(e[r].la),ja+=a.Aq(e[r].la);C=c.Da;I=b.oa(C.left,C.top,!0);E=b.oa(C.left,C.top,!1);L=b.oa(C.right,C.bottom,!0);J=b.oa(C.right,C.bottom,!1);0!==F&&(r=b.oa(C.right,C.top,!0),t=b.oa(C.right,C.top,!1),N=b.oa(C.left,C.bottom,!0),C=b.oa(C.left,C.bottom,!1),F=Math.min(I,L,r,N),L=Math.max(I,
L,r,N),I=F,F=Math.min(E,J,t,C),J=Math.max(E,J,t,C),E=F);I-=u;E-=ja;L+=u;J+=ja;D.left=I/K;D.top=1-E/v;D.right=L/K;D.bottom=1-J/v;N=I=O(I);C=E=O(E);ra=L=oa(L);qa=J=oa(J);N-=u;C-=ja;ra+=u;qa+=ja;0>I&&(I=0);0>E&&(E=0);L>K&&(L=K);J>v&&(J=v);0>N&&(N=0);0>C&&(C=0);ra>K&&(ra=K);qa>v&&(qa=v);H.left=I/K;H.top=1-E/v;H.right=L/K;H.bottom=1-J/v}else H.left=D.left=0,H.top=D.top=0,H.right=D.right=1,H.bottom=D.bottom=1;ja=c&&(a.ag(e[0].la)||0!==u||0!==ja||1!==c.opacity||c.type.ga.im)||b&&!c&&1!==b.opacity;a.Pm();
if(ja){p[G]||(p[G]=a.sb(K,v,this.b.fa));if(p[G].Sd!==K||p[G].Rd!==v)a.deleteTexture(p[G]),p[G]=a.sb(K,v,this.b.fa);a.$a(0);a.Rb(p[G]);ga=qa-C;a.clearRect(N,v-C-ga,ra-N,ga);c?c.Kb(a):(a.Ab(this.b.pa),a.Ve(b.opacity),a.Pb(),a.translate(-Ha,-Ia),a.Db(),a.Fd(I,J,L,J,L,E,I,E,H));D.left=D.top=0;D.right=D.bottom=1;c&&(F=H.top,H.top=H.bottom,H.bottom=F);G=1;T=0}a.Ve(1);u=e.length-1;var Va=a.Ij(e[u].la)||!b&&!c&&!this.b.tb;r=F=0;for(t=e.length;r<t;r++){p[G]||(p[G]=a.sb(K,v,this.b.fa));if(p[G].Sd!==K||p[G].Rd!==
v)a.deleteTexture(p[G]),p[G]=a.sb(K,v,this.b.fa);a.$a(e[r].la);F=e[r].index;a.wh(e[r].la)&&(this.b.F=!0);0!=r||ja?(a.We(g,1/K,1/v,D.left,D.top,D.right,D.bottom,f,q,m,n,(m+h)/2,(n+l)/2,this.b.lb.L,c?c.ba[F]:b?b.ba[F]:this.ba[F]),a.Ab(null),r!==u||Va?(a.Rb(p[G]),ga=qa-C,ba=v-C-ga,a.clearRect(N,ba,ra-N,ga)):(c?a.Gd(c.Pa,c.Ma):b&&a.Gd(b.Pa,b.Ma),a.Rb(g)),a.Ab(p[T]),a.Pb(),a.translate(-Ha,-Ia),a.Db(),a.Fd(I,J,L,J,L,E,I,E,H),r!==u||Va||a.Ab(null)):(a.Rb(p[G]),ga=qa-C,ba=v-C-ga,a.clearRect(N,ba,ra-N,ga),
c?(c.Ea&&c.Ea.Ca?(ba=c.Ea.Ca,T=1/ba.width,ba=1/ba.height):(T=1/c.width,ba=1/c.height),a.We(g,T,ba,D.left,D.top,D.right,D.bottom,f,q,m,n,(m+h)/2,(n+l)/2,this.b.lb.L,c.ba[F]),c.Kb(a)):(a.We(g,1/K,1/v,0,0,1,1,f,q,m,n,(m+h)/2,(n+l)/2,this.b.lb.L,b?b.ba[F]:this.ba[F]),a.Ab(b?this.b.pa:this.b.ka),a.Pb(),a.translate(-Ha,-Ia),a.Db(),a.Fd(I,J,L,J,L,E,I,E,H)),D.left=D.top=0,D.right=D.bottom=1,c&&!Va&&(F=J,J=E,E=F));G=0===G?1:0;T=0===G?1:0}Va&&(a.$a(0),c?a.Gd(c.Pa,c.Ma):b?a.Gd(b.Pa,b.Ma):this.b.tb||(a.je(this.b.width,
this.b.height),Ha=this.b.width/2,Ia=this.b.height/2,E=I=0,L=this.b.width,J=this.b.height),a.Rb(g),a.Ab(p[T]),a.Pb(),a.translate(-Ha,-Ia),a.Db(),c&&1===e.length&&!ja?a.Fd(I,E,L,E,L,J,I,J,H):a.Fd(I,J,L,J,L,E,I,E,H),a.Ab(null))};h.prototype.Rg=function(a){var b,c;b=0;for(c=this.A.length;b<c;b++)if(this.A[b].G===a)return this.A[b];return null};h.prototype.Qb=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.ze,persist:this.Ed,fx:[],layers:{}};
a=0;for(b=this.u.length;a<b;a++)c=this.u[a],g.fx.push({name:c.name,active:c.qb,params:this.ba[c.index]});a=0;for(b=this.A.length;a<b;a++)c=this.A[a],g.layers[c.G.toString()]=c.Qb();return g};h.prototype.vc=function(a){var b,c,g,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.k=a.a;this.width=a.w;this.height=a.h;this.Ed=a.persist;"undefined"!==typeof a.fv&&(this.ze=a.fv);var f=a.fx;b=0;for(c=f.length;b<c;b++)if(g=this.Ji(f[b].name))g.qb=f[b].active,this.ba[g.index]=f[b].params;this.lc();
b=a.layers;for(e in b)b.hasOwnProperty(e)&&(a=this.Rg(parseInt(e,10)))&&a.vc(b[e])};Ab=h;p.prototype.lc=function(){Q(this.K);this.Xc=!0;var a,b,c;a=0;for(b=this.u.length;a<b;a++)c=this.u[a],c.qb&&(this.K.push(c),c.hc||(this.Xc=!1))};p.prototype.Ji=function(a){var b,c,g;b=0;for(c=this.u.length;b<c;b++)if(g=this.u[b],g.name===a)return g;return null};p.prototype.cp=function(){var a,b,c,g,e,f;b=a=0;for(c=this.ub.length;a<c;a++){g=this.ub[a];e=this.b.i[g[1]];f=this.b.gk(e);e=!0;if(!f||this.Aa.ze){g=this.b.Td(g,
this,!0);if(!g)continue;t.push(g);g.type.global&&(e=!1,this.qf.push(g.uid))}e&&(this.ub[b]=this.ub[a],b++)}this.ub.length=b;this.b.Ja();!this.b.m&&this.u.length&&(this.Ka=this.Dp);this.nf=db(this.Ka);this.b.j&&eb(this,this.Ka,this.b.j);this.jc=!0};p.prototype.Te=function(a,b){var c=Da(this.d,a);0>c||(b&&this.Eb&&a.Za&&a.Za.right>=a.Za.left&&(a.xa(),this.Ia.update(a,a.Za,null),a.Za.set(0,0,-1,-1)),c===this.d.length-1?this.d.pop():(za(this.d,c),this.gg(c)),this.jc=!0)};p.prototype.hf=function(a,b){a.mc=
this.d.length;this.d.push(a);b&&this.Eb&&a.Za&&a.wa();this.jc=!0};p.prototype.Jr=function(a){this.d.unshift(a);this.gg(0)};p.prototype.pr=function(a,b,c){var g=a.tc();b=b.tc();za(this.d,g);g<b&&b--;c&&b++;b===this.d.length?this.d.push(a):this.d.splice(b,0,a);this.gg(g<b?g:b)};p.prototype.gg=function(a){-1===this.dd?this.dd=a:a<this.dd&&(this.dd=a);this.jc=this.ne=!0};p.prototype.jk=function(){if(this.ne){-1===this.dd&&(this.dd=0);var a,b,c;if(this.Eb)for(a=this.dd,b=this.d.length;a<b;++a)c=this.d[a],
c.mc=a,this.Ia.mr(c.Za);else for(a=this.dd,b=this.d.length;a<b;++a)this.d[a].mc=a;this.ne=!1;this.dd=-1}};p.prototype.ib=function(a){return this.xq()*(this.b.tb||a?this.b.jf:1)};p.prototype.xq=function(){return(this.scale*this.Aa.scale-1)*this.ed+1};p.prototype.hb=function(){return this.Hc?0:Ka(this.Aa.k+this.k)};var b=[],e=[],c=[];p.prototype.Ni=function(){this.jk();this.Ia.Im(this.M,this.N,this.T,this.S,c);if(!c.length)return r();if(1===c.length){var a=r();Ba(a,c[0]);Q(c);return a}for(var b=!0;1<
c.length;){for(var a=c,k=void 0,g=void 0,f=void 0,h=void 0,q=void 0,k=0,g=a.length;k<g-1;k+=2){var f=a[k],h=a[k+1],q=r(),m=f,n=h,l=q,p=0,t=0,X=0,B=m.length,U=n.length,F=void 0,G=void 0;for(l.length=B+U;p<B&&t<U;++X)F=m[p],G=n[t],F.mc<G.mc?(l[X]=F,++p):(l[X]=G,++t);for(;p<B;++p,++X)l[X]=m[p];for(;t<U;++t,++X)l[X]=n[t];b||(u(f),u(h));e.push(q)}1===g%2&&(b?(f=r(),Ba(f,a[g-1]),e.push(f)):e.push(a[g-1]));Ba(a,e);Q(e);b=!1}a=c[0];Q(c);return a};p.prototype.Ic=function(a){this.yc=this.Ng||1!==this.opacity||
0!==this.Ka;var b=this.b.canvas,c=a,g=!1;this.yc&&(this.b.dh||(this.b.dh=document.createElement("canvas"),b=this.b.dh,b.width=this.b.r,b.height=this.b.q,this.b.Jl=b.getContext("2d"),g=!0),b=this.b.dh,c=this.b.Jl,b.width!==this.b.r&&(b.width=this.b.r,g=!0),b.height!==this.b.q&&(b.height=this.b.q,g=!0),g&&this.b.Ch(c,this.b.fa),this.kc&&c.clearRect(0,0,this.b.r,this.b.q));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.kc||(c.fillStyle="rgb("+this.$b[0]+","+this.$b[1]+","+this.$b[2]+")",
c.fillRect(0,0,this.b.r,this.b.q));c.save();this.Hc=!0;var g=this.Ra(0,0,!0,!0),e=this.Ra(0,0,!1,!0);this.Hc=!1;this.b.Wc&&(g=Math.round(g),e=Math.round(e));this.zh(g,e,c);var f=this.ib();c.scale(f,f);c.translate(-g,-e);this.Eb?(this.Fa.left=this.Ia.Wa(this.M),this.Fa.top=this.Ia.Xa(this.N),this.Fa.right=this.Ia.Wa(this.T),this.Fa.bottom=this.Ia.Xa(this.S),this.jc||!this.Fa.sf(this.Ke)?(u(this.Rc),g=this.Ni(),this.jc=!1,this.Ke.of(this.Fa)):g=this.Rc):g=this.d;for(var q,m=null,e=0,f=g.length;e<f;++e)q=
g[e],q!==m&&(this.yp(q,c),m=q);this.Eb&&(this.Rc=g);c.restore();this.yc&&(a.globalCompositeOperation=this.nf,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};p.prototype.yp=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.xa();var c=a.Da;c.right<this.M||c.bottom<this.N||c.left>this.T||c.top>this.S||(b.globalCompositeOperation=a.nf,a.Ic(b))}};p.prototype.Sh=function(){this.Hc=!0;var a=this.Ra(0,0,!0,!0),b=this.Ra(0,0,!1,!0);this.Hc=!1;this.b.Wc&&(a=Math.round(a),b=Math.round(b));this.zh(a,b,
null)};p.prototype.zh=function(a,b,c){var g=this.ib();this.M=a;this.N=b;this.T=a+1/g*this.b.r;this.S=b+1/g*this.b.q;this.M>this.T&&(a=this.M,this.M=this.T,this.T=a);this.N>this.S&&(a=this.N,this.N=this.S,this.S=a);a=this.hb();0!==a&&(c&&(c.translate(this.b.r/2,this.b.q/2),c.rotate(-a),c.translate(this.b.r/-2,this.b.q/-2)),this.ad.set(this.M,this.N,this.T,this.S),this.ad.offset((this.M+this.T)/-2,(this.N+this.S)/-2),this.nn.Xm(this.ad,a),this.nn.Nk(this.ad),this.ad.offset((this.M+this.T)/2,(this.N+
this.S)/2),this.M=this.ad.left,this.N=this.ad.top,this.T=this.ad.right,this.S=this.ad.bottom)};p.prototype.ue=function(a){if(this.yc=this.Ng){this.b.pa||(this.b.pa=a.sb(this.b.r,this.b.q,this.b.fa));if(this.b.pa.Sd!==this.b.r||this.b.pa.Rd!==this.b.q)a.deleteTexture(this.b.pa),this.b.pa=a.sb(this.b.r,this.b.q,this.b.fa);a.Rb(this.b.pa)}this.Hc=!0;var b=this.Ra(0,0,!0,!0),c=this.Ra(0,0,!1,!0);this.Hc=!1;this.b.Wc&&(b=Math.round(b),c=Math.round(c));this.zh(b,c,null);b=this.ib();a.Pb();a.scale(b,b);
a.Ah(-this.hb());a.translate((this.M+this.T)/-2,(this.N+this.S)/-2);a.Db();this.Eb?(this.Fa.left=this.Ia.Wa(this.M),this.Fa.top=this.Ia.Xa(this.N),this.Fa.right=this.Ia.Wa(this.T),this.Fa.bottom=this.Ia.Xa(this.S),this.jc||!this.Fa.sf(this.Ke)?(u(this.Rc),b=this.Ni(),this.jc=!1,this.Ke.of(this.Fa)):b=this.Rc):b=this.d;for(var g,e=null,c=b.length-1;0<=c;--c)g=b[c],g!==e&&(this.Ap(b[c],a),e=g);this.Eb&&(this.Rc=b);this.kc||(this.pi=this.b.Wd++,a.Dh(this.pi),a.Qm(1,1,1),a.hl(),a.Qr())};p.prototype.Kb=
function(a){var b=0,c=0;if(this.yc=this.Ng||1!==this.opacity||0<this.K.length||0!==this.Ka){this.b.pa||(this.b.pa=a.sb(this.b.r,this.b.q,this.b.fa));if(this.b.pa.Sd!==this.b.r||this.b.pa.Rd!==this.b.q)a.deleteTexture(this.b.pa),this.b.pa=a.sb(this.b.r,this.b.q,this.b.fa);a.Rb(this.b.pa);this.kc&&a.clear(0,0,0,0)}this.kc||(this.b.U?(a.Dh(this.pi),a.Qm(this.$b[0]/255,this.$b[1]/255,this.$b[2]/255),a.hl(),a.as()):a.clear(this.$b[0]/255,this.$b[1]/255,this.$b[2]/255,1));this.Hc=!0;var g=this.Ra(0,0,!0,
!0),b=this.Ra(0,0,!1,!0);this.Hc=!1;this.b.Wc&&(g=Math.round(g),b=Math.round(b));this.zh(g,b,null);g=this.ib();a.Pb();a.scale(g,g);a.Ah(-this.hb());a.translate((this.M+this.T)/-2,(this.N+this.S)/-2);a.Db();this.Eb?(this.Fa.left=this.Ia.Wa(this.M),this.Fa.top=this.Ia.Xa(this.N),this.Fa.right=this.Ia.Wa(this.T),this.Fa.bottom=this.Ia.Xa(this.S),this.jc||!this.Fa.sf(this.Ke)?(u(this.Rc),b=this.Ni(),this.jc=!1,this.Ke.of(this.Fa)):b=this.Rc):b=this.d;var e,f,q=null,c=0;for(e=b.length;c<e;++c)f=b[c],f!==
q&&(this.zp(b[c],a),q=f);this.Eb&&(this.Rc=b);this.yc&&(b=this.K.length?this.K[0].la:0,c=this.K.length?this.K[0].index:0,0===this.K.length||1===this.K.length&&!a.Ij(b)&&1===this.opacity?(1===this.K.length?(a.$a(b),a.We(this.Aa.xf(),1/this.b.r,1/this.b.q,0,0,1,1,g,this.hb(),this.M,this.N,(this.M+this.T)/2,(this.N+this.S)/2,this.b.lb.L,this.ba[c]),a.wh(b)&&(this.b.F=!0)):a.$a(0),a.Rb(this.Aa.xf()),a.Ve(this.opacity),a.Ab(this.b.pa),a.Gd(this.Pa,this.Ma),a.Pb(),a.Db(),g=this.b.r/2,b=this.b.q/2,a.eg(-g,
b,g,b,g,-b,-g,-b),a.Ab(null)):this.Aa.Oj(a,this,null,this.Aa.xf()))};p.prototype.zp=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.xa();var c=a.Da;c.right<this.M||c.bottom<this.N||c.left>this.T||c.top>this.S||(b.Dh(a.Wd),a.yn?this.Bp(a,b):(b.$a(0),b.Gd(a.Pa,a.Ma),a.Kb(b)))}};p.prototype.Ap=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.xa();var c=a.Da;c.right<this.M||c.bottom<this.N||c.left>this.T||c.top>this.S||(a.Wd=this.b.Wd++,0===a.Ka&&1===a.opacity&&a.Xc&&a.ue&&(b.Dh(a.Wd),
a.ue(b)))}};p.prototype.Bp=function(a,b){var c=a.K[0].la,g=a.K[0].index,e=this.ib();if(1!==a.K.length||b.Ij(c)||b.Lr(c)||(a.k||a.g.hb())&&b.ag(c)||1!==a.opacity||a.type.ga.im)this.Aa.Oj(b,this,a,this.yc?this.b.pa:this.Aa.xf()),b.Pb(),b.scale(e,e),b.Ah(-this.hb()),b.translate((this.M+this.T)/-2,(this.N+this.S)/-2),b.Db();else{b.$a(c);b.Gd(a.Pa,a.Ma);b.wh(c)&&(this.b.F=!0);var f=0,q=0,m=0,n=0;b.ag(c)&&(n=a.Da,f=this.oa(n.left,n.top,!0),q=this.oa(n.left,n.top,!1),m=this.oa(n.right,n.bottom,!0),n=this.oa(n.right,
n.bottom,!1),f=f/windowWidth,q=1-q/windowHeight,m=m/windowWidth,n=1-n/windowHeight);var h;a.Ea&&a.Ea.Ca?(h=a.Ea.Ca,c=1/h.width,h=1/h.height):(c=1/a.width,h=1/a.height);b.We(this.yc?this.b.pa:this.Aa.xf(),c,h,f,q,m,n,e,this.hb(),this.M,this.N,(this.M+this.T)/2,(this.N+this.S)/2,this.b.lb.L,a.ba[g]);a.Kb(b)}};p.prototype.Ra=function(a,b,c,g){var e=this.b.devicePixelRatio;this.b.Ee&&(a*=e,b*=e);var e=this.b.xm,f=this.b.ym,e=(this.Aa.scrollX-e)*this.Uc+e,f=(this.Aa.scrollY-f)*this.Vc+f,h=e,m=f,n=1/this.ib(!g);
g?(h-=this.b.r*n/2,m-=this.b.q*n/2):(h-=this.b.width*n/2,m-=this.b.height*n/2);h+=a*n;m+=b*n;b=this.hb();0!==b&&(h-=e,m-=f,a=Math.cos(b),b=Math.sin(b),g=h*a-m*b,m=m*a+h*b,h=g+e,m+=f);return c?h:m};p.prototype.oa=function(a,b,c){var g=this.b.xm,e=this.b.ym,g=(this.Aa.scrollX-g)*this.Uc+g,f=(this.Aa.scrollY-e)*this.Vc+e,e=g,h=f,m=this.hb();if(0!==m){a-=g;b-=f;var n=Math.cos(-m),m=Math.sin(-m),l=a*n-b*m;b=b*n+a*m;a=l+g;b+=f}g=1/this.ib(!1);e-=this.b.r*g/2;h-=this.b.q*g/2;e=(a-e)/g;return c?e:(b-h)/g};
p.prototype.Qb=function(){var a,b,c,g={s:this.scale,a:this.k,vl:this.M,vt:this.N,vr:this.T,vb:this.S,v:this.visible,bc:this.$b,t:this.kc,px:this.Uc,py:this.Vc,o:this.opacity,zr:this.ed,fx:[],cg:this.qf,instances:[]};a=0;for(b=this.u.length;a<b;a++)c=this.u[a],g.fx.push({name:c.name,active:c.qb,params:this.ba[c.index]});return g};p.prototype.vc=function(a){var b,c,g;this.scale=a.s;this.k=a.a;this.M=a.vl;this.N=a.vt;this.T=a.vr;this.S=a.vb;this.visible=a.v;this.$b=a.bc;this.kc=a.t;this.Uc=a.px;this.Vc=
a.py;this.opacity=a.o;this.ed=a.zr;this.qf=a.cg||[];Ba(this.ub,this.dn);var e=new ca;b=0;for(g=this.qf.length;b<g;++b)e.add(this.qf[b]);c=b=0;for(g=this.ub.length;b<g;++b)e.contains(this.ub[b][2])||(this.ub[c]=this.ub[b],++c);Aa(this.ub,c);c=a.fx;b=0;for(g=c.length;b<g;b++)if(a=this.Ji(c[b].name))a.qb=c[b].active,this.ba[a.index]=c[b].params;this.lc();this.d.sort(l);this.ne=!0};Ob=p})();
(function(){function h(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function l(a,b){return a.index-b.index}function p(a){var b,c,d,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(l);a.length>=w.length&&(w.length=a.length+1);w[a.length]||(w[a.length]=[]);g=w[a.length];b=0;for(c=g.length;b<c;b++)if(d=g[b],h(a,d))return d;g.push(a);return a}
function r(a,b){this.b=a;this.qn={};this.dl={};this.Si=!1;this.sl=new ca;this.vi=[];this.bi=[];this.name=b[0];var c=b[1];this.qd=[];var d,g;d=0;for(g=c.length;d<g;d++)this.ul(c[d],null,this.qd)}function u(a){this.type=a;this.d=[];this.H=[];this.W=!0}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.X=[];this.Hd=[];this.rl=this.Oh=this.ck=this.Wi=this.group=this.cn=!1;this.La=[];this.Yb=[];this.Tb=[];this.Af="";this.De=this.Wi=this.group=!1;this.Ag=null;c[1]&&(this.Af=c[1][1].toLowerCase(),
this.group=!0,this.Wi=!!c[1][0],this.Ag=[],this.De=this.Wi,this.b.re.push(this),this.b.Bf[this.Af]=this);this.gc=c[2];this.G=c[4];this.group||(this.b.Mk[this.G.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var g=new Pb(this,d[a]);g.index=a;this.La.push(g);this.Bk(g.type)}d=c[6];a=0;for(b=d.length;a<b;a++)g=new Qb(this,d[a]),g.index=a,this.Yb.push(g);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.ul(c[a],this,this.Tb);this.Yg=!1;this.La.length&&(this.Yg=null==this.La[0].type&&
this.La[0].Ga==W.prototype.e.Kn)}function f(a,b){var c,d,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.xb))for(c=0,d=a.fb.length;c<d;c++)g=a.fb[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function b(a,b){this.rb=a;this.sheet=a.sheet;this.b=a.b;this.D=[];this.da=[];this.J={};this.index=-1;this.ff=!1;this.Ga=this.b.fd(b[1]);this.trigger=0<b[3];this.cl=2===b[3];this.Zi=b[5];this.gr=b[6];this.G=b[7];this.b.md[this.G.toString()]=this;-1===b[0]?(this.type=null,this.ua=this.Tj,this.Pd=null,this.ac=-1):(this.type=this.b.i[b[0]],
this.ua=this.gr?this.Wr:this.Sj,b[2]?(this.Pd=this.type.Pg(b[2]),this.ac=this.type.Hi(b[2])):(this.Pd=null,this.ac=-1),this.rb.parent&&this.rb.parent.Eh());this.cl&&(this.ua=this.Xr);if(10===b.length){var c,d,g=b[9];c=0;for(d=g.length;c<d;c++){var e=new Rb(this,g[c]);this.D.push(e)}this.da.length=g.length}}function e(a,b){this.rb=a;this.sheet=a.sheet;this.b=a.b;this.D=[];this.da=[];this.J={};this.index=-1;this.ff=!1;this.Ga=this.b.fd(b[1]);-1===b[0]?(this.type=null,this.ua=this.Tj,this.Pd=null,this.ac=
-1):(this.type=this.b.i[b[0]],this.ua=this.Sj,b[2]?(this.Pd=this.type.Pg(b[2]),this.ac=this.type.Hi(b[2])):(this.Pd=null,this.ac=-1));this.G=b[3];this.b.hd[this.G.toString()]=this;if(6===b.length){var c,d,g=b[5];c=0;for(d=g.length;c<d;c++){var e=new Rb(this,g[c]);this.D.push(e)}this.da.length=g.length}}function c(){q++;z.length===q&&z.push(new Sb);return z[q]}function a(a,b){this.Ob=a;this.rb=a.rb;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.sc=null;this.Yc=0;this.get=null;this.Vk=0;this.Aa=
null;this.key=0;this.object=null;this.index=0;this.qg=this.le=this.qg=this.le=this.fl=this.Yd=this.rg=null;this.Xb=!1;var c,d,g;switch(b[0]){case 0:case 7:this.sc=new Tb(this,b[1]);this.Yc=0;this.get=this.Fq;break;case 1:this.sc=new Tb(this,b[1]);this.Yc=0;this.get=this.Gq;break;case 5:this.sc=new Tb(this,b[1]);this.Yc=0;this.get=this.Kq;break;case 3:case 8:this.Vk=b[1];this.get=this.Dq;break;case 6:this.Aa=this.b.pj[b[1]];this.get=this.Lq;break;case 9:this.key=b[1];this.get=this.Jq;break;case 4:this.object=
this.b.i[b[1]];this.get=this.Mq;this.rb.Bk(this.object);this.Ob instanceof Qb?this.rb.Eh():this.rb.parent&&this.rb.parent.Eh();break;case 10:this.index=b[1];a.type&&a.type.I?(this.get=this.Hq,this.Xb=!0):this.get=this.Iq;break;case 11:this.rg=b[1];this.Yd=null;this.get=this.Eq;break;case 2:case 12:this.fl=b[1];this.get=this.Cq;break;case 13:for(this.get=this.Nq,this.le=[],this.qg=[],c=1,d=b.length;c<d;c++)g=new Rb(this.Ob,b[c]),this.le.push(g),this.qg.push(0)}}function d(a,b,c){this.sheet=a;this.parent=
b;this.b=a.b;this.X=[];this.name=c[1];this.Uh=c[2];this.Vi=c[3];this.Jf=!!c[4];this.Xg=!!c[5];this.G=c[6];this.b.df[this.G.toString()]=this;this.data=this.Vi;this.parent?(this.ge=this.Jf||this.Xg?-1:this.b.bs++,this.b.Qo.push(this)):(this.ge=-1,this.b.Po.push(this))}function k(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.X=[];this.Df=null;this.Sq=c[1];this.qb=!0}function g(){this.en=[];this.reset(null)}var w=[];r.prototype.toString=function(){return this.name};r.prototype.ul=function(a,b,c){switch(a[0]){case 0:a=
new Ub(this,b,a);if(a.gc)for(c.push(a),c=0,b=a.La.length;c<b;c++)a.La[c].trigger&&this.wl(a,c);else a.Dl()?this.wl(a,0):c.push(a);break;case 1:a=new Lb(this,b,a);c.push(a);break;case 2:a=new Vb(this,b,a),c.push(a)}};r.prototype.ia=function(){var a,b;a=0;for(b=this.qd.length;a<b;a++)this.qd[a].ia(a<b-1&&this.qd[a+1].Yg)};r.prototype.hk=function(){Q(this.vi);Q(this.bi);this.Ak(this);Q(this.bi)};r.prototype.Ak=function(a){var b,c,d,g,e=a.vi,f=a.bi,k=this.sl.Kd();b=0;for(c=k.length;b<c;++b)d=k[b],g=d.Df,
!d.qb||a===g||-1<f.indexOf(g)||(f.push(g),g.Ak(a),e.push(g))};r.prototype.ua=function(a){this.b.Vt||(this.Si=!0,a||(this.b.fj=!0));var b,c;b=0;for(c=this.qd.length;b<c;b++){var d=this.qd[b];d.ua();this.b.oi(d.X);this.b.sd&&this.b.Ja()}a||(this.b.fj=!1)};r.prototype.wl=function(a,b){a.gc||this.b.Qh.push(a);var c,d,g=a.La[b],e;g.type?e=g.type.name:e="system";var f=(c=g.cl)?this.dl:this.qn;f[e]||(f[e]=[]);e=f[e];f=g.Ga;if(c){if(g.D.length&&(g=g.D[0],1===g.type&&2===g.sc.type)){g=g.sc.value.toLowerCase();
c=0;for(d=e.length;c<d;c++)if(e[c].method==f){c=e[c].tf;c[g]?c[g].push([a,b]):c[g]=[[a,b]];return}c={};c[g]=[[a,b]];e.push({method:f,tf:c})}}else{c=0;for(d=e.length;c<d;c++)if(e[c].method==f){e[c].tf.push([a,b]);return}fc&&f===fc.prototype.e.qe?e.unshift({method:f,tf:[[a,b]]}):e.push({method:f,tf:[[a,b]]})}};Bb=r;u.prototype.Ri=function(){return this.W?this.type.d.length:this.d.length};u.prototype.cc=function(){return this.W?this.type.d:this.d};u.prototype.$f=function(a){a&&(a.b.Sa().gb.gc?(this.W&&
(Q(this.d),Ba(this.H,a.type.d),this.W=!1),a=this.H.indexOf(a),-1!==a&&(this.d.push(this.H[a]),this.H.splice(a,1))):(this.W=!1,Q(this.d),this.d[0]=a))};kb=u;window._c2hh_="59F8283951694B7BF002DA26CFA42A40277B4C72";t.prototype.ia=function(a){var b,c=this.parent;if(this.group)for(this.Oh=!0;c;){if(!c.group){this.Oh=!1;break}c=c.parent}this.ck=!this.Dl()&&(!this.parent||this.parent.group&&this.parent.Oh);this.rl=!!a;this.Hd=this.X.slice(0);for(c=this.parent;c;){a=0;for(b=c.X.length;a<b;a++)this.No(c.X[a]);
c=c.parent}this.X=p(this.X);this.Hd=p(this.Hd);a=0;for(b=this.La.length;a<b;a++)this.La[a].ia();a=0;for(b=this.Yb.length;a<b;a++)this.Yb[a].ia();a=0;for(b=this.Tb.length;a<b;a++)this.Tb[a].ia(a<b-1&&this.Tb[a+1].Yg)};t.prototype.$r=function(a){if(this.De!==!!a){this.De=!!a;var b;a=0;for(b=this.Ag.length;a<b;++a)this.Ag[a].wn();0<b&&this.b.O.Xd&&this.b.O.Xd.hk()}};t.prototype.Bk=function(a){f(a,this.X)};t.prototype.No=function(a){f(a,this.Hd)};t.prototype.Eh=function(){this.cn=!0;this.parent&&this.parent.Eh()};
t.prototype.Dl=function(){return this.La.length?this.La[0].trigger:!1};t.prototype.ua=function(){var a,b,c=!1,d=this.b,g=this.b.Sa();g.gb=this;var e=this.La;this.Yg||(g.xi=!1);if(this.gc){0===e.length&&(c=!0);g.eb=0;for(a=e.length;g.eb<a;g.eb++)b=e[g.eb],b.trigger||(b=b.ua())&&(c=!0);(g.be=c)&&this.Rj()}else{g.eb=0;for(a=e.length;g.eb<a;g.eb++)if(b=e[g.eb].ua(),!b){g.be=!1;this.ck&&d.sd&&d.Ja();return}g.be=!0;this.Rj()}this.Fp(g)};t.prototype.Fp=function(a){a.be&&this.rl&&(a.xi=!0);this.ck&&this.b.sd&&
this.b.Ja()};t.prototype.Ur=function(a){this.b.Sa().gb=this;this.La[a].ua()&&(this.Rj(),this.b.Sa().be=!0)};t.prototype.Rj=function(){var a=this.b.Sa(),b;a.bb=0;for(b=this.Yb.length;a.bb<b;a.bb++)if(this.Yb[a.bb].ua())return;this.Mm()};t.prototype.Rr=function(){var a=this.b.Sa(),b;for(b=this.Yb.length;a.bb<b;a.bb++)if(this.Yb[a.bb].ua())return;this.Mm()};t.prototype.Mm=function(){if(this.Tb.length){var a,b,c,d,g=this.Tb.length-1;this.b.Kj(this);if(this.cn)for(a=0,b=this.Tb.length;a<b;a++)c=this.Tb[a],
(d=!this.Oh||!this.group&&a<g)&&this.b.Jj(c.X),c.ua(),d?this.b.Qe(c.X):this.b.oi(c.X);else for(a=0,b=this.Tb.length;a<b;a++)this.Tb[a].ua();this.b.Cm()}};t.prototype.Vr=function(){var a=this.b.Sa();a.gb=this;var b=!1,c;a.eb=0;for(c=this.La.length;a.eb<c;a.eb++)if(this.La[a.eb].ua())b=!0;else if(!this.gc)return!1;return this.gc?b:!0};t.prototype.br=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.La[b].type===a.type)return!1;return!0};Ub=t;b.prototype.ia=function(){var a,b,c;a=
0;for(b=this.D.length;a<b;a++)c=this.D[a],c.ia(),c.Xb&&(this.ff=!0)};b.prototype.Xr=function(){return!0};b.prototype.Tj=function(){var a,b;a=0;for(b=this.D.length;a<b;a++)this.da[a]=this.D[a].get();return Sa(this.Ga.apply(this.b.Ac,this.da),this.Zi)};b.prototype.Wr=function(){var a,b;a=0;for(b=this.D.length;a<b;a++)this.da[a]=this.D[a].get();a=this.Ga.apply(this.Pd?this.Pd:this.type,this.da);this.type.jd();return a};b.prototype.Sj=function(){var a,b,c,d,g,e,f,k,h=this.type,q=h.R(),l=this.rb.gc&&!this.trigger;
b=0;var p=h.xb,w=h.I,r=h.Kc,z=this.ac,t=-1<z,u=this.ff,H=this.D,D=this.da,I=this.Zi,N=this.Ga,E;if(u)for(b=0,g=H.length;b<g;++b)e=H[b],e.Xb||(D[b]=e.get(0));else for(b=0,g=H.length;b<g;++b)D[b]=H[b].get(0);if(q.W){Q(q.d);Q(q.H);E=h.d;a=0;for(d=E.length;a<d;++a){k=E[a];if(u)for(b=0,g=H.length;b<g;++b)e=H[b],e.Xb&&(D[b]=e.get(a));t?(b=0,w&&(b=k.type.ye[r]),b=N.apply(k.B[z+b],D)):b=N.apply(k,D);(f=Sa(b,I))?q.d.push(k):l&&q.H.push(k)}h.finish&&h.finish(!0);q.W=!1;h.jd();return q.Ri()}c=0;E=(f=l&&!this.rb.br(this))?
q.H:q.d;var C=!1;a=0;for(d=E.length;a<d;++a){k=E[a];if(u)for(b=0,g=H.length;b<g;++b)e=H[b],e.Xb&&(D[b]=e.get(a));t?(b=0,w&&(b=k.type.ye[r]),b=N.apply(k.B[z+b],D)):b=N.apply(k,D);if(Sa(b,I))if(C=!0,f){if(q.d.push(k),p)for(b=0,g=k.siblings.length;b<g;b++)e=k.siblings[b],e.type.R().d.push(e)}else{E[c]=k;if(p)for(b=0,g=k.siblings.length;b<g;b++)e=k.siblings[b],e.type.R().d[c]=e;c++}else if(f){E[c]=k;if(p)for(b=0,g=k.siblings.length;b<g;b++)e=k.siblings[b],e.type.R().H[c]=e;c++}else if(l&&(q.H.push(k),
p))for(b=0,g=k.siblings.length;b<g;b++)e=k.siblings[b],e.type.R().H.push(e)}Aa(E,c);if(p)for(w=h.fb,a=0,d=w.length;a<d;a++)k=w[a].R(),f?Aa(k.H,c):Aa(k.d,c);c=C;if(f&&!C)for(a=0,d=q.d.length;a<d;a++){k=q.d[a];if(u)for(b=0,g=H.length;b<g;b++)e=H[b],e.Xb&&(D[b]=e.get(a));b=t?N.apply(k.B[z],D):N.apply(k,D);if(Sa(b,I)){C=!0;break}}h.finish&&h.finish(c||l);return l?C:q.Ri()};Pb=b;e.prototype.ia=function(){var a,b,c;a=0;for(b=this.D.length;a<b;a++)c=this.D[a],c.ia(),c.Xb&&(this.ff=!0)};e.prototype.Tj=function(){var a=
this.b,b,c,d=this.D,g=this.da;b=0;for(c=d.length;b<c;++b)g[b]=d[b].get();return this.Ga.apply(a.Ac,g)};e.prototype.Sj=function(){var a=this.type,b=this.ac,c=a.Kc,d=this.ff,g=this.D,e=this.da,f=this.Ga,k=a.R().cc(),a=a.I,h=-1<b,q,l,p,w,r,z;if(d)for(l=0,w=g.length;l<w;++l)r=g[l],r.Xb||(e[l]=r.get(0));else for(l=0,w=g.length;l<w;++l)e[l]=g[l].get(0);q=0;for(p=k.length;q<p;++q){z=k[q];if(d)for(l=0,w=g.length;l<w;++l)r=g[l],r.Xb&&(e[l]=r.get(q));h?(l=0,a&&(l=z.type.ye[c]),f.apply(z.B[b+l],e)):f.apply(z,
e)}return!1};Qb=e;var z=[],q=-1;a.prototype.ia=function(){var a,b;if(11===this.type)this.Yd=this.b.ll(this.rg,this.rb.parent);else if(13===this.type)for(a=0,b=this.le.length;a<b;a++)this.le[a].ia();this.sc&&this.sc.ia()};a.prototype.or=function(a){this.Xb||!a||a.ga.Gh||(this.Xb=!0)};a.prototype.Vm=function(){this.Xb=!0};a.prototype.Fq=function(a){this.Yc=a||0;a=c();this.sc.get(a);q--;return a.data};a.prototype.Gq=function(a){this.Yc=a||0;a=c();this.sc.get(a);q--;return M(a.data)?a.data:""};a.prototype.Mq=
function(){return this.object};a.prototype.Dq=function(){return this.Vk};a.prototype.Kq=function(a){this.Yc=a||0;a=c();this.sc.get(a);q--;return a.za()?this.b.Be(a.data):this.b.Qg(a.data)};a.prototype.Lq=function(){return this.Aa};a.prototype.Jq=function(){return this.key};a.prototype.Iq=function(){return this.index};a.prototype.Hq=function(a){a=a||0;var b=this.Ob.type,c=null,c=b.R(),d=c.cc();if(d.length)c=d[a%d.length].type;else if(c.H.length)c=c.H[a%c.H.length].type;else if(b.d.length)c=b.d[a%b.d.length].type;
else return 0;return this.index+c.Jg[b.Kc]};a.prototype.Eq=function(){return this.Yd};a.prototype.Cq=function(){return this.fl};a.prototype.Nq=function(){var a,b;a=0;for(b=this.le.length;a<b;a++)this.qg[a]=this.le[a].get();return this.qg};Rb=a;d.prototype.ia=function(){this.X=p(this.X)};d.prototype.ke=function(a){var b=this.b.kl();this.parent&&!this.Jf&&b?(this.ge>=b.length&&(b.length=this.ge+1),b[this.ge]=a):this.data=a};d.prototype.yf=function(){var a=this.b.kl();return!this.parent||this.Jf||!a||
this.Xg?this.data:this.ge>=a.length||"undefined"===typeof a[this.ge]?this.Vi:a[this.ge]};d.prototype.ua=function(){!this.parent||this.Jf||this.Xg||this.ke(this.Vi)};Lb=d;k.prototype.toString=function(){return"include:"+this.Df.toString()};k.prototype.ia=function(){this.Df=this.b.Ai[this.Sq];this.sheet.sl.add(this);this.X=p(this.X);for(var a=this.parent;a;)a.group&&a.Ag.push(this),a=a.parent;this.wn()};k.prototype.ua=function(){this.parent&&this.b.dg(this.b.i);this.Df.Si||this.Df.ua(!0);this.parent&&
this.b.Qe(this.b.i)};k.prototype.wn=function(){for(var a=this.parent;a;){if(a.group&&!a.De){this.qb=!1;return}a=a.parent}this.qb=!0};Vb=k;g.prototype.reset=function(a){this.gb=a;this.bb=this.eb=0;Q(this.en);this.xi=this.be=!1};Kb=g})();
(function(){function h(f,b){this.Ob=f;this.b=f.b;this.type=b[0];this.get=[this.Xp,this.Tp,this.gq,this.jq,this.Ip,this.hq,this.aq,this.Qp,this.$p,this.fq,this.Jp,this.dq,this.Rp,this.bq,this.Yp,this.Zp,this.Up,this.Vp,this.Pp,this.iq,this.cq,this.Wp,this.Op,this.Sp][this.type];var e=null;this.Sc=this.D=this.da=this.Ga=this.Nh=this.second=this.first=this.value=null;this.ac=-1;this.ec=null;this.zn=-1;this.Yd=this.rg=null;this.Ue=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Tb(f,b[1]);break;case 18:this.first=new Tb(f,b[1]);this.second=new Tb(f,b[2]);this.Nh=new Tb(f,b[3]);break;case 19:this.Ga=this.b.fd(b[1]);this.Ga!==W.prototype.ya.random&&this.Ga!==W.prototype.ya.Sk||this.Ob.Vm();this.da=[];this.D=[];3===b.length?(e=b[2],this.da.length=e.length+1):this.da.length=1;break;case 20:this.Sc=this.b.i[b[1]];this.ac=-1;this.Ga=this.b.fd(b[2]);this.Ue=b[3];gc&&this.Ga===gc.prototype.ya.En&&this.Ob.Vm();b[4]?this.ec=new Tb(f,b[4]):this.ec=null;this.da=[];this.D=[];6===
b.length?(e=b[5],this.da.length=e.length+1):this.da.length=1;break;case 21:this.Sc=this.b.i[b[1]];this.Ue=b[2];b[3]?this.ec=new Tb(f,b[3]):this.ec=null;this.zn=b[4];break;case 22:this.Sc=this.b.i[b[1]];this.Sc.Pg(b[2]);this.ac=this.Sc.Hi(b[2]);this.Ga=this.b.fd(b[3]);this.Ue=b[4];b[5]?this.ec=new Tb(f,b[5]):this.ec=null;this.da=[];this.D=[];7===b.length?(e=b[6],this.da.length=e.length+1):this.da.length=1;break;case 23:this.rg=b[1],this.Yd=null}this.Ob.or(this.Sc);4<=this.type&&17>=this.type&&(this.first=
new Tb(f,b[1]),this.second=new Tb(f,b[2]));if(e){var c,a;c=0;for(a=e.length;c<a;c++)this.D.push(new Tb(f,e[c]))}}function l(){++t;u.length===t&&u.push(new Sb);return u[t]}function p(f,b,e){var c,a;c=0;for(a=f.length;c<a;++c)f[c].get(e),b[c+1]=e.data}function r(f,b){this.type=f||V.pe;this.data=b||0;this.ie=null;this.type==V.pe&&(this.data=Math.floor(this.data))}h.prototype.ia=function(){23===this.type&&(this.Yd=this.Ob.b.ll(this.rg,this.Ob.rb.parent));this.first&&this.first.ia();this.second&&this.second.ia();
this.Nh&&this.Nh.ia();this.ec&&this.ec.ia();if(this.D){var f,b;f=0;for(b=this.D.length;f<b;f++)this.D[f].ia()}};var u=[],t=-1;h.prototype.iq=function(f){var b=this.D,e=this.da;e[0]=f;f=l();p(b,e,f);--t;this.Ga.apply(this.b.Ac,e)};h.prototype.cq=function(f){var b=this.Sc,e=this.da,c=this.D,a=this.ec,d=this.Ga,k=this.Ob.Yc,g=b.R(),h=g.cc();if(!h.length)if(g.H.length)h=g.H;else{this.Ue?f.Ta(""):f.P(0);return}e[0]=f;f.ie=b;f=l();p(c,e,f);a&&(a.get(f),f.za()&&(k=f.data,h=b.d));--t;b=h.length;if(k>=b||
k<=-b)k%=b;0>k&&(k+=b);d.apply(h[k],e)};h.prototype.Op=function(f){var b=this.Sc,e=this.da,c=this.D,a=this.ec,d=this.ac,k=this.Ga,g=this.Ob.Yc,h=b.R(),r=h.cc();if(!r.length)if(h.H.length)r=h.H;else{this.Ue?f.Ta(""):f.P(0);return}e[0]=f;f.ie=b;f=l();p(c,e,f);a&&(a.get(f),f.za()&&(g=f.data,r=b.d));--t;c=r.length;if(g>=c||g<=-c)g%=c;0>g&&(g+=c);g=r[g];r=0;b.I&&(r=g.type.ye[b.Kc]);k.apply(g.B[d+r],e)};h.prototype.Wp=function(f){var b=this.ec,e=this.Sc,c=this.zn,a=this.Ob.Yc,d=e.R(),k=d.cc();if(!k.length)if(d.H.length)k=
d.H;else{this.Ue?f.Ta(""):f.P(0);return}if(b){d=l();b.get(d);if(d.za()){a=d.data;k=e.d;0!==k.length&&(a%=k.length,0>a&&(a+=k.length));a=e.Mi(a);e=a.ma[c];M(e)?f.Ta(e):f.p(e);--t;return}--t}b=k.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=k[a];k=0;e.I&&(k=a.type.Jg[e.Kc]);e=a.ma[c+k];M(e)?f.Ta(e):f.p(e)};h.prototype.Xp=function(f){f.type=V.pe;f.data=this.value};h.prototype.Tp=function(f){f.type=V.oe;f.data=this.value};h.prototype.gq=function(f){f.type=V.String;f.data=this.value};h.prototype.jq=function(f){this.first.get(f);
f.za()&&(f.data=-f.data)};h.prototype.Ip=function(f){this.first.get(f);var b=l();this.second.get(b);f.za()&&b.za()&&(f.data+=b.data,b.Fe()&&f.Me());--t};h.prototype.hq=function(f){this.first.get(f);var b=l();this.second.get(b);f.za()&&b.za()&&(f.data-=b.data,b.Fe()&&f.Me());--t};h.prototype.aq=function(f){this.first.get(f);var b=l();this.second.get(b);f.za()&&b.za()&&(f.data*=b.data,b.Fe()&&f.Me());--t};h.prototype.Qp=function(f){this.first.get(f);var b=l();this.second.get(b);f.za()&&b.za()&&(f.data/=
b.data,f.Me());--t};h.prototype.$p=function(f){this.first.get(f);var b=l();this.second.get(b);f.za()&&b.za()&&(f.data%=b.data,b.Fe()&&f.Me());--t};h.prototype.fq=function(f){this.first.get(f);var b=l();this.second.get(b);f.za()&&b.za()&&(f.data=Math.pow(f.data,b.data),b.Fe()&&f.Me());--t};h.prototype.Jp=function(f){this.first.get(f);var b=l();this.second.get(b);b.He()||f.He()?this.Lp(f,b):this.Kp(f,b);--t};h.prototype.Lp=function(f,b){f.He()&&b.He()?this.Np(f,b):this.Mp(f,b)};h.prototype.Np=function(f,
b){f.data+=b.data};h.prototype.Mp=function(f,b){f.He()?f.data+=(Math.round(1E10*b.data)/1E10).toString():f.Ta(f.data.toString()+b.data)};h.prototype.Kp=function(f,b){f.P(f.data&&b.data?1:0)};h.prototype.dq=function(f){this.first.get(f);var b=l();this.second.get(b);f.za()&&b.za()&&(f.data||b.data?f.P(1):f.P(0));--t};h.prototype.Pp=function(f){this.first.get(f);f.data?this.second.get(f):this.Nh.get(f)};h.prototype.Rp=function(f){this.first.get(f);var b=l();this.second.get(b);f.P(f.data===b.data?1:0);
--t};h.prototype.bq=function(f){this.first.get(f);var b=l();this.second.get(b);f.P(f.data!==b.data?1:0);--t};h.prototype.Yp=function(f){this.first.get(f);var b=l();this.second.get(b);f.P(f.data<b.data?1:0);--t};h.prototype.Zp=function(f){this.first.get(f);var b=l();this.second.get(b);f.P(f.data<=b.data?1:0);--t};h.prototype.Up=function(f){this.first.get(f);var b=l();this.second.get(b);f.P(f.data>b.data?1:0);--t};h.prototype.Vp=function(f){this.first.get(f);var b=l();this.second.get(b);f.P(f.data>=
b.data?1:0);--t};h.prototype.Sp=function(f){var b=this.Yd.yf();A(b)?f.p(b):f.Ta(b)};Tb=h;r.prototype.Fe=function(){return this.type===V.oe};r.prototype.za=function(){return this.type===V.pe||this.type===V.oe};r.prototype.He=function(){return this.type===V.String};r.prototype.Me=function(){this.Fe()||(this.He()&&(this.data=parseFloat(this.data)),this.type=V.oe)};r.prototype.P=function(f){this.type=V.pe;this.data=Math.floor(f)};r.prototype.p=function(f){this.type=V.oe;this.data=f};r.prototype.Ta=function(f){this.type=
V.String;this.data=f};r.prototype.Wm=function(f){A(f)?(this.type=V.oe,this.data=f):M(f)?(this.type=V.String,this.data=f.toString()):(this.type=V.pe,this.data=0)};Sb=r;V={pe:0,oe:1,String:2}})();function W(h){this.b=h;this.ab=[]}
W.prototype.Qb=function(){var h={},l,p,r,u,t,f,b,e;h.waits=[];var c=h.waits,a;l=0;for(p=this.ab.length;l<p;l++){f=this.ab[l];a={t:f.time,st:f.an,s:f.Xj,ev:f.we.G,sm:[],sols:{}};f.we.Yb[f.bb]&&(a.act=f.we.Yb[f.bb].G);r=0;for(u=f.X.length;r<u;r++)a.sm.push(f.X[r].G);for(t in f.Ua)if(f.Ua.hasOwnProperty(t)){b=this.b.i[parseInt(t,10)];e={sa:f.Ua[t].Bh,insts:[]};r=0;for(u=f.Ua[t].Mc.length;r<u;r++)e.insts.push(f.Ua[t].Mc[r].uid);a.sols[b.G.toString()]=e}c.push(a)}return h};
W.prototype.vc=function(h){h=h.waits;var l,p,r,u,t,f,b,e,c,a,d;Q(this.ab);l=0;for(p=h.length;l<p;l++)if(f=h[l],e=this.b.Mk[f.ev.toString()]){c=-1;r=0;for(u=e.Yb.length;r<u;r++)if(e.Yb[r].G===f.act){c=r;break}if(-1!==c){b={Ua:{},X:[],wi:!1};b.time=f.t;b.an=f.st||"";b.Xj=!!f.s;b.we=e;b.bb=c;r=0;for(u=f.sm.length;r<u;r++)(e=this.b.Sg(f.sm[r]))&&b.X.push(e);for(t in f.sols)if(f.sols.hasOwnProperty(t)&&(e=this.b.Sg(parseInt(t,10)))){c=f.sols[t];a={Bh:c.sa,Mc:[]};r=0;for(u=c.insts.length;r<u;r++)(d=this.b.ol(c.insts[r]))&&
a.Mc.push(d);b.Ua[e.index.toString()]=a}this.ab.push(b)}}};
(function(){function h(){}function l(){}function p(){}var r=W.prototype;h.prototype.Mn=function(){return!0};h.prototype.ok=function(){return!0};h.prototype.fo=function(){return!0};h.prototype.Hn=function(f,b,e){return Wb(f,b,e)};h.prototype.Ln=function(f){var b=this.b.jl(),e=b.J.Every_lastTime||0,c=this.b.lb.L;"undefined"===typeof b.J.Every_seconds&&(b.J.Every_seconds=f);var a=b.J.Every_seconds;if(c>=e+a)return b.J.Every_lastTime=e+a,c>=b.J.Every_lastTime+.04&&(b.J.Every_lastTime=c),b.J.Every_seconds=
f,!0;c<e-.1&&(b.J.Every_lastTime=c);return!1};h.prototype.Jn=function(f,b,e){return Wb(f.yf(),b,e)};h.prototype.Sn=function(f){return(f=this.b.Bf[f.toLowerCase()])&&f.De};h.prototype.Kn=function(){var f=this.b.Sa();return f.xi?!1:!f.be};h.prototype.pk=function(){return!0};h.prototype.Xn=function(){return!0};h.prototype.Yh=function(){return!0};h.prototype.tk=function(){return!0};h.prototype.ho=function(){return!0};h.prototype.xg=function(){return!0};h.prototype.Cn=function(f,b,e){return Oa(R(f),R(e))<=
R(b)};h.prototype.Rn=function(f,b){return Qa(R(f),R(b))};h.prototype.Qn=function(f,b,e){f=Ma(f);b=Ma(b);e=Ma(e);return Qa(e,b)?Qa(f,b)&&!Qa(f,e):!(!Qa(f,b)&&Qa(f,e))};r.e=new h;l.prototype.Nn=function(f){this.b.Kf||this.b.lf||(this.b.lf=f)};l.prototype.xo=function(f,b){f&&(b=Fa(b/100,0,1),f.opacity!==b&&(f.opacity=b,this.b.F=!0))};l.prototype.Bo=function(f,b){0===f.Uh?A(b)?f.ke(b):f.ke(parseFloat(b)):1===f.Uh&&f.ke(b.toString())};l.prototype.Bn=function(f,b){0===f.Uh?A(b)?f.ke(f.yf()+b):f.ke(f.yf()+
parseFloat(b)):1===f.Uh&&f.ke(f.yf()+b.toString())};var u=[],t=[];l.prototype.Fo=function(f){if(!(0>f)){var b,e,c,a=this.b.Sa(),d;u.length?d=u.pop():d={Ua:{},X:[]};d.wi=!1;d.time=this.b.lb.L+f;d.an="";d.Xj=!1;d.we=a.gb;d.bb=a.bb+1;f=0;for(b=this.b.i.length;f<b;f++)c=this.b.i[f],e=c.R(),e.W&&-1===a.gb.X.indexOf(c)||(d.X.push(c),c=void 0,t.length?c=t.pop():c={Mc:[]},c.Bh=!1,c.Bh=e.W,Ba(c.Mc,e.d),d.Ua[f.toString()]=c);this.ab.push(d);return!0}};r.Q=new l;p.prototype["int"]=function(f,b){M(b)?(f.P(parseInt(b,
10)),isNaN(f.data)&&(f.data=0)):f.P(b)};p.prototype["float"]=function(f,b){M(b)?(f.p(parseFloat(b)),isNaN(f.data)&&(f.data=0)):f.p(b)};p.prototype.ir=function(f,b){f.P(b.length||0)};p.prototype.random=function(f,b,e){void 0===e?f.p(Math.random()*b):f.p(Math.random()*(e-b)+b)};p.prototype.sqrt=function(f,b){f.p(Math.sqrt(b))};p.prototype.abs=function(f,b){f.p(Math.abs(b))};p.prototype.round=function(f,b){f.P(Math.round(b))};p.prototype.floor=function(f,b){f.P(Math.floor(b))};p.prototype.ceil=function(f,
b){f.P(Math.ceil(b))};p.prototype.sin=function(f,b){f.p(Math.sin(R(b)))};p.prototype.cos=function(f,b){f.p(Math.cos(R(b)))};p.prototype.tan=function(f,b){f.p(Math.tan(R(b)))};p.prototype.asin=function(f,b){f.p(Ga(Math.asin(b)))};p.prototype.acos=function(f,b){f.p(Ga(Math.acos(b)))};p.prototype.atan=function(f,b){f.p(Ga(Math.atan(b)))};p.prototype.exp=function(f,b){f.p(Math.exp(b))};p.prototype.log10=function(f,b){f.p(Math.log(b)/Math.LN10)};p.prototype.max=function(f){var b=arguments[1];"number"!==
typeof b&&(b=0);var e,c,a;e=2;for(c=arguments.length;e<c;e++)a=arguments[e],"number"===typeof a&&b<a&&(b=a);f.p(b)};p.prototype.min=function(f){var b=arguments[1];"number"!==typeof b&&(b=0);var e,c,a;e=2;for(c=arguments.length;e<c;e++)a=arguments[e],"number"===typeof a&&b>a&&(b=a);f.p(b)};p.prototype.ve=function(f){f.p(this.b.ve)};p.prototype.og=function(f){f.p(this.b.og)};p.prototype.time=function(f){f.p(this.b.lb.L)};p.prototype.$c=function(f){f.P(this.b.$c)};p.prototype.oh=function(f){f.P(this.b.oh)};
p.prototype.Fi=function(f){f.P(this.b.Fi)};p.prototype.k=function(f,b,e,c,a){f.p(Ga(Na(b,e,c,a)))};p.prototype.hr=function(f,b){var e=this.b.wq(b);e?f.p(100*e.opacity):f.p(0)};p.prototype.left=function(f,b,e){f.Ta(M(b)?b.substr(0,e):"")};p.prototype.right=function(f,b,e){f.Ta(M(b)?b.substr(b.length-e):"")};p.prototype.replace=function(f,b,e,c){M(b)&&M(e)&&M(c)?f.Ta(b.replace(new RegExp($a(e),"gi"),c)):f.Ta(M(b)?b:"")};p.prototype.trim=function(f,b){f.Ta(M(b)?b.trim():"")};p.prototype.Sk=function(f){var b=
O(Math.random()*(arguments.length-1));f.Wm(arguments[b+1])};p.prototype.Sr=function(f,b,e,c){f.P(ta(b,e,c))};p.prototype.Mr=function(f){f.Ta(this.b.rs)};p.prototype.qi=function(f){f.p(this.b.qi/1E3)};p.prototype.hh=function(f){f.p(this.b.hh)};r.ya=new p;r.Tr=function(){var f,b,e,c,a,d,k=this.b.Sa();f=0;for(e=this.ab.length;f<e;f++){c=this.ab[f];if(-1===c.time){if(!c.Xj)continue}else if(c.time>this.b.lb.L)continue;k.gb=c.we;k.bb=c.bb;k.eb=0;for(b in c.Ua)c.Ua.hasOwnProperty(b)&&(a=this.b.i[parseInt(b,
10)].R(),d=c.Ua[b],a.W=d.Bh,Ba(a.d,d.Mc),a=d,Q(a.Mc),t.push(a));c.we.Rr();this.b.oi(c.X);c.wi=!0}b=f=0;for(e=this.ab.length;f<e;f++)c=this.ab[f],this.ab[b]=c,c.wi?(Ua(c.Ua),Q(c.X),u.push(c)):b++;Aa(this.ab,b)}})();
(function(){jb=function(h,p){var r=h[1],u=h[3],t=h[4],f=h[5],b=h[6],e=h[7],c=h[8];p.e||(p.e={});p.Q||(p.Q={});p.ya||(p.ya={});var a=p.e,d=p.Q,k=p.ya;u&&(a.Fs=function(a,b){return Wb(this.x,a,b)},a.Gs=function(a,b){return Wb(this.y,a,b)},a.Ns=function(){var a=this.g;this.xa();var b=this.Da;return!(b.right<a.M||b.bottom<a.N||b.left>a.T||b.top>a.S)},a.Os=function(){this.xa();var a=this.Da,b=this.b.O;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.$s=function(a,b,c){var d=this.R(),e=d.cc();
if(!e.length)return!1;var f=e[0],k=f,h=Ra(f.x,f.y,b,c),l,p,r;l=1;for(p=e.length;l<p;l++)if(f=e[l],r=Ra(f.x,f.y,b,c),0===a&&r<h||1===a&&r>h)h=r,k=f;d.$f(k);return!0},d.tt=function(a){this.x!==a&&(this.x=a,this.wa())},d.ut=function(a){this.y!==a&&(this.y=a,this.wa())},d.yo=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.wa()},d.zo=function(a,b){var c=a.yq(this);if(c){var d;c.Li?(d=c.Li(b,!0),c=c.Li(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.wa()}},d.Ts=function(a){0!==
a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.wa())},d.Ss=function(a,b){0!==b&&(this.x+=Math.cos(R(a))*b,this.y+=Math.sin(R(a))*b,this.wa())},k.Io=function(a){a.p(this.x)},k.Jo=function(a){a.p(this.y)},k.ve=function(a){a.p(this.b.Ii(this))});t&&(a.Es=function(a,b){return Wb(this.width,a,b)},a.Cs=function(a,b){return Wb(this.height,a,b)},d.Co=function(a){this.width!==a&&(this.width=a,this.wa())},d.mt=function(a){this.height!==a&&(this.height=a,this.wa())},d.ot=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.wa()},k.At=function(a){a.p(this.width)},k.Js=function(a){a.p(this.height)},k.zs=function(a){this.xa();a.p(this.Da.left)},k.Bs=function(a){this.xa();a.p(this.Da.top)},k.As=function(a){this.xa();a.p(this.Da.right)},k.ys=function(a){this.xa();a.p(this.Da.bottom)});f&&(a.Cn=function(a,b){return Oa(this.k,R(b))<=R(a)},a.Rn=function(a){return Qa(this.k,R(a))},a.Qn=function(a,b){var c=Ma(a),d=Ma(b),e=Ka(this.k);return Qa(d,c)?Qa(e,c)&&!Qa(e,d):!(!Qa(e,c)&&
Qa(e,d))},d.it=function(a){a=R(Ja(a));isNaN(a)||this.k===a||(this.k=a,this.wa())},d.et=function(a){0===a||isNaN(a)||(this.k+=R(a),this.k=Ka(this.k),this.wa())},d.ft=function(a){0===a||isNaN(a)||(this.k-=R(a),this.k=Ka(this.k),this.wa())},d.gt=function(a,b){var c=Pa(this.k,R(b),R(a));isNaN(c)||this.k===c||(this.k=c,this.wa())},d.ht=function(a,b,c){a=Pa(this.k,Math.atan2(c-this.y,b-this.x),R(a));isNaN(a)||this.k===a||(this.k=a,this.wa())},d.pt=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||
this.k===c||(this.k=c,this.wa())},k.xs=function(a){a.p(La(this.k))});r||(a.In=function(a,b,c){return Wb(this.ma[a],b,c)},a.Ls=function(a){return this.ma[a]},a.bt=function(a,b){var c=this.R(),d=c.cc();if(!d.length)return!1;var e=d[0],f=e,k=e.ma[b],h,l,p;h=1;for(l=d.length;h<l;h++)if(e=d[h],p=e.ma[b],0===a&&p<k||1===a&&p>k)k=p,f=e;c.$f(f);return!0},a.Zs=function(a){var b,c,d,e,f;if(this.b.jl().Zi){f=this.R();if(f.W)for(f.W=!1,Q(f.d),Q(f.H),d=this.d,b=0,c=d.length;b<c;b++)e=d[b],e.uid===a?f.H.push(e):
f.d.push(e);else{d=b=0;for(c=f.d.length;b<c;b++)e=f.d[b],f.d[d]=e,e.uid===a?f.H.push(e):d++;Aa(f.d,d)}this.jd();return!!f.d.length}e=this.b.ol(a);if(!e)return!1;f=this.R();if(!f.W&&-1===f.d.indexOf(e))return!1;if(this.I)for(a=e.type.Y,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.$f(e),this.jd(),!0}else if(e.type===this)return f.$f(e),this.jd(),!0;return!1},a.nk=function(){return!0},a.Yn=function(){return!0},d.nt=function(a,b){var c=this.ma;A(c[a])?c[a]=A(b)?b:parseFloat(b):M(c[a])&&(c[a]=M(b)?
b:b.toString())},d.ws=function(a,b){var c=this.ma;A(c[a])?c[a]=A(b)?c[a]+b:c[a]+parseFloat(b):M(c[a])&&(c[a]=M(b)?c[a]+b:c[a]+b.toString())},d.xt=function(a,b){var c=this.ma;A(c[a])&&(c[a]=A(b)?c[a]-b:c[a]-parseFloat(b))},d.jt=function(a,b){this.ma[a]=b?1:0},d.yt=function(a){this.ma[a]=1-this.ma[a]},d.Is=function(){this.b.Ld(this)},d.Un||(d.Un=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.gh(this,b,!0);this.Md&&this.Md();if(this.B)for(a=0,b=this.B.length;a<b;++a)c=this.B[a],c.Md&&
c.Md()}),k.Hs=function(a){var b=a.ie.d.length,c,d,e;c=0;for(d=this.b.pc.length;c<d;c++)e=this.b.pc[c],a.ie.I?0<=e.type.Y.indexOf(a.ie)&&b++:e.type===a.ie&&b++;a.P(b)},k.dt=function(a){a.P(a.ie.R().cc().length)},k.zt=function(a){a.P(this.uid)},k.Ks=function(a){a.P(this.zf())},k.Dn||(k.Dn=function(a){a.Ta(JSON.stringify(this.b.Uj(this,!0)))}));b&&(a.Ps=function(){return this.visible},d.qt=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.F=!0)},a.Ds=function(a,b){return Wb(fb(100*this.opacity),
a,b)},d.wk=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.F=!0)},k.Opacity=function(a){a.p(fb(100*this.opacity))});e&&(a.Ms=function(a){return a?this.g===a:!1},a.ct=function(a){var b=this.R(),c=b.cc();if(!c.length)return!1;var d=c[0],e=d,f,k;f=1;for(k=c.length;f<k;f++)if(d=c[f],0===a){if(d.g.index>e.g.index||d.g.index===e.g.index&&d.tc()>e.tc())e=d}else if(d.g.index<e.g.index||d.g.index===e.g.index&&d.tc()<e.tc())e=d;b.$f(e);return!0},d.Ws=function(){var a=this.g,
b=a.d;b.length&&b[b.length-1]===this||(a.Te(this,!1),a.hf(this,!1),this.b.F=!0)},d.Us=function(){var a=this.g,b=a.d;b.length&&b[0]===this||(a.Te(this,!1),a.Jr(this),this.b.F=!0)},d.Vs=function(a){a&&a!=this.g&&(this.g.Te(this,!0),this.g=a,a.hf(this,!0),this.b.F=!0)},d.Ct=function(a,b){var c=0===a;if(b){var d=b.sq(this);d&&d.uid!==this.uid&&(this.g.index!==d.g.index&&(this.g.Te(this,!0),this.g=d.g,d.g.hf(this,!0)),this.g.pr(this,d,c),this.b.F=!0)}},k.Rs=function(a){a.P(this.g.lm)},k.Qs=function(a){a.Ta(this.g.name)},
k.Bt=function(a){a.P(this.tc())});c&&(d.kt=function(a,b){if(this.b.m){var c=this.type.Ki(b);if(!(0>c)){var d=1===a;this.gd[c]!==d&&(this.gd[c]=d,this.lc(),this.b.F=!0)}}},d.lt=function(a,b,c){if(this.b.m){var d=this.type.Ki(a);0>d||(a=this.type.u[d],d=this.ba[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.m.Bq(a.la,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.qb&&(this.b.F=!0))))}})};Cb=function(){this.ki=this.ei=!0;this.type.Ek=!0;this.b.F=!0;var h,p,r=this.fi;h=0;for(p=r.length;h<p;++h)r[h](this);this.g.Eb&&
this.xa()};Db=function(h){h&&this.fi.push(h)};Fb=function(){if(this.ei){var h=this.Da,p=this.Qd;h.set(this.x,this.y,this.x+this.width,this.y+this.height);h.offset(-this.jb*this.width,-this.kb*this.height);this.k?(h.offset(-this.x,-this.y),p.Xm(h,this.k),p.offset(this.x,this.y),p.Nk(h)):p.Fh(h);h.normalize();this.ei=!1;this.ms()}};var h=new P(0,0,0,0);Gb=function(){if(this.g.Eb){var l=this.g.Ia,p=this.Da;h.set(l.Wa(p.left),l.Xa(p.top),l.Wa(p.right),l.Xa(p.bottom));this.Za.sf(h)||(this.Za.right<this.Za.left?
l.update(this,null,h):l.update(this,this.Za,h),this.Za.of(h),this.g.jc=!0)}};Hb=function(){if(this.ki&&this.mf){this.xa();var l=this.type.Uk,p=this.Da;h.set(l.Wa(p.left),l.Xa(p.top),l.Wa(p.right),l.Xa(p.bottom));this.nd.sf(h)||(this.nd.right<this.nd.left?l.update(this,null,h):l.update(this,this.nd,h),this.nd.of(h),this.ki=!1)}};Eb=function(h,p){return this.Da.Jb(h,p)&&this.Qd.Jb(h,p)?this.mn?this.Yt(h,p):this.oc&&!this.oc.er()?(this.oc.Wo(this.width,this.height,this.k),this.oc.Jb(h-this.x,p-this.y)):
!0:!1};yb=function(){this.type.Rh();return this.$d};Ib=function(){this.g.jk();return this.mc};Jb=function(){Q(this.K);var h,p,r,u=!0;h=0;for(p=this.gd.length;h<p;h++)this.gd[h]&&(r=this.type.u[h],this.K.push(r),r.hc||(u=!1));this.yn=!!this.K.length;this.Xc=u};zb=function(){return"Inst"+this.Hm};mb=function(h){if(h&&h.xb&&h.type!=this){var p,r,u;p=0;for(r=h.siblings.length;p<r;p++)if(u=h.siblings[p],u.type==this)return u}h=this.R().cc();return h.length?h[0]:null};nb=function(h){var p=this.R().cc();
return p.length?p[h.zf()%p.length]:null};lb=function(){if(this.Ye&&!this.I){var h,p;h=0;for(p=this.d.length;h<p;h++)this.d[h].$d=h;var r=h,u=this.b.pc;h=0;for(p=u.length;h<p;++h)u[h].type===this&&(u[h].$d=r++);this.Ye=!1}};wb=function(h){if(h<this.d.length)return this.d[h];h-=this.d.length;var p=this.b.pc,r,u;r=0;for(u=p.length;r<u;++r)if(p[r].type===this){if(0===h)return p[r];--h}return null};ob=function(){return this.Zc[this.qc]};pb=function(){this.qc++;this.qc===this.Zc.length?this.Zc.push(new kb(this)):
(this.Zc[this.qc].W=!0,Q(this.Zc[this.qc].H))};qb=function(){this.qc++;this.qc===this.Zc.length&&this.Zc.push(new kb(this));var h=this.Zc[this.qc],p=this.Zc[this.qc-1];p.W?h.W=!0:(h.W=!1,Ba(h.d,p.d));Q(h.H)};rb=function(){this.qc--};sb=function(h){var p,r,u,t,f,b=0;if(!this.I)for(p=0,r=this.Y.length;p<r;p++)for(f=this.Y[p],u=0,t=f.Z.length;u<t;u++){if(h===f.Z[u].name)return this.J.lastBehIndex=b,f.Z[u];b++}p=0;for(r=this.Z.length;p<r;p++){if(h===this.Z[p].name)return this.J.lastBehIndex=b,this.Z[p];
b++}return null};tb=function(h){return this.Pg(h)?this.J.lastBehIndex:-1};ub=function(h){var p,r;p=0;for(r=this.u.length;p<r;p++)if(this.u[p].name===h)return p;return-1};vb=function(){if(this.xb&&!this.I){var h,p,r,u,t,f,b;this.Rh();f=this.R();var e=f.W,c=(h=this.b.Sa())&&h.gb&&h.gb.gc;h=0;for(p=this.fb.length;h<p;h++)if(t=this.fb[h],t!==this&&(t.Rh(),b=t.R(),b.W=e,!e)){Q(b.d);r=0;for(u=f.d.length;r<u;++r)b.d[r]=t.Mi(f.d[r].$d);if(c)for(Q(b.H),r=0,u=f.H.length;r<u;++r)b.H[r]=t.Mi(f.H[r].$d)}}};xb=
function(){return"Type"+this.G};Wb=function(h,p,r){if("undefined"===typeof h||"undefined"===typeof r)return!1;switch(p){case 0:return h===r;case 1:return h!==r;case 2:return h<r;case 3:return h<=r;case 4:return h>r;case 5:return h>=r;default:return!1}}})();var dc={};function Y(h){this.b=h}
(function(){function h(){t&&f&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(e){b.xr(e)})}function l(){}function p(){}var r=Y.prototype;r.pb=function(b){this.ga=b;this.b=b.b};var u=r.pb.prototype;u.ca=function(){};var t=!1,f=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var b=document.createElement("script");b.onload=function(){t=!0;h()};b.src="offlineClient.js";document.head.appendChild(b)}});var b=null;
u.pm=function(){f=!0;h()};r.Qa=function(b){this.type=b;this.b=b.b};u=r.Qa.prototype;u.ca=function(){var e=this;window.addEventListener("resize",function(){e.b.trigger(Y.prototype.e.oo,e)});b=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){e.b.trigger(Y.prototype.e.ko,e)}),window.addEventListener("offline",function(){e.b.trigger(Y.prototype.e.io,e)}));this.b.Nc||(document.addEventListener("appMobi.device.update.available",function(){e.b.trigger(Y.prototype.e.$h,
e)}),document.addEventListener("backbutton",function(){e.b.trigger(Y.prototype.e.vg,e)}),document.addEventListener("menubutton",function(){e.b.trigger(Y.prototype.e.qk,e)}),document.addEventListener("searchbutton",function(){e.b.trigger(Y.prototype.e.po,e)}),document.addEventListener("tizenhwkey",function(b){var a;switch(b.keyName){case "back":a=e.b.trigger(Y.prototype.e.vg,e);!a&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(a=e.b.trigger(Y.prototype.e.qk,
e))||b.preventDefault()}}));this.b.ij&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){e.b.trigger(Y.prototype.e.vg,e)&&(b.handled=!0)}):this.b.hj&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!e.b.trigger(Y.prototype.e.vg,e)});this.b.Oo(function(b){b?e.b.trigger(Y.prototype.e.lo,e):e.b.trigger(Y.prototype.e.no,e)});this.Cl="undefined"!==typeof window.is_scirra_arcade};u.xr=function(b){b=b.data.type;
"downloading-update"===b?this.b.trigger(Y.prototype.e.so,this):"update-ready"===b||"update-pending"===b?this.b.trigger(Y.prototype.e.$h,this):"offline-ready"===b&&this.b.trigger(Y.prototype.e.jo,this)};l.prototype.ko=function(){return!0};l.prototype.io=function(){return!0};l.prototype.$h=function(){return!0};l.prototype.no=function(){return!0};l.prototype.lo=function(){return!0};l.prototype.oo=function(){return!0};l.prototype.vg=function(){return!0};l.prototype.qk=function(){return!0};l.prototype.po=
function(){return!0};l.prototype.so=function(){return!0};l.prototype.$h=function(){return!0};l.prototype.jo=function(){return!0};r.e=new l;p.prototype.On=function(b,c){this.b.wb?CocoonJS.App.openURL(b):this.b.Mb?ejecta.openURL(b):this.b.hj?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(b)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(b,{openExternal:!0}):self.cordova&&self.cordova.InAppBrowser?self.cordova.InAppBrowser.open(b,"_system"):this.Cl||this.b.na||window.open(b,
c)};p.prototype.uo=function(){this.Cl||this.b.na||window.location.reload()};p.prototype.Pn=function(b,c){var a=document.createElement("a");if("undefined"===typeof a.download)window.open(b);else{var d=document.getElementsByTagName("body")[0];a.textContent=c;a.href=b;a.download=c;d.appendChild(a);var f=new MouseEvent("click");a.dispatchEvent(f);d.removeChild(a)}};r.Q=new p;r.ya=new function(){}})();function gc(h){this.b=h}
(function(){function h(){this.name="";this.fg=0;this.Pe=[]}function l(){b++;b===f.length&&f.push(new h);return f[b]}function p(){}function r(){}function u(){}var t=gc.prototype;t.pb=function(b){this.ga=b;this.b=b.b};t.pb.prototype.ca=function(){};t.Qa=function(b){this.type=b;this.b=b.b};var f=[],b=-1;t.Qa.prototype.ca=function(){var e=this;window.c2_callFunction=function(c,a){var d,f,g,h=l();h.name=c.toLowerCase();h.fg=0;if(a)for(h.Pe.length=a.length,d=0,f=a.length;d<f;++d)g=a[d],h.Pe[d]="number"===
typeof g||"string"===typeof g?g:"boolean"===typeof g?g?1:0:0;else Q(h.Pe);e.b.trigger(gc.prototype.e.wg,e,h.name);b--;return h.fg}};p.prototype.wg=function(e){var c=0>b?null:f[b];return c?gb(e,c.name):!1};t.e=new p;r.prototype.CallFunction=function(e,c){var a=l();a.name=e.toLowerCase();a.fg=0;Ba(a.Pe,c);this.b.trigger(gc.prototype.e.wg,this,a.name);b--};t.Q=new r;u.prototype.En=function(e,c){var a=l();a.name=c.toLowerCase();a.fg=0;Q(a.Pe);var d,f;d=2;for(f=arguments.length;d<f;d++)a.Pe.push(arguments[d]);
this.b.trigger(gc.prototype.e.wg,this,a.name);b--;e.Wm(a.fg)};t.ya=new u})();function fc(h){this.b=h}
(function(){function h(){if(0===this.ti.length){var b=document.createElement("canvas");b.width=this.width;b.height=this.height;var a=b.getContext("2d");this.Xe?a.drawImage(this.Ca,this.Ne,this.Oe,this.width,this.height,0,0,this.width,this.height):a.drawImage(this.Ca,0,0,this.width,this.height);this.ti=b.toDataURL("image/png")}return this.ti}function l(){}function p(){}var r=fc.prototype;r.pb=function(b){this.ga=b;this.b=b.b};var u=r.pb.prototype;u.ca=function(){if(!this.I){var b,a,d,e,g,f,l,q,m;this.Zb=
[];this.Cf=!1;b=0;for(a=this.cb.length;b<a;b++){g=this.cb[b];l={};l.name=g[0];l.speed=g[1];l.loop=g[2];l.Pj=g[3];l.Qj=g[4];l.zm=g[5];l.G=g[6];l.frames=[];d=0;for(e=g[7].length;d<e;d++)f=g[7][d],q={},q.jn=f[0],q.kn=f[1],q.Ne=f[2],q.Oe=f[3],q.width=f[4],q.height=f[5],q.duration=f[6],q.jb=f[7],q.kb=f[8],q.Ti=f[9],q.vh=f[10],q.Am=f[11],q.Xe=0!==q.width,q.ti="",q.It=h,m={left:0,top:0,right:1,bottom:1},q.Wj=m,q.cd=null,(m=this.b.oq(f[0]))?q.Ca=m:(q.Ca=new Image,q.Ca.$o=f[0],q.Ca.Zo=f[1],q.Ca.Vo=null,this.b.ts(q.Ca,
f[0])),l.frames.push(q),this.Zb.push(q);this.cb[b]=l}}};u.xn=function(){var b,a,d;b=0;for(a=this.d.length;b<a;b++)d=this.d[b],d.Cg=d.Ea.cd};u.Bj=function(){if(!this.I){var b,a,d;b=0;for(a=this.Zb.length;b<a;++b)d=this.Zb[b],d.Ca.Vo=null,d.cd=null;this.Cf=!1;this.xn()}};u.tm=function(){if(!this.I&&this.d.length){var b,a,d;b=0;for(a=this.Zb.length;b<a;++b)d=this.Zb[b],d.cd=this.b.m.Ll(d.Ca,this.b.fa,d.Am);this.xn()}};u.kr=function(){if(!this.I&&!this.Cf&&this.b.m){var b,a,d;b=0;for(a=this.Zb.length;b<
a;++b)d=this.Zb[b],d.cd=this.b.m.Ll(d.Ca,this.b.fa,d.Am);this.Cf=!0}};u.un=function(){if(!this.I&&!this.d.length&&this.Cf){var b,a,d;b=0;for(a=this.Zb.length;b<a;++b)d=this.Zb[b],this.b.m.deleteTexture(d.cd),d.cd=null;this.Cf=!1}};var t=[];u.Em=function(b){var a,d,e;Q(t);a=0;for(d=this.Zb.length;a<d;++a)e=this.Zb[a].Ca,-1===t.indexOf(e)&&(b.drawImage(e,0,0),t.push(e))};r.Qa=function(b){this.type=b;this.b=b.b;b=this.type.cb[0].frames[0].vh;this.zb?this.oc.hg(b):this.oc=new ab(b)};var f=r.Qa.prototype;
f.ca=function(){this.visible=0===this.ja[0];this.Ui=this.gj=!1;this.mf=0!==this.ja[3];this.V=this.il(this.ja[1])||this.type.cb[0];this.n=this.ja[2];0>this.n&&(this.n=0);this.n>=this.V.frames.length&&(this.n=this.V.frames.length-1);var b=this.V.frames[this.n];this.oc.hg(b.vh);this.jb=b.jb;this.kb=b.kb;this.se=this.V.speed;this.od=this.V.Qj;1===this.type.cb.length&&1===this.type.cb[0].frames.length||0===this.se||(this.b.ak(this),this.gj=!0);this.zb?this.nc.reset():this.nc=new Za;this.Lc=this.nc.L;this.Od=
!0;this.Cc=0;this.Nd=!0;this.ni=this.Ck="";this.Xo=0;this.zg=-1;this.type.kr();var a,d,e,g,f,h,q,b=0;for(a=this.type.cb.length;b<a;b++)for(g=this.type.cb[b],d=0,e=g.frames.length;d<e;d++)f=g.frames[d],0===f.width&&(f.width=f.Ca.width,f.height=f.Ca.height),f.Xe&&(q=f.Ca,h=f.Wj,h.left=f.Ne/q.width,h.top=f.Oe/q.height,h.right=(f.Ne+f.width)/q.width,h.bottom=(f.Oe+f.height)/q.height,0===f.Ne&&0===f.Oe&&f.width===q.width&&f.height===q.height&&(f.Xe=!1));this.Ea=this.V.frames[this.n];this.Cg=this.Ea.cd};
f.Qb=function(){var b={a:this.V.G,f:this.n,cas:this.se,fs:this.Lc,ar:this.Cc,at:this.nc.L,rt:this.od};this.Od||(b.ap=this.Od);this.Nd||(b.af=this.Nd);return b};f.vc=function(b){var a=this.qq(b.a);a&&(this.V=a);this.n=b.f;0>this.n&&(this.n=0);this.n>=this.V.frames.length&&(this.n=this.V.frames.length-1);this.se=b.cas;this.Lc=b.fs;this.Cc=b.ar;this.nc.reset();this.nc.L=b.at;this.Od=b.hasOwnProperty("ap")?b.ap:!0;this.Nd=b.hasOwnProperty("af")?b.af:!0;b.hasOwnProperty("rt")?this.od=b.rt:this.od=this.V.Qj;
this.Ea=this.V.frames[this.n];this.Cg=this.Ea.cd;this.oc.hg(this.Ea.vh);this.jb=this.Ea.jb;this.kb=this.Ea.kb};f.ci=function(b){this.n=b?0:this.V.frames.length-1;this.Od=!1;this.Ck=this.V.name;this.Ui=!0;this.b.trigger(fc.prototype.e.Wn,this);this.b.trigger(fc.prototype.e.Vn,this);this.Ui=!1;this.Cc=0};f.di=function(){return this.nc.L};f.Id=function(){this.nc.add(this.b.Ii(this));this.ni.length&&this.gp();0<=this.zg&&this.Zk();var b=this.nc.L,a=this.V,d=a.frames[this.n],e=d.duration/this.se;this.Od&&
b>=this.Lc+e&&(this.Nd?this.n++:this.n--,this.Lc+=e,this.n>=a.frames.length&&(a.zm?(this.Nd=!1,this.n=a.frames.length-2):a.loop?this.n=this.od:(this.Cc++,this.Cc>=a.Pj?this.ci(!1):this.n=this.od)),0>this.n&&(a.zm?(this.n=1,this.Nd=!0,a.loop||(this.Cc++,this.Cc>=a.Pj&&this.ci(!0))):a.loop?this.n=this.od:(this.Cc++,this.Cc>=a.Pj?this.ci(!0):this.n=this.od)),0>this.n?this.n=0:this.n>=a.frames.length&&(this.n=a.frames.length-1),b>this.Lc+a.frames[this.n].duration/this.se&&(this.Lc=b),b=a.frames[this.n],
this.qe(d,b),this.b.F=!0)};f.il=function(b){var a,d,e;a=0;for(d=this.type.cb.length;a<d;a++)if(e=this.type.cb[a],gb(e.name,b))return e;return null};f.qq=function(b){var a,d,e;a=0;for(d=this.type.cb.length;a<d;a++)if(e=this.type.cb[a],e.G===b)return e;return null};f.gp=function(){var b=this.V.frames[this.n],a=this.il(this.ni);this.ni="";!a||gb(a.name,this.V.name)&&this.Od||(this.V=a,this.se=a.speed,this.od=a.Qj,0>this.n&&(this.n=0),this.n>=this.V.frames.length&&(this.n=this.V.frames.length-1),1===
this.Xo&&(this.n=0),this.Od=!0,this.Lc=this.nc.L,this.Nd=!0,this.qe(b,this.V.frames[this.n]),this.b.F=!0)};f.Zk=function(){var b=this.V.frames[this.n],a=this.n;this.n=O(this.zg);0>this.n&&(this.n=0);this.n>=this.V.frames.length&&(this.n=this.V.frames.length-1);a!==this.n&&(this.qe(b,this.V.frames[this.n]),this.Lc=this.nc.L,this.b.F=!0);this.zg=-1};f.qe=function(b,a){var d=b.width,e=b.height,g=a.width,f=a.height;d!=g&&(this.width*=g/d);e!=f&&(this.height*=f/e);this.jb=a.jb;this.kb=a.kb;this.oc.hg(a.vh);
this.wa();this.Ea=a;this.Cg=a.cd;d=0;for(e=this.B.length;d<e;d++)g=this.B[d],g.yr&&g.yr(b,a);this.b.trigger(fc.prototype.e.qe,this)};f.Ic=function(b){b.globalAlpha=this.opacity;var a=this.Ea,d=a.Xe,e=a.Ca,g=this.x,f=this.y,h=this.width,q=this.height;if(0===this.k&&0<=h&&0<=q)g-=this.jb*h,f-=this.kb*q,this.b.Wc&&(g=Math.round(g),f=Math.round(f)),d?b.drawImage(e,a.Ne,a.Oe,a.width,a.height,g,f,h,q):b.drawImage(e,g,f,h,q);else{this.b.Wc&&(g=Math.round(g),f=Math.round(f));b.save();var m=0<h?1:-1,n=0<q?
1:-1;b.translate(g,f);1===m&&1===n||b.scale(m,n);b.rotate(this.k*m*n);g=0-this.jb*la(h);f=0-this.kb*la(q);d?b.drawImage(e,a.Ne,a.Oe,a.width,a.height,g,f,la(h),la(q)):b.drawImage(e,g,f,la(h),la(q));b.restore()}};f.ue=function(b){this.Kb(b)};f.Kb=function(b){b.Ab(this.Cg);b.Ve(this.opacity);var a=this.Ea,d=this.Qd;if(this.b.Wc){var e=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;a.Xe?b.Fd(d.Bb+e,d.Cb+f,d.Vb+e,d.Wb+f,d.Hb+e,d.Ib+f,d.Fb+e,d.Gb+f,a.Wj):b.eg(d.Bb+e,d.Cb+f,d.Vb+e,d.Wb+f,d.Hb+e,d.Ib+
f,d.Fb+e,d.Gb+f)}else a.Xe?b.Fd(d.Bb,d.Cb,d.Vb,d.Wb,d.Hb,d.Ib,d.Fb,d.Gb,a.Wj):b.eg(d.Bb,d.Cb,d.Vb,d.Wb,d.Hb,d.Ib,d.Fb,d.Gb)};f.uq=function(b){var a=this.Ea,d,e;d=0;for(e=a.Ti.length;d<e;d++)if(gb(b,a.Ti[d][0]))return d;return-1};f.Li=function(b,a){var d=this.Ea,e=d.Ti,f;M(b)?f=this.uq(b):f=b-1;f=O(f);if(0>f||f>=e.length)return a?this.x:this.y;var h=(e[f][1]-d.jb)*this.width,e=e[f][2],e=(e-d.kb)*this.height,d=Math.cos(this.k);f=Math.sin(this.k);var l=h*d-e*f,e=e*d+h*f,h=l+this.x,e=e+this.y;return a?
h:e};var b=new ca,e=!1;new P(0,0,0,0);u.finish=function(c){if(e){if(c){var a=this.b.Sa().gb.gc;c=null.R();var d=b.Kd(),f,g;if(c.W){c.W=!1;Q(c.d);f=0;for(g=d.length;f<g;++f)c.d[f]=d[f];if(a)for(Q(c.H),f=0,g=null.d.length;f<g;++f)d=null.d[f],b.contains(d)||c.H.push(d)}else if(a)for(a=c.d.length,f=0,g=d.length;f<g;++f)c.d[a+f]=d[f],Ea(c.H,d[f]);else Ba(c.d,d);null.jd()}b.clear();e=!1}};l.prototype.Vn=function(b){return gb(this.Ck,b)};l.prototype.Wn=function(){return!0};l.prototype.qe=function(){return!0};
r.e=new l;p.prototype.vo=function(b){this.zg=b;this.gj||(this.b.ak(this),this.gj=!0);this.Ui||this.Zk()};r.Q=new p;r.ya=new function(){}})();function hc(h){this.b=h}
(function(){function h(){return e.length?e.pop():{}}function l(b){var a,d;a=0;for(d=b.length;a<d;a++)e.push(b[a]);Q(b)}function p(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function r(){}function u(){}var t=hc.prototype;t.ca=function(){t.Q.Co=function(b){this.width!==b&&(this.width=b,this.me=!0,this.wa())}};t.pb=function(b){this.ga=b;this.b=b.b};var f=t.pb.prototype;f.ca=function(){};f.Bj=function(){if(!this.I){var b,a,d;b=0;for(a=this.d.length;b<a;b++)d=this.d[b],
d.wc=null,d.he=null,d.mb=null}};t.Qa=function(b){this.type=b;this.b=b.b;this.zb?Q(this.zd):this.zd=[];this.me=!0};f=t.Qa.prototype;f.ca=function(){this.text=this.ja[0];this.visible=0===this.ja[1];this.font=this.ja[2];this.color=this.ja[3];this.Tg=this.ja[4];this.Th=this.ja[5];this.lk=0===this.ja[7];this.oj=this.bh=this.width;this.ah=this.height;this.qj=this.ja[8];this.Mg=this.xe="";this.gn=this.hn=this.bg=0;this.Cr();this.mb=this.he=this.wc=null;this.yj=!1;this.Nf=this.b.$c;this.zb?this.Se.set(0,
0,1,1):this.Se=new P(0,0,1,1);this.b.m&&this.b.ak(this)};f.Cr=function(){var b=this.font.split(" "),a;for(a=0;a<b.length;a++)if("pt"===b[a].substr(b[a].length-2,2)){this.bg=parseInt(b[a].substr(0,b[a].length-2));this.Lj=Math.ceil(this.bg/72*96)+4;0<a&&(this.Mg=b[a-1]);this.xe=b[a+1];for(a+=2;a<b.length;a++)this.xe+=" "+b[a];break}};f.Qb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Tg,va:this.Th,wr:this.lk,lho:this.qj,fn:this.xe,fs:this.Mg,ps:this.bg,pxh:this.Lj,tw:this.hn,th:this.gn,
lrt:this.Nf}};f.vc=function(b){this.text=b.t;this.font=b.f;this.color=b.c;this.Tg=b.ha;this.Th=b.va;this.lk=b.wr;this.qj=b.lho;this.xe=b.fn;this.Mg=b.fs;this.bg=b.ps;this.Lj=b.pxh;this.hn=b.tw;this.gn=b.th;this.Nf=b.lrt;this.me=!0;this.oj=this.bh=this.width;this.ah=this.height};f.Id=function(){if(this.b.m&&this.mb&&300<=this.b.$c-this.Nf){var b=this.g;this.xa();var a=this.Da;if(a.right<b.M||a.bottom<b.N||a.left>b.T||a.top>b.S)this.b.m.deleteTexture(this.mb),this.wc=this.he=this.mb=null}};f.ph=function(){this.wc=
this.he=null;this.b.m&&this.mb&&this.b.m.deleteTexture(this.mb);this.mb=null};f.di=function(){this.font=this.Mg+" "+this.bg.toString()+"pt "+this.xe;this.me=!0;this.b.F=!0};f.Ic=function(b,a){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=a?1:this.opacity;var d=1;a&&(d=Math.abs(this.g.ib()),b.save(),b.scale(d,d));if(this.me||this.width!==this.oj)this.type.ga.Go(this.text,this.zd,b,this.width,this.lk),this.me=!1,this.oj=this.width;this.xa();var d=a?0:this.Qd.Bb,e=a?0:this.Qd.Cb;
this.b.Wc&&(d=d+.5|0,e=e+.5|0);0===this.k||a||(b.save(),b.translate(d,e),b.rotate(this.k),e=d=0);var f=e+this.height,h=this.Lj,h=h+this.qj,l,q;1===this.Th?e+=Math.max(this.height/2-this.zd.length*h/2,0):2===this.Th&&(e+=Math.max(this.height-this.zd.length*h-2,0));for(q=0;q<this.zd.length&&!(l=d,1===this.Tg?l=d+(this.width-this.zd[q].width)/2:2===this.Tg&&(l=d+(this.width-this.zd[q].width)),b.fillText(this.zd[q].text,l,e),e+=h,e>=f-h);q++);(0!==this.k||a)&&b.restore();this.Nf=this.b.$c};f.Kb=function(b){if(!(1>
this.width||1>this.height)){var a=this.me||this.yj;this.yj=!1;var d=this.g.ib(),e=this.g.hb(),f=this.Se,h=d*this.width,l=d*this.height,q=Math.ceil(h),m=Math.ceil(l),n=Math.abs(q),p=Math.abs(m),r=this.b.r/2,t=this.b.q/2;this.he||(this.wc=document.createElement("canvas"),this.wc.width=n,this.wc.height=p,this.bh=n,this.ah=p,a=!0,this.he=this.wc.getContext("2d"));if(n!==this.bh||p!==this.ah)this.wc.width=n,this.wc.height=p,this.mb&&(b.deleteTexture(this.mb),this.mb=null),a=!0;a&&(this.he.clearRect(0,
0,n,p),this.Ic(this.he,!0),this.mb||(this.mb=b.sb(n,p,this.b.fa,this.b.wd)),b.ss(this.wc,this.mb,this.b.wd));this.bh=n;this.ah=p;b.Ab(this.mb);b.Ve(this.opacity);b.Pb();b.translate(-r,-t);b.Db();var u=this.Qd,a=this.g.oa(u.Bb,u.Cb,!0),n=this.g.oa(u.Bb,u.Cb,!1),p=this.g.oa(u.Vb,u.Wb,!0),r=this.g.oa(u.Vb,u.Wb,!1),t=this.g.oa(u.Hb,u.Ib,!0),B=this.g.oa(u.Hb,u.Ib,!1),U=this.g.oa(u.Fb,u.Gb,!0),u=this.g.oa(u.Fb,u.Gb,!1);if(this.b.Wc||0===this.k&&0===e)var F=(a+.5|0)-a,G=(n+.5|0)-n,a=a+F,n=n+G,p=p+F,r=r+
G,t=t+F,B=B+G,U=U+F,u=u+G;0===this.k&&0===e?(p=a+q,r=n,t=p,B=n+m,U=a,u=B,f.right=1,f.bottom=1):(f.right=h/q,f.bottom=l/m);b.Fd(a,n,p,r,t,B,U,u,f);b.Pb();b.scale(d,d);b.Ah(-this.g.hb());b.translate((this.g.M+this.g.T)/-2,(this.g.N+this.g.S)/-2);b.Db();this.Nf=this.b.$c}};var b=[];t.Eo=function(c){Q(b);for(var a="",d,e=0;e<c.length;)if(d=c.charAt(e),"\n"===d)a.length&&(b.push(a),a=""),b.push("\n"),++e;else if(" "===d||"\t"===d||"-"===d){do a+=c.charAt(e),e++;while(e<c.length&&(" "===c.charAt(e)||"\t"===
c.charAt(e)));b.push(a);a=""}else e<c.length&&(a+=d,e++);a.length&&b.push(a)};var e=[];t.Go=function(b,a,d,e,f){if(b&&b.length)if(2>=e)l(a);else{if(100>=b.length&&-1===b.indexOf("\n")){var p=d.measureText(b).width;if(p<=e){l(a);a.push(h());a[0].text=b;a[0].width=p;return}}this.Ho(b,a,d,e,f)}else l(a)};t.Ho=function(c,a,d,f,g){g&&(this.Eo(c),c=b);var l="",r,q,m,n=0;for(m=0;m<c.length;m++)"\n"===c[m]?(n>=a.length&&a.push(h()),l=p(l),q=a[n],q.text=l,q.width=d.measureText(l).width,n++,l=""):(r=l,l+=c[m],
q=d.measureText(l).width,q>=f&&(n>=a.length&&a.push(h()),r=p(r),q=a[n],q.text=r,q.width=d.measureText(r).width,n++,l=c[m],g||" "!==l||(l="")));l.length&&(n>=a.length&&a.push(h()),l=p(l),q=a[n],q.text=l,q.width=d.measureText(l).width,n++);for(m=n;m<a.length;m++)e.push(a[m]);a.length=n};t.e=new function(){};r.prototype.Ao=function(b){A(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.me=!0,this.b.F=!0)};r.prototype.wo=function(b){b="rgb("+va(b).toString()+","+wa(b).toString()+
","+xa(b).toString()+")";b!==this.color&&(this.color=b,this.yj=!0,this.b.F=!0)};t.Q=new r;u.prototype.Text=function(b){b.Ta(this.text)};t.ya=new u})();function Z(h){this.b=h}
(function(){function h(b){c=b.x;a=b.y;d=b.z}function l(a,b,c,d){var e;e=k.length?k.pop():new p;e.init(a,b,c,d);return e}function p(){this.kg=this.id=this.y=this.x=this.Jh=this.Ih=this.nj=this.time=this.Zj=0;this.pg=this.Ph=!1}function r(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function u(){}function t(){}var f=Z.prototype;f.pb=function(a){this.ga=a;this.b=a.b};f.pb.prototype.ca=
function(){};f.Qa=function(a){this.type=a;this.b=a.b;this.touches=[];this.wj=!1};var b=f.Qa.prototype,e={left:0,top:0};b.wf=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 c=0,a=0,d=0,k=[];p.prototype.init=function(a,b,c,d){var e=S();this.Zj=this.nj=this.time=e;this.Ih=a;this.Jh=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.kg=d;this.pg=this.Ph=!1};p.prototype.update=function(a,b,c,d,e,f){this.nj=this.time;this.time=
a;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.pg&&15<=Ra(this.Ih,this.Jh,this.x,this.y)&&(this.pg=!0)};p.prototype.nr=function(a,b){!this.Ph&&500<=S()-this.Zj&&!this.pg&&15>Ra(this.Ih,this.Jh,this.x,this.y)&&(this.Ph=!0,a.Bc=this.kg,a.$e=this.id,a.Ce=b,a.b.trigger(Z.prototype.e.co,a),a.Fc=this.x,a.Gc=this.y,a.b.trigger(Z.prototype.e.eo,a),a.Ce=0)};var g=-1E3,w=-1E3,z=-1E4;p.prototype.fm=function(a,b){if(!this.Ph){var c=S();333>=c-this.Zj&&!this.pg&&15>Ra(this.Ih,this.Jh,this.x,
this.y)&&(a.Bc=this.kg,a.$e=this.id,a.Ce=b,666>=c-z&&25>Ra(g,w,this.x,this.y)?(a.b.trigger(Z.prototype.e.Zn,a),a.Fc=this.x,a.Gc=this.y,a.b.trigger(Z.prototype.e.$n,a),w=g=-1E3,z=-1E4):(a.b.trigger(Z.prototype.e.qo,a),a.Fc=this.x,a.Gc=this.y,a.b.trigger(Z.prototype.e.ro,a),g=this.x,w=this.y,z=c),a.Ce=0)}};b.ca=function(){this.cr=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Ce=this.$e=this.Bc=this.Gc=this.Fc=this.zk=this.yk=this.xk=this.Mo=this.Lo=this.Ko=this.uh=this.sh=this.rh=
0;this.os=0!==this.ja[0];var a=0<this.b.Ya?document:this.b.canvas,b=document;this.b.Nc?b=a=window.Canvas:this.b.wb&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.rm(a)},!1),a.addEventListener("pointermove",function(a){c.qm(a)},!1),b.addEventListener("pointerup",function(a){c.qh(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.qh(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.rm(a)},!1),a.addEventListener("MSPointerMove",function(a){c.qm(a)},!1),b.addEventListener("MSPointerUp",function(a){c.qh(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.qh(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.vm(a)},!1),a.addEventListener("touchmove",function(a){c.um(a)},!1),b.addEventListener("touchend",function(a){c.Cj(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Cj(a,!0)},!1));if(this.cr){var d=function(a){a=a.reading;c.xk=a.accelerationX;c.yk=a.accelerationY;
c.zk=a.accelerationZ},e=function(a){a=a.reading;c.rh=a.yawDegrees;c.sh=a.pitchDegrees;c.uh=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",d));var g=Windows.Devices.Sensors.Inclinometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?
(f&&f.removeEventListener("readingchanged",d),g&&g.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),g&&g.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.rh=a.alpha||0;c.sh=a.beta||0;c.uh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Ko=a.accelerationIncludingGravity.x||0,c.Lo=a.accelerationIncludingGravity.y||0,c.Mo=a.accelerationIncludingGravity.z||
0);a.acceleration&&(c.xk=a.acceleration.x||0,c.yk=a.acceleration.y||0,c.zk=a.acceleration.z||0)},!1);this.os&&!this.b.na&&(jQuery(document).mousemove(function(a){c.tr(a)}),jQuery(document).mousedown(function(a){c.sr(a)}),jQuery(document).mouseup(function(a){c.ur(a)}));!this.b.Zg&&this.b.Lb&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(h,null,{frequency:40});this.b.gs(this)};b.qm=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.wf(a.pointerId),c=S();if(0<=b){var d=this.b.na?e:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||b.update(c,a.pageX-d.left,a.pageY-d.top,a.width||0,a.height||0,a.pressure||0)}}};b.rm=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&hb(a)&&a.preventDefault();var b=this.b.na?e:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;S();this.Bc=this.touches.length;
this.$e=a.pointerId;this.touches.push(l(c,b,a.pointerId,this.Bc));this.b.vd=!0;this.b.trigger(Z.prototype.e.sk,this);this.b.trigger(Z.prototype.e.vk,this);this.Fc=c;this.Gc=b;this.b.trigger(Z.prototype.e.Zh,this);this.b.vd=!1}};b.qh=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&hb(a)&&a.preventDefault();var c=this.wf(a.pointerId);this.Bc=0<=c?this.touches[c].kg:-1;this.$e=0<=c?this.touches[c].id:-1;this.b.vd=!0;this.b.trigger(Z.prototype.e.rk,
this);this.b.trigger(Z.prototype.e.uk,this);0<=c&&(b||this.touches[c].fm(this,c),100>k.length&&k.push(this.touches[c]),this.touches.splice(c,1));this.b.vd=!1}};b.um=function(a){a.preventDefault&&a.preventDefault();var b=S(),c,d,f,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(f=a.changedTouches[c],g=this.wf(f.identifier),0<=g){var h=this.b.na?e:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,f.pageX-h.left,f.pageY-h.top,2*(f.Tt||f.cu||f.Nt||f.Qt||0),2*(f.Ut||f.du||f.Ot||f.Rt||
0),f.Ht||f.bu||f.Mt||f.Pt||0)}};b.vm=function(a){a.preventDefault&&hb(a)&&a.preventDefault();var b=this.b.na?e:jQuery(this.b.canvas).offset();S();this.b.vd=!0;var c,d,f,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(f=a.changedTouches[c],g=this.wf(f.identifier),-1===g){g=f.pageX-b.left;var h=f.pageY-b.top;this.Bc=this.touches.length;this.$e=f.identifier;this.touches.push(l(g,h,f.identifier,this.Bc));this.b.trigger(Z.prototype.e.sk,this);this.b.trigger(Z.prototype.e.vk,this);this.Fc=g;this.Gc=h;this.b.trigger(Z.prototype.e.Zh,
this)}this.b.vd=!1};b.Cj=function(a,b){a.preventDefault&&hb(a)&&a.preventDefault();this.b.vd=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.wf(e.identifier),0<=e&&(this.Bc=this.touches[e].kg,this.$e=this.touches[e].id,this.b.trigger(Z.prototype.e.rk,this),this.b.trigger(Z.prototype.e.uk,this),b||this.touches[e].fm(this,e),100>k.length&&k.push(this.touches[e]),this.touches.splice(e,1));this.b.vd=!1};b.di=function(){return this.b.Lb&&0===this.rh&&0!==d?90*d:this.rh};
b.Ft=function(){return this.b.Lb&&0===this.sh&&0!==a?90*a:this.sh};b.Gt=function(){return this.b.Lb&&0===this.uh&&0!==c?90*c:this.uh};b.sr=function(a){r(a)||(this.vm({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.wj=!0)};b.tr=function(a){this.wj&&!r(a)&&this.um({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.ur=function(a){a.preventDefault&&this.b.pl&&!this.b.wd&&a.preventDefault();this.b.pl=!0;r(a)||(this.Cj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),
this.wj=!1)};b.$j=function(){var a,b,c,d=S();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.nj=d),c.nr(this,a)};u.prototype.vk=function(){return!0};u.prototype.uk=function(){return!0};u.prototype.Zh=function(a){return a?this.b.Lh(a,this.Fc,this.Gc):!1};u.prototype.sk=function(a){a=Math.floor(a);return a===this.Bc};u.prototype.rk=function(a){a=Math.floor(a);return a===this.Bc};u.prototype.co=function(){return!0};u.prototype.qo=function(){return!0};u.prototype.Zn=function(){return!0};
u.prototype.eo=function(a){return a?this.b.Lh(a,this.Fc,this.Gc):!1};u.prototype.ro=function(a){return a?this.b.Lh(a,this.Fc,this.Gc):!1};u.prototype.$n=function(a){return a?this.b.Lh(a,this.Fc,this.Gc):!1};f.e=new u;f.Q=new function(){};t.prototype.Io=function(a,b){var c=this.Ce;if(0>c||c>=this.touches.length)a.p(0);else{var d,e,f,g,h;fa(b)?(d=this.b.Be(0),e=d.scale,f=d.ed,g=d.Uc,h=d.k,d.scale=1,d.ed=1,d.Uc=1,d.k=0,a.p(d.Ra(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.ed=f,d.Uc=g,d.k=h):
(d=A(b)?this.b.Be(b):this.b.Qg(b))?a.p(d.Ra(this.touches[c].x,this.touches[c].y,!0)):a.p(0)}};t.prototype.Jo=function(a,b){var c=this.Ce;if(0>c||c>=this.touches.length)a.p(0);else{var d,e,f,g,h;fa(b)?(d=this.b.Be(0),e=d.scale,f=d.ed,g=d.Vc,h=d.k,d.scale=1,d.ed=1,d.Vc=1,d.k=0,a.p(d.Ra(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.ed=f,d.Vc=g,d.k=h):(d=A(b)?this.b.Be(b):this.b.Qg(b))?a.p(d.Ra(this.touches[c].x,this.touches[c].y,!1)):a.p(0)}};f.ya=new t})();function ic(h){this.b=h}
(function(){function h(){}function l(){}var p=ic.prototype;p.pb=function(h){this.behavior=h;this.b=h.b};p.pb.prototype.ca=function(){};p.Qa=function(h,l){this.type=h;this.behavior=h.behavior;this.Oa=l;this.b=h.b};var r=p.Qa.prototype;r.ca=function(){this.ai=1===this.ja[0];this.Um=!1;this.uf=this.ja[1];this.tg=this.ja[2];this.Ig=this.ja[3];this.ep=this.ja[4];this.ob=this.ai?0:3;this.zb?this.Sb.reset():this.Sb=new Za;this.Dd=this.Oa.opacity?this.Oa.opacity:1;this.ai&&(0===this.uf?(this.ob=1,0===this.tg&&
(this.ob=2)):(this.Oa.opacity=0,this.b.F=!0))};r.Qb=function(){return{fit:this.uf,wt:this.tg,fot:this.Ig,s:this.ob,st:this.Sb.L,mo:this.Dd}};r.vc=function(h){this.uf=h.fit;this.tg=h.wt;this.Ig=h.fot;this.ob=h.s;this.Sb.reset();this.Sb.L=h.st;this.Dd=h.mo};r.Id=function(){this.Sb.add(this.b.Ii(this.Oa));0===this.ob&&(this.Oa.opacity=this.Sb.L/this.uf*this.Dd,this.b.F=!0,this.Oa.opacity>=this.Dd&&(this.Oa.opacity=this.Dd,this.ob=1,this.Sb.reset(),this.b.trigger(ic.prototype.e.ao,this.Oa)));1===this.ob&&
this.Sb.L>=this.tg&&(this.ob=2,this.Sb.reset(),this.b.trigger(ic.prototype.e.to,this.Oa));2===this.ob&&0!==this.Ig&&(this.Oa.opacity=this.Dd-this.Sb.L/this.Ig*this.Dd,this.b.F=!0,0>this.Oa.opacity&&(this.Oa.opacity=0,this.ob=3,this.Sb.reset(),this.b.trigger(ic.prototype.e.bo,this.Oa),1===this.ep&&this.b.Ld(this.Oa)))};r.vp=function(){this.ob=0;this.Sb.reset();0===this.uf?(this.ob=1,0===this.tg&&(this.ob=2)):(this.Oa.opacity=0,this.b.F=!0)};h.prototype.bo=function(){return!0};h.prototype.ao=function(){return!0};
h.prototype.to=function(){return!0};p.e=new h;l.prototype.Do=function(){this.ai||this.Um||(this.Dd=this.Oa.opacity?this.Oa.opacity:1,this.Um=!0);3===this.ob&&this.vp()};p.Q=new l;p.ya=new function(){}})();
function ec(){return[Y,gc,hc,fc,Z,ic,W.prototype.e.ok,W.prototype.Q.Bo,fc.prototype.Q.wk,hc.prototype.Q.wk,hc.prototype.Q.Ao,W.prototype.ya.Mr,W.prototype.e.Ln,W.prototype.ya.left,W.prototype.ya.ir,hc.prototype.ya.Text,W.prototype.e.Hn,W.prototype.Q.Bn,gc.prototype.Q.CallFunction,gc.prototype.e.wg,ic.prototype.Q.Do,Z.prototype.e.Zh,fc.prototype.Q.vo,hc.prototype.Q.wo,W.prototype.ya.Sr,W.prototype.Q.Fo,W.prototype.Q.Nn,Y.prototype.Q.uo,Y.prototype.Q.Pn,W.prototype.ya.Sk,W.prototype.Q.xo,W.prototype.e.Sn,
W.prototype.e.Jn,fc.prototype.e.In,fc.prototype.Q.yo,hc.prototype.Q.zo,W.prototype.e.Mn,W.prototype.ya.hr,Y.prototype.Q.On]};