vendor/assets/javascripts/bootstrap-table/bootstrap-table.js in bootstrap-table-rails-1.20.1 vs vendor/assets/javascripts/bootstrap-table/bootstrap-table.js in bootstrap-table-rails-1.20.2

- old
+ new

@@ -1,14 +1,14 @@ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) : typeof define === 'function' && define.amd ? define(['jquery'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BootstrapTable = factory(global.jQuery)); -})(this, (function ($) { 'use strict'; +})(this, (function ($$n) { 'use strict'; function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - var $__default = /*#__PURE__*/_interopDefaultLegacy($); + var $__default = /*#__PURE__*/_interopDefaultLegacy($$n); function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { @@ -175,156 +175,181 @@ }; } var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; - function createCommonjsModule(fn, module) { - return module = { exports: {} }, fn(module, module.exports), module.exports; - } - var check = function (it) { return it && it.Math == Math && it; }; // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 - var global_1 = + var global$G = // eslint-disable-next-line es-x/no-global-this -- safe check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || // eslint-disable-next-line no-restricted-globals -- safe check(typeof self == 'object' && self) || check(typeof commonjsGlobal == 'object' && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback (function () { return this; })() || Function('return this')(); - var fails = function (exec) { + var objectGetOwnPropertyDescriptor = {}; + + var fails$u = function (exec) { try { return !!exec(); } catch (error) { return true; } }; + var fails$t = fails$u; + // Detect IE8's incomplete defineProperty implementation - var descriptors = !fails(function () { + var descriptors = !fails$t(function () { // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; }); - var functionBindNative = !fails(function () { + var fails$s = fails$u; + + var functionBindNative = !fails$s(function () { // eslint-disable-next-line es-x/no-function-prototype-bind -- safe var test = (function () { /* empty */ }).bind(); // eslint-disable-next-line no-prototype-builtins -- safe return typeof test != 'function' || test.hasOwnProperty('prototype'); }); - var call$2 = Function.prototype.call; + var NATIVE_BIND$3 = functionBindNative; - var functionCall = functionBindNative ? call$2.bind(call$2) : function () { - return call$2.apply(call$2, arguments); + var call$e = Function.prototype.call; + + var functionCall = NATIVE_BIND$3 ? call$e.bind(call$e) : function () { + return call$e.apply(call$e, arguments); }; + var objectPropertyIsEnumerable = {}; + var $propertyIsEnumerable$1 = {}.propertyIsEnumerable; // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe var getOwnPropertyDescriptor$4 = Object.getOwnPropertyDescriptor; // Nashorn ~ JDK8 bug var NASHORN_BUG = getOwnPropertyDescriptor$4 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1); // `Object.prototype.propertyIsEnumerable` method implementation // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable - var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) { + objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) { var descriptor = getOwnPropertyDescriptor$4(this, V); return !!descriptor && descriptor.enumerable; } : $propertyIsEnumerable$1; - var objectPropertyIsEnumerable = { - f: f$5 - }; - - var createPropertyDescriptor = function (bitmap, value) { + var createPropertyDescriptor$4 = function (bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value: value }; }; + var NATIVE_BIND$2 = functionBindNative; + var FunctionPrototype$2 = Function.prototype; - var bind$1 = FunctionPrototype$2.bind; - var call$1 = FunctionPrototype$2.call; - var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1); + var bind$2 = FunctionPrototype$2.bind; + var call$d = FunctionPrototype$2.call; + var uncurryThis$z = NATIVE_BIND$2 && bind$2.bind(call$d, call$d); - var functionUncurryThis = functionBindNative ? function (fn) { - return fn && uncurryThis(fn); + var functionUncurryThis = NATIVE_BIND$2 ? function (fn) { + return fn && uncurryThis$z(fn); } : function (fn) { return fn && function () { - return call$1.apply(fn, arguments); + return call$d.apply(fn, arguments); }; }; - var toString$1 = functionUncurryThis({}.toString); - var stringSlice$7 = functionUncurryThis(''.slice); + var uncurryThis$y = functionUncurryThis; - var classofRaw = function (it) { - return stringSlice$7(toString$1(it), 8, -1); + var toString$h = uncurryThis$y({}.toString); + var stringSlice$7 = uncurryThis$y(''.slice); + + var classofRaw$1 = function (it) { + return stringSlice$7(toString$h(it), 8, -1); }; - var Object$5 = global_1.Object; - var split = functionUncurryThis(''.split); + var global$F = global$G; + var uncurryThis$x = functionUncurryThis; + var fails$r = fails$u; + var classof$7 = classofRaw$1; + var Object$5 = global$F.Object; + var split = uncurryThis$x(''.split); + // fallback for non-array-like ES3 and non-enumerable old V8 strings - var indexedObject = fails(function () { + var indexedObject = fails$r(function () { // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 // eslint-disable-next-line no-prototype-builtins -- safe return !Object$5('z').propertyIsEnumerable(0); }) ? function (it) { - return classofRaw(it) == 'String' ? split(it, '') : Object$5(it); + return classof$7(it) == 'String' ? split(it, '') : Object$5(it); } : Object$5; - var TypeError$e = global_1.TypeError; + var global$E = global$G; + var TypeError$e = global$E.TypeError; + // `RequireObjectCoercible` abstract operation // https://tc39.es/ecma262/#sec-requireobjectcoercible - var requireObjectCoercible = function (it) { + var requireObjectCoercible$b = function (it) { if (it == undefined) throw TypeError$e("Can't call method on " + it); return it; }; // toObject with fallback for non-array-like ES3 strings + var IndexedObject$3 = indexedObject; + var requireObjectCoercible$a = requireObjectCoercible$b; - - - var toIndexedObject = function (it) { - return indexedObject(requireObjectCoercible(it)); + var toIndexedObject$8 = function (it) { + return IndexedObject$3(requireObjectCoercible$a(it)); }; // `IsCallable` abstract operation // https://tc39.es/ecma262/#sec-iscallable - var isCallable = function (argument) { + var isCallable$j = function (argument) { return typeof argument == 'function'; }; - var isObject = function (it) { - return typeof it == 'object' ? it !== null : isCallable(it); + var isCallable$i = isCallable$j; + + var isObject$a = function (it) { + return typeof it == 'object' ? it !== null : isCallable$i(it); }; + var global$D = global$G; + var isCallable$h = isCallable$j; + var aFunction = function (argument) { - return isCallable(argument) ? argument : undefined; + return isCallable$h(argument) ? argument : undefined; }; - var getBuiltIn = function (namespace, method) { - return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method]; + var getBuiltIn$6 = function (namespace, method) { + return arguments.length < 2 ? aFunction(global$D[namespace]) : global$D[namespace] && global$D[namespace][method]; }; - var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf); + var uncurryThis$w = functionUncurryThis; - var engineUserAgent = getBuiltIn('navigator', 'userAgent') || ''; + var objectIsPrototypeOf = uncurryThis$w({}.isPrototypeOf); - var process = global_1.process; - var Deno = global_1.Deno; + var getBuiltIn$5 = getBuiltIn$6; + + var engineUserAgent = getBuiltIn$5('navigator', 'userAgent') || ''; + + var global$C = global$G; + var userAgent$2 = engineUserAgent; + + var process = global$C.process; + var Deno = global$C.Deno; var versions = process && process.versions || Deno && Deno.version; var v8 = versions && versions.v8; var match, version; if (v8) { @@ -334,252 +359,333 @@ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); } // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0` // so check `userAgent` even if `.v8` exists, but 0 - if (!version && engineUserAgent) { - match = engineUserAgent.match(/Edge\/(\d+)/); + if (!version && userAgent$2) { + match = userAgent$2.match(/Edge\/(\d+)/); if (!match || match[1] >= 74) { - match = engineUserAgent.match(/Chrome\/(\d+)/); + match = userAgent$2.match(/Chrome\/(\d+)/); if (match) version = +match[1]; } } var engineV8Version = version; /* eslint-disable es-x/no-symbol -- required for testing */ + var V8_VERSION$2 = engineV8Version; + var fails$q = fails$u; - // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing - var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () { + var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$q(function () { var symbol = Symbol(); // Chrome 38 Symbol has incorrect toString conversion // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances return !String(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances - !Symbol.sham && engineV8Version && engineV8Version < 41; + !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41; }); /* eslint-disable es-x/no-symbol -- required for testing */ + var NATIVE_SYMBOL$1 = nativeSymbol; - var useSymbolAsUid = nativeSymbol + var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == 'symbol'; - var Object$4 = global_1.Object; + var global$B = global$G; + var getBuiltIn$4 = getBuiltIn$6; + var isCallable$g = isCallable$j; + var isPrototypeOf$3 = objectIsPrototypeOf; + var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; - var isSymbol = useSymbolAsUid ? function (it) { + var Object$4 = global$B.Object; + + var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) { return typeof it == 'symbol'; } : function (it) { - var $Symbol = getBuiltIn('Symbol'); - return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$4(it)); + var $Symbol = getBuiltIn$4('Symbol'); + return isCallable$g($Symbol) && isPrototypeOf$3($Symbol.prototype, Object$4(it)); }; - var String$4 = global_1.String; + var global$A = global$G; - var tryToString = function (argument) { + var String$4 = global$A.String; + + var tryToString$2 = function (argument) { try { return String$4(argument); } catch (error) { return 'Object'; } }; - var TypeError$d = global_1.TypeError; + var global$z = global$G; + var isCallable$f = isCallable$j; + var tryToString$1 = tryToString$2; + var TypeError$d = global$z.TypeError; + // `Assert: IsCallable(argument) is true` - var aCallable = function (argument) { - if (isCallable(argument)) return argument; - throw TypeError$d(tryToString(argument) + ' is not a function'); + var aCallable$3 = function (argument) { + if (isCallable$f(argument)) return argument; + throw TypeError$d(tryToString$1(argument) + ' is not a function'); }; + var aCallable$2 = aCallable$3; + // `GetMethod` abstract operation // https://tc39.es/ecma262/#sec-getmethod - var getMethod = function (V, P) { + var getMethod$5 = function (V, P) { var func = V[P]; - return func == null ? undefined : aCallable(func); + return func == null ? undefined : aCallable$2(func); }; - var TypeError$c = global_1.TypeError; + var global$y = global$G; + var call$c = functionCall; + var isCallable$e = isCallable$j; + var isObject$9 = isObject$a; + var TypeError$c = global$y.TypeError; + // `OrdinaryToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-ordinarytoprimitive - var ordinaryToPrimitive = function (input, pref) { + var ordinaryToPrimitive$1 = function (input, pref) { var fn, val; - if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val; - if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val; - if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val; + if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$9(val = call$c(fn, input))) return val; + if (isCallable$e(fn = input.valueOf) && !isObject$9(val = call$c(fn, input))) return val; + if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$9(val = call$c(fn, input))) return val; throw TypeError$c("Can't convert object to primitive value"); }; + var shared$4 = {exports: {}}; + + var global$x = global$G; + // eslint-disable-next-line es-x/no-object-defineproperty -- safe - var defineProperty$5 = Object.defineProperty; + var defineProperty$6 = Object.defineProperty; - var setGlobal = function (key, value) { + var setGlobal$3 = function (key, value) { try { - defineProperty$5(global_1, key, { value: value, configurable: true, writable: true }); + defineProperty$6(global$x, key, { value: value, configurable: true, writable: true }); } catch (error) { - global_1[key] = value; + global$x[key] = value; } return value; }; + var global$w = global$G; + var setGlobal$2 = setGlobal$3; + var SHARED = '__core-js_shared__'; - var store$1 = global_1[SHARED] || setGlobal(SHARED, {}); + var store$3 = global$w[SHARED] || setGlobal$2(SHARED, {}); - var sharedStore = store$1; + var sharedStore = store$3; - var shared = createCommonjsModule(function (module) { - (module.exports = function (key, value) { - return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {}); + var store$2 = sharedStore; + + (shared$4.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); })('versions', []).push({ - version: '3.22.4', + version: '3.22.5', mode: 'global', copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE', + license: 'https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE', source: 'https://github.com/zloirock/core-js' }); - }); - var Object$3 = global_1.Object; + var global$v = global$G; + var requireObjectCoercible$9 = requireObjectCoercible$b; + var Object$3 = global$v.Object; + // `ToObject` abstract operation // https://tc39.es/ecma262/#sec-toobject - var toObject = function (argument) { - return Object$3(requireObjectCoercible(argument)); + var toObject$9 = function (argument) { + return Object$3(requireObjectCoercible$9(argument)); }; - var hasOwnProperty = functionUncurryThis({}.hasOwnProperty); + var uncurryThis$v = functionUncurryThis; + var toObject$8 = toObject$9; + var hasOwnProperty = uncurryThis$v({}.hasOwnProperty); + // `HasOwnProperty` abstract operation // https://tc39.es/ecma262/#sec-hasownproperty // eslint-disable-next-line es-x/no-object-hasown -- safe var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) { - return hasOwnProperty(toObject(it), key); + return hasOwnProperty(toObject$8(it), key); }; + var uncurryThis$u = functionUncurryThis; + var id = 0; var postfix = Math.random(); - var toString = functionUncurryThis(1.0.toString); + var toString$g = uncurryThis$u(1.0.toString); - var uid = function (key) { - return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); + var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$g(++id + postfix, 36); }; - var WellKnownSymbolsStore = shared('wks'); - var Symbol$3 = global_1.Symbol; + var global$u = global$G; + var shared$3 = shared$4.exports; + var hasOwn$b = hasOwnProperty_1; + var uid$1 = uid$2; + var NATIVE_SYMBOL = nativeSymbol; + var USE_SYMBOL_AS_UID = useSymbolAsUid; + + var WellKnownSymbolsStore = shared$3('wks'); + var Symbol$3 = global$u.Symbol; var symbolFor = Symbol$3 && Symbol$3['for']; - var createWellKnownSymbol = useSymbolAsUid ? Symbol$3 : Symbol$3 && Symbol$3.withoutSetter || uid; + var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$3 : Symbol$3 && Symbol$3.withoutSetter || uid$1; - var wellKnownSymbol = function (name) { - if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) { + var wellKnownSymbol$j = function (name) { + if (!hasOwn$b(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) { var description = 'Symbol.' + name; - if (nativeSymbol && hasOwnProperty_1(Symbol$3, name)) { + if (NATIVE_SYMBOL && hasOwn$b(Symbol$3, name)) { WellKnownSymbolsStore[name] = Symbol$3[name]; - } else if (useSymbolAsUid && symbolFor) { + } else if (USE_SYMBOL_AS_UID && symbolFor) { WellKnownSymbolsStore[name] = symbolFor(description); } else { WellKnownSymbolsStore[name] = createWellKnownSymbol(description); } } return WellKnownSymbolsStore[name]; }; - var TypeError$b = global_1.TypeError; - var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); + var global$t = global$G; + var call$b = functionCall; + var isObject$8 = isObject$a; + var isSymbol$2 = isSymbol$3; + var getMethod$4 = getMethod$5; + var ordinaryToPrimitive = ordinaryToPrimitive$1; + var wellKnownSymbol$i = wellKnownSymbol$j; + var TypeError$b = global$t.TypeError; + var TO_PRIMITIVE = wellKnownSymbol$i('toPrimitive'); + // `ToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-toprimitive - var toPrimitive = function (input, pref) { - if (!isObject(input) || isSymbol(input)) return input; - var exoticToPrim = getMethod(input, TO_PRIMITIVE); + var toPrimitive$2 = function (input, pref) { + if (!isObject$8(input) || isSymbol$2(input)) return input; + var exoticToPrim = getMethod$4(input, TO_PRIMITIVE); var result; if (exoticToPrim) { if (pref === undefined) pref = 'default'; - result = functionCall(exoticToPrim, input, pref); - if (!isObject(result) || isSymbol(result)) return result; + result = call$b(exoticToPrim, input, pref); + if (!isObject$8(result) || isSymbol$2(result)) return result; throw TypeError$b("Can't convert object to primitive value"); } if (pref === undefined) pref = 'number'; return ordinaryToPrimitive(input, pref); }; + var toPrimitive$1 = toPrimitive$2; + var isSymbol$1 = isSymbol$3; + // `ToPropertyKey` abstract operation // https://tc39.es/ecma262/#sec-topropertykey - var toPropertyKey = function (argument) { - var key = toPrimitive(argument, 'string'); - return isSymbol(key) ? key : key + ''; + var toPropertyKey$3 = function (argument) { + var key = toPrimitive$1(argument, 'string'); + return isSymbol$1(key) ? key : key + ''; }; - var document$1 = global_1.document; + var global$s = global$G; + var isObject$7 = isObject$a; + + var document$1 = global$s.document; // typeof document.createElement is 'object' in old IE - var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement); + var EXISTS$1 = isObject$7(document$1) && isObject$7(document$1.createElement); - var documentCreateElement = function (it) { + var documentCreateElement$2 = function (it) { return EXISTS$1 ? document$1.createElement(it) : {}; }; + var DESCRIPTORS$d = descriptors; + var fails$p = fails$u; + var createElement = documentCreateElement$2; + // Thanks to IE8 for its funny defineProperty - var ie8DomDefine = !descriptors && !fails(function () { + var ie8DomDefine = !DESCRIPTORS$d && !fails$p(function () { // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing - return Object.defineProperty(documentCreateElement('div'), 'a', { + return Object.defineProperty(createElement('div'), 'a', { get: function () { return 7; } }).a != 7; }); + var DESCRIPTORS$c = descriptors; + var call$a = functionCall; + var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable; + var createPropertyDescriptor$3 = createPropertyDescriptor$4; + var toIndexedObject$7 = toIndexedObject$8; + var toPropertyKey$2 = toPropertyKey$3; + var hasOwn$a = hasOwnProperty_1; + var IE8_DOM_DEFINE$1 = ie8DomDefine; + // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor - var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { - O = toIndexedObject(O); - P = toPropertyKey(P); - if (ie8DomDefine) try { + objectGetOwnPropertyDescriptor.f = DESCRIPTORS$c ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$7(O); + P = toPropertyKey$2(P); + if (IE8_DOM_DEFINE$1) try { return $getOwnPropertyDescriptor$1(O, P); } catch (error) { /* empty */ } - if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]); + if (hasOwn$a(O, P)) return createPropertyDescriptor$3(!call$a(propertyIsEnumerableModule$1.f, O, P), O[P]); }; - var objectGetOwnPropertyDescriptor = { - f: f$4 - }; + var objectDefineProperty = {}; + var DESCRIPTORS$b = descriptors; + var fails$o = fails$u; + // V8 ~ Chrome 36- // https://bugs.chromium.org/p/v8/issues/detail?id=3334 - var v8PrototypeDefineBug = descriptors && fails(function () { + var v8PrototypeDefineBug = DESCRIPTORS$b && fails$o(function () { // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing return Object.defineProperty(function () { /* empty */ }, 'prototype', { value: 42, writable: false }).prototype != 42; }); - var String$3 = global_1.String; - var TypeError$a = global_1.TypeError; + var global$r = global$G; + var isObject$6 = isObject$a; + var String$3 = global$r.String; + var TypeError$a = global$r.TypeError; + // `Assert: Type(argument) is Object` - var anObject = function (argument) { - if (isObject(argument)) return argument; + var anObject$d = function (argument) { + if (isObject$6(argument)) return argument; throw TypeError$a(String$3(argument) + ' is not an object'); }; - var TypeError$9 = global_1.TypeError; + var global$q = global$G; + var DESCRIPTORS$a = descriptors; + var IE8_DOM_DEFINE = ie8DomDefine; + var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug; + var anObject$c = anObject$d; + var toPropertyKey$1 = toPropertyKey$3; + + var TypeError$9 = global$q.TypeError; // eslint-disable-next-line es-x/no-object-defineproperty -- safe var $defineProperty = Object.defineProperty; // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; var ENUMERABLE = 'enumerable'; var CONFIGURABLE$1 = 'configurable'; var WRITABLE = 'writable'; // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty - var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) { - anObject(O); - P = toPropertyKey(P); - anObject(Attributes); + objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) { + anObject$c(O); + P = toPropertyKey$1(P); + anObject$c(Attributes); if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { var current = $getOwnPropertyDescriptor(O, P); if (current && current[WRITABLE]) { O[P] = Attributes.value; Attributes = { @@ -588,93 +694,119 @@ writable: false }; } } return $defineProperty(O, P, Attributes); } : $defineProperty : function defineProperty(O, P, Attributes) { - anObject(O); - P = toPropertyKey(P); - anObject(Attributes); - if (ie8DomDefine) try { + anObject$c(O); + P = toPropertyKey$1(P); + anObject$c(Attributes); + if (IE8_DOM_DEFINE) try { return $defineProperty(O, P, Attributes); } catch (error) { /* empty */ } if ('get' in Attributes || 'set' in Attributes) throw TypeError$9('Accessors not supported'); if ('value' in Attributes) O[P] = Attributes.value; return O; }; - var objectDefineProperty = { - f: f$3 - }; + var DESCRIPTORS$9 = descriptors; + var definePropertyModule$5 = objectDefineProperty; + var createPropertyDescriptor$2 = createPropertyDescriptor$4; - var createNonEnumerableProperty = descriptors ? function (object, key, value) { - return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value)); + var createNonEnumerableProperty$8 = DESCRIPTORS$9 ? function (object, key, value) { + return definePropertyModule$5.f(object, key, createPropertyDescriptor$2(1, value)); } : function (object, key, value) { object[key] = value; return object; }; + var makeBuiltIn$2 = {exports: {}}; + + var DESCRIPTORS$8 = descriptors; + var hasOwn$9 = hasOwnProperty_1; + var FunctionPrototype$1 = Function.prototype; // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe - var getDescriptor = descriptors && Object.getOwnPropertyDescriptor; + var getDescriptor = DESCRIPTORS$8 && Object.getOwnPropertyDescriptor; - var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name'); + var EXISTS = hasOwn$9(FunctionPrototype$1, 'name'); // additional protection from minified / mangled / dropped function names var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; - var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable)); + var CONFIGURABLE = EXISTS && (!DESCRIPTORS$8 || (DESCRIPTORS$8 && getDescriptor(FunctionPrototype$1, 'name').configurable)); var functionName = { EXISTS: EXISTS, PROPER: PROPER, CONFIGURABLE: CONFIGURABLE }; - var functionToString = functionUncurryThis(Function.toString); + var uncurryThis$t = functionUncurryThis; + var isCallable$d = isCallable$j; + var store$1 = sharedStore; + var functionToString = uncurryThis$t(Function.toString); + // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper - if (!isCallable(sharedStore.inspectSource)) { - sharedStore.inspectSource = function (it) { + if (!isCallable$d(store$1.inspectSource)) { + store$1.inspectSource = function (it) { return functionToString(it); }; } - var inspectSource = sharedStore.inspectSource; + var inspectSource$3 = store$1.inspectSource; - var WeakMap$1 = global_1.WeakMap; + var global$p = global$G; + var isCallable$c = isCallable$j; + var inspectSource$2 = inspectSource$3; - var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1)); + var WeakMap$1 = global$p.WeakMap; - var keys$2 = shared('keys'); + var nativeWeakMap = isCallable$c(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1)); - var sharedKey = function (key) { + var shared$2 = shared$4.exports; + var uid = uid$2; + + var keys$2 = shared$2('keys'); + + var sharedKey$3 = function (key) { return keys$2[key] || (keys$2[key] = uid(key)); }; - var hiddenKeys$1 = {}; + var hiddenKeys$4 = {}; + var NATIVE_WEAK_MAP = nativeWeakMap; + var global$o = global$G; + var uncurryThis$s = functionUncurryThis; + var isObject$5 = isObject$a; + var createNonEnumerableProperty$7 = createNonEnumerableProperty$8; + var hasOwn$8 = hasOwnProperty_1; + var shared$1 = sharedStore; + var sharedKey$2 = sharedKey$3; + var hiddenKeys$3 = hiddenKeys$4; + var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; - var TypeError$8 = global_1.TypeError; - var WeakMap = global_1.WeakMap; + var TypeError$8 = global$o.TypeError; + var WeakMap = global$o.WeakMap; var set, get, has; var enforce = function (it) { return has(it) ? get(it) : set(it, {}); }; var getterFor = function (TYPE) { return function (it) { var state; - if (!isObject(it) || (state = get(it)).type !== TYPE) { + if (!isObject$5(it) || (state = get(it)).type !== TYPE) { throw TypeError$8('Incompatible receiver, ' + TYPE + ' required'); } return state; }; }; - if (nativeWeakMap || sharedStore.state) { - var store = sharedStore.state || (sharedStore.state = new WeakMap()); - var wmget = functionUncurryThis(store.get); - var wmhas = functionUncurryThis(store.has); - var wmset = functionUncurryThis(store.set); + if (NATIVE_WEAK_MAP || shared$1.state) { + var store = shared$1.state || (shared$1.state = new WeakMap()); + var wmget = uncurryThis$s(store.get); + var wmhas = uncurryThis$s(store.has); + var wmset = uncurryThis$s(store.set); set = function (it, metadata) { if (wmhas(store, it)) throw new TypeError$8(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; wmset(store, it, metadata); return metadata; @@ -684,23 +816,23 @@ }; has = function (it) { return wmhas(store, it); }; } else { - var STATE = sharedKey('state'); - hiddenKeys$1[STATE] = true; + var STATE = sharedKey$2('state'); + hiddenKeys$3[STATE] = true; set = function (it, metadata) { - if (hasOwnProperty_1(it, STATE)) throw new TypeError$8(OBJECT_ALREADY_INITIALIZED); + if (hasOwn$8(it, STATE)) throw new TypeError$8(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; - createNonEnumerableProperty(it, STATE, metadata); + createNonEnumerableProperty$7(it, STATE, metadata); return metadata; }; get = function (it) { - return hasOwnProperty_1(it, STATE) ? it[STATE] : {}; + return hasOwn$8(it, STATE) ? it[STATE] : {}; }; has = function (it) { - return hasOwnProperty_1(it, STATE); + return hasOwn$8(it, STATE); }; } var internalState = { set: set, @@ -708,112 +840,138 @@ has: has, enforce: enforce, getterFor: getterFor }; - var makeBuiltIn_1 = createCommonjsModule(function (module) { - var defineProperty = objectDefineProperty.f; - var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; + var fails$n = fails$u; + var isCallable$b = isCallable$j; + var hasOwn$7 = hasOwnProperty_1; + var DESCRIPTORS$7 = descriptors; + var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE; + var inspectSource$1 = inspectSource$3; + var InternalStateModule$1 = internalState; + var enforceInternalState$1 = InternalStateModule$1.enforce; + var getInternalState$2 = InternalStateModule$1.get; + // eslint-disable-next-line es-x/no-object-defineproperty -- safe + var defineProperty$5 = Object.defineProperty; - - var enforceInternalState = internalState.enforce; - var getInternalState = internalState.get; - - var CONFIGURABLE_LENGTH = !fails(function () { - return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; + var CONFIGURABLE_LENGTH = DESCRIPTORS$7 && !fails$n(function () { + return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; }); var TEMPLATE = String(String).split('String'); - var makeBuiltIn = module.exports = function (value, name, options) { + var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) { if (String(name).slice(0, 7) === 'Symbol(') { name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']'; } if (options && options.getter) name = 'get ' + name; if (options && options.setter) name = 'set ' + name; - if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { - defineProperty(value, 'name', { value: name, configurable: true }); + if (!hasOwn$7(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) { + defineProperty$5(value, 'name', { value: name, configurable: true }); } - if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) { - defineProperty(value, 'length', { value: options.arity }); + if (CONFIGURABLE_LENGTH && options && hasOwn$7(options, 'arity') && value.length !== options.arity) { + defineProperty$5(value, 'length', { value: options.arity }); } - var state = enforceInternalState(value); - if (!hasOwnProperty_1(state, 'source')) { + if (options && hasOwn$7(options, 'constructor') && options.constructor) { + if (DESCRIPTORS$7) try { + defineProperty$5(value, 'prototype', { writable: false }); + } catch (error) { /* empty */ } + } else value.prototype = undefined; + var state = enforceInternalState$1(value); + if (!hasOwn$7(state, 'source')) { state.source = TEMPLATE.join(typeof name == 'string' ? name : ''); } return value; }; // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative // eslint-disable-next-line no-extend-native -- required - Function.prototype.toString = makeBuiltIn(function toString() { - return isCallable(this) && getInternalState(this).source || inspectSource(this); + Function.prototype.toString = makeBuiltIn$1(function toString() { + return isCallable$b(this) && getInternalState$2(this).source || inspectSource$1(this); }, 'toString'); - }); - var defineBuiltIn = function (O, key, value, options) { + var global$n = global$G; + var isCallable$a = isCallable$j; + var createNonEnumerableProperty$6 = createNonEnumerableProperty$8; + var makeBuiltIn = makeBuiltIn$2.exports; + var setGlobal$1 = setGlobal$3; + + var defineBuiltIn$8 = function (O, key, value, options) { var unsafe = options ? !!options.unsafe : false; var simple = options ? !!options.enumerable : false; var noTargetGet = options ? !!options.noTargetGet : false; var name = options && options.name !== undefined ? options.name : key; - if (isCallable(value)) makeBuiltIn_1(value, name, options); - if (O === global_1) { + if (isCallable$a(value)) makeBuiltIn(value, name, options); + if (O === global$n) { if (simple) O[key] = value; - else setGlobal(key, value); + else setGlobal$1(key, value); return O; } else if (!unsafe) { delete O[key]; } else if (!noTargetGet && O[key]) { simple = true; } if (simple) O[key] = value; - else createNonEnumerableProperty(O, key, value); + else createNonEnumerableProperty$6(O, key, value); return O; }; + var objectGetOwnPropertyNames = {}; + var ceil = Math.ceil; var floor$2 = Math.floor; // `ToIntegerOrInfinity` abstract operation // https://tc39.es/ecma262/#sec-tointegerorinfinity - var toIntegerOrInfinity = function (argument) { + var toIntegerOrInfinity$5 = function (argument) { var number = +argument; // eslint-disable-next-line no-self-compare -- safe return number !== number || number === 0 ? 0 : (number > 0 ? floor$2 : ceil)(number); }; + var toIntegerOrInfinity$4 = toIntegerOrInfinity$5; + var max$4 = Math.max; var min$6 = Math.min; // Helper for a popular repeating case of the spec: // Let integer be ? ToInteger(index). // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). - var toAbsoluteIndex = function (index, length) { - var integer = toIntegerOrInfinity(index); + var toAbsoluteIndex$4 = function (index, length) { + var integer = toIntegerOrInfinity$4(index); return integer < 0 ? max$4(integer + length, 0) : min$6(integer, length); }; + var toIntegerOrInfinity$3 = toIntegerOrInfinity$5; + var min$5 = Math.min; // `ToLength` abstract operation // https://tc39.es/ecma262/#sec-tolength - var toLength = function (argument) { - return argument > 0 ? min$5(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + var toLength$6 = function (argument) { + return argument > 0 ? min$5(toIntegerOrInfinity$3(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 }; + var toLength$5 = toLength$6; + // `LengthOfArrayLike` abstract operation // https://tc39.es/ecma262/#sec-lengthofarraylike - var lengthOfArrayLike = function (obj) { - return toLength(obj.length); + var lengthOfArrayLike$7 = function (obj) { + return toLength$5(obj.length); }; + var toIndexedObject$6 = toIndexedObject$8; + var toAbsoluteIndex$3 = toAbsoluteIndex$4; + var lengthOfArrayLike$6 = lengthOfArrayLike$7; + // `Array.prototype.{ indexOf, includes }` methods implementation var createMethod$4 = function (IS_INCLUDES) { return function ($this, el, fromIndex) { - var O = toIndexedObject($this); - var length = lengthOfArrayLike(O); - var index = toAbsoluteIndex(fromIndex, length); + var O = toIndexedObject$6($this); + var length = lengthOfArrayLike$6(O); + var index = toAbsoluteIndex$3(fromIndex, length); var value; // Array#includes uses SameValueZero equality algorithm // eslint-disable-next-line no-self-compare -- NaN check if (IS_INCLUDES && el != el) while (length > index) { value = O[index++]; @@ -833,107 +991,122 @@ // `Array.prototype.indexOf` method // https://tc39.es/ecma262/#sec-array.prototype.indexof indexOf: createMethod$4(false) }; + var uncurryThis$r = functionUncurryThis; + var hasOwn$6 = hasOwnProperty_1; + var toIndexedObject$5 = toIndexedObject$8; var indexOf$1 = arrayIncludes.indexOf; + var hiddenKeys$2 = hiddenKeys$4; + var push$5 = uncurryThis$r([].push); - var push$5 = functionUncurryThis([].push); - var objectKeysInternal = function (object, names) { - var O = toIndexedObject(object); + var O = toIndexedObject$5(object); var i = 0; var result = []; var key; - for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$5(result, key); + for (key in O) !hasOwn$6(hiddenKeys$2, key) && hasOwn$6(O, key) && push$5(result, key); // Don't enum bug & hidden keys - while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) { + while (names.length > i) if (hasOwn$6(O, key = names[i++])) { ~indexOf$1(result, key) || push$5(result, key); } return result; }; // IE8- don't enum bug keys - var enumBugKeys = [ + var enumBugKeys$3 = [ 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf' ]; - var hiddenKeys = enumBugKeys.concat('length', 'prototype'); + var internalObjectKeys$1 = objectKeysInternal; + var enumBugKeys$2 = enumBugKeys$3; + var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype'); + // `Object.getOwnPropertyNames` method // https://tc39.es/ecma262/#sec-object.getownpropertynames // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe - var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { - return objectKeysInternal(O, hiddenKeys); + objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return internalObjectKeys$1(O, hiddenKeys$1); }; - var objectGetOwnPropertyNames = { - f: f$2 - }; + var objectGetOwnPropertySymbols = {}; // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe - var f$1 = Object.getOwnPropertySymbols; + objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; - var objectGetOwnPropertySymbols = { - f: f$1 - }; + var getBuiltIn$3 = getBuiltIn$6; + var uncurryThis$q = functionUncurryThis; + var getOwnPropertyNamesModule = objectGetOwnPropertyNames; + var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols; + var anObject$b = anObject$d; - var concat$2 = functionUncurryThis([].concat); + var concat$2 = uncurryThis$q([].concat); // all object keys, includes non-enumerable and symbols - var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { - var keys = objectGetOwnPropertyNames.f(anObject(it)); - var getOwnPropertySymbols = objectGetOwnPropertySymbols.f; + var ownKeys$1 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject$b(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f; return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys; }; - var copyConstructorProperties = function (target, source, exceptions) { + var hasOwn$5 = hasOwnProperty_1; + var ownKeys = ownKeys$1; + var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; + var definePropertyModule$4 = objectDefineProperty; + + var copyConstructorProperties$1 = function (target, source, exceptions) { var keys = ownKeys(source); - var defineProperty = objectDefineProperty.f; - var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var defineProperty = definePropertyModule$4.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; for (var i = 0; i < keys.length; i++) { var key = keys[i]; - if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) { + if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) { defineProperty(target, key, getOwnPropertyDescriptor(source, key)); } } }; + var fails$m = fails$u; + var isCallable$9 = isCallable$j; + var replacement = /#|\.prototype\./; - var isForced = function (feature, detection) { + var isForced$3 = function (feature, detection) { var value = data[normalize(feature)]; return value == POLYFILL ? true : value == NATIVE ? false - : isCallable(detection) ? fails(detection) + : isCallable$9(detection) ? fails$m(detection) : !!detection; }; - var normalize = isForced.normalize = function (string) { + var normalize = isForced$3.normalize = function (string) { return String(string).replace(replacement, '.').toLowerCase(); }; - var data = isForced.data = {}; - var NATIVE = isForced.NATIVE = 'N'; - var POLYFILL = isForced.POLYFILL = 'P'; + var data = isForced$3.data = {}; + var NATIVE = isForced$3.NATIVE = 'N'; + var POLYFILL = isForced$3.POLYFILL = 'P'; - var isForced_1 = isForced; + var isForced_1 = isForced$3; + var global$m = global$G; var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f; + var createNonEnumerableProperty$5 = createNonEnumerableProperty$8; + var defineBuiltIn$7 = defineBuiltIn$8; + var setGlobal = setGlobal$3; + var copyConstructorProperties = copyConstructorProperties$1; + var isForced$2 = isForced_1; - - - - - /* options.target - name of the target object options.global - target is the global object options.stat - export as static methods of target options.proto - export as prototype methods of target @@ -951,54 +1124,67 @@ var TARGET = options.target; var GLOBAL = options.global; var STATIC = options.stat; var FORCED, target, key, targetProperty, sourceProperty, descriptor; if (GLOBAL) { - target = global_1; + target = global$m; } else if (STATIC) { - target = global_1[TARGET] || setGlobal(TARGET, {}); + target = global$m[TARGET] || setGlobal(TARGET, {}); } else { - target = (global_1[TARGET] || {}).prototype; + target = (global$m[TARGET] || {}).prototype; } if (target) for (key in source) { sourceProperty = source[key]; if (options.noTargetGet) { descriptor = getOwnPropertyDescriptor$3(target, key); targetProperty = descriptor && descriptor.value; } else targetProperty = target[key]; - FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + FORCED = isForced$2(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); // contained in target if (!FORCED && targetProperty !== undefined) { if (typeof sourceProperty == typeof targetProperty) continue; copyConstructorProperties(sourceProperty, targetProperty); } // add a flag to not completely full polyfills if (options.sham || (targetProperty && targetProperty.sham)) { - createNonEnumerableProperty(sourceProperty, 'sham', true); + createNonEnumerableProperty$5(sourceProperty, 'sham', true); } - defineBuiltIn(target, key, sourceProperty, options); + defineBuiltIn$7(target, key, sourceProperty, options); } }; + var internalObjectKeys = objectKeysInternal; + var enumBugKeys$1 = enumBugKeys$3; + // `Object.keys` method // https://tc39.es/ecma262/#sec-object.keys // eslint-disable-next-line es-x/no-object-keys -- safe - var objectKeys = Object.keys || function keys(O) { - return objectKeysInternal(O, enumBugKeys); + var objectKeys$3 = Object.keys || function keys(O) { + return internalObjectKeys(O, enumBugKeys$1); }; + var DESCRIPTORS$6 = descriptors; + var uncurryThis$p = functionUncurryThis; + var call$9 = functionCall; + var fails$l = fails$u; + var objectKeys$2 = objectKeys$3; + var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; + var propertyIsEnumerableModule = objectPropertyIsEnumerable; + var toObject$7 = toObject$9; + var IndexedObject$2 = indexedObject; + // eslint-disable-next-line es-x/no-object-assign -- safe var $assign = Object.assign; // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing var defineProperty$4 = Object.defineProperty; - var concat$1 = functionUncurryThis([].concat); + var concat$1 = uncurryThis$p([].concat); // `Object.assign` method // https://tc39.es/ecma262/#sec-object.assign - var objectAssign = !$assign || fails(function () { + var objectAssign = !$assign || fails$l(function () { // should have correct order of operations (Edge bug) - if (descriptors && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', { + if (DESCRIPTORS$6 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', { enumerable: true, get: function () { defineProperty$4(this, 'b', { value: 3, enumerable: false @@ -1011,47 +1197,58 @@ // eslint-disable-next-line es-x/no-symbol -- safe var symbol = Symbol(); var alphabet = 'abcdefghijklmnopqrst'; A[symbol] = 7; alphabet.split('').forEach(function (chr) { B[chr] = chr; }); - return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet; + return $assign({}, A)[symbol] != 7 || objectKeys$2($assign({}, B)).join('') != alphabet; }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length` - var T = toObject(target); + var T = toObject$7(target); var argumentsLength = arguments.length; var index = 1; - var getOwnPropertySymbols = objectGetOwnPropertySymbols.f; - var propertyIsEnumerable = objectPropertyIsEnumerable.f; + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + var propertyIsEnumerable = propertyIsEnumerableModule.f; while (argumentsLength > index) { - var S = indexedObject(arguments[index++]); - var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S); + var S = IndexedObject$2(arguments[index++]); + var keys = getOwnPropertySymbols ? concat$1(objectKeys$2(S), getOwnPropertySymbols(S)) : objectKeys$2(S); var length = keys.length; var j = 0; var key; while (length > j) { key = keys[j++]; - if (!descriptors || functionCall(propertyIsEnumerable, S, key)) T[key] = S[key]; + if (!DESCRIPTORS$6 || call$9(propertyIsEnumerable, S, key)) T[key] = S[key]; } } return T; } : $assign; + var $$m = _export; + var assign = objectAssign; + // `Object.assign` method // https://tc39.es/ecma262/#sec-object.assign // eslint-disable-next-line es-x/no-object-assign -- required for testing - _export({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== objectAssign }, { - assign: objectAssign + $$m({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, { + assign: assign }); - var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag'); + var wellKnownSymbol$h = wellKnownSymbol$j; + + var TO_STRING_TAG$3 = wellKnownSymbol$h('toStringTag'); var test$2 = {}; test$2[TO_STRING_TAG$3] = 'z'; var toStringTagSupport = String(test$2) === '[object z]'; - var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag'); - var Object$2 = global_1.Object; + var global$l = global$G; + var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport; + var isCallable$8 = isCallable$j; + var classofRaw = classofRaw$1; + var wellKnownSymbol$g = wellKnownSymbol$j; + var TO_STRING_TAG$2 = wellKnownSymbol$g('toStringTag'); + var Object$2 = global$l.Object; + // ES3 wrong here var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments'; // fallback for IE11 Script Access Denied error var tryGet = function (it, key) { @@ -1059,41 +1256,49 @@ return it[key]; } catch (error) { /* empty */ } }; // getting tag from ES6+ `Object.prototype.toString` - var classof = toStringTagSupport ? classofRaw : function (it) { + var classof$6 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) { var O, tag, result; return it === undefined ? 'Undefined' : it === null ? 'Null' // @@toStringTag case : typeof (tag = tryGet(O = Object$2(it), TO_STRING_TAG$2)) == 'string' ? tag // builtinTag case : CORRECT_ARGUMENTS ? classofRaw(O) // ES3 arguments fallback - : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result; + : (result = classofRaw(O)) == 'Object' && isCallable$8(O.callee) ? 'Arguments' : result; }; - var String$2 = global_1.String; + var global$k = global$G; + var classof$5 = classof$6; - var toString_1 = function (argument) { - if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); + var String$2 = global$k.String; + + var toString$f = function (argument) { + if (classof$5(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); return String$2(argument); }; // a string of all valid unicode whitespaces - var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' + + var whitespaces$4 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' + '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; - var replace$3 = functionUncurryThis(''.replace); - var whitespace = '[' + whitespaces + ']'; + var uncurryThis$o = functionUncurryThis; + var requireObjectCoercible$8 = requireObjectCoercible$b; + var toString$e = toString$f; + var whitespaces$3 = whitespaces$4; + + var replace$3 = uncurryThis$o(''.replace); + var whitespace = '[' + whitespaces$3 + ']'; var ltrim = RegExp('^' + whitespace + whitespace + '*'); var rtrim = RegExp(whitespace + whitespace + '*$'); // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation var createMethod$3 = function (TYPE) { return function ($this) { - var string = toString_1(requireObjectCoercible($this)); + var string = toString$e(requireObjectCoercible$8($this)); if (TYPE & 1) string = replace$3(string, ltrim, ''); if (TYPE & 2) string = replace$3(string, rtrim, ''); return string; }; }; @@ -1109,61 +1314,72 @@ // https://tc39.es/ecma262/#sec-string.prototype.trim trim: createMethod$3(3) }; var PROPER_FUNCTION_NAME$2 = functionName.PROPER; + var fails$k = fails$u; + var whitespaces$2 = whitespaces$4; - - var non = '\u200B\u0085\u180E'; // check that a method works with the correct list // of whitespaces and has a correct name var stringTrimForced = function (METHOD_NAME) { - return fails(function () { - return !!whitespaces[METHOD_NAME]() + return fails$k(function () { + return !!whitespaces$2[METHOD_NAME]() || non[METHOD_NAME]() !== non - || (PROPER_FUNCTION_NAME$2 && whitespaces[METHOD_NAME].name !== METHOD_NAME); + || (PROPER_FUNCTION_NAME$2 && whitespaces$2[METHOD_NAME].name !== METHOD_NAME); }); }; + var $$l = _export; var $trim = stringTrim.trim; + var forcedStringTrimMethod = stringTrimForced; - // `String.prototype.trim` method // https://tc39.es/ecma262/#sec-string.prototype.trim - _export({ target: 'String', proto: true, forced: stringTrimForced('trim') }, { + $$l({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, { trim: function trim() { return $trim(this); } }); - var arrayMethodIsStrict = function (METHOD_NAME, argument) { + var fails$j = fails$u; + + var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) { var method = [][METHOD_NAME]; - return !!method && fails(function () { + return !!method && fails$j(function () { // eslint-disable-next-line no-useless-call -- required for testing method.call(null, argument || function () { return 1; }, 1); }); }; - var un$Join = functionUncurryThis([].join); + var $$k = _export; + var uncurryThis$n = functionUncurryThis; + var IndexedObject$1 = indexedObject; + var toIndexedObject$4 = toIndexedObject$8; + var arrayMethodIsStrict$3 = arrayMethodIsStrict$4; - var ES3_STRINGS = indexedObject != Object; - var STRICT_METHOD$3 = arrayMethodIsStrict('join', ','); + var un$Join = uncurryThis$n([].join); + var ES3_STRINGS = IndexedObject$1 != Object; + var STRICT_METHOD$3 = arrayMethodIsStrict$3('join', ','); + // `Array.prototype.join` method // https://tc39.es/ecma262/#sec-array.prototype.join - _export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$3 }, { + $$k({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$3 }, { join: function join(separator) { - return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator); + return un$Join(toIndexedObject$4(this), separator === undefined ? ',' : separator); } }); + var anObject$a = anObject$d; + // `RegExp.prototype.flags` getter implementation // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags - var regexpFlags = function () { - var that = anObject(this); + var regexpFlags$1 = function () { + var that = anObject$a(this); var result = ''; if (that.hasIndices) result += 'd'; if (that.global) result += 'g'; if (that.ignoreCase) result += 'i'; if (that.multiline) result += 'm'; @@ -1171,26 +1387,29 @@ if (that.unicode) result += 'u'; if (that.sticky) result += 'y'; return result; }; + var fails$i = fails$u; + var global$j = global$G; + // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError - var $RegExp$2 = global_1.RegExp; + var $RegExp$2 = global$j.RegExp; - var UNSUPPORTED_Y$3 = fails(function () { + var UNSUPPORTED_Y$3 = fails$i(function () { var re = $RegExp$2('a', 'y'); re.lastIndex = 2; return re.exec('abcd') != null; }); // UC Browser bug // https://github.com/zloirock/core-js/issues/1008 - var MISSED_STICKY$1 = UNSUPPORTED_Y$3 || fails(function () { + var MISSED_STICKY$1 = UNSUPPORTED_Y$3 || fails$i(function () { return !$RegExp$2('a', 'y').sticky; }); - var BROKEN_CARET = UNSUPPORTED_Y$3 || fails(function () { + var BROKEN_CARET = UNSUPPORTED_Y$3 || fails$i(function () { // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 var re = $RegExp$2('^r', 'gy'); re.lastIndex = 2; return re.exec('str') != null; }); @@ -1199,44 +1418,52 @@ BROKEN_CARET: BROKEN_CARET, MISSED_STICKY: MISSED_STICKY$1, UNSUPPORTED_Y: UNSUPPORTED_Y$3 }; + var objectDefineProperties = {}; + + var DESCRIPTORS$5 = descriptors; + var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; + var definePropertyModule$3 = objectDefineProperty; + var anObject$9 = anObject$d; + var toIndexedObject$3 = toIndexedObject$8; + var objectKeys$1 = objectKeys$3; + // `Object.defineProperties` method // https://tc39.es/ecma262/#sec-object.defineproperties // eslint-disable-next-line es-x/no-object-defineproperties -- safe - var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) { - anObject(O); - var props = toIndexedObject(Properties); - var keys = objectKeys(Properties); + objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { + anObject$9(O); + var props = toIndexedObject$3(Properties); + var keys = objectKeys$1(Properties); var length = keys.length; var index = 0; var key; - while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]); + while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]); return O; }; - var objectDefineProperties = { - f: f - }; + var getBuiltIn$2 = getBuiltIn$6; - var html = getBuiltIn('document', 'documentElement'); + var html$1 = getBuiltIn$2('document', 'documentElement'); /* global ActiveXObject -- old IE, WSH */ + var anObject$8 = anObject$d; + var definePropertiesModule = objectDefineProperties; + var enumBugKeys = enumBugKeys$3; + var hiddenKeys = hiddenKeys$4; + var html = html$1; + var documentCreateElement$1 = documentCreateElement$2; + var sharedKey$1 = sharedKey$3; - - - - - - var GT = '>'; var LT = '<'; var PROTOTYPE = 'prototype'; var SCRIPT = 'script'; - var IE_PROTO$1 = sharedKey('IE_PROTO'); + var IE_PROTO$1 = sharedKey$1('IE_PROTO'); var EmptyConstructor = function () { /* empty */ }; var scriptTag = function (content) { return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; @@ -1252,11 +1479,11 @@ }; // Create object with fake `null` prototype: use iframe Object with cleared prototype var NullProtoObjectViaIFrame = function () { // Thrash, waste and sodomy: IE GC bug - var iframe = documentCreateElement('iframe'); + var iframe = documentCreateElement$1('iframe'); var JS = 'java' + SCRIPT + ':'; var iframeDocument; iframe.style.display = 'none'; html.appendChild(iframe); // https://github.com/zloirock/core-js/issues/475 @@ -1286,98 +1513,104 @@ var length = enumBugKeys.length; while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]; return NullProtoObject(); }; - hiddenKeys$1[IE_PROTO$1] = true; + hiddenKeys[IE_PROTO$1] = true; // `Object.create` method // https://tc39.es/ecma262/#sec-object.create // eslint-disable-next-line es-x/no-object-create -- safe var objectCreate = Object.create || function create(O, Properties) { var result; if (O !== null) { - EmptyConstructor[PROTOTYPE] = anObject(O); + EmptyConstructor[PROTOTYPE] = anObject$8(O); result = new EmptyConstructor(); EmptyConstructor[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill result[IE_PROTO$1] = O; } else result = NullProtoObject(); - return Properties === undefined ? result : objectDefineProperties.f(result, Properties); + return Properties === undefined ? result : definePropertiesModule.f(result, Properties); }; + var fails$h = fails$u; + var global$i = global$G; + // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError - var $RegExp$1 = global_1.RegExp; + var $RegExp$1 = global$i.RegExp; - var regexpUnsupportedDotAll = fails(function () { + var regexpUnsupportedDotAll = fails$h(function () { var re = $RegExp$1('.', 's'); return !(re.dotAll && re.exec('\n') && re.flags === 's'); }); + var fails$g = fails$u; + var global$h = global$G; + // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError - var $RegExp = global_1.RegExp; + var $RegExp = global$h.RegExp; - var regexpUnsupportedNcg = fails(function () { + var regexpUnsupportedNcg = fails$g(function () { var re = $RegExp('(?<a>b)', 'g'); return re.exec('b').groups.a !== 'b' || 'b'.replace(re, '$<a>c') !== 'bc'; }); /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */ /* eslint-disable regexp/no-useless-quantifier -- testing */ - - - - - - - + var call$8 = functionCall; + var uncurryThis$m = functionUncurryThis; + var toString$d = toString$f; + var regexpFlags = regexpFlags$1; + var stickyHelpers$2 = regexpStickyHelpers; + var shared = shared$4.exports; + var create$2 = objectCreate; var getInternalState$1 = internalState.get; + var UNSUPPORTED_DOT_ALL$1 = regexpUnsupportedDotAll; + var UNSUPPORTED_NCG$1 = regexpUnsupportedNcg; - - var nativeReplace = shared('native-string-replace', String.prototype.replace); var nativeExec = RegExp.prototype.exec; var patchedExec = nativeExec; - var charAt$5 = functionUncurryThis(''.charAt); - var indexOf = functionUncurryThis(''.indexOf); - var replace$2 = functionUncurryThis(''.replace); - var stringSlice$6 = functionUncurryThis(''.slice); + var charAt$5 = uncurryThis$m(''.charAt); + var indexOf = uncurryThis$m(''.indexOf); + var replace$2 = uncurryThis$m(''.replace); + var stringSlice$6 = uncurryThis$m(''.slice); var UPDATES_LAST_INDEX_WRONG = (function () { var re1 = /a/; var re2 = /b*/g; - functionCall(nativeExec, re1, 'a'); - functionCall(nativeExec, re2, 'a'); + call$8(nativeExec, re1, 'a'); + call$8(nativeExec, re2, 'a'); return re1.lastIndex !== 0 || re2.lastIndex !== 0; })(); - var UNSUPPORTED_Y$2 = regexpStickyHelpers.BROKEN_CARET; + var UNSUPPORTED_Y$2 = stickyHelpers$2.BROKEN_CARET; // nonparticipating capturing group, copied from es5-shim's String#split patch. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; - var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$2 || regexpUnsupportedDotAll || regexpUnsupportedNcg; + var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$2 || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG$1; if (PATCH) { patchedExec = function exec(string) { var re = this; var state = getInternalState$1(re); - var str = toString_1(string); + var str = toString$d(string); var raw = state.raw; var result, reCopy, lastIndex, match, i, object, group; if (raw) { raw.lastIndex = re.lastIndex; - result = functionCall(patchedExec, raw, str); + result = call$8(patchedExec, raw, str); re.lastIndex = raw.lastIndex; return result; } var groups = state.groups; var sticky = UNSUPPORTED_Y$2 && re.sticky; - var flags = functionCall(regexpFlags, re); + var flags = call$8(regexpFlags, re); var source = re.source; var charsAdded = 0; var strCopy = str; if (sticky) { @@ -1401,11 +1634,11 @@ if (NPCG_INCLUDED) { reCopy = new RegExp('^' + source + '$(?!\\s)', flags); } if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; - match = functionCall(nativeExec, sticky ? reCopy : re, strCopy); + match = call$8(nativeExec, sticky ? reCopy : re, strCopy); if (sticky) { if (match) { match.input = stringSlice$6(match.input, charsAdded); match[0] = stringSlice$6(match[0], charsAdded); @@ -1416,69 +1649,74 @@ re.lastIndex = re.global ? match.index + match[0].length : lastIndex; } if (NPCG_INCLUDED && match && match.length > 1) { // Fix browsers whose `exec` methods don't consistently return `undefined` // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/ - functionCall(nativeReplace, match[0], reCopy, function () { + call$8(nativeReplace, match[0], reCopy, function () { for (i = 1; i < arguments.length - 2; i++) { if (arguments[i] === undefined) match[i] = undefined; } }); } if (match && groups) { - match.groups = object = objectCreate(null); + match.groups = object = create$2(null); for (i = 0; i < groups.length; i++) { group = groups[i]; object[group[0]] = match[group[1]]; } } return match; }; } - var regexpExec = patchedExec; + var regexpExec$3 = patchedExec; + var $$j = _export; + var exec$4 = regexpExec$3; + // `RegExp.prototype.exec` method // https://tc39.es/ecma262/#sec-regexp.prototype.exec - _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, { - exec: regexpExec + $$j({ target: 'RegExp', proto: true, forced: /./.exec !== exec$4 }, { + exec: exec$4 }); + var NATIVE_BIND$1 = functionBindNative; + var FunctionPrototype = Function.prototype; - var apply = FunctionPrototype.apply; - var call = FunctionPrototype.call; + var apply$2 = FunctionPrototype.apply; + var call$7 = FunctionPrototype.call; // eslint-disable-next-line es-x/no-reflect -- safe - var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () { - return call.apply(apply, arguments); + var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$7.bind(apply$2) : function () { + return call$7.apply(apply$2, arguments); }); // TODO: Remove from `core-js@4` since it's moved to entry points + var uncurryThis$l = functionUncurryThis; + var defineBuiltIn$6 = defineBuiltIn$8; + var regexpExec$2 = regexpExec$3; + var fails$f = fails$u; + var wellKnownSymbol$f = wellKnownSymbol$j; + var createNonEnumerableProperty$4 = createNonEnumerableProperty$8; - - - - - - - var SPECIES$5 = wellKnownSymbol('species'); + var SPECIES$5 = wellKnownSymbol$f('species'); var RegExpPrototype$3 = RegExp.prototype; var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) { - var SYMBOL = wellKnownSymbol(KEY); + var SYMBOL = wellKnownSymbol$f(KEY); - var DELEGATES_TO_SYMBOL = !fails(function () { + var DELEGATES_TO_SYMBOL = !fails$f(function () { // String methods call symbol-named RegEp methods var O = {}; O[SYMBOL] = function () { return 7; }; return ''[KEY](O) != 7; }); - var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () { + var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$f(function () { // Symbol-named RegExp methods call .exec var execCalled = false; var re = /a/; if (KEY === 'split') { @@ -1503,15 +1741,15 @@ if ( !DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || FORCED ) { - var uncurriedNativeRegExpMethod = functionUncurryThis(/./[SYMBOL]); + var uncurriedNativeRegExpMethod = uncurryThis$l(/./[SYMBOL]); var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) { - var uncurriedNativeMethod = functionUncurryThis(nativeMethod); + var uncurriedNativeMethod = uncurryThis$l(nativeMethod); var $exec = regexp.exec; - if ($exec === regexpExec || $exec === RegExpPrototype$3.exec) { + if ($exec === regexpExec$2 || $exec === RegExpPrototype$3.exec) { if (DELEGATES_TO_SYMBOL && !forceStringMethod) { // The native String method already delegates to @@method (this // polyfilled function), leasing to infinite recursion. // We avoid it by directly calling the native @@method method. return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) }; @@ -1519,46 +1757,57 @@ return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) }; } return { done: false }; }); - defineBuiltIn(String.prototype, KEY, methods[0]); - defineBuiltIn(RegExpPrototype$3, SYMBOL, methods[1]); + defineBuiltIn$6(String.prototype, KEY, methods[0]); + defineBuiltIn$6(RegExpPrototype$3, SYMBOL, methods[1]); } - if (SHAM) createNonEnumerableProperty(RegExpPrototype$3[SYMBOL], 'sham', true); + if (SHAM) createNonEnumerableProperty$4(RegExpPrototype$3[SYMBOL], 'sham', true); }; - var MATCH$2 = wellKnownSymbol('match'); + var isObject$4 = isObject$a; + var classof$4 = classofRaw$1; + var wellKnownSymbol$e = wellKnownSymbol$j; + var MATCH$2 = wellKnownSymbol$e('match'); + // `IsRegExp` abstract operation // https://tc39.es/ecma262/#sec-isregexp var isRegexp = function (it) { var isRegExp; - return isObject(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp'); + return isObject$4(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$4(it) == 'RegExp'); }; + var uncurryThis$k = functionUncurryThis; + var fails$e = fails$u; + var isCallable$7 = isCallable$j; + var classof$3 = classof$6; + var getBuiltIn$1 = getBuiltIn$6; + var inspectSource = inspectSource$3; + var noop = function () { /* empty */ }; var empty = []; - var construct = getBuiltIn('Reflect', 'construct'); + var construct = getBuiltIn$1('Reflect', 'construct'); var constructorRegExp = /^\s*(?:class|function)\b/; - var exec$3 = functionUncurryThis(constructorRegExp.exec); + var exec$3 = uncurryThis$k(constructorRegExp.exec); var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); var isConstructorModern = function isConstructor(argument) { - if (!isCallable(argument)) return false; + if (!isCallable$7(argument)) return false; try { construct(noop, empty, argument); return true; } catch (error) { return false; } }; var isConstructorLegacy = function isConstructor(argument) { - if (!isCallable(argument)) return false; - switch (classof(argument)) { + if (!isCallable$7(argument)) return false; + switch (classof$3(argument)) { case 'AsyncFunction': case 'GeneratorFunction': case 'AsyncGeneratorFunction': return false; } try { @@ -1573,44 +1822,57 @@ isConstructorLegacy.sham = true; // `IsConstructor` abstract operation // https://tc39.es/ecma262/#sec-isconstructor - var isConstructor = !construct || fails(function () { + var isConstructor$3 = !construct || fails$e(function () { var called; return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function () { called = true; }) || called; }) ? isConstructorLegacy : isConstructorModern; - var TypeError$7 = global_1.TypeError; + var global$g = global$G; + var isConstructor$2 = isConstructor$3; + var tryToString = tryToString$2; + var TypeError$7 = global$g.TypeError; + // `Assert: IsConstructor(argument) is true` - var aConstructor = function (argument) { - if (isConstructor(argument)) return argument; + var aConstructor$1 = function (argument) { + if (isConstructor$2(argument)) return argument; throw TypeError$7(tryToString(argument) + ' is not a constructor'); }; - var SPECIES$4 = wellKnownSymbol('species'); + var anObject$7 = anObject$d; + var aConstructor = aConstructor$1; + var wellKnownSymbol$d = wellKnownSymbol$j; + var SPECIES$4 = wellKnownSymbol$d('species'); + // `SpeciesConstructor` abstract operation // https://tc39.es/ecma262/#sec-speciesconstructor - var speciesConstructor = function (O, defaultConstructor) { - var C = anObject(O).constructor; + var speciesConstructor$1 = function (O, defaultConstructor) { + var C = anObject$7(O).constructor; var S; - return C === undefined || (S = anObject(C)[SPECIES$4]) == undefined ? defaultConstructor : aConstructor(S); + return C === undefined || (S = anObject$7(C)[SPECIES$4]) == undefined ? defaultConstructor : aConstructor(S); }; - var charAt$4 = functionUncurryThis(''.charAt); - var charCodeAt$1 = functionUncurryThis(''.charCodeAt); - var stringSlice$5 = functionUncurryThis(''.slice); + var uncurryThis$j = functionUncurryThis; + var toIntegerOrInfinity$2 = toIntegerOrInfinity$5; + var toString$c = toString$f; + var requireObjectCoercible$7 = requireObjectCoercible$b; + var charAt$4 = uncurryThis$j(''.charAt); + var charCodeAt$1 = uncurryThis$j(''.charCodeAt); + var stringSlice$5 = uncurryThis$j(''.slice); + var createMethod$2 = function (CONVERT_TO_STRING) { return function ($this, pos) { - var S = toString_1(requireObjectCoercible($this)); - var position = toIntegerOrInfinity(pos); + var S = toString$c(requireObjectCoercible$7($this)); + var position = toIntegerOrInfinity$2(pos); var size = S.length; var first, second; if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; first = charCodeAt$1(S, position); return first < 0xD800 || first > 0xDBFF || position + 1 === size @@ -1635,69 +1897,103 @@ var charAt$3 = stringMultibyte.charAt; // `AdvanceStringIndex` abstract operation // https://tc39.es/ecma262/#sec-advancestringindex - var advanceStringIndex = function (S, index, unicode) { + var advanceStringIndex$3 = function (S, index, unicode) { return index + (unicode ? charAt$3(S, index).length : 1); }; - var createProperty = function (object, key, value) { + var toPropertyKey = toPropertyKey$3; + var definePropertyModule$2 = objectDefineProperty; + var createPropertyDescriptor$1 = createPropertyDescriptor$4; + + var createProperty$4 = function (object, key, value) { var propertyKey = toPropertyKey(key); - if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value)); + if (propertyKey in object) definePropertyModule$2.f(object, propertyKey, createPropertyDescriptor$1(0, value)); else object[propertyKey] = value; }; - var Array$3 = global_1.Array; + var global$f = global$G; + var toAbsoluteIndex$2 = toAbsoluteIndex$4; + var lengthOfArrayLike$5 = lengthOfArrayLike$7; + var createProperty$3 = createProperty$4; + + var Array$3 = global$f.Array; var max$3 = Math.max; var arraySliceSimple = function (O, start, end) { - var length = lengthOfArrayLike(O); - var k = toAbsoluteIndex(start, length); - var fin = toAbsoluteIndex(end === undefined ? length : end, length); + var length = lengthOfArrayLike$5(O); + var k = toAbsoluteIndex$2(start, length); + var fin = toAbsoluteIndex$2(end === undefined ? length : end, length); var result = Array$3(max$3(fin - k, 0)); - for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]); + for (var n = 0; k < fin; k++, n++) createProperty$3(result, n, O[k]); result.length = n; return result; }; - var TypeError$6 = global_1.TypeError; + var global$e = global$G; + var call$6 = functionCall; + var anObject$6 = anObject$d; + var isCallable$6 = isCallable$j; + var classof$2 = classofRaw$1; + var regexpExec$1 = regexpExec$3; + var TypeError$6 = global$e.TypeError; + // `RegExpExec` abstract operation // https://tc39.es/ecma262/#sec-regexpexec var regexpExecAbstract = function (R, S) { var exec = R.exec; - if (isCallable(exec)) { - var result = functionCall(exec, R, S); - if (result !== null) anObject(result); + if (isCallable$6(exec)) { + var result = call$6(exec, R, S); + if (result !== null) anObject$6(result); return result; } - if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S); + if (classof$2(R) === 'RegExp') return call$6(regexpExec$1, R, S); throw TypeError$6('RegExp#exec called on incompatible receiver'); }; - var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y; + var apply$1 = functionApply; + var call$5 = functionCall; + var uncurryThis$i = functionUncurryThis; + var fixRegExpWellKnownSymbolLogic$3 = fixRegexpWellKnownSymbolLogic; + var isRegExp$2 = isRegexp; + var anObject$5 = anObject$d; + var requireObjectCoercible$6 = requireObjectCoercible$b; + var speciesConstructor = speciesConstructor$1; + var advanceStringIndex$2 = advanceStringIndex$3; + var toLength$4 = toLength$6; + var toString$b = toString$f; + var getMethod$3 = getMethod$5; + var arraySlice$3 = arraySliceSimple; + var callRegExpExec = regexpExecAbstract; + var regexpExec = regexpExec$3; + var stickyHelpers$1 = regexpStickyHelpers; + var fails$d = fails$u; + + var UNSUPPORTED_Y$1 = stickyHelpers$1.UNSUPPORTED_Y; var MAX_UINT32 = 0xFFFFFFFF; var min$4 = Math.min; var $push = [].push; - var exec$2 = functionUncurryThis(/./.exec); - var push$4 = functionUncurryThis($push); - var stringSlice$4 = functionUncurryThis(''.slice); + var exec$2 = uncurryThis$i(/./.exec); + var push$4 = uncurryThis$i($push); + var stringSlice$4 = uncurryThis$i(''.slice); // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec // Weex JS has frozen built-in prototypes, so use try / catch wrapper - var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () { + var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$d(function () { // eslint-disable-next-line regexp/no-empty-group -- required for testing var re = /(?:)/; var originalExec = re.exec; re.exec = function () { return originalExec.apply(this, arguments); }; var result = 'ab'.split(re); return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b'; }); // @@split logic - fixRegexpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) { + fixRegExpWellKnownSymbolLogic$3('split', function (SPLIT, nativeSplit, maybeCallNative) { var internalSplit; if ( 'abbc'.split(/(b)*/)[1] == 'c' || // eslint-disable-next-line regexp/no-empty-group -- required for testing 'test'.split(/(?:)/, -1).length != 4 || @@ -1707,68 +2003,68 @@ '.'.split(/()()/).length > 1 || ''.split(/.?/).length ) { // based on es5-shim implementation, need to rework it internalSplit = function (separator, limit) { - var string = toString_1(requireObjectCoercible(this)); + var string = toString$b(requireObjectCoercible$6(this)); var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; if (lim === 0) return []; if (separator === undefined) return [string]; // If `separator` is not a regex, use native split - if (!isRegexp(separator)) { - return functionCall(nativeSplit, string, separator, lim); + if (!isRegExp$2(separator)) { + return call$5(nativeSplit, string, separator, lim); } var output = []; var flags = (separator.ignoreCase ? 'i' : '') + (separator.multiline ? 'm' : '') + (separator.unicode ? 'u' : '') + (separator.sticky ? 'y' : ''); var lastLastIndex = 0; // Make `global` and avoid `lastIndex` issues by working with a copy var separatorCopy = new RegExp(separator.source, flags + 'g'); var match, lastIndex, lastLength; - while (match = functionCall(regexpExec, separatorCopy, string)) { + while (match = call$5(regexpExec, separatorCopy, string)) { lastIndex = separatorCopy.lastIndex; if (lastIndex > lastLastIndex) { push$4(output, stringSlice$4(string, lastLastIndex, match.index)); - if (match.length > 1 && match.index < string.length) functionApply($push, output, arraySliceSimple(match, 1)); + if (match.length > 1 && match.index < string.length) apply$1($push, output, arraySlice$3(match, 1)); lastLength = match[0].length; lastLastIndex = lastIndex; if (output.length >= lim) break; } if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop } if (lastLastIndex === string.length) { if (lastLength || !exec$2(separatorCopy, '')) push$4(output, ''); } else push$4(output, stringSlice$4(string, lastLastIndex)); - return output.length > lim ? arraySliceSimple(output, 0, lim) : output; + return output.length > lim ? arraySlice$3(output, 0, lim) : output; }; // Chakra, V8 } else if ('0'.split(undefined, 0).length) { internalSplit = function (separator, limit) { - return separator === undefined && limit === 0 ? [] : functionCall(nativeSplit, this, separator, limit); + return separator === undefined && limit === 0 ? [] : call$5(nativeSplit, this, separator, limit); }; } else internalSplit = nativeSplit; return [ // `String.prototype.split` method // https://tc39.es/ecma262/#sec-string.prototype.split function split(separator, limit) { - var O = requireObjectCoercible(this); - var splitter = separator == undefined ? undefined : getMethod(separator, SPLIT); + var O = requireObjectCoercible$6(this); + var splitter = separator == undefined ? undefined : getMethod$3(separator, SPLIT); return splitter - ? functionCall(splitter, separator, O, limit) - : functionCall(internalSplit, toString_1(O), separator, limit); + ? call$5(splitter, separator, O, limit) + : call$5(internalSplit, toString$b(O), separator, limit); }, // `RegExp.prototype[@@split]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@split // // NOTE: This cannot be properly polyfilled in engines that don't support // the 'y' flag. function (string, limit) { - var rx = anObject(this); - var S = toString_1(string); + var rx = anObject$5(this); + var S = toString$b(string); var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit); if (res.done) return res.value; var C = speciesConstructor(rx, RegExp); @@ -1782,23 +2078,23 @@ // ^(? + rx + ) is needed, in combination with some S slicing, to // simulate the 'y' flag. var splitter = new C(UNSUPPORTED_Y$1 ? '^(?:' + rx.source + ')' : rx, flags); var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; if (lim === 0) return []; - if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : []; + if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : []; var p = 0; var q = 0; var A = []; while (q < S.length) { splitter.lastIndex = UNSUPPORTED_Y$1 ? 0 : q; - var z = regexpExecAbstract(splitter, UNSUPPORTED_Y$1 ? stringSlice$4(S, q) : S); + var z = callRegExpExec(splitter, UNSUPPORTED_Y$1 ? stringSlice$4(S, q) : S); var e; if ( z === null || - (e = min$4(toLength(splitter.lastIndex + (UNSUPPORTED_Y$1 ? q : 0)), S.length)) === p + (e = min$4(toLength$4(splitter.lastIndex + (UNSUPPORTED_Y$1 ? q : 0)), S.length)) === p ) { - q = advanceStringIndex(S, q, unicodeMatching); + q = advanceStringIndex$2(S, q, unicodeMatching); } else { push$4(A, stringSlice$4(S, p, q)); if (A.length === lim) return A; for (var i = 1; i <= z.length - 1; i++) { push$4(A, z[i]); @@ -1811,27 +2107,31 @@ return A; } ]; }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y$1); + var DESCRIPTORS$4 = descriptors; + var uncurryThis$h = functionUncurryThis; + var objectKeys = objectKeys$3; + var toIndexedObject$2 = toIndexedObject$8; var $propertyIsEnumerable = objectPropertyIsEnumerable.f; - var propertyIsEnumerable = functionUncurryThis($propertyIsEnumerable); - var push$3 = functionUncurryThis([].push); + var propertyIsEnumerable = uncurryThis$h($propertyIsEnumerable); + var push$3 = uncurryThis$h([].push); // `Object.{ entries, values }` methods implementation var createMethod$1 = function (TO_ENTRIES) { return function (it) { - var O = toIndexedObject(it); + var O = toIndexedObject$2(it); var keys = objectKeys(O); var length = keys.length; var i = 0; var result = []; var key; while (length > i) { key = keys[i++]; - if (!descriptors || propertyIsEnumerable(O, key)) { + if (!DESCRIPTORS$4 || propertyIsEnumerable(O, key)) { push$3(result, TO_ENTRIES ? [key, O[key]] : O[key]); } } return result; }; @@ -1844,182 +2144,226 @@ // `Object.values` method // https://tc39.es/ecma262/#sec-object.values values: createMethod$1(false) }; + var $$i = _export; var $entries = objectToArray.entries; // `Object.entries` method // https://tc39.es/ecma262/#sec-object.entries - _export({ target: 'Object', stat: true }, { + $$i({ target: 'Object', stat: true }, { entries: function entries(O) { return $entries(O); } }); - var UNSCOPABLES = wellKnownSymbol('unscopables'); + var wellKnownSymbol$c = wellKnownSymbol$j; + var create$1 = objectCreate; + var definePropertyModule$1 = objectDefineProperty; + + var UNSCOPABLES = wellKnownSymbol$c('unscopables'); var ArrayPrototype = Array.prototype; // Array.prototype[@@unscopables] // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables if (ArrayPrototype[UNSCOPABLES] == undefined) { - objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, { + definePropertyModule$1.f(ArrayPrototype, UNSCOPABLES, { configurable: true, - value: objectCreate(null) + value: create$1(null) }); } // add a key to Array.prototype[@@unscopables] - var addToUnscopables = function (key) { + var addToUnscopables$4 = function (key) { ArrayPrototype[UNSCOPABLES][key] = true; }; + var $$h = _export; var $includes = arrayIncludes.includes; + var fails$c = fails$u; + var addToUnscopables$3 = addToUnscopables$4; - - // FF99+ bug - var BROKEN_ON_SPARSE = fails(function () { + var BROKEN_ON_SPARSE = fails$c(function () { return !Array(1).includes(); }); // `Array.prototype.includes` method // https://tc39.es/ecma262/#sec-array.prototype.includes - _export({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, { + $$h({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, { includes: function includes(el /* , fromIndex = 0 */) { return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); } }); // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables - addToUnscopables('includes'); + addToUnscopables$3('includes'); + var classof$1 = classofRaw$1; + // `IsArray` abstract operation // https://tc39.es/ecma262/#sec-isarray // eslint-disable-next-line es-x/no-array-isarray -- safe - var isArray = Array.isArray || function isArray(argument) { - return classofRaw(argument) == 'Array'; + var isArray$4 = Array.isArray || function isArray(argument) { + return classof$1(argument) == 'Array'; }; - var SPECIES$3 = wellKnownSymbol('species'); - var Array$2 = global_1.Array; + var global$d = global$G; + var isArray$3 = isArray$4; + var isConstructor$1 = isConstructor$3; + var isObject$3 = isObject$a; + var wellKnownSymbol$b = wellKnownSymbol$j; + var SPECIES$3 = wellKnownSymbol$b('species'); + var Array$2 = global$d.Array; + // a part of `ArraySpeciesCreate` abstract operation // https://tc39.es/ecma262/#sec-arrayspeciescreate - var arraySpeciesConstructor = function (originalArray) { + var arraySpeciesConstructor$1 = function (originalArray) { var C; - if (isArray(originalArray)) { + if (isArray$3(originalArray)) { C = originalArray.constructor; // cross-realm fallback - if (isConstructor(C) && (C === Array$2 || isArray(C.prototype))) C = undefined; - else if (isObject(C)) { + if (isConstructor$1(C) && (C === Array$2 || isArray$3(C.prototype))) C = undefined; + else if (isObject$3(C)) { C = C[SPECIES$3]; if (C === null) C = undefined; } } return C === undefined ? Array$2 : C; }; + var arraySpeciesConstructor = arraySpeciesConstructor$1; + // `ArraySpeciesCreate` abstract operation // https://tc39.es/ecma262/#sec-arrayspeciescreate - var arraySpeciesCreate = function (originalArray, length) { + var arraySpeciesCreate$3 = function (originalArray, length) { return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); }; - var SPECIES$2 = wellKnownSymbol('species'); + var fails$b = fails$u; + var wellKnownSymbol$a = wellKnownSymbol$j; + var V8_VERSION$1 = engineV8Version; - var arrayMethodHasSpeciesSupport = function (METHOD_NAME) { + var SPECIES$2 = wellKnownSymbol$a('species'); + + var arrayMethodHasSpeciesSupport$5 = function (METHOD_NAME) { // We can't use this feature detection in V8 since it causes // deoptimization and serious performance degradation // https://github.com/zloirock/core-js/issues/677 - return engineV8Version >= 51 || !fails(function () { + return V8_VERSION$1 >= 51 || !fails$b(function () { var array = []; var constructor = array.constructor = {}; constructor[SPECIES$2] = function () { return { foo: 1 }; }; return array[METHOD_NAME](Boolean).foo !== 1; }); }; - var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + var $$g = _export; + var global$c = global$G; + var fails$a = fails$u; + var isArray$2 = isArray$4; + var isObject$2 = isObject$a; + var toObject$6 = toObject$9; + var lengthOfArrayLike$4 = lengthOfArrayLike$7; + var createProperty$2 = createProperty$4; + var arraySpeciesCreate$2 = arraySpeciesCreate$3; + var arrayMethodHasSpeciesSupport$4 = arrayMethodHasSpeciesSupport$5; + var wellKnownSymbol$9 = wellKnownSymbol$j; + var V8_VERSION = engineV8Version; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol$9('isConcatSpreadable'); var MAX_SAFE_INTEGER$1 = 0x1FFFFFFFFFFFFF; var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded'; - var TypeError$5 = global_1.TypeError; + var TypeError$5 = global$c.TypeError; // We can't use this feature detection in V8 since it causes // deoptimization and serious performance degradation // https://github.com/zloirock/core-js/issues/679 - var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () { + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$a(function () { var array = []; array[IS_CONCAT_SPREADABLE] = false; return array.concat()[0] !== array; }); - var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat'); + var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$4('concat'); var isConcatSpreadable = function (O) { - if (!isObject(O)) return false; + if (!isObject$2(O)) return false; var spreadable = O[IS_CONCAT_SPREADABLE]; - return spreadable !== undefined ? !!spreadable : isArray(O); + return spreadable !== undefined ? !!spreadable : isArray$2(O); }; var FORCED$3 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT; // `Array.prototype.concat` method // https://tc39.es/ecma262/#sec-array.prototype.concat // with adding support of @@isConcatSpreadable and @@species - _export({ target: 'Array', proto: true, arity: 1, forced: FORCED$3 }, { + $$g({ target: 'Array', proto: true, arity: 1, forced: FORCED$3 }, { // eslint-disable-next-line no-unused-vars -- required for `.length` concat: function concat(arg) { - var O = toObject(this); - var A = arraySpeciesCreate(O, 0); + var O = toObject$6(this); + var A = arraySpeciesCreate$2(O, 0); var n = 0; var i, k, length, len, E; for (i = -1, length = arguments.length; i < length; i++) { E = i === -1 ? O : arguments[i]; if (isConcatSpreadable(E)) { - len = lengthOfArrayLike(E); + len = lengthOfArrayLike$4(E); if (n + len > MAX_SAFE_INTEGER$1) throw TypeError$5(MAXIMUM_ALLOWED_INDEX_EXCEEDED); - for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + for (k = 0; k < len; k++, n++) if (k in E) createProperty$2(A, n, E[k]); } else { if (n >= MAX_SAFE_INTEGER$1) throw TypeError$5(MAXIMUM_ALLOWED_INDEX_EXCEEDED); - createProperty(A, n++, E); + createProperty$2(A, n++, E); } } A.length = n; return A; } }); - var bind = functionUncurryThis(functionUncurryThis.bind); + var uncurryThis$g = functionUncurryThis; + var aCallable$1 = aCallable$3; + var NATIVE_BIND = functionBindNative; + var bind$1 = uncurryThis$g(uncurryThis$g.bind); + // optional / simple context binding var functionBindContext = function (fn, that) { - aCallable(fn); - return that === undefined ? fn : functionBindNative ? bind(fn, that) : function (/* ...args */) { + aCallable$1(fn); + return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) { return fn.apply(that, arguments); }; }; - var push$2 = functionUncurryThis([].push); + var bind = functionBindContext; + var uncurryThis$f = functionUncurryThis; + var IndexedObject = indexedObject; + var toObject$5 = toObject$9; + var lengthOfArrayLike$3 = lengthOfArrayLike$7; + var arraySpeciesCreate$1 = arraySpeciesCreate$3; + var push$2 = uncurryThis$f([].push); + // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation var createMethod = function (TYPE) { var IS_MAP = TYPE == 1; var IS_FILTER = TYPE == 2; var IS_SOME = TYPE == 3; var IS_EVERY = TYPE == 4; var IS_FIND_INDEX = TYPE == 6; var IS_FILTER_REJECT = TYPE == 7; var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; return function ($this, callbackfn, that, specificCreate) { - var O = toObject($this); - var self = indexedObject(O); - var boundFunction = functionBindContext(callbackfn, that); - var length = lengthOfArrayLike(self); + var O = toObject$5($this); + var self = IndexedObject(O); + var boundFunction = bind(callbackfn, that); + var length = lengthOfArrayLike$3(self); var index = 0; - var create = specificCreate || arraySpeciesCreate; + var create = specificCreate || arraySpeciesCreate$1; var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined; var value, result; for (;length > index; index++) if (NO_HOLES || index in self) { value = self[index]; result = boundFunction(value, index, O); @@ -2065,52 +2409,65 @@ // `Array.prototype.filterReject` method // https://github.com/tc39/proposal-array-filtering filterReject: createMethod(7) }; + var $$f = _export; var $find = arrayIteration.find; + var addToUnscopables$2 = addToUnscopables$4; - var FIND = 'find'; var SKIPS_HOLES$1 = true; // Shouldn't skip holes if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES$1 = false; }); // `Array.prototype.find` method // https://tc39.es/ecma262/#sec-array.prototype.find - _export({ target: 'Array', proto: true, forced: SKIPS_HOLES$1 }, { + $$f({ target: 'Array', proto: true, forced: SKIPS_HOLES$1 }, { find: function find(callbackfn /* , that = undefined */) { return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables - addToUnscopables(FIND); + addToUnscopables$2(FIND); + var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport; + var classof = classof$6; + // `Object.prototype.toString` method implementation // https://tc39.es/ecma262/#sec-object.prototype.tostring - var objectToString = toStringTagSupport ? {}.toString : function toString() { + var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() { return '[object ' + classof(this) + ']'; }; + var TO_STRING_TAG_SUPPORT = toStringTagSupport; + var defineBuiltIn$5 = defineBuiltIn$8; + var toString$a = objectToString; + // `Object.prototype.toString` method // https://tc39.es/ecma262/#sec-object.prototype.tostring - if (!toStringTagSupport) { - defineBuiltIn(Object.prototype, 'toString', objectToString, { unsafe: true }); + if (!TO_STRING_TAG_SUPPORT) { + defineBuiltIn$5(Object.prototype, 'toString', toString$a, { unsafe: true }); } - var TypeError$4 = global_1.TypeError; + var global$b = global$G; + var isRegExp$1 = isRegexp; + var TypeError$4 = global$b.TypeError; + var notARegexp = function (it) { - if (isRegexp(it)) { + if (isRegExp$1(it)) { throw TypeError$4("The method doesn't accept regular expressions"); } return it; }; - var MATCH$1 = wellKnownSymbol('match'); + var wellKnownSymbol$8 = wellKnownSymbol$j; + var MATCH$1 = wellKnownSymbol$8('match'); + var correctIsRegexpLogic = function (METHOD_NAME) { var regexp = /./; try { '/./'[METHOD_NAME](regexp); } catch (error1) { @@ -2119,19 +2476,26 @@ return '/./'[METHOD_NAME](regexp); } catch (error2) { /* empty */ } } return false; }; - var stringIndexOf$2 = functionUncurryThis(''.indexOf); + var $$e = _export; + var uncurryThis$e = functionUncurryThis; + var notARegExp$2 = notARegexp; + var requireObjectCoercible$5 = requireObjectCoercible$b; + var toString$9 = toString$f; + var correctIsRegExpLogic$2 = correctIsRegexpLogic; + var stringIndexOf$2 = uncurryThis$e(''.indexOf); + // `String.prototype.includes` method // https://tc39.es/ecma262/#sec-string.prototype.includes - _export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, { + $$e({ target: 'String', proto: true, forced: !correctIsRegExpLogic$2('includes') }, { includes: function includes(searchString /* , position = 0 */) { return !!~stringIndexOf$2( - toString_1(requireObjectCoercible(this)), - toString_1(notARegexp(searchString)), + toString$9(requireObjectCoercible$5(this)), + toString$9(notARegExp$2(searchString)), arguments.length > 1 ? arguments[1] : undefined ); } }); @@ -2170,103 +2534,118 @@ TextTrackList: 0, TouchList: 0 }; // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList` + var documentCreateElement = documentCreateElement$2; - var classList = documentCreateElement('span').classList; - var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype; + var DOMTokenListPrototype$2 = classList && classList.constructor && classList.constructor.prototype; - var domTokenListPrototype = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype; + var domTokenListPrototype = DOMTokenListPrototype$2 === Object.prototype ? undefined : DOMTokenListPrototype$2; var $forEach = arrayIteration.forEach; + var arrayMethodIsStrict$2 = arrayMethodIsStrict$4; + var STRICT_METHOD$2 = arrayMethodIsStrict$2('forEach'); - var STRICT_METHOD$2 = arrayMethodIsStrict('forEach'); - // `Array.prototype.forEach` method implementation // https://tc39.es/ecma262/#sec-array.prototype.foreach var arrayForEach = !STRICT_METHOD$2 ? function forEach(callbackfn /* , thisArg */) { return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); // eslint-disable-next-line es-x/no-array-prototype-foreach -- safe } : [].forEach; + var global$a = global$G; + var DOMIterables$1 = domIterables; + var DOMTokenListPrototype$1 = domTokenListPrototype; + var forEach = arrayForEach; + var createNonEnumerableProperty$3 = createNonEnumerableProperty$8; + var handlePrototype$1 = function (CollectionPrototype) { // some Chrome versions have non-configurable methods on DOMTokenList - if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try { - createNonEnumerableProperty(CollectionPrototype, 'forEach', arrayForEach); + if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try { + createNonEnumerableProperty$3(CollectionPrototype, 'forEach', forEach); } catch (error) { - CollectionPrototype.forEach = arrayForEach; + CollectionPrototype.forEach = forEach; } }; - for (var COLLECTION_NAME$1 in domIterables) { - if (domIterables[COLLECTION_NAME$1]) { - handlePrototype$1(global_1[COLLECTION_NAME$1] && global_1[COLLECTION_NAME$1].prototype); + for (var COLLECTION_NAME$1 in DOMIterables$1) { + if (DOMIterables$1[COLLECTION_NAME$1]) { + handlePrototype$1(global$a[COLLECTION_NAME$1] && global$a[COLLECTION_NAME$1].prototype); } } - handlePrototype$1(domTokenListPrototype); + handlePrototype$1(DOMTokenListPrototype$1); + var global$9 = global$G; + var fails$9 = fails$u; + var uncurryThis$d = functionUncurryThis; + var toString$8 = toString$f; var trim$2 = stringTrim.trim; + var whitespaces$1 = whitespaces$4; - - var charAt$2 = functionUncurryThis(''.charAt); - var n$ParseFloat = global_1.parseFloat; - var Symbol$2 = global_1.Symbol; + var charAt$2 = uncurryThis$d(''.charAt); + var n$ParseFloat = global$9.parseFloat; + var Symbol$2 = global$9.Symbol; var ITERATOR$4 = Symbol$2 && Symbol$2.iterator; - var FORCED$2 = 1 / n$ParseFloat(whitespaces + '-0') !== -Infinity + var FORCED$2 = 1 / n$ParseFloat(whitespaces$1 + '-0') !== -Infinity // MS Edge 18- broken with boxed symbols - || (ITERATOR$4 && !fails(function () { n$ParseFloat(Object(ITERATOR$4)); })); + || (ITERATOR$4 && !fails$9(function () { n$ParseFloat(Object(ITERATOR$4)); })); // `parseFloat` method // https://tc39.es/ecma262/#sec-parsefloat-string var numberParseFloat = FORCED$2 ? function parseFloat(string) { - var trimmedString = trim$2(toString_1(string)); + var trimmedString = trim$2(toString$8(string)); var result = n$ParseFloat(trimmedString); return result === 0 && charAt$2(trimmedString, 0) == '-' ? -0 : result; } : n$ParseFloat; + var $$d = _export; + var $parseFloat = numberParseFloat; + // `parseFloat` method // https://tc39.es/ecma262/#sec-parsefloat-string - _export({ global: true, forced: parseFloat != numberParseFloat }, { - parseFloat: numberParseFloat + $$d({ global: true, forced: parseFloat != $parseFloat }, { + parseFloat: $parseFloat }); /* eslint-disable es-x/no-array-prototype-indexof -- required for testing */ - - + var $$c = _export; + var uncurryThis$c = functionUncurryThis; var $IndexOf = arrayIncludes.indexOf; + var arrayMethodIsStrict$1 = arrayMethodIsStrict$4; + var un$IndexOf = uncurryThis$c([].indexOf); - var un$IndexOf = functionUncurryThis([].indexOf); - var NEGATIVE_ZERO = !!un$IndexOf && 1 / un$IndexOf([1], 1, -0) < 0; - var STRICT_METHOD$1 = arrayMethodIsStrict('indexOf'); + var STRICT_METHOD$1 = arrayMethodIsStrict$1('indexOf'); // `Array.prototype.indexOf` method // https://tc39.es/ecma262/#sec-array.prototype.indexof - _export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD$1 }, { + $$c({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD$1 }, { indexOf: function indexOf(searchElement /* , fromIndex = 0 */) { var fromIndex = arguments.length > 1 ? arguments[1] : undefined; return NEGATIVE_ZERO // convert -0 to +0 ? un$IndexOf(this, searchElement, fromIndex) || 0 : $IndexOf(this, searchElement, fromIndex); } }); + var arraySlice$2 = arraySliceSimple; + var floor$1 = Math.floor; var mergeSort = function (array, comparefn) { var length = array.length; var middle = floor$1(length / 2); return length < 8 ? insertionSort(array, comparefn) : merge( array, - mergeSort(arraySliceSimple(array, 0, middle), comparefn), - mergeSort(arraySliceSimple(array, middle), comparefn), + mergeSort(arraySlice$2(array, 0, middle), comparefn), + mergeSort(arraySlice$2(array, middle), comparefn), comparefn ); }; var insertionSort = function (array, comparefn) { @@ -2297,41 +2676,61 @@ } return array; }; var arraySort = mergeSort; - var firefox = engineUserAgent.match(/firefox\/(\d+)/i); + var userAgent$1 = engineUserAgent; + var firefox = userAgent$1.match(/firefox\/(\d+)/i); + var engineFfVersion = !!firefox && +firefox[1]; - var engineIsIeOrEdge = /MSIE|Trident/.test(engineUserAgent); + var UA = engineUserAgent; - var webkit = engineUserAgent.match(/AppleWebKit\/(\d+)\./); + var engineIsIeOrEdge = /MSIE|Trident/.test(UA); + var userAgent = engineUserAgent; + + var webkit = userAgent.match(/AppleWebKit\/(\d+)\./); + var engineWebkitVersion = !!webkit && +webkit[1]; + var $$b = _export; + var uncurryThis$b = functionUncurryThis; + var aCallable = aCallable$3; + var toObject$4 = toObject$9; + var lengthOfArrayLike$2 = lengthOfArrayLike$7; + var toString$7 = toString$f; + var fails$8 = fails$u; + var internalSort = arraySort; + var arrayMethodIsStrict = arrayMethodIsStrict$4; + var FF = engineFfVersion; + var IE_OR_EDGE = engineIsIeOrEdge; + var V8 = engineV8Version; + var WEBKIT = engineWebkitVersion; + var test$1 = []; - var un$Sort = functionUncurryThis(test$1.sort); - var push$1 = functionUncurryThis(test$1.push); + var un$Sort = uncurryThis$b(test$1.sort); + var push$1 = uncurryThis$b(test$1.push); // IE8- - var FAILS_ON_UNDEFINED = fails(function () { + var FAILS_ON_UNDEFINED = fails$8(function () { test$1.sort(undefined); }); // V8 bug - var FAILS_ON_NULL = fails(function () { + var FAILS_ON_NULL = fails$8(function () { test$1.sort(null); }); // Old WebKit var STRICT_METHOD = arrayMethodIsStrict('sort'); - var STABLE_SORT = !fails(function () { + var STABLE_SORT = !fails$8(function () { // feature detection can be too slow, so check engines versions - if (engineV8Version) return engineV8Version < 70; - if (engineFfVersion && engineFfVersion > 3) return; - if (engineIsIeOrEdge) return true; - if (engineWebkitVersion) return engineWebkitVersion < 603; + if (V8) return V8 < 70; + if (FF && FF > 3) return; + if (IE_OR_EDGE) return true; + if (WEBKIT) return WEBKIT < 603; var result = ''; var code, chr, value, index; // generate an array with more 512 elements (Chakra and old V8 fails only in this case) @@ -2364,33 +2763,33 @@ var getSortCompare = function (comparefn) { return function (x, y) { if (y === undefined) return -1; if (x === undefined) return 1; if (comparefn !== undefined) return +comparefn(x, y) || 0; - return toString_1(x) > toString_1(y) ? 1 : -1; + return toString$7(x) > toString$7(y) ? 1 : -1; }; }; // `Array.prototype.sort` method // https://tc39.es/ecma262/#sec-array.prototype.sort - _export({ target: 'Array', proto: true, forced: FORCED$1 }, { + $$b({ target: 'Array', proto: true, forced: FORCED$1 }, { sort: function sort(comparefn) { if (comparefn !== undefined) aCallable(comparefn); - var array = toObject(this); + var array = toObject$4(this); if (STABLE_SORT) return comparefn === undefined ? un$Sort(array) : un$Sort(array, comparefn); var items = []; - var arrayLength = lengthOfArrayLike(array); + var arrayLength = lengthOfArrayLike$2(array); var itemsLength, index; for (index = 0; index < arrayLength; index++) { if (index in array) push$1(items, array[index]); } - arraySort(items, getSortCompare(comparefn)); + internalSort(items, getSortCompare(comparefn)); itemsLength = items.length; index = 0; while (index < itemsLength) array[index] = items[index++]; @@ -2398,25 +2797,28 @@ return array; } }); + var uncurryThis$a = functionUncurryThis; + var toObject$3 = toObject$9; + var floor = Math.floor; - var charAt$1 = functionUncurryThis(''.charAt); - var replace$1 = functionUncurryThis(''.replace); - var stringSlice$3 = functionUncurryThis(''.slice); + var charAt$1 = uncurryThis$a(''.charAt); + var replace$1 = uncurryThis$a(''.replace); + var stringSlice$3 = uncurryThis$a(''.slice); var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g; var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g; // `GetSubstitution` abstract operation // https://tc39.es/ecma262/#sec-getsubstitution - var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) { + var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) { var tailPos = position + matched.length; var m = captures.length; var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; if (namedCaptures !== undefined) { - namedCaptures = toObject(namedCaptures); + namedCaptures = toObject$3(namedCaptures); symbols = SUBSTITUTION_SYMBOLS; } return replace$1(replacement, symbols, function (match, ch) { var capture; switch (charAt$1(ch, 0)) { @@ -2440,17 +2842,34 @@ } return capture === undefined ? '' : capture; }); }; - var REPLACE = wellKnownSymbol('replace'); + var apply = functionApply; + var call$4 = functionCall; + var uncurryThis$9 = functionUncurryThis; + var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic; + var fails$7 = fails$u; + var anObject$4 = anObject$d; + var isCallable$5 = isCallable$j; + var toIntegerOrInfinity$1 = toIntegerOrInfinity$5; + var toLength$3 = toLength$6; + var toString$6 = toString$f; + var requireObjectCoercible$4 = requireObjectCoercible$b; + var advanceStringIndex$1 = advanceStringIndex$3; + var getMethod$2 = getMethod$5; + var getSubstitution = getSubstitution$1; + var regExpExec$2 = regexpExecAbstract; + var wellKnownSymbol$7 = wellKnownSymbol$j; + + var REPLACE = wellKnownSymbol$7('replace'); var max$2 = Math.max; var min$3 = Math.min; - var concat = functionUncurryThis([].concat); - var push = functionUncurryThis([].push); - var stringIndexOf$1 = functionUncurryThis(''.indexOf); - var stringSlice$2 = functionUncurryThis(''.slice); + var concat = uncurryThis$9([].concat); + var push = uncurryThis$9([].push); + var stringIndexOf$1 = uncurryThis$9(''.indexOf); + var stringSlice$2 = uncurryThis$9(''.slice); var maybeToString = function (it) { return it === undefined ? it : String(it); }; @@ -2467,11 +2886,11 @@ return /./[REPLACE]('a', '$0') === ''; } return false; })(); - var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { + var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$7(function () { var re = /./; re.exec = function () { var result = []; result.groups = { a: '7' }; return result; @@ -2479,65 +2898,65 @@ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive return ''.replace(re, '$<a>') !== '7'; }); // @@replace logic - fixRegexpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) { + fixRegExpWellKnownSymbolLogic$2('replace', function (_, nativeReplace, maybeCallNative) { var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0'; return [ // `String.prototype.replace` method // https://tc39.es/ecma262/#sec-string.prototype.replace function replace(searchValue, replaceValue) { - var O = requireObjectCoercible(this); - var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE); + var O = requireObjectCoercible$4(this); + var replacer = searchValue == undefined ? undefined : getMethod$2(searchValue, REPLACE); return replacer - ? functionCall(replacer, searchValue, O, replaceValue) - : functionCall(nativeReplace, toString_1(O), searchValue, replaceValue); + ? call$4(replacer, searchValue, O, replaceValue) + : call$4(nativeReplace, toString$6(O), searchValue, replaceValue); }, // `RegExp.prototype[@@replace]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace function (string, replaceValue) { - var rx = anObject(this); - var S = toString_1(string); + var rx = anObject$4(this); + var S = toString$6(string); if ( typeof replaceValue == 'string' && stringIndexOf$1(replaceValue, UNSAFE_SUBSTITUTE) === -1 && stringIndexOf$1(replaceValue, '$<') === -1 ) { var res = maybeCallNative(nativeReplace, rx, S, replaceValue); if (res.done) return res.value; } - var functionalReplace = isCallable(replaceValue); - if (!functionalReplace) replaceValue = toString_1(replaceValue); + var functionalReplace = isCallable$5(replaceValue); + if (!functionalReplace) replaceValue = toString$6(replaceValue); var global = rx.global; if (global) { var fullUnicode = rx.unicode; rx.lastIndex = 0; } var results = []; while (true) { - var result = regexpExecAbstract(rx, S); + var result = regExpExec$2(rx, S); if (result === null) break; push(results, result); if (!global) break; - var matchStr = toString_1(result[0]); - if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); + var matchStr = toString$6(result[0]); + if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$3(rx.lastIndex), fullUnicode); } var accumulatedResult = ''; var nextSourcePosition = 0; for (var i = 0; i < results.length; i++) { result = results[i]; - var matched = toString_1(result[0]); - var position = max$2(min$3(toIntegerOrInfinity(result.index), S.length), 0); + var matched = toString$6(result[0]); + var position = max$2(min$3(toIntegerOrInfinity$1(result.index), S.length), 0); var captures = []; // NOTE: This is equivalent to // captures = result.slice(1).map(maybeToString) // but for some reason `nativeSlice.call(result, 1, result.length)` (called in // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and @@ -2545,11 +2964,11 @@ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j])); var namedCaptures = result.groups; if (functionalReplace) { var replacerArgs = concat([matched], captures, position, S); if (namedCaptures !== undefined) push(replacerArgs, namedCaptures); - var replacement = toString_1(functionApply(replaceValue, undefined, replacerArgs)); + var replacement = toString$6(apply(replaceValue, undefined, replacerArgs)); } else { replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); } if (position >= nextSourcePosition) { accumulatedResult += stringSlice$2(S, nextSourcePosition, position) + replacement; @@ -2559,240 +2978,283 @@ return accumulatedResult + stringSlice$2(S, nextSourcePosition); } ]; }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE); + var $$a = _export; var $filter = arrayIteration.filter; + var arrayMethodHasSpeciesSupport$3 = arrayMethodHasSpeciesSupport$5; + var HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport$3('filter'); - var HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport('filter'); - // `Array.prototype.filter` method // https://tc39.es/ecma262/#sec-array.prototype.filter // with adding support of @@species - _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, { + $$a({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, { filter: function filter(callbackfn /* , thisArg */) { return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); // `SameValue` abstract operation // https://tc39.es/ecma262/#sec-samevalue // eslint-disable-next-line es-x/no-object-is -- safe - var sameValue = Object.is || function is(x, y) { + var sameValue$1 = Object.is || function is(x, y) { // eslint-disable-next-line no-self-compare -- NaN check return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; }; + var call$3 = functionCall; + var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic; + var anObject$3 = anObject$d; + var requireObjectCoercible$3 = requireObjectCoercible$b; + var sameValue = sameValue$1; + var toString$5 = toString$f; + var getMethod$1 = getMethod$5; + var regExpExec$1 = regexpExecAbstract; + // @@search logic - fixRegexpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) { + fixRegExpWellKnownSymbolLogic$1('search', function (SEARCH, nativeSearch, maybeCallNative) { return [ // `String.prototype.search` method // https://tc39.es/ecma262/#sec-string.prototype.search function search(regexp) { - var O = requireObjectCoercible(this); - var searcher = regexp == undefined ? undefined : getMethod(regexp, SEARCH); - return searcher ? functionCall(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString_1(O)); + var O = requireObjectCoercible$3(this); + var searcher = regexp == undefined ? undefined : getMethod$1(regexp, SEARCH); + return searcher ? call$3(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$5(O)); }, // `RegExp.prototype[@@search]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@search function (string) { - var rx = anObject(this); - var S = toString_1(string); + var rx = anObject$3(this); + var S = toString$5(string); var res = maybeCallNative(nativeSearch, rx, S); if (res.done) return res.value; var previousLastIndex = rx.lastIndex; if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0; - var result = regexpExecAbstract(rx, S); + var result = regExpExec$1(rx, S); if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex; return result === null ? -1 : result.index; } ]; }); + var global$8 = global$G; + var fails$6 = fails$u; + var uncurryThis$8 = functionUncurryThis; + var toString$4 = toString$f; var trim$1 = stringTrim.trim; + var whitespaces = whitespaces$4; - - var $parseInt = global_1.parseInt; - var Symbol$1 = global_1.Symbol; + var $parseInt$1 = global$8.parseInt; + var Symbol$1 = global$8.Symbol; var ITERATOR$3 = Symbol$1 && Symbol$1.iterator; var hex = /^[+-]?0x/i; - var exec$1 = functionUncurryThis(hex.exec); - var FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22 + var exec$1 = uncurryThis$8(hex.exec); + var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22 // MS Edge 18- broken with boxed symbols - || (ITERATOR$3 && !fails(function () { $parseInt(Object(ITERATOR$3)); })); + || (ITERATOR$3 && !fails$6(function () { $parseInt$1(Object(ITERATOR$3)); })); // `parseInt` method // https://tc39.es/ecma262/#sec-parseint-string-radix var numberParseInt = FORCED ? function parseInt(string, radix) { - var S = trim$1(toString_1(string)); - return $parseInt(S, (radix >>> 0) || (exec$1(hex, S) ? 16 : 10)); - } : $parseInt; + var S = trim$1(toString$4(string)); + return $parseInt$1(S, (radix >>> 0) || (exec$1(hex, S) ? 16 : 10)); + } : $parseInt$1; + var $$9 = _export; + var $parseInt = numberParseInt; + // `parseInt` method // https://tc39.es/ecma262/#sec-parseint-string-radix - _export({ global: true, forced: parseInt != numberParseInt }, { - parseInt: numberParseInt + $$9({ global: true, forced: parseInt != $parseInt }, { + parseInt: $parseInt }); + var $$8 = _export; var $map = arrayIteration.map; + var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$5; + var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport$2('map'); - var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport('map'); - // `Array.prototype.map` method // https://tc39.es/ecma262/#sec-array.prototype.map // with adding support of @@species - _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, { + $$8({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, { map: function map(callbackfn /* , thisArg */) { return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); + var $$7 = _export; var $findIndex = arrayIteration.findIndex; + var addToUnscopables$1 = addToUnscopables$4; - var FIND_INDEX = 'findIndex'; var SKIPS_HOLES = true; // Shouldn't skip holes if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; }); // `Array.prototype.findIndex` method // https://tc39.es/ecma262/#sec-array.prototype.findindex - _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, { + $$7({ target: 'Array', proto: true, forced: SKIPS_HOLES }, { findIndex: function findIndex(callbackfn /* , that = undefined */) { return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables - addToUnscopables(FIND_INDEX); + addToUnscopables$1(FIND_INDEX); - var String$1 = global_1.String; - var TypeError$3 = global_1.TypeError; + var global$7 = global$G; + var isCallable$4 = isCallable$j; - var aPossiblePrototype = function (argument) { - if (typeof argument == 'object' || isCallable(argument)) return argument; + var String$1 = global$7.String; + var TypeError$3 = global$7.TypeError; + + var aPossiblePrototype$1 = function (argument) { + if (typeof argument == 'object' || isCallable$4(argument)) return argument; throw TypeError$3("Can't set " + String$1(argument) + ' as a prototype'); }; /* eslint-disable no-proto -- safe */ + var uncurryThis$7 = functionUncurryThis; + var anObject$2 = anObject$d; + var aPossiblePrototype = aPossiblePrototype$1; - - // `Object.setPrototypeOf` method // https://tc39.es/ecma262/#sec-object.setprototypeof // Works with __proto__ only. Old v8 can't work with null proto objects. // eslint-disable-next-line es-x/no-object-setprototypeof -- safe var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () { var CORRECT_SETTER = false; var test = {}; var setter; try { // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe - setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set); + setter = uncurryThis$7(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set); setter(test, []); CORRECT_SETTER = test instanceof Array; } catch (error) { /* empty */ } return function setPrototypeOf(O, proto) { - anObject(O); + anObject$2(O); aPossiblePrototype(proto); if (CORRECT_SETTER) setter(O, proto); else O.__proto__ = proto; return O; }; }() : undefined); + var isCallable$3 = isCallable$j; + var isObject$1 = isObject$a; + var setPrototypeOf$1 = objectSetPrototypeOf; + // makes subclassing work correct for wrapped built-ins - var inheritIfRequired = function ($this, dummy, Wrapper) { + var inheritIfRequired$2 = function ($this, dummy, Wrapper) { var NewTarget, NewTargetPrototype; if ( // it can work only with native `setPrototypeOf` - objectSetPrototypeOf && + setPrototypeOf$1 && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this - isCallable(NewTarget = dummy.constructor) && + isCallable$3(NewTarget = dummy.constructor) && NewTarget !== Wrapper && - isObject(NewTargetPrototype = NewTarget.prototype) && + isObject$1(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype - ) objectSetPrototypeOf($this, NewTargetPrototype); + ) setPrototypeOf$1($this, NewTargetPrototype); return $this; }; + var call$2 = functionCall; + var hasOwn$4 = hasOwnProperty_1; + var isPrototypeOf$2 = objectIsPrototypeOf; + var regExpFlags = regexpFlags$1; + var RegExpPrototype$2 = RegExp.prototype; var regexpGetFlags = function (R) { var flags = R.flags; - return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwnProperty_1(R, 'flags') && objectIsPrototypeOf(RegExpPrototype$2, R) - ? functionCall(regexpFlags, R) : flags; + return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$4(R, 'flags') && isPrototypeOf$2(RegExpPrototype$2, R) + ? call$2(regExpFlags, R) : flags; }; var defineProperty$3 = objectDefineProperty.f; - var proxyAccessor = function (Target, Source, key) { + var proxyAccessor$1 = function (Target, Source, key) { key in Target || defineProperty$3(Target, key, { configurable: true, get: function () { return Source[key]; }, set: function (it) { Source[key] = it; } }); }; - var SPECIES$1 = wellKnownSymbol('species'); + var getBuiltIn = getBuiltIn$6; + var definePropertyModule = objectDefineProperty; + var wellKnownSymbol$6 = wellKnownSymbol$j; + var DESCRIPTORS$3 = descriptors; - var setSpecies = function (CONSTRUCTOR_NAME) { + var SPECIES$1 = wellKnownSymbol$6('species'); + + var setSpecies$1 = function (CONSTRUCTOR_NAME) { var Constructor = getBuiltIn(CONSTRUCTOR_NAME); - var defineProperty = objectDefineProperty.f; + var defineProperty = definePropertyModule.f; - if (descriptors && Constructor && !Constructor[SPECIES$1]) { + if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$1]) { defineProperty(Constructor, SPECIES$1, { configurable: true, get: function () { return this; } }); } }; + var DESCRIPTORS$2 = descriptors; + var global$6 = global$G; + var uncurryThis$6 = functionUncurryThis; + var isForced$1 = isForced_1; + var inheritIfRequired$1 = inheritIfRequired$2; + var createNonEnumerableProperty$2 = createNonEnumerableProperty$8; var getOwnPropertyNames$1 = objectGetOwnPropertyNames.f; - - - - - - - - - + var isPrototypeOf$1 = objectIsPrototypeOf; + var isRegExp = isRegexp; + var toString$3 = toString$f; + var getRegExpFlags$1 = regexpGetFlags; + var stickyHelpers = regexpStickyHelpers; + var proxyAccessor = proxyAccessor$1; + var defineBuiltIn$4 = defineBuiltIn$8; + var fails$5 = fails$u; + var hasOwn$3 = hasOwnProperty_1; var enforceInternalState = internalState.enforce; + var setSpecies = setSpecies$1; + var wellKnownSymbol$5 = wellKnownSymbol$j; + var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll; + var UNSUPPORTED_NCG = regexpUnsupportedNcg; - - - - - var MATCH = wellKnownSymbol('match'); - var NativeRegExp = global_1.RegExp; + var MATCH = wellKnownSymbol$5('match'); + var NativeRegExp = global$6.RegExp; var RegExpPrototype$1 = NativeRegExp.prototype; - var SyntaxError = global_1.SyntaxError; - var exec = functionUncurryThis(RegExpPrototype$1.exec); - var charAt = functionUncurryThis(''.charAt); - var replace = functionUncurryThis(''.replace); - var stringIndexOf = functionUncurryThis(''.indexOf); - var stringSlice$1 = functionUncurryThis(''.slice); + var SyntaxError = global$6.SyntaxError; + var exec = uncurryThis$6(RegExpPrototype$1.exec); + var charAt = uncurryThis$6(''.charAt); + var replace = uncurryThis$6(''.replace); + var stringIndexOf = uncurryThis$6(''.indexOf); + var stringSlice$1 = uncurryThis$6(''.slice); // TODO: Use only propper RegExpIdentifierName var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/; var re1 = /a/g; var re2 = /a/g; // "new" should create a new object, old webkit bug var CORRECT_NEW = new NativeRegExp(re1) !== re1; - var MISSED_STICKY = regexpStickyHelpers.MISSED_STICKY; - var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y; + var MISSED_STICKY = stickyHelpers.MISSED_STICKY; + var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y; - var BASE_FORCED = descriptors && - (!CORRECT_NEW || MISSED_STICKY || regexpUnsupportedDotAll || regexpUnsupportedNcg || fails(function () { + var BASE_FORCED = DESCRIPTORS$2 && + (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails$5(function () { re2[MATCH] = false; // RegExp constructor can alter flags and IsRegExp works correct with @@match return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i'; })); @@ -2848,11 +3310,11 @@ } result += chr; groupid++; continue; case chr === '>' && ncg: - if (groupname === '' || hasOwnProperty_1(names, groupname)) { + if (groupname === '' || hasOwn$3(names, groupname)) { throw new SyntaxError('Invalid capture group name'); } names[groupname] = true; named[named.length] = [groupname, groupid]; ncg = false; @@ -2864,33 +3326,33 @@ } return [result, named]; }; // `RegExp` constructor // https://tc39.es/ecma262/#sec-regexp-constructor - if (isForced_1('RegExp', BASE_FORCED)) { + if (isForced$1('RegExp', BASE_FORCED)) { var RegExpWrapper = function RegExp(pattern, flags) { - var thisIsRegExp = objectIsPrototypeOf(RegExpPrototype$1, this); - var patternIsRegExp = isRegexp(pattern); + var thisIsRegExp = isPrototypeOf$1(RegExpPrototype$1, this); + var patternIsRegExp = isRegExp(pattern); var flagsAreUndefined = flags === undefined; var groups = []; var rawPattern = pattern; var rawFlags, dotAll, sticky, handled, result, state; if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) { return pattern; } - if (patternIsRegExp || objectIsPrototypeOf(RegExpPrototype$1, pattern)) { + if (patternIsRegExp || isPrototypeOf$1(RegExpPrototype$1, pattern)) { pattern = pattern.source; - if (flagsAreUndefined) flags = regexpGetFlags(rawPattern); + if (flagsAreUndefined) flags = getRegExpFlags$1(rawPattern); } - pattern = pattern === undefined ? '' : toString_1(pattern); - flags = flags === undefined ? '' : toString_1(flags); + pattern = pattern === undefined ? '' : toString$3(pattern); + flags = flags === undefined ? '' : toString$3(flags); rawPattern = pattern; - if (regexpUnsupportedDotAll && 'dotAll' in re1) { + if (UNSUPPORTED_DOT_ALL && 'dotAll' in re1) { dotAll = !!flags && stringIndexOf(flags, 's') > -1; if (dotAll) flags = replace(flags, /s/g, ''); } rawFlags = flags; @@ -2898,17 +3360,17 @@ if (MISSED_STICKY && 'sticky' in re1) { sticky = !!flags && stringIndexOf(flags, 'y') > -1; if (sticky && UNSUPPORTED_Y) flags = replace(flags, /y/g, ''); } - if (regexpUnsupportedNcg) { + if (UNSUPPORTED_NCG) { handled = handleNCG(pattern); pattern = handled[0]; groups = handled[1]; } - result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype$1, RegExpWrapper); + result = inheritIfRequired$1(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype$1, RegExpWrapper); if (dotAll || sticky || groups.length) { state = enforceInternalState(result); if (dotAll) { state.dotAll = true; @@ -2918,11 +3380,11 @@ if (groups.length) state.groups = groups; } if (pattern !== rawPattern) try { // fails in old engines, but we have no alternatives for unsupported regex syntax - createNonEnumerableProperty(result, 'source', rawPattern === '' ? '(?:)' : rawPattern); + createNonEnumerableProperty$2(result, 'source', rawPattern === '' ? '(?:)' : rawPattern); } catch (error) { /* empty */ } return result; }; @@ -2930,106 +3392,136 @@ proxyAccessor(RegExpWrapper, NativeRegExp, keys$1[index++]); } RegExpPrototype$1.constructor = RegExpWrapper; RegExpWrapper.prototype = RegExpPrototype$1; - defineBuiltIn(global_1, 'RegExp', RegExpWrapper); + defineBuiltIn$4(global$6, 'RegExp', RegExpWrapper, { constructor: true }); } // https://tc39.es/ecma262/#sec-get-regexp-@@species setSpecies('RegExp'); var PROPER_FUNCTION_NAME$1 = functionName.PROPER; + var defineBuiltIn$3 = defineBuiltIn$8; + var anObject$1 = anObject$d; + var $toString = toString$f; + var fails$4 = fails$u; + var getRegExpFlags = regexpGetFlags; - - - - - var TO_STRING = 'toString'; var RegExpPrototype = RegExp.prototype; var n$ToString = RegExpPrototype[TO_STRING]; - var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; }); + var NOT_GENERIC = fails$4(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; }); // FF44- RegExp#toString has a wrong name var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && n$ToString.name != TO_STRING; // `RegExp.prototype.toString` method // https://tc39.es/ecma262/#sec-regexp.prototype.tostring if (NOT_GENERIC || INCORRECT_NAME) { - defineBuiltIn(RegExp.prototype, TO_STRING, function toString() { - var R = anObject(this); - var pattern = toString_1(R.source); - var flags = toString_1(regexpGetFlags(R)); + defineBuiltIn$3(RegExp.prototype, TO_STRING, function toString() { + var R = anObject$1(this); + var pattern = $toString(R.source); + var flags = $toString(getRegExpFlags(R)); return '/' + pattern + '/' + flags; }, { unsafe: true }); } - var arraySlice$1 = functionUncurryThis([].slice); + var uncurryThis$5 = functionUncurryThis; - var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport('slice'); + var arraySlice$1 = uncurryThis$5([].slice); - var SPECIES = wellKnownSymbol('species'); - var Array$1 = global_1.Array; + var $$6 = _export; + var global$5 = global$G; + var isArray$1 = isArray$4; + var isConstructor = isConstructor$3; + var isObject = isObject$a; + var toAbsoluteIndex$1 = toAbsoluteIndex$4; + var lengthOfArrayLike$1 = lengthOfArrayLike$7; + var toIndexedObject$1 = toIndexedObject$8; + var createProperty$1 = createProperty$4; + var wellKnownSymbol$4 = wellKnownSymbol$j; + var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$5; + var un$Slice = arraySlice$1; + + var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('slice'); + + var SPECIES = wellKnownSymbol$4('species'); + var Array$1 = global$5.Array; var max$1 = Math.max; // `Array.prototype.slice` method // https://tc39.es/ecma262/#sec-array.prototype.slice // fallback for not array-like ES3 strings and DOM objects - _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, { + $$6({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, { slice: function slice(start, end) { - var O = toIndexedObject(this); - var length = lengthOfArrayLike(O); - var k = toAbsoluteIndex(start, length); - var fin = toAbsoluteIndex(end === undefined ? length : end, length); + var O = toIndexedObject$1(this); + var length = lengthOfArrayLike$1(O); + var k = toAbsoluteIndex$1(start, length); + var fin = toAbsoluteIndex$1(end === undefined ? length : end, length); // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible var Constructor, result, n; - if (isArray(O)) { + if (isArray$1(O)) { Constructor = O.constructor; // cross-realm fallback - if (isConstructor(Constructor) && (Constructor === Array$1 || isArray(Constructor.prototype))) { + if (isConstructor(Constructor) && (Constructor === Array$1 || isArray$1(Constructor.prototype))) { Constructor = undefined; } else if (isObject(Constructor)) { Constructor = Constructor[SPECIES]; if (Constructor === null) Constructor = undefined; } if (Constructor === Array$1 || Constructor === undefined) { - return arraySlice$1(O, k, fin); + return un$Slice(O, k, fin); } } result = new (Constructor === undefined ? Array$1 : Constructor)(max$1(fin - k, 0)); - for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]); + for (n = 0; k < fin; k++, n++) if (k in O) createProperty$1(result, n, O[k]); result.length = n; return result; } }); var iterators = {}; - var correctPrototypeGetter = !fails(function () { + var fails$3 = fails$u; + + var correctPrototypeGetter = !fails$3(function () { function F() { /* empty */ } F.prototype.constructor = null; // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing return Object.getPrototypeOf(new F()) !== F.prototype; }); + var global$4 = global$G; + var hasOwn$2 = hasOwnProperty_1; + var isCallable$2 = isCallable$j; + var toObject$2 = toObject$9; + var sharedKey = sharedKey$3; + var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter; + var IE_PROTO = sharedKey('IE_PROTO'); - var Object$1 = global_1.Object; + var Object$1 = global$4.Object; var ObjectPrototype = Object$1.prototype; // `Object.getPrototypeOf` method // https://tc39.es/ecma262/#sec-object.getprototypeof - var objectGetPrototypeOf = correctPrototypeGetter ? Object$1.getPrototypeOf : function (O) { - var object = toObject(O); - if (hasOwnProperty_1(object, IE_PROTO)) return object[IE_PROTO]; + var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$1.getPrototypeOf : function (O) { + var object = toObject$2(O); + if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO]; var constructor = object.constructor; - if (isCallable(constructor) && object instanceof constructor) { + if (isCallable$2(constructor) && object instanceof constructor) { return constructor.prototype; } return object instanceof Object$1 ? ObjectPrototype : null; }; - var ITERATOR$2 = wellKnownSymbol('iterator'); + var fails$2 = fails$u; + var isCallable$1 = isCallable$j; + var getPrototypeOf$1 = objectGetPrototypeOf; + var defineBuiltIn$2 = defineBuiltIn$8; + var wellKnownSymbol$3 = wellKnownSymbol$j; + + var ITERATOR$2 = wellKnownSymbol$3('iterator'); var BUGGY_SAFARI_ITERATORS$1 = false; // `%IteratorPrototype%` object // https://tc39.es/ecma262/#sec-%iteratorprototype%-object var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator; @@ -3038,77 +3530,91 @@ if ([].keys) { arrayIterator = [].keys(); // Safari 8 has buggy iterators w/o `next` if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true; else { - PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator)); + PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator)); if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype; } } - var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails(function () { + var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$2(function () { var test = {}; // FF44- legacy iterators case return IteratorPrototype$2[ITERATOR$2].call(test) !== test; }); if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {}; // `%IteratorPrototype%[@@iterator]()` method // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator - if (!isCallable(IteratorPrototype$2[ITERATOR$2])) { - defineBuiltIn(IteratorPrototype$2, ITERATOR$2, function () { + if (!isCallable$1(IteratorPrototype$2[ITERATOR$2])) { + defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () { return this; }); } var iteratorsCore = { IteratorPrototype: IteratorPrototype$2, BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1 }; var defineProperty$2 = objectDefineProperty.f; + var hasOwn$1 = hasOwnProperty_1; + var wellKnownSymbol$2 = wellKnownSymbol$j; + var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag'); - - var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag'); - - var setToStringTag = function (target, TAG, STATIC) { + var setToStringTag$2 = function (target, TAG, STATIC) { if (target && !STATIC) target = target.prototype; - if (target && !hasOwnProperty_1(target, TO_STRING_TAG$1)) { + if (target && !hasOwn$1(target, TO_STRING_TAG$1)) { defineProperty$2(target, TO_STRING_TAG$1, { configurable: true, value: TAG }); } }; var IteratorPrototype$1 = iteratorsCore.IteratorPrototype; + var create = objectCreate; + var createPropertyDescriptor = createPropertyDescriptor$4; + var setToStringTag$1 = setToStringTag$2; + var Iterators$2 = iterators; - - - - var returnThis$1 = function () { return this; }; - var createIteratorConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { + var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { var TO_STRING_TAG = NAME + ' Iterator'; - IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) }); - setToStringTag(IteratorConstructor, TO_STRING_TAG, false); - iterators[TO_STRING_TAG] = returnThis$1; + IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) }); + setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false); + Iterators$2[TO_STRING_TAG] = returnThis$1; return IteratorConstructor; }; - var PROPER_FUNCTION_NAME = functionName.PROPER; - var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; - var IteratorPrototype = iteratorsCore.IteratorPrototype; - var BUGGY_SAFARI_ITERATORS = iteratorsCore.BUGGY_SAFARI_ITERATORS; - var ITERATOR$1 = wellKnownSymbol('iterator'); + var $$5 = _export; + var call$1 = functionCall; + var FunctionName = functionName; + var isCallable = isCallable$j; + var createIteratorConstructor = createIteratorConstructor$1; + var getPrototypeOf = objectGetPrototypeOf; + var setPrototypeOf = objectSetPrototypeOf; + var setToStringTag = setToStringTag$2; + var createNonEnumerableProperty$1 = createNonEnumerableProperty$8; + var defineBuiltIn$1 = defineBuiltIn$8; + var wellKnownSymbol$1 = wellKnownSymbol$j; + var Iterators$1 = iterators; + var IteratorsCore = iteratorsCore; + + var PROPER_FUNCTION_NAME = FunctionName.PROPER; + var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE; + var IteratorPrototype = IteratorsCore.IteratorPrototype; + var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS; + var ITERATOR$1 = wellKnownSymbol$1('iterator'); var KEYS = 'keys'; var VALUES = 'values'; var ENTRIES = 'entries'; var returnThis = function () { return this; }; - var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { + var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { createIteratorConstructor(IteratorConstructor, NAME, next); var getIterationMethod = function (KIND) { if (KIND === DEFAULT && defaultIterator) return defaultIterator; if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND]; @@ -3129,31 +3635,31 @@ var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator; var CurrentIteratorPrototype, methods, KEY; // fix native if (anyNativeIterator) { - CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable())); + CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable())); if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { - if (objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) { - if (objectSetPrototypeOf) { - objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype); + if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) { + if (setPrototypeOf) { + setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype); } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) { - defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis); + defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis); } } // Set @@toStringTag to native iterators setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true); } } // fix Array.prototype.{ values, @@iterator }.name in V8 / FF if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) { if (CONFIGURABLE_FUNCTION_NAME) { - createNonEnumerableProperty(IterablePrototype, 'name', VALUES); + createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES); } else { INCORRECT_VALUES_NAME = true; - defaultIterator = function values() { return functionCall(nativeIterator, this); }; + defaultIterator = function values() { return call$1(nativeIterator, this); }; } } // export additional methods if (DEFAULT) { @@ -3162,32 +3668,35 @@ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), entries: getIterationMethod(ENTRIES) }; if (FORCED) for (KEY in methods) { if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { - defineBuiltIn(IterablePrototype, KEY, methods[KEY]); + defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]); } - } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); + } else $$5({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); } // define iterator if (IterablePrototype[ITERATOR$1] !== defaultIterator) { - defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT }); + defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT }); } - iterators[NAME] = defaultIterator; + Iterators$1[NAME] = defaultIterator; return methods; }; + var toIndexedObject = toIndexedObject$8; + var addToUnscopables = addToUnscopables$4; + var Iterators = iterators; + var InternalStateModule = internalState; var defineProperty$1 = objectDefineProperty.f; + var defineIterator = defineIterator$1; + var DESCRIPTORS$1 = descriptors; - - - var ARRAY_ITERATOR = 'Array Iterator'; - var setInternalState = internalState.set; - var getInternalState = internalState.getterFor(ARRAY_ITERATOR); + var setInternalState = InternalStateModule.set; + var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR); // `Array.prototype.entries` method // https://tc39.es/ecma262/#sec-array.prototype.entries // `Array.prototype.keys` method // https://tc39.es/ecma262/#sec-array.prototype.keys @@ -3221,25 +3730,32 @@ }, 'values'); // argumentsList[@@iterator] is %ArrayProto_values% // https://tc39.es/ecma262/#sec-createunmappedargumentsobject // https://tc39.es/ecma262/#sec-createmappedargumentsobject - var values = iterators.Arguments = iterators.Array; + var values = Iterators.Arguments = Iterators.Array; // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables addToUnscopables('keys'); addToUnscopables('values'); addToUnscopables('entries'); // V8 ~ Chrome 45- bug - if (descriptors && values.name !== 'values') try { + if (DESCRIPTORS$1 && values.name !== 'values') try { defineProperty$1(values, 'name', { value: 'values' }); } catch (error) { /* empty */ } + var global$3 = global$G; + var DOMIterables = domIterables; + var DOMTokenListPrototype = domTokenListPrototype; + var ArrayIteratorMethods = es_array_iterator; + var createNonEnumerableProperty = createNonEnumerableProperty$8; + var wellKnownSymbol = wellKnownSymbol$j; + var ITERATOR = wellKnownSymbol('iterator'); var TO_STRING_TAG = wellKnownSymbol('toStringTag'); - var ArrayValues = es_array_iterator.values; + var ArrayValues = ArrayIteratorMethods.values; var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) { if (CollectionPrototype) { // some Chrome versions have non-configurable methods on DOMTokenList if (CollectionPrototype[ITERATOR] !== ArrayValues) try { @@ -3248,41 +3764,51 @@ CollectionPrototype[ITERATOR] = ArrayValues; } if (!CollectionPrototype[TO_STRING_TAG]) { createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME); } - if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) { + if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) { // some Chrome versions have non-configurable methods on DOMTokenList - if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try { - createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]); + if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try { + createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]); } catch (error) { - CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME]; + CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME]; } } } }; - for (var COLLECTION_NAME in domIterables) { - handlePrototype(global_1[COLLECTION_NAME] && global_1[COLLECTION_NAME].prototype, COLLECTION_NAME); + for (var COLLECTION_NAME in DOMIterables) { + handlePrototype(global$3[COLLECTION_NAME] && global$3[COLLECTION_NAME].prototype, COLLECTION_NAME); } - handlePrototype(domTokenListPrototype, 'DOMTokenList'); + handlePrototype(DOMTokenListPrototype, 'DOMTokenList'); + var $$4 = _export; + var global$2 = global$G; + var toAbsoluteIndex = toAbsoluteIndex$4; + var toIntegerOrInfinity = toIntegerOrInfinity$5; + var lengthOfArrayLike = lengthOfArrayLike$7; + var toObject$1 = toObject$9; + var arraySpeciesCreate = arraySpeciesCreate$3; + var createProperty = createProperty$4; + var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$5; + var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice'); - var TypeError$2 = global_1.TypeError; + var TypeError$2 = global$2.TypeError; var max = Math.max; var min$2 = Math.min; var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded'; // `Array.prototype.splice` method // https://tc39.es/ecma262/#sec-array.prototype.splice // with adding support of @@species - _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { + $$4({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { splice: function splice(start, deleteCount /* , ...items */) { - var O = toObject(this); + var O = toObject$1(this); var len = lengthOfArrayLike(O); var actualStart = toAbsoluteIndex(start, len); var argumentsLength = arguments.length; var insertCount, actualDeleteCount, A, k, from, to; if (argumentsLength === 0) { @@ -3325,26 +3851,39 @@ O.length = len - actualDeleteCount + insertCount; return A; } }); + var uncurryThis$4 = functionUncurryThis; + // `thisNumberValue` abstract operation // https://tc39.es/ecma262/#sec-thisnumbervalue - var thisNumberValue = functionUncurryThis(1.0.valueOf); + var thisNumberValue$1 = uncurryThis$4(1.0.valueOf); + var DESCRIPTORS = descriptors; + var global$1 = global$G; + var uncurryThis$3 = functionUncurryThis; + var isForced = isForced_1; + var defineBuiltIn = defineBuiltIn$8; + var hasOwn = hasOwnProperty_1; + var inheritIfRequired = inheritIfRequired$2; + var isPrototypeOf = objectIsPrototypeOf; + var isSymbol = isSymbol$3; + var toPrimitive = toPrimitive$2; + var fails$1 = fails$u; var getOwnPropertyNames = objectGetOwnPropertyNames.f; var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f; var defineProperty = objectDefineProperty.f; - + var thisNumberValue = thisNumberValue$1; var trim = stringTrim.trim; var NUMBER = 'Number'; - var NativeNumber = global_1[NUMBER]; + var NativeNumber = global$1[NUMBER]; var NumberPrototype = NativeNumber.prototype; - var TypeError$1 = global_1.TypeError; - var arraySlice = functionUncurryThis(''.slice); - var charCodeAt = functionUncurryThis(''.charCodeAt); + var TypeError$1 = global$1.TypeError; + var arraySlice = uncurryThis$3(''.slice); + var charCodeAt = uncurryThis$3(''.charCodeAt); // `ToNumeric` abstract operation // https://tc39.es/ecma262/#sec-tonumeric var toNumeric = function (value) { var primValue = toPrimitive(value, 'number'); @@ -3381,161 +3920,182 @@ } return +it; }; // `Number` constructor // https://tc39.es/ecma262/#sec-number-constructor - if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) { + if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) { var NumberWrapper = function Number(value) { var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value)); var dummy = this; // check on 1..constructor(foo) case - return objectIsPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); }) + return isPrototypeOf(NumberPrototype, dummy) && fails$1(function () { thisNumberValue(dummy); }) ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n; }; - for (var keys = descriptors ? getOwnPropertyNames(NativeNumber) : ( + for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : ( // ES3: 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES2015 (in case, if modules with ES2015 Number statics required before): 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + // ESNext 'fromString,range' ).split(','), j = 0, key; keys.length > j; j++) { - if (hasOwnProperty_1(NativeNumber, key = keys[j]) && !hasOwnProperty_1(NumberWrapper, key)) { + if (hasOwn(NativeNumber, key = keys[j]) && !hasOwn(NumberWrapper, key)) { defineProperty(NumberWrapper, key, getOwnPropertyDescriptor$2(NativeNumber, key)); } } NumberWrapper.prototype = NumberPrototype; NumberPrototype.constructor = NumberWrapper; - defineBuiltIn(global_1, NUMBER, NumberWrapper); + defineBuiltIn(global$1, NUMBER, NumberWrapper, { constructor: true }); } - var un$Reverse = functionUncurryThis([].reverse); + var $$3 = _export; + var uncurryThis$2 = functionUncurryThis; + var isArray = isArray$4; + + var un$Reverse = uncurryThis$2([].reverse); var test = [1, 2]; // `Array.prototype.reverse` method // https://tc39.es/ecma262/#sec-array.prototype.reverse // fix for Safari 12.0 bug // https://bugs.webkit.org/show_bug.cgi?id=188794 - _export({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, { + $$3({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, { reverse: function reverse() { // eslint-disable-next-line no-self-assign -- dirty hack if (isArray(this)) this.length = this.length; return un$Reverse(this); } }); - var FAILS_ON_PRIMITIVES = fails(function () { objectKeys(1); }); + var $$2 = _export; + var toObject = toObject$9; + var nativeKeys = objectKeys$3; + var fails = fails$u; + var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); }); + // `Object.keys` method // https://tc39.es/ecma262/#sec-object.keys - _export({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, { + $$2({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, { keys: function keys(it) { - return objectKeys(toObject(it)); + return nativeKeys(toObject(it)); } }); + var call = functionCall; + var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic; + var anObject = anObject$d; + var toLength$2 = toLength$6; + var toString$2 = toString$f; + var requireObjectCoercible$2 = requireObjectCoercible$b; + var getMethod = getMethod$5; + var advanceStringIndex = advanceStringIndex$3; + var regExpExec = regexpExecAbstract; + // @@match logic - fixRegexpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) { + fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) { return [ // `String.prototype.match` method // https://tc39.es/ecma262/#sec-string.prototype.match function match(regexp) { - var O = requireObjectCoercible(this); + var O = requireObjectCoercible$2(this); var matcher = regexp == undefined ? undefined : getMethod(regexp, MATCH); - return matcher ? functionCall(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString_1(O)); + return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$2(O)); }, // `RegExp.prototype[@@match]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@match function (string) { var rx = anObject(this); - var S = toString_1(string); + var S = toString$2(string); var res = maybeCallNative(nativeMatch, rx, S); if (res.done) return res.value; - if (!rx.global) return regexpExecAbstract(rx, S); + if (!rx.global) return regExpExec(rx, S); var fullUnicode = rx.unicode; rx.lastIndex = 0; var A = []; var n = 0; var result; - while ((result = regexpExecAbstract(rx, S)) !== null) { - var matchStr = toString_1(result[0]); + while ((result = regExpExec(rx, S)) !== null) { + var matchStr = toString$2(result[0]); A[n] = matchStr; - if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); + if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength$2(rx.lastIndex), fullUnicode); n++; } return n === 0 ? null : A; } ]; }); + var $$1 = _export; + var uncurryThis$1 = functionUncurryThis; var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; + var toLength$1 = toLength$6; + var toString$1 = toString$f; + var notARegExp$1 = notARegexp; + var requireObjectCoercible$1 = requireObjectCoercible$b; + var correctIsRegExpLogic$1 = correctIsRegexpLogic; - - - - - - // eslint-disable-next-line es-x/no-string-prototype-startswith -- safe - var un$StartsWith = functionUncurryThis(''.startsWith); - var stringSlice = functionUncurryThis(''.slice); + var un$StartsWith = uncurryThis$1(''.startsWith); + var stringSlice = uncurryThis$1(''.slice); var min$1 = Math.min; - var CORRECT_IS_REGEXP_LOGIC$1 = correctIsRegexpLogic('startsWith'); + var CORRECT_IS_REGEXP_LOGIC$1 = correctIsRegExpLogic$1('startsWith'); // https://github.com/zloirock/core-js/pull/702 var MDN_POLYFILL_BUG$1 = !CORRECT_IS_REGEXP_LOGIC$1 && !!function () { var descriptor = getOwnPropertyDescriptor$1(String.prototype, 'startsWith'); return descriptor && !descriptor.writable; }(); // `String.prototype.startsWith` method // https://tc39.es/ecma262/#sec-string.prototype.startswith - _export({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG$1 && !CORRECT_IS_REGEXP_LOGIC$1 }, { + $$1({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG$1 && !CORRECT_IS_REGEXP_LOGIC$1 }, { startsWith: function startsWith(searchString /* , position = 0 */) { - var that = toString_1(requireObjectCoercible(this)); - notARegexp(searchString); - var index = toLength(min$1(arguments.length > 1 ? arguments[1] : undefined, that.length)); - var search = toString_1(searchString); + var that = toString$1(requireObjectCoercible$1(this)); + notARegExp$1(searchString); + var index = toLength$1(min$1(arguments.length > 1 ? arguments[1] : undefined, that.length)); + var search = toString$1(searchString); return un$StartsWith ? un$StartsWith(that, search, index) : stringSlice(that, index, index + search.length) === search; } }); + var $ = _export; + var uncurryThis = functionUncurryThis; var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var toLength = toLength$6; + var toString = toString$f; + var notARegExp = notARegexp; + var requireObjectCoercible = requireObjectCoercible$b; + var correctIsRegExpLogic = correctIsRegexpLogic; - - - - - - // eslint-disable-next-line es-x/no-string-prototype-endswith -- safe - var un$EndsWith = functionUncurryThis(''.endsWith); - var slice = functionUncurryThis(''.slice); + var un$EndsWith = uncurryThis(''.endsWith); + var slice = uncurryThis(''.slice); var min = Math.min; - var CORRECT_IS_REGEXP_LOGIC = correctIsRegexpLogic('endsWith'); + var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith'); // https://github.com/zloirock/core-js/pull/702 var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () { var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith'); return descriptor && !descriptor.writable; }(); // `String.prototype.endsWith` method // https://tc39.es/ecma262/#sec-string.prototype.endswith - _export({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, { + $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, { endsWith: function endsWith(searchString /* , endPosition = @length */) { - var that = toString_1(requireObjectCoercible(this)); - notARegexp(searchString); + var that = toString(requireObjectCoercible(this)); + notARegExp(searchString); var endPosition = arguments.length > 1 ? arguments[1] : undefined; var len = that.length; var end = endPosition === undefined ? len : min(toLength(endPosition), len); - var search = toString_1(searchString); + var search = toString(searchString); return un$EndsWith ? un$EndsWith(that, search, end) : slice(that, end - search.length, end) === search; } }); @@ -4204,11 +4764,11 @@ if (callNow) func.apply(context, args); }; } }; - var VERSION = '1.20.1'; + var VERSION = '1.20.2'; var bootstrapVersion = Utils.getBootstrapVersion(); var CONSTANTS = { 3: { classes: { buttonsPrefix: 'btn', @@ -6613,10 +7173,15 @@ var _this9 = this; // click to select by column this.$body.find('> tr[data-index] > td').off('click dblclick').on('click dblclick', function (e) { var $td = $__default["default"](e.currentTarget); + + if ($td.find('.detail-icon').length) { + return; + } + var $tr = $td.parent(); var $cardViewArr = $__default["default"](e.target).parents('.card-views').children(); var $cardViewTarget = $__default["default"](e.target).parents('.card-view'); var rowIndex = $tr.data('index'); var item = _this9.data[rowIndex]; @@ -6626,14 +7191,10 @@ var field = fields[index - Utils.getDetailViewIndexOffset(_this9.options)]; var column = _this9.columns[_this9.fieldsColumnsIndex[field]]; var value = Utils.getItemField(item, field, _this9.options.escape, column.escape); - if ($td.find('.detail-icon').length) { - return; - } - _this9.trigger(e.type === 'click' ? 'click-cell' : 'dbl-click-cell', field, value, item, $td); _this9.trigger(e.type === 'click' ? 'click-row' : 'dbl-click-row', item, $tr, field); // if click to select - then trigger the checkbox/radio click @@ -7992,9 +8553,12 @@ this.$el.insertBefore(this.$container); $__default["default"](this.options.toolbar).insertBefore(this.$el); this.$container.next().remove(); this.$container.remove(); this.$el.html(this.$el_.html()).css('margin-top', '0').attr('class', this.$el_.attr('class') || ''); // reset the class + + var resizeEvent = Utils.getEventName('resize.bootstrap-table', this.$el.attr('id')); + $__default["default"](window).off(resizeEvent); } }, { key: "resetView", value: function resetView(params) { var padding = 0;