-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathc2runtime.js
339 lines (339 loc) · 162 KB
/
c2runtime.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';function s(){return function(){}}function ba(f){return function(){return this[f]}}function A(f){return function(){return f}}var ca,da,C,ea,G,J,fa,ga,ha,ia,ja,ma,na,K,oa,ra,L,sa,ta,ua,va,wa,xa,ya,za,Aa,N,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,O,Oa,Pa,Qa,Ra,Sa,Ta,Ua,P,Va,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,Q,Cb,Db,Eb,R,Fb,Gb={},Hb={};
"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(b,a,n,d){this.set(b,a,n,d)}function l(){this.eb=this.cb=this.gb=this.fb=this.qb=this.pb=this.Ga=this.Fa=0}function e(x,a,n,d){x<a?n<d?(k=x<n?x:n,b=a>d?a:d):(k=x<d?x:d,b=a>n?a:n):n<d?(k=a<n?a:n,b=x>d?x:d):(k=a<d?a:d,b=x>n?x:n)}function m(){this.ic=this.oc=null;this.jf=0;n?this.oc=new Set:this.ic={};this.Wd=[];this.vd=!0}function c(b){v[u++]=b}function a(){this.Oa=this.Pg=this.y=this.uh=0}function d(b){this.ye=[];this.Wj=this.Yj=this.Zj=this.Xj=0;this.Cf(b)}function p(b,a){this.Um=
b;this.Tm=a;this.cells={}}function h(b,a,n){var d;return r.length?(d=r.pop(),d.to=b,d.x=a,d.y=n,d):new ca(b,a,n)}function g(b,a,n){this.to=b;this.x=a;this.y=n;this.yg=new da}C=function(b){window.console&&window.console.log&&window.console.log(b)};ea=function(b){return"undefined"===typeof b};G=function(b){return"number"===typeof b};J=function(b){return"string"===typeof b};fa=function(b){return 0<b&&0===(b-1&b)};ga=function(b){--b;for(var a=1;32>a;a<<=1)b|=b>>a;return b+1};ha=function(b){return 0>b?
-b:b};ia=function(b,a){return b>a?b:a};ja=function(b,a){return b<a?b:a};ma=Math.PI;na=function(b){return b+0.5|0};K=function(b){return 0<=b?b|0:(b|0)-1};oa=function(b){var a=b|0;return a===b?a:a+1};ra=function(b,a,n,d,t,r,g,c){var h,p,w,u;b<n?(p=b,h=n):(p=n,h=b);t<g?(u=t,w=g):(u=g,w=t);if(h<u||p>w)return!1;a<d?(p=a,h=d):(p=d,h=a);r<c?(u=r,w=c):(u=c,w=r);if(h<u||p>w)return!1;h=t-b+g-n;p=r-a+c-d;b=n-b;a=d-a;t=g-t;r=c-r;c=ha(a*t-r*b);return ha(t*p-r*h)>c?!1:ha(b*p-a*h)<=c};f.prototype.set=function(b,
a,n,d){this.left=b;this.top=a;this.right=n;this.bottom=d};f.prototype.copy=function(b){this.left=b.left;this.top=b.top;this.right=b.right;this.bottom=b.bottom};f.prototype.width=function(){return this.right-this.left};f.prototype.height=function(){return this.bottom-this.top};f.prototype.offset=function(b,a){this.left+=b;this.top+=a;this.right+=b;this.bottom+=a;return this};f.prototype.normalize=function(){var b=0;this.left>this.right&&(b=this.left,this.left=this.right,this.right=b);this.top>this.bottom&&
(b=this.top,this.top=this.bottom,this.bottom=b)};f.prototype.Yb=function(b,a){return b>=this.left&&b<=this.right&&a>=this.top&&a<=this.bottom};f.prototype.rn=function(b){return this.left===b.left&&this.top===b.top&&this.right===b.right&&this.bottom===b.bottom};L=f;l.prototype.Mg=function(b){this.Fa=b.left;this.Ga=b.top;this.pb=b.right;this.qb=b.top;this.fb=b.right;this.gb=b.bottom;this.cb=b.left;this.eb=b.bottom};l.prototype.El=function(b,a){if(0===a)this.Mg(b);else{var n=Math.sin(a),d=Math.cos(a),
t=b.left*n,r=b.top*n,g=b.right*n,n=b.bottom*n,c=b.left*d,h=b.top*d,p=b.right*d,d=b.bottom*d;this.Fa=c-r;this.Ga=h+t;this.pb=p-r;this.qb=h+g;this.fb=p-n;this.gb=d+g;this.cb=c-n;this.eb=d+t}};l.prototype.offset=function(b,a){this.Fa+=b;this.Ga+=a;this.pb+=b;this.qb+=a;this.fb+=b;this.gb+=a;this.cb+=b;this.eb+=a;return this};var k=0,b=0;l.prototype.ak=function(a){e(this.Fa,this.pb,this.fb,this.cb);a.left=k;a.right=b;e(this.Ga,this.qb,this.gb,this.eb);a.top=k;a.bottom=b};l.prototype.Yb=function(b,a){var n=
this.pb-this.Fa,d=this.qb-this.Ga,t=this.fb-this.Fa,r=this.gb-this.Ga,g=b-this.Fa,c=a-this.Ga,h=n*n+d*d,p=n*t+d*r,d=n*g+d*c,w=t*t+r*r,u=t*g+r*c,v=1/(h*w-p*p),n=(w*d-p*u)*v,h=(h*u-p*d)*v;if(0<=n&&0<h&&1>n+h)return!0;n=this.cb-this.Fa;d=this.eb-this.Ga;h=n*n+d*d;p=n*t+d*r;d=n*g+d*c;v=1/(h*w-p*p);n=(w*d-p*u)*v;h=(h*u-p*d)*v;return 0<=n&&0<h&&1>n+h};sa=l;ta=function(b,a,n){return Math.max(Math.min(b,255),0)|Math.max(Math.min(a,255),0)<<8|Math.max(Math.min(n,255),0)<<16};ua=function(b){return b&255};va=
function(b){return(b&65280)>>8};wa=function(b){return(b&16711680)>>16};xa=function(b,a){for(var n in a)a.hasOwnProperty(n)&&(b[n]=a[n]);return b};ya=function(b,a){var n,d;a=K(a);if(!(0>a||a>=b.length))if(0===a)b.shift();else if(a===b.length-1)b.pop();else{n=a;for(d=b.length-1;n<d;n++)b[n]=b[n+1];b.length=d}};za=function(b,a){b.length=a.length;var n,d;n=0;for(d=a.length;n<d;n++)b[n]=a[n]};Aa=function(b,a){var n=b.indexOf(a);-1!==n&&ya(b,n)};N=function(b){return b/(180/ma)};Ba=function(b){return b*
(180/ma)};Ca=function(b){b%=360;0>b&&(b+=360);return b};Da=function(b){b%=2*ma;0>b&&(b+=2*ma);return b};Ea=function(b){return Ca(Ba(b))};Fa=function(b){return Da(N(b))};Ga=function(b,a,n,d){return Math.atan2(d-a,n-b)};Ha=function(b,a){if(b===a)return 0;var n=Math.sin(b),d=Math.cos(b),t=Math.sin(a),r=Math.cos(a),n=n*t+d*r;return 1<=n?0:-1>=n?ma:Math.acos(n)};Ia=function(b,a,n){var d=Math.sin(b),t=Math.cos(b),r=Math.sin(a),g=Math.cos(a);return Math.acos(d*r+t*g)>n?0<t*r-d*g?Da(b+n):Da(b-n):Da(a)};Ja=
function(b,a){var n=Math.sin(b),d=Math.cos(b),t=Math.sin(a),r=Math.cos(a);return 0>=d*t-n*r};Ka=function(b,a,n,d){b=n-b;a=d-a;return Math.sqrt(b*b+a*a)};La=function(b,a){return!b!==!a};Ma=function(b){for(var a in b)if(b.hasOwnProperty(a))return!0;return!1};Na=function(b){for(var a in b)b.hasOwnProperty(a)&&delete b[a]};var t=+new Date;O=function(){if("undefined"!==typeof window.performance){var b=window.performance;if("undefined"!==typeof b.now)return b.now();if("undefined"!==typeof b.webkitNow)return b.webkitNow();
if("undefined"!==typeof b.mozNow)return b.mozNow();if("undefined"!==typeof b.msNow)return b.msNow()}return Date.now()-t};var n="undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;m.prototype.contains=function(b){return n?this.oc.has(b):this.ic.hasOwnProperty(b.toString())};m.prototype.add=function(b){if(n)this.oc.has(b)||(this.oc.add(b),this.vd=!1);else{var a=b.toString();this.ic.hasOwnProperty(a)||(this.ic[a]=b,this.jf++,this.vd=!1)}return this};m.prototype.remove=function(b){n?
this.oc.has(b)&&(this.oc["delete"](b),this.vd=!1):(b=b.toString(),this.ic.hasOwnProperty(b)&&(delete this.ic[b],this.jf--,this.vd=!1));return this};m.prototype.clear=function(){n?this.oc.clear():(this.ic={},this.jf=0);this.Wd.length=0;this.vd=!0;return this};m.prototype.ad=function(){return n?0===this.oc.size:0===this.jf};var v=null,u=0;m.prototype.up=function(){if(!this.vd){if(n)this.Wd.length=this.oc.size,v=this.Wd,u=0,this.oc.forEach(c),v=null,u=0;else{this.Wd.length=this.jf;var b,a=0;for(b in this.ic)this.ic.hasOwnProperty(b)&&
(this.Wd[a++]=this.ic[b])}this.vd=!0}};m.prototype.If=function(){this.up();return this.Wd};da=m;a.prototype.add=function(b){this.y=b-this.uh;this.Pg=this.Oa+this.y;this.uh=this.Pg-this.Oa-this.y;this.Oa=this.Pg};a.prototype.reset=function(){this.Oa=this.Pg=this.y=this.uh=0};Oa=a;Pa=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};d.prototype.Cf=function(b){this.ul=b;this.Eg=b.length/2;this.ye.length=b.length;this.vh=this.wh=-1;this.ck=0};d.prototype.Io=function(){return!this.ul.length};
d.prototype.Xa=function(){for(var b=this.ye,a=b[0],n=a,d=b[1],t=d,r,g,h=1,c=this.Eg;h<c;++h)g=2*h,r=b[g],g=b[g+1],r<a&&(a=r),r>n&&(n=r),g<d&&(d=g),g>t&&(t=g);this.Xj=a;this.Yj=n;this.Zj=d;this.Wj=t};d.prototype.Mg=function(b,a,n){this.ye.length=8;this.Eg=4;var d=this.ye;d[0]=b.left-a;d[1]=b.top-n;d[2]=b.right-a;d[3]=b.top-n;d[4]=b.right-a;d[5]=b.bottom-n;d[6]=b.left-a;d[7]=b.bottom-n;this.wh=b.right-b.left;this.vh=b.bottom-b.top;this.Xa()};d.prototype.Sm=function(b,a,n){if(this.wh!==b||this.vh!==
a||this.ck!==n){this.wh=b;this.vh=a;this.ck=n;var d,t,r,g,h,c=0,p=1,w=this.ul,u=this.ye;0!==n&&(c=Math.sin(n),p=Math.cos(n));n=0;for(r=this.Eg;n<r;n++)d=2*n,t=d+1,g=w[d]*b,h=w[t]*a,u[d]=g*p-h*c,u[t]=h*p+g*c;this.Xa()}};d.prototype.Yb=function(b,a){var n=this.ye;if(b===n[0]&&a===n[1])return!0;var d,t,r,g=this.Eg,h=this.Xj-110,c=this.Zj-101,p=this.Yj+131,w=this.Wj+120,u,v,k=0,e=0;for(d=0;d<g;d++)t=2*d,r=2*((d+1)%g),u=n[t],t=n[t+1],v=n[r],r=n[r+1],ra(h,c,b,a,u,t,v,r)&&k++,ra(p,w,b,a,u,t,v,r)&&e++;return 1===
k%2||1===e%2};Qa=d;p.prototype.uk=function(b,a,n){var d;d=this.cells[b];return d?(d=d[a])?d:n?(d=h(this,b,a),this.cells[b][a]=d):null:n?(d=h(this,b,a),this.cells[b]={},this.cells[b][a]=d):null};p.prototype.Jj=function(b){return K(b/this.Um)};p.prototype.Lj=function(b){return K(b/this.Tm)};p.prototype.update=function(b,a,n){var d,t,g,h,c;if(a)for(d=a.left,t=a.right;d<=t;++d)for(g=a.top,h=a.bottom;g<=h;++g)if(!n||!n.Yb(d,g))if(c=this.uk(d,g,!1))c.remove(b),c.ad()&&(c.yg.clear(),1E3>r.length&&r.push(c),
this.cells[d][g]=null);if(n)for(d=n.left,t=n.right;d<=t;++d)for(g=n.top,h=n.bottom;g<=h;++g)a&&a.Yb(d,g)||this.uk(d,g,!0).yo(b)};Ra=p;var r=[];g.prototype.ad=function(){return this.yg.ad()};g.prototype.yo=function(b){this.yg.add(b)};g.prototype.remove=function(b){this.yg.remove(b)};ca=g;var w="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Sa=function(b){return 0>=b||11<=b?"source-over":w[b-1]};Ta=function(b,a,n){if(n)switch(b.Ja=
n.ONE,b.Ia=n.ONE_MINUS_SRC_ALPHA,a){case 1:b.Ja=n.ONE;b.Ia=n.ONE;break;case 3:b.Ja=n.ONE;b.Ia=n.ZERO;break;case 4:b.Ja=n.ONE_MINUS_DST_ALPHA;b.Ia=n.ONE;break;case 5:b.Ja=n.DST_ALPHA;b.Ia=n.ZERO;break;case 6:b.Ja=n.ZERO;b.Ia=n.SRC_ALPHA;break;case 7:b.Ja=n.ONE_MINUS_DST_ALPHA;b.Ia=n.ZERO;break;case 8:b.Ja=n.ZERO;b.Ia=n.ONE_MINUS_SRC_ALPHA;break;case 9:b.Ja=n.DST_ALPHA;b.Ia=n.ONE_MINUS_SRC_ALPHA;break;case 10:b.Ja=n.ONE_MINUS_DST_ALPHA,b.Ia=n.SRC_ALPHA}};Ua=function(b){return na(1E6*b)/1E6};P=function(b,
a){return"string"!==typeof b||"string"!==typeof a||b.length!==a.length?!1:b===a?!0:b.toLowerCase()===a.toLowerCase()}})();var Ib="undefined"!==typeof Float32Array?Float32Array:Array;function Jb(f){var l=new Ib(3);f&&(l[0]=f[0],l[1]=f[1],l[2]=f[2]);return l}function Kb(f){var l=new Ib(16);f&&(l[0]=f[0],l[1]=f[1],l[2]=f[2],l[3]=f[3],l[4]=f[4],l[5]=f[5],l[6]=f[6],l[7]=f[7],l[8]=f[8],l[9]=f[9],l[10]=f[10],l[11]=f[11],l[12]=f[12],l[13]=f[13],l[14]=f[14],l[15]=f[15]);return l}
function Lb(f,l){l[0]=f[0];l[1]=f[1];l[2]=f[2];l[3]=f[3];l[4]=f[4];l[5]=f[5];l[6]=f[6];l[7]=f[7];l[8]=f[8];l[9]=f[9];l[10]=f[10];l[11]=f[11];l[12]=f[12];l[13]=f[13];l[14]=f[14];l[15]=f[15]}function Mb(f,l){var e=l[0],m=l[1];l=l[2];f[0]*=e;f[1]*=e;f[2]*=e;f[3]*=e;f[4]*=m;f[5]*=m;f[6]*=m;f[7]*=m;f[8]*=l;f[9]*=l;f[10]*=l;f[11]*=l}
function Nb(f,l,e,m){m||(m=Kb());var c,a,d,p,h,g,k,b,t=f[0],n=f[1];f=f[2];a=e[0];d=e[1];c=e[2];e=l[1];g=l[2];t===l[0]&&n===e&&f===g?(f=m,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(e=t-l[0],g=n-l[1],k=f-l[2],b=1/Math.sqrt(e*e+g*g+k*k),e*=b,g*=b,k*=b,l=d*k-c*g,c=c*e-a*k,a=a*g-d*e,(b=Math.sqrt(l*l+c*c+a*a))?(b=1/b,l*=b,c*=b,a*=b):a=c=l=0,d=g*a-k*c,p=k*l-e*a,h=e*c-g*l,(b=Math.sqrt(d*d+p*p+h*h))?(b=1/b,d*=b,p*=b,h*=b):h=p=d=0,
m[0]=l,m[1]=d,m[2]=e,m[3]=0,m[4]=c,m[5]=p,m[6]=g,m[7]=0,m[8]=a,m[9]=h,m[10]=k,m[11]=0,m[12]=-(l*t+c*n+a*f),m[13]=-(d*t+p*n+h*f),m[14]=-(e*t+g*n+k*f),m[15]=1)}
(function(){function f(a){this.jg=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.dk=Jb([0,0,100]);this.al=Jb([0,0,0]);this.Tl=Jb([0,1,0]);this.sj=Jb([1,1,1]);this.si=Kb();this.Fb=Kb();this.Tk=Kb();this.Eh=Kb();this.m=a;this.Gk()}function l(a,d,c){this.m=a;this.Df=d;this.name=c;this.Eb=a.getAttribLocation(d,"aPos");this.fd=a.getAttribLocation(d,"aTex");this.Zk=a.getUniformLocation(d,"matP");this.re=a.getUniformLocation(d,"matMV");this.se=a.getUniformLocation(d,
"opacity");this.$k=a.getUniformLocation(d,"samplerFront");this.qf=a.getUniformLocation(d,"samplerBack");this.Od=a.getUniformLocation(d,"destStart");this.Nd=a.getUniformLocation(d,"destEnd");this.qi=a.getUniformLocation(d,"seconds");this.pi=a.getUniformLocation(d,"pixelWidth");this.oi=a.getUniformLocation(d,"pixelHeight");this.ni=a.getUniformLocation(d,"layerScale");this.se&&a.uniform1f(this.se,1);this.$k&&a.uniform1i(this.$k,0);this.qf&&a.uniform1i(this.qf,1);this.Od&&a.uniform2f(this.Od,0,0);this.Nd&&
a.uniform2f(this.Nd,1,1);this.Dd=!1}function e(a,d){this.type=a;this.q=d;this.m=d.m;this.hc=this.Jb=this.ol=0;this.C=this.Ub=null;this.$i=[]}f.prototype.Gk=function(){var a=this.m,d;this.Uk=1;this.Kd=this.dd=null;this.ik=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.DEPTH_TEST);this.Vk=a.ONE;this.Sk=a.ONE_MINUS_SRC_ALPHA;this.Ii=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Ii);this.Kf=Array(4);
this.Gf=Array(4);for(d=0;4>d;d++)this.Kf[d]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Kf[d]),this.Gf[d]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Gf[d]);this.Bc=0;this.xo=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.xo);this.rj=new Float32Array(16E3);this.fj=new Float32Array(16E3);this.Vo=new Float32Array(32E3);for(var c=new Uint16Array(12E3),h=d=0;12E3>d;)c[d++]=h,c[d++]=h+1,c[d++]=h+2,c[d++]=h,c[d++]=h+2,c[d++]=h+3,h+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,c,a.STATIC_DRAW);
this.Ji=this.uc=0;this.xa=[];d=this.Bh({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}"},"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}","<default>");this.xa.push(d);
d=this.Bh({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.xa.push(d);for(var g in Ob)Ob.hasOwnProperty(g)&&this.xa.push(this.Bh(Ob[g],
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}",g));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Wc=[];this.zc=0;this.kb=!1;this.jk=this.kf=-1;this.We=null;this.Pn=a.createFramebuffer();this.yl=null;this.od=Jb([0,0,0]);this.qc(0)};f.prototype.Bh=function(a,d,c){var h=this.m,g=h.createShader(h.FRAGMENT_SHADER);
h.shaderSource(g,a.src);h.compileShader(g);if(!h.getShaderParameter(g,h.COMPILE_STATUS))return h.deleteShader(g),null;var k=h.createShader(h.VERTEX_SHADER);h.shaderSource(k,d);h.compileShader(k);if(!h.getShaderParameter(k,h.COMPILE_STATUS))return h.deleteShader(g),h.deleteShader(k),null;d=h.createProgram();h.attachShader(d,g);h.attachShader(d,k);h.linkProgram(d);if(!h.getProgramParameter(d,h.LINK_STATUS))return h.deleteShader(g),h.deleteShader(k),h.deleteProgram(d),null;h.useProgram(d);h.deleteShader(g);
h.deleteShader(k);c=new l(h,d,c);c.Kh=a.Kh||0;c.Lh=a.Lh||0;c.hk=!!a.hk;c.Sj=!!a.Sj;c.u=a.u||[];a=0;for(g=c.u.length;a<g;a++)c.u[a][1]=h.getUniformLocation(d,c.u[a][0]),h.uniform1f(c.u[a][1],0);return c};f.prototype.Vh=function(a){var d,c;d=0;for(c=this.xa.length;d<c;d++)if(this.xa[d].name===a)return d;return-1};f.prototype.tl=function(a,d,c){var h=this.Fb,g=this.si,k=[0,0,0,0,0,0,0,0];k[0]=h[0]*a+h[4]*d+h[12];k[1]=h[1]*a+h[5]*d+h[13];k[2]=h[2]*a+h[6]*d+h[14];k[3]=h[3]*a+h[7]*d+h[15];k[4]=g[0]*k[0]+
g[4]*k[1]+g[8]*k[2]+g[12]*k[3];k[5]=g[1]*k[0]+g[5]*k[1]+g[9]*k[2]+g[13]*k[3];k[6]=g[2]*k[0]+g[6]*k[1]+g[10]*k[2]+g[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]=(0.5*k[4]+0.5)*this.width,c[1]=(0.5*k[5]+0.5)*this.height)};f.prototype.Be=function(a,d,c){if(this.width!==a||this.height!==d||c){this.Zc();this.width=a;this.height=d;this.m.viewport(0,0,a,d);d=a/d;var h=this.si,g;g=1*Math.tan(45*Math.PI/360);d*=g;a=-d;c=-g;h||(h=Kb());var k=d-a,b=g-c;h[0]=2/k;h[1]=0;h[2]=
0;h[3]=0;h[4]=0;h[5]=2/b;h[6]=0;h[7]=0;h[8]=(d+a)/k;h[9]=(g+c)/b;h[10]=-1001/999;h[11]=-1;h[12]=0;h[13]=0;h[14]=-2E3/999;h[15]=0;Nb(this.dk,this.al,this.Tl,this.Fb);a=[0,0];d=[0,0];this.tl(0,0,a);this.tl(1,1,d);this.sj[0]=1/(d[0]-a[0]);this.sj[1]=-1/(d[1]-a[1]);a=0;for(d=this.xa.length;a<d;a++)c=this.xa[a],c.Dd=!1,c.Zk&&(this.m.useProgram(c.Df),this.m.uniformMatrix4fv(c.Zk,!1,this.si));this.m.useProgram(this.xa[this.kf].Df);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE1);
this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE0);this.Kd=this.dd=null}};f.prototype.nc=function(){Nb(this.dk,this.al,this.Tl,this.Fb);Mb(this.Fb,this.sj)};f.prototype.translate=function(a,d){if(0!==a||0!==d){this.od[0]=a;this.od[1]=d;this.od[2]=0;var c=this.Fb,h=this.od,g=h[0],k=h[1],h=h[2];c[12]=c[0]*g+c[4]*k+c[8]*h+c[12];c[13]=c[1]*g+c[5]*k+c[9]*h+c[13];c[14]=c[2]*g+c[6]*k+c[10]*h+c[14];c[15]=c[3]*g+c[7]*k+c[11]*h+c[15]}};f.prototype.scale=function(a,d){if(1!==a||
1!==d)this.od[0]=a,this.od[1]=d,this.od[2]=1,Mb(this.Fb,this.od)};f.prototype.Ui=function(a){if(0!==a){var d=this.Fb,c,h=Math.sin(a);a=Math.cos(a);var g=d[0],k=d[1],b=d[2],t=d[3],n=d[4],v=d[5],u=d[6],r=d[7];c?d!==c&&(c[8]=d[8],c[9]=d[9],c[10]=d[10],c[11]=d[11],c[12]=d[12],c[13]=d[13],c[14]=d[14],c[15]=d[15]):c=d;c[0]=g*a+n*h;c[1]=k*a+v*h;c[2]=b*a+u*h;c[3]=t*a+r*h;c[4]=g*-h+n*a;c[5]=k*-h+v*a;c[6]=b*-h+u*a;c[7]=t*-h+r*a}};f.prototype.tc=function(){for(var a=!1,d=0;16>d;d++)if(this.Tk[d]!==this.Fb[d]){a=
!0;break}a&&(a=this.Tb(),a.type=5,a.C?Lb(this.Fb,a.C):a.C=Kb(this.Fb),Lb(this.Fb,this.Tk),this.kb=!1)};e.prototype.ln=function(){this.m.bindTexture(this.m.TEXTURE_2D,this.Ub)};e.prototype.mn=function(){var a=this.m;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Ub);a.activeTexture(a.TEXTURE0)};e.prototype.hn=function(){var a=this.ol,d=this.q;d.ik=a;d=d.We;d.se&&this.m.uniform1f(d.se,a)};e.prototype.cn=function(){this.m.drawElements(this.m.TRIANGLES,this.hc,this.m.UNSIGNED_SHORT,2*this.Jb)};
e.prototype.gn=function(){this.m.blendFunc(this.Jb,this.hc)};e.prototype.nn=function(){var a,d,c,h=this.q.xa,g=this.q.jk;a=0;for(d=h.length;a<d;a++)c=h[a],a===g&&c.re?(this.m.uniformMatrix4fv(c.re,!1,this.C),c.Dd=!0):c.Dd=!1;Lb(this.C,this.q.Eh)};e.prototype.dn=function(){var a=this.m,d=this.q;this.Ub?(d.Kd===this.Ub&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),d.Kd=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,d.Pn),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,
a.TEXTURE_2D,this.Ub,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};e.prototype.an=function(){var a=this.m;0===this.Jb?(a.clearColor(this.C[0],this.C[1],this.C[2],this.C[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),a.scissor(this.C[0],this.C[1],this.C[2],this.C[3]),a.clearColor(0,0,0,0),a.clear(this.m.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};e.prototype.bn=function(){var a=this.m,d=this.q,c=d.xa[1];a.useProgram(c.Df);
!c.Dd&&c.re&&(a.uniformMatrix4fv(c.re,!1,d.Eh),c.Dd=!0);a.enableVertexAttribArray(c.Eb);a.bindBuffer(a.ARRAY_BUFFER,d.Ii);a.vertexAttribPointer(c.Eb,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Jb/4,this.hc);c=d.We;a.useProgram(c.Df);0<=c.Eb&&(a.enableVertexAttribArray(c.Eb),a.bindBuffer(a.ARRAY_BUFFER,d.Kf[d.Bc]),a.vertexAttribPointer(c.Eb,2,a.FLOAT,!1,0,0));0<=c.fd&&(a.enableVertexAttribArray(c.fd),a.bindBuffer(a.ARRAY_BUFFER,d.Gf[d.Bc]),a.vertexAttribPointer(c.fd,2,a.FLOAT,!1,0,0))};e.prototype.jn=
function(){var a=this.m,d=this.q,c=d.xa[this.Jb];d.jk=this.Jb;d.We=c;a.useProgram(c.Df);!c.Dd&&c.re&&(a.uniformMatrix4fv(c.re,!1,d.Eh),c.Dd=!0);c.se&&a.uniform1f(c.se,d.ik);0<=c.Eb&&(a.enableVertexAttribArray(c.Eb),a.bindBuffer(a.ARRAY_BUFFER,d.Kf[d.Bc]),a.vertexAttribPointer(c.Eb,2,a.FLOAT,!1,0,0));0<=c.fd&&(a.enableVertexAttribArray(c.fd),a.bindBuffer(a.ARRAY_BUFFER,d.Gf[d.Bc]),a.vertexAttribPointer(c.fd,2,a.FLOAT,!1,0,0))};e.prototype.kn=function(){var a,d,c=this.q.We,h=this.m;c.qf&&this.q.Kd!==
this.Ub&&(h.activeTexture(h.TEXTURE1),h.bindTexture(h.TEXTURE_2D,this.Ub),this.q.Kd=this.Ub,h.activeTexture(h.TEXTURE0));c.pi&&h.uniform1f(c.pi,this.C[0]);c.oi&&h.uniform1f(c.oi,this.C[1]);c.Od&&h.uniform2f(c.Od,this.C[2],this.C[3]);c.Nd&&h.uniform2f(c.Nd,this.C[4],this.C[5]);c.ni&&h.uniform1f(c.ni,this.C[6]);c.qi&&h.uniform1f(c.qi,O()/1E3);if(c.u.length)for(a=0,d=c.u.length;a<d;a++)h.uniform1f(c.u[a][1],this.$i[a])};f.prototype.Tb=function(){this.zc===this.Wc.length&&this.Wc.push(new e(0,this));
return this.Wc[this.zc++]};f.prototype.Zc=function(){if(0!==this.zc&&!this.m.isContextLost()){var a=this.m;0<this.Ji&&(a.bindBuffer(a.ARRAY_BUFFER,this.Ii),a.bufferData(a.ARRAY_BUFFER,this.Vo.subarray(0,this.Ji),a.STREAM_DRAW),d&&0<=d.Eb&&"<point>"===d.name&&a.vertexAttribPointer(d.Eb,4,a.FLOAT,!1,0,0));if(0<this.uc){var d=this.We;a.bindBuffer(a.ARRAY_BUFFER,this.Kf[this.Bc]);a.bufferData(a.ARRAY_BUFFER,this.rj.subarray(0,this.uc),a.STREAM_DRAW);d&&0<=d.Eb&&"<point>"!==d.name&&a.vertexAttribPointer(d.Eb,
2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Gf[this.Bc]);a.bufferData(a.ARRAY_BUFFER,this.fj.subarray(0,this.uc),a.STREAM_DRAW);d&&0<=d.fd&&"<point>"!==d.name&&a.vertexAttribPointer(d.fd,2,a.FLOAT,!1,0,0)}for(var c,a=0,d=this.zc;a<d;a++)switch(c=this.Wc[a],c.type){case 1:c.cn();break;case 2:c.ln();break;case 3:c.hn();break;case 4:c.gn();break;case 5:c.nn();break;case 6:c.dn();break;case 7:c.an();break;case 8:c.bn();break;case 9:c.jn();break;case 10:c.kn();break;case 11:c.mn()}this.Ji=this.uc=
this.zc=0;this.kb=!1;this.Bc++;4<=this.Bc&&(this.Bc=0)}};f.prototype.Td=function(a){if(a!==this.Uk){var d=this.Tb();d.type=3;this.Uk=d.ol=a;this.kb=!1}};f.prototype.ob=function(a){if(a!==this.dd){var d=this.Tb();d.type=2;this.dd=d.Ub=a;this.kb=!1}};f.prototype.kd=function(a,d){if(a!==this.Vk||d!==this.Sk){var c=this.Tb();c.type=4;c.Jb=a;c.hc=d;this.Vk=a;this.Sk=d;this.kb=!1}};f.prototype.Dl=function(){this.kd(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};f.prototype.Fg=function(a,d,c,h,g,k,b,t){15992<=
this.uc&&this.Zc();var n=this.uc,v=this.rj,u=this.fj;if(this.kb)this.Wc[this.zc-1].hc+=6;else{var r=this.Tb();r.type=1;r.Jb=3*(n/4);r.hc=6;this.kb=!0}v[n]=a;u[n++]=0;v[n]=d;u[n++]=0;v[n]=c;u[n++]=1;v[n]=h;u[n++]=0;v[n]=g;u[n++]=1;v[n]=k;u[n++]=1;v[n]=b;u[n++]=0;v[n]=t;u[n++]=1;this.uc=n};f.prototype.mc=function(a,d,c,h,g,k,b,t,n){15992<=this.uc&&this.Zc();var v=this.uc,u=this.rj,r=this.fj;if(this.kb)this.Wc[this.zc-1].hc+=6;else{var w=this.Tb();w.type=1;w.Jb=3*(v/4);w.hc=6;this.kb=!0}var w=n.left,
x=n.top,e=n.right;n=n.bottom;u[v]=a;r[v++]=w;u[v]=d;r[v++]=x;u[v]=c;r[v++]=e;u[v]=h;r[v++]=x;u[v]=g;r[v++]=e;u[v]=k;r[v++]=n;u[v]=b;r[v++]=w;u[v]=t;r[v++]=n;this.uc=v};f.prototype.qc=function(a){if(this.kf!==a){if(!this.xa[a]){if(0===this.kf)return;a=0}var d=this.Tb();d.type=9;this.kf=d.Jb=a;this.kb=!1}};f.prototype.yf=function(a){a=this.xa[a];return!(!a.Od&&!a.Nd)};f.prototype.Li=function(a){a=this.xa[a];return!!(a.Od||a.Nd||a.hk)};f.prototype.$o=function(a){a=this.xa[a];return 0!==a.Kh||0!==a.Lh};
f.prototype.ao=function(a){return this.xa[a].Kh};f.prototype.bo=function(a){return this.xa[a].Lh};f.prototype.co=function(a,d){return this.xa[a].u[d][2]};f.prototype.Dg=function(a){return this.xa[a].Sj};f.prototype.Ae=function(a,d,c,h,g,k,b,t,n){var v=this.xa[this.kf];if(v.pi||v.oi||v.qi||v.qf||v.Od||v.Nd||v.ni||n.length){var u=this.Tb();u.type=10;u.C?Lb(this.Fb,u.C):u.C=Kb();u.C[0]=d;u.C[1]=c;u.C[2]=h;u.C[3]=g;u.C[4]=k;u.C[5]=b;u.C[6]=t;u.Ub=v.qf?a:null;if(n.length)for(u.$i.length=n.length,a=0,d=
n.length;a<d;a++)u.$i[a]=n[a];this.kb=!1}};f.prototype.clear=function(a,d,c,h){var g=this.Tb();g.type=7;g.Jb=0;g.C||(g.C=Kb());g.C[0]=a;g.C[1]=d;g.C[2]=c;g.C[3]=h;this.kb=!1};f.prototype.clearRect=function(a,d,c,h){var g=this.Tb();g.type=7;g.Jb=1;g.C||(g.C=Kb());g.C[0]=a;g.C[1]=d;g.C[2]=c;g.C[3]=h;this.kb=!1};f.prototype.Zo=function(){this.Zc();this.m.flush()};var m=[],c={};f.prototype.vg=function(a,d,e,h){d=!!d;e=!!e;var g=a.src+","+d+","+e+(d?",undefined":""),k=null;if("undefined"!==typeof a.src&&
c.hasOwnProperty(g))return k=c[g],k.Of++,k;this.Zc();var b=this.m,t=fa(a.width)&&fa(a.height),k=b.createTexture();b.bindTexture(b.TEXTURE_2D,k);b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=b.RGBA,v=b.RGBA,u=b.UNSIGNED_BYTE;if(h&&!this.jg)switch(h){case 1:v=n=b.RGB;break;case 2:u=b.UNSIGNED_SHORT_4_4_4_4;break;case 3:u=b.UNSIGNED_SHORT_5_5_5_1;break;case 4:v=n=b.RGB,u=b.UNSIGNED_SHORT_5_6_5}!t&&d?(h=document.createElement("canvas"),h.width=ga(a.width),h.height=ga(a.height),h.getContext("2d").drawImage(a,
0,0,a.width,a.height,0,0,h.width,h.height),b.texImage2D(b.TEXTURE_2D,0,n,v,u,h)):b.texImage2D(b.TEXTURE_2D,0,n,v,u,a);d?(b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.REPEAT),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.REPEAT)):(b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE));e?(b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR),t?(b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR_MIPMAP_LINEAR),
b.generateMipmap(b.TEXTURE_2D)):b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR)):(b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.NEAREST),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.NEAREST));b.bindTexture(b.TEXTURE_2D,null);this.dd=null;k.Se=a.width;k.Re=a.height;k.Of=1;k.bk=g;m.push(k);return c[g]=k};f.prototype.Ac=function(a,d,c,h){this.Zc();var g=this.m;this.jg&&(h=!1);var k=g.createTexture();g.bindTexture(g.TEXTURE_2D,k);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,a,d,0,g.RGBA,
h?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);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);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,c?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,c?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.dd=null;k.Se=a;k.Re=d;m.push(k);return k};f.prototype.yp=function(a,d,c){this.Zc();var h=this.m;this.jg&&(c=!1);h.bindTexture(h.TEXTURE_2D,d);h.texImage2D(h.TEXTURE_2D,
0,h.RGBA,h.RGBA,c?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,a);h.bindTexture(h.TEXTURE_2D,null);this.dd=null};f.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Of&&1<a.Of?a.Of--:(this.Zc(),a===this.dd&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.dd=null),a===this.Kd&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.Kd=null),Aa(m,a),"undefined"!==typeof a.bk&&delete c[a.bk],this.m.deleteTexture(a)))};f.prototype.pc=
function(a){if(a!==this.yl){var d=this.Tb();d.type=6;this.yl=d.Ub=a;this.kb=!1}};Va=f})();
(function(){function f(b){if(b&&(b.getContext||b.dc)&&!b.c2runtime){b.c2runtime=this;var a=this;this.ne="undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap);this.Ob=!!b.dc;this.ef="undefined"!==typeof window.AppMobi||this.Ob;if(this.Nb=!!window.c2cocoonjs)CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)});this.qa=this.Ob||this.Nb;
this.Lk=/tizen/i.test(navigator.userAgent);this.Kk=/android/i.test(navigator.userAgent)&&!this.Lk;this.jg=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.Ko=/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent);this.Qk=/ipad/i.test(navigator.userAgent);this.Jo=this.Ko||this.Qk;this.ai=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent);this.Do=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===
typeof window.c2isCrosswalk||!window.c2isCrosswalk);this.Ao=/amazonwebappplatform/i.test(navigator.userAgent);this.Fo=/firefox/i.test(navigator.userAgent);this.Ic="undefined"!==typeof window.c2nodewebkit;this.Mk=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Nk=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Co=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Bo=this.Kk&&!this.ai&&!this.Fo&&!this.Ao&&!this.qa;this.devicePixelRatio=
1;this.bd=this.ne||this.ef||this.Nb||this.Kk||this.Jo||this.Nk||this.Co||this.Lk;this.bd||(this.bd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Ic||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.Ic=!0);this.Do&&(this.ne=!1);this.Eo="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=b;this.Pf=document.getElementById("c2canvasdiv");
this.T=this.q=this.m=null;this.Oh="";this.$f=!1;this.il=this.jl=0;this.canvas.oncontextmenu=function(b){b.preventDefault&&b.preventDefault();return!1};this.canvas.onselectstart=function(b){b.preventDefault&&b.preventDefault();return!1};this.Ob&&(window.c2runtime=this);this.Ic&&(window.Zq=function(b){b.preventDefault();return!1},window.$q=function(b){b.preventDefault();return!1},require("nw.gui").App.clearCache());this.width=b.width;this.height=b.height;this.L=this.width;this.K=this.height;this.Sf=
this.width;this.Rf=this.height;this.mf=window.innerWidth;this.lf=window.innerHeight;this.U=!0;this.gf=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.la=[];this.ki={};this.Qb=[];this.Jh={};this.zd=[];this.Pc=[];this.Wg=[];this.nh=[];this.Mm=[];this.$b=new da;this.bi=!1;this.Hc=0;this.di=!1;this.hb=[];this.Jc=this.Ma=this.tg=this.Zi="";this.Ef=this.Gl=!1;this.Ah=this.rf=this.Yc=this.ge=0;this.Hf=1;this.Id=new Oa;this.ng=0;this.bl=!0;this.xg=this.bg=
this.Yf=this.sc=this.nf=this.Nh=0;this.wd=null;this.kk=[];this.Ih=[];this.Wf=-1;this.ri=[[]];this.mj=this.wg=0;this.Ni(null);this.gl=this.tf=0;this.ji=!0;this.Xe=0;this.Ff=[];this.Tg=this.Gg=0;this.pe=!0;this.Md=0;this.ff=!1;this.lp=0;this.uo=!1;this.fi=0;this.La=this.Cd=this.Pi=!1;this.xi=new da;this.yi=new da;this.cp=[];new Qa([]);new Qa([]);this.Tc=[];this.rd={};this.fe={};this.$d={};this.Ie={};this.$j={};this.Yk=this.sg=this.lb=this.zb=this.Xk=this.rg=this.M=null;this.He=this.ei=!1;this.Ph=[null,
null];this.Bd=0;this.Rd={};this.Ng=this.qe=null;this.load();this.devicePixelRatio=(this.Hd=!this.qa&&this.vp&&!this.Bo)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Ha();var n,d=this.oh&&!(this.Ic||this.Mk||this.Nk);0<this.Ta&&this.setSize(window.innerWidth,window.innerHeight,!0);try{!this.pn||!this.Nb&&this.qa||(n={alpha:d,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.m=b.getContext("webgl",n)||b.getContext("experimental-webgl",
n))}catch(c){}if(this.m){this.qa||(this.Ca=document.createElement("canvas"),jQuery(this.Ca).appendTo(this.canvas.parentNode),this.Ca.oncontextmenu=A(!1),this.Ca.onselectstart=A(!1),this.Ca.width=this.Sf,this.Ca.height=this.Rf,jQuery(this.Ca).css({width:this.Sf+"px",height:this.Rf+"px"}),this.sl(),this.Hi=this.Ca.getContext("2d"));this.q=new Va(this.m,this.bd);this.q.Be(b.width,b.height);this.T=null;this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.Oo();console.log("[Construct 2] WebGL context lost");
window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.q.Gk();a.q.Be(a.q.width,a.q.height,!0);a.zb=null;a.lb=null;a.Ph[0]=null;a.Ph[1]=null;a.Po();a.U=!0;console.log("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);var r,g,h,k,e,m;b=0;for(n=this.n.length;b<n;b++)for(g=this.n[b],d=0,r=g.F.length;d<r;d++)k=g.F[d],k.Ea=this.q.Vh(k.id),this.He=this.He||this.q.yf(k.Ea);b=0;for(n=this.Qb.length;b<n;b++){e=this.Qb[b];d=0;for(r=e.F.length;d<
r;d++)k=e.F[d],k.Ea=this.q.Vh(k.id);d=0;for(r=e.O.length;d<r;d++)for(m=e.O[d],g=0,h=m.F.length;g<h;g++)k=m.F[g],k.Ea=this.q.Vh(k.id),this.He=this.He||this.q.yf(k.Ea)}}else{if(0<this.Ta&&this.Ob){this.canvas=null;document.oncontextmenu=A(!1);document.onselectstart=A(!1);this.T=AppMobi.canvas.getContext("2d");try{this.T.samplingMode=this.Q?"smooth":"sharp",this.T.globalScale=1,this.T.HTML5CompatibilityMode=!0,this.T.imageSmoothingEnabled=this.Q}catch(f){}0!==this.width&&0!==this.height&&(this.T.width=
this.width,this.T.height=this.height)}this.T||(n=this.Nb?{antialias:!!this.Q,alpha:d}:{alpha:d},this.T=b.getContext("2d",n),this.T.webkitImageSmoothingEnabled=this.Q,this.T.mozImageSmoothingEnabled=this.Q,this.T.msImageSmoothingEnabled=this.Q,this.T.imageSmoothingEnabled=this.Q);this.Hi=this.Ca=null}this.Rg=function(){a.Mc()};window==window.top||this.qa||this.Mk||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},
!0));"undefined"!==typeof cr_is_preview&&(this.Nb&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(C("Reloading for continuous preview"),this.tg="__c2_continuouspreview",this.Ef=!0),this.Uo&&!this.bd&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));0===this.Ta&&this.Hd&&1<this.devicePixelRatio&&this.setSize(this.ta,this.ra,!0);this.Pl();this.go();this.ga={}}}function l(b){b.target.result.createObjectStore("saves",
{keyPath:"slot"})}function e(b,a,n,d){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=l;c.onerror=d;c.onsuccess=function(c){c=c.target.result;c.onerror=d;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:b,data:a}).onsuccess=n}}function m(b,a,n){var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=l;d.onerror=n;d.onsuccess=function(d){d=d.target.result;d.onerror=n;var c=d.transaction(["saves"]).objectStore("saves").get(b);c.onsuccess=function(){c.result?a(c.result.data):
a(null)}}}function c(){C("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+="?continuous"}function a(b){var a,n={};for(a in b)!b.hasOwnProperty(a)||b[a]instanceof da||b[a]&&"undefined"!==typeof b[a].Rq||(n[a]=b[a]);return n}f.prototype.setSize=function(b,a,n){var d=0,c=0,g=0,h=0,h=0;if(this.mf!==b||this.lf!==a||n){this.mf=b;this.lf=a;var k=this.Ta,e=document.mozFullScreen||document.webkitIsFullScreen||
!!document.msFullscreenElement||document.fullScreen||this.ff;if(e||0!==this.Ta||n)e&&0<this.Bd&&(k=this.Bd),4<=k?(n=this.ta/this.ra,b/a>n?(g=a*n,5===k?(h=g/this.ta,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),g=this.ta*h,h*=this.ra,d=(b-g)/2,c=(a-h)/2,b=g,a=h):(d=(b-g)/2,b=g)):(h=b/n,5===k?(h/=this.ra,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),g=this.ta*h,h*=this.ra,d=(b-g)/2,c=(a-h)/2,b=g):c=(a-h)/2,a=h),e&&!this.Ic&&(c=d=0),d=Math.floor(d),c=Math.floor(c),b=Math.floor(b),a=Math.floor(a)):this.Ic&&
this.ff&&0===this.sk&&(d=Math.floor((b-this.ta)/2),c=Math.floor((a-this.ra)/2),b=this.ta,a=this.ra),2>k&&(this.Qe=this.devicePixelRatio),this.Hd&&this.Qk&&1<this.devicePixelRatio&&(1024<=b&&(b=1023),1024<=a&&(a=1023)),e=this.devicePixelRatio,this.Sf=b,this.Rf=a,this.width=Math.round(b*e),this.height=Math.round(a*e),this.U=!0,this.Wl?(this.L=this.width,this.K=this.height,this.Db=!0):this.width<this.ta&&this.height<this.ra||1===k?(this.L=this.width,this.K=this.height,this.Db=!0):(this.L=this.ta,this.K=
this.ra,this.Db=!1,2===k?(n=this.ta/this.ra,k=this.mf/this.lf,k<n?this.L=this.K*k:k>n&&(this.K=this.L/k)):3===k&&(n=this.ta/this.ra,k=this.mf/this.lf,k>n?this.L=this.K*k:k<n&&(this.K=this.L/k))),this.Pf&&!this.qa&&(jQuery(this.Pf).css({width:b+"px",height:a+"px","margin-left":d,"margin-top":c}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:b+"px",height:a+"px"})),this.canvas&&(this.canvas.width=Math.round(b*e),this.canvas.height=Math.round(a*e),this.Hd&&jQuery(this.canvas).css({width:b+
"px",height:a+"px"})),this.Ca&&(this.Ca.width=b,this.Ca.height=a,jQuery(this.Ca).css({width:b+"px",height:a+"px"})),this.q&&this.q.Be(Math.round(b*e),Math.round(a*e)),this.Ob&&this.T&&(this.T.width=b,this.T.height=a),this.T&&(this.T.webkitImageSmoothingEnabled=this.Q,this.T.mozImageSmoothingEnabled=this.Q,this.T.msImageSmoothingEnabled=this.Q,this.T.imageSmoothingEnabled=this.Q),this.Pl()}};f.prototype.Pl=function(){if(this.Om&&0!==this.Gi){var b="portrait";2===this.Gi&&(b="landscape");screen.lockOrientation?
screen.lockOrientation(b):screen.webkitLockOrientation?screen.webkitLockOrientation(b):screen.mozLockOrientation?screen.mozLockOrientation(b):screen.msLockOrientation&&screen.msLockOrientation(b)}};f.prototype.Oo=function(){this.ei=!0;var b,a,n;b=0;for(a=this.n.length;b<a;b++)n=this.n[b],n.zg&&n.zg()};f.prototype.Po=function(){this.ei=!1;var b,a,n;b=0;for(a=this.n.length;b<a;b++)n=this.n[b],n.Ei&&n.Ei()};f.prototype.sl=function(){if(!this.qa){var b=document.mozFullScreen||document.webkitIsFullScreen||
document.fullScreen||document.msFullscreenElement||this.ff?jQuery(this.canvas).offset():jQuery(this.canvas).position();b.position="absolute";jQuery(this.Ca).css(b)}};var d=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;f.prototype.setSuspended=function(b){var a;if(b&&!this.gf)for(C("[Construct 2] Suspending"),this.gf=!0,0!==this.Gg&&d&&d(this.Gg),0!==this.Tg&&clearTimeout(this.Tg),b=0,a=this.Ff.length;b<
a;b++)this.Ff[b](!0);else if(!b&&this.gf){C("[Construct 2] Resuming");this.gf=!1;this.ng=O();this.nf=O();b=this.rf=this.bg=0;for(a=this.Ff.length;b<a;b++)this.Ff[b](!1);this.Mc()}};f.prototype.Lm=function(b){this.Ff.push(b)};f.prototype.load=function(){var b=Pb();this.name=b[0];this.rk=b[1];this.Ta=b[11];this.sk=b[11];this.ta=b[9];this.ra=b[10];this.qa&&(4<=b[11]||0===b[11])&&(C("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.sk=
this.Ta=3);this.pj=b[17];this.pf=b[18];0===this.pf&&(this.qe=new Image,this.qe.src="loading-logo.png");this.tf=b[20];this.rc=new S(this);var a,n,d,c,g,h,k,e,m;a=0;for(n=b[2].length;a<n;a++)k=b[2][a],Wa(k),m=new k[0](this),m.bj=k[1],m.cd=k[2],m.el=k[9],m.R&&m.R(),this.plugins.push(m);b=Pb();a=0;for(n=b[3].length;a<n;a++){k=b[3][a];g=k[1];m=null;d=0;for(c=this.plugins.length;d<c;d++)if(this.plugins[d]instanceof g){m=this.plugins[d];break}var f=new m.ka(m);f.name=k[0];f.G=k[2];f.$h=k[3].slice(0);f.xp=
k[3].length;f.Pm=k[4];f.Rn=k[5];f.N=k[11];f.G?(f.cl=[],f.ec=this.Xe++,f.Y=null):(f.cl=null,f.ec=-1,f.Y=[]);f.Zf=null;f.je=null;f.nk=null;f.Pb=!1;f.Sa=null;k[6]?(f.gj=k[6][0],f.hj=k[6][1],f.ij=k[6][2]):(f.gj=null,f.hj=0,f.ij=0);f.bb=k[7]?k[7]:null;f.index=a;f.d=[];f.Uf=[];f.nd=[new Xa(f)];f.Cc=0;f.ac=null;f.De=!0;f.Xg=Ya;f.Un=Za;f.$n=$a;f.Z=ab;f.Af=bb;f.Mi=cb;f.xe=db;f.cg=eb;f.Qh=fb;f.Th=gb;f.Uc=hb;f.yk=ib;f.ek=new Ra(this.ta,this.ra);f.Tj=!0;f.Uj=!1;f.ga={};f.toString=jb;f.la=[];d=0;for(c=k[8].length;d<
c;d++){e=k[8][d];var p=e[1],l=null;g=0;for(h=this.la.length;g<h;g++)if(this.la[g]instanceof p){l=this.la[g];break}l||(l=new p(this),l.fl=[],l.vi=new da,l.R&&l.R(),this.la.push(l));-1===l.fl.indexOf(f)&&l.fl.push(f);g=new l.ka(l,f);g.name=e[0];g.N=e[2];g.R();f.la.push(g)}f.global=k[9];f.ci=k[10];f.F=[];d=0;for(c=k[12].length;d<c;d++)f.F.push({id:k[12][d][0],name:k[12][d][1],Ea:-1,xc:!0,index:d});f.ir=k[13];this.pj&&!f.G&&!f.ci&&m.cd||f.R();f.name&&(this.types[f.name]=f);this.n.push(f);m.bj&&(d=new m.da(f),
d.uid=this.tf++,d.wl=this.gl++,d.Ed=0,d.bf=kb,d.toString=lb,d.D=k[14],d.R(),f.d.push(d),this.Rd[d.uid.toString()]=d)}a=0;for(n=b[4].length;a<n;a++)for(g=b[4][a],h=this.n[g[0]],d=1,c=g.length;d<c;d++)k=this.n[g[d]],k.Y.push(h),h.cl.push(k);a=0;for(n=b[23].length;a<n;a++){g=b[23][a];h=[];d=0;for(c=g.length;d<c;d++)h.push(this.n[g[d]]);d=0;for(c=h.length;d<c;d++)h[d].Pb=!0,h[d].Sa=h}if(0<this.Xe)for(a=0,n=this.n.length;a<n;a++)if(k=this.n[a],!k.G&&k.Y.length){k.Zf=Array(this.Xe);k.je=Array(this.Xe);
k.nk=Array(this.Xe);f=[];d=l=p=e=0;for(c=k.Y.length;d<c;d++)for(m=k.Y[d],k.Zf[m.ec]=e,e+=m.xp,k.je[m.ec]=p,p+=m.Pm,k.nk[m.ec]=l,l+=m.Rn,g=0,h=m.F.length;g<h;g++)f.push(xa({},m.F[g]));k.F=f.concat(k.F);d=0;for(c=k.F.length;d<c;d++)k.F[d].index=d}a=0;for(n=b[5].length;a<n;a++)k=b[5][a],d=new mb(this,k),this.ki[d.name]=d,this.Qb.push(d);a=0;for(n=b[6].length;a<n;a++)k=b[6][a],d=new nb(this,k),this.Jh[d.name]=d,this.zd.push(d);a=0;for(n=this.zd.length;a<n;a++)this.zd[a].ja();a=0;for(n=this.Wg.length;a<
n;a++)this.Wg[a].ja();this.Wg.length=0;this.lc=b[8];this.Qe=1;this.pn=b[12];this.Q=b[13];this.oh=b[14];this.vp=b[16];this.Gi=b[19];this.Om=0<this.Gi;this.Uo=b[21];this.Db=this.Wl=b[22];this.Og=Date.now()};f.prototype.Qn=function(b){var a,d;a=0;for(d=this.Pc.length;a<d;a++)if(this.Pc[a].Wm===b)return this.Pc[a];return null};f.prototype.Vj=function(){var b=0,a=0,d=!0,c,g;c=0;for(g=this.Pc.length;c<g;c++){var h=this.Pc[c].gk;if(!h||0>=h)h=5E4;b+=h;this.Pc[c].complete||this.Pc[c].loaded?a+=h:d=!1}this.Sb=
0==b?0:a/b;return d};f.prototype.go=function(){if(this.T||this.q){var b=this.T||this.Hi;this.Ca&&this.sl();this.Sb=0;this.Wk=-1;if(this.Vj())this.so();else{var a=Date.now()-this.Og;if(b){var d=this.width,c=this.height,g=this.devicePixelRatio;this.Ca&&(d=this.Sf,c=this.Rf,g=1);if(3!==this.pf&&500<=a&&this.Wk!=this.Sb){b.clearRect(0,0,d,c);var a=d/2,c=c/2,d=0===this.pf&&this.qe.complete,h=40*g,k=0,e=80*g,f;d&&(e=this.qe.width*g,f=this.qe.height*g,h=e/2,k=f/2,b.drawImage(this.qe,K(a-h),K(c-k),e,f));
1>=this.pf?(a=K(a-h)+0.5,c=K(c+(k+(d?12*g:0)))+0.5,b.fillStyle="DodgerBlue",b.fillRect(a,c,Math.floor(e*this.Sb),6*g),b.strokeStyle="black",b.strokeRect(a,c,e,6*g),b.strokeStyle="white",b.strokeRect(a-1*g,c-1*g,e+2*g,8*g)):2===this.pf&&(b.font="12pt Arial",b.fillStyle="#999",b.hr="middle",g=Math.round(100*this.Sb)+"%",d=b.measureText?b.measureText(g):null,b.fillText(g,a-(d?d.width:0)/2,c))}this.Wk=this.Sb}setTimeout(function(b){return function(){b.go()}}(this),100)}}};f.prototype.so=function(){this.Ca&&
(this.canvas.parentNode.removeChild(this.Ca),this.Ca=this.Hi=null);this.Og=Date.now();this.nf=O();var b,a,d;if(this.pj)for(b=0,a=this.n.length;b<a;b++)d=this.n[b],d.G||d.ci||!d.$.cd||d.R();else this.pe=!1;b=0;for(a=this.Qb.length;b<a;b++)this.Qb[b].Xm();2<=this.Ta&&(b=this.ta/this.ra,a=this.width/this.height,this.Qe=2!==this.Ta&&a>b||2===this.Ta&&a<b?this.height/this.ra:this.width/this.ta);this.rk?this.ki[this.rk].cj():this.Qb[0].cj();this.pj||(this.Md=1,this.trigger(S.prototype.e.zj,null));navigator.splashscreen&&
navigator.splashscreen.hide&&navigator.splashscreen.hide();this.Mc();this.Ob&&AppMobi.webview.execute("onGameReady();")};var p=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.Mc=function(){if(this.M){var b=O();if(this.uo&&this.Pi&&29>b-this.fi)this.Pi=!1,this.fi=b,p?this.Gg=p(this.Rg,this.canvas):this.Tg=setTimeout(this.Rg,this.bd?1:16);else{this.Pi=!0;this.fi=b;var a=this.Ta,
d=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement;(d||this.ff)&&0<this.Bd&&(a=this.Bd);if(0<a){var a=window.innerWidth,c=window.innerHeight;this.mf===a&&this.lf===c||this.setSize(a,c)}this.qa||(d?(this.$f||(this.Oh=jQuery(this.canvas).css("margin")||"0",this.$f=!0),this.ai||this.Ic||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/
this.devicePixelRatio)/2)+"px"})):this.$f?(this.ai||this.Ic||jQuery(this.canvas).css("margin",this.Oh),this.Oh="",this.$f=!1,0===this.Ta&&this.setSize(Math.round(this.jl/this.devicePixelRatio),Math.round(this.il/this.devicePixelRatio),!0)):(this.jl=this.width,this.il=this.height));this.pe&&(d=this.Vj(),this.Md=this.Sb,d&&(this.pe=!1,this.Sb=1,this.trigger(S.prototype.e.zj,null)));this.No();!this.U&&!this.Nb||this.ei||this.Ef||(this.U=!1,this.q?this.ib():this.Cb(),this.Ng&&(this.canvas&&this.canvas.toDataURL&&
(this.canvas.toDataURL(this.Ng[0],this.Ng[1]),this.trigger(S.prototype.e.gm,null)),this.Ng=null));this.Xq||(this.sc++,this.Yf++,this.bg++);this.rf+=O()-b;this.gf||(p?this.Gg=p(this.Rg,this.canvas):this.Tg=setTimeout(this.Rg,this.bd?1:16))}}};f.prototype.No=function(){var b,a,d,c,g,h,k,e,f;b=O();1E3<=b-this.nf&&(this.nf+=1E3,this.Nh=this.bg,this.bg=0,this.Ah=this.rf,this.rf=0);this.bl&&(0!==this.ng&&(a=b-this.ng,0!==a||this.Eo?(this.Yc=a/1E3,0.5<this.Yc?this.Yc=0:0.1<this.Yc&&(this.Yc=0.1)):(10<=this.kr&&
(this.bl=!1),this.Yc=1/60)),this.ng=b);this.ge=this.Yc*this.Hf;this.Id.add(this.ge);b=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.ff;2<=this.Ta||b&&0<this.Bd?(a=this.ta/this.ra,d=this.width/this.height,c=this.Ta,b&&0<this.Bd&&(c=this.Bd),this.Qe=2!==c&&d>a||2===c&&d<a?this.height/this.ra:this.width/this.ta,this.M&&(this.M.Bl(this.M.scrollX),this.M.Cl(this.M.scrollY))):this.Qe=this.Hd?this.devicePixelRatio:1;this.Ha();this.Hc++;this.rc.ep();
this.Hc--;this.Ha();this.Hc++;b=0;for(a=this.n.length;b<a;b++)if(k=this.n[b],!k.G&&(k.la.length||k.Y.length))for(d=0,c=k.d.length;d<c;d++)for(e=k.d[d],g=0,h=e.I.length;g<h;g++)e.I[g].Mc();b=0;for(a=this.n.length;b<a;b++)if(k=this.n[b],!k.G&&(k.la.length||k.Y.length))for(d=0,c=k.d.length;d<c;d++)for(e=k.d[d],g=0,h=e.I.length;g<h;g++)f=e.I[g],f.Yo&&f.Yo();d=this.xi.If();b=0;for(a=d.length;b<a;b++)d[b].Mc();this.Hc--;this.vo();for(b=0;this.wd&&10>b++;)this.lk(this.wd);b=0;for(a=this.zd.length;b<a;b++)this.zd[b].Yh=
!1;this.M.Vf&&this.M.Vf.wa();this.cp.length=0;this.ji=!1;this.Hc++;b=0;for(a=this.n.length;b<a;b++)if(k=this.n[b],!k.G&&(k.la.length||k.Y.length))for(d=0,c=k.d.length;d<c;d++)for(e=k.d[d],g=0,h=e.I.length;g<h;g++)f=e.I[g],f.jj&&f.jj();d=this.yi.If();b=0;for(a=d.length;b<a;b++)d[b].jj();this.Hc--};f.prototype.lk=function(b){var a=this.M;this.M.mp();var d,c,g,h,k,e,f;if(this.q)for(d=0,c=this.n.length;d<c;d++)k=this.n[d],k.G||!k.oj||k.global&&0!==k.d.length||-1!==b.df.indexOf(k)||k.oj();a==b&&(this.rc.Za.length=
0);b.cj();d=0;for(c=this.n.length;d<c;d++)if(k=this.n[d],k.global||k.$.bj)for(b=0,a=k.d.length;b<a;b++)if(e=k.d[b],e.Ai&&e.Ai(),e.I)for(g=0,h=e.I.length;g<h;g++)f=e.I[g],f.Ai&&f.Ai();this.ji=this.U=!0;this.Ha()};f.prototype.Sg=function(b){this.xi.add(b)};f.prototype.np=function(b){this.yi.add(b)};f.prototype.wk=function(b){return b&&-1!==b.sf?this.Yc*b.sf:this.ge};f.prototype.Cb=function(){this.M.Cb(this.T);this.Ob&&this.T.present()};f.prototype.ib=function(){this.M.ib(this.q);this.q.Zo()};f.prototype.Bk=
function(b){return this.Rd[b.toString()]};f.prototype.Yd=function(b){var a,d;if(!this.$b.contains(b)){this.$b.add(b);if(b.Pb)for(a=0,d=b.siblings.length;a<d;a++)this.Yd(b.siblings[a]);this.bi&&this.$b.Wd.push(b);this.Hc++;this.trigger(Object.getPrototypeOf(b.type.$).e.jm,b);this.Hc--}};f.prototype.Ha=function(){var b,a,d,c,g,h,k,e,f,m;this.bi=!0;c=0;for(h=this.hb.length;c<h;c++)for(b=this.hb[c],a=b.type,a.d.push(b),g=0,k=a.Y.length;g<k;g++)a.Y[g].d.push(b),a.Y[g].De=!0;this.hb.length=0;h=this.$b.If();
for(c=0;c<h.length;c++){b=h[c];a=b.type;d=a.d;g=0;for(k=this.kk.length;g<k;g++)this.kk[g](b);Aa(d,b);0===d.length&&(a.Uj=!1);b.Qf&&a.ek.update(b,b.Qf,null);b.i&&(ya(b.i.d,b.yb()),b.i.ub=!0);g=0;for(k=a.Y.length;g<k;g++)Aa(a.Y[g].d,b),a.Y[g].De=!0;if(b.I)for(g=0,k=b.I.length;g<k;g++)d=b.I[g],d.Sd&&d.Sd(),d.ee.vi.remove(b);this.xi.remove(b);this.yi.remove(b);g=0;for(k=this.rc.Za.length;g<k;g++)if(f=this.rc.Za[g],f.Na.hasOwnProperty(a.index)&&Aa(f.Na[a.index].Gc,b),!a.G)for(d=0,e=a.Y.length;d<e;d++)m=
a.Y[d],f.Na.hasOwnProperty(m.index)&&Aa(f.Na[m.index].Gc,b);b.Sd&&b.Sd();this.Rd.hasOwnProperty(b.uid.toString())&&delete this.Rd[b.uid.toString()];this.xg--;64>a.Uf.length&&a.Uf.push(b);a.De=!0}this.$b.ad()||(this.U=!0);this.$b.clear();this.bi=!1};var h=[];f.prototype.xd=function(b,a,d,c,g,k){var e,f,m,p;if(!b)return null;var l=this.n[b[1]],E=l.$.cd;if(this.pe&&E&&!l.ci||E&&!this.q&&11===b[0][11])return null;var B=a;E||(a=null);var q;l.Uf.length?(q=l.Uf.pop(),q.Ib=!0,l.$.da.call(q,l)):(q=new l.$.da(l),
q.Ib=!1);q.uid=d&&!k?b[2]:this.tf++;this.Rd[q.uid.toString()]=q;q.wl=this.gl++;q.Ed=l.d.length;e=0;for(f=this.hb.length;e<f;++e)this.hb[e].type===l&&q.Ed++;q.bf=kb;m=b[3];if(q.Ib)Na(q.ga);else{q.ga={};if("undefined"!==typeof cr_is_preview)for(q.Jk=[],q.Jk.length=m.length,e=0,f=m.length;e<f;e++)q.Jk[e]=m[e][1];q.pa=[];q.pa.length=m.length}e=0;for(f=m.length;e<f;e++)q.pa[e]=m[e][0];if(E){var y=b[0];q.x=ea(c)?y[0]:c;q.y=ea(g)?y[1]:g;q.z=y[2];q.width=y[3];q.height=y[4];q.depth=y[5];q.j=y[6];q.opacity=
y[7];q.Va=y[8];q.Wa=y[9];q.Qa=y[10];e=y[11];!this.q&&l.F.length&&(q.Qa=e);q.Ue=Sa(q.Qa);this.m&&Ta(q,q.Qa,this.m);if(q.Ib){e=0;for(f=y[12].length;e<f;e++)for(m=0,p=y[12][e].length;m<p;m++)q.fa[e][m]=y[12][e][m];q.Pa.set(0,0,0,0);q.Qf.set(0,0,-1,-1);q.Xc.Mg(q.Pa);q.rh.length=0}else{q.fa=y[12].slice(0);e=0;for(f=q.fa.length;e<f;e++)q.fa[e]=y[12][e].slice(0);q.P=[];q.Rc=[];q.Rc.length=l.F.length;q.Pa=new L(0,0,0,0);q.Qf=new L(0,0,-1,-1);q.Xc=new sa;q.rh=[];q.Da=ob;q.Qq=pb;q.Yb=qb;q.Xa=rb;q.yb=sb}q.pp=
!1;q.rp=0;q.qp=0;q.op=null;14===y.length&&(q.pp=!0,q.rp=y[13][0],q.qp=y[13][1],q.op=y[13][2]);e=0;for(f=l.F.length;e<f;e++)q.Rc[e]=!0;q.Oc=tb;q.Oc();q.Ul=!!q.P.length;q.qh=!0;l.Tj=!0;q.visible=!0;q.sf=-1;q.i=a;q.Xd=a.d.length;"undefined"===typeof q.Xb&&(q.Xb=null);this.U=q.Te=!0}q.toString=lb;var z;e=h.length=0;for(f=l.Y.length;e<f;e++)h.push.apply(h,l.Y[e].la);h.push.apply(h,l.la);if(q.Ib)for(e=0,f=h.length;e<f;e++){var M=h[e];z=q.I[e];z.Ib=!0;M.ee.da.call(z,M,q);y=b[4][e];m=0;for(p=y.length;m<p;m++)z.D[m]=
y[m];z.R();M.ee.vi.add(q)}else for(q.I=[],e=0,f=h.length;e<f;e++)M=h[e],z=new M.ee.da(M,q),z.Ib=!1,z.D=b[4][e].slice(0),z.R(),q.I.push(z),M.ee.vi.add(q);y=b[5];if(q.Ib)for(e=0,f=y.length;e<f;e++)q.D[e]=y[e];else q.D=y.slice(0);this.hb.push(q);a&&(a.d.push(q),1!==a.Gb||1!==a.Hb)&&(l.Uj=!0);this.xg++;if(l.Pb){if(q.Pb=!0,q.Ib?q.siblings.length=0:q.siblings=[],!d&&!k){e=0;for(f=l.Sa.length;e<f;e++)if(l.Sa[e]!==l){if(!l.Sa[e].ac)return null;q.siblings.push(this.xd(l.Sa[e].ac,B,!1,E?q.x:c,E?q.y:g,!0))}e=
0;for(f=q.siblings.length;e<f;e++)for(q.siblings[e].siblings.push(q),m=0;m<f;m++)e!==m&&q.siblings[e].siblings.push(q.siblings[m])}}else q.Pb=!1,q.siblings=null;q.R();e=0;for(f=q.I.length;e<f;e++)q.I[e].Xo&&q.I[e].Xo();return q};f.prototype.ke=function(b){var a,d;a=0;for(d=this.M.O.length;a<d;a++){var c=this.M.O[a];if(P(c.name,b))return c}return null};f.prototype.fc=function(b){b=K(b);0>b&&(b=0);b>=this.M.O.length&&(b=this.M.O.length-1);return this.M.O[b]};f.prototype.Yn=function(b){return G(b)?this.fc(b):
this.ke(b.toString())};f.prototype.zh=function(b){var a,d;a=0;for(d=b.length;a<d;a++)b[a].Z().aa=!0};f.prototype.Af=function(b){var a,d;a=0;for(d=b.length;a<d;a++)b[a].Af()};f.prototype.Mi=function(b){var a,d;a=0;for(d=b.length;a<d;a++)b[a].Mi()};f.prototype.xe=function(b){var a,d;a=0;for(d=b.length;a<d;a++)b[a].xe()};f.prototype.ej=function(b,a,d,c){var g=b.Z(),h,k,e,f,m,p;if(g.aa)for(c||(g.aa=!1,g.d.length=0),h=0,f=b.d.length;h<f;h++){if(e=b.d[h],e.Xa(),m=e.i.Ba(a,d,!0),p=e.i.Ba(a,d,!1),e.Yb(m,
p)){if(c)return!1;g.d.push(e)}}else{h=k=0;for(f=g.d.length;h<f;h++)if(e=g.d[h],e.Xa(),m=e.i.Ba(a,d,!0),p=e.i.Ba(a,d,!1),e.Yb(m,p)){if(c)return!1;g.d[k]=g.d[h];k++}c||(g.d.length=k)}b.Uc();return c?!0:g.Xh()};new sa;new L(0,0,0,0);f.prototype.Ql=function(b,a){if(!a)return!1;var d,c,g,h,k;d=0;for(c=b.la.length;d<c;d++)if(b.la[d].ee instanceof a)return!0;if(!b.G)for(d=0,c=b.Y.length;d<c;d++)for(k=b.Y[d],g=0,h=k.la.length;g<h;g++)if(k.la[g].ee instanceof a)return!0;return!1};f.prototype.Rl=function(b){return this.Ql(b,
Hb.hq)};f.prototype.nj=function(b){return this.Ql(b,Hb.iq)};var g=[],k=-1;f.prototype.trigger=function(b,a,d){if(!this.M)return!1;var c=this.M.Vf;if(!c)return!1;k++;k===g.length?g.push(new da):g[k].clear();b=this.Nl(b,a,c,d);k--;return b};f.prototype.Nl=function(b,a,d,c){var h=g[k];if(h.contains(d))return!1;h.add(d);var h=d.Fk.If(),e=!1,f,m,p;f=0;for(m=h.length;f<m;f++)h[f].zo()&&(p=this.Nl(b,a,h[f].cf,c),e=e||p);if(a)for(p=this.lj(b,a,a.type.name,d,c),e=e||p,f=0,m=a.type.Y.length;f<m;f++)p=this.lj(b,
a,a.type.Y[f].name,d,c),e=e||p;else p=this.lj(b,a,"system",d,c),e=e||p;return e};f.prototype.lj=function(b,a,d,c,g){var h,k=!1,e=!1,e="undefined"!==typeof g,f=(e?c.pk:c.Ol)[d];if(!f)return k;var m=null;c=0;for(h=f.length;c<h;c++)if(f[c].method==b){m=f[c].Xf;break}if(!m)return k;b=e?m[g]:m;if(!b)return null;c=0;for(h=b.length;c<h;c++)g=b[c][0],e=b[c][1],e=this.On(a,d,g,e),k=k||e;return k};f.prototype.On=function(b,a,d,c){var g,h,e=!1;this.mj++;var f=this.Ua().xb;f&&this.Af(f.ld);var m=1<this.mj;this.Af(d.ld);
m&&this.bp();var p=this.Ni(d);p.xb=d;b&&(g=this.types[a].Z(),g.aa=!1,g.d.length=1,g.d[0]=b,this.types[a].Uc());b=!0;if(d.parent){a=p.Il;for(g=d.parent;g;)a.push(g),g=g.parent;a.reverse();g=0;for(h=a.length;g<h;g++)if(!a[g].gp()){b=!1;break}}b&&(this.Yf++,d.kc?d.fp(c):d.wa(),e=e||p.Ld);this.rl();m&&this.Wo();this.xe(d.ld);f&&this.xe(f.ld);0!==this.Hc||0!==k||this.di||this.$b.ad()&&!this.hb.length||this.Ha();this.mj--;return e};f.prototype.Rh=function(){var b=this.Ua();return b.xb.ia[b.Ra]};f.prototype.bp=
function(){this.wg++;this.wg>=this.ri.length&&this.ri.push([])};f.prototype.Wo=function(){this.wg--};f.prototype.vk=function(){return this.ri[this.wg]};f.prototype.Ni=function(b){this.Wf++;this.Wf>=this.Ih.length&&this.Ih.push(new ub);var a=this.Ua();a.reset(b);return a};f.prototype.rl=function(){this.Wf--};f.prototype.Ua=function(){return this.Ih[this.Wf]};f.prototype.xk=function(b,a){for(var d,c,g,h,k,e;a;){d=0;for(c=a.Kb.length;d<c;d++)if(e=a.Kb[d],e instanceof vb&&P(b,e.name))return e;a=a.parent}d=
0;for(c=this.zd.length;d<c;d++)for(k=this.zd[d],g=0,h=k.$c.length;g<h;g++)if(e=k.$c[g],e instanceof vb&&P(b,e.name))return e;return null};f.prototype.zk=function(b){var a,d;a=0;for(d=this.Qb.length;a<d;a++)if(this.Qb[a].N===b)return this.Qb[a];return null};f.prototype.eg=function(b){var a,d;a=0;for(d=this.n.length;a<d;a++)if(this.n[a].N===b)return this.n[a];return null};f.prototype.Vn=function(b){var a,d;a=0;for(d=this.Tc.length;a<d;a++)if(this.Tc[a].N===b)return this.Tc[a];return null};f.prototype.vo=
function(){var b=this,a=this.Zi,d=this.Jc,g=this.tg,h=!1;this.Gl&&(h=!0,a="__c2_continuouspreview",this.Gl=!1);if(a.length){this.Ha();d=this.kp();if(window.indexedDB&&!this.Nb)e(a,d,function(){C("Saved state to IndexedDB storage ("+d.length+" bytes)");b.Jc=d;b.trigger(S.prototype.e.gh,null);b.Jc="";h&&c()},function(g){try{localStorage.setItem("__c2save_"+a,d),C("Saved state to WebStorage ("+d.length+" bytes)"),b.Jc=d,b.trigger(S.prototype.e.gh,null),b.Jc="",h&&c()}catch(k){C("Failed to save game state: "+
g+"; "+k)}});else try{localStorage.setItem("__c2save_"+a,d),C("Saved state to WebStorage ("+d.length+" bytes)"),b.Jc=d,this.trigger(S.prototype.e.gh,null),b.Jc="",h&&c()}catch(k){C("Error saving to WebStorage: "+k)}this.Ma=this.tg=this.Zi=""}g.length&&(window.indexedDB&&!this.Nb?m(g,function(a){a?(b.Ma=a,C("Loaded state from IndexedDB storage ("+b.Ma.length+" bytes)")):(b.Ma=localStorage.getItem("__c2save_"+g)||"",C("Loaded state from WebStorage ("+b.Ma.length+" bytes)"));b.Ef=!1;b.Ma.length||b.trigger(S.prototype.e.fh,
null)},function(){b.Ma=localStorage.getItem("__c2save_"+g)||"";C("Loaded state from WebStorage ("+b.Ma.length+" bytes)");b.Ef=!1;b.Ma.length||b.trigger(S.prototype.e.fh,null)}):(this.Ma=localStorage.getItem("__c2save_"+g)||"",C("Loaded state from WebStorage ("+this.Ma.length+" bytes)"),this.Ef=!1,b.Ma.length||b.trigger(S.prototype.e.fh,null)),this.Zi=this.tg="");this.Ma.length&&(this.Ha(),this.Mo(this.Ma),this.Jc=this.Ma,this.trigger(S.prototype.e.mm,null),this.Ma=this.Jc="")};f.prototype.kp=function(){var b,
d,c,g,h,k,e,f={c2save:!0,version:1,rt:{time:this.Id.Oa,timescale:this.Hf,tickcount:this.sc,execcount:this.Yf,next_uid:this.tf,running_layout:this.M.N,start_time_offset:Date.now()-this.Og},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};b=0;for(d=this.n.length;b<d;b++)if(h=this.n[b],!h.G&&!this.Rl(h)){k={instances:[]};Ma(h.ga)&&(k.ex=a(h.ga));c=0;for(g=h.d.length;c<g;c++)k.instances.push(this.Yi(h.d[c]));f.types[h.N.toString()]=k}b=0;for(d=this.Qb.length;b<d;b++)c=this.Qb[b],f.layouts[c.N.toString()]=
c.Ab();g=f.events.groups;b=0;for(d=this.Tc.length;b<d;b++)c=this.Tc[b],g[c.N.toString()]=!!this.rd[c.le];d=f.events.cnds;for(e in this.fe)this.fe.hasOwnProperty(e)&&(b=this.fe[e],Ma(b.ga)&&(d[e]={ex:a(b.ga)}));d=f.events.acts;for(e in this.$d)this.$d.hasOwnProperty(e)&&(b=this.$d[e],Ma(b.ga)&&(d[e]={ex:b.ga}));d=f.events.vars;for(e in this.Ie)this.Ie.hasOwnProperty(e)&&(b=this.Ie[e],b.kg||b.parent&&!b.hf||(d[e]=b.data));f.system=this.rc.Ab();return JSON.stringify(f)};f.prototype.xl=function(){var b,
a,d,c,g,h;this.Rd={};b=0;for(a=this.n.length;b<a;b++)if(d=this.n[b],!d.G)for(c=0,g=d.d.length;c<g;c++)h=d.d[c],this.Rd[h.uid.toString()]=h};f.prototype.Mo=function(b){b=JSON.parse(b);if(b.c2save&&!(1<b.version)){var a=b.rt;this.Id.reset();this.Id.Oa=a.time;this.Hf=a.timescale;this.sc=a.tickcount;this.Yf=a.execcount;this.Og=Date.now()-a.start_time_offset;var d=a.running_layout;if(d!==this.M.N)if(d=this.zk(d))this.lk(d);else return;var c,g,h,k,e,f,m;f=b.types;for(g in f)if(f.hasOwnProperty(g)&&(k=this.eg(parseInt(g,
10)))&&!k.G&&!this.Rl(k)){f[g].ex?k.ga=f[g].ex:Na(k.ga);e=k.d;h=f[g].instances;d=0;for(c=ja(e.length,h.length);d<c;d++)this.ug(e[d],h[d]);d=h.length;for(c=e.length;d<c;d++)this.Yd(e[d]);d=e.length;for(c=h.length;d<c;d++){e=null;if(k.$.cd&&(e=this.M.dg(h[d].w.l),!e))continue;e=this.xd(k.ac,e,!1,0,0,!0);this.ug(e,h[d])}k.De=!0}this.Ha();this.xl();c=b.layouts;for(g in c)c.hasOwnProperty(g)&&(d=this.zk(parseInt(g,10)))&&d.Rb(c[g]);c=b.events.groups;for(g in c)c.hasOwnProperty(g)&&(d=this.Vn(parseInt(g,
10)))&&(this.rd[d.le]=c[g]);d=b.events.cnds;for(g in d)d.hasOwnProperty(g)&&this.fe.hasOwnProperty(g)&&(this.fe[g].ga=d[g].ex);d=b.events.acts;for(g in d)d.hasOwnProperty(g)&&this.$d.hasOwnProperty(g)&&(this.$d[g].ga=d[g].ex);d=b.events.vars;for(g in d)d.hasOwnProperty(g)&&this.Ie.hasOwnProperty(g)&&(this.Ie[g].data=d[g]);this.tf=a.next_uid;this.rc.Rb(b.system);d=0;for(c=this.n.length;d<c;d++)if(k=this.n[d],!k.G)for(g=0,b=k.d.length;g<b;g++){e=k.d[g];if(k.Pb)for(f=e.bf(),a=e.siblings.length=0,h=k.Sa.length;a<
h;a++)m=k.Sa[a],k!==m&&e.siblings.push(m.d[f]);e.Sc&&e.Sc();if(e.I)for(a=0,h=e.I.length;a<h;a++)f=e.I[a],f.Sc&&f.Sc()}this.U=!0}};f.prototype.Yi=function(b,d){var c,g,h,k,e;k=b.type;h=k.$;var f={};d?f.c2=!0:f.uid=b.uid;Ma(b.ga)&&(f.ex=a(b.ga));if(b.pa&&b.pa.length)for(f.ivs={},c=0,g=b.pa.length;c<g;c++)f.ivs[b.type.$h[c].toString()]=b.pa[c];if(h.cd){h={x:b.x,y:b.y,w:b.width,h:b.height,l:b.i.N,zi:b.yb()};0!==b.j&&(h.a=b.j);1!==b.opacity&&(h.o=b.opacity);0.5!==b.Va&&(h.hX=b.Va);0.5!==b.Wa&&(h.hY=b.Wa);
0!==b.Qa&&(h.bm=b.Qa);b.visible||(h.v=b.visible);b.Te||(h.ce=b.Te);-1!==b.sf&&(h.mts=b.sf);if(k.F.length)for(h.fx=[],c=0,g=k.F.length;c<g;c++)e=k.F[c],h.fx.push({name:e.name,active:b.Rc[e.index],params:b.fa[e.index]});f.w=h}if(b.I&&b.I.length)for(f.behs={},c=0,g=b.I.length;c<g;c++)k=b.I[c],k.Ab&&(f.behs[k.type.N.toString()]=k.Ab());b.Ab&&(f.data=b.Ab());return f};f.prototype.Xn=function(b,a){var d,c;d=0;for(c=b.$h.length;d<c;d++)if(b.$h[d]===a)return d;return-1};f.prototype.Tn=function(b,a){var d,
c;d=0;for(c=b.I.length;d<c;d++)if(b.I[d].type.N===a)return d;return-1};f.prototype.ug=function(b,a,d){var c,g,h,k,e;e=b.type;h=e.$;if(d){if(!a.c2)return}else b.uid=a.uid;a.ex?b.ga=a.ex:Na(b.ga);if(g=a.ivs)for(c in g)g.hasOwnProperty(c)&&(d=this.Xn(e,parseInt(c,10)),0>d||d>=b.pa.length||(b.pa[d]=g[c]));if(h.cd){h=a.w;b.i.N!==h.l&&(d=b.i,b.i=this.M.dg(h.l),b.i?(b.i.d.push(b),b.i.ub=!0,Aa(d.d,b),d.ub=!0):(b.i=d,this.Yd(b)));b.x=h.x;b.y=h.y;b.width=h.w;b.height=h.h;b.Xd=h.zi;b.j=h.hasOwnProperty("a")?
h.a:0;b.opacity=h.hasOwnProperty("o")?h.o:1;b.Va=h.hasOwnProperty("hX")?h.hX:0.5;b.Wa=h.hasOwnProperty("hY")?h.hY:0.5;b.visible=h.hasOwnProperty("v")?h.v:!0;b.Te=h.hasOwnProperty("ce")?h.ce:!0;b.sf=h.hasOwnProperty("mts")?h.mts:-1;b.Qa=h.hasOwnProperty("bm")?h.bm:0;b.Ue=Sa(b.Qa);this.m&&Ta(b,b.Qa,this.m);b.Da();if(h.hasOwnProperty("fx"))for(d=0,g=h.fx.length;d<g;d++)k=e.Th(h.fx[d].name),0>k||(b.Rc[k]=h.fx[d].active,b.fa[k]=h.fx[d].params);b.Oc()}if(e=a.behs)for(c in e)e.hasOwnProperty(c)&&(h=this.Tn(b,
parseInt(c,10)),0>h||b.I[h].Rb(e[c]));a.data&&b.Rb(a.data)};wb=function(b){return new f(document.getElementById(b))};xb=function(b,a){return new f({dc:!0,width:b,height:a})};window.cr_createRuntime=wb;window.cr_createDCRuntime=xb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var b=document.createElement("screencanvas")||document.createElement("canvas");document.body.appendChild(b);b=new f(b);window.c2runtime=b;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,
window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b}})();window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(f,l){if(0!==f&&0!==l){var e=window.cr_getC2Runtime();e&&e.setSize(f,l)}};window.cr_setSuspended=function(f){var l=window.cr_getC2Runtime();l&&l.setSuspended(f)};
(function(){function f(c,a){this.b=c;this.Vf=null;this.scrollX=this.b.ta/2;this.scrollY=this.b.ra/2;this.scale=1;this.j=0;this.Ze=!0;this.name=a[0];this.width=a[1];this.height=a[2];this.Sl=a[3];this.Fl=a[4];this.N=a[5];var d=a[6],e,h;this.O=[];this.df=[];e=0;for(h=d.length;e<h;e++){var g=new yb(this,d[e]);g.hl=e;this.O.push(g)}d=a[7];this.Fd=[];e=0;for(h=d.length;e<h;e++){var g=d[e],k=this.b.n[g[1]];k.ac||(k.ac=g);this.Fd.push(g);-1===this.df.indexOf(k)&&this.df.push(k)}this.F=[];this.P=[];this.fa=
[];e=0;for(h=a[8].length;e<h;e++)this.F.push({id:a[8][e][0],name:a[8][e][1],Ea:-1,xc:!0,index:e}),this.fa.push(a[8][e][2].slice(0));this.Oc();this.hd=new L(0,0,1,1);this.Qi=new L(0,0,1,1);this.gd={}}function l(c,a){this.W=c;this.b=c.b;this.d=[];this.scale=1;this.j=0;this.yd=!1;this.Nc=new L(0,0,0,0);this.Ll=new sa;this.rb=this.Ya=this.tb=this.sb=0;this.ub=!1;this.name=a[0];this.index=a[1];this.N=a[2];this.visible=a[3];this.Vc=a[4];this.Vd=a[5];this.Gb=a[6];this.Hb=a[7];this.opacity=a[8];this.Mh=a[9];
this.$a=a[10];this.Qa=a[11];this.on=a[12];this.Ue="source-over";this.Ia=this.Ja=0;this.jd=!1;var d=a[13],e,h;this.me=[];e=0;for(h=d.length;e<h;e++){var g=d[e],k=this.b.n[g[1]];k.ac||(k.ac=g);this.me.push(g);-1===this.W.df.indexOf(k)&&this.W.df.push(k)}this.F=[];this.P=[];this.fa=[];e=0;for(h=a[14].length;e<h;e++)this.F.push({id:a[14][e][0],name:a[14][e][1],Ea:-1,xc:!0,index:e}),this.fa.push(a[14][e][2].slice(0));this.Oc();this.hd=new L(0,0,1,1);this.Qi=new L(0,0,1,1)}function e(c,a){return c.Xd-a.Xd}
f.prototype.jp=function(c){var a=c.type.N.toString();this.gd.hasOwnProperty(a)||(this.gd[a]=[]);this.gd[a].push(this.b.Yi(c))};f.prototype.Ck=function(){var c=this.O[0];return!c.Vd&&1===c.opacity&&!c.Mh&&c.visible};f.prototype.Oc=function(){this.P.length=0;var c,a,d;c=0;for(a=this.F.length;c<a;c++)d=this.F[c],d.xc&&this.P.push(d)};f.prototype.Sh=function(c){var a,d,e;a=0;for(d=this.F.length;a<d;a++)if(e=this.F[a],e.name===c)return e;return null};var m=[];f.prototype.cj=function(){this.Fl&&(this.Vf=
this.b.Jh[this.Fl]);this.b.M=this;this.scrollX=this.b.ta/2;this.scrollY=this.b.ra/2;var c,a,d,f,h,g,k;c=0;for(d=this.b.n.length;c<d;c++)if(a=this.b.n[c],!a.G)for(h=a.d,a=0,f=h.length;a<f;a++)if(g=h[a],g.i){var b=g.i.hl;b>=this.O.length&&(b=this.O.length-1);g.i=this.O[b];g.i.d.push(g);g.i.ub=!0}m.length=0;this.Qm();c=0;for(d=this.O.length;c<d;c++)g=this.O[c],g.Ym(),g.yd=!0,a=g.Ba(0,0,!0,!0),f=g.Ba(0,0,!1,!0),g.yd=!1,this.b.lc&&(a=a+0.5|0,f=f+0.5|0),g.Ti(a,f,null);h=!1;if(!this.Ze){for(k in this.gd)if(this.gd.hasOwnProperty(k)&&
(a=this.b.eg(parseInt(k,10)))&&!a.G&&this.b.nj(a)){f=this.gd[k];c=0;for(d=f.length;c<d;c++){g=null;if(a.$.cd&&(g=this.dg(f[c].w.l),!g))continue;g=this.b.xd(a.ac,g,!1,0,0,!0);this.b.ug(g,f[c]);h=!0;m.push(g)}f.length=0}c=0;for(d=this.O.length;c<d;c++)this.O[c].d.sort(e),this.O[c].ub=!0}h&&(this.b.Ha(),this.b.xl());for(c=0;c<m.length;c++)if(g=m[c],g.type.Pb)for(d=g.bf(),a=0,f=g.type.Sa.length;a<f;a++)k=g.type.Sa[a],g.type!==k&&(k.d.length>d?g.siblings.push(k.d[d]):k.ac&&(h=this.b.xd(k.ac,g.i,!0,g.x,
g.y,!0),this.b.Ha(),k.Xg(),g.siblings.push(h),m.push(h)));c=0;for(d=this.Fd.length;c<d;c++)this.b.xd(this.Fd[c],null,!0);this.b.wd=null;this.b.Ha();if(this.b.T&&!this.b.qa)for(c=0,d=this.b.n.length;c<d;c++)k=this.b.n[c],!k.G&&k.d.length&&k.Ki&&k.Ki(this.b.T);c=0;for(d=m.length;c<d;c++)g=m[c],this.b.trigger(Object.getPrototypeOf(g.type.$).e.im,g);m.length=0;this.b.trigger(S.prototype.e.eh,null);this.Ze=!1};f.prototype.Xm=function(){var c,a,d,e,h;a=c=0;for(d=this.Fd.length;c<d;c++)e=this.Fd[c],h=this.b.n[e[1]],
h.global?this.b.xd(e,null,!0):(this.Fd[a]=e,a++);this.Fd.length=a};f.prototype.mp=function(){this.b.trigger(S.prototype.e.lm,null);this.b.rc.Za.length=0;var c,a,d,e,h,g;c=0;for(a=this.O.length;c<a;c++){h=this.O[c].d;d=0;for(e=h.length;d<e;d++)g=h[d],g.type.global||(this.b.nj(g.type)&&this.jp(g),this.b.Yd(g));this.b.Ha();h.length=0;this.O[c].ub=!0}c=0;for(a=this.b.n.length;c<a;c++)if(h=this.b.n[c],!(h.global||h.$.cd||h.$.bj||h.G)){d=0;for(e=h.d.length;d<e;d++)this.b.Yd(h.d[d]);this.b.Ha()}};f.prototype.Cb=
function(c){var a,d=c,e=!1,h=!this.b.Db;h&&(this.b.sg||(this.b.sg=document.createElement("canvas"),a=this.b.sg,a.width=this.b.L,a.height=this.b.K,this.b.Yk=a.getContext("2d"),e=!0),a=this.b.sg,d=this.b.Yk,a.width!==this.b.L&&(a.width=this.b.L,e=!0),a.height!==this.b.K&&(a.height=this.b.K,e=!0),e&&(d.webkitImageSmoothingEnabled=this.b.Q,d.mozImageSmoothingEnabled=this.b.Q,d.msImageSmoothingEnabled=this.b.Q,d.imageSmoothingEnabled=this.b.Q));d.globalAlpha=1;d.globalCompositeOperation="source-over";
this.b.oh&&!this.Ck()&&d.clearRect(0,0,this.b.L,this.b.K);var g,k,e=0;for(g=this.O.length;e<g;e++)k=this.O[e],k.visible&&0<k.opacity&&11!==k.Qa&&k.Cb(d);h&&c.drawImage(a,0,0,this.b.width,this.b.height)};f.prototype.ib=function(c){var a=0<this.P.length||this.b.He||!this.b.Db;if(a){this.b.lb||(this.b.lb=c.Ac(this.b.L,this.b.K,this.b.Q));if(this.b.lb.Se!==this.b.L||this.b.lb.Re!==this.b.K)c.deleteTexture(this.b.lb),this.b.lb=c.Ac(this.b.L,this.b.K,this.b.Q);c.pc(this.b.lb);this.b.Db||c.Be(this.b.L,this.b.K)}else this.b.lb&&
(c.pc(null),c.deleteTexture(this.b.lb),this.b.lb=null);this.b.oh&&!this.Ck()&&c.clear(0,0,0,0);var d,e;d=0;for(e=this.O.length;d<e;d++)this.O[d].visible&&0<this.O[d].opacity&&this.O[d].ib(c);a&&(0===this.P.length||1===this.P.length&&this.b.Db?(1===this.P.length?(a=this.P[0].index,c.qc(this.P[0].Ea),c.Ae(null,1/this.b.L,1/this.b.K,0,0,1,1,this.scale,this.fa[a]),c.Dg(this.P[0].Ea)&&(this.b.U=!0)):c.qc(0),this.b.Db||c.Be(this.b.width,this.b.height),c.pc(null),c.Td(1),c.ob(this.b.lb),c.Dl(),c.nc(),c.tc(),
a=this.b.width/2,d=this.b.height/2,c.Fg(-a,d,a,d,a,-d,-a,-d),c.ob(null)):this.Ri(c,null,null,null))};f.prototype.$e=function(){return 0<this.P.length||this.b.He||!this.b.Db?this.b.lb:null};f.prototype.Ak=function(){var c=this.O[0].jb(),a,d,e;a=1;for(d=this.O.length;a<d;a++)e=this.O[a],(0!==e.Gb||0!==e.Hb)&&e.jb()<c&&(c=e.jb());return c};f.prototype.Bl=function(c){if(!this.Sl){var a=this.b.L*(1/this.Ak())/2;c>this.width-a&&(c=this.width-a);c<a&&(c=a)}this.scrollX!==c&&(this.scrollX=c,this.b.U=!0)};
f.prototype.Cl=function(c){if(!this.Sl){var a=this.b.K*(1/this.Ak())/2;c>this.height-a&&(c=this.height-a);c<a&&(c=a)}this.scrollY!==c&&(this.scrollY=c,this.b.U=!0)};f.prototype.Qm=function(){this.Bl(this.scrollX);this.Cl(this.scrollY)};f.prototype.Ri=function(c,a,d,e){var h=d?d.P:a?a.P:this.P,g=d?d.i.jb():a?a.jb():1,k=this.b.Ph,b,f,n,m,l=0,r=1,w,x=this.b.L,D=this.b.K,F=x/2,Y=D/2,E=a?a.hd:this.hd,B=a?a.Qi:this.Qi,q=0,y=0,z=0,M=0,I=x,ka=x,H=D,la=D,aa=n=0,pa=d?d.i.Ec():0;if(d){b=0;for(f=h.length;b<f;b++)n+=
c.ao(h[b].Ea),aa+=c.bo(h[b].Ea);b=d.Pa;q=a.V(b.left,b.top,!0,!0);z=a.V(b.left,b.top,!1,!0);I=a.V(b.right,b.bottom,!0,!0);H=a.V(b.right,b.bottom,!1,!0);0!==pa&&(a.V(b.right,b.top,!0,!0),a.V(b.right,b.top,!1,!0),a.V(b.left,b.bottom,!0,!0),a.V(b.left,b.bottom,!1,!0),m=ja(q,I),I=ia(q,I),q=m,m=ja(z,H),H=ia(z,H),z=m);q-=n;z-=aa;I+=n;H+=aa;B.left=q/x;B.top=1-z/D;B.right=I/x;B.bottom=1-H/D;y=q=K(q);M=z=K(z);ka=I=oa(I);la=H=oa(H);y-=n;M-=aa;ka+=n;la+=aa;0>q&&(q=0);0>z&&(z=0);I>x&&(I=x);H>D&&(H=D);0>y&&(y=
0);0>M&&(M=0);ka>x&&(ka=x);la>D&&(la=D);E.left=q/x;E.top=1-z/D;E.right=I/x;E.bottom=1-H/D}else E.left=B.left=0,E.top=B.top=0,E.right=B.right=1,E.bottom=B.bottom=1;aa=d&&((d.j||pa)&&c.yf(h[0].Ea)||0!==n||0!==aa||1!==d.opacity||d.type.$.el)||a&&!d&&1!==a.opacity;c.Dl();if(aa){k[l]||(k[l]=c.Ac(x,D,this.b.Q));if(k[l].Se!==x||k[l].Re!==D)c.deleteTexture(k[l]),k[l]=c.Ac(x,D,this.b.Q);c.qc(0);c.pc(k[l]);w=la-M;c.clearRect(y,D-M-w,ka-y,w);d?d.ib(c):(c.ob(this.b.zb),c.Td(a.opacity),c.nc(),c.translate(-F,-Y),
c.tc(),c.mc(q,H,I,H,I,z,q,z,E));B.left=B.top=0;B.right=B.bottom=1;d&&(m=E.top,E.top=E.bottom,E.bottom=m);l=1;r=0}c.Td(1);n=h.length-1;var pa=c.Li(h[n].Ea)||!a&&!d&&!this.b.Db,qa=0;b=0;for(f=h.length;b<f;b++){k[l]||(k[l]=c.Ac(x,D,this.b.Q));if(k[l].Se!==x||k[l].Re!==D)c.deleteTexture(k[l]),k[l]=c.Ac(x,D,this.b.Q);c.qc(h[b].Ea);qa=h[b].index;c.Dg(h[b].Ea)&&(this.b.U=!0);0!=b||aa?(c.Ae(e,1/x,1/D,B.left,B.top,B.right,B.bottom,g,d?d.fa[qa]:a?a.fa[qa]:this.fa[qa]),c.ob(null),b!==n||pa?(c.pc(k[l]),w=la-
M,m=D-M-w,c.clearRect(y,m,ka-y,w)):(d?c.kd(d.Ja,d.Ia):a&&c.kd(a.Ja,a.Ia),c.pc(e)),c.ob(k[r]),c.nc(),c.translate(-F,-Y),c.tc(),c.mc(q,H,I,H,I,z,q,z,E),b!==n||pa||c.ob(null)):(c.pc(k[l]),w=la-M,m=D-M-w,c.clearRect(y,m,ka-y,w),d?(c.Ae(e,1/d.width,1/d.height,B.left,B.top,B.right,B.bottom,g,d.fa[qa]),d.ib(c)):(c.Ae(e,1/x,1/D,0,0,1,1,g,a?a.fa[qa]:this.fa[qa]),c.ob(a?this.b.zb:this.b.lb),c.nc(),c.translate(-F,-Y),c.tc(),c.mc(q,H,I,H,I,z,q,z,E)),B.left=B.top=0,B.right=B.bottom=1,d&&!pa&&(m=H,H=z,z=m));l=
0===l?1:0;r=0===l?1:0}pa&&(c.qc(0),d?c.kd(d.Ja,d.Ia):a?c.kd(a.Ja,a.Ia):this.b.Db||(c.Be(this.b.width,this.b.height),F=this.b.width/2,Y=this.b.height/2,z=q=0,I=this.b.width,H=this.b.height),c.pc(e),c.ob(k[r]),c.nc(),c.translate(-F,-Y),c.tc(),d&&1===h.length&&!aa?c.mc(q,z,I,z,I,H,q,H,E):c.mc(q,H,I,H,I,z,q,z,E),c.ob(null))};f.prototype.dg=function(c){var a,d;a=0;for(d=this.O.length;a<d;a++)if(this.O[a].N===c)return this.O[a];return null};f.prototype.Ab=function(){var c,a,d,e={sx:this.scrollX,sy:this.scrollY,
s:this.scale,a:this.j,w:this.width,h:this.height,fv:this.Ze,persist:this.gd,fx:[],layers:{}};c=0;for(a=this.F.length;c<a;c++)d=this.F[c],e.fx.push({name:d.name,active:d.xc,params:this.fa[d.index]});c=0;for(a=this.O.length;c<a;c++)d=this.O[c],e.layers[d.N.toString()]=d.Ab();return e};f.prototype.Rb=function(c){var a,d,e,h;this.scrollX=c.sx;this.scrollY=c.sy;this.scale=c.s;this.j=c.a;this.width=c.w;this.height=c.h;this.gd=c.persist;"undefined"!==typeof c.fv&&(this.Ze=c.fv);var g=c.fx;a=0;for(d=g.length;a<
d;a++)if(e=this.Sh(g[a].name))e.xc=g[a].active,this.fa[e.index]=g[a].params;this.Oc();a=c.layers;for(h in a)a.hasOwnProperty(h)&&(c=this.dg(parseInt(h,10)))&&c.Rb(a[h])};mb=f;l.prototype.Oc=function(){this.P.length=0;var c,a,d;c=0;for(a=this.F.length;c<a;c++)d=this.F[c],d.xc&&this.P.push(d)};l.prototype.Sh=function(c){var a,d,e;a=0;for(d=this.F.length;a<d;a++)if(e=this.F[a],e.name===c)return e;return null};l.prototype.Ym=function(){var c,a,d,e,h,g;a=c=0;for(d=this.me.length;c<d;c++){e=this.me[c];
h=this.b.n[e[1]];g=this.b.nj(h);h=!0;if(!g||this.W.Ze)e=this.b.xd(e,this,!0),m.push(e),e.type.global&&(h=!1);h&&(this.me[a]=this.me[c],a++)}this.me.length=a;this.b.Ha();!this.b.q&&this.F.length&&(this.Qa=this.on);this.Ue=Sa(this.Qa);this.b.m&&Ta(this,this.Qa,this.b.m)};l.prototype.tp=function(){if(this.ub){var c,a;c=0;for(a=this.d.length;c<a;c++)this.d[c].Xd=c;this.ub=!1}};l.prototype.jb=function(c){return this.Zn()*(this.b.Db||c?this.b.Qe:1)};l.prototype.Zn=function(){return(this.scale*this.W.scale-
1)*this.$a+1};l.prototype.Ec=function(){return this.yd?0:Da(this.W.j+this.j)};l.prototype.Cb=function(c){this.jd=this.Mh||1!==this.opacity||0!==this.Qa;var a=this.b.canvas,d=c,e=!1;c.globalAlpha=1;c.globalCompositeOperation="source-over";this.jd&&(this.b.rg||(this.b.rg=document.createElement("canvas"),a=this.b.rg,a.width=this.b.L,a.height=this.b.K,this.b.Xk=a.getContext("2d"),e=!0),a=this.b.rg,d=this.b.Xk,a.width!==this.b.L&&(a.width=this.b.L,e=!0),a.height!==this.b.K&&(a.height=this.b.K,e=!0),e&&
(d.webkitImageSmoothingEnabled=this.b.Q,d.mozImageSmoothingEnabled=this.b.Q,d.msImageSmoothingEnabled=this.b.Q,d.imageSmoothingEnabled=this.b.Q),this.Vd&&d.clearRect(0,0,this.b.L,this.b.K));this.Vd||(d.fillStyle="rgb("+this.Vc[0]+","+this.Vc[1]+","+this.Vc[2]+")",d.fillRect(0,0,this.b.L,this.b.K));d.save();this.yd=!0;var e=this.Ba(0,0,!0,!0),h=this.Ba(0,0,!1,!0);this.yd=!1;this.b.lc&&(e=e+0.5|0,h=h+0.5|0);this.Ti(e,h,d);var g=this.jb();d.scale(g,g);d.translate(-e,-h);for(var k,e=0,h=this.d.length;e<
h;e++)g=this.d[e],g.visible&&0!==g.width&&0!==g.height&&(g.Xa(),k=g.Pa,k.right<this.sb||k.bottom<this.Ya||k.left>this.tb||k.top>this.rb||(d.globalCompositeOperation=g.Ue,g.Cb(d)));d.restore();this.jd&&(c.globalCompositeOperation=this.Ue,c.globalAlpha=this.opacity,c.drawImage(a,0,0))};l.prototype.Ti=function(c,a,d){var e=this.jb();this.sb=c;this.Ya=a;this.tb=c+this.b.L*(1/e);this.rb=a+this.b.K*(1/e);c=this.Ec();0!==c&&(d&&(d.translate(this.b.L/2,this.b.K/2),d.rotate(-c),d.translate(this.b.L/-2,this.b.K/
-2)),this.Nc.set(this.sb,this.Ya,this.tb,this.rb),this.Nc.offset((this.sb+this.tb)/-2,(this.Ya+this.rb)/-2),this.Ll.El(this.Nc,c),this.Ll.ak(this.Nc),this.Nc.offset((this.sb+this.tb)/2,(this.Ya+this.rb)/2),this.sb=this.Nc.left,this.Ya=this.Nc.top,this.tb=this.Nc.right,this.rb=this.Nc.bottom)};l.prototype.ib=function(c){var a=this.b.L,d=this.b.K,e=0,h=0;if(this.jd=this.Mh||1!==this.opacity||0<this.P.length||0!==this.Qa){this.b.zb||(this.b.zb=c.Ac(this.b.L,this.b.K,this.b.Q));if(this.b.zb.Se!==this.b.L||
this.b.zb.Re!==this.b.K)c.deleteTexture(this.b.zb),this.b.zb=c.Ac(this.b.L,this.b.K,this.b.Q);c.pc(this.b.zb);this.Vd&&c.clear(0,0,0,0)}this.Vd||c.clear(this.Vc[0]/255,this.Vc[1]/255,this.Vc[2]/255,1);this.yd=!0;var h=this.Ba(0,0,!0,!0),g=this.Ba(0,0,!1,!0);this.yd=!1;this.b.lc&&(h=h+0.5|0,g=g+0.5|0);this.Ti(h,g,null);g=this.jb();c.nc();c.scale(g,g);c.Ui(-this.Ec());c.translate((this.sb+this.tb)/-2,(this.Ya+this.rb)/-2);c.tc();var k,b,f;k=0;for(b=this.d.length;k<b;k++)if(f=this.d[k],f.visible&&0!==
f.width&&0!==f.height&&(f.Xa(),e=f.Pa,!(e.right<this.sb||e.bottom<this.Ya||e.left>this.tb||e.top>this.rb)))if(f.Ul)if(e=f.P[0].Ea,h=f.P[0].index,1!==f.P.length||c.Li(e)||c.$o(e)||(f.j||f.i.Ec())&&c.yf(e)||1!==f.opacity||f.type.$.el)this.W.Ri(c,this,f,this.jd?this.b.zb:this.W.$e()),c.nc(),c.scale(g,g),c.Ui(-this.Ec()),c.translate((this.sb+this.tb)/-2,(this.Ya+this.rb)/-2),c.tc();else{c.qc(e);c.kd(f.Ja,f.Ia);c.Dg(e)&&(this.b.U=!0);var n=0,m=0,l=0,r=0;c.yf(e)&&(e=f.Pa,n=this.V(e.left,e.top,!0,!0),m=
this.V(e.left,e.top,!1,!0),l=this.V(e.right,e.bottom,!0,!0),e=this.V(e.right,e.bottom,!1,!0),n/=a,m=1-m/d,l/=a,r=1-e/d);c.Ae(this.jd?this.b.zb:this.W.$e(),1/f.width,1/f.height,n,m,l,r,this.jb(),f.fa[h]);f.ib(c)}else c.qc(0),c.kd(f.Ja,f.Ia),f.ib(c);this.jd&&(e=this.P.length?this.P[0].Ea:0,h=this.P.length?this.P[0].index:0,0===this.P.length||1===this.P.length&&!c.Li(e)&&1===this.opacity?(1===this.P.length?(c.qc(e),c.Ae(this.W.$e(),1/this.b.L,1/this.b.K,0,0,1,1,this.jb(),this.fa[h]),c.Dg(e)&&(this.b.U=
!0)):c.qc(0),c.pc(this.W.$e()),c.Td(this.opacity),c.ob(this.b.zb),c.kd(this.Ja,this.Ia),c.nc(),c.tc(),a=this.b.L/2,d=this.b.K/2,c.Fg(-a,d,a,d,a,-d,-a,-d),c.ob(null)):this.W.Ri(c,this,null,this.W.$e()))};l.prototype.Ba=function(c,a,d,e){var h=this.b.devicePixelRatio;this.b.Hd&&(c*=h,a*=h);var h=this.b.ta/2,g=this.b.ra/2,h=(this.W.scrollX-h)*this.Gb+h,g=(this.W.scrollY-g)*this.Hb+g,k=1/this.jb(!e);e?(h-=this.b.L*k/2,g-=this.b.K*k/2):(h-=this.b.width*k/2,g-=this.b.height*k/2);h+=c*k;g+=a*k;a=this.Ec();
0!==a&&(h-=this.W.scrollX,g-=this.W.scrollY,c=Math.cos(a),a=Math.sin(a),e=h*c-g*a,g=g*c+h*a,h=e+this.W.scrollX,g+=this.W.scrollY);return d?h:g};l.prototype.V=function(c,a,d,e){var h=this.Ec();if(0!==h){c-=this.W.scrollX;a-=this.W.scrollY;var g=Math.cos(-h),h=Math.sin(-h),k=c*g-a*h;a=a*g+c*h;c=k+this.W.scrollX;a+=this.W.scrollY}g=this.b.ta/2;h=this.b.ra/2;g=(this.W.scrollX-g)*this.Gb+g;h=(this.W.scrollY-h)*this.Hb+h;k=1/this.jb(!e);e?(g-=this.b.L*k/2,h-=this.b.K*k/2):(g-=this.b.width*k/2,h-=this.b.height*
k/2);g=(c-g)/k;h=(a-h)/k;c=this.b.devicePixelRatio;this.b.Hd&&(g/=c,h/=c);return d?g:h};l.prototype.Ab=function(){var c,a,d,e={s:this.scale,a:this.j,vl:this.sb,vt:this.Ya,vr:this.tb,vb:this.rb,v:this.visible,bc:this.Vc,t:this.Vd,px:this.Gb,py:this.Hb,o:this.opacity,zr:this.$a,fx:[],instances:[]};c=0;for(a=this.F.length;c<a;c++)d=this.F[c],e.fx.push({name:d.name,active:d.xc,params:this.fa[d.index]});return e};l.prototype.Rb=function(c){var a,d;this.scale=c.s;this.j=c.a;this.sb=c.vl;this.Ya=c.vt;this.tb=
c.vr;this.rb=c.vb;this.visible=c.v;this.Vc=c.bc;this.Vd=c.t;this.Gb=c.px;this.Hb=c.py;this.opacity=c.o;this.$a=c.zr;var f=c.fx;c=0;for(a=f.length;c<a;c++)if(d=this.Sh(f[c].name))d.xc=f[c].active,this.fa[d.index]=f[c].params;this.Oc();this.d.sort(e);this.ub=!0};yb=l})();
(function(){function f(b,a){var d,c=b.length;switch(c){case 0:return!0;case 1:return b[0]===a[0];case 2:return b[0]===a[0]&&b[1]===a[1];default:for(d=0;d<c;d++)if(b[d]!==a[d])return!1;return!0}}function l(b,a){return b.index-a.index}function e(b){var a,d,c,g;2===b.length?b[0].index>b[1].index&&(a=b[0],b[0]=b[1],b[1]=a):2<b.length&&b.sort(l);b.length>=n.length&&(n.length=b.length+1);n[b.length]||(n[b.length]=[]);g=n[b.length];a=0;for(d=g.length;a<d;a++)if(c=g[a],f(b,c))return c;g.push(b);return b}
function m(b,a){this.b=b;this.Ol={};this.pk={};this.Yh=!1;this.Fk=new da;this.name=a[0];var d=a[1];this.$c=[];var c,g;c=0;for(g=d.length;c<g;c++)this.Hk(d[c],null,this.$c)}function c(b){this.type=b;this.d=[];this.S=[];this.aa=!0}function a(b,a,d){this.sheet=b;this.parent=a;this.b=b.b;this.ba=[];this.ld=[];this.Dk=this.Ug=this.kj=this.ig=this.group=this.Hl=!1;this.ia=[];this.Lb=[];this.Kb=[];d[1]?(this.le=d[1][1].toLowerCase(),this.group=!0,this.ig=!!d[1][0],this.b.Tc.push(this),this.b.rd[this.le.toLowerCase()]=
this.ig):(this.le="",this.ig=this.group=!1);this.kc=d[2];this.N=d[4];this.group||(this.b.$j[this.N.toString()]=this);var c=d[5];b=0;for(a=c.length;b<a;b++){var g=new zb(this,c[b]);g.index=b;this.ia.push(g);this.Qj(g.type)}c=d[6];b=0;for(a=c.length;b<a;b++)g=new Ab(this,c[b]),g.index=b,this.Lb.push(g);if(8===d.length)for(d=d[7],b=0,a=d.length;b<a;b++)this.sheet.Hk(d[b],this,this.Kb);this.lg=!1;this.ia.length&&(this.lg=null==this.ia[0].type&&this.ia[0].ma==S.prototype.e.uj)}function d(b,a){var d,c,
g;if(b&&(-1===a.indexOf(b)&&a.push(b),b.Pb))for(d=0,c=b.Sa.length;d<c;d++)g=b.Sa[d],b!==g&&-1===a.indexOf(g)&&a.push(g)}function p(b,a){this.wb=b;this.sheet=b.sheet;this.b=b.b;this.u=[];this.H=[];this.ga={};this.index=-1;this.ma=a[1];this.trigger=0<a[3];this.ok=2===a[3];this.Gd=a[5];this.Lo=a[6];this.N=a[7];this.b.fe[this.N.toString()]=this;-1===a[0]?(this.type=null,this.wa=this.Xi,this.ud=null,this.Aa=-1):(this.type=this.b.n[a[0]],this.wa=this.Lo?this.hp:this.Wi,a[2]?(this.ud=this.type.cg(a[2]),
this.Aa=this.type.Qh(a[2])):(this.ud=null,this.Aa=-1),this.wb.parent&&this.wb.parent.Kg());this.ok&&(this.wa=this.ip);if(10===a.length){var d,c,g=a[9];d=0;for(c=g.length;d<c;d++){var e=new Bb(this,g[d]);this.u.push(e)}this.H.length=g.length}}function h(b,a){this.wb=b;this.sheet=b.sheet;this.b=b.b;this.u=[];this.H=[];this.ga={};this.index=-1;this.ma=a[1];-1===a[0]?(this.type=null,this.wa=this.Xi,this.ud=null,this.Aa=-1):(this.type=this.b.n[a[0]],this.wa=this.Wi,a[2]?(this.ud=this.type.cg(a[2]),this.Aa=
this.type.Qh(a[2])):(this.ud=null,this.Aa=-1));this.N=a[3];this.b.$d[this.N.toString()]=this;if(6===a.length){var d,c,g=a[5];d=0;for(c=g.length;d<c;d++){var e=new Bb(this,g[d]);this.u.push(e)}this.H.length=g.length}}function g(b,a){this.B=b;this.wb=b.wb;this.sheet=b.sheet;this.b=b.b;this.type=a[0];this.cc=null;this.fk=this.md=0;this.W=null;this.key=0;this.object=null;this.index=0;this.Zg=this.Ee=this.qk=this.Ad=this.Jf=null;var d,c,g;switch(a[0]){case 0:case 7:this.cc=new Q(this,a[1]);this.md=0;this.get=
this.jo;break;case 1:this.cc=new Q(this,a[1]);this.md=0;this.get=this.ko;break;case 5:this.cc=new Q(this,a[1]);this.md=0;this.get=this.oo;break;case 3:case 8:this.fk=a[1];this.get=this.ho;break;case 6:this.W=this.b.ki[a[1]];this.get=this.po;break;case 9:this.key=a[1];this.get=this.no;break;case 4:this.object=this.b.n[a[1]];this.get=this.qo;this.wb.Qj(this.object);this.B instanceof Ab?this.wb.Kg():this.wb.parent&&this.wb.parent.Kg();break;case 10:this.index=a[1];this.get=b.type.G?this.lo:this.mo;break;
case 11:this.Jf=a[1];this.Ad=null;this.get=this.io;break;case 2:case 12:this.qk=a[1];this.get=this.fo;break;case 13:for(this.get=this.ro,this.Ee=[],this.Zg=[],d=1,c=a.length;d<c;d++)g=new Bb(this.B,a[d]),this.Ee.push(g),this.Zg.push(0)}}function k(b,a,d){this.sheet=b;this.parent=a;this.b=b.b;this.ba=[];this.name=d[1];this.Vl=d[2];this.hg=d[3];this.hf=!!d[4];this.kg=!!d[5];this.N=d[6];this.b.Ie[this.N.toString()]=this;this.data=this.hg;this.parent?(this.Pd=this.hf||this.kg?-1:this.b.lp++,this.b.Mm.push(this)):
(this.Pd=-1,this.b.nh.push(this))}function b(b,a,d){this.sheet=b;this.parent=a;this.b=b.b;this.ba=[];this.cf=null;this.wo=d[1]}function t(){this.Il=[];this.reset(null)}var n=[];m.prototype.toString=ba("name");m.prototype.Hk=function(b,a,d){switch(b[0]){case 0:b=new Cb(this,a,b);if(b.kc)for(d.push(b),d=0,a=b.ia.length;d<a;d++)b.ia[d].trigger&&this.Ik(b,d);else b.Pk()?this.Ik(b,0):d.push(b);break;case 1:b=new vb(this,a,b);d.push(b);break;case 2:b=new Db(this,a,b),d.push(b)}};m.prototype.ja=function(){var b,
a;b=0;for(a=this.$c.length;b<a;b++)this.$c[b].ja(b<a-1&&this.$c[b+1].lg)};m.prototype.wa=function(b){this.b.cr||(this.Yh=!0,b||(this.b.di=!0));var a,d;a=0;for(d=this.$c.length;a<d;a++){var c=this.$c[a];c.wa();this.b.zh(c.ba);this.b.$b.ad()&&!this.b.hb.length||this.b.Ha()}b||(this.b.di=!1)};m.prototype.Ik=function(b,a){b.kc||this.b.Wg.push(b);var d,c,g=b.ia[a],e;e=g.type?g.type.name:"system";var h=(d=g.ok)?this.pk:this.Ol;h[e]||(h[e]=[]);e=h[e];h=g.ma;if(d){if(g.u.length&&(g=g.u[0],1===g.type&&2===
g.cc.type)){g=g.cc.value.toLowerCase();d=0;for(c=e.length;d<c;d++)if(e[d].method==h){d=e[d].Xf;d[g]?d[g].push([b,a]):d[g]=[[b,a]];return}d={};d[g]=[[b,a]];e.push({method:h,Xf:d})}}else{d=0;for(c=e.length;d<c;d++)if(e[d].method==h){e[d].Xf.push([b,a]);return}e.push({method:h,Xf:[[b,a]]})}};nb=m;c.prototype.Xh=function(){return this.aa?this.type.d.length:this.d.length};c.prototype.gc=function(){return this.aa?this.type.d:this.d};c.prototype.xf=function(b){b&&(b.b.Ua().xb.kc?(this.aa&&(this.d.length=
0,za(this.S,b.type.d),this.aa=!1),b=this.S.indexOf(b),-1!==b&&(this.d.push(this.S[b]),this.S.splice(b,1))):(this.aa=!1,this.d.length=1,this.d[0]=b))};Xa=c;a.prototype.ja=function(b){var a,d=this.parent;if(this.group)for(this.Ug=!0;d;){if(!d.group){this.Ug=!1;break}d=d.parent}this.kj=!this.Pk()&&(!this.parent||this.parent.group&&this.parent.Ug);this.Dk=!!b;this.ld=this.ba.slice(0);for(d=this.parent;d;){b=0;for(a=d.ba.length;b<a;b++)this.Km(d.ba[b]);d=d.parent}this.ba=e(this.ba);this.ld=e(this.ld);
b=0;for(a=this.ia.length;b<a;b++)this.ia[b].ja();b=0;for(a=this.Lb.length;b<a;b++)this.Lb[b].ja();b=0;for(a=this.Kb.length;b<a;b++)this.Kb[b].ja(b<a-1&&this.Kb[b+1].lg)};a.prototype.Qj=function(b){d(b,this.ba)};a.prototype.Km=function(b){d(b,this.ld)};a.prototype.Kg=function(){this.Hl=!0;this.parent&&this.parent.Kg()};a.prototype.Pk=function(){return this.ia.length?this.ia[0].trigger:!1};a.prototype.wa=function(){var b,a=!1,d,c=this.b.Ua();c.xb=this;this.lg||(c.Hh=!1);if(this.kc){0===this.ia.length&&
(a=!0);c.Ra=0;for(b=this.ia.length;c.Ra<b;c.Ra++)this.ia[c.Ra].trigger||(d=this.ia[c.Ra].wa())&&(a=!0);(c.Ld=a)&&this.Vi()}else{c.Ra=0;for(b=this.ia.length;c.Ra<b;c.Ra++)if(d=this.ia[c.Ra].wa(),!d){c.Ld=!1;!this.kj||this.b.$b.ad()&&!this.b.hb.length||this.b.Ha();return}c.Ld=!0;this.Vi()}this.qn(c)};a.prototype.qn=function(b){b.Ld&&this.Dk&&(b.Hh=!0);!this.kj||this.b.$b.ad()&&!this.b.hb.length||this.b.Ha()};a.prototype.fp=function(b){this.b.Ua().xb=this;this.ia[b].wa()&&(this.Vi(),this.b.Ua().Ld=!0)};
a.prototype.Vi=function(){var b=this.b.Ua(),a;b.ab=0;for(a=this.Lb.length;b.ab<a;b.ab++)if(this.Lb[b.ab].wa())return;this.Al()};a.prototype.dp=function(){var b=this.b.Ua(),a;for(a=this.Lb.length;b.ab<a;b.ab++)if(this.Lb[b.ab].wa())return;this.Al()};a.prototype.Al=function(){if(this.Kb.length){var b,a,d,c,g=this.Kb.length-1;this.b.Ni(this);if(this.Hl)for(b=0,a=this.Kb.length;b<a;b++)d=this.Kb[b],(c=!this.Ug||!this.group&&b<g)&&this.b.Mi(d.ba),d.wa(),c?this.b.xe(d.ba):this.b.zh(d.ba);else for(b=0,a=
this.Kb.length;b<a;b++)this.Kb[b].wa();this.b.rl()}};a.prototype.gp=function(){var b=this.b.Ua();b.xb=this;var a=!1,d;b.Ra=0;for(d=this.ia.length;b.Ra<d;b.Ra++)if(this.ia[b.Ra].wa())a=!0;else if(!this.kc)return!1;return this.kc?a:!0};a.prototype.Go=function(b){var a=b.index;if(0===a)return!0;for(--a;0<=a;--a)if(this.ia[a].type===b.type)return!1;return!0};Cb=a;p.prototype.ja=function(){var b,a;b=0;for(a=this.u.length;b<a;b++)this.u[b].ja()};p.prototype.ip=A(!0);p.prototype.Xi=function(){var b,a;b=
0;for(a=this.u.length;b<a;b++)this.H[b]=this.u[b].get();return La(this.ma.apply(this.b.rc,this.H),this.Gd)};p.prototype.hp=function(){var b,a;b=0;for(a=this.u.length;b<a;b++)this.H[b]=this.u[b].get(b);b=this.ma.apply(this.ud?this.ud:this.type,this.H);this.type.Uc();return b};p.prototype.Wi=function(){var b,a,d,c,g,e,h,k=this.type.Z(),f=this.wb.kc&&!this.trigger,n=0,m=this.type.Pb;if(k.aa){k.d.length=0;b=k.S.length=0;for(d=this.type.d.length;b<d;b++){e=this.type.d[b];a=0;for(c=this.u.length;a<c;a++)this.H[a]=
this.u[a].get(b);-1<this.Aa?(this.type.G&&(n=e.type.je[this.type.ec]),a=this.ma.apply(e.I[this.Aa+n],this.H)):a=this.ma.apply(e,this.H);(g=La(a,this.Gd))?k.d.push(e):f&&k.S.push(e)}this.type.finish&&this.type.finish(!0);k.aa=!1;this.type.Uc();return k.Xh()}var l=0,t=(g=f&&!this.wb.Go(this))?k.S:k.d,u=!1;b=0;for(d=t.length;b<d;b++){e=t[b];a=0;for(c=this.u.length;a<c;a++)this.H[a]=this.u[a].get(b);-1<this.Aa?(this.type.G&&(n=e.type.je[this.type.ec]),a=this.ma.apply(e.I[this.Aa+n],this.H)):a=this.ma.apply(e,
this.H);if(La(a,this.Gd))if(u=!0,g){if(k.d.push(e),m)for(a=0,c=e.siblings.length;a<c;a++)h=e.siblings[a],h.type.Z().d.push(h)}else{t[l]=e;if(m)for(a=0,c=e.siblings.length;a<c;a++)h=e.siblings[a],h.type.Z().d[l]=h;l++}else if(g){t[l]=e;if(m)for(a=0,c=e.siblings.length;a<c;a++)h=e.siblings[a],h.type.Z().S[l]=h;l++}else if(f&&(k.S.push(e),m))for(a=0,c=e.siblings.length;a<c;a++)h=e.siblings[a],h.type.Z().S.push(h)}t.length=l;if(m)for(b=0,d=this.type.Sa.length;b<d;b++)e=this.type.Sa[b].Z(),g?e.S.length=
l:e.d.length=l;n=u;if(g&&!u)for(b=0,d=k.d.length;b<d;b++){e=k.d[b];a=0;for(c=this.u.length;a<c;a++)this.H[a]=this.u[a].get(b);a=-1<this.Aa?this.ma.apply(e.I[this.Aa],this.H):this.ma.apply(e,this.H);if(La(a,this.Gd)){u=!0;break}}this.type.finish&&this.type.finish(n||f);return f?u:k.Xh()};zb=p;h.prototype.ja=function(){var b,a;b=0;for(a=this.u.length;b<a;b++)this.u[b].ja()};h.prototype.Xi=function(){var b,a;b=0;for(a=this.u.length;b<a;b++)this.H[b]=this.u[b].get();return this.ma.apply(this.b.rc,this.H)};
h.prototype.Wi=function(){var b=this.type.Z().gc(),a,d,c,g,e;a=0;for(c=b.length;a<c;a++){e=b[a];d=0;for(g=this.u.length;d<g;d++)this.H[d]=this.u[d].get(a);-1<this.Aa?(d=0,this.type.G&&(d=e.type.je[this.type.ec]),this.ma.apply(e.I[this.Aa+d],this.H)):this.ma.apply(e,this.H)}return!1};Ab=h;var v=[],u=-1;g.prototype.ja=function(){var b,a;if(11===this.type)this.Ad=this.b.xk(this.Jf,this.wb.parent);else if(13===this.type)for(b=0,a=this.Ee.length;b<a;b++)this.Ee[b].ja();this.cc&&this.cc.ja()};g.prototype.ua=
function(){u++;v.length===u&&v.push(new Eb);return v[u]};g.prototype.na=function(){u--};g.prototype.jo=function(b){this.md=b||0;b=this.ua();this.cc.get(b);this.na();return b.data};g.prototype.ko=function(b){this.md=b||0;b=this.ua();this.cc.get(b);this.na();return J(b.data)?b.data:""};g.prototype.qo=ba("object");g.prototype.ho=ba("fk");g.prototype.oo=function(b){this.md=b||0;b=this.ua();this.cc.get(b);this.na();return b.ya()?this.b.fc(b.data):this.b.ke(b.data)};g.prototype.po=ba("W");g.prototype.no=
ba("key");g.prototype.mo=ba("index");g.prototype.lo=function(b){var a=this.B.type,d=null,d=a.Z(),c=d.gc(),d=c.length?c[b%c.length].type:d.S[b%d.S.length].type;return this.index+d.Zf[a.ec]};g.prototype.io=ba("Ad");g.prototype.fo=ba("qk");g.prototype.ro=function(){var b,a;b=0;for(a=this.Ee.length;b<a;b++)this.Zg[b]=this.Ee[b].get();return this.Zg};Bb=g;k.prototype.ja=function(){this.ba=e(this.ba)};k.prototype.Lg=function(b){var a=this.b.vk();this.parent&&!this.hf&&a?(this.Pd>=a.length&&(a.length=this.Pd+
1),a[this.Pd]=b):this.data=b};k.prototype.eo=function(){var b=this.b.vk();return!this.parent||this.hf||!b||this.kg?this.data:this.Pd>=b.length||"undefined"===typeof b[this.Pd]?this.hg:b[this.Pd]};k.prototype.wa=function(){!this.parent||this.hf||this.kg||this.Lg(this.hg)};vb=k;b.prototype.toString=function(){return"include:"+this.cf.toString()};b.prototype.ja=function(){this.cf=this.b.Jh[this.wo];this.sheet.Fk.add(this);this.ba=e(this.ba)};b.prototype.wa=function(){this.parent&&this.b.Af(this.b.n);
this.cf.Yh||this.cf.wa(!0);this.parent&&this.b.xe(this.b.n)};b.prototype.zo=function(){for(var b=this.parent;b;){if(b.group&&!this.b.rd[b.le.toLowerCase()])return!1;b=b.parent}return!0};Db=b;t.prototype.reset=function(b){this.xb=b;this.ab=this.Ra=0;this.Il.length=0;this.Hh=this.Ld=!1};ub=t})();
(function(){function f(e,f){this.B=e;this.b=e.b;this.type=f[0];this.get=[this.Cn,this.yn,this.Kn,this.Nn,this.sn,this.Ln,this.Gn,this.vn,this.Fn,this.Jn,this.tn,this.In,this.wn,this.Hn,this.Dn,this.En,this.zn,this.An,this.un,this.Mn,this.mk,this.Bn,this.mk,this.xn][this.type];var c=null;this.nb=this.u=this.H=this.ma=this.Qg=this.za=this.first=this.value=null;this.Aa=-1;this.Fc=null;this.qj=-1;this.Ad=this.Jf=null;this.Bf=!1;switch(this.type){case 0:case 1:case 2:this.value=f[1];break;case 3:this.first=
new Q(e,f[1]);break;case 18:this.first=new Q(e,f[1]);this.za=new Q(e,f[2]);this.Qg=new Q(e,f[3]);break;case 19:this.ma=f[1];this.H=[];this.u=[];3===f.length?(c=f[2],this.H.length=c.length+1):this.H.length=1;break;case 20:this.nb=this.b.n[f[1]];this.Aa=-1;this.ma=f[2];this.Bf=f[3];this.Fc=f[4]?new Q(e,f[4]):null;this.H=[];this.u=[];6===f.length?(c=f[5],this.H.length=c.length+1):this.H.length=1;break;case 21:this.nb=this.b.n[f[1]];this.Bf=f[2];this.Fc=f[3]?new Q(e,f[3]):null;this.qj=f[4];break;case 22:this.nb=
this.b.n[f[1]];this.nb.cg(f[2]);this.Aa=this.nb.Qh(f[2]);this.ma=f[3];this.Bf=f[4];this.Fc=f[5]?new Q(e,f[5]):null;this.H=[];this.u=[];7===f.length?(c=f[6],this.H.length=c.length+1):this.H.length=1;break;case 23:this.Jf=f[1],this.Ad=null}4<=this.type&&17>=this.type&&(this.first=new Q(e,f[1]),this.za=new Q(e,f[2]));if(c){var a,d;a=0;for(d=c.length;a<d;a++)this.u.push(new Q(e,c[a]))}}function l(e,f){this.type=e||R.Le;this.data=f||0;this.ue=null;this.type==R.Le&&(this.data=Math.floor(this.data))}f.prototype.ja=
function(){23===this.type&&(this.Ad=this.B.b.xk(this.Jf,this.B.wb.parent));this.first&&this.first.ja();this.za&&this.za.ja();this.Qg&&this.Qg.ja();this.Fc&&this.Fc.ja();if(this.u){var e,f;e=0;for(f=this.u.length;e<f;e++)this.u[e].ja()}};f.prototype.Mn=function(e){this.H[0]=e;e=this.B.ua();var f,c;f=0;for(c=this.u.length;f<c;f++)this.u[f].get(e),this.H[f+1]=e.data;this.B.na();this.ma.apply(this.b.rc,this.H)};f.prototype.mk=function(e){var f=this.nb.Z(),c=f.gc();if(!c.length)if(f.S.length)c=f.S;else{this.Bf?
e.oa(""):e.X(0);return}this.H[0]=e;e.ue=this.nb;e=this.B.ua();var a,f=0;for(a=this.u.length;f<a;f++)this.u[f].get(e),this.H[f+1]=e.data;f=this.B.md;this.Fc&&(this.Fc.get(e),e.ya()&&(f=e.data,c=this.nb.d));this.B.na();f%=c.length;0>f&&(f+=c.length);c=c[f];-1<this.Aa?(e=0,this.nb.G&&(e=c.type.je[this.nb.ec]),this.ma.apply(c.I[this.Aa+e],this.H)):this.ma.apply(c,this.H)};f.prototype.Bn=function(e){var f=this.nb.Z(),c=f.gc();if(!c.length)if(f.S.length)c=f.S;else{this.Bf?e.oa(""):e.X(0);return}f=this.B.md;
if(this.Fc){var a=this.B.ua();this.Fc.get(a);if(a.ya()){f=a.data;c=this.nb.d;f%=c.length;0>f&&(f+=c.length);c=c[f].pa[this.qj];J(c)?e.oa(c):e.A(c);this.B.na();return}this.B.na()}f%=c.length;0>f&&(f+=c.length);c=c[f];f=0;this.nb.G&&(f=c.type.Zf[this.nb.ec]);c=c.pa[this.qj+f];J(c)?e.oa(c):e.A(c)};f.prototype.Cn=function(e){e.type=R.Le;e.data=this.value};f.prototype.yn=function(e){e.type=R.Ke;e.data=this.value};f.prototype.Kn=function(e){e.type=R.lh;e.data=this.value};f.prototype.Nn=function(e){this.first.get(e);
e.ya()&&(e.data=-e.data)};f.prototype.sn=function(e){this.first.get(e);var f=this.B.ua();this.za.get(f);e.ya()&&f.ya()&&(e.data+=f.data,f.oe()&&e.te());this.B.na()};f.prototype.Ln=function(e){this.first.get(e);var f=this.B.ua();this.za.get(f);e.ya()&&f.ya()&&(e.data-=f.data,f.oe()&&e.te());this.B.na()};f.prototype.Gn=function(e){this.first.get(e);var f=this.B.ua();this.za.get(f);e.ya()&&f.ya()&&(e.data*=f.data,f.oe()&&e.te());this.B.na()};f.prototype.vn=function(e){this.first.get(e);var f=this.B.ua();
this.za.get(f);e.ya()&&f.ya()&&(e.data/=f.data,e.te());this.B.na()};f.prototype.Fn=function(e){this.first.get(e);var f=this.B.ua();this.za.get(f);e.ya()&&f.ya()&&(e.data%=f.data,f.oe()&&e.te());this.B.na()};f.prototype.Jn=function(e){this.first.get(e);var f=this.B.ua();this.za.get(f);e.ya()&&f.ya()&&(e.data=Math.pow(e.data,f.data),f.oe()&&e.te());this.B.na()};f.prototype.tn=function(e){this.first.get(e);var f=this.B.ua();this.za.get(f);e.ya()?f.mg()?e.oa(e.data.toString()+f.data):e.data&&f.data?e.X(1):
e.X(0):e.mg()&&(e.data=f.mg()?e.data+f.data:e.data+(Math.round(1E10*f.data)/1E10).toString());this.B.na()};f.prototype.In=function(e){this.first.get(e);var f=this.B.ua();this.za.get(f);e.ya()&&f.ya()&&(e.data||f.data?e.X(1):e.X(0));this.B.na()};f.prototype.un=function(e){this.first.get(e);e.data?this.za.get(e):this.Qg.get(e)};f.prototype.wn=function(e){this.first.get(e);var f=this.B.ua();this.za.get(f);e.X(e.data===f.data?1:0);this.B.na()};f.prototype.Hn=function(e){this.first.get(e);var f=this.B.ua();
this.za.get(f);e.X(e.data!==f.data?1:0);this.B.na()};f.prototype.Dn=function(e){this.first.get(e);var f=this.B.ua();this.za.get(f);e.X(e.data<f.data?1:0);this.B.na()};f.prototype.En=function(e){this.first.get(e);var f=this.B.ua();this.za.get(f);e.X(e.data<=f.data?1:0);this.B.na()};f.prototype.zn=function(e){this.first.get(e);var f=this.B.ua();this.za.get(f);e.X(e.data>f.data?1:0);this.B.na()};f.prototype.An=function(e){this.first.get(e);var f=this.B.ua();this.za.get(f);e.X(e.data>=f.data?1:0);this.B.na()};
f.prototype.xn=function(e){var f=this.Ad.eo();G(f)?e.A(f):e.oa(f)};Q=f;l.prototype.oe=function(){return this.type===R.Ke};l.prototype.ya=function(){return this.type===R.Le||this.type===R.Ke};l.prototype.mg=function(){return this.type===R.lh};l.prototype.te=function(){this.oe()||(this.mg()&&(this.data=parseFloat(this.data)),this.type=R.Ke)};l.prototype.X=function(e){this.type=R.Le;this.data=Math.floor(e)};l.prototype.A=function(e){this.type=R.Ke;this.data=e};l.prototype.oa=function(e){this.type=R.lh;
this.data=e};Eb=l;R={Le:0,Ke:1,lh:2}})();function S(f){this.b=f;this.Za=[]}
S.prototype.Ab=function(){var f={},l,e,m,c,a,d,p,h;f.waits=[];var g=f.waits,k;l=0;for(e=this.Za.length;l<e;l++){d=this.Za[l];k={t:d.time,ev:d.he.N,sm:[],sols:{}};d.he.Lb[d.ab]&&(k.act=d.he.Lb[d.ab].N);m=0;for(c=d.ba.length;m<c;m++)k.sm.push(d.ba[m].N);for(a in d.Na)if(d.Na.hasOwnProperty(a)){p=this.b.n[parseInt(a,10)];h={sa:d.Na[a].Jg,insts:[]};m=0;for(c=d.Na[a].Gc.length;m<c;m++)h.insts.push(d.Na[a].Gc[m].uid);k.sols[p.N.toString()]=h}g.push(k)}return f};
S.prototype.Rb=function(f){f=f.waits;var l,e,m,c,a,d,p,h,g,k,b;l=this.Za.length=0;for(e=f.length;l<e;l++)if(d=f[l],h=this.b.$j[d.ev.toString()]){g=-1;m=0;for(c=h.Lb.length;m<c;m++)if(h.Lb[m].N===d.act){g=m;break}if(-1!==g){p={Na:{},ba:[],Gh:!1};p.time=d.t;p.he=h;p.ab=g;m=0;for(c=d.sm.length;m<c;m++)(h=this.b.eg(d.sm[m]))&&p.ba.push(h);for(a in d.sols)if(d.sols.hasOwnProperty(a)&&(h=this.b.eg(parseInt(a,10)))){g=d.sols[a];k={Jg:g.sa,Gc:[]};m=0;for(c=g.insts.length;m<c;m++)(b=this.b.Bk(g.insts[m]))&&
k.Gc.push(b);p.Na[h.index.toString()]=k}this.Za.push(p)}}};
(function(){function f(){}function l(){}function e(){}var m=S.prototype;f.prototype.$l=A(!0);f.prototype.eh=A(!0);f.prototype.lm=A(!0);f.prototype.$g=function(a,c,e){return Fb(a,c,e)};f.prototype.Pe=function(){var a=this.b.Rh().ga;"undefined"===typeof a.mh&&(a.mh=-1);var c=a.mh,e=this.b.sc;a.mh=e;return this.b.ji||c!==e-1};f.prototype.Qc=function(a){return this.b.rd[a.toLowerCase()]};f.prototype.uj=function(){var a=this.b.Ua();return a.Hh?!1:!a.Ld};f.prototype.zj=A(!0);f.prototype.gm=A(!0);f.prototype.gh=
A(!0);f.prototype.mm=A(!0);f.prototype.fh=A(!0);m.e=new f;l.prototype.ah=function(a){this.b.pe||this.b.wd||(this.b.wd=a)};l.prototype.Ij=function(a,c){0===a.Vl?G(c)?a.Lg(c):a.Lg(parseFloat(c)):1===a.Vl&&a.Lg(c.toString())};l.prototype.Ka=function(a,c){var e=this.b.rd,g=a.toLowerCase();switch(c){case 0:e[g]=!1;break;case 1:e[g]=!0;break;case 2:e[g]=!e[g]}};var c=[],a=[];l.prototype.Em=function(d){if(!(0>d)){var e,h,g,f=this.b.Ua(),b;b=c.length?c.pop():{Na:{},ba:[]};b.Gh=!1;b.time=this.b.Id.Oa+d;b.he=
f.xb;b.ab=f.ab+1;d=0;for(e=this.b.n.length;d<e;d++)g=this.b.n[d],h=g.Z(),h.aa&&-1===f.xb.ba.indexOf(g)||(b.ba.push(g),g=void 0,g=a.length?a.pop():{Gc:[]},g.Jg=!1,g.Jg=h.aa,za(g.Gc,h.d),b.Na[d.toString()]=g);this.Za.push(b);return!0}};l.prototype.xm=function(){var a,c,e;a=0;for(c=this.b.nh.length;a<c;a++)e=this.b.nh[a],e.data=e.hg};l.prototype.ym=function(){if(!this.b.pe&&!this.b.wd&&this.b.M){this.b.wd=this.b.M;var a,c,e;a=0;for(c=this.b.Tc.length;a<c;a++)e=this.b.Tc[a],this.b.rd[e.le.toLowerCase()]=
e.ig}};m.k=new l;e.prototype["int"]=function(a,c){J(c)?(a.X(parseInt(c,10)),isNaN(a.data)&&(a.data=0)):a.X(c)};e.prototype["float"]=function(a,c){J(c)?(a.A(parseFloat(c)),isNaN(a.data)&&(a.data=0)):a.A(c)};e.prototype.sqrt=function(a,c){a.A(Math.sqrt(c))};e.prototype.round=function(a,c){a.X(Math.round(c))};e.prototype.floor=function(a,c){a.X(Math.floor(c))};e.prototype.ceil=function(a,c){a.X(Math.ceil(c))};e.prototype.sin=function(a,c){a.A(Math.sin(N(c)))};e.prototype.cos=function(a,c){a.A(Math.cos(N(c)))};
e.prototype.tan=function(a,c){a.A(Math.tan(N(c)))};e.prototype.acos=function(a,c){a.A(Ba(Math.acos(c)))};e.prototype.max=function(a){var c=arguments[1],e,g;e=2;for(g=arguments.length;e<g;e++)c<arguments[e]&&(c=arguments[e]);a.A(c)};e.prototype.min=function(a){var c=arguments[1],e,g;e=2;for(g=arguments.length;e<g;e++)c>arguments[e]&&(c=arguments[e]);a.A(c)};e.prototype.ge=function(a){a.A(this.b.ge)};e.prototype.Hf=function(a){a.A(this.b.Hf)};e.prototype.time=function(a){a.A(this.b.Id.Oa)};e.prototype.sc=
function(a){a.X(this.b.sc)};e.prototype.xg=function(a){a.X(this.b.xg)};e.prototype.Nh=function(a){a.X(this.b.Nh)};e.prototype.j=function(a,c,e,g,f){a.A(Ba(Ga(c,e,g,f)))};e.prototype.left=function(a,c,e){a.oa(J(c)?c.substr(0,e):"")};e.prototype.right=function(a,c,e){a.oa(J(c)?c.substr(c.length-e):"")};e.prototype.pd=function(a,c,e,g){J(c)&&J(g)?(c=c.split(g),e=K(e),0>e||e>=c.length?a.oa(""):a.oa(c[e])):a.oa("")};e.prototype.replace=function(a,c,e,g){J(c)&&J(e)&&J(g)?a.oa(c.replace(RegExp(Pa(e),"gi"),
g)):a.oa(J(c)?c:"")};e.prototype.zl=function(a,c,e,g){a.X(ta(c,e,g))};e.prototype.Ah=function(a){a.A(this.b.Ah/1E3)};e.prototype.zp=function(a,c){var e=this.b.Yn(c);a.A(e?e.Ya:0)};e.prototype.Md=function(a){a.A(this.b.Md)};m.p=new e;m.ep=function(){var d,e,f,g,k,b,l=this.b.Ua();d=0;for(f=this.Za.length;d<f;d++)if(g=this.Za[d],!(g.time>this.b.Id.Oa)){l.xb=g.he;l.ab=g.ab;l.Ra=0;for(e in g.Na)g.Na.hasOwnProperty(e)&&(k=this.b.n[parseInt(e,10)].Z(),b=g.Na[e],k.aa=b.Jg,za(k.d,b.Gc),k=b,k.Gc.length=0,a.push(k));
g.he.dp();this.b.zh(g.ba);g.Gh=!0}e=d=0;for(f=this.Za.length;d<f;d++)g=this.Za[d],this.Za[e]=g,g.Gh?(Na(g.Na),g.ba.length=0,c.push(g)):e++;this.Za.length=e}})();
(function(){Wa=function(f){var e=f[0].prototype,m=f[1],c=f[3],a=f[4],d=f[5],p=f[6],h=f[7];f=f[8];e.e||(e.e={});e.k||(e.k={});e.p||(e.p={});var g=e.e,k=e.k,e=e.p;c&&(g.Kp=function(b,a){return Fb(this.x,b,a)},g.Lp=function(b,a){return Fb(this.y,b,a)},g.Xp=function(){var b=this.i;this.Xa();var a=this.Pa;return!(a.right<b.sb||a.bottom<b.Ya||a.left>b.tb||a.top>b.rb)},g.Yp=function(){this.Xa();var b=this.Pa,a=this.b.M;return 0>b.right||0>b.bottom||b.left>a.width||b.top>a.height},g.kq=function(b,a,d){var c=
this.Z(),e=c.gc();if(!e.length)return!1;var g=e[0],f=g,h=Ka(g.x,g.y,a,d),k,l,m;k=1;for(l=e.length;k<l;k++)if(g=e[k],m=Ka(g.x,g.y,a,d),0===b&&m<h||1===b&&m>h)h=m,f=g;c.xf(f);return!0},k.Iq=function(b){this.x!==b&&(this.x=b,this.Da())},k.Jq=function(b){this.y!==b&&(this.y=b,this.Da())},k.Am=function(b,a){if(this.x!==b||this.y!==a)this.x=b,this.y=a,this.Da()},k.Cq=function(b,a){var d=b.$n(this);if(d){var c;d.Uh?(c=d.Uh(a,!0),d=d.Uh(a,!1)):(c=d.x,d=d.y);if(this.x!==c||this.y!==d)this.x=c,this.y=d,this.Da()}},
k.cq=function(b){0!==b&&(this.x+=Math.cos(this.j)*b,this.y+=Math.sin(this.j)*b,this.Da())},k.bq=function(b,a){0!==a&&(this.x+=Math.cos(N(b))*a,this.y+=Math.sin(N(b))*a,this.Da())},e.Nf=function(b){b.A(this.x)},e.Kj=function(b){b.A(this.y)},e.ge=function(b){b.A(this.b.wk(this))});a&&(g.Jp=function(b,a){return Fb(this.width,b,a)},g.Gp=function(b,a){return Fb(this.height,b,a)},k.Bm=function(b){this.width!==b&&(this.width=b,this.Da())},k.yq=function(b){this.height!==b&&(this.height=b,this.Da())},k.Eq=
function(b,a){if(this.width!==b||this.height!==a)this.width=b,this.height=a,this.Da()},e.Nq=function(b){b.A(this.width)},e.Rp=function(b){b.A(this.height)},e.Dp=function(b){this.Xa();b.A(this.Pa.left)},e.Fp=function(b){this.Xa();b.A(this.Pa.top)},e.Ep=function(b){this.Xa();b.A(this.Pa.right)},e.Cp=function(b){this.Xa();b.A(this.Pa.bottom)});d&&(g.Bp=function(b,a){return Ha(this.j,N(a))<=N(b)},g.Vp=function(b){return Ja(this.j,N(b))},g.Tp=function(b,a){var d=Fa(b),c=Fa(a),e=Da(this.j);return Ja(c,
d)?Ja(e,d)&&!Ja(e,c):!(!Ja(e,d)&&Ja(e,c))},k.sq=function(b){b=N(Ca(b));isNaN(b)||this.j===b||(this.j=b,this.Da())},k.oq=function(b){0===b||isNaN(b)||(this.j+=N(b),this.j=Da(this.j),this.Da())},k.pq=function(b){0===b||isNaN(b)||(this.j-=N(b),this.j=Da(this.j),this.Da())},k.qq=function(b,a){var d=Ia(this.j,N(a),N(b));isNaN(d)||this.j===d||(this.j=d,this.Da())},k.rq=function(b,a,d){b=Ia(this.j,Math.atan2(d-this.y,a-this.x),N(b));isNaN(b)||this.j===b||(this.j=b,this.Da())},k.Hq=function(b,a){var d=Math.atan2(a-
this.y,b-this.x);isNaN(d)||this.j===d||(this.j=d,this.Da())},e.Ap=function(b){b.A(Ea(this.j))});m||(g.Lf=function(b,a,d){return Fb(this.pa[b],a,d)},g.Up=function(b){return this.pa[b]},g.lq=function(b,a){var d=this.Z(),c=d.gc();if(!c.length)return!1;var e=c[0],g=e,f=e.pa[a],h,k,l;h=1;for(k=c.length;h<k;h++)if(e=c[h],l=e.pa[a],0===b&&l<f||1===b&&l>f)f=l,g=e;d.xf(g);return!0},g.jq=function(b){var a,d,c,e,g;if(this.b.Rh().Gd){g=this.Z();if(g.aa)for(g.aa=!1,g.d.length=0,g.S.length=0,c=this.d,a=0,d=c.length;a<
d;a++)e=c[a],e.uid===b?g.S.push(e):g.d.push(e);else{c=a=0;for(d=g.d.length;a<d;a++)e=g.d[a],g.d[c]=e,e.uid===b?g.S.push(e):c++;g.d.length=c}this.Uc();return!!g.d.length}e=this.b.Bk(b);if(!e)return!1;g=this.Z();if(!g.aa&&-1===g.d.indexOf(e))return!1;if(this.G)for(b=e.type.Y,a=0,d=b.length;a<d;a++){if(b[a]===this)return g.xf(e),this.Uc(),!0}else if(e.type===this)return g.xf(e),this.Uc(),!0;return!1},g.im=A(!0),g.jm=A(!0),k.zm=function(b,a){var d=this.pa;G(d[b])?d[b]=G(a)?a:parseFloat(a):J(d[b])&&(d[b]=
J(a)?a:a.toString())},k.Xl=function(b,a){var d=this.pa;G(d[b])?d[b]=G(a)?d[b]+a:d[b]+parseFloat(a):J(d[b])&&(d[b]=J(a)?d[b]+a:d[b]+a.toString())},k.Kq=function(b,a){var d=this.pa;G(d[b])&&(d[b]=G(a)?d[b]-a:d[b]-parseFloat(a))},k.tq=function(b,a){this.pa[b]=a?1:0},k.Lq=function(b){this.pa[b]=1-this.pa[b]},k.Op=function(){this.b.Yd(this)},k.cm||(k.cm=function(b){var a,d;try{a=JSON.parse(b)}catch(c){return}this.b.ug(this,a,!0);this.Sc&&this.Sc();if(this.I)for(b=0,a=this.I.length;b<a;++b)d=this.I[b],
d.Sc&&d.Sc()}),e.Np=function(b){var a=b.ue.d.length,d,c,e;d=0;for(c=this.b.hb.length;d<c;d++)e=this.b.hb[d],b.ue.G?0<=e.type.Y.indexOf(b.ue)&&a++:e.type===b.ue&&a++;b.X(a)},e.nq=function(b){b.X(b.ue.Z().gc().length)},e.Mq=function(b){b.X(this.uid)},e.Sp=function(b){b.X(this.bf())},e.Yl||(e.Yl=function(b){b.oa(JSON.stringify(this.b.Yi(this,!0)))}));p&&(g.am=ba("visible"),k.kh=function(b){!b!==!this.visible&&(this.visible=b,this.b.U=!0)},g.Hp=function(b,a){return Fb(Ua(100*this.opacity),b,a)},k.Aq=
function(b){b/=100;0>b?b=0:1<b&&(b=1);b!==this.opacity&&(this.opacity=b,this.b.U=!0)},e.Opacity=function(b){b.A(Ua(100*this.opacity))});h&&(g.Wp=function(b){return b?this.i===b:!1},g.mq=function(b){var a=this.Z(),d=a.gc();if(!d.length)return!1;var c=d[0],e=c,g,f;g=1;for(f=d.length;g<f;g++)if(c=d[g],0===b){if(c.i.index>e.i.index||c.i.index===e.i.index&&c.yb()>e.yb())e=c}else if(c.i.index<e.i.index||c.i.index===e.i.index&&c.yb()<e.yb())e=c;a.xf(e);return!0},k.gq=function(){var b=this.yb();b!==this.i.d.length-
1&&(ya(this.i.d,b),this.i.d.push(this),this.b.U=!0,this.i.ub=!0)},k.dq=function(){var b=this.yb();0!==b&&(ya(this.i.d,b),this.i.d.unshift(this),this.b.U=!0,this.i.ub=!0)},k.fq=function(b){b&&b!=this.i&&(ya(this.i.d,this.yb()),this.i.ub=!0,this.i=b,this.Xd=b.d.length,b.d.push(this),this.b.U=!0)},k.Pq=function(b,a){var d=0===b;if(a){var c=a.Un(this);if(c&&c.uid!==this.uid){this.i.index!==c.i.index&&(ya(this.i.d,this.yb()),this.i.ub=!0,this.i=c.i,this.Xd=c.i.d.length,c.i.d.push(this));var e=this.yb(),
c=c.yb();ya(this.i.d,e);e<c&&c--;d&&c++;c===this.i.d.length?this.i.d.push(this):this.i.d.splice(c,0,this);this.i.ub=!0;this.b.U=!0}}},e.$p=function(b){b.X(this.i.hl)},e.Zp=function(b){b.oa(this.i.name)},e.Oq=function(b){b.X(this.yb())});f&&(k.uq=function(b,a){if(this.b.q){var d=this.type.Th(a);if(!(0>d)){var c=1===b;this.Rc[d]!==c&&(this.Rc[d]=c,this.Oc(),this.b.U=!0)}}},k.vq=function(b,a,d){if(this.b.q){var c=this.type.Th(b);0>c||(b=this.type.F[c],c=this.fa[c],a=Math.floor(a),0>a||a>=c.length||(1===
this.b.q.co(b.Ea,a)&&(d/=100),c[a]!==d&&(c[a]=d,b.xc&&(this.b.U=!0))))}})};ob=function(){this.qh=!0;this.type.Tj=!0;this.b.U=!0;var f,e,m=this.rh;f=0;for(e=m.length;f<e;++f)m[f](this)};pb=function(f){f&&this.rh.push(f)};var f=new L(0,0,0,0);rb=function(){if(this.qh){var l=this.Pa,e=this.Xc;l.set(this.x,this.y,this.x+this.width,this.y+this.height);l.offset(-this.Va*this.width,-this.Wa*this.height);this.j?(l.offset(-this.x,-this.y),e.El(l,this.j),e.offset(this.x,this.y),e.ak(l)):e.Mg(l);l.normalize();
this.qh=!1;if(this.Te){var e=this.type.ek,m=this.Qf;f.set(e.Jj(l.left),e.Lj(l.top),e.Jj(l.right),e.Lj(l.bottom));m.rn(f)||(m.right<m.left?e.update(this,null,f):e.update(this,m,f),m.copy(f))}}};qb=function(f,e){return this.Pa.Yb(f,e)&&this.Xc.Yb(f,e)?this.Xb&&!this.Xb.Io()?(this.Xb.Sm(this.width,this.height,this.j),this.Xb.Yb(f-this.x,e-this.y)):!0:!1};kb=function(){this.type.Xg();return this.Ed};sb=function(){this.i.tp();return this.Xd};tb=function(){this.P.length=0;var f,e;f=0;for(e=this.Rc.length;f<
e;f++)this.Rc[f]&&this.P.push(this.type.F[f]);this.Ul=!!this.P.length};lb=function(){return"Inst"+this.wl};Za=function(f){if(f&&f.Pb&&f.type!=this){var e,m,c;e=0;for(m=f.siblings.length;e<m;e++)if(c=f.siblings[e],c.type==this)return c}f=this.Z().gc();return f.length?f[0]:null};$a=function(f){var e=this.Z().gc();return e.length?e[f.bf()%e.length]:null};Ya=function(){if(this.De&&!this.G){var f,e;f=0;for(e=this.d.length;f<e;f++)this.d[f].Ed=f;var m=f,c=this.b.hb;f=0;for(e=c.length;f<e;++f)c[f].type===
this&&(c[f].Ed=m++);this.De=!1}};ib=function(f){if(f<this.d.length)return this.d[f];f-=this.d.length;var e=this.b.hb,m,c;m=0;for(c=e.length;m<c;++m)if(e[m].type===this){if(0===f)return e[m];--f}return null};ab=function(){return this.nd[this.Cc]};bb=function(){this.Cc++;this.Cc===this.nd.length?this.nd.push(new Xa(this)):this.nd[this.Cc].aa=!0};cb=function(){this.Cc++;this.Cc===this.nd.length&&this.nd.push(new Xa(this));var f=this.nd[this.Cc],e=this.nd[this.Cc-1];e.aa?f.aa=!0:(f.aa=!1,za(f.d,e.d),
za(f.S,e.S))};db=function(){this.Cc--};eb=function(f){var e,m,c,a,d,p=0;if(!this.G)for(e=0,m=this.Y.length;e<m;e++)for(d=this.Y[e],c=0,a=d.la.length;c<a;c++){if(f===d.la[c].name)return this.ga.Rk=p,d.la[c];p++}e=0;for(m=this.la.length;e<m;e++){if(f===this.la[e].name)return this.ga.Rk=p,this.la[e];p++}return null};fb=function(f){return this.cg(f)?this.ga.Rk:-1};gb=function(f){var e,m;e=0;for(m=this.F.length;e<m;e++)if(this.F[e].name===f)return e;return-1};hb=function(){if(this.Pb&&!this.G){var f,e,
m,c,a,d,p;this.Xg();d=this.Z();var h=d.aa,g=(f=this.b.Ua())&&f.xb&&f.xb.kc;f=0;for(e=this.Sa.length;f<e;f++)if(a=this.Sa[f],a!==this&&(a.Xg(),p=a.Z(),p.aa=h,!h)){p.d.length=d.d.length;m=0;for(c=d.d.length;m<c;m++)p.d[m]=a.yk(d.d[m].Ed);if(g)for(p.S.length=d.S.length,m=0,c=d.S.length;m<c;m++)p.S[m]=a.yk(d.S[m].Ed)}}};jb=function(){return"Type"+this.N};Fb=function(f,e,m){if("undefined"===typeof f||"undefined"===typeof m)return!1;switch(e){case 0:return f===m;case 1:return f!==m;case 2:return f<m;case 3:return f<=
m;case 4:return f>m;case 5:return f>=m;default:return!1}}})();var Ob={};function T(f){this.b=f}
(function(){function f(){}function l(){}function e(){}var m=!1,c=null,a=null,d="",p=T.prototype;p.ka=function(a){this.$=a;this.b=a.b};p.ka.prototype.R=s();p.da=function(e){this.type=e;this.b=e.b;this.Zb=this.Jd="";this.Sb=0;if(m=this.b.Ic)c=require("path"),a=require("fs"),d=c.dirname(process.execPath)+"\\"};var h=p.da.prototype,g=null;window.C2_AJAX_DCSide=function(a,b,d){g&&("success"===a?(g.Zb=b,g.Jd=d,g.b.trigger(T.prototype.e.wc,g)):"error"===a?(g.Zb=b,g.b.trigger(T.prototype.e.Zd,g)):"progress"===
a&&(g.Sb=d,g.Zb=b,g.b.trigger(T.prototype.e.Dj,g)))};h.R=function(){g=this};h.Ab=function(){return{lastData:this.Jd}};h.Rb=function(a){this.Jd=a.lastData;this.Zb="";this.Sb=0};h.en=function(c,b){if(this.b.Ob)AppMobi.webview.execute('C2_AJAX_WebSide("'+c+'", "'+b+'", "GET", null);');else{var e=this,g=null,f=function(){e.Zb=c;e.b.trigger(T.prototype.e.Zd,e)},h=function(){if(m){var c=d+b;a.existsSync(c)?a.readFile(c,{encoding:"utf8"},function(a,b){a?f():(e.Jd=b.replace(/\r\n/g,"\n"),e.b.trigger(T.prototype.e.wc,
e))}):f()}else f()},l=function(a){a.lengthComputable&&(e.Sb=a.loaded/a.total,e.Zb=c,e.b.trigger(T.prototype.e.Dj,e))};try{g=new XMLHttpRequest;g.onreadystatechange=function(){4===g.readyState&&(e.Zb=c,e.Jd=g.responseText?g.responseText.replace(/\r\n/g,"\n"):"",400<=g.status?e.b.trigger(T.prototype.e.Zd,e):m&&!e.Jd.length||e.b.trigger(T.prototype.e.wc,e))};g.onerror=h;g.ontimeout=h;g.onabort=h;g.onprogress=l;g.open("GET",b);try{g.responseType="text"}catch(p){}g.send()}catch(x){h()}}};f.prototype.wc=
function(a){return P(a,this.Zb)};f.prototype.Zd=function(a){return P(a,this.Zb)};f.prototype.Dj=function(a){return P(a,this.Zb)};p.e=new f;l.prototype.ih=function(a,b){this.en(a,b)};p.k=new l;e.prototype.vc=function(a){a.oa(this.Jd)};p.p=new e})();function U(f){this.b=f}
(function(){function f(){}function l(){}function e(){}var m=U.prototype;m.ka=function(c){this.$=c;this.b=c.b};m.ka.prototype.R=s();m.da=function(c){this.type=c;this.b=c.b};m.da.prototype.R=function(){var c=this;window.addEventListener("resize",function(){c.b.trigger(U.prototype.e.Ej,c)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){c.b.trigger(U.prototype.e.om,c)}),window.addEventListener("offline",function(){c.b.trigger(U.prototype.e.nm,c)}));"undefined"!==
typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){c.b.Md=1;c.b.trigger(U.prototype.e.hh,c)}),window.applicationCache.addEventListener("progress",function(a){c.b.Md=a.loaded/a.total}));this.b.Ob||(document.addEventListener("appMobi.device.update.available",function(){c.b.trigger(U.prototype.e.hh,c)}),document.addEventListener("backbutton",function(){c.b.trigger(U.prototype.e.xj,c)}),document.addEventListener("menubutton",function(){c.b.trigger(U.prototype.e.Aj,
c)}),document.addEventListener("searchbutton",function(){c.b.trigger(U.prototype.e.tm,c)}),document.addEventListener("tizenhwkey",function(a){var d;switch(a.keyName){case "back":d=c.b.trigger(U.prototype.e.xj,c);!d&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(d=c.b.trigger(U.prototype.e.Aj,c))||a.preventDefault()}}));this.b.Lm(function(a){a?c.b.trigger(U.prototype.e.pm,c):c.b.trigger(U.prototype.e.qm,c)});this.Ok="undefined"!==typeof window.is_scirra_arcade};
f.prototype.om=A(!0);f.prototype.nm=A(!0);f.prototype.wj=function(){return"undefined"===typeof window.applicationCache?!1:window.applicationCache.status===window.applicationCache.DOWNLOADING};f.prototype.hh=A(!0);f.prototype.qm=A(!0);f.prototype.pm=A(!0);f.prototype.Ej=A(!0);f.prototype.xj=A(!0);f.prototype.Aj=A(!0);f.prototype.tm=A(!0);m.e=new f;l.prototype.vj=function(c,a){this.b.Nb?CocoonJS.App.openURL(c):this.Ok||this.b.qa||window.open(c,a)};l.prototype.wm=function(){this.Ok||this.b.qa||window.location.reload()};
m.k=new l;e.prototype.URL=function(c){c.oa(this.b.qa?"":window.location.toString())};m.p=new e})();function Qb(f){this.b=f}
(function(){var f=Qb.prototype;f.ka=function(e){this.$=e;this.b=e.b};f.ka.prototype.R=s();f.da=function(e){this.type=e;this.b=e.b};var l=f.da.prototype;l.R=function(){this.g=document.createElement("div");this.g.innerHTML=this.D[1];this.g.style.cssText=this.D[2];this.Je=this.D[2];var e=0<this.width?1:-1,f=0<this.height?1:-1;this.g.setAttribute("id",this.D[3]);this.Nm=this.j;this.ze="-webkit-transform:rotate("+180*this.j*e*f/3.1416+"deg);-moz-transform:rotate("+180*this.j*e*f/3.1416+"deg);-o-transform:rotate("+
180*this.j*e*f/3.1416+"deg);";this.g.style.cssText+=";"+this.ze;this.g.width=Math.round(this.g.width);this.g.height=Math.round(this.g.height);this.g.x=Math.round(this.g.x);this.g.y=Math.round(this.g.y);jQuery(this.g).appendTo("body");0===this.D[0]&&(jQuery(this.g).hide(),this.visible=!1);this.Ge();this.b.Sg(this)};l.Sd=function(){jQuery(this.g).remove();this.g=null};l.Mc=function(){this.Ge()};l.Ge=function(){var e=this.i.V(this.x,this.y,!0),f=this.i.V(this.x,this.y,!1),c=this.i.V(this.x+this.width,
this.y+this.height,!0),a=this.i.V(this.x+this.width,this.y+this.height,!1);if(!this.visible||!this.i.visible||0>=c||0>=a||e>=this.b.width||f>=this.b.height)jQuery(this.g).hide();else{1>e&&(e=1);1>f&&(f=1);c>=this.b.width&&(c=this.b.width-1);a>=this.b.height&&(a=this.b.height-1);jQuery(this.g).show();var d=e+jQuery(this.b.canvas).offset().left,l=f+jQuery(this.b.canvas).offset().top;jQuery(this.g).offset({left:d,top:l});jQuery(this.g).width(c-e);jQuery(this.g).height(a-f);this.g.width=Math.round(this.g.width);
this.g.height=Math.round(this.g.height);this.g.x=Math.round(this.g.x);this.g.y=Math.round(this.g.y)}};l.Cb=s();l.ib=s();f.e={};l=f.e;l.Mp=function(e){return this.g.innerHTML===e};l.Ip=function(e){return this.g.style.cssText===e};l.wc=A(!0);l.Zd=A(!0);l.Yq=function(){return this.g==document.activeElement?!0:!1};f.k={};l=f.k;l.zq=function(e){this.g.innerHTML=e};l.er=function(e,f,c,a){var d="";1==e&&(this.ae+=a,d="-webkit-transform:rotateX("+this.ae+"deg);-moz-transform:rotateX("+this.ae+"deg);-o-transform:rotateX("+
this.ae+"deg);-ms-transform:rotateX("+this.ae+"deg);transform:rotateX("+this.ae+"deg);");1==f&&(this.be+=a,d=d+"-webkit-transform:rotateY("+this.be+"deg);-moz-transform:rotateY("+this.be+"deg);-o-transform:rotateY("+this.be+"deg);-ms-transform:rotateY("+this.be+"deg);transform:rotateY("+this.be+"deg);");1==c&&(this.de+=a,d=d+"-webkit-transform:rotateZ("+this.de+"deg);-moz-transform:rotateZ("+this.de+"deg);-o-transform:rotateZ("+this.de+"deg);-ms-transform:rotateZ("+this.de+"deg);transform:rotateZ("+
this.de+"deg);");this.Ig=d;this.g.style.cssText=this.Je+this.ze+this.Bg+this.Ig;this.Ge()};l.dr=function(e){var f=0<this.width?1:-1,c=0<this.height?1:-1;this.ze="-webkit-transform:rotate("+180*e*f*c/3.1416+"deg);-moz-transform:rotate("+180*e*f*c/3.1416+"deg);-o-transform:rotate("+180*e*f*c/3.1416+"deg);";this.g.style.cssText=this.Je+this.ze+this.Bg+this.Ig;this.j=this.Nm+180*e/3.1416};l.gr=function(e){this.Bg="-webkit-perspective:"+e+";-moz-perspective:"+e+";-o-perspective:"+e+";-ms-perspective:"+
e+";perspective:"+e+";";this.g.style.cssText=this.Je+this.ze+this.Bg+this.Ig};l.aq=function(e,f){f.length?jQuery.ajax({context:this,dataType:"text",type:"POST",url:e,data:f,success:function(c){this.g.innerHTML=c;this.b.trigger(Gb.bh.prototype.e.wc,this)},error:function(){this.b.trigger(Gb.bh.prototype.e.Zd,this)}}):jQuery.ajax({context:this,dataType:"text",type:"GET",url:e,success:function(c){this.g.innerHTML=c;this.b.trigger(Gb.bh.prototype.e.wc,this)},error:function(){this.b.trigger(Gb.bh.prototype.e.Zd,
this)}})};l.Fq=function(e){this.Je=e;this.g.style.cssText=this.Je+this.ze+this.Bg+this.Ig};l.kh=function(e){this.visible=0!==e};l.fr=function(){this.g.focus()};f.p={};f=f.p;f.Pp=function(e){e.oa(this.g.innerHTML)};f.Qp=function(e){e.oa(this.g.style.cssText)}})();function V(f){this.b=f}
(function(){function f(){}function l(){}function e(){}var m=V.prototype;m.ka=function(a){this.$=a;this.b=a.b};m.ka.prototype.R=s();m.da=function(a){this.type=a;this.b=a.b;this.sh=Array(4);this.Ml=this.Vg=this.Fe=this.Lc=this.Kc=0;this.Wh=!1};var c=m.da.prototype;c.R=function(){var a=this;if(!this.b.qa){jQuery(document).mousemove(function(c){a.Ci(c)});jQuery(document).mousedown(function(c){a.Bi(c)});jQuery(document).mouseup(function(c){a.Di(c)});jQuery(document).dblclick(function(c){a.Qo(c)});var c=
function(c){a.So(c)};document.addEventListener("mousewheel",c,!1);document.addEventListener("DOMMouseScroll",c,!1)}};var a={left:0,top:0};c.Ci=function(d){var c=this.b.qa?a:jQuery(this.b.canvas).offset();this.Kc=d.pageX-c.left;this.Lc=d.pageY-c.top};c.dl=function(){return 0<this.b.Ta?!0:0<=this.Kc&&0<=this.Lc&&this.Kc<this.b.width&&this.Lc<this.b.height};c.Bi=function(a){this.dl()&&(this.b.Cd&&a.preventDefault(),this.sh[a.which]=!0,this.b.La=!0,this.b.trigger(V.prototype.e.fm,this),this.Fe=a.which-
1,this.Vg=0,this.b.trigger(V.prototype.e.yj,this),this.b.trigger(V.prototype.e.Ne,this),this.b.La=!1)};c.Di=function(a){this.sh[a.which]&&(this.b.Cd&&a.preventDefault(),this.b.Cd=!0,this.sh[a.which]=!1,this.b.La=!0,this.Fe=a.which-1,this.b.trigger(V.prototype.e.rm,this),this.b.La=!1)};c.Qo=function(a){this.dl()&&(a.preventDefault(),this.b.La=!0,this.Fe=a.which-1,this.Vg=1,this.b.trigger(V.prototype.e.yj,this),this.b.trigger(V.prototype.e.Ne,this),this.b.La=!1)};c.So=function(a){this.Ml=0>(a.wheelDelta?
a.wheelDelta:a.detail?-a.detail:0)?0:1;this.Wh=!1;this.b.La=!0;this.b.trigger(V.prototype.e.vm,this);this.b.La=!1;this.Wh&&a.preventDefault()};f.prototype.yj=function(a,c){return a===this.Fe&&c===this.Vg};f.prototype.fm=A(!0);f.prototype.rm=function(a){return a===this.Fe};f.prototype.dh=function(a){var c=this.b.Rh();return La(this.b.ej(a,this.Kc,this.Lc,c.Gd),c.Gd)};f.prototype.Ne=function(a,c,e){return a!==this.Fe||c!==this.Vg?!1:this.b.ej(e,this.Kc,this.Lc,!1)};f.prototype.vm=function(a){this.Wh=
!0;return a===this.Ml};m.e=new f;l.prototype.jh=function(a){a="auto pointer text crosshair move help wait none".split(" ")[a];this.b.canvas&&this.b.canvas.style&&(this.b.canvas.style.cursor=a)};m.k=new l;e.prototype.Nf=function(a,c){var e,g,f,b,m;ea(c)?(e=this.b.fc(0),g=e.scale,f=e.$a,b=e.Gb,m=e.j,e.scale=this.b.M.scale,e.$a=1,e.Gb=1,e.j=this.b.M.j,a.A(e.Ba(this.Kc,this.Lc,!0)),e.scale=g,e.$a=f,e.Gb=b,e.j=m):(e=G(c)?this.b.fc(c):this.b.ke(c))?a.A(e.Ba(this.Kc,this.Lc,!0)):a.A(0)};e.prototype.Kj=function(a,
c){var e,g,f,b,m;ea(c)?(e=this.b.fc(0),g=e.scale,f=e.$a,b=e.Hb,m=e.j,e.scale=this.b.M.scale,e.$a=1,e.Hb=1,e.j=this.b.M.j,a.A(e.Ba(this.Kc,this.Lc,!1)),e.scale=g,e.$a=f,e.Hb=b,e.j=m):(e=G(c)?this.b.fc(c):this.b.ke(c))?a.A(e.Ba(this.Kc,this.Lc,!1)):a.A(0)};m.p=new e})();function Rb(f){this.b=f}
(function(){function f(){}var l=Rb.prototype;l.ka=function(e){this.$=e;this.b=e.b};l.ka.prototype.R=s();l.da=function(e){this.type=e;this.b=e.b};var e=l.da.prototype;e.R=function(){this.Mj={}};e.Ab=function(){return{tims:this.Mj}};e.Rb=function(e){this.Mj=e.tims};l.e=new (s());l.k=new (s());l.p=new f;f.prototype.Dm=function(e){e.A((new Date).getTime())}})();function Sb(f){this.b=f}
(function(){function f(){if(0===this.Fh.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var c=a.getContext("2d");this.Ce?c.drawImage(this.J,this.ve,this.we,this.width,this.height,0,0,this.width,this.height):c.drawImage(this.J,0,0,this.width,this.height);this.Fh=a.toDataURL("image/png")}return this.Fh}function l(){}var e=Sb.prototype;e.ka=function(a){this.$=a;this.b=a.b};var m=e.ka.prototype;m.R=function(){if(!this.G){var a,c,d,b,e,n,m,l,r;this.Mb=[];this.gg=
!1;a=0;for(c=this.bb.length;a<c;a++){e=this.bb[a];m={};m.name=e[0];m.speed=e[1];m.loop=e[2];m.Si=e[3];m.Hg=e[4];m.pl=e[5];m.N=e[6];m.frames=[];d=0;for(b=e[7].length;d<b;d++)n=e[7][d],l={},l.gj=n[0],l.hj=n[1],l.ve=n[2],l.we=n[3],l.width=n[4],l.height=n[5],l.duration=n[6],l.Va=n[7],l.Wa=n[8],l.Zh=n[9],l.Cg=n[10],l.ql=n[11],l.Ce=0!==l.width,l.Fh="",l.Uq=f,r={left:0,top:0,right:1,bottom:1},l.aj=r,l.ca=null,(r=this.b.Qn(n[0]))?l.J=r:(l.J=new Image,l.J.idtkLoadDisposed=!0,l.J.src=n[0],l.J.Wm=n[0],l.J.gk=
n[1],l.J.Rm=null,this.b.Pc.push(l.J)),m.frames.push(l),this.Mb.push(l);this.bb[a]=m}}};m.sp=function(){var a,c,d;a=0;for(c=this.d.length;a<c;a++)d=this.d[a],d.Tf=d.Bb.ca};m.zg=function(){if(!this.G){var a,c,d;a=0;for(c=this.Mb.length;a<c;++a)d=this.Mb[a],d.J.Rm=null,d.ca=null}};m.Ei=function(){if(!this.G&&this.d.length){var a,c,d;a=0;for(c=this.Mb.length;a<c;++a)d=this.Mb[a],d.ca=this.b.q.vg(d.J,!1,this.b.Q,d.ql);this.sp()}};m.mi=function(){if(!this.G&&!this.gg&&this.b.q){var a,c,d;a=0;for(c=this.Mb.length;a<
c;++a)d=this.Mb[a],d.ca=this.b.q.vg(d.J,!1,this.b.Q,d.ql);this.gg=!0}};m.oj=function(){if(!this.G&&!this.d.length&&this.gg){var a,c,d;a=0;for(c=this.Mb.length;a<c;++a)d=this.Mb[a],this.b.q.deleteTexture(d.ca);this.gg=!1}};var c=[];m.Ki=function(a){var d,e,b;d=c.length=0;for(e=this.Mb.length;d<e;++d)b=this.Mb[d].J,-1===c.indexOf(b)&&(a.drawImage(b,0,0),c.push(b))};e.da=function(a){this.type=a;this.b=a.b;a=this.type.bb[0].frames[0].Cg;this.Ib?this.Xb.Cf(a):this.Xb=new Qa(a)};var a=e.da.prototype;a.R=
function(){this.visible=0===this.D[0];this.Te=0!==this.D[3];1===this.type.bb.length&&1===this.type.bb[0].frames.length||0===this.type.bb[0].speed||this.b.Sg(this);this.ea=this.tk(this.D[1])||this.type.bb[0];this.r=this.D[2];0>this.r&&(this.r=0);this.r>=this.ea.frames.length&&(this.r=this.ea.frames.length-1);var a=this.ea.frames[this.r];this.Xb.Cf(a.Cg);this.Va=a.Va;this.Wa=a.Wa;this.Ve=this.ea.speed;this.Ib?this.Wb.reset():this.Wb=new Oa;this.Dc=this.Wb.Oa;this.td=!0;this.yc=0;this.sd=!0;this.yh=
this.Rj="";this.Vm=0;this.xh=-1;this.type.mi();var c,d,b,e,f,l,m,a=0;for(c=this.type.bb.length;a<c;a++)for(e=this.type.bb[a],d=0,b=e.frames.length;d<b;d++)f=e.frames[d],0===f.width&&(f.width=f.J.width,f.height=f.J.height),f.Ce&&(m=f.J,l=f.aj,l.left=f.ve/m.width,l.top=f.we/m.height,l.right=(f.ve+f.width)/m.width,l.bottom=(f.we+f.height)/m.height,0===f.ve&&0===f.we&&f.width===m.width&&f.height===m.height&&(f.Ce=!1));this.Bb=this.ea.frames[this.r];this.Tf=this.Bb.ca};a.Ab=function(){var a={a:this.ea.N,
f:this.r,cas:this.Ve,fs:this.Dc,ar:this.yc,at:this.Wb.Oa};this.td||(a.ap=this.td);this.sd||(a.af=this.sd);return a};a.Rb=function(a){var c=this.Sn(a.a);c&&(this.ea=c);this.r=a.f;0>this.r&&(this.r=0);this.r>=this.ea.frames.length&&(this.r=this.ea.frames.length-1);this.Ve=a.cas;this.Dc=a.fs;this.yc=a.ar;this.Wb.reset();this.Wb.Oa=a.at;this.td=a.hasOwnProperty("ap")?a.ap:!0;this.sd=a.hasOwnProperty("af")?a.af:!0;this.Bb=this.ea.frames[this.r];this.Tf=this.Bb.ca;this.Xb.Cf(this.Bb.Cg);this.Va=this.Bb.Va;
this.Wa=this.Bb.Wa};a.ph=function(a){this.r=a?0:this.ea.frames.length-1;this.td=!1;this.Rj=this.ea.name;this.b.trigger(Sb.prototype.e.em,this);this.b.trigger(Sb.prototype.e.dm,this);this.yc=0};a.Wq=function(){return this.Wb.Oa};a.Mc=function(){this.Wb.add(this.b.wk(this));this.yh.length&&this.Zm();0<=this.xh&&this.$m();var a=this.Wb.Oa,c=this.ea,d=c.frames[this.r],b=d.duration/this.Ve;this.td&&a>=this.Dc+b&&(this.sd?this.r++:this.r--,this.Dc+=b,this.r>=c.frames.length&&(c.pl?(this.sd=!1,this.r=c.frames.length-
2):c.loop?this.r=c.Hg:(this.yc++,this.yc>=c.Si?this.ph(!1):this.r=c.Hg)),0>this.r&&(c.pl?(this.r=1,this.sd=!0,c.loop||(this.yc++,this.yc>=c.Si&&this.ph(!0))):c.loop?this.r=c.Hg:(this.yc++,this.yc>=c.Si?this.ph(!0):this.r=c.Hg)),0>this.r?this.r=0:this.r>=c.frames.length&&(this.r=c.frames.length-1),a>this.Dc+c.frames[this.r].duration/this.Ve&&(this.Dc=a),a=c.frames[this.r],this.Me(d,a),this.b.U=!0)};a.tk=function(a){var c,d,b;c=0;for(d=this.type.bb.length;c<d;c++)if(b=this.type.bb[c],P(b.name,a))return b;
return null};a.Sn=function(a){var c,d,b;c=0;for(d=this.type.bb.length;c<d;c++)if(b=this.type.bb[c],b.N===a)return b;return null};a.Zm=function(){var a=this.ea.frames[this.r],c=this.tk(this.yh);this.yh="";!c||P(c.name,this.ea.name)&&this.td||(this.ea=c,this.Ve=c.speed,0>this.r&&(this.r=0),this.r>=this.ea.frames.length&&(this.r=this.ea.frames.length-1),1===this.Vm&&(this.r=0),this.td=!0,this.Dc=this.Wb.Oa,this.sd=!0,this.Me(a,this.ea.frames[this.r]),this.b.U=!0)};a.$m=function(){var a=this.ea.frames[this.r],
c=this.r;this.r=K(this.xh);0>this.r&&(this.r=0);this.r>=this.ea.frames.length&&(this.r=this.ea.frames.length-1);c!==this.r&&(this.Me(a,this.ea.frames[this.r]),this.Dc=this.Wb.Oa,this.b.U=!0);this.xh=-1};a.Me=function(a,c){var d=a.width,b=a.height,e=c.width,f=c.height;d!=e&&(this.width*=e/d);b!=f&&(this.height*=f/b);this.Va=c.Va;this.Wa=c.Wa;this.Xb.Cf(c.Cg);this.Da();this.Bb=c;this.Tf=c.ca;d=0;for(b=this.I.length;d<b;d++)e=this.I[d],e.Ro&&e.Ro(a,c);this.b.trigger(Sb.prototype.e.Me,this)};a.Cb=function(a){a.globalAlpha=
this.opacity;var c=this.Bb,d=c.Ce,b=c.J,e=this.x,f=this.y,l=this.width,m=this.height;if(0===this.j&&0<=l&&0<=m)e-=this.Va*l,f-=this.Wa*m,this.b.lc&&(e=e+0.5|0,f=f+0.5|0),d?a.drawImage(b,c.ve,c.we,c.width,c.height,e,f,l,m):a.drawImage(b,e,f,l,m);else{this.b.lc&&(e=e+0.5|0,f=f+0.5|0);a.save();var r=0<l?1:-1,p=0<m?1:-1;a.translate(e,f);1===r&&1===p||a.scale(r,p);a.rotate(this.j*r*p);e=0-this.Va*ha(l);f=0-this.Wa*ha(m);d?a.drawImage(b,c.ve,c.we,c.width,c.height,e,f,ha(l),ha(m)):a.drawImage(b,e,f,ha(l),
ha(m));a.restore()}};a.ib=function(a){a.ob(this.Tf);a.Td(this.opacity);var c=this.Bb,d=this.Xc;if(this.b.lc){var b=(this.x+0.5|0)-this.x,e=(this.y+0.5|0)-this.y;c.Ce?a.mc(d.Fa+b,d.Ga+e,d.pb+b,d.qb+e,d.fb+b,d.gb+e,d.cb+b,d.eb+e,c.aj):a.Fg(d.Fa+b,d.Ga+e,d.pb+b,d.qb+e,d.fb+b,d.gb+e,d.cb+b,d.eb+e)}else c.Ce?a.mc(d.Fa,d.Ga,d.pb,d.qb,d.fb,d.gb,d.cb,d.eb,c.aj):a.Fg(d.Fa,d.Ga,d.pb,d.qb,d.fb,d.gb,d.cb,d.eb)};a.Wn=function(a){var c=this.Bb,d,b;d=0;for(b=c.Zh.length;d<b;d++)if(P(a,c.Zh[d][0]))return d;return-1};
a.Uh=function(a,c){var d=this.Bb,b=d.Zh,e;e=J(a)?this.Wn(a):a-1;e=K(e);if(0>e||e>=b.length)return c?this.x:this.y;var f=(b[e][1]-d.Va)*this.width,b=b[e][2],b=(b-d.Wa)*this.height,d=Math.cos(this.j);e=Math.sin(this.j);var l=f*d-b*e,b=b*d+f*e,f=l+this.x,b=b+this.y;return c?f:b};var d=new da,p=!1;m.finish=function(a){if(p){if(a){var c=this.b.Ua().xb.kc;a=null.Z();var e=d.If(),b,f;if(a.aa){a.aa=!1;a.d.length=e.length;b=0;for(f=e.length;b<f;b++)a.d[b]=e[b];if(c)for(b=a.S.length=0,f=null.d.length;b<f;b++)e=
null.d[b],d.contains(e)||a.S.push(e)}else if(c)for(c=a.d.length,a.d.length=c+e.length,b=0,f=e.length;b<f;b++)a.d[c+b]=e[b],Aa(a.S,e[b]);else za(a.d,e);null.Uc()}d.clear();p=!1}};l.prototype.dm=function(a){return P(this.Rj,a)};l.prototype.em=A(!0);l.prototype.Me=A(!0);e.e=new l;e.k=new (s());e.p=new (s())})();function W(f){this.b=f}
(function(){function f(){return h.length?h.pop():{}}function l(a){var c,b;c=0;for(b=a.length;c<b;c++)h.push(a[c]);a.length=0}function e(){}function m(){}function c(){}var a=W.prototype;a.R=function(){a.k.Bm=function(a){this.width!==a&&(this.width=a,this.Ud=!0,this.Da())}};a.ka=function(a){this.$=a;this.b=a.b};var d=a.ka.prototype;d.R=s();d.zg=function(){if(!this.G){var a,c,b;a=0;for(c=this.d.length;a<c;a++)b=this.d[a],b.jc=null,b.Qd=null,b.mb=null}};a.da=function(a){this.type=a;this.b=a.b;this.Ib?
this.ed.length=0:this.ed=[];this.Ud=!0};d=a.da.prototype;d.R=function(){this.text=this.D[0];this.visible=0===this.D[1];this.font=this.D[2];this.color=this.D[3];this.fg=this.D[4];this.Yg=this.D[5];this.tj=0===this.D[7];this.gi=this.qg=this.width;this.og=this.height;this.li=this.D[8];this.ag=this.ie="";this.Jl=this.Kl=this.zf=0;this.To();this.mb=this.Qd=this.jc=null;this.wi=!1;this.of=this.b.sc;this.Ib?this.hd.set(0,0,1,1):this.hd=new L(0,0,1,1);this.b.q&&this.b.Sg(this)};d.To=function(){var a=this.font.split(" "),
c;for(c=0;c<a.length;c++)if("pt"===a[c].substr(a[c].length-2,2)){this.zf=parseInt(a[c].substr(0,a[c].length-2));this.Oi=Math.ceil(96*(this.zf/72))+4;0<c&&(this.ag=a[c-1]);this.ie=a[c+1];for(c+=2;c<a.length;c++)this.ie+=" "+a[c];break}};d.Ab=function(){return{t:this.text,f:this.font,c:this.color,ha:this.fg,va:this.Yg,wr:this.tj,lho:this.li,fn:this.ie,fs:this.ag,ps:this.zf,pxh:this.Oi,tw:this.Kl,th:this.Jl,lrt:this.of}};d.Rb=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.fg=a.ha;this.Yg=
a.va;this.tj=a.wr;this.li=a.lho;this.ie=a.fn;this.ag=a.fs;this.zf=a.ps;this.Oi=a.pxh;this.Kl=a.tw;this.Jl=a.th;this.of=a.lrt;this.Ud=!0;this.gi=this.qg=this.width;this.og=this.height};d.Mc=function(){if(this.b.q&&this.mb&&300<=this.b.sc-this.of){var a=this.i;this.Xa();var c=this.Pa;if(c.right<a.sb||c.bottom<a.Ya||c.left>a.tb||c.top>a.rb)this.b.q.deleteTexture(this.mb),this.jc=this.Qd=this.mb=null}};d.Sd=function(){this.jc=this.Qd=null;this.b.q&&this.mb&&this.b.q.deleteTexture(this.mb);this.mb=null};
d.jr=function(){this.font=this.ag+" "+this.zf.toString()+"pt "+this.ie;this.Ud=!0;this.b.U=!0};d.Cb=function(a,c){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=c?1:this.opacity;var b=1;c&&(b=this.i.jb(),a.save(),a.scale(b,b));if(this.Ud||this.width!==this.gi)this.type.$.Fm(this.text,this.ed,a,this.width,this.tj),this.Ud=!1,this.gi=this.width;this.Xa();var b=c?0:this.Xc.Fa,d=c?0:this.Xc.Ga;this.b.lc&&(b=b+0.5|0,d=d+0.5|0);0===this.j||c||(a.save(),a.translate(b,d),a.rotate(this.j),
d=b=0);var e=d+this.height,f=this.Oi,f=f+this.li,h,l;1===this.Yg?d+=Math.max(this.height/2-this.ed.length*f/2,0):2===this.Yg&&(d+=Math.max(this.height-this.ed.length*f-2,0));for(l=0;l<this.ed.length&&!(h=b,1===this.fg?h=b+(this.width-this.ed[l].width)/2:2===this.fg&&(h=b+(this.width-this.ed[l].width)),a.fillText(this.ed[l].text,h,d),d+=f,d>=e-f);l++);(0!==this.j||c)&&a.restore();this.of=this.b.sc};d.ib=function(a){if(!(1>this.width||1>this.height)){var c=this.Ud||this.wi;this.wi=!1;var b=this.i.jb(),
d=this.i.Ec(),e=this.hd,f=b*this.width,h=b*this.height,l=Math.ceil(f),m=Math.ceil(h),p=this.b.L/2,D=this.b.K/2;this.Qd||(this.jc=document.createElement("canvas"),this.jc.width=l,this.jc.height=m,this.qg=l,this.og=m,c=!0,this.Qd=this.jc.getContext("2d"));if(l!==this.qg||m!==this.og)this.jc.width=l,this.jc.height=m,this.mb&&(a.deleteTexture(this.mb),this.mb=null),c=!0;c&&(this.Qd.clearRect(0,0,l,m),this.Cb(this.Qd,!0),this.mb||(this.mb=a.Ac(l,m,this.b.Q,this.b.bd)),a.yp(this.jc,this.mb,this.b.bd));
this.qg=l;this.og=m;a.ob(this.mb);a.Td(this.opacity);a.nc();a.translate(-p,-D);a.tc();var F=this.Xc,Y=this.b.devicePixelRatio;this.b.devicePixelRatio=1;var c=this.i.V(F.Fa,F.Ga,!0,!0),p=this.i.V(F.Fa,F.Ga,!1,!0),D=this.i.V(F.pb,F.qb,!0,!0),E=this.i.V(F.pb,F.qb,!1,!0),B=this.i.V(F.fb,F.gb,!0,!0),q=this.i.V(F.fb,F.gb,!1,!0),y=this.i.V(F.cb,F.eb,!0,!0),F=this.i.V(F.cb,F.eb,!1,!0);this.b.devicePixelRatio=Y;if(this.b.lc||0===this.j&&0===d)var Y=(c+0.5|0)-c,z=(p+0.5|0)-p,c=c+Y,p=p+z,D=D+Y,E=E+z,B=B+Y,q=
q+z,y=y+Y,F=F+z;0===this.j&&0===d?(D=c+l,E=p,B=D,q=p+m,y=c,F=q,e.right=1,e.bottom=1):(e.right=f/l,e.bottom=h/m);a.mc(c,p,D,E,B,q,y,F,e);a.nc();a.scale(b,b);a.Ui(-this.i.Ec());a.translate((this.i.sb+this.i.tb)/-2,(this.i.Ya+this.i.rb)/-2);a.tc();this.of=this.b.sc}};var p=[];a.Cm=function(a){p.length=0;for(var c="",b,d=0;d<a.length;)if(b=a.charAt(d),"\n"===b)c.length&&(p.push(c),c=""),p.push("\n"),++d;else if(" "===b||"\t"===b||"-"===b){do c+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===
a.charAt(d)));p.push(c);c=""}else d<a.length&&(c+=b,d++);c.length&&p.push(c)};var h=[];a.Fm=function(a,c,b,d,e){if(a&&a.length)if(2>=d)l(c);else{if(100>=a.length&&-1===a.indexOf("\n")){var h=b.measureText(a).width;if(h<=d){l(c);c.push(f());c[0].text=a;c[0].width=h;return}}this.Gm(a,c,b,d,e)}else l(c)};a.Gm=function(a,c,b,d,e){e&&(this.Cm(a),a=p);var l="",m,r,w,x=0;for(w=0;w<a.length;w++)"\n"===a[w]?(x>=c.length&&c.push(f()),r=c[x],r.text=l,r.width=b.measureText(l).width,x++,l=""):(m=l,l+=a[w],r=b.measureText(l).width,
r>=d&&(x>=c.length&&c.push(f()),r=c[x],r.text=m,r.width=b.measureText(m).width,x++,l=a[w],e||" "!==l||(l="")));l.length&&(x>=c.length&&c.push(f()),r=c[x],r.text=l,r.width=b.measureText(l).width,x++);for(w=x;w<c.length;w++)h.push(c[w]);c.length=x};e.prototype.Zl=function(a,c){return c?this.text==a:P(this.text,a)};a.e=new e;m.prototype.Vb=function(a){G(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Ud=!0,this.b.U=!0)};m.prototype.Hj=function(a){a="rgb("+ua(a).toString()+
","+va(a).toString()+","+wa(a).toString()+")";a!==this.color&&(this.color=a,this.wi=!0,this.b.U=!0)};a.k=new m;c.prototype.Mf=function(a){a.oa(this.text)};a.p=new c})();function X(f){this.b=f}
(function(){var f=X.prototype;f.ka=function(e){this.$=e;this.b=e.b};f.ka.prototype.R=s();f.da=function(e){this.type=e;this.b=e.b};var l=f.da.prototype,e="text password email number tel url".split(" ");-1<navigator.userAgent.indexOf("MSIE 9")&&(e[2]="text",e[3]="text",e[4]="text",e[5]="text");l.R=function(){this.g=document.createElement("input");this.g.type=e[this.D[7]];jQuery(this.g).appendTo(this.b.Pf?this.b.Pf:"body");this.g.autocomplete="off";this.g.value=this.D[0];this.g.placeholder=this.D[1];
this.g.title=this.D[2];this.g.disabled=0===this.D[4];this.g.readOnly=1===this.D[5];this.g.spellcheck=1===this.D[6];this.g.id=this.D[16];this.g.style.backgroundColor=this.D[8];if(""!=this.D[10]){var f=document.createElement("link");f.href=this.D[10];f.rel="stylesheet";f.type="text/css";document.getElementsByTagName("head")[0].appendChild(f);this.g.style.fontFamily=this.D[11]}else this.g.style.fontFamily=this.D[9];this.g.style.color=this.D[12];this.g.style.fontSize=this.D[13]+"px";this.g.style.fontWeight=
["normal","bold"][this.D[14]];this.g.style.border=["1","0"][this.D[15]];0===this.D[3]&&(jQuery(this.g).hide(),this.visible=!1);f=function(c){return function(){c.b.trigger(X.prototype.e.um,c)}}(this);this.g.br=f;-1!==navigator.userAgent.indexOf("MSIE")&&(this.g.oncut=f);this.g.onclick=function(c){return function(a){a.stopPropagation();c.b.trigger(X.prototype.e.hm,c)}}(this);this.g.ondblclick=function(c){return function(a){a.stopPropagation();c.b.trigger(X.prototype.e.km,c)}}(this);this.g.addEventListener("touchstart",
function(c){c.stopPropagation()},!1);this.g.addEventListener("touchmove",function(c){c.stopPropagation()},!1);this.g.addEventListener("touchend",function(c){c.stopPropagation()},!1);jQuery(this.g).mousedown(function(c){c.stopPropagation()});jQuery(this.g).mouseup(function(c){c.stopPropagation()});jQuery(this.g).keydown(function(c){c.stopPropagation()});jQuery(this.g).keyup(function(c){c.stopPropagation()});this.Ge();this.b.Sg(this)};l.Sd=function(){jQuery(this.g).remove();this.g=null};l.Mc=function(){this.Ge()};
l.Ge=function(){var e=this.i.V(this.x,this.y,!0),c=this.i.V(this.x,this.y,!1),a=this.i.V(this.x+this.width,this.y+this.height,!0),d=this.i.V(this.x+this.width,this.y+this.height,!1);if(!this.visible||!this.i.visible||0>=a||0>=d||e>=this.b.width||c>=this.b.height)jQuery(this.g).hide();else{1>e&&(e=1);1>c&&(c=1);a>=this.b.width&&(a=this.b.width-1);d>=this.b.height&&(d=this.b.height-1);jQuery(this.g).show();var f=Math.round(e)+jQuery(this.b.canvas).offset().left,h=Math.round(c)+jQuery(this.b.canvas).offset().top;
jQuery(this.g).offset({left:f,top:h});jQuery(this.g).width(Math.round(a-e));jQuery(this.g).height(Math.round(d-c))}};l.Cb=s();l.ib=s();f.e={};l=f.e;l.Zl=function(e,c){return 0===c?this.g.value.toLowerCase()===e.toLowerCase():this.g.value===e};l.um=A(!0);l.hm=A(!0);l.km=A(!0);f.k={};l=f.k;l.Vb=function(e){this.g.value=e};l.Bq=function(e){this.g.placeholder=e};l.Gq=function(e){this.g.title=e};l.kh=function(e){this.visible=0!==e};l.wq=function(e){this.g.disabled=0===e};l.Dq=function(e){this.g.readOnly=
0===e};l.xq=function(){this.g.focus()};f.p={};f.p.Mf=function(e){e.oa(this.g.value)}})();function Tb(f){this.b=f}
(function(){var f=Tb.prototype;f.ka=function(e){this.$=e;this.b=e.b};var l=f.ka.prototype;l.R=function(){this.G||(this.J=new Image,this.J.idtkLoadDisposed=!0,this.J.src=this.gj,this.J.gk=this.hj,this.b.Pc.push(this.J),this.ca=this.pattern=null)};l.zg=function(){this.G||(this.ca=null)};l.Ei=function(){if(!this.G&&this.d.length){this.ca||(this.ca=this.b.q.vg(this.J,!0,this.b.Q,this.ij));var e,f;e=0;for(f=this.d.length;e<f;e++)this.d[e].ca=this.ca}};l.mi=function(){this.G||this.ca||!this.b.q||(this.ca=
this.b.q.vg(this.J,!0,this.b.Q,this.ij))};l.oj=function(){this.G||this.d.length||!this.ca||(this.b.q.deleteTexture(this.ca),this.ca=null)};l.Ki=function(e){e.drawImage(this.J,0,0)};f.da=function(e){this.type=e;this.b=e.b};l=f.da.prototype;l.R=function(){this.visible=0===this.D[0];this.hd=new L(0,0,0,0);this.Ek=!1;this.J=this.type.J;this.b.q?(this.type.mi(),this.ca=this.type.ca):(this.type.pattern||(this.type.pattern=this.b.T.createPattern(this.type.J,"repeat")),this.pattern=this.type.pattern)};l.Sc=
function(){this.Ek=!1;this.J=this.type.J};l.Sd=function(){this.b.q&&this.Ek&&this.ca&&(this.b.q.deleteTexture(this.ca),this.ca=null)};l.Cb=function(e){e.globalAlpha=this.opacity;e.save();e.fillStyle=this.pattern;var f=this.x,c=this.y;this.b.lc&&(f=f+0.5|0,c=c+0.5|0);var a=-(this.Va*this.width),d=-(this.Wa*this.height),l=a%this.J.width,h=d%this.J.height;0>l&&(l+=this.J.width);0>h&&(h+=this.J.height);e.translate(f,c);e.rotate(this.j);e.translate(l,h);e.fillRect(a-l,d-h,this.width,this.height);e.restore()};
l.ib=function(e){e.ob(this.ca);e.Td(this.opacity);var f=this.hd;f.right=this.width/this.J.width;f.bottom=this.height/this.J.height;var c=this.Xc;if(this.b.lc){var a=(this.x+0.5|0)-this.x,d=(this.y+0.5|0)-this.y;e.mc(c.Fa+a,c.Ga+d,c.pb+a,c.qb+d,c.fb+a,c.gb+d,c.cb+a,c.eb+d,f)}else e.mc(c.Fa,c.Ga,c.pb,c.qb,c.fb,c.gb,c.cb,c.eb,f)};f.e=new (s());f.k=new (s());f.p=new (s())})();function Z(f){this.b=f}
(function(){function f(a){p=a.x;h=a.y;g=a.z}function l(a){k=a.x;b=a.y;t=a.z}function e(){}function m(){}var c=Z.prototype;c.ka=function(a){this.$=a;this.b=a.b};c.ka.prototype.R=s();c.da=function(a){this.type=a;this.b=a.b;this.touches=[];this.ti=!1};var a=c.da.prototype,d={left:0,top:0};a.Ye=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 p=0,h=0,g=0,k=0,b=0,t=0;a.R=function(){this.Ho=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.qd=this.Dh=this.Ch=this.Pj=this.Oj=this.Nj=this.Jm=this.Im=this.Hm=this.wf=this.vf=this.uf=0;this.wp=0!==this.D[0];var a=0<this.b.Ta?document:this.b.canvas,b=document;this.b.Ob?b=a=window.Canvas:this.b.Nb&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.ll(a)},!1),a.addEventListener("pointermove",function(a){c.kl(a)},!1),b.addEventListener("pointerup",function(a){c.Ag(a)},!1),b.addEventListener("pointercancel",function(a){c.Ag(a)},!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.ll(a)},!1),a.addEventListener("MSPointerMove",function(a){c.kl(a)},!1),b.addEventListener("MSPointerUp",
function(a){c.Ag(a)},!1),b.addEventListener("MSPointerCancel",function(a){c.Ag(a)},!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.nl(a)},!1),a.addEventListener("touchmove",function(a){c.ml(a)},!1),b.addEventListener("touchend",function(a){c.Fi(a)},!1),b.addEventListener("touchcancel",function(a){c.Fi(a)},!1));if(this.Ho){var d=
function(a){a=a.reading;c.Nj=a.accelerationX;c.Oj=a.accelerationY;c.Pj=a.accelerationZ},e=function(a){a=a.reading;c.uf=a.yawDegrees;c.vf=a.pitchDegrees;c.wf=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",
function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.uf=a.alpha||0;c.vf=a.beta||0;c.wf=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Hm=a.accelerationIncludingGravity.x,c.Im=a.accelerationIncludingGravity.y,
c.Jm=a.accelerationIncludingGravity.z);a.acceleration&&(c.Nj=a.acceleration.x,c.Oj=a.acceleration.y,c.Pj=a.acceleration.z)},!1);this.wp&&!this.b.qa&&(jQuery(document).mousemove(function(a){c.Ci(a)}),jQuery(document).mousedown(function(a){c.Bi(a)}),jQuery(document).mouseup(function(a){c.Di(a)}));this.b.ef&&!this.b.Ob&&AppMobi.accelerometer.watchAcceleration(f,{frequency:40,adjustForRotation:!0});this.b.ne&&navigator.accelerometer.watchAcceleration(l,null,{frequency:40});this.b.np(this)};a.kl=function(a){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Ye(a.pointerId),c=O();if(0<=b){var e=this.b.qa?d:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||(b.pg=b.time,b.hi=b.x,b.ii=b.y,b.time=c,b.x=a.pageX-e.left,b.y=a.pageY-e.top)}}};a.ll=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.b.qa?d:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top,e=O();this.qd=
this.touches.length;this.touches.push({time:e,x:c,y:b,pg:e,hi:c,ii:b,id:a.pointerId,dj:this.qd});this.b.La=!0;this.b.trigger(Z.prototype.e.Cj,this);this.b.trigger(Z.prototype.e.Gj,this);this.Ch=c;this.Dh=b;this.b.trigger(Z.prototype.e.Oe,this);this.b.La=!1}};a.Ag=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),a=this.Ye(a.pointerId),this.qd=0<=a?this.touches[a].dj:-1,this.b.La=!0,this.b.trigger(Z.prototype.e.Bj,this),this.b.trigger(Z.prototype.e.Fj,
this),this.b.La=!1,0<=a&&this.touches.splice(a,1))};a.ml=function(a){a.preventDefault&&a.preventDefault();var b=O(),c,e,f,g;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],g=this.Ye(f.identifier),0<=g){var h=this.b.qa?d:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||(g.pg=g.time,g.hi=g.x,g.ii=g.y,g.time=b,g.x=f.pageX-h.left,g.y=f.pageY-h.top)}};a.nl=function(a){a.preventDefault&&a.preventDefault();var b=this.b.qa?d:jQuery(this.b.canvas).offset(),c=O();this.b.La=!0;
var e,f,g,h;e=0;for(f=a.changedTouches.length;e<f;e++)if(g=a.changedTouches[e],h=this.Ye(g.identifier),-1===h){h=g.pageX-b.left;var k=g.pageY-b.top;this.qd=this.touches.length;this.touches.push({time:c,x:h,y:k,pg:c,hi:h,ii:k,id:g.identifier,dj:this.qd});this.b.trigger(Z.prototype.e.Cj,this);this.b.trigger(Z.prototype.e.Gj,this);this.Ch=h;this.Dh=k;this.b.trigger(Z.prototype.e.Oe,this)}this.b.La=!1};a.Fi=function(a){a.preventDefault&&a.preventDefault();this.b.La=!0;var b,c,d;b=0;for(c=a.changedTouches.length;b<
c;b++)d=a.changedTouches[b],d=this.Ye(d.identifier),0<=d&&(this.qd=this.touches[d].dj,this.b.trigger(Z.prototype.e.Bj,this),this.b.trigger(Z.prototype.e.Fj,this),this.touches.splice(d,1));this.b.La=!1};a.Sq=function(){return this.b.ef&&0===this.uf&&0!==g?90*g:this.b.ne&&0===this.uf&&0!==t?90*t:this.uf};a.Tq=function(){return this.b.ef&&0===this.vf&&0!==h?-90*h:this.b.ne&&0===this.vf&&0!==b?-90*b:this.vf};a.Vq=function(){return this.b.ef&&0===this.wf&&0!==p?90*p:this.b.ne&&0===this.wf&&0!==k?90*k:
this.wf};a.Bi=function(a){a.preventDefault&&this.b.Cd&&a.preventDefault();this.nl({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.ti=!0};a.Ci=function(a){a.preventDefault&&this.b.Cd&&a.preventDefault();this.ti&&this.ml({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.Di=function(a){a.preventDefault&&this.b.Cd&&a.preventDefault();this.b.Cd=!0;this.Fi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.ti=!1};a.jj=function(){var a,b,c,d=O();a=0;for(b=
this.touches.length;a<b;a++)c=this.touches[a],c.time<=d-50&&(c.pg=d)};e.prototype.Gj=A(!0);e.prototype.Fj=A(!0);e.prototype.Oe=function(a){return a?this.b.ej(a,this.Ch,this.Dh,!1):!1};e.prototype.Cj=function(a){a=Math.floor(a);return a===this.qd};e.prototype.Bj=function(a){a=Math.floor(a);return a===this.qd};c.e=new e;m.prototype.Nf=function(a,b){if(this.touches.length){var c,d,e,f,g;ea(b)?(c=this.b.fc(0),d=c.scale,e=c.$a,f=c.Gb,g=c.j,c.scale=this.b.M.scale,c.$a=1,c.Gb=1,c.j=this.b.M.j,a.A(c.Ba(this.touches[0].x,
this.touches[0].y,!0)),c.scale=d,c.$a=e,c.Gb=f,c.j=g):(c=G(b)?this.b.fc(b):this.b.ke(b))?a.A(c.Ba(this.touches[0].x,this.touches[0].y,!0)):a.A(0)}else a.A(0)};m.prototype.Kj=function(a,b){if(this.touches.length){var c,d,e,f,g;ea(b)?(c=this.b.fc(0),d=c.scale,e=c.$a,f=c.Hb,g=c.j,c.scale=this.b.M.scale,c.$a=1,c.Hb=1,c.j=this.b.M.j,a.A(c.Ba(this.touches[0].x,this.touches[0].y,!1)),c.scale=d,c.$a=e,c.Hb=f,c.j=g):(c=G(b)?this.b.fc(b):this.b.ke(b))?a.A(c.Ba(this.touches[0].x,this.touches[0].y,!1)):a.A(0)}else a.A(0)};
c.p=new m})();
function Pb(){return[null,null,[[X,!1,!0,!0,!0,!1,!1,!1,!1,!1],[T,!0,!1,!1,!1,!1,!1,!1,!1,!1],[U,!0,!1,!1,!1,!1,!1,!1,!1,!1],[V,!0,!1,!1,!1,!1,!1,!1,!1,!1],[Qb,!1,!0,!0,!0,!0,!1,!1,!1,!1],[Rb,!1,!1,!1,!1,!1,!1,!1,!1,!1],[Sb,!1,!0,!0,!0,!0,!0,!0,!0,!1],[W,!1,!0,!0,!0,!0,!0,!0,!0,!1],[Tb,!1,!0,!0,!0,!0,!0,!0,!0,!0],[Z,!0,!1,!1,!1,!1,!1,!1,!1,!1]],[["t0",Tb,!1,[],0,0,["images/tiledbackground.png",6104,0],null,[],!1,!1,8416549937075832,[],null],["t1",Sb,!1,[],0,0,null,[["Default",15,!0,1,0,!1,434952326166111,
[["images/sprite-sheet0.png",102498,1,1,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,130,1,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,259,1,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,388,1,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,517,1,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,646,1,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,775,1,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",
102498,1,130,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,130,130,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,259,130,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,388,130,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,517,130,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,646,130,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,775,130,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,1,259,
128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,130,259,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,259,259,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,388,259,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,517,259,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,646,259,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,775,259,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,1,388,128,128,1,0.5,
0.5,[],[],0],["images/sprite-sheet0.png",102498,130,388,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,259,388,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,388,388,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,517,388,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,646,388,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,775,388,128,128,1,0.5,0.5,[],[],0],["images/sprite-sheet0.png",102498,1,517,128,128,1,0.5,0.5,[],[],0],
["images/sprite-sheet0.png",102498,130,517,128,128,1,0.5,0.5,[],[],0]]]],[],!1,!1,0x6d626ca7a3d4f,[],null],["t2",W,!1,[5630330490929945,0x8720830f1e055,9939010772575008],0,0,null,null,[],!1,!1,5469245135377829,[],null],["t3",U,!1,[],0,0,null,null,[],!1,!1,9389823733891532,[],null,[]],["t4",Sb,!1,[0xdb120d6dbf37d],0,0,null,[["Default",0,!1,0,0,!1,0x6d21fb973397b,[["images/poweredby-sheet0.png",116207,1,1,512,512,1,0.5,0.5,[],[],0],["images/poweredby-sheet0.png",116207,514,1,255,255,1,0.501961,0.501961,
[],[-0.243137,-0.243137,-0.00392181,-0.411765,0.286274,-0.290196,0.403921,-0.00392181,0.286274,0.286274,-0.00392181,0.396078,-0.239216,0.235294,-0.337255,-0.00392181],0],["images/poweredby-sheet0.png",116207,770,1,221,157,1,0.502262,0.503185,[],[],0]]]],[],!1,!1,0xd11dd0a3ae3f7,[],null],["t5",Z,!1,[],0,0,null,null,[],!1,!1,5607143702317399,[],null,[1]],["t6",V,!1,[],0,0,null,null,[],!1,!1,8721321096067244,[],null,[]],["t7",Qb,!1,[],0,0,null,null,[],!1,!1,0x90a764681629,[],null],["t8",Sb,!1,[],0,0,
null,[["Default",0,!1,0,0,!1,606307376851393,[["images/continue-sheet0.png",7597,0,0,300,80,1,0.5,0.5,[],[-0.44,-0.275,0,-0.3,0.43,-0.2375,0.436667,0,0.43,0.2375,0,0.3125,-0.443333,0.2875,-0.46,0],0]]]],[],!1,!1,5939046961871891,[],null],["t9",T,!1,[],0,0,null,null,[],!1,!1,6640633105548346,[],null,[]],["t10",X,!1,[],0,0,null,null,[],!1,!1,0xfcad6c67cff46,[],null],["t11",X,!1,[],0,0,null,null,[],!1,!1,9017043543476116,[],null],["t12",X,!1,[],0,0,null,null,[],!1,!1,5289904526103539,[],null],["t13",
X,!1,[],0,0,null,null,[],!1,!1,654364962391345,[],null],["t14",W,!1,[0xf9bb76c912d8f,9669110890110778,5118484753156278],0,0,null,null,[],!1,!1,724526204724919,[],null],["t15",W,!1,[],0,0,null,null,[],!1,!1,7735262219323318,[],null],["t16",Rb,!1,[],0,0,null,null,[],!0,!1,9614348378335264,[],null],["t17",W,!1,[],0,0,null,null,[],!1,!1,9818067309036680,[],null],["t18",W,!1,[],0,0,null,null,[],!1,!1,6141844188928929,[],null],["t19",W,!1,[],0,0,null,null,[],!1,!1,5043132107276015,[],null],["t20",W,!1,
[],0,0,null,null,[],!1,!1,6185220684147985,[],null],["t21",W,!1,[],0,0,null,null,[],!1,!1,0xb2a7c00f42f13,[],null],["t22",W,!1,[],0,0,null,null,[],!1,!1,9918379659287648,[],null],["t23",W,!1,[],0,0,null,null,[],!1,!1,0xc63c727ae1a14,[],null],["t24",W,!1,[],0,0,null,null,[],!1,!1,6104682242162318,[],null],["t25",W,!1,[],0,0,null,null,[],!1,!1,9922258424946126,[],null]],[],[["Loading",1E3,500,!1,"Loading",7514386715064213,[["Base",0,9508733595496752,!0,[19,20,38],!1,1,1,1,!1,1,0,0,[[[0,0,0,1E3,500,
0,0,1,0,0,0,0,[]],0,0,[],[],[0,0]]],[]],["Loading",1,0xaa80a7babe333,!0,[255,255,255],!0,1,1,1,!1,1,0,0,[[[500,250,0,64,64,0,0,1,0.5,0.5,0,0,[]],1,3,[],[],[0,"Default",0,1]],[[500,152,0,319,54,0,0,1,0.5,0.5,0,0,[]],2,4,[[0],[0],[""]],[],["CEX.IO Trader",0,"italic 20pt Britannic Bold","rgb(190,161,76)",1,1,1,0,0]],[[500,352,0,86,62,0,0,1,0.5,0.5,0,0,[]],2,5,[[1],[0],[""]],[],["Loading",0,"italic 14pt Britannic Bold","rgb(190,161,76)",1,0,1,0,0]],[[45,454,0,70,70,0,0,1,0.5,0.5,0,0,[]],4,7,[["https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5?redirectlocale=en-US&redirectslug=HTML%2FHTML5"]],
[],[0,"Default",0,1]],[[116,454,0,70,70,0,0,1,0.501961,0.501961,0,0,[]],4,8,[["https://www.scirra.com/"]],[],[0,"Default",1,1]],[[200.268,454,0,98.535,70,0,0,1,0.502262,0.503185,0,0,[]],4,9,[["http://php.net/releases/5_3_0.php"]],[],[0,"Default",2,1]],[[125.5,386,0,250,28,0,0,1,0.5,0.5,0,0,[]],2,10,[[0],[0],[""]],[],["Powered By",0,"italic 12pt Britannic Bold","rgb(190,161,76)",1,2,1,0,0]],[[266,47,0,468,60,0,0,1,0,0,0,0,[]],7,13,[],[],[1,'<a href="https://cex.io/r/0/HikeNH/0/" title="CEX.io - Bitcoin Commodity Exchange" target="_blank"><img src="http://cex.io/img/b/468x60-2.jpg" width="468" height="60" border="0" alt="CEX.io"></a>',
"","my_div"]],[[500,455,0,300,80,0,0,1,0.5,0.5,0,0,[]],8,14,[],[],[1,"Default",0,1]]],[]]],[[null,16,30,[],[],[]]],[]],["Bot",1E3,500,!1,"Bot",576573989410651,[["Layer 0",0,8823286334863381,!0,[19,20,38],!1,1,1,1,!1,1,0,0,[[[0,0,0,1E3,500,0,0,1,0,0,0,0,[]],0,1,[],[],[0,0]],[[304,1,0,319,54,0,0,1,0,0,0,0,[]],2,16,[[0],[0],[""]],[],["CEX.IO Trader",0,"italic 20pt Britannic Bold","rgb(190,161,76)",1,1,1,0,0]],[[603,469,0,363,22,0,0,1,0,0,0,0,[]],13,22,[],[],["19Te8HjKvCa8Zk9p55BAZGV41eEMzYfJzb","","",
1,1,1,0,0,"none","Helvetica","","","black",12,0,0,""]],[[782.5,436,0,361,64,0,0,1,0.5,0.5,0,0,[]],14,23,[[0],[0],[""]],[],["Please support this project. Send your spare bitcoins to:",0,"italic 10pt Britannic Bold","rgb(190,161,76)",1,1,1,0,0]],[[2,468,0,505,22,0,0,1,0,0,0,0,[]],13,24,[],[],["https://www.facebook.com/pages/CEXIO-Trader/546034618813380#","","",1,1,1,0,0,"none","Helvetica","","","black",12,0,0,""]],[[206,449,0,362,31,0,0,1,0.5,0.5,0,0,[]],14,25,[[0],[0],[""]],[],["Contact us",0,"italic 12pt Britannic Bold",
"rgb(190,161,76)",1,1,1,0,0]]],[]],["Layer 1",1,0x88b9eea2582b0,!0,[255,255,255],!0,1,1,1,!1,1,0,0,[[[450,60,0,407,30,0,0,1,0,0,0,0,[]],15,26,[],[],["GHS bought:",0,"10pt Arial","rgb(190,161,76)",0,1,0,0,0]],[[0,60,0,407,30,0,0,1,0,0,0,0,[]],17,31,[],[],["GHS Total:",0,"10pt Arial","rgb(190,161,76)",0,1,0,0,0]],[[0,90,0,407,30,0,0,1,0,0,0,0,[]],18,27,[],[],["NMC Total:",0,"10pt Arial","rgb(190,161,76)",0,1,0,0,0]],[[0,120,0,407,30,0,0,1,0,0,0,0,[]],19,28,[],[],["BTC Total:",0,"10pt Arial","rgb(190,161,76)",
0,1,0,0,0]],[[0,150,0,407,30,0,0,1,0,0,0,0,[]],20,29,[],[],["LTC Total:",0,"10pt Arial","rgb(190,161,76)",0,1,0,0,0]],[[0,180,0,407,30,0,0,1,0,0,0,0,[]],21,32,[],[],["IXC Total:",0,"10pt Arial","rgb(190,161,76)",0,1,0,0,0]],[[0,210,0,407,30,0,0,1,0,0,0,0,[]],22,33,[],[],["DVC Total:",0,"10pt Arial","rgb(190,161,76)",0,1,0,0,0]],[[450,90,0,407,30,0,0,1,0,0,0,0,[]],23,34,[],[],["NMC bought:",0,"10pt Arial","rgb(190,161,76)",0,1,0,0,0]],[[450,120,0,407,30,0,0,1,0,0,0,0,[]],24,35,[],[],["BTC bought:",
0,"10pt Arial","rgb(190,161,76)",0,1,0,0,0]],[[450,150,0,407,30,0,0,1,0,0,0,0,[]],25,36,[],[],["LTC bought:",0,"10pt Arial","rgb(190,161,76)",0,1,0,0,0]]],[]]],[],[]],["Setup",1E3,500,!1,"Setup",6624993895115554,[["Layer 0",0,7581159030652332,!0,[19,20,38],!1,1,1,1,!1,1,0,0,[[[0,0,0,1E3,500,0,0,1,0,0,0,0,[]],0,2,[],[],[0,0]],[[340.5,0,0,319,54,0,0,1,0,0,0,0,[]],2,17,[[0],[0],[""]],[],["CEX.IO Trader",0,"italic 20pt Britannic Bold","rgb(190,161,76)",1,1,1,0,0]],[[300,270,0,400,22,0,0,1,0,0,0,0,[]],
10,18,[],[],["","cex.io username","",1,1,0,0,0,"none","Helvetica","","","black",12,0,0,""]],[[300,313,0,400,22,0,0,1,0,0,0,0,[]],11,19,[],[],["","cex.io api key","",1,1,0,0,0,"none","Helvetica","","","black",12,0,0,""]],[[301,355,0,400,22,0,0,1,0,0,0,0,[]],12,20,[],[],["","cex.io secret key","",1,1,0,0,0,"none","Helvetica","","","black",12,0,0,""]],[[500,450,0,300,80,0,0,1,0.5,0.5,0,0,[]],8,21,[],[],[0,"Default",0,1]]],[]]],[],[]]],[["Loading",[[1,"indexurl",1,"",!1,!1,9815232245434768,!1],[1,"Our_URL",
1,"",!1,!1,8042722790135083,!1],[0,null,!1,null,0xf5f1121abce05,[[-1,S.prototype.e.eh,null,1,!1,!1,!1,0xbdf09f2e8c463,!1]],[[-1,S.prototype.k.Ij,null,0x629e7aec6e208,!1,[[11,"indexurl"],[7,[19,S.prototype.p.pd,[[19,S.prototype.p.pd,[[19,S.prototype.p.replace,[[20,3,U.prototype.p.URL,!0,null],[2,"index.html"],[2,""]]],[0,0],[2,"?"]]],[0,0],[2,"#"]]]]]]]],[0,null,!1,null,8754248003264593,[[-1,S.prototype.e.$l,null,0,!1,!1,!1,0x66cd6611fc0a3,!1]],[[6,V.prototype.k.jh,null,8345561503317867,!1,[[3,0]]]]],
[0,[!0,"Update"],!1,null,9057035162415216,[[-1,S.prototype.e.Qc,null,0,!1,!1,!1,9057035162415216,!1,[[1,[2,"Update"]]]]],[],[[0,null,!1,null,6437870240688738,[[3,U.prototype.e.wj,null,0,!1,!1,!1,5867549201340328,!1]],[[2,W.prototype.k.zm,null,0xd2cd5ed8ca8c3,!1,[[10,1],[7,[19,S.prototype.p.round,[[6,[19,S.prototype.p.Md],[0,100]]]]]]]],[[0,null,!1,null,5423940424476477,[[2,W.prototype.e.Lf,null,0,!1,!1,!1,7018879680426214,!1,[[10,0],[8,0],[7,[0,1]]]]],[[2,W.prototype.k.Vb,null,8777380532618347,!1,
[[7,[10,[10,[2,"Loading "],[21,2,!1,null,1]],[2,"%"]]]]]]]]],[0,null,!1,null,758980367148447,[[3,U.prototype.e.wj,null,0,!1,!0,!1,8955512223548964,!1]],[],[[0,null,!1,null,7124790386139191,[[2,W.prototype.e.Lf,null,0,!1,!1,!1,6337324065621706,!1,[[10,0],[8,0],[7,[0,1]]]]],[],[[0,null,!1,null,748682584623957,[[2,W.prototype.e.Lf,null,0,!1,!1,!1,0xcafdcadc686e5,!1,[[10,1],[8,2],[7,[0,100]]]]],[[2,W.prototype.k.Xl,null,0x72c3524939517,!1,[[10,1],[7,[1,0.1]]]],[2,W.prototype.k.Vb,null,7252994475080689,
!1,[[7,[10,[10,[2,"Loading "],[21,2,!1,null,1]],[2,"%"]]]]]]],[0,null,!1,null,0x48f9f03e79776,[[2,W.prototype.e.Lf,null,0,!1,!1,!1,9242280258706022,!1,[[10,1],[8,5],[7,[0,100]]]],[-1,S.prototype.e.Pe,null,0,!1,!1,!1,5823530980505401,!1]],[[2,W.prototype.k.Vb,null,9651791722879428,!1,[[7,[2,"Loading 100%"]]]],[-1,S.prototype.k.Ka,null,0x4058f95204d61,!1,[[1,[2,"Update"]],[3,0]]],[-1,S.prototype.k.Ka,null,0xbf22804883a3f,!1,[[1,[2,"Load_New"]],[3,1]]]]]]]]]]],[0,[!1,"Load_New"],!1,null,923438979095879,
[[-1,S.prototype.e.Qc,null,0,!1,!1,!1,923438979095879,!1,[[1,[2,"Load_New"]]]]],[],[[0,null,!1,null,928483821639243,[[5,Z.prototype.e.Oe,null,1,!1,!1,!1,8865547796851655,!1,[[4,8]]]],[[-1,S.prototype.k.Ka,null,773372671958301,!1,[[1,[2,"Load_New"]],[3,0]]],[-1,S.prototype.k.Ka,null,0x5884285bb5038,!1,[[1,[2,"Test_for_setup"]],[3,1]]]]],[0,null,!1,null,8476517707780829,[[6,V.prototype.e.Ne,null,1,!1,!1,!1,5978279444735609,!1,[[3,0],[3,0],[4,8]]]],[[-1,S.prototype.k.Ka,null,5813942019920393,!1,[[1,
[2,"Load_New"]],[3,0]]],[-1,S.prototype.k.Ka,null,8911193657240472,!1,[[1,[2,"Test_for_setup"]],[3,1]]]]],[0,null,!1,null,9293757079405096,[[8,Sb.prototype.e.am,null,0,!1,!0,!1,0xf4f8e9b7840dd,!1]],[[8,Sb.prototype.k.kh,null,0xf8b83102a44d0,!1,[[3,1]]]]]]],[0,null,!1,null,305532502834623,[[5,Z.prototype.e.Oe,null,1,!1,!1,!1,9802917385387058,!1,[[4,4]]]],[[3,U.prototype.k.vj,null,9115390468608448,!1,[[1,[21,4,!0,null,0]],[1,[2,"PoweredBy"]]]]]],[0,null,!1,null,4931031239897666,[[6,V.prototype.e.Ne,
null,1,!1,!1,!1,5800866059972412,!1,[[3,0],[3,0],[4,4]]]],[[3,U.prototype.k.vj,null,6948363645192114,!1,[[1,[21,4,!0,null,0]],[1,[2,"PoweredBy"]]]]]],[0,null,!1,null,6341659965194959,[[-1,S.prototype.e.eh,null,1,!1,!1,!1,0xec9be76d3a041,!1]],[[7,Qb.prototype.k.Am,null,0xecf305e4477a8,!1,[[0,[5,[20,1,Sb.prototype.p.Nf,!1,null],[7,[20,7,Qb.prototype.p.Nf,!1,null],[0,2]]]],[0,[19,S.prototype.p.zp,[[0,0]]]]]]]],[0,null,!0,null,6132519902796765,[[6,V.prototype.e.dh,null,0,!1,!1,!1,482591124985408,!1,[[4,
4]]],[6,V.prototype.e.dh,null,0,!1,!1,!1,569773779623428,!1,[[4,8]]]],[[6,V.prototype.k.jh,null,0xcade377d208b3,!1,[[3,1]]]]],[0,null,!1,null,0x485f20edd6498,[[6,V.prototype.e.dh,null,0,!1,!1,!1,345433723120326,!1,[[4,1]]]],[[6,V.prototype.k.jh,null,4924134655716001,!1,[[3,6]]]]],[0,null,!1,null,8870728636443886,[[3,U.prototype.e.Ej,null,1,!1,!1,!1,8676377982347331,!1]],[[-1,S.prototype.k.ym,null,0xdaeffa7ab24dd,!1],[-1,S.prototype.k.xm,null,7719988481146066,!1]]],[0,null,!1,null,8354288613797057,
[[3,U.prototype.e.hh,null,1,!1,!1,!1,0xc79aea4d1d01b,!1]],[[3,U.prototype.k.wm,null,6391786736175835,!1]]],[0,[!1,"Test_for_setup"],!1,null,0xb7ca83c8dccaa,[[-1,S.prototype.e.Qc,null,0,!1,!1,!1,0xb7ca83c8dccaa,!1,[[1,[2,"Test_for_setup"]]]]],[],[[0,null,!1,null,5426399920598919,[[-1,S.prototype.e.Pe,null,0,!1,!1,!1,7660358332808952,!1]],[[9,T.prototype.k.ih,null,7127390937934748,!1,[[1,[2,"options"]],[1,[10,[23,"indexurl"],[2,"php/save_options.php?option=test"]]]]]]],[0,null,!1,null,6884239516419108,
[[9,T.prototype.e.wc,null,1,!1,!1,!1,9701667791450678,!1,[[1,[2,"options"]]]]],[],[[0,null,!1,null,0xdcbf631e77d93,[[-1,S.prototype.e.$g,null,0,!1,!1,!1,673710119121182,!1,[[7,[20,9,T.prototype.p.vc,!0,null]],[8,0],[7,[2,"The file options.csv exists "]]]]],[[-1,S.prototype.k.Ka,null,9816711561419580,!1,[[1,[2,"Test_for_setup"]],[3,0]]],[-1,S.prototype.k.ah,null,6766921299152285,!1,[[6,"Bot"]]]]],[0,null,!1,null,7343015337989886,[[-1,S.prototype.e.uj,null,0,!1,!1,!1,0xe72f92f54679d,!1]],[[-1,S.prototype.k.Ka,
null,858553001675797,!1,[[1,[2,"Test_for_setup"]],[3,0]]],[-1,S.prototype.k.ah,null,0x397c385f5e214,!1,[[6,"Setup"]]]]]]]]]]],["Bot",[[1,"nonce",1,"",!1,!1,9297249983587544,!1],[1,"seconds",0,0,!1,!1,5438458361324411,!1],[0,[!0,"one"],!1,null,0xbd96a67a70edc,[[-1,S.prototype.e.Qc,null,0,!1,!1,!1,0xbd96a67a70edc,!1,[[1,[2,"one"]]]]],[],[[0,null,!1,null,9340653943552028,[[-1,S.prototype.e.Pe,null,0,!1,!1,!1,5856344758435089,!1]],[[-1,S.prototype.k.Em,null,8049193023915248,!1,[[0,[0,15]]]],[-1,S.prototype.k.Ka,
null,7873355318877522,!1,[[1,[2,"one"]],[3,0]]],[-1,S.prototype.k.Ka,null,4674085013152739,!1,[[1,[2,"two"]],[3,1]]],[2,W.prototype.k.Hj,null,6219299543185015,!1,[[0,[19,S.prototype.p.zl,[[0,255],[0,0],[0,0]]]]]]]]]],[0,[!1,"two"],!1,null,0xf8e4da1cc1ba1,[[-1,S.prototype.e.Qc,null,0,!1,!1,!1,0xf8e4da1cc1ba1,!1,[[1,[2,"two"]]]]],[],[[0,null,!1,null,6383325186152541,[[-1,S.prototype.e.Pe,null,0,!1,!1,!1,0xa344eb8a9d37c,!1]],[[-1,S.prototype.k.Ij,null,0xd6daa527a0510,!1,[[11,"nonce"],[7,[20,16,Rb.prototype.p.Dm,
!1,null]]]],[9,T.prototype.k.ih,null,4682583324573797,!1,[[1,[10,[2,"buy_it"],[23,"nonce"]]],[1,[10,[23,"indexurl"],[2,"php/api_post.php"]]]]]]],[0,null,!1,null,4775825443913161,[[9,T.prototype.e.wc,null,1,!1,!1,!1,5545454550648276,!1,[[1,[10,[2,"buy_it"],[23,"nonce"]]]]]],[[19,W.prototype.k.Vb,null,0x7762dcc00ff5e,!1,[[7,[10,[2,"BTC total:"],[19,S.prototype.p["float"],[[19,S.prototype.p.pd,[[20,9,T.prototype.p.vc,!0,null],[0,0],[2,","]]]]]]]]],[17,W.prototype.k.Vb,null,4620614042364183,!1,[[7,[10,
[2,"GHS total:"],[19,S.prototype.p["float"],[[19,S.prototype.p.pd,[[20,9,T.prototype.p.vc,!0,null],[0,1],[2,","]]]]]]]]],[21,W.prototype.k.Vb,null,0x4f69e6b2efb69,!1,[[7,[10,[2,"IXC total:"],[19,S.prototype.p["float"],[[19,S.prototype.p.pd,[[20,9,T.prototype.p.vc,!0,null],[0,2],[2,","]]]]]]]]],[22,W.prototype.k.Vb,null,8773566744774766,!1,[[7,[10,[2,"DVC total:"],[19,S.prototype.p["float"],[[19,S.prototype.p.pd,[[20,9,T.prototype.p.vc,!0,null],[0,3],[2,","]]]]]]]]],[18,W.prototype.k.Vb,null,0x7d58d328865a1,
!1,[[7,[10,[2,"NMC total:"],[19,S.prototype.p["float"],[[19,S.prototype.p.pd,[[20,9,T.prototype.p.vc,!0,null],[0,4],[2,","]]]]]]]]],[20,W.prototype.k.Vb,null,9500930962005404,!1,[[7,[10,[2,"LTC total:"],[19,S.prototype.p["float"],[[19,S.prototype.p.pd,[[20,9,T.prototype.p.vc,!0,null],[0,5],[2,","]]]]]]]]],[-1,S.prototype.k.Ka,null,0xdfc3b3faa9aef,!1,[[1,[2,"two"]],[3,0]]],[-1,S.prototype.k.Ka,null,0xeb9aafb061b8c,!1,[[1,[2,"one"]],[3,1]]],[2,W.prototype.k.Hj,null,0xf3463a0373fbe,!1,[[0,[19,S.prototype.p.zl,
[[0,190],[0,161],[0,76]]]]]]]]]]]],["Setup",[[0,null,!1,null,5099026530141057,[[5,Z.prototype.e.Oe,null,1,!1,!1,!1,371943168943392,!1,[[4,8]]],[-1,S.prototype.e.Qc,null,0,!1,!0,!1,886890489780823,!1,[[1,[2,"Save_options"]]]]],[[-1,S.prototype.k.Ka,null,9586390048900032,!1,[[1,[2,"Save_options"]],[3,1]]]]],[0,null,!1,null,6278781493651343,[[6,V.prototype.e.Ne,null,1,!1,!1,!1,4566298409568565,!1,[[3,0],[3,0],[4,8]]],[-1,S.prototype.e.Qc,null,0,!1,!0,!1,8534122369626691,!1,[[1,[2,"Save_options"]]]]],
[[-1,S.prototype.k.Ka,null,7156164623068285,!1,[[1,[2,"Save_options"]],[3,1]]]]],[0,[!1,"Save_options"],!1,null,9666045560114880,[[-1,S.prototype.e.Qc,null,0,!1,!1,!1,9666045560114880,!1,[[1,[2,"Save_options"]]]]],[],[[0,null,!1,null,0xc07d3fde5032f,[[-1,S.prototype.e.Pe,null,0,!1,!1,!1,0x8c895d7227870,!1]],[[9,T.prototype.k.ih,null,919073877062208,!1,[[1,[2,""]],[1,[10,[10,[10,[10,[10,[10,[23,"indexurl"],[2,"php/save_options.php?option=create&username="]],[20,10,X.prototype.p.Mf,!0,null]],[2,"&api="]],
[20,11,X.prototype.p.Mf,!0,null]],[2,"&secret="]],[20,12,X.prototype.p.Mf,!0,null]]]]]]]]],[0,null,!1,null,8730600646028923,[[9,T.prototype.e.wc,null,1,!1,!1,!1,0xf7cfa986f7c71,!1,[[1,[2,""]]]]],[],[[0,null,!1,null,0x98b030810480f,[[-1,S.prototype.e.$g,null,0,!1,!1,!1,0x8ec77b457fe4,!1,[[7,[20,9,T.prototype.p.vc,!0,null]],[8,0],[7,[2,"Created "]]]]],[[-1,S.prototype.k.Ka,null,0xc5891e365689,!1,[[1,[2,"Save_options"]],[3,0]]],[-1,S.prototype.k.ah,null,501191212656174,!1,[[6,"Bot"]]]]],[0,null,!1,null,
8360076340153541,[[-1,S.prototype.e.$g,null,0,!1,!1,!1,5461978013689307,!1,[[7,[20,9,T.prototype.p.vc,!0,null]],[8,1],[7,[2,"Created "]]]]],[[-1,S.prototype.k.Ka,null,9133388239998292,!1,[[1,[2,"Save_options"]],[3,0]]]]]]]]]],"media/",!1,1E3,500,4,!0,!0,!0,"1.0.0.0",!0,!1,0,0,37,!1,!0,[]]};