aboutsummaryrefslogtreecommitdiffstats
path: root/dist/plyr.polyfilled.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/plyr.polyfilled.js')
-rw-r--r--dist/plyr.polyfilled.js2671
1 files changed, 982 insertions, 1689 deletions
diff --git a/dist/plyr.polyfilled.js b/dist/plyr.polyfilled.js
index fe506e35..e47e8865 100644
--- a/dist/plyr.polyfilled.js
+++ b/dist/plyr.polyfilled.js
@@ -23,52 +23,20 @@ var global = module.exports = typeof window != 'undefined' && window.Math == Mat
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
});
-
-
-var _global$2 = Object.freeze({
- default: _global,
- __moduleExports: _global
-});
-
var _core = createCommonjsModule(function (module) {
var core = module.exports = { version: '2.5.3' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
});
-var _core_1 = _core.version;
-
-
-var _core$2 = Object.freeze({
- default: _core,
- __moduleExports: _core,
- version: _core_1
-});
-
var _isObject = function (it) {
return typeof it === 'object' ? it !== null : typeof it === 'function';
};
-
-
-var _isObject$2 = Object.freeze({
- default: _isObject,
- __moduleExports: _isObject
-});
-
-var isObject = ( _isObject$2 && _isObject ) || _isObject$2;
-
var _anObject = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
+ if (!_isObject(it)) throw TypeError(it + ' is not an object!');
return it;
};
-
-
-var _anObject$2 = Object.freeze({
- default: _anObject,
- __moduleExports: _anObject
-});
-
var _fails = function (exec) {
try {
return !!exec();
@@ -77,86 +45,42 @@ var _fails = function (exec) {
}
};
-
-
-var _fails$2 = Object.freeze({
- default: _fails,
- __moduleExports: _fails
-});
-
-var require$$0 = ( _fails$2 && _fails ) || _fails$2;
-
-var _descriptors = !require$$0(function () {
+// Thank's IE8 for his funny defineProperty
+var _descriptors = !_fails(function () {
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});
-
-
-var _descriptors$2 = Object.freeze({
- default: _descriptors,
- __moduleExports: _descriptors
-});
-
-var global$1 = ( _global$2 && _global ) || _global$2;
-
-var document$1 = global$1.document;
+var document$1 = _global.document;
// typeof document.createElement is 'object' in old IE
-var is = isObject(document$1) && isObject(document$1.createElement);
+var is = _isObject(document$1) && _isObject(document$1.createElement);
var _domCreate = function (it) {
return is ? document$1.createElement(it) : {};
};
-
-
-var _domCreate$2 = Object.freeze({
- default: _domCreate,
- __moduleExports: _domCreate
+var _ie8DomDefine = !_descriptors && !_fails(function () {
+ return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7;
});
-var require$$0$1 = ( _descriptors$2 && _descriptors ) || _descriptors$2;
-
-var cel = ( _domCreate$2 && _domCreate ) || _domCreate$2;
-
-var _ie8DomDefine = !require$$0$1 && !require$$0(function () {
- return Object.defineProperty(cel('div'), 'a', { get: function () { return 7; } }).a != 7;
-});
-
-
-
-var _ie8DomDefine$2 = Object.freeze({
- default: _ie8DomDefine,
- __moduleExports: _ie8DomDefine
-});
+// 7.1.1 ToPrimitive(input [, PreferredType])
+// instead of the ES6 spec version, we didn't implement @@toPrimitive case
+// and the second argument - flag - preferred type is a string
var _toPrimitive = function (it, S) {
- if (!isObject(it)) return it;
+ 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");
};
-
-
-var _toPrimitive$2 = Object.freeze({
- default: _toPrimitive,
- __moduleExports: _toPrimitive
-});
-
-var anObject = ( _anObject$2 && _anObject ) || _anObject$2;
-
-var IE8_DOM_DEFINE = ( _ie8DomDefine$2 && _ie8DomDefine ) || _ie8DomDefine$2;
-
-var toPrimitive = ( _toPrimitive$2 && _toPrimitive ) || _toPrimitive$2;
-
var dP = Object.defineProperty;
-var f = require$$0$1 ? Object.defineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE) try {
+var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
+ _anObject(O);
+ P = _toPrimitive(P, true);
+ _anObject(Attributes);
+ if (_ie8DomDefine) try {
return dP(O, P, Attributes);
} catch (e) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
@@ -168,14 +92,6 @@ var _objectDp = {
f: f
};
-
-
-var _objectDp$2 = Object.freeze({
- default: _objectDp,
- __moduleExports: _objectDp,
- f: f
-});
-
var _propertyDesc = function (bitmap, value) {
return {
enumerable: !(bitmap & 1),
@@ -185,88 +101,48 @@ var _propertyDesc = function (bitmap, value) {
};
};
-
-
-var _propertyDesc$2 = Object.freeze({
- default: _propertyDesc,
- __moduleExports: _propertyDesc
-});
-
-var $defineProperty = ( _objectDp$2 && _objectDp ) || _objectDp$2;
-
-var createDesc = ( _propertyDesc$2 && _propertyDesc ) || _propertyDesc$2;
-
-var _hide = require$$0$1 ? function (object, key, value) {
- return $defineProperty.f(object, key, createDesc(1, value));
+var _hide = _descriptors ? function (object, key, value) {
+ return _objectDp.f(object, key, _propertyDesc(1, value));
} : function (object, key, value) {
object[key] = value;
return object;
};
-
-
-var _hide$2 = Object.freeze({
- default: _hide,
- __moduleExports: _hide
-});
-
var hasOwnProperty = {}.hasOwnProperty;
var _has = function (it, key) {
return hasOwnProperty.call(it, key);
};
-
-
-var _has$2 = Object.freeze({
- default: _has,
- __moduleExports: _has
-});
-
var id = 0;
var px = Math.random();
var _uid = function (key) {
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};
-
-
-var _uid$2 = Object.freeze({
- default: _uid,
- __moduleExports: _uid
-});
-
-var hide = ( _hide$2 && _hide ) || _hide$2;
-
-var has = ( _has$2 && _has ) || _has$2;
-
-var uid = ( _uid$2 && _uid ) || _uid$2;
-
-var core = ( _core$2 && _core ) || _core$2;
-
var _redefine = createCommonjsModule(function (module) {
-var SRC = uid('src');
+var SRC = _uid('src');
var TO_STRING = 'toString';
var $toString = Function[TO_STRING];
var TPL = ('' + $toString).split(TO_STRING);
-core.inspectSource = function (it) {
+_core.inspectSource = function (it) {
return $toString.call(it);
};
(module.exports = function (O, key, val, safe) {
var isFunction = typeof val == 'function';
- if (isFunction) has(val, 'name') || hide(val, 'name', key);
+ 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$1) {
+ 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);
+ _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() {
@@ -274,29 +150,15 @@ core.inspectSource = function (it) {
});
});
-
-
-var _redefine$2 = Object.freeze({
- default: _redefine,
- __moduleExports: _redefine
-});
-
var _aFunction = function (it) {
if (typeof it != 'function') throw TypeError(it + ' is not a function!');
return it;
};
-
-
-var _aFunction$2 = Object.freeze({
- default: _aFunction,
- __moduleExports: _aFunction
-});
-
-var aFunction = ( _aFunction$2 && _aFunction ) || _aFunction$2;
+// optional / simple context binding
var _ctx = function (fn, that, length) {
- aFunction(fn);
+ _aFunction(fn);
if (that === undefined) return fn;
switch (length) {
case 1: return function (a) {
@@ -314,17 +176,6 @@ var _ctx = function (fn, that, length) {
};
};
-
-
-var _ctx$2 = Object.freeze({
- default: _ctx,
- __moduleExports: _ctx
-});
-
-var redefine = ( _redefine$2 && _redefine ) || _redefine$2;
-
-var ctx = ( _ctx$2 && _ctx ) || _ctx$2;
-
var PROTOTYPE = 'prototype';
var $export = function (type, name, source) {
@@ -333,8 +184,8 @@ var $export = function (type, name, source) {
var IS_STATIC = type & $export.S;
var IS_PROTO = type & $export.P;
var IS_BIND = type & $export.B;
- var target = IS_GLOBAL ? global$1 : IS_STATIC ? global$1[name] || (global$1[name] = {}) : (global$1[name] || {})[PROTOTYPE];
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
+ 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;
@@ -344,15 +195,15 @@ var $export = function (type, name, source) {
// export native or passed
out = (own ? target : source)[key];
// bind timers to global for call from export context
- exp = IS_BIND && own ? ctx(out, global$1) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
+ 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 (exports[key] != out) _hide(exports, key, exp);
if (IS_PROTO && expProto[key] != out) expProto[key] = out;
}
};
-global$1.core = core;
+_global.core = _core;
// type bitmap
$export.F = 1; // forced
$export.G = 2; // global
@@ -364,16 +215,9 @@ $export.U = 64; // safe
$export.R = 128; // real proto method for `library`
var _export = $export;
-
-
-var _export$2 = Object.freeze({
- default: _export,
- __moduleExports: _export
-});
-
-var TYPED = uid('typed_array');
-var VIEW$1 = uid('view');
-var ABV = !!(global$1.ArrayBuffer && global$1.DataView);
+var TYPED = _uid('typed_array');
+var VIEW$1 = _uid('view');
+var ABV = !!(_global.ArrayBuffer && _global.DataView);
var CONSTR = ABV;
var i = 0;
var l = 9;
@@ -384,9 +228,9 @@ var TypedArrayConstructors = (
).split(',');
while (i < l) {
- if (Typed = global$1[TypedArrayConstructors[i++]]) {
- hide(Typed.prototype, TYPED, true);
- hide(Typed.prototype, VIEW$1, true);
+ if (Typed = _global[TypedArrayConstructors[i++]]) {
+ _hide(Typed.prototype, TYPED, true);
+ _hide(Typed.prototype, VIEW$1, true);
} else CONSTR = false;
}
@@ -397,55 +241,19 @@ var _typed = {
VIEW: VIEW$1
};
-var _typed_1 = _typed.ABV;
-var _typed_2 = _typed.CONSTR;
-var _typed_3 = _typed.TYPED;
-var _typed_4 = _typed.VIEW;
-
-
-var _typed$2 = Object.freeze({
- default: _typed,
- __moduleExports: _typed,
- ABV: _typed_1,
- CONSTR: _typed_2,
- TYPED: _typed_3,
- VIEW: _typed_4
-});
-
var _library = false;
-
-
-var _library$2 = Object.freeze({
- default: _library,
- __moduleExports: _library
-});
-
var _redefineAll = function (target, src, safe) {
- for (var key in src) redefine(target, key, src[key], safe);
+ for (var key in src) _redefine(target, key, src[key], safe);
return target;
};
-
-
-var _redefineAll$2 = Object.freeze({
- default: _redefineAll,
- __moduleExports: _redefineAll
-});
-
var _anInstance = function (it, Constructor, name, forbiddenField) {
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
throw TypeError(name + ': incorrect invocation!');
} return it;
};
-
-
-var _anInstance$2 = Object.freeze({
- default: _anInstance,
- __moduleExports: _anInstance
-});
-
// 7.1.4 ToInteger
var ceil = Math.ceil;
var floor = Math.floor;
@@ -453,121 +261,67 @@ var _toInteger = function (it) {
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
};
-
-
-var _toInteger$2 = Object.freeze({
- default: _toInteger,
- __moduleExports: _toInteger
-});
-
-var toInteger = ( _toInteger$2 && _toInteger ) || _toInteger$2;
+// 7.1.15 ToLength
var min = Math.min;
var _toLength = function (it) {
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
+ return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
};
+// https://tc39.github.io/ecma262/#sec-toindex
-var _toLength$2 = Object.freeze({
- default: _toLength,
- __moduleExports: _toLength
-});
-
-var toLength = ( _toLength$2 && _toLength ) || _toLength$2;
-
var _toIndex = function (it) {
if (it === undefined) return 0;
- var number = toInteger(it);
- var length = toLength(number);
+ var number = _toInteger(it);
+ var length = _toLength(number);
if (number !== length) throw RangeError('Wrong length!');
return length;
};
-
-
-var _toIndex$2 = Object.freeze({
- default: _toIndex,
- __moduleExports: _toIndex
-});
-
var toString = {}.toString;
var _cof = function (it) {
return toString.call(it).slice(8, -1);
};
+// fallback for non-array-like ES3 and non-enumerable old V8 strings
-
-var _cof$2 = Object.freeze({
- default: _cof,
- __moduleExports: _cof
-});
-
-var cof = ( _cof$2 && _cof ) || _cof$2;
-
+// eslint-disable-next-line no-prototype-builtins
var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
- return cof(it) == 'String' ? it.split('') : Object(it);
+ return _cof(it) == 'String' ? it.split('') : Object(it);
};
-
-
-var _iobject$2 = Object.freeze({
- default: _iobject,
- __moduleExports: _iobject
-});
-
// 7.2.1 RequireObjectCoercible(argument)
var _defined = function (it) {
if (it == undefined) throw TypeError("Can't call method on " + it);
return it;
};
+// to indexed object, toObject with fallback for non-array-like ES3 strings
-var _defined$2 = Object.freeze({
- default: _defined,
- __moduleExports: _defined
-});
-
-var IObject = ( _iobject$2 && _iobject ) || _iobject$2;
-
-var defined = ( _defined$2 && _defined ) || _defined$2;
-
var _toIobject = function (it) {
- return IObject(defined(it));
+ return _iobject(_defined(it));
};
-
-
-var _toIobject$2 = Object.freeze({
- default: _toIobject,
- __moduleExports: _toIobject
-});
-
var max = Math.max;
var min$1 = Math.min;
var _toAbsoluteIndex = function (index, length) {
- index = toInteger(index);
+ index = _toInteger(index);
return index < 0 ? max(index + length, 0) : min$1(index, length);
};
+// false -> Array#indexOf
+// true -> Array#includes
-var _toAbsoluteIndex$2 = Object.freeze({
- default: _toAbsoluteIndex,
- __moduleExports: _toAbsoluteIndex
-});
-
-var toIObject = ( _toIobject$2 && _toIobject ) || _toIobject$2;
-
-var toAbsoluteIndex = ( _toAbsoluteIndex$2 && _toAbsoluteIndex ) || _toAbsoluteIndex$2;
var _arrayIncludes = function (IS_INCLUDES) {
return function ($this, el, fromIndex) {
- var O = toIObject($this);
- var length = toLength(O.length);
- var index = toAbsoluteIndex(fromIndex, length);
+ var O = _toIobject($this);
+ var length = _toLength(O.length);
+ var index = _toAbsoluteIndex(fromIndex, length);
var value;
// Array#includes uses SameValueZero equality algorithm
// eslint-disable-next-line no-self-compare
@@ -582,191 +336,95 @@ var _arrayIncludes = function (IS_INCLUDES) {
};
};
-
-
-var _arrayIncludes$2 = Object.freeze({
- default: _arrayIncludes,
- __moduleExports: _arrayIncludes
-});
-
var SHARED = '__core-js_shared__';
-var store = global$1[SHARED] || (global$1[SHARED] = {});
+var store = _global[SHARED] || (_global[SHARED] = {});
var _shared = function (key) {
return store[key] || (store[key] = {});
};
-
-
-var _shared$2 = Object.freeze({
- default: _shared,
- __moduleExports: _shared
-});
-
-var shared$1 = ( _shared$2 && _shared ) || _shared$2;
-
-var shared = shared$1('keys');
+var shared = _shared('keys');
var _sharedKey = function (key) {
- return shared[key] || (shared[key] = uid(key));
+ return shared[key] || (shared[key] = _uid(key));
};
-
-
-var _sharedKey$2 = Object.freeze({
- default: _sharedKey,
- __moduleExports: _sharedKey
-});
-
-var require$$0$2 = ( _arrayIncludes$2 && _arrayIncludes ) || _arrayIncludes$2;
-
-var require$$0$3 = ( _sharedKey$2 && _sharedKey ) || _sharedKey$2;
-
-var arrayIndexOf = require$$0$2(false);
-var IE_PROTO = require$$0$3('IE_PROTO');
+var arrayIndexOf = _arrayIncludes(false);
+var IE_PROTO = _sharedKey('IE_PROTO');
var _objectKeysInternal = function (object, names) {
- var O = toIObject(object);
+ 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);
+ 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;
};
-
-
-var _objectKeysInternal$2 = Object.freeze({
- default: _objectKeysInternal,
- __moduleExports: _objectKeysInternal
-});
-
// IE 8- don't enum bug keys
var _enumBugKeys = (
'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
).split(',');
+// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
-
-var _enumBugKeys$2 = Object.freeze({
- default: _enumBugKeys,
- __moduleExports: _enumBugKeys
-});
-
-var $keys = ( _objectKeysInternal$2 && _objectKeysInternal ) || _objectKeysInternal$2;
-
-var enumBugKeys = ( _enumBugKeys$2 && _enumBugKeys ) || _enumBugKeys$2;
-
-var hiddenKeys = enumBugKeys.concat('length', 'prototype');
+var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
- return $keys(O, hiddenKeys);
+ return _objectKeysInternal(O, hiddenKeys);
};
var _objectGopn = {
f: f$1
};
-
-
-var _objectGopn$2 = Object.freeze({
- default: _objectGopn,
- __moduleExports: _objectGopn,
- f: f$1
-});
+// 7.1.13 ToObject(argument)
var _toObject = function (it) {
- return Object(defined(it));
+ return Object(_defined(it));
};
-
-
-var _toObject$2 = Object.freeze({
- default: _toObject,
- __moduleExports: _toObject
-});
-
-var toObject = ( _toObject$2 && _toObject ) || _toObject$2;
-
+// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
'use strict';
var _arrayFill = function fill(value /* , start = 0, end = @length */) {
- var O = toObject(this);
- var length = toLength(O.length);
+ var O = _toObject(this);
+ var length = _toLength(O.length);
var aLen = arguments.length;
- var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, 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);
+ var endPos = end === undefined ? length : _toAbsoluteIndex(end, length);
while (endPos > index) O[index++] = value;
return O;
};
-
-
-var _arrayFill$2 = Object.freeze({
- default: _arrayFill,
- __moduleExports: _arrayFill
-});
-
var _wks = createCommonjsModule(function (module) {
-var store = shared$1('wks');
+var store = _shared('wks');
-var Symbol = global$1.Symbol;
+var Symbol = _global.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));
+ USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : _uid)('Symbol.' + name));
};
$exports.store = store;
});
+var def = _objectDp.f;
-
-var _wks$2 = Object.freeze({
- default: _wks,
- __moduleExports: _wks
-});
-
-var wks = ( _wks$2 && _wks ) || _wks$2;
-
-var def = $defineProperty.f;
-
-var TAG = wks('toStringTag');
+var TAG = _wks('toStringTag');
var _setToStringTag = function (it, tag, stat) {
- if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
+ if (it && !_has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
};
-
-
-var _setToStringTag$2 = Object.freeze({
- default: _setToStringTag,
- __moduleExports: _setToStringTag
-});
-
-var LIBRARY = ( _library$2 && _library ) || _library$2;
-
-var require$$5 = ( _typed$2 && _typed ) || _typed$2;
-
-var require$$3 = ( _redefineAll$2 && _redefineAll ) || _redefineAll$2;
-
-var anInstance = ( _anInstance$2 && _anInstance ) || _anInstance$2;
-
-var require$$14 = ( _toIndex$2 && _toIndex ) || _toIndex$2;
-
-var require$$0$4 = ( _objectGopn$2 && _objectGopn ) || _objectGopn$2;
-
-var require$$0$5 = ( _arrayFill$2 && _arrayFill ) || _arrayFill$2;
-
-var setToStringTag = ( _setToStringTag$2 && _setToStringTag ) || _setToStringTag$2;
-
var _typedBuffer = createCommonjsModule(function (module, exports) {
'use strict';
@@ -780,8 +438,8 @@ var _typedBuffer = createCommonjsModule(function (module, exports) {
-var gOPN = require$$0$4.f;
-var dP = $defineProperty.f;
+var gOPN = _objectGopn.f;
+var dP = _objectDp.f;
var ARRAY_BUFFER = 'ArrayBuffer';
@@ -789,12 +447,12 @@ var DATA_VIEW = 'DataView';
var PROTOTYPE = 'prototype';
var WRONG_LENGTH = 'Wrong length!';
var WRONG_INDEX = 'Wrong index!';
-var $ArrayBuffer = global$1[ARRAY_BUFFER];
-var $DataView = global$1[DATA_VIEW];
-var Math = global$1.Math;
-var RangeError = global$1.RangeError;
+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$1.Infinity;
+var Infinity = _global.Infinity;
var BaseBuffer = $ArrayBuffer;
var abs = Math.abs;
var pow = Math.pow;
@@ -804,9 +462,9 @@ var LN2 = Math.LN2;
var BUFFER = 'buffer';
var BYTE_LENGTH = 'byteLength';
var BYTE_OFFSET = 'byteOffset';
-var $BUFFER = require$$0$1 ? '_b' : BUFFER;
-var $LENGTH = require$$0$1 ? '_l' : BYTE_LENGTH;
-var $OFFSET = require$$0$1 ? '_o' : BYTE_OFFSET;
+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
function packIEEE754(value, mLen, nBytes) {
@@ -907,7 +565,7 @@ function addGetter(C, key, internal) {
function get(view, bytes, index, isLittleEndian) {
var numIndex = +index;
- var intIndex = require$$14(numIndex);
+ var intIndex = _toIndex(numIndex);
if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX);
var store = view[$BUFFER]._b;
var start = intIndex + view[$OFFSET];
@@ -916,7 +574,7 @@ function get(view, bytes, index, isLittleEndian) {
}
function set(view, bytes, index, conversion, value, isLittleEndian) {
var numIndex = +index;
- var intIndex = require$$14(numIndex);
+ var intIndex = _toIndex(numIndex);
if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX);
var store = view[$BUFFER]._b;
var start = intIndex + view[$OFFSET];
@@ -924,35 +582,35 @@ function set(view, bytes, index, conversion, value, isLittleEndian) {
for (var i = 0; i < bytes; i++) store[start + i] = pack[isLittleEndian ? i : bytes - i - 1];
}
-if (!require$$5.ABV) {
+if (!_typed.ABV) {
$ArrayBuffer = function ArrayBuffer(length) {
- anInstance(this, $ArrayBuffer, ARRAY_BUFFER);
- var byteLength = require$$14(length);
- this._b = require$$0$5.call(new Array(byteLength), 0);
+ _anInstance(this, $ArrayBuffer, ARRAY_BUFFER);
+ var byteLength = _toIndex(length);
+ this._b = _arrayFill.call(new Array(byteLength), 0);
this[$LENGTH] = byteLength;
};
$DataView = function DataView(buffer, byteOffset, byteLength) {
- anInstance(this, $DataView, DATA_VIEW);
- anInstance(buffer, $ArrayBuffer, DATA_VIEW);
+ _anInstance(this, $DataView, DATA_VIEW);
+ _anInstance(buffer, $ArrayBuffer, DATA_VIEW);
var bufferLength = buffer[$LENGTH];
- var offset = toInteger(byteOffset);
+ var offset = _toInteger(byteOffset);
if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset!');
- byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);
+ byteLength = byteLength === undefined ? bufferLength - offset : _toLength(byteLength);
if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH);
this[$BUFFER] = buffer;
this[$OFFSET] = offset;
this[$LENGTH] = byteLength;
};
- if (require$$0$1) {
+ if (_descriptors) {
addGetter($ArrayBuffer, BYTE_LENGTH, '_l');
addGetter($DataView, BUFFER, '_b');
addGetter($DataView, BYTE_LENGTH, '_l');
addGetter($DataView, BYTE_OFFSET, '_o');
}
- require$$3($DataView[PROTOTYPE], {
+ _redefineAll($DataView[PROTOTYPE], {
getInt8: function getInt8(byteOffset) {
return get(this, 1, byteOffset)[0] << 24 >> 24;
},
@@ -1005,32 +663,32 @@ if (!require$$5.ABV) {
}
});
} else {
- if (!require$$0(function () {
+ if (!_fails(function () {
$ArrayBuffer(1);
- }) || !require$$0(function () {
+ }) || !_fails(function () {
new $ArrayBuffer(-1); // eslint-disable-line no-new
- }) || require$$0(function () {
+ }) || _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(require$$14(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 (!((key = keys[j++]) in $ArrayBuffer)) _hide($ArrayBuffer, key, BaseBuffer[key]);
}
- if (!LIBRARY) ArrayBufferProto.constructor = $ArrayBuffer;
+ if (!_library) ArrayBufferProto.constructor = $ArrayBuffer;
}
// iOS Safari 7.x bug
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)) require$$3($DataView[PROTOTYPE], {
+ if (view.getInt8(0) || !view.getInt8(1)) _redefineAll($DataView[PROTOTYPE], {
setInt8: function setInt8(byteOffset, value) {
$setInt8.call(this, byteOffset, value << 24 >> 24);
},
@@ -1039,63 +697,37 @@ if (!require$$5.ABV) {
}
}, true);
}
-setToStringTag($ArrayBuffer, ARRAY_BUFFER);
-setToStringTag($DataView, DATA_VIEW);
-hide($DataView[PROTOTYPE], require$$5.VIEW, true);
+_setToStringTag($ArrayBuffer, ARRAY_BUFFER);
+_setToStringTag($DataView, DATA_VIEW);
+_hide($DataView[PROTOTYPE], _typed.VIEW, true);
exports[ARRAY_BUFFER] = $ArrayBuffer;
exports[DATA_VIEW] = $DataView;
});
+// 7.3.20 SpeciesConstructor(O, defaultConstructor)
-var _typedBuffer$2 = Object.freeze({
- default: _typedBuffer,
- __moduleExports: _typedBuffer
-});
-
-var SPECIES = wks('species');
+var SPECIES = _wks('species');
var _speciesConstructor = function (O, D) {
- var C = anObject(O).constructor;
+ var C = _anObject(O).constructor;
var S;
- return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
+ return C === undefined || (S = _anObject(C)[SPECIES]) == undefined ? D : _aFunction(S);
};
-
-
-var _speciesConstructor$2 = Object.freeze({
- default: _speciesConstructor,
- __moduleExports: _speciesConstructor
-});
-
'use strict';
-var SPECIES$1 = wks('species');
+var SPECIES$1 = _wks('species');
var _setSpecies = function (KEY) {
- var C = global$1[KEY];
- if (require$$0$1 && C && !C[SPECIES$1]) $defineProperty.f(C, SPECIES$1, {
+ var C = _global[KEY];
+ if (_descriptors && C && !C[SPECIES$1]) _objectDp.f(C, SPECIES$1, {
configurable: true,
get: function () { return this; }
});
};
-
-
-var _setSpecies$2 = Object.freeze({
- default: _setSpecies,
- __moduleExports: _setSpecies
-});
-
-var $export$1 = ( _export$2 && _export ) || _export$2;
-
-var require$$6 = ( _typedBuffer$2 && _typedBuffer ) || _typedBuffer$2;
-
-var speciesConstructor = ( _speciesConstructor$2 && _speciesConstructor ) || _speciesConstructor$2;
-
-var require$$5$1 = ( _setSpecies$2 && _setSpecies ) || _setSpecies$2;
-
'use strict';
@@ -1104,34 +736,34 @@ var require$$5$1 = ( _setSpecies$2 && _setSpecies ) || _setSpecies$2;
-var ArrayBuffer = global$1.ArrayBuffer;
+var ArrayBuffer = _global.ArrayBuffer;
-var $ArrayBuffer = require$$6.ArrayBuffer;
-var $DataView = require$$6.DataView;
-var $isView = require$$5.ABV && ArrayBuffer.isView;
+var $ArrayBuffer = _typedBuffer.ArrayBuffer;
+var $DataView = _typedBuffer.DataView;
+var $isView = _typed.ABV && ArrayBuffer.isView;
var $slice = $ArrayBuffer.prototype.slice;
-var VIEW = require$$5.VIEW;
+var VIEW = _typed.VIEW;
var ARRAY_BUFFER = 'ArrayBuffer';
-$export$1($export$1.G + $export$1.W + $export$1.F * (ArrayBuffer !== $ArrayBuffer), { ArrayBuffer: $ArrayBuffer });
+_export(_export.G + _export.W + _export.F * (ArrayBuffer !== $ArrayBuffer), { ArrayBuffer: $ArrayBuffer });
-$export$1($export$1.S + $export$1.F * !require$$5.CONSTR, ARRAY_BUFFER, {
+_export(_export.S + _export.F * !_typed.CONSTR, ARRAY_BUFFER, {
// 24.1.3.1 ArrayBuffer.isView(arg)
isView: function isView(it) {
- return $isView && $isView(it) || isObject(it) && VIEW in it;
+ return $isView && $isView(it) || _isObject(it) && VIEW in it;
}
});
-$export$1($export$1.P + $export$1.U + $export$1.F * require$$0(function () {
+_export(_export.P + _export.U + _export.F * _fails(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;
- var first = toAbsoluteIndex(start, len);
- var final = toAbsoluteIndex(end === undefined ? len : end, len);
- var result = new (speciesConstructor(this, $ArrayBuffer))(toLength(final - first));
+ 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;
@@ -1141,11 +773,13 @@ $export$1($export$1.P + $export$1.U + $export$1.F * require$$0(function () {
}
});
-require$$5$1(ARRAY_BUFFER);
+_setSpecies(ARRAY_BUFFER);
+
+// getting tag from 19.1.3.6 Object.prototype.toString()
-var TAG$1 = wks('toStringTag');
+var TAG$1 = _wks('toStringTag');
// ES3 wrong here
-var ARG = cof(function () { return arguments; }()) == 'Arguments';
+var ARG = _cof(function () { return arguments; }()) == 'Arguments';
// fallback for IE11 Script Access Denied error
var tryGet = function (it, key) {
@@ -1160,101 +794,61 @@ var _classof = function (it) {
// @@toStringTag case
: typeof (T = tryGet(O = Object(it), TAG$1)) == 'string' ? T
// builtinTag case
- : ARG ? cof(O)
+ : ARG ? _cof(O)
// ES3 arguments fallback
- : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
+ : (B = _cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
};
-
-
-var _classof$2 = Object.freeze({
- default: _classof,
- __moduleExports: _classof
-});
-
var _iterators = {};
+// check on default Array iterator
-
-var _iterators$2 = Object.freeze({
- default: _iterators,
- __moduleExports: _iterators
-});
-
-var Iterators = ( _iterators$2 && _iterators ) || _iterators$2;
-
-var ITERATOR = wks('iterator');
+var ITERATOR = _wks('iterator');
var ArrayProto = Array.prototype;
var _isArrayIter = function (it) {
- return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
+ return it !== undefined && (_iterators.Array === it || ArrayProto[ITERATOR] === it);
};
+// 19.1.2.14 / 15.2.3.14 Object.keys(O)
-var _isArrayIter$2 = Object.freeze({
- default: _isArrayIter,
- __moduleExports: _isArrayIter
-});
var _objectKeys = Object.keys || function keys(O) {
- return $keys(O, enumBugKeys);
+ return _objectKeysInternal(O, _enumBugKeys);
};
-
-
-var _objectKeys$2 = Object.freeze({
- default: _objectKeys,
- __moduleExports: _objectKeys
-});
-
-var getKeys = ( _objectKeys$2 && _objectKeys ) || _objectKeys$2;
-
-var _objectDps = require$$0$1 ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject(O);
- var keys = getKeys(Properties);
+var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
+ _anObject(O);
+ var keys = _objectKeys(Properties);
var length = keys.length;
var i = 0;
var P;
- while (length > i) $defineProperty.f(O, P = keys[i++], Properties[P]);
+ while (length > i) _objectDp.f(O, P = keys[i++], Properties[P]);
return O;
};
-
-
-var _objectDps$2 = Object.freeze({
- default: _objectDps,
- __moduleExports: _objectDps
-});
-
-var document$2 = global$1.document;
+var document$2 = _global.document;
var _html = document$2 && document$2.documentElement;
+// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
-var _html$2 = Object.freeze({
- default: _html,
- __moduleExports: _html
-});
-
-var dPs = ( _objectDps$2 && _objectDps ) || _objectDps$2;
-var html = ( _html$2 && _html ) || _html$2;
-
-var IE_PROTO$1 = require$$0$3('IE_PROTO');
+var IE_PROTO$1 = _sharedKey('IE_PROTO');
var Empty = function () { /* empty */ };
var PROTOTYPE$1 = 'prototype';
// Create object with fake `null` prototype: use iframe Object with cleared prototype
var createDict = function () {
// Thrash, waste and sodomy: IE GC bug
- var iframe = cel('iframe');
- var i = enumBugKeys.length;
+ var iframe = _domCreate('iframe');
+ var i = _enumBugKeys.length;
var lt = '<';
var gt = '>';
var iframeDocument;
iframe.style.display = 'none';
- html.appendChild(iframe);
+ _html.appendChild(iframe);
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
@@ -1263,113 +857,83 @@ var createDict = function () {
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
iframeDocument.close();
createDict = iframeDocument.F;
- while (i--) delete createDict[PROTOTYPE$1][enumBugKeys[i]];
+ while (i--) delete createDict[PROTOTYPE$1][_enumBugKeys[i]];
return createDict();
};
var _objectCreate = Object.create || function create(O, Properties) {
var result;
if (O !== null) {
- Empty[PROTOTYPE$1] = anObject(O);
+ Empty[PROTOTYPE$1] = _anObject(O);
result = new Empty();
Empty[PROTOTYPE$1] = null;
// add "__proto__" for Object.getPrototypeOf polyfill
result[IE_PROTO$1] = O;
} else result = createDict();
- return Properties === undefined ? result : dPs(result, Properties);
+ return Properties === undefined ? result : _objectDps(result, Properties);
};
+// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
-var _objectCreate$2 = Object.freeze({
- default: _objectCreate,
- __moduleExports: _objectCreate
-});
-
-var IE_PROTO$2 = require$$0$3('IE_PROTO');
+var IE_PROTO$2 = _sharedKey('IE_PROTO');
var ObjectProto = Object.prototype;
var _objectGpo = Object.getPrototypeOf || function (O) {
- O = toObject(O);
- if (has(O, IE_PROTO$2)) return O[IE_PROTO$2];
+ O = _toObject(O);
+ if (_has(O, IE_PROTO$2)) return O[IE_PROTO$2];
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
return O.constructor.prototype;
} return O instanceof Object ? ObjectProto : null;
};
+var ITERATOR$1 = _wks('iterator');
-
-var _objectGpo$2 = Object.freeze({
- default: _objectGpo,
- __moduleExports: _objectGpo
-});
-
-var classof = ( _classof$2 && _classof ) || _classof$2;
-
-var ITERATOR$1 = wks('iterator');
-
-var core_getIteratorMethod = core.getIteratorMethod = function (it) {
+var core_getIteratorMethod = _core.getIteratorMethod = function (it) {
if (it != undefined) return it[ITERATOR$1]
|| it['@@iterator']
- || Iterators[classof(it)];
+ || _iterators[_classof(it)];
};
-
-
-var core_getIteratorMethod$2 = Object.freeze({
- default: core_getIteratorMethod,
- __moduleExports: core_getIteratorMethod
-});
+// 7.2.2 IsArray(argument)
var _isArray = Array.isArray || function isArray(arg) {
- return cof(arg) == 'Array';
+ return _cof(arg) == 'Array';
};
-
-
-var _isArray$2 = Object.freeze({
- default: _isArray,
- __moduleExports: _isArray
-});
-
-var isArray = ( _isArray$2 && _isArray ) || _isArray$2;
-
-var SPECIES$2 = wks('species');
+var SPECIES$2 = _wks('species');
var _arraySpeciesConstructor = 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$2];
if (C === null) C = undefined;
}
} return C === undefined ? Array : C;
};
+// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
-var _arraySpeciesConstructor$2 = Object.freeze({
- default: _arraySpeciesConstructor,
- __moduleExports: _arraySpeciesConstructor
-});
-
-var speciesConstructor$1 = ( _arraySpeciesConstructor$2 && _arraySpeciesConstructor ) || _arraySpeciesConstructor$2;
-
var _arraySpeciesCreate = function (original, length) {
- return new (speciesConstructor$1(original))(length);
+ return new (_arraySpeciesConstructor(original))(length);
};
+// 0 -> Array#forEach
+// 1 -> Array#map
+// 2 -> Array#filter
+// 3 -> Array#some
+// 4 -> Array#every
+// 5 -> Array#find
+// 6 -> Array#findIndex
+
-var _arraySpeciesCreate$2 = Object.freeze({
- default: _arraySpeciesCreate,
- __moduleExports: _arraySpeciesCreate
-});
-var asc = ( _arraySpeciesCreate$2 && _arraySpeciesCreate ) || _arraySpeciesCreate$2;
var _arrayMethods = function (TYPE, $create) {
var IS_MAP = TYPE == 1;
@@ -1378,12 +942,12 @@ var _arrayMethods = function (TYPE, $create) {
var IS_EVERY = TYPE == 4;
var IS_FIND_INDEX = TYPE == 6;
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
- var create = $create || asc;
+ var create = $create || _arraySpeciesCreate;
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 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;
@@ -1404,40 +968,18 @@ var _arrayMethods = function (TYPE, $create) {
};
};
-
-
-var _arrayMethods$2 = Object.freeze({
- default: _arrayMethods,
- __moduleExports: _arrayMethods
-});
-
-var UNSCOPABLES = wks('unscopables');
+// 22.1.3.31 Array.prototype[@@unscopables]
+var UNSCOPABLES = _wks('unscopables');
var ArrayProto$1 = Array.prototype;
-if (ArrayProto$1[UNSCOPABLES] == undefined) hide(ArrayProto$1, UNSCOPABLES, {});
+if (ArrayProto$1[UNSCOPABLES] == undefined) _hide(ArrayProto$1, UNSCOPABLES, {});
var _addToUnscopables = function (key) {
ArrayProto$1[UNSCOPABLES][key] = true;
};
-
-
-var _addToUnscopables$2 = Object.freeze({
- default: _addToUnscopables,
- __moduleExports: _addToUnscopables
-});
-
var _iterStep = function (done, value) {
return { value: value, done: !!done };
};
-
-
-var _iterStep$2 = Object.freeze({
- default: _iterStep,
- __moduleExports: _iterStep
-});
-
-var _create = ( _objectCreate$2 && _objectCreate ) || _objectCreate$2;
-
'use strict';
@@ -1445,24 +987,13 @@ var _create = ( _objectCreate$2 && _objectCreate ) || _objectCreate$2;
var IteratorPrototype = {};
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
-hide(IteratorPrototype, wks('iterator'), function () { return this; });
+_hide(IteratorPrototype, _wks('iterator'), function () { return this; });
var _iterCreate = function (Constructor, NAME, next) {
- Constructor.prototype = _create(IteratorPrototype, { next: createDesc(1, next) });
- setToStringTag(Constructor, NAME + ' Iterator');
+ Constructor.prototype = _objectCreate(IteratorPrototype, { next: _propertyDesc(1, next) });
+ _setToStringTag(Constructor, NAME + ' Iterator');
};
-
-
-var _iterCreate$2 = Object.freeze({
- default: _iterCreate,
- __moduleExports: _iterCreate
-});
-
-var $iterCreate = ( _iterCreate$2 && _iterCreate ) || _iterCreate$2;
-
-var $getPrototypeOf = ( _objectGpo$2 && _objectGpo ) || _objectGpo$2;
-
'use strict';
@@ -1473,7 +1004,7 @@ var $getPrototypeOf = ( _objectGpo$2 && _objectGpo ) || _objectGpo$2;
-var ITERATOR$2 = wks('iterator');
+var ITERATOR$2 = _wks('iterator');
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
var FF_ITERATOR = '@@iterator';
var KEYS = 'keys';
@@ -1482,7 +1013,7 @@ var VALUES = 'values';
var returnThis = function () { return this; };
var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
- $iterCreate(Constructor, NAME, next);
+ _iterCreate(Constructor, NAME, next);
var getMethod = function (kind) {
if (!BUGGY && kind in proto) return proto[kind];
switch (kind) {
@@ -1501,12 +1032,12 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC
var methods, key, IteratorPrototype;
// Fix native
if ($anyNative) {
- IteratorPrototype = $getPrototypeOf($anyNative.call(new Base()));
+ IteratorPrototype = _objectGpo($anyNative.call(new Base()));
if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
// Set @@toStringTag to native iterators
- setToStringTag(IteratorPrototype, TAG, true);
+ _setToStringTag(IteratorPrototype, TAG, true);
// fix for some old engines
- if (!LIBRARY && !has(IteratorPrototype, ITERATOR$2)) hide(IteratorPrototype, ITERATOR$2, returnThis);
+ if (!_library && !_has(IteratorPrototype, ITERATOR$2)) _hide(IteratorPrototype, ITERATOR$2, returnThis);
}
}
// fix Array#{values, @@iterator}.name in V8 / FF
@@ -1515,12 +1046,12 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC
$default = function values() { return $native.call(this); };
}
// Define iterator
- if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR$2])) {
- hide(proto, ITERATOR$2, $default);
+ if ((!_library || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR$2])) {
+ _hide(proto, ITERATOR$2, $default);
}
// Plug for library
- Iterators[NAME] = $default;
- Iterators[TAG] = returnThis;
+ _iterators[NAME] = $default;
+ _iterators[TAG] = returnThis;
if (DEFAULT) {
methods = {
values: DEF_VALUES ? $default : getMethod(VALUES),
@@ -1528,25 +1059,12 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC
entries: $entries
};
if (FORCED) for (key in methods) {
- if (!(key in proto)) redefine(proto, key, methods[key]);
- } else $export$1($export$1.P + $export$1.F * (BUGGY || VALUES_BUG), NAME, methods);
+ if (!(key in proto)) _redefine(proto, key, methods[key]);
+ } else _export(_export.P + _export.F * (BUGGY || VALUES_BUG), NAME, methods);
}
return methods;
};
-
-
-var _iterDefine$2 = Object.freeze({
- default: _iterDefine,
- __moduleExports: _iterDefine
-});
-
-var require$$1 = ( _addToUnscopables$2 && _addToUnscopables ) || _addToUnscopables$2;
-
-var step = ( _iterStep$2 && _iterStep ) || _iterStep$2;
-
-var $iterDefine = ( _iterDefine$2 && _iterDefine ) || _iterDefine$2;
-
'use strict';
@@ -1557,8 +1075,8 @@ var $iterDefine = ( _iterDefine$2 && _iterDefine ) || _iterDefine$2;
// 22.1.3.13 Array.prototype.keys()
// 22.1.3.29 Array.prototype.values()
// 22.1.3.30 Array.prototype[@@iterator]()
-var es6_array_iterator = $iterDefine(Array, 'Array', function (iterated, kind) {
- this._t = toIObject(iterated); // target
+var es6_array_iterator = _iterDefine(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()
@@ -1568,28 +1086,21 @@ var es6_array_iterator = $iterDefine(Array, 'Array', function (iterated, kind) {
var index = this._i++;
if (!O || index >= O.length) {
this._t = undefined;
- return step(1);
+ return _iterStep(1);
}
- if (kind == 'keys') return step(0, index);
- if (kind == 'values') return step(0, O[index]);
- return step(0, [index, O[index]]);
+ if (kind == 'keys') return _iterStep(0, index);
+ if (kind == 'values') return _iterStep(0, O[index]);
+ return _iterStep(0, [index, O[index]]);
}, 'values');
// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
-Iterators.Arguments = Iterators.Array;
-
-require$$1('keys');
-require$$1('values');
-require$$1('entries');
+_iterators.Arguments = _iterators.Array;
+_addToUnscopables('keys');
+_addToUnscopables('values');
+_addToUnscopables('entries');
-
-var es6_array_iterator$2 = Object.freeze({
- default: es6_array_iterator,
- __moduleExports: es6_array_iterator
-});
-
-var ITERATOR$3 = wks('iterator');
+var ITERATOR$3 = _wks('iterator');
var SAFE_CLOSING = false;
try {
@@ -1612,25 +1123,19 @@ var _iterDetect = function (exec, skipClosing) {
return safe;
};
-
-
-var _iterDetect$2 = Object.freeze({
- default: _iterDetect,
- __moduleExports: _iterDetect
-});
-
+// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
'use strict';
var _arrayCopyWithin = [].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 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 count = Math.min((end === undefined ? len : _toAbsoluteIndex(end, len)) - from, len - to);
var inc = 1;
if (from < to && to < from + count) {
inc = -1;
@@ -1645,107 +1150,68 @@ var _arrayCopyWithin = [].copyWithin || function copyWithin(target /* = 0 */, st
} return O;
};
-
-
-var _arrayCopyWithin$2 = Object.freeze({
- default: _arrayCopyWithin,
- __moduleExports: _arrayCopyWithin
-});
-
var f$3 = {}.propertyIsEnumerable;
var _objectPie = {
f: f$3
};
-
-
-var _objectPie$2 = Object.freeze({
- default: _objectPie,
- __moduleExports: _objectPie,
- f: f$3
-});
-
-var require$$0$6 = ( _objectPie$2 && _objectPie ) || _objectPie$2;
-
var gOPD = Object.getOwnPropertyDescriptor;
-var f$2 = require$$0$1 ? gOPD : function getOwnPropertyDescriptor(O, P) {
- O = toIObject(O);
- P = toPrimitive(P, true);
- if (IE8_DOM_DEFINE) try {
+var f$2 = _descriptors ? gOPD : function getOwnPropertyDescriptor(O, P) {
+ O = _toIobject(O);
+ P = _toPrimitive(P, true);
+ if (_ie8DomDefine) try {
return gOPD(O, P);
} catch (e) { /* empty */ }
- if (has(O, P)) return createDesc(!require$$0$6.f.call(O, P), O[P]);
+ if (_has(O, P)) return _propertyDesc(!_objectPie.f.call(O, P), O[P]);
};
var _objectGopd = {
f: f$2
};
-
-
-var _objectGopd$2 = Object.freeze({
- default: _objectGopd,
- __moduleExports: _objectGopd,
- f: f$2
-});
-
-var isArrayIter = ( _isArrayIter$2 && _isArrayIter ) || _isArrayIter$2;
-
-var getIterFn = ( core_getIteratorMethod$2 && core_getIteratorMethod ) || core_getIteratorMethod$2;
-
-var require$$0$7 = ( _arrayMethods$2 && _arrayMethods ) || _arrayMethods$2;
-
-var $iterators = ( es6_array_iterator$2 && es6_array_iterator ) || es6_array_iterator$2;
-
-var require$$0$8 = ( _iterDetect$2 && _iterDetect ) || _iterDetect$2;
-
-var require$$0$9 = ( _arrayCopyWithin$2 && _arrayCopyWithin ) || _arrayCopyWithin$2;
-
-var gOPD$1 = ( _objectGopd$2 && _objectGopd ) || _objectGopd$2;
-
var _typedArray = createCommonjsModule(function (module) {
'use strict';
-if (require$$0$1) {
- var LIBRARY$$1 = LIBRARY;
- var global = global$1;
- var fails = require$$0;
- var $export = $export$1;
- var $typed = require$$5;
- var $buffer = require$$6;
- var ctx$$1 = ctx;
- var anInstance$$1 = anInstance;
- var propertyDesc = createDesc;
- var hide$$1 = hide;
- var redefineAll = require$$3;
- var toInteger$$1 = toInteger;
- var toLength$$1 = toLength;
- var toIndex = require$$14;
- var toAbsoluteIndex$$1 = toAbsoluteIndex;
- var toPrimitive$$1 = toPrimitive;
- var has$$1 = has;
- var classof$$1 = classof;
- var isObject$$1 = isObject;
- var toObject$$1 = toObject;
- var isArrayIter$$1 = isArrayIter;
- var create = _create;
- var getPrototypeOf = $getPrototypeOf;
- var gOPN = require$$0$4.f;
- var getIterFn$$1 = getIterFn;
- var uid$$1 = uid;
- var wks$$1 = wks;
- var createArrayMethod = require$$0$7;
- var createArrayIncludes = require$$0$2;
- var speciesConstructor$$1 = speciesConstructor;
- var ArrayIterators = $iterators;
- var Iterators$$1 = Iterators;
- var $iterDetect = require$$0$8;
- var setSpecies = require$$5$1;
- var arrayFill = require$$0$5;
- var arrayCopyWithin = require$$0$9;
- var $DP = $defineProperty;
- var $GOPD = gOPD$1;
+if (_descriptors) {
+ var LIBRARY = _library;
+ var global = _global;
+ var fails = _fails;
+ var $export = _export;
+ var $typed = _typed;
+ var $buffer = _typedBuffer;
+ var ctx = _ctx;
+ var anInstance = _anInstance;
+ var propertyDesc = _propertyDesc;
+ var hide = _hide;
+ var redefineAll = _redefineAll;
+ var toInteger = _toInteger;
+ var toLength = _toLength;
+ var toIndex = _toIndex;
+ var toAbsoluteIndex = _toAbsoluteIndex;
+ var toPrimitive = _toPrimitive;
+ var has = _has;
+ var classof$$1 = _classof;
+ var isObject = _isObject;
+ var toObject = _toObject;
+ var isArrayIter$$1 = _isArrayIter;
+ var create = _objectCreate;
+ var getPrototypeOf = _objectGpo;
+ var gOPN = _objectGopn.f;
+ var getIterFn$$1 = core_getIteratorMethod;
+ var uid = _uid;
+ var wks = _wks;
+ var createArrayMethod = _arrayMethods;
+ var createArrayIncludes = _arrayIncludes;
+ var speciesConstructor = _speciesConstructor;
+ var ArrayIterators = es6_array_iterator;
+ var Iterators$$1 = _iterators;
+ var $iterDetect = _iterDetect;
+ var setSpecies = _setSpecies;
+ var arrayFill = _arrayFill;
+ var arrayCopyWithin = _arrayCopyWithin;
+ var $DP = _objectDp;
+ var $GOPD = _objectGopd;
var dP = $DP.f;
var gOPD = $GOPD.f;
var RangeError = global.RangeError;
@@ -1777,17 +1243,17 @@ if (require$$0$1) {
var arraySlice = ArrayProto.slice;
var arrayToString = ArrayProto.toString;
var arrayToLocaleString = ArrayProto.toLocaleString;
- var ITERATOR = wks$$1('iterator');
- var TAG = wks$$1('toStringTag');
- var TYPED_CONSTRUCTOR = uid$$1('typed_constructor');
- var DEF_CONSTRUCTOR = uid$$1('def_constructor');
+ 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$$1(O, O[DEF_CONSTRUCTOR]), length);
+ return allocate(speciesConstructor(O, O[DEF_CONSTRUCTOR]), length);
});
var LITTLE_ENDIAN = fails(function () {
@@ -1800,24 +1266,24 @@ if (require$$0$1) {
});
var toOffset = function (it, BYTES) {
- var offset = toInteger$$1(it);
+ var offset = toInteger(it);
if (offset < 0 || offset % BYTES) throw RangeError('Wrong offset!');
return offset;
};
var validate = function (it) {
- if (isObject$$1(it) && TYPED_ARRAY in it) return 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$$1(C) && TYPED_CONSTRUCTOR in C)) {
+ 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) {
- return fromList(speciesConstructor$$1(O, O[DEF_CONSTRUCTOR]), list);
+ return fromList(speciesConstructor(O, O[DEF_CONSTRUCTOR]), list);
};
var fromList = function (C, list) {
@@ -1833,7 +1299,7 @@ if (require$$0$1) {
};
var $from = function from(source /* , mapfn, thisArg */) {
- var O = toObject$$1(source);
+ var O = toObject(source);
var aLen = arguments.length;
var mapfn = aLen > 1 ? arguments[1] : undefined;
var mapping = mapfn !== undefined;
@@ -1844,7 +1310,7 @@ if (require$$0$1) {
values.push(step.value);
} O = values;
}
- if (mapping && aLen > 2) mapfn = ctx$$1(mapfn, arguments[2], 2);
+ 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];
}
@@ -1931,11 +1397,11 @@ if (require$$0$1) {
subarray: function subarray(begin, end) {
var O = validate(this);
var length = O.length;
- var $begin = toAbsoluteIndex$$1(begin, length);
- return new (speciesConstructor$$1(O, O[DEF_CONSTRUCTOR]))(
+ var $begin = toAbsoluteIndex(begin, length);
+ return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(
O.buffer,
O.byteOffset + $begin * O.BYTES_PER_ELEMENT,
- toLength$$1((end === undefined ? length : toAbsoluteIndex$$1(end, length)) - $begin)
+ toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - $begin)
);
}
};
@@ -1948,8 +1414,8 @@ if (require$$0$1) {
validate(this);
var offset = toOffset(arguments[1], 1);
var length = this.length;
- var src = toObject$$1(arrayLike);
- var len = toLength$$1(src.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++];
@@ -1968,27 +1434,27 @@ if (require$$0$1) {
};
var isTAIndex = function (target, key) {
- return isObject$$1(target)
+ return isObject(target)
&& target[TYPED_ARRAY]
&& typeof key != 'symbol'
&& key in target
&& String(+key) == String(key);
};
var $getDesc = function getOwnPropertyDescriptor(target, key) {
- return isTAIndex(target, key = toPrimitive$$1(key, true))
+ 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$$1(key, true))
- && isObject$$1(desc)
- && has$$1(desc, 'value')
- && !has$$1(desc, 'get')
- && !has$$1(desc, 'set')
+ if (isTAIndex(target, key = toPrimitive(key, true))
+ && isObject(desc)
+ && has(desc, 'value')
+ && !has(desc, 'get')
+ && !has(desc, 'set')
// TODO: add validation descriptor w/o calling accessors
&& !desc.configurable
- && (!has$$1(desc, 'writable') || desc.writable)
- && (!has$$1(desc, 'enumerable') || desc.enumerable)
+ && (!has(desc, 'writable') || desc.writable)
+ && (!has(desc, 'enumerable') || desc.enumerable)
) {
target[key] = desc.value;
return target;
@@ -2013,7 +1479,7 @@ if (require$$0$1) {
var $TypedArrayPrototype$ = redefineAll({}, proto);
redefineAll($TypedArrayPrototype$, $iterators$$1);
- hide$$1($TypedArrayPrototype$, ITERATOR, $iterators$$1.values);
+ hide($TypedArrayPrototype$, ITERATOR, $iterators$$1.values);
redefineAll($TypedArrayPrototype$, {
slice: $slice,
set: $set,
@@ -2063,11 +1529,11 @@ if (require$$0$1) {
};
if (FORCED) {
TypedArray = wrapper(function (that, data, $offset, $length) {
- anInstance$$1(that, TypedArray, NAME, '_d');
+ anInstance(that, TypedArray, NAME, '_d');
var index = 0;
var offset = 0;
var buffer, byteLength, length, klass;
- if (!isObject$$1(data)) {
+ if (!isObject(data)) {
length = toIndex(data);
byteLength = length * BYTES;
buffer = new $ArrayBuffer(byteLength);
@@ -2080,7 +1546,7 @@ if (require$$0$1) {
byteLength = $len - offset;
if (byteLength < 0) throw RangeError(WRONG_LENGTH);
} else {
- byteLength = toLength$$1($length) * BYTES;
+ byteLength = toLength($length) * BYTES;
if (byteLength + offset > $len) throw RangeError(WRONG_LENGTH);
}
length = byteLength / BYTES;
@@ -2089,7 +1555,7 @@ if (require$$0$1) {
} else {
return $from.call(TypedArray, data);
}
- hide$$1(that, '_d', {
+ hide(that, '_d', {
b: buffer,
o: offset,
l: byteLength,
@@ -2099,7 +1565,7 @@ if (require$$0$1) {
while (index < length) addElement(that, index++);
});
TypedArrayPrototype = TypedArray[PROTOTYPE] = create($TypedArrayPrototype$);
- hide$$1(TypedArrayPrototype, 'constructor', TypedArray);
+ hide(TypedArrayPrototype, 'constructor', TypedArray);
} else if (!fails(function () {
TypedArray(1);
}) || !fails(function () {
@@ -2111,11 +1577,11 @@ if (require$$0$1) {
new TypedArray(iter); // eslint-disable-line no-new
}, true)) {
TypedArray = wrapper(function (that, data, $offset, $length) {
- anInstance$$1(that, TypedArray, NAME);
+ anInstance(that, TypedArray, NAME);
var klass;
// `ws` module bug, temporarily remove validation length for Uint8Array
// https://github.com/websockets/ws/pull/645
- if (!isObject$$1(data)) return new Base(toIndex(data));
+ if (!isObject(data)) return new Base(toIndex(data));
if (data instanceof $ArrayBuffer || (klass = classof$$1(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) {
return $length !== undefined
? new Base(data, toOffset($offset, BYTES), $length)
@@ -2127,19 +1593,19 @@ if (require$$0$1) {
return $from.call(TypedArray, data);
});
arrayForEach(TAC !== Function.prototype ? gOPN(Base).concat(gOPN(TAC)) : gOPN(Base), function (key) {
- if (!(key in TypedArray)) hide$$1(TypedArray, key, Base[key]);
+ if (!(key in TypedArray)) hide(TypedArray, key, Base[key]);
});
TypedArray[PROTOTYPE] = TypedArrayPrototype;
- if (!LIBRARY$$1) TypedArrayPrototype.constructor = TypedArray;
+ if (!LIBRARY) TypedArrayPrototype.constructor = TypedArray;
}
var $nativeIterator = TypedArrayPrototype[ITERATOR];
var CORRECT_ITER_NAME = !!$nativeIterator
&& ($nativeIterator.name == 'values' || $nativeIterator.name == undefined);
var $iterator = $iterators$$1.values;
- hide$$1(TypedArray, TYPED_CONSTRUCTOR, true);
- hide$$1(TypedArrayPrototype, TYPED_ARRAY, NAME);
- hide$$1(TypedArrayPrototype, VIEW, true);
- hide$$1(TypedArrayPrototype, DEF_CONSTRUCTOR, TypedArray);
+ 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)) {
dP(TypedArrayPrototype, TAG, {
@@ -2160,7 +1626,7 @@ if (require$$0$1) {
of: $of
});
- if (!(BYTES_PER_ELEMENT in TypedArrayPrototype)) hide$$1(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES);
+ if (!(BYTES_PER_ELEMENT in TypedArrayPrototype)) hide(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES);
$export($export.P, NAME, proto);
@@ -2170,7 +1636,7 @@ if (require$$0$1) {
$export($export.P + $export.F * !CORRECT_ITER_NAME, NAME, $iterators$$1);
- if (!LIBRARY$$1 && TypedArrayPrototype.toString != arrayToString) TypedArrayPrototype.toString = arrayToString;
+ if (!LIBRARY && TypedArrayPrototype.toString != arrayToString) TypedArrayPrototype.toString = arrayToString;
$export($export.P + $export.F * fails(function () {
new TypedArray(1).slice();
@@ -2183,109 +1649,93 @@ if (require$$0$1) {
})), NAME, { toLocaleString: $toLocaleString });
Iterators$$1[NAME] = CORRECT_ITER_NAME ? $nativeIterator : $iterator;
- if (!LIBRARY$$1 && !CORRECT_ITER_NAME) hide$$1(TypedArrayPrototype, ITERATOR, $iterator);
+ if (!LIBRARY && !CORRECT_ITER_NAME) hide(TypedArrayPrototype, ITERATOR, $iterator);
};
} else module.exports = function () { /* empty */ };
});
-
-
-var _typedArray$2 = Object.freeze({
- default: _typedArray,
- __moduleExports: _typedArray
-});
-
-var require$$0$10 = ( _typedArray$2 && _typedArray ) || _typedArray$2;
-
-require$$0$10('Int8', 1, function (init) {
+_typedArray('Int8', 1, function (init) {
return function Int8Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
-require$$0$10('Uint8', 1, function (init) {
+_typedArray('Uint8', 1, function (init) {
return function Uint8Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
-require$$0$10('Uint8', 1, function (init) {
+_typedArray('Uint8', 1, function (init) {
return function Uint8ClampedArray(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
}, true);
-require$$0$10('Int16', 2, function (init) {
+_typedArray('Int16', 2, function (init) {
return function Int16Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
-require$$0$10('Uint16', 2, function (init) {
+_typedArray('Uint16', 2, function (init) {
return function Uint16Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
-require$$0$10('Int32', 4, function (init) {
+_typedArray('Int32', 4, function (init) {
return function Int32Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
-require$$0$10('Uint32', 4, function (init) {
+_typedArray('Uint32', 4, function (init) {
return function Uint32Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
-require$$0$10('Float32', 4, function (init) {
+_typedArray('Float32', 4, function (init) {
return function Float32Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
-require$$0$10('Float64', 8, function (init) {
+_typedArray('Float64', 8, function (init) {
return function Float64Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
+// call something on iterator step with safe closing on error
+
var _iterCall = function (iterator, fn, value, entries) {
try {
- return entries ? fn(anObject(value)[0], value[1]) : fn(value);
+ return entries ? fn(_anObject(value)[0], value[1]) : fn(value);
// 7.4.6 IteratorClose(iterator, completion)
} catch (e) {
var ret = iterator['return'];
- if (ret !== undefined) anObject(ret.call(iterator));
+ if (ret !== undefined) _anObject(ret.call(iterator));
throw e;
}
};
-
-
-var _iterCall$2 = Object.freeze({
- default: _iterCall,
- __moduleExports: _iterCall
-});
-
-var call = ( _iterCall$2 && _iterCall ) || _iterCall$2;
-
var _forOf = createCommonjsModule(function (module) {
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 iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod(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++) {
- result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[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;) {
- result = call(iterator, f, step.value, entries);
+ result = _iterCall(iterator, f, step.value, entries);
if (result === BREAK || result === RETURN) return result;
}
};
@@ -2293,23 +1743,16 @@ exports.BREAK = BREAK;
exports.RETURN = RETURN;
});
-
-
-var _forOf$2 = Object.freeze({
- default: _forOf,
- __moduleExports: _forOf
-});
-
var _meta = createCommonjsModule(function (module) {
-var META = uid('meta');
+var META = _uid('meta');
-var setDesc = $defineProperty.f;
+var setDesc = _objectDp.f;
var id = 0;
var isExtensible = Object.isExtensible || function () {
return true;
};
-var FREEZE = !require$$0(function () {
+var FREEZE = !_fails(function () {
return isExtensible(Object.preventExtensions({}));
});
var setMeta = function (it) {
@@ -2320,8 +1763,8 @@ var setMeta = function (it) {
};
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';
// not necessary to add metadata
@@ -2332,7 +1775,7 @@ var fastKey = function (it, create) {
} return it[META].i;
};
var getWeak = function (it, create) {
- if (!has(it, META)) {
+ if (!_has(it, META)) {
// can't set metadata to uncaught frozen object
if (!isExtensible(it)) return true;
// not necessary to add metadata
@@ -2344,7 +1787,7 @@ var getWeak = function (it, create) {
};
// add metadata on freeze-family methods calling
var onFreeze = function (it) {
- if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
+ if (FREEZE && meta.NEED && isExtensible(it) && !_has(it, META)) setMeta(it);
return it;
};
var meta = module.exports = {
@@ -2356,43 +1799,13 @@ var meta = module.exports = {
};
});
-var _meta_1 = _meta.KEY;
-var _meta_2 = _meta.NEED;
-var _meta_3 = _meta.fastKey;
-var _meta_4 = _meta.getWeak;
-var _meta_5 = _meta.onFreeze;
-
-
-var _meta$2 = Object.freeze({
- default: _meta,
- __moduleExports: _meta,
- KEY: _meta_1,
- NEED: _meta_2,
- fastKey: _meta_3,
- getWeak: _meta_4,
- onFreeze: _meta_5
-});
-
var _validateCollection = function (it, TYPE) {
- if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
+ if (!_isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
return it;
};
-
-
-var _validateCollection$2 = Object.freeze({
- default: _validateCollection,
- __moduleExports: _validateCollection
-});
-
-var forOf = ( _forOf$2 && _forOf ) || _forOf$2;
-
-var require$$0$11 = ( _meta$2 && _meta ) || _meta$2;
-
-var validate = ( _validateCollection$2 && _validateCollection ) || _validateCollection$2;
-
'use strict';
-var dP$1 = $defineProperty.f;
+var dP$1 = _objectDp.f;
@@ -2402,9 +1815,9 @@ var dP$1 = $defineProperty.f;
-var fastKey = require$$0$11.fastKey;
+var fastKey = _meta.fastKey;
-var SIZE = require$$0$1 ? '_s' : 'size';
+var SIZE = _descriptors ? '_s' : 'size';
var getEntry = function (that, key) {
// fast case
@@ -2420,19 +1833,19 @@ var getEntry = function (that, key) {
var _collectionStrong = {
getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
var C = wrapper(function (that, iterable) {
- anInstance(that, C, NAME, '_i');
+ _anInstance(that, C, NAME, '_i');
that._t = NAME; // collection type
- that._i = _create(null); // index
+ that._i = _objectCreate(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);
});
- require$$3(C.prototype, {
+ _redefineAll(C.prototype, {
// 23.1.3.1 Map.prototype.clear()
// 23.2.3.2 Set.prototype.clear()
clear: function clear() {
- for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {
+ for (var that = _validateCollection(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {
entry.r = true;
if (entry.p) entry.p = entry.p.n = undefined;
delete data[entry.i];
@@ -2443,7 +1856,7 @@ var _collectionStrong = {
// 23.1.3.3 Map.prototype.delete(key)
// 23.2.3.4 Set.prototype.delete(value)
'delete': function (key) {
- var that = validate(this, NAME);
+ var that = _validateCollection(this, NAME);
var entry = getEntry(that, key);
if (entry) {
var next = entry.n;
@@ -2460,8 +1873,8 @@ var _collectionStrong = {
// 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 */) {
- validate(this, NAME);
- var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
+ _validateCollection(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);
@@ -2472,12 +1885,12 @@ var _collectionStrong = {
// 23.1.3.7 Map.prototype.has(key)
// 23.2.3.7 Set.prototype.has(value)
has: function has(key) {
- return !!getEntry(validate(this, NAME), key);
+ return !!getEntry(_validateCollection(this, NAME), key);
}
});
- if (require$$0$1) dP$1(C.prototype, 'size', {
+ if (_descriptors) dP$1(C.prototype, 'size', {
get: function () {
- return validate(this, NAME)[SIZE];
+ return _validateCollection(this, NAME)[SIZE];
}
});
return C;
@@ -2509,8 +1922,8 @@ var _collectionStrong = {
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 = validate(iterated, NAME); // target
+ _iterDefine(C, NAME, function (iterated, kind) {
+ this._t = _validateCollection(iterated, NAME); // target
this._k = kind; // kind
this._l = undefined; // previous
}, function () {
@@ -2523,43 +1936,32 @@ var _collectionStrong = {
if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {
// or finish the iteration
that._t = undefined;
- return step(1);
+ return _iterStep(1);
}
// return step by kind
- if (kind == 'keys') return step(0, entry.k);
- if (kind == 'values') return step(0, entry.v);
- return step(0, [entry.k, entry.v]);
+ if (kind == 'keys') return _iterStep(0, entry.k);
+ if (kind == 'values') return _iterStep(0, entry.v);
+ return _iterStep(0, [entry.k, entry.v]);
}, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
// add [@@species], 23.1.2.2, 23.2.2.2
- require$$5$1(NAME);
+ _setSpecies(NAME);
}
};
-var _collectionStrong_1 = _collectionStrong.getConstructor;
-var _collectionStrong_2 = _collectionStrong.def;
-var _collectionStrong_3 = _collectionStrong.getEntry;
-var _collectionStrong_4 = _collectionStrong.setStrong;
+// Works with __proto__ only. Old v8 can't work with null proto objects.
+/* eslint-disable no-proto */
-var _collectionStrong$2 = Object.freeze({
- default: _collectionStrong,
- __moduleExports: _collectionStrong,
- getConstructor: _collectionStrong_1,
- def: _collectionStrong_2,
- getEntry: _collectionStrong_3,
- setStrong: _collectionStrong_4
-});
-
var check = function (O, proto) {
- anObject(O);
- if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
+ _anObject(O);
+ if (!_isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
};
var _setProto = {
set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
function (test, buggy, set) {
try {
- set = ctx(Function.call, gOPD$1.f(Object.prototype, '__proto__').set, 2);
+ set = _ctx(Function.call, _objectGopd.f(Object.prototype, '__proto__').set, 2);
set(test, []);
buggy = !(test instanceof Array);
} catch (e) { buggy = true; }
@@ -2573,37 +1975,15 @@ var _setProto = {
check: check
};
-var _setProto_1 = _setProto.set;
-var _setProto_2 = _setProto.check;
-
-
-var _setProto$2 = Object.freeze({
- default: _setProto,
- __moduleExports: _setProto,
- set: _setProto_1,
- check: _setProto_2
-});
-
-var setProto = ( _setProto$2 && _setProto ) || _setProto$2;
-
-var setPrototypeOf = setProto.set;
+var setPrototypeOf = _setProto.set;
var _inheritIfRequired = function (that, target, C) {
var S = target.constructor;
var P;
- if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
+ if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && _isObject(P) && setPrototypeOf) {
setPrototypeOf(that, P);
} return that;
};
-
-
-var _inheritIfRequired$2 = Object.freeze({
- default: _inheritIfRequired,
- __moduleExports: _inheritIfRequired
-});
-
-var inheritIfRequired = ( _inheritIfRequired$2 && _inheritIfRequired ) || _inheritIfRequired$2;
-
'use strict';
@@ -2619,41 +1999,41 @@ var inheritIfRequired = ( _inheritIfRequired$2 && _inheritIfRequired ) || _inher
var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
- var Base = global$1[NAME];
+ 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,
+ _redefine(proto, KEY,
KEY == 'delete' ? function (a) {
- return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
+ return IS_WEAK && !_isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
} : KEY == 'has' ? function has(a) {
- return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
+ return IS_WEAK && !_isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
} : KEY == 'get' ? function get(a) {
- return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : 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; }
);
};
- if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !require$$0(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);
- require$$3(C.prototype, methods);
- require$$0$11.NEED = true;
+ _redefineAll(C.prototype, methods);
+ _meta.NEED = true;
} else {
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 = require$$0(function () { instance.has(1); });
+ 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 = require$$0$8(function (iter) { new C(iter); }); // eslint-disable-line no-new
+ 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 && require$$0(function () {
+ var BUGGY_ZERO = !IS_WEAK && _fails(function () {
// V8 ~ Chromium 42- fails only with 5+ elements
var $instance = new C();
var index = 5;
@@ -2662,9 +2042,9 @@ var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
});
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);
+ _anInstance(target, C, NAME);
+ var that = _inheritIfRequired(new Base(), target, C);
+ if (iterable != undefined) _forOf(iterable, IS_MAP, that[ADDER], that);
return that;
});
C.prototype = proto;
@@ -2680,46 +2060,35 @@ var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
if (IS_WEAK && proto.clear) delete proto.clear;
}
- setToStringTag(C, NAME);
+ _setToStringTag(C, NAME);
O[NAME] = C;
- $export$1($export$1.G + $export$1.W + $export$1.F * (C != Base), O);
+ _export(_export.G + _export.W + _export.F * (C != Base), O);
if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
return C;
};
-
-
-var _collection$2 = Object.freeze({
- default: _collection,
- __moduleExports: _collection
-});
-
-var strong = ( _collectionStrong$2 && _collectionStrong ) || _collectionStrong$2;
-
-var require$$0$12 = ( _collection$2 && _collection ) || _collection$2;
-
'use strict';
var MAP = 'Map';
// 23.1 Map Objects
-var es6_map = require$$0$12(MAP, function (get) {
+var es6_map = _collection(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(validate(this, MAP), key);
+ var entry = _collectionStrong.getEntry(_validateCollection(this, MAP), key);
return entry && entry.v;
},
// 23.1.3.9 Map.prototype.set(key, value)
set: function set(key, value) {
- return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);
+ return _collectionStrong.def(_validateCollection(this, MAP), key === 0 ? 0 : key, value);
}
-}, strong, true);
+}, _collectionStrong, true);
'use strict';
@@ -2727,14 +2096,14 @@ var es6_map = require$$0$12(MAP, function (get) {
var SET = 'Set';
// 23.2 Set Objects
-var es6_set = require$$0$12(SET, function (get) {
+var es6_set = _collection(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(validate(this, SET), value = value === 0 ? 0 : value, value);
+ return _collectionStrong.def(_validateCollection(this, SET), value = value === 0 ? 0 : value, value);
}
-}, strong);
+}, _collectionStrong);
var f$4 = Object.getOwnPropertySymbols;
@@ -2742,16 +2111,6 @@ var _objectGops = {
f: f$4
};
-
-
-var _objectGops$2 = Object.freeze({
- default: _objectGops,
- __moduleExports: _objectGops,
- f: f$4
-});
-
-var gOPS = ( _objectGops$2 && _objectGops ) || _objectGops$2;
-
'use strict';
// 19.1.2.1 Object.assign(target, source, ...)
@@ -2762,7 +2121,7 @@ var gOPS = ( _objectGops$2 && _objectGops ) || _objectGops$2;
var $assign = Object.assign;
// should work with symbols and should have deterministic property order (V8 bug)
-var _objectAssign = !$assign || require$$0(function () {
+var _objectAssign = !$assign || _fails(function () {
var A = {};
var B = {};
// eslint-disable-next-line no-undef
@@ -2772,14 +2131,14 @@ var _objectAssign = !$assign || require$$0(function () {
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);
+ var T = _toObject(target);
var aLen = arguments.length;
var index = 1;
- var getSymbols = gOPS.f;
- var isEnum = require$$0$6.f;
+ var getSymbols = _objectGops.f;
+ var isEnum = _objectPie.f;
while (aLen > index) {
- var S = IObject(arguments[index++]);
- var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
+ var S = _iobject(arguments[index++]);
+ var keys = getSymbols ? _objectKeys(S).concat(getSymbols(S)) : _objectKeys(S);
var length = keys.length;
var j = 0;
var key;
@@ -2787,16 +2146,9 @@ var _objectAssign = !$assign || require$$0(function () {
} return T;
} : $assign;
-
-
-var _objectAssign$2 = Object.freeze({
- default: _objectAssign,
- __moduleExports: _objectAssign
-});
-
'use strict';
-var getWeak = require$$0$11.getWeak;
+var getWeak = _meta.getWeak;
@@ -2804,8 +2156,8 @@ var getWeak = require$$0$11.getWeak;
-var arrayFind = require$$0$7(5);
-var arrayFindIndex = require$$0$7(6);
+var arrayFind = _arrayMethods(5);
+var arrayFindIndex = _arrayMethods(6);
var id$1 = 0;
// fallback for uncaught frozen keys
@@ -2845,34 +2197,34 @@ UncaughtFrozenStore.prototype = {
var _collectionWeak = {
getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
var C = wrapper(function (that, iterable) {
- anInstance(that, C, NAME, '_i');
+ _anInstance(that, C, NAME, '_i');
that._t = NAME; // collection type
that._i = id$1++; // 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);
});
- require$$3(C.prototype, {
+ _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;
+ if (!_isObject(key)) return false;
var data = getWeak(key);
- if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);
- return data && has(data, this._i) && delete data[this._i];
+ if (data === true) return uncaughtFrozenStore(_validateCollection(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$$1(key) {
- if (!isObject(key)) return false;
+ has: function has(key) {
+ if (!_isObject(key)) return false;
var data = getWeak(key);
- if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);
- return data && has(data, this._i);
+ if (data === true) return uncaughtFrozenStore(_validateCollection(this, NAME)).has(key);
+ return data && _has(data, this._i);
}
});
return C;
},
def: function (that, key, value) {
- var data = getWeak(anObject(key), true);
+ var data = getWeak(_anObject(key), true);
if (data === true) uncaughtFrozenStore(that).set(key, value);
else data[that._i] = value;
return that;
@@ -2880,26 +2232,9 @@ var _collectionWeak = {
ufstore: uncaughtFrozenStore
};
-var _collectionWeak_1 = _collectionWeak.getConstructor;
-var _collectionWeak_2 = _collectionWeak.def;
-var _collectionWeak_3 = _collectionWeak.ufstore;
-
-
-var _collectionWeak$2 = Object.freeze({
- default: _collectionWeak,
- __moduleExports: _collectionWeak,
- getConstructor: _collectionWeak_1,
- def: _collectionWeak_2,
- ufstore: _collectionWeak_3
-});
-
-var require$$0$13 = ( _objectAssign$2 && _objectAssign ) || _objectAssign$2;
-
-var weak = ( _collectionWeak$2 && _collectionWeak ) || _collectionWeak$2;
-
var es6_weakMap = createCommonjsModule(function (module) {
'use strict';
-var each = require$$0$7(0);
+var each = _arrayMethods(0);
@@ -2908,9 +2243,9 @@ var each = require$$0$7(0);
var WEAK_MAP = 'WeakMap';
-var getWeak = require$$0$11.getWeak;
+var getWeak = _meta.getWeak;
var isExtensible = Object.isExtensible;
-var uncaughtFrozenStore = weak.ufstore;
+var uncaughtFrozenStore = _collectionWeak.ufstore;
var tmp = {};
var InternalMap;
@@ -2923,32 +2258,32 @@ var wrapper = function (get) {
var methods = {
// 23.3.3.3 WeakMap.prototype.get(key)
get: function get(key) {
- if (isObject(key)) {
+ if (_isObject(key)) {
var data = getWeak(key);
- if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key);
+ if (data === true) return uncaughtFrozenStore(_validateCollection(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(validate(this, WEAK_MAP), key, value);
+ return _collectionWeak.def(_validateCollection(this, WEAK_MAP), key, value);
}
};
// 23.3 WeakMap Objects
-var $WeakMap = module.exports = require$$0$12(WEAK_MAP, wrapper, methods, weak, true, true);
+var $WeakMap = module.exports = _collection(WEAK_MAP, wrapper, methods, _collectionWeak, true, true);
// IE11 WeakMap frozen keys fix
-if (require$$0(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) {
- InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
- require$$0$13(InternalMap.prototype, methods);
- require$$0$11.NEED = true;
+if (_fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) {
+ InternalMap = _collectionWeak.getConstructor(wrapper, WEAK_MAP);
+ _objectAssign(InternalMap.prototype, methods);
+ _meta.NEED = true;
each(['delete', 'has', 'get', 'set'], function (key) {
var proto = $WeakMap.prototype;
var method = proto[key];
- redefine(proto, key, function (a, b) {
+ _redefine(proto, key, function (a, b) {
// store frozen objects on internal weakmap shim
- if (isObject(a) && !isExtensible(a)) {
+ if (_isObject(a) && !isExtensible(a)) {
if (!this._f) this._f = new InternalMap();
var result = this._f[key](a, b);
return key == 'set' ? this : result;
@@ -2965,24 +2300,28 @@ if (require$$0(function () { return new $WeakMap().set((Object.freeze || Object)
var WEAK_SET = 'WeakSet';
// 23.4 WeakSet Objects
-require$$0$12(WEAK_SET, function (get) {
+_collection(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(validate(this, WEAK_SET), value, true);
+ return _collectionWeak.def(_validateCollection(this, WEAK_SET), value, true);
}
-}, weak, false, true);
+}, _collectionWeak, false, true);
+
+// 26.1.1 Reflect.apply(target, thisArgument, argumentsList)
+
+
-var rApply = (global$1.Reflect || {}).apply;
+var rApply = (_global.Reflect || {}).apply;
var fApply = Function.apply;
// MS Edge argumentsList argument is optional
-$export$1($export$1.S + $export$1.F * !require$$0(function () {
+_export(_export.S + _export.F * !_fails(function () {
rApply(function () { /* empty */ });
}), 'Reflect', {
apply: function apply(target, thisArgument, argumentsList) {
- var T = aFunction(target);
- var L = anObject(argumentsList);
+ var T = _aFunction(target);
+ var L = _anObject(argumentsList);
return rApply ? rApply(T, thisArgument, L) : fApply.call(T, thisArgument, L);
}
});
@@ -3004,15 +2343,6 @@ var _invoke = function (fn, args, that) {
} return fn.apply(that, args);
};
-
-
-var _invoke$2 = Object.freeze({
- default: _invoke,
- __moduleExports: _invoke
-});
-
-var invoke = ( _invoke$2 && _invoke ) || _invoke$2;
-
'use strict';
@@ -3029,42 +2359,41 @@ var construct = function (F, len, args) {
};
var _bind = Function.bind || function bind(that /* , ...args */) {
- var fn = aFunction(this);
+ 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);
+ 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;
};
+// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
+
+
+
-var _bind$2 = Object.freeze({
- default: _bind,
- __moduleExports: _bind
-});
-var bind = ( _bind$2 && _bind ) || _bind$2;
-var rConstruct = (global$1.Reflect || {}).construct;
+var rConstruct = (_global.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 = require$$0(function () {
+var NEW_TARGET_BUG = _fails(function () {
function F() { /* empty */ }
return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);
});
-var ARGS_BUG = !require$$0(function () {
+var ARGS_BUG = !_fails(function () {
rConstruct(function () { /* empty */ });
});
-$export$1($export$1.S + $export$1.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
+_export(_export.S + _export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
construct: function construct(Target, args /* , newTarget */) {
- aFunction(Target);
- anObject(args);
- var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
+ _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) {
// w/o altered newTarget, optimization for 0-4 arguments
@@ -3078,26 +2407,33 @@ $export$1($export$1.S + $export$1.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;
- var instance = _create(isObject(proto) ? proto : Object.prototype);
+ var instance = _objectCreate(_isObject(proto) ? proto : Object.prototype);
var result = Function.apply.call(Target, instance, args);
- return isObject(result) ? result : instance;
+ return _isObject(result) ? result : instance;
}
});
-$export$1($export$1.S + $export$1.F * require$$0(function () {
+// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)
+
+
+
+
+
+// MS Edge has broken Reflect.defineProperty - throwing instead of returning false
+_export(_export.S + _export.F * _fails(function () {
// eslint-disable-next-line no-undef
- Reflect.defineProperty($defineProperty.f({}, 1, { value: 1 }), 1, { value: 2 });
+ Reflect.defineProperty(_objectDp.f({}, 1, { value: 1 }), 1, { value: 2 });
}), 'Reflect', {
defineProperty: function defineProperty(target, propertyKey, attributes) {
- anObject(target);
- propertyKey = toPrimitive(propertyKey, true);
- anObject(attributes);
+ _anObject(target);
+ propertyKey = _toPrimitive(propertyKey, true);
+ _anObject(attributes);
try {
- $defineProperty.f(target, propertyKey, attributes);
+ _objectDp.f(target, propertyKey, attributes);
return true;
} catch (e) {
return false;
@@ -3105,80 +2441,107 @@ $export$1($export$1.S + $export$1.F * require$$0(function () {
}
});
-var gOPD$2 = gOPD$1.f;
+// 26.1.4 Reflect.deleteProperty(target, propertyKey)
+
+var gOPD$2 = _objectGopd.f;
-$export$1($export$1.S, 'Reflect', {
+_export(_export.S, 'Reflect', {
deleteProperty: function deleteProperty(target, propertyKey) {
- var desc = gOPD$2(anObject(target), propertyKey);
+ var desc = gOPD$2(_anObject(target), propertyKey);
return desc && !desc.configurable ? false : delete target[propertyKey];
}
});
+// 26.1.6 Reflect.get(target, propertyKey [, receiver])
+
+
+
+
+
+
+
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$1.f(target, propertyKey)) return has(desc, 'value')
+ if (_anObject(target) === receiver) return target[propertyKey];
+ if (desc = _objectGopd.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 = _objectGpo(target))) return get(proto, propertyKey, receiver);
}
-$export$1($export$1.S, 'Reflect', { get: get });
+_export(_export.S, 'Reflect', { get: get });
+
+// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey)
-$export$1($export$1.S, 'Reflect', {
+
+
+
+_export(_export.S, 'Reflect', {
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) {
- return gOPD$1.f(anObject(target), propertyKey);
+ return _objectGopd.f(_anObject(target), propertyKey);
}
});
-$export$1($export$1.S, 'Reflect', {
+// 26.1.8 Reflect.getPrototypeOf(target)
+
+
+
+
+_export(_export.S, 'Reflect', {
getPrototypeOf: function getPrototypeOf(target) {
- return $getPrototypeOf(anObject(target));
+ return _objectGpo(_anObject(target));
}
});
-$export$1($export$1.S, 'Reflect', {
+// 26.1.9 Reflect.has(target, propertyKey)
+
+
+_export(_export.S, 'Reflect', {
has: function has(target, propertyKey) {
return propertyKey in target;
}
});
+// 26.1.10 Reflect.isExtensible(target)
+
+
var $isExtensible = Object.isExtensible;
-$export$1($export$1.S, 'Reflect', {
+_export(_export.S, 'Reflect', {
isExtensible: function isExtensible(target) {
- anObject(target);
+ _anObject(target);
return $isExtensible ? $isExtensible(target) : true;
}
});
-var Reflect$1 = global$1.Reflect;
+// all object keys, includes non-enumerable and symbols
+
+
+
+var Reflect$1 = _global.Reflect;
var _ownKeys = Reflect$1 && Reflect$1.ownKeys || function ownKeys(it) {
- var keys = require$$0$4.f(anObject(it));
- var getSymbols = gOPS.f;
+ var keys = _objectGopn.f(_anObject(it));
+ var getSymbols = _objectGops.f;
return getSymbols ? keys.concat(getSymbols(it)) : keys;
};
+// 26.1.11 Reflect.ownKeys(target)
-var _ownKeys$2 = Object.freeze({
- default: _ownKeys,
- __moduleExports: _ownKeys
-});
+_export(_export.S, 'Reflect', { ownKeys: _ownKeys });
-var ownKeys = ( _ownKeys$2 && _ownKeys ) || _ownKeys$2;
+// 26.1.12 Reflect.preventExtensions(target)
-$export$1($export$1.S, 'Reflect', { ownKeys: ownKeys });
var $preventExtensions = Object.preventExtensions;
-$export$1($export$1.S, 'Reflect', {
+_export(_export.S, 'Reflect', {
preventExtensions: function preventExtensions(target) {
- anObject(target);
+ _anObject(target);
try {
if ($preventExtensions) $preventExtensions(target);
return true;
@@ -3188,33 +2551,47 @@ $export$1($export$1.S, 'Reflect', {
}
});
+// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])
+
+
+
+
+
+
+
+
+
function set(target, propertyKey, V /* , receiver */) {
var receiver = arguments.length < 4 ? target : arguments[3];
- var ownDesc = gOPD$1.f(anObject(target), propertyKey);
+ var ownDesc = _objectGopd.f(_anObject(target), propertyKey);
var existingDescriptor, proto;
if (!ownDesc) {
- if (isObject(proto = $getPrototypeOf(target))) {
+ if (_isObject(proto = _objectGpo(target))) {
return set(proto, propertyKey, V, receiver);
}
- ownDesc = createDesc(0);
+ ownDesc = _propertyDesc(0);
}
- if (has(ownDesc, 'value')) {
- if (ownDesc.writable === false || !isObject(receiver)) return false;
- existingDescriptor = gOPD$1.f(receiver, propertyKey) || createDesc(0);
+ if (_has(ownDesc, 'value')) {
+ if (ownDesc.writable === false || !_isObject(receiver)) return false;
+ existingDescriptor = _objectGopd.f(receiver, propertyKey) || _propertyDesc(0);
existingDescriptor.value = V;
- $defineProperty.f(receiver, propertyKey, existingDescriptor);
+ _objectDp.f(receiver, propertyKey, existingDescriptor);
return true;
}
return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);
}
-$export$1($export$1.S, 'Reflect', { set: set });
+_export(_export.S, 'Reflect', { set: set });
-if (setProto) $export$1($export$1.S, 'Reflect', {
+// 26.1.14 Reflect.setPrototypeOf(target, proto)
+
+
+
+if (_setProto) _export(_export.S, 'Reflect', {
setPrototypeOf: function setPrototypeOf(target, proto) {
- setProto.check(target, proto);
+ _setProto.check(target, proto);
try {
- setProto.set(target, proto);
+ _setProto.set(target, proto);
return true;
} catch (e) {
return false;
@@ -3222,11 +2599,11 @@ if (setProto) $export$1($export$1.S, 'Reflect', {
}
});
-var process$1 = global$1.process;
-var setTask = global$1.setImmediate;
-var clearTask = global$1.clearImmediate;
-var MessageChannel = global$1.MessageChannel;
-var Dispatch = global$1.Dispatch;
+var process$1 = _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';
@@ -3253,7 +2630,7 @@ if (!setTask || !clearTask) {
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);
+ _invoke(typeof fn == 'function' ? fn : Function(fn), args);
};
defer(counter);
return counter;
@@ -3262,40 +2639,40 @@ if (!setTask || !clearTask) {
delete queue[id];
};
// Node.js 0.8-
- if (cof(process$1) == 'process') {
+ if (_cof(process$1) == 'process') {
defer = function (id) {
- process$1.nextTick(ctx(run, id, 1));
+ process$1.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));
+ Dispatch.now(_ctx(run, id, 1));
};
// Browsers with MessageChannel, includes WebWorkers
} else if (MessageChannel) {
channel = new MessageChannel();
port = channel.port2;
channel.port1.onmessage = listener;
- defer = ctx(port.postMessage, port, 1);
+ 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$1.addEventListener && typeof postMessage == 'function' && !global$1.importScripts) {
+ } else if (_global.addEventListener && typeof postMessage == 'function' && !_global.importScripts) {
defer = function (id) {
- global$1.postMessage(id + '', '*');
+ _global.postMessage(id + '', '*');
};
- global$1.addEventListener('message', listener, false);
+ _global.addEventListener('message', listener, false);
// IE8-
- } else if (ONREADYSTATECHANGE in cel('script')) {
+ } else if (ONREADYSTATECHANGE in _domCreate('script')) {
defer = function (id) {
- html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {
- html.removeChild(this);
+ _html.appendChild(_domCreate('script'))[ONREADYSTATECHANGE] = function () {
+ _html.removeChild(this);
run.call(id);
};
};
// Rest old browsers
} else {
defer = function (id) {
- setTimeout(ctx(run, id, 1), 0);
+ setTimeout(_ctx(run, id, 1), 0);
};
}
}
@@ -3304,24 +2681,11 @@ var _task = {
clear: clearTask
};
-var _task_1 = _task.set;
-var _task_2 = _task.clear;
-
-
-var _task$2 = Object.freeze({
- default: _task,
- __moduleExports: _task,
- set: _task_1,
- clear: _task_2
-});
-
-var $task = ( _task$2 && _task ) || _task$2;
-
-var macrotask = $task.set;
-var Observer = global$1.MutationObserver || global$1.WebKitMutationObserver;
-var process$2 = global$1.process;
-var Promise$1 = global$1.Promise;
-var isNode$1 = cof(process$2) == 'process';
+var macrotask = _task.set;
+var Observer = _global.MutationObserver || _global.WebKitMutationObserver;
+var process$2 = _global.process;
+var Promise$1 = _global.Promise;
+var isNode$1 = _cof(process$2) == 'process';
var _microtask = function () {
var head, last, notify;
@@ -3349,7 +2713,7 @@ var _microtask = function () {
process$2.nextTick(flush);
};
// browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339
- } else if (Observer && !(global$1.navigator && global$1.navigator.standalone)) {
+ } else if (Observer && !(_global.navigator && _global.navigator.standalone)) {
var toggle = true;
var node = document.createTextNode('');
new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
@@ -3371,7 +2735,7 @@ var _microtask = function () {
} else {
notify = function () {
// strange IE + webpack dev server bug - use .call(global)
- macrotask.call(global$1, flush);
+ macrotask.call(_global, flush);
};
}
@@ -3385,13 +2749,6 @@ var _microtask = function () {
};
};
-
-
-var _microtask$2 = Object.freeze({
- default: _microtask,
- __moduleExports: _microtask
-});
-
'use strict';
// 25.4.1.5 NewPromiseCapability(C)
@@ -3403,8 +2760,8 @@ function PromiseCapability(C) {
resolve = $$resolve;
reject = $$reject;
});
- this.resolve = aFunction(resolve);
- this.reject = aFunction(reject);
+ this.resolve = _aFunction(resolve);
+ this.reject = _aFunction(reject);
}
var f$5 = function (C) {
@@ -3415,14 +2772,6 @@ var _newPromiseCapability = {
f: f$5
};
-
-
-var _newPromiseCapability$2 = Object.freeze({
- default: _newPromiseCapability,
- __moduleExports: _newPromiseCapability,
- f: f$5
-});
-
var _perform = function (exec) {
try {
return { e: false, v: exec() };
@@ -3431,37 +2780,15 @@ var _perform = function (exec) {
}
};
-
-
-var _perform$2 = Object.freeze({
- default: _perform,
- __moduleExports: _perform
-});
-
-var newPromiseCapability$1 = ( _newPromiseCapability$2 && _newPromiseCapability ) || _newPromiseCapability$2;
-
var _promiseResolve = function (C, x) {
- anObject(C);
- if (isObject(x) && x.constructor === C) return x;
- var promiseCapability = newPromiseCapability$1.f(C);
+ _anObject(C);
+ if (_isObject(x) && x.constructor === C) return x;
+ var promiseCapability = _newPromiseCapability.f(C);
var resolve = promiseCapability.resolve;
resolve(x);
return promiseCapability.promise;
};
-
-
-var _promiseResolve$2 = Object.freeze({
- default: _promiseResolve,
- __moduleExports: _promiseResolve
-});
-
-var require$$1$1 = ( _microtask$2 && _microtask ) || _microtask$2;
-
-var perform = ( _perform$2 && _perform ) || _perform$2;
-
-var promiseResolve = ( _promiseResolve$2 && _promiseResolve ) || _promiseResolve$2;
-
'use strict';
@@ -3473,28 +2800,28 @@ var promiseResolve = ( _promiseResolve$2 && _promiseResolve ) || _promiseResolve
-var task = $task.set;
-var microtask = require$$1$1();
+var task = _task.set;
+var microtask = _microtask();
var PROMISE = 'Promise';
-var TypeError$1 = global$1.TypeError;
-var process = global$1.process;
-var $Promise = global$1[PROMISE];
-var isNode = classof(process) == 'process';
+var TypeError$1 = _global.TypeError;
+var process = _global.process;
+var $Promise = _global[PROMISE];
+var isNode = _classof(process) == 'process';
var empty = function () { /* empty */ };
var Internal;
var newGenericPromiseCapability;
var OwnPromiseCapability;
var Wrapper;
-var newPromiseCapability = newGenericPromiseCapability = newPromiseCapability$1.f;
+var newPromiseCapability = newGenericPromiseCapability = _newPromiseCapability.f;
var USE_NATIVE = !!function () {
try {
// correct subclassing with @@species support
var promise = $Promise.resolve(1);
- var FakePromise = (promise.constructor = {})[wks('species')] = function (exec) {
+ var FakePromise = (promise.constructor = {})[_wks('species')] = function (exec) {
exec(empty, empty);
};
// unhandled rejections tracking support, NodeJS Promise without it fails @@species test
@@ -3505,7 +2832,7 @@ var USE_NATIVE = !!function () {
// helpers
var isThenable = function (it) {
var then;
- return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
+ return _isObject(it) && typeof (then = it.then) == 'function' ? then : false;
};
var notify = function (promise, isReject) {
if (promise._n) return;
@@ -3550,17 +2877,17 @@ var notify = function (promise, isReject) {
});
};
var onUnhandled = function (promise) {
- task.call(global$1, function () {
+ task.call(_global, function () {
var value = promise._v;
var unhandled = isUnhandled(promise);
var result, handler, console;
if (unhandled) {
- result = perform(function () {
+ result = _perform(function () {
if (isNode) {
process.emit('unhandledRejection', value, promise);
- } else if (handler = global$1.onunhandledrejection) {
+ } else if (handler = _global.onunhandledrejection) {
handler({ promise: promise, reason: value });
- } else if ((console = global$1.console) && console.error) {
+ } else if ((console = _global.console) && console.error) {
console.error('Unhandled promise rejection', value);
}
});
@@ -3574,11 +2901,11 @@ var isUnhandled = function (promise) {
return promise._h !== 1 && (promise._a || promise._c).length === 0;
};
var onHandleUnhandled = function (promise) {
- task.call(global$1, function () {
+ task.call(_global, function () {
var handler;
if (isNode) {
process.emit('rejectionHandled', promise);
- } else if (handler = global$1.onrejectionhandled) {
+ } else if (handler = _global.onrejectionhandled) {
handler({ promise: promise, reason: promise._v });
}
});
@@ -3605,7 +2932,7 @@ var $resolve = function (value) {
microtask(function () {
var wrapper = { _w: promise, _d: false }; // wrap
try {
- then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
+ then.call(value, _ctx($resolve, wrapper, 1), _ctx($reject, wrapper, 1));
} catch (e) {
$reject.call(wrapper, e);
}
@@ -3624,11 +2951,11 @@ var $resolve = function (value) {
if (!USE_NATIVE) {
// 25.4.3.1 Promise(executor)
$Promise = function Promise(executor) {
- anInstance(this, $Promise, PROMISE, '_h');
- aFunction(executor);
+ _anInstance(this, $Promise, PROMISE, '_h');
+ _aFunction(executor);
Internal.call(this);
try {
- executor(ctx($resolve, this, 1), ctx($reject, this, 1));
+ executor(_ctx($resolve, this, 1), _ctx($reject, this, 1));
} catch (err) {
$reject.call(this, err);
}
@@ -3643,10 +2970,10 @@ if (!USE_NATIVE) {
this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
this._n = false; // <- notify
};
- Internal.prototype = require$$3($Promise.prototype, {
+ Internal.prototype = _redefineAll($Promise.prototype, {
// 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
then: function then(onFulfilled, onRejected) {
- var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
+ 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;
@@ -3663,23 +2990,23 @@ if (!USE_NATIVE) {
OwnPromiseCapability = function () {
var promise = new Internal();
this.promise = promise;
- this.resolve = ctx($resolve, promise, 1);
- this.reject = ctx($reject, promise, 1);
+ this.resolve = _ctx($resolve, promise, 1);
+ this.reject = _ctx($reject, promise, 1);
};
- newPromiseCapability$1.f = newPromiseCapability = function (C) {
+ _newPromiseCapability.f = newPromiseCapability = function (C) {
return C === $Promise || C === Wrapper
? new OwnPromiseCapability(C)
: newGenericPromiseCapability(C);
};
}
-$export$1($export$1.G + $export$1.W + $export$1.F * !USE_NATIVE, { Promise: $Promise });
-setToStringTag($Promise, PROMISE);
-require$$5$1(PROMISE);
-Wrapper = core[PROMISE];
+_export(_export.G + _export.W + _export.F * !USE_NATIVE, { Promise: $Promise });
+_setToStringTag($Promise, PROMISE);
+_setSpecies(PROMISE);
+Wrapper = _core[PROMISE];
// statics
-$export$1($export$1.S + $export$1.F * !USE_NATIVE, PROMISE, {
+_export(_export.S + _export.F * !USE_NATIVE, PROMISE, {
// 25.4.4.5 Promise.reject(r)
reject: function reject(r) {
var capability = newPromiseCapability(this);
@@ -3688,13 +3015,13 @@ $export$1($export$1.S + $export$1.F * !USE_NATIVE, PROMISE, {
return capability.promise;
}
});
-$export$1($export$1.S + $export$1.F * (LIBRARY || !USE_NATIVE), PROMISE, {
+_export(_export.S + _export.F * (_library || !USE_NATIVE), PROMISE, {
// 25.4.4.6 Promise.resolve(x)
resolve: function resolve(x) {
- return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);
+ return _promiseResolve(_library && this === Wrapper ? $Promise : this, x);
}
});
-$export$1($export$1.S + $export$1.F * !(USE_NATIVE && require$$0$8(function (iter) {
+_export(_export.S + _export.F * !(USE_NATIVE && _iterDetect(function (iter) {
$Promise.all(iter)['catch'](empty);
})), PROMISE, {
// 25.4.4.1 Promise.all(iterable)
@@ -3703,11 +3030,11 @@ $export$1($export$1.S + $export$1.F * !(USE_NATIVE && require$$0$8(function (ite
var capability = newPromiseCapability(C);
var resolve = capability.resolve;
var reject = capability.reject;
- var result = perform(function () {
+ var result = _perform(function () {
var values = [];
var index = 0;
var remaining = 1;
- forOf(iterable, false, function (promise) {
+ _forOf(iterable, false, function (promise) {
var $index = index++;
var alreadyCalled = false;
values.push(undefined);
@@ -3729,8 +3056,8 @@ $export$1($export$1.S + $export$1.F * !(USE_NATIVE && require$$0$8(function (ite
var C = this;
var capability = newPromiseCapability(C);
var reject = capability.reject;
- var result = perform(function () {
- forOf(iterable, false, function (promise) {
+ var result = _perform(function () {
+ _forOf(iterable, false, function (promise) {
C.resolve(promise).then(capability.resolve, reject);
});
});
@@ -3739,55 +3066,37 @@ $export$1($export$1.S + $export$1.F * !(USE_NATIVE && require$$0$8(function (ite
}
});
-var f$6 = wks;
+var f$6 = _wks;
var _wksExt = {
f: f$6
};
-
-
-var _wksExt$2 = Object.freeze({
- default: _wksExt,
- __moduleExports: _wksExt,
- f: f$6
-});
-
-var wksExt = ( _wksExt$2 && _wksExt ) || _wksExt$2;
-
-var defineProperty = $defineProperty.f;
+var defineProperty = _objectDp.f;
var _wksDefine = function (name) {
- var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global$1.Symbol || {});
- if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
+ var $Symbol = _core.Symbol || (_core.Symbol = _library ? {} : _global.Symbol || {});
+ if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: _wksExt.f(name) });
};
+// all enumerable object keys, includes symbols
-var _wksDefine$2 = Object.freeze({
- default: _wksDefine,
- __moduleExports: _wksDefine
-});
var _enumKeys = function (it) {
- var result = getKeys(it);
- var getSymbols = gOPS.f;
+ var result = _objectKeys(it);
+ var getSymbols = _objectGops.f;
if (getSymbols) {
var symbols = getSymbols(it);
- var isEnum = require$$0$6.f;
+ var isEnum = _objectPie.f;
var i = 0;
var key;
while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
} return result;
};
+// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
-
-var _enumKeys$2 = Object.freeze({
- default: _enumKeys,
- __moduleExports: _enumKeys
-});
-
-var gOPN$1 = require$$0$4.f;
+var gOPN$1 = _objectGopn.f;
var toString$1 = {}.toString;
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
@@ -3802,27 +3111,13 @@ var getWindowNames = function (it) {
};
var f$7 = function getOwnPropertyNames(it) {
- return windowNames && toString$1.call(it) == '[object Window]' ? getWindowNames(it) : gOPN$1(toIObject(it));
+ return windowNames && toString$1.call(it) == '[object Window]' ? getWindowNames(it) : gOPN$1(_toIobject(it));
};
var _objectGopnExt = {
f: f$7
};
-
-
-var _objectGopnExt$2 = Object.freeze({
- default: _objectGopnExt,
- __moduleExports: _objectGopnExt,
- f: f$7
-});
-
-var wksDefine = ( _wksDefine$2 && _wksDefine ) || _wksDefine$2;
-
-var enumKeys = ( _enumKeys$2 && _enumKeys ) || _enumKeys$2;
-
-var require$$1$2 = ( _objectGopnExt$2 && _objectGopnExt ) || _objectGopnExt$2;
-
'use strict';
// ECMAScript 6 symbols shim
@@ -3830,7 +3125,7 @@ var require$$1$2 = ( _objectGopnExt$2 && _objectGopnExt ) || _objectGopnExt$2;
-var META = require$$0$11.KEY;
+var META = _meta.KEY;
@@ -3850,28 +3145,28 @@ var META = require$$0$11.KEY;
-var gOPD$3 = gOPD$1.f;
-var dP$2 = $defineProperty.f;
-var gOPN = require$$1$2.f;
-var $Symbol = global$1.Symbol;
-var $JSON = global$1.JSON;
+var gOPD$3 = _objectGopd.f;
+var dP$2 = _objectDp.f;
+var gOPN = _objectGopnExt.f;
+var $Symbol = _global.Symbol;
+var $JSON = _global.JSON;
var _stringify = $JSON && $JSON.stringify;
var PROTOTYPE$2 = 'prototype';
-var HIDDEN = wks('_hidden');
-var TO_PRIMITIVE = wks('toPrimitive');
+var HIDDEN = _wks('_hidden');
+var TO_PRIMITIVE = _wks('toPrimitive');
var isEnum = {}.propertyIsEnumerable;
-var SymbolRegistry = shared$1('symbol-registry');
-var AllSymbols = shared$1('symbols');
-var OPSymbols = shared$1('op-symbols');
+var SymbolRegistry = _shared('symbol-registry');
+var AllSymbols = _shared('symbols');
+var OPSymbols = _shared('op-symbols');
var ObjectProto$1 = Object[PROTOTYPE$2];
var USE_NATIVE$1 = typeof $Symbol == 'function';
-var QObject = global$1.QObject;
+var QObject = _global.QObject;
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
var setter = !QObject || !QObject[PROTOTYPE$2] || !QObject[PROTOTYPE$2].findChild;
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
-var setSymbolDesc = require$$0$1 && require$$0(function () {
- return _create(dP$2({}, 'a', {
+var setSymbolDesc = _descriptors && _fails(function () {
+ return _objectCreate(dP$2({}, 'a', {
get: function () { return dP$2(this, 'a', { value: 7 }).a; }
})).a != 7;
}) ? function (it, key, D) {
@@ -3882,7 +3177,7 @@ var setSymbolDesc = require$$0$1 && require$$0(function () {
} : dP$2;
var wrap = function (tag) {
- var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE$2]);
+ var sym = AllSymbols[tag] = _objectCreate($Symbol[PROTOTYPE$2]);
sym._k = tag;
return sym;
};
@@ -3895,22 +3190,22 @@ var isSymbol = USE_NATIVE$1 && typeof $Symbol.iterator == 'symbol' ? function (i
var $defineProperty$1 = function defineProperty(it, key, D) {
if (it === ObjectProto$1) $defineProperty$1(OPSymbols, key, D);
- anObject(it);
- key = toPrimitive(key, true);
- anObject(D);
- if (has(AllSymbols, key)) {
+ _anObject(it);
+ key = _toPrimitive(key, true);
+ _anObject(D);
+ if (_has(AllSymbols, key)) {
if (!D.enumerable) {
- if (!has(it, HIDDEN)) dP$2(it, HIDDEN, createDesc(1, {}));
+ if (!_has(it, HIDDEN)) dP$2(it, HIDDEN, _propertyDesc(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 = _objectCreate(D, { enumerable: _propertyDesc(0, false) });
} return setSymbolDesc(it, key, D);
} return dP$2(it, key, D);
};
var $defineProperties = function defineProperties(it, P) {
- anObject(it);
- var keys = enumKeys(P = toIObject(P));
+ _anObject(it);
+ var keys = _enumKeys(P = _toIobject(P));
var i = 0;
var l = keys.length;
var key;
@@ -3918,38 +3213,38 @@ var $defineProperties = function defineProperties(it, P) {
return it;
};
var $create = function create(it, P) {
- return P === undefined ? _create(it) : $defineProperties(_create(it), P);
+ return P === undefined ? _objectCreate(it) : $defineProperties(_objectCreate(it), P);
};
var $propertyIsEnumerable = function propertyIsEnumerable(key) {
- var E = isEnum.call(this, key = toPrimitive(key, true));
- if (this === ObjectProto$1 && 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 E = isEnum.call(this, key = _toPrimitive(key, true));
+ if (this === ObjectProto$1 && _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);
- key = toPrimitive(key, true);
- if (it === ObjectProto$1 && has(AllSymbols, key) && !has(OPSymbols, key)) return;
+ it = _toIobject(it);
+ key = _toPrimitive(key, true);
+ if (it === ObjectProto$1 && _has(AllSymbols, key) && !_has(OPSymbols, key)) return;
var D = gOPD$3(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));
+ 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);
+ 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$1;
- var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
+ 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$1, key) : true)) result.push(AllSymbols[key]);
+ if (_has(AllSymbols, key = names[i++]) && (IS_OP ? _has(ObjectProto$1, key) : true)) result.push(AllSymbols[key]);
} return result;
};
@@ -3957,47 +3252,47 @@ var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
if (!USE_NATIVE$1) {
$Symbol = function Symbol() {
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
- var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
+ var tag = _uid(arguments.length > 0 ? arguments[0] : undefined);
var $set = function (value) {
if (this === ObjectProto$1) $set.call(OPSymbols, value);
- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
- setSymbolDesc(this, tag, createDesc(1, value));
+ if (_has(this, HIDDEN) && _has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
+ setSymbolDesc(this, tag, _propertyDesc(1, value));
};
- if (require$$0$1 && setter) setSymbolDesc(ObjectProto$1, tag, { configurable: true, set: $set });
+ if (_descriptors && setter) setSymbolDesc(ObjectProto$1, tag, { configurable: true, set: $set });
return wrap(tag);
};
- redefine($Symbol[PROTOTYPE$2], 'toString', function toString() {
+ _redefine($Symbol[PROTOTYPE$2], 'toString', function toString() {
return this._k;
});
- gOPD$1.f = $getOwnPropertyDescriptor;
- $defineProperty.f = $defineProperty$1;
- require$$0$4.f = require$$1$2.f = $getOwnPropertyNames;
- require$$0$6.f = $propertyIsEnumerable;
- gOPS.f = $getOwnPropertySymbols;
+ _objectGopd.f = $getOwnPropertyDescriptor;
+ _objectDp.f = $defineProperty$1;
+ _objectGopn.f = _objectGopnExt.f = $getOwnPropertyNames;
+ _objectPie.f = $propertyIsEnumerable;
+ _objectGops.f = $getOwnPropertySymbols;
- if (require$$0$1 && !LIBRARY) {
- redefine(ObjectProto$1, 'propertyIsEnumerable', $propertyIsEnumerable, true);
+ if (_descriptors && !_library) {
+ _redefine(ObjectProto$1, 'propertyIsEnumerable', $propertyIsEnumerable, true);
}
- wksExt.f = function (name) {
- return wrap(wks(name));
+ _wksExt.f = function (name) {
+ return wrap(_wks(name));
};
}
-$export$1($export$1.G + $export$1.W + $export$1.F * !USE_NATIVE$1, { Symbol: $Symbol });
+_export(_export.G + _export.W + _export.F * !USE_NATIVE$1, { Symbol: $Symbol });
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(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
+).split(','), j = 0; es6Symbols.length > j;)_wks(es6Symbols[j++]);
-for (var wellKnownSymbols = getKeys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
+for (var wellKnownSymbols = _objectKeys(_wks.store), k = 0; wellKnownSymbols.length > k;) _wksDefine(wellKnownSymbols[k++]);
-$export$1($export$1.S + $export$1.F * !USE_NATIVE$1, 'Symbol', {
+_export(_export.S + _export.F * !USE_NATIVE$1, 'Symbol', {
// 19.4.2.1 Symbol.for(key)
'for': function (key) {
- return has(SymbolRegistry, key += '')
+ return _has(SymbolRegistry, key += '')
? SymbolRegistry[key]
: SymbolRegistry[key] = $Symbol(key);
},
@@ -4010,7 +3305,7 @@ $export$1($export$1.S + $export$1.F * !USE_NATIVE$1, 'Symbol', {
useSimple: function () { setter = false; }
});
-$export$1($export$1.S + $export$1.F * !USE_NATIVE$1, 'Object', {
+_export(_export.S + _export.F * !USE_NATIVE$1, 'Object', {
// 19.1.2.2 Object.create(O [, Properties])
create: $create,
// 19.1.2.4 Object.defineProperty(O, P, Attributes)
@@ -4026,7 +3321,7 @@ $export$1($export$1.S + $export$1.F * !USE_NATIVE$1, 'Object', {
});
// 24.3.2 JSON.stringify(value [, replacer [, space]])
-$JSON && $export$1($export$1.S + $export$1.F * (!USE_NATIVE$1 || require$$0(function () {
+$JSON && _export(_export.S + _export.F * (!USE_NATIVE$1 || _fails(function () {
var S = $Symbol();
// MS Edge converts symbol values to JSON as {}
// WebKit converts symbol values to JSON as null
@@ -4039,8 +3334,8 @@ $JSON && $export$1($export$1.S + $export$1.F * (!USE_NATIVE$1 || require$$0(func
var replacer, $replacer;
while (arguments.length > i) args.push(arguments[i++]);
$replacer = replacer = args[1];
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
- if (!isArray(replacer)) replacer = function (key, value) {
+ if (!_isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
+ if (!_isArray(replacer)) replacer = function (key, value) {
if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
if (!isSymbol(value)) return value;
};
@@ -4050,97 +3345,121 @@ $JSON && $export$1($export$1.S + $export$1.F * (!USE_NATIVE$1 || require$$0(func
});
// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
-$Symbol[PROTOTYPE$2][TO_PRIMITIVE] || hide($Symbol[PROTOTYPE$2], TO_PRIMITIVE, $Symbol[PROTOTYPE$2].valueOf);
+$Symbol[PROTOTYPE$2][TO_PRIMITIVE] || _hide($Symbol[PROTOTYPE$2], TO_PRIMITIVE, $Symbol[PROTOTYPE$2].valueOf);
// 19.4.3.5 Symbol.prototype[@@toStringTag]
-setToStringTag($Symbol, 'Symbol');
+_setToStringTag($Symbol, 'Symbol');
// 20.2.1.9 Math[@@toStringTag]
-setToStringTag(Math, 'Math', true);
+_setToStringTag(Math, 'Math', true);
// 24.3.3 JSON[@@toStringTag]
-setToStringTag(global$1.JSON, 'JSON', true);
+_setToStringTag(_global.JSON, 'JSON', true);
+
+// most Object methods by ES6 should accept primitives
+
+
var _objectSap = function (KEY, exec) {
- var fn = (core.Object || {})[KEY] || Object[KEY];
+ var fn = (_core.Object || {})[KEY] || Object[KEY];
var exp = {};
exp[KEY] = exec(fn);
- $export$1($export$1.S + $export$1.F * require$$0(function () { fn(1); }), 'Object', exp);
+ _export(_export.S + _export.F * _fails(function () { fn(1); }), 'Object', exp);
};
+// 19.1.2.5 Object.freeze(O)
+var meta = _meta.onFreeze;
-var _objectSap$2 = Object.freeze({
- default: _objectSap,
- __moduleExports: _objectSap
-});
-
-var require$$0$14 = ( _objectSap$2 && _objectSap ) || _objectSap$2;
-
-var meta = require$$0$11.onFreeze;
-
-require$$0$14('freeze', function ($freeze) {
+_objectSap('freeze', function ($freeze) {
return function freeze(it) {
- return $freeze && isObject(it) ? $freeze(meta(it)) : it;
+ return $freeze && _isObject(it) ? $freeze(meta(it)) : it;
};
});
-var meta$1 = require$$0$11.onFreeze;
+// 19.1.2.17 Object.seal(O)
-require$$0$14('seal', function ($seal) {
+var meta$1 = _meta.onFreeze;
+
+_objectSap('seal', function ($seal) {
return function seal(it) {
- return $seal && isObject(it) ? $seal(meta$1(it)) : it;
+ return $seal && _isObject(it) ? $seal(meta$1(it)) : it;
};
});
-var meta$2 = require$$0$11.onFreeze;
+// 19.1.2.15 Object.preventExtensions(O)
+
+var meta$2 = _meta.onFreeze;
-require$$0$14('preventExtensions', function ($preventExtensions) {
+_objectSap('preventExtensions', function ($preventExtensions) {
return function preventExtensions(it) {
- return $preventExtensions && isObject(it) ? $preventExtensions(meta$2(it)) : it;
+ return $preventExtensions && _isObject(it) ? $preventExtensions(meta$2(it)) : it;
};
});
-require$$0$14('isFrozen', function ($isFrozen) {
+// 19.1.2.12 Object.isFrozen(O)
+
+
+_objectSap('isFrozen', function ($isFrozen) {
return function isFrozen(it) {
- return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;
+ return _isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;
};
});
-require$$0$14('isSealed', function ($isSealed) {
+// 19.1.2.13 Object.isSealed(O)
+
+
+_objectSap('isSealed', function ($isSealed) {
return function isSealed(it) {
- return isObject(it) ? $isSealed ? $isSealed(it) : false : true;
+ return _isObject(it) ? $isSealed ? $isSealed(it) : false : true;
};
});
-require$$0$14('isExtensible', function ($isExtensible) {
+// 19.1.2.11 Object.isExtensible(O)
+
+
+_objectSap('isExtensible', function ($isExtensible) {
return function isExtensible(it) {
- return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;
+ return _isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;
};
});
-var $getOwnPropertyDescriptor$1 = gOPD$1.f;
+// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
+
+var $getOwnPropertyDescriptor$1 = _objectGopd.f;
-require$$0$14('getOwnPropertyDescriptor', function () {
+_objectSap('getOwnPropertyDescriptor', function () {
return function getOwnPropertyDescriptor(it, key) {
- return $getOwnPropertyDescriptor$1(toIObject(it), key);
+ return $getOwnPropertyDescriptor$1(_toIobject(it), key);
};
});
-require$$0$14('getPrototypeOf', function () {
+// 19.1.2.9 Object.getPrototypeOf(O)
+
+
+
+_objectSap('getPrototypeOf', function () {
return function getPrototypeOf(it) {
- return $getPrototypeOf(toObject(it));
+ return _objectGpo(_toObject(it));
};
});
-require$$0$14('keys', function () {
+// 19.1.2.14 Object.keys(O)
+
+
+
+_objectSap('keys', function () {
return function keys(it) {
- return getKeys(toObject(it));
+ return _objectKeys(_toObject(it));
};
});
-require$$0$14('getOwnPropertyNames', function () {
- return require$$1$2.f;
+// 19.1.2.7 Object.getOwnPropertyNames(O)
+_objectSap('getOwnPropertyNames', function () {
+ return _objectGopnExt.f;
});
-$export$1($export$1.S + $export$1.F, 'Object', { assign: require$$0$13 });
+// 19.1.3.1 Object.assign(target, source)
+
+
+_export(_export.S + _export.F, 'Object', { assign: _objectAssign });
// 7.2.9 SameValue(x, y)
var _sameValue = Object.is || function is(x, y) {
@@ -4148,24 +3467,17 @@ var _sameValue = Object.is || function is(x, y) {
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
};
+// 19.1.3.10 Object.is(value1, value2)
+_export(_export.S, 'Object', { is: _sameValue });
-var _sameValue$2 = Object.freeze({
- default: _sameValue,
- __moduleExports: _sameValue
-});
-
-var require$$0$15 = ( _sameValue$2 && _sameValue ) || _sameValue$2;
-
-$export$1($export$1.S, 'Object', { is: require$$0$15 });
-
-var dP$3 = $defineProperty.f;
+var dP$3 = _objectDp.f;
var FProto = Function.prototype;
var nameRE = /^\s*function ([^ (]*)/;
var NAME = 'name';
// 19.2.4.2 name
-NAME in FProto || require$$0$1 && dP$3(FProto, NAME, {
+NAME in FProto || _descriptors && dP$3(FProto, NAME, {
configurable: true,
get: function () {
try {
@@ -4176,11 +3488,11 @@ NAME in FProto || require$$0$1 && dP$3(FProto, NAME, {
}
});
-$export$1($export$1.S, 'String', {
+_export(_export.S, 'String', {
// 21.1.2.4 String.raw(callSite, ...substitutions)
raw: function raw(callSite) {
- var tpl = toIObject(callSite.raw);
- var len = toLength(tpl.length);
+ var tpl = _toIobject(callSite.raw);
+ var len = _toLength(tpl.length);
var aLen = arguments.length;
var res = [];
var i = 0;
@@ -4195,7 +3507,7 @@ var fromCharCode = String.fromCharCode;
var $fromCodePoint = String.fromCodePoint;
// length should be 1, old FF problem
-$export$1($export$1.S + $export$1.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', {
+_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 = [];
@@ -4204,7 +3516,7 @@ $export$1($export$1.S + $export$1.F * (!!$fromCodePoint && $fromCodePoint.length
var code;
while (aLen > i) {
code = +arguments[i++];
- if (toAbsoluteIndex(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)
@@ -4213,10 +3525,12 @@ $export$1($export$1.S + $export$1.F * (!!$fromCodePoint && $fromCodePoint.length
}
});
+// true -> String#at
+// false -> String#codePointAt
var _stringAt = function (TO_STRING) {
return function (that, pos) {
- var s = String(defined(that));
- var i = toInteger(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;
@@ -4227,19 +3541,10 @@ var _stringAt = function (TO_STRING) {
};
};
-
-
-var _stringAt$2 = Object.freeze({
- default: _stringAt,
- __moduleExports: _stringAt
-});
-
-var require$$0$16 = ( _stringAt$2 && _stringAt ) || _stringAt$2;
-
'use strict';
-var $at = require$$0$16(false);
-$export$1($export$1.P, 'String', {
+var $at = _stringAt(false);
+_export(_export.P, 'String', {
// 21.1.3.3 String.prototype.codePointAt(pos)
codePointAt: function codePointAt(pos) {
return $at(this, pos);
@@ -4251,56 +3556,38 @@ $export$1($export$1.P, 'String', {
var _stringRepeat = function repeat(count) {
- var str = String(defined(this));
+ var str = String(_defined(this));
var res = '';
- var n = toInteger(count);
+ 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;
};
-
-
-var _stringRepeat$2 = Object.freeze({
- default: _stringRepeat,
- __moduleExports: _stringRepeat
+_export(_export.P, 'String', {
+ // 21.1.3.13 String.prototype.repeat(count)
+ repeat: _stringRepeat
});
-var repeat = ( _stringRepeat$2 && _stringRepeat ) || _stringRepeat$2;
+// 7.2.8 IsRegExp(argument)
-$export$1($export$1.P, 'String', {
- // 21.1.3.13 String.prototype.repeat(count)
- repeat: repeat
-});
-var MATCH = wks('match');
+var MATCH = _wks('match');
var _isRegexp = function (it) {
var isRegExp;
- return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
+ return _isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : _cof(it) == 'RegExp');
};
+// helper for String#{startsWith, endsWith, includes}
-var _isRegexp$2 = Object.freeze({
- default: _isRegexp,
- __moduleExports: _isRegexp
-});
-
-var require$$1$3 = ( _isRegexp$2 && _isRegexp ) || _isRegexp$2;
var _stringContext = function (that, searchString, NAME) {
- if (require$$1$3(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
- return String(defined(that));
+ if (_isRegexp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
+ return String(_defined(that));
};
-
-
-var _stringContext$2 = Object.freeze({
- default: _stringContext,
- __moduleExports: _stringContext
-});
-
-var MATCH$1 = wks('match');
+var MATCH$1 = _wks('match');
var _failsIsRegexp = function (KEY) {
var re = /./;
try {
@@ -4313,17 +3600,7 @@ var _failsIsRegexp = function (KEY) {
} return true;
};
-
-
-var _failsIsRegexp$2 = Object.freeze({
- default: _failsIsRegexp,
- __moduleExports: _failsIsRegexp
-});
-
-var context = ( _stringContext$2 && _stringContext ) || _stringContext$2;
-
-var require$$0$17 = ( _failsIsRegexp$2 && _failsIsRegexp ) || _failsIsRegexp$2;
-
+// 21.1.3.18 String.prototype.startsWith(searchString [, position ])
'use strict';
@@ -4331,10 +3608,10 @@ var require$$0$17 = ( _failsIsRegexp$2 && _failsIsRegexp ) || _failsIsRegexp$2;
var STARTS_WITH = 'startsWith';
var $startsWith = ''[STARTS_WITH];
-$export$1($export$1.P + $export$1.F * require$$0$17(STARTS_WITH), 'String', {
+_export(_export.P + _export.F * _failsIsRegexp(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 that = _stringContext(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)
@@ -4342,6 +3619,7 @@ $export$1($export$1.P + $export$1.F * require$$0$17(STARTS_WITH), 'String', {
}
});
+// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition])
'use strict';
@@ -4349,12 +3627,12 @@ $export$1($export$1.P + $export$1.F * require$$0$17(STARTS_WITH), 'String', {
var ENDS_WITH = 'endsWith';
var $endsWith = ''[ENDS_WITH];
-$export$1($export$1.P + $export$1.F * require$$0$17(ENDS_WITH), 'String', {
+_export(_export.P + _export.F * _failsIsRegexp(ENDS_WITH), 'String', {
endsWith: function endsWith(searchString /* , endPosition = @length */) {
- var that = context(this, searchString, ENDS_WITH);
+ var that = _stringContext(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 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)
@@ -4362,14 +3640,15 @@ $export$1($export$1.P + $export$1.F * require$$0$17(ENDS_WITH), 'String', {
}
});
+// 21.1.3.7 String.prototype.includes(searchString, position = 0)
'use strict';
var INCLUDES = 'includes';
-$export$1($export$1.P + $export$1.F * require$$0$17(INCLUDES), 'String', {
+_export(_export.P + _export.F * _failsIsRegexp(INCLUDES), 'String', {
includes: function includes(searchString /* , position = 0 */) {
- return !!~context(this, searchString, INCLUDES)
+ return !!~_stringContext(this, searchString, INCLUDES)
.indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
}
});
@@ -4378,7 +3657,7 @@ $export$1($export$1.P + $export$1.F * require$$0$17(INCLUDES), 'String', {
// 21.2.5.3 get RegExp.prototype.flags
var _flags = function () {
- var that = anObject(this);
+ var that = _anObject(this);
var result = '';
if (that.global) result += 'g';
if (that.ignoreCase) result += 'i';
@@ -4388,18 +3667,10 @@ var _flags = function () {
return result;
};
-
-
-var _flags$2 = Object.freeze({
- default: _flags,
- __moduleExports: _flags
-});
-
-var require$$2 = ( _flags$2 && _flags ) || _flags$2;
-
-if (require$$0$1 && /./g.flags != 'g') $defineProperty.f(RegExp.prototype, 'flags', {
+// 21.2.5.3 get RegExp.prototype.flags()
+if (_descriptors && /./g.flags != 'g') _objectDp.f(RegExp.prototype, 'flags', {
configurable: true,
- get: require$$2
+ get: _flags
});
'use strict';
@@ -4410,17 +3681,17 @@ if (require$$0$1 && /./g.flags != 'g') $defineProperty.f(RegExp.prototype, 'flag
var _fixReWks = function (KEY, length, exec) {
- var SYMBOL = wks(KEY);
- var fns = exec(defined, SYMBOL, ''[KEY]);
+ var SYMBOL = _wks(KEY);
+ var fns = exec(_defined, SYMBOL, ''[KEY]);
var strfn = fns[0];
var rxfn = fns[1];
- if (require$$0(function () {
+ if (_fails(function () {
var O = {};
O[SYMBOL] = function () { return 7; };
return ''[KEY](O) != 7;
})) {
- redefine(String.prototype, KEY, strfn);
- hide(RegExp.prototype, SYMBOL, length == 2
+ _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); }
@@ -4431,16 +3702,8 @@ var _fixReWks = function (KEY, length, exec) {
}
};
-
-
-var _fixReWks$2 = Object.freeze({
- default: _fixReWks,
- __moduleExports: _fixReWks
-});
-
-var require$$0$18 = ( _fixReWks$2 && _fixReWks ) || _fixReWks$2;
-
-require$$0$18('match', 1, function (defined, MATCH, $match) {
+// @@match logic
+_fixReWks('match', 1, function (defined, MATCH, $match) {
// 21.1.3.11 String.prototype.match(regexp)
return [function match(regexp) {
'use strict';
@@ -4450,7 +3713,8 @@ require$$0$18('match', 1, function (defined, MATCH, $match) {
}, $match];
});
-require$$0$18('replace', 2, function (defined, REPLACE, $replace) {
+// @@replace logic
+_fixReWks('replace', 2, function (defined, REPLACE, $replace) {
// 21.1.3.14 String.prototype.replace(searchValue, replaceValue)
return [function replace(searchValue, replaceValue) {
'use strict';
@@ -4462,9 +3726,10 @@ require$$0$18('replace', 2, function (defined, REPLACE, $replace) {
}, $replace];
});
-require$$0$18('split', 2, function (defined, SPLIT, $split) {
+// @@split logic
+_fixReWks('split', 2, function (defined, SPLIT, $split) {
'use strict';
- var isRegExp = require$$1$3;
+ var isRegExp = _isRegexp;
var _split = $split;
var $push = [].push;
var $SPLIT = 'split';
@@ -4533,7 +3798,8 @@ require$$0$18('split', 2, function (defined, SPLIT, $split) {
}, $split];
});
-require$$0$18('search', 1, function (defined, SEARCH, $search) {
+// @@search logic
+_fixReWks('search', 1, function (defined, SEARCH, $search) {
// 21.1.3.15 String.prototype.search(regexp)
return [function search(regexp) {
'use strict';
@@ -4548,19 +3814,10 @@ require$$0$18('search', 1, function (defined, SEARCH, $search) {
var _createProperty = function (object, index, value) {
- if (index in object) $defineProperty.f(object, index, createDesc(0, value));
+ if (index in object) _objectDp.f(object, index, _propertyDesc(0, value));
else object[index] = value;
};
-
-
-var _createProperty$2 = Object.freeze({
- default: _createProperty,
- __moduleExports: _createProperty
-});
-
-var createProperty = ( _createProperty$2 && _createProperty ) || _createProperty$2;
-
'use strict';
@@ -4571,27 +3828,27 @@ var createProperty = ( _createProperty$2 && _createProperty ) || _createProperty
-$export$1($export$1.S + $export$1.F * !require$$0$8(function (iter) { }), 'Array', {
+_export(_export.S + _export.F * !_iterDetect(function (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);
+ 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 iterFn = core_getIteratorMethod(O);
var length, result, step, iterator;
- if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
+ 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))) {
+ 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);
+ _createProperty(result, index, mapping ? _iterCall(iterator, mapfn, [step.value, index], true) : step.value);
}
} else {
- length = toLength(O.length);
+ length = _toLength(O.length);
for (result = new C(length); length > index; index++) {
- createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
+ _createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
}
}
result.length = index;
@@ -4604,7 +3861,7 @@ $export$1($export$1.S + $export$1.F * !require$$0$8(function (iter) { }), 'Arra
// WebKit Array.of isn't generic
-$export$1($export$1.S + $export$1.F * require$$0(function () {
+_export(_export.S + _export.F * _fails(function () {
function F() { /* empty */ }
return !(Array.of.call(F) instanceof F);
}), 'Array', {
@@ -4613,113 +3870,126 @@ $export$1($export$1.S + $export$1.F * require$$0(function () {
var index = 0;
var aLen = arguments.length;
var result = new (typeof this == 'function' ? this : Array)(aLen);
- while (aLen > index) createProperty(result, index, arguments[index++]);
+ while (aLen > index) _createProperty(result, index, arguments[index++]);
result.length = aLen;
return result;
}
});
-$export$1($export$1.P, 'Array', { copyWithin: require$$0$9 });
+// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
-require$$1('copyWithin');
+
+_export(_export.P, 'Array', { copyWithin: _arrayCopyWithin });
+
+_addToUnscopables('copyWithin');
'use strict';
// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
-var $find = require$$0$7(5);
+var $find = _arrayMethods(5);
var KEY = 'find';
var forced = true;
// Shouldn't skip holes
if (KEY in []) Array(1)[KEY](function () { forced = false; });
-$export$1($export$1.P + $export$1.F * forced, 'Array', {
+_export(_export.P + _export.F * forced, 'Array', {
find: function find(callbackfn /* , that = undefined */) {
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
-require$$1(KEY);
+_addToUnscopables(KEY);
'use strict';
// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)
-var $find$1 = require$$0$7(6);
+var $find$1 = _arrayMethods(6);
var KEY$1 = 'findIndex';
var forced$1 = true;
// Shouldn't skip holes
if (KEY$1 in []) Array(1)[KEY$1](function () { forced$1 = false; });
-$export$1($export$1.P + $export$1.F * forced$1, 'Array', {
+_export(_export.P + _export.F * forced$1, 'Array', {
findIndex: function findIndex(callbackfn /* , that = undefined */) {
return $find$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
-require$$1(KEY$1);
+_addToUnscopables(KEY$1);
+
+// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
+
-$export$1($export$1.P, 'Array', { fill: require$$0$5 });
+_export(_export.P, 'Array', { fill: _arrayFill });
-require$$1('fill');
+_addToUnscopables('fill');
-var _isFinite = global$1.isFinite;
+// 20.1.2.2 Number.isFinite(number)
-$export$1($export$1.S, 'Number', {
+var _isFinite = _global.isFinite;
+
+_export(_export.S, 'Number', {
isFinite: function isFinite(it) {
return typeof it == 'number' && _isFinite(it);
}
});
+// 20.1.2.3 Number.isInteger(number)
+
var floor$1 = Math.floor;
var _isInteger = function isInteger(it) {
- return !isObject(it) && isFinite(it) && floor$1(it) === it;
+ return !_isObject(it) && isFinite(it) && floor$1(it) === it;
};
+// 20.1.2.3 Number.isInteger(number)
-var _isInteger$2 = Object.freeze({
- default: _isInteger,
- __moduleExports: _isInteger
-});
+_export(_export.S, 'Number', { isInteger: _isInteger });
-var isInteger = ( _isInteger$2 && _isInteger ) || _isInteger$2;
+// 20.1.2.5 Number.isSafeInteger(number)
-$export$1($export$1.S, 'Number', { isInteger: isInteger });
var abs = Math.abs;
-$export$1($export$1.S, 'Number', {
+_export(_export.S, 'Number', {
isSafeInteger: function isSafeInteger(number) {
- return isInteger(number) && abs(number) <= 0x1fffffffffffff;
+ return _isInteger(number) && abs(number) <= 0x1fffffffffffff;
}
});
-$export$1($export$1.S, 'Number', {
+// 20.1.2.4 Number.isNaN(number)
+
+
+_export(_export.S, 'Number', {
isNaN: function isNaN(number) {
// eslint-disable-next-line no-self-compare
return number != number;
}
});
-$export$1($export$1.S, 'Number', { EPSILON: Math.pow(2, -52) });
+// 20.1.2.1 Number.EPSILON
+
+
+_export(_export.S, 'Number', { EPSILON: Math.pow(2, -52) });
+
+// 20.1.2.10 Number.MIN_SAFE_INTEGER
+
+
+_export(_export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff });
-$export$1($export$1.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff });
+// 20.1.2.6 Number.MAX_SAFE_INTEGER
-$export$1($export$1.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff });
+
+_export(_export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff });
// 20.2.2.20 Math.log1p(x)
var _mathLog1p = Math.log1p || function log1p(x) {
return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x);
};
+// 20.2.2.3 Math.acosh(x)
-var _mathLog1p$2 = Object.freeze({
- default: _mathLog1p,
- __moduleExports: _mathLog1p
-});
-
-var require$$0$19 = ( _mathLog1p$2 && _mathLog1p ) || _mathLog1p$2;
-
var sqrt = Math.sqrt;
var $acosh = Math.acosh;
-$export$1($export$1.S + $export$1.F * !($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
@@ -4728,10 +3998,12 @@ $export$1($export$1.S + $export$1.F * !($acosh
acosh: function acosh(x) {
return (x = +x) < 1 ? NaN : x > 94906265.62425156
? Math.log(x) + Math.LN2
- : require$$0$19(x - 1 + sqrt(x - 1) * sqrt(x + 1));
+ : _mathLog1p(x - 1 + sqrt(x - 1) * sqrt(x + 1));
}
});
+// 20.2.2.5 Math.asinh(x)
+
var $asinh = Math.asinh;
function asinh(x) {
@@ -4739,12 +4011,14 @@ function asinh(x) {
}
// Tor Browser bug: Math.asinh(0) -> -0
-$export$1($export$1.S + $export$1.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh });
+_export(_export.S + _export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh });
+
+// 20.2.2.7 Math.atanh(x)
var $atanh = Math.atanh;
// Tor Browser bug: Math.atanh(-0) -> 0
-$export$1($export$1.S + $export$1.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', {
+_export(_export.S + _export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', {
atanh: function atanh(x) {
return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2;
}
@@ -4756,30 +4030,30 @@ var _mathSign = Math.sign || function sign(x) {
return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;
};
+// 20.2.2.9 Math.cbrt(x)
-var _mathSign$2 = Object.freeze({
- default: _mathSign,
- __moduleExports: _mathSign
-});
-
-var require$$0$20 = ( _mathSign$2 && _mathSign ) || _mathSign$2;
-$export$1($export$1.S, 'Math', {
+_export(_export.S, 'Math', {
cbrt: function cbrt(x) {
- return require$$0$20(x = +x) * Math.pow(Math.abs(x), 1 / 3);
+ return _mathSign(x = +x) * Math.pow(Math.abs(x), 1 / 3);
}
});
-$export$1($export$1.S, 'Math', {
+// 20.2.2.11 Math.clz32(x)
+
+
+_export(_export.S, 'Math', {
clz32: function clz32(x) {
return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32;
}
});
+// 20.2.2.12 Math.cosh(x)
+
var exp = Math.exp;
-$export$1($export$1.S, 'Math', {
+_export(_export.S, 'Math', {
cosh: function cosh(x) {
return (exp(x = +x) + exp(-x)) / 2;
}
@@ -4796,16 +4070,13 @@ var _mathExpm1 = (!$expm1
return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1;
} : $expm1;
+// 20.2.2.14 Math.expm1(x)
-var _mathExpm1$2 = Object.freeze({
- default: _mathExpm1,
- __moduleExports: _mathExpm1
-});
-var expm1 = ( _mathExpm1$2 && _mathExpm1 ) || _mathExpm1$2;
+_export(_export.S + _export.F * (_mathExpm1 != Math.expm1), 'Math', { expm1: _mathExpm1 });
-$export$1($export$1.S + $export$1.F * (expm1 != Math.expm1), 'Math', { expm1: expm1 });
+// 20.2.2.16 Math.fround(x)
var pow = Math.pow;
var EPSILON = pow(2, -52);
@@ -4819,7 +4090,7 @@ var roundTiesToEven = function (n) {
var _mathFround = Math.fround || function fround(x) {
var $abs = Math.abs(x);
- var $sign = require$$0$20(x);
+ var $sign = _mathSign(x);
var a, result;
if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;
a = (1 + EPSILON32 / EPSILON) * $abs;
@@ -4829,20 +4100,16 @@ var _mathFround = Math.fround || function fround(x) {
return $sign * result;
};
+// 20.2.2.16 Math.fround(x)
-var _mathFround$2 = Object.freeze({
- default: _mathFround,
- __moduleExports: _mathFround
-});
+_export(_export.S, 'Math', { fround: _mathFround });
-var require$$0$21 = ( _mathFround$2 && _mathFround ) || _mathFround$2;
-
-$export$1($export$1.S, 'Math', { fround: require$$0$21 });
+// 20.2.2.17 Math.hypot([value1[, value2[, … ]]])
var abs$1 = Math.abs;
-$export$1($export$1.S, 'Math', {
+_export(_export.S, 'Math', {
hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars
var sum = 0;
var i = 0;
@@ -4864,10 +4131,12 @@ $export$1($export$1.S, 'Math', {
}
});
+// 20.2.2.18 Math.imul(x, y)
+
var $imul = Math.imul;
// some WebKit versions fails with big numbers, some has wrong arity
-$export$1($export$1.S + $export$1.F * require$$0(function () {
+_export(_export.S + _export.F * _fails(function () {
return $imul(0xffffffff, 5) != -5 || $imul.length != 2;
}), 'Math', {
imul: function imul(x, y) {
@@ -4880,46 +4149,67 @@ $export$1($export$1.S + $export$1.F * require$$0(function () {
}
});
-$export$1($export$1.S, 'Math', { log1p: require$$0$19 });
+// 20.2.2.20 Math.log1p(x)
+
-$export$1($export$1.S, 'Math', {
+_export(_export.S, 'Math', { log1p: _mathLog1p });
+
+// 20.2.2.21 Math.log10(x)
+
+
+_export(_export.S, 'Math', {
log10: function log10(x) {
return Math.log(x) * Math.LOG10E;
}
});
-$export$1($export$1.S, 'Math', {
+// 20.2.2.22 Math.log2(x)
+
+
+_export(_export.S, 'Math', {
log2: function log2(x) {
return Math.log(x) / Math.LN2;
}
});
-$export$1($export$1.S, 'Math', { sign: require$$0$20 });
+// 20.2.2.28 Math.sign(x)
+
+
+_export(_export.S, 'Math', { sign: _mathSign });
+
+// 20.2.2.30 Math.sinh(x)
+
var exp$1 = Math.exp;
// V8 near Chromium 38 has a problem with very small numbers
-$export$1($export$1.S + $export$1.F * require$$0(function () {
+_export(_export.S + _export.F * _fails(function () {
return !Math.sinh(-2e-17) != -2e-17;
}), 'Math', {
sinh: function sinh(x) {
return Math.abs(x = +x) < 1
- ? (expm1(x) - expm1(-x)) / 2
+ ? (_mathExpm1(x) - _mathExpm1(-x)) / 2
: (exp$1(x - 1) - exp$1(-x - 1)) * (Math.E / 2);
}
});
+// 20.2.2.33 Math.tanh(x)
+
+
var exp$2 = Math.exp;
-$export$1($export$1.S, 'Math', {
+_export(_export.S, 'Math', {
tanh: function tanh(x) {
- var a = expm1(x = +x);
- var b = expm1(-x);
+ var a = _mathExpm1(x = +x);
+ var b = _mathExpm1(-x);
return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp$2(x) + exp$2(-x));
}
});
-$export$1($export$1.S, 'Math', {
+// 20.2.2.34 Math.trunc(x)
+
+
+_export(_export.S, 'Math', {
trunc: function trunc(it) {
return (it > 0 ? Math.floor : Math.ceil)(it);
}
@@ -4928,21 +4218,21 @@ $export$1($export$1.S, 'Math', {
'use strict';
// https://github.com/tc39/Array.prototype.includes
-var $includes = require$$0$2(true);
+var $includes = _arrayIncludes(true);
-$export$1($export$1.P, 'Array', {
+_export(_export.P, 'Array', {
includes: function includes(el /* , fromIndex = 0 */) {
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
}
});
-require$$1('includes');
+_addToUnscopables('includes');
-var isEnum$1 = require$$0$6.f;
+var isEnum$1 = _objectPie.f;
var _objectToArray = function (isEntries) {
return function (it) {
- var O = toIObject(it);
- var keys = getKeys(O);
+ var O = _toIobject(it);
+ var keys = _objectKeys(O);
var length = keys.length;
var i = 0;
var result = [];
@@ -4953,81 +4243,70 @@ var _objectToArray = function (isEntries) {
};
};
+// https://github.com/tc39/proposal-object-values-entries
+var $values = _objectToArray(false);
-var _objectToArray$2 = Object.freeze({
- default: _objectToArray,
- __moduleExports: _objectToArray
-});
-
-var require$$0$22 = ( _objectToArray$2 && _objectToArray ) || _objectToArray$2;
-
-var $values = require$$0$22(false);
-
-$export$1($export$1.S, 'Object', {
+_export(_export.S, 'Object', {
values: function values(it) {
return $values(it);
}
});
-var $entries = require$$0$22(true);
+// https://github.com/tc39/proposal-object-values-entries
+
+var $entries = _objectToArray(true);
-$export$1($export$1.S, 'Object', {
+_export(_export.S, 'Object', {
entries: function entries(it) {
return $entries(it);
}
});
-$export$1($export$1.S, 'Object', {
+// https://github.com/tc39/proposal-object-getownpropertydescriptors
+
+
+
+
+
+
+_export(_export.S, 'Object', {
getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
- var O = toIObject(object);
- var getDesc = gOPD$1.f;
- var keys = ownKeys(O);
+ var O = _toIobject(object);
+ var getDesc = _objectGopd.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);
+ if (desc !== undefined) _createProperty(result, key, desc);
}
return result;
}
});
+// https://github.com/tc39/proposal-string-pad-start-end
+
+
+
+
var _stringPad = function (that, maxLength, fillString, left) {
- var S = String(defined(that));
+ var S = String(_defined(that));
var stringLength = S.length;
var fillStr = fillString === undefined ? ' ' : String(fillString);
- var intMaxLength = toLength(maxLength);
+ var intMaxLength = _toLength(maxLength);
if (intMaxLength <= stringLength || fillStr == '') return S;
var fillLen = intMaxLength - stringLength;
- var stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));
+ var stringFiller = _stringRepeat.call(fillStr, Math.ceil(fillLen / fillStr.length));
if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);
return left ? stringFiller + S : S + stringFiller;
};
-
-
-var _stringPad$2 = Object.freeze({
- default: _stringPad,
- __moduleExports: _stringPad
-});
-
-var navigator$1 = global$1.navigator;
+var navigator$1 = _global.navigator;
var _userAgent = navigator$1 && navigator$1.userAgent || '';
-
-
-var _userAgent$2 = Object.freeze({
- default: _userAgent,
- __moduleExports: _userAgent
-});
-
-var $pad = ( _stringPad$2 && _stringPad ) || _stringPad$2;
-
-var userAgent = ( _userAgent$2 && _userAgent ) || _userAgent$2;
-
'use strict';
// https://github.com/tc39/proposal-string-pad-start-end
@@ -5035,9 +4314,9 @@ var userAgent = ( _userAgent$2 && _userAgent ) || _userAgent$2;
// https://github.com/zloirock/core-js/issues/280
-$export$1($export$1.P + $export$1.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent), 'String', {
+_export(_export.P + _export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(_userAgent), 'String', {
padStart: function padStart(maxLength /* , fillString = ' ' */) {
- return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);
+ return _stringPad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);
}
});
@@ -5048,14 +4327,18 @@ $export$1($export$1.P + $export$1.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(u
// https://github.com/zloirock/core-js/issues/280
-$export$1($export$1.P + $export$1.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent), 'String', {
+_export(_export.P + _export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(_userAgent), 'String', {
padEnd: function padEnd(maxLength /* , fillString = ' ' */) {
- return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);
+ return _stringPad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);
}
});
+// ie9- setTimeout & setInterval additional parameters fix
+
+
+
var slice = [].slice;
-var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check
+var MSIE = /MSIE .\./.test(_userAgent); // <- dirty ie9- check
var wrap$1 = function (set) {
return function (fn, time /* , ...args */) {
var boundArgs = arguments.length > 2;
@@ -5066,19 +4349,19 @@ var wrap$1 = function (set) {
} : fn, time);
};
};
-$export$1($export$1.G + $export$1.B + $export$1.F * MSIE, {
- setTimeout: wrap$1(global$1.setTimeout),
- setInterval: wrap$1(global$1.setInterval)
+_export(_export.G + _export.B + _export.F * MSIE, {
+ setTimeout: wrap$1(_global.setTimeout),
+ setInterval: wrap$1(_global.setInterval)
});
-$export$1($export$1.G + $export$1.B, {
- setImmediate: $task.set,
- clearImmediate: $task.clear
+_export(_export.G + _export.B, {
+ setImmediate: _task.set,
+ clearImmediate: _task.clear
});
-var ITERATOR$4 = wks('iterator');
-var TO_STRING_TAG = wks('toStringTag');
-var ArrayValues = Iterators.Array;
+var ITERATOR$4 = _wks('iterator');
+var TO_STRING_TAG = _wks('toStringTag');
+var ArrayValues = _iterators.Array;
var DOMIterables = {
CSSRuleList: true, // TODO: Not spec compliant, should be false.
@@ -5114,17 +4397,17 @@ var DOMIterables = {
TouchList: false
};
-for (var collections = getKeys(DOMIterables), i$1 = 0; i$1 < collections.length; i$1++) {
+for (var collections = _objectKeys(DOMIterables), i$1 = 0; i$1 < collections.length; i$1++) {
var NAME$1 = collections[i$1];
var explicit = DOMIterables[NAME$1];
- var Collection = global$1[NAME$1];
+ var Collection = _global[NAME$1];
var proto = Collection && Collection.prototype;
var key;
if (proto) {
- if (!proto[ITERATOR$4]) hide(proto, ITERATOR$4, ArrayValues);
- if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME$1);
- Iterators[NAME$1] = ArrayValues;
- if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
+ if (!proto[ITERATOR$4]) _hide(proto, ITERATOR$4, ArrayValues);
+ if (!proto[TO_STRING_TAG]) _hide(proto, TO_STRING_TAG, NAME$1);
+ _iterators[NAME$1] = ArrayValues;
+ if (explicit) for (key in es6_array_iterator) if (!proto[key]) _redefine(proto, key, es6_array_iterator[key], true);
}
}
@@ -5985,7 +5268,7 @@ var defaults = {
// Sprite (for icons)
loadSprite: true,
iconPrefix: 'plyr',
- iconUrl: 'https://cdn.plyr.io/3.0.1/plyr.svg',
+ iconUrl: 'https://cdn.plyr.io/3.0.2/plyr.svg',
// Blank video (used to prevent errors on source change)
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
@@ -7645,6 +6928,7 @@ var utils = {
// Plyr support checks
// ==========================================================================
+// Check for feature support
var support = {
// Basic support
audio: 'canPlayType' in document.createElement('audio'),
@@ -8652,6 +7936,7 @@ var ui = {
// Plyr controls
// ==========================================================================
+// Sniff out the browser
var browser$2 = utils.getBrowser();
var controls = {
@@ -9849,6 +9134,7 @@ var controls = {
// Plyr Event Listeners
// ==========================================================================
+// Sniff out the browser
var browser$1 = utils.getBrowser();
var Listeners = function () {
@@ -11942,6 +11228,7 @@ var vimeo = {
// Plyr Media
// ==========================================================================
+// Sniff out the browser
var browser$3 = utils.getBrowser();
var media = {
@@ -12181,11 +11468,17 @@ var source = {
// ==========================================================================
// Plyr
-// plyr.js v3.0.1
+// plyr.js v3.0.2
// https://github.com/sampotts/plyr
// License: The MIT License (MIT)
// ==========================================================================
+// Private properties
+// TODO: Use a WeakMap for private globals
+// const globals = new WeakMap();
+
+// Plyr instance
+
var Plyr$1 = function () {
function Plyr(target, options) {
var _this = this;
@@ -12867,7 +12160,7 @@ var Plyr$1 = function () {
clearInterval(this.timers.playing);
// Destroy YouTube API
- if (this.embed !== null) {
+ if (this.embed !== null && utils.is.function(this.embed.destroy)) {
this.embed.destroy();
}
@@ -13043,7 +12336,7 @@ var Plyr$1 = function () {
var fauxDuration = parseInt(this.config.duration, 10);
// True duration
- var realDuration = Number(this.media.duration);
+ var realDuration = this.media ? Number(this.media.duration) : 0;
// If custom duration is funky, use regular duration
return !Number.isNaN(fauxDuration) ? fauxDuration : realDuration;
@@ -13479,7 +12772,7 @@ var Plyr$1 = function () {
// ==========================================================================
// Plyr Polyfilled Build
-// plyr.js v3.0.1
+// plyr.js v3.0.2
// https://github.com/sampotts/plyr
// License: The MIT License (MIT)
// ==========================================================================