· 6 years ago · Apr 05, 2020, 01:42 PM
1// ==UserScript==
2// @name FUT Enhancer
3// @version undefined
4// @description Enhances the FIFA Ultimate Team 20 Web app. Includes Futbin integration and other useful tools
5// @license MIT
6// @author Tim Klingeleers
7// @match https://www.easports.com/fifa/ultimate-team/web-app/*
8// @match https://www.easports.com/*/fifa/ultimate-team/web-app/*
9// @namespace https://github.com/Mardaneus86
10// @supportURL https://github.com/Mardaneus86/futwebapp-tampermonkey/issues
11// @grant GM_notification
12// @grant GM_xmlhttpRequest
13// @grant GM_getValue
14// @grant GM_setValue
15// @grant window.focus
16// @connect ea.com
17// @connect futbin.com
18// @connect google-analytics.com
19// @updateURL https://github.com/Mardaneus86/futwebapp-tampermonkey-web/raw/master/downloads/FUT_Enhancer.meta.js
20// @downloadURL https://github.com/Mardaneus86/futwebapp-tampermonkey-web/raw/master/downloads/FUT_Enhancer.user.js
21// ==/UserScript==
22
23/******/ (function(modules) { // webpackBootstrap
24/******/ // The module cache
25/******/ var installedModules = {};
26/******/
27/******/ // The require function
28/******/ function __webpack_require__(moduleId) {
29/******/
30/******/ // Check if module is in cache
31/******/ if(installedModules[moduleId]) {
32/******/ return installedModules[moduleId].exports;
33/******/ }
34/******/ // Create a new module (and put it into the cache)
35/******/ var module = installedModules[moduleId] = {
36/******/ i: moduleId,
37/******/ l: false,
38/******/ exports: {}
39/******/ };
40/******/
41/******/ // Execute the module function
42/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
43/******/
44/******/ // Flag the module as loaded
45/******/ module.l = true;
46/******/
47/******/ // Return the exports of the module
48/******/ return module.exports;
49/******/ }
50/******/
51/******/
52/******/ // expose the modules object (__webpack_modules__)
53/******/ __webpack_require__.m = modules;
54/******/
55/******/ // expose the module cache
56/******/ __webpack_require__.c = installedModules;
57/******/
58/******/ // define getter function for harmony exports
59/******/ __webpack_require__.d = function(exports, name, getter) {
60/******/ if(!__webpack_require__.o(exports, name)) {
61/******/ Object.defineProperty(exports, name, {
62/******/ configurable: false,
63/******/ enumerable: true,
64/******/ get: getter
65/******/ });
66/******/ }
67/******/ };
68/******/
69/******/ // getDefaultExport function for compatibility with non-harmony modules
70/******/ __webpack_require__.n = function(module) {
71/******/ var getter = module && module.__esModule ?
72/******/ function getDefault() { return module['default']; } :
73/******/ function getModuleExports() { return module; };
74/******/ __webpack_require__.d(getter, 'a', getter);
75/******/ return getter;
76/******/ };
77/******/
78/******/ // Object.prototype.hasOwnProperty.call
79/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
80/******/
81/******/ // __webpack_public_path__
82/******/ __webpack_require__.p = "";
83/******/
84/******/ // Load entry module and return exports
85/******/ return __webpack_require__(__webpack_require__.s = 137);
86/******/ })
87/************************************************************************/
88/******/ ([
89/* 0 */
90/***/ (function(module, exports, __webpack_require__) {
91
92var global = __webpack_require__(2);
93var core = __webpack_require__(22);
94var hide = __webpack_require__(12);
95var redefine = __webpack_require__(13);
96var ctx = __webpack_require__(19);
97var PROTOTYPE = 'prototype';
98
99var $export = function (type, name, source) {
100 var IS_FORCED = type & $export.F;
101 var IS_GLOBAL = type & $export.G;
102 var IS_STATIC = type & $export.S;
103 var IS_PROTO = type & $export.P;
104 var IS_BIND = type & $export.B;
105 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
106 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
107 var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
108 var key, own, out, exp;
109 if (IS_GLOBAL) source = name;
110 for (key in source) {
111 // contains in native
112 own = !IS_FORCED && target && target[key] !== undefined;
113 // export native or passed
114 out = (own ? target : source)[key];
115 // bind timers to global for call from export context
116 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
117 // extend global
118 if (target) redefine(target, key, out, type & $export.U);
119 // export
120 if (exports[key] != out) hide(exports, key, exp);
121 if (IS_PROTO && expProto[key] != out) expProto[key] = out;
122 }
123};
124global.core = core;
125// type bitmap
126$export.F = 1; // forced
127$export.G = 2; // global
128$export.S = 4; // static
129$export.P = 8; // proto
130$export.B = 16; // bind
131$export.W = 32; // wrap
132$export.U = 64; // safe
133$export.R = 128; // real proto method for `library`
134module.exports = $export;
135
136
137/***/ }),
138/* 1 */
139/***/ (function(module, exports, __webpack_require__) {
140
141var isObject = __webpack_require__(4);
142module.exports = function (it) {
143 if (!isObject(it)) throw TypeError(it + ' is not an object!');
144 return it;
145};
146
147
148/***/ }),
149/* 2 */
150/***/ (function(module, exports) {
151
152// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
153var global = module.exports = typeof window != 'undefined' && window.Math == Math
154 ? window : typeof self != 'undefined' && self.Math == Math ? self
155 // eslint-disable-next-line no-new-func
156 : Function('return this')();
157if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
158
159
160/***/ }),
161/* 3 */
162/***/ (function(module, exports) {
163
164module.exports = function (exec) {
165 try {
166 return !!exec();
167 } catch (e) {
168 return true;
169 }
170};
171
172
173/***/ }),
174/* 4 */
175/***/ (function(module, exports) {
176
177module.exports = function (it) {
178 return typeof it === 'object' ? it !== null : typeof it === 'function';
179};
180
181
182/***/ }),
183/* 5 */
184/***/ (function(module, exports, __webpack_require__) {
185
186var store = __webpack_require__(52)('wks');
187var uid = __webpack_require__(33);
188var Symbol = __webpack_require__(2).Symbol;
189var USE_SYMBOL = typeof Symbol == 'function';
190
191var $exports = module.exports = function (name) {
192 return store[name] || (store[name] =
193 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
194};
195
196$exports.store = store;
197
198
199/***/ }),
200/* 6 */
201/***/ (function(module, exports, __webpack_require__) {
202
203// Thank's IE8 for his funny defineProperty
204module.exports = !__webpack_require__(3)(function () {
205 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
206});
207
208
209/***/ }),
210/* 7 */
211/***/ (function(module, exports, __webpack_require__) {
212
213var anObject = __webpack_require__(1);
214var IE8_DOM_DEFINE = __webpack_require__(96);
215var toPrimitive = __webpack_require__(23);
216var dP = Object.defineProperty;
217
218exports.f = __webpack_require__(6) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
219 anObject(O);
220 P = toPrimitive(P, true);
221 anObject(Attributes);
222 if (IE8_DOM_DEFINE) try {
223 return dP(O, P, Attributes);
224 } catch (e) { /* empty */ }
225 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
226 if ('value' in Attributes) O[P] = Attributes.value;
227 return O;
228};
229
230
231/***/ }),
232/* 8 */
233/***/ (function(module, exports, __webpack_require__) {
234
235// 7.1.15 ToLength
236var toInteger = __webpack_require__(25);
237var min = Math.min;
238module.exports = function (it) {
239 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
240};
241
242
243/***/ }),
244/* 9 */
245/***/ (function(module, exports, __webpack_require__) {
246
247// 7.1.13 ToObject(argument)
248var defined = __webpack_require__(24);
249module.exports = function (it) {
250 return Object(defined(it));
251};
252
253
254/***/ }),
255/* 10 */
256/***/ (function(module, exports) {
257
258module.exports = function (it) {
259 if (typeof it != 'function') throw TypeError(it + ' is not a function!');
260 return it;
261};
262
263
264/***/ }),
265/* 11 */
266/***/ (function(module, exports) {
267
268var hasOwnProperty = {}.hasOwnProperty;
269module.exports = function (it, key) {
270 return hasOwnProperty.call(it, key);
271};
272
273
274/***/ }),
275/* 12 */
276/***/ (function(module, exports, __webpack_require__) {
277
278var dP = __webpack_require__(7);
279var createDesc = __webpack_require__(32);
280module.exports = __webpack_require__(6) ? function (object, key, value) {
281 return dP.f(object, key, createDesc(1, value));
282} : function (object, key, value) {
283 object[key] = value;
284 return object;
285};
286
287
288/***/ }),
289/* 13 */
290/***/ (function(module, exports, __webpack_require__) {
291
292var global = __webpack_require__(2);
293var hide = __webpack_require__(12);
294var has = __webpack_require__(11);
295var SRC = __webpack_require__(33)('src');
296var TO_STRING = 'toString';
297var $toString = Function[TO_STRING];
298var TPL = ('' + $toString).split(TO_STRING);
299
300__webpack_require__(22).inspectSource = function (it) {
301 return $toString.call(it);
302};
303
304(module.exports = function (O, key, val, safe) {
305 var isFunction = typeof val == 'function';
306 if (isFunction) has(val, 'name') || hide(val, 'name', key);
307 if (O[key] === val) return;
308 if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
309 if (O === global) {
310 O[key] = val;
311 } else if (!safe) {
312 delete O[key];
313 hide(O, key, val);
314 } else if (O[key]) {
315 O[key] = val;
316 } else {
317 hide(O, key, val);
318 }
319// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
320})(Function.prototype, TO_STRING, function toString() {
321 return typeof this == 'function' && this[SRC] || $toString.call(this);
322});
323
324
325/***/ }),
326/* 14 */
327/***/ (function(module, exports, __webpack_require__) {
328
329var $export = __webpack_require__(0);
330var fails = __webpack_require__(3);
331var defined = __webpack_require__(24);
332var quot = /"/g;
333// B.2.3.2.1 CreateHTML(string, tag, attribute, value)
334var createHTML = function (string, tag, attribute, value) {
335 var S = String(defined(string));
336 var p1 = '<' + tag;
337 if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"';
338 return p1 + '>' + S + '</' + tag + '>';
339};
340module.exports = function (NAME, exec) {
341 var O = {};
342 O[NAME] = exec(createHTML);
343 $export($export.P + $export.F * fails(function () {
344 var test = ''[NAME]('"');
345 return test !== test.toLowerCase() || test.split('"').length > 3;
346 }), 'String', O);
347};
348
349
350/***/ }),
351/* 15 */
352/***/ (function(module, exports, __webpack_require__) {
353
354// to indexed object, toObject with fallback for non-array-like ES3 strings
355var IObject = __webpack_require__(49);
356var defined = __webpack_require__(24);
357module.exports = function (it) {
358 return IObject(defined(it));
359};
360
361
362/***/ }),
363/* 16 */
364/***/ (function(module, exports, __webpack_require__) {
365
366var pIE = __webpack_require__(50);
367var createDesc = __webpack_require__(32);
368var toIObject = __webpack_require__(15);
369var toPrimitive = __webpack_require__(23);
370var has = __webpack_require__(11);
371var IE8_DOM_DEFINE = __webpack_require__(96);
372var gOPD = Object.getOwnPropertyDescriptor;
373
374exports.f = __webpack_require__(6) ? gOPD : function getOwnPropertyDescriptor(O, P) {
375 O = toIObject(O);
376 P = toPrimitive(P, true);
377 if (IE8_DOM_DEFINE) try {
378 return gOPD(O, P);
379 } catch (e) { /* empty */ }
380 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
381};
382
383
384/***/ }),
385/* 17 */
386/***/ (function(module, exports, __webpack_require__) {
387
388// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
389var has = __webpack_require__(11);
390var toObject = __webpack_require__(9);
391var IE_PROTO = __webpack_require__(70)('IE_PROTO');
392var ObjectProto = Object.prototype;
393
394module.exports = Object.getPrototypeOf || function (O) {
395 O = toObject(O);
396 if (has(O, IE_PROTO)) return O[IE_PROTO];
397 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
398 return O.constructor.prototype;
399 } return O instanceof Object ? ObjectProto : null;
400};
401
402
403/***/ }),
404/* 18 */
405/***/ (function(module, exports, __webpack_require__) {
406
407"use strict";
408
409
410Object.defineProperty(exports, "__esModule", {
411 value: true
412});
413exports.analytics = exports.browser = exports.SettingsEntry = exports.Settings = exports.Queue = exports.Database = exports.BaseScript = undefined;
414
415var _settings = __webpack_require__(130);
416
417var _settingsEntry = __webpack_require__(352);
418
419var _baseScript = __webpack_require__(353);
420
421var _db = __webpack_require__(66);
422
423var _queue = __webpack_require__(354);
424
425var _browser = __webpack_require__(360);
426
427var _browser2 = _interopRequireDefault(_browser);
428
429var _analytics = __webpack_require__(131);
430
431var _analytics2 = _interopRequireDefault(_analytics);
432
433function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
434
435exports.BaseScript = _baseScript.BaseScript;
436exports.Database = _db.Database;
437exports.Queue = _queue.Queue;
438exports.Settings = _settings.Settings;
439exports.SettingsEntry = _settingsEntry.SettingsEntry;
440exports.browser = _browser2.default;
441exports.analytics = _analytics2.default;
442
443/***/ }),
444/* 19 */
445/***/ (function(module, exports, __webpack_require__) {
446
447// optional / simple context binding
448var aFunction = __webpack_require__(10);
449module.exports = function (fn, that, length) {
450 aFunction(fn);
451 if (that === undefined) return fn;
452 switch (length) {
453 case 1: return function (a) {
454 return fn.call(that, a);
455 };
456 case 2: return function (a, b) {
457 return fn.call(that, a, b);
458 };
459 case 3: return function (a, b, c) {
460 return fn.call(that, a, b, c);
461 };
462 }
463 return function (/* ...args */) {
464 return fn.apply(that, arguments);
465 };
466};
467
468
469/***/ }),
470/* 20 */
471/***/ (function(module, exports) {
472
473var toString = {}.toString;
474
475module.exports = function (it) {
476 return toString.call(it).slice(8, -1);
477};
478
479
480/***/ }),
481/* 21 */
482/***/ (function(module, exports, __webpack_require__) {
483
484"use strict";
485
486var fails = __webpack_require__(3);
487
488module.exports = function (method, arg) {
489 return !!method && fails(function () {
490 // eslint-disable-next-line no-useless-call
491 arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);
492 });
493};
494
495
496/***/ }),
497/* 22 */
498/***/ (function(module, exports) {
499
500var core = module.exports = { version: '2.5.1' };
501if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
502
503
504/***/ }),
505/* 23 */
506/***/ (function(module, exports, __webpack_require__) {
507
508// 7.1.1 ToPrimitive(input [, PreferredType])
509var isObject = __webpack_require__(4);
510// instead of the ES6 spec version, we didn't implement @@toPrimitive case
511// and the second argument - flag - preferred type is a string
512module.exports = function (it, S) {
513 if (!isObject(it)) return it;
514 var fn, val;
515 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
516 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
517 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
518 throw TypeError("Can't convert object to primitive value");
519};
520
521
522/***/ }),
523/* 24 */
524/***/ (function(module, exports) {
525
526// 7.2.1 RequireObjectCoercible(argument)
527module.exports = function (it) {
528 if (it == undefined) throw TypeError("Can't call method on " + it);
529 return it;
530};
531
532
533/***/ }),
534/* 25 */
535/***/ (function(module, exports) {
536
537// 7.1.4 ToInteger
538var ceil = Math.ceil;
539var floor = Math.floor;
540module.exports = function (it) {
541 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
542};
543
544
545/***/ }),
546/* 26 */
547/***/ (function(module, exports, __webpack_require__) {
548
549// most Object methods by ES6 should accept primitives
550var $export = __webpack_require__(0);
551var core = __webpack_require__(22);
552var fails = __webpack_require__(3);
553module.exports = function (KEY, exec) {
554 var fn = (core.Object || {})[KEY] || Object[KEY];
555 var exp = {};
556 exp[KEY] = exec(fn);
557 $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
558};
559
560
561/***/ }),
562/* 27 */
563/***/ (function(module, exports, __webpack_require__) {
564
565// 0 -> Array#forEach
566// 1 -> Array#map
567// 2 -> Array#filter
568// 3 -> Array#some
569// 4 -> Array#every
570// 5 -> Array#find
571// 6 -> Array#findIndex
572var ctx = __webpack_require__(19);
573var IObject = __webpack_require__(49);
574var toObject = __webpack_require__(9);
575var toLength = __webpack_require__(8);
576var asc = __webpack_require__(87);
577module.exports = function (TYPE, $create) {
578 var IS_MAP = TYPE == 1;
579 var IS_FILTER = TYPE == 2;
580 var IS_SOME = TYPE == 3;
581 var IS_EVERY = TYPE == 4;
582 var IS_FIND_INDEX = TYPE == 6;
583 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
584 var create = $create || asc;
585 return function ($this, callbackfn, that) {
586 var O = toObject($this);
587 var self = IObject(O);
588 var f = ctx(callbackfn, that, 3);
589 var length = toLength(self.length);
590 var index = 0;
591 var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
592 var val, res;
593 for (;length > index; index++) if (NO_HOLES || index in self) {
594 val = self[index];
595 res = f(val, index, O);
596 if (TYPE) {
597 if (IS_MAP) result[index] = res; // map
598 else if (res) switch (TYPE) {
599 case 3: return true; // some
600 case 5: return val; // find
601 case 6: return index; // findIndex
602 case 2: result.push(val); // filter
603 } else if (IS_EVERY) return false; // every
604 }
605 }
606 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
607 };
608};
609
610
611/***/ }),
612/* 28 */
613/***/ (function(module, exports, __webpack_require__) {
614
615"use strict";
616
617if (__webpack_require__(6)) {
618 var LIBRARY = __webpack_require__(34);
619 var global = __webpack_require__(2);
620 var fails = __webpack_require__(3);
621 var $export = __webpack_require__(0);
622 var $typed = __webpack_require__(62);
623 var $buffer = __webpack_require__(93);
624 var ctx = __webpack_require__(19);
625 var anInstance = __webpack_require__(40);
626 var propertyDesc = __webpack_require__(32);
627 var hide = __webpack_require__(12);
628 var redefineAll = __webpack_require__(42);
629 var toInteger = __webpack_require__(25);
630 var toLength = __webpack_require__(8);
631 var toIndex = __webpack_require__(122);
632 var toAbsoluteIndex = __webpack_require__(36);
633 var toPrimitive = __webpack_require__(23);
634 var has = __webpack_require__(11);
635 var classof = __webpack_require__(51);
636 var isObject = __webpack_require__(4);
637 var toObject = __webpack_require__(9);
638 var isArrayIter = __webpack_require__(84);
639 var create = __webpack_require__(37);
640 var getPrototypeOf = __webpack_require__(17);
641 var gOPN = __webpack_require__(38).f;
642 var getIterFn = __webpack_require__(86);
643 var uid = __webpack_require__(33);
644 var wks = __webpack_require__(5);
645 var createArrayMethod = __webpack_require__(27);
646 var createArrayIncludes = __webpack_require__(53);
647 var speciesConstructor = __webpack_require__(60);
648 var ArrayIterators = __webpack_require__(89);
649 var Iterators = __webpack_require__(45);
650 var $iterDetect = __webpack_require__(57);
651 var setSpecies = __webpack_require__(39);
652 var arrayFill = __webpack_require__(88);
653 var arrayCopyWithin = __webpack_require__(112);
654 var $DP = __webpack_require__(7);
655 var $GOPD = __webpack_require__(16);
656 var dP = $DP.f;
657 var gOPD = $GOPD.f;
658 var RangeError = global.RangeError;
659 var TypeError = global.TypeError;
660 var Uint8Array = global.Uint8Array;
661 var ARRAY_BUFFER = 'ArrayBuffer';
662 var SHARED_BUFFER = 'Shared' + ARRAY_BUFFER;
663 var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';
664 var PROTOTYPE = 'prototype';
665 var ArrayProto = Array[PROTOTYPE];
666 var $ArrayBuffer = $buffer.ArrayBuffer;
667 var $DataView = $buffer.DataView;
668 var arrayForEach = createArrayMethod(0);
669 var arrayFilter = createArrayMethod(2);
670 var arraySome = createArrayMethod(3);
671 var arrayEvery = createArrayMethod(4);
672 var arrayFind = createArrayMethod(5);
673 var arrayFindIndex = createArrayMethod(6);
674 var arrayIncludes = createArrayIncludes(true);
675 var arrayIndexOf = createArrayIncludes(false);
676 var arrayValues = ArrayIterators.values;
677 var arrayKeys = ArrayIterators.keys;
678 var arrayEntries = ArrayIterators.entries;
679 var arrayLastIndexOf = ArrayProto.lastIndexOf;
680 var arrayReduce = ArrayProto.reduce;
681 var arrayReduceRight = ArrayProto.reduceRight;
682 var arrayJoin = ArrayProto.join;
683 var arraySort = ArrayProto.sort;
684 var arraySlice = ArrayProto.slice;
685 var arrayToString = ArrayProto.toString;
686 var arrayToLocaleString = ArrayProto.toLocaleString;
687 var ITERATOR = wks('iterator');
688 var TAG = wks('toStringTag');
689 var TYPED_CONSTRUCTOR = uid('typed_constructor');
690 var DEF_CONSTRUCTOR = uid('def_constructor');
691 var ALL_CONSTRUCTORS = $typed.CONSTR;
692 var TYPED_ARRAY = $typed.TYPED;
693 var VIEW = $typed.VIEW;
694 var WRONG_LENGTH = 'Wrong length!';
695
696 var $map = createArrayMethod(1, function (O, length) {
697 return allocate(speciesConstructor(O, O[DEF_CONSTRUCTOR]), length);
698 });
699
700 var LITTLE_ENDIAN = fails(function () {
701 // eslint-disable-next-line no-undef
702 return new Uint8Array(new Uint16Array([1]).buffer)[0] === 1;
703 });
704
705 var FORCED_SET = !!Uint8Array && !!Uint8Array[PROTOTYPE].set && fails(function () {
706 new Uint8Array(1).set({});
707 });
708
709 var toOffset = function (it, BYTES) {
710 var offset = toInteger(it);
711 if (offset < 0 || offset % BYTES) throw RangeError('Wrong offset!');
712 return offset;
713 };
714
715 var validate = function (it) {
716 if (isObject(it) && TYPED_ARRAY in it) return it;
717 throw TypeError(it + ' is not a typed array!');
718 };
719
720 var allocate = function (C, length) {
721 if (!(isObject(C) && TYPED_CONSTRUCTOR in C)) {
722 throw TypeError('It is not a typed array constructor!');
723 } return new C(length);
724 };
725
726 var speciesFromList = function (O, list) {
727 return fromList(speciesConstructor(O, O[DEF_CONSTRUCTOR]), list);
728 };
729
730 var fromList = function (C, list) {
731 var index = 0;
732 var length = list.length;
733 var result = allocate(C, length);
734 while (length > index) result[index] = list[index++];
735 return result;
736 };
737
738 var addGetter = function (it, key, internal) {
739 dP(it, key, { get: function () { return this._d[internal]; } });
740 };
741
742 var $from = function from(source /* , mapfn, thisArg */) {
743 var O = toObject(source);
744 var aLen = arguments.length;
745 var mapfn = aLen > 1 ? arguments[1] : undefined;
746 var mapping = mapfn !== undefined;
747 var iterFn = getIterFn(O);
748 var i, length, values, result, step, iterator;
749 if (iterFn != undefined && !isArrayIter(iterFn)) {
750 for (iterator = iterFn.call(O), values = [], i = 0; !(step = iterator.next()).done; i++) {
751 values.push(step.value);
752 } O = values;
753 }
754 if (mapping && aLen > 2) mapfn = ctx(mapfn, arguments[2], 2);
755 for (i = 0, length = toLength(O.length), result = allocate(this, length); length > i; i++) {
756 result[i] = mapping ? mapfn(O[i], i) : O[i];
757 }
758 return result;
759 };
760
761 var $of = function of(/* ...items */) {
762 var index = 0;
763 var length = arguments.length;
764 var result = allocate(this, length);
765 while (length > index) result[index] = arguments[index++];
766 return result;
767 };
768
769 // iOS Safari 6.x fails here
770 var TO_LOCALE_BUG = !!Uint8Array && fails(function () { arrayToLocaleString.call(new Uint8Array(1)); });
771
772 var $toLocaleString = function toLocaleString() {
773 return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate(this)) : validate(this), arguments);
774 };
775
776 var proto = {
777 copyWithin: function copyWithin(target, start /* , end */) {
778 return arrayCopyWithin.call(validate(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
779 },
780 every: function every(callbackfn /* , thisArg */) {
781 return arrayEvery(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
782 },
783 fill: function fill(value /* , start, end */) { // eslint-disable-line no-unused-vars
784 return arrayFill.apply(validate(this), arguments);
785 },
786 filter: function filter(callbackfn /* , thisArg */) {
787 return speciesFromList(this, arrayFilter(validate(this), callbackfn,
788 arguments.length > 1 ? arguments[1] : undefined));
789 },
790 find: function find(predicate /* , thisArg */) {
791 return arrayFind(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
792 },
793 findIndex: function findIndex(predicate /* , thisArg */) {
794 return arrayFindIndex(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
795 },
796 forEach: function forEach(callbackfn /* , thisArg */) {
797 arrayForEach(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
798 },
799 indexOf: function indexOf(searchElement /* , fromIndex */) {
800 return arrayIndexOf(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
801 },
802 includes: function includes(searchElement /* , fromIndex */) {
803 return arrayIncludes(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
804 },
805 join: function join(separator) { // eslint-disable-line no-unused-vars
806 return arrayJoin.apply(validate(this), arguments);
807 },
808 lastIndexOf: function lastIndexOf(searchElement /* , fromIndex */) { // eslint-disable-line no-unused-vars
809 return arrayLastIndexOf.apply(validate(this), arguments);
810 },
811 map: function map(mapfn /* , thisArg */) {
812 return $map(validate(this), mapfn, arguments.length > 1 ? arguments[1] : undefined);
813 },
814 reduce: function reduce(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars
815 return arrayReduce.apply(validate(this), arguments);
816 },
817 reduceRight: function reduceRight(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars
818 return arrayReduceRight.apply(validate(this), arguments);
819 },
820 reverse: function reverse() {
821 var that = this;
822 var length = validate(that).length;
823 var middle = Math.floor(length / 2);
824 var index = 0;
825 var value;
826 while (index < middle) {
827 value = that[index];
828 that[index++] = that[--length];
829 that[length] = value;
830 } return that;
831 },
832 some: function some(callbackfn /* , thisArg */) {
833 return arraySome(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
834 },
835 sort: function sort(comparefn) {
836 return arraySort.call(validate(this), comparefn);
837 },
838 subarray: function subarray(begin, end) {
839 var O = validate(this);
840 var length = O.length;
841 var $begin = toAbsoluteIndex(begin, length);
842 return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(
843 O.buffer,
844 O.byteOffset + $begin * O.BYTES_PER_ELEMENT,
845 toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - $begin)
846 );
847 }
848 };
849
850 var $slice = function slice(start, end) {
851 return speciesFromList(this, arraySlice.call(validate(this), start, end));
852 };
853
854 var $set = function set(arrayLike /* , offset */) {
855 validate(this);
856 var offset = toOffset(arguments[1], 1);
857 var length = this.length;
858 var src = toObject(arrayLike);
859 var len = toLength(src.length);
860 var index = 0;
861 if (len + offset > length) throw RangeError(WRONG_LENGTH);
862 while (index < len) this[offset + index] = src[index++];
863 };
864
865 var $iterators = {
866 entries: function entries() {
867 return arrayEntries.call(validate(this));
868 },
869 keys: function keys() {
870 return arrayKeys.call(validate(this));
871 },
872 values: function values() {
873 return arrayValues.call(validate(this));
874 }
875 };
876
877 var isTAIndex = function (target, key) {
878 return isObject(target)
879 && target[TYPED_ARRAY]
880 && typeof key != 'symbol'
881 && key in target
882 && String(+key) == String(key);
883 };
884 var $getDesc = function getOwnPropertyDescriptor(target, key) {
885 return isTAIndex(target, key = toPrimitive(key, true))
886 ? propertyDesc(2, target[key])
887 : gOPD(target, key);
888 };
889 var $setDesc = function defineProperty(target, key, desc) {
890 if (isTAIndex(target, key = toPrimitive(key, true))
891 && isObject(desc)
892 && has(desc, 'value')
893 && !has(desc, 'get')
894 && !has(desc, 'set')
895 // TODO: add validation descriptor w/o calling accessors
896 && !desc.configurable
897 && (!has(desc, 'writable') || desc.writable)
898 && (!has(desc, 'enumerable') || desc.enumerable)
899 ) {
900 target[key] = desc.value;
901 return target;
902 } return dP(target, key, desc);
903 };
904
905 if (!ALL_CONSTRUCTORS) {
906 $GOPD.f = $getDesc;
907 $DP.f = $setDesc;
908 }
909
910 $export($export.S + $export.F * !ALL_CONSTRUCTORS, 'Object', {
911 getOwnPropertyDescriptor: $getDesc,
912 defineProperty: $setDesc
913 });
914
915 if (fails(function () { arrayToString.call({}); })) {
916 arrayToString = arrayToLocaleString = function toString() {
917 return arrayJoin.call(this);
918 };
919 }
920
921 var $TypedArrayPrototype$ = redefineAll({}, proto);
922 redefineAll($TypedArrayPrototype$, $iterators);
923 hide($TypedArrayPrototype$, ITERATOR, $iterators.values);
924 redefineAll($TypedArrayPrototype$, {
925 slice: $slice,
926 set: $set,
927 constructor: function () { /* noop */ },
928 toString: arrayToString,
929 toLocaleString: $toLocaleString
930 });
931 addGetter($TypedArrayPrototype$, 'buffer', 'b');
932 addGetter($TypedArrayPrototype$, 'byteOffset', 'o');
933 addGetter($TypedArrayPrototype$, 'byteLength', 'l');
934 addGetter($TypedArrayPrototype$, 'length', 'e');
935 dP($TypedArrayPrototype$, TAG, {
936 get: function () { return this[TYPED_ARRAY]; }
937 });
938
939 // eslint-disable-next-line max-statements
940 module.exports = function (KEY, BYTES, wrapper, CLAMPED) {
941 CLAMPED = !!CLAMPED;
942 var NAME = KEY + (CLAMPED ? 'Clamped' : '') + 'Array';
943 var GETTER = 'get' + KEY;
944 var SETTER = 'set' + KEY;
945 var TypedArray = global[NAME];
946 var Base = TypedArray || {};
947 var TAC = TypedArray && getPrototypeOf(TypedArray);
948 var FORCED = !TypedArray || !$typed.ABV;
949 var O = {};
950 var TypedArrayPrototype = TypedArray && TypedArray[PROTOTYPE];
951 var getter = function (that, index) {
952 var data = that._d;
953 return data.v[GETTER](index * BYTES + data.o, LITTLE_ENDIAN);
954 };
955 var setter = function (that, index, value) {
956 var data = that._d;
957 if (CLAMPED) value = (value = Math.round(value)) < 0 ? 0 : value > 0xff ? 0xff : value & 0xff;
958 data.v[SETTER](index * BYTES + data.o, value, LITTLE_ENDIAN);
959 };
960 var addElement = function (that, index) {
961 dP(that, index, {
962 get: function () {
963 return getter(this, index);
964 },
965 set: function (value) {
966 return setter(this, index, value);
967 },
968 enumerable: true
969 });
970 };
971 if (FORCED) {
972 TypedArray = wrapper(function (that, data, $offset, $length) {
973 anInstance(that, TypedArray, NAME, '_d');
974 var index = 0;
975 var offset = 0;
976 var buffer, byteLength, length, klass;
977 if (!isObject(data)) {
978 length = toIndex(data);
979 byteLength = length * BYTES;
980 buffer = new $ArrayBuffer(byteLength);
981 } else if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) {
982 buffer = data;
983 offset = toOffset($offset, BYTES);
984 var $len = data.byteLength;
985 if ($length === undefined) {
986 if ($len % BYTES) throw RangeError(WRONG_LENGTH);
987 byteLength = $len - offset;
988 if (byteLength < 0) throw RangeError(WRONG_LENGTH);
989 } else {
990 byteLength = toLength($length) * BYTES;
991 if (byteLength + offset > $len) throw RangeError(WRONG_LENGTH);
992 }
993 length = byteLength / BYTES;
994 } else if (TYPED_ARRAY in data) {
995 return fromList(TypedArray, data);
996 } else {
997 return $from.call(TypedArray, data);
998 }
999 hide(that, '_d', {
1000 b: buffer,
1001 o: offset,
1002 l: byteLength,
1003 e: length,
1004 v: new $DataView(buffer)
1005 });
1006 while (index < length) addElement(that, index++);
1007 });
1008 TypedArrayPrototype = TypedArray[PROTOTYPE] = create($TypedArrayPrototype$);
1009 hide(TypedArrayPrototype, 'constructor', TypedArray);
1010 } else if (!fails(function () {
1011 TypedArray(1);
1012 }) || !fails(function () {
1013 new TypedArray(-1); // eslint-disable-line no-new
1014 }) || !$iterDetect(function (iter) {
1015 new TypedArray(); // eslint-disable-line no-new
1016 new TypedArray(null); // eslint-disable-line no-new
1017 new TypedArray(1.5); // eslint-disable-line no-new
1018 new TypedArray(iter); // eslint-disable-line no-new
1019 }, true)) {
1020 TypedArray = wrapper(function (that, data, $offset, $length) {
1021 anInstance(that, TypedArray, NAME);
1022 var klass;
1023 // `ws` module bug, temporarily remove validation length for Uint8Array
1024 // https://github.com/websockets/ws/pull/645
1025 if (!isObject(data)) return new Base(toIndex(data));
1026 if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) {
1027 return $length !== undefined
1028 ? new Base(data, toOffset($offset, BYTES), $length)
1029 : $offset !== undefined
1030 ? new Base(data, toOffset($offset, BYTES))
1031 : new Base(data);
1032 }
1033 if (TYPED_ARRAY in data) return fromList(TypedArray, data);
1034 return $from.call(TypedArray, data);
1035 });
1036 arrayForEach(TAC !== Function.prototype ? gOPN(Base).concat(gOPN(TAC)) : gOPN(Base), function (key) {
1037 if (!(key in TypedArray)) hide(TypedArray, key, Base[key]);
1038 });
1039 TypedArray[PROTOTYPE] = TypedArrayPrototype;
1040 if (!LIBRARY) TypedArrayPrototype.constructor = TypedArray;
1041 }
1042 var $nativeIterator = TypedArrayPrototype[ITERATOR];
1043 var CORRECT_ITER_NAME = !!$nativeIterator
1044 && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined);
1045 var $iterator = $iterators.values;
1046 hide(TypedArray, TYPED_CONSTRUCTOR, true);
1047 hide(TypedArrayPrototype, TYPED_ARRAY, NAME);
1048 hide(TypedArrayPrototype, VIEW, true);
1049 hide(TypedArrayPrototype, DEF_CONSTRUCTOR, TypedArray);
1050
1051 if (CLAMPED ? new TypedArray(1)[TAG] != NAME : !(TAG in TypedArrayPrototype)) {
1052 dP(TypedArrayPrototype, TAG, {
1053 get: function () { return NAME; }
1054 });
1055 }
1056
1057 O[NAME] = TypedArray;
1058
1059 $export($export.G + $export.W + $export.F * (TypedArray != Base), O);
1060
1061 $export($export.S, NAME, {
1062 BYTES_PER_ELEMENT: BYTES
1063 });
1064
1065 $export($export.S + $export.F * fails(function () { Base.of.call(TypedArray, 1); }), NAME, {
1066 from: $from,
1067 of: $of
1068 });
1069
1070 if (!(BYTES_PER_ELEMENT in TypedArrayPrototype)) hide(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES);
1071
1072 $export($export.P, NAME, proto);
1073
1074 setSpecies(NAME);
1075
1076 $export($export.P + $export.F * FORCED_SET, NAME, { set: $set });
1077
1078 $export($export.P + $export.F * !CORRECT_ITER_NAME, NAME, $iterators);
1079
1080 if (!LIBRARY && TypedArrayPrototype.toString != arrayToString) TypedArrayPrototype.toString = arrayToString;
1081
1082 $export($export.P + $export.F * fails(function () {
1083 new TypedArray(1).slice();
1084 }), NAME, { slice: $slice });
1085
1086 $export($export.P + $export.F * (fails(function () {
1087 return [1, 2].toLocaleString() != new TypedArray([1, 2]).toLocaleString();
1088 }) || !fails(function () {
1089 TypedArrayPrototype.toLocaleString.call([1, 2]);
1090 })), NAME, { toLocaleString: $toLocaleString });
1091
1092 Iterators[NAME] = CORRECT_ITER_NAME ? $nativeIterator : $iterator;
1093 if (!LIBRARY && !CORRECT_ITER_NAME) hide(TypedArrayPrototype, ITERATOR, $iterator);
1094 };
1095} else module.exports = function () { /* empty */ };
1096
1097
1098/***/ }),
1099/* 29 */
1100/***/ (function(module, exports, __webpack_require__) {
1101
1102var Map = __webpack_require__(117);
1103var $export = __webpack_require__(0);
1104var shared = __webpack_require__(52)('metadata');
1105var store = shared.store || (shared.store = new (__webpack_require__(120))());
1106
1107var getOrCreateMetadataMap = function (target, targetKey, create) {
1108 var targetMetadata = store.get(target);
1109 if (!targetMetadata) {
1110 if (!create) return undefined;
1111 store.set(target, targetMetadata = new Map());
1112 }
1113 var keyMetadata = targetMetadata.get(targetKey);
1114 if (!keyMetadata) {
1115 if (!create) return undefined;
1116 targetMetadata.set(targetKey, keyMetadata = new Map());
1117 } return keyMetadata;
1118};
1119var ordinaryHasOwnMetadata = function (MetadataKey, O, P) {
1120 var metadataMap = getOrCreateMetadataMap(O, P, false);
1121 return metadataMap === undefined ? false : metadataMap.has(MetadataKey);
1122};
1123var ordinaryGetOwnMetadata = function (MetadataKey, O, P) {
1124 var metadataMap = getOrCreateMetadataMap(O, P, false);
1125 return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey);
1126};
1127var ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) {
1128 getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue);
1129};
1130var ordinaryOwnMetadataKeys = function (target, targetKey) {
1131 var metadataMap = getOrCreateMetadataMap(target, targetKey, false);
1132 var keys = [];
1133 if (metadataMap) metadataMap.forEach(function (_, key) { keys.push(key); });
1134 return keys;
1135};
1136var toMetaKey = function (it) {
1137 return it === undefined || typeof it == 'symbol' ? it : String(it);
1138};
1139var exp = function (O) {
1140 $export($export.S, 'Reflect', O);
1141};
1142
1143module.exports = {
1144 store: store,
1145 map: getOrCreateMetadataMap,
1146 has: ordinaryHasOwnMetadata,
1147 get: ordinaryGetOwnMetadata,
1148 set: ordinaryDefineOwnMetadata,
1149 keys: ordinaryOwnMetadataKeys,
1150 key: toMetaKey,
1151 exp: exp
1152};
1153
1154
1155/***/ }),
1156/* 30 */
1157/***/ (function(module, exports, __webpack_require__) {
1158
1159var META = __webpack_require__(33)('meta');
1160var isObject = __webpack_require__(4);
1161var has = __webpack_require__(11);
1162var setDesc = __webpack_require__(7).f;
1163var id = 0;
1164var isExtensible = Object.isExtensible || function () {
1165 return true;
1166};
1167var FREEZE = !__webpack_require__(3)(function () {
1168 return isExtensible(Object.preventExtensions({}));
1169});
1170var setMeta = function (it) {
1171 setDesc(it, META, { value: {
1172 i: 'O' + ++id, // object ID
1173 w: {} // weak collections IDs
1174 } });
1175};
1176var fastKey = function (it, create) {
1177 // return primitive with prefix
1178 if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
1179 if (!has(it, META)) {
1180 // can't set metadata to uncaught frozen object
1181 if (!isExtensible(it)) return 'F';
1182 // not necessary to add metadata
1183 if (!create) return 'E';
1184 // add missing metadata
1185 setMeta(it);
1186 // return object ID
1187 } return it[META].i;
1188};
1189var getWeak = function (it, create) {
1190 if (!has(it, META)) {
1191 // can't set metadata to uncaught frozen object
1192 if (!isExtensible(it)) return true;
1193 // not necessary to add metadata
1194 if (!create) return false;
1195 // add missing metadata
1196 setMeta(it);
1197 // return hash weak collections IDs
1198 } return it[META].w;
1199};
1200// add metadata on freeze-family methods calling
1201var onFreeze = function (it) {
1202 if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
1203 return it;
1204};
1205var meta = module.exports = {
1206 KEY: META,
1207 NEED: false,
1208 fastKey: fastKey,
1209 getWeak: getWeak,
1210 onFreeze: onFreeze
1211};
1212
1213
1214/***/ }),
1215/* 31 */
1216/***/ (function(module, exports, __webpack_require__) {
1217
1218// 22.1.3.31 Array.prototype[@@unscopables]
1219var UNSCOPABLES = __webpack_require__(5)('unscopables');
1220var ArrayProto = Array.prototype;
1221if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(12)(ArrayProto, UNSCOPABLES, {});
1222module.exports = function (key) {
1223 ArrayProto[UNSCOPABLES][key] = true;
1224};
1225
1226
1227/***/ }),
1228/* 32 */
1229/***/ (function(module, exports) {
1230
1231module.exports = function (bitmap, value) {
1232 return {
1233 enumerable: !(bitmap & 1),
1234 configurable: !(bitmap & 2),
1235 writable: !(bitmap & 4),
1236 value: value
1237 };
1238};
1239
1240
1241/***/ }),
1242/* 33 */
1243/***/ (function(module, exports) {
1244
1245var id = 0;
1246var px = Math.random();
1247module.exports = function (key) {
1248 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1249};
1250
1251
1252/***/ }),
1253/* 34 */
1254/***/ (function(module, exports) {
1255
1256module.exports = false;
1257
1258
1259/***/ }),
1260/* 35 */
1261/***/ (function(module, exports, __webpack_require__) {
1262
1263// 19.1.2.14 / 15.2.3.14 Object.keys(O)
1264var $keys = __webpack_require__(98);
1265var enumBugKeys = __webpack_require__(71);
1266
1267module.exports = Object.keys || function keys(O) {
1268 return $keys(O, enumBugKeys);
1269};
1270
1271
1272/***/ }),
1273/* 36 */
1274/***/ (function(module, exports, __webpack_require__) {
1275
1276var toInteger = __webpack_require__(25);
1277var max = Math.max;
1278var min = Math.min;
1279module.exports = function (index, length) {
1280 index = toInteger(index);
1281 return index < 0 ? max(index + length, 0) : min(index, length);
1282};
1283
1284
1285/***/ }),
1286/* 37 */
1287/***/ (function(module, exports, __webpack_require__) {
1288
1289// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
1290var anObject = __webpack_require__(1);
1291var dPs = __webpack_require__(99);
1292var enumBugKeys = __webpack_require__(71);
1293var IE_PROTO = __webpack_require__(70)('IE_PROTO');
1294var Empty = function () { /* empty */ };
1295var PROTOTYPE = 'prototype';
1296
1297// Create object with fake `null` prototype: use iframe Object with cleared prototype
1298var createDict = function () {
1299 // Thrash, waste and sodomy: IE GC bug
1300 var iframe = __webpack_require__(68)('iframe');
1301 var i = enumBugKeys.length;
1302 var lt = '<';
1303 var gt = '>';
1304 var iframeDocument;
1305 iframe.style.display = 'none';
1306 __webpack_require__(72).appendChild(iframe);
1307 iframe.src = 'javascript:'; // eslint-disable-line no-script-url
1308 // createDict = iframe.contentWindow.Object;
1309 // html.removeChild(iframe);
1310 iframeDocument = iframe.contentWindow.document;
1311 iframeDocument.open();
1312 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
1313 iframeDocument.close();
1314 createDict = iframeDocument.F;
1315 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
1316 return createDict();
1317};
1318
1319module.exports = Object.create || function create(O, Properties) {
1320 var result;
1321 if (O !== null) {
1322 Empty[PROTOTYPE] = anObject(O);
1323 result = new Empty();
1324 Empty[PROTOTYPE] = null;
1325 // add "__proto__" for Object.getPrototypeOf polyfill
1326 result[IE_PROTO] = O;
1327 } else result = createDict();
1328 return Properties === undefined ? result : dPs(result, Properties);
1329};
1330
1331
1332/***/ }),
1333/* 38 */
1334/***/ (function(module, exports, __webpack_require__) {
1335
1336// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
1337var $keys = __webpack_require__(98);
1338var hiddenKeys = __webpack_require__(71).concat('length', 'prototype');
1339
1340exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1341 return $keys(O, hiddenKeys);
1342};
1343
1344
1345/***/ }),
1346/* 39 */
1347/***/ (function(module, exports, __webpack_require__) {
1348
1349"use strict";
1350
1351var global = __webpack_require__(2);
1352var dP = __webpack_require__(7);
1353var DESCRIPTORS = __webpack_require__(6);
1354var SPECIES = __webpack_require__(5)('species');
1355
1356module.exports = function (KEY) {
1357 var C = global[KEY];
1358 if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
1359 configurable: true,
1360 get: function () { return this; }
1361 });
1362};
1363
1364
1365/***/ }),
1366/* 40 */
1367/***/ (function(module, exports) {
1368
1369module.exports = function (it, Constructor, name, forbiddenField) {
1370 if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
1371 throw TypeError(name + ': incorrect invocation!');
1372 } return it;
1373};
1374
1375
1376/***/ }),
1377/* 41 */
1378/***/ (function(module, exports, __webpack_require__) {
1379
1380var ctx = __webpack_require__(19);
1381var call = __webpack_require__(110);
1382var isArrayIter = __webpack_require__(84);
1383var anObject = __webpack_require__(1);
1384var toLength = __webpack_require__(8);
1385var getIterFn = __webpack_require__(86);
1386var BREAK = {};
1387var RETURN = {};
1388var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
1389 var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
1390 var f = ctx(fn, that, entries ? 2 : 1);
1391 var index = 0;
1392 var length, step, iterator, result;
1393 if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
1394 // fast case for arrays with default iterator
1395 if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
1396 result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
1397 if (result === BREAK || result === RETURN) return result;
1398 } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
1399 result = call(iterator, f, step.value, entries);
1400 if (result === BREAK || result === RETURN) return result;
1401 }
1402};
1403exports.BREAK = BREAK;
1404exports.RETURN = RETURN;
1405
1406
1407/***/ }),
1408/* 42 */
1409/***/ (function(module, exports, __webpack_require__) {
1410
1411var redefine = __webpack_require__(13);
1412module.exports = function (target, src, safe) {
1413 for (var key in src) redefine(target, key, src[key], safe);
1414 return target;
1415};
1416
1417
1418/***/ }),
1419/* 43 */
1420/***/ (function(module, exports, __webpack_require__) {
1421
1422var def = __webpack_require__(7).f;
1423var has = __webpack_require__(11);
1424var TAG = __webpack_require__(5)('toStringTag');
1425
1426module.exports = function (it, tag, stat) {
1427 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
1428};
1429
1430
1431/***/ }),
1432/* 44 */
1433/***/ (function(module, exports, __webpack_require__) {
1434
1435var $export = __webpack_require__(0);
1436var defined = __webpack_require__(24);
1437var fails = __webpack_require__(3);
1438var spaces = __webpack_require__(74);
1439var space = '[' + spaces + ']';
1440var non = '\u200b\u0085';
1441var ltrim = RegExp('^' + space + space + '*');
1442var rtrim = RegExp(space + space + '*$');
1443
1444var exporter = function (KEY, exec, ALIAS) {
1445 var exp = {};
1446 var FORCE = fails(function () {
1447 return !!spaces[KEY]() || non[KEY]() != non;
1448 });
1449 var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
1450 if (ALIAS) exp[ALIAS] = fn;
1451 $export($export.P + $export.F * FORCE, 'String', exp);
1452};
1453
1454// 1 -> String#trimLeft
1455// 2 -> String#trimRight
1456// 3 -> String#trim
1457var trim = exporter.trim = function (string, TYPE) {
1458 string = String(defined(string));
1459 if (TYPE & 1) string = string.replace(ltrim, '');
1460 if (TYPE & 2) string = string.replace(rtrim, '');
1461 return string;
1462};
1463
1464module.exports = exporter;
1465
1466
1467/***/ }),
1468/* 45 */
1469/***/ (function(module, exports) {
1470
1471module.exports = {};
1472
1473
1474/***/ }),
1475/* 46 */
1476/***/ (function(module, exports, __webpack_require__) {
1477
1478var isObject = __webpack_require__(4);
1479module.exports = function (it, TYPE) {
1480 if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
1481 return it;
1482};
1483
1484
1485/***/ }),
1486/* 47 */
1487/***/ (function(module, exports) {
1488
1489/*
1490 MIT License http://www.opensource.org/licenses/mit-license.php
1491 Author Tobias Koppers @sokra
1492*/
1493// css base code, injected by the css-loader
1494module.exports = function(useSourceMap) {
1495 var list = [];
1496
1497 // return the list of modules as css string
1498 list.toString = function toString() {
1499 return this.map(function (item) {
1500 var content = cssWithMappingToString(item, useSourceMap);
1501 if(item[2]) {
1502 return "@media " + item[2] + "{" + content + "}";
1503 } else {
1504 return content;
1505 }
1506 }).join("");
1507 };
1508
1509 // import a list of modules into the list
1510 list.i = function(modules, mediaQuery) {
1511 if(typeof modules === "string")
1512 modules = [[null, modules, ""]];
1513 var alreadyImportedModules = {};
1514 for(var i = 0; i < this.length; i++) {
1515 var id = this[i][0];
1516 if(typeof id === "number")
1517 alreadyImportedModules[id] = true;
1518 }
1519 for(i = 0; i < modules.length; i++) {
1520 var item = modules[i];
1521 // skip already imported module
1522 // this implementation is not 100% perfect for weird media query combinations
1523 // when a module is imported multiple times with different media queries.
1524 // I hope this will never occur (Hey this way we have smaller bundles)
1525 if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
1526 if(mediaQuery && !item[2]) {
1527 item[2] = mediaQuery;
1528 } else if(mediaQuery) {
1529 item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
1530 }
1531 list.push(item);
1532 }
1533 }
1534 };
1535 return list;
1536};
1537
1538function cssWithMappingToString(item, useSourceMap) {
1539 var content = item[1] || '';
1540 var cssMapping = item[3];
1541 if (!cssMapping) {
1542 return content;
1543 }
1544
1545 if (useSourceMap && typeof btoa === 'function') {
1546 var sourceMapping = toComment(cssMapping);
1547 var sourceURLs = cssMapping.sources.map(function (source) {
1548 return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
1549 });
1550
1551 return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
1552 }
1553
1554 return [content].join('\n');
1555}
1556
1557// Adapted from convert-source-map (MIT)
1558function toComment(sourceMap) {
1559 // eslint-disable-next-line no-undef
1560 var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
1561 var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
1562
1563 return '/*# ' + data + ' */';
1564}
1565
1566
1567/***/ }),
1568/* 48 */
1569/***/ (function(module, exports, __webpack_require__) {
1570
1571/*
1572 MIT License http://www.opensource.org/licenses/mit-license.php
1573 Author Tobias Koppers @sokra
1574*/
1575
1576var stylesInDom = {};
1577
1578var memoize = function (fn) {
1579 var memo;
1580
1581 return function () {
1582 if (typeof memo === "undefined") memo = fn.apply(this, arguments);
1583 return memo;
1584 };
1585};
1586
1587var isOldIE = memoize(function () {
1588 // Test for IE <= 9 as proposed by Browserhacks
1589 // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
1590 // Tests for existence of standard globals is to allow style-loader
1591 // to operate correctly into non-standard environments
1592 // @see https://github.com/webpack-contrib/style-loader/issues/177
1593 return window && document && document.all && !window.atob;
1594});
1595
1596var getElement = (function (fn) {
1597 var memo = {};
1598
1599 return function(selector) {
1600 if (typeof memo[selector] === "undefined") {
1601 var styleTarget = fn.call(this, selector);
1602 // Special case to return head of iframe instead of iframe itself
1603 if (styleTarget instanceof window.HTMLIFrameElement) {
1604 try {
1605 // This will throw an exception if access to iframe is blocked
1606 // due to cross-origin restrictions
1607 styleTarget = styleTarget.contentDocument.head;
1608 } catch(e) {
1609 styleTarget = null;
1610 }
1611 }
1612 memo[selector] = styleTarget;
1613 }
1614 return memo[selector]
1615 };
1616})(function (target) {
1617 return document.querySelector(target)
1618});
1619
1620var singleton = null;
1621var singletonCounter = 0;
1622var stylesInsertedAtTop = [];
1623
1624var fixUrls = __webpack_require__(342);
1625
1626module.exports = function(list, options) {
1627 if (typeof DEBUG !== "undefined" && DEBUG) {
1628 if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
1629 }
1630
1631 options = options || {};
1632
1633 options.attrs = typeof options.attrs === "object" ? options.attrs : {};
1634
1635 // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
1636 // tags it will allow on a page
1637 if (!options.singleton) options.singleton = isOldIE();
1638
1639 // By default, add <style> tags to the <head> element
1640 if (!options.insertInto) options.insertInto = "head";
1641
1642 // By default, add <style> tags to the bottom of the target
1643 if (!options.insertAt) options.insertAt = "bottom";
1644
1645 var styles = listToStyles(list, options);
1646
1647 addStylesToDom(styles, options);
1648
1649 return function update (newList) {
1650 var mayRemove = [];
1651
1652 for (var i = 0; i < styles.length; i++) {
1653 var item = styles[i];
1654 var domStyle = stylesInDom[item.id];
1655
1656 domStyle.refs--;
1657 mayRemove.push(domStyle);
1658 }
1659
1660 if(newList) {
1661 var newStyles = listToStyles(newList, options);
1662 addStylesToDom(newStyles, options);
1663 }
1664
1665 for (var i = 0; i < mayRemove.length; i++) {
1666 var domStyle = mayRemove[i];
1667
1668 if(domStyle.refs === 0) {
1669 for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
1670
1671 delete stylesInDom[domStyle.id];
1672 }
1673 }
1674 };
1675};
1676
1677function addStylesToDom (styles, options) {
1678 for (var i = 0; i < styles.length; i++) {
1679 var item = styles[i];
1680 var domStyle = stylesInDom[item.id];
1681
1682 if(domStyle) {
1683 domStyle.refs++;
1684
1685 for(var j = 0; j < domStyle.parts.length; j++) {
1686 domStyle.parts[j](item.parts[j]);
1687 }
1688
1689 for(; j < item.parts.length; j++) {
1690 domStyle.parts.push(addStyle(item.parts[j], options));
1691 }
1692 } else {
1693 var parts = [];
1694
1695 for(var j = 0; j < item.parts.length; j++) {
1696 parts.push(addStyle(item.parts[j], options));
1697 }
1698
1699 stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
1700 }
1701 }
1702}
1703
1704function listToStyles (list, options) {
1705 var styles = [];
1706 var newStyles = {};
1707
1708 for (var i = 0; i < list.length; i++) {
1709 var item = list[i];
1710 var id = options.base ? item[0] + options.base : item[0];
1711 var css = item[1];
1712 var media = item[2];
1713 var sourceMap = item[3];
1714 var part = {css: css, media: media, sourceMap: sourceMap};
1715
1716 if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
1717 else newStyles[id].parts.push(part);
1718 }
1719
1720 return styles;
1721}
1722
1723function insertStyleElement (options, style) {
1724 var target = getElement(options.insertInto)
1725
1726 if (!target) {
1727 throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
1728 }
1729
1730 var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
1731
1732 if (options.insertAt === "top") {
1733 if (!lastStyleElementInsertedAtTop) {
1734 target.insertBefore(style, target.firstChild);
1735 } else if (lastStyleElementInsertedAtTop.nextSibling) {
1736 target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
1737 } else {
1738 target.appendChild(style);
1739 }
1740 stylesInsertedAtTop.push(style);
1741 } else if (options.insertAt === "bottom") {
1742 target.appendChild(style);
1743 } else if (typeof options.insertAt === "object" && options.insertAt.before) {
1744 var nextSibling = getElement(options.insertInto + " " + options.insertAt.before);
1745 target.insertBefore(style, nextSibling);
1746 } else {
1747 throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
1748 }
1749}
1750
1751function removeStyleElement (style) {
1752 if (style.parentNode === null) return false;
1753 style.parentNode.removeChild(style);
1754
1755 var idx = stylesInsertedAtTop.indexOf(style);
1756 if(idx >= 0) {
1757 stylesInsertedAtTop.splice(idx, 1);
1758 }
1759}
1760
1761function createStyleElement (options) {
1762 var style = document.createElement("style");
1763
1764 options.attrs.type = "text/css";
1765
1766 addAttrs(style, options.attrs);
1767 insertStyleElement(options, style);
1768
1769 return style;
1770}
1771
1772function createLinkElement (options) {
1773 var link = document.createElement("link");
1774
1775 options.attrs.type = "text/css";
1776 options.attrs.rel = "stylesheet";
1777
1778 addAttrs(link, options.attrs);
1779 insertStyleElement(options, link);
1780
1781 return link;
1782}
1783
1784function addAttrs (el, attrs) {
1785 Object.keys(attrs).forEach(function (key) {
1786 el.setAttribute(key, attrs[key]);
1787 });
1788}
1789
1790function addStyle (obj, options) {
1791 var style, update, remove, result;
1792
1793 // If a transform function was defined, run it on the css
1794 if (options.transform && obj.css) {
1795 result = options.transform(obj.css);
1796
1797 if (result) {
1798 // If transform returns a value, use that instead of the original css.
1799 // This allows running runtime transformations on the css.
1800 obj.css = result;
1801 } else {
1802 // If the transform function returns a falsy value, don't add this css.
1803 // This allows conditional loading of css
1804 return function() {
1805 // noop
1806 };
1807 }
1808 }
1809
1810 if (options.singleton) {
1811 var styleIndex = singletonCounter++;
1812
1813 style = singleton || (singleton = createStyleElement(options));
1814
1815 update = applyToSingletonTag.bind(null, style, styleIndex, false);
1816 remove = applyToSingletonTag.bind(null, style, styleIndex, true);
1817
1818 } else if (
1819 obj.sourceMap &&
1820 typeof URL === "function" &&
1821 typeof URL.createObjectURL === "function" &&
1822 typeof URL.revokeObjectURL === "function" &&
1823 typeof Blob === "function" &&
1824 typeof btoa === "function"
1825 ) {
1826 style = createLinkElement(options);
1827 update = updateLink.bind(null, style, options);
1828 remove = function () {
1829 removeStyleElement(style);
1830
1831 if(style.href) URL.revokeObjectURL(style.href);
1832 };
1833 } else {
1834 style = createStyleElement(options);
1835 update = applyToTag.bind(null, style);
1836 remove = function () {
1837 removeStyleElement(style);
1838 };
1839 }
1840
1841 update(obj);
1842
1843 return function updateStyle (newObj) {
1844 if (newObj) {
1845 if (
1846 newObj.css === obj.css &&
1847 newObj.media === obj.media &&
1848 newObj.sourceMap === obj.sourceMap
1849 ) {
1850 return;
1851 }
1852
1853 update(obj = newObj);
1854 } else {
1855 remove();
1856 }
1857 };
1858}
1859
1860var replaceText = (function () {
1861 var textStore = [];
1862
1863 return function (index, replacement) {
1864 textStore[index] = replacement;
1865
1866 return textStore.filter(Boolean).join('\n');
1867 };
1868})();
1869
1870function applyToSingletonTag (style, index, remove, obj) {
1871 var css = remove ? "" : obj.css;
1872
1873 if (style.styleSheet) {
1874 style.styleSheet.cssText = replaceText(index, css);
1875 } else {
1876 var cssNode = document.createTextNode(css);
1877 var childNodes = style.childNodes;
1878
1879 if (childNodes[index]) style.removeChild(childNodes[index]);
1880
1881 if (childNodes.length) {
1882 style.insertBefore(cssNode, childNodes[index]);
1883 } else {
1884 style.appendChild(cssNode);
1885 }
1886 }
1887}
1888
1889function applyToTag (style, obj) {
1890 var css = obj.css;
1891 var media = obj.media;
1892
1893 if(media) {
1894 style.setAttribute("media", media)
1895 }
1896
1897 if(style.styleSheet) {
1898 style.styleSheet.cssText = css;
1899 } else {
1900 while(style.firstChild) {
1901 style.removeChild(style.firstChild);
1902 }
1903
1904 style.appendChild(document.createTextNode(css));
1905 }
1906}
1907
1908function updateLink (link, options, obj) {
1909 var css = obj.css;
1910 var sourceMap = obj.sourceMap;
1911
1912 /*
1913 If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
1914 and there is no publicPath defined then lets turn convertToAbsoluteUrls
1915 on by default. Otherwise default to the convertToAbsoluteUrls option
1916 directly
1917 */
1918 var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
1919
1920 if (options.convertToAbsoluteUrls || autoFixUrls) {
1921 css = fixUrls(css);
1922 }
1923
1924 if (sourceMap) {
1925 // http://stackoverflow.com/a/26603875
1926 css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
1927 }
1928
1929 var blob = new Blob([css], { type: "text/css" });
1930
1931 var oldSrc = link.href;
1932
1933 link.href = URL.createObjectURL(blob);
1934
1935 if(oldSrc) URL.revokeObjectURL(oldSrc);
1936}
1937
1938
1939/***/ }),
1940/* 49 */
1941/***/ (function(module, exports, __webpack_require__) {
1942
1943// fallback for non-array-like ES3 and non-enumerable old V8 strings
1944var cof = __webpack_require__(20);
1945// eslint-disable-next-line no-prototype-builtins
1946module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
1947 return cof(it) == 'String' ? it.split('') : Object(it);
1948};
1949
1950
1951/***/ }),
1952/* 50 */
1953/***/ (function(module, exports) {
1954
1955exports.f = {}.propertyIsEnumerable;
1956
1957
1958/***/ }),
1959/* 51 */
1960/***/ (function(module, exports, __webpack_require__) {
1961
1962// getting tag from 19.1.3.6 Object.prototype.toString()
1963var cof = __webpack_require__(20);
1964var TAG = __webpack_require__(5)('toStringTag');
1965// ES3 wrong here
1966var ARG = cof(function () { return arguments; }()) == 'Arguments';
1967
1968// fallback for IE11 Script Access Denied error
1969var tryGet = function (it, key) {
1970 try {
1971 return it[key];
1972 } catch (e) { /* empty */ }
1973};
1974
1975module.exports = function (it) {
1976 var O, T, B;
1977 return it === undefined ? 'Undefined' : it === null ? 'Null'
1978 // @@toStringTag case
1979 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
1980 // builtinTag case
1981 : ARG ? cof(O)
1982 // ES3 arguments fallback
1983 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
1984};
1985
1986
1987/***/ }),
1988/* 52 */
1989/***/ (function(module, exports, __webpack_require__) {
1990
1991var global = __webpack_require__(2);
1992var SHARED = '__core-js_shared__';
1993var store = global[SHARED] || (global[SHARED] = {});
1994module.exports = function (key) {
1995 return store[key] || (store[key] = {});
1996};
1997
1998
1999/***/ }),
2000/* 53 */
2001/***/ (function(module, exports, __webpack_require__) {
2002
2003// false -> Array#indexOf
2004// true -> Array#includes
2005var toIObject = __webpack_require__(15);
2006var toLength = __webpack_require__(8);
2007var toAbsoluteIndex = __webpack_require__(36);
2008module.exports = function (IS_INCLUDES) {
2009 return function ($this, el, fromIndex) {
2010 var O = toIObject($this);
2011 var length = toLength(O.length);
2012 var index = toAbsoluteIndex(fromIndex, length);
2013 var value;
2014 // Array#includes uses SameValueZero equality algorithm
2015 // eslint-disable-next-line no-self-compare
2016 if (IS_INCLUDES && el != el) while (length > index) {
2017 value = O[index++];
2018 // eslint-disable-next-line no-self-compare
2019 if (value != value) return true;
2020 // Array#indexOf ignores holes, Array#includes - not
2021 } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
2022 if (O[index] === el) return IS_INCLUDES || index || 0;
2023 } return !IS_INCLUDES && -1;
2024 };
2025};
2026
2027
2028/***/ }),
2029/* 54 */
2030/***/ (function(module, exports) {
2031
2032exports.f = Object.getOwnPropertySymbols;
2033
2034
2035/***/ }),
2036/* 55 */
2037/***/ (function(module, exports, __webpack_require__) {
2038
2039// 7.2.2 IsArray(argument)
2040var cof = __webpack_require__(20);
2041module.exports = Array.isArray || function isArray(arg) {
2042 return cof(arg) == 'Array';
2043};
2044
2045
2046/***/ }),
2047/* 56 */
2048/***/ (function(module, exports, __webpack_require__) {
2049
2050// 7.2.8 IsRegExp(argument)
2051var isObject = __webpack_require__(4);
2052var cof = __webpack_require__(20);
2053var MATCH = __webpack_require__(5)('match');
2054module.exports = function (it) {
2055 var isRegExp;
2056 return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
2057};
2058
2059
2060/***/ }),
2061/* 57 */
2062/***/ (function(module, exports, __webpack_require__) {
2063
2064var ITERATOR = __webpack_require__(5)('iterator');
2065var SAFE_CLOSING = false;
2066
2067try {
2068 var riter = [7][ITERATOR]();
2069 riter['return'] = function () { SAFE_CLOSING = true; };
2070 // eslint-disable-next-line no-throw-literal
2071 Array.from(riter, function () { throw 2; });
2072} catch (e) { /* empty */ }
2073
2074module.exports = function (exec, skipClosing) {
2075 if (!skipClosing && !SAFE_CLOSING) return false;
2076 var safe = false;
2077 try {
2078 var arr = [7];
2079 var iter = arr[ITERATOR]();
2080 iter.next = function () { return { done: safe = true }; };
2081 arr[ITERATOR] = function () { return iter; };
2082 exec(arr);
2083 } catch (e) { /* empty */ }
2084 return safe;
2085};
2086
2087
2088/***/ }),
2089/* 58 */
2090/***/ (function(module, exports, __webpack_require__) {
2091
2092"use strict";
2093
2094// 21.2.5.3 get RegExp.prototype.flags
2095var anObject = __webpack_require__(1);
2096module.exports = function () {
2097 var that = anObject(this);
2098 var result = '';
2099 if (that.global) result += 'g';
2100 if (that.ignoreCase) result += 'i';
2101 if (that.multiline) result += 'm';
2102 if (that.unicode) result += 'u';
2103 if (that.sticky) result += 'y';
2104 return result;
2105};
2106
2107
2108/***/ }),
2109/* 59 */
2110/***/ (function(module, exports, __webpack_require__) {
2111
2112"use strict";
2113
2114var hide = __webpack_require__(12);
2115var redefine = __webpack_require__(13);
2116var fails = __webpack_require__(3);
2117var defined = __webpack_require__(24);
2118var wks = __webpack_require__(5);
2119
2120module.exports = function (KEY, length, exec) {
2121 var SYMBOL = wks(KEY);
2122 var fns = exec(defined, SYMBOL, ''[KEY]);
2123 var strfn = fns[0];
2124 var rxfn = fns[1];
2125 if (fails(function () {
2126 var O = {};
2127 O[SYMBOL] = function () { return 7; };
2128 return ''[KEY](O) != 7;
2129 })) {
2130 redefine(String.prototype, KEY, strfn);
2131 hide(RegExp.prototype, SYMBOL, length == 2
2132 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
2133 // 21.2.5.11 RegExp.prototype[@@split](string, limit)
2134 ? function (string, arg) { return rxfn.call(string, this, arg); }
2135 // 21.2.5.6 RegExp.prototype[@@match](string)
2136 // 21.2.5.9 RegExp.prototype[@@search](string)
2137 : function (string) { return rxfn.call(string, this); }
2138 );
2139 }
2140};
2141
2142
2143/***/ }),
2144/* 60 */
2145/***/ (function(module, exports, __webpack_require__) {
2146
2147// 7.3.20 SpeciesConstructor(O, defaultConstructor)
2148var anObject = __webpack_require__(1);
2149var aFunction = __webpack_require__(10);
2150var SPECIES = __webpack_require__(5)('species');
2151module.exports = function (O, D) {
2152 var C = anObject(O).constructor;
2153 var S;
2154 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
2155};
2156
2157
2158/***/ }),
2159/* 61 */
2160/***/ (function(module, exports, __webpack_require__) {
2161
2162"use strict";
2163
2164var global = __webpack_require__(2);
2165var $export = __webpack_require__(0);
2166var redefine = __webpack_require__(13);
2167var redefineAll = __webpack_require__(42);
2168var meta = __webpack_require__(30);
2169var forOf = __webpack_require__(41);
2170var anInstance = __webpack_require__(40);
2171var isObject = __webpack_require__(4);
2172var fails = __webpack_require__(3);
2173var $iterDetect = __webpack_require__(57);
2174var setToStringTag = __webpack_require__(43);
2175var inheritIfRequired = __webpack_require__(75);
2176
2177module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
2178 var Base = global[NAME];
2179 var C = Base;
2180 var ADDER = IS_MAP ? 'set' : 'add';
2181 var proto = C && C.prototype;
2182 var O = {};
2183 var fixMethod = function (KEY) {
2184 var fn = proto[KEY];
2185 redefine(proto, KEY,
2186 KEY == 'delete' ? function (a) {
2187 return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
2188 } : KEY == 'has' ? function has(a) {
2189 return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
2190 } : KEY == 'get' ? function get(a) {
2191 return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);
2192 } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; }
2193 : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; }
2194 );
2195 };
2196 if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {
2197 new C().entries().next();
2198 }))) {
2199 // create collection constructor
2200 C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
2201 redefineAll(C.prototype, methods);
2202 meta.NEED = true;
2203 } else {
2204 var instance = new C();
2205 // early implementations not supports chaining
2206 var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
2207 // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
2208 var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });
2209 // most early implementations doesn't supports iterables, most modern - not close it correctly
2210 var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new
2211 // for early implementations -0 and +0 not the same
2212 var BUGGY_ZERO = !IS_WEAK && fails(function () {
2213 // V8 ~ Chromium 42- fails only with 5+ elements
2214 var $instance = new C();
2215 var index = 5;
2216 while (index--) $instance[ADDER](index, index);
2217 return !$instance.has(-0);
2218 });
2219 if (!ACCEPT_ITERABLES) {
2220 C = wrapper(function (target, iterable) {
2221 anInstance(target, C, NAME);
2222 var that = inheritIfRequired(new Base(), target, C);
2223 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
2224 return that;
2225 });
2226 C.prototype = proto;
2227 proto.constructor = C;
2228 }
2229 if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
2230 fixMethod('delete');
2231 fixMethod('has');
2232 IS_MAP && fixMethod('get');
2233 }
2234 if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
2235 // weak collections should not contains .clear method
2236 if (IS_WEAK && proto.clear) delete proto.clear;
2237 }
2238
2239 setToStringTag(C, NAME);
2240
2241 O[NAME] = C;
2242 $export($export.G + $export.W + $export.F * (C != Base), O);
2243
2244 if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
2245
2246 return C;
2247};
2248
2249
2250/***/ }),
2251/* 62 */
2252/***/ (function(module, exports, __webpack_require__) {
2253
2254var global = __webpack_require__(2);
2255var hide = __webpack_require__(12);
2256var uid = __webpack_require__(33);
2257var TYPED = uid('typed_array');
2258var VIEW = uid('view');
2259var ABV = !!(global.ArrayBuffer && global.DataView);
2260var CONSTR = ABV;
2261var i = 0;
2262var l = 9;
2263var Typed;
2264
2265var TypedArrayConstructors = (
2266 'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array'
2267).split(',');
2268
2269while (i < l) {
2270 if (Typed = global[TypedArrayConstructors[i++]]) {
2271 hide(Typed.prototype, TYPED, true);
2272 hide(Typed.prototype, VIEW, true);
2273 } else CONSTR = false;
2274}
2275
2276module.exports = {
2277 ABV: ABV,
2278 CONSTR: CONSTR,
2279 TYPED: TYPED,
2280 VIEW: VIEW
2281};
2282
2283
2284/***/ }),
2285/* 63 */
2286/***/ (function(module, exports, __webpack_require__) {
2287
2288"use strict";
2289
2290// Forced replacement prototype accessors methods
2291module.exports = __webpack_require__(34) || !__webpack_require__(3)(function () {
2292 var K = Math.random();
2293 // In FF throws only define methods
2294 // eslint-disable-next-line no-undef, no-useless-call
2295 __defineSetter__.call(null, K, function () { /* empty */ });
2296 delete __webpack_require__(2)[K];
2297});
2298
2299
2300/***/ }),
2301/* 64 */
2302/***/ (function(module, exports, __webpack_require__) {
2303
2304"use strict";
2305
2306// https://tc39.github.io/proposal-setmap-offrom/
2307var $export = __webpack_require__(0);
2308
2309module.exports = function (COLLECTION) {
2310 $export($export.S, COLLECTION, { of: function of() {
2311 var length = arguments.length;
2312 var A = Array(length);
2313 while (length--) A[length] = arguments[length];
2314 return new this(A);
2315 } });
2316};
2317
2318
2319/***/ }),
2320/* 65 */
2321/***/ (function(module, exports, __webpack_require__) {
2322
2323"use strict";
2324
2325// https://tc39.github.io/proposal-setmap-offrom/
2326var $export = __webpack_require__(0);
2327var aFunction = __webpack_require__(10);
2328var ctx = __webpack_require__(19);
2329var forOf = __webpack_require__(41);
2330
2331module.exports = function (COLLECTION) {
2332 $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) {
2333 var mapFn = arguments[1];
2334 var mapping, A, n, cb;
2335 aFunction(this);
2336 mapping = mapFn !== undefined;
2337 if (mapping) aFunction(mapFn);
2338 if (source == undefined) return new this();
2339 A = [];
2340 if (mapping) {
2341 n = 0;
2342 cb = ctx(mapFn, arguments[2], 2);
2343 forOf(source, false, function (nextItem) {
2344 A.push(cb(nextItem, n++));
2345 });
2346 } else {
2347 forOf(source, false, A.push, A);
2348 }
2349 return new this(A);
2350 } });
2351};
2352
2353
2354/***/ }),
2355/* 66 */
2356/***/ (function(module, exports, __webpack_require__) {
2357
2358"use strict";
2359
2360
2361Object.defineProperty(exports, "__esModule", {
2362 value: true
2363});
2364
2365var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
2366
2367var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2368
2369function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2370
2371/* eslint valid-typeof: "error" */
2372
2373var Database = exports.Database = function () {
2374 function Database() {
2375 _classCallCheck(this, Database);
2376
2377 this.set('database-version', '1');
2378 }
2379
2380 _createClass(Database, null, [{
2381 key: 'set',
2382 value: function set(key, value) {
2383 GM_setValue(key, value);
2384 }
2385 }, {
2386 key: 'setJson',
2387 value: function setJson(key, value) {
2388 this.set(key, JSON.stringify(value));
2389 }
2390 }, {
2391 key: 'get',
2392 value: function get(key, defaultValue) {
2393 var value = defaultValue;
2394 if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
2395 value = JSON.stringify(value);
2396 }
2397 return GM_getValue(key, value);
2398 }
2399 }, {
2400 key: 'getJson',
2401 value: function getJson(key, defaultValue) {
2402 return JSON.parse(this.get(key, defaultValue));
2403 }
2404 }]);
2405
2406 return Database;
2407}();
2408
2409/***/ }),
2410/* 67 */
2411/***/ (function(module, exports, __webpack_require__) {
2412
2413"use strict";
2414
2415
2416Object.defineProperty(exports, "__esModule", {
2417 value: true
2418});
2419exports.priceTiers = exports.utils = exports.TransferMarket = exports.Store = exports.PinEvent = exports.Logger = exports.Club = undefined;
2420
2421var _logger = __webpack_require__(132);
2422
2423var _pinEvent = __webpack_require__(133);
2424
2425var _store = __webpack_require__(355);
2426
2427var _transferMarket = __webpack_require__(356);
2428
2429var _club = __webpack_require__(359);
2430
2431var _utils = __webpack_require__(134);
2432
2433var _utils2 = _interopRequireDefault(_utils);
2434
2435var _priceTiers = __webpack_require__(135);
2436
2437var _priceTiers2 = _interopRequireDefault(_priceTiers);
2438
2439function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2440
2441exports.Club = _club.Club;
2442exports.Logger = _logger.Logger;
2443exports.PinEvent = _pinEvent.PinEvent;
2444exports.Store = _store.Store;
2445exports.TransferMarket = _transferMarket.TransferMarket;
2446exports.utils = _utils2.default;
2447exports.priceTiers = _priceTiers2.default;
2448
2449/***/ }),
2450/* 68 */
2451/***/ (function(module, exports, __webpack_require__) {
2452
2453var isObject = __webpack_require__(4);
2454var document = __webpack_require__(2).document;
2455// typeof document.createElement is 'object' in old IE
2456var is = isObject(document) && isObject(document.createElement);
2457module.exports = function (it) {
2458 return is ? document.createElement(it) : {};
2459};
2460
2461
2462/***/ }),
2463/* 69 */
2464/***/ (function(module, exports, __webpack_require__) {
2465
2466var global = __webpack_require__(2);
2467var core = __webpack_require__(22);
2468var LIBRARY = __webpack_require__(34);
2469var wksExt = __webpack_require__(97);
2470var defineProperty = __webpack_require__(7).f;
2471module.exports = function (name) {
2472 var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
2473 if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
2474};
2475
2476
2477/***/ }),
2478/* 70 */
2479/***/ (function(module, exports, __webpack_require__) {
2480
2481var shared = __webpack_require__(52)('keys');
2482var uid = __webpack_require__(33);
2483module.exports = function (key) {
2484 return shared[key] || (shared[key] = uid(key));
2485};
2486
2487
2488/***/ }),
2489/* 71 */
2490/***/ (function(module, exports) {
2491
2492// IE 8- don't enum bug keys
2493module.exports = (
2494 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
2495).split(',');
2496
2497
2498/***/ }),
2499/* 72 */
2500/***/ (function(module, exports, __webpack_require__) {
2501
2502var document = __webpack_require__(2).document;
2503module.exports = document && document.documentElement;
2504
2505
2506/***/ }),
2507/* 73 */
2508/***/ (function(module, exports, __webpack_require__) {
2509
2510// Works with __proto__ only. Old v8 can't work with null proto objects.
2511/* eslint-disable no-proto */
2512var isObject = __webpack_require__(4);
2513var anObject = __webpack_require__(1);
2514var check = function (O, proto) {
2515 anObject(O);
2516 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
2517};
2518module.exports = {
2519 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
2520 function (test, buggy, set) {
2521 try {
2522 set = __webpack_require__(19)(Function.call, __webpack_require__(16).f(Object.prototype, '__proto__').set, 2);
2523 set(test, []);
2524 buggy = !(test instanceof Array);
2525 } catch (e) { buggy = true; }
2526 return function setPrototypeOf(O, proto) {
2527 check(O, proto);
2528 if (buggy) O.__proto__ = proto;
2529 else set(O, proto);
2530 return O;
2531 };
2532 }({}, false) : undefined),
2533 check: check
2534};
2535
2536
2537/***/ }),
2538/* 74 */
2539/***/ (function(module, exports) {
2540
2541module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
2542 '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
2543
2544
2545/***/ }),
2546/* 75 */
2547/***/ (function(module, exports, __webpack_require__) {
2548
2549var isObject = __webpack_require__(4);
2550var setPrototypeOf = __webpack_require__(73).set;
2551module.exports = function (that, target, C) {
2552 var S = target.constructor;
2553 var P;
2554 if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
2555 setPrototypeOf(that, P);
2556 } return that;
2557};
2558
2559
2560/***/ }),
2561/* 76 */
2562/***/ (function(module, exports, __webpack_require__) {
2563
2564"use strict";
2565
2566var toInteger = __webpack_require__(25);
2567var defined = __webpack_require__(24);
2568
2569module.exports = function repeat(count) {
2570 var str = String(defined(this));
2571 var res = '';
2572 var n = toInteger(count);
2573 if (n < 0 || n == Infinity) throw RangeError("Count can't be negative");
2574 for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) res += str;
2575 return res;
2576};
2577
2578
2579/***/ }),
2580/* 77 */
2581/***/ (function(module, exports) {
2582
2583// 20.2.2.28 Math.sign(x)
2584module.exports = Math.sign || function sign(x) {
2585 // eslint-disable-next-line no-self-compare
2586 return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;
2587};
2588
2589
2590/***/ }),
2591/* 78 */
2592/***/ (function(module, exports) {
2593
2594// 20.2.2.14 Math.expm1(x)
2595var $expm1 = Math.expm1;
2596module.exports = (!$expm1
2597 // Old FF bug
2598 || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168
2599 // Tor Browser bug
2600 || $expm1(-2e-17) != -2e-17
2601) ? function expm1(x) {
2602 return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1;
2603} : $expm1;
2604
2605
2606/***/ }),
2607/* 79 */
2608/***/ (function(module, exports, __webpack_require__) {
2609
2610var toInteger = __webpack_require__(25);
2611var defined = __webpack_require__(24);
2612// true -> String#at
2613// false -> String#codePointAt
2614module.exports = function (TO_STRING) {
2615 return function (that, pos) {
2616 var s = String(defined(that));
2617 var i = toInteger(pos);
2618 var l = s.length;
2619 var a, b;
2620 if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
2621 a = s.charCodeAt(i);
2622 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
2623 ? TO_STRING ? s.charAt(i) : a
2624 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
2625 };
2626};
2627
2628
2629/***/ }),
2630/* 80 */
2631/***/ (function(module, exports, __webpack_require__) {
2632
2633"use strict";
2634
2635var LIBRARY = __webpack_require__(34);
2636var $export = __webpack_require__(0);
2637var redefine = __webpack_require__(13);
2638var hide = __webpack_require__(12);
2639var has = __webpack_require__(11);
2640var Iterators = __webpack_require__(45);
2641var $iterCreate = __webpack_require__(81);
2642var setToStringTag = __webpack_require__(43);
2643var getPrototypeOf = __webpack_require__(17);
2644var ITERATOR = __webpack_require__(5)('iterator');
2645var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
2646var FF_ITERATOR = '@@iterator';
2647var KEYS = 'keys';
2648var VALUES = 'values';
2649
2650var returnThis = function () { return this; };
2651
2652module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
2653 $iterCreate(Constructor, NAME, next);
2654 var getMethod = function (kind) {
2655 if (!BUGGY && kind in proto) return proto[kind];
2656 switch (kind) {
2657 case KEYS: return function keys() { return new Constructor(this, kind); };
2658 case VALUES: return function values() { return new Constructor(this, kind); };
2659 } return function entries() { return new Constructor(this, kind); };
2660 };
2661 var TAG = NAME + ' Iterator';
2662 var DEF_VALUES = DEFAULT == VALUES;
2663 var VALUES_BUG = false;
2664 var proto = Base.prototype;
2665 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
2666 var $default = $native || getMethod(DEFAULT);
2667 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
2668 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
2669 var methods, key, IteratorPrototype;
2670 // Fix native
2671 if ($anyNative) {
2672 IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
2673 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
2674 // Set @@toStringTag to native iterators
2675 setToStringTag(IteratorPrototype, TAG, true);
2676 // fix for some old engines
2677 if (!LIBRARY && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);
2678 }
2679 }
2680 // fix Array#{values, @@iterator}.name in V8 / FF
2681 if (DEF_VALUES && $native && $native.name !== VALUES) {
2682 VALUES_BUG = true;
2683 $default = function values() { return $native.call(this); };
2684 }
2685 // Define iterator
2686 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
2687 hide(proto, ITERATOR, $default);
2688 }
2689 // Plug for library
2690 Iterators[NAME] = $default;
2691 Iterators[TAG] = returnThis;
2692 if (DEFAULT) {
2693 methods = {
2694 values: DEF_VALUES ? $default : getMethod(VALUES),
2695 keys: IS_SET ? $default : getMethod(KEYS),
2696 entries: $entries
2697 };
2698 if (FORCED) for (key in methods) {
2699 if (!(key in proto)) redefine(proto, key, methods[key]);
2700 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
2701 }
2702 return methods;
2703};
2704
2705
2706/***/ }),
2707/* 81 */
2708/***/ (function(module, exports, __webpack_require__) {
2709
2710"use strict";
2711
2712var create = __webpack_require__(37);
2713var descriptor = __webpack_require__(32);
2714var setToStringTag = __webpack_require__(43);
2715var IteratorPrototype = {};
2716
2717// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
2718__webpack_require__(12)(IteratorPrototype, __webpack_require__(5)('iterator'), function () { return this; });
2719
2720module.exports = function (Constructor, NAME, next) {
2721 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
2722 setToStringTag(Constructor, NAME + ' Iterator');
2723};
2724
2725
2726/***/ }),
2727/* 82 */
2728/***/ (function(module, exports, __webpack_require__) {
2729
2730// helper for String#{startsWith, endsWith, includes}
2731var isRegExp = __webpack_require__(56);
2732var defined = __webpack_require__(24);
2733
2734module.exports = function (that, searchString, NAME) {
2735 if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
2736 return String(defined(that));
2737};
2738
2739
2740/***/ }),
2741/* 83 */
2742/***/ (function(module, exports, __webpack_require__) {
2743
2744var MATCH = __webpack_require__(5)('match');
2745module.exports = function (KEY) {
2746 var re = /./;
2747 try {
2748 '/./'[KEY](re);
2749 } catch (e) {
2750 try {
2751 re[MATCH] = false;
2752 return !'/./'[KEY](re);
2753 } catch (f) { /* empty */ }
2754 } return true;
2755};
2756
2757
2758/***/ }),
2759/* 84 */
2760/***/ (function(module, exports, __webpack_require__) {
2761
2762// check on default Array iterator
2763var Iterators = __webpack_require__(45);
2764var ITERATOR = __webpack_require__(5)('iterator');
2765var ArrayProto = Array.prototype;
2766
2767module.exports = function (it) {
2768 return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
2769};
2770
2771
2772/***/ }),
2773/* 85 */
2774/***/ (function(module, exports, __webpack_require__) {
2775
2776"use strict";
2777
2778var $defineProperty = __webpack_require__(7);
2779var createDesc = __webpack_require__(32);
2780
2781module.exports = function (object, index, value) {
2782 if (index in object) $defineProperty.f(object, index, createDesc(0, value));
2783 else object[index] = value;
2784};
2785
2786
2787/***/ }),
2788/* 86 */
2789/***/ (function(module, exports, __webpack_require__) {
2790
2791var classof = __webpack_require__(51);
2792var ITERATOR = __webpack_require__(5)('iterator');
2793var Iterators = __webpack_require__(45);
2794module.exports = __webpack_require__(22).getIteratorMethod = function (it) {
2795 if (it != undefined) return it[ITERATOR]
2796 || it['@@iterator']
2797 || Iterators[classof(it)];
2798};
2799
2800
2801/***/ }),
2802/* 87 */
2803/***/ (function(module, exports, __webpack_require__) {
2804
2805// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
2806var speciesConstructor = __webpack_require__(230);
2807
2808module.exports = function (original, length) {
2809 return new (speciesConstructor(original))(length);
2810};
2811
2812
2813/***/ }),
2814/* 88 */
2815/***/ (function(module, exports, __webpack_require__) {
2816
2817"use strict";
2818// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
2819
2820var toObject = __webpack_require__(9);
2821var toAbsoluteIndex = __webpack_require__(36);
2822var toLength = __webpack_require__(8);
2823module.exports = function fill(value /* , start = 0, end = @length */) {
2824 var O = toObject(this);
2825 var length = toLength(O.length);
2826 var aLen = arguments.length;
2827 var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length);
2828 var end = aLen > 2 ? arguments[2] : undefined;
2829 var endPos = end === undefined ? length : toAbsoluteIndex(end, length);
2830 while (endPos > index) O[index++] = value;
2831 return O;
2832};
2833
2834
2835/***/ }),
2836/* 89 */
2837/***/ (function(module, exports, __webpack_require__) {
2838
2839"use strict";
2840
2841var addToUnscopables = __webpack_require__(31);
2842var step = __webpack_require__(113);
2843var Iterators = __webpack_require__(45);
2844var toIObject = __webpack_require__(15);
2845
2846// 22.1.3.4 Array.prototype.entries()
2847// 22.1.3.13 Array.prototype.keys()
2848// 22.1.3.29 Array.prototype.values()
2849// 22.1.3.30 Array.prototype[@@iterator]()
2850module.exports = __webpack_require__(80)(Array, 'Array', function (iterated, kind) {
2851 this._t = toIObject(iterated); // target
2852 this._i = 0; // next index
2853 this._k = kind; // kind
2854// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
2855}, function () {
2856 var O = this._t;
2857 var kind = this._k;
2858 var index = this._i++;
2859 if (!O || index >= O.length) {
2860 this._t = undefined;
2861 return step(1);
2862 }
2863 if (kind == 'keys') return step(0, index);
2864 if (kind == 'values') return step(0, O[index]);
2865 return step(0, [index, O[index]]);
2866}, 'values');
2867
2868// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
2869Iterators.Arguments = Iterators.Array;
2870
2871addToUnscopables('keys');
2872addToUnscopables('values');
2873addToUnscopables('entries');
2874
2875
2876/***/ }),
2877/* 90 */
2878/***/ (function(module, exports, __webpack_require__) {
2879
2880var ctx = __webpack_require__(19);
2881var invoke = __webpack_require__(103);
2882var html = __webpack_require__(72);
2883var cel = __webpack_require__(68);
2884var global = __webpack_require__(2);
2885var process = global.process;
2886var setTask = global.setImmediate;
2887var clearTask = global.clearImmediate;
2888var MessageChannel = global.MessageChannel;
2889var Dispatch = global.Dispatch;
2890var counter = 0;
2891var queue = {};
2892var ONREADYSTATECHANGE = 'onreadystatechange';
2893var defer, channel, port;
2894var run = function () {
2895 var id = +this;
2896 // eslint-disable-next-line no-prototype-builtins
2897 if (queue.hasOwnProperty(id)) {
2898 var fn = queue[id];
2899 delete queue[id];
2900 fn();
2901 }
2902};
2903var listener = function (event) {
2904 run.call(event.data);
2905};
2906// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
2907if (!setTask || !clearTask) {
2908 setTask = function setImmediate(fn) {
2909 var args = [];
2910 var i = 1;
2911 while (arguments.length > i) args.push(arguments[i++]);
2912 queue[++counter] = function () {
2913 // eslint-disable-next-line no-new-func
2914 invoke(typeof fn == 'function' ? fn : Function(fn), args);
2915 };
2916 defer(counter);
2917 return counter;
2918 };
2919 clearTask = function clearImmediate(id) {
2920 delete queue[id];
2921 };
2922 // Node.js 0.8-
2923 if (__webpack_require__(20)(process) == 'process') {
2924 defer = function (id) {
2925 process.nextTick(ctx(run, id, 1));
2926 };
2927 // Sphere (JS game engine) Dispatch API
2928 } else if (Dispatch && Dispatch.now) {
2929 defer = function (id) {
2930 Dispatch.now(ctx(run, id, 1));
2931 };
2932 // Browsers with MessageChannel, includes WebWorkers
2933 } else if (MessageChannel) {
2934 channel = new MessageChannel();
2935 port = channel.port2;
2936 channel.port1.onmessage = listener;
2937 defer = ctx(port.postMessage, port, 1);
2938 // Browsers with postMessage, skip WebWorkers
2939 // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2940 } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {
2941 defer = function (id) {
2942 global.postMessage(id + '', '*');
2943 };
2944 global.addEventListener('message', listener, false);
2945 // IE8-
2946 } else if (ONREADYSTATECHANGE in cel('script')) {
2947 defer = function (id) {
2948 html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {
2949 html.removeChild(this);
2950 run.call(id);
2951 };
2952 };
2953 // Rest old browsers
2954 } else {
2955 defer = function (id) {
2956 setTimeout(ctx(run, id, 1), 0);
2957 };
2958 }
2959}
2960module.exports = {
2961 set: setTask,
2962 clear: clearTask
2963};
2964
2965
2966/***/ }),
2967/* 91 */
2968/***/ (function(module, exports, __webpack_require__) {
2969
2970var global = __webpack_require__(2);
2971var macrotask = __webpack_require__(90).set;
2972var Observer = global.MutationObserver || global.WebKitMutationObserver;
2973var process = global.process;
2974var Promise = global.Promise;
2975var isNode = __webpack_require__(20)(process) == 'process';
2976
2977module.exports = function () {
2978 var head, last, notify;
2979
2980 var flush = function () {
2981 var parent, fn;
2982 if (isNode && (parent = process.domain)) parent.exit();
2983 while (head) {
2984 fn = head.fn;
2985 head = head.next;
2986 try {
2987 fn();
2988 } catch (e) {
2989 if (head) notify();
2990 else last = undefined;
2991 throw e;
2992 }
2993 } last = undefined;
2994 if (parent) parent.enter();
2995 };
2996
2997 // Node.js
2998 if (isNode) {
2999 notify = function () {
3000 process.nextTick(flush);
3001 };
3002 // browsers with MutationObserver
3003 } else if (Observer) {
3004 var toggle = true;
3005 var node = document.createTextNode('');
3006 new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
3007 notify = function () {
3008 node.data = toggle = !toggle;
3009 };
3010 // environments with maybe non-completely correct, but existent Promise
3011 } else if (Promise && Promise.resolve) {
3012 var promise = Promise.resolve();
3013 notify = function () {
3014 promise.then(flush);
3015 };
3016 // for other environments - macrotask based on:
3017 // - setImmediate
3018 // - MessageChannel
3019 // - window.postMessag
3020 // - onreadystatechange
3021 // - setTimeout
3022 } else {
3023 notify = function () {
3024 // strange IE + webpack dev server bug - use .call(global)
3025 macrotask.call(global, flush);
3026 };
3027 }
3028
3029 return function (fn) {
3030 var task = { fn: fn, next: undefined };
3031 if (last) last.next = task;
3032 if (!head) {
3033 head = task;
3034 notify();
3035 } last = task;
3036 };
3037};
3038
3039
3040/***/ }),
3041/* 92 */
3042/***/ (function(module, exports, __webpack_require__) {
3043
3044"use strict";
3045
3046// 25.4.1.5 NewPromiseCapability(C)
3047var aFunction = __webpack_require__(10);
3048
3049function PromiseCapability(C) {
3050 var resolve, reject;
3051 this.promise = new C(function ($$resolve, $$reject) {
3052 if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
3053 resolve = $$resolve;
3054 reject = $$reject;
3055 });
3056 this.resolve = aFunction(resolve);
3057 this.reject = aFunction(reject);
3058}
3059
3060module.exports.f = function (C) {
3061 return new PromiseCapability(C);
3062};
3063
3064
3065/***/ }),
3066/* 93 */
3067/***/ (function(module, exports, __webpack_require__) {
3068
3069"use strict";
3070
3071var global = __webpack_require__(2);
3072var DESCRIPTORS = __webpack_require__(6);
3073var LIBRARY = __webpack_require__(34);
3074var $typed = __webpack_require__(62);
3075var hide = __webpack_require__(12);
3076var redefineAll = __webpack_require__(42);
3077var fails = __webpack_require__(3);
3078var anInstance = __webpack_require__(40);
3079var toInteger = __webpack_require__(25);
3080var toLength = __webpack_require__(8);
3081var toIndex = __webpack_require__(122);
3082var gOPN = __webpack_require__(38).f;
3083var dP = __webpack_require__(7).f;
3084var arrayFill = __webpack_require__(88);
3085var setToStringTag = __webpack_require__(43);
3086var ARRAY_BUFFER = 'ArrayBuffer';
3087var DATA_VIEW = 'DataView';
3088var PROTOTYPE = 'prototype';
3089var WRONG_LENGTH = 'Wrong length!';
3090var WRONG_INDEX = 'Wrong index!';
3091var $ArrayBuffer = global[ARRAY_BUFFER];
3092var $DataView = global[DATA_VIEW];
3093var Math = global.Math;
3094var RangeError = global.RangeError;
3095// eslint-disable-next-line no-shadow-restricted-names
3096var Infinity = global.Infinity;
3097var BaseBuffer = $ArrayBuffer;
3098var abs = Math.abs;
3099var pow = Math.pow;
3100var floor = Math.floor;
3101var log = Math.log;
3102var LN2 = Math.LN2;
3103var BUFFER = 'buffer';
3104var BYTE_LENGTH = 'byteLength';
3105var BYTE_OFFSET = 'byteOffset';
3106var $BUFFER = DESCRIPTORS ? '_b' : BUFFER;
3107var $LENGTH = DESCRIPTORS ? '_l' : BYTE_LENGTH;
3108var $OFFSET = DESCRIPTORS ? '_o' : BYTE_OFFSET;
3109
3110// IEEE754 conversions based on https://github.com/feross/ieee754
3111function packIEEE754(value, mLen, nBytes) {
3112 var buffer = Array(nBytes);
3113 var eLen = nBytes * 8 - mLen - 1;
3114 var eMax = (1 << eLen) - 1;
3115 var eBias = eMax >> 1;
3116 var rt = mLen === 23 ? pow(2, -24) - pow(2, -77) : 0;
3117 var i = 0;
3118 var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
3119 var e, m, c;
3120 value = abs(value);
3121 // eslint-disable-next-line no-self-compare
3122 if (value != value || value === Infinity) {
3123 // eslint-disable-next-line no-self-compare
3124 m = value != value ? 1 : 0;
3125 e = eMax;
3126 } else {
3127 e = floor(log(value) / LN2);
3128 if (value * (c = pow(2, -e)) < 1) {
3129 e--;
3130 c *= 2;
3131 }
3132 if (e + eBias >= 1) {
3133 value += rt / c;
3134 } else {
3135 value += rt * pow(2, 1 - eBias);
3136 }
3137 if (value * c >= 2) {
3138 e++;
3139 c /= 2;
3140 }
3141 if (e + eBias >= eMax) {
3142 m = 0;
3143 e = eMax;
3144 } else if (e + eBias >= 1) {
3145 m = (value * c - 1) * pow(2, mLen);
3146 e = e + eBias;
3147 } else {
3148 m = value * pow(2, eBias - 1) * pow(2, mLen);
3149 e = 0;
3150 }
3151 }
3152 for (; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8);
3153 e = e << mLen | m;
3154 eLen += mLen;
3155 for (; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8);
3156 buffer[--i] |= s * 128;
3157 return buffer;
3158}
3159function unpackIEEE754(buffer, mLen, nBytes) {
3160 var eLen = nBytes * 8 - mLen - 1;
3161 var eMax = (1 << eLen) - 1;
3162 var eBias = eMax >> 1;
3163 var nBits = eLen - 7;
3164 var i = nBytes - 1;
3165 var s = buffer[i--];
3166 var e = s & 127;
3167 var m;
3168 s >>= 7;
3169 for (; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8);
3170 m = e & (1 << -nBits) - 1;
3171 e >>= -nBits;
3172 nBits += mLen;
3173 for (; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8);
3174 if (e === 0) {
3175 e = 1 - eBias;
3176 } else if (e === eMax) {
3177 return m ? NaN : s ? -Infinity : Infinity;
3178 } else {
3179 m = m + pow(2, mLen);
3180 e = e - eBias;
3181 } return (s ? -1 : 1) * m * pow(2, e - mLen);
3182}
3183
3184function unpackI32(bytes) {
3185 return bytes[3] << 24 | bytes[2] << 16 | bytes[1] << 8 | bytes[0];
3186}
3187function packI8(it) {
3188 return [it & 0xff];
3189}
3190function packI16(it) {
3191 return [it & 0xff, it >> 8 & 0xff];
3192}
3193function packI32(it) {
3194 return [it & 0xff, it >> 8 & 0xff, it >> 16 & 0xff, it >> 24 & 0xff];
3195}
3196function packF64(it) {
3197 return packIEEE754(it, 52, 8);
3198}
3199function packF32(it) {
3200 return packIEEE754(it, 23, 4);
3201}
3202
3203function addGetter(C, key, internal) {
3204 dP(C[PROTOTYPE], key, { get: function () { return this[internal]; } });
3205}
3206
3207function get(view, bytes, index, isLittleEndian) {
3208 var numIndex = +index;
3209 var intIndex = toIndex(numIndex);
3210 if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX);
3211 var store = view[$BUFFER]._b;
3212 var start = intIndex + view[$OFFSET];
3213 var pack = store.slice(start, start + bytes);
3214 return isLittleEndian ? pack : pack.reverse();
3215}
3216function set(view, bytes, index, conversion, value, isLittleEndian) {
3217 var numIndex = +index;
3218 var intIndex = toIndex(numIndex);
3219 if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX);
3220 var store = view[$BUFFER]._b;
3221 var start = intIndex + view[$OFFSET];
3222 var pack = conversion(+value);
3223 for (var i = 0; i < bytes; i++) store[start + i] = pack[isLittleEndian ? i : bytes - i - 1];
3224}
3225
3226if (!$typed.ABV) {
3227 $ArrayBuffer = function ArrayBuffer(length) {
3228 anInstance(this, $ArrayBuffer, ARRAY_BUFFER);
3229 var byteLength = toIndex(length);
3230 this._b = arrayFill.call(Array(byteLength), 0);
3231 this[$LENGTH] = byteLength;
3232 };
3233
3234 $DataView = function DataView(buffer, byteOffset, byteLength) {
3235 anInstance(this, $DataView, DATA_VIEW);
3236 anInstance(buffer, $ArrayBuffer, DATA_VIEW);
3237 var bufferLength = buffer[$LENGTH];
3238 var offset = toInteger(byteOffset);
3239 if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset!');
3240 byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);
3241 if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH);
3242 this[$BUFFER] = buffer;
3243 this[$OFFSET] = offset;
3244 this[$LENGTH] = byteLength;
3245 };
3246
3247 if (DESCRIPTORS) {
3248 addGetter($ArrayBuffer, BYTE_LENGTH, '_l');
3249 addGetter($DataView, BUFFER, '_b');
3250 addGetter($DataView, BYTE_LENGTH, '_l');
3251 addGetter($DataView, BYTE_OFFSET, '_o');
3252 }
3253
3254 redefineAll($DataView[PROTOTYPE], {
3255 getInt8: function getInt8(byteOffset) {
3256 return get(this, 1, byteOffset)[0] << 24 >> 24;
3257 },
3258 getUint8: function getUint8(byteOffset) {
3259 return get(this, 1, byteOffset)[0];
3260 },
3261 getInt16: function getInt16(byteOffset /* , littleEndian */) {
3262 var bytes = get(this, 2, byteOffset, arguments[1]);
3263 return (bytes[1] << 8 | bytes[0]) << 16 >> 16;
3264 },
3265 getUint16: function getUint16(byteOffset /* , littleEndian */) {
3266 var bytes = get(this, 2, byteOffset, arguments[1]);
3267 return bytes[1] << 8 | bytes[0];
3268 },
3269 getInt32: function getInt32(byteOffset /* , littleEndian */) {
3270 return unpackI32(get(this, 4, byteOffset, arguments[1]));
3271 },
3272 getUint32: function getUint32(byteOffset /* , littleEndian */) {
3273 return unpackI32(get(this, 4, byteOffset, arguments[1])) >>> 0;
3274 },
3275 getFloat32: function getFloat32(byteOffset /* , littleEndian */) {
3276 return unpackIEEE754(get(this, 4, byteOffset, arguments[1]), 23, 4);
3277 },
3278 getFloat64: function getFloat64(byteOffset /* , littleEndian */) {
3279 return unpackIEEE754(get(this, 8, byteOffset, arguments[1]), 52, 8);
3280 },
3281 setInt8: function setInt8(byteOffset, value) {
3282 set(this, 1, byteOffset, packI8, value);
3283 },
3284 setUint8: function setUint8(byteOffset, value) {
3285 set(this, 1, byteOffset, packI8, value);
3286 },
3287 setInt16: function setInt16(byteOffset, value /* , littleEndian */) {
3288 set(this, 2, byteOffset, packI16, value, arguments[2]);
3289 },
3290 setUint16: function setUint16(byteOffset, value /* , littleEndian */) {
3291 set(this, 2, byteOffset, packI16, value, arguments[2]);
3292 },
3293 setInt32: function setInt32(byteOffset, value /* , littleEndian */) {
3294 set(this, 4, byteOffset, packI32, value, arguments[2]);
3295 },
3296 setUint32: function setUint32(byteOffset, value /* , littleEndian */) {
3297 set(this, 4, byteOffset, packI32, value, arguments[2]);
3298 },
3299 setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) {
3300 set(this, 4, byteOffset, packF32, value, arguments[2]);
3301 },
3302 setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) {
3303 set(this, 8, byteOffset, packF64, value, arguments[2]);
3304 }
3305 });
3306} else {
3307 if (!fails(function () {
3308 $ArrayBuffer(1);
3309 }) || !fails(function () {
3310 new $ArrayBuffer(-1); // eslint-disable-line no-new
3311 }) || fails(function () {
3312 new $ArrayBuffer(); // eslint-disable-line no-new
3313 new $ArrayBuffer(1.5); // eslint-disable-line no-new
3314 new $ArrayBuffer(NaN); // eslint-disable-line no-new
3315 return $ArrayBuffer.name != ARRAY_BUFFER;
3316 })) {
3317 $ArrayBuffer = function ArrayBuffer(length) {
3318 anInstance(this, $ArrayBuffer);
3319 return new BaseBuffer(toIndex(length));
3320 };
3321 var ArrayBufferProto = $ArrayBuffer[PROTOTYPE] = BaseBuffer[PROTOTYPE];
3322 for (var keys = gOPN(BaseBuffer), j = 0, key; keys.length > j;) {
3323 if (!((key = keys[j++]) in $ArrayBuffer)) hide($ArrayBuffer, key, BaseBuffer[key]);
3324 }
3325 if (!LIBRARY) ArrayBufferProto.constructor = $ArrayBuffer;
3326 }
3327 // iOS Safari 7.x bug
3328 var view = new $DataView(new $ArrayBuffer(2));
3329 var $setInt8 = $DataView[PROTOTYPE].setInt8;
3330 view.setInt8(0, 2147483648);
3331 view.setInt8(1, 2147483649);
3332 if (view.getInt8(0) || !view.getInt8(1)) redefineAll($DataView[PROTOTYPE], {
3333 setInt8: function setInt8(byteOffset, value) {
3334 $setInt8.call(this, byteOffset, value << 24 >> 24);
3335 },
3336 setUint8: function setUint8(byteOffset, value) {
3337 $setInt8.call(this, byteOffset, value << 24 >> 24);
3338 }
3339 }, true);
3340}
3341setToStringTag($ArrayBuffer, ARRAY_BUFFER);
3342setToStringTag($DataView, DATA_VIEW);
3343hide($DataView[PROTOTYPE], $typed.VIEW, true);
3344exports[ARRAY_BUFFER] = $ArrayBuffer;
3345exports[DATA_VIEW] = $DataView;
3346
3347
3348/***/ }),
3349/* 94 */
3350/***/ (function(module, exports, __webpack_require__) {
3351
3352"use strict";
3353
3354
3355Object.defineProperty(exports, "__esModule", {
3356 value: true
3357});
3358exports.FutbinSettings = undefined;
3359
3360var _core = __webpack_require__(18);
3361
3362function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3363
3364function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3365
3366function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3367
3368var FutbinSettings = exports.FutbinSettings = function (_SettingsEntry) {
3369 _inherits(FutbinSettings, _SettingsEntry);
3370
3371 function FutbinSettings() {
3372 _classCallCheck(this, FutbinSettings);
3373
3374 var _this = _possibleConstructorReturn(this, (FutbinSettings.__proto__ || Object.getPrototypeOf(FutbinSettings)).call(this, 'futbin', 'FutBIN integration'));
3375
3376 _this.addSetting('Show link to player page', 'show-link-to-player', false, 'checkbox');
3377 _this.addSetting('Show prices on SBC and Squad', 'show-sbc-squad', false, 'checkbox');
3378 _this.addSetting('Mark bargains', 'show-bargains', false, 'checkbox');
3379 return _this;
3380 }
3381
3382 return FutbinSettings;
3383}(_core.SettingsEntry);
3384
3385FutbinSettings.id = 'futbin';
3386
3387/***/ }),
3388/* 95 */
3389/***/ (function(module, exports) {
3390
3391var g;
3392
3393// This works in non-strict mode
3394g = (function() {
3395 return this;
3396})();
3397
3398try {
3399 // This works if eval is allowed (see CSP)
3400 g = g || Function("return this")() || (1,eval)("this");
3401} catch(e) {
3402 // This works if the window reference is available
3403 if(typeof window === "object")
3404 g = window;
3405}
3406
3407// g can still be undefined, but nothing to do about it...
3408// We return undefined, instead of nothing here, so it's
3409// easier to handle this case. if(!global) { ...}
3410
3411module.exports = g;
3412
3413
3414/***/ }),
3415/* 96 */
3416/***/ (function(module, exports, __webpack_require__) {
3417
3418module.exports = !__webpack_require__(6) && !__webpack_require__(3)(function () {
3419 return Object.defineProperty(__webpack_require__(68)('div'), 'a', { get: function () { return 7; } }).a != 7;
3420});
3421
3422
3423/***/ }),
3424/* 97 */
3425/***/ (function(module, exports, __webpack_require__) {
3426
3427exports.f = __webpack_require__(5);
3428
3429
3430/***/ }),
3431/* 98 */
3432/***/ (function(module, exports, __webpack_require__) {
3433
3434var has = __webpack_require__(11);
3435var toIObject = __webpack_require__(15);
3436var arrayIndexOf = __webpack_require__(53)(false);
3437var IE_PROTO = __webpack_require__(70)('IE_PROTO');
3438
3439module.exports = function (object, names) {
3440 var O = toIObject(object);
3441 var i = 0;
3442 var result = [];
3443 var key;
3444 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
3445 // Don't enum bug & hidden keys
3446 while (names.length > i) if (has(O, key = names[i++])) {
3447 ~arrayIndexOf(result, key) || result.push(key);
3448 }
3449 return result;
3450};
3451
3452
3453/***/ }),
3454/* 99 */
3455/***/ (function(module, exports, __webpack_require__) {
3456
3457var dP = __webpack_require__(7);
3458var anObject = __webpack_require__(1);
3459var getKeys = __webpack_require__(35);
3460
3461module.exports = __webpack_require__(6) ? Object.defineProperties : function defineProperties(O, Properties) {
3462 anObject(O);
3463 var keys = getKeys(Properties);
3464 var length = keys.length;
3465 var i = 0;
3466 var P;
3467 while (length > i) dP.f(O, P = keys[i++], Properties[P]);
3468 return O;
3469};
3470
3471
3472/***/ }),
3473/* 100 */
3474/***/ (function(module, exports, __webpack_require__) {
3475
3476// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
3477var toIObject = __webpack_require__(15);
3478var gOPN = __webpack_require__(38).f;
3479var toString = {}.toString;
3480
3481var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
3482 ? Object.getOwnPropertyNames(window) : [];
3483
3484var getWindowNames = function (it) {
3485 try {
3486 return gOPN(it);
3487 } catch (e) {
3488 return windowNames.slice();
3489 }
3490};
3491
3492module.exports.f = function getOwnPropertyNames(it) {
3493 return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
3494};
3495
3496
3497/***/ }),
3498/* 101 */
3499/***/ (function(module, exports, __webpack_require__) {
3500
3501"use strict";
3502
3503// 19.1.2.1 Object.assign(target, source, ...)
3504var getKeys = __webpack_require__(35);
3505var gOPS = __webpack_require__(54);
3506var pIE = __webpack_require__(50);
3507var toObject = __webpack_require__(9);
3508var IObject = __webpack_require__(49);
3509var $assign = Object.assign;
3510
3511// should work with symbols and should have deterministic property order (V8 bug)
3512module.exports = !$assign || __webpack_require__(3)(function () {
3513 var A = {};
3514 var B = {};
3515 // eslint-disable-next-line no-undef
3516 var S = Symbol();
3517 var K = 'abcdefghijklmnopqrst';
3518 A[S] = 7;
3519 K.split('').forEach(function (k) { B[k] = k; });
3520 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
3521}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
3522 var T = toObject(target);
3523 var aLen = arguments.length;
3524 var index = 1;
3525 var getSymbols = gOPS.f;
3526 var isEnum = pIE.f;
3527 while (aLen > index) {
3528 var S = IObject(arguments[index++]);
3529 var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
3530 var length = keys.length;
3531 var j = 0;
3532 var key;
3533 while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
3534 } return T;
3535} : $assign;
3536
3537
3538/***/ }),
3539/* 102 */
3540/***/ (function(module, exports, __webpack_require__) {
3541
3542"use strict";
3543
3544var aFunction = __webpack_require__(10);
3545var isObject = __webpack_require__(4);
3546var invoke = __webpack_require__(103);
3547var arraySlice = [].slice;
3548var factories = {};
3549
3550var construct = function (F, len, args) {
3551 if (!(len in factories)) {
3552 for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';
3553 // eslint-disable-next-line no-new-func
3554 factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
3555 } return factories[len](F, args);
3556};
3557
3558module.exports = Function.bind || function bind(that /* , ...args */) {
3559 var fn = aFunction(this);
3560 var partArgs = arraySlice.call(arguments, 1);
3561 var bound = function (/* args... */) {
3562 var args = partArgs.concat(arraySlice.call(arguments));
3563 return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
3564 };
3565 if (isObject(fn.prototype)) bound.prototype = fn.prototype;
3566 return bound;
3567};
3568
3569
3570/***/ }),
3571/* 103 */
3572/***/ (function(module, exports) {
3573
3574// fast apply, http://jsperf.lnkit.com/fast-apply/5
3575module.exports = function (fn, args, that) {
3576 var un = that === undefined;
3577 switch (args.length) {
3578 case 0: return un ? fn()
3579 : fn.call(that);
3580 case 1: return un ? fn(args[0])
3581 : fn.call(that, args[0]);
3582 case 2: return un ? fn(args[0], args[1])
3583 : fn.call(that, args[0], args[1]);
3584 case 3: return un ? fn(args[0], args[1], args[2])
3585 : fn.call(that, args[0], args[1], args[2]);
3586 case 4: return un ? fn(args[0], args[1], args[2], args[3])
3587 : fn.call(that, args[0], args[1], args[2], args[3]);
3588 } return fn.apply(that, args);
3589};
3590
3591
3592/***/ }),
3593/* 104 */
3594/***/ (function(module, exports, __webpack_require__) {
3595
3596var $parseInt = __webpack_require__(2).parseInt;
3597var $trim = __webpack_require__(44).trim;
3598var ws = __webpack_require__(74);
3599var hex = /^[-+]?0[xX]/;
3600
3601module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) {
3602 var string = $trim(String(str), 3);
3603 return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10));
3604} : $parseInt;
3605
3606
3607/***/ }),
3608/* 105 */
3609/***/ (function(module, exports, __webpack_require__) {
3610
3611var $parseFloat = __webpack_require__(2).parseFloat;
3612var $trim = __webpack_require__(44).trim;
3613
3614module.exports = 1 / $parseFloat(__webpack_require__(74) + '-0') !== -Infinity ? function parseFloat(str) {
3615 var string = $trim(String(str), 3);
3616 var result = $parseFloat(string);
3617 return result === 0 && string.charAt(0) == '-' ? -0 : result;
3618} : $parseFloat;
3619
3620
3621/***/ }),
3622/* 106 */
3623/***/ (function(module, exports, __webpack_require__) {
3624
3625var cof = __webpack_require__(20);
3626module.exports = function (it, msg) {
3627 if (typeof it != 'number' && cof(it) != 'Number') throw TypeError(msg);
3628 return +it;
3629};
3630
3631
3632/***/ }),
3633/* 107 */
3634/***/ (function(module, exports, __webpack_require__) {
3635
3636// 20.1.2.3 Number.isInteger(number)
3637var isObject = __webpack_require__(4);
3638var floor = Math.floor;
3639module.exports = function isInteger(it) {
3640 return !isObject(it) && isFinite(it) && floor(it) === it;
3641};
3642
3643
3644/***/ }),
3645/* 108 */
3646/***/ (function(module, exports) {
3647
3648// 20.2.2.20 Math.log1p(x)
3649module.exports = Math.log1p || function log1p(x) {
3650 return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x);
3651};
3652
3653
3654/***/ }),
3655/* 109 */
3656/***/ (function(module, exports, __webpack_require__) {
3657
3658// 20.2.2.16 Math.fround(x)
3659var sign = __webpack_require__(77);
3660var pow = Math.pow;
3661var EPSILON = pow(2, -52);
3662var EPSILON32 = pow(2, -23);
3663var MAX32 = pow(2, 127) * (2 - EPSILON32);
3664var MIN32 = pow(2, -126);
3665
3666var roundTiesToEven = function (n) {
3667 return n + 1 / EPSILON - 1 / EPSILON;
3668};
3669
3670module.exports = Math.fround || function fround(x) {
3671 var $abs = Math.abs(x);
3672 var $sign = sign(x);
3673 var a, result;
3674 if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;
3675 a = (1 + EPSILON32 / EPSILON) * $abs;
3676 result = a - (a - $abs);
3677 // eslint-disable-next-line no-self-compare
3678 if (result > MAX32 || result != result) return $sign * Infinity;
3679 return $sign * result;
3680};
3681
3682
3683/***/ }),
3684/* 110 */
3685/***/ (function(module, exports, __webpack_require__) {
3686
3687// call something on iterator step with safe closing on error
3688var anObject = __webpack_require__(1);
3689module.exports = function (iterator, fn, value, entries) {
3690 try {
3691 return entries ? fn(anObject(value)[0], value[1]) : fn(value);
3692 // 7.4.6 IteratorClose(iterator, completion)
3693 } catch (e) {
3694 var ret = iterator['return'];
3695 if (ret !== undefined) anObject(ret.call(iterator));
3696 throw e;
3697 }
3698};
3699
3700
3701/***/ }),
3702/* 111 */
3703/***/ (function(module, exports, __webpack_require__) {
3704
3705var aFunction = __webpack_require__(10);
3706var toObject = __webpack_require__(9);
3707var IObject = __webpack_require__(49);
3708var toLength = __webpack_require__(8);
3709
3710module.exports = function (that, callbackfn, aLen, memo, isRight) {
3711 aFunction(callbackfn);
3712 var O = toObject(that);
3713 var self = IObject(O);
3714 var length = toLength(O.length);
3715 var index = isRight ? length - 1 : 0;
3716 var i = isRight ? -1 : 1;
3717 if (aLen < 2) for (;;) {
3718 if (index in self) {
3719 memo = self[index];
3720 index += i;
3721 break;
3722 }
3723 index += i;
3724 if (isRight ? index < 0 : length <= index) {
3725 throw TypeError('Reduce of empty array with no initial value');
3726 }
3727 }
3728 for (;isRight ? index >= 0 : length > index; index += i) if (index in self) {
3729 memo = callbackfn(memo, self[index], index, O);
3730 }
3731 return memo;
3732};
3733
3734
3735/***/ }),
3736/* 112 */
3737/***/ (function(module, exports, __webpack_require__) {
3738
3739"use strict";
3740// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
3741
3742var toObject = __webpack_require__(9);
3743var toAbsoluteIndex = __webpack_require__(36);
3744var toLength = __webpack_require__(8);
3745
3746module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) {
3747 var O = toObject(this);
3748 var len = toLength(O.length);
3749 var to = toAbsoluteIndex(target, len);
3750 var from = toAbsoluteIndex(start, len);
3751 var end = arguments.length > 2 ? arguments[2] : undefined;
3752 var count = Math.min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to);
3753 var inc = 1;
3754 if (from < to && to < from + count) {
3755 inc = -1;
3756 from += count - 1;
3757 to += count - 1;
3758 }
3759 while (count-- > 0) {
3760 if (from in O) O[to] = O[from];
3761 else delete O[to];
3762 to += inc;
3763 from += inc;
3764 } return O;
3765};
3766
3767
3768/***/ }),
3769/* 113 */
3770/***/ (function(module, exports) {
3771
3772module.exports = function (done, value) {
3773 return { value: value, done: !!done };
3774};
3775
3776
3777/***/ }),
3778/* 114 */
3779/***/ (function(module, exports, __webpack_require__) {
3780
3781// 21.2.5.3 get RegExp.prototype.flags()
3782if (__webpack_require__(6) && /./g.flags != 'g') __webpack_require__(7).f(RegExp.prototype, 'flags', {
3783 configurable: true,
3784 get: __webpack_require__(58)
3785});
3786
3787
3788/***/ }),
3789/* 115 */
3790/***/ (function(module, exports) {
3791
3792module.exports = function (exec) {
3793 try {
3794 return { e: false, v: exec() };
3795 } catch (e) {
3796 return { e: true, v: e };
3797 }
3798};
3799
3800
3801/***/ }),
3802/* 116 */
3803/***/ (function(module, exports, __webpack_require__) {
3804
3805var anObject = __webpack_require__(1);
3806var isObject = __webpack_require__(4);
3807var newPromiseCapability = __webpack_require__(92);
3808
3809module.exports = function (C, x) {
3810 anObject(C);
3811 if (isObject(x) && x.constructor === C) return x;
3812 var promiseCapability = newPromiseCapability.f(C);
3813 var resolve = promiseCapability.resolve;
3814 resolve(x);
3815 return promiseCapability.promise;
3816};
3817
3818
3819/***/ }),
3820/* 117 */
3821/***/ (function(module, exports, __webpack_require__) {
3822
3823"use strict";
3824
3825var strong = __webpack_require__(118);
3826var validate = __webpack_require__(46);
3827var MAP = 'Map';
3828
3829// 23.1 Map Objects
3830module.exports = __webpack_require__(61)(MAP, function (get) {
3831 return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
3832}, {
3833 // 23.1.3.6 Map.prototype.get(key)
3834 get: function get(key) {
3835 var entry = strong.getEntry(validate(this, MAP), key);
3836 return entry && entry.v;
3837 },
3838 // 23.1.3.9 Map.prototype.set(key, value)
3839 set: function set(key, value) {
3840 return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);
3841 }
3842}, strong, true);
3843
3844
3845/***/ }),
3846/* 118 */
3847/***/ (function(module, exports, __webpack_require__) {
3848
3849"use strict";
3850
3851var dP = __webpack_require__(7).f;
3852var create = __webpack_require__(37);
3853var redefineAll = __webpack_require__(42);
3854var ctx = __webpack_require__(19);
3855var anInstance = __webpack_require__(40);
3856var forOf = __webpack_require__(41);
3857var $iterDefine = __webpack_require__(80);
3858var step = __webpack_require__(113);
3859var setSpecies = __webpack_require__(39);
3860var DESCRIPTORS = __webpack_require__(6);
3861var fastKey = __webpack_require__(30).fastKey;
3862var validate = __webpack_require__(46);
3863var SIZE = DESCRIPTORS ? '_s' : 'size';
3864
3865var getEntry = function (that, key) {
3866 // fast case
3867 var index = fastKey(key);
3868 var entry;
3869 if (index !== 'F') return that._i[index];
3870 // frozen object case
3871 for (entry = that._f; entry; entry = entry.n) {
3872 if (entry.k == key) return entry;
3873 }
3874};
3875
3876module.exports = {
3877 getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
3878 var C = wrapper(function (that, iterable) {
3879 anInstance(that, C, NAME, '_i');
3880 that._t = NAME; // collection type
3881 that._i = create(null); // index
3882 that._f = undefined; // first entry
3883 that._l = undefined; // last entry
3884 that[SIZE] = 0; // size
3885 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
3886 });
3887 redefineAll(C.prototype, {
3888 // 23.1.3.1 Map.prototype.clear()
3889 // 23.2.3.2 Set.prototype.clear()
3890 clear: function clear() {
3891 for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {
3892 entry.r = true;
3893 if (entry.p) entry.p = entry.p.n = undefined;
3894 delete data[entry.i];
3895 }
3896 that._f = that._l = undefined;
3897 that[SIZE] = 0;
3898 },
3899 // 23.1.3.3 Map.prototype.delete(key)
3900 // 23.2.3.4 Set.prototype.delete(value)
3901 'delete': function (key) {
3902 var that = validate(this, NAME);
3903 var entry = getEntry(that, key);
3904 if (entry) {
3905 var next = entry.n;
3906 var prev = entry.p;
3907 delete that._i[entry.i];
3908 entry.r = true;
3909 if (prev) prev.n = next;
3910 if (next) next.p = prev;
3911 if (that._f == entry) that._f = next;
3912 if (that._l == entry) that._l = prev;
3913 that[SIZE]--;
3914 } return !!entry;
3915 },
3916 // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
3917 // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
3918 forEach: function forEach(callbackfn /* , that = undefined */) {
3919 validate(this, NAME);
3920 var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
3921 var entry;
3922 while (entry = entry ? entry.n : this._f) {
3923 f(entry.v, entry.k, this);
3924 // revert to the last existing entry
3925 while (entry && entry.r) entry = entry.p;
3926 }
3927 },
3928 // 23.1.3.7 Map.prototype.has(key)
3929 // 23.2.3.7 Set.prototype.has(value)
3930 has: function has(key) {
3931 return !!getEntry(validate(this, NAME), key);
3932 }
3933 });
3934 if (DESCRIPTORS) dP(C.prototype, 'size', {
3935 get: function () {
3936 return validate(this, NAME)[SIZE];
3937 }
3938 });
3939 return C;
3940 },
3941 def: function (that, key, value) {
3942 var entry = getEntry(that, key);
3943 var prev, index;
3944 // change existing entry
3945 if (entry) {
3946 entry.v = value;
3947 // create new entry
3948 } else {
3949 that._l = entry = {
3950 i: index = fastKey(key, true), // <- index
3951 k: key, // <- key
3952 v: value, // <- value
3953 p: prev = that._l, // <- previous entry
3954 n: undefined, // <- next entry
3955 r: false // <- removed
3956 };
3957 if (!that._f) that._f = entry;
3958 if (prev) prev.n = entry;
3959 that[SIZE]++;
3960 // add to index
3961 if (index !== 'F') that._i[index] = entry;
3962 } return that;
3963 },
3964 getEntry: getEntry,
3965 setStrong: function (C, NAME, IS_MAP) {
3966 // add .keys, .values, .entries, [@@iterator]
3967 // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
3968 $iterDefine(C, NAME, function (iterated, kind) {
3969 this._t = validate(iterated, NAME); // target
3970 this._k = kind; // kind
3971 this._l = undefined; // previous
3972 }, function () {
3973 var that = this;
3974 var kind = that._k;
3975 var entry = that._l;
3976 // revert to the last existing entry
3977 while (entry && entry.r) entry = entry.p;
3978 // get next entry
3979 if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {
3980 // or finish the iteration
3981 that._t = undefined;
3982 return step(1);
3983 }
3984 // return step by kind
3985 if (kind == 'keys') return step(0, entry.k);
3986 if (kind == 'values') return step(0, entry.v);
3987 return step(0, [entry.k, entry.v]);
3988 }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
3989
3990 // add [@@species], 23.1.2.2, 23.2.2.2
3991 setSpecies(NAME);
3992 }
3993};
3994
3995
3996/***/ }),
3997/* 119 */
3998/***/ (function(module, exports, __webpack_require__) {
3999
4000"use strict";
4001
4002var strong = __webpack_require__(118);
4003var validate = __webpack_require__(46);
4004var SET = 'Set';
4005
4006// 23.2 Set Objects
4007module.exports = __webpack_require__(61)(SET, function (get) {
4008 return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
4009}, {
4010 // 23.2.3.1 Set.prototype.add(value)
4011 add: function add(value) {
4012 return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value);
4013 }
4014}, strong);
4015
4016
4017/***/ }),
4018/* 120 */
4019/***/ (function(module, exports, __webpack_require__) {
4020
4021"use strict";
4022
4023var each = __webpack_require__(27)(0);
4024var redefine = __webpack_require__(13);
4025var meta = __webpack_require__(30);
4026var assign = __webpack_require__(101);
4027var weak = __webpack_require__(121);
4028var isObject = __webpack_require__(4);
4029var fails = __webpack_require__(3);
4030var validate = __webpack_require__(46);
4031var WEAK_MAP = 'WeakMap';
4032var getWeak = meta.getWeak;
4033var isExtensible = Object.isExtensible;
4034var uncaughtFrozenStore = weak.ufstore;
4035var tmp = {};
4036var InternalMap;
4037
4038var wrapper = function (get) {
4039 return function WeakMap() {
4040 return get(this, arguments.length > 0 ? arguments[0] : undefined);
4041 };
4042};
4043
4044var methods = {
4045 // 23.3.3.3 WeakMap.prototype.get(key)
4046 get: function get(key) {
4047 if (isObject(key)) {
4048 var data = getWeak(key);
4049 if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key);
4050 return data ? data[this._i] : undefined;
4051 }
4052 },
4053 // 23.3.3.5 WeakMap.prototype.set(key, value)
4054 set: function set(key, value) {
4055 return weak.def(validate(this, WEAK_MAP), key, value);
4056 }
4057};
4058
4059// 23.3 WeakMap Objects
4060var $WeakMap = module.exports = __webpack_require__(61)(WEAK_MAP, wrapper, methods, weak, true, true);
4061
4062// IE11 WeakMap frozen keys fix
4063if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) {
4064 InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
4065 assign(InternalMap.prototype, methods);
4066 meta.NEED = true;
4067 each(['delete', 'has', 'get', 'set'], function (key) {
4068 var proto = $WeakMap.prototype;
4069 var method = proto[key];
4070 redefine(proto, key, function (a, b) {
4071 // store frozen objects on internal weakmap shim
4072 if (isObject(a) && !isExtensible(a)) {
4073 if (!this._f) this._f = new InternalMap();
4074 var result = this._f[key](a, b);
4075 return key == 'set' ? this : result;
4076 // store all the rest on native weakmap
4077 } return method.call(this, a, b);
4078 });
4079 });
4080}
4081
4082
4083/***/ }),
4084/* 121 */
4085/***/ (function(module, exports, __webpack_require__) {
4086
4087"use strict";
4088
4089var redefineAll = __webpack_require__(42);
4090var getWeak = __webpack_require__(30).getWeak;
4091var anObject = __webpack_require__(1);
4092var isObject = __webpack_require__(4);
4093var anInstance = __webpack_require__(40);
4094var forOf = __webpack_require__(41);
4095var createArrayMethod = __webpack_require__(27);
4096var $has = __webpack_require__(11);
4097var validate = __webpack_require__(46);
4098var arrayFind = createArrayMethod(5);
4099var arrayFindIndex = createArrayMethod(6);
4100var id = 0;
4101
4102// fallback for uncaught frozen keys
4103var uncaughtFrozenStore = function (that) {
4104 return that._l || (that._l = new UncaughtFrozenStore());
4105};
4106var UncaughtFrozenStore = function () {
4107 this.a = [];
4108};
4109var findUncaughtFrozen = function (store, key) {
4110 return arrayFind(store.a, function (it) {
4111 return it[0] === key;
4112 });
4113};
4114UncaughtFrozenStore.prototype = {
4115 get: function (key) {
4116 var entry = findUncaughtFrozen(this, key);
4117 if (entry) return entry[1];
4118 },
4119 has: function (key) {
4120 return !!findUncaughtFrozen(this, key);
4121 },
4122 set: function (key, value) {
4123 var entry = findUncaughtFrozen(this, key);
4124 if (entry) entry[1] = value;
4125 else this.a.push([key, value]);
4126 },
4127 'delete': function (key) {
4128 var index = arrayFindIndex(this.a, function (it) {
4129 return it[0] === key;
4130 });
4131 if (~index) this.a.splice(index, 1);
4132 return !!~index;
4133 }
4134};
4135
4136module.exports = {
4137 getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
4138 var C = wrapper(function (that, iterable) {
4139 anInstance(that, C, NAME, '_i');
4140 that._t = NAME; // collection type
4141 that._i = id++; // collection id
4142 that._l = undefined; // leak store for uncaught frozen objects
4143 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
4144 });
4145 redefineAll(C.prototype, {
4146 // 23.3.3.2 WeakMap.prototype.delete(key)
4147 // 23.4.3.3 WeakSet.prototype.delete(value)
4148 'delete': function (key) {
4149 if (!isObject(key)) return false;
4150 var data = getWeak(key);
4151 if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);
4152 return data && $has(data, this._i) && delete data[this._i];
4153 },
4154 // 23.3.3.4 WeakMap.prototype.has(key)
4155 // 23.4.3.4 WeakSet.prototype.has(value)
4156 has: function has(key) {
4157 if (!isObject(key)) return false;
4158 var data = getWeak(key);
4159 if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);
4160 return data && $has(data, this._i);
4161 }
4162 });
4163 return C;
4164 },
4165 def: function (that, key, value) {
4166 var data = getWeak(anObject(key), true);
4167 if (data === true) uncaughtFrozenStore(that).set(key, value);
4168 else data[that._i] = value;
4169 return that;
4170 },
4171 ufstore: uncaughtFrozenStore
4172};
4173
4174
4175/***/ }),
4176/* 122 */
4177/***/ (function(module, exports, __webpack_require__) {
4178
4179// https://tc39.github.io/ecma262/#sec-toindex
4180var toInteger = __webpack_require__(25);
4181var toLength = __webpack_require__(8);
4182module.exports = function (it) {
4183 if (it === undefined) return 0;
4184 var number = toInteger(it);
4185 var length = toLength(number);
4186 if (number !== length) throw RangeError('Wrong length!');
4187 return length;
4188};
4189
4190
4191/***/ }),
4192/* 123 */
4193/***/ (function(module, exports, __webpack_require__) {
4194
4195// all object keys, includes non-enumerable and symbols
4196var gOPN = __webpack_require__(38);
4197var gOPS = __webpack_require__(54);
4198var anObject = __webpack_require__(1);
4199var Reflect = __webpack_require__(2).Reflect;
4200module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {
4201 var keys = gOPN.f(anObject(it));
4202 var getSymbols = gOPS.f;
4203 return getSymbols ? keys.concat(getSymbols(it)) : keys;
4204};
4205
4206
4207/***/ }),
4208/* 124 */
4209/***/ (function(module, exports, __webpack_require__) {
4210
4211"use strict";
4212
4213// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
4214var isArray = __webpack_require__(55);
4215var isObject = __webpack_require__(4);
4216var toLength = __webpack_require__(8);
4217var ctx = __webpack_require__(19);
4218var IS_CONCAT_SPREADABLE = __webpack_require__(5)('isConcatSpreadable');
4219
4220function flattenIntoArray(target, original, source, sourceLen, start, depth, mapper, thisArg) {
4221 var targetIndex = start;
4222 var sourceIndex = 0;
4223 var mapFn = mapper ? ctx(mapper, thisArg, 3) : false;
4224 var element, spreadable;
4225
4226 while (sourceIndex < sourceLen) {
4227 if (sourceIndex in source) {
4228 element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
4229
4230 spreadable = false;
4231 if (isObject(element)) {
4232 spreadable = element[IS_CONCAT_SPREADABLE];
4233 spreadable = spreadable !== undefined ? !!spreadable : isArray(element);
4234 }
4235
4236 if (spreadable && depth > 0) {
4237 targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1;
4238 } else {
4239 if (targetIndex >= 0x1fffffffffffff) throw TypeError();
4240 target[targetIndex] = element;
4241 }
4242
4243 targetIndex++;
4244 }
4245 sourceIndex++;
4246 }
4247 return targetIndex;
4248}
4249
4250module.exports = flattenIntoArray;
4251
4252
4253/***/ }),
4254/* 125 */
4255/***/ (function(module, exports, __webpack_require__) {
4256
4257// https://github.com/tc39/proposal-string-pad-start-end
4258var toLength = __webpack_require__(8);
4259var repeat = __webpack_require__(76);
4260var defined = __webpack_require__(24);
4261
4262module.exports = function (that, maxLength, fillString, left) {
4263 var S = String(defined(that));
4264 var stringLength = S.length;
4265 var fillStr = fillString === undefined ? ' ' : String(fillString);
4266 var intMaxLength = toLength(maxLength);
4267 if (intMaxLength <= stringLength || fillStr == '') return S;
4268 var fillLen = intMaxLength - stringLength;
4269 var stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));
4270 if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);
4271 return left ? stringFiller + S : S + stringFiller;
4272};
4273
4274
4275/***/ }),
4276/* 126 */
4277/***/ (function(module, exports, __webpack_require__) {
4278
4279var getKeys = __webpack_require__(35);
4280var toIObject = __webpack_require__(15);
4281var isEnum = __webpack_require__(50).f;
4282module.exports = function (isEntries) {
4283 return function (it) {
4284 var O = toIObject(it);
4285 var keys = getKeys(O);
4286 var length = keys.length;
4287 var i = 0;
4288 var result = [];
4289 var key;
4290 while (length > i) if (isEnum.call(O, key = keys[i++])) {
4291 result.push(isEntries ? [key, O[key]] : O[key]);
4292 } return result;
4293 };
4294};
4295
4296
4297/***/ }),
4298/* 127 */
4299/***/ (function(module, exports, __webpack_require__) {
4300
4301// https://github.com/DavidBruant/Map-Set.prototype.toJSON
4302var classof = __webpack_require__(51);
4303var from = __webpack_require__(128);
4304module.exports = function (NAME) {
4305 return function toJSON() {
4306 if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic");
4307 return from(this);
4308 };
4309};
4310
4311
4312/***/ }),
4313/* 128 */
4314/***/ (function(module, exports, __webpack_require__) {
4315
4316var forOf = __webpack_require__(41);
4317
4318module.exports = function (iter, ITERATOR) {
4319 var result = [];
4320 forOf(iter, false, result.push, result, ITERATOR);
4321 return result;
4322};
4323
4324
4325/***/ }),
4326/* 129 */
4327/***/ (function(module, exports) {
4328
4329// https://rwaldron.github.io/proposal-math-extensions/
4330module.exports = Math.scale || function scale(x, inLow, inHigh, outLow, outHigh) {
4331 if (
4332 arguments.length === 0
4333 // eslint-disable-next-line no-self-compare
4334 || x != x
4335 // eslint-disable-next-line no-self-compare
4336 || inLow != inLow
4337 // eslint-disable-next-line no-self-compare
4338 || inHigh != inHigh
4339 // eslint-disable-next-line no-self-compare
4340 || outLow != outLow
4341 // eslint-disable-next-line no-self-compare
4342 || outHigh != outHigh
4343 ) return NaN;
4344 if (x === Infinity || x === -Infinity) return x;
4345 return (x - inLow) * (outHigh - outLow) / (inHigh - inLow) + outLow;
4346};
4347
4348
4349/***/ }),
4350/* 130 */
4351/***/ (function(module, exports, __webpack_require__) {
4352
4353"use strict";
4354
4355
4356Object.defineProperty(exports, "__esModule", {
4357 value: true
4358});
4359exports.Settings = undefined;
4360
4361var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
4362
4363var _eventEmitterEs = __webpack_require__(346);
4364
4365var _eventEmitterEs2 = _interopRequireDefault(_eventEmitterEs);
4366
4367var _analytics = __webpack_require__(131);
4368
4369var _analytics2 = _interopRequireDefault(_analytics);
4370
4371function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4372
4373function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4374
4375function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
4376
4377function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
4378
4379var Settings = exports.Settings = function (_EventEmitter) {
4380 _inherits(Settings, _EventEmitter);
4381
4382 function Settings() {
4383 _classCallCheck(this, Settings);
4384
4385 var _this = _possibleConstructorReturn(this, (Settings.__proto__ || Object.getPrototypeOf(Settings)).call(this));
4386
4387 _this._entries = [];
4388 return _this;
4389 }
4390
4391 _createClass(Settings, [{
4392 key: 'registerEntry',
4393
4394
4395 /**
4396 *
4397 * @param {SettingsEntry} entry The entry for the settings
4398 */
4399 value: function registerEntry(entry) {
4400 this._entries.push(entry);
4401
4402 if (entry.isActive) {
4403 this._emitEvent(entry);
4404 }
4405 }
4406 }, {
4407 key: 'getEntries',
4408 value: function getEntries() {
4409 return this._entries;
4410 }
4411 }, {
4412 key: 'toggleEntry',
4413 value: function toggleEntry(id) {
4414 var entries = this._entries.filter(function (e) {
4415 return e.id === id;
4416 });
4417 if (!entries || entries.length === 0) {
4418 return;
4419 }
4420
4421 entries[0].toggle();
4422
4423 _analytics2.default.trackEvent('Settings', 'Toggle setting ' + id, entries[0].isActive);
4424 this._emitEvent(entries[0]);
4425 }
4426 }, {
4427 key: '_emitEvent',
4428 value: function _emitEvent(entry) {
4429 if (entry.isActive) {
4430 this.emit('entry-enabled', entry);
4431 } else {
4432 this.emit('entry-disabled', entry);
4433 }
4434 }
4435 }], [{
4436 key: 'getInstance',
4437 value: function getInstance() {
4438 if (this._instance == null) {
4439 this._instance = new Settings();
4440 }
4441
4442 return this._instance;
4443 }
4444 }]);
4445
4446 return Settings;
4447}(_eventEmitterEs2.default);
4448
4449/***/ }),
4450/* 131 */
4451/***/ (function(module, exports, __webpack_require__) {
4452
4453"use strict";
4454
4455
4456Object.defineProperty(exports, "__esModule", {
4457 value: true
4458});
4459
4460var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
4461
4462var _analytics = __webpack_require__(347);
4463
4464var _analytics2 = _interopRequireDefault(_analytics);
4465
4466var _db = __webpack_require__(66);
4467
4468function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4469
4470function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4471
4472var Analytics = function () {
4473 function Analytics() {
4474 _classCallCheck(this, Analytics);
4475
4476 if (this.ua === undefined) {
4477 var id = _db.Database.get('uuid', '');
4478 if (id === '') {
4479 id = this._uuidv4();
4480 _db.Database.set('uuid', id);
4481 }
4482
4483 this.ua = (0, _analytics2.default)(null, null, {
4484 tid: "UA-126264296-2",
4485 cid: id,
4486 uid: id
4487 });
4488 }
4489 }
4490
4491 /* eslint-disable */
4492
4493
4494 _createClass(Analytics, [{
4495 key: '_uuidv4',
4496 value: function _uuidv4() {
4497 return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
4498 var r = Math.random() * 16 | 0,
4499 v = c === 'x' ? r : r & 0x3 | 0x8;
4500 return v.toString(16);
4501 });
4502 }
4503 /* eslint-enable */
4504
4505 }, {
4506 key: 'trackPage',
4507 value: function trackPage(pageId) {
4508 var _this = this;
4509
4510 return new Promise(function (resolve, reject) {
4511 _this.ua.pageview(pageId, function (err) {
4512 if (err) {
4513 reject(err);
4514 } else {
4515 resolve();
4516 }
4517 });
4518 });
4519 }
4520 }, {
4521 key: 'trackEvent',
4522 value: function trackEvent(category, action) {
4523 var _this2 = this;
4524
4525 var label = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
4526 var value = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
4527
4528 return new Promise(function (resolve, reject) {
4529 _this2.ua.event(category, action, label, value, function (err) {
4530 if (err) {
4531 reject(err);
4532 } else {
4533 resolve();
4534 }
4535 });
4536 });
4537 }
4538 }]);
4539
4540 return Analytics;
4541}();
4542
4543exports.default = new Analytics();
4544
4545/***/ }),
4546/* 132 */
4547/***/ (function(module, exports, __webpack_require__) {
4548
4549"use strict";
4550
4551
4552Object.defineProperty(exports, "__esModule", {
4553 value: true
4554});
4555
4556var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
4557
4558function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4559
4560var Logger = exports.Logger = function () {
4561 function Logger() {
4562 _classCallCheck(this, Logger);
4563
4564 this._storeName = 'logger';
4565 }
4566
4567 _createClass(Logger, [{
4568 key: 'log',
4569 value: function log(message) {
4570 var category = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'FUT';
4571
4572 /* eslint-disable no-console */
4573 console.log(category + ': ' + message);
4574 /* eslint-enable no-console */
4575 var log = JSON.parse(GM_getValue(this._storeName, '[]'));
4576 log.push(category + ': ' + message);
4577 GM_setValue(this._storeName, JSON.stringify(log));
4578 }
4579 }, {
4580 key: 'reset',
4581 value: function reset() {
4582 GM_setValue(this._storeName, '[]');
4583 }
4584 }]);
4585
4586 return Logger;
4587}();
4588
4589/***/ }),
4590/* 133 */
4591/***/ (function(module, exports, __webpack_require__) {
4592
4593"use strict";
4594
4595
4596Object.defineProperty(exports, "__esModule", {
4597 value: true
4598});
4599
4600var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
4601
4602function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4603
4604/* globals PIN_PAGEVIEW_EVT_TYPE services enums */
4605
4606var PinEvent = exports.PinEvent = function () {
4607 function PinEvent() {
4608 _classCallCheck(this, PinEvent);
4609 }
4610
4611 _createClass(PinEvent, null, [{
4612 key: "sendPageView",
4613 value: function sendPageView(pageId) {
4614 var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
4615
4616 return new Promise(function (resolve) {
4617 return setTimeout(function () {
4618 services.PIN.sendData(enums.PIN.EVENT.PAGE_VIEW, {
4619 type: PIN_PAGEVIEW_EVT_TYPE,
4620 pgid: pageId
4621 });
4622 resolve();
4623 }, delay);
4624 });
4625 }
4626 }]);
4627
4628 return PinEvent;
4629}();
4630
4631/***/ }),
4632/* 134 */
4633/***/ (function(module, exports, __webpack_require__) {
4634
4635"use strict";
4636
4637
4638Object.defineProperty(exports, "__esModule", {
4639 value: true
4640});
4641/* globals
4642services
4643*/
4644
4645exports.default = {
4646 /**
4647 * Sleep for a while
4648 *
4649 * @param {number} min minimum sleep time in ms
4650 * @param {number} variance maximum variation to add to the minimum in ms
4651 */
4652 sleep: function sleep(min) {
4653 var variance = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1000;
4654
4655 var delay = min + Math.floor(Math.random() * variance);
4656 // new Logger().log(`Delay for ${delay} (requested: ${min}+${variance})`, 'Core');
4657 return new Promise(function (resolve) {
4658 return setTimeout(resolve, delay);
4659 });
4660 },
4661 getPlatform: function getPlatform() {
4662 if (services.User.getUser().getSelectedPersona().isPlaystation) {
4663 return 'ps';
4664 }
4665 if (services.User.getUser().getSelectedPersona().isPC) {
4666 return 'pc';
4667 }
4668 if (services.User.getUser().getSelectedPersona().isXbox) {
4669 return 'xbox';
4670 }
4671
4672 throw new Error('unknown platform');
4673 }
4674};
4675
4676/***/ }),
4677/* 135 */
4678/***/ (function(module, exports, __webpack_require__) {
4679
4680"use strict";
4681
4682
4683Object.defineProperty(exports, "__esModule", {
4684 value: true
4685});
4686/* global utils UTCurrencyInputControl */
4687exports.default = {
4688 roundValueToNearestPriceTiers: function roundValueToNearestPriceTiers(value) {
4689 var tier = utils.JS.find(UTCurrencyInputControl.PRICE_TIERS, function (i) {
4690 return value > i.min;
4691 });
4692
4693 var diff = value % tier.inc;
4694
4695 if (diff === 0) {
4696 return value;
4697 } else if (diff < tier.inc / 2) {
4698 return value - diff;
4699 }
4700 return value + (tier.inc - diff);
4701 },
4702 roundDownToNearestPriceTiers: function roundDownToNearestPriceTiers(value) {
4703 var tier = utils.JS.find(UTCurrencyInputControl.PRICE_TIERS, function (i) {
4704 return value > i.min;
4705 });
4706
4707 var diff = value % tier.inc;
4708
4709 if (diff === 0) {
4710 return value - tier.inc;
4711 }
4712 return value - diff;
4713 },
4714 determineListPrice: function determineListPrice(start, buyNow) {
4715 var tier = utils.JS.find(UTCurrencyInputControl.PRICE_TIERS, function (i) {
4716 return buyNow > i.min;
4717 });
4718
4719 var startPrice = this.roundValueToNearestPriceTiers(start);
4720 var buyNowPrice = this.roundValueToNearestPriceTiers(buyNow);
4721
4722 if (startPrice === buyNowPrice) {
4723 buyNowPrice += tier.inc;
4724 }
4725
4726 return {
4727 start: startPrice,
4728 buyNow: buyNowPrice
4729 };
4730 }
4731};
4732
4733/***/ }),
4734/* 136 */
4735/***/ (function(module, exports, __webpack_require__) {
4736
4737"use strict";
4738
4739
4740Object.defineProperty(exports, "__esModule", {
4741 value: true
4742});
4743exports.InstantBinConfirmSettings = undefined;
4744
4745var _core = __webpack_require__(18);
4746
4747function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4748
4749function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
4750
4751function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
4752
4753var InstantBinConfirmSettings = exports.InstantBinConfirmSettings = function (_SettingsEntry) {
4754 _inherits(InstantBinConfirmSettings, _SettingsEntry);
4755
4756 function InstantBinConfirmSettings() {
4757 _classCallCheck(this, InstantBinConfirmSettings);
4758
4759 return _possibleConstructorReturn(this, (InstantBinConfirmSettings.__proto__ || Object.getPrototypeOf(InstantBinConfirmSettings)).call(this, 'instant-bin-confirm', 'Instantly confirm Buy It Now dialog'));
4760 }
4761
4762 return InstantBinConfirmSettings;
4763}(_core.SettingsEntry);
4764
4765InstantBinConfirmSettings.id = 'instant-bin-confirm';
4766
4767/***/ }),
4768/* 137 */
4769/***/ (function(module, exports, __webpack_require__) {
4770
4771"use strict";
4772
4773
4774__webpack_require__(138);
4775
4776__webpack_require__(340);
4777
4778var _settings = __webpack_require__(343);
4779
4780var _settings2 = _interopRequireDefault(_settings);
4781
4782var _core = __webpack_require__(18);
4783
4784var _fut = __webpack_require__(67);
4785
4786var _transferlist = __webpack_require__(362);
4787
4788var _futbin = __webpack_require__(374);
4789
4790var _instantBinConfirm = __webpack_require__(379);
4791
4792function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4793
4794/*
4795import {
4796 ClubInfoSettings,
4797} from './club';
4798*/
4799
4800/* globals onVisibilityChanged services UTNavigationController
4801UTViewController UTObservable window document $ */
4802window.onPageNavigation = new UTObservable();
4803/*
4804 RemoveSoldAuctionsSettings,
4805 RelistAuctionsSettings,
4806*/
4807
4808
4809window.currentPage = '';
4810
4811// prevent debugger trap
4812setInterval(function () {
4813 _0x1a026c = function _0x1a026c() {}; // eslint-disable-line no-global-assign, no-undef
4814}, 500);
4815
4816UTNavigationController.prototype.didPush = function (t) {
4817 if (t) {
4818 _core.analytics.trackPage(t.className);
4819 window.onPageNavigation.notify(t.className);
4820 window.currentPage = t.className;
4821 }
4822};
4823
4824UTViewController.prototype.didPresent = function (t) {
4825 if (t) {
4826 _core.analytics.trackPage(t.className);
4827 window.onPageNavigation.notify(t.className);
4828 window.currentPage = t.className;
4829 }
4830};
4831
4832services.Authentication._oAuthentication.observe(undefined, function () {
4833 // reset the logs at startup
4834 new _fut.Logger().reset();
4835
4836 // force full web app layout in any case
4837 $('body').removeClass('phone').addClass('landscape');
4838
4839 _core.Queue.getInstance().start();
4840
4841 // get rid of pinEvents when switching tabs
4842 document.removeEventListener('visibilitychange', onVisibilityChanged);
4843
4844 var settings = _core.Settings.getInstance();
4845 settings.registerEntry(new _transferlist.RefreshListSettings());
4846 settings.registerEntry(new _transferlist.MinBinSettings());
4847 settings.registerEntry(new _transferlist.CardInfoSettings());
4848 settings.registerEntry(new _transferlist.ListSizeSettings());
4849 settings.registerEntry(new _transferlist.TransferTotalsSettings());
4850
4851 settings.registerEntry(new _futbin.FutbinSettings());
4852 settings.registerEntry(new _instantBinConfirm.InstantBinConfirmSettings());
4853
4854 (0, _settings2.default)(settings);
4855});
4856
4857/***/ }),
4858/* 138 */
4859/***/ (function(module, exports, __webpack_require__) {
4860
4861"use strict";
4862/* WEBPACK VAR INJECTION */(function(global) {
4863
4864__webpack_require__(139);
4865
4866__webpack_require__(336);
4867
4868__webpack_require__(337);
4869
4870if (global._babelPolyfill) {
4871 throw new Error("only one instance of babel-polyfill is allowed");
4872}
4873global._babelPolyfill = true;
4874
4875var DEFINE_PROPERTY = "defineProperty";
4876function define(O, key, value) {
4877 O[key] || Object[DEFINE_PROPERTY](O, key, {
4878 writable: true,
4879 configurable: true,
4880 value: value
4881 });
4882}
4883
4884define(String.prototype, "padLeft", "".padStart);
4885define(String.prototype, "padRight", "".padEnd);
4886
4887"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function (key) {
4888 [][key] && define(Array, key, Function.call.bind([][key]));
4889});
4890/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(95)))
4891
4892/***/ }),
4893/* 139 */
4894/***/ (function(module, exports, __webpack_require__) {
4895
4896__webpack_require__(140);
4897__webpack_require__(142);
4898__webpack_require__(143);
4899__webpack_require__(144);
4900__webpack_require__(145);
4901__webpack_require__(146);
4902__webpack_require__(147);
4903__webpack_require__(148);
4904__webpack_require__(149);
4905__webpack_require__(150);
4906__webpack_require__(151);
4907__webpack_require__(152);
4908__webpack_require__(153);
4909__webpack_require__(154);
4910__webpack_require__(155);
4911__webpack_require__(156);
4912__webpack_require__(158);
4913__webpack_require__(159);
4914__webpack_require__(160);
4915__webpack_require__(161);
4916__webpack_require__(162);
4917__webpack_require__(163);
4918__webpack_require__(164);
4919__webpack_require__(165);
4920__webpack_require__(166);
4921__webpack_require__(167);
4922__webpack_require__(168);
4923__webpack_require__(169);
4924__webpack_require__(170);
4925__webpack_require__(171);
4926__webpack_require__(172);
4927__webpack_require__(173);
4928__webpack_require__(174);
4929__webpack_require__(175);
4930__webpack_require__(176);
4931__webpack_require__(177);
4932__webpack_require__(178);
4933__webpack_require__(179);
4934__webpack_require__(180);
4935__webpack_require__(181);
4936__webpack_require__(182);
4937__webpack_require__(183);
4938__webpack_require__(184);
4939__webpack_require__(185);
4940__webpack_require__(186);
4941__webpack_require__(187);
4942__webpack_require__(188);
4943__webpack_require__(189);
4944__webpack_require__(190);
4945__webpack_require__(191);
4946__webpack_require__(192);
4947__webpack_require__(193);
4948__webpack_require__(194);
4949__webpack_require__(195);
4950__webpack_require__(196);
4951__webpack_require__(197);
4952__webpack_require__(198);
4953__webpack_require__(199);
4954__webpack_require__(200);
4955__webpack_require__(201);
4956__webpack_require__(202);
4957__webpack_require__(203);
4958__webpack_require__(204);
4959__webpack_require__(205);
4960__webpack_require__(206);
4961__webpack_require__(207);
4962__webpack_require__(208);
4963__webpack_require__(209);
4964__webpack_require__(210);
4965__webpack_require__(211);
4966__webpack_require__(212);
4967__webpack_require__(213);
4968__webpack_require__(214);
4969__webpack_require__(215);
4970__webpack_require__(216);
4971__webpack_require__(217);
4972__webpack_require__(218);
4973__webpack_require__(220);
4974__webpack_require__(221);
4975__webpack_require__(223);
4976__webpack_require__(224);
4977__webpack_require__(225);
4978__webpack_require__(226);
4979__webpack_require__(227);
4980__webpack_require__(228);
4981__webpack_require__(229);
4982__webpack_require__(231);
4983__webpack_require__(232);
4984__webpack_require__(233);
4985__webpack_require__(234);
4986__webpack_require__(235);
4987__webpack_require__(236);
4988__webpack_require__(237);
4989__webpack_require__(238);
4990__webpack_require__(239);
4991__webpack_require__(240);
4992__webpack_require__(241);
4993__webpack_require__(242);
4994__webpack_require__(243);
4995__webpack_require__(89);
4996__webpack_require__(244);
4997__webpack_require__(245);
4998__webpack_require__(114);
4999__webpack_require__(246);
5000__webpack_require__(247);
5001__webpack_require__(248);
5002__webpack_require__(249);
5003__webpack_require__(250);
5004__webpack_require__(117);
5005__webpack_require__(119);
5006__webpack_require__(120);
5007__webpack_require__(251);
5008__webpack_require__(252);
5009__webpack_require__(253);
5010__webpack_require__(254);
5011__webpack_require__(255);
5012__webpack_require__(256);
5013__webpack_require__(257);
5014__webpack_require__(258);
5015__webpack_require__(259);
5016__webpack_require__(260);
5017__webpack_require__(261);
5018__webpack_require__(262);
5019__webpack_require__(263);
5020__webpack_require__(264);
5021__webpack_require__(265);
5022__webpack_require__(266);
5023__webpack_require__(267);
5024__webpack_require__(268);
5025__webpack_require__(269);
5026__webpack_require__(270);
5027__webpack_require__(271);
5028__webpack_require__(272);
5029__webpack_require__(273);
5030__webpack_require__(274);
5031__webpack_require__(275);
5032__webpack_require__(276);
5033__webpack_require__(277);
5034__webpack_require__(278);
5035__webpack_require__(279);
5036__webpack_require__(280);
5037__webpack_require__(281);
5038__webpack_require__(282);
5039__webpack_require__(283);
5040__webpack_require__(284);
5041__webpack_require__(285);
5042__webpack_require__(286);
5043__webpack_require__(287);
5044__webpack_require__(288);
5045__webpack_require__(289);
5046__webpack_require__(290);
5047__webpack_require__(291);
5048__webpack_require__(292);
5049__webpack_require__(293);
5050__webpack_require__(294);
5051__webpack_require__(295);
5052__webpack_require__(296);
5053__webpack_require__(297);
5054__webpack_require__(298);
5055__webpack_require__(299);
5056__webpack_require__(300);
5057__webpack_require__(301);
5058__webpack_require__(302);
5059__webpack_require__(303);
5060__webpack_require__(304);
5061__webpack_require__(305);
5062__webpack_require__(306);
5063__webpack_require__(307);
5064__webpack_require__(308);
5065__webpack_require__(309);
5066__webpack_require__(310);
5067__webpack_require__(311);
5068__webpack_require__(312);
5069__webpack_require__(313);
5070__webpack_require__(314);
5071__webpack_require__(315);
5072__webpack_require__(316);
5073__webpack_require__(317);
5074__webpack_require__(318);
5075__webpack_require__(319);
5076__webpack_require__(320);
5077__webpack_require__(321);
5078__webpack_require__(322);
5079__webpack_require__(323);
5080__webpack_require__(324);
5081__webpack_require__(325);
5082__webpack_require__(326);
5083__webpack_require__(327);
5084__webpack_require__(328);
5085__webpack_require__(329);
5086__webpack_require__(330);
5087__webpack_require__(331);
5088__webpack_require__(332);
5089__webpack_require__(333);
5090__webpack_require__(334);
5091__webpack_require__(335);
5092module.exports = __webpack_require__(22);
5093
5094
5095/***/ }),
5096/* 140 */
5097/***/ (function(module, exports, __webpack_require__) {
5098
5099"use strict";
5100
5101// ECMAScript 6 symbols shim
5102var global = __webpack_require__(2);
5103var has = __webpack_require__(11);
5104var DESCRIPTORS = __webpack_require__(6);
5105var $export = __webpack_require__(0);
5106var redefine = __webpack_require__(13);
5107var META = __webpack_require__(30).KEY;
5108var $fails = __webpack_require__(3);
5109var shared = __webpack_require__(52);
5110var setToStringTag = __webpack_require__(43);
5111var uid = __webpack_require__(33);
5112var wks = __webpack_require__(5);
5113var wksExt = __webpack_require__(97);
5114var wksDefine = __webpack_require__(69);
5115var enumKeys = __webpack_require__(141);
5116var isArray = __webpack_require__(55);
5117var anObject = __webpack_require__(1);
5118var toIObject = __webpack_require__(15);
5119var toPrimitive = __webpack_require__(23);
5120var createDesc = __webpack_require__(32);
5121var _create = __webpack_require__(37);
5122var gOPNExt = __webpack_require__(100);
5123var $GOPD = __webpack_require__(16);
5124var $DP = __webpack_require__(7);
5125var $keys = __webpack_require__(35);
5126var gOPD = $GOPD.f;
5127var dP = $DP.f;
5128var gOPN = gOPNExt.f;
5129var $Symbol = global.Symbol;
5130var $JSON = global.JSON;
5131var _stringify = $JSON && $JSON.stringify;
5132var PROTOTYPE = 'prototype';
5133var HIDDEN = wks('_hidden');
5134var TO_PRIMITIVE = wks('toPrimitive');
5135var isEnum = {}.propertyIsEnumerable;
5136var SymbolRegistry = shared('symbol-registry');
5137var AllSymbols = shared('symbols');
5138var OPSymbols = shared('op-symbols');
5139var ObjectProto = Object[PROTOTYPE];
5140var USE_NATIVE = typeof $Symbol == 'function';
5141var QObject = global.QObject;
5142// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
5143var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
5144
5145// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
5146var setSymbolDesc = DESCRIPTORS && $fails(function () {
5147 return _create(dP({}, 'a', {
5148 get: function () { return dP(this, 'a', { value: 7 }).a; }
5149 })).a != 7;
5150}) ? function (it, key, D) {
5151 var protoDesc = gOPD(ObjectProto, key);
5152 if (protoDesc) delete ObjectProto[key];
5153 dP(it, key, D);
5154 if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
5155} : dP;
5156
5157var wrap = function (tag) {
5158 var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
5159 sym._k = tag;
5160 return sym;
5161};
5162
5163var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
5164 return typeof it == 'symbol';
5165} : function (it) {
5166 return it instanceof $Symbol;
5167};
5168
5169var $defineProperty = function defineProperty(it, key, D) {
5170 if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
5171 anObject(it);
5172 key = toPrimitive(key, true);
5173 anObject(D);
5174 if (has(AllSymbols, key)) {
5175 if (!D.enumerable) {
5176 if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
5177 it[HIDDEN][key] = true;
5178 } else {
5179 if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
5180 D = _create(D, { enumerable: createDesc(0, false) });
5181 } return setSymbolDesc(it, key, D);
5182 } return dP(it, key, D);
5183};
5184var $defineProperties = function defineProperties(it, P) {
5185 anObject(it);
5186 var keys = enumKeys(P = toIObject(P));
5187 var i = 0;
5188 var l = keys.length;
5189 var key;
5190 while (l > i) $defineProperty(it, key = keys[i++], P[key]);
5191 return it;
5192};
5193var $create = function create(it, P) {
5194 return P === undefined ? _create(it) : $defineProperties(_create(it), P);
5195};
5196var $propertyIsEnumerable = function propertyIsEnumerable(key) {
5197 var E = isEnum.call(this, key = toPrimitive(key, true));
5198 if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
5199 return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
5200};
5201var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
5202 it = toIObject(it);
5203 key = toPrimitive(key, true);
5204 if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
5205 var D = gOPD(it, key);
5206 if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
5207 return D;
5208};
5209var $getOwnPropertyNames = function getOwnPropertyNames(it) {
5210 var names = gOPN(toIObject(it));
5211 var result = [];
5212 var i = 0;
5213 var key;
5214 while (names.length > i) {
5215 if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
5216 } return result;
5217};
5218var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
5219 var IS_OP = it === ObjectProto;
5220 var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
5221 var result = [];
5222 var i = 0;
5223 var key;
5224 while (names.length > i) {
5225 if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
5226 } return result;
5227};
5228
5229// 19.4.1.1 Symbol([description])
5230if (!USE_NATIVE) {
5231 $Symbol = function Symbol() {
5232 if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
5233 var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
5234 var $set = function (value) {
5235 if (this === ObjectProto) $set.call(OPSymbols, value);
5236 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
5237 setSymbolDesc(this, tag, createDesc(1, value));
5238 };
5239 if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
5240 return wrap(tag);
5241 };
5242 redefine($Symbol[PROTOTYPE], 'toString', function toString() {
5243 return this._k;
5244 });
5245
5246 $GOPD.f = $getOwnPropertyDescriptor;
5247 $DP.f = $defineProperty;
5248 __webpack_require__(38).f = gOPNExt.f = $getOwnPropertyNames;
5249 __webpack_require__(50).f = $propertyIsEnumerable;
5250 __webpack_require__(54).f = $getOwnPropertySymbols;
5251
5252 if (DESCRIPTORS && !__webpack_require__(34)) {
5253 redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
5254 }
5255
5256 wksExt.f = function (name) {
5257 return wrap(wks(name));
5258 };
5259}
5260
5261$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
5262
5263for (var es6Symbols = (
5264 // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
5265 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
5266).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
5267
5268for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
5269
5270$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
5271 // 19.4.2.1 Symbol.for(key)
5272 'for': function (key) {
5273 return has(SymbolRegistry, key += '')
5274 ? SymbolRegistry[key]
5275 : SymbolRegistry[key] = $Symbol(key);
5276 },
5277 // 19.4.2.5 Symbol.keyFor(sym)
5278 keyFor: function keyFor(sym) {
5279 if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
5280 for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
5281 },
5282 useSetter: function () { setter = true; },
5283 useSimple: function () { setter = false; }
5284});
5285
5286$export($export.S + $export.F * !USE_NATIVE, 'Object', {
5287 // 19.1.2.2 Object.create(O [, Properties])
5288 create: $create,
5289 // 19.1.2.4 Object.defineProperty(O, P, Attributes)
5290 defineProperty: $defineProperty,
5291 // 19.1.2.3 Object.defineProperties(O, Properties)
5292 defineProperties: $defineProperties,
5293 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
5294 getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
5295 // 19.1.2.7 Object.getOwnPropertyNames(O)
5296 getOwnPropertyNames: $getOwnPropertyNames,
5297 // 19.1.2.8 Object.getOwnPropertySymbols(O)
5298 getOwnPropertySymbols: $getOwnPropertySymbols
5299});
5300
5301// 24.3.2 JSON.stringify(value [, replacer [, space]])
5302$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
5303 var S = $Symbol();
5304 // MS Edge converts symbol values to JSON as {}
5305 // WebKit converts symbol values to JSON as null
5306 // V8 throws on boxed symbols
5307 return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
5308})), 'JSON', {
5309 stringify: function stringify(it) {
5310 if (it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
5311 var args = [it];
5312 var i = 1;
5313 var replacer, $replacer;
5314 while (arguments.length > i) args.push(arguments[i++]);
5315 replacer = args[1];
5316 if (typeof replacer == 'function') $replacer = replacer;
5317 if ($replacer || !isArray(replacer)) replacer = function (key, value) {
5318 if ($replacer) value = $replacer.call(this, key, value);
5319 if (!isSymbol(value)) return value;
5320 };
5321 args[1] = replacer;
5322 return _stringify.apply($JSON, args);
5323 }
5324});
5325
5326// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
5327$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(12)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
5328// 19.4.3.5 Symbol.prototype[@@toStringTag]
5329setToStringTag($Symbol, 'Symbol');
5330// 20.2.1.9 Math[@@toStringTag]
5331setToStringTag(Math, 'Math', true);
5332// 24.3.3 JSON[@@toStringTag]
5333setToStringTag(global.JSON, 'JSON', true);
5334
5335
5336/***/ }),
5337/* 141 */
5338/***/ (function(module, exports, __webpack_require__) {
5339
5340// all enumerable object keys, includes symbols
5341var getKeys = __webpack_require__(35);
5342var gOPS = __webpack_require__(54);
5343var pIE = __webpack_require__(50);
5344module.exports = function (it) {
5345 var result = getKeys(it);
5346 var getSymbols = gOPS.f;
5347 if (getSymbols) {
5348 var symbols = getSymbols(it);
5349 var isEnum = pIE.f;
5350 var i = 0;
5351 var key;
5352 while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
5353 } return result;
5354};
5355
5356
5357/***/ }),
5358/* 142 */
5359/***/ (function(module, exports, __webpack_require__) {
5360
5361var $export = __webpack_require__(0);
5362// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
5363$export($export.S, 'Object', { create: __webpack_require__(37) });
5364
5365
5366/***/ }),
5367/* 143 */
5368/***/ (function(module, exports, __webpack_require__) {
5369
5370var $export = __webpack_require__(0);
5371// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
5372$export($export.S + $export.F * !__webpack_require__(6), 'Object', { defineProperty: __webpack_require__(7).f });
5373
5374
5375/***/ }),
5376/* 144 */
5377/***/ (function(module, exports, __webpack_require__) {
5378
5379var $export = __webpack_require__(0);
5380// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
5381$export($export.S + $export.F * !__webpack_require__(6), 'Object', { defineProperties: __webpack_require__(99) });
5382
5383
5384/***/ }),
5385/* 145 */
5386/***/ (function(module, exports, __webpack_require__) {
5387
5388// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
5389var toIObject = __webpack_require__(15);
5390var $getOwnPropertyDescriptor = __webpack_require__(16).f;
5391
5392__webpack_require__(26)('getOwnPropertyDescriptor', function () {
5393 return function getOwnPropertyDescriptor(it, key) {
5394 return $getOwnPropertyDescriptor(toIObject(it), key);
5395 };
5396});
5397
5398
5399/***/ }),
5400/* 146 */
5401/***/ (function(module, exports, __webpack_require__) {
5402
5403// 19.1.2.9 Object.getPrototypeOf(O)
5404var toObject = __webpack_require__(9);
5405var $getPrototypeOf = __webpack_require__(17);
5406
5407__webpack_require__(26)('getPrototypeOf', function () {
5408 return function getPrototypeOf(it) {
5409 return $getPrototypeOf(toObject(it));
5410 };
5411});
5412
5413
5414/***/ }),
5415/* 147 */
5416/***/ (function(module, exports, __webpack_require__) {
5417
5418// 19.1.2.14 Object.keys(O)
5419var toObject = __webpack_require__(9);
5420var $keys = __webpack_require__(35);
5421
5422__webpack_require__(26)('keys', function () {
5423 return function keys(it) {
5424 return $keys(toObject(it));
5425 };
5426});
5427
5428
5429/***/ }),
5430/* 148 */
5431/***/ (function(module, exports, __webpack_require__) {
5432
5433// 19.1.2.7 Object.getOwnPropertyNames(O)
5434__webpack_require__(26)('getOwnPropertyNames', function () {
5435 return __webpack_require__(100).f;
5436});
5437
5438
5439/***/ }),
5440/* 149 */
5441/***/ (function(module, exports, __webpack_require__) {
5442
5443// 19.1.2.5 Object.freeze(O)
5444var isObject = __webpack_require__(4);
5445var meta = __webpack_require__(30).onFreeze;
5446
5447__webpack_require__(26)('freeze', function ($freeze) {
5448 return function freeze(it) {
5449 return $freeze && isObject(it) ? $freeze(meta(it)) : it;
5450 };
5451});
5452
5453
5454/***/ }),
5455/* 150 */
5456/***/ (function(module, exports, __webpack_require__) {
5457
5458// 19.1.2.17 Object.seal(O)
5459var isObject = __webpack_require__(4);
5460var meta = __webpack_require__(30).onFreeze;
5461
5462__webpack_require__(26)('seal', function ($seal) {
5463 return function seal(it) {
5464 return $seal && isObject(it) ? $seal(meta(it)) : it;
5465 };
5466});
5467
5468
5469/***/ }),
5470/* 151 */
5471/***/ (function(module, exports, __webpack_require__) {
5472
5473// 19.1.2.15 Object.preventExtensions(O)
5474var isObject = __webpack_require__(4);
5475var meta = __webpack_require__(30).onFreeze;
5476
5477__webpack_require__(26)('preventExtensions', function ($preventExtensions) {
5478 return function preventExtensions(it) {
5479 return $preventExtensions && isObject(it) ? $preventExtensions(meta(it)) : it;
5480 };
5481});
5482
5483
5484/***/ }),
5485/* 152 */
5486/***/ (function(module, exports, __webpack_require__) {
5487
5488// 19.1.2.12 Object.isFrozen(O)
5489var isObject = __webpack_require__(4);
5490
5491__webpack_require__(26)('isFrozen', function ($isFrozen) {
5492 return function isFrozen(it) {
5493 return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;
5494 };
5495});
5496
5497
5498/***/ }),
5499/* 153 */
5500/***/ (function(module, exports, __webpack_require__) {
5501
5502// 19.1.2.13 Object.isSealed(O)
5503var isObject = __webpack_require__(4);
5504
5505__webpack_require__(26)('isSealed', function ($isSealed) {
5506 return function isSealed(it) {
5507 return isObject(it) ? $isSealed ? $isSealed(it) : false : true;
5508 };
5509});
5510
5511
5512/***/ }),
5513/* 154 */
5514/***/ (function(module, exports, __webpack_require__) {
5515
5516// 19.1.2.11 Object.isExtensible(O)
5517var isObject = __webpack_require__(4);
5518
5519__webpack_require__(26)('isExtensible', function ($isExtensible) {
5520 return function isExtensible(it) {
5521 return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;
5522 };
5523});
5524
5525
5526/***/ }),
5527/* 155 */
5528/***/ (function(module, exports, __webpack_require__) {
5529
5530// 19.1.3.1 Object.assign(target, source)
5531var $export = __webpack_require__(0);
5532
5533$export($export.S + $export.F, 'Object', { assign: __webpack_require__(101) });
5534
5535
5536/***/ }),
5537/* 156 */
5538/***/ (function(module, exports, __webpack_require__) {
5539
5540// 19.1.3.10 Object.is(value1, value2)
5541var $export = __webpack_require__(0);
5542$export($export.S, 'Object', { is: __webpack_require__(157) });
5543
5544
5545/***/ }),
5546/* 157 */
5547/***/ (function(module, exports) {
5548
5549// 7.2.9 SameValue(x, y)
5550module.exports = Object.is || function is(x, y) {
5551 // eslint-disable-next-line no-self-compare
5552 return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
5553};
5554
5555
5556/***/ }),
5557/* 158 */
5558/***/ (function(module, exports, __webpack_require__) {
5559
5560// 19.1.3.19 Object.setPrototypeOf(O, proto)
5561var $export = __webpack_require__(0);
5562$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(73).set });
5563
5564
5565/***/ }),
5566/* 159 */
5567/***/ (function(module, exports, __webpack_require__) {
5568
5569"use strict";
5570
5571// 19.1.3.6 Object.prototype.toString()
5572var classof = __webpack_require__(51);
5573var test = {};
5574test[__webpack_require__(5)('toStringTag')] = 'z';
5575if (test + '' != '[object z]') {
5576 __webpack_require__(13)(Object.prototype, 'toString', function toString() {
5577 return '[object ' + classof(this) + ']';
5578 }, true);
5579}
5580
5581
5582/***/ }),
5583/* 160 */
5584/***/ (function(module, exports, __webpack_require__) {
5585
5586// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)
5587var $export = __webpack_require__(0);
5588
5589$export($export.P, 'Function', { bind: __webpack_require__(102) });
5590
5591
5592/***/ }),
5593/* 161 */
5594/***/ (function(module, exports, __webpack_require__) {
5595
5596var dP = __webpack_require__(7).f;
5597var FProto = Function.prototype;
5598var nameRE = /^\s*function ([^ (]*)/;
5599var NAME = 'name';
5600
5601// 19.2.4.2 name
5602NAME in FProto || __webpack_require__(6) && dP(FProto, NAME, {
5603 configurable: true,
5604 get: function () {
5605 try {
5606 return ('' + this).match(nameRE)[1];
5607 } catch (e) {
5608 return '';
5609 }
5610 }
5611});
5612
5613
5614/***/ }),
5615/* 162 */
5616/***/ (function(module, exports, __webpack_require__) {
5617
5618"use strict";
5619
5620var isObject = __webpack_require__(4);
5621var getPrototypeOf = __webpack_require__(17);
5622var HAS_INSTANCE = __webpack_require__(5)('hasInstance');
5623var FunctionProto = Function.prototype;
5624// 19.2.3.6 Function.prototype[@@hasInstance](V)
5625if (!(HAS_INSTANCE in FunctionProto)) __webpack_require__(7).f(FunctionProto, HAS_INSTANCE, { value: function (O) {
5626 if (typeof this != 'function' || !isObject(O)) return false;
5627 if (!isObject(this.prototype)) return O instanceof this;
5628 // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:
5629 while (O = getPrototypeOf(O)) if (this.prototype === O) return true;
5630 return false;
5631} });
5632
5633
5634/***/ }),
5635/* 163 */
5636/***/ (function(module, exports, __webpack_require__) {
5637
5638var $export = __webpack_require__(0);
5639var $parseInt = __webpack_require__(104);
5640// 18.2.5 parseInt(string, radix)
5641$export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt });
5642
5643
5644/***/ }),
5645/* 164 */
5646/***/ (function(module, exports, __webpack_require__) {
5647
5648var $export = __webpack_require__(0);
5649var $parseFloat = __webpack_require__(105);
5650// 18.2.4 parseFloat(string)
5651$export($export.G + $export.F * (parseFloat != $parseFloat), { parseFloat: $parseFloat });
5652
5653
5654/***/ }),
5655/* 165 */
5656/***/ (function(module, exports, __webpack_require__) {
5657
5658"use strict";
5659
5660var global = __webpack_require__(2);
5661var has = __webpack_require__(11);
5662var cof = __webpack_require__(20);
5663var inheritIfRequired = __webpack_require__(75);
5664var toPrimitive = __webpack_require__(23);
5665var fails = __webpack_require__(3);
5666var gOPN = __webpack_require__(38).f;
5667var gOPD = __webpack_require__(16).f;
5668var dP = __webpack_require__(7).f;
5669var $trim = __webpack_require__(44).trim;
5670var NUMBER = 'Number';
5671var $Number = global[NUMBER];
5672var Base = $Number;
5673var proto = $Number.prototype;
5674// Opera ~12 has broken Object#toString
5675var BROKEN_COF = cof(__webpack_require__(37)(proto)) == NUMBER;
5676var TRIM = 'trim' in String.prototype;
5677
5678// 7.1.3 ToNumber(argument)
5679var toNumber = function (argument) {
5680 var it = toPrimitive(argument, false);
5681 if (typeof it == 'string' && it.length > 2) {
5682 it = TRIM ? it.trim() : $trim(it, 3);
5683 var first = it.charCodeAt(0);
5684 var third, radix, maxCode;
5685 if (first === 43 || first === 45) {
5686 third = it.charCodeAt(2);
5687 if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
5688 } else if (first === 48) {
5689 switch (it.charCodeAt(1)) {
5690 case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i
5691 case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i
5692 default: return +it;
5693 }
5694 for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {
5695 code = digits.charCodeAt(i);
5696 // parseInt parses a string to a first unavailable symbol
5697 // but ToNumber should return NaN if a string contains unavailable symbols
5698 if (code < 48 || code > maxCode) return NaN;
5699 } return parseInt(digits, radix);
5700 }
5701 } return +it;
5702};
5703
5704if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {
5705 $Number = function Number(value) {
5706 var it = arguments.length < 1 ? 0 : value;
5707 var that = this;
5708 return that instanceof $Number
5709 // check on 1..constructor(foo) case
5710 && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)
5711 ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);
5712 };
5713 for (var keys = __webpack_require__(6) ? gOPN(Base) : (
5714 // ES3:
5715 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
5716 // ES6 (in case, if modules with ES6 Number statics required before):
5717 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
5718 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
5719 ).split(','), j = 0, key; keys.length > j; j++) {
5720 if (has(Base, key = keys[j]) && !has($Number, key)) {
5721 dP($Number, key, gOPD(Base, key));
5722 }
5723 }
5724 $Number.prototype = proto;
5725 proto.constructor = $Number;
5726 __webpack_require__(13)(global, NUMBER, $Number);
5727}
5728
5729
5730/***/ }),
5731/* 166 */
5732/***/ (function(module, exports, __webpack_require__) {
5733
5734"use strict";
5735
5736var $export = __webpack_require__(0);
5737var toInteger = __webpack_require__(25);
5738var aNumberValue = __webpack_require__(106);
5739var repeat = __webpack_require__(76);
5740var $toFixed = 1.0.toFixed;
5741var floor = Math.floor;
5742var data = [0, 0, 0, 0, 0, 0];
5743var ERROR = 'Number.toFixed: incorrect invocation!';
5744var ZERO = '0';
5745
5746var multiply = function (n, c) {
5747 var i = -1;
5748 var c2 = c;
5749 while (++i < 6) {
5750 c2 += n * data[i];
5751 data[i] = c2 % 1e7;
5752 c2 = floor(c2 / 1e7);
5753 }
5754};
5755var divide = function (n) {
5756 var i = 6;
5757 var c = 0;
5758 while (--i >= 0) {
5759 c += data[i];
5760 data[i] = floor(c / n);
5761 c = (c % n) * 1e7;
5762 }
5763};
5764var numToString = function () {
5765 var i = 6;
5766 var s = '';
5767 while (--i >= 0) {
5768 if (s !== '' || i === 0 || data[i] !== 0) {
5769 var t = String(data[i]);
5770 s = s === '' ? t : s + repeat.call(ZERO, 7 - t.length) + t;
5771 }
5772 } return s;
5773};
5774var pow = function (x, n, acc) {
5775 return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);
5776};
5777var log = function (x) {
5778 var n = 0;
5779 var x2 = x;
5780 while (x2 >= 4096) {
5781 n += 12;
5782 x2 /= 4096;
5783 }
5784 while (x2 >= 2) {
5785 n += 1;
5786 x2 /= 2;
5787 } return n;
5788};
5789
5790$export($export.P + $export.F * (!!$toFixed && (
5791 0.00008.toFixed(3) !== '0.000' ||
5792 0.9.toFixed(0) !== '1' ||
5793 1.255.toFixed(2) !== '1.25' ||
5794 1000000000000000128.0.toFixed(0) !== '1000000000000000128'
5795) || !__webpack_require__(3)(function () {
5796 // V8 ~ Android 4.3-
5797 $toFixed.call({});
5798})), 'Number', {
5799 toFixed: function toFixed(fractionDigits) {
5800 var x = aNumberValue(this, ERROR);
5801 var f = toInteger(fractionDigits);
5802 var s = '';
5803 var m = ZERO;
5804 var e, z, j, k;
5805 if (f < 0 || f > 20) throw RangeError(ERROR);
5806 // eslint-disable-next-line no-self-compare
5807 if (x != x) return 'NaN';
5808 if (x <= -1e21 || x >= 1e21) return String(x);
5809 if (x < 0) {
5810 s = '-';
5811 x = -x;
5812 }
5813 if (x > 1e-21) {
5814 e = log(x * pow(2, 69, 1)) - 69;
5815 z = e < 0 ? x * pow(2, -e, 1) : x / pow(2, e, 1);
5816 z *= 0x10000000000000;
5817 e = 52 - e;
5818 if (e > 0) {
5819 multiply(0, z);
5820 j = f;
5821 while (j >= 7) {
5822 multiply(1e7, 0);
5823 j -= 7;
5824 }
5825 multiply(pow(10, j, 1), 0);
5826 j = e - 1;
5827 while (j >= 23) {
5828 divide(1 << 23);
5829 j -= 23;
5830 }
5831 divide(1 << j);
5832 multiply(1, 1);
5833 divide(2);
5834 m = numToString();
5835 } else {
5836 multiply(0, z);
5837 multiply(1 << -e, 0);
5838 m = numToString() + repeat.call(ZERO, f);
5839 }
5840 }
5841 if (f > 0) {
5842 k = m.length;
5843 m = s + (k <= f ? '0.' + repeat.call(ZERO, f - k) + m : m.slice(0, k - f) + '.' + m.slice(k - f));
5844 } else {
5845 m = s + m;
5846 } return m;
5847 }
5848});
5849
5850
5851/***/ }),
5852/* 167 */
5853/***/ (function(module, exports, __webpack_require__) {
5854
5855"use strict";
5856
5857var $export = __webpack_require__(0);
5858var $fails = __webpack_require__(3);
5859var aNumberValue = __webpack_require__(106);
5860var $toPrecision = 1.0.toPrecision;
5861
5862$export($export.P + $export.F * ($fails(function () {
5863 // IE7-
5864 return $toPrecision.call(1, undefined) !== '1';
5865}) || !$fails(function () {
5866 // V8 ~ Android 4.3-
5867 $toPrecision.call({});
5868})), 'Number', {
5869 toPrecision: function toPrecision(precision) {
5870 var that = aNumberValue(this, 'Number#toPrecision: incorrect invocation!');
5871 return precision === undefined ? $toPrecision.call(that) : $toPrecision.call(that, precision);
5872 }
5873});
5874
5875
5876/***/ }),
5877/* 168 */
5878/***/ (function(module, exports, __webpack_require__) {
5879
5880// 20.1.2.1 Number.EPSILON
5881var $export = __webpack_require__(0);
5882
5883$export($export.S, 'Number', { EPSILON: Math.pow(2, -52) });
5884
5885
5886/***/ }),
5887/* 169 */
5888/***/ (function(module, exports, __webpack_require__) {
5889
5890// 20.1.2.2 Number.isFinite(number)
5891var $export = __webpack_require__(0);
5892var _isFinite = __webpack_require__(2).isFinite;
5893
5894$export($export.S, 'Number', {
5895 isFinite: function isFinite(it) {
5896 return typeof it == 'number' && _isFinite(it);
5897 }
5898});
5899
5900
5901/***/ }),
5902/* 170 */
5903/***/ (function(module, exports, __webpack_require__) {
5904
5905// 20.1.2.3 Number.isInteger(number)
5906var $export = __webpack_require__(0);
5907
5908$export($export.S, 'Number', { isInteger: __webpack_require__(107) });
5909
5910
5911/***/ }),
5912/* 171 */
5913/***/ (function(module, exports, __webpack_require__) {
5914
5915// 20.1.2.4 Number.isNaN(number)
5916var $export = __webpack_require__(0);
5917
5918$export($export.S, 'Number', {
5919 isNaN: function isNaN(number) {
5920 // eslint-disable-next-line no-self-compare
5921 return number != number;
5922 }
5923});
5924
5925
5926/***/ }),
5927/* 172 */
5928/***/ (function(module, exports, __webpack_require__) {
5929
5930// 20.1.2.5 Number.isSafeInteger(number)
5931var $export = __webpack_require__(0);
5932var isInteger = __webpack_require__(107);
5933var abs = Math.abs;
5934
5935$export($export.S, 'Number', {
5936 isSafeInteger: function isSafeInteger(number) {
5937 return isInteger(number) && abs(number) <= 0x1fffffffffffff;
5938 }
5939});
5940
5941
5942/***/ }),
5943/* 173 */
5944/***/ (function(module, exports, __webpack_require__) {
5945
5946// 20.1.2.6 Number.MAX_SAFE_INTEGER
5947var $export = __webpack_require__(0);
5948
5949$export($export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff });
5950
5951
5952/***/ }),
5953/* 174 */
5954/***/ (function(module, exports, __webpack_require__) {
5955
5956// 20.1.2.10 Number.MIN_SAFE_INTEGER
5957var $export = __webpack_require__(0);
5958
5959$export($export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff });
5960
5961
5962/***/ }),
5963/* 175 */
5964/***/ (function(module, exports, __webpack_require__) {
5965
5966var $export = __webpack_require__(0);
5967var $parseFloat = __webpack_require__(105);
5968// 20.1.2.12 Number.parseFloat(string)
5969$export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', { parseFloat: $parseFloat });
5970
5971
5972/***/ }),
5973/* 176 */
5974/***/ (function(module, exports, __webpack_require__) {
5975
5976var $export = __webpack_require__(0);
5977var $parseInt = __webpack_require__(104);
5978// 20.1.2.13 Number.parseInt(string, radix)
5979$export($export.S + $export.F * (Number.parseInt != $parseInt), 'Number', { parseInt: $parseInt });
5980
5981
5982/***/ }),
5983/* 177 */
5984/***/ (function(module, exports, __webpack_require__) {
5985
5986// 20.2.2.3 Math.acosh(x)
5987var $export = __webpack_require__(0);
5988var log1p = __webpack_require__(108);
5989var sqrt = Math.sqrt;
5990var $acosh = Math.acosh;
5991
5992$export($export.S + $export.F * !($acosh
5993 // V8 bug: https://code.google.com/p/v8/issues/detail?id=3509
5994 && Math.floor($acosh(Number.MAX_VALUE)) == 710
5995 // Tor Browser bug: Math.acosh(Infinity) -> NaN
5996 && $acosh(Infinity) == Infinity
5997), 'Math', {
5998 acosh: function acosh(x) {
5999 return (x = +x) < 1 ? NaN : x > 94906265.62425156
6000 ? Math.log(x) + Math.LN2
6001 : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1));
6002 }
6003});
6004
6005
6006/***/ }),
6007/* 178 */
6008/***/ (function(module, exports, __webpack_require__) {
6009
6010// 20.2.2.5 Math.asinh(x)
6011var $export = __webpack_require__(0);
6012var $asinh = Math.asinh;
6013
6014function asinh(x) {
6015 return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1));
6016}
6017
6018// Tor Browser bug: Math.asinh(0) -> -0
6019$export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh });
6020
6021
6022/***/ }),
6023/* 179 */
6024/***/ (function(module, exports, __webpack_require__) {
6025
6026// 20.2.2.7 Math.atanh(x)
6027var $export = __webpack_require__(0);
6028var $atanh = Math.atanh;
6029
6030// Tor Browser bug: Math.atanh(-0) -> 0
6031$export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', {
6032 atanh: function atanh(x) {
6033 return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2;
6034 }
6035});
6036
6037
6038/***/ }),
6039/* 180 */
6040/***/ (function(module, exports, __webpack_require__) {
6041
6042// 20.2.2.9 Math.cbrt(x)
6043var $export = __webpack_require__(0);
6044var sign = __webpack_require__(77);
6045
6046$export($export.S, 'Math', {
6047 cbrt: function cbrt(x) {
6048 return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3);
6049 }
6050});
6051
6052
6053/***/ }),
6054/* 181 */
6055/***/ (function(module, exports, __webpack_require__) {
6056
6057// 20.2.2.11 Math.clz32(x)
6058var $export = __webpack_require__(0);
6059
6060$export($export.S, 'Math', {
6061 clz32: function clz32(x) {
6062 return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32;
6063 }
6064});
6065
6066
6067/***/ }),
6068/* 182 */
6069/***/ (function(module, exports, __webpack_require__) {
6070
6071// 20.2.2.12 Math.cosh(x)
6072var $export = __webpack_require__(0);
6073var exp = Math.exp;
6074
6075$export($export.S, 'Math', {
6076 cosh: function cosh(x) {
6077 return (exp(x = +x) + exp(-x)) / 2;
6078 }
6079});
6080
6081
6082/***/ }),
6083/* 183 */
6084/***/ (function(module, exports, __webpack_require__) {
6085
6086// 20.2.2.14 Math.expm1(x)
6087var $export = __webpack_require__(0);
6088var $expm1 = __webpack_require__(78);
6089
6090$export($export.S + $export.F * ($expm1 != Math.expm1), 'Math', { expm1: $expm1 });
6091
6092
6093/***/ }),
6094/* 184 */
6095/***/ (function(module, exports, __webpack_require__) {
6096
6097// 20.2.2.16 Math.fround(x)
6098var $export = __webpack_require__(0);
6099
6100$export($export.S, 'Math', { fround: __webpack_require__(109) });
6101
6102
6103/***/ }),
6104/* 185 */
6105/***/ (function(module, exports, __webpack_require__) {
6106
6107// 20.2.2.17 Math.hypot([value1[, value2[, … ]]])
6108var $export = __webpack_require__(0);
6109var abs = Math.abs;
6110
6111$export($export.S, 'Math', {
6112 hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars
6113 var sum = 0;
6114 var i = 0;
6115 var aLen = arguments.length;
6116 var larg = 0;
6117 var arg, div;
6118 while (i < aLen) {
6119 arg = abs(arguments[i++]);
6120 if (larg < arg) {
6121 div = larg / arg;
6122 sum = sum * div * div + 1;
6123 larg = arg;
6124 } else if (arg > 0) {
6125 div = arg / larg;
6126 sum += div * div;
6127 } else sum += arg;
6128 }
6129 return larg === Infinity ? Infinity : larg * Math.sqrt(sum);
6130 }
6131});
6132
6133
6134/***/ }),
6135/* 186 */
6136/***/ (function(module, exports, __webpack_require__) {
6137
6138// 20.2.2.18 Math.imul(x, y)
6139var $export = __webpack_require__(0);
6140var $imul = Math.imul;
6141
6142// some WebKit versions fails with big numbers, some has wrong arity
6143$export($export.S + $export.F * __webpack_require__(3)(function () {
6144 return $imul(0xffffffff, 5) != -5 || $imul.length != 2;
6145}), 'Math', {
6146 imul: function imul(x, y) {
6147 var UINT16 = 0xffff;
6148 var xn = +x;
6149 var yn = +y;
6150 var xl = UINT16 & xn;
6151 var yl = UINT16 & yn;
6152 return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0);
6153 }
6154});
6155
6156
6157/***/ }),
6158/* 187 */
6159/***/ (function(module, exports, __webpack_require__) {
6160
6161// 20.2.2.21 Math.log10(x)
6162var $export = __webpack_require__(0);
6163
6164$export($export.S, 'Math', {
6165 log10: function log10(x) {
6166 return Math.log(x) * Math.LOG10E;
6167 }
6168});
6169
6170
6171/***/ }),
6172/* 188 */
6173/***/ (function(module, exports, __webpack_require__) {
6174
6175// 20.2.2.20 Math.log1p(x)
6176var $export = __webpack_require__(0);
6177
6178$export($export.S, 'Math', { log1p: __webpack_require__(108) });
6179
6180
6181/***/ }),
6182/* 189 */
6183/***/ (function(module, exports, __webpack_require__) {
6184
6185// 20.2.2.22 Math.log2(x)
6186var $export = __webpack_require__(0);
6187
6188$export($export.S, 'Math', {
6189 log2: function log2(x) {
6190 return Math.log(x) / Math.LN2;
6191 }
6192});
6193
6194
6195/***/ }),
6196/* 190 */
6197/***/ (function(module, exports, __webpack_require__) {
6198
6199// 20.2.2.28 Math.sign(x)
6200var $export = __webpack_require__(0);
6201
6202$export($export.S, 'Math', { sign: __webpack_require__(77) });
6203
6204
6205/***/ }),
6206/* 191 */
6207/***/ (function(module, exports, __webpack_require__) {
6208
6209// 20.2.2.30 Math.sinh(x)
6210var $export = __webpack_require__(0);
6211var expm1 = __webpack_require__(78);
6212var exp = Math.exp;
6213
6214// V8 near Chromium 38 has a problem with very small numbers
6215$export($export.S + $export.F * __webpack_require__(3)(function () {
6216 return !Math.sinh(-2e-17) != -2e-17;
6217}), 'Math', {
6218 sinh: function sinh(x) {
6219 return Math.abs(x = +x) < 1
6220 ? (expm1(x) - expm1(-x)) / 2
6221 : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2);
6222 }
6223});
6224
6225
6226/***/ }),
6227/* 192 */
6228/***/ (function(module, exports, __webpack_require__) {
6229
6230// 20.2.2.33 Math.tanh(x)
6231var $export = __webpack_require__(0);
6232var expm1 = __webpack_require__(78);
6233var exp = Math.exp;
6234
6235$export($export.S, 'Math', {
6236 tanh: function tanh(x) {
6237 var a = expm1(x = +x);
6238 var b = expm1(-x);
6239 return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x));
6240 }
6241});
6242
6243
6244/***/ }),
6245/* 193 */
6246/***/ (function(module, exports, __webpack_require__) {
6247
6248// 20.2.2.34 Math.trunc(x)
6249var $export = __webpack_require__(0);
6250
6251$export($export.S, 'Math', {
6252 trunc: function trunc(it) {
6253 return (it > 0 ? Math.floor : Math.ceil)(it);
6254 }
6255});
6256
6257
6258/***/ }),
6259/* 194 */
6260/***/ (function(module, exports, __webpack_require__) {
6261
6262var $export = __webpack_require__(0);
6263var toAbsoluteIndex = __webpack_require__(36);
6264var fromCharCode = String.fromCharCode;
6265var $fromCodePoint = String.fromCodePoint;
6266
6267// length should be 1, old FF problem
6268$export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', {
6269 // 21.1.2.2 String.fromCodePoint(...codePoints)
6270 fromCodePoint: function fromCodePoint(x) { // eslint-disable-line no-unused-vars
6271 var res = [];
6272 var aLen = arguments.length;
6273 var i = 0;
6274 var code;
6275 while (aLen > i) {
6276 code = +arguments[i++];
6277 if (toAbsoluteIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point');
6278 res.push(code < 0x10000
6279 ? fromCharCode(code)
6280 : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)
6281 );
6282 } return res.join('');
6283 }
6284});
6285
6286
6287/***/ }),
6288/* 195 */
6289/***/ (function(module, exports, __webpack_require__) {
6290
6291var $export = __webpack_require__(0);
6292var toIObject = __webpack_require__(15);
6293var toLength = __webpack_require__(8);
6294
6295$export($export.S, 'String', {
6296 // 21.1.2.4 String.raw(callSite, ...substitutions)
6297 raw: function raw(callSite) {
6298 var tpl = toIObject(callSite.raw);
6299 var len = toLength(tpl.length);
6300 var aLen = arguments.length;
6301 var res = [];
6302 var i = 0;
6303 while (len > i) {
6304 res.push(String(tpl[i++]));
6305 if (i < aLen) res.push(String(arguments[i]));
6306 } return res.join('');
6307 }
6308});
6309
6310
6311/***/ }),
6312/* 196 */
6313/***/ (function(module, exports, __webpack_require__) {
6314
6315"use strict";
6316
6317// 21.1.3.25 String.prototype.trim()
6318__webpack_require__(44)('trim', function ($trim) {
6319 return function trim() {
6320 return $trim(this, 3);
6321 };
6322});
6323
6324
6325/***/ }),
6326/* 197 */
6327/***/ (function(module, exports, __webpack_require__) {
6328
6329"use strict";
6330
6331var $at = __webpack_require__(79)(true);
6332
6333// 21.1.3.27 String.prototype[@@iterator]()
6334__webpack_require__(80)(String, 'String', function (iterated) {
6335 this._t = String(iterated); // target
6336 this._i = 0; // next index
6337// 21.1.5.2.1 %StringIteratorPrototype%.next()
6338}, function () {
6339 var O = this._t;
6340 var index = this._i;
6341 var point;
6342 if (index >= O.length) return { value: undefined, done: true };
6343 point = $at(O, index);
6344 this._i += point.length;
6345 return { value: point, done: false };
6346});
6347
6348
6349/***/ }),
6350/* 198 */
6351/***/ (function(module, exports, __webpack_require__) {
6352
6353"use strict";
6354
6355var $export = __webpack_require__(0);
6356var $at = __webpack_require__(79)(false);
6357$export($export.P, 'String', {
6358 // 21.1.3.3 String.prototype.codePointAt(pos)
6359 codePointAt: function codePointAt(pos) {
6360 return $at(this, pos);
6361 }
6362});
6363
6364
6365/***/ }),
6366/* 199 */
6367/***/ (function(module, exports, __webpack_require__) {
6368
6369"use strict";
6370// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition])
6371
6372var $export = __webpack_require__(0);
6373var toLength = __webpack_require__(8);
6374var context = __webpack_require__(82);
6375var ENDS_WITH = 'endsWith';
6376var $endsWith = ''[ENDS_WITH];
6377
6378$export($export.P + $export.F * __webpack_require__(83)(ENDS_WITH), 'String', {
6379 endsWith: function endsWith(searchString /* , endPosition = @length */) {
6380 var that = context(this, searchString, ENDS_WITH);
6381 var endPosition = arguments.length > 1 ? arguments[1] : undefined;
6382 var len = toLength(that.length);
6383 var end = endPosition === undefined ? len : Math.min(toLength(endPosition), len);
6384 var search = String(searchString);
6385 return $endsWith
6386 ? $endsWith.call(that, search, end)
6387 : that.slice(end - search.length, end) === search;
6388 }
6389});
6390
6391
6392/***/ }),
6393/* 200 */
6394/***/ (function(module, exports, __webpack_require__) {
6395
6396"use strict";
6397// 21.1.3.7 String.prototype.includes(searchString, position = 0)
6398
6399var $export = __webpack_require__(0);
6400var context = __webpack_require__(82);
6401var INCLUDES = 'includes';
6402
6403$export($export.P + $export.F * __webpack_require__(83)(INCLUDES), 'String', {
6404 includes: function includes(searchString /* , position = 0 */) {
6405 return !!~context(this, searchString, INCLUDES)
6406 .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
6407 }
6408});
6409
6410
6411/***/ }),
6412/* 201 */
6413/***/ (function(module, exports, __webpack_require__) {
6414
6415var $export = __webpack_require__(0);
6416
6417$export($export.P, 'String', {
6418 // 21.1.3.13 String.prototype.repeat(count)
6419 repeat: __webpack_require__(76)
6420});
6421
6422
6423/***/ }),
6424/* 202 */
6425/***/ (function(module, exports, __webpack_require__) {
6426
6427"use strict";
6428// 21.1.3.18 String.prototype.startsWith(searchString [, position ])
6429
6430var $export = __webpack_require__(0);
6431var toLength = __webpack_require__(8);
6432var context = __webpack_require__(82);
6433var STARTS_WITH = 'startsWith';
6434var $startsWith = ''[STARTS_WITH];
6435
6436$export($export.P + $export.F * __webpack_require__(83)(STARTS_WITH), 'String', {
6437 startsWith: function startsWith(searchString /* , position = 0 */) {
6438 var that = context(this, searchString, STARTS_WITH);
6439 var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length));
6440 var search = String(searchString);
6441 return $startsWith
6442 ? $startsWith.call(that, search, index)
6443 : that.slice(index, index + search.length) === search;
6444 }
6445});
6446
6447
6448/***/ }),
6449/* 203 */
6450/***/ (function(module, exports, __webpack_require__) {
6451
6452"use strict";
6453
6454// B.2.3.2 String.prototype.anchor(name)
6455__webpack_require__(14)('anchor', function (createHTML) {
6456 return function anchor(name) {
6457 return createHTML(this, 'a', 'name', name);
6458 };
6459});
6460
6461
6462/***/ }),
6463/* 204 */
6464/***/ (function(module, exports, __webpack_require__) {
6465
6466"use strict";
6467
6468// B.2.3.3 String.prototype.big()
6469__webpack_require__(14)('big', function (createHTML) {
6470 return function big() {
6471 return createHTML(this, 'big', '', '');
6472 };
6473});
6474
6475
6476/***/ }),
6477/* 205 */
6478/***/ (function(module, exports, __webpack_require__) {
6479
6480"use strict";
6481
6482// B.2.3.4 String.prototype.blink()
6483__webpack_require__(14)('blink', function (createHTML) {
6484 return function blink() {
6485 return createHTML(this, 'blink', '', '');
6486 };
6487});
6488
6489
6490/***/ }),
6491/* 206 */
6492/***/ (function(module, exports, __webpack_require__) {
6493
6494"use strict";
6495
6496// B.2.3.5 String.prototype.bold()
6497__webpack_require__(14)('bold', function (createHTML) {
6498 return function bold() {
6499 return createHTML(this, 'b', '', '');
6500 };
6501});
6502
6503
6504/***/ }),
6505/* 207 */
6506/***/ (function(module, exports, __webpack_require__) {
6507
6508"use strict";
6509
6510// B.2.3.6 String.prototype.fixed()
6511__webpack_require__(14)('fixed', function (createHTML) {
6512 return function fixed() {
6513 return createHTML(this, 'tt', '', '');
6514 };
6515});
6516
6517
6518/***/ }),
6519/* 208 */
6520/***/ (function(module, exports, __webpack_require__) {
6521
6522"use strict";
6523
6524// B.2.3.7 String.prototype.fontcolor(color)
6525__webpack_require__(14)('fontcolor', function (createHTML) {
6526 return function fontcolor(color) {
6527 return createHTML(this, 'font', 'color', color);
6528 };
6529});
6530
6531
6532/***/ }),
6533/* 209 */
6534/***/ (function(module, exports, __webpack_require__) {
6535
6536"use strict";
6537
6538// B.2.3.8 String.prototype.fontsize(size)
6539__webpack_require__(14)('fontsize', function (createHTML) {
6540 return function fontsize(size) {
6541 return createHTML(this, 'font', 'size', size);
6542 };
6543});
6544
6545
6546/***/ }),
6547/* 210 */
6548/***/ (function(module, exports, __webpack_require__) {
6549
6550"use strict";
6551
6552// B.2.3.9 String.prototype.italics()
6553__webpack_require__(14)('italics', function (createHTML) {
6554 return function italics() {
6555 return createHTML(this, 'i', '', '');
6556 };
6557});
6558
6559
6560/***/ }),
6561/* 211 */
6562/***/ (function(module, exports, __webpack_require__) {
6563
6564"use strict";
6565
6566// B.2.3.10 String.prototype.link(url)
6567__webpack_require__(14)('link', function (createHTML) {
6568 return function link(url) {
6569 return createHTML(this, 'a', 'href', url);
6570 };
6571});
6572
6573
6574/***/ }),
6575/* 212 */
6576/***/ (function(module, exports, __webpack_require__) {
6577
6578"use strict";
6579
6580// B.2.3.11 String.prototype.small()
6581__webpack_require__(14)('small', function (createHTML) {
6582 return function small() {
6583 return createHTML(this, 'small', '', '');
6584 };
6585});
6586
6587
6588/***/ }),
6589/* 213 */
6590/***/ (function(module, exports, __webpack_require__) {
6591
6592"use strict";
6593
6594// B.2.3.12 String.prototype.strike()
6595__webpack_require__(14)('strike', function (createHTML) {
6596 return function strike() {
6597 return createHTML(this, 'strike', '', '');
6598 };
6599});
6600
6601
6602/***/ }),
6603/* 214 */
6604/***/ (function(module, exports, __webpack_require__) {
6605
6606"use strict";
6607
6608// B.2.3.13 String.prototype.sub()
6609__webpack_require__(14)('sub', function (createHTML) {
6610 return function sub() {
6611 return createHTML(this, 'sub', '', '');
6612 };
6613});
6614
6615
6616/***/ }),
6617/* 215 */
6618/***/ (function(module, exports, __webpack_require__) {
6619
6620"use strict";
6621
6622// B.2.3.14 String.prototype.sup()
6623__webpack_require__(14)('sup', function (createHTML) {
6624 return function sup() {
6625 return createHTML(this, 'sup', '', '');
6626 };
6627});
6628
6629
6630/***/ }),
6631/* 216 */
6632/***/ (function(module, exports, __webpack_require__) {
6633
6634// 20.3.3.1 / 15.9.4.4 Date.now()
6635var $export = __webpack_require__(0);
6636
6637$export($export.S, 'Date', { now: function () { return new Date().getTime(); } });
6638
6639
6640/***/ }),
6641/* 217 */
6642/***/ (function(module, exports, __webpack_require__) {
6643
6644"use strict";
6645
6646var $export = __webpack_require__(0);
6647var toObject = __webpack_require__(9);
6648var toPrimitive = __webpack_require__(23);
6649
6650$export($export.P + $export.F * __webpack_require__(3)(function () {
6651 return new Date(NaN).toJSON() !== null
6652 || Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1;
6653}), 'Date', {
6654 // eslint-disable-next-line no-unused-vars
6655 toJSON: function toJSON(key) {
6656 var O = toObject(this);
6657 var pv = toPrimitive(O);
6658 return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString();
6659 }
6660});
6661
6662
6663/***/ }),
6664/* 218 */
6665/***/ (function(module, exports, __webpack_require__) {
6666
6667// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()
6668var $export = __webpack_require__(0);
6669var toISOString = __webpack_require__(219);
6670
6671// PhantomJS / old WebKit has a broken implementations
6672$export($export.P + $export.F * (Date.prototype.toISOString !== toISOString), 'Date', {
6673 toISOString: toISOString
6674});
6675
6676
6677/***/ }),
6678/* 219 */
6679/***/ (function(module, exports, __webpack_require__) {
6680
6681"use strict";
6682
6683// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()
6684var fails = __webpack_require__(3);
6685var getTime = Date.prototype.getTime;
6686var $toISOString = Date.prototype.toISOString;
6687
6688var lz = function (num) {
6689 return num > 9 ? num : '0' + num;
6690};
6691
6692// PhantomJS / old WebKit has a broken implementations
6693module.exports = (fails(function () {
6694 return $toISOString.call(new Date(-5e13 - 1)) != '0385-07-25T07:06:39.999Z';
6695}) || !fails(function () {
6696 $toISOString.call(new Date(NaN));
6697})) ? function toISOString() {
6698 if (!isFinite(getTime.call(this))) throw RangeError('Invalid time value');
6699 var d = this;
6700 var y = d.getUTCFullYear();
6701 var m = d.getUTCMilliseconds();
6702 var s = y < 0 ? '-' : y > 9999 ? '+' : '';
6703 return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) +
6704 '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) +
6705 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) +
6706 ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z';
6707} : $toISOString;
6708
6709
6710/***/ }),
6711/* 220 */
6712/***/ (function(module, exports, __webpack_require__) {
6713
6714var DateProto = Date.prototype;
6715var INVALID_DATE = 'Invalid Date';
6716var TO_STRING = 'toString';
6717var $toString = DateProto[TO_STRING];
6718var getTime = DateProto.getTime;
6719if (new Date(NaN) + '' != INVALID_DATE) {
6720 __webpack_require__(13)(DateProto, TO_STRING, function toString() {
6721 var value = getTime.call(this);
6722 // eslint-disable-next-line no-self-compare
6723 return value === value ? $toString.call(this) : INVALID_DATE;
6724 });
6725}
6726
6727
6728/***/ }),
6729/* 221 */
6730/***/ (function(module, exports, __webpack_require__) {
6731
6732var TO_PRIMITIVE = __webpack_require__(5)('toPrimitive');
6733var proto = Date.prototype;
6734
6735if (!(TO_PRIMITIVE in proto)) __webpack_require__(12)(proto, TO_PRIMITIVE, __webpack_require__(222));
6736
6737
6738/***/ }),
6739/* 222 */
6740/***/ (function(module, exports, __webpack_require__) {
6741
6742"use strict";
6743
6744var anObject = __webpack_require__(1);
6745var toPrimitive = __webpack_require__(23);
6746var NUMBER = 'number';
6747
6748module.exports = function (hint) {
6749 if (hint !== 'string' && hint !== NUMBER && hint !== 'default') throw TypeError('Incorrect hint');
6750 return toPrimitive(anObject(this), hint != NUMBER);
6751};
6752
6753
6754/***/ }),
6755/* 223 */
6756/***/ (function(module, exports, __webpack_require__) {
6757
6758// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
6759var $export = __webpack_require__(0);
6760
6761$export($export.S, 'Array', { isArray: __webpack_require__(55) });
6762
6763
6764/***/ }),
6765/* 224 */
6766/***/ (function(module, exports, __webpack_require__) {
6767
6768"use strict";
6769
6770var ctx = __webpack_require__(19);
6771var $export = __webpack_require__(0);
6772var toObject = __webpack_require__(9);
6773var call = __webpack_require__(110);
6774var isArrayIter = __webpack_require__(84);
6775var toLength = __webpack_require__(8);
6776var createProperty = __webpack_require__(85);
6777var getIterFn = __webpack_require__(86);
6778
6779$export($export.S + $export.F * !__webpack_require__(57)(function (iter) { Array.from(iter); }), 'Array', {
6780 // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
6781 from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
6782 var O = toObject(arrayLike);
6783 var C = typeof this == 'function' ? this : Array;
6784 var aLen = arguments.length;
6785 var mapfn = aLen > 1 ? arguments[1] : undefined;
6786 var mapping = mapfn !== undefined;
6787 var index = 0;
6788 var iterFn = getIterFn(O);
6789 var length, result, step, iterator;
6790 if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
6791 // if object isn't iterable or it's array with default iterator - use simple case
6792 if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
6793 for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
6794 createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
6795 }
6796 } else {
6797 length = toLength(O.length);
6798 for (result = new C(length); length > index; index++) {
6799 createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
6800 }
6801 }
6802 result.length = index;
6803 return result;
6804 }
6805});
6806
6807
6808/***/ }),
6809/* 225 */
6810/***/ (function(module, exports, __webpack_require__) {
6811
6812"use strict";
6813
6814var $export = __webpack_require__(0);
6815var createProperty = __webpack_require__(85);
6816
6817// WebKit Array.of isn't generic
6818$export($export.S + $export.F * __webpack_require__(3)(function () {
6819 function F() { /* empty */ }
6820 return !(Array.of.call(F) instanceof F);
6821}), 'Array', {
6822 // 22.1.2.3 Array.of( ...items)
6823 of: function of(/* ...args */) {
6824 var index = 0;
6825 var aLen = arguments.length;
6826 var result = new (typeof this == 'function' ? this : Array)(aLen);
6827 while (aLen > index) createProperty(result, index, arguments[index++]);
6828 result.length = aLen;
6829 return result;
6830 }
6831});
6832
6833
6834/***/ }),
6835/* 226 */
6836/***/ (function(module, exports, __webpack_require__) {
6837
6838"use strict";
6839
6840// 22.1.3.13 Array.prototype.join(separator)
6841var $export = __webpack_require__(0);
6842var toIObject = __webpack_require__(15);
6843var arrayJoin = [].join;
6844
6845// fallback for not array-like strings
6846$export($export.P + $export.F * (__webpack_require__(49) != Object || !__webpack_require__(21)(arrayJoin)), 'Array', {
6847 join: function join(separator) {
6848 return arrayJoin.call(toIObject(this), separator === undefined ? ',' : separator);
6849 }
6850});
6851
6852
6853/***/ }),
6854/* 227 */
6855/***/ (function(module, exports, __webpack_require__) {
6856
6857"use strict";
6858
6859var $export = __webpack_require__(0);
6860var html = __webpack_require__(72);
6861var cof = __webpack_require__(20);
6862var toAbsoluteIndex = __webpack_require__(36);
6863var toLength = __webpack_require__(8);
6864var arraySlice = [].slice;
6865
6866// fallback for not array-like ES3 strings and DOM objects
6867$export($export.P + $export.F * __webpack_require__(3)(function () {
6868 if (html) arraySlice.call(html);
6869}), 'Array', {
6870 slice: function slice(begin, end) {
6871 var len = toLength(this.length);
6872 var klass = cof(this);
6873 end = end === undefined ? len : end;
6874 if (klass == 'Array') return arraySlice.call(this, begin, end);
6875 var start = toAbsoluteIndex(begin, len);
6876 var upTo = toAbsoluteIndex(end, len);
6877 var size = toLength(upTo - start);
6878 var cloned = Array(size);
6879 var i = 0;
6880 for (; i < size; i++) cloned[i] = klass == 'String'
6881 ? this.charAt(start + i)
6882 : this[start + i];
6883 return cloned;
6884 }
6885});
6886
6887
6888/***/ }),
6889/* 228 */
6890/***/ (function(module, exports, __webpack_require__) {
6891
6892"use strict";
6893
6894var $export = __webpack_require__(0);
6895var aFunction = __webpack_require__(10);
6896var toObject = __webpack_require__(9);
6897var fails = __webpack_require__(3);
6898var $sort = [].sort;
6899var test = [1, 2, 3];
6900
6901$export($export.P + $export.F * (fails(function () {
6902 // IE8-
6903 test.sort(undefined);
6904}) || !fails(function () {
6905 // V8 bug
6906 test.sort(null);
6907 // Old WebKit
6908}) || !__webpack_require__(21)($sort)), 'Array', {
6909 // 22.1.3.25 Array.prototype.sort(comparefn)
6910 sort: function sort(comparefn) {
6911 return comparefn === undefined
6912 ? $sort.call(toObject(this))
6913 : $sort.call(toObject(this), aFunction(comparefn));
6914 }
6915});
6916
6917
6918/***/ }),
6919/* 229 */
6920/***/ (function(module, exports, __webpack_require__) {
6921
6922"use strict";
6923
6924var $export = __webpack_require__(0);
6925var $forEach = __webpack_require__(27)(0);
6926var STRICT = __webpack_require__(21)([].forEach, true);
6927
6928$export($export.P + $export.F * !STRICT, 'Array', {
6929 // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])
6930 forEach: function forEach(callbackfn /* , thisArg */) {
6931 return $forEach(this, callbackfn, arguments[1]);
6932 }
6933});
6934
6935
6936/***/ }),
6937/* 230 */
6938/***/ (function(module, exports, __webpack_require__) {
6939
6940var isObject = __webpack_require__(4);
6941var isArray = __webpack_require__(55);
6942var SPECIES = __webpack_require__(5)('species');
6943
6944module.exports = function (original) {
6945 var C;
6946 if (isArray(original)) {
6947 C = original.constructor;
6948 // cross-realm fallback
6949 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
6950 if (isObject(C)) {
6951 C = C[SPECIES];
6952 if (C === null) C = undefined;
6953 }
6954 } return C === undefined ? Array : C;
6955};
6956
6957
6958/***/ }),
6959/* 231 */
6960/***/ (function(module, exports, __webpack_require__) {
6961
6962"use strict";
6963
6964var $export = __webpack_require__(0);
6965var $map = __webpack_require__(27)(1);
6966
6967$export($export.P + $export.F * !__webpack_require__(21)([].map, true), 'Array', {
6968 // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])
6969 map: function map(callbackfn /* , thisArg */) {
6970 return $map(this, callbackfn, arguments[1]);
6971 }
6972});
6973
6974
6975/***/ }),
6976/* 232 */
6977/***/ (function(module, exports, __webpack_require__) {
6978
6979"use strict";
6980
6981var $export = __webpack_require__(0);
6982var $filter = __webpack_require__(27)(2);
6983
6984$export($export.P + $export.F * !__webpack_require__(21)([].filter, true), 'Array', {
6985 // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])
6986 filter: function filter(callbackfn /* , thisArg */) {
6987 return $filter(this, callbackfn, arguments[1]);
6988 }
6989});
6990
6991
6992/***/ }),
6993/* 233 */
6994/***/ (function(module, exports, __webpack_require__) {
6995
6996"use strict";
6997
6998var $export = __webpack_require__(0);
6999var $some = __webpack_require__(27)(3);
7000
7001$export($export.P + $export.F * !__webpack_require__(21)([].some, true), 'Array', {
7002 // 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg])
7003 some: function some(callbackfn /* , thisArg */) {
7004 return $some(this, callbackfn, arguments[1]);
7005 }
7006});
7007
7008
7009/***/ }),
7010/* 234 */
7011/***/ (function(module, exports, __webpack_require__) {
7012
7013"use strict";
7014
7015var $export = __webpack_require__(0);
7016var $every = __webpack_require__(27)(4);
7017
7018$export($export.P + $export.F * !__webpack_require__(21)([].every, true), 'Array', {
7019 // 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg])
7020 every: function every(callbackfn /* , thisArg */) {
7021 return $every(this, callbackfn, arguments[1]);
7022 }
7023});
7024
7025
7026/***/ }),
7027/* 235 */
7028/***/ (function(module, exports, __webpack_require__) {
7029
7030"use strict";
7031
7032var $export = __webpack_require__(0);
7033var $reduce = __webpack_require__(111);
7034
7035$export($export.P + $export.F * !__webpack_require__(21)([].reduce, true), 'Array', {
7036 // 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue])
7037 reduce: function reduce(callbackfn /* , initialValue */) {
7038 return $reduce(this, callbackfn, arguments.length, arguments[1], false);
7039 }
7040});
7041
7042
7043/***/ }),
7044/* 236 */
7045/***/ (function(module, exports, __webpack_require__) {
7046
7047"use strict";
7048
7049var $export = __webpack_require__(0);
7050var $reduce = __webpack_require__(111);
7051
7052$export($export.P + $export.F * !__webpack_require__(21)([].reduceRight, true), 'Array', {
7053 // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])
7054 reduceRight: function reduceRight(callbackfn /* , initialValue */) {
7055 return $reduce(this, callbackfn, arguments.length, arguments[1], true);
7056 }
7057});
7058
7059
7060/***/ }),
7061/* 237 */
7062/***/ (function(module, exports, __webpack_require__) {
7063
7064"use strict";
7065
7066var $export = __webpack_require__(0);
7067var $indexOf = __webpack_require__(53)(false);
7068var $native = [].indexOf;
7069var NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;
7070
7071$export($export.P + $export.F * (NEGATIVE_ZERO || !__webpack_require__(21)($native)), 'Array', {
7072 // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])
7073 indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
7074 return NEGATIVE_ZERO
7075 // convert -0 to +0
7076 ? $native.apply(this, arguments) || 0
7077 : $indexOf(this, searchElement, arguments[1]);
7078 }
7079});
7080
7081
7082/***/ }),
7083/* 238 */
7084/***/ (function(module, exports, __webpack_require__) {
7085
7086"use strict";
7087
7088var $export = __webpack_require__(0);
7089var toIObject = __webpack_require__(15);
7090var toInteger = __webpack_require__(25);
7091var toLength = __webpack_require__(8);
7092var $native = [].lastIndexOf;
7093var NEGATIVE_ZERO = !!$native && 1 / [1].lastIndexOf(1, -0) < 0;
7094
7095$export($export.P + $export.F * (NEGATIVE_ZERO || !__webpack_require__(21)($native)), 'Array', {
7096 // 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex])
7097 lastIndexOf: function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) {
7098 // convert -0 to +0
7099 if (NEGATIVE_ZERO) return $native.apply(this, arguments) || 0;
7100 var O = toIObject(this);
7101 var length = toLength(O.length);
7102 var index = length - 1;
7103 if (arguments.length > 1) index = Math.min(index, toInteger(arguments[1]));
7104 if (index < 0) index = length + index;
7105 for (;index >= 0; index--) if (index in O) if (O[index] === searchElement) return index || 0;
7106 return -1;
7107 }
7108});
7109
7110
7111/***/ }),
7112/* 239 */
7113/***/ (function(module, exports, __webpack_require__) {
7114
7115// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
7116var $export = __webpack_require__(0);
7117
7118$export($export.P, 'Array', { copyWithin: __webpack_require__(112) });
7119
7120__webpack_require__(31)('copyWithin');
7121
7122
7123/***/ }),
7124/* 240 */
7125/***/ (function(module, exports, __webpack_require__) {
7126
7127// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
7128var $export = __webpack_require__(0);
7129
7130$export($export.P, 'Array', { fill: __webpack_require__(88) });
7131
7132__webpack_require__(31)('fill');
7133
7134
7135/***/ }),
7136/* 241 */
7137/***/ (function(module, exports, __webpack_require__) {
7138
7139"use strict";
7140
7141// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
7142var $export = __webpack_require__(0);
7143var $find = __webpack_require__(27)(5);
7144var KEY = 'find';
7145var forced = true;
7146// Shouldn't skip holes
7147if (KEY in []) Array(1)[KEY](function () { forced = false; });
7148$export($export.P + $export.F * forced, 'Array', {
7149 find: function find(callbackfn /* , that = undefined */) {
7150 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
7151 }
7152});
7153__webpack_require__(31)(KEY);
7154
7155
7156/***/ }),
7157/* 242 */
7158/***/ (function(module, exports, __webpack_require__) {
7159
7160"use strict";
7161
7162// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)
7163var $export = __webpack_require__(0);
7164var $find = __webpack_require__(27)(6);
7165var KEY = 'findIndex';
7166var forced = true;
7167// Shouldn't skip holes
7168if (KEY in []) Array(1)[KEY](function () { forced = false; });
7169$export($export.P + $export.F * forced, 'Array', {
7170 findIndex: function findIndex(callbackfn /* , that = undefined */) {
7171 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
7172 }
7173});
7174__webpack_require__(31)(KEY);
7175
7176
7177/***/ }),
7178/* 243 */
7179/***/ (function(module, exports, __webpack_require__) {
7180
7181__webpack_require__(39)('Array');
7182
7183
7184/***/ }),
7185/* 244 */
7186/***/ (function(module, exports, __webpack_require__) {
7187
7188var global = __webpack_require__(2);
7189var inheritIfRequired = __webpack_require__(75);
7190var dP = __webpack_require__(7).f;
7191var gOPN = __webpack_require__(38).f;
7192var isRegExp = __webpack_require__(56);
7193var $flags = __webpack_require__(58);
7194var $RegExp = global.RegExp;
7195var Base = $RegExp;
7196var proto = $RegExp.prototype;
7197var re1 = /a/g;
7198var re2 = /a/g;
7199// "new" creates a new object, old webkit buggy here
7200var CORRECT_NEW = new $RegExp(re1) !== re1;
7201
7202if (__webpack_require__(6) && (!CORRECT_NEW || __webpack_require__(3)(function () {
7203 re2[__webpack_require__(5)('match')] = false;
7204 // RegExp constructor can alter flags and IsRegExp works correct with @@match
7205 return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';
7206}))) {
7207 $RegExp = function RegExp(p, f) {
7208 var tiRE = this instanceof $RegExp;
7209 var piRE = isRegExp(p);
7210 var fiU = f === undefined;
7211 return !tiRE && piRE && p.constructor === $RegExp && fiU ? p
7212 : inheritIfRequired(CORRECT_NEW
7213 ? new Base(piRE && !fiU ? p.source : p, f)
7214 : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)
7215 , tiRE ? this : proto, $RegExp);
7216 };
7217 var proxy = function (key) {
7218 key in $RegExp || dP($RegExp, key, {
7219 configurable: true,
7220 get: function () { return Base[key]; },
7221 set: function (it) { Base[key] = it; }
7222 });
7223 };
7224 for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);
7225 proto.constructor = $RegExp;
7226 $RegExp.prototype = proto;
7227 __webpack_require__(13)(global, 'RegExp', $RegExp);
7228}
7229
7230__webpack_require__(39)('RegExp');
7231
7232
7233/***/ }),
7234/* 245 */
7235/***/ (function(module, exports, __webpack_require__) {
7236
7237"use strict";
7238
7239__webpack_require__(114);
7240var anObject = __webpack_require__(1);
7241var $flags = __webpack_require__(58);
7242var DESCRIPTORS = __webpack_require__(6);
7243var TO_STRING = 'toString';
7244var $toString = /./[TO_STRING];
7245
7246var define = function (fn) {
7247 __webpack_require__(13)(RegExp.prototype, TO_STRING, fn, true);
7248};
7249
7250// 21.2.5.14 RegExp.prototype.toString()
7251if (__webpack_require__(3)(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
7252 define(function toString() {
7253 var R = anObject(this);
7254 return '/'.concat(R.source, '/',
7255 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
7256 });
7257// FF44- RegExp#toString has a wrong name
7258} else if ($toString.name != TO_STRING) {
7259 define(function toString() {
7260 return $toString.call(this);
7261 });
7262}
7263
7264
7265/***/ }),
7266/* 246 */
7267/***/ (function(module, exports, __webpack_require__) {
7268
7269// @@match logic
7270__webpack_require__(59)('match', 1, function (defined, MATCH, $match) {
7271 // 21.1.3.11 String.prototype.match(regexp)
7272 return [function match(regexp) {
7273 'use strict';
7274 var O = defined(this);
7275 var fn = regexp == undefined ? undefined : regexp[MATCH];
7276 return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
7277 }, $match];
7278});
7279
7280
7281/***/ }),
7282/* 247 */
7283/***/ (function(module, exports, __webpack_require__) {
7284
7285// @@replace logic
7286__webpack_require__(59)('replace', 2, function (defined, REPLACE, $replace) {
7287 // 21.1.3.14 String.prototype.replace(searchValue, replaceValue)
7288 return [function replace(searchValue, replaceValue) {
7289 'use strict';
7290 var O = defined(this);
7291 var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
7292 return fn !== undefined
7293 ? fn.call(searchValue, O, replaceValue)
7294 : $replace.call(String(O), searchValue, replaceValue);
7295 }, $replace];
7296});
7297
7298
7299/***/ }),
7300/* 248 */
7301/***/ (function(module, exports, __webpack_require__) {
7302
7303// @@search logic
7304__webpack_require__(59)('search', 1, function (defined, SEARCH, $search) {
7305 // 21.1.3.15 String.prototype.search(regexp)
7306 return [function search(regexp) {
7307 'use strict';
7308 var O = defined(this);
7309 var fn = regexp == undefined ? undefined : regexp[SEARCH];
7310 return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
7311 }, $search];
7312});
7313
7314
7315/***/ }),
7316/* 249 */
7317/***/ (function(module, exports, __webpack_require__) {
7318
7319// @@split logic
7320__webpack_require__(59)('split', 2, function (defined, SPLIT, $split) {
7321 'use strict';
7322 var isRegExp = __webpack_require__(56);
7323 var _split = $split;
7324 var $push = [].push;
7325 var $SPLIT = 'split';
7326 var LENGTH = 'length';
7327 var LAST_INDEX = 'lastIndex';
7328 if (
7329 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
7330 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
7331 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
7332 '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
7333 '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
7334 ''[$SPLIT](/.?/)[LENGTH]
7335 ) {
7336 var NPCG = /()??/.exec('')[1] === undefined; // nonparticipating capturing group
7337 // based on es5-shim implementation, need to rework it
7338 $split = function (separator, limit) {
7339 var string = String(this);
7340 if (separator === undefined && limit === 0) return [];
7341 // If `separator` is not a regex, use native split
7342 if (!isRegExp(separator)) return _split.call(string, separator, limit);
7343 var output = [];
7344 var flags = (separator.ignoreCase ? 'i' : '') +
7345 (separator.multiline ? 'm' : '') +
7346 (separator.unicode ? 'u' : '') +
7347 (separator.sticky ? 'y' : '');
7348 var lastLastIndex = 0;
7349 var splitLimit = limit === undefined ? 4294967295 : limit >>> 0;
7350 // Make `global` and avoid `lastIndex` issues by working with a copy
7351 var separatorCopy = new RegExp(separator.source, flags + 'g');
7352 var separator2, match, lastIndex, lastLength, i;
7353 // Doesn't need flags gy, but they don't hurt
7354 if (!NPCG) separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\s)', flags);
7355 while (match = separatorCopy.exec(string)) {
7356 // `separatorCopy.lastIndex` is not reliable cross-browser
7357 lastIndex = match.index + match[0][LENGTH];
7358 if (lastIndex > lastLastIndex) {
7359 output.push(string.slice(lastLastIndex, match.index));
7360 // Fix browsers whose `exec` methods don't consistently return `undefined` for NPCG
7361 // eslint-disable-next-line no-loop-func
7362 if (!NPCG && match[LENGTH] > 1) match[0].replace(separator2, function () {
7363 for (i = 1; i < arguments[LENGTH] - 2; i++) if (arguments[i] === undefined) match[i] = undefined;
7364 });
7365 if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
7366 lastLength = match[0][LENGTH];
7367 lastLastIndex = lastIndex;
7368 if (output[LENGTH] >= splitLimit) break;
7369 }
7370 if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
7371 }
7372 if (lastLastIndex === string[LENGTH]) {
7373 if (lastLength || !separatorCopy.test('')) output.push('');
7374 } else output.push(string.slice(lastLastIndex));
7375 return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
7376 };
7377 // Chakra, V8
7378 } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
7379 $split = function (separator, limit) {
7380 return separator === undefined && limit === 0 ? [] : _split.call(this, separator, limit);
7381 };
7382 }
7383 // 21.1.3.17 String.prototype.split(separator, limit)
7384 return [function split(separator, limit) {
7385 var O = defined(this);
7386 var fn = separator == undefined ? undefined : separator[SPLIT];
7387 return fn !== undefined ? fn.call(separator, O, limit) : $split.call(String(O), separator, limit);
7388 }, $split];
7389});
7390
7391
7392/***/ }),
7393/* 250 */
7394/***/ (function(module, exports, __webpack_require__) {
7395
7396"use strict";
7397
7398var LIBRARY = __webpack_require__(34);
7399var global = __webpack_require__(2);
7400var ctx = __webpack_require__(19);
7401var classof = __webpack_require__(51);
7402var $export = __webpack_require__(0);
7403var isObject = __webpack_require__(4);
7404var aFunction = __webpack_require__(10);
7405var anInstance = __webpack_require__(40);
7406var forOf = __webpack_require__(41);
7407var speciesConstructor = __webpack_require__(60);
7408var task = __webpack_require__(90).set;
7409var microtask = __webpack_require__(91)();
7410var newPromiseCapabilityModule = __webpack_require__(92);
7411var perform = __webpack_require__(115);
7412var promiseResolve = __webpack_require__(116);
7413var PROMISE = 'Promise';
7414var TypeError = global.TypeError;
7415var process = global.process;
7416var $Promise = global[PROMISE];
7417var isNode = classof(process) == 'process';
7418var empty = function () { /* empty */ };
7419var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
7420var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;
7421
7422var USE_NATIVE = !!function () {
7423 try {
7424 // correct subclassing with @@species support
7425 var promise = $Promise.resolve(1);
7426 var FakePromise = (promise.constructor = {})[__webpack_require__(5)('species')] = function (exec) {
7427 exec(empty, empty);
7428 };
7429 // unhandled rejections tracking support, NodeJS Promise without it fails @@species test
7430 return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise;
7431 } catch (e) { /* empty */ }
7432}();
7433
7434// helpers
7435var isThenable = function (it) {
7436 var then;
7437 return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
7438};
7439var notify = function (promise, isReject) {
7440 if (promise._n) return;
7441 promise._n = true;
7442 var chain = promise._c;
7443 microtask(function () {
7444 var value = promise._v;
7445 var ok = promise._s == 1;
7446 var i = 0;
7447 var run = function (reaction) {
7448 var handler = ok ? reaction.ok : reaction.fail;
7449 var resolve = reaction.resolve;
7450 var reject = reaction.reject;
7451 var domain = reaction.domain;
7452 var result, then;
7453 try {
7454 if (handler) {
7455 if (!ok) {
7456 if (promise._h == 2) onHandleUnhandled(promise);
7457 promise._h = 1;
7458 }
7459 if (handler === true) result = value;
7460 else {
7461 if (domain) domain.enter();
7462 result = handler(value);
7463 if (domain) domain.exit();
7464 }
7465 if (result === reaction.promise) {
7466 reject(TypeError('Promise-chain cycle'));
7467 } else if (then = isThenable(result)) {
7468 then.call(result, resolve, reject);
7469 } else resolve(result);
7470 } else reject(value);
7471 } catch (e) {
7472 reject(e);
7473 }
7474 };
7475 while (chain.length > i) run(chain[i++]); // variable length - can't use forEach
7476 promise._c = [];
7477 promise._n = false;
7478 if (isReject && !promise._h) onUnhandled(promise);
7479 });
7480};
7481var onUnhandled = function (promise) {
7482 task.call(global, function () {
7483 var value = promise._v;
7484 var unhandled = isUnhandled(promise);
7485 var result, handler, console;
7486 if (unhandled) {
7487 result = perform(function () {
7488 if (isNode) {
7489 process.emit('unhandledRejection', value, promise);
7490 } else if (handler = global.onunhandledrejection) {
7491 handler({ promise: promise, reason: value });
7492 } else if ((console = global.console) && console.error) {
7493 console.error('Unhandled promise rejection', value);
7494 }
7495 });
7496 // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
7497 promise._h = isNode || isUnhandled(promise) ? 2 : 1;
7498 } promise._a = undefined;
7499 if (unhandled && result.e) throw result.v;
7500 });
7501};
7502var isUnhandled = function (promise) {
7503 if (promise._h == 1) return false;
7504 var chain = promise._a || promise._c;
7505 var i = 0;
7506 var reaction;
7507 while (chain.length > i) {
7508 reaction = chain[i++];
7509 if (reaction.fail || !isUnhandled(reaction.promise)) return false;
7510 } return true;
7511};
7512var onHandleUnhandled = function (promise) {
7513 task.call(global, function () {
7514 var handler;
7515 if (isNode) {
7516 process.emit('rejectionHandled', promise);
7517 } else if (handler = global.onrejectionhandled) {
7518 handler({ promise: promise, reason: promise._v });
7519 }
7520 });
7521};
7522var $reject = function (value) {
7523 var promise = this;
7524 if (promise._d) return;
7525 promise._d = true;
7526 promise = promise._w || promise; // unwrap
7527 promise._v = value;
7528 promise._s = 2;
7529 if (!promise._a) promise._a = promise._c.slice();
7530 notify(promise, true);
7531};
7532var $resolve = function (value) {
7533 var promise = this;
7534 var then;
7535 if (promise._d) return;
7536 promise._d = true;
7537 promise = promise._w || promise; // unwrap
7538 try {
7539 if (promise === value) throw TypeError("Promise can't be resolved itself");
7540 if (then = isThenable(value)) {
7541 microtask(function () {
7542 var wrapper = { _w: promise, _d: false }; // wrap
7543 try {
7544 then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
7545 } catch (e) {
7546 $reject.call(wrapper, e);
7547 }
7548 });
7549 } else {
7550 promise._v = value;
7551 promise._s = 1;
7552 notify(promise, false);
7553 }
7554 } catch (e) {
7555 $reject.call({ _w: promise, _d: false }, e); // wrap
7556 }
7557};
7558
7559// constructor polyfill
7560if (!USE_NATIVE) {
7561 // 25.4.3.1 Promise(executor)
7562 $Promise = function Promise(executor) {
7563 anInstance(this, $Promise, PROMISE, '_h');
7564 aFunction(executor);
7565 Internal.call(this);
7566 try {
7567 executor(ctx($resolve, this, 1), ctx($reject, this, 1));
7568 } catch (err) {
7569 $reject.call(this, err);
7570 }
7571 };
7572 // eslint-disable-next-line no-unused-vars
7573 Internal = function Promise(executor) {
7574 this._c = []; // <- awaiting reactions
7575 this._a = undefined; // <- checked in isUnhandled reactions
7576 this._s = 0; // <- state
7577 this._d = false; // <- done
7578 this._v = undefined; // <- value
7579 this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
7580 this._n = false; // <- notify
7581 };
7582 Internal.prototype = __webpack_require__(42)($Promise.prototype, {
7583 // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
7584 then: function then(onFulfilled, onRejected) {
7585 var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
7586 reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
7587 reaction.fail = typeof onRejected == 'function' && onRejected;
7588 reaction.domain = isNode ? process.domain : undefined;
7589 this._c.push(reaction);
7590 if (this._a) this._a.push(reaction);
7591 if (this._s) notify(this, false);
7592 return reaction.promise;
7593 },
7594 // 25.4.5.1 Promise.prototype.catch(onRejected)
7595 'catch': function (onRejected) {
7596 return this.then(undefined, onRejected);
7597 }
7598 });
7599 OwnPromiseCapability = function () {
7600 var promise = new Internal();
7601 this.promise = promise;
7602 this.resolve = ctx($resolve, promise, 1);
7603 this.reject = ctx($reject, promise, 1);
7604 };
7605 newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
7606 return C === $Promise || C === Wrapper
7607 ? new OwnPromiseCapability(C)
7608 : newGenericPromiseCapability(C);
7609 };
7610}
7611
7612$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });
7613__webpack_require__(43)($Promise, PROMISE);
7614__webpack_require__(39)(PROMISE);
7615Wrapper = __webpack_require__(22)[PROMISE];
7616
7617// statics
7618$export($export.S + $export.F * !USE_NATIVE, PROMISE, {
7619 // 25.4.4.5 Promise.reject(r)
7620 reject: function reject(r) {
7621 var capability = newPromiseCapability(this);
7622 var $$reject = capability.reject;
7623 $$reject(r);
7624 return capability.promise;
7625 }
7626});
7627$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
7628 // 25.4.4.6 Promise.resolve(x)
7629 resolve: function resolve(x) {
7630 return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);
7631 }
7632});
7633$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(57)(function (iter) {
7634 $Promise.all(iter)['catch'](empty);
7635})), PROMISE, {
7636 // 25.4.4.1 Promise.all(iterable)
7637 all: function all(iterable) {
7638 var C = this;
7639 var capability = newPromiseCapability(C);
7640 var resolve = capability.resolve;
7641 var reject = capability.reject;
7642 var result = perform(function () {
7643 var values = [];
7644 var index = 0;
7645 var remaining = 1;
7646 forOf(iterable, false, function (promise) {
7647 var $index = index++;
7648 var alreadyCalled = false;
7649 values.push(undefined);
7650 remaining++;
7651 C.resolve(promise).then(function (value) {
7652 if (alreadyCalled) return;
7653 alreadyCalled = true;
7654 values[$index] = value;
7655 --remaining || resolve(values);
7656 }, reject);
7657 });
7658 --remaining || resolve(values);
7659 });
7660 if (result.e) reject(result.v);
7661 return capability.promise;
7662 },
7663 // 25.4.4.4 Promise.race(iterable)
7664 race: function race(iterable) {
7665 var C = this;
7666 var capability = newPromiseCapability(C);
7667 var reject = capability.reject;
7668 var result = perform(function () {
7669 forOf(iterable, false, function (promise) {
7670 C.resolve(promise).then(capability.resolve, reject);
7671 });
7672 });
7673 if (result.e) reject(result.v);
7674 return capability.promise;
7675 }
7676});
7677
7678
7679/***/ }),
7680/* 251 */
7681/***/ (function(module, exports, __webpack_require__) {
7682
7683"use strict";
7684
7685var weak = __webpack_require__(121);
7686var validate = __webpack_require__(46);
7687var WEAK_SET = 'WeakSet';
7688
7689// 23.4 WeakSet Objects
7690__webpack_require__(61)(WEAK_SET, function (get) {
7691 return function WeakSet() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
7692}, {
7693 // 23.4.3.1 WeakSet.prototype.add(value)
7694 add: function add(value) {
7695 return weak.def(validate(this, WEAK_SET), value, true);
7696 }
7697}, weak, false, true);
7698
7699
7700/***/ }),
7701/* 252 */
7702/***/ (function(module, exports, __webpack_require__) {
7703
7704"use strict";
7705
7706var $export = __webpack_require__(0);
7707var $typed = __webpack_require__(62);
7708var buffer = __webpack_require__(93);
7709var anObject = __webpack_require__(1);
7710var toAbsoluteIndex = __webpack_require__(36);
7711var toLength = __webpack_require__(8);
7712var isObject = __webpack_require__(4);
7713var ArrayBuffer = __webpack_require__(2).ArrayBuffer;
7714var speciesConstructor = __webpack_require__(60);
7715var $ArrayBuffer = buffer.ArrayBuffer;
7716var $DataView = buffer.DataView;
7717var $isView = $typed.ABV && ArrayBuffer.isView;
7718var $slice = $ArrayBuffer.prototype.slice;
7719var VIEW = $typed.VIEW;
7720var ARRAY_BUFFER = 'ArrayBuffer';
7721
7722$export($export.G + $export.W + $export.F * (ArrayBuffer !== $ArrayBuffer), { ArrayBuffer: $ArrayBuffer });
7723
7724$export($export.S + $export.F * !$typed.CONSTR, ARRAY_BUFFER, {
7725 // 24.1.3.1 ArrayBuffer.isView(arg)
7726 isView: function isView(it) {
7727 return $isView && $isView(it) || isObject(it) && VIEW in it;
7728 }
7729});
7730
7731$export($export.P + $export.U + $export.F * __webpack_require__(3)(function () {
7732 return !new $ArrayBuffer(2).slice(1, undefined).byteLength;
7733}), ARRAY_BUFFER, {
7734 // 24.1.4.3 ArrayBuffer.prototype.slice(start, end)
7735 slice: function slice(start, end) {
7736 if ($slice !== undefined && end === undefined) return $slice.call(anObject(this), start); // FF fix
7737 var len = anObject(this).byteLength;
7738 var first = toAbsoluteIndex(start, len);
7739 var final = toAbsoluteIndex(end === undefined ? len : end, len);
7740 var result = new (speciesConstructor(this, $ArrayBuffer))(toLength(final - first));
7741 var viewS = new $DataView(this);
7742 var viewT = new $DataView(result);
7743 var index = 0;
7744 while (first < final) {
7745 viewT.setUint8(index++, viewS.getUint8(first++));
7746 } return result;
7747 }
7748});
7749
7750__webpack_require__(39)(ARRAY_BUFFER);
7751
7752
7753/***/ }),
7754/* 253 */
7755/***/ (function(module, exports, __webpack_require__) {
7756
7757var $export = __webpack_require__(0);
7758$export($export.G + $export.W + $export.F * !__webpack_require__(62).ABV, {
7759 DataView: __webpack_require__(93).DataView
7760});
7761
7762
7763/***/ }),
7764/* 254 */
7765/***/ (function(module, exports, __webpack_require__) {
7766
7767__webpack_require__(28)('Int8', 1, function (init) {
7768 return function Int8Array(data, byteOffset, length) {
7769 return init(this, data, byteOffset, length);
7770 };
7771});
7772
7773
7774/***/ }),
7775/* 255 */
7776/***/ (function(module, exports, __webpack_require__) {
7777
7778__webpack_require__(28)('Uint8', 1, function (init) {
7779 return function Uint8Array(data, byteOffset, length) {
7780 return init(this, data, byteOffset, length);
7781 };
7782});
7783
7784
7785/***/ }),
7786/* 256 */
7787/***/ (function(module, exports, __webpack_require__) {
7788
7789__webpack_require__(28)('Uint8', 1, function (init) {
7790 return function Uint8ClampedArray(data, byteOffset, length) {
7791 return init(this, data, byteOffset, length);
7792 };
7793}, true);
7794
7795
7796/***/ }),
7797/* 257 */
7798/***/ (function(module, exports, __webpack_require__) {
7799
7800__webpack_require__(28)('Int16', 2, function (init) {
7801 return function Int16Array(data, byteOffset, length) {
7802 return init(this, data, byteOffset, length);
7803 };
7804});
7805
7806
7807/***/ }),
7808/* 258 */
7809/***/ (function(module, exports, __webpack_require__) {
7810
7811__webpack_require__(28)('Uint16', 2, function (init) {
7812 return function Uint16Array(data, byteOffset, length) {
7813 return init(this, data, byteOffset, length);
7814 };
7815});
7816
7817
7818/***/ }),
7819/* 259 */
7820/***/ (function(module, exports, __webpack_require__) {
7821
7822__webpack_require__(28)('Int32', 4, function (init) {
7823 return function Int32Array(data, byteOffset, length) {
7824 return init(this, data, byteOffset, length);
7825 };
7826});
7827
7828
7829/***/ }),
7830/* 260 */
7831/***/ (function(module, exports, __webpack_require__) {
7832
7833__webpack_require__(28)('Uint32', 4, function (init) {
7834 return function Uint32Array(data, byteOffset, length) {
7835 return init(this, data, byteOffset, length);
7836 };
7837});
7838
7839
7840/***/ }),
7841/* 261 */
7842/***/ (function(module, exports, __webpack_require__) {
7843
7844__webpack_require__(28)('Float32', 4, function (init) {
7845 return function Float32Array(data, byteOffset, length) {
7846 return init(this, data, byteOffset, length);
7847 };
7848});
7849
7850
7851/***/ }),
7852/* 262 */
7853/***/ (function(module, exports, __webpack_require__) {
7854
7855__webpack_require__(28)('Float64', 8, function (init) {
7856 return function Float64Array(data, byteOffset, length) {
7857 return init(this, data, byteOffset, length);
7858 };
7859});
7860
7861
7862/***/ }),
7863/* 263 */
7864/***/ (function(module, exports, __webpack_require__) {
7865
7866// 26.1.1 Reflect.apply(target, thisArgument, argumentsList)
7867var $export = __webpack_require__(0);
7868var aFunction = __webpack_require__(10);
7869var anObject = __webpack_require__(1);
7870var rApply = (__webpack_require__(2).Reflect || {}).apply;
7871var fApply = Function.apply;
7872// MS Edge argumentsList argument is optional
7873$export($export.S + $export.F * !__webpack_require__(3)(function () {
7874 rApply(function () { /* empty */ });
7875}), 'Reflect', {
7876 apply: function apply(target, thisArgument, argumentsList) {
7877 var T = aFunction(target);
7878 var L = anObject(argumentsList);
7879 return rApply ? rApply(T, thisArgument, L) : fApply.call(T, thisArgument, L);
7880 }
7881});
7882
7883
7884/***/ }),
7885/* 264 */
7886/***/ (function(module, exports, __webpack_require__) {
7887
7888// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
7889var $export = __webpack_require__(0);
7890var create = __webpack_require__(37);
7891var aFunction = __webpack_require__(10);
7892var anObject = __webpack_require__(1);
7893var isObject = __webpack_require__(4);
7894var fails = __webpack_require__(3);
7895var bind = __webpack_require__(102);
7896var rConstruct = (__webpack_require__(2).Reflect || {}).construct;
7897
7898// MS Edge supports only 2 arguments and argumentsList argument is optional
7899// FF Nightly sets third argument as `new.target`, but does not create `this` from it
7900var NEW_TARGET_BUG = fails(function () {
7901 function F() { /* empty */ }
7902 return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);
7903});
7904var ARGS_BUG = !fails(function () {
7905 rConstruct(function () { /* empty */ });
7906});
7907
7908$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
7909 construct: function construct(Target, args /* , newTarget */) {
7910 aFunction(Target);
7911 anObject(args);
7912 var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
7913 if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);
7914 if (Target == newTarget) {
7915 // w/o altered newTarget, optimization for 0-4 arguments
7916 switch (args.length) {
7917 case 0: return new Target();
7918 case 1: return new Target(args[0]);
7919 case 2: return new Target(args[0], args[1]);
7920 case 3: return new Target(args[0], args[1], args[2]);
7921 case 4: return new Target(args[0], args[1], args[2], args[3]);
7922 }
7923 // w/o altered newTarget, lot of arguments case
7924 var $args = [null];
7925 $args.push.apply($args, args);
7926 return new (bind.apply(Target, $args))();
7927 }
7928 // with altered newTarget, not support built-in constructors
7929 var proto = newTarget.prototype;
7930 var instance = create(isObject(proto) ? proto : Object.prototype);
7931 var result = Function.apply.call(Target, instance, args);
7932 return isObject(result) ? result : instance;
7933 }
7934});
7935
7936
7937/***/ }),
7938/* 265 */
7939/***/ (function(module, exports, __webpack_require__) {
7940
7941// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)
7942var dP = __webpack_require__(7);
7943var $export = __webpack_require__(0);
7944var anObject = __webpack_require__(1);
7945var toPrimitive = __webpack_require__(23);
7946
7947// MS Edge has broken Reflect.defineProperty - throwing instead of returning false
7948$export($export.S + $export.F * __webpack_require__(3)(function () {
7949 // eslint-disable-next-line no-undef
7950 Reflect.defineProperty(dP.f({}, 1, { value: 1 }), 1, { value: 2 });
7951}), 'Reflect', {
7952 defineProperty: function defineProperty(target, propertyKey, attributes) {
7953 anObject(target);
7954 propertyKey = toPrimitive(propertyKey, true);
7955 anObject(attributes);
7956 try {
7957 dP.f(target, propertyKey, attributes);
7958 return true;
7959 } catch (e) {
7960 return false;
7961 }
7962 }
7963});
7964
7965
7966/***/ }),
7967/* 266 */
7968/***/ (function(module, exports, __webpack_require__) {
7969
7970// 26.1.4 Reflect.deleteProperty(target, propertyKey)
7971var $export = __webpack_require__(0);
7972var gOPD = __webpack_require__(16).f;
7973var anObject = __webpack_require__(1);
7974
7975$export($export.S, 'Reflect', {
7976 deleteProperty: function deleteProperty(target, propertyKey) {
7977 var desc = gOPD(anObject(target), propertyKey);
7978 return desc && !desc.configurable ? false : delete target[propertyKey];
7979 }
7980});
7981
7982
7983/***/ }),
7984/* 267 */
7985/***/ (function(module, exports, __webpack_require__) {
7986
7987"use strict";
7988
7989// 26.1.5 Reflect.enumerate(target)
7990var $export = __webpack_require__(0);
7991var anObject = __webpack_require__(1);
7992var Enumerate = function (iterated) {
7993 this._t = anObject(iterated); // target
7994 this._i = 0; // next index
7995 var keys = this._k = []; // keys
7996 var key;
7997 for (key in iterated) keys.push(key);
7998};
7999__webpack_require__(81)(Enumerate, 'Object', function () {
8000 var that = this;
8001 var keys = that._k;
8002 var key;
8003 do {
8004 if (that._i >= keys.length) return { value: undefined, done: true };
8005 } while (!((key = keys[that._i++]) in that._t));
8006 return { value: key, done: false };
8007});
8008
8009$export($export.S, 'Reflect', {
8010 enumerate: function enumerate(target) {
8011 return new Enumerate(target);
8012 }
8013});
8014
8015
8016/***/ }),
8017/* 268 */
8018/***/ (function(module, exports, __webpack_require__) {
8019
8020// 26.1.6 Reflect.get(target, propertyKey [, receiver])
8021var gOPD = __webpack_require__(16);
8022var getPrototypeOf = __webpack_require__(17);
8023var has = __webpack_require__(11);
8024var $export = __webpack_require__(0);
8025var isObject = __webpack_require__(4);
8026var anObject = __webpack_require__(1);
8027
8028function get(target, propertyKey /* , receiver */) {
8029 var receiver = arguments.length < 3 ? target : arguments[2];
8030 var desc, proto;
8031 if (anObject(target) === receiver) return target[propertyKey];
8032 if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value')
8033 ? desc.value
8034 : desc.get !== undefined
8035 ? desc.get.call(receiver)
8036 : undefined;
8037 if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver);
8038}
8039
8040$export($export.S, 'Reflect', { get: get });
8041
8042
8043/***/ }),
8044/* 269 */
8045/***/ (function(module, exports, __webpack_require__) {
8046
8047// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey)
8048var gOPD = __webpack_require__(16);
8049var $export = __webpack_require__(0);
8050var anObject = __webpack_require__(1);
8051
8052$export($export.S, 'Reflect', {
8053 getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) {
8054 return gOPD.f(anObject(target), propertyKey);
8055 }
8056});
8057
8058
8059/***/ }),
8060/* 270 */
8061/***/ (function(module, exports, __webpack_require__) {
8062
8063// 26.1.8 Reflect.getPrototypeOf(target)
8064var $export = __webpack_require__(0);
8065var getProto = __webpack_require__(17);
8066var anObject = __webpack_require__(1);
8067
8068$export($export.S, 'Reflect', {
8069 getPrototypeOf: function getPrototypeOf(target) {
8070 return getProto(anObject(target));
8071 }
8072});
8073
8074
8075/***/ }),
8076/* 271 */
8077/***/ (function(module, exports, __webpack_require__) {
8078
8079// 26.1.9 Reflect.has(target, propertyKey)
8080var $export = __webpack_require__(0);
8081
8082$export($export.S, 'Reflect', {
8083 has: function has(target, propertyKey) {
8084 return propertyKey in target;
8085 }
8086});
8087
8088
8089/***/ }),
8090/* 272 */
8091/***/ (function(module, exports, __webpack_require__) {
8092
8093// 26.1.10 Reflect.isExtensible(target)
8094var $export = __webpack_require__(0);
8095var anObject = __webpack_require__(1);
8096var $isExtensible = Object.isExtensible;
8097
8098$export($export.S, 'Reflect', {
8099 isExtensible: function isExtensible(target) {
8100 anObject(target);
8101 return $isExtensible ? $isExtensible(target) : true;
8102 }
8103});
8104
8105
8106/***/ }),
8107/* 273 */
8108/***/ (function(module, exports, __webpack_require__) {
8109
8110// 26.1.11 Reflect.ownKeys(target)
8111var $export = __webpack_require__(0);
8112
8113$export($export.S, 'Reflect', { ownKeys: __webpack_require__(123) });
8114
8115
8116/***/ }),
8117/* 274 */
8118/***/ (function(module, exports, __webpack_require__) {
8119
8120// 26.1.12 Reflect.preventExtensions(target)
8121var $export = __webpack_require__(0);
8122var anObject = __webpack_require__(1);
8123var $preventExtensions = Object.preventExtensions;
8124
8125$export($export.S, 'Reflect', {
8126 preventExtensions: function preventExtensions(target) {
8127 anObject(target);
8128 try {
8129 if ($preventExtensions) $preventExtensions(target);
8130 return true;
8131 } catch (e) {
8132 return false;
8133 }
8134 }
8135});
8136
8137
8138/***/ }),
8139/* 275 */
8140/***/ (function(module, exports, __webpack_require__) {
8141
8142// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])
8143var dP = __webpack_require__(7);
8144var gOPD = __webpack_require__(16);
8145var getPrototypeOf = __webpack_require__(17);
8146var has = __webpack_require__(11);
8147var $export = __webpack_require__(0);
8148var createDesc = __webpack_require__(32);
8149var anObject = __webpack_require__(1);
8150var isObject = __webpack_require__(4);
8151
8152function set(target, propertyKey, V /* , receiver */) {
8153 var receiver = arguments.length < 4 ? target : arguments[3];
8154 var ownDesc = gOPD.f(anObject(target), propertyKey);
8155 var existingDescriptor, proto;
8156 if (!ownDesc) {
8157 if (isObject(proto = getPrototypeOf(target))) {
8158 return set(proto, propertyKey, V, receiver);
8159 }
8160 ownDesc = createDesc(0);
8161 }
8162 if (has(ownDesc, 'value')) {
8163 if (ownDesc.writable === false || !isObject(receiver)) return false;
8164 existingDescriptor = gOPD.f(receiver, propertyKey) || createDesc(0);
8165 existingDescriptor.value = V;
8166 dP.f(receiver, propertyKey, existingDescriptor);
8167 return true;
8168 }
8169 return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);
8170}
8171
8172$export($export.S, 'Reflect', { set: set });
8173
8174
8175/***/ }),
8176/* 276 */
8177/***/ (function(module, exports, __webpack_require__) {
8178
8179// 26.1.14 Reflect.setPrototypeOf(target, proto)
8180var $export = __webpack_require__(0);
8181var setProto = __webpack_require__(73);
8182
8183if (setProto) $export($export.S, 'Reflect', {
8184 setPrototypeOf: function setPrototypeOf(target, proto) {
8185 setProto.check(target, proto);
8186 try {
8187 setProto.set(target, proto);
8188 return true;
8189 } catch (e) {
8190 return false;
8191 }
8192 }
8193});
8194
8195
8196/***/ }),
8197/* 277 */
8198/***/ (function(module, exports, __webpack_require__) {
8199
8200"use strict";
8201
8202// https://github.com/tc39/Array.prototype.includes
8203var $export = __webpack_require__(0);
8204var $includes = __webpack_require__(53)(true);
8205
8206$export($export.P, 'Array', {
8207 includes: function includes(el /* , fromIndex = 0 */) {
8208 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
8209 }
8210});
8211
8212__webpack_require__(31)('includes');
8213
8214
8215/***/ }),
8216/* 278 */
8217/***/ (function(module, exports, __webpack_require__) {
8218
8219"use strict";
8220
8221// https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatMap
8222var $export = __webpack_require__(0);
8223var flattenIntoArray = __webpack_require__(124);
8224var toObject = __webpack_require__(9);
8225var toLength = __webpack_require__(8);
8226var aFunction = __webpack_require__(10);
8227var arraySpeciesCreate = __webpack_require__(87);
8228
8229$export($export.P, 'Array', {
8230 flatMap: function flatMap(callbackfn /* , thisArg */) {
8231 var O = toObject(this);
8232 var sourceLen, A;
8233 aFunction(callbackfn);
8234 sourceLen = toLength(O.length);
8235 A = arraySpeciesCreate(O, 0);
8236 flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments[1]);
8237 return A;
8238 }
8239});
8240
8241__webpack_require__(31)('flatMap');
8242
8243
8244/***/ }),
8245/* 279 */
8246/***/ (function(module, exports, __webpack_require__) {
8247
8248"use strict";
8249
8250// https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatten
8251var $export = __webpack_require__(0);
8252var flattenIntoArray = __webpack_require__(124);
8253var toObject = __webpack_require__(9);
8254var toLength = __webpack_require__(8);
8255var toInteger = __webpack_require__(25);
8256var arraySpeciesCreate = __webpack_require__(87);
8257
8258$export($export.P, 'Array', {
8259 flatten: function flatten(/* depthArg = 1 */) {
8260 var depthArg = arguments[0];
8261 var O = toObject(this);
8262 var sourceLen = toLength(O.length);
8263 var A = arraySpeciesCreate(O, 0);
8264 flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toInteger(depthArg));
8265 return A;
8266 }
8267});
8268
8269__webpack_require__(31)('flatten');
8270
8271
8272/***/ }),
8273/* 280 */
8274/***/ (function(module, exports, __webpack_require__) {
8275
8276"use strict";
8277
8278// https://github.com/mathiasbynens/String.prototype.at
8279var $export = __webpack_require__(0);
8280var $at = __webpack_require__(79)(true);
8281
8282$export($export.P, 'String', {
8283 at: function at(pos) {
8284 return $at(this, pos);
8285 }
8286});
8287
8288
8289/***/ }),
8290/* 281 */
8291/***/ (function(module, exports, __webpack_require__) {
8292
8293"use strict";
8294
8295// https://github.com/tc39/proposal-string-pad-start-end
8296var $export = __webpack_require__(0);
8297var $pad = __webpack_require__(125);
8298
8299$export($export.P, 'String', {
8300 padStart: function padStart(maxLength /* , fillString = ' ' */) {
8301 return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);
8302 }
8303});
8304
8305
8306/***/ }),
8307/* 282 */
8308/***/ (function(module, exports, __webpack_require__) {
8309
8310"use strict";
8311
8312// https://github.com/tc39/proposal-string-pad-start-end
8313var $export = __webpack_require__(0);
8314var $pad = __webpack_require__(125);
8315
8316$export($export.P, 'String', {
8317 padEnd: function padEnd(maxLength /* , fillString = ' ' */) {
8318 return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);
8319 }
8320});
8321
8322
8323/***/ }),
8324/* 283 */
8325/***/ (function(module, exports, __webpack_require__) {
8326
8327"use strict";
8328
8329// https://github.com/sebmarkbage/ecmascript-string-left-right-trim
8330__webpack_require__(44)('trimLeft', function ($trim) {
8331 return function trimLeft() {
8332 return $trim(this, 1);
8333 };
8334}, 'trimStart');
8335
8336
8337/***/ }),
8338/* 284 */
8339/***/ (function(module, exports, __webpack_require__) {
8340
8341"use strict";
8342
8343// https://github.com/sebmarkbage/ecmascript-string-left-right-trim
8344__webpack_require__(44)('trimRight', function ($trim) {
8345 return function trimRight() {
8346 return $trim(this, 2);
8347 };
8348}, 'trimEnd');
8349
8350
8351/***/ }),
8352/* 285 */
8353/***/ (function(module, exports, __webpack_require__) {
8354
8355"use strict";
8356
8357// https://tc39.github.io/String.prototype.matchAll/
8358var $export = __webpack_require__(0);
8359var defined = __webpack_require__(24);
8360var toLength = __webpack_require__(8);
8361var isRegExp = __webpack_require__(56);
8362var getFlags = __webpack_require__(58);
8363var RegExpProto = RegExp.prototype;
8364
8365var $RegExpStringIterator = function (regexp, string) {
8366 this._r = regexp;
8367 this._s = string;
8368};
8369
8370__webpack_require__(81)($RegExpStringIterator, 'RegExp String', function next() {
8371 var match = this._r.exec(this._s);
8372 return { value: match, done: match === null };
8373});
8374
8375$export($export.P, 'String', {
8376 matchAll: function matchAll(regexp) {
8377 defined(this);
8378 if (!isRegExp(regexp)) throw TypeError(regexp + ' is not a regexp!');
8379 var S = String(this);
8380 var flags = 'flags' in RegExpProto ? String(regexp.flags) : getFlags.call(regexp);
8381 var rx = new RegExp(regexp.source, ~flags.indexOf('g') ? flags : 'g' + flags);
8382 rx.lastIndex = toLength(regexp.lastIndex);
8383 return new $RegExpStringIterator(rx, S);
8384 }
8385});
8386
8387
8388/***/ }),
8389/* 286 */
8390/***/ (function(module, exports, __webpack_require__) {
8391
8392__webpack_require__(69)('asyncIterator');
8393
8394
8395/***/ }),
8396/* 287 */
8397/***/ (function(module, exports, __webpack_require__) {
8398
8399__webpack_require__(69)('observable');
8400
8401
8402/***/ }),
8403/* 288 */
8404/***/ (function(module, exports, __webpack_require__) {
8405
8406// https://github.com/tc39/proposal-object-getownpropertydescriptors
8407var $export = __webpack_require__(0);
8408var ownKeys = __webpack_require__(123);
8409var toIObject = __webpack_require__(15);
8410var gOPD = __webpack_require__(16);
8411var createProperty = __webpack_require__(85);
8412
8413$export($export.S, 'Object', {
8414 getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
8415 var O = toIObject(object);
8416 var getDesc = gOPD.f;
8417 var keys = ownKeys(O);
8418 var result = {};
8419 var i = 0;
8420 var key, desc;
8421 while (keys.length > i) {
8422 desc = getDesc(O, key = keys[i++]);
8423 if (desc !== undefined) createProperty(result, key, desc);
8424 }
8425 return result;
8426 }
8427});
8428
8429
8430/***/ }),
8431/* 289 */
8432/***/ (function(module, exports, __webpack_require__) {
8433
8434// https://github.com/tc39/proposal-object-values-entries
8435var $export = __webpack_require__(0);
8436var $values = __webpack_require__(126)(false);
8437
8438$export($export.S, 'Object', {
8439 values: function values(it) {
8440 return $values(it);
8441 }
8442});
8443
8444
8445/***/ }),
8446/* 290 */
8447/***/ (function(module, exports, __webpack_require__) {
8448
8449// https://github.com/tc39/proposal-object-values-entries
8450var $export = __webpack_require__(0);
8451var $entries = __webpack_require__(126)(true);
8452
8453$export($export.S, 'Object', {
8454 entries: function entries(it) {
8455 return $entries(it);
8456 }
8457});
8458
8459
8460/***/ }),
8461/* 291 */
8462/***/ (function(module, exports, __webpack_require__) {
8463
8464"use strict";
8465
8466var $export = __webpack_require__(0);
8467var toObject = __webpack_require__(9);
8468var aFunction = __webpack_require__(10);
8469var $defineProperty = __webpack_require__(7);
8470
8471// B.2.2.2 Object.prototype.__defineGetter__(P, getter)
8472__webpack_require__(6) && $export($export.P + __webpack_require__(63), 'Object', {
8473 __defineGetter__: function __defineGetter__(P, getter) {
8474 $defineProperty.f(toObject(this), P, { get: aFunction(getter), enumerable: true, configurable: true });
8475 }
8476});
8477
8478
8479/***/ }),
8480/* 292 */
8481/***/ (function(module, exports, __webpack_require__) {
8482
8483"use strict";
8484
8485var $export = __webpack_require__(0);
8486var toObject = __webpack_require__(9);
8487var aFunction = __webpack_require__(10);
8488var $defineProperty = __webpack_require__(7);
8489
8490// B.2.2.3 Object.prototype.__defineSetter__(P, setter)
8491__webpack_require__(6) && $export($export.P + __webpack_require__(63), 'Object', {
8492 __defineSetter__: function __defineSetter__(P, setter) {
8493 $defineProperty.f(toObject(this), P, { set: aFunction(setter), enumerable: true, configurable: true });
8494 }
8495});
8496
8497
8498/***/ }),
8499/* 293 */
8500/***/ (function(module, exports, __webpack_require__) {
8501
8502"use strict";
8503
8504var $export = __webpack_require__(0);
8505var toObject = __webpack_require__(9);
8506var toPrimitive = __webpack_require__(23);
8507var getPrototypeOf = __webpack_require__(17);
8508var getOwnPropertyDescriptor = __webpack_require__(16).f;
8509
8510// B.2.2.4 Object.prototype.__lookupGetter__(P)
8511__webpack_require__(6) && $export($export.P + __webpack_require__(63), 'Object', {
8512 __lookupGetter__: function __lookupGetter__(P) {
8513 var O = toObject(this);
8514 var K = toPrimitive(P, true);
8515 var D;
8516 do {
8517 if (D = getOwnPropertyDescriptor(O, K)) return D.get;
8518 } while (O = getPrototypeOf(O));
8519 }
8520});
8521
8522
8523/***/ }),
8524/* 294 */
8525/***/ (function(module, exports, __webpack_require__) {
8526
8527"use strict";
8528
8529var $export = __webpack_require__(0);
8530var toObject = __webpack_require__(9);
8531var toPrimitive = __webpack_require__(23);
8532var getPrototypeOf = __webpack_require__(17);
8533var getOwnPropertyDescriptor = __webpack_require__(16).f;
8534
8535// B.2.2.5 Object.prototype.__lookupSetter__(P)
8536__webpack_require__(6) && $export($export.P + __webpack_require__(63), 'Object', {
8537 __lookupSetter__: function __lookupSetter__(P) {
8538 var O = toObject(this);
8539 var K = toPrimitive(P, true);
8540 var D;
8541 do {
8542 if (D = getOwnPropertyDescriptor(O, K)) return D.set;
8543 } while (O = getPrototypeOf(O));
8544 }
8545});
8546
8547
8548/***/ }),
8549/* 295 */
8550/***/ (function(module, exports, __webpack_require__) {
8551
8552// https://github.com/DavidBruant/Map-Set.prototype.toJSON
8553var $export = __webpack_require__(0);
8554
8555$export($export.P + $export.R, 'Map', { toJSON: __webpack_require__(127)('Map') });
8556
8557
8558/***/ }),
8559/* 296 */
8560/***/ (function(module, exports, __webpack_require__) {
8561
8562// https://github.com/DavidBruant/Map-Set.prototype.toJSON
8563var $export = __webpack_require__(0);
8564
8565$export($export.P + $export.R, 'Set', { toJSON: __webpack_require__(127)('Set') });
8566
8567
8568/***/ }),
8569/* 297 */
8570/***/ (function(module, exports, __webpack_require__) {
8571
8572// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of
8573__webpack_require__(64)('Map');
8574
8575
8576/***/ }),
8577/* 298 */
8578/***/ (function(module, exports, __webpack_require__) {
8579
8580// https://tc39.github.io/proposal-setmap-offrom/#sec-set.of
8581__webpack_require__(64)('Set');
8582
8583
8584/***/ }),
8585/* 299 */
8586/***/ (function(module, exports, __webpack_require__) {
8587
8588// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of
8589__webpack_require__(64)('WeakMap');
8590
8591
8592/***/ }),
8593/* 300 */
8594/***/ (function(module, exports, __webpack_require__) {
8595
8596// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of
8597__webpack_require__(64)('WeakSet');
8598
8599
8600/***/ }),
8601/* 301 */
8602/***/ (function(module, exports, __webpack_require__) {
8603
8604// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from
8605__webpack_require__(65)('Map');
8606
8607
8608/***/ }),
8609/* 302 */
8610/***/ (function(module, exports, __webpack_require__) {
8611
8612// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from
8613__webpack_require__(65)('Set');
8614
8615
8616/***/ }),
8617/* 303 */
8618/***/ (function(module, exports, __webpack_require__) {
8619
8620// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from
8621__webpack_require__(65)('WeakMap');
8622
8623
8624/***/ }),
8625/* 304 */
8626/***/ (function(module, exports, __webpack_require__) {
8627
8628// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from
8629__webpack_require__(65)('WeakSet');
8630
8631
8632/***/ }),
8633/* 305 */
8634/***/ (function(module, exports, __webpack_require__) {
8635
8636// https://github.com/tc39/proposal-global
8637var $export = __webpack_require__(0);
8638
8639$export($export.G, { global: __webpack_require__(2) });
8640
8641
8642/***/ }),
8643/* 306 */
8644/***/ (function(module, exports, __webpack_require__) {
8645
8646// https://github.com/tc39/proposal-global
8647var $export = __webpack_require__(0);
8648
8649$export($export.S, 'System', { global: __webpack_require__(2) });
8650
8651
8652/***/ }),
8653/* 307 */
8654/***/ (function(module, exports, __webpack_require__) {
8655
8656// https://github.com/ljharb/proposal-is-error
8657var $export = __webpack_require__(0);
8658var cof = __webpack_require__(20);
8659
8660$export($export.S, 'Error', {
8661 isError: function isError(it) {
8662 return cof(it) === 'Error';
8663 }
8664});
8665
8666
8667/***/ }),
8668/* 308 */
8669/***/ (function(module, exports, __webpack_require__) {
8670
8671// https://rwaldron.github.io/proposal-math-extensions/
8672var $export = __webpack_require__(0);
8673
8674$export($export.S, 'Math', {
8675 clamp: function clamp(x, lower, upper) {
8676 return Math.min(upper, Math.max(lower, x));
8677 }
8678});
8679
8680
8681/***/ }),
8682/* 309 */
8683/***/ (function(module, exports, __webpack_require__) {
8684
8685// https://rwaldron.github.io/proposal-math-extensions/
8686var $export = __webpack_require__(0);
8687
8688$export($export.S, 'Math', { DEG_PER_RAD: Math.PI / 180 });
8689
8690
8691/***/ }),
8692/* 310 */
8693/***/ (function(module, exports, __webpack_require__) {
8694
8695// https://rwaldron.github.io/proposal-math-extensions/
8696var $export = __webpack_require__(0);
8697var RAD_PER_DEG = 180 / Math.PI;
8698
8699$export($export.S, 'Math', {
8700 degrees: function degrees(radians) {
8701 return radians * RAD_PER_DEG;
8702 }
8703});
8704
8705
8706/***/ }),
8707/* 311 */
8708/***/ (function(module, exports, __webpack_require__) {
8709
8710// https://rwaldron.github.io/proposal-math-extensions/
8711var $export = __webpack_require__(0);
8712var scale = __webpack_require__(129);
8713var fround = __webpack_require__(109);
8714
8715$export($export.S, 'Math', {
8716 fscale: function fscale(x, inLow, inHigh, outLow, outHigh) {
8717 return fround(scale(x, inLow, inHigh, outLow, outHigh));
8718 }
8719});
8720
8721
8722/***/ }),
8723/* 312 */
8724/***/ (function(module, exports, __webpack_require__) {
8725
8726// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
8727var $export = __webpack_require__(0);
8728
8729$export($export.S, 'Math', {
8730 iaddh: function iaddh(x0, x1, y0, y1) {
8731 var $x0 = x0 >>> 0;
8732 var $x1 = x1 >>> 0;
8733 var $y0 = y0 >>> 0;
8734 return $x1 + (y1 >>> 0) + (($x0 & $y0 | ($x0 | $y0) & ~($x0 + $y0 >>> 0)) >>> 31) | 0;
8735 }
8736});
8737
8738
8739/***/ }),
8740/* 313 */
8741/***/ (function(module, exports, __webpack_require__) {
8742
8743// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
8744var $export = __webpack_require__(0);
8745
8746$export($export.S, 'Math', {
8747 isubh: function isubh(x0, x1, y0, y1) {
8748 var $x0 = x0 >>> 0;
8749 var $x1 = x1 >>> 0;
8750 var $y0 = y0 >>> 0;
8751 return $x1 - (y1 >>> 0) - ((~$x0 & $y0 | ~($x0 ^ $y0) & $x0 - $y0 >>> 0) >>> 31) | 0;
8752 }
8753});
8754
8755
8756/***/ }),
8757/* 314 */
8758/***/ (function(module, exports, __webpack_require__) {
8759
8760// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
8761var $export = __webpack_require__(0);
8762
8763$export($export.S, 'Math', {
8764 imulh: function imulh(u, v) {
8765 var UINT16 = 0xffff;
8766 var $u = +u;
8767 var $v = +v;
8768 var u0 = $u & UINT16;
8769 var v0 = $v & UINT16;
8770 var u1 = $u >> 16;
8771 var v1 = $v >> 16;
8772 var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);
8773 return u1 * v1 + (t >> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >> 16);
8774 }
8775});
8776
8777
8778/***/ }),
8779/* 315 */
8780/***/ (function(module, exports, __webpack_require__) {
8781
8782// https://rwaldron.github.io/proposal-math-extensions/
8783var $export = __webpack_require__(0);
8784
8785$export($export.S, 'Math', { RAD_PER_DEG: 180 / Math.PI });
8786
8787
8788/***/ }),
8789/* 316 */
8790/***/ (function(module, exports, __webpack_require__) {
8791
8792// https://rwaldron.github.io/proposal-math-extensions/
8793var $export = __webpack_require__(0);
8794var DEG_PER_RAD = Math.PI / 180;
8795
8796$export($export.S, 'Math', {
8797 radians: function radians(degrees) {
8798 return degrees * DEG_PER_RAD;
8799 }
8800});
8801
8802
8803/***/ }),
8804/* 317 */
8805/***/ (function(module, exports, __webpack_require__) {
8806
8807// https://rwaldron.github.io/proposal-math-extensions/
8808var $export = __webpack_require__(0);
8809
8810$export($export.S, 'Math', { scale: __webpack_require__(129) });
8811
8812
8813/***/ }),
8814/* 318 */
8815/***/ (function(module, exports, __webpack_require__) {
8816
8817// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
8818var $export = __webpack_require__(0);
8819
8820$export($export.S, 'Math', {
8821 umulh: function umulh(u, v) {
8822 var UINT16 = 0xffff;
8823 var $u = +u;
8824 var $v = +v;
8825 var u0 = $u & UINT16;
8826 var v0 = $v & UINT16;
8827 var u1 = $u >>> 16;
8828 var v1 = $v >>> 16;
8829 var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);
8830 return u1 * v1 + (t >>> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >>> 16);
8831 }
8832});
8833
8834
8835/***/ }),
8836/* 319 */
8837/***/ (function(module, exports, __webpack_require__) {
8838
8839// http://jfbastien.github.io/papers/Math.signbit.html
8840var $export = __webpack_require__(0);
8841
8842$export($export.S, 'Math', { signbit: function signbit(x) {
8843 // eslint-disable-next-line no-self-compare
8844 return (x = +x) != x ? x : x == 0 ? 1 / x == Infinity : x > 0;
8845} });
8846
8847
8848/***/ }),
8849/* 320 */
8850/***/ (function(module, exports, __webpack_require__) {
8851
8852"use strict";
8853// https://github.com/tc39/proposal-promise-finally
8854
8855var $export = __webpack_require__(0);
8856var core = __webpack_require__(22);
8857var global = __webpack_require__(2);
8858var speciesConstructor = __webpack_require__(60);
8859var promiseResolve = __webpack_require__(116);
8860
8861$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {
8862 var C = speciesConstructor(this, core.Promise || global.Promise);
8863 var isFunction = typeof onFinally == 'function';
8864 return this.then(
8865 isFunction ? function (x) {
8866 return promiseResolve(C, onFinally()).then(function () { return x; });
8867 } : onFinally,
8868 isFunction ? function (e) {
8869 return promiseResolve(C, onFinally()).then(function () { throw e; });
8870 } : onFinally
8871 );
8872} });
8873
8874
8875/***/ }),
8876/* 321 */
8877/***/ (function(module, exports, __webpack_require__) {
8878
8879"use strict";
8880
8881// https://github.com/tc39/proposal-promise-try
8882var $export = __webpack_require__(0);
8883var newPromiseCapability = __webpack_require__(92);
8884var perform = __webpack_require__(115);
8885
8886$export($export.S, 'Promise', { 'try': function (callbackfn) {
8887 var promiseCapability = newPromiseCapability.f(this);
8888 var result = perform(callbackfn);
8889 (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
8890 return promiseCapability.promise;
8891} });
8892
8893
8894/***/ }),
8895/* 322 */
8896/***/ (function(module, exports, __webpack_require__) {
8897
8898var metadata = __webpack_require__(29);
8899var anObject = __webpack_require__(1);
8900var toMetaKey = metadata.key;
8901var ordinaryDefineOwnMetadata = metadata.set;
8902
8903metadata.exp({ defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey) {
8904 ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey));
8905} });
8906
8907
8908/***/ }),
8909/* 323 */
8910/***/ (function(module, exports, __webpack_require__) {
8911
8912var metadata = __webpack_require__(29);
8913var anObject = __webpack_require__(1);
8914var toMetaKey = metadata.key;
8915var getOrCreateMetadataMap = metadata.map;
8916var store = metadata.store;
8917
8918metadata.exp({ deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) {
8919 var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2]);
8920 var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false);
8921 if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false;
8922 if (metadataMap.size) return true;
8923 var targetMetadata = store.get(target);
8924 targetMetadata['delete'](targetKey);
8925 return !!targetMetadata.size || store['delete'](target);
8926} });
8927
8928
8929/***/ }),
8930/* 324 */
8931/***/ (function(module, exports, __webpack_require__) {
8932
8933var metadata = __webpack_require__(29);
8934var anObject = __webpack_require__(1);
8935var getPrototypeOf = __webpack_require__(17);
8936var ordinaryHasOwnMetadata = metadata.has;
8937var ordinaryGetOwnMetadata = metadata.get;
8938var toMetaKey = metadata.key;
8939
8940var ordinaryGetMetadata = function (MetadataKey, O, P) {
8941 var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);
8942 if (hasOwn) return ordinaryGetOwnMetadata(MetadataKey, O, P);
8943 var parent = getPrototypeOf(O);
8944 return parent !== null ? ordinaryGetMetadata(MetadataKey, parent, P) : undefined;
8945};
8946
8947metadata.exp({ getMetadata: function getMetadata(metadataKey, target /* , targetKey */) {
8948 return ordinaryGetMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
8949} });
8950
8951
8952/***/ }),
8953/* 325 */
8954/***/ (function(module, exports, __webpack_require__) {
8955
8956var Set = __webpack_require__(119);
8957var from = __webpack_require__(128);
8958var metadata = __webpack_require__(29);
8959var anObject = __webpack_require__(1);
8960var getPrototypeOf = __webpack_require__(17);
8961var ordinaryOwnMetadataKeys = metadata.keys;
8962var toMetaKey = metadata.key;
8963
8964var ordinaryMetadataKeys = function (O, P) {
8965 var oKeys = ordinaryOwnMetadataKeys(O, P);
8966 var parent = getPrototypeOf(O);
8967 if (parent === null) return oKeys;
8968 var pKeys = ordinaryMetadataKeys(parent, P);
8969 return pKeys.length ? oKeys.length ? from(new Set(oKeys.concat(pKeys))) : pKeys : oKeys;
8970};
8971
8972metadata.exp({ getMetadataKeys: function getMetadataKeys(target /* , targetKey */) {
8973 return ordinaryMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));
8974} });
8975
8976
8977/***/ }),
8978/* 326 */
8979/***/ (function(module, exports, __webpack_require__) {
8980
8981var metadata = __webpack_require__(29);
8982var anObject = __webpack_require__(1);
8983var ordinaryGetOwnMetadata = metadata.get;
8984var toMetaKey = metadata.key;
8985
8986metadata.exp({ getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) {
8987 return ordinaryGetOwnMetadata(metadataKey, anObject(target)
8988 , arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
8989} });
8990
8991
8992/***/ }),
8993/* 327 */
8994/***/ (function(module, exports, __webpack_require__) {
8995
8996var metadata = __webpack_require__(29);
8997var anObject = __webpack_require__(1);
8998var ordinaryOwnMetadataKeys = metadata.keys;
8999var toMetaKey = metadata.key;
9000
9001metadata.exp({ getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) {
9002 return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));
9003} });
9004
9005
9006/***/ }),
9007/* 328 */
9008/***/ (function(module, exports, __webpack_require__) {
9009
9010var metadata = __webpack_require__(29);
9011var anObject = __webpack_require__(1);
9012var getPrototypeOf = __webpack_require__(17);
9013var ordinaryHasOwnMetadata = metadata.has;
9014var toMetaKey = metadata.key;
9015
9016var ordinaryHasMetadata = function (MetadataKey, O, P) {
9017 var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);
9018 if (hasOwn) return true;
9019 var parent = getPrototypeOf(O);
9020 return parent !== null ? ordinaryHasMetadata(MetadataKey, parent, P) : false;
9021};
9022
9023metadata.exp({ hasMetadata: function hasMetadata(metadataKey, target /* , targetKey */) {
9024 return ordinaryHasMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
9025} });
9026
9027
9028/***/ }),
9029/* 329 */
9030/***/ (function(module, exports, __webpack_require__) {
9031
9032var metadata = __webpack_require__(29);
9033var anObject = __webpack_require__(1);
9034var ordinaryHasOwnMetadata = metadata.has;
9035var toMetaKey = metadata.key;
9036
9037metadata.exp({ hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) {
9038 return ordinaryHasOwnMetadata(metadataKey, anObject(target)
9039 , arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
9040} });
9041
9042
9043/***/ }),
9044/* 330 */
9045/***/ (function(module, exports, __webpack_require__) {
9046
9047var $metadata = __webpack_require__(29);
9048var anObject = __webpack_require__(1);
9049var aFunction = __webpack_require__(10);
9050var toMetaKey = $metadata.key;
9051var ordinaryDefineOwnMetadata = $metadata.set;
9052
9053$metadata.exp({ metadata: function metadata(metadataKey, metadataValue) {
9054 return function decorator(target, targetKey) {
9055 ordinaryDefineOwnMetadata(
9056 metadataKey, metadataValue,
9057 (targetKey !== undefined ? anObject : aFunction)(target),
9058 toMetaKey(targetKey)
9059 );
9060 };
9061} });
9062
9063
9064/***/ }),
9065/* 331 */
9066/***/ (function(module, exports, __webpack_require__) {
9067
9068// https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-globalasap-for-enqueuing-a-microtask
9069var $export = __webpack_require__(0);
9070var microtask = __webpack_require__(91)();
9071var process = __webpack_require__(2).process;
9072var isNode = __webpack_require__(20)(process) == 'process';
9073
9074$export($export.G, {
9075 asap: function asap(fn) {
9076 var domain = isNode && process.domain;
9077 microtask(domain ? domain.bind(fn) : fn);
9078 }
9079});
9080
9081
9082/***/ }),
9083/* 332 */
9084/***/ (function(module, exports, __webpack_require__) {
9085
9086"use strict";
9087
9088// https://github.com/zenparsing/es-observable
9089var $export = __webpack_require__(0);
9090var global = __webpack_require__(2);
9091var core = __webpack_require__(22);
9092var microtask = __webpack_require__(91)();
9093var OBSERVABLE = __webpack_require__(5)('observable');
9094var aFunction = __webpack_require__(10);
9095var anObject = __webpack_require__(1);
9096var anInstance = __webpack_require__(40);
9097var redefineAll = __webpack_require__(42);
9098var hide = __webpack_require__(12);
9099var forOf = __webpack_require__(41);
9100var RETURN = forOf.RETURN;
9101
9102var getMethod = function (fn) {
9103 return fn == null ? undefined : aFunction(fn);
9104};
9105
9106var cleanupSubscription = function (subscription) {
9107 var cleanup = subscription._c;
9108 if (cleanup) {
9109 subscription._c = undefined;
9110 cleanup();
9111 }
9112};
9113
9114var subscriptionClosed = function (subscription) {
9115 return subscription._o === undefined;
9116};
9117
9118var closeSubscription = function (subscription) {
9119 if (!subscriptionClosed(subscription)) {
9120 subscription._o = undefined;
9121 cleanupSubscription(subscription);
9122 }
9123};
9124
9125var Subscription = function (observer, subscriber) {
9126 anObject(observer);
9127 this._c = undefined;
9128 this._o = observer;
9129 observer = new SubscriptionObserver(this);
9130 try {
9131 var cleanup = subscriber(observer);
9132 var subscription = cleanup;
9133 if (cleanup != null) {
9134 if (typeof cleanup.unsubscribe === 'function') cleanup = function () { subscription.unsubscribe(); };
9135 else aFunction(cleanup);
9136 this._c = cleanup;
9137 }
9138 } catch (e) {
9139 observer.error(e);
9140 return;
9141 } if (subscriptionClosed(this)) cleanupSubscription(this);
9142};
9143
9144Subscription.prototype = redefineAll({}, {
9145 unsubscribe: function unsubscribe() { closeSubscription(this); }
9146});
9147
9148var SubscriptionObserver = function (subscription) {
9149 this._s = subscription;
9150};
9151
9152SubscriptionObserver.prototype = redefineAll({}, {
9153 next: function next(value) {
9154 var subscription = this._s;
9155 if (!subscriptionClosed(subscription)) {
9156 var observer = subscription._o;
9157 try {
9158 var m = getMethod(observer.next);
9159 if (m) return m.call(observer, value);
9160 } catch (e) {
9161 try {
9162 closeSubscription(subscription);
9163 } finally {
9164 throw e;
9165 }
9166 }
9167 }
9168 },
9169 error: function error(value) {
9170 var subscription = this._s;
9171 if (subscriptionClosed(subscription)) throw value;
9172 var observer = subscription._o;
9173 subscription._o = undefined;
9174 try {
9175 var m = getMethod(observer.error);
9176 if (!m) throw value;
9177 value = m.call(observer, value);
9178 } catch (e) {
9179 try {
9180 cleanupSubscription(subscription);
9181 } finally {
9182 throw e;
9183 }
9184 } cleanupSubscription(subscription);
9185 return value;
9186 },
9187 complete: function complete(value) {
9188 var subscription = this._s;
9189 if (!subscriptionClosed(subscription)) {
9190 var observer = subscription._o;
9191 subscription._o = undefined;
9192 try {
9193 var m = getMethod(observer.complete);
9194 value = m ? m.call(observer, value) : undefined;
9195 } catch (e) {
9196 try {
9197 cleanupSubscription(subscription);
9198 } finally {
9199 throw e;
9200 }
9201 } cleanupSubscription(subscription);
9202 return value;
9203 }
9204 }
9205});
9206
9207var $Observable = function Observable(subscriber) {
9208 anInstance(this, $Observable, 'Observable', '_f')._f = aFunction(subscriber);
9209};
9210
9211redefineAll($Observable.prototype, {
9212 subscribe: function subscribe(observer) {
9213 return new Subscription(observer, this._f);
9214 },
9215 forEach: function forEach(fn) {
9216 var that = this;
9217 return new (core.Promise || global.Promise)(function (resolve, reject) {
9218 aFunction(fn);
9219 var subscription = that.subscribe({
9220 next: function (value) {
9221 try {
9222 return fn(value);
9223 } catch (e) {
9224 reject(e);
9225 subscription.unsubscribe();
9226 }
9227 },
9228 error: reject,
9229 complete: resolve
9230 });
9231 });
9232 }
9233});
9234
9235redefineAll($Observable, {
9236 from: function from(x) {
9237 var C = typeof this === 'function' ? this : $Observable;
9238 var method = getMethod(anObject(x)[OBSERVABLE]);
9239 if (method) {
9240 var observable = anObject(method.call(x));
9241 return observable.constructor === C ? observable : new C(function (observer) {
9242 return observable.subscribe(observer);
9243 });
9244 }
9245 return new C(function (observer) {
9246 var done = false;
9247 microtask(function () {
9248 if (!done) {
9249 try {
9250 if (forOf(x, false, function (it) {
9251 observer.next(it);
9252 if (done) return RETURN;
9253 }) === RETURN) return;
9254 } catch (e) {
9255 if (done) throw e;
9256 observer.error(e);
9257 return;
9258 } observer.complete();
9259 }
9260 });
9261 return function () { done = true; };
9262 });
9263 },
9264 of: function of() {
9265 for (var i = 0, l = arguments.length, items = Array(l); i < l;) items[i] = arguments[i++];
9266 return new (typeof this === 'function' ? this : $Observable)(function (observer) {
9267 var done = false;
9268 microtask(function () {
9269 if (!done) {
9270 for (var j = 0; j < items.length; ++j) {
9271 observer.next(items[j]);
9272 if (done) return;
9273 } observer.complete();
9274 }
9275 });
9276 return function () { done = true; };
9277 });
9278 }
9279});
9280
9281hide($Observable.prototype, OBSERVABLE, function () { return this; });
9282
9283$export($export.G, { Observable: $Observable });
9284
9285__webpack_require__(39)('Observable');
9286
9287
9288/***/ }),
9289/* 333 */
9290/***/ (function(module, exports, __webpack_require__) {
9291
9292// ie9- setTimeout & setInterval additional parameters fix
9293var global = __webpack_require__(2);
9294var $export = __webpack_require__(0);
9295var navigator = global.navigator;
9296var slice = [].slice;
9297var MSIE = !!navigator && /MSIE .\./.test(navigator.userAgent); // <- dirty ie9- check
9298var wrap = function (set) {
9299 return function (fn, time /* , ...args */) {
9300 var boundArgs = arguments.length > 2;
9301 var args = boundArgs ? slice.call(arguments, 2) : false;
9302 return set(boundArgs ? function () {
9303 // eslint-disable-next-line no-new-func
9304 (typeof fn == 'function' ? fn : Function(fn)).apply(this, args);
9305 } : fn, time);
9306 };
9307};
9308$export($export.G + $export.B + $export.F * MSIE, {
9309 setTimeout: wrap(global.setTimeout),
9310 setInterval: wrap(global.setInterval)
9311});
9312
9313
9314/***/ }),
9315/* 334 */
9316/***/ (function(module, exports, __webpack_require__) {
9317
9318var $export = __webpack_require__(0);
9319var $task = __webpack_require__(90);
9320$export($export.G + $export.B, {
9321 setImmediate: $task.set,
9322 clearImmediate: $task.clear
9323});
9324
9325
9326/***/ }),
9327/* 335 */
9328/***/ (function(module, exports, __webpack_require__) {
9329
9330var $iterators = __webpack_require__(89);
9331var getKeys = __webpack_require__(35);
9332var redefine = __webpack_require__(13);
9333var global = __webpack_require__(2);
9334var hide = __webpack_require__(12);
9335var Iterators = __webpack_require__(45);
9336var wks = __webpack_require__(5);
9337var ITERATOR = wks('iterator');
9338var TO_STRING_TAG = wks('toStringTag');
9339var ArrayValues = Iterators.Array;
9340
9341var DOMIterables = {
9342 CSSRuleList: true, // TODO: Not spec compliant, should be false.
9343 CSSStyleDeclaration: false,
9344 CSSValueList: false,
9345 ClientRectList: false,
9346 DOMRectList: false,
9347 DOMStringList: false,
9348 DOMTokenList: true,
9349 DataTransferItemList: false,
9350 FileList: false,
9351 HTMLAllCollection: false,
9352 HTMLCollection: false,
9353 HTMLFormElement: false,
9354 HTMLSelectElement: false,
9355 MediaList: true, // TODO: Not spec compliant, should be false.
9356 MimeTypeArray: false,
9357 NamedNodeMap: false,
9358 NodeList: true,
9359 PaintRequestList: false,
9360 Plugin: false,
9361 PluginArray: false,
9362 SVGLengthList: false,
9363 SVGNumberList: false,
9364 SVGPathSegList: false,
9365 SVGPointList: false,
9366 SVGStringList: false,
9367 SVGTransformList: false,
9368 SourceBufferList: false,
9369 StyleSheetList: true, // TODO: Not spec compliant, should be false.
9370 TextTrackCueList: false,
9371 TextTrackList: false,
9372 TouchList: false
9373};
9374
9375for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
9376 var NAME = collections[i];
9377 var explicit = DOMIterables[NAME];
9378 var Collection = global[NAME];
9379 var proto = Collection && Collection.prototype;
9380 var key;
9381 if (proto) {
9382 if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
9383 if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
9384 Iterators[NAME] = ArrayValues;
9385 if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
9386 }
9387}
9388
9389
9390/***/ }),
9391/* 336 */
9392/***/ (function(module, exports, __webpack_require__) {
9393
9394/* WEBPACK VAR INJECTION */(function(global) {/**
9395 * Copyright (c) 2014, Facebook, Inc.
9396 * All rights reserved.
9397 *
9398 * This source code is licensed under the BSD-style license found in the
9399 * https://raw.github.com/facebook/regenerator/master/LICENSE file. An
9400 * additional grant of patent rights can be found in the PATENTS file in
9401 * the same directory.
9402 */
9403
9404!(function(global) {
9405 "use strict";
9406
9407 var Op = Object.prototype;
9408 var hasOwn = Op.hasOwnProperty;
9409 var undefined; // More compressible than void 0.
9410 var $Symbol = typeof Symbol === "function" ? Symbol : {};
9411 var iteratorSymbol = $Symbol.iterator || "@@iterator";
9412 var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
9413 var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
9414
9415 var inModule = typeof module === "object";
9416 var runtime = global.regeneratorRuntime;
9417 if (runtime) {
9418 if (inModule) {
9419 // If regeneratorRuntime is defined globally and we're in a module,
9420 // make the exports object identical to regeneratorRuntime.
9421 module.exports = runtime;
9422 }
9423 // Don't bother evaluating the rest of this file if the runtime was
9424 // already defined globally.
9425 return;
9426 }
9427
9428 // Define the runtime globally (as expected by generated code) as either
9429 // module.exports (if we're in a module) or a new, empty object.
9430 runtime = global.regeneratorRuntime = inModule ? module.exports : {};
9431
9432 function wrap(innerFn, outerFn, self, tryLocsList) {
9433 // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
9434 var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
9435 var generator = Object.create(protoGenerator.prototype);
9436 var context = new Context(tryLocsList || []);
9437
9438 // The ._invoke method unifies the implementations of the .next,
9439 // .throw, and .return methods.
9440 generator._invoke = makeInvokeMethod(innerFn, self, context);
9441
9442 return generator;
9443 }
9444 runtime.wrap = wrap;
9445
9446 // Try/catch helper to minimize deoptimizations. Returns a completion
9447 // record like context.tryEntries[i].completion. This interface could
9448 // have been (and was previously) designed to take a closure to be
9449 // invoked without arguments, but in all the cases we care about we
9450 // already have an existing method we want to call, so there's no need
9451 // to create a new function object. We can even get away with assuming
9452 // the method takes exactly one argument, since that happens to be true
9453 // in every case, so we don't have to touch the arguments object. The
9454 // only additional allocation required is the completion record, which
9455 // has a stable shape and so hopefully should be cheap to allocate.
9456 function tryCatch(fn, obj, arg) {
9457 try {
9458 return { type: "normal", arg: fn.call(obj, arg) };
9459 } catch (err) {
9460 return { type: "throw", arg: err };
9461 }
9462 }
9463
9464 var GenStateSuspendedStart = "suspendedStart";
9465 var GenStateSuspendedYield = "suspendedYield";
9466 var GenStateExecuting = "executing";
9467 var GenStateCompleted = "completed";
9468
9469 // Returning this object from the innerFn has the same effect as
9470 // breaking out of the dispatch switch statement.
9471 var ContinueSentinel = {};
9472
9473 // Dummy constructor functions that we use as the .constructor and
9474 // .constructor.prototype properties for functions that return Generator
9475 // objects. For full spec compliance, you may wish to configure your
9476 // minifier not to mangle the names of these two functions.
9477 function Generator() {}
9478 function GeneratorFunction() {}
9479 function GeneratorFunctionPrototype() {}
9480
9481 // This is a polyfill for %IteratorPrototype% for environments that
9482 // don't natively support it.
9483 var IteratorPrototype = {};
9484 IteratorPrototype[iteratorSymbol] = function () {
9485 return this;
9486 };
9487
9488 var getProto = Object.getPrototypeOf;
9489 var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
9490 if (NativeIteratorPrototype &&
9491 NativeIteratorPrototype !== Op &&
9492 hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
9493 // This environment has a native %IteratorPrototype%; use it instead
9494 // of the polyfill.
9495 IteratorPrototype = NativeIteratorPrototype;
9496 }
9497
9498 var Gp = GeneratorFunctionPrototype.prototype =
9499 Generator.prototype = Object.create(IteratorPrototype);
9500 GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
9501 GeneratorFunctionPrototype.constructor = GeneratorFunction;
9502 GeneratorFunctionPrototype[toStringTagSymbol] =
9503 GeneratorFunction.displayName = "GeneratorFunction";
9504
9505 // Helper for defining the .next, .throw, and .return methods of the
9506 // Iterator interface in terms of a single ._invoke method.
9507 function defineIteratorMethods(prototype) {
9508 ["next", "throw", "return"].forEach(function(method) {
9509 prototype[method] = function(arg) {
9510 return this._invoke(method, arg);
9511 };
9512 });
9513 }
9514
9515 runtime.isGeneratorFunction = function(genFun) {
9516 var ctor = typeof genFun === "function" && genFun.constructor;
9517 return ctor
9518 ? ctor === GeneratorFunction ||
9519 // For the native GeneratorFunction constructor, the best we can
9520 // do is to check its .name property.
9521 (ctor.displayName || ctor.name) === "GeneratorFunction"
9522 : false;
9523 };
9524
9525 runtime.mark = function(genFun) {
9526 if (Object.setPrototypeOf) {
9527 Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
9528 } else {
9529 genFun.__proto__ = GeneratorFunctionPrototype;
9530 if (!(toStringTagSymbol in genFun)) {
9531 genFun[toStringTagSymbol] = "GeneratorFunction";
9532 }
9533 }
9534 genFun.prototype = Object.create(Gp);
9535 return genFun;
9536 };
9537
9538 // Within the body of any async function, `await x` is transformed to
9539 // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
9540 // `hasOwn.call(value, "__await")` to determine if the yielded value is
9541 // meant to be awaited.
9542 runtime.awrap = function(arg) {
9543 return { __await: arg };
9544 };
9545
9546 function AsyncIterator(generator) {
9547 function invoke(method, arg, resolve, reject) {
9548 var record = tryCatch(generator[method], generator, arg);
9549 if (record.type === "throw") {
9550 reject(record.arg);
9551 } else {
9552 var result = record.arg;
9553 var value = result.value;
9554 if (value &&
9555 typeof value === "object" &&
9556 hasOwn.call(value, "__await")) {
9557 return Promise.resolve(value.__await).then(function(value) {
9558 invoke("next", value, resolve, reject);
9559 }, function(err) {
9560 invoke("throw", err, resolve, reject);
9561 });
9562 }
9563
9564 return Promise.resolve(value).then(function(unwrapped) {
9565 // When a yielded Promise is resolved, its final value becomes
9566 // the .value of the Promise<{value,done}> result for the
9567 // current iteration. If the Promise is rejected, however, the
9568 // result for this iteration will be rejected with the same
9569 // reason. Note that rejections of yielded Promises are not
9570 // thrown back into the generator function, as is the case
9571 // when an awaited Promise is rejected. This difference in
9572 // behavior between yield and await is important, because it
9573 // allows the consumer to decide what to do with the yielded
9574 // rejection (swallow it and continue, manually .throw it back
9575 // into the generator, abandon iteration, whatever). With
9576 // await, by contrast, there is no opportunity to examine the
9577 // rejection reason outside the generator function, so the
9578 // only option is to throw it from the await expression, and
9579 // let the generator function handle the exception.
9580 result.value = unwrapped;
9581 resolve(result);
9582 }, reject);
9583 }
9584 }
9585
9586 if (typeof global.process === "object" && global.process.domain) {
9587 invoke = global.process.domain.bind(invoke);
9588 }
9589
9590 var previousPromise;
9591
9592 function enqueue(method, arg) {
9593 function callInvokeWithMethodAndArg() {
9594 return new Promise(function(resolve, reject) {
9595 invoke(method, arg, resolve, reject);
9596 });
9597 }
9598
9599 return previousPromise =
9600 // If enqueue has been called before, then we want to wait until
9601 // all previous Promises have been resolved before calling invoke,
9602 // so that results are always delivered in the correct order. If
9603 // enqueue has not been called before, then it is important to
9604 // call invoke immediately, without waiting on a callback to fire,
9605 // so that the async generator function has the opportunity to do
9606 // any necessary setup in a predictable way. This predictability
9607 // is why the Promise constructor synchronously invokes its
9608 // executor callback, and why async functions synchronously
9609 // execute code before the first await. Since we implement simple
9610 // async functions in terms of async generators, it is especially
9611 // important to get this right, even though it requires care.
9612 previousPromise ? previousPromise.then(
9613 callInvokeWithMethodAndArg,
9614 // Avoid propagating failures to Promises returned by later
9615 // invocations of the iterator.
9616 callInvokeWithMethodAndArg
9617 ) : callInvokeWithMethodAndArg();
9618 }
9619
9620 // Define the unified helper method that is used to implement .next,
9621 // .throw, and .return (see defineIteratorMethods).
9622 this._invoke = enqueue;
9623 }
9624
9625 defineIteratorMethods(AsyncIterator.prototype);
9626 AsyncIterator.prototype[asyncIteratorSymbol] = function () {
9627 return this;
9628 };
9629 runtime.AsyncIterator = AsyncIterator;
9630
9631 // Note that simple async functions are implemented on top of
9632 // AsyncIterator objects; they just return a Promise for the value of
9633 // the final result produced by the iterator.
9634 runtime.async = function(innerFn, outerFn, self, tryLocsList) {
9635 var iter = new AsyncIterator(
9636 wrap(innerFn, outerFn, self, tryLocsList)
9637 );
9638
9639 return runtime.isGeneratorFunction(outerFn)
9640 ? iter // If outerFn is a generator, return the full iterator.
9641 : iter.next().then(function(result) {
9642 return result.done ? result.value : iter.next();
9643 });
9644 };
9645
9646 function makeInvokeMethod(innerFn, self, context) {
9647 var state = GenStateSuspendedStart;
9648
9649 return function invoke(method, arg) {
9650 if (state === GenStateExecuting) {
9651 throw new Error("Generator is already running");
9652 }
9653
9654 if (state === GenStateCompleted) {
9655 if (method === "throw") {
9656 throw arg;
9657 }
9658
9659 // Be forgiving, per 25.3.3.3.3 of the spec:
9660 // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
9661 return doneResult();
9662 }
9663
9664 context.method = method;
9665 context.arg = arg;
9666
9667 while (true) {
9668 var delegate = context.delegate;
9669 if (delegate) {
9670 var delegateResult = maybeInvokeDelegate(delegate, context);
9671 if (delegateResult) {
9672 if (delegateResult === ContinueSentinel) continue;
9673 return delegateResult;
9674 }
9675 }
9676
9677 if (context.method === "next") {
9678 // Setting context._sent for legacy support of Babel's
9679 // function.sent implementation.
9680 context.sent = context._sent = context.arg;
9681
9682 } else if (context.method === "throw") {
9683 if (state === GenStateSuspendedStart) {
9684 state = GenStateCompleted;
9685 throw context.arg;
9686 }
9687
9688 context.dispatchException(context.arg);
9689
9690 } else if (context.method === "return") {
9691 context.abrupt("return", context.arg);
9692 }
9693
9694 state = GenStateExecuting;
9695
9696 var record = tryCatch(innerFn, self, context);
9697 if (record.type === "normal") {
9698 // If an exception is thrown from innerFn, we leave state ===
9699 // GenStateExecuting and loop back for another invocation.
9700 state = context.done
9701 ? GenStateCompleted
9702 : GenStateSuspendedYield;
9703
9704 if (record.arg === ContinueSentinel) {
9705 continue;
9706 }
9707
9708 return {
9709 value: record.arg,
9710 done: context.done
9711 };
9712
9713 } else if (record.type === "throw") {
9714 state = GenStateCompleted;
9715 // Dispatch the exception by looping back around to the
9716 // context.dispatchException(context.arg) call above.
9717 context.method = "throw";
9718 context.arg = record.arg;
9719 }
9720 }
9721 };
9722 }
9723
9724 // Call delegate.iterator[context.method](context.arg) and handle the
9725 // result, either by returning a { value, done } result from the
9726 // delegate iterator, or by modifying context.method and context.arg,
9727 // setting context.delegate to null, and returning the ContinueSentinel.
9728 function maybeInvokeDelegate(delegate, context) {
9729 var method = delegate.iterator[context.method];
9730 if (method === undefined) {
9731 // A .throw or .return when the delegate iterator has no .throw
9732 // method always terminates the yield* loop.
9733 context.delegate = null;
9734
9735 if (context.method === "throw") {
9736 if (delegate.iterator.return) {
9737 // If the delegate iterator has a return method, give it a
9738 // chance to clean up.
9739 context.method = "return";
9740 context.arg = undefined;
9741 maybeInvokeDelegate(delegate, context);
9742
9743 if (context.method === "throw") {
9744 // If maybeInvokeDelegate(context) changed context.method from
9745 // "return" to "throw", let that override the TypeError below.
9746 return ContinueSentinel;
9747 }
9748 }
9749
9750 context.method = "throw";
9751 context.arg = new TypeError(
9752 "The iterator does not provide a 'throw' method");
9753 }
9754
9755 return ContinueSentinel;
9756 }
9757
9758 var record = tryCatch(method, delegate.iterator, context.arg);
9759
9760 if (record.type === "throw") {
9761 context.method = "throw";
9762 context.arg = record.arg;
9763 context.delegate = null;
9764 return ContinueSentinel;
9765 }
9766
9767 var info = record.arg;
9768
9769 if (! info) {
9770 context.method = "throw";
9771 context.arg = new TypeError("iterator result is not an object");
9772 context.delegate = null;
9773 return ContinueSentinel;
9774 }
9775
9776 if (info.done) {
9777 // Assign the result of the finished delegate to the temporary
9778 // variable specified by delegate.resultName (see delegateYield).
9779 context[delegate.resultName] = info.value;
9780
9781 // Resume execution at the desired location (see delegateYield).
9782 context.next = delegate.nextLoc;
9783
9784 // If context.method was "throw" but the delegate handled the
9785 // exception, let the outer generator proceed normally. If
9786 // context.method was "next", forget context.arg since it has been
9787 // "consumed" by the delegate iterator. If context.method was
9788 // "return", allow the original .return call to continue in the
9789 // outer generator.
9790 if (context.method !== "return") {
9791 context.method = "next";
9792 context.arg = undefined;
9793 }
9794
9795 } else {
9796 // Re-yield the result returned by the delegate method.
9797 return info;
9798 }
9799
9800 // The delegate iterator is finished, so forget it and continue with
9801 // the outer generator.
9802 context.delegate = null;
9803 return ContinueSentinel;
9804 }
9805
9806 // Define Generator.prototype.{next,throw,return} in terms of the
9807 // unified ._invoke helper method.
9808 defineIteratorMethods(Gp);
9809
9810 Gp[toStringTagSymbol] = "Generator";
9811
9812 // A Generator should always return itself as the iterator object when the
9813 // @@iterator function is called on it. Some browsers' implementations of the
9814 // iterator prototype chain incorrectly implement this, causing the Generator
9815 // object to not be returned from this call. This ensures that doesn't happen.
9816 // See https://github.com/facebook/regenerator/issues/274 for more details.
9817 Gp[iteratorSymbol] = function() {
9818 return this;
9819 };
9820
9821 Gp.toString = function() {
9822 return "[object Generator]";
9823 };
9824
9825 function pushTryEntry(locs) {
9826 var entry = { tryLoc: locs[0] };
9827
9828 if (1 in locs) {
9829 entry.catchLoc = locs[1];
9830 }
9831
9832 if (2 in locs) {
9833 entry.finallyLoc = locs[2];
9834 entry.afterLoc = locs[3];
9835 }
9836
9837 this.tryEntries.push(entry);
9838 }
9839
9840 function resetTryEntry(entry) {
9841 var record = entry.completion || {};
9842 record.type = "normal";
9843 delete record.arg;
9844 entry.completion = record;
9845 }
9846
9847 function Context(tryLocsList) {
9848 // The root entry object (effectively a try statement without a catch
9849 // or a finally block) gives us a place to store values thrown from
9850 // locations where there is no enclosing try statement.
9851 this.tryEntries = [{ tryLoc: "root" }];
9852 tryLocsList.forEach(pushTryEntry, this);
9853 this.reset(true);
9854 }
9855
9856 runtime.keys = function(object) {
9857 var keys = [];
9858 for (var key in object) {
9859 keys.push(key);
9860 }
9861 keys.reverse();
9862
9863 // Rather than returning an object with a next method, we keep
9864 // things simple and return the next function itself.
9865 return function next() {
9866 while (keys.length) {
9867 var key = keys.pop();
9868 if (key in object) {
9869 next.value = key;
9870 next.done = false;
9871 return next;
9872 }
9873 }
9874
9875 // To avoid creating an additional object, we just hang the .value
9876 // and .done properties off the next function object itself. This
9877 // also ensures that the minifier will not anonymize the function.
9878 next.done = true;
9879 return next;
9880 };
9881 };
9882
9883 function values(iterable) {
9884 if (iterable) {
9885 var iteratorMethod = iterable[iteratorSymbol];
9886 if (iteratorMethod) {
9887 return iteratorMethod.call(iterable);
9888 }
9889
9890 if (typeof iterable.next === "function") {
9891 return iterable;
9892 }
9893
9894 if (!isNaN(iterable.length)) {
9895 var i = -1, next = function next() {
9896 while (++i < iterable.length) {
9897 if (hasOwn.call(iterable, i)) {
9898 next.value = iterable[i];
9899 next.done = false;
9900 return next;
9901 }
9902 }
9903
9904 next.value = undefined;
9905 next.done = true;
9906
9907 return next;
9908 };
9909
9910 return next.next = next;
9911 }
9912 }
9913
9914 // Return an iterator with no values.
9915 return { next: doneResult };
9916 }
9917 runtime.values = values;
9918
9919 function doneResult() {
9920 return { value: undefined, done: true };
9921 }
9922
9923 Context.prototype = {
9924 constructor: Context,
9925
9926 reset: function(skipTempReset) {
9927 this.prev = 0;
9928 this.next = 0;
9929 // Resetting context._sent for legacy support of Babel's
9930 // function.sent implementation.
9931 this.sent = this._sent = undefined;
9932 this.done = false;
9933 this.delegate = null;
9934
9935 this.method = "next";
9936 this.arg = undefined;
9937
9938 this.tryEntries.forEach(resetTryEntry);
9939
9940 if (!skipTempReset) {
9941 for (var name in this) {
9942 // Not sure about the optimal order of these conditions:
9943 if (name.charAt(0) === "t" &&
9944 hasOwn.call(this, name) &&
9945 !isNaN(+name.slice(1))) {
9946 this[name] = undefined;
9947 }
9948 }
9949 }
9950 },
9951
9952 stop: function() {
9953 this.done = true;
9954
9955 var rootEntry = this.tryEntries[0];
9956 var rootRecord = rootEntry.completion;
9957 if (rootRecord.type === "throw") {
9958 throw rootRecord.arg;
9959 }
9960
9961 return this.rval;
9962 },
9963
9964 dispatchException: function(exception) {
9965 if (this.done) {
9966 throw exception;
9967 }
9968
9969 var context = this;
9970 function handle(loc, caught) {
9971 record.type = "throw";
9972 record.arg = exception;
9973 context.next = loc;
9974
9975 if (caught) {
9976 // If the dispatched exception was caught by a catch block,
9977 // then let that catch block handle the exception normally.
9978 context.method = "next";
9979 context.arg = undefined;
9980 }
9981
9982 return !! caught;
9983 }
9984
9985 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
9986 var entry = this.tryEntries[i];
9987 var record = entry.completion;
9988
9989 if (entry.tryLoc === "root") {
9990 // Exception thrown outside of any try block that could handle
9991 // it, so set the completion value of the entire function to
9992 // throw the exception.
9993 return handle("end");
9994 }
9995
9996 if (entry.tryLoc <= this.prev) {
9997 var hasCatch = hasOwn.call(entry, "catchLoc");
9998 var hasFinally = hasOwn.call(entry, "finallyLoc");
9999
10000 if (hasCatch && hasFinally) {
10001 if (this.prev < entry.catchLoc) {
10002 return handle(entry.catchLoc, true);
10003 } else if (this.prev < entry.finallyLoc) {
10004 return handle(entry.finallyLoc);
10005 }
10006
10007 } else if (hasCatch) {
10008 if (this.prev < entry.catchLoc) {
10009 return handle(entry.catchLoc, true);
10010 }
10011
10012 } else if (hasFinally) {
10013 if (this.prev < entry.finallyLoc) {
10014 return handle(entry.finallyLoc);
10015 }
10016
10017 } else {
10018 throw new Error("try statement without catch or finally");
10019 }
10020 }
10021 }
10022 },
10023
10024 abrupt: function(type, arg) {
10025 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
10026 var entry = this.tryEntries[i];
10027 if (entry.tryLoc <= this.prev &&
10028 hasOwn.call(entry, "finallyLoc") &&
10029 this.prev < entry.finallyLoc) {
10030 var finallyEntry = entry;
10031 break;
10032 }
10033 }
10034
10035 if (finallyEntry &&
10036 (type === "break" ||
10037 type === "continue") &&
10038 finallyEntry.tryLoc <= arg &&
10039 arg <= finallyEntry.finallyLoc) {
10040 // Ignore the finally entry if control is not jumping to a
10041 // location outside the try/catch block.
10042 finallyEntry = null;
10043 }
10044
10045 var record = finallyEntry ? finallyEntry.completion : {};
10046 record.type = type;
10047 record.arg = arg;
10048
10049 if (finallyEntry) {
10050 this.method = "next";
10051 this.next = finallyEntry.finallyLoc;
10052 return ContinueSentinel;
10053 }
10054
10055 return this.complete(record);
10056 },
10057
10058 complete: function(record, afterLoc) {
10059 if (record.type === "throw") {
10060 throw record.arg;
10061 }
10062
10063 if (record.type === "break" ||
10064 record.type === "continue") {
10065 this.next = record.arg;
10066 } else if (record.type === "return") {
10067 this.rval = this.arg = record.arg;
10068 this.method = "return";
10069 this.next = "end";
10070 } else if (record.type === "normal" && afterLoc) {
10071 this.next = afterLoc;
10072 }
10073
10074 return ContinueSentinel;
10075 },
10076
10077 finish: function(finallyLoc) {
10078 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
10079 var entry = this.tryEntries[i];
10080 if (entry.finallyLoc === finallyLoc) {
10081 this.complete(entry.completion, entry.afterLoc);
10082 resetTryEntry(entry);
10083 return ContinueSentinel;
10084 }
10085 }
10086 },
10087
10088 "catch": function(tryLoc) {
10089 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
10090 var entry = this.tryEntries[i];
10091 if (entry.tryLoc === tryLoc) {
10092 var record = entry.completion;
10093 if (record.type === "throw") {
10094 var thrown = record.arg;
10095 resetTryEntry(entry);
10096 }
10097 return thrown;
10098 }
10099 }
10100
10101 // The context.catch method must only be called with a location
10102 // argument that corresponds to a known catch block.
10103 throw new Error("illegal catch attempt");
10104 },
10105
10106 delegateYield: function(iterable, resultName, nextLoc) {
10107 this.delegate = {
10108 iterator: values(iterable),
10109 resultName: resultName,
10110 nextLoc: nextLoc
10111 };
10112
10113 if (this.method === "next") {
10114 // Deliberately forget the last sent value so that we don't
10115 // accidentally pass it on to the delegate.
10116 this.arg = undefined;
10117 }
10118
10119 return ContinueSentinel;
10120 }
10121 };
10122})(
10123 // Among the various tricks for obtaining a reference to the global
10124 // object, this seems to be the most reliable technique that does not
10125 // use indirect eval (which violates Content Security Policy).
10126 typeof global === "object" ? global :
10127 typeof window === "object" ? window :
10128 typeof self === "object" ? self : this
10129);
10130
10131/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(95)))
10132
10133/***/ }),
10134/* 337 */
10135/***/ (function(module, exports, __webpack_require__) {
10136
10137__webpack_require__(338);
10138module.exports = __webpack_require__(22).RegExp.escape;
10139
10140
10141/***/ }),
10142/* 338 */
10143/***/ (function(module, exports, __webpack_require__) {
10144
10145// https://github.com/benjamingr/RexExp.escape
10146var $export = __webpack_require__(0);
10147var $re = __webpack_require__(339)(/[\\^$*+?.()|[\]{}]/g, '\\$&');
10148
10149$export($export.S, 'RegExp', { escape: function escape(it) { return $re(it); } });
10150
10151
10152/***/ }),
10153/* 339 */
10154/***/ (function(module, exports) {
10155
10156module.exports = function (regExp, replace) {
10157 var replacer = replace === Object(replace) ? function (part) {
10158 return replace[part];
10159 } : replace;
10160 return function (it) {
10161 return String(it).replace(regExp, replacer);
10162 };
10163};
10164
10165
10166/***/ }),
10167/* 340 */
10168/***/ (function(module, exports, __webpack_require__) {
10169
10170// style-loader: Adds some css to the DOM by adding a <style> tag
10171
10172// load the styles
10173var content = __webpack_require__(341);
10174if(typeof content === 'string') content = [[module.i, content, '']];
10175// Prepare cssTransformation
10176var transform;
10177
10178var options = {"hmr":true}
10179options.transform = transform
10180// add the styles to the DOM
10181var update = __webpack_require__(48)(content, options);
10182if(content.locals) module.exports = content.locals;
10183// Hot Module Replacement
10184if(false) {
10185 // When the styles change, update the <style> tags
10186 if(!content.locals) {
10187 module.hot.accept("!!../node_modules/css-loader/index.js!../node_modules/sass-loader/lib/loader.js!./index.scss", function() {
10188 var newContent = require("!!../node_modules/css-loader/index.js!../node_modules/sass-loader/lib/loader.js!./index.scss");
10189 if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
10190 update(newContent);
10191 });
10192 }
10193 // When the module is disposed, remove the <style> tags
10194 module.hot.dispose(function() { update(); });
10195}
10196
10197/***/ }),
10198/* 341 */
10199/***/ (function(module, exports, __webpack_require__) {
10200
10201exports = module.exports = __webpack_require__(47)(undefined);
10202// imports
10203
10204
10205// module
10206exports.push([module.i, ".ut-content-container {\n padding: 0; }\n .ut-content-container .ut-content {\n border: 0; }\n .ut-content-container .ut-content.ut-content--split-view-extend {\n max-height: 100%; }\n\n.listFUTItem .entityContainer .name.untradeable {\n display: block; }\n .listFUTItem .entityContainer .name.untradeable::before {\n position: relative;\n padding-right: 10px; }\n\n.ut-transfer-list-view .listFUTItem .entityContainer,\n.ut-club-search-results-view.ui-layout-left .listFUTItem .entityContainer,\n.ut-unassigned-view.ui-layout-left .listFUTItem .entityContainer {\n width: 45%; }\n\n@media (min-width: 1281px) {\n .ut-content-container .ut-content {\n max-width: 100%;\n max-height: 100%; }\n .ut-split-view .ut-content {\n max-width: 100%;\n max-height: 100%; } }\n", ""]);
10207
10208// exports
10209
10210
10211/***/ }),
10212/* 342 */
10213/***/ (function(module, exports) {
10214
10215
10216/**
10217 * When source maps are enabled, `style-loader` uses a link element with a data-uri to
10218 * embed the css on the page. This breaks all relative urls because now they are relative to a
10219 * bundle instead of the current page.
10220 *
10221 * One solution is to only use full urls, but that may be impossible.
10222 *
10223 * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
10224 *
10225 * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
10226 *
10227 */
10228
10229module.exports = function (css) {
10230 // get current location
10231 var location = typeof window !== "undefined" && window.location;
10232
10233 if (!location) {
10234 throw new Error("fixUrls requires window.location");
10235 }
10236
10237 // blank or null?
10238 if (!css || typeof css !== "string") {
10239 return css;
10240 }
10241
10242 var baseUrl = location.protocol + "//" + location.host;
10243 var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
10244
10245 // convert each url(...)
10246 /*
10247 This regular expression is just a way to recursively match brackets within
10248 a string.
10249
10250 /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
10251 ( = Start a capturing group
10252 (?: = Start a non-capturing group
10253 [^)(] = Match anything that isn't a parentheses
10254 | = OR
10255 \( = Match a start parentheses
10256 (?: = Start another non-capturing groups
10257 [^)(]+ = Match anything that isn't a parentheses
10258 | = OR
10259 \( = Match a start parentheses
10260 [^)(]* = Match anything that isn't a parentheses
10261 \) = Match a end parentheses
10262 ) = End Group
10263 *\) = Match anything and then a close parens
10264 ) = Close non-capturing group
10265 * = Match anything
10266 ) = Close capturing group
10267 \) = Match a close parens
10268
10269 /gi = Get all matches, not the first. Be case insensitive.
10270 */
10271 var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
10272 // strip quotes (if they exist)
10273 var unquotedOrigUrl = origUrl
10274 .trim()
10275 .replace(/^"(.*)"$/, function(o, $1){ return $1; })
10276 .replace(/^'(.*)'$/, function(o, $1){ return $1; });
10277
10278 // already a full url? no change
10279 if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(unquotedOrigUrl)) {
10280 return fullMatch;
10281 }
10282
10283 // convert the url to a full url
10284 var newUrl;
10285
10286 if (unquotedOrigUrl.indexOf("//") === 0) {
10287 //TODO: should we add protocol?
10288 newUrl = unquotedOrigUrl;
10289 } else if (unquotedOrigUrl.indexOf("/") === 0) {
10290 // path should be relative to the base url
10291 newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
10292 } else {
10293 // path should be relative to current directory
10294 newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
10295 }
10296
10297 // send back the fixed url(...)
10298 return "url(" + JSON.stringify(newUrl) + ")";
10299 });
10300
10301 // send back the fixed css
10302 return fixedCss;
10303};
10304
10305
10306/***/ }),
10307/* 343 */
10308/***/ (function(module, exports, __webpack_require__) {
10309
10310"use strict";
10311
10312
10313Object.defineProperty(exports, "__esModule", {
10314 value: true
10315});
10316
10317__webpack_require__(344);
10318
10319var _core = __webpack_require__(18);
10320
10321var _settings = __webpack_require__(361);
10322
10323var _settings2 = _interopRequireDefault(_settings);
10324
10325function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10326
10327var handleFieldChange = function handleFieldChange(entry, setting, e) {
10328 if (setting.subsettings && setting.subsettings.length > 0) {
10329 entry.changeValue(setting.key, e.target.checked);
10330 } else if (setting.type === 'checkbox') {
10331 entry.changeValue(setting.key, e.target.checked);
10332 } else {
10333 entry.changeValue(setting.key, e.target.value);
10334 }
10335
10336 if (setting.callback) {
10337 setting.callback(e.target.value);
10338 }
10339 if (setting.subsettings && setting.subsettings.length > 0) {
10340 $('[data-parent-feature-setting-id=\'' + entry.id + ':' + setting.key + '\']').toggle();
10341 }
10342}; /* globals $ */
10343/* eslint-disable no-restricted-syntax */
10344
10345var renderSettingsEntry = function renderSettingsEntry(setting, entry) {
10346 var inputId = entry.id + ':' + setting.key;
10347 return '<div class="setting">\n ' + (setting.type !== 'checkbox' ? '<label for="' + inputId + '">' + setting.label + '</label>' : '') + '\n <input\n type="' + setting.type + '"\n id="' + inputId + '"\n data-feature-setting-id="' + entry.id + ':' + setting.key + '"\n value="' + setting.value + '"\n ' + (setting.type === 'checkbox' && setting.value.toString() === 'true' ? 'checked' : '') + '\n />\n ' + (setting.type === 'checkbox' ? '<label for="' + inputId + '">' + setting.label + '</label>' : '') + '\n </div>';
10348};
10349
10350exports.default = function (settings) {
10351 var html = _settings2.default;
10352
10353 $('body').prepend(html);
10354
10355 var settingsPanel = $('.futsettings #settingspanel');
10356
10357 var _loop = function _loop(entry) {
10358 var checked = entry.isActive ? 'checked="checked"' : '';
10359 settingsPanel.append('<h3 class="main-setting">\n <input type="checkbox" id="' + entry.id + '" data-feature-id="' + entry.id + '" ' + checked + ' />\n <label for="' + entry.id + '">' + entry.name + '</label>\n </h3>');
10360 var settingsFields = '';
10361 if (entry.settings && entry.settings.length > 0) {
10362 var _iteratorNormalCompletion2 = true;
10363 var _didIteratorError2 = false;
10364 var _iteratorError2 = undefined;
10365
10366 try {
10367 for (var _iterator2 = entry.settings[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
10368 var setting = _step2.value;
10369
10370 if (setting.subsettings.length > 0) {
10371 settingsFields += renderSettingsEntry(setting, entry);
10372
10373 var settingActive = setting.value ? 'block' : 'none';
10374 settingsFields += '<div data-parent-feature-setting-id="' + entry.id + ':' + setting.key + '" style="display: ' + settingActive + '">';
10375 var _iteratorNormalCompletion4 = true;
10376 var _didIteratorError4 = false;
10377 var _iteratorError4 = undefined;
10378
10379 try {
10380 for (var _iterator4 = setting.subsettings[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
10381 var subsetting = _step4.value;
10382
10383 settingsFields += renderSettingsEntry(subsetting, entry);
10384 }
10385 } catch (err) {
10386 _didIteratorError4 = true;
10387 _iteratorError4 = err;
10388 } finally {
10389 try {
10390 if (!_iteratorNormalCompletion4 && _iterator4.return) {
10391 _iterator4.return();
10392 }
10393 } finally {
10394 if (_didIteratorError4) {
10395 throw _iteratorError4;
10396 }
10397 }
10398 }
10399
10400 settingsFields += '</div>';
10401 } else {
10402 settingsFields += renderSettingsEntry(setting, entry);
10403 }
10404 }
10405 } catch (err) {
10406 _didIteratorError2 = true;
10407 _iteratorError2 = err;
10408 } finally {
10409 try {
10410 if (!_iteratorNormalCompletion2 && _iterator2.return) {
10411 _iterator2.return();
10412 }
10413 } finally {
10414 if (_didIteratorError2) {
10415 throw _iteratorError2;
10416 }
10417 }
10418 }
10419
10420 var featureActive = entry.isActive ? 'block' : 'none';
10421 settingsPanel.append('<div class="feature-settings"><div data-feature-settings="' + entry.id + '" style="display: ' + featureActive + ';">' + settingsFields + '</div></div>');
10422
10423 var _loop2 = function _loop2(_setting) {
10424 $('[data-feature-setting-id=\'' + entry.id + ':' + _setting.key + '\']').on('change', function (e) {
10425 handleFieldChange(entry, _setting, e);
10426 });
10427
10428 var _loop3 = function _loop3(_subsetting) {
10429 $('[data-feature-setting-id=\'' + entry.id + ':' + _subsetting.key + '\']').on('change', function (e) {
10430 handleFieldChange(entry, _subsetting, e);
10431 });
10432 };
10433
10434 var _iteratorNormalCompletion5 = true;
10435 var _didIteratorError5 = false;
10436 var _iteratorError5 = undefined;
10437
10438 try {
10439 for (var _iterator5 = _setting.subsettings[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
10440 var _subsetting = _step5.value;
10441
10442 _loop3(_subsetting);
10443 }
10444 } catch (err) {
10445 _didIteratorError5 = true;
10446 _iteratorError5 = err;
10447 } finally {
10448 try {
10449 if (!_iteratorNormalCompletion5 && _iterator5.return) {
10450 _iterator5.return();
10451 }
10452 } finally {
10453 if (_didIteratorError5) {
10454 throw _iteratorError5;
10455 }
10456 }
10457 }
10458 };
10459
10460 var _iteratorNormalCompletion3 = true;
10461 var _didIteratorError3 = false;
10462 var _iteratorError3 = undefined;
10463
10464 try {
10465 for (var _iterator3 = entry.settings[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
10466 var _setting = _step3.value;
10467
10468 _loop2(_setting);
10469 }
10470 } catch (err) {
10471 _didIteratorError3 = true;
10472 _iteratorError3 = err;
10473 } finally {
10474 try {
10475 if (!_iteratorNormalCompletion3 && _iterator3.return) {
10476 _iterator3.return();
10477 }
10478 } finally {
10479 if (_didIteratorError3) {
10480 throw _iteratorError3;
10481 }
10482 }
10483 }
10484 } else {
10485 settingsPanel.append('<div class="feature-settings-empty"></div>');
10486 }
10487
10488 $('[data-feature-id=\'' + entry.id + '\']').on('click', function () {
10489 settings.toggleEntry(entry.id);
10490 $('[data-feature-settings=\'' + entry.id + '\']').toggle();
10491 });
10492 };
10493
10494 var _iteratorNormalCompletion = true;
10495 var _didIteratorError = false;
10496 var _iteratorError = undefined;
10497
10498 try {
10499 for (var _iterator = settings.getEntries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
10500 var entry = _step.value;
10501
10502 _loop(entry);
10503 }
10504 } catch (err) {
10505 _didIteratorError = true;
10506 _iteratorError = err;
10507 } finally {
10508 try {
10509 if (!_iteratorNormalCompletion && _iterator.return) {
10510 _iterator.return();
10511 }
10512 } finally {
10513 if (_didIteratorError) {
10514 throw _iteratorError;
10515 }
10516 }
10517 }
10518
10519 $('.futsettings-toggle').click(function () {
10520 _core.analytics.trackEvent('Settings', 'Toggle settings', $('.futsettings').is(':visible'));
10521 $('.futsettings').toggle();
10522 });
10523};
10524
10525/***/ }),
10526/* 344 */
10527/***/ (function(module, exports, __webpack_require__) {
10528
10529// style-loader: Adds some css to the DOM by adding a <style> tag
10530
10531// load the styles
10532var content = __webpack_require__(345);
10533if(typeof content === 'string') content = [[module.i, content, '']];
10534// Prepare cssTransformation
10535var transform;
10536
10537var options = {"hmr":true}
10538options.transform = transform
10539// add the styles to the DOM
10540var update = __webpack_require__(48)(content, options);
10541if(content.locals) module.exports = content.locals;
10542// Hot Module Replacement
10543if(false) {
10544 // When the styles change, update the <style> tags
10545 if(!content.locals) {
10546 module.hot.accept("!!../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./index.scss", function() {
10547 var newContent = require("!!../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./index.scss");
10548 if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
10549 update(newContent);
10550 });
10551 }
10552 // When the module is disposed, remove the <style> tags
10553 module.hot.dispose(function() { update(); });
10554}
10555
10556/***/ }),
10557/* 345 */
10558/***/ (function(module, exports, __webpack_require__) {
10559
10560exports = module.exports = __webpack_require__(47)(undefined);
10561// imports
10562
10563
10564// module
10565exports.push([module.i, ".futsettings-toggle {\n position: absolute !important;\n bottom: 20px;\n right: 20px;\n z-index: 999; }\n .futsettings-toggle ::before {\n font-family: UltimateTeam-Icons,sans-serif;\n content: \"\\E056\";\n font-size: 2rem;\n color: black; }\n\n.futsettings {\n position: absolute;\n top: 112px;\n bottom: 0;\n left: 105px;\n right: 0;\n background-color: #fff;\n overflow-y: auto;\n display: none;\n z-index: 998;\n padding: 15px; }\n .futsettings, .futsettings *, .futsettings *:before, .futsettings *:after {\n box-sizing: border-box; }\n .futsettings footer {\n text-align: center;\n padding: 15px; }\n .futsettings footer hr {\n border: none;\n border-bottom: 1px solid #ddd; }\n .futsettings footer p, .futsettings footer li {\n font-size: smaller;\n margin: 10px; }\n .futsettings .settings-title {\n color: #183f94;\n font-size: 2.5em;\n font-weight: 400;\n font-family: UltimateTeamCondensed,sans-serif;\n line-height: 1em;\n margin-bottom: 0.5rem;\n text-transform: uppercase;\n width: 100%; }\n .futsettings .main-setting label {\n display: inline-block;\n padding-bottom: 15px;\n padding-top: 15px; }\n .futsettings .feature-settings-empty {\n display: none; }\n .futsettings .feature-settings {\n background-color: #f5f5f5;\n margin-bottom: 25px;\n padding: 10px;\n position: relative; }\n .futsettings .feature-settings .setting {\n padding: 10px; }\n .futsettings .feature-settings .setting input[type=number],\n .futsettings .feature-settings .setting input[type=text] {\n background-color: #fff;\n border: 1px #33314e solid;\n clear: both;\n color: #33314e;\n display: block;\n font-size: 14px;\n height: 3.5em;\n padding: 10px;\n text-align: left;\n width: 100%; }\n .futsettings input[type=checkbox] {\n display: none; }\n .futsettings input[type=checkbox] + label {\n cursor: pointer;\n position: relative;\n padding-left: 50px; }\n .futsettings input[type=checkbox] + label:before {\n background-color: #ccc;\n border: 1px solid #999;\n border-radius: 8px;\n content: '';\n height: 16px;\n left: 0;\n position: absolute;\n transition: background-color 300ms ease, border-color 300ms ease;\n width: 40px; }\n .futsettings input[type=checkbox] + label:after {\n background-color: #999;\n border: 1px solid #999;\n border-radius: 50%;\n content: '';\n height: 22px;\n left: 0;\n margin-top: -3px;\n position: absolute;\n transform: translateX(0);\n transition: background-color 300ms ease, border-color 300ms ease, transform 300ms ease;\n width: 22px; }\n .futsettings input[type=checkbox]:checked + label:before {\n background-color: #fc87ac;\n border-color: #f93b78; }\n .futsettings input[type=checkbox]:checked + label:after {\n background-color: #f93b78;\n border-color: #f93b78;\n transform: translateX(20px); }\n", ""]);
10566
10567// exports
10568
10569
10570/***/ }),
10571/* 346 */
10572/***/ (function(module, exports, __webpack_require__) {
10573
10574"use strict";
10575
10576
10577var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
10578
10579function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10580
10581var DEFAULT_VALUES = {
10582 emitDelay: 10,
10583 strictMode: false
10584};
10585
10586/**
10587 * @typedef {object} EventEmitterListenerFunc
10588 * @property {boolean} once
10589 * @property {function} fn
10590 */
10591
10592/**
10593 * @class EventEmitter
10594 *
10595 * @private
10596 * @property {Object.<string, EventEmitterListenerFunc[]>} _listeners
10597 * @property {string[]} events
10598 */
10599
10600var EventEmitter = function () {
10601
10602 /**
10603 * @constructor
10604 * @param {{}} [opts]
10605 * @param {number} [opts.emitDelay = 10] - Number in ms. Specifies whether emit will be sync or async. By default - 10ms. If 0 - fires sync
10606 * @param {boolean} [opts.strictMode = false] - is true, Emitter throws error on emit error with no listeners
10607 */
10608
10609 function EventEmitter() {
10610 var opts = arguments.length <= 0 || arguments[0] === undefined ? DEFAULT_VALUES : arguments[0];
10611
10612 _classCallCheck(this, EventEmitter);
10613
10614 var emitDelay = void 0,
10615 strictMode = void 0;
10616
10617 if (opts.hasOwnProperty('emitDelay')) {
10618 emitDelay = opts.emitDelay;
10619 } else {
10620 emitDelay = DEFAULT_VALUES.emitDelay;
10621 }
10622 this._emitDelay = emitDelay;
10623
10624 if (opts.hasOwnProperty('strictMode')) {
10625 strictMode = opts.strictMode;
10626 } else {
10627 strictMode = DEFAULT_VALUES.strictMode;
10628 }
10629 this._strictMode = strictMode;
10630
10631 this._listeners = {};
10632 this.events = [];
10633 }
10634
10635 /**
10636 * @protected
10637 * @param {string} type
10638 * @param {function} listener
10639 * @param {boolean} [once = false]
10640 */
10641
10642
10643 _createClass(EventEmitter, [{
10644 key: '_addListenner',
10645 value: function _addListenner(type, listener, once) {
10646 if (typeof listener !== 'function') {
10647 throw TypeError('listener must be a function');
10648 }
10649
10650 if (this.events.indexOf(type) === -1) {
10651 this._listeners[type] = [{
10652 once: once,
10653 fn: listener
10654 }];
10655 this.events.push(type);
10656 } else {
10657 this._listeners[type].push({
10658 once: once,
10659 fn: listener
10660 });
10661 }
10662 }
10663
10664 /**
10665 * Subscribes on event type specified function
10666 * @param {string} type
10667 * @param {function} listener
10668 */
10669
10670 }, {
10671 key: 'on',
10672 value: function on(type, listener) {
10673 this._addListenner(type, listener, false);
10674 }
10675
10676 /**
10677 * Subscribes on event type specified function to fire only once
10678 * @param {string} type
10679 * @param {function} listener
10680 */
10681
10682 }, {
10683 key: 'once',
10684 value: function once(type, listener) {
10685 this._addListenner(type, listener, true);
10686 }
10687
10688 /**
10689 * Removes event with specified type. If specified listenerFunc - deletes only one listener of specified type
10690 * @param {string} eventType
10691 * @param {function} [listenerFunc]
10692 */
10693
10694 }, {
10695 key: 'off',
10696 value: function off(eventType, listenerFunc) {
10697 var _this = this;
10698
10699 var typeIndex = this.events.indexOf(eventType);
10700 var hasType = eventType && typeIndex !== -1;
10701
10702 if (hasType) {
10703 if (!listenerFunc) {
10704 delete this._listeners[eventType];
10705 this.events.splice(typeIndex, 1);
10706 } else {
10707 (function () {
10708 var removedEvents = [];
10709 var typeListeners = _this._listeners[eventType];
10710
10711 typeListeners.forEach(
10712 /**
10713 * @param {EventEmitterListenerFunc} fn
10714 * @param {number} idx
10715 */
10716 function (fn, idx) {
10717 if (fn.fn === listenerFunc) {
10718 removedEvents.unshift(idx);
10719 }
10720 });
10721
10722 removedEvents.forEach(function (idx) {
10723 typeListeners.splice(idx, 1);
10724 });
10725
10726 if (!typeListeners.length) {
10727 _this.events.splice(typeIndex, 1);
10728 delete _this._listeners[eventType];
10729 }
10730 })();
10731 }
10732 }
10733 }
10734
10735 /**
10736 * Applies arguments to specified event type
10737 * @param {string} eventType
10738 * @param {*[]} eventArguments
10739 * @protected
10740 */
10741
10742 }, {
10743 key: '_applyEvents',
10744 value: function _applyEvents(eventType, eventArguments) {
10745 var typeListeners = this._listeners[eventType];
10746
10747 if (!typeListeners || !typeListeners.length) {
10748 if (this._strictMode) {
10749 throw 'No listeners specified for event: ' + eventType;
10750 } else {
10751 return;
10752 }
10753 }
10754
10755 var removableListeners = [];
10756 typeListeners.forEach(function (eeListener, idx) {
10757 eeListener.fn.apply(null, eventArguments);
10758 if (eeListener.once) {
10759 removableListeners.unshift(idx);
10760 }
10761 });
10762
10763 removableListeners.forEach(function (idx) {
10764 typeListeners.splice(idx, 1);
10765 });
10766 }
10767
10768 /**
10769 * Emits event with specified type and params.
10770 * @param {string} type
10771 * @param eventArgs
10772 */
10773
10774 }, {
10775 key: 'emit',
10776 value: function emit(type) {
10777 var _this2 = this;
10778
10779 for (var _len = arguments.length, eventArgs = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
10780 eventArgs[_key - 1] = arguments[_key];
10781 }
10782
10783 if (this._emitDelay) {
10784 setTimeout(function () {
10785 _this2._applyEvents.call(_this2, type, eventArgs);
10786 }, this._emitDelay);
10787 } else {
10788 this._applyEvents(type, eventArgs);
10789 }
10790 }
10791
10792 /**
10793 * Emits event with specified type and params synchronously.
10794 * @param {string} type
10795 * @param eventArgs
10796 */
10797
10798 }, {
10799 key: 'emitSync',
10800 value: function emitSync(type) {
10801 for (var _len2 = arguments.length, eventArgs = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
10802 eventArgs[_key2 - 1] = arguments[_key2];
10803 }
10804
10805 this._applyEvents(type, eventArgs);
10806 }
10807
10808 /**
10809 * Destroys EventEmitter
10810 */
10811
10812 }, {
10813 key: 'destroy',
10814 value: function destroy() {
10815 this._listeners = {};
10816 this.events = [];
10817 }
10818 }]);
10819
10820 return EventEmitter;
10821}();
10822
10823module.exports = EventEmitter;
10824
10825
10826/***/ }),
10827/* 347 */
10828/***/ (function(module, exports, __webpack_require__) {
10829
10830"use strict";
10831
10832
10833var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /* eslint-disable */
10834
10835
10836var _querystring = __webpack_require__(348);
10837
10838var _querystring2 = _interopRequireDefault(_querystring);
10839
10840var _config = __webpack_require__(351);
10841
10842var _config2 = _interopRequireDefault(_config);
10843
10844function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10845
10846module.exports = init;
10847
10848function init(tid, cid, options) {
10849 return new Visitor(tid, cid, options);
10850}
10851
10852var Visitor = module.exports.Visitor = function (tid, cid, options) {
10853
10854 this._queue = [];
10855
10856 this.options = options || {};
10857
10858 if (this.options.hostname) {
10859 _config2.default.hostname = this.options.hostname;
10860 }
10861 if (this.options.path) {
10862 _config2.default.path = this.options.path;
10863 }
10864
10865 if (this.options.enableBatching !== undefined) {
10866 _config2.default.batching = options.enableBatching;
10867 }
10868
10869 if (this.options.batchSize) {
10870 _config2.default.batchSize = this.options.batchSize;
10871 }
10872
10873 this._context = {};
10874 this._persistentParams = {};
10875
10876 this.tid = this.options.tid;
10877 this.cid = this.options.cid;
10878 if (this.options.uid) {
10879 this.uid = this.options.uid;
10880 }
10881};
10882
10883Visitor.prototype = {
10884 reset: function reset() {
10885 this._context = null;
10886 return this;
10887 },
10888
10889 set: function set(key, value) {
10890 this._persistentParams = this._persistentParams || {};
10891 this._persistentParams[key] = value;
10892 },
10893
10894 pageview: function pageview(path, hostname, title, params, fn) {
10895
10896 if ((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && path != null) {
10897 params = path;
10898 if (typeof hostname === 'function') {
10899 fn = hostname;
10900 }
10901 path = hostname = title = null;
10902 } else if (typeof hostname === 'function') {
10903 fn = hostname;
10904 hostname = title = null;
10905 } else if (typeof title === 'function') {
10906 fn = title;
10907 title = null;
10908 } else if (typeof params === 'function') {
10909 fn = params;
10910 params = null;
10911 }
10912
10913 params = this._translateParams(params);
10914
10915 params = Object.assign({}, this._persistentParams || {}, params);
10916
10917 params.dp = path || params.dp || this._context.dp;
10918 params.dh = hostname || params.dh || this._context.dh;
10919 params.dt = title || params.dt || this._context.dt;
10920
10921 this._tidyParameters(params);
10922
10923 if (!params.dp && !params.dl) {
10924 return this._handleError('Please provide either a page path (dp) or a document location (dl)', fn);
10925 }
10926
10927 return this._withContext(params)._enqueue('pageview', params, fn);
10928 },
10929
10930 screenview: function screenview(screenName, appName, appVersion, appId, appInstallerId, params, fn) {
10931
10932 if ((typeof screenName === 'undefined' ? 'undefined' : _typeof(screenName)) === 'object' && screenName != null) {
10933 params = screenName;
10934 if (typeof appName === 'function') {
10935 fn = appName;
10936 }
10937 screenName = appName = appVersion = appId = appInstallerId = null;
10938 } else if (typeof appName === 'function') {
10939 fn = appName;
10940 appName = appVersion = appId = appInstallerId = null;
10941 } else if (typeof appVersion === 'function') {
10942 fn = appVersion;
10943 appVersion = appId = appInstallerId = null;
10944 } else if (typeof appId === 'function') {
10945 fn = appId;
10946 appId = appInstallerId = null;
10947 } else if (typeof appInstallerId === 'function') {
10948 fn = appInstallerId;
10949 appInstallerId = null;
10950 } else if (typeof params === 'function') {
10951 fn = params;
10952 params = null;
10953 }
10954
10955 params = this._translateParams(params);
10956
10957 params = Object.assign({}, this._persistentParams || {}, params);
10958
10959 params.cd = screenName || params.cd || this._context.cd;
10960 params.an = appName || params.an || this._context.an;
10961 params.av = appVersion || params.av || this._context.av;
10962 params.aid = appId || params.aid || this._context.aid;
10963 params.aiid = appInstallerId || params.aiid || this._context.aiid;
10964
10965 this._tidyParameters(params);
10966
10967 if (!params.cd || !params.an) {
10968 return this._handleError('Please provide at least a screen name (cd) and an app name (an)', fn);
10969 }
10970
10971 return this._withContext(params)._enqueue('screenview', params, fn);
10972 },
10973
10974 event: function event(category, action, label, value, params, fn) {
10975
10976 if ((typeof category === 'undefined' ? 'undefined' : _typeof(category)) === 'object' && category != null) {
10977 params = category;
10978 if (typeof action === 'function') {
10979 fn = action;
10980 }
10981 category = action = label = value = null;
10982 } else if (typeof label === 'function') {
10983 fn = label;
10984 label = value = null;
10985 } else if (typeof value === 'function') {
10986 fn = value;
10987 value = null;
10988 } else if (typeof params === 'function') {
10989 fn = params;
10990 params = null;
10991 }
10992
10993 params = this._translateParams(params);
10994
10995 params = Object.assign({}, this._persistentParams || {}, params);
10996
10997 params.ec = category || params.ec || this._context.ec;
10998 params.ea = action || params.ea || this._context.ea;
10999 params.el = label || params.el || this._context.el;
11000 params.ev = value || params.ev || this._context.ev;
11001 params.p = params.p || params.dp || this._context.p || this._context.dp;
11002
11003 delete params.dp;
11004 this._tidyParameters(params);
11005
11006 if (!params.ec || !params.ea) {
11007 return this._handleError('Please provide at least an event category (ec) and an event action (ea)', fn);
11008 }
11009
11010 return this._withContext(params)._enqueue('event', params, fn);
11011 },
11012
11013 transaction: function transaction(_transaction, revenue, shipping, tax, affiliation, params, fn) {
11014 if ((typeof _transaction === 'undefined' ? 'undefined' : _typeof(_transaction)) === 'object') {
11015 params = _transaction;
11016 if (typeof revenue === 'function') {
11017 fn = revenue;
11018 }
11019 _transaction = revenue = shipping = tax = affiliation = null;
11020 } else if (typeof revenue === 'function') {
11021 fn = revenue;
11022 revenue = shipping = tax = affiliation = null;
11023 } else if (typeof shipping === 'function') {
11024 fn = shipping;
11025 shipping = tax = affiliation = null;
11026 } else if (typeof tax === 'function') {
11027 fn = tax;
11028 tax = affiliation = null;
11029 } else if (typeof affiliation === 'function') {
11030 fn = affiliation;
11031 affiliation = null;
11032 } else if (typeof params === 'function') {
11033 fn = params;
11034 params = null;
11035 }
11036
11037 params = this._translateParams(params);
11038
11039 params = Object.assign({}, this._persistentParams || {}, params);
11040
11041 params.ti = _transaction || params.ti || this._context.ti;
11042 params.tr = revenue || params.tr || this._context.tr;
11043 params.ts = shipping || params.ts || this._context.ts;
11044 params.tt = tax || params.tt || this._context.tt;
11045 params.ta = affiliation || params.ta || this._context.ta;
11046 params.p = params.p || this._context.p || this._context.dp;
11047
11048 this._tidyParameters(params);
11049
11050 if (!params.ti) {
11051 return this._handleError('Please provide at least a transaction ID (ti)', fn);
11052 }
11053
11054 return this._withContext(params)._enqueue('transaction', params, fn);
11055 },
11056
11057 item: function item(price, quantity, sku, name, variation, params, fn) {
11058 if ((typeof price === 'undefined' ? 'undefined' : _typeof(price)) === 'object') {
11059 params = price;
11060 if (typeof quantity === 'function') {
11061 fn = quantity;
11062 }
11063 price = quantity = sku = name = variation = null;
11064 } else if (typeof quantity === 'function') {
11065 fn = quantity;
11066 quantity = sku = name = variation = null;
11067 } else if (typeof sku === 'function') {
11068 fn = sku;
11069 sku = name = variation = null;
11070 } else if (typeof name === 'function') {
11071 fn = name;
11072 name = variation = null;
11073 } else if (typeof variation === 'function') {
11074 fn = variation;
11075 variation = null;
11076 } else if (typeof params === 'function') {
11077 fn = params;
11078 params = null;
11079 }
11080
11081 params = this._translateParams(params);
11082
11083 params = Object.assign({}, this._persistentParams || {}, params);
11084
11085 params.ip = price || params.ip || this._context.ip;
11086 params.iq = quantity || params.iq || this._context.iq;
11087 params.ic = sku || params.ic || this._context.ic;
11088 params.in = name || params.in || this._context.in;
11089 params.iv = variation || params.iv || this._context.iv;
11090 params.p = params.p || this._context.p || this._context.dp;
11091 params.ti = params.ti || this._context.ti;
11092
11093 this._tidyParameters(params);
11094
11095 if (!params.ti) {
11096 return this._handleError('Please provide at least an item transaction ID (ti)', fn);
11097 }
11098
11099 return this._withContext(params)._enqueue('item', params, fn);
11100 },
11101
11102 exception: function exception(description, fatal, params, fn) {
11103
11104 if ((typeof description === 'undefined' ? 'undefined' : _typeof(description)) === 'object') {
11105 params = description;
11106 if (typeof fatal === 'function') {
11107 fn = fatal;
11108 }
11109 description = fatal = null;
11110 } else if (typeof fatal === 'function') {
11111 fn = fatal;
11112 fatal = 0;
11113 } else if (typeof params === 'function') {
11114 fn = params;
11115 params = null;
11116 }
11117
11118 params = this._translateParams(params);
11119
11120 params = Object.assign({}, this._persistentParams || {}, params);
11121
11122 params.exd = description || params.exd || this._context.exd;
11123 params.exf = +!!(fatal || params.exf || this._context.exf);
11124
11125 if (params.exf === 0) {
11126 delete params.exf;
11127 }
11128
11129 this._tidyParameters(params);
11130
11131 return this._withContext(params)._enqueue('exception', params, fn);
11132 },
11133
11134 timing: function timing(category, variable, time, label, params, fn) {
11135
11136 if ((typeof category === 'undefined' ? 'undefined' : _typeof(category)) === 'object') {
11137 params = category;
11138 if (typeof variable === 'function') {
11139 fn = variable;
11140 }
11141 category = variable = time = label = null;
11142 } else if (typeof variable === 'function') {
11143 fn = variable;
11144 variable = time = label = null;
11145 } else if (typeof time === 'function') {
11146 fn = time;
11147 time = label = null;
11148 } else if (typeof label === 'function') {
11149 fn = label;
11150 label = null;
11151 } else if (typeof params === 'function') {
11152 fn = params;
11153 params = null;
11154 }
11155
11156 params = this._translateParams(params);
11157
11158 params = Object.assign({}, this._persistentParams || {}, params);
11159
11160 params.utc = category || params.utc || this._context.utc;
11161 params.utv = variable || params.utv || this._context.utv;
11162 params.utt = time || params.utt || this._context.utt;
11163 params.utl = label || params.utl || this._context.utl;
11164
11165 this._tidyParameters(params);
11166
11167 return this._withContext(params)._enqueue('timing', params, fn);
11168 },
11169
11170 send: function send(fn) {
11171 var self = this;
11172 var count = 1;
11173 var fn = fn || function () {};
11174
11175 var getBody = function getBody(params) {
11176 return params.map(function (x) {
11177 return _querystring2.default.stringify(x);
11178 }).join('\n');
11179 };
11180
11181 var onFinish = function onFinish(err) {
11182 fn.call(self, err || null, count - 1);
11183 };
11184
11185 var iterator = function iterator() {
11186 if (!self._queue.length) {
11187 return onFinish(null);
11188 }
11189 var params = [];
11190
11191 if (_config2.default.batching) {
11192 params = self._queue.splice(0, Math.min(self._queue.length, _config2.default.batchSize));
11193 } else {
11194 params.push(self._queue.shift());
11195 }
11196
11197 var useBatchPath = params.length > 1;
11198
11199 var path = _config2.default.hostname + (useBatchPath ? _config2.default.batchPath : _config2.default.path);
11200
11201 var options = Object.assign({}, self.options.requestOptions, {
11202 body: getBody(params),
11203 headers: self.options.headers || {}
11204 });
11205
11206 GM_xmlhttpRequest({
11207 method: 'POST',
11208 url: path,
11209 headers: options.headers,
11210 data: options.body,
11211 onload: function onload() {
11212 nextIteration();
11213 },
11214 onerror: function onerror(res) {
11215 nextIteration(res.status);
11216 }
11217 });
11218 };
11219
11220 function nextIteration(err) {
11221 if (err) return onFinish(err);
11222 iterator();
11223 }
11224
11225 iterator();
11226 },
11227
11228 _enqueue: function _enqueue(type, params, fn) {
11229
11230 if (typeof params === 'function') {
11231 fn = params;
11232 params = {};
11233 }
11234
11235 params = this._translateParams(params) || {};
11236
11237 Object.assign(params, {
11238 v: _config2.default.protocolVersion,
11239 tid: this.tid,
11240 cid: this.cid,
11241 t: type
11242 });
11243 if (this.uid) {
11244 params.uid = this.uid;
11245 }
11246
11247 this._queue.push(params);
11248
11249 if (fn) {
11250 this.send(fn);
11251 }
11252
11253 return this;
11254 },
11255
11256 _handleError: function _handleError(message, fn) {
11257 fn && fn.call(this, new Error(message));
11258 return this;
11259 },
11260
11261 _translateParams: function _translateParams(params) {
11262 var translated = {};
11263 for (var key in params) {
11264 if (_config2.default.parametersMap.hasOwnProperty(key)) {
11265 translated[_config2.default.parametersMap[key]] = params[key];
11266 } else {
11267 translated[key] = params[key];
11268 }
11269 }
11270 return translated;
11271 },
11272
11273 _tidyParameters: function _tidyParameters(params) {
11274 for (var param in params) {
11275 if (params[param] === null || params[param] === undefined) {
11276 delete params[param];
11277 }
11278 }
11279 return params;
11280 },
11281
11282 _withContext: function _withContext(context) {
11283 var visitor = new Visitor(this.tid, this.cid, this.options, context, this._persistentParams);
11284 visitor._queue = this._queue;
11285 return visitor;
11286 }
11287
11288};
11289
11290Visitor.prototype.pv = Visitor.prototype.pageview;
11291Visitor.prototype.e = Visitor.prototype.event;
11292Visitor.prototype.t = Visitor.prototype.transaction;
11293Visitor.prototype.i = Visitor.prototype.item;
11294
11295/***/ }),
11296/* 348 */
11297/***/ (function(module, exports, __webpack_require__) {
11298
11299"use strict";
11300
11301
11302exports.decode = exports.parse = __webpack_require__(349);
11303exports.encode = exports.stringify = __webpack_require__(350);
11304
11305
11306/***/ }),
11307/* 349 */
11308/***/ (function(module, exports, __webpack_require__) {
11309
11310"use strict";
11311// Copyright Joyent, Inc. and other Node contributors.
11312//
11313// Permission is hereby granted, free of charge, to any person obtaining a
11314// copy of this software and associated documentation files (the
11315// "Software"), to deal in the Software without restriction, including
11316// without limitation the rights to use, copy, modify, merge, publish,
11317// distribute, sublicense, and/or sell copies of the Software, and to permit
11318// persons to whom the Software is furnished to do so, subject to the
11319// following conditions:
11320//
11321// The above copyright notice and this permission notice shall be included
11322// in all copies or substantial portions of the Software.
11323//
11324// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
11325// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
11326// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
11327// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
11328// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
11329// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
11330// USE OR OTHER DEALINGS IN THE SOFTWARE.
11331
11332
11333
11334// If obj.hasOwnProperty has been overridden, then calling
11335// obj.hasOwnProperty(prop) will break.
11336// See: https://github.com/joyent/node/issues/1707
11337function hasOwnProperty(obj, prop) {
11338 return Object.prototype.hasOwnProperty.call(obj, prop);
11339}
11340
11341module.exports = function(qs, sep, eq, options) {
11342 sep = sep || '&';
11343 eq = eq || '=';
11344 var obj = {};
11345
11346 if (typeof qs !== 'string' || qs.length === 0) {
11347 return obj;
11348 }
11349
11350 var regexp = /\+/g;
11351 qs = qs.split(sep);
11352
11353 var maxKeys = 1000;
11354 if (options && typeof options.maxKeys === 'number') {
11355 maxKeys = options.maxKeys;
11356 }
11357
11358 var len = qs.length;
11359 // maxKeys <= 0 means that we should not limit keys count
11360 if (maxKeys > 0 && len > maxKeys) {
11361 len = maxKeys;
11362 }
11363
11364 for (var i = 0; i < len; ++i) {
11365 var x = qs[i].replace(regexp, '%20'),
11366 idx = x.indexOf(eq),
11367 kstr, vstr, k, v;
11368
11369 if (idx >= 0) {
11370 kstr = x.substr(0, idx);
11371 vstr = x.substr(idx + 1);
11372 } else {
11373 kstr = x;
11374 vstr = '';
11375 }
11376
11377 k = decodeURIComponent(kstr);
11378 v = decodeURIComponent(vstr);
11379
11380 if (!hasOwnProperty(obj, k)) {
11381 obj[k] = v;
11382 } else if (isArray(obj[k])) {
11383 obj[k].push(v);
11384 } else {
11385 obj[k] = [obj[k], v];
11386 }
11387 }
11388
11389 return obj;
11390};
11391
11392var isArray = Array.isArray || function (xs) {
11393 return Object.prototype.toString.call(xs) === '[object Array]';
11394};
11395
11396
11397/***/ }),
11398/* 350 */
11399/***/ (function(module, exports, __webpack_require__) {
11400
11401"use strict";
11402// Copyright Joyent, Inc. and other Node contributors.
11403//
11404// Permission is hereby granted, free of charge, to any person obtaining a
11405// copy of this software and associated documentation files (the
11406// "Software"), to deal in the Software without restriction, including
11407// without limitation the rights to use, copy, modify, merge, publish,
11408// distribute, sublicense, and/or sell copies of the Software, and to permit
11409// persons to whom the Software is furnished to do so, subject to the
11410// following conditions:
11411//
11412// The above copyright notice and this permission notice shall be included
11413// in all copies or substantial portions of the Software.
11414//
11415// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
11416// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
11417// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
11418// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
11419// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
11420// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
11421// USE OR OTHER DEALINGS IN THE SOFTWARE.
11422
11423
11424
11425var stringifyPrimitive = function(v) {
11426 switch (typeof v) {
11427 case 'string':
11428 return v;
11429
11430 case 'boolean':
11431 return v ? 'true' : 'false';
11432
11433 case 'number':
11434 return isFinite(v) ? v : '';
11435
11436 default:
11437 return '';
11438 }
11439};
11440
11441module.exports = function(obj, sep, eq, name) {
11442 sep = sep || '&';
11443 eq = eq || '=';
11444 if (obj === null) {
11445 obj = undefined;
11446 }
11447
11448 if (typeof obj === 'object') {
11449 return map(objectKeys(obj), function(k) {
11450 var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;
11451 if (isArray(obj[k])) {
11452 return map(obj[k], function(v) {
11453 return ks + encodeURIComponent(stringifyPrimitive(v));
11454 }).join(sep);
11455 } else {
11456 return ks + encodeURIComponent(stringifyPrimitive(obj[k]));
11457 }
11458 }).join(sep);
11459
11460 }
11461
11462 if (!name) return '';
11463 return encodeURIComponent(stringifyPrimitive(name)) + eq +
11464 encodeURIComponent(stringifyPrimitive(obj));
11465};
11466
11467var isArray = Array.isArray || function (xs) {
11468 return Object.prototype.toString.call(xs) === '[object Array]';
11469};
11470
11471function map (xs, f) {
11472 if (xs.map) return xs.map(f);
11473 var res = [];
11474 for (var i = 0; i < xs.length; i++) {
11475 res.push(f(xs[i], i));
11476 }
11477 return res;
11478}
11479
11480var objectKeys = Object.keys || function (obj) {
11481 var res = [];
11482 for (var key in obj) {
11483 if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);
11484 }
11485 return res;
11486};
11487
11488
11489/***/ }),
11490/* 351 */
11491/***/ (function(module, exports, __webpack_require__) {
11492
11493"use strict";
11494
11495
11496/* eslint-disable */
11497module.exports = {
11498 protocolVersion: "1",
11499 hostname: "https://www.google-analytics.com",
11500 path: "/collect",
11501 batchPath: "/batch",
11502 batching: true,
11503 batchSize: 10,
11504 acceptedParameters: [
11505
11506 // General
11507 "v", "tid", "aip", "ds", "qt", "z",
11508
11509 // User
11510 "cid", "uid",
11511
11512 // Session
11513 "sc", "uip", "ua", "geoid",
11514
11515 // Traffic Sources
11516 "dr", "cn", "cs", "cm", "ck", "cc", "ci", "gclid", "dclid",
11517
11518 // System Info
11519 "sr", "vp", "de", "sd", "ul", "je", "fl",
11520
11521 // Hit
11522 "t", "ni",
11523
11524 // Content Information
11525 "dl", "dh", "dp", "dt", "cd", "linkid",
11526
11527 // App Tracking
11528 "an", "aid", "av", "aiid",
11529
11530 // Event Tracking
11531 "ec", "ea", "el", "ev",
11532
11533 // E-commerce (transaction data: simple and enhanced)
11534 "ti", "ta", "tr", "ts", "tt",
11535
11536 // E-commerce (item data: simple)
11537 "in", "ip", "iq", "ic", "iv",
11538
11539 // E-commerce (currency: simple and enhanced)
11540 "cu",
11541
11542 // Enhanced E-Commerce (see also: regex below)
11543 "pa", "tcc", "pal", "cos", "col", "promoa",
11544
11545 // Social Interactions
11546 "sn", "sa", "st",
11547
11548 // Timing
11549 "utc", "utv", "utt", "utl", "plt", "dns", "pdt", "rrt", "tcp", "srt", "dit", "clt",
11550
11551 // Exceptions
11552 "exd", "exf",
11553
11554 // Content Experiments
11555 "xid", "xvar"],
11556
11557 acceptedParametersRegex: [/^cm[0-9]+$/, /^cd[0-9]+$/, /^cg(10|[0-9])$/, /pr[0-9]{1,3}id/, /pr[0-9]{1,3}nm/, /pr[0-9]{1,3}br/, /pr[0-9]{1,3}ca/, /pr[0-9]{1,3}va/, /pr[0-9]{1,3}pr/, /pr[0-9]{1,3}qt/, /pr[0-9]{1,3}cc/, /pr[0-9]{1,3}ps/, /pr[0-9]{1,3}cd[0-9]{1,3}/, /pr[0-9]{1,3}cm[0-9]{1,3}/, /il[0-9]{1,3}nm/, /il[0-9]{1,3}pi[0-9]{1,3}id/, /il[0-9]{1,3}pi[0-9]{1,3}nm/, /il[0-9]{1,3}pi[0-9]{1,3}br/, /il[0-9]{1,3}pi[0-9]{1,3}ca/, /il[0-9]{1,3}pi[0-9]{1,3}va/, /il[0-9]{1,3}pi[0-9]{1,3}ps/, /il[0-9]{1,3}pi[0-9]{1,3}pr/, /il[0-9]{1,3}pi[0-9]{1,3}cd[0-9]{1,3}/, /il[0-9]{1,3}pi[0-9]{1,3}cm[0-9]{1,3}/, /promo[0-9]{1,3}id/, /promo[0-9]{1,3}nm/, /promo[0-9]{1,3}cr/, /promo[0-9]{1,3}ps/],
11558 parametersMap: {
11559 "protocolVersion": "v",
11560 "trackingId": "tid",
11561 "webPropertyId": "tid",
11562 "anonymizeIp": "aip",
11563 "dataSource": "ds",
11564 "queueTime": "qt",
11565 "cacheBuster": "z",
11566 "clientId": "cid",
11567 "userId": "uid",
11568 "sessionControl": "sc",
11569 "ipOverride": "uip",
11570 "userAgentOverride": "ua",
11571 "documentReferrer": "dr",
11572 "campaignName": "cn",
11573 "campaignSource": "cs",
11574 "campaignMedium": "cm",
11575 "campaignKeyword": "ck",
11576 "campaignContent": "cc",
11577 "campaignId": "ci",
11578 "googleAdwordsId": "gclid",
11579 "googleDisplayAdsId": "dclid",
11580 "screenResolution": "sr",
11581 "viewportSize": "vp",
11582 "documentEncoding": "de",
11583 "screenColors": "sd",
11584 "userLanguage": "ul",
11585 "javaEnabled": "je",
11586 "flashVersion": "fl",
11587 "hitType": "t",
11588 "non-interactionHit": "ni",
11589 "documentLocationUrl": "dl",
11590 "documentHostName": "dh",
11591 "documentPath": "dp",
11592 "documentTitle": "dt",
11593 "screenName": "cd",
11594 "linkId": "linkid",
11595 "applicationName": "an",
11596 "applicationId": "aid",
11597 "applicationVersion": "av",
11598 "applicationInstallerId": "aiid",
11599 "eventCategory": "ec",
11600 "eventAction": "ea",
11601 "eventLabel": "el",
11602 "eventValue": "ev",
11603 "transactionId": "ti",
11604 "transactionAffiliation": "ta",
11605 "transactionRevenue": "tr",
11606 "transactionShipping": "ts",
11607 "transactionTax": "tt",
11608 "itemName": "in",
11609 "itemPrice": "ip",
11610 "itemQuantity": "iq",
11611 "itemCode": "ic",
11612 "itemCategory": "iv",
11613 "currencyCode": "cu",
11614 "socialNetwork": "sn",
11615 "socialAction": "sa",
11616 "socialActionTarget": "st",
11617 "userTimingCategory": "utc",
11618 "userTimingVariableName": "utv",
11619 "userTimingTime": "utt",
11620 "userTimingLabel": "utl",
11621 "pageLoadTime": "plt",
11622 "dnsTime": "dns",
11623 "pageDownloadTime": "pdt",
11624 "redirectResponseTime": "rrt",
11625 "tcpConnectTime": "tcp",
11626 "serverResponseTime": "srt",
11627 "domInteractiveTime": "dit",
11628 "contentLoadTime": "clt",
11629 "exceptionDescription": "exd",
11630 "isExceptionFatal": "exf",
11631 "isExceptionFatal?": "exf",
11632 "experimentId": "xid",
11633 "experimentVariant": "xvar"
11634 }
11635};
11636
11637/***/ }),
11638/* 352 */
11639/***/ (function(module, exports, __webpack_require__) {
11640
11641"use strict";
11642
11643
11644Object.defineProperty(exports, "__esModule", {
11645 value: true
11646});
11647exports.SettingsEntry = undefined;
11648
11649var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
11650
11651var _db = __webpack_require__(66);
11652
11653function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11654
11655var SettingsEntry = exports.SettingsEntry = function () {
11656 function SettingsEntry(id, name) {
11657 _classCallCheck(this, SettingsEntry);
11658
11659 var settings = _db.Database.getJson('settings:' + id, {});
11660
11661 this.id = id;
11662 this.name = name;
11663 this.isActive = settings.isActive ? settings.isActive : false;
11664 this.settings = [];
11665 }
11666
11667 _createClass(SettingsEntry, [{
11668 key: 'toggle',
11669 value: function toggle() {
11670 this.isActive = !this.isActive;
11671
11672 var settings = _db.Database.getJson('settings:' + this.id, {});
11673 settings.isActive = this.isActive;
11674 _db.Database.setJson('settings:' + this.id, settings);
11675 }
11676 }, {
11677 key: 'addSetting',
11678 value: function addSetting(label, key, defaultValue, type, cb) {
11679 var settings = _db.Database.getJson('settings:' + this.id, {});
11680
11681 settings[key] = key in settings ? settings[key] : defaultValue;
11682 _db.Database.setJson('settings:' + this.id, settings);
11683
11684 this.settings.push({
11685 label: label,
11686 key: key,
11687 type: type,
11688 value: key in settings ? settings[key] : defaultValue,
11689 callback: cb,
11690 subsettings: []
11691 });
11692 }
11693 }, {
11694 key: 'addSettingUnder',
11695 value: function addSettingUnder(underKey, label, key, defaultValue, type, cb) {
11696 var settings = _db.Database.getJson('settings:' + this.id, {});
11697 settings[key] = key in settings ? settings[key] : defaultValue;
11698 _db.Database.setJson('settings:' + this.id, settings);
11699
11700 var setting = this.settings.find(function (s) {
11701 return s.key === underKey;
11702 });
11703 setting.subsettings.push({
11704 label: label,
11705 key: key,
11706 type: type,
11707 value: key in settings ? settings[key] : defaultValue,
11708 callback: cb
11709 });
11710 }
11711 }, {
11712 key: 'changeValue',
11713 value: function changeValue(key, value) {
11714 var settings = _db.Database.getJson('settings:' + this.id, {});
11715
11716 settings[key] = value;
11717
11718 _db.Database.setJson('settings:' + this.id, settings);
11719 }
11720 }]);
11721
11722 return SettingsEntry;
11723}();
11724
11725/***/ }),
11726/* 353 */
11727/***/ (function(module, exports, __webpack_require__) {
11728
11729"use strict";
11730
11731
11732Object.defineProperty(exports, "__esModule", {
11733 value: true
11734});
11735exports.BaseScript = undefined;
11736
11737var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /* global window */
11738/* eslint class-methods-use-this: "off" */
11739
11740
11741var _settings = __webpack_require__(130);
11742
11743var _db = __webpack_require__(66);
11744
11745function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11746
11747var BaseScript = exports.BaseScript = function () {
11748 function BaseScript(id) {
11749 var _this = this;
11750
11751 _classCallCheck(this, BaseScript);
11752
11753 this._id = id;
11754
11755 _settings.Settings.getInstance().on('entry-enabled', function (entry) {
11756 if (entry.id === id) {
11757 _this.screenRequestObserver = window.onPageNavigation.observe(_this, function (obs, event) {
11758 var _this2 = this;
11759
11760 setTimeout(function () {
11761 _this2.onScreenRequest(event);
11762 }, 1000);
11763 });
11764
11765 _this.activate({
11766 screenId: window.currentPage
11767 });
11768 }
11769 });
11770
11771 _settings.Settings.getInstance().on('entry-disabled', function (entry) {
11772 if (entry.id === id) {
11773 _this.screenRequestObserver.unobserve(_this);
11774
11775 _this.deactivate({
11776 screenId: window.currentPage
11777 });
11778 }
11779 });
11780 }
11781
11782 _createClass(BaseScript, [{
11783 key: 'activate',
11784 value: function activate() {
11785 // override in subclasses
11786 }
11787 }, {
11788 key: 'deactivate',
11789 value: function deactivate() {
11790 // override in subclasses
11791 }
11792 }, {
11793 key: 'onScreenRequest',
11794 value: function onScreenRequest() {
11795 // override in subclasses
11796 }
11797 }, {
11798 key: 'getSettings',
11799 value: function getSettings() {
11800 return _db.Database.getJson('settings:' + this._id, {});
11801 }
11802 }]);
11803
11804 return BaseScript;
11805}();
11806
11807/***/ }),
11808/* 354 */
11809/***/ (function(module, exports, __webpack_require__) {
11810
11811"use strict";
11812
11813
11814Object.defineProperty(exports, "__esModule", {
11815 value: true
11816});
11817exports.Queue = undefined;
11818
11819var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
11820
11821var _fut = __webpack_require__(67);
11822
11823function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
11824
11825function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11826
11827var Queue = exports.Queue = function () {
11828 function Queue() {
11829 _classCallCheck(this, Queue);
11830
11831 this._queue = [];
11832 }
11833
11834 _createClass(Queue, [{
11835 key: 'add',
11836 value: function add(identifier, cb) {
11837 this._queue.push({
11838 identifier: identifier,
11839 cb: cb
11840 });
11841 }
11842 }, {
11843 key: 'start',
11844 value: function () {
11845 var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
11846 var scriptToRun;
11847 return regeneratorRuntime.wrap(function _callee$(_context) {
11848 while (1) {
11849 switch (_context.prev = _context.next) {
11850 case 0:
11851 this._running = true;
11852 /* eslint-disable no-await-in-loop */
11853
11854 case 1:
11855 if (!this._running) {
11856 _context.next = 13;
11857 break;
11858 }
11859
11860 if (!(this._queue.length > 0)) {
11861 _context.next = 9;
11862 break;
11863 }
11864
11865 scriptToRun = this._queue.shift();
11866
11867 if (!scriptToRun) {
11868 _context.next = 7;
11869 break;
11870 }
11871
11872 _context.next = 7;
11873 return scriptToRun.cb();
11874
11875 case 7:
11876 _context.next = 11;
11877 break;
11878
11879 case 9:
11880 _context.next = 11;
11881 return _fut.utils.sleep(1000);
11882
11883 case 11:
11884 _context.next = 1;
11885 break;
11886
11887 case 13:
11888 case 'end':
11889 return _context.stop();
11890 }
11891 }
11892 }, _callee, this);
11893 }));
11894
11895 function start() {
11896 return _ref.apply(this, arguments);
11897 }
11898
11899 return start;
11900 }()
11901 }, {
11902 key: 'stop',
11903 value: function stop() {
11904 this._running = false;
11905 }
11906 }], [{
11907 key: 'getInstance',
11908 value: function getInstance() {
11909 if (this._instance == null) {
11910 this._instance = new Queue();
11911 }
11912
11913 return this._instance;
11914 }
11915 }]);
11916
11917 return Queue;
11918}();
11919
11920/***/ }),
11921/* 355 */
11922/***/ (function(module, exports, __webpack_require__) {
11923
11924"use strict";
11925
11926
11927Object.defineProperty(exports, "__esModule", {
11928 value: true
11929});
11930
11931var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
11932
11933function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
11934
11935function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11936
11937/* global communication repositories enums services */
11938
11939var Store = exports.Store = function () {
11940 function Store() {
11941 _classCallCheck(this, Store);
11942 }
11943
11944 _createClass(Store, [{
11945 key: "getUnassignedItems",
11946 value: function getUnassignedItems() {
11947 var _this = this;
11948
11949 return new Promise(function (resolve) {
11950 repositories.Item.reset(enums.FUTItemPile.PURCHASED);
11951 repositories.Item.getUnassignedItems().observe(_this, function (o, list) {
11952 o.unobserve(this);
11953 resolve(list.items);
11954 });
11955 });
11956 }
11957 }, {
11958 key: "getTradePile",
11959 value: function getTradePile() {
11960 var _this2 = this;
11961
11962 return new Promise(function (resolve, reject) {
11963 repositories.Item.getTransferItems().observe(_this2, function (obs, data) {
11964 obs.unobserve(_this2);
11965
11966 if (data.error) {
11967 reject(new Error(data.erorr));
11968 } else {
11969 resolve(data.items);
11970 }
11971 });
11972 });
11973 }
11974 }, {
11975 key: "getTradePileUnsold",
11976 value: function () {
11977 var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
11978 var tradepile;
11979 return regeneratorRuntime.wrap(function _callee$(_context) {
11980 while (1) {
11981 switch (_context.prev = _context.next) {
11982 case 0:
11983 _context.next = 2;
11984 return this.getTradePile();
11985
11986 case 2:
11987 tradepile = _context.sent;
11988 return _context.abrupt("return", tradepile.filter(function (d) {
11989 return d.state === enums.ItemState.FREE && d._auction.buyNowPrice > 0;
11990 }));
11991
11992 case 4:
11993 case "end":
11994 return _context.stop();
11995 }
11996 }
11997 }, _callee, this);
11998 }));
11999
12000 function getTradePileUnsold() {
12001 return _ref.apply(this, arguments);
12002 }
12003
12004 return getTradePileUnsold;
12005 }()
12006 }, {
12007 key: "redeemItem",
12008 value: function redeemItem(item) {
12009 var _this3 = this;
12010
12011 return new Promise(function (resolve, reject) {
12012 var redeem = new communication.ConsumeUnlockableDelegate(item.id);
12013 redeem.addListener(communication.BaseDelegate.SUCCESS, _this3, function (sender, response) {
12014 sender.clearListenersByScope(_this3);
12015 resolve(response);
12016 });
12017 redeem.addListener(communication.BaseDelegate.FAIL, _this3, function (sender, response) {
12018 sender.clearListenersByScope(_this3);
12019 reject(response);
12020 });
12021 redeem.send();
12022 });
12023 }
12024 }, {
12025 key: "quickSell",
12026 value: function quickSell(items) {
12027 var _this4 = this;
12028
12029 return new Promise(function (resolve) {
12030 services.Item.discard(items).observe(_this4, function (obs, res) {
12031 obs.unobserve(_this4);
12032 resolve(res);
12033 });
12034 });
12035 }
12036 }, {
12037 key: "sendToClub",
12038 value: function sendToClub(items) {
12039 var _this5 = this;
12040
12041 return new Promise(function (resolve, reject) {
12042 var moveItem = new communication.MoveItemDelegate(items, enums.FUTItemPile.CLUB);
12043 moveItem.addListener(communication.BaseDelegate.SUCCESS, _this5, function (sender, response) {
12044 sender.clearListenersByScope(_this5);
12045 resolve(response);
12046 });
12047 moveItem.addListener(communication.BaseDelegate.FAIL, _this5, function (sender, response) {
12048 sender.clearListenersByScope(_this5);
12049 reject(response);
12050 });
12051 moveItem.send();
12052 });
12053 }
12054 }, {
12055 key: "removeSoldAuctions",
12056 value: function removeSoldAuctions() {
12057 var _this6 = this;
12058
12059 return new Promise(function (resolve, reject) {
12060 services.Item.clearSoldItems().observe(_this6, function (observer, data) {
12061 observer.unobserve(_this6);
12062
12063 if (data.error) {
12064 reject(new Error(data.erorr));
12065 } else {
12066 resolve(data.items);
12067 }
12068 });
12069 });
12070 }
12071 }]);
12072
12073 return Store;
12074}();
12075
12076/***/ }),
12077/* 356 */
12078/***/ (function(module, exports, __webpack_require__) {
12079
12080"use strict";
12081
12082
12083Object.defineProperty(exports, "__esModule", {
12084 value: true
12085});
12086exports.TransferMarket = undefined;
12087
12088var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /* globals
12089 enums factories communication gUserModel models repositories services
12090 */
12091
12092
12093var _mathStatistics = __webpack_require__(357);
12094
12095var _utils = __webpack_require__(134);
12096
12097var _utils2 = _interopRequireDefault(_utils);
12098
12099var _priceTiers = __webpack_require__(135);
12100
12101var _priceTiers2 = _interopRequireDefault(_priceTiers);
12102
12103var _logger = __webpack_require__(132);
12104
12105var _pinEvent = __webpack_require__(133);
12106
12107var _errors = __webpack_require__(358);
12108
12109function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12110
12111function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
12112
12113function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
12114
12115function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12116
12117var TransferMarket = exports.TransferMarket = function () {
12118 function TransferMarket() {
12119 _classCallCheck(this, TransferMarket);
12120
12121 this._logger = new _logger.Logger();
12122 }
12123
12124 _createClass(TransferMarket, [{
12125 key: 'navigateToTransferHub',
12126
12127
12128 /* eslint-disable class-methods-use-this */
12129 value: function () {
12130 var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
12131 return regeneratorRuntime.wrap(function _callee$(_context) {
12132 while (1) {
12133 switch (_context.prev = _context.next) {
12134 case 0:
12135 _context.next = 2;
12136 return _pinEvent.PinEvent.sendPageView('Hub - Transfers');
12137
12138 case 2:
12139 case 'end':
12140 return _context.stop();
12141 }
12142 }
12143 }, _callee, this);
12144 }));
12145
12146 function navigateToTransferHub() {
12147 return _ref.apply(this, arguments);
12148 }
12149
12150 return navigateToTransferHub;
12151 }()
12152 }, {
12153 key: 'navigateToTransferList',
12154 value: function () {
12155 var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
12156 return regeneratorRuntime.wrap(function _callee2$(_context2) {
12157 while (1) {
12158 switch (_context2.prev = _context2.next) {
12159 case 0:
12160 _context2.next = 2;
12161 return this.navigateToTransferHub();
12162
12163 case 2:
12164 _context2.next = 4;
12165 return _pinEvent.PinEvent.sendPageView('Transfer List - List View');
12166
12167 case 4:
12168 case 'end':
12169 return _context2.stop();
12170 }
12171 }
12172 }, _callee2, this);
12173 }));
12174
12175 function navigateToTransferList() {
12176 return _ref2.apply(this, arguments);
12177 }
12178
12179 return navigateToTransferList;
12180 }()
12181 /* eslint-enable class-methods-use-this */
12182
12183 }, {
12184 key: 'searchMinBuy',
12185 value: function () {
12186 var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(item) {
12187 var itemsForMean = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
12188 var lowUp = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
12189 var minBuy;
12190 return regeneratorRuntime.wrap(function _callee3$(_context3) {
12191 while (1) {
12192 switch (_context3.prev = _context3.next) {
12193 case 0:
12194 services.Item.clearTransferMarketCache();
12195
12196 this._logger.log('Searching min buy for ' + item.type + ' ' + item._staticData.name + ' from low upward first ' + lowUp, 'Core - Transfermarket');
12197 minBuy = 0;
12198
12199 if (!lowUp) {
12200 _context3.next = 8;
12201 break;
12202 }
12203
12204 _context3.next = 6;
12205 return this._findLowUp(item, itemsForMean);
12206
12207 case 6:
12208 minBuy = _context3.sent;
12209
12210 this._logger.log('Low up search yielded ' + minBuy + ' as a result', 'Core - Transfermarket');
12211
12212 case 8:
12213 if (!(minBuy === 0)) {
12214 _context3.next = 13;
12215 break;
12216 }
12217
12218 this._logger.log('Searching low down...', 'Core - Transfermarket');
12219 _context3.next = 12;
12220 return this._findLowDown(item, itemsForMean);
12221
12222 case 12:
12223 minBuy = _context3.sent;
12224
12225 case 13:
12226
12227 if (minBuy === 0) {
12228 this._logger.log('No players found... it might be extinct', 'Core - Transfermarket');
12229 } else {
12230 this._logger.log('Min buy for ' + item.type + ' ' + item._staticData.name + ' is ' + minBuy, 'Core - Transfermarket');
12231 }
12232 return _context3.abrupt('return', minBuy);
12233
12234 case 15:
12235 case 'end':
12236 return _context3.stop();
12237 }
12238 }
12239 }, _callee3, this);
12240 }));
12241
12242 function searchMinBuy(_x3) {
12243 return _ref3.apply(this, arguments);
12244 }
12245
12246 return searchMinBuy;
12247 }()
12248
12249 /**
12250 * List item on transfermarket
12251 *
12252 * @param {FUTItem} item
12253 * @param {number} start start price
12254 * @param {number} buyNow buy now price
12255 * @param {number} duration time to list in seconds (1, 3, 6, 12, 24 or 72 hours)
12256 */
12257
12258 }, {
12259 key: 'listItem',
12260 value: function () {
12261 var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(item, start, buyNow) {
12262 var _this = this;
12263
12264 var duration = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 3600;
12265 return regeneratorRuntime.wrap(function _callee5$(_context5) {
12266 while (1) {
12267 switch (_context5.prev = _context5.next) {
12268 case 0:
12269 return _context5.abrupt('return', new Promise(function () {
12270 var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(resolve, reject) {
12271 var prices, listItem;
12272 return regeneratorRuntime.wrap(function _callee4$(_context4) {
12273 while (1) {
12274 switch (_context4.prev = _context4.next) {
12275 case 0:
12276 if (!(gUserModel.getTradeAccess() !== models.UserModel.TRADE_ACCESS.WHITELIST)) {
12277 _context4.next = 3;
12278 break;
12279 }
12280
12281 reject(new Error('You are not authorized for trading'));
12282 return _context4.abrupt('return');
12283
12284 case 3:
12285 prices = _priceTiers2.default.determineListPrice(start, buyNow);
12286 _context4.next = 6;
12287 return _this.sendToTradePile(item);
12288
12289 case 6:
12290 _context4.next = 8;
12291 return _utils2.default.sleep(1000);
12292
12293 case 8:
12294 listItem = new communication.ListItemDelegate({
12295 itemId: item.id,
12296 startingBid: prices.start,
12297 buyNowPrice: prices.buyNow,
12298 duration: duration
12299 });
12300
12301 listItem.addListener(communication.BaseDelegate.SUCCESS, _this, function (sender) {
12302 sender.clearListenersByScope(_this);
12303 resolve({
12304 startingBid: prices.start,
12305 buyNowPrice: prices.buyNow
12306 });
12307 });
12308 listItem.addListener(communication.BaseDelegate.FAIL, _this, function (sender, response) {
12309 sender.clearListenersByScope(_this);
12310 reject(new _errors.ListItemError(response));
12311 });
12312 listItem.send();
12313
12314 case 12:
12315 case 'end':
12316 return _context4.stop();
12317 }
12318 }
12319 }, _callee4, _this);
12320 }));
12321
12322 return function (_x8, _x9) {
12323 return _ref5.apply(this, arguments);
12324 };
12325 }()));
12326
12327 case 1:
12328 case 'end':
12329 return _context5.stop();
12330 }
12331 }
12332 }, _callee5, this);
12333 }));
12334
12335 function listItem(_x5, _x6, _x7) {
12336 return _ref4.apply(this, arguments);
12337 }
12338
12339 return listItem;
12340 }()
12341 }, {
12342 key: 'sendToTradePile',
12343 value: function sendToTradePile(item) {
12344 var _this2 = this;
12345
12346 return new Promise(function (resolve, reject) {
12347 var moveItem = new communication.MoveItemDelegate([item], enums.FUTItemPile.TRANSFER);
12348 moveItem.addListener(communication.BaseDelegate.SUCCESS, _this2, function (sender) {
12349 sender.clearListenersByScope(_this2);
12350 resolve();
12351 });
12352 moveItem.addListener(communication.BaseDelegate.FAIL, _this2, function (sender, response) {
12353 sender.clearListenersByScope(_this2);
12354 reject(new Error(response));
12355 });
12356 moveItem.send();
12357 });
12358 }
12359 }, {
12360 key: 'relistAllItems',
12361 value: function relistAllItems() {
12362 var _this3 = this;
12363
12364 return new Promise(function (resolve, reject) {
12365 if (gUserModel.getTradeAccess() !== models.UserModel.TRADE_ACCESS.WHITELIST) {
12366 reject(new Error('You are not authorized for trading'));
12367 return;
12368 }
12369
12370 var relistExpired = new communication.AuctionRelistDelegate();
12371
12372 relistExpired.addListener(communication.BaseDelegate.SUCCESS, _this3, function (sender) {
12373 sender.clearListenersByScope(_this3);
12374 repositories.Item.setDirty(enums.FUTItemPile.TRANSFER);
12375 resolve();
12376 });
12377
12378 relistExpired.addListener(communication.BaseDelegate.FAIL, _this3, function (sender, error) {
12379 sender.clearListenersByScope(_this3);
12380 reject(new Error(error));
12381 });
12382 relistExpired.execute();
12383 });
12384 }
12385 }, {
12386 key: '_findLowUp',
12387 value: function () {
12388 var _ref6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(item, itemsForMean) {
12389 var searchCriteria, items;
12390 return regeneratorRuntime.wrap(function _callee6$(_context6) {
12391 while (1) {
12392 switch (_context6.prev = _context6.next) {
12393 case 0:
12394 searchCriteria = this._defineSearchCriteria(item, 200);
12395 _context6.next = 3;
12396 return _pinEvent.PinEvent.sendPageView('Transfer Market Search');
12397
12398 case 3:
12399 _context6.next = 5;
12400 return _utils2.default.sleep(3000);
12401
12402 case 5:
12403 _context6.next = 7;
12404 return _pinEvent.PinEvent.sendPageView('Transfer Market Results - List View', 0);
12405
12406 case 7:
12407 _context6.next = 9;
12408 return _pinEvent.PinEvent.sendPageView('Item - Detail View', 0);
12409
12410 case 9:
12411 _context6.next = 11;
12412 return this._find(searchCriteria);
12413
12414 case 11:
12415 items = _context6.sent;
12416
12417 if (!(items.length > itemsForMean)) {
12418 _context6.next = 14;
12419 break;
12420 }
12421
12422 return _context6.abrupt('return', 200);
12423
12424 case 14:
12425 return _context6.abrupt('return', 0);
12426
12427 case 15:
12428 case 'end':
12429 return _context6.stop();
12430 }
12431 }
12432 }, _callee6, this);
12433 }));
12434
12435 function _findLowUp(_x10, _x11) {
12436 return _ref6.apply(this, arguments);
12437 }
12438
12439 return _findLowUp;
12440 }()
12441 }, {
12442 key: '_findLowDown',
12443 value: function () {
12444 var _ref7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7(item, itemsForMean) {
12445 var minBuy, searchCriteria, valuesFound, minBuyFound, items, minBuyOnPage;
12446 return regeneratorRuntime.wrap(function _callee7$(_context7) {
12447 while (1) {
12448 switch (_context7.prev = _context7.next) {
12449 case 0:
12450 minBuy = 99999999;
12451 searchCriteria = this._defineSearchCriteria(item);
12452 valuesFound = [];
12453 minBuyFound = false;
12454
12455 case 4:
12456 if (!(minBuyFound === false)) {
12457 _context7.next = 34;
12458 break;
12459 }
12460
12461 _context7.next = 7;
12462 return _pinEvent.PinEvent.sendPageView('Transfer Market Search');
12463
12464 case 7:
12465 _context7.next = 9;
12466 return _utils2.default.sleep(800);
12467
12468 case 9:
12469 _context7.next = 11;
12470 return _pinEvent.PinEvent.sendPageView('Transfer Market Results - List View', 0);
12471
12472 case 11:
12473 _context7.next = 13;
12474 return _pinEvent.PinEvent.sendPageView('Item - Detail View', 0);
12475
12476 case 13:
12477 _context7.next = 15;
12478 return this._find(searchCriteria);
12479
12480 case 15:
12481 items = _context7.sent;
12482
12483 if (!(items.length > 0)) {
12484 _context7.next = 31;
12485 break;
12486 }
12487
12488 valuesFound = valuesFound.concat(items.map(function (i) {
12489 return i._auction.buyNowPrice;
12490 }));
12491
12492 minBuyOnPage = Math.min.apply(Math, _toConsumableArray(items.map(function (i) {
12493 return i._auction.buyNowPrice;
12494 })));
12495
12496 if (!(minBuyOnPage < minBuy)) {
12497 _context7.next = 28;
12498 break;
12499 }
12500
12501 minBuy = minBuyOnPage;
12502
12503 if (!(items.length < searchCriteria.count)) {
12504 _context7.next = 24;
12505 break;
12506 }
12507
12508 minBuyFound = true;
12509 return _context7.abrupt('break', 34);
12510
12511 case 24:
12512 searchCriteria.maxBuy = _priceTiers2.default.roundDownToNearestPriceTiers(minBuy);
12513 if (searchCriteria.maxBuy < 200) {
12514 searchCriteria.maxBuy = 200;
12515 }
12516 _context7.next = 29;
12517 break;
12518
12519 case 28:
12520 if (items.length === searchCriteria.count) {
12521 if (searchCriteria.maxBuy === 0) {
12522 searchCriteria.maxBuy = minBuy;
12523 } else {
12524 searchCriteria.maxBuy = _priceTiers2.default.roundDownToNearestPriceTiers(searchCriteria.maxBuy);
12525 }
12526 if (searchCriteria.maxBuy < 200) {
12527 searchCriteria.maxBuy = 200;
12528 minBuy = 200;
12529 minBuyFound = true;
12530 }
12531 } else {
12532 minBuy = Math.min.apply(Math, _toConsumableArray(items.map(function (i) {
12533 return i._auction.buyNowPrice;
12534 })));
12535 minBuyFound = true;
12536 }
12537
12538 case 29:
12539 _context7.next = 32;
12540 break;
12541
12542 case 31:
12543 minBuyFound = true;
12544
12545 case 32:
12546 _context7.next = 4;
12547 break;
12548
12549 case 34:
12550
12551 valuesFound = valuesFound.sort(function (a, b) {
12552 return a - b;
12553 }).slice(0, itemsForMean);
12554
12555 if (!(valuesFound.length > 0)) {
12556 _context7.next = 37;
12557 break;
12558 }
12559
12560 return _context7.abrupt('return', _priceTiers2.default.roundValueToNearestPriceTiers((0, _mathStatistics.mean)(valuesFound)));
12561
12562 case 37:
12563 return _context7.abrupt('return', 0);
12564
12565 case 38:
12566 case 'end':
12567 return _context7.stop();
12568 }
12569 }
12570 }, _callee7, this);
12571 }));
12572
12573 function _findLowDown(_x12, _x13) {
12574 return _ref7.apply(this, arguments);
12575 }
12576
12577 return _findLowDown;
12578 }()
12579
12580 /* eslint-disable class-methods-use-this */
12581
12582 }, {
12583 key: '_defineSearchCriteria',
12584 value: function _defineSearchCriteria(item) {
12585 var maxBuy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;
12586
12587 // TODO: check if this can handle other items as well
12588 // eslint-disable-next-line no-undef
12589 var searchCriteria = new UTSearchCriteriaDTO();
12590
12591 searchCriteria.count = 30;
12592 searchCriteria.maskedDefId = item.getMaskedResourceId();
12593 searchCriteria.type = item.type;
12594
12595 if (item.rareflag === 47) {
12596 // 47 = Champions
12597 // if it is a Champions card, this is seen as a gold card
12598 // Can only search for "Gold" in this case
12599 searchCriteria.level = factories.DataProvider.getItemLevelDP(true).filter(function (d) {
12600 return d.id === 2;
12601 })[0].value;
12602 } else if (item.rareflag >= 3) {
12603 // 3 = TOTW
12604 // if it is TOTW or other special, set it to TOTW. See enums.ItemRareType.
12605 // Can only search for "Specials", not more specific on Rare Type
12606 searchCriteria.level = factories.DataProvider.getItemLevelDP(true).filter(function (d) {
12607 return d.id === 3;
12608 })[0].value;
12609 }
12610
12611 searchCriteria.category = enums.SearchCategory.ANY;
12612 searchCriteria.position = enums.SearchType.ANY;
12613 if (maxBuy !== -1) {
12614 searchCriteria.maxBuy = maxBuy;
12615 }
12616
12617 return searchCriteria;
12618 }
12619 /* eslint-enable class-methods-use-this */
12620
12621 }, {
12622 key: '_find',
12623 value: function _find(searchCriteria) {
12624 var _this4 = this;
12625
12626 return new Promise(function (resolve, reject) {
12627 services.Item.searchTransferMarket(searchCriteria, 1).observe(_this4, function (obs, res) {
12628 if (!res.success) {
12629 obs.unobserve(this);
12630 reject(res.status);
12631 } else {
12632 resolve(res.data.items);
12633 }
12634 });
12635 });
12636 }
12637 }]);
12638
12639 return TransferMarket;
12640}();
12641
12642/***/ }),
12643/* 357 */
12644/***/ (function(module, exports, __webpack_require__) {
12645
12646"use strict";
12647/* jshint bitwise: false */
12648
12649
12650
12651var mean = function (data) {
12652 return data.reduce(function (sum, summand) {
12653 return sum + summand;
12654 }, 0) / data.length;
12655};
12656
12657var median = function (data) {
12658 data = data.sort(function (a, b) {
12659 return a - b;
12660 });
12661
12662 var middle = (data.length / 2) | 0;
12663
12664 if (data.length % 2) {
12665 return data[middle];
12666 }
12667
12668 return (data[middle - 1] + data[middle]) / 2;
12669};
12670
12671exports.mean = mean;
12672exports.median = median;
12673
12674
12675/***/ }),
12676/* 358 */
12677/***/ (function(module, exports, __webpack_require__) {
12678
12679"use strict";
12680
12681
12682Object.defineProperty(exports, "__esModule", {
12683 value: true
12684});
12685
12686function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12687
12688function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
12689
12690function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
12691
12692var ListPlayerError = exports.ListPlayerError = function (_Error) {
12693 _inherits(ListPlayerError, _Error);
12694
12695 function ListPlayerError() {
12696 _classCallCheck(this, ListPlayerError);
12697
12698 return _possibleConstructorReturn(this, (ListPlayerError.__proto__ || Object.getPrototypeOf(ListPlayerError)).apply(this, arguments));
12699 }
12700
12701 return ListPlayerError;
12702}(Error);
12703
12704/***/ }),
12705/* 359 */
12706/***/ (function(module, exports, __webpack_require__) {
12707
12708"use strict";
12709
12710
12711Object.defineProperty(exports, "__esModule", {
12712 value: true
12713});
12714
12715var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
12716
12717function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
12718
12719function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12720
12721/* globals
12722transferobjects enums communication factories
12723*/
12724
12725var Club = exports.Club = function () {
12726 function Club() {
12727 _classCallCheck(this, Club);
12728 }
12729
12730 _createClass(Club, [{
12731 key: "getPlayers",
12732 value: function () {
12733 var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(start, count) {
12734 var _this = this;
12735
12736 return regeneratorRuntime.wrap(function _callee$(_context) {
12737 while (1) {
12738 switch (_context.prev = _context.next) {
12739 case 0:
12740 return _context.abrupt("return", new Promise(function (resolve, reject) {
12741 var t = new transferobjects.SearchCriteria();
12742 t.type = enums.SearchType.PLAYER;
12743
12744 var o = new communication.ClubSearchDelegate(t, start, count);
12745 o._useClickShield = false;
12746
12747 o.addListener(communication.BaseDelegate.SUCCESS, _this, function (sender, response) {
12748 sender.clearListenersByScope(_this);
12749
12750 var players = Array.isArray(response.itemData) ? factories.Item.generateItemsFromItemData(response.itemData) : [];
12751 var isLastPage = players.length <= count - 1;
12752 resolve({
12753 isLastPage: isLastPage,
12754 getNextPage: isLastPage ? null : function () {
12755 return _this.getPlayers(start + count, count);
12756 },
12757 players: players
12758 });
12759 });
12760
12761 o.addListener(communication.BaseDelegate.FAIL, _this, function (sender, response) {
12762 sender.clearListenersByScope(_this);
12763 reject(response);
12764 });
12765
12766 o.send();
12767 }));
12768
12769 case 1:
12770 case "end":
12771 return _context.stop();
12772 }
12773 }
12774 }, _callee, this);
12775 }));
12776
12777 function getPlayers(_x, _x2) {
12778 return _ref.apply(this, arguments);
12779 }
12780
12781 return getPlayers;
12782 }()
12783 }]);
12784
12785 return Club;
12786}();
12787
12788/***/ }),
12789/* 360 */
12790/***/ (function(module, exports, __webpack_require__) {
12791
12792"use strict";
12793
12794
12795Object.defineProperty(exports, "__esModule", {
12796 value: true
12797});
12798/* globals
12799window document Blob
12800*/
12801
12802exports.default = {
12803 downloadFile: function downloadFile(filename, data) {
12804 var blob = new Blob([data], { type: 'text/csv' });
12805 if (window.navigator.msSaveOrOpenBlob) {
12806 window.navigator.msSaveBlob(blob, filename);
12807 } else {
12808 var elem = window.document.createElement('a');
12809 elem.href = window.URL.createObjectURL(blob);
12810 elem.download = filename;
12811 document.body.appendChild(elem);
12812 elem.click();
12813 document.body.removeChild(elem);
12814 }
12815 }
12816};
12817
12818/***/ }),
12819/* 361 */
12820/***/ (function(module, exports) {
12821
12822module.exports = "<button class=\"futsettings-toggle standard mini call-to-action\">\n <span class=btn-text></span>\n</button>\n\n<div class=futsettings>\n <h1 class=settings-title>FUT Tampermonkey settings\n\n <div style=float:right>\n <a target=_blank href=https://www.paypal.me/timklingeleers rel=nofollow>\n <img src=\"data:image/gif;base64,R0lGODlhkwAvAPf/AIdoHkQxDXtxv/pCCL29vAWX0f3jzfZ+GABGwnix6eoAG0iD1i8kCv/civacG8fJ2yYwdCwDBlat7KfE7GKo59qnMLuomCd51+u1NMPJzMiBFb7BwvO6NvtaBP/Xef3CONeKF/SBIM8AF5rE7fiKLJqjqLWLKP/KTfqwcdfp+UZGR/zVtKvU9OPk7ZFYmqCgoLbZ9XF3xkab5PmdT3VZGhlkzaOnxTU4OFdaWgCk4zx40amyt05ibZK96+GsMmya3mNqbkdQiWaf4XGl4pVyId2pMQUDAv+qHY4AEP7+/qUhSDKK3HaDif7OXMzQ1bO2z/vKVFpFFH2m4v5hAf7GQwBkisucLdvd453K8bW1tfkAHABZe/Lz9WKT21eL2CQmKOWwM/G5PPT4+/rKn1uW3gCIvZOZugBynnGe35S2552cm42y5v/SaIKx53677ezt8/j5+gCp6mi07Fl7w4q862NLFhIIBMPc9fgxDXyt5v2lHPIBG6XM8FWe5Bps0fd5DkJ91Fpilq/K7gpcy7uijVMACjs/Qenr7E+l6QYjL9PV43Ko5S6C2hwUBY+56WVtnWtRF/7y57O7wPahHDF61YCMko2StvT19w9izR8pcAVVyACh3+4cFN3f6QBOxXG98dPa3kSGzZ276ZOeooWLsRUUFIrD8XuCq7LP8Pm+N//GPW17gWSZ3mMADLu+1AA4T+wAFF2x7fbAQPvAOPv8/fr6/JBcDzyS4RUgafrIS4vC7v/8+Obo6Xeh4AIcJY2YnTI8fP+yH78AFQAWHra2tv7DObOzs/TBSKN9JPrAN/TGWvvHT31fHHF+hGK38FU8DpyJdidv0Jm45/iLE5mevjIyMkKO3bSdias+df738T6R32aAzquwymJADH1QDtsRMtakL/8AHdelMLC3uyBy0725toa36sgjTExOT755FSZ3sNdPDbytoPMAEP0VFhRcyv+hFwBFX2xzoZpoDuLl5gB6qgCu8LyyqqKrry9y0TZ+1ywsLf///wAAAP/EOQAAACH5BAEAAP8ALAAAAACTAC8AQAj/AP8JHEiwoMGDCJucoKKqWDF/D/1JnDjxoUOIEi1apJgRosOPGDlS1BhSoyoqJ5ogXMmypcuXAmWJnDkzSr9+RhhAwkCzp0+JHDBw+ElUpCyYSJO6HFpUpE0A/mbZZFDMB86hyPox8AemXyOJAPrR8MesHzN/JvoFkFh2LNh+z5r25KC0rt2VRYoITfZBrt+/gD/MCpr3ruEXWYgpXsy4ceMsLwjenEy5suXJki8bsbz5MkEZMhBJGC0BESIZ2pYwunDBTw1MmjzJlk1QTRYCuHPr3r07ixqXWfgJbwEB1yN+j4ApUvQAQiB5uIDhCtKCX5bM/ewgCaegu4IBU/44/5jkQM8RW537Ye9XyLuCducExFiSY5P9TfEoE2S0RDWFHixMQEcPi4wwRBprSIPGGhN0IYgUvdxBEAH8HMILP1zwcgg/vNBDSzZJ8AMHLVxccQgcYqzAjmFI5QJFE4DFKOOMEjXRRC4s5vgSBhEB9tREDPRjAlk3BWmEFVzdZEeQ/YDjjxVaMbAZkgA0olUAY3EQZABWQgVYMRjoKCZCPvBE45loNoUBGGO26eabcMYJXBIt2EDNFfy0YIYi3DyQhCukUPMGP67YMKh12NkhAnfdcdLBFFOM54ADR2hgB2YDUYaEFt61g00MAoRSn31xnKHfQHy4AQMLn9xhChYJpP/QRg9D8DEEKmtIkQYgUogCiCcT0rLBOJc44UQGtYyzQSQrGAAKF8eOkwE+eBIAnHDYZqvttsJdl+lkpaCjAjqG3ICOuIbsQ64KKqS33k1fAIHDvECogEO96JRiGUE1+OGvH5gEjMkgmhSMwMEIJ4zAhNxiu4sBY6BAwgEHhGBxCAcQIqdBUFDBhgdsLKRKmiTLddIJH7NBBRQbvynLCSXHLPMJR7XM4jGzyPgjGAHAFTMNZsmczDE234VBXzH+KJGVyKS1lT9W2ZHkV/6E5RYHRNSxpURAe+lPHWpFEYURUgcWZtF2gcHUXzYVWQcYE3EAyWaNICNRV1Rb7Q8GPdv/AYlWEqUyNuD+FBEA3Wf9xQGbaLPoAxg9yiz5X2D40PjlmGeu+eacdx5cw6Bn661AlBmBxB7hpL7HOnoEc0QwDnhzKaakU1aIMOHsoUU4SqhjTxxx2FPGK5V9RkEscnzizCdyxEJBH31YY40+lFCSTw01vFNDbAyHHnoS1rb0eRLyUAcBKU/g8kAgmbginDzAAENKt4mKwGmjkE4xDXmUgmDlTfXbg3dg4QJQzaEAo4pDGXxBu3+MgA9YGAEM+MCCESSADo7oQQYd0YVesOIHP8hVPhY2kA3QYxQ7qAQPSgCEVexADCT4wzQIscJKMKEEicAHP8LHks8JpxaXCNEl/0b0hhbUIglcoIVwuFALRH1rMhFAggimiIQAzAMEWLTF/xpomVYIY4rCKMQr6lGGMuaneANhDWvIkIdFDKENaRDCBBCECml4AQ2C+EEv1tAFKXTPe9jKhgFQgLGMuQQxjklkIiHzrpukZzNGiCRO0qOeJ3LGkTjJ5L4GsoBOenIBgAilDkZJylKWsja30U057sEOQrjSArCMZSyv8ZvLLaQJHvBAA3bJy1768pfADKYwh0nMXeayCSjpnGFc5AGYTe6ZRDmBB6CAI2XCBArLcCY0t1mUEyyDZdZkyTGWwc1yymUZRAvnQZQhk6Rl53+NEMfP+uE1kslCGeo0SBiQ5v8jet5tM04qBhEYYIcAIGlvDGAAAAh6NRpIqREA6AsNLtUIBsRlb1FoRCMSF5gw5LMgPNKZPyXyDHpiIJIVqJpakmSHofwIAyn1BxH6AQmuBU0iM60pB3ISIzB9lCAYSIVIvVSEm1ghLWvZW3Y+0JWy6c0HjTBCAEqa1K5NxCYBqEMdIFFTwKTibD8VCNzc2YjDZeegYGvE4IbU1LeMZaYBIELPkpoVv62FA1ZiAA24GiPGhXUgkJNcMsZaFAzkTCSpWFvgCOuXYvj1rwMpkzknOxMMWA6yB/GBDzgQOcpOrhgc8EERMAuTChShAqhNrWpXy9rWuva1sI0tagtD2tr/2va2uM2tbndrDECGzhjvMkIhCtGKQkQgAgHoRjeeYdZT1Y4yEWgFEpBg3GG8YgtViMcwNikQ0IgmFrEoDWhuoZoLkANgBJMNAmgzEB/6dlujW4l73ys67BihFbnzDh70Jyk96KEb7rJkBOzXHVh8wwXbQCCpCpAI5/6DAiyAwapYgAUYuGEEFjQHKkawoB8IohdpmIAOgDUQAoSIvtrioXz5kYQrBOERtDgFMGwwY0tkIhCPaEEncAGBJ4QovpNR1P0UwIn87W9SR/AfF5VE4AIXUAAHTGAZtgvAgaBCDrrQBRZMcQcsuCEF5uBDHgSxiAn8AJS9sOMCSCyQDRzi/xdMGAUQgLCBUVQCFDM4wAygkcJVlGAHhigBHDZwLeHYAAKngEALLIGLN3QiELgwQyfkF4hAKBHITGYUkR+lv0mQJ8lbtK8wBNiddjx5DvfZhAIDLBBrLEEbMugDHcxBhwQswhyLaEMeWIGGM/+gC174gRe8QJANcGEUzcjAL0rw50pIYgwzQEE2KuGEceBjA82QhLAKLZwgZOIBlwiCPLgRvyDY4MWKoAYE/ITpm0QAd+HYnTs6AI9gmOcI6Yjqkh2JBAXs4d97wIaockDwTVSBkgS5ACMWLoRF5GEEQoA4K8jQhWj0AhALEIUO0NALHaRhQidGcSQIqTHxoRi+jY40wnEjoC87lDWqZGP1Py5TigjYIZJGKMUXEqEv7v6DHEAnhz7y0IY2kIEVbQBEPnrRwV6j4elPXwDIAZkEiM0AYxYzZEt6e/JsAdeSdtjHPm5QjS/c4AZi/4IhvlB2mVumFNUwhLjIFfd9GKLnDhaY3gfB99jM5u+AJ8h8+fGwiM0ghn/4A8UWT7FrGCQgADs=\"/>\n </a>\n </div>\n </h1>\n\n <!-- settings are injected here automatically -->\n <div id=settingspanel></div>\n\n <footer>\n <h3>Need help?</h3>\n <p>Talk to us in the Gitter channel or report errors in the Github repository.\n <ul>\n <li>Gitter: <a target=_blank href=https://gitter.im/futwebapp-tampermonkey/Lobby>Talk in the Lobby</a></li>\n <li>Github: <a target=_blank href=https://github.com/Mardaneus86/futwebapp-tampermonkey/issues>Add an issue</a></li>\n </ul>\n </p>\n <hr/>\n <h3>Enjoying this plugin?</h3>\n <p>Consider a donation so this plugin can keep being improved.</p>\n <p>\n <a target=_blank href=https://www.paypal.me/timklingeleers rel=nofollow>\n <img src=\"data:image/gif;base64,R0lGODlhkwAvAPf/AIdoHkQxDXtxv/pCCL29vAWX0f3jzfZ+GABGwnix6eoAG0iD1i8kCv/civacG8fJ2yYwdCwDBlat7KfE7GKo59qnMLuomCd51+u1NMPJzMiBFb7BwvO6NvtaBP/Xef3CONeKF/SBIM8AF5rE7fiKLJqjqLWLKP/KTfqwcdfp+UZGR/zVtKvU9OPk7ZFYmqCgoLbZ9XF3xkab5PmdT3VZGhlkzaOnxTU4OFdaWgCk4zx40amyt05ibZK96+GsMmya3mNqbkdQiWaf4XGl4pVyId2pMQUDAv+qHY4AEP7+/qUhSDKK3HaDif7OXMzQ1bO2z/vKVFpFFH2m4v5hAf7GQwBkisucLdvd453K8bW1tfkAHABZe/Lz9WKT21eL2CQmKOWwM/G5PPT4+/rKn1uW3gCIvZOZugBynnGe35S2552cm42y5v/SaIKx53677ezt8/j5+gCp6mi07Fl7w4q862NLFhIIBMPc9fgxDXyt5v2lHPIBG6XM8FWe5Bps0fd5DkJ91Fpilq/K7gpcy7uijVMACjs/Qenr7E+l6QYjL9PV43Ko5S6C2hwUBY+56WVtnWtRF/7y57O7wPahHDF61YCMko2StvT19w9izR8pcAVVyACh3+4cFN3f6QBOxXG98dPa3kSGzZ276ZOeooWLsRUUFIrD8XuCq7LP8Pm+N//GPW17gWSZ3mMADLu+1AA4T+wAFF2x7fbAQPvAOPv8/fr6/JBcDzyS4RUgafrIS4vC7v/8+Obo6Xeh4AIcJY2YnTI8fP+yH78AFQAWHra2tv7DObOzs/TBSKN9JPrAN/TGWvvHT31fHHF+hGK38FU8DpyJdidv0Jm45/iLE5mevjIyMkKO3bSdias+df738T6R32aAzquwymJADH1QDtsRMtakL/8AHdelMLC3uyBy0725toa36sgjTExOT755FSZ3sNdPDbytoPMAEP0VFhRcyv+hFwBFX2xzoZpoDuLl5gB6qgCu8LyyqqKrry9y0TZ+1ywsLf///wAAAP/EOQAAACH5BAEAAP8ALAAAAACTAC8AQAj/AP8JHEiwoMGDCJucoKKqWDF/D/1JnDjxoUOIEi1apJgRosOPGDlS1BhSoyoqJ5ogXMmypcuXAmWJnDkzSr9+RhhAwkCzp0+JHDBw+ElUpCyYSJO6HFpUpE0A/mbZZFDMB86hyPox8AemXyOJAPrR8MesHzN/JvoFkFh2LNh+z5r25KC0rt2VRYoITfZBrt+/gD/MCpr3ruEXWYgpXsy4ceMsLwjenEy5suXJki8bsbz5MkEZMhBJGC0BESIZ2pYwunDBTw1MmjzJlk1QTRYCuHPr3r07ixqXWfgJbwEB1yN+j4ApUvQAQiB5uIDhCtKCX5bM/ewgCaegu4IBU/44/5jkQM8RW537Ye9XyLuCducExFiSY5P9TfEoE2S0RDWFHixMQEcPi4wwRBprSIPGGhN0IYgUvdxBEAH8HMILP1zwcgg/vNBDSzZJ8AMHLVxccQgcYqzAjmFI5QJFE4DFKOOMEjXRRC4s5vgSBhEB9tREDPRjAlk3BWmEFVzdZEeQ/YDjjxVaMbAZkgA0olUAY3EQZABWQgVYMRjoKCZCPvBE45loNoUBGGO26eabcMYJXBIt2EDNFfy0YIYi3DyQhCukUPMGP67YMKh12NkhAnfdcdLBFFOM54ADR2hgB2YDUYaEFt61g00MAoRSn31xnKHfQHy4AQMLn9xhChYJpP/QRg9D8DEEKmtIkQYgUogCiCcT0rLBOJc44UQGtYyzQSQrGAAKF8eOkwE+eBIAnHDYZqvttsJdl+lkpaCjAjqG3ICOuIbsQ64KKqS33k1fAIHDvECogEO96JRiGUE1+OGvH5gEjMkgmhSMwMEIJ4zAhNxiu4sBY6BAwgEHhGBxCAcQIqdBUFDBhgdsLKRKmiTLddIJH7NBBRQbvynLCSXHLPMJR7XM4jGzyPgjGAHAFTMNZsmczDE234VBXzH+KJGVyKS1lT9W2ZHkV/6E5RYHRNSxpURAe+lPHWpFEYURUgcWZtF2gcHUXzYVWQcYE3EAyWaNICNRV1Rb7Q8GPdv/AYlWEqUyNuD+FBEA3Wf9xQGbaLPoAxg9yiz5X2D40PjlmGeu+eacdx5cw6Bn661AlBmBxB7hpL7HOnoEc0QwDnhzKaakU1aIMOHsoUU4SqhjTxxx2FPGK5V9RkEscnzizCdyxEJBH31YY40+lFCSTw01vFNDbAyHHnoS1rb0eRLyUAcBKU/g8kAgmbginDzAAENKt4mKwGmjkE4xDXmUgmDlTfXbg3dg4QJQzaEAo4pDGXxBu3+MgA9YGAEM+MCCESSADo7oQQYd0YVesOIHP8hVPhY2kA3QYxQ7qAQPSgCEVexADCT4wzQIscJKMKEEicAHP8LHks8JpxaXCNEl/0b0hhbUIglcoIVwuFALRH1rMhFAggimiIQAzAMEWLTF/xpomVYIY4rCKMQr6lGGMuaneANhDWvIkIdFDKENaRDCBBCECml4AQ2C+EEv1tAFKXTPe9jKhgFQgLGMuQQxjklkIiHzrpukZzNGiCRO0qOeJ3LGkTjJ5L4GsoBOenIBgAilDkZJylKWsja30U057sEOQrjSArCMZSyv8ZvLLaQJHvBAA3bJy1768pfADKYwh0nMXeayCSjpnGFc5AGYTe6ZRDmBB6CAI2XCBArLcCY0t1mUEyyDZdZkyTGWwc1yymUZRAvnQZQhk6Rl53+NEMfP+uE1kslCGeo0SBiQ5v8jet5tM04qBhEYYIcAIGlvDGAAAAh6NRpIqREA6AsNLtUIBsRlb1FoRCMSF5gw5LMgPNKZPyXyDHpiIJIVqJpakmSHofwIAyn1BxH6AQmuBU0iM60pB3ISIzB9lCAYSIVIvVSEm1ghLWvZW3Y+0JWy6c0HjTBCAEqa1K5NxCYBqEMdIFFTwKTibD8VCNzc2YjDZeegYGvE4IbU1LeMZaYBIELPkpoVv62FA1ZiAA24GiPGhXUgkJNcMsZaFAzkTCSpWFvgCOuXYvj1rwMpkzknOxMMWA6yB/GBDzgQOcpOrhgc8EERMAuTChShAqhNrWpXy9rWuva1sI0tagtD2tr/2va2uM2tbndrDECGzhjvMkIhCtGKQkQgAgHoRjeeYdZT1Y4yEWgFEpBg3GG8YgtViMcwNikQ0IgmFrEoDWhuoZoLkANgBJMNAmgzEB/6dlujW4l73ys67BihFbnzDh70Jyk96KEb7rJkBOzXHVh8wwXbQCCpCpAI5/6DAiyAwapYgAUYuGEEFjQHKkawoB8IohdpmIAOgDUQAoSIvtrioXz5kYQrBOERtDgFMGwwY0tkIhCPaEEncAGBJ4QovpNR1P0UwIn87W9SR/AfF5VE4AIXUAAHTGAZtgvAgaBCDrrQBRZMcQcsuCEF5uBDHgSxiAn8AJS9sOMCSCyQDRzi/xdMGAUQgLCBUVQCFDM4wAygkcJVlGAHhigBHDZwLeHYAAKngEALLIGLN3QiELgwQyfkF4hAKBHITGYUkR+lv0mQJ8lbtK8wBNiddjx5DvfZhAIDLBBrLEEbMugDHcxBhwQswhyLaEMeWIGGM/+gC174gRe8QJANcGEUzcjAL0rw50pIYgwzQEE2KuGEceBjA82QhLAKLZwgZOIBlwiCPLgRvyDY4MWKoAYE/ITpm0QAd+HYnTs6AI9gmOcI6Yjqkh2JBAXs4d97wIaockDwTVSBkgS5ACMWLoRF5GEEQoA4K8jQhWj0AhALEIUO0NALHaRhQidGcSQIqTHxoRi+jY40wnEjoC87lDWqZGP1Py5TigjYIZJGKMUXEqEv7v6DHEAnhz7y0IY2kIEVbQBEPnrRwV6j4elPXwDIAZkEiM0AYxYzZEt6e/JsAdeSdtjHPm5QjS/c4AZi/4IhvlB2mVumFNUwhLjIFfd9GKLnDhaY3gfB99jM5u+AJ8h8+fGwiM0ghn/4A8UWT7FrGCQgADs=\"/>\n </a>\n </p>\n </footer>\n</div>\n";
12823
12824/***/ }),
12825/* 362 */
12826/***/ (function(module, exports, __webpack_require__) {
12827
12828"use strict";
12829
12830
12831Object.defineProperty(exports, "__esModule", {
12832 value: true
12833});
12834exports.TransferTotalsSettings = exports.ListSizeSettings = exports.MinBinSettings = exports.RefreshListSettings = exports.CardInfoSettings = undefined;
12835
12836var _refreshList = __webpack_require__(363);
12837
12838var _minBin = __webpack_require__(366);
12839
12840var _cardInfo = __webpack_require__(367);
12841
12842var _listSize = __webpack_require__(370);
12843
12844var _transferTotals = __webpack_require__(371);
12845
12846exports.CardInfoSettings = _cardInfo.CardInfoSettings;
12847exports.RefreshListSettings = _refreshList.RefreshListSettings;
12848exports.MinBinSettings = _minBin.MinBinSettings;
12849exports.ListSizeSettings = _listSize.ListSizeSettings;
12850exports.TransferTotalsSettings = _transferTotals.TransferTotalsSettings;
12851
12852/***/ }),
12853/* 363 */
12854/***/ (function(module, exports, __webpack_require__) {
12855
12856"use strict";
12857
12858
12859Object.defineProperty(exports, "__esModule", {
12860 value: true
12861});
12862exports.RefreshListSettings = undefined;
12863
12864var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
12865
12866var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
12867
12868var _core = __webpack_require__(18);
12869
12870__webpack_require__(364);
12871
12872function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12873
12874function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
12875
12876function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* globals $ */
12877
12878var RefreshListSettings = exports.RefreshListSettings = function (_SettingsEntry) {
12879 _inherits(RefreshListSettings, _SettingsEntry);
12880
12881 function RefreshListSettings() {
12882 _classCallCheck(this, RefreshListSettings);
12883
12884 return _possibleConstructorReturn(this, (RefreshListSettings.__proto__ || Object.getPrototypeOf(RefreshListSettings)).call(this, 'refresh-transferlist', 'Refresh transferlist', null));
12885 }
12886
12887 return RefreshListSettings;
12888}(_core.SettingsEntry);
12889
12890RefreshListSettings.id = 'refresh-transferlist';
12891
12892var RefreshTransferList = function (_BaseScript) {
12893 _inherits(RefreshTransferList, _BaseScript);
12894
12895 function RefreshTransferList() {
12896 _classCallCheck(this, RefreshTransferList);
12897
12898 return _possibleConstructorReturn(this, (RefreshTransferList.__proto__ || Object.getPrototypeOf(RefreshTransferList)).call(this, RefreshListSettings.id));
12899 }
12900
12901 _createClass(RefreshTransferList, [{
12902 key: 'activate',
12903 value: function activate(state) {
12904 _get(RefreshTransferList.prototype.__proto__ || Object.getPrototypeOf(RefreshTransferList.prototype), 'activate', this).call(this, state);
12905 this._show(state.screenId);
12906 }
12907 }, {
12908 key: 'onScreenRequest',
12909 value: function onScreenRequest(screenId) {
12910 _get(RefreshTransferList.prototype.__proto__ || Object.getPrototypeOf(RefreshTransferList.prototype), 'onScreenRequest', this).call(this, screenId);
12911 this._show(screenId);
12912 }
12913 }, {
12914 key: 'deactivate',
12915 value: function deactivate(state) {
12916 _get(RefreshTransferList.prototype.__proto__ || Object.getPrototypeOf(RefreshTransferList.prototype), 'deactivate', this).call(this, state);
12917 $('#header').find('.subTitle').find('.refresh').remove();
12918 }
12919
12920 /* eslint-disable class-methods-use-this */
12921
12922 }, {
12923 key: '_show',
12924 value: function _show(event) {
12925 switch (event) {
12926 case 'UTMarketSearchResultsSplitViewController':
12927 // market search
12928 setTimeout(function () {
12929 if ($('.pagingContainer').find('.refresh').length === 0) {
12930 $('.pagingContainer').append('<button class="flat pagination refresh" style="float: right;">Refresh list</button>');
12931 $('.refresh').click(function () {
12932 getAppMain().getRootViewController().getPresentedViewController().getCurrentViewController().getCurrentController()._listController._requestItems();
12933 });
12934 }
12935 }, 1000);
12936 break;
12937 default:
12938 // no need to show anything on other screens
12939 }
12940 }
12941 /* eslint-enable class-methods-use-this */
12942
12943 }]);
12944
12945 return RefreshTransferList;
12946}(_core.BaseScript);
12947
12948new RefreshTransferList(); // eslint-disable-line no-new
12949
12950/***/ }),
12951/* 364 */
12952/***/ (function(module, exports, __webpack_require__) {
12953
12954// style-loader: Adds some css to the DOM by adding a <style> tag
12955
12956// load the styles
12957var content = __webpack_require__(365);
12958if(typeof content === 'string') content = [[module.i, content, '']];
12959// Prepare cssTransformation
12960var transform;
12961
12962var options = {"hmr":true}
12963options.transform = transform
12964// add the styles to the DOM
12965var update = __webpack_require__(48)(content, options);
12966if(content.locals) module.exports = content.locals;
12967// Hot Module Replacement
12968if(false) {
12969 // When the styles change, update the <style> tags
12970 if(!content.locals) {
12971 module.hot.accept("!!../../../node_modules/css-loader/index.js!../../../node_modules/sass-loader/lib/loader.js!./refresh-list.scss", function() {
12972 var newContent = require("!!../../../node_modules/css-loader/index.js!../../../node_modules/sass-loader/lib/loader.js!./refresh-list.scss");
12973 if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
12974 update(newContent);
12975 });
12976 }
12977 // When the module is disposed, remove the <style> tags
12978 module.hot.dispose(function() { update(); });
12979}
12980
12981/***/ }),
12982/* 365 */
12983/***/ (function(module, exports, __webpack_require__) {
12984
12985exports = module.exports = __webpack_require__(47)(undefined);
12986// imports
12987
12988
12989// module
12990exports.push([module.i, "button.flat.pagination.refresh:before {\n font-family: UltimateTeam-Icons,sans-serif;\n content: '\\E051'; }\n", ""]);
12991
12992// exports
12993
12994
12995/***/ }),
12996/* 366 */
12997/***/ (function(module, exports, __webpack_require__) {
12998
12999"use strict";
13000
13001
13002Object.defineProperty(exports, "__esModule", {
13003 value: true
13004});
13005exports.MinBinSettings = undefined;
13006
13007var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
13008
13009var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
13010
13011var _core = __webpack_require__(18);
13012
13013var _fut = __webpack_require__(67);
13014
13015function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
13016
13017function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13018
13019function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
13020
13021function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* globals
13022 window $ document
13023 */
13024
13025
13026var MinBinSettings = exports.MinBinSettings = function (_SettingsEntry) {
13027 _inherits(MinBinSettings, _SettingsEntry);
13028
13029 function MinBinSettings() {
13030 _classCallCheck(this, MinBinSettings);
13031
13032 var _this = _possibleConstructorReturn(this, (MinBinSettings.__proto__ || Object.getPrototypeOf(MinBinSettings)).call(this, 'min-bin', 'Search minimum BIN'));
13033
13034 _this.addSetting('Amount of lowest BINs to determine minimum on', 'mean-count', 3, 'number');
13035 _this.addSetting('Adjust quicklist panel price automatically based on minimum BIN', 'adjust-list-price', true, 'checkbox');
13036 _this.addSettingUnder('adjust-list-price', 'Start price percentage (0 to 100%)', 'start-price-percentage', 90, 'number');
13037 _this.addSettingUnder('adjust-list-price', 'Buy now price percentage (0 to 100%)', 'buy-now-price-percentage', 110, 'number');
13038 return _this;
13039 }
13040
13041 return MinBinSettings;
13042}(_core.SettingsEntry);
13043
13044MinBinSettings.id = 'min-bin';
13045
13046var MinBin = function (_BaseScript) {
13047 _inherits(MinBin, _BaseScript);
13048
13049 function MinBin() {
13050 _classCallCheck(this, MinBin);
13051
13052 var _this2 = _possibleConstructorReturn(this, (MinBin.__proto__ || Object.getPrototypeOf(MinBin)).call(this, MinBinSettings.id));
13053
13054 var MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
13055 _this2._observer = new MutationObserver(_this2._mutationHandler.bind(_this2));
13056
13057 _this2._playerPrices = [];
13058 return _this2;
13059 }
13060
13061 _createClass(MinBin, [{
13062 key: 'activate',
13063 value: function activate(state) {
13064 var _this3 = this;
13065
13066 _get(MinBin.prototype.__proto__ || Object.getPrototypeOf(MinBin.prototype), 'activate', this).call(this, state);
13067
13068 var obsConfig = {
13069 childList: true,
13070 characterData: true,
13071 attributes: false,
13072 subtree: true
13073 };
13074
13075 setTimeout(function () {
13076 _this3._observer.observe($(document)[0], obsConfig);
13077 }, 0);
13078 }
13079 }, {
13080 key: 'deactivate',
13081 value: function deactivate(state) {
13082 _get(MinBin.prototype.__proto__ || Object.getPrototypeOf(MinBin.prototype), 'deactivate', this).call(this, state);
13083
13084 this._observer.disconnect();
13085 }
13086 }, {
13087 key: '_mutationHandler',
13088 value: function _mutationHandler(mutationRecords) {
13089 mutationRecords.forEach(function (mutation) {
13090 var _this4 = this;
13091
13092 if ($(mutation.target).hasClass('DetailView') && $(mutation.target).find('.DetailPanel') && mutation.addedNodes.length > 0) {
13093 var searchMinBin = $(mutation.target).find('#searchMinBin');
13094 searchMinBin.remove();
13095
13096 var selectedItem = this._getSelectedItem();
13097
13098 if (selectedItem == null || selectedItem.resourceId === 0) {
13099 return;
13100 }
13101 var knownPlayerPrice = this._playerPrices.find(function (p) {
13102 return p.resourceId === selectedItem.resourceId;
13103 });
13104 var price = '';
13105 if (knownPlayerPrice != null) {
13106 price = '(' + knownPlayerPrice.minimumBin + ')';
13107
13108 this._updateListPrice(knownPlayerPrice.minimumBin);
13109 }
13110 $(mutation.target).find('.DetailPanel > .ut-button-group').prepend('<button id="searchMinBin" data-resource-id="' + selectedItem.resourceId + '" class="list"><span class="btn-text">Search minimum BIN ' + price + '</span><span class="btn-subtext"></span></button>');
13111
13112 $('#searchMinBin').bind('click', _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
13113 var btn, settings, minimumBin, playerPrice, notificationText;
13114 return regeneratorRuntime.wrap(function _callee$(_context) {
13115 while (1) {
13116 switch (_context.prev = _context.next) {
13117 case 0:
13118 btn = $('#searchMinBin');
13119
13120 btn.find('.btn-text').html('Searching minimum BIN...');
13121 _core.analytics.trackEvent('Min BIN', 'Search Min BIN', btn.data('resource-id'));
13122 settings = _this4.getSettings();
13123 _context.next = 6;
13124 return new _fut.TransferMarket().searchMinBuy(selectedItem, parseInt(settings['mean-count'], 10));
13125
13126 case 6:
13127 minimumBin = _context.sent;
13128 playerPrice = _this4._playerPrices.find(function (p) {
13129 return p.resourceId === btn.data('resource-id');
13130 });
13131
13132 if (playerPrice != null) {
13133 _this4._playerPrices.splice(_this4._playerPrices.indexOf(playerPrice), 1);
13134 }
13135 _this4._playerPrices.push({
13136 resourceId: btn.data('resource-id'),
13137 minimumBin: minimumBin
13138 });
13139
13140 selectedItem = _this4._getSelectedItem();
13141
13142 notificationText = 'Minimum BIN found for ' + selectedItem._staticData.name + ' is ' + minimumBin;
13143
13144 if (btn.data('resource-id') === selectedItem.resourceId) {
13145 if (minimumBin === 0) {
13146 btn.find('.btn-text').html('Search minimum BIN (extinct)');
13147 notificationText = 'Minimum BIN not found for ' + selectedItem._staticData.name + ', card may be extinct';
13148 } else {
13149 btn.find('.btn-text').html('Search minimum BIN (' + minimumBin + ')');
13150
13151 _this4._updateListPrice(minimumBin);
13152 }
13153 }
13154
13155 GM_notification({
13156 text: notificationText,
13157 title: 'FUT 20 Web App',
13158 timeout: 5000,
13159 onclick: function onclick() {
13160 return window.focus();
13161 }
13162 });
13163
13164 case 14:
13165 case 'end':
13166 return _context.stop();
13167 }
13168 }
13169 }, _callee, _this4);
13170 })));
13171 }
13172 }, this);
13173 }
13174 }, {
13175 key: '_updateListPrice',
13176 value: function _updateListPrice(minimumBin) {
13177 var settings = this.getSettings();
13178 var quicklistPanel = getAppMain().getRootViewController().getPresentedViewController().getCurrentViewController().getCurrentController()._rightController._currentController._quickListPanel;
13179
13180 if (settings['adjust-list-price'] && quicklistPanel) {
13181 var quicklistpanelView = quicklistPanel._view;
13182
13183 var listPrice = _fut.priceTiers.determineListPrice(minimumBin * (settings['start-price-percentage'] / 100), minimumBin * (settings['buy-now-price-percentage'] / 100));
13184
13185 if (quicklistPanel._item) {
13186 // sets the values when the quicklistpanel hasn't been initialized
13187 var auction = quicklistPanel._item._auction;
13188 if (auction.tradeState === 'closed') {
13189 // item is sold
13190 return;
13191 }
13192 if (auction.tradeState !== 'active') {
13193 auction.startingBid = listPrice.start;
13194 auction.buyNowPrice = listPrice.buyNow;
13195 quicklistPanel._item.setAuctionData(auction);
13196 }
13197 }
13198
13199 var bidSpinner = quicklistpanelView._bidNumericStepper;
13200 var buySpinner = quicklistpanelView._buyNowNumericStepper;
13201 bidSpinner.setValue(listPrice.start);
13202 buySpinner.setValue(listPrice.buyNow);
13203 }
13204 }
13205
13206 /* eslint-disable class-methods-use-this */
13207
13208 }, {
13209 key: '_getSelectedItem',
13210 value: function _getSelectedItem() {
13211 var listController = getAppMain().getRootViewController().getPresentedViewController().getCurrentViewController().getCurrentController()._listController;
13212 if (listController) {
13213 return listController.getIterator().current();
13214 }
13215
13216 var detailController = getAppMain().getRootViewController().getPresentedViewController().getCurrentViewController().getCurrentController()._rightController;
13217 if (detailController && detailController._currentController._viewmodel) {
13218 var current = detailController._currentController._viewmodel.current();
13219
13220 return current._item ? current._item : current;
13221 }
13222
13223 return null;
13224 }
13225 /* eslint-enable class-methods-use-this */
13226
13227 }]);
13228
13229 return MinBin;
13230}(_core.BaseScript);
13231
13232new MinBin(); // eslint-disable-line no-new
13233
13234/***/ }),
13235/* 367 */
13236/***/ (function(module, exports, __webpack_require__) {
13237
13238"use strict";
13239
13240
13241Object.defineProperty(exports, "__esModule", {
13242 value: true
13243});
13244exports.CardInfoSettings = undefined;
13245
13246var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
13247
13248var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
13249
13250var _core = __webpack_require__(18);
13251
13252__webpack_require__(368);
13253
13254function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13255
13256function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
13257
13258function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* globals
13259 window $ document */
13260
13261var CardInfoSettings = exports.CardInfoSettings = function (_SettingsEntry) {
13262 _inherits(CardInfoSettings, _SettingsEntry);
13263
13264 function CardInfoSettings() {
13265 _classCallCheck(this, CardInfoSettings);
13266
13267 var _this = _possibleConstructorReturn(this, (CardInfoSettings.__proto__ || Object.getPrototypeOf(CardInfoSettings)).call(this, 'card-info', 'Extra card information', null));
13268
13269 _this.addSetting('Show contracts', 'show-contracts', true, 'checkbox');
13270 _this.addSetting('Show fitness', 'show-fitness', true, 'checkbox');
13271 return _this;
13272 }
13273
13274 return CardInfoSettings;
13275}(_core.SettingsEntry);
13276
13277CardInfoSettings.id = 'card-info';
13278
13279var CardInfo = function (_BaseScript) {
13280 _inherits(CardInfo, _BaseScript);
13281
13282 function CardInfo() {
13283 _classCallCheck(this, CardInfo);
13284
13285 var _this2 = _possibleConstructorReturn(this, (CardInfo.__proto__ || Object.getPrototypeOf(CardInfo)).call(this, CardInfoSettings.id));
13286
13287 var MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
13288 _this2._observer = new MutationObserver(_this2._mutationHandler.bind(_this2));
13289 return _this2;
13290 }
13291
13292 _createClass(CardInfo, [{
13293 key: 'activate',
13294 value: function activate(state) {
13295 var _this3 = this;
13296
13297 _get(CardInfo.prototype.__proto__ || Object.getPrototypeOf(CardInfo.prototype), 'activate', this).call(this, state);
13298
13299 var obsConfig = {
13300 childList: true,
13301 characterData: true,
13302 attributes: false,
13303 subtree: true
13304 };
13305
13306 setTimeout(function () {
13307 _this3._observer.observe($(document)[0], obsConfig);
13308 }, 0);
13309 }
13310 }, {
13311 key: 'deactivate',
13312 value: function deactivate(state) {
13313 _get(CardInfo.prototype.__proto__ || Object.getPrototypeOf(CardInfo.prototype), 'deactivate', this).call(this, state);
13314 this._observer.disconnect();
13315 }
13316 }, {
13317 key: '_mutationHandler',
13318 value: function _mutationHandler(mutationRecords) {
13319 var settings = this.getSettings();
13320 mutationRecords.forEach(function (mutation) {
13321 if ($(mutation.target).find('.listFUTItem').length > 0) {
13322 var controller = getAppMain().getRootViewController().getPresentedViewController().getCurrentViewController().getCurrentController();
13323 if (!controller || !controller._listController) {
13324 return;
13325 }
13326
13327 var items = [];
13328 if (controller._listController._view._list) {
13329 items = controller._listController._view._list._listRows;
13330 } else {
13331 items = controller._listController._viewmodel._collection.map(function (item) {
13332 return { data: item };
13333 });
13334 }
13335 var rows = $('.listFUTItem');
13336
13337 rows.each(function (index, row) {
13338 if ($(row).find('.infoTab-extra').length > 0) {
13339 return; // already added
13340 }
13341
13342 var info = '';
13343 if (settings['show-fitness'].toString() === 'true') {
13344 info += '<div class="fitness" style="position: absolute;left: 5px;bottom: -3px;">\n F:' + items[index].data.fitness + '\n </div>';
13345 }
13346
13347 if (settings['show-contracts'].toString() === 'true') {
13348 info += '<div class="contracts" style="position: absolute;right: 5px;bottom: -3px;">\n C:' + items[index].data.contract + '\n </div>';
13349 }
13350
13351 $(row).find('.small.player').prepend('<div class="infoTab-extra">' + info + '</div>');
13352 });
13353 }
13354 });
13355 }
13356 }]);
13357
13358 return CardInfo;
13359}(_core.BaseScript);
13360
13361new CardInfo(); // eslint-disable-line no-new
13362
13363/***/ }),
13364/* 368 */
13365/***/ (function(module, exports, __webpack_require__) {
13366
13367// style-loader: Adds some css to the DOM by adding a <style> tag
13368
13369// load the styles
13370var content = __webpack_require__(369);
13371if(typeof content === 'string') content = [[module.i, content, '']];
13372// Prepare cssTransformation
13373var transform;
13374
13375var options = {"hmr":true}
13376options.transform = transform
13377// add the styles to the DOM
13378var update = __webpack_require__(48)(content, options);
13379if(content.locals) module.exports = content.locals;
13380// Hot Module Replacement
13381if(false) {
13382 // When the styles change, update the <style> tags
13383 if(!content.locals) {
13384 module.hot.accept("!!../../../node_modules/css-loader/index.js!../../../node_modules/sass-loader/lib/loader.js!./card-info.scss", function() {
13385 var newContent = require("!!../../../node_modules/css-loader/index.js!../../../node_modules/sass-loader/lib/loader.js!./card-info.scss");
13386 if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
13387 update(newContent);
13388 });
13389 }
13390 // When the module is disposed, remove the <style> tags
13391 module.hot.dispose(function() { update(); });
13392}
13393
13394/***/ }),
13395/* 369 */
13396/***/ (function(module, exports, __webpack_require__) {
13397
13398exports = module.exports = __webpack_require__(47)(undefined);
13399// imports
13400
13401
13402// module
13403exports.push([module.i, ".item.player.small.TOTW .infoTab-extra,\n.item.player.small.OTW .infoTab-extra,\n.item.player.small.TOTS .infoTab-extra,\n.item.player.small.TOTY .infoTab-extra,\n.item.player.small.legend .infoTab-extra {\n color: white; }\n\n.item.player.small .infoTab-extra {\n width: 100%;\n height: 100%;\n position: absolute; }\n", ""]);
13404
13405// exports
13406
13407
13408/***/ }),
13409/* 370 */
13410/***/ (function(module, exports, __webpack_require__) {
13411
13412"use strict";
13413
13414
13415Object.defineProperty(exports, "__esModule", {
13416 value: true
13417});
13418exports.ListSizeSettings = undefined;
13419
13420var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
13421
13422var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
13423
13424var _core = __webpack_require__(18);
13425
13426function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13427
13428function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
13429
13430function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* globals
13431 gConfigurationModel models
13432 */
13433
13434var ListSizeSettings = exports.ListSizeSettings = function (_SettingsEntry) {
13435 _inherits(ListSizeSettings, _SettingsEntry);
13436
13437 function ListSizeSettings() {
13438 _classCallCheck(this, ListSizeSettings);
13439
13440 var _this = _possibleConstructorReturn(this, (ListSizeSettings.__proto__ || Object.getPrototypeOf(ListSizeSettings)).call(this, 'list-size', 'Increase transfer list size', null));
13441
13442 _this.addSetting('Items per page on transfer market (max 30)', 'items-per-page-transfermarket', 30, 'number');
13443 _this.addSetting('Items per page on club (max 90)', 'items-per-page-club', 90, 'number');
13444 return _this;
13445 }
13446
13447 return ListSizeSettings;
13448}(_core.SettingsEntry);
13449
13450ListSizeSettings.id = 'list-size';
13451
13452var ListSize = function (_BaseScript) {
13453 _inherits(ListSize, _BaseScript);
13454
13455 function ListSize() {
13456 _classCallCheck(this, ListSize);
13457
13458 return _possibleConstructorReturn(this, (ListSize.__proto__ || Object.getPrototypeOf(ListSize)).call(this, ListSizeSettings.id));
13459 }
13460
13461 _createClass(ListSize, [{
13462 key: 'activate',
13463 value: function activate(state) {
13464 _get(ListSize.prototype.__proto__ || Object.getPrototypeOf(ListSize.prototype), 'activate', this).call(this, state);
13465
13466 this._start();
13467 }
13468 }, {
13469 key: 'onScreenRequest',
13470 value: function onScreenRequest(screenId) {
13471 _get(ListSize.prototype.__proto__ || Object.getPrototypeOf(ListSize.prototype), 'onScreenRequest', this).call(this, screenId);
13472
13473 if (this._running) {
13474 this._start();
13475 }
13476 }
13477 }, {
13478 key: 'deactivate',
13479 value: function deactivate(state) {
13480 _get(ListSize.prototype.__proto__ || Object.getPrototypeOf(ListSize.prototype), 'deactivate', this).call(this, state);
13481
13482 this._stop();
13483 }
13484 }, {
13485 key: '_start',
13486 value: function _start() {
13487 this._running = true;
13488
13489 var itemsOnMarket = parseInt(this.getSettings()['items-per-page-transfermarket'], 10);
13490 var itemsOnClub = parseInt(this.getSettings()['items-per-page-club'], 10);
13491 var configObj = gConfigurationModel.getConfigObject(models.ConfigurationModel.KEY_ITEMS_PER_PAGE);
13492 configObj[models.ConfigurationModel.ITEMS_PER_PAGE.TRANSFER_MARKET] = itemsOnMarket;
13493 configObj[models.ConfigurationModel.ITEMS_PER_PAGE.CLUB] = itemsOnClub;
13494 }
13495 }, {
13496 key: '_stop',
13497 value: function _stop() {
13498 this._running = false;
13499
13500 var configObj = gConfigurationModel.getConfigObject(models.ConfigurationModel.KEY_ITEMS_PER_PAGE);
13501 configObj[models.ConfigurationModel.ITEMS_PER_PAGE.TRANSFER_MARKET] = 15;
13502 configObj[models.ConfigurationModel.ITEMS_PER_PAGE.CLUB] = 45;
13503 }
13504 }]);
13505
13506 return ListSize;
13507}(_core.BaseScript);
13508
13509new ListSize(); // eslint-disable-line no-new
13510
13511/***/ }),
13512/* 371 */
13513/***/ (function(module, exports, __webpack_require__) {
13514
13515"use strict";
13516
13517
13518Object.defineProperty(exports, "__esModule", {
13519 value: true
13520});
13521exports.TransferTotalsSettings = undefined;
13522
13523var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
13524
13525var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
13526
13527var _core = __webpack_require__(18);
13528
13529__webpack_require__(372);
13530
13531function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13532
13533function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
13534
13535function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* globals
13536 window $ document */
13537
13538var TransferTotalsSettings = exports.TransferTotalsSettings = function (_SettingsEntry) {
13539 _inherits(TransferTotalsSettings, _SettingsEntry);
13540
13541 function TransferTotalsSettings() {
13542 _classCallCheck(this, TransferTotalsSettings);
13543
13544 var _this = _possibleConstructorReturn(this, (TransferTotalsSettings.__proto__ || Object.getPrototypeOf(TransferTotalsSettings)).call(this, 'transfer-totals', 'Transfer list totals', null));
13545
13546 _this.addSetting('Show transfer list totals', 'show-transfer-totals', true, 'checkbox');
13547 return _this;
13548 }
13549
13550 return TransferTotalsSettings;
13551}(_core.SettingsEntry);
13552
13553TransferTotalsSettings.id = 'transfer-totals';
13554
13555var TransferTotals = function (_BaseScript) {
13556 _inherits(TransferTotals, _BaseScript);
13557
13558 function TransferTotals() {
13559 _classCallCheck(this, TransferTotals);
13560
13561 var _this2 = _possibleConstructorReturn(this, (TransferTotals.__proto__ || Object.getPrototypeOf(TransferTotals)).call(this, TransferTotalsSettings.id));
13562
13563 var MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
13564 _this2._observer = new MutationObserver(_this2._mutationHandler.bind(_this2));
13565 return _this2;
13566 }
13567
13568 _createClass(TransferTotals, [{
13569 key: 'activate',
13570 value: function activate(state) {
13571 var _this3 = this;
13572
13573 _get(TransferTotals.prototype.__proto__ || Object.getPrototypeOf(TransferTotals.prototype), 'activate', this).call(this, state);
13574
13575 var obsConfig = {
13576 childList: true,
13577 characterData: true,
13578 attributes: false,
13579 subtree: true
13580 };
13581
13582 setTimeout(function () {
13583 _this3._observer.observe($(document)[0], obsConfig);
13584 }, 0);
13585 }
13586 }, {
13587 key: 'deactivate',
13588 value: function deactivate(state) {
13589 _get(TransferTotals.prototype.__proto__ || Object.getPrototypeOf(TransferTotals.prototype), 'deactivate', this).call(this, state);
13590 this._observer.disconnect();
13591 }
13592 }, {
13593 key: '_mutationHandler',
13594 value: function _mutationHandler(mutationRecords) {
13595 var settings = this.getSettings();
13596 mutationRecords.forEach(function (mutation) {
13597 if ($(mutation.target).find('.listFUTItem').length > 0 || $(mutation.target).find('.futbin').length > 0) {
13598 var controller = getAppMain().getRootViewController().getPresentedViewController().getCurrentViewController().getCurrentController();
13599 if (!controller || !controller._listController) {
13600 return;
13601 }
13602
13603 if (window.currentPage !== 'UTTransferListSplitViewController') {
13604 return;
13605 }
13606
13607 if (!settings.isActive || settings['show-transfer-totals'].toString() !== 'true') {
13608 return;
13609 }
13610
13611 var lists = $('.ut-transfer-list-view .itemList');
13612 var items = controller._listController._viewmodel._collection;
13613 var listRows = $('.ut-transfer-list-view .listFUTItem');
13614
13615 lists.each(function (index, list) {
13616 var totals = {
13617 futbin: 0,
13618 bid: 0,
13619 bin: 0
13620 };
13621 var listEl = $(list);
13622
13623 if (!listEl.find('.listFUTItem').length) {
13624 return;
13625 }
13626
13627 var firstIndex = $(list).find('.listFUTItem:first').index('.ut-transfer-list-view .listFUTItem');
13628 var lastIndex = $(list).find('.listFUTItem:last').index('.ut-transfer-list-view .listFUTItem');
13629
13630 totals.futbin = items.slice(firstIndex, lastIndex + 1).reduce(function (sum, item, i) {
13631 var futbin = parseInt(listRows.eq(i + firstIndex).find('.auctionValue.futbin .coins.value').text().replace(/[,.]/g, ''), 10) || 0;
13632 return sum + futbin;
13633 }, 0);
13634 totals.bid = items.slice(firstIndex, lastIndex + 1).reduce(function (sum, item) {
13635 var _item$_auction = item._auction,
13636 currentBid = _item$_auction.currentBid,
13637 startingBid = _item$_auction.startingBid;
13638
13639 var actualBid = currentBid > 0 ? currentBid : startingBid;
13640 return sum + actualBid;
13641 }, 0);
13642 totals.bin = items.slice(firstIndex, lastIndex + 1).reduce(function (sum, item) {
13643 return sum + item._auction.buyNowPrice;
13644 }, 0);
13645
13646 var totalsItem = listEl.prev('.transfer-totals');
13647
13648 if (!totalsItem.length) {
13649 $('<div class="transfer-totals">\n <div class="auction">\n <div class="auctionValue futbin">\n <span class="label">Futbin BIN</span>\n <span class="coins value total-futbin">0</span>\n </div>\n <div class="auctionStartPrice auctionValue"> </div>\n <div class="auctionValue">\n <span class="label">Bid Total</span>\n <span class="coins value total-bid">0</span>\n </div>\n <div class="auctionValue">\n <span class="label">BIN Total</span>\n <span class="coins value total-bin">0</span>\n </div>\n </div>\n </div>').insertBefore(listEl);
13650 }
13651
13652 if (totals.futbin > 0) {
13653 totalsItem.find('.total-futbin').text(totals.futbin);
13654 totalsItem.find('.futbin').show();
13655 } else {
13656 totalsItem.find('.futbin').hide();
13657 }
13658 totalsItem.find('.total-bin').text(totals.bin);
13659 totalsItem.find('.total-bid').text(totals.bid);
13660 });
13661 }
13662 });
13663 }
13664 }]);
13665
13666 return TransferTotals;
13667}(_core.BaseScript);
13668
13669new TransferTotals(); // eslint-disable-line no-new
13670
13671/***/ }),
13672/* 372 */
13673/***/ (function(module, exports, __webpack_require__) {
13674
13675// style-loader: Adds some css to the DOM by adding a <style> tag
13676
13677// load the styles
13678var content = __webpack_require__(373);
13679if(typeof content === 'string') content = [[module.i, content, '']];
13680// Prepare cssTransformation
13681var transform;
13682
13683var options = {"hmr":true}
13684options.transform = transform
13685// add the styles to the DOM
13686var update = __webpack_require__(48)(content, options);
13687if(content.locals) module.exports = content.locals;
13688// Hot Module Replacement
13689if(false) {
13690 // When the styles change, update the <style> tags
13691 if(!content.locals) {
13692 module.hot.accept("!!../../../node_modules/css-loader/index.js!../../../node_modules/sass-loader/lib/loader.js!./transfer-totals.scss", function() {
13693 var newContent = require("!!../../../node_modules/css-loader/index.js!../../../node_modules/sass-loader/lib/loader.js!./transfer-totals.scss");
13694 if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
13695 update(newContent);
13696 });
13697 }
13698 // When the module is disposed, remove the <style> tags
13699 module.hot.dispose(function() { update(); });
13700}
13701
13702/***/ }),
13703/* 373 */
13704/***/ (function(module, exports, __webpack_require__) {
13705
13706exports = module.exports = __webpack_require__(47)(undefined);
13707// imports
13708
13709
13710// module
13711exports.push([module.i, ".transfer-totals {\n background-color: #183f94;\n color: #fff; }\n .transfer-totals .auction {\n float: right;\n margin: 1em 3em 1em 0;\n text-align: right;\n width: 45%; }\n .transfer-totals .auction .auctionStartPrice {\n display: none; }\n @media (min-width: 1281px) {\n .transfer-totals .auction .auctionStartPrice {\n display: block; } }\n .transfer-totals .auction .auctionValue {\n float: left;\n padding-right: 1%;\n width: 24%; }\n .transfer-totals .auction .label {\n color: #b5b7bb;\n display: block;\n font-size: .75rem;\n text-transform: uppercase; }\n .transfer-totals .auction .value {\n font-size: 1.125em;\n font-weight: 400;\n font-family: UltimateTeamCondensed,sans-serif;\n display: block; }\n @media (max-width: 1130px) {\n .transfer-totals .auction {\n align-items: flex-start;\n box-sizing: border-box;\n display: flex;\n float: none;\n margin: 0;\n padding: 0.5em 1.2rem 0.5em 113px;\n text-align: left;\n width: 100%; } }\n .transfer-totals:after {\n content: '';\n display: table;\n width: 100%; }\n", ""]);
13712
13713// exports
13714
13715
13716/***/ }),
13717/* 374 */
13718/***/ (function(module, exports, __webpack_require__) {
13719
13720"use strict";
13721
13722
13723Object.defineProperty(exports, "__esModule", {
13724 value: true
13725});
13726exports.FutbinSettings = undefined;
13727
13728__webpack_require__(375);
13729
13730var _futbinPrices = __webpack_require__(377);
13731
13732var _futbinPlayerLinks = __webpack_require__(378);
13733
13734var _settingsEntry = __webpack_require__(94);
13735
13736exports.FutbinSettings = _settingsEntry.FutbinSettings;
13737
13738
13739new _futbinPrices.FutbinPrices(); // eslint-disable-line no-new
13740new _futbinPlayerLinks.FutbinPlayerLinks(); // eslint-disable-line no-new
13741
13742/***/ }),
13743/* 375 */
13744/***/ (function(module, exports, __webpack_require__) {
13745
13746// style-loader: Adds some css to the DOM by adding a <style> tag
13747
13748// load the styles
13749var content = __webpack_require__(376);
13750if(typeof content === 'string') content = [[module.i, content, '']];
13751// Prepare cssTransformation
13752var transform;
13753
13754var options = {"hmr":true}
13755options.transform = transform
13756// add the styles to the DOM
13757var update = __webpack_require__(48)(content, options);
13758if(content.locals) module.exports = content.locals;
13759// Hot Module Replacement
13760if(false) {
13761 // When the styles change, update the <style> tags
13762 if(!content.locals) {
13763 module.hot.accept("!!../../../node_modules/css-loader/index.js!../../../node_modules/sass-loader/lib/loader.js!./futbin-prices.scss", function() {
13764 var newContent = require("!!../../../node_modules/css-loader/index.js!../../../node_modules/sass-loader/lib/loader.js!./futbin-prices.scss");
13765 if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
13766 update(newContent);
13767 });
13768 }
13769 // When the module is disposed, remove the <style> tags
13770 module.hot.dispose(function() { update(); });
13771}
13772
13773/***/ }),
13774/* 376 */
13775/***/ (function(module, exports, __webpack_require__) {
13776
13777exports = module.exports = __webpack_require__(47)(undefined);
13778// imports
13779
13780
13781// module
13782exports.push([module.i, "#TradePile .player-stats-data-component, #Unassigned .player-stats-data-component {\n width: 12em; }\n\n#TradePile .listFUTItem .entityContainer, #Unassigned .listFUTItem .entityContainer {\n width: 45%; }\n\n#Unassigned .listFUTItem .auction .auctionValue, #Unassigned .listFUTItem .auction .auction-state {\n display: none; }\n\n#Unassigned .listFUTItem .auction .auctionValue.futbin {\n display: block;\n float: right; }\n\n.MyClubResults .listFUTItem .auction {\n display: block;\n position: absolute;\n right: 0; }\n\n.MyClubResults .listFUTItem .auction .auctionValue, .MyClubResults .listFUTItem .auction .auction-state {\n width: 24%;\n float: right;\n padding-right: 1%;\n display: none; }\n\n.MyClubResults .listFUTItem .auction .auctionValue.futbin {\n display: block; }\n\n.listFUTItem .auction .auction-state {\n width: 25%;\n float: right; }\n\n.listFUTItem .auction .auctionValue {\n width: 24%;\n float: left;\n padding-right: 1%; }\n\n.futbinupdate {\n font-size: 14px;\n clear: both;\n display: block; }\n\n.coins.value.futbin {\n -webkit-filter: hue-rotate(165deg);\n filter: hue-rotate(165deg); }\n\n.listFUTItem.has-auction-data.futbin-bargain .rowContent {\n background-color: #7ffe9445; }\n\n.listFUTItem.has-auction-data.selected.futbin-bargain .rowContent, .listFUTItem.has-auction-data.selected.futbin-bargain .rowContent.active {\n background-color: #7ffe94;\n color: #434853; }\n\n.listFUTItem.has-auction-data.futbin-bid .rowContent {\n background-color: #fafe7f45; }\n\n.listFUTItem.has-auction-data.selected.futbin-bid .rowContent, .listFUTItem.has-auction-data.selected.futbin-bid .rowContent.active {\n background-color: #fafe7f;\n color: #434853; }\n\n.player-picks-modal .time {\n display: block; }\n\n.ut-squad-slot-pedestal-view.futbin {\n min-width: 58px;\n flex: none;\n width: auto;\n bottom: -2.2em;\n white-space: nowrap; }\n .ut-squad-slot-pedestal-view.futbin .coins.value {\n text-align: center;\n margin: 0 8px; }\n", ""]);
13783
13784// exports
13785
13786
13787/***/ }),
13788/* 377 */
13789/***/ (function(module, exports, __webpack_require__) {
13790
13791"use strict";
13792
13793
13794Object.defineProperty(exports, "__esModule", {
13795 value: true
13796});
13797exports.FutbinPrices = undefined;
13798
13799var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
13800
13801var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
13802
13803var _fut = __webpack_require__(67);
13804
13805var _core = __webpack_require__(18);
13806
13807var _settingsEntry = __webpack_require__(94);
13808
13809function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
13810
13811function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13812
13813function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
13814
13815function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* globals
13816 $
13817 window
13818 */
13819
13820var FutbinPrices = exports.FutbinPrices = function (_BaseScript) {
13821 _inherits(FutbinPrices, _BaseScript);
13822
13823 function FutbinPrices() {
13824 _classCallCheck(this, FutbinPrices);
13825
13826 var _this = _possibleConstructorReturn(this, (FutbinPrices.__proto__ || Object.getPrototypeOf(FutbinPrices)).call(this, _settingsEntry.FutbinSettings.id));
13827
13828 _this._squadObserver = null;
13829 return _this;
13830 }
13831
13832 _createClass(FutbinPrices, [{
13833 key: 'activate',
13834 value: function activate(state) {
13835 _get(FutbinPrices.prototype.__proto__ || Object.getPrototypeOf(FutbinPrices.prototype), 'activate', this).call(this, state);
13836
13837 this._show(state.screenId);
13838 }
13839 }, {
13840 key: 'onScreenRequest',
13841 value: function onScreenRequest(screenId) {
13842 var _this2 = this;
13843
13844 _get(FutbinPrices.prototype.__proto__ || Object.getPrototypeOf(FutbinPrices.prototype), 'onScreenRequest', this).call(this, screenId);
13845
13846 var controllerName = getAppMain().getRootViewController().getPresentedViewController().getCurrentViewController().getCurrentController().className;
13847
13848 if (screenId === 'SBCSquadSplitViewController' || screenId === 'SquadSplitViewController' || screenId === 'UTSquadSplitViewController' || screenId === 'UTSquadsHubViewController' || screenId === 'UTSBCSquadSplitViewController') {
13849 if (this.getSettings()['show-sbc-squad'].toString() !== 'true') {
13850 return;
13851 }
13852
13853 this._squadObserver = getAppMain().getRootViewController().getPresentedViewController().getCurrentViewController().getCurrentController()._leftController._squad.onDataUpdated.observe(this, function () {
13854 $('.squadSlotPedestal.futbin').remove(); // forces update
13855 _this2._show('SBCSquadSplitViewController', true);
13856 });
13857 if ($('.ut-squad-summary-info--right.ut-squad-summary-info').find('.futbin').length === 0) {
13858 $('.ut-squad-summary-info--right.ut-squad-summary-info').append('\n <div class="futbin total">\n <span class="ut-squad-summary-label">Total BIN value</span>\n <div style="text-align: right">\n <span class="ut-squad-summary-value coins value">---</span>\n </div>\n </div>\n ');
13859 }
13860 } else if (this._squadObserver !== null && controllerName !== 'SBCSquadSplitViewController' && controllerName !== 'SquadSplitViewController' && controllerName !== 'UTSquadSplitViewController' && controllerName !== 'UTSquadsHubViewController' && controllerName !== 'UTSBCSquadSplitViewController') {
13861 this._squadObserver.unobserve(this);
13862 }
13863
13864 this._show(screenId);
13865 }
13866 }, {
13867 key: 'deactivate',
13868 value: function deactivate(state) {
13869 _get(FutbinPrices.prototype.__proto__ || Object.getPrototypeOf(FutbinPrices.prototype), 'deactivate', this).call(this, state);
13870
13871 $('.futbin').remove();
13872
13873 if (this._squadObserver !== null) {
13874 this._squadObserver.unobserve(this);
13875 }
13876
13877 if (this._intervalRunning) {
13878 clearInterval(this._intervalRunning);
13879 }
13880 }
13881 }, {
13882 key: '_show',
13883 value: function _show(screen) {
13884 var _this3 = this;
13885
13886 var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
13887
13888 var showFutbinPricePages = ['UTTransferListSplitViewController', // transfer list
13889 'UTWatchListSplitViewController', // transfer targets
13890 'UTUnassignedItemsSplitViewController', // pack buy
13891 'ClubSearchResultsSplitViewController', // club
13892 'UTMarketSearchResultsSplitViewController', // market search
13893 'UTPlayerPicksViewController', 'SBCSquadSplitViewController', 'SquadSplitViewController', 'UTSquadSplitViewController', 'UTSquadsHubViewController', 'UTSBCSquadSplitViewController'];
13894
13895 if (showFutbinPricePages.indexOf(screen) !== -1) {
13896 if (this._intervalRunning) {
13897 clearInterval(this._intervalRunning);
13898 }
13899 this._intervalRunning = setInterval(function () {
13900 var lastFutbinFetchFail = _core.Database.get('lastFutbinFetchFail', 0);
13901 if (lastFutbinFetchFail + 5 * 60000 > Date.now()) {
13902 console.log('Futbin fetching has been paused for 5 minutes because of failed requests earlier (retrying after ' + new Date(lastFutbinFetchFail + 5 * 60000).toLocaleTimeString() + '). Check on Github for known issues.'); // eslint-disable-line no-console
13903 if (_this3._intervalRunning) {
13904 clearInterval(_this3._intervalRunning);
13905 }
13906 return;
13907 }
13908 if (showFutbinPricePages.indexOf(window.currentPage) === -1 && !force) {
13909 if (_this3._intervalRunning) {
13910 clearInterval(_this3._intervalRunning);
13911 }
13912 return;
13913 }
13914 var controller = getAppMain().getRootViewController().getPresentedViewController().getCurrentViewController().getCurrentController();
13915
13916 var uiItems = null;
13917 if (screen === 'SBCSquadSplitViewController' || screen === 'SquadSplitViewController' || screen === 'UTSquadSplitViewController' || screen === 'UTSquadsHubViewController' || screen === 'UTSBCSquadSplitViewController') {
13918 uiItems = $(controller._view.__root).find('.squadSlot');
13919
13920 if (_this3.getSettings()['show-sbc-squad'].toString() !== 'true') {
13921 return;
13922 }
13923 } else {
13924 uiItems = $(getAppMain().getRootViewController().getPresentedViewController().getCurrentViewController()._view.__root).find('.listFUTItem');
13925
13926 var targetForButton = uiItems.find('.auction');
13927 if (targetForButton !== null) {
13928 targetForButton.show(); // make sure it's always shown (#69)
13929 }
13930 }
13931
13932 if ($(uiItems[0]).find('.futbin').length > 0) {
13933 return;
13934 }
13935
13936 var listController = null;
13937 if (screen === 'SBCSquadSplitViewController' || screen === 'SquadSplitViewController' || screen === 'UTSquadSplitViewController' || screen === 'UTSquadsHubViewController' || screen === 'UTSBCSquadSplitViewController') {
13938 // not needed
13939 } else if (screen === 'UTPlayerPicksViewController') {
13940 if (!controller.getPresentedViewController()) {
13941 return;
13942 }
13943 if ($(controller.getPresentedViewController()._view.__root).find('.futbin').length > 0) {
13944 // Futbin prices already shown
13945 return;
13946 }
13947 listController = controller.getPresentedViewController();
13948 } else if (screen === 'UTUnassignedItemsSplitViewController' || screen === 'UTWatchListSplitViewController') {
13949 if (!controller || !controller._leftController || !controller._leftController._view) {
13950 return;
13951 }
13952 listController = controller._leftController;
13953 } else {
13954 if (!controller || !controller._listController || !controller._listController._view) {
13955 return; // only run if data is available
13956 }
13957 listController = controller._listController;
13958 }
13959
13960 var listrows = null;
13961 if (screen === 'SBCSquadSplitViewController' || screen === 'SquadSplitViewController' || screen === 'UTSquadSplitViewController' || screen === 'UTSquadsHubViewController' || screen === 'UTSBCSquadSplitViewController') {
13962 listrows = controller._squad._players.slice(0, 11).map(function (p, index) {
13963 return {
13964 data: p._item,
13965 target: controller._view._lView._slotViews[index].__root
13966 };
13967 });
13968 } else if (listController._picks && screen === 'UTPlayerPicksViewController') {
13969 listrows = listController._picks.map(function (pick, index) {
13970 return {
13971 data: pick,
13972 target: listController._view._playerPickViews[index].__root
13973 };
13974 });
13975 } else if (listController._view._list && listController._view._list._listRows && listController._view._list._listRows.length > 0) {
13976 listrows = listController._view._list._listRows; // for transfer market and club search
13977 } else if (listController._view._sections && listController._view._sections.length > 0) {
13978 // for transfer list & trade pile
13979 listController._view._sections.forEach(function (row) {
13980 if (row._listRows.length > 0) {
13981 if (listrows == null) {
13982 listrows = row._listRows;
13983 } else {
13984 listrows = listrows.concat(row._listRows);
13985 }
13986 }
13987 });
13988 }
13989
13990 if (listrows === null) {
13991 return;
13992 }
13993
13994 var showBargains = _this3.getSettings()['show-bargains'].toString() === 'true';
13995
13996 var resourceIdMapping = [];
13997 listrows.forEach(function (row, index) {
13998 resourceIdMapping.push({
13999 target: uiItems[index] || row.target,
14000 playerId: row.data.resourceId,
14001 item: row.data
14002 });
14003 });
14004
14005 var fetchedPlayers = 0;
14006 var fetchAtOnce = 30;
14007 var futbinlist = [];
14008 while (resourceIdMapping.length > 0 && fetchedPlayers < resourceIdMapping.length && _core.Database.get('lastFutbinFetchFail', 0) + 5 * 60000 < Date.now()) {
14009 var futbinUrl = 'https://www.futbin.com/20/playerPrices?player=&rids=' + resourceIdMapping.slice(fetchedPlayers, fetchedPlayers + fetchAtOnce).map(function (i) {
14010 return i.playerId;
14011 }).filter(function (current, next) {
14012 return current !== next && current !== 0;
14013 }).join(',');
14014 fetchedPlayers += fetchAtOnce;
14015 /* eslint-disable no-loop-func */
14016 GM_xmlhttpRequest({
14017 method: 'GET',
14018 url: futbinUrl,
14019 onload: function onload(res) {
14020 if (res.status !== 200) {
14021 _core.Database.set('lastFutbinFetchFail', Date.now());
14022 GM_notification('Could not load Futbin prices (code ' + res.status + '), pausing fetches for 5 minutes. Disable Futbin integration if the problem persists.', 'Futbin fetch failed');
14023 return;
14024 }
14025
14026 var futbinData = JSON.parse(res.response);
14027 resourceIdMapping.forEach(function (item) {
14028 FutbinPrices._showFutbinPrice(screen, item, futbinData, showBargains);
14029 futbinlist.push(futbinData[item.playerId]);
14030 });
14031 var platform = _fut.utils.getPlatform();
14032 if (screen === 'SBCSquadSplitViewController' || screen === 'SquadSplitViewController' || screen === 'UTSquadSplitViewController' || screen === 'UTSquadsHubViewController' || screen === 'UTSBCSquadSplitViewController') {
14033 var futbinTotal = futbinlist.reduce(function (sum, item) {
14034 return sum + parseInt(item.prices[platform].LCPrice.toString().replace(/[,.]/g, ''), 10) || 0;
14035 }, 0);
14036 $('.ut-squad-summary-value.coins.value').html('' + futbinTotal.toLocaleString());
14037 }
14038 }
14039 });
14040 }
14041 }, 1000);
14042 } else {
14043 // no need to search prices on other pages
14044 // reset page
14045 if (this._intervalRunning) {
14046 clearInterval(this._intervalRunning);
14047 }
14048 this._intervalRunning = null;
14049 }
14050 }
14051 }], [{
14052 key: '_showFutbinPrice',
14053 value: function () {
14054 var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(screen, item, futbinData, showBargain) {
14055 var target, playerId, platform, targetForButton, futbinText, futbinMinBin;
14056 return regeneratorRuntime.wrap(function _callee$(_context) {
14057 while (1) {
14058 switch (_context.prev = _context.next) {
14059 case 0:
14060 if (futbinData) {
14061 _context.next = 2;
14062 break;
14063 }
14064
14065 return _context.abrupt('return');
14066
14067 case 2:
14068 target = $(item.target);
14069 playerId = item.playerId;
14070
14071 if (!(target.find('.player').length === 0)) {
14072 _context.next = 6;
14073 break;
14074 }
14075
14076 return _context.abrupt('return');
14077
14078 case 6:
14079 platform = _fut.utils.getPlatform();
14080
14081 if (futbinData[playerId]) {
14082 _context.next = 9;
14083 break;
14084 }
14085
14086 return _context.abrupt('return');
14087
14088 case 9:
14089 targetForButton = null;
14090
14091 if (!(target.find('.futbin').length > 0)) {
14092 _context.next = 12;
14093 break;
14094 }
14095
14096 return _context.abrupt('return');
14097
14098 case 12:
14099 futbinText = 'Futbin BIN';
14100 _context.t0 = screen;
14101 _context.next = _context.t0 === 'SBCSquadSplitViewController' ? 16 : _context.t0 === 'SquadSplitViewController' ? 16 : _context.t0 === 'UTSquadSplitViewController' ? 16 : _context.t0 === 'UTSquadsHubViewController' ? 16 : _context.t0 === 'UTSBCSquadSplitViewController' ? 16 : _context.t0 === 'UTPlayerPicksViewController' ? 18 : _context.t0 === 'UTTransferListSplitViewController' ? 20 : _context.t0 === 'UTWatchListSplitViewController' ? 20 : _context.t0 === 'UTUnassignedItemsSplitViewController' ? 20 : _context.t0 === 'ClubSearchResultsSplitViewController' ? 20 : _context.t0 === 'UTMarketSearchResultsSplitViewController' ? 20 : _context.t0 === 'SearchResults' ? 25 : 28;
14102 break;
14103
14104 case 16:
14105 target.prepend('\n <div class="ut-squad-slot-pedestal-view no-state futbin">\n <span class="coins value" title="Last update: ' + (futbinData[playerId].prices[platform].updated || 'never') + '">' + (futbinData[playerId].prices[platform].LCPrice || '---') + '</span>\n </div>');
14106 return _context.abrupt('break', 28);
14107
14108 case 18:
14109 target.append('\n <div class="auctionValue futbin">\n <span class="label">' + futbinText + '</span>\n <span class="coins value">' + (futbinData[playerId].prices[platform].LCPrice || '---') + '</span>\n <span class="time" style="color: #acacc4;">' + (futbinData[playerId].prices[platform].updated || 'never') + '</span>\n </div>');
14110 return _context.abrupt('break', 28);
14111
14112 case 20:
14113 $('.secondary.player-stats-data-component').css('float', 'left');
14114 targetForButton = target.find('.auction');
14115 targetForButton.show();
14116 targetForButton.prepend('\n <div class="auctionValue futbin">\n <span class="label">' + futbinText + '</span>\n <span class="coins value">' + (futbinData[playerId].prices[platform].LCPrice || '---') + '</span>\n <span class="time" style="color: #acacc4;">' + (futbinData[playerId].prices[platform].updated || 'never') + '</span>\n </div>');
14117 return _context.abrupt('break', 28);
14118
14119 case 25:
14120 targetForButton = target.find('.auctionValue').parent();
14121 targetForButton.prepend('\n <div class="auctionValue futbin">\n <span class="label">' + futbinText + '</span>\n <span class="coins value">' + (futbinData[playerId].prices[platform].LCPrice || '---') + '</span>\n <span class="time" style="color: #acacc4;">' + (futbinData[playerId].prices[platform].updated || 'never') + '</span>\n </div>');
14122 return _context.abrupt('break', 28);
14123
14124 case 28:
14125
14126 if (showBargain) {
14127 futbinMinBin = Number(futbinData[playerId].prices[platform].LCPrice.toString().replace(/[,.]/g, ''));
14128
14129 if (item.item._auction && item.item._auction.currentBid > item.item._auction.startingBid && item.item._auction.currentBid < futbinMinBin * 0.95) {
14130 target.addClass('futbin-bid');
14131 }
14132 if (item.item._auction && item.item._auction.buyNowPrice < futbinMinBin * 0.95) {
14133 target.addClass('futbin-bargain');
14134 }
14135 }
14136
14137 case 29:
14138 case 'end':
14139 return _context.stop();
14140 }
14141 }
14142 }, _callee, this);
14143 }));
14144
14145 function _showFutbinPrice(_x2, _x3, _x4, _x5) {
14146 return _ref.apply(this, arguments);
14147 }
14148
14149 return _showFutbinPrice;
14150 }()
14151 }]);
14152
14153 return FutbinPrices;
14154}(_core.BaseScript);
14155
14156/***/ }),
14157/* 378 */
14158/***/ (function(module, exports, __webpack_require__) {
14159
14160"use strict";
14161
14162
14163Object.defineProperty(exports, "__esModule", {
14164 value: true
14165});
14166exports.FutbinPlayerLinks = undefined;
14167
14168var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
14169
14170var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
14171
14172var _core = __webpack_require__(18);
14173
14174var _settingsEntry = __webpack_require__(94);
14175
14176function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
14177
14178function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14179
14180function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
14181
14182function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* globals
14183 window $ document
14184 */
14185
14186
14187var FutbinPlayerLinks = exports.FutbinPlayerLinks = function (_BaseScript) {
14188 _inherits(FutbinPlayerLinks, _BaseScript);
14189
14190 function FutbinPlayerLinks() {
14191 _classCallCheck(this, FutbinPlayerLinks);
14192
14193 var _this = _possibleConstructorReturn(this, (FutbinPlayerLinks.__proto__ || Object.getPrototypeOf(FutbinPlayerLinks)).call(this, _settingsEntry.FutbinSettings.id));
14194
14195 var MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
14196 _this._observer = new MutationObserver(_this._mutationHandler.bind(_this));
14197
14198 _this._playerPrices = [];
14199 return _this;
14200 }
14201
14202 _createClass(FutbinPlayerLinks, [{
14203 key: 'activate',
14204 value: function activate(state) {
14205 var _this2 = this;
14206
14207 _get(FutbinPlayerLinks.prototype.__proto__ || Object.getPrototypeOf(FutbinPlayerLinks.prototype), 'activate', this).call(this, state);
14208
14209 var obsConfig = {
14210 childList: true,
14211 characterData: true,
14212 attributes: false,
14213 subtree: true
14214 };
14215
14216 setTimeout(function () {
14217 _this2._observer.observe($(document)[0], obsConfig);
14218 }, 0);
14219 }
14220 }, {
14221 key: 'deactivate',
14222 value: function deactivate(state) {
14223 _get(FutbinPlayerLinks.prototype.__proto__ || Object.getPrototypeOf(FutbinPlayerLinks.prototype), 'deactivate', this).call(this, state);
14224
14225 $('#futbinPlayerLink').remove();
14226
14227 this._observer.disconnect();
14228 }
14229 }, {
14230 key: '_mutationHandler',
14231 value: function _mutationHandler(mutationRecords) {
14232 mutationRecords.forEach(function (mutation) {
14233 var _this3 = this;
14234
14235 if ($(mutation.target).hasClass('DetailView') && $(mutation.target).find('.DetailPanel') && mutation.addedNodes.length > 0) {
14236 if (this.getSettings()['show-link-to-player'].toString() !== 'true') {
14237 return;
14238 }
14239
14240 var selectedItem = this._getSelectedItem();
14241 if (selectedItem == null || selectedItem.resourceId === 0) {
14242 return;
14243 }
14244
14245 var futbinPlayerLink = $(mutation.target).find('#futbinPlayerLink');
14246 futbinPlayerLink.remove();
14247
14248 $(mutation.target).find('.DetailPanel > .ut-button-group').prepend('<button id="futbinPlayerLink" data-resource-id="' + selectedItem.resourceId + '" class="list"><span class="btn-text">View on Futbin</span><span class="btn-subtext"></span></button>');
14249
14250 $('#futbinPlayerLink').bind('click', _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
14251 var btn, futbinLink;
14252 return regeneratorRuntime.wrap(function _callee$(_context) {
14253 while (1) {
14254 switch (_context.prev = _context.next) {
14255 case 0:
14256 btn = $('#futbinPlayerLink');
14257
14258 btn.find('.btn-text').html('Searching on Futbin ...');
14259 _context.next = 4;
14260 return FutbinPlayerLinks._getFutbinPlayerUrl(selectedItem);
14261
14262 case 4:
14263 futbinLink = _context.sent;
14264
14265
14266 selectedItem = _this3._getSelectedItem();
14267 btn = $('#futbinPlayerLink');
14268 if (btn.data('resource-id') === selectedItem.resourceId) {
14269 if (futbinLink) {
14270 btn.find('.btn-text').html('View on Futbin');
14271 _core.analytics.trackEvent('Futbin', 'Show player on Futbin', btn.data('resource-id'));
14272 window.open(futbinLink);
14273 } else {
14274 btn.find('.btn-text').html('No exact Futbin player found');
14275 }
14276 }
14277
14278 case 8:
14279 case 'end':
14280 return _context.stop();
14281 }
14282 }
14283 }, _callee, _this3);
14284 })));
14285 }
14286 }, this);
14287 }
14288 }, {
14289 key: '_getSelectedItem',
14290
14291
14292 /* eslint-disable class-methods-use-this */
14293 value: function _getSelectedItem() {
14294 var listController = getAppMain().getRootViewController().getPresentedViewController().getCurrentViewController().getCurrentController()._listController;
14295 if (listController) {
14296 return listController.getIterator().current();
14297 }
14298
14299 var currentController = getAppMain().getRootViewController().getPresentedViewController().getCurrentViewController().getCurrentController()._rightController._currentController;
14300 if (currentController && currentController._viewmodel) {
14301 var current = currentController._viewmodel.current();
14302
14303 return current._item ? current._item : current;
14304 }
14305
14306 return null;
14307 }
14308 /* eslint-enable class-methods-use-this */
14309
14310 }], [{
14311 key: '_getFutbinPlayerUrl',
14312 value: function _getFutbinPlayerUrl(item) {
14313 return new Promise(function (resolve) {
14314 if (!item._staticData) {
14315 return resolve(null);
14316 }
14317
14318 var futbinPlayerIds = _core.Database.getJson('futbin-player-ids', []);
14319 var futbinPlayer = futbinPlayerIds.find(function (i) {
14320 return i.id === item.resourceId;
14321 });
14322 if (futbinPlayer != null) {
14323 return resolve('https://www.futbin.com/20/player/' + futbinPlayer.futbinId);
14324 }
14325
14326 var name = (item._staticData.firstName + ' ' + item._staticData.lastName).replace(' ', '+');
14327 var url = 'https://www.futbin.com/search?year=20&term=' + name;
14328 return GM_xmlhttpRequest({
14329 method: 'GET',
14330 url: url,
14331 onload: function onload(res) {
14332 if (res.status !== 200) {
14333 return resolve(null);
14334 }
14335 var players = JSON.parse(res.response);
14336 var exactPlayers = players.filter(function (p) {
14337 return parseInt(p.rating, 10) === parseInt(item.rating, 10);
14338 });
14339 if (exactPlayers.length > 1) {
14340 exactPlayers = exactPlayers.filter(function (p) {
14341 return p.rare_type === item.rareflag.toString() && p.club_image.endsWith('/' + item.teamId + '.png');
14342 });
14343 }
14344 if (exactPlayers.length === 1) {
14345 futbinPlayerIds = _core.Database.getJson('futbin-player-ids', []);
14346 if (futbinPlayerIds.find(function (i) {
14347 return i.id === item.resourceId;
14348 }) == null) {
14349 futbinPlayerIds.push({
14350 id: item.resourceId,
14351 futbinId: exactPlayers[0].id
14352 });
14353 }
14354 _core.Database.setJson('futbin-player-ids', futbinPlayerIds);
14355 return resolve('https://www.futbin.com/20/player/' + exactPlayers[0].id);
14356 } else if (exactPlayers.length > 1) {
14357 // Take first one, several players are returned more than once
14358 return resolve('https://www.futbin.com/20/player/' + exactPlayers[0].id);
14359 }
14360
14361 return resolve(null); // TODO: what should we do if we find more than one?
14362 }
14363 });
14364 });
14365 }
14366 }]);
14367
14368 return FutbinPlayerLinks;
14369}(_core.BaseScript);
14370
14371new FutbinPlayerLinks(); // eslint-disable-line no-new
14372
14373/***/ }),
14374/* 379 */
14375/***/ (function(module, exports, __webpack_require__) {
14376
14377"use strict";
14378
14379
14380Object.defineProperty(exports, "__esModule", {
14381 value: true
14382});
14383exports.InstantBinConfirmSettings = undefined;
14384
14385var _settingsEntry = __webpack_require__(136);
14386
14387var _instantBinConfirm = __webpack_require__(380);
14388
14389exports.InstantBinConfirmSettings = _settingsEntry.InstantBinConfirmSettings;
14390
14391
14392new _instantBinConfirm.InstantBinConfirm(); // eslint-disable-line no-new
14393
14394/***/ }),
14395/* 380 */
14396/***/ (function(module, exports, __webpack_require__) {
14397
14398"use strict";
14399
14400
14401Object.defineProperty(exports, "__esModule", {
14402 value: true
14403});
14404exports.InstantBinConfirm = undefined;
14405
14406var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
14407
14408var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
14409
14410var _core = __webpack_require__(18);
14411
14412var _settingsEntry = __webpack_require__(136);
14413
14414function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14415
14416function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
14417
14418function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* global
14419 gPopupClickShield
14420 enums
14421 controllers
14422 utils
14423 */
14424
14425var InstantBinConfirm = exports.InstantBinConfirm = function (_BaseScript) {
14426 _inherits(InstantBinConfirm, _BaseScript);
14427
14428 function InstantBinConfirm() {
14429 _classCallCheck(this, InstantBinConfirm);
14430
14431 var _this = _possibleConstructorReturn(this, (InstantBinConfirm.__proto__ || Object.getPrototypeOf(InstantBinConfirm)).call(this, _settingsEntry.InstantBinConfirmSettings.id));
14432
14433 _this.unmodifiedConfirmation = utils.PopupManager.ShowConfirmation;
14434 return _this;
14435 }
14436
14437 _createClass(InstantBinConfirm, [{
14438 key: 'activate',
14439 value: function activate(state) {
14440 _get(InstantBinConfirm.prototype.__proto__ || Object.getPrototypeOf(InstantBinConfirm.prototype), 'activate', this).call(this, state);
14441 }
14442 }, {
14443 key: 'onScreenRequest',
14444 value: function onScreenRequest(screenId) {
14445 var _this2 = this;
14446
14447 _get(InstantBinConfirm.prototype.__proto__ || Object.getPrototypeOf(InstantBinConfirm.prototype), 'onScreenRequest', this).call(this, screenId);
14448 var settings = this.getSettings();
14449
14450 utils.PopupManager.ShowConfirmation = function (dialog, amount, proceed, s) {
14451 var cancel = s;
14452 if (!utils.JS.isFunction(s)) {
14453 cancel = function cancel() {};
14454 }
14455
14456 if (settings.isActive && dialog.title === utils.PopupManager.Confirmations.CONFIRM_BUY_NOW.title) {
14457 proceed();
14458 return;
14459 }
14460 var n = new controllers.views.popups.Dialog(dialog.message, dialog.title, enums.UIDialogTypes.MESSAGE, amount, dialog.buttonLabels);
14461 n.init();
14462 gPopupClickShield.setActivePopup(n);
14463 n.onExit.observe(_this2, function (e, t) {
14464 if (t !== enums.UIDialogOptions.CANCEL && t !== enums.UIDialogOptions.NO) {
14465 if (proceed) {
14466 proceed();
14467 } else if (cancel) {
14468 cancel();
14469 }
14470 }
14471 });
14472 };
14473 }
14474 }, {
14475 key: 'deactivate',
14476 value: function deactivate(state) {
14477 _get(InstantBinConfirm.prototype.__proto__ || Object.getPrototypeOf(InstantBinConfirm.prototype), 'deactivate', this).call(this, state);
14478 utils.PopupManager.ShowConfirmation = this.unmodifiedConfirmation;
14479 }
14480 }]);
14481
14482 return InstantBinConfirm;
14483}(_core.BaseScript);
14484
14485/***/ })
14486/******/ ]);