@builder.io/sdk-react-native 0.5.2 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/README.md +4 -0
  2. package/dist/blocks/button/button.js +2 -2
  3. package/dist/blocks/columns/columns.js +8 -4
  4. package/dist/blocks/img/img.js +1 -1
  5. package/dist/blocks/input/input.js +1 -1
  6. package/dist/blocks/section/section.js +1 -1
  7. package/dist/blocks/select/select.js +1 -1
  8. package/dist/blocks/submit-button/submit-button.js +1 -1
  9. package/dist/blocks/symbol/symbol.js +4 -2
  10. package/dist/blocks/textarea/textarea.js +1 -1
  11. package/dist/components/blocks/blocks-wrapper.js +4 -2
  12. package/dist/components/content/components/enable-editor.js +5 -4
  13. package/dist/components/content/content.js +3 -1
  14. package/dist/components/content-variants/content-variants.js +13 -6
  15. package/dist/constants/sdk-version.js +2 -1
  16. package/dist/functions/evaluate/acorn-interpreter.js +3101 -0
  17. package/dist/functions/evaluate/evaluate.js +2 -2
  18. package/dist/functions/evaluate/non-node-runtime/index.js +44 -0
  19. package/dist/functions/evaluate/{non-node-runtime.js → non-node-runtime/non-node-runtime.js} +4 -4
  20. package/package.json +12 -3
  21. package/src/components/content-variants/content-variants.jsx +13 -8
  22. package/src/constants/sdk-version.js +2 -1
  23. package/src/functions/evaluate/acorn-interpreter.js +2876 -0
  24. package/src/functions/evaluate/evaluate.js +1 -1
  25. package/src/functions/evaluate/non-node-runtime/index.js +18 -0
  26. package/src/functions/evaluate/{non-node-runtime.js → non-node-runtime/non-node-runtime.js} +3 -3
  27. package/dist/functions/evaluate/acorn.js +0 -1691
  28. package/dist/functions/evaluate/interpreter.js +0 -2903
  29. package/src/functions/evaluate/acorn.js +0 -1595
  30. package/src/functions/evaluate/interpreter.js +0 -2801
@@ -0,0 +1,3101 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = void 0;
4
+ var p;
5
+ var ca = function (a) {
6
+ function b(f) {
7
+ return 48 > f ? f === 36 : 58 > f ? true : 65 > f ? false : 91 > f ? true : 97 > f ? f === 95 : 123 > f ? true : 170 <= f && Jc.test(String.fromCharCode(f));
8
+ }
9
+ function d(f) {
10
+ return 65 > f ? f === 36 : 91 > f ? true : 97 > f ? f === 95 : 123 > f ? true : 170 <= f && Pb.test(String.fromCharCode(f));
11
+ }
12
+ function c(f, g) {
13
+ var l = r;
14
+ for (var n = 1, w = 0;;) {
15
+ Sa.lastIndex = w;
16
+ var J = Sa.exec(l);
17
+ if (J && J.index < f)
18
+ ++n, w = J.index + J[0].length;
19
+ else
20
+ break;
21
+ }
22
+ l = {
23
+ line: n,
24
+ ab: f - w
25
+ };
26
+ g += " (" + l.line + ":" + l.ab + ")";
27
+ g = new SyntaxError(g);
28
+ g.j = f;
29
+ g.X = l;
30
+ g.o = m;
31
+ throw g;
32
+ }
33
+ function e(f) {
34
+ f = f.split(" ");
35
+ for (var g = Object.create(null), l = 0; l < f.length; l++)
36
+ g[f[l]] = true;
37
+ return function (n) {
38
+ return g[n] || false;
39
+ };
40
+ }
41
+ function h() {
42
+ this.line = la;
43
+ this.ab = m - X;
44
+ }
45
+ function k(f, g) {
46
+ oa = m;
47
+ z.C && (cb = new h());
48
+ x = f;
49
+ C();
50
+ T = g;
51
+ ya = f.m;
52
+ }
53
+ function q() {
54
+ for (var f = m, g = z.va && z.C && new h(), l = r.charCodeAt(m += 2); m < pa && l !== 10 && l !== 13 && l !== 8232 && l !== 8233;)
55
+ ++m, l = r.charCodeAt(m);
56
+ z.va && z.va(false, r.slice(f + 2, m), f, m, g, z.C && new h());
57
+ }
58
+ function C() {
59
+ for (; m < pa;) {
60
+ var f = r.charCodeAt(m);
61
+ if (f === 32)
62
+ ++m;
63
+ else if (f === 13)
64
+ ++m, f = r.charCodeAt(m), f === 10 && ++m, z.C && (++la, X = m);
65
+ else if (f === 10 || f === 8232 || f === 8233)
66
+ ++m, z.C && (++la, X = m);
67
+ else if (8 < f && 14 > f)
68
+ ++m;
69
+ else if (f === 47) {
70
+ if (f = r.charCodeAt(m + 1), f === 42) {
71
+ f = void 0;
72
+ var g = z.va && z.C && new h(), l = m, n = r.indexOf("*/", m += 2);
73
+ n === -1 && c(m - 2, "Unterminated comment");
74
+ m = n + 2;
75
+ if (z.C)
76
+ for (Sa.lastIndex = l; (f = Sa.exec(r)) && f.index < m;)
77
+ ++la, X = f.index + f[0].length;
78
+ z.va && z.va(true, r.slice(l + 2, n), l, m, g, z.C && new h());
79
+ }
80
+ else if (f === 47)
81
+ q();
82
+ else
83
+ break;
84
+ }
85
+ else if (f === 160)
86
+ ++m;
87
+ else if (5760 <= f && Kc.test(String.fromCharCode(f)))
88
+ ++m;
89
+ else
90
+ break;
91
+ }
92
+ }
93
+ function U(f) {
94
+ switch (f) {
95
+ case 46:
96
+ f = r.charCodeAt(m + 1);
97
+ 48 <= f && 57 >= f ? Qb(true) : (++m, k(Rb));
98
+ return;
99
+ case 40:
100
+ return ++m, k(Y);
101
+ case 41:
102
+ return ++m, k(W);
103
+ case 59:
104
+ return ++m, k(Z);
105
+ case 44:
106
+ return ++m, k(ha);
107
+ case 91:
108
+ return ++m, k(db);
109
+ case 93:
110
+ return ++m, k(eb);
111
+ case 123:
112
+ return ++m, k(za);
113
+ case 125:
114
+ return ++m, k(qa);
115
+ case 58:
116
+ return ++m, k(Aa);
117
+ case 63:
118
+ return ++m, k(Sb);
119
+ case 48:
120
+ if (f = r.charCodeAt(m + 1), f === 120 || f === 88) {
121
+ m += 2;
122
+ f = Ba(16);
123
+ f === null && c(I + 2, "Expected hexadecimal number");
124
+ d(r.charCodeAt(m)) && c(m, "Identifier directly after number");
125
+ k(Ca, f);
126
+ return;
127
+ }
128
+ case 49:
129
+ case 50:
130
+ case 51:
131
+ case 52:
132
+ case 53:
133
+ case 54:
134
+ case 55:
135
+ case 56:
136
+ case 57:
137
+ return Qb(false);
138
+ case 34:
139
+ case 39:
140
+ m++;
141
+ for (var g = "";;) {
142
+ m >= pa && c(I, "Unterminated string constant");
143
+ var l = r.charCodeAt(m);
144
+ if (l === f) {
145
+ ++m;
146
+ k(Ta, g);
147
+ break;
148
+ }
149
+ if (l === 92) {
150
+ l = r.charCodeAt(++m);
151
+ var n = /^[0-7]+/.exec(r.slice(m, m + 3));
152
+ for (n && (n = n[0]); n && 255 < parseInt(n, 8);)
153
+ n = n.slice(0, -1);
154
+ n === "0" && (n = null);
155
+ ++m;
156
+ if (n)
157
+ S && c(m - 2, "Octal literal in strict mode"), g += String.fromCharCode(parseInt(n, 8)), m += n.length - 1;
158
+ else
159
+ switch (l) {
160
+ case 110:
161
+ g += "\n";
162
+ break;
163
+ case 114:
164
+ g += "\r";
165
+ break;
166
+ case 120:
167
+ g += String.fromCharCode(Ua(2));
168
+ break;
169
+ case 117:
170
+ g += String.fromCharCode(Ua(4));
171
+ break;
172
+ case 85:
173
+ g += String.fromCharCode(Ua(8));
174
+ break;
175
+ case 116:
176
+ g += " ";
177
+ break;
178
+ case 98:
179
+ g += "\b";
180
+ break;
181
+ case 118:
182
+ g += "\v";
183
+ break;
184
+ case 102:
185
+ g += "\f";
186
+ break;
187
+ case 48:
188
+ g += "\0";
189
+ break;
190
+ case 13:
191
+ r.charCodeAt(m) === 10 && ++m;
192
+ case 10:
193
+ z.C && (X = m, ++la);
194
+ break;
195
+ default:
196
+ g += String.fromCharCode(l);
197
+ }
198
+ }
199
+ else
200
+ l !== 13 && l !== 10 && l !== 8232 && l !== 8233 || c(I, "Unterminated string constant"), g += String.fromCharCode(l), ++m;
201
+ }
202
+ return;
203
+ case 47:
204
+ f = r.charCodeAt(m + 1);
205
+ ya ? (++m, Tb()) : f === 61 ? F(ma, 2) : F(Ub, 1);
206
+ return;
207
+ case 37:
208
+ case 42:
209
+ r.charCodeAt(m + 1) === 61 ? F(ma, 2) : F(Lc, 1);
210
+ return;
211
+ case 124:
212
+ case 38:
213
+ g = r.charCodeAt(m + 1);
214
+ g === f ? F(f === 124 ? Vb : Wb, 2) : g === 61 ? F(ma, 2) : F(f === 124 ? Mc : Nc, 1);
215
+ return;
216
+ case 94:
217
+ r.charCodeAt(m + 1) === 61 ? F(ma, 2) : F(Oc, 1);
218
+ return;
219
+ case 43:
220
+ case 45:
221
+ g = r.charCodeAt(m + 1);
222
+ g === f ? g === 45 && r.charCodeAt(m + 2) === 62 && Va.test(r.slice(ia, m)) ? (m += 3, q(), C(), N()) : F(Pc, 2) : g === 61 ? F(ma, 2) : F(Qc, 1);
223
+ return;
224
+ case 60:
225
+ case 62:
226
+ g = r.charCodeAt(m + 1);
227
+ l = 1;
228
+ g === f ? (l = f === 62 && r.charCodeAt(m + 2) === 62 ? 3 : 2, r.charCodeAt(m + l) === 61 ? F(ma, l + 1) : F(Rc, l)) : g === 33 && f === 60 && r.charCodeAt(m + 2) === 45 && r.charCodeAt(m + 3) === 45 ? (m += 4, q(), C(), N()) : (g === 61 && (l = r.charCodeAt(m + 2) === 61 ? 3 : 2), F(Sc, l));
229
+ return;
230
+ case 61:
231
+ case 33:
232
+ r.charCodeAt(m + 1) === 61 ? F(Tc, r.charCodeAt(m + 2) === 61 ? 3 : 2) : F(f === 61 ? Xb : Yb, 1);
233
+ return;
234
+ case 126:
235
+ return F(Yb, 1);
236
+ }
237
+ return false;
238
+ }
239
+ function N(f) {
240
+ f ? m = I + 1 : I = m;
241
+ z.C && (fb = new h());
242
+ if (f)
243
+ return Tb();
244
+ if (m >= pa)
245
+ return k(gb);
246
+ f = r.charCodeAt(m);
247
+ if (d(f) || f === 92)
248
+ return Zb();
249
+ if (U(f) === false) {
250
+ f = String.fromCharCode(f);
251
+ if (f === "\\" || Pb.test(f))
252
+ return Zb();
253
+ c(m, "Unexpected character '" + f + "'");
254
+ }
255
+ }
256
+ function F(f, g) {
257
+ var l = r.slice(m, m + g);
258
+ m += g;
259
+ k(f, l);
260
+ }
261
+ function Tb() {
262
+ for (var f, g, l = m;;) {
263
+ m >= pa && c(l, "Unterminated regexp");
264
+ var n = r.charAt(m);
265
+ Va.test(n) && c(l, "Unterminated regexp");
266
+ if (f)
267
+ f = false;
268
+ else {
269
+ if (n === "[")
270
+ g = true;
271
+ else if (n === "]" && g)
272
+ g = false;
273
+ else if (n === "/" && !g)
274
+ break;
275
+ f = n === "\\";
276
+ }
277
+ ++m;
278
+ }
279
+ f = r.slice(l, m);
280
+ ++m;
281
+ (g = $b()) && !/^[gmi]*$/.test(g) && c(l, "Invalid regexp flag");
282
+ try {
283
+ var w = new RegExp(f, g);
284
+ }
285
+ catch (J) {
286
+ throw J instanceof SyntaxError && c(l, J.message), J;
287
+ }
288
+ k(ac, w);
289
+ }
290
+ function Ba(f, g) {
291
+ for (var l = m, n = 0, w = g === void 0 ? Infinity : g, J = 0; J < w; ++J) {
292
+ var P = r.charCodeAt(m);
293
+ P = 97 <= P ? P - 97 + 10 : 65 <= P ? P - 65 + 10 : 48 <= P && 57 >= P ? P - 48 : Infinity;
294
+ if (P >= f)
295
+ break;
296
+ ++m;
297
+ n = n * f + P;
298
+ }
299
+ return m === l || g !== void 0 && m - l !== g ? null : n;
300
+ }
301
+ function Qb(f) {
302
+ var g = m, l = false, n = r.charCodeAt(m) === 48;
303
+ f || Ba(10) !== null || c(g, "Invalid number");
304
+ r.charCodeAt(m) === 46 && (++m, Ba(10), l = true);
305
+ f = r.charCodeAt(m);
306
+ if (f === 69 || f === 101)
307
+ f = r.charCodeAt(++m), f !== 43 && f !== 45 || ++m, Ba(10) === null && c(g, "Invalid number"), l = true;
308
+ d(r.charCodeAt(m)) && c(m, "Identifier directly after number");
309
+ f = r.slice(g, m);
310
+ var w;
311
+ l ? w = parseFloat(f) : n && f.length !== 1 ? /[89]/.test(f) || S ? c(g, "Invalid number") : w = parseInt(f, 8) : w = parseInt(f, 10);
312
+ k(Ca, w);
313
+ }
314
+ function Ua(f) {
315
+ f = Ba(16, f);
316
+ f === null && c(I, "Bad character escape sequence");
317
+ return f;
318
+ }
319
+ function $b() {
320
+ ra = false;
321
+ for (var f, g = true, l = m;;) {
322
+ var n = r.charCodeAt(m);
323
+ if (b(n))
324
+ ra && (f += r.charAt(m)), ++m;
325
+ else if (n === 92) {
326
+ ra || (f = r.slice(l, m));
327
+ ra = true;
328
+ r.charCodeAt(++m) !== 117 && c(m, "Expecting Unicode escape sequence \\uXXXX");
329
+ ++m;
330
+ n = Ua(4);
331
+ var w = String.fromCharCode(n);
332
+ w || c(m - 1, "Invalid Unicode escape");
333
+ (g ? d(n) : b(n)) || c(m - 4, "Invalid Unicode escape");
334
+ f += w;
335
+ }
336
+ else
337
+ break;
338
+ g = false;
339
+ }
340
+ return ra ? f : r.slice(l, m);
341
+ }
342
+ function Zb() {
343
+ var f = $b(), g = sa;
344
+ !ra && Uc(f) && (g = Vc[f]);
345
+ k(g, f);
346
+ }
347
+ function B() {
348
+ hb = I;
349
+ ia = oa;
350
+ ib = cb;
351
+ N();
352
+ }
353
+ function jb(f) {
354
+ S = f;
355
+ m = I;
356
+ if (z.C)
357
+ for (; m < X;)
358
+ X = r.lastIndexOf("\n", X - 2) + 1, --la;
359
+ C();
360
+ N();
361
+ }
362
+ function bc() {
363
+ this.type = null;
364
+ this.start = I;
365
+ this.end = null;
366
+ }
367
+ function cc() {
368
+ this.start = fb;
369
+ this.end = null;
370
+ kb && (this.source = kb);
371
+ }
372
+ function L() {
373
+ var f = new bc();
374
+ z.C && (f.X = new cc());
375
+ z.vb && (f.sourceFile = z.vb);
376
+ z.Xa && (f.j = [I, 0]);
377
+ return f;
378
+ }
379
+ function ja(f) {
380
+ var g = new bc();
381
+ g.start = f.start;
382
+ z.C && (g.X = new cc(), g.X.start = f.X.start);
383
+ z.Xa && (g.j = [f.j[0], 0]);
384
+ return g;
385
+ }
386
+ function y(f, g) {
387
+ f.type = g;
388
+ f.end = ia;
389
+ z.C && (f.X.end = ib);
390
+ z.Xa && (f.j[1] = ia);
391
+ return f;
392
+ }
393
+ function lb(f) {
394
+ return f.type === "ExpressionStatement" && f.la.type === "Literal" && f.la.value === "use strict";
395
+ }
396
+ function E(f) {
397
+ return x === f ? (B(), true) : false;
398
+ }
399
+ function Wa() {
400
+ return !z.fc && (x === gb || x === qa || Va.test(r.slice(ia, I)));
401
+ }
402
+ function na() {
403
+ E(Z) || Wa() || aa();
404
+ }
405
+ function G(f) {
406
+ x === f ? B() : aa();
407
+ }
408
+ function aa() {
409
+ c(I, "Unexpected token");
410
+ }
411
+ function Xa(f) {
412
+ f.type !== "Identifier" && f.type !== "MemberExpression" && c(f.start, "Assigning to rvalue");
413
+ S && f.type === "Identifier" && Ya(f.name) && c(f.start, "Assigning to " + f.name + " in strict mode");
414
+ }
415
+ function V() {
416
+ (x === Ub || x === ma && T === "/=") && N(true);
417
+ var f = x, g = L();
418
+ switch (f) {
419
+ case mb:
420
+ case dc:
421
+ B();
422
+ var l = f === mb;
423
+ E(Z) || Wa() ? g.label = null : x !== sa ? aa() : (g.label = ba(), na());
424
+ for (var n = 0; n < H.length; ++n) {
425
+ var w = H[n];
426
+ if (g.label === null || w.name === g.label.name) {
427
+ if (w.kind !== null && (l || w.kind === "loop"))
428
+ break;
429
+ if (g.label && l)
430
+ break;
431
+ }
432
+ }
433
+ n === H.length && c(g.start, "Unsyntactic " + f.l);
434
+ return y(g, l ? "BreakStatement" : "ContinueStatement");
435
+ case ec:
436
+ return B(), na(), y(g, "DebuggerStatement");
437
+ case fc:
438
+ return B(), H.push(nb), g.body = V(), H.pop(), G(ob), g.test = Da(), na(), y(g, "DoWhileStatement");
439
+ case gc:
440
+ B();
441
+ H.push(nb);
442
+ G(Y);
443
+ if (x === Z)
444
+ return pb(g, null);
445
+ if (x === qb)
446
+ return f = L(), B(), hc(f, true), y(f, "VariableDeclaration"), f.fa.length === 1 && E(Za) ? ic(g, f) : pb(g, f);
447
+ f = O(false, true);
448
+ return E(Za) ? (Xa(f), ic(g, f)) : pb(g, f);
449
+ case rb:
450
+ return B(), sb(g, true);
451
+ case jc:
452
+ return B(), g.test = Da(), g.da = V(), g.alternate = E(kc) ? V() : null, y(g, "IfStatement");
453
+ case lc:
454
+ return Ea || z.Ib || c(I, "'return' outside of function"), B(), E(Z) || Wa() ? g.K = null : (g.K = O(), na()), y(g, "ReturnStatement");
455
+ case tb:
456
+ B();
457
+ g.Qb = Da();
458
+ g.tb = [];
459
+ G(za);
460
+ for (H.push(Wc); x !== qa;)
461
+ x === ub || x === mc ? (f = x === ub, n && y(n, "SwitchCase"), g.tb.push(n = L()), n.da = [], B(), f ? n.test = O() : (l && c(hb, "Multiple default clauses"), l = true, n.test = null), G(Aa)) : (n || aa(), n.da.push(V()));
462
+ n && y(n, "SwitchCase");
463
+ B();
464
+ H.pop();
465
+ return y(g, "SwitchStatement");
466
+ case nc:
467
+ return B(), Va.test(r.slice(ia, I)) && c(ia, "Illegal newline after throw"), g.K = O(), na(), y(g, "ThrowStatement");
468
+ case oc:
469
+ return B(), g.block = Fa(), g.Ea = null, x === pc && (f = L(), B(), G(Y), f.Ua = ba(), S && Ya(f.Ua.name) && c(f.Ua.start, "Binding " + f.Ua.name + " in strict mode"), G(W), f.body = Fa(), g.Ea = y(f, "CatchClause")), g.fb = E(qc) ? Fa() : null, g.Ea || g.fb || c(g.start, "Missing catch or finally clause"), y(g, "TryStatement");
470
+ case qb:
471
+ return B(), hc(g), na(), y(g, "VariableDeclaration");
472
+ case ob:
473
+ return B(), g.test = Da(), H.push(nb), g.body = V(), H.pop(), y(g, "WhileStatement");
474
+ case rc:
475
+ return S && c(I, "'with' in strict mode"), B(), g.object = Da(), g.body = V(), y(g, "WithStatement");
476
+ case za:
477
+ return Fa();
478
+ case Z:
479
+ return B(), y(g, "EmptyStatement");
480
+ default:
481
+ l = T;
482
+ w = O();
483
+ if (f === sa && w.type === "Identifier" && E(Aa)) {
484
+ for (n = 0; n < H.length; ++n)
485
+ H[n].name === l && c(w.start, "Label '" + l + "' is already declared");
486
+ H.push({
487
+ name: l,
488
+ kind: x.W ? "loop" : x === tb ? "switch" : null
489
+ });
490
+ g.body = V();
491
+ H.pop();
492
+ g.label = w;
493
+ return y(g, "LabeledStatement");
494
+ }
495
+ g.la = w;
496
+ na();
497
+ return y(g, "ExpressionStatement");
498
+ }
499
+ }
500
+ function Da() {
501
+ G(Y);
502
+ var f = O();
503
+ G(W);
504
+ return f;
505
+ }
506
+ function Fa(f) {
507
+ var g = L(), l = true, n = false;
508
+ g.body = [];
509
+ for (G(za); !E(qa);) {
510
+ var w = V();
511
+ g.body.push(w);
512
+ if (l && f && lb(w)) {
513
+ var J = n;
514
+ jb(n = true);
515
+ }
516
+ l = false;
517
+ }
518
+ n && !J && jb(false);
519
+ return y(g, "BlockStatement");
520
+ }
521
+ function pb(f, g) {
522
+ f.ua = g;
523
+ G(Z);
524
+ f.test = x === Z ? null : O();
525
+ G(Z);
526
+ f.update = x === W ? null : O();
527
+ G(W);
528
+ f.body = V();
529
+ H.pop();
530
+ return y(f, "ForStatement");
531
+ }
532
+ function ic(f, g) {
533
+ f.left = g;
534
+ f.right = O();
535
+ G(W);
536
+ f.body = V();
537
+ H.pop();
538
+ return y(f, "ForInStatement");
539
+ }
540
+ function hc(f, g) {
541
+ f.fa = [];
542
+ for (f.kind = "var";;) {
543
+ var l = L();
544
+ l.id = ba();
545
+ S && Ya(l.id.name) && c(l.id.start, "Binding " + l.id.name + " in strict mode");
546
+ l.ua = E(Xb) ? O(true, g) : null;
547
+ f.fa.push(y(l, "VariableDeclarator"));
548
+ if (!E(ha))
549
+ break;
550
+ }
551
+ }
552
+ function O(f, g) {
553
+ var l = vb(g);
554
+ if (!f && x === ha) {
555
+ f = ja(l);
556
+ for (f.xb = [l]; E(ha);)
557
+ f.xb.push(vb(g));
558
+ return y(f, "SequenceExpression");
559
+ }
560
+ return l;
561
+ }
562
+ function vb(f) {
563
+ var g = wb(xb(), -1, f);
564
+ if (E(Sb)) {
565
+ var l = ja(g);
566
+ l.test = g;
567
+ l.da = O(true);
568
+ G(Aa);
569
+ l.alternate = O(true, f);
570
+ g = y(l, "ConditionalExpression");
571
+ }
572
+ return x.Cb ? (l = ja(g), l.operator = T, l.left = g, B(), l.right = vb(f), Xa(g), y(l, "AssignmentExpression")) : g;
573
+ }
574
+ function wb(f, g, l) {
575
+ var n = x.L;
576
+ if (n !== null && (!l || x !== Za) && n > g) {
577
+ var w = ja(f);
578
+ w.left = f;
579
+ w.operator = T;
580
+ f = x;
581
+ B();
582
+ w.right = wb(xb(), n, l);
583
+ n = y(w, f === Vb || f === Wb ? "LogicalExpression" : "BinaryExpression");
584
+ return wb(n, g, l);
585
+ }
586
+ return f;
587
+ }
588
+ function xb() {
589
+ if (x.prefix) {
590
+ var f = L(), g = x.$b;
591
+ f.operator = T;
592
+ ya = f.prefix = true;
593
+ B();
594
+ f.K = xb();
595
+ g ? Xa(f.K) : S && f.operator === "delete" && f.K.type === "Identifier" && c(f.start, "Deleting local variable in strict mode");
596
+ return y(f, g ? "UpdateExpression" : "UnaryExpression");
597
+ }
598
+ for (g = Ga($a()); x.cc && !Wa();)
599
+ f = ja(g), f.operator = T, f.prefix = false, f.K = g, Xa(g), B(), g = y(f, "UpdateExpression");
600
+ return g;
601
+ }
602
+ function Ga(f, g) {
603
+ if (E(Rb)) {
604
+ var l = ja(f);
605
+ l.object = f;
606
+ l.Wa = ba(true);
607
+ l.bb = false;
608
+ return Ga(y(l, "MemberExpression"), g);
609
+ }
610
+ return E(db) ? (l = ja(f), l.object = f, l.Wa = O(), l.bb = true, G(eb), Ga(y(l, "MemberExpression"), g)) : !g && E(Y) ? (l = ja(f), l.callee = f, l.arguments = yb(W, false), Ga(y(l, "CallExpression"), g)) : f;
611
+ }
612
+ function $a() {
613
+ switch (x) {
614
+ case sc:
615
+ var f = L();
616
+ B();
617
+ return y(f, "ThisExpression");
618
+ case sa:
619
+ return ba();
620
+ case Ca:
621
+ case Ta:
622
+ case ac:
623
+ return f = L(), f.value = T, f.raw = r.slice(I, oa), B(), y(f, "Literal");
624
+ case tc:
625
+ case uc:
626
+ case vc:
627
+ return f = L(), f.value = x.$a, f.raw = x.l, B(), y(f, "Literal");
628
+ case Y:
629
+ f = fb;
630
+ var g = I;
631
+ B();
632
+ var l = O();
633
+ l.start = g;
634
+ l.end = oa;
635
+ z.C && (l.X.start = f, l.X.end = cb);
636
+ z.Xa && (l.j = [g, oa]);
637
+ G(W);
638
+ return l;
639
+ case db:
640
+ return f = L(), B(), f.elements = yb(eb, true, true), y(f, "ArrayExpression");
641
+ case za:
642
+ f = L();
643
+ g = true;
644
+ l = false;
645
+ f.h = [];
646
+ for (B(); !E(qa);) {
647
+ if (g)
648
+ g = false;
649
+ else if (G(ha), z.sb && E(qa))
650
+ break;
651
+ var n = {
652
+ key: x === Ca || x === Ta ? $a() : ba(true)
653
+ }, w = false;
654
+ if (E(Aa)) {
655
+ n.value = O(true);
656
+ var J = n.kind = "init";
657
+ }
658
+ else
659
+ n.key.type !== "Identifier" || n.key.name !== "get" && n.key.name !== "set" ? aa() : (w = l = true, J = n.kind = n.key.name, n.key = x === Ca || x === Ta ? $a() : ba(true), x !== Y && aa(), n.value = sb(L(), false));
660
+ if (n.key.type === "Identifier" && (S || l))
661
+ for (var P = 0; P < f.h.length; ++P) {
662
+ var ta = f.h[P];
663
+ if (ta.key.name === n.key.name) {
664
+ var zb = J === ta.kind || w && ta.kind === "init" || J === "init" && (ta.kind === "get" || ta.kind === "set");
665
+ zb && !S && J === "init" && ta.kind === "init" && (zb = false);
666
+ zb && c(n.key.start, "Redefinition of property");
667
+ }
668
+ }
669
+ f.h.push(n);
670
+ }
671
+ return y(f, "ObjectExpression");
672
+ case rb:
673
+ return f = L(), B(), sb(f, false);
674
+ case wc:
675
+ return f = L(), B(), f.callee = Ga($a(), true), f.arguments = E(Y) ? yb(W, false) : Xc, y(f, "NewExpression");
676
+ }
677
+ aa();
678
+ }
679
+ function sb(f, g) {
680
+ x === sa ? f.id = ba() : g ? aa() : f.id = null;
681
+ f.oa = [];
682
+ var l = true;
683
+ for (G(Y); !E(W);)
684
+ l ? l = false : G(ha), f.oa.push(ba());
685
+ l = Ea;
686
+ var n = H;
687
+ Ea = true;
688
+ H = [];
689
+ f.body = Fa(true);
690
+ Ea = l;
691
+ H = n;
692
+ if (S || f.body.body.length && lb(f.body.body[0])) {
693
+ for (l = f.id ? -1 : 0; l < f.oa.length; ++l)
694
+ if (n = 0 > l ? f.id : f.oa[l], (xc(n.name) || Ya(n.name)) && c(n.start, "Defining '" + n.name + "' in strict mode"), 0 <= l)
695
+ for (var w = 0; w < l; ++w)
696
+ n.name === f.oa[w].name && c(n.start, "Argument name clash in strict mode");
697
+ }
698
+ return y(f, g ? "FunctionDeclaration" : "FunctionExpression");
699
+ }
700
+ function yb(f, g, l) {
701
+ for (var n = [], w = true; !E(f);) {
702
+ if (w)
703
+ w = false;
704
+ else if (G(ha), g && z.sb && E(f))
705
+ break;
706
+ n.push(l && x === ha ? null : O(true));
707
+ }
708
+ return n;
709
+ }
710
+ function ba(f) {
711
+ var g = L();
712
+ f && z.yb === "everywhere" && (f = false);
713
+ x === sa ? (!f && (z.yb && Yc(T) || S && xc(T)) && r.slice(I, oa).indexOf("\\") === -1 && c(I, "The keyword '" + T + "' is reserved"), g.name = T) : f && x.l ? g.name = x.l : aa();
714
+ ya = false;
715
+ B();
716
+ return y(g, "Identifier");
717
+ }
718
+ a.version = "0.5.0";
719
+ var z, r = "", pa, kb;
720
+ a.parse = function (f, g) {
721
+ r = String(f);
722
+ pa = r.length;
723
+ z = g || {};
724
+ for (var l in yc)
725
+ Object.prototype.hasOwnProperty.call(z, l) || (z[l] = yc[l]);
726
+ kb = z.sourceFile;
727
+ la = 1;
728
+ m = X = 0;
729
+ ya = true;
730
+ C();
731
+ l = z.dc;
732
+ hb = ia = m;
733
+ z.C && (ib = new h());
734
+ Ea = S = false;
735
+ H = [];
736
+ N();
737
+ f = l || L();
738
+ g = true;
739
+ l || (f.body = []);
740
+ for (; x !== gb;)
741
+ l = V(), f.body.push(l), g && lb(l) && jb(true), g = false;
742
+ return y(f, "Program");
743
+ };
744
+ var yc = {
745
+ fc: false,
746
+ sb: true,
747
+ yb: false,
748
+ Ib: false,
749
+ C: false,
750
+ va: null,
751
+ Xa: false,
752
+ dc: null,
753
+ sourceFile: null,
754
+ vb: null
755
+ }, m = 0, I = 0, oa = 0, fb, cb, x, T, ya, la, X, hb = 0, ia = 0, ib, Ea, H, S, Xc = [], Ca = {
756
+ type: "num"
757
+ }, ac = {
758
+ type: "regexp"
759
+ }, Ta = {
760
+ type: "string"
761
+ }, sa = {
762
+ type: "name"
763
+ }, gb = {
764
+ type: "eof"
765
+ }, mb = {
766
+ l: "break"
767
+ }, ub = {
768
+ l: "case",
769
+ m: true
770
+ }, pc = {
771
+ l: "catch"
772
+ }, dc = {
773
+ l: "continue"
774
+ }, ec = {
775
+ l: "debugger"
776
+ }, mc = {
777
+ l: "default"
778
+ }, fc = {
779
+ l: "do",
780
+ W: true
781
+ }, kc = {
782
+ l: "else",
783
+ m: true
784
+ }, qc = {
785
+ l: "finally"
786
+ }, gc = {
787
+ l: "for",
788
+ W: true
789
+ }, rb = {
790
+ l: "function"
791
+ }, jc = {
792
+ l: "if"
793
+ }, lc = {
794
+ l: "return",
795
+ m: true
796
+ }, tb = {
797
+ l: "switch"
798
+ }, nc = {
799
+ l: "throw",
800
+ m: true
801
+ }, oc = {
802
+ l: "try"
803
+ }, qb = {
804
+ l: "var"
805
+ }, ob = {
806
+ l: "while",
807
+ W: true
808
+ }, rc = {
809
+ l: "with"
810
+ }, wc = {
811
+ l: "new",
812
+ m: true
813
+ }, sc = {
814
+ l: "this"
815
+ }, tc = {
816
+ l: "null",
817
+ $a: null
818
+ }, uc = {
819
+ l: "true",
820
+ $a: true
821
+ }, vc = {
822
+ l: "false",
823
+ $a: false
824
+ }, Za = {
825
+ l: "in",
826
+ L: 7,
827
+ m: true
828
+ }, Vc = {
829
+ "break": mb,
830
+ "case": ub,
831
+ "catch": pc,
832
+ "continue": dc,
833
+ "debugger": ec,
834
+ "default": mc,
835
+ "do": fc,
836
+ "else": kc,
837
+ "finally": qc,
838
+ "for": gc,
839
+ "function": rb,
840
+ "if": jc,
841
+ "return": lc,
842
+ "switch": tb,
843
+ "throw": nc,
844
+ "try": oc,
845
+ "var": qb,
846
+ "while": ob,
847
+ "with": rc,
848
+ "null": tc,
849
+ "true": uc,
850
+ "false": vc,
851
+ "new": wc,
852
+ "in": Za,
853
+ "instanceof": {
854
+ l: "instanceof",
855
+ L: 7,
856
+ m: true
857
+ },
858
+ "this": sc,
859
+ "typeof": {
860
+ l: "typeof",
861
+ prefix: true,
862
+ m: true
863
+ },
864
+ "void": {
865
+ l: "void",
866
+ prefix: true,
867
+ m: true
868
+ },
869
+ "delete": {
870
+ l: "delete",
871
+ prefix: true,
872
+ m: true
873
+ }
874
+ }, db = {
875
+ type: "[",
876
+ m: true
877
+ }, eb = {
878
+ type: "]"
879
+ }, za = {
880
+ type: "{",
881
+ m: true
882
+ }, qa = {
883
+ type: "}"
884
+ }, Y = {
885
+ type: "(",
886
+ m: true
887
+ }, W = {
888
+ type: ")"
889
+ }, ha = {
890
+ type: ",",
891
+ m: true
892
+ }, Z = {
893
+ type: ";",
894
+ m: true
895
+ }, Aa = {
896
+ type: ":",
897
+ m: true
898
+ }, Rb = {
899
+ type: "."
900
+ }, Sb = {
901
+ type: "?",
902
+ m: true
903
+ }, Ub = {
904
+ L: 10,
905
+ m: true
906
+ }, Xb = {
907
+ Cb: true,
908
+ m: true
909
+ }, ma = {
910
+ Cb: true,
911
+ m: true
912
+ }, Pc = {
913
+ cc: true,
914
+ prefix: true,
915
+ $b: true
916
+ }, Yb = {
917
+ prefix: true,
918
+ m: true
919
+ }, Vb = {
920
+ L: 1,
921
+ m: true
922
+ }, Wb = {
923
+ L: 2,
924
+ m: true
925
+ }, Mc = {
926
+ L: 3,
927
+ m: true
928
+ }, Oc = {
929
+ L: 4,
930
+ m: true
931
+ }, Nc = {
932
+ L: 5,
933
+ m: true
934
+ }, Tc = {
935
+ L: 6,
936
+ m: true
937
+ }, Sc = {
938
+ L: 7,
939
+ m: true
940
+ }, Rc = {
941
+ L: 8,
942
+ m: true
943
+ }, Qc = {
944
+ L: 9,
945
+ prefix: true,
946
+ m: true
947
+ }, Lc = {
948
+ L: 10,
949
+ m: true
950
+ }, Yc = e("class enum extends super const export import"), xc = e("implements interface let package private protected public static yield"), Ya = e("eval arguments"), Uc = e("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Kc = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Pb = RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]"), Jc = RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u0620-\u0649\u0672-\u06D3\u06E7-\u06E8\u06FB-\u06FC\u0730-\u074A\u0800-\u0814\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0840-\u0857\u08E4-\u08FE\u0900-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09D7\u09DF-\u09E0\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5F-\u0B60\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2-\u0CE3\u0CE6-\u0CEF\u0D02\u0D03\u0D46-\u0D48\u0D57\u0D62-\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E34-\u0E3A\u0E40-\u0E45\u0E50-\u0E59\u0EB4-\u0EB9\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F41-\u0F47\u0F71-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1029\u1040-\u1049\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u170E-\u1710\u1720-\u1730\u1740-\u1750\u1772\u1773\u1780-\u17B2\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1920-\u192B\u1930-\u193B\u1951-\u196D\u19B0-\u19C0\u19C8-\u19C9\u19D0-\u19D9\u1A00-\u1A15\u1A20-\u1A53\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1B46-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C00-\u1C22\u1C40-\u1C49\u1C5B-\u1C7D\u1CD0-\u1CD2\u1D00-\u1DBE\u1E01-\u1F15\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2D81-\u2D96\u2DE0-\u2DFF\u3021-\u3028\u3099\u309A\uA640-\uA66D\uA674-\uA67D\uA69F\uA6F0-\uA6F1\uA7F8-\uA800\uA806\uA80B\uA823-\uA827\uA880-\uA881\uA8B4-\uA8C4\uA8D0-\uA8D9\uA8F3-\uA8F7\uA900-\uA909\uA926-\uA92D\uA930-\uA945\uA980-\uA983\uA9B3-\uA9C0\uAA00-\uAA27\uAA40-\uAA41\uAA4C-\uAA4D\uAA50-\uAA59\uAA7B\uAAE0-\uAAE9\uAAF2-\uAAF3\uABC0-\uABE1\uABEC\uABED\uABF0-\uABF9\uFB20-\uFB28\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]"), Va = /[\n\r\u2028\u2029]/, Sa = /\r\n|[\n\r\u2028\u2029]/g, ra, nb = {
951
+ kind: "loop"
952
+ }, Wc = {
953
+ kind: "switch"
954
+ };
955
+ };
956
+ var __this = __this = typeof globalThis === "undefined" ? void 0 : globalThis;
957
+ ca(__this.j || (__this.j = {}));
958
+ function t(a, b) {
959
+ typeof a === "string" && (a = da(a, "code"));
960
+ var d = a.constructor;
961
+ this.ya = function () {
962
+ return new d({
963
+ options: {}
964
+ });
965
+ };
966
+ var c = this.ya(), e;
967
+ for (e in a)
968
+ c[e] = e === "body" ? a[e].slice() : a[e];
969
+ this.ra = c;
970
+ this.ca = [];
971
+ this.qb = b;
972
+ this.za = false;
973
+ this.ba = [];
974
+ this.Ya = 0;
975
+ this.rb = Object.create(null);
976
+ a = /^step([A-Z]\w*)$/;
977
+ var h, k;
978
+ for (k in this)
979
+ typeof this[k] === "function" && (h = k.match(a)) && (this.rb[h[1]] = this[k].bind(this));
980
+ this.N = ea(this, this.ra, null);
981
+ this.Na = this.N.object;
982
+ this.ra = da(this.ba.join("\n"), "polyfills");
983
+ this.ba = void 0;
984
+ fa(this.ra);
985
+ h = new u(this.ra, this.N);
986
+ h.done = false;
987
+ this.o = [h];
988
+ this.Eb();
989
+ this.value = void 0;
990
+ this.ra = c;
991
+ h = new u(this.ra, this.N);
992
+ h.done = false;
993
+ this.o.length = 0;
994
+ this.o[0] = h;
995
+ }
996
+ var ka = {
997
+ C: true,
998
+ kc: 5
999
+ }, ua = {
1000
+ configurable: true,
1001
+ enumerable: true,
1002
+ writable: false
1003
+ }, v = {
1004
+ configurable: true,
1005
+ enumerable: false,
1006
+ writable: true
1007
+ }, A = {
1008
+ configurable: true,
1009
+ enumerable: false,
1010
+ writable: false
1011
+ }, va = {
1012
+ configurable: false,
1013
+ enumerable: false,
1014
+ writable: false
1015
+ }, wa = {
1016
+ configurable: false,
1017
+ enumerable: true,
1018
+ writable: true
1019
+ }, xa = {
1020
+ STEP_ERROR: true
1021
+ }, Ha = {
1022
+ SCOPE_REFERENCE: true
1023
+ }, Ia = {
1024
+ VALUE_IN_DESCRIPTOR: true
1025
+ }, Ja = {
1026
+ REGEXP_TIMEOUT: true
1027
+ }, Ka = [], La = null, Ma = null, Na = typeof globalThis === "undefined" ? void 0 : globalThis, Oa = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
1028
+ function Pa(a) {
1029
+ var b = a >>> 0;
1030
+ return b === Number(a) ? b : NaN;
1031
+ }
1032
+ function Qa(a) {
1033
+ var b = a >>> 0;
1034
+ return String(b) === String(a) && b !== 4294967295 ? b : NaN;
1035
+ }
1036
+ function fa(a, b, d) {
1037
+ b ? a.start = b : delete a.start;
1038
+ d ? a.end = d : delete a.end;
1039
+ for (var c in a)
1040
+ if (c !== "loc" && a.hasOwnProperty(c)) {
1041
+ var e = a[c];
1042
+ e && typeof e === "object" && fa(e, b, d);
1043
+ }
1044
+ }
1045
+ t.prototype.REGEXP_MODE = 2;
1046
+ t.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
1047
+ t.prototype.POLYFILL_TIMEOUT = 1e3;
1048
+ p = t.prototype;
1049
+ p.P = false;
1050
+ p.Ka = false;
1051
+ p.Kb = 0;
1052
+ p.ic = 0;
1053
+ function da(a, b) {
1054
+ var d = {}, c;
1055
+ for (c in ka)
1056
+ d[c] = ka[c];
1057
+ d.sourceFile = b;
1058
+ return Na.j.parse(a, d);
1059
+ }
1060
+ p.Jb = function (a) {
1061
+ var b = this.o[0];
1062
+ if (!b || b.node.type !== "Program")
1063
+ throw Error("Expecting original AST to start with a Program node");
1064
+ typeof a === "string" && (a = da(a, "appendCode" + this.Kb++));
1065
+ if (!a || a.type !== "Program")
1066
+ throw Error("Expecting new AST to start with a Program node");
1067
+ Ra(this, a, b.scope);
1068
+ Array.prototype.push.apply(b.node.body, a.body);
1069
+ b.node.body.jb = null;
1070
+ b.done = false;
1071
+ };
1072
+ p.lb = function () {
1073
+ var a = this.o, b;
1074
+ do {
1075
+ var d = a[a.length - 1];
1076
+ if (this.za)
1077
+ break;
1078
+ else if (!d || d.node.type === "Program" && d.done) {
1079
+ if (!this.ca.length)
1080
+ return false;
1081
+ d = this.ca[0];
1082
+ if (!d || d.time > Date.now())
1083
+ d = null;
1084
+ else {
1085
+ this.ca.shift();
1086
+ 0 <= d.interval && ab(this, d, d.interval);
1087
+ var c = new u(d.node, d.scope);
1088
+ d.zb && (c.ia = 2, c.B = this.Na, c.U = d.zb, c.Qa = true, c.F = d.Lb);
1089
+ d = c;
1090
+ }
1091
+ if (!d)
1092
+ break;
1093
+ }
1094
+ c = d.node;
1095
+ var e = Ma;
1096
+ Ma = this;
1097
+ try {
1098
+ var h = this.rb[c.type](a, d, c);
1099
+ }
1100
+ catch (k) {
1101
+ if (k !== xa)
1102
+ throw this.value !== k && (this.value = void 0), k;
1103
+ }
1104
+ finally {
1105
+ Ma = e;
1106
+ }
1107
+ h && a.push(h);
1108
+ if (this.P)
1109
+ throw this.value = void 0, Error("Getter not supported in this context");
1110
+ if (this.Ka)
1111
+ throw this.value = void 0, Error("Setter not supported in this context");
1112
+ b || c.end || (b = Date.now() + this.POLYFILL_TIMEOUT);
1113
+ } while (!c.end && b > Date.now());
1114
+ return true;
1115
+ };
1116
+ p.Eb = function () {
1117
+ for (; !this.za && this.lb();)
1118
+ ;
1119
+ return this.za;
1120
+ };
1121
+ function bb(a, b) {
1122
+ a.g(b, "NaN", NaN, va);
1123
+ a.g(b, "Infinity", Infinity, va);
1124
+ a.g(b, "undefined", void 0, va);
1125
+ a.g(b, "window", b, ua);
1126
+ a.g(b, "this", b, va);
1127
+ a.g(b, "self", b);
1128
+ a.M = new D(null);
1129
+ a.Z = new D(a.M);
1130
+ Ab(a, b);
1131
+ Bb(a, b);
1132
+ b.xa = a.M;
1133
+ a.g(b, "constructor", a.v, v);
1134
+ Cb(a, b);
1135
+ Db(a, b);
1136
+ Eb(a, b);
1137
+ Fb(a, b);
1138
+ Gb(a, b);
1139
+ Hb(a, b);
1140
+ Ib(a, b);
1141
+ Jb(a, b);
1142
+ Kb(a, b);
1143
+ var d = a.i(function () {
1144
+ throw EvalError("Can't happen");
1145
+ }, false);
1146
+ d.eval = true;
1147
+ a.g(b, "eval", d, v);
1148
+ a.g(b, "parseInt", a.i(parseInt, false), v);
1149
+ a.g(b, "parseFloat", a.i(parseFloat, false), v);
1150
+ a.g(b, "isNaN", a.i(isNaN, false), v);
1151
+ a.g(b, "isFinite", a.i(isFinite, false), v);
1152
+ for (var c = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], e = 0; e < c.length; e++)
1153
+ d = function (h) {
1154
+ return function (k) {
1155
+ try {
1156
+ return h(k);
1157
+ }
1158
+ catch (q) {
1159
+ K(a, a.Gb, q.message);
1160
+ }
1161
+ };
1162
+ }(c[e][0]), a.g(b, c[e][1], a.i(d, false), v);
1163
+ d = function (h) {
1164
+ return Lb(a, false, arguments);
1165
+ };
1166
+ a.g(b, "setTimeout", a.i(d, false), v);
1167
+ d = function (h) {
1168
+ return Lb(a, true, arguments);
1169
+ };
1170
+ a.g(b, "setInterval", a.i(d, false), v);
1171
+ d = function (h) {
1172
+ Mb(a, h);
1173
+ };
1174
+ a.g(b, "clearTimeout", a.i(d, false), v);
1175
+ d = function (h) {
1176
+ Mb(a, h);
1177
+ };
1178
+ a.g(b, "clearInterval", a.i(d, false), v);
1179
+ a.OBJECT = a.v;
1180
+ a.OBJECT_PROTO = a.M;
1181
+ a.FUNCTION = a.O;
1182
+ a.FUNCTION_PROTO = a.Z;
1183
+ a.ARRAY = a.qa;
1184
+ a.ARRAY_PROTO = a.La;
1185
+ a.REGEXP = a.I;
1186
+ a.REGEXP_PROTO = a.Ma;
1187
+ a.DATE = a.$;
1188
+ a.DATE_PROTO = a.nb;
1189
+ a.qb && a.qb(a, b);
1190
+ }
1191
+ p.Wb = 0;
1192
+ function Ab(a, b) {
1193
+ var d = /^[A-Za-z_$][\w$]*$/;
1194
+ var c = function (e) {
1195
+ var h = arguments.length ? String(arguments[arguments.length - 1]) : "", k = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
1196
+ if (k) {
1197
+ k = k.split(/\s*,\s*/);
1198
+ for (var q = 0; q < k.length; q++) {
1199
+ var C = k[q];
1200
+ d.test(C) || K(a, a.T, "Invalid function argument: " + C);
1201
+ }
1202
+ k = k.join(", ");
1203
+ }
1204
+ try {
1205
+ var U = da("(function(" + k + ") {" + h + "})", "function" + a.Wb++);
1206
+ }
1207
+ catch (N) {
1208
+ K(a, a.T, "Invalid code: " + N.message);
1209
+ }
1210
+ U.body.length !== 1 && K(a, a.T, "Invalid code in function body");
1211
+ return Nb(a, U.body[0].la, a.N, "anonymous");
1212
+ };
1213
+ a.O = a.i(c, true);
1214
+ a.g(b, "Function", a.O, v);
1215
+ a.g(a.O, "prototype", a.Z, v);
1216
+ a.g(a.Z, "constructor", a.O, v);
1217
+ a.Z.Ta = function () { };
1218
+ a.Z.Ta.id = a.Ya++;
1219
+ a.Z.Ab = true;
1220
+ a.g(a.Z, "length", 0, A);
1221
+ a.Z.H = "Function";
1222
+ c = function (e, h) {
1223
+ var k = a.o[a.o.length - 1];
1224
+ k.U = this;
1225
+ k.B = e;
1226
+ k.F = [];
1227
+ h !== null && h !== void 0 && (h instanceof D ? k.F = Ob(a, h) : K(a, a.j, "CreateListFromArrayLike called on non-object"));
1228
+ k.eb = false;
1229
+ };
1230
+ M(a, a.O, "apply", c);
1231
+ c = function (e) {
1232
+ var h = a.o[a.o.length - 1];
1233
+ h.U = this;
1234
+ h.B = e;
1235
+ h.F = [];
1236
+ for (var k = 1; k < arguments.length; k++)
1237
+ h.F.push(arguments[k]);
1238
+ h.eb = false;
1239
+ };
1240
+ M(a, a.O, "call", c);
1241
+ a.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", "");
1242
+ c = function () {
1243
+ return String(this);
1244
+ };
1245
+ M(a, a.O, "toString", c);
1246
+ a.g(a.O, "toString", a.i(c, false), v);
1247
+ c = function () {
1248
+ return this.valueOf();
1249
+ };
1250
+ M(a, a.O, "valueOf", c);
1251
+ a.g(a.O, "valueOf", a.i(c, false), v);
1252
+ }
1253
+ function Bb(a, b) {
1254
+ function d(e) {
1255
+ e !== void 0 && e !== null || K(a, a.j, "Cannot convert '" + e + "' to object");
1256
+ }
1257
+ var c = function (e) {
1258
+ if (e === void 0 || e === null)
1259
+ return zc(a) ? this : a.s(a.M);
1260
+ if (!(e instanceof D)) {
1261
+ var h = a.s(Ac(a, e));
1262
+ h.data = e;
1263
+ return h;
1264
+ }
1265
+ return e;
1266
+ };
1267
+ a.v = a.i(c, true);
1268
+ a.g(a.v, "prototype", a.M, v);
1269
+ a.g(a.M, "constructor", a.v, v);
1270
+ a.g(b, "Object", a.v, v);
1271
+ c = function (e) {
1272
+ d(e);
1273
+ return Bc(a, Object.getOwnPropertyNames(e instanceof D ? e.h : e));
1274
+ };
1275
+ a.g(a.v, "getOwnPropertyNames", a.i(c, false), v);
1276
+ c = function (e) {
1277
+ d(e);
1278
+ e instanceof D && (e = e.h);
1279
+ return Bc(a, Object.keys(e));
1280
+ };
1281
+ a.g(a.v, "keys", a.i(c, false), v);
1282
+ c = function (e) {
1283
+ if (e === null)
1284
+ return a.s(null);
1285
+ e instanceof D || K(a, a.j, "Object prototype may only be an Object or null, not " + e);
1286
+ return a.s(e);
1287
+ };
1288
+ a.g(a.v, "create", a.i(c, false), v);
1289
+ a.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", "");
1290
+ c = function (e, h, k) {
1291
+ h = String(h);
1292
+ e instanceof D || K(a, a.j, "Object.defineProperty called on non-object: " + e);
1293
+ k instanceof D || K(a, a.j, "Property description must be an object");
1294
+ !e.preventExtensions || h in e.h || K(a, a.j, "Can't define property '" + h + "', object is not extensible");
1295
+ a.g(e, h, Ia, k.h);
1296
+ return e;
1297
+ };
1298
+ a.g(a.v, "defineProperty", a.i(c, false), v);
1299
+ a.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", "");
1300
+ c = function (e, h) {
1301
+ e instanceof D || K(a, a.j, "Object.getOwnPropertyDescriptor called on non-object: " + e);
1302
+ h = String(h);
1303
+ if (h in e.h) {
1304
+ var k = Object.getOwnPropertyDescriptor(e.h, h), q = e.V[h];
1305
+ e = e.Y[h];
1306
+ h = a.s(a.M);
1307
+ q || e ? (a.g(h, "get", q), a.g(h, "set", e)) : (a.g(h, "value", k.value), a.g(h, "writable", k.writable));
1308
+ a.g(h, "configurable", k.configurable);
1309
+ a.g(h, "enumerable", k.enumerable);
1310
+ return h;
1311
+ }
1312
+ };
1313
+ a.g(a.v, "getOwnPropertyDescriptor", a.i(c, false), v);
1314
+ c = function (e) {
1315
+ d(e);
1316
+ return Ac(a, e);
1317
+ };
1318
+ a.g(a.v, "getPrototypeOf", a.i(c, false), v);
1319
+ c = function (e) {
1320
+ return !!e && !e.preventExtensions;
1321
+ };
1322
+ a.g(a.v, "isExtensible", a.i(c, false), v);
1323
+ c = function (e) {
1324
+ e instanceof D && (e.preventExtensions = true);
1325
+ return e;
1326
+ };
1327
+ a.g(a.v, "preventExtensions", a.i(c, false), v);
1328
+ M(a, a.v, "toString", D.prototype.toString);
1329
+ M(a, a.v, "toLocaleString", D.prototype.toString);
1330
+ M(a, a.v, "valueOf", D.prototype.valueOf);
1331
+ c = function (e) {
1332
+ d(this);
1333
+ return this instanceof D ? String(e) in this.h : this.hasOwnProperty(e);
1334
+ };
1335
+ M(a, a.v, "hasOwnProperty", c);
1336
+ c = function (e) {
1337
+ d(this);
1338
+ return this instanceof D ? Object.prototype.propertyIsEnumerable.call(this.h, e) : this.propertyIsEnumerable(e);
1339
+ };
1340
+ M(a, a.v, "propertyIsEnumerable", c);
1341
+ c = function (e) {
1342
+ for (;;) {
1343
+ e = Ac(a, e);
1344
+ if (!e)
1345
+ return false;
1346
+ if (e === this)
1347
+ return true;
1348
+ }
1349
+ };
1350
+ M(a, a.v, "isPrototypeOf", c);
1351
+ }
1352
+ function Cb(a, b) {
1353
+ var d = function (c) {
1354
+ var e = zc(a) ? this : Cc(a), h = arguments[0];
1355
+ if (arguments.length === 1 && typeof h === "number")
1356
+ isNaN(Pa(h)) && K(a, a.ob, "Invalid array length: " + h), e.h.length = h;
1357
+ else {
1358
+ for (h = 0; h < arguments.length; h++)
1359
+ e.h[h] = arguments[h];
1360
+ e.h.length = h;
1361
+ }
1362
+ return e;
1363
+ };
1364
+ a.qa = a.i(d, true);
1365
+ a.La = a.qa.h.prototype;
1366
+ a.g(b, "Array", a.qa, v);
1367
+ d = function (c) {
1368
+ return c && c.H === "Array";
1369
+ };
1370
+ a.g(a.qa, "isArray", a.i(d, false), v);
1371
+ a.g(a.La, "length", 0, {
1372
+ configurable: false,
1373
+ enumerable: false,
1374
+ writable: true
1375
+ });
1376
+ a.La.H = "Array";
1377
+ a.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
1378
+ }
1379
+ function Db(a, b) {
1380
+ var d = function (c) {
1381
+ c = arguments.length ? Na.String(c) : "";
1382
+ return zc(a) ? (this.data = c, this) : c;
1383
+ };
1384
+ a.J = a.i(d, true);
1385
+ a.g(b, "String", a.J, v);
1386
+ a.g(a.J, "fromCharCode", a.i(String.fromCharCode, false), v);
1387
+ b = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" ");
1388
+ for (d = 0; d < b.length; d++)
1389
+ M(a, a.J, b[d], String.prototype[b[d]]);
1390
+ d = function (c, e, h) {
1391
+ e = a.R(e);
1392
+ h = a.R(h);
1393
+ try {
1394
+ return String(this).localeCompare(c, e, h);
1395
+ }
1396
+ catch (k) {
1397
+ K(a, a.D, "localeCompare: " + k.message);
1398
+ }
1399
+ };
1400
+ M(a, a.J, "localeCompare", d);
1401
+ d = function (c, e, h) {
1402
+ var k = String(this);
1403
+ e = e ? Number(e) : void 0;
1404
+ if (Q(a, c, a.I) && (c = c.data, Dc(a, c, h), a.REGEXP_MODE === 2)) {
1405
+ if (La)
1406
+ c = Ec(a, "string.split(separator, limit)", {
1407
+ string: k,
1408
+ separator: c,
1409
+ limit: e
1410
+ }, c, h), c !== Ja && h(Bc(a, c));
1411
+ else {
1412
+ var q = a.ha(), C = Fc(a, c, q, h);
1413
+ q.onmessage = function (U) {
1414
+ clearTimeout(C);
1415
+ h(Bc(a, U.data));
1416
+ };
1417
+ q.postMessage(["split", k, c, e]);
1418
+ }
1419
+ return;
1420
+ }
1421
+ c = k.split(c, e);
1422
+ h(Bc(a, c));
1423
+ };
1424
+ Gc(a, a.J, "split", d);
1425
+ d = function (c, e) {
1426
+ var h = String(this);
1427
+ c = Q(a, c, a.I) ? c.data : new RegExp(c);
1428
+ Dc(a, c, e);
1429
+ if (a.REGEXP_MODE === 2) {
1430
+ if (La)
1431
+ c = Ec(a, "string.match(regexp)", {
1432
+ string: h,
1433
+ regexp: c
1434
+ }, c, e), c !== Ja && e(c && Bc(a, c));
1435
+ else {
1436
+ var k = a.ha(), q = Fc(a, c, k, e);
1437
+ k.onmessage = function (C) {
1438
+ clearTimeout(q);
1439
+ e(C.data && Bc(a, C.data));
1440
+ };
1441
+ k.postMessage(["match", h, c]);
1442
+ }
1443
+ }
1444
+ else
1445
+ c = h.match(c), e(c && Bc(a, c));
1446
+ };
1447
+ Gc(a, a.J, "match", d);
1448
+ d = function (c, e) {
1449
+ var h = String(this);
1450
+ Q(a, c, a.I) ? c = c.data : c = new RegExp(c);
1451
+ Dc(a, c, e);
1452
+ if (a.REGEXP_MODE === 2) {
1453
+ if (La)
1454
+ c = Ec(a, "string.search(regexp)", {
1455
+ string: h,
1456
+ regexp: c
1457
+ }, c, e), c !== Ja && e(c);
1458
+ else {
1459
+ var k = a.ha(), q = Fc(a, c, k, e);
1460
+ k.onmessage = function (C) {
1461
+ clearTimeout(q);
1462
+ e(C.data);
1463
+ };
1464
+ k.postMessage(["search", h, c]);
1465
+ }
1466
+ }
1467
+ else
1468
+ e(h.search(c));
1469
+ };
1470
+ Gc(a, a.J, "search", d);
1471
+ d = function (c, e, h) {
1472
+ var k = String(this);
1473
+ e = String(e);
1474
+ if (Q(a, c, a.I) && (c = c.data, Dc(a, c, h), a.REGEXP_MODE === 2)) {
1475
+ if (La)
1476
+ c = Ec(a, "string.replace(substr, newSubstr)", {
1477
+ string: k,
1478
+ substr: c,
1479
+ newSubstr: e
1480
+ }, c, h), c !== Ja && h(c);
1481
+ else {
1482
+ var q = a.ha(), C = Fc(a, c, q, h);
1483
+ q.onmessage = function (U) {
1484
+ clearTimeout(C);
1485
+ h(U.data);
1486
+ };
1487
+ q.postMessage(["replace", k, c, e]);
1488
+ }
1489
+ return;
1490
+ }
1491
+ h(k.replace(c, e));
1492
+ };
1493
+ Gc(a, a.J, "replace", d);
1494
+ a.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
1495
+ }
1496
+ function Eb(a, b) {
1497
+ a.mb = a.i(function (d) {
1498
+ d = Na.Boolean(d);
1499
+ return zc(a) ? (this.data = d, this) : d;
1500
+ }, true);
1501
+ a.g(b, "Boolean", a.mb, v);
1502
+ }
1503
+ function Fb(a, b) {
1504
+ var d = function (c) {
1505
+ c = arguments.length ? Na.Number(c) : 0;
1506
+ return zc(a) ? (this.data = c, this) : c;
1507
+ };
1508
+ a.aa = a.i(d, true);
1509
+ a.g(b, "Number", a.aa, v);
1510
+ b = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"];
1511
+ for (d = 0; d < b.length; d++)
1512
+ a.g(a.aa, b[d], Number[b[d]], va);
1513
+ d = function (c) {
1514
+ try {
1515
+ return Number(this).toExponential(c);
1516
+ }
1517
+ catch (e) {
1518
+ K(a, a.D, e.message);
1519
+ }
1520
+ };
1521
+ M(a, a.aa, "toExponential", d);
1522
+ d = function (c) {
1523
+ try {
1524
+ return Number(this).toFixed(c);
1525
+ }
1526
+ catch (e) {
1527
+ K(a, a.D, e.message);
1528
+ }
1529
+ };
1530
+ M(a, a.aa, "toFixed", d);
1531
+ d = function (c) {
1532
+ try {
1533
+ return Number(this).toPrecision(c);
1534
+ }
1535
+ catch (e) {
1536
+ K(a, a.D, e.message);
1537
+ }
1538
+ };
1539
+ M(a, a.aa, "toPrecision", d);
1540
+ d = function (c) {
1541
+ try {
1542
+ return Number(this).toString(c);
1543
+ }
1544
+ catch (e) {
1545
+ K(a, a.D, e.message);
1546
+ }
1547
+ };
1548
+ M(a, a.aa, "toString", d);
1549
+ d = function (c, e) {
1550
+ c = c ? a.R(c) : void 0;
1551
+ e = e ? a.R(e) : void 0;
1552
+ try {
1553
+ return Number(this).toLocaleString(c, e);
1554
+ }
1555
+ catch (h) {
1556
+ K(a, a.D, "toLocaleString: " + h.message);
1557
+ }
1558
+ };
1559
+ M(a, a.aa, "toLocaleString", d);
1560
+ }
1561
+ function Gb(a, b) {
1562
+ var d = function (e, h) {
1563
+ if (!zc(a))
1564
+ return Na.Date();
1565
+ var k = [null].concat(Array.from(arguments));
1566
+ this.data = new (Function.prototype.bind.apply(Na.Date, k))();
1567
+ return this;
1568
+ };
1569
+ a.$ = a.i(d, true);
1570
+ a.nb = a.$.h.prototype;
1571
+ a.g(b, "Date", a.$, v);
1572
+ a.g(a.$, "now", a.i(Date.now, false), v);
1573
+ a.g(a.$, "parse", a.i(Date.parse, false), v);
1574
+ a.g(a.$, "UTC", a.i(Date.UTC, false), v);
1575
+ b = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
1576
+ for (var c = 0; c < b.length; c++)
1577
+ d = function (e) {
1578
+ return function (h) {
1579
+ var k = this.data;
1580
+ k instanceof Date || K(a, a.j, e + " not called on a Date");
1581
+ for (var q = [], C = 0; C < arguments.length; C++)
1582
+ q[C] = a.R(arguments[C]);
1583
+ return k[e].apply(k, q);
1584
+ };
1585
+ }(b[c]), M(a, a.$, b[c], d);
1586
+ }
1587
+ function Hb(a, b) {
1588
+ var d = function (c, e) {
1589
+ if (zc(a))
1590
+ var h = this;
1591
+ else {
1592
+ if (e === void 0 && Q(a, c, a.I))
1593
+ return c;
1594
+ h = a.s(a.Ma);
1595
+ }
1596
+ c = c === void 0 ? "" : String(c);
1597
+ e = e ? String(e) : "";
1598
+ /^[gmi]*$/.test(e) || K(a, a.T, "Invalid regexp flag: " + e);
1599
+ try {
1600
+ var k = new Na.RegExp(c, e);
1601
+ }
1602
+ catch (q) {
1603
+ K(a, a.T, q.message);
1604
+ }
1605
+ Hc(a, h, k);
1606
+ return h;
1607
+ };
1608
+ a.I = a.i(d, true);
1609
+ a.Ma = a.I.h.prototype;
1610
+ a.g(b, "RegExp", a.I, v);
1611
+ a.g(a.I.h.prototype, "global", void 0, A);
1612
+ a.g(a.I.h.prototype, "ignoreCase", void 0, A);
1613
+ a.g(a.I.h.prototype, "multiline", void 0, A);
1614
+ a.g(a.I.h.prototype, "source", "(?:)", A);
1615
+ a.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});");
1616
+ d = function (c, e) {
1617
+ function h(N) {
1618
+ if (N) {
1619
+ var F = Bc(a, N);
1620
+ a.g(F, "index", N.index);
1621
+ a.g(F, "input", N.input);
1622
+ return F;
1623
+ }
1624
+ return null;
1625
+ }
1626
+ var k = this.data;
1627
+ c = String(c);
1628
+ k.lastIndex = Number(a.G(this, "lastIndex"));
1629
+ Dc(a, k, e);
1630
+ if (a.REGEXP_MODE === 2) {
1631
+ if (La)
1632
+ c = Ec(a, "regexp.exec(string)", {
1633
+ string: c,
1634
+ regexp: k
1635
+ }, k, e), c !== Ja && (a.g(this, "lastIndex", k.lastIndex), e(h(c)));
1636
+ else {
1637
+ var q = a.ha(), C = Fc(a, k, q, e), U = this;
1638
+ q.onmessage = function (N) {
1639
+ clearTimeout(C);
1640
+ a.g(U, "lastIndex", N.data[1]);
1641
+ e(h(N.data[0]));
1642
+ };
1643
+ q.postMessage(["exec", k, k.lastIndex, c]);
1644
+ }
1645
+ }
1646
+ else
1647
+ c = k.exec(c), a.g(this, "lastIndex", k.lastIndex), e(h(c));
1648
+ };
1649
+ Gc(a, a.I, "exec", d);
1650
+ }
1651
+ function Ib(a, b) {
1652
+ function d(c) {
1653
+ var e = a.i(function (h) {
1654
+ var k = zc(a) ? this : a.Aa(e);
1655
+ Ic(a, k, h);
1656
+ return k;
1657
+ }, true);
1658
+ a.g(e, "prototype", a.Aa(a.D), v);
1659
+ a.g(e.h.prototype, "name", c, v);
1660
+ a.g(b, c, e, v);
1661
+ return e;
1662
+ }
1663
+ a.D = a.i(function (c) {
1664
+ var e = zc(a) ? this : a.Aa(a.D);
1665
+ Ic(a, e, c);
1666
+ return e;
1667
+ }, true);
1668
+ a.g(b, "Error", a.D, v);
1669
+ a.g(a.D.h.prototype, "message", "", v);
1670
+ a.g(a.D.h.prototype, "name", "Error", v);
1671
+ d("EvalError");
1672
+ a.ob = d("RangeError");
1673
+ a.pb = d("ReferenceError");
1674
+ a.T = d("SyntaxError");
1675
+ a.j = d("TypeError");
1676
+ a.Gb = d("URIError");
1677
+ }
1678
+ function Jb(a, b) {
1679
+ var d = a.s(a.M);
1680
+ a.g(b, "Math", d, v);
1681
+ var c = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
1682
+ for (b = 0; b < c.length; b++)
1683
+ a.g(d, c[b], Math[c[b]], A);
1684
+ c = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" ");
1685
+ for (b = 0; b < c.length; b++)
1686
+ a.g(d, c[b], a.i(Math[c[b]], false), v);
1687
+ }
1688
+ function Kb(a, b) {
1689
+ var d = a.s(a.M);
1690
+ a.g(b, "JSON", d, v);
1691
+ b = function (c) {
1692
+ try {
1693
+ var e = JSON.parse(String(c));
1694
+ }
1695
+ catch (h) {
1696
+ K(a, a.T, h.message);
1697
+ }
1698
+ return a.Ia(e);
1699
+ };
1700
+ a.g(d, "parse", a.i(b, false));
1701
+ b = function (c, e, h) {
1702
+ e && e.H === "Function" ? K(a, a.j, "Function replacer on JSON.stringify not supported") : e && e.H === "Array" ? (e = Ob(a, e), e = e.filter(function (q) {
1703
+ return typeof q === "string" || typeof q === "number";
1704
+ })) : e = null;
1705
+ typeof h !== "string" && typeof h !== "number" && (h = void 0);
1706
+ c = a.R(c);
1707
+ try {
1708
+ var k = JSON.stringify(c, e, h);
1709
+ }
1710
+ catch (q) {
1711
+ K(a, a.j, q.message);
1712
+ }
1713
+ return k;
1714
+ };
1715
+ a.g(d, "stringify", a.i(b, false));
1716
+ }
1717
+ function Q(a, b, d) {
1718
+ if (b === null || b === void 0 || !d)
1719
+ return false;
1720
+ d = d.h.prototype;
1721
+ if (b === d)
1722
+ return true;
1723
+ for (b = Ac(a, b); b;) {
1724
+ if (b === d)
1725
+ return true;
1726
+ b = b.xa;
1727
+ }
1728
+ return false;
1729
+ }
1730
+ function Hc(a, b, d) {
1731
+ b.data = new RegExp(d.source, d.flags);
1732
+ a.g(b, "lastIndex", d.lastIndex, v);
1733
+ a.g(b, "source", d.source, A);
1734
+ a.g(b, "global", d.global, A);
1735
+ a.g(b, "ignoreCase", d.ignoreCase, A);
1736
+ a.g(b, "multiline", d.multiline, A);
1737
+ }
1738
+ function Ic(a, b, d) {
1739
+ d && a.g(b, "message", String(d), v);
1740
+ d = [];
1741
+ for (var c = a.o.length - 1; 0 <= c; c--) {
1742
+ var e = a.o[c], h = e.node;
1743
+ h.type === "CallExpression" && (e = e.U) && d.length && (d[d.length - 1].Ob = a.G(e, "name"));
1744
+ !h.X || d.length && h.type !== "CallExpression" || d.push({
1745
+ Nb: h.X
1746
+ });
1747
+ }
1748
+ c = String(a.G(b, "name"));
1749
+ h = String(a.G(b, "message"));
1750
+ h = c + ": " + h + "\n";
1751
+ for (c = 0; c < d.length; c++) {
1752
+ var k = d[c].Nb;
1753
+ e = d[c].Ob;
1754
+ k = k.source + ":" + k.start.line + ":" + k.start.ab;
1755
+ h = e ? h + (" at " + e + " (" + k + ")\n") : h + (" at " + k + "\n");
1756
+ }
1757
+ a.g(b, "stack", h.trim(), v);
1758
+ }
1759
+ p.ha = function () {
1760
+ var a = this.ha.Mb;
1761
+ a || (a = new Blob([Oa.join("\n")], {
1762
+ type: "application/javascript"
1763
+ }), this.ha.Mb = a);
1764
+ return new Worker(URL.createObjectURL(a));
1765
+ };
1766
+ function Ec(a, b, d, c, e) {
1767
+ var h = {
1768
+ timeout: a.REGEXP_THREAD_TIMEOUT
1769
+ };
1770
+ try {
1771
+ return La.runInNewContext(b, d, h);
1772
+ }
1773
+ catch (k) {
1774
+ e(null), K(a, a.D, "RegExp Timeout: " + c);
1775
+ }
1776
+ return Ja;
1777
+ }
1778
+ function Dc(a, b, d) {
1779
+ if (a.REGEXP_MODE === 0)
1780
+ var c = false;
1781
+ else if (a.REGEXP_MODE === 1)
1782
+ c = true;
1783
+ else if (La)
1784
+ c = true;
1785
+ else if (typeof Worker === "function" && typeof URL === "function")
1786
+ c = true;
1787
+ else if (typeof require === "function") {
1788
+ try {
1789
+ La = require("vm");
1790
+ }
1791
+ catch (e) { }
1792
+ c = !!La;
1793
+ }
1794
+ else
1795
+ c = false;
1796
+ c || (d(null), K(a, a.D, "Regular expressions not supported: " + b));
1797
+ }
1798
+ function Fc(a, b, d, c) {
1799
+ return setTimeout(function () {
1800
+ d.terminate();
1801
+ c(null);
1802
+ try {
1803
+ K(a, a.D, "RegExp Timeout: " + b);
1804
+ }
1805
+ catch (e) { }
1806
+ }, a.REGEXP_THREAD_TIMEOUT);
1807
+ }
1808
+ p.Aa = function (a) {
1809
+ return this.s(a && a.h.prototype);
1810
+ };
1811
+ p.s = function (a) {
1812
+ if (typeof a !== "object")
1813
+ throw Error("Non object prototype");
1814
+ a = new D(a);
1815
+ Q(this, a, this.D) && (a.H = "Error");
1816
+ return a;
1817
+ };
1818
+ function Cc(a) {
1819
+ var b = a.s(a.La);
1820
+ a.g(b, "length", 0, {
1821
+ configurable: false,
1822
+ enumerable: false,
1823
+ writable: true
1824
+ });
1825
+ b.H = "Array";
1826
+ return b;
1827
+ }
1828
+ function Zc(a, b, d) {
1829
+ var c = a.s(a.Z);
1830
+ d ? (d = a.s(a.M), a.g(c, "prototype", d, v), a.g(d, "constructor", c, v)) : c.Ab = true;
1831
+ a.g(c, "length", b, A);
1832
+ c.H = "Function";
1833
+ return c;
1834
+ }
1835
+ function Nb(a, b, d, c) {
1836
+ var e = Zc(a, b.oa.length, true);
1837
+ e.Va = d;
1838
+ e.node = b;
1839
+ a.g(e, "name", b.id ? String(b.id.name) : c || "", A);
1840
+ return e;
1841
+ }
1842
+ p.i = function (a, b) {
1843
+ b = Zc(this, a.length, b);
1844
+ b.Ta = a;
1845
+ a.id = this.Ya++;
1846
+ this.g(b, "name", a.name, A);
1847
+ return b;
1848
+ };
1849
+ p.ub = function (a) {
1850
+ var b = Zc(this, a.length, true);
1851
+ b.Za = a;
1852
+ a.id = this.Ya++;
1853
+ this.g(b, "name", a.name, A);
1854
+ return b;
1855
+ };
1856
+ p.Ia = function (a) {
1857
+ if (a instanceof D)
1858
+ throw Error("Object is already pseudo");
1859
+ if (a === null || a === void 0 || a === true || a === false || typeof a === "string" || typeof a === "number")
1860
+ return a;
1861
+ if (a instanceof RegExp) {
1862
+ var b = this.s(this.Ma);
1863
+ Hc(this, b, a);
1864
+ return b;
1865
+ }
1866
+ if (a instanceof Date)
1867
+ return b = this.s(this.nb), b.data = new Date(a.valueOf()), b;
1868
+ if (typeof a === "function") {
1869
+ var d = this;
1870
+ b = Object.getOwnPropertyDescriptor(a, "prototype");
1871
+ return this.i(function () {
1872
+ var e = Array.prototype.slice.call(arguments).map(function (h) {
1873
+ return d.R(h);
1874
+ });
1875
+ e = a.apply(d, e);
1876
+ return d.Ia(e);
1877
+ }, !!b);
1878
+ }
1879
+ if (Array.isArray(a)) {
1880
+ b = Cc(this);
1881
+ for (var c = 0; c < a.length; c++)
1882
+ c in a && this.g(b, c, this.Ia(a[c]));
1883
+ return b;
1884
+ }
1885
+ b = this.s(this.M);
1886
+ for (c in a)
1887
+ this.g(b, c, this.Ia(a[c]));
1888
+ return b;
1889
+ };
1890
+ p.R = function (a, b) {
1891
+ if (typeof a !== "object" && typeof a !== "function" || a === null)
1892
+ return a;
1893
+ if (!(a instanceof D))
1894
+ throw Error("Object is not pseudo");
1895
+ if (Q(this, a, this.I))
1896
+ return b = new RegExp(a.data.source, a.data.flags), b.lastIndex = a.data.lastIndex, b;
1897
+ if (Q(this, a, this.$))
1898
+ return new Date(a.data.valueOf());
1899
+ b = b || {
1900
+ hb: [],
1901
+ Sa: []
1902
+ };
1903
+ var d = b.hb.indexOf(a);
1904
+ if (d !== -1)
1905
+ return b.Sa[d];
1906
+ b.hb.push(a);
1907
+ if (Q(this, a, this.qa)) {
1908
+ d = [];
1909
+ b.Sa.push(d);
1910
+ for (var c = this.G(a, "length"), e = 0; e < c; e++)
1911
+ $c(this, a, e) && (d[e] = this.R(this.G(a, e), b));
1912
+ }
1913
+ else
1914
+ for (c in d = {}, b.Sa.push(d), a.h)
1915
+ e = this.R(a.h[c], b), Object.defineProperty(d, c, {
1916
+ value: e,
1917
+ writable: true,
1918
+ enumerable: true,
1919
+ configurable: true
1920
+ });
1921
+ b.hb.pop();
1922
+ b.Sa.pop();
1923
+ return d;
1924
+ };
1925
+ function Bc(a, b) {
1926
+ for (var d = Cc(a), c = Object.getOwnPropertyNames(b), e = 0; e < c.length; e++)
1927
+ a.g(d, c[e], b[c[e]]);
1928
+ return d;
1929
+ }
1930
+ function Ob(a, b) {
1931
+ var d = [], c;
1932
+ for (c in b.h)
1933
+ d[c] = a.G(b, c);
1934
+ d.length = Pa(a.G(b, "length")) || 0;
1935
+ return d;
1936
+ }
1937
+ function Ac(a, b) {
1938
+ switch (typeof b) {
1939
+ case "number":
1940
+ return a.aa.h.prototype;
1941
+ case "boolean":
1942
+ return a.mb.h.prototype;
1943
+ case "string":
1944
+ return a.J.h.prototype;
1945
+ }
1946
+ return b ? b.xa : null;
1947
+ }
1948
+ p.G = function (a, b) {
1949
+ if (this.P)
1950
+ throw Error("Getter not supported in that context");
1951
+ b = String(b);
1952
+ a !== void 0 && a !== null || K(this, this.j, "Cannot read property '" + b + "' of " + a);
1953
+ if (typeof a === "object" && !(a instanceof D))
1954
+ throw TypeError("Expecting native value or pseudo object");
1955
+ if (b === "length") {
1956
+ if (Q(this, a, this.J))
1957
+ return String(a).length;
1958
+ }
1959
+ else if (64 > b.charCodeAt(0) && Q(this, a, this.J)) {
1960
+ var d = Qa(b);
1961
+ if (!isNaN(d) && d < String(a).length)
1962
+ return String(a)[d];
1963
+ }
1964
+ do
1965
+ if (a.h && b in a.h)
1966
+ return (d = a.V[b]) ? (this.P = true, d) : a.h[b];
1967
+ while (a = Ac(this, a));
1968
+ };
1969
+ function $c(a, b, d) {
1970
+ if (!(b instanceof D))
1971
+ throw TypeError("Primitive data type has no properties");
1972
+ d = String(d);
1973
+ if (d === "length" && Q(a, b, a.J))
1974
+ return true;
1975
+ if (Q(a, b, a.J)) {
1976
+ var c = Qa(d);
1977
+ if (!isNaN(c) && c < String(b).length)
1978
+ return true;
1979
+ }
1980
+ do
1981
+ if (b.h && d in b.h)
1982
+ return true;
1983
+ while (b = Ac(a, b));
1984
+ return false;
1985
+ }
1986
+ p.g = function (a, b, d, c) {
1987
+ if (this.Ka)
1988
+ throw Error("Setter not supported in that context");
1989
+ b = String(b);
1990
+ a !== void 0 && a !== null || K(this, this.j, "Cannot set property '" + b + "' of " + a);
1991
+ if (typeof a === "object" && !(a instanceof D))
1992
+ throw TypeError("Expecting native value or pseudo object");
1993
+ c && ("get" in c || "set" in c) && ("value" in c || "writable" in c) && K(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
1994
+ var e = !this.o || ad(this).S;
1995
+ if (a instanceof D) {
1996
+ if (Q(this, a, this.J)) {
1997
+ var h = Qa(b);
1998
+ if (b === "length" || !isNaN(h) && h < String(a).length) {
1999
+ e && K(this, this.j, "Cannot assign to read only property '" + b + "' of String '" + a.data + "'");
2000
+ return;
2001
+ }
2002
+ }
2003
+ if (a.H === "Array")
2004
+ if (h = a.h.length, b === "length") {
2005
+ if (c) {
2006
+ if (!("value" in c))
2007
+ return;
2008
+ d = c.value;
2009
+ }
2010
+ d = Pa(d);
2011
+ isNaN(d) && K(this, this.ob, "Invalid array length");
2012
+ if (d < h)
2013
+ for (k in a.h) {
2014
+ var k = Qa(k);
2015
+ !isNaN(k) && d <= k && delete a.h[k];
2016
+ }
2017
+ }
2018
+ else
2019
+ isNaN(k = Qa(b)) || (a.h.length = Math.max(h, k + 1));
2020
+ if (!a.preventExtensions || b in a.h) {
2021
+ if (c) {
2022
+ e = {};
2023
+ "get" in c && c.get && (a.V[b] = c.get, e.get = this.g.ac);
2024
+ "set" in c && c.set && (a.Y[b] = c.set, e.set = this.g.bc);
2025
+ "configurable" in c && (e.configurable = c.configurable);
2026
+ "enumerable" in c && (e.enumerable = c.enumerable);
2027
+ "writable" in c && (e.writable = c.writable, delete a.V[b], delete a.Y[b]);
2028
+ "value" in c ? (e.value = c.value, delete a.V[b], delete a.Y[b]) : d !== Ia && (e.value = d, delete a.V[b], delete a.Y[b]);
2029
+ try {
2030
+ Object.defineProperty(a.h, b, e);
2031
+ }
2032
+ catch (q) {
2033
+ K(this, this.j, "Cannot redefine property: " + b);
2034
+ }
2035
+ "get" in c && !c.get && delete a.V[b];
2036
+ "set" in c && !c.set && delete a.Y[b];
2037
+ }
2038
+ else {
2039
+ if (d === Ia)
2040
+ throw ReferenceError("Value not specified");
2041
+ for (c = a; !(b in c.h);)
2042
+ if (c = Ac(this, c), !c) {
2043
+ c = a;
2044
+ break;
2045
+ }
2046
+ if (c.Y && c.Y[b])
2047
+ return this.Ka = true, c.Y[b];
2048
+ if (c.V && c.V[b])
2049
+ e && K(this, this.j, "Cannot set property '" + b + "' of object '" + a + "' which only has a getter");
2050
+ else
2051
+ try {
2052
+ a.h[b] = d;
2053
+ }
2054
+ catch (q) {
2055
+ e && K(this, this.j, "Cannot assign to read only property '" + b + "' of object '" + a + "'");
2056
+ }
2057
+ }
2058
+ }
2059
+ else
2060
+ e && K(this, this.j, "Can't add property '" + b + "', object is not extensible");
2061
+ }
2062
+ else
2063
+ e && K(this, this.j, "Can't create property '" + b + "' on '" + a + "'");
2064
+ };
2065
+ p.g.ac = function () {
2066
+ throw Error("Placeholder getter");
2067
+ };
2068
+ p.g.bc = function () {
2069
+ throw Error("Placeholder setter");
2070
+ };
2071
+ function M(a, b, d, c) {
2072
+ a.g(b.h.prototype, d, a.i(c, false), v);
2073
+ }
2074
+ function Gc(a, b, d, c) {
2075
+ a.g(b.h.prototype, d, a.ub(c), v);
2076
+ }
2077
+ function ad(a) {
2078
+ a = a.o[a.o.length - 1].scope;
2079
+ if (!a)
2080
+ throw Error("No scope found");
2081
+ return a;
2082
+ }
2083
+ function ea(a, b, d) {
2084
+ var c = false;
2085
+ if (d && d.S)
2086
+ c = true;
2087
+ else {
2088
+ var e = b.body && b.body[0];
2089
+ e && e.la && e.la.type === "Literal" && e.la.value === "use strict" && (c = true);
2090
+ }
2091
+ e = a.s(null);
2092
+ c = new bd(d, c, e);
2093
+ d || bb(a, c.object);
2094
+ Ra(a, b, c);
2095
+ return c;
2096
+ }
2097
+ function cd(a, b, d) {
2098
+ if (!b)
2099
+ throw Error("parentScope required");
2100
+ a = d || a.s(null);
2101
+ return new bd(b, b.S, a);
2102
+ }
2103
+ function dd(a, b) {
2104
+ for (var d = ad(a); d && d !== a.N;) {
2105
+ if (b in d.object.h)
2106
+ return d.object.h[b];
2107
+ d = d.Va;
2108
+ }
2109
+ if (d === a.N && $c(a, d.object, b))
2110
+ return a.G(d.object, b);
2111
+ d = a.o[a.o.length - 1].node;
2112
+ d.type === "UnaryExpression" && d.operator === "typeof" || K(a, a.pb, b + " is not defined");
2113
+ }
2114
+ function ed(a, b, d) {
2115
+ for (var c = ad(a), e = c.S; c && c !== a.N;) {
2116
+ if (b in c.object.h) {
2117
+ try {
2118
+ c.object.h[b] = d;
2119
+ }
2120
+ catch (h) {
2121
+ e && K(a, a.j, "Cannot assign to read only variable '" + b + "'");
2122
+ }
2123
+ return;
2124
+ }
2125
+ c = c.Va;
2126
+ }
2127
+ if (c === a.N && (!e || $c(a, c.object, b)))
2128
+ return a.g(c.object, b, d);
2129
+ K(a, a.pb, b + " is not defined");
2130
+ }
2131
+ function Ra(a, b, d) {
2132
+ if (b.jb)
2133
+ var c = b.jb;
2134
+ else {
2135
+ c = Object.create(null);
2136
+ switch (b.type) {
2137
+ case "VariableDeclaration":
2138
+ for (var e = 0; e < b.fa.length; e++)
2139
+ c[b.fa[e].id.name] = true;
2140
+ break;
2141
+ case "FunctionDeclaration":
2142
+ c[b.id.name] = b;
2143
+ break;
2144
+ case "BlockStatement":
2145
+ case "CatchClause":
2146
+ case "DoWhileStatement":
2147
+ case "ForInStatement":
2148
+ case "ForStatement":
2149
+ case "IfStatement":
2150
+ case "LabeledStatement":
2151
+ case "Program":
2152
+ case "SwitchCase":
2153
+ case "SwitchStatement":
2154
+ case "TryStatement":
2155
+ case "WithStatement":
2156
+ case "WhileStatement":
2157
+ var h = b.constructor, k;
2158
+ for (k in b)
2159
+ if (k !== "loc") {
2160
+ var q = b[k];
2161
+ if (q && typeof q === "object") {
2162
+ if (Array.isArray(q))
2163
+ for (e = 0; e < q.length; e++) {
2164
+ if (q[e] && q[e].constructor === h) {
2165
+ var C = Ra(a, q[e], d);
2166
+ for (k in C)
2167
+ c[k] = C[k];
2168
+ }
2169
+ }
2170
+ else if (q.constructor === h)
2171
+ for (k in C = Ra(a, q, d), C)
2172
+ c[k] = C[k];
2173
+ }
2174
+ }
2175
+ }
2176
+ b.jb = c;
2177
+ }
2178
+ for (k in c)
2179
+ c[k] === true ? a.g(d.object, k, void 0, wa) : a.g(d.object, k, Nb(a, c[k], d), wa);
2180
+ return c;
2181
+ }
2182
+ function zc(a) {
2183
+ return a.o[a.o.length - 1].isConstructor;
2184
+ }
2185
+ function fd(a, b) {
2186
+ return b[0] === Ha ? dd(a, b[1]) : a.G(b[0], b[1]);
2187
+ }
2188
+ function gd(a, b, d) {
2189
+ return b[0] === Ha ? ed(a, b[1], d) : a.g(b[0], b[1], d);
2190
+ }
2191
+ function K(a, b, d) {
2192
+ if (!a.N)
2193
+ throw d === void 0 ? b : d;
2194
+ d !== void 0 && b instanceof D && (b = a.Aa(b), Ic(a, b, d));
2195
+ hd(a, 4, b);
2196
+ throw xa;
2197
+ }
2198
+ function hd(a, b, d, c) {
2199
+ if (b === 0)
2200
+ throw TypeError("Should not unwind for NORMAL completions");
2201
+ var e = a.o;
2202
+ a: for (; 0 < e.length; e.pop()) {
2203
+ var h = e[e.length - 1];
2204
+ switch (h.node.type) {
2205
+ case "TryStatement":
2206
+ h.ea = {
2207
+ type: b,
2208
+ value: d,
2209
+ label: c
2210
+ };
2211
+ return;
2212
+ case "CallExpression":
2213
+ case "NewExpression":
2214
+ if (b === 3) {
2215
+ h.value = d;
2216
+ return;
2217
+ }
2218
+ if (b !== 4)
2219
+ throw Error("Unsynatctic break/continue not rejected by Acorn");
2220
+ break;
2221
+ case "Program":
2222
+ h.done = true;
2223
+ break a;
2224
+ }
2225
+ if (b === 1) {
2226
+ if (c ? h.labels && h.labels.indexOf(c) !== -1 : h.W || h.Zb) {
2227
+ e.pop();
2228
+ return;
2229
+ }
2230
+ }
2231
+ else if (b === 2 && (c ? h.labels && h.labels.indexOf(c) !== -1 : h.W))
2232
+ return;
2233
+ }
2234
+ Q(a, d, a.D) ? (b = {
2235
+ EvalError,
2236
+ RangeError,
2237
+ ReferenceError,
2238
+ SyntaxError,
2239
+ TypeError,
2240
+ URIError
2241
+ }, c = String(a.G(d, "name")), e = a.G(d, "message").valueOf(), b = (b[c] || Error)(e), b.stack = String(a.G(d, "stack"))) : b = String(d);
2242
+ a.value = b;
2243
+ throw b;
2244
+ }
2245
+ function R(a, b) {
2246
+ switch (b.type) {
2247
+ case "ArrayExpression":
2248
+ return "[...]";
2249
+ case "BinaryExpression":
2250
+ case "LogicalExpression":
2251
+ return R(a, b.left) + " " + b.operator + " " + R(a, b.right);
2252
+ case "CallExpression":
2253
+ return R(a, b.callee) + "(...)";
2254
+ case "ConditionalExpression":
2255
+ return R(a, b.test) + " ? " + R(a, b.da) + " : " + R(a, b.alternate);
2256
+ case "Identifier":
2257
+ return b.name;
2258
+ case "Literal":
2259
+ return b.raw;
2260
+ case "MemberExpression":
2261
+ var d = R(a, b.object);
2262
+ a = R(a, b.Wa);
2263
+ return b.bb ? d + "[" + a + "]" : d + "." + a;
2264
+ case "NewExpression":
2265
+ return "new " + R(a, b.callee) + "(...)";
2266
+ case "ObjectExpression":
2267
+ return "{...}";
2268
+ case "ThisExpression":
2269
+ return "this";
2270
+ case "UnaryExpression":
2271
+ return b.operator + " " + R(a, b.K);
2272
+ case "UpdateExpression":
2273
+ return d = R(a, b.K), b.prefix ? b.operator + d : d + b.operator;
2274
+ }
2275
+ return "???";
2276
+ }
2277
+ function Lb(a, b, d) {
2278
+ var c = a.o[a.o.length - 1], e = Array.from(d), h = e.shift();
2279
+ d = Math.max(Number(e.shift() || 0), 0);
2280
+ var k = a.ya();
2281
+ if (h instanceof D && h.H === "Function") {
2282
+ var q = h;
2283
+ k.type = "CallExpression";
2284
+ c = c.scope;
2285
+ }
2286
+ else {
2287
+ try {
2288
+ var C = da(String(h), "taskCode" + a.ic++);
2289
+ }
2290
+ catch (U) {
2291
+ K(a, a.T, "Invalid code: " + U.message);
2292
+ }
2293
+ k.type = "EvalProgram_";
2294
+ k.body = C.body;
2295
+ c = c.node.arguments[0];
2296
+ fa(k, c ? c.start : void 0, c ? c.end : void 0);
2297
+ c = a.N;
2298
+ e.length = 0;
2299
+ }
2300
+ b = new id(q, e, c, k, b ? d : -1);
2301
+ ab(a, b, d);
2302
+ return b.Db;
2303
+ }
2304
+ function ab(a, b, d) {
2305
+ b.time = Date.now() + d;
2306
+ a.ca.push(b);
2307
+ a.ca.sort(function (c, e) {
2308
+ return c.time - e.time;
2309
+ });
2310
+ }
2311
+ function Mb(a, b) {
2312
+ for (var d = 0; d < a.ca.length; d++)
2313
+ if (a.ca[d].Db == b) {
2314
+ a.ca.splice(d, 1);
2315
+ break;
2316
+ }
2317
+ }
2318
+ function jd(a, b, d) {
2319
+ if (!a.P)
2320
+ throw Error("Unexpected call to createGetter");
2321
+ a.P = false;
2322
+ d = Array.isArray(d) ? d[0] : d;
2323
+ var c = a.ya();
2324
+ c.type = "CallExpression";
2325
+ a = new u(c, a.o[a.o.length - 1].scope);
2326
+ a.ia = 2;
2327
+ a.B = d;
2328
+ a.U = b;
2329
+ a.Qa = true;
2330
+ a.F = [];
2331
+ return a;
2332
+ }
2333
+ function kd(a, b, d, c) {
2334
+ if (!a.Ka)
2335
+ throw Error("Unexpected call to createSetter");
2336
+ a.Ka = false;
2337
+ d = Array.isArray(d) ? d[0] : a.Na;
2338
+ var e = a.ya();
2339
+ e.type = "CallExpression";
2340
+ a = new u(e, a.o[a.o.length - 1].scope);
2341
+ a.ia = 2;
2342
+ a.B = d;
2343
+ a.U = b;
2344
+ a.Qa = true;
2345
+ a.F = [c];
2346
+ return a;
2347
+ }
2348
+ function ld(a, b) {
2349
+ return b === void 0 || b === null ? a.Na : b instanceof D ? b : (a = a.s(Ac(a, b)), a.data = b, a);
2350
+ }
2351
+ p.Xb = function () {
2352
+ return this.N;
2353
+ };
2354
+ p.Yb = function () {
2355
+ return this.o;
2356
+ };
2357
+ p.ec = function (a) {
2358
+ this.o = a;
2359
+ };
2360
+ function u(a, b) {
2361
+ this.node = a;
2362
+ this.scope = b;
2363
+ }
2364
+ function bd(a, b, d) {
2365
+ this.Va = a;
2366
+ this.S = b;
2367
+ this.object = d;
2368
+ }
2369
+ function D(a) {
2370
+ this.V = Object.create(null);
2371
+ this.Y = Object.create(null);
2372
+ this.h = Object.create(null);
2373
+ this.xa = a;
2374
+ }
2375
+ p = D.prototype;
2376
+ p.xa = null;
2377
+ p.H = "Object";
2378
+ p.data = null;
2379
+ p.toString = function () {
2380
+ if (!Ma)
2381
+ return "[object Interpreter.Object]";
2382
+ if (!(this instanceof D))
2383
+ return String(this);
2384
+ if (this.H === "Array") {
2385
+ var a = Ka;
2386
+ a.push(this);
2387
+ try {
2388
+ var b = [], d = this.h.length, c = false;
2389
+ 1024 < d && (d = 1e3, c = true);
2390
+ for (var e = 0; e < d; e++) {
2391
+ var h = this.h[e];
2392
+ b[e] = h instanceof D && a.indexOf(h) !== -1 ? "..." : h;
2393
+ }
2394
+ c && b.push("...");
2395
+ }
2396
+ finally {
2397
+ a.pop();
2398
+ }
2399
+ return b.join(",");
2400
+ }
2401
+ if (this.H === "Error") {
2402
+ a = Ka;
2403
+ if (a.indexOf(this) !== -1)
2404
+ return "[object Error]";
2405
+ d = this;
2406
+ do
2407
+ if ("name" in d.h) {
2408
+ b = d.h.name;
2409
+ break;
2410
+ }
2411
+ while (d = d.xa);
2412
+ d = this;
2413
+ do
2414
+ if ("message" in d.h) {
2415
+ c = d.h.message;
2416
+ break;
2417
+ }
2418
+ while (d = d.xa);
2419
+ a.push(this);
2420
+ try {
2421
+ b = b && String(b), c = c && String(c);
2422
+ }
2423
+ finally {
2424
+ a.pop();
2425
+ }
2426
+ return c ? b + ": " + c : String(b);
2427
+ }
2428
+ return this.data !== null ? String(this.data) : "[object " + this.H + "]";
2429
+ };
2430
+ p.valueOf = function () {
2431
+ return !Ma || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
2432
+ };
2433
+ function id(a, b, d, c, e) {
2434
+ this.zb = a;
2435
+ this.Lb = b;
2436
+ this.scope = d;
2437
+ this.node = c;
2438
+ this.interval = e;
2439
+ this.Db = ++md;
2440
+ this.time = 0;
2441
+ }
2442
+ var md = 0;
2443
+ t.prototype.stepArrayExpression = function (a, b, d) {
2444
+ d = d.elements;
2445
+ var c = b.A || 0;
2446
+ b.Oa ? (this.g(b.Oa, c, b.value), c++) : (b.Oa = Cc(this), b.Oa.h.length = d.length);
2447
+ for (; c < d.length;) {
2448
+ if (d[c])
2449
+ return b.A = c, new u(d[c], b.scope);
2450
+ c++;
2451
+ }
2452
+ a.pop();
2453
+ a[a.length - 1].value = b.Oa;
2454
+ };
2455
+ t.prototype.stepAssignmentExpression = function (a, b, d) {
2456
+ if (!b.ja)
2457
+ return b.ja = true, b = new u(d.left, b.scope), b.sa = true, b;
2458
+ if (!b.Da) {
2459
+ b.Fa || (b.Fa = b.value);
2460
+ b.Ba && (b.ma = b.value);
2461
+ if (!b.Ba && d.operator !== "=" && (a = fd(this, b.Fa), b.ma = a, this.P))
2462
+ return b.Ba = true, jd(this, a, b.Fa);
2463
+ b.Da = true;
2464
+ d.operator === "=" && d.left.type === "Identifier" && (b.Pa = d.left.name);
2465
+ return new u(d.right, b.scope);
2466
+ }
2467
+ if (b.ta)
2468
+ a.pop(), a[a.length - 1].value = b.ib;
2469
+ else {
2470
+ var c = b.ma, e = b.value;
2471
+ switch (d.operator) {
2472
+ case "=":
2473
+ c = e;
2474
+ break;
2475
+ case "+=":
2476
+ c += e;
2477
+ break;
2478
+ case "-=":
2479
+ c -= e;
2480
+ break;
2481
+ case "*=":
2482
+ c *= e;
2483
+ break;
2484
+ case "/=":
2485
+ c /= e;
2486
+ break;
2487
+ case "%=":
2488
+ c %= e;
2489
+ break;
2490
+ case "<<=":
2491
+ c <<= e;
2492
+ break;
2493
+ case ">>=":
2494
+ c >>= e;
2495
+ break;
2496
+ case ">>>=":
2497
+ c >>>= e;
2498
+ break;
2499
+ case "&=":
2500
+ c &= e;
2501
+ break;
2502
+ case "^=":
2503
+ c ^= e;
2504
+ break;
2505
+ case "|=":
2506
+ c |= e;
2507
+ break;
2508
+ default:
2509
+ throw SyntaxError("Unknown assignment expression: " + d.operator);
2510
+ }
2511
+ if (d = gd(this, b.Fa, c))
2512
+ return b.ta = true, b.ib = c, kd(this, d, b.Fa, c);
2513
+ a.pop();
2514
+ a[a.length - 1].value = c;
2515
+ }
2516
+ };
2517
+ t.prototype.stepBinaryExpression = function (a, b, d) {
2518
+ if (!b.ja)
2519
+ return b.ja = true, new u(d.left, b.scope);
2520
+ if (!b.Da)
2521
+ return b.Da = true, b.ma = b.value, new u(d.right, b.scope);
2522
+ a.pop();
2523
+ var c = b.ma;
2524
+ b = b.value;
2525
+ switch (d.operator) {
2526
+ case "==":
2527
+ d = c == b;
2528
+ break;
2529
+ case "!=":
2530
+ d = c != b;
2531
+ break;
2532
+ case "===":
2533
+ d = c === b;
2534
+ break;
2535
+ case "!==":
2536
+ d = c !== b;
2537
+ break;
2538
+ case ">":
2539
+ d = c > b;
2540
+ break;
2541
+ case ">=":
2542
+ d = c >= b;
2543
+ break;
2544
+ case "<":
2545
+ d = c < b;
2546
+ break;
2547
+ case "<=":
2548
+ d = c <= b;
2549
+ break;
2550
+ case "+":
2551
+ d = c + b;
2552
+ break;
2553
+ case "-":
2554
+ d = c - b;
2555
+ break;
2556
+ case "*":
2557
+ d = c * b;
2558
+ break;
2559
+ case "/":
2560
+ d = c / b;
2561
+ break;
2562
+ case "%":
2563
+ d = c % b;
2564
+ break;
2565
+ case "&":
2566
+ d = c & b;
2567
+ break;
2568
+ case "|":
2569
+ d = c | b;
2570
+ break;
2571
+ case "^":
2572
+ d = c ^ b;
2573
+ break;
2574
+ case "<<":
2575
+ d = c << b;
2576
+ break;
2577
+ case ">>":
2578
+ d = c >> b;
2579
+ break;
2580
+ case ">>>":
2581
+ d = c >>> b;
2582
+ break;
2583
+ case "in":
2584
+ b instanceof D || K(this, this.j, "'in' expects an object, not '" + b + "'");
2585
+ d = $c(this, b, c);
2586
+ break;
2587
+ case "instanceof":
2588
+ Q(this, b, this.O) || K(this, this.j, "'instanceof' expects an object, not '" + b + "'");
2589
+ d = c instanceof D ? Q(this, c, b) : false;
2590
+ break;
2591
+ default:
2592
+ throw SyntaxError("Unknown binary operator: " + d.operator);
2593
+ }
2594
+ a[a.length - 1].value = d;
2595
+ };
2596
+ t.prototype.stepBlockStatement = function (a, b, d) {
2597
+ var c = b.A || 0;
2598
+ if (d = d.body[c])
2599
+ return b.A = c + 1, new u(d, b.scope);
2600
+ a.pop();
2601
+ };
2602
+ t.prototype.stepBreakStatement = function (a, b, d) {
2603
+ hd(this, 1, void 0, d.label && d.label.name);
2604
+ };
2605
+ t.prototype.Hb = 0;
2606
+ t.prototype.stepCallExpression = function (a, b, d) {
2607
+ if (!b.ia) {
2608
+ b.ia = 1;
2609
+ var c = new u(d.callee, b.scope);
2610
+ c.sa = true;
2611
+ return c;
2612
+ }
2613
+ if (b.ia === 1) {
2614
+ b.ia = 2;
2615
+ var e = b.value;
2616
+ if (Array.isArray(e)) {
2617
+ if (b.U = fd(this, e), e[0] === Ha ? b.Pb = e[1] === "eval" : b.B = e[0], e = b.U, this.P)
2618
+ return b.ia = 1, jd(this, e, b.value);
2619
+ }
2620
+ else
2621
+ b.U = e;
2622
+ b.F = [];
2623
+ b.A = 0;
2624
+ }
2625
+ e = b.U;
2626
+ if (!b.Qa) {
2627
+ b.A !== 0 && b.F.push(b.value);
2628
+ if (d.arguments[b.A])
2629
+ return new u(d.arguments[b.A++], b.scope);
2630
+ if (d.type === "NewExpression") {
2631
+ e instanceof D && !e.Ab || K(this, this.j, R(this, d.callee) + " is not a constructor");
2632
+ if (e === this.qa)
2633
+ b.B = Cc(this);
2634
+ else {
2635
+ var h = e.h.prototype;
2636
+ if (typeof h !== "object" || h === null)
2637
+ h = this.M;
2638
+ b.B = this.s(h);
2639
+ }
2640
+ b.isConstructor = true;
2641
+ }
2642
+ b.Qa = true;
2643
+ }
2644
+ if (b.eb)
2645
+ a.pop(), a[a.length - 1].value = b.isConstructor && typeof b.value !== "object" ? b.B : b.value;
2646
+ else {
2647
+ b.eb = true;
2648
+ e instanceof D || K(this, this.j, R(this, d.callee) + " is not a function");
2649
+ if (a = e.node) {
2650
+ d = ea(this, a.body, e.Va);
2651
+ c = Cc(this);
2652
+ for (e = 0; e < b.F.length; e++)
2653
+ this.g(c, e, b.F[e]);
2654
+ this.g(d.object, "arguments", c);
2655
+ for (e = 0; e < a.oa.length; e++)
2656
+ this.g(d.object, a.oa[e].name, b.F.length > e ? b.F[e] : void 0);
2657
+ d.S || (b.B = ld(this, b.B));
2658
+ this.g(d.object, "this", b.B, ua);
2659
+ b.value = void 0;
2660
+ return new u(a.body, d);
2661
+ }
2662
+ if (e.eval) {
2663
+ if (e = b.F[0], typeof e !== "string")
2664
+ b.value = e;
2665
+ else {
2666
+ try {
2667
+ c = da(String(e), "eval" + this.Hb++);
2668
+ }
2669
+ catch (q) {
2670
+ K(this, this.T, "Invalid code: " + q.message);
2671
+ }
2672
+ e = this.ya();
2673
+ e.type = "EvalProgram_";
2674
+ e.body = c.body;
2675
+ fa(e, d.start, d.end);
2676
+ d = b.Pb ? b.scope : this.N;
2677
+ d.S ? d = ea(this, c, d) : Ra(this, c, d);
2678
+ this.value = void 0;
2679
+ return new u(e, d);
2680
+ }
2681
+ }
2682
+ else if (e.Ta)
2683
+ b.scope.S || (b.B = ld(this, b.B)), b.value = e.Ta.apply(b.B, b.F);
2684
+ else if (e.Za) {
2685
+ var k = this;
2686
+ c = e.Za.length - 1;
2687
+ c = b.F.concat(Array(c)).slice(0, c);
2688
+ c.push(function (q) {
2689
+ b.value = q;
2690
+ k.za = false;
2691
+ });
2692
+ this.za = true;
2693
+ b.scope.S || (b.B = ld(this, b.B));
2694
+ e.Za.apply(b.B, c);
2695
+ }
2696
+ else
2697
+ K(this, this.j, R(this, d.callee) + " is not callable");
2698
+ }
2699
+ };
2700
+ t.prototype.stepConditionalExpression = function (a, b, d) {
2701
+ var c = b.na || 0;
2702
+ if (c === 0)
2703
+ return b.na = 1, new u(d.test, b.scope);
2704
+ if (c === 1) {
2705
+ b.na = 2;
2706
+ if ((c = !!b.value) && d.da)
2707
+ return new u(d.da, b.scope);
2708
+ if (!c && d.alternate)
2709
+ return new u(d.alternate, b.scope);
2710
+ this.value = void 0;
2711
+ }
2712
+ a.pop();
2713
+ d.type === "ConditionalExpression" && (a[a.length - 1].value = b.value);
2714
+ };
2715
+ t.prototype.stepContinueStatement = function (a, b, d) {
2716
+ hd(this, 2, void 0, d.label && d.label.name);
2717
+ };
2718
+ t.prototype.stepDebuggerStatement = function (a) {
2719
+ a.pop();
2720
+ };
2721
+ t.prototype.stepDoWhileStatement = function (a, b, d) {
2722
+ d.type === "DoWhileStatement" && b.ga === void 0 && (b.value = true, b.ga = true);
2723
+ if (!b.ga)
2724
+ return b.ga = true, new u(d.test, b.scope);
2725
+ if (!b.value)
2726
+ a.pop();
2727
+ else if (d.body)
2728
+ return b.ga = false, b.W = true, new u(d.body, b.scope);
2729
+ };
2730
+ t.prototype.stepEmptyStatement = function (a) {
2731
+ a.pop();
2732
+ };
2733
+ t.prototype.stepEvalProgram_ = function (a, b, d) {
2734
+ var c = b.A || 0;
2735
+ if (d = d.body[c])
2736
+ return b.A = c + 1, new u(d, b.scope);
2737
+ a.pop();
2738
+ a[a.length - 1].value = this.value;
2739
+ };
2740
+ t.prototype.stepExpressionStatement = function (a, b, d) {
2741
+ if (!b.ka)
2742
+ return this.value = void 0, b.ka = true, new u(d.la, b.scope);
2743
+ a.pop();
2744
+ this.value = b.value;
2745
+ };
2746
+ t.prototype.stepForInStatement = function (a, b, d) {
2747
+ if (!b.Ub && (b.Ub = true, d.left.fa && d.left.fa[0].ua))
2748
+ return b.scope.S && K(this, this.T, "for-in loop variable declaration may not have an initializer"), new u(d.left, b.scope);
2749
+ if (!b.Ca)
2750
+ return b.Ca = true, b.pa || (b.pa = b.value), new u(d.right, b.scope);
2751
+ b.W || (b.W = true, b.u = b.value, b.kb = Object.create(null));
2752
+ if (b.Ra === void 0)
2753
+ a: for (;;) {
2754
+ if (b.u instanceof D)
2755
+ for (b.wa || (b.wa = Object.getOwnPropertyNames(b.u.h));;) {
2756
+ var c = b.wa.shift();
2757
+ if (c === void 0)
2758
+ break;
2759
+ if (Object.prototype.hasOwnProperty.call(b.u.h, c) && !b.kb[c] && (b.kb[c] = true, Object.prototype.propertyIsEnumerable.call(b.u.h, c))) {
2760
+ b.Ra = c;
2761
+ break a;
2762
+ }
2763
+ }
2764
+ else if (b.u !== null && b.u !== void 0)
2765
+ for (b.wa || (b.wa = Object.getOwnPropertyNames(b.u));;) {
2766
+ c = b.wa.shift();
2767
+ if (c === void 0)
2768
+ break;
2769
+ b.kb[c] = true;
2770
+ if (Object.prototype.propertyIsEnumerable.call(b.u, c)) {
2771
+ b.Ra = c;
2772
+ break a;
2773
+ }
2774
+ }
2775
+ b.u = Ac(this, b.u);
2776
+ b.wa = null;
2777
+ if (b.u === null) {
2778
+ a.pop();
2779
+ return;
2780
+ }
2781
+ }
2782
+ if (!b.wb)
2783
+ if (b.wb = true, a = d.left, a.type === "VariableDeclaration")
2784
+ b.pa = [Ha, a.fa[0].id.name];
2785
+ else
2786
+ return b.pa = null, b = new u(a, b.scope), b.sa = true, b;
2787
+ b.pa || (b.pa = b.value);
2788
+ if (!b.ta && (b.ta = true, a = b.Ra, c = gd(this, b.pa, a)))
2789
+ return kd(this, c, b.pa, a);
2790
+ b.Ra = void 0;
2791
+ b.wb = false;
2792
+ b.ta = false;
2793
+ if (d.body)
2794
+ return new u(d.body, b.scope);
2795
+ };
2796
+ t.prototype.stepForStatement = function (a, b, d) {
2797
+ switch (b.na) {
2798
+ default:
2799
+ b.na = 1;
2800
+ if (d.ua)
2801
+ return new u(d.ua, b.scope);
2802
+ break;
2803
+ case 1:
2804
+ b.na = 2;
2805
+ if (d.test)
2806
+ return new u(d.test, b.scope);
2807
+ break;
2808
+ case 2:
2809
+ b.na = 3;
2810
+ if (d.test && !b.value)
2811
+ a.pop();
2812
+ else
2813
+ return b.W = true, new u(d.body, b.scope);
2814
+ break;
2815
+ case 3:
2816
+ if (b.na = 1, d.update)
2817
+ return new u(d.update, b.scope);
2818
+ }
2819
+ };
2820
+ t.prototype.stepFunctionDeclaration = function (a) {
2821
+ a.pop();
2822
+ };
2823
+ t.prototype.stepFunctionExpression = function (a, b, d) {
2824
+ a.pop();
2825
+ b = a[a.length - 1];
2826
+ a = b.scope;
2827
+ d.id && (a = cd(this, a));
2828
+ b.value = Nb(this, d, a, b.Pa);
2829
+ d.id && this.g(a.object, d.id.name, b.value, ua);
2830
+ };
2831
+ t.prototype.stepIdentifier = function (a, b, d) {
2832
+ a.pop();
2833
+ if (b.sa)
2834
+ a[a.length - 1].value = [Ha, d.name];
2835
+ else {
2836
+ b = dd(this, d.name);
2837
+ if (this.P)
2838
+ return jd(this, b, this.Na);
2839
+ a[a.length - 1].value = b;
2840
+ }
2841
+ };
2842
+ t.prototype.stepIfStatement = t.prototype.stepConditionalExpression;
2843
+ t.prototype.stepLabeledStatement = function (a, b, d) {
2844
+ a.pop();
2845
+ a = b.labels || [];
2846
+ a.push(d.label.name);
2847
+ b = new u(d.body, b.scope);
2848
+ b.labels = a;
2849
+ return b;
2850
+ };
2851
+ t.prototype.stepLiteral = function (a, b, d) {
2852
+ a.pop();
2853
+ b = d.value;
2854
+ b instanceof RegExp && (d = this.s(this.Ma), Hc(this, d, b), b = d);
2855
+ a[a.length - 1].value = b;
2856
+ };
2857
+ t.prototype.stepLogicalExpression = function (a, b, d) {
2858
+ if (d.operator !== "&&" && d.operator !== "||")
2859
+ throw SyntaxError("Unknown logical operator: " + d.operator);
2860
+ if (!b.ja)
2861
+ return b.ja = true, new u(d.left, b.scope);
2862
+ if (b.Da)
2863
+ a.pop(), a[a.length - 1].value = b.value;
2864
+ else if (d.operator === "&&" && !b.value || d.operator === "||" && b.value)
2865
+ a.pop(), a[a.length - 1].value = b.value;
2866
+ else
2867
+ return b.Da = true, new u(d.right, b.scope);
2868
+ };
2869
+ t.prototype.stepMemberExpression = function (a, b, d) {
2870
+ if (!b.Ca)
2871
+ return b.Ca = true, new u(d.object, b.scope);
2872
+ if (d.bb) {
2873
+ if (b.Vb)
2874
+ d = b.value;
2875
+ else
2876
+ return b.u = b.value, b.Vb = true, new u(d.Wa, b.scope);
2877
+ }
2878
+ else
2879
+ b.u = b.value, d = d.Wa.name;
2880
+ a.pop();
2881
+ if (b.sa)
2882
+ a[a.length - 1].value = [b.u, d];
2883
+ else {
2884
+ d = this.G(b.u, d);
2885
+ if (this.P)
2886
+ return jd(this, d, b.u);
2887
+ a[a.length - 1].value = d;
2888
+ }
2889
+ };
2890
+ t.prototype.stepNewExpression = t.prototype.stepCallExpression;
2891
+ t.prototype.stepObjectExpression = function (a, b, d) {
2892
+ var c = b.A || 0, e = d.h[c];
2893
+ if (b.u) {
2894
+ var h = b.Pa;
2895
+ b.Ja[h] || (b.Ja[h] = {});
2896
+ b.Ja[h][e.kind] = b.value;
2897
+ b.A = ++c;
2898
+ e = d.h[c];
2899
+ }
2900
+ else
2901
+ b.u = this.s(this.M), b.Ja = Object.create(null);
2902
+ if (e) {
2903
+ var k = e.key;
2904
+ if (k.type === "Identifier")
2905
+ h = k.name;
2906
+ else if (k.type === "Literal")
2907
+ h = k.value;
2908
+ else
2909
+ throw SyntaxError("Unknown object structure: " + k.type);
2910
+ b.Pa = h;
2911
+ return new u(e.value, b.scope);
2912
+ }
2913
+ for (k in b.Ja)
2914
+ d = b.Ja[k], "get" in d || "set" in d ? this.g(b.u, k, Ia, {
2915
+ configurable: true,
2916
+ enumerable: true,
2917
+ get: d.get,
2918
+ set: d.set
2919
+ }) : this.g(b.u, k, d.init);
2920
+ a.pop();
2921
+ a[a.length - 1].value = b.u;
2922
+ };
2923
+ t.prototype.stepProgram = function (a, b, d) {
2924
+ if (a = d.body.shift())
2925
+ return b.done = false, new u(a, b.scope);
2926
+ b.done = true;
2927
+ };
2928
+ t.prototype.stepReturnStatement = function (a, b, d) {
2929
+ if (d.K && !b.ka)
2930
+ return b.ka = true, new u(d.K, b.scope);
2931
+ hd(this, 3, b.value);
2932
+ };
2933
+ t.prototype.stepSequenceExpression = function (a, b, d) {
2934
+ var c = b.A || 0;
2935
+ if (d = d.xb[c])
2936
+ return b.A = c + 1, new u(d, b.scope);
2937
+ a.pop();
2938
+ a[a.length - 1].value = b.value;
2939
+ };
2940
+ t.prototype.stepSwitchStatement = function (a, b, d) {
2941
+ if (!b.ga)
2942
+ return b.ga = 1, new u(d.Qb, b.scope);
2943
+ b.ga === 1 && (b.ga = 2, b.hc = b.value, b.cb = -1);
2944
+ for (;;) {
2945
+ var c = b.gb || 0, e = d.tb[c];
2946
+ if (b.Ha || !e || e.test) {
2947
+ if (e || b.Ha || b.cb === -1) {
2948
+ if (e) {
2949
+ if (!b.Ha && !b.Fb && e.test)
2950
+ return b.Fb = true, new u(e.test, b.scope);
2951
+ if (b.Ha || b.value === b.hc) {
2952
+ b.Ha = true;
2953
+ var h = b.A || 0;
2954
+ if (e.da[h])
2955
+ return b.Zb = true, b.A = h + 1, new u(e.da[h], b.scope);
2956
+ }
2957
+ b.Fb = false;
2958
+ b.A = 0;
2959
+ b.gb = c + 1;
2960
+ }
2961
+ else {
2962
+ a.pop();
2963
+ break;
2964
+ }
2965
+ }
2966
+ else
2967
+ b.Ha = true, b.gb = b.cb;
2968
+ }
2969
+ else
2970
+ b.cb = c, b.gb = c + 1;
2971
+ }
2972
+ };
2973
+ t.prototype.stepThisExpression = function (a) {
2974
+ a.pop();
2975
+ a[a.length - 1].value = dd(this, "this");
2976
+ };
2977
+ t.prototype.stepThrowStatement = function (a, b, d) {
2978
+ if (b.ka)
2979
+ K(this, b.value);
2980
+ else
2981
+ return b.ka = true, new u(d.K, b.scope);
2982
+ };
2983
+ t.prototype.stepTryStatement = function (a, b, d) {
2984
+ if (!b.Rb)
2985
+ return b.Rb = true, new u(d.block, b.scope);
2986
+ if (b.ea && b.ea.type === 4 && !b.Tb && d.Ea)
2987
+ return b.Tb = true, a = cd(this, b.scope), this.g(a.object, d.Ea.Ua.name, b.ea.value), b.ea = void 0, new u(d.Ea.body, a);
2988
+ if (!b.Sb && d.fb)
2989
+ return b.Sb = true, new u(d.fb, b.scope);
2990
+ a.pop();
2991
+ b.ea && hd(this, b.ea.type, b.ea.value, b.ea.label);
2992
+ };
2993
+ t.prototype.stepUnaryExpression = function (a, b, d) {
2994
+ if (!b.ka)
2995
+ return b.ka = true, a = new u(d.K, b.scope), a.sa = d.operator === "delete", a;
2996
+ a.pop();
2997
+ var c = b.value;
2998
+ switch (d.operator) {
2999
+ case "-":
3000
+ c = -c;
3001
+ break;
3002
+ case "+":
3003
+ c = +c;
3004
+ break;
3005
+ case "!":
3006
+ c = !c;
3007
+ break;
3008
+ case "~":
3009
+ c = ~c;
3010
+ break;
3011
+ case "delete":
3012
+ d = true;
3013
+ if (Array.isArray(c)) {
3014
+ var e = c[0];
3015
+ e === Ha && (e = b.scope);
3016
+ c = String(c[1]);
3017
+ try {
3018
+ delete e.h[c];
3019
+ }
3020
+ catch (h) {
3021
+ b.scope.S ? K(this, this.j, "Cannot delete property '" + c + "' of '" + e + "'") : d = false;
3022
+ }
3023
+ }
3024
+ c = d;
3025
+ break;
3026
+ case "typeof":
3027
+ c = c && c.H === "Function" ? "function" : typeof c;
3028
+ break;
3029
+ case "void":
3030
+ c = void 0;
3031
+ break;
3032
+ default:
3033
+ throw SyntaxError("Unknown unary operator: " + d.operator);
3034
+ }
3035
+ a[a.length - 1].value = c;
3036
+ };
3037
+ t.prototype.stepUpdateExpression = function (a, b, d) {
3038
+ if (!b.ja)
3039
+ return b.ja = true, a = new u(d.K, b.scope), a.sa = true, a;
3040
+ b.Ga || (b.Ga = b.value);
3041
+ b.Ba && (b.ma = b.value);
3042
+ if (!b.Ba) {
3043
+ var c = fd(this, b.Ga);
3044
+ b.ma = c;
3045
+ if (this.P)
3046
+ return b.Ba = true, jd(this, c, b.Ga);
3047
+ }
3048
+ if (b.ta)
3049
+ a.pop(), a[a.length - 1].value = b.ib;
3050
+ else {
3051
+ c = Number(b.ma);
3052
+ if (d.operator === "++")
3053
+ var e = c + 1;
3054
+ else if (d.operator === "--")
3055
+ e = c - 1;
3056
+ else
3057
+ throw SyntaxError("Unknown update expression: " + d.operator);
3058
+ d = d.prefix ? e : c;
3059
+ if (c = gd(this, b.Ga, e))
3060
+ return b.ta = true, b.ib = d, kd(this, c, b.Ga, e);
3061
+ a.pop();
3062
+ a[a.length - 1].value = d;
3063
+ }
3064
+ };
3065
+ t.prototype.stepVariableDeclaration = function (a, b, d) {
3066
+ d = d.fa;
3067
+ var c = b.A || 0, e = d[c];
3068
+ b.Bb && e && (ed(this, e.id.name, b.value), b.Bb = false, e = d[++c]);
3069
+ for (; e;) {
3070
+ if (e.ua)
3071
+ return b.A = c, b.Bb = true, b.Pa = e.id.name, new u(e.ua, b.scope);
3072
+ e = d[++c];
3073
+ }
3074
+ a.pop();
3075
+ };
3076
+ t.prototype.stepWithStatement = function (a, b, d) {
3077
+ if (!b.Ca)
3078
+ return b.Ca = true, new u(d.object, b.scope);
3079
+ a.pop();
3080
+ a = cd(this, b.scope, b.value);
3081
+ return new u(d.body, a);
3082
+ };
3083
+ t.prototype.stepWhileStatement = t.prototype.stepDoWhileStatement;
3084
+ Na.Interpreter = t;
3085
+ t.prototype.step = t.prototype.lb;
3086
+ t.prototype.run = t.prototype.Eb;
3087
+ t.prototype.appendCode = t.prototype.Jb;
3088
+ t.prototype.createObject = t.prototype.Aa;
3089
+ t.prototype.createObjectProto = t.prototype.s;
3090
+ t.prototype.createAsyncFunction = t.prototype.ub;
3091
+ t.prototype.createNativeFunction = t.prototype.i;
3092
+ t.prototype.getProperty = t.prototype.G;
3093
+ t.prototype.setProperty = t.prototype.g;
3094
+ t.prototype.nativeToPseudo = t.prototype.Ia;
3095
+ t.prototype.pseudoToNative = t.prototype.R;
3096
+ t.prototype.getGlobalScope = t.prototype.Xb;
3097
+ t.prototype.getStateStack = t.prototype.Yb;
3098
+ t.prototype.setStateStack = t.prototype.ec;
3099
+ t.VALUE_IN_DESCRIPTOR = Ia;
3100
+ var stdin_default = t;
3101
+ exports.default = stdin_default;