diff --git a/.eslintrc b/.eslintrc index d762ef5..fc8b64f 100644 --- a/.eslintrc +++ b/.eslintrc @@ -7,7 +7,7 @@ "env": { "node": true, - "mocha": true, + "jest": true, "es6": true }, "rules": diff --git a/.npmignore b/.npmignore index e34de32..c76fac4 100644 --- a/.npmignore +++ b/.npmignore @@ -3,6 +3,7 @@ .gitignore .eslintrc .babelrc +yarn.lock build coverage examples diff --git a/CHANGELOG.md b/CHANGELOG.md index e320534..30690a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# Changelog + +## v2.1.0 (2018-05-31) + +`EntityManager.registerSystem` now properly registers a system using only the `components` array passed in + ## v2.0.4 (2017-04-05) Updated examples to be usable online diff --git a/build/bundle.js b/build/bundle.js index c2c4a47..87153d7 100644 --- a/build/bundle.js +++ b/build/bundle.js @@ -19,7 +19,7 @@ rollup.rollup({ format: 'umd', moduleId: 'GGEntities', moduleName: 'GGEntities' -})).then((c) => { +})).then(() => { const entitiesPath = path.join(__dirname, '../dist/gg-entities.js') const polyfill = fs.readFileSync(path.join(__dirname, '../node_modules/babel-polyfill/dist/polyfill.js'), 'utf8') @@ -27,9 +27,7 @@ rollup.rollup({ fs.writeFile(entitiesPath, `${polyfill}\n\n${entities}`, error => { if (error) { - console.error(error) - } + console.error(error) // eslint-disable-line no-console + } }) -}).catch(error => { - console.error(error) -}) \ No newline at end of file +}).catch(console.error) // eslint-disable-line no-console \ No newline at end of file diff --git a/dist/gg-entities.js b/dist/gg-entities.js index 55e2f9c..c324ac0 100644 --- a/dist/gg-entities.js +++ b/dist/gg-entities.js @@ -2,9 +2,9 @@ (function (global){ "use strict"; -_dereq_(295); +_dereq_(327); -_dereq_(296); +_dereq_(328); _dereq_(2); @@ -29,115 +29,126 @@ define(String.prototype, "padRight", "".padEnd); [][key] && define(Array, key, Function.call.bind([][key])); }); }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"2":2,"295":295,"296":296}],2:[function(_dereq_,module,exports){ -_dereq_(119); +},{"2":2,"327":327,"328":328}],2:[function(_dereq_,module,exports){ +_dereq_(130); module.exports = _dereq_(23).RegExp.escape; -},{"119":119,"23":23}],3:[function(_dereq_,module,exports){ -module.exports = function(it){ - if(typeof it != 'function')throw TypeError(it + ' is not a function!'); + +},{"130":130,"23":23}],3:[function(_dereq_,module,exports){ +module.exports = function (it) { + if (typeof it != 'function') throw TypeError(it + ' is not a function!'); return it; }; + },{}],4:[function(_dereq_,module,exports){ var cof = _dereq_(18); -module.exports = function(it, msg){ - if(typeof it != 'number' && cof(it) != 'Number')throw TypeError(msg); +module.exports = function (it, msg) { + if (typeof it != 'number' && cof(it) != 'Number') throw TypeError(msg); return +it; }; + },{"18":18}],5:[function(_dereq_,module,exports){ // 22.1.3.31 Array.prototype[@@unscopables] -var UNSCOPABLES = _dereq_(117)('unscopables') - , ArrayProto = Array.prototype; -if(ArrayProto[UNSCOPABLES] == undefined)_dereq_(40)(ArrayProto, UNSCOPABLES, {}); -module.exports = function(key){ +var UNSCOPABLES = _dereq_(128)('unscopables'); +var ArrayProto = Array.prototype; +if (ArrayProto[UNSCOPABLES] == undefined) _dereq_(42)(ArrayProto, UNSCOPABLES, {}); +module.exports = function (key) { ArrayProto[UNSCOPABLES][key] = true; }; -},{"117":117,"40":40}],6:[function(_dereq_,module,exports){ -module.exports = function(it, Constructor, name, forbiddenField){ - if(!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)){ + +},{"128":128,"42":42}],6:[function(_dereq_,module,exports){ +module.exports = function (it, Constructor, name, forbiddenField) { + if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { throw TypeError(name + ': incorrect invocation!'); } return it; }; + },{}],7:[function(_dereq_,module,exports){ -var isObject = _dereq_(49); -module.exports = function(it){ - if(!isObject(it))throw TypeError(it + ' is not an object!'); +var isObject = _dereq_(51); +module.exports = function (it) { + if (!isObject(it)) throw TypeError(it + ' is not an object!'); return it; }; -},{"49":49}],8:[function(_dereq_,module,exports){ + +},{"51":51}],8:[function(_dereq_,module,exports){ // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) 'use strict'; -var toObject = _dereq_(109) - , toIndex = _dereq_(105) - , toLength = _dereq_(108); - -module.exports = [].copyWithin || function copyWithin(target/*= 0*/, start/*= 0, end = @length*/){ - var O = toObject(this) - , len = toLength(O.length) - , to = toIndex(target, len) - , from = toIndex(start, len) - , end = arguments.length > 2 ? arguments[2] : undefined - , count = Math.min((end === undefined ? len : toIndex(end, len)) - from, len - to) - , inc = 1; - if(from < to && to < from + count){ - inc = -1; +var toObject = _dereq_(119); +var toAbsoluteIndex = _dereq_(114); +var toLength = _dereq_(118); + +module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) { + var O = toObject(this); + var len = toLength(O.length); + var to = toAbsoluteIndex(target, len); + var from = toAbsoluteIndex(start, len); + var end = arguments.length > 2 ? arguments[2] : undefined; + var count = Math.min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to); + var inc = 1; + if (from < to && to < from + count) { + inc = -1; from += count - 1; - to += count - 1; + to += count - 1; } - while(count-- > 0){ - if(from in O)O[to] = O[from]; + while (count-- > 0) { + if (from in O) O[to] = O[from]; else delete O[to]; - to += inc; + to += inc; from += inc; } return O; }; -},{"105":105,"108":108,"109":109}],9:[function(_dereq_,module,exports){ + +},{"114":114,"118":118,"119":119}],9:[function(_dereq_,module,exports){ // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) 'use strict'; -var toObject = _dereq_(109) - , toIndex = _dereq_(105) - , toLength = _dereq_(108); -module.exports = function fill(value /*, start = 0, end = @length */){ - var O = toObject(this) - , length = toLength(O.length) - , aLen = arguments.length - , index = toIndex(aLen > 1 ? arguments[1] : undefined, length) - , end = aLen > 2 ? arguments[2] : undefined - , endPos = end === undefined ? length : toIndex(end, length); - while(endPos > index)O[index++] = value; +var toObject = _dereq_(119); +var toAbsoluteIndex = _dereq_(114); +var toLength = _dereq_(118); +module.exports = function fill(value /* , start = 0, end = @length */) { + var O = toObject(this); + var length = toLength(O.length); + var aLen = arguments.length; + var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length); + var end = aLen > 2 ? arguments[2] : undefined; + var endPos = end === undefined ? length : toAbsoluteIndex(end, length); + while (endPos > index) O[index++] = value; return O; }; -},{"105":105,"108":108,"109":109}],10:[function(_dereq_,module,exports){ -var forOf = _dereq_(37); -module.exports = function(iter, ITERATOR){ +},{"114":114,"118":118,"119":119}],10:[function(_dereq_,module,exports){ +var forOf = _dereq_(39); + +module.exports = function (iter, ITERATOR) { var result = []; forOf(iter, false, result.push, result, ITERATOR); return result; }; -},{"37":37}],11:[function(_dereq_,module,exports){ +},{"39":39}],11:[function(_dereq_,module,exports){ // false -> Array#indexOf // true -> Array#includes -var toIObject = _dereq_(107) - , toLength = _dereq_(108) - , toIndex = _dereq_(105); -module.exports = function(IS_INCLUDES){ - return function($this, el, fromIndex){ - var O = toIObject($this) - , length = toLength(O.length) - , index = toIndex(fromIndex, length) - , value; +var toIObject = _dereq_(117); +var toLength = _dereq_(118); +var toAbsoluteIndex = _dereq_(114); +module.exports = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIObject($this); + var length = toLength(O.length); + var index = toAbsoluteIndex(fromIndex, length); + var value; // Array#includes uses SameValueZero equality algorithm - if(IS_INCLUDES && el != el)while(length > index){ + // eslint-disable-next-line no-self-compare + if (IS_INCLUDES && el != el) while (length > index) { value = O[index++]; - if(value != value)return true; - // Array#toIndex ignores holes, Array#includes - not - } else for(;length > index; index++)if(IS_INCLUDES || index in O){ - if(O[index] === el)return IS_INCLUDES || index || 0; + // eslint-disable-next-line no-self-compare + if (value != value) return true; + // Array#indexOf ignores holes, Array#includes - not + } else for (;length > index; index++) if (IS_INCLUDES || index in O) { + if (O[index] === el) return IS_INCLUDES || index || 0; } return !IS_INCLUDES && -1; }; }; -},{"105":105,"107":107,"108":108}],12:[function(_dereq_,module,exports){ + +},{"114":114,"117":117,"118":118}],12:[function(_dereq_,module,exports){ // 0 -> Array#forEach // 1 -> Array#map // 2 -> Array#filter @@ -145,136 +156,142 @@ module.exports = function(IS_INCLUDES){ // 4 -> Array#every // 5 -> Array#find // 6 -> Array#findIndex -var ctx = _dereq_(25) - , IObject = _dereq_(45) - , toObject = _dereq_(109) - , toLength = _dereq_(108) - , asc = _dereq_(15); -module.exports = function(TYPE, $create){ - var IS_MAP = TYPE == 1 - , IS_FILTER = TYPE == 2 - , IS_SOME = TYPE == 3 - , IS_EVERY = TYPE == 4 - , IS_FIND_INDEX = TYPE == 6 - , NO_HOLES = TYPE == 5 || IS_FIND_INDEX - , create = $create || asc; - return function($this, callbackfn, that){ - var O = toObject($this) - , self = IObject(O) - , f = ctx(callbackfn, that, 3) - , length = toLength(self.length) - , index = 0 - , result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined - , val, res; - for(;length > index; index++)if(NO_HOLES || index in self){ +var ctx = _dereq_(25); +var IObject = _dereq_(47); +var toObject = _dereq_(119); +var toLength = _dereq_(118); +var asc = _dereq_(15); +module.exports = function (TYPE, $create) { + var IS_MAP = TYPE == 1; + var IS_FILTER = TYPE == 2; + var IS_SOME = TYPE == 3; + var IS_EVERY = TYPE == 4; + var IS_FIND_INDEX = TYPE == 6; + var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; + var create = $create || asc; + return function ($this, callbackfn, that) { + var O = toObject($this); + var self = IObject(O); + var f = ctx(callbackfn, that, 3); + var length = toLength(self.length); + var index = 0; + var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; + var val, res; + for (;length > index; index++) if (NO_HOLES || index in self) { val = self[index]; res = f(val, index, O); - if(TYPE){ - if(IS_MAP)result[index] = res; // map - else if(res)switch(TYPE){ - case 3: return true; // some - case 5: return val; // find - case 6: return index; // findIndex - case 2: result.push(val); // filter - } else if(IS_EVERY)return false; // every + if (TYPE) { + if (IS_MAP) result[index] = res; // map + else if (res) switch (TYPE) { + case 3: return true; // some + case 5: return val; // find + case 6: return index; // findIndex + case 2: result.push(val); // filter + } else if (IS_EVERY) return false; // every } } return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; }; }; -},{"108":108,"109":109,"15":15,"25":25,"45":45}],13:[function(_dereq_,module,exports){ -var aFunction = _dereq_(3) - , toObject = _dereq_(109) - , IObject = _dereq_(45) - , toLength = _dereq_(108); -module.exports = function(that, callbackfn, aLen, memo, isRight){ +},{"118":118,"119":119,"15":15,"25":25,"47":47}],13:[function(_dereq_,module,exports){ +var aFunction = _dereq_(3); +var toObject = _dereq_(119); +var IObject = _dereq_(47); +var toLength = _dereq_(118); + +module.exports = function (that, callbackfn, aLen, memo, isRight) { aFunction(callbackfn); - var O = toObject(that) - , self = IObject(O) - , length = toLength(O.length) - , index = isRight ? length - 1 : 0 - , i = isRight ? -1 : 1; - if(aLen < 2)for(;;){ - if(index in self){ + var O = toObject(that); + var self = IObject(O); + var length = toLength(O.length); + var index = isRight ? length - 1 : 0; + var i = isRight ? -1 : 1; + if (aLen < 2) for (;;) { + if (index in self) { memo = self[index]; index += i; break; } index += i; - if(isRight ? index < 0 : length <= index){ + if (isRight ? index < 0 : length <= index) { throw TypeError('Reduce of empty array with no initial value'); } } - for(;isRight ? index >= 0 : length > index; index += i)if(index in self){ + for (;isRight ? index >= 0 : length > index; index += i) if (index in self) { memo = callbackfn(memo, self[index], index, O); } return memo; }; -},{"108":108,"109":109,"3":3,"45":45}],14:[function(_dereq_,module,exports){ -var isObject = _dereq_(49) - , isArray = _dereq_(47) - , SPECIES = _dereq_(117)('species'); -module.exports = function(original){ +},{"118":118,"119":119,"3":3,"47":47}],14:[function(_dereq_,module,exports){ +var isObject = _dereq_(51); +var isArray = _dereq_(49); +var SPECIES = _dereq_(128)('species'); + +module.exports = function (original) { var C; - if(isArray(original)){ + if (isArray(original)) { C = original.constructor; // cross-realm fallback - if(typeof C == 'function' && (C === Array || isArray(C.prototype)))C = undefined; - if(isObject(C)){ + if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; + if (isObject(C)) { C = C[SPECIES]; - if(C === null)C = undefined; + if (C === null) C = undefined; } } return C === undefined ? Array : C; }; -},{"117":117,"47":47,"49":49}],15:[function(_dereq_,module,exports){ + +},{"128":128,"49":49,"51":51}],15:[function(_dereq_,module,exports){ // 9.4.2.3 ArraySpeciesCreate(originalArray, length) var speciesConstructor = _dereq_(14); -module.exports = function(original, length){ +module.exports = function (original, length) { return new (speciesConstructor(original))(length); }; + },{"14":14}],16:[function(_dereq_,module,exports){ 'use strict'; -var aFunction = _dereq_(3) - , isObject = _dereq_(49) - , invoke = _dereq_(44) - , arraySlice = [].slice - , factories = {}; - -var construct = function(F, len, args){ - if(!(len in factories)){ - for(var n = [], i = 0; i < len; i++)n[i] = 'a[' + i + ']'; +var aFunction = _dereq_(3); +var isObject = _dereq_(51); +var invoke = _dereq_(46); +var arraySlice = [].slice; +var factories = {}; + +var construct = function (F, len, args) { + if (!(len in factories)) { + for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']'; + // eslint-disable-next-line no-new-func factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')'); } return factories[len](F, args); }; -module.exports = Function.bind || function bind(that /*, args... */){ - var fn = aFunction(this) - , partArgs = arraySlice.call(arguments, 1); - var bound = function(/* args... */){ +module.exports = Function.bind || function bind(that /* , ...args */) { + var fn = aFunction(this); + var partArgs = arraySlice.call(arguments, 1); + var bound = function (/* args... */) { var args = partArgs.concat(arraySlice.call(arguments)); return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that); }; - if(isObject(fn.prototype))bound.prototype = fn.prototype; + if (isObject(fn.prototype)) bound.prototype = fn.prototype; return bound; }; -},{"3":3,"44":44,"49":49}],17:[function(_dereq_,module,exports){ + +},{"3":3,"46":46,"51":51}],17:[function(_dereq_,module,exports){ // getting tag from 19.1.3.6 Object.prototype.toString() -var cof = _dereq_(18) - , TAG = _dereq_(117)('toStringTag') - // ES3 wrong here - , ARG = cof(function(){ return arguments; }()) == 'Arguments'; +var cof = _dereq_(18); +var TAG = _dereq_(128)('toStringTag'); +// ES3 wrong here +var ARG = cof(function () { return arguments; }()) == 'Arguments'; // fallback for IE11 Script Access Denied error -var tryGet = function(it, key){ +var tryGet = function (it, key) { try { return it[key]; - } catch(e){ /* empty */ } + } catch (e) { /* empty */ } }; -module.exports = function(it){ +module.exports = function (it) { var O, T, B; return it === undefined ? 'Undefined' : it === null ? 'Null' // @@toStringTag case @@ -284,55 +301,59 @@ module.exports = function(it){ // ES3 arguments fallback : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; }; -},{"117":117,"18":18}],18:[function(_dereq_,module,exports){ + +},{"128":128,"18":18}],18:[function(_dereq_,module,exports){ var toString = {}.toString; -module.exports = function(it){ +module.exports = function (it) { return toString.call(it).slice(8, -1); }; + },{}],19:[function(_dereq_,module,exports){ 'use strict'; -var dP = _dereq_(67).f - , create = _dereq_(66) - , redefineAll = _dereq_(86) - , ctx = _dereq_(25) - , anInstance = _dereq_(6) - , defined = _dereq_(27) - , forOf = _dereq_(37) - , $iterDefine = _dereq_(53) - , step = _dereq_(55) - , setSpecies = _dereq_(91) - , DESCRIPTORS = _dereq_(28) - , fastKey = _dereq_(62).fastKey - , SIZE = DESCRIPTORS ? '_s' : 'size'; - -var getEntry = function(that, key){ +var dP = _dereq_(72).f; +var create = _dereq_(71); +var redefineAll = _dereq_(93); +var ctx = _dereq_(25); +var anInstance = _dereq_(6); +var forOf = _dereq_(39); +var $iterDefine = _dereq_(55); +var step = _dereq_(57); +var setSpecies = _dereq_(100); +var DESCRIPTORS = _dereq_(29); +var fastKey = _dereq_(66).fastKey; +var validate = _dereq_(125); +var SIZE = DESCRIPTORS ? '_s' : 'size'; + +var getEntry = function (that, key) { // fast case - var index = fastKey(key), entry; - if(index !== 'F')return that._i[index]; + var index = fastKey(key); + var entry; + if (index !== 'F') return that._i[index]; // frozen object case - for(entry = that._f; entry; entry = entry.n){ - if(entry.k == key)return entry; + for (entry = that._f; entry; entry = entry.n) { + if (entry.k == key) return entry; } }; module.exports = { - getConstructor: function(wrapper, NAME, IS_MAP, ADDER){ - var C = wrapper(function(that, iterable){ + getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { + var C = wrapper(function (that, iterable) { anInstance(that, C, NAME, '_i'); + that._t = NAME; // collection type that._i = create(null); // index that._f = undefined; // first entry that._l = undefined; // last entry that[SIZE] = 0; // size - if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that); + if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); }); redefineAll(C.prototype, { // 23.1.3.1 Map.prototype.clear() // 23.2.3.2 Set.prototype.clear() - clear: function clear(){ - for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){ + clear: function clear() { + for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) { entry.r = true; - if(entry.p)entry.p = entry.p.n = undefined; + if (entry.p) entry.p = entry.p.n = undefined; delete data[entry.i]; } that._f = that._l = undefined; @@ -340,51 +361,51 @@ module.exports = { }, // 23.1.3.3 Map.prototype.delete(key) // 23.2.3.4 Set.prototype.delete(value) - 'delete': function(key){ - var that = this - , entry = getEntry(that, key); - if(entry){ - var next = entry.n - , prev = entry.p; + 'delete': function (key) { + var that = validate(this, NAME); + var entry = getEntry(that, key); + if (entry) { + var next = entry.n; + var prev = entry.p; delete that._i[entry.i]; entry.r = true; - if(prev)prev.n = next; - if(next)next.p = prev; - if(that._f == entry)that._f = next; - if(that._l == entry)that._l = prev; + if (prev) prev.n = next; + if (next) next.p = prev; + if (that._f == entry) that._f = next; + if (that._l == entry) that._l = prev; that[SIZE]--; } return !!entry; }, // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined) // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined) - forEach: function forEach(callbackfn /*, that = undefined */){ - anInstance(this, C, 'forEach'); - var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3) - , entry; - while(entry = entry ? entry.n : this._f){ + forEach: function forEach(callbackfn /* , that = undefined */) { + validate(this, NAME); + var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3); + var entry; + while (entry = entry ? entry.n : this._f) { f(entry.v, entry.k, this); // revert to the last existing entry - while(entry && entry.r)entry = entry.p; + while (entry && entry.r) entry = entry.p; } }, // 23.1.3.7 Map.prototype.has(key) // 23.2.3.7 Set.prototype.has(value) - has: function has(key){ - return !!getEntry(this, key); + has: function has(key) { + return !!getEntry(validate(this, NAME), key); } }); - if(DESCRIPTORS)dP(C.prototype, 'size', { - get: function(){ - return defined(this[SIZE]); + if (DESCRIPTORS) dP(C.prototype, 'size', { + get: function () { + return validate(this, NAME)[SIZE]; } }); return C; }, - def: function(that, key, value){ - var entry = getEntry(that, key) - , prev, index; + def: function (that, key, value) { + var entry = getEntry(that, key); + var prev, index; // change existing entry - if(entry){ + if (entry) { entry.v = value; // create new entry } else { @@ -396,212 +417,217 @@ module.exports = { n: undefined, // <- next entry r: false // <- removed }; - if(!that._f)that._f = entry; - if(prev)prev.n = entry; + if (!that._f) that._f = entry; + if (prev) prev.n = entry; that[SIZE]++; // add to index - if(index !== 'F')that._i[index] = entry; + if (index !== 'F') that._i[index] = entry; } return that; }, getEntry: getEntry, - setStrong: function(C, NAME, IS_MAP){ + setStrong: function (C, NAME, IS_MAP) { // add .keys, .values, .entries, [@@iterator] // 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 - $iterDefine(C, NAME, function(iterated, kind){ - this._t = iterated; // target - this._k = kind; // kind - this._l = undefined; // previous - }, function(){ - var that = this - , kind = that._k - , entry = that._l; + $iterDefine(C, NAME, function (iterated, kind) { + this._t = validate(iterated, NAME); // target + this._k = kind; // kind + this._l = undefined; // previous + }, function () { + var that = this; + var kind = that._k; + var entry = that._l; // revert to the last existing entry - while(entry && entry.r)entry = entry.p; + while (entry && entry.r) entry = entry.p; // get next entry - if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){ + if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) { // or finish the iteration that._t = undefined; return step(1); } // return step by kind - if(kind == 'keys' )return step(0, entry.k); - if(kind == 'values')return step(0, entry.v); + if (kind == 'keys') return step(0, entry.k); + if (kind == 'values') return step(0, entry.v); return step(0, [entry.k, entry.v]); - }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true); + }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); // add [@@species], 23.1.2.2, 23.2.2.2 setSpecies(NAME); } }; -},{"25":25,"27":27,"28":28,"37":37,"53":53,"55":55,"6":6,"62":62,"66":66,"67":67,"86":86,"91":91}],20:[function(_dereq_,module,exports){ + +},{"100":100,"125":125,"25":25,"29":29,"39":39,"55":55,"57":57,"6":6,"66":66,"71":71,"72":72,"93":93}],20:[function(_dereq_,module,exports){ // https://github.com/DavidBruant/Map-Set.prototype.toJSON -var classof = _dereq_(17) - , from = _dereq_(10); -module.exports = function(NAME){ - return function toJSON(){ - if(classof(this) != NAME)throw TypeError(NAME + "#toJSON isn't generic"); +var classof = _dereq_(17); +var from = _dereq_(10); +module.exports = function (NAME) { + return function toJSON() { + if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic"); return from(this); }; }; + },{"10":10,"17":17}],21:[function(_dereq_,module,exports){ 'use strict'; -var redefineAll = _dereq_(86) - , getWeak = _dereq_(62).getWeak - , anObject = _dereq_(7) - , isObject = _dereq_(49) - , anInstance = _dereq_(6) - , forOf = _dereq_(37) - , createArrayMethod = _dereq_(12) - , $has = _dereq_(39) - , arrayFind = createArrayMethod(5) - , arrayFindIndex = createArrayMethod(6) - , id = 0; +var redefineAll = _dereq_(93); +var getWeak = _dereq_(66).getWeak; +var anObject = _dereq_(7); +var isObject = _dereq_(51); +var anInstance = _dereq_(6); +var forOf = _dereq_(39); +var createArrayMethod = _dereq_(12); +var $has = _dereq_(41); +var validate = _dereq_(125); +var arrayFind = createArrayMethod(5); +var arrayFindIndex = createArrayMethod(6); +var id = 0; // fallback for uncaught frozen keys -var uncaughtFrozenStore = function(that){ - return that._l || (that._l = new UncaughtFrozenStore); +var uncaughtFrozenStore = function (that) { + return that._l || (that._l = new UncaughtFrozenStore()); }; -var UncaughtFrozenStore = function(){ +var UncaughtFrozenStore = function () { this.a = []; }; -var findUncaughtFrozen = function(store, key){ - return arrayFind(store.a, function(it){ +var findUncaughtFrozen = function (store, key) { + return arrayFind(store.a, function (it) { return it[0] === key; }); }; UncaughtFrozenStore.prototype = { - get: function(key){ + get: function (key) { var entry = findUncaughtFrozen(this, key); - if(entry)return entry[1]; + if (entry) return entry[1]; }, - has: function(key){ + has: function (key) { return !!findUncaughtFrozen(this, key); }, - set: function(key, value){ + set: function (key, value) { var entry = findUncaughtFrozen(this, key); - if(entry)entry[1] = value; + if (entry) entry[1] = value; else this.a.push([key, value]); }, - 'delete': function(key){ - var index = arrayFindIndex(this.a, function(it){ + 'delete': function (key) { + var index = arrayFindIndex(this.a, function (it) { return it[0] === key; }); - if(~index)this.a.splice(index, 1); + if (~index) this.a.splice(index, 1); return !!~index; } }; module.exports = { - getConstructor: function(wrapper, NAME, IS_MAP, ADDER){ - var C = wrapper(function(that, iterable){ + getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { + var C = wrapper(function (that, iterable) { anInstance(that, C, NAME, '_i'); + that._t = NAME; // collection type that._i = id++; // collection id that._l = undefined; // leak store for uncaught frozen objects - if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that); + if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); }); redefineAll(C.prototype, { // 23.3.3.2 WeakMap.prototype.delete(key) // 23.4.3.3 WeakSet.prototype.delete(value) - 'delete': function(key){ - if(!isObject(key))return false; + 'delete': function (key) { + if (!isObject(key)) return false; var data = getWeak(key); - if(data === true)return uncaughtFrozenStore(this)['delete'](key); + if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key); return data && $has(data, this._i) && delete data[this._i]; }, // 23.3.3.4 WeakMap.prototype.has(key) // 23.4.3.4 WeakSet.prototype.has(value) - has: function has(key){ - if(!isObject(key))return false; + has: function has(key) { + if (!isObject(key)) return false; var data = getWeak(key); - if(data === true)return uncaughtFrozenStore(this).has(key); + if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key); return data && $has(data, this._i); } }); return C; }, - def: function(that, key, value){ + def: function (that, key, value) { var data = getWeak(anObject(key), true); - if(data === true)uncaughtFrozenStore(that).set(key, value); + if (data === true) uncaughtFrozenStore(that).set(key, value); else data[that._i] = value; return that; }, ufstore: uncaughtFrozenStore }; -},{"12":12,"37":37,"39":39,"49":49,"6":6,"62":62,"7":7,"86":86}],22:[function(_dereq_,module,exports){ + +},{"12":12,"125":125,"39":39,"41":41,"51":51,"6":6,"66":66,"7":7,"93":93}],22:[function(_dereq_,module,exports){ 'use strict'; -var global = _dereq_(38) - , $export = _dereq_(32) - , redefine = _dereq_(87) - , redefineAll = _dereq_(86) - , meta = _dereq_(62) - , forOf = _dereq_(37) - , anInstance = _dereq_(6) - , isObject = _dereq_(49) - , fails = _dereq_(34) - , $iterDetect = _dereq_(54) - , setToStringTag = _dereq_(92) - , inheritIfRequired = _dereq_(43); - -module.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){ - var Base = global[NAME] - , C = Base - , ADDER = IS_MAP ? 'set' : 'add' - , proto = C && C.prototype - , O = {}; - var fixMethod = function(KEY){ +var global = _dereq_(40); +var $export = _dereq_(33); +var redefine = _dereq_(94); +var redefineAll = _dereq_(93); +var meta = _dereq_(66); +var forOf = _dereq_(39); +var anInstance = _dereq_(6); +var isObject = _dereq_(51); +var fails = _dereq_(35); +var $iterDetect = _dereq_(56); +var setToStringTag = _dereq_(101); +var inheritIfRequired = _dereq_(45); + +module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { + var Base = global[NAME]; + var C = Base; + var ADDER = IS_MAP ? 'set' : 'add'; + var proto = C && C.prototype; + var O = {}; + var fixMethod = function (KEY) { var fn = proto[KEY]; redefine(proto, KEY, - KEY == 'delete' ? function(a){ + KEY == 'delete' ? function (a) { return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); - } : KEY == 'has' ? function has(a){ + } : KEY == 'has' ? function has(a) { return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); - } : KEY == 'get' ? function get(a){ + } : KEY == 'get' ? function get(a) { return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a); - } : KEY == 'add' ? function add(a){ fn.call(this, a === 0 ? 0 : a); return this; } - : function set(a, b){ fn.call(this, a === 0 ? 0 : a, b); return this; } + } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; } + : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; } ); }; - if(typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){ + if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () { new C().entries().next(); - }))){ + }))) { // create collection constructor C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER); redefineAll(C.prototype, methods); meta.NEED = true; } else { - var instance = new C - // early implementations not supports chaining - , HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance - // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false - , THROWS_ON_PRIMITIVES = fails(function(){ instance.has(1); }) - // most early implementations doesn't supports iterables, most modern - not close it correctly - , ACCEPT_ITERABLES = $iterDetect(function(iter){ new C(iter); }) // eslint-disable-line no-new - // for early implementations -0 and +0 not the same - , BUGGY_ZERO = !IS_WEAK && fails(function(){ - // V8 ~ Chromium 42- fails only with 5+ elements - var $instance = new C() - , index = 5; - while(index--)$instance[ADDER](index, index); - return !$instance.has(-0); - }); - if(!ACCEPT_ITERABLES){ - C = wrapper(function(target, iterable){ + var instance = new C(); + // early implementations not supports chaining + var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance; + // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false + var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); }); + // most early implementations doesn't supports iterables, most modern - not close it correctly + var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new + // for early implementations -0 and +0 not the same + var BUGGY_ZERO = !IS_WEAK && fails(function () { + // V8 ~ Chromium 42- fails only with 5+ elements + var $instance = new C(); + var index = 5; + while (index--) $instance[ADDER](index, index); + return !$instance.has(-0); + }); + if (!ACCEPT_ITERABLES) { + C = wrapper(function (target, iterable) { anInstance(target, C, NAME); - var that = inheritIfRequired(new Base, target, C); - if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that); + var that = inheritIfRequired(new Base(), target, C); + if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); return that; }); C.prototype = proto; proto.constructor = C; } - if(THROWS_ON_PRIMITIVES || BUGGY_ZERO){ + if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) { fixMethod('delete'); fixMethod('has'); IS_MAP && fixMethod('get'); } - if(BUGGY_ZERO || HASNT_CHAINING)fixMethod(ADDER); + if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER); // weak collections should not contains .clear method - if(IS_WEAK && proto.clear)delete proto.clear; + if (IS_WEAK && proto.clear) delete proto.clear; } setToStringTag(C, NAME); @@ -609,113 +635,151 @@ module.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){ O[NAME] = C; $export($export.G + $export.W + $export.F * (C != Base), O); - if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP); + if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP); return C; }; -},{"32":32,"34":34,"37":37,"38":38,"43":43,"49":49,"54":54,"6":6,"62":62,"86":86,"87":87,"92":92}],23:[function(_dereq_,module,exports){ -var core = module.exports = {version: '2.4.0'}; -if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef + +},{"101":101,"33":33,"35":35,"39":39,"40":40,"45":45,"51":51,"56":56,"6":6,"66":66,"93":93,"94":94}],23:[function(_dereq_,module,exports){ +var core = module.exports = { version: '2.5.0' }; +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef + },{}],24:[function(_dereq_,module,exports){ 'use strict'; -var $defineProperty = _dereq_(67) - , createDesc = _dereq_(85); +var $defineProperty = _dereq_(72); +var createDesc = _dereq_(92); -module.exports = function(object, index, value){ - if(index in object)$defineProperty.f(object, index, createDesc(0, value)); +module.exports = function (object, index, value) { + if (index in object) $defineProperty.f(object, index, createDesc(0, value)); else object[index] = value; }; -},{"67":67,"85":85}],25:[function(_dereq_,module,exports){ + +},{"72":72,"92":92}],25:[function(_dereq_,module,exports){ // optional / simple context binding var aFunction = _dereq_(3); -module.exports = function(fn, that, length){ +module.exports = function (fn, that, length) { aFunction(fn); - if(that === undefined)return fn; - switch(length){ - case 1: return function(a){ + if (that === undefined) return fn; + switch (length) { + case 1: return function (a) { return fn.call(that, a); }; - case 2: return function(a, b){ + case 2: return function (a, b) { return fn.call(that, a, b); }; - case 3: return function(a, b, c){ + case 3: return function (a, b, c) { return fn.call(that, a, b, c); }; } - return function(/* ...args */){ + return function (/* ...args */) { return fn.apply(that, arguments); }; }; + },{"3":3}],26:[function(_dereq_,module,exports){ 'use strict'; -var anObject = _dereq_(7) - , toPrimitive = _dereq_(110) - , NUMBER = 'number'; +// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString() +var fails = _dereq_(35); +var getTime = Date.prototype.getTime; +var $toISOString = Date.prototype.toISOString; + +var lz = function (num) { + return num > 9 ? num : '0' + num; +}; + +// PhantomJS / old WebKit has a broken implementations +module.exports = (fails(function () { + return $toISOString.call(new Date(-5e13 - 1)) != '0385-07-25T07:06:39.999Z'; +}) || !fails(function () { + $toISOString.call(new Date(NaN)); +})) ? function toISOString() { + if (!isFinite(getTime.call(this))) throw RangeError('Invalid time value'); + var d = this; + var y = d.getUTCFullYear(); + var m = d.getUTCMilliseconds(); + var s = y < 0 ? '-' : y > 9999 ? '+' : ''; + return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) + + '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) + + 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) + + ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z'; +} : $toISOString; + +},{"35":35}],27:[function(_dereq_,module,exports){ +'use strict'; +var anObject = _dereq_(7); +var toPrimitive = _dereq_(120); +var NUMBER = 'number'; -module.exports = function(hint){ - if(hint !== 'string' && hint !== NUMBER && hint !== 'default')throw TypeError('Incorrect hint'); +module.exports = function (hint) { + if (hint !== 'string' && hint !== NUMBER && hint !== 'default') throw TypeError('Incorrect hint'); return toPrimitive(anObject(this), hint != NUMBER); }; -},{"110":110,"7":7}],27:[function(_dereq_,module,exports){ + +},{"120":120,"7":7}],28:[function(_dereq_,module,exports){ // 7.2.1 RequireObjectCoercible(argument) -module.exports = function(it){ - if(it == undefined)throw TypeError("Can't call method on " + it); +module.exports = function (it) { + if (it == undefined) throw TypeError("Can't call method on " + it); return it; }; -},{}],28:[function(_dereq_,module,exports){ + +},{}],29:[function(_dereq_,module,exports){ // Thank's IE8 for his funny defineProperty -module.exports = !_dereq_(34)(function(){ - return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; -}); -},{"34":34}],29:[function(_dereq_,module,exports){ -var isObject = _dereq_(49) - , document = _dereq_(38).document - // in old IE typeof document.createElement is 'object' - , is = isObject(document) && isObject(document.createElement); -module.exports = function(it){ +module.exports = !_dereq_(35)(function () { + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; +}); + +},{"35":35}],30:[function(_dereq_,module,exports){ +var isObject = _dereq_(51); +var document = _dereq_(40).document; +// typeof document.createElement is 'object' in old IE +var is = isObject(document) && isObject(document.createElement); +module.exports = function (it) { return is ? document.createElement(it) : {}; }; -},{"38":38,"49":49}],30:[function(_dereq_,module,exports){ + +},{"40":40,"51":51}],31:[function(_dereq_,module,exports){ // IE 8- don't enum bug keys module.exports = ( 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' ).split(','); -},{}],31:[function(_dereq_,module,exports){ + +},{}],32:[function(_dereq_,module,exports){ // all enumerable object keys, includes symbols -var getKeys = _dereq_(76) - , gOPS = _dereq_(73) - , pIE = _dereq_(77); -module.exports = function(it){ - var result = getKeys(it) - , getSymbols = gOPS.f; - if(getSymbols){ - var symbols = getSymbols(it) - , isEnum = pIE.f - , i = 0 - , key; - while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key); +var getKeys = _dereq_(81); +var gOPS = _dereq_(78); +var pIE = _dereq_(82); +module.exports = function (it) { + var result = getKeys(it); + var getSymbols = gOPS.f; + if (getSymbols) { + var symbols = getSymbols(it); + var isEnum = pIE.f; + var i = 0; + var key; + while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); } return result; }; -},{"73":73,"76":76,"77":77}],32:[function(_dereq_,module,exports){ -var global = _dereq_(38) - , core = _dereq_(23) - , hide = _dereq_(40) - , redefine = _dereq_(87) - , ctx = _dereq_(25) - , PROTOTYPE = 'prototype'; - -var $export = function(type, name, source){ - var IS_FORCED = type & $export.F - , IS_GLOBAL = type & $export.G - , IS_STATIC = type & $export.S - , IS_PROTO = type & $export.P - , IS_BIND = type & $export.B - , target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE] - , exports = IS_GLOBAL ? core : core[name] || (core[name] = {}) - , expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}) - , key, own, out, exp; - if(IS_GLOBAL)source = name; - for(key in source){ + +},{"78":78,"81":81,"82":82}],33:[function(_dereq_,module,exports){ +var global = _dereq_(40); +var core = _dereq_(23); +var hide = _dereq_(42); +var redefine = _dereq_(94); +var ctx = _dereq_(25); +var PROTOTYPE = 'prototype'; + +var $export = function (type, name, source) { + var IS_FORCED = type & $export.F; + var IS_GLOBAL = type & $export.G; + var IS_STATIC = type & $export.S; + var IS_PROTO = type & $export.P; + var IS_BIND = type & $export.B; + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); + var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); + var key, own, out, exp; + if (IS_GLOBAL) source = name; + for (key in source) { // contains in native own = !IS_FORCED && target && target[key] !== undefined; // export native or passed @@ -723,10 +787,10 @@ var $export = function(type, name, source){ // bind timers to global for call from export context exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // extend global - if(target)redefine(target, key, out, type & $export.U); + if (target) redefine(target, key, out, type & $export.U); // export - if(exports[key] != out)hide(exports, key, exp); - if(IS_PROTO && expProto[key] != out)expProto[key] = out; + if (exports[key] != out) hide(exports, key, exp); + if (IS_PROTO && expProto[key] != out) expProto[key] = out; } }; global.core = core; @@ -738,137 +802,194 @@ $export.P = 8; // proto $export.B = 16; // bind $export.W = 32; // wrap $export.U = 64; // safe -$export.R = 128; // real proto method for `library` +$export.R = 128; // real proto method for `library` module.exports = $export; -},{"23":23,"25":25,"38":38,"40":40,"87":87}],33:[function(_dereq_,module,exports){ -var MATCH = _dereq_(117)('match'); -module.exports = function(KEY){ + +},{"23":23,"25":25,"40":40,"42":42,"94":94}],34:[function(_dereq_,module,exports){ +var MATCH = _dereq_(128)('match'); +module.exports = function (KEY) { var re = /./; try { '/./'[KEY](re); - } catch(e){ + } catch (e) { try { re[MATCH] = false; return !'/./'[KEY](re); - } catch(f){ /* empty */ } + } catch (f) { /* empty */ } } return true; }; -},{"117":117}],34:[function(_dereq_,module,exports){ -module.exports = function(exec){ + +},{"128":128}],35:[function(_dereq_,module,exports){ +module.exports = function (exec) { try { return !!exec(); - } catch(e){ + } catch (e) { return true; } }; -},{}],35:[function(_dereq_,module,exports){ + +},{}],36:[function(_dereq_,module,exports){ 'use strict'; -var hide = _dereq_(40) - , redefine = _dereq_(87) - , fails = _dereq_(34) - , defined = _dereq_(27) - , wks = _dereq_(117); - -module.exports = function(KEY, length, exec){ - var SYMBOL = wks(KEY) - , fns = exec(defined, SYMBOL, ''[KEY]) - , strfn = fns[0] - , rxfn = fns[1]; - if(fails(function(){ +var hide = _dereq_(42); +var redefine = _dereq_(94); +var fails = _dereq_(35); +var defined = _dereq_(28); +var wks = _dereq_(128); + +module.exports = function (KEY, length, exec) { + var SYMBOL = wks(KEY); + var fns = exec(defined, SYMBOL, ''[KEY]); + var strfn = fns[0]; + var rxfn = fns[1]; + if (fails(function () { var O = {}; - O[SYMBOL] = function(){ return 7; }; + O[SYMBOL] = function () { return 7; }; return ''[KEY](O) != 7; - })){ + })) { redefine(String.prototype, KEY, strfn); hide(RegExp.prototype, SYMBOL, length == 2 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) // 21.2.5.11 RegExp.prototype[@@split](string, limit) - ? function(string, arg){ return rxfn.call(string, this, arg); } + ? function (string, arg) { return rxfn.call(string, this, arg); } // 21.2.5.6 RegExp.prototype[@@match](string) // 21.2.5.9 RegExp.prototype[@@search](string) - : function(string){ return rxfn.call(string, this); } + : function (string) { return rxfn.call(string, this); } ); } }; -},{"117":117,"27":27,"34":34,"40":40,"87":87}],36:[function(_dereq_,module,exports){ + +},{"128":128,"28":28,"35":35,"42":42,"94":94}],37:[function(_dereq_,module,exports){ 'use strict'; // 21.2.5.3 get RegExp.prototype.flags var anObject = _dereq_(7); -module.exports = function(){ - var that = anObject(this) - , result = ''; - if(that.global) result += 'g'; - if(that.ignoreCase) result += 'i'; - if(that.multiline) result += 'm'; - if(that.unicode) result += 'u'; - if(that.sticky) result += 'y'; +module.exports = function () { + var that = anObject(this); + var result = ''; + if (that.global) result += 'g'; + if (that.ignoreCase) result += 'i'; + if (that.multiline) result += 'm'; + if (that.unicode) result += 'u'; + if (that.sticky) result += 'y'; return result; }; -},{"7":7}],37:[function(_dereq_,module,exports){ -var ctx = _dereq_(25) - , call = _dereq_(51) - , isArrayIter = _dereq_(46) - , anObject = _dereq_(7) - , toLength = _dereq_(108) - , getIterFn = _dereq_(118) - , BREAK = {} - , RETURN = {}; -var exports = module.exports = function(iterable, entries, fn, that, ITERATOR){ - var iterFn = ITERATOR ? function(){ return iterable; } : getIterFn(iterable) - , f = ctx(fn, that, entries ? 2 : 1) - , index = 0 - , length, step, iterator, result; - if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!'); + +},{"7":7}],38:[function(_dereq_,module,exports){ +'use strict'; +// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray +var isArray = _dereq_(49); +var isObject = _dereq_(51); +var toLength = _dereq_(118); +var ctx = _dereq_(25); +var IS_CONCAT_SPREADABLE = _dereq_(128)('isConcatSpreadable'); + +function flattenIntoArray(target, original, source, sourceLen, start, depth, mapper, thisArg) { + var targetIndex = start; + var sourceIndex = 0; + var mapFn = mapper ? ctx(mapper, thisArg, 3) : false; + var element, spreadable; + + while (sourceIndex < sourceLen) { + if (sourceIndex in source) { + element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex]; + + spreadable = false; + if (isObject(element)) { + spreadable = element[IS_CONCAT_SPREADABLE]; + spreadable = spreadable !== undefined ? !!spreadable : isArray(element); + } + + if (spreadable && depth > 0) { + targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1; + } else { + if (targetIndex >= 0x1fffffffffffff) throw TypeError(); + target[targetIndex] = element; + } + + targetIndex++; + } + sourceIndex++; + } + return targetIndex; +} + +module.exports = flattenIntoArray; + +},{"118":118,"128":128,"25":25,"49":49,"51":51}],39:[function(_dereq_,module,exports){ +var ctx = _dereq_(25); +var call = _dereq_(53); +var isArrayIter = _dereq_(48); +var anObject = _dereq_(7); +var toLength = _dereq_(118); +var getIterFn = _dereq_(129); +var BREAK = {}; +var RETURN = {}; +var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { + var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable); + var f = ctx(fn, that, entries ? 2 : 1); + var index = 0; + var length, step, iterator, result; + if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!'); // fast case for arrays with default iterator - if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){ + if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) { result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]); - if(result === BREAK || result === RETURN)return result; - } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){ + if (result === BREAK || result === RETURN) return result; + } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) { result = call(iterator, f, step.value, entries); - if(result === BREAK || result === RETURN)return result; + if (result === BREAK || result === RETURN) return result; } }; -exports.BREAK = BREAK; +exports.BREAK = BREAK; exports.RETURN = RETURN; -},{"108":108,"118":118,"25":25,"46":46,"51":51,"7":7}],38:[function(_dereq_,module,exports){ + +},{"118":118,"129":129,"25":25,"48":48,"53":53,"7":7}],40:[function(_dereq_,module,exports){ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 var global = module.exports = typeof window != 'undefined' && window.Math == Math - ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')(); -if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef -},{}],39:[function(_dereq_,module,exports){ + ? window : typeof self != 'undefined' && self.Math == Math ? self + // eslint-disable-next-line no-new-func + : Function('return this')(); +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef + +},{}],41:[function(_dereq_,module,exports){ var hasOwnProperty = {}.hasOwnProperty; -module.exports = function(it, key){ +module.exports = function (it, key) { return hasOwnProperty.call(it, key); }; -},{}],40:[function(_dereq_,module,exports){ -var dP = _dereq_(67) - , createDesc = _dereq_(85); -module.exports = _dereq_(28) ? function(object, key, value){ + +},{}],42:[function(_dereq_,module,exports){ +var dP = _dereq_(72); +var createDesc = _dereq_(92); +module.exports = _dereq_(29) ? function (object, key, value) { return dP.f(object, key, createDesc(1, value)); -} : function(object, key, value){ +} : function (object, key, value) { object[key] = value; return object; }; -},{"28":28,"67":67,"85":85}],41:[function(_dereq_,module,exports){ -module.exports = _dereq_(38).document && document.documentElement; -},{"38":38}],42:[function(_dereq_,module,exports){ -module.exports = !_dereq_(28) && !_dereq_(34)(function(){ - return Object.defineProperty(_dereq_(29)('div'), 'a', {get: function(){ return 7; }}).a != 7; -}); -},{"28":28,"29":29,"34":34}],43:[function(_dereq_,module,exports){ -var isObject = _dereq_(49) - , setPrototypeOf = _dereq_(90).set; -module.exports = function(that, target, C){ - var P, S = target.constructor; - if(S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf){ + +},{"29":29,"72":72,"92":92}],43:[function(_dereq_,module,exports){ +var document = _dereq_(40).document; +module.exports = document && document.documentElement; + +},{"40":40}],44:[function(_dereq_,module,exports){ +module.exports = !_dereq_(29) && !_dereq_(35)(function () { + return Object.defineProperty(_dereq_(30)('div'), 'a', { get: function () { return 7; } }).a != 7; +}); + +},{"29":29,"30":30,"35":35}],45:[function(_dereq_,module,exports){ +var isObject = _dereq_(51); +var setPrototypeOf = _dereq_(99).set; +module.exports = function (that, target, C) { + var S = target.constructor; + var P; + if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { setPrototypeOf(that, P); } return that; }; -},{"49":49,"90":90}],44:[function(_dereq_,module,exports){ + +},{"51":51,"99":99}],46:[function(_dereq_,module,exports){ // fast apply, http://jsperf.lnkit.com/fast-apply/5 -module.exports = function(fn, args, that){ +module.exports = function (fn, args, that) { var un = that === undefined; - switch(args.length){ + switch (args.length) { case 0: return un ? fn() : fn.call(that); case 1: return un ? fn(args[0]) @@ -879,189 +1000,206 @@ module.exports = function(fn, args, that){ : fn.call(that, args[0], args[1], args[2]); case 4: return un ? fn(args[0], args[1], args[2], args[3]) : fn.call(that, args[0], args[1], args[2], args[3]); - } return fn.apply(that, args); + } return fn.apply(that, args); }; -},{}],45:[function(_dereq_,module,exports){ + +},{}],47:[function(_dereq_,module,exports){ // fallback for non-array-like ES3 and non-enumerable old V8 strings var cof = _dereq_(18); -module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){ +// eslint-disable-next-line no-prototype-builtins +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { return cof(it) == 'String' ? it.split('') : Object(it); }; -},{"18":18}],46:[function(_dereq_,module,exports){ + +},{"18":18}],48:[function(_dereq_,module,exports){ // check on default Array iterator -var Iterators = _dereq_(56) - , ITERATOR = _dereq_(117)('iterator') - , ArrayProto = Array.prototype; +var Iterators = _dereq_(58); +var ITERATOR = _dereq_(128)('iterator'); +var ArrayProto = Array.prototype; -module.exports = function(it){ +module.exports = function (it) { return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); }; -},{"117":117,"56":56}],47:[function(_dereq_,module,exports){ + +},{"128":128,"58":58}],49:[function(_dereq_,module,exports){ // 7.2.2 IsArray(argument) var cof = _dereq_(18); -module.exports = Array.isArray || function isArray(arg){ +module.exports = Array.isArray || function isArray(arg) { return cof(arg) == 'Array'; }; -},{"18":18}],48:[function(_dereq_,module,exports){ + +},{"18":18}],50:[function(_dereq_,module,exports){ // 20.1.2.3 Number.isInteger(number) -var isObject = _dereq_(49) - , floor = Math.floor; -module.exports = function isInteger(it){ +var isObject = _dereq_(51); +var floor = Math.floor; +module.exports = function isInteger(it) { return !isObject(it) && isFinite(it) && floor(it) === it; }; -},{"49":49}],49:[function(_dereq_,module,exports){ -module.exports = function(it){ + +},{"51":51}],51:[function(_dereq_,module,exports){ +module.exports = function (it) { return typeof it === 'object' ? it !== null : typeof it === 'function'; }; -},{}],50:[function(_dereq_,module,exports){ + +},{}],52:[function(_dereq_,module,exports){ // 7.2.8 IsRegExp(argument) -var isObject = _dereq_(49) - , cof = _dereq_(18) - , MATCH = _dereq_(117)('match'); -module.exports = function(it){ +var isObject = _dereq_(51); +var cof = _dereq_(18); +var MATCH = _dereq_(128)('match'); +module.exports = function (it) { var isRegExp; return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); }; -},{"117":117,"18":18,"49":49}],51:[function(_dereq_,module,exports){ + +},{"128":128,"18":18,"51":51}],53:[function(_dereq_,module,exports){ // call something on iterator step with safe closing on error var anObject = _dereq_(7); -module.exports = function(iterator, fn, value, entries){ +module.exports = function (iterator, fn, value, entries) { try { return entries ? fn(anObject(value)[0], value[1]) : fn(value); // 7.4.6 IteratorClose(iterator, completion) - } catch(e){ + } catch (e) { var ret = iterator['return']; - if(ret !== undefined)anObject(ret.call(iterator)); + if (ret !== undefined) anObject(ret.call(iterator)); throw e; } }; -},{"7":7}],52:[function(_dereq_,module,exports){ + +},{"7":7}],54:[function(_dereq_,module,exports){ 'use strict'; -var create = _dereq_(66) - , descriptor = _dereq_(85) - , setToStringTag = _dereq_(92) - , IteratorPrototype = {}; +var create = _dereq_(71); +var descriptor = _dereq_(92); +var setToStringTag = _dereq_(101); +var IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() -_dereq_(40)(IteratorPrototype, _dereq_(117)('iterator'), function(){ return this; }); +_dereq_(42)(IteratorPrototype, _dereq_(128)('iterator'), function () { return this; }); -module.exports = function(Constructor, NAME, next){ - Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)}); +module.exports = function (Constructor, NAME, next) { + Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); setToStringTag(Constructor, NAME + ' Iterator'); }; -},{"117":117,"40":40,"66":66,"85":85,"92":92}],53:[function(_dereq_,module,exports){ + +},{"101":101,"128":128,"42":42,"71":71,"92":92}],55:[function(_dereq_,module,exports){ 'use strict'; -var LIBRARY = _dereq_(58) - , $export = _dereq_(32) - , redefine = _dereq_(87) - , hide = _dereq_(40) - , has = _dereq_(39) - , Iterators = _dereq_(56) - , $iterCreate = _dereq_(52) - , setToStringTag = _dereq_(92) - , getPrototypeOf = _dereq_(74) - , ITERATOR = _dereq_(117)('iterator') - , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next` - , FF_ITERATOR = '@@iterator' - , KEYS = 'keys' - , VALUES = 'values'; - -var returnThis = function(){ return this; }; - -module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){ +var LIBRARY = _dereq_(60); +var $export = _dereq_(33); +var redefine = _dereq_(94); +var hide = _dereq_(42); +var has = _dereq_(41); +var Iterators = _dereq_(58); +var $iterCreate = _dereq_(54); +var setToStringTag = _dereq_(101); +var getPrototypeOf = _dereq_(79); +var ITERATOR = _dereq_(128)('iterator'); +var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` +var FF_ITERATOR = '@@iterator'; +var KEYS = 'keys'; +var VALUES = 'values'; + +var returnThis = function () { return this; }; + +module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { $iterCreate(Constructor, NAME, next); - var getMethod = function(kind){ - if(!BUGGY && kind in proto)return proto[kind]; - switch(kind){ - case KEYS: return function keys(){ return new Constructor(this, kind); }; - case VALUES: return function values(){ return new Constructor(this, kind); }; - } return function entries(){ return new Constructor(this, kind); }; + var getMethod = function (kind) { + if (!BUGGY && kind in proto) return proto[kind]; + switch (kind) { + case KEYS: return function keys() { return new Constructor(this, kind); }; + case VALUES: return function values() { return new Constructor(this, kind); }; + } return function entries() { return new Constructor(this, kind); }; }; - var TAG = NAME + ' Iterator' - , DEF_VALUES = DEFAULT == VALUES - , VALUES_BUG = false - , proto = Base.prototype - , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT] - , $default = $native || getMethod(DEFAULT) - , $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined - , $anyNative = NAME == 'Array' ? proto.entries || $native : $native - , methods, key, IteratorPrototype; + var TAG = NAME + ' Iterator'; + var DEF_VALUES = DEFAULT == VALUES; + var VALUES_BUG = false; + var proto = Base.prototype; + var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; + var $default = $native || getMethod(DEFAULT); + var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; + var methods, key, IteratorPrototype; // Fix native - if($anyNative){ - IteratorPrototype = getPrototypeOf($anyNative.call(new Base)); - if(IteratorPrototype !== Object.prototype){ + if ($anyNative) { + IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); + if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { // Set @@toStringTag to native iterators setToStringTag(IteratorPrototype, TAG, true); // fix for some old engines - if(!LIBRARY && !has(IteratorPrototype, ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis); + if (!LIBRARY && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis); } } // fix Array#{values, @@iterator}.name in V8 / FF - if(DEF_VALUES && $native && $native.name !== VALUES){ + if (DEF_VALUES && $native && $native.name !== VALUES) { VALUES_BUG = true; - $default = function values(){ return $native.call(this); }; + $default = function values() { return $native.call(this); }; } // Define iterator - if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){ + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { hide(proto, ITERATOR, $default); } // Plug for library Iterators[NAME] = $default; - Iterators[TAG] = returnThis; - if(DEFAULT){ + Iterators[TAG] = returnThis; + if (DEFAULT) { methods = { - values: DEF_VALUES ? $default : getMethod(VALUES), - keys: IS_SET ? $default : getMethod(KEYS), + values: DEF_VALUES ? $default : getMethod(VALUES), + keys: IS_SET ? $default : getMethod(KEYS), entries: $entries }; - if(FORCED)for(key in methods){ - if(!(key in proto))redefine(proto, key, methods[key]); + if (FORCED) for (key in methods) { + if (!(key in proto)) redefine(proto, key, methods[key]); } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); } return methods; }; -},{"117":117,"32":32,"39":39,"40":40,"52":52,"56":56,"58":58,"74":74,"87":87,"92":92}],54:[function(_dereq_,module,exports){ -var ITERATOR = _dereq_(117)('iterator') - , SAFE_CLOSING = false; + +},{"101":101,"128":128,"33":33,"41":41,"42":42,"54":54,"58":58,"60":60,"79":79,"94":94}],56:[function(_dereq_,module,exports){ +var ITERATOR = _dereq_(128)('iterator'); +var SAFE_CLOSING = false; try { var riter = [7][ITERATOR](); - riter['return'] = function(){ SAFE_CLOSING = true; }; - Array.from(riter, function(){ throw 2; }); -} catch(e){ /* empty */ } + riter['return'] = function () { SAFE_CLOSING = true; }; + // eslint-disable-next-line no-throw-literal + Array.from(riter, function () { throw 2; }); +} catch (e) { /* empty */ } -module.exports = function(exec, skipClosing){ - if(!skipClosing && !SAFE_CLOSING)return false; +module.exports = function (exec, skipClosing) { + if (!skipClosing && !SAFE_CLOSING) return false; var safe = false; try { - var arr = [7] - , iter = arr[ITERATOR](); - iter.next = function(){ return {done: safe = true}; }; - arr[ITERATOR] = function(){ return iter; }; + var arr = [7]; + var iter = arr[ITERATOR](); + iter.next = function () { return { done: safe = true }; }; + arr[ITERATOR] = function () { return iter; }; exec(arr); - } catch(e){ /* empty */ } + } catch (e) { /* empty */ } return safe; }; -},{"117":117}],55:[function(_dereq_,module,exports){ -module.exports = function(done, value){ - return {value: value, done: !!done}; + +},{"128":128}],57:[function(_dereq_,module,exports){ +module.exports = function (done, value) { + return { value: value, done: !!done }; }; -},{}],56:[function(_dereq_,module,exports){ + +},{}],58:[function(_dereq_,module,exports){ module.exports = {}; -},{}],57:[function(_dereq_,module,exports){ -var getKeys = _dereq_(76) - , toIObject = _dereq_(107); -module.exports = function(object, el){ - var O = toIObject(object) - , keys = getKeys(O) - , length = keys.length - , index = 0 - , key; - while(length > index)if(O[key = keys[index++]] === el)return key; -}; -},{"107":107,"76":76}],58:[function(_dereq_,module,exports){ -module.exports = false; + },{}],59:[function(_dereq_,module,exports){ +var getKeys = _dereq_(81); +var toIObject = _dereq_(117); +module.exports = function (object, el) { + var O = toIObject(object); + var keys = getKeys(O); + var length = keys.length; + var index = 0; + var key; + while (length > index) if (O[key = keys[index++]] === el) return key; +}; + +},{"117":117,"81":81}],60:[function(_dereq_,module,exports){ +module.exports = false; + +},{}],61:[function(_dereq_,module,exports){ // 20.2.2.14 Math.expm1(x) var $expm1 = Math.expm1; module.exports = (!$expm1 @@ -1069,112 +1207,162 @@ module.exports = (!$expm1 || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168 // Tor Browser bug || $expm1(-2e-17) != -2e-17 -) ? function expm1(x){ +) ? function expm1(x) { return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1; } : $expm1; -},{}],60:[function(_dereq_,module,exports){ + +},{}],62:[function(_dereq_,module,exports){ +// 20.2.2.16 Math.fround(x) +var sign = _dereq_(65); +var pow = Math.pow; +var EPSILON = pow(2, -52); +var EPSILON32 = pow(2, -23); +var MAX32 = pow(2, 127) * (2 - EPSILON32); +var MIN32 = pow(2, -126); + +var roundTiesToEven = function (n) { + return n + 1 / EPSILON - 1 / EPSILON; +}; + +module.exports = Math.fround || function fround(x) { + var $abs = Math.abs(x); + var $sign = sign(x); + var a, result; + if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32; + a = (1 + EPSILON32 / EPSILON) * $abs; + result = a - (a - $abs); + // eslint-disable-next-line no-self-compare + if (result > MAX32 || result != result) return $sign * Infinity; + return $sign * result; +}; + +},{"65":65}],63:[function(_dereq_,module,exports){ // 20.2.2.20 Math.log1p(x) -module.exports = Math.log1p || function log1p(x){ +module.exports = Math.log1p || function log1p(x) { return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x); }; -},{}],61:[function(_dereq_,module,exports){ + +},{}],64:[function(_dereq_,module,exports){ +// https://rwaldron.github.io/proposal-math-extensions/ +module.exports = Math.scale || function scale(x, inLow, inHigh, outLow, outHigh) { + if ( + arguments.length === 0 + // eslint-disable-next-line no-self-compare + || x != x + // eslint-disable-next-line no-self-compare + || inLow != inLow + // eslint-disable-next-line no-self-compare + || inHigh != inHigh + // eslint-disable-next-line no-self-compare + || outLow != outLow + // eslint-disable-next-line no-self-compare + || outHigh != outHigh + ) return NaN; + if (x === Infinity || x === -Infinity) return x; + return (x - inLow) * (outHigh - outLow) / (inHigh - inLow) + outLow; +}; + +},{}],65:[function(_dereq_,module,exports){ // 20.2.2.28 Math.sign(x) -module.exports = Math.sign || function sign(x){ +module.exports = Math.sign || function sign(x) { + // eslint-disable-next-line no-self-compare return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1; }; -},{}],62:[function(_dereq_,module,exports){ -var META = _dereq_(114)('meta') - , isObject = _dereq_(49) - , has = _dereq_(39) - , setDesc = _dereq_(67).f - , id = 0; -var isExtensible = Object.isExtensible || function(){ + +},{}],66:[function(_dereq_,module,exports){ +var META = _dereq_(124)('meta'); +var isObject = _dereq_(51); +var has = _dereq_(41); +var setDesc = _dereq_(72).f; +var id = 0; +var isExtensible = Object.isExtensible || function () { return true; }; -var FREEZE = !_dereq_(34)(function(){ +var FREEZE = !_dereq_(35)(function () { return isExtensible(Object.preventExtensions({})); }); -var setMeta = function(it){ - setDesc(it, META, {value: { +var setMeta = function (it) { + setDesc(it, META, { value: { i: 'O' + ++id, // object ID w: {} // weak collections IDs - }}); + } }); }; -var fastKey = function(it, create){ +var fastKey = function (it, create) { // return primitive with prefix - if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; - if(!has(it, META)){ + if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; + if (!has(it, META)) { // can't set metadata to uncaught frozen object - if(!isExtensible(it))return 'F'; + if (!isExtensible(it)) return 'F'; // not necessary to add metadata - if(!create)return 'E'; + if (!create) return 'E'; // add missing metadata setMeta(it); // return object ID } return it[META].i; }; -var getWeak = function(it, create){ - if(!has(it, META)){ +var getWeak = function (it, create) { + if (!has(it, META)) { // can't set metadata to uncaught frozen object - if(!isExtensible(it))return true; + if (!isExtensible(it)) return true; // not necessary to add metadata - if(!create)return false; + if (!create) return false; // add missing metadata setMeta(it); // return hash weak collections IDs } return it[META].w; }; // add metadata on freeze-family methods calling -var onFreeze = function(it){ - if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it); +var onFreeze = function (it) { + if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); return it; }; var meta = module.exports = { - KEY: META, - NEED: false, - fastKey: fastKey, - getWeak: getWeak, + KEY: META, + NEED: false, + fastKey: fastKey, + getWeak: getWeak, onFreeze: onFreeze }; -},{"114":114,"34":34,"39":39,"49":49,"67":67}],63:[function(_dereq_,module,exports){ -var Map = _dereq_(149) - , $export = _dereq_(32) - , shared = _dereq_(94)('metadata') - , store = shared.store || (shared.store = new (_dereq_(255))); -var getOrCreateMetadataMap = function(target, targetKey, create){ +},{"124":124,"35":35,"41":41,"51":51,"72":72}],67:[function(_dereq_,module,exports){ +var Map = _dereq_(160); +var $export = _dereq_(33); +var shared = _dereq_(103)('metadata'); +var store = shared.store || (shared.store = new (_dereq_(266))()); + +var getOrCreateMetadataMap = function (target, targetKey, create) { var targetMetadata = store.get(target); - if(!targetMetadata){ - if(!create)return undefined; - store.set(target, targetMetadata = new Map); + if (!targetMetadata) { + if (!create) return undefined; + store.set(target, targetMetadata = new Map()); } var keyMetadata = targetMetadata.get(targetKey); - if(!keyMetadata){ - if(!create)return undefined; - targetMetadata.set(targetKey, keyMetadata = new Map); + if (!keyMetadata) { + if (!create) return undefined; + targetMetadata.set(targetKey, keyMetadata = new Map()); } return keyMetadata; }; -var ordinaryHasOwnMetadata = function(MetadataKey, O, P){ +var ordinaryHasOwnMetadata = function (MetadataKey, O, P) { var metadataMap = getOrCreateMetadataMap(O, P, false); return metadataMap === undefined ? false : metadataMap.has(MetadataKey); }; -var ordinaryGetOwnMetadata = function(MetadataKey, O, P){ +var ordinaryGetOwnMetadata = function (MetadataKey, O, P) { var metadataMap = getOrCreateMetadataMap(O, P, false); return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey); }; -var ordinaryDefineOwnMetadata = function(MetadataKey, MetadataValue, O, P){ +var ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) { getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue); }; -var ordinaryOwnMetadataKeys = function(target, targetKey){ - var metadataMap = getOrCreateMetadataMap(target, targetKey, false) - , keys = []; - if(metadataMap)metadataMap.forEach(function(_, key){ keys.push(key); }); +var ordinaryOwnMetadataKeys = function (target, targetKey) { + var metadataMap = getOrCreateMetadataMap(target, targetKey, false); + var keys = []; + if (metadataMap) metadataMap.forEach(function (_, key) { keys.push(key); }); return keys; }; -var toMetaKey = function(it){ +var toMetaKey = function (it) { return it === undefined || typeof it == 'symbol' ? it : String(it); }; -var exp = function(O){ +var exp = function (O) { $export($export.S, 'Reflect', O); }; @@ -1188,51 +1376,52 @@ module.exports = { key: toMetaKey, exp: exp }; -},{"149":149,"255":255,"32":32,"94":94}],64:[function(_dereq_,module,exports){ -var global = _dereq_(38) - , macrotask = _dereq_(104).set - , Observer = global.MutationObserver || global.WebKitMutationObserver - , process = global.process - , Promise = global.Promise - , isNode = _dereq_(18)(process) == 'process'; -module.exports = function(){ +},{"103":103,"160":160,"266":266,"33":33}],68:[function(_dereq_,module,exports){ +var global = _dereq_(40); +var macrotask = _dereq_(113).set; +var Observer = global.MutationObserver || global.WebKitMutationObserver; +var process = global.process; +var Promise = global.Promise; +var isNode = _dereq_(18)(process) == 'process'; + +module.exports = function () { var head, last, notify; - var flush = function(){ + var flush = function () { var parent, fn; - if(isNode && (parent = process.domain))parent.exit(); - while(head){ - fn = head.fn; + if (isNode && (parent = process.domain)) parent.exit(); + while (head) { + fn = head.fn; head = head.next; try { fn(); - } catch(e){ - if(head)notify(); + } catch (e) { + if (head) notify(); else last = undefined; throw e; } } last = undefined; - if(parent)parent.enter(); + if (parent) parent.enter(); }; // Node.js - if(isNode){ - notify = function(){ + if (isNode) { + notify = function () { process.nextTick(flush); }; // browsers with MutationObserver - } else if(Observer){ - var toggle = true - , node = document.createTextNode(''); - new Observer(flush).observe(node, {characterData: true}); // eslint-disable-line no-new - notify = function(){ + } else if (Observer) { + var toggle = true; + var node = document.createTextNode(''); + new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new + notify = function () { node.data = toggle = !toggle; }; // environments with maybe non-completely correct, but existent Promise - } else if(Promise && Promise.resolve){ + } else if (Promise && Promise.resolve) { var promise = Promise.resolve(); - notify = function(){ + notify = function () { promise.then(flush); }; // for other environments - macrotask based on: @@ -1242,74 +1431,97 @@ module.exports = function(){ // - onreadystatechange // - setTimeout } else { - notify = function(){ + notify = function () { // strange IE + webpack dev server bug - use .call(global) macrotask.call(global, flush); }; } - return function(fn){ - var task = {fn: fn, next: undefined}; - if(last)last.next = task; - if(!head){ + return function (fn) { + var task = { fn: fn, next: undefined }; + if (last) last.next = task; + if (!head) { head = task; notify(); } last = task; }; }; -},{"104":104,"18":18,"38":38}],65:[function(_dereq_,module,exports){ + +},{"113":113,"18":18,"40":40}],69:[function(_dereq_,module,exports){ +'use strict'; +// 25.4.1.5 NewPromiseCapability(C) +var aFunction = _dereq_(3); + +function PromiseCapability(C) { + var resolve, reject; + this.promise = new C(function ($$resolve, $$reject) { + if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor'); + resolve = $$resolve; + reject = $$reject; + }); + this.resolve = aFunction(resolve); + this.reject = aFunction(reject); +} + +module.exports.f = function (C) { + return new PromiseCapability(C); +}; + +},{"3":3}],70:[function(_dereq_,module,exports){ 'use strict'; // 19.1.2.1 Object.assign(target, source, ...) -var getKeys = _dereq_(76) - , gOPS = _dereq_(73) - , pIE = _dereq_(77) - , toObject = _dereq_(109) - , IObject = _dereq_(45) - , $assign = Object.assign; +var getKeys = _dereq_(81); +var gOPS = _dereq_(78); +var pIE = _dereq_(82); +var toObject = _dereq_(119); +var IObject = _dereq_(47); +var $assign = Object.assign; // should work with symbols and should have deterministic property order (V8 bug) -module.exports = !$assign || _dereq_(34)(function(){ - var A = {} - , B = {} - , S = Symbol() - , K = 'abcdefghijklmnopqrst'; +module.exports = !$assign || _dereq_(35)(function () { + var A = {}; + var B = {}; + // eslint-disable-next-line no-undef + var S = Symbol(); + var K = 'abcdefghijklmnopqrst'; A[S] = 7; - K.split('').forEach(function(k){ B[k] = k; }); + K.split('').forEach(function (k) { B[k] = k; }); return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; -}) ? function assign(target, source){ // eslint-disable-line no-unused-vars - var T = toObject(target) - , aLen = arguments.length - , index = 1 - , getSymbols = gOPS.f - , isEnum = pIE.f; - while(aLen > index){ - var S = IObject(arguments[index++]) - , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S) - , length = keys.length - , j = 0 - , key; - while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key]; +}) ? function assign(target, source) { // eslint-disable-line no-unused-vars + var T = toObject(target); + var aLen = arguments.length; + var index = 1; + var getSymbols = gOPS.f; + var isEnum = pIE.f; + while (aLen > index) { + var S = IObject(arguments[index++]); + var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); + var length = keys.length; + var j = 0; + var key; + while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; } return T; } : $assign; -},{"109":109,"34":34,"45":45,"73":73,"76":76,"77":77}],66:[function(_dereq_,module,exports){ + +},{"119":119,"35":35,"47":47,"78":78,"81":81,"82":82}],71:[function(_dereq_,module,exports){ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) -var anObject = _dereq_(7) - , dPs = _dereq_(68) - , enumBugKeys = _dereq_(30) - , IE_PROTO = _dereq_(93)('IE_PROTO') - , Empty = function(){ /* empty */ } - , PROTOTYPE = 'prototype'; +var anObject = _dereq_(7); +var dPs = _dereq_(73); +var enumBugKeys = _dereq_(31); +var IE_PROTO = _dereq_(102)('IE_PROTO'); +var Empty = function () { /* empty */ }; +var PROTOTYPE = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype -var createDict = function(){ +var createDict = function () { // Thrash, waste and sodomy: IE GC bug - var iframe = _dereq_(29)('iframe') - , i = enumBugKeys.length - , lt = '<' - , gt = '>' - , iframeDocument; + var iframe = _dereq_(30)('iframe'); + var i = enumBugKeys.length; + var lt = '<'; + var gt = '>'; + var iframeDocument; iframe.style.display = 'none'; - _dereq_(41).appendChild(iframe); + _dereq_(43).appendChild(iframe); iframe.src = 'javascript:'; // eslint-disable-line no-script-url // createDict = iframe.contentWindow.Object; // html.removeChild(iframe); @@ -1318,15 +1530,15 @@ var createDict = function(){ iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); iframeDocument.close(); createDict = iframeDocument.F; - while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]]; + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; return createDict(); }; -module.exports = Object.create || function create(O, Properties){ +module.exports = Object.create || function create(O, Properties) { var result; - if(O !== null){ + if (O !== null) { Empty[PROTOTYPE] = anObject(O); - result = new Empty; + result = new Empty(); Empty[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill result[IE_PROTO] = O; @@ -1334,878 +1546,1004 @@ module.exports = Object.create || function create(O, Properties){ return Properties === undefined ? result : dPs(result, Properties); }; -},{"29":29,"30":30,"41":41,"68":68,"7":7,"93":93}],67:[function(_dereq_,module,exports){ -var anObject = _dereq_(7) - , IE8_DOM_DEFINE = _dereq_(42) - , toPrimitive = _dereq_(110) - , dP = Object.defineProperty; +},{"102":102,"30":30,"31":31,"43":43,"7":7,"73":73}],72:[function(_dereq_,module,exports){ +var anObject = _dereq_(7); +var IE8_DOM_DEFINE = _dereq_(44); +var toPrimitive = _dereq_(120); +var dP = Object.defineProperty; -exports.f = _dereq_(28) ? Object.defineProperty : function defineProperty(O, P, Attributes){ +exports.f = _dereq_(29) ? Object.defineProperty : function defineProperty(O, P, Attributes) { anObject(O); P = toPrimitive(P, true); anObject(Attributes); - if(IE8_DOM_DEFINE)try { + if (IE8_DOM_DEFINE) try { return dP(O, P, Attributes); - } catch(e){ /* empty */ } - if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!'); - if('value' in Attributes)O[P] = Attributes.value; + } catch (e) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); + if ('value' in Attributes) O[P] = Attributes.value; return O; }; -},{"110":110,"28":28,"42":42,"7":7}],68:[function(_dereq_,module,exports){ -var dP = _dereq_(67) - , anObject = _dereq_(7) - , getKeys = _dereq_(76); -module.exports = _dereq_(28) ? Object.defineProperties : function defineProperties(O, Properties){ +},{"120":120,"29":29,"44":44,"7":7}],73:[function(_dereq_,module,exports){ +var dP = _dereq_(72); +var anObject = _dereq_(7); +var getKeys = _dereq_(81); + +module.exports = _dereq_(29) ? Object.defineProperties : function defineProperties(O, Properties) { anObject(O); - var keys = getKeys(Properties) - , length = keys.length - , i = 0 - , P; - while(length > i)dP.f(O, P = keys[i++], Properties[P]); + var keys = getKeys(Properties); + var length = keys.length; + var i = 0; + var P; + while (length > i) dP.f(O, P = keys[i++], Properties[P]); return O; }; -},{"28":28,"67":67,"7":7,"76":76}],69:[function(_dereq_,module,exports){ + +},{"29":29,"7":7,"72":72,"81":81}],74:[function(_dereq_,module,exports){ +'use strict'; // Forced replacement prototype accessors methods -module.exports = _dereq_(58)|| !_dereq_(34)(function(){ +module.exports = _dereq_(60) || !_dereq_(35)(function () { var K = Math.random(); // In FF throws only define methods - __defineSetter__.call(null, K, function(){ /* empty */}); - delete _dereq_(38)[K]; -}); -},{"34":34,"38":38,"58":58}],70:[function(_dereq_,module,exports){ -var pIE = _dereq_(77) - , createDesc = _dereq_(85) - , toIObject = _dereq_(107) - , toPrimitive = _dereq_(110) - , has = _dereq_(39) - , IE8_DOM_DEFINE = _dereq_(42) - , gOPD = Object.getOwnPropertyDescriptor; - -exports.f = _dereq_(28) ? gOPD : function getOwnPropertyDescriptor(O, P){ + // eslint-disable-next-line no-undef, no-useless-call + __defineSetter__.call(null, K, function () { /* empty */ }); + delete _dereq_(40)[K]; +}); + +},{"35":35,"40":40,"60":60}],75:[function(_dereq_,module,exports){ +var pIE = _dereq_(82); +var createDesc = _dereq_(92); +var toIObject = _dereq_(117); +var toPrimitive = _dereq_(120); +var has = _dereq_(41); +var IE8_DOM_DEFINE = _dereq_(44); +var gOPD = Object.getOwnPropertyDescriptor; + +exports.f = _dereq_(29) ? gOPD : function getOwnPropertyDescriptor(O, P) { O = toIObject(O); P = toPrimitive(P, true); - if(IE8_DOM_DEFINE)try { + if (IE8_DOM_DEFINE) try { return gOPD(O, P); - } catch(e){ /* empty */ } - if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]); + } catch (e) { /* empty */ } + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); }; -},{"107":107,"110":110,"28":28,"39":39,"42":42,"77":77,"85":85}],71:[function(_dereq_,module,exports){ + +},{"117":117,"120":120,"29":29,"41":41,"44":44,"82":82,"92":92}],76:[function(_dereq_,module,exports){ // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window -var toIObject = _dereq_(107) - , gOPN = _dereq_(72).f - , toString = {}.toString; +var toIObject = _dereq_(117); +var gOPN = _dereq_(77).f; +var toString = {}.toString; var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; -var getWindowNames = function(it){ +var getWindowNames = function (it) { try { return gOPN(it); - } catch(e){ + } catch (e) { return windowNames.slice(); } }; -module.exports.f = function getOwnPropertyNames(it){ +module.exports.f = function getOwnPropertyNames(it) { return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); }; -},{"107":107,"72":72}],72:[function(_dereq_,module,exports){ +},{"117":117,"77":77}],77:[function(_dereq_,module,exports){ // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) -var $keys = _dereq_(75) - , hiddenKeys = _dereq_(30).concat('length', 'prototype'); +var $keys = _dereq_(80); +var hiddenKeys = _dereq_(31).concat('length', 'prototype'); -exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O){ +exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return $keys(O, hiddenKeys); }; -},{"30":30,"75":75}],73:[function(_dereq_,module,exports){ + +},{"31":31,"80":80}],78:[function(_dereq_,module,exports){ exports.f = Object.getOwnPropertySymbols; -},{}],74:[function(_dereq_,module,exports){ + +},{}],79:[function(_dereq_,module,exports){ // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) -var has = _dereq_(39) - , toObject = _dereq_(109) - , IE_PROTO = _dereq_(93)('IE_PROTO') - , ObjectProto = Object.prototype; +var has = _dereq_(41); +var toObject = _dereq_(119); +var IE_PROTO = _dereq_(102)('IE_PROTO'); +var ObjectProto = Object.prototype; -module.exports = Object.getPrototypeOf || function(O){ +module.exports = Object.getPrototypeOf || function (O) { O = toObject(O); - if(has(O, IE_PROTO))return O[IE_PROTO]; - if(typeof O.constructor == 'function' && O instanceof O.constructor){ + if (has(O, IE_PROTO)) return O[IE_PROTO]; + if (typeof O.constructor == 'function' && O instanceof O.constructor) { return O.constructor.prototype; } return O instanceof Object ? ObjectProto : null; }; -},{"109":109,"39":39,"93":93}],75:[function(_dereq_,module,exports){ -var has = _dereq_(39) - , toIObject = _dereq_(107) - , arrayIndexOf = _dereq_(11)(false) - , IE_PROTO = _dereq_(93)('IE_PROTO'); - -module.exports = function(object, names){ - var O = toIObject(object) - , i = 0 - , result = [] - , key; - for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key); + +},{"102":102,"119":119,"41":41}],80:[function(_dereq_,module,exports){ +var has = _dereq_(41); +var toIObject = _dereq_(117); +var arrayIndexOf = _dereq_(11)(false); +var IE_PROTO = _dereq_(102)('IE_PROTO'); + +module.exports = function (object, names) { + var O = toIObject(object); + var i = 0; + var result = []; + var key; + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); // Don't enum bug & hidden keys - while(names.length > i)if(has(O, key = names[i++])){ + while (names.length > i) if (has(O, key = names[i++])) { ~arrayIndexOf(result, key) || result.push(key); } return result; }; -},{"107":107,"11":11,"39":39,"93":93}],76:[function(_dereq_,module,exports){ + +},{"102":102,"11":11,"117":117,"41":41}],81:[function(_dereq_,module,exports){ // 19.1.2.14 / 15.2.3.14 Object.keys(O) -var $keys = _dereq_(75) - , enumBugKeys = _dereq_(30); +var $keys = _dereq_(80); +var enumBugKeys = _dereq_(31); -module.exports = Object.keys || function keys(O){ +module.exports = Object.keys || function keys(O) { return $keys(O, enumBugKeys); }; -},{"30":30,"75":75}],77:[function(_dereq_,module,exports){ + +},{"31":31,"80":80}],82:[function(_dereq_,module,exports){ exports.f = {}.propertyIsEnumerable; -},{}],78:[function(_dereq_,module,exports){ + +},{}],83:[function(_dereq_,module,exports){ // most Object methods by ES6 should accept primitives -var $export = _dereq_(32) - , core = _dereq_(23) - , fails = _dereq_(34); -module.exports = function(KEY, exec){ - var fn = (core.Object || {})[KEY] || Object[KEY] - , exp = {}; +var $export = _dereq_(33); +var core = _dereq_(23); +var fails = _dereq_(35); +module.exports = function (KEY, exec) { + var fn = (core.Object || {})[KEY] || Object[KEY]; + var exp = {}; exp[KEY] = exec(fn); - $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp); -}; -},{"23":23,"32":32,"34":34}],79:[function(_dereq_,module,exports){ -var getKeys = _dereq_(76) - , toIObject = _dereq_(107) - , isEnum = _dereq_(77).f; -module.exports = function(isEntries){ - return function(it){ - var O = toIObject(it) - , keys = getKeys(O) - , length = keys.length - , i = 0 - , result = [] - , key; - while(length > i)if(isEnum.call(O, key = keys[i++])){ + $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp); +}; + +},{"23":23,"33":33,"35":35}],84:[function(_dereq_,module,exports){ +var getKeys = _dereq_(81); +var toIObject = _dereq_(117); +var isEnum = _dereq_(82).f; +module.exports = function (isEntries) { + return function (it) { + var O = toIObject(it); + var keys = getKeys(O); + var length = keys.length; + var i = 0; + var result = []; + var key; + while (length > i) if (isEnum.call(O, key = keys[i++])) { result.push(isEntries ? [key, O[key]] : O[key]); } return result; }; }; -},{"107":107,"76":76,"77":77}],80:[function(_dereq_,module,exports){ + +},{"117":117,"81":81,"82":82}],85:[function(_dereq_,module,exports){ // all object keys, includes non-enumerable and symbols -var gOPN = _dereq_(72) - , gOPS = _dereq_(73) - , anObject = _dereq_(7) - , Reflect = _dereq_(38).Reflect; -module.exports = Reflect && Reflect.ownKeys || function ownKeys(it){ - var keys = gOPN.f(anObject(it)) - , getSymbols = gOPS.f; +var gOPN = _dereq_(77); +var gOPS = _dereq_(78); +var anObject = _dereq_(7); +var Reflect = _dereq_(40).Reflect; +module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) { + var keys = gOPN.f(anObject(it)); + var getSymbols = gOPS.f; return getSymbols ? keys.concat(getSymbols(it)) : keys; }; -},{"38":38,"7":7,"72":72,"73":73}],81:[function(_dereq_,module,exports){ -var $parseFloat = _dereq_(38).parseFloat - , $trim = _dereq_(102).trim; -module.exports = 1 / $parseFloat(_dereq_(103) + '-0') !== -Infinity ? function parseFloat(str){ - var string = $trim(String(str), 3) - , result = $parseFloat(string); +},{"40":40,"7":7,"77":77,"78":78}],86:[function(_dereq_,module,exports){ +var $parseFloat = _dereq_(40).parseFloat; +var $trim = _dereq_(111).trim; + +module.exports = 1 / $parseFloat(_dereq_(112) + '-0') !== -Infinity ? function parseFloat(str) { + var string = $trim(String(str), 3); + var result = $parseFloat(string); return result === 0 && string.charAt(0) == '-' ? -0 : result; } : $parseFloat; -},{"102":102,"103":103,"38":38}],82:[function(_dereq_,module,exports){ -var $parseInt = _dereq_(38).parseInt - , $trim = _dereq_(102).trim - , ws = _dereq_(103) - , hex = /^[\-+]?0[xX]/; -module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix){ +},{"111":111,"112":112,"40":40}],87:[function(_dereq_,module,exports){ +var $parseInt = _dereq_(40).parseInt; +var $trim = _dereq_(111).trim; +var ws = _dereq_(112); +var hex = /^[-+]?0[xX]/; + +module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) { var string = $trim(String(str), 3); return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10)); } : $parseInt; -},{"102":102,"103":103,"38":38}],83:[function(_dereq_,module,exports){ + +},{"111":111,"112":112,"40":40}],88:[function(_dereq_,module,exports){ 'use strict'; -var path = _dereq_(84) - , invoke = _dereq_(44) - , aFunction = _dereq_(3); -module.exports = function(/* ...pargs */){ - var fn = aFunction(this) - , length = arguments.length - , pargs = Array(length) - , i = 0 - , _ = path._ - , holder = false; - while(length > i)if((pargs[i] = arguments[i++]) === _)holder = true; - return function(/* ...args */){ - var that = this - , aLen = arguments.length - , j = 0, k = 0, args; - if(!holder && !aLen)return invoke(fn, pargs, that); +var path = _dereq_(89); +var invoke = _dereq_(46); +var aFunction = _dereq_(3); +module.exports = function (/* ...pargs */) { + var fn = aFunction(this); + var length = arguments.length; + var pargs = Array(length); + var i = 0; + var _ = path._; + var holder = false; + while (length > i) if ((pargs[i] = arguments[i++]) === _) holder = true; + return function (/* ...args */) { + var that = this; + var aLen = arguments.length; + var j = 0; + var k = 0; + var args; + if (!holder && !aLen) return invoke(fn, pargs, that); args = pargs.slice(); - if(holder)for(;length > j; j++)if(args[j] === _)args[j] = arguments[k++]; - while(aLen > k)args.push(arguments[k++]); + if (holder) for (;length > j; j++) if (args[j] === _) args[j] = arguments[k++]; + while (aLen > k) args.push(arguments[k++]); return invoke(fn, args, that); }; }; -},{"3":3,"44":44,"84":84}],84:[function(_dereq_,module,exports){ -module.exports = _dereq_(38); -},{"38":38}],85:[function(_dereq_,module,exports){ -module.exports = function(bitmap, value){ + +},{"3":3,"46":46,"89":89}],89:[function(_dereq_,module,exports){ +module.exports = _dereq_(40); + +},{"40":40}],90:[function(_dereq_,module,exports){ +module.exports = function (exec) { + try { + return { e: false, v: exec() }; + } catch (e) { + return { e: true, v: e }; + } +}; + +},{}],91:[function(_dereq_,module,exports){ +var newPromiseCapability = _dereq_(69); + +module.exports = function (C, x) { + var promiseCapability = newPromiseCapability.f(C); + var resolve = promiseCapability.resolve; + resolve(x); + return promiseCapability.promise; +}; + +},{"69":69}],92:[function(_dereq_,module,exports){ +module.exports = function (bitmap, value) { return { - enumerable : !(bitmap & 1), + enumerable: !(bitmap & 1), configurable: !(bitmap & 2), - writable : !(bitmap & 4), - value : value + writable: !(bitmap & 4), + value: value }; }; -},{}],86:[function(_dereq_,module,exports){ -var redefine = _dereq_(87); -module.exports = function(target, src, safe){ - for(var key in src)redefine(target, key, src[key], safe); + +},{}],93:[function(_dereq_,module,exports){ +var redefine = _dereq_(94); +module.exports = function (target, src, safe) { + for (var key in src) redefine(target, key, src[key], safe); return target; }; -},{"87":87}],87:[function(_dereq_,module,exports){ -var global = _dereq_(38) - , hide = _dereq_(40) - , has = _dereq_(39) - , SRC = _dereq_(114)('src') - , TO_STRING = 'toString' - , $toString = Function[TO_STRING] - , TPL = ('' + $toString).split(TO_STRING); -_dereq_(23).inspectSource = function(it){ +},{"94":94}],94:[function(_dereq_,module,exports){ +var global = _dereq_(40); +var hide = _dereq_(42); +var has = _dereq_(41); +var SRC = _dereq_(124)('src'); +var TO_STRING = 'toString'; +var $toString = Function[TO_STRING]; +var TPL = ('' + $toString).split(TO_STRING); + +_dereq_(23).inspectSource = function (it) { return $toString.call(it); }; -(module.exports = function(O, key, val, safe){ +(module.exports = function (O, key, val, safe) { var isFunction = typeof val == 'function'; - if(isFunction)has(val, 'name') || hide(val, 'name', key); - if(O[key] === val)return; - if(isFunction)has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); - if(O === global){ + if (isFunction) has(val, 'name') || hide(val, 'name', key); + if (O[key] === val) return; + if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); + if (O === global) { + O[key] = val; + } else if (!safe) { + delete O[key]; + hide(O, key, val); + } else if (O[key]) { O[key] = val; } else { - if(!safe){ - delete O[key]; - hide(O, key, val); - } else { - if(O[key])O[key] = val; - else hide(O, key, val); - } + hide(O, key, val); } // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative -})(Function.prototype, TO_STRING, function toString(){ +})(Function.prototype, TO_STRING, function toString() { return typeof this == 'function' && this[SRC] || $toString.call(this); }); -},{"114":114,"23":23,"38":38,"39":39,"40":40}],88:[function(_dereq_,module,exports){ -module.exports = function(regExp, replace){ - var replacer = replace === Object(replace) ? function(part){ + +},{"124":124,"23":23,"40":40,"41":41,"42":42}],95:[function(_dereq_,module,exports){ +module.exports = function (regExp, replace) { + var replacer = replace === Object(replace) ? function (part) { return replace[part]; } : replace; - return function(it){ + return function (it) { return String(it).replace(regExp, replacer); }; }; -},{}],89:[function(_dereq_,module,exports){ + +},{}],96:[function(_dereq_,module,exports){ // 7.2.9 SameValue(x, y) -module.exports = Object.is || function is(x, y){ +module.exports = Object.is || function is(x, y) { + // eslint-disable-next-line no-self-compare return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; }; -},{}],90:[function(_dereq_,module,exports){ + +},{}],97:[function(_dereq_,module,exports){ +'use strict'; +// https://tc39.github.io/proposal-setmap-offrom/ +var $export = _dereq_(33); +var aFunction = _dereq_(3); +var ctx = _dereq_(25); +var forOf = _dereq_(39); + +module.exports = function (COLLECTION) { + $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) { + var mapFn = arguments[1]; + var mapping, A, n, cb; + aFunction(this); + mapping = mapFn !== undefined; + if (mapping) aFunction(mapFn); + if (source == undefined) return new this(); + A = []; + if (mapping) { + n = 0; + cb = ctx(mapFn, arguments[2], 2); + forOf(source, false, function (nextItem) { + A.push(cb(nextItem, n++)); + }); + } else { + forOf(source, false, A.push, A); + } + return new this(A); + } }); +}; + +},{"25":25,"3":3,"33":33,"39":39}],98:[function(_dereq_,module,exports){ +'use strict'; +// https://tc39.github.io/proposal-setmap-offrom/ +var $export = _dereq_(33); + +module.exports = function (COLLECTION) { + $export($export.S, COLLECTION, { of: function of() { + var length = arguments.length; + var A = Array(length); + while (length--) A[length] = arguments[length]; + return new this(A); + } }); +}; + +},{"33":33}],99:[function(_dereq_,module,exports){ // Works with __proto__ only. Old v8 can't work with null proto objects. /* eslint-disable no-proto */ -var isObject = _dereq_(49) - , anObject = _dereq_(7); -var check = function(O, proto){ +var isObject = _dereq_(51); +var anObject = _dereq_(7); +var check = function (O, proto) { anObject(O); - if(!isObject(proto) && proto !== null)throw TypeError(proto + ": can't set as prototype!"); + if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); }; module.exports = { set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line - function(test, buggy, set){ + function (test, buggy, set) { try { - set = _dereq_(25)(Function.call, _dereq_(70).f(Object.prototype, '__proto__').set, 2); + set = _dereq_(25)(Function.call, _dereq_(75).f(Object.prototype, '__proto__').set, 2); set(test, []); buggy = !(test instanceof Array); - } catch(e){ buggy = true; } - return function setPrototypeOf(O, proto){ + } catch (e) { buggy = true; } + return function setPrototypeOf(O, proto) { check(O, proto); - if(buggy)O.__proto__ = proto; + if (buggy) O.__proto__ = proto; else set(O, proto); return O; }; }({}, false) : undefined), check: check }; -},{"25":25,"49":49,"7":7,"70":70}],91:[function(_dereq_,module,exports){ + +},{"25":25,"51":51,"7":7,"75":75}],100:[function(_dereq_,module,exports){ 'use strict'; -var global = _dereq_(38) - , dP = _dereq_(67) - , DESCRIPTORS = _dereq_(28) - , SPECIES = _dereq_(117)('species'); +var global = _dereq_(40); +var dP = _dereq_(72); +var DESCRIPTORS = _dereq_(29); +var SPECIES = _dereq_(128)('species'); -module.exports = function(KEY){ +module.exports = function (KEY) { var C = global[KEY]; - if(DESCRIPTORS && C && !C[SPECIES])dP.f(C, SPECIES, { + if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { configurable: true, - get: function(){ return this; } + get: function () { return this; } }); }; -},{"117":117,"28":28,"38":38,"67":67}],92:[function(_dereq_,module,exports){ -var def = _dereq_(67).f - , has = _dereq_(39) - , TAG = _dereq_(117)('toStringTag'); -module.exports = function(it, tag, stat){ - if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag}); +},{"128":128,"29":29,"40":40,"72":72}],101:[function(_dereq_,module,exports){ +var def = _dereq_(72).f; +var has = _dereq_(41); +var TAG = _dereq_(128)('toStringTag'); + +module.exports = function (it, tag, stat) { + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); }; -},{"117":117,"39":39,"67":67}],93:[function(_dereq_,module,exports){ -var shared = _dereq_(94)('keys') - , uid = _dereq_(114); -module.exports = function(key){ + +},{"128":128,"41":41,"72":72}],102:[function(_dereq_,module,exports){ +var shared = _dereq_(103)('keys'); +var uid = _dereq_(124); +module.exports = function (key) { return shared[key] || (shared[key] = uid(key)); }; -},{"114":114,"94":94}],94:[function(_dereq_,module,exports){ -var global = _dereq_(38) - , SHARED = '__core-js_shared__' - , store = global[SHARED] || (global[SHARED] = {}); -module.exports = function(key){ + +},{"103":103,"124":124}],103:[function(_dereq_,module,exports){ +var global = _dereq_(40); +var SHARED = '__core-js_shared__'; +var store = global[SHARED] || (global[SHARED] = {}); +module.exports = function (key) { return store[key] || (store[key] = {}); }; -},{"38":38}],95:[function(_dereq_,module,exports){ + +},{"40":40}],104:[function(_dereq_,module,exports){ // 7.3.20 SpeciesConstructor(O, defaultConstructor) -var anObject = _dereq_(7) - , aFunction = _dereq_(3) - , SPECIES = _dereq_(117)('species'); -module.exports = function(O, D){ - var C = anObject(O).constructor, S; +var anObject = _dereq_(7); +var aFunction = _dereq_(3); +var SPECIES = _dereq_(128)('species'); +module.exports = function (O, D) { + var C = anObject(O).constructor; + var S; return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); }; -},{"117":117,"3":3,"7":7}],96:[function(_dereq_,module,exports){ -var fails = _dereq_(34); -module.exports = function(method, arg){ - return !!method && fails(function(){ - arg ? method.call(null, function(){}, 1) : method.call(null); +},{"128":128,"3":3,"7":7}],105:[function(_dereq_,module,exports){ +'use strict'; +var fails = _dereq_(35); + +module.exports = function (method, arg) { + return !!method && fails(function () { + // eslint-disable-next-line no-useless-call + arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null); }); }; -},{"34":34}],97:[function(_dereq_,module,exports){ -var toInteger = _dereq_(106) - , defined = _dereq_(27); + +},{"35":35}],106:[function(_dereq_,module,exports){ +var toInteger = _dereq_(116); +var defined = _dereq_(28); // true -> String#at // false -> String#codePointAt -module.exports = function(TO_STRING){ - return function(that, pos){ - var s = String(defined(that)) - , i = toInteger(pos) - , l = s.length - , a, b; - if(i < 0 || i >= l)return TO_STRING ? '' : undefined; +module.exports = function (TO_STRING) { + return function (that, pos) { + var s = String(defined(that)); + var i = toInteger(pos); + var l = s.length; + var a, b; + if (i < 0 || i >= l) return TO_STRING ? '' : undefined; a = s.charCodeAt(i); return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff ? TO_STRING ? s.charAt(i) : a : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; }; }; -},{"106":106,"27":27}],98:[function(_dereq_,module,exports){ + +},{"116":116,"28":28}],107:[function(_dereq_,module,exports){ // helper for String#{startsWith, endsWith, includes} -var isRegExp = _dereq_(50) - , defined = _dereq_(27); +var isRegExp = _dereq_(52); +var defined = _dereq_(28); -module.exports = function(that, searchString, NAME){ - if(isRegExp(searchString))throw TypeError('String#' + NAME + " doesn't accept regex!"); +module.exports = function (that, searchString, NAME) { + if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!"); return String(defined(that)); }; -},{"27":27,"50":50}],99:[function(_dereq_,module,exports){ -var $export = _dereq_(32) - , fails = _dereq_(34) - , defined = _dereq_(27) - , quot = /"/g; + +},{"28":28,"52":52}],108:[function(_dereq_,module,exports){ +var $export = _dereq_(33); +var fails = _dereq_(35); +var defined = _dereq_(28); +var quot = /"/g; // B.2.3.2.1 CreateHTML(string, tag, attribute, value) -var createHTML = function(string, tag, attribute, value) { - var S = String(defined(string)) - , p1 = '<' + tag; - if(attribute !== '')p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"'; +var createHTML = function (string, tag, attribute, value) { + var S = String(defined(string)); + var p1 = '<' + tag; + if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"'; return p1 + '>' + S + ''; }; -module.exports = function(NAME, exec){ +module.exports = function (NAME, exec) { var O = {}; O[NAME] = exec(createHTML); - $export($export.P + $export.F * fails(function(){ + $export($export.P + $export.F * fails(function () { var test = ''[NAME]('"'); return test !== test.toLowerCase() || test.split('"').length > 3; }), 'String', O); }; -},{"27":27,"32":32,"34":34}],100:[function(_dereq_,module,exports){ + +},{"28":28,"33":33,"35":35}],109:[function(_dereq_,module,exports){ // https://github.com/tc39/proposal-string-pad-start-end -var toLength = _dereq_(108) - , repeat = _dereq_(101) - , defined = _dereq_(27); - -module.exports = function(that, maxLength, fillString, left){ - var S = String(defined(that)) - , stringLength = S.length - , fillStr = fillString === undefined ? ' ' : String(fillString) - , intMaxLength = toLength(maxLength); - if(intMaxLength <= stringLength || fillStr == '')return S; - var fillLen = intMaxLength - stringLength - , stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length)); - if(stringFiller.length > fillLen)stringFiller = stringFiller.slice(0, fillLen); +var toLength = _dereq_(118); +var repeat = _dereq_(110); +var defined = _dereq_(28); + +module.exports = function (that, maxLength, fillString, left) { + var S = String(defined(that)); + var stringLength = S.length; + var fillStr = fillString === undefined ? ' ' : String(fillString); + var intMaxLength = toLength(maxLength); + if (intMaxLength <= stringLength || fillStr == '') return S; + var fillLen = intMaxLength - stringLength; + var stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length)); + if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen); return left ? stringFiller + S : S + stringFiller; }; -},{"101":101,"108":108,"27":27}],101:[function(_dereq_,module,exports){ +},{"110":110,"118":118,"28":28}],110:[function(_dereq_,module,exports){ 'use strict'; -var toInteger = _dereq_(106) - , defined = _dereq_(27); - -module.exports = function repeat(count){ - var str = String(defined(this)) - , res = '' - , n = toInteger(count); - if(n < 0 || n == Infinity)throw RangeError("Count can't be negative"); - for(;n > 0; (n >>>= 1) && (str += str))if(n & 1)res += str; +var toInteger = _dereq_(116); +var defined = _dereq_(28); + +module.exports = function repeat(count) { + var str = String(defined(this)); + var res = ''; + var n = toInteger(count); + if (n < 0 || n == Infinity) throw RangeError("Count can't be negative"); + for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) res += str; return res; }; -},{"106":106,"27":27}],102:[function(_dereq_,module,exports){ -var $export = _dereq_(32) - , defined = _dereq_(27) - , fails = _dereq_(34) - , spaces = _dereq_(103) - , space = '[' + spaces + ']' - , non = '\u200b\u0085' - , ltrim = RegExp('^' + space + space + '*') - , rtrim = RegExp(space + space + '*$'); - -var exporter = function(KEY, exec, ALIAS){ - var exp = {}; - var FORCE = fails(function(){ + +},{"116":116,"28":28}],111:[function(_dereq_,module,exports){ +var $export = _dereq_(33); +var defined = _dereq_(28); +var fails = _dereq_(35); +var spaces = _dereq_(112); +var space = '[' + spaces + ']'; +var non = '\u200b\u0085'; +var ltrim = RegExp('^' + space + space + '*'); +var rtrim = RegExp(space + space + '*$'); + +var exporter = function (KEY, exec, ALIAS) { + var exp = {}; + var FORCE = fails(function () { return !!spaces[KEY]() || non[KEY]() != non; }); var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; - if(ALIAS)exp[ALIAS] = fn; + if (ALIAS) exp[ALIAS] = fn; $export($export.P + $export.F * FORCE, 'String', exp); }; // 1 -> String#trimLeft // 2 -> String#trimRight // 3 -> String#trim -var trim = exporter.trim = function(string, TYPE){ +var trim = exporter.trim = function (string, TYPE) { string = String(defined(string)); - if(TYPE & 1)string = string.replace(ltrim, ''); - if(TYPE & 2)string = string.replace(rtrim, ''); + if (TYPE & 1) string = string.replace(ltrim, ''); + if (TYPE & 2) string = string.replace(rtrim, ''); return string; }; module.exports = exporter; -},{"103":103,"27":27,"32":32,"34":34}],103:[function(_dereq_,module,exports){ + +},{"112":112,"28":28,"33":33,"35":35}],112:[function(_dereq_,module,exports){ module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; -},{}],104:[function(_dereq_,module,exports){ -var ctx = _dereq_(25) - , invoke = _dereq_(44) - , html = _dereq_(41) - , cel = _dereq_(29) - , global = _dereq_(38) - , process = global.process - , setTask = global.setImmediate - , clearTask = global.clearImmediate - , MessageChannel = global.MessageChannel - , counter = 0 - , queue = {} - , ONREADYSTATECHANGE = 'onreadystatechange' - , defer, channel, port; -var run = function(){ + +},{}],113:[function(_dereq_,module,exports){ +var ctx = _dereq_(25); +var invoke = _dereq_(46); +var html = _dereq_(43); +var cel = _dereq_(30); +var global = _dereq_(40); +var process = global.process; +var setTask = global.setImmediate; +var clearTask = global.clearImmediate; +var MessageChannel = global.MessageChannel; +var Dispatch = global.Dispatch; +var counter = 0; +var queue = {}; +var ONREADYSTATECHANGE = 'onreadystatechange'; +var defer, channel, port; +var run = function () { var id = +this; - if(queue.hasOwnProperty(id)){ + // eslint-disable-next-line no-prototype-builtins + if (queue.hasOwnProperty(id)) { var fn = queue[id]; delete queue[id]; fn(); } }; -var listener = function(event){ +var listener = function (event) { run.call(event.data); }; // Node.js 0.9+ & IE10+ has setImmediate, otherwise: -if(!setTask || !clearTask){ - setTask = function setImmediate(fn){ - var args = [], i = 1; - while(arguments.length > i)args.push(arguments[i++]); - queue[++counter] = function(){ +if (!setTask || !clearTask) { + setTask = function setImmediate(fn) { + var args = []; + var i = 1; + while (arguments.length > i) args.push(arguments[i++]); + queue[++counter] = function () { + // eslint-disable-next-line no-new-func invoke(typeof fn == 'function' ? fn : Function(fn), args); }; defer(counter); return counter; }; - clearTask = function clearImmediate(id){ + clearTask = function clearImmediate(id) { delete queue[id]; }; // Node.js 0.8- - if(_dereq_(18)(process) == 'process'){ - defer = function(id){ + if (_dereq_(18)(process) == 'process') { + defer = function (id) { process.nextTick(ctx(run, id, 1)); }; + // Sphere (JS game engine) Dispatch API + } else if (Dispatch && Dispatch.now) { + defer = function (id) { + Dispatch.now(ctx(run, id, 1)); + }; // Browsers with MessageChannel, includes WebWorkers - } else if(MessageChannel){ - channel = new MessageChannel; - port = channel.port2; + } else if (MessageChannel) { + channel = new MessageChannel(); + port = channel.port2; channel.port1.onmessage = listener; defer = ctx(port.postMessage, port, 1); // Browsers with postMessage, skip WebWorkers // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' - } else if(global.addEventListener && typeof postMessage == 'function' && !global.importScripts){ - defer = function(id){ + } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) { + defer = function (id) { global.postMessage(id + '', '*'); }; global.addEventListener('message', listener, false); // IE8- - } else if(ONREADYSTATECHANGE in cel('script')){ - defer = function(id){ - html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function(){ + } else if (ONREADYSTATECHANGE in cel('script')) { + defer = function (id) { + html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () { html.removeChild(this); run.call(id); }; }; // Rest old browsers } else { - defer = function(id){ + defer = function (id) { setTimeout(ctx(run, id, 1), 0); }; } } module.exports = { - set: setTask, + set: setTask, clear: clearTask }; -},{"18":18,"25":25,"29":29,"38":38,"41":41,"44":44}],105:[function(_dereq_,module,exports){ -var toInteger = _dereq_(106) - , max = Math.max - , min = Math.min; -module.exports = function(index, length){ + +},{"18":18,"25":25,"30":30,"40":40,"43":43,"46":46}],114:[function(_dereq_,module,exports){ +var toInteger = _dereq_(116); +var max = Math.max; +var min = Math.min; +module.exports = function (index, length) { index = toInteger(index); return index < 0 ? max(index + length, 0) : min(index, length); }; -},{"106":106}],106:[function(_dereq_,module,exports){ + +},{"116":116}],115:[function(_dereq_,module,exports){ +// https://tc39.github.io/ecma262/#sec-toindex +var toInteger = _dereq_(116); +var toLength = _dereq_(118); +module.exports = function (it) { + if (it === undefined) return 0; + var number = toInteger(it); + var length = toLength(number); + if (number !== length) throw RangeError('Wrong length!'); + return length; +}; + +},{"116":116,"118":118}],116:[function(_dereq_,module,exports){ // 7.1.4 ToInteger -var ceil = Math.ceil - , floor = Math.floor; -module.exports = function(it){ +var ceil = Math.ceil; +var floor = Math.floor; +module.exports = function (it) { return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); }; -},{}],107:[function(_dereq_,module,exports){ + +},{}],117:[function(_dereq_,module,exports){ // to indexed object, toObject with fallback for non-array-like ES3 strings -var IObject = _dereq_(45) - , defined = _dereq_(27); -module.exports = function(it){ +var IObject = _dereq_(47); +var defined = _dereq_(28); +module.exports = function (it) { return IObject(defined(it)); }; -},{"27":27,"45":45}],108:[function(_dereq_,module,exports){ + +},{"28":28,"47":47}],118:[function(_dereq_,module,exports){ // 7.1.15 ToLength -var toInteger = _dereq_(106) - , min = Math.min; -module.exports = function(it){ +var toInteger = _dereq_(116); +var min = Math.min; +module.exports = function (it) { return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 }; -},{"106":106}],109:[function(_dereq_,module,exports){ + +},{"116":116}],119:[function(_dereq_,module,exports){ // 7.1.13 ToObject(argument) -var defined = _dereq_(27); -module.exports = function(it){ +var defined = _dereq_(28); +module.exports = function (it) { return Object(defined(it)); }; -},{"27":27}],110:[function(_dereq_,module,exports){ + +},{"28":28}],120:[function(_dereq_,module,exports){ // 7.1.1 ToPrimitive(input [, PreferredType]) -var isObject = _dereq_(49); +var isObject = _dereq_(51); // instead of the ES6 spec version, we didn't implement @@toPrimitive case // and the second argument - flag - preferred type is a string -module.exports = function(it, S){ - if(!isObject(it))return it; +module.exports = function (it, S) { + if (!isObject(it)) return it; var fn, val; - if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val; - if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val; - if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val; + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; throw TypeError("Can't convert object to primitive value"); }; -},{"49":49}],111:[function(_dereq_,module,exports){ + +},{"51":51}],121:[function(_dereq_,module,exports){ 'use strict'; -if(_dereq_(28)){ - var LIBRARY = _dereq_(58) - , global = _dereq_(38) - , fails = _dereq_(34) - , $export = _dereq_(32) - , $typed = _dereq_(113) - , $buffer = _dereq_(112) - , ctx = _dereq_(25) - , anInstance = _dereq_(6) - , propertyDesc = _dereq_(85) - , hide = _dereq_(40) - , redefineAll = _dereq_(86) - , toInteger = _dereq_(106) - , toLength = _dereq_(108) - , toIndex = _dereq_(105) - , toPrimitive = _dereq_(110) - , has = _dereq_(39) - , same = _dereq_(89) - , classof = _dereq_(17) - , isObject = _dereq_(49) - , toObject = _dereq_(109) - , isArrayIter = _dereq_(46) - , create = _dereq_(66) - , getPrototypeOf = _dereq_(74) - , gOPN = _dereq_(72).f - , getIterFn = _dereq_(118) - , uid = _dereq_(114) - , wks = _dereq_(117) - , createArrayMethod = _dereq_(12) - , createArrayIncludes = _dereq_(11) - , speciesConstructor = _dereq_(95) - , ArrayIterators = _dereq_(130) - , Iterators = _dereq_(56) - , $iterDetect = _dereq_(54) - , setSpecies = _dereq_(91) - , arrayFill = _dereq_(9) - , arrayCopyWithin = _dereq_(8) - , $DP = _dereq_(67) - , $GOPD = _dereq_(70) - , dP = $DP.f - , gOPD = $GOPD.f - , RangeError = global.RangeError - , TypeError = global.TypeError - , Uint8Array = global.Uint8Array - , ARRAY_BUFFER = 'ArrayBuffer' - , SHARED_BUFFER = 'Shared' + ARRAY_BUFFER - , BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT' - , PROTOTYPE = 'prototype' - , ArrayProto = Array[PROTOTYPE] - , $ArrayBuffer = $buffer.ArrayBuffer - , $DataView = $buffer.DataView - , arrayForEach = createArrayMethod(0) - , arrayFilter = createArrayMethod(2) - , arraySome = createArrayMethod(3) - , arrayEvery = createArrayMethod(4) - , arrayFind = createArrayMethod(5) - , arrayFindIndex = createArrayMethod(6) - , arrayIncludes = createArrayIncludes(true) - , arrayIndexOf = createArrayIncludes(false) - , arrayValues = ArrayIterators.values - , arrayKeys = ArrayIterators.keys - , arrayEntries = ArrayIterators.entries - , arrayLastIndexOf = ArrayProto.lastIndexOf - , arrayReduce = ArrayProto.reduce - , arrayReduceRight = ArrayProto.reduceRight - , arrayJoin = ArrayProto.join - , arraySort = ArrayProto.sort - , arraySlice = ArrayProto.slice - , arrayToString = ArrayProto.toString - , arrayToLocaleString = ArrayProto.toLocaleString - , ITERATOR = wks('iterator') - , TAG = wks('toStringTag') - , TYPED_CONSTRUCTOR = uid('typed_constructor') - , DEF_CONSTRUCTOR = uid('def_constructor') - , ALL_CONSTRUCTORS = $typed.CONSTR - , TYPED_ARRAY = $typed.TYPED - , VIEW = $typed.VIEW - , WRONG_LENGTH = 'Wrong length!'; - - var $map = createArrayMethod(1, function(O, length){ +if (_dereq_(29)) { + var LIBRARY = _dereq_(60); + var global = _dereq_(40); + var fails = _dereq_(35); + var $export = _dereq_(33); + var $typed = _dereq_(123); + var $buffer = _dereq_(122); + var ctx = _dereq_(25); + var anInstance = _dereq_(6); + var propertyDesc = _dereq_(92); + var hide = _dereq_(42); + var redefineAll = _dereq_(93); + var toInteger = _dereq_(116); + var toLength = _dereq_(118); + var toIndex = _dereq_(115); + var toAbsoluteIndex = _dereq_(114); + var toPrimitive = _dereq_(120); + var has = _dereq_(41); + var classof = _dereq_(17); + var isObject = _dereq_(51); + var toObject = _dereq_(119); + var isArrayIter = _dereq_(48); + var create = _dereq_(71); + var getPrototypeOf = _dereq_(79); + var gOPN = _dereq_(77).f; + var getIterFn = _dereq_(129); + var uid = _dereq_(124); + var wks = _dereq_(128); + var createArrayMethod = _dereq_(12); + var createArrayIncludes = _dereq_(11); + var speciesConstructor = _dereq_(104); + var ArrayIterators = _dereq_(141); + var Iterators = _dereq_(58); + var $iterDetect = _dereq_(56); + var setSpecies = _dereq_(100); + var arrayFill = _dereq_(9); + var arrayCopyWithin = _dereq_(8); + var $DP = _dereq_(72); + var $GOPD = _dereq_(75); + var dP = $DP.f; + var gOPD = $GOPD.f; + var RangeError = global.RangeError; + var TypeError = global.TypeError; + var Uint8Array = global.Uint8Array; + var ARRAY_BUFFER = 'ArrayBuffer'; + var SHARED_BUFFER = 'Shared' + ARRAY_BUFFER; + var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT'; + var PROTOTYPE = 'prototype'; + var ArrayProto = Array[PROTOTYPE]; + var $ArrayBuffer = $buffer.ArrayBuffer; + var $DataView = $buffer.DataView; + var arrayForEach = createArrayMethod(0); + var arrayFilter = createArrayMethod(2); + var arraySome = createArrayMethod(3); + var arrayEvery = createArrayMethod(4); + var arrayFind = createArrayMethod(5); + var arrayFindIndex = createArrayMethod(6); + var arrayIncludes = createArrayIncludes(true); + var arrayIndexOf = createArrayIncludes(false); + var arrayValues = ArrayIterators.values; + var arrayKeys = ArrayIterators.keys; + var arrayEntries = ArrayIterators.entries; + var arrayLastIndexOf = ArrayProto.lastIndexOf; + var arrayReduce = ArrayProto.reduce; + var arrayReduceRight = ArrayProto.reduceRight; + var arrayJoin = ArrayProto.join; + var arraySort = ArrayProto.sort; + var arraySlice = ArrayProto.slice; + var arrayToString = ArrayProto.toString; + var arrayToLocaleString = ArrayProto.toLocaleString; + var ITERATOR = wks('iterator'); + var TAG = wks('toStringTag'); + var TYPED_CONSTRUCTOR = uid('typed_constructor'); + var DEF_CONSTRUCTOR = uid('def_constructor'); + var ALL_CONSTRUCTORS = $typed.CONSTR; + var TYPED_ARRAY = $typed.TYPED; + var VIEW = $typed.VIEW; + var WRONG_LENGTH = 'Wrong length!'; + + var $map = createArrayMethod(1, function (O, length) { return allocate(speciesConstructor(O, O[DEF_CONSTRUCTOR]), length); }); - var LITTLE_ENDIAN = fails(function(){ + var LITTLE_ENDIAN = fails(function () { + // eslint-disable-next-line no-undef return new Uint8Array(new Uint16Array([1]).buffer)[0] === 1; }); - var FORCED_SET = !!Uint8Array && !!Uint8Array[PROTOTYPE].set && fails(function(){ + var FORCED_SET = !!Uint8Array && !!Uint8Array[PROTOTYPE].set && fails(function () { new Uint8Array(1).set({}); }); - var strictToLength = function(it, SAME){ - if(it === undefined)throw TypeError(WRONG_LENGTH); - var number = +it - , length = toLength(it); - if(SAME && !same(number, length))throw RangeError(WRONG_LENGTH); - return length; - }; - - var toOffset = function(it, BYTES){ + var toOffset = function (it, BYTES) { var offset = toInteger(it); - if(offset < 0 || offset % BYTES)throw RangeError('Wrong offset!'); + if (offset < 0 || offset % BYTES) throw RangeError('Wrong offset!'); return offset; }; - var validate = function(it){ - if(isObject(it) && TYPED_ARRAY in it)return it; + var validate = function (it) { + if (isObject(it) && TYPED_ARRAY in it) return it; throw TypeError(it + ' is not a typed array!'); }; - var allocate = function(C, length){ - if(!(isObject(C) && TYPED_CONSTRUCTOR in C)){ + var allocate = function (C, length) { + if (!(isObject(C) && TYPED_CONSTRUCTOR in C)) { throw TypeError('It is not a typed array constructor!'); } return new C(length); }; - var speciesFromList = function(O, list){ + var speciesFromList = function (O, list) { return fromList(speciesConstructor(O, O[DEF_CONSTRUCTOR]), list); }; - var fromList = function(C, list){ - var index = 0 - , length = list.length - , result = allocate(C, length); - while(length > index)result[index] = list[index++]; + var fromList = function (C, list) { + var index = 0; + var length = list.length; + var result = allocate(C, length); + while (length > index) result[index] = list[index++]; return result; }; - var addGetter = function(it, key, internal){ - dP(it, key, {get: function(){ return this._d[internal]; }}); + var addGetter = function (it, key, internal) { + dP(it, key, { get: function () { return this._d[internal]; } }); }; - var $from = function from(source /*, mapfn, thisArg */){ - var O = toObject(source) - , aLen = arguments.length - , mapfn = aLen > 1 ? arguments[1] : undefined - , mapping = mapfn !== undefined - , iterFn = getIterFn(O) - , i, length, values, result, step, iterator; - if(iterFn != undefined && !isArrayIter(iterFn)){ - for(iterator = iterFn.call(O), values = [], i = 0; !(step = iterator.next()).done; i++){ + var $from = function from(source /* , mapfn, thisArg */) { + var O = toObject(source); + var aLen = arguments.length; + var mapfn = aLen > 1 ? arguments[1] : undefined; + var mapping = mapfn !== undefined; + var iterFn = getIterFn(O); + var i, length, values, result, step, iterator; + if (iterFn != undefined && !isArrayIter(iterFn)) { + for (iterator = iterFn.call(O), values = [], i = 0; !(step = iterator.next()).done; i++) { values.push(step.value); } O = values; } - if(mapping && aLen > 2)mapfn = ctx(mapfn, arguments[2], 2); - for(i = 0, length = toLength(O.length), result = allocate(this, length); length > i; i++){ + if (mapping && aLen > 2) mapfn = ctx(mapfn, arguments[2], 2); + for (i = 0, length = toLength(O.length), result = allocate(this, length); length > i; i++) { result[i] = mapping ? mapfn(O[i], i) : O[i]; } return result; }; - var $of = function of(/*...items*/){ - var index = 0 - , length = arguments.length - , result = allocate(this, length); - while(length > index)result[index] = arguments[index++]; + var $of = function of(/* ...items */) { + var index = 0; + var length = arguments.length; + var result = allocate(this, length); + while (length > index) result[index] = arguments[index++]; return result; }; // iOS Safari 6.x fails here - var TO_LOCALE_BUG = !!Uint8Array && fails(function(){ arrayToLocaleString.call(new Uint8Array(1)); }); + var TO_LOCALE_BUG = !!Uint8Array && fails(function () { arrayToLocaleString.call(new Uint8Array(1)); }); - var $toLocaleString = function toLocaleString(){ + var $toLocaleString = function toLocaleString() { return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate(this)) : validate(this), arguments); }; var proto = { - copyWithin: function copyWithin(target, start /*, end */){ + copyWithin: function copyWithin(target, start /* , end */) { return arrayCopyWithin.call(validate(this), target, start, arguments.length > 2 ? arguments[2] : undefined); }, - every: function every(callbackfn /*, thisArg */){ + every: function every(callbackfn /* , thisArg */) { return arrayEvery(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }, - fill: function fill(value /*, start, end */){ // eslint-disable-line no-unused-vars + fill: function fill(value /* , start, end */) { // eslint-disable-line no-unused-vars return arrayFill.apply(validate(this), arguments); }, - filter: function filter(callbackfn /*, thisArg */){ + filter: function filter(callbackfn /* , thisArg */) { return speciesFromList(this, arrayFilter(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined)); }, - find: function find(predicate /*, thisArg */){ + find: function find(predicate /* , thisArg */) { return arrayFind(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined); }, - findIndex: function findIndex(predicate /*, thisArg */){ + findIndex: function findIndex(predicate /* , thisArg */) { return arrayFindIndex(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined); }, - forEach: function forEach(callbackfn /*, thisArg */){ + forEach: function forEach(callbackfn /* , thisArg */) { arrayForEach(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }, - indexOf: function indexOf(searchElement /*, fromIndex */){ + indexOf: function indexOf(searchElement /* , fromIndex */) { return arrayIndexOf(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); }, - includes: function includes(searchElement /*, fromIndex */){ + includes: function includes(searchElement /* , fromIndex */) { return arrayIncludes(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); }, - join: function join(separator){ // eslint-disable-line no-unused-vars + join: function join(separator) { // eslint-disable-line no-unused-vars return arrayJoin.apply(validate(this), arguments); }, - lastIndexOf: function lastIndexOf(searchElement /*, fromIndex */){ // eslint-disable-line no-unused-vars + lastIndexOf: function lastIndexOf(searchElement /* , fromIndex */) { // eslint-disable-line no-unused-vars return arrayLastIndexOf.apply(validate(this), arguments); }, - map: function map(mapfn /*, thisArg */){ + map: function map(mapfn /* , thisArg */) { return $map(validate(this), mapfn, arguments.length > 1 ? arguments[1] : undefined); }, - reduce: function reduce(callbackfn /*, initialValue */){ // eslint-disable-line no-unused-vars + reduce: function reduce(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars return arrayReduce.apply(validate(this), arguments); }, - reduceRight: function reduceRight(callbackfn /*, initialValue */){ // eslint-disable-line no-unused-vars + reduceRight: function reduceRight(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars return arrayReduceRight.apply(validate(this), arguments); }, - reverse: function reverse(){ - var that = this - , length = validate(that).length - , middle = Math.floor(length / 2) - , index = 0 - , value; - while(index < middle){ - value = that[index]; + reverse: function reverse() { + var that = this; + var length = validate(that).length; + var middle = Math.floor(length / 2); + var index = 0; + var value; + while (index < middle) { + value = that[index]; that[index++] = that[--length]; - that[length] = value; + that[length] = value; } return that; }, - some: function some(callbackfn /*, thisArg */){ + some: function some(callbackfn /* , thisArg */) { return arraySome(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }, - sort: function sort(comparefn){ + sort: function sort(comparefn) { return arraySort.call(validate(this), comparefn); }, - subarray: function subarray(begin, end){ - var O = validate(this) - , length = O.length - , $begin = toIndex(begin, length); + subarray: function subarray(begin, end) { + var O = validate(this); + var length = O.length; + var $begin = toAbsoluteIndex(begin, length); return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))( O.buffer, O.byteOffset + $begin * O.BYTES_PER_ELEMENT, - toLength((end === undefined ? length : toIndex(end, length)) - $begin) + toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - $begin) ); } }; - var $slice = function slice(start, end){ + var $slice = function slice(start, end) { return speciesFromList(this, arraySlice.call(validate(this), start, end)); }; - var $set = function set(arrayLike /*, offset */){ + var $set = function set(arrayLike /* , offset */) { validate(this); - var offset = toOffset(arguments[1], 1) - , length = this.length - , src = toObject(arrayLike) - , len = toLength(src.length) - , index = 0; - if(len + offset > length)throw RangeError(WRONG_LENGTH); - while(index < len)this[offset + index] = src[index++]; + var offset = toOffset(arguments[1], 1); + var length = this.length; + var src = toObject(arrayLike); + var len = toLength(src.length); + var index = 0; + if (len + offset > length) throw RangeError(WRONG_LENGTH); + while (index < len) this[offset + index] = src[index++]; }; var $iterators = { - entries: function entries(){ + entries: function entries() { return arrayEntries.call(validate(this)); }, - keys: function keys(){ + keys: function keys() { return arrayKeys.call(validate(this)); }, - values: function values(){ + values: function values() { return arrayValues.call(validate(this)); } }; - var isTAIndex = function(target, key){ + var isTAIndex = function (target, key) { return isObject(target) && target[TYPED_ARRAY] && typeof key != 'symbol' && key in target && String(+key) == String(key); }; - var $getDesc = function getOwnPropertyDescriptor(target, key){ + var $getDesc = function getOwnPropertyDescriptor(target, key) { return isTAIndex(target, key = toPrimitive(key, true)) ? propertyDesc(2, target[key]) : gOPD(target, key); }; - var $setDesc = function defineProperty(target, key, desc){ - if(isTAIndex(target, key = toPrimitive(key, true)) + var $setDesc = function defineProperty(target, key, desc) { + if (isTAIndex(target, key = toPrimitive(key, true)) && isObject(desc) && has(desc, 'value') && !has(desc, 'get') @@ -2214,36 +2552,36 @@ if(_dereq_(28)){ && !desc.configurable && (!has(desc, 'writable') || desc.writable) && (!has(desc, 'enumerable') || desc.enumerable) - ){ + ) { target[key] = desc.value; return target; - } else return dP(target, key, desc); + } return dP(target, key, desc); }; - if(!ALL_CONSTRUCTORS){ + if (!ALL_CONSTRUCTORS) { $GOPD.f = $getDesc; - $DP.f = $setDesc; + $DP.f = $setDesc; } $export($export.S + $export.F * !ALL_CONSTRUCTORS, 'Object', { getOwnPropertyDescriptor: $getDesc, - defineProperty: $setDesc + defineProperty: $setDesc }); - if(fails(function(){ arrayToString.call({}); })){ - arrayToString = arrayToLocaleString = function toString(){ + if (fails(function () { arrayToString.call({}); })) { + arrayToString = arrayToLocaleString = function toString() { return arrayJoin.call(this); - } + }; } var $TypedArrayPrototype$ = redefineAll({}, proto); redefineAll($TypedArrayPrototype$, $iterators); hide($TypedArrayPrototype$, ITERATOR, $iterators.values); redefineAll($TypedArrayPrototype$, { - slice: $slice, - set: $set, - constructor: function(){ /* noop */ }, - toString: arrayToString, + slice: $slice, + set: $set, + constructor: function () { /* noop */ }, + toString: arrayToString, toLocaleString: $toLocaleString }); addGetter($TypedArrayPrototype$, 'buffer', 'b'); @@ -2251,65 +2589,65 @@ if(_dereq_(28)){ addGetter($TypedArrayPrototype$, 'byteLength', 'l'); addGetter($TypedArrayPrototype$, 'length', 'e'); dP($TypedArrayPrototype$, TAG, { - get: function(){ return this[TYPED_ARRAY]; } + get: function () { return this[TYPED_ARRAY]; } }); - module.exports = function(KEY, BYTES, wrapper, CLAMPED){ + // eslint-disable-next-line max-statements + module.exports = function (KEY, BYTES, wrapper, CLAMPED) { CLAMPED = !!CLAMPED; - var NAME = KEY + (CLAMPED ? 'Clamped' : '') + 'Array' - , ISNT_UINT8 = NAME != 'Uint8Array' - , GETTER = 'get' + KEY - , SETTER = 'set' + KEY - , TypedArray = global[NAME] - , Base = TypedArray || {} - , TAC = TypedArray && getPrototypeOf(TypedArray) - , FORCED = !TypedArray || !$typed.ABV - , O = {} - , TypedArrayPrototype = TypedArray && TypedArray[PROTOTYPE]; - var getter = function(that, index){ + var NAME = KEY + (CLAMPED ? 'Clamped' : '') + 'Array'; + var GETTER = 'get' + KEY; + var SETTER = 'set' + KEY; + var TypedArray = global[NAME]; + var Base = TypedArray || {}; + var TAC = TypedArray && getPrototypeOf(TypedArray); + var FORCED = !TypedArray || !$typed.ABV; + var O = {}; + var TypedArrayPrototype = TypedArray && TypedArray[PROTOTYPE]; + var getter = function (that, index) { var data = that._d; return data.v[GETTER](index * BYTES + data.o, LITTLE_ENDIAN); }; - var setter = function(that, index, value){ + var setter = function (that, index, value) { var data = that._d; - if(CLAMPED)value = (value = Math.round(value)) < 0 ? 0 : value > 0xff ? 0xff : value & 0xff; + if (CLAMPED) value = (value = Math.round(value)) < 0 ? 0 : value > 0xff ? 0xff : value & 0xff; data.v[SETTER](index * BYTES + data.o, value, LITTLE_ENDIAN); }; - var addElement = function(that, index){ + var addElement = function (that, index) { dP(that, index, { - get: function(){ + get: function () { return getter(this, index); }, - set: function(value){ + set: function (value) { return setter(this, index, value); }, enumerable: true }); }; - if(FORCED){ - TypedArray = wrapper(function(that, data, $offset, $length){ + if (FORCED) { + TypedArray = wrapper(function (that, data, $offset, $length) { anInstance(that, TypedArray, NAME, '_d'); - var index = 0 - , offset = 0 - , buffer, byteLength, length, klass; - if(!isObject(data)){ - length = strictToLength(data, true) + var index = 0; + var offset = 0; + var buffer, byteLength, length, klass; + if (!isObject(data)) { + length = toIndex(data); byteLength = length * BYTES; - buffer = new $ArrayBuffer(byteLength); - } else if(data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER){ + buffer = new $ArrayBuffer(byteLength); + } else if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) { buffer = data; offset = toOffset($offset, BYTES); var $len = data.byteLength; - if($length === undefined){ - if($len % BYTES)throw RangeError(WRONG_LENGTH); + if ($length === undefined) { + if ($len % BYTES) throw RangeError(WRONG_LENGTH); byteLength = $len - offset; - if(byteLength < 0)throw RangeError(WRONG_LENGTH); + if (byteLength < 0) throw RangeError(WRONG_LENGTH); } else { byteLength = toLength($length) * BYTES; - if(byteLength + offset > $len)throw RangeError(WRONG_LENGTH); + if (byteLength + offset > $len) throw RangeError(WRONG_LENGTH); } length = byteLength / BYTES; - } else if(TYPED_ARRAY in data){ + } else if (TYPED_ARRAY in data) { return fromList(TypedArray, data); } else { return $from.call(TypedArray, data); @@ -2321,49 +2659,54 @@ if(_dereq_(28)){ e: length, v: new $DataView(buffer) }); - while(index < length)addElement(that, index++); + while (index < length) addElement(that, index++); }); TypedArrayPrototype = TypedArray[PROTOTYPE] = create($TypedArrayPrototype$); hide(TypedArrayPrototype, 'constructor', TypedArray); - } else if(!$iterDetect(function(iter){ - // V8 works with iterators, but fails in many other cases - // https://code.google.com/p/v8/issues/detail?id=4552 + } else if (!fails(function () { + TypedArray(1); + }) || !fails(function () { + new TypedArray(-1); // eslint-disable-line no-new + }) || !$iterDetect(function (iter) { + new TypedArray(); // eslint-disable-line no-new new TypedArray(null); // eslint-disable-line no-new + new TypedArray(1.5); // eslint-disable-line no-new new TypedArray(iter); // eslint-disable-line no-new - }, true)){ - TypedArray = wrapper(function(that, data, $offset, $length){ + }, true)) { + TypedArray = wrapper(function (that, data, $offset, $length) { anInstance(that, TypedArray, NAME); var klass; // `ws` module bug, temporarily remove validation length for Uint8Array // https://github.com/websockets/ws/pull/645 - if(!isObject(data))return new Base(strictToLength(data, ISNT_UINT8)); - if(data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER){ + if (!isObject(data)) return new Base(toIndex(data)); + if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) { return $length !== undefined ? new Base(data, toOffset($offset, BYTES), $length) : $offset !== undefined ? new Base(data, toOffset($offset, BYTES)) : new Base(data); } - if(TYPED_ARRAY in data)return fromList(TypedArray, data); + if (TYPED_ARRAY in data) return fromList(TypedArray, data); return $from.call(TypedArray, data); }); - arrayForEach(TAC !== Function.prototype ? gOPN(Base).concat(gOPN(TAC)) : gOPN(Base), function(key){ - if(!(key in TypedArray))hide(TypedArray, key, Base[key]); + arrayForEach(TAC !== Function.prototype ? gOPN(Base).concat(gOPN(TAC)) : gOPN(Base), function (key) { + if (!(key in TypedArray)) hide(TypedArray, key, Base[key]); }); TypedArray[PROTOTYPE] = TypedArrayPrototype; - if(!LIBRARY)TypedArrayPrototype.constructor = TypedArray; + if (!LIBRARY) TypedArrayPrototype.constructor = TypedArray; } - var $nativeIterator = TypedArrayPrototype[ITERATOR] - , CORRECT_ITER_NAME = !!$nativeIterator && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined) - , $iterator = $iterators.values; + var $nativeIterator = TypedArrayPrototype[ITERATOR]; + var CORRECT_ITER_NAME = !!$nativeIterator + && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined); + var $iterator = $iterators.values; hide(TypedArray, TYPED_CONSTRUCTOR, true); hide(TypedArrayPrototype, TYPED_ARRAY, NAME); hide(TypedArrayPrototype, VIEW, true); hide(TypedArrayPrototype, DEF_CONSTRUCTOR, TypedArray); - if(CLAMPED ? new TypedArray(1)[TAG] != NAME : !(TAG in TypedArrayPrototype)){ + if (CLAMPED ? new TypedArray(1)[TAG] != NAME : !(TAG in TypedArrayPrototype)) { dP(TypedArrayPrototype, TAG, { - get: function(){ return NAME; } + get: function () { return NAME; } }); } @@ -2372,109 +2715,117 @@ if(_dereq_(28)){ $export($export.G + $export.W + $export.F * (TypedArray != Base), O); $export($export.S, NAME, { - BYTES_PER_ELEMENT: BYTES, + BYTES_PER_ELEMENT: BYTES + }); + + $export($export.S + $export.F * fails(function () { Base.of.call(TypedArray, 1); }), NAME, { from: $from, of: $of }); - if(!(BYTES_PER_ELEMENT in TypedArrayPrototype))hide(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES); + if (!(BYTES_PER_ELEMENT in TypedArrayPrototype)) hide(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES); $export($export.P, NAME, proto); setSpecies(NAME); - $export($export.P + $export.F * FORCED_SET, NAME, {set: $set}); + $export($export.P + $export.F * FORCED_SET, NAME, { set: $set }); $export($export.P + $export.F * !CORRECT_ITER_NAME, NAME, $iterators); - $export($export.P + $export.F * (TypedArrayPrototype.toString != arrayToString), NAME, {toString: arrayToString}); + if (!LIBRARY && TypedArrayPrototype.toString != arrayToString) TypedArrayPrototype.toString = arrayToString; - $export($export.P + $export.F * fails(function(){ + $export($export.P + $export.F * fails(function () { new TypedArray(1).slice(); - }), NAME, {slice: $slice}); + }), NAME, { slice: $slice }); - $export($export.P + $export.F * (fails(function(){ - return [1, 2].toLocaleString() != new TypedArray([1, 2]).toLocaleString() - }) || !fails(function(){ + $export($export.P + $export.F * (fails(function () { + return [1, 2].toLocaleString() != new TypedArray([1, 2]).toLocaleString(); + }) || !fails(function () { TypedArrayPrototype.toLocaleString.call([1, 2]); - })), NAME, {toLocaleString: $toLocaleString}); + })), NAME, { toLocaleString: $toLocaleString }); Iterators[NAME] = CORRECT_ITER_NAME ? $nativeIterator : $iterator; - if(!LIBRARY && !CORRECT_ITER_NAME)hide(TypedArrayPrototype, ITERATOR, $iterator); + if (!LIBRARY && !CORRECT_ITER_NAME) hide(TypedArrayPrototype, ITERATOR, $iterator); }; -} else module.exports = function(){ /* empty */ }; -},{"105":105,"106":106,"108":108,"109":109,"11":11,"110":110,"112":112,"113":113,"114":114,"117":117,"118":118,"12":12,"130":130,"17":17,"25":25,"28":28,"32":32,"34":34,"38":38,"39":39,"40":40,"46":46,"49":49,"54":54,"56":56,"58":58,"6":6,"66":66,"67":67,"70":70,"72":72,"74":74,"8":8,"85":85,"86":86,"89":89,"9":9,"91":91,"95":95}],112:[function(_dereq_,module,exports){ +} else module.exports = function () { /* empty */ }; + +},{"100":100,"104":104,"11":11,"114":114,"115":115,"116":116,"118":118,"119":119,"12":12,"120":120,"122":122,"123":123,"124":124,"128":128,"129":129,"141":141,"17":17,"25":25,"29":29,"33":33,"35":35,"40":40,"41":41,"42":42,"48":48,"51":51,"56":56,"58":58,"6":6,"60":60,"71":71,"72":72,"75":75,"77":77,"79":79,"8":8,"9":9,"92":92,"93":93}],122:[function(_dereq_,module,exports){ 'use strict'; -var global = _dereq_(38) - , DESCRIPTORS = _dereq_(28) - , LIBRARY = _dereq_(58) - , $typed = _dereq_(113) - , hide = _dereq_(40) - , redefineAll = _dereq_(86) - , fails = _dereq_(34) - , anInstance = _dereq_(6) - , toInteger = _dereq_(106) - , toLength = _dereq_(108) - , gOPN = _dereq_(72).f - , dP = _dereq_(67).f - , arrayFill = _dereq_(9) - , setToStringTag = _dereq_(92) - , ARRAY_BUFFER = 'ArrayBuffer' - , DATA_VIEW = 'DataView' - , PROTOTYPE = 'prototype' - , WRONG_LENGTH = 'Wrong length!' - , WRONG_INDEX = 'Wrong index!' - , $ArrayBuffer = global[ARRAY_BUFFER] - , $DataView = global[DATA_VIEW] - , Math = global.Math - , RangeError = global.RangeError - , Infinity = global.Infinity - , BaseBuffer = $ArrayBuffer - , abs = Math.abs - , pow = Math.pow - , floor = Math.floor - , log = Math.log - , LN2 = Math.LN2 - , BUFFER = 'buffer' - , BYTE_LENGTH = 'byteLength' - , BYTE_OFFSET = 'byteOffset' - , $BUFFER = DESCRIPTORS ? '_b' : BUFFER - , $LENGTH = DESCRIPTORS ? '_l' : BYTE_LENGTH - , $OFFSET = DESCRIPTORS ? '_o' : BYTE_OFFSET; +var global = _dereq_(40); +var DESCRIPTORS = _dereq_(29); +var LIBRARY = _dereq_(60); +var $typed = _dereq_(123); +var hide = _dereq_(42); +var redefineAll = _dereq_(93); +var fails = _dereq_(35); +var anInstance = _dereq_(6); +var toInteger = _dereq_(116); +var toLength = _dereq_(118); +var toIndex = _dereq_(115); +var gOPN = _dereq_(77).f; +var dP = _dereq_(72).f; +var arrayFill = _dereq_(9); +var setToStringTag = _dereq_(101); +var ARRAY_BUFFER = 'ArrayBuffer'; +var DATA_VIEW = 'DataView'; +var PROTOTYPE = 'prototype'; +var WRONG_LENGTH = 'Wrong length!'; +var WRONG_INDEX = 'Wrong index!'; +var $ArrayBuffer = global[ARRAY_BUFFER]; +var $DataView = global[DATA_VIEW]; +var Math = global.Math; +var RangeError = global.RangeError; +// eslint-disable-next-line no-shadow-restricted-names +var Infinity = global.Infinity; +var BaseBuffer = $ArrayBuffer; +var abs = Math.abs; +var pow = Math.pow; +var floor = Math.floor; +var log = Math.log; +var LN2 = Math.LN2; +var BUFFER = 'buffer'; +var BYTE_LENGTH = 'byteLength'; +var BYTE_OFFSET = 'byteOffset'; +var $BUFFER = DESCRIPTORS ? '_b' : BUFFER; +var $LENGTH = DESCRIPTORS ? '_l' : BYTE_LENGTH; +var $OFFSET = DESCRIPTORS ? '_o' : BYTE_OFFSET; // IEEE754 conversions based on https://github.com/feross/ieee754 -var packIEEE754 = function(value, mLen, nBytes){ - var buffer = Array(nBytes) - , eLen = nBytes * 8 - mLen - 1 - , eMax = (1 << eLen) - 1 - , eBias = eMax >> 1 - , rt = mLen === 23 ? pow(2, -24) - pow(2, -77) : 0 - , i = 0 - , s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0 - , e, m, c; - value = abs(value) - if(value != value || value === Infinity){ +function packIEEE754(value, mLen, nBytes) { + var buffer = Array(nBytes); + var eLen = nBytes * 8 - mLen - 1; + var eMax = (1 << eLen) - 1; + var eBias = eMax >> 1; + var rt = mLen === 23 ? pow(2, -24) - pow(2, -77) : 0; + var i = 0; + var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0; + var e, m, c; + value = abs(value); + // eslint-disable-next-line no-self-compare + if (value != value || value === Infinity) { + // eslint-disable-next-line no-self-compare m = value != value ? 1 : 0; e = eMax; } else { e = floor(log(value) / LN2); - if(value * (c = pow(2, -e)) < 1){ + if (value * (c = pow(2, -e)) < 1) { e--; c *= 2; } - if(e + eBias >= 1){ + if (e + eBias >= 1) { value += rt / c; } else { value += rt * pow(2, 1 - eBias); } - if(value * c >= 2){ + if (value * c >= 2) { e++; c /= 2; } - if(e + eBias >= eMax){ + if (e + eBias >= eMax) { m = 0; e = eMax; - } else if(e + eBias >= 1){ + } else if (e + eBias >= 1) { m = (value * c - 1) * pow(2, mLen); e = e + eBias; } else { @@ -2482,109 +2833,102 @@ var packIEEE754 = function(value, mLen, nBytes){ e = 0; } } - for(; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8); + for (; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8); e = e << mLen | m; eLen += mLen; - for(; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8); + for (; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8); buffer[--i] |= s * 128; return buffer; -}; -var unpackIEEE754 = function(buffer, mLen, nBytes){ - var eLen = nBytes * 8 - mLen - 1 - , eMax = (1 << eLen) - 1 - , eBias = eMax >> 1 - , nBits = eLen - 7 - , i = nBytes - 1 - , s = buffer[i--] - , e = s & 127 - , m; +} +function unpackIEEE754(buffer, mLen, nBytes) { + var eLen = nBytes * 8 - mLen - 1; + var eMax = (1 << eLen) - 1; + var eBias = eMax >> 1; + var nBits = eLen - 7; + var i = nBytes - 1; + var s = buffer[i--]; + var e = s & 127; + var m; s >>= 7; - for(; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8); + for (; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8); m = e & (1 << -nBits) - 1; e >>= -nBits; nBits += mLen; - for(; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8); - if(e === 0){ + for (; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8); + if (e === 0) { e = 1 - eBias; - } else if(e === eMax){ + } else if (e === eMax) { return m ? NaN : s ? -Infinity : Infinity; } else { m = m + pow(2, mLen); e = e - eBias; } return (s ? -1 : 1) * m * pow(2, e - mLen); -}; +} -var unpackI32 = function(bytes){ +function unpackI32(bytes) { return bytes[3] << 24 | bytes[2] << 16 | bytes[1] << 8 | bytes[0]; -}; -var packI8 = function(it){ +} +function packI8(it) { return [it & 0xff]; -}; -var packI16 = function(it){ +} +function packI16(it) { return [it & 0xff, it >> 8 & 0xff]; -}; -var packI32 = function(it){ +} +function packI32(it) { return [it & 0xff, it >> 8 & 0xff, it >> 16 & 0xff, it >> 24 & 0xff]; -}; -var packF64 = function(it){ +} +function packF64(it) { return packIEEE754(it, 52, 8); -}; -var packF32 = function(it){ +} +function packF32(it) { return packIEEE754(it, 23, 4); -}; +} -var addGetter = function(C, key, internal){ - dP(C[PROTOTYPE], key, {get: function(){ return this[internal]; }}); -}; +function addGetter(C, key, internal) { + dP(C[PROTOTYPE], key, { get: function () { return this[internal]; } }); +} -var get = function(view, bytes, index, isLittleEndian){ - var numIndex = +index - , intIndex = toInteger(numIndex); - if(numIndex != intIndex || intIndex < 0 || intIndex + bytes > view[$LENGTH])throw RangeError(WRONG_INDEX); - var store = view[$BUFFER]._b - , start = intIndex + view[$OFFSET] - , pack = store.slice(start, start + bytes); +function get(view, bytes, index, isLittleEndian) { + var numIndex = +index; + var intIndex = toIndex(numIndex); + if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX); + var store = view[$BUFFER]._b; + var start = intIndex + view[$OFFSET]; + var pack = store.slice(start, start + bytes); return isLittleEndian ? pack : pack.reverse(); -}; -var set = function(view, bytes, index, conversion, value, isLittleEndian){ - var numIndex = +index - , intIndex = toInteger(numIndex); - if(numIndex != intIndex || intIndex < 0 || intIndex + bytes > view[$LENGTH])throw RangeError(WRONG_INDEX); - var store = view[$BUFFER]._b - , start = intIndex + view[$OFFSET] - , pack = conversion(+value); - for(var i = 0; i < bytes; i++)store[start + i] = pack[isLittleEndian ? i : bytes - i - 1]; -}; - -var validateArrayBufferArguments = function(that, length){ - anInstance(that, $ArrayBuffer, ARRAY_BUFFER); - var numberLength = +length - , byteLength = toLength(numberLength); - if(numberLength != byteLength)throw RangeError(WRONG_LENGTH); - return byteLength; -}; +} +function set(view, bytes, index, conversion, value, isLittleEndian) { + var numIndex = +index; + var intIndex = toIndex(numIndex); + if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX); + var store = view[$BUFFER]._b; + var start = intIndex + view[$OFFSET]; + var pack = conversion(+value); + for (var i = 0; i < bytes; i++) store[start + i] = pack[isLittleEndian ? i : bytes - i - 1]; +} -if(!$typed.ABV){ - $ArrayBuffer = function ArrayBuffer(length){ - var byteLength = validateArrayBufferArguments(this, length); - this._b = arrayFill.call(Array(byteLength), 0); +if (!$typed.ABV) { + $ArrayBuffer = function ArrayBuffer(length) { + anInstance(this, $ArrayBuffer, ARRAY_BUFFER); + var byteLength = toIndex(length); + this._b = arrayFill.call(Array(byteLength), 0); this[$LENGTH] = byteLength; }; - $DataView = function DataView(buffer, byteOffset, byteLength){ + $DataView = function DataView(buffer, byteOffset, byteLength) { anInstance(this, $DataView, DATA_VIEW); anInstance(buffer, $ArrayBuffer, DATA_VIEW); - var bufferLength = buffer[$LENGTH] - , offset = toInteger(byteOffset); - if(offset < 0 || offset > bufferLength)throw RangeError('Wrong offset!'); + var bufferLength = buffer[$LENGTH]; + var offset = toInteger(byteOffset); + if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset!'); byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength); - if(offset + byteLength > bufferLength)throw RangeError(WRONG_LENGTH); + if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH); this[$BUFFER] = buffer; this[$OFFSET] = offset; this[$LENGTH] = byteLength; }; - if(DESCRIPTORS){ + if (DESCRIPTORS) { addGetter($ArrayBuffer, BYTE_LENGTH, '_l'); addGetter($DataView, BUFFER, '_b'); addGetter($DataView, BYTE_LENGTH, '_l'); @@ -2592,82 +2936,88 @@ if(!$typed.ABV){ } redefineAll($DataView[PROTOTYPE], { - getInt8: function getInt8(byteOffset){ + getInt8: function getInt8(byteOffset) { return get(this, 1, byteOffset)[0] << 24 >> 24; }, - getUint8: function getUint8(byteOffset){ + getUint8: function getUint8(byteOffset) { return get(this, 1, byteOffset)[0]; }, - getInt16: function getInt16(byteOffset /*, littleEndian */){ + getInt16: function getInt16(byteOffset /* , littleEndian */) { var bytes = get(this, 2, byteOffset, arguments[1]); return (bytes[1] << 8 | bytes[0]) << 16 >> 16; }, - getUint16: function getUint16(byteOffset /*, littleEndian */){ + getUint16: function getUint16(byteOffset /* , littleEndian */) { var bytes = get(this, 2, byteOffset, arguments[1]); return bytes[1] << 8 | bytes[0]; }, - getInt32: function getInt32(byteOffset /*, littleEndian */){ + getInt32: function getInt32(byteOffset /* , littleEndian */) { return unpackI32(get(this, 4, byteOffset, arguments[1])); }, - getUint32: function getUint32(byteOffset /*, littleEndian */){ + getUint32: function getUint32(byteOffset /* , littleEndian */) { return unpackI32(get(this, 4, byteOffset, arguments[1])) >>> 0; }, - getFloat32: function getFloat32(byteOffset /*, littleEndian */){ + getFloat32: function getFloat32(byteOffset /* , littleEndian */) { return unpackIEEE754(get(this, 4, byteOffset, arguments[1]), 23, 4); }, - getFloat64: function getFloat64(byteOffset /*, littleEndian */){ + getFloat64: function getFloat64(byteOffset /* , littleEndian */) { return unpackIEEE754(get(this, 8, byteOffset, arguments[1]), 52, 8); }, - setInt8: function setInt8(byteOffset, value){ + setInt8: function setInt8(byteOffset, value) { set(this, 1, byteOffset, packI8, value); }, - setUint8: function setUint8(byteOffset, value){ + setUint8: function setUint8(byteOffset, value) { set(this, 1, byteOffset, packI8, value); }, - setInt16: function setInt16(byteOffset, value /*, littleEndian */){ + setInt16: function setInt16(byteOffset, value /* , littleEndian */) { set(this, 2, byteOffset, packI16, value, arguments[2]); }, - setUint16: function setUint16(byteOffset, value /*, littleEndian */){ + setUint16: function setUint16(byteOffset, value /* , littleEndian */) { set(this, 2, byteOffset, packI16, value, arguments[2]); }, - setInt32: function setInt32(byteOffset, value /*, littleEndian */){ + setInt32: function setInt32(byteOffset, value /* , littleEndian */) { set(this, 4, byteOffset, packI32, value, arguments[2]); }, - setUint32: function setUint32(byteOffset, value /*, littleEndian */){ + setUint32: function setUint32(byteOffset, value /* , littleEndian */) { set(this, 4, byteOffset, packI32, value, arguments[2]); }, - setFloat32: function setFloat32(byteOffset, value /*, littleEndian */){ + setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) { set(this, 4, byteOffset, packF32, value, arguments[2]); }, - setFloat64: function setFloat64(byteOffset, value /*, littleEndian */){ + setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) { set(this, 8, byteOffset, packF64, value, arguments[2]); } }); } else { - if(!fails(function(){ - new $ArrayBuffer; // eslint-disable-line no-new - }) || !fails(function(){ - new $ArrayBuffer(.5); // eslint-disable-line no-new - })){ - $ArrayBuffer = function ArrayBuffer(length){ - return new BaseBuffer(validateArrayBufferArguments(this, length)); + if (!fails(function () { + $ArrayBuffer(1); + }) || !fails(function () { + new $ArrayBuffer(-1); // eslint-disable-line no-new + }) || fails(function () { + new $ArrayBuffer(); // eslint-disable-line no-new + new $ArrayBuffer(1.5); // eslint-disable-line no-new + new $ArrayBuffer(NaN); // eslint-disable-line no-new + return $ArrayBuffer.name != ARRAY_BUFFER; + })) { + $ArrayBuffer = function ArrayBuffer(length) { + anInstance(this, $ArrayBuffer); + return new BaseBuffer(toIndex(length)); }; var ArrayBufferProto = $ArrayBuffer[PROTOTYPE] = BaseBuffer[PROTOTYPE]; - for(var keys = gOPN(BaseBuffer), j = 0, key; keys.length > j; ){ - if(!((key = keys[j++]) in $ArrayBuffer))hide($ArrayBuffer, key, BaseBuffer[key]); - }; - if(!LIBRARY)ArrayBufferProto.constructor = $ArrayBuffer; + for (var keys = gOPN(BaseBuffer), j = 0, key; keys.length > j;) { + if (!((key = keys[j++]) in $ArrayBuffer)) hide($ArrayBuffer, key, BaseBuffer[key]); + } + if (!LIBRARY) ArrayBufferProto.constructor = $ArrayBuffer; } // iOS Safari 7.x bug - var view = new $DataView(new $ArrayBuffer(2)) - , $setInt8 = $DataView[PROTOTYPE].setInt8; + var view = new $DataView(new $ArrayBuffer(2)); + var $setInt8 = $DataView[PROTOTYPE].setInt8; view.setInt8(0, 2147483648); view.setInt8(1, 2147483649); - if(view.getInt8(0) || !view.getInt8(1))redefineAll($DataView[PROTOTYPE], { - setInt8: function setInt8(byteOffset, value){ + if (view.getInt8(0) || !view.getInt8(1)) redefineAll($DataView[PROTOTYPE], { + setInt8: function setInt8(byteOffset, value) { $setInt8.call(this, byteOffset, value << 24 >> 24); }, - setUint8: function setUint8(byteOffset, value){ + setUint8: function setUint8(byteOffset, value) { $setInt8.call(this, byteOffset, value << 24 >> 24); } }, true); @@ -2677,188 +3027,211 @@ setToStringTag($DataView, DATA_VIEW); hide($DataView[PROTOTYPE], $typed.VIEW, true); exports[ARRAY_BUFFER] = $ArrayBuffer; exports[DATA_VIEW] = $DataView; -},{"106":106,"108":108,"113":113,"28":28,"34":34,"38":38,"40":40,"58":58,"6":6,"67":67,"72":72,"86":86,"9":9,"92":92}],113:[function(_dereq_,module,exports){ -var global = _dereq_(38) - , hide = _dereq_(40) - , uid = _dereq_(114) - , TYPED = uid('typed_array') - , VIEW = uid('view') - , ABV = !!(global.ArrayBuffer && global.DataView) - , CONSTR = ABV - , i = 0, l = 9, Typed; + +},{"101":101,"115":115,"116":116,"118":118,"123":123,"29":29,"35":35,"40":40,"42":42,"6":6,"60":60,"72":72,"77":77,"9":9,"93":93}],123:[function(_dereq_,module,exports){ +var global = _dereq_(40); +var hide = _dereq_(42); +var uid = _dereq_(124); +var TYPED = uid('typed_array'); +var VIEW = uid('view'); +var ABV = !!(global.ArrayBuffer && global.DataView); +var CONSTR = ABV; +var i = 0; +var l = 9; +var Typed; var TypedArrayConstructors = ( 'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array' ).split(','); -while(i < l){ - if(Typed = global[TypedArrayConstructors[i++]]){ +while (i < l) { + if (Typed = global[TypedArrayConstructors[i++]]) { hide(Typed.prototype, TYPED, true); hide(Typed.prototype, VIEW, true); } else CONSTR = false; } module.exports = { - ABV: ABV, + ABV: ABV, CONSTR: CONSTR, - TYPED: TYPED, - VIEW: VIEW + TYPED: TYPED, + VIEW: VIEW }; -},{"114":114,"38":38,"40":40}],114:[function(_dereq_,module,exports){ -var id = 0 - , px = Math.random(); -module.exports = function(key){ + +},{"124":124,"40":40,"42":42}],124:[function(_dereq_,module,exports){ +var id = 0; +var px = Math.random(); +module.exports = function (key) { return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); }; -},{}],115:[function(_dereq_,module,exports){ -var global = _dereq_(38) - , core = _dereq_(23) - , LIBRARY = _dereq_(58) - , wksExt = _dereq_(116) - , defineProperty = _dereq_(67).f; -module.exports = function(name){ + +},{}],125:[function(_dereq_,module,exports){ +var isObject = _dereq_(51); +module.exports = function (it, TYPE) { + if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!'); + return it; +}; + +},{"51":51}],126:[function(_dereq_,module,exports){ +var global = _dereq_(40); +var core = _dereq_(23); +var LIBRARY = _dereq_(60); +var wksExt = _dereq_(127); +var defineProperty = _dereq_(72).f; +module.exports = function (name) { var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); - if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)}); + if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); }; -},{"116":116,"23":23,"38":38,"58":58,"67":67}],116:[function(_dereq_,module,exports){ -exports.f = _dereq_(117); -},{"117":117}],117:[function(_dereq_,module,exports){ -var store = _dereq_(94)('wks') - , uid = _dereq_(114) - , Symbol = _dereq_(38).Symbol - , USE_SYMBOL = typeof Symbol == 'function'; -var $exports = module.exports = function(name){ +},{"127":127,"23":23,"40":40,"60":60,"72":72}],127:[function(_dereq_,module,exports){ +exports.f = _dereq_(128); + +},{"128":128}],128:[function(_dereq_,module,exports){ +var store = _dereq_(103)('wks'); +var uid = _dereq_(124); +var Symbol = _dereq_(40).Symbol; +var USE_SYMBOL = typeof Symbol == 'function'; + +var $exports = module.exports = function (name) { return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); }; $exports.store = store; -},{"114":114,"38":38,"94":94}],118:[function(_dereq_,module,exports){ -var classof = _dereq_(17) - , ITERATOR = _dereq_(117)('iterator') - , Iterators = _dereq_(56); -module.exports = _dereq_(23).getIteratorMethod = function(it){ - if(it != undefined)return it[ITERATOR] + +},{"103":103,"124":124,"40":40}],129:[function(_dereq_,module,exports){ +var classof = _dereq_(17); +var ITERATOR = _dereq_(128)('iterator'); +var Iterators = _dereq_(58); +module.exports = _dereq_(23).getIteratorMethod = function (it) { + if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)]; }; -},{"117":117,"17":17,"23":23,"56":56}],119:[function(_dereq_,module,exports){ + +},{"128":128,"17":17,"23":23,"58":58}],130:[function(_dereq_,module,exports){ // https://github.com/benjamingr/RexExp.escape -var $export = _dereq_(32) - , $re = _dereq_(88)(/[\\^$*+?.()|[\]{}]/g, '\\$&'); +var $export = _dereq_(33); +var $re = _dereq_(95)(/[\\^$*+?.()|[\]{}]/g, '\\$&'); -$export($export.S, 'RegExp', {escape: function escape(it){ return $re(it); }}); +$export($export.S, 'RegExp', { escape: function escape(it) { return $re(it); } }); -},{"32":32,"88":88}],120:[function(_dereq_,module,exports){ +},{"33":33,"95":95}],131:[function(_dereq_,module,exports){ // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) -var $export = _dereq_(32); +var $export = _dereq_(33); -$export($export.P, 'Array', {copyWithin: _dereq_(8)}); +$export($export.P, 'Array', { copyWithin: _dereq_(8) }); _dereq_(5)('copyWithin'); -},{"32":32,"5":5,"8":8}],121:[function(_dereq_,module,exports){ + +},{"33":33,"5":5,"8":8}],132:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , $every = _dereq_(12)(4); +var $export = _dereq_(33); +var $every = _dereq_(12)(4); -$export($export.P + $export.F * !_dereq_(96)([].every, true), 'Array', { +$export($export.P + $export.F * !_dereq_(105)([].every, true), 'Array', { // 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg]) - every: function every(callbackfn /* , thisArg */){ + every: function every(callbackfn /* , thisArg */) { return $every(this, callbackfn, arguments[1]); } }); -},{"12":12,"32":32,"96":96}],122:[function(_dereq_,module,exports){ + +},{"105":105,"12":12,"33":33}],133:[function(_dereq_,module,exports){ // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) -var $export = _dereq_(32); +var $export = _dereq_(33); -$export($export.P, 'Array', {fill: _dereq_(9)}); +$export($export.P, 'Array', { fill: _dereq_(9) }); _dereq_(5)('fill'); -},{"32":32,"5":5,"9":9}],123:[function(_dereq_,module,exports){ + +},{"33":33,"5":5,"9":9}],134:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , $filter = _dereq_(12)(2); +var $export = _dereq_(33); +var $filter = _dereq_(12)(2); -$export($export.P + $export.F * !_dereq_(96)([].filter, true), 'Array', { +$export($export.P + $export.F * !_dereq_(105)([].filter, true), 'Array', { // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg]) - filter: function filter(callbackfn /* , thisArg */){ + filter: function filter(callbackfn /* , thisArg */) { return $filter(this, callbackfn, arguments[1]); } }); -},{"12":12,"32":32,"96":96}],124:[function(_dereq_,module,exports){ + +},{"105":105,"12":12,"33":33}],135:[function(_dereq_,module,exports){ 'use strict'; // 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined) -var $export = _dereq_(32) - , $find = _dereq_(12)(6) - , KEY = 'findIndex' - , forced = true; +var $export = _dereq_(33); +var $find = _dereq_(12)(6); +var KEY = 'findIndex'; +var forced = true; // Shouldn't skip holes -if(KEY in [])Array(1)[KEY](function(){ forced = false; }); +if (KEY in []) Array(1)[KEY](function () { forced = false; }); $export($export.P + $export.F * forced, 'Array', { - findIndex: function findIndex(callbackfn/*, that = undefined */){ + findIndex: function findIndex(callbackfn /* , that = undefined */) { return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); _dereq_(5)(KEY); -},{"12":12,"32":32,"5":5}],125:[function(_dereq_,module,exports){ + +},{"12":12,"33":33,"5":5}],136:[function(_dereq_,module,exports){ 'use strict'; // 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined) -var $export = _dereq_(32) - , $find = _dereq_(12)(5) - , KEY = 'find' - , forced = true; +var $export = _dereq_(33); +var $find = _dereq_(12)(5); +var KEY = 'find'; +var forced = true; // Shouldn't skip holes -if(KEY in [])Array(1)[KEY](function(){ forced = false; }); +if (KEY in []) Array(1)[KEY](function () { forced = false; }); $export($export.P + $export.F * forced, 'Array', { - find: function find(callbackfn/*, that = undefined */){ + find: function find(callbackfn /* , that = undefined */) { return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); _dereq_(5)(KEY); -},{"12":12,"32":32,"5":5}],126:[function(_dereq_,module,exports){ + +},{"12":12,"33":33,"5":5}],137:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , $forEach = _dereq_(12)(0) - , STRICT = _dereq_(96)([].forEach, true); +var $export = _dereq_(33); +var $forEach = _dereq_(12)(0); +var STRICT = _dereq_(105)([].forEach, true); $export($export.P + $export.F * !STRICT, 'Array', { // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg]) - forEach: function forEach(callbackfn /* , thisArg */){ + forEach: function forEach(callbackfn /* , thisArg */) { return $forEach(this, callbackfn, arguments[1]); } }); -},{"12":12,"32":32,"96":96}],127:[function(_dereq_,module,exports){ + +},{"105":105,"12":12,"33":33}],138:[function(_dereq_,module,exports){ 'use strict'; -var ctx = _dereq_(25) - , $export = _dereq_(32) - , toObject = _dereq_(109) - , call = _dereq_(51) - , isArrayIter = _dereq_(46) - , toLength = _dereq_(108) - , createProperty = _dereq_(24) - , getIterFn = _dereq_(118); - -$export($export.S + $export.F * !_dereq_(54)(function(iter){ Array.from(iter); }), 'Array', { +var ctx = _dereq_(25); +var $export = _dereq_(33); +var toObject = _dereq_(119); +var call = _dereq_(53); +var isArrayIter = _dereq_(48); +var toLength = _dereq_(118); +var createProperty = _dereq_(24); +var getIterFn = _dereq_(129); + +$export($export.S + $export.F * !_dereq_(56)(function (iter) { Array.from(iter); }), 'Array', { // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) - from: function from(arrayLike/*, mapfn = undefined, thisArg = undefined*/){ - var O = toObject(arrayLike) - , C = typeof this == 'function' ? this : Array - , aLen = arguments.length - , mapfn = aLen > 1 ? arguments[1] : undefined - , mapping = mapfn !== undefined - , index = 0 - , iterFn = getIterFn(O) - , length, result, step, iterator; - if(mapping)mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); + from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { + var O = toObject(arrayLike); + var C = typeof this == 'function' ? this : Array; + var aLen = arguments.length; + var mapfn = aLen > 1 ? arguments[1] : undefined; + var mapping = mapfn !== undefined; + var index = 0; + var iterFn = getIterFn(O); + var length, result, step, iterator; + if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); // if object isn't iterable or it's array with default iterator - use simple case - if(iterFn != undefined && !(C == Array && isArrayIter(iterFn))){ - for(iterator = iterFn.call(O), result = new C; !(step = iterator.next()).done; index++){ + if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { + for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); } } else { length = toLength(O.length); - for(result = new C(length); length > index; index++){ + for (result = new C(length); length > index; index++) { createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); } } @@ -2867,53 +3240,55 @@ $export($export.S + $export.F * !_dereq_(54)(function(iter){ Array.from(iter); } } }); -},{"108":108,"109":109,"118":118,"24":24,"25":25,"32":32,"46":46,"51":51,"54":54}],128:[function(_dereq_,module,exports){ +},{"118":118,"119":119,"129":129,"24":24,"25":25,"33":33,"48":48,"53":53,"56":56}],139:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , $indexOf = _dereq_(11)(false) - , $native = [].indexOf - , NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0; +var $export = _dereq_(33); +var $indexOf = _dereq_(11)(false); +var $native = [].indexOf; +var NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0; -$export($export.P + $export.F * (NEGATIVE_ZERO || !_dereq_(96)($native)), 'Array', { +$export($export.P + $export.F * (NEGATIVE_ZERO || !_dereq_(105)($native)), 'Array', { // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex]) - indexOf: function indexOf(searchElement /*, fromIndex = 0 */){ + indexOf: function indexOf(searchElement /* , fromIndex = 0 */) { return NEGATIVE_ZERO // convert -0 to +0 ? $native.apply(this, arguments) || 0 : $indexOf(this, searchElement, arguments[1]); } }); -},{"11":11,"32":32,"96":96}],129:[function(_dereq_,module,exports){ + +},{"105":105,"11":11,"33":33}],140:[function(_dereq_,module,exports){ // 22.1.2.2 / 15.4.3.2 Array.isArray(arg) -var $export = _dereq_(32); +var $export = _dereq_(33); -$export($export.S, 'Array', {isArray: _dereq_(47)}); -},{"32":32,"47":47}],130:[function(_dereq_,module,exports){ +$export($export.S, 'Array', { isArray: _dereq_(49) }); + +},{"33":33,"49":49}],141:[function(_dereq_,module,exports){ 'use strict'; -var addToUnscopables = _dereq_(5) - , step = _dereq_(55) - , Iterators = _dereq_(56) - , toIObject = _dereq_(107); +var addToUnscopables = _dereq_(5); +var step = _dereq_(57); +var Iterators = _dereq_(58); +var toIObject = _dereq_(117); // 22.1.3.4 Array.prototype.entries() // 22.1.3.13 Array.prototype.keys() // 22.1.3.29 Array.prototype.values() // 22.1.3.30 Array.prototype[@@iterator]() -module.exports = _dereq_(53)(Array, 'Array', function(iterated, kind){ +module.exports = _dereq_(55)(Array, 'Array', function (iterated, kind) { this._t = toIObject(iterated); // target this._i = 0; // next index this._k = kind; // kind // 22.1.5.2.1 %ArrayIteratorPrototype%.next() -}, function(){ - var O = this._t - , kind = this._k - , index = this._i++; - if(!O || index >= O.length){ +}, function () { + var O = this._t; + var kind = this._k; + var index = this._i++; + if (!O || index >= O.length) { this._t = undefined; return step(1); } - if(kind == 'keys' )return step(0, index); - if(kind == 'values')return step(0, O[index]); + if (kind == 'keys') return step(0, index); + if (kind == 'values') return step(0, O[index]); return step(0, [index, O[index]]); }, 'values'); @@ -2923,685 +3298,687 @@ Iterators.Arguments = Iterators.Array; addToUnscopables('keys'); addToUnscopables('values'); addToUnscopables('entries'); -},{"107":107,"5":5,"53":53,"55":55,"56":56}],131:[function(_dereq_,module,exports){ + +},{"117":117,"5":5,"55":55,"57":57,"58":58}],142:[function(_dereq_,module,exports){ 'use strict'; // 22.1.3.13 Array.prototype.join(separator) -var $export = _dereq_(32) - , toIObject = _dereq_(107) - , arrayJoin = [].join; +var $export = _dereq_(33); +var toIObject = _dereq_(117); +var arrayJoin = [].join; // fallback for not array-like strings -$export($export.P + $export.F * (_dereq_(45) != Object || !_dereq_(96)(arrayJoin)), 'Array', { - join: function join(separator){ +$export($export.P + $export.F * (_dereq_(47) != Object || !_dereq_(105)(arrayJoin)), 'Array', { + join: function join(separator) { return arrayJoin.call(toIObject(this), separator === undefined ? ',' : separator); } }); -},{"107":107,"32":32,"45":45,"96":96}],132:[function(_dereq_,module,exports){ + +},{"105":105,"117":117,"33":33,"47":47}],143:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , toIObject = _dereq_(107) - , toInteger = _dereq_(106) - , toLength = _dereq_(108) - , $native = [].lastIndexOf - , NEGATIVE_ZERO = !!$native && 1 / [1].lastIndexOf(1, -0) < 0; - -$export($export.P + $export.F * (NEGATIVE_ZERO || !_dereq_(96)($native)), 'Array', { +var $export = _dereq_(33); +var toIObject = _dereq_(117); +var toInteger = _dereq_(116); +var toLength = _dereq_(118); +var $native = [].lastIndexOf; +var NEGATIVE_ZERO = !!$native && 1 / [1].lastIndexOf(1, -0) < 0; + +$export($export.P + $export.F * (NEGATIVE_ZERO || !_dereq_(105)($native)), 'Array', { // 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex]) - lastIndexOf: function lastIndexOf(searchElement /*, fromIndex = @[*-1] */){ + lastIndexOf: function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) { // convert -0 to +0 - if(NEGATIVE_ZERO)return $native.apply(this, arguments) || 0; - var O = toIObject(this) - , length = toLength(O.length) - , index = length - 1; - if(arguments.length > 1)index = Math.min(index, toInteger(arguments[1])); - if(index < 0)index = length + index; - for(;index >= 0; index--)if(index in O)if(O[index] === searchElement)return index || 0; + if (NEGATIVE_ZERO) return $native.apply(this, arguments) || 0; + var O = toIObject(this); + var length = toLength(O.length); + var index = length - 1; + if (arguments.length > 1) index = Math.min(index, toInteger(arguments[1])); + if (index < 0) index = length + index; + for (;index >= 0; index--) if (index in O) if (O[index] === searchElement) return index || 0; return -1; } }); -},{"106":106,"107":107,"108":108,"32":32,"96":96}],133:[function(_dereq_,module,exports){ + +},{"105":105,"116":116,"117":117,"118":118,"33":33}],144:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , $map = _dereq_(12)(1); +var $export = _dereq_(33); +var $map = _dereq_(12)(1); -$export($export.P + $export.F * !_dereq_(96)([].map, true), 'Array', { +$export($export.P + $export.F * !_dereq_(105)([].map, true), 'Array', { // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg]) - map: function map(callbackfn /* , thisArg */){ + map: function map(callbackfn /* , thisArg */) { return $map(this, callbackfn, arguments[1]); } }); -},{"12":12,"32":32,"96":96}],134:[function(_dereq_,module,exports){ + +},{"105":105,"12":12,"33":33}],145:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , createProperty = _dereq_(24); +var $export = _dereq_(33); +var createProperty = _dereq_(24); // WebKit Array.of isn't generic -$export($export.S + $export.F * _dereq_(34)(function(){ - function F(){} +$export($export.S + $export.F * _dereq_(35)(function () { + function F() { /* empty */ } return !(Array.of.call(F) instanceof F); }), 'Array', { // 22.1.2.3 Array.of( ...items) - of: function of(/* ...args */){ - var index = 0 - , aLen = arguments.length - , result = new (typeof this == 'function' ? this : Array)(aLen); - while(aLen > index)createProperty(result, index, arguments[index++]); + of: function of(/* ...args */) { + var index = 0; + var aLen = arguments.length; + var result = new (typeof this == 'function' ? this : Array)(aLen); + while (aLen > index) createProperty(result, index, arguments[index++]); result.length = aLen; return result; } }); -},{"24":24,"32":32,"34":34}],135:[function(_dereq_,module,exports){ + +},{"24":24,"33":33,"35":35}],146:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , $reduce = _dereq_(13); +var $export = _dereq_(33); +var $reduce = _dereq_(13); -$export($export.P + $export.F * !_dereq_(96)([].reduceRight, true), 'Array', { +$export($export.P + $export.F * !_dereq_(105)([].reduceRight, true), 'Array', { // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue]) - reduceRight: function reduceRight(callbackfn /* , initialValue */){ + reduceRight: function reduceRight(callbackfn /* , initialValue */) { return $reduce(this, callbackfn, arguments.length, arguments[1], true); } }); -},{"13":13,"32":32,"96":96}],136:[function(_dereq_,module,exports){ + +},{"105":105,"13":13,"33":33}],147:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , $reduce = _dereq_(13); +var $export = _dereq_(33); +var $reduce = _dereq_(13); -$export($export.P + $export.F * !_dereq_(96)([].reduce, true), 'Array', { +$export($export.P + $export.F * !_dereq_(105)([].reduce, true), 'Array', { // 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue]) - reduce: function reduce(callbackfn /* , initialValue */){ + reduce: function reduce(callbackfn /* , initialValue */) { return $reduce(this, callbackfn, arguments.length, arguments[1], false); } }); -},{"13":13,"32":32,"96":96}],137:[function(_dereq_,module,exports){ + +},{"105":105,"13":13,"33":33}],148:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , html = _dereq_(41) - , cof = _dereq_(18) - , toIndex = _dereq_(105) - , toLength = _dereq_(108) - , arraySlice = [].slice; +var $export = _dereq_(33); +var html = _dereq_(43); +var cof = _dereq_(18); +var toAbsoluteIndex = _dereq_(114); +var toLength = _dereq_(118); +var arraySlice = [].slice; // fallback for not array-like ES3 strings and DOM objects -$export($export.P + $export.F * _dereq_(34)(function(){ - if(html)arraySlice.call(html); +$export($export.P + $export.F * _dereq_(35)(function () { + if (html) arraySlice.call(html); }), 'Array', { - slice: function slice(begin, end){ - var len = toLength(this.length) - , klass = cof(this); + slice: function slice(begin, end) { + var len = toLength(this.length); + var klass = cof(this); end = end === undefined ? len : end; - if(klass == 'Array')return arraySlice.call(this, begin, end); - var start = toIndex(begin, len) - , upTo = toIndex(end, len) - , size = toLength(upTo - start) - , cloned = Array(size) - , i = 0; - for(; i < size; i++)cloned[i] = klass == 'String' + if (klass == 'Array') return arraySlice.call(this, begin, end); + var start = toAbsoluteIndex(begin, len); + var upTo = toAbsoluteIndex(end, len); + var size = toLength(upTo - start); + var cloned = Array(size); + var i = 0; + for (; i < size; i++) cloned[i] = klass == 'String' ? this.charAt(start + i) : this[start + i]; return cloned; } }); -},{"105":105,"108":108,"18":18,"32":32,"34":34,"41":41}],138:[function(_dereq_,module,exports){ + +},{"114":114,"118":118,"18":18,"33":33,"35":35,"43":43}],149:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , $some = _dereq_(12)(3); +var $export = _dereq_(33); +var $some = _dereq_(12)(3); -$export($export.P + $export.F * !_dereq_(96)([].some, true), 'Array', { +$export($export.P + $export.F * !_dereq_(105)([].some, true), 'Array', { // 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg]) - some: function some(callbackfn /* , thisArg */){ + some: function some(callbackfn /* , thisArg */) { return $some(this, callbackfn, arguments[1]); } }); -},{"12":12,"32":32,"96":96}],139:[function(_dereq_,module,exports){ + +},{"105":105,"12":12,"33":33}],150:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , aFunction = _dereq_(3) - , toObject = _dereq_(109) - , fails = _dereq_(34) - , $sort = [].sort - , test = [1, 2, 3]; - -$export($export.P + $export.F * (fails(function(){ +var $export = _dereq_(33); +var aFunction = _dereq_(3); +var toObject = _dereq_(119); +var fails = _dereq_(35); +var $sort = [].sort; +var test = [1, 2, 3]; + +$export($export.P + $export.F * (fails(function () { // IE8- test.sort(undefined); -}) || !fails(function(){ +}) || !fails(function () { // V8 bug test.sort(null); // Old WebKit -}) || !_dereq_(96)($sort)), 'Array', { +}) || !_dereq_(105)($sort)), 'Array', { // 22.1.3.25 Array.prototype.sort(comparefn) - sort: function sort(comparefn){ + sort: function sort(comparefn) { return comparefn === undefined ? $sort.call(toObject(this)) : $sort.call(toObject(this), aFunction(comparefn)); } }); -},{"109":109,"3":3,"32":32,"34":34,"96":96}],140:[function(_dereq_,module,exports){ -_dereq_(91)('Array'); -},{"91":91}],141:[function(_dereq_,module,exports){ + +},{"105":105,"119":119,"3":3,"33":33,"35":35}],151:[function(_dereq_,module,exports){ +_dereq_(100)('Array'); + +},{"100":100}],152:[function(_dereq_,module,exports){ // 20.3.3.1 / 15.9.4.4 Date.now() -var $export = _dereq_(32); +var $export = _dereq_(33); -$export($export.S, 'Date', {now: function(){ return new Date().getTime(); }}); -},{"32":32}],142:[function(_dereq_,module,exports){ -'use strict'; -// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString() -var $export = _dereq_(32) - , fails = _dereq_(34) - , getTime = Date.prototype.getTime; +$export($export.S, 'Date', { now: function () { return new Date().getTime(); } }); -var lz = function(num){ - return num > 9 ? num : '0' + num; -}; +},{"33":33}],153:[function(_dereq_,module,exports){ +// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString() +var $export = _dereq_(33); +var toISOString = _dereq_(26); // PhantomJS / old WebKit has a broken implementations -$export($export.P + $export.F * (fails(function(){ - return new Date(-5e13 - 1).toISOString() != '0385-07-25T07:06:39.999Z'; -}) || !fails(function(){ - new Date(NaN).toISOString(); -})), 'Date', { - toISOString: function toISOString(){ - if(!isFinite(getTime.call(this)))throw RangeError('Invalid time value'); - var d = this - , y = d.getUTCFullYear() - , m = d.getUTCMilliseconds() - , s = y < 0 ? '-' : y > 9999 ? '+' : ''; - return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) + - '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) + - 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) + - ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z'; - } -}); -},{"32":32,"34":34}],143:[function(_dereq_,module,exports){ +$export($export.P + $export.F * (Date.prototype.toISOString !== toISOString), 'Date', { + toISOString: toISOString +}); + +},{"26":26,"33":33}],154:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , toObject = _dereq_(109) - , toPrimitive = _dereq_(110); +var $export = _dereq_(33); +var toObject = _dereq_(119); +var toPrimitive = _dereq_(120); -$export($export.P + $export.F * _dereq_(34)(function(){ - return new Date(NaN).toJSON() !== null || Date.prototype.toJSON.call({toISOString: function(){ return 1; }}) !== 1; +$export($export.P + $export.F * _dereq_(35)(function () { + return new Date(NaN).toJSON() !== null + || Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1; }), 'Date', { - toJSON: function toJSON(key){ - var O = toObject(this) - , pv = toPrimitive(O); + // eslint-disable-next-line no-unused-vars + toJSON: function toJSON(key) { + var O = toObject(this); + var pv = toPrimitive(O); return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString(); } }); -},{"109":109,"110":110,"32":32,"34":34}],144:[function(_dereq_,module,exports){ -var TO_PRIMITIVE = _dereq_(117)('toPrimitive') - , proto = Date.prototype; -if(!(TO_PRIMITIVE in proto))_dereq_(40)(proto, TO_PRIMITIVE, _dereq_(26)); -},{"117":117,"26":26,"40":40}],145:[function(_dereq_,module,exports){ -var DateProto = Date.prototype - , INVALID_DATE = 'Invalid Date' - , TO_STRING = 'toString' - , $toString = DateProto[TO_STRING] - , getTime = DateProto.getTime; -if(new Date(NaN) + '' != INVALID_DATE){ - _dereq_(87)(DateProto, TO_STRING, function toString(){ +},{"119":119,"120":120,"33":33,"35":35}],155:[function(_dereq_,module,exports){ +var TO_PRIMITIVE = _dereq_(128)('toPrimitive'); +var proto = Date.prototype; + +if (!(TO_PRIMITIVE in proto)) _dereq_(42)(proto, TO_PRIMITIVE, _dereq_(27)); + +},{"128":128,"27":27,"42":42}],156:[function(_dereq_,module,exports){ +var DateProto = Date.prototype; +var INVALID_DATE = 'Invalid Date'; +var TO_STRING = 'toString'; +var $toString = DateProto[TO_STRING]; +var getTime = DateProto.getTime; +if (new Date(NaN) + '' != INVALID_DATE) { + _dereq_(94)(DateProto, TO_STRING, function toString() { var value = getTime.call(this); + // eslint-disable-next-line no-self-compare return value === value ? $toString.call(this) : INVALID_DATE; }); } -},{"87":87}],146:[function(_dereq_,module,exports){ + +},{"94":94}],157:[function(_dereq_,module,exports){ // 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...) -var $export = _dereq_(32); +var $export = _dereq_(33); + +$export($export.P, 'Function', { bind: _dereq_(16) }); -$export($export.P, 'Function', {bind: _dereq_(16)}); -},{"16":16,"32":32}],147:[function(_dereq_,module,exports){ +},{"16":16,"33":33}],158:[function(_dereq_,module,exports){ 'use strict'; -var isObject = _dereq_(49) - , getPrototypeOf = _dereq_(74) - , HAS_INSTANCE = _dereq_(117)('hasInstance') - , FunctionProto = Function.prototype; +var isObject = _dereq_(51); +var getPrototypeOf = _dereq_(79); +var HAS_INSTANCE = _dereq_(128)('hasInstance'); +var FunctionProto = Function.prototype; // 19.2.3.6 Function.prototype[@@hasInstance](V) -if(!(HAS_INSTANCE in FunctionProto))_dereq_(67).f(FunctionProto, HAS_INSTANCE, {value: function(O){ - if(typeof this != 'function' || !isObject(O))return false; - if(!isObject(this.prototype))return O instanceof this; +if (!(HAS_INSTANCE in FunctionProto)) _dereq_(72).f(FunctionProto, HAS_INSTANCE, { value: function (O) { + if (typeof this != 'function' || !isObject(O)) return false; + if (!isObject(this.prototype)) return O instanceof this; // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this: - while(O = getPrototypeOf(O))if(this.prototype === O)return true; + while (O = getPrototypeOf(O)) if (this.prototype === O) return true; return false; -}}); -},{"117":117,"49":49,"67":67,"74":74}],148:[function(_dereq_,module,exports){ -var dP = _dereq_(67).f - , createDesc = _dereq_(85) - , has = _dereq_(39) - , FProto = Function.prototype - , nameRE = /^\s*function ([^ (]*)/ - , NAME = 'name'; - -var isExtensible = Object.isExtensible || function(){ - return true; -}; +} }); + +},{"128":128,"51":51,"72":72,"79":79}],159:[function(_dereq_,module,exports){ +var dP = _dereq_(72).f; +var FProto = Function.prototype; +var nameRE = /^\s*function ([^ (]*)/; +var NAME = 'name'; // 19.2.4.2 name -NAME in FProto || _dereq_(28) && dP(FProto, NAME, { +NAME in FProto || _dereq_(29) && dP(FProto, NAME, { configurable: true, - get: function(){ + get: function () { try { - var that = this - , name = ('' + that).match(nameRE)[1]; - has(that, NAME) || !isExtensible(that) || dP(that, NAME, createDesc(5, name)); - return name; - } catch(e){ + return ('' + this).match(nameRE)[1]; + } catch (e) { return ''; } } }); -},{"28":28,"39":39,"67":67,"85":85}],149:[function(_dereq_,module,exports){ + +},{"29":29,"72":72}],160:[function(_dereq_,module,exports){ 'use strict'; var strong = _dereq_(19); +var validate = _dereq_(125); +var MAP = 'Map'; // 23.1 Map Objects -module.exports = _dereq_(22)('Map', function(get){ - return function Map(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); }; +module.exports = _dereq_(22)(MAP, function (get) { + return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.1.3.6 Map.prototype.get(key) - get: function get(key){ - var entry = strong.getEntry(this, key); + get: function get(key) { + var entry = strong.getEntry(validate(this, MAP), key); return entry && entry.v; }, // 23.1.3.9 Map.prototype.set(key, value) - set: function set(key, value){ - return strong.def(this, key === 0 ? 0 : key, value); + set: function set(key, value) { + return strong.def(validate(this, MAP), key === 0 ? 0 : key, value); } }, strong, true); -},{"19":19,"22":22}],150:[function(_dereq_,module,exports){ + +},{"125":125,"19":19,"22":22}],161:[function(_dereq_,module,exports){ // 20.2.2.3 Math.acosh(x) -var $export = _dereq_(32) - , log1p = _dereq_(60) - , sqrt = Math.sqrt - , $acosh = Math.acosh; +var $export = _dereq_(33); +var log1p = _dereq_(63); +var sqrt = Math.sqrt; +var $acosh = Math.acosh; $export($export.S + $export.F * !($acosh // V8 bug: https://code.google.com/p/v8/issues/detail?id=3509 && Math.floor($acosh(Number.MAX_VALUE)) == 710 - // Tor Browser bug: Math.acosh(Infinity) -> NaN + // Tor Browser bug: Math.acosh(Infinity) -> NaN && $acosh(Infinity) == Infinity ), 'Math', { - acosh: function acosh(x){ + acosh: function acosh(x) { return (x = +x) < 1 ? NaN : x > 94906265.62425156 ? Math.log(x) + Math.LN2 : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1)); } }); -},{"32":32,"60":60}],151:[function(_dereq_,module,exports){ + +},{"33":33,"63":63}],162:[function(_dereq_,module,exports){ // 20.2.2.5 Math.asinh(x) -var $export = _dereq_(32) - , $asinh = Math.asinh; +var $export = _dereq_(33); +var $asinh = Math.asinh; -function asinh(x){ +function asinh(x) { return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1)); } -// Tor Browser bug: Math.asinh(0) -> -0 -$export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', {asinh: asinh}); -},{"32":32}],152:[function(_dereq_,module,exports){ +// Tor Browser bug: Math.asinh(0) -> -0 +$export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh }); + +},{"33":33}],163:[function(_dereq_,module,exports){ // 20.2.2.7 Math.atanh(x) -var $export = _dereq_(32) - , $atanh = Math.atanh; +var $export = _dereq_(33); +var $atanh = Math.atanh; -// Tor Browser bug: Math.atanh(-0) -> 0 +// Tor Browser bug: Math.atanh(-0) -> 0 $export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', { - atanh: function atanh(x){ + atanh: function atanh(x) { return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2; } }); -},{"32":32}],153:[function(_dereq_,module,exports){ + +},{"33":33}],164:[function(_dereq_,module,exports){ // 20.2.2.9 Math.cbrt(x) -var $export = _dereq_(32) - , sign = _dereq_(61); +var $export = _dereq_(33); +var sign = _dereq_(65); $export($export.S, 'Math', { - cbrt: function cbrt(x){ + cbrt: function cbrt(x) { return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3); } }); -},{"32":32,"61":61}],154:[function(_dereq_,module,exports){ + +},{"33":33,"65":65}],165:[function(_dereq_,module,exports){ // 20.2.2.11 Math.clz32(x) -var $export = _dereq_(32); +var $export = _dereq_(33); $export($export.S, 'Math', { - clz32: function clz32(x){ + clz32: function clz32(x) { return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32; } }); -},{"32":32}],155:[function(_dereq_,module,exports){ + +},{"33":33}],166:[function(_dereq_,module,exports){ // 20.2.2.12 Math.cosh(x) -var $export = _dereq_(32) - , exp = Math.exp; +var $export = _dereq_(33); +var exp = Math.exp; $export($export.S, 'Math', { - cosh: function cosh(x){ + cosh: function cosh(x) { return (exp(x = +x) + exp(-x)) / 2; } }); -},{"32":32}],156:[function(_dereq_,module,exports){ + +},{"33":33}],167:[function(_dereq_,module,exports){ // 20.2.2.14 Math.expm1(x) -var $export = _dereq_(32) - , $expm1 = _dereq_(59); +var $export = _dereq_(33); +var $expm1 = _dereq_(61); + +$export($export.S + $export.F * ($expm1 != Math.expm1), 'Math', { expm1: $expm1 }); -$export($export.S + $export.F * ($expm1 != Math.expm1), 'Math', {expm1: $expm1}); -},{"32":32,"59":59}],157:[function(_dereq_,module,exports){ +},{"33":33,"61":61}],168:[function(_dereq_,module,exports){ // 20.2.2.16 Math.fround(x) -var $export = _dereq_(32) - , sign = _dereq_(61) - , pow = Math.pow - , EPSILON = pow(2, -52) - , EPSILON32 = pow(2, -23) - , MAX32 = pow(2, 127) * (2 - EPSILON32) - , MIN32 = pow(2, -126); - -var roundTiesToEven = function(n){ - return n + 1 / EPSILON - 1 / EPSILON; -}; +var $export = _dereq_(33); +$export($export.S, 'Math', { fround: _dereq_(62) }); -$export($export.S, 'Math', { - fround: function fround(x){ - var $abs = Math.abs(x) - , $sign = sign(x) - , a, result; - if($abs < MIN32)return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32; - a = (1 + EPSILON32 / EPSILON) * $abs; - result = a - (a - $abs); - if(result > MAX32 || result != result)return $sign * Infinity; - return $sign * result; - } -}); -},{"32":32,"61":61}],158:[function(_dereq_,module,exports){ +},{"33":33,"62":62}],169:[function(_dereq_,module,exports){ // 20.2.2.17 Math.hypot([value1[, value2[, … ]]]) -var $export = _dereq_(32) - , abs = Math.abs; +var $export = _dereq_(33); +var abs = Math.abs; $export($export.S, 'Math', { - hypot: function hypot(value1, value2){ // eslint-disable-line no-unused-vars - var sum = 0 - , i = 0 - , aLen = arguments.length - , larg = 0 - , arg, div; - while(i < aLen){ + hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars + var sum = 0; + var i = 0; + var aLen = arguments.length; + var larg = 0; + var arg, div; + while (i < aLen) { arg = abs(arguments[i++]); - if(larg < arg){ - div = larg / arg; - sum = sum * div * div + 1; + if (larg < arg) { + div = larg / arg; + sum = sum * div * div + 1; larg = arg; - } else if(arg > 0){ - div = arg / larg; + } else if (arg > 0) { + div = arg / larg; sum += div * div; } else sum += arg; } return larg === Infinity ? Infinity : larg * Math.sqrt(sum); } }); -},{"32":32}],159:[function(_dereq_,module,exports){ + +},{"33":33}],170:[function(_dereq_,module,exports){ // 20.2.2.18 Math.imul(x, y) -var $export = _dereq_(32) - , $imul = Math.imul; +var $export = _dereq_(33); +var $imul = Math.imul; // some WebKit versions fails with big numbers, some has wrong arity -$export($export.S + $export.F * _dereq_(34)(function(){ +$export($export.S + $export.F * _dereq_(35)(function () { return $imul(0xffffffff, 5) != -5 || $imul.length != 2; }), 'Math', { - imul: function imul(x, y){ - var UINT16 = 0xffff - , xn = +x - , yn = +y - , xl = UINT16 & xn - , yl = UINT16 & yn; + imul: function imul(x, y) { + var UINT16 = 0xffff; + var xn = +x; + var yn = +y; + var xl = UINT16 & xn; + var yl = UINT16 & yn; return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0); } }); -},{"32":32,"34":34}],160:[function(_dereq_,module,exports){ + +},{"33":33,"35":35}],171:[function(_dereq_,module,exports){ // 20.2.2.21 Math.log10(x) -var $export = _dereq_(32); +var $export = _dereq_(33); $export($export.S, 'Math', { - log10: function log10(x){ - return Math.log(x) / Math.LN10; + log10: function log10(x) { + return Math.log(x) * Math.LOG10E; } }); -},{"32":32}],161:[function(_dereq_,module,exports){ + +},{"33":33}],172:[function(_dereq_,module,exports){ // 20.2.2.20 Math.log1p(x) -var $export = _dereq_(32); +var $export = _dereq_(33); -$export($export.S, 'Math', {log1p: _dereq_(60)}); -},{"32":32,"60":60}],162:[function(_dereq_,module,exports){ +$export($export.S, 'Math', { log1p: _dereq_(63) }); + +},{"33":33,"63":63}],173:[function(_dereq_,module,exports){ // 20.2.2.22 Math.log2(x) -var $export = _dereq_(32); +var $export = _dereq_(33); $export($export.S, 'Math', { - log2: function log2(x){ + log2: function log2(x) { return Math.log(x) / Math.LN2; } }); -},{"32":32}],163:[function(_dereq_,module,exports){ + +},{"33":33}],174:[function(_dereq_,module,exports){ // 20.2.2.28 Math.sign(x) -var $export = _dereq_(32); +var $export = _dereq_(33); -$export($export.S, 'Math', {sign: _dereq_(61)}); -},{"32":32,"61":61}],164:[function(_dereq_,module,exports){ +$export($export.S, 'Math', { sign: _dereq_(65) }); + +},{"33":33,"65":65}],175:[function(_dereq_,module,exports){ // 20.2.2.30 Math.sinh(x) -var $export = _dereq_(32) - , expm1 = _dereq_(59) - , exp = Math.exp; +var $export = _dereq_(33); +var expm1 = _dereq_(61); +var exp = Math.exp; // V8 near Chromium 38 has a problem with very small numbers -$export($export.S + $export.F * _dereq_(34)(function(){ +$export($export.S + $export.F * _dereq_(35)(function () { return !Math.sinh(-2e-17) != -2e-17; }), 'Math', { - sinh: function sinh(x){ + sinh: function sinh(x) { return Math.abs(x = +x) < 1 ? (expm1(x) - expm1(-x)) / 2 : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2); } }); -},{"32":32,"34":34,"59":59}],165:[function(_dereq_,module,exports){ + +},{"33":33,"35":35,"61":61}],176:[function(_dereq_,module,exports){ // 20.2.2.33 Math.tanh(x) -var $export = _dereq_(32) - , expm1 = _dereq_(59) - , exp = Math.exp; +var $export = _dereq_(33); +var expm1 = _dereq_(61); +var exp = Math.exp; $export($export.S, 'Math', { - tanh: function tanh(x){ - var a = expm1(x = +x) - , b = expm1(-x); + tanh: function tanh(x) { + var a = expm1(x = +x); + var b = expm1(-x); return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x)); } }); -},{"32":32,"59":59}],166:[function(_dereq_,module,exports){ + +},{"33":33,"61":61}],177:[function(_dereq_,module,exports){ // 20.2.2.34 Math.trunc(x) -var $export = _dereq_(32); +var $export = _dereq_(33); $export($export.S, 'Math', { - trunc: function trunc(it){ + trunc: function trunc(it) { return (it > 0 ? Math.floor : Math.ceil)(it); } }); -},{"32":32}],167:[function(_dereq_,module,exports){ + +},{"33":33}],178:[function(_dereq_,module,exports){ 'use strict'; -var global = _dereq_(38) - , has = _dereq_(39) - , cof = _dereq_(18) - , inheritIfRequired = _dereq_(43) - , toPrimitive = _dereq_(110) - , fails = _dereq_(34) - , gOPN = _dereq_(72).f - , gOPD = _dereq_(70).f - , dP = _dereq_(67).f - , $trim = _dereq_(102).trim - , NUMBER = 'Number' - , $Number = global[NUMBER] - , Base = $Number - , proto = $Number.prototype - // Opera ~12 has broken Object#toString - , BROKEN_COF = cof(_dereq_(66)(proto)) == NUMBER - , TRIM = 'trim' in String.prototype; +var global = _dereq_(40); +var has = _dereq_(41); +var cof = _dereq_(18); +var inheritIfRequired = _dereq_(45); +var toPrimitive = _dereq_(120); +var fails = _dereq_(35); +var gOPN = _dereq_(77).f; +var gOPD = _dereq_(75).f; +var dP = _dereq_(72).f; +var $trim = _dereq_(111).trim; +var NUMBER = 'Number'; +var $Number = global[NUMBER]; +var Base = $Number; +var proto = $Number.prototype; +// Opera ~12 has broken Object#toString +var BROKEN_COF = cof(_dereq_(71)(proto)) == NUMBER; +var TRIM = 'trim' in String.prototype; // 7.1.3 ToNumber(argument) -var toNumber = function(argument){ +var toNumber = function (argument) { var it = toPrimitive(argument, false); - if(typeof it == 'string' && it.length > 2){ + if (typeof it == 'string' && it.length > 2) { it = TRIM ? it.trim() : $trim(it, 3); - var first = it.charCodeAt(0) - , third, radix, maxCode; - if(first === 43 || first === 45){ + var first = it.charCodeAt(0); + var third, radix, maxCode; + if (first === 43 || first === 45) { third = it.charCodeAt(2); - if(third === 88 || third === 120)return NaN; // Number('+0x1') should be NaN, old V8 fix - } else if(first === 48){ - switch(it.charCodeAt(1)){ - case 66 : case 98 : radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i - case 79 : case 111 : radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i - default : return +it; + if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix + } else if (first === 48) { + switch (it.charCodeAt(1)) { + case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i + case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i + default: return +it; } - for(var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++){ + for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { code = digits.charCodeAt(i); // parseInt parses a string to a first unavailable symbol // but ToNumber should return NaN if a string contains unavailable symbols - if(code < 48 || code > maxCode)return NaN; + if (code < 48 || code > maxCode) return NaN; } return parseInt(digits, radix); } } return +it; }; -if(!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')){ - $Number = function Number(value){ - var it = arguments.length < 1 ? 0 : value - , that = this; +if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { + $Number = function Number(value) { + var it = arguments.length < 1 ? 0 : value; + var that = this; return that instanceof $Number // check on 1..constructor(foo) case - && (BROKEN_COF ? fails(function(){ proto.valueOf.call(that); }) : cof(that) != NUMBER) + && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER) ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); }; - for(var keys = _dereq_(28) ? gOPN(Base) : ( + for (var keys = _dereq_(29) ? gOPN(Base) : ( // ES3: 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES6 (in case, if modules with ES6 Number statics required before): 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' - ).split(','), j = 0, key; keys.length > j; j++){ - if(has(Base, key = keys[j]) && !has($Number, key)){ + ).split(','), j = 0, key; keys.length > j; j++) { + if (has(Base, key = keys[j]) && !has($Number, key)) { dP($Number, key, gOPD(Base, key)); } } $Number.prototype = proto; proto.constructor = $Number; - _dereq_(87)(global, NUMBER, $Number); + _dereq_(94)(global, NUMBER, $Number); } -},{"102":102,"110":110,"18":18,"28":28,"34":34,"38":38,"39":39,"43":43,"66":66,"67":67,"70":70,"72":72,"87":87}],168:[function(_dereq_,module,exports){ + +},{"111":111,"120":120,"18":18,"29":29,"35":35,"40":40,"41":41,"45":45,"71":71,"72":72,"75":75,"77":77,"94":94}],179:[function(_dereq_,module,exports){ // 20.1.2.1 Number.EPSILON -var $export = _dereq_(32); +var $export = _dereq_(33); + +$export($export.S, 'Number', { EPSILON: Math.pow(2, -52) }); -$export($export.S, 'Number', {EPSILON: Math.pow(2, -52)}); -},{"32":32}],169:[function(_dereq_,module,exports){ +},{"33":33}],180:[function(_dereq_,module,exports){ // 20.1.2.2 Number.isFinite(number) -var $export = _dereq_(32) - , _isFinite = _dereq_(38).isFinite; +var $export = _dereq_(33); +var _isFinite = _dereq_(40).isFinite; $export($export.S, 'Number', { - isFinite: function isFinite(it){ + isFinite: function isFinite(it) { return typeof it == 'number' && _isFinite(it); } }); -},{"32":32,"38":38}],170:[function(_dereq_,module,exports){ + +},{"33":33,"40":40}],181:[function(_dereq_,module,exports){ // 20.1.2.3 Number.isInteger(number) -var $export = _dereq_(32); +var $export = _dereq_(33); + +$export($export.S, 'Number', { isInteger: _dereq_(50) }); -$export($export.S, 'Number', {isInteger: _dereq_(48)}); -},{"32":32,"48":48}],171:[function(_dereq_,module,exports){ +},{"33":33,"50":50}],182:[function(_dereq_,module,exports){ // 20.1.2.4 Number.isNaN(number) -var $export = _dereq_(32); +var $export = _dereq_(33); $export($export.S, 'Number', { - isNaN: function isNaN(number){ + isNaN: function isNaN(number) { + // eslint-disable-next-line no-self-compare return number != number; } }); -},{"32":32}],172:[function(_dereq_,module,exports){ + +},{"33":33}],183:[function(_dereq_,module,exports){ // 20.1.2.5 Number.isSafeInteger(number) -var $export = _dereq_(32) - , isInteger = _dereq_(48) - , abs = Math.abs; +var $export = _dereq_(33); +var isInteger = _dereq_(50); +var abs = Math.abs; $export($export.S, 'Number', { - isSafeInteger: function isSafeInteger(number){ + isSafeInteger: function isSafeInteger(number) { return isInteger(number) && abs(number) <= 0x1fffffffffffff; } }); -},{"32":32,"48":48}],173:[function(_dereq_,module,exports){ + +},{"33":33,"50":50}],184:[function(_dereq_,module,exports){ // 20.1.2.6 Number.MAX_SAFE_INTEGER -var $export = _dereq_(32); +var $export = _dereq_(33); -$export($export.S, 'Number', {MAX_SAFE_INTEGER: 0x1fffffffffffff}); -},{"32":32}],174:[function(_dereq_,module,exports){ +$export($export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff }); + +},{"33":33}],185:[function(_dereq_,module,exports){ // 20.1.2.10 Number.MIN_SAFE_INTEGER -var $export = _dereq_(32); +var $export = _dereq_(33); + +$export($export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff }); -$export($export.S, 'Number', {MIN_SAFE_INTEGER: -0x1fffffffffffff}); -},{"32":32}],175:[function(_dereq_,module,exports){ -var $export = _dereq_(32) - , $parseFloat = _dereq_(81); +},{"33":33}],186:[function(_dereq_,module,exports){ +var $export = _dereq_(33); +var $parseFloat = _dereq_(86); // 20.1.2.12 Number.parseFloat(string) -$export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', {parseFloat: $parseFloat}); -},{"32":32,"81":81}],176:[function(_dereq_,module,exports){ -var $export = _dereq_(32) - , $parseInt = _dereq_(82); +$export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', { parseFloat: $parseFloat }); + +},{"33":33,"86":86}],187:[function(_dereq_,module,exports){ +var $export = _dereq_(33); +var $parseInt = _dereq_(87); // 20.1.2.13 Number.parseInt(string, radix) -$export($export.S + $export.F * (Number.parseInt != $parseInt), 'Number', {parseInt: $parseInt}); -},{"32":32,"82":82}],177:[function(_dereq_,module,exports){ +$export($export.S + $export.F * (Number.parseInt != $parseInt), 'Number', { parseInt: $parseInt }); + +},{"33":33,"87":87}],188:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , toInteger = _dereq_(106) - , aNumberValue = _dereq_(4) - , repeat = _dereq_(101) - , $toFixed = 1..toFixed - , floor = Math.floor - , data = [0, 0, 0, 0, 0, 0] - , ERROR = 'Number.toFixed: incorrect invocation!' - , ZERO = '0'; - -var multiply = function(n, c){ - var i = -1 - , c2 = c; - while(++i < 6){ +var $export = _dereq_(33); +var toInteger = _dereq_(116); +var aNumberValue = _dereq_(4); +var repeat = _dereq_(110); +var $toFixed = 1.0.toFixed; +var floor = Math.floor; +var data = [0, 0, 0, 0, 0, 0]; +var ERROR = 'Number.toFixed: incorrect invocation!'; +var ZERO = '0'; + +var multiply = function (n, c) { + var i = -1; + var c2 = c; + while (++i < 6) { c2 += n * data[i]; data[i] = c2 % 1e7; c2 = floor(c2 / 1e7); } }; -var divide = function(n){ - var i = 6 - , c = 0; - while(--i >= 0){ +var divide = function (n) { + var i = 6; + var c = 0; + while (--i >= 0) { c += data[i]; data[i] = floor(c / n); c = (c % n) * 1e7; } }; -var numToString = function(){ - var i = 6 - , s = ''; - while(--i >= 0){ - if(s !== '' || i === 0 || data[i] !== 0){ +var numToString = function () { + var i = 6; + var s = ''; + while (--i >= 0) { + if (s !== '' || i === 0 || data[i] !== 0) { var t = String(data[i]); s = s === '' ? t : s + repeat.call(ZERO, 7 - t.length) + t; } } return s; }; -var pow = function(x, n, acc){ +var pow = function (x, n, acc) { return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc); }; -var log = function(x){ - var n = 0 - , x2 = x; - while(x2 >= 4096){ +var log = function (x) { + var n = 0; + var x2 = x; + while (x2 >= 4096) { n += 12; x2 /= 4096; } - while(x2 >= 2){ - n += 1; + while (x2 >= 2) { + n += 1; x2 /= 2; } return n; }; @@ -3610,39 +3987,40 @@ $export($export.P + $export.F * (!!$toFixed && ( 0.00008.toFixed(3) !== '0.000' || 0.9.toFixed(0) !== '1' || 1.255.toFixed(2) !== '1.25' || - 1000000000000000128..toFixed(0) !== '1000000000000000128' -) || !_dereq_(34)(function(){ + 1000000000000000128.0.toFixed(0) !== '1000000000000000128' +) || !_dereq_(35)(function () { // V8 ~ Android 4.3- $toFixed.call({}); })), 'Number', { - toFixed: function toFixed(fractionDigits){ - var x = aNumberValue(this, ERROR) - , f = toInteger(fractionDigits) - , s = '' - , m = ZERO - , e, z, j, k; - if(f < 0 || f > 20)throw RangeError(ERROR); - if(x != x)return 'NaN'; - if(x <= -1e21 || x >= 1e21)return String(x); - if(x < 0){ + toFixed: function toFixed(fractionDigits) { + var x = aNumberValue(this, ERROR); + var f = toInteger(fractionDigits); + var s = ''; + var m = ZERO; + var e, z, j, k; + if (f < 0 || f > 20) throw RangeError(ERROR); + // eslint-disable-next-line no-self-compare + if (x != x) return 'NaN'; + if (x <= -1e21 || x >= 1e21) return String(x); + if (x < 0) { s = '-'; x = -x; } - if(x > 1e-21){ + if (x > 1e-21) { e = log(x * pow(2, 69, 1)) - 69; z = e < 0 ? x * pow(2, -e, 1) : x / pow(2, e, 1); z *= 0x10000000000000; e = 52 - e; - if(e > 0){ + if (e > 0) { multiply(0, z); j = f; - while(j >= 7){ + while (j >= 7) { multiply(1e7, 0); j -= 7; } multiply(pow(10, j, 1), 0); j = e - 1; - while(j >= 23){ + while (j >= 23) { divide(1 << 23); j -= 23; } @@ -3656,7 +4034,7 @@ $export($export.P + $export.F * (!!$toFixed && ( m = numToString() + repeat.call(ZERO, f); } } - if(f > 0){ + if (f > 0) { k = m.length; m = s + (k <= f ? '0.' + repeat.call(ZERO, f - k) + m : m.slice(0, k - f) + '.' + m.slice(k - f)); } else { @@ -3664,333 +4042,340 @@ $export($export.P + $export.F * (!!$toFixed && ( } return m; } }); -},{"101":101,"106":106,"32":32,"34":34,"4":4}],178:[function(_dereq_,module,exports){ + +},{"110":110,"116":116,"33":33,"35":35,"4":4}],189:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , $fails = _dereq_(34) - , aNumberValue = _dereq_(4) - , $toPrecision = 1..toPrecision; +var $export = _dereq_(33); +var $fails = _dereq_(35); +var aNumberValue = _dereq_(4); +var $toPrecision = 1.0.toPrecision; -$export($export.P + $export.F * ($fails(function(){ +$export($export.P + $export.F * ($fails(function () { // IE7- return $toPrecision.call(1, undefined) !== '1'; -}) || !$fails(function(){ +}) || !$fails(function () { // V8 ~ Android 4.3- $toPrecision.call({}); })), 'Number', { - toPrecision: function toPrecision(precision){ + toPrecision: function toPrecision(precision) { var that = aNumberValue(this, 'Number#toPrecision: incorrect invocation!'); - return precision === undefined ? $toPrecision.call(that) : $toPrecision.call(that, precision); + return precision === undefined ? $toPrecision.call(that) : $toPrecision.call(that, precision); } }); -},{"32":32,"34":34,"4":4}],179:[function(_dereq_,module,exports){ + +},{"33":33,"35":35,"4":4}],190:[function(_dereq_,module,exports){ // 19.1.3.1 Object.assign(target, source) -var $export = _dereq_(32); +var $export = _dereq_(33); -$export($export.S + $export.F, 'Object', {assign: _dereq_(65)}); -},{"32":32,"65":65}],180:[function(_dereq_,module,exports){ -var $export = _dereq_(32) +$export($export.S + $export.F, 'Object', { assign: _dereq_(70) }); + +},{"33":33,"70":70}],191:[function(_dereq_,module,exports){ +var $export = _dereq_(33); // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) -$export($export.S, 'Object', {create: _dereq_(66)}); -},{"32":32,"66":66}],181:[function(_dereq_,module,exports){ -var $export = _dereq_(32); +$export($export.S, 'Object', { create: _dereq_(71) }); + +},{"33":33,"71":71}],192:[function(_dereq_,module,exports){ +var $export = _dereq_(33); // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties) -$export($export.S + $export.F * !_dereq_(28), 'Object', {defineProperties: _dereq_(68)}); -},{"28":28,"32":32,"68":68}],182:[function(_dereq_,module,exports){ -var $export = _dereq_(32); +$export($export.S + $export.F * !_dereq_(29), 'Object', { defineProperties: _dereq_(73) }); + +},{"29":29,"33":33,"73":73}],193:[function(_dereq_,module,exports){ +var $export = _dereq_(33); // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) -$export($export.S + $export.F * !_dereq_(28), 'Object', {defineProperty: _dereq_(67).f}); -},{"28":28,"32":32,"67":67}],183:[function(_dereq_,module,exports){ +$export($export.S + $export.F * !_dereq_(29), 'Object', { defineProperty: _dereq_(72).f }); + +},{"29":29,"33":33,"72":72}],194:[function(_dereq_,module,exports){ // 19.1.2.5 Object.freeze(O) -var isObject = _dereq_(49) - , meta = _dereq_(62).onFreeze; +var isObject = _dereq_(51); +var meta = _dereq_(66).onFreeze; -_dereq_(78)('freeze', function($freeze){ - return function freeze(it){ +_dereq_(83)('freeze', function ($freeze) { + return function freeze(it) { return $freeze && isObject(it) ? $freeze(meta(it)) : it; }; }); -},{"49":49,"62":62,"78":78}],184:[function(_dereq_,module,exports){ + +},{"51":51,"66":66,"83":83}],195:[function(_dereq_,module,exports){ // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) -var toIObject = _dereq_(107) - , $getOwnPropertyDescriptor = _dereq_(70).f; +var toIObject = _dereq_(117); +var $getOwnPropertyDescriptor = _dereq_(75).f; -_dereq_(78)('getOwnPropertyDescriptor', function(){ - return function getOwnPropertyDescriptor(it, key){ +_dereq_(83)('getOwnPropertyDescriptor', function () { + return function getOwnPropertyDescriptor(it, key) { return $getOwnPropertyDescriptor(toIObject(it), key); }; }); -},{"107":107,"70":70,"78":78}],185:[function(_dereq_,module,exports){ + +},{"117":117,"75":75,"83":83}],196:[function(_dereq_,module,exports){ // 19.1.2.7 Object.getOwnPropertyNames(O) -_dereq_(78)('getOwnPropertyNames', function(){ - return _dereq_(71).f; +_dereq_(83)('getOwnPropertyNames', function () { + return _dereq_(76).f; }); -},{"71":71,"78":78}],186:[function(_dereq_,module,exports){ + +},{"76":76,"83":83}],197:[function(_dereq_,module,exports){ // 19.1.2.9 Object.getPrototypeOf(O) -var toObject = _dereq_(109) - , $getPrototypeOf = _dereq_(74); +var toObject = _dereq_(119); +var $getPrototypeOf = _dereq_(79); -_dereq_(78)('getPrototypeOf', function(){ - return function getPrototypeOf(it){ +_dereq_(83)('getPrototypeOf', function () { + return function getPrototypeOf(it) { return $getPrototypeOf(toObject(it)); }; }); -},{"109":109,"74":74,"78":78}],187:[function(_dereq_,module,exports){ + +},{"119":119,"79":79,"83":83}],198:[function(_dereq_,module,exports){ // 19.1.2.11 Object.isExtensible(O) -var isObject = _dereq_(49); +var isObject = _dereq_(51); -_dereq_(78)('isExtensible', function($isExtensible){ - return function isExtensible(it){ +_dereq_(83)('isExtensible', function ($isExtensible) { + return function isExtensible(it) { return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false; }; }); -},{"49":49,"78":78}],188:[function(_dereq_,module,exports){ + +},{"51":51,"83":83}],199:[function(_dereq_,module,exports){ // 19.1.2.12 Object.isFrozen(O) -var isObject = _dereq_(49); +var isObject = _dereq_(51); -_dereq_(78)('isFrozen', function($isFrozen){ - return function isFrozen(it){ +_dereq_(83)('isFrozen', function ($isFrozen) { + return function isFrozen(it) { return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true; }; }); -},{"49":49,"78":78}],189:[function(_dereq_,module,exports){ + +},{"51":51,"83":83}],200:[function(_dereq_,module,exports){ // 19.1.2.13 Object.isSealed(O) -var isObject = _dereq_(49); +var isObject = _dereq_(51); -_dereq_(78)('isSealed', function($isSealed){ - return function isSealed(it){ +_dereq_(83)('isSealed', function ($isSealed) { + return function isSealed(it) { return isObject(it) ? $isSealed ? $isSealed(it) : false : true; }; }); -},{"49":49,"78":78}],190:[function(_dereq_,module,exports){ + +},{"51":51,"83":83}],201:[function(_dereq_,module,exports){ // 19.1.3.10 Object.is(value1, value2) -var $export = _dereq_(32); -$export($export.S, 'Object', {is: _dereq_(89)}); -},{"32":32,"89":89}],191:[function(_dereq_,module,exports){ +var $export = _dereq_(33); +$export($export.S, 'Object', { is: _dereq_(96) }); + +},{"33":33,"96":96}],202:[function(_dereq_,module,exports){ // 19.1.2.14 Object.keys(O) -var toObject = _dereq_(109) - , $keys = _dereq_(76); +var toObject = _dereq_(119); +var $keys = _dereq_(81); -_dereq_(78)('keys', function(){ - return function keys(it){ +_dereq_(83)('keys', function () { + return function keys(it) { return $keys(toObject(it)); }; }); -},{"109":109,"76":76,"78":78}],192:[function(_dereq_,module,exports){ + +},{"119":119,"81":81,"83":83}],203:[function(_dereq_,module,exports){ // 19.1.2.15 Object.preventExtensions(O) -var isObject = _dereq_(49) - , meta = _dereq_(62).onFreeze; +var isObject = _dereq_(51); +var meta = _dereq_(66).onFreeze; -_dereq_(78)('preventExtensions', function($preventExtensions){ - return function preventExtensions(it){ +_dereq_(83)('preventExtensions', function ($preventExtensions) { + return function preventExtensions(it) { return $preventExtensions && isObject(it) ? $preventExtensions(meta(it)) : it; }; }); -},{"49":49,"62":62,"78":78}],193:[function(_dereq_,module,exports){ + +},{"51":51,"66":66,"83":83}],204:[function(_dereq_,module,exports){ // 19.1.2.17 Object.seal(O) -var isObject = _dereq_(49) - , meta = _dereq_(62).onFreeze; +var isObject = _dereq_(51); +var meta = _dereq_(66).onFreeze; -_dereq_(78)('seal', function($seal){ - return function seal(it){ +_dereq_(83)('seal', function ($seal) { + return function seal(it) { return $seal && isObject(it) ? $seal(meta(it)) : it; }; }); -},{"49":49,"62":62,"78":78}],194:[function(_dereq_,module,exports){ + +},{"51":51,"66":66,"83":83}],205:[function(_dereq_,module,exports){ // 19.1.3.19 Object.setPrototypeOf(O, proto) -var $export = _dereq_(32); -$export($export.S, 'Object', {setPrototypeOf: _dereq_(90).set}); -},{"32":32,"90":90}],195:[function(_dereq_,module,exports){ +var $export = _dereq_(33); +$export($export.S, 'Object', { setPrototypeOf: _dereq_(99).set }); + +},{"33":33,"99":99}],206:[function(_dereq_,module,exports){ 'use strict'; // 19.1.3.6 Object.prototype.toString() -var classof = _dereq_(17) - , test = {}; -test[_dereq_(117)('toStringTag')] = 'z'; -if(test + '' != '[object z]'){ - _dereq_(87)(Object.prototype, 'toString', function toString(){ +var classof = _dereq_(17); +var test = {}; +test[_dereq_(128)('toStringTag')] = 'z'; +if (test + '' != '[object z]') { + _dereq_(94)(Object.prototype, 'toString', function toString() { return '[object ' + classof(this) + ']'; }, true); } -},{"117":117,"17":17,"87":87}],196:[function(_dereq_,module,exports){ -var $export = _dereq_(32) - , $parseFloat = _dereq_(81); + +},{"128":128,"17":17,"94":94}],207:[function(_dereq_,module,exports){ +var $export = _dereq_(33); +var $parseFloat = _dereq_(86); // 18.2.4 parseFloat(string) -$export($export.G + $export.F * (parseFloat != $parseFloat), {parseFloat: $parseFloat}); -},{"32":32,"81":81}],197:[function(_dereq_,module,exports){ -var $export = _dereq_(32) - , $parseInt = _dereq_(82); +$export($export.G + $export.F * (parseFloat != $parseFloat), { parseFloat: $parseFloat }); + +},{"33":33,"86":86}],208:[function(_dereq_,module,exports){ +var $export = _dereq_(33); +var $parseInt = _dereq_(87); // 18.2.5 parseInt(string, radix) -$export($export.G + $export.F * (parseInt != $parseInt), {parseInt: $parseInt}); -},{"32":32,"82":82}],198:[function(_dereq_,module,exports){ +$export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt }); + +},{"33":33,"87":87}],209:[function(_dereq_,module,exports){ 'use strict'; -var LIBRARY = _dereq_(58) - , global = _dereq_(38) - , ctx = _dereq_(25) - , classof = _dereq_(17) - , $export = _dereq_(32) - , isObject = _dereq_(49) - , aFunction = _dereq_(3) - , anInstance = _dereq_(6) - , forOf = _dereq_(37) - , speciesConstructor = _dereq_(95) - , task = _dereq_(104).set - , microtask = _dereq_(64)() - , PROMISE = 'Promise' - , TypeError = global.TypeError - , process = global.process - , $Promise = global[PROMISE] - , process = global.process - , isNode = classof(process) == 'process' - , empty = function(){ /* empty */ } - , Internal, GenericPromiseCapability, Wrapper; - -var USE_NATIVE = !!function(){ +var LIBRARY = _dereq_(60); +var global = _dereq_(40); +var ctx = _dereq_(25); +var classof = _dereq_(17); +var $export = _dereq_(33); +var isObject = _dereq_(51); +var aFunction = _dereq_(3); +var anInstance = _dereq_(6); +var forOf = _dereq_(39); +var speciesConstructor = _dereq_(104); +var task = _dereq_(113).set; +var microtask = _dereq_(68)(); +var newPromiseCapabilityModule = _dereq_(69); +var perform = _dereq_(90); +var promiseResolve = _dereq_(91); +var PROMISE = 'Promise'; +var TypeError = global.TypeError; +var process = global.process; +var $Promise = global[PROMISE]; +var isNode = classof(process) == 'process'; +var empty = function () { /* empty */ }; +var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper; +var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f; + +var USE_NATIVE = !!function () { try { // correct subclassing with @@species support - var promise = $Promise.resolve(1) - , FakePromise = (promise.constructor = {})[_dereq_(117)('species')] = function(exec){ exec(empty, empty); }; + var promise = $Promise.resolve(1); + var FakePromise = (promise.constructor = {})[_dereq_(128)('species')] = function (exec) { + exec(empty, empty); + }; // unhandled rejections tracking support, NodeJS Promise without it fails @@species test return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise; - } catch(e){ /* empty */ } + } catch (e) { /* empty */ } }(); // helpers -var sameConstructor = function(a, b){ +var sameConstructor = LIBRARY ? function (a, b) { // with library wrapper special case return a === b || a === $Promise && b === Wrapper; +} : function (a, b) { + return a === b; }; -var isThenable = function(it){ +var isThenable = function (it) { var then; return isObject(it) && typeof (then = it.then) == 'function' ? then : false; }; -var newPromiseCapability = function(C){ - return sameConstructor($Promise, C) - ? new PromiseCapability(C) - : new GenericPromiseCapability(C); -}; -var PromiseCapability = GenericPromiseCapability = function(C){ - var resolve, reject; - this.promise = new C(function($$resolve, $$reject){ - if(resolve !== undefined || reject !== undefined)throw TypeError('Bad Promise constructor'); - resolve = $$resolve; - reject = $$reject; - }); - this.resolve = aFunction(resolve); - this.reject = aFunction(reject); -}; -var perform = function(exec){ - try { - exec(); - } catch(e){ - return {error: e}; - } -}; -var notify = function(promise, isReject){ - if(promise._n)return; +var notify = function (promise, isReject) { + if (promise._n) return; promise._n = true; var chain = promise._c; - microtask(function(){ - var value = promise._v - , ok = promise._s == 1 - , i = 0; - var run = function(reaction){ - var handler = ok ? reaction.ok : reaction.fail - , resolve = reaction.resolve - , reject = reaction.reject - , domain = reaction.domain - , result, then; + microtask(function () { + var value = promise._v; + var ok = promise._s == 1; + var i = 0; + var run = function (reaction) { + var handler = ok ? reaction.ok : reaction.fail; + var resolve = reaction.resolve; + var reject = reaction.reject; + var domain = reaction.domain; + var result, then; try { - if(handler){ - if(!ok){ - if(promise._h == 2)onHandleUnhandled(promise); + if (handler) { + if (!ok) { + if (promise._h == 2) onHandleUnhandled(promise); promise._h = 1; } - if(handler === true)result = value; + if (handler === true) result = value; else { - if(domain)domain.enter(); + if (domain) domain.enter(); result = handler(value); - if(domain)domain.exit(); + if (domain) domain.exit(); } - if(result === reaction.promise){ + if (result === reaction.promise) { reject(TypeError('Promise-chain cycle')); - } else if(then = isThenable(result)){ + } else if (then = isThenable(result)) { then.call(result, resolve, reject); } else resolve(result); } else reject(value); - } catch(e){ + } catch (e) { reject(e); } }; - while(chain.length > i)run(chain[i++]); // variable length - can't use forEach + while (chain.length > i) run(chain[i++]); // variable length - can't use forEach promise._c = []; promise._n = false; - if(isReject && !promise._h)onUnhandled(promise); + if (isReject && !promise._h) onUnhandled(promise); }); }; -var onUnhandled = function(promise){ - task.call(global, function(){ - var value = promise._v - , abrupt, handler, console; - if(isUnhandled(promise)){ - abrupt = perform(function(){ - if(isNode){ +var onUnhandled = function (promise) { + task.call(global, function () { + var value = promise._v; + var unhandled = isUnhandled(promise); + var result, handler, console; + if (unhandled) { + result = perform(function () { + if (isNode) { process.emit('unhandledRejection', value, promise); - } else if(handler = global.onunhandledrejection){ - handler({promise: promise, reason: value}); - } else if((console = global.console) && console.error){ + } else if (handler = global.onunhandledrejection) { + handler({ promise: promise, reason: value }); + } else if ((console = global.console) && console.error) { console.error('Unhandled promise rejection', value); } }); // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should promise._h = isNode || isUnhandled(promise) ? 2 : 1; } promise._a = undefined; - if(abrupt)throw abrupt.error; + if (unhandled && result.e) throw result.v; }); }; -var isUnhandled = function(promise){ - if(promise._h == 1)return false; - var chain = promise._a || promise._c - , i = 0 - , reaction; - while(chain.length > i){ +var isUnhandled = function (promise) { + if (promise._h == 1) return false; + var chain = promise._a || promise._c; + var i = 0; + var reaction; + while (chain.length > i) { reaction = chain[i++]; - if(reaction.fail || !isUnhandled(reaction.promise))return false; + if (reaction.fail || !isUnhandled(reaction.promise)) return false; } return true; }; -var onHandleUnhandled = function(promise){ - task.call(global, function(){ +var onHandleUnhandled = function (promise) { + task.call(global, function () { var handler; - if(isNode){ + if (isNode) { process.emit('rejectionHandled', promise); - } else if(handler = global.onrejectionhandled){ - handler({promise: promise, reason: promise._v}); + } else if (handler = global.onrejectionhandled) { + handler({ promise: promise, reason: promise._v }); } }); }; -var $reject = function(value){ +var $reject = function (value) { var promise = this; - if(promise._d)return; + if (promise._d) return; promise._d = true; promise = promise._w || promise; // unwrap promise._v = value; promise._s = 2; - if(!promise._a)promise._a = promise._c.slice(); + if (!promise._a) promise._a = promise._c.slice(); notify(promise, true); }; -var $resolve = function(value){ - var promise = this - , then; - if(promise._d)return; +var $resolve = function (value) { + var promise = this; + var then; + if (promise._d) return; promise._d = true; promise = promise._w || promise; // unwrap try { - if(promise === value)throw TypeError("Promise can't be resolved itself"); - if(then = isThenable(value)){ - microtask(function(){ - var wrapper = {_w: promise, _d: false}; // wrap + if (promise === value) throw TypeError("Promise can't be resolved itself"); + if (then = isThenable(value)) { + microtask(function () { + var wrapper = { _w: promise, _d: false }; // wrap try { then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); - } catch(e){ + } catch (e) { $reject.call(wrapper, e); } }); @@ -3999,25 +4384,26 @@ var $resolve = function(value){ promise._s = 1; notify(promise, false); } - } catch(e){ - $reject.call({_w: promise, _d: false}, e); // wrap + } catch (e) { + $reject.call({ _w: promise, _d: false }, e); // wrap } }; // constructor polyfill -if(!USE_NATIVE){ +if (!USE_NATIVE) { // 25.4.3.1 Promise(executor) - $Promise = function Promise(executor){ + $Promise = function Promise(executor) { anInstance(this, $Promise, PROMISE, '_h'); aFunction(executor); Internal.call(this); try { executor(ctx($resolve, this, 1), ctx($reject, this, 1)); - } catch(err){ + } catch (err) { $reject.call(this, err); } }; - Internal = function Promise(executor){ + // eslint-disable-next-line no-unused-vars + Internal = function Promise(executor) { this._c = []; // <- awaiting reactions this._a = undefined; // <- checked in isUnhandled reactions this._s = 0; // <- state @@ -4026,149 +4412,153 @@ if(!USE_NATIVE){ this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled this._n = false; // <- notify }; - Internal.prototype = _dereq_(86)($Promise.prototype, { + Internal.prototype = _dereq_(93)($Promise.prototype, { // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) - then: function then(onFulfilled, onRejected){ - var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); - reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; - reaction.fail = typeof onRejected == 'function' && onRejected; + then: function then(onFulfilled, onRejected) { + var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); + reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; + reaction.fail = typeof onRejected == 'function' && onRejected; reaction.domain = isNode ? process.domain : undefined; this._c.push(reaction); - if(this._a)this._a.push(reaction); - if(this._s)notify(this, false); + if (this._a) this._a.push(reaction); + if (this._s) notify(this, false); return reaction.promise; }, // 25.4.5.1 Promise.prototype.catch(onRejected) - 'catch': function(onRejected){ + 'catch': function (onRejected) { return this.then(undefined, onRejected); } }); - PromiseCapability = function(){ - var promise = new Internal; + OwnPromiseCapability = function () { + var promise = new Internal(); this.promise = promise; this.resolve = ctx($resolve, promise, 1); - this.reject = ctx($reject, promise, 1); + this.reject = ctx($reject, promise, 1); + }; + newPromiseCapabilityModule.f = newPromiseCapability = function (C) { + return sameConstructor($Promise, C) + ? new OwnPromiseCapability(C) + : newGenericPromiseCapability(C); }; } -$export($export.G + $export.W + $export.F * !USE_NATIVE, {Promise: $Promise}); -_dereq_(92)($Promise, PROMISE); -_dereq_(91)(PROMISE); +$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise }); +_dereq_(101)($Promise, PROMISE); +_dereq_(100)(PROMISE); Wrapper = _dereq_(23)[PROMISE]; // statics $export($export.S + $export.F * !USE_NATIVE, PROMISE, { // 25.4.4.5 Promise.reject(r) - reject: function reject(r){ - var capability = newPromiseCapability(this) - , $$reject = capability.reject; + reject: function reject(r) { + var capability = newPromiseCapability(this); + var $$reject = capability.reject; $$reject(r); return capability.promise; } }); $export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, { // 25.4.4.6 Promise.resolve(x) - resolve: function resolve(x){ + resolve: function resolve(x) { // instanceof instead of internal slot check because we should fix it without replacement native Promise core - if(x instanceof $Promise && sameConstructor(x.constructor, this))return x; - var capability = newPromiseCapability(this) - , $$resolve = capability.resolve; - $$resolve(x); - return capability.promise; + if (x instanceof $Promise && sameConstructor(x.constructor, this)) return x; + return promiseResolve(this, x); } }); -$export($export.S + $export.F * !(USE_NATIVE && _dereq_(54)(function(iter){ +$export($export.S + $export.F * !(USE_NATIVE && _dereq_(56)(function (iter) { $Promise.all(iter)['catch'](empty); })), PROMISE, { // 25.4.4.1 Promise.all(iterable) - all: function all(iterable){ - var C = this - , capability = newPromiseCapability(C) - , resolve = capability.resolve - , reject = capability.reject; - var abrupt = perform(function(){ - var values = [] - , index = 0 - , remaining = 1; - forOf(iterable, false, function(promise){ - var $index = index++ - , alreadyCalled = false; + all: function all(iterable) { + var C = this; + var capability = newPromiseCapability(C); + var resolve = capability.resolve; + var reject = capability.reject; + var result = perform(function () { + var values = []; + var index = 0; + var remaining = 1; + forOf(iterable, false, function (promise) { + var $index = index++; + var alreadyCalled = false; values.push(undefined); remaining++; - C.resolve(promise).then(function(value){ - if(alreadyCalled)return; - alreadyCalled = true; + C.resolve(promise).then(function (value) { + if (alreadyCalled) return; + alreadyCalled = true; values[$index] = value; --remaining || resolve(values); }, reject); }); --remaining || resolve(values); }); - if(abrupt)reject(abrupt.error); + if (result.e) reject(result.v); return capability.promise; }, // 25.4.4.4 Promise.race(iterable) - race: function race(iterable){ - var C = this - , capability = newPromiseCapability(C) - , reject = capability.reject; - var abrupt = perform(function(){ - forOf(iterable, false, function(promise){ + race: function race(iterable) { + var C = this; + var capability = newPromiseCapability(C); + var reject = capability.reject; + var result = perform(function () { + forOf(iterable, false, function (promise) { C.resolve(promise).then(capability.resolve, reject); }); }); - if(abrupt)reject(abrupt.error); + if (result.e) reject(result.v); return capability.promise; } }); -},{"104":104,"117":117,"17":17,"23":23,"25":25,"3":3,"32":32,"37":37,"38":38,"49":49,"54":54,"58":58,"6":6,"64":64,"86":86,"91":91,"92":92,"95":95}],199:[function(_dereq_,module,exports){ + +},{"100":100,"101":101,"104":104,"113":113,"128":128,"17":17,"23":23,"25":25,"3":3,"33":33,"39":39,"40":40,"51":51,"56":56,"6":6,"60":60,"68":68,"69":69,"90":90,"91":91,"93":93}],210:[function(_dereq_,module,exports){ // 26.1.1 Reflect.apply(target, thisArgument, argumentsList) -var $export = _dereq_(32) - , aFunction = _dereq_(3) - , anObject = _dereq_(7) - , rApply = (_dereq_(38).Reflect || {}).apply - , fApply = Function.apply; +var $export = _dereq_(33); +var aFunction = _dereq_(3); +var anObject = _dereq_(7); +var rApply = (_dereq_(40).Reflect || {}).apply; +var fApply = Function.apply; // MS Edge argumentsList argument is optional -$export($export.S + $export.F * !_dereq_(34)(function(){ - rApply(function(){}); +$export($export.S + $export.F * !_dereq_(35)(function () { + rApply(function () { /* empty */ }); }), 'Reflect', { - apply: function apply(target, thisArgument, argumentsList){ - var T = aFunction(target) - , L = anObject(argumentsList); + apply: function apply(target, thisArgument, argumentsList) { + var T = aFunction(target); + var L = anObject(argumentsList); return rApply ? rApply(T, thisArgument, L) : fApply.call(T, thisArgument, L); } }); -},{"3":3,"32":32,"34":34,"38":38,"7":7}],200:[function(_dereq_,module,exports){ + +},{"3":3,"33":33,"35":35,"40":40,"7":7}],211:[function(_dereq_,module,exports){ // 26.1.2 Reflect.construct(target, argumentsList [, newTarget]) -var $export = _dereq_(32) - , create = _dereq_(66) - , aFunction = _dereq_(3) - , anObject = _dereq_(7) - , isObject = _dereq_(49) - , fails = _dereq_(34) - , bind = _dereq_(16) - , rConstruct = (_dereq_(38).Reflect || {}).construct; +var $export = _dereq_(33); +var create = _dereq_(71); +var aFunction = _dereq_(3); +var anObject = _dereq_(7); +var isObject = _dereq_(51); +var fails = _dereq_(35); +var bind = _dereq_(16); +var rConstruct = (_dereq_(40).Reflect || {}).construct; // MS Edge supports only 2 arguments and argumentsList argument is optional // FF Nightly sets third argument as `new.target`, but does not create `this` from it -var NEW_TARGET_BUG = fails(function(){ - function F(){} - return !(rConstruct(function(){}, [], F) instanceof F); +var NEW_TARGET_BUG = fails(function () { + function F() { /* empty */ } + return !(rConstruct(function () { /* empty */ }, [], F) instanceof F); }); -var ARGS_BUG = !fails(function(){ - rConstruct(function(){}); +var ARGS_BUG = !fails(function () { + rConstruct(function () { /* empty */ }); }); $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { - construct: function construct(Target, args /*, newTarget*/){ + construct: function construct(Target, args /* , newTarget */) { aFunction(Target); anObject(args); var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]); - if(ARGS_BUG && !NEW_TARGET_BUG)return rConstruct(Target, args, newTarget); - if(Target == newTarget){ + if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget); + if (Target == newTarget) { // w/o altered newTarget, optimization for 0-4 arguments - switch(args.length){ - case 0: return new Target; + switch (args.length) { + case 0: return new Target(); case 1: return new Target(args[0]); case 2: return new Target(args[0], args[1]); case 3: return new Target(args[0], args[1], args[2]); @@ -4177,203 +4567,216 @@ $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { // w/o altered newTarget, lot of arguments case var $args = [null]; $args.push.apply($args, args); - return new (bind.apply(Target, $args)); + return new (bind.apply(Target, $args))(); } // with altered newTarget, not support built-in constructors - var proto = newTarget.prototype - , instance = create(isObject(proto) ? proto : Object.prototype) - , result = Function.apply.call(Target, instance, args); + var proto = newTarget.prototype; + var instance = create(isObject(proto) ? proto : Object.prototype); + var result = Function.apply.call(Target, instance, args); return isObject(result) ? result : instance; } }); -},{"16":16,"3":3,"32":32,"34":34,"38":38,"49":49,"66":66,"7":7}],201:[function(_dereq_,module,exports){ + +},{"16":16,"3":3,"33":33,"35":35,"40":40,"51":51,"7":7,"71":71}],212:[function(_dereq_,module,exports){ // 26.1.3 Reflect.defineProperty(target, propertyKey, attributes) -var dP = _dereq_(67) - , $export = _dereq_(32) - , anObject = _dereq_(7) - , toPrimitive = _dereq_(110); +var dP = _dereq_(72); +var $export = _dereq_(33); +var anObject = _dereq_(7); +var toPrimitive = _dereq_(120); // MS Edge has broken Reflect.defineProperty - throwing instead of returning false -$export($export.S + $export.F * _dereq_(34)(function(){ - Reflect.defineProperty(dP.f({}, 1, {value: 1}), 1, {value: 2}); +$export($export.S + $export.F * _dereq_(35)(function () { + // eslint-disable-next-line no-undef + Reflect.defineProperty(dP.f({}, 1, { value: 1 }), 1, { value: 2 }); }), 'Reflect', { - defineProperty: function defineProperty(target, propertyKey, attributes){ + defineProperty: function defineProperty(target, propertyKey, attributes) { anObject(target); propertyKey = toPrimitive(propertyKey, true); anObject(attributes); try { dP.f(target, propertyKey, attributes); return true; - } catch(e){ + } catch (e) { return false; } } }); -},{"110":110,"32":32,"34":34,"67":67,"7":7}],202:[function(_dereq_,module,exports){ + +},{"120":120,"33":33,"35":35,"7":7,"72":72}],213:[function(_dereq_,module,exports){ // 26.1.4 Reflect.deleteProperty(target, propertyKey) -var $export = _dereq_(32) - , gOPD = _dereq_(70).f - , anObject = _dereq_(7); +var $export = _dereq_(33); +var gOPD = _dereq_(75).f; +var anObject = _dereq_(7); $export($export.S, 'Reflect', { - deleteProperty: function deleteProperty(target, propertyKey){ + deleteProperty: function deleteProperty(target, propertyKey) { var desc = gOPD(anObject(target), propertyKey); return desc && !desc.configurable ? false : delete target[propertyKey]; } }); -},{"32":32,"7":7,"70":70}],203:[function(_dereq_,module,exports){ + +},{"33":33,"7":7,"75":75}],214:[function(_dereq_,module,exports){ 'use strict'; // 26.1.5 Reflect.enumerate(target) -var $export = _dereq_(32) - , anObject = _dereq_(7); -var Enumerate = function(iterated){ +var $export = _dereq_(33); +var anObject = _dereq_(7); +var Enumerate = function (iterated) { this._t = anObject(iterated); // target this._i = 0; // next index - var keys = this._k = [] // keys - , key; - for(key in iterated)keys.push(key); -}; -_dereq_(52)(Enumerate, 'Object', function(){ - var that = this - , keys = that._k - , key; + var keys = this._k = []; // keys + var key; + for (key in iterated) keys.push(key); +}; +_dereq_(54)(Enumerate, 'Object', function () { + var that = this; + var keys = that._k; + var key; do { - if(that._i >= keys.length)return {value: undefined, done: true}; - } while(!((key = keys[that._i++]) in that._t)); - return {value: key, done: false}; + if (that._i >= keys.length) return { value: undefined, done: true }; + } while (!((key = keys[that._i++]) in that._t)); + return { value: key, done: false }; }); $export($export.S, 'Reflect', { - enumerate: function enumerate(target){ + enumerate: function enumerate(target) { return new Enumerate(target); } }); -},{"32":32,"52":52,"7":7}],204:[function(_dereq_,module,exports){ + +},{"33":33,"54":54,"7":7}],215:[function(_dereq_,module,exports){ // 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey) -var gOPD = _dereq_(70) - , $export = _dereq_(32) - , anObject = _dereq_(7); +var gOPD = _dereq_(75); +var $export = _dereq_(33); +var anObject = _dereq_(7); $export($export.S, 'Reflect', { - getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey){ + getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) { return gOPD.f(anObject(target), propertyKey); } }); -},{"32":32,"7":7,"70":70}],205:[function(_dereq_,module,exports){ + +},{"33":33,"7":7,"75":75}],216:[function(_dereq_,module,exports){ // 26.1.8 Reflect.getPrototypeOf(target) -var $export = _dereq_(32) - , getProto = _dereq_(74) - , anObject = _dereq_(7); +var $export = _dereq_(33); +var getProto = _dereq_(79); +var anObject = _dereq_(7); $export($export.S, 'Reflect', { - getPrototypeOf: function getPrototypeOf(target){ + getPrototypeOf: function getPrototypeOf(target) { return getProto(anObject(target)); } }); -},{"32":32,"7":7,"74":74}],206:[function(_dereq_,module,exports){ + +},{"33":33,"7":7,"79":79}],217:[function(_dereq_,module,exports){ // 26.1.6 Reflect.get(target, propertyKey [, receiver]) -var gOPD = _dereq_(70) - , getPrototypeOf = _dereq_(74) - , has = _dereq_(39) - , $export = _dereq_(32) - , isObject = _dereq_(49) - , anObject = _dereq_(7); - -function get(target, propertyKey/*, receiver*/){ - var receiver = arguments.length < 3 ? target : arguments[2] - , desc, proto; - if(anObject(target) === receiver)return target[propertyKey]; - if(desc = gOPD.f(target, propertyKey))return has(desc, 'value') +var gOPD = _dereq_(75); +var getPrototypeOf = _dereq_(79); +var has = _dereq_(41); +var $export = _dereq_(33); +var isObject = _dereq_(51); +var anObject = _dereq_(7); + +function get(target, propertyKey /* , receiver */) { + var receiver = arguments.length < 3 ? target : arguments[2]; + var desc, proto; + if (anObject(target) === receiver) return target[propertyKey]; + if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value') ? desc.value : desc.get !== undefined ? desc.get.call(receiver) : undefined; - if(isObject(proto = getPrototypeOf(target)))return get(proto, propertyKey, receiver); + if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver); } -$export($export.S, 'Reflect', {get: get}); -},{"32":32,"39":39,"49":49,"7":7,"70":70,"74":74}],207:[function(_dereq_,module,exports){ +$export($export.S, 'Reflect', { get: get }); + +},{"33":33,"41":41,"51":51,"7":7,"75":75,"79":79}],218:[function(_dereq_,module,exports){ // 26.1.9 Reflect.has(target, propertyKey) -var $export = _dereq_(32); +var $export = _dereq_(33); $export($export.S, 'Reflect', { - has: function has(target, propertyKey){ + has: function has(target, propertyKey) { return propertyKey in target; } }); -},{"32":32}],208:[function(_dereq_,module,exports){ + +},{"33":33}],219:[function(_dereq_,module,exports){ // 26.1.10 Reflect.isExtensible(target) -var $export = _dereq_(32) - , anObject = _dereq_(7) - , $isExtensible = Object.isExtensible; +var $export = _dereq_(33); +var anObject = _dereq_(7); +var $isExtensible = Object.isExtensible; $export($export.S, 'Reflect', { - isExtensible: function isExtensible(target){ + isExtensible: function isExtensible(target) { anObject(target); return $isExtensible ? $isExtensible(target) : true; } }); -},{"32":32,"7":7}],209:[function(_dereq_,module,exports){ + +},{"33":33,"7":7}],220:[function(_dereq_,module,exports){ // 26.1.11 Reflect.ownKeys(target) -var $export = _dereq_(32); +var $export = _dereq_(33); -$export($export.S, 'Reflect', {ownKeys: _dereq_(80)}); -},{"32":32,"80":80}],210:[function(_dereq_,module,exports){ +$export($export.S, 'Reflect', { ownKeys: _dereq_(85) }); + +},{"33":33,"85":85}],221:[function(_dereq_,module,exports){ // 26.1.12 Reflect.preventExtensions(target) -var $export = _dereq_(32) - , anObject = _dereq_(7) - , $preventExtensions = Object.preventExtensions; +var $export = _dereq_(33); +var anObject = _dereq_(7); +var $preventExtensions = Object.preventExtensions; $export($export.S, 'Reflect', { - preventExtensions: function preventExtensions(target){ + preventExtensions: function preventExtensions(target) { anObject(target); try { - if($preventExtensions)$preventExtensions(target); + if ($preventExtensions) $preventExtensions(target); return true; - } catch(e){ + } catch (e) { return false; } } }); -},{"32":32,"7":7}],211:[function(_dereq_,module,exports){ + +},{"33":33,"7":7}],222:[function(_dereq_,module,exports){ // 26.1.14 Reflect.setPrototypeOf(target, proto) -var $export = _dereq_(32) - , setProto = _dereq_(90); +var $export = _dereq_(33); +var setProto = _dereq_(99); -if(setProto)$export($export.S, 'Reflect', { - setPrototypeOf: function setPrototypeOf(target, proto){ +if (setProto) $export($export.S, 'Reflect', { + setPrototypeOf: function setPrototypeOf(target, proto) { setProto.check(target, proto); try { setProto.set(target, proto); return true; - } catch(e){ + } catch (e) { return false; } } }); -},{"32":32,"90":90}],212:[function(_dereq_,module,exports){ + +},{"33":33,"99":99}],223:[function(_dereq_,module,exports){ // 26.1.13 Reflect.set(target, propertyKey, V [, receiver]) -var dP = _dereq_(67) - , gOPD = _dereq_(70) - , getPrototypeOf = _dereq_(74) - , has = _dereq_(39) - , $export = _dereq_(32) - , createDesc = _dereq_(85) - , anObject = _dereq_(7) - , isObject = _dereq_(49); - -function set(target, propertyKey, V/*, receiver*/){ - var receiver = arguments.length < 4 ? target : arguments[3] - , ownDesc = gOPD.f(anObject(target), propertyKey) - , existingDescriptor, proto; - if(!ownDesc){ - if(isObject(proto = getPrototypeOf(target))){ +var dP = _dereq_(72); +var gOPD = _dereq_(75); +var getPrototypeOf = _dereq_(79); +var has = _dereq_(41); +var $export = _dereq_(33); +var createDesc = _dereq_(92); +var anObject = _dereq_(7); +var isObject = _dereq_(51); + +function set(target, propertyKey, V /* , receiver */) { + var receiver = arguments.length < 4 ? target : arguments[3]; + var ownDesc = gOPD.f(anObject(target), propertyKey); + var existingDescriptor, proto; + if (!ownDesc) { + if (isObject(proto = getPrototypeOf(target))) { return set(proto, propertyKey, V, receiver); } ownDesc = createDesc(0); } - if(has(ownDesc, 'value')){ - if(ownDesc.writable === false || !isObject(receiver))return false; + if (has(ownDesc, 'value')) { + if (ownDesc.writable === false || !isObject(receiver)) return false; existingDescriptor = gOPD.f(receiver, propertyKey) || createDesc(0); existingDescriptor.value = V; dP.f(receiver, propertyKey, existingDescriptor); @@ -4382,117 +4785,123 @@ function set(target, propertyKey, V/*, receiver*/){ return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true); } -$export($export.S, 'Reflect', {set: set}); -},{"32":32,"39":39,"49":49,"67":67,"7":7,"70":70,"74":74,"85":85}],213:[function(_dereq_,module,exports){ -var global = _dereq_(38) - , inheritIfRequired = _dereq_(43) - , dP = _dereq_(67).f - , gOPN = _dereq_(72).f - , isRegExp = _dereq_(50) - , $flags = _dereq_(36) - , $RegExp = global.RegExp - , Base = $RegExp - , proto = $RegExp.prototype - , re1 = /a/g - , re2 = /a/g - // "new" creates a new object, old webkit buggy here - , CORRECT_NEW = new $RegExp(re1) !== re1; - -if(_dereq_(28) && (!CORRECT_NEW || _dereq_(34)(function(){ - re2[_dereq_(117)('match')] = false; +$export($export.S, 'Reflect', { set: set }); + +},{"33":33,"41":41,"51":51,"7":7,"72":72,"75":75,"79":79,"92":92}],224:[function(_dereq_,module,exports){ +var global = _dereq_(40); +var inheritIfRequired = _dereq_(45); +var dP = _dereq_(72).f; +var gOPN = _dereq_(77).f; +var isRegExp = _dereq_(52); +var $flags = _dereq_(37); +var $RegExp = global.RegExp; +var Base = $RegExp; +var proto = $RegExp.prototype; +var re1 = /a/g; +var re2 = /a/g; +// "new" creates a new object, old webkit buggy here +var CORRECT_NEW = new $RegExp(re1) !== re1; + +if (_dereq_(29) && (!CORRECT_NEW || _dereq_(35)(function () { + re2[_dereq_(128)('match')] = false; // RegExp constructor can alter flags and IsRegExp works correct with @@match return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i'; -}))){ - $RegExp = function RegExp(p, f){ - var tiRE = this instanceof $RegExp - , piRE = isRegExp(p) - , fiU = f === undefined; +}))) { + $RegExp = function RegExp(p, f) { + var tiRE = this instanceof $RegExp; + var piRE = isRegExp(p); + var fiU = f === undefined; return !tiRE && piRE && p.constructor === $RegExp && fiU ? p : inheritIfRequired(CORRECT_NEW ? new Base(piRE && !fiU ? p.source : p, f) : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f) , tiRE ? this : proto, $RegExp); }; - var proxy = function(key){ + var proxy = function (key) { key in $RegExp || dP($RegExp, key, { configurable: true, - get: function(){ return Base[key]; }, - set: function(it){ Base[key] = it; } + get: function () { return Base[key]; }, + set: function (it) { Base[key] = it; } }); }; - for(var keys = gOPN(Base), i = 0; keys.length > i; )proxy(keys[i++]); + for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]); proto.constructor = $RegExp; $RegExp.prototype = proto; - _dereq_(87)(global, 'RegExp', $RegExp); + _dereq_(94)(global, 'RegExp', $RegExp); } -_dereq_(91)('RegExp'); -},{"117":117,"28":28,"34":34,"36":36,"38":38,"43":43,"50":50,"67":67,"72":72,"87":87,"91":91}],214:[function(_dereq_,module,exports){ +_dereq_(100)('RegExp'); + +},{"100":100,"128":128,"29":29,"35":35,"37":37,"40":40,"45":45,"52":52,"72":72,"77":77,"94":94}],225:[function(_dereq_,module,exports){ // 21.2.5.3 get RegExp.prototype.flags() -if(_dereq_(28) && /./g.flags != 'g')_dereq_(67).f(RegExp.prototype, 'flags', { +if (_dereq_(29) && /./g.flags != 'g') _dereq_(72).f(RegExp.prototype, 'flags', { configurable: true, - get: _dereq_(36) + get: _dereq_(37) }); -},{"28":28,"36":36,"67":67}],215:[function(_dereq_,module,exports){ + +},{"29":29,"37":37,"72":72}],226:[function(_dereq_,module,exports){ // @@match logic -_dereq_(35)('match', 1, function(defined, MATCH, $match){ +_dereq_(36)('match', 1, function (defined, MATCH, $match) { // 21.1.3.11 String.prototype.match(regexp) - return [function match(regexp){ + return [function match(regexp) { 'use strict'; - var O = defined(this) - , fn = regexp == undefined ? undefined : regexp[MATCH]; + var O = defined(this); + var fn = regexp == undefined ? undefined : regexp[MATCH]; return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O)); }, $match]; }); -},{"35":35}],216:[function(_dereq_,module,exports){ + +},{"36":36}],227:[function(_dereq_,module,exports){ // @@replace logic -_dereq_(35)('replace', 2, function(defined, REPLACE, $replace){ +_dereq_(36)('replace', 2, function (defined, REPLACE, $replace) { // 21.1.3.14 String.prototype.replace(searchValue, replaceValue) - return [function replace(searchValue, replaceValue){ + return [function replace(searchValue, replaceValue) { 'use strict'; - var O = defined(this) - , fn = searchValue == undefined ? undefined : searchValue[REPLACE]; + var O = defined(this); + var fn = searchValue == undefined ? undefined : searchValue[REPLACE]; return fn !== undefined ? fn.call(searchValue, O, replaceValue) : $replace.call(String(O), searchValue, replaceValue); }, $replace]; }); -},{"35":35}],217:[function(_dereq_,module,exports){ + +},{"36":36}],228:[function(_dereq_,module,exports){ // @@search logic -_dereq_(35)('search', 1, function(defined, SEARCH, $search){ +_dereq_(36)('search', 1, function (defined, SEARCH, $search) { // 21.1.3.15 String.prototype.search(regexp) - return [function search(regexp){ + return [function search(regexp) { 'use strict'; - var O = defined(this) - , fn = regexp == undefined ? undefined : regexp[SEARCH]; + var O = defined(this); + var fn = regexp == undefined ? undefined : regexp[SEARCH]; return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O)); }, $search]; }); -},{"35":35}],218:[function(_dereq_,module,exports){ + +},{"36":36}],229:[function(_dereq_,module,exports){ // @@split logic -_dereq_(35)('split', 2, function(defined, SPLIT, $split){ +_dereq_(36)('split', 2, function (defined, SPLIT, $split) { 'use strict'; - var isRegExp = _dereq_(50) - , _split = $split - , $push = [].push - , $SPLIT = 'split' - , LENGTH = 'length' - , LAST_INDEX = 'lastIndex'; - if( + var isRegExp = _dereq_(52); + var _split = $split; + var $push = [].push; + var $SPLIT = 'split'; + var LENGTH = 'length'; + var LAST_INDEX = 'lastIndex'; + if ( 'abbc'[$SPLIT](/(b)*/)[1] == 'c' || 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 || 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 || '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 || '.'[$SPLIT](/()()/)[LENGTH] > 1 || ''[$SPLIT](/.?/)[LENGTH] - ){ + ) { var NPCG = /()??/.exec('')[1] === undefined; // nonparticipating capturing group // based on es5-shim implementation, need to rework it - $split = function(separator, limit){ + $split = function (separator, limit) { var string = String(this); - if(separator === undefined && limit === 0)return []; + if (separator === undefined && limit === 0) return []; // If `separator` is not a regex, use native split - if(!isRegExp(separator))return _split.call(string, separator, limit); + if (!isRegExp(separator)) return _split.call(string, separator, limit); var output = []; var flags = (separator.ignoreCase ? 'i' : '') + (separator.multiline ? 'm' : '') + @@ -4504,184 +4913,199 @@ _dereq_(35)('split', 2, function(defined, SPLIT, $split){ var separatorCopy = new RegExp(separator.source, flags + 'g'); var separator2, match, lastIndex, lastLength, i; // Doesn't need flags gy, but they don't hurt - if(!NPCG)separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\s)', flags); - while(match = separatorCopy.exec(string)){ + if (!NPCG) separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\s)', flags); + while (match = separatorCopy.exec(string)) { // `separatorCopy.lastIndex` is not reliable cross-browser lastIndex = match.index + match[0][LENGTH]; - if(lastIndex > lastLastIndex){ + if (lastIndex > lastLastIndex) { output.push(string.slice(lastLastIndex, match.index)); // Fix browsers whose `exec` methods don't consistently return `undefined` for NPCG - if(!NPCG && match[LENGTH] > 1)match[0].replace(separator2, function(){ - for(i = 1; i < arguments[LENGTH] - 2; i++)if(arguments[i] === undefined)match[i] = undefined; + // eslint-disable-next-line no-loop-func + if (!NPCG && match[LENGTH] > 1) match[0].replace(separator2, function () { + for (i = 1; i < arguments[LENGTH] - 2; i++) if (arguments[i] === undefined) match[i] = undefined; }); - if(match[LENGTH] > 1 && match.index < string[LENGTH])$push.apply(output, match.slice(1)); + if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1)); lastLength = match[0][LENGTH]; lastLastIndex = lastIndex; - if(output[LENGTH] >= splitLimit)break; + if (output[LENGTH] >= splitLimit) break; } - if(separatorCopy[LAST_INDEX] === match.index)separatorCopy[LAST_INDEX]++; // Avoid an infinite loop + if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop } - if(lastLastIndex === string[LENGTH]){ - if(lastLength || !separatorCopy.test(''))output.push(''); + if (lastLastIndex === string[LENGTH]) { + if (lastLength || !separatorCopy.test('')) output.push(''); } else output.push(string.slice(lastLastIndex)); return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output; }; // Chakra, V8 - } else if('0'[$SPLIT](undefined, 0)[LENGTH]){ - $split = function(separator, limit){ + } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) { + $split = function (separator, limit) { return separator === undefined && limit === 0 ? [] : _split.call(this, separator, limit); }; } // 21.1.3.17 String.prototype.split(separator, limit) - return [function split(separator, limit){ - var O = defined(this) - , fn = separator == undefined ? undefined : separator[SPLIT]; + return [function split(separator, limit) { + var O = defined(this); + var fn = separator == undefined ? undefined : separator[SPLIT]; return fn !== undefined ? fn.call(separator, O, limit) : $split.call(String(O), separator, limit); }, $split]; }); -},{"35":35,"50":50}],219:[function(_dereq_,module,exports){ + +},{"36":36,"52":52}],230:[function(_dereq_,module,exports){ 'use strict'; -_dereq_(214); -var anObject = _dereq_(7) - , $flags = _dereq_(36) - , DESCRIPTORS = _dereq_(28) - , TO_STRING = 'toString' - , $toString = /./[TO_STRING]; +_dereq_(225); +var anObject = _dereq_(7); +var $flags = _dereq_(37); +var DESCRIPTORS = _dereq_(29); +var TO_STRING = 'toString'; +var $toString = /./[TO_STRING]; -var define = function(fn){ - _dereq_(87)(RegExp.prototype, TO_STRING, fn, true); +var define = function (fn) { + _dereq_(94)(RegExp.prototype, TO_STRING, fn, true); }; // 21.2.5.14 RegExp.prototype.toString() -if(_dereq_(34)(function(){ return $toString.call({source: 'a', flags: 'b'}) != '/a/b'; })){ - define(function toString(){ +if (_dereq_(35)(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) { + define(function toString() { var R = anObject(this); return '/'.concat(R.source, '/', 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined); }); // FF44- RegExp#toString has a wrong name -} else if($toString.name != TO_STRING){ - define(function toString(){ +} else if ($toString.name != TO_STRING) { + define(function toString() { return $toString.call(this); }); } -},{"214":214,"28":28,"34":34,"36":36,"7":7,"87":87}],220:[function(_dereq_,module,exports){ + +},{"225":225,"29":29,"35":35,"37":37,"7":7,"94":94}],231:[function(_dereq_,module,exports){ 'use strict'; var strong = _dereq_(19); +var validate = _dereq_(125); +var SET = 'Set'; // 23.2 Set Objects -module.exports = _dereq_(22)('Set', function(get){ - return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); }; +module.exports = _dereq_(22)(SET, function (get) { + return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.2.3.1 Set.prototype.add(value) - add: function add(value){ - return strong.def(this, value = value === 0 ? 0 : value, value); + add: function add(value) { + return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value); } }, strong); -},{"19":19,"22":22}],221:[function(_dereq_,module,exports){ + +},{"125":125,"19":19,"22":22}],232:[function(_dereq_,module,exports){ 'use strict'; // B.2.3.2 String.prototype.anchor(name) -_dereq_(99)('anchor', function(createHTML){ - return function anchor(name){ +_dereq_(108)('anchor', function (createHTML) { + return function anchor(name) { return createHTML(this, 'a', 'name', name); - } + }; }); -},{"99":99}],222:[function(_dereq_,module,exports){ + +},{"108":108}],233:[function(_dereq_,module,exports){ 'use strict'; // B.2.3.3 String.prototype.big() -_dereq_(99)('big', function(createHTML){ - return function big(){ +_dereq_(108)('big', function (createHTML) { + return function big() { return createHTML(this, 'big', '', ''); - } + }; }); -},{"99":99}],223:[function(_dereq_,module,exports){ + +},{"108":108}],234:[function(_dereq_,module,exports){ 'use strict'; // B.2.3.4 String.prototype.blink() -_dereq_(99)('blink', function(createHTML){ - return function blink(){ +_dereq_(108)('blink', function (createHTML) { + return function blink() { return createHTML(this, 'blink', '', ''); - } + }; }); -},{"99":99}],224:[function(_dereq_,module,exports){ + +},{"108":108}],235:[function(_dereq_,module,exports){ 'use strict'; // B.2.3.5 String.prototype.bold() -_dereq_(99)('bold', function(createHTML){ - return function bold(){ +_dereq_(108)('bold', function (createHTML) { + return function bold() { return createHTML(this, 'b', '', ''); - } + }; }); -},{"99":99}],225:[function(_dereq_,module,exports){ + +},{"108":108}],236:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , $at = _dereq_(97)(false); +var $export = _dereq_(33); +var $at = _dereq_(106)(false); $export($export.P, 'String', { // 21.1.3.3 String.prototype.codePointAt(pos) - codePointAt: function codePointAt(pos){ + codePointAt: function codePointAt(pos) { return $at(this, pos); } }); -},{"32":32,"97":97}],226:[function(_dereq_,module,exports){ + +},{"106":106,"33":33}],237:[function(_dereq_,module,exports){ // 21.1.3.6 String.prototype.endsWith(searchString [, endPosition]) 'use strict'; -var $export = _dereq_(32) - , toLength = _dereq_(108) - , context = _dereq_(98) - , ENDS_WITH = 'endsWith' - , $endsWith = ''[ENDS_WITH]; - -$export($export.P + $export.F * _dereq_(33)(ENDS_WITH), 'String', { - endsWith: function endsWith(searchString /*, endPosition = @length */){ - var that = context(this, searchString, ENDS_WITH) - , endPosition = arguments.length > 1 ? arguments[1] : undefined - , len = toLength(that.length) - , end = endPosition === undefined ? len : Math.min(toLength(endPosition), len) - , search = String(searchString); +var $export = _dereq_(33); +var toLength = _dereq_(118); +var context = _dereq_(107); +var ENDS_WITH = 'endsWith'; +var $endsWith = ''[ENDS_WITH]; + +$export($export.P + $export.F * _dereq_(34)(ENDS_WITH), 'String', { + endsWith: function endsWith(searchString /* , endPosition = @length */) { + var that = context(this, searchString, ENDS_WITH); + var endPosition = arguments.length > 1 ? arguments[1] : undefined; + var len = toLength(that.length); + var end = endPosition === undefined ? len : Math.min(toLength(endPosition), len); + var search = String(searchString); return $endsWith ? $endsWith.call(that, search, end) : that.slice(end - search.length, end) === search; } }); -},{"108":108,"32":32,"33":33,"98":98}],227:[function(_dereq_,module,exports){ + +},{"107":107,"118":118,"33":33,"34":34}],238:[function(_dereq_,module,exports){ 'use strict'; // B.2.3.6 String.prototype.fixed() -_dereq_(99)('fixed', function(createHTML){ - return function fixed(){ +_dereq_(108)('fixed', function (createHTML) { + return function fixed() { return createHTML(this, 'tt', '', ''); - } + }; }); -},{"99":99}],228:[function(_dereq_,module,exports){ + +},{"108":108}],239:[function(_dereq_,module,exports){ 'use strict'; // B.2.3.7 String.prototype.fontcolor(color) -_dereq_(99)('fontcolor', function(createHTML){ - return function fontcolor(color){ +_dereq_(108)('fontcolor', function (createHTML) { + return function fontcolor(color) { return createHTML(this, 'font', 'color', color); - } + }; }); -},{"99":99}],229:[function(_dereq_,module,exports){ + +},{"108":108}],240:[function(_dereq_,module,exports){ 'use strict'; // B.2.3.8 String.prototype.fontsize(size) -_dereq_(99)('fontsize', function(createHTML){ - return function fontsize(size){ +_dereq_(108)('fontsize', function (createHTML) { + return function fontsize(size) { return createHTML(this, 'font', 'size', size); - } + }; }); -},{"99":99}],230:[function(_dereq_,module,exports){ -var $export = _dereq_(32) - , toIndex = _dereq_(105) - , fromCharCode = String.fromCharCode - , $fromCodePoint = String.fromCodePoint; + +},{"108":108}],241:[function(_dereq_,module,exports){ +var $export = _dereq_(33); +var toAbsoluteIndex = _dereq_(114); +var fromCharCode = String.fromCharCode; +var $fromCodePoint = String.fromCodePoint; // length should be 1, old FF problem $export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', { // 21.1.2.2 String.fromCodePoint(...codePoints) - fromCodePoint: function fromCodePoint(x){ // eslint-disable-line no-unused-vars - var res = [] - , aLen = arguments.length - , i = 0 - , code; - while(aLen > i){ + fromCodePoint: function fromCodePoint(x) { // eslint-disable-line no-unused-vars + var res = []; + var aLen = arguments.length; + var i = 0; + var code; + while (aLen > i) { code = +arguments[i++]; - if(toIndex(code, 0x10ffff) !== code)throw RangeError(code + ' is not a valid code point'); + if (toAbsoluteIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point'); res.push(code < 0x10000 ? fromCharCode(code) : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00) @@ -4689,324 +5113,337 @@ $export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1) } return res.join(''); } }); -},{"105":105,"32":32}],231:[function(_dereq_,module,exports){ + +},{"114":114,"33":33}],242:[function(_dereq_,module,exports){ // 21.1.3.7 String.prototype.includes(searchString, position = 0) 'use strict'; -var $export = _dereq_(32) - , context = _dereq_(98) - , INCLUDES = 'includes'; +var $export = _dereq_(33); +var context = _dereq_(107); +var INCLUDES = 'includes'; -$export($export.P + $export.F * _dereq_(33)(INCLUDES), 'String', { - includes: function includes(searchString /*, position = 0 */){ +$export($export.P + $export.F * _dereq_(34)(INCLUDES), 'String', { + includes: function includes(searchString /* , position = 0 */) { return !!~context(this, searchString, INCLUDES) .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined); } }); -},{"32":32,"33":33,"98":98}],232:[function(_dereq_,module,exports){ + +},{"107":107,"33":33,"34":34}],243:[function(_dereq_,module,exports){ 'use strict'; // B.2.3.9 String.prototype.italics() -_dereq_(99)('italics', function(createHTML){ - return function italics(){ +_dereq_(108)('italics', function (createHTML) { + return function italics() { return createHTML(this, 'i', '', ''); - } + }; }); -},{"99":99}],233:[function(_dereq_,module,exports){ + +},{"108":108}],244:[function(_dereq_,module,exports){ 'use strict'; -var $at = _dereq_(97)(true); +var $at = _dereq_(106)(true); // 21.1.3.27 String.prototype[@@iterator]() -_dereq_(53)(String, 'String', function(iterated){ +_dereq_(55)(String, 'String', function (iterated) { this._t = String(iterated); // target this._i = 0; // next index // 21.1.5.2.1 %StringIteratorPrototype%.next() -}, function(){ - var O = this._t - , index = this._i - , point; - if(index >= O.length)return {value: undefined, done: true}; +}, function () { + var O = this._t; + var index = this._i; + var point; + if (index >= O.length) return { value: undefined, done: true }; point = $at(O, index); this._i += point.length; - return {value: point, done: false}; + return { value: point, done: false }; }); -},{"53":53,"97":97}],234:[function(_dereq_,module,exports){ + +},{"106":106,"55":55}],245:[function(_dereq_,module,exports){ 'use strict'; // B.2.3.10 String.prototype.link(url) -_dereq_(99)('link', function(createHTML){ - return function link(url){ +_dereq_(108)('link', function (createHTML) { + return function link(url) { return createHTML(this, 'a', 'href', url); - } + }; }); -},{"99":99}],235:[function(_dereq_,module,exports){ -var $export = _dereq_(32) - , toIObject = _dereq_(107) - , toLength = _dereq_(108); + +},{"108":108}],246:[function(_dereq_,module,exports){ +var $export = _dereq_(33); +var toIObject = _dereq_(117); +var toLength = _dereq_(118); $export($export.S, 'String', { // 21.1.2.4 String.raw(callSite, ...substitutions) - raw: function raw(callSite){ - var tpl = toIObject(callSite.raw) - , len = toLength(tpl.length) - , aLen = arguments.length - , res = [] - , i = 0; - while(len > i){ + raw: function raw(callSite) { + var tpl = toIObject(callSite.raw); + var len = toLength(tpl.length); + var aLen = arguments.length; + var res = []; + var i = 0; + while (len > i) { res.push(String(tpl[i++])); - if(i < aLen)res.push(String(arguments[i])); + if (i < aLen) res.push(String(arguments[i])); } return res.join(''); } }); -},{"107":107,"108":108,"32":32}],236:[function(_dereq_,module,exports){ -var $export = _dereq_(32); + +},{"117":117,"118":118,"33":33}],247:[function(_dereq_,module,exports){ +var $export = _dereq_(33); $export($export.P, 'String', { // 21.1.3.13 String.prototype.repeat(count) - repeat: _dereq_(101) + repeat: _dereq_(110) }); -},{"101":101,"32":32}],237:[function(_dereq_,module,exports){ + +},{"110":110,"33":33}],248:[function(_dereq_,module,exports){ 'use strict'; // B.2.3.11 String.prototype.small() -_dereq_(99)('small', function(createHTML){ - return function small(){ +_dereq_(108)('small', function (createHTML) { + return function small() { return createHTML(this, 'small', '', ''); - } + }; }); -},{"99":99}],238:[function(_dereq_,module,exports){ + +},{"108":108}],249:[function(_dereq_,module,exports){ // 21.1.3.18 String.prototype.startsWith(searchString [, position ]) 'use strict'; -var $export = _dereq_(32) - , toLength = _dereq_(108) - , context = _dereq_(98) - , STARTS_WITH = 'startsWith' - , $startsWith = ''[STARTS_WITH]; - -$export($export.P + $export.F * _dereq_(33)(STARTS_WITH), 'String', { - startsWith: function startsWith(searchString /*, position = 0 */){ - var that = context(this, searchString, STARTS_WITH) - , index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length)) - , search = String(searchString); +var $export = _dereq_(33); +var toLength = _dereq_(118); +var context = _dereq_(107); +var STARTS_WITH = 'startsWith'; +var $startsWith = ''[STARTS_WITH]; + +$export($export.P + $export.F * _dereq_(34)(STARTS_WITH), 'String', { + startsWith: function startsWith(searchString /* , position = 0 */) { + var that = context(this, searchString, STARTS_WITH); + var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length)); + var search = String(searchString); return $startsWith ? $startsWith.call(that, search, index) : that.slice(index, index + search.length) === search; } }); -},{"108":108,"32":32,"33":33,"98":98}],239:[function(_dereq_,module,exports){ + +},{"107":107,"118":118,"33":33,"34":34}],250:[function(_dereq_,module,exports){ 'use strict'; // B.2.3.12 String.prototype.strike() -_dereq_(99)('strike', function(createHTML){ - return function strike(){ +_dereq_(108)('strike', function (createHTML) { + return function strike() { return createHTML(this, 'strike', '', ''); - } + }; }); -},{"99":99}],240:[function(_dereq_,module,exports){ + +},{"108":108}],251:[function(_dereq_,module,exports){ 'use strict'; // B.2.3.13 String.prototype.sub() -_dereq_(99)('sub', function(createHTML){ - return function sub(){ +_dereq_(108)('sub', function (createHTML) { + return function sub() { return createHTML(this, 'sub', '', ''); - } + }; }); -},{"99":99}],241:[function(_dereq_,module,exports){ + +},{"108":108}],252:[function(_dereq_,module,exports){ 'use strict'; // B.2.3.14 String.prototype.sup() -_dereq_(99)('sup', function(createHTML){ - return function sup(){ +_dereq_(108)('sup', function (createHTML) { + return function sup() { return createHTML(this, 'sup', '', ''); - } + }; }); -},{"99":99}],242:[function(_dereq_,module,exports){ + +},{"108":108}],253:[function(_dereq_,module,exports){ 'use strict'; // 21.1.3.25 String.prototype.trim() -_dereq_(102)('trim', function($trim){ - return function trim(){ +_dereq_(111)('trim', function ($trim) { + return function trim() { return $trim(this, 3); }; }); -},{"102":102}],243:[function(_dereq_,module,exports){ + +},{"111":111}],254:[function(_dereq_,module,exports){ 'use strict'; // ECMAScript 6 symbols shim -var global = _dereq_(38) - , has = _dereq_(39) - , DESCRIPTORS = _dereq_(28) - , $export = _dereq_(32) - , redefine = _dereq_(87) - , META = _dereq_(62).KEY - , $fails = _dereq_(34) - , shared = _dereq_(94) - , setToStringTag = _dereq_(92) - , uid = _dereq_(114) - , wks = _dereq_(117) - , wksExt = _dereq_(116) - , wksDefine = _dereq_(115) - , keyOf = _dereq_(57) - , enumKeys = _dereq_(31) - , isArray = _dereq_(47) - , anObject = _dereq_(7) - , toIObject = _dereq_(107) - , toPrimitive = _dereq_(110) - , createDesc = _dereq_(85) - , _create = _dereq_(66) - , gOPNExt = _dereq_(71) - , $GOPD = _dereq_(70) - , $DP = _dereq_(67) - , $keys = _dereq_(76) - , gOPD = $GOPD.f - , dP = $DP.f - , gOPN = gOPNExt.f - , $Symbol = global.Symbol - , $JSON = global.JSON - , _stringify = $JSON && $JSON.stringify - , PROTOTYPE = 'prototype' - , HIDDEN = wks('_hidden') - , TO_PRIMITIVE = wks('toPrimitive') - , isEnum = {}.propertyIsEnumerable - , SymbolRegistry = shared('symbol-registry') - , AllSymbols = shared('symbols') - , OPSymbols = shared('op-symbols') - , ObjectProto = Object[PROTOTYPE] - , USE_NATIVE = typeof $Symbol == 'function' - , QObject = global.QObject; +var global = _dereq_(40); +var has = _dereq_(41); +var DESCRIPTORS = _dereq_(29); +var $export = _dereq_(33); +var redefine = _dereq_(94); +var META = _dereq_(66).KEY; +var $fails = _dereq_(35); +var shared = _dereq_(103); +var setToStringTag = _dereq_(101); +var uid = _dereq_(124); +var wks = _dereq_(128); +var wksExt = _dereq_(127); +var wksDefine = _dereq_(126); +var keyOf = _dereq_(59); +var enumKeys = _dereq_(32); +var isArray = _dereq_(49); +var anObject = _dereq_(7); +var toIObject = _dereq_(117); +var toPrimitive = _dereq_(120); +var createDesc = _dereq_(92); +var _create = _dereq_(71); +var gOPNExt = _dereq_(76); +var $GOPD = _dereq_(75); +var $DP = _dereq_(72); +var $keys = _dereq_(81); +var gOPD = $GOPD.f; +var dP = $DP.f; +var gOPN = gOPNExt.f; +var $Symbol = global.Symbol; +var $JSON = global.JSON; +var _stringify = $JSON && $JSON.stringify; +var PROTOTYPE = 'prototype'; +var HIDDEN = wks('_hidden'); +var TO_PRIMITIVE = wks('toPrimitive'); +var isEnum = {}.propertyIsEnumerable; +var SymbolRegistry = shared('symbol-registry'); +var AllSymbols = shared('symbols'); +var OPSymbols = shared('op-symbols'); +var ObjectProto = Object[PROTOTYPE]; +var USE_NATIVE = typeof $Symbol == 'function'; +var QObject = global.QObject; // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 -var setSymbolDesc = DESCRIPTORS && $fails(function(){ +var setSymbolDesc = DESCRIPTORS && $fails(function () { return _create(dP({}, 'a', { - get: function(){ return dP(this, 'a', {value: 7}).a; } + get: function () { return dP(this, 'a', { value: 7 }).a; } })).a != 7; -}) ? function(it, key, D){ +}) ? function (it, key, D) { var protoDesc = gOPD(ObjectProto, key); - if(protoDesc)delete ObjectProto[key]; + if (protoDesc) delete ObjectProto[key]; dP(it, key, D); - if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc); + if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); } : dP; -var wrap = function(tag){ +var wrap = function (tag) { var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); sym._k = tag; return sym; }; -var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){ +var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { return typeof it == 'symbol'; -} : function(it){ +} : function (it) { return it instanceof $Symbol; }; -var $defineProperty = function defineProperty(it, key, D){ - if(it === ObjectProto)$defineProperty(OPSymbols, key, D); +var $defineProperty = function defineProperty(it, key, D) { + if (it === ObjectProto) $defineProperty(OPSymbols, key, D); anObject(it); key = toPrimitive(key, true); anObject(D); - if(has(AllSymbols, key)){ - if(!D.enumerable){ - if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {})); + if (has(AllSymbols, key)) { + if (!D.enumerable) { + if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); it[HIDDEN][key] = true; } else { - if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false; - D = _create(D, {enumerable: createDesc(0, false)}); + if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; + D = _create(D, { enumerable: createDesc(0, false) }); } return setSymbolDesc(it, key, D); } return dP(it, key, D); }; -var $defineProperties = function defineProperties(it, P){ +var $defineProperties = function defineProperties(it, P) { anObject(it); - var keys = enumKeys(P = toIObject(P)) - , i = 0 - , l = keys.length - , key; - while(l > i)$defineProperty(it, key = keys[i++], P[key]); + var keys = enumKeys(P = toIObject(P)); + var i = 0; + var l = keys.length; + var key; + while (l > i) $defineProperty(it, key = keys[i++], P[key]); return it; }; -var $create = function create(it, P){ +var $create = function create(it, P) { return P === undefined ? _create(it) : $defineProperties(_create(it), P); }; -var $propertyIsEnumerable = function propertyIsEnumerable(key){ +var $propertyIsEnumerable = function propertyIsEnumerable(key) { var E = isEnum.call(this, key = toPrimitive(key, true)); - if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false; + if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; }; -var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){ - it = toIObject(it); +var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { + it = toIObject(it); key = toPrimitive(key, true); - if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return; + if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; var D = gOPD(it, key); - if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true; + if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; return D; }; -var $getOwnPropertyNames = function getOwnPropertyNames(it){ - var names = gOPN(toIObject(it)) - , result = [] - , i = 0 - , key; - while(names.length > i){ - if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key); +var $getOwnPropertyNames = function getOwnPropertyNames(it) { + var names = gOPN(toIObject(it)); + var result = []; + var i = 0; + var key; + while (names.length > i) { + if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); } return result; }; -var $getOwnPropertySymbols = function getOwnPropertySymbols(it){ - var IS_OP = it === ObjectProto - , names = gOPN(IS_OP ? OPSymbols : toIObject(it)) - , result = [] - , i = 0 - , key; - while(names.length > i){ - if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]); +var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { + var IS_OP = it === ObjectProto; + var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); + var result = []; + var i = 0; + var key; + while (names.length > i) { + if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); } return result; }; // 19.4.1.1 Symbol([description]) -if(!USE_NATIVE){ - $Symbol = function Symbol(){ - if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!'); +if (!USE_NATIVE) { + $Symbol = function Symbol() { + if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); var tag = uid(arguments.length > 0 ? arguments[0] : undefined); - var $set = function(value){ - if(this === ObjectProto)$set.call(OPSymbols, value); - if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false; + var $set = function (value) { + if (this === ObjectProto) $set.call(OPSymbols, value); + if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; setSymbolDesc(this, tag, createDesc(1, value)); }; - if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set}); + if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); return wrap(tag); }; - redefine($Symbol[PROTOTYPE], 'toString', function toString(){ + redefine($Symbol[PROTOTYPE], 'toString', function toString() { return this._k; }); $GOPD.f = $getOwnPropertyDescriptor; - $DP.f = $defineProperty; - _dereq_(72).f = gOPNExt.f = $getOwnPropertyNames; - _dereq_(77).f = $propertyIsEnumerable; - _dereq_(73).f = $getOwnPropertySymbols; + $DP.f = $defineProperty; + _dereq_(77).f = gOPNExt.f = $getOwnPropertyNames; + _dereq_(82).f = $propertyIsEnumerable; + _dereq_(78).f = $getOwnPropertySymbols; - if(DESCRIPTORS && !_dereq_(58)){ + if (DESCRIPTORS && !_dereq_(60)) { redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); } - wksExt.f = function(name){ + wksExt.f = function (name) { return wrap(wks(name)); - } + }; } -$export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol}); +$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); -for(var symbols = ( +for (var es6Symbols = ( // 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 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' -).split(','), i = 0; symbols.length > i; )wks(symbols[i++]); +).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); -for(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]); +for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { // 19.4.2.1 Symbol.for(key) - 'for': function(key){ + 'for': function (key) { return has(SymbolRegistry, key += '') ? SymbolRegistry[key] : SymbolRegistry[key] = $Symbol(key); }, // 19.4.2.5 Symbol.keyFor(sym) - keyFor: function keyFor(key){ - if(isSymbol(key))return keyOf(SymbolRegistry, key); + keyFor: function keyFor(key) { + if (isSymbol(key)) return keyOf(SymbolRegistry, key); throw TypeError(key + ' is not a symbol!'); }, - useSetter: function(){ setter = true; }, - useSimple: function(){ setter = false; } + useSetter: function () { setter = true; }, + useSimple: function () { setter = false; } }); $export($export.S + $export.F * !USE_NATIVE, 'Object', { @@ -5025,24 +5462,24 @@ $export($export.S + $export.F * !USE_NATIVE, 'Object', { }); // 24.3.2 JSON.stringify(value [, replacer [, space]]) -$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){ +$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { var S = $Symbol(); // MS Edge converts symbol values to JSON as {} // WebKit converts symbol values to JSON as null // V8 throws on boxed symbols - return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}'; + return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; })), 'JSON', { - stringify: function stringify(it){ - if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined - var args = [it] - , i = 1 - , replacer, $replacer; - while(arguments.length > i)args.push(arguments[i++]); + stringify: function stringify(it) { + if (it === undefined || isSymbol(it)) return; // IE8 returns string on undefined + var args = [it]; + var i = 1; + var replacer, $replacer; + while (arguments.length > i) args.push(arguments[i++]); replacer = args[1]; - if(typeof replacer == 'function')$replacer = replacer; - if($replacer || !isArray(replacer))replacer = function(key, value){ - if($replacer)value = $replacer.call(this, key, value); - if(!isSymbol(value))return value; + if (typeof replacer == 'function') $replacer = replacer; + if ($replacer || !isArray(replacer)) replacer = function (key, value) { + if ($replacer) value = $replacer.call(this, key, value); + if (!isSymbol(value)) return value; }; args[1] = replacer; return _stringify.apply($JSON, args); @@ -5050,169 +5487,184 @@ $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){ }); // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) -$Symbol[PROTOTYPE][TO_PRIMITIVE] || _dereq_(40)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); +$Symbol[PROTOTYPE][TO_PRIMITIVE] || _dereq_(42)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); // 19.4.3.5 Symbol.prototype[@@toStringTag] setToStringTag($Symbol, 'Symbol'); // 20.2.1.9 Math[@@toStringTag] setToStringTag(Math, 'Math', true); // 24.3.3 JSON[@@toStringTag] setToStringTag(global.JSON, 'JSON', true); -},{"107":107,"110":110,"114":114,"115":115,"116":116,"117":117,"28":28,"31":31,"32":32,"34":34,"38":38,"39":39,"40":40,"47":47,"57":57,"58":58,"62":62,"66":66,"67":67,"7":7,"70":70,"71":71,"72":72,"73":73,"76":76,"77":77,"85":85,"87":87,"92":92,"94":94}],244:[function(_dereq_,module,exports){ + +},{"101":101,"103":103,"117":117,"120":120,"124":124,"126":126,"127":127,"128":128,"29":29,"32":32,"33":33,"35":35,"40":40,"41":41,"42":42,"49":49,"59":59,"60":60,"66":66,"7":7,"71":71,"72":72,"75":75,"76":76,"77":77,"78":78,"81":81,"82":82,"92":92,"94":94}],255:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , $typed = _dereq_(113) - , buffer = _dereq_(112) - , anObject = _dereq_(7) - , toIndex = _dereq_(105) - , toLength = _dereq_(108) - , isObject = _dereq_(49) - , ArrayBuffer = _dereq_(38).ArrayBuffer - , speciesConstructor = _dereq_(95) - , $ArrayBuffer = buffer.ArrayBuffer - , $DataView = buffer.DataView - , $isView = $typed.ABV && ArrayBuffer.isView - , $slice = $ArrayBuffer.prototype.slice - , VIEW = $typed.VIEW - , ARRAY_BUFFER = 'ArrayBuffer'; - -$export($export.G + $export.W + $export.F * (ArrayBuffer !== $ArrayBuffer), {ArrayBuffer: $ArrayBuffer}); +var $export = _dereq_(33); +var $typed = _dereq_(123); +var buffer = _dereq_(122); +var anObject = _dereq_(7); +var toAbsoluteIndex = _dereq_(114); +var toLength = _dereq_(118); +var isObject = _dereq_(51); +var ArrayBuffer = _dereq_(40).ArrayBuffer; +var speciesConstructor = _dereq_(104); +var $ArrayBuffer = buffer.ArrayBuffer; +var $DataView = buffer.DataView; +var $isView = $typed.ABV && ArrayBuffer.isView; +var $slice = $ArrayBuffer.prototype.slice; +var VIEW = $typed.VIEW; +var ARRAY_BUFFER = 'ArrayBuffer'; + +$export($export.G + $export.W + $export.F * (ArrayBuffer !== $ArrayBuffer), { ArrayBuffer: $ArrayBuffer }); $export($export.S + $export.F * !$typed.CONSTR, ARRAY_BUFFER, { // 24.1.3.1 ArrayBuffer.isView(arg) - isView: function isView(it){ + isView: function isView(it) { return $isView && $isView(it) || isObject(it) && VIEW in it; } }); -$export($export.P + $export.U + $export.F * _dereq_(34)(function(){ +$export($export.P + $export.U + $export.F * _dereq_(35)(function () { return !new $ArrayBuffer(2).slice(1, undefined).byteLength; }), ARRAY_BUFFER, { // 24.1.4.3 ArrayBuffer.prototype.slice(start, end) - slice: function slice(start, end){ - if($slice !== undefined && end === undefined)return $slice.call(anObject(this), start); // FF fix - var len = anObject(this).byteLength - , first = toIndex(start, len) - , final = toIndex(end === undefined ? len : end, len) - , result = new (speciesConstructor(this, $ArrayBuffer))(toLength(final - first)) - , viewS = new $DataView(this) - , viewT = new $DataView(result) - , index = 0; - while(first < final){ + slice: function slice(start, end) { + if ($slice !== undefined && end === undefined) return $slice.call(anObject(this), start); // FF fix + var len = anObject(this).byteLength; + var first = toAbsoluteIndex(start, len); + var final = toAbsoluteIndex(end === undefined ? len : end, len); + var result = new (speciesConstructor(this, $ArrayBuffer))(toLength(final - first)); + var viewS = new $DataView(this); + var viewT = new $DataView(result); + var index = 0; + while (first < final) { viewT.setUint8(index++, viewS.getUint8(first++)); } return result; } }); -_dereq_(91)(ARRAY_BUFFER); -},{"105":105,"108":108,"112":112,"113":113,"32":32,"34":34,"38":38,"49":49,"7":7,"91":91,"95":95}],245:[function(_dereq_,module,exports){ -var $export = _dereq_(32); -$export($export.G + $export.W + $export.F * !_dereq_(113).ABV, { - DataView: _dereq_(112).DataView +_dereq_(100)(ARRAY_BUFFER); + +},{"100":100,"104":104,"114":114,"118":118,"122":122,"123":123,"33":33,"35":35,"40":40,"51":51,"7":7}],256:[function(_dereq_,module,exports){ +var $export = _dereq_(33); +$export($export.G + $export.W + $export.F * !_dereq_(123).ABV, { + DataView: _dereq_(122).DataView }); -},{"112":112,"113":113,"32":32}],246:[function(_dereq_,module,exports){ -_dereq_(111)('Float32', 4, function(init){ - return function Float32Array(data, byteOffset, length){ + +},{"122":122,"123":123,"33":33}],257:[function(_dereq_,module,exports){ +_dereq_(121)('Float32', 4, function (init) { + return function Float32Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"111":111}],247:[function(_dereq_,module,exports){ -_dereq_(111)('Float64', 8, function(init){ - return function Float64Array(data, byteOffset, length){ + +},{"121":121}],258:[function(_dereq_,module,exports){ +_dereq_(121)('Float64', 8, function (init) { + return function Float64Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"111":111}],248:[function(_dereq_,module,exports){ -_dereq_(111)('Int16', 2, function(init){ - return function Int16Array(data, byteOffset, length){ + +},{"121":121}],259:[function(_dereq_,module,exports){ +_dereq_(121)('Int16', 2, function (init) { + return function Int16Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"111":111}],249:[function(_dereq_,module,exports){ -_dereq_(111)('Int32', 4, function(init){ - return function Int32Array(data, byteOffset, length){ + +},{"121":121}],260:[function(_dereq_,module,exports){ +_dereq_(121)('Int32', 4, function (init) { + return function Int32Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"111":111}],250:[function(_dereq_,module,exports){ -_dereq_(111)('Int8', 1, function(init){ - return function Int8Array(data, byteOffset, length){ + +},{"121":121}],261:[function(_dereq_,module,exports){ +_dereq_(121)('Int8', 1, function (init) { + return function Int8Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"111":111}],251:[function(_dereq_,module,exports){ -_dereq_(111)('Uint16', 2, function(init){ - return function Uint16Array(data, byteOffset, length){ + +},{"121":121}],262:[function(_dereq_,module,exports){ +_dereq_(121)('Uint16', 2, function (init) { + return function Uint16Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"111":111}],252:[function(_dereq_,module,exports){ -_dereq_(111)('Uint32', 4, function(init){ - return function Uint32Array(data, byteOffset, length){ + +},{"121":121}],263:[function(_dereq_,module,exports){ +_dereq_(121)('Uint32', 4, function (init) { + return function Uint32Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"111":111}],253:[function(_dereq_,module,exports){ -_dereq_(111)('Uint8', 1, function(init){ - return function Uint8Array(data, byteOffset, length){ + +},{"121":121}],264:[function(_dereq_,module,exports){ +_dereq_(121)('Uint8', 1, function (init) { + return function Uint8Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -},{"111":111}],254:[function(_dereq_,module,exports){ -_dereq_(111)('Uint8', 1, function(init){ - return function Uint8ClampedArray(data, byteOffset, length){ + +},{"121":121}],265:[function(_dereq_,module,exports){ +_dereq_(121)('Uint8', 1, function (init) { + return function Uint8ClampedArray(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }, true); -},{"111":111}],255:[function(_dereq_,module,exports){ + +},{"121":121}],266:[function(_dereq_,module,exports){ 'use strict'; -var each = _dereq_(12)(0) - , redefine = _dereq_(87) - , meta = _dereq_(62) - , assign = _dereq_(65) - , weak = _dereq_(21) - , isObject = _dereq_(49) - , getWeak = meta.getWeak - , isExtensible = Object.isExtensible - , uncaughtFrozenStore = weak.ufstore - , tmp = {} - , InternalMap; - -var wrapper = function(get){ - return function WeakMap(){ +var each = _dereq_(12)(0); +var redefine = _dereq_(94); +var meta = _dereq_(66); +var assign = _dereq_(70); +var weak = _dereq_(21); +var isObject = _dereq_(51); +var fails = _dereq_(35); +var validate = _dereq_(125); +var WEAK_MAP = 'WeakMap'; +var getWeak = meta.getWeak; +var isExtensible = Object.isExtensible; +var uncaughtFrozenStore = weak.ufstore; +var tmp = {}; +var InternalMap; + +var wrapper = function (get) { + return function WeakMap() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }; var methods = { // 23.3.3.3 WeakMap.prototype.get(key) - get: function get(key){ - if(isObject(key)){ + get: function get(key) { + if (isObject(key)) { var data = getWeak(key); - if(data === true)return uncaughtFrozenStore(this).get(key); + if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key); return data ? data[this._i] : undefined; } }, // 23.3.3.5 WeakMap.prototype.set(key, value) - set: function set(key, value){ - return weak.def(this, key, value); + set: function set(key, value) { + return weak.def(validate(this, WEAK_MAP), key, value); } }; // 23.3 WeakMap Objects -var $WeakMap = module.exports = _dereq_(22)('WeakMap', wrapper, methods, weak, true, true); +var $WeakMap = module.exports = _dereq_(22)(WEAK_MAP, wrapper, methods, weak, true, true); // IE11 WeakMap frozen keys fix -if(new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7){ - InternalMap = weak.getConstructor(wrapper); +if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) { + InternalMap = weak.getConstructor(wrapper, WEAK_MAP); assign(InternalMap.prototype, methods); meta.NEED = true; - each(['delete', 'has', 'get', 'set'], function(key){ - var proto = $WeakMap.prototype - , method = proto[key]; - redefine(proto, key, function(a, b){ + each(['delete', 'has', 'get', 'set'], function (key) { + var proto = $WeakMap.prototype; + var method = proto[key]; + redefine(proto, key, function (a, b) { // store frozen objects on internal weakmap shim - if(isObject(a) && !isExtensible(a)){ - if(!this._f)this._f = new InternalMap; + if (isObject(a) && !isExtensible(a)) { + if (!this._f) this._f = new InternalMap(); var result = this._f[key](a, b); return key == 'set' ? this : result; // store all the rest on native weakmap @@ -5220,297 +5672,451 @@ if(new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7){ }); }); } -},{"12":12,"21":21,"22":22,"49":49,"62":62,"65":65,"87":87}],256:[function(_dereq_,module,exports){ + +},{"12":12,"125":125,"21":21,"22":22,"35":35,"51":51,"66":66,"70":70,"94":94}],267:[function(_dereq_,module,exports){ 'use strict'; var weak = _dereq_(21); +var validate = _dereq_(125); +var WEAK_SET = 'WeakSet'; // 23.4 WeakSet Objects -_dereq_(22)('WeakSet', function(get){ - return function WeakSet(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); }; +_dereq_(22)(WEAK_SET, function (get) { + return function WeakSet() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.4.3.1 WeakSet.prototype.add(value) - add: function add(value){ - return weak.def(this, value, true); + add: function add(value) { + return weak.def(validate(this, WEAK_SET), value, true); } }, weak, false, true); -},{"21":21,"22":22}],257:[function(_dereq_,module,exports){ + +},{"125":125,"21":21,"22":22}],268:[function(_dereq_,module,exports){ +'use strict'; +// https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatMap +var $export = _dereq_(33); +var flattenIntoArray = _dereq_(38); +var toObject = _dereq_(119); +var toLength = _dereq_(118); +var aFunction = _dereq_(3); +var arraySpeciesCreate = _dereq_(15); + +$export($export.P, 'Array', { + flatMap: function flatMap(callbackfn /* , thisArg */) { + var O = toObject(this); + var sourceLen, A; + aFunction(callbackfn); + sourceLen = toLength(O.length); + A = arraySpeciesCreate(O, 0); + flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments[1]); + return A; + } +}); + +_dereq_(5)('flatMap'); + +},{"118":118,"119":119,"15":15,"3":3,"33":33,"38":38,"5":5}],269:[function(_dereq_,module,exports){ +'use strict'; +// https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatten +var $export = _dereq_(33); +var flattenIntoArray = _dereq_(38); +var toObject = _dereq_(119); +var toLength = _dereq_(118); +var toInteger = _dereq_(116); +var arraySpeciesCreate = _dereq_(15); + +$export($export.P, 'Array', { + flatten: function flatten(/* depthArg = 1 */) { + var depthArg = arguments[0]; + var O = toObject(this); + var sourceLen = toLength(O.length); + var A = arraySpeciesCreate(O, 0); + flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toInteger(depthArg)); + return A; + } +}); + +_dereq_(5)('flatten'); + +},{"116":116,"118":118,"119":119,"15":15,"33":33,"38":38,"5":5}],270:[function(_dereq_,module,exports){ 'use strict'; // https://github.com/tc39/Array.prototype.includes -var $export = _dereq_(32) - , $includes = _dereq_(11)(true); +var $export = _dereq_(33); +var $includes = _dereq_(11)(true); $export($export.P, 'Array', { - includes: function includes(el /*, fromIndex = 0 */){ + includes: function includes(el /* , fromIndex = 0 */) { return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); } }); _dereq_(5)('includes'); -},{"11":11,"32":32,"5":5}],258:[function(_dereq_,module,exports){ + +},{"11":11,"33":33,"5":5}],271:[function(_dereq_,module,exports){ // https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-globalasap-for-enqueuing-a-microtask -var $export = _dereq_(32) - , microtask = _dereq_(64)() - , process = _dereq_(38).process - , isNode = _dereq_(18)(process) == 'process'; +var $export = _dereq_(33); +var microtask = _dereq_(68)(); +var process = _dereq_(40).process; +var isNode = _dereq_(18)(process) == 'process'; $export($export.G, { - asap: function asap(fn){ + asap: function asap(fn) { var domain = isNode && process.domain; microtask(domain ? domain.bind(fn) : fn); } }); -},{"18":18,"32":32,"38":38,"64":64}],259:[function(_dereq_,module,exports){ + +},{"18":18,"33":33,"40":40,"68":68}],272:[function(_dereq_,module,exports){ // https://github.com/ljharb/proposal-is-error -var $export = _dereq_(32) - , cof = _dereq_(18); +var $export = _dereq_(33); +var cof = _dereq_(18); $export($export.S, 'Error', { - isError: function isError(it){ + isError: function isError(it) { return cof(it) === 'Error'; } }); -},{"18":18,"32":32}],260:[function(_dereq_,module,exports){ + +},{"18":18,"33":33}],273:[function(_dereq_,module,exports){ +// https://github.com/tc39/proposal-global +var $export = _dereq_(33); + +$export($export.G, { global: _dereq_(40) }); + +},{"33":33,"40":40}],274:[function(_dereq_,module,exports){ +// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from +_dereq_(97)('Map'); + +},{"97":97}],275:[function(_dereq_,module,exports){ +// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of +_dereq_(98)('Map'); + +},{"98":98}],276:[function(_dereq_,module,exports){ // https://github.com/DavidBruant/Map-Set.prototype.toJSON -var $export = _dereq_(32); +var $export = _dereq_(33); -$export($export.P + $export.R, 'Map', {toJSON: _dereq_(20)('Map')}); -},{"20":20,"32":32}],261:[function(_dereq_,module,exports){ -// https://gist.github.com/BrendanEich/4294d5c212a6d2254703 -var $export = _dereq_(32); +$export($export.P + $export.R, 'Map', { toJSON: _dereq_(20)('Map') }); + +},{"20":20,"33":33}],277:[function(_dereq_,module,exports){ +// https://rwaldron.github.io/proposal-math-extensions/ +var $export = _dereq_(33); $export($export.S, 'Math', { - iaddh: function iaddh(x0, x1, y0, y1){ - var $x0 = x0 >>> 0 - , $x1 = x1 >>> 0 - , $y0 = y0 >>> 0; - return $x1 + (y1 >>> 0) + (($x0 & $y0 | ($x0 | $y0) & ~($x0 + $y0 >>> 0)) >>> 31) | 0; + clamp: function clamp(x, lower, upper) { + return Math.min(upper, Math.max(lower, x)); } }); -},{"32":32}],262:[function(_dereq_,module,exports){ -// https://gist.github.com/BrendanEich/4294d5c212a6d2254703 -var $export = _dereq_(32); + +},{"33":33}],278:[function(_dereq_,module,exports){ +// https://rwaldron.github.io/proposal-math-extensions/ +var $export = _dereq_(33); + +$export($export.S, 'Math', { DEG_PER_RAD: Math.PI / 180 }); + +},{"33":33}],279:[function(_dereq_,module,exports){ +// https://rwaldron.github.io/proposal-math-extensions/ +var $export = _dereq_(33); +var RAD_PER_DEG = 180 / Math.PI; $export($export.S, 'Math', { - imulh: function imulh(u, v){ - var UINT16 = 0xffff - , $u = +u - , $v = +v - , u0 = $u & UINT16 - , v0 = $v & UINT16 - , u1 = $u >> 16 - , v1 = $v >> 16 - , t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16); - return u1 * v1 + (t >> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >> 16); + degrees: function degrees(radians) { + return radians * RAD_PER_DEG; } }); -},{"32":32}],263:[function(_dereq_,module,exports){ -// https://gist.github.com/BrendanEich/4294d5c212a6d2254703 -var $export = _dereq_(32); + +},{"33":33}],280:[function(_dereq_,module,exports){ +// https://rwaldron.github.io/proposal-math-extensions/ +var $export = _dereq_(33); +var scale = _dereq_(64); +var fround = _dereq_(62); $export($export.S, 'Math', { - isubh: function isubh(x0, x1, y0, y1){ - var $x0 = x0 >>> 0 - , $x1 = x1 >>> 0 - , $y0 = y0 >>> 0; - return $x1 - (y1 >>> 0) - ((~$x0 & $y0 | ~($x0 ^ $y0) & $x0 - $y0 >>> 0) >>> 31) | 0; + fscale: function fscale(x, inLow, inHigh, outLow, outHigh) { + return fround(scale(x, inLow, inHigh, outLow, outHigh)); } }); -},{"32":32}],264:[function(_dereq_,module,exports){ + +},{"33":33,"62":62,"64":64}],281:[function(_dereq_,module,exports){ // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 -var $export = _dereq_(32); +var $export = _dereq_(33); $export($export.S, 'Math', { - umulh: function umulh(u, v){ - var UINT16 = 0xffff - , $u = +u - , $v = +v - , u0 = $u & UINT16 - , v0 = $v & UINT16 - , u1 = $u >>> 16 - , v1 = $v >>> 16 - , t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16); - return u1 * v1 + (t >>> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >>> 16); + iaddh: function iaddh(x0, x1, y0, y1) { + var $x0 = x0 >>> 0; + var $x1 = x1 >>> 0; + var $y0 = y0 >>> 0; + return $x1 + (y1 >>> 0) + (($x0 & $y0 | ($x0 | $y0) & ~($x0 + $y0 >>> 0)) >>> 31) | 0; } }); -},{"32":32}],265:[function(_dereq_,module,exports){ -'use strict'; -var $export = _dereq_(32) - , toObject = _dereq_(109) - , aFunction = _dereq_(3) - , $defineProperty = _dereq_(67); -// B.2.2.2 Object.prototype.__defineGetter__(P, getter) -_dereq_(28) && $export($export.P + _dereq_(69), 'Object', { - __defineGetter__: function __defineGetter__(P, getter){ - $defineProperty.f(toObject(this), P, {get: aFunction(getter), enumerable: true, configurable: true}); - } -}); -},{"109":109,"28":28,"3":3,"32":32,"67":67,"69":69}],266:[function(_dereq_,module,exports){ -'use strict'; -var $export = _dereq_(32) - , toObject = _dereq_(109) - , aFunction = _dereq_(3) - , $defineProperty = _dereq_(67); +},{"33":33}],282:[function(_dereq_,module,exports){ +// https://gist.github.com/BrendanEich/4294d5c212a6d2254703 +var $export = _dereq_(33); -// B.2.2.3 Object.prototype.__defineSetter__(P, setter) -_dereq_(28) && $export($export.P + _dereq_(69), 'Object', { - __defineSetter__: function __defineSetter__(P, setter){ - $defineProperty.f(toObject(this), P, {set: aFunction(setter), enumerable: true, configurable: true}); +$export($export.S, 'Math', { + imulh: function imulh(u, v) { + var UINT16 = 0xffff; + var $u = +u; + var $v = +v; + var u0 = $u & UINT16; + var v0 = $v & UINT16; + var u1 = $u >> 16; + var v1 = $v >> 16; + var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16); + return u1 * v1 + (t >> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >> 16); } }); -},{"109":109,"28":28,"3":3,"32":32,"67":67,"69":69}],267:[function(_dereq_,module,exports){ -// https://github.com/tc39/proposal-object-values-entries -var $export = _dereq_(32) - , $entries = _dereq_(79)(true); + +},{"33":33}],283:[function(_dereq_,module,exports){ +// https://gist.github.com/BrendanEich/4294d5c212a6d2254703 +var $export = _dereq_(33); + +$export($export.S, 'Math', { + isubh: function isubh(x0, x1, y0, y1) { + var $x0 = x0 >>> 0; + var $x1 = x1 >>> 0; + var $y0 = y0 >>> 0; + return $x1 - (y1 >>> 0) - ((~$x0 & $y0 | ~($x0 ^ $y0) & $x0 - $y0 >>> 0) >>> 31) | 0; + } +}); + +},{"33":33}],284:[function(_dereq_,module,exports){ +// https://rwaldron.github.io/proposal-math-extensions/ +var $export = _dereq_(33); + +$export($export.S, 'Math', { RAD_PER_DEG: 180 / Math.PI }); + +},{"33":33}],285:[function(_dereq_,module,exports){ +// https://rwaldron.github.io/proposal-math-extensions/ +var $export = _dereq_(33); +var DEG_PER_RAD = Math.PI / 180; + +$export($export.S, 'Math', { + radians: function radians(degrees) { + return degrees * DEG_PER_RAD; + } +}); + +},{"33":33}],286:[function(_dereq_,module,exports){ +// https://rwaldron.github.io/proposal-math-extensions/ +var $export = _dereq_(33); + +$export($export.S, 'Math', { scale: _dereq_(64) }); + +},{"33":33,"64":64}],287:[function(_dereq_,module,exports){ +// http://jfbastien.github.io/papers/Math.signbit.html +var $export = _dereq_(33); + +$export($export.S, 'Math', { signbit: function signbit(x) { + // eslint-disable-next-line no-self-compare + return (x = +x) != x ? x : x == 0 ? 1 / x == Infinity : x > 0; +} }); + +},{"33":33}],288:[function(_dereq_,module,exports){ +// https://gist.github.com/BrendanEich/4294d5c212a6d2254703 +var $export = _dereq_(33); + +$export($export.S, 'Math', { + umulh: function umulh(u, v) { + var UINT16 = 0xffff; + var $u = +u; + var $v = +v; + var u0 = $u & UINT16; + var v0 = $v & UINT16; + var u1 = $u >>> 16; + var v1 = $v >>> 16; + var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16); + return u1 * v1 + (t >>> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >>> 16); + } +}); + +},{"33":33}],289:[function(_dereq_,module,exports){ +'use strict'; +var $export = _dereq_(33); +var toObject = _dereq_(119); +var aFunction = _dereq_(3); +var $defineProperty = _dereq_(72); + +// B.2.2.2 Object.prototype.__defineGetter__(P, getter) +_dereq_(29) && $export($export.P + _dereq_(74), 'Object', { + __defineGetter__: function __defineGetter__(P, getter) { + $defineProperty.f(toObject(this), P, { get: aFunction(getter), enumerable: true, configurable: true }); + } +}); + +},{"119":119,"29":29,"3":3,"33":33,"72":72,"74":74}],290:[function(_dereq_,module,exports){ +'use strict'; +var $export = _dereq_(33); +var toObject = _dereq_(119); +var aFunction = _dereq_(3); +var $defineProperty = _dereq_(72); + +// B.2.2.3 Object.prototype.__defineSetter__(P, setter) +_dereq_(29) && $export($export.P + _dereq_(74), 'Object', { + __defineSetter__: function __defineSetter__(P, setter) { + $defineProperty.f(toObject(this), P, { set: aFunction(setter), enumerable: true, configurable: true }); + } +}); + +},{"119":119,"29":29,"3":3,"33":33,"72":72,"74":74}],291:[function(_dereq_,module,exports){ +// https://github.com/tc39/proposal-object-values-entries +var $export = _dereq_(33); +var $entries = _dereq_(84)(true); $export($export.S, 'Object', { - entries: function entries(it){ + entries: function entries(it) { return $entries(it); } }); -},{"32":32,"79":79}],268:[function(_dereq_,module,exports){ + +},{"33":33,"84":84}],292:[function(_dereq_,module,exports){ // https://github.com/tc39/proposal-object-getownpropertydescriptors -var $export = _dereq_(32) - , ownKeys = _dereq_(80) - , toIObject = _dereq_(107) - , gOPD = _dereq_(70) - , createProperty = _dereq_(24); +var $export = _dereq_(33); +var ownKeys = _dereq_(85); +var toIObject = _dereq_(117); +var gOPD = _dereq_(75); +var createProperty = _dereq_(24); $export($export.S, 'Object', { - getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object){ - var O = toIObject(object) - , getDesc = gOPD.f - , keys = ownKeys(O) - , result = {} - , i = 0 - , key; - while(keys.length > i)createProperty(result, key = keys[i++], getDesc(O, key)); + getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) { + var O = toIObject(object); + var getDesc = gOPD.f; + var keys = ownKeys(O); + var result = {}; + var i = 0; + var key, desc; + while (keys.length > i) { + desc = getDesc(O, key = keys[i++]); + if (desc !== undefined) createProperty(result, key, desc); + } return result; } }); -},{"107":107,"24":24,"32":32,"70":70,"80":80}],269:[function(_dereq_,module,exports){ + +},{"117":117,"24":24,"33":33,"75":75,"85":85}],293:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , toObject = _dereq_(109) - , toPrimitive = _dereq_(110) - , getPrototypeOf = _dereq_(74) - , getOwnPropertyDescriptor = _dereq_(70).f; +var $export = _dereq_(33); +var toObject = _dereq_(119); +var toPrimitive = _dereq_(120); +var getPrototypeOf = _dereq_(79); +var getOwnPropertyDescriptor = _dereq_(75).f; // B.2.2.4 Object.prototype.__lookupGetter__(P) -_dereq_(28) && $export($export.P + _dereq_(69), 'Object', { - __lookupGetter__: function __lookupGetter__(P){ - var O = toObject(this) - , K = toPrimitive(P, true) - , D; +_dereq_(29) && $export($export.P + _dereq_(74), 'Object', { + __lookupGetter__: function __lookupGetter__(P) { + var O = toObject(this); + var K = toPrimitive(P, true); + var D; do { - if(D = getOwnPropertyDescriptor(O, K))return D.get; - } while(O = getPrototypeOf(O)); + if (D = getOwnPropertyDescriptor(O, K)) return D.get; + } while (O = getPrototypeOf(O)); } }); -},{"109":109,"110":110,"28":28,"32":32,"69":69,"70":70,"74":74}],270:[function(_dereq_,module,exports){ + +},{"119":119,"120":120,"29":29,"33":33,"74":74,"75":75,"79":79}],294:[function(_dereq_,module,exports){ 'use strict'; -var $export = _dereq_(32) - , toObject = _dereq_(109) - , toPrimitive = _dereq_(110) - , getPrototypeOf = _dereq_(74) - , getOwnPropertyDescriptor = _dereq_(70).f; +var $export = _dereq_(33); +var toObject = _dereq_(119); +var toPrimitive = _dereq_(120); +var getPrototypeOf = _dereq_(79); +var getOwnPropertyDescriptor = _dereq_(75).f; // B.2.2.5 Object.prototype.__lookupSetter__(P) -_dereq_(28) && $export($export.P + _dereq_(69), 'Object', { - __lookupSetter__: function __lookupSetter__(P){ - var O = toObject(this) - , K = toPrimitive(P, true) - , D; +_dereq_(29) && $export($export.P + _dereq_(74), 'Object', { + __lookupSetter__: function __lookupSetter__(P) { + var O = toObject(this); + var K = toPrimitive(P, true); + var D; do { - if(D = getOwnPropertyDescriptor(O, K))return D.set; - } while(O = getPrototypeOf(O)); + if (D = getOwnPropertyDescriptor(O, K)) return D.set; + } while (O = getPrototypeOf(O)); } }); -},{"109":109,"110":110,"28":28,"32":32,"69":69,"70":70,"74":74}],271:[function(_dereq_,module,exports){ + +},{"119":119,"120":120,"29":29,"33":33,"74":74,"75":75,"79":79}],295:[function(_dereq_,module,exports){ // https://github.com/tc39/proposal-object-values-entries -var $export = _dereq_(32) - , $values = _dereq_(79)(false); +var $export = _dereq_(33); +var $values = _dereq_(84)(false); $export($export.S, 'Object', { - values: function values(it){ + values: function values(it) { return $values(it); } }); -},{"32":32,"79":79}],272:[function(_dereq_,module,exports){ + +},{"33":33,"84":84}],296:[function(_dereq_,module,exports){ 'use strict'; // https://github.com/zenparsing/es-observable -var $export = _dereq_(32) - , global = _dereq_(38) - , core = _dereq_(23) - , microtask = _dereq_(64)() - , OBSERVABLE = _dereq_(117)('observable') - , aFunction = _dereq_(3) - , anObject = _dereq_(7) - , anInstance = _dereq_(6) - , redefineAll = _dereq_(86) - , hide = _dereq_(40) - , forOf = _dereq_(37) - , RETURN = forOf.RETURN; - -var getMethod = function(fn){ +var $export = _dereq_(33); +var global = _dereq_(40); +var core = _dereq_(23); +var microtask = _dereq_(68)(); +var OBSERVABLE = _dereq_(128)('observable'); +var aFunction = _dereq_(3); +var anObject = _dereq_(7); +var anInstance = _dereq_(6); +var redefineAll = _dereq_(93); +var hide = _dereq_(42); +var forOf = _dereq_(39); +var RETURN = forOf.RETURN; + +var getMethod = function (fn) { return fn == null ? undefined : aFunction(fn); }; -var cleanupSubscription = function(subscription){ +var cleanupSubscription = function (subscription) { var cleanup = subscription._c; - if(cleanup){ + if (cleanup) { subscription._c = undefined; cleanup(); } }; -var subscriptionClosed = function(subscription){ +var subscriptionClosed = function (subscription) { return subscription._o === undefined; }; -var closeSubscription = function(subscription){ - if(!subscriptionClosed(subscription)){ +var closeSubscription = function (subscription) { + if (!subscriptionClosed(subscription)) { subscription._o = undefined; cleanupSubscription(subscription); } }; -var Subscription = function(observer, subscriber){ +var Subscription = function (observer, subscriber) { anObject(observer); this._c = undefined; this._o = observer; observer = new SubscriptionObserver(this); try { - var cleanup = subscriber(observer) - , subscription = cleanup; - if(cleanup != null){ - if(typeof cleanup.unsubscribe === 'function')cleanup = function(){ subscription.unsubscribe(); }; + var cleanup = subscriber(observer); + var subscription = cleanup; + if (cleanup != null) { + if (typeof cleanup.unsubscribe === 'function') cleanup = function () { subscription.unsubscribe(); }; else aFunction(cleanup); this._c = cleanup; } - } catch(e){ + } catch (e) { observer.error(e); return; - } if(subscriptionClosed(this))cleanupSubscription(this); + } if (subscriptionClosed(this)) cleanupSubscription(this); }; Subscription.prototype = redefineAll({}, { - unsubscribe: function unsubscribe(){ closeSubscription(this); } + unsubscribe: function unsubscribe() { closeSubscription(this); } }); -var SubscriptionObserver = function(subscription){ +var SubscriptionObserver = function (subscription) { this._s = subscription; }; SubscriptionObserver.prototype = redefineAll({}, { - next: function next(value){ + next: function next(value) { var subscription = this._s; - if(!subscriptionClosed(subscription)){ + if (!subscriptionClosed(subscription)) { var observer = subscription._o; try { var m = getMethod(observer.next); - if(m)return m.call(observer, value); - } catch(e){ + if (m) return m.call(observer, value); + } catch (e) { try { closeSubscription(subscription); } finally { @@ -5519,16 +6125,16 @@ SubscriptionObserver.prototype = redefineAll({}, { } } }, - error: function error(value){ + error: function error(value) { var subscription = this._s; - if(subscriptionClosed(subscription))throw value; + if (subscriptionClosed(subscription)) throw value; var observer = subscription._o; subscription._o = undefined; try { var m = getMethod(observer.error); - if(!m)throw value; + if (!m) throw value; value = m.call(observer, value); - } catch(e){ + } catch (e) { try { cleanupSubscription(subscription); } finally { @@ -5537,15 +6143,15 @@ SubscriptionObserver.prototype = redefineAll({}, { } cleanupSubscription(subscription); return value; }, - complete: function complete(value){ + complete: function complete(value) { var subscription = this._s; - if(!subscriptionClosed(subscription)){ + if (!subscriptionClosed(subscription)) { var observer = subscription._o; subscription._o = undefined; try { var m = getMethod(observer.complete); value = m ? m.call(observer, value) : undefined; - } catch(e){ + } catch (e) { try { cleanupSubscription(subscription); } finally { @@ -5557,23 +6163,23 @@ SubscriptionObserver.prototype = redefineAll({}, { } }); -var $Observable = function Observable(subscriber){ +var $Observable = function Observable(subscriber) { anInstance(this, $Observable, 'Observable', '_f')._f = aFunction(subscriber); }; redefineAll($Observable.prototype, { - subscribe: function subscribe(observer){ + subscribe: function subscribe(observer) { return new Subscription(observer, this._f); }, - forEach: function forEach(fn){ + forEach: function forEach(fn) { var that = this; - return new (core.Promise || global.Promise)(function(resolve, reject){ + return new (core.Promise || global.Promise)(function (resolve, reject) { aFunction(fn); var subscription = that.subscribe({ - next : function(value){ + next: function (value) { try { return fn(value); - } catch(e){ + } catch (e) { reject(e); subscription.unsubscribe(); } @@ -5586,353 +6192,489 @@ redefineAll($Observable.prototype, { }); redefineAll($Observable, { - from: function from(x){ + from: function from(x) { var C = typeof this === 'function' ? this : $Observable; var method = getMethod(anObject(x)[OBSERVABLE]); - if(method){ + if (method) { var observable = anObject(method.call(x)); - return observable.constructor === C ? observable : new C(function(observer){ + return observable.constructor === C ? observable : new C(function (observer) { return observable.subscribe(observer); }); } - return new C(function(observer){ + return new C(function (observer) { var done = false; - microtask(function(){ - if(!done){ + microtask(function () { + if (!done) { try { - if(forOf(x, false, function(it){ + if (forOf(x, false, function (it) { observer.next(it); - if(done)return RETURN; - }) === RETURN)return; - } catch(e){ - if(done)throw e; + if (done) return RETURN; + }) === RETURN) return; + } catch (e) { + if (done) throw e; observer.error(e); return; } observer.complete(); } }); - return function(){ done = true; }; + return function () { done = true; }; }); }, - of: function of(){ - for(var i = 0, l = arguments.length, items = Array(l); i < l;)items[i] = arguments[i++]; - return new (typeof this === 'function' ? this : $Observable)(function(observer){ + of: function of() { + for (var i = 0, l = arguments.length, items = Array(l); i < l;) items[i] = arguments[i++]; + return new (typeof this === 'function' ? this : $Observable)(function (observer) { var done = false; - microtask(function(){ - if(!done){ - for(var i = 0; i < items.length; ++i){ - observer.next(items[i]); - if(done)return; + microtask(function () { + if (!done) { + for (var j = 0; j < items.length; ++j) { + observer.next(items[j]); + if (done) return; } observer.complete(); } }); - return function(){ done = true; }; + return function () { done = true; }; }); } }); -hide($Observable.prototype, OBSERVABLE, function(){ return this; }); +hide($Observable.prototype, OBSERVABLE, function () { return this; }); -$export($export.G, {Observable: $Observable}); +$export($export.G, { Observable: $Observable }); -_dereq_(91)('Observable'); -},{"117":117,"23":23,"3":3,"32":32,"37":37,"38":38,"40":40,"6":6,"64":64,"7":7,"86":86,"91":91}],273:[function(_dereq_,module,exports){ -var metadata = _dereq_(63) - , anObject = _dereq_(7) - , toMetaKey = metadata.key - , ordinaryDefineOwnMetadata = metadata.set; +_dereq_(100)('Observable'); -metadata.exp({defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey){ +},{"100":100,"128":128,"23":23,"3":3,"33":33,"39":39,"40":40,"42":42,"6":6,"68":68,"7":7,"93":93}],297:[function(_dereq_,module,exports){ +// https://github.com/tc39/proposal-promise-finally +'use strict'; +var $export = _dereq_(33); +var core = _dereq_(23); +var global = _dereq_(40); +var speciesConstructor = _dereq_(104); +var promiseResolve = _dereq_(91); + +$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) { + var C = speciesConstructor(this, core.Promise || global.Promise); + var isFunction = typeof onFinally == 'function'; + return this.then( + isFunction ? function (x) { + return promiseResolve(C, onFinally()).then(function () { return x; }); + } : onFinally, + isFunction ? function (e) { + return promiseResolve(C, onFinally()).then(function () { throw e; }); + } : onFinally + ); +} }); + +},{"104":104,"23":23,"33":33,"40":40,"91":91}],298:[function(_dereq_,module,exports){ +'use strict'; +// https://github.com/tc39/proposal-promise-try +var $export = _dereq_(33); +var newPromiseCapability = _dereq_(69); +var perform = _dereq_(90); + +$export($export.S, 'Promise', { 'try': function (callbackfn) { + var promiseCapability = newPromiseCapability.f(this); + var result = perform(callbackfn); + (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v); + return promiseCapability.promise; +} }); + +},{"33":33,"69":69,"90":90}],299:[function(_dereq_,module,exports){ +var metadata = _dereq_(67); +var anObject = _dereq_(7); +var toMetaKey = metadata.key; +var ordinaryDefineOwnMetadata = metadata.set; + +metadata.exp({ defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey) { ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey)); -}}); -},{"63":63,"7":7}],274:[function(_dereq_,module,exports){ -var metadata = _dereq_(63) - , anObject = _dereq_(7) - , toMetaKey = metadata.key - , getOrCreateMetadataMap = metadata.map - , store = metadata.store; - -metadata.exp({deleteMetadata: function deleteMetadata(metadataKey, target /*, targetKey */){ - var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2]) - , metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false); - if(metadataMap === undefined || !metadataMap['delete'](metadataKey))return false; - if(metadataMap.size)return true; +} }); + +},{"67":67,"7":7}],300:[function(_dereq_,module,exports){ +var metadata = _dereq_(67); +var anObject = _dereq_(7); +var toMetaKey = metadata.key; +var getOrCreateMetadataMap = metadata.map; +var store = metadata.store; + +metadata.exp({ deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) { + var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2]); + var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false); + if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false; + if (metadataMap.size) return true; var targetMetadata = store.get(target); targetMetadata['delete'](targetKey); return !!targetMetadata.size || store['delete'](target); -}}); -},{"63":63,"7":7}],275:[function(_dereq_,module,exports){ -var Set = _dereq_(220) - , from = _dereq_(10) - , metadata = _dereq_(63) - , anObject = _dereq_(7) - , getPrototypeOf = _dereq_(74) - , ordinaryOwnMetadataKeys = metadata.keys - , toMetaKey = metadata.key; - -var ordinaryMetadataKeys = function(O, P){ - var oKeys = ordinaryOwnMetadataKeys(O, P) - , parent = getPrototypeOf(O); - if(parent === null)return oKeys; - var pKeys = ordinaryMetadataKeys(parent, P); +} }); + +},{"67":67,"7":7}],301:[function(_dereq_,module,exports){ +var Set = _dereq_(231); +var from = _dereq_(10); +var metadata = _dereq_(67); +var anObject = _dereq_(7); +var getPrototypeOf = _dereq_(79); +var ordinaryOwnMetadataKeys = metadata.keys; +var toMetaKey = metadata.key; + +var ordinaryMetadataKeys = function (O, P) { + var oKeys = ordinaryOwnMetadataKeys(O, P); + var parent = getPrototypeOf(O); + if (parent === null) return oKeys; + var pKeys = ordinaryMetadataKeys(parent, P); return pKeys.length ? oKeys.length ? from(new Set(oKeys.concat(pKeys))) : pKeys : oKeys; }; -metadata.exp({getMetadataKeys: function getMetadataKeys(target /*, targetKey */){ +metadata.exp({ getMetadataKeys: function getMetadataKeys(target /* , targetKey */) { return ordinaryMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1])); -}}); -},{"10":10,"220":220,"63":63,"7":7,"74":74}],276:[function(_dereq_,module,exports){ -var metadata = _dereq_(63) - , anObject = _dereq_(7) - , getPrototypeOf = _dereq_(74) - , ordinaryHasOwnMetadata = metadata.has - , ordinaryGetOwnMetadata = metadata.get - , toMetaKey = metadata.key; - -var ordinaryGetMetadata = function(MetadataKey, O, P){ +} }); + +},{"10":10,"231":231,"67":67,"7":7,"79":79}],302:[function(_dereq_,module,exports){ +var metadata = _dereq_(67); +var anObject = _dereq_(7); +var getPrototypeOf = _dereq_(79); +var ordinaryHasOwnMetadata = metadata.has; +var ordinaryGetOwnMetadata = metadata.get; +var toMetaKey = metadata.key; + +var ordinaryGetMetadata = function (MetadataKey, O, P) { var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P); - if(hasOwn)return ordinaryGetOwnMetadata(MetadataKey, O, P); + if (hasOwn) return ordinaryGetOwnMetadata(MetadataKey, O, P); var parent = getPrototypeOf(O); return parent !== null ? ordinaryGetMetadata(MetadataKey, parent, P) : undefined; }; -metadata.exp({getMetadata: function getMetadata(metadataKey, target /*, targetKey */){ +metadata.exp({ getMetadata: function getMetadata(metadataKey, target /* , targetKey */) { return ordinaryGetMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); -}}); -},{"63":63,"7":7,"74":74}],277:[function(_dereq_,module,exports){ -var metadata = _dereq_(63) - , anObject = _dereq_(7) - , ordinaryOwnMetadataKeys = metadata.keys - , toMetaKey = metadata.key; - -metadata.exp({getOwnMetadataKeys: function getOwnMetadataKeys(target /*, targetKey */){ +} }); + +},{"67":67,"7":7,"79":79}],303:[function(_dereq_,module,exports){ +var metadata = _dereq_(67); +var anObject = _dereq_(7); +var ordinaryOwnMetadataKeys = metadata.keys; +var toMetaKey = metadata.key; + +metadata.exp({ getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) { return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1])); -}}); -},{"63":63,"7":7}],278:[function(_dereq_,module,exports){ -var metadata = _dereq_(63) - , anObject = _dereq_(7) - , ordinaryGetOwnMetadata = metadata.get - , toMetaKey = metadata.key; - -metadata.exp({getOwnMetadata: function getOwnMetadata(metadataKey, target /*, targetKey */){ +} }); + +},{"67":67,"7":7}],304:[function(_dereq_,module,exports){ +var metadata = _dereq_(67); +var anObject = _dereq_(7); +var ordinaryGetOwnMetadata = metadata.get; +var toMetaKey = metadata.key; + +metadata.exp({ getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) { return ordinaryGetOwnMetadata(metadataKey, anObject(target) , arguments.length < 3 ? undefined : toMetaKey(arguments[2])); -}}); -},{"63":63,"7":7}],279:[function(_dereq_,module,exports){ -var metadata = _dereq_(63) - , anObject = _dereq_(7) - , getPrototypeOf = _dereq_(74) - , ordinaryHasOwnMetadata = metadata.has - , toMetaKey = metadata.key; - -var ordinaryHasMetadata = function(MetadataKey, O, P){ +} }); + +},{"67":67,"7":7}],305:[function(_dereq_,module,exports){ +var metadata = _dereq_(67); +var anObject = _dereq_(7); +var getPrototypeOf = _dereq_(79); +var ordinaryHasOwnMetadata = metadata.has; +var toMetaKey = metadata.key; + +var ordinaryHasMetadata = function (MetadataKey, O, P) { var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P); - if(hasOwn)return true; + if (hasOwn) return true; var parent = getPrototypeOf(O); return parent !== null ? ordinaryHasMetadata(MetadataKey, parent, P) : false; }; -metadata.exp({hasMetadata: function hasMetadata(metadataKey, target /*, targetKey */){ +metadata.exp({ hasMetadata: function hasMetadata(metadataKey, target /* , targetKey */) { return ordinaryHasMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); -}}); -},{"63":63,"7":7,"74":74}],280:[function(_dereq_,module,exports){ -var metadata = _dereq_(63) - , anObject = _dereq_(7) - , ordinaryHasOwnMetadata = metadata.has - , toMetaKey = metadata.key; - -metadata.exp({hasOwnMetadata: function hasOwnMetadata(metadataKey, target /*, targetKey */){ +} }); + +},{"67":67,"7":7,"79":79}],306:[function(_dereq_,module,exports){ +var metadata = _dereq_(67); +var anObject = _dereq_(7); +var ordinaryHasOwnMetadata = metadata.has; +var toMetaKey = metadata.key; + +metadata.exp({ hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) { return ordinaryHasOwnMetadata(metadataKey, anObject(target) , arguments.length < 3 ? undefined : toMetaKey(arguments[2])); -}}); -},{"63":63,"7":7}],281:[function(_dereq_,module,exports){ -var metadata = _dereq_(63) - , anObject = _dereq_(7) - , aFunction = _dereq_(3) - , toMetaKey = metadata.key - , ordinaryDefineOwnMetadata = metadata.set; - -metadata.exp({metadata: function metadata(metadataKey, metadataValue){ - return function decorator(target, targetKey){ +} }); + +},{"67":67,"7":7}],307:[function(_dereq_,module,exports){ +var $metadata = _dereq_(67); +var anObject = _dereq_(7); +var aFunction = _dereq_(3); +var toMetaKey = $metadata.key; +var ordinaryDefineOwnMetadata = $metadata.set; + +$metadata.exp({ metadata: function metadata(metadataKey, metadataValue) { + return function decorator(target, targetKey) { ordinaryDefineOwnMetadata( metadataKey, metadataValue, (targetKey !== undefined ? anObject : aFunction)(target), toMetaKey(targetKey) ); }; -}}); -},{"3":3,"63":63,"7":7}],282:[function(_dereq_,module,exports){ +} }); + +},{"3":3,"67":67,"7":7}],308:[function(_dereq_,module,exports){ +// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from +_dereq_(97)('Set'); + +},{"97":97}],309:[function(_dereq_,module,exports){ +// https://tc39.github.io/proposal-setmap-offrom/#sec-set.of +_dereq_(98)('Set'); + +},{"98":98}],310:[function(_dereq_,module,exports){ // https://github.com/DavidBruant/Map-Set.prototype.toJSON -var $export = _dereq_(32); +var $export = _dereq_(33); + +$export($export.P + $export.R, 'Set', { toJSON: _dereq_(20)('Set') }); -$export($export.P + $export.R, 'Set', {toJSON: _dereq_(20)('Set')}); -},{"20":20,"32":32}],283:[function(_dereq_,module,exports){ +},{"20":20,"33":33}],311:[function(_dereq_,module,exports){ 'use strict'; // https://github.com/mathiasbynens/String.prototype.at -var $export = _dereq_(32) - , $at = _dereq_(97)(true); +var $export = _dereq_(33); +var $at = _dereq_(106)(true); $export($export.P, 'String', { - at: function at(pos){ + at: function at(pos) { return $at(this, pos); } }); -},{"32":32,"97":97}],284:[function(_dereq_,module,exports){ + +},{"106":106,"33":33}],312:[function(_dereq_,module,exports){ 'use strict'; // https://tc39.github.io/String.prototype.matchAll/ -var $export = _dereq_(32) - , defined = _dereq_(27) - , toLength = _dereq_(108) - , isRegExp = _dereq_(50) - , getFlags = _dereq_(36) - , RegExpProto = RegExp.prototype; - -var $RegExpStringIterator = function(regexp, string){ +var $export = _dereq_(33); +var defined = _dereq_(28); +var toLength = _dereq_(118); +var isRegExp = _dereq_(52); +var getFlags = _dereq_(37); +var RegExpProto = RegExp.prototype; + +var $RegExpStringIterator = function (regexp, string) { this._r = regexp; this._s = string; }; -_dereq_(52)($RegExpStringIterator, 'RegExp String', function next(){ +_dereq_(54)($RegExpStringIterator, 'RegExp String', function next() { var match = this._r.exec(this._s); - return {value: match, done: match === null}; + return { value: match, done: match === null }; }); $export($export.P, 'String', { - matchAll: function matchAll(regexp){ + matchAll: function matchAll(regexp) { defined(this); - if(!isRegExp(regexp))throw TypeError(regexp + ' is not a regexp!'); - var S = String(this) - , flags = 'flags' in RegExpProto ? String(regexp.flags) : getFlags.call(regexp) - , rx = new RegExp(regexp.source, ~flags.indexOf('g') ? flags : 'g' + flags); + if (!isRegExp(regexp)) throw TypeError(regexp + ' is not a regexp!'); + var S = String(this); + var flags = 'flags' in RegExpProto ? String(regexp.flags) : getFlags.call(regexp); + var rx = new RegExp(regexp.source, ~flags.indexOf('g') ? flags : 'g' + flags); rx.lastIndex = toLength(regexp.lastIndex); return new $RegExpStringIterator(rx, S); } }); -},{"108":108,"27":27,"32":32,"36":36,"50":50,"52":52}],285:[function(_dereq_,module,exports){ + +},{"118":118,"28":28,"33":33,"37":37,"52":52,"54":54}],313:[function(_dereq_,module,exports){ 'use strict'; // https://github.com/tc39/proposal-string-pad-start-end -var $export = _dereq_(32) - , $pad = _dereq_(100); +var $export = _dereq_(33); +var $pad = _dereq_(109); $export($export.P, 'String', { - padEnd: function padEnd(maxLength /*, fillString = ' ' */){ + padEnd: function padEnd(maxLength /* , fillString = ' ' */) { return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false); } }); -},{"100":100,"32":32}],286:[function(_dereq_,module,exports){ + +},{"109":109,"33":33}],314:[function(_dereq_,module,exports){ 'use strict'; // https://github.com/tc39/proposal-string-pad-start-end -var $export = _dereq_(32) - , $pad = _dereq_(100); +var $export = _dereq_(33); +var $pad = _dereq_(109); $export($export.P, 'String', { - padStart: function padStart(maxLength /*, fillString = ' ' */){ + padStart: function padStart(maxLength /* , fillString = ' ' */) { return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true); } }); -},{"100":100,"32":32}],287:[function(_dereq_,module,exports){ + +},{"109":109,"33":33}],315:[function(_dereq_,module,exports){ 'use strict'; // https://github.com/sebmarkbage/ecmascript-string-left-right-trim -_dereq_(102)('trimLeft', function($trim){ - return function trimLeft(){ +_dereq_(111)('trimLeft', function ($trim) { + return function trimLeft() { return $trim(this, 1); }; }, 'trimStart'); -},{"102":102}],288:[function(_dereq_,module,exports){ + +},{"111":111}],316:[function(_dereq_,module,exports){ 'use strict'; // https://github.com/sebmarkbage/ecmascript-string-left-right-trim -_dereq_(102)('trimRight', function($trim){ - return function trimRight(){ +_dereq_(111)('trimRight', function ($trim) { + return function trimRight() { return $trim(this, 2); }; }, 'trimEnd'); -},{"102":102}],289:[function(_dereq_,module,exports){ -_dereq_(115)('asyncIterator'); -},{"115":115}],290:[function(_dereq_,module,exports){ -_dereq_(115)('observable'); -},{"115":115}],291:[function(_dereq_,module,exports){ -// https://github.com/ljharb/proposal-global -var $export = _dereq_(32); - -$export($export.S, 'System', {global: _dereq_(38)}); -},{"32":32,"38":38}],292:[function(_dereq_,module,exports){ -var $iterators = _dereq_(130) - , redefine = _dereq_(87) - , global = _dereq_(38) - , hide = _dereq_(40) - , Iterators = _dereq_(56) - , wks = _dereq_(117) - , ITERATOR = wks('iterator') - , TO_STRING_TAG = wks('toStringTag') - , ArrayValues = Iterators.Array; - -for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){ - var NAME = collections[i] - , Collection = global[NAME] - , proto = Collection && Collection.prototype - , key; - if(proto){ - if(!proto[ITERATOR])hide(proto, ITERATOR, ArrayValues); - if(!proto[TO_STRING_TAG])hide(proto, TO_STRING_TAG, NAME); + +},{"111":111}],317:[function(_dereq_,module,exports){ +_dereq_(126)('asyncIterator'); + +},{"126":126}],318:[function(_dereq_,module,exports){ +_dereq_(126)('observable'); + +},{"126":126}],319:[function(_dereq_,module,exports){ +// https://github.com/tc39/proposal-global +var $export = _dereq_(33); + +$export($export.S, 'System', { global: _dereq_(40) }); + +},{"33":33,"40":40}],320:[function(_dereq_,module,exports){ +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from +_dereq_(97)('WeakMap'); + +},{"97":97}],321:[function(_dereq_,module,exports){ +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of +_dereq_(98)('WeakMap'); + +},{"98":98}],322:[function(_dereq_,module,exports){ +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from +_dereq_(97)('WeakSet'); + +},{"97":97}],323:[function(_dereq_,module,exports){ +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of +_dereq_(98)('WeakSet'); + +},{"98":98}],324:[function(_dereq_,module,exports){ +var $iterators = _dereq_(141); +var getKeys = _dereq_(81); +var redefine = _dereq_(94); +var global = _dereq_(40); +var hide = _dereq_(42); +var Iterators = _dereq_(58); +var wks = _dereq_(128); +var ITERATOR = wks('iterator'); +var TO_STRING_TAG = wks('toStringTag'); +var ArrayValues = Iterators.Array; + +var DOMIterables = { + CSSRuleList: true, // TODO: Not spec compliant, should be false. + CSSStyleDeclaration: false, + CSSValueList: false, + ClientRectList: false, + DOMRectList: false, + DOMStringList: false, + DOMTokenList: true, + DataTransferItemList: false, + FileList: false, + HTMLAllCollection: false, + HTMLCollection: false, + HTMLFormElement: false, + HTMLSelectElement: false, + MediaList: true, // TODO: Not spec compliant, should be false. + MimeTypeArray: false, + NamedNodeMap: false, + NodeList: true, + PaintRequestList: false, + Plugin: false, + PluginArray: false, + SVGLengthList: false, + SVGNumberList: false, + SVGPathSegList: false, + SVGPointList: false, + SVGStringList: false, + SVGTransformList: false, + SourceBufferList: false, + StyleSheetList: true, // TODO: Not spec compliant, should be false. + TextTrackCueList: false, + TextTrackList: false, + TouchList: false +}; + +for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) { + var NAME = collections[i]; + var explicit = DOMIterables[NAME]; + var Collection = global[NAME]; + var proto = Collection && Collection.prototype; + var key; + if (proto) { + if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); + if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); Iterators[NAME] = ArrayValues; - for(key in $iterators)if(!proto[key])redefine(proto, key, $iterators[key], true); + if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); } } -},{"117":117,"130":130,"38":38,"40":40,"56":56,"87":87}],293:[function(_dereq_,module,exports){ -var $export = _dereq_(32) - , $task = _dereq_(104); + +},{"128":128,"141":141,"40":40,"42":42,"58":58,"81":81,"94":94}],325:[function(_dereq_,module,exports){ +var $export = _dereq_(33); +var $task = _dereq_(113); $export($export.G + $export.B, { - setImmediate: $task.set, + setImmediate: $task.set, clearImmediate: $task.clear }); -},{"104":104,"32":32}],294:[function(_dereq_,module,exports){ + +},{"113":113,"33":33}],326:[function(_dereq_,module,exports){ // ie9- setTimeout & setInterval additional parameters fix -var global = _dereq_(38) - , $export = _dereq_(32) - , invoke = _dereq_(44) - , partial = _dereq_(83) - , navigator = global.navigator - , MSIE = !!navigator && /MSIE .\./.test(navigator.userAgent); // <- dirty ie9- check -var wrap = function(set){ - return MSIE ? function(fn, time /*, ...args */){ +var global = _dereq_(40); +var $export = _dereq_(33); +var invoke = _dereq_(46); +var partial = _dereq_(88); +var navigator = global.navigator; +var MSIE = !!navigator && /MSIE .\./.test(navigator.userAgent); // <- dirty ie9- check +var wrap = function (set) { + return MSIE ? function (fn, time /* , ...args */) { return set(invoke( partial, [].slice.call(arguments, 2), + // eslint-disable-next-line no-new-func typeof fn == 'function' ? fn : Function(fn) ), time); } : set; }; $export($export.G + $export.B + $export.F * MSIE, { - setTimeout: wrap(global.setTimeout), + setTimeout: wrap(global.setTimeout), setInterval: wrap(global.setInterval) }); -},{"32":32,"38":38,"44":44,"83":83}],295:[function(_dereq_,module,exports){ -_dereq_(243); -_dereq_(180); -_dereq_(182); -_dereq_(181); -_dereq_(184); -_dereq_(186); + +},{"33":33,"40":40,"46":46,"88":88}],327:[function(_dereq_,module,exports){ +_dereq_(254); _dereq_(191); -_dereq_(185); -_dereq_(183); _dereq_(193); _dereq_(192); -_dereq_(188); -_dereq_(189); -_dereq_(187); -_dereq_(179); -_dereq_(190); -_dereq_(194); _dereq_(195); -_dereq_(146); -_dereq_(148); -_dereq_(147); _dereq_(197); +_dereq_(202); _dereq_(196); -_dereq_(167); -_dereq_(177); +_dereq_(194); +_dereq_(204); +_dereq_(203); +_dereq_(199); +_dereq_(200); +_dereq_(198); +_dereq_(190); +_dereq_(201); +_dereq_(205); +_dereq_(206); +_dereq_(157); +_dereq_(159); +_dereq_(158); +_dereq_(208); +_dereq_(207); _dereq_(178); +_dereq_(188); +_dereq_(189); +_dereq_(179); +_dereq_(180); +_dereq_(181); +_dereq_(182); +_dereq_(183); +_dereq_(184); +_dereq_(185); +_dereq_(186); +_dereq_(187); +_dereq_(161); +_dereq_(162); +_dereq_(163); +_dereq_(164); +_dereq_(165); +_dereq_(166); +_dereq_(167); _dereq_(168); _dereq_(169); _dereq_(170); @@ -5942,148 +6684,154 @@ _dereq_(173); _dereq_(174); _dereq_(175); _dereq_(176); -_dereq_(150); -_dereq_(151); -_dereq_(152); -_dereq_(153); -_dereq_(154); -_dereq_(155); -_dereq_(156); -_dereq_(157); -_dereq_(158); -_dereq_(159); -_dereq_(160); -_dereq_(161); -_dereq_(162); -_dereq_(163); -_dereq_(164); -_dereq_(165); -_dereq_(166); -_dereq_(230); -_dereq_(235); -_dereq_(242); -_dereq_(233); -_dereq_(225); -_dereq_(226); -_dereq_(231); +_dereq_(177); +_dereq_(241); +_dereq_(246); +_dereq_(253); +_dereq_(244); _dereq_(236); -_dereq_(238); -_dereq_(221); -_dereq_(222); -_dereq_(223); -_dereq_(224); -_dereq_(227); -_dereq_(228); -_dereq_(229); +_dereq_(237); +_dereq_(242); +_dereq_(247); +_dereq_(249); _dereq_(232); +_dereq_(233); _dereq_(234); -_dereq_(237); +_dereq_(235); +_dereq_(238); _dereq_(239); _dereq_(240); -_dereq_(241); -_dereq_(141); -_dereq_(143); -_dereq_(142); +_dereq_(243); +_dereq_(245); +_dereq_(248); +_dereq_(250); +_dereq_(251); +_dereq_(252); +_dereq_(152); +_dereq_(154); +_dereq_(153); +_dereq_(156); +_dereq_(155); +_dereq_(140); +_dereq_(138); _dereq_(145); +_dereq_(142); +_dereq_(148); +_dereq_(150); +_dereq_(137); _dereq_(144); -_dereq_(129); -_dereq_(127); _dereq_(134); -_dereq_(131); -_dereq_(137); +_dereq_(149); +_dereq_(132); +_dereq_(147); +_dereq_(146); _dereq_(139); -_dereq_(126); +_dereq_(143); +_dereq_(131); _dereq_(133); -_dereq_(123); -_dereq_(138); -_dereq_(121); _dereq_(136); _dereq_(135); -_dereq_(128); -_dereq_(132); -_dereq_(120); -_dereq_(122); -_dereq_(125); -_dereq_(124); -_dereq_(140); -_dereq_(130); +_dereq_(151); +_dereq_(141); +_dereq_(224); +_dereq_(230); +_dereq_(225); +_dereq_(226); +_dereq_(227); +_dereq_(228); +_dereq_(229); +_dereq_(209); +_dereq_(160); +_dereq_(231); +_dereq_(266); +_dereq_(267); +_dereq_(255); +_dereq_(256); +_dereq_(261); +_dereq_(264); +_dereq_(265); +_dereq_(259); +_dereq_(262); +_dereq_(260); +_dereq_(263); +_dereq_(257); +_dereq_(258); +_dereq_(210); +_dereq_(211); +_dereq_(212); _dereq_(213); -_dereq_(219); _dereq_(214); +_dereq_(217); _dereq_(215); _dereq_(216); -_dereq_(217); _dereq_(218); -_dereq_(198); -_dereq_(149); +_dereq_(219); _dereq_(220); -_dereq_(255); -_dereq_(256); -_dereq_(244); -_dereq_(245); -_dereq_(250); -_dereq_(253); -_dereq_(254); -_dereq_(248); -_dereq_(251); -_dereq_(249); -_dereq_(252); -_dereq_(246); -_dereq_(247); -_dereq_(199); -_dereq_(200); -_dereq_(201); -_dereq_(202); -_dereq_(203); -_dereq_(206); -_dereq_(204); -_dereq_(205); -_dereq_(207); -_dereq_(208); -_dereq_(209); -_dereq_(210); -_dereq_(212); -_dereq_(211); -_dereq_(257); -_dereq_(283); -_dereq_(286); -_dereq_(285); -_dereq_(287); -_dereq_(288); -_dereq_(284); -_dereq_(289); -_dereq_(290); +_dereq_(221); +_dereq_(223); +_dereq_(222); +_dereq_(270); _dereq_(268); -_dereq_(271); -_dereq_(267); -_dereq_(265); -_dereq_(266); _dereq_(269); -_dereq_(270); -_dereq_(260); -_dereq_(282); +_dereq_(311); +_dereq_(314); +_dereq_(313); +_dereq_(315); +_dereq_(316); +_dereq_(312); +_dereq_(317); +_dereq_(318); +_dereq_(292); +_dereq_(295); _dereq_(291); -_dereq_(259); -_dereq_(261); -_dereq_(263); -_dereq_(262); -_dereq_(264); -_dereq_(273); -_dereq_(274); +_dereq_(289); +_dereq_(290); +_dereq_(293); +_dereq_(294); _dereq_(276); +_dereq_(310); _dereq_(275); -_dereq_(278); +_dereq_(309); +_dereq_(321); +_dereq_(323); +_dereq_(274); +_dereq_(308); +_dereq_(320); +_dereq_(322); +_dereq_(273); +_dereq_(319); +_dereq_(272); _dereq_(277); +_dereq_(278); _dereq_(279); _dereq_(280); _dereq_(281); -_dereq_(258); -_dereq_(272); -_dereq_(294); -_dereq_(293); -_dereq_(292); +_dereq_(283); +_dereq_(282); +_dereq_(284); +_dereq_(285); +_dereq_(286); +_dereq_(288); +_dereq_(287); +_dereq_(297); +_dereq_(298); +_dereq_(299); +_dereq_(300); +_dereq_(302); +_dereq_(301); +_dereq_(304); +_dereq_(303); +_dereq_(305); +_dereq_(306); +_dereq_(307); +_dereq_(271); +_dereq_(296); +_dereq_(326); +_dereq_(325); +_dereq_(324); module.exports = _dereq_(23); -},{"120":120,"121":121,"122":122,"123":123,"124":124,"125":125,"126":126,"127":127,"128":128,"129":129,"130":130,"131":131,"132":132,"133":133,"134":134,"135":135,"136":136,"137":137,"138":138,"139":139,"140":140,"141":141,"142":142,"143":143,"144":144,"145":145,"146":146,"147":147,"148":148,"149":149,"150":150,"151":151,"152":152,"153":153,"154":154,"155":155,"156":156,"157":157,"158":158,"159":159,"160":160,"161":161,"162":162,"163":163,"164":164,"165":165,"166":166,"167":167,"168":168,"169":169,"170":170,"171":171,"172":172,"173":173,"174":174,"175":175,"176":176,"177":177,"178":178,"179":179,"180":180,"181":181,"182":182,"183":183,"184":184,"185":185,"186":186,"187":187,"188":188,"189":189,"190":190,"191":191,"192":192,"193":193,"194":194,"195":195,"196":196,"197":197,"198":198,"199":199,"200":200,"201":201,"202":202,"203":203,"204":204,"205":205,"206":206,"207":207,"208":208,"209":209,"210":210,"211":211,"212":212,"213":213,"214":214,"215":215,"216":216,"217":217,"218":218,"219":219,"220":220,"221":221,"222":222,"223":223,"224":224,"225":225,"226":226,"227":227,"228":228,"229":229,"23":23,"230":230,"231":231,"232":232,"233":233,"234":234,"235":235,"236":236,"237":237,"238":238,"239":239,"240":240,"241":241,"242":242,"243":243,"244":244,"245":245,"246":246,"247":247,"248":248,"249":249,"250":250,"251":251,"252":252,"253":253,"254":254,"255":255,"256":256,"257":257,"258":258,"259":259,"260":260,"261":261,"262":262,"263":263,"264":264,"265":265,"266":266,"267":267,"268":268,"269":269,"270":270,"271":271,"272":272,"273":273,"274":274,"275":275,"276":276,"277":277,"278":278,"279":279,"280":280,"281":281,"282":282,"283":283,"284":284,"285":285,"286":286,"287":287,"288":288,"289":289,"290":290,"291":291,"292":292,"293":293,"294":294}],296:[function(_dereq_,module,exports){ + +},{"131":131,"132":132,"133":133,"134":134,"135":135,"136":136,"137":137,"138":138,"139":139,"140":140,"141":141,"142":142,"143":143,"144":144,"145":145,"146":146,"147":147,"148":148,"149":149,"150":150,"151":151,"152":152,"153":153,"154":154,"155":155,"156":156,"157":157,"158":158,"159":159,"160":160,"161":161,"162":162,"163":163,"164":164,"165":165,"166":166,"167":167,"168":168,"169":169,"170":170,"171":171,"172":172,"173":173,"174":174,"175":175,"176":176,"177":177,"178":178,"179":179,"180":180,"181":181,"182":182,"183":183,"184":184,"185":185,"186":186,"187":187,"188":188,"189":189,"190":190,"191":191,"192":192,"193":193,"194":194,"195":195,"196":196,"197":197,"198":198,"199":199,"200":200,"201":201,"202":202,"203":203,"204":204,"205":205,"206":206,"207":207,"208":208,"209":209,"210":210,"211":211,"212":212,"213":213,"214":214,"215":215,"216":216,"217":217,"218":218,"219":219,"220":220,"221":221,"222":222,"223":223,"224":224,"225":225,"226":226,"227":227,"228":228,"229":229,"23":23,"230":230,"231":231,"232":232,"233":233,"234":234,"235":235,"236":236,"237":237,"238":238,"239":239,"240":240,"241":241,"242":242,"243":243,"244":244,"245":245,"246":246,"247":247,"248":248,"249":249,"250":250,"251":251,"252":252,"253":253,"254":254,"255":255,"256":256,"257":257,"258":258,"259":259,"260":260,"261":261,"262":262,"263":263,"264":264,"265":265,"266":266,"267":267,"268":268,"269":269,"270":270,"271":271,"272":272,"273":273,"274":274,"275":275,"276":276,"277":277,"278":278,"279":279,"280":280,"281":281,"282":282,"283":283,"284":284,"285":285,"286":286,"287":287,"288":288,"289":289,"290":290,"291":291,"292":292,"293":293,"294":294,"295":295,"296":296,"297":297,"298":298,"299":299,"300":300,"301":301,"302":302,"303":303,"304":304,"305":305,"306":306,"307":307,"308":308,"309":309,"310":310,"311":311,"312":312,"313":313,"314":314,"315":315,"316":316,"317":317,"318":318,"319":319,"320":320,"321":321,"322":322,"323":323,"324":324,"325":325,"326":326}],328:[function(_dereq_,module,exports){ (function (global){ /** * Copyright (c) 2014, Facebook, Inc. @@ -6103,6 +6851,7 @@ module.exports = _dereq_(23); var undefined; // More compressible than void 0. var $Symbol = typeof Symbol === "function" ? Symbol : {}; var iteratorSymbol = $Symbol.iterator || "@@iterator"; + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; var inModule = typeof module === "object"; @@ -6276,8 +7025,8 @@ module.exports = _dereq_(23); } } - if (typeof process === "object" && process.domain) { - invoke = process.domain.bind(invoke); + if (typeof global.process === "object" && global.process.domain) { + invoke = global.process.domain.bind(invoke); } var previousPromise; @@ -6316,6 +7065,9 @@ module.exports = _dereq_(23); } defineIteratorMethods(AsyncIterator.prototype); + AsyncIterator.prototype[asyncIteratorSymbol] = function () { + return this; + }; runtime.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of @@ -6351,90 +7103,34 @@ module.exports = _dereq_(23); return doneResult(); } + context.method = method; + context.arg = arg; + while (true) { var delegate = context.delegate; if (delegate) { - if (method === "return" || - (method === "throw" && delegate.iterator[method] === undefined)) { - // A return or throw (when the delegate iterator has no throw - // method) always terminates the yield* loop. - context.delegate = null; - - // If the delegate iterator has a return method, give it a - // chance to clean up. - var returnMethod = delegate.iterator["return"]; - if (returnMethod) { - var record = tryCatch(returnMethod, delegate.iterator, arg); - if (record.type === "throw") { - // If the return method threw an exception, let that - // exception prevail over the original return or throw. - method = "throw"; - arg = record.arg; - continue; - } - } - - if (method === "return") { - // Continue with the outer return, now that the delegate - // iterator has been terminated. - continue; - } - } - - var record = tryCatch( - delegate.iterator[method], - delegate.iterator, - arg - ); - - if (record.type === "throw") { - context.delegate = null; - - // Like returning generator.throw(uncaught), but without the - // overhead of an extra function call. - method = "throw"; - arg = record.arg; - continue; - } - - // Delegate generator ran and handled its own exceptions so - // regardless of what the method was, we continue as if it is - // "next" with an undefined arg. - method = "next"; - arg = undefined; - - var info = record.arg; - if (info.done) { - context[delegate.resultName] = info.value; - context.next = delegate.nextLoc; - } else { - state = GenStateSuspendedYield; - return info; + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; } - - context.delegate = null; } - if (method === "next") { + if (context.method === "next") { // Setting context._sent for legacy support of Babel's // function.sent implementation. - context.sent = context._sent = arg; + context.sent = context._sent = context.arg; - } else if (method === "throw") { + } else if (context.method === "throw") { if (state === GenStateSuspendedStart) { state = GenStateCompleted; - throw arg; + throw context.arg; } - if (context.dispatchException(arg)) { - // If the dispatched exception was caught by a catch block, - // then let that catch block handle the exception normally. - method = "next"; - arg = undefined; - } + context.dispatchException(context.arg); - } else if (method === "return") { - context.abrupt("return", arg); + } else if (context.method === "return") { + context.abrupt("return", context.arg); } state = GenStateExecuting; @@ -6447,38 +7143,123 @@ module.exports = _dereq_(23); ? GenStateCompleted : GenStateSuspendedYield; - var info = { + if (record.arg === ContinueSentinel) { + continue; + } + + return { value: record.arg, done: context.done }; - if (record.arg === ContinueSentinel) { - if (context.delegate && method === "next") { - // Deliberately forget the last sent value so that we don't - // accidentally pass it on to the delegate. - arg = undefined; - } - } else { - return info; - } - } else if (record.type === "throw") { state = GenStateCompleted; // Dispatch the exception by looping back around to the - // context.dispatchException(arg) call above. - method = "throw"; - arg = record.arg; + // context.dispatchException(context.arg) call above. + context.method = "throw"; + context.arg = record.arg; } } }; } + // Call delegate.iterator[context.method](context.arg) and handle the + // result, either by returning a { value, done } result from the + // delegate iterator, or by modifying context.method and context.arg, + // setting context.delegate to null, and returning the ContinueSentinel. + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + if (method === undefined) { + // A .throw or .return when the delegate iterator has no .throw + // method always terminates the yield* loop. + context.delegate = null; + + if (context.method === "throw") { + if (delegate.iterator.return) { + // If the delegate iterator has a return method, give it a + // chance to clean up. + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); + + if (context.method === "throw") { + // If maybeInvokeDelegate(context) changed context.method from + // "return" to "throw", let that override the TypeError below. + return ContinueSentinel; + } + } + + context.method = "throw"; + context.arg = new TypeError( + "The iterator does not provide a 'throw' method"); + } + + return ContinueSentinel; + } + + var record = tryCatch(method, delegate.iterator, context.arg); + + if (record.type === "throw") { + context.method = "throw"; + context.arg = record.arg; + context.delegate = null; + return ContinueSentinel; + } + + var info = record.arg; + + if (! info) { + context.method = "throw"; + context.arg = new TypeError("iterator result is not an object"); + context.delegate = null; + return ContinueSentinel; + } + + if (info.done) { + // Assign the result of the finished delegate to the temporary + // variable specified by delegate.resultName (see delegateYield). + context[delegate.resultName] = info.value; + + // Resume execution at the desired location (see delegateYield). + context.next = delegate.nextLoc; + + // If context.method was "throw" but the delegate handled the + // exception, let the outer generator proceed normally. If + // context.method was "next", forget context.arg since it has been + // "consumed" by the delegate iterator. If context.method was + // "return", allow the original .return call to continue in the + // outer generator. + if (context.method !== "return") { + context.method = "next"; + context.arg = undefined; + } + + } else { + // Re-yield the result returned by the delegate method. + return info; + } + + // The delegate iterator is finished, so forget it and continue with + // the outer generator. + context.delegate = null; + return ContinueSentinel; + } + // Define Generator.prototype.{next,throw,return} in terms of the // unified ._invoke helper method. defineIteratorMethods(Gp); Gp[toStringTagSymbol] = "Generator"; + // A Generator should always return itself as the iterator object when the + // @@iterator function is called on it. Some browsers' implementations of the + // iterator prototype chain incorrectly implement this, causing the Generator + // object to not be returned from this call. This ensures that doesn't happen. + // See https://github.com/facebook/regenerator/issues/274 for more details. + Gp[iteratorSymbol] = function() { + return this; + }; + Gp.toString = function() { return "[object Generator]"; }; @@ -6593,6 +7374,9 @@ module.exports = _dereq_(23); this.done = false; this.delegate = null; + this.method = "next"; + this.arg = undefined; + this.tryEntries.forEach(resetTryEntry); if (!skipTempReset) { @@ -6629,7 +7413,15 @@ module.exports = _dereq_(23); record.type = "throw"; record.arg = exception; context.next = loc; - return !!caught; + + if (caught) { + // If the dispatched exception was caught by a catch block, + // then let that catch block handle the exception normally. + context.method = "next"; + context.arg = undefined; + } + + return !! caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { @@ -6697,12 +7489,12 @@ module.exports = _dereq_(23); record.arg = arg; if (finallyEntry) { + this.method = "next"; this.next = finallyEntry.finallyLoc; - } else { - this.complete(record); + return ContinueSentinel; } - return ContinueSentinel; + return this.complete(record); }, complete: function(record, afterLoc) { @@ -6714,11 +7506,14 @@ module.exports = _dereq_(23); record.type === "continue") { this.next = record.arg; } else if (record.type === "return") { - this.rval = record.arg; + this.rval = this.arg = record.arg; + this.method = "return"; this.next = "end"; } else if (record.type === "normal" && afterLoc) { this.next = afterLoc; } + + return ContinueSentinel; }, finish: function(finallyLoc) { @@ -6757,6 +7552,12 @@ module.exports = _dereq_(23); nextLoc: nextLoc }; + if (this.method === "next") { + // Deliberately forget the last sent value so that we don't + // accidentally pass it on to the delegate. + this.arg = undefined; + } + return ContinueSentinel; } }; @@ -7535,7 +8336,7 @@ var EntityManager = function () { }, { key: 'getEntities', - value: regeneratorRuntime.mark(function getEntities() { + value: /*#__PURE__*/regeneratorRuntime.mark(function getEntities() { var components = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; var id; return regeneratorRuntime.wrap(function getEntities$(_context) { @@ -7895,4 +8696,4 @@ exports.EventHandler = EventHandler; Object.defineProperty(exports, '__esModule', { value: true }); }))); -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2ctZW50aXRpZXMuanMiLCJzb3VyY2VzIjpbIi4uL3NyYy9jb3JlL2VudGl0eS1mYWN0b3J5LmpzIiwiLi4vc3JjL2NvcmUvY29tcG9uZW50LW1hbmFnZXIuanMiLCIuLi9zcmMvY29yZS9zeXN0ZW0tbWFuYWdlci5qcyIsIi4uL3NyYy9jb3JlL2V2ZW50LWhhbmRsZXIuanMiLCIuLi9zcmMvY29yZS9lbnRpdHktbWFuYWdlci5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFbnRpdHlNYW5hZ2VyIH0gZnJvbSAnLi9lbnRpdHktbWFuYWdlcidcblxuY2xhc3MgRW50aXR5RmFjdG9yeSB7XG4gICAgY29uc3RydWN0b3IoKSB7XG4gICAgICAgIHRoaXMuaW5pdCgpXG4gICAgfVxuICAgIFxuICAgIGluaXQoKSB7XG4gICAgICAgIHRoaXMuaW5pdGlhbGl6ZXJzICA9IG5ldyBNYXAoKVxuICAgICAgICB0aGlzLmNvbmZpZ3VyYXRpb24gPSBuZXcgT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VxuICAgICAgICBcbiAgICAgICAgcmV0dXJuIHRoaXNcbiAgICB9XG4gICAgXG4gICAgY3JlYXRlQ29uZmlndXJhdGlvbigpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuY29uZmlndXJhdGlvblxuICAgIH1cbiAgICBcbiAgICBjcmVhdGUoZW50aXR5TWFuYWdlciwgY291bnQgPSAxLCBjb25maWd1cmF0aW9uID0gdW5kZWZpbmVkKSB7XG4gICAgICAgIGlmICghKGVudGl0eU1hbmFnZXIgaW5zdGFuY2VvZiBFbnRpdHlNYW5hZ2VyKSkge1xuICAgICAgICAgICAgcmV0dXJuIFtdXG4gICAgICAgIH1cbiAgICBcbiAgICAgICAgaWYgKGNvbmZpZ3VyYXRpb24gPT0gbnVsbCkge1xuICAgICAgICAgICAgY29uZmlndXJhdGlvbiA9IHRoaXMuY29uZmlndXJhdGlvblxuICAgICAgICB9XG4gICAgICAgIFxuICAgICAgICBjb25zdCBjb21wb25lbnRzID0gQXJyYXkuZnJvbShjb25maWd1cmF0aW9uLmtleXMoKSkucmVkdWNlKChjdXJyLCBuZXh0KSA9PiBjdXJyIHw9IG5leHQsIDApXG4gICAgICAgIFxuICAgICAgICBsZXQgZW50aXRpZXMgPSBbXVxuICAgICAgICBcbiAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCBjb3VudDsgKytpKSB7XG4gICAgICAgICAgICBsZXQgeyBpZCwgZW50aXR5IH0gPSBlbnRpdHlNYW5hZ2VyLm5ld0VudGl0eShjb21wb25lbnRzKVxuICAgICAgICAgICAgXG4gICAgICAgICAgICBpZiAoaWQgPj0gZW50aXR5TWFuYWdlci5jYXBhY2l0eSkge1xuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBcbiAgICAgICAgICAgIGZvciAobGV0IFtjb21wb25lbnQsIGluaXRpYWxpemVyXSBvZiBjb25maWd1cmF0aW9uKSB7XG4gICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBpbml0aWFsaXplciAhPT0gJ2Z1bmN0aW9uJykge1xuICAgICAgICAgICAgICAgICAgICBjb250aW51ZVxuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGxldCByZXN1bHQgPSBpbml0aWFsaXplci5jYWxsKGVudGl0eVtjb21wb25lbnRdKVxuICAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgZW50aXR5W2NvbXBvbmVudF0gIT09ICdvYmplY3QnICYmIHJlc3VsdCAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgICAgIGVudGl0eVtjb21wb25lbnRdID0gcmVzdWx0XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgXG4gICAgICAgICAgICBlbnRpdGllcy5wdXNoKHsgaWQsIGVudGl0eSB9KVxuICAgICAgICB9XG4gICAgICAgIFxuICAgICAgICByZXR1cm4gZW50aXRpZXMubGVuZ3RoID09PSAxID8gZW50aXRpZXNbMF0gOiBlbnRpdGllc1xuICAgIH1cbn1cblxuZXhwb3J0IHsgRW50aXR5RmFjdG9yeSB9XG4iLCIvKipcbiAqIFRoaXMgZnVuY3Rpb24gYWRkcyBvbmUgdG8gaXRzIGlucHV0LlxuICogQHBhcmFtIHtudW1iZXJ9IGlucHV0IGFueSBudW1iZXJcbiAqIEByZXR1cm5zIHtudW1iZXJ9IHRoYXQgbnVtYmVyLCBwbHVzIG9uZS5cbiAqL1xuY2xhc3MgQ29tcG9uZW50TWFuYWdlciB7XG4gICAgY29uc3RydWN0b3IoKSB7XG4gICAgICAgIHRoaXMuaW5pdCgpXG4gICAgfVxuICAgIFxuICAgIGluaXQoKSB7XG4gICAgICAgIHRoaXMuY29tcG9uZW50cyA9IG5ldyBNYXAoKVxuICAgIH1cbiAgICBcbiAgICBuZXdDb21wb25lbnQoY29tcG9uZW50SWQpIHtcbiAgICAgICAgbGV0IGNvbXBvbmVudCA9IHRoaXMuY29tcG9uZW50cy5nZXQoY29tcG9uZW50SWQpXG4gICAgICAgIFxuICAgICAgICBpZiAoY29tcG9uZW50ID09PSBudWxsIHx8IGNvbXBvbmVudCA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICByZXR1cm4gbnVsbFxuICAgICAgICB9XG4gICAgICAgIFxuICAgICAgICBzd2l0Y2ggKHR5cGVvZiBjb21wb25lbnQpIHtcbiAgICAgICAgICAgIGNhc2UgJ2Z1bmN0aW9uJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gbmV3IGNvbXBvbmVudCgpXG4gICAgICAgICAgICBjYXNlICdvYmplY3QnICA6IHtcbiAgICAgICAgICAgICAgICByZXR1cm4gKChjb21wb25lbnQpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IHJldCA9IHt9XG4gICAgICAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgICAgICBPYmplY3Qua2V5cyhjb21wb25lbnQpLmZvckVhY2goa2V5ID0+IHJldFtrZXldID0gY29tcG9uZW50W2tleV0pXG4gICAgICAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmV0XG4gICAgICAgICAgICAgICAgfSkoY29tcG9uZW50KVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICByZXR1cm4gY29tcG9uZW50XG4gICAgICAgIH1cbiAgICB9XG4gICAgXG4gICAgcmVnaXN0ZXJDb21wb25lbnQoY29tcG9uZW50KSB7XG4gICAgICAgIGlmIChjb21wb25lbnQgPT09IG51bGwgfHwgY29tcG9uZW50ID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIHRocm93IFR5cGVFcnJvcignY29tcG9uZW50IGNhbm5vdCBiZSBudWxsIG9yIHVuZGVmaW5lZC4nKVxuICAgICAgICB9XG4gICAgICAgIFxuICAgICAgICBjb25zdCBtYXggPSBNYXRoLm1heCguLi50aGlzLmNvbXBvbmVudHMua2V5cygpKVxuICAgICA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AgXG5jbGFzcyBFdmVudEhhbmRsZXIge1xuICAgIGNvbnN0cnVjdG9yKCkge1xuICAgICAgICB0aGlzLmluaXQoKVxuICAgIH1cbiAgICBcbiAgICBpbml0KCkge1xuICAgICAgICB0aGlzLmV2ZW50cyA9IG5ldyBNYXAoKVxuICAgIH1cbiAgICBcbiAgICBsaXN0ZW4oZXZlbnQsIGNhbGxiYWNrKSB7XG4gICAgICAgIGlmICh0eXBlb2YgZXZlbnQgIT09ICdzdHJpbmcnIHx8IHR5cGVvZiBjYWxsYmFjayAhPT0gJ2Z1bmN0aW9uJykge1xuICAgICAgICAgICAgcmV0dXJuXG4gICAgICAgIH1cbiAgICAgICAgXG4gICAgICAgIGlmICghdGhpcy5ldmVudHMuaGFzKGV2ZW50KSkge1xuICAgICAgICAgICAgdGhpcy5ldmVudHMuc2V0KGV2ZW50LCBuZXcgTWFwKCkpXG4gICAgICAgIH1cbiAgICAgICAgXG4gICAgICAgIGxldCBldmVudElkID0gLTFcbiAgICAgICAgXG4gICAgICAgIHRoaXMuZXZlbnRzLmZvckVhY2goZXZlbnQgPT4ge1xuICAgICAgICAgICAgZXZlbnRJZCA9IE1hdGgubWF4KGV2ZW50SWQsIC4uLmV2ZW50LmtleXMoKSlcbiAgICAgICAgfSlcbiAgICAgICAgXG4gICAgICAgICsrZXZlbnRJZFxuICAgICAgICBcbiAgICAgICAgdGhpcy5ldmVudHMuZ2V0KGV2ZW50KS5zZXQoZXZlbnRJZCwgY2FsbGJhY2spXG4gICAgICAgIFxuICAgICAgICByZXR1cm4gZXZlbnRJZFxuICAgIH1cbiAgICBcbiAgICBzdG9wTGlzdGVuKGV2ZW50SWQpIHtcbiAgICAgICAgZm9yIChsZXQgZXZlbnRzIG9mIHRoaXMuZXZlbnRzLnZhbHVlcygpKSB7XG4gICAgICAgICAgICBmb3IgKGxldCBpZCBvZiBldmVudHMua2V5cygpKSB7XG4gICAgICAgICAgICAgICAgaWYgKGlkID09PSBldmVudElkKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBldmVudHMuZGVsZXRlKGV2ZW50SWQpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGZhbHNlXG4gICAgfVxuICAgIFxuICAgIHRyaWdnZXIoKSB7XG4gICAgICAgIGxldCBzZWxmID0gdGhpcyBpbnN0YW5jZW9mIEVudGl0eU1hbmFnZXIgPyB0aGlzLmV2ZW50SGFuZGxlciA6IHRoaXNcbiAgICAgICAgXG4gICAgICAgIGxldCBhcmdzID0gQXJyYXkuZnJvbShhcmd1bWVudHMpXG4gICAgICAgIFxuICAgICAgICBsZXQgWyBldmVudCBdID0gYXJncy5zcGxpY2UoMCwgMSlcbiAgICAgICAgXG4gICAgICAgIGlmICh0eXBlb2YgZXZlbnQgIT09ICdzdHJpbmcnIHx8ICFzZWxmLmV2ZW50cy5oYXMoZXZlbnQpKSB7XG4gICAgICAgICAgICByZXR1cm4gZW1wdHlQcm9taXNlKClcbiAgICAgICAgfVxuICAgICAgICBcbiAgICAgICAgbGV0IHByb21pc2VzID0gW11cbiAgICAgICAgXG4gICAgICAgIGZvciAobGV0IGNhbGxiYWNrIG9mIHNlbGYuZXZlbnRzLmdldChldmVudCkudmFsdWVzKCkpIHtcbiAgICAgICAgICAgIHByb21pc2VzLnB1c2gocHJvbWlzZShjYWxsYmFjaywgdGhpcywgYXJncykpXG4gICAgICAgIH1cbiAgICAgICAgXG4gICAgICAgIHJldHVybiBQcm9taXNlLmFsbChwcm9taXNlcylcbiAgICB9XG4gICAgXG4gICAgdHJpZ2dlckRlbGF5ZWQoKSB7XG4gICAgICAgIGxldCBzZWxmID0gdGhpcyBpbnN0YW5jZW9mIEVudGl0eU1hbmFnZXIgPyB0aGlzLmV2ZW50SGFuZGxlciA6IHRoaXNcbiAgICAgICAgXG4gICAgICAgIGxldCBhcmdzID0gQXJyYXkuZnJvbShhcmd1bWVudHMpXG4gICAgICAgIFxuICAgICAg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XQgZW50aXR5ID0gdGhpcy5lbnRpdGllc1tpXVxuICAgICAgICAgICAgXG4gICAgICAgICAgICBmb3IgKGNvbnN0IGNvbXBvbmVudElkIG9mIHRoaXMuY29tcG9uZW50TWFuYWdlci5nZXRDb21wb25lbnRzKCkua2V5cygpKSB7XG4gICAgICAgICAgICAgICAgbGV0IGNvbXBvbmVudE5hbWUgPSBudWxsXG4gICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgZm9yIChsZXQgW2tleSwgdmFsdWVdIG9mIHRoaXMuY29tcG9uZW50TG9va3VwLmVudHJpZXMoKSkge1xuICAgICAgICAgICAgICAgICAgICBpZiAodmFsdWUgPT09IGNvbXBvbmVudElkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb21wb25lbnROYW1lID0ga2V5XG4gICAgICAgICAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBlbnRpdHlbY29tcG9uZW50SWRdID0gdGhpcy5jb21wb25lbnRNYW5hZ2VyLm5ld0NvbXBvbmVudChjb21wb25lbnRJZClcbiAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZW50aXR5LCBjb21wb25lbnROYW1lLCB7IGdldCgpIHsgcmV0dXJuIHRoaXNbY29tcG9uZW50SWRdIH0sIGNvbmZpZ3VyYWJsZTogdHJ1ZSB9KVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuICAgIFxuICAgIG5ld0VudGl0eShjb21wb25lbnRzKSB7XG4gICAgICAgIGlmIChBcnJheS5pc0FycmF5KGNvbXBvbmVudHMpKSB7XG4gICAgICAgICAgICBjb21wb25lbnRzID0gQXJyYXkuZnJvbSh0aGlzLmNvbXBvbmVudExvb2t1cCkucmVkdWNlKChjdXJyLCBuZXh0KSA9PiBbJycsIGN1cnJbMV0gfCBuZXh0WzFdXSwgWycnLCAwXSlbMV1cbiAgICAgICAgfVxuICAgICAgICBcbiAgICAgICAgaWYgKCFOdW1iZXIuaXNJbnRlZ2VyKGNvbXBvbmVudHMpIHx8IGNvbXBvbmVudHMgPD0gMCkge1xuICAgICAgICAgICAgcmV0dXJuIHsgaWQgOiB0aGlzLmNhcGFjaXR5LCBlbnRpdHkgOiBudWxsIH1cbiAgICAgICAgfVxuICAgICAgICBcbiAgICAgICAgbGV0IGlkID0gMFxuICAgICAgICBcbiAgICAgICAgZm9yICg7IGlkIDwgdGhpcy5jYXBhY2l0eTsgKytpZCkge1xuICAgICAgICAgICAgaWYgKHRoaXMuZW50aXRpZXNbaWRdLmNvbXBvbmVudHMgPT09IDApIHtcbiAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIFxuICAgICAgICBpZiAoaWQgPj0gdGhpcy5jYXBhY2l0eSkge1xuICAgICAgICAgICAgLy8gdG9kbzogYXV0byBpbmNyZWFzZSBjYXBhY2l0eT9cbiAgICAgICAgICAgIHJldHVybiB7IGlkIDogdGhpcy5jYXBhY2l0eSwgZW50aXR5IDogbnVsbCB9XG4gICAgICAgIH1cbiAgICAgICAgXG4gICAgICAgIGlmIChpZCA+IHRoaXMuY3VycmVudE1heEVudGl0eSkge1xuICAgICAgICAgICAgdGhpcy5jdXJyZW50TWF4RW50aXR5ID0gaWRcbiAgICAgICAgfVxuICAgICAgICBcbiAgICAgICAgdGhpcy5lbnRpdGllc1tpZF0uY29tcG9uZW50cyA9IGNvbXBvbmVudHNcbiAgICAgICAgXG4gICAgICAgIHJldHVybiB7IGlkLCBlbnRpdHkgOiB0aGlzLmVudGl0aWVzW2lkXSB9XG4gICAgfVxuICAgIFxuICAgIGRlbGV0ZUVudGl0eShpZCkge1xuICAgICAgICAvL3RvZG8gYWRkIHNhbml0eSBjaGVja1xuICAgICAgICB0aGlzLmVudGl0aWVzW2lkXS5jb21wb25lbnRzID0gMFxuICAgICAgICBcbiAgICAgICAgaWYgKGlkIDwgdGhpcy5jdXJyZW50TWF4RW50aXR5KSB7XG4gICAgICAgICAgICByZXR1cm5cbiAgICAgICAgfVxuICAgICAgICBcbiAgICAgICAgZm9yIChsZXQgaSA9IGlkOyBpID49IDA7IC0taSkge1xuICAgICAgICAgICAgaWYgKHRoaXMuZW50aXRpZXNbaV0uY29tcG9uZW50cyAhPT0gMCkge1xuICAgICAgICAgICAgICAgIHRoaXMuY3VycmVudE1heEVudGl0eSA9IGlcbiAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICByZXR1cm5cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuY3VycmVudE1heEVudGl0eSA9IDBcbiAgICB9XG5cbiAgICAvLyBEb2VzIG5vdCBhbGxvdyBjb21wb25lbnRzIHRvIGJlIGFueXRoaW5nIG90aGVyIHRoYW4gYSBiaXRtYXNrIGZvciBwZXJmb3JtYW5jZSByZWFzb25zXG4gICAgLy8gVGhpcyBtZXRob2Qgd2lsbCBiZSBjYWxsZWQgZm9yIGV2ZXJ5IHN5c3RlbSBmb3IgZXZlcnkgbG9vcCAod2hpY2ggbWlnaHQgYmUgYXMgaGlnaCBhcyA2MCAvIHNlY29uZClcbiAgICAqZ2V0RW50aXRpZXMoY29tcG9uZW50cyA9IDApIHtcbiAgICAgICAgZm9yIChsZXQgaWQgPSAwOyBpZCA8PSB0aGlzLmN1cnJlbnRNYXhFbnRpdHk7ICsraWQpIHtcbiAgICAgICAgICAgIGlmIChjb21wb25lbnRzID09PSAwIHx8ICh0aGlzLmVudGl0aWVzW2lkXS5jb21wb25lbnRzICYgY29tcG9uZW50cykgPT09IGNvbXBvbmVudHMpIHtcbiAgICAgICAgICAgICAgICB5aWVsZCB7IGlkLCBlbnRpdHkgOiB0aGlzLmVudGl0aWVzW2lkXSB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG4gICAgXG4gICAgcmVnaXN0ZXJDb25maWd1cmF0aW9uKCkge1xuICAgICAgICBjb25zdCBjb25maWd1cmF0aW9uSWQgPSBNYXRoLm1heCgwLCAuLi50aGlzLmVudGl0eUNvbmZpZ3VyYXRpb25zLmtleXMoKSkgKyAxXG4gICAgICAgIFxuICAgICAgICB0aGlzLmVudGl0eUNvbmZpZ3VyYXRpb25zLnNldChjb25maWd1cmF0aW9uSWQsIHRoaXMuZW50aXR5RmFjdG9yeS5jcmVhdGVDb25maWd1cmF0aW9uKCkpXG4gICAgICAgIFxuICAgICAgICByZXR1cm4gY29uZmlndXJhdGlvbklkXG4gICAgfVxuICAgIFxuICAgIC8vIENvbXBvbmVudCBNYW5hZ2VyXG4gICAgXG4gICAgcmVnaXN0ZXJDb21wb25lbnQobmFtZSwgY29tcG9uZW50KSB7XG4gICAgICAgIGlmICh0eXBlb2YgbmFtZSAhPT0gJ3N0cmluZycgfHwgbmFtZS5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgIHRocm93IFR5cGVFcnJvcignbmFtZSBtdXN0IGJlIGEgbm9uLWVtcHR5IHN0cmluZy4nKVxuICAgICAgICB9XG4gICAgICAgIFxuICAgICAgICBpZiAodGhpcy5jb21wb25lbnRMb29rdXAuZ2V0KG5hbWUpICE9IG51bGwpIHtcbiAgICAgICAgICAgIHJldHVyblxuICAgICAgICB9XG4gICAgICAgIFxuICAgICAgICBjb25zdCBjb21wb25lbnRJZCA9IHRoaXMuY29tcG9uZW50TWFuYWdlci5yZWdpc3RlckNvbXBvbmVudChjb21wb25lbnQpXG4gICAgICAgIFxuICAgICAgICB0aGlzLmNvbXBvbmVudExvb2t1cC5zZXQobmFtZSwgY29tcG9uZW50SWQpXG4gICAgICAgIFxuICAgICAgICBmb3IgKGxldCBlbnRpdHkgb2YgdGhpcy5lbnRpdGllcykge1xuICAgICAgICAgICAgZW50aXR5W2NvbXBvbmVudElkXSA9IHRoaXMuY29tcG9uZW50TWFuYWdlci5uZXdDb21wb25lbnQoY29tcG9uZW50SWQpXG4gICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZW50aXR5LCBuYW1lLCB7IGdldCgpIHsgcmV0dXJuIHRoaXNbY29tcG9uZW50SWRdIH0sIGNvbmZpZ3VyYWJsZTogdHJ1ZSB9KVxuICAgICAgICB9XG4gICAgICAgIFxuICAgICAgICBsZXQgaW5pdGlhbGl6ZXJcblxuICAgICAgICBzd2l0Y2ggKHR5cGVvZiBjb21wb25lbnQpIHtcbiAgICAgICAgICAgIGNhc2UgJ2Z1bmN0aW9uJzogaW5pdGlhbGl6ZXIgPSBjb21wb25lbnQ7IGJyZWFrXG4gICAgICAgICAgICBjYXNlICdvYmplY3QnOiB7XG4gICAgICAgICAgICAgICAgaW5pdGlhbGl6ZXIgPSBmdW5jdGlvbigpIHtcbiAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQga2V5IG9mIE9iamVjdC5rZXlzKGNvbXBvbmVudCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXNba2V5XSA9IGNvbXBvbmVudFtrZXldXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICBcbiAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZGVmYXVsdDogaW5pdGlhbGl6ZXIgPSBmdW5jdGlvbigpIHsgcmV0dXJuIGNvbXBvbmVudCB9OyBicmVha1xuICAgICAgICB9XG4gICAgICAgIFxuICAgICAgICB0aGlzLmVudGl0eUZhY3RvcnkucmVnaXN0ZXJJbml0aWFsaXplcihjb21wb25lbnRJZCwgaW5pdGlhbGl6ZXIpXG4gICAgICAgIFxuICAgICAgICByZXR1cm4gY29tcG9uZW50SWRcbiAgICB9XG4gICAgXG4gICAgYWRkQ29tcG9uZW50KGVudGl0eUlkLCBjb21wb25lbnQpIHtcbiAgICAgICAgaWYgKHR5cGVvZiBjb21wb25lbnQgPT09ICdzdHJpbmcnKSB7XG4gICAgICAgICAgICB0aGlzLmVudGl0aWVzW2VudGl0eUlkXS5jb21wb25lbnRzIHw9IHRoaXMuY29tcG9uZW50TG9va3VwLmdldChjb21wb25lbnQpXG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLmVudGl0aWVzW2VudGl0eUlkXS5jb21wb25lbnRzIHw9IGNvbXBvbmVudFxuICAgICAgICB9XG4gICAgfVxuICAgIFxuICAgIHJlbW92ZUNvbXBvbmVudChlbnRpdHlJZCwgY29tcG9uZW50KSB7XG4gICAgICAgIGlmICh0eXBlb2YgY29tcG9uZW50ID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgdGhpcy5lbnRpdGllc1tlbnRpdHlJZF0uY29tcG9uZW50cyAmPSB+dGhpcy5jb21wb25lbnRMb29rdXAuZ2V0KGNvbXBvbmVudClcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMuZW50aXRpZXNbZW50aXR5SWRdLmNvbXBvbmVudHMgJj0gfmNvbXBvbmVudCAgIFxuICAgICAgICB9XG4gICAgfVxuICAgIFxuICAgIC8vIFN5c3RlbSBNYW5hZ2VyXG4gICAgXG4gICAgcmVnaXN0ZXJTeXN0ZW0odHlwZSwgY29tcG9uZW50cywgY2FsbGJhY2spIHtcbiAgICAgICAgaWYgKEFycmF5LmlzQXJyYXkoY29tcG9uZW50cykpIHtcbiAgICAgICAgICAgIGNvbXBvbmVudHMgPSBBcnJheS5mcm9tKHRoaXMuY29tcG9uZW50TG9va3VwKS5yZWR1Y2UoKGN1cnIsIG5leHQpID0+IFsnJywgY3VyclsxXSB8IG5leHRbMV1dLCBbJycsIDBdKVsxXVxuICAgICAgICB9XG4gICAgICAgIFxuICAgICAgICByZXR1cm4gdGhpcy5zeXN0ZW1NYW5hZ2VyLnJlZ2lzdGVyU3lzdGVtKHR5cGUsIGNvbXBvbmVudHMsIGNhbGxiYWNrKVxuICAgIH1cbiAgICBcbiAgICByZWdpc3RlckxvZ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HRoaXMsIHRoaXMuZ2V0RW50aXRpZXMoc3lzdGVtLmNvbXBvbmVudHMpLCBvcHRzKVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25Jbml0KG9wdHMpIHtcbiAgICAgICAgZm9yIChsZXQgc3lzdGVtIG9mIHRoaXMuc3lzdGVtTWFuYWdlci5pbml0U3lzdGVtcy52YWx1ZXMoKSkge1xuICAgICAgICAgICAgc3lzdGVtLmNhbGxiYWNrLmNhbGwodGhpcywgdGhpcy5nZXRFbnRpdGllcyhzeXN0ZW0uY29tcG9uZW50cyksIG9wdHMpXG4gICAgICAgIH1cbiAgICB9XG4gICAgXG4gICAgLy8gRW50aXR5IEZhY3RvcnlcbiAgICBcbiAgICByZWdpc3RlckluaXRpYWxpemVyKGNvbXBvbmVudCwgaW5pdGlhbGl6ZXIpIHtcbiAgICAgICAgaWYgKHR5cGVvZiBjb21wb25lbnQgPT09ICdzdHJpbmcnKSB7XG4gICAgICAgICAgICB0aGlzLmVudGl0eUZhY3RvcnkucmVnaXN0ZXJJbml0aWFsaXplcih0aGlzLmNvbXBvbmVudExvb2t1cC5nZXQoY29tcG9uZW50KSwgaW5pdGlhbGl6ZXIpXG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLmVudGl0eUZhY3RvcnkucmVnaXN0ZXJJbml0aWFsaXplcihjb21wb25lbnQsIGluaXRpYWxpemVyKVxuICAgICAgICB9XG4gICAgfVxuICAgIFxuICAgIGJ1aWxkKCkge1xuICAgICAgICB0aGlzLmVudGl0eUZhY3RvcnkuYnVpbGQoKVxuICAgICAgICBcbiAgICAgICAgcmV0dXJuIHRoaXNcbiAgICB9XG4gICAgXG4gICAgd2l0aENvbXBvbmVudChjb21wb25lbnQsIGluaXRpYWxpemVyKSB7XG4gICAgICAgIGlmICh0eXBlb2YgY29tcG9uZW50ID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgdGhpcy5lbnRpdHlGYWN0b3J5LndpdGhDb21wb25lbnQodGhpcy5jb21wb25lbnRMb29rdXAuZ2V0KGNvbXBvbmVudCksIGluaXRpYWxpemVyKVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5lbnRpdHlGYWN0b3J5LndpdGhDb21wb25lbnQoY29tcG9uZW50LCBpbml0aWFsaXplcilcbiAgICAgICAgfVxuICAgICAgICBcbiAgICAgICAgcmV0dXJuIHRoaXNcbiAgICB9XG4gICAgXG4gICAgY3JlYXRlKGNvdW50LCBjb25maWd1cmF0aW9uSWQpIHtcbiAgICAgICAgbGV0IGNvbmZpZ3VyYXRpb24gPSB1bmRlZmluZWRcbiAgICAgICAgXG4gICAgICAgIGlmIChOdW1iZXIuaXNJbnRlZ2VyKGNvbmZpZ3VyYXRpb25JZCkgJiYgY29uZmlndXJhdGlvbklkID4gMCkge1xuICAgICAgICAgICAgY29uZmlndXJhdGlvbiA9IHRoaXMuZW50aXR5Q29uZmlndXJhdGlvbnMuZ2V0KGNvbmZpZ3VyYXRpb25JZClcbiAgICAgICAgICAgIFxuICAgICAgICAgICAgaWYgKGNvbmZpZ3VyYXRpb24gPT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgIHRocm93IEVycm9yKCdDb3VsZCBub3QgZmluZCBlbnRpdHkgY29uZmlndXJhdGlvbi4gSWYgeW91IHdpc2ggdG8gY3JlYXRlIGVudGl0aWVzIHdpdGhvdXQgYSBjb25maWd1cmF0aW9uLCBkbyBub3QgcGFzcyBhIGNvbmZpZ3VyYXRpb25JZC4nKVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIFxuICAgICAgICByZXR1cm4gdGhpcy5lbnRpdHlGYWN0b3J5LmNyZWF0ZSh0aGlzLCBjb3VudCwgY29uZmlndXJhdGlvbilcbiAgICB9XG4gICAgXG4gICAgLy8gRXZlbnQgSGFuZGxlclxuICAgIFxuICAgIGxpc3RlbihldmVudCwgY2FsbGJhY2spIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuZXZlbn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0lBSVI7Ozs7Ozs7Ozs7OyJ9 +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2ctZW50aXRpZXMuanMiLCJzb3VyY2VzIjpbIi4uL3NyYy9jb3JlL2VudGl0eS1mYWN0b3J5LmpzIiwiLi4vc3JjL2NvcmUvY29tcG9uZW50LW1hbmFnZXIuanMiLCIuLi9zcmMvY29yZS9zeXN0ZW0tbWFuYWdlci5qcyIsIi4uL3NyYy9jb3JlL2V2ZW50LWhhbmRsZXIuanMiLCIuLi9zcmMvY29yZS9lbnRpdHktbWFuYWdlci5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFbnRpdHlNYW5hZ2VyIH0gZnJvbSAnLi9lbnRpdHktbWFuYWdlcidcclxuXHJcbmNsYXNzIEVudGl0eUZhY3Rvcnkge1xyXG4gICAgY29uc3RydWN0b3IoKSB7XHJcbiAgICAgICAgdGhpcy5pbml0KClcclxuICAgIH1cclxuICAgIFxyXG4gICAgaW5pdCgpIHtcclxuICAgICAgICB0aGlzLmluaXRpYWxpemVycyAgPSBuZXcgTWFwKClcclxuICAgICAgICB0aGlzLmNvbmZpZ3VyYXRpb24gPSBuZXcgTWFwKClcclxuICAgIH1cclxuICAgIFxyXG4gICAgcmVnaXN0ZXJJbml0aWFsaXplcihpZCwgaW5pdGlhbGl6ZXIpIHtcclxuICAgICAgICBpZiAoIU51bWJlci5pc0ludGVnZXIoaWQpIHx8IGlkIDw9IDApIHtcclxuICAgICAgICAgICAgdGhyb3cgVHlwZUVycm9yKCdpZCBtdXN0IGJlIGEgcG9zZXRpdmUgaW50ZWdlci4nKVxyXG4gICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgICBpZiAodHlwZW9mIGluaXRpYWxpemVyICE9PSAnZnVuY3Rpb24nKSB7XHJcbiAgICAgICAgICAgIHRocm93IFR5cGVFcnJvcignaW5pdGlhbGl6ZXIgbXVzdCBiZSBhIGZ1bm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XIpKSB7XHJcbiAgICAgICAgICAgIHJldHVybiBbXVxyXG4gICAgICAgIH1cclxuICAgIFxyXG4gICAgICAgIGlmIChjb25maWd1cmF0aW9uID09IG51bGwpIHtcclxuICAgICAgICAgICAgY29uZmlndXJhdGlvbiA9IHRoaXMuY29uZmlndXJhdGlvblxyXG4gICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgICBjb25zdCBjb21wb25lbnRzID0gQXJyYXkuZnJvbShjb25maWd1cmF0aW9uLmtleXMoKSkucmVkdWNlKChjdXJyLCBuZXh0KSA9PiBjdXJyIHw9IG5leHQsIDApXHJcbiAgICAgICAgXHJcbiAgICAgICAgbGV0IGVudGl0aWVzID0gW11cclxuICAgICAgICBcclxuICAgICAgICBmb3IgKGxldCBpID0gMDsgaSA8IGNvdW50OyArK2kpIHtcclxuICAgICAgICAgICAgbGV0IHsgaWQsIGVudGl0eSB9ID0gZW50aXR5TWFuYWdlci5uZXdFbnRpdHkoY29tcG9uZW50cylcclxuICAgICAgICAgICAgXHJcbiAgICAgICAgICAgIGlmIChpZCA+PSBlbnRpdHlNYW5hZ2VyLmNhcGFjaXR5KSB7XHJcbiAgICAgICAgICAgICAgICBicmVha1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIFxyXG4gICAgICAgICAgICBmb3IgKGxldCBbY29tcG9uZW50LCBpbml0aWFsaXplcl0gb2YgY29uZmlndXJhdGlvbikge1xyXG4gICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBpbml0aWFsaXplciAhPT0gJ2Z1bmN0aW9uJykge1xyXG4gICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlXHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgbGV0IHJlc3VsdCA9IGluaXRpYWxpemVyLmNhbGwoZW50aXR5W2NvbXBvbmVudF0pXHJcbiAgICAgICAgICAgICAgICBcclxuICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgZW50aXR5W2NvbXBvbmVudF0gIT09ICdvYmplY3QnICYmIHJlc3VsdCAhPT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgZW50aXR5W2NvbXBvbmVudF0gPSByZXN1bHRcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBcclxuICAgICAgICAgICAgZW50aXRpZXMucHVzaCh7IGlkLCBlbnRpdHkgfSlcclxuICAgICAgICB9XHJcbiAgICAgICAgXHJcbiAgICAgICAgcmV0dXJuIGVudGl0aWVzLmxlbmd0aCA9PT0gMSA/IGVudGl0aWVzWzBdIDogZW50aXRpZXNcclxuICAgIH1cclxufVxyXG5cclxuZXhwb3J0IHsgRW50aXR5RmFjdG9yeSB9XHJcbiIsIi8qKlxyXG4gKiBUaGlzIGZ1bmN0aW9uIGFkZHMgb25lIHRvIGl0cyBpbnB1dC5cclxuICogQHBhcmFtIHtudW1iZXJ9IGlucHV0IGFueSBudW1iZXJcclxuICogQHJldHVybnMge251bWJlcn0gdGhhdCBudW1iZXIsIHBsdXMgb25lLlxyXG4gKi9cclxuY2xhc3MgQ29tcG9uZW50TWFuYWdlciB7XHJcbiAgICBjb25zdHJ1Y3RvcigpIHtcclxuICAgICAgICB0aGlzLmluaXQoKVxyXG4gICAgfVxyXG4gICAgXHJcbiAgICBpbml0KCkge1xyXG4gICAgICAgIHRoaXMuY29tcG9uZW50cyA9IG5ldyBNYXAoKVxyXG4gICAgfVxyXG4gICAgXHJcbiAgICBuZXdDb21wb25lbnQoY29tcG9uZW50SWQpIHtcclxuICAgICAgICBsZXQgY29tcG9uZW50ID0gdGhpcy5jb21wb25lbnRzLmdldChjb21wb25lbnRJZClcclxuICAgICAgICBcclxuICAgICAgICBpZiAoY29tcG9uZW50ID09PSBudWxsIHx8IGNvbXBvbmVudCA9PT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgICAgIHJldHVybiBudWxsXHJcbiAgICAgICAgfVxyXG4gICAgICAgIFxyXG4gICAgICAgIHN3aXRjaCAodHlwZW9mIGNvbXBvbmVudCkge1xyXG4gICAgICAgICAgICBjYXNlICdmdW5jdGlvbic6XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gbmV3IGNvbXBvbmVudCgpXHJcbiAgICAgICAgICAgIGNhc2UgJ29iamVjdCcgIDoge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuICgoY29tcG9uZW50KSA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgbGV0IHJldCA9IHt9XHJcbiAgICAgICAgICAgICAgICAgICAgXHJcbiAgICAgICAgICAgICAgICAgICAgT2JqZWN0LmtleXMoY29tcG9uZW50KS5mb3JFYWNoKGtleSA9PiByZXRba2V5XSA9IGNvbXBvbmVudFtrZXldKVxyXG4gICAgICAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiByZXRcclxuICAgICAgICAgICAgICAgIH0pKGNvbXBvbmVudClcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBkZWZhdWx0OlxyXG4gICAgICAgICAgICAgICAgcmV0dXJuIGNvbXBvbmVudFxyXG4gICAgICAgIH1cclxuICAgIH1cclxuICAgIFxyXG4gICAgcmVnaXN0ZXJDb21wb25lbnQoY29tcG9uZW50KSB7XHJcbiAgICAgICAgaWYgKGNvbXBvbmVudCA9PT0gbnVsbCB8fCBjb21wb25lbnQgPT09IHVuZGVmaW5lZCkge1xyXG4gICAgICAgICAgICB0aHJvdyBUeXBlRXJyb3IoJ2NvbXBvbmVudCBjYW5ub3QgYmUgbnVsbCBvciB1bmRlZmluZWQuJylcclxuICAgICAgICB9XHJcbiAgICAgICAgXHJcbiAgICAgICAgY29uc3QgbWF4ID0gTWF0aC5tYXgoLi4udGhpcy5jb21wb25lbnRzLmtleXMoKSlcclxuICAgICAgICBcclxuICAgICAgICBjb25zdCBpZCA9IG1heCA9PT0gdW5kZWZpbmVkIHx8IG1heCA9PT0gbnVsbCB8fCBtYXggPT09IC1JbmZpbml0eS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sbGJhY2suY2FsbChjb250ZXh0LCAuLi5hcmdzKSA6IGNhbGxiYWNrLmFwcGx5KGNvbnRleHQsIC4uLmFyZ3MpKVxyXG4gICAgfSlcclxufVxyXG4gICAgXHJcbmNsYXNzIEV2ZW50SGFuZGxlciB7XHJcbiAgICBjb25zdHJ1Y3RvcigpIHtcclxuICAgICAgICB0aGlzLmluaXQoKVxyXG4gICAgfVxyXG4gICAgXHJcbiAgICBpbml0KCkge1xyXG4gICAgICAgIHRoaXMuZXZlbnRzID0gbmV3IE1hcCgpXHJcbiAgICB9XHJcbiAgICBcclxuICAgIGxpc3RlbihldmVudCwgY2FsbGJhY2spIHtcclxuICAgICAgICBpZiAodHlwZW9mIGV2ZW50ICE9PSAnc3RyaW5nJyB8fCB0eXBlb2YgY2FsbGJhY2sgIT09ICdmdW5jdGlvbicpIHtcclxuICAgICAgICAgICAgcmV0dXJuXHJcbiAgICAgICAgfVxyXG4gICAgICAgIFxyXG4gICAgICAgIGlmICghdGhpcy5ldmVudHMuaGFzKGV2ZW50KSkge1xyXG4gICAgICAgICAgICB0aGlzLmV2ZW50cy5zZXQoZXZlbnQsIG5ldyBNYXAoKSlcclxuICAgICAgICB9XHJcbiAgICAgICAgXHJcbiAgICAgICAgbGV0IGV2ZW50SWQgPSAtMVxyXG4gICAgICAgIFxyXG4gICAgICAgIHRoaXMuZXZlbnRzLmZvckVhY2goZXZlbnQgPT4ge1xyXG4gICAgICAgICAgICBldmVudElkID0gTWF0aC5tYXgoZXZlbnRJZCwgLi4uZXZlbnQua2V5cygpKVxyXG4gICAgICAgIH0pXHJcbiAgICAgICAgXHJcbiAgICAgICAgKytldmVudElkXHJcbiAgICAgICAgXHJcbiAgICAgICAgdGhpcy5ldmVudHMuZ2V0KGV2ZW50KS5zZXQoZXZlbnRJZCwgY2FsbGJhY2spXHJcbiAgICAgICAgXHJcbiAgICAgICAgcmV0dXJuIGV2ZW50SWRcclxuICAgIH1cclxuICAgIFxyXG4gICAgc3RvcExpc3RlbihldmVudElkKSB7XHJcbiAgICAgICAgZm9yIChsZXQgZXZlbnRzIG9mIHRoaXMuZXZlbnRzLnZhbHVlcygpKSB7XHJcbiAgICAgICAgICAgIGZvciAobGV0IGlkIG9mIGV2ZW50cy5rZXlzKCkpIHtcclxuICAgICAgICAgICAgICAgIGlmIChpZCA9PT0gZXZlbnRJZCkge1xyXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBldmVudHMuZGVsZXRlKGV2ZW50SWQpXHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiBmYWxzZVxyXG4gICAgfVxyXG4gICAgXHJcbiAgICB0cmlnZ2VyKCkge1xyXG4gICAgICAgIGxldCBzZWxmID0gdGhpcyBpbnN0YW5jZW9mIEVudGl0eU1hbmFnZXIgPyB0aGlzLmV2ZW50SGFuZGxlciA6IHRoaXNcclxuICAgICAgICBcclxuICAgICAgICBsZXQgYXJncyA9IEFycmF5LmZyb20oYXJndW1lbnRzKVxyXG4gICAgICAgIFxyXG4gICAgICAgIGxldCBbIGV2ZW50IF0gPSBhcmdzLnNwbGljZSgwLCAxKVxyXG4gICAgICAgIFxyXG4gICAgICAgIGlmICh0eXBlb2YgZXZlbnQgIT09ICdzdHJpbmcnIHx8ICFzZWxmLmV2ZW50cy5oYXMoZXZlbnQpKSB7XHJcbiAgICAgICAgICAgIHJldHVybiBlbXB0eVByb21pc2UoKVxyXG4gICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgICBsZXQgcHJvbWlzZXMgPSBbXVxyXG4gICAgICAgIFxyXG4gICAgICAgIGZvciAobGV0IGNhbGxiYWNrIG9mIHNlbGYuZXZlbnRzLmdldChldmVudCkudmFsdWVzKCkpIHtcclxuICAgICAgICAgICAgcHJvbWlzZXMucHVzaChwcm9taXNlKGNhbGxiYWNrLCB0aGlzLCBhcmdzKSlcclxuICAgICAgICB9XHJcbiAgICAgICAgXHJcbiAgICAgICAgcmV0dXJuIFByb21pc2UuYWxsKHByb21pc2VzKVxyXG4gICAgfVxyXG4gICAgXHJcbiAgICB0cmlnZ2VyRGVsYXllZCgpIHtcclxuICAgICAgICBsZXQgc2VsZiA9IHRoaXMgaW5zdGFuY2VvZiBFbnRpdHlNYW5hZ2VyID8gdGhpcy5ldmVudEhhbmRsZXIgOiB0aGlzXHJcbiAgICAgICAgXHJcbiAgICAgICAgbGV0IGFyZ3MgPSBBcnJheS5mcm9tKGFyZ3VtZW50cylcclxuICAgICAgICBcclxuICAgICAgICBsZXQgWyBldmVudCwgdGltZW91dCBdID0gYXJncy5zcGxpY2UoMCwgMilcclxuICAgICAgICBcclxuICAgICAgICBpZiAodHlwZW9mIGV2ZW50ICE9PSAnc3RyaW5nJyB8fCAhTnVtYmVyLmlzSW50ZWdlcih0aW1lb3V0KSB8fCAhc2VsZi5ldmVudHMuaGFzKGV2ZW50KSkge1xyXG4gICAgICAgICAgICByZXR1cm4gZW1wdHlQcm9taXNlKClcclxuICAgICAgICB9XHJcbiAgICAgICAgXHJcbiAgICAgICAgbGV0IHByb21pc2VzID0gW11cclxuICAgICAgICBcclxuICAgICAgICBmb3IgKGxldCBjYWxsYmFjayBvZiBzZWxmLmV2ZW50cy5nZXQoZXZlbnQpLnZhbHVlcygpKSB7XHJcbiAgICAgICAgICAgIHByb21pc2VzLnB1c2gocHJvbWlzZShjYWxsYmFjaywgdGhpcywgYXJncywgdGltZW91dCkpXHJcbiAgICAgICAgfVxyXG4gICAgICAgIFxyXG4gICAgICAgIHJldHVybiBQcm9taXNlLmFsbChwcm9taXNlcylcclxuICAgIH1cclxufVxyXG5cclxuZXhwb3J0IHsgRXZlbnRIYW5kbGVyIH1cclxuIiwiaW1wb3J0IHsgRW50aXR5RmFjdG9yeSB9ICAgICAgICAgICAgIGZyb20gJy4vZW50aXR5LWZhY3RvcnknXHJcbmltcG9ydCB7IENvbXBvbmVudE1hbmFnZXIgfSAgICAgICAgICBmcm9tICcuL2NvbXBv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ICBcclxuICAgIGluY3JlYXNlQ2FwYWNpdHkoKSB7XHJcbiAgICAgICAgbGV0IG9sZENhcGFjaXR5ID0gdGhpcy5jYXBhY2l0eVxyXG4gICAgICAgIFxyXG4gICAgICAgIHRoaXMuY2FwYWNpdHkgKj0gMlxyXG4gICAgICAgIFxyXG4gICAgICAgIHRoaXMuZW50aXRpZXMgPSBbLi4udGhpcy5lbnRpdGllcywgLi4uQXJyYXkuZnJvbSh7IGxlbmd0aCA6IG9sZENhcGFjaXR5IH0sICgpID0+ICh7IGNvbXBvbmVudHM6IDAgfSkpXVxyXG5cclxuICAgICAgICBmb3IgKGxldCBpID0gb2xkQ2FwYWNpdHk7IGkgPCB0aGlzLmNhcGFjaXR5OyArK2kpIHtcclxuICAgICAgICAgICAgbGV0IGVudGl0eSA9IHRoaXMuZW50aXRpZXNbaV1cclxuICAgICAgICAgICAgXHJcbiAgICAgICAgICAgIGZvciAoY29uc3QgY29tcG9uZW50SWQgb2YgdGhpcy5jb21wb25lbnRNYW5hZ2VyLmdldENvbXBvbmVudHMoKS5rZXlzKCkpIHtcclxuICAgICAgICAgICAgICAgIGxldCBjb21wb25lbnROYW1lID0gbnVsbFxyXG4gICAgICAgICAgICAgICAgXHJcbiAgICAgICAgICAgICAgICBmb3IgKGxldCBba2V5LCB2YWx1ZV0gb2YgdGhpcy5jb21wb25lbnRMb29rdXAuZW50cmllcygpKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKHZhbHVlID09PSBjb21wb25lbnRJZCkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBjb21wb25lbnROYW1lID0ga2V5XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBicmVha1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICBlbnRpdHlbY29tcG9uZW50SWRdID0gdGhpcy5jb21wb25lbnRNYW5hZ2VyLm5ld0NvbXBvbmVudChjb21wb25lbnRJZClcclxuICAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGVudGl0eSwgY29tcG9uZW50TmFtZSwgeyBnZXQoKSB7IHJldHVybiB0aGlzW2NvbXBvbmVudElkXSB9LCBjb25maWd1cmFibGU6IHRydWUgfSlcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgIH1cclxuICAgIFxyXG4gICAgbmV3RW50aXR5KGNvbXBvbmVudHMpIHtcclxuICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShjb21wb25lbnRzKSkge1xyXG4gICAgICAgICAgICBjb21wb25lbnRzID0gQXJyYXkuZnJvbSh0aGlzLmNvbXBvbmVudExvb2t1cCkucmVkdWNlKChjdXJyLCBuZXh0KSA9PiBbJycsIGN1cnJbMV0gfCBuZXh0WzFdXSwgWycnLCAwXSlbMV1cclxuICAgICAgICB9XHJcbiAgICAgICAgXHJcbiAgICAgICAgaWYgKCFOdW1iZXIuaXNJbnRlZ2VyKGNvbXBvbmVudHMpIHx8IGNvbXBvbmVudHMgPD0gMCkge1xyXG4gICAgICAgICAgICByZXR1cm4geyBpZCA6IHRoaXMuY2FwYWNpdHksIGVudGl0eSA6IG51bGwgfVxyXG4gICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgICBsZXQgaWQgPSAwXHJcbiAgICAgICAgXHJcbiAgICAgICAgZm9yICg7IGlkIDwgdGhpcy5jYXBhY2l0eTsgKytpZCkge1xyXG4gICAgICAgICAgICBpZiAodGhpcy5lbnRpdGllc1tpZF0uY29tcG9uZW50cyA9PT0gMCkge1xyXG4gICAgICAgICAgICAgICAgYnJlYWtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgICBpZiAoaWQgPj0gdGhpcy5jYXBhY2l0eSkge1xyXG4gICAgICAgICAgICAvLyB0b2RvOiBhdXRvIGluY3JlYXNlIGNhcGFjaXR5P1xyXG4gICAgICAgICAgICByZXR1cm4geyBpZCA6IHRoaXMuY2FwYWNpdHksIGVudGl0eSA6IG51bGwgfVxyXG4gICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgICBpZiAoaWQgPiB0aGlzLmN1cnJlbnRNYXhFbnRpdHkpIHtcclxuICAgICAgICAgICAgdGhpcy5jdXJyZW50TWF4RW50aXR5ID0gaWRcclxuICAgICAgICB9XHJcbiAgICAgICAgXHJcbiAgICAgICAgdGhpcy5lbnRpdGllc1tpZF0uY29tcG9uZW50cyA9IGNvbXBvbmVudHNcclxuICAgICAgICBcclxuICAgICAgICByZXR1cm4geyBpZCwgZW50aXR5IDogdGhpcy5lbnRpdGllc1tpZF0gfVxyXG4gICAgfVxyXG4gICAgXHJcbiAgICBkZWxldGVFbnRpdHkoaWQpIHtcclxuICAgICAgICAvL3RvZG8gYWRkIHNhbml0eSBjaGVja1xyXG4gICAgICAgIHRoaXMuZW50aXRpZXNbaWRdLmNvbXBvbmVudHMgPSAwXHJcbiAgICAgICAgXHJcbiAgICAgICAgaWYgKGlkIDwgdGhpcy5jdXJyZW50TWF4RW50aXR5KSB7XHJcbiAgICAgICAgICAgIHJldHVyblxyXG4gICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgICBmb3IgKGxldCBpID0gaWQ7IGkgPj0gMDsgLS1pKSB7XHJcbiAgICAgICAgICAgIGlmICh0aGlzLmVudGl0aWVzW2ldLmNvbXBvbmVudHMgIT09IDApIHtcclxuICAgICAgICAgICAgICAgIHRoaXMuY3VycmVudE1heEVudGl0eSA9IGlcclxuICAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICAgICAgcmV0dXJuXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHRoaXMuY3VycmVudE1heEVudGl0eSA9IDBcclxuICAgIH1cclxuXHJcbiAgICAvLyBEb2VzIG5vdCBhbGxvdyBjb21wb25lbnRzIHRvIGJlIGFueX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bXBvbmVudCkge1xyXG4gICAgICAgIGlmICh0eXBlb2YgbmFtZSAhPT0gJ3N0cmluZycgfHwgbmFtZS5sZW5ndGggPT09IDApIHtcclxuICAgICAgICAgICAgdGhyb3cgVHlwZUVycm9yKCduYW1lIG11c3QgYmUgYSBub24tZW1wdHkgc3RyaW5nLicpXHJcbiAgICAgICAgfVxyXG4gICAgICAgIFxyXG4gICAgICAgIGlmICh0aGlzLmNvbXBvbmVudExvb2t1cC5nZXQobmFtZSkgIT0gbnVsbCkge1xyXG4gICAgICAgICAgICByZXR1cm5cclxuICAgICAgICB9XHJcbiAgICAgICAgXHJcbiAgICAgICAgY29uc3QgY29tcG9uZW50SWQgPSB0aGlzLmNvbXBvbmVudE1hbmFnZXIucmVnaXN0ZXJDb21wb25lbnQoY29tcG9uZW50KVxyXG4gICAgICAgIFxyXG4gICAgICAgIHRoaXMuY29tcG9uZW50TG9va3VwLnNldChuYW1lLCBjb21wb25lbnRJZClcclxuICAgICAgICBcclxuICAgICAgICBmb3IgKGxldCBlbnRpdHkgb2YgdGhpcy5lbnRpdGllcykge1xyXG4gICAgICAgICAgICBlbnRpdHlbY29tcG9uZW50SWRdID0gdGhpcy5jb21wb25lbnRNYW5hZ2VyLm5ld0NvbXBvbmVudChjb21wb25lbnRJZClcclxuICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGVudGl0eSwgbmFtZSwgeyBnZXQoKSB7IHJldHVybiB0aGlzW2NvbXBvbmVudElkXSB9LCBjb25maWd1cmFibGU6IHRydWUgfSlcclxuICAgICAgICB9XHJcbiAgICAgICAgXHJcbiAgICAgICAgbGV0IGluaXRpYWxpemVyXHJcblxyXG4gICAgICAgIHN3aXRjaCAodHlwZW9mIGNvbXBvbmVudCkge1xyXG4gICAgICAgICAgICBjYXNlICdmdW5jdGlvbic6IGluaXRpYWxpemVyID0gY29tcG9uZW50OyBicmVha1xyXG4gICAgICAgICAgICBjYXNlICdvYmplY3QnOiB7XHJcbiAgICAgICAgICAgICAgICBpbml0aWFsaXplciA9IGZ1bmN0aW9uKCkge1xyXG4gICAgICAgICAgICAgICAgICAgIGZvciAobGV0IGtleSBvZiBPYmplY3Qua2V5cyhjb21wb25lbnQpKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXNba2V5XSA9IGNvbXBvbmVudFtrZXldXHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBcclxuICAgICAgICAgICAgICAgIGJyZWFrXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgZGVmYXVsdDogaW5pdGlhbGl6ZXIgPSBmdW5jdGlvbigpIHsgcmV0dXJuIGNvbXBvbmVudCB9OyBicmVha1xyXG4gICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgICB0aGlzLmVudGl0eUZhY3RvcnkucmVnaXN0ZXJJbml0aWFsaXplcihjb21wb25lbnRJZCwgaW5pdGlhbGl6ZXIpXHJcbiAgICAgICAgXHJcbiAgICAgICAgcmV0dXJuIGNvbXBvbmVudElkXHJcbiAgICB9XHJcbiAgICBcclxuICAgIGFkZENvbXBvbmVudChlbnRpdHlJZCwgY29tcG9uZW50KSB7XHJcbiAgICAgICAgaWYgKHR5cGVvZiBjb21wb25lbnQgPT09ICdzdHJpbmcnKSB7XHJcbiAgICAgICAgICAgIHRoaXMuZW50aXRpZXNbZW50aXR5SWRdLmNvbXBvbmVudHMgfD0gdGhpcy5jb21wb25lbnRMb29rdXAuZ2V0KGNvbXBvbmVudClcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICB0aGlzLmVudGl0aWVzW2VudGl0eUlkXS5jb21wb25lbnRzIHw9IGNvbXBvbmVudFxyXG4gICAgICAgIH1cclxuICAgIH1cclxuICAgIFxyXG4gICAgcmVtb3ZlQ29tcG9uZW50KGVudGl0eUlkLCBjb21wb25lbnQpIHtcclxuICAgICAgICBpZiAodHlwZW9mIGNvbXBvbmVudCA9P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eXN0ZW0uY2FsbGJhY2suY2FsbCh0aGlzLCB0aGlzLmdldEVudGl0aWVzKHN5c3RlbS5jb21wb25lbnRzKSwgb3B0cylcclxuICAgICAgICB9XHJcbiAgICB9XHJcbiAgICBcclxuICAgIC8vIEVudGl0eSBGYWN0b3J5XHJcbiAgICBcclxuICAgIHJlZ2lzdGVySW5pdGlhbGl6ZXIoY29tcG9uZW50LCBpbml0aWFsaXplcikge1xyXG4gICAgICAgIGlmICh0eXBlb2YgY29tcG9uZW50ID09PSAnc3RyaW5nJykge1xyXG4gICAgICAgICAgICB0aGlzLmVudGl0eUZhY3RvcnkucmVnaXN0ZXJJbml0aWFsaXplcih0aGlzLmNvbXBvbmVudExvb2t1cC5nZXQoY29tcG9uZW50KSwgaW5pdGlhbGl6ZXIpXHJcbiAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgdGhpcy5lbnRpdHlGYWN0b3J5LnJlZ2lzdGVySW5pdGlhbGl6ZXIoY29tcG9uZW50LCBpbml0aWFsaXplcilcclxuICAgICAgICB9XHJcbiAgICB9XHJcbiAgICBcclxuICAgIGJ1aWxkKCkge1xyXG4gICAgICAgIHRoaXMuZW50aXR5RmFjdG9yeS5idWlsZCgpXHJcbiAgICAgICAgXHJcbiAgICAgICAgcmV0dXJuIHRoaXNcclxuICAgIH1cclxuICAgIFxyXG4gICAgd2l0aENvbXBvbmVudChjb21wb25lbnQsIGluaXRpYWxpemVyKSB7XHJcbiAgICAgICAgaWYgKHR5cGVvZiBjb21wb25lbnQgPT09ICdzdHJpbmcnKSB7XHJcbiAgICAgICAgICAgIHRoaXMuZW50aXR5RmFjdG9yeS53aXRoQ29tcG9uZW50KHRoaXMuY29tcG9uZW50TG9va3VwLmdldChjb21wb25lbnQpLCBpbml0aWFsaXplcilcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICB0aGlzLmVudGl0eUZhY3Rvcnkud2l0aENvbXBvbmVudChjb21wb25lbnQsIGluaXRpYWxpemVyKVxyXG4gICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgICByZXR1cm4gdGhpc1xyXG4gICAgfVxyXG4gICAgXHJcbiAgICBjcmVhdGUoY291bnQsIGNvbmZpZ3VyYXRpb25JZCkge1xyXG4gICAgICAgIGxldCBjb25maWd1cmF0aW9uID0gdW5kZWZpbmVkXHJcbiAgICAgICAgXHJcbiAgICAgICAgaWYgKE51bWJlci5pc0ludGVnZXIoY29uZmlndXJhdGlvbklkKSAmJiBjb25maWd1cmF0aW9uSWQgPiAwKSB7XHJcbiAgICAgICAgICAgIGNvbmZpZ3VyYXRpb24gPSB0aGlzLmVudGl0eUNvbmZpZ3VyYXRpb25zLmdldChjb25maWd1cmF0aW9uSWQpXHJcbiAgICAgICAgICAgIFxyXG4gICAgICAgICAgICBpZiAoY29uZmlndXJhdGlvbiA9PT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgICAgICAgICB0aHJvdyBFcnJvcignQ291bGQgbm90IGZpbmQgZW50aXR5IGNvbmZpZ3VyYXRpb24uIElmIHlvdSB3aXNoIHRvIGNyZWF0ZSBlbnRpdGllcyB3aXRob3V0IGEgY29uZmlndXJhdGlvbiwgZG8gbm90IHBhc3MgYSBjb25maWd1cmF0aW9uSWQuJylcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgICByZXR1cm4gdGhpcy5lbnRpdHlGYWN0b3J5LmNyZWF0ZSh0aGlzLCBjb3VudCwgY29uZmlndXJhdGlvbilcclxuICAgIH1cclxuICAgIFxyXG4gICAgLy8gRXZlbnQgSGFuZGxlclxyXG4gICAgXHJcbiAgICBsaXN0ZW4oZXZlbnQsIGNhbGxiYWNrKSB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMuZXZlbnRIYW5kbGVyLmxpc3RlbihldmVudCwgY2FsbGJhY2spXHJcbiAgICB9XHJcbiAgICBcclxuICAgIHN0b3BMaXN0ZW4oZXZlbnRJZCkge1xyXG4gICAgICAgI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ist/gg-entities.min.js index 31340a5..d395367 100644 --- a/dist/gg-entities.min.js +++ b/dist/gg-entities.min.js @@ -1,4 +1,4 @@ -!function t(n,r,e){function i(u,c){if(!r[u]){if(!n[u]){var a="function"==typeof require&&require;if(!c&&a)return a(u,!0);if(o)return o(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var s=r[u]={exports:{}};n[u][0].call(s.exports,function(t){var r=n[u][1][t];return i(r?r:t)},s,s.exports,t,n,r,e)}return r[u].exports}for(var o="function"==typeof require&&require,u=0;u2?arguments[2]:void 0,s=Math.min((void 0===f?u:i(f,u))-a,u-c),l=1;for(a0;)a in r?r[c]=r[a]:delete r[c],c+=l,a+=l;return r}},{105:105,108:108,109:109}],9:[function(t,n,r){"use strict";var e=t(109),i=t(105),o=t(108);n.exports=function(t){for(var n=e(this),r=o(n.length),u=arguments.length,c=i(u>1?arguments[1]:void 0,r),a=u>2?arguments[2]:void 0,f=void 0===a?r:i(a,r);f>c;)n[c++]=t;return n}},{105:105,108:108,109:109}],10:[function(t,n,r){var e=t(37);n.exports=function(t,n){var r=[];return e(t,!1,r.push,r,n),r}},{37:37}],11:[function(t,n,r){var e=t(107),i=t(108),o=t(105);n.exports=function(t){return function(n,r,u){var c,a=e(n),f=i(a.length),s=o(u,f);if(t&&r!=r){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}}},{105:105,107:107,108:108}],12:[function(t,n,r){var e=t(25),i=t(45),o=t(109),u=t(108),c=t(15);n.exports=function(t,n){var r=1==t,a=2==t,f=3==t,s=4==t,l=6==t,h=5==t||l,v=n||c;return function(n,c,p){for(var y,g,d=o(n),m=i(d),b=e(c,p,3),w=u(m.length),S=0,x=r?v(n,w):a?v(n,0):void 0;w>S;S++)if((h||S in m)&&(y=m[S],g=b(y,S,d),t))if(r)x[S]=g;else if(g)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:x.push(y)}else if(s)return!1;return l?-1:f||s?s:x}}},{108:108,109:109,15:15,25:25,45:45}],13:[function(t,n,r){var e=t(3),i=t(109),o=t(45),u=t(108);n.exports=function(t,n,r,c,a){e(n);var f=i(t),s=o(f),l=u(f.length),h=a?l-1:0,v=a?-1:1;if(r<2)for(;;){if(h in s){c=s[h],h+=v;break}if(h+=v,a?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;a?h>=0:l>h;h+=v)h in s&&(c=n(c,s[h],h,f));return c}},{108:108,109:109,3:3,45:45}],14:[function(t,n,r){var e=t(49),i=t(47),o=t(117)("species");n.exports=function(t){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)||(n=void 0),e(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},{117:117,47:47,49:49}],15:[function(t,n,r){var e=t(14);n.exports=function(t,n){return new(e(t))(n)}},{14:14}],16:[function(t,n,r){"use strict";var e=t(3),i=t(49),o=t(44),u=[].slice,c={},a=function(t,n,r){if(!(n in c)){for(var e=[],i=0;i1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(this,t)}}),v&&e(l.prototype,"size",{get:function(){return a(this[y])}}),l},def:function(t,n,r){var e,i,o=g(t,n);return o?o.v=r:(t._l=o={i:i=p(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[y]++,"F"!==i&&(t._i[i]=o)),t},getEntry:g,setStrong:function(t,n,r){s(t,n,function(t,n){this._t=t,this._k=n,this._l=void 0},function(){for(var t=this,n=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==n?l(0,r.k):"values"==n?l(0,r.v):l(0,[r.k,r.v]):(t._t=void 0,l(1))},r?"entries":"values",!r,!0),h(n)}}},{25:25,27:27,28:28,37:37,53:53,55:55,6:6,62:62,66:66,67:67,86:86,91:91}],20:[function(t,n,r){var e=t(17),i=t(10);n.exports=function(t){return function(){if(e(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},{10:10,17:17}],21:[function(t,n,r){"use strict";var e=t(86),i=t(62).getWeak,o=t(7),u=t(49),c=t(6),a=t(37),f=t(12),s=t(39),l=f(5),h=f(6),v=0,p=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},g=function(t,n){return l(t.a,function(t){return t[0]===n})};y.prototype={get:function(t){var n=g(this,t);if(n)return n[1]},has:function(t){return!!g(this,t)},set:function(t,n){var r=g(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=h(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},n.exports={getConstructor:function(t,n,r,o){var f=t(function(t,e){c(t,f,n,"_i"),t._i=v++,t._l=void 0,void 0!=e&&a(e,r,t[o],t)});return e(f.prototype,{delete:function(t){if(!u(t))return!1;var n=i(t);return n===!0?p(this).delete(t):n&&s(n,this._i)&&delete n[this._i]},has:function(t){if(!u(t))return!1;var n=i(t);return n===!0?p(this).has(t):n&&s(n,this._i)}}),f},def:function(t,n,r){var e=i(o(n),!0);return e===!0?p(t).set(n,r):e[t._i]=r,t},ufstore:p}},{12:12,37:37,39:39,49:49,6:6,62:62,7:7,86:86}],22:[function(t,n,r){"use strict";var e=t(38),i=t(32),o=t(87),u=t(86),c=t(62),a=t(37),f=t(6),s=t(49),l=t(34),h=t(54),v=t(92),p=t(43);n.exports=function(t,n,r,y,g,d){var m=e[t],b=m,w=g?"set":"add",S=b&&b.prototype,x={},_=function(t){var n=S[t];o(S,t,"delete"==t?function(t){return!(d&&!s(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(d&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return d&&!s(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof b&&(d||S.forEach&&!l(function(){(new b).entries().next()}))){var E=new b,O=E[w](d?{}:-0,1)!=E,M=l(function(){E.has(1)}),k=h(function(t){new b(t)}),F=!d&&l(function(){for(var t=new b,n=5;n--;)t[w](n,n);return!t.has(-0)});k||(b=n(function(n,r){f(n,b,t);var e=p(new m,n,b);return void 0!=r&&a(r,g,e[w],e),e}),b.prototype=S,S.constructor=b),(M||F)&&(_("delete"),_("has"),g&&_("get")),(F||O)&&_(w),d&&S.clear&&delete S.clear}else b=y.getConstructor(n,t,g,w),u(b.prototype,r),c.NEED=!0;return v(b,t),x[t]=b,i(i.G+i.W+i.F*(b!=m),x),d||y.setStrong(b,t,g),b}},{32:32,34:34,37:37,38:38,43:43,49:49,54:54,6:6,62:62,86:86,87:87,92:92}],23:[function(t,n,r){var e=n.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},{}],24:[function(t,n,r){"use strict";var e=t(67),i=t(85);n.exports=function(t,n,r){n in t?e.f(t,n,i(0,r)):t[n]=r}},{67:67,85:85}],25:[function(t,n,r){var e=t(3);n.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},{3:3}],26:[function(t,n,r){"use strict";var e=t(7),i=t(110);n.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(e(this),"number"!=t)}},{110:110,7:7}],27:[function(t,n,r){n.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],28:[function(t,n,r){n.exports=!t(34)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{34:34}],29:[function(t,n,r){var e=t(49),i=t(38).document,o=e(i)&&e(i.createElement);n.exports=function(t){return o?i.createElement(t):{}}},{38:38,49:49}],30:[function(t,n,r){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],31:[function(t,n,r){var e=t(76),i=t(73),o=t(77);n.exports=function(t){var n=e(t),r=i.f;if(r)for(var u,c=r(t),a=o.f,f=0;c.length>f;)a.call(t,u=c[f++])&&n.push(u);return n}},{73:73,76:76,77:77}],32:[function(t,n,r){var e=t(38),i=t(23),o=t(40),u=t(87),c=t(25),a=function(t,n,r){var f,s,l,h,v=t&a.F,p=t&a.G,y=t&a.S,g=t&a.P,d=t&a.B,m=p?e:y?e[n]||(e[n]={}):(e[n]||{}).prototype,b=p?i:i[n]||(i[n]={}),w=b.prototype||(b.prototype={});p&&(r=n);for(f in r)s=!v&&m&&void 0!==m[f],l=(s?m:r)[f],h=d&&s?c(l,e):g&&"function"==typeof l?c(Function.call,l):l,m&&u(m,f,l,t&a.U),b[f]!=l&&o(b,f,h),g&&w[f]!=l&&(w[f]=l)};e.core=i,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,n.exports=a},{23:23,25:25,38:38,40:40,87:87}],33:[function(t,n,r){var e=t(117)("match");n.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}},{117:117}],34:[function(t,n,r){n.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],35:[function(t,n,r){"use strict";var e=t(40),i=t(87),o=t(34),u=t(27),c=t(117);n.exports=function(t,n,r){var a=c(t),f=r(u,a,""[t]),s=f[0],l=f[1];o(function(){var n={};return n[a]=function(){return 7},7!=""[t](n)})&&(i(String.prototype,t,s),e(RegExp.prototype,a,2==n?function(t,n){return l.call(t,this,n)}:function(t){return l.call(t,this)}))}},{117:117,27:27,34:34,40:40,87:87}],36:[function(t,n,r){"use strict";var e=t(7);n.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},{7:7}],37:[function(t,n,r){var e=t(25),i=t(51),o=t(46),u=t(7),c=t(108),a=t(118),f={},s={},r=n.exports=function(t,n,r,l,h){var v,p,y,g,d=h?function(){return t}:a(t),m=e(r,l,n?2:1),b=0;if("function"!=typeof d)throw TypeError(t+" is not iterable!");if(o(d)){for(v=c(t.length);v>b;b++)if((g=n?m(u(p=t[b])[0],p[1]):m(t[b]))===f||g===s)return g}else for(y=d.call(t);!(p=y.next()).done;)if((g=i(y,m,p.value,n))===f||g===s)return g};r.BREAK=f,r.RETURN=s},{108:108,118:118,25:25,46:46,51:51,7:7}],38:[function(t,n,r){var e=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},{}],39:[function(t,n,r){var e={}.hasOwnProperty;n.exports=function(t,n){return e.call(t,n)}},{}],40:[function(t,n,r){var e=t(67),i=t(85);n.exports=t(28)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},{28:28,67:67,85:85}],41:[function(t,n,r){n.exports=t(38).document&&document.documentElement},{38:38}],42:[function(t,n,r){n.exports=!t(28)&&!t(34)(function(){return 7!=Object.defineProperty(t(29)("div"),"a",{get:function(){return 7}}).a})},{28:28,29:29,34:34}],43:[function(t,n,r){var e=t(49),i=t(90).set;n.exports=function(t,n,r){var o,u=n.constructor;return u!==r&&"function"==typeof u&&(o=u.prototype)!==r.prototype&&e(o)&&i&&i(t,o),t}},{49:49,90:90}],44:[function(t,n,r){n.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},{}],45:[function(t,n,r){var e=t(18);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},{18:18}],46:[function(t,n,r){var e=t(56),i=t(117)("iterator"),o=Array.prototype;n.exports=function(t){return void 0!==t&&(e.Array===t||o[i]===t)}},{117:117,56:56}],47:[function(t,n,r){var e=t(18);n.exports=Array.isArray||function(t){return"Array"==e(t)}},{18:18}],48:[function(t,n,r){var e=t(49),i=Math.floor;n.exports=function(t){return!e(t)&&isFinite(t)&&i(t)===t}},{49:49}],49:[function(t,n,r){n.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],50:[function(t,n,r){var e=t(49),i=t(18),o=t(117)("match");n.exports=function(t){var n;return e(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},{117:117,18:18,49:49}],51:[function(t,n,r){var e=t(7);n.exports=function(t,n,r,i){try{return i?n(e(r)[0],r[1]):n(r)}catch(n){var o=t.return;throw void 0!==o&&e(o.call(t)),n}}},{7:7}],52:[function(t,n,r){"use strict";var e=t(66),i=t(85),o=t(92),u={};t(40)(u,t(117)("iterator"),function(){return this}),n.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+" Iterator")}},{117:117,40:40,66:66,85:85,92:92}],53:[function(t,n,r){"use strict";var e=t(58),i=t(32),o=t(87),u=t(40),c=t(39),a=t(56),f=t(52),s=t(92),l=t(74),h=t(117)("iterator"),v=!([].keys&&"next"in[].keys()),p=function(){return this};n.exports=function(t,n,r,y,g,d,m){f(r,n,y);var b,w,S,x=function(t){if(!v&&t in M)return M[t];switch(t){case"keys":return function(){return new r(this,t)};case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},_=n+" Iterator",E="values"==g,O=!1,M=t.prototype,k=M[h]||M["@@iterator"]||g&&M[g],F=k||x(g),P=g?E?x("entries"):F:void 0,A="Array"==n?M.entries||k:k;if(A&&(S=l(A.call(new t)))!==Object.prototype&&(s(S,_,!0),e||c(S,h)||u(S,h,p)),E&&k&&"values"!==k.name&&(O=!0,F=function(){return k.call(this)}),e&&!m||!v&&!O&&M[h]||u(M,h,F),a[n]=F,a[_]=p,g)if(b={values:E?F:x("values"),keys:d?F:x("keys"),entries:P},m)for(w in b)w in M||o(M,w,b[w]);else i(i.P+i.F*(v||O),n,b);return b}},{117:117,32:32,39:39,40:40,52:52,56:56,58:58,74:74,87:87,92:92}],54:[function(t,n,r){var e=t(117)("iterator"),i=!1;try{var o=[7][e]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}n.exports=function(t,n){if(!n&&!i)return!1;var r=!1;try{var o=[7],u=o[e]();u.next=function(){return{done:r=!0}},o[e]=function(){return u},t(o)}catch(t){}return r}},{117:117}],55:[function(t,n,r){n.exports=function(t,n){return{value:n,done:!!t}}},{}],56:[function(t,n,r){n.exports={}},{}],57:[function(t,n,r){var e=t(76),i=t(107);n.exports=function(t,n){for(var r,o=i(t),u=e(o),c=u.length,a=0;c>a;)if(o[r=u[a++]]===n)return r}},{107:107,76:76}],58:[function(t,n,r){n.exports=!1},{}],59:[function(t,n,r){var e=Math.expm1;n.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||e(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},{}],60:[function(t,n,r){n.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},{}],61:[function(t,n,r){n.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},{}],62:[function(t,n,r){var e=t(114)("meta"),i=t(49),o=t(39),u=t(67).f,c=0,a=Object.isExtensible||function(){return!0},f=!t(34)(function(){return a(Object.preventExtensions({}))}),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,e)){if(!a(t))return"F";if(!n)return"E";s(t)}return t[e].i},h=function(t,n){if(!o(t,e)){if(!a(t))return!0;if(!n)return!1;s(t)}return t[e].w},v=function(t){return f&&p.NEED&&a(t)&&!o(t,e)&&s(t),t},p=n.exports={KEY:e,NEED:!1,fastKey:l,getWeak:h,onFreeze:v}},{114:114,34:34,39:39,49:49,67:67}],63:[function(t,n,r){var e=t(149),i=t(32),o=t(94)("metadata"),u=o.store||(o.store=new(t(255))),c=function(t,n,r){var i=u.get(t);if(!i){if(!r)return;u.set(t,i=new e)}var o=i.get(n);if(!o){if(!r)return;i.set(n,o=new e)}return o},a=function(t,n,r){var e=c(n,r,!1);return void 0!==e&&e.has(t)},f=function(t,n,r){var e=c(n,r,!1);return void 0===e?void 0:e.get(t)},s=function(t,n,r,e){c(r,e,!0).set(t,n)},l=function(t,n){var r=c(t,n,!1),e=[];return r&&r.forEach(function(t,n){e.push(n)}),e},h=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},v=function(t){i(i.S,"Reflect",t)};n.exports={store:u,map:c,has:a,get:f,set:s,keys:l,key:h,exp:v}},{149:149,255:255,32:32,94:94}],64:[function(t,n,r){var e=t(38),i=t(104).set,o=e.MutationObserver||e.WebKitMutationObserver,u=e.process,c=e.Promise,a="process"==t(18)(u);n.exports=function(){var t,n,r,f=function(){var e,i;for(a&&(e=u.domain)&&e.exit();t;){i=t.fn,t=t.next;try{i()}catch(e){throw t?r():n=void 0,e}}n=void 0,e&&e.enter()};if(a)r=function(){u.nextTick(f)};else if(o){var s=!0,l=document.createTextNode("");new o(f).observe(l,{characterData:!0}),r=function(){l.data=s=!s}}else if(c&&c.resolve){var h=c.resolve();r=function(){h.then(f)}}else r=function(){i.call(e,f)};return function(e){var i={fn:e,next:void 0};n&&(n.next=i),t||(t=i,r()),n=i}}},{104:104,18:18,38:38}],65:[function(t,n,r){"use strict";var e=t(76),i=t(73),o=t(77),u=t(109),c=t(45),a=Object.assign;n.exports=!a||t(34)(function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=a({},t)[r]||Object.keys(a({},n)).join("")!=e})?function(t,n){for(var r=u(t),a=arguments.length,f=1,s=i.f,l=o.f;a>f;)for(var h,v=c(arguments[f++]),p=s?e(v).concat(s(v)):e(v),y=p.length,g=0;y>g;)l.call(v,h=p[g++])&&(r[h]=v[h]);return r}:a},{109:109,34:34,45:45,73:73,76:76,77:77}],66:[function(t,n,r){var e=t(7),i=t(68),o=t(30),u=t(93)("IE_PROTO"),c=function(){},a=function(){var n,r=t(29)("iframe"),e=o.length;for(r.style.display="none",t(41).appendChild(r),r.src="javascript:",n=r.contentWindow.document,n.open(),n.write(""),n.close(),a=n.F;e--;)delete a.prototype[o[e]];return a()};n.exports=Object.create||function(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=a(),void 0===n?r:i(r,n)}},{29:29,30:30,41:41,68:68,7:7,93:93}],67:[function(t,n,r){var e=t(7),i=t(42),o=t(110),u=Object.defineProperty;r.f=t(28)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},{110:110,28:28,42:42,7:7}],68:[function(t,n,r){var e=t(67),i=t(7),o=t(76);n.exports=t(28)?Object.defineProperties:function(t,n){i(t);for(var r,u=o(n),c=u.length,a=0;c>a;)e.f(t,r=u[a++],n[r]);return t}},{28:28,67:67,7:7,76:76}],69:[function(t,n,r){n.exports=t(58)||!t(34)(function(){var n=Math.random();__defineSetter__.call(null,n,function(){}),delete t(38)[n]})},{34:34,38:38,58:58}],70:[function(t,n,r){var e=t(77),i=t(85),o=t(107),u=t(110),c=t(39),a=t(42),f=Object.getOwnPropertyDescriptor;r.f=t(28)?f:function(t,n){if(t=o(t),n=u(n,!0),a)try{return f(t,n)}catch(t){}if(c(t,n))return i(!e.f.call(t,n),t[n])}},{107:107,110:110,28:28,39:39,42:42,77:77,85:85}],71:[function(t,n,r){var e=t(107),i=t(72).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(t){return u.slice()}};n.exports.f=function(t){return u&&"[object Window]"==o.call(t)?c(t):i(e(t))}},{107:107,72:72}],72:[function(t,n,r){var e=t(75),i=t(30).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return e(t,i)}},{30:30,75:75}],73:[function(t,n,r){r.f=Object.getOwnPropertySymbols},{}],74:[function(t,n,r){var e=t(39),i=t(109),o=t(93)("IE_PROTO"),u=Object.prototype;n.exports=Object.getPrototypeOf||function(t){return t=i(t),e(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},{109:109,39:39,93:93}],75:[function(t,n,r){var e=t(39),i=t(107),o=t(11)(!1),u=t(93)("IE_PROTO");n.exports=function(t,n){var r,c=i(t),a=0,f=[];for(r in c)r!=u&&e(c,r)&&f.push(r);for(;n.length>a;)e(c,r=n[a++])&&(~o(f,r)||f.push(r));return f}},{107:107,11:11,39:39,93:93}],76:[function(t,n,r){var e=t(75),i=t(30);n.exports=Object.keys||function(t){return e(t,i)}},{30:30,75:75}],77:[function(t,n,r){r.f={}.propertyIsEnumerable},{}],78:[function(t,n,r){var e=t(32),i=t(23),o=t(34);n.exports=function(t,n){var r=(i.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*o(function(){r(1)}),"Object",u)}},{23:23,32:32,34:34}],79:[function(t,n,r){var e=t(76),i=t(107),o=t(77).f;n.exports=function(t){return function(n){for(var r,u=i(n),c=e(u),a=c.length,f=0,s=[];a>f;)o.call(u,r=c[f++])&&s.push(t?[r,u[r]]:u[r]);return s}}},{107:107,76:76,77:77}],80:[function(t,n,r){var e=t(72),i=t(73),o=t(7),u=t(38).Reflect;n.exports=u&&u.ownKeys||function(t){var n=e.f(o(t)),r=i.f;return r?n.concat(r(t)):n}},{38:38,7:7,72:72,73:73}],81:[function(t,n,r){var e=t(38).parseFloat,i=t(102).trim;n.exports=1/e(t(103)+"-0")!=-(1/0)?function(t){var n=i(String(t),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},{102:102,103:103,38:38}],82:[function(t,n,r){var e=t(38).parseInt,i=t(102).trim,o=t(103),u=/^[\-+]?0[xX]/;n.exports=8!==e(o+"08")||22!==e(o+"0x16")?function(t,n){var r=i(String(t),3);return e(r,n>>>0||(u.test(r)?16:10))}:e},{102:102,103:103,38:38}],83:[function(t,n,r){"use strict";var e=t(84),i=t(44),o=t(3);n.exports=function(){for(var t=o(this),n=arguments.length,r=Array(n),u=0,c=e._,a=!1;n>u;)(r[u]=arguments[u++])===c&&(a=!0);return function(){var e,o=this,u=arguments.length,f=0,s=0;if(!a&&!u)return i(t,r,o);if(e=r.slice(),a)for(;n>f;f++)e[f]===c&&(e[f]=arguments[s++]);for(;u>s;)e.push(arguments[s++]);return i(t,e,o)}}},{3:3,44:44,84:84}],84:[function(t,n,r){n.exports=t(38)},{38:38}],85:[function(t,n,r){n.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},{}],86:[function(t,n,r){var e=t(87);n.exports=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}},{87:87}],87:[function(t,n,r){var e=t(38),i=t(40),o=t(39),u=t(114)("src"),c=Function.toString,a=(""+c).split("toString");t(23).inspectSource=function(t){return c.call(t)},(n.exports=function(t,n,r,c){var f="function"==typeof r;f&&(o(r,"name")||i(r,"name",n)),t[n]!==r&&(f&&(o(r,u)||i(r,u,t[n]?""+t[n]:a.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:i(t,n,r):(delete t[n],i(t,n,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},{114:114,23:23,38:38,39:39,40:40}],88:[function(t,n,r){n.exports=function(t,n){var r=n===Object(n)?function(t){return n[t]}:n;return function(n){return String(n).replace(t,r)}}},{}],89:[function(t,n,r){n.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},{}],90:[function(t,n,r){var e=t(49),i=t(7),o=function(t,n){if(i(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};n.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(n,r,e){try{e=t(25)(Function.call,t(70).f(Object.prototype,"__proto__").set,2),e(n,[]),r=!(n instanceof Array)}catch(t){r=!0}return function(t,n){return o(t,n),r?t.__proto__=n:e(t,n),t}}({},!1):void 0),check:o}},{25:25,49:49,7:7,70:70}],91:[function(t,n,r){"use strict";var e=t(38),i=t(67),o=t(28),u=t(117)("species");n.exports=function(t){var n=e[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},{117:117,28:28,38:38,67:67}],92:[function(t,n,r){var e=t(67).f,i=t(39),o=t(117)("toStringTag");n.exports=function(t,n,r){t&&!i(t=r?t:t.prototype,o)&&e(t,o,{configurable:!0,value:n})}},{117:117,39:39,67:67}],93:[function(t,n,r){var e=t(94)("keys"),i=t(114);n.exports=function(t){return e[t]||(e[t]=i(t))}},{114:114,94:94}],94:[function(t,n,r){var e=t(38),i=e["__core-js_shared__"]||(e["__core-js_shared__"]={});n.exports=function(t){return i[t]||(i[t]={})}},{38:38}],95:[function(t,n,r){var e=t(7),i=t(3),o=t(117)("species");n.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||void 0==(r=e(u)[o])?n:i(r)}},{117:117,3:3,7:7}],96:[function(t,n,r){var e=t(34);n.exports=function(t,n){return!!t&&e(function(){n?t.call(null,function(){},1):t.call(null)})}},{34:34}],97:[function(t,n,r){var e=t(106),i=t(27);n.exports=function(t){return function(n,r){var o,u,c=String(i(n)),a=e(r),f=c.length;return a<0||a>=f?t?"":void 0:(o=c.charCodeAt(a),o<55296||o>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):o:t?c.slice(a,a+2):u-56320+(o-55296<<10)+65536)}}},{106:106,27:27}],98:[function(t,n,r){var e=t(50),i=t(27);n.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},{27:27,50:50}],99:[function(t,n,r){var e=t(32),i=t(34),o=t(27),u=function(t,n,r,e){var i=String(o(t)),u="<"+n;return""!==r&&(u+=" "+r+'="'+String(e).replace(/"/g,""")+'"'),u+">"+i+""};n.exports=function(t,n){var r={};r[t]=n(u),e(e.P+e.F*i(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",r)}},{27:27,32:32,34:34}],100:[function(t,n,r){var e=t(108),i=t(101),o=t(27);n.exports=function(t,n,r,u){var c=String(o(t)),a=c.length,f=void 0===r?" ":String(r),s=e(n);if(s<=a||""==f)return c;var l=s-a,h=i.call(f,Math.ceil(l/f.length));return h.length>l&&(h=h.slice(0,l)),u?h+c:c+h}},{101:101,108:108,27:27}],101:[function(t,n,r){"use strict";var e=t(106),i=t(27);n.exports=function(t){var n=String(i(this)),r="",o=e(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(r+=n);return r}},{106:106,27:27}],102:[function(t,n,r){var e=t(32),i=t(27),o=t(34),u=t(103),c="["+u+"]",a="​…",f=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),l=function(t,n,r){var i={},c=o(function(){return!!u[t]()||a[t]()!=a}),f=i[t]=c?n(h):u[t];r&&(i[r]=f),e(e.P+e.F*c,"String",i)},h=l.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(f,"")),2&n&&(t=t.replace(s,"")),t};n.exports=l},{103:103,27:27,32:32,34:34}],103:[function(t,n,r){n.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],104:[function(t,n,r){var e,i,o,u=t(25),c=t(44),a=t(41),f=t(29),s=t(38),l=s.process,h=s.setImmediate,v=s.clearImmediate,p=s.MessageChannel,y=0,g={},d=function(){var t=+this;if(g.hasOwnProperty(t)){var n=g[t];delete g[t],n()}},m=function(t){d.call(t.data)};h&&v||(h=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return g[++y]=function(){c("function"==typeof t?t:Function(t),n)},e(y),y},v=function(t){delete g[t]},"process"==t(18)(l)?e=function(t){l.nextTick(u(d,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=m,e=u(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",m,!1)):e="onreadystatechange"in f("script")?function(t){a.appendChild(f("script")).onreadystatechange=function(){a.removeChild(this),d.call(t)}}:function(t){setTimeout(u(d,t,1),0)}),n.exports={set:h,clear:v}},{18:18,25:25,29:29,38:38,41:41,44:44}],105:[function(t,n,r){var e=t(106),i=Math.max,o=Math.min;n.exports=function(t,n){return t=e(t),t<0?i(t+n,0):o(t,n)}},{106:106}],106:[function(t,n,r){var e=Math.ceil,i=Math.floor;n.exports=function(t){return isNaN(t=+t)?0:(t>0?i:e)(t)}},{}],107:[function(t,n,r){var e=t(45),i=t(27);n.exports=function(t){return e(i(t))}},{27:27,45:45}],108:[function(t,n,r){var e=t(106),i=Math.min;n.exports=function(t){return t>0?i(e(t),9007199254740991):0}},{106:106}],109:[function(t,n,r){var e=t(27);n.exports=function(t){return Object(e(t))}},{27:27}],110:[function(t,n,r){var e=t(49);n.exports=function(t,n){if(!e(t))return t;var r,i;if(n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!e(i=r.call(t)))return i;if(!n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},{49:49}],111:[function(t,n,r){"use strict";if(t(28)){var e=t(58),i=t(38),o=t(34),u=t(32),c=t(113),a=t(112),f=t(25),s=t(6),l=t(85),h=t(40),v=t(86),p=t(106),y=t(108),g=t(105),d=t(110),m=t(39),b=t(89),w=t(17),S=t(49),x=t(109),_=t(46),E=t(66),O=t(74),M=t(72).f,k=t(118),F=t(114),P=t(117),A=t(12),j=t(11),I=t(95),N=t(130),R=t(56),L=t(54),T=t(91),C=t(9),D=t(8),W=t(67),U=t(70),G=W.f,B=U.f,z=i.RangeError,V=i.TypeError,Y=i.Uint8Array,H=Array.prototype,J=a.ArrayBuffer,K=a.DataView,q=A(0),X=A(2),$=A(3),Z=A(4),Q=A(5),tt=A(6),nt=j(!0),rt=j(!1),et=N.values,it=N.keys,ot=N.entries,ut=H.lastIndexOf,ct=H.reduce,at=H.reduceRight,ft=H.join,st=H.sort,lt=H.slice,ht=H.toString,vt=H.toLocaleString,pt=P("iterator"),yt=P("toStringTag"),gt=F("typed_constructor"),dt=F("def_constructor"),mt=c.CONSTR,bt=c.TYPED,wt=c.VIEW,St=A(1,function(t,n){return kt(I(t,t[dt]),n)}),xt=o(function(){return 1===new Y(new Uint16Array([1]).buffer)[0]}),_t=!!Y&&!!Y.prototype.set&&o(function(){new Y(1).set({})}),Et=function(t,n){if(void 0===t)throw V("Wrong length!");var r=+t,e=y(t);if(n&&!b(r,e))throw z("Wrong length!");return e},Ot=function(t,n){var r=p(t);if(r<0||r%n)throw z("Wrong offset!");return r},Mt=function(t){if(S(t)&&bt in t)return t;throw V(t+" is not a typed array!")},kt=function(t,n){if(!(S(t)&> in t))throw V("It is not a typed array constructor!");return new t(n)},Ft=function(t,n){return Pt(I(t,t[dt]),n)},Pt=function(t,n){for(var r=0,e=n.length,i=kt(t,e);e>r;)i[r]=n[r++];return i},At=function(t,n,r){G(t,n,{get:function(){return this._d[r]}})},jt=function(t){var n,r,e,i,o,u,c=x(t),a=arguments.length,s=a>1?arguments[1]:void 0,l=void 0!==s,h=k(c);if(void 0!=h&&!_(h)){for(u=h.call(c),e=[],n=0;!(o=u.next()).done;n++)e.push(o.value);c=e}for(l&&a>2&&(s=f(s,arguments[2],2)),n=0,r=y(c.length),i=kt(this,r);r>n;n++)i[n]=l?s(c[n],n):c[n];return i},It=function(){for(var t=0,n=arguments.length,r=kt(this,n);n>t;)r[t]=arguments[t++];return r},Nt=!!Y&&o(function(){vt.call(new Y(1))}),Rt=function(){return vt.apply(Nt?lt.call(Mt(this)):Mt(this),arguments)},Lt={copyWithin:function(t,n){return D.call(Mt(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(Mt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return C.apply(Mt(this),arguments)},filter:function(t){return Ft(this,X(Mt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Mt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Mt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){q(Mt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return rt(Mt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(Mt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(Mt(this),arguments)},lastIndexOf:function(t){ -return ut.apply(Mt(this),arguments)},map:function(t){return St(Mt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Mt(this),arguments)},reduceRight:function(t){return at.apply(Mt(this),arguments)},reverse:function(){for(var t,n=this,r=Mt(n).length,e=Math.floor(r/2),i=0;i1?arguments[1]:void 0)},sort:function(t){return st.call(Mt(this),t)},subarray:function(t,n){var r=Mt(this),e=r.length,i=g(t,e);return new(I(r,r[dt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,y((void 0===n?e:g(n,e))-i))}},Tt=function(t,n){return Ft(this,lt.call(Mt(this),t,n))},Ct=function(t){Mt(this);var n=Ot(arguments[1],1),r=this.length,e=x(t),i=y(e.length),o=0;if(i+n>r)throw z("Wrong length!");for(;o255?255:255&e),i.v[p](r*n+i.o,e,xt)},P=function(t,n){G(t,n,{get:function(){return k(this,n)},set:function(t){return F(this,n,t)},enumerable:!0})};b?(g=r(function(t,r,e,i){s(t,g,f,"_d");var o,u,c,a,l=0,v=0;if(S(r)){if(!(r instanceof J||"ArrayBuffer"==(a=w(r))||"SharedArrayBuffer"==a))return bt in r?Pt(g,r):jt.call(g,r);o=r,v=Ot(e,n);var p=r.byteLength;if(void 0===i){if(p%n)throw z("Wrong length!");if((u=p-v)<0)throw z("Wrong length!")}else if((u=y(i)*n)+v>p)throw z("Wrong length!");c=u/n}else c=Et(r,!0),u=c*n,o=new J(u);for(h(t,"_d",{b:o,o:v,l:u,e:c,v:new K(o)});l>1,s=23===n?E(2,-24)-E(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for(t=_(t),t!=t||t===S?(i=t!=t?1:0,e=a):(e=O(M(t)/k),t*(o=E(2,-e))<1&&(e--,o*=2),t+=e+f>=1?s/o:s*E(2,1-f),t*o>=2&&(e++,o/=2),e+f>=a?(i=0,e=a):e+f>=1?(i=(t*o-1)*E(2,n),e+=f):(i=t*E(2,f-1)*E(2,n),e=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(e=e<0;u[l++]=255&e,e/=256,c-=8);return u[--l]|=128*h,u},I=function(t,n,r){var e,i=8*r-n-1,o=(1<>1,c=i-7,a=r-1,f=t[a--],s=127&f;for(f>>=7;c>0;s=256*s+t[a],a--,c-=8);for(e=s&(1<<-c)-1,s>>=-c,c+=n;c>0;e=256*e+t[a],a--,c-=8);if(0===s)s=1-u;else{if(s===o)return e?NaN:f?-S:S;e+=E(2,n),s-=u}return(f?-1:1)*e*E(2,s-n)},N=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},R=function(t){return[255&t]},L=function(t){return[255&t,t>>8&255]},T=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},C=function(t){return j(t,52,8)},D=function(t){return j(t,23,4)},W=function(t,n,r){p(t.prototype,n,{get:function(){return this[r]}})},U=function(t,n,r,e){var i=+r,o=l(i);if(i!=o||o<0||o+n>t[P])throw w("Wrong index!");var u=t[F]._b,c=o+t[A],a=u.slice(c,c+n);return e?a:a.reverse()},G=function(t,n,r,e,i,o){var u=+r,c=l(u);if(u!=c||c<0||c+n>t[P])throw w("Wrong index!");for(var a=t[F]._b,f=c+t[A],s=e(+i),h=0;hH;)(z=Y[H++])in d||c(d,z,x[z]);o||(V.constructor=d)}var J=new m(new d(2)),K=m.prototype.setInt8;J.setInt8(0,2147483648),J.setInt8(1,2147483649),!J.getInt8(0)&&J.getInt8(1)||a(m.prototype,{setInt8:function(t,n){K.call(this,t,n<<24>>24)},setUint8:function(t,n){K.call(this,t,n<<24>>24)}},!0)}else d=function(t){var n=B(this,t);this._b=y.call(Array(n),0),this[P]=n},m=function(t,n,r){s(this,m,"DataView"),s(t,d,"DataView");var e=t[P],i=l(n);if(i<0||i>e)throw w("Wrong offset!");if(r=void 0===r?e-i:h(r),i+r>e)throw w("Wrong length!");this[F]=t,this[A]=i,this[P]=r},i&&(W(d,"byteLength","_l"),W(m,"buffer","_b"),W(m,"byteLength","_l"),W(m,"byteOffset","_o")),a(m.prototype,{getInt8:function(t){return U(this,1,t)[0]<<24>>24},getUint8:function(t){return U(this,1,t)[0]},getInt16:function(t){var n=U(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=U(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return N(U(this,4,t,arguments[1]))},getUint32:function(t){return N(U(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return I(U(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return I(U(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){G(this,1,t,R,n)},setUint8:function(t,n){G(this,1,t,R,n)},setInt16:function(t,n){G(this,2,t,L,n,arguments[2])},setUint16:function(t,n){G(this,2,t,L,n,arguments[2])},setInt32:function(t,n){G(this,4,t,T,n,arguments[2])},setUint32:function(t,n){G(this,4,t,T,n,arguments[2])},setFloat32:function(t,n){G(this,4,t,D,n,arguments[2])},setFloat64:function(t,n){G(this,8,t,C,n,arguments[2])}});g(d,"ArrayBuffer"),g(m,"DataView"),c(m.prototype,u.VIEW,!0),r.ArrayBuffer=d,r.DataView=m},{106:106,108:108,113:113,28:28,34:34,38:38,40:40,58:58,6:6,67:67,72:72,86:86,9:9,92:92}],113:[function(t,n,r){for(var e,i=t(38),o=t(40),u=t(114),c=u("typed_array"),a=u("view"),f=!(!i.ArrayBuffer||!i.DataView),s=f,l=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(e=i[h[l++]])?(o(e.prototype,c,!0),o(e.prototype,a,!0)):s=!1;n.exports={ABV:f,CONSTR:s,TYPED:c,VIEW:a}},{114:114,38:38,40:40}],114:[function(t,n,r){var e=0,i=Math.random();n.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+i).toString(36))}},{}],115:[function(t,n,r){var e=t(38),i=t(23),o=t(58),u=t(116),c=t(67).f;n.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},{116:116,23:23,38:38,58:58,67:67}],116:[function(t,n,r){r.f=t(117)},{117:117}],117:[function(t,n,r){var e=t(94)("wks"),i=t(114),o=t(38).Symbol,u="function"==typeof o;(n.exports=function(t){return e[t]||(e[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=e},{114:114,38:38,94:94}],118:[function(t,n,r){var e=t(17),i=t(117)("iterator"),o=t(56);n.exports=t(23).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[e(t)]}},{117:117,17:17,23:23,56:56}],119:[function(t,n,r){var e=t(32),i=t(88)(/[\\^$*+?.()|[\]{}]/g,"\\$&");e(e.S,"RegExp",{escape:function(t){return i(t)}})},{32:32,88:88}],120:[function(t,n,r){var e=t(32);e(e.P,"Array",{copyWithin:t(8)}),t(5)("copyWithin")},{32:32,5:5,8:8}],121:[function(t,n,r){"use strict";var e=t(32),i=t(12)(4);e(e.P+e.F*!t(96)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},{12:12,32:32,96:96}],122:[function(t,n,r){var e=t(32);e(e.P,"Array",{fill:t(9)}),t(5)("fill")},{32:32,5:5,9:9}],123:[function(t,n,r){"use strict";var e=t(32),i=t(12)(2);e(e.P+e.F*!t(96)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},{12:12,32:32,96:96}],124:[function(t,n,r){"use strict";var e=t(32),i=t(12)(6),o="findIndex",u=!0;o in[]&&Array(1)[o](function(){u=!1}),e(e.P+e.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),t(5)(o)},{12:12,32:32,5:5}],125:[function(t,n,r){"use strict";var e=t(32),i=t(12)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),e(e.P+e.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),t(5)("find")},{12:12,32:32,5:5}],126:[function(t,n,r){"use strict";var e=t(32),i=t(12)(0),o=t(96)([].forEach,!0);e(e.P+e.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},{12:12,32:32,96:96}],127:[function(t,n,r){"use strict";var e=t(25),i=t(32),o=t(109),u=t(51),c=t(46),a=t(108),f=t(24),s=t(118);i(i.S+i.F*!t(54)(function(t){Array.from(t)}),"Array",{from:function(t){var n,r,i,l,h=o(t),v="function"==typeof this?this:Array,p=arguments.length,y=p>1?arguments[1]:void 0,g=void 0!==y,d=0,m=s(h);if(g&&(y=e(y,p>2?arguments[2]:void 0,2)),void 0==m||v==Array&&c(m))for(n=a(h.length),r=new v(n);n>d;d++)f(r,d,g?y(h[d],d):h[d]);else for(l=m.call(h),r=new v;!(i=l.next()).done;d++)f(r,d,g?u(l,y,[i.value,d],!0):i.value);return r.length=d,r}})},{108:108,109:109,118:118,24:24,25:25,32:32,46:46,51:51,54:54}],128:[function(t,n,r){"use strict";var e=t(32),i=t(11)(!1),o=[].indexOf,u=!!o&&1/[1].indexOf(1,-0)<0;e(e.P+e.F*(u||!t(96)(o)),"Array",{indexOf:function(t){return u?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},{11:11,32:32,96:96}],129:[function(t,n,r){var e=t(32);e(e.S,"Array",{isArray:t(47)})},{32:32,47:47}],130:[function(t,n,r){"use strict";var e=t(5),i=t(55),o=t(56),u=t(107);n.exports=t(53)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==n?i(0,r):"values"==n?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,e("keys"),e("values"),e("entries")},{107:107,5:5,53:53,55:55,56:56}],131:[function(t,n,r){"use strict";var e=t(32),i=t(107),o=[].join;e(e.P+e.F*(t(45)!=Object||!t(96)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},{107:107,32:32,45:45,96:96}],132:[function(t,n,r){"use strict";var e=t(32),i=t(107),o=t(106),u=t(108),c=[].lastIndexOf,a=!!c&&1/[1].lastIndexOf(1,-0)<0;e(e.P+e.F*(a||!t(96)(c)),"Array",{lastIndexOf:function(t){if(a)return c.apply(this,arguments)||0;var n=i(this),r=u(n.length),e=r-1;for(arguments.length>1&&(e=Math.min(e,o(arguments[1]))),e<0&&(e=r+e);e>=0;e--)if(e in n&&n[e]===t)return e||0;return-1}})},{106:106,107:107,108:108,32:32,96:96}],133:[function(t,n,r){"use strict";var e=t(32),i=t(12)(1);e(e.P+e.F*!t(96)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},{12:12,32:32,96:96}],134:[function(t,n,r){"use strict";var e=t(32),i=t(24);e(e.S+e.F*t(34)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)i(r,t,arguments[t++]);return r.length=n,r}})},{24:24,32:32,34:34}],135:[function(t,n,r){"use strict";var e=t(32),i=t(13);e(e.P+e.F*!t(96)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},{13:13,32:32,96:96}],136:[function(t,n,r){"use strict";var e=t(32),i=t(13);e(e.P+e.F*!t(96)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},{13:13,32:32,96:96}],137:[function(t,n,r){"use strict";var e=t(32),i=t(41),o=t(18),u=t(105),c=t(108),a=[].slice;e(e.P+e.F*t(34)(function(){i&&a.call(i)}),"Array",{slice:function(t,n){var r=c(this.length),e=o(this);if(n=void 0===n?r:n,"Array"==e)return a.call(this,t,n);for(var i=u(t,r),f=u(n,r),s=c(f-i),l=Array(s),h=0;h9?t:"0"+t};e(e.P+e.F*(i(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!i(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=n<0?"-":n>9999?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(r>99?r:"0"+u(r))+"Z"}})},{32:32,34:34}],143:[function(t,n,r){"use strict";var e=t(32),i=t(109),o=t(110);e(e.P+e.F*t(34)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var n=i(this),r=o(n);return"number"!=typeof r||isFinite(r)?n.toISOString():null}})},{109:109,110:110,32:32,34:34}],144:[function(t,n,r){var e=t(117)("toPrimitive"),i=Date.prototype;e in i||t(40)(i,e,t(26))},{117:117,26:26,40:40}],145:[function(t,n,r){var e=Date.prototype,i=e.toString,o=e.getTime;new Date(NaN)+""!="Invalid Date"&&t(87)(e,"toString",function(){var t=o.call(this);return t===t?i.call(this):"Invalid Date"})},{87:87}],146:[function(t,n,r){var e=t(32);e(e.P,"Function",{bind:t(16)})},{16:16,32:32}],147:[function(t,n,r){"use strict";var e=t(49),i=t(74),o=t(117)("hasInstance"),u=Function.prototype;o in u||t(67).f(u,o,{value:function(t){if("function"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},{117:117,49:49,67:67,74:74}],148:[function(t,n,r){var e=t(67).f,i=t(85),o=t(39),u=Function.prototype,c=Object.isExtensible||function(){return!0};"name"in u||t(28)&&e(u,"name",{configurable:!0,get:function(){try{var t=this,n=(""+t).match(/^\s*function ([^ (]*)/)[1];return o(t,"name")||!c(t)||e(t,"name",i(5,n)),n}catch(t){return""}}})},{28:28,39:39,67:67,85:85}],149:[function(t,n,r){"use strict";var e=t(19);n.exports=t(22)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var n=e.getEntry(this,t);return n&&n.v},set:function(t,n){return e.def(this,0===t?0:t,n)}},e,!0)},{19:19,22:22}],150:[function(t,n,r){var e=t(32),i=t(60),o=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},{32:32,60:60}],151:[function(t,n,r){function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=t(32),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:e})},{32:32}],152:[function(t,n,r){var e=t(32),i=Math.atanh;e(e.S+e.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},{32:32}],153:[function(t,n,r){var e=t(32),i=t(61);e(e.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},{32:32,61:61}],154:[function(t,n,r){var e=t(32);e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{32:32}],155:[function(t,n,r){var e=t(32),i=Math.exp;e(e.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},{32:32}],156:[function(t,n,r){var e=t(32),i=t(59);e(e.S+e.F*(i!=Math.expm1),"Math",{expm1:i})},{32:32,59:59}],157:[function(t,n,r){var e=t(32),i=t(61),o=Math.pow,u=o(2,-52),c=o(2,-23),a=o(2,127)*(2-c),f=o(2,-126),s=function(t){return t+1/u-1/u};e(e.S,"Math",{fround:function(t){var n,r,e=Math.abs(t),o=i(t);return ea||r!=r?o*(1/0):o*r)}})},{32:32,61:61}],158:[function(t,n,r){var e=t(32),i=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,o=0,u=0,c=arguments.length,a=0;u0?(e=r/a,o+=e*e):o+=r;return a===1/0?1/0:a*Math.sqrt(o)}})},{32:32}],159:[function(t,n,r){var e=t(32),i=Math.imul;e(e.S+e.F*t(34)(function(){return i(4294967295,5)!=-5||2!=i.length}),"Math",{imul:function(t,n){var r=+t,e=+n,i=65535&r,o=65535&e;return 0|i*o+((65535&r>>>16)*o+i*(65535&e>>>16)<<16>>>0)}})},{32:32,34:34}],160:[function(t,n,r){var e=t(32);e(e.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},{32:32}],161:[function(t,n,r){var e=t(32);e(e.S,"Math",{log1p:t(60)})},{32:32,60:60}],162:[function(t,n,r){var e=t(32);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},{32:32}],163:[function(t,n,r){var e=t(32);e(e.S,"Math",{sign:t(61)})},{32:32,61:61}],164:[function(t,n,r){var e=t(32),i=t(59),o=Math.exp;e(e.S+e.F*t(34)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},{32:32,34:34,59:59}],165:[function(t,n,r){var e=t(32),i=t(59),o=Math.exp;e(e.S,"Math",{tanh:function(t){var n=i(t=+t),r=i(-t);return n==1/0?1:r==1/0?-1:(n-r)/(o(t)+o(-t))}})},{32:32,59:59}],166:[function(t,n,r){var e=t(32);e(e.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},{32:32}],167:[function(t,n,r){"use strict";var e=t(38),i=t(39),o=t(18),u=t(43),c=t(110),a=t(34),f=t(72).f,s=t(70).f,l=t(67).f,h=t(102).trim,v=e.Number,p=v,y=v.prototype,g="Number"==o(t(66)(y)),d="trim"in String.prototype,m=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){n=d?n.trim():h(n,3);var r,e,i,o=n.charCodeAt(0);if(43===o||45===o){if(88===(r=n.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:e=2,i=49;break;case 79:case 111:e=8,i=55;break;default:return+n}for(var u,a=n.slice(2),f=0,s=a.length;fi)return NaN;return parseInt(a,e)}}return+n};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function(t){var n=arguments.length<1?0:t,r=this;return r instanceof v&&(g?a(function(){y.valueOf.call(r)}):"Number"!=o(r))?u(new p(m(n)),r,v):m(n)};for(var b,w=t(28)?f(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;w.length>S;S++)i(p,b=w[S])&&!i(v,b)&&l(v,b,s(p,b));v.prototype=y,y.constructor=v,t(87)(e,"Number",v)}},{102:102,110:110,18:18,28:28,34:34,38:38,39:39,43:43,66:66,67:67,70:70,72:72,87:87}],168:[function(t,n,r){var e=t(32);e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},{32:32}],169:[function(t,n,r){var e=t(32),i=t(38).isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},{32:32,38:38}],170:[function(t,n,r){var e=t(32);e(e.S,"Number",{isInteger:t(48)})},{32:32,48:48}],171:[function(t,n,r){var e=t(32);e(e.S,"Number",{isNaN:function(t){return t!=t}})},{32:32}],172:[function(t,n,r){var e=t(32),i=t(48),o=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},{32:32,48:48}],173:[function(t,n,r){var e=t(32);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{32:32}],174:[function(t,n,r){var e=t(32);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{32:32}],175:[function(t,n,r){var e=t(32),i=t(81);e(e.S+e.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},{32:32,81:81}],176:[function(t,n,r){var e=t(32),i=t(82);e(e.S+e.F*(Number.parseInt!=i),"Number",{parseInt:i})},{32:32,82:82}],177:[function(t,n,r){"use strict";var e=t(32),i=t(106),o=t(4),u=t(101),c=1..toFixed,a=Math.floor,f=[0,0,0,0,0,0],s="Number.toFixed: incorrect invocation!",l=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*f[r],f[r]=e%1e7,e=a(e/1e7)},h=function(t){for(var n=6,r=0;--n>=0;)r+=f[n],f[n]=a(r/t),r=r%t*1e7},v=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==f[t]){var r=String(f[t]);n=""===n?r:n+u.call("0",7-r.length)+r}return n},p=function(t,n,r){return 0===n?r:n%2==1?p(t,n-1,r*t):p(t*t,n/2,r)},y=function(t){for(var n=0,r=t;r>=4096;)n+=12,r/=4096;for(;r>=2;)n+=1,r/=2;return n};e(e.P+e.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!t(34)(function(){c.call({})})),"Number",{toFixed:function(t){var n,r,e,c,a=o(this,s),f=i(t),g="",d="0";if(f<0||f>20)throw RangeError(s);if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return String(a);if(a<0&&(g="-",a=-a),a>1e-21)if(n=y(a*p(2,69,1))-69,r=n<0?a*p(2,-n,1):a/p(2,n,1),r*=4503599627370496,(n=52-n)>0){for(l(0,r),e=f;e>=7;)l(1e7,0),e-=7;for(l(p(10,e,1),0),e=n-1;e>=23;)h(1<<23),e-=23;h(1<0?(c=d.length,d=g+(c<=f?"0."+u.call("0",f-c)+d:d.slice(0,c-f)+"."+d.slice(c-f))):d=g+d,d}})},{101:101,106:106,32:32,34:34,4:4}],178:[function(t,n,r){"use strict";var e=t(32),i=t(34),o=t(4),u=1..toPrecision;e(e.P+e.F*(i(function(){return"1"!==u.call(1,void 0)})||!i(function(){u.call({})})),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},{32:32,34:34,4:4}],179:[function(t,n,r){var e=t(32);e(e.S+e.F,"Object",{assign:t(65)})},{32:32,65:65}],180:[function(t,n,r){var e=t(32);e(e.S,"Object",{create:t(66)})},{32:32,66:66}],181:[function(t,n,r){var e=t(32);e(e.S+e.F*!t(28),"Object",{defineProperties:t(68)})},{28:28,32:32,68:68}],182:[function(t,n,r){var e=t(32);e(e.S+e.F*!t(28),"Object",{defineProperty:t(67).f})},{28:28,32:32,67:67}],183:[function(t,n,r){var e=t(49),i=t(62).onFreeze;t(78)("freeze",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},{49:49,62:62,78:78}],184:[function(t,n,r){var e=t(107),i=t(70).f;t(78)("getOwnPropertyDescriptor",function(){return function(t,n){return i(e(t),n)}})},{107:107,70:70,78:78}],185:[function(t,n,r){t(78)("getOwnPropertyNames",function(){return t(71).f})},{71:71,78:78}],186:[function(t,n,r){var e=t(109),i=t(74);t(78)("getPrototypeOf",function(){return function(t){return i(e(t))}})},{109:109,74:74,78:78}],187:[function(t,n,r){var e=t(49);t(78)("isExtensible",function(t){return function(n){return!!e(n)&&(!t||t(n))}})},{49:49,78:78}],188:[function(t,n,r){var e=t(49);t(78)("isFrozen",function(t){return function(n){return!e(n)||!!t&&t(n)}})},{49:49,78:78}],189:[function(t,n,r){var e=t(49);t(78)("isSealed",function(t){return function(n){return!e(n)||!!t&&t(n)}})},{49:49,78:78}],190:[function(t,n,r){var e=t(32);e(e.S,"Object",{is:t(89)})},{32:32,89:89}],191:[function(t,n,r){var e=t(109),i=t(76);t(78)("keys",function(){return function(t){return i(e(t))}})},{109:109,76:76,78:78}],192:[function(t,n,r){var e=t(49),i=t(62).onFreeze;t(78)("preventExtensions",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},{49:49,62:62,78:78}],193:[function(t,n,r){var e=t(49),i=t(62).onFreeze;t(78)("seal",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},{49:49,62:62,78:78}],194:[function(t,n,r){var e=t(32);e(e.S,"Object",{setPrototypeOf:t(90).set})},{32:32,90:90}],195:[function(t,n,r){"use strict";var e=t(17),i={};i[t(117)("toStringTag")]="z",i+""!="[object z]"&&t(87)(Object.prototype,"toString",function(){return"[object "+e(this)+"]"},!0)},{117:117,17:17,87:87}],196:[function(t,n,r){var e=t(32),i=t(81);e(e.G+e.F*(parseFloat!=i),{parseFloat:i})},{32:32,81:81}],197:[function(t,n,r){var e=t(32),i=t(82);e(e.G+e.F*(parseInt!=i),{parseInt:i})},{32:32,82:82}],198:[function(t,n,r){"use strict";var e,i,o,u=t(58),c=t(38),a=t(25),f=t(17),s=t(32),l=t(49),h=t(3),v=t(6),p=t(37),y=t(95),g=t(104).set,d=t(64)(),m=c.TypeError,b=c.process,w=c.Promise,b=c.process,S="process"==f(b),x=function(){},_=!!function(){try{var n=w.resolve(1),r=(n.constructor={})[t(117)("species")]=function(t){t(x,x)};return(S||"function"==typeof PromiseRejectionEvent)&&n.then(x)instanceof r}catch(t){}}(),E=function(t,n){return t===n||t===w&&n===o},O=function(t){var n;return!(!l(t)||"function"!=typeof(n=t.then))&&n},M=function(t){return E(w,t)?new k(t):new i(t)},k=i=function(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw m("Bad Promise constructor");n=t,r=e}),this.resolve=h(n),this.reject=h(r)},F=function(t){try{t()}catch(t){return{error:t}}},P=function(t,n){if(!t._n){t._n=!0;var r=t._c;d(function(){for(var e=t._v,i=1==t._s,o=0;r.length>o;)!function(n){var r,o,u=i?n.ok:n.fail,c=n.resolve,a=n.reject,f=n.domain;try{u?(i||(2==t._h&&I(t),t._h=1),u===!0?r=e:(f&&f.enter(),r=u(e),f&&f.exit()),r===n.promise?a(m("Promise-chain cycle")):(o=O(r))?o.call(r,c,a):c(r)):a(e)}catch(t){a(t)}}(r[o++]);t._c=[],t._n=!1,n&&!t._h&&A(t)})}},A=function(t){g.call(c,function(){var n,r,e,i=t._v;if(j(t)&&(n=F(function(){S?b.emit("unhandledRejection",i,t):(r=c.onunhandledrejection)?r({promise:t,reason:i}):(e=c.console)&&e.error&&e.error("Unhandled promise rejection",i)}),t._h=S||j(t)?2:1),t._a=void 0,n)throw n.error})},j=function(t){if(1==t._h)return!1;for(var n,r=t._a||t._c,e=0;r.length>e;)if(n=r[e++],n.fail||!j(n.promise))return!1;return!0},I=function(t){g.call(c,function(){var n;S?b.emit("rejectionHandled",t):(n=c.onrejectionhandled)&&n({promise:t,reason:t._v})})},N=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),P(n,!0))},R=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw m("Promise can't be resolved itself");(n=O(t))?d(function(){var e={_w:r,_d:!1};try{n.call(t,a(R,e,1),a(N,e,1))}catch(t){N.call(e,t)}}):(r._v=t,r._s=1,P(r,!1))}catch(t){N.call({_w:r,_d:!1},t)}}};_||(w=function(t){v(this,w,"Promise","_h"),h(t),e.call(this);try{t(a(R,this,1),a(N,this,1))}catch(t){N.call(this,t)}},e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},e.prototype=t(86)(w.prototype,{then:function(t,n){var r=M(y(this,w));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=S?b.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&P(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),k=function(){var t=new e;this.promise=t,this.resolve=a(R,t,1),this.reject=a(N,t,1)}),s(s.G+s.W+s.F*!_,{Promise:w}),t(92)(w,"Promise"),t(91)("Promise"),o=t(23).Promise,s(s.S+s.F*!_,"Promise",{reject:function(t){var n=M(this);return(0,n.reject)(t),n.promise}}),s(s.S+s.F*(u||!_),"Promise",{resolve:function(t){if(t instanceof w&&E(t.constructor,this))return t;var n=M(this);return(0,n.resolve)(t),n.promise}}),s(s.S+s.F*!(_&&t(54)(function(t){w.all(t).catch(x)})),"Promise",{all:function(t){var n=this,r=M(n),e=r.resolve,i=r.reject,o=F(function(){var r=[],o=0,u=1;p(t,!1,function(t){var c=o++,a=!1;r.push(void 0),u++,n.resolve(t).then(function(t){a||(a=!0,r[c]=t,--u||e(r))},i)}),--u||e(r)});return o&&i(o.error),r.promise},race:function(t){var n=this,r=M(n),e=r.reject,i=F(function(){p(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return i&&e(i.error),r.promise}})},{104:104,117:117,17:17,23:23,25:25,3:3,32:32,37:37,38:38,49:49,54:54,58:58,6:6,64:64,86:86,91:91,92:92,95:95}],199:[function(t,n,r){var e=t(32),i=t(3),o=t(7),u=(t(38).Reflect||{}).apply,c=Function.apply;e(e.S+e.F*!t(34)(function(){u(function(){})}),"Reflect",{apply:function(t,n,r){var e=i(t),a=o(r);return u?u(e,n,a):c.call(e,n,a)}})},{3:3,32:32,34:34,38:38,7:7}],200:[function(t,n,r){var e=t(32),i=t(66),o=t(3),u=t(7),c=t(49),a=t(34),f=t(16),s=(t(38).Reflect||{}).construct,l=a(function(){function t(){}return!(s(function(){},[],t)instanceof t)}),h=!a(function(){s(function(){})});e(e.S+e.F*(l||h),"Reflect",{construct:function(t,n){o(t),u(n);var r=arguments.length<3?t:o(arguments[2]);if(h&&!l)return s(t,n,r);if(t==r){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var e=[null];return e.push.apply(e,n),new(f.apply(t,e))}var a=r.prototype,v=i(c(a)?a:Object.prototype),p=Function.apply.call(t,v,n);return c(p)?p:v}})},{16:16,3:3,32:32,34:34,38:38,49:49,66:66,7:7}],201:[function(t,n,r){var e=t(67),i=t(32),o=t(7),u=t(110);i(i.S+i.F*t(34)(function(){Reflect.defineProperty(e.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,n,r){o(t),n=u(n,!0),o(r);try{return e.f(t,n,r),!0}catch(t){return!1}}})},{110:110,32:32,34:34,67:67,7:7}],202:[function(t,n,r){var e=t(32),i=t(70).f,o=t(7);e(e.S,"Reflect",{deleteProperty:function(t,n){var r=i(o(t),n);return!(r&&!r.configurable)&&delete t[n]}})},{32:32,7:7,70:70}],203:[function(t,n,r){"use strict";var e=t(32),i=t(7),o=function(t){this._t=i(t),this._i=0;var n,r=this._k=[];for(n in t)r.push(n)};t(52)(o,"Object",function(){var t,n=this,r=n._k;do{if(n._i>=r.length)return{value:void 0,done:!0}}while(!((t=r[n._i++])in n._t));return{value:t,done:!1}}),e(e.S,"Reflect",{enumerate:function(t){return new o(t)}})},{32:32,52:52,7:7}],204:[function(t,n,r){var e=t(70),i=t(32),o=t(7);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(o(t),n)}})},{32:32,7:7,70:70}],205:[function(t,n,r){var e=t(32),i=t(74),o=t(7);e(e.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},{32:32,7:7,74:74}],206:[function(t,n,r){function e(t,n){var r,c,s=arguments.length<3?t:arguments[2];return f(t)===s?t[n]:(r=i.f(t,n))?u(r,"value")?r.value:void 0!==r.get?r.get.call(s):void 0:a(c=o(t))?e(c,n,s):void 0}var i=t(70),o=t(74),u=t(39),c=t(32),a=t(49),f=t(7);c(c.S,"Reflect",{get:e})},{32:32,39:39,49:49,7:7,70:70,74:74}],207:[function(t,n,r){var e=t(32);e(e.S,"Reflect",{has:function(t,n){return n in t}})},{32:32}],208:[function(t,n,r){var e=t(32),i=t(7),o=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},{32:32,7:7}],209:[function(t,n,r){var e=t(32);e(e.S,"Reflect",{ownKeys:t(80)})},{32:32,80:80}],210:[function(t,n,r){var e=t(32),i=t(7),o=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},{32:32,7:7}],211:[function(t,n,r){var e=t(32),i=t(90);i&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},{32:32,90:90}],212:[function(t,n,r){function e(t,n,r){var a,h,v=arguments.length<4?t:arguments[3],p=o.f(s(t),n);if(!p){if(l(h=u(t)))return e(h,n,r,v);p=f(0)}return c(p,"value")?!(p.writable===!1||!l(v))&&(a=o.f(v,n)||f(0),a.value=r,i.f(v,n,a),!0):void 0!==p.set&&(p.set.call(v,r),!0)}var i=t(67),o=t(70),u=t(74),c=t(39),a=t(32),f=t(85),s=t(7),l=t(49);a(a.S,"Reflect",{set:e}) -},{32:32,39:39,49:49,67:67,7:7,70:70,74:74,85:85}],213:[function(t,n,r){var e=t(38),i=t(43),o=t(67).f,u=t(72).f,c=t(50),a=t(36),f=e.RegExp,s=f,l=f.prototype,h=/a/g,v=/a/g!==new f(/a/g);if(t(28)&&(!v||t(34)(function(){return h[t(117)("match")]=!1,/a/g!=f(/a/g)||f(h)==h||"/a/i"!=f(/a/g,"i")}))){f=function(t,n){var r=this instanceof f,e=c(t),o=void 0===n;return!r&&e&&t.constructor===f&&o?t:i(v?new s(e&&!o?t.source:t,n):s((e=t instanceof f)?t.source:t,e&&o?a.call(t):n),r?this:l,f)};for(var p=u(s),y=0;p.length>y;)!function(t){t in f||o(f,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})}(p[y++]);l.constructor=f,f.prototype=l,t(87)(e,"RegExp",f)}t(91)("RegExp")},{117:117,28:28,34:34,36:36,38:38,43:43,50:50,67:67,72:72,87:87,91:91}],214:[function(t,n,r){t(28)&&"g"!=/./g.flags&&t(67).f(RegExp.prototype,"flags",{configurable:!0,get:t(36)})},{28:28,36:36,67:67}],215:[function(t,n,r){t(35)("match",1,function(t,n,r){return[function(r){"use strict";var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},r]})},{35:35}],216:[function(t,n,r){t(35)("replace",2,function(t,n,r){return[function(e,i){"use strict";var o=t(this),u=void 0==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},r]})},{35:35}],217:[function(t,n,r){t(35)("search",1,function(t,n,r){return[function(r){"use strict";var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},r]})},{35:35}],218:[function(t,n,r){t(35)("split",2,function(n,r,e){"use strict";var i=t(50),o=e,u=[].push,c="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[c]||2!="ab".split(/(?:ab)*/)[c]||4!=".".split(/(.?)(.?)/)[c]||".".split(/()()/)[c]>1||"".split(/.?/)[c]){var a=void 0===/()??/.exec("")[1];e=function(t,n){var r=String(this);if(void 0===t&&0===n)return[];if(!i(t))return o.call(r,t,n);var e,f,s,l,h,v=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),y=0,g=void 0===n?4294967295:n>>>0,d=new RegExp(t.source,p+"g");for(a||(e=new RegExp("^"+d.source+"$(?!\\s)",p));(f=d.exec(r))&&!((s=f.index+f[0][c])>y&&(v.push(r.slice(y,f.index)),!a&&f[c]>1&&f[0].replace(e,function(){for(h=1;h1&&f.index=g));)d.lastIndex===f.index&&d.lastIndex++;return y===r[c]?!l&&d.test("")||v.push(""):v.push(r.slice(y)),v[c]>g?v.slice(0,g):v}}else"0".split(void 0,0)[c]&&(e=function(t,n){return void 0===t&&0===n?[]:o.call(this,t,n)});return[function(t,i){var o=n(this),u=void 0==t?void 0:t[r];return void 0!==u?u.call(t,o,i):e.call(String(o),t,i)},e]})},{35:35,50:50}],219:[function(t,n,r){"use strict";t(214);var e=t(7),i=t(36),o=t(28),u=/./.toString,c=function(n){t(87)(RegExp.prototype,"toString",n,!0)};t(34)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?c(function(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):"toString"!=u.name&&c(function(){return u.call(this)})},{214:214,28:28,34:34,36:36,7:7,87:87}],220:[function(t,n,r){"use strict";var e=t(19);n.exports=t(22)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(this,t=0===t?0:t,t)}},e)},{19:19,22:22}],221:[function(t,n,r){"use strict";t(99)("anchor",function(t){return function(n){return t(this,"a","name",n)}})},{99:99}],222:[function(t,n,r){"use strict";t(99)("big",function(t){return function(){return t(this,"big","","")}})},{99:99}],223:[function(t,n,r){"use strict";t(99)("blink",function(t){return function(){return t(this,"blink","","")}})},{99:99}],224:[function(t,n,r){"use strict";t(99)("bold",function(t){return function(){return t(this,"b","","")}})},{99:99}],225:[function(t,n,r){"use strict";var e=t(32),i=t(97)(!1);e(e.P,"String",{codePointAt:function(t){return i(this,t)}})},{32:32,97:97}],226:[function(t,n,r){"use strict";var e=t(32),i=t(108),o=t(98),u="".endsWith;e(e.P+e.F*t(33)("endsWith"),"String",{endsWith:function(t){var n=o(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,e=i(n.length),c=void 0===r?e:Math.min(i(r),e),a=String(t);return u?u.call(n,a,c):n.slice(c-a.length,c)===a}})},{108:108,32:32,33:33,98:98}],227:[function(t,n,r){"use strict";t(99)("fixed",function(t){return function(){return t(this,"tt","","")}})},{99:99}],228:[function(t,n,r){"use strict";t(99)("fontcolor",function(t){return function(n){return t(this,"font","color",n)}})},{99:99}],229:[function(t,n,r){"use strict";t(99)("fontsize",function(t){return function(n){return t(this,"font","size",n)}})},{99:99}],230:[function(t,n,r){var e=t(32),i=t(105),o=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?o(n):o(55296+((n-=65536)>>10),n%1024+56320))}return r.join("")}})},{105:105,32:32}],231:[function(t,n,r){"use strict";var e=t(32),i=t(98);e(e.P+e.F*t(33)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},{32:32,33:33,98:98}],232:[function(t,n,r){"use strict";t(99)("italics",function(t){return function(){return t(this,"i","","")}})},{99:99}],233:[function(t,n,r){"use strict";var e=t(97)(!0);t(53)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},{53:53,97:97}],234:[function(t,n,r){"use strict";t(99)("link",function(t){return function(n){return t(this,"a","href",n)}})},{99:99}],235:[function(t,n,r){var e=t(32),i=t(107),o=t(108);e(e.S,"String",{raw:function(t){for(var n=i(t.raw),r=o(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),c1?arguments[1]:void 0,n.length)),e=String(t);return u?u.call(n,e,r):n.slice(r,r+e.length)===e}})},{108:108,32:32,33:33,98:98}],239:[function(t,n,r){"use strict";t(99)("strike",function(t){return function(){return t(this,"strike","","")}})},{99:99}],240:[function(t,n,r){"use strict";t(99)("sub",function(t){return function(){return t(this,"sub","","")}})},{99:99}],241:[function(t,n,r){"use strict";t(99)("sup",function(t){return function(){return t(this,"sup","","")}})},{99:99}],242:[function(t,n,r){"use strict";t(102)("trim",function(t){return function(){return t(this,3)}})},{102:102}],243:[function(t,n,r){"use strict";var e=t(38),i=t(39),o=t(28),u=t(32),c=t(87),a=t(62).KEY,f=t(34),s=t(94),l=t(92),h=t(114),v=t(117),p=t(116),y=t(115),g=t(57),d=t(31),m=t(47),b=t(7),w=t(107),S=t(110),x=t(85),_=t(66),E=t(71),O=t(70),M=t(67),k=t(76),F=O.f,P=M.f,A=E.f,j=e.Symbol,I=e.JSON,N=I&&I.stringify,R=v("_hidden"),L=v("toPrimitive"),T={}.propertyIsEnumerable,C=s("symbol-registry"),D=s("symbols"),W=s("op-symbols"),U=Object.prototype,G="function"==typeof j,B=e.QObject,z=!B||!B.prototype||!B.prototype.findChild,V=o&&f(function(){return 7!=_(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=F(U,n);e&&delete U[n],P(t,n,r),e&&t!==U&&P(U,n,e)}:P,Y=function(t){var n=D[t]=_(j.prototype);return n._k=t,n},H=G&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},J=function(t,n,r){return t===U&&J(W,n,r),b(t),n=S(n,!0),b(r),i(D,n)?(r.enumerable?(i(t,R)&&t[R][n]&&(t[R][n]=!1),r=_(r,{enumerable:x(0,!1)})):(i(t,R)||P(t,R,x(1,{})),t[R][n]=!0),V(t,n,r)):P(t,n,r)},K=function(t,n){b(t);for(var r,e=d(n=w(n)),i=0,o=e.length;o>i;)J(t,r=e[i++],n[r]);return t},q=function(t,n){return void 0===n?_(t):K(_(t),n)},X=function(t){var n=T.call(this,t=S(t,!0));return!(this===U&&i(D,t)&&!i(W,t))&&(!(n||!i(this,t)||!i(D,t)||i(this,R)&&this[R][t])||n)},$=function(t,n){if(t=w(t),n=S(n,!0),t!==U||!i(D,n)||i(W,n)){var r=F(t,n);return!r||!i(D,n)||i(t,R)&&t[R][n]||(r.enumerable=!0),r}},Z=function(t){for(var n,r=A(w(t)),e=[],o=0;r.length>o;)i(D,n=r[o++])||n==R||n==a||e.push(n);return e},Q=function(t){for(var n,r=t===U,e=A(r?W:w(t)),o=[],u=0;e.length>u;)!i(D,n=e[u++])||r&&!i(U,n)||o.push(D[n]);return o};G||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(r){this===U&&n.call(W,r),i(this,R)&&i(this[R],t)&&(this[R][t]=!1),V(this,t,x(1,r))};return o&&z&&V(U,t,{configurable:!0,set:n}),Y(t)},c(j.prototype,"toString",function(){return this._k}),O.f=$,M.f=J,t(72).f=E.f=Z,t(77).f=X,t(73).f=Q,o&&!t(58)&&c(U,"propertyIsEnumerable",X,!0),p.f=function(t){return Y(v(t))}),u(u.G+u.W+u.F*!G,{Symbol:j});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;tt.length>nt;)v(tt[nt++]);for(var tt=k(v.store),nt=0;tt.length>nt;)y(tt[nt++]);u(u.S+u.F*!G,"Symbol",{for:function(t){return i(C,t+="")?C[t]:C[t]=j(t)},keyFor:function(t){if(H(t))return g(C,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!G,"Object",{create:q,defineProperty:J,defineProperties:K,getOwnPropertyDescriptor:$,getOwnPropertyNames:Z,getOwnPropertySymbols:Q}),I&&u(u.S+u.F*(!G||f(function(){var t=j();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!H(t)){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);return n=e[1],"function"==typeof n&&(r=n),!r&&m(n)||(n=function(t,n){if(r&&(n=r.call(this,t,n)),!H(n))return n}),e[1]=n,N.apply(I,e)}}}),j.prototype[L]||t(40)(j.prototype,L,j.prototype.valueOf),l(j,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},{107:107,110:110,114:114,115:115,116:116,117:117,28:28,31:31,32:32,34:34,38:38,39:39,40:40,47:47,57:57,58:58,62:62,66:66,67:67,7:7,70:70,71:71,72:72,73:73,76:76,77:77,85:85,87:87,92:92,94:94}],244:[function(t,n,r){"use strict";var e=t(32),i=t(113),o=t(112),u=t(7),c=t(105),a=t(108),f=t(49),s=t(38).ArrayBuffer,l=t(95),h=o.ArrayBuffer,v=o.DataView,p=i.ABV&&s.isView,y=h.prototype.slice,g=i.VIEW;e(e.G+e.W+e.F*(s!==h),{ArrayBuffer:h}),e(e.S+e.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return p&&p(t)||f(t)&&g in t}}),e(e.P+e.U+e.F*t(34)(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,n){if(void 0!==y&&void 0===n)return y.call(u(this),t);for(var r=u(this).byteLength,e=c(t,r),i=c(void 0===n?r:n,r),o=new(l(this,h))(a(i-e)),f=new v(this),s=new v(o),p=0;e0?arguments[0]:void 0)}},y={get:function(t){if(f(t)){var n=s(t);return n===!0?h(this).get(t):n?n[this._i]:void 0}},set:function(t,n){return a.def(this,t,n)}},g=n.exports=t(22)("WeakMap",p,y,a,!0,!0);7!=(new g).set((Object.freeze||Object)(v),7).get(v)&&(e=a.getConstructor(p),c(e.prototype,y),u.NEED=!0,i(["delete","has","get","set"],function(t){var n=g.prototype,r=n[t];o(n,t,function(n,i){if(f(n)&&!l(n)){this._f||(this._f=new e);var o=this._f[t](n,i);return"set"==t?this:o}return r.call(this,n,i)})}))},{12:12,21:21,22:22,49:49,62:62,65:65,87:87}],256:[function(t,n,r){"use strict";var e=t(21);t(22)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(this,t,!0)}},e,!1,!0)},{21:21,22:22}],257:[function(t,n,r){"use strict";var e=t(32),i=t(11)(!0);e(e.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),t(5)("includes")},{11:11,32:32,5:5}],258:[function(t,n,r){var e=t(32),i=t(64)(),o=t(38).process,u="process"==t(18)(o);e(e.G,{asap:function(t){var n=u&&o.domain;i(n?n.bind(t):t)}})},{18:18,32:32,38:38,64:64}],259:[function(t,n,r){var e=t(32),i=t(18);e(e.S,"Error",{isError:function(t){return"Error"===i(t)}})},{18:18,32:32}],260:[function(t,n,r){var e=t(32);e(e.P+e.R,"Map",{toJSON:t(20)("Map")})},{20:20,32:32}],261:[function(t,n,r){var e=t(32);e(e.S,"Math",{iaddh:function(t,n,r,e){var i=t>>>0,o=n>>>0,u=r>>>0;return o+(e>>>0)+((i&u|(i|u)&~(i+u>>>0))>>>31)|0}})},{32:32}],262:[function(t,n,r){var e=t(32);e(e.S,"Math",{imulh:function(t,n){var r=+t,e=+n,i=65535&r,o=65535&e,u=r>>16,c=e>>16,a=(u*o>>>0)+(i*o>>>16);return u*c+(a>>16)+((i*c>>>0)+(65535&a)>>16)}})},{32:32}],263:[function(t,n,r){var e=t(32);e(e.S,"Math",{isubh:function(t,n,r,e){var i=t>>>0,o=n>>>0,u=r>>>0;return o-(e>>>0)-((~i&u|~(i^u)&i-u>>>0)>>>31)|0}})},{32:32}],264:[function(t,n,r){var e=t(32);e(e.S,"Math",{umulh:function(t,n){var r=+t,e=+n,i=65535&r,o=65535&e,u=r>>>16,c=e>>>16,a=(u*o>>>0)+(i*o>>>16);return u*c+(a>>>16)+((i*c>>>0)+(65535&a)>>>16)}})},{32:32}],265:[function(t,n,r){"use strict";var e=t(32),i=t(109),o=t(3),u=t(67);t(28)&&e(e.P+t(69),"Object",{__defineGetter__:function(t,n){u.f(i(this),t,{get:o(n),enumerable:!0,configurable:!0})}})},{109:109,28:28,3:3,32:32,67:67,69:69}],266:[function(t,n,r){"use strict";var e=t(32),i=t(109),o=t(3),u=t(67);t(28)&&e(e.P+t(69),"Object",{__defineSetter__:function(t,n){u.f(i(this),t,{set:o(n),enumerable:!0,configurable:!0})}})},{109:109,28:28,3:3,32:32,67:67,69:69}],267:[function(t,n,r){var e=t(32),i=t(79)(!0);e(e.S,"Object",{entries:function(t){return i(t)}})},{32:32,79:79}],268:[function(t,n,r){var e=t(32),i=t(80),o=t(107),u=t(70),c=t(24);e(e.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,r=o(t),e=u.f,a=i(r),f={},s=0;a.length>s;)c(f,n=a[s++],e(r,n));return f}})},{107:107,24:24,32:32,70:70,80:80}],269:[function(t,n,r){"use strict";var e=t(32),i=t(109),o=t(110),u=t(74),c=t(70).f;t(28)&&e(e.P+t(69),"Object",{__lookupGetter__:function(t){var n,r=i(this),e=o(t,!0);do{if(n=c(r,e))return n.get}while(r=u(r))}})},{109:109,110:110,28:28,32:32,69:69,70:70,74:74}],270:[function(t,n,r){"use strict";var e=t(32),i=t(109),o=t(110),u=t(74),c=t(70).f;t(28)&&e(e.P+t(69),"Object",{__lookupSetter__:function(t){var n,r=i(this),e=o(t,!0);do{if(n=c(r,e))return n.set}while(r=u(r))}})},{109:109,110:110,28:28,32:32,69:69,70:70,74:74}],271:[function(t,n,r){var e=t(32),i=t(79)(!1);e(e.S,"Object",{values:function(t){return i(t)}})},{32:32,79:79}],272:[function(t,n,r){"use strict";var e=t(32),i=t(38),o=t(23),u=t(64)(),c=t(117)("observable"),a=t(3),f=t(7),s=t(6),l=t(86),h=t(40),v=t(37),p=v.RETURN,y=function(t){return null==t?void 0:a(t)},g=function(t){var n=t._c;n&&(t._c=void 0,n())},d=function(t){return void 0===t._o},m=function(t){d(t)||(t._o=void 0,g(t))},b=function(t,n){f(t),this._c=void 0,this._o=t,t=new w(this);try{var r=n(t),e=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){e.unsubscribe()}:a(r),this._c=r)}catch(n){return void t.error(n)}d(this)&&g(this)};b.prototype=l({},{unsubscribe:function(){m(this)}});var w=function(t){this._s=t};w.prototype=l({},{next:function(t){var n=this._s;if(!d(n)){var r=n._o;try{var e=y(r.next);if(e)return e.call(r,t)}catch(t){try{m(n)}finally{throw t}}}},error:function(t){var n=this._s;if(d(n))throw t;var r=n._o;n._o=void 0;try{var e=y(r.error);if(!e)throw t;t=e.call(r,t)}catch(t){try{g(n)}finally{throw t}}return g(n),t},complete:function(t){var n=this._s;if(!d(n)){var r=n._o;n._o=void 0;try{var e=y(r.complete);t=e?e.call(r,t):void 0}catch(t){try{g(n)}finally{throw t}}return g(n),t}}});var S=function(t){s(this,S,"Observable","_f")._f=a(t)};l(S.prototype,{subscribe:function(t){return new b(t,this._f)},forEach:function(t){var n=this;return new(o.Promise||i.Promise)(function(r,e){a(t);var i=n.subscribe({next:function(n){try{return t(n)}catch(t){e(t),i.unsubscribe()}},error:e,complete:r})})}}),l(S,{from:function(t){var n="function"==typeof this?this:S,r=y(f(t)[c]);if(r){var e=f(r.call(t));return e.constructor===n?e:new n(function(t){return e.subscribe(t)})}return new n(function(n){var r=!1;return u(function(){if(!r){try{if(v(t,!1,function(t){if(n.next(t),r)return p})===p)return}catch(t){if(r)throw t;return void n.error(t)}n.complete()}}),function(){r=!0}})},of:function(){for(var t=0,n=arguments.length,r=Array(n);t1?arguments[1]:void 0,!1)}})},{100:100,32:32}],286:[function(t,n,r){"use strict";var e=t(32),i=t(100);e(e.P,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},{100:100,32:32}],287:[function(t,n,r){"use strict";t(102)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},{102:102}],288:[function(t,n,r){"use strict";t(102)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},{102:102}],289:[function(t,n,r){t(115)("asyncIterator")},{115:115}],290:[function(t,n,r){t(115)("observable")},{115:115}],291:[function(t,n,r){var e=t(32);e(e.S,"System",{global:t(38)})},{32:32,38:38}],292:[function(t,n,r){for(var e=t(130),i=t(87),o=t(38),u=t(40),c=t(56),a=t(117),f=a("iterator"),s=a("toStringTag"),l=c.Array,h=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],v=0;v<5;v++){var p,y=h[v],g=o[y],d=g&&g.prototype;if(d){d[f]||u(d,f,l),d[s]||u(d,s,y),c[y]=l;for(p in e)d[p]||i(d,p,e[p],!0)}}},{117:117,130:130,38:38,40:40,56:56,87:87}],293:[function(t,n,r){var e=t(32),i=t(104);e(e.G+e.B,{setImmediate:i.set,clearImmediate:i.clear})},{104:104,32:32}],294:[function(t,n,r){var e=t(38),i=t(32),o=t(44),u=t(83),c=e.navigator,a=!!c&&/MSIE .\./.test(c.userAgent),f=function(t){return a?function(n,r){return t(o(u,[].slice.call(arguments,2),"function"==typeof n?n:Function(n)),r)}:t};i(i.G+i.B+i.F*a,{setTimeout:f(e.setTimeout),setInterval:f(e.setInterval)})},{32:32,38:38,44:44,83:83}],295:[function(t,n,r){t(243),t(180),t(182),t(181),t(184),t(186),t(191),t(185),t(183),t(193),t(192),t(188),t(189),t(187),t(179),t(190),t(194),t(195),t(146),t(148),t(147),t(197),t(196),t(167),t(177),t(178),t(168),t(169),t(170),t(171),t(172),t(173),t(174),t(175),t(176),t(150),t(151),t(152),t(153),t(154),t(155),t(156),t(157),t(158),t(159),t(160),t(161),t(162),t(163),t(164),t(165),t(166),t(230),t(235),t(242),t(233),t(225),t(226),t(231),t(236),t(238),t(221),t(222),t(223),t(224),t(227),t(228),t(229),t(232),t(234),t(237),t(239),t(240),t(241),t(141),t(143),t(142),t(145),t(144),t(129),t(127),t(134),t(131),t(137),t(139),t(126),t(133),t(123),t(138),t(121),t(136),t(135),t(128),t(132),t(120),t(122),t(125),t(124),t(140),t(130),t(213),t(219),t(214),t(215),t(216),t(217),t(218),t(198),t(149),t(220),t(255),t(256),t(244),t(245),t(250),t(253),t(254),t(248),t(251),t(249),t(252),t(246),t(247),t(199),t(200),t(201),t(202),t(203),t(206),t(204),t(205),t(207),t(208),t(209),t(210),t(212),t(211),t(257),t(283),t(286),t(285),t(287),t(288),t(284),t(289),t(290),t(268),t(271),t(267),t(265),t(266),t(269),t(270),t(260),t(282),t(291),t(259),t(261),t(263),t(262),t(264),t(273),t(274),t(276),t(275),t(278),t(277),t(279),t(280),t(281),t(258),t(272),t(294),t(293),t(292),n.exports=t(23)},{120:120,121:121,122:122,123:123,124:124,125:125,126:126,127:127,128:128,129:129,130:130,131:131,132:132,133:133,134:134,135:135,136:136,137:137,138:138,139:139,140:140,141:141,142:142,143:143,144:144,145:145,146:146,147:147,148:148,149:149,150:150,151:151,152:152,153:153,154:154,155:155,156:156,157:157,158:158,159:159,160:160,161:161,162:162,163:163,164:164,165:165,166:166,167:167,168:168,169:169,170:170,171:171,172:172,173:173,174:174,175:175,176:176,177:177,178:178,179:179,180:180,181:181,182:182,183:183,184:184,185:185,186:186,187:187,188:188,189:189,190:190,191:191,192:192,193:193,194:194,195:195,196:196,197:197,198:198,199:199,200:200,201:201,202:202,203:203,204:204,205:205,206:206,207:207,208:208,209:209,210:210,211:211,212:212,213:213,214:214,215:215,216:216,217:217,218:218,219:219,220:220,221:221,222:222,223:223,224:224,225:225,226:226,227:227,228:228,229:229,23:23,230:230,231:231,232:232,233:233,234:234,235:235,236:236,237:237,238:238,239:239,240:240,241:241,242:242,243:243,244:244,245:245,246:246,247:247,248:248,249:249,250:250,251:251,252:252,253:253,254:254,255:255,256:256,257:257,258:258,259:259,260:260,261:261,262:262,263:263,264:264,265:265,266:266,267:267,268:268,269:269,270:270,271:271,272:272,273:273,274:274,275:275,276:276,277:277,278:278,279:279,280:280,281:281,282:282,283:283,284:284,285:285,286:286,287:287,288:288,289:289,290:290,291:291,292:292,293:293,294:294}],296:[function(t,n,r){(function(t){!function(t){"use strict";function r(t,n,r,e){var o=n&&n.prototype instanceof i?n:i,u=Object.create(o.prototype),c=new h(e||[]);return u._invoke=f(t,r,c),u}function e(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function u(){}function c(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function a(t){function n(r,i,o,u){var c=e(t[r],t,i);if("throw"!==c.type){var a=c.arg,f=a.value;return f&&"object"==typeof f&&d.call(f,"__await")?Promise.resolve(f.__await).then(function(t){n("next",t,o,u)},function(t){n("throw",t,o,u)}):Promise.resolve(f).then(function(t){a.value=t,o(a)},u)}u(c.arg)}function r(t,r){function e(){return new Promise(function(e,i){n(t,r,e,i)})}return i=i?i.then(e,e):e()}"object"==typeof process&&process.domain&&(n=process.domain.bind(n));var i;this._invoke=r}function f(t,n,r){var i=_;return function(o,u){if(i===O)throw new Error("Generator is already running");if(i===M){if("throw"===o)throw u;return p()}for(;;){var c=r.delegate;if(c){if("return"===o||"throw"===o&&c.iterator[o]===y){r.delegate=null;var a=c.iterator.return;if(a){var f=e(a,c.iterator,u);if("throw"===f.type){o="throw",u=f.arg;continue}}if("return"===o)continue}var f=e(c.iterator[o],c.iterator,u);if("throw"===f.type){r.delegate=null,o="throw",u=f.arg;continue}o="next",u=y;var s=f.arg;if(!s.done)return i=E,s;r[c.resultName]=s.value,r.next=c.nextLoc,r.delegate=null}if("next"===o)r.sent=r._sent=u;else if("throw"===o){if(i===_)throw i=M,u;r.dispatchException(u)&&(o="next",u=y)}else"return"===o&&r.abrupt("return",u);i=O;var f=e(t,n,r);if("normal"===f.type){i=r.done?M:E;var s={value:f.arg,done:r.done};if(f.arg!==k)return s;r.delegate&&"next"===o&&(u=y)}else"throw"===f.type&&(i=M,o="throw",u=f.arg)}}}function s(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function l(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(s,this),this.reset(!0)}function v(t){if(t){var n=t[b];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,e=function n(){for(;++r=0;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=d.call(i,"catchLoc"),c=d.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--r){var e=this.tryEntries[r];if(e.tryLoc<=this.prev&&d.call(e,"finallyLoc")&&this.prev=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),l(r),k}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var i=e.arg;l(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:v(t),resultName:n,nextLoc:r},k}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]),function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define("GGEntities",["exports"],n):n(t.GGEntities=t.GGEntities||{})}(this,function(t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},e=function(){function t(t,n){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:1,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!(t instanceof v))return[];null==e&&(e=this.configuration);for(var o=Array.from(e.keys()).reduce(function(t,n){return t|=n},0),u=[],c=0;c=t.capacity)break;var l=!0,h=!1,p=void 0;try{for(var y,g=e[Symbol.iterator]();!(l=(y=g.next()).done);l=!0){var d=i(y.value,2),m=d[0],b=d[1];if("function"==typeof b){var w=b.call(s[m]);"object"!==n(s[m])&&void 0!==w&&(s[m]=w)}}}catch(t){h=!0,p=t}finally{try{!l&&g.return&&g.return()}finally{if(h)throw p}}u.push({id:f,entity:s})}return 1===u.length?u[0]:u}}]),t}(),c=function(){function t(){r(this,t),this.init()}return e(t,[{key:"init",value:function(){this.components=new Map}},{key:"newComponent",value:function(t){var r=this.components.get(t);if(null===r||void 0===r)return null;switch(void 0===r?"undefined":n(r)){case"function":return new r;case"object":return function(t){var n={};return Object.keys(t).forEach(function(r){return n[r]=t[r]}),n}(r);default:return r}}},{key:"registerComponent",value:function(t){if(null===t||void 0===t)throw TypeError("component cannot be null or undefined.");var n=Math.max.apply(Math,o(this.components.keys())),r=void 0===n||null===n||n===-(1/0)?1:0===n?1:2*n;return this.components.set(r,t),r}},{key:"getComponents",value:function(){return this.components}}]),t}(),a={Logic:0,Render:1,Init:2},f=function(){function t(){r(this,t),this.init()}return e(t,[{key:"init",value:function(){this.logicSystems=new Map,this.renderSystems=new Map,this.initSystems=new Map}},{key:"registerSystem",value:function(t,n,r){if(t!==a.Logic&&t!==a.Render&&t!==a.Init)throw TypeError("type must be a valid SystemType.");if("number"!=typeof n)throw TypeError("components must be a number.");if("function"!=typeof r)throw TypeError("callback must be a function.");var e={components:n,callback:r},i=Math.max.apply(Math,[0].concat(o(this.logicSystems.keys()),o(this.renderSystems.keys()),o(this.initSystems.keys())))+1;switch(t){case a.Logic:this.logicSystems.set(i,e);break;case a.Render:this.renderSystems.set(i,e);break;case a.Init:this.initSystems.set(i,e)}return i}},{key:"removeSystem",value:function(t){return this.logicSystems.delete(t)||this.renderSystems.delete(t)||this.initSystems.delete(t)}}]),t}(),s=function(){return new Promise(function(t){t()})},l=function(t,r,e,i){return i?new Promise(function(u){setTimeout(function(){u("object"===(void 0===r?"undefined":n(r))?t.call.apply(t,[r].concat(o(e))):t.apply.apply(t,[r].concat(o(e))))},i)}):new Promise(function(i){i("object"===(void 0===r?"undefined":n(r))?t.call.apply(t,[r].concat(o(e))):t.apply.apply(t,[r].concat(o(e))))})},h=function(){function t(){r(this,t),this.init()}return e(t,[{key:"init",value:function(){this.events=new Map}},{key:"listen",value:function(t,n){if("string"==typeof t&&"function"==typeof n){this.events.has(t)||this.events.set(t,new Map);var r=-1;return this.events.forEach(function(t){r=Math.max.apply(Math,[r].concat(o(t.keys())))}),++r,this.events.get(t).set(r,n),r}}},{key:"stopListen",value:function(t){var n=!0,r=!1,e=void 0;try{for(var i,o=this.events.values()[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var u=i.value,c=!0,a=!1,f=void 0;try{for(var s,l=u.keys()[Symbol.iterator]();!(c=(s=l.next()).done);c=!0){if(s.value===t)return u.delete(t)}}catch(t){a=!0,f=t}finally{try{!c&&l.return&&l.return()}finally{if(a)throw f}}}}catch(t){r=!0,e=t}finally{try{!n&&o.return&&o.return()}finally{if(r)throw e}}return!1}},{key:"trigger",value:function(){var t=this instanceof v?this.eventHandler:this,n=Array.from(arguments),r=n.splice(0,1),e=i(r,1),o=e[0];if("string"!=typeof o||!t.events.has(o))return s();var u=[],c=!0,a=!1,f=void 0;try{for(var h,p=t.events.get(o).values()[Symbol.iterator]();!(c=(h=p.next()).done);c=!0){var y=h.value;u.push(l(y,this,n))}}catch(t){a=!0,f=t}finally{try{!c&&p.return&&p.return()}finally{if(a)throw f}}return Promise.all(u)}},{key:"triggerDelayed",value:function(){var t=this instanceof v?this.eventHandler:this,n=Array.from(arguments),r=n.splice(0,2),e=i(r,2),o=e[0],u=e[1];if("string"!=typeof o||!Number.isInteger(u)||!t.events.has(o))return s();var c=[],a=!0,f=!1,h=void 0;try{for(var p,y=t.events.get(o).values()[Symbol.iterator]();!(a=(p=y.next()).done);a=!0){var g=p.value;c.push(l(g,this,n,u))}}catch(t){f=!0,h=t}finally{try{!a&&y.return&&y.return()}finally{if(f)throw h}}return Promise.all(c)}}]),t}(),v=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;r(this,t),this.init(n)}return e(t,[{key:"init",value:function(t){this.capacity=t,this.currentMaxEntity=-1,this.entityFactory=new u,this.systemManager=new f,this.componentManager=new c,this.eventHandler=new h,this.entityConfigurations=new Map,this.componentLookup=new Map,this.entities=Array.from({length:this.capacity},function(){return{components:0}})}},{key:"increaseCapacity",value:function(){var t=this,n=this.capacity;this.capacity*=2,this.entities=[].concat(o(this.entities),o(Array.from({length:n},function(){return{components:0}})));for(var r=n;r=this.capacity?{id:this.capacity,entity:null}:(n>this.currentMaxEntity&&(this.currentMaxEntity=n),this.entities[n].components=t,{id:n,entity:this.entities[n]})}},{key:"deleteEntity",value:function(t){if(this.entities[t].components=0,!(t=0;--n)if(0!==this.entities[n].components)return void(this.currentMaxEntity=n);this.currentMaxEntity=0}}},{key:"getEntities",value:regeneratorRuntime.mark(function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=0;case 1:if(!(n<=this.currentMaxEntity)){t.next=8;break}if(0!==r&&(this.entities[n].components&r)!==r){t.next=5;break}return t.next=5,{id:n,entity:this.entities[n]};case 5:++n,t.next=1;break;case 8:case"end":return t.stop()}},t,this)})},{key:"registerConfiguration",value:function(){var t=Math.max.apply(Math,[0].concat(o(this.entityConfigurations.keys())))+1;return this.entityConfigurations.set(t,this.entityFactory.createConfiguration()),t}},{key:"registerComponent",value:function(t,r){if("string"!=typeof t||0===t.length)throw TypeError("name must be a non-empty string.");if(null==this.componentLookup.get(t)){var e=this.componentManager.registerComponent(r);this.componentLookup.set(t,e);var i=!0,o=!1,u=void 0;try{for(var c,a=this.entities[Symbol.iterator]();!(i=(c=a.next()).done);i=!0){var f=c.value;f[e]=this.componentManager.newComponent(e),Object.defineProperty(f,t,{get:function(){return this[e]},configurable:!0})}}catch(t){o=!0,u=t}finally{try{!i&&a.return&&a.return()}finally{if(o)throw u}}var s=void 0;switch(void 0===r?"undefined":n(r)){case"function":s=r;break;case"object":s=function(){var t=!0,n=!1,e=void 0;try{for(var i,o=Object.keys(r)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var u=i.value;this[u]=r[u]}}catch(t){n=!0,e=t}finally{try{!t&&o.return&&o.return()}finally{if(n)throw e}}};break;default:s=function(){return r}}return this.entityFactory.registerInitializer(e,s),e}}},{key:"addComponent",value:function(t,n){this.entities[t].components|="string"==typeof n?this.componentLookup.get(n):n}},{key:"removeComponent",value:function(t,n){this.entities[t].components&="string"==typeof n?~this.componentLookup.get(n):~n}},{key:"registerSystem",value:function(t,n,r){return Array.isArray(n)&&(n=Array.from(this.componentLookup).reduce(function(t,n){return["",t[1]|n[1]]},["",0])[1]),this.systemManager.registerSystem(t,n,r)}},{key:"registerLogicSystem",value:function(t,n){return this.registerSystem(a.Logic,t,n)}},{key:"registerRenderSystem",value:function(t,n){return this.registerSystem(a.Render,t,n)}},{key:"registerInitSystem",value:function(t,n){return this.registerSystem(a.Init,t,n)}},{key:"removeSystem",value:function(t){return this.systemManager.removeSystem(t)}},{key:"onLogic",value:function(t){var n=!0,r=!1,e=void 0;try{for(var i,o=this.systemManager.logicSystems.values()[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var u=i.value;u.callback.call(this,this.getEntities(u.components),t)}}catch(t){r=!0,e=t}finally{try{!n&&o.return&&o.return()}finally{if(r)throw e}}}},{key:"onRender",value:function(t){var n=!0,r=!1,e=void 0;try{for(var i,o=this.systemManager.renderSystems.values()[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var u=i.value;u.callback.call(this,this.getEntities(u.components),t)}}catch(t){r=!0,e=t}finally{try{!n&&o.return&&o.return()}finally{if(r)throw e}}}},{key:"onInit",value:function(t){var n=!0,r=!1,e=void 0;try{for(var i,o=this.systemManager.initSystems.values()[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var u=i.value;u.callback.call(this,this.getEntities(u.components),t)}}catch(t){r=!0,e=t}finally{try{!n&&o.return&&o.return()}finally{if(r)throw e}}}},{key:"registerInitializer",value:function(t,n){"string"==typeof t?this.entityFactory.registerInitializer(this.componentLookup.get(t),n):this.entityFactory.registerInitializer(t,n)}},{key:"build",value:function(){return this.entityFactory.build(),this}},{key:"withComponent",value:function(t,n){return"string"==typeof t?this.entityFactory.withComponent(this.componentLookup.get(t),n):this.entityFactory.withComponent(t,n),this}},{key:"create",value:function(t,n){var r=void 0;if(Number.isInteger(n)&&n>0&&void 0===(r=this.entityConfigurations.get(n)))throw Error("Could not find entity configuration. If you wish to create entities without a configuration, do not pass a configurationId.");return this.entityFactory.create(this,t,r)}},{key:"listen",value:function(t,n){return this.eventHandler.listen(t,n)}},{key:"stopListen",value:function(t){return this.eventHandler.stopListen(t)}},{key:"trigger",value:function(){var t;return(t=this.eventHandler.trigger).call.apply(t,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"triggerDelayed",value:function(){var t;return(t=this.eventHandler.triggerDelayed).call.apply(t,[this].concat(Array.prototype.slice.call(arguments)))}}]),t}();t.EntityManager=v,t.EntityFactory=u,t.SystemManager=f,t.SystemType=a,t.ComponentManager=c,t.EventHandler=h,Object.defineProperty(t,"__esModule",{value:!0})}); \ No newline at end of file +!function t(n,r,e){function i(u,c){if(!r[u]){if(!n[u]){var a="function"==typeof require&&require;if(!c&&a)return a(u,!0);if(o)return o(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var s=r[u]={exports:{}};n[u][0].call(s.exports,function(t){var r=n[u][1][t];return i(r||t)},s,s.exports,t,n,r,e)}return r[u].exports}for(var o="function"==typeof require&&require,u=0;u2?arguments[2]:void 0,s=Math.min((void 0===f?u:i(f,u))-a,u-c),l=1;for(a0;)a in r?r[c]=r[a]:delete r[c],c+=l,a+=l;return r}},{114:114,118:118,119:119}],9:[function(t,n,r){"use strict";var e=t(119),i=t(114),o=t(118);n.exports=function(t){for(var n=e(this),r=o(n.length),u=arguments.length,c=i(u>1?arguments[1]:void 0,r),a=u>2?arguments[2]:void 0,f=void 0===a?r:i(a,r);f>c;)n[c++]=t;return n}},{114:114,118:118,119:119}],10:[function(t,n,r){var e=t(39);n.exports=function(t,n){var r=[];return e(t,!1,r.push,r,n),r}},{39:39}],11:[function(t,n,r){var e=t(117),i=t(118),o=t(114);n.exports=function(t){return function(n,r,u){var c,a=e(n),f=i(a.length),s=o(u,f);if(t&&r!=r){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}}},{114:114,117:117,118:118}],12:[function(t,n,r){var e=t(25),i=t(47),o=t(119),u=t(118),c=t(15);n.exports=function(t,n){var r=1==t,a=2==t,f=3==t,s=4==t,l=6==t,h=5==t||l,v=n||c;return function(n,c,p){for(var y,d,g=o(n),m=i(g),b=e(c,p,3),w=u(m.length),S=0,x=r?v(n,w):a?v(n,0):void 0;w>S;S++)if((h||S in m)&&(y=m[S],d=b(y,S,g),t))if(r)x[S]=d;else if(d)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:x.push(y)}else if(s)return!1;return l?-1:f||s?s:x}}},{118:118,119:119,15:15,25:25,47:47}],13:[function(t,n,r){var e=t(3),i=t(119),o=t(47),u=t(118);n.exports=function(t,n,r,c,a){e(n);var f=i(t),s=o(f),l=u(f.length),h=a?l-1:0,v=a?-1:1;if(r<2)for(;;){if(h in s){c=s[h],h+=v;break}if(h+=v,a?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;a?h>=0:l>h;h+=v)h in s&&(c=n(c,s[h],h,f));return c}},{118:118,119:119,3:3,47:47}],14:[function(t,n,r){var e=t(51),i=t(49),o=t(128)("species");n.exports=function(t){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)||(n=void 0),e(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},{128:128,49:49,51:51}],15:[function(t,n,r){var e=t(14);n.exports=function(t,n){return new(e(t))(n)}},{14:14}],16:[function(t,n,r){"use strict";var e=t(3),i=t(51),o=t(46),u=[].slice,c={},a=function(t,n,r){if(!(n in c)){for(var e=[],i=0;i1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(e(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!d(p(this,n),t)}}),h&&e(s.prototype,"size",{get:function(){return p(this,n)[y]}}),s},def:function(t,n,r){var e,i,o=d(t,n);return o?o.v=r:(t._l=o={i:i=v(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[y]++,"F"!==i&&(t._i[i]=o)),t},getEntry:d,setStrong:function(t,n,r){f(t,n,function(t,r){this._t=p(t,n),this._k=r,this._l=void 0},function(){for(var t=this,n=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==n?s(0,r.k):"values"==n?s(0,r.v):s(0,[r.k,r.v]):(t._t=void 0,s(1))},r?"entries":"values",!r,!0),l(n)}}},{100:100,125:125,25:25,29:29,39:39,55:55,57:57,6:6,66:66,71:71,72:72,93:93}],20:[function(t,n,r){var e=t(17),i=t(10);n.exports=function(t){return function(){if(e(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},{10:10,17:17}],21:[function(t,n,r){"use strict";var e=t(93),i=t(66).getWeak,o=t(7),u=t(51),c=t(6),a=t(39),f=t(12),s=t(41),l=t(125),h=f(5),v=f(6),p=0,y=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},g=function(t,n){return h(t.a,function(t){return t[0]===n})};d.prototype={get:function(t){var n=g(this,t);if(n)return n[1]},has:function(t){return!!g(this,t)},set:function(t,n){var r=g(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=v(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},n.exports={getConstructor:function(t,n,r,o){var f=t(function(t,e){c(t,f,n,"_i"),t._t=n,t._i=p++,t._l=void 0,void 0!=e&&a(e,r,t[o],t)});return e(f.prototype,{delete:function(t){if(!u(t))return!1;var r=i(t);return!0===r?y(l(this,n)).delete(t):r&&s(r,this._i)&&delete r[this._i]},has:function(t){if(!u(t))return!1;var r=i(t);return!0===r?y(l(this,n)).has(t):r&&s(r,this._i)}}),f},def:function(t,n,r){var e=i(o(n),!0);return!0===e?y(t).set(n,r):e[t._i]=r,t},ufstore:y}},{12:12,125:125,39:39,41:41,51:51,6:6,66:66,7:7,93:93}],22:[function(t,n,r){"use strict";var e=t(40),i=t(33),o=t(94),u=t(93),c=t(66),a=t(39),f=t(6),s=t(51),l=t(35),h=t(56),v=t(101),p=t(45);n.exports=function(t,n,r,y,d,g){var m=e[t],b=m,w=d?"set":"add",S=b&&b.prototype,x={},_=function(t){var n=S[t];o(S,t,"delete"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!s(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof b&&(g||S.forEach&&!l(function(){(new b).entries().next()}))){var E=new b,M=E[w](g?{}:-0,1)!=E,O=l(function(){E.has(1)}),k=h(function(t){new b(t)}),P=!g&&l(function(){for(var t=new b,n=5;n--;)t[w](n,n);return!t.has(-0)});k||(b=n(function(n,r){f(n,b,t);var e=p(new m,n,b);return void 0!=r&&a(r,d,e[w],e),e}),b.prototype=S,S.constructor=b),(O||P)&&(_("delete"),_("has"),d&&_("get")),(P||M)&&_(w),g&&S.clear&&delete S.clear}else b=y.getConstructor(n,t,d,w),u(b.prototype,r),c.NEED=!0;return v(b,t),x[t]=b,i(i.G+i.W+i.F*(b!=m),x),g||y.setStrong(b,t,d),b}},{101:101,33:33,35:35,39:39,40:40,45:45,51:51,56:56,6:6,66:66,93:93,94:94}],23:[function(t,n,r){var e=n.exports={version:"2.5.0"};"number"==typeof __e&&(__e=e)},{}],24:[function(t,n,r){"use strict";var e=t(72),i=t(92);n.exports=function(t,n,r){n in t?e.f(t,n,i(0,r)):t[n]=r}},{72:72,92:92}],25:[function(t,n,r){var e=t(3);n.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},{3:3}],26:[function(t,n,r){"use strict";var e=t(35),i=Date.prototype.getTime,o=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};n.exports=e(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!e(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=n<0?"-":n>9999?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(r>99?r:"0"+u(r))+"Z"}:o},{35:35}],27:[function(t,n,r){"use strict";var e=t(7),i=t(120);n.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(e(this),"number"!=t)}},{120:120,7:7}],28:[function(t,n,r){n.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],29:[function(t,n,r){n.exports=!t(35)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{35:35}],30:[function(t,n,r){var e=t(51),i=t(40).document,o=e(i)&&e(i.createElement);n.exports=function(t){return o?i.createElement(t):{}}},{40:40,51:51}],31:[function(t,n,r){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],32:[function(t,n,r){var e=t(81),i=t(78),o=t(82);n.exports=function(t){var n=e(t),r=i.f;if(r)for(var u,c=r(t),a=o.f,f=0;c.length>f;)a.call(t,u=c[f++])&&n.push(u);return n}},{78:78,81:81,82:82}],33:[function(t,n,r){var e=t(40),i=t(23),o=t(42),u=t(94),c=t(25),a=function(t,n,r){var f,s,l,h,v=t&a.F,p=t&a.G,y=t&a.S,d=t&a.P,g=t&a.B,m=p?e:y?e[n]||(e[n]={}):(e[n]||{}).prototype,b=p?i:i[n]||(i[n]={}),w=b.prototype||(b.prototype={});p&&(r=n);for(f in r)s=!v&&m&&void 0!==m[f],l=(s?m:r)[f],h=g&&s?c(l,e):d&&"function"==typeof l?c(Function.call,l):l,m&&u(m,f,l,t&a.U),b[f]!=l&&o(b,f,h),d&&w[f]!=l&&(w[f]=l)};e.core=i,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,n.exports=a},{23:23,25:25,40:40,42:42,94:94}],34:[function(t,n,r){var e=t(128)("match");n.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}},{128:128}],35:[function(t,n,r){n.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],36:[function(t,n,r){"use strict";var e=t(42),i=t(94),o=t(35),u=t(28),c=t(128);n.exports=function(t,n,r){var a=c(t),f=r(u,a,""[t]),s=f[0],l=f[1];o(function(){var n={};return n[a]=function(){return 7},7!=""[t](n)})&&(i(String.prototype,t,s),e(RegExp.prototype,a,2==n?function(t,n){return l.call(t,this,n)}:function(t){return l.call(t,this)}))}},{128:128,28:28,35:35,42:42,94:94}],37:[function(t,n,r){"use strict";var e=t(7);n.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},{7:7}],38:[function(t,n,r){"use strict";function e(t,n,r,f,s,l,h,v){for(var p,y,d=s,g=0,m=!!h&&c(h,v,3);g0)d=e(t,n,p,u(p.length),d,l-1)-1;else{if(d>=9007199254740991)throw TypeError();t[d]=p}d++}g++}return d}var i=t(49),o=t(51),u=t(118),c=t(25),a=t(128)("isConcatSpreadable");n.exports=e},{118:118,128:128,25:25,49:49,51:51}],39:[function(t,n,r){var e=t(25),i=t(53),o=t(48),u=t(7),c=t(118),a=t(129),f={},s={},r=n.exports=function(t,n,r,l,h){var v,p,y,d,g=h?function(){return t}:a(t),m=e(r,l,n?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(v=c(t.length);v>b;b++)if((d=n?m(u(p=t[b])[0],p[1]):m(t[b]))===f||d===s)return d}else for(y=g.call(t);!(p=y.next()).done;)if((d=i(y,m,p.value,n))===f||d===s)return d};r.BREAK=f,r.RETURN=s},{118:118,129:129,25:25,48:48,53:53,7:7}],40:[function(t,n,r){var e=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},{}],41:[function(t,n,r){var e={}.hasOwnProperty;n.exports=function(t,n){return e.call(t,n)}},{}],42:[function(t,n,r){var e=t(72),i=t(92);n.exports=t(29)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},{29:29,72:72,92:92}],43:[function(t,n,r){var e=t(40).document;n.exports=e&&e.documentElement},{40:40}],44:[function(t,n,r){n.exports=!t(29)&&!t(35)(function(){return 7!=Object.defineProperty(t(30)("div"),"a",{get:function(){return 7}}).a})},{29:29,30:30,35:35}],45:[function(t,n,r){var e=t(51),i=t(99).set;n.exports=function(t,n,r){var o,u=n.constructor;return u!==r&&"function"==typeof u&&(o=u.prototype)!==r.prototype&&e(o)&&i&&i(t,o),t}},{51:51,99:99}],46:[function(t,n,r){n.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},{}],47:[function(t,n,r){var e=t(18);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},{18:18}],48:[function(t,n,r){var e=t(58),i=t(128)("iterator"),o=Array.prototype;n.exports=function(t){return void 0!==t&&(e.Array===t||o[i]===t)}},{128:128,58:58}],49:[function(t,n,r){var e=t(18);n.exports=Array.isArray||function(t){return"Array"==e(t)}},{18:18}],50:[function(t,n,r){var e=t(51),i=Math.floor;n.exports=function(t){return!e(t)&&isFinite(t)&&i(t)===t}},{51:51}],51:[function(t,n,r){n.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],52:[function(t,n,r){var e=t(51),i=t(18),o=t(128)("match");n.exports=function(t){var n;return e(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},{128:128,18:18,51:51}],53:[function(t,n,r){var e=t(7);n.exports=function(t,n,r,i){try{return i?n(e(r)[0],r[1]):n(r)}catch(n){var o=t.return;throw void 0!==o&&e(o.call(t)),n}}},{7:7}],54:[function(t,n,r){"use strict";var e=t(71),i=t(92),o=t(101),u={};t(42)(u,t(128)("iterator"),function(){return this}),n.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+" Iterator")}},{101:101,128:128,42:42,71:71,92:92}],55:[function(t,n,r){"use strict";var e=t(60),i=t(33),o=t(94),u=t(42),c=t(41),a=t(58),f=t(54),s=t(101),l=t(79),h=t(128)("iterator"),v=!([].keys&&"next"in[].keys()),p=function(){return this};n.exports=function(t,n,r,y,d,g,m){f(r,n,y);var b,w,S,x=function(t){if(!v&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},_=n+" Iterator",E="values"==d,M=!1,O=t.prototype,k=O[h]||O["@@iterator"]||d&&O[d],P=k||x(d),F=d?E?x("entries"):P:void 0,A="Array"==n?O.entries||k:k;if(A&&(S=l(A.call(new t)))!==Object.prototype&&S.next&&(s(S,_,!0),e||c(S,h)||u(S,h,p)),E&&k&&"values"!==k.name&&(M=!0,P=function(){return k.call(this)}),e&&!m||!v&&!M&&O[h]||u(O,h,P),a[n]=P,a[_]=p,d)if(b={values:E?P:x("values"),keys:g?P:x("keys"),entries:F},m)for(w in b)w in O||o(O,w,b[w]);else i(i.P+i.F*(v||M),n,b);return b}},{101:101,128:128,33:33,41:41,42:42,54:54,58:58,60:60,79:79,94:94}],56:[function(t,n,r){var e=t(128)("iterator"),i=!1;try{var o=[7][e]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}n.exports=function(t,n){if(!n&&!i)return!1;var r=!1;try{var o=[7],u=o[e]();u.next=function(){return{done:r=!0}},o[e]=function(){return u},t(o)}catch(t){}return r}},{128:128}],57:[function(t,n,r){n.exports=function(t,n){return{value:n,done:!!t}}},{}],58:[function(t,n,r){n.exports={}},{}],59:[function(t,n,r){var e=t(81),i=t(117);n.exports=function(t,n){for(var r,o=i(t),u=e(o),c=u.length,a=0;c>a;)if(o[r=u[a++]]===n)return r}},{117:117,81:81}],60:[function(t,n,r){n.exports=!1},{}],61:[function(t,n,r){var e=Math.expm1;n.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},{}],62:[function(t,n,r){var e=t(65),i=Math.pow,o=i(2,-52),u=i(2,-23),c=i(2,127)*(2-u),a=i(2,-126),f=function(t){return t+1/o-1/o};n.exports=Math.fround||function(t){var n,r,i=Math.abs(t),s=e(t);return ic||r!=r?s*(1/0):s*r)}},{65:65}],63:[function(t,n,r){n.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},{}],64:[function(t,n,r){n.exports=Math.scale||function(t,n,r,e,i){return 0===arguments.length||t!=t||n!=n||r!=r||e!=e||i!=i?NaN:t===1/0||t===-1/0?t:(t-n)*(i-e)/(r-n)+e}},{}],65:[function(t,n,r){n.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},{}],66:[function(t,n,r){var e=t(124)("meta"),i=t(51),o=t(41),u=t(72).f,c=0,a=Object.isExtensible||function(){return!0},f=!t(35)(function(){return a(Object.preventExtensions({}))}),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,e)){if(!a(t))return"F";if(!n)return"E";s(t)}return t[e].i},h=function(t,n){if(!o(t,e)){if(!a(t))return!0;if(!n)return!1;s(t)}return t[e].w},v=function(t){return f&&p.NEED&&a(t)&&!o(t,e)&&s(t),t},p=n.exports={KEY:e,NEED:!1,fastKey:l,getWeak:h,onFreeze:v}},{124:124,35:35,41:41,51:51,72:72}],67:[function(t,n,r){var e=t(160),i=t(33),o=t(103)("metadata"),u=o.store||(o.store=new(t(266))),c=function(t,n,r){var i=u.get(t);if(!i){if(!r)return;u.set(t,i=new e)}var o=i.get(n);if(!o){if(!r)return;i.set(n,o=new e)}return o},a=function(t,n,r){var e=c(n,r,!1);return void 0!==e&&e.has(t)},f=function(t,n,r){var e=c(n,r,!1);return void 0===e?void 0:e.get(t)},s=function(t,n,r,e){c(r,e,!0).set(t,n)},l=function(t,n){var r=c(t,n,!1),e=[];return r&&r.forEach(function(t,n){e.push(n)}),e},h=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},v=function(t){i(i.S,"Reflect",t)};n.exports={store:u,map:c,has:a,get:f,set:s,keys:l,key:h,exp:v}},{103:103,160:160,266:266,33:33}],68:[function(t,n,r){var e=t(40),i=t(113).set,o=e.MutationObserver||e.WebKitMutationObserver,u=e.process,c=e.Promise,a="process"==t(18)(u);n.exports=function(){var t,n,r,f=function(){var e,i;for(a&&(e=u.domain)&&e.exit();t;){i=t.fn,t=t.next;try{i()}catch(e){throw t?r():n=void 0,e}}n=void 0,e&&e.enter()};if(a)r=function(){u.nextTick(f)};else if(o){var s=!0,l=document.createTextNode("");new o(f).observe(l,{characterData:!0}),r=function(){l.data=s=!s}}else if(c&&c.resolve){var h=c.resolve();r=function(){h.then(f)}}else r=function(){i.call(e,f)};return function(e){var i={fn:e,next:void 0};n&&(n.next=i),t||(t=i,r()),n=i}}},{113:113,18:18,40:40}],69:[function(t,n,r){"use strict";function e(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=i(n),this.reject=i(r)}var i=t(3);n.exports.f=function(t){return new e(t)}},{3:3}],70:[function(t,n,r){"use strict";var e=t(81),i=t(78),o=t(82),u=t(119),c=t(47),a=Object.assign;n.exports=!a||t(35)(function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=a({},t)[r]||Object.keys(a({},n)).join("")!=e})?function(t,n){for(var r=u(t),a=arguments.length,f=1,s=i.f,l=o.f;a>f;)for(var h,v=c(arguments[f++]),p=s?e(v).concat(s(v)):e(v),y=p.length,d=0;y>d;)l.call(v,h=p[d++])&&(r[h]=v[h]);return r}:a},{119:119,35:35,47:47,78:78,81:81,82:82}],71:[function(t,n,r){var e=t(7),i=t(73),o=t(31),u=t(102)("IE_PROTO"),c=function(){},a=function(){var n,r=t(30)("iframe"),e=o.length;for(r.style.display="none",t(43).appendChild(r),r.src="javascript:",n=r.contentWindow.document,n.open(),n.write("