· 5 years ago · Oct 26, 2020, 08:12 AM
1! function(t, n) {
2 "object" == typeof exports && "object" == typeof module ? module.exports = n() : "function" == typeof define && define.amd ? define("Stagecast", [], n) : "object" == typeof exports ? exports.Stagecast = n() : t.Stagecast = n()
3}(this, (function() {
4 return function(t) {
5 var n = {};
6
7 function e(r) {
8 if (n[r]) return n[r].exports;
9 var i = n[r] = {
10 i: r,
11 l: !1,
12 exports: {}
13 };
14 return t[r].call(i.exports, i, i.exports, e), i.l = !0, i.exports
15 }
16 return e.m = t, e.c = n, e.d = function(t, n, r) {
17 e.o(t, n) || Object.defineProperty(t, n, {
18 enumerable: !0,
19 get: r
20 })
21 }, e.r = function(t) {
22 "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
23 value: "Module"
24 }), Object.defineProperty(t, "__esModule", {
25 value: !0
26 })
27 }, e.t = function(t, n) {
28 if (1 & n && (t = e(t)), 8 & n) return t;
29 if (4 & n && "object" == typeof t && t && t.__esModule) return t;
30 var r = Object.create(null);
31 if (e.r(r), Object.defineProperty(r, "default", {
32 enumerable: !0,
33 value: t
34 }), 2 & n && "string" != typeof t)
35 for (var i in t) e.d(r, i, function(n) {
36 return t[n]
37 }.bind(null, i));
38 return r
39 }, e.n = function(t) {
40 var n = t && t.__esModule ? function() {
41 return t.default
42 } : function() {
43 return t
44 };
45 return e.d(n, "a", n), n
46 }, e.o = function(t, n) {
47 return Object.prototype.hasOwnProperty.call(t, n)
48 }, e.p = "", e(e.s = 136)
49 }([function(t, n, e) {
50 var r = e(2),
51 i = e(10),
52 o = e(16),
53 s = e(12),
54 a = e(24),
55 c = function(t, n, e) {
56 var u, f, l, h, p = t & c.F,
57 d = t & c.G,
58 v = t & c.S,
59 g = t & c.P,
60 m = t & c.B,
61 y = d ? r : v ? r[n] || (r[n] = {}) : (r[n] || {}).prototype,
62 w = d ? i : i[n] || (i[n] = {}),
63 b = w.prototype || (w.prototype = {});
64 for (u in d && (e = n), e) l = ((f = !p && y && void 0 !== y[u]) ? y : e)[u], h = m && f ? a(l, r) : g && "function" == typeof l ? a(Function.call, l) : l, y && s(y, u, l, t & c.U), w[u] != l && o(w, u, h), g && b[u] != l && (b[u] = l)
65 };
66 r.core = i, c.F = 1, c.G = 2, c.S = 4, c.P = 8, c.B = 16, c.W = 32, c.U = 64, c.R = 128, t.exports = c
67 }, function(t, n, e) {
68 t.exports = e(305)
69 }, function(t, n) {
70 var e = t.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")();
71 "number" == typeof __g && (__g = e)
72 }, function(t, n) {
73 t.exports = function(t) {
74 try {
75 return !!t()
76 } catch (t) {
77 return !0
78 }
79 }
80 }, function(t, n, e) {
81 var r = e(5);
82 t.exports = function(t) {
83 if (!r(t)) throw TypeError(t + " is not an object!");
84 return t
85 }
86 }, function(t, n) {
87 t.exports = function(t) {
88 return "object" == typeof t ? null !== t : "function" == typeof t
89 }
90 }, function(t, n, e) {
91 var r = e(54)("wks"),
92 i = e(32),
93 o = e(2).Symbol,
94 s = "function" == typeof o;
95 (t.exports = function(t) {
96 return r[t] || (r[t] = s && o[t] || (s ? o : i)("Symbol." + t))
97 }).store = r
98 }, function(t, n, e) {
99 var r = e(20),
100 i = Math.min;
101 t.exports = function(t) {
102 return t > 0 ? i(r(t), 9007199254740991) : 0
103 }
104 }, function(t, n, e) {
105 var r = e(4),
106 i = e(93),
107 o = e(29),
108 s = Object.defineProperty;
109 n.f = e(9) ? Object.defineProperty : function(t, n, e) {
110 if (r(t), n = o(n, !0), r(e), i) try {
111 return s(t, n, e)
112 } catch (t) {}
113 if ("get" in e || "set" in e) throw TypeError("Accessors not supported!");
114 return "value" in e && (t[n] = e.value), t
115 }
116 }, function(t, n, e) {
117 t.exports = !e(3)((function() {
118 return 7 != Object.defineProperty({}, "a", {
119 get: function() {
120 return 7
121 }
122 }).a
123 }))
124 }, function(t, n) {
125 var e = t.exports = {
126 version: "2.6.5"
127 };
128 "number" == typeof __e && (__e = e)
129 }, function(t, n, e) {
130 "use strict";
131 e.d(n, "a", (function() {
132 return r
133 }));
134 var r = Object.freeze({
135 production: {
136 messageSource: "STAGECAST_SDK",
137 host: "https://stagecast.se",
138 api: "https://stagecast.se/api/",
139 ws: "wss://stagecast.se/api/",
140 cdn: "https://d5q8k8cx63nj4.cloudfront.net",
141 analytics: "https://analytics.stagecast.se/api/"
142 },
143 staging: {
144 messageSource: "STAGECAST_SDK",
145 host: "staging.stagecast.se",
146 api: "https://staging.stagecast.se/api/",
147 ws: "wss://staging.stagecast.se/api/",
148 cdn: "https://d2cb7i0wbc0znj.cloudfront.net",
149 analytics: "https://staging-analytics.stagecast.se/api/"
150 },
151 k8production: {
152 messageSource: "STAGECAST_SDK",
153 host: "console.stagecast.io",
154 api: "https://console.stagecast.io/api/",
155 ws: "wss://console.stagecast.io/api/",
156 cdn: "https://cdn.not.defined.yet",
157 analytics: "https://analytics.stagecast.io/api/"
158 },
159 k8staging: {
160 messageSource: "STAGECAST_SDK",
161 host: "console.staging.stagecast.io",
162 api: "https://console.staging.stagecast.io/api/",
163 ws: "wss://console.staging.stagecast.io/api/",
164 cdn: "https://d1r0op4ur44djw.cloudfront.net",
165 analytics: "https://analytics.staging.stagecast.io/api/"
166 }
167 })
168 }, function(t, n, e) {
169 var r = e(2),
170 i = e(16),
171 o = e(15),
172 s = e(32)("src"),
173 a = e(141),
174 c = "toString",
175 u = ("" + a).split(c);
176 e(10).inspectSource = function(t) {
177 return a.call(t)
178 }, (t.exports = function(t, n, e, a) {
179 var c = "function" == typeof e;
180 c && (o(e, "name") || i(e, "name", n)), t[n] !== e && (c && (o(e, s) || i(e, s, t[n] ? "" + t[n] : u.join(String(n)))), t === r ? t[n] = e : a ? t[n] ? t[n] = e : i(t, n, e) : (delete t[n], i(t, n, e)))
181 })(Function.prototype, c, (function() {
182 return "function" == typeof this && this[s] || a.call(this)
183 }))
184 }, function(t, n, e) {
185 var r = e(27);
186 t.exports = function(t) {
187 return Object(r(t))
188 }
189 }, function(t, n, e) {
190 var r = e(0),
191 i = e(3),
192 o = e(27),
193 s = /"/g,
194 a = function(t, n, e, r) {
195 var i = String(o(t)),
196 a = "<" + n;
197 return "" !== e && (a += " " + e + '="' + String(r).replace(s, """) + '"'), a + ">" + i + "</" + n + ">"
198 };
199 t.exports = function(t, n) {
200 var e = {};
201 e[t] = n(a), r(r.P + r.F * i((function() {
202 var n = "" [t]('"');
203 return n !== n.toLowerCase() || n.split('"').length > 3
204 })), "String", e)
205 }
206 }, function(t, n) {
207 var e = {}.hasOwnProperty;
208 t.exports = function(t, n) {
209 return e.call(t, n)
210 }
211 }, function(t, n, e) {
212 var r = e(8),
213 i = e(31);
214 t.exports = e(9) ? function(t, n, e) {
215 return r.f(t, n, i(1, e))
216 } : function(t, n, e) {
217 return t[n] = e, t
218 }
219 }, function(t, n, e) {
220 var r = e(46),
221 i = e(27);
222 t.exports = function(t) {
223 return r(i(t))
224 }
225 }, function(t, n, e) {
226 "use strict";
227 var r = e(125),
228 i = e(306),
229 o = Object.prototype.toString;
230
231 function s(t) {
232 return "[object Array]" === o.call(t)
233 }
234
235 function a(t) {
236 return null !== t && "object" == typeof t
237 }
238
239 function c(t) {
240 return "[object Function]" === o.call(t)
241 }
242
243 function u(t, n) {
244 if (null != t)
245 if ("object" != typeof t && (t = [t]), s(t))
246 for (var e = 0, r = t.length; e < r; e++) n.call(null, t[e], e, t);
247 else
248 for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && n.call(null, t[i], i, t)
249 }
250 t.exports = {
251 isArray: s,
252 isArrayBuffer: function(t) {
253 return "[object ArrayBuffer]" === o.call(t)
254 },
255 isBuffer: i,
256 isFormData: function(t) {
257 return "undefined" != typeof FormData && t instanceof FormData
258 },
259 isArrayBufferView: function(t) {
260 return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(t) : t && t.buffer && t.buffer instanceof ArrayBuffer
261 },
262 isString: function(t) {
263 return "string" == typeof t
264 },
265 isNumber: function(t) {
266 return "number" == typeof t
267 },
268 isObject: a,
269 isUndefined: function(t) {
270 return void 0 === t
271 },
272 isDate: function(t) {
273 return "[object Date]" === o.call(t)
274 },
275 isFile: function(t) {
276 return "[object File]" === o.call(t)
277 },
278 isBlob: function(t) {
279 return "[object Blob]" === o.call(t)
280 },
281 isFunction: c,
282 isStream: function(t) {
283 return a(t) && c(t.pipe)
284 },
285 isURLSearchParams: function(t) {
286 return "undefined" != typeof URLSearchParams && t instanceof URLSearchParams
287 },
288 isStandardBrowserEnv: function() {
289 return ("undefined" == typeof navigator || "ReactNative" !== navigator.product) && ("undefined" != typeof window && "undefined" != typeof document)
290 },
291 forEach: u,
292 merge: function t() {
293 var n = {};
294
295 function e(e, r) {
296 "object" == typeof n[r] && "object" == typeof e ? n[r] = t(n[r], e) : n[r] = e
297 }
298 for (var r = 0, i = arguments.length; r < i; r++) u(arguments[r], e);
299 return n
300 },
301 extend: function(t, n, e) {
302 return u(n, (function(n, i) {
303 t[i] = e && "function" == typeof n ? r(n, e) : n
304 })), t
305 },
306 trim: function(t) {
307 return t.replace(/^\s*/, "").replace(/\s*$/, "")
308 }
309 }
310 }, function(t, n, e) {
311 "use strict";
312 var r = e(3);
313 t.exports = function(t, n) {
314 return !!t && r((function() {
315 n ? t.call(null, (function() {}), 1) : t.call(null)
316 }))
317 }
318 }, function(t, n) {
319 var e = Math.ceil,
320 r = Math.floor;
321 t.exports = function(t) {
322 return isNaN(t = +t) ? 0 : (t > 0 ? r : e)(t)
323 }
324 }, function(t, n, e) {
325 var r = e(47),
326 i = e(31),
327 o = e(17),
328 s = e(29),
329 a = e(15),
330 c = e(93),
331 u = Object.getOwnPropertyDescriptor;
332 n.f = e(9) ? u : function(t, n) {
333 if (t = o(t), n = s(n, !0), c) try {
334 return u(t, n)
335 } catch (t) {}
336 if (a(t, n)) return i(!r.f.call(t, n), t[n])
337 }
338 }, function(t, n, e) {
339 var r = e(0),
340 i = e(10),
341 o = e(3);
342 t.exports = function(t, n) {
343 var e = (i.Object || {})[t] || Object[t],
344 s = {};
345 s[t] = n(e), r(r.S + r.F * o((function() {
346 e(1)
347 })), "Object", s)
348 }
349 }, function(t, n, e) {
350 var r = e(24),
351 i = e(46),
352 o = e(13),
353 s = e(7),
354 a = e(231);
355 t.exports = function(t, n) {
356 var e = 1 == t,
357 c = 2 == t,
358 u = 3 == t,
359 f = 4 == t,
360 l = 6 == t,
361 h = 5 == t || l,
362 p = n || a;
363 return function(n, a, d) {
364 for (var v, g, m = o(n), y = i(m), w = r(a, d, 3), b = s(y.length), S = 0, x = e ? p(n, b) : c ? p(n, 0) : void 0; b > S; S++)
365 if ((h || S in y) && (g = w(v = y[S], S, m), t))
366 if (e) x[S] = g;
367 else if (g) switch (t) {
368 case 3:
369 return !0;
370 case 5:
371 return v;
372 case 6:
373 return S;
374 case 2:
375 x.push(v)
376 } else if (f) return !1;
377 return l ? -1 : u || f ? f : x
378 }
379 }
380 }, function(t, n, e) {
381 var r = e(25);
382 t.exports = function(t, n, e) {
383 if (r(t), void 0 === n) return t;
384 switch (e) {
385 case 1:
386 return function(e) {
387 return t.call(n, e)
388 };
389 case 2:
390 return function(e, r) {
391 return t.call(n, e, r)
392 };
393 case 3:
394 return function(e, r, i) {
395 return t.call(n, e, r, i)
396 }
397 }
398 return function() {
399 return t.apply(n, arguments)
400 }
401 }
402 }, function(t, n) {
403 t.exports = function(t) {
404 if ("function" != typeof t) throw TypeError(t + " is not a function!");
405 return t
406 }
407 }, function(t, n) {
408 var e = {}.toString;
409 t.exports = function(t) {
410 return e.call(t).slice(8, -1)
411 }
412 }, function(t, n) {
413 t.exports = function(t) {
414 if (null == t) throw TypeError("Can't call method on " + t);
415 return t
416 }
417 }, function(t, n, e) {
418 "use strict";
419 if (e(9)) {
420 var r = e(33),
421 i = e(2),
422 o = e(3),
423 s = e(0),
424 a = e(65),
425 c = e(91),
426 u = e(24),
427 f = e(44),
428 l = e(31),
429 h = e(16),
430 p = e(45),
431 d = e(20),
432 v = e(7),
433 g = e(119),
434 m = e(35),
435 y = e(29),
436 w = e(15),
437 b = e(48),
438 S = e(5),
439 x = e(13),
440 E = e(83),
441 C = e(36),
442 O = e(38),
443 A = e(37).f,
444 I = e(85),
445 _ = e(32),
446 P = e(6),
447 j = e(23),
448 M = e(55),
449 T = e(49),
450 k = e(87),
451 F = e(41),
452 L = e(58),
453 R = e(43),
454 N = e(86),
455 q = e(110),
456 D = e(8),
457 z = e(21),
458 U = D.f,
459 B = z.f,
460 W = i.RangeError,
461 G = i.TypeError,
462 Q = i.Uint8Array,
463 V = "ArrayBuffer",
464 H = "SharedArrayBuffer",
465 Y = "BYTES_PER_ELEMENT",
466 K = Array.prototype,
467 X = c.ArrayBuffer,
468 J = c.DataView,
469 $ = j(0),
470 Z = j(2),
471 tt = j(3),
472 nt = j(4),
473 et = j(5),
474 rt = j(6),
475 it = M(!0),
476 ot = M(!1),
477 st = k.values,
478 at = k.keys,
479 ct = k.entries,
480 ut = K.lastIndexOf,
481 ft = K.reduce,
482 lt = K.reduceRight,
483 ht = K.join,
484 pt = K.sort,
485 dt = K.slice,
486 vt = K.toString,
487 gt = K.toLocaleString,
488 mt = P("iterator"),
489 yt = P("toStringTag"),
490 wt = _("typed_constructor"),
491 bt = _("def_constructor"),
492 St = a.CONSTR,
493 xt = a.TYPED,
494 Et = a.VIEW,
495 Ct = "Wrong length!",
496 Ot = j(1, (function(t, n) {
497 return jt(T(t, t[bt]), n)
498 })),
499 At = o((function() {
500 return 1 === new Q(new Uint16Array([1]).buffer)[0]
501 })),
502 It = !!Q && !!Q.prototype.set && o((function() {
503 new Q(1).set({})
504 })),
505 _t = function(t, n) {
506 var e = d(t);
507 if (e < 0 || e % n) throw W("Wrong offset!");
508 return e
509 },
510 Pt = function(t) {
511 if (S(t) && xt in t) return t;
512 throw G(t + " is not a typed array!")
513 },
514 jt = function(t, n) {
515 if (!S(t) || !(wt in t)) throw G("It is not a typed array constructor!");
516 return new t(n)
517 },
518 Mt = function(t, n) {
519 return Tt(T(t, t[bt]), n)
520 },
521 Tt = function(t, n) {
522 for (var e = 0, r = n.length, i = jt(t, r); r > e;) i[e] = n[e++];
523 return i
524 },
525 kt = function(t, n, e) {
526 U(t, n, {
527 get: function() {
528 return this._d[e]
529 }
530 })
531 },
532 Ft = function(t) {
533 var n, e, r, i, o, s, a = x(t),
534 c = arguments.length,
535 f = c > 1 ? arguments[1] : void 0,
536 l = void 0 !== f,
537 h = I(a);
538 if (null != h && !E(h)) {
539 for (s = h.call(a), r = [], n = 0; !(o = s.next()).done; n++) r.push(o.value);
540 a = r
541 }
542 for (l && c > 2 && (f = u(f, arguments[2], 2)), n = 0, e = v(a.length), i = jt(this, e); e > n; n++) i[n] = l ? f(a[n], n) : a[n];
543 return i
544 },
545 Lt = function() {
546 for (var t = 0, n = arguments.length, e = jt(this, n); n > t;) e[t] = arguments[t++];
547 return e
548 },
549 Rt = !!Q && o((function() {
550 gt.call(new Q(1))
551 })),
552 Nt = function() {
553 return gt.apply(Rt ? dt.call(Pt(this)) : Pt(this), arguments)
554 },
555 qt = {
556 copyWithin: function(t, n) {
557 return q.call(Pt(this), t, n, arguments.length > 2 ? arguments[2] : void 0)
558 },
559 every: function(t) {
560 return nt(Pt(this), t, arguments.length > 1 ? arguments[1] : void 0)
561 },
562 fill: function(t) {
563 return N.apply(Pt(this), arguments)
564 },
565 filter: function(t) {
566 return Mt(this, Z(Pt(this), t, arguments.length > 1 ? arguments[1] : void 0))
567 },
568 find: function(t) {
569 return et(Pt(this), t, arguments.length > 1 ? arguments[1] : void 0)
570 },
571 findIndex: function(t) {
572 return rt(Pt(this), t, arguments.length > 1 ? arguments[1] : void 0)
573 },
574 forEach: function(t) {
575 $(Pt(this), t, arguments.length > 1 ? arguments[1] : void 0)
576 },
577 indexOf: function(t) {
578 return ot(Pt(this), t, arguments.length > 1 ? arguments[1] : void 0)
579 },
580 includes: function(t) {
581 return it(Pt(this), t, arguments.length > 1 ? arguments[1] : void 0)
582 },
583 join: function(t) {
584 return ht.apply(Pt(this), arguments)
585 },
586 lastIndexOf: function(t) {
587 return ut.apply(Pt(this), arguments)
588 },
589 map: function(t) {
590 return Ot(Pt(this), t, arguments.length > 1 ? arguments[1] : void 0)
591 },
592 reduce: function(t) {
593 return ft.apply(Pt(this), arguments)
594 },
595 reduceRight: function(t) {
596 return lt.apply(Pt(this), arguments)
597 },
598 reverse: function() {
599 for (var t, n = this, e = Pt(n).length, r = Math.floor(e / 2), i = 0; i < r;) t = n[i], n[i++] = n[--e], n[e] = t;
600 return n
601 },
602 some: function(t) {
603 return tt(Pt(this), t, arguments.length > 1 ? arguments[1] : void 0)
604 },
605 sort: function(t) {
606 return pt.call(Pt(this), t)
607 },
608 subarray: function(t, n) {
609 var e = Pt(this),
610 r = e.length,
611 i = m(t, r);
612 return new(T(e, e[bt]))(e.buffer, e.byteOffset + i * e.BYTES_PER_ELEMENT, v((void 0 === n ? r : m(n, r)) - i))
613 }
614 },
615 Dt = function(t, n) {
616 return Mt(this, dt.call(Pt(this), t, n))
617 },
618 zt = function(t) {
619 Pt(this);
620 var n = _t(arguments[1], 1),
621 e = this.length,
622 r = x(t),
623 i = v(r.length),
624 o = 0;
625 if (i + n > e) throw W(Ct);
626 for (; o < i;) this[n + o] = r[o++]
627 },
628 Ut = {
629 entries: function() {
630 return ct.call(Pt(this))
631 },
632 keys: function() {
633 return at.call(Pt(this))
634 },
635 values: function() {
636 return st.call(Pt(this))
637 }
638 },
639 Bt = function(t, n) {
640 return S(t) && t[xt] && "symbol" != typeof n && n in t && String(+n) == String(n)
641 },
642 Wt = function(t, n) {
643 return Bt(t, n = y(n, !0)) ? l(2, t[n]) : B(t, n)
644 },
645 Gt = function(t, n, e) {
646 return !(Bt(t, n = y(n, !0)) && S(e) && w(e, "value")) || w(e, "get") || w(e, "set") || e.configurable || w(e, "writable") && !e.writable || w(e, "enumerable") && !e.enumerable ? U(t, n, e) : (t[n] = e.value, t)
647 };
648 St || (z.f = Wt, D.f = Gt), s(s.S + s.F * !St, "Object", {
649 getOwnPropertyDescriptor: Wt,
650 defineProperty: Gt
651 }), o((function() {
652 vt.call({})
653 })) && (vt = gt = function() {
654 return ht.call(this)
655 });
656 var Qt = p({}, qt);
657 p(Qt, Ut), h(Qt, mt, Ut.values), p(Qt, {
658 slice: Dt,
659 set: zt,
660 constructor: function() {},
661 toString: vt,
662 toLocaleString: Nt
663 }), kt(Qt, "buffer", "b"), kt(Qt, "byteOffset", "o"), kt(Qt, "byteLength", "l"), kt(Qt, "length", "e"), U(Qt, yt, {
664 get: function() {
665 return this[xt]
666 }
667 }), t.exports = function(t, n, e, c) {
668 var u = t + ((c = !!c) ? "Clamped" : "") + "Array",
669 l = "get" + t,
670 p = "set" + t,
671 d = i[u],
672 m = d || {},
673 y = d && O(d),
674 w = !d || !a.ABV,
675 x = {},
676 E = d && d.prototype,
677 I = function(t, e) {
678 U(t, e, {
679 get: function() {
680 return function(t, e) {
681 var r = t._d;
682 return r.v[l](e * n + r.o, At)
683 }(this, e)
684 },
685 set: function(t) {
686 return function(t, e, r) {
687 var i = t._d;
688 c && (r = (r = Math.round(r)) < 0 ? 0 : r > 255 ? 255 : 255 & r), i.v[p](e * n + i.o, r, At)
689 }(this, e, t)
690 },
691 enumerable: !0
692 })
693 };
694 w ? (d = e((function(t, e, r, i) {
695 f(t, d, u, "_d");
696 var o, s, a, c, l = 0,
697 p = 0;
698 if (S(e)) {
699 if (!(e instanceof X || (c = b(e)) == V || c == H)) return xt in e ? Tt(d, e) : Ft.call(d, e);
700 o = e, p = _t(r, n);
701 var m = e.byteLength;
702 if (void 0 === i) {
703 if (m % n) throw W(Ct);
704 if ((s = m - p) < 0) throw W(Ct)
705 } else if ((s = v(i) * n) + p > m) throw W(Ct);
706 a = s / n
707 } else a = g(e), o = new X(s = a * n);
708 for (h(t, "_d", {
709 b: o,
710 o: p,
711 l: s,
712 e: a,
713 v: new J(o)
714 }); l < a;) I(t, l++)
715 })), E = d.prototype = C(Qt), h(E, "constructor", d)) : o((function() {
716 d(1)
717 })) && o((function() {
718 new d(-1)
719 })) && L((function(t) {
720 new d, new d(null), new d(1.5), new d(t)
721 }), !0) || (d = e((function(t, e, r, i) {
722 var o;
723 return f(t, d, u), S(e) ? e instanceof X || (o = b(e)) == V || o == H ? void 0 !== i ? new m(e, _t(r, n), i) : void 0 !== r ? new m(e, _t(r, n)) : new m(e) : xt in e ? Tt(d, e) : Ft.call(d, e) : new m(g(e))
724 })), $(y !== Function.prototype ? A(m).concat(A(y)) : A(m), (function(t) {
725 t in d || h(d, t, m[t])
726 })), d.prototype = E, r || (E.constructor = d));
727 var _ = E[mt],
728 P = !!_ && ("values" == _.name || null == _.name),
729 j = Ut.values;
730 h(d, wt, !0), h(E, xt, u), h(E, Et, !0), h(E, bt, d), (c ? new d(1)[yt] == u : yt in E) || U(E, yt, {
731 get: function() {
732 return u
733 }
734 }), x[u] = d, s(s.G + s.W + s.F * (d != m), x), s(s.S, u, {
735 BYTES_PER_ELEMENT: n
736 }), s(s.S + s.F * o((function() {
737 m.of.call(d, 1)
738 })), u, {
739 from: Ft,
740 of: Lt
741 }), Y in E || h(E, Y, n), s(s.P, u, qt), R(u), s(s.P + s.F * It, u, {
742 set: zt
743 }), s(s.P + s.F * !P, u, Ut), r || E.toString == vt || (E.toString = vt), s(s.P + s.F * o((function() {
744 new d(1).slice()
745 })), u, {
746 slice: Dt
747 }), s(s.P + s.F * (o((function() {
748 return [1, 2].toLocaleString() != new d([1, 2]).toLocaleString()
749 })) || !o((function() {
750 E.toLocaleString.call([1, 2])
751 }))), u, {
752 toLocaleString: Nt
753 }), F[u] = P ? _ : j, r || P || h(E, mt, j)
754 }
755 } else t.exports = function() {}
756 }, function(t, n, e) {
757 var r = e(5);
758 t.exports = function(t, n) {
759 if (!r(t)) return t;
760 var e, i;
761 if (n && "function" == typeof(e = t.toString) && !r(i = e.call(t))) return i;
762 if ("function" == typeof(e = t.valueOf) && !r(i = e.call(t))) return i;
763 if (!n && "function" == typeof(e = t.toString) && !r(i = e.call(t))) return i;
764 throw TypeError("Can't convert object to primitive value")
765 }
766 }, function(t, n, e) {
767 var r = e(32)("meta"),
768 i = e(5),
769 o = e(15),
770 s = e(8).f,
771 a = 0,
772 c = Object.isExtensible || function() {
773 return !0
774 },
775 u = !e(3)((function() {
776 return c(Object.preventExtensions({}))
777 })),
778 f = function(t) {
779 s(t, r, {
780 value: {
781 i: "O" + ++a,
782 w: {}
783 }
784 })
785 },
786 l = t.exports = {
787 KEY: r,
788 NEED: !1,
789 fastKey: function(t, n) {
790 if (!i(t)) return "symbol" == typeof t ? t : ("string" == typeof t ? "S" : "P") + t;
791 if (!o(t, r)) {
792 if (!c(t)) return "F";
793 if (!n) return "E";
794 f(t)
795 }
796 return t[r].i
797 },
798 getWeak: function(t, n) {
799 if (!o(t, r)) {
800 if (!c(t)) return !0;
801 if (!n) return !1;
802 f(t)
803 }
804 return t[r].w
805 },
806 onFreeze: function(t) {
807 return u && l.NEED && c(t) && !o(t, r) && f(t), t
808 }
809 }
810 }, function(t, n) {
811 t.exports = function(t, n) {
812 return {
813 enumerable: !(1 & t),
814 configurable: !(2 & t),
815 writable: !(4 & t),
816 value: n
817 }
818 }
819 }, function(t, n) {
820 var e = 0,
821 r = Math.random();
822 t.exports = function(t) {
823 return "Symbol(".concat(void 0 === t ? "" : t, ")_", (++e + r).toString(36))
824 }
825 }, function(t, n) {
826 t.exports = !1
827 }, function(t, n, e) {
828 var r = e(95),
829 i = e(69);
830 t.exports = Object.keys || function(t) {
831 return r(t, i)
832 }
833 }, function(t, n, e) {
834 var r = e(20),
835 i = Math.max,
836 o = Math.min;
837 t.exports = function(t, n) {
838 return (t = r(t)) < 0 ? i(t + n, 0) : o(t, n)
839 }
840 }, function(t, n, e) {
841 var r = e(4),
842 i = e(96),
843 o = e(69),
844 s = e(68)("IE_PROTO"),
845 a = function() {},
846 c = function() {
847 var t, n = e(66)("iframe"),
848 r = o.length;
849 for (n.style.display = "none", e(71).appendChild(n), n.src = "javascript:", (t = n.contentWindow.document).open(), t.write("<script>document.F=Object<\/script>"), t.close(), c = t.F; r--;) delete c.prototype[o[r]];
850 return c()
851 };
852 t.exports = Object.create || function(t, n) {
853 var e;
854 return null !== t ? (a.prototype = r(t), e = new a, a.prototype = null, e[s] = t) : e = c(), void 0 === n ? e : i(e, n)
855 }
856 }, function(t, n, e) {
857 var r = e(95),
858 i = e(69).concat("length", "prototype");
859 n.f = Object.getOwnPropertyNames || function(t) {
860 return r(t, i)
861 }
862 }, function(t, n, e) {
863 var r = e(15),
864 i = e(13),
865 o = e(68)("IE_PROTO"),
866 s = Object.prototype;
867 t.exports = Object.getPrototypeOf || function(t) {
868 return t = i(t), r(t, o) ? t[o] : "function" == typeof t.constructor && t instanceof t.constructor ? t.constructor.prototype : t instanceof Object ? s : null
869 }
870 }, function(t, n, e) {
871 var r = e(5);
872 t.exports = function(t, n) {
873 if (!r(t) || t._t !== n) throw TypeError("Incompatible receiver, " + n + " required!");
874 return t
875 }
876 }, function(t, n, e) {
877 var r = e(8).f,
878 i = e(15),
879 o = e(6)("toStringTag");
880 t.exports = function(t, n, e) {
881 t && !i(t = e ? t : t.prototype, o) && r(t, o, {
882 configurable: !0,
883 value: n
884 })
885 }
886 }, function(t, n) {
887 t.exports = {}
888 }, function(t, n, e) {
889 var r = e(6)("unscopables"),
890 i = Array.prototype;
891 null == i[r] && e(16)(i, r, {}), t.exports = function(t) {
892 i[r][t] = !0
893 }
894 }, function(t, n, e) {
895 "use strict";
896 var r = e(2),
897 i = e(8),
898 o = e(9),
899 s = e(6)("species");
900 t.exports = function(t) {
901 var n = r[t];
902 o && n && !n[s] && i.f(n, s, {
903 configurable: !0,
904 get: function() {
905 return this
906 }
907 })
908 }
909 }, function(t, n) {
910 t.exports = function(t, n, e, r) {
911 if (!(t instanceof n) || void 0 !== r && r in t) throw TypeError(e + ": incorrect invocation!");
912 return t
913 }
914 }, function(t, n, e) {
915 var r = e(12);
916 t.exports = function(t, n, e) {
917 for (var i in n) r(t, i, n[i], e);
918 return t
919 }
920 }, function(t, n, e) {
921 var r = e(26);
922 t.exports = Object("z").propertyIsEnumerable(0) ? Object : function(t) {
923 return "String" == r(t) ? t.split("") : Object(t)
924 }
925 }, function(t, n) {
926 n.f = {}.propertyIsEnumerable
927 }, function(t, n, e) {
928 var r = e(26),
929 i = e(6)("toStringTag"),
930 o = "Arguments" == r(function() {
931 return arguments
932 }());
933 t.exports = function(t) {
934 var n, e, s;
935 return void 0 === t ? "Undefined" : null === t ? "Null" : "string" == typeof(e = function(t, n) {
936 try {
937 return t[n]
938 } catch (t) {}
939 }(n = Object(t), i)) ? e : o ? r(n) : "Object" == (s = r(n)) && "function" == typeof n.callee ? "Arguments" : s
940 }
941 }, function(t, n, e) {
942 var r = e(4),
943 i = e(25),
944 o = e(6)("species");
945 t.exports = function(t, n) {
946 var e, s = r(t).constructor;
947 return void 0 === s || null == (e = r(s)[o]) ? n : i(e)
948 }
949 }, function(t, n, e) {
950 "use strict";
951 var r = e(123);
952 e.o(r, "StandardApiCaller") && e.d(n, "StandardApiCaller", (function() {
953 return r.StandardApiCaller
954 }));
955 var i = e(124);
956 e.d(n, "StandardApiCaller", (function() {
957 return i.a
958 }))
959 }, function(t, n, e) {
960 "use strict";
961 var r = e(130);
962 e.o(r, "StandardWebsocketConnection") && e.d(n, "StandardWebsocketConnection", (function() {
963 return r.StandardWebsocketConnection
964 }));
965 var i = e(135);
966 e.d(n, "StandardWebsocketConnection", (function() {
967 return i.a
968 }))
969 }, function(t, n, e) {
970 "use strict";
971 var r = e(131);
972 e.o(r, "StandardQuizApi") && e.d(n, "StandardQuizApi", (function() {
973 return r.StandardQuizApi
974 }));
975 var i = e(132);
976 e.d(n, "StandardQuizApi", (function() {
977 return i.a
978 }))
979 }, function(t, n, e) {
980 "use strict";
981 var r = e(133);
982 e.o(r, "StandardQuestApi") && e.d(n, "StandardQuestApi", (function() {
983 return r.StandardQuestApi
984 }));
985 var i = e(134);
986 e.d(n, "StandardQuestApi", (function() {
987 return i.a
988 }))
989 }, function(t, n, e) {
990 var r = e(10),
991 i = e(2),
992 o = "__core-js_shared__",
993 s = i[o] || (i[o] = {});
994 (t.exports = function(t, n) {
995 return s[t] || (s[t] = void 0 !== n ? n : {})
996 })("versions", []).push({
997 version: r.version,
998 mode: e(33) ? "pure" : "global",
999 copyright: "© 2019 Denis Pushkarev (zloirock.ru)"
1000 })
1001 }, function(t, n, e) {
1002 var r = e(17),
1003 i = e(7),
1004 o = e(35);
1005 t.exports = function(t) {
1006 return function(n, e, s) {
1007 var a, c = r(n),
1008 u = i(c.length),
1009 f = o(s, u);
1010 if (t && e != e) {
1011 for (; u > f;)
1012 if ((a = c[f++]) != a) return !0
1013 } else
1014 for (; u > f; f++)
1015 if ((t || f in c) && c[f] === e) return t || f || 0;
1016 return !t && -1
1017 }
1018 }
1019 }, function(t, n) {
1020 n.f = Object.getOwnPropertySymbols
1021 }, function(t, n, e) {
1022 var r = e(0),
1023 i = e(27),
1024 o = e(3),
1025 s = e(73),
1026 a = "[" + s + "]",
1027 c = RegExp("^" + a + a + "*"),
1028 u = RegExp(a + a + "*$"),
1029 f = function(t, n, e) {
1030 var i = {},
1031 a = o((function() {
1032 return !!s[t]() || "​…" != "​…" [t]()
1033 })),
1034 c = i[t] = a ? n(l) : s[t];
1035 e && (i[e] = c), r(r.P + r.F * a, "String", i)
1036 },
1037 l = f.trim = function(t, n) {
1038 return t = String(i(t)), 1 & n && (t = t.replace(c, "")), 2 & n && (t = t.replace(u, "")), t
1039 };
1040 t.exports = f
1041 }, function(t, n, e) {
1042 var r = e(6)("iterator"),
1043 i = !1;
1044 try {
1045 var o = [7][r]();
1046 o.return = function() {
1047 i = !0
1048 }, Array.from(o, (function() {
1049 throw 2
1050 }))
1051 } catch (t) {}
1052 t.exports = function(t, n) {
1053 if (!n && !i) return !1;
1054 var e = !1;
1055 try {
1056 var o = [7],
1057 s = o[r]();
1058 s.next = function() {
1059 return {
1060 done: e = !0
1061 }
1062 }, o[r] = function() {
1063 return s
1064 }, t(o)
1065 } catch (t) {}
1066 return e
1067 }
1068 }, function(t, n, e) {
1069 "use strict";
1070 var r = e(4);
1071 t.exports = function() {
1072 var t = r(this),
1073 n = "";
1074 return t.global && (n += "g"), t.ignoreCase && (n += "i"), t.multiline && (n += "m"), t.unicode && (n += "u"), t.sticky && (n += "y"), n
1075 }
1076 }, function(t, n, e) {
1077 "use strict";
1078 var r = e(48),
1079 i = RegExp.prototype.exec;
1080 t.exports = function(t, n) {
1081 var e = t.exec;
1082 if ("function" == typeof e) {
1083 var o = e.call(t, n);
1084 if ("object" != typeof o) throw new TypeError("RegExp exec method returned something other than an Object or null");
1085 return o
1086 }
1087 if ("RegExp" !== r(t)) throw new TypeError("RegExp#exec called on incompatible receiver");
1088 return i.call(t, n)
1089 }
1090 }, function(t, n, e) {
1091 "use strict";
1092 e(112);
1093 var r = e(12),
1094 i = e(16),
1095 o = e(3),
1096 s = e(27),
1097 a = e(6),
1098 c = e(88),
1099 u = a("species"),
1100 f = !o((function() {
1101 var t = /./;
1102 return t.exec = function() {
1103 var t = [];
1104 return t.groups = {
1105 a: "7"
1106 }, t
1107 }, "7" !== "".replace(t, "$<a>")
1108 })),
1109 l = function() {
1110 var t = /(?:)/,
1111 n = t.exec;
1112 t.exec = function() {
1113 return n.apply(this, arguments)
1114 };
1115 var e = "ab".split(t);
1116 return 2 === e.length && "a" === e[0] && "b" === e[1]
1117 }();
1118 t.exports = function(t, n, e) {
1119 var h = a(t),
1120 p = !o((function() {
1121 var n = {};
1122 return n[h] = function() {
1123 return 7
1124 }, 7 != "" [t](n)
1125 })),
1126 d = p ? !o((function() {
1127 var n = !1,
1128 e = /a/;
1129 return e.exec = function() {
1130 return n = !0, null
1131 }, "split" === t && (e.constructor = {}, e.constructor[u] = function() {
1132 return e
1133 }), e[h](""), !n
1134 })) : void 0;
1135 if (!p || !d || "replace" === t && !f || "split" === t && !l) {
1136 var v = /./ [h],
1137 g = e(s, h, "" [t], (function(t, n, e, r, i) {
1138 return n.exec === c ? p && !i ? {
1139 done: !0,
1140 value: v.call(n, e, r)
1141 } : {
1142 done: !0,
1143 value: t.call(e, n, r)
1144 } : {
1145 done: !1
1146 }
1147 })),
1148 m = g[0],
1149 y = g[1];
1150 r(String.prototype, t, m), i(RegExp.prototype, h, 2 == n ? function(t, n) {
1151 return y.call(t, this, n)
1152 } : function(t) {
1153 return y.call(t, this)
1154 })
1155 }
1156 }
1157 }, function(t, n, e) {
1158 var r = e(24),
1159 i = e(108),
1160 o = e(83),
1161 s = e(4),
1162 a = e(7),
1163 c = e(85),
1164 u = {},
1165 f = {};
1166 (n = t.exports = function(t, n, e, l, h) {
1167 var p, d, v, g, m = h ? function() {
1168 return t
1169 } : c(t),
1170 y = r(e, l, n ? 2 : 1),
1171 w = 0;
1172 if ("function" != typeof m) throw TypeError(t + " is not iterable!");
1173 if (o(m)) {
1174 for (p = a(t.length); p > w; w++)
1175 if ((g = n ? y(s(d = t[w])[0], d[1]) : y(t[w])) === u || g === f) return g
1176 } else
1177 for (v = m.call(t); !(d = v.next()).done;)
1178 if ((g = i(v, y, d.value, n)) === u || g === f) return g
1179 }).BREAK = u, n.RETURN = f
1180 }, function(t, n, e) {
1181 var r = e(2).navigator;
1182 t.exports = r && r.userAgent || ""
1183 }, function(t, n, e) {
1184 "use strict";
1185 var r = e(2),
1186 i = e(0),
1187 o = e(12),
1188 s = e(45),
1189 a = e(30),
1190 c = e(62),
1191 u = e(44),
1192 f = e(5),
1193 l = e(3),
1194 h = e(58),
1195 p = e(40),
1196 d = e(74);
1197 t.exports = function(t, n, e, v, g, m) {
1198 var y = r[t],
1199 w = y,
1200 b = g ? "set" : "add",
1201 S = w && w.prototype,
1202 x = {},
1203 E = function(t) {
1204 var n = S[t];
1205 o(S, t, "delete" == t || "has" == t ? function(t) {
1206 return !(m && !f(t)) && n.call(this, 0 === t ? 0 : t)
1207 } : "get" == t ? function(t) {
1208 return m && !f(t) ? void 0 : n.call(this, 0 === t ? 0 : t)
1209 } : "add" == t ? function(t) {
1210 return n.call(this, 0 === t ? 0 : t), this
1211 } : function(t, e) {
1212 return n.call(this, 0 === t ? 0 : t, e), this
1213 })
1214 };
1215 if ("function" == typeof w && (m || S.forEach && !l((function() {
1216 (new w).entries().next()
1217 })))) {
1218 var C = new w,
1219 O = C[b](m ? {} : -0, 1) != C,
1220 A = l((function() {
1221 C.has(1)
1222 })),
1223 I = h((function(t) {
1224 new w(t)
1225 })),
1226 _ = !m && l((function() {
1227 for (var t = new w, n = 5; n--;) t[b](n, n);
1228 return !t.has(-0)
1229 }));
1230 I || ((w = n((function(n, e) {
1231 u(n, w, t);
1232 var r = d(new y, n, w);
1233 return null != e && c(e, g, r[b], r), r
1234 }))).prototype = S, S.constructor = w), (A || _) && (E("delete"), E("has"), g && E("get")), (_ || O) && E(b), m && S.clear && delete S.clear
1235 } else w = v.getConstructor(n, t, g, b), s(w.prototype, e), a.NEED = !0;
1236 return p(w, t), x[t] = w, i(i.G + i.W + i.F * (w != y), x), m || v.setStrong(w, t, g), w
1237 }
1238 }, function(t, n, e) {
1239 for (var r, i = e(2), o = e(16), s = e(32), a = s("typed_array"), c = s("view"), u = !(!i.ArrayBuffer || !i.DataView), f = u, l = 0, h = "Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(","); l < 9;)(r = i[h[l++]]) ? (o(r.prototype, a, !0), o(r.prototype, c, !0)) : f = !1;
1240 t.exports = {
1241 ABV: u,
1242 CONSTR: f,
1243 TYPED: a,
1244 VIEW: c
1245 }
1246 }, function(t, n, e) {
1247 var r = e(5),
1248 i = e(2).document,
1249 o = r(i) && r(i.createElement);
1250 t.exports = function(t) {
1251 return o ? i.createElement(t) : {}
1252 }
1253 }, function(t, n, e) {
1254 n.f = e(6)
1255 }, function(t, n, e) {
1256 var r = e(54)("keys"),
1257 i = e(32);
1258 t.exports = function(t) {
1259 return r[t] || (r[t] = i(t))
1260 }
1261 }, function(t, n) {
1262 t.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")
1263 }, function(t, n, e) {
1264 var r = e(26);
1265 t.exports = Array.isArray || function(t) {
1266 return "Array" == r(t)
1267 }
1268 }, function(t, n, e) {
1269 var r = e(2).document;
1270 t.exports = r && r.documentElement
1271 }, function(t, n, e) {
1272 var r = e(5),
1273 i = e(4),
1274 o = function(t, n) {
1275 if (i(t), !r(n) && null !== n) throw TypeError(n + ": can't set as prototype!")
1276 };
1277 t.exports = {
1278 set: Object.setPrototypeOf || ("__proto__" in {} ? function(t, n, r) {
1279 try {
1280 (r = e(24)(Function.call, e(21).f(Object.prototype, "__proto__").set, 2))(t, []), n = !(t instanceof Array)
1281 } catch (t) {
1282 n = !0
1283 }
1284 return function(t, e) {
1285 return o(t, e), n ? t.__proto__ = e : r(t, e), t
1286 }
1287 }({}, !1) : void 0),
1288 check: o
1289 }
1290 }, function(t, n) {
1291 t.exports = "\t\n\v\f\r Â áš€á Žâ€€â€â€‚         âŸã€€\u2028\u2029\ufeff"
1292 }, function(t, n, e) {
1293 var r = e(5),
1294 i = e(72).set;
1295 t.exports = function(t, n, e) {
1296 var o, s = n.constructor;
1297 return s !== e && "function" == typeof s && (o = s.prototype) !== e.prototype && r(o) && i && i(t, o), t
1298 }
1299 }, function(t, n, e) {
1300 "use strict";
1301 var r = e(20),
1302 i = e(27);
1303 t.exports = function(t) {
1304 var n = String(i(this)),
1305 e = "",
1306 o = r(t);
1307 if (o < 0 || o == 1 / 0) throw RangeError("Count can't be negative");
1308 for (; o > 0;
1309 (o >>>= 1) && (n += n)) 1 & o && (e += n);
1310 return e
1311 }
1312 }, function(t, n) {
1313 t.exports = Math.sign || function(t) {
1314 return 0 == (t = +t) || t != t ? t : t < 0 ? -1 : 1
1315 }
1316 }, function(t, n) {
1317 var e = Math.expm1;
1318 t.exports = !e || e(10) > 22025.465794806718 || e(10) < 22025.465794806718 || -2e-17 != e(-2e-17) ? function(t) {
1319 return 0 == (t = +t) ? t : t > -1e-6 && t < 1e-6 ? t + t * t / 2 : Math.exp(t) - 1
1320 } : e
1321 }, function(t, n, e) {
1322 var r = e(20),
1323 i = e(27);
1324 t.exports = function(t) {
1325 return function(n, e) {
1326 var o, s, a = String(i(n)),
1327 c = r(e),
1328 u = a.length;
1329 return c < 0 || c >= u ? t ? "" : void 0 : (o = a.charCodeAt(c)) < 55296 || o > 56319 || c + 1 === u || (s = a.charCodeAt(c + 1)) < 56320 || s > 57343 ? t ? a.charAt(c) : o : t ? a.slice(c, c + 2) : s - 56320 + (o - 55296 << 10) + 65536
1330 }
1331 }
1332 }, function(t, n, e) {
1333 "use strict";
1334 var r = e(33),
1335 i = e(0),
1336 o = e(12),
1337 s = e(16),
1338 a = e(41),
1339 c = e(107),
1340 u = e(40),
1341 f = e(38),
1342 l = e(6)("iterator"),
1343 h = !([].keys && "next" in [].keys()),
1344 p = "keys",
1345 d = "values",
1346 v = function() {
1347 return this
1348 };
1349 t.exports = function(t, n, e, g, m, y, w) {
1350 c(e, n, g);
1351 var b, S, x, E = function(t) {
1352 if (!h && t in I) return I[t];
1353 switch (t) {
1354 case p:
1355 case d:
1356 return function() {
1357 return new e(this, t)
1358 }
1359 }
1360 return function() {
1361 return new e(this, t)
1362 }
1363 },
1364 C = n + " Iterator",
1365 O = m == d,
1366 A = !1,
1367 I = t.prototype,
1368 _ = I[l] || I["@@iterator"] || m && I[m],
1369 P = _ || E(m),
1370 j = m ? O ? E("entries") : P : void 0,
1371 M = "Array" == n && I.entries || _;
1372 if (M && (x = f(M.call(new t))) !== Object.prototype && x.next && (u(x, C, !0), r || "function" == typeof x[l] || s(x, l, v)), O && _ && _.name !== d && (A = !0, P = function() {
1373 return _.call(this)
1374 }), r && !w || !h && !A && I[l] || s(I, l, P), a[n] = P, a[C] = v, m)
1375 if (b = {
1376 values: O ? P : E(d),
1377 keys: y ? P : E(p),
1378 entries: j
1379 }, w)
1380 for (S in b) S in I || o(I, S, b[S]);
1381 else i(i.P + i.F * (h || A), n, b);
1382 return b
1383 }
1384 }, function(t, n, e) {
1385 var r = e(81),
1386 i = e(27);
1387 t.exports = function(t, n, e) {
1388 if (r(n)) throw TypeError("String#" + e + " doesn't accept regex!");
1389 return String(i(t))
1390 }
1391 }, function(t, n, e) {
1392 var r = e(5),
1393 i = e(26),
1394 o = e(6)("match");
1395 t.exports = function(t) {
1396 var n;
1397 return r(t) && (void 0 !== (n = t[o]) ? !!n : "RegExp" == i(t))
1398 }
1399 }, function(t, n, e) {
1400 var r = e(6)("match");
1401 t.exports = function(t) {
1402 var n = /./;
1403 try {
1404 "/./" [t](n)
1405 } catch (e) {
1406 try {
1407 return n[r] = !1, !"/./" [t](n)
1408 } catch (t) {}
1409 }
1410 return !0
1411 }
1412 }, function(t, n, e) {
1413 var r = e(41),
1414 i = e(6)("iterator"),
1415 o = Array.prototype;
1416 t.exports = function(t) {
1417 return void 0 !== t && (r.Array === t || o[i] === t)
1418 }
1419 }, function(t, n, e) {
1420 "use strict";
1421 var r = e(8),
1422 i = e(31);
1423 t.exports = function(t, n, e) {
1424 n in t ? r.f(t, n, i(0, e)) : t[n] = e
1425 }
1426 }, function(t, n, e) {
1427 var r = e(48),
1428 i = e(6)("iterator"),
1429 o = e(41);
1430 t.exports = e(10).getIteratorMethod = function(t) {
1431 if (null != t) return t[i] || t["@@iterator"] || o[r(t)]
1432 }
1433 }, function(t, n, e) {
1434 "use strict";
1435 var r = e(13),
1436 i = e(35),
1437 o = e(7);
1438 t.exports = function(t) {
1439 for (var n = r(this), e = o(n.length), s = arguments.length, a = i(s > 1 ? arguments[1] : void 0, e), c = s > 2 ? arguments[2] : void 0, u = void 0 === c ? e : i(c, e); u > a;) n[a++] = t;
1440 return n
1441 }
1442 }, function(t, n, e) {
1443 "use strict";
1444 var r = e(42),
1445 i = e(111),
1446 o = e(41),
1447 s = e(17);
1448 t.exports = e(79)(Array, "Array", (function(t, n) {
1449 this._t = s(t), this._i = 0, this._k = n
1450 }), (function() {
1451 var t = this._t,
1452 n = this._k,
1453 e = this._i++;
1454 return !t || e >= t.length ? (this._t = void 0, i(1)) : i(0, "keys" == n ? e : "values" == n ? t[e] : [e, t[e]])
1455 }), "values"), o.Arguments = o.Array, r("keys"), r("values"), r("entries")
1456 }, function(t, n, e) {
1457 "use strict";
1458 var r, i, o = e(59),
1459 s = RegExp.prototype.exec,
1460 a = String.prototype.replace,
1461 c = s,
1462 u = (r = /a/, i = /b*/g, s.call(r, "a"), s.call(i, "a"), 0 !== r.lastIndex || 0 !== i.lastIndex),
1463 f = void 0 !== /()??/.exec("")[1];
1464 (u || f) && (c = function(t) {
1465 var n, e, r, i, c = this;
1466 return f && (e = new RegExp("^" + c.source + "$(?!\\s)", o.call(c))), u && (n = c.lastIndex), r = s.call(c, t), u && r && (c.lastIndex = c.global ? r.index + r[0].length : n), f && r && r.length > 1 && a.call(r[0], e, (function() {
1467 for (i = 1; i < arguments.length - 2; i++) void 0 === arguments[i] && (r[i] = void 0)
1468 })), r
1469 }), t.exports = c
1470 }, function(t, n, e) {
1471 "use strict";
1472 var r = e(78)(!0);
1473 t.exports = function(t, n, e) {
1474 return n + (e ? r(t, n).length : 1)
1475 }
1476 }, function(t, n, e) {
1477 var r, i, o, s = e(24),
1478 a = e(101),
1479 c = e(71),
1480 u = e(66),
1481 f = e(2),
1482 l = f.process,
1483 h = f.setImmediate,
1484 p = f.clearImmediate,
1485 d = f.MessageChannel,
1486 v = f.Dispatch,
1487 g = 0,
1488 m = {},
1489 y = "onreadystatechange",
1490 w = function() {
1491 var t = +this;
1492 if (m.hasOwnProperty(t)) {
1493 var n = m[t];
1494 delete m[t], n()
1495 }
1496 },
1497 b = function(t) {
1498 w.call(t.data)
1499 };
1500 h && p || (h = function(t) {
1501 for (var n = [], e = 1; arguments.length > e;) n.push(arguments[e++]);
1502 return m[++g] = function() {
1503 a("function" == typeof t ? t : Function(t), n)
1504 }, r(g), g
1505 }, p = function(t) {
1506 delete m[t]
1507 }, "process" == e(26)(l) ? r = function(t) {
1508 l.nextTick(s(w, t, 1))
1509 } : v && v.now ? r = function(t) {
1510 v.now(s(w, t, 1))
1511 } : d ? (o = (i = new d).port2, i.port1.onmessage = b, r = s(o.postMessage, o, 1)) : f.addEventListener && "function" == typeof postMessage && !f.importScripts ? (r = function(t) {
1512 f.postMessage(t + "", "*")
1513 }, f.addEventListener("message", b, !1)) : r = y in u("script") ? function(t) {
1514 c.appendChild(u("script")).onreadystatechange = function() {
1515 c.removeChild(this), w.call(t)
1516 }
1517 } : function(t) {
1518 setTimeout(s(w, t, 1), 0)
1519 }), t.exports = {
1520 set: h,
1521 clear: p
1522 }
1523 }, function(t, n, e) {
1524 "use strict";
1525 var r = e(2),
1526 i = e(9),
1527 o = e(33),
1528 s = e(65),
1529 a = e(16),
1530 c = e(45),
1531 u = e(3),
1532 f = e(44),
1533 l = e(20),
1534 h = e(7),
1535 p = e(119),
1536 d = e(37).f,
1537 v = e(8).f,
1538 g = e(86),
1539 m = e(40),
1540 y = "ArrayBuffer",
1541 w = "DataView",
1542 b = "Wrong index!",
1543 S = r.ArrayBuffer,
1544 x = r.DataView,
1545 E = r.Math,
1546 C = r.RangeError,
1547 O = r.Infinity,
1548 A = S,
1549 I = E.abs,
1550 _ = E.pow,
1551 P = E.floor,
1552 j = E.log,
1553 M = E.LN2,
1554 T = "buffer",
1555 k = "byteLength",
1556 F = "byteOffset",
1557 L = i ? "_b" : T,
1558 R = i ? "_l" : k,
1559 N = i ? "_o" : F;
1560
1561 function q(t, n, e) {
1562 var r, i, o, s = new Array(e),
1563 a = 8 * e - n - 1,
1564 c = (1 << a) - 1,
1565 u = c >> 1,
1566 f = 23 === n ? _(2, -24) - _(2, -77) : 0,
1567 l = 0,
1568 h = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0;
1569 for ((t = I(t)) != t || t === O ? (i = t != t ? 1 : 0, r = c) : (r = P(j(t) / M), t * (o = _(2, -r)) < 1 && (r--, o *= 2), (t += r + u >= 1 ? f / o : f * _(2, 1 - u)) * o >= 2 && (r++, o /= 2), r + u >= c ? (i = 0, r = c) : r + u >= 1 ? (i = (t * o - 1) * _(2, n), r += u) : (i = t * _(2, u - 1) * _(2, n), r = 0)); n >= 8; s[l++] = 255 & i, i /= 256, n -= 8);
1570 for (r = r << n | i, a += n; a > 0; s[l++] = 255 & r, r /= 256, a -= 8);
1571 return s[--l] |= 128 * h, s
1572 }
1573
1574 function D(t, n, e) {
1575 var r, i = 8 * e - n - 1,
1576 o = (1 << i) - 1,
1577 s = o >> 1,
1578 a = i - 7,
1579 c = e - 1,
1580 u = t[c--],
1581 f = 127 & u;
1582 for (u >>= 7; a > 0; f = 256 * f + t[c], c--, a -= 8);
1583 for (r = f & (1 << -a) - 1, f >>= -a, a += n; a > 0; r = 256 * r + t[c], c--, a -= 8);
1584 if (0 === f) f = 1 - s;
1585 else {
1586 if (f === o) return r ? NaN : u ? -O : O;
1587 r += _(2, n), f -= s
1588 }
1589 return (u ? -1 : 1) * r * _(2, f - n)
1590 }
1591
1592 function z(t) {
1593 return t[3] << 24 | t[2] << 16 | t[1] << 8 | t[0]
1594 }
1595
1596 function U(t) {
1597 return [255 & t]
1598 }
1599
1600 function B(t) {
1601 return [255 & t, t >> 8 & 255]
1602 }
1603
1604 function W(t) {
1605 return [255 & t, t >> 8 & 255, t >> 16 & 255, t >> 24 & 255]
1606 }
1607
1608 function G(t) {
1609 return q(t, 52, 8)
1610 }
1611
1612 function Q(t) {
1613 return q(t, 23, 4)
1614 }
1615
1616 function V(t, n, e) {
1617 v(t.prototype, n, {
1618 get: function() {
1619 return this[e]
1620 }
1621 })
1622 }
1623
1624 function H(t, n, e, r) {
1625 var i = p(+e);
1626 if (i + n > t[R]) throw C(b);
1627 var o = t[L]._b,
1628 s = i + t[N],
1629 a = o.slice(s, s + n);
1630 return r ? a : a.reverse()
1631 }
1632
1633 function Y(t, n, e, r, i, o) {
1634 var s = p(+e);
1635 if (s + n > t[R]) throw C(b);
1636 for (var a = t[L]._b, c = s + t[N], u = r(+i), f = 0; f < n; f++) a[c + f] = u[o ? f : n - f - 1]
1637 }
1638 if (s.ABV) {
1639 if (!u((function() {
1640 S(1)
1641 })) || !u((function() {
1642 new S(-1)
1643 })) || u((function() {
1644 return new S, new S(1.5), new S(NaN), S.name != y
1645 }))) {
1646 for (var K, X = (S = function(t) {
1647 return f(this, S), new A(p(t))
1648 }).prototype = A.prototype, J = d(A), $ = 0; J.length > $;)(K = J[$++]) in S || a(S, K, A[K]);
1649 o || (X.constructor = S)
1650 }
1651 var Z = new x(new S(2)),
1652 tt = x.prototype.setInt8;
1653 Z.setInt8(0, 2147483648), Z.setInt8(1, 2147483649), !Z.getInt8(0) && Z.getInt8(1) || c(x.prototype, {
1654 setInt8: function(t, n) {
1655 tt.call(this, t, n << 24 >> 24)
1656 },
1657 setUint8: function(t, n) {
1658 tt.call(this, t, n << 24 >> 24)
1659 }
1660 }, !0)
1661 } else S = function(t) {
1662 f(this, S, y);
1663 var n = p(t);
1664 this._b = g.call(new Array(n), 0), this[R] = n
1665 }, x = function(t, n, e) {
1666 f(this, x, w), f(t, S, w);
1667 var r = t[R],
1668 i = l(n);
1669 if (i < 0 || i > r) throw C("Wrong offset!");
1670 if (i + (e = void 0 === e ? r - i : h(e)) > r) throw C("Wrong length!");
1671 this[L] = t, this[N] = i, this[R] = e
1672 }, i && (V(S, k, "_l"), V(x, T, "_b"), V(x, k, "_l"), V(x, F, "_o")), c(x.prototype, {
1673 getInt8: function(t) {
1674 return H(this, 1, t)[0] << 24 >> 24
1675 },
1676 getUint8: function(t) {
1677 return H(this, 1, t)[0]
1678 },
1679 getInt16: function(t) {
1680 var n = H(this, 2, t, arguments[1]);
1681 return (n[1] << 8 | n[0]) << 16 >> 16
1682 },
1683 getUint16: function(t) {
1684 var n = H(this, 2, t, arguments[1]);
1685 return n[1] << 8 | n[0]
1686 },
1687 getInt32: function(t) {
1688 return z(H(this, 4, t, arguments[1]))
1689 },
1690 getUint32: function(t) {
1691 return z(H(this, 4, t, arguments[1])) >>> 0
1692 },
1693 getFloat32: function(t) {
1694 return D(H(this, 4, t, arguments[1]), 23, 4)
1695 },
1696 getFloat64: function(t) {
1697 return D(H(this, 8, t, arguments[1]), 52, 8)
1698 },
1699 setInt8: function(t, n) {
1700 Y(this, 1, t, U, n)
1701 },
1702 setUint8: function(t, n) {
1703 Y(this, 1, t, U, n)
1704 },
1705 setInt16: function(t, n) {
1706 Y(this, 2, t, B, n, arguments[2])
1707 },
1708 setUint16: function(t, n) {
1709 Y(this, 2, t, B, n, arguments[2])
1710 },
1711 setInt32: function(t, n) {
1712 Y(this, 4, t, W, n, arguments[2])
1713 },
1714 setUint32: function(t, n) {
1715 Y(this, 4, t, W, n, arguments[2])
1716 },
1717 setFloat32: function(t, n) {
1718 Y(this, 4, t, Q, n, arguments[2])
1719 },
1720 setFloat64: function(t, n) {
1721 Y(this, 8, t, G, n, arguments[2])
1722 }
1723 });
1724 m(S, y), m(x, w), a(x.prototype, s.VIEW, !0), n.ArrayBuffer = S, n.DataView = x
1725 }, function(t, n, e) {
1726 "use strict";
1727 (function(n) {
1728 var r = e(18),
1729 i = e(309),
1730 o = {
1731 "Content-Type": "application/x-www-form-urlencoded"
1732 };
1733
1734 function s(t, n) {
1735 !r.isUndefined(t) && r.isUndefined(t["Content-Type"]) && (t["Content-Type"] = n)
1736 }
1737 var a, c = {
1738 adapter: (("undefined" != typeof XMLHttpRequest || void 0 !== n) && (a = e(126)), a),
1739 transformRequest: [function(t, n) {
1740 return i(n, "Content-Type"), r.isFormData(t) || r.isArrayBuffer(t) || r.isBuffer(t) || r.isStream(t) || r.isFile(t) || r.isBlob(t) ? t : r.isArrayBufferView(t) ? t.buffer : r.isURLSearchParams(t) ? (s(n, "application/x-www-form-urlencoded;charset=utf-8"), t.toString()) : r.isObject(t) ? (s(n, "application/json;charset=utf-8"), JSON.stringify(t)) : t
1741 }],
1742 transformResponse: [function(t) {
1743 if ("string" == typeof t) try {
1744 t = JSON.parse(t)
1745 } catch (t) {}
1746 return t
1747 }],
1748 timeout: 0,
1749 xsrfCookieName: "XSRF-TOKEN",
1750 xsrfHeaderName: "X-XSRF-TOKEN",
1751 maxContentLength: -1,
1752 validateStatus: function(t) {
1753 return t >= 200 && t < 300
1754 }
1755 };
1756 c.headers = {
1757 common: {
1758 Accept: "application/json, text/plain, */*"
1759 }
1760 }, r.forEach(["delete", "get", "head"], (function(t) {
1761 c.headers[t] = {}
1762 })), r.forEach(["post", "put", "patch"], (function(t) {
1763 c.headers[t] = r.merge(o)
1764 })), t.exports = c
1765 }).call(this, e(308))
1766 }, function(t, n, e) {
1767 t.exports = !e(9) && !e(3)((function() {
1768 return 7 != Object.defineProperty(e(66)("div"), "a", {
1769 get: function() {
1770 return 7
1771 }
1772 }).a
1773 }))
1774 }, function(t, n, e) {
1775 var r = e(2),
1776 i = e(10),
1777 o = e(33),
1778 s = e(67),
1779 a = e(8).f;
1780 t.exports = function(t) {
1781 var n = i.Symbol || (i.Symbol = o ? {} : r.Symbol || {});
1782 "_" == t.charAt(0) || t in n || a(n, t, {
1783 value: s.f(t)
1784 })
1785 }
1786 }, function(t, n, e) {
1787 var r = e(15),
1788 i = e(17),
1789 o = e(55)(!1),
1790 s = e(68)("IE_PROTO");
1791 t.exports = function(t, n) {
1792 var e, a = i(t),
1793 c = 0,
1794 u = [];
1795 for (e in a) e != s && r(a, e) && u.push(e);
1796 for (; n.length > c;) r(a, e = n[c++]) && (~o(u, e) || u.push(e));
1797 return u
1798 }
1799 }, function(t, n, e) {
1800 var r = e(8),
1801 i = e(4),
1802 o = e(34);
1803 t.exports = e(9) ? Object.defineProperties : function(t, n) {
1804 i(t);
1805 for (var e, s = o(n), a = s.length, c = 0; a > c;) r.f(t, e = s[c++], n[e]);
1806 return t
1807 }
1808 }, function(t, n, e) {
1809 var r = e(17),
1810 i = e(37).f,
1811 o = {}.toString,
1812 s = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
1813 t.exports.f = function(t) {
1814 return s && "[object Window]" == o.call(t) ? function(t) {
1815 try {
1816 return i(t)
1817 } catch (t) {
1818 return s.slice()
1819 }
1820 }(t) : i(r(t))
1821 }
1822 }, function(t, n, e) {
1823 "use strict";
1824 var r = e(34),
1825 i = e(56),
1826 o = e(47),
1827 s = e(13),
1828 a = e(46),
1829 c = Object.assign;
1830 t.exports = !c || e(3)((function() {
1831 var t = {},
1832 n = {},
1833 e = Symbol(),
1834 r = "abcdefghijklmnopqrst";
1835 return t[e] = 7, r.split("").forEach((function(t) {
1836 n[t] = t
1837 })), 7 != c({}, t)[e] || Object.keys(c({}, n)).join("") != r
1838 })) ? function(t, n) {
1839 for (var e = s(t), c = arguments.length, u = 1, f = i.f, l = o.f; c > u;)
1840 for (var h, p = a(arguments[u++]), d = f ? r(p).concat(f(p)) : r(p), v = d.length, g = 0; v > g;) l.call(p, h = d[g++]) && (e[h] = p[h]);
1841 return e
1842 } : c
1843 }, function(t, n) {
1844 t.exports = Object.is || function(t, n) {
1845 return t === n ? 0 !== t || 1 / t == 1 / n : t != t && n != n
1846 }
1847 }, function(t, n, e) {
1848 "use strict";
1849 var r = e(25),
1850 i = e(5),
1851 o = e(101),
1852 s = [].slice,
1853 a = {},
1854 c = function(t, n, e) {
1855 if (!(n in a)) {
1856 for (var r = [], i = 0; i < n; i++) r[i] = "a[" + i + "]";
1857 a[n] = Function("F,a", "return new F(" + r.join(",") + ")")
1858 }
1859 return a[n](t, e)
1860 };
1861 t.exports = Function.bind || function(t) {
1862 var n = r(this),
1863 e = s.call(arguments, 1),
1864 a = function() {
1865 var r = e.concat(s.call(arguments));
1866 return this instanceof a ? c(n, r.length, r) : o(n, r, t)
1867 };
1868 return i(n.prototype) && (a.prototype = n.prototype), a
1869 }
1870 }, function(t, n) {
1871 t.exports = function(t, n, e) {
1872 var r = void 0 === e;
1873 switch (n.length) {
1874 case 0:
1875 return r ? t() : t.call(e);
1876 case 1:
1877 return r ? t(n[0]) : t.call(e, n[0]);
1878 case 2:
1879 return r ? t(n[0], n[1]) : t.call(e, n[0], n[1]);
1880 case 3:
1881 return r ? t(n[0], n[1], n[2]) : t.call(e, n[0], n[1], n[2]);
1882 case 4:
1883 return r ? t(n[0], n[1], n[2], n[3]) : t.call(e, n[0], n[1], n[2], n[3])
1884 }
1885 return t.apply(e, n)
1886 }
1887 }, function(t, n, e) {
1888 var r = e(2).parseInt,
1889 i = e(57).trim,
1890 o = e(73),
1891 s = /^[-+]?0[xX]/;
1892 t.exports = 8 !== r(o + "08") || 22 !== r(o + "0x16") ? function(t, n) {
1893 var e = i(String(t), 3);
1894 return r(e, n >>> 0 || (s.test(e) ? 16 : 10))
1895 } : r
1896 }, function(t, n, e) {
1897 var r = e(2).parseFloat,
1898 i = e(57).trim;
1899 t.exports = 1 / r(e(73) + "-0") != -1 / 0 ? function(t) {
1900 var n = i(String(t), 3),
1901 e = r(n);
1902 return 0 === e && "-" == n.charAt(0) ? -0 : e
1903 } : r
1904 }, function(t, n, e) {
1905 var r = e(26);
1906 t.exports = function(t, n) {
1907 if ("number" != typeof t && "Number" != r(t)) throw TypeError(n);
1908 return +t
1909 }
1910 }, function(t, n, e) {
1911 var r = e(5),
1912 i = Math.floor;
1913 t.exports = function(t) {
1914 return !r(t) && isFinite(t) && i(t) === t
1915 }
1916 }, function(t, n) {
1917 t.exports = Math.log1p || function(t) {
1918 return (t = +t) > -1e-8 && t < 1e-8 ? t - t * t / 2 : Math.log(1 + t)
1919 }
1920 }, function(t, n, e) {
1921 "use strict";
1922 var r = e(36),
1923 i = e(31),
1924 o = e(40),
1925 s = {};
1926 e(16)(s, e(6)("iterator"), (function() {
1927 return this
1928 })), t.exports = function(t, n, e) {
1929 t.prototype = r(s, {
1930 next: i(1, e)
1931 }), o(t, n + " Iterator")
1932 }
1933 }, function(t, n, e) {
1934 var r = e(4);
1935 t.exports = function(t, n, e, i) {
1936 try {
1937 return i ? n(r(e)[0], e[1]) : n(e)
1938 } catch (n) {
1939 var o = t.return;
1940 throw void 0 !== o && r(o.call(t)), n
1941 }
1942 }
1943 }, function(t, n, e) {
1944 var r = e(25),
1945 i = e(13),
1946 o = e(46),
1947 s = e(7);
1948 t.exports = function(t, n, e, a, c) {
1949 r(n);
1950 var u = i(t),
1951 f = o(u),
1952 l = s(u.length),
1953 h = c ? l - 1 : 0,
1954 p = c ? -1 : 1;
1955 if (e < 2)
1956 for (;;) {
1957 if (h in f) {
1958 a = f[h], h += p;
1959 break
1960 }
1961 if (h += p, c ? h < 0 : l <= h) throw TypeError("Reduce of empty array with no initial value")
1962 }
1963 for (; c ? h >= 0 : l > h; h += p) h in f && (a = n(a, f[h], h, u));
1964 return a
1965 }
1966 }, function(t, n, e) {
1967 "use strict";
1968 var r = e(13),
1969 i = e(35),
1970 o = e(7);
1971 t.exports = [].copyWithin || function(t, n) {
1972 var e = r(this),
1973 s = o(e.length),
1974 a = i(t, s),
1975 c = i(n, s),
1976 u = arguments.length > 2 ? arguments[2] : void 0,
1977 f = Math.min((void 0 === u ? s : i(u, s)) - c, s - a),
1978 l = 1;
1979 for (c < a && a < c + f && (l = -1, c += f - 1, a += f - 1); f-- > 0;) c in e ? e[a] = e[c] : delete e[a], a += l, c += l;
1980 return e
1981 }
1982 }, function(t, n) {
1983 t.exports = function(t, n) {
1984 return {
1985 value: n,
1986 done: !!t
1987 }
1988 }
1989 }, function(t, n, e) {
1990 "use strict";
1991 var r = e(88);
1992 e(0)({
1993 target: "RegExp",
1994 proto: !0,
1995 forced: r !== /./.exec
1996 }, {
1997 exec: r
1998 })
1999 }, function(t, n, e) {
2000 e(9) && "g" != /./g.flags && e(8).f(RegExp.prototype, "flags", {
2001 configurable: !0,
2002 get: e(59)
2003 })
2004 }, function(t, n, e) {
2005 "use strict";
2006 var r, i, o, s, a = e(33),
2007 c = e(2),
2008 u = e(24),
2009 f = e(48),
2010 l = e(0),
2011 h = e(5),
2012 p = e(25),
2013 d = e(44),
2014 v = e(62),
2015 g = e(49),
2016 m = e(90).set,
2017 y = e(252)(),
2018 w = e(115),
2019 b = e(253),
2020 S = e(63),
2021 x = e(116),
2022 E = "Promise",
2023 C = c.TypeError,
2024 O = c.process,
2025 A = O && O.versions,
2026 I = A && A.v8 || "",
2027 _ = c.Promise,
2028 P = "process" == f(O),
2029 j = function() {},
2030 M = i = w.f,
2031 T = !! function() {
2032 try {
2033 var t = _.resolve(1),
2034 n = (t.constructor = {})[e(6)("species")] = function(t) {
2035 t(j, j)
2036 };
2037 return (P || "function" == typeof PromiseRejectionEvent) && t.then(j) instanceof n && 0 !== I.indexOf("6.6") && -1 === S.indexOf("Chrome/66")
2038 } catch (t) {}
2039 }(),
2040 k = function(t) {
2041 var n;
2042 return !(!h(t) || "function" != typeof(n = t.then)) && n
2043 },
2044 F = function(t, n) {
2045 if (!t._n) {
2046 t._n = !0;
2047 var e = t._c;
2048 y((function() {
2049 for (var r = t._v, i = 1 == t._s, o = 0, s = function(n) {
2050 var e, o, s, a = i ? n.ok : n.fail,
2051 c = n.resolve,
2052 u = n.reject,
2053 f = n.domain;
2054 try {
2055 a ? (i || (2 == t._h && N(t), t._h = 1), !0 === a ? e = r : (f && f.enter(), e = a(r), f && (f.exit(), s = !0)), e === n.promise ? u(C("Promise-chain cycle")) : (o = k(e)) ? o.call(e, c, u) : c(e)) : u(r)
2056 } catch (t) {
2057 f && !s && f.exit(), u(t)
2058 }
2059 }; e.length > o;) s(e[o++]);
2060 t._c = [], t._n = !1, n && !t._h && L(t)
2061 }))
2062 }
2063 },
2064 L = function(t) {
2065 m.call(c, (function() {
2066 var n, e, r, i = t._v,
2067 o = R(t);
2068 if (o && (n = b((function() {
2069 P ? O.emit("unhandledRejection", i, t) : (e = c.onunhandledrejection) ? e({
2070 promise: t,
2071 reason: i
2072 }) : (r = c.console) && r.error && r.error("Unhandled promise rejection", i)
2073 })), t._h = P || R(t) ? 2 : 1), t._a = void 0, o && n.e) throw n.v
2074 }))
2075 },
2076 R = function(t) {
2077 return 1 !== t._h && 0 === (t._a || t._c).length
2078 },
2079 N = function(t) {
2080 m.call(c, (function() {
2081 var n;
2082 P ? O.emit("rejectionHandled", t) : (n = c.onrejectionhandled) && n({
2083 promise: t,
2084 reason: t._v
2085 })
2086 }))
2087 },
2088 q = function(t) {
2089 var n = this;
2090 n._d || (n._d = !0, (n = n._w || n)._v = t, n._s = 2, n._a || (n._a = n._c.slice()), F(n, !0))
2091 },
2092 D = function(t) {
2093 var n, e = this;
2094 if (!e._d) {
2095 e._d = !0, e = e._w || e;
2096 try {
2097 if (e === t) throw C("Promise can't be resolved itself");
2098 (n = k(t)) ? y((function() {
2099 var r = {
2100 _w: e,
2101 _d: !1
2102 };
2103 try {
2104 n.call(t, u(D, r, 1), u(q, r, 1))
2105 } catch (t) {
2106 q.call(r, t)
2107 }
2108 })): (e._v = t, e._s = 1, F(e, !1))
2109 } catch (t) {
2110 q.call({
2111 _w: e,
2112 _d: !1
2113 }, t)
2114 }
2115 }
2116 };
2117 T || (_ = function(t) {
2118 d(this, _, E, "_h"), p(t), r.call(this);
2119 try {
2120 t(u(D, this, 1), u(q, this, 1))
2121 } catch (t) {
2122 q.call(this, t)
2123 }
2124 }, (r = function(t) {
2125 this._c = [], this._a = void 0, this._s = 0, this._d = !1, this._v = void 0, this._h = 0, this._n = !1
2126 }).prototype = e(45)(_.prototype, {
2127 then: function(t, n) {
2128 var e = M(g(this, _));
2129 return e.ok = "function" != typeof t || t, e.fail = "function" == typeof n && n, e.domain = P ? O.domain : void 0, this._c.push(e), this._a && this._a.push(e), this._s && F(this, !1), e.promise
2130 },
2131 catch: function(t) {
2132 return this.then(void 0, t)
2133 }
2134 }), o = function() {
2135 var t = new r;
2136 this.promise = t, this.resolve = u(D, t, 1), this.reject = u(q, t, 1)
2137 }, w.f = M = function(t) {
2138 return t === _ || t === s ? new o(t) : i(t)
2139 }), l(l.G + l.W + l.F * !T, {
2140 Promise: _
2141 }), e(40)(_, E), e(43)(E), s = e(10).Promise, l(l.S + l.F * !T, E, {
2142 reject: function(t) {
2143 var n = M(this);
2144 return (0, n.reject)(t), n.promise
2145 }
2146 }), l(l.S + l.F * (a || !T), E, {
2147 resolve: function(t) {
2148 return x(a && this === s ? _ : this, t)
2149 }
2150 }), l(l.S + l.F * !(T && e(58)((function(t) {
2151 _.all(t).catch(j)
2152 }))), E, {
2153 all: function(t) {
2154 var n = this,
2155 e = M(n),
2156 r = e.resolve,
2157 i = e.reject,
2158 o = b((function() {
2159 var e = [],
2160 o = 0,
2161 s = 1;
2162 v(t, !1, (function(t) {
2163 var a = o++,
2164 c = !1;
2165 e.push(void 0), s++, n.resolve(t).then((function(t) {
2166 c || (c = !0, e[a] = t, --s || r(e))
2167 }), i)
2168 })), --s || r(e)
2169 }));
2170 return o.e && i(o.v), e.promise
2171 },
2172 race: function(t) {
2173 var n = this,
2174 e = M(n),
2175 r = e.reject,
2176 i = b((function() {
2177 v(t, !1, (function(t) {
2178 n.resolve(t).then(e.resolve, r)
2179 }))
2180 }));
2181 return i.e && r(i.v), e.promise
2182 }
2183 })
2184 }, function(t, n, e) {
2185 "use strict";
2186 var r = e(25);
2187
2188 function i(t) {
2189 var n, e;
2190 this.promise = new t((function(t, r) {
2191 if (void 0 !== n || void 0 !== e) throw TypeError("Bad Promise constructor");
2192 n = t, e = r
2193 })), this.resolve = r(n), this.reject = r(e)
2194 }
2195 t.exports.f = function(t) {
2196 return new i(t)
2197 }
2198 }, function(t, n, e) {
2199 var r = e(4),
2200 i = e(5),
2201 o = e(115);
2202 t.exports = function(t, n) {
2203 if (r(t), i(n) && n.constructor === t) return n;
2204 var e = o.f(t);
2205 return (0, e.resolve)(n), e.promise
2206 }
2207 }, function(t, n, e) {
2208 "use strict";
2209 var r = e(8).f,
2210 i = e(36),
2211 o = e(45),
2212 s = e(24),
2213 a = e(44),
2214 c = e(62),
2215 u = e(79),
2216 f = e(111),
2217 l = e(43),
2218 h = e(9),
2219 p = e(30).fastKey,
2220 d = e(39),
2221 v = h ? "_s" : "size",
2222 g = function(t, n) {
2223 var e, r = p(n);
2224 if ("F" !== r) return t._i[r];
2225 for (e = t._f; e; e = e.n)
2226 if (e.k == n) return e
2227 };
2228 t.exports = {
2229 getConstructor: function(t, n, e, u) {
2230 var f = t((function(t, r) {
2231 a(t, f, n, "_i"), t._t = n, t._i = i(null), t._f = void 0, t._l = void 0, t[v] = 0, null != r && c(r, e, t[u], t)
2232 }));
2233 return o(f.prototype, {
2234 clear: function() {
2235 for (var t = d(this, n), e = t._i, r = t._f; r; r = r.n) r.r = !0, r.p && (r.p = r.p.n = void 0), delete e[r.i];
2236 t._f = t._l = void 0, t[v] = 0
2237 },
2238 delete: function(t) {
2239 var e = d(this, n),
2240 r = g(e, t);
2241 if (r) {
2242 var i = r.n,
2243 o = r.p;
2244 delete e._i[r.i], r.r = !0, o && (o.n = i), i && (i.p = o), e._f == r && (e._f = i), e._l == r && (e._l = o), e[v]--
2245 }
2246 return !!r
2247 },
2248 forEach: function(t) {
2249 d(this, n);
2250 for (var e, r = s(t, arguments.length > 1 ? arguments[1] : void 0, 3); e = e ? e.n : this._f;)
2251 for (r(e.v, e.k, this); e && e.r;) e = e.p
2252 },
2253 has: function(t) {
2254 return !!g(d(this, n), t)
2255 }
2256 }), h && r(f.prototype, "size", {
2257 get: function() {
2258 return d(this, n)[v]
2259 }
2260 }), f
2261 },
2262 def: function(t, n, e) {
2263 var r, i, o = g(t, n);
2264 return o ? o.v = e : (t._l = o = {
2265 i: i = p(n, !0),
2266 k: n,
2267 v: e,
2268 p: r = t._l,
2269 n: void 0,
2270 r: !1
2271 }, t._f || (t._f = o), r && (r.n = o), t[v]++, "F" !== i && (t._i[i] = o)), t
2272 },
2273 getEntry: g,
2274 setStrong: function(t, n, e) {
2275 u(t, n, (function(t, e) {
2276 this._t = d(t, n), this._k = e, this._l = void 0
2277 }), (function() {
2278 for (var t = this, n = t._k, e = t._l; e && e.r;) e = e.p;
2279 return t._t && (t._l = e = e ? e.n : t._t._f) ? f(0, "keys" == n ? e.k : "values" == n ? e.v : [e.k, e.v]) : (t._t = void 0, f(1))
2280 }), e ? "entries" : "values", !e, !0), l(n)
2281 }
2282 }
2283 }, function(t, n, e) {
2284 "use strict";
2285 var r = e(45),
2286 i = e(30).getWeak,
2287 o = e(4),
2288 s = e(5),
2289 a = e(44),
2290 c = e(62),
2291 u = e(23),
2292 f = e(15),
2293 l = e(39),
2294 h = u(5),
2295 p = u(6),
2296 d = 0,
2297 v = function(t) {
2298 return t._l || (t._l = new g)
2299 },
2300 g = function() {
2301 this.a = []
2302 },
2303 m = function(t, n) {
2304 return h(t.a, (function(t) {
2305 return t[0] === n
2306 }))
2307 };
2308 g.prototype = {
2309 get: function(t) {
2310 var n = m(this, t);
2311 if (n) return n[1]
2312 },
2313 has: function(t) {
2314 return !!m(this, t)
2315 },
2316 set: function(t, n) {
2317 var e = m(this, t);
2318 e ? e[1] = n : this.a.push([t, n])
2319 },
2320 delete: function(t) {
2321 var n = p(this.a, (function(n) {
2322 return n[0] === t
2323 }));
2324 return ~n && this.a.splice(n, 1), !!~n
2325 }
2326 }, t.exports = {
2327 getConstructor: function(t, n, e, o) {
2328 var u = t((function(t, r) {
2329 a(t, u, n, "_i"), t._t = n, t._i = d++, t._l = void 0, null != r && c(r, e, t[o], t)
2330 }));
2331 return r(u.prototype, {
2332 delete: function(t) {
2333 if (!s(t)) return !1;
2334 var e = i(t);
2335 return !0 === e ? v(l(this, n)).delete(t) : e && f(e, this._i) && delete e[this._i]
2336 },
2337 has: function(t) {
2338 if (!s(t)) return !1;
2339 var e = i(t);
2340 return !0 === e ? v(l(this, n)).has(t) : e && f(e, this._i)
2341 }
2342 }), u
2343 },
2344 def: function(t, n, e) {
2345 var r = i(o(n), !0);
2346 return !0 === r ? v(t).set(n, e) : r[t._i] = e, t
2347 },
2348 ufstore: v
2349 }
2350 }, function(t, n, e) {
2351 var r = e(20),
2352 i = e(7);
2353 t.exports = function(t) {
2354 if (void 0 === t) return 0;
2355 var n = r(t),
2356 e = i(n);
2357 if (n !== e) throw RangeError("Wrong length!");
2358 return e
2359 }
2360 }, function(t, n, e) {
2361 var r = e(37),
2362 i = e(56),
2363 o = e(4),
2364 s = e(2).Reflect;
2365 t.exports = s && s.ownKeys || function(t) {
2366 var n = r.f(o(t)),
2367 e = i.f;
2368 return e ? n.concat(e(t)) : n
2369 }
2370 }, function(t, n, e) {
2371 var r = e(7),
2372 i = e(75),
2373 o = e(27);
2374 t.exports = function(t, n, e, s) {
2375 var a = String(o(t)),
2376 c = a.length,
2377 u = void 0 === e ? " " : String(e),
2378 f = r(n);
2379 if (f <= c || "" == u) return a;
2380 var l = f - c,
2381 h = i.call(u, Math.ceil(l / u.length));
2382 return h.length > l && (h = h.slice(0, l)), s ? h + a : a + h
2383 }
2384 }, function(t, n, e) {
2385 var r = e(34),
2386 i = e(17),
2387 o = e(47).f;
2388 t.exports = function(t) {
2389 return function(n) {
2390 for (var e, s = i(n), a = r(s), c = a.length, u = 0, f = []; c > u;) o.call(s, e = a[u++]) && f.push(t ? [e, s[e]] : s[e]);
2391 return f
2392 }
2393 }
2394 }, function(t, n) {}, function(t, n, e) {
2395 "use strict";
2396 e.d(n, "a", (function() {
2397 return a
2398 }));
2399 var r = e(1),
2400 i = e.n(r),
2401 o = e(11);
2402
2403 function s(t, n, e) {
2404 return n in t ? Object.defineProperty(t, n, {
2405 value: e,
2406 enumerable: !0,
2407 configurable: !0,
2408 writable: !0
2409 }) : t[n] = e, t
2410 }
2411 class a {
2412 constructor(t, n, e) {
2413 if (this.config = e, s(this, "host", void 0), s(this, "apiEndpoint", void 0), s(this, "cdnEndpoint", void 0), s(this, "momentApi", void 0), s(this, "momentCdnApi", void 0), s(this, "momentClassApi", void 0), s(this, "userApi", void 0), s(this, "contentApi", void 0), s(this, "httpOptions", void 0), !e) throw Error("Missing configuration, the MDK needs the configuration object to work correctly.");
2414 this.apiEndpoint = o.a[t].api, this.host = o.a[t].host, this.cdnEndpoint = o.a[t].cdn, this.momentApi = this.apiEndpoint + "moments/", this.momentCdnApi = this.cdnEndpoint + "/api/moments/", this.momentClassApi = this.apiEndpoint + "momentClasses/", this.userApi = this.apiEndpoint + "users/", this.contentApi = this.cdnEndpoint + "/api/content/", this.httpOptions = {
2415 headers: {
2416 "X-Token": n
2417 }
2418 }
2419 }
2420 getMoment(t) {
2421 if (this.config && 0 !== Object.keys(this.config.momentClassData).length) return Promise.resolve({
2422 active: this.config.isActive,
2423 class: this.config.momentClassId,
2424 created: this.config.created,
2425 name: this.config.momentClassData.name,
2426 _id: t || this.config.momentId
2427 });
2428 var n = this.momentApi + t;
2429 return i.a.get(n, this.httpOptions)
2430 }
2431 getMomentClass(t) {
2432 if (this.config && 0 !== Object.keys(this.config.momentClassData).length) return Promise.resolve(this.config.momentClassData);
2433 var n = this.momentClassApi + t;
2434 return i.a.get(n, this.httpOptions)
2435 }
2436 getMomentGlobalState(t) {
2437 var n = this.momentCdnApi + t + "/state";
2438 return i.a.get(n)
2439 }
2440 getMomentUserState(t, n) {
2441 var e = this.momentApi + t + "/state/users/" + n;
2442 return i.a.get(e, this.httpOptions)
2443 }
2444 setMomentUserState(t, n, e) {
2445 var r = this.momentApi + t + "/state/";
2446 return i.a.post(r, e, this.httpOptions)
2447 }
2448 getUserInfo(t) {
2449 var n = this.userApi + t;
2450 return i.a.get(n, this.httpOptions)
2451 }
2452 getUserPicture(t) {
2453 var n = this.userApi + t + "/profile";
2454 return i.a.get(n)
2455 }
2456 getContent(t) {
2457 var n = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1],
2458 e = this.contentApi + t;
2459 return i.a.get(e, {
2460 params: {
2461 thumb: n
2462 }
2463 })
2464 }
2465 fetchContent(t) {
2466 var n = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1],
2467 e = this.contentApi + t,
2468 r = {
2469 responseType: "blob",
2470 params: {},
2471 headers: Object.assign({}, this.httpOptions.headers, {
2472 "Content-Type": "image/png"
2473 })
2474 };
2475 return n && (r.params = {
2476 thumb: !0
2477 }), i.a.get(e, r)
2478 }
2479 uploadContent(t) {
2480 var n = "".concat(this.apiEndpoint, "events/").concat(this.config.eventId, "/").concat(this.config.momentId, "/content"),
2481 e = Object.assign({}, this.httpOptions);
2482 return e.headers = Object.assign({}, this.httpOptions.headers, {
2483 "Content-Type": t.type || "image/jpeg",
2484 "X-Tags": t.tags ? t.tags.join(",") : ""
2485 }), i.a.post(n, t.file, e)
2486 }
2487 getDeletedContent() {
2488 var t = "".concat(this.apiEndpoint, "_events/").concat(this.config.eventId, "/content/deleted");
2489 return i.a.get(t, this.httpOptions)
2490 }
2491 getContentCdnLocation(t) {
2492 return this.cdnEndpoint + "/api/content/" + t
2493 }
2494 getCdnHost() {
2495 return this.cdnEndpoint
2496 }
2497 getHost() {
2498 return this.host
2499 }
2500 }
2501 }, function(t, n, e) {
2502 "use strict";
2503 t.exports = function(t, n) {
2504 return function() {
2505 for (var e = new Array(arguments.length), r = 0; r < e.length; r++) e[r] = arguments[r];
2506 return t.apply(n, e)
2507 }
2508 }
2509 }, function(t, n, e) {
2510 "use strict";
2511 var r = e(18),
2512 i = e(310),
2513 o = e(312),
2514 s = e(313),
2515 a = e(314),
2516 c = e(127);
2517 t.exports = function(t) {
2518 return new Promise((function(n, u) {
2519 var f = t.data,
2520 l = t.headers;
2521 r.isFormData(f) && delete l["Content-Type"];
2522 var h = new XMLHttpRequest;
2523 if (t.auth) {
2524 var p = t.auth.username || "",
2525 d = t.auth.password || "";
2526 l.Authorization = "Basic " + btoa(p + ":" + d)
2527 }
2528 if (h.open(t.method.toUpperCase(), o(t.url, t.params, t.paramsSerializer), !0), h.timeout = t.timeout, h.onreadystatechange = function() {
2529 if (h && 4 === h.readyState && (0 !== h.status || h.responseURL && 0 === h.responseURL.indexOf("file:"))) {
2530 var e = "getAllResponseHeaders" in h ? s(h.getAllResponseHeaders()) : null,
2531 r = {
2532 data: t.responseType && "text" !== t.responseType ? h.response : h.responseText,
2533 status: h.status,
2534 statusText: h.statusText,
2535 headers: e,
2536 config: t,
2537 request: h
2538 };
2539 i(n, u, r), h = null
2540 }
2541 }, h.onerror = function() {
2542 u(c("Network Error", t, null, h)), h = null
2543 }, h.ontimeout = function() {
2544 u(c("timeout of " + t.timeout + "ms exceeded", t, "ECONNABORTED", h)), h = null
2545 }, r.isStandardBrowserEnv()) {
2546 var v = e(315),
2547 g = (t.withCredentials || a(t.url)) && t.xsrfCookieName ? v.read(t.xsrfCookieName) : void 0;
2548 g && (l[t.xsrfHeaderName] = g)
2549 }
2550 if ("setRequestHeader" in h && r.forEach(l, (function(t, n) {
2551 void 0 === f && "content-type" === n.toLowerCase() ? delete l[n] : h.setRequestHeader(n, t)
2552 })), t.withCredentials && (h.withCredentials = !0), t.responseType) try {
2553 h.responseType = t.responseType
2554 } catch (n) {
2555 if ("json" !== t.responseType) throw n
2556 }
2557 "function" == typeof t.onDownloadProgress && h.addEventListener("progress", t.onDownloadProgress), "function" == typeof t.onUploadProgress && h.upload && h.upload.addEventListener("progress", t.onUploadProgress), t.cancelToken && t.cancelToken.promise.then((function(t) {
2558 h && (h.abort(), u(t), h = null)
2559 })), void 0 === f && (f = null), h.send(f)
2560 }))
2561 }
2562 }, function(t, n, e) {
2563 "use strict";
2564 var r = e(311);
2565 t.exports = function(t, n, e, i, o) {
2566 var s = new Error(t);
2567 return r(s, n, e, i, o)
2568 }
2569 }, function(t, n, e) {
2570 "use strict";
2571 t.exports = function(t) {
2572 return !(!t || !t.__CANCEL__)
2573 }
2574 }, function(t, n, e) {
2575 "use strict";
2576
2577 function r(t) {
2578 this.message = t
2579 }
2580 r.prototype.toString = function() {
2581 return "Cancel" + (this.message ? ": " + this.message : "")
2582 }, r.prototype.__CANCEL__ = !0, t.exports = r
2583 }, function(t, n) {}, function(t, n) {}, function(t, n, e) {
2584 "use strict";
2585 e.d(n, "a", (function() {
2586 return a
2587 }));
2588 var r = e(1),
2589 i = e.n(r),
2590 o = e(11);
2591
2592 function s(t, n, e) {
2593 return n in t ? Object.defineProperty(t, n, {
2594 value: e,
2595 enumerable: !0,
2596 configurable: !0,
2597 writable: !0
2598 }) : t[n] = e, t
2599 }
2600 class a {
2601 constructor(t, n, e) {
2602 if (this.config = e, s(this, "apiEndpoint", void 0), s(this, "cdnEndpoint", void 0), s(this, "momentId", void 0), s(this, "quizId", void 0), s(this, "quizCdnApi", void 0), s(this, "quizMomentApi", void 0), s(this, "quizMomentCdnApi", void 0), s(this, "httpOptions", void 0), !e) throw new Error("Missing configuration, the MDK needs the configuration object to work correctly.");
2603 if (!e.quizId) throw new Error("The quiz id is missing. Your code is trying to use the quiz API:s without a reference to the quiz.");
2604 this.apiEndpoint = o.a[t].api, this.cdnEndpoint = o.a[t].cdn, this.quizId = this.config.quizId, this.momentId = this.config.momentId, this.quizCdnApi = this.cdnEndpoint + "/api/quizzes/", this.quizMomentCdnApi = "".concat(this.cdnEndpoint, "/api/quizzes/").concat(this.quizId, "/moments/").concat(this.momentId), this.quizMomentApi = "".concat(this.apiEndpoint, "quizzes/").concat(this.quizId, "/moments/").concat(this.momentId), this.httpOptions = {
2605 headers: {
2606 "X-Token": n
2607 }
2608 }
2609 }
2610 getQuiz() {
2611 var t = this.quizCdnApi + this.quizId;
2612 return i.a.get(t, this.httpOptions).then((t => t.data))
2613 }
2614 getRuntimeInfo() {
2615 var t = this.quizMomentApi + "/info";
2616 return i.a.get(t, this.httpOptions).then((t => t.data))
2617 }
2618 getTopScores() {
2619 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0,
2620 n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 10,
2621 e = arguments.length > 2 ? arguments[2] : void 0,
2622 r = this.quizMomentCdnApi + "/results",
2623 o = {
2624 offset: t,
2625 limit: n
2626 };
2627 e && (o.series = e);
2628 var s = Object.assign({
2629 params: o
2630 }, this.httpOptions);
2631 return i.a.get(r, s).then((t => t.data))
2632 }
2633 getUserScores() {
2634 var t = this.quizMomentApi + "/results/myown";
2635 return i.a.get(t, this.httpOptions).then((t => t.data))
2636 }
2637 getUserProfile() {
2638 var t = this.quizMomentApi + "/profile";
2639 return i.a.get(t, this.httpOptions).then((t => t.data))
2640 }
2641 setUserProfile(t) {
2642 var n = this.quizMomentApi + "/profile";
2643 return i.a.put(n, t, this.httpOptions).then((t => t.data))
2644 }
2645 getQuestion(t) {
2646 var n = this.quizMomentApi + "/questions/" + t;
2647 return i.a.get(n, this.httpOptions).then((t => t.data))
2648 }
2649 playNewRound(t) {
2650 var n = "".concat(this.quizMomentApi, "/playNewRound"),
2651 e = t ? {
2652 token: t
2653 } : {};
2654 return i.a.put(n, e, this.httpOptions).then((t => t.data))
2655 }
2656 answerQuestion(t, n, e, r) {
2657 var o = "".concat(this.quizMomentApi, "/questions/").concat(t, "/answer"),
2658 s = {
2659 hash: n,
2660 answer: e
2661 };
2662 if ("object" == typeof r)
2663 for (var a in r) r.hasOwnProperty(a) && (s[a] = r[a]);
2664 return i.a.put(o, s, this.httpOptions).then((t => t.data))
2665 }
2666 }
2667 }, function(t, n) {}, function(t, n, e) {
2668 "use strict";
2669 e.d(n, "a", (function() {
2670 return a
2671 }));
2672 var r = e(1),
2673 i = e.n(r),
2674 o = e(11);
2675
2676 function s(t, n, e) {
2677 return n in t ? Object.defineProperty(t, n, {
2678 value: e,
2679 enumerable: !0,
2680 configurable: !0,
2681 writable: !0
2682 }) : t[n] = e, t
2683 }
2684 class a {
2685 constructor(t, n, e) {
2686 if (this.config = e, s(this, "apiEndpoint", void 0), s(this, "cdnEndpoint", void 0), s(this, "momentId", void 0), s(this, "questId", void 0), s(this, "questCdnApi", void 0), s(this, "questMomentApi", void 0), s(this, "questMomentCdnApi", void 0), s(this, "httpOptions", void 0), !e) throw new Error("Missing configuration, the MDK needs the configuration object to work correctly.");
2687 if (!e.questId) throw new Error("The quiz id is missing. Your code is trying to use the quiz API:s without a reference to the quiz.");
2688 this.apiEndpoint = o.a[t].api, this.cdnEndpoint = o.a[t].cdn, this.questId = this.config.questId, this.momentId = this.config.momentId, this.questCdnApi = this.cdnEndpoint + "/api/quests/", this.questMomentCdnApi = "".concat(this.cdnEndpoint, "/api/quests/").concat(this.questId, "/moments/").concat(this.momentId), this.questMomentApi = "".concat(this.apiEndpoint, "quests/").concat(this.questId, "/moments/").concat(this.momentId), this.httpOptions = {
2689 headers: {
2690 "X-Token": n
2691 }
2692 }
2693 }
2694 getQuest() {
2695 var t = this.questCdnApi + this.questId;
2696 return i.a.get(t, this.httpOptions).then((t => t.data))
2697 }
2698 getRuntimeInfo() {
2699 var t = this.questMomentApi + "/info";
2700 return i.a.get(t, this.httpOptions).then((t => t.data))
2701 }
2702 getTopScores() {
2703 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0,
2704 n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 10,
2705 e = arguments.length > 2 ? arguments[2] : void 0,
2706 r = this.questMomentCdnApi + "/results",
2707 o = {
2708 offset: t,
2709 limit: n
2710 };
2711 e && (o.series = e);
2712 var s = Object.assign({
2713 params: o
2714 }, this.httpOptions);
2715 return i.a.get(r, s).then((t => t.data))
2716 }
2717 getUserScores() {
2718 var t = this.questMomentApi + "/results/myown";
2719 return i.a.get(t, this.httpOptions).then((t => t.data))
2720 }
2721 getUserProfile() {
2722 var t = this.questMomentApi + "/profile";
2723 return i.a.get(t, this.httpOptions).then((t => t.data))
2724 }
2725 setUserProfile(t) {
2726 var n = this.questMomentApi + "/profile";
2727 return i.a.put(n, t, this.httpOptions).then((t => t.data))
2728 }
2729 playNewRound(t) {
2730 var n = "".concat(this.questMomentApi, "/playNewRound"),
2731 e = t ? {
2732 token: t
2733 } : {};
2734 return i.a.put(n, e, this.httpOptions).then((t => t.data))
2735 }
2736 getChallenge(t) {
2737 var n = this.questMomentApi + "/challenges/" + t;
2738 return i.a.get(n, this.httpOptions).then((t => t.data))
2739 }
2740 respondToChallenge(t, n, e, r) {
2741 var o = "".concat(this.questMomentApi, "/challenges/").concat(t, "/response"),
2742 s = {
2743 hash: n,
2744 responses: e
2745 };
2746 if ("object" == typeof r)
2747 for (var a in r) r.hasOwnProperty(a) && (s[a] = r[a]);
2748 return i.a.put(o, s, this.httpOptions).then((t => t.data))
2749 }
2750 }
2751 }, function(t, n, e) {
2752 "use strict";
2753 var r = e(11);
2754 class i extends Event {
2755 constructor(t, n, e) {
2756 var r, i, o;
2757 super(t, n), o = void 0, (i = "topic") in (r = this) ? Object.defineProperty(r, i, {
2758 value: o,
2759 enumerable: !0,
2760 configurable: !0,
2761 writable: !0
2762 }) : r[i] = o, this.topic = e
2763 }
2764 }
2765
2766 function o(t, n, e, r, i, o, s) {
2767 try {
2768 var a = t[o](s),
2769 c = a.value
2770 } catch (t) {
2771 return void e(t)
2772 }
2773 a.done ? n(c) : Promise.resolve(c).then(r, i)
2774 }
2775
2776 function s(t, n, e) {
2777 return n in t ? Object.defineProperty(t, n, {
2778 value: e,
2779 enumerable: !0,
2780 configurable: !0,
2781 writable: !0
2782 }) : t[n] = e, t
2783 }
2784 e.d(n, "a", (function() {
2785 return a
2786 }));
2787 class a {
2788 constructor(t, n, e, i) {
2789 this.config = e, s(this, "wsEndpoint", void 0), s(this, "wsUrl", void 0), s(this, "wsConnection", void 0), s(this, "connTimeoutRef", void 0), s(this, "pingLoopRef", void 0), s(this, "pingInterval", 1e4), s(this, "pingDuration", 5e3), s(this, "isAuthenticated", !1), s(this, "customOnMessage", void 0), s(this, "customOnError", void 0), s(this, "customOnClose", void 0), s(this, "customOnOpen", void 0), s(this, "customOnAuth", void 0), s(this, "topic", ""), this.wsEndpoint = r.a[t].ws + "moments/", this.wsUrl = this.wsEndpoint + n + "/ws", this.topic = i
2790 }
2791 connect(t, n) {
2792 var e = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
2793 r = !(arguments.length > 3 && void 0 !== arguments[3]) || arguments[3];
2794 if (!t || !n) throw new Error("You must define onMessage and onError logic");
2795 if (this.wsConnection) return null;
2796 this.stopPeriodicalPing(), this.wsConnection = new WebSocket(this.wsUrl);
2797 var i = this;
2798 return this.customOnAuth = t => {
2799 i.isAuthenticated = !0, e.onAuth()
2800 }, this.customOnError = t => {
2801 n(t)
2802 }, this.customOnMessage = function() {
2803 var n, e = (n = function*(n) {
2804 var e;
2805 if (n.data instanceof Blob) try {
2806 var r = yield i.checkWSMessage(n.data);
2807 i.handleSpecialMessage(r, i.wsConnection)
2808 } catch (t) {
2809 console.error("Error while checking response: ", t.message || t)
2810 } else if ("string" == typeof n.data) {
2811 try {
2812 e = JSON.parse(n.data)
2813 } catch (t) {
2814 e = n.data
2815 }
2816 t(e)
2817 }
2818 }, function() {
2819 var t = this,
2820 e = arguments;
2821 return new Promise((function(r, i) {
2822 var s = n.apply(t, e);
2823
2824 function a(t) {
2825 o(s, r, i, a, c, "next", t)
2826 }
2827
2828 function c(t) {
2829 o(s, r, i, a, c, "throw", t)
2830 }
2831 a(void 0)
2832 }))
2833 });
2834 return function(t) {
2835 return e.apply(this, arguments)
2836 }
2837 }(), this.customOnOpen = t => {
2838 console.log("Websocket Connection to ".concat(i.wsUrl, " opened")), r && i.send({
2839 token: i.config.token
2840 }), this.startPeriodicalPing(), void 0 !== e.onOpen && e.onOpen(t)
2841 }, this.customOnClose = t => {
2842 1006 === t.code || 3006 === t.code ? console.error("Connection Error: the connection was interruped with code ".concat(t.code, ".")) : (this.stopPeriodicalPing(), console.log("WS to ".concat(i.wsUrl, " closed with code ").concat(t.code))), i.wsConnection = null, void 0 !== e.onClose && e.onClose(t)
2843 }, this.wsConnection.addEventListener("message", this.customOnMessage, !1), this.wsConnection.addEventListener("error", this.customOnError, !1), this.wsConnection.addEventListener("open", this.customOnOpen, !1), this.wsConnection.addEventListener("close", this.customOnClose, !1), this.wsConnection.addEventListener("auth", this.customOnAuth, !1), this.wsConnection.addEventListener("pong", (() => clearTimeout(this.connTimeoutRef)), !1), this.wsConnection
2844 }
2845 send(t) {
2846 if (!this.wsConnection) return console.warn("The connection has not been instantiated. Please open the connection before sending messages."), !1;
2847 if (this.wsConnection.readyState === WebSocket.OPEN) try {
2848 return this.wsConnection.send(JSON.stringify(t)), !0
2849 } catch (t) {
2850 return console.error("Error while sending the message over ws: ", t.message || t), !1
2851 }
2852 return console.warn("The connection is not ready yet."), !1
2853 }
2854 startPeriodicalPing() {
2855 this.pingLoopRef = setInterval((() => {
2856 this.pingServer(), this.connTimeoutRef = setTimeout(this.sendDisconnectionSignal.bind(this), this.pingDuration)
2857 }), this.pingInterval)
2858 }
2859 stopPeriodicalPing() {
2860 clearInterval(this.pingLoopRef)
2861 }
2862 pingServer() {
2863 this.wsConnection && this.wsConnection.send("_ping")
2864 }
2865 sendDisconnectionSignal() {
2866 window.dispatchEvent(new i("ws-offline", {}, this.topic))
2867 }
2868 sendMessageTo(t, n, e) {
2869 if (!this.wsConnection) return console.warn("The connection has not been instantiated. Please call open() before sending messages."), !1;
2870 if (this.wsConnection.readyState === WebSocket.OPEN) try {
2871 return this.wsConnection.send(JSON.stringify({
2872 to: n,
2873 message: e
2874 })), !0
2875 } catch (t) {
2876 return console.error("Error while sending the message over ws: ", t.message || t), !1
2877 }
2878 return console.warn("The connection is not ready yet."), !1
2879 }
2880 close() {
2881 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1e3,
2882 n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "The user session has ended.";
2883 return this.wsConnection && (this.wsConnection.close(t, n), this.wsConnection = null), !0
2884 }
2885 checkWSMessage(t) {
2886 return new Promise(((n, e) => {
2887 var r = new FileReader;
2888 r.onload = function() {
2889 "string" == typeof r.result ? n(r.result) : e("Unable to read the response")
2890 }, r.readAsText(t)
2891 }))
2892 }
2893 handleSpecialMessage(t, n) {
2894 switch (t) {
2895 case "ok":
2896 n.dispatchEvent(new Event("auth"));
2897 break;
2898 case "_pong":
2899 n.dispatchEvent(new Event("pong"))
2900 }
2901 }
2902 }
2903 }, function(t, n, e) {
2904 e(137), t.exports = e(304)
2905 }, function(t, n, e) {
2906 "use strict";
2907 (function(t) {
2908 e(139), e(283), e(285), e(287), e(289), e(291), e(293), e(295), e(297), e(299), e(303), t._babelPolyfill && "undefined" != typeof console && console.warn && console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."), t._babelPolyfill = !0
2909 }).call(this, e(138))
2910 }, function(t, n) {
2911 var e;
2912 e = function() {
2913 return this
2914 }();
2915 try {
2916 e = e || new Function("return this")()
2917 } catch (t) {
2918 "object" == typeof window && (e = window)
2919 }
2920 t.exports = e
2921 }, function(t, n, e) {
2922 e(140), e(143), e(144), e(145), e(146), e(147), e(148), e(149), e(150), e(151), e(152), e(153), e(154), e(155), e(156), e(157), e(158), e(159), e(160), e(161), e(162), e(163), e(164), e(165), e(166), e(167), e(168), e(169), e(170), e(171), e(172), e(173), e(174), e(175), e(176), e(177), e(178), e(179), e(180), e(181), e(182), e(183), e(184), e(186), e(187), e(188), e(189), e(190), e(191), e(192), e(193), e(194), e(195), e(196), e(197), e(198), e(199), e(200), e(201), e(202), e(203), e(204), e(205), e(206), e(207), e(208), e(209), e(210), e(211), e(212), e(213), e(214), e(215), e(216), e(217), e(218), e(219), e(221), e(222), e(224), e(225), e(226), e(227), e(228), e(229), e(230), e(233), e(234), e(235), e(236), e(237), e(238), e(239), e(240), e(241), e(242), e(243), e(244), e(245), e(87), e(246), e(112), e(247), e(113), e(248), e(249), e(250), e(251), e(114), e(254), e(255), e(256), e(257), e(258), e(259), e(260), e(261), e(262), e(263), e(264), e(265), e(266), e(267), e(268), e(269), e(270), e(271), e(272), e(273), e(274), e(275), e(276), e(277), e(278), e(279), e(280), e(281), e(282), t.exports = e(10)
2923 }, function(t, n, e) {
2924 "use strict";
2925 var r = e(2),
2926 i = e(15),
2927 o = e(9),
2928 s = e(0),
2929 a = e(12),
2930 c = e(30).KEY,
2931 u = e(3),
2932 f = e(54),
2933 l = e(40),
2934 h = e(32),
2935 p = e(6),
2936 d = e(67),
2937 v = e(94),
2938 g = e(142),
2939 m = e(70),
2940 y = e(4),
2941 w = e(5),
2942 b = e(17),
2943 S = e(29),
2944 x = e(31),
2945 E = e(36),
2946 C = e(97),
2947 O = e(21),
2948 A = e(8),
2949 I = e(34),
2950 _ = O.f,
2951 P = A.f,
2952 j = C.f,
2953 M = r.Symbol,
2954 T = r.JSON,
2955 k = T && T.stringify,
2956 F = p("_hidden"),
2957 L = p("toPrimitive"),
2958 R = {}.propertyIsEnumerable,
2959 N = f("symbol-registry"),
2960 q = f("symbols"),
2961 D = f("op-symbols"),
2962 z = Object.prototype,
2963 U = "function" == typeof M,
2964 B = r.QObject,
2965 W = !B || !B.prototype || !B.prototype.findChild,
2966 G = o && u((function() {
2967 return 7 != E(P({}, "a", {
2968 get: function() {
2969 return P(this, "a", {
2970 value: 7
2971 }).a
2972 }
2973 })).a
2974 })) ? function(t, n, e) {
2975 var r = _(z, n);
2976 r && delete z[n], P(t, n, e), r && t !== z && P(z, n, r)
2977 } : P,
2978 Q = function(t) {
2979 var n = q[t] = E(M.prototype);
2980 return n._k = t, n
2981 },
2982 V = U && "symbol" == typeof M.iterator ? function(t) {
2983 return "symbol" == typeof t
2984 } : function(t) {
2985 return t instanceof M
2986 },
2987 H = function(t, n, e) {
2988 return t === z && H(D, n, e), y(t), n = S(n, !0), y(e), i(q, n) ? (e.enumerable ? (i(t, F) && t[F][n] && (t[F][n] = !1), e = E(e, {
2989 enumerable: x(0, !1)
2990 })) : (i(t, F) || P(t, F, x(1, {})), t[F][n] = !0), G(t, n, e)) : P(t, n, e)
2991 },
2992 Y = function(t, n) {
2993 y(t);
2994 for (var e, r = g(n = b(n)), i = 0, o = r.length; o > i;) H(t, e = r[i++], n[e]);
2995 return t
2996 },
2997 K = function(t) {
2998 var n = R.call(this, t = S(t, !0));
2999 return !(this === z && i(q, t) && !i(D, t)) && (!(n || !i(this, t) || !i(q, t) || i(this, F) && this[F][t]) || n)
3000 },
3001 X = function(t, n) {
3002 if (t = b(t), n = S(n, !0), t !== z || !i(q, n) || i(D, n)) {
3003 var e = _(t, n);
3004 return !e || !i(q, n) || i(t, F) && t[F][n] || (e.enumerable = !0), e
3005 }
3006 },
3007 J = function(t) {
3008 for (var n, e = j(b(t)), r = [], o = 0; e.length > o;) i(q, n = e[o++]) || n == F || n == c || r.push(n);
3009 return r
3010 },
3011 $ = function(t) {
3012 for (var n, e = t === z, r = j(e ? D : b(t)), o = [], s = 0; r.length > s;) !i(q, n = r[s++]) || e && !i(z, n) || o.push(q[n]);
3013 return o
3014 };
3015 U || (a((M = function() {
3016 if (this instanceof M) throw TypeError("Symbol is not a constructor!");
3017 var t = h(arguments.length > 0 ? arguments[0] : void 0),
3018 n = function(e) {
3019 this === z && n.call(D, e), i(this, F) && i(this[F], t) && (this[F][t] = !1), G(this, t, x(1, e))
3020 };
3021 return o && W && G(z, t, {
3022 configurable: !0,
3023 set: n
3024 }), Q(t)
3025 }).prototype, "toString", (function() {
3026 return this._k
3027 })), O.f = X, A.f = H, e(37).f = C.f = J, e(47).f = K, e(56).f = $, o && !e(33) && a(z, "propertyIsEnumerable", K, !0), d.f = function(t) {
3028 return Q(p(t))
3029 }), s(s.G + s.W + s.F * !U, {
3030 Symbol: M
3031 });
3032 for (var Z = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), tt = 0; Z.length > tt;) p(Z[tt++]);
3033 for (var nt = I(p.store), et = 0; nt.length > et;) v(nt[et++]);
3034 s(s.S + s.F * !U, "Symbol", {
3035 for: function(t) {
3036 return i(N, t += "") ? N[t] : N[t] = M(t)
3037 },
3038 keyFor: function(t) {
3039 if (!V(t)) throw TypeError(t + " is not a symbol!");
3040 for (var n in N)
3041 if (N[n] === t) return n
3042 },
3043 useSetter: function() {
3044 W = !0
3045 },
3046 useSimple: function() {
3047 W = !1
3048 }
3049 }), s(s.S + s.F * !U, "Object", {
3050 create: function(t, n) {
3051 return void 0 === n ? E(t) : Y(E(t), n)
3052 },
3053 defineProperty: H,
3054 defineProperties: Y,
3055 getOwnPropertyDescriptor: X,
3056 getOwnPropertyNames: J,
3057 getOwnPropertySymbols: $
3058 }), T && s(s.S + s.F * (!U || u((function() {
3059 var t = M();
3060 return "[null]" != k([t]) || "{}" != k({
3061 a: t
3062 }) || "{}" != k(Object(t))
3063 }))), "JSON", {
3064 stringify: function(t) {
3065 for (var n, e, r = [t], i = 1; arguments.length > i;) r.push(arguments[i++]);
3066 if (e = n = r[1], (w(n) || void 0 !== t) && !V(t)) return m(n) || (n = function(t, n) {
3067 if ("function" == typeof e && (n = e.call(this, t, n)), !V(n)) return n
3068 }), r[1] = n, k.apply(T, r)
3069 }
3070 }), M.prototype[L] || e(16)(M.prototype, L, M.prototype.valueOf), l(M, "Symbol"), l(Math, "Math", !0), l(r.JSON, "JSON", !0)
3071 }, function(t, n, e) {
3072 t.exports = e(54)("native-function-to-string", Function.toString)
3073 }, function(t, n, e) {
3074 var r = e(34),
3075 i = e(56),
3076 o = e(47);
3077 t.exports = function(t) {
3078 var n = r(t),
3079 e = i.f;
3080 if (e)
3081 for (var s, a = e(t), c = o.f, u = 0; a.length > u;) c.call(t, s = a[u++]) && n.push(s);
3082 return n
3083 }
3084 }, function(t, n, e) {
3085 var r = e(0);
3086 r(r.S, "Object", {
3087 create: e(36)
3088 })
3089 }, function(t, n, e) {
3090 var r = e(0);
3091 r(r.S + r.F * !e(9), "Object", {
3092 defineProperty: e(8).f
3093 })
3094 }, function(t, n, e) {
3095 var r = e(0);
3096 r(r.S + r.F * !e(9), "Object", {
3097 defineProperties: e(96)
3098 })
3099 }, function(t, n, e) {
3100 var r = e(17),
3101 i = e(21).f;
3102 e(22)("getOwnPropertyDescriptor", (function() {
3103 return function(t, n) {
3104 return i(r(t), n)
3105 }
3106 }))
3107 }, function(t, n, e) {
3108 var r = e(13),
3109 i = e(38);
3110 e(22)("getPrototypeOf", (function() {
3111 return function(t) {
3112 return i(r(t))
3113 }
3114 }))
3115 }, function(t, n, e) {
3116 var r = e(13),
3117 i = e(34);
3118 e(22)("keys", (function() {
3119 return function(t) {
3120 return i(r(t))
3121 }
3122 }))
3123 }, function(t, n, e) {
3124 e(22)("getOwnPropertyNames", (function() {
3125 return e(97).f
3126 }))
3127 }, function(t, n, e) {
3128 var r = e(5),
3129 i = e(30).onFreeze;
3130 e(22)("freeze", (function(t) {
3131 return function(n) {
3132 return t && r(n) ? t(i(n)) : n
3133 }
3134 }))
3135 }, function(t, n, e) {
3136 var r = e(5),
3137 i = e(30).onFreeze;
3138 e(22)("seal", (function(t) {
3139 return function(n) {
3140 return t && r(n) ? t(i(n)) : n
3141 }
3142 }))
3143 }, function(t, n, e) {
3144 var r = e(5),
3145 i = e(30).onFreeze;
3146 e(22)("preventExtensions", (function(t) {
3147 return function(n) {
3148 return t && r(n) ? t(i(n)) : n
3149 }
3150 }))
3151 }, function(t, n, e) {
3152 var r = e(5);
3153 e(22)("isFrozen", (function(t) {
3154 return function(n) {
3155 return !r(n) || !!t && t(n)
3156 }
3157 }))
3158 }, function(t, n, e) {
3159 var r = e(5);
3160 e(22)("isSealed", (function(t) {
3161 return function(n) {
3162 return !r(n) || !!t && t(n)
3163 }
3164 }))
3165 }, function(t, n, e) {
3166 var r = e(5);
3167 e(22)("isExtensible", (function(t) {
3168 return function(n) {
3169 return !!r(n) && (!t || t(n))
3170 }
3171 }))
3172 }, function(t, n, e) {
3173 var r = e(0);
3174 r(r.S + r.F, "Object", {
3175 assign: e(98)
3176 })
3177 }, function(t, n, e) {
3178 var r = e(0);
3179 r(r.S, "Object", {
3180 is: e(99)
3181 })
3182 }, function(t, n, e) {
3183 var r = e(0);
3184 r(r.S, "Object", {
3185 setPrototypeOf: e(72).set
3186 })
3187 }, function(t, n, e) {
3188 "use strict";
3189 var r = e(48),
3190 i = {};
3191 i[e(6)("toStringTag")] = "z", i + "" != "[object z]" && e(12)(Object.prototype, "toString", (function() {
3192 return "[object " + r(this) + "]"
3193 }), !0)
3194 }, function(t, n, e) {
3195 var r = e(0);
3196 r(r.P, "Function", {
3197 bind: e(100)
3198 })
3199 }, function(t, n, e) {
3200 var r = e(8).f,
3201 i = Function.prototype,
3202 o = /^\s*function ([^ (]*)/,
3203 s = "name";
3204 s in i || e(9) && r(i, s, {
3205 configurable: !0,
3206 get: function() {
3207 try {
3208 return ("" + this).match(o)[1]
3209 } catch (t) {
3210 return ""
3211 }
3212 }
3213 })
3214 }, function(t, n, e) {
3215 "use strict";
3216 var r = e(5),
3217 i = e(38),
3218 o = e(6)("hasInstance"),
3219 s = Function.prototype;
3220 o in s || e(8).f(s, o, {
3221 value: function(t) {
3222 if ("function" != typeof this || !r(t)) return !1;
3223 if (!r(this.prototype)) return t instanceof this;
3224 for (; t = i(t);)
3225 if (this.prototype === t) return !0;
3226 return !1
3227 }
3228 })
3229 }, function(t, n, e) {
3230 var r = e(0),
3231 i = e(102);
3232 r(r.G + r.F * (parseInt != i), {
3233 parseInt: i
3234 })
3235 }, function(t, n, e) {
3236 var r = e(0),
3237 i = e(103);
3238 r(r.G + r.F * (parseFloat != i), {
3239 parseFloat: i
3240 })
3241 }, function(t, n, e) {
3242 "use strict";
3243 var r = e(2),
3244 i = e(15),
3245 o = e(26),
3246 s = e(74),
3247 a = e(29),
3248 c = e(3),
3249 u = e(37).f,
3250 f = e(21).f,
3251 l = e(8).f,
3252 h = e(57).trim,
3253 p = "Number",
3254 d = r.Number,
3255 v = d,
3256 g = d.prototype,
3257 m = o(e(36)(g)) == p,
3258 y = "trim" in String.prototype,
3259 w = function(t) {
3260 var n = a(t, !1);
3261 if ("string" == typeof n && n.length > 2) {
3262 var e, r, i, o = (n = y ? n.trim() : h(n, 3)).charCodeAt(0);
3263 if (43 === o || 45 === o) {
3264 if (88 === (e = n.charCodeAt(2)) || 120 === e) return NaN
3265 } else if (48 === o) {
3266 switch (n.charCodeAt(1)) {
3267 case 66:
3268 case 98:
3269 r = 2, i = 49;
3270 break;
3271 case 79:
3272 case 111:
3273 r = 8, i = 55;
3274 break;
3275 default:
3276 return +n
3277 }
3278 for (var s, c = n.slice(2), u = 0, f = c.length; u < f; u++)
3279 if ((s = c.charCodeAt(u)) < 48 || s > i) return NaN;
3280 return parseInt(c, r)
3281 }
3282 }
3283 return +n
3284 };
3285 if (!d(" 0o1") || !d("0b1") || d("+0x1")) {
3286 d = function(t) {
3287 var n = arguments.length < 1 ? 0 : t,
3288 e = this;
3289 return e instanceof d && (m ? c((function() {
3290 g.valueOf.call(e)
3291 })) : o(e) != p) ? s(new v(w(n)), e, d) : w(n)
3292 };
3293 for (var b, S = e(9) ? u(v) : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","), x = 0; S.length > x; x++) i(v, b = S[x]) && !i(d, b) && l(d, b, f(v, b));
3294 d.prototype = g, g.constructor = d, e(12)(r, p, d)
3295 }
3296 }, function(t, n, e) {
3297 "use strict";
3298 var r = e(0),
3299 i = e(20),
3300 o = e(104),
3301 s = e(75),
3302 a = 1..toFixed,
3303 c = Math.floor,
3304 u = [0, 0, 0, 0, 0, 0],
3305 f = "Number.toFixed: incorrect invocation!",
3306 l = "0",
3307 h = function(t, n) {
3308 for (var e = -1, r = n; ++e < 6;) r += t * u[e], u[e] = r % 1e7, r = c(r / 1e7)
3309 },
3310 p = function(t) {
3311 for (var n = 6, e = 0; --n >= 0;) e += u[n], u[n] = c(e / t), e = e % t * 1e7
3312 },
3313 d = function() {
3314 for (var t = 6, n = ""; --t >= 0;)
3315 if ("" !== n || 0 === t || 0 !== u[t]) {
3316 var e = String(u[t]);
3317 n = "" === n ? e : n + s.call(l, 7 - e.length) + e
3318 } return n
3319 },
3320 v = function(t, n, e) {
3321 return 0 === n ? e : n % 2 == 1 ? v(t, n - 1, e * t) : v(t * t, n / 2, e)
3322 };
3323 r(r.P + r.F * (!!a && ("0.000" !== 8e-5.toFixed(3) || "1" !== .9.toFixed(0) || "1.25" !== 1.255.toFixed(2) || "1000000000000000128" !== (0xde0b6b3a7640080).toFixed(0)) || !e(3)((function() {
3324 a.call({})
3325 }))), "Number", {
3326 toFixed: function(t) {
3327 var n, e, r, a, c = o(this, f),
3328 u = i(t),
3329 g = "",
3330 m = l;
3331 if (u < 0 || u > 20) throw RangeError(f);
3332 if (c != c) return "NaN";
3333 if (c <= -1e21 || c >= 1e21) return String(c);
3334 if (c < 0 && (g = "-", c = -c), c > 1e-21)
3335 if (e = (n = function(t) {
3336 for (var n = 0, e = t; e >= 4096;) n += 12, e /= 4096;
3337 for (; e >= 2;) n += 1, e /= 2;
3338 return n
3339 }(c * v(2, 69, 1)) - 69) < 0 ? c * v(2, -n, 1) : c / v(2, n, 1), e *= 4503599627370496, (n = 52 - n) > 0) {
3340 for (h(0, e), r = u; r >= 7;) h(1e7, 0), r -= 7;
3341 for (h(v(10, r, 1), 0), r = n - 1; r >= 23;) p(1 << 23), r -= 23;
3342 p(1 << r), h(1, 1), p(2), m = d()
3343 } else h(0, e), h(1 << -n, 0), m = d() + s.call(l, u);
3344 return m = u > 0 ? g + ((a = m.length) <= u ? "0." + s.call(l, u - a) + m : m.slice(0, a - u) + "." + m.slice(a - u)) : g + m
3345 }
3346 })
3347 }, function(t, n, e) {
3348 "use strict";
3349 var r = e(0),
3350 i = e(3),
3351 o = e(104),
3352 s = 1..toPrecision;
3353 r(r.P + r.F * (i((function() {
3354 return "1" !== s.call(1, void 0)
3355 })) || !i((function() {
3356 s.call({})
3357 }))), "Number", {
3358 toPrecision: function(t) {
3359 var n = o(this, "Number#toPrecision: incorrect invocation!");
3360 return void 0 === t ? s.call(n) : s.call(n, t)
3361 }
3362 })
3363 }, function(t, n, e) {
3364 var r = e(0);
3365 r(r.S, "Number", {
3366 EPSILON: Math.pow(2, -52)
3367 })
3368 }, function(t, n, e) {
3369 var r = e(0),
3370 i = e(2).isFinite;
3371 r(r.S, "Number", {
3372 isFinite: function(t) {
3373 return "number" == typeof t && i(t)
3374 }
3375 })
3376 }, function(t, n, e) {
3377 var r = e(0);
3378 r(r.S, "Number", {
3379 isInteger: e(105)
3380 })
3381 }, function(t, n, e) {
3382 var r = e(0);
3383 r(r.S, "Number", {
3384 isNaN: function(t) {
3385 return t != t
3386 }
3387 })
3388 }, function(t, n, e) {
3389 var r = e(0),
3390 i = e(105),
3391 o = Math.abs;
3392 r(r.S, "Number", {
3393 isSafeInteger: function(t) {
3394 return i(t) && o(t) <= 9007199254740991
3395 }
3396 })
3397 }, function(t, n, e) {
3398 var r = e(0);
3399 r(r.S, "Number", {
3400 MAX_SAFE_INTEGER: 9007199254740991
3401 })
3402 }, function(t, n, e) {
3403 var r = e(0);
3404 r(r.S, "Number", {
3405 MIN_SAFE_INTEGER: -9007199254740991
3406 })
3407 }, function(t, n, e) {
3408 var r = e(0),
3409 i = e(103);
3410 r(r.S + r.F * (Number.parseFloat != i), "Number", {
3411 parseFloat: i
3412 })
3413 }, function(t, n, e) {
3414 var r = e(0),
3415 i = e(102);
3416 r(r.S + r.F * (Number.parseInt != i), "Number", {
3417 parseInt: i
3418 })
3419 }, function(t, n, e) {
3420 var r = e(0),
3421 i = e(106),
3422 o = Math.sqrt,
3423 s = Math.acosh;
3424 r(r.S + r.F * !(s && 710 == Math.floor(s(Number.MAX_VALUE)) && s(1 / 0) == 1 / 0), "Math", {
3425 acosh: function(t) {
3426 return (t = +t) < 1 ? NaN : t > 94906265.62425156 ? Math.log(t) + Math.LN2 : i(t - 1 + o(t - 1) * o(t + 1))
3427 }
3428 })
3429 }, function(t, n, e) {
3430 var r = e(0),
3431 i = Math.asinh;
3432 r(r.S + r.F * !(i && 1 / i(0) > 0), "Math", {
3433 asinh: function t(n) {
3434 return isFinite(n = +n) && 0 != n ? n < 0 ? -t(-n) : Math.log(n + Math.sqrt(n * n + 1)) : n
3435 }
3436 })
3437 }, function(t, n, e) {
3438 var r = e(0),
3439 i = Math.atanh;
3440 r(r.S + r.F * !(i && 1 / i(-0) < 0), "Math", {
3441 atanh: function(t) {
3442 return 0 == (t = +t) ? t : Math.log((1 + t) / (1 - t)) / 2
3443 }
3444 })
3445 }, function(t, n, e) {
3446 var r = e(0),
3447 i = e(76);
3448 r(r.S, "Math", {
3449 cbrt: function(t) {
3450 return i(t = +t) * Math.pow(Math.abs(t), 1 / 3)
3451 }
3452 })
3453 }, function(t, n, e) {
3454 var r = e(0);
3455 r(r.S, "Math", {
3456 clz32: function(t) {
3457 return (t >>>= 0) ? 31 - Math.floor(Math.log(t + .5) * Math.LOG2E) : 32
3458 }
3459 })
3460 }, function(t, n, e) {
3461 var r = e(0),
3462 i = Math.exp;
3463 r(r.S, "Math", {
3464 cosh: function(t) {
3465 return (i(t = +t) + i(-t)) / 2
3466 }
3467 })
3468 }, function(t, n, e) {
3469 var r = e(0),
3470 i = e(77);
3471 r(r.S + r.F * (i != Math.expm1), "Math", {
3472 expm1: i
3473 })
3474 }, function(t, n, e) {
3475 var r = e(0);
3476 r(r.S, "Math", {
3477 fround: e(185)
3478 })
3479 }, function(t, n, e) {
3480 var r = e(76),
3481 i = Math.pow,
3482 o = i(2, -52),
3483 s = i(2, -23),
3484 a = i(2, 127) * (2 - s),
3485 c = i(2, -126);
3486 t.exports = Math.fround || function(t) {
3487 var n, e, i = Math.abs(t),
3488 u = r(t);
3489 return i < c ? u * (i / c / s + 1 / o - 1 / o) * c * s : (e = (n = (1 + s / o) * i) - (n - i)) > a || e != e ? u * (1 / 0) : u * e
3490 }
3491 }, function(t, n, e) {
3492 var r = e(0),
3493 i = Math.abs;
3494 r(r.S, "Math", {
3495 hypot: function(t, n) {
3496 for (var e, r, o = 0, s = 0, a = arguments.length, c = 0; s < a;) c < (e = i(arguments[s++])) ? (o = o * (r = c / e) * r + 1, c = e) : o += e > 0 ? (r = e / c) * r : e;
3497 return c === 1 / 0 ? 1 / 0 : c * Math.sqrt(o)
3498 }
3499 })
3500 }, function(t, n, e) {
3501 var r = e(0),
3502 i = Math.imul;
3503 r(r.S + r.F * e(3)((function() {
3504 return -5 != i(4294967295, 5) || 2 != i.length
3505 })), "Math", {
3506 imul: function(t, n) {
3507 var e = 65535,
3508 r = +t,
3509 i = +n,
3510 o = e & r,
3511 s = e & i;
3512 return 0 | o * s + ((e & r >>> 16) * s + o * (e & i >>> 16) << 16 >>> 0)
3513 }
3514 })
3515 }, function(t, n, e) {
3516 var r = e(0);
3517 r(r.S, "Math", {
3518 log10: function(t) {
3519 return Math.log(t) * Math.LOG10E
3520 }
3521 })
3522 }, function(t, n, e) {
3523 var r = e(0);
3524 r(r.S, "Math", {
3525 log1p: e(106)
3526 })
3527 }, function(t, n, e) {
3528 var r = e(0);
3529 r(r.S, "Math", {
3530 log2: function(t) {
3531 return Math.log(t) / Math.LN2
3532 }
3533 })
3534 }, function(t, n, e) {
3535 var r = e(0);
3536 r(r.S, "Math", {
3537 sign: e(76)
3538 })
3539 }, function(t, n, e) {
3540 var r = e(0),
3541 i = e(77),
3542 o = Math.exp;
3543 r(r.S + r.F * e(3)((function() {
3544 return -2e-17 != !Math.sinh(-2e-17)
3545 })), "Math", {
3546 sinh: function(t) {
3547 return Math.abs(t = +t) < 1 ? (i(t) - i(-t)) / 2 : (o(t - 1) - o(-t - 1)) * (Math.E / 2)
3548 }
3549 })
3550 }, function(t, n, e) {
3551 var r = e(0),
3552 i = e(77),
3553 o = Math.exp;
3554 r(r.S, "Math", {
3555 tanh: function(t) {
3556 var n = i(t = +t),
3557 e = i(-t);
3558 return n == 1 / 0 ? 1 : e == 1 / 0 ? -1 : (n - e) / (o(t) + o(-t))
3559 }
3560 })
3561 }, function(t, n, e) {
3562 var r = e(0);
3563 r(r.S, "Math", {
3564 trunc: function(t) {
3565 return (t > 0 ? Math.floor : Math.ceil)(t)
3566 }
3567 })
3568 }, function(t, n, e) {
3569 var r = e(0),
3570 i = e(35),
3571 o = String.fromCharCode,
3572 s = String.fromCodePoint;
3573 r(r.S + r.F * (!!s && 1 != s.length), "String", {
3574 fromCodePoint: function(t) {
3575 for (var n, e = [], r = arguments.length, s = 0; r > s;) {
3576 if (n = +arguments[s++], i(n, 1114111) !== n) throw RangeError(n + " is not a valid code point");
3577 e.push(n < 65536 ? o(n) : o(55296 + ((n -= 65536) >> 10), n % 1024 + 56320))
3578 }
3579 return e.join("")
3580 }
3581 })
3582 }, function(t, n, e) {
3583 var r = e(0),
3584 i = e(17),
3585 o = e(7);
3586 r(r.S, "String", {
3587 raw: function(t) {
3588 for (var n = i(t.raw), e = o(n.length), r = arguments.length, s = [], a = 0; e > a;) s.push(String(n[a++])), a < r && s.push(String(arguments[a]));
3589 return s.join("")
3590 }
3591 })
3592 }, function(t, n, e) {
3593 "use strict";
3594 e(57)("trim", (function(t) {
3595 return function() {
3596 return t(this, 3)
3597 }
3598 }))
3599 }, function(t, n, e) {
3600 "use strict";
3601 var r = e(78)(!0);
3602 e(79)(String, "String", (function(t) {
3603 this._t = String(t), this._i = 0
3604 }), (function() {
3605 var t, n = this._t,
3606 e = this._i;
3607 return e >= n.length ? {
3608 value: void 0,
3609 done: !0
3610 } : (t = r(n, e), this._i += t.length, {
3611 value: t,
3612 done: !1
3613 })
3614 }))
3615 }, function(t, n, e) {
3616 "use strict";
3617 var r = e(0),
3618 i = e(78)(!1);
3619 r(r.P, "String", {
3620 codePointAt: function(t) {
3621 return i(this, t)
3622 }
3623 })
3624 }, function(t, n, e) {
3625 "use strict";
3626 var r = e(0),
3627 i = e(7),
3628 o = e(80),
3629 s = "endsWith",
3630 a = "".endsWith;
3631 r(r.P + r.F * e(82)(s), "String", {
3632 endsWith: function(t) {
3633 var n = o(this, t, s),
3634 e = arguments.length > 1 ? arguments[1] : void 0,
3635 r = i(n.length),
3636 c = void 0 === e ? r : Math.min(i(e), r),
3637 u = String(t);
3638 return a ? a.call(n, u, c) : n.slice(c - u.length, c) === u
3639 }
3640 })
3641 }, function(t, n, e) {
3642 "use strict";
3643 var r = e(0),
3644 i = e(80),
3645 o = "includes";
3646 r(r.P + r.F * e(82)(o), "String", {
3647 includes: function(t) {
3648 return !!~i(this, t, o).indexOf(t, arguments.length > 1 ? arguments[1] : void 0)
3649 }
3650 })
3651 }, function(t, n, e) {
3652 var r = e(0);
3653 r(r.P, "String", {
3654 repeat: e(75)
3655 })
3656 }, function(t, n, e) {
3657 "use strict";
3658 var r = e(0),
3659 i = e(7),
3660 o = e(80),
3661 s = "startsWith",
3662 a = "".startsWith;
3663 r(r.P + r.F * e(82)(s), "String", {
3664 startsWith: function(t) {
3665 var n = o(this, t, s),
3666 e = i(Math.min(arguments.length > 1 ? arguments[1] : void 0, n.length)),
3667 r = String(t);
3668 return a ? a.call(n, r, e) : n.slice(e, e + r.length) === r
3669 }
3670 })
3671 }, function(t, n, e) {
3672 "use strict";
3673 e(14)("anchor", (function(t) {
3674 return function(n) {
3675 return t(this, "a", "name", n)
3676 }
3677 }))
3678 }, function(t, n, e) {
3679 "use strict";
3680 e(14)("big", (function(t) {
3681 return function() {
3682 return t(this, "big", "", "")
3683 }
3684 }))
3685 }, function(t, n, e) {
3686 "use strict";
3687 e(14)("blink", (function(t) {
3688 return function() {
3689 return t(this, "blink", "", "")
3690 }
3691 }))
3692 }, function(t, n, e) {
3693 "use strict";
3694 e(14)("bold", (function(t) {
3695 return function() {
3696 return t(this, "b", "", "")
3697 }
3698 }))
3699 }, function(t, n, e) {
3700 "use strict";
3701 e(14)("fixed", (function(t) {
3702 return function() {
3703 return t(this, "tt", "", "")
3704 }
3705 }))
3706 }, function(t, n, e) {
3707 "use strict";
3708 e(14)("fontcolor", (function(t) {
3709 return function(n) {
3710 return t(this, "font", "color", n)
3711 }
3712 }))
3713 }, function(t, n, e) {
3714 "use strict";
3715 e(14)("fontsize", (function(t) {
3716 return function(n) {
3717 return t(this, "font", "size", n)
3718 }
3719 }))
3720 }, function(t, n, e) {
3721 "use strict";
3722 e(14)("italics", (function(t) {
3723 return function() {
3724 return t(this, "i", "", "")
3725 }
3726 }))
3727 }, function(t, n, e) {
3728 "use strict";
3729 e(14)("link", (function(t) {
3730 return function(n) {
3731 return t(this, "a", "href", n)
3732 }
3733 }))
3734 }, function(t, n, e) {
3735 "use strict";
3736 e(14)("small", (function(t) {
3737 return function() {
3738 return t(this, "small", "", "")
3739 }
3740 }))
3741 }, function(t, n, e) {
3742 "use strict";
3743 e(14)("strike", (function(t) {
3744 return function() {
3745 return t(this, "strike", "", "")
3746 }
3747 }))
3748 }, function(t, n, e) {
3749 "use strict";
3750 e(14)("sub", (function(t) {
3751 return function() {
3752 return t(this, "sub", "", "")
3753 }
3754 }))
3755 }, function(t, n, e) {
3756 "use strict";
3757 e(14)("sup", (function(t) {
3758 return function() {
3759 return t(this, "sup", "", "")
3760 }
3761 }))
3762 }, function(t, n, e) {
3763 var r = e(0);
3764 r(r.S, "Date", {
3765 now: function() {
3766 return (new Date).getTime()
3767 }
3768 })
3769 }, function(t, n, e) {
3770 "use strict";
3771 var r = e(0),
3772 i = e(13),
3773 o = e(29);
3774 r(r.P + r.F * e(3)((function() {
3775 return null !== new Date(NaN).toJSON() || 1 !== Date.prototype.toJSON.call({
3776 toISOString: function() {
3777 return 1
3778 }
3779 })
3780 })), "Date", {
3781 toJSON: function(t) {
3782 var n = i(this),
3783 e = o(n);
3784 return "number" != typeof e || isFinite(e) ? n.toISOString() : null
3785 }
3786 })
3787 }, function(t, n, e) {
3788 var r = e(0),
3789 i = e(220);
3790 r(r.P + r.F * (Date.prototype.toISOString !== i), "Date", {
3791 toISOString: i
3792 })
3793 }, function(t, n, e) {
3794 "use strict";
3795 var r = e(3),
3796 i = Date.prototype.getTime,
3797 o = Date.prototype.toISOString,
3798 s = function(t) {
3799 return t > 9 ? t : "0" + t
3800 };
3801 t.exports = r((function() {
3802 return "0385-07-25T07:06:39.999Z" != o.call(new Date(-50000000000001))
3803 })) || !r((function() {
3804 o.call(new Date(NaN))
3805 })) ? function() {
3806 if (!isFinite(i.call(this))) throw RangeError("Invalid time value");
3807 var t = this,
3808 n = t.getUTCFullYear(),
3809 e = t.getUTCMilliseconds(),
3810 r = n < 0 ? "-" : n > 9999 ? "+" : "";
3811 return r + ("00000" + Math.abs(n)).slice(r ? -6 : -4) + "-" + s(t.getUTCMonth() + 1) + "-" + s(t.getUTCDate()) + "T" + s(t.getUTCHours()) + ":" + s(t.getUTCMinutes()) + ":" + s(t.getUTCSeconds()) + "." + (e > 99 ? e : "0" + s(e)) + "Z"
3812 } : o
3813 }, function(t, n, e) {
3814 var r = Date.prototype,
3815 i = "Invalid Date",
3816 o = "toString",
3817 s = r.toString,
3818 a = r.getTime;
3819 new Date(NaN) + "" != i && e(12)(r, o, (function() {
3820 var t = a.call(this);
3821 return t == t ? s.call(this) : i
3822 }))
3823 }, function(t, n, e) {
3824 var r = e(6)("toPrimitive"),
3825 i = Date.prototype;
3826 r in i || e(16)(i, r, e(223))
3827 }, function(t, n, e) {
3828 "use strict";
3829 var r = e(4),
3830 i = e(29),
3831 o = "number";
3832 t.exports = function(t) {
3833 if ("string" !== t && t !== o && "default" !== t) throw TypeError("Incorrect hint");
3834 return i(r(this), t != o)
3835 }
3836 }, function(t, n, e) {
3837 var r = e(0);
3838 r(r.S, "Array", {
3839 isArray: e(70)
3840 })
3841 }, function(t, n, e) {
3842 "use strict";
3843 var r = e(24),
3844 i = e(0),
3845 o = e(13),
3846 s = e(108),
3847 a = e(83),
3848 c = e(7),
3849 u = e(84),
3850 f = e(85);
3851 i(i.S + i.F * !e(58)((function(t) {
3852 Array.from(t)
3853 })), "Array", {
3854 from: function(t) {
3855 var n, e, i, l, h = o(t),
3856 p = "function" == typeof this ? this : Array,
3857 d = arguments.length,
3858 v = d > 1 ? arguments[1] : void 0,
3859 g = void 0 !== v,
3860 m = 0,
3861 y = f(h);
3862 if (g && (v = r(v, d > 2 ? arguments[2] : void 0, 2)), null == y || p == Array && a(y))
3863 for (e = new p(n = c(h.length)); n > m; m++) u(e, m, g ? v(h[m], m) : h[m]);
3864 else
3865 for (l = y.call(h), e = new p; !(i = l.next()).done; m++) u(e, m, g ? s(l, v, [i.value, m], !0) : i.value);
3866 return e.length = m, e
3867 }
3868 })
3869 }, function(t, n, e) {
3870 "use strict";
3871 var r = e(0),
3872 i = e(84);
3873 r(r.S + r.F * e(3)((function() {
3874 function t() {}
3875 return !(Array.of.call(t) instanceof t)
3876 })), "Array", {
3877 of: function() {
3878 for (var t = 0, n = arguments.length, e = new("function" == typeof this ? this : Array)(n); n > t;) i(e, t, arguments[t++]);
3879 return e.length = n, e
3880 }
3881 })
3882 }, function(t, n, e) {
3883 "use strict";
3884 var r = e(0),
3885 i = e(17),
3886 o = [].join;
3887 r(r.P + r.F * (e(46) != Object || !e(19)(o)), "Array", {
3888 join: function(t) {
3889 return o.call(i(this), void 0 === t ? "," : t)
3890 }
3891 })
3892 }, function(t, n, e) {
3893 "use strict";
3894 var r = e(0),
3895 i = e(71),
3896 o = e(26),
3897 s = e(35),
3898 a = e(7),
3899 c = [].slice;
3900 r(r.P + r.F * e(3)((function() {
3901 i && c.call(i)
3902 })), "Array", {
3903 slice: function(t, n) {
3904 var e = a(this.length),
3905 r = o(this);
3906 if (n = void 0 === n ? e : n, "Array" == r) return c.call(this, t, n);
3907 for (var i = s(t, e), u = s(n, e), f = a(u - i), l = new Array(f), h = 0; h < f; h++) l[h] = "String" == r ? this.charAt(i + h) : this[i + h];
3908 return l
3909 }
3910 })
3911 }, function(t, n, e) {
3912 "use strict";
3913 var r = e(0),
3914 i = e(25),
3915 o = e(13),
3916 s = e(3),
3917 a = [].sort,
3918 c = [1, 2, 3];
3919 r(r.P + r.F * (s((function() {
3920 c.sort(void 0)
3921 })) || !s((function() {
3922 c.sort(null)
3923 })) || !e(19)(a)), "Array", {
3924 sort: function(t) {
3925 return void 0 === t ? a.call(o(this)) : a.call(o(this), i(t))
3926 }
3927 })
3928 }, function(t, n, e) {
3929 "use strict";
3930 var r = e(0),
3931 i = e(23)(0),
3932 o = e(19)([].forEach, !0);
3933 r(r.P + r.F * !o, "Array", {
3934 forEach: function(t) {
3935 return i(this, t, arguments[1])
3936 }
3937 })
3938 }, function(t, n, e) {
3939 var r = e(232);
3940 t.exports = function(t, n) {
3941 return new(r(t))(n)
3942 }
3943 }, function(t, n, e) {
3944 var r = e(5),
3945 i = e(70),
3946 o = e(6)("species");
3947 t.exports = function(t) {
3948 var n;
3949 return i(t) && ("function" != typeof(n = t.constructor) || n !== Array && !i(n.prototype) || (n = void 0), r(n) && null === (n = n[o]) && (n = void 0)), void 0 === n ? Array : n
3950 }
3951 }, function(t, n, e) {
3952 "use strict";
3953 var r = e(0),
3954 i = e(23)(1);
3955 r(r.P + r.F * !e(19)([].map, !0), "Array", {
3956 map: function(t) {
3957 return i(this, t, arguments[1])
3958 }
3959 })
3960 }, function(t, n, e) {
3961 "use strict";
3962 var r = e(0),
3963 i = e(23)(2);
3964 r(r.P + r.F * !e(19)([].filter, !0), "Array", {
3965 filter: function(t) {
3966 return i(this, t, arguments[1])
3967 }
3968 })
3969 }, function(t, n, e) {
3970 "use strict";
3971 var r = e(0),
3972 i = e(23)(3);
3973 r(r.P + r.F * !e(19)([].some, !0), "Array", {
3974 some: function(t) {
3975 return i(this, t, arguments[1])
3976 }
3977 })
3978 }, function(t, n, e) {
3979 "use strict";
3980 var r = e(0),
3981 i = e(23)(4);
3982 r(r.P + r.F * !e(19)([].every, !0), "Array", {
3983 every: function(t) {
3984 return i(this, t, arguments[1])
3985 }
3986 })
3987 }, function(t, n, e) {
3988 "use strict";
3989 var r = e(0),
3990 i = e(109);
3991 r(r.P + r.F * !e(19)([].reduce, !0), "Array", {
3992 reduce: function(t) {
3993 return i(this, t, arguments.length, arguments[1], !1)
3994 }
3995 })
3996 }, function(t, n, e) {
3997 "use strict";
3998 var r = e(0),
3999 i = e(109);
4000 r(r.P + r.F * !e(19)([].reduceRight, !0), "Array", {
4001 reduceRight: function(t) {
4002 return i(this, t, arguments.length, arguments[1], !0)
4003 }
4004 })
4005 }, function(t, n, e) {
4006 "use strict";
4007 var r = e(0),
4008 i = e(55)(!1),
4009 o = [].indexOf,
4010 s = !!o && 1 / [1].indexOf(1, -0) < 0;
4011 r(r.P + r.F * (s || !e(19)(o)), "Array", {
4012 indexOf: function(t) {
4013 return s ? o.apply(this, arguments) || 0 : i(this, t, arguments[1])
4014 }
4015 })
4016 }, function(t, n, e) {
4017 "use strict";
4018 var r = e(0),
4019 i = e(17),
4020 o = e(20),
4021 s = e(7),
4022 a = [].lastIndexOf,
4023 c = !!a && 1 / [1].lastIndexOf(1, -0) < 0;
4024 r(r.P + r.F * (c || !e(19)(a)), "Array", {
4025 lastIndexOf: function(t) {
4026 if (c) return a.apply(this, arguments) || 0;
4027 var n = i(this),
4028 e = s(n.length),
4029 r = e - 1;
4030 for (arguments.length > 1 && (r = Math.min(r, o(arguments[1]))), r < 0 && (r = e + r); r >= 0; r--)
4031 if (r in n && n[r] === t) return r || 0;
4032 return -1
4033 }
4034 })
4035 }, function(t, n, e) {
4036 var r = e(0);
4037 r(r.P, "Array", {
4038 copyWithin: e(110)
4039 }), e(42)("copyWithin")
4040 }, function(t, n, e) {
4041 var r = e(0);
4042 r(r.P, "Array", {
4043 fill: e(86)
4044 }), e(42)("fill")
4045 }, function(t, n, e) {
4046 "use strict";
4047 var r = e(0),
4048 i = e(23)(5),
4049 o = "find",
4050 s = !0;
4051 o in [] && Array(1).find((function() {
4052 s = !1
4053 })), r(r.P + r.F * s, "Array", {
4054 find: function(t) {
4055 return i(this, t, arguments.length > 1 ? arguments[1] : void 0)
4056 }
4057 }), e(42)(o)
4058 }, function(t, n, e) {
4059 "use strict";
4060 var r = e(0),
4061 i = e(23)(6),
4062 o = "findIndex",
4063 s = !0;
4064 o in [] && Array(1)[o]((function() {
4065 s = !1
4066 })), r(r.P + r.F * s, "Array", {
4067 findIndex: function(t) {
4068 return i(this, t, arguments.length > 1 ? arguments[1] : void 0)
4069 }
4070 }), e(42)(o)
4071 }, function(t, n, e) {
4072 e(43)("Array")
4073 }, function(t, n, e) {
4074 var r = e(2),
4075 i = e(74),
4076 o = e(8).f,
4077 s = e(37).f,
4078 a = e(81),
4079 c = e(59),
4080 u = r.RegExp,
4081 f = u,
4082 l = u.prototype,
4083 h = /a/g,
4084 p = /a/g,
4085 d = new u(h) !== h;
4086 if (e(9) && (!d || e(3)((function() {
4087 return p[e(6)("match")] = !1, u(h) != h || u(p) == p || "/a/i" != u(h, "i")
4088 })))) {
4089 u = function(t, n) {
4090 var e = this instanceof u,
4091 r = a(t),
4092 o = void 0 === n;
4093 return !e && r && t.constructor === u && o ? t : i(d ? new f(r && !o ? t.source : t, n) : f((r = t instanceof u) ? t.source : t, r && o ? c.call(t) : n), e ? this : l, u)
4094 };
4095 for (var v = function(t) {
4096 t in u || o(u, t, {
4097 configurable: !0,
4098 get: function() {
4099 return f[t]
4100 },
4101 set: function(n) {
4102 f[t] = n
4103 }
4104 })
4105 }, g = s(f), m = 0; g.length > m;) v(g[m++]);
4106 l.constructor = u, u.prototype = l, e(12)(r, "RegExp", u)
4107 }
4108 e(43)("RegExp")
4109 }, function(t, n, e) {
4110 "use strict";
4111 e(113);
4112 var r = e(4),
4113 i = e(59),
4114 o = e(9),
4115 s = "toString",
4116 a = /./.toString,
4117 c = function(t) {
4118 e(12)(RegExp.prototype, s, t, !0)
4119 };
4120 e(3)((function() {
4121 return "/a/b" != a.call({
4122 source: "a",
4123 flags: "b"
4124 })
4125 })) ? c((function() {
4126 var t = r(this);
4127 return "/".concat(t.source, "/", "flags" in t ? t.flags : !o && t instanceof RegExp ? i.call(t) : void 0)
4128 })) : a.name != s && c((function() {
4129 return a.call(this)
4130 }))
4131 }, function(t, n, e) {
4132 "use strict";
4133 var r = e(4),
4134 i = e(7),
4135 o = e(89),
4136 s = e(60);
4137 e(61)("match", 1, (function(t, n, e, a) {
4138 return [function(e) {
4139 var r = t(this),
4140 i = null == e ? void 0 : e[n];
4141 return void 0 !== i ? i.call(e, r) : new RegExp(e)[n](String(r))
4142 }, function(t) {
4143 var n = a(e, t, this);
4144 if (n.done) return n.value;
4145 var c = r(t),
4146 u = String(this);
4147 if (!c.global) return s(c, u);
4148 var f = c.unicode;
4149 c.lastIndex = 0;
4150 for (var l, h = [], p = 0; null !== (l = s(c, u));) {
4151 var d = String(l[0]);
4152 h[p] = d, "" === d && (c.lastIndex = o(u, i(c.lastIndex), f)), p++
4153 }
4154 return 0 === p ? null : h
4155 }]
4156 }))
4157 }, function(t, n, e) {
4158 "use strict";
4159 var r = e(4),
4160 i = e(13),
4161 o = e(7),
4162 s = e(20),
4163 a = e(89),
4164 c = e(60),
4165 u = Math.max,
4166 f = Math.min,
4167 l = Math.floor,
4168 h = /\$([$&`']|\d\d?|<[^>]*>)/g,
4169 p = /\$([$&`']|\d\d?)/g;
4170 e(61)("replace", 2, (function(t, n, e, d) {
4171 return [function(r, i) {
4172 var o = t(this),
4173 s = null == r ? void 0 : r[n];
4174 return void 0 !== s ? s.call(r, o, i) : e.call(String(o), r, i)
4175 }, function(t, n) {
4176 var i = d(e, t, this, n);
4177 if (i.done) return i.value;
4178 var l = r(t),
4179 h = String(this),
4180 p = "function" == typeof n;
4181 p || (n = String(n));
4182 var g = l.global;
4183 if (g) {
4184 var m = l.unicode;
4185 l.lastIndex = 0
4186 }
4187 for (var y = [];;) {
4188 var w = c(l, h);
4189 if (null === w) break;
4190 if (y.push(w), !g) break;
4191 "" === String(w[0]) && (l.lastIndex = a(h, o(l.lastIndex), m))
4192 }
4193 for (var b, S = "", x = 0, E = 0; E < y.length; E++) {
4194 w = y[E];
4195 for (var C = String(w[0]), O = u(f(s(w.index), h.length), 0), A = [], I = 1; I < w.length; I++) A.push(void 0 === (b = w[I]) ? b : String(b));
4196 var _ = w.groups;
4197 if (p) {
4198 var P = [C].concat(A, O, h);
4199 void 0 !== _ && P.push(_);
4200 var j = String(n.apply(void 0, P))
4201 } else j = v(C, h, O, A, _, n);
4202 O >= x && (S += h.slice(x, O) + j, x = O + C.length)
4203 }
4204 return S + h.slice(x)
4205 }];
4206
4207 function v(t, n, r, o, s, a) {
4208 var c = r + t.length,
4209 u = o.length,
4210 f = p;
4211 return void 0 !== s && (s = i(s), f = h), e.call(a, f, (function(e, i) {
4212 var a;
4213 switch (i.charAt(0)) {
4214 case "$":
4215 return "$";
4216 case "&":
4217 return t;
4218 case "`":
4219 return n.slice(0, r);
4220 case "'":
4221 return n.slice(c);
4222 case "<":
4223 a = s[i.slice(1, -1)];
4224 break;
4225 default:
4226 var f = +i;
4227 if (0 === f) return e;
4228 if (f > u) {
4229 var h = l(f / 10);
4230 return 0 === h ? e : h <= u ? void 0 === o[h - 1] ? i.charAt(1) : o[h - 1] + i.charAt(1) : e
4231 }
4232 a = o[f - 1]
4233 }
4234 return void 0 === a ? "" : a
4235 }))
4236 }
4237 }))
4238 }, function(t, n, e) {
4239 "use strict";
4240 var r = e(4),
4241 i = e(99),
4242 o = e(60);
4243 e(61)("search", 1, (function(t, n, e, s) {
4244 return [function(e) {
4245 var r = t(this),
4246 i = null == e ? void 0 : e[n];
4247 return void 0 !== i ? i.call(e, r) : new RegExp(e)[n](String(r))
4248 }, function(t) {
4249 var n = s(e, t, this);
4250 if (n.done) return n.value;
4251 var a = r(t),
4252 c = String(this),
4253 u = a.lastIndex;
4254 i(u, 0) || (a.lastIndex = 0);
4255 var f = o(a, c);
4256 return i(a.lastIndex, u) || (a.lastIndex = u), null === f ? -1 : f.index
4257 }]
4258 }))
4259 }, function(t, n, e) {
4260 "use strict";
4261 var r = e(81),
4262 i = e(4),
4263 o = e(49),
4264 s = e(89),
4265 a = e(7),
4266 c = e(60),
4267 u = e(88),
4268 f = e(3),
4269 l = Math.min,
4270 h = [].push,
4271 p = 4294967295,
4272 d = !f((function() {
4273 RegExp(p, "y")
4274 }));
4275 e(61)("split", 2, (function(t, n, e, f) {
4276 var v;
4277 return v = "c" == "abbc".split(/(b)*/)[1] || 4 != "test".split(/(?:)/, -1).length || 2 != "ab".split(/(?:ab)*/).length || 4 != ".".split(/(.?)(.?)/).length || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(t, n) {
4278 var i = String(this);
4279 if (void 0 === t && 0 === n) return [];
4280 if (!r(t)) return e.call(i, t, n);
4281 for (var o, s, a, c = [], f = (t.ignoreCase ? "i" : "") + (t.multiline ? "m" : "") + (t.unicode ? "u" : "") + (t.sticky ? "y" : ""), l = 0, d = void 0 === n ? p : n >>> 0, v = new RegExp(t.source, f + "g");
4282 (o = u.call(v, i)) && !((s = v.lastIndex) > l && (c.push(i.slice(l, o.index)), o.length > 1 && o.index < i.length && h.apply(c, o.slice(1)), a = o[0].length, l = s, c.length >= d));) v.lastIndex === o.index && v.lastIndex++;
4283 return l === i.length ? !a && v.test("") || c.push("") : c.push(i.slice(l)), c.length > d ? c.slice(0, d) : c
4284 } : "0".split(void 0, 0).length ? function(t, n) {
4285 return void 0 === t && 0 === n ? [] : e.call(this, t, n)
4286 } : e, [function(e, r) {
4287 var i = t(this),
4288 o = null == e ? void 0 : e[n];
4289 return void 0 !== o ? o.call(e, i, r) : v.call(String(i), e, r)
4290 }, function(t, n) {
4291 var r = f(v, t, this, n, v !== e);
4292 if (r.done) return r.value;
4293 var u = i(t),
4294 h = String(this),
4295 g = o(u, RegExp),
4296 m = u.unicode,
4297 y = (u.ignoreCase ? "i" : "") + (u.multiline ? "m" : "") + (u.unicode ? "u" : "") + (d ? "y" : "g"),
4298 w = new g(d ? u : "^(?:" + u.source + ")", y),
4299 b = void 0 === n ? p : n >>> 0;
4300 if (0 === b) return [];
4301 if (0 === h.length) return null === c(w, h) ? [h] : [];
4302 for (var S = 0, x = 0, E = []; x < h.length;) {
4303 w.lastIndex = d ? x : 0;
4304 var C, O = c(w, d ? h : h.slice(x));
4305 if (null === O || (C = l(a(w.lastIndex + (d ? 0 : x)), h.length)) === S) x = s(h, x, m);
4306 else {
4307 if (E.push(h.slice(S, x)), E.length === b) return E;
4308 for (var A = 1; A <= O.length - 1; A++)
4309 if (E.push(O[A]), E.length === b) return E;
4310 x = S = C
4311 }
4312 }
4313 return E.push(h.slice(S)), E
4314 }]
4315 }))
4316 }, function(t, n, e) {
4317 var r = e(2),
4318 i = e(90).set,
4319 o = r.MutationObserver || r.WebKitMutationObserver,
4320 s = r.process,
4321 a = r.Promise,
4322 c = "process" == e(26)(s);
4323 t.exports = function() {
4324 var t, n, e, u = function() {
4325 var r, i;
4326 for (c && (r = s.domain) && r.exit(); t;) {
4327 i = t.fn, t = t.next;
4328 try {
4329 i()
4330 } catch (r) {
4331 throw t ? e() : n = void 0, r
4332 }
4333 }
4334 n = void 0, r && r.enter()
4335 };
4336 if (c) e = function() {
4337 s.nextTick(u)
4338 };
4339 else if (!o || r.navigator && r.navigator.standalone)
4340 if (a && a.resolve) {
4341 var f = a.resolve(void 0);
4342 e = function() {
4343 f.then(u)
4344 }
4345 } else e = function() {
4346 i.call(r, u)
4347 };
4348 else {
4349 var l = !0,
4350 h = document.createTextNode("");
4351 new o(u).observe(h, {
4352 characterData: !0
4353 }), e = function() {
4354 h.data = l = !l
4355 }
4356 }
4357 return function(r) {
4358 var i = {
4359 fn: r,
4360 next: void 0
4361 };
4362 n && (n.next = i), t || (t = i, e()), n = i
4363 }
4364 }
4365 }, function(t, n) {
4366 t.exports = function(t) {
4367 try {
4368 return {
4369 e: !1,
4370 v: t()
4371 }
4372 } catch (t) {
4373 return {
4374 e: !0,
4375 v: t
4376 }
4377 }
4378 }
4379 }, function(t, n, e) {
4380 "use strict";
4381 var r = e(117),
4382 i = e(39),
4383 o = "Map";
4384 t.exports = e(64)(o, (function(t) {
4385 return function() {
4386 return t(this, arguments.length > 0 ? arguments[0] : void 0)
4387 }
4388 }), {
4389 get: function(t) {
4390 var n = r.getEntry(i(this, o), t);
4391 return n && n.v
4392 },
4393 set: function(t, n) {
4394 return r.def(i(this, o), 0 === t ? 0 : t, n)
4395 }
4396 }, r, !0)
4397 }, function(t, n, e) {
4398 "use strict";
4399 var r = e(117),
4400 i = e(39);
4401 t.exports = e(64)("Set", (function(t) {
4402 return function() {
4403 return t(this, arguments.length > 0 ? arguments[0] : void 0)
4404 }
4405 }), {
4406 add: function(t) {
4407 return r.def(i(this, "Set"), t = 0 === t ? 0 : t, t)
4408 }
4409 }, r)
4410 }, function(t, n, e) {
4411 "use strict";
4412 var r, i = e(2),
4413 o = e(23)(0),
4414 s = e(12),
4415 a = e(30),
4416 c = e(98),
4417 u = e(118),
4418 f = e(5),
4419 l = e(39),
4420 h = e(39),
4421 p = !i.ActiveXObject && "ActiveXObject" in i,
4422 d = "WeakMap",
4423 v = a.getWeak,
4424 g = Object.isExtensible,
4425 m = u.ufstore,
4426 y = function(t) {
4427 return function() {
4428 return t(this, arguments.length > 0 ? arguments[0] : void 0)
4429 }
4430 },
4431 w = {
4432 get: function(t) {
4433 if (f(t)) {
4434 var n = v(t);
4435 return !0 === n ? m(l(this, d)).get(t) : n ? n[this._i] : void 0
4436 }
4437 },
4438 set: function(t, n) {
4439 return u.def(l(this, d), t, n)
4440 }
4441 },
4442 b = t.exports = e(64)(d, y, w, u, !0, !0);
4443 h && p && (c((r = u.getConstructor(y, d)).prototype, w), a.NEED = !0, o(["delete", "has", "get", "set"], (function(t) {
4444 var n = b.prototype,
4445 e = n[t];
4446 s(n, t, (function(n, i) {
4447 if (f(n) && !g(n)) {
4448 this._f || (this._f = new r);
4449 var o = this._f[t](n, i);
4450 return "set" == t ? this : o
4451 }
4452 return e.call(this, n, i)
4453 }))
4454 })))
4455 }, function(t, n, e) {
4456 "use strict";
4457 var r = e(118),
4458 i = e(39),
4459 o = "WeakSet";
4460 e(64)(o, (function(t) {
4461 return function() {
4462 return t(this, arguments.length > 0 ? arguments[0] : void 0)
4463 }
4464 }), {
4465 add: function(t) {
4466 return r.def(i(this, o), t, !0)
4467 }
4468 }, r, !1, !0)
4469 }, function(t, n, e) {
4470 "use strict";
4471 var r = e(0),
4472 i = e(65),
4473 o = e(91),
4474 s = e(4),
4475 a = e(35),
4476 c = e(7),
4477 u = e(5),
4478 f = e(2).ArrayBuffer,
4479 l = e(49),
4480 h = o.ArrayBuffer,
4481 p = o.DataView,
4482 d = i.ABV && f.isView,
4483 v = h.prototype.slice,
4484 g = i.VIEW,
4485 m = "ArrayBuffer";
4486 r(r.G + r.W + r.F * (f !== h), {
4487 ArrayBuffer: h
4488 }), r(r.S + r.F * !i.CONSTR, m, {
4489 isView: function(t) {
4490 return d && d(t) || u(t) && g in t
4491 }
4492 }), r(r.P + r.U + r.F * e(3)((function() {
4493 return !new h(2).slice(1, void 0).byteLength
4494 })), m, {
4495 slice: function(t, n) {
4496 if (void 0 !== v && void 0 === n) return v.call(s(this), t);
4497 for (var e = s(this).byteLength, r = a(t, e), i = a(void 0 === n ? e : n, e), o = new(l(this, h))(c(i - r)), u = new p(this), f = new p(o), d = 0; r < i;) f.setUint8(d++, u.getUint8(r++));
4498 return o
4499 }
4500 }), e(43)(m)
4501 }, function(t, n, e) {
4502 var r = e(0);
4503 r(r.G + r.W + r.F * !e(65).ABV, {
4504 DataView: e(91).DataView
4505 })
4506 }, function(t, n, e) {
4507 e(28)("Int8", 1, (function(t) {
4508 return function(n, e, r) {
4509 return t(this, n, e, r)
4510 }
4511 }))
4512 }, function(t, n, e) {
4513 e(28)("Uint8", 1, (function(t) {
4514 return function(n, e, r) {
4515 return t(this, n, e, r)
4516 }
4517 }))
4518 }, function(t, n, e) {
4519 e(28)("Uint8", 1, (function(t) {
4520 return function(n, e, r) {
4521 return t(this, n, e, r)
4522 }
4523 }), !0)
4524 }, function(t, n, e) {
4525 e(28)("Int16", 2, (function(t) {
4526 return function(n, e, r) {
4527 return t(this, n, e, r)
4528 }
4529 }))
4530 }, function(t, n, e) {
4531 e(28)("Uint16", 2, (function(t) {
4532 return function(n, e, r) {
4533 return t(this, n, e, r)
4534 }
4535 }))
4536 }, function(t, n, e) {
4537 e(28)("Int32", 4, (function(t) {
4538 return function(n, e, r) {
4539 return t(this, n, e, r)
4540 }
4541 }))
4542 }, function(t, n, e) {
4543 e(28)("Uint32", 4, (function(t) {
4544 return function(n, e, r) {
4545 return t(this, n, e, r)
4546 }
4547 }))
4548 }, function(t, n, e) {
4549 e(28)("Float32", 4, (function(t) {
4550 return function(n, e, r) {
4551 return t(this, n, e, r)
4552 }
4553 }))
4554 }, function(t, n, e) {
4555 e(28)("Float64", 8, (function(t) {
4556 return function(n, e, r) {
4557 return t(this, n, e, r)
4558 }
4559 }))
4560 }, function(t, n, e) {
4561 var r = e(0),
4562 i = e(25),
4563 o = e(4),
4564 s = (e(2).Reflect || {}).apply,
4565 a = Function.apply;
4566 r(r.S + r.F * !e(3)((function() {
4567 s((function() {}))
4568 })), "Reflect", {
4569 apply: function(t, n, e) {
4570 var r = i(t),
4571 c = o(e);
4572 return s ? s(r, n, c) : a.call(r, n, c)
4573 }
4574 })
4575 }, function(t, n, e) {
4576 var r = e(0),
4577 i = e(36),
4578 o = e(25),
4579 s = e(4),
4580 a = e(5),
4581 c = e(3),
4582 u = e(100),
4583 f = (e(2).Reflect || {}).construct,
4584 l = c((function() {
4585 function t() {}
4586 return !(f((function() {}), [], t) instanceof t)
4587 })),
4588 h = !c((function() {
4589 f((function() {}))
4590 }));
4591 r(r.S + r.F * (l || h), "Reflect", {
4592 construct: function(t, n) {
4593 o(t), s(n);
4594 var e = arguments.length < 3 ? t : o(arguments[2]);
4595 if (h && !l) return f(t, n, e);
4596 if (t == e) {
4597 switch (n.length) {
4598 case 0:
4599 return new t;
4600 case 1:
4601 return new t(n[0]);
4602 case 2:
4603 return new t(n[0], n[1]);
4604 case 3:
4605 return new t(n[0], n[1], n[2]);
4606 case 4:
4607 return new t(n[0], n[1], n[2], n[3])
4608 }
4609 var r = [null];
4610 return r.push.apply(r, n), new(u.apply(t, r))
4611 }
4612 var c = e.prototype,
4613 p = i(a(c) ? c : Object.prototype),
4614 d = Function.apply.call(t, p, n);
4615 return a(d) ? d : p
4616 }
4617 })
4618 }, function(t, n, e) {
4619 var r = e(8),
4620 i = e(0),
4621 o = e(4),
4622 s = e(29);
4623 i(i.S + i.F * e(3)((function() {
4624 Reflect.defineProperty(r.f({}, 1, {
4625 value: 1
4626 }), 1, {
4627 value: 2
4628 })
4629 })), "Reflect", {
4630 defineProperty: function(t, n, e) {
4631 o(t), n = s(n, !0), o(e);
4632 try {
4633 return r.f(t, n, e), !0
4634 } catch (t) {
4635 return !1
4636 }
4637 }
4638 })
4639 }, function(t, n, e) {
4640 var r = e(0),
4641 i = e(21).f,
4642 o = e(4);
4643 r(r.S, "Reflect", {
4644 deleteProperty: function(t, n) {
4645 var e = i(o(t), n);
4646 return !(e && !e.configurable) && delete t[n]
4647 }
4648 })
4649 }, function(t, n, e) {
4650 "use strict";
4651 var r = e(0),
4652 i = e(4),
4653 o = function(t) {
4654 this._t = i(t), this._i = 0;
4655 var n, e = this._k = [];
4656 for (n in t) e.push(n)
4657 };
4658 e(107)(o, "Object", (function() {
4659 var t, n = this,
4660 e = n._k;
4661 do {
4662 if (n._i >= e.length) return {
4663 value: void 0,
4664 done: !0
4665 }
4666 } while (!((t = e[n._i++]) in n._t));
4667 return {
4668 value: t,
4669 done: !1
4670 }
4671 })), r(r.S, "Reflect", {
4672 enumerate: function(t) {
4673 return new o(t)
4674 }
4675 })
4676 }, function(t, n, e) {
4677 var r = e(21),
4678 i = e(38),
4679 o = e(15),
4680 s = e(0),
4681 a = e(5),
4682 c = e(4);
4683 s(s.S, "Reflect", {
4684 get: function t(n, e) {
4685 var s, u, f = arguments.length < 3 ? n : arguments[2];
4686 return c(n) === f ? n[e] : (s = r.f(n, e)) ? o(s, "value") ? s.value : void 0 !== s.get ? s.get.call(f) : void 0 : a(u = i(n)) ? t(u, e, f) : void 0
4687 }
4688 })
4689 }, function(t, n, e) {
4690 var r = e(21),
4691 i = e(0),
4692 o = e(4);
4693 i(i.S, "Reflect", {
4694 getOwnPropertyDescriptor: function(t, n) {
4695 return r.f(o(t), n)
4696 }
4697 })
4698 }, function(t, n, e) {
4699 var r = e(0),
4700 i = e(38),
4701 o = e(4);
4702 r(r.S, "Reflect", {
4703 getPrototypeOf: function(t) {
4704 return i(o(t))
4705 }
4706 })
4707 }, function(t, n, e) {
4708 var r = e(0);
4709 r(r.S, "Reflect", {
4710 has: function(t, n) {
4711 return n in t
4712 }
4713 })
4714 }, function(t, n, e) {
4715 var r = e(0),
4716 i = e(4),
4717 o = Object.isExtensible;
4718 r(r.S, "Reflect", {
4719 isExtensible: function(t) {
4720 return i(t), !o || o(t)
4721 }
4722 })
4723 }, function(t, n, e) {
4724 var r = e(0);
4725 r(r.S, "Reflect", {
4726 ownKeys: e(120)
4727 })
4728 }, function(t, n, e) {
4729 var r = e(0),
4730 i = e(4),
4731 o = Object.preventExtensions;
4732 r(r.S, "Reflect", {
4733 preventExtensions: function(t) {
4734 i(t);
4735 try {
4736 return o && o(t), !0
4737 } catch (t) {
4738 return !1
4739 }
4740 }
4741 })
4742 }, function(t, n, e) {
4743 var r = e(8),
4744 i = e(21),
4745 o = e(38),
4746 s = e(15),
4747 a = e(0),
4748 c = e(31),
4749 u = e(4),
4750 f = e(5);
4751 a(a.S, "Reflect", {
4752 set: function t(n, e, a) {
4753 var l, h, p = arguments.length < 4 ? n : arguments[3],
4754 d = i.f(u(n), e);
4755 if (!d) {
4756 if (f(h = o(n))) return t(h, e, a, p);
4757 d = c(0)
4758 }
4759 if (s(d, "value")) {
4760 if (!1 === d.writable || !f(p)) return !1;
4761 if (l = i.f(p, e)) {
4762 if (l.get || l.set || !1 === l.writable) return !1;
4763 l.value = a, r.f(p, e, l)
4764 } else r.f(p, e, c(0, a));
4765 return !0
4766 }
4767 return void 0 !== d.set && (d.set.call(p, a), !0)
4768 }
4769 })
4770 }, function(t, n, e) {
4771 var r = e(0),
4772 i = e(72);
4773 i && r(r.S, "Reflect", {
4774 setPrototypeOf: function(t, n) {
4775 i.check(t, n);
4776 try {
4777 return i.set(t, n), !0
4778 } catch (t) {
4779 return !1
4780 }
4781 }
4782 })
4783 }, function(t, n, e) {
4784 e(284), t.exports = e(10).Array.includes
4785 }, function(t, n, e) {
4786 "use strict";
4787 var r = e(0),
4788 i = e(55)(!0);
4789 r(r.P, "Array", {
4790 includes: function(t) {
4791 return i(this, t, arguments.length > 1 ? arguments[1] : void 0)
4792 }
4793 }), e(42)("includes")
4794 }, function(t, n, e) {
4795 e(286), t.exports = e(10).String.padStart
4796 }, function(t, n, e) {
4797 "use strict";
4798 var r = e(0),
4799 i = e(121),
4800 o = e(63),
4801 s = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);
4802 r(r.P + r.F * s, "String", {
4803 padStart: function(t) {
4804 return i(this, t, arguments.length > 1 ? arguments[1] : void 0, !0)
4805 }
4806 })
4807 }, function(t, n, e) {
4808 e(288), t.exports = e(10).String.padEnd
4809 }, function(t, n, e) {
4810 "use strict";
4811 var r = e(0),
4812 i = e(121),
4813 o = e(63),
4814 s = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);
4815 r(r.P + r.F * s, "String", {
4816 padEnd: function(t) {
4817 return i(this, t, arguments.length > 1 ? arguments[1] : void 0, !1)
4818 }
4819 })
4820 }, function(t, n, e) {
4821 e(290), t.exports = e(67).f("asyncIterator")
4822 }, function(t, n, e) {
4823 e(94)("asyncIterator")
4824 }, function(t, n, e) {
4825 e(292), t.exports = e(10).Object.getOwnPropertyDescriptors
4826 }, function(t, n, e) {
4827 var r = e(0),
4828 i = e(120),
4829 o = e(17),
4830 s = e(21),
4831 a = e(84);
4832 r(r.S, "Object", {
4833 getOwnPropertyDescriptors: function(t) {
4834 for (var n, e, r = o(t), c = s.f, u = i(r), f = {}, l = 0; u.length > l;) void 0 !== (e = c(r, n = u[l++])) && a(f, n, e);
4835 return f
4836 }
4837 })
4838 }, function(t, n, e) {
4839 e(294), t.exports = e(10).Object.values
4840 }, function(t, n, e) {
4841 var r = e(0),
4842 i = e(122)(!1);
4843 r(r.S, "Object", {
4844 values: function(t) {
4845 return i(t)
4846 }
4847 })
4848 }, function(t, n, e) {
4849 e(296), t.exports = e(10).Object.entries
4850 }, function(t, n, e) {
4851 var r = e(0),
4852 i = e(122)(!0);
4853 r(r.S, "Object", {
4854 entries: function(t) {
4855 return i(t)
4856 }
4857 })
4858 }, function(t, n, e) {
4859 "use strict";
4860 e(114), e(298), t.exports = e(10).Promise.finally
4861 }, function(t, n, e) {
4862 "use strict";
4863 var r = e(0),
4864 i = e(10),
4865 o = e(2),
4866 s = e(49),
4867 a = e(116);
4868 r(r.P + r.R, "Promise", {
4869 finally: function(t) {
4870 var n = s(this, i.Promise || o.Promise),
4871 e = "function" == typeof t;
4872 return this.then(e ? function(e) {
4873 return a(n, t()).then((function() {
4874 return e
4875 }))
4876 } : t, e ? function(e) {
4877 return a(n, t()).then((function() {
4878 throw e
4879 }))
4880 } : t)
4881 }
4882 })
4883 }, function(t, n, e) {
4884 e(300), e(301), e(302), t.exports = e(10)
4885 }, function(t, n, e) {
4886 var r = e(2),
4887 i = e(0),
4888 o = e(63),
4889 s = [].slice,
4890 a = /MSIE .\./.test(o),
4891 c = function(t) {
4892 return function(n, e) {
4893 var r = arguments.length > 2,
4894 i = !!r && s.call(arguments, 2);
4895 return t(r ? function() {
4896 ("function" == typeof n ? n : Function(n)).apply(this, i)
4897 } : n, e)
4898 }
4899 };
4900 i(i.G + i.B + i.F * a, {
4901 setTimeout: c(r.setTimeout),
4902 setInterval: c(r.setInterval)
4903 })
4904 }, function(t, n, e) {
4905 var r = e(0),
4906 i = e(90);
4907 r(r.G + r.B, {
4908 setImmediate: i.set,
4909 clearImmediate: i.clear
4910 })
4911 }, function(t, n, e) {
4912 for (var r = e(87), i = e(34), o = e(12), s = e(2), a = e(16), c = e(41), u = e(6), f = u("iterator"), l = u("toStringTag"), h = c.Array, p = {
4913 CSSRuleList: !0,
4914 CSSStyleDeclaration: !1,
4915 CSSValueList: !1,
4916 ClientRectList: !1,
4917 DOMRectList: !1,
4918 DOMStringList: !1,
4919 DOMTokenList: !0,
4920 DataTransferItemList: !1,
4921 FileList: !1,
4922 HTMLAllCollection: !1,
4923 HTMLCollection: !1,
4924 HTMLFormElement: !1,
4925 HTMLSelectElement: !1,
4926 MediaList: !0,
4927 MimeTypeArray: !1,
4928 NamedNodeMap: !1,
4929 NodeList: !0,
4930 PaintRequestList: !1,
4931 Plugin: !1,
4932 PluginArray: !1,
4933 SVGLengthList: !1,
4934 SVGNumberList: !1,
4935 SVGPathSegList: !1,
4936 SVGPointList: !1,
4937 SVGStringList: !1,
4938 SVGTransformList: !1,
4939 SourceBufferList: !1,
4940 StyleSheetList: !0,
4941 TextTrackCueList: !1,
4942 TextTrackList: !1,
4943 TouchList: !1
4944 }, d = i(p), v = 0; v < d.length; v++) {
4945 var g, m = d[v],
4946 y = p[m],
4947 w = s[m],
4948 b = w && w.prototype;
4949 if (b && (b[f] || a(b, f, h), b[l] || a(b, l, m), c[m] = h, y))
4950 for (g in r) b[g] || o(b, g, r[g], !0)
4951 }
4952 }, function(t, n) {
4953 ! function(n) {
4954 "use strict";
4955 var e, r = Object.prototype,
4956 i = r.hasOwnProperty,
4957 o = "function" == typeof Symbol ? Symbol : {},
4958 s = o.iterator || "@@iterator",
4959 a = o.asyncIterator || "@@asyncIterator",
4960 c = o.toStringTag || "@@toStringTag",
4961 u = "object" == typeof t,
4962 f = n.regeneratorRuntime;
4963 if (f) u && (t.exports = f);
4964 else {
4965 (f = n.regeneratorRuntime = u ? t.exports : {}).wrap = b;
4966 var l = "suspendedStart",
4967 h = "suspendedYield",
4968 p = "executing",
4969 d = "completed",
4970 v = {},
4971 g = {};
4972 g[s] = function() {
4973 return this
4974 };
4975 var m = Object.getPrototypeOf,
4976 y = m && m(m(M([])));
4977 y && y !== r && i.call(y, s) && (g = y);
4978 var w = C.prototype = x.prototype = Object.create(g);
4979 E.prototype = w.constructor = C, C.constructor = E, C[c] = E.displayName = "GeneratorFunction", f.isGeneratorFunction = function(t) {
4980 var n = "function" == typeof t && t.constructor;
4981 return !!n && (n === E || "GeneratorFunction" === (n.displayName || n.name))
4982 }, f.mark = function(t) {
4983 return Object.setPrototypeOf ? Object.setPrototypeOf(t, C) : (t.__proto__ = C, c in t || (t[c] = "GeneratorFunction")), t.prototype = Object.create(w), t
4984 }, f.awrap = function(t) {
4985 return {
4986 __await: t
4987 }
4988 }, O(A.prototype), A.prototype[a] = function() {
4989 return this
4990 }, f.AsyncIterator = A, f.async = function(t, n, e, r) {
4991 var i = new A(b(t, n, e, r));
4992 return f.isGeneratorFunction(n) ? i : i.next().then((function(t) {
4993 return t.done ? t.value : i.next()
4994 }))
4995 }, O(w), w[c] = "Generator", w[s] = function() {
4996 return this
4997 }, w.toString = function() {
4998 return "[object Generator]"
4999 }, f.keys = function(t) {
5000 var n = [];
5001 for (var e in t) n.push(e);
5002 return n.reverse(),
5003 function e() {
5004 for (; n.length;) {
5005 var r = n.pop();
5006 if (r in t) return e.value = r, e.done = !1, e
5007 }
5008 return e.done = !0, e
5009 }
5010 }, f.values = M, j.prototype = {
5011 constructor: j,
5012 reset: function(t) {
5013 if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(P), !t)
5014 for (var n in this) "t" === n.charAt(0) && i.call(this, n) && !isNaN(+n.slice(1)) && (this[n] = e)
5015 },
5016 stop: function() {
5017 this.done = !0;
5018 var t = this.tryEntries[0].completion;
5019 if ("throw" === t.type) throw t.arg;
5020 return this.rval
5021 },
5022 dispatchException: function(t) {
5023 if (this.done) throw t;
5024 var n = this;
5025
5026 function r(r, i) {
5027 return a.type = "throw", a.arg = t, n.next = r, i && (n.method = "next", n.arg = e), !!i
5028 }
5029 for (var o = this.tryEntries.length - 1; o >= 0; --o) {
5030 var s = this.tryEntries[o],
5031 a = s.completion;
5032 if ("root" === s.tryLoc) return r("end");
5033 if (s.tryLoc <= this.prev) {
5034 var c = i.call(s, "catchLoc"),
5035 u = i.call(s, "finallyLoc");
5036 if (c && u) {
5037 if (this.prev < s.catchLoc) return r(s.catchLoc, !0);
5038 if (this.prev < s.finallyLoc) return r(s.finallyLoc)
5039 } else if (c) {
5040 if (this.prev < s.catchLoc) return r(s.catchLoc, !0)
5041 } else {
5042 if (!u) throw new Error("try statement without catch or finally");
5043 if (this.prev < s.finallyLoc) return r(s.finallyLoc)
5044 }
5045 }
5046 }
5047 },
5048 abrupt: function(t, n) {
5049 for (var e = this.tryEntries.length - 1; e >= 0; --e) {
5050 var r = this.tryEntries[e];
5051 if (r.tryLoc <= this.prev && i.call(r, "finallyLoc") && this.prev < r.finallyLoc) {
5052 var o = r;
5053 break
5054 }
5055 }
5056 o && ("break" === t || "continue" === t) && o.tryLoc <= n && n <= o.finallyLoc && (o = null);
5057 var s = o ? o.completion : {};
5058 return s.type = t, s.arg = n, o ? (this.method = "next", this.next = o.finallyLoc, v) : this.complete(s)
5059 },
5060 complete: function(t, n) {
5061 if ("throw" === t.type) throw t.arg;
5062 return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && n && (this.next = n), v
5063 },
5064 finish: function(t) {
5065 for (var n = this.tryEntries.length - 1; n >= 0; --n) {
5066 var e = this.tryEntries[n];
5067 if (e.finallyLoc === t) return this.complete(e.completion, e.afterLoc), P(e), v
5068 }
5069 },
5070 catch: function(t) {
5071 for (var n = this.tryEntries.length - 1; n >= 0; --n) {
5072 var e = this.tryEntries[n];
5073 if (e.tryLoc === t) {
5074 var r = e.completion;
5075 if ("throw" === r.type) {
5076 var i = r.arg;
5077 P(e)
5078 }
5079 return i
5080 }
5081 }
5082 throw new Error("illegal catch attempt")
5083 },
5084 delegateYield: function(t, n, r) {
5085 return this.delegate = {
5086 iterator: M(t),
5087 resultName: n,
5088 nextLoc: r
5089 }, "next" === this.method && (this.arg = e), v
5090 }
5091 }
5092 }
5093
5094 function b(t, n, e, r) {
5095 var i = n && n.prototype instanceof x ? n : x,
5096 o = Object.create(i.prototype),
5097 s = new j(r || []);
5098 return o._invoke = function(t, n, e) {
5099 var r = l;
5100 return function(i, o) {
5101 if (r === p) throw new Error("Generator is already running");
5102 if (r === d) {
5103 if ("throw" === i) throw o;
5104 return T()
5105 }
5106 for (e.method = i, e.arg = o;;) {
5107 var s = e.delegate;
5108 if (s) {
5109 var a = I(s, e);
5110 if (a) {
5111 if (a === v) continue;
5112 return a
5113 }
5114 }
5115 if ("next" === e.method) e.sent = e._sent = e.arg;
5116 else if ("throw" === e.method) {
5117 if (r === l) throw r = d, e.arg;
5118 e.dispatchException(e.arg)
5119 } else "return" === e.method && e.abrupt("return", e.arg);
5120 r = p;
5121 var c = S(t, n, e);
5122 if ("normal" === c.type) {
5123 if (r = e.done ? d : h, c.arg === v) continue;
5124 return {
5125 value: c.arg,
5126 done: e.done
5127 }
5128 }
5129 "throw" === c.type && (r = d, e.method = "throw", e.arg = c.arg)
5130 }
5131 }
5132 }(t, e, s), o
5133 }
5134
5135 function S(t, n, e) {
5136 try {
5137 return {
5138 type: "normal",
5139 arg: t.call(n, e)
5140 }
5141 } catch (t) {
5142 return {
5143 type: "throw",
5144 arg: t
5145 }
5146 }
5147 }
5148
5149 function x() {}
5150
5151 function E() {}
5152
5153 function C() {}
5154
5155 function O(t) {
5156 ["next", "throw", "return"].forEach((function(n) {
5157 t[n] = function(t) {
5158 return this._invoke(n, t)
5159 }
5160 }))
5161 }
5162
5163 function A(t) {
5164 function n(e, r, o, s) {
5165 var a = S(t[e], t, r);
5166 if ("throw" !== a.type) {
5167 var c = a.arg,
5168 u = c.value;
5169 return u && "object" == typeof u && i.call(u, "__await") ? Promise.resolve(u.__await).then((function(t) {
5170 n("next", t, o, s)
5171 }), (function(t) {
5172 n("throw", t, o, s)
5173 })) : Promise.resolve(u).then((function(t) {
5174 c.value = t, o(c)
5175 }), (function(t) {
5176 return n("throw", t, o, s)
5177 }))
5178 }
5179 s(a.arg)
5180 }
5181 var e;
5182 this._invoke = function(t, r) {
5183 function i() {
5184 return new Promise((function(e, i) {
5185 n(t, r, e, i)
5186 }))
5187 }
5188 return e = e ? e.then(i, i) : i()
5189 }
5190 }
5191
5192 function I(t, n) {
5193 var r = t.iterator[n.method];
5194 if (r === e) {
5195 if (n.delegate = null, "throw" === n.method) {
5196 if (t.iterator.return && (n.method = "return", n.arg = e, I(t, n), "throw" === n.method)) return v;
5197 n.method = "throw", n.arg = new TypeError("The iterator does not provide a 'throw' method")
5198 }
5199 return v
5200 }
5201 var i = S(r, t.iterator, n.arg);
5202 if ("throw" === i.type) return n.method = "throw", n.arg = i.arg, n.delegate = null, v;
5203 var o = i.arg;
5204 return o ? o.done ? (n[t.resultName] = o.value, n.next = t.nextLoc, "return" !== n.method && (n.method = "next", n.arg = e), n.delegate = null, v) : o : (n.method = "throw", n.arg = new TypeError("iterator result is not an object"), n.delegate = null, v)
5205 }
5206
5207 function _(t) {
5208 var n = {
5209 tryLoc: t[0]
5210 };
5211 1 in t && (n.catchLoc = t[1]), 2 in t && (n.finallyLoc = t[2], n.afterLoc = t[3]), this.tryEntries.push(n)
5212 }
5213
5214 function P(t) {
5215 var n = t.completion || {};
5216 n.type = "normal", delete n.arg, t.completion = n
5217 }
5218
5219 function j(t) {
5220 this.tryEntries = [{
5221 tryLoc: "root"
5222 }], t.forEach(_, this), this.reset(!0)
5223 }
5224
5225 function M(t) {
5226 if (t) {
5227 var n = t[s];
5228 if (n) return n.call(t);
5229 if ("function" == typeof t.next) return t;
5230 if (!isNaN(t.length)) {
5231 var r = -1,
5232 o = function n() {
5233 for (; ++r < t.length;)
5234 if (i.call(t, r)) return n.value = t[r], n.done = !1, n;
5235 return n.value = e, n.done = !0, n
5236 };
5237 return o.next = o
5238 }
5239 }
5240 return {
5241 next: T
5242 }
5243 }
5244
5245 function T() {
5246 return {
5247 value: e,
5248 done: !0
5249 }
5250 }
5251 }(function() {
5252 return this || "object" == typeof self && self
5253 }() || Function("return this")())
5254 }, function(t, n, e) {
5255 t.exports = e(323).default
5256 }, function(t, n, e) {
5257 "use strict";
5258 var r = e(18),
5259 i = e(125),
5260 o = e(307),
5261 s = e(92);
5262
5263 function a(t) {
5264 var n = new o(t),
5265 e = i(o.prototype.request, n);
5266 return r.extend(e, o.prototype, n), r.extend(e, n), e
5267 }
5268 var c = a(s);
5269 c.Axios = o, c.create = function(t) {
5270 return a(r.merge(s, t))
5271 }, c.Cancel = e(129), c.CancelToken = e(321), c.isCancel = e(128), c.all = function(t) {
5272 return Promise.all(t)
5273 }, c.spread = e(322), t.exports = c, t.exports.default = c
5274 }, function(t, n) {
5275 t.exports = function(t) {
5276 return null != t && null != t.constructor && "function" == typeof t.constructor.isBuffer && t.constructor.isBuffer(t)
5277 }
5278 }, function(t, n, e) {
5279 "use strict";
5280 var r = e(92),
5281 i = e(18),
5282 o = e(316),
5283 s = e(317);
5284
5285 function a(t) {
5286 this.defaults = t, this.interceptors = {
5287 request: new o,
5288 response: new o
5289 }
5290 }
5291 a.prototype.request = function(t) {
5292 "string" == typeof t && (t = i.merge({
5293 url: arguments[0]
5294 }, arguments[1])), (t = i.merge(r, {
5295 method: "get"
5296 }, this.defaults, t)).method = t.method.toLowerCase();
5297 var n = [s, void 0],
5298 e = Promise.resolve(t);
5299 for (this.interceptors.request.forEach((function(t) {
5300 n.unshift(t.fulfilled, t.rejected)
5301 })), this.interceptors.response.forEach((function(t) {
5302 n.push(t.fulfilled, t.rejected)
5303 })); n.length;) e = e.then(n.shift(), n.shift());
5304 return e
5305 }, i.forEach(["delete", "get", "head", "options"], (function(t) {
5306 a.prototype[t] = function(n, e) {
5307 return this.request(i.merge(e || {}, {
5308 method: t,
5309 url: n
5310 }))
5311 }
5312 })), i.forEach(["post", "put", "patch"], (function(t) {
5313 a.prototype[t] = function(n, e, r) {
5314 return this.request(i.merge(r || {}, {
5315 method: t,
5316 url: n,
5317 data: e
5318 }))
5319 }
5320 })), t.exports = a
5321 }, function(t, n) {
5322 var e, r, i = t.exports = {};
5323
5324 function o() {
5325 throw new Error("setTimeout has not been defined")
5326 }
5327
5328 function s() {
5329 throw new Error("clearTimeout has not been defined")
5330 }
5331
5332 function a(t) {
5333 if (e === setTimeout) return setTimeout(t, 0);
5334 if ((e === o || !e) && setTimeout) return e = setTimeout, setTimeout(t, 0);
5335 try {
5336 return e(t, 0)
5337 } catch (n) {
5338 try {
5339 return e.call(null, t, 0)
5340 } catch (n) {
5341 return e.call(this, t, 0)
5342 }
5343 }
5344 }! function() {
5345 try {
5346 e = "function" == typeof setTimeout ? setTimeout : o
5347 } catch (t) {
5348 e = o
5349 }
5350 try {
5351 r = "function" == typeof clearTimeout ? clearTimeout : s
5352 } catch (t) {
5353 r = s
5354 }
5355 }();
5356 var c, u = [],
5357 f = !1,
5358 l = -1;
5359
5360 function h() {
5361 f && c && (f = !1, c.length ? u = c.concat(u) : l = -1, u.length && p())
5362 }
5363
5364 function p() {
5365 if (!f) {
5366 var t = a(h);
5367 f = !0;
5368 for (var n = u.length; n;) {
5369 for (c = u, u = []; ++l < n;) c && c[l].run();
5370 l = -1, n = u.length
5371 }
5372 c = null, f = !1,
5373 function(t) {
5374 if (r === clearTimeout) return clearTimeout(t);
5375 if ((r === s || !r) && clearTimeout) return r = clearTimeout, clearTimeout(t);
5376 try {
5377 r(t)
5378 } catch (n) {
5379 try {
5380 return r.call(null, t)
5381 } catch (n) {
5382 return r.call(this, t)
5383 }
5384 }
5385 }(t)
5386 }
5387 }
5388
5389 function d(t, n) {
5390 this.fun = t, this.array = n
5391 }
5392
5393 function v() {}
5394 i.nextTick = function(t) {
5395 var n = new Array(arguments.length - 1);
5396 if (arguments.length > 1)
5397 for (var e = 1; e < arguments.length; e++) n[e - 1] = arguments[e];
5398 u.push(new d(t, n)), 1 !== u.length || f || a(p)
5399 }, d.prototype.run = function() {
5400 this.fun.apply(null, this.array)
5401 }, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {}, i.on = v, i.addListener = v, i.once = v, i.off = v, i.removeListener = v, i.removeAllListeners = v, i.emit = v, i.prependListener = v, i.prependOnceListener = v, i.listeners = function(t) {
5402 return []
5403 }, i.binding = function(t) {
5404 throw new Error("process.binding is not supported")
5405 }, i.cwd = function() {
5406 return "/"
5407 }, i.chdir = function(t) {
5408 throw new Error("process.chdir is not supported")
5409 }, i.umask = function() {
5410 return 0
5411 }
5412 }, function(t, n, e) {
5413 "use strict";
5414 var r = e(18);
5415 t.exports = function(t, n) {
5416 r.forEach(t, (function(e, r) {
5417 r !== n && r.toUpperCase() === n.toUpperCase() && (t[n] = e, delete t[r])
5418 }))
5419 }
5420 }, function(t, n, e) {
5421 "use strict";
5422 var r = e(127);
5423 t.exports = function(t, n, e) {
5424 var i = e.config.validateStatus;
5425 e.status && i && !i(e.status) ? n(r("Request failed with status code " + e.status, e.config, null, e.request, e)) : t(e)
5426 }
5427 }, function(t, n, e) {
5428 "use strict";
5429 t.exports = function(t, n, e, r, i) {
5430 return t.config = n, e && (t.code = e), t.request = r, t.response = i, t
5431 }
5432 }, function(t, n, e) {
5433 "use strict";
5434 var r = e(18);
5435
5436 function i(t) {
5437 return encodeURIComponent(t).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]")
5438 }
5439 t.exports = function(t, n, e) {
5440 if (!n) return t;
5441 var o;
5442 if (e) o = e(n);
5443 else if (r.isURLSearchParams(n)) o = n.toString();
5444 else {
5445 var s = [];
5446 r.forEach(n, (function(t, n) {
5447 null != t && (r.isArray(t) ? n += "[]" : t = [t], r.forEach(t, (function(t) {
5448 r.isDate(t) ? t = t.toISOString() : r.isObject(t) && (t = JSON.stringify(t)), s.push(i(n) + "=" + i(t))
5449 })))
5450 })), o = s.join("&")
5451 }
5452 return o && (t += (-1 === t.indexOf("?") ? "?" : "&") + o), t
5453 }
5454 }, function(t, n, e) {
5455 "use strict";
5456 var r = e(18),
5457 i = ["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"];
5458 t.exports = function(t) {
5459 var n, e, o, s = {};
5460 return t ? (r.forEach(t.split("\n"), (function(t) {
5461 if (o = t.indexOf(":"), n = r.trim(t.substr(0, o)).toLowerCase(), e = r.trim(t.substr(o + 1)), n) {
5462 if (s[n] && i.indexOf(n) >= 0) return;
5463 s[n] = "set-cookie" === n ? (s[n] ? s[n] : []).concat([e]) : s[n] ? s[n] + ", " + e : e
5464 }
5465 })), s) : s
5466 }
5467 }, function(t, n, e) {
5468 "use strict";
5469 var r = e(18);
5470 t.exports = r.isStandardBrowserEnv() ? function() {
5471 var t, n = /(msie|trident)/i.test(navigator.userAgent),
5472 e = document.createElement("a");
5473
5474 function i(t) {
5475 var r = t;
5476 return n && (e.setAttribute("href", r), r = e.href), e.setAttribute("href", r), {
5477 href: e.href,
5478 protocol: e.protocol ? e.protocol.replace(/:$/, "") : "",
5479 host: e.host,
5480 search: e.search ? e.search.replace(/^\?/, "") : "",
5481 hash: e.hash ? e.hash.replace(/^#/, "") : "",
5482 hostname: e.hostname,
5483 port: e.port,
5484 pathname: "/" === e.pathname.charAt(0) ? e.pathname : "/" + e.pathname
5485 }
5486 }
5487 return t = i(window.location.href),
5488 function(n) {
5489 var e = r.isString(n) ? i(n) : n;
5490 return e.protocol === t.protocol && e.host === t.host
5491 }
5492 }() : function() {
5493 return !0
5494 }
5495 }, function(t, n, e) {
5496 "use strict";
5497 var r = e(18);
5498 t.exports = r.isStandardBrowserEnv() ? {
5499 write: function(t, n, e, i, o, s) {
5500 var a = [];
5501 a.push(t + "=" + encodeURIComponent(n)), r.isNumber(e) && a.push("expires=" + new Date(e).toGMTString()), r.isString(i) && a.push("path=" + i), r.isString(o) && a.push("domain=" + o), !0 === s && a.push("secure"), document.cookie = a.join("; ")
5502 },
5503 read: function(t) {
5504 var n = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
5505 return n ? decodeURIComponent(n[3]) : null
5506 },
5507 remove: function(t) {
5508 this.write(t, "", Date.now() - 864e5)
5509 }
5510 } : {
5511 write: function() {},
5512 read: function() {
5513 return null
5514 },
5515 remove: function() {}
5516 }
5517 }, function(t, n, e) {
5518 "use strict";
5519 var r = e(18);
5520
5521 function i() {
5522 this.handlers = []
5523 }
5524 i.prototype.use = function(t, n) {
5525 return this.handlers.push({
5526 fulfilled: t,
5527 rejected: n
5528 }), this.handlers.length - 1
5529 }, i.prototype.eject = function(t) {
5530 this.handlers[t] && (this.handlers[t] = null)
5531 }, i.prototype.forEach = function(t) {
5532 r.forEach(this.handlers, (function(n) {
5533 null !== n && t(n)
5534 }))
5535 }, t.exports = i
5536 }, function(t, n, e) {
5537 "use strict";
5538 var r = e(18),
5539 i = e(318),
5540 o = e(128),
5541 s = e(92),
5542 a = e(319),
5543 c = e(320);
5544
5545 function u(t) {
5546 t.cancelToken && t.cancelToken.throwIfRequested()
5547 }
5548 t.exports = function(t) {
5549 return u(t), t.baseURL && !a(t.url) && (t.url = c(t.baseURL, t.url)), t.headers = t.headers || {}, t.data = i(t.data, t.headers, t.transformRequest), t.headers = r.merge(t.headers.common || {}, t.headers[t.method] || {}, t.headers || {}), r.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (function(n) {
5550 delete t.headers[n]
5551 })), (t.adapter || s.adapter)(t).then((function(n) {
5552 return u(t), n.data = i(n.data, n.headers, t.transformResponse), n
5553 }), (function(n) {
5554 return o(n) || (u(t), n && n.response && (n.response.data = i(n.response.data, n.response.headers, t.transformResponse))), Promise.reject(n)
5555 }))
5556 }
5557 }, function(t, n, e) {
5558 "use strict";
5559 var r = e(18);
5560 t.exports = function(t, n, e) {
5561 return r.forEach(e, (function(e) {
5562 t = e(t, n)
5563 })), t
5564 }
5565 }, function(t, n, e) {
5566 "use strict";
5567 t.exports = function(t) {
5568 return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)
5569 }
5570 }, function(t, n, e) {
5571 "use strict";
5572 t.exports = function(t, n) {
5573 return n ? t.replace(/\/+$/, "") + "/" + n.replace(/^\/+/, "") : t
5574 }
5575 }, function(t, n, e) {
5576 "use strict";
5577 var r = e(129);
5578
5579 function i(t) {
5580 if ("function" != typeof t) throw new TypeError("executor must be a function.");
5581 var n;
5582 this.promise = new Promise((function(t) {
5583 n = t
5584 }));
5585 var e = this;
5586 t((function(t) {
5587 e.reason || (e.reason = new r(t), n(e.reason))
5588 }))
5589 }
5590 i.prototype.throwIfRequested = function() {
5591 if (this.reason) throw this.reason
5592 }, i.source = function() {
5593 var t;
5594 return {
5595 token: new i((function(n) {
5596 t = n
5597 })),
5598 cancel: t
5599 }
5600 }, t.exports = i
5601 }, function(t, n, e) {
5602 "use strict";
5603 t.exports = function(t) {
5604 return function(n) {
5605 return t.apply(null, n)
5606 }
5607 }
5608 }, function(t, n, e) {
5609 "use strict";
5610 e.r(n);
5611 var r = e(50),
5612 i = e(51),
5613 o = e(52),
5614 s = e(53),
5615 a = {
5616 staging: r.StandardApiCaller,
5617 production: r.StandardApiCaller,
5618 k8staging: r.StandardApiCaller,
5619 k8production: r.StandardApiCaller
5620 },
5621 c = {
5622 staging: o.StandardQuizApi,
5623 production: o.StandardQuizApi,
5624 k8staging: o.StandardQuizApi,
5625 k8production: o.StandardQuizApi
5626 },
5627 u = {
5628 staging: s.StandardQuestApi,
5629 production: s.StandardQuestApi,
5630 k8staging: s.StandardQuestApi,
5631 k8production: s.StandardQuestApi
5632 },
5633 f = {
5634 k8staging: i.StandardWebsocketConnection,
5635 k8production: i.StandardWebsocketConnection,
5636 staging: i.StandardWebsocketConnection,
5637 production: i.StandardWebsocketConnection
5638 },
5639 l = {};
5640
5641 function h(t, n, e) {
5642 return n in t ? Object.defineProperty(t, n, {
5643 value: e,
5644 enumerable: !0,
5645 configurable: !0,
5646 writable: !0
5647 }) : t[n] = e, t
5648 }
5649 class p {
5650 constructor() {
5651 h(this, "caller", void 0), h(this, "websocket", void 0), h(this, "config", void 0), h(this, "cachedResults", void 0)
5652 }
5653 init(t) {
5654 this.cachedResults = {}, this.config = t;
5655 var n = a[t.environment];
5656 this.caller = new n(t.environment, t.token, this.config);
5657 var e = f[t.environment];
5658 this.websocket = new e(t.environment, t.momentId, t)
5659 }
5660 getMoment() {
5661 return new Promise(((t, n) => {
5662 this.caller.getMoment(this.config.momentId).then((n => {
5663 this.cachedResults.moment = n.data, l.moment = n.data, t(n.data || n)
5664 })).catch((t => {
5665 n(t)
5666 }))
5667 }))
5668 }
5669 getMomentClass() {
5670 return new Promise(((t, n) => {
5671 this.caller.getMomentClass(this.config.momentClassId).then((n => {
5672 this.cachedResults.momentClass = n.data, l.momentClass = n.data, t(n.data || n)
5673 })).catch((t => {
5674 n(t)
5675 }))
5676 }))
5677 }
5678 getMomentGlobalState() {
5679 return new Promise(((t, n) => {
5680 this.caller.getMomentGlobalState(this.config.momentId).then((n => {
5681 t(n.data)
5682 })).catch((t => {
5683 n("No user state defined for '".concat(this.config.userId, "'"))
5684 }))
5685 }))
5686 }
5687 getMomentUserState(t) {
5688 return new Promise(((n, e) => {
5689 this.caller.getMomentUserState(this.config.momentId, t || this.config.userId).then((t => {
5690 this.cachedResults.userState = t.data, n(t.data)
5691 })).catch((t => {
5692 e("No user state defined for '".concat(this.config.userId, "'"))
5693 }))
5694 }))
5695 }
5696 setMomentUserState(t) {
5697 return this.caller.setMomentUserState(this.config.momentId, this.config.userId, t)
5698 }
5699 getUserInfo() {
5700 return this.caller.getUserInfo(this.config.userId)
5701 }
5702 getUserPicture() {
5703 return this.caller.getUserPicture(this.config.userId)
5704 }
5705 getContent(t) {
5706 var n = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];
5707 return this.caller.getContent(t, n)
5708 }
5709 getContentCdnLocation(t) {
5710 return this.caller.getContentCdnLocation(t)
5711 }
5712 uploadContent(t) {
5713 return this.caller.uploadContent(t)
5714 }
5715 fetchContent(t) {
5716 var n = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];
5717 return this.caller.fetchContent(t, n)
5718 }
5719 getCdnHost() {
5720 return this.caller.getCdnHost()
5721 }
5722 getHost() {
5723 return this.caller.getHost()
5724 }
5725 wsConnect(t, n, e) {
5726 var r = !(arguments.length > 3 && void 0 !== arguments[3]) || arguments[3];
5727 return this.websocket.connect(t, n, e, r)
5728 }
5729 sendMessageTo(t, n) {
5730 return this.websocket.sendMessageTo(this.config.userId, t, n)
5731 }
5732 send(t) {
5733 return this.websocket.send(t)
5734 }
5735 close() {
5736 return this.websocket.close()
5737 }
5738 }
5739
5740 function d(t, n) {
5741 return n.reduce(((t, n, e, r) => {
5742 if ("object" == typeof t) return t[n];
5743 r.splice(1)
5744 }), t)
5745 }
5746
5747 function v(t, n, e) {
5748 return n in t ? Object.defineProperty(t, n, {
5749 value: e,
5750 enumerable: !0,
5751 configurable: !0,
5752 writable: !0
5753 }) : t[n] = e, t
5754 }
5755 var g = "sc-banner-styles";
5756 class m {
5757 constructor() {
5758 v(this, "injectedContentList", []), v(this, "config", void 0), v(this, "connection", void 0)
5759 }
5760 init(t, n) {
5761 this.config = t, this.connection = n
5762 }
5763 injectAdvertisementBanner(t) {
5764 var n, e;
5765 if (Object.keys(this.config.momentClassData).length > 0) n = d(this.config, ["momentClassData", "sponsor", "logos"]), e = d(this.config, ["momentClassData", "sponsor", "credit"]) || "The moment is provided by:";
5766 else {
5767 if (!l.momentClass) throw new Error("injectAdvertisementBanner needs a MomentClass to render the sponsors. Please call connection.getMomentClassData() before running this function. Check here https://dev-stagecast.gitbook.io/moments-sdk/docs/api-reference#getmomentclass-promise-less-than-momentclass-greater-than for more.");
5768 n = d(l, ["momentClass", "sponsor", "logos"]), e = d(l, ["momentClass", "sponsor", "credit"]) || "The moment is provided by:"
5769 }
5770 if (!n || "object" == typeof n && 0 === n.length) return !1;
5771 this.stylesAlreadyInjected() || this.prependStyles();
5772 var r = document.createElement("div");
5773 r.classList.add("scSponsorsBanner");
5774 var i = document.createElement("h3");
5775 i.classList.add("scSponsorsCredits"), i.textContent = e;
5776 var o = document.createElement("div");
5777 o.classList.add("scSponsorsList");
5778 for (var s = 0; s < n.length; s++) this.appendImageToContainer(o, n[s]);
5779 r.appendChild(i), r.appendChild(o);
5780 for (var a = 0; a < t.length && !this.injectedContentList.includes(t[a]); a++) document.querySelector(t[a]).appendChild(r.cloneNode(!0)), this.injectedContentList.push(t[a]);
5781 return !0
5782 }
5783 appendImageToContainer(t, n) {
5784 var e = document.createElement("img");
5785 e.src = this.connection.getContentCdnLocation(n), t.appendChild(e)
5786 }
5787 prependStyles() {
5788 var t = document.createElement("style");
5789 t.type = "text/css", t.id = g, t.innerHTML = "\n.scSponsorsBanner {\n\twidth: 100%;\n}\n\n.scSponsorsCredits {\n\tdisplay: block;\n\tfont-size: 16px;\n\tcolor: white;\n\ttext-align: center;\n\tpadding: 12px 0;\n margin: 0;\n}\n\n.scSponsorsList {\n\tmargin-top: 0px;\n\tpadding-bottom: 16px;\n\tdisplay: -webkit-box;\n\tdisplay: -moz-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: -webkit-flex;\n\tdisplay: flex;\n\t/*iOS 10.3 fallback*/\n\t-webkit-box-justify: space-evenly;\n\t-moz-box-justify: space-evenly;\n\t-ms-flex-justify: space-evenly;\n\t-webkit-justify-content: space-evenly;\n\tjustify-content: space-around;\n\t/* space-evenly not supported by safari 10.3 */\n\tflex-wrap: wrap;\n}\n\n.scSponsorsList img {\n\talign-self: center;\n\tmax-width: 78px;\n\tmax-height: 70px;\n\tmin-width: 0;\n\tmargin: 4px;\n}", document.getElementsByTagName("head")[0].appendChild(t)
5790 }
5791 stylesAlreadyInjected() {
5792 return !!document.getElementById(g)
5793 }
5794 }
5795 var y = e(1),
5796 w = e.n(y),
5797 b = e(11);
5798
5799 function S(t, n, e) {
5800 return n in t ? Object.defineProperty(t, n, {
5801 value: e,
5802 enumerable: !0,
5803 configurable: !0,
5804 writable: !0
5805 }) : t[n] = e, t
5806 }
5807 class x {
5808 constructor(t) {
5809 if (S(this, "analyticsApi", void 0), S(this, "httpOptions", void 0), !t) throw Error("Missing configuration, the MDK needs the configuration object to work correctly.");
5810 this.analyticsApi = b.a[t.environment].analytics, this.httpOptions = this.getBasicHttpOptions(t)
5811 }
5812 getBasicHttpOptions(t) {
5813 return {
5814 params: {
5815 moment: t.momentId,
5816 user: t.userId,
5817 momentClass: t.momentClassId,
5818 event: t.eventId
5819 }
5820 }
5821 }
5822 minifyRequestParams(t) {
5823 var n = {
5824 moment: "m",
5825 user: "u",
5826 momentClass: "cl",
5827 event: "e",
5828 action: "a",
5829 category: "cat",
5830 value: "val",
5831 label: "l",
5832 bundle: "b",
5833 resourceType: "rt"
5834 };
5835 return {
5836 params: Object.keys(t.params).reduce(((e, r) => (e[n[r]] = t.params[r], e)), {})
5837 }
5838 }
5839 track() {
5840 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "generic_action",
5841 n = arguments.length > 1 ? arguments[1] : void 0,
5842 e = "".concat(this.analyticsApi, "collect"),
5843 r = {
5844 params: {}
5845 };
5846 return r.params = Object.assign({
5847 action: t
5848 }, this.httpOptions.params, n), w.a.get(e, this.minifyRequestParams(r))
5849 }
5850 }
5851
5852 function E(t, n, e) {
5853 return n in t ? Object.defineProperty(t, n, {
5854 value: e,
5855 enumerable: !0,
5856 configurable: !0,
5857 writable: !0
5858 }) : t[n] = e, t
5859 }
5860 class C {
5861 constructor() {
5862 E(this, "userUpdates", void 0), E(this, "momentChannel", void 0), E(this, "config", void 0), E(this, "channels", void 0)
5863 }
5864 init(t) {
5865 this.channels = {
5866 activeChannels: [null, null],
5867 attachedListener: -1
5868 }, this.config = t;
5869 var n = f[t.environment];
5870 this.userUpdates = new n(t.environment, t.momentId, t, "user-updates");
5871 var e = t.momentId + "--private";
5872 this.momentChannel = new n(t.environment, e, t, "moment-private")
5873 }
5874 joinMomentChannel(t, n, e) {
5875 var r = !(arguments.length > 3 && void 0 !== arguments[3]) || arguments[3],
5876 i = this.momentChannel.connect(t, n, e, r);
5877 return this.handleActivate(0, this.momentChannel), i ? this.momentChannel : null
5878 }
5879 leaveMomentChannel() {
5880 return this.handleLeave(0), this.momentChannel.close()
5881 }
5882 sendMessageTo(t, n) {
5883 return this.momentChannel.sendMessageTo(this.config.userId, t, n)
5884 }
5885 broadcastMessage(t) {
5886 return this.momentChannel.send(t)
5887 }
5888 getUserUpdates(t, n, e) {
5889 var r = !(arguments.length > 3 && void 0 !== arguments[3]) || arguments[3],
5890 i = this.userUpdates.connect(t, n, e, r);
5891 return this.handleActivate(1, this.userUpdates), i ? this.userUpdates : null
5892 }
5893 stopUserUpdates() {
5894 return this.handleLeave(1), this.userUpdates.close()
5895 }
5896 handleActivate(t, n) {
5897 this.channels.activeChannels[t] || (this.channels.activeChannels[t] = n)
5898 }
5899 handleLeave(t) {
5900 if (t === this.channels.attachedListener && (this.channels.attachedListener = -1), this.channels.activeChannels[t] = null, -1 === this.channels.attachedListener)
5901 for (var n = 0; n < this.channels.activeChannels.length; n++)
5902 if (null !== this.channels.activeChannels[n]) {
5903 this.channels.attachedListener = n;
5904 break
5905 }
5906 }
5907 }
5908
5909 function O(t, n, e) {
5910 return n in t ? Object.defineProperty(t, n, {
5911 value: e,
5912 enumerable: !0,
5913 configurable: !0,
5914 writable: !0
5915 }) : t[n] = e, t
5916 }
5917 class A {
5918 constructor(t) {
5919 O(this, "config", void 0), O(this, "caller", void 0), O(this, "currentQuestionData", void 0), O(this, "quizId", void 0), this.config = t
5920 }
5921 setContext(t) {
5922 if (this.caller) console.warn("The quiz has already been initialized. In case you are attempting to change the quiz, the operation is not allowed.");
5923 else {
5924 this.quizId = t, this.config.quizId = this.quizId;
5925 var n = c[this.config.environment];
5926 this.caller = new n(this.config.environment, this.config.token, this.config), this.resetQuestionData()
5927 }
5928 }
5929 getQuiz() {
5930 return this.checkInit(), this.caller.getQuiz()
5931 }
5932 getRuntimeInfo() {
5933 return this.checkInit(), this.caller.getRuntimeInfo()
5934 }
5935 getTopScores() {
5936 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0,
5937 n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 10,
5938 e = arguments.length > 2 ? arguments[2] : void 0;
5939 return this.checkInit(), this.caller.getTopScores(t, n, e)
5940 }
5941 getUserScores() {
5942 return this.checkInit(), this.caller.getUserScores()
5943 }
5944 getUserProfile() {
5945 return this.checkInit(), this.caller.getUserProfile()
5946 }
5947 setUserProfile(t) {
5948 return this.checkInit(), this.caller.setUserProfile(t)
5949 }
5950 getQuestion(t) {
5951 return this.checkInit(), this.currentQuestionData && this.currentQuestionData.index === t ? Promise.reject("You have already fetched this question") : t < 1 ? Promise.reject("The index is not valid. It equal or more than 1.") : this.caller.getQuestion(t).then((n => {
5952 if (this.currentQuestionData.hash === n.hash) throw new Error("You have already fetched this question");
5953 return this.currentQuestionData = {
5954 hash: n.hash,
5955 index: t,
5956 answered: !1
5957 }, n
5958 }))
5959 }
5960 answerQuestion(t, n, e) {
5961 return this.checkInit(), t ? t !== this.currentQuestionData.hash ? Promise.reject("The parameters are not correct. The hash should correspond to the current question") : this.currentQuestionData.answered ? Promise.reject("You have already answered to this question") : this.caller.answerQuestion(this.currentQuestionData.index, t, n, e).then((t => (this.currentQuestionData.answered = !0, t))) : Promise.reject("The parameters are not correct. The hash should correspond to the question")
5962 }
5963 playNewRound(t) {
5964 return this.checkInit(), this.resetQuestionData(), this.caller.playNewRound(t)
5965 }
5966 checkInit() {
5967 if (!this.caller) throw new Error("The quiz has not been inizialised. You must call init() and provide the quiz id that you find in the MomentClass object.");
5968 return !0
5969 }
5970 resetQuestionData() {
5971 this.currentQuestionData = {
5972 index: -1,
5973 hash: "",
5974 answered: !1
5975 }
5976 }
5977 }
5978
5979 function I(t, n, e) {
5980 return n in t ? Object.defineProperty(t, n, {
5981 value: e,
5982 enumerable: !0,
5983 configurable: !0,
5984 writable: !0
5985 }) : t[n] = e, t
5986 }
5987 class _ {
5988 constructor(t) {
5989 I(this, "config", void 0), I(this, "caller", void 0), I(this, "currentChallengeData", void 0), I(this, "questId", void 0), this.config = t
5990 }
5991 setContext(t) {
5992 if (this.caller) console.warn("The Quest has already been initialized.\nIn case you are attempting to change the Quest, the operation is not allowed.");
5993 else {
5994 this.questId = t, this.config.questId = this.questId;
5995 var n = u[this.config.environment];
5996 this.caller = new n(this.config.environment, this.config.token, this.config), this.resetChallengeData()
5997 }
5998 }
5999 getQuest() {
6000 return this.checkInit(), this.caller.getQuest()
6001 }
6002 getRuntimeInfo() {
6003 return this.checkInit(), this.caller.getRuntimeInfo()
6004 }
6005 getTopScores() {
6006 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0,
6007 n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 10,
6008 e = arguments.length > 2 ? arguments[2] : void 0;
6009 return this.checkInit(), this.caller.getTopScores(t, n, e)
6010 }
6011 getUserScores() {
6012 return this.checkInit(), this.caller.getUserScores()
6013 }
6014 getUserProfile() {
6015 return this.checkInit(), this.caller.getUserProfile()
6016 }
6017 setUserProfile(t) {
6018 return this.checkInit(), this.caller.setUserProfile(t)
6019 }
6020 getChallenge(t) {
6021 return this.checkInit(), this.currentChallengeData && this.currentChallengeData.index === t ? Promise.reject("You have already fetched this question") : t < 1 ? Promise.reject("The index is not valid. It equal or more than 1.") : this.caller.getChallenge(t).then((n => (this.currentChallengeData = {
6022 hash: n.hash,
6023 index: t,
6024 answered: !1
6025 }, n)))
6026 }
6027 respondToChallenge(t, n, e) {
6028 return this.checkInit(), t ? t !== this.currentChallengeData.hash ? Promise.reject("The parameters are not correct. The hash should correspond to the current question") : (Array.isArray(n) || (n = [n]), this.caller.respondToChallenge(this.currentChallengeData.index, t, n, e).then((t => (this.currentChallengeData.answered = !0, t)))) : Promise.reject("The parameters are not correct. The hash should correspond to the question")
6029 }
6030 playNewRound(t) {
6031 return this.checkInit(), this.resetChallengeData(), this.caller.playNewRound(t)
6032 }
6033 checkInit() {
6034 if (!this.caller) throw new Error("The Quest has not been inizialised. You must call init() and provide the Quest id that you find in the MomentClass object.");
6035 return !0
6036 }
6037 resetChallengeData() {
6038 this.currentChallengeData = {
6039 index: -1,
6040 hash: "",
6041 answered: !1
6042 }
6043 }
6044 }
6045
6046 function P(t, n, e) {
6047 return n in t ? Object.defineProperty(t, n, {
6048 value: e,
6049 enumerable: !0,
6050 configurable: !0,
6051 writable: !0
6052 }) : t[n] = e, t
6053 }
6054 class j {
6055 constructor(t) {
6056 if (P(this, "momentId", void 0), P(this, "apiEndpoint", void 0), P(this, "cdnEndpoint", void 0), P(this, "httpOptions", void 0), !t) throw new Error("Missing configuration, the MDK needs the configuration object to work correctly.");
6057 this.apiEndpoint = b.a[t.environment].api, this.cdnEndpoint = b.a[t.environment].cdn, this.momentId = t.momentId, this.httpOptions = {
6058 headers: {
6059 "X-Token": t.token
6060 }
6061 }
6062 }
6063 getPrize(t) {
6064 var n = "".concat(this.cdnEndpoint, "/api/prizes/").concat(t);
6065 return w.a.get(n, this.httpOptions).then((t => t.data))
6066 }
6067 claimPrize(t) {
6068 var n = "".concat(this.apiEndpoint, "prizes/").concat(t, "/claim/").concat(this.momentId);
6069 return w.a.get(n, this.httpOptions).then((t => t.data))
6070 }
6071 }
6072 var M = {
6073 environment: "preview",
6074 userId: "stagecast@tester.com",
6075 token: "notoken",
6076 momentClassData: {},
6077 momentClassId: "moment-class-preview",
6078 momentId: "moment-preview",
6079 eventId: "event-preview",
6080 coordinates: ["0", "0"],
6081 isGuest: !1,
6082 isActive: !0,
6083 isMomentActive: !0
6084 };
6085
6086 function T(t, n, e) {
6087 return n in t ? Object.defineProperty(t, n, {
6088 value: e,
6089 enumerable: !0,
6090 configurable: !0,
6091 writable: !0
6092 }) : t[n] = e, t
6093 }
6094 e.d(n, "default", (function() {
6095 return k
6096 }));
6097 class k {
6098 constructor(t) {
6099 T(this, "connection", void 0), T(this, "ws", void 0), T(this, "quiz", void 0), T(this, "quest", void 0), T(this, "bannerInjector", void 0), T(this, "analytics", void 0), T(this, "prize", void 0), T(this, "config", void 0), T(this, "configCallback", void 0), T(this, "initialized", void 0), this.initialized = !1, this.registerMessageListener(this.readPostMessage), this.createPlugins(), t && (this.config = k.checkAndCleanConfig(t), this.initAppWithConfig())
6100 }
6101 registerMessageListener(t) {
6102 window.addEventListener("message", t.bind(this), !1), document.addEventListener("message", t.bind(this), !1)
6103 }
6104 createPlugins() {
6105 this.connection = new p, this.ws = new C, this.bannerInjector = new m, this.quiz = null, this.quest = null, this.prize = null
6106 }
6107 static checkAndCleanConfig(t) {
6108 if (!t) return M;
6109 var n = Object.assign({}, t);
6110 return void 0 !== n.environment && "string" == typeof n.environment || (n.environment = M.environment), void 0 !== n.userId && "string" == typeof n.userId || (n.userId = M.userId), void 0 !== n.token && "string" == typeof n.token || (n.token = M.token), void 0 !== n.momentId && "string" == typeof n.momentId || (n.momentId = M.momentId), void 0 !== n.momentClassId && "string" == typeof n.momentClassId || (n.momentClassId = M.momentClassId), void 0 !== n.eventId && "string" == typeof n.eventId || (n.eventId = M.eventId), void 0 !== n.coordinates && Array.isArray(n.coordinates) || (n.coordinates = M.coordinates), void 0 !== n.isActive && "boolean" == typeof n.isActive || (n.isActive = M.isActive), void 0 !== n.isGuest && "boolean" == typeof n.isGuest || (n.isGuest = M.isGuest), "object" != typeof n.momentClassData && (n.momentClassData = M.momentClassData), n
6111 }
6112 onConfigReceived(t) {
6113 this.configCallback = t
6114 }
6115 readPostMessage(t) {
6116 if (!this.initialized) {
6117 var n;
6118 if ("string" == typeof t.data) try {
6119 n = JSON.parse(t.data)
6120 } catch (t) {
6121 n = {}
6122 } else n = t.data;
6123 "STAGECAST_SDK" === n.messageSource && (this.config = k.checkAndCleanConfig(n.config), this.initAppWithConfig(), console.log("Setup finished, calling moment."), this.configCallback())
6124 }
6125 }
6126 initAppWithConfig() {
6127 this.initialized = !0, !0 === this.config.disableLogs && this.disableLogs();
6128 try {
6129 this.connection.init(this.config)
6130 } catch (t) {
6131 console.error("Failed to initialize connection.", t), this.connection = null
6132 }
6133 try {
6134 this.ws.init(this.config)
6135 } catch (t) {
6136 console.error("Failed to initialize ws.", t), this.ws = null
6137 }
6138 try {
6139 this.bannerInjector.init(this.config, this.connection)
6140 } catch (t) {
6141 console.error("Failed to initialize banner injector.", t), this.bannerInjector = null
6142 }
6143 try {
6144 this.analytics = new x(this.config)
6145 } catch (t) {
6146 console.error("Failed to initialize the analytics client."), this.analytics = null
6147 }
6148 try {
6149 this.prize = new j(this.config)
6150 } catch (t) {
6151 console.error("Failed to initialize quiz handler.", t), this.quiz = null
6152 }
6153 try {
6154 this.quiz = new A(this.config)
6155 } catch (t) {
6156 console.error("Failed to initialize quiz handler.", t), this.quiz = null
6157 }
6158 try {
6159 this.quest = new _(this.config)
6160 } catch (t) {
6161 console.error("Failed to initialize quest handler.", t), this.quest = null
6162 }
6163 this.config.momentClassData.customStyle && this.applyTheme(this.config.momentClassData.customStyle)
6164 }
6165 disableLogs() {
6166 console.assert = function() {}, console.debug = function() {}, console.log = function() {}, console.warn = function() {}, console.error = function() {}, console.group = function() {}, console.groupEnd = function() {}, console.groupCollapsed = function() {}, console.time = function() {}, console.timeEnd = function() {}, console.table = function() {}, console.info = function() {}, console.count = function() {}, console.countReset = function() {}
6167 }
6168 applyTheme(t) {
6169 var n = document.createElement("style");
6170 n.type = "text/css", n.id = "custom-theme", n.innerHTML = t, document.getElementsByTagName("head")[0].appendChild(n)
6171 }
6172 getEventId() {
6173 return this.config.eventId || ""
6174 }
6175 getUserId() {
6176 return this.config.userId || ""
6177 }
6178 getMomentId() {
6179 return this.config.momentId || ""
6180 }
6181 getMomentClassId() {
6182 return this.config.momentClassId || ""
6183 }
6184 isActive() {
6185 return this.config.isActive || !1
6186 }
6187 isGuest() {
6188 return this.config.isGuest || !1
6189 }
6190 getCoordinates() {
6191 return this.config.coordinates || []
6192 }
6193 }
6194 }])
6195}));